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