PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.0-dev3
Elementor Website Builder – more than just a page builder v3.20.0-dev3
4.3.2 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 All 455 releases
← All changes | assets/js/editor-notifications.js +6846 -1521 4.3.0-beta1 → 3.20.0-dev3 View file →
@@ -1,1578 +1,6903 @@
1 -(function(_wordpress_i18n, react, react_dom, _elementor_ui, _elementor_query, _elementor_icons, _elementor_editor_app_bar, _elementor_icons_SpeakerphoneIcon) {
1 +/*! elementor - v3.20.0 - 29-02-2024 */
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 +/***/ "../node_modules/@elementor/query/dist/index.js":
6 +/*!******************************************************!*\
7 + !*** ../node_modules/@elementor/query/dist/index.js ***!
8 + \******************************************************/
9 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10 +
11 +"use strict";
12 +
13 +var __defProp = Object.defineProperty;
14 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15 +var __getOwnPropNames = Object.getOwnPropertyNames;
16 +var __hasOwnProp = Object.prototype.hasOwnProperty;
17 +var __export = (target, all) => {
18 + for (var name in all)
19 + __defProp(target, name, { get: all[name], enumerable: true });
20 +};
21 +var __copyProps = (to, from, except, desc) => {
22 + if (from && typeof from === "object" || typeof from === "function") {
23 + for (let key of __getOwnPropNames(from))
24 + if (!__hasOwnProp.call(to, key) && key !== except)
25 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26 + }
27 + return to;
28 +};
29 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30 +
31 +// src/index.ts
32 +var src_exports = {};
33 +__export(src_exports, {
34 + QueryClient: () => import_react_query2.QueryClient,
35 + QueryClientProvider: () => import_react_query2.QueryClientProvider,
36 + createQueryClient: () => createQueryClient,
37 + useInfiniteQuery: () => import_react_query2.useInfiniteQuery,
38 + useMutation: () => import_react_query2.useMutation,
39 + useQuery: () => import_react_query2.useQuery,
40 + useQueryClient: () => import_react_query2.useQueryClient
41 +});
42 +module.exports = __toCommonJS(src_exports);
43 +var import_react_query = __webpack_require__(/*! @tanstack/react-query */ "../node_modules/@tanstack/react-query/build/modern/index.cjs");
44 +var import_react_query2 = __webpack_require__(/*! @tanstack/react-query */ "../node_modules/@tanstack/react-query/build/modern/index.cjs");
45 +function createQueryClient() {
46 + return new import_react_query.QueryClient({
47 + defaultOptions: {
48 + queries: {
49 + refetchOnWindowFocus: false,
50 + refetchOnReconnect: false
51 + }
52 + }
53 + });
54 +}
55 +// Annotate the CommonJS export names for ESM import in node:
56 +0 && (0);
57 +//# sourceMappingURL=index.js.map
58 +
59 +/***/ }),
60 +
61 +/***/ "../modules/notifications/assets/js/api/index.js":
62 +/*!*******************************************************!*\
63 + !*** ../modules/notifications/assets/js/api/index.js ***!
64 + \*******************************************************/
65 +/***/ ((__unused_webpack_module, exports) => {
66 +
67 +"use strict";
68 +
69 +
70 +Object.defineProperty(exports, "__esModule", ({
71 + value: true
72 +}));
73 +exports.getNotifications = void 0;
74 +var request = function request(endpoint) {
75 + var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
76 + return new Promise(function (resolve, reject) {
77 + elementorCommon.ajax.addRequest(endpoint, {
78 + success: resolve,
79 + error: reject,
80 + data: data
81 + });
82 + });
83 +};
84 +var getNotifications = function getNotifications() {
85 + return request('notifications_get');
86 +};
87 +exports.getNotifications = getNotifications;
88 +
89 +/***/ }),
90 +
91 +/***/ "../modules/notifications/assets/js/components/editor-drawer.js":
92 +/*!**********************************************************************!*\
93 + !*** ../modules/notifications/assets/js/components/editor-drawer.js ***!
94 + \**********************************************************************/
95 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
96 +
97 +"use strict";
98 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
99 +
100 +
101 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
102 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
103 +Object.defineProperty(exports, "__esModule", ({
104 + value: true
105 +}));
106 +exports.EditorDrawer = void 0;
107 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
108 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
109 +var _whatsNew = __webpack_require__(/*! ./whats-new */ "../modules/notifications/assets/js/components/whats-new.js");
110 +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); }
111 +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; }
112 +var EditorDrawer = function EditorDrawer(_ref) {
113 + var _ref$anchorPosition = _ref.anchorPosition,
114 + anchorPosition = _ref$anchorPosition === void 0 ? 'left' : _ref$anchorPosition;
115 + var _useState = (0, _react.useState)(true),
116 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
117 + isOpen = _useState2[0],
118 + setIsOpen = _useState2[1];
119 + (0, _react.useEffect)(function () {
120 + elementor.on('elementor/editor/panel/whats-new/clicked', function () {
121 + return setIsOpen(true);
122 + });
123 + }, []);
124 + return /*#__PURE__*/_react.default.createElement(_whatsNew.WhatsNew, {
125 + isOpen: isOpen,
126 + setIsOpen: setIsOpen,
127 + setIsRead: function setIsRead() {
128 + return document.body.classList.remove('e-has-notification');
129 + },
130 + anchorPosition: anchorPosition
131 + });
132 +};
133 +exports.EditorDrawer = EditorDrawer;
134 +EditorDrawer.propTypes = {
135 + anchorPosition: PropTypes.oneOf(['left', 'top', 'right', 'bottom'])
136 +};
137 +
138 +/***/ }),
139 +
140 +/***/ "../modules/notifications/assets/js/components/editor-on-button-clicked.js":
141 +/*!*********************************************************************************!*\
142 + !*** ../modules/notifications/assets/js/components/editor-on-button-clicked.js ***!
143 + \*********************************************************************************/
144 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
145 +
146 +"use strict";
147 +/* provided dependency */ var ReactDOM = __webpack_require__(/*! react-dom */ "react-dom");
148 +
149 +
150 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
151 +Object.defineProperty(exports, "__esModule", ({
152 + value: true
153 +}));
154 +exports.editorOnButtonClicked = void 0;
155 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
156 +var _editorDrawer = __webpack_require__(/*! ./editor-drawer */ "../modules/notifications/assets/js/components/editor-drawer.js");
157 +var isRendered = false;
158 +var editorOnButtonClicked = function editorOnButtonClicked() {
159 + var anchorPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'left';
160 + if (!isRendered) {
161 + isRendered = true;
162 + var container = document.createElement('div');
163 + document.body.append(container);
164 + ReactDOM.render( /*#__PURE__*/_react.default.createElement(_editorDrawer.EditorDrawer, {
165 + anchorPosition: anchorPosition
166 + }), container);
167 + return;
168 + }
169 + elementor.trigger('elementor/editor/panel/whats-new/clicked');
170 +};
171 +exports.editorOnButtonClicked = editorOnButtonClicked;
172 +
173 +/***/ }),
174 +
175 +/***/ "../modules/notifications/assets/js/components/editor-v1.js":
176 +/*!******************************************************************!*\
177 + !*** ../modules/notifications/assets/js/components/editor-v1.js ***!
178 + \******************************************************************/
179 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
180 +
181 +"use strict";
182 +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
183 +
184 +
185 +Object.defineProperty(exports, "__esModule", ({
186 + value: true
187 +}));
188 +exports.editorV1 = void 0;
189 +var _editorOnButtonClicked = __webpack_require__(/*! ./editor-on-button-clicked */ "../modules/notifications/assets/js/components/editor-on-button-clicked.js");
190 +var editorV1 = function editorV1() {
191 + elementor.on('panel:init', function () {
192 + if (elementorNotifications.is_unread) {
193 + document.body.classList.add('e-has-notification');
194 + }
195 + elementor.getPanelView().getPages('menu').view.addItem({
196 + name: 'notification-center',
197 + icon: 'eicon-notification',
198 + title: __('What\'s New', 'elementor'),
199 + callback: _editorOnButtonClicked.editorOnButtonClicked
200 + }, 'navigate_from_page', 'view-page');
201 + });
202 +};
203 +exports.editorV1 = editorV1;
204 +
205 +/***/ }),
206 +
207 +/***/ "../modules/notifications/assets/js/components/editor-v2.js":
208 +/*!******************************************************************!*\
209 + !*** ../modules/notifications/assets/js/components/editor-v2.js ***!
210 + \******************************************************************/
211 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
212 +
213 +"use strict";
214 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
215 +
216 +
217 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
218 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
219 +Object.defineProperty(exports, "__esModule", ({
220 + value: true
221 +}));
222 +exports.editorV2 = void 0;
223 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
224 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
225 +var _giftIcon = __webpack_require__(/*! ../icons/gift-icon */ "../modules/notifications/assets/js/icons/gift-icon.js");
226 +var _editorOnButtonClicked = __webpack_require__(/*! ./editor-on-button-clicked */ "../modules/notifications/assets/js/components/editor-on-button-clicked.js");
227 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
228 +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
229 +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); }
230 +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; }
231 +var IconWithBadge = function IconWithBadge(_ref) {
232 + var invisible = _ref.invisible;
233 + return /*#__PURE__*/_react.default.createElement(_ui.Badge, {
234 + color: "primary",
235 + variant: "dot",
236 + invisible: invisible
237 + }, /*#__PURE__*/_react.default.createElement(_giftIcon.GiftIcon, null));
238 +};
239 +IconWithBadge.propTypes = {
240 + invisible: PropTypes.bool
241 +};
242 +var editorV2 = function editorV2() {
243 + var utilitiesMenu = window.elementorV2.editorAppBar.utilitiesMenu;
244 + utilitiesMenu.registerLink({
245 + id: 'app-bar-menu-item-whats-new',
246 + priority: 25,
247 + useProps: function useProps() {
248 + var _useState = (0, _react.useState)(!elementorNotifications.is_unread),
249 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
250 + isRead = _useState2[0],
251 + setIsRead = _useState2[1];
252 + return {
253 + title: (0, _i18n.__)("What's New", 'elementor'),
254 + icon: function icon() {
255 + return /*#__PURE__*/_react.default.createElement(IconWithBadge, {
256 + invisible: isRead
257 + });
258 + },
259 + onClick: function onClick() {
260 + setIsRead(true);
261 + elementorNotifications.is_unread = false;
262 + (0, _editorOnButtonClicked.editorOnButtonClicked)('right');
263 + }
264 + };
265 + }
266 + });
267 +};
268 +exports.editorV2 = editorV2;
269 +
270 +/***/ }),
271 +
272 +/***/ "../modules/notifications/assets/js/components/whats-new-drawer-content.js":
273 +/*!*********************************************************************************!*\
274 + !*** ../modules/notifications/assets/js/components/whats-new-drawer-content.js ***!
275 + \*********************************************************************************/
276 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
277 +
278 +"use strict";
279 +
280 +
281 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
282 +Object.defineProperty(exports, "__esModule", ({
283 + value: true
284 +}));
285 +exports.WhatsNewDrawerContent = void 0;
286 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
287 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
288 +var _api = __webpack_require__(/*! ../api */ "../modules/notifications/assets/js/api/index.js");
289 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
290 +var _whatsNewItem = __webpack_require__(/*! ./whats-new-item */ "../modules/notifications/assets/js/components/whats-new-item.js");
291 +var WhatsNewDrawerContent = function WhatsNewDrawerContent() {
292 + var _useQuery = (0, _query.useQuery)({
293 + queryKey: ['e-notifications'],
294 + queryFn: _api.getNotifications
295 + }),
296 + isPending = _useQuery.isPending,
297 + error = _useQuery.error,
298 + items = _useQuery.data;
299 + if (isPending) {
300 + return /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.LinearProgress, {
301 + color: "secondary"
302 + }));
303 + }
304 + if (error) {
305 + return /*#__PURE__*/_react.default.createElement(_ui.Box, null, "An error has occurred: ", error);
306 + }
307 + return items.map(function (item, itemIndex) {
308 + return /*#__PURE__*/_react.default.createElement(_whatsNewItem.WhatsNewItem, {
309 + key: itemIndex,
310 + item: item,
311 + itemIndex: itemIndex,
312 + itemsLength: items.length
313 + });
314 + });
315 +};
316 +exports.WhatsNewDrawerContent = WhatsNewDrawerContent;
317 +
318 +/***/ }),
319 +
320 +/***/ "../modules/notifications/assets/js/components/whats-new-item-chips.js":
321 +/*!*****************************************************************************!*\
322 + !*** ../modules/notifications/assets/js/components/whats-new-item-chips.js ***!
323 + \*****************************************************************************/
324 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
325 +
326 +"use strict";
327 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
328 +
329 +
330 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
331 +Object.defineProperty(exports, "__esModule", ({
332 + value: true
333 +}));
334 +exports.WhatsNewItemChips = void 0;
335 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
336 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
337 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
338 +var WhatsNewItemChips = function WhatsNewItemChips(_ref) {
339 + var chipPlan = _ref.chipPlan,
340 + chipTags = _ref.chipTags,
341 + itemIndex = _ref.itemIndex;
342 + var chips = [];
343 + if (chipPlan) {
344 + chips.push({
345 + color: 'promotion',
346 + size: 'small',
347 + label: chipPlan
348 + });
349 + }
350 + if (chipTags) {
351 + chipTags.forEach(function (chipTag) {
352 + chips.push({
353 + variant: 'outlined',
354 + size: 'small',
355 + label: chipTag
356 + });
357 + });
358 + }
359 + if (!chips.length) {
360 + return null;
361 + }
362 + return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
363 + direction: "row",
364 + flexWrap: "wrap",
365 + gap: 1,
366 + sx: {
367 + pb: 1
368 + }
369 + }, chips.map(function (chip, chipIndex) {
370 + return /*#__PURE__*/_react.default.createElement(_ui.Chip, (0, _extends2.default)({
371 + key: "chip-".concat(itemIndex).concat(chipIndex)
372 + }, chip));
373 + }));
374 +};
375 +exports.WhatsNewItemChips = WhatsNewItemChips;
376 +WhatsNewItemChips.propTypes = {
377 + chipPlan: PropTypes.string,
378 + chipTags: PropTypes.array,
379 + itemIndex: PropTypes.number.isRequired
380 +};
381 +
382 +/***/ }),
383 +
384 +/***/ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js":
385 +/*!*********************************************************************************!*\
386 + !*** ../modules/notifications/assets/js/components/whats-new-item-thumbnail.js ***!
387 + \*********************************************************************************/
388 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
389 +
390 +"use strict";
391 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
392 +
393 +
394 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
395 +Object.defineProperty(exports, "__esModule", ({
396 + value: true
397 +}));
398 +exports.WhatsNewItemThumbnail = void 0;
399 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
400 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
401 +var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
402 +var WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
403 + var imageSrc = _ref.imageSrc,
404 + title = _ref.title,
405 + link = _ref.link;
406 + return /*#__PURE__*/_react.default.createElement(_ui.Box, {
407 + sx: {
408 + pb: 2
409 + }
410 + }, /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
411 + link: link
412 + }, /*#__PURE__*/_react.default.createElement("img", {
413 + src: imageSrc,
414 + alt: title,
415 + style: {
416 + maxWidth: '100%'
417 + }
418 + })));
419 +};
420 +exports.WhatsNewItemThumbnail = WhatsNewItemThumbnail;
421 +WhatsNewItemThumbnail.propTypes = {
422 + imageSrc: PropTypes.string.isRequired,
423 + title: PropTypes.string.isRequired,
424 + link: PropTypes.string
425 +};
426 +
427 +/***/ }),
428 +
429 +/***/ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js":
430 +/*!**********************************************************************************!*\
431 + !*** ../modules/notifications/assets/js/components/whats-new-item-topic-line.js ***!
432 + \**********************************************************************************/
433 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
434 +
435 +"use strict";
436 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
437 +
438 +
439 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
440 +Object.defineProperty(exports, "__esModule", ({
441 + value: true
442 +}));
443 +exports.WhatsNewItemTopicLine = void 0;
444 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
445 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
446 +var WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
447 + var topic = _ref.topic,
448 + date = _ref.date;
449 + return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
450 + direction: "row",
451 + divider: /*#__PURE__*/_react.default.createElement(_ui.Divider, {
452 + orientation: "vertical",
453 + flexItem: true
454 + }),
455 + spacing: 1,
456 + color: "text.tertiary",
457 + sx: {
458 + pb: 1
459 + }
460 + }, topic && /*#__PURE__*/_react.default.createElement(_ui.Box, null, topic), date && /*#__PURE__*/_react.default.createElement(_ui.Box, null, date));
461 +};
462 +exports.WhatsNewItemTopicLine = WhatsNewItemTopicLine;
463 +WhatsNewItemTopicLine.propTypes = {
464 + topic: PropTypes.string,
465 + date: PropTypes.string
466 +};
467 +
468 +/***/ }),
469 +
470 +/***/ "../modules/notifications/assets/js/components/whats-new-item.js":
471 +/*!***********************************************************************!*\
472 + !*** ../modules/notifications/assets/js/components/whats-new-item.js ***!
473 + \***********************************************************************/
474 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
475 +
476 +"use strict";
477 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
478 +
479 +
480 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
481 +Object.defineProperty(exports, "__esModule", ({
482 + value: true
483 +}));
484 +exports.WhatsNewItem = void 0;
485 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
486 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
487 +var _whatsNewItemTopicLine = __webpack_require__(/*! ./whats-new-item-topic-line */ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js");
488 +var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
489 +var _whatsNewItemThumbnail = __webpack_require__(/*! ./whats-new-item-thumbnail */ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js");
490 +var _whatsNewItemChips = __webpack_require__(/*! ./whats-new-item-chips */ "../modules/notifications/assets/js/components/whats-new-item-chips.js");
491 +var WhatsNewItem = function WhatsNewItem(_ref) {
492 + var item = _ref.item,
493 + itemIndex = _ref.itemIndex,
494 + itemsLength = _ref.itemsLength;
495 + return /*#__PURE__*/_react.default.createElement(_ui.Box, {
496 + key: itemIndex,
497 + display: "flex",
498 + flexDirection: "column",
499 + sx: {
500 + pt: 2
501 + }
502 + }, (item.topic || item.date) && /*#__PURE__*/_react.default.createElement(_whatsNewItemTopicLine.WhatsNewItemTopicLine, {
503 + topic: item.topic,
504 + date: item.date
505 + }), /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
506 + link: item.link
507 + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
508 + variant: "subtitle1",
509 + sx: {
510 + pb: 2
511 + }
512 + }, item.title)), item.imageSrc && /*#__PURE__*/_react.default.createElement(_whatsNewItemThumbnail.WhatsNewItemThumbnail, {
513 + imageSrc: item.imageSrc,
514 + link: item.link,
515 + title: item.title
516 + }), /*#__PURE__*/_react.default.createElement(_whatsNewItemChips.WhatsNewItemChips, {
517 + chipPlan: item.chipPlan,
518 + chipTags: item.chipTags,
519 + itemIndex: itemIndex
520 + }), item.description && /*#__PURE__*/_react.default.createElement(_ui.Typography, {
521 + variant: "body2",
522 + color: "text.secondary",
523 + sx: {
524 + pb: 2
525 + }
526 + }, item.description, item.readMoreText && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ' ', /*#__PURE__*/_react.default.createElement(_ui.Link, {
527 + href: item.link,
528 + color: "info.main",
529 + target: "_blank"
530 + }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/_react.default.createElement(_ui.Box, {
531 + sx: {
532 + pb: 2
533 + }
534 + }, /*#__PURE__*/_react.default.createElement(_ui.Button, {
535 + href: item.ctaLink,
536 + target: "_blank",
537 + variant: "contained",
538 + size: "small",
539 + color: "promotion"
540 + }, item.cta)), itemIndex !== itemsLength - 1 && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
541 + sx: {
542 + my: 1
543 + }
544 + }));
545 +};
546 +exports.WhatsNewItem = WhatsNewItem;
547 +WhatsNewItem.propTypes = {
548 + item: PropTypes.object.isRequired,
549 + itemIndex: PropTypes.number.isRequired,
550 + itemsLength: PropTypes.number.isRequired
551 +};
552 +
553 +/***/ }),
554 +
555 +/***/ "../modules/notifications/assets/js/components/whats-new-top-bar.js":
556 +/*!**************************************************************************!*\
557 + !*** ../modules/notifications/assets/js/components/whats-new-top-bar.js ***!
558 + \**************************************************************************/
559 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
560 +
561 +"use strict";
562 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
563 +
564 +
565 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
566 +Object.defineProperty(exports, "__esModule", ({
567 + value: true
568 +}));
569 +exports.WhatsNewTopBar = void 0;
570 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
571 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
572 +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
573 +var _xIcon = __webpack_require__(/*! ../icons/x-icon */ "../modules/notifications/assets/js/icons/x-icon.js");
574 +var WhatsNewTopBar = function WhatsNewTopBar(props) {
575 + var setIsOpen = props.setIsOpen;
576 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.AppBar, {
577 + elevation: 0,
578 + position: "sticky",
579 + sx: {
580 + backgroundColor: 'background.default'
581 + }
582 + }, /*#__PURE__*/_react.default.createElement(_ui.Toolbar, {
583 + variant: "dense"
584 + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
585 + variant: "overline",
586 + sx: {
587 + flexGrow: 1
588 + }
589 + }, (0, _i18n.__)('What\'s New', 'elementor')), /*#__PURE__*/_react.default.createElement(_ui.IconButton, {
590 + "aria-label": 'close',
591 + size: "small",
592 + onClick: function onClick() {
593 + return setIsOpen(false);
594 + }
595 + }, /*#__PURE__*/_react.default.createElement(_xIcon.XIcon, null)))), /*#__PURE__*/_react.default.createElement(_ui.Divider, null));
596 +};
597 +exports.WhatsNewTopBar = WhatsNewTopBar;
598 +WhatsNewTopBar.propTypes = {
599 + setIsOpen: PropTypes.func.isRequired
600 +};
601 +
602 +/***/ }),
603 +
604 +/***/ "../modules/notifications/assets/js/components/whats-new.js":
605 +/*!******************************************************************!*\
606 + !*** ../modules/notifications/assets/js/components/whats-new.js ***!
607 + \******************************************************************/
608 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
609 +
610 +"use strict";
611 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
612 +
613 +
614 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
615 +Object.defineProperty(exports, "__esModule", ({
616 + value: true
617 +}));
618 +exports.WhatsNew = void 0;
619 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
620 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
621 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
622 +var _whatsNewTopBar = __webpack_require__(/*! ./whats-new-top-bar */ "../modules/notifications/assets/js/components/whats-new-top-bar.js");
623 +var _whatsNewDrawerContent = __webpack_require__(/*! ./whats-new-drawer-content */ "../modules/notifications/assets/js/components/whats-new-drawer-content.js");
624 +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); }
625 +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; }
626 +var queryClient = new _query.QueryClient({
627 + defaultOptions: {
628 + queries: {
629 + refetchOnWindowFocus: false,
630 + retry: false,
631 + staleTime: 1000 * 60 * 30 // 30 minutes
632 + }
633 + }
634 +});
635 +
636 +var WhatsNew = function WhatsNew(props) {
637 + var _window$elementor, _window$elementor$get;
638 + var isOpen = props.isOpen,
639 + setIsOpen = props.setIsOpen,
640 + setIsRead = props.setIsRead,
641 + _props$anchorPosition = props.anchorPosition,
642 + anchorPosition = _props$anchorPosition === void 0 ? 'right' : _props$anchorPosition;
643 + (0, _react.useEffect)(function () {
644 + if (!isOpen) {
645 + return;
646 + }
647 + setIsRead(true);
648 + }, [isOpen, setIsRead]);
649 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_query.QueryClientProvider, {
650 + client: queryClient
651 + }, /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
652 + rtl: elementorCommon.config.isRTL
653 + }, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
654 + colorScheme: ((_window$elementor = window.elementor) === null || _window$elementor === void 0 ? void 0 : (_window$elementor$get = _window$elementor.getPreferences) === null || _window$elementor$get === void 0 ? void 0 : _window$elementor$get.call(_window$elementor, 'ui_theme')) || 'auto'
655 + }, /*#__PURE__*/_react.default.createElement(_ui.Drawer, {
656 + anchor: anchorPosition,
657 + open: isOpen,
658 + onClose: function onClose() {
659 + return setIsOpen(false);
660 + },
661 + ModalProps: {
662 + style: {
663 + // Above the WordPress Admin Top Bar.
664 + zIndex: 999999
665 + }
666 + }
667 + }, /*#__PURE__*/_react.default.createElement(_ui.Box, {
668 + sx: {
669 + width: 320,
670 + backgroundColor: 'background.default'
671 + },
672 + role: "presentation"
673 + }, /*#__PURE__*/_react.default.createElement(_whatsNewTopBar.WhatsNewTopBar, {
674 + setIsOpen: setIsOpen
675 + }), /*#__PURE__*/_react.default.createElement(_ui.Box, {
676 + sx: {
677 + padding: '16px'
678 + }
679 + }, /*#__PURE__*/_react.default.createElement(_whatsNewDrawerContent.WhatsNewDrawerContent, null))))))));
680 +};
681 +exports.WhatsNew = WhatsNew;
682 +WhatsNew.propTypes = {
683 + isOpen: PropTypes.bool.isRequired,
684 + setIsOpen: PropTypes.func.isRequired,
685 + setIsRead: PropTypes.func.isRequired,
686 + anchorPosition: PropTypes.oneOf(['left', 'top', 'right', 'bottom'])
687 +};
688 +
689 +/***/ }),
690 +
691 +/***/ "../modules/notifications/assets/js/components/wrapper-with-link.js":
692 +/*!**************************************************************************!*\
693 + !*** ../modules/notifications/assets/js/components/wrapper-with-link.js ***!
694 + \**************************************************************************/
695 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
696 +
697 +"use strict";
698 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
699 +
700 +
701 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
702 +Object.defineProperty(exports, "__esModule", ({
703 + value: true
704 +}));
705 +exports.WrapperWithLink = void 0;
706 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
707 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
708 +var WrapperWithLink = function WrapperWithLink(props) {
709 + var link = props.link,
710 + children = props.children;
711 + if (!link) {
712 + return children;
713 + }
714 + return /*#__PURE__*/_react.default.createElement(_ui.Link, {
715 + href: link,
716 + target: "_blank",
717 + underline: "none",
718 + color: "inherit",
719 + sx: {
720 + '&:hover': {
721 + color: 'inherit'
722 + }
723 + }
724 + }, children);
725 +};
726 +exports.WrapperWithLink = WrapperWithLink;
727 +WrapperWithLink.propTypes = {
728 + link: PropTypes.string,
729 + children: PropTypes.any.isRequired
730 +};
731 +
732 +/***/ }),
733 +
734 +/***/ "../modules/notifications/assets/js/icons/gift-icon.js":
735 +/*!*************************************************************!*\
736 + !*** ../modules/notifications/assets/js/icons/gift-icon.js ***!
737 + \*************************************************************/
738 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
739 +
740 +"use strict";
741 +
742 +
743 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
744 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
745 +Object.defineProperty(exports, "__esModule", ({
746 + value: true
747 +}));
748 +exports.GiftIcon = void 0;
749 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
750 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
751 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
752 +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); }
753 +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; }
754 +var GiftIcon = (0, _react.forwardRef)(function (props, ref) {
755 + return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
756 + viewBox: "0 0 24 24"
757 + }, props, {
758 + ref: ref
759 + }), /*#__PURE__*/_react.default.createElement("path", {
760 + fillRule: "evenodd",
761 + clipRule: "evenodd",
762 + d: "M9.65527 4.84484C8.95951 4.07178 8.20923 3.73771 7.51306 3.74984L7.5 3.75007C7.03587 3.75007 6.59075 3.93433 6.26256 4.26252C5.93437 4.59071 5.75 5.03583 5.75 5.49995C5.75 5.96408 5.93437 6.4092 6.26256 6.73739C6.59075 7.06558 7.03587 7.24995 7.5 7.24995C7.50295 7.24995 7.5059 7.24997 7.50884 7.25001H11.0002C10.6592 6.26394 10.1939 5.44328 9.65527 4.84484ZM11.25 8.75001V11.25H4C3.86193 11.25 3.75 11.1381 3.75 11V9.00001C3.75 8.86193 3.86193 8.75001 4 8.75001H11.25ZM4.25 12.75H4C3.0335 12.75 2.25 11.9665 2.25 11V9.00001C2.25 8.03351 3.0335 7.25001 4 7.25001H4.76141C4.43004 6.73144 4.25 6.12498 4.25 5.49995C4.25 4.638 4.59241 3.81135 5.2019 3.20186C5.80984 2.59392 6.63384 2.2517 7.49342 2.24996C8.72414 2.23069 9.86213 2.83242 10.7702 3.84139C11.2484 4.37275 11.6608 5.01284 12 5.73103C12.3392 5.01284 12.7516 4.37275 13.2298 3.84139C14.1379 2.83242 15.2759 2.23069 16.5066 2.24996C17.3662 2.2517 18.1902 2.59392 18.7981 3.20186C19.4076 3.81135 19.75 4.638 19.75 5.49995C19.75 6.12498 19.57 6.73144 19.2386 7.25001H20C20.9665 7.25001 21.75 8.03351 21.75 9.00001V11C21.75 11.9665 20.9665 12.75 20 12.75H19.75V19C19.75 19.7294 19.4603 20.4288 18.9445 20.9445C18.4288 21.4603 17.7293 21.75 17 21.75H7C6.27065 21.75 5.57118 21.4603 5.05546 20.9445C4.53973 20.4288 4.25 19.7294 4.25 19V12.75ZM11.25 20.25H7C6.66848 20.25 6.35054 20.1183 6.11612 19.8839C5.8817 19.6495 5.75 19.3315 5.75 19V12.75H11.25V20.25ZM12.75 20.25H17C17.3315 20.25 17.6495 20.1183 17.8839 19.8839C18.1183 19.6495 18.25 19.3315 18.25 19V12.75H12.75V20.25ZM12.75 11.25V8.75001H20C20.1381 8.75001 20.25 8.86193 20.25 9.00001V11C20.25 11.1381 20.1381 11.25 20 11.25H12.75ZM16.4912 7.25001C16.4941 7.24997 16.497 7.24995 16.5 7.24995C16.9641 7.24995 17.4092 7.06558 17.7374 6.73739C18.0656 6.4092 18.25 5.96408 18.25 5.49995C18.25 5.03583 18.0656 4.59071 17.7374 4.26252C17.4092 3.93433 16.9641 3.74995 16.5 3.74995H16.4869C15.7908 3.73783 15.0405 4.07178 14.3447 4.84484C13.8061 5.44328 13.3408 6.26394 12.9998 7.25001H16.4912Z"
763 + }));
764 +});
765 +exports.GiftIcon = GiftIcon;
766 +
767 +/***/ }),
768 +
769 +/***/ "../modules/notifications/assets/js/icons/x-icon.js":
770 +/*!**********************************************************!*\
771 + !*** ../modules/notifications/assets/js/icons/x-icon.js ***!
772 + \**********************************************************/
773 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
774 +
775 +"use strict";
776 +
777 +
778 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
779 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
780 +Object.defineProperty(exports, "__esModule", ({
781 + value: true
782 +}));
783 +exports.XIcon = void 0;
784 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
785 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
786 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
787 +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); }
788 +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; }
789 +var XIcon = (0, _react.forwardRef)(function (props, ref) {
790 + return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
791 + viewBox: "0 0 24 24"
792 + }, props, {
793 + ref: ref
794 + }), /*#__PURE__*/_react.default.createElement("path", {
795 + fillRule: "evenodd",
796 + clipRule: "evenodd",
797 + d: "M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"
798 + }), /*#__PURE__*/_react.default.createElement("path", {
799 + fillRule: "evenodd",
800 + clipRule: "evenodd",
801 + d: "M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"
802 + }));
803 +});
804 +exports.XIcon = XIcon;
805 +
806 +/***/ }),
807 +
808 +/***/ "../node_modules/object-assign/index.js":
809 +/*!**********************************************!*\
810 + !*** ../node_modules/object-assign/index.js ***!
811 + \**********************************************/
812 +/***/ ((module) => {
813 +
814 +"use strict";
815 +/*
816 +object-assign
817 +(c) Sindre Sorhus
818 +@license MIT
819 +*/
820 +
821 +
822 +/* eslint-disable no-unused-vars */
823 +var getOwnPropertySymbols = Object.getOwnPropertySymbols;
824 +var hasOwnProperty = Object.prototype.hasOwnProperty;
825 +var propIsEnumerable = Object.prototype.propertyIsEnumerable;
826 +
827 +function toObject(val) {
828 + if (val === null || val === undefined) {
829 + throw new TypeError('Object.assign cannot be called with null or undefined');
830 + }
831 +
832 + return Object(val);
833 +}
834 +
835 +function shouldUseNative() {
836 + try {
837 + if (!Object.assign) {
838 + return false;
26 839 }
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 840
34 -//#endregion
35 -react = __toESM(react);
36 -react_dom = __toESM(react_dom);
37 -_elementor_editor_app_bar = __toESM(_elementor_editor_app_bar);
38 -_elementor_icons_SpeakerphoneIcon = __toESM(_elementor_icons_SpeakerphoneIcon);
841 + // Detect buggy property enumeration order in older V8 versions.
39 842
40 -//#region node_modules/react-dom/client.js
41 - var require_client = /* @__PURE__ */ __commonJSMin(((exports) => {
42 - var m = (globalThis.ReactDOM);
43 - var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
44 - exports.createRoot = function(c, o) {
45 - i.usingClientEntryPoint = true;
46 - try {
47 - return m.createRoot(c, o);
48 - } finally {
49 - i.usingClientEntryPoint = false;
50 - }
51 - };
52 - }));
843 + // https://bugs.chromium.org/p/v8/issues/detail?id=4118
844 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
845 + test1[5] = 'de';
846 + if (Object.getOwnPropertyNames(test1)[0] === '5') {
847 + return false;
848 + }
53 849
54 -//#endregion
55 -//#region assets/dev/js/utils/react.js
56 - var import_client = require_client();
57 - /**
58 - * Support conditional rendering of a React App to the DOM, based on the React version.
59 - * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
60 - *
61 - * @param {Promise.resolve(React).ReactElement} app The app to render.
62 - * @param {HTMLElement} domElement The DOM element to render the app into.
63 - *
64 - * @return {{ unmount: () => void }} The unmount function.
65 - */
66 - function render(app, domElement) {
67 - var unmountFunction;
68 - try {
69 - var root = (0, import_client.createRoot)(domElement);
70 - root.render(app);
71 - unmountFunction = function unmountFunction() {
72 - root.unmount();
73 - };
74 - } catch (e) {
75 - react_dom.render(app, domElement);
76 - unmountFunction = function unmountFunction() {
77 - react_dom.unmountComponentAtNode(domElement);
78 - };
850 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
851 + var test2 = {};
852 + for (var i = 0; i < 10; i++) {
853 + test2['_' + String.fromCharCode(i)] = i;
79 854 }
80 - return { unmount: unmountFunction };
855 + var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
856 + return test2[n];
857 + });
858 + if (order2.join('') !== '0123456789') {
859 + return false;
860 + }
861 +
862 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
863 + var test3 = {};
864 + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
865 + test3[letter] = letter;
866 + });
867 + if (Object.keys(Object.assign({}, test3)).join('') !==
868 + 'abcdefghijklmnopqrst') {
869 + return false;
870 + }
871 +
872 + return true;
873 + } catch (err) {
874 + // We don't expect any of the above to throw, but better to be safe.
875 + return false;
81 876 }
82 - var react_default = { render };
877 +}
83 878
84 -//#endregion
85 -//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
86 -/** @license React v16.13.1
87 - * react-is.development.js
88 - *
89 - * Copyright (c) Facebook, Inc. and its affiliates.
90 - *
91 - * This source code is licensed under the MIT license found in the
92 - * LICENSE file in the root directory of this source tree.
93 - */
94 - var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
95 - (function() {
96 - "use strict";
97 - var hasSymbol = typeof Symbol === "function" && Symbol.for;
98 - var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
99 - var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
100 - var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
101 - var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
102 - var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
103 - var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
104 - var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
105 - var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
106 - var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
107 - var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
108 - var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
109 - var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
110 - var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
111 - var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
112 - var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
113 - var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
114 - var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
115 - var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
116 - function isValidElementType(type) {
117 - 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);
118 - }
119 - function typeOf(object) {
120 - if (typeof object === "object" && object !== null) {
121 - var $$typeof = object.$$typeof;
122 - switch ($$typeof) {
123 - case REACT_ELEMENT_TYPE:
124 - var type = object.type;
125 - switch (type) {
126 - case REACT_ASYNC_MODE_TYPE:
127 - case REACT_CONCURRENT_MODE_TYPE:
128 - case REACT_FRAGMENT_TYPE:
129 - case REACT_PROFILER_TYPE:
130 - case REACT_STRICT_MODE_TYPE:
131 - case REACT_SUSPENSE_TYPE: return type;
132 - default:
133 - var $$typeofType = type && type.$$typeof;
134 - switch ($$typeofType) {
135 - case REACT_CONTEXT_TYPE:
136 - case REACT_FORWARD_REF_TYPE:
137 - case REACT_LAZY_TYPE:
138 - case REACT_MEMO_TYPE:
139 - case REACT_PROVIDER_TYPE: return $$typeofType;
140 - default: return $$typeof;
141 - }
142 - }
143 - case REACT_PORTAL_TYPE: return $$typeof;
144 - }
145 - }
146 - }
147 - var AsyncMode = REACT_ASYNC_MODE_TYPE;
148 - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
149 - var ContextConsumer = REACT_CONTEXT_TYPE;
150 - var ContextProvider = REACT_PROVIDER_TYPE;
151 - var Element = REACT_ELEMENT_TYPE;
152 - var ForwardRef = REACT_FORWARD_REF_TYPE;
153 - var Fragment = REACT_FRAGMENT_TYPE;
154 - var Lazy = REACT_LAZY_TYPE;
155 - var Memo = REACT_MEMO_TYPE;
156 - var Portal = REACT_PORTAL_TYPE;
157 - var Profiler = REACT_PROFILER_TYPE;
158 - var StrictMode = REACT_STRICT_MODE_TYPE;
159 - var Suspense = REACT_SUSPENSE_TYPE;
160 - var hasWarnedAboutDeprecatedIsAsyncMode = false;
161 - function isAsyncMode(object) {
162 - if (!hasWarnedAboutDeprecatedIsAsyncMode) {
163 - hasWarnedAboutDeprecatedIsAsyncMode = true;
164 - 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.");
165 - }
166 - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
167 - }
168 - function isConcurrentMode(object) {
169 - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
170 - }
171 - function isContextConsumer(object) {
172 - return typeOf(object) === REACT_CONTEXT_TYPE;
173 - }
174 - function isContextProvider(object) {
175 - return typeOf(object) === REACT_PROVIDER_TYPE;
176 - }
177 - function isElement(object) {
178 - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
179 - }
180 - function isForwardRef(object) {
181 - return typeOf(object) === REACT_FORWARD_REF_TYPE;
182 - }
183 - function isFragment(object) {
184 - return typeOf(object) === REACT_FRAGMENT_TYPE;
185 - }
186 - function isLazy(object) {
187 - return typeOf(object) === REACT_LAZY_TYPE;
188 - }
189 - function isMemo(object) {
190 - return typeOf(object) === REACT_MEMO_TYPE;
191 - }
192 - function isPortal(object) {
193 - return typeOf(object) === REACT_PORTAL_TYPE;
194 - }
195 - function isProfiler(object) {
196 - return typeOf(object) === REACT_PROFILER_TYPE;
197 - }
198 - function isStrictMode(object) {
199 - return typeOf(object) === REACT_STRICT_MODE_TYPE;
200 - }
201 - function isSuspense(object) {
202 - return typeOf(object) === REACT_SUSPENSE_TYPE;
203 - }
204 - exports.AsyncMode = AsyncMode;
205 - exports.ConcurrentMode = ConcurrentMode;
206 - exports.ContextConsumer = ContextConsumer;
207 - exports.ContextProvider = ContextProvider;
208 - exports.Element = Element;
209 - exports.ForwardRef = ForwardRef;
210 - exports.Fragment = Fragment;
211 - exports.Lazy = Lazy;
212 - exports.Memo = Memo;
213 - exports.Portal = Portal;
214 - exports.Profiler = Profiler;
215 - exports.StrictMode = StrictMode;
216 - exports.Suspense = Suspense;
217 - exports.isAsyncMode = isAsyncMode;
218 - exports.isConcurrentMode = isConcurrentMode;
219 - exports.isContextConsumer = isContextConsumer;
220 - exports.isContextProvider = isContextProvider;
221 - exports.isElement = isElement;
222 - exports.isForwardRef = isForwardRef;
223 - exports.isFragment = isFragment;
224 - exports.isLazy = isLazy;
225 - exports.isMemo = isMemo;
226 - exports.isPortal = isPortal;
227 - exports.isProfiler = isProfiler;
228 - exports.isStrictMode = isStrictMode;
229 - exports.isSuspense = isSuspense;
230 - exports.isValidElementType = isValidElementType;
231 - exports.typeOf = typeOf;
232 - })();
233 - }));
879 +module.exports = shouldUseNative() ? Object.assign : function (target, source) {
880 + var from;
881 + var to = toObject(target);
882 + var symbols;
234 883
235 -//#endregion
236 -//#region node_modules/prop-types/node_modules/react-is/index.js
237 - var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
238 - module.exports = require_react_is_development();
239 - }));
884 + for (var s = 1; s < arguments.length; s++) {
885 + from = Object(arguments[s]);
240 886
241 -//#endregion
242 -//#region node_modules/object-assign/index.js
243 -/*
244 - object-assign
245 - (c) Sindre Sorhus
246 - @license MIT
247 - */
248 - var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
249 - var getOwnPropertySymbols = Object.getOwnPropertySymbols;
250 - var hasOwnProperty = Object.prototype.hasOwnProperty;
251 - var propIsEnumerable = Object.prototype.propertyIsEnumerable;
252 - function toObject(val) {
253 - if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined");
254 - return Object(val);
255 - }
256 - function shouldUseNative() {
257 - try {
258 - if (!Object.assign) return false;
259 - var test1 = /* @__PURE__ */ new String("abc");
260 - test1[5] = "de";
261 - if (Object.getOwnPropertyNames(test1)[0] === "5") return false;
262 - var test2 = {};
263 - for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i;
264 - if (Object.getOwnPropertyNames(test2).map(function(n) {
265 - return test2[n];
266 - }).join("") !== "0123456789") return false;
267 - var test3 = {};
268 - "abcdefghijklmnopqrst".split("").forEach(function(letter) {
269 - test3[letter] = letter;
270 - });
271 - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false;
272 - return true;
273 - } catch (err) {
274 - return false;
887 + for (var key in from) {
888 + if (hasOwnProperty.call(from, key)) {
889 + to[key] = from[key];
275 890 }
276 891 }
277 - module.exports = shouldUseNative() ? Object.assign : function(target, source) {
278 - var from;
279 - var to = toObject(target);
280 - var symbols;
281 - for (var s = 1; s < arguments.length; s++) {
282 - from = Object(arguments[s]);
283 - for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key];
284 - if (getOwnPropertySymbols) {
285 - symbols = getOwnPropertySymbols(from);
286 - for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]];
892 +
893 + if (getOwnPropertySymbols) {
894 + symbols = getOwnPropertySymbols(from);
895 + for (var i = 0; i < symbols.length; i++) {
896 + if (propIsEnumerable.call(from, symbols[i])) {
897 + to[symbols[i]] = from[symbols[i]];
287 898 }
288 899 }
289 - return to;
290 - };
291 - }));
900 + }
901 + }
292 902
293 -//#endregion
294 -//#region node_modules/prop-types/lib/ReactPropTypesSecret.js
903 + return to;
904 +};
905 +
906 +
907 +/***/ }),
908 +
909 +/***/ "../node_modules/prop-types/checkPropTypes.js":
910 +/*!****************************************************!*\
911 + !*** ../node_modules/prop-types/checkPropTypes.js ***!
912 + \****************************************************/
913 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
914 +
915 +"use strict";
295 916 /**
296 - * Copyright (c) 2013-present, Facebook, Inc.
297 - *
298 - * This source code is licensed under the MIT license found in the
299 - * LICENSE file in the root directory of this source tree.
300 - */
301 - var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => {
302 - var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
303 - module.exports = ReactPropTypesSecret;
304 - }));
917 + * Copyright (c) 2013-present, Facebook, Inc.
918 + *
919 + * This source code is licensed under the MIT license found in the
920 + * LICENSE file in the root directory of this source tree.
921 + */
305 922
306 -//#endregion
307 -//#region node_modules/prop-types/lib/has.js
308 - var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => {
309 - module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
310 - }));
311 923
312 -//#endregion
313 -//#region node_modules/prop-types/checkPropTypes.js
924 +
925 +var printWarning = function() {};
926 +
927 +if (true) {
928 + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
929 + var loggedTypeFailures = {};
930 + var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
931 +
932 + printWarning = function(text) {
933 + var message = 'Warning: ' + text;
934 + if (typeof console !== 'undefined') {
935 + console.error(message);
936 + }
937 + try {
938 + // --- Welcome to debugging React ---
939 + // This error was thrown as a convenience so that you can use this stack
940 + // to find the callsite that caused this warning to fire.
941 + throw new Error(message);
942 + } catch (x) { /**/ }
943 + };
944 +}
945 +
314 946 /**
315 - * Copyright (c) 2013-present, Facebook, Inc.
316 - *
317 - * This source code is licensed under the MIT license found in the
318 - * LICENSE file in the root directory of this source tree.
319 - */
320 - var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
321 - var printWarning = function() {};
322 - var ReactPropTypesSecret = require_ReactPropTypesSecret();
323 - var loggedTypeFailures = {};
324 - var has = require_has();
325 - printWarning = function(text) {
326 - var message = "Warning: " + text;
327 - if (typeof console !== "undefined") console.error(message);
328 - try {
329 - throw new Error(message);
330 - } catch (x) {}
331 - };
332 - /**
333 - * Assert that the values match with the type specs.
334 - * Error messages are memorized and will only be shown once.
335 - *
336 - * @param {object} typeSpecs Map of name to a ReactPropType
337 - * @param {object} values Runtime values that need to be type-checked
338 - * @param {string} location e.g. "prop", "context", "child context"
339 - * @param {string} componentName Name of the component for error messages.
340 - * @param {?Function} getStack Returns the component stack.
341 - * @private
342 - */
343 - function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
344 - for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) {
345 - var error;
346 - try {
347 - if (typeof typeSpecs[typeSpecName] !== "function") {
348 - 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`.");
349 - err.name = "Invariant Violation";
350 - throw err;
351 - }
352 - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
353 - } catch (ex) {
354 - error = ex;
355 - }
356 - 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).");
357 - if (error instanceof Error && !(error.message in loggedTypeFailures)) {
358 - loggedTypeFailures[error.message] = true;
359 - var stack = getStack ? getStack() : "";
360 - printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
361 - }
362 - }
363 - }
364 - /**
365 - * Resets warning cache when testing.
366 - *
367 - * @private
368 - */
369 - checkPropTypes.resetWarningCache = function() {
370 - loggedTypeFailures = {};
371 - };
372 - module.exports = checkPropTypes;
373 - }));
947 + * Assert that the values match with the type specs.
948 + * Error messages are memorized and will only be shown once.
949 + *
950 + * @param {object} typeSpecs Map of name to a ReactPropType
951 + * @param {object} values Runtime values that need to be type-checked
952 + * @param {string} location e.g. "prop", "context", "child context"
953 + * @param {string} componentName Name of the component for error messages.
954 + * @param {?Function} getStack Returns the component stack.
955 + * @private
956 + */
957 +function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
958 + if (true) {
959 + for (var typeSpecName in typeSpecs) {
960 + if (has(typeSpecs, typeSpecName)) {
961 + var error;
962 + // Prop type validation may throw. In case they do, we don't want to
963 + // fail the render phase where it didn't fail before. So we log it.
964 + // After these have been cleaned up, we'll let them throw.
965 + try {
966 + // This is intentionally an invariant that gets caught. It's the same
967 + // behavior as without this statement except with a better message.
968 + if (typeof typeSpecs[typeSpecName] !== 'function') {
969 + var err = Error(
970 + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
971 + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
972 + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
973 + );
974 + err.name = 'Invariant Violation';
975 + throw err;
976 + }
977 + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
978 + } catch (ex) {
979 + error = ex;
980 + }
981 + if (error && !(error instanceof Error)) {
982 + printWarning(
983 + (componentName || 'React class') + ': type specification of ' +
984 + location + ' `' + typeSpecName + '` is invalid; the type checker ' +
985 + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
986 + 'You may have forgotten to pass an argument to the type checker ' +
987 + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
988 + 'shape all require an argument).'
989 + );
990 + }
991 + if (error instanceof Error && !(error.message in loggedTypeFailures)) {
992 + // Only monitor this failure once because there tends to be a lot of the
993 + // same error.
994 + loggedTypeFailures[error.message] = true;
374 995
375 -//#endregion
376 -//#region node_modules/prop-types/factoryWithTypeCheckers.js
996 + var stack = getStack ? getStack() : '';
997 +
998 + printWarning(
999 + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1000 + );
1001 + }
1002 + }
1003 + }
1004 + }
1005 +}
1006 +
377 1007 /**
378 - * Copyright (c) 2013-present, Facebook, Inc.
379 - *
380 - * This source code is licensed under the MIT license found in the
381 - * LICENSE file in the root directory of this source tree.
382 - */
383 - var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
384 - var ReactIs = require_react_is();
385 - var assign = require_object_assign();
386 - var ReactPropTypesSecret = require_ReactPropTypesSecret();
387 - var has = require_has();
388 - var checkPropTypes = require_checkPropTypes();
389 - var printWarning = function() {};
390 - printWarning = function(text) {
391 - var message = "Warning: " + text;
392 - if (typeof console !== "undefined") console.error(message);
393 - try {
394 - throw new Error(message);
395 - } catch (x) {}
396 - };
397 - function emptyFunctionThatReturnsNull() {
398 - return null;
399 - }
400 - module.exports = function(isValidElement, throwOnDirectAccess) {
401 - var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
402 - var FAUX_ITERATOR_SYMBOL = "@@iterator";
403 - /**
404 - * Returns the iterator method function contained on the iterable object.
405 - *
406 - * Be sure to invoke the function with the iterable as context:
407 - *
408 - * var iteratorFn = getIteratorFn(myIterable);
409 - * if (iteratorFn) {
410 - * var iterator = iteratorFn.call(myIterable);
411 - * ...
412 - * }
413 - *
414 - * @param {?object} maybeIterable
415 - * @return {?function}
416 - */
417 - function getIteratorFn(maybeIterable) {
418 - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
419 - if (typeof iteratorFn === "function") return iteratorFn;
420 - }
421 - /**
422 - * Collection of methods that allow declaration and validation of props that are
423 - * supplied to React components. Example usage:
424 - *
425 - * var Props = require('ReactPropTypes');
426 - * var MyArticle = React.createClass({
427 - * propTypes: {
428 - * // An optional string prop named "description".
429 - * description: Props.string,
430 - *
431 - * // A required enum prop named "category".
432 - * category: Props.oneOf(['News','Photos']).isRequired,
433 - *
434 - * // A prop named "dialog" that requires an instance of Dialog.
435 - * dialog: Props.instanceOf(Dialog).isRequired
436 - * },
437 - * render: function() { ... }
438 - * });
439 - *
440 - * A more formal specification of how these methods are used:
441 - *
442 - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
443 - * decl := ReactPropTypes.{type}(.isRequired)?
444 - *
445 - * Each and every declaration produces a function with the same signature. This
446 - * allows the creation of custom validation functions. For example:
447 - *
448 - * var MyLink = React.createClass({
449 - * propTypes: {
450 - * // An optional string or URI prop named "href".
451 - * href: function(props, propName, componentName) {
452 - * var propValue = props[propName];
453 - * if (propValue != null && typeof propValue !== 'string' &&
454 - * !(propValue instanceof URI)) {
455 - * return new Error(
456 - * 'Expected a string or an URI for ' + propName + ' in ' +
457 - * componentName
458 - * );
459 - * }
460 - * }
461 - * },
462 - * render: function() {...}
463 - * });
464 - *
465 - * @internal
466 - */
467 - var ANONYMOUS = "<<anonymous>>";
468 - var ReactPropTypes = {
469 - array: createPrimitiveTypeChecker("array"),
470 - bigint: createPrimitiveTypeChecker("bigint"),
471 - bool: createPrimitiveTypeChecker("boolean"),
472 - func: createPrimitiveTypeChecker("function"),
473 - number: createPrimitiveTypeChecker("number"),
474 - object: createPrimitiveTypeChecker("object"),
475 - string: createPrimitiveTypeChecker("string"),
476 - symbol: createPrimitiveTypeChecker("symbol"),
477 - any: createAnyTypeChecker(),
478 - arrayOf: createArrayOfTypeChecker,
479 - element: createElementTypeChecker(),
480 - elementType: createElementTypeTypeChecker(),
481 - instanceOf: createInstanceTypeChecker,
482 - node: createNodeChecker(),
483 - objectOf: createObjectOfTypeChecker,
484 - oneOf: createEnumTypeChecker,
485 - oneOfType: createUnionTypeChecker,
486 - shape: createShapeTypeChecker,
487 - exact: createStrictShapeTypeChecker
488 - };
489 - /**
490 - * inlined Object.is polyfill to avoid requiring consumers ship their own
491 - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
492 - */
493 - function is(x, y) {
494 - if (x === y) return x !== 0 || 1 / x === 1 / y;
495 - else return x !== x && y !== y;
496 - }
497 - /**
498 - * We use an Error-like object for backward compatibility as people may call
499 - * PropTypes directly and inspect their output. However, we don't use real
500 - * Errors anymore. We don't inspect their stack anyway, and creating them
501 - * is prohibitively expensive if they are created too often, such as what
502 - * happens in oneOfType() for any type before the one that matched.
503 - */
504 - function PropTypeError(message, data) {
505 - this.message = message;
506 - this.data = data && typeof data === "object" ? data : {};
507 - this.stack = "";
508 - }
509 - PropTypeError.prototype = Error.prototype;
510 - function createChainableTypeChecker(validate) {
511 - var manualPropTypeCallCache = {};
512 - var manualPropTypeWarningCount = 0;
513 - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
514 - componentName = componentName || ANONYMOUS;
515 - propFullName = propFullName || propName;
516 - if (secret !== ReactPropTypesSecret) {
517 - if (throwOnDirectAccess) {
518 - 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");
519 - err.name = "Invariant Violation";
520 - throw err;
521 - } else if (typeof console !== "undefined") {
522 - var cacheKey = componentName + ":" + propName;
523 - if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
524 - 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.");
525 - manualPropTypeCallCache[cacheKey] = true;
526 - manualPropTypeWarningCount++;
527 - }
528 - }
529 - }
530 - if (props[propName] == null) {
531 - if (isRequired) {
532 - if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
533 - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
534 - }
535 - return null;
536 - } else return validate(props, propName, componentName, location, propFullName);
537 - }
538 - var chainedCheckType = checkType.bind(null, false);
539 - chainedCheckType.isRequired = checkType.bind(null, true);
540 - return chainedCheckType;
541 - }
542 - function createPrimitiveTypeChecker(expectedType) {
543 - function validate(props, propName, componentName, location, propFullName, secret) {
544 - var propValue = props[propName];
545 - if (getPropType(propValue) !== expectedType) {
546 - var preciseType = getPreciseType(propValue);
547 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType });
548 - }
549 - return null;
550 - }
551 - return createChainableTypeChecker(validate);
552 - }
553 - function createAnyTypeChecker() {
554 - return createChainableTypeChecker(emptyFunctionThatReturnsNull);
555 - }
556 - function createArrayOfTypeChecker(typeChecker) {
557 - function validate(props, propName, componentName, location, propFullName) {
558 - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
559 - var propValue = props[propName];
560 - if (!Array.isArray(propValue)) {
561 - var propType = getPropType(propValue);
562 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
563 - }
564 - for (var i = 0; i < propValue.length; i++) {
565 - var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
566 - if (error instanceof Error) return error;
567 - }
568 - return null;
569 - }
570 - return createChainableTypeChecker(validate);
571 - }
572 - function createElementTypeChecker() {
573 - function validate(props, propName, componentName, location, propFullName) {
574 - var propValue = props[propName];
575 - if (!isValidElement(propValue)) {
576 - var propType = getPropType(propValue);
577 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
578 - }
579 - return null;
580 - }
581 - return createChainableTypeChecker(validate);
582 - }
583 - function createElementTypeTypeChecker() {
584 - function validate(props, propName, componentName, location, propFullName) {
585 - var propValue = props[propName];
586 - if (!ReactIs.isValidElementType(propValue)) {
587 - var propType = getPropType(propValue);
588 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
589 - }
590 - return null;
591 - }
592 - return createChainableTypeChecker(validate);
593 - }
594 - function createInstanceTypeChecker(expectedClass) {
595 - function validate(props, propName, componentName, location, propFullName) {
596 - if (!(props[propName] instanceof expectedClass)) {
597 - var expectedClassName = expectedClass.name || ANONYMOUS;
598 - var actualClassName = getClassName(props[propName]);
599 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
600 - }
601 - return null;
602 - }
603 - return createChainableTypeChecker(validate);
604 - }
605 - function createEnumTypeChecker(expectedValues) {
606 - if (!Array.isArray(expectedValues)) {
607 - 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]).");
608 - else printWarning("Invalid argument supplied to oneOf, expected an array.");
609 - return emptyFunctionThatReturnsNull;
610 - }
611 - function validate(props, propName, componentName, location, propFullName) {
612 - var propValue = props[propName];
613 - for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null;
614 - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
615 - if (getPreciseType(value) === "symbol") return String(value);
616 - return value;
617 - });
618 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
619 - }
620 - return createChainableTypeChecker(validate);
621 - }
622 - function createObjectOfTypeChecker(typeChecker) {
623 - function validate(props, propName, componentName, location, propFullName) {
624 - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
625 - var propValue = props[propName];
626 - var propType = getPropType(propValue);
627 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
628 - for (var key in propValue) if (has(propValue, key)) {
629 - var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
630 - if (error instanceof Error) return error;
631 - }
632 - return null;
633 - }
634 - return createChainableTypeChecker(validate);
635 - }
636 - function createUnionTypeChecker(arrayOfTypeCheckers) {
637 - if (!Array.isArray(arrayOfTypeCheckers)) {
638 - printWarning("Invalid argument supplied to oneOfType, expected an instance of array.");
639 - return emptyFunctionThatReturnsNull;
640 - }
641 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
642 - var checker = arrayOfTypeCheckers[i];
643 - if (typeof checker !== "function") {
644 - printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + ".");
645 - return emptyFunctionThatReturnsNull;
646 - }
647 - }
648 - function validate(props, propName, componentName, location, propFullName) {
649 - var expectedTypes = [];
650 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
651 - var checker = arrayOfTypeCheckers[i];
652 - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
653 - if (checkerResult == null) return null;
654 - if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType);
655 - }
656 - var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
657 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
658 - }
659 - return createChainableTypeChecker(validate);
660 - }
661 - function createNodeChecker() {
662 - function validate(props, propName, componentName, location, propFullName) {
663 - if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
664 - return null;
665 - }
666 - return createChainableTypeChecker(validate);
667 - }
668 - function invalidValidatorError(componentName, location, propFullName, key, type) {
669 - 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 + "`.");
670 - }
671 - function createShapeTypeChecker(shapeTypes) {
672 - function validate(props, propName, componentName, location, propFullName) {
673 - var propValue = props[propName];
674 - var propType = getPropType(propValue);
675 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
676 - for (var key in shapeTypes) {
677 - var checker = shapeTypes[key];
678 - if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
679 - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
680 - if (error) return error;
681 - }
682 - return null;
683 - }
684 - return createChainableTypeChecker(validate);
685 - }
686 - function createStrictShapeTypeChecker(shapeTypes) {
687 - function validate(props, propName, componentName, location, propFullName) {
688 - var propValue = props[propName];
689 - var propType = getPropType(propValue);
690 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
691 - for (var key in assign({}, props[propName], shapeTypes)) {
692 - var checker = shapeTypes[key];
693 - if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
694 - 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, " "));
695 - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
696 - if (error) return error;
697 - }
698 - return null;
699 - }
700 - return createChainableTypeChecker(validate);
701 - }
702 - function isNode(propValue) {
703 - switch (typeof propValue) {
704 - case "number":
705 - case "string":
706 - case "undefined": return true;
707 - case "boolean": return !propValue;
708 - case "object":
709 - if (Array.isArray(propValue)) return propValue.every(isNode);
710 - if (propValue === null || isValidElement(propValue)) return true;
711 - var iteratorFn = getIteratorFn(propValue);
712 - if (iteratorFn) {
713 - var iterator = iteratorFn.call(propValue);
714 - var step;
715 - if (iteratorFn !== propValue.entries) {
716 - while (!(step = iterator.next()).done) if (!isNode(step.value)) return false;
717 - } else while (!(step = iterator.next()).done) {
718 - var entry = step.value;
719 - if (entry) {
720 - if (!isNode(entry[1])) return false;
721 - }
722 - }
723 - } else return false;
724 - return true;
725 - default: return false;
726 - }
727 - }
728 - function isSymbol(propType, propValue) {
729 - if (propType === "symbol") return true;
730 - if (!propValue) return false;
731 - if (propValue["@@toStringTag"] === "Symbol") return true;
732 - if (typeof Symbol === "function" && propValue instanceof Symbol) return true;
733 - return false;
734 - }
735 - function getPropType(propValue) {
736 - var propType = typeof propValue;
737 - if (Array.isArray(propValue)) return "array";
738 - if (propValue instanceof RegExp) return "object";
739 - if (isSymbol(propType, propValue)) return "symbol";
740 - return propType;
741 - }
742 - function getPreciseType(propValue) {
743 - if (typeof propValue === "undefined" || propValue === null) return "" + propValue;
744 - var propType = getPropType(propValue);
745 - if (propType === "object") {
746 - if (propValue instanceof Date) return "date";
747 - else if (propValue instanceof RegExp) return "regexp";
748 - }
749 - return propType;
750 - }
751 - function getPostfixForTypeWarning(value) {
752 - var type = getPreciseType(value);
753 - switch (type) {
754 - case "array":
755 - case "object": return "an " + type;
756 - case "boolean":
757 - case "date":
758 - case "regexp": return "a " + type;
759 - default: return type;
760 - }
761 - }
762 - function getClassName(propValue) {
763 - if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS;
764 - return propValue.constructor.name;
765 - }
766 - ReactPropTypes.checkPropTypes = checkPropTypes;
767 - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
768 - ReactPropTypes.PropTypes = ReactPropTypes;
769 - return ReactPropTypes;
770 - };
771 - }));
1008 + * Resets warning cache when testing.
1009 + *
1010 + * @private
1011 + */
1012 +checkPropTypes.resetWarningCache = function() {
1013 + if (true) {
1014 + loggedTypeFailures = {};
1015 + }
1016 +}
772 1017
773 -//#endregion
774 -//#region node_modules/prop-types/index.js
775 - var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => {
776 - var ReactIs = require_react_is();
777 - var throwOnDirectAccess = true;
778 - module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
779 - }));
1018 +module.exports = checkPropTypes;
780 1019
781 -//#endregion
782 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
783 -var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types());
784 - function _arrayWithHoles(r) {
785 - if (Array.isArray(r)) return r;
786 - }
787 1020
788 -//#endregion
789 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
790 - function _iterableToArrayLimit(r, l) {
791 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
792 - if (null != t) {
793 - var e;
794 - var n;
795 - var i;
796 - var u;
797 - var a = [];
798 - var f = !0;
799 - var o = !1;
800 - try {
801 - if (i = (t = t.call(r)).next, 0 === l) {
802 - if (Object(t) !== t) return;
803 - f = !1;
804 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
805 - } catch (r) {
806 - o = !0, n = r;
807 - } finally {
808 - try {
809 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
810 - } finally {
811 - if (o) throw n;
812 - }
813 - }
814 - return a;
815 - }
816 - }
1021 +/***/ }),
817 1022
818 -//#endregion
819 -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
820 - function _arrayLikeToArray(r, a) {
821 - (null == a || a > r.length) && (a = r.length);
822 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
823 - return n;
824 - }
1023 +/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
1024 +/*!*************************************************************!*\
1025 + !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
1026 + \*************************************************************/
1027 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
825 1028
826 -//#endregion
827 -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
828 - function _unsupportedIterableToArray(r, a) {
829 - if (r) {
830 - if ("string" == typeof r) return _arrayLikeToArray(r, a);
831 - var t = {}.toString.call(r).slice(8, -1);
832 - 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;
833 - }
834 - }
1029 +"use strict";
1030 +/**
1031 + * Copyright (c) 2013-present, Facebook, Inc.
1032 + *
1033 + * This source code is licensed under the MIT license found in the
1034 + * LICENSE file in the root directory of this source tree.
1035 + */
835 1036
836 -//#endregion
837 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
838 - function _nonIterableRest() {
839 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
840 - }
841 1037
842 -//#endregion
843 -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js
844 - function _slicedToArray(r, e) {
845 - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
846 - }
847 1038
848 -//#endregion
849 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
850 - function _arrayWithoutHoles(r) {
851 - if (Array.isArray(r)) return _arrayLikeToArray(r);
852 - }
1039 +var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1040 +var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
853 1041
854 -//#endregion
855 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArray.js
856 - function _iterableToArray(r) {
857 - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
858 - }
1042 +var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
1043 +var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
1044 +var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
859 1045
860 -//#endregion
861 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
862 - function _nonIterableSpread() {
863 - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
864 - }
1046 +var printWarning = function() {};
865 1047
866 -//#endregion
867 -//#region node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
868 - function _toConsumableArray(r) {
869 - return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
870 - }
1048 +if (true) {
1049 + printWarning = function(text) {
1050 + var message = 'Warning: ' + text;
1051 + if (typeof console !== 'undefined') {
1052 + console.error(message);
1053 + }
1054 + try {
1055 + // --- Welcome to debugging React ---
1056 + // This error was thrown as a convenience so that you can use this stack
1057 + // to find the callsite that caused this warning to fire.
1058 + throw new Error(message);
1059 + } catch (x) {}
1060 + };
1061 +}
871 1062
872 -//#endregion
873 -//#region node_modules/@babel/runtime/helpers/esm/extends.js
874 - function _extends() {
875 - return _extends = Object.assign ? Object.assign.bind() : function(n) {
876 - for (var e = 1; e < arguments.length; e++) {
877 - var t = arguments[e];
878 - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
879 - }
880 - return n;
881 - }, _extends.apply(null, arguments);
882 - }
1063 +function emptyFunctionThatReturnsNull() {
1064 + return null;
1065 +}
883 1066
884 -//#endregion
885 -//#region modules/notifications/assets/js/icons/x-icon.js
886 - var XIcon = (0, react.forwardRef)(function(props, ref) {
887 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.SvgIcon, _extends({ viewBox: "0 0 24 24" }, props, { ref }), /*#__PURE__*/ react.default.createElement("path", {
888 - fillRule: "evenodd",
889 - clipRule: "evenodd",
890 - d: "M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"
891 - }), /*#__PURE__*/ react.default.createElement("path", {
892 - fillRule: "evenodd",
893 - clipRule: "evenodd",
894 - d: "M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"
895 - }));
896 - });
1067 +module.exports = function(isValidElement, throwOnDirectAccess) {
1068 + /* global Symbol */
1069 + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1070 + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
897 1071
898 -//#endregion
899 -//#region modules/notifications/assets/js/components/whats-new-top-bar.js
900 - var WhatsNewTopBar = function WhatsNewTopBar(props) {
901 - var setIsOpen = props.setIsOpen;
902 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.AppBar, {
903 - elevation: 0,
904 - position: "sticky",
905 - sx: { backgroundColor: "background.default" }
906 - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Toolbar, { variant: "dense" }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
907 - variant: "overline",
908 - sx: { flexGrow: 1 }
909 - }, (0, _wordpress_i18n.__)("What's New", "elementor")), /*#__PURE__*/ react.default.createElement(_elementor_ui.IconButton, {
910 - "aria-label": "close",
911 - size: "small",
912 - onClick: function onClick() {
913 - return setIsOpen(false);
914 - }
915 - }, /*#__PURE__*/ react.default.createElement(XIcon, null)))), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null));
916 - };
917 - WhatsNewTopBar.propTypes = { setIsOpen: import_prop_types.default.func.isRequired };
1072 + /**
1073 + * Returns the iterator method function contained on the iterable object.
1074 + *
1075 + * Be sure to invoke the function with the iterable as context:
1076 + *
1077 + * var iteratorFn = getIteratorFn(myIterable);
1078 + * if (iteratorFn) {
1079 + * var iterator = iteratorFn.call(myIterable);
1080 + * ...
1081 + * }
1082 + *
1083 + * @param {?object} maybeIterable
1084 + * @return {?function}
1085 + */
1086 + function getIteratorFn(maybeIterable) {
1087 + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1088 + if (typeof iteratorFn === 'function') {
1089 + return iteratorFn;
1090 + }
1091 + }
918 1092
919 -//#endregion
920 -//#region modules/notifications/assets/js/api/index.js
921 - var request = function request(endpoint) {
922 - var data = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
923 - return new Promise(function(resolve, reject) {
924 - elementorCommon.ajax.addRequest(endpoint, {
925 - success: resolve,
926 - error: reject,
927 - data
928 - });
929 - });
930 - };
931 - var getNotifications = function getNotifications() {
932 - return request("notifications_get");
933 - };
1093 + /**
1094 + * Collection of methods that allow declaration and validation of props that are
1095 + * supplied to React components. Example usage:
1096 + *
1097 + * var Props = require('ReactPropTypes');
1098 + * var MyArticle = React.createClass({
1099 + * propTypes: {
1100 + * // An optional string prop named "description".
1101 + * description: Props.string,
1102 + *
1103 + * // A required enum prop named "category".
1104 + * category: Props.oneOf(['News','Photos']).isRequired,
1105 + *
1106 + * // A prop named "dialog" that requires an instance of Dialog.
1107 + * dialog: Props.instanceOf(Dialog).isRequired
1108 + * },
1109 + * render: function() { ... }
1110 + * });
1111 + *
1112 + * A more formal specification of how these methods are used:
1113 + *
1114 + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1115 + * decl := ReactPropTypes.{type}(.isRequired)?
1116 + *
1117 + * Each and every declaration produces a function with the same signature. This
1118 + * allows the creation of custom validation functions. For example:
1119 + *
1120 + * var MyLink = React.createClass({
1121 + * propTypes: {
1122 + * // An optional string or URI prop named "href".
1123 + * href: function(props, propName, componentName) {
1124 + * var propValue = props[propName];
1125 + * if (propValue != null && typeof propValue !== 'string' &&
1126 + * !(propValue instanceof URI)) {
1127 + * return new Error(
1128 + * 'Expected a string or an URI for ' + propName + ' in ' +
1129 + * componentName
1130 + * );
1131 + * }
1132 + * }
1133 + * },
1134 + * render: function() {...}
1135 + * });
1136 + *
1137 + * @internal
1138 + */
934 1139
935 -//#endregion
936 -//#region node_modules/@babel/runtime/helpers/esm/typeof.js
937 - function _typeof(o) {
938 - "@babel/helpers - typeof";
939 - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
940 - return typeof o;
941 - } : function(o) {
942 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
943 - }, _typeof(o);
944 - }
1140 + var ANONYMOUS = '<<anonymous>>';
945 1141
946 -//#endregion
947 -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
948 - function toPrimitive(t, r) {
949 - if ("object" != _typeof(t) || !t) return t;
950 - var e = t[Symbol.toPrimitive];
951 - if (void 0 !== e) {
952 - var i = e.call(t, r || "default");
953 - if ("object" != _typeof(i)) return i;
954 - throw new TypeError("@@toPrimitive must return a primitive value.");
955 - }
956 - return ("string" === r ? String : Number)(t);
957 - }
1142 + // Important!
1143 + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1144 + var ReactPropTypes = {
1145 + array: createPrimitiveTypeChecker('array'),
1146 + bigint: createPrimitiveTypeChecker('bigint'),
1147 + bool: createPrimitiveTypeChecker('boolean'),
1148 + func: createPrimitiveTypeChecker('function'),
1149 + number: createPrimitiveTypeChecker('number'),
1150 + object: createPrimitiveTypeChecker('object'),
1151 + string: createPrimitiveTypeChecker('string'),
1152 + symbol: createPrimitiveTypeChecker('symbol'),
958 1153
959 -//#endregion
960 -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
961 - function toPropertyKey(t) {
962 - var i = toPrimitive(t, "string");
963 - return "symbol" == _typeof(i) ? i : i + "";
964 - }
1154 + any: createAnyTypeChecker(),
1155 + arrayOf: createArrayOfTypeChecker,
1156 + element: createElementTypeChecker(),
1157 + elementType: createElementTypeTypeChecker(),
1158 + instanceOf: createInstanceTypeChecker,
1159 + node: createNodeChecker(),
1160 + objectOf: createObjectOfTypeChecker,
1161 + oneOf: createEnumTypeChecker,
1162 + oneOfType: createUnionTypeChecker,
1163 + shape: createShapeTypeChecker,
1164 + exact: createStrictShapeTypeChecker,
1165 + };
965 1166
966 -//#endregion
967 -//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
968 - function _defineProperty(e, r, t) {
969 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
970 - value: t,
971 - enumerable: !0,
972 - configurable: !0,
973 - writable: !0
974 - }) : e[r] = t, e;
975 - }
1167 + /**
1168 + * inlined Object.is polyfill to avoid requiring consumers ship their own
1169 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1170 + */
1171 + /*eslint-disable no-self-compare*/
1172 + function is(x, y) {
1173 + // SameValue algorithm
1174 + if (x === y) {
1175 + // Steps 1-5, 7-10
1176 + // Steps 6.b-6.e: +0 != -0
1177 + return x !== 0 || 1 / x === 1 / y;
1178 + } else {
1179 + // Step 6.a: NaN == NaN
1180 + return x !== x && y !== y;
1181 + }
1182 + }
1183 + /*eslint-enable no-self-compare*/
976 1184
977 -//#endregion
978 -//#region modules/notifications/assets/js/components/whats-new-item-topic-line.js
979 - var WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
980 - var topic = _ref.topic;
981 - var date = _ref.date;
982 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, {
983 - direction: "row",
984 - divider: /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, {
985 - orientation: "vertical",
986 - flexItem: true
987 - }),
988 - spacing: 1,
989 - color: "text.tertiary",
990 - sx: { pb: 1 }
991 - }, topic && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, topic), date && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, date));
992 - };
993 - WhatsNewItemTopicLine.propTypes = {
994 - topic: import_prop_types.default.string,
995 - date: import_prop_types.default.string
996 - };
1185 + /**
1186 + * We use an Error-like object for backward compatibility as people may call
1187 + * PropTypes directly and inspect their output. However, we don't use real
1188 + * Errors anymore. We don't inspect their stack anyway, and creating them
1189 + * is prohibitively expensive if they are created too often, such as what
1190 + * happens in oneOfType() for any type before the one that matched.
1191 + */
1192 + function PropTypeError(message, data) {
1193 + this.message = message;
1194 + this.data = data && typeof data === 'object' ? data: {};
1195 + this.stack = '';
1196 + }
1197 + // Make `instanceof Error` still work for returned errors.
1198 + PropTypeError.prototype = Error.prototype;
997 1199
998 -//#endregion
999 -//#region modules/notifications/assets/js/components/wrapper-with-link.js
1000 - var WrapperWithLink = function WrapperWithLink(props) {
1001 - var link = props.link;
1002 - var children = props.children;
1003 - if (!link) return children;
1004 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, {
1005 - href: link,
1006 - target: "_blank",
1007 - underline: "none",
1008 - color: "inherit",
1009 - sx: { "&:hover": { color: "inherit" } }
1010 - }, children);
1011 - };
1012 - WrapperWithLink.propTypes = {
1013 - link: import_prop_types.default.string,
1014 - children: import_prop_types.default.any.isRequired
1015 - };
1200 + function createChainableTypeChecker(validate) {
1201 + if (true) {
1202 + var manualPropTypeCallCache = {};
1203 + var manualPropTypeWarningCount = 0;
1204 + }
1205 + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1206 + componentName = componentName || ANONYMOUS;
1207 + propFullName = propFullName || propName;
1016 1208
1017 -//#endregion
1018 -//#region modules/notifications/assets/js/components/whats-new-item-thumbnail.js
1019 - var WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
1020 - var imageSrc = _ref.imageSrc;
1021 - var title = _ref.title;
1022 - var link = _ref.link;
1023 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(WrapperWithLink, { link }, /*#__PURE__*/ react.default.createElement("img", {
1024 - src: imageSrc,
1025 - alt: title || "",
1026 - style: { maxWidth: "100%" }
1027 - })));
1028 - };
1029 - WhatsNewItemThumbnail.propTypes = {
1030 - imageSrc: import_prop_types.default.string.isRequired,
1031 - title: import_prop_types.default.string,
1032 - link: import_prop_types.default.string
1033 - };
1209 + if (secret !== ReactPropTypesSecret) {
1210 + if (throwOnDirectAccess) {
1211 + // New behavior only for users of `prop-types` package
1212 + var err = new Error(
1213 + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1214 + 'Use `PropTypes.checkPropTypes()` to call them. ' +
1215 + 'Read more at http://fb.me/use-check-prop-types'
1216 + );
1217 + err.name = 'Invariant Violation';
1218 + throw err;
1219 + } else if ( true && typeof console !== 'undefined') {
1220 + // Old behavior for people using React.PropTypes
1221 + var cacheKey = componentName + ':' + propName;
1222 + if (
1223 + !manualPropTypeCallCache[cacheKey] &&
1224 + // Avoid spamming the console because they are often not actionable except for lib authors
1225 + manualPropTypeWarningCount < 3
1226 + ) {
1227 + printWarning(
1228 + 'You are manually calling a React.PropTypes validation ' +
1229 + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1230 + 'and will throw in the standalone `prop-types` package. ' +
1231 + 'You may be seeing this warning due to a third-party PropTypes ' +
1232 + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
1233 + );
1234 + manualPropTypeCallCache[cacheKey] = true;
1235 + manualPropTypeWarningCount++;
1236 + }
1237 + }
1238 + }
1239 + if (props[propName] == null) {
1240 + if (isRequired) {
1241 + if (props[propName] === null) {
1242 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1243 + }
1244 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1245 + }
1246 + return null;
1247 + } else {
1248 + return validate(props, propName, componentName, location, propFullName);
1249 + }
1250 + }
1034 1251
1035 -//#endregion
1036 -//#region modules/notifications/assets/js/components/whats-new-item-media.js
1037 - var WhatsNewItemMedia = function WhatsNewItemMedia(_ref) {
1038 - var item = _ref.item;
1039 - if (item.youtubeEmbedId) {
1040 - var videoId = item.youtubeEmbedId.split("?")[0];
1041 - var src = "https://www.youtube.com/embed/".concat(videoId).concat(item.youtubeAutoplay ? "?autoplay=1&mute=1" : "");
1042 - var allow = "encrypted-media; picture-in-picture".concat(item.youtubeAutoplay ? "; autoplay" : "");
1043 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1044 - component: "iframe",
1045 - src,
1046 - title: item.title || "Video",
1047 - allow,
1048 - allowFullScreen: true,
1049 - sx: {
1050 - aspectRatio: "16/9",
1051 - width: "100%",
1052 - display: "block",
1053 - border: "none"
1054 - }
1055 - }));
1056 - }
1057 - var mediaSrc = item.gifSrc || item.imageSrc;
1058 - if (!mediaSrc) return null;
1059 - return /*#__PURE__*/ react.default.createElement(WhatsNewItemThumbnail, {
1060 - imageSrc: mediaSrc,
1061 - link: item.link,
1062 - title: item.title
1063 - });
1064 - };
1252 + var chainedCheckType = checkType.bind(null, false);
1253 + chainedCheckType.isRequired = checkType.bind(null, true);
1065 1254
1066 -//#endregion
1067 -//#region modules/notifications/assets/js/components/whats-new-item-chips.js
1068 - var WhatsNewItemChips = function WhatsNewItemChips(_ref) {
1069 - var chipPlan = _ref.chipPlan;
1070 - var chipTags = _ref.chipTags;
1071 - var itemIndex = _ref.itemIndex;
1072 - var chips = [];
1073 - if (chipPlan) chips.push({
1074 - color: "promotion",
1075 - size: "small",
1076 - label: chipPlan
1077 - });
1078 - if (chipTags) chipTags.forEach(function(chipTag) {
1079 - chips.push({
1080 - variant: "outlined",
1081 - size: "small",
1082 - label: chipTag
1083 - });
1084 - });
1085 - if (!chips.length) return null;
1086 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, {
1087 - direction: "row",
1088 - flexWrap: "wrap",
1089 - gap: 1,
1090 - sx: { pb: 1 }
1091 - }, chips.map(function(chip, chipIndex) {
1092 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Chip, _extends({ key: "chip-".concat(itemIndex).concat(chipIndex) }, chip));
1093 - }));
1094 - };
1095 - WhatsNewItemChips.propTypes = {
1096 - chipPlan: import_prop_types.default.string,
1097 - chipTags: import_prop_types.default.array,
1098 - itemIndex: import_prop_types.default.number.isRequired
1099 - };
1255 + return chainedCheckType;
1256 + }
1100 1257
1101 -//#endregion
1102 -//#region modules/notifications/assets/js/components/is-image-only.js
1103 - var isImageOnly = function isImageOnly(item) {
1104 - return !item.title && !item.description && (item.imageSrc || item.gifSrc || item.youtubeEmbedId);
1105 - };
1258 + function createPrimitiveTypeChecker(expectedType) {
1259 + function validate(props, propName, componentName, location, propFullName, secret) {
1260 + var propValue = props[propName];
1261 + var propType = getPropType(propValue);
1262 + if (propType !== expectedType) {
1263 + // `propValue` being instance of, say, date/regexp, pass the 'object'
1264 + // check, but we can offer a more precise error message here rather than
1265 + // 'of type `object`'.
1266 + var preciseType = getPreciseType(propValue);
1106 1267
1107 -//#endregion
1108 -//#region modules/notifications/assets/js/components/whats-new-item.js
1109 - function ownKeys(e, r) {
1110 - var t = Object.keys(e);
1111 - if (Object.getOwnPropertySymbols) {
1112 - var o = Object.getOwnPropertySymbols(e);
1113 - r && (o = o.filter(function(r) {
1114 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
1115 - })), t.push.apply(t, o);
1116 - }
1117 - return t;
1118 - }
1119 - function _objectSpread(e) {
1120 - for (var r = 1; r < arguments.length; r++) {
1121 - var t = null != arguments[r] ? arguments[r] : {};
1122 - r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
1123 - _defineProperty(e, r, t[r]);
1124 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
1125 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
1126 - });
1127 - }
1128 - return e;
1129 - }
1130 - var WhatsNewItem = function WhatsNewItem(_ref) {
1131 - var item = _ref.item;
1132 - var itemIndex = _ref.itemIndex;
1133 - var itemsLength = _ref.itemsLength;
1134 - var setIsOpen = _ref.setIsOpen;
1135 - var _ref$featured = _ref.featured;
1136 - var featured = _ref$featured === void 0 ? false : _ref$featured;
1137 - var hasMedia = item.imageSrc || item.gifSrc || item.youtubeEmbedId;
1138 - if (isImageOnly(item)) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1139 - key: itemIndex,
1140 - display: "flex",
1141 - flexDirection: "column",
1142 - sx: _objectSpread({ pt: 2 }, featured && { px: 1 })
1143 - }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), itemIndex !== itemsLength - 1 && /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1 } }));
1144 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1145 - key: itemIndex,
1146 - display: "flex",
1147 - flexDirection: "column",
1148 - sx: _objectSpread({ pt: 2 }, featured && { px: 1 })
1149 - }, (item.topic || item.date) && /*#__PURE__*/ react.default.createElement(WhatsNewItemTopicLine, {
1150 - topic: item.topic,
1151 - date: item.date
1152 - }), /*#__PURE__*/ react.default.createElement(WrapperWithLink, { link: item.link }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1153 - variant: featured ? "h6" : "subtitle1",
1154 - sx: { pb: 2 }
1155 - }, item.title)), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { position: "relative" } }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), featured && item.chipPlan && hasMedia && /*#__PURE__*/ react.default.createElement(_elementor_ui.Chip, {
1156 - label: item.chipPlan,
1157 - color: "promotion",
1158 - size: "small",
1159 - sx: {
1160 - position: "absolute",
1161 - top: 8,
1162 - insetInlineStart: 8
1163 - }
1164 - })), /*#__PURE__*/ react.default.createElement(WhatsNewItemChips, {
1165 - chipPlan: featured && hasMedia ? null : item.chipPlan,
1166 - chipTags: item.chipTags,
1167 - itemIndex
1168 - }), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1169 - variant: "body2",
1170 - color: "text.secondary",
1171 - sx: { pb: 2 }
1172 - }, item.description, item.readMoreText && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, " ", /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, {
1173 - href: item.link,
1174 - color: "info.main",
1175 - target: "_blank"
1176 - }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, {
1177 - href: item.ctaLink,
1178 - target: item.ctaLink.startsWith("#") ? "_self" : "_blank",
1179 - variant: "contained",
1180 - size: "small",
1181 - color: "promotion",
1182 - onClick: item.ctaLink.startsWith("#") ? function() {
1183 - return setIsOpen(false);
1184 - } : void 0
1185 - }, item.cta)), itemIndex !== itemsLength - 1 && /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1 } }));
1186 - };
1187 - WhatsNewItem.propTypes = {
1188 - item: import_prop_types.default.object.isRequired,
1189 - itemIndex: import_prop_types.default.number.isRequired,
1190 - itemsLength: import_prop_types.default.number.isRequired,
1191 - setIsOpen: import_prop_types.default.func.isRequired,
1192 - featured: import_prop_types.default.bool
1193 - };
1268 + return new PropTypeError(
1269 + 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
1270 + {expectedType: expectedType}
1271 + );
1272 + }
1273 + return null;
1274 + }
1275 + return createChainableTypeChecker(validate);
1276 + }
1194 1277
1195 -//#endregion
1196 -//#region modules/notifications/assets/js/components/whats-new-item-collapsed.js
1197 - var WhatsNewItemCollapsed = function WhatsNewItemCollapsed(_ref) {
1198 - var item = _ref.item;
1199 - var itemIndex = _ref.itemIndex;
1200 - var isNew = _ref.isNew;
1201 - var onSeen = _ref.onSeen;
1202 - var setIsOpen = _ref.setIsOpen;
1203 - var _useState2 = _slicedToArray((0, react.useState)(false), 2);
1204 - var expanded = _useState2[0];
1205 - var setExpanded = _useState2[1];
1206 - var handleToggle = function handleToggle() {
1207 - if (!expanded && isNew && onSeen) onSeen(item.id);
1208 - setExpanded(!expanded);
1209 - };
1210 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1211 - role: "button",
1212 - tabIndex: 0,
1213 - "aria-expanded": expanded,
1214 - onClick: handleToggle,
1215 - onKeyDown: function handleKeyDown(event) {
1216 - if ("Enter" === event.key || " " === event.key) {
1217 - event.preventDefault();
1218 - handleToggle();
1219 - }
1220 - },
1221 - sx: {
1222 - position: "relative",
1223 - display: "flex",
1224 - alignItems: "flex-start",
1225 - gap: 1,
1226 - cursor: "pointer",
1227 - py: 2,
1228 - paddingInlineStart: 1
1229 - }
1230 - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1231 - component: "span",
1232 - sx: {
1233 - position: "absolute",
1234 - insetInlineStart: "-6px",
1235 - top: "23px",
1236 - width: 6,
1237 - height: 6,
1238 - borderRadius: "50%",
1239 - backgroundColor: "primary.main",
1240 - opacity: isNew ? 1 : 0,
1241 - transition: "opacity 0.2s ease",
1242 - pointerEvents: "none"
1243 - }
1244 - }), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: {
1245 - flex: 1,
1246 - minWidth: 0
1247 - } }, item.topic && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1248 - variant: "caption",
1249 - color: "text.tertiary",
1250 - display: "block"
1251 - }, item.topic), /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1252 - variant: "subtitle2",
1253 - noWrap: true
1254 - }, item.title), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: {
1255 - maxHeight: expanded ? 0 : "3em",
1256 - opacity: expanded ? 0 : 1,
1257 - overflow: "hidden",
1258 - transition: "max-height 0.2s ease, opacity 0.15s ease"
1259 - } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1260 - variant: "caption",
1261 - color: "text.secondary",
1262 - sx: {
1263 - display: "-webkit-box",
1264 - WebkitLineClamp: 2,
1265 - WebkitBoxOrient: "vertical",
1266 - overflow: "hidden"
1267 - }
1268 - }, item.description))), /*#__PURE__*/ react.default.createElement(_elementor_icons.ChevronDownIcon, { sx: {
1269 - flexShrink: 0,
1270 - color: "secondary.main",
1271 - fontSize: "small",
1272 - mt: .25,
1273 - transform: expanded ? "rotate(180deg)" : "rotate(0deg)",
1274 - transition: "transform 0.2s"
1275 - } })), /*#__PURE__*/ react.default.createElement(_elementor_ui.Collapse, { in: expanded }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: {
1276 - pb: 2,
1277 - paddingInlineStart: 1
1278 - } }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), /*#__PURE__*/ react.default.createElement(WhatsNewItemChips, {
1279 - chipPlan: item.chipPlan,
1280 - chipTags: item.chipTags,
1281 - itemIndex
1282 - }), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1283 - variant: "body2",
1284 - color: "text.secondary",
1285 - sx: { pb: 2 }
1286 - }, item.description, item.readMoreText && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, " ", /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, {
1287 - href: item.link,
1288 - color: "info.main",
1289 - target: "_blank"
1290 - }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, {
1291 - href: item.ctaLink,
1292 - target: item.ctaLink.startsWith("#") ? "_self" : "_blank",
1293 - variant: "contained",
1294 - size: "small",
1295 - color: "promotion",
1296 - onClick: item.ctaLink.startsWith("#") ? function() {
1297 - return setIsOpen === null || setIsOpen === void 0 ? void 0 : setIsOpen(false);
1298 - } : void 0
1299 - }, item.cta)))), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null));
1300 - };
1301 - WhatsNewItemCollapsed.propTypes = {
1302 - item: import_prop_types.default.object.isRequired,
1303 - itemIndex: import_prop_types.default.number.isRequired,
1304 - isNew: import_prop_types.default.bool,
1305 - onSeen: import_prop_types.default.func,
1306 - setIsOpen: import_prop_types.default.func
1307 - };
1278 + function createAnyTypeChecker() {
1279 + return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1280 + }
1308 1281
1309 -//#endregion
1310 -//#region modules/notifications/assets/js/components/whats-new-drawer-content.js
1311 - var WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
1312 - var _items$find$listLabel;
1313 - var _items$find;
1314 - var setIsOpen = _ref.setIsOpen;
1315 - var seenItemIds = _ref.seenItemIds;
1316 - var onSeen = _ref.onSeen;
1317 - var initialHasUnread = _ref.initialHasUnread;
1318 - var _useQuery = (0, _elementor_query.useQuery)({
1319 - queryKey: ["e-notifications"],
1320 - queryFn: getNotifications
1321 - });
1322 - var isPending = _useQuery.isPending;
1323 - var error = _useQuery.error;
1324 - var items = _useQuery.data;
1325 - var seenItemIdsRef = (0, react.useRef)(seenItemIds);
1326 - seenItemIdsRef.current = seenItemIds;
1327 - (0, react.useEffect)(function() {
1328 - if (!items) return;
1329 - (items.some(function(item) {
1330 - return item.featured;
1331 - }) ? items.filter(function(item) {
1332 - return item.featured;
1333 - }) : items).filter(function(item) {
1334 - return !seenItemIdsRef.current.has(item.id);
1335 - }).forEach(function(item) {
1336 - return onSeen(item.id);
1337 - });
1338 - }, [items, onSeen]);
1339 - if (isPending) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.LinearProgress, { color: "secondary" }));
1340 - if (error) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, "An error has occurred: ", error);
1341 - var featuredItems = items.filter(function(item) {
1342 - return item.featured;
1343 - });
1344 - var nonFeaturedItems = items.filter(function(item) {
1345 - return !item.featured && !isImageOnly(item);
1346 - });
1347 - var listLabel = (_items$find$listLabel = (_items$find = items.find(function(item) {
1348 - return item.listLabel;
1349 - })) === null || _items$find === void 0 ? void 0 : _items$find.listLabel) !== null && _items$find$listLabel !== void 0 ? _items$find$listLabel : null;
1350 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, featuredItems.map(function(item, index) {
1351 - return /*#__PURE__*/ react.default.createElement(WhatsNewItem, {
1352 - key: item.id,
1353 - item,
1354 - itemIndex: index,
1355 - itemsLength: featuredItems.length,
1356 - setIsOpen,
1357 - featured: true
1358 - });
1359 - }), featuredItems.length > 0 && nonFeaturedItems.length > 0 && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, listLabel ? /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1.5 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1360 - variant: "caption",
1361 - color: "text.secondary",
1362 - sx: {
1363 - px: 1,
1364 - textTransform: "uppercase",
1365 - letterSpacing: "0.08em"
1366 - }
1367 - }, listLabel)) : /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1.5 } }), nonFeaturedItems.map(function(item, index) {
1368 - return /*#__PURE__*/ react.default.createElement(WhatsNewItemCollapsed, {
1369 - key: item.id,
1370 - item,
1371 - itemIndex: index,
1372 - isNew: initialHasUnread && !seenItemIds.has(item.id),
1373 - onSeen,
1374 - setIsOpen
1375 - });
1376 - })), 0 === featuredItems.length && nonFeaturedItems.map(function(item, itemIndex) {
1377 - return /*#__PURE__*/ react.default.createElement(WhatsNewItem, {
1378 - key: item.id,
1379 - item,
1380 - itemIndex,
1381 - itemsLength: nonFeaturedItems.length,
1382 - setIsOpen
1383 - });
1384 - }));
1385 - };
1386 - WhatsNewDrawerContent.propTypes = {
1387 - setIsOpen: import_prop_types.default.func.isRequired,
1388 - seenItemIds: import_prop_types.default.instanceOf(Set).isRequired,
1389 - onSeen: import_prop_types.default.func.isRequired,
1390 - initialHasUnread: import_prop_types.default.bool.isRequired
1391 - };
1282 + function createArrayOfTypeChecker(typeChecker) {
1283 + function validate(props, propName, componentName, location, propFullName) {
1284 + if (typeof typeChecker !== 'function') {
1285 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1286 + }
1287 + var propValue = props[propName];
1288 + if (!Array.isArray(propValue)) {
1289 + var propType = getPropType(propValue);
1290 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1291 + }
1292 + for (var i = 0; i < propValue.length; i++) {
1293 + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1294 + if (error instanceof Error) {
1295 + return error;
1296 + }
1297 + }
1298 + return null;
1299 + }
1300 + return createChainableTypeChecker(validate);
1301 + }
1392 1302
1393 -//#endregion
1394 -//#region modules/notifications/assets/js/components/whats-new.js
1395 - var _window$elementorNoti;
1396 - var _window$elementorNoti2;
1397 - var queryClient = new _elementor_query.QueryClient({ defaultOptions: { queries: {
1398 - refetchOnWindowFocus: false,
1399 - retry: false,
1400 - staleTime: 1e3 * 60 * 30
1401 - } } });
1402 - var initialHasUnread = ((_window$elementorNoti = (_window$elementorNoti2 = window.elementorNotifications) === null || _window$elementorNoti2 === void 0 ? void 0 : _window$elementorNoti2.unread_count) !== null && _window$elementorNoti !== void 0 ? _window$elementorNoti : 0) > 0;
1403 - var WhatsNew = function WhatsNew(props) {
1404 - var _window$elementor;
1405 - var _window$elementor$get;
1406 - var isOpen = props.isOpen;
1407 - var setIsOpen = props.setIsOpen;
1408 - var _props$setIsRead = props.setIsRead;
1409 - var setIsRead = _props$setIsRead === void 0 ? function() {} : _props$setIsRead;
1410 - var _props$anchorPosition = props.anchorPosition;
1411 - var anchorPosition = _props$anchorPosition === void 0 ? "right" : _props$anchorPosition;
1412 - var _useState2 = _slicedToArray((0, react.useState)(function() {
1413 - return /* @__PURE__ */ new Set();
1414 - }), 2);
1415 - var seenItemIds = _useState2[0];
1416 - var setSeenItemIds = _useState2[1];
1417 - (0, react.useEffect)(function() {
1418 - if (!isOpen) return;
1419 - setIsRead(true);
1420 - }, [isOpen, setIsRead]);
1421 - var handleSeen = (0, react.useCallback)(function(itemId) {
1422 - setSeenItemIds(function(prev) {
1423 - if (prev.has(itemId)) return prev;
1424 - window.dispatchEvent(new CustomEvent("e-notification-item-seen"));
1425 - return new Set([].concat(_toConsumableArray(prev), [itemId]));
1426 - });
1427 - }, []);
1428 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement(_elementor_query.QueryClientProvider, { client: queryClient }, /*#__PURE__*/ react.default.createElement(_elementor_ui.DirectionProvider, { rtl: elementorCommon.config.isRTL }, /*#__PURE__*/ react.default.createElement(_elementor_ui.ThemeProvider, { colorScheme: ((_window$elementor = window.elementor) === null || _window$elementor === void 0 || (_window$elementor$get = _window$elementor.getPreferences) === null || _window$elementor$get === void 0 ? void 0 : _window$elementor$get.call(_window$elementor, "ui_theme")) || "auto" }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Drawer, {
1429 - anchor: anchorPosition,
1430 - open: isOpen,
1431 - onClose: function onClose() {
1432 - return setIsOpen(false);
1433 - },
1434 - BackdropProps: { invisible: true },
1435 - ModalProps: { style: { zIndex: 999999 } }
1436 - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1437 - sx: {
1438 - width: 360,
1439 - backgroundColor: "background.default"
1440 - },
1441 - role: "presentation"
1442 - }, /*#__PURE__*/ react.default.createElement(WhatsNewTopBar, { setIsOpen }), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { padding: "16px" } }, /*#__PURE__*/ react.default.createElement(WhatsNewDrawerContent, {
1443 - setIsOpen,
1444 - seenItemIds,
1445 - onSeen: handleSeen,
1446 - initialHasUnread
1447 - }))))))));
1448 - };
1449 - WhatsNew.propTypes = {
1450 - isOpen: import_prop_types.default.bool.isRequired,
1451 - setIsOpen: import_prop_types.default.func.isRequired,
1452 - setIsRead: import_prop_types.default.func,
1453 - anchorPosition: import_prop_types.default.oneOf([
1454 - "left",
1455 - "top",
1456 - "right",
1457 - "bottom"
1458 - ])
1459 - };
1303 + function createElementTypeChecker() {
1304 + function validate(props, propName, componentName, location, propFullName) {
1305 + var propValue = props[propName];
1306 + if (!isValidElement(propValue)) {
1307 + var propType = getPropType(propValue);
1308 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1309 + }
1310 + return null;
1311 + }
1312 + return createChainableTypeChecker(validate);
1313 + }
1460 1314
1461 -//#endregion
1462 -//#region modules/notifications/assets/js/components/editor-drawer.js
1463 - var EditorDrawer = function EditorDrawer(_ref) {
1464 - var _ref$anchorPosition = _ref.anchorPosition;
1465 - var anchorPosition = _ref$anchorPosition === void 0 ? "left" : _ref$anchorPosition;
1466 - var _useState2 = _slicedToArray((0, react.useState)(true), 2);
1467 - var isOpen = _useState2[0];
1468 - var setIsOpen = _useState2[1];
1469 - (0, react.useEffect)(function() {
1470 - elementor.on("elementor/editor/panel/whats-new/clicked", function() {
1471 - return setIsOpen(true);
1472 - });
1473 - }, []);
1474 - return /*#__PURE__*/ react.default.createElement(WhatsNew, {
1475 - isOpen,
1476 - setIsOpen,
1477 - setIsRead: function setIsRead() {
1478 - return document.body.classList.remove("e-has-notification");
1479 - },
1480 - anchorPosition
1481 - });
1482 - };
1483 - EditorDrawer.propTypes = { anchorPosition: import_prop_types.default.oneOf([
1484 - "left",
1485 - "top",
1486 - "right",
1487 - "bottom"
1488 - ]) };
1315 + function createElementTypeTypeChecker() {
1316 + function validate(props, propName, componentName, location, propFullName) {
1317 + var propValue = props[propName];
1318 + if (!ReactIs.isValidElementType(propValue)) {
1319 + var propType = getPropType(propValue);
1320 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1321 + }
1322 + return null;
1323 + }
1324 + return createChainableTypeChecker(validate);
1325 + }
1489 1326
1490 -//#endregion
1491 -//#region modules/notifications/assets/js/components/editor-on-button-clicked.js
1492 - var isRendered = false;
1493 - var editorOnButtonClicked = function editorOnButtonClicked() {
1494 - var anchorPosition = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "left";
1495 - if (!isRendered) {
1496 - isRendered = true;
1497 - var container = document.createElement("div");
1498 - document.body.append(container);
1499 - react_default.render(/*#__PURE__*/ react.default.createElement(EditorDrawer, { anchorPosition }), container);
1500 - return;
1501 - }
1502 - elementor.trigger("elementor/editor/panel/whats-new/clicked");
1503 - };
1327 + function createInstanceTypeChecker(expectedClass) {
1328 + function validate(props, propName, componentName, location, propFullName) {
1329 + if (!(props[propName] instanceof expectedClass)) {
1330 + var expectedClassName = expectedClass.name || ANONYMOUS;
1331 + var actualClassName = getClassName(props[propName]);
1332 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1333 + }
1334 + return null;
1335 + }
1336 + return createChainableTypeChecker(validate);
1337 + }
1504 1338
1505 -//#endregion
1506 -//#region modules/notifications/assets/js/components/editor-v1.js
1507 - var editorV1 = function editorV1() {
1508 - elementor.on("panel:init", function() {
1509 - if (elementorNotifications.is_unread) document.body.classList.add("e-has-notification");
1510 - elementor.getPanelView().getPages("menu").view.addItem({
1511 - name: "notification-center",
1512 - icon: "eicon-speakerphone",
1513 - title: (0, _wordpress_i18n.__)("What's New", "elementor"),
1514 - callback: editorOnButtonClicked
1515 - }, "navigate_from_page", "view-page");
1516 - });
1517 - };
1339 + function createEnumTypeChecker(expectedValues) {
1340 + if (!Array.isArray(expectedValues)) {
1341 + if (true) {
1342 + if (arguments.length > 1) {
1343 + printWarning(
1344 + 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1345 + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1346 + );
1347 + } else {
1348 + printWarning('Invalid argument supplied to oneOf, expected an array.');
1349 + }
1350 + }
1351 + return emptyFunctionThatReturnsNull;
1352 + }
1518 1353
1519 -//#endregion
1520 -//#region modules/notifications/assets/js/components/editor-app-bar-link.js
1521 - var IconWithBadge = function IconWithBadge(_ref) {
1522 - var count = _ref.count;
1523 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Badge, {
1524 - color: "primary",
1525 - badgeContent: count,
1526 - invisible: 0 === count
1527 - }, /*#__PURE__*/ react.default.createElement(_elementor_icons_SpeakerphoneIcon.default, null));
1528 - };
1529 - IconWithBadge.propTypes = { count: import_prop_types.default.number };
1530 - var useWhatsNewLinkProps = function useWhatsNewLinkProps() {
1531 - var _window$elementorNoti;
1532 - var _useState2 = _slicedToArray((0, react.useState)(parseInt((_window$elementorNoti = window.elementorNotifications) === null || _window$elementorNoti === void 0 ? void 0 : _window$elementorNoti.unread_count, 10) || 0), 2);
1533 - var unreadCount = _useState2[0];
1534 - var setUnreadCount = _useState2[1];
1535 - (0, react.useEffect)(function() {
1536 - var handler = function handler() {
1537 - return setUnreadCount(function(prev) {
1538 - return Math.max(0, prev - 1);
1539 - });
1540 - };
1541 - window.addEventListener("e-notification-item-seen", handler);
1542 - return function() {
1543 - return window.removeEventListener("e-notification-item-seen", handler);
1544 - };
1545 - }, []);
1546 - return {
1547 - title: (0, _wordpress_i18n.__)("What's New", "elementor"),
1548 - icon: function icon() {
1549 - return /*#__PURE__*/ react.default.createElement(IconWithBadge, { count: unreadCount });
1550 - },
1551 - onClick: function onClick() {
1552 - editorOnButtonClicked("right");
1553 - elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.topBar.whatsNew, {
1554 - location: elementorCommon.eventsManager.config.locations.topBar,
1555 - secondaryLocation: elementorCommon.eventsManager.config.secondaryLocations["whats-new"],
1556 - trigger: elementorCommon.eventsManager.config.triggers.click,
1557 - element: elementorCommon.eventsManager.config.elements.buttonIcon
1558 - });
1559 - }
1560 - };
1561 - };
1562 - var editorAppBarLink = function editorAppBarLink() {
1563 - _elementor_editor_app_bar.utilitiesMenu.registerLink({
1564 - id: "app-bar-menu-item-whats-new",
1565 - priority: 10,
1566 - useProps: useWhatsNewLinkProps
1567 - });
1568 - };
1354 + function validate(props, propName, componentName, location, propFullName) {
1355 + var propValue = props[propName];
1356 + for (var i = 0; i < expectedValues.length; i++) {
1357 + if (is(propValue, expectedValues[i])) {
1358 + return null;
1359 + }
1360 + }
1569 1361
1570 -//#endregion
1571 -//#region modules/notifications/assets/js/editor.js
1572 - var _window;
1573 - if ((_window = window) !== null && _window !== void 0 && (_window = _window.elementorV2) !== null && _window !== void 0 && _window.editorAppBar) editorAppBarLink();
1574 - else editorV1();
1362 + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1363 + var type = getPreciseType(value);
1364 + if (type === 'symbol') {
1365 + return String(value);
1366 + }
1367 + return value;
1368 + });
1369 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1370 + }
1371 + return createChainableTypeChecker(validate);
1372 + }
1575 1373
1576 -//#endregion
1577 -})(wp.i18n, React, ReactDOM, elementorV2.ui, elementorV2.query, elementorV2.icons, elementorV2.editorAppBar, elementorV2.icons['SpeakerphoneIcon']);
1374 + function createObjectOfTypeChecker(typeChecker) {
1375 + function validate(props, propName, componentName, location, propFullName) {
1376 + if (typeof typeChecker !== 'function') {
1377 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1378 + }
1379 + var propValue = props[propName];
1380 + var propType = getPropType(propValue);
1381 + if (propType !== 'object') {
1382 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1383 + }
1384 + for (var key in propValue) {
1385 + if (has(propValue, key)) {
1386 + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1387 + if (error instanceof Error) {
1388 + return error;
1389 + }
1390 + }
1391 + }
1392 + return null;
1393 + }
1394 + return createChainableTypeChecker(validate);
1395 + }
1396 +
1397 + function createUnionTypeChecker(arrayOfTypeCheckers) {
1398 + if (!Array.isArray(arrayOfTypeCheckers)) {
1399 + true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
1400 + return emptyFunctionThatReturnsNull;
1401 + }
1402 +
1403 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1404 + var checker = arrayOfTypeCheckers[i];
1405 + if (typeof checker !== 'function') {
1406 + printWarning(
1407 + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1408 + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1409 + );
1410 + return emptyFunctionThatReturnsNull;
1411 + }
1412 + }
1413 +
1414 + function validate(props, propName, componentName, location, propFullName) {
1415 + var expectedTypes = [];
1416 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1417 + var checker = arrayOfTypeCheckers[i];
1418 + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1419 + if (checkerResult == null) {
1420 + return null;
1421 + }
1422 + if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1423 + expectedTypes.push(checkerResult.data.expectedType);
1424 + }
1425 + }
1426 + var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1427 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1428 + }
1429 + return createChainableTypeChecker(validate);
1430 + }
1431 +
1432 + function createNodeChecker() {
1433 + function validate(props, propName, componentName, location, propFullName) {
1434 + if (!isNode(props[propName])) {
1435 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1436 + }
1437 + return null;
1438 + }
1439 + return createChainableTypeChecker(validate);
1440 + }
1441 +
1442 + function invalidValidatorError(componentName, location, propFullName, key, type) {
1443 + return new PropTypeError(
1444 + (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1445 + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1446 + );
1447 + }
1448 +
1449 + function createShapeTypeChecker(shapeTypes) {
1450 + function validate(props, propName, componentName, location, propFullName) {
1451 + var propValue = props[propName];
1452 + var propType = getPropType(propValue);
1453 + if (propType !== 'object') {
1454 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1455 + }
1456 + for (var key in shapeTypes) {
1457 + var checker = shapeTypes[key];
1458 + if (typeof checker !== 'function') {
1459 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1460 + }
1461 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1462 + if (error) {
1463 + return error;
1464 + }
1465 + }
1466 + return null;
1467 + }
1468 + return createChainableTypeChecker(validate);
1469 + }
1470 +
1471 + function createStrictShapeTypeChecker(shapeTypes) {
1472 + function validate(props, propName, componentName, location, propFullName) {
1473 + var propValue = props[propName];
1474 + var propType = getPropType(propValue);
1475 + if (propType !== 'object') {
1476 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1477 + }
1478 + // We need to check all keys in case some are required but missing from props.
1479 + var allKeys = assign({}, props[propName], shapeTypes);
1480 + for (var key in allKeys) {
1481 + var checker = shapeTypes[key];
1482 + if (has(shapeTypes, key) && typeof checker !== 'function') {
1483 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1484 + }
1485 + if (!checker) {
1486 + return new PropTypeError(
1487 + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1488 + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1489 + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1490 + );
1491 + }
1492 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1493 + if (error) {
1494 + return error;
1495 + }
1496 + }
1497 + return null;
1498 + }
1499 +
1500 + return createChainableTypeChecker(validate);
1501 + }
1502 +
1503 + function isNode(propValue) {
1504 + switch (typeof propValue) {
1505 + case 'number':
1506 + case 'string':
1507 + case 'undefined':
1508 + return true;
1509 + case 'boolean':
1510 + return !propValue;
1511 + case 'object':
1512 + if (Array.isArray(propValue)) {
1513 + return propValue.every(isNode);
1514 + }
1515 + if (propValue === null || isValidElement(propValue)) {
1516 + return true;
1517 + }
1518 +
1519 + var iteratorFn = getIteratorFn(propValue);
1520 + if (iteratorFn) {
1521 + var iterator = iteratorFn.call(propValue);
1522 + var step;
1523 + if (iteratorFn !== propValue.entries) {
1524 + while (!(step = iterator.next()).done) {
1525 + if (!isNode(step.value)) {
1526 + return false;
1527 + }
1528 + }
1529 + } else {
1530 + // Iterator will provide entry [k,v] tuples rather than values.
1531 + while (!(step = iterator.next()).done) {
1532 + var entry = step.value;
1533 + if (entry) {
1534 + if (!isNode(entry[1])) {
1535 + return false;
1536 + }
1537 + }
1538 + }
1539 + }
1540 + } else {
1541 + return false;
1542 + }
1543 +
1544 + return true;
1545 + default:
1546 + return false;
1547 + }
1548 + }
1549 +
1550 + function isSymbol(propType, propValue) {
1551 + // Native Symbol.
1552 + if (propType === 'symbol') {
1553 + return true;
1554 + }
1555 +
1556 + // falsy value can't be a Symbol
1557 + if (!propValue) {
1558 + return false;
1559 + }
1560 +
1561 + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1562 + if (propValue['@@toStringTag'] === 'Symbol') {
1563 + return true;
1564 + }
1565 +
1566 + // Fallback for non-spec compliant Symbols which are polyfilled.
1567 + if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1568 + return true;
1569 + }
1570 +
1571 + return false;
1572 + }
1573 +
1574 + // Equivalent of `typeof` but with special handling for array and regexp.
1575 + function getPropType(propValue) {
1576 + var propType = typeof propValue;
1577 + if (Array.isArray(propValue)) {
1578 + return 'array';
1579 + }
1580 + if (propValue instanceof RegExp) {
1581 + // Old webkits (at least until Android 4.0) return 'function' rather than
1582 + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1583 + // passes PropTypes.object.
1584 + return 'object';
1585 + }
1586 + if (isSymbol(propType, propValue)) {
1587 + return 'symbol';
1588 + }
1589 + return propType;
1590 + }
1591 +
1592 + // This handles more types than `getPropType`. Only used for error messages.
1593 + // See `createPrimitiveTypeChecker`.
1594 + function getPreciseType(propValue) {
1595 + if (typeof propValue === 'undefined' || propValue === null) {
1596 + return '' + propValue;
1597 + }
1598 + var propType = getPropType(propValue);
1599 + if (propType === 'object') {
1600 + if (propValue instanceof Date) {
1601 + return 'date';
1602 + } else if (propValue instanceof RegExp) {
1603 + return 'regexp';
1604 + }
1605 + }
1606 + return propType;
1607 + }
1608 +
1609 + // Returns a string that is postfixed to a warning about an invalid type.
1610 + // For example, "undefined" or "of type array"
1611 + function getPostfixForTypeWarning(value) {
1612 + var type = getPreciseType(value);
1613 + switch (type) {
1614 + case 'array':
1615 + case 'object':
1616 + return 'an ' + type;
1617 + case 'boolean':
1618 + case 'date':
1619 + case 'regexp':
1620 + return 'a ' + type;
1621 + default:
1622 + return type;
1623 + }
1624 + }
1625 +
1626 + // Returns class name of the object, if any.
1627 + function getClassName(propValue) {
1628 + if (!propValue.constructor || !propValue.constructor.name) {
1629 + return ANONYMOUS;
1630 + }
1631 + return propValue.constructor.name;
1632 + }
1633 +
1634 + ReactPropTypes.checkPropTypes = checkPropTypes;
1635 + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1636 + ReactPropTypes.PropTypes = ReactPropTypes;
1637 +
1638 + return ReactPropTypes;
1639 +};
1640 +
1641 +
1642 +/***/ }),
1643 +
1644 +/***/ "../node_modules/prop-types/index.js":
1645 +/*!*******************************************!*\
1646 + !*** ../node_modules/prop-types/index.js ***!
1647 + \*******************************************/
1648 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1649 +
1650 +/**
1651 + * Copyright (c) 2013-present, Facebook, Inc.
1652 + *
1653 + * This source code is licensed under the MIT license found in the
1654 + * LICENSE file in the root directory of this source tree.
1655 + */
1656 +
1657 +if (true) {
1658 + var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1659 +
1660 + // By explicitly using `prop-types` you are opting into new development behavior.
1661 + // http://fb.me/prop-types-in-prod
1662 + var throwOnDirectAccess = true;
1663 + module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1664 +} else {}
1665 +
1666 +
1667 +/***/ }),
1668 +
1669 +/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
1670 +/*!**************************************************************!*\
1671 + !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
1672 + \**************************************************************/
1673 +/***/ ((module) => {
1674 +
1675 +"use strict";
1676 +/**
1677 + * Copyright (c) 2013-present, Facebook, Inc.
1678 + *
1679 + * This source code is licensed under the MIT license found in the
1680 + * LICENSE file in the root directory of this source tree.
1681 + */
1682 +
1683 +
1684 +
1685 +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1686 +
1687 +module.exports = ReactPropTypesSecret;
1688 +
1689 +
1690 +/***/ }),
1691 +
1692 +/***/ "../node_modules/prop-types/lib/has.js":
1693 +/*!*********************************************!*\
1694 + !*** ../node_modules/prop-types/lib/has.js ***!
1695 + \*********************************************/
1696 +/***/ ((module) => {
1697 +
1698 +module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
1699 +
1700 +
1701 +/***/ }),
1702 +
1703 +/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
1704 +/*!************************************************************************************!*\
1705 + !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
1706 + \************************************************************************************/
1707 +/***/ ((__unused_webpack_module, exports) => {
1708 +
1709 +"use strict";
1710 +/** @license React v16.13.1
1711 + * react-is.development.js
1712 + *
1713 + * Copyright (c) Facebook, Inc. and its affiliates.
1714 + *
1715 + * This source code is licensed under the MIT license found in the
1716 + * LICENSE file in the root directory of this source tree.
1717 + */
1718 +
1719 +
1720 +
1721 +
1722 +
1723 +if (true) {
1724 + (function() {
1725 +'use strict';
1726 +
1727 +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1728 +// nor polyfill, then a plain number is used for performance.
1729 +var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1730 +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1731 +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1732 +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1733 +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1734 +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1735 +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1736 +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1737 +// (unstable) APIs that have been removed. Can we remove the symbols?
1738 +
1739 +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1740 +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1741 +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1742 +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1743 +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1744 +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1745 +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1746 +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1747 +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1748 +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1749 +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1750 +
1751 +function isValidElementType(type) {
1752 + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1753 + 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);
1754 +}
1755 +
1756 +function typeOf(object) {
1757 + if (typeof object === 'object' && object !== null) {
1758 + var $$typeof = object.$$typeof;
1759 +
1760 + switch ($$typeof) {
1761 + case REACT_ELEMENT_TYPE:
1762 + var type = object.type;
1763 +
1764 + switch (type) {
1765 + case REACT_ASYNC_MODE_TYPE:
1766 + case REACT_CONCURRENT_MODE_TYPE:
1767 + case REACT_FRAGMENT_TYPE:
1768 + case REACT_PROFILER_TYPE:
1769 + case REACT_STRICT_MODE_TYPE:
1770 + case REACT_SUSPENSE_TYPE:
1771 + return type;
1772 +
1773 + default:
1774 + var $$typeofType = type && type.$$typeof;
1775 +
1776 + switch ($$typeofType) {
1777 + case REACT_CONTEXT_TYPE:
1778 + case REACT_FORWARD_REF_TYPE:
1779 + case REACT_LAZY_TYPE:
1780 + case REACT_MEMO_TYPE:
1781 + case REACT_PROVIDER_TYPE:
1782 + return $$typeofType;
1783 +
1784 + default:
1785 + return $$typeof;
1786 + }
1787 +
1788 + }
1789 +
1790 + case REACT_PORTAL_TYPE:
1791 + return $$typeof;
1792 + }
1793 + }
1794 +
1795 + return undefined;
1796 +} // AsyncMode is deprecated along with isAsyncMode
1797 +
1798 +var AsyncMode = REACT_ASYNC_MODE_TYPE;
1799 +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1800 +var ContextConsumer = REACT_CONTEXT_TYPE;
1801 +var ContextProvider = REACT_PROVIDER_TYPE;
1802 +var Element = REACT_ELEMENT_TYPE;
1803 +var ForwardRef = REACT_FORWARD_REF_TYPE;
1804 +var Fragment = REACT_FRAGMENT_TYPE;
1805 +var Lazy = REACT_LAZY_TYPE;
1806 +var Memo = REACT_MEMO_TYPE;
1807 +var Portal = REACT_PORTAL_TYPE;
1808 +var Profiler = REACT_PROFILER_TYPE;
1809 +var StrictMode = REACT_STRICT_MODE_TYPE;
1810 +var Suspense = REACT_SUSPENSE_TYPE;
1811 +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1812 +
1813 +function isAsyncMode(object) {
1814 + {
1815 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1816 + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1817 +
1818 + 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.');
1819 + }
1820 + }
1821 +
1822 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1823 +}
1824 +function isConcurrentMode(object) {
1825 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1826 +}
1827 +function isContextConsumer(object) {
1828 + return typeOf(object) === REACT_CONTEXT_TYPE;
1829 +}
1830 +function isContextProvider(object) {
1831 + return typeOf(object) === REACT_PROVIDER_TYPE;
1832 +}
1833 +function isElement(object) {
1834 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1835 +}
1836 +function isForwardRef(object) {
1837 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
1838 +}
1839 +function isFragment(object) {
1840 + return typeOf(object) === REACT_FRAGMENT_TYPE;
1841 +}
1842 +function isLazy(object) {
1843 + return typeOf(object) === REACT_LAZY_TYPE;
1844 +}
1845 +function isMemo(object) {
1846 + return typeOf(object) === REACT_MEMO_TYPE;
1847 +}
1848 +function isPortal(object) {
1849 + return typeOf(object) === REACT_PORTAL_TYPE;
1850 +}
1851 +function isProfiler(object) {
1852 + return typeOf(object) === REACT_PROFILER_TYPE;
1853 +}
1854 +function isStrictMode(object) {
1855 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
1856 +}
1857 +function isSuspense(object) {
1858 + return typeOf(object) === REACT_SUSPENSE_TYPE;
1859 +}
1860 +
1861 +exports.AsyncMode = AsyncMode;
1862 +exports.ConcurrentMode = ConcurrentMode;
1863 +exports.ContextConsumer = ContextConsumer;
1864 +exports.ContextProvider = ContextProvider;
1865 +exports.Element = Element;
1866 +exports.ForwardRef = ForwardRef;
1867 +exports.Fragment = Fragment;
1868 +exports.Lazy = Lazy;
1869 +exports.Memo = Memo;
1870 +exports.Portal = Portal;
1871 +exports.Profiler = Profiler;
1872 +exports.StrictMode = StrictMode;
1873 +exports.Suspense = Suspense;
1874 +exports.isAsyncMode = isAsyncMode;
1875 +exports.isConcurrentMode = isConcurrentMode;
1876 +exports.isContextConsumer = isContextConsumer;
1877 +exports.isContextProvider = isContextProvider;
1878 +exports.isElement = isElement;
1879 +exports.isForwardRef = isForwardRef;
1880 +exports.isFragment = isFragment;
1881 +exports.isLazy = isLazy;
1882 +exports.isMemo = isMemo;
1883 +exports.isPortal = isPortal;
1884 +exports.isProfiler = isProfiler;
1885 +exports.isStrictMode = isStrictMode;
1886 +exports.isSuspense = isSuspense;
1887 +exports.isValidElementType = isValidElementType;
1888 +exports.typeOf = typeOf;
1889 + })();
1890 +}
1891 +
1892 +
1893 +/***/ }),
1894 +
1895 +/***/ "../node_modules/prop-types/node_modules/react-is/index.js":
1896 +/*!*****************************************************************!*\
1897 + !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
1898 + \*****************************************************************/
1899 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1900 +
1901 +"use strict";
1902 +
1903 +
1904 +if (false) {} else {
1905 + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1906 +}
1907 +
1908 +
1909 +/***/ }),
1910 +
1911 +/***/ "react":
1912 +/*!************************!*\
1913 + !*** external "React" ***!
1914 + \************************/
1915 +/***/ ((module) => {
1916 +
1917 +"use strict";
1918 +module.exports = React;
1919 +
1920 +/***/ }),
1921 +
1922 +/***/ "react-dom":
1923 +/*!***************************!*\
1924 + !*** external "ReactDOM" ***!
1925 + \***************************/
1926 +/***/ ((module) => {
1927 +
1928 +"use strict";
1929 +module.exports = ReactDOM;
1930 +
1931 +/***/ }),
1932 +
1933 +/***/ "@elementor/ui":
1934 +/*!*********************************!*\
1935 + !*** external "elementorV2.ui" ***!
1936 + \*********************************/
1937 +/***/ ((module) => {
1938 +
1939 +"use strict";
1940 +module.exports = elementorV2.ui;
1941 +
1942 +/***/ }),
1943 +
1944 +/***/ "@wordpress/i18n":
1945 +/*!**************************!*\
1946 + !*** external "wp.i18n" ***!
1947 + \**************************/
1948 +/***/ ((module) => {
1949 +
1950 +"use strict";
1951 +module.exports = wp.i18n;
1952 +
1953 +/***/ }),
1954 +
1955 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
1956 +/*!******************************************************************!*\
1957 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1958 + \******************************************************************/
1959 +/***/ ((module) => {
1960 +
1961 +function _arrayLikeToArray(arr, len) {
1962 + if (len == null || len > arr.length) len = arr.length;
1963 + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1964 + return arr2;
1965 +}
1966 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1967 +
1968 +/***/ }),
1969 +
1970 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
1971 +/*!****************************************************************!*\
1972 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
1973 + \****************************************************************/
1974 +/***/ ((module) => {
1975 +
1976 +function _arrayWithHoles(arr) {
1977 + if (Array.isArray(arr)) return arr;
1978 +}
1979 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1980 +
1981 +/***/ }),
1982 +
1983 +/***/ "../node_modules/@babel/runtime/helpers/extends.js":
1984 +/*!*********************************************************!*\
1985 + !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
1986 + \*********************************************************/
1987 +/***/ ((module) => {
1988 +
1989 +function _extends() {
1990 + module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
1991 + for (var i = 1; i < arguments.length; i++) {
1992 + var source = arguments[i];
1993 + for (var key in source) {
1994 + if (Object.prototype.hasOwnProperty.call(source, key)) {
1995 + target[key] = source[key];
1996 + }
1997 + }
1998 + }
1999 + return target;
2000 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
2001 + return _extends.apply(this, arguments);
2002 +}
2003 +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
2004 +
2005 +/***/ }),
2006 +
2007 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
2008 +/*!***********************************************************************!*\
2009 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2010 + \***********************************************************************/
2011 +/***/ ((module) => {
2012 +
2013 +function _interopRequireDefault(obj) {
2014 + return obj && obj.__esModule ? obj : {
2015 + "default": obj
2016 + };
2017 +}
2018 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2019 +
2020 +/***/ }),
2021 +
2022 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
2023 +/*!**********************************************************************!*\
2024 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2025 + \**********************************************************************/
2026 +/***/ ((module) => {
2027 +
2028 +function _iterableToArrayLimit(r, l) {
2029 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2030 + if (null != t) {
2031 + var e,
2032 + n,
2033 + i,
2034 + u,
2035 + a = [],
2036 + f = !0,
2037 + o = !1;
2038 + try {
2039 + if (i = (t = t.call(r)).next, 0 === l) {
2040 + if (Object(t) !== t) return;
2041 + f = !1;
2042 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2043 + } catch (r) {
2044 + o = !0, n = r;
2045 + } finally {
2046 + try {
2047 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2048 + } finally {
2049 + if (o) throw n;
2050 + }
2051 + }
2052 + return a;
2053 + }
2054 +}
2055 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2056 +
2057 +/***/ }),
2058 +
2059 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
2060 +/*!*****************************************************************!*\
2061 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
2062 + \*****************************************************************/
2063 +/***/ ((module) => {
2064 +
2065 +function _nonIterableRest() {
2066 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2067 +}
2068 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2069 +
2070 +/***/ }),
2071 +
2072 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
2073 +/*!***************************************************************!*\
2074 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
2075 + \***************************************************************/
2076 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2077 +
2078 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
2079 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
2080 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
2081 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
2082 +function _slicedToArray(arr, i) {
2083 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
2084 +}
2085 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2086 +
2087 +/***/ }),
2088 +
2089 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
2090 +/*!********************************************************!*\
2091 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
2092 + \********************************************************/
2093 +/***/ ((module) => {
2094 +
2095 +function _typeof(o) {
2096 + "@babel/helpers - typeof";
2097 +
2098 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2099 + return typeof o;
2100 + } : function (o) {
2101 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2102 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
2103 +}
2104 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
2105 +
2106 +/***/ }),
2107 +
2108 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
2109 +/*!****************************************************************************!*\
2110 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
2111 + \****************************************************************************/
2112 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2113 +
2114 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
2115 +function _unsupportedIterableToArray(o, minLen) {
2116 + if (!o) return;
2117 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
2118 + var n = Object.prototype.toString.call(o).slice(8, -1);
2119 + if (n === "Object" && o.constructor) n = o.constructor.name;
2120 + if (n === "Map" || n === "Set") return Array.from(o);
2121 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
2122 +}
2123 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2124 +
2125 +/***/ }),
2126 +
2127 +/***/ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs":
2128 +/*!**************************************************************************!*\
2129 + !*** ../node_modules/@tanstack/query-core/build/modern/focusManager.cjs ***!
2130 + \**************************************************************************/
2131 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2132 +
2133 +"use strict";
2134 +
2135 +var __defProp = Object.defineProperty;
2136 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2137 +var __getOwnPropNames = Object.getOwnPropertyNames;
2138 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2139 +var __export = (target, all) => {
2140 + for (var name in all)
2141 + __defProp(target, name, { get: all[name], enumerable: true });
2142 +};
2143 +var __copyProps = (to, from, except, desc) => {
2144 + if (from && typeof from === "object" || typeof from === "function") {
2145 + for (let key of __getOwnPropNames(from))
2146 + if (!__hasOwnProp.call(to, key) && key !== except)
2147 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2148 + }
2149 + return to;
2150 +};
2151 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2152 +
2153 +// src/focusManager.ts
2154 +var focusManager_exports = {};
2155 +__export(focusManager_exports, {
2156 + FocusManager: () => FocusManager,
2157 + focusManager: () => focusManager
2158 +});
2159 +module.exports = __toCommonJS(focusManager_exports);
2160 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
2161 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2162 +var FocusManager = class extends import_subscribable.Subscribable {
2163 + #focused;
2164 + #cleanup;
2165 + #setup;
2166 + constructor() {
2167 + super();
2168 + this.#setup = (onFocus) => {
2169 + if (!import_utils.isServer && window.addEventListener) {
2170 + const listener = () => onFocus();
2171 + window.addEventListener("visibilitychange", listener, false);
2172 + return () => {
2173 + window.removeEventListener("visibilitychange", listener);
2174 + };
2175 + }
2176 + return;
2177 + };
2178 + }
2179 + onSubscribe() {
2180 + if (!this.#cleanup) {
2181 + this.setEventListener(this.#setup);
2182 + }
2183 + }
2184 + onUnsubscribe() {
2185 + if (!this.hasListeners()) {
2186 + this.#cleanup?.();
2187 + this.#cleanup = void 0;
2188 + }
2189 + }
2190 + setEventListener(setup) {
2191 + this.#setup = setup;
2192 + this.#cleanup?.();
2193 + this.#cleanup = setup((focused) => {
2194 + if (typeof focused === "boolean") {
2195 + this.setFocused(focused);
2196 + } else {
2197 + this.onFocus();
2198 + }
2199 + });
2200 + }
2201 + setFocused(focused) {
2202 + const changed = this.#focused !== focused;
2203 + if (changed) {
2204 + this.#focused = focused;
2205 + this.onFocus();
2206 + }
2207 + }
2208 + onFocus() {
2209 + this.listeners.forEach((listener) => {
2210 + listener();
2211 + });
2212 + }
2213 + isFocused() {
2214 + if (typeof this.#focused === "boolean") {
2215 + return this.#focused;
2216 + }
2217 + return globalThis.document?.visibilityState !== "hidden";
2218 + }
2219 +};
2220 +var focusManager = new FocusManager();
2221 +// Annotate the CommonJS export names for ESM import in node:
2222 +0 && (0);
2223 +//# sourceMappingURL=focusManager.cjs.map
2224 +
2225 +/***/ }),
2226 +
2227 +/***/ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs":
2228 +/*!***********************************************************************!*\
2229 + !*** ../node_modules/@tanstack/query-core/build/modern/hydration.cjs ***!
2230 + \***********************************************************************/
2231 +/***/ ((module) => {
2232 +
2233 +"use strict";
2234 +
2235 +var __defProp = Object.defineProperty;
2236 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2237 +var __getOwnPropNames = Object.getOwnPropertyNames;
2238 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2239 +var __export = (target, all) => {
2240 + for (var name in all)
2241 + __defProp(target, name, { get: all[name], enumerable: true });
2242 +};
2243 +var __copyProps = (to, from, except, desc) => {
2244 + if (from && typeof from === "object" || typeof from === "function") {
2245 + for (let key of __getOwnPropNames(from))
2246 + if (!__hasOwnProp.call(to, key) && key !== except)
2247 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2248 + }
2249 + return to;
2250 +};
2251 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2252 +
2253 +// src/hydration.ts
2254 +var hydration_exports = {};
2255 +__export(hydration_exports, {
2256 + defaultShouldDehydrateMutation: () => defaultShouldDehydrateMutation,
2257 + defaultShouldDehydrateQuery: () => defaultShouldDehydrateQuery,
2258 + dehydrate: () => dehydrate,
2259 + hydrate: () => hydrate
2260 +});
2261 +module.exports = __toCommonJS(hydration_exports);
2262 +function dehydrateMutation(mutation) {
2263 + return {
2264 + mutationKey: mutation.options.mutationKey,
2265 + state: mutation.state,
2266 + ...mutation.meta && { meta: mutation.meta }
2267 + };
2268 +}
2269 +function dehydrateQuery(query) {
2270 + return {
2271 + state: query.state,
2272 + queryKey: query.queryKey,
2273 + queryHash: query.queryHash,
2274 + ...query.meta && { meta: query.meta }
2275 + };
2276 +}
2277 +function defaultShouldDehydrateMutation(mutation) {
2278 + return mutation.state.isPaused;
2279 +}
2280 +function defaultShouldDehydrateQuery(query) {
2281 + return query.state.status === "success";
2282 +}
2283 +function dehydrate(client, options = {}) {
2284 + const filterMutation = options.shouldDehydrateMutation ?? defaultShouldDehydrateMutation;
2285 + const mutations = client.getMutationCache().getAll().flatMap(
2286 + (mutation) => filterMutation(mutation) ? [dehydrateMutation(mutation)] : []
2287 + );
2288 + const filterQuery = options.shouldDehydrateQuery ?? defaultShouldDehydrateQuery;
2289 + const queries = client.getQueryCache().getAll().flatMap((query) => filterQuery(query) ? [dehydrateQuery(query)] : []);
2290 + return { mutations, queries };
2291 +}
2292 +function hydrate(client, dehydratedState, options) {
2293 + if (typeof dehydratedState !== "object" || dehydratedState === null) {
2294 + return;
2295 + }
2296 + const mutationCache = client.getMutationCache();
2297 + const queryCache = client.getQueryCache();
2298 + const mutations = dehydratedState.mutations || [];
2299 + const queries = dehydratedState.queries || [];
2300 + mutations.forEach((dehydratedMutation) => {
2301 + mutationCache.build(
2302 + client,
2303 + {
2304 + ...options?.defaultOptions?.mutations,
2305 + mutationKey: dehydratedMutation.mutationKey,
2306 + meta: dehydratedMutation.meta
2307 + },
2308 + dehydratedMutation.state
2309 + );
2310 + });
2311 + queries.forEach(({ queryKey, state, queryHash, meta }) => {
2312 + const query = queryCache.get(queryHash);
2313 + if (query) {
2314 + if (query.state.dataUpdatedAt < state.dataUpdatedAt) {
2315 + const { fetchStatus: _ignored, ...dehydratedQueryState } = state;
2316 + query.setState(dehydratedQueryState);
2317 + }
2318 + return;
2319 + }
2320 + queryCache.build(
2321 + client,
2322 + {
2323 + ...options?.defaultOptions?.queries,
2324 + queryKey,
2325 + queryHash,
2326 + meta
2327 + },
2328 + // Reset fetch status to idle to avoid
2329 + // query being stuck in fetching state upon hydration
2330 + {
2331 + ...state,
2332 + fetchStatus: "idle"
2333 + }
2334 + );
2335 + });
2336 +}
2337 +// Annotate the CommonJS export names for ESM import in node:
2338 +0 && (0);
2339 +//# sourceMappingURL=hydration.cjs.map
2340 +
2341 +/***/ }),
2342 +
2343 +/***/ "../node_modules/@tanstack/query-core/build/modern/index.cjs":
2344 +/*!*******************************************************************!*\
2345 + !*** ../node_modules/@tanstack/query-core/build/modern/index.cjs ***!
2346 + \*******************************************************************/
2347 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2348 +
2349 +"use strict";
2350 +
2351 +var __defProp = Object.defineProperty;
2352 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2353 +var __getOwnPropNames = Object.getOwnPropertyNames;
2354 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2355 +var __export = (target, all) => {
2356 + for (var name in all)
2357 + __defProp(target, name, { get: all[name], enumerable: true });
2358 +};
2359 +var __copyProps = (to, from, except, desc) => {
2360 + if (from && typeof from === "object" || typeof from === "function") {
2361 + for (let key of __getOwnPropNames(from))
2362 + if (!__hasOwnProp.call(to, key) && key !== except)
2363 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2364 + }
2365 + return to;
2366 +};
2367 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
2368 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2369 +
2370 +// src/index.ts
2371 +var src_exports = {};
2372 +__export(src_exports, {
2373 + CancelledError: () => import_retryer.CancelledError,
2374 + InfiniteQueryObserver: () => import_infiniteQueryObserver.InfiniteQueryObserver,
2375 + MutationCache: () => import_mutationCache.MutationCache,
2376 + MutationObserver: () => import_mutationObserver.MutationObserver,
2377 + QueriesObserver: () => import_queriesObserver.QueriesObserver,
2378 + Query: () => import_query.Query,
2379 + QueryCache: () => import_queryCache.QueryCache,
2380 + QueryClient: () => import_queryClient.QueryClient,
2381 + QueryObserver: () => import_queryObserver.QueryObserver,
2382 + defaultShouldDehydrateMutation: () => import_hydration.defaultShouldDehydrateMutation,
2383 + defaultShouldDehydrateQuery: () => import_hydration.defaultShouldDehydrateQuery,
2384 + dehydrate: () => import_hydration.dehydrate,
2385 + focusManager: () => import_focusManager.focusManager,
2386 + hashKey: () => import_utils.hashKey,
2387 + hydrate: () => import_hydration.hydrate,
2388 + isCancelledError: () => import_retryer2.isCancelledError,
2389 + isServer: () => import_utils.isServer,
2390 + keepPreviousData: () => import_utils.keepPreviousData,
2391 + matchQuery: () => import_utils.matchQuery,
2392 + notifyManager: () => import_notifyManager.notifyManager,
2393 + onlineManager: () => import_onlineManager.onlineManager,
2394 + replaceEqualDeep: () => import_utils.replaceEqualDeep
2395 +});
2396 +module.exports = __toCommonJS(src_exports);
2397 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
2398 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
2399 +var import_queryClient = __webpack_require__(/*! ./queryClient.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs");
2400 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
2401 +var import_queriesObserver = __webpack_require__(/*! ./queriesObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs");
2402 +var import_infiniteQueryObserver = __webpack_require__(/*! ./infiniteQueryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs");
2403 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
2404 +var import_mutationObserver = __webpack_require__(/*! ./mutationObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs");
2405 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
2406 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
2407 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
2408 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2409 +var import_retryer2 = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
2410 +var import_hydration = __webpack_require__(/*! ./hydration.cjs */ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs");
2411 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/query-core/build/modern/types.cjs"), module.exports);
2412 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
2413 +// Annotate the CommonJS export names for ESM import in node:
2414 +0 && (0);
2415 +//# sourceMappingURL=index.cjs.map
2416 +
2417 +/***/ }),
2418 +
2419 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs":
2420 +/*!***********************************************************************************!*\
2421 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs ***!
2422 + \***********************************************************************************/
2423 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2424 +
2425 +"use strict";
2426 +
2427 +var __defProp = Object.defineProperty;
2428 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2429 +var __getOwnPropNames = Object.getOwnPropertyNames;
2430 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2431 +var __export = (target, all) => {
2432 + for (var name in all)
2433 + __defProp(target, name, { get: all[name], enumerable: true });
2434 +};
2435 +var __copyProps = (to, from, except, desc) => {
2436 + if (from && typeof from === "object" || typeof from === "function") {
2437 + for (let key of __getOwnPropNames(from))
2438 + if (!__hasOwnProp.call(to, key) && key !== except)
2439 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2440 + }
2441 + return to;
2442 +};
2443 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2444 +
2445 +// src/infiniteQueryBehavior.ts
2446 +var infiniteQueryBehavior_exports = {};
2447 +__export(infiniteQueryBehavior_exports, {
2448 + hasNextPage: () => hasNextPage,
2449 + hasPreviousPage: () => hasPreviousPage,
2450 + infiniteQueryBehavior: () => infiniteQueryBehavior
2451 +});
2452 +module.exports = __toCommonJS(infiniteQueryBehavior_exports);
2453 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2454 +function infiniteQueryBehavior(pages) {
2455 + return {
2456 + onFetch: (context, query) => {
2457 + const fetchFn = async () => {
2458 + const options = context.options;
2459 + const direction = context.fetchOptions?.meta?.fetchMore?.direction;
2460 + const oldPages = context.state.data?.pages || [];
2461 + const oldPageParams = context.state.data?.pageParams || [];
2462 + const empty = { pages: [], pageParams: [] };
2463 + let cancelled = false;
2464 + const addSignalProperty = (object) => {
2465 + Object.defineProperty(object, "signal", {
2466 + enumerable: true,
2467 + get: () => {
2468 + if (context.signal.aborted) {
2469 + cancelled = true;
2470 + } else {
2471 + context.signal.addEventListener("abort", () => {
2472 + cancelled = true;
2473 + });
2474 + }
2475 + return context.signal;
2476 + }
2477 + });
2478 + };
2479 + const queryFn = context.options.queryFn || (() => Promise.reject(
2480 + new Error(`Missing queryFn: '${context.options.queryHash}'`)
2481 + ));
2482 + const fetchPage = async (data, param, previous) => {
2483 + if (cancelled) {
2484 + return Promise.reject();
2485 + }
2486 + if (param == null && data.pages.length) {
2487 + return Promise.resolve(data);
2488 + }
2489 + const queryFnContext = {
2490 + queryKey: context.queryKey,
2491 + pageParam: param,
2492 + direction: previous ? "backward" : "forward",
2493 + meta: context.options.meta
2494 + };
2495 + addSignalProperty(queryFnContext);
2496 + const page = await queryFn(
2497 + queryFnContext
2498 + );
2499 + const { maxPages } = context.options;
2500 + const addTo = previous ? import_utils.addToStart : import_utils.addToEnd;
2501 + return {
2502 + pages: addTo(data.pages, page, maxPages),
2503 + pageParams: addTo(data.pageParams, param, maxPages)
2504 + };
2505 + };
2506 + let result;
2507 + if (direction && oldPages.length) {
2508 + const previous = direction === "backward";
2509 + const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
2510 + const oldData = {
2511 + pages: oldPages,
2512 + pageParams: oldPageParams
2513 + };
2514 + const param = pageParamFn(options, oldData);
2515 + result = await fetchPage(oldData, param, previous);
2516 + } else {
2517 + result = await fetchPage(
2518 + empty,
2519 + oldPageParams[0] ?? options.initialPageParam
2520 + );
2521 + const remainingPages = pages ?? oldPages.length;
2522 + for (let i = 1; i < remainingPages; i++) {
2523 + const param = getNextPageParam(options, result);
2524 + result = await fetchPage(result, param);
2525 + }
2526 + }
2527 + return result;
2528 + };
2529 + if (context.options.persister) {
2530 + context.fetchFn = () => {
2531 + return context.options.persister?.(
2532 + fetchFn,
2533 + {
2534 + queryKey: context.queryKey,
2535 + meta: context.options.meta,
2536 + signal: context.signal
2537 + },
2538 + query
2539 + );
2540 + };
2541 + } else {
2542 + context.fetchFn = fetchFn;
2543 + }
2544 + }
2545 + };
2546 +}
2547 +function getNextPageParam(options, { pages, pageParams }) {
2548 + const lastIndex = pages.length - 1;
2549 + return options.getNextPageParam(
2550 + pages[lastIndex],
2551 + pages,
2552 + pageParams[lastIndex],
2553 + pageParams
2554 + );
2555 +}
2556 +function getPreviousPageParam(options, { pages, pageParams }) {
2557 + return options.getPreviousPageParam?.(
2558 + pages[0],
2559 + pages,
2560 + pageParams[0],
2561 + pageParams
2562 + );
2563 +}
2564 +function hasNextPage(options, data) {
2565 + if (!data)
2566 + return false;
2567 + return getNextPageParam(options, data) != null;
2568 +}
2569 +function hasPreviousPage(options, data) {
2570 + if (!data || !options.getPreviousPageParam)
2571 + return false;
2572 + return getPreviousPageParam(options, data) != null;
2573 +}
2574 +// Annotate the CommonJS export names for ESM import in node:
2575 +0 && (0);
2576 +//# sourceMappingURL=infiniteQueryBehavior.cjs.map
2577 +
2578 +/***/ }),
2579 +
2580 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs":
2581 +/*!***********************************************************************************!*\
2582 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs ***!
2583 + \***********************************************************************************/
2584 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2585 +
2586 +"use strict";
2587 +
2588 +var __defProp = Object.defineProperty;
2589 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2590 +var __getOwnPropNames = Object.getOwnPropertyNames;
2591 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2592 +var __export = (target, all) => {
2593 + for (var name in all)
2594 + __defProp(target, name, { get: all[name], enumerable: true });
2595 +};
2596 +var __copyProps = (to, from, except, desc) => {
2597 + if (from && typeof from === "object" || typeof from === "function") {
2598 + for (let key of __getOwnPropNames(from))
2599 + if (!__hasOwnProp.call(to, key) && key !== except)
2600 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2601 + }
2602 + return to;
2603 +};
2604 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2605 +
2606 +// src/infiniteQueryObserver.ts
2607 +var infiniteQueryObserver_exports = {};
2608 +__export(infiniteQueryObserver_exports, {
2609 + InfiniteQueryObserver: () => InfiniteQueryObserver
2610 +});
2611 +module.exports = __toCommonJS(infiniteQueryObserver_exports);
2612 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
2613 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
2614 +var InfiniteQueryObserver = class extends import_queryObserver.QueryObserver {
2615 + // eslint-disable-next-line @typescript-eslint/no-useless-constructor
2616 + constructor(client, options) {
2617 + super(client, options);
2618 + }
2619 + bindMethods() {
2620 + super.bindMethods();
2621 + this.fetchNextPage = this.fetchNextPage.bind(this);
2622 + this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
2623 + }
2624 + setOptions(options, notifyOptions) {
2625 + super.setOptions(
2626 + {
2627 + ...options,
2628 + behavior: (0, import_infiniteQueryBehavior.infiniteQueryBehavior)()
2629 + },
2630 + notifyOptions
2631 + );
2632 + }
2633 + getOptimisticResult(options) {
2634 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)();
2635 + return super.getOptimisticResult(options);
2636 + }
2637 + fetchNextPage(options) {
2638 + return this.fetch({
2639 + ...options,
2640 + meta: {
2641 + fetchMore: { direction: "forward" }
2642 + }
2643 + });
2644 + }
2645 + fetchPreviousPage(options) {
2646 + return this.fetch({
2647 + ...options,
2648 + meta: {
2649 + fetchMore: { direction: "backward" }
2650 + }
2651 + });
2652 + }
2653 + createResult(query, options) {
2654 + const { state } = query;
2655 + const result = super.createResult(query, options);
2656 + const { isFetching, isRefetching } = result;
2657 + const isFetchingNextPage = isFetching && state.fetchMeta?.fetchMore?.direction === "forward";
2658 + const isFetchingPreviousPage = isFetching && state.fetchMeta?.fetchMore?.direction === "backward";
2659 + return {
2660 + ...result,
2661 + fetchNextPage: this.fetchNextPage,
2662 + fetchPreviousPage: this.fetchPreviousPage,
2663 + hasNextPage: (0, import_infiniteQueryBehavior.hasNextPage)(options, state.data),
2664 + hasPreviousPage: (0, import_infiniteQueryBehavior.hasPreviousPage)(options, state.data),
2665 + isFetchingNextPage,
2666 + isFetchingPreviousPage,
2667 + isRefetching: isRefetching && !isFetchingNextPage && !isFetchingPreviousPage
2668 + };
2669 + }
2670 +};
2671 +// Annotate the CommonJS export names for ESM import in node:
2672 +0 && (0);
2673 +//# sourceMappingURL=infiniteQueryObserver.cjs.map
2674 +
2675 +/***/ }),
2676 +
2677 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs":
2678 +/*!**********************************************************************!*\
2679 + !*** ../node_modules/@tanstack/query-core/build/modern/mutation.cjs ***!
2680 + \**********************************************************************/
2681 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2682 +
2683 +"use strict";
2684 +
2685 +var __defProp = Object.defineProperty;
2686 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2687 +var __getOwnPropNames = Object.getOwnPropertyNames;
2688 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2689 +var __export = (target, all) => {
2690 + for (var name in all)
2691 + __defProp(target, name, { get: all[name], enumerable: true });
2692 +};
2693 +var __copyProps = (to, from, except, desc) => {
2694 + if (from && typeof from === "object" || typeof from === "function") {
2695 + for (let key of __getOwnPropNames(from))
2696 + if (!__hasOwnProp.call(to, key) && key !== except)
2697 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2698 + }
2699 + return to;
2700 +};
2701 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2702 +
2703 +// src/mutation.ts
2704 +var mutation_exports = {};
2705 +__export(mutation_exports, {
2706 + Mutation: () => Mutation,
2707 + getDefaultState: () => getDefaultState
2708 +});
2709 +module.exports = __toCommonJS(mutation_exports);
2710 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
2711 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
2712 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
2713 +var Mutation = class extends import_removable.Removable {
2714 + constructor(config) {
2715 + super();
2716 + this.mutationId = config.mutationId;
2717 + this.#defaultOptions = config.defaultOptions;
2718 + this.#mutationCache = config.mutationCache;
2719 + this.#observers = [];
2720 + this.state = config.state || getDefaultState();
2721 + this.setOptions(config.options);
2722 + this.scheduleGc();
2723 + }
2724 + #observers;
2725 + #defaultOptions;
2726 + #mutationCache;
2727 + #retryer;
2728 + setOptions(options) {
2729 + this.options = { ...this.#defaultOptions, ...options };
2730 + this.updateGcTime(this.options.gcTime);
2731 + }
2732 + get meta() {
2733 + return this.options.meta;
2734 + }
2735 + addObserver(observer) {
2736 + if (!this.#observers.includes(observer)) {
2737 + this.#observers.push(observer);
2738 + this.clearGcTimeout();
2739 + this.#mutationCache.notify({
2740 + type: "observerAdded",
2741 + mutation: this,
2742 + observer
2743 + });
2744 + }
2745 + }
2746 + removeObserver(observer) {
2747 + this.#observers = this.#observers.filter((x) => x !== observer);
2748 + this.scheduleGc();
2749 + this.#mutationCache.notify({
2750 + type: "observerRemoved",
2751 + mutation: this,
2752 + observer
2753 + });
2754 + }
2755 + optionalRemove() {
2756 + if (!this.#observers.length) {
2757 + if (this.state.status === "pending") {
2758 + this.scheduleGc();
2759 + } else {
2760 + this.#mutationCache.remove(this);
2761 + }
2762 + }
2763 + }
2764 + continue() {
2765 + return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
2766 + this.execute(this.state.variables);
2767 + }
2768 + async execute(variables) {
2769 + const executeMutation = () => {
2770 + this.#retryer = (0, import_retryer.createRetryer)({
2771 + fn: () => {
2772 + if (!this.options.mutationFn) {
2773 + return Promise.reject(new Error("No mutationFn found"));
2774 + }
2775 + return this.options.mutationFn(variables);
2776 + },
2777 + onFail: (failureCount, error) => {
2778 + this.#dispatch({ type: "failed", failureCount, error });
2779 + },
2780 + onPause: () => {
2781 + this.#dispatch({ type: "pause" });
2782 + },
2783 + onContinue: () => {
2784 + this.#dispatch({ type: "continue" });
2785 + },
2786 + retry: this.options.retry ?? 0,
2787 + retryDelay: this.options.retryDelay,
2788 + networkMode: this.options.networkMode
2789 + });
2790 + return this.#retryer.promise;
2791 + };
2792 + const restored = this.state.status === "pending";
2793 + try {
2794 + if (!restored) {
2795 + this.#dispatch({ type: "pending", variables });
2796 + await this.#mutationCache.config.onMutate?.(
2797 + variables,
2798 + this
2799 + );
2800 + const context = await this.options.onMutate?.(variables);
2801 + if (context !== this.state.context) {
2802 + this.#dispatch({
2803 + type: "pending",
2804 + context,
2805 + variables
2806 + });
2807 + }
2808 + }
2809 + const data = await executeMutation();
2810 + await this.#mutationCache.config.onSuccess?.(
2811 + data,
2812 + variables,
2813 + this.state.context,
2814 + this
2815 + );
2816 + await this.options.onSuccess?.(data, variables, this.state.context);
2817 + await this.#mutationCache.config.onSettled?.(
2818 + data,
2819 + null,
2820 + this.state.variables,
2821 + this.state.context,
2822 + this
2823 + );
2824 + await this.options.onSettled?.(data, null, variables, this.state.context);
2825 + this.#dispatch({ type: "success", data });
2826 + return data;
2827 + } catch (error) {
2828 + try {
2829 + await this.#mutationCache.config.onError?.(
2830 + error,
2831 + variables,
2832 + this.state.context,
2833 + this
2834 + );
2835 + await this.options.onError?.(
2836 + error,
2837 + variables,
2838 + this.state.context
2839 + );
2840 + await this.#mutationCache.config.onSettled?.(
2841 + void 0,
2842 + error,
2843 + this.state.variables,
2844 + this.state.context,
2845 + this
2846 + );
2847 + await this.options.onSettled?.(
2848 + void 0,
2849 + error,
2850 + variables,
2851 + this.state.context
2852 + );
2853 + throw error;
2854 + } finally {
2855 + this.#dispatch({ type: "error", error });
2856 + }
2857 + }
2858 + }
2859 + #dispatch(action) {
2860 + const reducer = (state) => {
2861 + switch (action.type) {
2862 + case "failed":
2863 + return {
2864 + ...state,
2865 + failureCount: action.failureCount,
2866 + failureReason: action.error
2867 + };
2868 + case "pause":
2869 + return {
2870 + ...state,
2871 + isPaused: true
2872 + };
2873 + case "continue":
2874 + return {
2875 + ...state,
2876 + isPaused: false
2877 + };
2878 + case "pending":
2879 + return {
2880 + ...state,
2881 + context: action.context,
2882 + data: void 0,
2883 + failureCount: 0,
2884 + failureReason: null,
2885 + error: null,
2886 + isPaused: !(0, import_retryer.canFetch)(this.options.networkMode),
2887 + status: "pending",
2888 + variables: action.variables,
2889 + submittedAt: Date.now()
2890 + };
2891 + case "success":
2892 + return {
2893 + ...state,
2894 + data: action.data,
2895 + failureCount: 0,
2896 + failureReason: null,
2897 + error: null,
2898 + status: "success",
2899 + isPaused: false
2900 + };
2901 + case "error":
2902 + return {
2903 + ...state,
2904 + data: void 0,
2905 + error: action.error,
2906 + failureCount: state.failureCount + 1,
2907 + failureReason: action.error,
2908 + isPaused: false,
2909 + status: "error"
2910 + };
2911 + }
2912 + };
2913 + this.state = reducer(this.state);
2914 + import_notifyManager.notifyManager.batch(() => {
2915 + this.#observers.forEach((observer) => {
2916 + observer.onMutationUpdate(action);
2917 + });
2918 + this.#mutationCache.notify({
2919 + mutation: this,
2920 + type: "updated",
2921 + action
2922 + });
2923 + });
2924 + }
2925 +};
2926 +function getDefaultState() {
2927 + return {
2928 + context: void 0,
2929 + data: void 0,
2930 + error: null,
2931 + failureCount: 0,
2932 + failureReason: null,
2933 + isPaused: false,
2934 + status: "idle",
2935 + variables: void 0,
2936 + submittedAt: 0
2937 + };
2938 +}
2939 +// Annotate the CommonJS export names for ESM import in node:
2940 +0 && (0);
2941 +//# sourceMappingURL=mutation.cjs.map
2942 +
2943 +/***/ }),
2944 +
2945 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs":
2946 +/*!***************************************************************************!*\
2947 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs ***!
2948 + \***************************************************************************/
2949 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2950 +
2951 +"use strict";
2952 +
2953 +var __defProp = Object.defineProperty;
2954 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2955 +var __getOwnPropNames = Object.getOwnPropertyNames;
2956 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2957 +var __export = (target, all) => {
2958 + for (var name in all)
2959 + __defProp(target, name, { get: all[name], enumerable: true });
2960 +};
2961 +var __copyProps = (to, from, except, desc) => {
2962 + if (from && typeof from === "object" || typeof from === "function") {
2963 + for (let key of __getOwnPropNames(from))
2964 + if (!__hasOwnProp.call(to, key) && key !== except)
2965 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2966 + }
2967 + return to;
2968 +};
2969 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2970 +
2971 +// src/mutationCache.ts
2972 +var mutationCache_exports = {};
2973 +__export(mutationCache_exports, {
2974 + MutationCache: () => MutationCache
2975 +});
2976 +module.exports = __toCommonJS(mutationCache_exports);
2977 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
2978 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
2979 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2980 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
2981 +var MutationCache = class extends import_subscribable.Subscribable {
2982 + constructor(config = {}) {
2983 + super();
2984 + this.config = config;
2985 + this.#mutations = [];
2986 + this.#mutationId = 0;
2987 + }
2988 + #mutations;
2989 + #mutationId;
2990 + #resuming;
2991 + build(client, options, state) {
2992 + const mutation = new import_mutation.Mutation({
2993 + mutationCache: this,
2994 + mutationId: ++this.#mutationId,
2995 + options: client.defaultMutationOptions(options),
2996 + state
2997 + });
2998 + this.add(mutation);
2999 + return mutation;
3000 + }
3001 + add(mutation) {
3002 + this.#mutations.push(mutation);
3003 + this.notify({ type: "added", mutation });
3004 + }
3005 + remove(mutation) {
3006 + this.#mutations = this.#mutations.filter((x) => x !== mutation);
3007 + this.notify({ type: "removed", mutation });
3008 + }
3009 + clear() {
3010 + import_notifyManager.notifyManager.batch(() => {
3011 + this.#mutations.forEach((mutation) => {
3012 + this.remove(mutation);
3013 + });
3014 + });
3015 + }
3016 + getAll() {
3017 + return this.#mutations;
3018 + }
3019 + find(filters) {
3020 + const defaultedFilters = { exact: true, ...filters };
3021 + return this.#mutations.find(
3022 + (mutation) => (0, import_utils.matchMutation)(defaultedFilters, mutation)
3023 + );
3024 + }
3025 + findAll(filters = {}) {
3026 + return this.#mutations.filter(
3027 + (mutation) => (0, import_utils.matchMutation)(filters, mutation)
3028 + );
3029 + }
3030 + notify(event) {
3031 + import_notifyManager.notifyManager.batch(() => {
3032 + this.listeners.forEach((listener) => {
3033 + listener(event);
3034 + });
3035 + });
3036 + }
3037 + resumePausedMutations() {
3038 + this.#resuming = (this.#resuming ?? Promise.resolve()).then(() => {
3039 + const pausedMutations = this.#mutations.filter((x) => x.state.isPaused);
3040 + return import_notifyManager.notifyManager.batch(
3041 + () => pausedMutations.reduce(
3042 + (promise, mutation) => promise.then(() => mutation.continue().catch(import_utils.noop)),
3043 + Promise.resolve()
3044 + )
3045 + );
3046 + }).then(() => {
3047 + this.#resuming = void 0;
3048 + });
3049 + return this.#resuming;
3050 + }
3051 +};
3052 +// Annotate the CommonJS export names for ESM import in node:
3053 +0 && (0);
3054 +//# sourceMappingURL=mutationCache.cjs.map
3055 +
3056 +/***/ }),
3057 +
3058 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs":
3059 +/*!******************************************************************************!*\
3060 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs ***!
3061 + \******************************************************************************/
3062 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3063 +
3064 +"use strict";
3065 +
3066 +var __defProp = Object.defineProperty;
3067 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3068 +var __getOwnPropNames = Object.getOwnPropertyNames;
3069 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3070 +var __export = (target, all) => {
3071 + for (var name in all)
3072 + __defProp(target, name, { get: all[name], enumerable: true });
3073 +};
3074 +var __copyProps = (to, from, except, desc) => {
3075 + if (from && typeof from === "object" || typeof from === "function") {
3076 + for (let key of __getOwnPropNames(from))
3077 + if (!__hasOwnProp.call(to, key) && key !== except)
3078 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3079 + }
3080 + return to;
3081 +};
3082 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3083 +
3084 +// src/mutationObserver.ts
3085 +var mutationObserver_exports = {};
3086 +__export(mutationObserver_exports, {
3087 + MutationObserver: () => MutationObserver
3088 +});
3089 +module.exports = __toCommonJS(mutationObserver_exports);
3090 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
3091 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3092 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3093 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3094 +var MutationObserver = class extends import_subscribable.Subscribable {
3095 + constructor(client, options) {
3096 + super();
3097 + this.#currentResult = void 0;
3098 + this.#client = client;
3099 + this.setOptions(options);
3100 + this.bindMethods();
3101 + this.#updateResult();
3102 + }
3103 + #client;
3104 + #currentResult;
3105 + #currentMutation;
3106 + #mutateOptions;
3107 + bindMethods() {
3108 + this.mutate = this.mutate.bind(this);
3109 + this.reset = this.reset.bind(this);
3110 + }
3111 + setOptions(options) {
3112 + const prevOptions = this.options;
3113 + this.options = this.#client.defaultMutationOptions(options);
3114 + if (!(0, import_utils.shallowEqualObjects)(prevOptions, this.options)) {
3115 + this.#client.getMutationCache().notify({
3116 + type: "observerOptionsUpdated",
3117 + mutation: this.#currentMutation,
3118 + observer: this
3119 + });
3120 + }
3121 + this.#currentMutation?.setOptions(this.options);
3122 + }
3123 + onUnsubscribe() {
3124 + if (!this.hasListeners()) {
3125 + this.#currentMutation?.removeObserver(this);
3126 + }
3127 + }
3128 + onMutationUpdate(action) {
3129 + this.#updateResult();
3130 + this.#notify(action);
3131 + }
3132 + getCurrentResult() {
3133 + return this.#currentResult;
3134 + }
3135 + reset() {
3136 + this.#currentMutation = void 0;
3137 + this.#updateResult();
3138 + this.#notify();
3139 + }
3140 + mutate(variables, options) {
3141 + this.#mutateOptions = options;
3142 + this.#currentMutation?.removeObserver(this);
3143 + this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);
3144 + this.#currentMutation.addObserver(this);
3145 + return this.#currentMutation.execute(variables);
3146 + }
3147 + #updateResult() {
3148 + const state = this.#currentMutation?.state ?? (0, import_mutation.getDefaultState)();
3149 + this.#currentResult = {
3150 + ...state,
3151 + isPending: state.status === "pending",
3152 + isSuccess: state.status === "success",
3153 + isError: state.status === "error",
3154 + isIdle: state.status === "idle",
3155 + mutate: this.mutate,
3156 + reset: this.reset
3157 + };
3158 + }
3159 + #notify(action) {
3160 + import_notifyManager.notifyManager.batch(() => {
3161 + if (this.#mutateOptions && this.hasListeners()) {
3162 + if (action?.type === "success") {
3163 + this.#mutateOptions.onSuccess?.(
3164 + action.data,
3165 + this.#currentResult.variables,
3166 + this.#currentResult.context
3167 + );
3168 + this.#mutateOptions.onSettled?.(
3169 + action.data,
3170 + null,
3171 + this.#currentResult.variables,
3172 + this.#currentResult.context
3173 + );
3174 + } else if (action?.type === "error") {
3175 + this.#mutateOptions.onError?.(
3176 + action.error,
3177 + this.#currentResult.variables,
3178 + this.#currentResult.context
3179 + );
3180 + this.#mutateOptions.onSettled?.(
3181 + void 0,
3182 + action.error,
3183 + this.#currentResult.variables,
3184 + this.#currentResult.context
3185 + );
3186 + }
3187 + }
3188 + this.listeners.forEach((listener) => {
3189 + listener(this.#currentResult);
3190 + });
3191 + });
3192 + }
3193 +};
3194 +// Annotate the CommonJS export names for ESM import in node:
3195 +0 && (0);
3196 +//# sourceMappingURL=mutationObserver.cjs.map
3197 +
3198 +/***/ }),
3199 +
3200 +/***/ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs":
3201 +/*!***************************************************************************!*\
3202 + !*** ../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs ***!
3203 + \***************************************************************************/
3204 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3205 +
3206 +"use strict";
3207 +
3208 +var __defProp = Object.defineProperty;
3209 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3210 +var __getOwnPropNames = Object.getOwnPropertyNames;
3211 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3212 +var __export = (target, all) => {
3213 + for (var name in all)
3214 + __defProp(target, name, { get: all[name], enumerable: true });
3215 +};
3216 +var __copyProps = (to, from, except, desc) => {
3217 + if (from && typeof from === "object" || typeof from === "function") {
3218 + for (let key of __getOwnPropNames(from))
3219 + if (!__hasOwnProp.call(to, key) && key !== except)
3220 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3221 + }
3222 + return to;
3223 +};
3224 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3225 +
3226 +// src/notifyManager.ts
3227 +var notifyManager_exports = {};
3228 +__export(notifyManager_exports, {
3229 + createNotifyManager: () => createNotifyManager,
3230 + notifyManager: () => notifyManager
3231 +});
3232 +module.exports = __toCommonJS(notifyManager_exports);
3233 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3234 +function createNotifyManager() {
3235 + let queue = [];
3236 + let transactions = 0;
3237 + let notifyFn = (callback) => {
3238 + callback();
3239 + };
3240 + let batchNotifyFn = (callback) => {
3241 + callback();
3242 + };
3243 + const batch = (callback) => {
3244 + let result;
3245 + transactions++;
3246 + try {
3247 + result = callback();
3248 + } finally {
3249 + transactions--;
3250 + if (!transactions) {
3251 + flush();
3252 + }
3253 + }
3254 + return result;
3255 + };
3256 + const schedule = (callback) => {
3257 + if (transactions) {
3258 + queue.push(callback);
3259 + } else {
3260 + (0, import_utils.scheduleMicrotask)(() => {
3261 + notifyFn(callback);
3262 + });
3263 + }
3264 + };
3265 + const batchCalls = (callback) => {
3266 + return (...args) => {
3267 + schedule(() => {
3268 + callback(...args);
3269 + });
3270 + };
3271 + };
3272 + const flush = () => {
3273 + const originalQueue = queue;
3274 + queue = [];
3275 + if (originalQueue.length) {
3276 + (0, import_utils.scheduleMicrotask)(() => {
3277 + batchNotifyFn(() => {
3278 + originalQueue.forEach((callback) => {
3279 + notifyFn(callback);
3280 + });
3281 + });
3282 + });
3283 + }
3284 + };
3285 + const setNotifyFunction = (fn) => {
3286 + notifyFn = fn;
3287 + };
3288 + const setBatchNotifyFunction = (fn) => {
3289 + batchNotifyFn = fn;
3290 + };
3291 + return {
3292 + batch,
3293 + batchCalls,
3294 + schedule,
3295 + setNotifyFunction,
3296 + setBatchNotifyFunction
3297 + };
3298 +}
3299 +var notifyManager = createNotifyManager();
3300 +// Annotate the CommonJS export names for ESM import in node:
3301 +0 && (0);
3302 +//# sourceMappingURL=notifyManager.cjs.map
3303 +
3304 +/***/ }),
3305 +
3306 +/***/ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs":
3307 +/*!***************************************************************************!*\
3308 + !*** ../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs ***!
3309 + \***************************************************************************/
3310 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3311 +
3312 +"use strict";
3313 +
3314 +var __defProp = Object.defineProperty;
3315 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3316 +var __getOwnPropNames = Object.getOwnPropertyNames;
3317 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3318 +var __export = (target, all) => {
3319 + for (var name in all)
3320 + __defProp(target, name, { get: all[name], enumerable: true });
3321 +};
3322 +var __copyProps = (to, from, except, desc) => {
3323 + if (from && typeof from === "object" || typeof from === "function") {
3324 + for (let key of __getOwnPropNames(from))
3325 + if (!__hasOwnProp.call(to, key) && key !== except)
3326 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3327 + }
3328 + return to;
3329 +};
3330 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3331 +
3332 +// src/onlineManager.ts
3333 +var onlineManager_exports = {};
3334 +__export(onlineManager_exports, {
3335 + OnlineManager: () => OnlineManager,
3336 + onlineManager: () => onlineManager
3337 +});
3338 +module.exports = __toCommonJS(onlineManager_exports);
3339 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3340 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3341 +var OnlineManager = class extends import_subscribable.Subscribable {
3342 + #online = true;
3343 + #cleanup;
3344 + #setup;
3345 + constructor() {
3346 + super();
3347 + this.#setup = (onOnline) => {
3348 + if (!import_utils.isServer && window.addEventListener) {
3349 + const onlineListener = () => onOnline(true);
3350 + const offlineListener = () => onOnline(false);
3351 + window.addEventListener("online", onlineListener, false);
3352 + window.addEventListener("offline", offlineListener, false);
3353 + return () => {
3354 + window.removeEventListener("online", onlineListener);
3355 + window.removeEventListener("offline", offlineListener);
3356 + };
3357 + }
3358 + return;
3359 + };
3360 + }
3361 + onSubscribe() {
3362 + if (!this.#cleanup) {
3363 + this.setEventListener(this.#setup);
3364 + }
3365 + }
3366 + onUnsubscribe() {
3367 + if (!this.hasListeners()) {
3368 + this.#cleanup?.();
3369 + this.#cleanup = void 0;
3370 + }
3371 + }
3372 + setEventListener(setup) {
3373 + this.#setup = setup;
3374 + this.#cleanup?.();
3375 + this.#cleanup = setup(this.setOnline.bind(this));
3376 + }
3377 + setOnline(online) {
3378 + const changed = this.#online !== online;
3379 + if (changed) {
3380 + this.#online = online;
3381 + this.listeners.forEach((listener) => {
3382 + listener(online);
3383 + });
3384 + }
3385 + }
3386 + isOnline() {
3387 + return this.#online;
3388 + }
3389 +};
3390 +var onlineManager = new OnlineManager();
3391 +// Annotate the CommonJS export names for ESM import in node:
3392 +0 && (0);
3393 +//# sourceMappingURL=onlineManager.cjs.map
3394 +
3395 +/***/ }),
3396 +
3397 +/***/ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs":
3398 +/*!*****************************************************************************!*\
3399 + !*** ../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs ***!
3400 + \*****************************************************************************/
3401 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3402 +
3403 +"use strict";
3404 +
3405 +var __defProp = Object.defineProperty;
3406 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3407 +var __getOwnPropNames = Object.getOwnPropertyNames;
3408 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3409 +var __export = (target, all) => {
3410 + for (var name in all)
3411 + __defProp(target, name, { get: all[name], enumerable: true });
3412 +};
3413 +var __copyProps = (to, from, except, desc) => {
3414 + if (from && typeof from === "object" || typeof from === "function") {
3415 + for (let key of __getOwnPropNames(from))
3416 + if (!__hasOwnProp.call(to, key) && key !== except)
3417 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3418 + }
3419 + return to;
3420 +};
3421 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3422 +
3423 +// src/queriesObserver.ts
3424 +var queriesObserver_exports = {};
3425 +__export(queriesObserver_exports, {
3426 + QueriesObserver: () => QueriesObserver
3427 +});
3428 +module.exports = __toCommonJS(queriesObserver_exports);
3429 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3430 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
3431 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3432 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3433 +function difference(array1, array2) {
3434 + return array1.filter((x) => !array2.includes(x));
3435 +}
3436 +function replaceAt(array, index, value) {
3437 + const copy = array.slice(0);
3438 + copy[index] = value;
3439 + return copy;
3440 +}
3441 +var QueriesObserver = class extends import_subscribable.Subscribable {
3442 + #client;
3443 + #result;
3444 + #queries;
3445 + #observers;
3446 + #options;
3447 + #combinedResult;
3448 + constructor(client, queries, options) {
3449 + super();
3450 + this.#client = client;
3451 + this.#queries = [];
3452 + this.#observers = [];
3453 + this.#setResult([]);
3454 + this.setQueries(queries, options);
3455 + }
3456 + #setResult(value) {
3457 + this.#result = value;
3458 + this.#combinedResult = this.#combineResult(value);
3459 + }
3460 + onSubscribe() {
3461 + if (this.listeners.size === 1) {
3462 + this.#observers.forEach((observer) => {
3463 + observer.subscribe((result) => {
3464 + this.#onUpdate(observer, result);
3465 + });
3466 + });
3467 + }
3468 + }
3469 + onUnsubscribe() {
3470 + if (!this.listeners.size) {
3471 + this.destroy();
3472 + }
3473 + }
3474 + destroy() {
3475 + this.listeners = /* @__PURE__ */ new Set();
3476 + this.#observers.forEach((observer) => {
3477 + observer.destroy();
3478 + });
3479 + }
3480 + setQueries(queries, options, notifyOptions) {
3481 + this.#queries = queries;
3482 + this.#options = options;
3483 + import_notifyManager.notifyManager.batch(() => {
3484 + const prevObservers = this.#observers;
3485 + const newObserverMatches = this.#findMatchingObservers(this.#queries);
3486 + newObserverMatches.forEach(
3487 + (match) => match.observer.setOptions(match.defaultedQueryOptions, notifyOptions)
3488 + );
3489 + const newObservers = newObserverMatches.map((match) => match.observer);
3490 + const newResult = newObservers.map(
3491 + (observer) => observer.getCurrentResult()
3492 + );
3493 + const hasIndexChange = newObservers.some(
3494 + (observer, index) => observer !== prevObservers[index]
3495 + );
3496 + if (prevObservers.length === newObservers.length && !hasIndexChange) {
3497 + return;
3498 + }
3499 + this.#observers = newObservers;
3500 + this.#setResult(newResult);
3501 + if (!this.hasListeners()) {
3502 + return;
3503 + }
3504 + difference(prevObservers, newObservers).forEach((observer) => {
3505 + observer.destroy();
3506 + });
3507 + difference(newObservers, prevObservers).forEach((observer) => {
3508 + observer.subscribe((result) => {
3509 + this.#onUpdate(observer, result);
3510 + });
3511 + });
3512 + this.#notify();
3513 + });
3514 + }
3515 + getCurrentResult() {
3516 + return this.#combinedResult;
3517 + }
3518 + getQueries() {
3519 + return this.#observers.map((observer) => observer.getCurrentQuery());
3520 + }
3521 + getObservers() {
3522 + return this.#observers;
3523 + }
3524 + getOptimisticResult(queries) {
3525 + const matches = this.#findMatchingObservers(queries);
3526 + const result = matches.map(
3527 + (match) => match.observer.getOptimisticResult(match.defaultedQueryOptions)
3528 + );
3529 + return [
3530 + result,
3531 + (r) => {
3532 + return this.#combineResult(r ?? result);
3533 + },
3534 + () => {
3535 + return matches.map((match, index) => {
3536 + const observerResult = result[index];
3537 + return !match.defaultedQueryOptions.notifyOnChangeProps ? match.observer.trackResult(observerResult) : observerResult;
3538 + });
3539 + }
3540 + ];
3541 + }
3542 + #combineResult(input) {
3543 + const combine = this.#options?.combine;
3544 + if (combine) {
3545 + return (0, import_utils.replaceEqualDeep)(this.#combinedResult, combine(input));
3546 + }
3547 + return input;
3548 + }
3549 + #findMatchingObservers(queries) {
3550 + const prevObservers = this.#observers;
3551 + const prevObserversMap = new Map(
3552 + prevObservers.map((observer) => [observer.options.queryHash, observer])
3553 + );
3554 + const defaultedQueryOptions = queries.map(
3555 + (options) => this.#client.defaultQueryOptions(options)
3556 + );
3557 + const matchingObservers = defaultedQueryOptions.flatMap((defaultedOptions) => {
3558 + const match = prevObserversMap.get(defaultedOptions.queryHash);
3559 + if (match != null) {
3560 + return [{ defaultedQueryOptions: defaultedOptions, observer: match }];
3561 + }
3562 + return [];
3563 + });
3564 + const matchedQueryHashes = new Set(
3565 + matchingObservers.map((match) => match.defaultedQueryOptions.queryHash)
3566 + );
3567 + const unmatchedQueries = defaultedQueryOptions.filter(
3568 + (defaultedOptions) => !matchedQueryHashes.has(defaultedOptions.queryHash)
3569 + );
3570 + const getObserver = (options) => {
3571 + const defaultedOptions = this.#client.defaultQueryOptions(options);
3572 + const currentObserver = this.#observers.find(
3573 + (o) => o.options.queryHash === defaultedOptions.queryHash
3574 + );
3575 + return currentObserver ?? new import_queryObserver.QueryObserver(this.#client, defaultedOptions);
3576 + };
3577 + const newOrReusedObservers = unmatchedQueries.map((options) => {
3578 + return {
3579 + defaultedQueryOptions: options,
3580 + observer: getObserver(options)
3581 + };
3582 + });
3583 + const sortMatchesByOrderOfQueries = (a, b) => defaultedQueryOptions.indexOf(a.defaultedQueryOptions) - defaultedQueryOptions.indexOf(b.defaultedQueryOptions);
3584 + return matchingObservers.concat(newOrReusedObservers).sort(sortMatchesByOrderOfQueries);
3585 + }
3586 + #onUpdate(observer, result) {
3587 + const index = this.#observers.indexOf(observer);
3588 + if (index !== -1) {
3589 + this.#setResult(replaceAt(this.#result, index, result));
3590 + this.#notify();
3591 + }
3592 + }
3593 + #notify() {
3594 + import_notifyManager.notifyManager.batch(() => {
3595 + this.listeners.forEach((listener) => {
3596 + listener(this.#result);
3597 + });
3598 + });
3599 + }
3600 +};
3601 +// Annotate the CommonJS export names for ESM import in node:
3602 +0 && (0);
3603 +//# sourceMappingURL=queriesObserver.cjs.map
3604 +
3605 +/***/ }),
3606 +
3607 +/***/ "../node_modules/@tanstack/query-core/build/modern/query.cjs":
3608 +/*!*******************************************************************!*\
3609 + !*** ../node_modules/@tanstack/query-core/build/modern/query.cjs ***!
3610 + \*******************************************************************/
3611 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3612 +
3613 +"use strict";
3614 +
3615 +var __defProp = Object.defineProperty;
3616 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3617 +var __getOwnPropNames = Object.getOwnPropertyNames;
3618 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3619 +var __export = (target, all) => {
3620 + for (var name in all)
3621 + __defProp(target, name, { get: all[name], enumerable: true });
3622 +};
3623 +var __copyProps = (to, from, except, desc) => {
3624 + if (from && typeof from === "object" || typeof from === "function") {
3625 + for (let key of __getOwnPropNames(from))
3626 + if (!__hasOwnProp.call(to, key) && key !== except)
3627 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3628 + }
3629 + return to;
3630 +};
3631 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3632 +
3633 +// src/query.ts
3634 +var query_exports = {};
3635 +__export(query_exports, {
3636 + Query: () => Query
3637 +});
3638 +module.exports = __toCommonJS(query_exports);
3639 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3640 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3641 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3642 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
3643 +var Query = class extends import_removable.Removable {
3644 + constructor(config) {
3645 + super();
3646 + this.#abortSignalConsumed = false;
3647 + this.#defaultOptions = config.defaultOptions;
3648 + this.#setOptions(config.options);
3649 + this.#observers = [];
3650 + this.#cache = config.cache;
3651 + this.queryKey = config.queryKey;
3652 + this.queryHash = config.queryHash;
3653 + this.#initialState = config.state || getDefaultState(this.options);
3654 + this.state = this.#initialState;
3655 + this.scheduleGc();
3656 + }
3657 + #initialState;
3658 + #revertState;
3659 + #cache;
3660 + #promise;
3661 + #retryer;
3662 + #observers;
3663 + #defaultOptions;
3664 + #abortSignalConsumed;
3665 + get meta() {
3666 + return this.options.meta;
3667 + }
3668 + #setOptions(options) {
3669 + this.options = { ...this.#defaultOptions, ...options };
3670 + this.updateGcTime(this.options.gcTime);
3671 + }
3672 + optionalRemove() {
3673 + if (!this.#observers.length && this.state.fetchStatus === "idle") {
3674 + this.#cache.remove(this);
3675 + }
3676 + }
3677 + setData(newData, options) {
3678 + const data = (0, import_utils.replaceData)(this.state.data, newData, this.options);
3679 + this.#dispatch({
3680 + data,
3681 + type: "success",
3682 + dataUpdatedAt: options?.updatedAt,
3683 + manual: options?.manual
3684 + });
3685 + return data;
3686 + }
3687 + setState(state, setStateOptions) {
3688 + this.#dispatch({ type: "setState", state, setStateOptions });
3689 + }
3690 + cancel(options) {
3691 + const promise = this.#promise;
3692 + this.#retryer?.cancel(options);
3693 + return promise ? promise.then(import_utils.noop).catch(import_utils.noop) : Promise.resolve();
3694 + }
3695 + destroy() {
3696 + super.destroy();
3697 + this.cancel({ silent: true });
3698 + }
3699 + reset() {
3700 + this.destroy();
3701 + this.setState(this.#initialState);
3702 + }
3703 + isActive() {
3704 + return this.#observers.some(
3705 + (observer) => observer.options.enabled !== false
3706 + );
3707 + }
3708 + isDisabled() {
3709 + return this.getObserversCount() > 0 && !this.isActive();
3710 + }
3711 + isStale() {
3712 + return this.state.isInvalidated || !this.state.dataUpdatedAt || this.#observers.some((observer) => observer.getCurrentResult().isStale);
3713 + }
3714 + isStaleByTime(staleTime = 0) {
3715 + return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, import_utils.timeUntilStale)(this.state.dataUpdatedAt, staleTime);
3716 + }
3717 + onFocus() {
3718 + const observer = this.#observers.find((x) => x.shouldFetchOnWindowFocus());
3719 + observer?.refetch({ cancelRefetch: false });
3720 + this.#retryer?.continue();
3721 + }
3722 + onOnline() {
3723 + const observer = this.#observers.find((x) => x.shouldFetchOnReconnect());
3724 + observer?.refetch({ cancelRefetch: false });
3725 + this.#retryer?.continue();
3726 + }
3727 + addObserver(observer) {
3728 + if (!this.#observers.includes(observer)) {
3729 + this.#observers.push(observer);
3730 + this.clearGcTimeout();
3731 + this.#cache.notify({ type: "observerAdded", query: this, observer });
3732 + }
3733 + }
3734 + removeObserver(observer) {
3735 + if (this.#observers.includes(observer)) {
3736 + this.#observers = this.#observers.filter((x) => x !== observer);
3737 + if (!this.#observers.length) {
3738 + if (this.#retryer) {
3739 + if (this.#abortSignalConsumed) {
3740 + this.#retryer.cancel({ revert: true });
3741 + } else {
3742 + this.#retryer.cancelRetry();
3743 + }
3744 + }
3745 + this.scheduleGc();
3746 + }
3747 + this.#cache.notify({ type: "observerRemoved", query: this, observer });
3748 + }
3749 + }
3750 + getObserversCount() {
3751 + return this.#observers.length;
3752 + }
3753 + invalidate() {
3754 + if (!this.state.isInvalidated) {
3755 + this.#dispatch({ type: "invalidate" });
3756 + }
3757 + }
3758 + fetch(options, fetchOptions) {
3759 + if (this.state.fetchStatus !== "idle") {
3760 + if (this.state.dataUpdatedAt && fetchOptions?.cancelRefetch) {
3761 + this.cancel({ silent: true });
3762 + } else if (this.#promise) {
3763 + this.#retryer?.continueRetry();
3764 + return this.#promise;
3765 + }
3766 + }
3767 + if (options) {
3768 + this.#setOptions(options);
3769 + }
3770 + if (!this.options.queryFn) {
3771 + const observer = this.#observers.find((x) => x.options.queryFn);
3772 + if (observer) {
3773 + this.#setOptions(observer.options);
3774 + }
3775 + }
3776 + if (true) {
3777 + if (!Array.isArray(this.options.queryKey)) {
3778 + console.error(
3779 + `As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`
3780 + );
3781 + }
3782 + }
3783 + const abortController = new AbortController();
3784 + const queryFnContext = {
3785 + queryKey: this.queryKey,
3786 + meta: this.meta
3787 + };
3788 + const addSignalProperty = (object) => {
3789 + Object.defineProperty(object, "signal", {
3790 + enumerable: true,
3791 + get: () => {
3792 + this.#abortSignalConsumed = true;
3793 + return abortController.signal;
3794 + }
3795 + });
3796 + };
3797 + addSignalProperty(queryFnContext);
3798 + const fetchFn = () => {
3799 + if (!this.options.queryFn) {
3800 + return Promise.reject(
3801 + new Error(`Missing queryFn: '${this.options.queryHash}'`)
3802 + );
3803 + }
3804 + this.#abortSignalConsumed = false;
3805 + if (this.options.persister) {
3806 + return this.options.persister(
3807 + this.options.queryFn,
3808 + queryFnContext,
3809 + this
3810 + );
3811 + }
3812 + return this.options.queryFn(
3813 + queryFnContext
3814 + );
3815 + };
3816 + const context = {
3817 + fetchOptions,
3818 + options: this.options,
3819 + queryKey: this.queryKey,
3820 + state: this.state,
3821 + fetchFn
3822 + };
3823 + addSignalProperty(context);
3824 + this.options.behavior?.onFetch(
3825 + context,
3826 + this
3827 + );
3828 + this.#revertState = this.state;
3829 + if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== context.fetchOptions?.meta) {
3830 + this.#dispatch({ type: "fetch", meta: context.fetchOptions?.meta });
3831 + }
3832 + const onError = (error) => {
3833 + if (!((0, import_retryer.isCancelledError)(error) && error.silent)) {
3834 + this.#dispatch({
3835 + type: "error",
3836 + error
3837 + });
3838 + }
3839 + if (!(0, import_retryer.isCancelledError)(error)) {
3840 + this.#cache.config.onError?.(
3841 + error,
3842 + this
3843 + );
3844 + this.#cache.config.onSettled?.(
3845 + this.state.data,
3846 + error,
3847 + this
3848 + );
3849 + }
3850 + if (!this.isFetchingOptimistic) {
3851 + this.scheduleGc();
3852 + }
3853 + this.isFetchingOptimistic = false;
3854 + };
3855 + this.#retryer = (0, import_retryer.createRetryer)({
3856 + fn: context.fetchFn,
3857 + abort: abortController.abort.bind(abortController),
3858 + onSuccess: (data) => {
3859 + if (typeof data === "undefined") {
3860 + if (true) {
3861 + console.error(
3862 + `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
3863 + );
3864 + }
3865 + onError(new Error(`${this.queryHash} data is undefined`));
3866 + return;
3867 + }
3868 + this.setData(data);
3869 + this.#cache.config.onSuccess?.(data, this);
3870 + this.#cache.config.onSettled?.(
3871 + data,
3872 + this.state.error,
3873 + this
3874 + );
3875 + if (!this.isFetchingOptimistic) {
3876 + this.scheduleGc();
3877 + }
3878 + this.isFetchingOptimistic = false;
3879 + },
3880 + onError,
3881 + onFail: (failureCount, error) => {
3882 + this.#dispatch({ type: "failed", failureCount, error });
3883 + },
3884 + onPause: () => {
3885 + this.#dispatch({ type: "pause" });
3886 + },
3887 + onContinue: () => {
3888 + this.#dispatch({ type: "continue" });
3889 + },
3890 + retry: context.options.retry,
3891 + retryDelay: context.options.retryDelay,
3892 + networkMode: context.options.networkMode
3893 + });
3894 + this.#promise = this.#retryer.promise;
3895 + return this.#promise;
3896 + }
3897 + #dispatch(action) {
3898 + const reducer = (state) => {
3899 + switch (action.type) {
3900 + case "failed":
3901 + return {
3902 + ...state,
3903 + fetchFailureCount: action.failureCount,
3904 + fetchFailureReason: action.error
3905 + };
3906 + case "pause":
3907 + return {
3908 + ...state,
3909 + fetchStatus: "paused"
3910 + };
3911 + case "continue":
3912 + return {
3913 + ...state,
3914 + fetchStatus: "fetching"
3915 + };
3916 + case "fetch":
3917 + return {
3918 + ...state,
3919 + fetchFailureCount: 0,
3920 + fetchFailureReason: null,
3921 + fetchMeta: action.meta ?? null,
3922 + fetchStatus: (0, import_retryer.canFetch)(this.options.networkMode) ? "fetching" : "paused",
3923 + ...!state.dataUpdatedAt && {
3924 + error: null,
3925 + status: "pending"
3926 + }
3927 + };
3928 + case "success":
3929 + return {
3930 + ...state,
3931 + data: action.data,
3932 + dataUpdateCount: state.dataUpdateCount + 1,
3933 + dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),
3934 + error: null,
3935 + isInvalidated: false,
3936 + status: "success",
3937 + ...!action.manual && {
3938 + fetchStatus: "idle",
3939 + fetchFailureCount: 0,
3940 + fetchFailureReason: null
3941 + }
3942 + };
3943 + case "error":
3944 + const error = action.error;
3945 + if ((0, import_retryer.isCancelledError)(error) && error.revert && this.#revertState) {
3946 + return { ...this.#revertState, fetchStatus: "idle" };
3947 + }
3948 + return {
3949 + ...state,
3950 + error,
3951 + errorUpdateCount: state.errorUpdateCount + 1,
3952 + errorUpdatedAt: Date.now(),
3953 + fetchFailureCount: state.fetchFailureCount + 1,
3954 + fetchFailureReason: error,
3955 + fetchStatus: "idle",
3956 + status: "error"
3957 + };
3958 + case "invalidate":
3959 + return {
3960 + ...state,
3961 + isInvalidated: true
3962 + };
3963 + case "setState":
3964 + return {
3965 + ...state,
3966 + ...action.state
3967 + };
3968 + }
3969 + };
3970 + this.state = reducer(this.state);
3971 + import_notifyManager.notifyManager.batch(() => {
3972 + this.#observers.forEach((observer) => {
3973 + observer.onQueryUpdate();
3974 + });
3975 + this.#cache.notify({ query: this, type: "updated", action });
3976 + });
3977 + }
3978 +};
3979 +function getDefaultState(options) {
3980 + const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
3981 + const hasData = typeof data !== "undefined";
3982 + const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === "function" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
3983 + return {
3984 + data,
3985 + dataUpdateCount: 0,
3986 + dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,
3987 + error: null,
3988 + errorUpdateCount: 0,
3989 + errorUpdatedAt: 0,
3990 + fetchFailureCount: 0,
3991 + fetchFailureReason: null,
3992 + fetchMeta: null,
3993 + isInvalidated: false,
3994 + status: hasData ? "success" : "pending",
3995 + fetchStatus: "idle"
3996 + };
3997 +}
3998 +// Annotate the CommonJS export names for ESM import in node:
3999 +0 && (0);
4000 +//# sourceMappingURL=query.cjs.map
4001 +
4002 +/***/ }),
4003 +
4004 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs":
4005 +/*!************************************************************************!*\
4006 + !*** ../node_modules/@tanstack/query-core/build/modern/queryCache.cjs ***!
4007 + \************************************************************************/
4008 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4009 +
4010 +"use strict";
4011 +
4012 +var __defProp = Object.defineProperty;
4013 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4014 +var __getOwnPropNames = Object.getOwnPropertyNames;
4015 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4016 +var __export = (target, all) => {
4017 + for (var name in all)
4018 + __defProp(target, name, { get: all[name], enumerable: true });
4019 +};
4020 +var __copyProps = (to, from, except, desc) => {
4021 + if (from && typeof from === "object" || typeof from === "function") {
4022 + for (let key of __getOwnPropNames(from))
4023 + if (!__hasOwnProp.call(to, key) && key !== except)
4024 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4025 + }
4026 + return to;
4027 +};
4028 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4029 +
4030 +// src/queryCache.ts
4031 +var queryCache_exports = {};
4032 +__export(queryCache_exports, {
4033 + QueryCache: () => QueryCache
4034 +});
4035 +module.exports = __toCommonJS(queryCache_exports);
4036 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4037 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
4038 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4039 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4040 +var QueryCache = class extends import_subscribable.Subscribable {
4041 + constructor(config = {}) {
4042 + super();
4043 + this.config = config;
4044 + this.#queries = /* @__PURE__ */ new Map();
4045 + }
4046 + #queries;
4047 + build(client, options, state) {
4048 + const queryKey = options.queryKey;
4049 + const queryHash = options.queryHash ?? (0, import_utils.hashQueryKeyByOptions)(queryKey, options);
4050 + let query = this.get(queryHash);
4051 + if (!query) {
4052 + query = new import_query.Query({
4053 + cache: this,
4054 + queryKey,
4055 + queryHash,
4056 + options: client.defaultQueryOptions(options),
4057 + state,
4058 + defaultOptions: client.getQueryDefaults(queryKey)
4059 + });
4060 + this.add(query);
4061 + }
4062 + return query;
4063 + }
4064 + add(query) {
4065 + if (!this.#queries.has(query.queryHash)) {
4066 + this.#queries.set(query.queryHash, query);
4067 + this.notify({
4068 + type: "added",
4069 + query
4070 + });
4071 + }
4072 + }
4073 + remove(query) {
4074 + const queryInMap = this.#queries.get(query.queryHash);
4075 + if (queryInMap) {
4076 + query.destroy();
4077 + if (queryInMap === query) {
4078 + this.#queries.delete(query.queryHash);
4079 + }
4080 + this.notify({ type: "removed", query });
4081 + }
4082 + }
4083 + clear() {
4084 + import_notifyManager.notifyManager.batch(() => {
4085 + this.getAll().forEach((query) => {
4086 + this.remove(query);
4087 + });
4088 + });
4089 + }
4090 + get(queryHash) {
4091 + return this.#queries.get(queryHash);
4092 + }
4093 + getAll() {
4094 + return [...this.#queries.values()];
4095 + }
4096 + find(filters) {
4097 + const defaultedFilters = { exact: true, ...filters };
4098 + return this.getAll().find(
4099 + (query) => (0, import_utils.matchQuery)(defaultedFilters, query)
4100 + );
4101 + }
4102 + findAll(filters = {}) {
4103 + const queries = this.getAll();
4104 + return Object.keys(filters).length > 0 ? queries.filter((query) => (0, import_utils.matchQuery)(filters, query)) : queries;
4105 + }
4106 + notify(event) {
4107 + import_notifyManager.notifyManager.batch(() => {
4108 + this.listeners.forEach((listener) => {
4109 + listener(event);
4110 + });
4111 + });
4112 + }
4113 + onFocus() {
4114 + import_notifyManager.notifyManager.batch(() => {
4115 + this.getAll().forEach((query) => {
4116 + query.onFocus();
4117 + });
4118 + });
4119 + }
4120 + onOnline() {
4121 + import_notifyManager.notifyManager.batch(() => {
4122 + this.getAll().forEach((query) => {
4123 + query.onOnline();
4124 + });
4125 + });
4126 + }
4127 +};
4128 +// Annotate the CommonJS export names for ESM import in node:
4129 +0 && (0);
4130 +//# sourceMappingURL=queryCache.cjs.map
4131 +
4132 +/***/ }),
4133 +
4134 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs":
4135 +/*!*************************************************************************!*\
4136 + !*** ../node_modules/@tanstack/query-core/build/modern/queryClient.cjs ***!
4137 + \*************************************************************************/
4138 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4139 +
4140 +"use strict";
4141 +
4142 +var __defProp = Object.defineProperty;
4143 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4144 +var __getOwnPropNames = Object.getOwnPropertyNames;
4145 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4146 +var __export = (target, all) => {
4147 + for (var name in all)
4148 + __defProp(target, name, { get: all[name], enumerable: true });
4149 +};
4150 +var __copyProps = (to, from, except, desc) => {
4151 + if (from && typeof from === "object" || typeof from === "function") {
4152 + for (let key of __getOwnPropNames(from))
4153 + if (!__hasOwnProp.call(to, key) && key !== except)
4154 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4155 + }
4156 + return to;
4157 +};
4158 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4159 +
4160 +// src/queryClient.ts
4161 +var queryClient_exports = {};
4162 +__export(queryClient_exports, {
4163 + QueryClient: () => QueryClient
4164 +});
4165 +module.exports = __toCommonJS(queryClient_exports);
4166 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4167 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
4168 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
4169 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
4170 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
4171 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4172 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
4173 +var QueryClient = class {
4174 + #queryCache;
4175 + #mutationCache;
4176 + #defaultOptions;
4177 + #queryDefaults;
4178 + #mutationDefaults;
4179 + #mountCount;
4180 + #unsubscribeFocus;
4181 + #unsubscribeOnline;
4182 + constructor(config = {}) {
4183 + this.#queryCache = config.queryCache || new import_queryCache.QueryCache();
4184 + this.#mutationCache = config.mutationCache || new import_mutationCache.MutationCache();
4185 + this.#defaultOptions = config.defaultOptions || {};
4186 + this.#queryDefaults = /* @__PURE__ */ new Map();
4187 + this.#mutationDefaults = /* @__PURE__ */ new Map();
4188 + this.#mountCount = 0;
4189 + }
4190 + mount() {
4191 + this.#mountCount++;
4192 + if (this.#mountCount !== 1)
4193 + return;
4194 + this.#unsubscribeFocus = import_focusManager.focusManager.subscribe(() => {
4195 + if (import_focusManager.focusManager.isFocused()) {
4196 + this.resumePausedMutations();
4197 + this.#queryCache.onFocus();
4198 + }
4199 + });
4200 + this.#unsubscribeOnline = import_onlineManager.onlineManager.subscribe(() => {
4201 + if (import_onlineManager.onlineManager.isOnline()) {
4202 + this.resumePausedMutations();
4203 + this.#queryCache.onOnline();
4204 + }
4205 + });
4206 + }
4207 + unmount() {
4208 + this.#mountCount--;
4209 + if (this.#mountCount !== 0)
4210 + return;
4211 + this.#unsubscribeFocus?.();
4212 + this.#unsubscribeFocus = void 0;
4213 + this.#unsubscribeOnline?.();
4214 + this.#unsubscribeOnline = void 0;
4215 + }
4216 + isFetching(filters) {
4217 + return this.#queryCache.findAll({ ...filters, fetchStatus: "fetching" }).length;
4218 + }
4219 + isMutating(filters) {
4220 + return this.#mutationCache.findAll({ ...filters, status: "pending" }).length;
4221 + }
4222 + getQueryData(queryKey) {
4223 + return this.#queryCache.find({ queryKey })?.state.data;
4224 + }
4225 + ensureQueryData(options) {
4226 + const cachedData = this.getQueryData(options.queryKey);
4227 + return cachedData !== void 0 ? Promise.resolve(cachedData) : this.fetchQuery(options);
4228 + }
4229 + getQueriesData(filters) {
4230 + return this.getQueryCache().findAll(filters).map(({ queryKey, state }) => {
4231 + const data = state.data;
4232 + return [queryKey, data];
4233 + });
4234 + }
4235 + setQueryData(queryKey, updater, options) {
4236 + const query = this.#queryCache.find({ queryKey });
4237 + const prevData = query?.state.data;
4238 + const data = (0, import_utils.functionalUpdate)(updater, prevData);
4239 + if (typeof data === "undefined") {
4240 + return void 0;
4241 + }
4242 + const defaultedOptions = this.defaultQueryOptions({ queryKey });
4243 + return this.#queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true });
4244 + }
4245 + setQueriesData(filters, updater, options) {
4246 + return import_notifyManager.notifyManager.batch(
4247 + () => this.getQueryCache().findAll(filters).map(({ queryKey }) => [
4248 + queryKey,
4249 + this.setQueryData(queryKey, updater, options)
4250 + ])
4251 + );
4252 + }
4253 + getQueryState(queryKey) {
4254 + return this.#queryCache.find({ queryKey })?.state;
4255 + }
4256 + removeQueries(filters) {
4257 + const queryCache = this.#queryCache;
4258 + import_notifyManager.notifyManager.batch(() => {
4259 + queryCache.findAll(filters).forEach((query) => {
4260 + queryCache.remove(query);
4261 + });
4262 + });
4263 + }
4264 + resetQueries(filters, options) {
4265 + const queryCache = this.#queryCache;
4266 + const refetchFilters = {
4267 + type: "active",
4268 + ...filters
4269 + };
4270 + return import_notifyManager.notifyManager.batch(() => {
4271 + queryCache.findAll(filters).forEach((query) => {
4272 + query.reset();
4273 + });
4274 + return this.refetchQueries(refetchFilters, options);
4275 + });
4276 + }
4277 + cancelQueries(filters = {}, cancelOptions = {}) {
4278 + const defaultedCancelOptions = { revert: true, ...cancelOptions };
4279 + const promises = import_notifyManager.notifyManager.batch(
4280 + () => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
4281 + );
4282 + return Promise.all(promises).then(import_utils.noop).catch(import_utils.noop);
4283 + }
4284 + invalidateQueries(filters = {}, options = {}) {
4285 + return import_notifyManager.notifyManager.batch(() => {
4286 + this.#queryCache.findAll(filters).forEach((query) => {
4287 + query.invalidate();
4288 + });
4289 + if (filters.refetchType === "none") {
4290 + return Promise.resolve();
4291 + }
4292 + const refetchFilters = {
4293 + ...filters,
4294 + type: filters.refetchType ?? filters.type ?? "active"
4295 + };
4296 + return this.refetchQueries(refetchFilters, options);
4297 + });
4298 + }
4299 + refetchQueries(filters = {}, options) {
4300 + const fetchOptions = {
4301 + ...options,
4302 + cancelRefetch: options?.cancelRefetch ?? true
4303 + };
4304 + const promises = import_notifyManager.notifyManager.batch(
4305 + () => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
4306 + let promise = query.fetch(void 0, fetchOptions);
4307 + if (!fetchOptions.throwOnError) {
4308 + promise = promise.catch(import_utils.noop);
4309 + }
4310 + return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
4311 + })
4312 + );
4313 + return Promise.all(promises).then(import_utils.noop);
4314 + }
4315 + fetchQuery(options) {
4316 + const defaultedOptions = this.defaultQueryOptions(options);
4317 + if (typeof defaultedOptions.retry === "undefined") {
4318 + defaultedOptions.retry = false;
4319 + }
4320 + const query = this.#queryCache.build(this, defaultedOptions);
4321 + return query.isStaleByTime(defaultedOptions.staleTime) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
4322 + }
4323 + prefetchQuery(options) {
4324 + return this.fetchQuery(options).then(import_utils.noop).catch(import_utils.noop);
4325 + }
4326 + fetchInfiniteQuery(options) {
4327 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)(options.pages);
4328 + return this.fetchQuery(options);
4329 + }
4330 + prefetchInfiniteQuery(options) {
4331 + return this.fetchInfiniteQuery(options).then(import_utils.noop).catch(import_utils.noop);
4332 + }
4333 + resumePausedMutations() {
4334 + return this.#mutationCache.resumePausedMutations();
4335 + }
4336 + getQueryCache() {
4337 + return this.#queryCache;
4338 + }
4339 + getMutationCache() {
4340 + return this.#mutationCache;
4341 + }
4342 + getDefaultOptions() {
4343 + return this.#defaultOptions;
4344 + }
4345 + setDefaultOptions(options) {
4346 + this.#defaultOptions = options;
4347 + }
4348 + setQueryDefaults(queryKey, options) {
4349 + this.#queryDefaults.set((0, import_utils.hashKey)(queryKey), {
4350 + queryKey,
4351 + defaultOptions: options
4352 + });
4353 + }
4354 + getQueryDefaults(queryKey) {
4355 + const defaults = [...this.#queryDefaults.values()];
4356 + let result = {};
4357 + defaults.forEach((queryDefault) => {
4358 + if ((0, import_utils.partialMatchKey)(queryKey, queryDefault.queryKey)) {
4359 + result = { ...result, ...queryDefault.defaultOptions };
4360 + }
4361 + });
4362 + return result;
4363 + }
4364 + setMutationDefaults(mutationKey, options) {
4365 + this.#mutationDefaults.set((0, import_utils.hashKey)(mutationKey), {
4366 + mutationKey,
4367 + defaultOptions: options
4368 + });
4369 + }
4370 + getMutationDefaults(mutationKey) {
4371 + const defaults = [...this.#mutationDefaults.values()];
4372 + let result = {};
4373 + defaults.forEach((queryDefault) => {
4374 + if ((0, import_utils.partialMatchKey)(mutationKey, queryDefault.mutationKey)) {
4375 + result = { ...result, ...queryDefault.defaultOptions };
4376 + }
4377 + });
4378 + return result;
4379 + }
4380 + defaultQueryOptions(options) {
4381 + if (options?._defaulted) {
4382 + return options;
4383 + }
4384 + const defaultedOptions = {
4385 + ...this.#defaultOptions.queries,
4386 + ...options?.queryKey && this.getQueryDefaults(options.queryKey),
4387 + ...options,
4388 + _defaulted: true
4389 + };
4390 + if (!defaultedOptions.queryHash) {
4391 + defaultedOptions.queryHash = (0, import_utils.hashQueryKeyByOptions)(
4392 + defaultedOptions.queryKey,
4393 + defaultedOptions
4394 + );
4395 + }
4396 + if (typeof defaultedOptions.refetchOnReconnect === "undefined") {
4397 + defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
4398 + }
4399 + if (typeof defaultedOptions.throwOnError === "undefined") {
4400 + defaultedOptions.throwOnError = !!defaultedOptions.suspense;
4401 + }
4402 + if (typeof defaultedOptions.networkMode === "undefined" && defaultedOptions.persister) {
4403 + defaultedOptions.networkMode = "offlineFirst";
4404 + }
4405 + return defaultedOptions;
4406 + }
4407 + defaultMutationOptions(options) {
4408 + if (options?._defaulted) {
4409 + return options;
4410 + }
4411 + return {
4412 + ...this.#defaultOptions.mutations,
4413 + ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),
4414 + ...options,
4415 + _defaulted: true
4416 + };
4417 + }
4418 + clear() {
4419 + this.#queryCache.clear();
4420 + this.#mutationCache.clear();
4421 + }
4422 +};
4423 +// Annotate the CommonJS export names for ESM import in node:
4424 +0 && (0);
4425 +//# sourceMappingURL=queryClient.cjs.map
4426 +
4427 +/***/ }),
4428 +
4429 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs":
4430 +/*!***************************************************************************!*\
4431 + !*** ../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs ***!
4432 + \***************************************************************************/
4433 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4434 +
4435 +"use strict";
4436 +
4437 +var __defProp = Object.defineProperty;
4438 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4439 +var __getOwnPropNames = Object.getOwnPropertyNames;
4440 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4441 +var __export = (target, all) => {
4442 + for (var name in all)
4443 + __defProp(target, name, { get: all[name], enumerable: true });
4444 +};
4445 +var __copyProps = (to, from, except, desc) => {
4446 + if (from && typeof from === "object" || typeof from === "function") {
4447 + for (let key of __getOwnPropNames(from))
4448 + if (!__hasOwnProp.call(to, key) && key !== except)
4449 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4450 + }
4451 + return to;
4452 +};
4453 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4454 +
4455 +// src/queryObserver.ts
4456 +var queryObserver_exports = {};
4457 +__export(queryObserver_exports, {
4458 + QueryObserver: () => QueryObserver
4459 +});
4460 +module.exports = __toCommonJS(queryObserver_exports);
4461 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4462 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4463 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
4464 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4465 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
4466 +var QueryObserver = class extends import_subscribable.Subscribable {
4467 + constructor(client, options) {
4468 + super();
4469 + this.#currentQuery = void 0;
4470 + this.#currentQueryInitialState = void 0;
4471 + this.#currentResult = void 0;
4472 + this.#trackedProps = /* @__PURE__ */ new Set();
4473 + this.#client = client;
4474 + this.options = options;
4475 + this.#selectError = null;
4476 + this.bindMethods();
4477 + this.setOptions(options);
4478 + }
4479 + #client;
4480 + #currentQuery;
4481 + #currentQueryInitialState;
4482 + #currentResult;
4483 + #currentResultState;
4484 + #currentResultOptions;
4485 + #selectError;
4486 + #selectFn;
4487 + #selectResult;
4488 + // This property keeps track of the last query with defined data.
4489 + // It will be used to pass the previous data and query to the placeholder function between renders.
4490 + #lastQueryWithDefinedData;
4491 + #staleTimeoutId;
4492 + #refetchIntervalId;
4493 + #currentRefetchInterval;
4494 + #trackedProps;
4495 + bindMethods() {
4496 + this.refetch = this.refetch.bind(this);
4497 + }
4498 + onSubscribe() {
4499 + if (this.listeners.size === 1) {
4500 + this.#currentQuery.addObserver(this);
4501 + if (shouldFetchOnMount(this.#currentQuery, this.options)) {
4502 + this.#executeFetch();
4503 + }
4504 + this.#updateTimers();
4505 + }
4506 + }
4507 + onUnsubscribe() {
4508 + if (!this.hasListeners()) {
4509 + this.destroy();
4510 + }
4511 + }
4512 + shouldFetchOnReconnect() {
4513 + return shouldFetchOn(
4514 + this.#currentQuery,
4515 + this.options,
4516 + this.options.refetchOnReconnect
4517 + );
4518 + }
4519 + shouldFetchOnWindowFocus() {
4520 + return shouldFetchOn(
4521 + this.#currentQuery,
4522 + this.options,
4523 + this.options.refetchOnWindowFocus
4524 + );
4525 + }
4526 + destroy() {
4527 + this.listeners = /* @__PURE__ */ new Set();
4528 + this.#clearStaleTimeout();
4529 + this.#clearRefetchInterval();
4530 + this.#currentQuery.removeObserver(this);
4531 + }
4532 + setOptions(options, notifyOptions) {
4533 + const prevOptions = this.options;
4534 + const prevQuery = this.#currentQuery;
4535 + this.options = this.#client.defaultQueryOptions(options);
4536 + if (!(0, import_utils.shallowEqualObjects)(prevOptions, this.options)) {
4537 + this.#client.getQueryCache().notify({
4538 + type: "observerOptionsUpdated",
4539 + query: this.#currentQuery,
4540 + observer: this
4541 + });
4542 + }
4543 + if (typeof this.options.enabled !== "undefined" && typeof this.options.enabled !== "boolean") {
4544 + throw new Error("Expected enabled to be a boolean");
4545 + }
4546 + if (!this.options.queryKey) {
4547 + this.options.queryKey = prevOptions.queryKey;
4548 + }
4549 + this.#updateQuery();
4550 + const mounted = this.hasListeners();
4551 + if (mounted && shouldFetchOptionally(
4552 + this.#currentQuery,
4553 + prevQuery,
4554 + this.options,
4555 + prevOptions
4556 + )) {
4557 + this.#executeFetch();
4558 + }
4559 + this.updateResult(notifyOptions);
4560 + if (mounted && (this.#currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || this.options.staleTime !== prevOptions.staleTime)) {
4561 + this.#updateStaleTimeout();
4562 + }
4563 + const nextRefetchInterval = this.#computeRefetchInterval();
4564 + if (mounted && (this.#currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || nextRefetchInterval !== this.#currentRefetchInterval)) {
4565 + this.#updateRefetchInterval(nextRefetchInterval);
4566 + }
4567 + }
4568 + getOptimisticResult(options) {
4569 + const query = this.#client.getQueryCache().build(this.#client, options);
4570 + const result = this.createResult(query, options);
4571 + if (shouldAssignObserverCurrentProperties(this, result)) {
4572 + this.#currentResult = result;
4573 + this.#currentResultOptions = this.options;
4574 + this.#currentResultState = this.#currentQuery.state;
4575 + }
4576 + return result;
4577 + }
4578 + getCurrentResult() {
4579 + return this.#currentResult;
4580 + }
4581 + trackResult(result) {
4582 + const trackedResult = {};
4583 + Object.keys(result).forEach((key) => {
4584 + Object.defineProperty(trackedResult, key, {
4585 + configurable: false,
4586 + enumerable: true,
4587 + get: () => {
4588 + this.#trackedProps.add(key);
4589 + return result[key];
4590 + }
4591 + });
4592 + });
4593 + return trackedResult;
4594 + }
4595 + getCurrentQuery() {
4596 + return this.#currentQuery;
4597 + }
4598 + refetch({ ...options } = {}) {
4599 + return this.fetch({
4600 + ...options
4601 + });
4602 + }
4603 + fetchOptimistic(options) {
4604 + const defaultedOptions = this.#client.defaultQueryOptions(options);
4605 + const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);
4606 + query.isFetchingOptimistic = true;
4607 + return query.fetch().then(() => this.createResult(query, defaultedOptions));
4608 + }
4609 + fetch(fetchOptions) {
4610 + return this.#executeFetch({
4611 + ...fetchOptions,
4612 + cancelRefetch: fetchOptions.cancelRefetch ?? true
4613 + }).then(() => {
4614 + this.updateResult();
4615 + return this.#currentResult;
4616 + });
4617 + }
4618 + #executeFetch(fetchOptions) {
4619 + this.#updateQuery();
4620 + let promise = this.#currentQuery.fetch(
4621 + this.options,
4622 + fetchOptions
4623 + );
4624 + if (!fetchOptions?.throwOnError) {
4625 + promise = promise.catch(import_utils.noop);
4626 + }
4627 + return promise;
4628 + }
4629 + #updateStaleTimeout() {
4630 + this.#clearStaleTimeout();
4631 + if (import_utils.isServer || this.#currentResult.isStale || !(0, import_utils.isValidTimeout)(this.options.staleTime)) {
4632 + return;
4633 + }
4634 + const time = (0, import_utils.timeUntilStale)(
4635 + this.#currentResult.dataUpdatedAt,
4636 + this.options.staleTime
4637 + );
4638 + const timeout = time + 1;
4639 + this.#staleTimeoutId = setTimeout(() => {
4640 + if (!this.#currentResult.isStale) {
4641 + this.updateResult();
4642 + }
4643 + }, timeout);
4644 + }
4645 + #computeRefetchInterval() {
4646 + return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;
4647 + }
4648 + #updateRefetchInterval(nextInterval) {
4649 + this.#clearRefetchInterval();
4650 + this.#currentRefetchInterval = nextInterval;
4651 + if (import_utils.isServer || this.options.enabled === false || !(0, import_utils.isValidTimeout)(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) {
4652 + return;
4653 + }
4654 + this.#refetchIntervalId = setInterval(() => {
4655 + if (this.options.refetchIntervalInBackground || import_focusManager.focusManager.isFocused()) {
4656 + this.#executeFetch();
4657 + }
4658 + }, this.#currentRefetchInterval);
4659 + }
4660 + #updateTimers() {
4661 + this.#updateStaleTimeout();
4662 + this.#updateRefetchInterval(this.#computeRefetchInterval());
4663 + }
4664 + #clearStaleTimeout() {
4665 + if (this.#staleTimeoutId) {
4666 + clearTimeout(this.#staleTimeoutId);
4667 + this.#staleTimeoutId = void 0;
4668 + }
4669 + }
4670 + #clearRefetchInterval() {
4671 + if (this.#refetchIntervalId) {
4672 + clearInterval(this.#refetchIntervalId);
4673 + this.#refetchIntervalId = void 0;
4674 + }
4675 + }
4676 + createResult(query, options) {
4677 + const prevQuery = this.#currentQuery;
4678 + const prevOptions = this.options;
4679 + const prevResult = this.#currentResult;
4680 + const prevResultState = this.#currentResultState;
4681 + const prevResultOptions = this.#currentResultOptions;
4682 + const queryChange = query !== prevQuery;
4683 + const queryInitialState = queryChange ? query.state : this.#currentQueryInitialState;
4684 + const { state } = query;
4685 + let { error, errorUpdatedAt, fetchStatus, status } = state;
4686 + let isPlaceholderData = false;
4687 + let data;
4688 + if (options._optimisticResults) {
4689 + const mounted = this.hasListeners();
4690 + const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
4691 + const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
4692 + if (fetchOnMount || fetchOptionally) {
4693 + fetchStatus = (0, import_retryer.canFetch)(query.options.networkMode) ? "fetching" : "paused";
4694 + if (!state.dataUpdatedAt) {
4695 + status = "pending";
4696 + }
4697 + }
4698 + if (options._optimisticResults === "isRestoring") {
4699 + fetchStatus = "idle";
4700 + }
4701 + }
4702 + if (options.select && typeof state.data !== "undefined") {
4703 + if (prevResult && state.data === prevResultState?.data && options.select === this.#selectFn) {
4704 + data = this.#selectResult;
4705 + } else {
4706 + try {
4707 + this.#selectFn = options.select;
4708 + data = options.select(state.data);
4709 + data = (0, import_utils.replaceData)(prevResult?.data, data, options);
4710 + this.#selectResult = data;
4711 + this.#selectError = null;
4712 + } catch (selectError) {
4713 + this.#selectError = selectError;
4714 + }
4715 + }
4716 + } else {
4717 + data = state.data;
4718 + }
4719 + if (typeof options.placeholderData !== "undefined" && typeof data === "undefined" && status === "pending") {
4720 + let placeholderData;
4721 + if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {
4722 + placeholderData = prevResult.data;
4723 + } else {
4724 + placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
4725 + this.#lastQueryWithDefinedData?.state.data,
4726 + this.#lastQueryWithDefinedData
4727 + ) : options.placeholderData;
4728 + if (options.select && typeof placeholderData !== "undefined") {
4729 + try {
4730 + placeholderData = options.select(placeholderData);
4731 + this.#selectError = null;
4732 + } catch (selectError) {
4733 + this.#selectError = selectError;
4734 + }
4735 + }
4736 + }
4737 + if (typeof placeholderData !== "undefined") {
4738 + status = "success";
4739 + data = (0, import_utils.replaceData)(
4740 + prevResult?.data,
4741 + placeholderData,
4742 + options
4743 + );
4744 + isPlaceholderData = true;
4745 + }
4746 + }
4747 + if (this.#selectError) {
4748 + error = this.#selectError;
4749 + data = this.#selectResult;
4750 + errorUpdatedAt = Date.now();
4751 + status = "error";
4752 + }
4753 + const isFetching = fetchStatus === "fetching";
4754 + const isPending = status === "pending";
4755 + const isError = status === "error";
4756 + const isLoading = isPending && isFetching;
4757 + const result = {
4758 + status,
4759 + fetchStatus,
4760 + isPending,
4761 + isSuccess: status === "success",
4762 + isError,
4763 + isInitialLoading: isLoading,
4764 + isLoading,
4765 + data,
4766 + dataUpdatedAt: state.dataUpdatedAt,
4767 + error,
4768 + errorUpdatedAt,
4769 + failureCount: state.fetchFailureCount,
4770 + failureReason: state.fetchFailureReason,
4771 + errorUpdateCount: state.errorUpdateCount,
4772 + isFetched: state.dataUpdateCount > 0 || state.errorUpdateCount > 0,
4773 + isFetchedAfterMount: state.dataUpdateCount > queryInitialState.dataUpdateCount || state.errorUpdateCount > queryInitialState.errorUpdateCount,
4774 + isFetching,
4775 + isRefetching: isFetching && !isPending,
4776 + isLoadingError: isError && state.dataUpdatedAt === 0,
4777 + isPaused: fetchStatus === "paused",
4778 + isPlaceholderData,
4779 + isRefetchError: isError && state.dataUpdatedAt !== 0,
4780 + isStale: isStale(query, options),
4781 + refetch: this.refetch
4782 + };
4783 + return result;
4784 + }
4785 + updateResult(notifyOptions) {
4786 + const prevResult = this.#currentResult;
4787 + const nextResult = this.createResult(this.#currentQuery, this.options);
4788 + this.#currentResultState = this.#currentQuery.state;
4789 + this.#currentResultOptions = this.options;
4790 + if ((0, import_utils.shallowEqualObjects)(nextResult, prevResult)) {
4791 + return;
4792 + }
4793 + if (this.#currentResultState.data !== void 0) {
4794 + this.#lastQueryWithDefinedData = this.#currentQuery;
4795 + }
4796 + this.#currentResult = nextResult;
4797 + const defaultNotifyOptions = {};
4798 + const shouldNotifyListeners = () => {
4799 + if (!prevResult) {
4800 + return true;
4801 + }
4802 + const { notifyOnChangeProps } = this.options;
4803 + const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
4804 + if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !this.#trackedProps.size) {
4805 + return true;
4806 + }
4807 + const includedProps = new Set(
4808 + notifyOnChangePropsValue ?? this.#trackedProps
4809 + );
4810 + if (this.options.throwOnError) {
4811 + includedProps.add("error");
4812 + }
4813 + return Object.keys(this.#currentResult).some((key) => {
4814 + const typedKey = key;
4815 + const changed = this.#currentResult[typedKey] !== prevResult[typedKey];
4816 + return changed && includedProps.has(typedKey);
4817 + });
4818 + };
4819 + if (notifyOptions?.listeners !== false && shouldNotifyListeners()) {
4820 + defaultNotifyOptions.listeners = true;
4821 + }
4822 + this.#notify({ ...defaultNotifyOptions, ...notifyOptions });
4823 + }
4824 + #updateQuery() {
4825 + const query = this.#client.getQueryCache().build(this.#client, this.options);
4826 + if (query === this.#currentQuery) {
4827 + return;
4828 + }
4829 + const prevQuery = this.#currentQuery;
4830 + this.#currentQuery = query;
4831 + this.#currentQueryInitialState = query.state;
4832 + if (this.hasListeners()) {
4833 + prevQuery?.removeObserver(this);
4834 + query.addObserver(this);
4835 + }
4836 + }
4837 + onQueryUpdate() {
4838 + this.updateResult();
4839 + if (this.hasListeners()) {
4840 + this.#updateTimers();
4841 + }
4842 + }
4843 + #notify(notifyOptions) {
4844 + import_notifyManager.notifyManager.batch(() => {
4845 + if (notifyOptions.listeners) {
4846 + this.listeners.forEach((listener) => {
4847 + listener(this.#currentResult);
4848 + });
4849 + }
4850 + this.#client.getQueryCache().notify({
4851 + query: this.#currentQuery,
4852 + type: "observerResultsUpdated"
4853 + });
4854 + });
4855 + }
4856 +};
4857 +function shouldLoadOnMount(query, options) {
4858 + return options.enabled !== false && !query.state.dataUpdatedAt && !(query.state.status === "error" && options.retryOnMount === false);
4859 +}
4860 +function shouldFetchOnMount(query, options) {
4861 + return shouldLoadOnMount(query, options) || query.state.dataUpdatedAt > 0 && shouldFetchOn(query, options, options.refetchOnMount);
4862 +}
4863 +function shouldFetchOn(query, options, field) {
4864 + if (options.enabled !== false) {
4865 + const value = typeof field === "function" ? field(query) : field;
4866 + return value === "always" || value !== false && isStale(query, options);
4867 + }
4868 + return false;
4869 +}
4870 +function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
4871 + return options.enabled !== false && (query !== prevQuery || prevOptions.enabled === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
4872 +}
4873 +function isStale(query, options) {
4874 + return query.isStaleByTime(options.staleTime);
4875 +}
4876 +function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
4877 + if (!(0, import_utils.shallowEqualObjects)(observer.getCurrentResult(), optimisticResult)) {
4878 + return true;
4879 + }
4880 + return false;
4881 +}
4882 +// Annotate the CommonJS export names for ESM import in node:
4883 +0 && (0);
4884 +//# sourceMappingURL=queryObserver.cjs.map
4885 +
4886 +/***/ }),
4887 +
4888 +/***/ "../node_modules/@tanstack/query-core/build/modern/removable.cjs":
4889 +/*!***********************************************************************!*\
4890 + !*** ../node_modules/@tanstack/query-core/build/modern/removable.cjs ***!
4891 + \***********************************************************************/
4892 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4893 +
4894 +"use strict";
4895 +
4896 +var __defProp = Object.defineProperty;
4897 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4898 +var __getOwnPropNames = Object.getOwnPropertyNames;
4899 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4900 +var __export = (target, all) => {
4901 + for (var name in all)
4902 + __defProp(target, name, { get: all[name], enumerable: true });
4903 +};
4904 +var __copyProps = (to, from, except, desc) => {
4905 + if (from && typeof from === "object" || typeof from === "function") {
4906 + for (let key of __getOwnPropNames(from))
4907 + if (!__hasOwnProp.call(to, key) && key !== except)
4908 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4909 + }
4910 + return to;
4911 +};
4912 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4913 +
4914 +// src/removable.ts
4915 +var removable_exports = {};
4916 +__export(removable_exports, {
4917 + Removable: () => Removable
4918 +});
4919 +module.exports = __toCommonJS(removable_exports);
4920 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4921 +var Removable = class {
4922 + #gcTimeout;
4923 + destroy() {
4924 + this.clearGcTimeout();
4925 + }
4926 + scheduleGc() {
4927 + this.clearGcTimeout();
4928 + if ((0, import_utils.isValidTimeout)(this.gcTime)) {
4929 + this.#gcTimeout = setTimeout(() => {
4930 + this.optionalRemove();
4931 + }, this.gcTime);
4932 + }
4933 + }
4934 + updateGcTime(newGcTime) {
4935 + this.gcTime = Math.max(
4936 + this.gcTime || 0,
4937 + newGcTime ?? (import_utils.isServer ? Infinity : 5 * 60 * 1e3)
4938 + );
4939 + }
4940 + clearGcTimeout() {
4941 + if (this.#gcTimeout) {
4942 + clearTimeout(this.#gcTimeout);
4943 + this.#gcTimeout = void 0;
4944 + }
4945 + }
4946 +};
4947 +// Annotate the CommonJS export names for ESM import in node:
4948 +0 && (0);
4949 +//# sourceMappingURL=removable.cjs.map
4950 +
4951 +/***/ }),
4952 +
4953 +/***/ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs":
4954 +/*!*********************************************************************!*\
4955 + !*** ../node_modules/@tanstack/query-core/build/modern/retryer.cjs ***!
4956 + \*********************************************************************/
4957 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4958 +
4959 +"use strict";
4960 +
4961 +var __defProp = Object.defineProperty;
4962 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4963 +var __getOwnPropNames = Object.getOwnPropertyNames;
4964 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4965 +var __export = (target, all) => {
4966 + for (var name in all)
4967 + __defProp(target, name, { get: all[name], enumerable: true });
4968 +};
4969 +var __copyProps = (to, from, except, desc) => {
4970 + if (from && typeof from === "object" || typeof from === "function") {
4971 + for (let key of __getOwnPropNames(from))
4972 + if (!__hasOwnProp.call(to, key) && key !== except)
4973 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4974 + }
4975 + return to;
4976 +};
4977 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4978 +
4979 +// src/retryer.ts
4980 +var retryer_exports = {};
4981 +__export(retryer_exports, {
4982 + CancelledError: () => CancelledError,
4983 + canFetch: () => canFetch,
4984 + createRetryer: () => createRetryer,
4985 + isCancelledError: () => isCancelledError
4986 +});
4987 +module.exports = __toCommonJS(retryer_exports);
4988 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
4989 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
4990 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4991 +function defaultRetryDelay(failureCount) {
4992 + return Math.min(1e3 * 2 ** failureCount, 3e4);
4993 +}
4994 +function canFetch(networkMode) {
4995 + return (networkMode ?? "online") === "online" ? import_onlineManager.onlineManager.isOnline() : true;
4996 +}
4997 +var CancelledError = class {
4998 + constructor(options) {
4999 + this.revert = options?.revert;
5000 + this.silent = options?.silent;
5001 + }
5002 +};
5003 +function isCancelledError(value) {
5004 + return value instanceof CancelledError;
5005 +}
5006 +function createRetryer(config) {
5007 + let isRetryCancelled = false;
5008 + let failureCount = 0;
5009 + let isResolved = false;
5010 + let continueFn;
5011 + let promiseResolve;
5012 + let promiseReject;
5013 + const promise = new Promise((outerResolve, outerReject) => {
5014 + promiseResolve = outerResolve;
5015 + promiseReject = outerReject;
5016 + });
5017 + const cancel = (cancelOptions) => {
5018 + if (!isResolved) {
5019 + reject(new CancelledError(cancelOptions));
5020 + config.abort?.();
5021 + }
5022 + };
5023 + const cancelRetry = () => {
5024 + isRetryCancelled = true;
5025 + };
5026 + const continueRetry = () => {
5027 + isRetryCancelled = false;
5028 + };
5029 + const shouldPause = () => !import_focusManager.focusManager.isFocused() || config.networkMode !== "always" && !import_onlineManager.onlineManager.isOnline();
5030 + const resolve = (value) => {
5031 + if (!isResolved) {
5032 + isResolved = true;
5033 + config.onSuccess?.(value);
5034 + continueFn?.();
5035 + promiseResolve(value);
5036 + }
5037 + };
5038 + const reject = (value) => {
5039 + if (!isResolved) {
5040 + isResolved = true;
5041 + config.onError?.(value);
5042 + continueFn?.();
5043 + promiseReject(value);
5044 + }
5045 + };
5046 + const pause = () => {
5047 + return new Promise((continueResolve) => {
5048 + continueFn = (value) => {
5049 + const canContinue = isResolved || !shouldPause();
5050 + if (canContinue) {
5051 + continueResolve(value);
5052 + }
5053 + return canContinue;
5054 + };
5055 + config.onPause?.();
5056 + }).then(() => {
5057 + continueFn = void 0;
5058 + if (!isResolved) {
5059 + config.onContinue?.();
5060 + }
5061 + });
5062 + };
5063 + const run = () => {
5064 + if (isResolved) {
5065 + return;
5066 + }
5067 + let promiseOrValue;
5068 + try {
5069 + promiseOrValue = config.fn();
5070 + } catch (error) {
5071 + promiseOrValue = Promise.reject(error);
5072 + }
5073 + Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
5074 + if (isResolved) {
5075 + return;
5076 + }
5077 + const retry = config.retry ?? (import_utils.isServer ? 0 : 3);
5078 + const retryDelay = config.retryDelay ?? defaultRetryDelay;
5079 + const delay = typeof retryDelay === "function" ? retryDelay(failureCount, error) : retryDelay;
5080 + const shouldRetry = retry === true || typeof retry === "number" && failureCount < retry || typeof retry === "function" && retry(failureCount, error);
5081 + if (isRetryCancelled || !shouldRetry) {
5082 + reject(error);
5083 + return;
5084 + }
5085 + failureCount++;
5086 + config.onFail?.(failureCount, error);
5087 + (0, import_utils.sleep)(delay).then(() => {
5088 + if (shouldPause()) {
5089 + return pause();
5090 + }
5091 + return;
5092 + }).then(() => {
5093 + if (isRetryCancelled) {
5094 + reject(error);
5095 + } else {
5096 + run();
5097 + }
5098 + });
5099 + });
5100 + };
5101 + if (canFetch(config.networkMode)) {
5102 + run();
5103 + } else {
5104 + pause().then(run);
5105 + }
5106 + return {
5107 + promise,
5108 + cancel,
5109 + continue: () => {
5110 + const didContinue = continueFn?.();
5111 + return didContinue ? promise : Promise.resolve();
5112 + },
5113 + cancelRetry,
5114 + continueRetry
5115 + };
5116 +}
5117 +// Annotate the CommonJS export names for ESM import in node:
5118 +0 && (0);
5119 +//# sourceMappingURL=retryer.cjs.map
5120 +
5121 +/***/ }),
5122 +
5123 +/***/ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs":
5124 +/*!**************************************************************************!*\
5125 + !*** ../node_modules/@tanstack/query-core/build/modern/subscribable.cjs ***!
5126 + \**************************************************************************/
5127 +/***/ ((module) => {
5128 +
5129 +"use strict";
5130 +
5131 +var __defProp = Object.defineProperty;
5132 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5133 +var __getOwnPropNames = Object.getOwnPropertyNames;
5134 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5135 +var __export = (target, all) => {
5136 + for (var name in all)
5137 + __defProp(target, name, { get: all[name], enumerable: true });
5138 +};
5139 +var __copyProps = (to, from, except, desc) => {
5140 + if (from && typeof from === "object" || typeof from === "function") {
5141 + for (let key of __getOwnPropNames(from))
5142 + if (!__hasOwnProp.call(to, key) && key !== except)
5143 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5144 + }
5145 + return to;
5146 +};
5147 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5148 +
5149 +// src/subscribable.ts
5150 +var subscribable_exports = {};
5151 +__export(subscribable_exports, {
5152 + Subscribable: () => Subscribable
5153 +});
5154 +module.exports = __toCommonJS(subscribable_exports);
5155 +var Subscribable = class {
5156 + constructor() {
5157 + this.listeners = /* @__PURE__ */ new Set();
5158 + this.subscribe = this.subscribe.bind(this);
5159 + }
5160 + subscribe(listener) {
5161 + this.listeners.add(listener);
5162 + this.onSubscribe();
5163 + return () => {
5164 + this.listeners.delete(listener);
5165 + this.onUnsubscribe();
5166 + };
5167 + }
5168 + hasListeners() {
5169 + return this.listeners.size > 0;
5170 + }
5171 + onSubscribe() {
5172 + }
5173 + onUnsubscribe() {
5174 + }
5175 +};
5176 +// Annotate the CommonJS export names for ESM import in node:
5177 +0 && (0);
5178 +//# sourceMappingURL=subscribable.cjs.map
5179 +
5180 +/***/ }),
5181 +
5182 +/***/ "../node_modules/@tanstack/query-core/build/modern/types.cjs":
5183 +/*!*******************************************************************!*\
5184 + !*** ../node_modules/@tanstack/query-core/build/modern/types.cjs ***!
5185 + \*******************************************************************/
5186 +/***/ ((module) => {
5187 +
5188 +"use strict";
5189 +
5190 +var __defProp = Object.defineProperty;
5191 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5192 +var __getOwnPropNames = Object.getOwnPropertyNames;
5193 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5194 +var __copyProps = (to, from, except, desc) => {
5195 + if (from && typeof from === "object" || typeof from === "function") {
5196 + for (let key of __getOwnPropNames(from))
5197 + if (!__hasOwnProp.call(to, key) && key !== except)
5198 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5199 + }
5200 + return to;
5201 +};
5202 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5203 +
5204 +// src/types.ts
5205 +var types_exports = {};
5206 +module.exports = __toCommonJS(types_exports);
5207 +//# sourceMappingURL=types.cjs.map
5208 +
5209 +/***/ }),
5210 +
5211 +/***/ "../node_modules/@tanstack/query-core/build/modern/utils.cjs":
5212 +/*!*******************************************************************!*\
5213 + !*** ../node_modules/@tanstack/query-core/build/modern/utils.cjs ***!
5214 + \*******************************************************************/
5215 +/***/ ((module) => {
5216 +
5217 +"use strict";
5218 +
5219 +var __defProp = Object.defineProperty;
5220 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5221 +var __getOwnPropNames = Object.getOwnPropertyNames;
5222 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5223 +var __export = (target, all) => {
5224 + for (var name in all)
5225 + __defProp(target, name, { get: all[name], enumerable: true });
5226 +};
5227 +var __copyProps = (to, from, except, desc) => {
5228 + if (from && typeof from === "object" || typeof from === "function") {
5229 + for (let key of __getOwnPropNames(from))
5230 + if (!__hasOwnProp.call(to, key) && key !== except)
5231 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5232 + }
5233 + return to;
5234 +};
5235 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5236 +
5237 +// src/utils.ts
5238 +var utils_exports = {};
5239 +__export(utils_exports, {
5240 + addToEnd: () => addToEnd,
5241 + addToStart: () => addToStart,
5242 + functionalUpdate: () => functionalUpdate,
5243 + hashKey: () => hashKey,
5244 + hashQueryKeyByOptions: () => hashQueryKeyByOptions,
5245 + isPlainArray: () => isPlainArray,
5246 + isPlainObject: () => isPlainObject,
5247 + isServer: () => isServer,
5248 + isValidTimeout: () => isValidTimeout,
5249 + keepPreviousData: () => keepPreviousData,
5250 + matchMutation: () => matchMutation,
5251 + matchQuery: () => matchQuery,
5252 + noop: () => noop,
5253 + partialMatchKey: () => partialMatchKey,
5254 + replaceData: () => replaceData,
5255 + replaceEqualDeep: () => replaceEqualDeep,
5256 + scheduleMicrotask: () => scheduleMicrotask,
5257 + shallowEqualObjects: () => shallowEqualObjects,
5258 + sleep: () => sleep,
5259 + timeUntilStale: () => timeUntilStale
5260 +});
5261 +module.exports = __toCommonJS(utils_exports);
5262 +var isServer = typeof window === "undefined" || "Deno" in window;
5263 +function noop() {
5264 + return void 0;
5265 +}
5266 +function functionalUpdate(updater, input) {
5267 + return typeof updater === "function" ? updater(input) : updater;
5268 +}
5269 +function isValidTimeout(value) {
5270 + return typeof value === "number" && value >= 0 && value !== Infinity;
5271 +}
5272 +function timeUntilStale(updatedAt, staleTime) {
5273 + return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
5274 +}
5275 +function matchQuery(filters, query) {
5276 + const {
5277 + type = "all",
5278 + exact,
5279 + fetchStatus,
5280 + predicate,
5281 + queryKey,
5282 + stale
5283 + } = filters;
5284 + if (queryKey) {
5285 + if (exact) {
5286 + if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {
5287 + return false;
5288 + }
5289 + } else if (!partialMatchKey(query.queryKey, queryKey)) {
5290 + return false;
5291 + }
5292 + }
5293 + if (type !== "all") {
5294 + const isActive = query.isActive();
5295 + if (type === "active" && !isActive) {
5296 + return false;
5297 + }
5298 + if (type === "inactive" && isActive) {
5299 + return false;
5300 + }
5301 + }
5302 + if (typeof stale === "boolean" && query.isStale() !== stale) {
5303 + return false;
5304 + }
5305 + if (typeof fetchStatus !== "undefined" && fetchStatus !== query.state.fetchStatus) {
5306 + return false;
5307 + }
5308 + if (predicate && !predicate(query)) {
5309 + return false;
5310 + }
5311 + return true;
5312 +}
5313 +function matchMutation(filters, mutation) {
5314 + const { exact, status, predicate, mutationKey } = filters;
5315 + if (mutationKey) {
5316 + if (!mutation.options.mutationKey) {
5317 + return false;
5318 + }
5319 + if (exact) {
5320 + if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {
5321 + return false;
5322 + }
5323 + } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {
5324 + return false;
5325 + }
5326 + }
5327 + if (status && mutation.state.status !== status) {
5328 + return false;
5329 + }
5330 + if (predicate && !predicate(mutation)) {
5331 + return false;
5332 + }
5333 + return true;
5334 +}
5335 +function hashQueryKeyByOptions(queryKey, options) {
5336 + const hashFn = options?.queryKeyHashFn || hashKey;
5337 + return hashFn(queryKey);
5338 +}
5339 +function hashKey(queryKey) {
5340 + return JSON.stringify(
5341 + queryKey,
5342 + (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
5343 + result[key] = val[key];
5344 + return result;
5345 + }, {}) : val
5346 + );
5347 +}
5348 +function partialMatchKey(a, b) {
5349 + if (a === b) {
5350 + return true;
5351 + }
5352 + if (typeof a !== typeof b) {
5353 + return false;
5354 + }
5355 + if (a && b && typeof a === "object" && typeof b === "object") {
5356 + return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
5357 + }
5358 + return false;
5359 +}
5360 +function replaceEqualDeep(a, b) {
5361 + if (a === b) {
5362 + return a;
5363 + }
5364 + const array = isPlainArray(a) && isPlainArray(b);
5365 + if (array || isPlainObject(a) && isPlainObject(b)) {
5366 + const aSize = array ? a.length : Object.keys(a).length;
5367 + const bItems = array ? b : Object.keys(b);
5368 + const bSize = bItems.length;
5369 + const copy = array ? [] : {};
5370 + let equalItems = 0;
5371 + for (let i = 0; i < bSize; i++) {
5372 + const key = array ? i : bItems[i];
5373 + copy[key] = replaceEqualDeep(a[key], b[key]);
5374 + if (copy[key] === a[key]) {
5375 + equalItems++;
5376 + }
5377 + }
5378 + return aSize === bSize && equalItems === aSize ? a : copy;
5379 + }
5380 + return b;
5381 +}
5382 +function shallowEqualObjects(a, b) {
5383 + if (a && !b || b && !a) {
5384 + return false;
5385 + }
5386 + for (const key in a) {
5387 + if (a[key] !== b[key]) {
5388 + return false;
5389 + }
5390 + }
5391 + return true;
5392 +}
5393 +function isPlainArray(value) {
5394 + return Array.isArray(value) && value.length === Object.keys(value).length;
5395 +}
5396 +function isPlainObject(o) {
5397 + if (!hasObjectPrototype(o)) {
5398 + return false;
5399 + }
5400 + const ctor = o.constructor;
5401 + if (typeof ctor === "undefined") {
5402 + return true;
5403 + }
5404 + const prot = ctor.prototype;
5405 + if (!hasObjectPrototype(prot)) {
5406 + return false;
5407 + }
5408 + if (!prot.hasOwnProperty("isPrototypeOf")) {
5409 + return false;
5410 + }
5411 + return true;
5412 +}
5413 +function hasObjectPrototype(o) {
5414 + return Object.prototype.toString.call(o) === "[object Object]";
5415 +}
5416 +function sleep(timeout) {
5417 + return new Promise((resolve) => {
5418 + setTimeout(resolve, timeout);
5419 + });
5420 +}
5421 +function scheduleMicrotask(callback) {
5422 + sleep(0).then(callback);
5423 +}
5424 +function replaceData(prevData, data, options) {
5425 + if (typeof options.structuralSharing === "function") {
5426 + return options.structuralSharing(prevData, data);
5427 + } else if (options.structuralSharing !== false) {
5428 + return replaceEqualDeep(prevData, data);
5429 + }
5430 + return data;
5431 +}
5432 +function keepPreviousData(previousData) {
5433 + return previousData;
5434 +}
5435 +function addToEnd(items, item, max = 0) {
5436 + const newItems = [...items, item];
5437 + return max && newItems.length > max ? newItems.slice(1) : newItems;
5438 +}
5439 +function addToStart(items, item, max = 0) {
5440 + const newItems = [item, ...items];
5441 + return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
5442 +}
5443 +// Annotate the CommonJS export names for ESM import in node:
5444 +0 && (0);
5445 +//# sourceMappingURL=utils.cjs.map
5446 +
5447 +/***/ }),
5448 +
5449 +/***/ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs":
5450 +/*!********************************************************************************!*\
5451 + !*** ../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs ***!
5452 + \********************************************************************************/
5453 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5454 +
5455 +"use strict";
5456 +
5457 +"use client";
5458 +var __create = Object.create;
5459 +var __defProp = Object.defineProperty;
5460 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5461 +var __getOwnPropNames = Object.getOwnPropertyNames;
5462 +var __getProtoOf = Object.getPrototypeOf;
5463 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5464 +var __export = (target, all) => {
5465 + for (var name in all)
5466 + __defProp(target, name, { get: all[name], enumerable: true });
5467 +};
5468 +var __copyProps = (to, from, except, desc) => {
5469 + if (from && typeof from === "object" || typeof from === "function") {
5470 + for (let key of __getOwnPropNames(from))
5471 + if (!__hasOwnProp.call(to, key) && key !== except)
5472 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5473 + }
5474 + return to;
5475 +};
5476 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5477 + // If the importer is in node compatibility mode or this is not an ESM
5478 + // file that has been converted to a CommonJS file using a Babel-
5479 + // compatible transform (i.e. "__esModule" has not been set), then set
5480 + // "default" to the CommonJS "module.exports" for node compatibility.
5481 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5482 + mod
5483 +));
5484 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5485 +
5486 +// src/HydrationBoundary.tsx
5487 +var HydrationBoundary_exports = {};
5488 +__export(HydrationBoundary_exports, {
5489 + HydrationBoundary: () => HydrationBoundary
5490 +});
5491 +module.exports = __toCommonJS(HydrationBoundary_exports);
5492 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5493 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
5494 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
5495 +var HydrationBoundary = ({
5496 + children,
5497 + options = {},
5498 + state,
5499 + queryClient
5500 +}) => {
5501 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
5502 + const [hydrationQueue, setHydrationQueue] = React.useState();
5503 + const optionsRef = React.useRef(options);
5504 + optionsRef.current = options;
5505 + React.useMemo(() => {
5506 + if (state) {
5507 + if (typeof state !== "object") {
5508 + return;
5509 + }
5510 + const queryCache = client.getQueryCache();
5511 + const queries = state.queries || [];
5512 + const newQueries = [];
5513 + const existingQueries = [];
5514 + for (const dehydratedQuery of queries) {
5515 + const existingQuery = queryCache.get(dehydratedQuery.queryHash);
5516 + if (!existingQuery) {
5517 + newQueries.push(dehydratedQuery);
5518 + } else {
5519 + const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt;
5520 + const queryAlreadyQueued = hydrationQueue?.find(
5521 + (query) => query.queryHash === dehydratedQuery.queryHash
5522 + );
5523 + if (hydrationIsNewer && (!queryAlreadyQueued || dehydratedQuery.state.dataUpdatedAt > queryAlreadyQueued.state.dataUpdatedAt)) {
5524 + existingQueries.push(dehydratedQuery);
5525 + }
5526 + }
5527 + }
5528 + if (newQueries.length > 0) {
5529 + (0, import_query_core.hydrate)(client, { queries: newQueries }, optionsRef.current);
5530 + }
5531 + if (existingQueries.length > 0) {
5532 + setHydrationQueue(
5533 + (prev) => prev ? [...prev, ...existingQueries] : existingQueries
5534 + );
5535 + }
5536 + }
5537 + }, [client, hydrationQueue, state]);
5538 + React.useEffect(() => {
5539 + if (hydrationQueue) {
5540 + (0, import_query_core.hydrate)(client, { queries: hydrationQueue }, optionsRef.current);
5541 + setHydrationQueue(void 0);
5542 + }
5543 + }, [client, hydrationQueue]);
5544 + return children;
5545 +};
5546 +// Annotate the CommonJS export names for ESM import in node:
5547 +0 && (0);
5548 +//# sourceMappingURL=HydrationBoundary.cjs.map
5549 +
5550 +/***/ }),
5551 +
5552 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs":
5553 +/*!**********************************************************************************!*\
5554 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs ***!
5555 + \**********************************************************************************/
5556 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5557 +
5558 +"use strict";
5559 +
5560 +"use client";
5561 +var __create = Object.create;
5562 +var __defProp = Object.defineProperty;
5563 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5564 +var __getOwnPropNames = Object.getOwnPropertyNames;
5565 +var __getProtoOf = Object.getPrototypeOf;
5566 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5567 +var __export = (target, all) => {
5568 + for (var name in all)
5569 + __defProp(target, name, { get: all[name], enumerable: true });
5570 +};
5571 +var __copyProps = (to, from, except, desc) => {
5572 + if (from && typeof from === "object" || typeof from === "function") {
5573 + for (let key of __getOwnPropNames(from))
5574 + if (!__hasOwnProp.call(to, key) && key !== except)
5575 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5576 + }
5577 + return to;
5578 +};
5579 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5580 + // If the importer is in node compatibility mode or this is not an ESM
5581 + // file that has been converted to a CommonJS file using a Babel-
5582 + // compatible transform (i.e. "__esModule" has not been set), then set
5583 + // "default" to the CommonJS "module.exports" for node compatibility.
5584 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5585 + mod
5586 +));
5587 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5588 +
5589 +// src/QueryClientProvider.tsx
5590 +var QueryClientProvider_exports = {};
5591 +__export(QueryClientProvider_exports, {
5592 + QueryClientContext: () => QueryClientContext,
5593 + QueryClientProvider: () => QueryClientProvider,
5594 + useQueryClient: () => useQueryClient
5595 +});
5596 +module.exports = __toCommonJS(QueryClientProvider_exports);
5597 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5598 +var QueryClientContext = React.createContext(
5599 + void 0
5600 +);
5601 +var useQueryClient = (queryClient) => {
5602 + const client = React.useContext(QueryClientContext);
5603 + if (queryClient) {
5604 + return queryClient;
5605 + }
5606 + if (!client) {
5607 + throw new Error("No QueryClient set, use QueryClientProvider to set one");
5608 + }
5609 + return client;
5610 +};
5611 +var QueryClientProvider = ({
5612 + client,
5613 + children
5614 +}) => {
5615 + React.useEffect(() => {
5616 + client.mount();
5617 + return () => {
5618 + client.unmount();
5619 + };
5620 + }, [client]);
5621 + return /* @__PURE__ */ React.createElement(QueryClientContext.Provider, { value: client }, children);
5622 +};
5623 +// Annotate the CommonJS export names for ESM import in node:
5624 +0 && (0);
5625 +//# sourceMappingURL=QueryClientProvider.cjs.map
5626 +
5627 +/***/ }),
5628 +
5629 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs":
5630 +/*!**************************************************************************************!*\
5631 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs ***!
5632 + \**************************************************************************************/
5633 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5634 +
5635 +"use strict";
5636 +
5637 +"use client";
5638 +var __create = Object.create;
5639 +var __defProp = Object.defineProperty;
5640 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5641 +var __getOwnPropNames = Object.getOwnPropertyNames;
5642 +var __getProtoOf = Object.getPrototypeOf;
5643 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5644 +var __export = (target, all) => {
5645 + for (var name in all)
5646 + __defProp(target, name, { get: all[name], enumerable: true });
5647 +};
5648 +var __copyProps = (to, from, except, desc) => {
5649 + if (from && typeof from === "object" || typeof from === "function") {
5650 + for (let key of __getOwnPropNames(from))
5651 + if (!__hasOwnProp.call(to, key) && key !== except)
5652 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5653 + }
5654 + return to;
5655 +};
5656 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5657 + // If the importer is in node compatibility mode or this is not an ESM
5658 + // file that has been converted to a CommonJS file using a Babel-
5659 + // compatible transform (i.e. "__esModule" has not been set), then set
5660 + // "default" to the CommonJS "module.exports" for node compatibility.
5661 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5662 + mod
5663 +));
5664 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5665 +
5666 +// src/QueryErrorResetBoundary.tsx
5667 +var QueryErrorResetBoundary_exports = {};
5668 +__export(QueryErrorResetBoundary_exports, {
5669 + QueryErrorResetBoundary: () => QueryErrorResetBoundary,
5670 + useQueryErrorResetBoundary: () => useQueryErrorResetBoundary
5671 +});
5672 +module.exports = __toCommonJS(QueryErrorResetBoundary_exports);
5673 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5674 +function createValue() {
5675 + let isReset = false;
5676 + return {
5677 + clearReset: () => {
5678 + isReset = false;
5679 + },
5680 + reset: () => {
5681 + isReset = true;
5682 + },
5683 + isReset: () => {
5684 + return isReset;
5685 + }
5686 + };
5687 +}
5688 +var QueryErrorResetBoundaryContext = React.createContext(createValue());
5689 +var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);
5690 +var QueryErrorResetBoundary = ({
5691 + children
5692 +}) => {
5693 + const [value] = React.useState(() => createValue());
5694 + return /* @__PURE__ */ React.createElement(QueryErrorResetBoundaryContext.Provider, { value }, typeof children === "function" ? children(value) : children);
5695 +};
5696 +// Annotate the CommonJS export names for ESM import in node:
5697 +0 && (0);
5698 +//# sourceMappingURL=QueryErrorResetBoundary.cjs.map
5699 +
5700 +/***/ }),
5701 +
5702 +/***/ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs":
5703 +/*!*********************************************************************************!*\
5704 + !*** ../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs ***!
5705 + \*********************************************************************************/
5706 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5707 +
5708 +"use strict";
5709 +
5710 +"use client";
5711 +var __create = Object.create;
5712 +var __defProp = Object.defineProperty;
5713 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5714 +var __getOwnPropNames = Object.getOwnPropertyNames;
5715 +var __getProtoOf = Object.getPrototypeOf;
5716 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5717 +var __export = (target, all) => {
5718 + for (var name in all)
5719 + __defProp(target, name, { get: all[name], enumerable: true });
5720 +};
5721 +var __copyProps = (to, from, except, desc) => {
5722 + if (from && typeof from === "object" || typeof from === "function") {
5723 + for (let key of __getOwnPropNames(from))
5724 + if (!__hasOwnProp.call(to, key) && key !== except)
5725 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5726 + }
5727 + return to;
5728 +};
5729 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5730 + // If the importer is in node compatibility mode or this is not an ESM
5731 + // file that has been converted to a CommonJS file using a Babel-
5732 + // compatible transform (i.e. "__esModule" has not been set), then set
5733 + // "default" to the CommonJS "module.exports" for node compatibility.
5734 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5735 + mod
5736 +));
5737 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5738 +
5739 +// src/errorBoundaryUtils.ts
5740 +var errorBoundaryUtils_exports = {};
5741 +__export(errorBoundaryUtils_exports, {
5742 + ensurePreventErrorBoundaryRetry: () => ensurePreventErrorBoundaryRetry,
5743 + getHasError: () => getHasError,
5744 + useClearResetErrorBoundary: () => useClearResetErrorBoundary
5745 +});
5746 +module.exports = __toCommonJS(errorBoundaryUtils_exports);
5747 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5748 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
5749 +var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
5750 + if (options.suspense || options.throwOnError) {
5751 + if (!errorResetBoundary.isReset()) {
5752 + options.retryOnMount = false;
5753 + }
5754 + }
5755 +};
5756 +var useClearResetErrorBoundary = (errorResetBoundary) => {
5757 + React.useEffect(() => {
5758 + errorResetBoundary.clearReset();
5759 + }, [errorResetBoundary]);
5760 +};
5761 +var getHasError = ({
5762 + result,
5763 + errorResetBoundary,
5764 + throwOnError,
5765 + query
5766 +}) => {
5767 + return result.isError && !errorResetBoundary.isReset() && !result.isFetching && (0, import_utils.shouldThrowError)(throwOnError, [result.error, query]);
5768 +};
5769 +// Annotate the CommonJS export names for ESM import in node:
5770 +0 && (0);
5771 +//# sourceMappingURL=errorBoundaryUtils.cjs.map
5772 +
5773 +/***/ }),
5774 +
5775 +/***/ "../node_modules/@tanstack/react-query/build/modern/index.cjs":
5776 +/*!********************************************************************!*\
5777 + !*** ../node_modules/@tanstack/react-query/build/modern/index.cjs ***!
5778 + \********************************************************************/
5779 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5780 +
5781 +"use strict";
5782 +
5783 +var __defProp = Object.defineProperty;
5784 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5785 +var __getOwnPropNames = Object.getOwnPropertyNames;
5786 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5787 +var __export = (target, all) => {
5788 + for (var name in all)
5789 + __defProp(target, name, { get: all[name], enumerable: true });
5790 +};
5791 +var __copyProps = (to, from, except, desc) => {
5792 + if (from && typeof from === "object" || typeof from === "function") {
5793 + for (let key of __getOwnPropNames(from))
5794 + if (!__hasOwnProp.call(to, key) && key !== except)
5795 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5796 + }
5797 + return to;
5798 +};
5799 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
5800 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5801 +
5802 +// src/index.ts
5803 +var src_exports = {};
5804 +__export(src_exports, {
5805 + HydrationBoundary: () => import_HydrationBoundary.HydrationBoundary,
5806 + IsRestoringProvider: () => import_isRestoring.IsRestoringProvider,
5807 + QueryClientContext: () => import_QueryClientProvider.QueryClientContext,
5808 + QueryClientProvider: () => import_QueryClientProvider.QueryClientProvider,
5809 + QueryErrorResetBoundary: () => import_QueryErrorResetBoundary.QueryErrorResetBoundary,
5810 + infiniteQueryOptions: () => import_infiniteQueryOptions.infiniteQueryOptions,
5811 + queryOptions: () => import_queryOptions.queryOptions,
5812 + useInfiniteQuery: () => import_useInfiniteQuery.useInfiniteQuery,
5813 + useIsFetching: () => import_useIsFetching.useIsFetching,
5814 + useIsMutating: () => import_useMutationState.useIsMutating,
5815 + useIsRestoring: () => import_isRestoring.useIsRestoring,
5816 + useMutation: () => import_useMutation.useMutation,
5817 + useMutationState: () => import_useMutationState.useMutationState,
5818 + useQueries: () => import_useQueries.useQueries,
5819 + useQuery: () => import_useQuery.useQuery,
5820 + useQueryClient: () => import_QueryClientProvider.useQueryClient,
5821 + useQueryErrorResetBoundary: () => import_QueryErrorResetBoundary.useQueryErrorResetBoundary,
5822 + useSuspenseInfiniteQuery: () => import_useSuspenseInfiniteQuery.useSuspenseInfiniteQuery,
5823 + useSuspenseQueries: () => import_useSuspenseQueries.useSuspenseQueries,
5824 + useSuspenseQuery: () => import_useSuspenseQuery.useSuspenseQuery
5825 +});
5826 +module.exports = __toCommonJS(src_exports);
5827 +__reExport(src_exports, __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs"), module.exports);
5828 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/react-query/build/modern/types.cjs"), module.exports);
5829 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
5830 +var import_useQuery = __webpack_require__(/*! ./useQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs");
5831 +var import_useSuspenseQuery = __webpack_require__(/*! ./useSuspenseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs");
5832 +var import_useSuspenseInfiniteQuery = __webpack_require__(/*! ./useSuspenseInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs");
5833 +var import_useSuspenseQueries = __webpack_require__(/*! ./useSuspenseQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs");
5834 +var import_queryOptions = __webpack_require__(/*! ./queryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs");
5835 +var import_infiniteQueryOptions = __webpack_require__(/*! ./infiniteQueryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs");
5836 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
5837 +var import_HydrationBoundary = __webpack_require__(/*! ./HydrationBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs");
5838 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
5839 +var import_useIsFetching = __webpack_require__(/*! ./useIsFetching.cjs */ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs");
5840 +var import_useMutationState = __webpack_require__(/*! ./useMutationState.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs");
5841 +var import_useMutation = __webpack_require__(/*! ./useMutation.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs");
5842 +var import_useInfiniteQuery = __webpack_require__(/*! ./useInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs");
5843 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
5844 +// Annotate the CommonJS export names for ESM import in node:
5845 +0 && (0);
5846 +//# sourceMappingURL=index.cjs.map
5847 +
5848 +/***/ }),
5849 +
5850 +/***/ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs":
5851 +/*!***********************************************************************************!*\
5852 + !*** ../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs ***!
5853 + \***********************************************************************************/
5854 +/***/ ((module) => {
5855 +
5856 +"use strict";
5857 +
5858 +var __defProp = Object.defineProperty;
5859 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5860 +var __getOwnPropNames = Object.getOwnPropertyNames;
5861 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5862 +var __export = (target, all) => {
5863 + for (var name in all)
5864 + __defProp(target, name, { get: all[name], enumerable: true });
5865 +};
5866 +var __copyProps = (to, from, except, desc) => {
5867 + if (from && typeof from === "object" || typeof from === "function") {
5868 + for (let key of __getOwnPropNames(from))
5869 + if (!__hasOwnProp.call(to, key) && key !== except)
5870 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5871 + }
5872 + return to;
5873 +};
5874 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5875 +
5876 +// src/infiniteQueryOptions.ts
5877 +var infiniteQueryOptions_exports = {};
5878 +__export(infiniteQueryOptions_exports, {
5879 + infiniteQueryOptions: () => infiniteQueryOptions
5880 +});
5881 +module.exports = __toCommonJS(infiniteQueryOptions_exports);
5882 +function infiniteQueryOptions(options) {
5883 + return options;
5884 +}
5885 +// Annotate the CommonJS export names for ESM import in node:
5886 +0 && (0);
5887 +//# sourceMappingURL=infiniteQueryOptions.cjs.map
5888 +
5889 +/***/ }),
5890 +
5891 +/***/ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs":
5892 +/*!**************************************************************************!*\
5893 + !*** ../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs ***!
5894 + \**************************************************************************/
5895 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5896 +
5897 +"use strict";
5898 +
5899 +"use client";
5900 +var __create = Object.create;
5901 +var __defProp = Object.defineProperty;
5902 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5903 +var __getOwnPropNames = Object.getOwnPropertyNames;
5904 +var __getProtoOf = Object.getPrototypeOf;
5905 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5906 +var __export = (target, all) => {
5907 + for (var name in all)
5908 + __defProp(target, name, { get: all[name], enumerable: true });
5909 +};
5910 +var __copyProps = (to, from, except, desc) => {
5911 + if (from && typeof from === "object" || typeof from === "function") {
5912 + for (let key of __getOwnPropNames(from))
5913 + if (!__hasOwnProp.call(to, key) && key !== except)
5914 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5915 + }
5916 + return to;
5917 +};
5918 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5919 + // If the importer is in node compatibility mode or this is not an ESM
5920 + // file that has been converted to a CommonJS file using a Babel-
5921 + // compatible transform (i.e. "__esModule" has not been set), then set
5922 + // "default" to the CommonJS "module.exports" for node compatibility.
5923 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5924 + mod
5925 +));
5926 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5927 +
5928 +// src/isRestoring.ts
5929 +var isRestoring_exports = {};
5930 +__export(isRestoring_exports, {
5931 + IsRestoringProvider: () => IsRestoringProvider,
5932 + useIsRestoring: () => useIsRestoring
5933 +});
5934 +module.exports = __toCommonJS(isRestoring_exports);
5935 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5936 +var IsRestoringContext = React.createContext(false);
5937 +var useIsRestoring = () => React.useContext(IsRestoringContext);
5938 +var IsRestoringProvider = IsRestoringContext.Provider;
5939 +// Annotate the CommonJS export names for ESM import in node:
5940 +0 && (0);
5941 +//# sourceMappingURL=isRestoring.cjs.map
5942 +
5943 +/***/ }),
5944 +
5945 +/***/ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs":
5946 +/*!***************************************************************************!*\
5947 + !*** ../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs ***!
5948 + \***************************************************************************/
5949 +/***/ ((module) => {
5950 +
5951 +"use strict";
5952 +
5953 +var __defProp = Object.defineProperty;
5954 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5955 +var __getOwnPropNames = Object.getOwnPropertyNames;
5956 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5957 +var __export = (target, all) => {
5958 + for (var name in all)
5959 + __defProp(target, name, { get: all[name], enumerable: true });
5960 +};
5961 +var __copyProps = (to, from, except, desc) => {
5962 + if (from && typeof from === "object" || typeof from === "function") {
5963 + for (let key of __getOwnPropNames(from))
5964 + if (!__hasOwnProp.call(to, key) && key !== except)
5965 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5966 + }
5967 + return to;
5968 +};
5969 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5970 +
5971 +// src/queryOptions.ts
5972 +var queryOptions_exports = {};
5973 +__export(queryOptions_exports, {
5974 + queryOptions: () => queryOptions
5975 +});
5976 +module.exports = __toCommonJS(queryOptions_exports);
5977 +function queryOptions(options) {
5978 + return options;
5979 +}
5980 +// Annotate the CommonJS export names for ESM import in node:
5981 +0 && (0);
5982 +//# sourceMappingURL=queryOptions.cjs.map
5983 +
5984 +/***/ }),
5985 +
5986 +/***/ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs":
5987 +/*!***********************************************************************!*\
5988 + !*** ../node_modules/@tanstack/react-query/build/modern/suspense.cjs ***!
5989 + \***********************************************************************/
5990 +/***/ ((module) => {
5991 +
5992 +"use strict";
5993 +
5994 +var __defProp = Object.defineProperty;
5995 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5996 +var __getOwnPropNames = Object.getOwnPropertyNames;
5997 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5998 +var __export = (target, all) => {
5999 + for (var name in all)
6000 + __defProp(target, name, { get: all[name], enumerable: true });
6001 +};
6002 +var __copyProps = (to, from, except, desc) => {
6003 + if (from && typeof from === "object" || typeof from === "function") {
6004 + for (let key of __getOwnPropNames(from))
6005 + if (!__hasOwnProp.call(to, key) && key !== except)
6006 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6007 + }
6008 + return to;
6009 +};
6010 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6011 +
6012 +// src/suspense.ts
6013 +var suspense_exports = {};
6014 +__export(suspense_exports, {
6015 + defaultThrowOnError: () => defaultThrowOnError,
6016 + ensureStaleTime: () => ensureStaleTime,
6017 + fetchOptimistic: () => fetchOptimistic,
6018 + shouldSuspend: () => shouldSuspend,
6019 + willFetch: () => willFetch
6020 +});
6021 +module.exports = __toCommonJS(suspense_exports);
6022 +var defaultThrowOnError = (_error, query) => typeof query.state.data === "undefined";
6023 +var ensureStaleTime = (defaultedOptions) => {
6024 + if (defaultedOptions.suspense) {
6025 + if (typeof defaultedOptions.staleTime !== "number") {
6026 + defaultedOptions.staleTime = 1e3;
6027 + }
6028 + }
6029 +};
6030 +var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
6031 +var shouldSuspend = (defaultedOptions, result, isRestoring) => defaultedOptions?.suspense && willFetch(result, isRestoring);
6032 +var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
6033 + errorResetBoundary.clearReset();
6034 +});
6035 +// Annotate the CommonJS export names for ESM import in node:
6036 +0 && (0);
6037 +//# sourceMappingURL=suspense.cjs.map
6038 +
6039 +/***/ }),
6040 +
6041 +/***/ "../node_modules/@tanstack/react-query/build/modern/types.cjs":
6042 +/*!********************************************************************!*\
6043 + !*** ../node_modules/@tanstack/react-query/build/modern/types.cjs ***!
6044 + \********************************************************************/
6045 +/***/ ((module) => {
6046 +
6047 +"use strict";
6048 +
6049 +var __defProp = Object.defineProperty;
6050 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6051 +var __getOwnPropNames = Object.getOwnPropertyNames;
6052 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6053 +var __copyProps = (to, from, except, desc) => {
6054 + if (from && typeof from === "object" || typeof from === "function") {
6055 + for (let key of __getOwnPropNames(from))
6056 + if (!__hasOwnProp.call(to, key) && key !== except)
6057 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6058 + }
6059 + return to;
6060 +};
6061 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6062 +
6063 +// src/types.ts
6064 +var types_exports = {};
6065 +module.exports = __toCommonJS(types_exports);
6066 +//# sourceMappingURL=types.cjs.map
6067 +
6068 +/***/ }),
6069 +
6070 +/***/ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs":
6071 +/*!***************************************************************************!*\
6072 + !*** ../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs ***!
6073 + \***************************************************************************/
6074 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6075 +
6076 +"use strict";
6077 +
6078 +"use client";
6079 +var __create = Object.create;
6080 +var __defProp = Object.defineProperty;
6081 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6082 +var __getOwnPropNames = Object.getOwnPropertyNames;
6083 +var __getProtoOf = Object.getPrototypeOf;
6084 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6085 +var __export = (target, all) => {
6086 + for (var name in all)
6087 + __defProp(target, name, { get: all[name], enumerable: true });
6088 +};
6089 +var __copyProps = (to, from, except, desc) => {
6090 + if (from && typeof from === "object" || typeof from === "function") {
6091 + for (let key of __getOwnPropNames(from))
6092 + if (!__hasOwnProp.call(to, key) && key !== except)
6093 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6094 + }
6095 + return to;
6096 +};
6097 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6098 + // If the importer is in node compatibility mode or this is not an ESM
6099 + // file that has been converted to a CommonJS file using a Babel-
6100 + // compatible transform (i.e. "__esModule" has not been set), then set
6101 + // "default" to the CommonJS "module.exports" for node compatibility.
6102 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6103 + mod
6104 +));
6105 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6106 +
6107 +// src/useBaseQuery.ts
6108 +var useBaseQuery_exports = {};
6109 +__export(useBaseQuery_exports, {
6110 + useBaseQuery: () => useBaseQuery
6111 +});
6112 +module.exports = __toCommonJS(useBaseQuery_exports);
6113 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6114 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6115 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
6116 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6117 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
6118 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
6119 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6120 +function useBaseQuery(options, Observer, queryClient) {
6121 + if (true) {
6122 + if (typeof options !== "object" || Array.isArray(options)) {
6123 + throw new Error(
6124 + 'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
6125 + );
6126 + }
6127 + }
6128 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6129 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
6130 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
6131 + const defaultedOptions = client.defaultQueryOptions(options);
6132 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
6133 + (0, import_suspense.ensureStaleTime)(defaultedOptions);
6134 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(defaultedOptions, errorResetBoundary);
6135 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
6136 + const [observer] = React.useState(
6137 + () => new Observer(
6138 + client,
6139 + defaultedOptions
6140 + )
6141 + );
6142 + const result = observer.getOptimisticResult(defaultedOptions);
6143 + React.useSyncExternalStore(
6144 + React.useCallback(
6145 + (onStoreChange) => {
6146 + const unsubscribe = isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange));
6147 + observer.updateResult();
6148 + return unsubscribe;
6149 + },
6150 + [observer, isRestoring]
6151 + ),
6152 + () => observer.getCurrentResult(),
6153 + () => observer.getCurrentResult()
6154 + );
6155 + React.useEffect(() => {
6156 + observer.setOptions(defaultedOptions, { listeners: false });
6157 + }, [defaultedOptions, observer]);
6158 + if ((0, import_suspense.shouldSuspend)(defaultedOptions, result, isRestoring)) {
6159 + throw (0, import_suspense.fetchOptimistic)(defaultedOptions, observer, errorResetBoundary);
6160 + }
6161 + if ((0, import_errorBoundaryUtils.getHasError)({
6162 + result,
6163 + errorResetBoundary,
6164 + throwOnError: defaultedOptions.throwOnError,
6165 + query: observer.getCurrentQuery()
6166 + })) {
6167 + throw result.error;
6168 + }
6169 + return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
6170 +}
6171 +// Annotate the CommonJS export names for ESM import in node:
6172 +0 && (0);
6173 +//# sourceMappingURL=useBaseQuery.cjs.map
6174 +
6175 +/***/ }),
6176 +
6177 +/***/ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs":
6178 +/*!*******************************************************************************!*\
6179 + !*** ../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs ***!
6180 + \*******************************************************************************/
6181 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6182 +
6183 +"use strict";
6184 +
6185 +"use client";
6186 +var __defProp = Object.defineProperty;
6187 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6188 +var __getOwnPropNames = Object.getOwnPropertyNames;
6189 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6190 +var __export = (target, all) => {
6191 + for (var name in all)
6192 + __defProp(target, name, { get: all[name], enumerable: true });
6193 +};
6194 +var __copyProps = (to, from, except, desc) => {
6195 + if (from && typeof from === "object" || typeof from === "function") {
6196 + for (let key of __getOwnPropNames(from))
6197 + if (!__hasOwnProp.call(to, key) && key !== except)
6198 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6199 + }
6200 + return to;
6201 +};
6202 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6203 +
6204 +// src/useInfiniteQuery.ts
6205 +var useInfiniteQuery_exports = {};
6206 +__export(useInfiniteQuery_exports, {
6207 + useInfiniteQuery: () => useInfiniteQuery
6208 +});
6209 +module.exports = __toCommonJS(useInfiniteQuery_exports);
6210 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6211 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6212 +function useInfiniteQuery(options, queryClient) {
6213 + return (0, import_useBaseQuery.useBaseQuery)(
6214 + options,
6215 + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
6216 + import_query_core.InfiniteQueryObserver,
6217 + queryClient
6218 + );
6219 +}
6220 +// Annotate the CommonJS export names for ESM import in node:
6221 +0 && (0);
6222 +//# sourceMappingURL=useInfiniteQuery.cjs.map
6223 +
6224 +/***/ }),
6225 +
6226 +/***/ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs":
6227 +/*!****************************************************************************!*\
6228 + !*** ../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs ***!
6229 + \****************************************************************************/
6230 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6231 +
6232 +"use strict";
6233 +
6234 +"use client";
6235 +var __create = Object.create;
6236 +var __defProp = Object.defineProperty;
6237 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6238 +var __getOwnPropNames = Object.getOwnPropertyNames;
6239 +var __getProtoOf = Object.getPrototypeOf;
6240 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6241 +var __export = (target, all) => {
6242 + for (var name in all)
6243 + __defProp(target, name, { get: all[name], enumerable: true });
6244 +};
6245 +var __copyProps = (to, from, except, desc) => {
6246 + if (from && typeof from === "object" || typeof from === "function") {
6247 + for (let key of __getOwnPropNames(from))
6248 + if (!__hasOwnProp.call(to, key) && key !== except)
6249 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6250 + }
6251 + return to;
6252 +};
6253 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6254 + // If the importer is in node compatibility mode or this is not an ESM
6255 + // file that has been converted to a CommonJS file using a Babel-
6256 + // compatible transform (i.e. "__esModule" has not been set), then set
6257 + // "default" to the CommonJS "module.exports" for node compatibility.
6258 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6259 + mod
6260 +));
6261 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6262 +
6263 +// src/useIsFetching.ts
6264 +var useIsFetching_exports = {};
6265 +__export(useIsFetching_exports, {
6266 + useIsFetching: () => useIsFetching
6267 +});
6268 +module.exports = __toCommonJS(useIsFetching_exports);
6269 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6270 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6271 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6272 +function useIsFetching(filters, queryClient) {
6273 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6274 + const queryCache = client.getQueryCache();
6275 + return React.useSyncExternalStore(
6276 + React.useCallback(
6277 + (onStoreChange) => queryCache.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
6278 + [queryCache]
6279 + ),
6280 + () => client.isFetching(filters),
6281 + () => client.isFetching(filters)
6282 + );
6283 +}
6284 +// Annotate the CommonJS export names for ESM import in node:
6285 +0 && (0);
6286 +//# sourceMappingURL=useIsFetching.cjs.map
6287 +
6288 +/***/ }),
6289 +
6290 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs":
6291 +/*!**************************************************************************!*\
6292 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutation.cjs ***!
6293 + \**************************************************************************/
6294 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6295 +
6296 +"use strict";
6297 +
6298 +"use client";
6299 +var __create = Object.create;
6300 +var __defProp = Object.defineProperty;
6301 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6302 +var __getOwnPropNames = Object.getOwnPropertyNames;
6303 +var __getProtoOf = Object.getPrototypeOf;
6304 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6305 +var __export = (target, all) => {
6306 + for (var name in all)
6307 + __defProp(target, name, { get: all[name], enumerable: true });
6308 +};
6309 +var __copyProps = (to, from, except, desc) => {
6310 + if (from && typeof from === "object" || typeof from === "function") {
6311 + for (let key of __getOwnPropNames(from))
6312 + if (!__hasOwnProp.call(to, key) && key !== except)
6313 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6314 + }
6315 + return to;
6316 +};
6317 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6318 + // If the importer is in node compatibility mode or this is not an ESM
6319 + // file that has been converted to a CommonJS file using a Babel-
6320 + // compatible transform (i.e. "__esModule" has not been set), then set
6321 + // "default" to the CommonJS "module.exports" for node compatibility.
6322 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6323 + mod
6324 +));
6325 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6326 +
6327 +// src/useMutation.ts
6328 +var useMutation_exports = {};
6329 +__export(useMutation_exports, {
6330 + useMutation: () => useMutation
6331 +});
6332 +module.exports = __toCommonJS(useMutation_exports);
6333 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6334 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6335 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6336 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
6337 +function useMutation(options, queryClient) {
6338 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6339 + const [observer] = React.useState(
6340 + () => new import_query_core.MutationObserver(
6341 + client,
6342 + options
6343 + )
6344 + );
6345 + React.useEffect(() => {
6346 + observer.setOptions(options);
6347 + }, [observer, options]);
6348 + const result = React.useSyncExternalStore(
6349 + React.useCallback(
6350 + (onStoreChange) => observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
6351 + [observer]
6352 + ),
6353 + () => observer.getCurrentResult(),
6354 + () => observer.getCurrentResult()
6355 + );
6356 + const mutate = React.useCallback(
6357 + (variables, mutateOptions) => {
6358 + observer.mutate(variables, mutateOptions).catch(noop);
6359 + },
6360 + [observer]
6361 + );
6362 + if (result.error && (0, import_utils.shouldThrowError)(observer.options.throwOnError, [result.error])) {
6363 + throw result.error;
6364 + }
6365 + return { ...result, mutate, mutateAsync: result.mutate };
6366 +}
6367 +function noop() {
6368 +}
6369 +// Annotate the CommonJS export names for ESM import in node:
6370 +0 && (0);
6371 +//# sourceMappingURL=useMutation.cjs.map
6372 +
6373 +/***/ }),
6374 +
6375 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs":
6376 +/*!*******************************************************************************!*\
6377 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs ***!
6378 + \*******************************************************************************/
6379 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6380 +
6381 +"use strict";
6382 +
6383 +"use client";
6384 +var __create = Object.create;
6385 +var __defProp = Object.defineProperty;
6386 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6387 +var __getOwnPropNames = Object.getOwnPropertyNames;
6388 +var __getProtoOf = Object.getPrototypeOf;
6389 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6390 +var __export = (target, all) => {
6391 + for (var name in all)
6392 + __defProp(target, name, { get: all[name], enumerable: true });
6393 +};
6394 +var __copyProps = (to, from, except, desc) => {
6395 + if (from && typeof from === "object" || typeof from === "function") {
6396 + for (let key of __getOwnPropNames(from))
6397 + if (!__hasOwnProp.call(to, key) && key !== except)
6398 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6399 + }
6400 + return to;
6401 +};
6402 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6403 + // If the importer is in node compatibility mode or this is not an ESM
6404 + // file that has been converted to a CommonJS file using a Babel-
6405 + // compatible transform (i.e. "__esModule" has not been set), then set
6406 + // "default" to the CommonJS "module.exports" for node compatibility.
6407 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6408 + mod
6409 +));
6410 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6411 +
6412 +// src/useMutationState.ts
6413 +var useMutationState_exports = {};
6414 +__export(useMutationState_exports, {
6415 + useIsMutating: () => useIsMutating,
6416 + useMutationState: () => useMutationState
6417 +});
6418 +module.exports = __toCommonJS(useMutationState_exports);
6419 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6420 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6421 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6422 +function useIsMutating(filters, queryClient) {
6423 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6424 + return useMutationState(
6425 + { filters: { ...filters, status: "pending" } },
6426 + client
6427 + ).length;
6428 +}
6429 +function getResult(mutationCache, options) {
6430 + return mutationCache.findAll(options.filters).map(
6431 + (mutation) => options.select ? options.select(
6432 + mutation
6433 + ) : mutation.state
6434 + );
6435 +}
6436 +function useMutationState(options = {}, queryClient) {
6437 + const mutationCache = (0, import_QueryClientProvider.useQueryClient)(queryClient).getMutationCache();
6438 + const optionsRef = React.useRef(options);
6439 + const result = React.useRef();
6440 + if (!result.current) {
6441 + result.current = getResult(mutationCache, options);
6442 + }
6443 + React.useEffect(() => {
6444 + optionsRef.current = options;
6445 + });
6446 + return React.useSyncExternalStore(
6447 + React.useCallback(
6448 + (onStoreChange) => mutationCache.subscribe(() => {
6449 + const nextResult = (0, import_query_core.replaceEqualDeep)(
6450 + result.current,
6451 + getResult(mutationCache, optionsRef.current)
6452 + );
6453 + if (result.current !== nextResult) {
6454 + result.current = nextResult;
6455 + import_query_core.notifyManager.schedule(onStoreChange);
6456 + }
6457 + }),
6458 + [mutationCache]
6459 + ),
6460 + () => result.current,
6461 + () => result.current
6462 + );
6463 +}
6464 +// Annotate the CommonJS export names for ESM import in node:
6465 +0 && (0);
6466 +//# sourceMappingURL=useMutationState.cjs.map
6467 +
6468 +/***/ }),
6469 +
6470 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs":
6471 +/*!*************************************************************************!*\
6472 + !*** ../node_modules/@tanstack/react-query/build/modern/useQueries.cjs ***!
6473 + \*************************************************************************/
6474 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6475 +
6476 +"use strict";
6477 +
6478 +"use client";
6479 +var __create = Object.create;
6480 +var __defProp = Object.defineProperty;
6481 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6482 +var __getOwnPropNames = Object.getOwnPropertyNames;
6483 +var __getProtoOf = Object.getPrototypeOf;
6484 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6485 +var __export = (target, all) => {
6486 + for (var name in all)
6487 + __defProp(target, name, { get: all[name], enumerable: true });
6488 +};
6489 +var __copyProps = (to, from, except, desc) => {
6490 + if (from && typeof from === "object" || typeof from === "function") {
6491 + for (let key of __getOwnPropNames(from))
6492 + if (!__hasOwnProp.call(to, key) && key !== except)
6493 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6494 + }
6495 + return to;
6496 +};
6497 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6498 + // If the importer is in node compatibility mode or this is not an ESM
6499 + // file that has been converted to a CommonJS file using a Babel-
6500 + // compatible transform (i.e. "__esModule" has not been set), then set
6501 + // "default" to the CommonJS "module.exports" for node compatibility.
6502 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6503 + mod
6504 +));
6505 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6506 +
6507 +// src/useQueries.ts
6508 +var useQueries_exports = {};
6509 +__export(useQueries_exports, {
6510 + useQueries: () => useQueries
6511 +});
6512 +module.exports = __toCommonJS(useQueries_exports);
6513 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6514 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6515 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6516 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
6517 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
6518 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
6519 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6520 +function useQueries({
6521 + queries,
6522 + ...options
6523 +}, queryClient) {
6524 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6525 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
6526 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
6527 + const defaultedQueries = React.useMemo(
6528 + () => queries.map((opts) => {
6529 + const defaultedOptions = client.defaultQueryOptions(opts);
6530 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
6531 + return defaultedOptions;
6532 + }),
6533 + [queries, client, isRestoring]
6534 + );
6535 + defaultedQueries.forEach((query) => {
6536 + (0, import_suspense.ensureStaleTime)(query);
6537 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(query, errorResetBoundary);
6538 + });
6539 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
6540 + const [observer] = React.useState(
6541 + () => new import_query_core.QueriesObserver(
6542 + client,
6543 + defaultedQueries,
6544 + options
6545 + )
6546 + );
6547 + const [optimisticResult, getCombinedResult, trackResult] = observer.getOptimisticResult(defaultedQueries);
6548 + React.useSyncExternalStore(
6549 + React.useCallback(
6550 + (onStoreChange) => isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
6551 + [observer, isRestoring]
6552 + ),
6553 + () => observer.getCurrentResult(),
6554 + () => observer.getCurrentResult()
6555 + );
6556 + React.useEffect(() => {
6557 + observer.setQueries(
6558 + defaultedQueries,
6559 + options,
6560 + {
6561 + listeners: false
6562 + }
6563 + );
6564 + }, [defaultedQueries, options, observer]);
6565 + const shouldAtLeastOneSuspend = optimisticResult.some(
6566 + (result, index) => (0, import_suspense.shouldSuspend)(defaultedQueries[index], result, isRestoring)
6567 + );
6568 + const suspensePromises = shouldAtLeastOneSuspend ? optimisticResult.flatMap((result, index) => {
6569 + const opts = defaultedQueries[index];
6570 + if (opts) {
6571 + const queryObserver = new import_query_core.QueryObserver(client, opts);
6572 + if ((0, import_suspense.shouldSuspend)(opts, result, isRestoring)) {
6573 + return (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
6574 + } else if ((0, import_suspense.willFetch)(result, isRestoring)) {
6575 + void (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
6576 + }
6577 + }
6578 + return [];
6579 + }) : [];
6580 + if (suspensePromises.length > 0) {
6581 + throw Promise.all(suspensePromises);
6582 + }
6583 + const observerQueries = observer.getQueries();
6584 + const firstSingleResultWhichShouldThrow = optimisticResult.find(
6585 + (result, index) => (0, import_errorBoundaryUtils.getHasError)({
6586 + result,
6587 + errorResetBoundary,
6588 + throwOnError: defaultedQueries[index]?.throwOnError ?? false,
6589 + query: observerQueries[index]
6590 + })
6591 + );
6592 + if (firstSingleResultWhichShouldThrow?.error) {
6593 + throw firstSingleResultWhichShouldThrow.error;
6594 + }
6595 + return getCombinedResult(trackResult());
6596 +}
6597 +// Annotate the CommonJS export names for ESM import in node:
6598 +0 && (0);
6599 +//# sourceMappingURL=useQueries.cjs.map
6600 +
6601 +/***/ }),
6602 +
6603 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs":
6604 +/*!***********************************************************************!*\
6605 + !*** ../node_modules/@tanstack/react-query/build/modern/useQuery.cjs ***!
6606 + \***********************************************************************/
6607 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6608 +
6609 +"use strict";
6610 +
6611 +"use client";
6612 +var __defProp = Object.defineProperty;
6613 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6614 +var __getOwnPropNames = Object.getOwnPropertyNames;
6615 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6616 +var __export = (target, all) => {
6617 + for (var name in all)
6618 + __defProp(target, name, { get: all[name], enumerable: true });
6619 +};
6620 +var __copyProps = (to, from, except, desc) => {
6621 + if (from && typeof from === "object" || typeof from === "function") {
6622 + for (let key of __getOwnPropNames(from))
6623 + if (!__hasOwnProp.call(to, key) && key !== except)
6624 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6625 + }
6626 + return to;
6627 +};
6628 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6629 +
6630 +// src/useQuery.ts
6631 +var useQuery_exports = {};
6632 +__export(useQuery_exports, {
6633 + useQuery: () => useQuery
6634 +});
6635 +module.exports = __toCommonJS(useQuery_exports);
6636 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6637 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6638 +function useQuery(options, queryClient) {
6639 + return (0, import_useBaseQuery.useBaseQuery)(options, import_query_core.QueryObserver, queryClient);
6640 +}
6641 +// Annotate the CommonJS export names for ESM import in node:
6642 +0 && (0);
6643 +//# sourceMappingURL=useQuery.cjs.map
6644 +
6645 +/***/ }),
6646 +
6647 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs":
6648 +/*!***************************************************************************************!*\
6649 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs ***!
6650 + \***************************************************************************************/
6651 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6652 +
6653 +"use strict";
6654 +
6655 +"use client";
6656 +var __defProp = Object.defineProperty;
6657 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6658 +var __getOwnPropNames = Object.getOwnPropertyNames;
6659 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6660 +var __export = (target, all) => {
6661 + for (var name in all)
6662 + __defProp(target, name, { get: all[name], enumerable: true });
6663 +};
6664 +var __copyProps = (to, from, except, desc) => {
6665 + if (from && typeof from === "object" || typeof from === "function") {
6666 + for (let key of __getOwnPropNames(from))
6667 + if (!__hasOwnProp.call(to, key) && key !== except)
6668 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6669 + }
6670 + return to;
6671 +};
6672 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6673 +
6674 +// src/useSuspenseInfiniteQuery.ts
6675 +var useSuspenseInfiniteQuery_exports = {};
6676 +__export(useSuspenseInfiniteQuery_exports, {
6677 + useSuspenseInfiniteQuery: () => useSuspenseInfiniteQuery
6678 +});
6679 +module.exports = __toCommonJS(useSuspenseInfiniteQuery_exports);
6680 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6681 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6682 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6683 +function useSuspenseInfiniteQuery(options, queryClient) {
6684 + return (0, import_useBaseQuery.useBaseQuery)(
6685 + {
6686 + ...options,
6687 + enabled: true,
6688 + suspense: true,
6689 + throwOnError: import_suspense.defaultThrowOnError
6690 + },
6691 + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
6692 + import_query_core.InfiniteQueryObserver,
6693 + queryClient
6694 + );
6695 +}
6696 +// Annotate the CommonJS export names for ESM import in node:
6697 +0 && (0);
6698 +//# sourceMappingURL=useSuspenseInfiniteQuery.cjs.map
6699 +
6700 +/***/ }),
6701 +
6702 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs":
6703 +/*!*********************************************************************************!*\
6704 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs ***!
6705 + \*********************************************************************************/
6706 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6707 +
6708 +"use strict";
6709 +
6710 +"use client";
6711 +var __defProp = Object.defineProperty;
6712 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6713 +var __getOwnPropNames = Object.getOwnPropertyNames;
6714 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6715 +var __export = (target, all) => {
6716 + for (var name in all)
6717 + __defProp(target, name, { get: all[name], enumerable: true });
6718 +};
6719 +var __copyProps = (to, from, except, desc) => {
6720 + if (from && typeof from === "object" || typeof from === "function") {
6721 + for (let key of __getOwnPropNames(from))
6722 + if (!__hasOwnProp.call(to, key) && key !== except)
6723 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6724 + }
6725 + return to;
6726 +};
6727 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6728 +
6729 +// src/useSuspenseQueries.ts
6730 +var useSuspenseQueries_exports = {};
6731 +__export(useSuspenseQueries_exports, {
6732 + useSuspenseQueries: () => useSuspenseQueries
6733 +});
6734 +module.exports = __toCommonJS(useSuspenseQueries_exports);
6735 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
6736 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6737 +function useSuspenseQueries(options, queryClient) {
6738 + return (0, import_useQueries.useQueries)(
6739 + {
6740 + ...options,
6741 + queries: options.queries.map((query) => ({
6742 + ...query,
6743 + suspense: true,
6744 + throwOnError: import_suspense.defaultThrowOnError,
6745 + enabled: true
6746 + }))
6747 + },
6748 + queryClient
6749 + );
6750 +}
6751 +// Annotate the CommonJS export names for ESM import in node:
6752 +0 && (0);
6753 +//# sourceMappingURL=useSuspenseQueries.cjs.map
6754 +
6755 +/***/ }),
6756 +
6757 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs":
6758 +/*!*******************************************************************************!*\
6759 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs ***!
6760 + \*******************************************************************************/
6761 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6762 +
6763 +"use strict";
6764 +
6765 +"use client";
6766 +var __defProp = Object.defineProperty;
6767 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6768 +var __getOwnPropNames = Object.getOwnPropertyNames;
6769 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6770 +var __export = (target, all) => {
6771 + for (var name in all)
6772 + __defProp(target, name, { get: all[name], enumerable: true });
6773 +};
6774 +var __copyProps = (to, from, except, desc) => {
6775 + if (from && typeof from === "object" || typeof from === "function") {
6776 + for (let key of __getOwnPropNames(from))
6777 + if (!__hasOwnProp.call(to, key) && key !== except)
6778 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6779 + }
6780 + return to;
6781 +};
6782 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6783 +
6784 +// src/useSuspenseQuery.ts
6785 +var useSuspenseQuery_exports = {};
6786 +__export(useSuspenseQuery_exports, {
6787 + useSuspenseQuery: () => useSuspenseQuery
6788 +});
6789 +module.exports = __toCommonJS(useSuspenseQuery_exports);
6790 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6791 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6792 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6793 +function useSuspenseQuery(options, queryClient) {
6794 + return (0, import_useBaseQuery.useBaseQuery)(
6795 + {
6796 + ...options,
6797 + enabled: true,
6798 + suspense: true,
6799 + throwOnError: import_suspense.defaultThrowOnError
6800 + },
6801 + import_query_core.QueryObserver,
6802 + queryClient
6803 + );
6804 +}
6805 +// Annotate the CommonJS export names for ESM import in node:
6806 +0 && (0);
6807 +//# sourceMappingURL=useSuspenseQuery.cjs.map
6808 +
6809 +/***/ }),
6810 +
6811 +/***/ "../node_modules/@tanstack/react-query/build/modern/utils.cjs":
6812 +/*!********************************************************************!*\
6813 + !*** ../node_modules/@tanstack/react-query/build/modern/utils.cjs ***!
6814 + \********************************************************************/
6815 +/***/ ((module) => {
6816 +
6817 +"use strict";
6818 +
6819 +var __defProp = Object.defineProperty;
6820 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6821 +var __getOwnPropNames = Object.getOwnPropertyNames;
6822 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6823 +var __export = (target, all) => {
6824 + for (var name in all)
6825 + __defProp(target, name, { get: all[name], enumerable: true });
6826 +};
6827 +var __copyProps = (to, from, except, desc) => {
6828 + if (from && typeof from === "object" || typeof from === "function") {
6829 + for (let key of __getOwnPropNames(from))
6830 + if (!__hasOwnProp.call(to, key) && key !== except)
6831 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6832 + }
6833 + return to;
6834 +};
6835 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6836 +
6837 +// src/utils.ts
6838 +var utils_exports = {};
6839 +__export(utils_exports, {
6840 + shouldThrowError: () => shouldThrowError
6841 +});
6842 +module.exports = __toCommonJS(utils_exports);
6843 +function shouldThrowError(throwError, params) {
6844 + if (typeof throwError === "function") {
6845 + return throwError(...params);
6846 + }
6847 + return !!throwError;
6848 +}
6849 +// Annotate the CommonJS export names for ESM import in node:
6850 +0 && (0);
6851 +//# sourceMappingURL=utils.cjs.map
6852 +
6853 +/***/ })
6854 +
6855 +/******/ });
6856 +/************************************************************************/
6857 +/******/ // The module cache
6858 +/******/ var __webpack_module_cache__ = {};
6859 +/******/
6860 +/******/ // The require function
6861 +/******/ function __webpack_require__(moduleId) {
6862 +/******/ // Check if module is in cache
6863 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
6864 +/******/ if (cachedModule !== undefined) {
6865 +/******/ return cachedModule.exports;
6866 +/******/ }
6867 +/******/ // Create a new module (and put it into the cache)
6868 +/******/ var module = __webpack_module_cache__[moduleId] = {
6869 +/******/ // no module.id needed
6870 +/******/ // no module.loaded needed
6871 +/******/ exports: {}
6872 +/******/ };
6873 +/******/
6874 +/******/ // Execute the module function
6875 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
6876 +/******/
6877 +/******/ // Return the exports of the module
6878 +/******/ return module.exports;
6879 +/******/ }
6880 +/******/
6881 +/************************************************************************/
6882 +var __webpack_exports__ = {};
6883 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
6884 +(() => {
6885 +"use strict";
6886 +/*!****************************************************!*\
6887 + !*** ../modules/notifications/assets/js/editor.js ***!
6888 + \****************************************************/
6889 +
6890 +
6891 +var _editorV = __webpack_require__(/*! ./components/editor-v1 */ "../modules/notifications/assets/js/components/editor-v1.js");
6892 +var _editorV2 = __webpack_require__(/*! ./components/editor-v2 */ "../modules/notifications/assets/js/components/editor-v2.js");
6893 +var _window, _window$elementorV;
6894 +if ((_window = window) !== null && _window !== void 0 && (_window$elementorV = _window.elementorV2) !== null && _window$elementorV !== void 0 && _window$elementorV.editorAppBar) {
6895 + (0, _editorV2.editorV2)();
6896 +} else {
6897 + (0, _editorV.editorV1)();
6898 +}
6899 +})();
6900 +
6901 +/******/ })()
6902 +;
1578 6903 //# sourceMappingURL=editor-notifications.js.map