PluginProbe
Elementor Website Builder – more than just a page builder / 3.22.2
Elementor Website Builder – more than just a page builder v3.22.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 4.0.8 All 454 releases
← All changes | assets/js/editor-notifications.js +6940 -1521 4.3.0-beta3 → 3.22.2 View file →
@@ -1,1578 +1,6997 @@
1 -(function(_wordpress_i18n, react, react_dom, _elementor_ui, _elementor_query, _elementor_icons, _elementor_editor_app_bar, _elementor_icons_SpeakerphoneIcon) {
1 +/*! elementor - v3.22.0 - 24-06-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 +/***/ "../assets/dev/js/utils/react.js":
62 +/*!***************************************!*\
63 + !*** ../assets/dev/js/utils/react.js ***!
64 + \***************************************/
65 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
66 +
67 +"use strict";
68 +
69 +
70 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
71 +Object.defineProperty(exports, "__esModule", ({
72 + value: true
73 +}));
74 +exports["default"] = void 0;
75 +var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
76 +var ReactDOM = _interopRequireWildcard(__webpack_require__(/*! react-dom */ "react-dom"));
77 +var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
78 +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); }
79 +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; }
80 +/**
81 + * Support conditional rendering of a React App to the DOM, based on the React version.
82 + * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
83 + *
84 + * @param { React.ReactElement } app The app to render.
85 + * @param { HTMLElement } domElement The DOM element to render the app into.
86 + *
87 + * @return {{ unmount: () => void }} The unmount function.
88 + */
89 +function render(app, domElement) {
90 + var unmountFunction;
91 + try {
92 + var root = (0, _client.createRoot)(domElement);
93 + root.render(app);
94 + unmountFunction = function unmountFunction() {
95 + root.unmount();
96 + };
97 + } catch (e) {
98 + // eslint-disable-next-line react/no-deprecated
99 + ReactDOM.render(app, domElement);
100 + unmountFunction = function unmountFunction() {
101 + // eslint-disable-next-line react/no-deprecated
102 + ReactDOM.unmountComponentAtNode(domElement);
103 + };
104 + }
105 + return {
106 + unmount: unmountFunction
107 + };
108 +}
109 +var _default = {
110 + render: render
111 +};
112 +exports["default"] = _default;
113 +
114 +/***/ }),
115 +
116 +/***/ "../modules/notifications/assets/js/api/index.js":
117 +/*!*******************************************************!*\
118 + !*** ../modules/notifications/assets/js/api/index.js ***!
119 + \*******************************************************/
120 +/***/ ((__unused_webpack_module, exports) => {
121 +
122 +"use strict";
123 +
124 +
125 +Object.defineProperty(exports, "__esModule", ({
126 + value: true
127 +}));
128 +exports.getNotifications = void 0;
129 +var request = function request(endpoint) {
130 + var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
131 + return new Promise(function (resolve, reject) {
132 + elementorCommon.ajax.addRequest(endpoint, {
133 + success: resolve,
134 + error: reject,
135 + data: data
136 + });
137 + });
138 +};
139 +var getNotifications = function getNotifications() {
140 + return request('notifications_get');
141 +};
142 +exports.getNotifications = getNotifications;
143 +
144 +/***/ }),
145 +
146 +/***/ "../modules/notifications/assets/js/components/editor-drawer.js":
147 +/*!**********************************************************************!*\
148 + !*** ../modules/notifications/assets/js/components/editor-drawer.js ***!
149 + \**********************************************************************/
150 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
151 +
152 +"use strict";
153 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
154 +
155 +
156 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
157 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
158 +Object.defineProperty(exports, "__esModule", ({
159 + value: true
160 +}));
161 +exports.EditorDrawer = void 0;
162 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
163 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
164 +var _whatsNew = __webpack_require__(/*! ./whats-new */ "../modules/notifications/assets/js/components/whats-new.js");
165 +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); }
166 +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; }
167 +var EditorDrawer = function EditorDrawer(_ref) {
168 + var _ref$anchorPosition = _ref.anchorPosition,
169 + anchorPosition = _ref$anchorPosition === void 0 ? 'left' : _ref$anchorPosition;
170 + var _useState = (0, _react.useState)(true),
171 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
172 + isOpen = _useState2[0],
173 + setIsOpen = _useState2[1];
174 + (0, _react.useEffect)(function () {
175 + elementor.on('elementor/editor/panel/whats-new/clicked', function () {
176 + return setIsOpen(true);
177 + });
178 + }, []);
179 + return /*#__PURE__*/_react.default.createElement(_whatsNew.WhatsNew, {
180 + isOpen: isOpen,
181 + setIsOpen: setIsOpen,
182 + setIsRead: function setIsRead() {
183 + return document.body.classList.remove('e-has-notification');
184 + },
185 + anchorPosition: anchorPosition
186 + });
187 +};
188 +exports.EditorDrawer = EditorDrawer;
189 +EditorDrawer.propTypes = {
190 + anchorPosition: PropTypes.oneOf(['left', 'top', 'right', 'bottom'])
191 +};
192 +
193 +/***/ }),
194 +
195 +/***/ "../modules/notifications/assets/js/components/editor-on-button-clicked.js":
196 +/*!*********************************************************************************!*\
197 + !*** ../modules/notifications/assets/js/components/editor-on-button-clicked.js ***!
198 + \*********************************************************************************/
199 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
200 +
201 +"use strict";
202 +
203 +
204 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
205 +Object.defineProperty(exports, "__esModule", ({
206 + value: true
207 +}));
208 +exports.editorOnButtonClicked = void 0;
209 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
210 +var _react2 = _interopRequireDefault(__webpack_require__(/*! elementor-utils/react */ "../assets/dev/js/utils/react.js"));
211 +var _editorDrawer = __webpack_require__(/*! ./editor-drawer */ "../modules/notifications/assets/js/components/editor-drawer.js");
212 +var isRendered = false;
213 +var editorOnButtonClicked = function editorOnButtonClicked() {
214 + var anchorPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'left';
215 + if (!isRendered) {
216 + isRendered = true;
217 + var container = document.createElement('div');
218 + document.body.append(container);
219 + _react2.default.render( /*#__PURE__*/_react.default.createElement(_editorDrawer.EditorDrawer, {
220 + anchorPosition: anchorPosition
221 + }), container);
222 + return;
223 + }
224 + elementor.trigger('elementor/editor/panel/whats-new/clicked');
225 +};
226 +exports.editorOnButtonClicked = editorOnButtonClicked;
227 +
228 +/***/ }),
229 +
230 +/***/ "../modules/notifications/assets/js/components/editor-v1.js":
231 +/*!******************************************************************!*\
232 + !*** ../modules/notifications/assets/js/components/editor-v1.js ***!
233 + \******************************************************************/
234 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
235 +
236 +"use strict";
237 +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
238 +
239 +
240 +Object.defineProperty(exports, "__esModule", ({
241 + value: true
242 +}));
243 +exports.editorV1 = void 0;
244 +var _editorOnButtonClicked = __webpack_require__(/*! ./editor-on-button-clicked */ "../modules/notifications/assets/js/components/editor-on-button-clicked.js");
245 +var editorV1 = function editorV1() {
246 + elementor.on('panel:init', function () {
247 + if (elementorNotifications.is_unread) {
248 + document.body.classList.add('e-has-notification');
249 + }
250 + elementor.getPanelView().getPages('menu').view.addItem({
251 + name: 'notification-center',
252 + icon: 'eicon-notification',
253 + title: __('What\'s New', 'elementor'),
254 + callback: _editorOnButtonClicked.editorOnButtonClicked
255 + }, 'navigate_from_page', 'view-page');
256 + });
257 +};
258 +exports.editorV1 = editorV1;
259 +
260 +/***/ }),
261 +
262 +/***/ "../modules/notifications/assets/js/components/editor-v2.js":
263 +/*!******************************************************************!*\
264 + !*** ../modules/notifications/assets/js/components/editor-v2.js ***!
265 + \******************************************************************/
266 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
267 +
268 +"use strict";
269 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
270 +
271 +
272 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
273 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
274 +Object.defineProperty(exports, "__esModule", ({
275 + value: true
276 +}));
277 +exports.editorV2 = void 0;
278 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
279 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
280 +var _giftIcon = __webpack_require__(/*! ../icons/gift-icon */ "../modules/notifications/assets/js/icons/gift-icon.js");
281 +var _editorOnButtonClicked = __webpack_require__(/*! ./editor-on-button-clicked */ "../modules/notifications/assets/js/components/editor-on-button-clicked.js");
282 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
283 +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
284 +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); }
285 +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; }
286 +var IconWithBadge = function IconWithBadge(_ref) {
287 + var invisible = _ref.invisible;
288 + return /*#__PURE__*/_react.default.createElement(_ui.Badge, {
289 + color: "primary",
290 + variant: "dot",
291 + invisible: invisible
292 + }, /*#__PURE__*/_react.default.createElement(_giftIcon.GiftIcon, null));
293 +};
294 +IconWithBadge.propTypes = {
295 + invisible: PropTypes.bool
296 +};
297 +var editorV2 = function editorV2() {
298 + var utilitiesMenu = window.elementorV2.editorAppBar.utilitiesMenu;
299 + utilitiesMenu.registerLink({
300 + id: 'app-bar-menu-item-whats-new',
301 + priority: 25,
302 + useProps: function useProps() {
303 + var _useState = (0, _react.useState)(!elementorNotifications.is_unread),
304 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
305 + isRead = _useState2[0],
306 + setIsRead = _useState2[1];
307 + return {
308 + title: (0, _i18n.__)("What's New", 'elementor'),
309 + icon: function icon() {
310 + return /*#__PURE__*/_react.default.createElement(IconWithBadge, {
311 + invisible: isRead
312 + });
313 + },
314 + onClick: function onClick() {
315 + elementor.editorEvents.dispatchEvent(elementor.editorEvents.config.names.topBar.whatsNew, {
316 + location: elementor.editorEvents.config.locations.topBar,
317 + secondaryLocation: elementor.editorEvents.config.secondaryLocations['whats-new'],
318 + trigger: elementor.editorEvents.config.triggers.click,
319 + element: elementor.editorEvents.config.elements.buttonIcon
320 + });
321 + setIsRead(true);
322 + elementorNotifications.is_unread = false;
323 + (0, _editorOnButtonClicked.editorOnButtonClicked)('right');
324 + }
325 + };
326 + }
327 + });
328 +};
329 +exports.editorV2 = editorV2;
330 +
331 +/***/ }),
332 +
333 +/***/ "../modules/notifications/assets/js/components/whats-new-drawer-content.js":
334 +/*!*********************************************************************************!*\
335 + !*** ../modules/notifications/assets/js/components/whats-new-drawer-content.js ***!
336 + \*********************************************************************************/
337 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
338 +
339 +"use strict";
340 +
341 +
342 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
343 +Object.defineProperty(exports, "__esModule", ({
344 + value: true
345 +}));
346 +exports.WhatsNewDrawerContent = void 0;
347 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
348 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
349 +var _api = __webpack_require__(/*! ../api */ "../modules/notifications/assets/js/api/index.js");
350 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
351 +var _whatsNewItem = __webpack_require__(/*! ./whats-new-item */ "../modules/notifications/assets/js/components/whats-new-item.js");
352 +var WhatsNewDrawerContent = function WhatsNewDrawerContent() {
353 + var _useQuery = (0, _query.useQuery)({
354 + queryKey: ['e-notifications'],
355 + queryFn: _api.getNotifications
356 + }),
357 + isPending = _useQuery.isPending,
358 + error = _useQuery.error,
359 + items = _useQuery.data;
360 + if (isPending) {
361 + return /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.LinearProgress, {
362 + color: "secondary"
363 + }));
364 + }
365 + if (error) {
366 + return /*#__PURE__*/_react.default.createElement(_ui.Box, null, "An error has occurred: ", error);
367 + }
368 + return items.map(function (item, itemIndex) {
369 + return /*#__PURE__*/_react.default.createElement(_whatsNewItem.WhatsNewItem, {
370 + key: itemIndex,
371 + item: item,
372 + itemIndex: itemIndex,
373 + itemsLength: items.length
374 + });
375 + });
376 +};
377 +exports.WhatsNewDrawerContent = WhatsNewDrawerContent;
378 +
379 +/***/ }),
380 +
381 +/***/ "../modules/notifications/assets/js/components/whats-new-item-chips.js":
382 +/*!*****************************************************************************!*\
383 + !*** ../modules/notifications/assets/js/components/whats-new-item-chips.js ***!
384 + \*****************************************************************************/
385 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
386 +
387 +"use strict";
388 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
389 +
390 +
391 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
392 +Object.defineProperty(exports, "__esModule", ({
393 + value: true
394 +}));
395 +exports.WhatsNewItemChips = void 0;
396 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
397 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
398 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
399 +var WhatsNewItemChips = function WhatsNewItemChips(_ref) {
400 + var chipPlan = _ref.chipPlan,
401 + chipTags = _ref.chipTags,
402 + itemIndex = _ref.itemIndex;
403 + var chips = [];
404 + if (chipPlan) {
405 + chips.push({
406 + color: 'promotion',
407 + size: 'small',
408 + label: chipPlan
409 + });
410 + }
411 + if (chipTags) {
412 + chipTags.forEach(function (chipTag) {
413 + chips.push({
414 + variant: 'outlined',
415 + size: 'small',
416 + label: chipTag
417 + });
418 + });
419 + }
420 + if (!chips.length) {
421 + return null;
422 + }
423 + return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
424 + direction: "row",
425 + flexWrap: "wrap",
426 + gap: 1,
427 + sx: {
428 + pb: 1
429 + }
430 + }, chips.map(function (chip, chipIndex) {
431 + return /*#__PURE__*/_react.default.createElement(_ui.Chip, (0, _extends2.default)({
432 + key: "chip-".concat(itemIndex).concat(chipIndex)
433 + }, chip));
434 + }));
435 +};
436 +exports.WhatsNewItemChips = WhatsNewItemChips;
437 +WhatsNewItemChips.propTypes = {
438 + chipPlan: PropTypes.string,
439 + chipTags: PropTypes.array,
440 + itemIndex: PropTypes.number.isRequired
441 +};
442 +
443 +/***/ }),
444 +
445 +/***/ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js":
446 +/*!*********************************************************************************!*\
447 + !*** ../modules/notifications/assets/js/components/whats-new-item-thumbnail.js ***!
448 + \*********************************************************************************/
449 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
450 +
451 +"use strict";
452 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
453 +
454 +
455 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
456 +Object.defineProperty(exports, "__esModule", ({
457 + value: true
458 +}));
459 +exports.WhatsNewItemThumbnail = void 0;
460 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
461 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
462 +var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
463 +var WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
464 + var imageSrc = _ref.imageSrc,
465 + title = _ref.title,
466 + link = _ref.link;
467 + return /*#__PURE__*/_react.default.createElement(_ui.Box, {
468 + sx: {
469 + pb: 2
470 + }
471 + }, /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
472 + link: link
473 + }, /*#__PURE__*/_react.default.createElement("img", {
474 + src: imageSrc,
475 + alt: title,
476 + style: {
477 + maxWidth: '100%'
478 + }
479 + })));
480 +};
481 +exports.WhatsNewItemThumbnail = WhatsNewItemThumbnail;
482 +WhatsNewItemThumbnail.propTypes = {
483 + imageSrc: PropTypes.string.isRequired,
484 + title: PropTypes.string.isRequired,
485 + link: PropTypes.string
486 +};
487 +
488 +/***/ }),
489 +
490 +/***/ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js":
491 +/*!**********************************************************************************!*\
492 + !*** ../modules/notifications/assets/js/components/whats-new-item-topic-line.js ***!
493 + \**********************************************************************************/
494 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
495 +
496 +"use strict";
497 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
498 +
499 +
500 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
501 +Object.defineProperty(exports, "__esModule", ({
502 + value: true
503 +}));
504 +exports.WhatsNewItemTopicLine = void 0;
505 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
506 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
507 +var WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
508 + var topic = _ref.topic,
509 + date = _ref.date;
510 + return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
511 + direction: "row",
512 + divider: /*#__PURE__*/_react.default.createElement(_ui.Divider, {
513 + orientation: "vertical",
514 + flexItem: true
515 + }),
516 + spacing: 1,
517 + color: "text.tertiary",
518 + sx: {
519 + pb: 1
520 + }
521 + }, topic && /*#__PURE__*/_react.default.createElement(_ui.Box, null, topic), date && /*#__PURE__*/_react.default.createElement(_ui.Box, null, date));
522 +};
523 +exports.WhatsNewItemTopicLine = WhatsNewItemTopicLine;
524 +WhatsNewItemTopicLine.propTypes = {
525 + topic: PropTypes.string,
526 + date: PropTypes.string
527 +};
528 +
529 +/***/ }),
530 +
531 +/***/ "../modules/notifications/assets/js/components/whats-new-item.js":
532 +/*!***********************************************************************!*\
533 + !*** ../modules/notifications/assets/js/components/whats-new-item.js ***!
534 + \***********************************************************************/
535 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
536 +
537 +"use strict";
538 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
539 +
540 +
541 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
542 +Object.defineProperty(exports, "__esModule", ({
543 + value: true
544 +}));
545 +exports.WhatsNewItem = void 0;
546 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
547 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
548 +var _whatsNewItemTopicLine = __webpack_require__(/*! ./whats-new-item-topic-line */ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js");
549 +var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
550 +var _whatsNewItemThumbnail = __webpack_require__(/*! ./whats-new-item-thumbnail */ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js");
551 +var _whatsNewItemChips = __webpack_require__(/*! ./whats-new-item-chips */ "../modules/notifications/assets/js/components/whats-new-item-chips.js");
552 +var WhatsNewItem = function WhatsNewItem(_ref) {
553 + var item = _ref.item,
554 + itemIndex = _ref.itemIndex,
555 + itemsLength = _ref.itemsLength;
556 + return /*#__PURE__*/_react.default.createElement(_ui.Box, {
557 + key: itemIndex,
558 + display: "flex",
559 + flexDirection: "column",
560 + sx: {
561 + pt: 2
562 + }
563 + }, (item.topic || item.date) && /*#__PURE__*/_react.default.createElement(_whatsNewItemTopicLine.WhatsNewItemTopicLine, {
564 + topic: item.topic,
565 + date: item.date
566 + }), /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
567 + link: item.link
568 + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
569 + variant: "subtitle1",
570 + sx: {
571 + pb: 2
572 + }
573 + }, item.title)), item.imageSrc && /*#__PURE__*/_react.default.createElement(_whatsNewItemThumbnail.WhatsNewItemThumbnail, {
574 + imageSrc: item.imageSrc,
575 + link: item.link,
576 + title: item.title
577 + }), /*#__PURE__*/_react.default.createElement(_whatsNewItemChips.WhatsNewItemChips, {
578 + chipPlan: item.chipPlan,
579 + chipTags: item.chipTags,
580 + itemIndex: itemIndex
581 + }), item.description && /*#__PURE__*/_react.default.createElement(_ui.Typography, {
582 + variant: "body2",
583 + color: "text.secondary",
584 + sx: {
585 + pb: 2
586 + }
587 + }, item.description, item.readMoreText && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ' ', /*#__PURE__*/_react.default.createElement(_ui.Link, {
588 + href: item.link,
589 + color: "info.main",
590 + target: "_blank"
591 + }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/_react.default.createElement(_ui.Box, {
592 + sx: {
593 + pb: 2
594 + }
595 + }, /*#__PURE__*/_react.default.createElement(_ui.Button, {
596 + href: item.ctaLink,
597 + target: "_blank",
598 + variant: "contained",
599 + size: "small",
600 + color: "promotion"
601 + }, item.cta)), itemIndex !== itemsLength - 1 && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
602 + sx: {
603 + my: 1
604 + }
605 + }));
606 +};
607 +exports.WhatsNewItem = WhatsNewItem;
608 +WhatsNewItem.propTypes = {
609 + item: PropTypes.object.isRequired,
610 + itemIndex: PropTypes.number.isRequired,
611 + itemsLength: PropTypes.number.isRequired
612 +};
613 +
614 +/***/ }),
615 +
616 +/***/ "../modules/notifications/assets/js/components/whats-new-top-bar.js":
617 +/*!**************************************************************************!*\
618 + !*** ../modules/notifications/assets/js/components/whats-new-top-bar.js ***!
619 + \**************************************************************************/
620 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
621 +
622 +"use strict";
623 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
624 +
625 +
626 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
627 +Object.defineProperty(exports, "__esModule", ({
628 + value: true
629 +}));
630 +exports.WhatsNewTopBar = void 0;
631 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
632 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
633 +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
634 +var _xIcon = __webpack_require__(/*! ../icons/x-icon */ "../modules/notifications/assets/js/icons/x-icon.js");
635 +var WhatsNewTopBar = function WhatsNewTopBar(props) {
636 + var setIsOpen = props.setIsOpen;
637 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.AppBar, {
638 + elevation: 0,
639 + position: "sticky",
640 + sx: {
641 + backgroundColor: 'background.default'
642 + }
643 + }, /*#__PURE__*/_react.default.createElement(_ui.Toolbar, {
644 + variant: "dense"
645 + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
646 + variant: "overline",
647 + sx: {
648 + flexGrow: 1
649 + }
650 + }, (0, _i18n.__)('What\'s New', 'elementor')), /*#__PURE__*/_react.default.createElement(_ui.IconButton, {
651 + "aria-label": 'close',
652 + size: "small",
653 + onClick: function onClick() {
654 + return setIsOpen(false);
655 + }
656 + }, /*#__PURE__*/_react.default.createElement(_xIcon.XIcon, null)))), /*#__PURE__*/_react.default.createElement(_ui.Divider, null));
657 +};
658 +exports.WhatsNewTopBar = WhatsNewTopBar;
659 +WhatsNewTopBar.propTypes = {
660 + setIsOpen: PropTypes.func.isRequired
661 +};
662 +
663 +/***/ }),
664 +
665 +/***/ "../modules/notifications/assets/js/components/whats-new.js":
666 +/*!******************************************************************!*\
667 + !*** ../modules/notifications/assets/js/components/whats-new.js ***!
668 + \******************************************************************/
669 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
670 +
671 +"use strict";
672 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
673 +
674 +
675 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
676 +Object.defineProperty(exports, "__esModule", ({
677 + value: true
678 +}));
679 +exports.WhatsNew = void 0;
680 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
681 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
682 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
683 +var _whatsNewTopBar = __webpack_require__(/*! ./whats-new-top-bar */ "../modules/notifications/assets/js/components/whats-new-top-bar.js");
684 +var _whatsNewDrawerContent = __webpack_require__(/*! ./whats-new-drawer-content */ "../modules/notifications/assets/js/components/whats-new-drawer-content.js");
685 +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); }
686 +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; }
687 +var queryClient = new _query.QueryClient({
688 + defaultOptions: {
689 + queries: {
690 + refetchOnWindowFocus: false,
691 + retry: false,
692 + staleTime: 1000 * 60 * 30 // 30 minutes
693 + }
694 + }
695 +});
696 +
697 +var WhatsNew = function WhatsNew(props) {
698 + var _window$elementor, _window$elementor$get;
699 + var isOpen = props.isOpen,
700 + setIsOpen = props.setIsOpen,
701 + setIsRead = props.setIsRead,
702 + _props$anchorPosition = props.anchorPosition,
703 + anchorPosition = _props$anchorPosition === void 0 ? 'right' : _props$anchorPosition;
704 + (0, _react.useEffect)(function () {
705 + if (!isOpen) {
706 + return;
707 + }
708 + setIsRead(true);
709 + }, [isOpen, setIsRead]);
710 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_query.QueryClientProvider, {
711 + client: queryClient
712 + }, /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
713 + rtl: elementorCommon.config.isRTL
714 + }, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
715 + 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'
716 + }, /*#__PURE__*/_react.default.createElement(_ui.Drawer, {
717 + anchor: anchorPosition,
718 + open: isOpen,
719 + onClose: function onClose() {
720 + return setIsOpen(false);
721 + },
722 + ModalProps: {
723 + style: {
724 + // Above the WordPress Admin Top Bar.
725 + zIndex: 999999
726 + }
727 + }
728 + }, /*#__PURE__*/_react.default.createElement(_ui.Box, {
729 + sx: {
730 + width: 320,
731 + backgroundColor: 'background.default'
732 + },
733 + role: "presentation"
734 + }, /*#__PURE__*/_react.default.createElement(_whatsNewTopBar.WhatsNewTopBar, {
735 + setIsOpen: setIsOpen
736 + }), /*#__PURE__*/_react.default.createElement(_ui.Box, {
737 + sx: {
738 + padding: '16px'
739 + }
740 + }, /*#__PURE__*/_react.default.createElement(_whatsNewDrawerContent.WhatsNewDrawerContent, null))))))));
741 +};
742 +exports.WhatsNew = WhatsNew;
743 +WhatsNew.propTypes = {
744 + isOpen: PropTypes.bool.isRequired,
745 + setIsOpen: PropTypes.func.isRequired,
746 + setIsRead: PropTypes.func.isRequired,
747 + anchorPosition: PropTypes.oneOf(['left', 'top', 'right', 'bottom'])
748 +};
749 +
750 +/***/ }),
751 +
752 +/***/ "../modules/notifications/assets/js/components/wrapper-with-link.js":
753 +/*!**************************************************************************!*\
754 + !*** ../modules/notifications/assets/js/components/wrapper-with-link.js ***!
755 + \**************************************************************************/
756 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
757 +
758 +"use strict";
759 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
760 +
761 +
762 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
763 +Object.defineProperty(exports, "__esModule", ({
764 + value: true
765 +}));
766 +exports.WrapperWithLink = void 0;
767 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
768 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
769 +var WrapperWithLink = function WrapperWithLink(props) {
770 + var link = props.link,
771 + children = props.children;
772 + if (!link) {
773 + return children;
774 + }
775 + return /*#__PURE__*/_react.default.createElement(_ui.Link, {
776 + href: link,
777 + target: "_blank",
778 + underline: "none",
779 + color: "inherit",
780 + sx: {
781 + '&:hover': {
782 + color: 'inherit'
783 + }
784 + }
785 + }, children);
786 +};
787 +exports.WrapperWithLink = WrapperWithLink;
788 +WrapperWithLink.propTypes = {
789 + link: PropTypes.string,
790 + children: PropTypes.any.isRequired
791 +};
792 +
793 +/***/ }),
794 +
795 +/***/ "../modules/notifications/assets/js/icons/gift-icon.js":
796 +/*!*************************************************************!*\
797 + !*** ../modules/notifications/assets/js/icons/gift-icon.js ***!
798 + \*************************************************************/
799 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
800 +
801 +"use strict";
802 +
803 +
804 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
805 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
806 +Object.defineProperty(exports, "__esModule", ({
807 + value: true
808 +}));
809 +exports.GiftIcon = void 0;
810 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
811 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
812 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
813 +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); }
814 +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; }
815 +var GiftIcon = (0, _react.forwardRef)(function (props, ref) {
816 + return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
817 + viewBox: "0 0 24 24"
818 + }, props, {
819 + ref: ref
820 + }), /*#__PURE__*/_react.default.createElement("path", {
821 + fillRule: "evenodd",
822 + clipRule: "evenodd",
823 + 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"
824 + }));
825 +});
826 +exports.GiftIcon = GiftIcon;
827 +
828 +/***/ }),
829 +
830 +/***/ "../modules/notifications/assets/js/icons/x-icon.js":
831 +/*!**********************************************************!*\
832 + !*** ../modules/notifications/assets/js/icons/x-icon.js ***!
833 + \**********************************************************/
834 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
835 +
836 +"use strict";
837 +
838 +
839 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
840 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
841 +Object.defineProperty(exports, "__esModule", ({
842 + value: true
843 +}));
844 +exports.XIcon = void 0;
845 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
846 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
847 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
848 +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); }
849 +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; }
850 +var XIcon = (0, _react.forwardRef)(function (props, ref) {
851 + return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
852 + viewBox: "0 0 24 24"
853 + }, props, {
854 + ref: ref
855 + }), /*#__PURE__*/_react.default.createElement("path", {
856 + fillRule: "evenodd",
857 + clipRule: "evenodd",
858 + 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"
859 + }), /*#__PURE__*/_react.default.createElement("path", {
860 + fillRule: "evenodd",
861 + clipRule: "evenodd",
862 + 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"
863 + }));
864 +});
865 +exports.XIcon = XIcon;
866 +
867 +/***/ }),
868 +
869 +/***/ "../node_modules/object-assign/index.js":
870 +/*!**********************************************!*\
871 + !*** ../node_modules/object-assign/index.js ***!
872 + \**********************************************/
873 +/***/ ((module) => {
874 +
875 +"use strict";
876 +/*
877 +object-assign
878 +(c) Sindre Sorhus
879 +@license MIT
880 +*/
881 +
882 +
883 +/* eslint-disable no-unused-vars */
884 +var getOwnPropertySymbols = Object.getOwnPropertySymbols;
885 +var hasOwnProperty = Object.prototype.hasOwnProperty;
886 +var propIsEnumerable = Object.prototype.propertyIsEnumerable;
887 +
888 +function toObject(val) {
889 + if (val === null || val === undefined) {
890 + throw new TypeError('Object.assign cannot be called with null or undefined');
891 + }
892 +
893 + return Object(val);
894 +}
895 +
896 +function shouldUseNative() {
897 + try {
898 + if (!Object.assign) {
899 + return false;
26 900 }
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 901
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);
902 + // Detect buggy property enumeration order in older V8 versions.
39 903
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 - }));
904 + // https://bugs.chromium.org/p/v8/issues/detail?id=4118
905 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
906 + test1[5] = 'de';
907 + if (Object.getOwnPropertyNames(test1)[0] === '5') {
908 + return false;
909 + }
53 910
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 - };
911 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
912 + var test2 = {};
913 + for (var i = 0; i < 10; i++) {
914 + test2['_' + String.fromCharCode(i)] = i;
79 915 }
80 - return { unmount: unmountFunction };
916 + var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
917 + return test2[n];
918 + });
919 + if (order2.join('') !== '0123456789') {
920 + return false;
921 + }
922 +
923 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
924 + var test3 = {};
925 + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
926 + test3[letter] = letter;
927 + });
928 + if (Object.keys(Object.assign({}, test3)).join('') !==
929 + 'abcdefghijklmnopqrst') {
930 + return false;
931 + }
932 +
933 + return true;
934 + } catch (err) {
935 + // We don't expect any of the above to throw, but better to be safe.
936 + return false;
81 937 }
82 - var react_default = { render };
938 +}
83 939
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 - }));
940 +module.exports = shouldUseNative() ? Object.assign : function (target, source) {
941 + var from;
942 + var to = toObject(target);
943 + var symbols;
234 944
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 - }));
945 + for (var s = 1; s < arguments.length; s++) {
946 + from = Object(arguments[s]);
240 947
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;
948 + for (var key in from) {
949 + if (hasOwnProperty.call(from, key)) {
950 + to[key] = from[key];
275 951 }
276 952 }
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]];
953 +
954 + if (getOwnPropertySymbols) {
955 + symbols = getOwnPropertySymbols(from);
956 + for (var i = 0; i < symbols.length; i++) {
957 + if (propIsEnumerable.call(from, symbols[i])) {
958 + to[symbols[i]] = from[symbols[i]];
287 959 }
288 960 }
289 - return to;
290 - };
291 - }));
961 + }
962 + }
292 963
293 -//#endregion
294 -//#region node_modules/prop-types/lib/ReactPropTypesSecret.js
964 + return to;
965 +};
966 +
967 +
968 +/***/ }),
969 +
970 +/***/ "../node_modules/prop-types/checkPropTypes.js":
971 +/*!****************************************************!*\
972 + !*** ../node_modules/prop-types/checkPropTypes.js ***!
973 + \****************************************************/
974 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
975 +
976 +"use strict";
295 977 /**
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 - }));
978 + * Copyright (c) 2013-present, Facebook, Inc.
979 + *
980 + * This source code is licensed under the MIT license found in the
981 + * LICENSE file in the root directory of this source tree.
982 + */
305 983
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 984
312 -//#endregion
313 -//#region node_modules/prop-types/checkPropTypes.js
985 +
986 +var printWarning = function() {};
987 +
988 +if (true) {
989 + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
990 + var loggedTypeFailures = {};
991 + var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
992 +
993 + printWarning = function(text) {
994 + var message = 'Warning: ' + text;
995 + if (typeof console !== 'undefined') {
996 + console.error(message);
997 + }
998 + try {
999 + // --- Welcome to debugging React ---
1000 + // This error was thrown as a convenience so that you can use this stack
1001 + // to find the callsite that caused this warning to fire.
1002 + throw new Error(message);
1003 + } catch (x) { /**/ }
1004 + };
1005 +}
1006 +
314 1007 /**
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 - }));
1008 + * Assert that the values match with the type specs.
1009 + * Error messages are memorized and will only be shown once.
1010 + *
1011 + * @param {object} typeSpecs Map of name to a ReactPropType
1012 + * @param {object} values Runtime values that need to be type-checked
1013 + * @param {string} location e.g. "prop", "context", "child context"
1014 + * @param {string} componentName Name of the component for error messages.
1015 + * @param {?Function} getStack Returns the component stack.
1016 + * @private
1017 + */
1018 +function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1019 + if (true) {
1020 + for (var typeSpecName in typeSpecs) {
1021 + if (has(typeSpecs, typeSpecName)) {
1022 + var error;
1023 + // Prop type validation may throw. In case they do, we don't want to
1024 + // fail the render phase where it didn't fail before. So we log it.
1025 + // After these have been cleaned up, we'll let them throw.
1026 + try {
1027 + // This is intentionally an invariant that gets caught. It's the same
1028 + // behavior as without this statement except with a better message.
1029 + if (typeof typeSpecs[typeSpecName] !== 'function') {
1030 + var err = Error(
1031 + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
1032 + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
1033 + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
1034 + );
1035 + err.name = 'Invariant Violation';
1036 + throw err;
1037 + }
1038 + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1039 + } catch (ex) {
1040 + error = ex;
1041 + }
1042 + if (error && !(error instanceof Error)) {
1043 + printWarning(
1044 + (componentName || 'React class') + ': type specification of ' +
1045 + location + ' `' + typeSpecName + '` is invalid; the type checker ' +
1046 + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
1047 + 'You may have forgotten to pass an argument to the type checker ' +
1048 + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
1049 + 'shape all require an argument).'
1050 + );
1051 + }
1052 + if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1053 + // Only monitor this failure once because there tends to be a lot of the
1054 + // same error.
1055 + loggedTypeFailures[error.message] = true;
374 1056
375 -//#endregion
376 -//#region node_modules/prop-types/factoryWithTypeCheckers.js
1057 + var stack = getStack ? getStack() : '';
1058 +
1059 + printWarning(
1060 + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1061 + );
1062 + }
1063 + }
1064 + }
1065 + }
1066 +}
1067 +
377 1068 /**
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 - }));
1069 + * Resets warning cache when testing.
1070 + *
1071 + * @private
1072 + */
1073 +checkPropTypes.resetWarningCache = function() {
1074 + if (true) {
1075 + loggedTypeFailures = {};
1076 + }
1077 +}
772 1078
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 - }));
1079 +module.exports = checkPropTypes;
780 1080
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 1081
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 - }
1082 +/***/ }),
817 1083
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 - }
1084 +/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
1085 +/*!*************************************************************!*\
1086 + !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
1087 + \*************************************************************/
1088 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
825 1089
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 - }
1090 +"use strict";
1091 +/**
1092 + * Copyright (c) 2013-present, Facebook, Inc.
1093 + *
1094 + * This source code is licensed under the MIT license found in the
1095 + * LICENSE file in the root directory of this source tree.
1096 + */
835 1097
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 1098
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 1099
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 - }
1100 +var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1101 +var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
853 1102
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 - }
1103 +var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
1104 +var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
1105 +var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
859 1106
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 - }
1107 +var printWarning = function() {};
865 1108
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 - }
1109 +if (true) {
1110 + printWarning = function(text) {
1111 + var message = 'Warning: ' + text;
1112 + if (typeof console !== 'undefined') {
1113 + console.error(message);
1114 + }
1115 + try {
1116 + // --- Welcome to debugging React ---
1117 + // This error was thrown as a convenience so that you can use this stack
1118 + // to find the callsite that caused this warning to fire.
1119 + throw new Error(message);
1120 + } catch (x) {}
1121 + };
1122 +}
871 1123
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 - }
1124 +function emptyFunctionThatReturnsNull() {
1125 + return null;
1126 +}
883 1127
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 - });
1128 +module.exports = function(isValidElement, throwOnDirectAccess) {
1129 + /* global Symbol */
1130 + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1131 + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
897 1132
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 };
1133 + /**
1134 + * Returns the iterator method function contained on the iterable object.
1135 + *
1136 + * Be sure to invoke the function with the iterable as context:
1137 + *
1138 + * var iteratorFn = getIteratorFn(myIterable);
1139 + * if (iteratorFn) {
1140 + * var iterator = iteratorFn.call(myIterable);
1141 + * ...
1142 + * }
1143 + *
1144 + * @param {?object} maybeIterable
1145 + * @return {?function}
1146 + */
1147 + function getIteratorFn(maybeIterable) {
1148 + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1149 + if (typeof iteratorFn === 'function') {
1150 + return iteratorFn;
1151 + }
1152 + }
918 1153
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 - };
1154 + /**
1155 + * Collection of methods that allow declaration and validation of props that are
1156 + * supplied to React components. Example usage:
1157 + *
1158 + * var Props = require('ReactPropTypes');
1159 + * var MyArticle = React.createClass({
1160 + * propTypes: {
1161 + * // An optional string prop named "description".
1162 + * description: Props.string,
1163 + *
1164 + * // A required enum prop named "category".
1165 + * category: Props.oneOf(['News','Photos']).isRequired,
1166 + *
1167 + * // A prop named "dialog" that requires an instance of Dialog.
1168 + * dialog: Props.instanceOf(Dialog).isRequired
1169 + * },
1170 + * render: function() { ... }
1171 + * });
1172 + *
1173 + * A more formal specification of how these methods are used:
1174 + *
1175 + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1176 + * decl := ReactPropTypes.{type}(.isRequired)?
1177 + *
1178 + * Each and every declaration produces a function with the same signature. This
1179 + * allows the creation of custom validation functions. For example:
1180 + *
1181 + * var MyLink = React.createClass({
1182 + * propTypes: {
1183 + * // An optional string or URI prop named "href".
1184 + * href: function(props, propName, componentName) {
1185 + * var propValue = props[propName];
1186 + * if (propValue != null && typeof propValue !== 'string' &&
1187 + * !(propValue instanceof URI)) {
1188 + * return new Error(
1189 + * 'Expected a string or an URI for ' + propName + ' in ' +
1190 + * componentName
1191 + * );
1192 + * }
1193 + * }
1194 + * },
1195 + * render: function() {...}
1196 + * });
1197 + *
1198 + * @internal
1199 + */
934 1200
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 - }
1201 + var ANONYMOUS = '<<anonymous>>';
945 1202
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 - }
1203 + // Important!
1204 + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1205 + var ReactPropTypes = {
1206 + array: createPrimitiveTypeChecker('array'),
1207 + bigint: createPrimitiveTypeChecker('bigint'),
1208 + bool: createPrimitiveTypeChecker('boolean'),
1209 + func: createPrimitiveTypeChecker('function'),
1210 + number: createPrimitiveTypeChecker('number'),
1211 + object: createPrimitiveTypeChecker('object'),
1212 + string: createPrimitiveTypeChecker('string'),
1213 + symbol: createPrimitiveTypeChecker('symbol'),
958 1214
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 - }
1215 + any: createAnyTypeChecker(),
1216 + arrayOf: createArrayOfTypeChecker,
1217 + element: createElementTypeChecker(),
1218 + elementType: createElementTypeTypeChecker(),
1219 + instanceOf: createInstanceTypeChecker,
1220 + node: createNodeChecker(),
1221 + objectOf: createObjectOfTypeChecker,
1222 + oneOf: createEnumTypeChecker,
1223 + oneOfType: createUnionTypeChecker,
1224 + shape: createShapeTypeChecker,
1225 + exact: createStrictShapeTypeChecker,
1226 + };
965 1227
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 - }
1228 + /**
1229 + * inlined Object.is polyfill to avoid requiring consumers ship their own
1230 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1231 + */
1232 + /*eslint-disable no-self-compare*/
1233 + function is(x, y) {
1234 + // SameValue algorithm
1235 + if (x === y) {
1236 + // Steps 1-5, 7-10
1237 + // Steps 6.b-6.e: +0 != -0
1238 + return x !== 0 || 1 / x === 1 / y;
1239 + } else {
1240 + // Step 6.a: NaN == NaN
1241 + return x !== x && y !== y;
1242 + }
1243 + }
1244 + /*eslint-enable no-self-compare*/
976 1245
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 - };
1246 + /**
1247 + * We use an Error-like object for backward compatibility as people may call
1248 + * PropTypes directly and inspect their output. However, we don't use real
1249 + * Errors anymore. We don't inspect their stack anyway, and creating them
1250 + * is prohibitively expensive if they are created too often, such as what
1251 + * happens in oneOfType() for any type before the one that matched.
1252 + */
1253 + function PropTypeError(message, data) {
1254 + this.message = message;
1255 + this.data = data && typeof data === 'object' ? data: {};
1256 + this.stack = '';
1257 + }
1258 + // Make `instanceof Error` still work for returned errors.
1259 + PropTypeError.prototype = Error.prototype;
997 1260
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 - };
1261 + function createChainableTypeChecker(validate) {
1262 + if (true) {
1263 + var manualPropTypeCallCache = {};
1264 + var manualPropTypeWarningCount = 0;
1265 + }
1266 + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1267 + componentName = componentName || ANONYMOUS;
1268 + propFullName = propFullName || propName;
1016 1269
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 - };
1270 + if (secret !== ReactPropTypesSecret) {
1271 + if (throwOnDirectAccess) {
1272 + // New behavior only for users of `prop-types` package
1273 + var err = new Error(
1274 + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1275 + 'Use `PropTypes.checkPropTypes()` to call them. ' +
1276 + 'Read more at http://fb.me/use-check-prop-types'
1277 + );
1278 + err.name = 'Invariant Violation';
1279 + throw err;
1280 + } else if ( true && typeof console !== 'undefined') {
1281 + // Old behavior for people using React.PropTypes
1282 + var cacheKey = componentName + ':' + propName;
1283 + if (
1284 + !manualPropTypeCallCache[cacheKey] &&
1285 + // Avoid spamming the console because they are often not actionable except for lib authors
1286 + manualPropTypeWarningCount < 3
1287 + ) {
1288 + printWarning(
1289 + 'You are manually calling a React.PropTypes validation ' +
1290 + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1291 + 'and will throw in the standalone `prop-types` package. ' +
1292 + 'You may be seeing this warning due to a third-party PropTypes ' +
1293 + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
1294 + );
1295 + manualPropTypeCallCache[cacheKey] = true;
1296 + manualPropTypeWarningCount++;
1297 + }
1298 + }
1299 + }
1300 + if (props[propName] == null) {
1301 + if (isRequired) {
1302 + if (props[propName] === null) {
1303 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1304 + }
1305 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1306 + }
1307 + return null;
1308 + } else {
1309 + return validate(props, propName, componentName, location, propFullName);
1310 + }
1311 + }
1034 1312
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 - };
1313 + var chainedCheckType = checkType.bind(null, false);
1314 + chainedCheckType.isRequired = checkType.bind(null, true);
1065 1315
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 - };
1316 + return chainedCheckType;
1317 + }
1100 1318
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 - };
1319 + function createPrimitiveTypeChecker(expectedType) {
1320 + function validate(props, propName, componentName, location, propFullName, secret) {
1321 + var propValue = props[propName];
1322 + var propType = getPropType(propValue);
1323 + if (propType !== expectedType) {
1324 + // `propValue` being instance of, say, date/regexp, pass the 'object'
1325 + // check, but we can offer a more precise error message here rather than
1326 + // 'of type `object`'.
1327 + var preciseType = getPreciseType(propValue);
1106 1328
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 - };
1329 + return new PropTypeError(
1330 + 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
1331 + {expectedType: expectedType}
1332 + );
1333 + }
1334 + return null;
1335 + }
1336 + return createChainableTypeChecker(validate);
1337 + }
1194 1338
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 - };
1339 + function createAnyTypeChecker() {
1340 + return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1341 + }
1308 1342
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 - };
1343 + function createArrayOfTypeChecker(typeChecker) {
1344 + function validate(props, propName, componentName, location, propFullName) {
1345 + if (typeof typeChecker !== 'function') {
1346 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1347 + }
1348 + var propValue = props[propName];
1349 + if (!Array.isArray(propValue)) {
1350 + var propType = getPropType(propValue);
1351 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1352 + }
1353 + for (var i = 0; i < propValue.length; i++) {
1354 + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1355 + if (error instanceof Error) {
1356 + return error;
1357 + }
1358 + }
1359 + return null;
1360 + }
1361 + return createChainableTypeChecker(validate);
1362 + }
1392 1363
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 - };
1364 + function createElementTypeChecker() {
1365 + function validate(props, propName, componentName, location, propFullName) {
1366 + var propValue = props[propName];
1367 + if (!isValidElement(propValue)) {
1368 + var propType = getPropType(propValue);
1369 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1370 + }
1371 + return null;
1372 + }
1373 + return createChainableTypeChecker(validate);
1374 + }
1460 1375
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 - ]) };
1376 + function createElementTypeTypeChecker() {
1377 + function validate(props, propName, componentName, location, propFullName) {
1378 + var propValue = props[propName];
1379 + if (!ReactIs.isValidElementType(propValue)) {
1380 + var propType = getPropType(propValue);
1381 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1382 + }
1383 + return null;
1384 + }
1385 + return createChainableTypeChecker(validate);
1386 + }
1489 1387
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 - };
1388 + function createInstanceTypeChecker(expectedClass) {
1389 + function validate(props, propName, componentName, location, propFullName) {
1390 + if (!(props[propName] instanceof expectedClass)) {
1391 + var expectedClassName = expectedClass.name || ANONYMOUS;
1392 + var actualClassName = getClassName(props[propName]);
1393 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1394 + }
1395 + return null;
1396 + }
1397 + return createChainableTypeChecker(validate);
1398 + }
1504 1399
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 - };
1400 + function createEnumTypeChecker(expectedValues) {
1401 + if (!Array.isArray(expectedValues)) {
1402 + if (true) {
1403 + if (arguments.length > 1) {
1404 + printWarning(
1405 + 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1406 + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1407 + );
1408 + } else {
1409 + printWarning('Invalid argument supplied to oneOf, expected an array.');
1410 + }
1411 + }
1412 + return emptyFunctionThatReturnsNull;
1413 + }
1518 1414
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 - };
1415 + function validate(props, propName, componentName, location, propFullName) {
1416 + var propValue = props[propName];
1417 + for (var i = 0; i < expectedValues.length; i++) {
1418 + if (is(propValue, expectedValues[i])) {
1419 + return null;
1420 + }
1421 + }
1569 1422
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();
1423 + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1424 + var type = getPreciseType(value);
1425 + if (type === 'symbol') {
1426 + return String(value);
1427 + }
1428 + return value;
1429 + });
1430 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1431 + }
1432 + return createChainableTypeChecker(validate);
1433 + }
1575 1434
1576 -//#endregion
1577 -})(wp.i18n, React, ReactDOM, elementorV2.ui, elementorV2.query, elementorV2.icons, elementorV2.editorAppBar, elementorV2.icons['SpeakerphoneIcon']);
1435 + function createObjectOfTypeChecker(typeChecker) {
1436 + function validate(props, propName, componentName, location, propFullName) {
1437 + if (typeof typeChecker !== 'function') {
1438 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1439 + }
1440 + var propValue = props[propName];
1441 + var propType = getPropType(propValue);
1442 + if (propType !== 'object') {
1443 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1444 + }
1445 + for (var key in propValue) {
1446 + if (has(propValue, key)) {
1447 + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1448 + if (error instanceof Error) {
1449 + return error;
1450 + }
1451 + }
1452 + }
1453 + return null;
1454 + }
1455 + return createChainableTypeChecker(validate);
1456 + }
1457 +
1458 + function createUnionTypeChecker(arrayOfTypeCheckers) {
1459 + if (!Array.isArray(arrayOfTypeCheckers)) {
1460 + true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
1461 + return emptyFunctionThatReturnsNull;
1462 + }
1463 +
1464 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1465 + var checker = arrayOfTypeCheckers[i];
1466 + if (typeof checker !== 'function') {
1467 + printWarning(
1468 + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1469 + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1470 + );
1471 + return emptyFunctionThatReturnsNull;
1472 + }
1473 + }
1474 +
1475 + function validate(props, propName, componentName, location, propFullName) {
1476 + var expectedTypes = [];
1477 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1478 + var checker = arrayOfTypeCheckers[i];
1479 + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1480 + if (checkerResult == null) {
1481 + return null;
1482 + }
1483 + if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1484 + expectedTypes.push(checkerResult.data.expectedType);
1485 + }
1486 + }
1487 + var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1488 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1489 + }
1490 + return createChainableTypeChecker(validate);
1491 + }
1492 +
1493 + function createNodeChecker() {
1494 + function validate(props, propName, componentName, location, propFullName) {
1495 + if (!isNode(props[propName])) {
1496 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1497 + }
1498 + return null;
1499 + }
1500 + return createChainableTypeChecker(validate);
1501 + }
1502 +
1503 + function invalidValidatorError(componentName, location, propFullName, key, type) {
1504 + return new PropTypeError(
1505 + (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1506 + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1507 + );
1508 + }
1509 +
1510 + function createShapeTypeChecker(shapeTypes) {
1511 + function validate(props, propName, componentName, location, propFullName) {
1512 + var propValue = props[propName];
1513 + var propType = getPropType(propValue);
1514 + if (propType !== 'object') {
1515 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1516 + }
1517 + for (var key in shapeTypes) {
1518 + var checker = shapeTypes[key];
1519 + if (typeof checker !== 'function') {
1520 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1521 + }
1522 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1523 + if (error) {
1524 + return error;
1525 + }
1526 + }
1527 + return null;
1528 + }
1529 + return createChainableTypeChecker(validate);
1530 + }
1531 +
1532 + function createStrictShapeTypeChecker(shapeTypes) {
1533 + function validate(props, propName, componentName, location, propFullName) {
1534 + var propValue = props[propName];
1535 + var propType = getPropType(propValue);
1536 + if (propType !== 'object') {
1537 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1538 + }
1539 + // We need to check all keys in case some are required but missing from props.
1540 + var allKeys = assign({}, props[propName], shapeTypes);
1541 + for (var key in allKeys) {
1542 + var checker = shapeTypes[key];
1543 + if (has(shapeTypes, key) && typeof checker !== 'function') {
1544 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1545 + }
1546 + if (!checker) {
1547 + return new PropTypeError(
1548 + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1549 + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1550 + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1551 + );
1552 + }
1553 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1554 + if (error) {
1555 + return error;
1556 + }
1557 + }
1558 + return null;
1559 + }
1560 +
1561 + return createChainableTypeChecker(validate);
1562 + }
1563 +
1564 + function isNode(propValue) {
1565 + switch (typeof propValue) {
1566 + case 'number':
1567 + case 'string':
1568 + case 'undefined':
1569 + return true;
1570 + case 'boolean':
1571 + return !propValue;
1572 + case 'object':
1573 + if (Array.isArray(propValue)) {
1574 + return propValue.every(isNode);
1575 + }
1576 + if (propValue === null || isValidElement(propValue)) {
1577 + return true;
1578 + }
1579 +
1580 + var iteratorFn = getIteratorFn(propValue);
1581 + if (iteratorFn) {
1582 + var iterator = iteratorFn.call(propValue);
1583 + var step;
1584 + if (iteratorFn !== propValue.entries) {
1585 + while (!(step = iterator.next()).done) {
1586 + if (!isNode(step.value)) {
1587 + return false;
1588 + }
1589 + }
1590 + } else {
1591 + // Iterator will provide entry [k,v] tuples rather than values.
1592 + while (!(step = iterator.next()).done) {
1593 + var entry = step.value;
1594 + if (entry) {
1595 + if (!isNode(entry[1])) {
1596 + return false;
1597 + }
1598 + }
1599 + }
1600 + }
1601 + } else {
1602 + return false;
1603 + }
1604 +
1605 + return true;
1606 + default:
1607 + return false;
1608 + }
1609 + }
1610 +
1611 + function isSymbol(propType, propValue) {
1612 + // Native Symbol.
1613 + if (propType === 'symbol') {
1614 + return true;
1615 + }
1616 +
1617 + // falsy value can't be a Symbol
1618 + if (!propValue) {
1619 + return false;
1620 + }
1621 +
1622 + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1623 + if (propValue['@@toStringTag'] === 'Symbol') {
1624 + return true;
1625 + }
1626 +
1627 + // Fallback for non-spec compliant Symbols which are polyfilled.
1628 + if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1629 + return true;
1630 + }
1631 +
1632 + return false;
1633 + }
1634 +
1635 + // Equivalent of `typeof` but with special handling for array and regexp.
1636 + function getPropType(propValue) {
1637 + var propType = typeof propValue;
1638 + if (Array.isArray(propValue)) {
1639 + return 'array';
1640 + }
1641 + if (propValue instanceof RegExp) {
1642 + // Old webkits (at least until Android 4.0) return 'function' rather than
1643 + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1644 + // passes PropTypes.object.
1645 + return 'object';
1646 + }
1647 + if (isSymbol(propType, propValue)) {
1648 + return 'symbol';
1649 + }
1650 + return propType;
1651 + }
1652 +
1653 + // This handles more types than `getPropType`. Only used for error messages.
1654 + // See `createPrimitiveTypeChecker`.
1655 + function getPreciseType(propValue) {
1656 + if (typeof propValue === 'undefined' || propValue === null) {
1657 + return '' + propValue;
1658 + }
1659 + var propType = getPropType(propValue);
1660 + if (propType === 'object') {
1661 + if (propValue instanceof Date) {
1662 + return 'date';
1663 + } else if (propValue instanceof RegExp) {
1664 + return 'regexp';
1665 + }
1666 + }
1667 + return propType;
1668 + }
1669 +
1670 + // Returns a string that is postfixed to a warning about an invalid type.
1671 + // For example, "undefined" or "of type array"
1672 + function getPostfixForTypeWarning(value) {
1673 + var type = getPreciseType(value);
1674 + switch (type) {
1675 + case 'array':
1676 + case 'object':
1677 + return 'an ' + type;
1678 + case 'boolean':
1679 + case 'date':
1680 + case 'regexp':
1681 + return 'a ' + type;
1682 + default:
1683 + return type;
1684 + }
1685 + }
1686 +
1687 + // Returns class name of the object, if any.
1688 + function getClassName(propValue) {
1689 + if (!propValue.constructor || !propValue.constructor.name) {
1690 + return ANONYMOUS;
1691 + }
1692 + return propValue.constructor.name;
1693 + }
1694 +
1695 + ReactPropTypes.checkPropTypes = checkPropTypes;
1696 + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1697 + ReactPropTypes.PropTypes = ReactPropTypes;
1698 +
1699 + return ReactPropTypes;
1700 +};
1701 +
1702 +
1703 +/***/ }),
1704 +
1705 +/***/ "../node_modules/prop-types/index.js":
1706 +/*!*******************************************!*\
1707 + !*** ../node_modules/prop-types/index.js ***!
1708 + \*******************************************/
1709 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1710 +
1711 +/**
1712 + * Copyright (c) 2013-present, Facebook, Inc.
1713 + *
1714 + * This source code is licensed under the MIT license found in the
1715 + * LICENSE file in the root directory of this source tree.
1716 + */
1717 +
1718 +if (true) {
1719 + var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1720 +
1721 + // By explicitly using `prop-types` you are opting into new development behavior.
1722 + // http://fb.me/prop-types-in-prod
1723 + var throwOnDirectAccess = true;
1724 + module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1725 +} else {}
1726 +
1727 +
1728 +/***/ }),
1729 +
1730 +/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
1731 +/*!**************************************************************!*\
1732 + !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
1733 + \**************************************************************/
1734 +/***/ ((module) => {
1735 +
1736 +"use strict";
1737 +/**
1738 + * Copyright (c) 2013-present, Facebook, Inc.
1739 + *
1740 + * This source code is licensed under the MIT license found in the
1741 + * LICENSE file in the root directory of this source tree.
1742 + */
1743 +
1744 +
1745 +
1746 +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1747 +
1748 +module.exports = ReactPropTypesSecret;
1749 +
1750 +
1751 +/***/ }),
1752 +
1753 +/***/ "../node_modules/prop-types/lib/has.js":
1754 +/*!*********************************************!*\
1755 + !*** ../node_modules/prop-types/lib/has.js ***!
1756 + \*********************************************/
1757 +/***/ ((module) => {
1758 +
1759 +module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
1760 +
1761 +
1762 +/***/ }),
1763 +
1764 +/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
1765 +/*!************************************************************************************!*\
1766 + !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
1767 + \************************************************************************************/
1768 +/***/ ((__unused_webpack_module, exports) => {
1769 +
1770 +"use strict";
1771 +/** @license React v16.13.1
1772 + * react-is.development.js
1773 + *
1774 + * Copyright (c) Facebook, Inc. and its affiliates.
1775 + *
1776 + * This source code is licensed under the MIT license found in the
1777 + * LICENSE file in the root directory of this source tree.
1778 + */
1779 +
1780 +
1781 +
1782 +
1783 +
1784 +if (true) {
1785 + (function() {
1786 +'use strict';
1787 +
1788 +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1789 +// nor polyfill, then a plain number is used for performance.
1790 +var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1791 +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1792 +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1793 +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1794 +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1795 +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1796 +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1797 +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1798 +// (unstable) APIs that have been removed. Can we remove the symbols?
1799 +
1800 +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1801 +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1802 +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1803 +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1804 +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1805 +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1806 +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1807 +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1808 +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1809 +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1810 +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1811 +
1812 +function isValidElementType(type) {
1813 + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1814 + 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);
1815 +}
1816 +
1817 +function typeOf(object) {
1818 + if (typeof object === 'object' && object !== null) {
1819 + var $$typeof = object.$$typeof;
1820 +
1821 + switch ($$typeof) {
1822 + case REACT_ELEMENT_TYPE:
1823 + var type = object.type;
1824 +
1825 + switch (type) {
1826 + case REACT_ASYNC_MODE_TYPE:
1827 + case REACT_CONCURRENT_MODE_TYPE:
1828 + case REACT_FRAGMENT_TYPE:
1829 + case REACT_PROFILER_TYPE:
1830 + case REACT_STRICT_MODE_TYPE:
1831 + case REACT_SUSPENSE_TYPE:
1832 + return type;
1833 +
1834 + default:
1835 + var $$typeofType = type && type.$$typeof;
1836 +
1837 + switch ($$typeofType) {
1838 + case REACT_CONTEXT_TYPE:
1839 + case REACT_FORWARD_REF_TYPE:
1840 + case REACT_LAZY_TYPE:
1841 + case REACT_MEMO_TYPE:
1842 + case REACT_PROVIDER_TYPE:
1843 + return $$typeofType;
1844 +
1845 + default:
1846 + return $$typeof;
1847 + }
1848 +
1849 + }
1850 +
1851 + case REACT_PORTAL_TYPE:
1852 + return $$typeof;
1853 + }
1854 + }
1855 +
1856 + return undefined;
1857 +} // AsyncMode is deprecated along with isAsyncMode
1858 +
1859 +var AsyncMode = REACT_ASYNC_MODE_TYPE;
1860 +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1861 +var ContextConsumer = REACT_CONTEXT_TYPE;
1862 +var ContextProvider = REACT_PROVIDER_TYPE;
1863 +var Element = REACT_ELEMENT_TYPE;
1864 +var ForwardRef = REACT_FORWARD_REF_TYPE;
1865 +var Fragment = REACT_FRAGMENT_TYPE;
1866 +var Lazy = REACT_LAZY_TYPE;
1867 +var Memo = REACT_MEMO_TYPE;
1868 +var Portal = REACT_PORTAL_TYPE;
1869 +var Profiler = REACT_PROFILER_TYPE;
1870 +var StrictMode = REACT_STRICT_MODE_TYPE;
1871 +var Suspense = REACT_SUSPENSE_TYPE;
1872 +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1873 +
1874 +function isAsyncMode(object) {
1875 + {
1876 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1877 + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1878 +
1879 + 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.');
1880 + }
1881 + }
1882 +
1883 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1884 +}
1885 +function isConcurrentMode(object) {
1886 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1887 +}
1888 +function isContextConsumer(object) {
1889 + return typeOf(object) === REACT_CONTEXT_TYPE;
1890 +}
1891 +function isContextProvider(object) {
1892 + return typeOf(object) === REACT_PROVIDER_TYPE;
1893 +}
1894 +function isElement(object) {
1895 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1896 +}
1897 +function isForwardRef(object) {
1898 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
1899 +}
1900 +function isFragment(object) {
1901 + return typeOf(object) === REACT_FRAGMENT_TYPE;
1902 +}
1903 +function isLazy(object) {
1904 + return typeOf(object) === REACT_LAZY_TYPE;
1905 +}
1906 +function isMemo(object) {
1907 + return typeOf(object) === REACT_MEMO_TYPE;
1908 +}
1909 +function isPortal(object) {
1910 + return typeOf(object) === REACT_PORTAL_TYPE;
1911 +}
1912 +function isProfiler(object) {
1913 + return typeOf(object) === REACT_PROFILER_TYPE;
1914 +}
1915 +function isStrictMode(object) {
1916 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
1917 +}
1918 +function isSuspense(object) {
1919 + return typeOf(object) === REACT_SUSPENSE_TYPE;
1920 +}
1921 +
1922 +exports.AsyncMode = AsyncMode;
1923 +exports.ConcurrentMode = ConcurrentMode;
1924 +exports.ContextConsumer = ContextConsumer;
1925 +exports.ContextProvider = ContextProvider;
1926 +exports.Element = Element;
1927 +exports.ForwardRef = ForwardRef;
1928 +exports.Fragment = Fragment;
1929 +exports.Lazy = Lazy;
1930 +exports.Memo = Memo;
1931 +exports.Portal = Portal;
1932 +exports.Profiler = Profiler;
1933 +exports.StrictMode = StrictMode;
1934 +exports.Suspense = Suspense;
1935 +exports.isAsyncMode = isAsyncMode;
1936 +exports.isConcurrentMode = isConcurrentMode;
1937 +exports.isContextConsumer = isContextConsumer;
1938 +exports.isContextProvider = isContextProvider;
1939 +exports.isElement = isElement;
1940 +exports.isForwardRef = isForwardRef;
1941 +exports.isFragment = isFragment;
1942 +exports.isLazy = isLazy;
1943 +exports.isMemo = isMemo;
1944 +exports.isPortal = isPortal;
1945 +exports.isProfiler = isProfiler;
1946 +exports.isStrictMode = isStrictMode;
1947 +exports.isSuspense = isSuspense;
1948 +exports.isValidElementType = isValidElementType;
1949 +exports.typeOf = typeOf;
1950 + })();
1951 +}
1952 +
1953 +
1954 +/***/ }),
1955 +
1956 +/***/ "../node_modules/prop-types/node_modules/react-is/index.js":
1957 +/*!*****************************************************************!*\
1958 + !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
1959 + \*****************************************************************/
1960 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1961 +
1962 +"use strict";
1963 +
1964 +
1965 +if (false) {} else {
1966 + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1967 +}
1968 +
1969 +
1970 +/***/ }),
1971 +
1972 +/***/ "../node_modules/react-dom/client.js":
1973 +/*!*******************************************!*\
1974 + !*** ../node_modules/react-dom/client.js ***!
1975 + \*******************************************/
1976 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1977 +
1978 +"use strict";
1979 +
1980 +
1981 +var m = __webpack_require__(/*! react-dom */ "react-dom");
1982 +if (false) {} else {
1983 + var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1984 + exports.createRoot = function(c, o) {
1985 + i.usingClientEntryPoint = true;
1986 + try {
1987 + return m.createRoot(c, o);
1988 + } finally {
1989 + i.usingClientEntryPoint = false;
1990 + }
1991 + };
1992 + exports.hydrateRoot = function(c, h, o) {
1993 + i.usingClientEntryPoint = true;
1994 + try {
1995 + return m.hydrateRoot(c, h, o);
1996 + } finally {
1997 + i.usingClientEntryPoint = false;
1998 + }
1999 + };
2000 +}
2001 +
2002 +
2003 +/***/ }),
2004 +
2005 +/***/ "react":
2006 +/*!************************!*\
2007 + !*** external "React" ***!
2008 + \************************/
2009 +/***/ ((module) => {
2010 +
2011 +"use strict";
2012 +module.exports = React;
2013 +
2014 +/***/ }),
2015 +
2016 +/***/ "react-dom":
2017 +/*!***************************!*\
2018 + !*** external "ReactDOM" ***!
2019 + \***************************/
2020 +/***/ ((module) => {
2021 +
2022 +"use strict";
2023 +module.exports = ReactDOM;
2024 +
2025 +/***/ }),
2026 +
2027 +/***/ "@elementor/ui":
2028 +/*!*********************************!*\
2029 + !*** external "elementorV2.ui" ***!
2030 + \*********************************/
2031 +/***/ ((module) => {
2032 +
2033 +"use strict";
2034 +module.exports = elementorV2.ui;
2035 +
2036 +/***/ }),
2037 +
2038 +/***/ "@wordpress/i18n":
2039 +/*!**************************!*\
2040 + !*** external "wp.i18n" ***!
2041 + \**************************/
2042 +/***/ ((module) => {
2043 +
2044 +"use strict";
2045 +module.exports = wp.i18n;
2046 +
2047 +/***/ }),
2048 +
2049 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
2050 +/*!******************************************************************!*\
2051 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
2052 + \******************************************************************/
2053 +/***/ ((module) => {
2054 +
2055 +function _arrayLikeToArray(arr, len) {
2056 + if (len == null || len > arr.length) len = arr.length;
2057 + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
2058 + return arr2;
2059 +}
2060 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2061 +
2062 +/***/ }),
2063 +
2064 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
2065 +/*!****************************************************************!*\
2066 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
2067 + \****************************************************************/
2068 +/***/ ((module) => {
2069 +
2070 +function _arrayWithHoles(arr) {
2071 + if (Array.isArray(arr)) return arr;
2072 +}
2073 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
2074 +
2075 +/***/ }),
2076 +
2077 +/***/ "../node_modules/@babel/runtime/helpers/extends.js":
2078 +/*!*********************************************************!*\
2079 + !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
2080 + \*********************************************************/
2081 +/***/ ((module) => {
2082 +
2083 +function _extends() {
2084 + module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
2085 + for (var i = 1; i < arguments.length; i++) {
2086 + var source = arguments[i];
2087 + for (var key in source) {
2088 + if (Object.prototype.hasOwnProperty.call(source, key)) {
2089 + target[key] = source[key];
2090 + }
2091 + }
2092 + }
2093 + return target;
2094 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
2095 + return _extends.apply(this, arguments);
2096 +}
2097 +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
2098 +
2099 +/***/ }),
2100 +
2101 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
2102 +/*!***********************************************************************!*\
2103 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2104 + \***********************************************************************/
2105 +/***/ ((module) => {
2106 +
2107 +function _interopRequireDefault(obj) {
2108 + return obj && obj.__esModule ? obj : {
2109 + "default": obj
2110 + };
2111 +}
2112 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2113 +
2114 +/***/ }),
2115 +
2116 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
2117 +/*!**********************************************************************!*\
2118 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2119 + \**********************************************************************/
2120 +/***/ ((module) => {
2121 +
2122 +function _iterableToArrayLimit(r, l) {
2123 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2124 + if (null != t) {
2125 + var e,
2126 + n,
2127 + i,
2128 + u,
2129 + a = [],
2130 + f = !0,
2131 + o = !1;
2132 + try {
2133 + if (i = (t = t.call(r)).next, 0 === l) {
2134 + if (Object(t) !== t) return;
2135 + f = !1;
2136 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2137 + } catch (r) {
2138 + o = !0, n = r;
2139 + } finally {
2140 + try {
2141 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2142 + } finally {
2143 + if (o) throw n;
2144 + }
2145 + }
2146 + return a;
2147 + }
2148 +}
2149 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2150 +
2151 +/***/ }),
2152 +
2153 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
2154 +/*!*****************************************************************!*\
2155 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
2156 + \*****************************************************************/
2157 +/***/ ((module) => {
2158 +
2159 +function _nonIterableRest() {
2160 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2161 +}
2162 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2163 +
2164 +/***/ }),
2165 +
2166 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
2167 +/*!***************************************************************!*\
2168 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
2169 + \***************************************************************/
2170 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2171 +
2172 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
2173 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
2174 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
2175 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
2176 +function _slicedToArray(arr, i) {
2177 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
2178 +}
2179 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2180 +
2181 +/***/ }),
2182 +
2183 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
2184 +/*!********************************************************!*\
2185 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
2186 + \********************************************************/
2187 +/***/ ((module) => {
2188 +
2189 +function _typeof(o) {
2190 + "@babel/helpers - typeof";
2191 +
2192 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2193 + return typeof o;
2194 + } : function (o) {
2195 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2196 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
2197 +}
2198 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
2199 +
2200 +/***/ }),
2201 +
2202 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
2203 +/*!****************************************************************************!*\
2204 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
2205 + \****************************************************************************/
2206 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2207 +
2208 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
2209 +function _unsupportedIterableToArray(o, minLen) {
2210 + if (!o) return;
2211 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
2212 + var n = Object.prototype.toString.call(o).slice(8, -1);
2213 + if (n === "Object" && o.constructor) n = o.constructor.name;
2214 + if (n === "Map" || n === "Set") return Array.from(o);
2215 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
2216 +}
2217 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2218 +
2219 +/***/ }),
2220 +
2221 +/***/ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs":
2222 +/*!**************************************************************************!*\
2223 + !*** ../node_modules/@tanstack/query-core/build/modern/focusManager.cjs ***!
2224 + \**************************************************************************/
2225 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2226 +
2227 +"use strict";
2228 +
2229 +var __defProp = Object.defineProperty;
2230 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2231 +var __getOwnPropNames = Object.getOwnPropertyNames;
2232 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2233 +var __export = (target, all) => {
2234 + for (var name in all)
2235 + __defProp(target, name, { get: all[name], enumerable: true });
2236 +};
2237 +var __copyProps = (to, from, except, desc) => {
2238 + if (from && typeof from === "object" || typeof from === "function") {
2239 + for (let key of __getOwnPropNames(from))
2240 + if (!__hasOwnProp.call(to, key) && key !== except)
2241 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2242 + }
2243 + return to;
2244 +};
2245 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2246 +
2247 +// src/focusManager.ts
2248 +var focusManager_exports = {};
2249 +__export(focusManager_exports, {
2250 + FocusManager: () => FocusManager,
2251 + focusManager: () => focusManager
2252 +});
2253 +module.exports = __toCommonJS(focusManager_exports);
2254 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
2255 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2256 +var FocusManager = class extends import_subscribable.Subscribable {
2257 + #focused;
2258 + #cleanup;
2259 + #setup;
2260 + constructor() {
2261 + super();
2262 + this.#setup = (onFocus) => {
2263 + if (!import_utils.isServer && window.addEventListener) {
2264 + const listener = () => onFocus();
2265 + window.addEventListener("visibilitychange", listener, false);
2266 + return () => {
2267 + window.removeEventListener("visibilitychange", listener);
2268 + };
2269 + }
2270 + return;
2271 + };
2272 + }
2273 + onSubscribe() {
2274 + if (!this.#cleanup) {
2275 + this.setEventListener(this.#setup);
2276 + }
2277 + }
2278 + onUnsubscribe() {
2279 + if (!this.hasListeners()) {
2280 + this.#cleanup?.();
2281 + this.#cleanup = void 0;
2282 + }
2283 + }
2284 + setEventListener(setup) {
2285 + this.#setup = setup;
2286 + this.#cleanup?.();
2287 + this.#cleanup = setup((focused) => {
2288 + if (typeof focused === "boolean") {
2289 + this.setFocused(focused);
2290 + } else {
2291 + this.onFocus();
2292 + }
2293 + });
2294 + }
2295 + setFocused(focused) {
2296 + const changed = this.#focused !== focused;
2297 + if (changed) {
2298 + this.#focused = focused;
2299 + this.onFocus();
2300 + }
2301 + }
2302 + onFocus() {
2303 + this.listeners.forEach((listener) => {
2304 + listener();
2305 + });
2306 + }
2307 + isFocused() {
2308 + if (typeof this.#focused === "boolean") {
2309 + return this.#focused;
2310 + }
2311 + return globalThis.document?.visibilityState !== "hidden";
2312 + }
2313 +};
2314 +var focusManager = new FocusManager();
2315 +// Annotate the CommonJS export names for ESM import in node:
2316 +0 && (0);
2317 +//# sourceMappingURL=focusManager.cjs.map
2318 +
2319 +/***/ }),
2320 +
2321 +/***/ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs":
2322 +/*!***********************************************************************!*\
2323 + !*** ../node_modules/@tanstack/query-core/build/modern/hydration.cjs ***!
2324 + \***********************************************************************/
2325 +/***/ ((module) => {
2326 +
2327 +"use strict";
2328 +
2329 +var __defProp = Object.defineProperty;
2330 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2331 +var __getOwnPropNames = Object.getOwnPropertyNames;
2332 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2333 +var __export = (target, all) => {
2334 + for (var name in all)
2335 + __defProp(target, name, { get: all[name], enumerable: true });
2336 +};
2337 +var __copyProps = (to, from, except, desc) => {
2338 + if (from && typeof from === "object" || typeof from === "function") {
2339 + for (let key of __getOwnPropNames(from))
2340 + if (!__hasOwnProp.call(to, key) && key !== except)
2341 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2342 + }
2343 + return to;
2344 +};
2345 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2346 +
2347 +// src/hydration.ts
2348 +var hydration_exports = {};
2349 +__export(hydration_exports, {
2350 + defaultShouldDehydrateMutation: () => defaultShouldDehydrateMutation,
2351 + defaultShouldDehydrateQuery: () => defaultShouldDehydrateQuery,
2352 + dehydrate: () => dehydrate,
2353 + hydrate: () => hydrate
2354 +});
2355 +module.exports = __toCommonJS(hydration_exports);
2356 +function dehydrateMutation(mutation) {
2357 + return {
2358 + mutationKey: mutation.options.mutationKey,
2359 + state: mutation.state,
2360 + ...mutation.meta && { meta: mutation.meta }
2361 + };
2362 +}
2363 +function dehydrateQuery(query) {
2364 + return {
2365 + state: query.state,
2366 + queryKey: query.queryKey,
2367 + queryHash: query.queryHash,
2368 + ...query.meta && { meta: query.meta }
2369 + };
2370 +}
2371 +function defaultShouldDehydrateMutation(mutation) {
2372 + return mutation.state.isPaused;
2373 +}
2374 +function defaultShouldDehydrateQuery(query) {
2375 + return query.state.status === "success";
2376 +}
2377 +function dehydrate(client, options = {}) {
2378 + const filterMutation = options.shouldDehydrateMutation ?? defaultShouldDehydrateMutation;
2379 + const mutations = client.getMutationCache().getAll().flatMap(
2380 + (mutation) => filterMutation(mutation) ? [dehydrateMutation(mutation)] : []
2381 + );
2382 + const filterQuery = options.shouldDehydrateQuery ?? defaultShouldDehydrateQuery;
2383 + const queries = client.getQueryCache().getAll().flatMap((query) => filterQuery(query) ? [dehydrateQuery(query)] : []);
2384 + return { mutations, queries };
2385 +}
2386 +function hydrate(client, dehydratedState, options) {
2387 + if (typeof dehydratedState !== "object" || dehydratedState === null) {
2388 + return;
2389 + }
2390 + const mutationCache = client.getMutationCache();
2391 + const queryCache = client.getQueryCache();
2392 + const mutations = dehydratedState.mutations || [];
2393 + const queries = dehydratedState.queries || [];
2394 + mutations.forEach((dehydratedMutation) => {
2395 + mutationCache.build(
2396 + client,
2397 + {
2398 + ...options?.defaultOptions?.mutations,
2399 + mutationKey: dehydratedMutation.mutationKey,
2400 + meta: dehydratedMutation.meta
2401 + },
2402 + dehydratedMutation.state
2403 + );
2404 + });
2405 + queries.forEach(({ queryKey, state, queryHash, meta }) => {
2406 + const query = queryCache.get(queryHash);
2407 + if (query) {
2408 + if (query.state.dataUpdatedAt < state.dataUpdatedAt) {
2409 + const { fetchStatus: _ignored, ...dehydratedQueryState } = state;
2410 + query.setState(dehydratedQueryState);
2411 + }
2412 + return;
2413 + }
2414 + queryCache.build(
2415 + client,
2416 + {
2417 + ...options?.defaultOptions?.queries,
2418 + queryKey,
2419 + queryHash,
2420 + meta
2421 + },
2422 + // Reset fetch status to idle to avoid
2423 + // query being stuck in fetching state upon hydration
2424 + {
2425 + ...state,
2426 + fetchStatus: "idle"
2427 + }
2428 + );
2429 + });
2430 +}
2431 +// Annotate the CommonJS export names for ESM import in node:
2432 +0 && (0);
2433 +//# sourceMappingURL=hydration.cjs.map
2434 +
2435 +/***/ }),
2436 +
2437 +/***/ "../node_modules/@tanstack/query-core/build/modern/index.cjs":
2438 +/*!*******************************************************************!*\
2439 + !*** ../node_modules/@tanstack/query-core/build/modern/index.cjs ***!
2440 + \*******************************************************************/
2441 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2442 +
2443 +"use strict";
2444 +
2445 +var __defProp = Object.defineProperty;
2446 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2447 +var __getOwnPropNames = Object.getOwnPropertyNames;
2448 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2449 +var __export = (target, all) => {
2450 + for (var name in all)
2451 + __defProp(target, name, { get: all[name], enumerable: true });
2452 +};
2453 +var __copyProps = (to, from, except, desc) => {
2454 + if (from && typeof from === "object" || typeof from === "function") {
2455 + for (let key of __getOwnPropNames(from))
2456 + if (!__hasOwnProp.call(to, key) && key !== except)
2457 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2458 + }
2459 + return to;
2460 +};
2461 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
2462 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2463 +
2464 +// src/index.ts
2465 +var src_exports = {};
2466 +__export(src_exports, {
2467 + CancelledError: () => import_retryer.CancelledError,
2468 + InfiniteQueryObserver: () => import_infiniteQueryObserver.InfiniteQueryObserver,
2469 + MutationCache: () => import_mutationCache.MutationCache,
2470 + MutationObserver: () => import_mutationObserver.MutationObserver,
2471 + QueriesObserver: () => import_queriesObserver.QueriesObserver,
2472 + Query: () => import_query.Query,
2473 + QueryCache: () => import_queryCache.QueryCache,
2474 + QueryClient: () => import_queryClient.QueryClient,
2475 + QueryObserver: () => import_queryObserver.QueryObserver,
2476 + defaultShouldDehydrateMutation: () => import_hydration.defaultShouldDehydrateMutation,
2477 + defaultShouldDehydrateQuery: () => import_hydration.defaultShouldDehydrateQuery,
2478 + dehydrate: () => import_hydration.dehydrate,
2479 + focusManager: () => import_focusManager.focusManager,
2480 + hashKey: () => import_utils.hashKey,
2481 + hydrate: () => import_hydration.hydrate,
2482 + isCancelledError: () => import_retryer2.isCancelledError,
2483 + isServer: () => import_utils.isServer,
2484 + keepPreviousData: () => import_utils.keepPreviousData,
2485 + matchQuery: () => import_utils.matchQuery,
2486 + notifyManager: () => import_notifyManager.notifyManager,
2487 + onlineManager: () => import_onlineManager.onlineManager,
2488 + replaceEqualDeep: () => import_utils.replaceEqualDeep
2489 +});
2490 +module.exports = __toCommonJS(src_exports);
2491 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
2492 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
2493 +var import_queryClient = __webpack_require__(/*! ./queryClient.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs");
2494 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
2495 +var import_queriesObserver = __webpack_require__(/*! ./queriesObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs");
2496 +var import_infiniteQueryObserver = __webpack_require__(/*! ./infiniteQueryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs");
2497 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
2498 +var import_mutationObserver = __webpack_require__(/*! ./mutationObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs");
2499 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
2500 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
2501 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
2502 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2503 +var import_retryer2 = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
2504 +var import_hydration = __webpack_require__(/*! ./hydration.cjs */ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs");
2505 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/query-core/build/modern/types.cjs"), module.exports);
2506 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
2507 +// Annotate the CommonJS export names for ESM import in node:
2508 +0 && (0);
2509 +//# sourceMappingURL=index.cjs.map
2510 +
2511 +/***/ }),
2512 +
2513 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs":
2514 +/*!***********************************************************************************!*\
2515 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs ***!
2516 + \***********************************************************************************/
2517 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2518 +
2519 +"use strict";
2520 +
2521 +var __defProp = Object.defineProperty;
2522 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2523 +var __getOwnPropNames = Object.getOwnPropertyNames;
2524 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2525 +var __export = (target, all) => {
2526 + for (var name in all)
2527 + __defProp(target, name, { get: all[name], enumerable: true });
2528 +};
2529 +var __copyProps = (to, from, except, desc) => {
2530 + if (from && typeof from === "object" || typeof from === "function") {
2531 + for (let key of __getOwnPropNames(from))
2532 + if (!__hasOwnProp.call(to, key) && key !== except)
2533 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2534 + }
2535 + return to;
2536 +};
2537 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2538 +
2539 +// src/infiniteQueryBehavior.ts
2540 +var infiniteQueryBehavior_exports = {};
2541 +__export(infiniteQueryBehavior_exports, {
2542 + hasNextPage: () => hasNextPage,
2543 + hasPreviousPage: () => hasPreviousPage,
2544 + infiniteQueryBehavior: () => infiniteQueryBehavior
2545 +});
2546 +module.exports = __toCommonJS(infiniteQueryBehavior_exports);
2547 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2548 +function infiniteQueryBehavior(pages) {
2549 + return {
2550 + onFetch: (context, query) => {
2551 + const fetchFn = async () => {
2552 + const options = context.options;
2553 + const direction = context.fetchOptions?.meta?.fetchMore?.direction;
2554 + const oldPages = context.state.data?.pages || [];
2555 + const oldPageParams = context.state.data?.pageParams || [];
2556 + const empty = { pages: [], pageParams: [] };
2557 + let cancelled = false;
2558 + const addSignalProperty = (object) => {
2559 + Object.defineProperty(object, "signal", {
2560 + enumerable: true,
2561 + get: () => {
2562 + if (context.signal.aborted) {
2563 + cancelled = true;
2564 + } else {
2565 + context.signal.addEventListener("abort", () => {
2566 + cancelled = true;
2567 + });
2568 + }
2569 + return context.signal;
2570 + }
2571 + });
2572 + };
2573 + const queryFn = context.options.queryFn || (() => Promise.reject(
2574 + new Error(`Missing queryFn: '${context.options.queryHash}'`)
2575 + ));
2576 + const fetchPage = async (data, param, previous) => {
2577 + if (cancelled) {
2578 + return Promise.reject();
2579 + }
2580 + if (param == null && data.pages.length) {
2581 + return Promise.resolve(data);
2582 + }
2583 + const queryFnContext = {
2584 + queryKey: context.queryKey,
2585 + pageParam: param,
2586 + direction: previous ? "backward" : "forward",
2587 + meta: context.options.meta
2588 + };
2589 + addSignalProperty(queryFnContext);
2590 + const page = await queryFn(
2591 + queryFnContext
2592 + );
2593 + const { maxPages } = context.options;
2594 + const addTo = previous ? import_utils.addToStart : import_utils.addToEnd;
2595 + return {
2596 + pages: addTo(data.pages, page, maxPages),
2597 + pageParams: addTo(data.pageParams, param, maxPages)
2598 + };
2599 + };
2600 + let result;
2601 + if (direction && oldPages.length) {
2602 + const previous = direction === "backward";
2603 + const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
2604 + const oldData = {
2605 + pages: oldPages,
2606 + pageParams: oldPageParams
2607 + };
2608 + const param = pageParamFn(options, oldData);
2609 + result = await fetchPage(oldData, param, previous);
2610 + } else {
2611 + result = await fetchPage(
2612 + empty,
2613 + oldPageParams[0] ?? options.initialPageParam
2614 + );
2615 + const remainingPages = pages ?? oldPages.length;
2616 + for (let i = 1; i < remainingPages; i++) {
2617 + const param = getNextPageParam(options, result);
2618 + result = await fetchPage(result, param);
2619 + }
2620 + }
2621 + return result;
2622 + };
2623 + if (context.options.persister) {
2624 + context.fetchFn = () => {
2625 + return context.options.persister?.(
2626 + fetchFn,
2627 + {
2628 + queryKey: context.queryKey,
2629 + meta: context.options.meta,
2630 + signal: context.signal
2631 + },
2632 + query
2633 + );
2634 + };
2635 + } else {
2636 + context.fetchFn = fetchFn;
2637 + }
2638 + }
2639 + };
2640 +}
2641 +function getNextPageParam(options, { pages, pageParams }) {
2642 + const lastIndex = pages.length - 1;
2643 + return options.getNextPageParam(
2644 + pages[lastIndex],
2645 + pages,
2646 + pageParams[lastIndex],
2647 + pageParams
2648 + );
2649 +}
2650 +function getPreviousPageParam(options, { pages, pageParams }) {
2651 + return options.getPreviousPageParam?.(
2652 + pages[0],
2653 + pages,
2654 + pageParams[0],
2655 + pageParams
2656 + );
2657 +}
2658 +function hasNextPage(options, data) {
2659 + if (!data)
2660 + return false;
2661 + return getNextPageParam(options, data) != null;
2662 +}
2663 +function hasPreviousPage(options, data) {
2664 + if (!data || !options.getPreviousPageParam)
2665 + return false;
2666 + return getPreviousPageParam(options, data) != null;
2667 +}
2668 +// Annotate the CommonJS export names for ESM import in node:
2669 +0 && (0);
2670 +//# sourceMappingURL=infiniteQueryBehavior.cjs.map
2671 +
2672 +/***/ }),
2673 +
2674 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs":
2675 +/*!***********************************************************************************!*\
2676 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs ***!
2677 + \***********************************************************************************/
2678 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2679 +
2680 +"use strict";
2681 +
2682 +var __defProp = Object.defineProperty;
2683 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2684 +var __getOwnPropNames = Object.getOwnPropertyNames;
2685 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2686 +var __export = (target, all) => {
2687 + for (var name in all)
2688 + __defProp(target, name, { get: all[name], enumerable: true });
2689 +};
2690 +var __copyProps = (to, from, except, desc) => {
2691 + if (from && typeof from === "object" || typeof from === "function") {
2692 + for (let key of __getOwnPropNames(from))
2693 + if (!__hasOwnProp.call(to, key) && key !== except)
2694 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2695 + }
2696 + return to;
2697 +};
2698 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2699 +
2700 +// src/infiniteQueryObserver.ts
2701 +var infiniteQueryObserver_exports = {};
2702 +__export(infiniteQueryObserver_exports, {
2703 + InfiniteQueryObserver: () => InfiniteQueryObserver
2704 +});
2705 +module.exports = __toCommonJS(infiniteQueryObserver_exports);
2706 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
2707 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
2708 +var InfiniteQueryObserver = class extends import_queryObserver.QueryObserver {
2709 + // eslint-disable-next-line @typescript-eslint/no-useless-constructor
2710 + constructor(client, options) {
2711 + super(client, options);
2712 + }
2713 + bindMethods() {
2714 + super.bindMethods();
2715 + this.fetchNextPage = this.fetchNextPage.bind(this);
2716 + this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
2717 + }
2718 + setOptions(options, notifyOptions) {
2719 + super.setOptions(
2720 + {
2721 + ...options,
2722 + behavior: (0, import_infiniteQueryBehavior.infiniteQueryBehavior)()
2723 + },
2724 + notifyOptions
2725 + );
2726 + }
2727 + getOptimisticResult(options) {
2728 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)();
2729 + return super.getOptimisticResult(options);
2730 + }
2731 + fetchNextPage(options) {
2732 + return this.fetch({
2733 + ...options,
2734 + meta: {
2735 + fetchMore: { direction: "forward" }
2736 + }
2737 + });
2738 + }
2739 + fetchPreviousPage(options) {
2740 + return this.fetch({
2741 + ...options,
2742 + meta: {
2743 + fetchMore: { direction: "backward" }
2744 + }
2745 + });
2746 + }
2747 + createResult(query, options) {
2748 + const { state } = query;
2749 + const result = super.createResult(query, options);
2750 + const { isFetching, isRefetching } = result;
2751 + const isFetchingNextPage = isFetching && state.fetchMeta?.fetchMore?.direction === "forward";
2752 + const isFetchingPreviousPage = isFetching && state.fetchMeta?.fetchMore?.direction === "backward";
2753 + return {
2754 + ...result,
2755 + fetchNextPage: this.fetchNextPage,
2756 + fetchPreviousPage: this.fetchPreviousPage,
2757 + hasNextPage: (0, import_infiniteQueryBehavior.hasNextPage)(options, state.data),
2758 + hasPreviousPage: (0, import_infiniteQueryBehavior.hasPreviousPage)(options, state.data),
2759 + isFetchingNextPage,
2760 + isFetchingPreviousPage,
2761 + isRefetching: isRefetching && !isFetchingNextPage && !isFetchingPreviousPage
2762 + };
2763 + }
2764 +};
2765 +// Annotate the CommonJS export names for ESM import in node:
2766 +0 && (0);
2767 +//# sourceMappingURL=infiniteQueryObserver.cjs.map
2768 +
2769 +/***/ }),
2770 +
2771 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs":
2772 +/*!**********************************************************************!*\
2773 + !*** ../node_modules/@tanstack/query-core/build/modern/mutation.cjs ***!
2774 + \**********************************************************************/
2775 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2776 +
2777 +"use strict";
2778 +
2779 +var __defProp = Object.defineProperty;
2780 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2781 +var __getOwnPropNames = Object.getOwnPropertyNames;
2782 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2783 +var __export = (target, all) => {
2784 + for (var name in all)
2785 + __defProp(target, name, { get: all[name], enumerable: true });
2786 +};
2787 +var __copyProps = (to, from, except, desc) => {
2788 + if (from && typeof from === "object" || typeof from === "function") {
2789 + for (let key of __getOwnPropNames(from))
2790 + if (!__hasOwnProp.call(to, key) && key !== except)
2791 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2792 + }
2793 + return to;
2794 +};
2795 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2796 +
2797 +// src/mutation.ts
2798 +var mutation_exports = {};
2799 +__export(mutation_exports, {
2800 + Mutation: () => Mutation,
2801 + getDefaultState: () => getDefaultState
2802 +});
2803 +module.exports = __toCommonJS(mutation_exports);
2804 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
2805 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
2806 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
2807 +var Mutation = class extends import_removable.Removable {
2808 + constructor(config) {
2809 + super();
2810 + this.mutationId = config.mutationId;
2811 + this.#defaultOptions = config.defaultOptions;
2812 + this.#mutationCache = config.mutationCache;
2813 + this.#observers = [];
2814 + this.state = config.state || getDefaultState();
2815 + this.setOptions(config.options);
2816 + this.scheduleGc();
2817 + }
2818 + #observers;
2819 + #defaultOptions;
2820 + #mutationCache;
2821 + #retryer;
2822 + setOptions(options) {
2823 + this.options = { ...this.#defaultOptions, ...options };
2824 + this.updateGcTime(this.options.gcTime);
2825 + }
2826 + get meta() {
2827 + return this.options.meta;
2828 + }
2829 + addObserver(observer) {
2830 + if (!this.#observers.includes(observer)) {
2831 + this.#observers.push(observer);
2832 + this.clearGcTimeout();
2833 + this.#mutationCache.notify({
2834 + type: "observerAdded",
2835 + mutation: this,
2836 + observer
2837 + });
2838 + }
2839 + }
2840 + removeObserver(observer) {
2841 + this.#observers = this.#observers.filter((x) => x !== observer);
2842 + this.scheduleGc();
2843 + this.#mutationCache.notify({
2844 + type: "observerRemoved",
2845 + mutation: this,
2846 + observer
2847 + });
2848 + }
2849 + optionalRemove() {
2850 + if (!this.#observers.length) {
2851 + if (this.state.status === "pending") {
2852 + this.scheduleGc();
2853 + } else {
2854 + this.#mutationCache.remove(this);
2855 + }
2856 + }
2857 + }
2858 + continue() {
2859 + return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
2860 + this.execute(this.state.variables);
2861 + }
2862 + async execute(variables) {
2863 + const executeMutation = () => {
2864 + this.#retryer = (0, import_retryer.createRetryer)({
2865 + fn: () => {
2866 + if (!this.options.mutationFn) {
2867 + return Promise.reject(new Error("No mutationFn found"));
2868 + }
2869 + return this.options.mutationFn(variables);
2870 + },
2871 + onFail: (failureCount, error) => {
2872 + this.#dispatch({ type: "failed", failureCount, error });
2873 + },
2874 + onPause: () => {
2875 + this.#dispatch({ type: "pause" });
2876 + },
2877 + onContinue: () => {
2878 + this.#dispatch({ type: "continue" });
2879 + },
2880 + retry: this.options.retry ?? 0,
2881 + retryDelay: this.options.retryDelay,
2882 + networkMode: this.options.networkMode
2883 + });
2884 + return this.#retryer.promise;
2885 + };
2886 + const restored = this.state.status === "pending";
2887 + try {
2888 + if (!restored) {
2889 + this.#dispatch({ type: "pending", variables });
2890 + await this.#mutationCache.config.onMutate?.(
2891 + variables,
2892 + this
2893 + );
2894 + const context = await this.options.onMutate?.(variables);
2895 + if (context !== this.state.context) {
2896 + this.#dispatch({
2897 + type: "pending",
2898 + context,
2899 + variables
2900 + });
2901 + }
2902 + }
2903 + const data = await executeMutation();
2904 + await this.#mutationCache.config.onSuccess?.(
2905 + data,
2906 + variables,
2907 + this.state.context,
2908 + this
2909 + );
2910 + await this.options.onSuccess?.(data, variables, this.state.context);
2911 + await this.#mutationCache.config.onSettled?.(
2912 + data,
2913 + null,
2914 + this.state.variables,
2915 + this.state.context,
2916 + this
2917 + );
2918 + await this.options.onSettled?.(data, null, variables, this.state.context);
2919 + this.#dispatch({ type: "success", data });
2920 + return data;
2921 + } catch (error) {
2922 + try {
2923 + await this.#mutationCache.config.onError?.(
2924 + error,
2925 + variables,
2926 + this.state.context,
2927 + this
2928 + );
2929 + await this.options.onError?.(
2930 + error,
2931 + variables,
2932 + this.state.context
2933 + );
2934 + await this.#mutationCache.config.onSettled?.(
2935 + void 0,
2936 + error,
2937 + this.state.variables,
2938 + this.state.context,
2939 + this
2940 + );
2941 + await this.options.onSettled?.(
2942 + void 0,
2943 + error,
2944 + variables,
2945 + this.state.context
2946 + );
2947 + throw error;
2948 + } finally {
2949 + this.#dispatch({ type: "error", error });
2950 + }
2951 + }
2952 + }
2953 + #dispatch(action) {
2954 + const reducer = (state) => {
2955 + switch (action.type) {
2956 + case "failed":
2957 + return {
2958 + ...state,
2959 + failureCount: action.failureCount,
2960 + failureReason: action.error
2961 + };
2962 + case "pause":
2963 + return {
2964 + ...state,
2965 + isPaused: true
2966 + };
2967 + case "continue":
2968 + return {
2969 + ...state,
2970 + isPaused: false
2971 + };
2972 + case "pending":
2973 + return {
2974 + ...state,
2975 + context: action.context,
2976 + data: void 0,
2977 + failureCount: 0,
2978 + failureReason: null,
2979 + error: null,
2980 + isPaused: !(0, import_retryer.canFetch)(this.options.networkMode),
2981 + status: "pending",
2982 + variables: action.variables,
2983 + submittedAt: Date.now()
2984 + };
2985 + case "success":
2986 + return {
2987 + ...state,
2988 + data: action.data,
2989 + failureCount: 0,
2990 + failureReason: null,
2991 + error: null,
2992 + status: "success",
2993 + isPaused: false
2994 + };
2995 + case "error":
2996 + return {
2997 + ...state,
2998 + data: void 0,
2999 + error: action.error,
3000 + failureCount: state.failureCount + 1,
3001 + failureReason: action.error,
3002 + isPaused: false,
3003 + status: "error"
3004 + };
3005 + }
3006 + };
3007 + this.state = reducer(this.state);
3008 + import_notifyManager.notifyManager.batch(() => {
3009 + this.#observers.forEach((observer) => {
3010 + observer.onMutationUpdate(action);
3011 + });
3012 + this.#mutationCache.notify({
3013 + mutation: this,
3014 + type: "updated",
3015 + action
3016 + });
3017 + });
3018 + }
3019 +};
3020 +function getDefaultState() {
3021 + return {
3022 + context: void 0,
3023 + data: void 0,
3024 + error: null,
3025 + failureCount: 0,
3026 + failureReason: null,
3027 + isPaused: false,
3028 + status: "idle",
3029 + variables: void 0,
3030 + submittedAt: 0
3031 + };
3032 +}
3033 +// Annotate the CommonJS export names for ESM import in node:
3034 +0 && (0);
3035 +//# sourceMappingURL=mutation.cjs.map
3036 +
3037 +/***/ }),
3038 +
3039 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs":
3040 +/*!***************************************************************************!*\
3041 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs ***!
3042 + \***************************************************************************/
3043 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3044 +
3045 +"use strict";
3046 +
3047 +var __defProp = Object.defineProperty;
3048 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3049 +var __getOwnPropNames = Object.getOwnPropertyNames;
3050 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3051 +var __export = (target, all) => {
3052 + for (var name in all)
3053 + __defProp(target, name, { get: all[name], enumerable: true });
3054 +};
3055 +var __copyProps = (to, from, except, desc) => {
3056 + if (from && typeof from === "object" || typeof from === "function") {
3057 + for (let key of __getOwnPropNames(from))
3058 + if (!__hasOwnProp.call(to, key) && key !== except)
3059 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3060 + }
3061 + return to;
3062 +};
3063 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3064 +
3065 +// src/mutationCache.ts
3066 +var mutationCache_exports = {};
3067 +__export(mutationCache_exports, {
3068 + MutationCache: () => MutationCache
3069 +});
3070 +module.exports = __toCommonJS(mutationCache_exports);
3071 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3072 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
3073 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3074 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3075 +var MutationCache = class extends import_subscribable.Subscribable {
3076 + constructor(config = {}) {
3077 + super();
3078 + this.config = config;
3079 + this.#mutations = [];
3080 + this.#mutationId = 0;
3081 + }
3082 + #mutations;
3083 + #mutationId;
3084 + #resuming;
3085 + build(client, options, state) {
3086 + const mutation = new import_mutation.Mutation({
3087 + mutationCache: this,
3088 + mutationId: ++this.#mutationId,
3089 + options: client.defaultMutationOptions(options),
3090 + state
3091 + });
3092 + this.add(mutation);
3093 + return mutation;
3094 + }
3095 + add(mutation) {
3096 + this.#mutations.push(mutation);
3097 + this.notify({ type: "added", mutation });
3098 + }
3099 + remove(mutation) {
3100 + this.#mutations = this.#mutations.filter((x) => x !== mutation);
3101 + this.notify({ type: "removed", mutation });
3102 + }
3103 + clear() {
3104 + import_notifyManager.notifyManager.batch(() => {
3105 + this.#mutations.forEach((mutation) => {
3106 + this.remove(mutation);
3107 + });
3108 + });
3109 + }
3110 + getAll() {
3111 + return this.#mutations;
3112 + }
3113 + find(filters) {
3114 + const defaultedFilters = { exact: true, ...filters };
3115 + return this.#mutations.find(
3116 + (mutation) => (0, import_utils.matchMutation)(defaultedFilters, mutation)
3117 + );
3118 + }
3119 + findAll(filters = {}) {
3120 + return this.#mutations.filter(
3121 + (mutation) => (0, import_utils.matchMutation)(filters, mutation)
3122 + );
3123 + }
3124 + notify(event) {
3125 + import_notifyManager.notifyManager.batch(() => {
3126 + this.listeners.forEach((listener) => {
3127 + listener(event);
3128 + });
3129 + });
3130 + }
3131 + resumePausedMutations() {
3132 + this.#resuming = (this.#resuming ?? Promise.resolve()).then(() => {
3133 + const pausedMutations = this.#mutations.filter((x) => x.state.isPaused);
3134 + return import_notifyManager.notifyManager.batch(
3135 + () => pausedMutations.reduce(
3136 + (promise, mutation) => promise.then(() => mutation.continue().catch(import_utils.noop)),
3137 + Promise.resolve()
3138 + )
3139 + );
3140 + }).then(() => {
3141 + this.#resuming = void 0;
3142 + });
3143 + return this.#resuming;
3144 + }
3145 +};
3146 +// Annotate the CommonJS export names for ESM import in node:
3147 +0 && (0);
3148 +//# sourceMappingURL=mutationCache.cjs.map
3149 +
3150 +/***/ }),
3151 +
3152 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs":
3153 +/*!******************************************************************************!*\
3154 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs ***!
3155 + \******************************************************************************/
3156 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3157 +
3158 +"use strict";
3159 +
3160 +var __defProp = Object.defineProperty;
3161 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3162 +var __getOwnPropNames = Object.getOwnPropertyNames;
3163 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3164 +var __export = (target, all) => {
3165 + for (var name in all)
3166 + __defProp(target, name, { get: all[name], enumerable: true });
3167 +};
3168 +var __copyProps = (to, from, except, desc) => {
3169 + if (from && typeof from === "object" || typeof from === "function") {
3170 + for (let key of __getOwnPropNames(from))
3171 + if (!__hasOwnProp.call(to, key) && key !== except)
3172 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3173 + }
3174 + return to;
3175 +};
3176 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3177 +
3178 +// src/mutationObserver.ts
3179 +var mutationObserver_exports = {};
3180 +__export(mutationObserver_exports, {
3181 + MutationObserver: () => MutationObserver
3182 +});
3183 +module.exports = __toCommonJS(mutationObserver_exports);
3184 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
3185 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3186 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3187 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3188 +var MutationObserver = class extends import_subscribable.Subscribable {
3189 + constructor(client, options) {
3190 + super();
3191 + this.#currentResult = void 0;
3192 + this.#client = client;
3193 + this.setOptions(options);
3194 + this.bindMethods();
3195 + this.#updateResult();
3196 + }
3197 + #client;
3198 + #currentResult;
3199 + #currentMutation;
3200 + #mutateOptions;
3201 + bindMethods() {
3202 + this.mutate = this.mutate.bind(this);
3203 + this.reset = this.reset.bind(this);
3204 + }
3205 + setOptions(options) {
3206 + const prevOptions = this.options;
3207 + this.options = this.#client.defaultMutationOptions(options);
3208 + if (!(0, import_utils.shallowEqualObjects)(prevOptions, this.options)) {
3209 + this.#client.getMutationCache().notify({
3210 + type: "observerOptionsUpdated",
3211 + mutation: this.#currentMutation,
3212 + observer: this
3213 + });
3214 + }
3215 + this.#currentMutation?.setOptions(this.options);
3216 + }
3217 + onUnsubscribe() {
3218 + if (!this.hasListeners()) {
3219 + this.#currentMutation?.removeObserver(this);
3220 + }
3221 + }
3222 + onMutationUpdate(action) {
3223 + this.#updateResult();
3224 + this.#notify(action);
3225 + }
3226 + getCurrentResult() {
3227 + return this.#currentResult;
3228 + }
3229 + reset() {
3230 + this.#currentMutation = void 0;
3231 + this.#updateResult();
3232 + this.#notify();
3233 + }
3234 + mutate(variables, options) {
3235 + this.#mutateOptions = options;
3236 + this.#currentMutation?.removeObserver(this);
3237 + this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);
3238 + this.#currentMutation.addObserver(this);
3239 + return this.#currentMutation.execute(variables);
3240 + }
3241 + #updateResult() {
3242 + const state = this.#currentMutation?.state ?? (0, import_mutation.getDefaultState)();
3243 + this.#currentResult = {
3244 + ...state,
3245 + isPending: state.status === "pending",
3246 + isSuccess: state.status === "success",
3247 + isError: state.status === "error",
3248 + isIdle: state.status === "idle",
3249 + mutate: this.mutate,
3250 + reset: this.reset
3251 + };
3252 + }
3253 + #notify(action) {
3254 + import_notifyManager.notifyManager.batch(() => {
3255 + if (this.#mutateOptions && this.hasListeners()) {
3256 + if (action?.type === "success") {
3257 + this.#mutateOptions.onSuccess?.(
3258 + action.data,
3259 + this.#currentResult.variables,
3260 + this.#currentResult.context
3261 + );
3262 + this.#mutateOptions.onSettled?.(
3263 + action.data,
3264 + null,
3265 + this.#currentResult.variables,
3266 + this.#currentResult.context
3267 + );
3268 + } else if (action?.type === "error") {
3269 + this.#mutateOptions.onError?.(
3270 + action.error,
3271 + this.#currentResult.variables,
3272 + this.#currentResult.context
3273 + );
3274 + this.#mutateOptions.onSettled?.(
3275 + void 0,
3276 + action.error,
3277 + this.#currentResult.variables,
3278 + this.#currentResult.context
3279 + );
3280 + }
3281 + }
3282 + this.listeners.forEach((listener) => {
3283 + listener(this.#currentResult);
3284 + });
3285 + });
3286 + }
3287 +};
3288 +// Annotate the CommonJS export names for ESM import in node:
3289 +0 && (0);
3290 +//# sourceMappingURL=mutationObserver.cjs.map
3291 +
3292 +/***/ }),
3293 +
3294 +/***/ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs":
3295 +/*!***************************************************************************!*\
3296 + !*** ../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs ***!
3297 + \***************************************************************************/
3298 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3299 +
3300 +"use strict";
3301 +
3302 +var __defProp = Object.defineProperty;
3303 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3304 +var __getOwnPropNames = Object.getOwnPropertyNames;
3305 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3306 +var __export = (target, all) => {
3307 + for (var name in all)
3308 + __defProp(target, name, { get: all[name], enumerable: true });
3309 +};
3310 +var __copyProps = (to, from, except, desc) => {
3311 + if (from && typeof from === "object" || typeof from === "function") {
3312 + for (let key of __getOwnPropNames(from))
3313 + if (!__hasOwnProp.call(to, key) && key !== except)
3314 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3315 + }
3316 + return to;
3317 +};
3318 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3319 +
3320 +// src/notifyManager.ts
3321 +var notifyManager_exports = {};
3322 +__export(notifyManager_exports, {
3323 + createNotifyManager: () => createNotifyManager,
3324 + notifyManager: () => notifyManager
3325 +});
3326 +module.exports = __toCommonJS(notifyManager_exports);
3327 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3328 +function createNotifyManager() {
3329 + let queue = [];
3330 + let transactions = 0;
3331 + let notifyFn = (callback) => {
3332 + callback();
3333 + };
3334 + let batchNotifyFn = (callback) => {
3335 + callback();
3336 + };
3337 + const batch = (callback) => {
3338 + let result;
3339 + transactions++;
3340 + try {
3341 + result = callback();
3342 + } finally {
3343 + transactions--;
3344 + if (!transactions) {
3345 + flush();
3346 + }
3347 + }
3348 + return result;
3349 + };
3350 + const schedule = (callback) => {
3351 + if (transactions) {
3352 + queue.push(callback);
3353 + } else {
3354 + (0, import_utils.scheduleMicrotask)(() => {
3355 + notifyFn(callback);
3356 + });
3357 + }
3358 + };
3359 + const batchCalls = (callback) => {
3360 + return (...args) => {
3361 + schedule(() => {
3362 + callback(...args);
3363 + });
3364 + };
3365 + };
3366 + const flush = () => {
3367 + const originalQueue = queue;
3368 + queue = [];
3369 + if (originalQueue.length) {
3370 + (0, import_utils.scheduleMicrotask)(() => {
3371 + batchNotifyFn(() => {
3372 + originalQueue.forEach((callback) => {
3373 + notifyFn(callback);
3374 + });
3375 + });
3376 + });
3377 + }
3378 + };
3379 + const setNotifyFunction = (fn) => {
3380 + notifyFn = fn;
3381 + };
3382 + const setBatchNotifyFunction = (fn) => {
3383 + batchNotifyFn = fn;
3384 + };
3385 + return {
3386 + batch,
3387 + batchCalls,
3388 + schedule,
3389 + setNotifyFunction,
3390 + setBatchNotifyFunction
3391 + };
3392 +}
3393 +var notifyManager = createNotifyManager();
3394 +// Annotate the CommonJS export names for ESM import in node:
3395 +0 && (0);
3396 +//# sourceMappingURL=notifyManager.cjs.map
3397 +
3398 +/***/ }),
3399 +
3400 +/***/ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs":
3401 +/*!***************************************************************************!*\
3402 + !*** ../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs ***!
3403 + \***************************************************************************/
3404 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3405 +
3406 +"use strict";
3407 +
3408 +var __defProp = Object.defineProperty;
3409 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3410 +var __getOwnPropNames = Object.getOwnPropertyNames;
3411 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3412 +var __export = (target, all) => {
3413 + for (var name in all)
3414 + __defProp(target, name, { get: all[name], enumerable: true });
3415 +};
3416 +var __copyProps = (to, from, except, desc) => {
3417 + if (from && typeof from === "object" || typeof from === "function") {
3418 + for (let key of __getOwnPropNames(from))
3419 + if (!__hasOwnProp.call(to, key) && key !== except)
3420 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3421 + }
3422 + return to;
3423 +};
3424 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3425 +
3426 +// src/onlineManager.ts
3427 +var onlineManager_exports = {};
3428 +__export(onlineManager_exports, {
3429 + OnlineManager: () => OnlineManager,
3430 + onlineManager: () => onlineManager
3431 +});
3432 +module.exports = __toCommonJS(onlineManager_exports);
3433 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3434 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3435 +var OnlineManager = class extends import_subscribable.Subscribable {
3436 + #online = true;
3437 + #cleanup;
3438 + #setup;
3439 + constructor() {
3440 + super();
3441 + this.#setup = (onOnline) => {
3442 + if (!import_utils.isServer && window.addEventListener) {
3443 + const onlineListener = () => onOnline(true);
3444 + const offlineListener = () => onOnline(false);
3445 + window.addEventListener("online", onlineListener, false);
3446 + window.addEventListener("offline", offlineListener, false);
3447 + return () => {
3448 + window.removeEventListener("online", onlineListener);
3449 + window.removeEventListener("offline", offlineListener);
3450 + };
3451 + }
3452 + return;
3453 + };
3454 + }
3455 + onSubscribe() {
3456 + if (!this.#cleanup) {
3457 + this.setEventListener(this.#setup);
3458 + }
3459 + }
3460 + onUnsubscribe() {
3461 + if (!this.hasListeners()) {
3462 + this.#cleanup?.();
3463 + this.#cleanup = void 0;
3464 + }
3465 + }
3466 + setEventListener(setup) {
3467 + this.#setup = setup;
3468 + this.#cleanup?.();
3469 + this.#cleanup = setup(this.setOnline.bind(this));
3470 + }
3471 + setOnline(online) {
3472 + const changed = this.#online !== online;
3473 + if (changed) {
3474 + this.#online = online;
3475 + this.listeners.forEach((listener) => {
3476 + listener(online);
3477 + });
3478 + }
3479 + }
3480 + isOnline() {
3481 + return this.#online;
3482 + }
3483 +};
3484 +var onlineManager = new OnlineManager();
3485 +// Annotate the CommonJS export names for ESM import in node:
3486 +0 && (0);
3487 +//# sourceMappingURL=onlineManager.cjs.map
3488 +
3489 +/***/ }),
3490 +
3491 +/***/ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs":
3492 +/*!*****************************************************************************!*\
3493 + !*** ../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs ***!
3494 + \*****************************************************************************/
3495 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3496 +
3497 +"use strict";
3498 +
3499 +var __defProp = Object.defineProperty;
3500 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3501 +var __getOwnPropNames = Object.getOwnPropertyNames;
3502 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3503 +var __export = (target, all) => {
3504 + for (var name in all)
3505 + __defProp(target, name, { get: all[name], enumerable: true });
3506 +};
3507 +var __copyProps = (to, from, except, desc) => {
3508 + if (from && typeof from === "object" || typeof from === "function") {
3509 + for (let key of __getOwnPropNames(from))
3510 + if (!__hasOwnProp.call(to, key) && key !== except)
3511 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3512 + }
3513 + return to;
3514 +};
3515 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3516 +
3517 +// src/queriesObserver.ts
3518 +var queriesObserver_exports = {};
3519 +__export(queriesObserver_exports, {
3520 + QueriesObserver: () => QueriesObserver
3521 +});
3522 +module.exports = __toCommonJS(queriesObserver_exports);
3523 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3524 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
3525 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3526 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3527 +function difference(array1, array2) {
3528 + return array1.filter((x) => !array2.includes(x));
3529 +}
3530 +function replaceAt(array, index, value) {
3531 + const copy = array.slice(0);
3532 + copy[index] = value;
3533 + return copy;
3534 +}
3535 +var QueriesObserver = class extends import_subscribable.Subscribable {
3536 + #client;
3537 + #result;
3538 + #queries;
3539 + #observers;
3540 + #options;
3541 + #combinedResult;
3542 + constructor(client, queries, options) {
3543 + super();
3544 + this.#client = client;
3545 + this.#queries = [];
3546 + this.#observers = [];
3547 + this.#setResult([]);
3548 + this.setQueries(queries, options);
3549 + }
3550 + #setResult(value) {
3551 + this.#result = value;
3552 + this.#combinedResult = this.#combineResult(value);
3553 + }
3554 + onSubscribe() {
3555 + if (this.listeners.size === 1) {
3556 + this.#observers.forEach((observer) => {
3557 + observer.subscribe((result) => {
3558 + this.#onUpdate(observer, result);
3559 + });
3560 + });
3561 + }
3562 + }
3563 + onUnsubscribe() {
3564 + if (!this.listeners.size) {
3565 + this.destroy();
3566 + }
3567 + }
3568 + destroy() {
3569 + this.listeners = /* @__PURE__ */ new Set();
3570 + this.#observers.forEach((observer) => {
3571 + observer.destroy();
3572 + });
3573 + }
3574 + setQueries(queries, options, notifyOptions) {
3575 + this.#queries = queries;
3576 + this.#options = options;
3577 + import_notifyManager.notifyManager.batch(() => {
3578 + const prevObservers = this.#observers;
3579 + const newObserverMatches = this.#findMatchingObservers(this.#queries);
3580 + newObserverMatches.forEach(
3581 + (match) => match.observer.setOptions(match.defaultedQueryOptions, notifyOptions)
3582 + );
3583 + const newObservers = newObserverMatches.map((match) => match.observer);
3584 + const newResult = newObservers.map(
3585 + (observer) => observer.getCurrentResult()
3586 + );
3587 + const hasIndexChange = newObservers.some(
3588 + (observer, index) => observer !== prevObservers[index]
3589 + );
3590 + if (prevObservers.length === newObservers.length && !hasIndexChange) {
3591 + return;
3592 + }
3593 + this.#observers = newObservers;
3594 + this.#setResult(newResult);
3595 + if (!this.hasListeners()) {
3596 + return;
3597 + }
3598 + difference(prevObservers, newObservers).forEach((observer) => {
3599 + observer.destroy();
3600 + });
3601 + difference(newObservers, prevObservers).forEach((observer) => {
3602 + observer.subscribe((result) => {
3603 + this.#onUpdate(observer, result);
3604 + });
3605 + });
3606 + this.#notify();
3607 + });
3608 + }
3609 + getCurrentResult() {
3610 + return this.#combinedResult;
3611 + }
3612 + getQueries() {
3613 + return this.#observers.map((observer) => observer.getCurrentQuery());
3614 + }
3615 + getObservers() {
3616 + return this.#observers;
3617 + }
3618 + getOptimisticResult(queries) {
3619 + const matches = this.#findMatchingObservers(queries);
3620 + const result = matches.map(
3621 + (match) => match.observer.getOptimisticResult(match.defaultedQueryOptions)
3622 + );
3623 + return [
3624 + result,
3625 + (r) => {
3626 + return this.#combineResult(r ?? result);
3627 + },
3628 + () => {
3629 + return matches.map((match, index) => {
3630 + const observerResult = result[index];
3631 + return !match.defaultedQueryOptions.notifyOnChangeProps ? match.observer.trackResult(observerResult) : observerResult;
3632 + });
3633 + }
3634 + ];
3635 + }
3636 + #combineResult(input) {
3637 + const combine = this.#options?.combine;
3638 + if (combine) {
3639 + return (0, import_utils.replaceEqualDeep)(this.#combinedResult, combine(input));
3640 + }
3641 + return input;
3642 + }
3643 + #findMatchingObservers(queries) {
3644 + const prevObservers = this.#observers;
3645 + const prevObserversMap = new Map(
3646 + prevObservers.map((observer) => [observer.options.queryHash, observer])
3647 + );
3648 + const defaultedQueryOptions = queries.map(
3649 + (options) => this.#client.defaultQueryOptions(options)
3650 + );
3651 + const matchingObservers = defaultedQueryOptions.flatMap((defaultedOptions) => {
3652 + const match = prevObserversMap.get(defaultedOptions.queryHash);
3653 + if (match != null) {
3654 + return [{ defaultedQueryOptions: defaultedOptions, observer: match }];
3655 + }
3656 + return [];
3657 + });
3658 + const matchedQueryHashes = new Set(
3659 + matchingObservers.map((match) => match.defaultedQueryOptions.queryHash)
3660 + );
3661 + const unmatchedQueries = defaultedQueryOptions.filter(
3662 + (defaultedOptions) => !matchedQueryHashes.has(defaultedOptions.queryHash)
3663 + );
3664 + const getObserver = (options) => {
3665 + const defaultedOptions = this.#client.defaultQueryOptions(options);
3666 + const currentObserver = this.#observers.find(
3667 + (o) => o.options.queryHash === defaultedOptions.queryHash
3668 + );
3669 + return currentObserver ?? new import_queryObserver.QueryObserver(this.#client, defaultedOptions);
3670 + };
3671 + const newOrReusedObservers = unmatchedQueries.map((options) => {
3672 + return {
3673 + defaultedQueryOptions: options,
3674 + observer: getObserver(options)
3675 + };
3676 + });
3677 + const sortMatchesByOrderOfQueries = (a, b) => defaultedQueryOptions.indexOf(a.defaultedQueryOptions) - defaultedQueryOptions.indexOf(b.defaultedQueryOptions);
3678 + return matchingObservers.concat(newOrReusedObservers).sort(sortMatchesByOrderOfQueries);
3679 + }
3680 + #onUpdate(observer, result) {
3681 + const index = this.#observers.indexOf(observer);
3682 + if (index !== -1) {
3683 + this.#setResult(replaceAt(this.#result, index, result));
3684 + this.#notify();
3685 + }
3686 + }
3687 + #notify() {
3688 + import_notifyManager.notifyManager.batch(() => {
3689 + this.listeners.forEach((listener) => {
3690 + listener(this.#result);
3691 + });
3692 + });
3693 + }
3694 +};
3695 +// Annotate the CommonJS export names for ESM import in node:
3696 +0 && (0);
3697 +//# sourceMappingURL=queriesObserver.cjs.map
3698 +
3699 +/***/ }),
3700 +
3701 +/***/ "../node_modules/@tanstack/query-core/build/modern/query.cjs":
3702 +/*!*******************************************************************!*\
3703 + !*** ../node_modules/@tanstack/query-core/build/modern/query.cjs ***!
3704 + \*******************************************************************/
3705 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3706 +
3707 +"use strict";
3708 +
3709 +var __defProp = Object.defineProperty;
3710 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3711 +var __getOwnPropNames = Object.getOwnPropertyNames;
3712 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3713 +var __export = (target, all) => {
3714 + for (var name in all)
3715 + __defProp(target, name, { get: all[name], enumerable: true });
3716 +};
3717 +var __copyProps = (to, from, except, desc) => {
3718 + if (from && typeof from === "object" || typeof from === "function") {
3719 + for (let key of __getOwnPropNames(from))
3720 + if (!__hasOwnProp.call(to, key) && key !== except)
3721 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3722 + }
3723 + return to;
3724 +};
3725 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3726 +
3727 +// src/query.ts
3728 +var query_exports = {};
3729 +__export(query_exports, {
3730 + Query: () => Query
3731 +});
3732 +module.exports = __toCommonJS(query_exports);
3733 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3734 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3735 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3736 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
3737 +var Query = class extends import_removable.Removable {
3738 + constructor(config) {
3739 + super();
3740 + this.#abortSignalConsumed = false;
3741 + this.#defaultOptions = config.defaultOptions;
3742 + this.#setOptions(config.options);
3743 + this.#observers = [];
3744 + this.#cache = config.cache;
3745 + this.queryKey = config.queryKey;
3746 + this.queryHash = config.queryHash;
3747 + this.#initialState = config.state || getDefaultState(this.options);
3748 + this.state = this.#initialState;
3749 + this.scheduleGc();
3750 + }
3751 + #initialState;
3752 + #revertState;
3753 + #cache;
3754 + #promise;
3755 + #retryer;
3756 + #observers;
3757 + #defaultOptions;
3758 + #abortSignalConsumed;
3759 + get meta() {
3760 + return this.options.meta;
3761 + }
3762 + #setOptions(options) {
3763 + this.options = { ...this.#defaultOptions, ...options };
3764 + this.updateGcTime(this.options.gcTime);
3765 + }
3766 + optionalRemove() {
3767 + if (!this.#observers.length && this.state.fetchStatus === "idle") {
3768 + this.#cache.remove(this);
3769 + }
3770 + }
3771 + setData(newData, options) {
3772 + const data = (0, import_utils.replaceData)(this.state.data, newData, this.options);
3773 + this.#dispatch({
3774 + data,
3775 + type: "success",
3776 + dataUpdatedAt: options?.updatedAt,
3777 + manual: options?.manual
3778 + });
3779 + return data;
3780 + }
3781 + setState(state, setStateOptions) {
3782 + this.#dispatch({ type: "setState", state, setStateOptions });
3783 + }
3784 + cancel(options) {
3785 + const promise = this.#promise;
3786 + this.#retryer?.cancel(options);
3787 + return promise ? promise.then(import_utils.noop).catch(import_utils.noop) : Promise.resolve();
3788 + }
3789 + destroy() {
3790 + super.destroy();
3791 + this.cancel({ silent: true });
3792 + }
3793 + reset() {
3794 + this.destroy();
3795 + this.setState(this.#initialState);
3796 + }
3797 + isActive() {
3798 + return this.#observers.some(
3799 + (observer) => observer.options.enabled !== false
3800 + );
3801 + }
3802 + isDisabled() {
3803 + return this.getObserversCount() > 0 && !this.isActive();
3804 + }
3805 + isStale() {
3806 + return this.state.isInvalidated || !this.state.dataUpdatedAt || this.#observers.some((observer) => observer.getCurrentResult().isStale);
3807 + }
3808 + isStaleByTime(staleTime = 0) {
3809 + return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, import_utils.timeUntilStale)(this.state.dataUpdatedAt, staleTime);
3810 + }
3811 + onFocus() {
3812 + const observer = this.#observers.find((x) => x.shouldFetchOnWindowFocus());
3813 + observer?.refetch({ cancelRefetch: false });
3814 + this.#retryer?.continue();
3815 + }
3816 + onOnline() {
3817 + const observer = this.#observers.find((x) => x.shouldFetchOnReconnect());
3818 + observer?.refetch({ cancelRefetch: false });
3819 + this.#retryer?.continue();
3820 + }
3821 + addObserver(observer) {
3822 + if (!this.#observers.includes(observer)) {
3823 + this.#observers.push(observer);
3824 + this.clearGcTimeout();
3825 + this.#cache.notify({ type: "observerAdded", query: this, observer });
3826 + }
3827 + }
3828 + removeObserver(observer) {
3829 + if (this.#observers.includes(observer)) {
3830 + this.#observers = this.#observers.filter((x) => x !== observer);
3831 + if (!this.#observers.length) {
3832 + if (this.#retryer) {
3833 + if (this.#abortSignalConsumed) {
3834 + this.#retryer.cancel({ revert: true });
3835 + } else {
3836 + this.#retryer.cancelRetry();
3837 + }
3838 + }
3839 + this.scheduleGc();
3840 + }
3841 + this.#cache.notify({ type: "observerRemoved", query: this, observer });
3842 + }
3843 + }
3844 + getObserversCount() {
3845 + return this.#observers.length;
3846 + }
3847 + invalidate() {
3848 + if (!this.state.isInvalidated) {
3849 + this.#dispatch({ type: "invalidate" });
3850 + }
3851 + }
3852 + fetch(options, fetchOptions) {
3853 + if (this.state.fetchStatus !== "idle") {
3854 + if (this.state.dataUpdatedAt && fetchOptions?.cancelRefetch) {
3855 + this.cancel({ silent: true });
3856 + } else if (this.#promise) {
3857 + this.#retryer?.continueRetry();
3858 + return this.#promise;
3859 + }
3860 + }
3861 + if (options) {
3862 + this.#setOptions(options);
3863 + }
3864 + if (!this.options.queryFn) {
3865 + const observer = this.#observers.find((x) => x.options.queryFn);
3866 + if (observer) {
3867 + this.#setOptions(observer.options);
3868 + }
3869 + }
3870 + if (true) {
3871 + if (!Array.isArray(this.options.queryKey)) {
3872 + console.error(
3873 + `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']`
3874 + );
3875 + }
3876 + }
3877 + const abortController = new AbortController();
3878 + const queryFnContext = {
3879 + queryKey: this.queryKey,
3880 + meta: this.meta
3881 + };
3882 + const addSignalProperty = (object) => {
3883 + Object.defineProperty(object, "signal", {
3884 + enumerable: true,
3885 + get: () => {
3886 + this.#abortSignalConsumed = true;
3887 + return abortController.signal;
3888 + }
3889 + });
3890 + };
3891 + addSignalProperty(queryFnContext);
3892 + const fetchFn = () => {
3893 + if (!this.options.queryFn) {
3894 + return Promise.reject(
3895 + new Error(`Missing queryFn: '${this.options.queryHash}'`)
3896 + );
3897 + }
3898 + this.#abortSignalConsumed = false;
3899 + if (this.options.persister) {
3900 + return this.options.persister(
3901 + this.options.queryFn,
3902 + queryFnContext,
3903 + this
3904 + );
3905 + }
3906 + return this.options.queryFn(
3907 + queryFnContext
3908 + );
3909 + };
3910 + const context = {
3911 + fetchOptions,
3912 + options: this.options,
3913 + queryKey: this.queryKey,
3914 + state: this.state,
3915 + fetchFn
3916 + };
3917 + addSignalProperty(context);
3918 + this.options.behavior?.onFetch(
3919 + context,
3920 + this
3921 + );
3922 + this.#revertState = this.state;
3923 + if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== context.fetchOptions?.meta) {
3924 + this.#dispatch({ type: "fetch", meta: context.fetchOptions?.meta });
3925 + }
3926 + const onError = (error) => {
3927 + if (!((0, import_retryer.isCancelledError)(error) && error.silent)) {
3928 + this.#dispatch({
3929 + type: "error",
3930 + error
3931 + });
3932 + }
3933 + if (!(0, import_retryer.isCancelledError)(error)) {
3934 + this.#cache.config.onError?.(
3935 + error,
3936 + this
3937 + );
3938 + this.#cache.config.onSettled?.(
3939 + this.state.data,
3940 + error,
3941 + this
3942 + );
3943 + }
3944 + if (!this.isFetchingOptimistic) {
3945 + this.scheduleGc();
3946 + }
3947 + this.isFetchingOptimistic = false;
3948 + };
3949 + this.#retryer = (0, import_retryer.createRetryer)({
3950 + fn: context.fetchFn,
3951 + abort: abortController.abort.bind(abortController),
3952 + onSuccess: (data) => {
3953 + if (typeof data === "undefined") {
3954 + if (true) {
3955 + console.error(
3956 + `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
3957 + );
3958 + }
3959 + onError(new Error(`${this.queryHash} data is undefined`));
3960 + return;
3961 + }
3962 + this.setData(data);
3963 + this.#cache.config.onSuccess?.(data, this);
3964 + this.#cache.config.onSettled?.(
3965 + data,
3966 + this.state.error,
3967 + this
3968 + );
3969 + if (!this.isFetchingOptimistic) {
3970 + this.scheduleGc();
3971 + }
3972 + this.isFetchingOptimistic = false;
3973 + },
3974 + onError,
3975 + onFail: (failureCount, error) => {
3976 + this.#dispatch({ type: "failed", failureCount, error });
3977 + },
3978 + onPause: () => {
3979 + this.#dispatch({ type: "pause" });
3980 + },
3981 + onContinue: () => {
3982 + this.#dispatch({ type: "continue" });
3983 + },
3984 + retry: context.options.retry,
3985 + retryDelay: context.options.retryDelay,
3986 + networkMode: context.options.networkMode
3987 + });
3988 + this.#promise = this.#retryer.promise;
3989 + return this.#promise;
3990 + }
3991 + #dispatch(action) {
3992 + const reducer = (state) => {
3993 + switch (action.type) {
3994 + case "failed":
3995 + return {
3996 + ...state,
3997 + fetchFailureCount: action.failureCount,
3998 + fetchFailureReason: action.error
3999 + };
4000 + case "pause":
4001 + return {
4002 + ...state,
4003 + fetchStatus: "paused"
4004 + };
4005 + case "continue":
4006 + return {
4007 + ...state,
4008 + fetchStatus: "fetching"
4009 + };
4010 + case "fetch":
4011 + return {
4012 + ...state,
4013 + fetchFailureCount: 0,
4014 + fetchFailureReason: null,
4015 + fetchMeta: action.meta ?? null,
4016 + fetchStatus: (0, import_retryer.canFetch)(this.options.networkMode) ? "fetching" : "paused",
4017 + ...!state.dataUpdatedAt && {
4018 + error: null,
4019 + status: "pending"
4020 + }
4021 + };
4022 + case "success":
4023 + return {
4024 + ...state,
4025 + data: action.data,
4026 + dataUpdateCount: state.dataUpdateCount + 1,
4027 + dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),
4028 + error: null,
4029 + isInvalidated: false,
4030 + status: "success",
4031 + ...!action.manual && {
4032 + fetchStatus: "idle",
4033 + fetchFailureCount: 0,
4034 + fetchFailureReason: null
4035 + }
4036 + };
4037 + case "error":
4038 + const error = action.error;
4039 + if ((0, import_retryer.isCancelledError)(error) && error.revert && this.#revertState) {
4040 + return { ...this.#revertState, fetchStatus: "idle" };
4041 + }
4042 + return {
4043 + ...state,
4044 + error,
4045 + errorUpdateCount: state.errorUpdateCount + 1,
4046 + errorUpdatedAt: Date.now(),
4047 + fetchFailureCount: state.fetchFailureCount + 1,
4048 + fetchFailureReason: error,
4049 + fetchStatus: "idle",
4050 + status: "error"
4051 + };
4052 + case "invalidate":
4053 + return {
4054 + ...state,
4055 + isInvalidated: true
4056 + };
4057 + case "setState":
4058 + return {
4059 + ...state,
4060 + ...action.state
4061 + };
4062 + }
4063 + };
4064 + this.state = reducer(this.state);
4065 + import_notifyManager.notifyManager.batch(() => {
4066 + this.#observers.forEach((observer) => {
4067 + observer.onQueryUpdate();
4068 + });
4069 + this.#cache.notify({ query: this, type: "updated", action });
4070 + });
4071 + }
4072 +};
4073 +function getDefaultState(options) {
4074 + const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
4075 + const hasData = typeof data !== "undefined";
4076 + const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === "function" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
4077 + return {
4078 + data,
4079 + dataUpdateCount: 0,
4080 + dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,
4081 + error: null,
4082 + errorUpdateCount: 0,
4083 + errorUpdatedAt: 0,
4084 + fetchFailureCount: 0,
4085 + fetchFailureReason: null,
4086 + fetchMeta: null,
4087 + isInvalidated: false,
4088 + status: hasData ? "success" : "pending",
4089 + fetchStatus: "idle"
4090 + };
4091 +}
4092 +// Annotate the CommonJS export names for ESM import in node:
4093 +0 && (0);
4094 +//# sourceMappingURL=query.cjs.map
4095 +
4096 +/***/ }),
4097 +
4098 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs":
4099 +/*!************************************************************************!*\
4100 + !*** ../node_modules/@tanstack/query-core/build/modern/queryCache.cjs ***!
4101 + \************************************************************************/
4102 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4103 +
4104 +"use strict";
4105 +
4106 +var __defProp = Object.defineProperty;
4107 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4108 +var __getOwnPropNames = Object.getOwnPropertyNames;
4109 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4110 +var __export = (target, all) => {
4111 + for (var name in all)
4112 + __defProp(target, name, { get: all[name], enumerable: true });
4113 +};
4114 +var __copyProps = (to, from, except, desc) => {
4115 + if (from && typeof from === "object" || typeof from === "function") {
4116 + for (let key of __getOwnPropNames(from))
4117 + if (!__hasOwnProp.call(to, key) && key !== except)
4118 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4119 + }
4120 + return to;
4121 +};
4122 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4123 +
4124 +// src/queryCache.ts
4125 +var queryCache_exports = {};
4126 +__export(queryCache_exports, {
4127 + QueryCache: () => QueryCache
4128 +});
4129 +module.exports = __toCommonJS(queryCache_exports);
4130 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4131 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
4132 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4133 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4134 +var QueryCache = class extends import_subscribable.Subscribable {
4135 + constructor(config = {}) {
4136 + super();
4137 + this.config = config;
4138 + this.#queries = /* @__PURE__ */ new Map();
4139 + }
4140 + #queries;
4141 + build(client, options, state) {
4142 + const queryKey = options.queryKey;
4143 + const queryHash = options.queryHash ?? (0, import_utils.hashQueryKeyByOptions)(queryKey, options);
4144 + let query = this.get(queryHash);
4145 + if (!query) {
4146 + query = new import_query.Query({
4147 + cache: this,
4148 + queryKey,
4149 + queryHash,
4150 + options: client.defaultQueryOptions(options),
4151 + state,
4152 + defaultOptions: client.getQueryDefaults(queryKey)
4153 + });
4154 + this.add(query);
4155 + }
4156 + return query;
4157 + }
4158 + add(query) {
4159 + if (!this.#queries.has(query.queryHash)) {
4160 + this.#queries.set(query.queryHash, query);
4161 + this.notify({
4162 + type: "added",
4163 + query
4164 + });
4165 + }
4166 + }
4167 + remove(query) {
4168 + const queryInMap = this.#queries.get(query.queryHash);
4169 + if (queryInMap) {
4170 + query.destroy();
4171 + if (queryInMap === query) {
4172 + this.#queries.delete(query.queryHash);
4173 + }
4174 + this.notify({ type: "removed", query });
4175 + }
4176 + }
4177 + clear() {
4178 + import_notifyManager.notifyManager.batch(() => {
4179 + this.getAll().forEach((query) => {
4180 + this.remove(query);
4181 + });
4182 + });
4183 + }
4184 + get(queryHash) {
4185 + return this.#queries.get(queryHash);
4186 + }
4187 + getAll() {
4188 + return [...this.#queries.values()];
4189 + }
4190 + find(filters) {
4191 + const defaultedFilters = { exact: true, ...filters };
4192 + return this.getAll().find(
4193 + (query) => (0, import_utils.matchQuery)(defaultedFilters, query)
4194 + );
4195 + }
4196 + findAll(filters = {}) {
4197 + const queries = this.getAll();
4198 + return Object.keys(filters).length > 0 ? queries.filter((query) => (0, import_utils.matchQuery)(filters, query)) : queries;
4199 + }
4200 + notify(event) {
4201 + import_notifyManager.notifyManager.batch(() => {
4202 + this.listeners.forEach((listener) => {
4203 + listener(event);
4204 + });
4205 + });
4206 + }
4207 + onFocus() {
4208 + import_notifyManager.notifyManager.batch(() => {
4209 + this.getAll().forEach((query) => {
4210 + query.onFocus();
4211 + });
4212 + });
4213 + }
4214 + onOnline() {
4215 + import_notifyManager.notifyManager.batch(() => {
4216 + this.getAll().forEach((query) => {
4217 + query.onOnline();
4218 + });
4219 + });
4220 + }
4221 +};
4222 +// Annotate the CommonJS export names for ESM import in node:
4223 +0 && (0);
4224 +//# sourceMappingURL=queryCache.cjs.map
4225 +
4226 +/***/ }),
4227 +
4228 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs":
4229 +/*!*************************************************************************!*\
4230 + !*** ../node_modules/@tanstack/query-core/build/modern/queryClient.cjs ***!
4231 + \*************************************************************************/
4232 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4233 +
4234 +"use strict";
4235 +
4236 +var __defProp = Object.defineProperty;
4237 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4238 +var __getOwnPropNames = Object.getOwnPropertyNames;
4239 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4240 +var __export = (target, all) => {
4241 + for (var name in all)
4242 + __defProp(target, name, { get: all[name], enumerable: true });
4243 +};
4244 +var __copyProps = (to, from, except, desc) => {
4245 + if (from && typeof from === "object" || typeof from === "function") {
4246 + for (let key of __getOwnPropNames(from))
4247 + if (!__hasOwnProp.call(to, key) && key !== except)
4248 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4249 + }
4250 + return to;
4251 +};
4252 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4253 +
4254 +// src/queryClient.ts
4255 +var queryClient_exports = {};
4256 +__export(queryClient_exports, {
4257 + QueryClient: () => QueryClient
4258 +});
4259 +module.exports = __toCommonJS(queryClient_exports);
4260 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4261 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
4262 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
4263 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
4264 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
4265 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4266 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
4267 +var QueryClient = class {
4268 + #queryCache;
4269 + #mutationCache;
4270 + #defaultOptions;
4271 + #queryDefaults;
4272 + #mutationDefaults;
4273 + #mountCount;
4274 + #unsubscribeFocus;
4275 + #unsubscribeOnline;
4276 + constructor(config = {}) {
4277 + this.#queryCache = config.queryCache || new import_queryCache.QueryCache();
4278 + this.#mutationCache = config.mutationCache || new import_mutationCache.MutationCache();
4279 + this.#defaultOptions = config.defaultOptions || {};
4280 + this.#queryDefaults = /* @__PURE__ */ new Map();
4281 + this.#mutationDefaults = /* @__PURE__ */ new Map();
4282 + this.#mountCount = 0;
4283 + }
4284 + mount() {
4285 + this.#mountCount++;
4286 + if (this.#mountCount !== 1)
4287 + return;
4288 + this.#unsubscribeFocus = import_focusManager.focusManager.subscribe(() => {
4289 + if (import_focusManager.focusManager.isFocused()) {
4290 + this.resumePausedMutations();
4291 + this.#queryCache.onFocus();
4292 + }
4293 + });
4294 + this.#unsubscribeOnline = import_onlineManager.onlineManager.subscribe(() => {
4295 + if (import_onlineManager.onlineManager.isOnline()) {
4296 + this.resumePausedMutations();
4297 + this.#queryCache.onOnline();
4298 + }
4299 + });
4300 + }
4301 + unmount() {
4302 + this.#mountCount--;
4303 + if (this.#mountCount !== 0)
4304 + return;
4305 + this.#unsubscribeFocus?.();
4306 + this.#unsubscribeFocus = void 0;
4307 + this.#unsubscribeOnline?.();
4308 + this.#unsubscribeOnline = void 0;
4309 + }
4310 + isFetching(filters) {
4311 + return this.#queryCache.findAll({ ...filters, fetchStatus: "fetching" }).length;
4312 + }
4313 + isMutating(filters) {
4314 + return this.#mutationCache.findAll({ ...filters, status: "pending" }).length;
4315 + }
4316 + getQueryData(queryKey) {
4317 + return this.#queryCache.find({ queryKey })?.state.data;
4318 + }
4319 + ensureQueryData(options) {
4320 + const cachedData = this.getQueryData(options.queryKey);
4321 + return cachedData !== void 0 ? Promise.resolve(cachedData) : this.fetchQuery(options);
4322 + }
4323 + getQueriesData(filters) {
4324 + return this.getQueryCache().findAll(filters).map(({ queryKey, state }) => {
4325 + const data = state.data;
4326 + return [queryKey, data];
4327 + });
4328 + }
4329 + setQueryData(queryKey, updater, options) {
4330 + const query = this.#queryCache.find({ queryKey });
4331 + const prevData = query?.state.data;
4332 + const data = (0, import_utils.functionalUpdate)(updater, prevData);
4333 + if (typeof data === "undefined") {
4334 + return void 0;
4335 + }
4336 + const defaultedOptions = this.defaultQueryOptions({ queryKey });
4337 + return this.#queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true });
4338 + }
4339 + setQueriesData(filters, updater, options) {
4340 + return import_notifyManager.notifyManager.batch(
4341 + () => this.getQueryCache().findAll(filters).map(({ queryKey }) => [
4342 + queryKey,
4343 + this.setQueryData(queryKey, updater, options)
4344 + ])
4345 + );
4346 + }
4347 + getQueryState(queryKey) {
4348 + return this.#queryCache.find({ queryKey })?.state;
4349 + }
4350 + removeQueries(filters) {
4351 + const queryCache = this.#queryCache;
4352 + import_notifyManager.notifyManager.batch(() => {
4353 + queryCache.findAll(filters).forEach((query) => {
4354 + queryCache.remove(query);
4355 + });
4356 + });
4357 + }
4358 + resetQueries(filters, options) {
4359 + const queryCache = this.#queryCache;
4360 + const refetchFilters = {
4361 + type: "active",
4362 + ...filters
4363 + };
4364 + return import_notifyManager.notifyManager.batch(() => {
4365 + queryCache.findAll(filters).forEach((query) => {
4366 + query.reset();
4367 + });
4368 + return this.refetchQueries(refetchFilters, options);
4369 + });
4370 + }
4371 + cancelQueries(filters = {}, cancelOptions = {}) {
4372 + const defaultedCancelOptions = { revert: true, ...cancelOptions };
4373 + const promises = import_notifyManager.notifyManager.batch(
4374 + () => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
4375 + );
4376 + return Promise.all(promises).then(import_utils.noop).catch(import_utils.noop);
4377 + }
4378 + invalidateQueries(filters = {}, options = {}) {
4379 + return import_notifyManager.notifyManager.batch(() => {
4380 + this.#queryCache.findAll(filters).forEach((query) => {
4381 + query.invalidate();
4382 + });
4383 + if (filters.refetchType === "none") {
4384 + return Promise.resolve();
4385 + }
4386 + const refetchFilters = {
4387 + ...filters,
4388 + type: filters.refetchType ?? filters.type ?? "active"
4389 + };
4390 + return this.refetchQueries(refetchFilters, options);
4391 + });
4392 + }
4393 + refetchQueries(filters = {}, options) {
4394 + const fetchOptions = {
4395 + ...options,
4396 + cancelRefetch: options?.cancelRefetch ?? true
4397 + };
4398 + const promises = import_notifyManager.notifyManager.batch(
4399 + () => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
4400 + let promise = query.fetch(void 0, fetchOptions);
4401 + if (!fetchOptions.throwOnError) {
4402 + promise = promise.catch(import_utils.noop);
4403 + }
4404 + return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
4405 + })
4406 + );
4407 + return Promise.all(promises).then(import_utils.noop);
4408 + }
4409 + fetchQuery(options) {
4410 + const defaultedOptions = this.defaultQueryOptions(options);
4411 + if (typeof defaultedOptions.retry === "undefined") {
4412 + defaultedOptions.retry = false;
4413 + }
4414 + const query = this.#queryCache.build(this, defaultedOptions);
4415 + return query.isStaleByTime(defaultedOptions.staleTime) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
4416 + }
4417 + prefetchQuery(options) {
4418 + return this.fetchQuery(options).then(import_utils.noop).catch(import_utils.noop);
4419 + }
4420 + fetchInfiniteQuery(options) {
4421 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)(options.pages);
4422 + return this.fetchQuery(options);
4423 + }
4424 + prefetchInfiniteQuery(options) {
4425 + return this.fetchInfiniteQuery(options).then(import_utils.noop).catch(import_utils.noop);
4426 + }
4427 + resumePausedMutations() {
4428 + return this.#mutationCache.resumePausedMutations();
4429 + }
4430 + getQueryCache() {
4431 + return this.#queryCache;
4432 + }
4433 + getMutationCache() {
4434 + return this.#mutationCache;
4435 + }
4436 + getDefaultOptions() {
4437 + return this.#defaultOptions;
4438 + }
4439 + setDefaultOptions(options) {
4440 + this.#defaultOptions = options;
4441 + }
4442 + setQueryDefaults(queryKey, options) {
4443 + this.#queryDefaults.set((0, import_utils.hashKey)(queryKey), {
4444 + queryKey,
4445 + defaultOptions: options
4446 + });
4447 + }
4448 + getQueryDefaults(queryKey) {
4449 + const defaults = [...this.#queryDefaults.values()];
4450 + let result = {};
4451 + defaults.forEach((queryDefault) => {
4452 + if ((0, import_utils.partialMatchKey)(queryKey, queryDefault.queryKey)) {
4453 + result = { ...result, ...queryDefault.defaultOptions };
4454 + }
4455 + });
4456 + return result;
4457 + }
4458 + setMutationDefaults(mutationKey, options) {
4459 + this.#mutationDefaults.set((0, import_utils.hashKey)(mutationKey), {
4460 + mutationKey,
4461 + defaultOptions: options
4462 + });
4463 + }
4464 + getMutationDefaults(mutationKey) {
4465 + const defaults = [...this.#mutationDefaults.values()];
4466 + let result = {};
4467 + defaults.forEach((queryDefault) => {
4468 + if ((0, import_utils.partialMatchKey)(mutationKey, queryDefault.mutationKey)) {
4469 + result = { ...result, ...queryDefault.defaultOptions };
4470 + }
4471 + });
4472 + return result;
4473 + }
4474 + defaultQueryOptions(options) {
4475 + if (options?._defaulted) {
4476 + return options;
4477 + }
4478 + const defaultedOptions = {
4479 + ...this.#defaultOptions.queries,
4480 + ...options?.queryKey && this.getQueryDefaults(options.queryKey),
4481 + ...options,
4482 + _defaulted: true
4483 + };
4484 + if (!defaultedOptions.queryHash) {
4485 + defaultedOptions.queryHash = (0, import_utils.hashQueryKeyByOptions)(
4486 + defaultedOptions.queryKey,
4487 + defaultedOptions
4488 + );
4489 + }
4490 + if (typeof defaultedOptions.refetchOnReconnect === "undefined") {
4491 + defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
4492 + }
4493 + if (typeof defaultedOptions.throwOnError === "undefined") {
4494 + defaultedOptions.throwOnError = !!defaultedOptions.suspense;
4495 + }
4496 + if (typeof defaultedOptions.networkMode === "undefined" && defaultedOptions.persister) {
4497 + defaultedOptions.networkMode = "offlineFirst";
4498 + }
4499 + return defaultedOptions;
4500 + }
4501 + defaultMutationOptions(options) {
4502 + if (options?._defaulted) {
4503 + return options;
4504 + }
4505 + return {
4506 + ...this.#defaultOptions.mutations,
4507 + ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),
4508 + ...options,
4509 + _defaulted: true
4510 + };
4511 + }
4512 + clear() {
4513 + this.#queryCache.clear();
4514 + this.#mutationCache.clear();
4515 + }
4516 +};
4517 +// Annotate the CommonJS export names for ESM import in node:
4518 +0 && (0);
4519 +//# sourceMappingURL=queryClient.cjs.map
4520 +
4521 +/***/ }),
4522 +
4523 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs":
4524 +/*!***************************************************************************!*\
4525 + !*** ../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs ***!
4526 + \***************************************************************************/
4527 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4528 +
4529 +"use strict";
4530 +
4531 +var __defProp = Object.defineProperty;
4532 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4533 +var __getOwnPropNames = Object.getOwnPropertyNames;
4534 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4535 +var __export = (target, all) => {
4536 + for (var name in all)
4537 + __defProp(target, name, { get: all[name], enumerable: true });
4538 +};
4539 +var __copyProps = (to, from, except, desc) => {
4540 + if (from && typeof from === "object" || typeof from === "function") {
4541 + for (let key of __getOwnPropNames(from))
4542 + if (!__hasOwnProp.call(to, key) && key !== except)
4543 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4544 + }
4545 + return to;
4546 +};
4547 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4548 +
4549 +// src/queryObserver.ts
4550 +var queryObserver_exports = {};
4551 +__export(queryObserver_exports, {
4552 + QueryObserver: () => QueryObserver
4553 +});
4554 +module.exports = __toCommonJS(queryObserver_exports);
4555 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4556 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4557 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
4558 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4559 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
4560 +var QueryObserver = class extends import_subscribable.Subscribable {
4561 + constructor(client, options) {
4562 + super();
4563 + this.#currentQuery = void 0;
4564 + this.#currentQueryInitialState = void 0;
4565 + this.#currentResult = void 0;
4566 + this.#trackedProps = /* @__PURE__ */ new Set();
4567 + this.#client = client;
4568 + this.options = options;
4569 + this.#selectError = null;
4570 + this.bindMethods();
4571 + this.setOptions(options);
4572 + }
4573 + #client;
4574 + #currentQuery;
4575 + #currentQueryInitialState;
4576 + #currentResult;
4577 + #currentResultState;
4578 + #currentResultOptions;
4579 + #selectError;
4580 + #selectFn;
4581 + #selectResult;
4582 + // This property keeps track of the last query with defined data.
4583 + // It will be used to pass the previous data and query to the placeholder function between renders.
4584 + #lastQueryWithDefinedData;
4585 + #staleTimeoutId;
4586 + #refetchIntervalId;
4587 + #currentRefetchInterval;
4588 + #trackedProps;
4589 + bindMethods() {
4590 + this.refetch = this.refetch.bind(this);
4591 + }
4592 + onSubscribe() {
4593 + if (this.listeners.size === 1) {
4594 + this.#currentQuery.addObserver(this);
4595 + if (shouldFetchOnMount(this.#currentQuery, this.options)) {
4596 + this.#executeFetch();
4597 + }
4598 + this.#updateTimers();
4599 + }
4600 + }
4601 + onUnsubscribe() {
4602 + if (!this.hasListeners()) {
4603 + this.destroy();
4604 + }
4605 + }
4606 + shouldFetchOnReconnect() {
4607 + return shouldFetchOn(
4608 + this.#currentQuery,
4609 + this.options,
4610 + this.options.refetchOnReconnect
4611 + );
4612 + }
4613 + shouldFetchOnWindowFocus() {
4614 + return shouldFetchOn(
4615 + this.#currentQuery,
4616 + this.options,
4617 + this.options.refetchOnWindowFocus
4618 + );
4619 + }
4620 + destroy() {
4621 + this.listeners = /* @__PURE__ */ new Set();
4622 + this.#clearStaleTimeout();
4623 + this.#clearRefetchInterval();
4624 + this.#currentQuery.removeObserver(this);
4625 + }
4626 + setOptions(options, notifyOptions) {
4627 + const prevOptions = this.options;
4628 + const prevQuery = this.#currentQuery;
4629 + this.options = this.#client.defaultQueryOptions(options);
4630 + if (!(0, import_utils.shallowEqualObjects)(prevOptions, this.options)) {
4631 + this.#client.getQueryCache().notify({
4632 + type: "observerOptionsUpdated",
4633 + query: this.#currentQuery,
4634 + observer: this
4635 + });
4636 + }
4637 + if (typeof this.options.enabled !== "undefined" && typeof this.options.enabled !== "boolean") {
4638 + throw new Error("Expected enabled to be a boolean");
4639 + }
4640 + if (!this.options.queryKey) {
4641 + this.options.queryKey = prevOptions.queryKey;
4642 + }
4643 + this.#updateQuery();
4644 + const mounted = this.hasListeners();
4645 + if (mounted && shouldFetchOptionally(
4646 + this.#currentQuery,
4647 + prevQuery,
4648 + this.options,
4649 + prevOptions
4650 + )) {
4651 + this.#executeFetch();
4652 + }
4653 + this.updateResult(notifyOptions);
4654 + if (mounted && (this.#currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || this.options.staleTime !== prevOptions.staleTime)) {
4655 + this.#updateStaleTimeout();
4656 + }
4657 + const nextRefetchInterval = this.#computeRefetchInterval();
4658 + if (mounted && (this.#currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || nextRefetchInterval !== this.#currentRefetchInterval)) {
4659 + this.#updateRefetchInterval(nextRefetchInterval);
4660 + }
4661 + }
4662 + getOptimisticResult(options) {
4663 + const query = this.#client.getQueryCache().build(this.#client, options);
4664 + const result = this.createResult(query, options);
4665 + if (shouldAssignObserverCurrentProperties(this, result)) {
4666 + this.#currentResult = result;
4667 + this.#currentResultOptions = this.options;
4668 + this.#currentResultState = this.#currentQuery.state;
4669 + }
4670 + return result;
4671 + }
4672 + getCurrentResult() {
4673 + return this.#currentResult;
4674 + }
4675 + trackResult(result) {
4676 + const trackedResult = {};
4677 + Object.keys(result).forEach((key) => {
4678 + Object.defineProperty(trackedResult, key, {
4679 + configurable: false,
4680 + enumerable: true,
4681 + get: () => {
4682 + this.#trackedProps.add(key);
4683 + return result[key];
4684 + }
4685 + });
4686 + });
4687 + return trackedResult;
4688 + }
4689 + getCurrentQuery() {
4690 + return this.#currentQuery;
4691 + }
4692 + refetch({ ...options } = {}) {
4693 + return this.fetch({
4694 + ...options
4695 + });
4696 + }
4697 + fetchOptimistic(options) {
4698 + const defaultedOptions = this.#client.defaultQueryOptions(options);
4699 + const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);
4700 + query.isFetchingOptimistic = true;
4701 + return query.fetch().then(() => this.createResult(query, defaultedOptions));
4702 + }
4703 + fetch(fetchOptions) {
4704 + return this.#executeFetch({
4705 + ...fetchOptions,
4706 + cancelRefetch: fetchOptions.cancelRefetch ?? true
4707 + }).then(() => {
4708 + this.updateResult();
4709 + return this.#currentResult;
4710 + });
4711 + }
4712 + #executeFetch(fetchOptions) {
4713 + this.#updateQuery();
4714 + let promise = this.#currentQuery.fetch(
4715 + this.options,
4716 + fetchOptions
4717 + );
4718 + if (!fetchOptions?.throwOnError) {
4719 + promise = promise.catch(import_utils.noop);
4720 + }
4721 + return promise;
4722 + }
4723 + #updateStaleTimeout() {
4724 + this.#clearStaleTimeout();
4725 + if (import_utils.isServer || this.#currentResult.isStale || !(0, import_utils.isValidTimeout)(this.options.staleTime)) {
4726 + return;
4727 + }
4728 + const time = (0, import_utils.timeUntilStale)(
4729 + this.#currentResult.dataUpdatedAt,
4730 + this.options.staleTime
4731 + );
4732 + const timeout = time + 1;
4733 + this.#staleTimeoutId = setTimeout(() => {
4734 + if (!this.#currentResult.isStale) {
4735 + this.updateResult();
4736 + }
4737 + }, timeout);
4738 + }
4739 + #computeRefetchInterval() {
4740 + return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;
4741 + }
4742 + #updateRefetchInterval(nextInterval) {
4743 + this.#clearRefetchInterval();
4744 + this.#currentRefetchInterval = nextInterval;
4745 + if (import_utils.isServer || this.options.enabled === false || !(0, import_utils.isValidTimeout)(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) {
4746 + return;
4747 + }
4748 + this.#refetchIntervalId = setInterval(() => {
4749 + if (this.options.refetchIntervalInBackground || import_focusManager.focusManager.isFocused()) {
4750 + this.#executeFetch();
4751 + }
4752 + }, this.#currentRefetchInterval);
4753 + }
4754 + #updateTimers() {
4755 + this.#updateStaleTimeout();
4756 + this.#updateRefetchInterval(this.#computeRefetchInterval());
4757 + }
4758 + #clearStaleTimeout() {
4759 + if (this.#staleTimeoutId) {
4760 + clearTimeout(this.#staleTimeoutId);
4761 + this.#staleTimeoutId = void 0;
4762 + }
4763 + }
4764 + #clearRefetchInterval() {
4765 + if (this.#refetchIntervalId) {
4766 + clearInterval(this.#refetchIntervalId);
4767 + this.#refetchIntervalId = void 0;
4768 + }
4769 + }
4770 + createResult(query, options) {
4771 + const prevQuery = this.#currentQuery;
4772 + const prevOptions = this.options;
4773 + const prevResult = this.#currentResult;
4774 + const prevResultState = this.#currentResultState;
4775 + const prevResultOptions = this.#currentResultOptions;
4776 + const queryChange = query !== prevQuery;
4777 + const queryInitialState = queryChange ? query.state : this.#currentQueryInitialState;
4778 + const { state } = query;
4779 + let { error, errorUpdatedAt, fetchStatus, status } = state;
4780 + let isPlaceholderData = false;
4781 + let data;
4782 + if (options._optimisticResults) {
4783 + const mounted = this.hasListeners();
4784 + const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
4785 + const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
4786 + if (fetchOnMount || fetchOptionally) {
4787 + fetchStatus = (0, import_retryer.canFetch)(query.options.networkMode) ? "fetching" : "paused";
4788 + if (!state.dataUpdatedAt) {
4789 + status = "pending";
4790 + }
4791 + }
4792 + if (options._optimisticResults === "isRestoring") {
4793 + fetchStatus = "idle";
4794 + }
4795 + }
4796 + if (options.select && typeof state.data !== "undefined") {
4797 + if (prevResult && state.data === prevResultState?.data && options.select === this.#selectFn) {
4798 + data = this.#selectResult;
4799 + } else {
4800 + try {
4801 + this.#selectFn = options.select;
4802 + data = options.select(state.data);
4803 + data = (0, import_utils.replaceData)(prevResult?.data, data, options);
4804 + this.#selectResult = data;
4805 + this.#selectError = null;
4806 + } catch (selectError) {
4807 + this.#selectError = selectError;
4808 + }
4809 + }
4810 + } else {
4811 + data = state.data;
4812 + }
4813 + if (typeof options.placeholderData !== "undefined" && typeof data === "undefined" && status === "pending") {
4814 + let placeholderData;
4815 + if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {
4816 + placeholderData = prevResult.data;
4817 + } else {
4818 + placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
4819 + this.#lastQueryWithDefinedData?.state.data,
4820 + this.#lastQueryWithDefinedData
4821 + ) : options.placeholderData;
4822 + if (options.select && typeof placeholderData !== "undefined") {
4823 + try {
4824 + placeholderData = options.select(placeholderData);
4825 + this.#selectError = null;
4826 + } catch (selectError) {
4827 + this.#selectError = selectError;
4828 + }
4829 + }
4830 + }
4831 + if (typeof placeholderData !== "undefined") {
4832 + status = "success";
4833 + data = (0, import_utils.replaceData)(
4834 + prevResult?.data,
4835 + placeholderData,
4836 + options
4837 + );
4838 + isPlaceholderData = true;
4839 + }
4840 + }
4841 + if (this.#selectError) {
4842 + error = this.#selectError;
4843 + data = this.#selectResult;
4844 + errorUpdatedAt = Date.now();
4845 + status = "error";
4846 + }
4847 + const isFetching = fetchStatus === "fetching";
4848 + const isPending = status === "pending";
4849 + const isError = status === "error";
4850 + const isLoading = isPending && isFetching;
4851 + const result = {
4852 + status,
4853 + fetchStatus,
4854 + isPending,
4855 + isSuccess: status === "success",
4856 + isError,
4857 + isInitialLoading: isLoading,
4858 + isLoading,
4859 + data,
4860 + dataUpdatedAt: state.dataUpdatedAt,
4861 + error,
4862 + errorUpdatedAt,
4863 + failureCount: state.fetchFailureCount,
4864 + failureReason: state.fetchFailureReason,
4865 + errorUpdateCount: state.errorUpdateCount,
4866 + isFetched: state.dataUpdateCount > 0 || state.errorUpdateCount > 0,
4867 + isFetchedAfterMount: state.dataUpdateCount > queryInitialState.dataUpdateCount || state.errorUpdateCount > queryInitialState.errorUpdateCount,
4868 + isFetching,
4869 + isRefetching: isFetching && !isPending,
4870 + isLoadingError: isError && state.dataUpdatedAt === 0,
4871 + isPaused: fetchStatus === "paused",
4872 + isPlaceholderData,
4873 + isRefetchError: isError && state.dataUpdatedAt !== 0,
4874 + isStale: isStale(query, options),
4875 + refetch: this.refetch
4876 + };
4877 + return result;
4878 + }
4879 + updateResult(notifyOptions) {
4880 + const prevResult = this.#currentResult;
4881 + const nextResult = this.createResult(this.#currentQuery, this.options);
4882 + this.#currentResultState = this.#currentQuery.state;
4883 + this.#currentResultOptions = this.options;
4884 + if ((0, import_utils.shallowEqualObjects)(nextResult, prevResult)) {
4885 + return;
4886 + }
4887 + if (this.#currentResultState.data !== void 0) {
4888 + this.#lastQueryWithDefinedData = this.#currentQuery;
4889 + }
4890 + this.#currentResult = nextResult;
4891 + const defaultNotifyOptions = {};
4892 + const shouldNotifyListeners = () => {
4893 + if (!prevResult) {
4894 + return true;
4895 + }
4896 + const { notifyOnChangeProps } = this.options;
4897 + const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
4898 + if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !this.#trackedProps.size) {
4899 + return true;
4900 + }
4901 + const includedProps = new Set(
4902 + notifyOnChangePropsValue ?? this.#trackedProps
4903 + );
4904 + if (this.options.throwOnError) {
4905 + includedProps.add("error");
4906 + }
4907 + return Object.keys(this.#currentResult).some((key) => {
4908 + const typedKey = key;
4909 + const changed = this.#currentResult[typedKey] !== prevResult[typedKey];
4910 + return changed && includedProps.has(typedKey);
4911 + });
4912 + };
4913 + if (notifyOptions?.listeners !== false && shouldNotifyListeners()) {
4914 + defaultNotifyOptions.listeners = true;
4915 + }
4916 + this.#notify({ ...defaultNotifyOptions, ...notifyOptions });
4917 + }
4918 + #updateQuery() {
4919 + const query = this.#client.getQueryCache().build(this.#client, this.options);
4920 + if (query === this.#currentQuery) {
4921 + return;
4922 + }
4923 + const prevQuery = this.#currentQuery;
4924 + this.#currentQuery = query;
4925 + this.#currentQueryInitialState = query.state;
4926 + if (this.hasListeners()) {
4927 + prevQuery?.removeObserver(this);
4928 + query.addObserver(this);
4929 + }
4930 + }
4931 + onQueryUpdate() {
4932 + this.updateResult();
4933 + if (this.hasListeners()) {
4934 + this.#updateTimers();
4935 + }
4936 + }
4937 + #notify(notifyOptions) {
4938 + import_notifyManager.notifyManager.batch(() => {
4939 + if (notifyOptions.listeners) {
4940 + this.listeners.forEach((listener) => {
4941 + listener(this.#currentResult);
4942 + });
4943 + }
4944 + this.#client.getQueryCache().notify({
4945 + query: this.#currentQuery,
4946 + type: "observerResultsUpdated"
4947 + });
4948 + });
4949 + }
4950 +};
4951 +function shouldLoadOnMount(query, options) {
4952 + return options.enabled !== false && !query.state.dataUpdatedAt && !(query.state.status === "error" && options.retryOnMount === false);
4953 +}
4954 +function shouldFetchOnMount(query, options) {
4955 + return shouldLoadOnMount(query, options) || query.state.dataUpdatedAt > 0 && shouldFetchOn(query, options, options.refetchOnMount);
4956 +}
4957 +function shouldFetchOn(query, options, field) {
4958 + if (options.enabled !== false) {
4959 + const value = typeof field === "function" ? field(query) : field;
4960 + return value === "always" || value !== false && isStale(query, options);
4961 + }
4962 + return false;
4963 +}
4964 +function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
4965 + return options.enabled !== false && (query !== prevQuery || prevOptions.enabled === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
4966 +}
4967 +function isStale(query, options) {
4968 + return query.isStaleByTime(options.staleTime);
4969 +}
4970 +function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
4971 + if (!(0, import_utils.shallowEqualObjects)(observer.getCurrentResult(), optimisticResult)) {
4972 + return true;
4973 + }
4974 + return false;
4975 +}
4976 +// Annotate the CommonJS export names for ESM import in node:
4977 +0 && (0);
4978 +//# sourceMappingURL=queryObserver.cjs.map
4979 +
4980 +/***/ }),
4981 +
4982 +/***/ "../node_modules/@tanstack/query-core/build/modern/removable.cjs":
4983 +/*!***********************************************************************!*\
4984 + !*** ../node_modules/@tanstack/query-core/build/modern/removable.cjs ***!
4985 + \***********************************************************************/
4986 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4987 +
4988 +"use strict";
4989 +
4990 +var __defProp = Object.defineProperty;
4991 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4992 +var __getOwnPropNames = Object.getOwnPropertyNames;
4993 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4994 +var __export = (target, all) => {
4995 + for (var name in all)
4996 + __defProp(target, name, { get: all[name], enumerable: true });
4997 +};
4998 +var __copyProps = (to, from, except, desc) => {
4999 + if (from && typeof from === "object" || typeof from === "function") {
5000 + for (let key of __getOwnPropNames(from))
5001 + if (!__hasOwnProp.call(to, key) && key !== except)
5002 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5003 + }
5004 + return to;
5005 +};
5006 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5007 +
5008 +// src/removable.ts
5009 +var removable_exports = {};
5010 +__export(removable_exports, {
5011 + Removable: () => Removable
5012 +});
5013 +module.exports = __toCommonJS(removable_exports);
5014 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5015 +var Removable = class {
5016 + #gcTimeout;
5017 + destroy() {
5018 + this.clearGcTimeout();
5019 + }
5020 + scheduleGc() {
5021 + this.clearGcTimeout();
5022 + if ((0, import_utils.isValidTimeout)(this.gcTime)) {
5023 + this.#gcTimeout = setTimeout(() => {
5024 + this.optionalRemove();
5025 + }, this.gcTime);
5026 + }
5027 + }
5028 + updateGcTime(newGcTime) {
5029 + this.gcTime = Math.max(
5030 + this.gcTime || 0,
5031 + newGcTime ?? (import_utils.isServer ? Infinity : 5 * 60 * 1e3)
5032 + );
5033 + }
5034 + clearGcTimeout() {
5035 + if (this.#gcTimeout) {
5036 + clearTimeout(this.#gcTimeout);
5037 + this.#gcTimeout = void 0;
5038 + }
5039 + }
5040 +};
5041 +// Annotate the CommonJS export names for ESM import in node:
5042 +0 && (0);
5043 +//# sourceMappingURL=removable.cjs.map
5044 +
5045 +/***/ }),
5046 +
5047 +/***/ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs":
5048 +/*!*********************************************************************!*\
5049 + !*** ../node_modules/@tanstack/query-core/build/modern/retryer.cjs ***!
5050 + \*********************************************************************/
5051 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5052 +
5053 +"use strict";
5054 +
5055 +var __defProp = Object.defineProperty;
5056 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5057 +var __getOwnPropNames = Object.getOwnPropertyNames;
5058 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5059 +var __export = (target, all) => {
5060 + for (var name in all)
5061 + __defProp(target, name, { get: all[name], enumerable: true });
5062 +};
5063 +var __copyProps = (to, from, except, desc) => {
5064 + if (from && typeof from === "object" || typeof from === "function") {
5065 + for (let key of __getOwnPropNames(from))
5066 + if (!__hasOwnProp.call(to, key) && key !== except)
5067 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5068 + }
5069 + return to;
5070 +};
5071 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5072 +
5073 +// src/retryer.ts
5074 +var retryer_exports = {};
5075 +__export(retryer_exports, {
5076 + CancelledError: () => CancelledError,
5077 + canFetch: () => canFetch,
5078 + createRetryer: () => createRetryer,
5079 + isCancelledError: () => isCancelledError
5080 +});
5081 +module.exports = __toCommonJS(retryer_exports);
5082 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
5083 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
5084 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5085 +function defaultRetryDelay(failureCount) {
5086 + return Math.min(1e3 * 2 ** failureCount, 3e4);
5087 +}
5088 +function canFetch(networkMode) {
5089 + return (networkMode ?? "online") === "online" ? import_onlineManager.onlineManager.isOnline() : true;
5090 +}
5091 +var CancelledError = class {
5092 + constructor(options) {
5093 + this.revert = options?.revert;
5094 + this.silent = options?.silent;
5095 + }
5096 +};
5097 +function isCancelledError(value) {
5098 + return value instanceof CancelledError;
5099 +}
5100 +function createRetryer(config) {
5101 + let isRetryCancelled = false;
5102 + let failureCount = 0;
5103 + let isResolved = false;
5104 + let continueFn;
5105 + let promiseResolve;
5106 + let promiseReject;
5107 + const promise = new Promise((outerResolve, outerReject) => {
5108 + promiseResolve = outerResolve;
5109 + promiseReject = outerReject;
5110 + });
5111 + const cancel = (cancelOptions) => {
5112 + if (!isResolved) {
5113 + reject(new CancelledError(cancelOptions));
5114 + config.abort?.();
5115 + }
5116 + };
5117 + const cancelRetry = () => {
5118 + isRetryCancelled = true;
5119 + };
5120 + const continueRetry = () => {
5121 + isRetryCancelled = false;
5122 + };
5123 + const shouldPause = () => !import_focusManager.focusManager.isFocused() || config.networkMode !== "always" && !import_onlineManager.onlineManager.isOnline();
5124 + const resolve = (value) => {
5125 + if (!isResolved) {
5126 + isResolved = true;
5127 + config.onSuccess?.(value);
5128 + continueFn?.();
5129 + promiseResolve(value);
5130 + }
5131 + };
5132 + const reject = (value) => {
5133 + if (!isResolved) {
5134 + isResolved = true;
5135 + config.onError?.(value);
5136 + continueFn?.();
5137 + promiseReject(value);
5138 + }
5139 + };
5140 + const pause = () => {
5141 + return new Promise((continueResolve) => {
5142 + continueFn = (value) => {
5143 + const canContinue = isResolved || !shouldPause();
5144 + if (canContinue) {
5145 + continueResolve(value);
5146 + }
5147 + return canContinue;
5148 + };
5149 + config.onPause?.();
5150 + }).then(() => {
5151 + continueFn = void 0;
5152 + if (!isResolved) {
5153 + config.onContinue?.();
5154 + }
5155 + });
5156 + };
5157 + const run = () => {
5158 + if (isResolved) {
5159 + return;
5160 + }
5161 + let promiseOrValue;
5162 + try {
5163 + promiseOrValue = config.fn();
5164 + } catch (error) {
5165 + promiseOrValue = Promise.reject(error);
5166 + }
5167 + Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
5168 + if (isResolved) {
5169 + return;
5170 + }
5171 + const retry = config.retry ?? (import_utils.isServer ? 0 : 3);
5172 + const retryDelay = config.retryDelay ?? defaultRetryDelay;
5173 + const delay = typeof retryDelay === "function" ? retryDelay(failureCount, error) : retryDelay;
5174 + const shouldRetry = retry === true || typeof retry === "number" && failureCount < retry || typeof retry === "function" && retry(failureCount, error);
5175 + if (isRetryCancelled || !shouldRetry) {
5176 + reject(error);
5177 + return;
5178 + }
5179 + failureCount++;
5180 + config.onFail?.(failureCount, error);
5181 + (0, import_utils.sleep)(delay).then(() => {
5182 + if (shouldPause()) {
5183 + return pause();
5184 + }
5185 + return;
5186 + }).then(() => {
5187 + if (isRetryCancelled) {
5188 + reject(error);
5189 + } else {
5190 + run();
5191 + }
5192 + });
5193 + });
5194 + };
5195 + if (canFetch(config.networkMode)) {
5196 + run();
5197 + } else {
5198 + pause().then(run);
5199 + }
5200 + return {
5201 + promise,
5202 + cancel,
5203 + continue: () => {
5204 + const didContinue = continueFn?.();
5205 + return didContinue ? promise : Promise.resolve();
5206 + },
5207 + cancelRetry,
5208 + continueRetry
5209 + };
5210 +}
5211 +// Annotate the CommonJS export names for ESM import in node:
5212 +0 && (0);
5213 +//# sourceMappingURL=retryer.cjs.map
5214 +
5215 +/***/ }),
5216 +
5217 +/***/ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs":
5218 +/*!**************************************************************************!*\
5219 + !*** ../node_modules/@tanstack/query-core/build/modern/subscribable.cjs ***!
5220 + \**************************************************************************/
5221 +/***/ ((module) => {
5222 +
5223 +"use strict";
5224 +
5225 +var __defProp = Object.defineProperty;
5226 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5227 +var __getOwnPropNames = Object.getOwnPropertyNames;
5228 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5229 +var __export = (target, all) => {
5230 + for (var name in all)
5231 + __defProp(target, name, { get: all[name], enumerable: true });
5232 +};
5233 +var __copyProps = (to, from, except, desc) => {
5234 + if (from && typeof from === "object" || typeof from === "function") {
5235 + for (let key of __getOwnPropNames(from))
5236 + if (!__hasOwnProp.call(to, key) && key !== except)
5237 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5238 + }
5239 + return to;
5240 +};
5241 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5242 +
5243 +// src/subscribable.ts
5244 +var subscribable_exports = {};
5245 +__export(subscribable_exports, {
5246 + Subscribable: () => Subscribable
5247 +});
5248 +module.exports = __toCommonJS(subscribable_exports);
5249 +var Subscribable = class {
5250 + constructor() {
5251 + this.listeners = /* @__PURE__ */ new Set();
5252 + this.subscribe = this.subscribe.bind(this);
5253 + }
5254 + subscribe(listener) {
5255 + this.listeners.add(listener);
5256 + this.onSubscribe();
5257 + return () => {
5258 + this.listeners.delete(listener);
5259 + this.onUnsubscribe();
5260 + };
5261 + }
5262 + hasListeners() {
5263 + return this.listeners.size > 0;
5264 + }
5265 + onSubscribe() {
5266 + }
5267 + onUnsubscribe() {
5268 + }
5269 +};
5270 +// Annotate the CommonJS export names for ESM import in node:
5271 +0 && (0);
5272 +//# sourceMappingURL=subscribable.cjs.map
5273 +
5274 +/***/ }),
5275 +
5276 +/***/ "../node_modules/@tanstack/query-core/build/modern/types.cjs":
5277 +/*!*******************************************************************!*\
5278 + !*** ../node_modules/@tanstack/query-core/build/modern/types.cjs ***!
5279 + \*******************************************************************/
5280 +/***/ ((module) => {
5281 +
5282 +"use strict";
5283 +
5284 +var __defProp = Object.defineProperty;
5285 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5286 +var __getOwnPropNames = Object.getOwnPropertyNames;
5287 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5288 +var __copyProps = (to, from, except, desc) => {
5289 + if (from && typeof from === "object" || typeof from === "function") {
5290 + for (let key of __getOwnPropNames(from))
5291 + if (!__hasOwnProp.call(to, key) && key !== except)
5292 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5293 + }
5294 + return to;
5295 +};
5296 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5297 +
5298 +// src/types.ts
5299 +var types_exports = {};
5300 +module.exports = __toCommonJS(types_exports);
5301 +//# sourceMappingURL=types.cjs.map
5302 +
5303 +/***/ }),
5304 +
5305 +/***/ "../node_modules/@tanstack/query-core/build/modern/utils.cjs":
5306 +/*!*******************************************************************!*\
5307 + !*** ../node_modules/@tanstack/query-core/build/modern/utils.cjs ***!
5308 + \*******************************************************************/
5309 +/***/ ((module) => {
5310 +
5311 +"use strict";
5312 +
5313 +var __defProp = Object.defineProperty;
5314 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5315 +var __getOwnPropNames = Object.getOwnPropertyNames;
5316 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5317 +var __export = (target, all) => {
5318 + for (var name in all)
5319 + __defProp(target, name, { get: all[name], enumerable: true });
5320 +};
5321 +var __copyProps = (to, from, except, desc) => {
5322 + if (from && typeof from === "object" || typeof from === "function") {
5323 + for (let key of __getOwnPropNames(from))
5324 + if (!__hasOwnProp.call(to, key) && key !== except)
5325 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5326 + }
5327 + return to;
5328 +};
5329 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5330 +
5331 +// src/utils.ts
5332 +var utils_exports = {};
5333 +__export(utils_exports, {
5334 + addToEnd: () => addToEnd,
5335 + addToStart: () => addToStart,
5336 + functionalUpdate: () => functionalUpdate,
5337 + hashKey: () => hashKey,
5338 + hashQueryKeyByOptions: () => hashQueryKeyByOptions,
5339 + isPlainArray: () => isPlainArray,
5340 + isPlainObject: () => isPlainObject,
5341 + isServer: () => isServer,
5342 + isValidTimeout: () => isValidTimeout,
5343 + keepPreviousData: () => keepPreviousData,
5344 + matchMutation: () => matchMutation,
5345 + matchQuery: () => matchQuery,
5346 + noop: () => noop,
5347 + partialMatchKey: () => partialMatchKey,
5348 + replaceData: () => replaceData,
5349 + replaceEqualDeep: () => replaceEqualDeep,
5350 + scheduleMicrotask: () => scheduleMicrotask,
5351 + shallowEqualObjects: () => shallowEqualObjects,
5352 + sleep: () => sleep,
5353 + timeUntilStale: () => timeUntilStale
5354 +});
5355 +module.exports = __toCommonJS(utils_exports);
5356 +var isServer = typeof window === "undefined" || "Deno" in window;
5357 +function noop() {
5358 + return void 0;
5359 +}
5360 +function functionalUpdate(updater, input) {
5361 + return typeof updater === "function" ? updater(input) : updater;
5362 +}
5363 +function isValidTimeout(value) {
5364 + return typeof value === "number" && value >= 0 && value !== Infinity;
5365 +}
5366 +function timeUntilStale(updatedAt, staleTime) {
5367 + return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
5368 +}
5369 +function matchQuery(filters, query) {
5370 + const {
5371 + type = "all",
5372 + exact,
5373 + fetchStatus,
5374 + predicate,
5375 + queryKey,
5376 + stale
5377 + } = filters;
5378 + if (queryKey) {
5379 + if (exact) {
5380 + if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {
5381 + return false;
5382 + }
5383 + } else if (!partialMatchKey(query.queryKey, queryKey)) {
5384 + return false;
5385 + }
5386 + }
5387 + if (type !== "all") {
5388 + const isActive = query.isActive();
5389 + if (type === "active" && !isActive) {
5390 + return false;
5391 + }
5392 + if (type === "inactive" && isActive) {
5393 + return false;
5394 + }
5395 + }
5396 + if (typeof stale === "boolean" && query.isStale() !== stale) {
5397 + return false;
5398 + }
5399 + if (typeof fetchStatus !== "undefined" && fetchStatus !== query.state.fetchStatus) {
5400 + return false;
5401 + }
5402 + if (predicate && !predicate(query)) {
5403 + return false;
5404 + }
5405 + return true;
5406 +}
5407 +function matchMutation(filters, mutation) {
5408 + const { exact, status, predicate, mutationKey } = filters;
5409 + if (mutationKey) {
5410 + if (!mutation.options.mutationKey) {
5411 + return false;
5412 + }
5413 + if (exact) {
5414 + if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {
5415 + return false;
5416 + }
5417 + } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {
5418 + return false;
5419 + }
5420 + }
5421 + if (status && mutation.state.status !== status) {
5422 + return false;
5423 + }
5424 + if (predicate && !predicate(mutation)) {
5425 + return false;
5426 + }
5427 + return true;
5428 +}
5429 +function hashQueryKeyByOptions(queryKey, options) {
5430 + const hashFn = options?.queryKeyHashFn || hashKey;
5431 + return hashFn(queryKey);
5432 +}
5433 +function hashKey(queryKey) {
5434 + return JSON.stringify(
5435 + queryKey,
5436 + (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
5437 + result[key] = val[key];
5438 + return result;
5439 + }, {}) : val
5440 + );
5441 +}
5442 +function partialMatchKey(a, b) {
5443 + if (a === b) {
5444 + return true;
5445 + }
5446 + if (typeof a !== typeof b) {
5447 + return false;
5448 + }
5449 + if (a && b && typeof a === "object" && typeof b === "object") {
5450 + return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
5451 + }
5452 + return false;
5453 +}
5454 +function replaceEqualDeep(a, b) {
5455 + if (a === b) {
5456 + return a;
5457 + }
5458 + const array = isPlainArray(a) && isPlainArray(b);
5459 + if (array || isPlainObject(a) && isPlainObject(b)) {
5460 + const aSize = array ? a.length : Object.keys(a).length;
5461 + const bItems = array ? b : Object.keys(b);
5462 + const bSize = bItems.length;
5463 + const copy = array ? [] : {};
5464 + let equalItems = 0;
5465 + for (let i = 0; i < bSize; i++) {
5466 + const key = array ? i : bItems[i];
5467 + copy[key] = replaceEqualDeep(a[key], b[key]);
5468 + if (copy[key] === a[key]) {
5469 + equalItems++;
5470 + }
5471 + }
5472 + return aSize === bSize && equalItems === aSize ? a : copy;
5473 + }
5474 + return b;
5475 +}
5476 +function shallowEqualObjects(a, b) {
5477 + if (a && !b || b && !a) {
5478 + return false;
5479 + }
5480 + for (const key in a) {
5481 + if (a[key] !== b[key]) {
5482 + return false;
5483 + }
5484 + }
5485 + return true;
5486 +}
5487 +function isPlainArray(value) {
5488 + return Array.isArray(value) && value.length === Object.keys(value).length;
5489 +}
5490 +function isPlainObject(o) {
5491 + if (!hasObjectPrototype(o)) {
5492 + return false;
5493 + }
5494 + const ctor = o.constructor;
5495 + if (typeof ctor === "undefined") {
5496 + return true;
5497 + }
5498 + const prot = ctor.prototype;
5499 + if (!hasObjectPrototype(prot)) {
5500 + return false;
5501 + }
5502 + if (!prot.hasOwnProperty("isPrototypeOf")) {
5503 + return false;
5504 + }
5505 + return true;
5506 +}
5507 +function hasObjectPrototype(o) {
5508 + return Object.prototype.toString.call(o) === "[object Object]";
5509 +}
5510 +function sleep(timeout) {
5511 + return new Promise((resolve) => {
5512 + setTimeout(resolve, timeout);
5513 + });
5514 +}
5515 +function scheduleMicrotask(callback) {
5516 + sleep(0).then(callback);
5517 +}
5518 +function replaceData(prevData, data, options) {
5519 + if (typeof options.structuralSharing === "function") {
5520 + return options.structuralSharing(prevData, data);
5521 + } else if (options.structuralSharing !== false) {
5522 + return replaceEqualDeep(prevData, data);
5523 + }
5524 + return data;
5525 +}
5526 +function keepPreviousData(previousData) {
5527 + return previousData;
5528 +}
5529 +function addToEnd(items, item, max = 0) {
5530 + const newItems = [...items, item];
5531 + return max && newItems.length > max ? newItems.slice(1) : newItems;
5532 +}
5533 +function addToStart(items, item, max = 0) {
5534 + const newItems = [item, ...items];
5535 + return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
5536 +}
5537 +// Annotate the CommonJS export names for ESM import in node:
5538 +0 && (0);
5539 +//# sourceMappingURL=utils.cjs.map
5540 +
5541 +/***/ }),
5542 +
5543 +/***/ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs":
5544 +/*!********************************************************************************!*\
5545 + !*** ../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs ***!
5546 + \********************************************************************************/
5547 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5548 +
5549 +"use strict";
5550 +
5551 +"use client";
5552 +var __create = Object.create;
5553 +var __defProp = Object.defineProperty;
5554 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5555 +var __getOwnPropNames = Object.getOwnPropertyNames;
5556 +var __getProtoOf = Object.getPrototypeOf;
5557 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5558 +var __export = (target, all) => {
5559 + for (var name in all)
5560 + __defProp(target, name, { get: all[name], enumerable: true });
5561 +};
5562 +var __copyProps = (to, from, except, desc) => {
5563 + if (from && typeof from === "object" || typeof from === "function") {
5564 + for (let key of __getOwnPropNames(from))
5565 + if (!__hasOwnProp.call(to, key) && key !== except)
5566 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5567 + }
5568 + return to;
5569 +};
5570 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5571 + // If the importer is in node compatibility mode or this is not an ESM
5572 + // file that has been converted to a CommonJS file using a Babel-
5573 + // compatible transform (i.e. "__esModule" has not been set), then set
5574 + // "default" to the CommonJS "module.exports" for node compatibility.
5575 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5576 + mod
5577 +));
5578 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5579 +
5580 +// src/HydrationBoundary.tsx
5581 +var HydrationBoundary_exports = {};
5582 +__export(HydrationBoundary_exports, {
5583 + HydrationBoundary: () => HydrationBoundary
5584 +});
5585 +module.exports = __toCommonJS(HydrationBoundary_exports);
5586 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5587 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
5588 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
5589 +var HydrationBoundary = ({
5590 + children,
5591 + options = {},
5592 + state,
5593 + queryClient
5594 +}) => {
5595 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
5596 + const [hydrationQueue, setHydrationQueue] = React.useState();
5597 + const optionsRef = React.useRef(options);
5598 + optionsRef.current = options;
5599 + React.useMemo(() => {
5600 + if (state) {
5601 + if (typeof state !== "object") {
5602 + return;
5603 + }
5604 + const queryCache = client.getQueryCache();
5605 + const queries = state.queries || [];
5606 + const newQueries = [];
5607 + const existingQueries = [];
5608 + for (const dehydratedQuery of queries) {
5609 + const existingQuery = queryCache.get(dehydratedQuery.queryHash);
5610 + if (!existingQuery) {
5611 + newQueries.push(dehydratedQuery);
5612 + } else {
5613 + const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt;
5614 + const queryAlreadyQueued = hydrationQueue?.find(
5615 + (query) => query.queryHash === dehydratedQuery.queryHash
5616 + );
5617 + if (hydrationIsNewer && (!queryAlreadyQueued || dehydratedQuery.state.dataUpdatedAt > queryAlreadyQueued.state.dataUpdatedAt)) {
5618 + existingQueries.push(dehydratedQuery);
5619 + }
5620 + }
5621 + }
5622 + if (newQueries.length > 0) {
5623 + (0, import_query_core.hydrate)(client, { queries: newQueries }, optionsRef.current);
5624 + }
5625 + if (existingQueries.length > 0) {
5626 + setHydrationQueue(
5627 + (prev) => prev ? [...prev, ...existingQueries] : existingQueries
5628 + );
5629 + }
5630 + }
5631 + }, [client, hydrationQueue, state]);
5632 + React.useEffect(() => {
5633 + if (hydrationQueue) {
5634 + (0, import_query_core.hydrate)(client, { queries: hydrationQueue }, optionsRef.current);
5635 + setHydrationQueue(void 0);
5636 + }
5637 + }, [client, hydrationQueue]);
5638 + return children;
5639 +};
5640 +// Annotate the CommonJS export names for ESM import in node:
5641 +0 && (0);
5642 +//# sourceMappingURL=HydrationBoundary.cjs.map
5643 +
5644 +/***/ }),
5645 +
5646 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs":
5647 +/*!**********************************************************************************!*\
5648 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs ***!
5649 + \**********************************************************************************/
5650 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5651 +
5652 +"use strict";
5653 +
5654 +"use client";
5655 +var __create = Object.create;
5656 +var __defProp = Object.defineProperty;
5657 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5658 +var __getOwnPropNames = Object.getOwnPropertyNames;
5659 +var __getProtoOf = Object.getPrototypeOf;
5660 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5661 +var __export = (target, all) => {
5662 + for (var name in all)
5663 + __defProp(target, name, { get: all[name], enumerable: true });
5664 +};
5665 +var __copyProps = (to, from, except, desc) => {
5666 + if (from && typeof from === "object" || typeof from === "function") {
5667 + for (let key of __getOwnPropNames(from))
5668 + if (!__hasOwnProp.call(to, key) && key !== except)
5669 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5670 + }
5671 + return to;
5672 +};
5673 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5674 + // If the importer is in node compatibility mode or this is not an ESM
5675 + // file that has been converted to a CommonJS file using a Babel-
5676 + // compatible transform (i.e. "__esModule" has not been set), then set
5677 + // "default" to the CommonJS "module.exports" for node compatibility.
5678 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5679 + mod
5680 +));
5681 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5682 +
5683 +// src/QueryClientProvider.tsx
5684 +var QueryClientProvider_exports = {};
5685 +__export(QueryClientProvider_exports, {
5686 + QueryClientContext: () => QueryClientContext,
5687 + QueryClientProvider: () => QueryClientProvider,
5688 + useQueryClient: () => useQueryClient
5689 +});
5690 +module.exports = __toCommonJS(QueryClientProvider_exports);
5691 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5692 +var QueryClientContext = React.createContext(
5693 + void 0
5694 +);
5695 +var useQueryClient = (queryClient) => {
5696 + const client = React.useContext(QueryClientContext);
5697 + if (queryClient) {
5698 + return queryClient;
5699 + }
5700 + if (!client) {
5701 + throw new Error("No QueryClient set, use QueryClientProvider to set one");
5702 + }
5703 + return client;
5704 +};
5705 +var QueryClientProvider = ({
5706 + client,
5707 + children
5708 +}) => {
5709 + React.useEffect(() => {
5710 + client.mount();
5711 + return () => {
5712 + client.unmount();
5713 + };
5714 + }, [client]);
5715 + return /* @__PURE__ */ React.createElement(QueryClientContext.Provider, { value: client }, children);
5716 +};
5717 +// Annotate the CommonJS export names for ESM import in node:
5718 +0 && (0);
5719 +//# sourceMappingURL=QueryClientProvider.cjs.map
5720 +
5721 +/***/ }),
5722 +
5723 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs":
5724 +/*!**************************************************************************************!*\
5725 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs ***!
5726 + \**************************************************************************************/
5727 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5728 +
5729 +"use strict";
5730 +
5731 +"use client";
5732 +var __create = Object.create;
5733 +var __defProp = Object.defineProperty;
5734 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5735 +var __getOwnPropNames = Object.getOwnPropertyNames;
5736 +var __getProtoOf = Object.getPrototypeOf;
5737 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5738 +var __export = (target, all) => {
5739 + for (var name in all)
5740 + __defProp(target, name, { get: all[name], enumerable: true });
5741 +};
5742 +var __copyProps = (to, from, except, desc) => {
5743 + if (from && typeof from === "object" || typeof from === "function") {
5744 + for (let key of __getOwnPropNames(from))
5745 + if (!__hasOwnProp.call(to, key) && key !== except)
5746 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5747 + }
5748 + return to;
5749 +};
5750 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5751 + // If the importer is in node compatibility mode or this is not an ESM
5752 + // file that has been converted to a CommonJS file using a Babel-
5753 + // compatible transform (i.e. "__esModule" has not been set), then set
5754 + // "default" to the CommonJS "module.exports" for node compatibility.
5755 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5756 + mod
5757 +));
5758 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5759 +
5760 +// src/QueryErrorResetBoundary.tsx
5761 +var QueryErrorResetBoundary_exports = {};
5762 +__export(QueryErrorResetBoundary_exports, {
5763 + QueryErrorResetBoundary: () => QueryErrorResetBoundary,
5764 + useQueryErrorResetBoundary: () => useQueryErrorResetBoundary
5765 +});
5766 +module.exports = __toCommonJS(QueryErrorResetBoundary_exports);
5767 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5768 +function createValue() {
5769 + let isReset = false;
5770 + return {
5771 + clearReset: () => {
5772 + isReset = false;
5773 + },
5774 + reset: () => {
5775 + isReset = true;
5776 + },
5777 + isReset: () => {
5778 + return isReset;
5779 + }
5780 + };
5781 +}
5782 +var QueryErrorResetBoundaryContext = React.createContext(createValue());
5783 +var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);
5784 +var QueryErrorResetBoundary = ({
5785 + children
5786 +}) => {
5787 + const [value] = React.useState(() => createValue());
5788 + return /* @__PURE__ */ React.createElement(QueryErrorResetBoundaryContext.Provider, { value }, typeof children === "function" ? children(value) : children);
5789 +};
5790 +// Annotate the CommonJS export names for ESM import in node:
5791 +0 && (0);
5792 +//# sourceMappingURL=QueryErrorResetBoundary.cjs.map
5793 +
5794 +/***/ }),
5795 +
5796 +/***/ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs":
5797 +/*!*********************************************************************************!*\
5798 + !*** ../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs ***!
5799 + \*********************************************************************************/
5800 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5801 +
5802 +"use strict";
5803 +
5804 +"use client";
5805 +var __create = Object.create;
5806 +var __defProp = Object.defineProperty;
5807 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5808 +var __getOwnPropNames = Object.getOwnPropertyNames;
5809 +var __getProtoOf = Object.getPrototypeOf;
5810 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5811 +var __export = (target, all) => {
5812 + for (var name in all)
5813 + __defProp(target, name, { get: all[name], enumerable: true });
5814 +};
5815 +var __copyProps = (to, from, except, desc) => {
5816 + if (from && typeof from === "object" || typeof from === "function") {
5817 + for (let key of __getOwnPropNames(from))
5818 + if (!__hasOwnProp.call(to, key) && key !== except)
5819 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5820 + }
5821 + return to;
5822 +};
5823 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5824 + // If the importer is in node compatibility mode or this is not an ESM
5825 + // file that has been converted to a CommonJS file using a Babel-
5826 + // compatible transform (i.e. "__esModule" has not been set), then set
5827 + // "default" to the CommonJS "module.exports" for node compatibility.
5828 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5829 + mod
5830 +));
5831 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5832 +
5833 +// src/errorBoundaryUtils.ts
5834 +var errorBoundaryUtils_exports = {};
5835 +__export(errorBoundaryUtils_exports, {
5836 + ensurePreventErrorBoundaryRetry: () => ensurePreventErrorBoundaryRetry,
5837 + getHasError: () => getHasError,
5838 + useClearResetErrorBoundary: () => useClearResetErrorBoundary
5839 +});
5840 +module.exports = __toCommonJS(errorBoundaryUtils_exports);
5841 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5842 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
5843 +var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
5844 + if (options.suspense || options.throwOnError) {
5845 + if (!errorResetBoundary.isReset()) {
5846 + options.retryOnMount = false;
5847 + }
5848 + }
5849 +};
5850 +var useClearResetErrorBoundary = (errorResetBoundary) => {
5851 + React.useEffect(() => {
5852 + errorResetBoundary.clearReset();
5853 + }, [errorResetBoundary]);
5854 +};
5855 +var getHasError = ({
5856 + result,
5857 + errorResetBoundary,
5858 + throwOnError,
5859 + query
5860 +}) => {
5861 + return result.isError && !errorResetBoundary.isReset() && !result.isFetching && (0, import_utils.shouldThrowError)(throwOnError, [result.error, query]);
5862 +};
5863 +// Annotate the CommonJS export names for ESM import in node:
5864 +0 && (0);
5865 +//# sourceMappingURL=errorBoundaryUtils.cjs.map
5866 +
5867 +/***/ }),
5868 +
5869 +/***/ "../node_modules/@tanstack/react-query/build/modern/index.cjs":
5870 +/*!********************************************************************!*\
5871 + !*** ../node_modules/@tanstack/react-query/build/modern/index.cjs ***!
5872 + \********************************************************************/
5873 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5874 +
5875 +"use strict";
5876 +
5877 +var __defProp = Object.defineProperty;
5878 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5879 +var __getOwnPropNames = Object.getOwnPropertyNames;
5880 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5881 +var __export = (target, all) => {
5882 + for (var name in all)
5883 + __defProp(target, name, { get: all[name], enumerable: true });
5884 +};
5885 +var __copyProps = (to, from, except, desc) => {
5886 + if (from && typeof from === "object" || typeof from === "function") {
5887 + for (let key of __getOwnPropNames(from))
5888 + if (!__hasOwnProp.call(to, key) && key !== except)
5889 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5890 + }
5891 + return to;
5892 +};
5893 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
5894 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5895 +
5896 +// src/index.ts
5897 +var src_exports = {};
5898 +__export(src_exports, {
5899 + HydrationBoundary: () => import_HydrationBoundary.HydrationBoundary,
5900 + IsRestoringProvider: () => import_isRestoring.IsRestoringProvider,
5901 + QueryClientContext: () => import_QueryClientProvider.QueryClientContext,
5902 + QueryClientProvider: () => import_QueryClientProvider.QueryClientProvider,
5903 + QueryErrorResetBoundary: () => import_QueryErrorResetBoundary.QueryErrorResetBoundary,
5904 + infiniteQueryOptions: () => import_infiniteQueryOptions.infiniteQueryOptions,
5905 + queryOptions: () => import_queryOptions.queryOptions,
5906 + useInfiniteQuery: () => import_useInfiniteQuery.useInfiniteQuery,
5907 + useIsFetching: () => import_useIsFetching.useIsFetching,
5908 + useIsMutating: () => import_useMutationState.useIsMutating,
5909 + useIsRestoring: () => import_isRestoring.useIsRestoring,
5910 + useMutation: () => import_useMutation.useMutation,
5911 + useMutationState: () => import_useMutationState.useMutationState,
5912 + useQueries: () => import_useQueries.useQueries,
5913 + useQuery: () => import_useQuery.useQuery,
5914 + useQueryClient: () => import_QueryClientProvider.useQueryClient,
5915 + useQueryErrorResetBoundary: () => import_QueryErrorResetBoundary.useQueryErrorResetBoundary,
5916 + useSuspenseInfiniteQuery: () => import_useSuspenseInfiniteQuery.useSuspenseInfiniteQuery,
5917 + useSuspenseQueries: () => import_useSuspenseQueries.useSuspenseQueries,
5918 + useSuspenseQuery: () => import_useSuspenseQuery.useSuspenseQuery
5919 +});
5920 +module.exports = __toCommonJS(src_exports);
5921 +__reExport(src_exports, __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs"), module.exports);
5922 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/react-query/build/modern/types.cjs"), module.exports);
5923 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
5924 +var import_useQuery = __webpack_require__(/*! ./useQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs");
5925 +var import_useSuspenseQuery = __webpack_require__(/*! ./useSuspenseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs");
5926 +var import_useSuspenseInfiniteQuery = __webpack_require__(/*! ./useSuspenseInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs");
5927 +var import_useSuspenseQueries = __webpack_require__(/*! ./useSuspenseQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs");
5928 +var import_queryOptions = __webpack_require__(/*! ./queryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs");
5929 +var import_infiniteQueryOptions = __webpack_require__(/*! ./infiniteQueryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs");
5930 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
5931 +var import_HydrationBoundary = __webpack_require__(/*! ./HydrationBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs");
5932 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
5933 +var import_useIsFetching = __webpack_require__(/*! ./useIsFetching.cjs */ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs");
5934 +var import_useMutationState = __webpack_require__(/*! ./useMutationState.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs");
5935 +var import_useMutation = __webpack_require__(/*! ./useMutation.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs");
5936 +var import_useInfiniteQuery = __webpack_require__(/*! ./useInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs");
5937 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
5938 +// Annotate the CommonJS export names for ESM import in node:
5939 +0 && (0);
5940 +//# sourceMappingURL=index.cjs.map
5941 +
5942 +/***/ }),
5943 +
5944 +/***/ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs":
5945 +/*!***********************************************************************************!*\
5946 + !*** ../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs ***!
5947 + \***********************************************************************************/
5948 +/***/ ((module) => {
5949 +
5950 +"use strict";
5951 +
5952 +var __defProp = Object.defineProperty;
5953 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5954 +var __getOwnPropNames = Object.getOwnPropertyNames;
5955 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5956 +var __export = (target, all) => {
5957 + for (var name in all)
5958 + __defProp(target, name, { get: all[name], enumerable: true });
5959 +};
5960 +var __copyProps = (to, from, except, desc) => {
5961 + if (from && typeof from === "object" || typeof from === "function") {
5962 + for (let key of __getOwnPropNames(from))
5963 + if (!__hasOwnProp.call(to, key) && key !== except)
5964 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5965 + }
5966 + return to;
5967 +};
5968 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5969 +
5970 +// src/infiniteQueryOptions.ts
5971 +var infiniteQueryOptions_exports = {};
5972 +__export(infiniteQueryOptions_exports, {
5973 + infiniteQueryOptions: () => infiniteQueryOptions
5974 +});
5975 +module.exports = __toCommonJS(infiniteQueryOptions_exports);
5976 +function infiniteQueryOptions(options) {
5977 + return options;
5978 +}
5979 +// Annotate the CommonJS export names for ESM import in node:
5980 +0 && (0);
5981 +//# sourceMappingURL=infiniteQueryOptions.cjs.map
5982 +
5983 +/***/ }),
5984 +
5985 +/***/ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs":
5986 +/*!**************************************************************************!*\
5987 + !*** ../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs ***!
5988 + \**************************************************************************/
5989 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5990 +
5991 +"use strict";
5992 +
5993 +"use client";
5994 +var __create = Object.create;
5995 +var __defProp = Object.defineProperty;
5996 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5997 +var __getOwnPropNames = Object.getOwnPropertyNames;
5998 +var __getProtoOf = Object.getPrototypeOf;
5999 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6000 +var __export = (target, all) => {
6001 + for (var name in all)
6002 + __defProp(target, name, { get: all[name], enumerable: true });
6003 +};
6004 +var __copyProps = (to, from, except, desc) => {
6005 + if (from && typeof from === "object" || typeof from === "function") {
6006 + for (let key of __getOwnPropNames(from))
6007 + if (!__hasOwnProp.call(to, key) && key !== except)
6008 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6009 + }
6010 + return to;
6011 +};
6012 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6013 + // If the importer is in node compatibility mode or this is not an ESM
6014 + // file that has been converted to a CommonJS file using a Babel-
6015 + // compatible transform (i.e. "__esModule" has not been set), then set
6016 + // "default" to the CommonJS "module.exports" for node compatibility.
6017 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6018 + mod
6019 +));
6020 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6021 +
6022 +// src/isRestoring.ts
6023 +var isRestoring_exports = {};
6024 +__export(isRestoring_exports, {
6025 + IsRestoringProvider: () => IsRestoringProvider,
6026 + useIsRestoring: () => useIsRestoring
6027 +});
6028 +module.exports = __toCommonJS(isRestoring_exports);
6029 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6030 +var IsRestoringContext = React.createContext(false);
6031 +var useIsRestoring = () => React.useContext(IsRestoringContext);
6032 +var IsRestoringProvider = IsRestoringContext.Provider;
6033 +// Annotate the CommonJS export names for ESM import in node:
6034 +0 && (0);
6035 +//# sourceMappingURL=isRestoring.cjs.map
6036 +
6037 +/***/ }),
6038 +
6039 +/***/ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs":
6040 +/*!***************************************************************************!*\
6041 + !*** ../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs ***!
6042 + \***************************************************************************/
6043 +/***/ ((module) => {
6044 +
6045 +"use strict";
6046 +
6047 +var __defProp = Object.defineProperty;
6048 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6049 +var __getOwnPropNames = Object.getOwnPropertyNames;
6050 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6051 +var __export = (target, all) => {
6052 + for (var name in all)
6053 + __defProp(target, name, { get: all[name], enumerable: true });
6054 +};
6055 +var __copyProps = (to, from, except, desc) => {
6056 + if (from && typeof from === "object" || typeof from === "function") {
6057 + for (let key of __getOwnPropNames(from))
6058 + if (!__hasOwnProp.call(to, key) && key !== except)
6059 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6060 + }
6061 + return to;
6062 +};
6063 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6064 +
6065 +// src/queryOptions.ts
6066 +var queryOptions_exports = {};
6067 +__export(queryOptions_exports, {
6068 + queryOptions: () => queryOptions
6069 +});
6070 +module.exports = __toCommonJS(queryOptions_exports);
6071 +function queryOptions(options) {
6072 + return options;
6073 +}
6074 +// Annotate the CommonJS export names for ESM import in node:
6075 +0 && (0);
6076 +//# sourceMappingURL=queryOptions.cjs.map
6077 +
6078 +/***/ }),
6079 +
6080 +/***/ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs":
6081 +/*!***********************************************************************!*\
6082 + !*** ../node_modules/@tanstack/react-query/build/modern/suspense.cjs ***!
6083 + \***********************************************************************/
6084 +/***/ ((module) => {
6085 +
6086 +"use strict";
6087 +
6088 +var __defProp = Object.defineProperty;
6089 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6090 +var __getOwnPropNames = Object.getOwnPropertyNames;
6091 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6092 +var __export = (target, all) => {
6093 + for (var name in all)
6094 + __defProp(target, name, { get: all[name], enumerable: true });
6095 +};
6096 +var __copyProps = (to, from, except, desc) => {
6097 + if (from && typeof from === "object" || typeof from === "function") {
6098 + for (let key of __getOwnPropNames(from))
6099 + if (!__hasOwnProp.call(to, key) && key !== except)
6100 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6101 + }
6102 + return to;
6103 +};
6104 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6105 +
6106 +// src/suspense.ts
6107 +var suspense_exports = {};
6108 +__export(suspense_exports, {
6109 + defaultThrowOnError: () => defaultThrowOnError,
6110 + ensureStaleTime: () => ensureStaleTime,
6111 + fetchOptimistic: () => fetchOptimistic,
6112 + shouldSuspend: () => shouldSuspend,
6113 + willFetch: () => willFetch
6114 +});
6115 +module.exports = __toCommonJS(suspense_exports);
6116 +var defaultThrowOnError = (_error, query) => typeof query.state.data === "undefined";
6117 +var ensureStaleTime = (defaultedOptions) => {
6118 + if (defaultedOptions.suspense) {
6119 + if (typeof defaultedOptions.staleTime !== "number") {
6120 + defaultedOptions.staleTime = 1e3;
6121 + }
6122 + }
6123 +};
6124 +var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
6125 +var shouldSuspend = (defaultedOptions, result, isRestoring) => defaultedOptions?.suspense && willFetch(result, isRestoring);
6126 +var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
6127 + errorResetBoundary.clearReset();
6128 +});
6129 +// Annotate the CommonJS export names for ESM import in node:
6130 +0 && (0);
6131 +//# sourceMappingURL=suspense.cjs.map
6132 +
6133 +/***/ }),
6134 +
6135 +/***/ "../node_modules/@tanstack/react-query/build/modern/types.cjs":
6136 +/*!********************************************************************!*\
6137 + !*** ../node_modules/@tanstack/react-query/build/modern/types.cjs ***!
6138 + \********************************************************************/
6139 +/***/ ((module) => {
6140 +
6141 +"use strict";
6142 +
6143 +var __defProp = Object.defineProperty;
6144 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6145 +var __getOwnPropNames = Object.getOwnPropertyNames;
6146 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6147 +var __copyProps = (to, from, except, desc) => {
6148 + if (from && typeof from === "object" || typeof from === "function") {
6149 + for (let key of __getOwnPropNames(from))
6150 + if (!__hasOwnProp.call(to, key) && key !== except)
6151 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6152 + }
6153 + return to;
6154 +};
6155 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6156 +
6157 +// src/types.ts
6158 +var types_exports = {};
6159 +module.exports = __toCommonJS(types_exports);
6160 +//# sourceMappingURL=types.cjs.map
6161 +
6162 +/***/ }),
6163 +
6164 +/***/ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs":
6165 +/*!***************************************************************************!*\
6166 + !*** ../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs ***!
6167 + \***************************************************************************/
6168 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6169 +
6170 +"use strict";
6171 +
6172 +"use client";
6173 +var __create = Object.create;
6174 +var __defProp = Object.defineProperty;
6175 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6176 +var __getOwnPropNames = Object.getOwnPropertyNames;
6177 +var __getProtoOf = Object.getPrototypeOf;
6178 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6179 +var __export = (target, all) => {
6180 + for (var name in all)
6181 + __defProp(target, name, { get: all[name], enumerable: true });
6182 +};
6183 +var __copyProps = (to, from, except, desc) => {
6184 + if (from && typeof from === "object" || typeof from === "function") {
6185 + for (let key of __getOwnPropNames(from))
6186 + if (!__hasOwnProp.call(to, key) && key !== except)
6187 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6188 + }
6189 + return to;
6190 +};
6191 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6192 + // If the importer is in node compatibility mode or this is not an ESM
6193 + // file that has been converted to a CommonJS file using a Babel-
6194 + // compatible transform (i.e. "__esModule" has not been set), then set
6195 + // "default" to the CommonJS "module.exports" for node compatibility.
6196 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6197 + mod
6198 +));
6199 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6200 +
6201 +// src/useBaseQuery.ts
6202 +var useBaseQuery_exports = {};
6203 +__export(useBaseQuery_exports, {
6204 + useBaseQuery: () => useBaseQuery
6205 +});
6206 +module.exports = __toCommonJS(useBaseQuery_exports);
6207 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6208 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6209 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
6210 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6211 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
6212 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
6213 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6214 +function useBaseQuery(options, Observer, queryClient) {
6215 + if (true) {
6216 + if (typeof options !== "object" || Array.isArray(options)) {
6217 + throw new Error(
6218 + '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'
6219 + );
6220 + }
6221 + }
6222 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6223 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
6224 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
6225 + const defaultedOptions = client.defaultQueryOptions(options);
6226 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
6227 + (0, import_suspense.ensureStaleTime)(defaultedOptions);
6228 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(defaultedOptions, errorResetBoundary);
6229 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
6230 + const [observer] = React.useState(
6231 + () => new Observer(
6232 + client,
6233 + defaultedOptions
6234 + )
6235 + );
6236 + const result = observer.getOptimisticResult(defaultedOptions);
6237 + React.useSyncExternalStore(
6238 + React.useCallback(
6239 + (onStoreChange) => {
6240 + const unsubscribe = isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange));
6241 + observer.updateResult();
6242 + return unsubscribe;
6243 + },
6244 + [observer, isRestoring]
6245 + ),
6246 + () => observer.getCurrentResult(),
6247 + () => observer.getCurrentResult()
6248 + );
6249 + React.useEffect(() => {
6250 + observer.setOptions(defaultedOptions, { listeners: false });
6251 + }, [defaultedOptions, observer]);
6252 + if ((0, import_suspense.shouldSuspend)(defaultedOptions, result, isRestoring)) {
6253 + throw (0, import_suspense.fetchOptimistic)(defaultedOptions, observer, errorResetBoundary);
6254 + }
6255 + if ((0, import_errorBoundaryUtils.getHasError)({
6256 + result,
6257 + errorResetBoundary,
6258 + throwOnError: defaultedOptions.throwOnError,
6259 + query: observer.getCurrentQuery()
6260 + })) {
6261 + throw result.error;
6262 + }
6263 + return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
6264 +}
6265 +// Annotate the CommonJS export names for ESM import in node:
6266 +0 && (0);
6267 +//# sourceMappingURL=useBaseQuery.cjs.map
6268 +
6269 +/***/ }),
6270 +
6271 +/***/ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs":
6272 +/*!*******************************************************************************!*\
6273 + !*** ../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs ***!
6274 + \*******************************************************************************/
6275 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6276 +
6277 +"use strict";
6278 +
6279 +"use client";
6280 +var __defProp = Object.defineProperty;
6281 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6282 +var __getOwnPropNames = Object.getOwnPropertyNames;
6283 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6284 +var __export = (target, all) => {
6285 + for (var name in all)
6286 + __defProp(target, name, { get: all[name], enumerable: true });
6287 +};
6288 +var __copyProps = (to, from, except, desc) => {
6289 + if (from && typeof from === "object" || typeof from === "function") {
6290 + for (let key of __getOwnPropNames(from))
6291 + if (!__hasOwnProp.call(to, key) && key !== except)
6292 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6293 + }
6294 + return to;
6295 +};
6296 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6297 +
6298 +// src/useInfiniteQuery.ts
6299 +var useInfiniteQuery_exports = {};
6300 +__export(useInfiniteQuery_exports, {
6301 + useInfiniteQuery: () => useInfiniteQuery
6302 +});
6303 +module.exports = __toCommonJS(useInfiniteQuery_exports);
6304 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6305 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6306 +function useInfiniteQuery(options, queryClient) {
6307 + return (0, import_useBaseQuery.useBaseQuery)(
6308 + options,
6309 + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
6310 + import_query_core.InfiniteQueryObserver,
6311 + queryClient
6312 + );
6313 +}
6314 +// Annotate the CommonJS export names for ESM import in node:
6315 +0 && (0);
6316 +//# sourceMappingURL=useInfiniteQuery.cjs.map
6317 +
6318 +/***/ }),
6319 +
6320 +/***/ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs":
6321 +/*!****************************************************************************!*\
6322 + !*** ../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs ***!
6323 + \****************************************************************************/
6324 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6325 +
6326 +"use strict";
6327 +
6328 +"use client";
6329 +var __create = Object.create;
6330 +var __defProp = Object.defineProperty;
6331 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6332 +var __getOwnPropNames = Object.getOwnPropertyNames;
6333 +var __getProtoOf = Object.getPrototypeOf;
6334 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6335 +var __export = (target, all) => {
6336 + for (var name in all)
6337 + __defProp(target, name, { get: all[name], enumerable: true });
6338 +};
6339 +var __copyProps = (to, from, except, desc) => {
6340 + if (from && typeof from === "object" || typeof from === "function") {
6341 + for (let key of __getOwnPropNames(from))
6342 + if (!__hasOwnProp.call(to, key) && key !== except)
6343 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6344 + }
6345 + return to;
6346 +};
6347 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6348 + // If the importer is in node compatibility mode or this is not an ESM
6349 + // file that has been converted to a CommonJS file using a Babel-
6350 + // compatible transform (i.e. "__esModule" has not been set), then set
6351 + // "default" to the CommonJS "module.exports" for node compatibility.
6352 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6353 + mod
6354 +));
6355 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6356 +
6357 +// src/useIsFetching.ts
6358 +var useIsFetching_exports = {};
6359 +__export(useIsFetching_exports, {
6360 + useIsFetching: () => useIsFetching
6361 +});
6362 +module.exports = __toCommonJS(useIsFetching_exports);
6363 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6364 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6365 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6366 +function useIsFetching(filters, queryClient) {
6367 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6368 + const queryCache = client.getQueryCache();
6369 + return React.useSyncExternalStore(
6370 + React.useCallback(
6371 + (onStoreChange) => queryCache.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
6372 + [queryCache]
6373 + ),
6374 + () => client.isFetching(filters),
6375 + () => client.isFetching(filters)
6376 + );
6377 +}
6378 +// Annotate the CommonJS export names for ESM import in node:
6379 +0 && (0);
6380 +//# sourceMappingURL=useIsFetching.cjs.map
6381 +
6382 +/***/ }),
6383 +
6384 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs":
6385 +/*!**************************************************************************!*\
6386 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutation.cjs ***!
6387 + \**************************************************************************/
6388 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6389 +
6390 +"use strict";
6391 +
6392 +"use client";
6393 +var __create = Object.create;
6394 +var __defProp = Object.defineProperty;
6395 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6396 +var __getOwnPropNames = Object.getOwnPropertyNames;
6397 +var __getProtoOf = Object.getPrototypeOf;
6398 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6399 +var __export = (target, all) => {
6400 + for (var name in all)
6401 + __defProp(target, name, { get: all[name], enumerable: true });
6402 +};
6403 +var __copyProps = (to, from, except, desc) => {
6404 + if (from && typeof from === "object" || typeof from === "function") {
6405 + for (let key of __getOwnPropNames(from))
6406 + if (!__hasOwnProp.call(to, key) && key !== except)
6407 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6408 + }
6409 + return to;
6410 +};
6411 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6412 + // If the importer is in node compatibility mode or this is not an ESM
6413 + // file that has been converted to a CommonJS file using a Babel-
6414 + // compatible transform (i.e. "__esModule" has not been set), then set
6415 + // "default" to the CommonJS "module.exports" for node compatibility.
6416 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6417 + mod
6418 +));
6419 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6420 +
6421 +// src/useMutation.ts
6422 +var useMutation_exports = {};
6423 +__export(useMutation_exports, {
6424 + useMutation: () => useMutation
6425 +});
6426 +module.exports = __toCommonJS(useMutation_exports);
6427 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6428 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6429 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6430 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
6431 +function useMutation(options, queryClient) {
6432 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6433 + const [observer] = React.useState(
6434 + () => new import_query_core.MutationObserver(
6435 + client,
6436 + options
6437 + )
6438 + );
6439 + React.useEffect(() => {
6440 + observer.setOptions(options);
6441 + }, [observer, options]);
6442 + const result = React.useSyncExternalStore(
6443 + React.useCallback(
6444 + (onStoreChange) => observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
6445 + [observer]
6446 + ),
6447 + () => observer.getCurrentResult(),
6448 + () => observer.getCurrentResult()
6449 + );
6450 + const mutate = React.useCallback(
6451 + (variables, mutateOptions) => {
6452 + observer.mutate(variables, mutateOptions).catch(noop);
6453 + },
6454 + [observer]
6455 + );
6456 + if (result.error && (0, import_utils.shouldThrowError)(observer.options.throwOnError, [result.error])) {
6457 + throw result.error;
6458 + }
6459 + return { ...result, mutate, mutateAsync: result.mutate };
6460 +}
6461 +function noop() {
6462 +}
6463 +// Annotate the CommonJS export names for ESM import in node:
6464 +0 && (0);
6465 +//# sourceMappingURL=useMutation.cjs.map
6466 +
6467 +/***/ }),
6468 +
6469 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs":
6470 +/*!*******************************************************************************!*\
6471 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs ***!
6472 + \*******************************************************************************/
6473 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6474 +
6475 +"use strict";
6476 +
6477 +"use client";
6478 +var __create = Object.create;
6479 +var __defProp = Object.defineProperty;
6480 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6481 +var __getOwnPropNames = Object.getOwnPropertyNames;
6482 +var __getProtoOf = Object.getPrototypeOf;
6483 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6484 +var __export = (target, all) => {
6485 + for (var name in all)
6486 + __defProp(target, name, { get: all[name], enumerable: true });
6487 +};
6488 +var __copyProps = (to, from, except, desc) => {
6489 + if (from && typeof from === "object" || typeof from === "function") {
6490 + for (let key of __getOwnPropNames(from))
6491 + if (!__hasOwnProp.call(to, key) && key !== except)
6492 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6493 + }
6494 + return to;
6495 +};
6496 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6497 + // If the importer is in node compatibility mode or this is not an ESM
6498 + // file that has been converted to a CommonJS file using a Babel-
6499 + // compatible transform (i.e. "__esModule" has not been set), then set
6500 + // "default" to the CommonJS "module.exports" for node compatibility.
6501 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6502 + mod
6503 +));
6504 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6505 +
6506 +// src/useMutationState.ts
6507 +var useMutationState_exports = {};
6508 +__export(useMutationState_exports, {
6509 + useIsMutating: () => useIsMutating,
6510 + useMutationState: () => useMutationState
6511 +});
6512 +module.exports = __toCommonJS(useMutationState_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 +function useIsMutating(filters, queryClient) {
6517 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6518 + return useMutationState(
6519 + { filters: { ...filters, status: "pending" } },
6520 + client
6521 + ).length;
6522 +}
6523 +function getResult(mutationCache, options) {
6524 + return mutationCache.findAll(options.filters).map(
6525 + (mutation) => options.select ? options.select(
6526 + mutation
6527 + ) : mutation.state
6528 + );
6529 +}
6530 +function useMutationState(options = {}, queryClient) {
6531 + const mutationCache = (0, import_QueryClientProvider.useQueryClient)(queryClient).getMutationCache();
6532 + const optionsRef = React.useRef(options);
6533 + const result = React.useRef();
6534 + if (!result.current) {
6535 + result.current = getResult(mutationCache, options);
6536 + }
6537 + React.useEffect(() => {
6538 + optionsRef.current = options;
6539 + });
6540 + return React.useSyncExternalStore(
6541 + React.useCallback(
6542 + (onStoreChange) => mutationCache.subscribe(() => {
6543 + const nextResult = (0, import_query_core.replaceEqualDeep)(
6544 + result.current,
6545 + getResult(mutationCache, optionsRef.current)
6546 + );
6547 + if (result.current !== nextResult) {
6548 + result.current = nextResult;
6549 + import_query_core.notifyManager.schedule(onStoreChange);
6550 + }
6551 + }),
6552 + [mutationCache]
6553 + ),
6554 + () => result.current,
6555 + () => result.current
6556 + );
6557 +}
6558 +// Annotate the CommonJS export names for ESM import in node:
6559 +0 && (0);
6560 +//# sourceMappingURL=useMutationState.cjs.map
6561 +
6562 +/***/ }),
6563 +
6564 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs":
6565 +/*!*************************************************************************!*\
6566 + !*** ../node_modules/@tanstack/react-query/build/modern/useQueries.cjs ***!
6567 + \*************************************************************************/
6568 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6569 +
6570 +"use strict";
6571 +
6572 +"use client";
6573 +var __create = Object.create;
6574 +var __defProp = Object.defineProperty;
6575 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6576 +var __getOwnPropNames = Object.getOwnPropertyNames;
6577 +var __getProtoOf = Object.getPrototypeOf;
6578 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6579 +var __export = (target, all) => {
6580 + for (var name in all)
6581 + __defProp(target, name, { get: all[name], enumerable: true });
6582 +};
6583 +var __copyProps = (to, from, except, desc) => {
6584 + if (from && typeof from === "object" || typeof from === "function") {
6585 + for (let key of __getOwnPropNames(from))
6586 + if (!__hasOwnProp.call(to, key) && key !== except)
6587 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6588 + }
6589 + return to;
6590 +};
6591 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6592 + // If the importer is in node compatibility mode or this is not an ESM
6593 + // file that has been converted to a CommonJS file using a Babel-
6594 + // compatible transform (i.e. "__esModule" has not been set), then set
6595 + // "default" to the CommonJS "module.exports" for node compatibility.
6596 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6597 + mod
6598 +));
6599 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6600 +
6601 +// src/useQueries.ts
6602 +var useQueries_exports = {};
6603 +__export(useQueries_exports, {
6604 + useQueries: () => useQueries
6605 +});
6606 +module.exports = __toCommonJS(useQueries_exports);
6607 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6608 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6609 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6610 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
6611 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
6612 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
6613 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6614 +function useQueries({
6615 + queries,
6616 + ...options
6617 +}, queryClient) {
6618 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6619 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
6620 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
6621 + const defaultedQueries = React.useMemo(
6622 + () => queries.map((opts) => {
6623 + const defaultedOptions = client.defaultQueryOptions(opts);
6624 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
6625 + return defaultedOptions;
6626 + }),
6627 + [queries, client, isRestoring]
6628 + );
6629 + defaultedQueries.forEach((query) => {
6630 + (0, import_suspense.ensureStaleTime)(query);
6631 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(query, errorResetBoundary);
6632 + });
6633 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
6634 + const [observer] = React.useState(
6635 + () => new import_query_core.QueriesObserver(
6636 + client,
6637 + defaultedQueries,
6638 + options
6639 + )
6640 + );
6641 + const [optimisticResult, getCombinedResult, trackResult] = observer.getOptimisticResult(defaultedQueries);
6642 + React.useSyncExternalStore(
6643 + React.useCallback(
6644 + (onStoreChange) => isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
6645 + [observer, isRestoring]
6646 + ),
6647 + () => observer.getCurrentResult(),
6648 + () => observer.getCurrentResult()
6649 + );
6650 + React.useEffect(() => {
6651 + observer.setQueries(
6652 + defaultedQueries,
6653 + options,
6654 + {
6655 + listeners: false
6656 + }
6657 + );
6658 + }, [defaultedQueries, options, observer]);
6659 + const shouldAtLeastOneSuspend = optimisticResult.some(
6660 + (result, index) => (0, import_suspense.shouldSuspend)(defaultedQueries[index], result, isRestoring)
6661 + );
6662 + const suspensePromises = shouldAtLeastOneSuspend ? optimisticResult.flatMap((result, index) => {
6663 + const opts = defaultedQueries[index];
6664 + if (opts) {
6665 + const queryObserver = new import_query_core.QueryObserver(client, opts);
6666 + if ((0, import_suspense.shouldSuspend)(opts, result, isRestoring)) {
6667 + return (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
6668 + } else if ((0, import_suspense.willFetch)(result, isRestoring)) {
6669 + void (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
6670 + }
6671 + }
6672 + return [];
6673 + }) : [];
6674 + if (suspensePromises.length > 0) {
6675 + throw Promise.all(suspensePromises);
6676 + }
6677 + const observerQueries = observer.getQueries();
6678 + const firstSingleResultWhichShouldThrow = optimisticResult.find(
6679 + (result, index) => (0, import_errorBoundaryUtils.getHasError)({
6680 + result,
6681 + errorResetBoundary,
6682 + throwOnError: defaultedQueries[index]?.throwOnError ?? false,
6683 + query: observerQueries[index]
6684 + })
6685 + );
6686 + if (firstSingleResultWhichShouldThrow?.error) {
6687 + throw firstSingleResultWhichShouldThrow.error;
6688 + }
6689 + return getCombinedResult(trackResult());
6690 +}
6691 +// Annotate the CommonJS export names for ESM import in node:
6692 +0 && (0);
6693 +//# sourceMappingURL=useQueries.cjs.map
6694 +
6695 +/***/ }),
6696 +
6697 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs":
6698 +/*!***********************************************************************!*\
6699 + !*** ../node_modules/@tanstack/react-query/build/modern/useQuery.cjs ***!
6700 + \***********************************************************************/
6701 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6702 +
6703 +"use strict";
6704 +
6705 +"use client";
6706 +var __defProp = Object.defineProperty;
6707 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6708 +var __getOwnPropNames = Object.getOwnPropertyNames;
6709 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6710 +var __export = (target, all) => {
6711 + for (var name in all)
6712 + __defProp(target, name, { get: all[name], enumerable: true });
6713 +};
6714 +var __copyProps = (to, from, except, desc) => {
6715 + if (from && typeof from === "object" || typeof from === "function") {
6716 + for (let key of __getOwnPropNames(from))
6717 + if (!__hasOwnProp.call(to, key) && key !== except)
6718 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6719 + }
6720 + return to;
6721 +};
6722 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6723 +
6724 +// src/useQuery.ts
6725 +var useQuery_exports = {};
6726 +__export(useQuery_exports, {
6727 + useQuery: () => useQuery
6728 +});
6729 +module.exports = __toCommonJS(useQuery_exports);
6730 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6731 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6732 +function useQuery(options, queryClient) {
6733 + return (0, import_useBaseQuery.useBaseQuery)(options, import_query_core.QueryObserver, queryClient);
6734 +}
6735 +// Annotate the CommonJS export names for ESM import in node:
6736 +0 && (0);
6737 +//# sourceMappingURL=useQuery.cjs.map
6738 +
6739 +/***/ }),
6740 +
6741 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs":
6742 +/*!***************************************************************************************!*\
6743 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs ***!
6744 + \***************************************************************************************/
6745 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6746 +
6747 +"use strict";
6748 +
6749 +"use client";
6750 +var __defProp = Object.defineProperty;
6751 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6752 +var __getOwnPropNames = Object.getOwnPropertyNames;
6753 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6754 +var __export = (target, all) => {
6755 + for (var name in all)
6756 + __defProp(target, name, { get: all[name], enumerable: true });
6757 +};
6758 +var __copyProps = (to, from, except, desc) => {
6759 + if (from && typeof from === "object" || typeof from === "function") {
6760 + for (let key of __getOwnPropNames(from))
6761 + if (!__hasOwnProp.call(to, key) && key !== except)
6762 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6763 + }
6764 + return to;
6765 +};
6766 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6767 +
6768 +// src/useSuspenseInfiniteQuery.ts
6769 +var useSuspenseInfiniteQuery_exports = {};
6770 +__export(useSuspenseInfiniteQuery_exports, {
6771 + useSuspenseInfiniteQuery: () => useSuspenseInfiniteQuery
6772 +});
6773 +module.exports = __toCommonJS(useSuspenseInfiniteQuery_exports);
6774 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6775 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6776 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6777 +function useSuspenseInfiniteQuery(options, queryClient) {
6778 + return (0, import_useBaseQuery.useBaseQuery)(
6779 + {
6780 + ...options,
6781 + enabled: true,
6782 + suspense: true,
6783 + throwOnError: import_suspense.defaultThrowOnError
6784 + },
6785 + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
6786 + import_query_core.InfiniteQueryObserver,
6787 + queryClient
6788 + );
6789 +}
6790 +// Annotate the CommonJS export names for ESM import in node:
6791 +0 && (0);
6792 +//# sourceMappingURL=useSuspenseInfiniteQuery.cjs.map
6793 +
6794 +/***/ }),
6795 +
6796 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs":
6797 +/*!*********************************************************************************!*\
6798 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs ***!
6799 + \*********************************************************************************/
6800 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6801 +
6802 +"use strict";
6803 +
6804 +"use client";
6805 +var __defProp = Object.defineProperty;
6806 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6807 +var __getOwnPropNames = Object.getOwnPropertyNames;
6808 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6809 +var __export = (target, all) => {
6810 + for (var name in all)
6811 + __defProp(target, name, { get: all[name], enumerable: true });
6812 +};
6813 +var __copyProps = (to, from, except, desc) => {
6814 + if (from && typeof from === "object" || typeof from === "function") {
6815 + for (let key of __getOwnPropNames(from))
6816 + if (!__hasOwnProp.call(to, key) && key !== except)
6817 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6818 + }
6819 + return to;
6820 +};
6821 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6822 +
6823 +// src/useSuspenseQueries.ts
6824 +var useSuspenseQueries_exports = {};
6825 +__export(useSuspenseQueries_exports, {
6826 + useSuspenseQueries: () => useSuspenseQueries
6827 +});
6828 +module.exports = __toCommonJS(useSuspenseQueries_exports);
6829 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
6830 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6831 +function useSuspenseQueries(options, queryClient) {
6832 + return (0, import_useQueries.useQueries)(
6833 + {
6834 + ...options,
6835 + queries: options.queries.map((query) => ({
6836 + ...query,
6837 + suspense: true,
6838 + throwOnError: import_suspense.defaultThrowOnError,
6839 + enabled: true
6840 + }))
6841 + },
6842 + queryClient
6843 + );
6844 +}
6845 +// Annotate the CommonJS export names for ESM import in node:
6846 +0 && (0);
6847 +//# sourceMappingURL=useSuspenseQueries.cjs.map
6848 +
6849 +/***/ }),
6850 +
6851 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs":
6852 +/*!*******************************************************************************!*\
6853 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs ***!
6854 + \*******************************************************************************/
6855 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6856 +
6857 +"use strict";
6858 +
6859 +"use client";
6860 +var __defProp = Object.defineProperty;
6861 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6862 +var __getOwnPropNames = Object.getOwnPropertyNames;
6863 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6864 +var __export = (target, all) => {
6865 + for (var name in all)
6866 + __defProp(target, name, { get: all[name], enumerable: true });
6867 +};
6868 +var __copyProps = (to, from, except, desc) => {
6869 + if (from && typeof from === "object" || typeof from === "function") {
6870 + for (let key of __getOwnPropNames(from))
6871 + if (!__hasOwnProp.call(to, key) && key !== except)
6872 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6873 + }
6874 + return to;
6875 +};
6876 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6877 +
6878 +// src/useSuspenseQuery.ts
6879 +var useSuspenseQuery_exports = {};
6880 +__export(useSuspenseQuery_exports, {
6881 + useSuspenseQuery: () => useSuspenseQuery
6882 +});
6883 +module.exports = __toCommonJS(useSuspenseQuery_exports);
6884 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6885 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6886 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6887 +function useSuspenseQuery(options, queryClient) {
6888 + return (0, import_useBaseQuery.useBaseQuery)(
6889 + {
6890 + ...options,
6891 + enabled: true,
6892 + suspense: true,
6893 + throwOnError: import_suspense.defaultThrowOnError
6894 + },
6895 + import_query_core.QueryObserver,
6896 + queryClient
6897 + );
6898 +}
6899 +// Annotate the CommonJS export names for ESM import in node:
6900 +0 && (0);
6901 +//# sourceMappingURL=useSuspenseQuery.cjs.map
6902 +
6903 +/***/ }),
6904 +
6905 +/***/ "../node_modules/@tanstack/react-query/build/modern/utils.cjs":
6906 +/*!********************************************************************!*\
6907 + !*** ../node_modules/@tanstack/react-query/build/modern/utils.cjs ***!
6908 + \********************************************************************/
6909 +/***/ ((module) => {
6910 +
6911 +"use strict";
6912 +
6913 +var __defProp = Object.defineProperty;
6914 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6915 +var __getOwnPropNames = Object.getOwnPropertyNames;
6916 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6917 +var __export = (target, all) => {
6918 + for (var name in all)
6919 + __defProp(target, name, { get: all[name], enumerable: true });
6920 +};
6921 +var __copyProps = (to, from, except, desc) => {
6922 + if (from && typeof from === "object" || typeof from === "function") {
6923 + for (let key of __getOwnPropNames(from))
6924 + if (!__hasOwnProp.call(to, key) && key !== except)
6925 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6926 + }
6927 + return to;
6928 +};
6929 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6930 +
6931 +// src/utils.ts
6932 +var utils_exports = {};
6933 +__export(utils_exports, {
6934 + shouldThrowError: () => shouldThrowError
6935 +});
6936 +module.exports = __toCommonJS(utils_exports);
6937 +function shouldThrowError(throwError, params) {
6938 + if (typeof throwError === "function") {
6939 + return throwError(...params);
6940 + }
6941 + return !!throwError;
6942 +}
6943 +// Annotate the CommonJS export names for ESM import in node:
6944 +0 && (0);
6945 +//# sourceMappingURL=utils.cjs.map
6946 +
6947 +/***/ })
6948 +
6949 +/******/ });
6950 +/************************************************************************/
6951 +/******/ // The module cache
6952 +/******/ var __webpack_module_cache__ = {};
6953 +/******/
6954 +/******/ // The require function
6955 +/******/ function __webpack_require__(moduleId) {
6956 +/******/ // Check if module is in cache
6957 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
6958 +/******/ if (cachedModule !== undefined) {
6959 +/******/ return cachedModule.exports;
6960 +/******/ }
6961 +/******/ // Create a new module (and put it into the cache)
6962 +/******/ var module = __webpack_module_cache__[moduleId] = {
6963 +/******/ // no module.id needed
6964 +/******/ // no module.loaded needed
6965 +/******/ exports: {}
6966 +/******/ };
6967 +/******/
6968 +/******/ // Execute the module function
6969 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
6970 +/******/
6971 +/******/ // Return the exports of the module
6972 +/******/ return module.exports;
6973 +/******/ }
6974 +/******/
6975 +/************************************************************************/
6976 +var __webpack_exports__ = {};
6977 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
6978 +(() => {
6979 +"use strict";
6980 +/*!****************************************************!*\
6981 + !*** ../modules/notifications/assets/js/editor.js ***!
6982 + \****************************************************/
6983 +
6984 +
6985 +var _editorV = __webpack_require__(/*! ./components/editor-v1 */ "../modules/notifications/assets/js/components/editor-v1.js");
6986 +var _editorV2 = __webpack_require__(/*! ./components/editor-v2 */ "../modules/notifications/assets/js/components/editor-v2.js");
6987 +var _window, _window$elementorV;
6988 +if ((_window = window) !== null && _window !== void 0 && (_window$elementorV = _window.elementorV2) !== null && _window$elementorV !== void 0 && _window$elementorV.editorAppBar) {
6989 + (0, _editorV2.editorV2)();
6990 +} else {
6991 + (0, _editorV.editorV1)();
6992 +}
6993 +})();
6994 +
6995 +/******/ })()
6996 +;
1578 6997 //# sourceMappingURL=editor-notifications.js.map