PluginProbe
Elementor Website Builder – more than just a page builder / 3.7.3
Elementor Website Builder – more than just a page builder v3.7.3
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | assets/js/admin-top-bar.js +1669 -972 4.3.1 → 3.7.3 View file →
@@ -1,1009 +1,1706 @@
1 -(function(react, react_dom, _wordpress_i18n) {
1 +/*! elementor - v3.7.3 - 29-08-2022 */
2 +/******/ (() => { // webpackBootstrap
3 +/******/ var __webpack_modules__ = ({
2 4
3 -//#region \0rolldown/runtime.js
4 - var __create = Object.create;
5 - var __defProp = Object.defineProperty;
6 - var __name = (target, value) => __defProp(target, "name", {
7 - value,
8 - configurable: true
9 - });
10 - var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11 - var __getOwnPropNames = Object.getOwnPropertyNames;
12 - var __getProtoOf = Object.getPrototypeOf;
13 - var __hasOwnProp = Object.prototype.hasOwnProperty;
14 - var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
15 - var __copyProps = (to, from, except, desc) => {
16 - if (from && typeof from === "object" || typeof from === "function") {
17 - for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18 - key = keys[i];
19 - if (!__hasOwnProp.call(to, key) && key !== except) {
20 - __defProp(to, key, {
21 - get: ((k) => from[k]).bind(null, key),
22 - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23 - });
24 - }
25 - }
5 +/***/ "../core/common/assets/js/utils/environment.js":
6 +/*!*****************************************************!*\
7 + !*** ../core/common/assets/js/utils/environment.js ***!
8 + \*****************************************************/
9 +/***/ ((__unused_webpack_module, exports) => {
10 +
11 +"use strict";
12 +
13 +
14 +Object.defineProperty(exports, "__esModule", ({
15 + value: true
16 +}));
17 +exports["default"] = void 0;
18 +
19 +var matchUserAgent = function matchUserAgent(UserAgentStr) {
20 + return userAgent.indexOf(UserAgentStr) >= 0;
21 +},
22 + userAgent = navigator.userAgent,
23 + // Solution influenced by https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser
24 +// Opera 8.0+
25 +isOpera = !!window.opr && !!opr.addons || !!window.opera || matchUserAgent(' OPR/'),
26 + // Firefox 1.0+
27 +isFirefox = matchUserAgent('Firefox'),
28 + // Safari 3.0+ "[object HTMLElementConstructor]"
29 +isSafari = /^((?!chrome|android).)*safari/i.test(userAgent) || /constructor/i.test(window.HTMLElement) || function (p) {
30 + return '[object SafariRemoteNotification]' === p.toString();
31 +}(!window.safari || typeof safari !== 'undefined' && safari.pushNotification),
32 + // Internet Explorer 6-11
33 +isIE = /Trident|MSIE/.test(userAgent) && (
34 +/* @cc_on!@*/
35 + false || !!document.documentMode),
36 + // Edge 20+
37 +isEdge = !isIE && !!window.StyleMedia || matchUserAgent('Edg'),
38 + // Google Chrome (Not accurate)
39 +isChrome = !!window.chrome && matchUserAgent('Chrome') && !(isEdge || isOpera),
40 + // Blink engine
41 +isBlink = matchUserAgent('Chrome') && !!window.CSS,
42 + // Apple Webkit engine
43 +isAppleWebkit = matchUserAgent('AppleWebKit') && !isBlink,
44 + environment = {
45 + appleWebkit: isAppleWebkit,
46 + blink: isBlink,
47 + chrome: isChrome,
48 + edge: isEdge,
49 + firefox: isFirefox,
50 + ie: isIE,
51 + mac: matchUserAgent('Macintosh'),
52 + opera: isOpera,
53 + safari: isSafari,
54 + webkit: matchUserAgent('AppleWebKit')
55 +};
56 +
57 +var _default = environment;
58 +exports["default"] = _default;
59 +
60 +/***/ }),
61 +
62 +/***/ "../modules/admin-top-bar/assets/js/admin-top-bar.js":
63 +/*!***********************************************************!*\
64 + !*** ../modules/admin-top-bar/assets/js/admin-top-bar.js ***!
65 + \***********************************************************/
66 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
67 +
68 +"use strict";
69 +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
70 +
71 +
72 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
73 +
74 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
75 +
76 +Object.defineProperty(exports, "__esModule", ({
77 + value: true
78 +}));
79 +exports["default"] = AdminTopBar;
80 +
81 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
82 +
83 +var _barButton = _interopRequireDefault(__webpack_require__(/*! ./components/bar-button/bar-button */ "../modules/admin-top-bar/assets/js/components/bar-button/bar-button.js"));
84 +
85 +var _barHeading = _interopRequireDefault(__webpack_require__(/*! ./components/bar-heading/bar-heading */ "../modules/admin-top-bar/assets/js/components/bar-heading/bar-heading.js"));
86 +
87 +var _connectionButton = _interopRequireDefault(__webpack_require__(/*! ./components/connection-button/connection-button */ "../modules/admin-top-bar/assets/js/components/connection-button/connection-button.js"));
88 +
89 +var _usePageTitle = __webpack_require__(/*! ./hooks/use-page-title/use-page-title */ "../modules/admin-top-bar/assets/js/hooks/use-page-title/use-page-title.js");
90 +
91 +var _environment = _interopRequireDefault(__webpack_require__(/*! elementor-common/utils/environment */ "../core/common/assets/js/utils/environment.js"));
92 +
93 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
94 +
95 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
96 +
97 +function AdminTopBar() {
98 + var actionButtonsRef = (0, _react.useRef)(); // Handle Top Bar visibility on initiation: Indicate that the admin top bar is visible and the page content needs to push down below the admin top bar for visibility.
99 +
100 + (0, _react.useEffect)(function () {
101 + var adminTopBarElement = document.querySelector('#e-admin-top-bar-root');
102 + adminTopBarElement.classList.add('e-admin-top-bar--active');
103 + }, []); // Handle the page title visibility in admin top bar.
104 +
105 + var pageTitleText = (0, _usePageTitle.usePageTitle)(); // Handle the action buttons visibility in admin top bar on initiation.
106 +
107 + (0, _react.useEffect)(function () {
108 + var actionButtonElements = document.querySelectorAll('.page-title-action');
109 + actionButtonElements.forEach(function (actionButtonElement) {
110 + actionButtonsRef.current.appendChild(actionButtonElement);
111 + });
112 + }, []);
113 +
114 + var finderAction = function finderAction() {
115 + $e.route('finder');
116 + };
117 +
118 + var controlSign = _environment.default.mac ? '⌘' : '^';
119 + var finderTooltipText = __('Search or do anything in Elementor', 'elementor') + " ".concat(controlSign, "+E");
120 + return /*#__PURE__*/_react.default.createElement("div", {
121 + className: "e-admin-top-bar"
122 + }, /*#__PURE__*/_react.default.createElement("div", {
123 + className: "e-admin-top-bar__main-area"
124 + }, /*#__PURE__*/_react.default.createElement(_barHeading.default, null, pageTitleText), /*#__PURE__*/_react.default.createElement("div", {
125 + className: "e-admin-top-bar__main-area-buttons",
126 + ref: actionButtonsRef
127 + })), /*#__PURE__*/_react.default.createElement("div", {
128 + className: "e-admin-top-bar__secondary-area"
129 + }, /*#__PURE__*/_react.default.createElement("div", {
130 + className: "e-admin-top-bar__secondary-area-buttons"
131 + }, window.elementorAdminTopBarConfig.is_administrator ? /*#__PURE__*/_react.default.createElement(_barButton.default, {
132 + onClick: finderAction,
133 + dataInfo: finderTooltipText,
134 + icon: "eicon-search-bold"
135 + }, __('Finder', 'elementor')) : '', window.elementorCloudAdmin ? window.elementorCloudAdmin() : ''), /*#__PURE__*/_react.default.createElement(_connectionButton.default, null)));
136 +}
137 +
138 +/***/ }),
139 +
140 +/***/ "../modules/admin-top-bar/assets/js/components/bar-button/bar-button.js":
141 +/*!******************************************************************************!*\
142 + !*** ../modules/admin-top-bar/assets/js/components/bar-button/bar-button.js ***!
143 + \******************************************************************************/
144 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
145 +
146 +"use strict";
147 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
148 +
149 +
150 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
151 +
152 +Object.defineProperty(exports, "__esModule", ({
153 + value: true
154 +}));
155 +exports["default"] = BarButton;
156 +
157 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
158 +
159 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
160 +
161 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
162 +
163 +function BarButton(props) {
164 + (0, _react.useEffect)(function () {
165 + if (props.dataInfo) {
166 + jQuery('.e-admin-top-bar__bar-button[data-info]').tipsy({
167 + title: function title() {
168 + return this.getAttribute('data-info');
169 + },
170 + gravity: function gravity() {
171 + return 'n';
172 + },
173 + delayIn: 400,
174 + offset: 1
175 + });
176 + }
177 + }, []);
178 + return /*#__PURE__*/_react.default.createElement("a", {
179 + className: "e-admin-top-bar__bar-button",
180 + ref: props.buttonRef,
181 + onClick: props.onClick,
182 + "data-info": props.dataInfo,
183 + href: props.href,
184 + target: props.target
185 + }, /*#__PURE__*/_react.default.createElement("i", {
186 + className: "e-admin-top-bar__bar-button-icon ".concat(props.icon)
187 + }), /*#__PURE__*/_react.default.createElement("h1", {
188 + className: "e-admin-top-bar__bar-button-title"
189 + }, props.children));
190 +}
191 +
192 +BarButton.propTypes = {
193 + children: PropTypes.any,
194 + dataInfo: PropTypes.string,
195 + icon: PropTypes.any,
196 + onClick: PropTypes.func,
197 + buttonRef: PropTypes.object,
198 + href: PropTypes.string,
199 + target: PropTypes.string
200 +};
201 +
202 +/***/ }),
203 +
204 +/***/ "../modules/admin-top-bar/assets/js/components/bar-heading/bar-heading.js":
205 +/*!********************************************************************************!*\
206 + !*** ../modules/admin-top-bar/assets/js/components/bar-heading/bar-heading.js ***!
207 + \********************************************************************************/
208 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
209 +
210 +"use strict";
211 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
212 +
213 +
214 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
215 +
216 +Object.defineProperty(exports, "__esModule", ({
217 + value: true
218 +}));
219 +exports["default"] = BarHeading;
220 +
221 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
222 +
223 +function BarHeading(props) {
224 + return /*#__PURE__*/_react.default.createElement("div", {
225 + className: "e-admin-top-bar__heading"
226 + }, /*#__PURE__*/_react.default.createElement("div", {
227 + className: "e-admin-top-bar__heading-logo"
228 + }, /*#__PURE__*/_react.default.createElement("i", {
229 + className: "eicon-elementor",
230 + "aria-hidden": "true"
231 + })), /*#__PURE__*/_react.default.createElement("h1", {
232 + className: "e-admin-top-bar__heading-title"
233 + }, props.children));
234 +}
235 +
236 +BarHeading.propTypes = {
237 + children: PropTypes.any
238 +};
239 +
240 +/***/ }),
241 +
242 +/***/ "../modules/admin-top-bar/assets/js/components/connection-button/connection-button.js":
243 +/*!********************************************************************************************!*\
244 + !*** ../modules/admin-top-bar/assets/js/components/connection-button/connection-button.js ***!
245 + \********************************************************************************************/
246 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
247 +
248 +"use strict";
249 +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
250 +
251 +
252 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
253 +
254 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
255 +
256 +Object.defineProperty(exports, "__esModule", ({
257 + value: true
258 +}));
259 +exports["default"] = ConnectionButton;
260 +
261 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
262 +
263 +var _barButton = _interopRequireDefault(__webpack_require__(/*! ../bar-button/bar-button */ "../modules/admin-top-bar/assets/js/components/bar-button/bar-button.js"));
264 +
265 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
266 +
267 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
268 +
269 +function ConnectionButton() {
270 + var buttonRef = (0, _react.useRef)();
271 + var isUserConnected = elementorAdminTopBarConfig.is_user_connected;
272 + (0, _react.useEffect)(function () {
273 + if (!buttonRef.current || isUserConnected) {
274 + return;
275 + }
276 +
277 + jQuery(buttonRef.current).elementorConnect();
278 + }, []);
279 +
280 + var tooltipText = __('Connect your account to get access to Elementor\'s Template Library & more.', 'elementor'),
281 + connectUrl = elementorAdminTopBarConfig.connect_url,
282 + buttonText = __('Connect Account', 'elementor'),
283 + targetUrl = '_self';
284 +
285 + if (isUserConnected) {
286 + tooltipText = '';
287 + connectUrl = 'https://go.elementor.com/wp-dash-admin-bar-account/';
288 + buttonText = __('My Elementor', 'elementor');
289 + targetUrl = '_blank';
290 + }
291 +
292 + return /*#__PURE__*/_react.default.createElement(_barButton.default, {
293 + icon: "eicon-user-circle-o",
294 + buttonRef: buttonRef,
295 + dataInfo: tooltipText,
296 + href: connectUrl,
297 + target: targetUrl
298 + }, buttonText);
299 +}
300 +
301 +/***/ }),
302 +
303 +/***/ "../modules/admin-top-bar/assets/js/hooks/use-page-title/use-page-title.js":
304 +/*!*********************************************************************************!*\
305 + !*** ../modules/admin-top-bar/assets/js/hooks/use-page-title/use-page-title.js ***!
306 + \*********************************************************************************/
307 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
308 +
309 +"use strict";
310 +
311 +
312 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
313 +
314 +Object.defineProperty(exports, "__esModule", ({
315 + value: true
316 +}));
317 +exports.usePageTitle = void 0;
318 +
319 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
320 +
321 +var _react = __webpack_require__(/*! react */ "react");
322 +
323 +var usePageTitle = function usePageTitle() {
324 + var _useState = (0, _react.useState)('Elementor'),
325 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
326 + pageTitle = _useState2[0],
327 + setPageTitle = _useState2[1];
328 +
329 + (0, _react.useEffect)(function () {
330 + var pageTitleElement = document.querySelector('.wp-heading-inline');
331 +
332 + if (!pageTitleElement) {
333 + return;
334 + }
335 +
336 + setPageTitle(pageTitleElement.innerText);
337 + }, []);
338 + return pageTitle;
339 +};
340 +
341 +exports.usePageTitle = usePageTitle;
342 +
343 +/***/ }),
344 +
345 +/***/ "../node_modules/object-assign/index.js":
346 +/*!**********************************************!*\
347 + !*** ../node_modules/object-assign/index.js ***!
348 + \**********************************************/
349 +/***/ ((module) => {
350 +
351 +"use strict";
352 +/*
353 +object-assign
354 +(c) Sindre Sorhus
355 +@license MIT
356 +*/
357 +
358 +
359 +/* eslint-disable no-unused-vars */
360 +var getOwnPropertySymbols = Object.getOwnPropertySymbols;
361 +var hasOwnProperty = Object.prototype.hasOwnProperty;
362 +var propIsEnumerable = Object.prototype.propertyIsEnumerable;
363 +
364 +function toObject(val) {
365 + if (val === null || val === undefined) {
366 + throw new TypeError('Object.assign cannot be called with null or undefined');
367 + }
368 +
369 + return Object(val);
370 +}
371 +
372 +function shouldUseNative() {
373 + try {
374 + if (!Object.assign) {
375 + return false;
26 376 }
27 - return to;
28 - };
29 - var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30 - value: mod,
31 - enumerable: true
32 - }) : target, mod));
33 377
34 -//#endregion
35 -react = __toESM(react);
36 -react_dom = __toESM(react_dom);
378 + // Detect buggy property enumeration order in older V8 versions.
37 379
38 -//#region node_modules/react-dom/client.js
39 - var require_client = /* @__PURE__ */ __commonJSMin(((exports) => {
40 - var m = (globalThis.ReactDOM);
41 - var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
42 - exports.createRoot = function(c, o) {
43 - i.usingClientEntryPoint = true;
44 - try {
45 - return m.createRoot(c, o);
46 - } finally {
47 - i.usingClientEntryPoint = false;
48 - }
49 - };
50 - }));
380 + // https://bugs.chromium.org/p/v8/issues/detail?id=4118
381 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
382 + test1[5] = 'de';
383 + if (Object.getOwnPropertyNames(test1)[0] === '5') {
384 + return false;
385 + }
51 386
52 -//#endregion
53 -//#region assets/dev/js/utils/react.js
54 - var import_client = require_client();
55 - /**
56 - * Support conditional rendering of a React App to the DOM, based on the React version.
57 - * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
58 - *
59 - * @param {Promise.resolve(React).ReactElement} app The app to render.
60 - * @param {HTMLElement} domElement The DOM element to render the app into.
61 - *
62 - * @return {{ unmount: () => void }} The unmount function.
63 - */
64 - function render(app, domElement) {
65 - var unmountFunction;
66 - try {
67 - var root = (0, import_client.createRoot)(domElement);
68 - root.render(app);
69 - unmountFunction = function unmountFunction() {
70 - root.unmount();
71 - };
72 - } catch (e) {
73 - react_dom.render(app, domElement);
74 - unmountFunction = function unmountFunction() {
75 - react_dom.unmountComponentAtNode(domElement);
76 - };
387 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
388 + var test2 = {};
389 + for (var i = 0; i < 10; i++) {
390 + test2['_' + String.fromCharCode(i)] = i;
77 391 }
78 - return { unmount: unmountFunction };
392 + var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
393 + return test2[n];
394 + });
395 + if (order2.join('') !== '0123456789') {
396 + return false;
397 + }
398 +
399 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
400 + var test3 = {};
401 + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
402 + test3[letter] = letter;
403 + });
404 + if (Object.keys(Object.assign({}, test3)).join('') !==
405 + 'abcdefghijklmnopqrst') {
406 + return false;
407 + }
408 +
409 + return true;
410 + } catch (err) {
411 + // We don't expect any of the above to throw, but better to be safe.
412 + return false;
79 413 }
80 - var react_default = { render };
414 +}
81 415
82 -//#endregion
83 -//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
84 -/** @license React v16.13.1
85 - * react-is.development.js
86 - *
87 - * Copyright (c) Facebook, Inc. and its affiliates.
88 - *
89 - * This source code is licensed under the MIT license found in the
90 - * LICENSE file in the root directory of this source tree.
91 - */
92 - var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
93 - (function() {
94 - "use strict";
95 - var hasSymbol = typeof Symbol === "function" && Symbol.for;
96 - var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
97 - var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
98 - var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
99 - var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
100 - var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
101 - var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
102 - var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
103 - var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
104 - var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
105 - var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
106 - var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
107 - var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
108 - var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
109 - var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
110 - var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
111 - var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
112 - var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
113 - var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
114 - function isValidElementType(type) {
115 - return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
116 - }
117 - function typeOf(object) {
118 - if (typeof object === "object" && object !== null) {
119 - var $$typeof = object.$$typeof;
120 - switch ($$typeof) {
121 - case REACT_ELEMENT_TYPE:
122 - var type = object.type;
123 - switch (type) {
124 - case REACT_ASYNC_MODE_TYPE:
125 - case REACT_CONCURRENT_MODE_TYPE:
126 - case REACT_FRAGMENT_TYPE:
127 - case REACT_PROFILER_TYPE:
128 - case REACT_STRICT_MODE_TYPE:
129 - case REACT_SUSPENSE_TYPE: return type;
130 - default:
131 - var $$typeofType = type && type.$$typeof;
132 - switch ($$typeofType) {
133 - case REACT_CONTEXT_TYPE:
134 - case REACT_FORWARD_REF_TYPE:
135 - case REACT_LAZY_TYPE:
136 - case REACT_MEMO_TYPE:
137 - case REACT_PROVIDER_TYPE: return $$typeofType;
138 - default: return $$typeof;
139 - }
140 - }
141 - case REACT_PORTAL_TYPE: return $$typeof;
142 - }
143 - }
144 - }
145 - var AsyncMode = REACT_ASYNC_MODE_TYPE;
146 - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
147 - var ContextConsumer = REACT_CONTEXT_TYPE;
148 - var ContextProvider = REACT_PROVIDER_TYPE;
149 - var Element = REACT_ELEMENT_TYPE;
150 - var ForwardRef = REACT_FORWARD_REF_TYPE;
151 - var Fragment = REACT_FRAGMENT_TYPE;
152 - var Lazy = REACT_LAZY_TYPE;
153 - var Memo = REACT_MEMO_TYPE;
154 - var Portal = REACT_PORTAL_TYPE;
155 - var Profiler = REACT_PROFILER_TYPE;
156 - var StrictMode = REACT_STRICT_MODE_TYPE;
157 - var Suspense = REACT_SUSPENSE_TYPE;
158 - var hasWarnedAboutDeprecatedIsAsyncMode = false;
159 - function isAsyncMode(object) {
160 - if (!hasWarnedAboutDeprecatedIsAsyncMode) {
161 - hasWarnedAboutDeprecatedIsAsyncMode = true;
162 - console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
163 - }
164 - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
165 - }
166 - function isConcurrentMode(object) {
167 - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
168 - }
169 - function isContextConsumer(object) {
170 - return typeOf(object) === REACT_CONTEXT_TYPE;
171 - }
172 - function isContextProvider(object) {
173 - return typeOf(object) === REACT_PROVIDER_TYPE;
174 - }
175 - function isElement(object) {
176 - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
177 - }
178 - function isForwardRef(object) {
179 - return typeOf(object) === REACT_FORWARD_REF_TYPE;
180 - }
181 - function isFragment(object) {
182 - return typeOf(object) === REACT_FRAGMENT_TYPE;
183 - }
184 - function isLazy(object) {
185 - return typeOf(object) === REACT_LAZY_TYPE;
186 - }
187 - function isMemo(object) {
188 - return typeOf(object) === REACT_MEMO_TYPE;
189 - }
190 - function isPortal(object) {
191 - return typeOf(object) === REACT_PORTAL_TYPE;
192 - }
193 - function isProfiler(object) {
194 - return typeOf(object) === REACT_PROFILER_TYPE;
195 - }
196 - function isStrictMode(object) {
197 - return typeOf(object) === REACT_STRICT_MODE_TYPE;
198 - }
199 - function isSuspense(object) {
200 - return typeOf(object) === REACT_SUSPENSE_TYPE;
201 - }
202 - exports.AsyncMode = AsyncMode;
203 - exports.ConcurrentMode = ConcurrentMode;
204 - exports.ContextConsumer = ContextConsumer;
205 - exports.ContextProvider = ContextProvider;
206 - exports.Element = Element;
207 - exports.ForwardRef = ForwardRef;
208 - exports.Fragment = Fragment;
209 - exports.Lazy = Lazy;
210 - exports.Memo = Memo;
211 - exports.Portal = Portal;
212 - exports.Profiler = Profiler;
213 - exports.StrictMode = StrictMode;
214 - exports.Suspense = Suspense;
215 - exports.isAsyncMode = isAsyncMode;
216 - exports.isConcurrentMode = isConcurrentMode;
217 - exports.isContextConsumer = isContextConsumer;
218 - exports.isContextProvider = isContextProvider;
219 - exports.isElement = isElement;
220 - exports.isForwardRef = isForwardRef;
221 - exports.isFragment = isFragment;
222 - exports.isLazy = isLazy;
223 - exports.isMemo = isMemo;
224 - exports.isPortal = isPortal;
225 - exports.isProfiler = isProfiler;
226 - exports.isStrictMode = isStrictMode;
227 - exports.isSuspense = isSuspense;
228 - exports.isValidElementType = isValidElementType;
229 - exports.typeOf = typeOf;
230 - })();
231 - }));
416 +module.exports = shouldUseNative() ? Object.assign : function (target, source) {
417 + var from;
418 + var to = toObject(target);
419 + var symbols;
232 420
233 -//#endregion
234 -//#region node_modules/prop-types/node_modules/react-is/index.js
235 - var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
236 - module.exports = require_react_is_development();
237 - }));
421 + for (var s = 1; s < arguments.length; s++) {
422 + from = Object(arguments[s]);
238 423
239 -//#endregion
240 -//#region node_modules/object-assign/index.js
241 -/*
242 - object-assign
243 - (c) Sindre Sorhus
244 - @license MIT
245 - */
246 - var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
247 - var getOwnPropertySymbols = Object.getOwnPropertySymbols;
248 - var hasOwnProperty = Object.prototype.hasOwnProperty;
249 - var propIsEnumerable = Object.prototype.propertyIsEnumerable;
250 - function toObject(val) {
251 - if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined");
252 - return Object(val);
253 - }
254 - function shouldUseNative() {
255 - try {
256 - if (!Object.assign) return false;
257 - var test1 = /* @__PURE__ */ new String("abc");
258 - test1[5] = "de";
259 - if (Object.getOwnPropertyNames(test1)[0] === "5") return false;
260 - var test2 = {};
261 - for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i;
262 - if (Object.getOwnPropertyNames(test2).map(function(n) {
263 - return test2[n];
264 - }).join("") !== "0123456789") return false;
265 - var test3 = {};
266 - "abcdefghijklmnopqrst".split("").forEach(function(letter) {
267 - test3[letter] = letter;
268 - });
269 - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false;
270 - return true;
271 - } catch (err) {
272 - return false;
424 + for (var key in from) {
425 + if (hasOwnProperty.call(from, key)) {
426 + to[key] = from[key];
273 427 }
274 428 }
275 - module.exports = shouldUseNative() ? Object.assign : function(target, source) {
276 - var from;
277 - var to = toObject(target);
278 - var symbols;
279 - for (var s = 1; s < arguments.length; s++) {
280 - from = Object(arguments[s]);
281 - for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key];
282 - if (getOwnPropertySymbols) {
283 - symbols = getOwnPropertySymbols(from);
284 - for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]];
429 +
430 + if (getOwnPropertySymbols) {
431 + symbols = getOwnPropertySymbols(from);
432 + for (var i = 0; i < symbols.length; i++) {
433 + if (propIsEnumerable.call(from, symbols[i])) {
434 + to[symbols[i]] = from[symbols[i]];
285 435 }
286 436 }
287 - return to;
288 - };
289 - }));
437 + }
438 + }
290 439
291 -//#endregion
292 -//#region node_modules/prop-types/lib/ReactPropTypesSecret.js
440 + return to;
441 +};
442 +
443 +
444 +/***/ }),
445 +
446 +/***/ "../node_modules/prop-types/checkPropTypes.js":
447 +/*!****************************************************!*\
448 + !*** ../node_modules/prop-types/checkPropTypes.js ***!
449 + \****************************************************/
450 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
451 +
452 +"use strict";
293 453 /**
294 - * Copyright (c) 2013-present, Facebook, Inc.
295 - *
296 - * This source code is licensed under the MIT license found in the
297 - * LICENSE file in the root directory of this source tree.
298 - */
299 - var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => {
300 - var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
301 - module.exports = ReactPropTypesSecret;
302 - }));
454 + * Copyright (c) 2013-present, Facebook, Inc.
455 + *
456 + * This source code is licensed under the MIT license found in the
457 + * LICENSE file in the root directory of this source tree.
458 + */
303 459
304 -//#endregion
305 -//#region node_modules/prop-types/lib/has.js
306 - var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => {
307 - module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
308 - }));
309 460
310 -//#endregion
311 -//#region node_modules/prop-types/checkPropTypes.js
461 +
462 +var printWarning = function() {};
463 +
464 +if (true) {
465 + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
466 + var loggedTypeFailures = {};
467 + var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
468 +
469 + printWarning = function(text) {
470 + var message = 'Warning: ' + text;
471 + if (typeof console !== 'undefined') {
472 + console.error(message);
473 + }
474 + try {
475 + // --- Welcome to debugging React ---
476 + // This error was thrown as a convenience so that you can use this stack
477 + // to find the callsite that caused this warning to fire.
478 + throw new Error(message);
479 + } catch (x) { /**/ }
480 + };
481 +}
482 +
312 483 /**
313 - * Copyright (c) 2013-present, Facebook, Inc.
314 - *
315 - * This source code is licensed under the MIT license found in the
316 - * LICENSE file in the root directory of this source tree.
317 - */
318 - var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
319 - var printWarning = function() {};
320 - var ReactPropTypesSecret = require_ReactPropTypesSecret();
321 - var loggedTypeFailures = {};
322 - var has = require_has();
323 - printWarning = function(text) {
324 - var message = "Warning: " + text;
325 - if (typeof console !== "undefined") console.error(message);
326 - try {
327 - throw new Error(message);
328 - } catch (x) {}
329 - };
330 - /**
331 - * Assert that the values match with the type specs.
332 - * Error messages are memorized and will only be shown once.
333 - *
334 - * @param {object} typeSpecs Map of name to a ReactPropType
335 - * @param {object} values Runtime values that need to be type-checked
336 - * @param {string} location e.g. "prop", "context", "child context"
337 - * @param {string} componentName Name of the component for error messages.
338 - * @param {?Function} getStack Returns the component stack.
339 - * @private
340 - */
341 - function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
342 - for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) {
343 - var error;
344 - try {
345 - if (typeof typeSpecs[typeSpecName] !== "function") {
346 - var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
347 - err.name = "Invariant Violation";
348 - throw err;
349 - }
350 - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
351 - } catch (ex) {
352 - error = ex;
353 - }
354 - if (error && !(error instanceof Error)) printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).");
355 - if (error instanceof Error && !(error.message in loggedTypeFailures)) {
356 - loggedTypeFailures[error.message] = true;
357 - var stack = getStack ? getStack() : "";
358 - printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
359 - }
360 - }
361 - }
362 - /**
363 - * Resets warning cache when testing.
364 - *
365 - * @private
366 - */
367 - checkPropTypes.resetWarningCache = function() {
368 - loggedTypeFailures = {};
369 - };
370 - module.exports = checkPropTypes;
371 - }));
484 + * Assert that the values match with the type specs.
485 + * Error messages are memorized and will only be shown once.
486 + *
487 + * @param {object} typeSpecs Map of name to a ReactPropType
488 + * @param {object} values Runtime values that need to be type-checked
489 + * @param {string} location e.g. "prop", "context", "child context"
490 + * @param {string} componentName Name of the component for error messages.
491 + * @param {?Function} getStack Returns the component stack.
492 + * @private
493 + */
494 +function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
495 + if (true) {
496 + for (var typeSpecName in typeSpecs) {
497 + if (has(typeSpecs, typeSpecName)) {
498 + var error;
499 + // Prop type validation may throw. In case they do, we don't want to
500 + // fail the render phase where it didn't fail before. So we log it.
501 + // After these have been cleaned up, we'll let them throw.
502 + try {
503 + // This is intentionally an invariant that gets caught. It's the same
504 + // behavior as without this statement except with a better message.
505 + if (typeof typeSpecs[typeSpecName] !== 'function') {
506 + var err = Error(
507 + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
508 + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
509 + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
510 + );
511 + err.name = 'Invariant Violation';
512 + throw err;
513 + }
514 + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
515 + } catch (ex) {
516 + error = ex;
517 + }
518 + if (error && !(error instanceof Error)) {
519 + printWarning(
520 + (componentName || 'React class') + ': type specification of ' +
521 + location + ' `' + typeSpecName + '` is invalid; the type checker ' +
522 + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
523 + 'You may have forgotten to pass an argument to the type checker ' +
524 + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
525 + 'shape all require an argument).'
526 + );
527 + }
528 + if (error instanceof Error && !(error.message in loggedTypeFailures)) {
529 + // Only monitor this failure once because there tends to be a lot of the
530 + // same error.
531 + loggedTypeFailures[error.message] = true;
372 532
373 -//#endregion
374 -//#region node_modules/prop-types/factoryWithTypeCheckers.js
533 + var stack = getStack ? getStack() : '';
534 +
535 + printWarning(
536 + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
537 + );
538 + }
539 + }
540 + }
541 + }
542 +}
543 +
375 544 /**
376 - * Copyright (c) 2013-present, Facebook, Inc.
377 - *
378 - * This source code is licensed under the MIT license found in the
379 - * LICENSE file in the root directory of this source tree.
380 - */
381 - var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
382 - var ReactIs = require_react_is();
383 - var assign = require_object_assign();
384 - var ReactPropTypesSecret = require_ReactPropTypesSecret();
385 - var has = require_has();
386 - var checkPropTypes = require_checkPropTypes();
387 - var printWarning = function() {};
388 - printWarning = function(text) {
389 - var message = "Warning: " + text;
390 - if (typeof console !== "undefined") console.error(message);
391 - try {
392 - throw new Error(message);
393 - } catch (x) {}
394 - };
395 - function emptyFunctionThatReturnsNull() {
396 - return null;
397 - }
398 - module.exports = function(isValidElement, throwOnDirectAccess) {
399 - var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
400 - var FAUX_ITERATOR_SYMBOL = "@@iterator";
401 - /**
402 - * Returns the iterator method function contained on the iterable object.
403 - *
404 - * Be sure to invoke the function with the iterable as context:
405 - *
406 - * var iteratorFn = getIteratorFn(myIterable);
407 - * if (iteratorFn) {
408 - * var iterator = iteratorFn.call(myIterable);
409 - * ...
410 - * }
411 - *
412 - * @param {?object} maybeIterable
413 - * @return {?function}
414 - */
415 - function getIteratorFn(maybeIterable) {
416 - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
417 - if (typeof iteratorFn === "function") return iteratorFn;
418 - }
419 - /**
420 - * Collection of methods that allow declaration and validation of props that are
421 - * supplied to React components. Example usage:
422 - *
423 - * var Props = require('ReactPropTypes');
424 - * var MyArticle = React.createClass({
425 - * propTypes: {
426 - * // An optional string prop named "description".
427 - * description: Props.string,
428 - *
429 - * // A required enum prop named "category".
430 - * category: Props.oneOf(['News','Photos']).isRequired,
431 - *
432 - * // A prop named "dialog" that requires an instance of Dialog.
433 - * dialog: Props.instanceOf(Dialog).isRequired
434 - * },
435 - * render: function() { ... }
436 - * });
437 - *
438 - * A more formal specification of how these methods are used:
439 - *
440 - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
441 - * decl := ReactPropTypes.{type}(.isRequired)?
442 - *
443 - * Each and every declaration produces a function with the same signature. This
444 - * allows the creation of custom validation functions. For example:
445 - *
446 - * var MyLink = React.createClass({
447 - * propTypes: {
448 - * // An optional string or URI prop named "href".
449 - * href: function(props, propName, componentName) {
450 - * var propValue = props[propName];
451 - * if (propValue != null && typeof propValue !== 'string' &&
452 - * !(propValue instanceof URI)) {
453 - * return new Error(
454 - * 'Expected a string or an URI for ' + propName + ' in ' +
455 - * componentName
456 - * );
457 - * }
458 - * }
459 - * },
460 - * render: function() {...}
461 - * });
462 - *
463 - * @internal
464 - */
465 - var ANONYMOUS = "<<anonymous>>";
466 - var ReactPropTypes = {
467 - array: createPrimitiveTypeChecker("array"),
468 - bigint: createPrimitiveTypeChecker("bigint"),
469 - bool: createPrimitiveTypeChecker("boolean"),
470 - func: createPrimitiveTypeChecker("function"),
471 - number: createPrimitiveTypeChecker("number"),
472 - object: createPrimitiveTypeChecker("object"),
473 - string: createPrimitiveTypeChecker("string"),
474 - symbol: createPrimitiveTypeChecker("symbol"),
475 - any: createAnyTypeChecker(),
476 - arrayOf: createArrayOfTypeChecker,
477 - element: createElementTypeChecker(),
478 - elementType: createElementTypeTypeChecker(),
479 - instanceOf: createInstanceTypeChecker,
480 - node: createNodeChecker(),
481 - objectOf: createObjectOfTypeChecker,
482 - oneOf: createEnumTypeChecker,
483 - oneOfType: createUnionTypeChecker,
484 - shape: createShapeTypeChecker,
485 - exact: createStrictShapeTypeChecker
486 - };
487 - /**
488 - * inlined Object.is polyfill to avoid requiring consumers ship their own
489 - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
490 - */
491 - function is(x, y) {
492 - if (x === y) return x !== 0 || 1 / x === 1 / y;
493 - else return x !== x && y !== y;
494 - }
495 - /**
496 - * We use an Error-like object for backward compatibility as people may call
497 - * PropTypes directly and inspect their output. However, we don't use real
498 - * Errors anymore. We don't inspect their stack anyway, and creating them
499 - * is prohibitively expensive if they are created too often, such as what
500 - * happens in oneOfType() for any type before the one that matched.
501 - */
502 - function PropTypeError(message, data) {
503 - this.message = message;
504 - this.data = data && typeof data === "object" ? data : {};
505 - this.stack = "";
506 - }
507 - PropTypeError.prototype = Error.prototype;
508 - function createChainableTypeChecker(validate) {
509 - var manualPropTypeCallCache = {};
510 - var manualPropTypeWarningCount = 0;
511 - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
512 - componentName = componentName || ANONYMOUS;
513 - propFullName = propFullName || propName;
514 - if (secret !== ReactPropTypesSecret) {
515 - if (throwOnDirectAccess) {
516 - var err = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
517 - err.name = "Invariant Violation";
518 - throw err;
519 - } else if (typeof console !== "undefined") {
520 - var cacheKey = componentName + ":" + propName;
521 - if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
522 - printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.");
523 - manualPropTypeCallCache[cacheKey] = true;
524 - manualPropTypeWarningCount++;
525 - }
526 - }
527 - }
528 - if (props[propName] == null) {
529 - if (isRequired) {
530 - if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
531 - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
532 - }
533 - return null;
534 - } else return validate(props, propName, componentName, location, propFullName);
535 - }
536 - var chainedCheckType = checkType.bind(null, false);
537 - chainedCheckType.isRequired = checkType.bind(null, true);
538 - return chainedCheckType;
539 - }
540 - function createPrimitiveTypeChecker(expectedType) {
541 - function validate(props, propName, componentName, location, propFullName, secret) {
542 - var propValue = props[propName];
543 - if (getPropType(propValue) !== expectedType) {
544 - var preciseType = getPreciseType(propValue);
545 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType });
546 - }
547 - return null;
548 - }
549 - return createChainableTypeChecker(validate);
550 - }
551 - function createAnyTypeChecker() {
552 - return createChainableTypeChecker(emptyFunctionThatReturnsNull);
553 - }
554 - function createArrayOfTypeChecker(typeChecker) {
555 - function validate(props, propName, componentName, location, propFullName) {
556 - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
557 - var propValue = props[propName];
558 - if (!Array.isArray(propValue)) {
559 - var propType = getPropType(propValue);
560 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
561 - }
562 - for (var i = 0; i < propValue.length; i++) {
563 - var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
564 - if (error instanceof Error) return error;
565 - }
566 - return null;
567 - }
568 - return createChainableTypeChecker(validate);
569 - }
570 - function createElementTypeChecker() {
571 - function validate(props, propName, componentName, location, propFullName) {
572 - var propValue = props[propName];
573 - if (!isValidElement(propValue)) {
574 - var propType = getPropType(propValue);
575 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
576 - }
577 - return null;
578 - }
579 - return createChainableTypeChecker(validate);
580 - }
581 - function createElementTypeTypeChecker() {
582 - function validate(props, propName, componentName, location, propFullName) {
583 - var propValue = props[propName];
584 - if (!ReactIs.isValidElementType(propValue)) {
585 - var propType = getPropType(propValue);
586 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
587 - }
588 - return null;
589 - }
590 - return createChainableTypeChecker(validate);
591 - }
592 - function createInstanceTypeChecker(expectedClass) {
593 - function validate(props, propName, componentName, location, propFullName) {
594 - if (!(props[propName] instanceof expectedClass)) {
595 - var expectedClassName = expectedClass.name || ANONYMOUS;
596 - var actualClassName = getClassName(props[propName]);
597 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
598 - }
599 - return null;
600 - }
601 - return createChainableTypeChecker(validate);
602 - }
603 - function createEnumTypeChecker(expectedValues) {
604 - if (!Array.isArray(expectedValues)) {
605 - if (arguments.length > 1) printWarning("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).");
606 - else printWarning("Invalid argument supplied to oneOf, expected an array.");
607 - return emptyFunctionThatReturnsNull;
608 - }
609 - function validate(props, propName, componentName, location, propFullName) {
610 - var propValue = props[propName];
611 - for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null;
612 - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
613 - if (getPreciseType(value) === "symbol") return String(value);
614 - return value;
615 - });
616 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
617 - }
618 - return createChainableTypeChecker(validate);
619 - }
620 - function createObjectOfTypeChecker(typeChecker) {
621 - function validate(props, propName, componentName, location, propFullName) {
622 - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
623 - var propValue = props[propName];
624 - var propType = getPropType(propValue);
625 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
626 - for (var key in propValue) if (has(propValue, key)) {
627 - var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
628 - if (error instanceof Error) return error;
629 - }
630 - return null;
631 - }
632 - return createChainableTypeChecker(validate);
633 - }
634 - function createUnionTypeChecker(arrayOfTypeCheckers) {
635 - if (!Array.isArray(arrayOfTypeCheckers)) {
636 - printWarning("Invalid argument supplied to oneOfType, expected an instance of array.");
637 - return emptyFunctionThatReturnsNull;
638 - }
639 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
640 - var checker = arrayOfTypeCheckers[i];
641 - if (typeof checker !== "function") {
642 - printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + ".");
643 - return emptyFunctionThatReturnsNull;
644 - }
645 - }
646 - function validate(props, propName, componentName, location, propFullName) {
647 - var expectedTypes = [];
648 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
649 - var checker = arrayOfTypeCheckers[i];
650 - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
651 - if (checkerResult == null) return null;
652 - if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType);
653 - }
654 - var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
655 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
656 - }
657 - return createChainableTypeChecker(validate);
658 - }
659 - function createNodeChecker() {
660 - function validate(props, propName, componentName, location, propFullName) {
661 - if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
662 - return null;
663 - }
664 - return createChainableTypeChecker(validate);
665 - }
666 - function invalidValidatorError(componentName, location, propFullName, key, type) {
667 - return new PropTypeError((componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`.");
668 - }
669 - function createShapeTypeChecker(shapeTypes) {
670 - function validate(props, propName, componentName, location, propFullName) {
671 - var propValue = props[propName];
672 - var propType = getPropType(propValue);
673 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
674 - for (var key in shapeTypes) {
675 - var checker = shapeTypes[key];
676 - if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
677 - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
678 - if (error) return error;
679 - }
680 - return null;
681 - }
682 - return createChainableTypeChecker(validate);
683 - }
684 - function createStrictShapeTypeChecker(shapeTypes) {
685 - function validate(props, propName, componentName, location, propFullName) {
686 - var propValue = props[propName];
687 - var propType = getPropType(propValue);
688 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
689 - for (var key in assign({}, props[propName], shapeTypes)) {
690 - var checker = shapeTypes[key];
691 - if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
692 - if (!checker) return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " "));
693 - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
694 - if (error) return error;
695 - }
696 - return null;
697 - }
698 - return createChainableTypeChecker(validate);
699 - }
700 - function isNode(propValue) {
701 - switch (typeof propValue) {
702 - case "number":
703 - case "string":
704 - case "undefined": return true;
705 - case "boolean": return !propValue;
706 - case "object":
707 - if (Array.isArray(propValue)) return propValue.every(isNode);
708 - if (propValue === null || isValidElement(propValue)) return true;
709 - var iteratorFn = getIteratorFn(propValue);
710 - if (iteratorFn) {
711 - var iterator = iteratorFn.call(propValue);
712 - var step;
713 - if (iteratorFn !== propValue.entries) {
714 - while (!(step = iterator.next()).done) if (!isNode(step.value)) return false;
715 - } else while (!(step = iterator.next()).done) {
716 - var entry = step.value;
717 - if (entry) {
718 - if (!isNode(entry[1])) return false;
719 - }
720 - }
721 - } else return false;
722 - return true;
723 - default: return false;
724 - }
725 - }
726 - function isSymbol(propType, propValue) {
727 - if (propType === "symbol") return true;
728 - if (!propValue) return false;
729 - if (propValue["@@toStringTag"] === "Symbol") return true;
730 - if (typeof Symbol === "function" && propValue instanceof Symbol) return true;
731 - return false;
732 - }
733 - function getPropType(propValue) {
734 - var propType = typeof propValue;
735 - if (Array.isArray(propValue)) return "array";
736 - if (propValue instanceof RegExp) return "object";
737 - if (isSymbol(propType, propValue)) return "symbol";
738 - return propType;
739 - }
740 - function getPreciseType(propValue) {
741 - if (typeof propValue === "undefined" || propValue === null) return "" + propValue;
742 - var propType = getPropType(propValue);
743 - if (propType === "object") {
744 - if (propValue instanceof Date) return "date";
745 - else if (propValue instanceof RegExp) return "regexp";
746 - }
747 - return propType;
748 - }
749 - function getPostfixForTypeWarning(value) {
750 - var type = getPreciseType(value);
751 - switch (type) {
752 - case "array":
753 - case "object": return "an " + type;
754 - case "boolean":
755 - case "date":
756 - case "regexp": return "a " + type;
757 - default: return type;
758 - }
759 - }
760 - function getClassName(propValue) {
761 - if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS;
762 - return propValue.constructor.name;
763 - }
764 - ReactPropTypes.checkPropTypes = checkPropTypes;
765 - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
766 - ReactPropTypes.PropTypes = ReactPropTypes;
767 - return ReactPropTypes;
768 - };
769 - }));
545 + * Resets warning cache when testing.
546 + *
547 + * @private
548 + */
549 +checkPropTypes.resetWarningCache = function() {
550 + if (true) {
551 + loggedTypeFailures = {};
552 + }
553 +}
770 554
771 -//#endregion
772 -//#region node_modules/prop-types/index.js
773 - var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => {
774 - var ReactIs = require_react_is();
775 - var throwOnDirectAccess = true;
776 - module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
777 - }));
555 +module.exports = checkPropTypes;
778 556
779 -//#endregion
780 -//#region modules/admin-top-bar/assets/js/components/bar-button/bar-button.js
781 - var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types());
782 - function BarButton(props) {
783 - (0, react.useEffect)(function() {
784 - if (props.dataInfo) jQuery(".e-admin-top-bar__bar-button[data-info]").tipsy({
785 - title: function title() {
786 - return this.getAttribute("data-info");
787 - },
788 - gravity: function gravity() {
789 - return "n";
790 - },
791 - delayIn: 400,
792 - offset: 1
793 - });
794 - }, []);
795 - return /*#__PURE__*/ react.default.createElement("a", {
796 - className: "e-admin-top-bar__bar-button ".concat(props.additionalClasses),
797 - ref: props.buttonRef,
798 - onClick: props.onClick,
799 - "data-info": props.dataInfo,
800 - href: props.href,
801 - target: props.target
802 - }, /*#__PURE__*/ react.default.createElement("i", { className: "e-admin-top-bar__bar-button-icon ".concat(props.icon, " ").concat(props.iconAdditionalClasses) }), /*#__PURE__*/ react.default.createElement("span", { className: "e-admin-top-bar__bar-button-title" }, props.children));
803 - }
804 - BarButton.propTypes = {
805 - children: import_prop_types.default.any,
806 - dataInfo: import_prop_types.default.string,
807 - icon: import_prop_types.default.any,
808 - onClick: import_prop_types.default.func,
809 - buttonRef: import_prop_types.default.object,
810 - href: import_prop_types.default.string,
811 - target: import_prop_types.default.string,
812 - additionalClasses: import_prop_types.default.string,
813 - iconAdditionalClasses: import_prop_types.default.string
814 - };
815 557
816 -//#endregion
817 -//#region modules/admin-top-bar/assets/js/components/bar-heading/bar-heading.js
818 - function BarHeading(props) {
819 - return /*#__PURE__*/ react.default.createElement("div", { className: "e-admin-top-bar__heading" }, /*#__PURE__*/ react.default.createElement("div", { className: "e-logo-wrapper" }, /*#__PURE__*/ react.default.createElement("i", {
820 - className: "eicon-elementor-circle",
821 - "aria-hidden": "true"
822 - })), /*#__PURE__*/ react.default.createElement("span", { className: "e-admin-top-bar__heading-title" }, props.children));
823 - }
824 - BarHeading.propTypes = { children: import_prop_types.default.any };
558 +/***/ }),
825 559
826 -//#endregion
827 -//#region modules/admin-top-bar/assets/js/components/connection-button/connection-button.js
828 - function ConnectionButton() {
829 - var buttonRef = (0, react.useRef)();
830 - var isUserConnected = elementorAdminTopBarConfig.is_user_connected;
831 - (0, react.useEffect)(function() {
832 - if (!buttonRef.current || isUserConnected) return;
833 - jQuery(buttonRef.current).elementorConnect();
834 - }, []);
835 - var tooltipText = (0, _wordpress_i18n.__)("Connect your account to get access to Elementor's Template Library & more.", "elementor");
836 - var connectUrl = elementorAdminTopBarConfig.connect_url;
837 - var buttonText = (0, _wordpress_i18n.__)("Connect Account", "elementor");
838 - var targetUrl = "_self";
839 - if (isUserConnected) {
840 - tooltipText = "";
841 - connectUrl = "https://go.elementor.com/wp-dash-admin-bar-account/";
842 - buttonText = (0, _wordpress_i18n.__)("My Elementor", "elementor");
843 - targetUrl = "_blank";
844 - }
845 - return /*#__PURE__*/ react.default.createElement(BarButton, {
846 - icon: "eicon-user-circle-o",
847 - buttonRef,
848 - dataInfo: tooltipText,
849 - href: connectUrl,
850 - target: targetUrl
851 - }, buttonText);
852 - }
560 +/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
561 +/*!*************************************************************!*\
562 + !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
563 + \*************************************************************/
564 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
853 565
854 -//#endregion
855 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
856 - function _arrayWithHoles(r) {
857 - if (Array.isArray(r)) return r;
858 - }
566 +"use strict";
567 +/**
568 + * Copyright (c) 2013-present, Facebook, Inc.
569 + *
570 + * This source code is licensed under the MIT license found in the
571 + * LICENSE file in the root directory of this source tree.
572 + */
859 573
860 -//#endregion
861 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
862 - function _iterableToArrayLimit(r, l) {
863 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
864 - if (null != t) {
865 - var e;
866 - var n;
867 - var i;
868 - var u;
869 - var a = [];
870 - var f = !0;
871 - var o = !1;
872 - try {
873 - if (i = (t = t.call(r)).next, 0 === l) {
874 - if (Object(t) !== t) return;
875 - f = !1;
876 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
877 - } catch (r) {
878 - o = !0, n = r;
879 - } finally {
880 - try {
881 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
882 - } finally {
883 - if (o) throw n;
884 - }
885 - }
886 - return a;
887 - }
888 - }
889 574
890 -//#endregion
891 -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
892 - function _arrayLikeToArray(r, a) {
893 - (null == a || a > r.length) && (a = r.length);
894 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
895 - return n;
896 - }
897 575
898 -//#endregion
899 -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
900 - function _unsupportedIterableToArray(r, a) {
901 - if (r) {
902 - if ("string" == typeof r) return _arrayLikeToArray(r, a);
903 - var t = {}.toString.call(r).slice(8, -1);
904 - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
905 - }
906 - }
576 +var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
577 +var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
907 578
908 -//#endregion
909 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
910 - function _nonIterableRest() {
911 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
912 - }
579 +var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
580 +var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
581 +var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
913 582
914 -//#endregion
915 -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js
916 - function _slicedToArray(r, e) {
917 - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
918 - }
583 +var printWarning = function() {};
919 584
920 -//#endregion
921 -//#region modules/admin-top-bar/assets/js/hooks/use-page-title/use-page-title.js
922 - var usePageTitle = function usePageTitle() {
923 - var _useState2 = _slicedToArray((0, react.useState)("Elementor"), 2);
924 - var pageTitle = _useState2[0];
925 - var setPageTitle = _useState2[1];
926 - (0, react.useEffect)(function() {
927 - var pageTitleElement = document.querySelector(".wp-heading-inline");
928 - if (!pageTitleElement) return;
929 - setPageTitle(pageTitleElement.innerText);
930 - }, []);
931 - return pageTitle;
932 - };
585 +if (true) {
586 + printWarning = function(text) {
587 + var message = 'Warning: ' + text;
588 + if (typeof console !== 'undefined') {
589 + console.error(message);
590 + }
591 + try {
592 + // --- Welcome to debugging React ---
593 + // This error was thrown as a convenience so that you can use this stack
594 + // to find the callsite that caused this warning to fire.
595 + throw new Error(message);
596 + } catch (x) {}
597 + };
598 +}
933 599
934 -//#endregion
935 -//#region core/common/assets/js/utils/environment.js
936 - var matchUserAgent = function matchUserAgent(UserAgentStr) {
937 - return userAgent.indexOf(UserAgentStr) >= 0;
938 - };
939 - var userAgent = navigator.userAgent;
940 - var isOpera = !!window.opr && !!opr.addons || !!window.opera || matchUserAgent(" OPR/");
941 - var isFirefox = matchUserAgent("Firefox");
942 - var isSafari = /^((?!chrome|android).)*safari/i.test(userAgent) || /constructor/i.test(window.HTMLElement) || function(p) {
943 - return "[object SafariRemoteNotification]" === p.toString();
944 - }(!window.safari || typeof safari !== "undefined" && safari.pushNotification);
945 - var isIE = /Trident|MSIE/.test(userAgent) && !!document.documentMode;
946 - var isEdge = !isIE && !!window.StyleMedia || matchUserAgent("Edg");
947 - var isChrome = !!window.chrome && matchUserAgent("Chrome") && !(isEdge || isOpera);
948 - var isBlink = matchUserAgent("Chrome") && !!window.CSS;
949 - var isAppleWebkit = matchUserAgent("AppleWebKit") && !isBlink;
950 - var environment = {
951 - isTouchDevice: "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0,
952 - appleWebkit: isAppleWebkit,
953 - blink: isBlink,
954 - chrome: isChrome,
955 - edge: isEdge,
956 - firefox: isFirefox,
957 - ie: isIE,
958 - mac: matchUserAgent("Macintosh"),
959 - opera: isOpera,
960 - safari: isSafari,
961 - webkit: matchUserAgent("AppleWebKit")
962 - };
600 +function emptyFunctionThatReturnsNull() {
601 + return null;
602 +}
963 603
964 -//#endregion
965 -//#region modules/admin-top-bar/assets/js/admin-top-bar.js
966 - function AdminTopBar() {
967 - var _window;
968 - var actionButtonsRef = (0, react.useRef)();
969 - var promotion = window.elementorAdminTopBarConfig.promotion;
970 - (0, react.useEffect)(function() {
971 - var adminTopBarElement = document.querySelector("#e-admin-top-bar-root");
972 - adminTopBarElement === null || adminTopBarElement === void 0 || adminTopBarElement.classList.add("e-admin-top-bar--active");
973 - adminTopBarElement === null || adminTopBarElement === void 0 || adminTopBarElement.classList.add("e-admin-top-bar--editor-one");
974 - }, []);
975 - var pageTitleText = usePageTitle();
976 - var finderAction = function finderAction() {
977 - $e.route("finder");
978 - };
979 - var controlSign = environment.mac ? "⌘" : "^";
980 - var finderTooltipText = (0, _wordpress_i18n.__)("Search or do anything in Elementor", "elementor") + " ".concat(controlSign, "+E");
981 - var BarButtonNotification = (_window = window) === null || _window === void 0 || (_window = _window.elementorNotificationCenter) === null || _window === void 0 ? void 0 : _window.BarButtonNotification;
982 - return /*#__PURE__*/ react.default.createElement("div", { className: "e-admin-top-bar" }, /*#__PURE__*/ react.default.createElement("div", { className: "e-admin-top-bar__main-area" }, /*#__PURE__*/ react.default.createElement(BarHeading, null, pageTitleText), /*#__PURE__*/ react.default.createElement("div", {
983 - className: "e-admin-top-bar__main-area-buttons",
984 - ref: actionButtonsRef
985 - })), /*#__PURE__*/ react.default.createElement("div", { className: "e-admin-top-bar__secondary-area" }, /*#__PURE__*/ react.default.createElement("div", { className: "e-admin-top-bar__secondary-area-buttons" }, !elementorAppConfig.hasPro && /*#__PURE__*/ react.default.createElement(BarButton, {
986 - additionalClasses: "accent",
987 - href: promotion.url,
988 - target: "__blank",
989 - icon: "eicon-upgrade-crown",
990 - iconAdditionalClasses: "crown-icon"
991 - }, promotion.text), /*#__PURE__*/ react.default.createElement(BarButton, {
992 - href: window.elementorAdminTopBarConfig.apps_url,
993 - icon: "eicon-integration"
994 - }, (0, _wordpress_i18n.__)("Add-ons", "elementor")), window.elementorAdminTopBarConfig.is_administrator ? /*#__PURE__*/ react.default.createElement(BarButton, {
995 - onClick: finderAction,
996 - dataInfo: finderTooltipText,
997 - icon: "eicon-search-bold"
998 - }, (0, _wordpress_i18n.__)("Finder", "elementor")) : "", window.elementorCloudAdmin ? window.elementorCloudAdmin() : "", BarButtonNotification ? /*#__PURE__*/ react.default.createElement(BarButtonNotification, null, (0, _wordpress_i18n.__)("What's New", "elementor")) : ""), /*#__PURE__*/ react.default.createElement(ConnectionButton, null)));
999 - }
604 +module.exports = function(isValidElement, throwOnDirectAccess) {
605 + /* global Symbol */
606 + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
607 + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1000 608
1001 -//#endregion
1002 -//#region modules/admin-top-bar/assets/js/admin.js
1003 - var AppWrapper = elementorCommon.config.isDebug ? react.default.StrictMode : react.default.Fragment;
1004 - var adminTopBarElement = document.getElementById("e-admin-top-bar-root");
1005 - react_default.render(/*#__PURE__*/ react.default.createElement(AppWrapper, null, /*#__PURE__*/ react.default.createElement(AdminTopBar, null)), adminTopBarElement);
609 + /**
610 + * Returns the iterator method function contained on the iterable object.
611 + *
612 + * Be sure to invoke the function with the iterable as context:
613 + *
614 + * var iteratorFn = getIteratorFn(myIterable);
615 + * if (iteratorFn) {
616 + * var iterator = iteratorFn.call(myIterable);
617 + * ...
618 + * }
619 + *
620 + * @param {?object} maybeIterable
621 + * @return {?function}
622 + */
623 + function getIteratorFn(maybeIterable) {
624 + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
625 + if (typeof iteratorFn === 'function') {
626 + return iteratorFn;
627 + }
628 + }
1006 629
1007 -//#endregion
1008 -})(React, ReactDOM, wp.i18n);
630 + /**
631 + * Collection of methods that allow declaration and validation of props that are
632 + * supplied to React components. Example usage:
633 + *
634 + * var Props = require('ReactPropTypes');
635 + * var MyArticle = React.createClass({
636 + * propTypes: {
637 + * // An optional string prop named "description".
638 + * description: Props.string,
639 + *
640 + * // A required enum prop named "category".
641 + * category: Props.oneOf(['News','Photos']).isRequired,
642 + *
643 + * // A prop named "dialog" that requires an instance of Dialog.
644 + * dialog: Props.instanceOf(Dialog).isRequired
645 + * },
646 + * render: function() { ... }
647 + * });
648 + *
649 + * A more formal specification of how these methods are used:
650 + *
651 + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
652 + * decl := ReactPropTypes.{type}(.isRequired)?
653 + *
654 + * Each and every declaration produces a function with the same signature. This
655 + * allows the creation of custom validation functions. For example:
656 + *
657 + * var MyLink = React.createClass({
658 + * propTypes: {
659 + * // An optional string or URI prop named "href".
660 + * href: function(props, propName, componentName) {
661 + * var propValue = props[propName];
662 + * if (propValue != null && typeof propValue !== 'string' &&
663 + * !(propValue instanceof URI)) {
664 + * return new Error(
665 + * 'Expected a string or an URI for ' + propName + ' in ' +
666 + * componentName
667 + * );
668 + * }
669 + * }
670 + * },
671 + * render: function() {...}
672 + * });
673 + *
674 + * @internal
675 + */
676 +
677 + var ANONYMOUS = '<<anonymous>>';
678 +
679 + // Important!
680 + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
681 + var ReactPropTypes = {
682 + array: createPrimitiveTypeChecker('array'),
683 + bigint: createPrimitiveTypeChecker('bigint'),
684 + bool: createPrimitiveTypeChecker('boolean'),
685 + func: createPrimitiveTypeChecker('function'),
686 + number: createPrimitiveTypeChecker('number'),
687 + object: createPrimitiveTypeChecker('object'),
688 + string: createPrimitiveTypeChecker('string'),
689 + symbol: createPrimitiveTypeChecker('symbol'),
690 +
691 + any: createAnyTypeChecker(),
692 + arrayOf: createArrayOfTypeChecker,
693 + element: createElementTypeChecker(),
694 + elementType: createElementTypeTypeChecker(),
695 + instanceOf: createInstanceTypeChecker,
696 + node: createNodeChecker(),
697 + objectOf: createObjectOfTypeChecker,
698 + oneOf: createEnumTypeChecker,
699 + oneOfType: createUnionTypeChecker,
700 + shape: createShapeTypeChecker,
701 + exact: createStrictShapeTypeChecker,
702 + };
703 +
704 + /**
705 + * inlined Object.is polyfill to avoid requiring consumers ship their own
706 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
707 + */
708 + /*eslint-disable no-self-compare*/
709 + function is(x, y) {
710 + // SameValue algorithm
711 + if (x === y) {
712 + // Steps 1-5, 7-10
713 + // Steps 6.b-6.e: +0 != -0
714 + return x !== 0 || 1 / x === 1 / y;
715 + } else {
716 + // Step 6.a: NaN == NaN
717 + return x !== x && y !== y;
718 + }
719 + }
720 + /*eslint-enable no-self-compare*/
721 +
722 + /**
723 + * We use an Error-like object for backward compatibility as people may call
724 + * PropTypes directly and inspect their output. However, we don't use real
725 + * Errors anymore. We don't inspect their stack anyway, and creating them
726 + * is prohibitively expensive if they are created too often, such as what
727 + * happens in oneOfType() for any type before the one that matched.
728 + */
729 + function PropTypeError(message, data) {
730 + this.message = message;
731 + this.data = data && typeof data === 'object' ? data: {};
732 + this.stack = '';
733 + }
734 + // Make `instanceof Error` still work for returned errors.
735 + PropTypeError.prototype = Error.prototype;
736 +
737 + function createChainableTypeChecker(validate) {
738 + if (true) {
739 + var manualPropTypeCallCache = {};
740 + var manualPropTypeWarningCount = 0;
741 + }
742 + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
743 + componentName = componentName || ANONYMOUS;
744 + propFullName = propFullName || propName;
745 +
746 + if (secret !== ReactPropTypesSecret) {
747 + if (throwOnDirectAccess) {
748 + // New behavior only for users of `prop-types` package
749 + var err = new Error(
750 + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
751 + 'Use `PropTypes.checkPropTypes()` to call them. ' +
752 + 'Read more at http://fb.me/use-check-prop-types'
753 + );
754 + err.name = 'Invariant Violation';
755 + throw err;
756 + } else if ( true && typeof console !== 'undefined') {
757 + // Old behavior for people using React.PropTypes
758 + var cacheKey = componentName + ':' + propName;
759 + if (
760 + !manualPropTypeCallCache[cacheKey] &&
761 + // Avoid spamming the console because they are often not actionable except for lib authors
762 + manualPropTypeWarningCount < 3
763 + ) {
764 + printWarning(
765 + 'You are manually calling a React.PropTypes validation ' +
766 + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
767 + 'and will throw in the standalone `prop-types` package. ' +
768 + 'You may be seeing this warning due to a third-party PropTypes ' +
769 + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
770 + );
771 + manualPropTypeCallCache[cacheKey] = true;
772 + manualPropTypeWarningCount++;
773 + }
774 + }
775 + }
776 + if (props[propName] == null) {
777 + if (isRequired) {
778 + if (props[propName] === null) {
779 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
780 + }
781 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
782 + }
783 + return null;
784 + } else {
785 + return validate(props, propName, componentName, location, propFullName);
786 + }
787 + }
788 +
789 + var chainedCheckType = checkType.bind(null, false);
790 + chainedCheckType.isRequired = checkType.bind(null, true);
791 +
792 + return chainedCheckType;
793 + }
794 +
795 + function createPrimitiveTypeChecker(expectedType) {
796 + function validate(props, propName, componentName, location, propFullName, secret) {
797 + var propValue = props[propName];
798 + var propType = getPropType(propValue);
799 + if (propType !== expectedType) {
800 + // `propValue` being instance of, say, date/regexp, pass the 'object'
801 + // check, but we can offer a more precise error message here rather than
802 + // 'of type `object`'.
803 + var preciseType = getPreciseType(propValue);
804 +
805 + return new PropTypeError(
806 + 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
807 + {expectedType: expectedType}
808 + );
809 + }
810 + return null;
811 + }
812 + return createChainableTypeChecker(validate);
813 + }
814 +
815 + function createAnyTypeChecker() {
816 + return createChainableTypeChecker(emptyFunctionThatReturnsNull);
817 + }
818 +
819 + function createArrayOfTypeChecker(typeChecker) {
820 + function validate(props, propName, componentName, location, propFullName) {
821 + if (typeof typeChecker !== 'function') {
822 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
823 + }
824 + var propValue = props[propName];
825 + if (!Array.isArray(propValue)) {
826 + var propType = getPropType(propValue);
827 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
828 + }
829 + for (var i = 0; i < propValue.length; i++) {
830 + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
831 + if (error instanceof Error) {
832 + return error;
833 + }
834 + }
835 + return null;
836 + }
837 + return createChainableTypeChecker(validate);
838 + }
839 +
840 + function createElementTypeChecker() {
841 + function validate(props, propName, componentName, location, propFullName) {
842 + var propValue = props[propName];
843 + if (!isValidElement(propValue)) {
844 + var propType = getPropType(propValue);
845 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
846 + }
847 + return null;
848 + }
849 + return createChainableTypeChecker(validate);
850 + }
851 +
852 + function createElementTypeTypeChecker() {
853 + function validate(props, propName, componentName, location, propFullName) {
854 + var propValue = props[propName];
855 + if (!ReactIs.isValidElementType(propValue)) {
856 + var propType = getPropType(propValue);
857 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
858 + }
859 + return null;
860 + }
861 + return createChainableTypeChecker(validate);
862 + }
863 +
864 + function createInstanceTypeChecker(expectedClass) {
865 + function validate(props, propName, componentName, location, propFullName) {
866 + if (!(props[propName] instanceof expectedClass)) {
867 + var expectedClassName = expectedClass.name || ANONYMOUS;
868 + var actualClassName = getClassName(props[propName]);
869 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
870 + }
871 + return null;
872 + }
873 + return createChainableTypeChecker(validate);
874 + }
875 +
876 + function createEnumTypeChecker(expectedValues) {
877 + if (!Array.isArray(expectedValues)) {
878 + if (true) {
879 + if (arguments.length > 1) {
880 + printWarning(
881 + 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
882 + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
883 + );
884 + } else {
885 + printWarning('Invalid argument supplied to oneOf, expected an array.');
886 + }
887 + }
888 + return emptyFunctionThatReturnsNull;
889 + }
890 +
891 + function validate(props, propName, componentName, location, propFullName) {
892 + var propValue = props[propName];
893 + for (var i = 0; i < expectedValues.length; i++) {
894 + if (is(propValue, expectedValues[i])) {
895 + return null;
896 + }
897 + }
898 +
899 + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
900 + var type = getPreciseType(value);
901 + if (type === 'symbol') {
902 + return String(value);
903 + }
904 + return value;
905 + });
906 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
907 + }
908 + return createChainableTypeChecker(validate);
909 + }
910 +
911 + function createObjectOfTypeChecker(typeChecker) {
912 + function validate(props, propName, componentName, location, propFullName) {
913 + if (typeof typeChecker !== 'function') {
914 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
915 + }
916 + var propValue = props[propName];
917 + var propType = getPropType(propValue);
918 + if (propType !== 'object') {
919 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
920 + }
921 + for (var key in propValue) {
922 + if (has(propValue, key)) {
923 + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
924 + if (error instanceof Error) {
925 + return error;
926 + }
927 + }
928 + }
929 + return null;
930 + }
931 + return createChainableTypeChecker(validate);
932 + }
933 +
934 + function createUnionTypeChecker(arrayOfTypeCheckers) {
935 + if (!Array.isArray(arrayOfTypeCheckers)) {
936 + true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
937 + return emptyFunctionThatReturnsNull;
938 + }
939 +
940 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
941 + var checker = arrayOfTypeCheckers[i];
942 + if (typeof checker !== 'function') {
943 + printWarning(
944 + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
945 + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
946 + );
947 + return emptyFunctionThatReturnsNull;
948 + }
949 + }
950 +
951 + function validate(props, propName, componentName, location, propFullName) {
952 + var expectedTypes = [];
953 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
954 + var checker = arrayOfTypeCheckers[i];
955 + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
956 + if (checkerResult == null) {
957 + return null;
958 + }
959 + if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
960 + expectedTypes.push(checkerResult.data.expectedType);
961 + }
962 + }
963 + var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
964 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
965 + }
966 + return createChainableTypeChecker(validate);
967 + }
968 +
969 + function createNodeChecker() {
970 + function validate(props, propName, componentName, location, propFullName) {
971 + if (!isNode(props[propName])) {
972 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
973 + }
974 + return null;
975 + }
976 + return createChainableTypeChecker(validate);
977 + }
978 +
979 + function invalidValidatorError(componentName, location, propFullName, key, type) {
980 + return new PropTypeError(
981 + (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
982 + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
983 + );
984 + }
985 +
986 + function createShapeTypeChecker(shapeTypes) {
987 + function validate(props, propName, componentName, location, propFullName) {
988 + var propValue = props[propName];
989 + var propType = getPropType(propValue);
990 + if (propType !== 'object') {
991 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
992 + }
993 + for (var key in shapeTypes) {
994 + var checker = shapeTypes[key];
995 + if (typeof checker !== 'function') {
996 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
997 + }
998 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
999 + if (error) {
1000 + return error;
1001 + }
1002 + }
1003 + return null;
1004 + }
1005 + return createChainableTypeChecker(validate);
1006 + }
1007 +
1008 + function createStrictShapeTypeChecker(shapeTypes) {
1009 + function validate(props, propName, componentName, location, propFullName) {
1010 + var propValue = props[propName];
1011 + var propType = getPropType(propValue);
1012 + if (propType !== 'object') {
1013 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1014 + }
1015 + // We need to check all keys in case some are required but missing from props.
1016 + var allKeys = assign({}, props[propName], shapeTypes);
1017 + for (var key in allKeys) {
1018 + var checker = shapeTypes[key];
1019 + if (has(shapeTypes, key) && typeof checker !== 'function') {
1020 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1021 + }
1022 + if (!checker) {
1023 + return new PropTypeError(
1024 + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1025 + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1026 + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1027 + );
1028 + }
1029 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1030 + if (error) {
1031 + return error;
1032 + }
1033 + }
1034 + return null;
1035 + }
1036 +
1037 + return createChainableTypeChecker(validate);
1038 + }
1039 +
1040 + function isNode(propValue) {
1041 + switch (typeof propValue) {
1042 + case 'number':
1043 + case 'string':
1044 + case 'undefined':
1045 + return true;
1046 + case 'boolean':
1047 + return !propValue;
1048 + case 'object':
1049 + if (Array.isArray(propValue)) {
1050 + return propValue.every(isNode);
1051 + }
1052 + if (propValue === null || isValidElement(propValue)) {
1053 + return true;
1054 + }
1055 +
1056 + var iteratorFn = getIteratorFn(propValue);
1057 + if (iteratorFn) {
1058 + var iterator = iteratorFn.call(propValue);
1059 + var step;
1060 + if (iteratorFn !== propValue.entries) {
1061 + while (!(step = iterator.next()).done) {
1062 + if (!isNode(step.value)) {
1063 + return false;
1064 + }
1065 + }
1066 + } else {
1067 + // Iterator will provide entry [k,v] tuples rather than values.
1068 + while (!(step = iterator.next()).done) {
1069 + var entry = step.value;
1070 + if (entry) {
1071 + if (!isNode(entry[1])) {
1072 + return false;
1073 + }
1074 + }
1075 + }
1076 + }
1077 + } else {
1078 + return false;
1079 + }
1080 +
1081 + return true;
1082 + default:
1083 + return false;
1084 + }
1085 + }
1086 +
1087 + function isSymbol(propType, propValue) {
1088 + // Native Symbol.
1089 + if (propType === 'symbol') {
1090 + return true;
1091 + }
1092 +
1093 + // falsy value can't be a Symbol
1094 + if (!propValue) {
1095 + return false;
1096 + }
1097 +
1098 + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1099 + if (propValue['@@toStringTag'] === 'Symbol') {
1100 + return true;
1101 + }
1102 +
1103 + // Fallback for non-spec compliant Symbols which are polyfilled.
1104 + if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1105 + return true;
1106 + }
1107 +
1108 + return false;
1109 + }
1110 +
1111 + // Equivalent of `typeof` but with special handling for array and regexp.
1112 + function getPropType(propValue) {
1113 + var propType = typeof propValue;
1114 + if (Array.isArray(propValue)) {
1115 + return 'array';
1116 + }
1117 + if (propValue instanceof RegExp) {
1118 + // Old webkits (at least until Android 4.0) return 'function' rather than
1119 + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1120 + // passes PropTypes.object.
1121 + return 'object';
1122 + }
1123 + if (isSymbol(propType, propValue)) {
1124 + return 'symbol';
1125 + }
1126 + return propType;
1127 + }
1128 +
1129 + // This handles more types than `getPropType`. Only used for error messages.
1130 + // See `createPrimitiveTypeChecker`.
1131 + function getPreciseType(propValue) {
1132 + if (typeof propValue === 'undefined' || propValue === null) {
1133 + return '' + propValue;
1134 + }
1135 + var propType = getPropType(propValue);
1136 + if (propType === 'object') {
1137 + if (propValue instanceof Date) {
1138 + return 'date';
1139 + } else if (propValue instanceof RegExp) {
1140 + return 'regexp';
1141 + }
1142 + }
1143 + return propType;
1144 + }
1145 +
1146 + // Returns a string that is postfixed to a warning about an invalid type.
1147 + // For example, "undefined" or "of type array"
1148 + function getPostfixForTypeWarning(value) {
1149 + var type = getPreciseType(value);
1150 + switch (type) {
1151 + case 'array':
1152 + case 'object':
1153 + return 'an ' + type;
1154 + case 'boolean':
1155 + case 'date':
1156 + case 'regexp':
1157 + return 'a ' + type;
1158 + default:
1159 + return type;
1160 + }
1161 + }
1162 +
1163 + // Returns class name of the object, if any.
1164 + function getClassName(propValue) {
1165 + if (!propValue.constructor || !propValue.constructor.name) {
1166 + return ANONYMOUS;
1167 + }
1168 + return propValue.constructor.name;
1169 + }
1170 +
1171 + ReactPropTypes.checkPropTypes = checkPropTypes;
1172 + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1173 + ReactPropTypes.PropTypes = ReactPropTypes;
1174 +
1175 + return ReactPropTypes;
1176 +};
1177 +
1178 +
1179 +/***/ }),
1180 +
1181 +/***/ "../node_modules/prop-types/index.js":
1182 +/*!*******************************************!*\
1183 + !*** ../node_modules/prop-types/index.js ***!
1184 + \*******************************************/
1185 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1186 +
1187 +/**
1188 + * Copyright (c) 2013-present, Facebook, Inc.
1189 + *
1190 + * This source code is licensed under the MIT license found in the
1191 + * LICENSE file in the root directory of this source tree.
1192 + */
1193 +
1194 +if (true) {
1195 + var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1196 +
1197 + // By explicitly using `prop-types` you are opting into new development behavior.
1198 + // http://fb.me/prop-types-in-prod
1199 + var throwOnDirectAccess = true;
1200 + module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1201 +} else {}
1202 +
1203 +
1204 +/***/ }),
1205 +
1206 +/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
1207 +/*!**************************************************************!*\
1208 + !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
1209 + \**************************************************************/
1210 +/***/ ((module) => {
1211 +
1212 +"use strict";
1213 +/**
1214 + * Copyright (c) 2013-present, Facebook, Inc.
1215 + *
1216 + * This source code is licensed under the MIT license found in the
1217 + * LICENSE file in the root directory of this source tree.
1218 + */
1219 +
1220 +
1221 +
1222 +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1223 +
1224 +module.exports = ReactPropTypesSecret;
1225 +
1226 +
1227 +/***/ }),
1228 +
1229 +/***/ "../node_modules/prop-types/lib/has.js":
1230 +/*!*********************************************!*\
1231 + !*** ../node_modules/prop-types/lib/has.js ***!
1232 + \*********************************************/
1233 +/***/ ((module) => {
1234 +
1235 +module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
1236 +
1237 +
1238 +/***/ }),
1239 +
1240 +/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
1241 +/*!************************************************************************************!*\
1242 + !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
1243 + \************************************************************************************/
1244 +/***/ ((__unused_webpack_module, exports) => {
1245 +
1246 +"use strict";
1247 +/** @license React v16.13.1
1248 + * react-is.development.js
1249 + *
1250 + * Copyright (c) Facebook, Inc. and its affiliates.
1251 + *
1252 + * This source code is licensed under the MIT license found in the
1253 + * LICENSE file in the root directory of this source tree.
1254 + */
1255 +
1256 +
1257 +
1258 +
1259 +
1260 +if (true) {
1261 + (function() {
1262 +'use strict';
1263 +
1264 +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1265 +// nor polyfill, then a plain number is used for performance.
1266 +var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1267 +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1268 +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1269 +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1270 +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1271 +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1272 +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1273 +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1274 +// (unstable) APIs that have been removed. Can we remove the symbols?
1275 +
1276 +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1277 +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1278 +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1279 +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1280 +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1281 +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1282 +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1283 +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1284 +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1285 +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1286 +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1287 +
1288 +function isValidElementType(type) {
1289 + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1290 + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1291 +}
1292 +
1293 +function typeOf(object) {
1294 + if (typeof object === 'object' && object !== null) {
1295 + var $$typeof = object.$$typeof;
1296 +
1297 + switch ($$typeof) {
1298 + case REACT_ELEMENT_TYPE:
1299 + var type = object.type;
1300 +
1301 + switch (type) {
1302 + case REACT_ASYNC_MODE_TYPE:
1303 + case REACT_CONCURRENT_MODE_TYPE:
1304 + case REACT_FRAGMENT_TYPE:
1305 + case REACT_PROFILER_TYPE:
1306 + case REACT_STRICT_MODE_TYPE:
1307 + case REACT_SUSPENSE_TYPE:
1308 + return type;
1309 +
1310 + default:
1311 + var $$typeofType = type && type.$$typeof;
1312 +
1313 + switch ($$typeofType) {
1314 + case REACT_CONTEXT_TYPE:
1315 + case REACT_FORWARD_REF_TYPE:
1316 + case REACT_LAZY_TYPE:
1317 + case REACT_MEMO_TYPE:
1318 + case REACT_PROVIDER_TYPE:
1319 + return $$typeofType;
1320 +
1321 + default:
1322 + return $$typeof;
1323 + }
1324 +
1325 + }
1326 +
1327 + case REACT_PORTAL_TYPE:
1328 + return $$typeof;
1329 + }
1330 + }
1331 +
1332 + return undefined;
1333 +} // AsyncMode is deprecated along with isAsyncMode
1334 +
1335 +var AsyncMode = REACT_ASYNC_MODE_TYPE;
1336 +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1337 +var ContextConsumer = REACT_CONTEXT_TYPE;
1338 +var ContextProvider = REACT_PROVIDER_TYPE;
1339 +var Element = REACT_ELEMENT_TYPE;
1340 +var ForwardRef = REACT_FORWARD_REF_TYPE;
1341 +var Fragment = REACT_FRAGMENT_TYPE;
1342 +var Lazy = REACT_LAZY_TYPE;
1343 +var Memo = REACT_MEMO_TYPE;
1344 +var Portal = REACT_PORTAL_TYPE;
1345 +var Profiler = REACT_PROFILER_TYPE;
1346 +var StrictMode = REACT_STRICT_MODE_TYPE;
1347 +var Suspense = REACT_SUSPENSE_TYPE;
1348 +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1349 +
1350 +function isAsyncMode(object) {
1351 + {
1352 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1353 + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1354 +
1355 + console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
1356 + }
1357 + }
1358 +
1359 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1360 +}
1361 +function isConcurrentMode(object) {
1362 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1363 +}
1364 +function isContextConsumer(object) {
1365 + return typeOf(object) === REACT_CONTEXT_TYPE;
1366 +}
1367 +function isContextProvider(object) {
1368 + return typeOf(object) === REACT_PROVIDER_TYPE;
1369 +}
1370 +function isElement(object) {
1371 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1372 +}
1373 +function isForwardRef(object) {
1374 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
1375 +}
1376 +function isFragment(object) {
1377 + return typeOf(object) === REACT_FRAGMENT_TYPE;
1378 +}
1379 +function isLazy(object) {
1380 + return typeOf(object) === REACT_LAZY_TYPE;
1381 +}
1382 +function isMemo(object) {
1383 + return typeOf(object) === REACT_MEMO_TYPE;
1384 +}
1385 +function isPortal(object) {
1386 + return typeOf(object) === REACT_PORTAL_TYPE;
1387 +}
1388 +function isProfiler(object) {
1389 + return typeOf(object) === REACT_PROFILER_TYPE;
1390 +}
1391 +function isStrictMode(object) {
1392 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
1393 +}
1394 +function isSuspense(object) {
1395 + return typeOf(object) === REACT_SUSPENSE_TYPE;
1396 +}
1397 +
1398 +exports.AsyncMode = AsyncMode;
1399 +exports.ConcurrentMode = ConcurrentMode;
1400 +exports.ContextConsumer = ContextConsumer;
1401 +exports.ContextProvider = ContextProvider;
1402 +exports.Element = Element;
1403 +exports.ForwardRef = ForwardRef;
1404 +exports.Fragment = Fragment;
1405 +exports.Lazy = Lazy;
1406 +exports.Memo = Memo;
1407 +exports.Portal = Portal;
1408 +exports.Profiler = Profiler;
1409 +exports.StrictMode = StrictMode;
1410 +exports.Suspense = Suspense;
1411 +exports.isAsyncMode = isAsyncMode;
1412 +exports.isConcurrentMode = isConcurrentMode;
1413 +exports.isContextConsumer = isContextConsumer;
1414 +exports.isContextProvider = isContextProvider;
1415 +exports.isElement = isElement;
1416 +exports.isForwardRef = isForwardRef;
1417 +exports.isFragment = isFragment;
1418 +exports.isLazy = isLazy;
1419 +exports.isMemo = isMemo;
1420 +exports.isPortal = isPortal;
1421 +exports.isProfiler = isProfiler;
1422 +exports.isStrictMode = isStrictMode;
1423 +exports.isSuspense = isSuspense;
1424 +exports.isValidElementType = isValidElementType;
1425 +exports.typeOf = typeOf;
1426 + })();
1427 +}
1428 +
1429 +
1430 +/***/ }),
1431 +
1432 +/***/ "../node_modules/prop-types/node_modules/react-is/index.js":
1433 +/*!*****************************************************************!*\
1434 + !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
1435 + \*****************************************************************/
1436 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1437 +
1438 +"use strict";
1439 +
1440 +
1441 +if (false) {} else {
1442 + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1443 +}
1444 +
1445 +
1446 +/***/ }),
1447 +
1448 +/***/ "react":
1449 +/*!************************!*\
1450 + !*** external "React" ***!
1451 + \************************/
1452 +/***/ ((module) => {
1453 +
1454 +"use strict";
1455 +module.exports = React;
1456 +
1457 +/***/ }),
1458 +
1459 +/***/ "react-dom":
1460 +/*!***************************!*\
1461 + !*** external "ReactDOM" ***!
1462 + \***************************/
1463 +/***/ ((module) => {
1464 +
1465 +"use strict";
1466 +module.exports = ReactDOM;
1467 +
1468 +/***/ }),
1469 +
1470 +/***/ "@wordpress/i18n":
1471 +/*!**************************!*\
1472 + !*** external "wp.i18n" ***!
1473 + \**************************/
1474 +/***/ ((module) => {
1475 +
1476 +"use strict";
1477 +module.exports = wp.i18n;
1478 +
1479 +/***/ }),
1480 +
1481 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
1482 +/*!******************************************************************!*\
1483 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1484 + \******************************************************************/
1485 +/***/ ((module) => {
1486 +
1487 +function _arrayLikeToArray(arr, len) {
1488 + if (len == null || len > arr.length) len = arr.length;
1489 +
1490 + for (var i = 0, arr2 = new Array(len); i < len; i++) {
1491 + arr2[i] = arr[i];
1492 + }
1493 +
1494 + return arr2;
1495 +}
1496 +
1497 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1498 +
1499 +/***/ }),
1500 +
1501 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
1502 +/*!****************************************************************!*\
1503 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
1504 + \****************************************************************/
1505 +/***/ ((module) => {
1506 +
1507 +function _arrayWithHoles(arr) {
1508 + if (Array.isArray(arr)) return arr;
1509 +}
1510 +
1511 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1512 +
1513 +/***/ }),
1514 +
1515 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
1516 +/*!***********************************************************************!*\
1517 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
1518 + \***********************************************************************/
1519 +/***/ ((module) => {
1520 +
1521 +function _interopRequireDefault(obj) {
1522 + return obj && obj.__esModule ? obj : {
1523 + "default": obj
1524 + };
1525 +}
1526 +
1527 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
1528 +
1529 +/***/ }),
1530 +
1531 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
1532 +/*!**********************************************************************!*\
1533 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
1534 + \**********************************************************************/
1535 +/***/ ((module) => {
1536 +
1537 +function _iterableToArrayLimit(arr, i) {
1538 + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1539 +
1540 + if (_i == null) return;
1541 + var _arr = [];
1542 + var _n = true;
1543 + var _d = false;
1544 +
1545 + var _s, _e;
1546 +
1547 + try {
1548 + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
1549 + _arr.push(_s.value);
1550 +
1551 + if (i && _arr.length === i) break;
1552 + }
1553 + } catch (err) {
1554 + _d = true;
1555 + _e = err;
1556 + } finally {
1557 + try {
1558 + if (!_n && _i["return"] != null) _i["return"]();
1559 + } finally {
1560 + if (_d) throw _e;
1561 + }
1562 + }
1563 +
1564 + return _arr;
1565 +}
1566 +
1567 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
1568 +
1569 +/***/ }),
1570 +
1571 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
1572 +/*!*****************************************************************!*\
1573 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
1574 + \*****************************************************************/
1575 +/***/ ((module) => {
1576 +
1577 +function _nonIterableRest() {
1578 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1579 +}
1580 +
1581 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
1582 +
1583 +/***/ }),
1584 +
1585 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
1586 +/*!***************************************************************!*\
1587 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
1588 + \***************************************************************/
1589 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1590 +
1591 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
1592 +
1593 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
1594 +
1595 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
1596 +
1597 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
1598 +
1599 +function _slicedToArray(arr, i) {
1600 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
1601 +}
1602 +
1603 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1604 +
1605 +/***/ }),
1606 +
1607 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
1608 +/*!********************************************************!*\
1609 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
1610 + \********************************************************/
1611 +/***/ ((module) => {
1612 +
1613 +function _typeof(obj) {
1614 + "@babel/helpers - typeof";
1615 +
1616 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1617 + return typeof obj;
1618 + } : function (obj) {
1619 + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1620 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
1621 +}
1622 +
1623 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
1624 +
1625 +/***/ }),
1626 +
1627 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
1628 +/*!****************************************************************************!*\
1629 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
1630 + \****************************************************************************/
1631 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1632 +
1633 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
1634 +
1635 +function _unsupportedIterableToArray(o, minLen) {
1636 + if (!o) return;
1637 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
1638 + var n = Object.prototype.toString.call(o).slice(8, -1);
1639 + if (n === "Object" && o.constructor) n = o.constructor.name;
1640 + if (n === "Map" || n === "Set") return Array.from(o);
1641 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
1642 +}
1643 +
1644 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1645 +
1646 +/***/ })
1647 +
1648 +/******/ });
1649 +/************************************************************************/
1650 +/******/ // The module cache
1651 +/******/ var __webpack_module_cache__ = {};
1652 +/******/
1653 +/******/ // The require function
1654 +/******/ function __webpack_require__(moduleId) {
1655 +/******/ // Check if module is in cache
1656 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
1657 +/******/ if (cachedModule !== undefined) {
1658 +/******/ return cachedModule.exports;
1659 +/******/ }
1660 +/******/ // Create a new module (and put it into the cache)
1661 +/******/ var module = __webpack_module_cache__[moduleId] = {
1662 +/******/ // no module.id needed
1663 +/******/ // no module.loaded needed
1664 +/******/ exports: {}
1665 +/******/ };
1666 +/******/
1667 +/******/ // Execute the module function
1668 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1669 +/******/
1670 +/******/ // Return the exports of the module
1671 +/******/ return module.exports;
1672 +/******/ }
1673 +/******/
1674 +/************************************************************************/
1675 +var __webpack_exports__ = {};
1676 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
1677 +(() => {
1678 +"use strict";
1679 +/*!***************************************************!*\
1680 + !*** ../modules/admin-top-bar/assets/js/admin.js ***!
1681 + \***************************************************/
1682 +/* provided dependency */ var ReactDOM = __webpack_require__(/*! react-dom */ "react-dom");
1683 +
1684 +
1685 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1686 +
1687 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1688 +
1689 +var _adminTopBar = _interopRequireDefault(__webpack_require__(/*! ./admin-top-bar */ "../modules/admin-top-bar/assets/js/admin-top-bar.js"));
1690 +
1691 +var AppWrapper = elementorCommon.config.isDebug ? _react.default.StrictMode : _react.default.Fragment;
1692 +var adminTopBarElement = document.getElementById('e-admin-top-bar-root');
1693 +var elementorMenuItemIds = ['toplevel_page_elementor', 'menu-posts-elementor_library'];
1694 +var menuItemSelector = elementorMenuItemIds.map(function (itemId) {
1695 + return "#".concat(itemId, " .wp-menu-open");
1696 +}).join(', ');
1697 +var isElementorPage = !!document.querySelector(menuItemSelector);
1698 +
1699 +if (isElementorPage) {
1700 + ReactDOM.render( /*#__PURE__*/_react.default.createElement(AppWrapper, null, /*#__PURE__*/_react.default.createElement(_adminTopBar.default, null)), adminTopBarElement);
1701 +}
1702 +})();
1703 +
1704 +/******/ })()
1705 +;
1009 1706 //# sourceMappingURL=admin-top-bar.js.map