| 1 |
/*! elementor - v3.23.0 - 10-07-2024 */ |
| 2 |
/******/ (() => { // webpackBootstrap |
| 3 |
/******/ var __webpack_modules__ = ({ |
| 4 |
|
| 5 |
/***/ "../node_modules/@wordpress/element/build-module/create-interpolate-element.js": |
| 6 |
/*!*************************************************************************************!*\ |
| 7 |
!*** ../node_modules/@wordpress/element/build-module/create-interpolate-element.js ***! |
| 8 |
\*************************************************************************************/ |
| 9 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 10 |
|
| 11 |
"use strict"; |
| 12 |
__webpack_require__.r(__webpack_exports__); |
| 13 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 14 |
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
| 15 |
/* harmony export */ }); |
| 16 |
/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react"); |
| 17 |
/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__); |
| 18 |
/** |
| 19 |
* Internal dependencies |
| 20 |
*/ |
| 21 |
|
| 22 |
|
| 23 |
/** |
| 24 |
* Object containing a React element. |
| 25 |
* |
| 26 |
* @typedef {import('react').ReactElement} Element |
| 27 |
*/ |
| 28 |
|
| 29 |
let indoc, offset, output, stack; |
| 30 |
|
| 31 |
/** |
| 32 |
* Matches tags in the localized string |
| 33 |
* |
| 34 |
* This is used for extracting the tag pattern groups for parsing the localized |
| 35 |
* string and along with the map converting it to a react element. |
| 36 |
* |
| 37 |
* There are four references extracted using this tokenizer: |
| 38 |
* |
| 39 |
* match: Full match of the tag (i.e. <strong>, </strong>, <br/>) |
| 40 |
* isClosing: The closing slash, if it exists. |
| 41 |
* name: The name portion of the tag (strong, br) (if ) |
| 42 |
* isSelfClosed: The slash on a self closing tag, if it exists. |
| 43 |
* |
| 44 |
* @type {RegExp} |
| 45 |
*/ |
| 46 |
const tokenizer = /<(\/)?(\w+)\s*(\/)?>/g; |
| 47 |
|
| 48 |
/** |
| 49 |
* The stack frame tracking parse progress. |
| 50 |
* |
| 51 |
* @typedef Frame |
| 52 |
* |
| 53 |
* @property {Element} element A parent element which may still have |
| 54 |
* @property {number} tokenStart Offset at which parent element first |
| 55 |
* appears. |
| 56 |
* @property {number} tokenLength Length of string marking start of parent |
| 57 |
* element. |
| 58 |
* @property {number} [prevOffset] Running offset at which parsing should |
| 59 |
* continue. |
| 60 |
* @property {number} [leadingTextStart] Offset at which last closing element |
| 61 |
* finished, used for finding text between |
| 62 |
* elements. |
| 63 |
* @property {Element[]} children Children. |
| 64 |
*/ |
| 65 |
|
| 66 |
/** |
| 67 |
* Tracks recursive-descent parse state. |
| 68 |
* |
| 69 |
* This is a Stack frame holding parent elements until all children have been |
| 70 |
* parsed. |
| 71 |
* |
| 72 |
* @private |
| 73 |
* @param {Element} element A parent element which may still have |
| 74 |
* nested children not yet parsed. |
| 75 |
* @param {number} tokenStart Offset at which parent element first |
| 76 |
* appears. |
| 77 |
* @param {number} tokenLength Length of string marking start of parent |
| 78 |
* element. |
| 79 |
* @param {number} [prevOffset] Running offset at which parsing should |
| 80 |
* continue. |
| 81 |
* @param {number} [leadingTextStart] Offset at which last closing element |
| 82 |
* finished, used for finding text between |
| 83 |
* elements. |
| 84 |
* |
| 85 |
* @return {Frame} The stack frame tracking parse progress. |
| 86 |
*/ |
| 87 |
function createFrame(element, tokenStart, tokenLength, prevOffset, leadingTextStart) { |
| 88 |
return { |
| 89 |
element, |
| 90 |
tokenStart, |
| 91 |
tokenLength, |
| 92 |
prevOffset, |
| 93 |
leadingTextStart, |
| 94 |
children: [] |
| 95 |
}; |
| 96 |
} |
| 97 |
|
| 98 |
/** |
| 99 |
* This function creates an interpolated element from a passed in string with |
| 100 |
* specific tags matching how the string should be converted to an element via |
| 101 |
* the conversion map value. |
| 102 |
* |
| 103 |
* @example |
| 104 |
* For example, for the given string: |
| 105 |
* |
| 106 |
* "This is a <span>string</span> with <a>a link</a> and a self-closing |
| 107 |
* <CustomComponentB/> tag" |
| 108 |
* |
| 109 |
* You would have something like this as the conversionMap value: |
| 110 |
* |
| 111 |
* ```js |
| 112 |
* { |
| 113 |
* span: <span />, |
| 114 |
* a: <a href={ 'https://github.com' } />, |
| 115 |
* CustomComponentB: <CustomComponent />, |
| 116 |
* } |
| 117 |
* ``` |
| 118 |
* |
| 119 |
* @param {string} interpolatedString The interpolation string to be parsed. |
| 120 |
* @param {Record<string, Element>} conversionMap The map used to convert the string to |
| 121 |
* a react element. |
| 122 |
* @throws {TypeError} |
| 123 |
* @return {Element} A wp element. |
| 124 |
*/ |
| 125 |
const createInterpolateElement = (interpolatedString, conversionMap) => { |
| 126 |
indoc = interpolatedString; |
| 127 |
offset = 0; |
| 128 |
output = []; |
| 129 |
stack = []; |
| 130 |
tokenizer.lastIndex = 0; |
| 131 |
if (!isValidConversionMap(conversionMap)) { |
| 132 |
throw new TypeError('The conversionMap provided is not valid. It must be an object with values that are React Elements'); |
| 133 |
} |
| 134 |
do { |
| 135 |
// twiddle our thumbs |
| 136 |
} while (proceed(conversionMap)); |
| 137 |
return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, ...output); |
| 138 |
}; |
| 139 |
|
| 140 |
/** |
| 141 |
* Validate conversion map. |
| 142 |
* |
| 143 |
* A map is considered valid if it's an object and every value in the object |
| 144 |
* is a React Element |
| 145 |
* |
| 146 |
* @private |
| 147 |
* |
| 148 |
* @param {Object} conversionMap The map being validated. |
| 149 |
* |
| 150 |
* @return {boolean} True means the map is valid. |
| 151 |
*/ |
| 152 |
const isValidConversionMap = conversionMap => { |
| 153 |
const isObject = typeof conversionMap === 'object'; |
| 154 |
const values = isObject && Object.values(conversionMap); |
| 155 |
return isObject && values.length && values.every(element => (0,_react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(element)); |
| 156 |
}; |
| 157 |
|
| 158 |
/** |
| 159 |
* This is the iterator over the matches in the string. |
| 160 |
* |
| 161 |
* @private |
| 162 |
* |
| 163 |
* @param {Object} conversionMap The conversion map for the string. |
| 164 |
* |
| 165 |
* @return {boolean} true for continuing to iterate, false for finished. |
| 166 |
*/ |
| 167 |
function proceed(conversionMap) { |
| 168 |
const next = nextToken(); |
| 169 |
const [tokenType, name, startOffset, tokenLength] = next; |
| 170 |
const stackDepth = stack.length; |
| 171 |
const leadingTextStart = startOffset > offset ? offset : null; |
| 172 |
if (!conversionMap[name]) { |
| 173 |
addText(); |
| 174 |
return false; |
| 175 |
} |
| 176 |
switch (tokenType) { |
| 177 |
case 'no-more-tokens': |
| 178 |
if (stackDepth !== 0) { |
| 179 |
const { |
| 180 |
leadingTextStart: stackLeadingText, |
| 181 |
tokenStart |
| 182 |
} = stack.pop(); |
| 183 |
output.push(indoc.substr(stackLeadingText, tokenStart)); |
| 184 |
} |
| 185 |
addText(); |
| 186 |
return false; |
| 187 |
case 'self-closed': |
| 188 |
if (0 === stackDepth) { |
| 189 |
if (null !== leadingTextStart) { |
| 190 |
output.push(indoc.substr(leadingTextStart, startOffset - leadingTextStart)); |
| 191 |
} |
| 192 |
output.push(conversionMap[name]); |
| 193 |
offset = startOffset + tokenLength; |
| 194 |
return true; |
| 195 |
} |
| 196 |
|
| 197 |
// Otherwise we found an inner element. |
| 198 |
addChild(createFrame(conversionMap[name], startOffset, tokenLength)); |
| 199 |
offset = startOffset + tokenLength; |
| 200 |
return true; |
| 201 |
case 'opener': |
| 202 |
stack.push(createFrame(conversionMap[name], startOffset, tokenLength, startOffset + tokenLength, leadingTextStart)); |
| 203 |
offset = startOffset + tokenLength; |
| 204 |
return true; |
| 205 |
case 'closer': |
| 206 |
// If we're not nesting then this is easy - close the block. |
| 207 |
if (1 === stackDepth) { |
| 208 |
closeOuterElement(startOffset); |
| 209 |
offset = startOffset + tokenLength; |
| 210 |
return true; |
| 211 |
} |
| 212 |
|
| 213 |
// Otherwise we're nested and we have to close out the current |
| 214 |
// block and add it as a innerBlock to the parent. |
| 215 |
const stackTop = stack.pop(); |
| 216 |
const text = indoc.substr(stackTop.prevOffset, startOffset - stackTop.prevOffset); |
| 217 |
stackTop.children.push(text); |
| 218 |
stackTop.prevOffset = startOffset + tokenLength; |
| 219 |
const frame = createFrame(stackTop.element, stackTop.tokenStart, stackTop.tokenLength, startOffset + tokenLength); |
| 220 |
frame.children = stackTop.children; |
| 221 |
addChild(frame); |
| 222 |
offset = startOffset + tokenLength; |
| 223 |
return true; |
| 224 |
default: |
| 225 |
addText(); |
| 226 |
return false; |
| 227 |
} |
| 228 |
} |
| 229 |
|
| 230 |
/** |
| 231 |
* Grabs the next token match in the string and returns it's details. |
| 232 |
* |
| 233 |
* @private |
| 234 |
* |
| 235 |
* @return {Array} An array of details for the token matched. |
| 236 |
*/ |
| 237 |
function nextToken() { |
| 238 |
const matches = tokenizer.exec(indoc); |
| 239 |
// We have no more tokens. |
| 240 |
if (null === matches) { |
| 241 |
return ['no-more-tokens']; |
| 242 |
} |
| 243 |
const startedAt = matches.index; |
| 244 |
const [match, isClosing, name, isSelfClosed] = matches; |
| 245 |
const length = match.length; |
| 246 |
if (isSelfClosed) { |
| 247 |
return ['self-closed', name, startedAt, length]; |
| 248 |
} |
| 249 |
if (isClosing) { |
| 250 |
return ['closer', name, startedAt, length]; |
| 251 |
} |
| 252 |
return ['opener', name, startedAt, length]; |
| 253 |
} |
| 254 |
|
| 255 |
/** |
| 256 |
* Pushes text extracted from the indoc string to the output stack given the |
| 257 |
* current rawLength value and offset (if rawLength is provided ) or the |
| 258 |
* indoc.length and offset. |
| 259 |
* |
| 260 |
* @private |
| 261 |
*/ |
| 262 |
function addText() { |
| 263 |
const length = indoc.length - offset; |
| 264 |
if (0 === length) { |
| 265 |
return; |
| 266 |
} |
| 267 |
output.push(indoc.substr(offset, length)); |
| 268 |
} |
| 269 |
|
| 270 |
/** |
| 271 |
* Pushes a child element to the associated parent element's children for the |
| 272 |
* parent currently active in the stack. |
| 273 |
* |
| 274 |
* @private |
| 275 |
* |
| 276 |
* @param {Frame} frame The Frame containing the child element and it's |
| 277 |
* token information. |
| 278 |
*/ |
| 279 |
function addChild(frame) { |
| 280 |
const { |
| 281 |
element, |
| 282 |
tokenStart, |
| 283 |
tokenLength, |
| 284 |
prevOffset, |
| 285 |
children |
| 286 |
} = frame; |
| 287 |
const parent = stack[stack.length - 1]; |
| 288 |
const text = indoc.substr(parent.prevOffset, tokenStart - parent.prevOffset); |
| 289 |
if (text) { |
| 290 |
parent.children.push(text); |
| 291 |
} |
| 292 |
parent.children.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children)); |
| 293 |
parent.prevOffset = prevOffset ? prevOffset : tokenStart + tokenLength; |
| 294 |
} |
| 295 |
|
| 296 |
/** |
| 297 |
* This is called for closing tags. It creates the element currently active in |
| 298 |
* the stack. |
| 299 |
* |
| 300 |
* @private |
| 301 |
* |
| 302 |
* @param {number} endOffset Offset at which the closing tag for the element |
| 303 |
* begins in the string. If this is greater than the |
| 304 |
* prevOffset attached to the element, then this |
| 305 |
* helps capture any remaining nested text nodes in |
| 306 |
* the element. |
| 307 |
*/ |
| 308 |
function closeOuterElement(endOffset) { |
| 309 |
const { |
| 310 |
element, |
| 311 |
leadingTextStart, |
| 312 |
prevOffset, |
| 313 |
tokenStart, |
| 314 |
children |
| 315 |
} = stack.pop(); |
| 316 |
const text = endOffset ? indoc.substr(prevOffset, endOffset - prevOffset) : indoc.substr(prevOffset); |
| 317 |
if (text) { |
| 318 |
children.push(text); |
| 319 |
} |
| 320 |
if (null !== leadingTextStart) { |
| 321 |
output.push(indoc.substr(leadingTextStart, tokenStart - leadingTextStart)); |
| 322 |
} |
| 323 |
output.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children)); |
| 324 |
} |
| 325 |
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createInterpolateElement); |
| 326 |
//# sourceMappingURL=create-interpolate-element.js.map |
| 327 |
|
| 328 |
/***/ }), |
| 329 |
|
| 330 |
/***/ "../node_modules/@wordpress/element/build-module/index.js": |
| 331 |
/*!****************************************************************!*\ |
| 332 |
!*** ../node_modules/@wordpress/element/build-module/index.js ***! |
| 333 |
\****************************************************************/ |
| 334 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 335 |
|
| 336 |
"use strict"; |
| 337 |
__webpack_require__.r(__webpack_exports__); |
| 338 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 339 |
/* harmony export */ Children: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Children), |
| 340 |
/* harmony export */ Component: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Component), |
| 341 |
/* harmony export */ Fragment: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Fragment), |
| 342 |
/* harmony export */ Platform: () => (/* reexport safe */ _platform__WEBPACK_IMPORTED_MODULE_4__["default"]), |
| 343 |
/* harmony export */ PureComponent: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.PureComponent), |
| 344 |
/* harmony export */ RawHTML: () => (/* reexport safe */ _raw_html__WEBPACK_IMPORTED_MODULE_6__["default"]), |
| 345 |
/* harmony export */ StrictMode: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.StrictMode), |
| 346 |
/* harmony export */ Suspense: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Suspense), |
| 347 |
/* harmony export */ cloneElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.cloneElement), |
| 348 |
/* harmony export */ concatChildren: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.concatChildren), |
| 349 |
/* harmony export */ createContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createContext), |
| 350 |
/* harmony export */ createElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createElement), |
| 351 |
/* harmony export */ createInterpolateElement: () => (/* reexport safe */ _create_interpolate_element__WEBPACK_IMPORTED_MODULE_0__["default"]), |
| 352 |
/* harmony export */ createPortal: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createPortal), |
| 353 |
/* harmony export */ createRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createRef), |
| 354 |
/* harmony export */ createRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createRoot), |
| 355 |
/* harmony export */ findDOMNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.findDOMNode), |
| 356 |
/* harmony export */ flushSync: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.flushSync), |
| 357 |
/* harmony export */ forwardRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.forwardRef), |
| 358 |
/* harmony export */ hydrate: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrate), |
| 359 |
/* harmony export */ hydrateRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrateRoot), |
| 360 |
/* harmony export */ isEmptyElement: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.isEmptyElement), |
| 361 |
/* harmony export */ isValidElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.isValidElement), |
| 362 |
/* harmony export */ lazy: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.lazy), |
| 363 |
/* harmony export */ memo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.memo), |
| 364 |
/* harmony export */ render: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.render), |
| 365 |
/* harmony export */ renderToString: () => (/* reexport safe */ _serialize__WEBPACK_IMPORTED_MODULE_5__["default"]), |
| 366 |
/* harmony export */ startTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.startTransition), |
| 367 |
/* harmony export */ switchChildrenNodeName: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.switchChildrenNodeName), |
| 368 |
/* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.unmountComponentAtNode), |
| 369 |
/* harmony export */ useCallback: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useCallback), |
| 370 |
/* harmony export */ useContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useContext), |
| 371 |
/* harmony export */ useDebugValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDebugValue), |
| 372 |
/* harmony export */ useDeferredValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDeferredValue), |
| 373 |
/* harmony export */ useEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useEffect), |
| 374 |
/* harmony export */ useId: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useId), |
| 375 |
/* harmony export */ useImperativeHandle: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle), |
| 376 |
/* harmony export */ useInsertionEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useInsertionEffect), |
| 377 |
/* harmony export */ useLayoutEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect), |
| 378 |
/* harmony export */ useMemo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useMemo), |
| 379 |
/* harmony export */ useReducer: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useReducer), |
| 380 |
/* harmony export */ useRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useRef), |
| 381 |
/* harmony export */ useState: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useState), |
| 382 |
/* harmony export */ useSyncExternalStore: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useSyncExternalStore), |
| 383 |
/* harmony export */ useTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useTransition) |
| 384 |
/* harmony export */ }); |
| 385 |
/* harmony import */ var _create_interpolate_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./create-interpolate-element */ "../node_modules/@wordpress/element/build-module/create-interpolate-element.js"); |
| 386 |
/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./react */ "../node_modules/@wordpress/element/build-module/react.js"); |
| 387 |
/* harmony import */ var _react_platform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./react-platform */ "../node_modules/@wordpress/element/build-module/react-platform.js"); |
| 388 |
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "../node_modules/@wordpress/element/build-module/utils.js"); |
| 389 |
/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./platform */ "../node_modules/@wordpress/element/build-module/platform.js"); |
| 390 |
/* harmony import */ var _serialize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serialize */ "../node_modules/@wordpress/element/build-module/serialize.js"); |
| 391 |
/* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js"); |
| 392 |
|
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
//# sourceMappingURL=index.js.map |
| 400 |
|
| 401 |
/***/ }), |
| 402 |
|
| 403 |
/***/ "../node_modules/@wordpress/element/build-module/platform.js": |
| 404 |
/*!*******************************************************************!*\ |
| 405 |
!*** ../node_modules/@wordpress/element/build-module/platform.js ***! |
| 406 |
\*******************************************************************/ |
| 407 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 408 |
|
| 409 |
"use strict"; |
| 410 |
__webpack_require__.r(__webpack_exports__); |
| 411 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 412 |
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
| 413 |
/* harmony export */ }); |
| 414 |
/** |
| 415 |
* Parts of this source were derived and modified from react-native-web, |
| 416 |
* released under the MIT license. |
| 417 |
* |
| 418 |
* Copyright (c) 2016-present, Nicolas Gallagher. |
| 419 |
* Copyright (c) 2015-present, Facebook, Inc. |
| 420 |
* |
| 421 |
*/ |
| 422 |
const Platform = { |
| 423 |
OS: 'web', |
| 424 |
select: spec => 'web' in spec ? spec.web : spec.default, |
| 425 |
isWeb: true |
| 426 |
}; |
| 427 |
/** |
| 428 |
* Component used to detect the current Platform being used. |
| 429 |
* Use Platform.OS === 'web' to detect if running on web enviroment. |
| 430 |
* |
| 431 |
* This is the same concept as the React Native implementation. |
| 432 |
* |
| 433 |
* @see https://reactnative.dev/docs/platform-specific-code#platform-module |
| 434 |
* |
| 435 |
* Here is an example of how to use the select method: |
| 436 |
* @example |
| 437 |
* ```js |
| 438 |
* import { Platform } from '@wordpress/element'; |
| 439 |
* |
| 440 |
* const placeholderLabel = Platform.select( { |
| 441 |
* native: __( 'Add media' ), |
| 442 |
* web: __( 'Drag images, upload new ones or select files from your library.' ), |
| 443 |
* } ); |
| 444 |
* ``` |
| 445 |
*/ |
| 446 |
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Platform); |
| 447 |
//# sourceMappingURL=platform.js.map |
| 448 |
|
| 449 |
/***/ }), |
| 450 |
|
| 451 |
/***/ "../node_modules/@wordpress/element/build-module/raw-html.js": |
| 452 |
/*!*******************************************************************!*\ |
| 453 |
!*** ../node_modules/@wordpress/element/build-module/raw-html.js ***! |
| 454 |
\*******************************************************************/ |
| 455 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 456 |
|
| 457 |
"use strict"; |
| 458 |
__webpack_require__.r(__webpack_exports__); |
| 459 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 460 |
/* harmony export */ "default": () => (/* binding */ RawHTML) |
| 461 |
/* harmony export */ }); |
| 462 |
/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react"); |
| 463 |
/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__); |
| 464 |
/** |
| 465 |
* Internal dependencies |
| 466 |
*/ |
| 467 |
|
| 468 |
|
| 469 |
/** @typedef {{children: string} & import('react').ComponentPropsWithoutRef<'div'>} RawHTMLProps */ |
| 470 |
|
| 471 |
/** |
| 472 |
* Component used as equivalent of Fragment with unescaped HTML, in cases where |
| 473 |
* it is desirable to render dangerous HTML without needing a wrapper element. |
| 474 |
* To preserve additional props, a `div` wrapper _will_ be created if any props |
| 475 |
* aside from `children` are passed. |
| 476 |
* |
| 477 |
* @param {RawHTMLProps} props Children should be a string of HTML or an array |
| 478 |
* of strings. Other props will be passed through |
| 479 |
* to the div wrapper. |
| 480 |
* |
| 481 |
* @return {JSX.Element} Dangerously-rendering component. |
| 482 |
*/ |
| 483 |
function RawHTML({ |
| 484 |
children, |
| 485 |
...props |
| 486 |
}) { |
| 487 |
let rawHtml = ''; |
| 488 |
|
| 489 |
// Cast children as an array, and concatenate each element if it is a string. |
| 490 |
_react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).forEach(child => { |
| 491 |
if (typeof child === 'string' && child.trim() !== '') { |
| 492 |
rawHtml += child; |
| 493 |
} |
| 494 |
}); |
| 495 |
|
| 496 |
// The `div` wrapper will be stripped by the `renderElement` serializer in |
| 497 |
// `./serialize.js` unless there are non-children props present. |
| 498 |
return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)('div', { |
| 499 |
dangerouslySetInnerHTML: { |
| 500 |
__html: rawHtml |
| 501 |
}, |
| 502 |
...props |
| 503 |
}); |
| 504 |
} |
| 505 |
//# sourceMappingURL=raw-html.js.map |
| 506 |
|
| 507 |
/***/ }), |
| 508 |
|
| 509 |
/***/ "../node_modules/@wordpress/element/build-module/react-platform.js": |
| 510 |
/*!*************************************************************************!*\ |
| 511 |
!*** ../node_modules/@wordpress/element/build-module/react-platform.js ***! |
| 512 |
\*************************************************************************/ |
| 513 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 514 |
|
| 515 |
"use strict"; |
| 516 |
__webpack_require__.r(__webpack_exports__); |
| 517 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 518 |
/* harmony export */ createPortal: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.createPortal), |
| 519 |
/* harmony export */ createRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot), |
| 520 |
/* harmony export */ findDOMNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.findDOMNode), |
| 521 |
/* harmony export */ flushSync: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.flushSync), |
| 522 |
/* harmony export */ hydrate: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.hydrate), |
| 523 |
/* harmony export */ hydrateRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.hydrateRoot), |
| 524 |
/* harmony export */ render: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.render), |
| 525 |
/* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.unmountComponentAtNode) |
| 526 |
/* harmony export */ }); |
| 527 |
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "react-dom"); |
| 528 |
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__); |
| 529 |
/* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js"); |
| 530 |
/** |
| 531 |
* External dependencies |
| 532 |
*/ |
| 533 |
|
| 534 |
|
| 535 |
|
| 536 |
/** |
| 537 |
* Creates a portal into which a component can be rendered. |
| 538 |
* |
| 539 |
* @see https://github.com/facebook/react/issues/10309#issuecomment-318433235 |
| 540 |
* |
| 541 |
* @param {import('react').ReactElement} child Any renderable child, such as an element, |
| 542 |
* string, or fragment. |
| 543 |
* @param {HTMLElement} container DOM node into which element should be rendered. |
| 544 |
*/ |
| 545 |
|
| 546 |
|
| 547 |
/** |
| 548 |
* Finds the dom node of a React component. |
| 549 |
* |
| 550 |
* @param {import('react').ComponentType} component Component's instance. |
| 551 |
*/ |
| 552 |
|
| 553 |
|
| 554 |
/** |
| 555 |
* Forces React to flush any updates inside the provided callback synchronously. |
| 556 |
* |
| 557 |
* @param {Function} callback Callback to run synchronously. |
| 558 |
*/ |
| 559 |
|
| 560 |
|
| 561 |
/** |
| 562 |
* Renders a given element into the target DOM node. |
| 563 |
* |
| 564 |
* @deprecated since WordPress 6.2.0. Use `createRoot` instead. |
| 565 |
* @see https://react.dev/reference/react-dom/render |
| 566 |
*/ |
| 567 |
|
| 568 |
|
| 569 |
/** |
| 570 |
* Hydrates a given element into the target DOM node. |
| 571 |
* |
| 572 |
* @deprecated since WordPress 6.2.0. Use `hydrateRoot` instead. |
| 573 |
* @see https://react.dev/reference/react-dom/hydrate |
| 574 |
*/ |
| 575 |
|
| 576 |
|
| 577 |
/** |
| 578 |
* Creates a new React root for the target DOM node. |
| 579 |
* |
| 580 |
* @since 6.2.0 Introduced in WordPress core. |
| 581 |
* @see https://react.dev/reference/react-dom/client/createRoot |
| 582 |
*/ |
| 583 |
|
| 584 |
|
| 585 |
/** |
| 586 |
* Creates a new React root for the target DOM node and hydrates it with a pre-generated markup. |
| 587 |
* |
| 588 |
* @since 6.2.0 Introduced in WordPress core. |
| 589 |
* @see https://react.dev/reference/react-dom/client/hydrateRoot |
| 590 |
*/ |
| 591 |
|
| 592 |
|
| 593 |
/** |
| 594 |
* Removes any mounted element from the target DOM node. |
| 595 |
* |
| 596 |
* @deprecated since WordPress 6.2.0. Use `root.unmount()` instead. |
| 597 |
* @see https://react.dev/reference/react-dom/unmountComponentAtNode |
| 598 |
*/ |
| 599 |
|
| 600 |
//# sourceMappingURL=react-platform.js.map |
| 601 |
|
| 602 |
/***/ }), |
| 603 |
|
| 604 |
/***/ "../node_modules/@wordpress/element/build-module/react.js": |
| 605 |
/*!****************************************************************!*\ |
| 606 |
!*** ../node_modules/@wordpress/element/build-module/react.js ***! |
| 607 |
\****************************************************************/ |
| 608 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 609 |
|
| 610 |
"use strict"; |
| 611 |
__webpack_require__.r(__webpack_exports__); |
| 612 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 613 |
/* harmony export */ Children: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Children), |
| 614 |
/* harmony export */ Component: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Component), |
| 615 |
/* harmony export */ Fragment: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Fragment), |
| 616 |
/* harmony export */ PureComponent: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.PureComponent), |
| 617 |
/* harmony export */ StrictMode: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.StrictMode), |
| 618 |
/* harmony export */ Suspense: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Suspense), |
| 619 |
/* harmony export */ cloneElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.cloneElement), |
| 620 |
/* harmony export */ concatChildren: () => (/* binding */ concatChildren), |
| 621 |
/* harmony export */ createContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createContext), |
| 622 |
/* harmony export */ createElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createElement), |
| 623 |
/* harmony export */ createRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createRef), |
| 624 |
/* harmony export */ forwardRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.forwardRef), |
| 625 |
/* harmony export */ isValidElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.isValidElement), |
| 626 |
/* harmony export */ lazy: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.lazy), |
| 627 |
/* harmony export */ memo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.memo), |
| 628 |
/* harmony export */ startTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.startTransition), |
| 629 |
/* harmony export */ switchChildrenNodeName: () => (/* binding */ switchChildrenNodeName), |
| 630 |
/* harmony export */ useCallback: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useCallback), |
| 631 |
/* harmony export */ useContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useContext), |
| 632 |
/* harmony export */ useDebugValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue), |
| 633 |
/* harmony export */ useDeferredValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDeferredValue), |
| 634 |
/* harmony export */ useEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useEffect), |
| 635 |
/* harmony export */ useId: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useId), |
| 636 |
/* harmony export */ useImperativeHandle: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle), |
| 637 |
/* harmony export */ useInsertionEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect), |
| 638 |
/* harmony export */ useLayoutEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect), |
| 639 |
/* harmony export */ useMemo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useMemo), |
| 640 |
/* harmony export */ useReducer: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useReducer), |
| 641 |
/* harmony export */ useRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useRef), |
| 642 |
/* harmony export */ useState: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useState), |
| 643 |
/* harmony export */ useSyncExternalStore: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore), |
| 644 |
/* harmony export */ useTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useTransition) |
| 645 |
/* harmony export */ }); |
| 646 |
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); |
| 647 |
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); |
| 648 |
/** |
| 649 |
* External dependencies |
| 650 |
*/ |
| 651 |
// eslint-disable-next-line @typescript-eslint/no-restricted-imports |
| 652 |
|
| 653 |
|
| 654 |
/** |
| 655 |
* Object containing a React element. |
| 656 |
* |
| 657 |
* @typedef {import('react').ReactElement} Element |
| 658 |
*/ |
| 659 |
|
| 660 |
/** |
| 661 |
* Object containing a React component. |
| 662 |
* |
| 663 |
* @typedef {import('react').ComponentType} ComponentType |
| 664 |
*/ |
| 665 |
|
| 666 |
/** |
| 667 |
* Object containing a React synthetic event. |
| 668 |
* |
| 669 |
* @typedef {import('react').SyntheticEvent} SyntheticEvent |
| 670 |
*/ |
| 671 |
|
| 672 |
/** |
| 673 |
* Object containing a React synthetic event. |
| 674 |
* |
| 675 |
* @template T |
| 676 |
* @typedef {import('react').RefObject<T>} RefObject<T> |
| 677 |
*/ |
| 678 |
|
| 679 |
/** |
| 680 |
* Object that provides utilities for dealing with React children. |
| 681 |
*/ |
| 682 |
|
| 683 |
|
| 684 |
/** |
| 685 |
* Creates a copy of an element with extended props. |
| 686 |
* |
| 687 |
* @param {Element} element Element |
| 688 |
* @param {?Object} props Props to apply to cloned element |
| 689 |
* |
| 690 |
* @return {Element} Cloned element. |
| 691 |
*/ |
| 692 |
|
| 693 |
|
| 694 |
/** |
| 695 |
* A base class to create WordPress Components (Refs, state and lifecycle hooks) |
| 696 |
*/ |
| 697 |
|
| 698 |
|
| 699 |
/** |
| 700 |
* Creates a context object containing two components: a provider and consumer. |
| 701 |
* |
| 702 |
* @param {Object} defaultValue A default data stored in the context. |
| 703 |
* |
| 704 |
* @return {Object} Context object. |
| 705 |
*/ |
| 706 |
|
| 707 |
|
| 708 |
/** |
| 709 |
* Returns a new element of given type. Type can be either a string tag name or |
| 710 |
* another function which itself returns an element. |
| 711 |
* |
| 712 |
* @param {?(string|Function)} type Tag name or element creator |
| 713 |
* @param {Object} props Element properties, either attribute |
| 714 |
* set to apply to DOM node or values to |
| 715 |
* pass through to element creator |
| 716 |
* @param {...Element} children Descendant elements |
| 717 |
* |
| 718 |
* @return {Element} Element. |
| 719 |
*/ |
| 720 |
|
| 721 |
|
| 722 |
/** |
| 723 |
* Returns an object tracking a reference to a rendered element via its |
| 724 |
* `current` property as either a DOMElement or Element, dependent upon the |
| 725 |
* type of element rendered with the ref attribute. |
| 726 |
* |
| 727 |
* @return {Object} Ref object. |
| 728 |
*/ |
| 729 |
|
| 730 |
|
| 731 |
/** |
| 732 |
* Component enhancer used to enable passing a ref to its wrapped component. |
| 733 |
* Pass a function argument which receives `props` and `ref` as its arguments, |
| 734 |
* returning an element using the forwarded ref. The return value is a new |
| 735 |
* component which forwards its ref. |
| 736 |
* |
| 737 |
* @param {Function} forwarder Function passed `props` and `ref`, expected to |
| 738 |
* return an element. |
| 739 |
* |
| 740 |
* @return {Component} Enhanced component. |
| 741 |
*/ |
| 742 |
|
| 743 |
|
| 744 |
/** |
| 745 |
* A component which renders its children without any wrapping element. |
| 746 |
*/ |
| 747 |
|
| 748 |
|
| 749 |
/** |
| 750 |
* Checks if an object is a valid React Element. |
| 751 |
* |
| 752 |
* @param {Object} objectToCheck The object to be checked. |
| 753 |
* |
| 754 |
* @return {boolean} true if objectToTest is a valid React Element and false otherwise. |
| 755 |
*/ |
| 756 |
|
| 757 |
|
| 758 |
/** |
| 759 |
* @see https://reactjs.org/docs/react-api.html#reactmemo |
| 760 |
*/ |
| 761 |
|
| 762 |
|
| 763 |
/** |
| 764 |
* Component that activates additional checks and warnings for its descendants. |
| 765 |
*/ |
| 766 |
|
| 767 |
|
| 768 |
/** |
| 769 |
* @see https://reactjs.org/docs/hooks-reference.html#usecallback |
| 770 |
*/ |
| 771 |
|
| 772 |
|
| 773 |
/** |
| 774 |
* @see https://reactjs.org/docs/hooks-reference.html#usecontext |
| 775 |
*/ |
| 776 |
|
| 777 |
|
| 778 |
/** |
| 779 |
* @see https://reactjs.org/docs/hooks-reference.html#usedebugvalue |
| 780 |
*/ |
| 781 |
|
| 782 |
|
| 783 |
/** |
| 784 |
* @see https://reactjs.org/docs/hooks-reference.html#usedeferredvalue |
| 785 |
*/ |
| 786 |
|
| 787 |
|
| 788 |
/** |
| 789 |
* @see https://reactjs.org/docs/hooks-reference.html#useeffect |
| 790 |
*/ |
| 791 |
|
| 792 |
|
| 793 |
/** |
| 794 |
* @see https://reactjs.org/docs/hooks-reference.html#useid |
| 795 |
*/ |
| 796 |
|
| 797 |
|
| 798 |
/** |
| 799 |
* @see https://reactjs.org/docs/hooks-reference.html#useimperativehandle |
| 800 |
*/ |
| 801 |
|
| 802 |
|
| 803 |
/** |
| 804 |
* @see https://reactjs.org/docs/hooks-reference.html#useinsertioneffect |
| 805 |
*/ |
| 806 |
|
| 807 |
|
| 808 |
/** |
| 809 |
* @see https://reactjs.org/docs/hooks-reference.html#uselayouteffect |
| 810 |
*/ |
| 811 |
|
| 812 |
|
| 813 |
/** |
| 814 |
* @see https://reactjs.org/docs/hooks-reference.html#usememo |
| 815 |
*/ |
| 816 |
|
| 817 |
|
| 818 |
/** |
| 819 |
* @see https://reactjs.org/docs/hooks-reference.html#usereducer |
| 820 |
*/ |
| 821 |
|
| 822 |
|
| 823 |
/** |
| 824 |
* @see https://reactjs.org/docs/hooks-reference.html#useref |
| 825 |
*/ |
| 826 |
|
| 827 |
|
| 828 |
/** |
| 829 |
* @see https://reactjs.org/docs/hooks-reference.html#usestate |
| 830 |
*/ |
| 831 |
|
| 832 |
|
| 833 |
/** |
| 834 |
* @see https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore |
| 835 |
*/ |
| 836 |
|
| 837 |
|
| 838 |
/** |
| 839 |
* @see https://reactjs.org/docs/hooks-reference.html#usetransition |
| 840 |
*/ |
| 841 |
|
| 842 |
|
| 843 |
/** |
| 844 |
* @see https://reactjs.org/docs/react-api.html#starttransition |
| 845 |
*/ |
| 846 |
|
| 847 |
|
| 848 |
/** |
| 849 |
* @see https://reactjs.org/docs/react-api.html#reactlazy |
| 850 |
*/ |
| 851 |
|
| 852 |
|
| 853 |
/** |
| 854 |
* @see https://reactjs.org/docs/react-api.html#reactsuspense |
| 855 |
*/ |
| 856 |
|
| 857 |
|
| 858 |
/** |
| 859 |
* @see https://reactjs.org/docs/react-api.html#reactpurecomponent |
| 860 |
*/ |
| 861 |
|
| 862 |
|
| 863 |
/** |
| 864 |
* Concatenate two or more React children objects. |
| 865 |
* |
| 866 |
* @param {...?Object} childrenArguments Array of children arguments (array of arrays/strings/objects) to concatenate. |
| 867 |
* |
| 868 |
* @return {Array} The concatenated value. |
| 869 |
*/ |
| 870 |
function concatChildren(...childrenArguments) { |
| 871 |
return childrenArguments.reduce((accumulator, children, i) => { |
| 872 |
react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children, (child, j) => { |
| 873 |
if (child && 'string' !== typeof child) { |
| 874 |
child = (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, { |
| 875 |
key: [i, j].join() |
| 876 |
}); |
| 877 |
} |
| 878 |
accumulator.push(child); |
| 879 |
}); |
| 880 |
return accumulator; |
| 881 |
}, []); |
| 882 |
} |
| 883 |
|
| 884 |
/** |
| 885 |
* Switches the nodeName of all the elements in the children object. |
| 886 |
* |
| 887 |
* @param {?Object} children Children object. |
| 888 |
* @param {string} nodeName Node name. |
| 889 |
* |
| 890 |
* @return {?Object} The updated children object. |
| 891 |
*/ |
| 892 |
function switchChildrenNodeName(children, nodeName) { |
| 893 |
return children && react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, (elt, index) => { |
| 894 |
if (typeof elt?.valueOf() === 'string') { |
| 895 |
return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, { |
| 896 |
key: index |
| 897 |
}, elt); |
| 898 |
} |
| 899 |
const { |
| 900 |
children: childrenProp, |
| 901 |
...props |
| 902 |
} = elt.props; |
| 903 |
return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, { |
| 904 |
key: index, |
| 905 |
...props |
| 906 |
}, childrenProp); |
| 907 |
}); |
| 908 |
} |
| 909 |
//# sourceMappingURL=react.js.map |
| 910 |
|
| 911 |
/***/ }), |
| 912 |
|
| 913 |
/***/ "../node_modules/@wordpress/element/build-module/serialize.js": |
| 914 |
/*!********************************************************************!*\ |
| 915 |
!*** ../node_modules/@wordpress/element/build-module/serialize.js ***! |
| 916 |
\********************************************************************/ |
| 917 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 918 |
|
| 919 |
"use strict"; |
| 920 |
__webpack_require__.r(__webpack_exports__); |
| 921 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 922 |
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), |
| 923 |
/* harmony export */ hasPrefix: () => (/* binding */ hasPrefix), |
| 924 |
/* harmony export */ renderAttributes: () => (/* binding */ renderAttributes), |
| 925 |
/* harmony export */ renderComponent: () => (/* binding */ renderComponent), |
| 926 |
/* harmony export */ renderElement: () => (/* binding */ renderElement), |
| 927 |
/* harmony export */ renderNativeComponent: () => (/* binding */ renderNativeComponent), |
| 928 |
/* harmony export */ renderStyle: () => (/* binding */ renderStyle) |
| 929 |
/* harmony export */ }); |
| 930 |
/* harmony import */ var is_plain_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! is-plain-object */ "../node_modules/@wordpress/element/node_modules/is-plain-object/dist/is-plain-object.mjs"); |
| 931 |
/* harmony import */ var change_case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! change-case */ "../node_modules/param-case/dist.es2015/index.js"); |
| 932 |
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/escape-html */ "../node_modules/@wordpress/escape-html/build-module/index.js"); |
| 933 |
/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./react */ "react"); |
| 934 |
/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_1__); |
| 935 |
/* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js"); |
| 936 |
/** |
| 937 |
* Parts of this source were derived and modified from fast-react-render, |
| 938 |
* released under the MIT license. |
| 939 |
* |
| 940 |
* https://github.com/alt-j/fast-react-render |
| 941 |
* |
| 942 |
* Copyright (c) 2016 Andrey Morozov |
| 943 |
* |
| 944 |
* Permission is hereby granted, free of charge, to any person obtaining a copy |
| 945 |
* of this software and associated documentation files (the "Software"), to deal |
| 946 |
* in the Software without restriction, including without limitation the rights |
| 947 |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 948 |
* copies of the Software, and to permit persons to whom the Software is |
| 949 |
* furnished to do so, subject to the following conditions: |
| 950 |
* |
| 951 |
* The above copyright notice and this permission notice shall be included in |
| 952 |
* all copies or substantial portions of the Software. |
| 953 |
* |
| 954 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 955 |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 956 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 957 |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 958 |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 959 |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 960 |
* THE SOFTWARE. |
| 961 |
*/ |
| 962 |
|
| 963 |
/** |
| 964 |
* External dependencies |
| 965 |
*/ |
| 966 |
|
| 967 |
|
| 968 |
|
| 969 |
/** |
| 970 |
* WordPress dependencies |
| 971 |
*/ |
| 972 |
|
| 973 |
|
| 974 |
/** |
| 975 |
* Internal dependencies |
| 976 |
*/ |
| 977 |
|
| 978 |
|
| 979 |
|
| 980 |
/** @typedef {import('react').ReactElement} ReactElement */ |
| 981 |
|
| 982 |
const { |
| 983 |
Provider, |
| 984 |
Consumer |
| 985 |
} = (0,_react__WEBPACK_IMPORTED_MODULE_1__.createContext)(undefined); |
| 986 |
const ForwardRef = (0,_react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(() => { |
| 987 |
return null; |
| 988 |
}); |
| 989 |
|
| 990 |
/** |
| 991 |
* Valid attribute types. |
| 992 |
* |
| 993 |
* @type {Set<string>} |
| 994 |
*/ |
| 995 |
const ATTRIBUTES_TYPES = new Set(['string', 'boolean', 'number']); |
| 996 |
|
| 997 |
/** |
| 998 |
* Element tags which can be self-closing. |
| 999 |
* |
| 1000 |
* @type {Set<string>} |
| 1001 |
*/ |
| 1002 |
const SELF_CLOSING_TAGS = new Set(['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']); |
| 1003 |
|
| 1004 |
/** |
| 1005 |
* Boolean attributes are attributes whose presence as being assigned is |
| 1006 |
* meaningful, even if only empty. |
| 1007 |
* |
| 1008 |
* See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes |
| 1009 |
* Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3 |
| 1010 |
* |
| 1011 |
* Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ] |
| 1012 |
* .filter( ( tr ) => tr.lastChild.textContent.indexOf( 'Boolean attribute' ) !== -1 ) |
| 1013 |
* .reduce( ( result, tr ) => Object.assign( result, { |
| 1014 |
* [ tr.firstChild.textContent.trim() ]: true |
| 1015 |
* } ), {} ) ).sort(); |
| 1016 |
* |
| 1017 |
* @type {Set<string>} |
| 1018 |
*/ |
| 1019 |
const BOOLEAN_ATTRIBUTES = new Set(['allowfullscreen', 'allowpaymentrequest', 'allowusermedia', 'async', 'autofocus', 'autoplay', 'checked', 'controls', 'default', 'defer', 'disabled', 'download', 'formnovalidate', 'hidden', 'ismap', 'itemscope', 'loop', 'multiple', 'muted', 'nomodule', 'novalidate', 'open', 'playsinline', 'readonly', 'required', 'reversed', 'selected', 'typemustmatch']); |
| 1020 |
|
| 1021 |
/** |
| 1022 |
* Enumerated attributes are attributes which must be of a specific value form. |
| 1023 |
* Like boolean attributes, these are meaningful if specified, even if not of a |
| 1024 |
* valid enumerated value. |
| 1025 |
* |
| 1026 |
* See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#enumerated-attribute |
| 1027 |
* Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3 |
| 1028 |
* |
| 1029 |
* Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ] |
| 1030 |
* .filter( ( tr ) => /^("(.+?)";?\s*)+/.test( tr.lastChild.textContent.trim() ) ) |
| 1031 |
* .reduce( ( result, tr ) => Object.assign( result, { |
| 1032 |
* [ tr.firstChild.textContent.trim() ]: true |
| 1033 |
* } ), {} ) ).sort(); |
| 1034 |
* |
| 1035 |
* Some notable omissions: |
| 1036 |
* |
| 1037 |
* - `alt`: https://blog.whatwg.org/omit-alt |
| 1038 |
* |
| 1039 |
* @type {Set<string>} |
| 1040 |
*/ |
| 1041 |
const ENUMERATED_ATTRIBUTES = new Set(['autocapitalize', 'autocomplete', 'charset', 'contenteditable', 'crossorigin', 'decoding', 'dir', 'draggable', 'enctype', 'formenctype', 'formmethod', 'http-equiv', 'inputmode', 'kind', 'method', 'preload', 'scope', 'shape', 'spellcheck', 'translate', 'type', 'wrap']); |
| 1042 |
|
| 1043 |
/** |
| 1044 |
* Set of CSS style properties which support assignment of unitless numbers. |
| 1045 |
* Used in rendering of style properties, where `px` unit is assumed unless |
| 1046 |
* property is included in this set or value is zero. |
| 1047 |
* |
| 1048 |
* Generated via: |
| 1049 |
* |
| 1050 |
* Object.entries( document.createElement( 'div' ).style ) |
| 1051 |
* .filter( ( [ key ] ) => ( |
| 1052 |
* ! /^(webkit|ms|moz)/.test( key ) && |
| 1053 |
* ( e.style[ key ] = 10 ) && |
| 1054 |
* e.style[ key ] === '10' |
| 1055 |
* ) ) |
| 1056 |
* .map( ( [ key ] ) => key ) |
| 1057 |
* .sort(); |
| 1058 |
* |
| 1059 |
* @type {Set<string>} |
| 1060 |
*/ |
| 1061 |
const CSS_PROPERTIES_SUPPORTS_UNITLESS = new Set(['animation', 'animationIterationCount', 'baselineShift', 'borderImageOutset', 'borderImageSlice', 'borderImageWidth', 'columnCount', 'cx', 'cy', 'fillOpacity', 'flexGrow', 'flexShrink', 'floodOpacity', 'fontWeight', 'gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart', 'lineHeight', 'opacity', 'order', 'orphans', 'r', 'rx', 'ry', 'shapeImageThreshold', 'stopOpacity', 'strokeDasharray', 'strokeDashoffset', 'strokeMiterlimit', 'strokeOpacity', 'strokeWidth', 'tabSize', 'widows', 'x', 'y', 'zIndex', 'zoom']); |
| 1062 |
|
| 1063 |
/** |
| 1064 |
* Returns true if the specified string is prefixed by one of an array of |
| 1065 |
* possible prefixes. |
| 1066 |
* |
| 1067 |
* @param {string} string String to check. |
| 1068 |
* @param {string[]} prefixes Possible prefixes. |
| 1069 |
* |
| 1070 |
* @return {boolean} Whether string has prefix. |
| 1071 |
*/ |
| 1072 |
function hasPrefix(string, prefixes) { |
| 1073 |
return prefixes.some(prefix => string.indexOf(prefix) === 0); |
| 1074 |
} |
| 1075 |
|
| 1076 |
/** |
| 1077 |
* Returns true if the given prop name should be ignored in attributes |
| 1078 |
* serialization, or false otherwise. |
| 1079 |
* |
| 1080 |
* @param {string} attribute Attribute to check. |
| 1081 |
* |
| 1082 |
* @return {boolean} Whether attribute should be ignored. |
| 1083 |
*/ |
| 1084 |
function isInternalAttribute(attribute) { |
| 1085 |
return 'key' === attribute || 'children' === attribute; |
| 1086 |
} |
| 1087 |
|
| 1088 |
/** |
| 1089 |
* Returns the normal form of the element's attribute value for HTML. |
| 1090 |
* |
| 1091 |
* @param {string} attribute Attribute name. |
| 1092 |
* @param {*} value Non-normalized attribute value. |
| 1093 |
* |
| 1094 |
* @return {*} Normalized attribute value. |
| 1095 |
*/ |
| 1096 |
function getNormalAttributeValue(attribute, value) { |
| 1097 |
switch (attribute) { |
| 1098 |
case 'style': |
| 1099 |
return renderStyle(value); |
| 1100 |
} |
| 1101 |
return value; |
| 1102 |
} |
| 1103 |
/** |
| 1104 |
* This is a map of all SVG attributes that have dashes. Map(lower case prop => dashed lower case attribute). |
| 1105 |
* We need this to render e.g strokeWidth as stroke-width. |
| 1106 |
* |
| 1107 |
* List from: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute. |
| 1108 |
*/ |
| 1109 |
const SVG_ATTRIBUTE_WITH_DASHES_LIST = ['accentHeight', 'alignmentBaseline', 'arabicForm', 'baselineShift', 'capHeight', 'clipPath', 'clipRule', 'colorInterpolation', 'colorInterpolationFilters', 'colorProfile', 'colorRendering', 'dominantBaseline', 'enableBackground', 'fillOpacity', 'fillRule', 'floodColor', 'floodOpacity', 'fontFamily', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontWeight', 'glyphName', 'glyphOrientationHorizontal', 'glyphOrientationVertical', 'horizAdvX', 'horizOriginX', 'imageRendering', 'letterSpacing', 'lightingColor', 'markerEnd', 'markerMid', 'markerStart', 'overlinePosition', 'overlineThickness', 'paintOrder', 'panose1', 'pointerEvents', 'renderingIntent', 'shapeRendering', 'stopColor', 'stopOpacity', 'strikethroughPosition', 'strikethroughThickness', 'strokeDasharray', 'strokeDashoffset', 'strokeLinecap', 'strokeLinejoin', 'strokeMiterlimit', 'strokeOpacity', 'strokeWidth', 'textAnchor', 'textDecoration', 'textRendering', 'underlinePosition', 'underlineThickness', 'unicodeBidi', 'unicodeRange', 'unitsPerEm', 'vAlphabetic', 'vHanging', 'vIdeographic', 'vMathematical', 'vectorEffect', 'vertAdvY', 'vertOriginX', 'vertOriginY', 'wordSpacing', 'writingMode', 'xmlnsXlink', 'xHeight'].reduce((map, attribute) => { |
| 1110 |
// The keys are lower-cased for more robust lookup. |
| 1111 |
map[attribute.toLowerCase()] = attribute; |
| 1112 |
return map; |
| 1113 |
}, {}); |
| 1114 |
|
| 1115 |
/** |
| 1116 |
* This is a map of all case-sensitive SVG attributes. Map(lowercase key => proper case attribute). |
| 1117 |
* The keys are lower-cased for more robust lookup. |
| 1118 |
* Note that this list only contains attributes that contain at least one capital letter. |
| 1119 |
* Lowercase attributes don't need mapping, since we lowercase all attributes by default. |
| 1120 |
*/ |
| 1121 |
const CASE_SENSITIVE_SVG_ATTRIBUTES = ['allowReorder', 'attributeName', 'attributeType', 'autoReverse', 'baseFrequency', 'baseProfile', 'calcMode', 'clipPathUnits', 'contentScriptType', 'contentStyleType', 'diffuseConstant', 'edgeMode', 'externalResourcesRequired', 'filterRes', 'filterUnits', 'glyphRef', 'gradientTransform', 'gradientUnits', 'kernelMatrix', 'kernelUnitLength', 'keyPoints', 'keySplines', 'keyTimes', 'lengthAdjust', 'limitingConeAngle', 'markerHeight', 'markerUnits', 'markerWidth', 'maskContentUnits', 'maskUnits', 'numOctaves', 'pathLength', 'patternContentUnits', 'patternTransform', 'patternUnits', 'pointsAtX', 'pointsAtY', 'pointsAtZ', 'preserveAlpha', 'preserveAspectRatio', 'primitiveUnits', 'refX', 'refY', 'repeatCount', 'repeatDur', 'requiredExtensions', 'requiredFeatures', 'specularConstant', 'specularExponent', 'spreadMethod', 'startOffset', 'stdDeviation', 'stitchTiles', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'surfaceScale', 'systemLanguage', 'tableValues', 'targetX', 'targetY', 'textLength', 'viewBox', 'viewTarget', 'xChannelSelector', 'yChannelSelector'].reduce((map, attribute) => { |
| 1122 |
// The keys are lower-cased for more robust lookup. |
| 1123 |
map[attribute.toLowerCase()] = attribute; |
| 1124 |
return map; |
| 1125 |
}, {}); |
| 1126 |
|
| 1127 |
/** |
| 1128 |
* This is a map of all SVG attributes that have colons. |
| 1129 |
* Keys are lower-cased and stripped of their colons for more robust lookup. |
| 1130 |
*/ |
| 1131 |
const SVG_ATTRIBUTES_WITH_COLONS = ['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type', 'xml:base', 'xml:lang', 'xml:space', 'xmlns:xlink'].reduce((map, attribute) => { |
| 1132 |
map[attribute.replace(':', '').toLowerCase()] = attribute; |
| 1133 |
return map; |
| 1134 |
}, {}); |
| 1135 |
|
| 1136 |
/** |
| 1137 |
* Returns the normal form of the element's attribute name for HTML. |
| 1138 |
* |
| 1139 |
* @param {string} attribute Non-normalized attribute name. |
| 1140 |
* |
| 1141 |
* @return {string} Normalized attribute name. |
| 1142 |
*/ |
| 1143 |
function getNormalAttributeName(attribute) { |
| 1144 |
switch (attribute) { |
| 1145 |
case 'htmlFor': |
| 1146 |
return 'for'; |
| 1147 |
case 'className': |
| 1148 |
return 'class'; |
| 1149 |
} |
| 1150 |
const attributeLowerCase = attribute.toLowerCase(); |
| 1151 |
if (CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase]) { |
| 1152 |
return CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase]; |
| 1153 |
} else if (SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]) { |
| 1154 |
return (0,change_case__WEBPACK_IMPORTED_MODULE_2__.paramCase)(SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]); |
| 1155 |
} else if (SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]) { |
| 1156 |
return SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]; |
| 1157 |
} |
| 1158 |
return attributeLowerCase; |
| 1159 |
} |
| 1160 |
|
| 1161 |
/** |
| 1162 |
* Returns the normal form of the style property name for HTML. |
| 1163 |
* |
| 1164 |
* - Converts property names to kebab-case, e.g. 'backgroundColor' → 'background-color' |
| 1165 |
* - Leaves custom attributes alone, e.g. '--myBackgroundColor' → '--myBackgroundColor' |
| 1166 |
* - Converts vendor-prefixed property names to -kebab-case, e.g. 'MozTransform' → '-moz-transform' |
| 1167 |
* |
| 1168 |
* @param {string} property Property name. |
| 1169 |
* |
| 1170 |
* @return {string} Normalized property name. |
| 1171 |
*/ |
| 1172 |
function getNormalStylePropertyName(property) { |
| 1173 |
if (property.startsWith('--')) { |
| 1174 |
return property; |
| 1175 |
} |
| 1176 |
if (hasPrefix(property, ['ms', 'O', 'Moz', 'Webkit'])) { |
| 1177 |
return '-' + (0,change_case__WEBPACK_IMPORTED_MODULE_2__.paramCase)(property); |
| 1178 |
} |
| 1179 |
return (0,change_case__WEBPACK_IMPORTED_MODULE_2__.paramCase)(property); |
| 1180 |
} |
| 1181 |
|
| 1182 |
/** |
| 1183 |
* Returns the normal form of the style property value for HTML. Appends a |
| 1184 |
* default pixel unit if numeric, not a unitless property, and not zero. |
| 1185 |
* |
| 1186 |
* @param {string} property Property name. |
| 1187 |
* @param {*} value Non-normalized property value. |
| 1188 |
* |
| 1189 |
* @return {*} Normalized property value. |
| 1190 |
*/ |
| 1191 |
function getNormalStylePropertyValue(property, value) { |
| 1192 |
if (typeof value === 'number' && 0 !== value && !CSS_PROPERTIES_SUPPORTS_UNITLESS.has(property)) { |
| 1193 |
return value + 'px'; |
| 1194 |
} |
| 1195 |
return value; |
| 1196 |
} |
| 1197 |
|
| 1198 |
/** |
| 1199 |
* Serializes a React element to string. |
| 1200 |
* |
| 1201 |
* @param {import('react').ReactNode} element Element to serialize. |
| 1202 |
* @param {Object} [context] Context object. |
| 1203 |
* @param {Object} [legacyContext] Legacy context object. |
| 1204 |
* |
| 1205 |
* @return {string} Serialized element. |
| 1206 |
*/ |
| 1207 |
function renderElement(element, context, legacyContext = {}) { |
| 1208 |
if (null === element || undefined === element || false === element) { |
| 1209 |
return ''; |
| 1210 |
} |
| 1211 |
if (Array.isArray(element)) { |
| 1212 |
return renderChildren(element, context, legacyContext); |
| 1213 |
} |
| 1214 |
switch (typeof element) { |
| 1215 |
case 'string': |
| 1216 |
return (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeHTML)(element); |
| 1217 |
case 'number': |
| 1218 |
return element.toString(); |
| 1219 |
} |
| 1220 |
const { |
| 1221 |
type, |
| 1222 |
props |
| 1223 |
} = /** @type {{type?: any, props?: any}} */ |
| 1224 |
element; |
| 1225 |
switch (type) { |
| 1226 |
case _react__WEBPACK_IMPORTED_MODULE_1__.StrictMode: |
| 1227 |
case _react__WEBPACK_IMPORTED_MODULE_1__.Fragment: |
| 1228 |
return renderChildren(props.children, context, legacyContext); |
| 1229 |
case _raw_html__WEBPACK_IMPORTED_MODULE_4__["default"]: |
| 1230 |
const { |
| 1231 |
children, |
| 1232 |
...wrapperProps |
| 1233 |
} = props; |
| 1234 |
return renderNativeComponent(!Object.keys(wrapperProps).length ? null : 'div', { |
| 1235 |
...wrapperProps, |
| 1236 |
dangerouslySetInnerHTML: { |
| 1237 |
__html: children |
| 1238 |
} |
| 1239 |
}, context, legacyContext); |
| 1240 |
} |
| 1241 |
switch (typeof type) { |
| 1242 |
case 'string': |
| 1243 |
return renderNativeComponent(type, props, context, legacyContext); |
| 1244 |
case 'function': |
| 1245 |
if (type.prototype && typeof type.prototype.render === 'function') { |
| 1246 |
return renderComponent(type, props, context, legacyContext); |
| 1247 |
} |
| 1248 |
return renderElement(type(props, legacyContext), context, legacyContext); |
| 1249 |
} |
| 1250 |
switch (type && type.$$typeof) { |
| 1251 |
case Provider.$$typeof: |
| 1252 |
return renderChildren(props.children, props.value, legacyContext); |
| 1253 |
case Consumer.$$typeof: |
| 1254 |
return renderElement(props.children(context || type._currentValue), context, legacyContext); |
| 1255 |
case ForwardRef.$$typeof: |
| 1256 |
return renderElement(type.render(props), context, legacyContext); |
| 1257 |
} |
| 1258 |
return ''; |
| 1259 |
} |
| 1260 |
|
| 1261 |
/** |
| 1262 |
* Serializes a native component type to string. |
| 1263 |
* |
| 1264 |
* @param {?string} type Native component type to serialize, or null if |
| 1265 |
* rendering as fragment of children content. |
| 1266 |
* @param {Object} props Props object. |
| 1267 |
* @param {Object} [context] Context object. |
| 1268 |
* @param {Object} [legacyContext] Legacy context object. |
| 1269 |
* |
| 1270 |
* @return {string} Serialized element. |
| 1271 |
*/ |
| 1272 |
function renderNativeComponent(type, props, context, legacyContext = {}) { |
| 1273 |
let content = ''; |
| 1274 |
if (type === 'textarea' && props.hasOwnProperty('value')) { |
| 1275 |
// Textarea children can be assigned as value prop. If it is, render in |
| 1276 |
// place of children. Ensure to omit so it is not assigned as attribute |
| 1277 |
// as well. |
| 1278 |
content = renderChildren(props.value, context, legacyContext); |
| 1279 |
const { |
| 1280 |
value, |
| 1281 |
...restProps |
| 1282 |
} = props; |
| 1283 |
props = restProps; |
| 1284 |
} else if (props.dangerouslySetInnerHTML && typeof props.dangerouslySetInnerHTML.__html === 'string') { |
| 1285 |
// Dangerous content is left unescaped. |
| 1286 |
content = props.dangerouslySetInnerHTML.__html; |
| 1287 |
} else if (typeof props.children !== 'undefined') { |
| 1288 |
content = renderChildren(props.children, context, legacyContext); |
| 1289 |
} |
| 1290 |
if (!type) { |
| 1291 |
return content; |
| 1292 |
} |
| 1293 |
const attributes = renderAttributes(props); |
| 1294 |
if (SELF_CLOSING_TAGS.has(type)) { |
| 1295 |
return '<' + type + attributes + '/>'; |
| 1296 |
} |
| 1297 |
return '<' + type + attributes + '>' + content + '</' + type + '>'; |
| 1298 |
} |
| 1299 |
|
| 1300 |
/** @typedef {import('react').ComponentType} ComponentType */ |
| 1301 |
|
| 1302 |
/** |
| 1303 |
* Serializes a non-native component type to string. |
| 1304 |
* |
| 1305 |
* @param {ComponentType} Component Component type to serialize. |
| 1306 |
* @param {Object} props Props object. |
| 1307 |
* @param {Object} [context] Context object. |
| 1308 |
* @param {Object} [legacyContext] Legacy context object. |
| 1309 |
* |
| 1310 |
* @return {string} Serialized element |
| 1311 |
*/ |
| 1312 |
function renderComponent(Component, props, context, legacyContext = {}) { |
| 1313 |
const instance = new ( /** @type {import('react').ComponentClass} */ |
| 1314 |
Component)(props, legacyContext); |
| 1315 |
if (typeof |
| 1316 |
// Ignore reason: Current prettier reformats parens and mangles type assertion |
| 1317 |
// prettier-ignore |
| 1318 |
/** @type {{getChildContext?: () => unknown}} */ |
| 1319 |
instance.getChildContext === 'function') { |
| 1320 |
Object.assign(legacyContext, /** @type {{getChildContext?: () => unknown}} */instance.getChildContext()); |
| 1321 |
} |
| 1322 |
const html = renderElement(instance.render(), context, legacyContext); |
| 1323 |
return html; |
| 1324 |
} |
| 1325 |
|
| 1326 |
/** |
| 1327 |
* Serializes an array of children to string. |
| 1328 |
* |
| 1329 |
* @param {import('react').ReactNodeArray} children Children to serialize. |
| 1330 |
* @param {Object} [context] Context object. |
| 1331 |
* @param {Object} [legacyContext] Legacy context object. |
| 1332 |
* |
| 1333 |
* @return {string} Serialized children. |
| 1334 |
*/ |
| 1335 |
function renderChildren(children, context, legacyContext = {}) { |
| 1336 |
let result = ''; |
| 1337 |
children = Array.isArray(children) ? children : [children]; |
| 1338 |
for (let i = 0; i < children.length; i++) { |
| 1339 |
const child = children[i]; |
| 1340 |
result += renderElement(child, context, legacyContext); |
| 1341 |
} |
| 1342 |
return result; |
| 1343 |
} |
| 1344 |
|
| 1345 |
/** |
| 1346 |
* Renders a props object as a string of HTML attributes. |
| 1347 |
* |
| 1348 |
* @param {Object} props Props object. |
| 1349 |
* |
| 1350 |
* @return {string} Attributes string. |
| 1351 |
*/ |
| 1352 |
function renderAttributes(props) { |
| 1353 |
let result = ''; |
| 1354 |
for (const key in props) { |
| 1355 |
const attribute = getNormalAttributeName(key); |
| 1356 |
if (!(0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.isValidAttributeName)(attribute)) { |
| 1357 |
continue; |
| 1358 |
} |
| 1359 |
let value = getNormalAttributeValue(key, props[key]); |
| 1360 |
|
| 1361 |
// If value is not of serializeable type, skip. |
| 1362 |
if (!ATTRIBUTES_TYPES.has(typeof value)) { |
| 1363 |
continue; |
| 1364 |
} |
| 1365 |
|
| 1366 |
// Don't render internal attribute names. |
| 1367 |
if (isInternalAttribute(key)) { |
| 1368 |
continue; |
| 1369 |
} |
| 1370 |
const isBooleanAttribute = BOOLEAN_ATTRIBUTES.has(attribute); |
| 1371 |
|
| 1372 |
// Boolean attribute should be omitted outright if its value is false. |
| 1373 |
if (isBooleanAttribute && value === false) { |
| 1374 |
continue; |
| 1375 |
} |
| 1376 |
const isMeaningfulAttribute = isBooleanAttribute || hasPrefix(key, ['data-', 'aria-']) || ENUMERATED_ATTRIBUTES.has(attribute); |
| 1377 |
|
| 1378 |
// Only write boolean value as attribute if meaningful. |
| 1379 |
if (typeof value === 'boolean' && !isMeaningfulAttribute) { |
| 1380 |
continue; |
| 1381 |
} |
| 1382 |
result += ' ' + attribute; |
| 1383 |
|
| 1384 |
// Boolean attributes should write attribute name, but without value. |
| 1385 |
// Mere presence of attribute name is effective truthiness. |
| 1386 |
if (isBooleanAttribute) { |
| 1387 |
continue; |
| 1388 |
} |
| 1389 |
if (typeof value === 'string') { |
| 1390 |
value = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeAttribute)(value); |
| 1391 |
} |
| 1392 |
result += '="' + value + '"'; |
| 1393 |
} |
| 1394 |
return result; |
| 1395 |
} |
| 1396 |
|
| 1397 |
/** |
| 1398 |
* Renders a style object as a string attribute value. |
| 1399 |
* |
| 1400 |
* @param {Object} style Style object. |
| 1401 |
* |
| 1402 |
* @return {string} Style attribute value. |
| 1403 |
*/ |
| 1404 |
function renderStyle(style) { |
| 1405 |
// Only generate from object, e.g. tolerate string value. |
| 1406 |
if (!(0,is_plain_object__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(style)) { |
| 1407 |
return style; |
| 1408 |
} |
| 1409 |
let result; |
| 1410 |
for (const property in style) { |
| 1411 |
const value = style[property]; |
| 1412 |
if (null === value || undefined === value) { |
| 1413 |
continue; |
| 1414 |
} |
| 1415 |
if (result) { |
| 1416 |
result += ';'; |
| 1417 |
} else { |
| 1418 |
result = ''; |
| 1419 |
} |
| 1420 |
const normalName = getNormalStylePropertyName(property); |
| 1421 |
const normalValue = getNormalStylePropertyValue(property, value); |
| 1422 |
result += normalName + ':' + normalValue; |
| 1423 |
} |
| 1424 |
return result; |
| 1425 |
} |
| 1426 |
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (renderElement); |
| 1427 |
//# sourceMappingURL=serialize.js.map |
| 1428 |
|
| 1429 |
/***/ }), |
| 1430 |
|
| 1431 |
/***/ "../node_modules/@wordpress/element/build-module/utils.js": |
| 1432 |
/*!****************************************************************!*\ |
| 1433 |
!*** ../node_modules/@wordpress/element/build-module/utils.js ***! |
| 1434 |
\****************************************************************/ |
| 1435 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 1436 |
|
| 1437 |
"use strict"; |
| 1438 |
__webpack_require__.r(__webpack_exports__); |
| 1439 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 1440 |
/* harmony export */ isEmptyElement: () => (/* binding */ isEmptyElement) |
| 1441 |
/* harmony export */ }); |
| 1442 |
/** |
| 1443 |
* Checks if the provided WP element is empty. |
| 1444 |
* |
| 1445 |
* @param {*} element WP element to check. |
| 1446 |
* @return {boolean} True when an element is considered empty. |
| 1447 |
*/ |
| 1448 |
const isEmptyElement = element => { |
| 1449 |
if (typeof element === 'number') { |
| 1450 |
return false; |
| 1451 |
} |
| 1452 |
if (typeof element?.valueOf() === 'string' || Array.isArray(element)) { |
| 1453 |
return !element.length; |
| 1454 |
} |
| 1455 |
return !element; |
| 1456 |
}; |
| 1457 |
//# sourceMappingURL=utils.js.map |
| 1458 |
|
| 1459 |
/***/ }), |
| 1460 |
|
| 1461 |
/***/ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js": |
| 1462 |
/*!*****************************************************************************!*\ |
| 1463 |
!*** ../node_modules/@wordpress/escape-html/build-module/escape-greater.js ***! |
| 1464 |
\*****************************************************************************/ |
| 1465 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 1466 |
|
| 1467 |
"use strict"; |
| 1468 |
__webpack_require__.r(__webpack_exports__); |
| 1469 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 1470 |
/* harmony export */ "default": () => (/* binding */ __unstableEscapeGreaterThan) |
| 1471 |
/* harmony export */ }); |
| 1472 |
/** |
| 1473 |
* Returns a string with greater-than sign replaced. |
| 1474 |
* |
| 1475 |
* Note that if a resolution for Trac#45387 comes to fruition, it is no longer |
| 1476 |
* necessary for `__unstableEscapeGreaterThan` to exist. |
| 1477 |
* |
| 1478 |
* See: https://core.trac.wordpress.org/ticket/45387 |
| 1479 |
* |
| 1480 |
* @param {string} value Original string. |
| 1481 |
* |
| 1482 |
* @return {string} Escaped string. |
| 1483 |
*/ |
| 1484 |
function __unstableEscapeGreaterThan(value) { |
| 1485 |
return value.replace(/>/g, '>'); |
| 1486 |
} |
| 1487 |
//# sourceMappingURL=escape-greater.js.map |
| 1488 |
|
| 1489 |
/***/ }), |
| 1490 |
|
| 1491 |
/***/ "../node_modules/@wordpress/escape-html/build-module/index.js": |
| 1492 |
/*!********************************************************************!*\ |
| 1493 |
!*** ../node_modules/@wordpress/escape-html/build-module/index.js ***! |
| 1494 |
\********************************************************************/ |
| 1495 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 1496 |
|
| 1497 |
"use strict"; |
| 1498 |
__webpack_require__.r(__webpack_exports__); |
| 1499 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 1500 |
/* harmony export */ escapeAmpersand: () => (/* binding */ escapeAmpersand), |
| 1501 |
/* harmony export */ escapeAttribute: () => (/* binding */ escapeAttribute), |
| 1502 |
/* harmony export */ escapeEditableHTML: () => (/* binding */ escapeEditableHTML), |
| 1503 |
/* harmony export */ escapeHTML: () => (/* binding */ escapeHTML), |
| 1504 |
/* harmony export */ escapeLessThan: () => (/* binding */ escapeLessThan), |
| 1505 |
/* harmony export */ escapeQuotationMark: () => (/* binding */ escapeQuotationMark), |
| 1506 |
/* harmony export */ isValidAttributeName: () => (/* binding */ isValidAttributeName) |
| 1507 |
/* harmony export */ }); |
| 1508 |
/* harmony import */ var _escape_greater__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-greater */ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js"); |
| 1509 |
/** |
| 1510 |
* Internal dependencies |
| 1511 |
*/ |
| 1512 |
|
| 1513 |
|
| 1514 |
/** |
| 1515 |
* Regular expression matching invalid attribute names. |
| 1516 |
* |
| 1517 |
* "Attribute names must consist of one or more characters other than controls, |
| 1518 |
* U+0020 SPACE, U+0022 ("), U+0027 ('), U+003E (>), U+002F (/), U+003D (=), |
| 1519 |
* and noncharacters." |
| 1520 |
* |
| 1521 |
* @see https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 |
| 1522 |
* |
| 1523 |
* @type {RegExp} |
| 1524 |
*/ |
| 1525 |
const REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/; |
| 1526 |
|
| 1527 |
/** |
| 1528 |
* Returns a string with ampersands escaped. Note that this is an imperfect |
| 1529 |
* implementation, where only ampersands which do not appear as a pattern of |
| 1530 |
* named, decimal, or hexadecimal character references are escaped. Invalid |
| 1531 |
* named references (i.e. ambiguous ampersand) are still permitted. |
| 1532 |
* |
| 1533 |
* @see https://w3c.github.io/html/syntax.html#character-references |
| 1534 |
* @see https://w3c.github.io/html/syntax.html#ambiguous-ampersand |
| 1535 |
* @see https://w3c.github.io/html/syntax.html#named-character-references |
| 1536 |
* |
| 1537 |
* @param {string} value Original string. |
| 1538 |
* |
| 1539 |
* @return {string} Escaped string. |
| 1540 |
*/ |
| 1541 |
function escapeAmpersand(value) { |
| 1542 |
return value.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi, '&'); |
| 1543 |
} |
| 1544 |
|
| 1545 |
/** |
| 1546 |
* Returns a string with quotation marks replaced. |
| 1547 |
* |
| 1548 |
* @param {string} value Original string. |
| 1549 |
* |
| 1550 |
* @return {string} Escaped string. |
| 1551 |
*/ |
| 1552 |
function escapeQuotationMark(value) { |
| 1553 |
return value.replace(/"/g, '"'); |
| 1554 |
} |
| 1555 |
|
| 1556 |
/** |
| 1557 |
* Returns a string with less-than sign replaced. |
| 1558 |
* |
| 1559 |
* @param {string} value Original string. |
| 1560 |
* |
| 1561 |
* @return {string} Escaped string. |
| 1562 |
*/ |
| 1563 |
function escapeLessThan(value) { |
| 1564 |
return value.replace(/</g, '<'); |
| 1565 |
} |
| 1566 |
|
| 1567 |
/** |
| 1568 |
* Returns an escaped attribute value. |
| 1569 |
* |
| 1570 |
* @see https://w3c.github.io/html/syntax.html#elements-attributes |
| 1571 |
* |
| 1572 |
* "[...] the text cannot contain an ambiguous ampersand [...] must not contain |
| 1573 |
* any literal U+0022 QUOTATION MARK characters (")" |
| 1574 |
* |
| 1575 |
* Note we also escape the greater than symbol, as this is used by wptexturize to |
| 1576 |
* split HTML strings. This is a WordPress specific fix |
| 1577 |
* |
| 1578 |
* Note that if a resolution for Trac#45387 comes to fruition, it is no longer |
| 1579 |
* necessary for `__unstableEscapeGreaterThan` to be used. |
| 1580 |
* |
| 1581 |
* See: https://core.trac.wordpress.org/ticket/45387 |
| 1582 |
* |
| 1583 |
* @param {string} value Attribute value. |
| 1584 |
* |
| 1585 |
* @return {string} Escaped attribute value. |
| 1586 |
*/ |
| 1587 |
function escapeAttribute(value) { |
| 1588 |
return (0,_escape_greater__WEBPACK_IMPORTED_MODULE_0__["default"])(escapeQuotationMark(escapeAmpersand(value))); |
| 1589 |
} |
| 1590 |
|
| 1591 |
/** |
| 1592 |
* Returns an escaped HTML element value. |
| 1593 |
* |
| 1594 |
* @see https://w3c.github.io/html/syntax.html#writing-html-documents-elements |
| 1595 |
* |
| 1596 |
* "the text must not contain the character U+003C LESS-THAN SIGN (<) or an |
| 1597 |
* ambiguous ampersand." |
| 1598 |
* |
| 1599 |
* @param {string} value Element value. |
| 1600 |
* |
| 1601 |
* @return {string} Escaped HTML element value. |
| 1602 |
*/ |
| 1603 |
function escapeHTML(value) { |
| 1604 |
return escapeLessThan(escapeAmpersand(value)); |
| 1605 |
} |
| 1606 |
|
| 1607 |
/** |
| 1608 |
* Returns an escaped Editable HTML element value. This is different from |
| 1609 |
* `escapeHTML`, because for editable HTML, ALL ampersands must be escaped in |
| 1610 |
* order to render the content correctly on the page. |
| 1611 |
* |
| 1612 |
* @param {string} value Element value. |
| 1613 |
* |
| 1614 |
* @return {string} Escaped HTML element value. |
| 1615 |
*/ |
| 1616 |
function escapeEditableHTML(value) { |
| 1617 |
return escapeLessThan(value.replace(/&/g, '&')); |
| 1618 |
} |
| 1619 |
|
| 1620 |
/** |
| 1621 |
* Returns true if the given attribute name is valid, or false otherwise. |
| 1622 |
* |
| 1623 |
* @param {string} name Attribute name to test. |
| 1624 |
* |
| 1625 |
* @return {boolean} Whether attribute is valid. |
| 1626 |
*/ |
| 1627 |
function isValidAttributeName(name) { |
| 1628 |
return !REGEXP_INVALID_ATTRIBUTE_NAME.test(name); |
| 1629 |
} |
| 1630 |
//# sourceMappingURL=index.js.map |
| 1631 |
|
| 1632 |
/***/ }), |
| 1633 |
|
| 1634 |
/***/ "../modules/element-manager/assets/js/api.js": |
| 1635 |
/*!***************************************************!*\ |
| 1636 |
!*** ../modules/element-manager/assets/js/api.js ***! |
| 1637 |
\***************************************************/ |
| 1638 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 1639 |
|
| 1640 |
"use strict"; |
| 1641 |
|
| 1642 |
|
| 1643 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 1644 |
Object.defineProperty(exports, "__esModule", ({ |
| 1645 |
value: true |
| 1646 |
})); |
| 1647 |
exports.saveDisabledWidgets = exports.markNoticeViewed = exports.getUsageWidgets = exports.getAdminAppData = void 0; |
| 1648 |
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); |
| 1649 |
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); |
| 1650 |
var saveDisabledWidgets = /*#__PURE__*/function () { |
| 1651 |
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(widgetsDisabled) { |
| 1652 |
var elementsRestriction, |
| 1653 |
bodyData, |
| 1654 |
_args = arguments; |
| 1655 |
return _regenerator.default.wrap(function _callee$(_context) { |
| 1656 |
while (1) switch (_context.prev = _context.next) { |
| 1657 |
case 0: |
| 1658 |
elementsRestriction = _args.length > 1 && _args[1] !== undefined ? _args[1] : {}; |
| 1659 |
_context.prev = 1; |
| 1660 |
bodyData = { |
| 1661 |
action: 'elementor_element_manager_save_disabled_elements', |
| 1662 |
nonce: eElementManagerConfig.nonce, |
| 1663 |
widgets: JSON.stringify(widgetsDisabled) |
| 1664 |
}; |
| 1665 |
if (null !== elementsRestriction) { |
| 1666 |
bodyData.elements_restriction = JSON.stringify(elementsRestriction); |
| 1667 |
} |
| 1668 |
_context.next = 6; |
| 1669 |
return fetch(eElementManagerConfig.ajaxurl, { |
| 1670 |
method: 'POST', |
| 1671 |
headers: { |
| 1672 |
'Content-Type': 'application/x-www-form-urlencoded' |
| 1673 |
}, |
| 1674 |
body: new URLSearchParams(bodyData) |
| 1675 |
}); |
| 1676 |
case 6: |
| 1677 |
_context.next = 11; |
| 1678 |
break; |
| 1679 |
case 8: |
| 1680 |
_context.prev = 8; |
| 1681 |
_context.t0 = _context["catch"](1); |
| 1682 |
console.error(_context.t0); // eslint-disable-line no-console |
| 1683 |
case 11: |
| 1684 |
case "end": |
| 1685 |
return _context.stop(); |
| 1686 |
} |
| 1687 |
}, _callee, null, [[1, 8]]); |
| 1688 |
})); |
| 1689 |
return function saveDisabledWidgets(_x) { |
| 1690 |
return _ref.apply(this, arguments); |
| 1691 |
}; |
| 1692 |
}(); |
| 1693 |
exports.saveDisabledWidgets = saveDisabledWidgets; |
| 1694 |
var getAdminAppData = /*#__PURE__*/function () { |
| 1695 |
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() { |
| 1696 |
var response, data; |
| 1697 |
return _regenerator.default.wrap(function _callee2$(_context2) { |
| 1698 |
while (1) switch (_context2.prev = _context2.next) { |
| 1699 |
case 0: |
| 1700 |
_context2.prev = 0; |
| 1701 |
_context2.next = 3; |
| 1702 |
return fetch(eElementManagerConfig.ajaxurl, { |
| 1703 |
method: 'POST', |
| 1704 |
headers: { |
| 1705 |
'Content-Type': 'application/x-www-form-urlencoded' |
| 1706 |
}, |
| 1707 |
body: new URLSearchParams({ |
| 1708 |
action: 'elementor_element_manager_get_admin_app_data', |
| 1709 |
nonce: eElementManagerConfig.nonce |
| 1710 |
}) |
| 1711 |
}); |
| 1712 |
case 3: |
| 1713 |
response = _context2.sent; |
| 1714 |
_context2.next = 6; |
| 1715 |
return response.json(); |
| 1716 |
case 6: |
| 1717 |
data = _context2.sent; |
| 1718 |
if (!data.success) { |
| 1719 |
_context2.next = 9; |
| 1720 |
break; |
| 1721 |
} |
| 1722 |
return _context2.abrupt("return", data.data); |
| 1723 |
case 9: |
| 1724 |
_context2.next = 14; |
| 1725 |
break; |
| 1726 |
case 11: |
| 1727 |
_context2.prev = 11; |
| 1728 |
_context2.t0 = _context2["catch"](0); |
| 1729 |
console.error(_context2.t0); // eslint-disable-line no-console |
| 1730 |
case 14: |
| 1731 |
case "end": |
| 1732 |
return _context2.stop(); |
| 1733 |
} |
| 1734 |
}, _callee2, null, [[0, 11]]); |
| 1735 |
})); |
| 1736 |
return function getAdminAppData() { |
| 1737 |
return _ref2.apply(this, arguments); |
| 1738 |
}; |
| 1739 |
}(); |
| 1740 |
exports.getAdminAppData = getAdminAppData; |
| 1741 |
var getUsageWidgets = /*#__PURE__*/function () { |
| 1742 |
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() { |
| 1743 |
var response, data; |
| 1744 |
return _regenerator.default.wrap(function _callee3$(_context3) { |
| 1745 |
while (1) switch (_context3.prev = _context3.next) { |
| 1746 |
case 0: |
| 1747 |
_context3.prev = 0; |
| 1748 |
_context3.next = 3; |
| 1749 |
return fetch(eElementManagerConfig.ajaxurl, { |
| 1750 |
method: 'POST', |
| 1751 |
headers: { |
| 1752 |
'Content-Type': 'application/x-www-form-urlencoded' |
| 1753 |
}, |
| 1754 |
body: new URLSearchParams({ |
| 1755 |
action: 'elementor_element_manager_get_widgets_usage', |
| 1756 |
nonce: eElementManagerConfig.nonce |
| 1757 |
}) |
| 1758 |
}); |
| 1759 |
case 3: |
| 1760 |
response = _context3.sent; |
| 1761 |
_context3.next = 6; |
| 1762 |
return response.json(); |
| 1763 |
case 6: |
| 1764 |
data = _context3.sent; |
| 1765 |
if (!data.success) { |
| 1766 |
_context3.next = 9; |
| 1767 |
break; |
| 1768 |
} |
| 1769 |
return _context3.abrupt("return", data.data); |
| 1770 |
case 9: |
| 1771 |
_context3.next = 14; |
| 1772 |
break; |
| 1773 |
case 11: |
| 1774 |
_context3.prev = 11; |
| 1775 |
_context3.t0 = _context3["catch"](0); |
| 1776 |
console.error(_context3.t0); // eslint-disable-line no-console |
| 1777 |
case 14: |
| 1778 |
case "end": |
| 1779 |
return _context3.stop(); |
| 1780 |
} |
| 1781 |
}, _callee3, null, [[0, 11]]); |
| 1782 |
})); |
| 1783 |
return function getUsageWidgets() { |
| 1784 |
return _ref3.apply(this, arguments); |
| 1785 |
}; |
| 1786 |
}(); |
| 1787 |
exports.getUsageWidgets = getUsageWidgets; |
| 1788 |
var markNoticeViewed = /*#__PURE__*/function () { |
| 1789 |
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(noticeId) { |
| 1790 |
var response, data; |
| 1791 |
return _regenerator.default.wrap(function _callee4$(_context4) { |
| 1792 |
while (1) switch (_context4.prev = _context4.next) { |
| 1793 |
case 0: |
| 1794 |
_context4.prev = 0; |
| 1795 |
_context4.next = 3; |
| 1796 |
return fetch(eElementManagerConfig.ajaxurl, { |
| 1797 |
method: 'POST', |
| 1798 |
headers: { |
| 1799 |
'Content-Type': 'application/x-www-form-urlencoded' |
| 1800 |
}, |
| 1801 |
body: new URLSearchParams({ |
| 1802 |
action: 'elementor_set_admin_notice_viewed', |
| 1803 |
notice_id: noticeId |
| 1804 |
}) |
| 1805 |
}); |
| 1806 |
case 3: |
| 1807 |
response = _context4.sent; |
| 1808 |
_context4.next = 6; |
| 1809 |
return response.json(); |
| 1810 |
case 6: |
| 1811 |
data = _context4.sent; |
| 1812 |
if (!data.success) { |
| 1813 |
_context4.next = 9; |
| 1814 |
break; |
| 1815 |
} |
| 1816 |
return _context4.abrupt("return", data.data); |
| 1817 |
case 9: |
| 1818 |
_context4.next = 14; |
| 1819 |
break; |
| 1820 |
case 11: |
| 1821 |
_context4.prev = 11; |
| 1822 |
_context4.t0 = _context4["catch"](0); |
| 1823 |
console.error(_context4.t0); // eslint-disable-line no-console |
| 1824 |
case 14: |
| 1825 |
case "end": |
| 1826 |
return _context4.stop(); |
| 1827 |
} |
| 1828 |
}, _callee4, null, [[0, 11]]); |
| 1829 |
})); |
| 1830 |
return function markNoticeViewed(_x2) { |
| 1831 |
return _ref4.apply(this, arguments); |
| 1832 |
}; |
| 1833 |
}(); |
| 1834 |
exports.markNoticeViewed = markNoticeViewed; |
| 1835 |
|
| 1836 |
/***/ }), |
| 1837 |
|
| 1838 |
/***/ "../modules/element-manager/assets/js/app.js": |
| 1839 |
/*!***************************************************!*\ |
| 1840 |
!*** ../modules/element-manager/assets/js/app.js ***! |
| 1841 |
\***************************************************/ |
| 1842 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 1843 |
|
| 1844 |
"use strict"; |
| 1845 |
|
| 1846 |
|
| 1847 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 1848 |
Object.defineProperty(exports, "__esModule", ({ |
| 1849 |
value: true |
| 1850 |
})); |
| 1851 |
exports.App = void 0; |
| 1852 |
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 1853 |
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); |
| 1854 |
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js")); |
| 1855 |
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 1856 |
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); |
| 1857 |
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 1858 |
var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js"); |
| 1859 |
var _components = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); |
| 1860 |
var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); |
| 1861 |
var _upgradeButton = __webpack_require__(/*! ./upgrade-button */ "../modules/element-manager/assets/js/upgrade-button.js"); |
| 1862 |
var _api = __webpack_require__(/*! ./api */ "../modules/element-manager/assets/js/api.js"); |
| 1863 |
var _rolePermissions = __webpack_require__(/*! ./role-permissions */ "../modules/element-manager/assets/js/role-permissions.js"); |
| 1864 |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } |
| 1865 |
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /* eslint-disable react/prop-types */ |
| 1866 |
var App = function App() { |
| 1867 |
var _useState = (0, _element.useState)(true), |
| 1868 |
_useState2 = (0, _slicedToArray2.default)(_useState, 2), |
| 1869 |
isLoading = _useState2[0], |
| 1870 |
setIsLoading = _useState2[1]; |
| 1871 |
var _useState3 = (0, _element.useState)(''), |
| 1872 |
_useState4 = (0, _slicedToArray2.default)(_useState3, 2), |
| 1873 |
searchKeyword = _useState4[0], |
| 1874 |
setSearchKeyword = _useState4[1]; |
| 1875 |
var _useState5 = (0, _element.useState)([]), |
| 1876 |
_useState6 = (0, _slicedToArray2.default)(_useState5, 2), |
| 1877 |
widgets = _useState6[0], |
| 1878 |
setWidgets = _useState6[1]; |
| 1879 |
var _useState7 = (0, _element.useState)([]), |
| 1880 |
_useState8 = (0, _slicedToArray2.default)(_useState7, 2), |
| 1881 |
promotionWidgets = _useState8[0], |
| 1882 |
setPromotionWidgets = _useState8[1]; |
| 1883 |
var _useState9 = (0, _element.useState)([]), |
| 1884 |
_useState10 = (0, _slicedToArray2.default)(_useState9, 2), |
| 1885 |
plugins = _useState10[0], |
| 1886 |
setPlugins = _useState10[1]; |
| 1887 |
var _useState11 = (0, _element.useState)([]), |
| 1888 |
_useState12 = (0, _slicedToArray2.default)(_useState11, 2), |
| 1889 |
roles = _useState12[0], |
| 1890 |
setRoles = _useState12[1]; |
| 1891 |
var _useState13 = (0, _element.useState)({ |
| 1892 |
isLoading: false, |
| 1893 |
data: null |
| 1894 |
}), |
| 1895 |
_useState14 = (0, _slicedToArray2.default)(_useState13, 2), |
| 1896 |
usageWidgets = _useState14[0], |
| 1897 |
setUsageWidgets = _useState14[1]; |
| 1898 |
var _useState15 = (0, _element.useState)([]), |
| 1899 |
_useState16 = (0, _slicedToArray2.default)(_useState15, 2), |
| 1900 |
widgetsDisabled = _useState16[0], |
| 1901 |
setWidgetsDisabled = _useState16[1]; |
| 1902 |
var _useState17 = (0, _element.useState)('widget'), |
| 1903 |
_useState18 = (0, _slicedToArray2.default)(_useState17, 2), |
| 1904 |
sortingColumn = _useState18[0], |
| 1905 |
setSortingColumn = _useState18[1]; |
| 1906 |
var _useState19 = (0, _element.useState)('asc'), |
| 1907 |
_useState20 = (0, _slicedToArray2.default)(_useState19, 2), |
| 1908 |
sortingDirection = _useState20[0], |
| 1909 |
setSortingDirection = _useState20[1]; |
| 1910 |
var _useState21 = (0, _element.useState)(''), |
| 1911 |
_useState22 = (0, _slicedToArray2.default)(_useState21, 2), |
| 1912 |
filterByPlugin = _useState22[0], |
| 1913 |
setFilterByPlugin = _useState22[1]; |
| 1914 |
var _useState23 = (0, _element.useState)('all'), |
| 1915 |
_useState24 = (0, _slicedToArray2.default)(_useState23, 2), |
| 1916 |
filterByStatus = _useState24[0], |
| 1917 |
setFilterByStatus = _useState24[1]; |
| 1918 |
var _useState25 = (0, _element.useState)({ |
| 1919 |
isSaving: false, |
| 1920 |
isUnsavedChanges: false |
| 1921 |
}), |
| 1922 |
_useState26 = (0, _slicedToArray2.default)(_useState25, 2), |
| 1923 |
changeProgress = _useState26[0], |
| 1924 |
setChangeProgress = _useState26[1]; |
| 1925 |
var _useState27 = (0, _element.useState)(false), |
| 1926 |
_useState28 = (0, _slicedToArray2.default)(_useState27, 2), |
| 1927 |
isConfirmDialogOpen = _useState28[0], |
| 1928 |
setIsConfirmDialogOpen = _useState28[1]; |
| 1929 |
var _useState29 = (0, _element.useState)(false), |
| 1930 |
_useState30 = (0, _slicedToArray2.default)(_useState29, 2), |
| 1931 |
isSnackbarOpen = _useState30[0], |
| 1932 |
setIsSnackbarOpen = _useState30[1]; |
| 1933 |
var _useState31 = (0, _element.useState)(null), |
| 1934 |
_useState32 = (0, _slicedToArray2.default)(_useState31, 2), |
| 1935 |
noticeData = _useState32[0], |
| 1936 |
setNoticeData = _useState32[1]; |
| 1937 |
var _useState33 = (0, _element.useState)(null), |
| 1938 |
_useState34 = (0, _slicedToArray2.default)(_useState33, 2), |
| 1939 |
widgetsRoleRestrictions = _useState34[0], |
| 1940 |
setWidgetsRoleRestrictions = _useState34[1]; |
| 1941 |
var _useState35 = (0, _element.useState)([]), |
| 1942 |
_useState36 = (0, _slicedToArray2.default)(_useState35, 2), |
| 1943 |
promotionData = _useState36[0], |
| 1944 |
setPromotionData = _useState36[1]; |
| 1945 |
var managerPermissions = promotionData.manager_permissions, |
| 1946 |
elementManager = promotionData.element_manager; |
| 1947 |
var getWidgetUsage = function getWidgetUsage(widgetName) { |
| 1948 |
if (!usageWidgets.data || !usageWidgets.data.hasOwnProperty(widgetName)) { |
| 1949 |
return 0; |
| 1950 |
} |
| 1951 |
return usageWidgets.data[widgetName]; |
| 1952 |
}; |
| 1953 |
var sortedAndFilteredWidgets = (0, _element.useMemo)(function () { |
| 1954 |
var filteredWidgets = widgets.filter(function (widget) { |
| 1955 |
return widget.title.toLowerCase().includes(searchKeyword.toLowerCase()); |
| 1956 |
}); |
| 1957 |
if ('' !== filterByPlugin) { |
| 1958 |
filteredWidgets = filteredWidgets.filter(function (widget) { |
| 1959 |
return widget.plugin.toLowerCase() === filterByPlugin.toLowerCase(); |
| 1960 |
}); |
| 1961 |
} |
| 1962 |
if ('all' !== filterByStatus) { |
| 1963 |
filteredWidgets = filteredWidgets.filter(function (widget) { |
| 1964 |
if ('active' === filterByStatus) { |
| 1965 |
return !widgetsDisabled.includes(widget.name); |
| 1966 |
} |
| 1967 |
return widgetsDisabled.includes(widget.name); |
| 1968 |
}); |
| 1969 |
} |
| 1970 |
filteredWidgets.sort(function (a, b) { |
| 1971 |
var aValue; |
| 1972 |
var bValue; |
| 1973 |
if ('widget' === sortingColumn) { |
| 1974 |
aValue = a.title; |
| 1975 |
bValue = b.title; |
| 1976 |
} |
| 1977 |
if ('usage' === sortingColumn) { |
| 1978 |
aValue = getWidgetUsage(a.name); |
| 1979 |
bValue = getWidgetUsage(b.name); |
| 1980 |
} |
| 1981 |
if (aValue === bValue) { |
| 1982 |
return 0; |
| 1983 |
} |
| 1984 |
if ('asc' === sortingDirection) { |
| 1985 |
return aValue < bValue ? -1 : 1; |
| 1986 |
} |
| 1987 |
return aValue > bValue ? -1 : 1; |
| 1988 |
}); |
| 1989 |
return filteredWidgets; |
| 1990 |
}, [widgets, searchKeyword, sortingColumn, sortingDirection, filterByPlugin, usageWidgets, filterByStatus, widgetsDisabled]); |
| 1991 |
var getSortingIndicatorClasses = function getSortingIndicatorClasses(column) { |
| 1992 |
if (sortingColumn !== column) { |
| 1993 |
return ''; |
| 1994 |
} |
| 1995 |
if ('asc' === sortingDirection) { |
| 1996 |
return 'sorted asc'; |
| 1997 |
} |
| 1998 |
return 'sorted desc'; |
| 1999 |
}; |
| 2000 |
var onSortingClicked = function onSortingClicked(column) { |
| 2001 |
if (sortingColumn === column) { |
| 2002 |
if ('asc' === sortingDirection) { |
| 2003 |
setSortingDirection('desc'); |
| 2004 |
} else { |
| 2005 |
setSortingDirection('asc'); |
| 2006 |
} |
| 2007 |
} else { |
| 2008 |
setSortingColumn(column); |
| 2009 |
setSortingDirection('asc'); |
| 2010 |
} |
| 2011 |
}; |
| 2012 |
var onSaveClicked = /*#__PURE__*/function () { |
| 2013 |
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { |
| 2014 |
return _regenerator.default.wrap(function _callee$(_context) { |
| 2015 |
while (1) switch (_context.prev = _context.next) { |
| 2016 |
case 0: |
| 2017 |
setIsConfirmDialogOpen(false); |
| 2018 |
setChangeProgress(_objectSpread(_objectSpread({}, changeProgress), {}, { |
| 2019 |
isSaving: true |
| 2020 |
})); |
| 2021 |
_context.next = 4; |
| 2022 |
return (0, _api.saveDisabledWidgets)(widgetsDisabled, widgetsRoleRestrictions); |
| 2023 |
case 4: |
| 2024 |
setChangeProgress(_objectSpread(_objectSpread({}, changeProgress), {}, { |
| 2025 |
isSaving: false, |
| 2026 |
isUnsavedChanges: false |
| 2027 |
})); |
| 2028 |
setIsSnackbarOpen(true); |
| 2029 |
case 6: |
| 2030 |
case "end": |
| 2031 |
return _context.stop(); |
| 2032 |
} |
| 2033 |
}, _callee); |
| 2034 |
})); |
| 2035 |
return function onSaveClicked() { |
| 2036 |
return _ref.apply(this, arguments); |
| 2037 |
}; |
| 2038 |
}(); |
| 2039 |
var deactivateAllUnusedWidgets = function deactivateAllUnusedWidgets() { |
| 2040 |
var widgetsToDeactivate = widgets.filter(function (widget) { |
| 2041 |
return !usageWidgets.data.hasOwnProperty(widget.name) || widgetsDisabled.includes(widget.name); |
| 2042 |
}); |
| 2043 |
setWidgetsDisabled(widgetsToDeactivate.map(function (widget) { |
| 2044 |
return widget.name; |
| 2045 |
})); |
| 2046 |
}; |
| 2047 |
var enableAllWidgets = function enableAllWidgets() { |
| 2048 |
setWidgetsDisabled([]); |
| 2049 |
}; |
| 2050 |
var onScanUsageElementsClicked = /*#__PURE__*/function () { |
| 2051 |
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() { |
| 2052 |
var data; |
| 2053 |
return _regenerator.default.wrap(function _callee2$(_context2) { |
| 2054 |
while (1) switch (_context2.prev = _context2.next) { |
| 2055 |
case 0: |
| 2056 |
setUsageWidgets(_objectSpread(_objectSpread({}, usageWidgets), {}, { |
| 2057 |
isLoading: true |
| 2058 |
})); |
| 2059 |
_context2.next = 3; |
| 2060 |
return (0, _api.getUsageWidgets)(); |
| 2061 |
case 3: |
| 2062 |
data = _context2.sent; |
| 2063 |
setUsageWidgets({ |
| 2064 |
data: data, |
| 2065 |
isLoading: false |
| 2066 |
}); |
| 2067 |
setSortingColumn('usage'); |
| 2068 |
setSortingDirection('desc'); |
| 2069 |
case 7: |
| 2070 |
case "end": |
| 2071 |
return _context2.stop(); |
| 2072 |
} |
| 2073 |
}, _callee2); |
| 2074 |
})); |
| 2075 |
return function onScanUsageElementsClicked() { |
| 2076 |
return _ref2.apply(this, arguments); |
| 2077 |
}; |
| 2078 |
}(); |
| 2079 |
var UsageTimesColumn = function UsageTimesColumn(_ref3) { |
| 2080 |
var widgetName = _ref3.widgetName; |
| 2081 |
if (null !== usageWidgets.data) { |
| 2082 |
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, getWidgetUsage(widgetName), " ", (0, _i18n.__)('times', 'elementor')); |
| 2083 |
} |
| 2084 |
if (usageWidgets.isLoading) { |
| 2085 |
return /*#__PURE__*/_react.default.createElement(_components.Spinner, null); |
| 2086 |
} |
| 2087 |
return /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2088 |
onClick: onScanUsageElementsClicked, |
| 2089 |
size: 'small', |
| 2090 |
variant: 'secondary' |
| 2091 |
}, (0, _i18n.__)('Show', 'elementor')); |
| 2092 |
}; |
| 2093 |
(0, _element.useEffect)(function () { |
| 2094 |
var onLoading = /*#__PURE__*/function () { |
| 2095 |
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() { |
| 2096 |
var _appData$additional_d, _appData$additional_d2; |
| 2097 |
var appData, pluginsData; |
| 2098 |
return _regenerator.default.wrap(function _callee3$(_context3) { |
| 2099 |
while (1) switch (_context3.prev = _context3.next) { |
| 2100 |
case 0: |
| 2101 |
_context3.next = 2; |
| 2102 |
return (0, _api.getAdminAppData)(); |
| 2103 |
case 2: |
| 2104 |
appData = _context3.sent; |
| 2105 |
setNoticeData(appData.notice_data); |
| 2106 |
setWidgetsDisabled(appData.disabled_elements); |
| 2107 |
setWidgets(appData.widgets); |
| 2108 |
setPromotionWidgets(appData.promotion_widgets); |
| 2109 |
setPromotionData(appData.promotion_data); |
| 2110 |
if ((_appData$additional_d = appData.additional_data) !== null && _appData$additional_d !== void 0 && _appData$additional_d.roles) { |
| 2111 |
setRoles(appData.additional_data.roles); |
| 2112 |
} |
| 2113 |
if ((_appData$additional_d2 = appData.additional_data) !== null && _appData$additional_d2 !== void 0 && _appData$additional_d2.role_restrictions) { |
| 2114 |
setWidgetsRoleRestrictions(appData.additional_data.role_restrictions); |
| 2115 |
} |
| 2116 |
pluginsData = appData.plugins.map(function (plugin) { |
| 2117 |
return { |
| 2118 |
label: plugin, |
| 2119 |
value: plugin |
| 2120 |
}; |
| 2121 |
}); |
| 2122 |
pluginsData.unshift({ |
| 2123 |
label: (0, _i18n.__)('All Plugins', 'elementor'), |
| 2124 |
value: '' |
| 2125 |
}); |
| 2126 |
setPlugins(pluginsData); |
| 2127 |
setIsLoading(false); |
| 2128 |
case 14: |
| 2129 |
case "end": |
| 2130 |
return _context3.stop(); |
| 2131 |
} |
| 2132 |
}, _callee3); |
| 2133 |
})); |
| 2134 |
return function onLoading() { |
| 2135 |
return _ref4.apply(this, arguments); |
| 2136 |
}; |
| 2137 |
}(); |
| 2138 |
onLoading(); |
| 2139 |
}, []); |
| 2140 |
(0, _element.useEffect)(function () { |
| 2141 |
if (isLoading) { |
| 2142 |
return; |
| 2143 |
} |
| 2144 |
setChangeProgress(_objectSpread(_objectSpread({}, changeProgress), {}, { |
| 2145 |
isUnsavedChanges: true |
| 2146 |
})); |
| 2147 |
}, [widgetsDisabled, widgetsRoleRestrictions]); |
| 2148 |
(0, _element.useEffect)(function () { |
| 2149 |
var handleBeforeUnload = function handleBeforeUnload(event) { |
| 2150 |
event.preventDefault(); |
| 2151 |
event.returnValue = ''; |
| 2152 |
}; |
| 2153 |
if (changeProgress.isUnsavedChanges) { |
| 2154 |
window.addEventListener('beforeunload', handleBeforeUnload); |
| 2155 |
} else { |
| 2156 |
window.removeEventListener('beforeunload', handleBeforeUnload); |
| 2157 |
} |
| 2158 |
return function () { |
| 2159 |
window.removeEventListener('beforeunload', handleBeforeUnload); |
| 2160 |
}; |
| 2161 |
}, [changeProgress.isUnsavedChanges]); |
| 2162 |
if (isLoading) { |
| 2163 |
return /*#__PURE__*/_react.default.createElement(_components.Flex, { |
| 2164 |
justify: 'center', |
| 2165 |
style: { |
| 2166 |
margin: '100px' |
| 2167 |
} |
| 2168 |
}, /*#__PURE__*/_react.default.createElement(_components.Spinner, { |
| 2169 |
style: { |
| 2170 |
height: 'calc(4px * 20)', |
| 2171 |
width: 'calc(4px * 20)' |
| 2172 |
} |
| 2173 |
})); |
| 2174 |
} |
| 2175 |
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", { |
| 2176 |
style: { |
| 2177 |
marginBottom: '20px', |
| 2178 |
maxWidth: '800px' |
| 2179 |
} |
| 2180 |
}, (0, _i18n.__)('Here\'s where you can fine-tune Elementor to your workflow. Disable elements you don\'t use for a cleaner interface, more focused creative experience, and improved performance.', 'elementor'), ' ', /*#__PURE__*/_react.default.createElement("a", { |
| 2181 |
href: "https://go.elementor.com/wp-dash-element-manager/", |
| 2182 |
rel: 'noreferrer', |
| 2183 |
target: '_blank' |
| 2184 |
}, (0, _i18n.__)('Learn More', 'elementor'))), !noticeData.is_viewed && /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_components.Notice, { |
| 2185 |
onRemove: function onRemove() { |
| 2186 |
(0, _api.markNoticeViewed)(noticeData.notice_id); |
| 2187 |
setNoticeData(_objectSpread(_objectSpread({}, noticeData), {}, { |
| 2188 |
is_viewed: true |
| 2189 |
})); |
| 2190 |
}, |
| 2191 |
status: "warning" |
| 2192 |
}, /*#__PURE__*/_react.default.createElement("strong", null, (0, _i18n.__)('Before you continue:', 'elementor')), " ", (0, _i18n.__)('Deactivating widgets here will remove them from both the Elementor Editor and your website, which can cause changes to your overall layout, design and what visitors see.', 'elementor'))), /*#__PURE__*/_react.default.createElement(_components.Panel, null, /*#__PURE__*/_react.default.createElement(_components.PanelBody, null, /*#__PURE__*/_react.default.createElement(_components.Flex, { |
| 2193 |
style: { |
| 2194 |
position: 'sticky', |
| 2195 |
top: '32px', |
| 2196 |
background: 'rgb(255, 255, 255)', |
| 2197 |
zIndex: 10, |
| 2198 |
padding: '20px 16px', |
| 2199 |
boxShadow: 'rgba(0, 0, 0, 0.15) 0 5px 10px 0', |
| 2200 |
margin: '-16px -16px 24px' |
| 2201 |
} |
| 2202 |
}, /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, /*#__PURE__*/_react.default.createElement(_components.Flex, { |
| 2203 |
align: 'center' |
| 2204 |
}, /*#__PURE__*/_react.default.createElement(_components.SearchControl, { |
| 2205 |
label: (0, _i18n.__)('Search widgets', 'elementor'), |
| 2206 |
value: searchKeyword, |
| 2207 |
size: 'compact', |
| 2208 |
style: { |
| 2209 |
height: '40px', |
| 2210 |
border: '1px solid rgba(30, 30, 30, 0.5)', |
| 2211 |
background: 'transparent' |
| 2212 |
}, |
| 2213 |
__nextHasNoMarginBottom: true, |
| 2214 |
onChange: setSearchKeyword |
| 2215 |
}), /*#__PURE__*/_react.default.createElement(_components.FlexItem, { |
| 2216 |
style: { |
| 2217 |
maxWidth: '130px' |
| 2218 |
} |
| 2219 |
}, /*#__PURE__*/_react.default.createElement(_components.SelectControl, { |
| 2220 |
onChange: setFilterByPlugin, |
| 2221 |
size: '__unstable-large', |
| 2222 |
__nextHasNoMarginBottom: true, |
| 2223 |
options: plugins |
| 2224 |
})), /*#__PURE__*/_react.default.createElement(_components.FlexItem, { |
| 2225 |
style: { |
| 2226 |
maxWidth: '130px' |
| 2227 |
} |
| 2228 |
}, /*#__PURE__*/_react.default.createElement(_components.SelectControl, { |
| 2229 |
onChange: setFilterByStatus, |
| 2230 |
size: '__unstable-large', |
| 2231 |
__nextHasNoMarginBottom: true, |
| 2232 |
options: [{ |
| 2233 |
label: (0, _i18n.__)('All Statuses', 'elementor'), |
| 2234 |
value: 'all' |
| 2235 |
}, { |
| 2236 |
label: (0, _i18n.__)('Active', 'elementor'), |
| 2237 |
value: 'active' |
| 2238 |
}, { |
| 2239 |
label: (0, _i18n.__)('Inactive', 'elementor'), |
| 2240 |
value: 'inactive' |
| 2241 |
}] |
| 2242 |
})), /*#__PURE__*/_react.default.createElement("hr", { |
| 2243 |
style: { |
| 2244 |
height: '30px', |
| 2245 |
margin: '0 5px', |
| 2246 |
borderWidth: '0 1px 0 0', |
| 2247 |
borderStyle: 'solid', |
| 2248 |
borderColor: 'rgba(30, 30, 30, 0.5)' |
| 2249 |
} |
| 2250 |
}), /*#__PURE__*/_react.default.createElement(_components.ButtonGroup, null, /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2251 |
variant: 'secondary', |
| 2252 |
style: { |
| 2253 |
marginInlineEnd: '10px' |
| 2254 |
}, |
| 2255 |
disabled: usageWidgets.isLoading, |
| 2256 |
isBusy: usageWidgets.isLoading, |
| 2257 |
onClick: onScanUsageElementsClicked |
| 2258 |
}, (0, _i18n.__)('Scan Element Usage', 'elementor')), /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2259 |
variant: 'secondary', |
| 2260 |
style: { |
| 2261 |
marginInlineEnd: '10px' |
| 2262 |
}, |
| 2263 |
onClick: deactivateAllUnusedWidgets, |
| 2264 |
disabled: null === usageWidgets.data |
| 2265 |
}, (0, _i18n.__)('Deactivate Unused Elements', 'elementor')), /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2266 |
variant: 'secondary', |
| 2267 |
disabled: !widgetsDisabled.length, |
| 2268 |
style: { |
| 2269 |
marginInlineEnd: '10px' |
| 2270 |
}, |
| 2271 |
onClick: enableAllWidgets |
| 2272 |
}, (0, _i18n.__)('Enable All', 'elementor'))))), /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2273 |
variant: "primary", |
| 2274 |
disabled: changeProgress.isSaving || !changeProgress.isUnsavedChanges, |
| 2275 |
isBusy: changeProgress.isSaving, |
| 2276 |
onClick: function onClick() { |
| 2277 |
setIsConfirmDialogOpen(true); |
| 2278 |
} |
| 2279 |
}, (0, _i18n.__)('Save Changes', 'elementor')))), /*#__PURE__*/_react.default.createElement(_components.PanelRow, null, !sortedAndFilteredWidgets.length ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _i18n.__)('No elements found.', 'elementor')) : /*#__PURE__*/_react.default.createElement("table", { |
| 2280 |
className: 'wp-list-table widefat fixed striped table-view-list' |
| 2281 |
}, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("th", { |
| 2282 |
className: "manage-column sortable ".concat(getSortingIndicatorClasses('widget')) |
| 2283 |
}, /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2284 |
href: '#', |
| 2285 |
onClick: function onClick(event) { |
| 2286 |
event.preventDefault(); |
| 2287 |
onSortingClicked('widget'); |
| 2288 |
} |
| 2289 |
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _i18n.__)('Element', 'elementor')), /*#__PURE__*/_react.default.createElement("span", { |
| 2290 |
className: "sorting-indicators" |
| 2291 |
}, /*#__PURE__*/_react.default.createElement("span", { |
| 2292 |
className: "sorting-indicator asc", |
| 2293 |
"aria-hidden": "true" |
| 2294 |
}), /*#__PURE__*/_react.default.createElement("span", { |
| 2295 |
className: "sorting-indicator desc", |
| 2296 |
"aria-hidden": "true" |
| 2297 |
})))), /*#__PURE__*/_react.default.createElement("th", null, (0, _i18n.__)('Status', 'elementor')), /*#__PURE__*/_react.default.createElement("th", { |
| 2298 |
className: "manage-column sortable ".concat(getSortingIndicatorClasses('usage')) |
| 2299 |
}, /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2300 |
href: '#', |
| 2301 |
onClick: function onClick(event) { |
| 2302 |
event.preventDefault(); |
| 2303 |
onSortingClicked('usage'); |
| 2304 |
} |
| 2305 |
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _i18n.__)('Usage', 'elementor')), /*#__PURE__*/_react.default.createElement("span", { |
| 2306 |
className: "sorting-indicators" |
| 2307 |
}, /*#__PURE__*/_react.default.createElement("span", { |
| 2308 |
className: "sorting-indicator asc", |
| 2309 |
"aria-hidden": "true" |
| 2310 |
}), /*#__PURE__*/_react.default.createElement("span", { |
| 2311 |
className: "sorting-indicator desc", |
| 2312 |
"aria-hidden": "true" |
| 2313 |
})))), /*#__PURE__*/_react.default.createElement("th", null, (0, _i18n.__)('Plugin', 'elementor')), /*#__PURE__*/_react.default.createElement("th", null, /*#__PURE__*/_react.default.createElement(_components.Flex, { |
| 2314 |
justify: 'flex-start', |
| 2315 |
gap: 0 |
| 2316 |
}, /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, (0, _i18n.__)('Permission', 'elementor')), /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, /*#__PURE__*/_react.default.createElement(_components.Tooltip, { |
| 2317 |
placement: 'top', |
| 2318 |
delay: 100, |
| 2319 |
text: (0, _i18n.__)('Choose which users will have access to each widget.', 'elementor') |
| 2320 |
}, /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2321 |
icon: 'info-outline', |
| 2322 |
iconSize: 16 |
| 2323 |
}))), null === widgetsRoleRestrictions && /*#__PURE__*/_react.default.createElement(_components.FlexItem, { |
| 2324 |
style: { |
| 2325 |
marginInlineStart: '10px' |
| 2326 |
} |
| 2327 |
}, /*#__PURE__*/_react.default.createElement(_upgradeButton.UpgradeButton, { |
| 2328 |
href: promotionWidgets.length ? managerPermissions.pro.url : managerPermissions.advanced.url, |
| 2329 |
size: 'small', |
| 2330 |
text: promotionWidgets.length ? managerPermissions.pro.text : managerPermissions.advanced.text |
| 2331 |
})))))), /*#__PURE__*/_react.default.createElement("tbody", null, sortedAndFilteredWidgets.map(function (widget) { |
| 2332 |
return /*#__PURE__*/_react.default.createElement("tr", { |
| 2333 |
key: widget.name, |
| 2334 |
"data-key-id": widget.name |
| 2335 |
}, /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement("i", { |
| 2336 |
style: { |
| 2337 |
marginInlineEnd: '5px', |
| 2338 |
marginInlineStart: '0', |
| 2339 |
display: 'inline-block' |
| 2340 |
}, |
| 2341 |
className: "".concat(widget.icon) |
| 2342 |
}), " ", widget.title), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_components.ToggleControl, { |
| 2343 |
checked: !widgetsDisabled.includes(widget.name), |
| 2344 |
__nextHasNoMarginBottom: true, |
| 2345 |
onChange: function onChange() { |
| 2346 |
if (widgetsDisabled.includes(widget.name)) { |
| 2347 |
setWidgetsDisabled(widgetsDisabled.filter(function (item) { |
| 2348 |
return item !== widget.name; |
| 2349 |
})); |
| 2350 |
} else { |
| 2351 |
setWidgetsDisabled([].concat((0, _toConsumableArray2.default)(widgetsDisabled), [widget.name])); |
| 2352 |
} |
| 2353 |
} |
| 2354 |
})), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(UsageTimesColumn, { |
| 2355 |
widgetName: widget.name |
| 2356 |
})), /*#__PURE__*/_react.default.createElement("td", null, widget.plugin), /*#__PURE__*/_react.default.createElement("td", null, null !== widgetsRoleRestrictions && !widgetsDisabled.includes(widget.name) ? /*#__PURE__*/_react.default.createElement(_rolePermissions.RolePermissions, { |
| 2357 |
widgetName: widget.name, |
| 2358 |
roles: roles, |
| 2359 |
widgetsRoleRestrictions: widgetsRoleRestrictions, |
| 2360 |
setWidgetsRoleRestrictions: setWidgetsRoleRestrictions |
| 2361 |
}) : /*#__PURE__*/_react.default.createElement(_rolePermissions.EditButtonDisabled, null))); |
| 2362 |
})))), promotionWidgets.length > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.PanelRow, null, /*#__PURE__*/_react.default.createElement(_components.Flex, { |
| 2363 |
style: { |
| 2364 |
marginTop: '40px', |
| 2365 |
marginBottom: '20px' |
| 2366 |
} |
| 2367 |
}, /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, /*#__PURE__*/_react.default.createElement("h3", null, (0, _i18n.__)('Elementor Pro Elements', 'elementor')), /*#__PURE__*/_react.default.createElement("p", null, (0, _i18n.__)('Unleash the full power of Elementor\'s features and web creation tools.', 'elementor'))), /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, /*#__PURE__*/_react.default.createElement(_upgradeButton.UpgradeButton, { |
| 2368 |
href: elementManager.url, |
| 2369 |
text: elementManager.text |
| 2370 |
})))), /*#__PURE__*/_react.default.createElement(_components.PanelRow, null, /*#__PURE__*/_react.default.createElement("table", { |
| 2371 |
className: 'wp-list-table widefat fixed striped table-view-list' |
| 2372 |
}, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("th", { |
| 2373 |
className: "manage-column" |
| 2374 |
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _i18n.__)('Element', 'elementor'))), /*#__PURE__*/_react.default.createElement("th", null, (0, _i18n.__)('Status', 'elementor')), /*#__PURE__*/_react.default.createElement("th", null, (0, _i18n.__)('Usage', 'elementor')), /*#__PURE__*/_react.default.createElement("th", null, (0, _i18n.__)('Plugin', 'elementor')), /*#__PURE__*/_react.default.createElement("th", null, /*#__PURE__*/_react.default.createElement(_components.Flex, { |
| 2375 |
justify: 'flex-start' |
| 2376 |
}, /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, (0, _i18n.__)('Permission', 'elementor')), /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, /*#__PURE__*/_react.default.createElement(_components.Tooltip, { |
| 2377 |
placement: 'top', |
| 2378 |
delay: 100, |
| 2379 |
text: (0, _i18n.__)('Choose which role will have access to a specific widget.', 'elementor') |
| 2380 |
}, /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2381 |
icon: 'info-outline' |
| 2382 |
}))))))), /*#__PURE__*/_react.default.createElement("tbody", null, promotionWidgets.map(function (widget) { |
| 2383 |
return /*#__PURE__*/_react.default.createElement("tr", { |
| 2384 |
key: widget.name |
| 2385 |
}, /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement("i", { |
| 2386 |
style: { |
| 2387 |
marginInlineEnd: '5px' |
| 2388 |
}, |
| 2389 |
className: "".concat(widget.icon) |
| 2390 |
}), " ", widget.title), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_components.ToggleControl, { |
| 2391 |
__nextHasNoMarginBottom: true, |
| 2392 |
checked: false, |
| 2393 |
disabled: true |
| 2394 |
})), /*#__PURE__*/_react.default.createElement("td", null), /*#__PURE__*/_react.default.createElement("td", null, (0, _i18n.__)('Elementor Pro', 'elementor')), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_rolePermissions.EditButtonDisabled, null))); |
| 2395 |
}))))))), isConfirmDialogOpen && /*#__PURE__*/_react.default.createElement(_components.Modal, { |
| 2396 |
title: (0, _i18n.__)('Sure you want to save these changes?', 'elementor'), |
| 2397 |
size: 'small', |
| 2398 |
isDismissible: false, |
| 2399 |
onRequestClose: function onRequestClose() { |
| 2400 |
setIsConfirmDialogOpen(false); |
| 2401 |
} |
| 2402 |
}, /*#__PURE__*/_react.default.createElement("p", { |
| 2403 |
style: { |
| 2404 |
maxWidth: '400px', |
| 2405 |
marginBlockEnd: '30px', |
| 2406 |
marginBlockStart: '0' |
| 2407 |
} |
| 2408 |
}, (0, _i18n.__)('Turning widgets off will hide them from the editor panel, and can potentially affect your layout or front-end.', 'elementor'), /*#__PURE__*/_react.default.createElement("span", { |
| 2409 |
style: { |
| 2410 |
display: 'block', |
| 2411 |
marginTop: '20px' |
| 2412 |
} |
| 2413 |
}, (0, _i18n.__)('If you’re adding widgets back in, enjoy them!', 'elementor'))), /*#__PURE__*/_react.default.createElement(_components.ButtonGroup, { |
| 2414 |
style: { |
| 2415 |
display: 'flex', |
| 2416 |
justifyContent: 'flex-end', |
| 2417 |
gap: '30px' |
| 2418 |
} |
| 2419 |
}, /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2420 |
variant: 'link', |
| 2421 |
onClick: function onClick() { |
| 2422 |
setIsConfirmDialogOpen(false); |
| 2423 |
} |
| 2424 |
}, (0, _i18n.__)('Cancel', 'elementor')), /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2425 |
variant: 'primary', |
| 2426 |
onClick: onSaveClicked |
| 2427 |
}, (0, _i18n.__)('Save', 'elementor')))), /*#__PURE__*/_react.default.createElement("div", { |
| 2428 |
style: { |
| 2429 |
position: 'fixed', |
| 2430 |
bottom: '40px', |
| 2431 |
left: '50%', |
| 2432 |
transform: 'translateX(-50%)', |
| 2433 |
display: isSnackbarOpen ? 'block' : 'none' |
| 2434 |
} |
| 2435 |
}, /*#__PURE__*/_react.default.createElement(_components.Snackbar, { |
| 2436 |
isDismissible: true, |
| 2437 |
status: 'success', |
| 2438 |
onRemove: function onRemove() { |
| 2439 |
return setIsSnackbarOpen(false); |
| 2440 |
} |
| 2441 |
}, (0, _i18n.__)('We saved your changes.', 'elementor')))); |
| 2442 |
}; |
| 2443 |
exports.App = App; |
| 2444 |
|
| 2445 |
/***/ }), |
| 2446 |
|
| 2447 |
/***/ "../modules/element-manager/assets/js/role-permissions.js": |
| 2448 |
/*!****************************************************************!*\ |
| 2449 |
!*** ../modules/element-manager/assets/js/role-permissions.js ***! |
| 2450 |
\****************************************************************/ |
| 2451 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 2452 |
|
| 2453 |
"use strict"; |
| 2454 |
|
| 2455 |
|
| 2456 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 2457 |
Object.defineProperty(exports, "__esModule", ({ |
| 2458 |
value: true |
| 2459 |
})); |
| 2460 |
exports.RolePermissions = exports.EditButtonDisabled = void 0; |
| 2461 |
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 2462 |
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 2463 |
var _components = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); |
| 2464 |
var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); |
| 2465 |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } |
| 2466 |
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /* eslint-disable react/prop-types */ |
| 2467 |
var toggleRoleRestrictions = function toggleRoleRestrictions(widgetName, roleId, widgetsRoleRestrictions, setWidgetsRoleRestrictions) { |
| 2468 |
var widgetRoleRestrictions = widgetsRoleRestrictions[widgetName] || []; |
| 2469 |
if (widgetRoleRestrictions.includes(roleId)) { |
| 2470 |
widgetRoleRestrictions.splice(widgetRoleRestrictions.indexOf(roleId), 1); |
| 2471 |
} else { |
| 2472 |
widgetRoleRestrictions.push(roleId); |
| 2473 |
} |
| 2474 |
|
| 2475 |
// TODO: Remove the object from the state if it's empty |
| 2476 |
setWidgetsRoleRestrictions(_objectSpread(_objectSpread({}, widgetsRoleRestrictions), {}, (0, _defineProperty2.default)({}, widgetName, widgetRoleRestrictions))); |
| 2477 |
}; |
| 2478 |
var RolesList = function RolesList(props) { |
| 2479 |
var roles = props.roles, |
| 2480 |
widgetRoleRestrictions = props.widgetRoleRestrictions; |
| 2481 |
var rolesEnables = roles.filter(function (role) { |
| 2482 |
return !widgetRoleRestrictions.includes(role.id); |
| 2483 |
}); |
| 2484 |
if (!rolesEnables.length) { |
| 2485 |
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "(", (0, _i18n.__)('Admin', 'elementor'), ")"); |
| 2486 |
} |
| 2487 |
if (rolesEnables.length === roles.length) { |
| 2488 |
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "(", (0, _i18n.__)('All Roles', 'elementor'), ")"); |
| 2489 |
} |
| 2490 |
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "(", rolesEnables.map(function (role) { |
| 2491 |
return role.name; |
| 2492 |
}).join(', '), ")"); |
| 2493 |
}; |
| 2494 |
var RolePermissions = function RolePermissions(props) { |
| 2495 |
var roles = props.roles, |
| 2496 |
widgetName = props.widgetName, |
| 2497 |
widgetsRoleRestrictions = props.widgetsRoleRestrictions, |
| 2498 |
setWidgetsRoleRestrictions = props.setWidgetsRoleRestrictions; |
| 2499 |
var widgetRoleRestrictions = widgetsRoleRestrictions[widgetName] || []; |
| 2500 |
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.Dropdown, { |
| 2501 |
className: 'my-container-class-name', |
| 2502 |
contentClassName: 'my-dropdown-content-classname', |
| 2503 |
popoverProps: { |
| 2504 |
placement: 'bottom-start' |
| 2505 |
}, |
| 2506 |
renderToggle: function renderToggle(_ref) { |
| 2507 |
var isOpen = _ref.isOpen, |
| 2508 |
onToggle = _ref.onToggle; |
| 2509 |
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2510 |
variant: 'link', |
| 2511 |
onClick: onToggle, |
| 2512 |
"aria-expanded": isOpen, |
| 2513 |
style: { |
| 2514 |
textDecoration: 'none' |
| 2515 |
} |
| 2516 |
}, (0, _i18n.__)('Edit', 'elementor')), ' ', /*#__PURE__*/_react.default.createElement("span", { |
| 2517 |
style: { |
| 2518 |
color: 'var(--e-a-color-txt-muted)' |
| 2519 |
} |
| 2520 |
}, /*#__PURE__*/_react.default.createElement(RolesList, { |
| 2521 |
roles: roles, |
| 2522 |
widgetRoleRestrictions: widgetRoleRestrictions |
| 2523 |
}))); |
| 2524 |
}, |
| 2525 |
renderContent: function renderContent() { |
| 2526 |
var isAllChecked = roles.every(function (role) { |
| 2527 |
return !widgetRoleRestrictions.includes(role.id); |
| 2528 |
}); |
| 2529 |
var isIndeterminate = !isAllChecked && roles.some(function (role) { |
| 2530 |
return !widgetRoleRestrictions.includes(role.id); |
| 2531 |
}); |
| 2532 |
return /*#__PURE__*/_react.default.createElement("div", { |
| 2533 |
style: { |
| 2534 |
minWidth: '150px', |
| 2535 |
paddingInline: '10px', |
| 2536 |
paddingBlockStart: '10px' |
| 2537 |
} |
| 2538 |
}, /*#__PURE__*/_react.default.createElement(_components.CheckboxControl, { |
| 2539 |
checked: isAllChecked, |
| 2540 |
indeterminate: isIndeterminate, |
| 2541 |
label: 'All', |
| 2542 |
onChange: function onChange(value) { |
| 2543 |
if (value) { |
| 2544 |
setWidgetsRoleRestrictions(_objectSpread(_objectSpread({}, widgetsRoleRestrictions), {}, (0, _defineProperty2.default)({}, widgetName, []))); |
| 2545 |
} else { |
| 2546 |
setWidgetsRoleRestrictions(_objectSpread(_objectSpread({}, widgetsRoleRestrictions), {}, (0, _defineProperty2.default)({}, widgetName, roles.map(function (role) { |
| 2547 |
return role.id; |
| 2548 |
})))); |
| 2549 |
} |
| 2550 |
} |
| 2551 |
}), roles.map(function (role) { |
| 2552 |
return /*#__PURE__*/_react.default.createElement("div", { |
| 2553 |
key: role.id |
| 2554 |
}, /*#__PURE__*/_react.default.createElement(_components.CheckboxControl, { |
| 2555 |
checked: !widgetRoleRestrictions.includes(role.id), |
| 2556 |
label: role.name, |
| 2557 |
onChange: function onChange() { |
| 2558 |
toggleRoleRestrictions(widgetName, role.id, widgetsRoleRestrictions, setWidgetsRoleRestrictions); |
| 2559 |
} |
| 2560 |
})); |
| 2561 |
})); |
| 2562 |
} |
| 2563 |
})); |
| 2564 |
}; |
| 2565 |
exports.RolePermissions = RolePermissions; |
| 2566 |
var EditButtonDisabled = function EditButtonDisabled() { |
| 2567 |
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.Button, { |
| 2568 |
variant: "link", |
| 2569 |
disabled: true, |
| 2570 |
style: { |
| 2571 |
textDecoration: 'none' |
| 2572 |
} |
| 2573 |
}, (0, _i18n.__)('Edit', 'elementor'))); |
| 2574 |
}; |
| 2575 |
exports.EditButtonDisabled = EditButtonDisabled; |
| 2576 |
|
| 2577 |
/***/ }), |
| 2578 |
|
| 2579 |
/***/ "../modules/element-manager/assets/js/upgrade-button.js": |
| 2580 |
/*!**************************************************************!*\ |
| 2581 |
!*** ../modules/element-manager/assets/js/upgrade-button.js ***! |
| 2582 |
\**************************************************************/ |
| 2583 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 2584 |
|
| 2585 |
"use strict"; |
| 2586 |
|
| 2587 |
|
| 2588 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 2589 |
Object.defineProperty(exports, "__esModule", ({ |
| 2590 |
value: true |
| 2591 |
})); |
| 2592 |
exports.UpgradeButton = void 0; |
| 2593 |
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 2594 |
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); |
| 2595 |
var _components = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); |
| 2596 |
var UpgradeButton = function UpgradeButton(props) { |
| 2597 |
return /*#__PURE__*/_react.default.createElement(_components.Button, (0, _extends2.default)({}, props, { |
| 2598 |
variant: "primary", |
| 2599 |
target: "_blank", |
| 2600 |
rel: 'noreferrer', |
| 2601 |
style: { |
| 2602 |
background: 'var(--e-a-btn-bg-accent, #93003f)' |
| 2603 |
} |
| 2604 |
})); |
| 2605 |
}; |
| 2606 |
exports.UpgradeButton = UpgradeButton; |
| 2607 |
|
| 2608 |
/***/ }), |
| 2609 |
|
| 2610 |
/***/ "../node_modules/dot-case/dist.es2015/index.js": |
| 2611 |
/*!*****************************************************!*\ |
| 2612 |
!*** ../node_modules/dot-case/dist.es2015/index.js ***! |
| 2613 |
\*****************************************************/ |
| 2614 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 2615 |
|
| 2616 |
"use strict"; |
| 2617 |
__webpack_require__.r(__webpack_exports__); |
| 2618 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 2619 |
/* harmony export */ dotCase: () => (/* binding */ dotCase) |
| 2620 |
/* harmony export */ }); |
| 2621 |
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "../node_modules/dot-case/node_modules/tslib/tslib.es6.mjs"); |
| 2622 |
/* harmony import */ var no_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! no-case */ "../node_modules/no-case/dist.es2015/index.js"); |
| 2623 |
|
| 2624 |
|
| 2625 |
function dotCase(input, options) { |
| 2626 |
if (options === void 0) { options = {}; } |
| 2627 |
return (0,no_case__WEBPACK_IMPORTED_MODULE_0__.noCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)({ delimiter: "." }, options)); |
| 2628 |
} |
| 2629 |
//# sourceMappingURL=index.js.map |
| 2630 |
|
| 2631 |
/***/ }), |
| 2632 |
|
| 2633 |
/***/ "../node_modules/lower-case/dist.es2015/index.js": |
| 2634 |
/*!*******************************************************!*\ |
| 2635 |
!*** ../node_modules/lower-case/dist.es2015/index.js ***! |
| 2636 |
\*******************************************************/ |
| 2637 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 2638 |
|
| 2639 |
"use strict"; |
| 2640 |
__webpack_require__.r(__webpack_exports__); |
| 2641 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 2642 |
/* harmony export */ localeLowerCase: () => (/* binding */ localeLowerCase), |
| 2643 |
/* harmony export */ lowerCase: () => (/* binding */ lowerCase) |
| 2644 |
/* harmony export */ }); |
| 2645 |
/** |
| 2646 |
* Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt |
| 2647 |
*/ |
| 2648 |
var SUPPORTED_LOCALE = { |
| 2649 |
tr: { |
| 2650 |
regexp: /\u0130|\u0049|\u0049\u0307/g, |
| 2651 |
map: { |
| 2652 |
İ: "\u0069", |
| 2653 |
I: "\u0131", |
| 2654 |
İ: "\u0069", |
| 2655 |
}, |
| 2656 |
}, |
| 2657 |
az: { |
| 2658 |
regexp: /\u0130/g, |
| 2659 |
map: { |
| 2660 |
İ: "\u0069", |
| 2661 |
I: "\u0131", |
| 2662 |
İ: "\u0069", |
| 2663 |
}, |
| 2664 |
}, |
| 2665 |
lt: { |
| 2666 |
regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g, |
| 2667 |
map: { |
| 2668 |
I: "\u0069\u0307", |
| 2669 |
J: "\u006A\u0307", |
| 2670 |
Į: "\u012F\u0307", |
| 2671 |
Ì: "\u0069\u0307\u0300", |
| 2672 |
Í: "\u0069\u0307\u0301", |
| 2673 |
Ĩ: "\u0069\u0307\u0303", |
| 2674 |
}, |
| 2675 |
}, |
| 2676 |
}; |
| 2677 |
/** |
| 2678 |
* Localized lower case. |
| 2679 |
*/ |
| 2680 |
function localeLowerCase(str, locale) { |
| 2681 |
var lang = SUPPORTED_LOCALE[locale.toLowerCase()]; |
| 2682 |
if (lang) |
| 2683 |
return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; })); |
| 2684 |
return lowerCase(str); |
| 2685 |
} |
| 2686 |
/** |
| 2687 |
* Lower case as a function. |
| 2688 |
*/ |
| 2689 |
function lowerCase(str) { |
| 2690 |
return str.toLowerCase(); |
| 2691 |
} |
| 2692 |
//# sourceMappingURL=index.js.map |
| 2693 |
|
| 2694 |
/***/ }), |
| 2695 |
|
| 2696 |
/***/ "../node_modules/no-case/dist.es2015/index.js": |
| 2697 |
/*!****************************************************!*\ |
| 2698 |
!*** ../node_modules/no-case/dist.es2015/index.js ***! |
| 2699 |
\****************************************************/ |
| 2700 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 2701 |
|
| 2702 |
"use strict"; |
| 2703 |
__webpack_require__.r(__webpack_exports__); |
| 2704 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 2705 |
/* harmony export */ noCase: () => (/* binding */ noCase) |
| 2706 |
/* harmony export */ }); |
| 2707 |
/* harmony import */ var lower_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lower-case */ "../node_modules/lower-case/dist.es2015/index.js"); |
| 2708 |
|
| 2709 |
// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case"). |
| 2710 |
var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g]; |
| 2711 |
// Remove all non-word characters. |
| 2712 |
var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi; |
| 2713 |
/** |
| 2714 |
* Normalize the string into something other libraries can manipulate easier. |
| 2715 |
*/ |
| 2716 |
function noCase(input, options) { |
| 2717 |
if (options === void 0) { options = {}; } |
| 2718 |
var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lower_case__WEBPACK_IMPORTED_MODULE_0__.lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d; |
| 2719 |
var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0"); |
| 2720 |
var start = 0; |
| 2721 |
var end = result.length; |
| 2722 |
// Trim the delimiter from around the output string. |
| 2723 |
while (result.charAt(start) === "\0") |
| 2724 |
start++; |
| 2725 |
while (result.charAt(end - 1) === "\0") |
| 2726 |
end--; |
| 2727 |
// Transform each token independently. |
| 2728 |
return result.slice(start, end).split("\0").map(transform).join(delimiter); |
| 2729 |
} |
| 2730 |
/** |
| 2731 |
* Replace `re` in the input string with the replacement value. |
| 2732 |
*/ |
| 2733 |
function replace(input, re, value) { |
| 2734 |
if (re instanceof RegExp) |
| 2735 |
return input.replace(re, value); |
| 2736 |
return re.reduce(function (input, re) { return input.replace(re, value); }, input); |
| 2737 |
} |
| 2738 |
//# sourceMappingURL=index.js.map |
| 2739 |
|
| 2740 |
/***/ }), |
| 2741 |
|
| 2742 |
/***/ "../node_modules/param-case/dist.es2015/index.js": |
| 2743 |
/*!*******************************************************!*\ |
| 2744 |
!*** ../node_modules/param-case/dist.es2015/index.js ***! |
| 2745 |
\*******************************************************/ |
| 2746 |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
| 2747 |
|
| 2748 |
"use strict"; |
| 2749 |
__webpack_require__.r(__webpack_exports__); |
| 2750 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 2751 |
/* harmony export */ paramCase: () => (/* binding */ paramCase) |
| 2752 |
/* harmony export */ }); |
| 2753 |
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "../node_modules/param-case/node_modules/tslib/tslib.es6.mjs"); |
| 2754 |
/* harmony import */ var dot_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dot-case */ "../node_modules/dot-case/dist.es2015/index.js"); |
| 2755 |
|
| 2756 |
|
| 2757 |
function paramCase(input, options) { |
| 2758 |
if (options === void 0) { options = {}; } |
| 2759 |
return (0,dot_case__WEBPACK_IMPORTED_MODULE_0__.dotCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)({ delimiter: "-" }, options)); |
| 2760 |
} |
| 2761 |
//# sourceMappingURL=index.js.map |
| 2762 |
|
| 2763 |
/***/ }), |
| 2764 |
|
| 2765 |
/***/ "../node_modules/react-dom/client.js": |
| 2766 |
/*!*******************************************!*\ |
| 2767 |
!*** ../node_modules/react-dom/client.js ***! |
| 2768 |
\*******************************************/ |
| 2769 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 2770 |
|
| 2771 |
"use strict"; |
| 2772 |
|
| 2773 |
|
| 2774 |
var m = __webpack_require__(/*! react-dom */ "react-dom"); |
| 2775 |
if (false) {} else { |
| 2776 |
var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; |
| 2777 |
exports.createRoot = function(c, o) { |
| 2778 |
i.usingClientEntryPoint = true; |
| 2779 |
try { |
| 2780 |
return m.createRoot(c, o); |
| 2781 |
} finally { |
| 2782 |
i.usingClientEntryPoint = false; |
| 2783 |
} |
| 2784 |
}; |
| 2785 |
exports.hydrateRoot = function(c, h, o) { |
| 2786 |
i.usingClientEntryPoint = true; |
| 2787 |
try { |
| 2788 |
return m.hydrateRoot(c, h, o); |
| 2789 |
} finally { |
| 2790 |
i.usingClientEntryPoint = false; |
| 2791 |
} |
| 2792 |
}; |
| 2793 |
} |
| 2794 |
|
| 2795 |
|
| 2796 |
/***/ }), |
| 2797 |
|
| 2798 |
/***/ "react": |
| 2799 |
/*!************************!*\ |
| 2800 |
!*** external "React" ***! |
| 2801 |
\************************/ |
| 2802 |
/***/ ((module) => { |
| 2803 |
|
| 2804 |
"use strict"; |
| 2805 |
module.exports = React; |
| 2806 |
|
| 2807 |
/***/ }), |
| 2808 |
|
| 2809 |
/***/ "react-dom": |
| 2810 |
/*!***************************!*\ |
| 2811 |
!*** external "ReactDOM" ***! |
| 2812 |
\***************************/ |
| 2813 |
/***/ ((module) => { |
| 2814 |
|
| 2815 |
"use strict"; |
| 2816 |
module.exports = ReactDOM; |
| 2817 |
|
| 2818 |
/***/ }), |
| 2819 |
|
| 2820 |
/***/ "@wordpress/components": |
| 2821 |
/*!********************************!*\ |
| 2822 |
!*** external "wp.components" ***! |
| 2823 |
\********************************/ |
| 2824 |
/***/ ((module) => { |
| 2825 |
|
| 2826 |
"use strict"; |
| 2827 |
module.exports = wp.components; |
| 2828 |
|
| 2829 |
/***/ }), |
| 2830 |
|
| 2831 |
/***/ "@wordpress/dom-ready": |
| 2832 |
/*!******************************!*\ |
| 2833 |
!*** external "wp.domReady" ***! |
| 2834 |
\******************************/ |
| 2835 |
/***/ ((module) => { |
| 2836 |
|
| 2837 |
"use strict"; |
| 2838 |
module.exports = wp.domReady; |
| 2839 |
|
| 2840 |
/***/ }), |
| 2841 |
|
| 2842 |
/***/ "@wordpress/i18n": |
| 2843 |
/*!**************************!*\ |
| 2844 |
!*** external "wp.i18n" ***! |
| 2845 |
\**************************/ |
| 2846 |
/***/ ((module) => { |
| 2847 |
|
| 2848 |
"use strict"; |
| 2849 |
module.exports = wp.i18n; |
| 2850 |
|
| 2851 |
/***/ }), |
| 2852 |
|
| 2853 |
/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": |
| 2854 |
/*!******************************************************************!*\ |
| 2855 |
!*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! |
| 2856 |
\******************************************************************/ |
| 2857 |
/***/ ((module) => { |
| 2858 |
|
| 2859 |
function _arrayLikeToArray(arr, len) { |
| 2860 |
if (len == null || len > arr.length) len = arr.length; |
| 2861 |
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; |
| 2862 |
return arr2; |
| 2863 |
} |
| 2864 |
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2865 |
|
| 2866 |
/***/ }), |
| 2867 |
|
| 2868 |
/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": |
| 2869 |
/*!****************************************************************!*\ |
| 2870 |
!*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! |
| 2871 |
\****************************************************************/ |
| 2872 |
/***/ ((module) => { |
| 2873 |
|
| 2874 |
function _arrayWithHoles(arr) { |
| 2875 |
if (Array.isArray(arr)) return arr; |
| 2876 |
} |
| 2877 |
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2878 |
|
| 2879 |
/***/ }), |
| 2880 |
|
| 2881 |
/***/ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": |
| 2882 |
/*!*******************************************************************!*\ |
| 2883 |
!*** ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! |
| 2884 |
\*******************************************************************/ |
| 2885 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2886 |
|
| 2887 |
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); |
| 2888 |
function _arrayWithoutHoles(arr) { |
| 2889 |
if (Array.isArray(arr)) return arrayLikeToArray(arr); |
| 2890 |
} |
| 2891 |
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2892 |
|
| 2893 |
/***/ }), |
| 2894 |
|
| 2895 |
/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js": |
| 2896 |
/*!******************************************************************!*\ |
| 2897 |
!*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! |
| 2898 |
\******************************************************************/ |
| 2899 |
/***/ ((module) => { |
| 2900 |
|
| 2901 |
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { |
| 2902 |
try { |
| 2903 |
var info = gen[key](arg); |
| 2904 |
var value = info.value; |
| 2905 |
} catch (error) { |
| 2906 |
reject(error); |
| 2907 |
return; |
| 2908 |
} |
| 2909 |
if (info.done) { |
| 2910 |
resolve(value); |
| 2911 |
} else { |
| 2912 |
Promise.resolve(value).then(_next, _throw); |
| 2913 |
} |
| 2914 |
} |
| 2915 |
function _asyncToGenerator(fn) { |
| 2916 |
return function () { |
| 2917 |
var self = this, |
| 2918 |
args = arguments; |
| 2919 |
return new Promise(function (resolve, reject) { |
| 2920 |
var gen = fn.apply(self, args); |
| 2921 |
function _next(value) { |
| 2922 |
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); |
| 2923 |
} |
| 2924 |
function _throw(err) { |
| 2925 |
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); |
| 2926 |
} |
| 2927 |
_next(undefined); |
| 2928 |
}); |
| 2929 |
}; |
| 2930 |
} |
| 2931 |
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2932 |
|
| 2933 |
/***/ }), |
| 2934 |
|
| 2935 |
/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": |
| 2936 |
/*!****************************************************************!*\ |
| 2937 |
!*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! |
| 2938 |
\****************************************************************/ |
| 2939 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2940 |
|
| 2941 |
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); |
| 2942 |
function _defineProperty(obj, key, value) { |
| 2943 |
key = toPropertyKey(key); |
| 2944 |
if (key in obj) { |
| 2945 |
Object.defineProperty(obj, key, { |
| 2946 |
value: value, |
| 2947 |
enumerable: true, |
| 2948 |
configurable: true, |
| 2949 |
writable: true |
| 2950 |
}); |
| 2951 |
} else { |
| 2952 |
obj[key] = value; |
| 2953 |
} |
| 2954 |
return obj; |
| 2955 |
} |
| 2956 |
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2957 |
|
| 2958 |
/***/ }), |
| 2959 |
|
| 2960 |
/***/ "../node_modules/@babel/runtime/helpers/extends.js": |
| 2961 |
/*!*********************************************************!*\ |
| 2962 |
!*** ../node_modules/@babel/runtime/helpers/extends.js ***! |
| 2963 |
\*********************************************************/ |
| 2964 |
/***/ ((module) => { |
| 2965 |
|
| 2966 |
function _extends() { |
| 2967 |
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) { |
| 2968 |
for (var i = 1; i < arguments.length; i++) { |
| 2969 |
var source = arguments[i]; |
| 2970 |
for (var key in source) { |
| 2971 |
if (Object.prototype.hasOwnProperty.call(source, key)) { |
| 2972 |
target[key] = source[key]; |
| 2973 |
} |
| 2974 |
} |
| 2975 |
} |
| 2976 |
return target; |
| 2977 |
}, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2978 |
return _extends.apply(this, arguments); |
| 2979 |
} |
| 2980 |
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2981 |
|
| 2982 |
/***/ }), |
| 2983 |
|
| 2984 |
/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": |
| 2985 |
/*!***********************************************************************!*\ |
| 2986 |
!*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 2987 |
\***********************************************************************/ |
| 2988 |
/***/ ((module) => { |
| 2989 |
|
| 2990 |
function _interopRequireDefault(obj) { |
| 2991 |
return obj && obj.__esModule ? obj : { |
| 2992 |
"default": obj |
| 2993 |
}; |
| 2994 |
} |
| 2995 |
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2996 |
|
| 2997 |
/***/ }), |
| 2998 |
|
| 2999 |
/***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js": |
| 3000 |
/*!*****************************************************************!*\ |
| 3001 |
!*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***! |
| 3002 |
\*****************************************************************/ |
| 3003 |
/***/ ((module) => { |
| 3004 |
|
| 3005 |
function _iterableToArray(iter) { |
| 3006 |
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); |
| 3007 |
} |
| 3008 |
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3009 |
|
| 3010 |
/***/ }), |
| 3011 |
|
| 3012 |
/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": |
| 3013 |
/*!**********************************************************************!*\ |
| 3014 |
!*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! |
| 3015 |
\**********************************************************************/ |
| 3016 |
/***/ ((module) => { |
| 3017 |
|
| 3018 |
function _iterableToArrayLimit(r, l) { |
| 3019 |
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; |
| 3020 |
if (null != t) { |
| 3021 |
var e, |
| 3022 |
n, |
| 3023 |
i, |
| 3024 |
u, |
| 3025 |
a = [], |
| 3026 |
f = !0, |
| 3027 |
o = !1; |
| 3028 |
try { |
| 3029 |
if (i = (t = t.call(r)).next, 0 === l) { |
| 3030 |
if (Object(t) !== t) return; |
| 3031 |
f = !1; |
| 3032 |
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); |
| 3033 |
} catch (r) { |
| 3034 |
o = !0, n = r; |
| 3035 |
} finally { |
| 3036 |
try { |
| 3037 |
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; |
| 3038 |
} finally { |
| 3039 |
if (o) throw n; |
| 3040 |
} |
| 3041 |
} |
| 3042 |
return a; |
| 3043 |
} |
| 3044 |
} |
| 3045 |
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3046 |
|
| 3047 |
/***/ }), |
| 3048 |
|
| 3049 |
/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": |
| 3050 |
/*!*****************************************************************!*\ |
| 3051 |
!*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! |
| 3052 |
\*****************************************************************/ |
| 3053 |
/***/ ((module) => { |
| 3054 |
|
| 3055 |
function _nonIterableRest() { |
| 3056 |
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); |
| 3057 |
} |
| 3058 |
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3059 |
|
| 3060 |
/***/ }), |
| 3061 |
|
| 3062 |
/***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js": |
| 3063 |
/*!*******************************************************************!*\ |
| 3064 |
!*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! |
| 3065 |
\*******************************************************************/ |
| 3066 |
/***/ ((module) => { |
| 3067 |
|
| 3068 |
function _nonIterableSpread() { |
| 3069 |
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); |
| 3070 |
} |
| 3071 |
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3072 |
|
| 3073 |
/***/ }), |
| 3074 |
|
| 3075 |
/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": |
| 3076 |
/*!********************************************************************!*\ |
| 3077 |
!*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! |
| 3078 |
\********************************************************************/ |
| 3079 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3080 |
|
| 3081 |
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 3082 |
function _regeneratorRuntime() { |
| 3083 |
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ |
| 3084 |
module.exports = _regeneratorRuntime = function _regeneratorRuntime() { |
| 3085 |
return e; |
| 3086 |
}, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3087 |
var t, |
| 3088 |
e = {}, |
| 3089 |
r = Object.prototype, |
| 3090 |
n = r.hasOwnProperty, |
| 3091 |
o = Object.defineProperty || function (t, e, r) { |
| 3092 |
t[e] = r.value; |
| 3093 |
}, |
| 3094 |
i = "function" == typeof Symbol ? Symbol : {}, |
| 3095 |
a = i.iterator || "@@iterator", |
| 3096 |
c = i.asyncIterator || "@@asyncIterator", |
| 3097 |
u = i.toStringTag || "@@toStringTag"; |
| 3098 |
function define(t, e, r) { |
| 3099 |
return Object.defineProperty(t, e, { |
| 3100 |
value: r, |
| 3101 |
enumerable: !0, |
| 3102 |
configurable: !0, |
| 3103 |
writable: !0 |
| 3104 |
}), t[e]; |
| 3105 |
} |
| 3106 |
try { |
| 3107 |
define({}, ""); |
| 3108 |
} catch (t) { |
| 3109 |
define = function define(t, e, r) { |
| 3110 |
return t[e] = r; |
| 3111 |
}; |
| 3112 |
} |
| 3113 |
function wrap(t, e, r, n) { |
| 3114 |
var i = e && e.prototype instanceof Generator ? e : Generator, |
| 3115 |
a = Object.create(i.prototype), |
| 3116 |
c = new Context(n || []); |
| 3117 |
return o(a, "_invoke", { |
| 3118 |
value: makeInvokeMethod(t, r, c) |
| 3119 |
}), a; |
| 3120 |
} |
| 3121 |
function tryCatch(t, e, r) { |
| 3122 |
try { |
| 3123 |
return { |
| 3124 |
type: "normal", |
| 3125 |
arg: t.call(e, r) |
| 3126 |
}; |
| 3127 |
} catch (t) { |
| 3128 |
return { |
| 3129 |
type: "throw", |
| 3130 |
arg: t |
| 3131 |
}; |
| 3132 |
} |
| 3133 |
} |
| 3134 |
e.wrap = wrap; |
| 3135 |
var h = "suspendedStart", |
| 3136 |
l = "suspendedYield", |
| 3137 |
f = "executing", |
| 3138 |
s = "completed", |
| 3139 |
y = {}; |
| 3140 |
function Generator() {} |
| 3141 |
function GeneratorFunction() {} |
| 3142 |
function GeneratorFunctionPrototype() {} |
| 3143 |
var p = {}; |
| 3144 |
define(p, a, function () { |
| 3145 |
return this; |
| 3146 |
}); |
| 3147 |
var d = Object.getPrototypeOf, |
| 3148 |
v = d && d(d(values([]))); |
| 3149 |
v && v !== r && n.call(v, a) && (p = v); |
| 3150 |
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); |
| 3151 |
function defineIteratorMethods(t) { |
| 3152 |
["next", "throw", "return"].forEach(function (e) { |
| 3153 |
define(t, e, function (t) { |
| 3154 |
return this._invoke(e, t); |
| 3155 |
}); |
| 3156 |
}); |
| 3157 |
} |
| 3158 |
function AsyncIterator(t, e) { |
| 3159 |
function invoke(r, o, i, a) { |
| 3160 |
var c = tryCatch(t[r], t, o); |
| 3161 |
if ("throw" !== c.type) { |
| 3162 |
var u = c.arg, |
| 3163 |
h = u.value; |
| 3164 |
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { |
| 3165 |
invoke("next", t, i, a); |
| 3166 |
}, function (t) { |
| 3167 |
invoke("throw", t, i, a); |
| 3168 |
}) : e.resolve(h).then(function (t) { |
| 3169 |
u.value = t, i(u); |
| 3170 |
}, function (t) { |
| 3171 |
return invoke("throw", t, i, a); |
| 3172 |
}); |
| 3173 |
} |
| 3174 |
a(c.arg); |
| 3175 |
} |
| 3176 |
var r; |
| 3177 |
o(this, "_invoke", { |
| 3178 |
value: function value(t, n) { |
| 3179 |
function callInvokeWithMethodAndArg() { |
| 3180 |
return new e(function (e, r) { |
| 3181 |
invoke(t, n, e, r); |
| 3182 |
}); |
| 3183 |
} |
| 3184 |
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); |
| 3185 |
} |
| 3186 |
}); |
| 3187 |
} |
| 3188 |
function makeInvokeMethod(e, r, n) { |
| 3189 |
var o = h; |
| 3190 |
return function (i, a) { |
| 3191 |
if (o === f) throw new Error("Generator is already running"); |
| 3192 |
if (o === s) { |
| 3193 |
if ("throw" === i) throw a; |
| 3194 |
return { |
| 3195 |
value: t, |
| 3196 |
done: !0 |
| 3197 |
}; |
| 3198 |
} |
| 3199 |
for (n.method = i, n.arg = a;;) { |
| 3200 |
var c = n.delegate; |
| 3201 |
if (c) { |
| 3202 |
var u = maybeInvokeDelegate(c, n); |
| 3203 |
if (u) { |
| 3204 |
if (u === y) continue; |
| 3205 |
return u; |
| 3206 |
} |
| 3207 |
} |
| 3208 |
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { |
| 3209 |
if (o === h) throw o = s, n.arg; |
| 3210 |
n.dispatchException(n.arg); |
| 3211 |
} else "return" === n.method && n.abrupt("return", n.arg); |
| 3212 |
o = f; |
| 3213 |
var p = tryCatch(e, r, n); |
| 3214 |
if ("normal" === p.type) { |
| 3215 |
if (o = n.done ? s : l, p.arg === y) continue; |
| 3216 |
return { |
| 3217 |
value: p.arg, |
| 3218 |
done: n.done |
| 3219 |
}; |
| 3220 |
} |
| 3221 |
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); |
| 3222 |
} |
| 3223 |
}; |
| 3224 |
} |
| 3225 |
function maybeInvokeDelegate(e, r) { |
| 3226 |
var n = r.method, |
| 3227 |
o = e.iterator[n]; |
| 3228 |
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; |
| 3229 |
var i = tryCatch(o, e.iterator, r.arg); |
| 3230 |
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; |
| 3231 |
var a = i.arg; |
| 3232 |
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); |
| 3233 |
} |
| 3234 |
function pushTryEntry(t) { |
| 3235 |
var e = { |
| 3236 |
tryLoc: t[0] |
| 3237 |
}; |
| 3238 |
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); |
| 3239 |
} |
| 3240 |
function resetTryEntry(t) { |
| 3241 |
var e = t.completion || {}; |
| 3242 |
e.type = "normal", delete e.arg, t.completion = e; |
| 3243 |
} |
| 3244 |
function Context(t) { |
| 3245 |
this.tryEntries = [{ |
| 3246 |
tryLoc: "root" |
| 3247 |
}], t.forEach(pushTryEntry, this), this.reset(!0); |
| 3248 |
} |
| 3249 |
function values(e) { |
| 3250 |
if (e || "" === e) { |
| 3251 |
var r = e[a]; |
| 3252 |
if (r) return r.call(e); |
| 3253 |
if ("function" == typeof e.next) return e; |
| 3254 |
if (!isNaN(e.length)) { |
| 3255 |
var o = -1, |
| 3256 |
i = function next() { |
| 3257 |
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; |
| 3258 |
return next.value = t, next.done = !0, next; |
| 3259 |
}; |
| 3260 |
return i.next = i; |
| 3261 |
} |
| 3262 |
} |
| 3263 |
throw new TypeError(_typeof(e) + " is not iterable"); |
| 3264 |
} |
| 3265 |
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { |
| 3266 |
value: GeneratorFunctionPrototype, |
| 3267 |
configurable: !0 |
| 3268 |
}), o(GeneratorFunctionPrototype, "constructor", { |
| 3269 |
value: GeneratorFunction, |
| 3270 |
configurable: !0 |
| 3271 |
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { |
| 3272 |
var e = "function" == typeof t && t.constructor; |
| 3273 |
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); |
| 3274 |
}, e.mark = function (t) { |
| 3275 |
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; |
| 3276 |
}, e.awrap = function (t) { |
| 3277 |
return { |
| 3278 |
__await: t |
| 3279 |
}; |
| 3280 |
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { |
| 3281 |
return this; |
| 3282 |
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { |
| 3283 |
void 0 === i && (i = Promise); |
| 3284 |
var a = new AsyncIterator(wrap(t, r, n, o), i); |
| 3285 |
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { |
| 3286 |
return t.done ? t.value : a.next(); |
| 3287 |
}); |
| 3288 |
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { |
| 3289 |
return this; |
| 3290 |
}), define(g, "toString", function () { |
| 3291 |
return "[object Generator]"; |
| 3292 |
}), e.keys = function (t) { |
| 3293 |
var e = Object(t), |
| 3294 |
r = []; |
| 3295 |
for (var n in e) r.push(n); |
| 3296 |
return r.reverse(), function next() { |
| 3297 |
for (; r.length;) { |
| 3298 |
var t = r.pop(); |
| 3299 |
if (t in e) return next.value = t, next.done = !1, next; |
| 3300 |
} |
| 3301 |
return next.done = !0, next; |
| 3302 |
}; |
| 3303 |
}, e.values = values, Context.prototype = { |
| 3304 |
constructor: Context, |
| 3305 |
reset: function reset(e) { |
| 3306 |
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); |
| 3307 |
}, |
| 3308 |
stop: function stop() { |
| 3309 |
this.done = !0; |
| 3310 |
var t = this.tryEntries[0].completion; |
| 3311 |
if ("throw" === t.type) throw t.arg; |
| 3312 |
return this.rval; |
| 3313 |
}, |
| 3314 |
dispatchException: function dispatchException(e) { |
| 3315 |
if (this.done) throw e; |
| 3316 |
var r = this; |
| 3317 |
function handle(n, o) { |
| 3318 |
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; |
| 3319 |
} |
| 3320 |
for (var o = this.tryEntries.length - 1; o >= 0; --o) { |
| 3321 |
var i = this.tryEntries[o], |
| 3322 |
a = i.completion; |
| 3323 |
if ("root" === i.tryLoc) return handle("end"); |
| 3324 |
if (i.tryLoc <= this.prev) { |
| 3325 |
var c = n.call(i, "catchLoc"), |
| 3326 |
u = n.call(i, "finallyLoc"); |
| 3327 |
if (c && u) { |
| 3328 |
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); |
| 3329 |
if (this.prev < i.finallyLoc) return handle(i.finallyLoc); |
| 3330 |
} else if (c) { |
| 3331 |
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); |
| 3332 |
} else { |
| 3333 |
if (!u) throw new Error("try statement without catch or finally"); |
| 3334 |
if (this.prev < i.finallyLoc) return handle(i.finallyLoc); |
| 3335 |
} |
| 3336 |
} |
| 3337 |
} |
| 3338 |
}, |
| 3339 |
abrupt: function abrupt(t, e) { |
| 3340 |
for (var r = this.tryEntries.length - 1; r >= 0; --r) { |
| 3341 |
var o = this.tryEntries[r]; |
| 3342 |
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { |
| 3343 |
var i = o; |
| 3344 |
break; |
| 3345 |
} |
| 3346 |
} |
| 3347 |
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); |
| 3348 |
var a = i ? i.completion : {}; |
| 3349 |
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); |
| 3350 |
}, |
| 3351 |
complete: function complete(t, e) { |
| 3352 |
if ("throw" === t.type) throw t.arg; |
| 3353 |
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; |
| 3354 |
}, |
| 3355 |
finish: function finish(t) { |
| 3356 |
for (var e = this.tryEntries.length - 1; e >= 0; --e) { |
| 3357 |
var r = this.tryEntries[e]; |
| 3358 |
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; |
| 3359 |
} |
| 3360 |
}, |
| 3361 |
"catch": function _catch(t) { |
| 3362 |
for (var e = this.tryEntries.length - 1; e >= 0; --e) { |
| 3363 |
var r = this.tryEntries[e]; |
| 3364 |
if (r.tryLoc === t) { |
| 3365 |
var n = r.completion; |
| 3366 |
if ("throw" === n.type) { |
| 3367 |
var o = n.arg; |
| 3368 |
resetTryEntry(r); |
| 3369 |
} |
| 3370 |
return o; |
| 3371 |
} |
| 3372 |
} |
| 3373 |
throw new Error("illegal catch attempt"); |
| 3374 |
}, |
| 3375 |
delegateYield: function delegateYield(e, r, n) { |
| 3376 |
return this.delegate = { |
| 3377 |
iterator: values(e), |
| 3378 |
resultName: r, |
| 3379 |
nextLoc: n |
| 3380 |
}, "next" === this.method && (this.arg = t), y; |
| 3381 |
} |
| 3382 |
}, e; |
| 3383 |
} |
| 3384 |
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3385 |
|
| 3386 |
/***/ }), |
| 3387 |
|
| 3388 |
/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": |
| 3389 |
/*!***************************************************************!*\ |
| 3390 |
!*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! |
| 3391 |
\***************************************************************/ |
| 3392 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3393 |
|
| 3394 |
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); |
| 3395 |
var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); |
| 3396 |
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); |
| 3397 |
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); |
| 3398 |
function _slicedToArray(arr, i) { |
| 3399 |
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); |
| 3400 |
} |
| 3401 |
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3402 |
|
| 3403 |
/***/ }), |
| 3404 |
|
| 3405 |
/***/ "../node_modules/@babel/runtime/helpers/toConsumableArray.js": |
| 3406 |
/*!*******************************************************************!*\ |
| 3407 |
!*** ../node_modules/@babel/runtime/helpers/toConsumableArray.js ***! |
| 3408 |
\*******************************************************************/ |
| 3409 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3410 |
|
| 3411 |
var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); |
| 3412 |
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js"); |
| 3413 |
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); |
| 3414 |
var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js"); |
| 3415 |
function _toConsumableArray(arr) { |
| 3416 |
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); |
| 3417 |
} |
| 3418 |
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3419 |
|
| 3420 |
/***/ }), |
| 3421 |
|
| 3422 |
/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": |
| 3423 |
/*!*************************************************************!*\ |
| 3424 |
!*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! |
| 3425 |
\*************************************************************/ |
| 3426 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3427 |
|
| 3428 |
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 3429 |
function toPrimitive(t, r) { |
| 3430 |
if ("object" != _typeof(t) || !t) return t; |
| 3431 |
var e = t[Symbol.toPrimitive]; |
| 3432 |
if (void 0 !== e) { |
| 3433 |
var i = e.call(t, r || "default"); |
| 3434 |
if ("object" != _typeof(i)) return i; |
| 3435 |
throw new TypeError("@@toPrimitive must return a primitive value."); |
| 3436 |
} |
| 3437 |
return ("string" === r ? String : Number)(t); |
| 3438 |
} |
| 3439 |
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3440 |
|
| 3441 |
/***/ }), |
| 3442 |
|
| 3443 |
/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": |
| 3444 |
/*!***************************************************************!*\ |
| 3445 |
!*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! |
| 3446 |
\***************************************************************/ |
| 3447 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3448 |
|
| 3449 |
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 3450 |
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); |
| 3451 |
function toPropertyKey(t) { |
| 3452 |
var i = toPrimitive(t, "string"); |
| 3453 |
return "symbol" == _typeof(i) ? i : String(i); |
| 3454 |
} |
| 3455 |
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3456 |
|
| 3457 |
/***/ }), |
| 3458 |
|
| 3459 |
/***/ "../node_modules/@babel/runtime/helpers/typeof.js": |
| 3460 |
/*!********************************************************!*\ |
| 3461 |
!*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 3462 |
\********************************************************/ |
| 3463 |
/***/ ((module) => { |
| 3464 |
|
| 3465 |
function _typeof(o) { |
| 3466 |
"@babel/helpers - typeof"; |
| 3467 |
|
| 3468 |
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { |
| 3469 |
return typeof o; |
| 3470 |
} : function (o) { |
| 3471 |
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; |
| 3472 |
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o); |
| 3473 |
} |
| 3474 |
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3475 |
|
| 3476 |
/***/ }), |
| 3477 |
|
| 3478 |
/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": |
| 3479 |
/*!****************************************************************************!*\ |
| 3480 |
!*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! |
| 3481 |
\****************************************************************************/ |
| 3482 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3483 |
|
| 3484 |
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); |
| 3485 |
function _unsupportedIterableToArray(o, minLen) { |
| 3486 |
if (!o) return; |
| 3487 |
if (typeof o === "string") return arrayLikeToArray(o, minLen); |
| 3488 |
var n = Object.prototype.toString.call(o).slice(8, -1); |
| 3489 |
if (n === "Object" && o.constructor) n = o.constructor.name; |
| 3490 |
if (n === "Map" || n === "Set") return Array.from(o); |
| 3491 |
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); |
| 3492 |
} |
| 3493 |
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3494 |
|
| 3495 |
/***/ }), |
| 3496 |
|
| 3497 |
/***/ "../node_modules/@babel/runtime/regenerator/index.js": |
| 3498 |
/*!***********************************************************!*\ |
| 3499 |
!*** ../node_modules/@babel/runtime/regenerator/index.js ***! |
| 3500 |
\***********************************************************/ |
| 3501 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3502 |
|
| 3503 |
// TODO(Babel 8): Remove this file. |
| 3504 |
|
| 3505 |
var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")(); |
| 3506 |
module.exports = runtime; |
| 3507 |
|
| 3508 |
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= |
| 3509 |
try { |
| 3510 |
regeneratorRuntime = runtime; |
| 3511 |
} catch (accidentalStrictMode) { |
| 3512 |
if (typeof globalThis === "object") { |
| 3513 |
globalThis.regeneratorRuntime = runtime; |
| 3514 |
} else { |
| 3515 |
Function("r", "regeneratorRuntime = r")(runtime); |
| 3516 |
} |
| 3517 |
} |
| 3518 |
|
| 3519 |
|
| 3520 |
/***/ }), |
| 3521 |
|
| 3522 |
/***/ "../node_modules/@wordpress/element/node_modules/is-plain-object/dist/is-plain-object.mjs": |
| 3523 |
/*!************************************************************************************************!*\ |
| 3524 |
!*** ../node_modules/@wordpress/element/node_modules/is-plain-object/dist/is-plain-object.mjs ***! |
| 3525 |
\************************************************************************************************/ |
| 3526 |
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
| 3527 |
|
| 3528 |
"use strict"; |
| 3529 |
__webpack_require__.r(__webpack_exports__); |
| 3530 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 3531 |
/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject) |
| 3532 |
/* harmony export */ }); |
| 3533 |
/*! |
| 3534 |
* is-plain-object <https://github.com/jonschlinkert/is-plain-object> |
| 3535 |
* |
| 3536 |
* Copyright (c) 2014-2017, Jon Schlinkert. |
| 3537 |
* Released under the MIT License. |
| 3538 |
*/ |
| 3539 |
|
| 3540 |
function isObject(o) { |
| 3541 |
return Object.prototype.toString.call(o) === '[object Object]'; |
| 3542 |
} |
| 3543 |
|
| 3544 |
function isPlainObject(o) { |
| 3545 |
var ctor,prot; |
| 3546 |
|
| 3547 |
if (isObject(o) === false) return false; |
| 3548 |
|
| 3549 |
// If has modified constructor |
| 3550 |
ctor = o.constructor; |
| 3551 |
if (ctor === undefined) return true; |
| 3552 |
|
| 3553 |
// If has modified prototype |
| 3554 |
prot = ctor.prototype; |
| 3555 |
if (isObject(prot) === false) return false; |
| 3556 |
|
| 3557 |
// If constructor does not have an Object-specific method |
| 3558 |
if (prot.hasOwnProperty('isPrototypeOf') === false) { |
| 3559 |
return false; |
| 3560 |
} |
| 3561 |
|
| 3562 |
// Most likely a plain Object |
| 3563 |
return true; |
| 3564 |
} |
| 3565 |
|
| 3566 |
|
| 3567 |
|
| 3568 |
|
| 3569 |
/***/ }), |
| 3570 |
|
| 3571 |
/***/ "../node_modules/dot-case/node_modules/tslib/tslib.es6.mjs": |
| 3572 |
/*!*****************************************************************!*\ |
| 3573 |
!*** ../node_modules/dot-case/node_modules/tslib/tslib.es6.mjs ***! |
| 3574 |
\*****************************************************************/ |
| 3575 |
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
| 3576 |
|
| 3577 |
"use strict"; |
| 3578 |
__webpack_require__.r(__webpack_exports__); |
| 3579 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 3580 |
/* harmony export */ __addDisposableResource: () => (/* binding */ __addDisposableResource), |
| 3581 |
/* harmony export */ __assign: () => (/* binding */ __assign), |
| 3582 |
/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator), |
| 3583 |
/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator), |
| 3584 |
/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues), |
| 3585 |
/* harmony export */ __await: () => (/* binding */ __await), |
| 3586 |
/* harmony export */ __awaiter: () => (/* binding */ __awaiter), |
| 3587 |
/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet), |
| 3588 |
/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn), |
| 3589 |
/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet), |
| 3590 |
/* harmony export */ __createBinding: () => (/* binding */ __createBinding), |
| 3591 |
/* harmony export */ __decorate: () => (/* binding */ __decorate), |
| 3592 |
/* harmony export */ __disposeResources: () => (/* binding */ __disposeResources), |
| 3593 |
/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate), |
| 3594 |
/* harmony export */ __exportStar: () => (/* binding */ __exportStar), |
| 3595 |
/* harmony export */ __extends: () => (/* binding */ __extends), |
| 3596 |
/* harmony export */ __generator: () => (/* binding */ __generator), |
| 3597 |
/* harmony export */ __importDefault: () => (/* binding */ __importDefault), |
| 3598 |
/* harmony export */ __importStar: () => (/* binding */ __importStar), |
| 3599 |
/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject), |
| 3600 |
/* harmony export */ __metadata: () => (/* binding */ __metadata), |
| 3601 |
/* harmony export */ __param: () => (/* binding */ __param), |
| 3602 |
/* harmony export */ __propKey: () => (/* binding */ __propKey), |
| 3603 |
/* harmony export */ __read: () => (/* binding */ __read), |
| 3604 |
/* harmony export */ __rest: () => (/* binding */ __rest), |
| 3605 |
/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers), |
| 3606 |
/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName), |
| 3607 |
/* harmony export */ __spread: () => (/* binding */ __spread), |
| 3608 |
/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray), |
| 3609 |
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays), |
| 3610 |
/* harmony export */ __values: () => (/* binding */ __values), |
| 3611 |
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
| 3612 |
/* harmony export */ }); |
| 3613 |
/****************************************************************************** |
| 3614 |
Copyright (c) Microsoft Corporation. |
| 3615 |
|
| 3616 |
Permission to use, copy, modify, and/or distribute this software for any |
| 3617 |
purpose with or without fee is hereby granted. |
| 3618 |
|
| 3619 |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
| 3620 |
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
| 3621 |
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
| 3622 |
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
| 3623 |
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
| 3624 |
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 3625 |
PERFORMANCE OF THIS SOFTWARE. |
| 3626 |
***************************************************************************** */ |
| 3627 |
/* global Reflect, Promise, SuppressedError, Symbol */ |
| 3628 |
|
| 3629 |
var extendStatics = function(d, b) { |
| 3630 |
extendStatics = Object.setPrototypeOf || |
| 3631 |
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || |
| 3632 |
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; |
| 3633 |
return extendStatics(d, b); |
| 3634 |
}; |
| 3635 |
|
| 3636 |
function __extends(d, b) { |
| 3637 |
if (typeof b !== "function" && b !== null) |
| 3638 |
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); |
| 3639 |
extendStatics(d, b); |
| 3640 |
function __() { this.constructor = d; } |
| 3641 |
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); |
| 3642 |
} |
| 3643 |
|
| 3644 |
var __assign = function() { |
| 3645 |
__assign = Object.assign || function __assign(t) { |
| 3646 |
for (var s, i = 1, n = arguments.length; i < n; i++) { |
| 3647 |
s = arguments[i]; |
| 3648 |
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; |
| 3649 |
} |
| 3650 |
return t; |
| 3651 |
} |
| 3652 |
return __assign.apply(this, arguments); |
| 3653 |
} |
| 3654 |
|
| 3655 |
function __rest(s, e) { |
| 3656 |
var t = {}; |
| 3657 |
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) |
| 3658 |
t[p] = s[p]; |
| 3659 |
if (s != null && typeof Object.getOwnPropertySymbols === "function") |
| 3660 |
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { |
| 3661 |
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) |
| 3662 |
t[p[i]] = s[p[i]]; |
| 3663 |
} |
| 3664 |
return t; |
| 3665 |
} |
| 3666 |
|
| 3667 |
function __decorate(decorators, target, key, desc) { |
| 3668 |
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; |
| 3669 |
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); |
| 3670 |
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; |
| 3671 |
return c > 3 && r && Object.defineProperty(target, key, r), r; |
| 3672 |
} |
| 3673 |
|
| 3674 |
function __param(paramIndex, decorator) { |
| 3675 |
return function (target, key) { decorator(target, key, paramIndex); } |
| 3676 |
} |
| 3677 |
|
| 3678 |
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { |
| 3679 |
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } |
| 3680 |
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; |
| 3681 |
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; |
| 3682 |
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); |
| 3683 |
var _, done = false; |
| 3684 |
for (var i = decorators.length - 1; i >= 0; i--) { |
| 3685 |
var context = {}; |
| 3686 |
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; |
| 3687 |
for (var p in contextIn.access) context.access[p] = contextIn.access[p]; |
| 3688 |
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; |
| 3689 |
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); |
| 3690 |
if (kind === "accessor") { |
| 3691 |
if (result === void 0) continue; |
| 3692 |
if (result === null || typeof result !== "object") throw new TypeError("Object expected"); |
| 3693 |
if (_ = accept(result.get)) descriptor.get = _; |
| 3694 |
if (_ = accept(result.set)) descriptor.set = _; |
| 3695 |
if (_ = accept(result.init)) initializers.unshift(_); |
| 3696 |
} |
| 3697 |
else if (_ = accept(result)) { |
| 3698 |
if (kind === "field") initializers.unshift(_); |
| 3699 |
else descriptor[key] = _; |
| 3700 |
} |
| 3701 |
} |
| 3702 |
if (target) Object.defineProperty(target, contextIn.name, descriptor); |
| 3703 |
done = true; |
| 3704 |
}; |
| 3705 |
|
| 3706 |
function __runInitializers(thisArg, initializers, value) { |
| 3707 |
var useValue = arguments.length > 2; |
| 3708 |
for (var i = 0; i < initializers.length; i++) { |
| 3709 |
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); |
| 3710 |
} |
| 3711 |
return useValue ? value : void 0; |
| 3712 |
}; |
| 3713 |
|
| 3714 |
function __propKey(x) { |
| 3715 |
return typeof x === "symbol" ? x : "".concat(x); |
| 3716 |
}; |
| 3717 |
|
| 3718 |
function __setFunctionName(f, name, prefix) { |
| 3719 |
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; |
| 3720 |
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); |
| 3721 |
}; |
| 3722 |
|
| 3723 |
function __metadata(metadataKey, metadataValue) { |
| 3724 |
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); |
| 3725 |
} |
| 3726 |
|
| 3727 |
function __awaiter(thisArg, _arguments, P, generator) { |
| 3728 |
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } |
| 3729 |
return new (P || (P = Promise))(function (resolve, reject) { |
| 3730 |
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } |
| 3731 |
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } |
| 3732 |
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } |
| 3733 |
step((generator = generator.apply(thisArg, _arguments || [])).next()); |
| 3734 |
}); |
| 3735 |
} |
| 3736 |
|
| 3737 |
function __generator(thisArg, body) { |
| 3738 |
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; |
| 3739 |
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; |
| 3740 |
function verb(n) { return function (v) { return step([n, v]); }; } |
| 3741 |
function step(op) { |
| 3742 |
if (f) throw new TypeError("Generator is already executing."); |
| 3743 |
while (g && (g = 0, op[0] && (_ = 0)), _) try { |
| 3744 |
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; |
| 3745 |
if (y = 0, t) op = [op[0] & 2, t.value]; |
| 3746 |
switch (op[0]) { |
| 3747 |
case 0: case 1: t = op; break; |
| 3748 |
case 4: _.label++; return { value: op[1], done: false }; |
| 3749 |
case 5: _.label++; y = op[1]; op = [0]; continue; |
| 3750 |
case 7: op = _.ops.pop(); _.trys.pop(); continue; |
| 3751 |
default: |
| 3752 |
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } |
| 3753 |
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } |
| 3754 |
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } |
| 3755 |
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } |
| 3756 |
if (t[2]) _.ops.pop(); |
| 3757 |
_.trys.pop(); continue; |
| 3758 |
} |
| 3759 |
op = body.call(thisArg, _); |
| 3760 |
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } |
| 3761 |
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; |
| 3762 |
} |
| 3763 |
} |
| 3764 |
|
| 3765 |
var __createBinding = Object.create ? (function(o, m, k, k2) { |
| 3766 |
if (k2 === undefined) k2 = k; |
| 3767 |
var desc = Object.getOwnPropertyDescriptor(m, k); |
| 3768 |
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { |
| 3769 |
desc = { enumerable: true, get: function() { return m[k]; } }; |
| 3770 |
} |
| 3771 |
Object.defineProperty(o, k2, desc); |
| 3772 |
}) : (function(o, m, k, k2) { |
| 3773 |
if (k2 === undefined) k2 = k; |
| 3774 |
o[k2] = m[k]; |
| 3775 |
}); |
| 3776 |
|
| 3777 |
function __exportStar(m, o) { |
| 3778 |
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); |
| 3779 |
} |
| 3780 |
|
| 3781 |
function __values(o) { |
| 3782 |
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; |
| 3783 |
if (m) return m.call(o); |
| 3784 |
if (o && typeof o.length === "number") return { |
| 3785 |
next: function () { |
| 3786 |
if (o && i >= o.length) o = void 0; |
| 3787 |
return { value: o && o[i++], done: !o }; |
| 3788 |
} |
| 3789 |
}; |
| 3790 |
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); |
| 3791 |
} |
| 3792 |
|
| 3793 |
function __read(o, n) { |
| 3794 |
var m = typeof Symbol === "function" && o[Symbol.iterator]; |
| 3795 |
if (!m) return o; |
| 3796 |
var i = m.call(o), r, ar = [], e; |
| 3797 |
try { |
| 3798 |
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); |
| 3799 |
} |
| 3800 |
catch (error) { e = { error: error }; } |
| 3801 |
finally { |
| 3802 |
try { |
| 3803 |
if (r && !r.done && (m = i["return"])) m.call(i); |
| 3804 |
} |
| 3805 |
finally { if (e) throw e.error; } |
| 3806 |
} |
| 3807 |
return ar; |
| 3808 |
} |
| 3809 |
|
| 3810 |
/** @deprecated */ |
| 3811 |
function __spread() { |
| 3812 |
for (var ar = [], i = 0; i < arguments.length; i++) |
| 3813 |
ar = ar.concat(__read(arguments[i])); |
| 3814 |
return ar; |
| 3815 |
} |
| 3816 |
|
| 3817 |
/** @deprecated */ |
| 3818 |
function __spreadArrays() { |
| 3819 |
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; |
| 3820 |
for (var r = Array(s), k = 0, i = 0; i < il; i++) |
| 3821 |
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) |
| 3822 |
r[k] = a[j]; |
| 3823 |
return r; |
| 3824 |
} |
| 3825 |
|
| 3826 |
function __spreadArray(to, from, pack) { |
| 3827 |
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { |
| 3828 |
if (ar || !(i in from)) { |
| 3829 |
if (!ar) ar = Array.prototype.slice.call(from, 0, i); |
| 3830 |
ar[i] = from[i]; |
| 3831 |
} |
| 3832 |
} |
| 3833 |
return to.concat(ar || Array.prototype.slice.call(from)); |
| 3834 |
} |
| 3835 |
|
| 3836 |
function __await(v) { |
| 3837 |
return this instanceof __await ? (this.v = v, this) : new __await(v); |
| 3838 |
} |
| 3839 |
|
| 3840 |
function __asyncGenerator(thisArg, _arguments, generator) { |
| 3841 |
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); |
| 3842 |
var g = generator.apply(thisArg, _arguments || []), i, q = []; |
| 3843 |
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; |
| 3844 |
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } |
| 3845 |
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } |
| 3846 |
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } |
| 3847 |
function fulfill(value) { resume("next", value); } |
| 3848 |
function reject(value) { resume("throw", value); } |
| 3849 |
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } |
| 3850 |
} |
| 3851 |
|
| 3852 |
function __asyncDelegator(o) { |
| 3853 |
var i, p; |
| 3854 |
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; |
| 3855 |
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } |
| 3856 |
} |
| 3857 |
|
| 3858 |
function __asyncValues(o) { |
| 3859 |
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); |
| 3860 |
var m = o[Symbol.asyncIterator], i; |
| 3861 |
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); |
| 3862 |
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } |
| 3863 |
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } |
| 3864 |
} |
| 3865 |
|
| 3866 |
function __makeTemplateObject(cooked, raw) { |
| 3867 |
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } |
| 3868 |
return cooked; |
| 3869 |
}; |
| 3870 |
|
| 3871 |
var __setModuleDefault = Object.create ? (function(o, v) { |
| 3872 |
Object.defineProperty(o, "default", { enumerable: true, value: v }); |
| 3873 |
}) : function(o, v) { |
| 3874 |
o["default"] = v; |
| 3875 |
}; |
| 3876 |
|
| 3877 |
function __importStar(mod) { |
| 3878 |
if (mod && mod.__esModule) return mod; |
| 3879 |
var result = {}; |
| 3880 |
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |
| 3881 |
__setModuleDefault(result, mod); |
| 3882 |
return result; |
| 3883 |
} |
| 3884 |
|
| 3885 |
function __importDefault(mod) { |
| 3886 |
return (mod && mod.__esModule) ? mod : { default: mod }; |
| 3887 |
} |
| 3888 |
|
| 3889 |
function __classPrivateFieldGet(receiver, state, kind, f) { |
| 3890 |
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); |
| 3891 |
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); |
| 3892 |
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); |
| 3893 |
} |
| 3894 |
|
| 3895 |
function __classPrivateFieldSet(receiver, state, value, kind, f) { |
| 3896 |
if (kind === "m") throw new TypeError("Private method is not writable"); |
| 3897 |
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); |
| 3898 |
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); |
| 3899 |
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; |
| 3900 |
} |
| 3901 |
|
| 3902 |
function __classPrivateFieldIn(state, receiver) { |
| 3903 |
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); |
| 3904 |
return typeof state === "function" ? receiver === state : state.has(receiver); |
| 3905 |
} |
| 3906 |
|
| 3907 |
function __addDisposableResource(env, value, async) { |
| 3908 |
if (value !== null && value !== void 0) { |
| 3909 |
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); |
| 3910 |
var dispose; |
| 3911 |
if (async) { |
| 3912 |
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); |
| 3913 |
dispose = value[Symbol.asyncDispose]; |
| 3914 |
} |
| 3915 |
if (dispose === void 0) { |
| 3916 |
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); |
| 3917 |
dispose = value[Symbol.dispose]; |
| 3918 |
} |
| 3919 |
if (typeof dispose !== "function") throw new TypeError("Object not disposable."); |
| 3920 |
env.stack.push({ value: value, dispose: dispose, async: async }); |
| 3921 |
} |
| 3922 |
else if (async) { |
| 3923 |
env.stack.push({ async: true }); |
| 3924 |
} |
| 3925 |
return value; |
| 3926 |
} |
| 3927 |
|
| 3928 |
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { |
| 3929 |
var e = new Error(message); |
| 3930 |
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; |
| 3931 |
}; |
| 3932 |
|
| 3933 |
function __disposeResources(env) { |
| 3934 |
function fail(e) { |
| 3935 |
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; |
| 3936 |
env.hasError = true; |
| 3937 |
} |
| 3938 |
function next() { |
| 3939 |
while (env.stack.length) { |
| 3940 |
var rec = env.stack.pop(); |
| 3941 |
try { |
| 3942 |
var result = rec.dispose && rec.dispose.call(rec.value); |
| 3943 |
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); |
| 3944 |
} |
| 3945 |
catch (e) { |
| 3946 |
fail(e); |
| 3947 |
} |
| 3948 |
} |
| 3949 |
if (env.hasError) throw env.error; |
| 3950 |
} |
| 3951 |
return next(); |
| 3952 |
} |
| 3953 |
|
| 3954 |
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ |
| 3955 |
__extends, |
| 3956 |
__assign, |
| 3957 |
__rest, |
| 3958 |
__decorate, |
| 3959 |
__param, |
| 3960 |
__metadata, |
| 3961 |
__awaiter, |
| 3962 |
__generator, |
| 3963 |
__createBinding, |
| 3964 |
__exportStar, |
| 3965 |
__values, |
| 3966 |
__read, |
| 3967 |
__spread, |
| 3968 |
__spreadArrays, |
| 3969 |
__spreadArray, |
| 3970 |
__await, |
| 3971 |
__asyncGenerator, |
| 3972 |
__asyncDelegator, |
| 3973 |
__asyncValues, |
| 3974 |
__makeTemplateObject, |
| 3975 |
__importStar, |
| 3976 |
__importDefault, |
| 3977 |
__classPrivateFieldGet, |
| 3978 |
__classPrivateFieldSet, |
| 3979 |
__classPrivateFieldIn, |
| 3980 |
__addDisposableResource, |
| 3981 |
__disposeResources, |
| 3982 |
}); |
| 3983 |
|
| 3984 |
|
| 3985 |
/***/ }), |
| 3986 |
|
| 3987 |
/***/ "../node_modules/param-case/node_modules/tslib/tslib.es6.mjs": |
| 3988 |
/*!*******************************************************************!*\ |
| 3989 |
!*** ../node_modules/param-case/node_modules/tslib/tslib.es6.mjs ***! |
| 3990 |
\*******************************************************************/ |
| 3991 |
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
| 3992 |
|
| 3993 |
"use strict"; |
| 3994 |
__webpack_require__.r(__webpack_exports__); |
| 3995 |
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 3996 |
/* harmony export */ __addDisposableResource: () => (/* binding */ __addDisposableResource), |
| 3997 |
/* harmony export */ __assign: () => (/* binding */ __assign), |
| 3998 |
/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator), |
| 3999 |
/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator), |
| 4000 |
/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues), |
| 4001 |
/* harmony export */ __await: () => (/* binding */ __await), |
| 4002 |
/* harmony export */ __awaiter: () => (/* binding */ __awaiter), |
| 4003 |
/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet), |
| 4004 |
/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn), |
| 4005 |
/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet), |
| 4006 |
/* harmony export */ __createBinding: () => (/* binding */ __createBinding), |
| 4007 |
/* harmony export */ __decorate: () => (/* binding */ __decorate), |
| 4008 |
/* harmony export */ __disposeResources: () => (/* binding */ __disposeResources), |
| 4009 |
/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate), |
| 4010 |
/* harmony export */ __exportStar: () => (/* binding */ __exportStar), |
| 4011 |
/* harmony export */ __extends: () => (/* binding */ __extends), |
| 4012 |
/* harmony export */ __generator: () => (/* binding */ __generator), |
| 4013 |
/* harmony export */ __importDefault: () => (/* binding */ __importDefault), |
| 4014 |
/* harmony export */ __importStar: () => (/* binding */ __importStar), |
| 4015 |
/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject), |
| 4016 |
/* harmony export */ __metadata: () => (/* binding */ __metadata), |
| 4017 |
/* harmony export */ __param: () => (/* binding */ __param), |
| 4018 |
/* harmony export */ __propKey: () => (/* binding */ __propKey), |
| 4019 |
/* harmony export */ __read: () => (/* binding */ __read), |
| 4020 |
/* harmony export */ __rest: () => (/* binding */ __rest), |
| 4021 |
/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers), |
| 4022 |
/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName), |
| 4023 |
/* harmony export */ __spread: () => (/* binding */ __spread), |
| 4024 |
/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray), |
| 4025 |
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays), |
| 4026 |
/* harmony export */ __values: () => (/* binding */ __values), |
| 4027 |
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
| 4028 |
/* harmony export */ }); |
| 4029 |
/****************************************************************************** |
| 4030 |
Copyright (c) Microsoft Corporation. |
| 4031 |
|
| 4032 |
Permission to use, copy, modify, and/or distribute this software for any |
| 4033 |
purpose with or without fee is hereby granted. |
| 4034 |
|
| 4035 |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
| 4036 |
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
| 4037 |
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
| 4038 |
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
| 4039 |
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
| 4040 |
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 4041 |
PERFORMANCE OF THIS SOFTWARE. |
| 4042 |
***************************************************************************** */ |
| 4043 |
/* global Reflect, Promise, SuppressedError, Symbol */ |
| 4044 |
|
| 4045 |
var extendStatics = function(d, b) { |
| 4046 |
extendStatics = Object.setPrototypeOf || |
| 4047 |
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || |
| 4048 |
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; |
| 4049 |
return extendStatics(d, b); |
| 4050 |
}; |
| 4051 |
|
| 4052 |
function __extends(d, b) { |
| 4053 |
if (typeof b !== "function" && b !== null) |
| 4054 |
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); |
| 4055 |
extendStatics(d, b); |
| 4056 |
function __() { this.constructor = d; } |
| 4057 |
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); |
| 4058 |
} |
| 4059 |
|
| 4060 |
var __assign = function() { |
| 4061 |
__assign = Object.assign || function __assign(t) { |
| 4062 |
for (var s, i = 1, n = arguments.length; i < n; i++) { |
| 4063 |
s = arguments[i]; |
| 4064 |
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; |
| 4065 |
} |
| 4066 |
return t; |
| 4067 |
} |
| 4068 |
return __assign.apply(this, arguments); |
| 4069 |
} |
| 4070 |
|
| 4071 |
function __rest(s, e) { |
| 4072 |
var t = {}; |
| 4073 |
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) |
| 4074 |
t[p] = s[p]; |
| 4075 |
if (s != null && typeof Object.getOwnPropertySymbols === "function") |
| 4076 |
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { |
| 4077 |
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) |
| 4078 |
t[p[i]] = s[p[i]]; |
| 4079 |
} |
| 4080 |
return t; |
| 4081 |
} |
| 4082 |
|
| 4083 |
function __decorate(decorators, target, key, desc) { |
| 4084 |
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; |
| 4085 |
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); |
| 4086 |
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; |
| 4087 |
return c > 3 && r && Object.defineProperty(target, key, r), r; |
| 4088 |
} |
| 4089 |
|
| 4090 |
function __param(paramIndex, decorator) { |
| 4091 |
return function (target, key) { decorator(target, key, paramIndex); } |
| 4092 |
} |
| 4093 |
|
| 4094 |
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { |
| 4095 |
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } |
| 4096 |
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; |
| 4097 |
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; |
| 4098 |
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); |
| 4099 |
var _, done = false; |
| 4100 |
for (var i = decorators.length - 1; i >= 0; i--) { |
| 4101 |
var context = {}; |
| 4102 |
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; |
| 4103 |
for (var p in contextIn.access) context.access[p] = contextIn.access[p]; |
| 4104 |
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; |
| 4105 |
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); |
| 4106 |
if (kind === "accessor") { |
| 4107 |
if (result === void 0) continue; |
| 4108 |
if (result === null || typeof result !== "object") throw new TypeError("Object expected"); |
| 4109 |
if (_ = accept(result.get)) descriptor.get = _; |
| 4110 |
if (_ = accept(result.set)) descriptor.set = _; |
| 4111 |
if (_ = accept(result.init)) initializers.unshift(_); |
| 4112 |
} |
| 4113 |
else if (_ = accept(result)) { |
| 4114 |
if (kind === "field") initializers.unshift(_); |
| 4115 |
else descriptor[key] = _; |
| 4116 |
} |
| 4117 |
} |
| 4118 |
if (target) Object.defineProperty(target, contextIn.name, descriptor); |
| 4119 |
done = true; |
| 4120 |
}; |
| 4121 |
|
| 4122 |
function __runInitializers(thisArg, initializers, value) { |
| 4123 |
var useValue = arguments.length > 2; |
| 4124 |
for (var i = 0; i < initializers.length; i++) { |
| 4125 |
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); |
| 4126 |
} |
| 4127 |
return useValue ? value : void 0; |
| 4128 |
}; |
| 4129 |
|
| 4130 |
function __propKey(x) { |
| 4131 |
return typeof x === "symbol" ? x : "".concat(x); |
| 4132 |
}; |
| 4133 |
|
| 4134 |
function __setFunctionName(f, name, prefix) { |
| 4135 |
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; |
| 4136 |
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); |
| 4137 |
}; |
| 4138 |
|
| 4139 |
function __metadata(metadataKey, metadataValue) { |
| 4140 |
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); |
| 4141 |
} |
| 4142 |
|
| 4143 |
function __awaiter(thisArg, _arguments, P, generator) { |
| 4144 |
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } |
| 4145 |
return new (P || (P = Promise))(function (resolve, reject) { |
| 4146 |
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } |
| 4147 |
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } |
| 4148 |
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } |
| 4149 |
step((generator = generator.apply(thisArg, _arguments || [])).next()); |
| 4150 |
}); |
| 4151 |
} |
| 4152 |
|
| 4153 |
function __generator(thisArg, body) { |
| 4154 |
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; |
| 4155 |
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; |
| 4156 |
function verb(n) { return function (v) { return step([n, v]); }; } |
| 4157 |
function step(op) { |
| 4158 |
if (f) throw new TypeError("Generator is already executing."); |
| 4159 |
while (g && (g = 0, op[0] && (_ = 0)), _) try { |
| 4160 |
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; |
| 4161 |
if (y = 0, t) op = [op[0] & 2, t.value]; |
| 4162 |
switch (op[0]) { |
| 4163 |
case 0: case 1: t = op; break; |
| 4164 |
case 4: _.label++; return { value: op[1], done: false }; |
| 4165 |
case 5: _.label++; y = op[1]; op = [0]; continue; |
| 4166 |
case 7: op = _.ops.pop(); _.trys.pop(); continue; |
| 4167 |
default: |
| 4168 |
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } |
| 4169 |
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } |
| 4170 |
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } |
| 4171 |
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } |
| 4172 |
if (t[2]) _.ops.pop(); |
| 4173 |
_.trys.pop(); continue; |
| 4174 |
} |
| 4175 |
op = body.call(thisArg, _); |
| 4176 |
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } |
| 4177 |
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; |
| 4178 |
} |
| 4179 |
} |
| 4180 |
|
| 4181 |
var __createBinding = Object.create ? (function(o, m, k, k2) { |
| 4182 |
if (k2 === undefined) k2 = k; |
| 4183 |
var desc = Object.getOwnPropertyDescriptor(m, k); |
| 4184 |
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { |
| 4185 |
desc = { enumerable: true, get: function() { return m[k]; } }; |
| 4186 |
} |
| 4187 |
Object.defineProperty(o, k2, desc); |
| 4188 |
}) : (function(o, m, k, k2) { |
| 4189 |
if (k2 === undefined) k2 = k; |
| 4190 |
o[k2] = m[k]; |
| 4191 |
}); |
| 4192 |
|
| 4193 |
function __exportStar(m, o) { |
| 4194 |
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); |
| 4195 |
} |
| 4196 |
|
| 4197 |
function __values(o) { |
| 4198 |
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; |
| 4199 |
if (m) return m.call(o); |
| 4200 |
if (o && typeof o.length === "number") return { |
| 4201 |
next: function () { |
| 4202 |
if (o && i >= o.length) o = void 0; |
| 4203 |
return { value: o && o[i++], done: !o }; |
| 4204 |
} |
| 4205 |
}; |
| 4206 |
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); |
| 4207 |
} |
| 4208 |
|
| 4209 |
function __read(o, n) { |
| 4210 |
var m = typeof Symbol === "function" && o[Symbol.iterator]; |
| 4211 |
if (!m) return o; |
| 4212 |
var i = m.call(o), r, ar = [], e; |
| 4213 |
try { |
| 4214 |
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); |
| 4215 |
} |
| 4216 |
catch (error) { e = { error: error }; } |
| 4217 |
finally { |
| 4218 |
try { |
| 4219 |
if (r && !r.done && (m = i["return"])) m.call(i); |
| 4220 |
} |
| 4221 |
finally { if (e) throw e.error; } |
| 4222 |
} |
| 4223 |
return ar; |
| 4224 |
} |
| 4225 |
|
| 4226 |
/** @deprecated */ |
| 4227 |
function __spread() { |
| 4228 |
for (var ar = [], i = 0; i < arguments.length; i++) |
| 4229 |
ar = ar.concat(__read(arguments[i])); |
| 4230 |
return ar; |
| 4231 |
} |
| 4232 |
|
| 4233 |
/** @deprecated */ |
| 4234 |
function __spreadArrays() { |
| 4235 |
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; |
| 4236 |
for (var r = Array(s), k = 0, i = 0; i < il; i++) |
| 4237 |
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) |
| 4238 |
r[k] = a[j]; |
| 4239 |
return r; |
| 4240 |
} |
| 4241 |
|
| 4242 |
function __spreadArray(to, from, pack) { |
| 4243 |
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { |
| 4244 |
if (ar || !(i in from)) { |
| 4245 |
if (!ar) ar = Array.prototype.slice.call(from, 0, i); |
| 4246 |
ar[i] = from[i]; |
| 4247 |
} |
| 4248 |
} |
| 4249 |
return to.concat(ar || Array.prototype.slice.call(from)); |
| 4250 |
} |
| 4251 |
|
| 4252 |
function __await(v) { |
| 4253 |
return this instanceof __await ? (this.v = v, this) : new __await(v); |
| 4254 |
} |
| 4255 |
|
| 4256 |
function __asyncGenerator(thisArg, _arguments, generator) { |
| 4257 |
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); |
| 4258 |
var g = generator.apply(thisArg, _arguments || []), i, q = []; |
| 4259 |
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; |
| 4260 |
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } |
| 4261 |
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } |
| 4262 |
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } |
| 4263 |
function fulfill(value) { resume("next", value); } |
| 4264 |
function reject(value) { resume("throw", value); } |
| 4265 |
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } |
| 4266 |
} |
| 4267 |
|
| 4268 |
function __asyncDelegator(o) { |
| 4269 |
var i, p; |
| 4270 |
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; |
| 4271 |
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } |
| 4272 |
} |
| 4273 |
|
| 4274 |
function __asyncValues(o) { |
| 4275 |
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); |
| 4276 |
var m = o[Symbol.asyncIterator], i; |
| 4277 |
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); |
| 4278 |
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } |
| 4279 |
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } |
| 4280 |
} |
| 4281 |
|
| 4282 |
function __makeTemplateObject(cooked, raw) { |
| 4283 |
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } |
| 4284 |
return cooked; |
| 4285 |
}; |
| 4286 |
|
| 4287 |
var __setModuleDefault = Object.create ? (function(o, v) { |
| 4288 |
Object.defineProperty(o, "default", { enumerable: true, value: v }); |
| 4289 |
}) : function(o, v) { |
| 4290 |
o["default"] = v; |
| 4291 |
}; |
| 4292 |
|
| 4293 |
function __importStar(mod) { |
| 4294 |
if (mod && mod.__esModule) return mod; |
| 4295 |
var result = {}; |
| 4296 |
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |
| 4297 |
__setModuleDefault(result, mod); |
| 4298 |
return result; |
| 4299 |
} |
| 4300 |
|
| 4301 |
function __importDefault(mod) { |
| 4302 |
return (mod && mod.__esModule) ? mod : { default: mod }; |
| 4303 |
} |
| 4304 |
|
| 4305 |
function __classPrivateFieldGet(receiver, state, kind, f) { |
| 4306 |
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); |
| 4307 |
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); |
| 4308 |
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); |
| 4309 |
} |
| 4310 |
|
| 4311 |
function __classPrivateFieldSet(receiver, state, value, kind, f) { |
| 4312 |
if (kind === "m") throw new TypeError("Private method is not writable"); |
| 4313 |
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); |
| 4314 |
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); |
| 4315 |
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; |
| 4316 |
} |
| 4317 |
|
| 4318 |
function __classPrivateFieldIn(state, receiver) { |
| 4319 |
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); |
| 4320 |
return typeof state === "function" ? receiver === state : state.has(receiver); |
| 4321 |
} |
| 4322 |
|
| 4323 |
function __addDisposableResource(env, value, async) { |
| 4324 |
if (value !== null && value !== void 0) { |
| 4325 |
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); |
| 4326 |
var dispose; |
| 4327 |
if (async) { |
| 4328 |
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); |
| 4329 |
dispose = value[Symbol.asyncDispose]; |
| 4330 |
} |
| 4331 |
if (dispose === void 0) { |
| 4332 |
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); |
| 4333 |
dispose = value[Symbol.dispose]; |
| 4334 |
} |
| 4335 |
if (typeof dispose !== "function") throw new TypeError("Object not disposable."); |
| 4336 |
env.stack.push({ value: value, dispose: dispose, async: async }); |
| 4337 |
} |
| 4338 |
else if (async) { |
| 4339 |
env.stack.push({ async: true }); |
| 4340 |
} |
| 4341 |
return value; |
| 4342 |
} |
| 4343 |
|
| 4344 |
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { |
| 4345 |
var e = new Error(message); |
| 4346 |
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; |
| 4347 |
}; |
| 4348 |
|
| 4349 |
function __disposeResources(env) { |
| 4350 |
function fail(e) { |
| 4351 |
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; |
| 4352 |
env.hasError = true; |
| 4353 |
} |
| 4354 |
function next() { |
| 4355 |
while (env.stack.length) { |
| 4356 |
var rec = env.stack.pop(); |
| 4357 |
try { |
| 4358 |
var result = rec.dispose && rec.dispose.call(rec.value); |
| 4359 |
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); |
| 4360 |
} |
| 4361 |
catch (e) { |
| 4362 |
fail(e); |
| 4363 |
} |
| 4364 |
} |
| 4365 |
if (env.hasError) throw env.error; |
| 4366 |
} |
| 4367 |
return next(); |
| 4368 |
} |
| 4369 |
|
| 4370 |
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ |
| 4371 |
__extends, |
| 4372 |
__assign, |
| 4373 |
__rest, |
| 4374 |
__decorate, |
| 4375 |
__param, |
| 4376 |
__metadata, |
| 4377 |
__awaiter, |
| 4378 |
__generator, |
| 4379 |
__createBinding, |
| 4380 |
__exportStar, |
| 4381 |
__values, |
| 4382 |
__read, |
| 4383 |
__spread, |
| 4384 |
__spreadArrays, |
| 4385 |
__spreadArray, |
| 4386 |
__await, |
| 4387 |
__asyncGenerator, |
| 4388 |
__asyncDelegator, |
| 4389 |
__asyncValues, |
| 4390 |
__makeTemplateObject, |
| 4391 |
__importStar, |
| 4392 |
__importDefault, |
| 4393 |
__classPrivateFieldGet, |
| 4394 |
__classPrivateFieldSet, |
| 4395 |
__classPrivateFieldIn, |
| 4396 |
__addDisposableResource, |
| 4397 |
__disposeResources, |
| 4398 |
}); |
| 4399 |
|
| 4400 |
|
| 4401 |
/***/ }) |
| 4402 |
|
| 4403 |
/******/ }); |
| 4404 |
/************************************************************************/ |
| 4405 |
/******/ // The module cache |
| 4406 |
/******/ var __webpack_module_cache__ = {}; |
| 4407 |
/******/ |
| 4408 |
/******/ // The require function |
| 4409 |
/******/ function __webpack_require__(moduleId) { |
| 4410 |
/******/ // Check if module is in cache |
| 4411 |
/******/ var cachedModule = __webpack_module_cache__[moduleId]; |
| 4412 |
/******/ if (cachedModule !== undefined) { |
| 4413 |
/******/ return cachedModule.exports; |
| 4414 |
/******/ } |
| 4415 |
/******/ // Create a new module (and put it into the cache) |
| 4416 |
/******/ var module = __webpack_module_cache__[moduleId] = { |
| 4417 |
/******/ // no module.id needed |
| 4418 |
/******/ // no module.loaded needed |
| 4419 |
/******/ exports: {} |
| 4420 |
/******/ }; |
| 4421 |
/******/ |
| 4422 |
/******/ // Execute the module function |
| 4423 |
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
| 4424 |
/******/ |
| 4425 |
/******/ // Return the exports of the module |
| 4426 |
/******/ return module.exports; |
| 4427 |
/******/ } |
| 4428 |
/******/ |
| 4429 |
/************************************************************************/ |
| 4430 |
/******/ /* webpack/runtime/compat get default export */ |
| 4431 |
/******/ (() => { |
| 4432 |
/******/ // getDefaultExport function for compatibility with non-harmony modules |
| 4433 |
/******/ __webpack_require__.n = (module) => { |
| 4434 |
/******/ var getter = module && module.__esModule ? |
| 4435 |
/******/ () => (module['default']) : |
| 4436 |
/******/ () => (module); |
| 4437 |
/******/ __webpack_require__.d(getter, { a: getter }); |
| 4438 |
/******/ return getter; |
| 4439 |
/******/ }; |
| 4440 |
/******/ })(); |
| 4441 |
/******/ |
| 4442 |
/******/ /* webpack/runtime/define property getters */ |
| 4443 |
/******/ (() => { |
| 4444 |
/******/ // define getter functions for harmony exports |
| 4445 |
/******/ __webpack_require__.d = (exports, definition) => { |
| 4446 |
/******/ for(var key in definition) { |
| 4447 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { |
| 4448 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); |
| 4449 |
/******/ } |
| 4450 |
/******/ } |
| 4451 |
/******/ }; |
| 4452 |
/******/ })(); |
| 4453 |
/******/ |
| 4454 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */ |
| 4455 |
/******/ (() => { |
| 4456 |
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) |
| 4457 |
/******/ })(); |
| 4458 |
/******/ |
| 4459 |
/******/ /* webpack/runtime/make namespace object */ |
| 4460 |
/******/ (() => { |
| 4461 |
/******/ // define __esModule on exports |
| 4462 |
/******/ __webpack_require__.r = (exports) => { |
| 4463 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
| 4464 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
| 4465 |
/******/ } |
| 4466 |
/******/ Object.defineProperty(exports, '__esModule', { value: true }); |
| 4467 |
/******/ }; |
| 4468 |
/******/ })(); |
| 4469 |
/******/ |
| 4470 |
/************************************************************************/ |
| 4471 |
var __webpack_exports__ = {}; |
| 4472 |
// This entry need to be wrapped in an IIFE because it need to be in strict mode. |
| 4473 |
(() => { |
| 4474 |
"use strict"; |
| 4475 |
/*!*****************************************************!*\ |
| 4476 |
!*** ../modules/element-manager/assets/js/admin.js ***! |
| 4477 |
\*****************************************************/ |
| 4478 |
|
| 4479 |
|
| 4480 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 4481 |
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 4482 |
var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js"); |
| 4483 |
var _domReady = _interopRequireDefault(__webpack_require__(/*! @wordpress/dom-ready */ "@wordpress/dom-ready")); |
| 4484 |
var _app = __webpack_require__(/*! ./app */ "../modules/element-manager/assets/js/app.js"); |
| 4485 |
(0, _domReady.default)(function () { |
| 4486 |
var htmlOutput = document.getElementById('elementor-element-manager-wrap'); |
| 4487 |
if (htmlOutput) { |
| 4488 |
(0, _element.render)( /*#__PURE__*/_react.default.createElement(_app.App, null), htmlOutput); |
| 4489 |
} |
| 4490 |
}); |
| 4491 |
})(); |
| 4492 |
|
| 4493 |
/******/ })() |
| 4494 |
; |
| 4495 |
//# sourceMappingURL=element-manager-admin.js.map |