@telicent-oss/ds 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ds.js CHANGED
@@ -14,9 +14,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
14
14
  return __privateGet(obj, member, getter);
15
15
  }
16
16
  });
17
- var _a, _b, _c, _focused, _cleanup, _setup, _d, _online, _cleanup2, _setup2, _e, _gcTimeout, _f, _initialState, _revertState, _cache, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _g, _queries, _h, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _i, _mutations, _scopes, _mutationId, _j, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _k, _client, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _l;
17
+ var _a, _b, _c, _focused, _cleanup, _setup, _d, _online, _cleanup2, _setup2, _e, _gcTimeout, _f, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _g, _queries, _h, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _i, _mutations, _scopes, _mutationId, _j, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _k, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _l;
18
18
  import * as React$2 from "react";
19
- import React__default, { forwardRef, useContext, Children, isValidElement, cloneElement, useState, useEffect, useRef, useCallback, createElement as createElement$1, PureComponent, createContext } from "react";
19
+ import React__default, { forwardRef, useContext, isValidElement, cloneElement, Children, useState, useEffect, useRef, useCallback, createElement as createElement$1, PureComponent, createContext } from "react";
20
20
  import * as ReactDOM from "react-dom";
21
21
  import ReactDOM__default, { flushSync } from "react-dom";
22
22
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -6246,16 +6246,32 @@ ZodReadonly.create = (type, params) => {
6246
6246
  ...processCreateParams(params)
6247
6247
  });
6248
6248
  };
6249
- function custom(check, params = {}, fatal) {
6249
+ function cleanParams(params, data) {
6250
+ const p2 = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
6251
+ const p22 = typeof p2 === "string" ? { message: p2 } : p2;
6252
+ return p22;
6253
+ }
6254
+ function custom(check, _params = {}, fatal) {
6250
6255
  if (check)
6251
6256
  return ZodAny.create().superRefine((data, ctx) => {
6252
6257
  var _a2, _b2;
6253
- if (!check(data)) {
6254
- const p2 = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
6255
- const _fatal = (_b2 = (_a2 = p2.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
6256
- const p22 = typeof p2 === "string" ? { message: p2 } : p2;
6257
- ctx.addIssue({ code: "custom", ...p22, fatal: _fatal });
6258
+ const r2 = check(data);
6259
+ if (r2 instanceof Promise) {
6260
+ return r2.then((r3) => {
6261
+ var _a3, _b3;
6262
+ if (!r3) {
6263
+ const params = cleanParams(_params, data);
6264
+ const _fatal = (_b3 = (_a3 = params.fatal) !== null && _a3 !== void 0 ? _a3 : fatal) !== null && _b3 !== void 0 ? _b3 : true;
6265
+ ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6266
+ }
6267
+ });
6258
6268
  }
6269
+ if (!r2) {
6270
+ const params = cleanParams(_params, data);
6271
+ const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
6272
+ ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6273
+ }
6274
+ return;
6259
6275
  });
6260
6276
  return ZodAny.create();
6261
6277
  }
@@ -6539,7 +6555,7 @@ function _toPrimitive$1(t2, r2) {
6539
6555
  if ("object" != typeof t2 || !t2) return t2;
6540
6556
  var e = t2[Symbol.toPrimitive];
6541
6557
  if (void 0 !== e) {
6542
- var i = e.call(t2, r2 || "default");
6558
+ var i = e.call(t2, r2);
6543
6559
  if ("object" != typeof i) return i;
6544
6560
  throw new TypeError("@@toPrimitive must return a primitive value.");
6545
6561
  }
@@ -6626,7 +6642,6 @@ var S = {
6626
6642
  }
6627
6643
  }, A = {
6628
6644
  GROUP: "duotone-group",
6629
- SWAP_OPACITY: "swap-opacity",
6630
6645
  PRIMARY: "primary",
6631
6646
  SECONDARY: "secondary"
6632
6647
  }, P = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"];
@@ -6760,17 +6775,11 @@ var Ft = ["fak", "fa-kit", "fakd", "fa-kit-duotone"], St = {
6760
6775
  var Ct = {
6761
6776
  kit: {
6762
6777
  "fa-kit": "fak"
6763
- },
6764
- "kit-duotone": {
6765
- "fa-kit-duotone": "fakd"
6766
6778
  }
6767
6779
  };
6768
6780
  var Lt = ["fak", "fakd"], Wt = {
6769
6781
  kit: {
6770
6782
  fak: "fa-kit"
6771
- },
6772
- "kit-duotone": {
6773
- fakd: "fa-kit-duotone"
6774
6783
  }
6775
6784
  };
6776
6785
  var Et = {
@@ -8055,7 +8064,7 @@ function findIcon(iconName, prefix2) {
8055
8064
  }
8056
8065
  return new Promise((resolve, reject) => {
8057
8066
  if (givenPrefix === "fa") {
8058
- const shim = byOldName(iconName);
8067
+ const shim = byOldName(iconName) || {};
8059
8068
  iconName = shim.iconName || iconName;
8060
8069
  prefix2 = shim.prefix || prefix2;
8061
8070
  }
@@ -10655,100 +10664,48 @@ const common = {
10655
10664
  white: "#fff"
10656
10665
  };
10657
10666
  const red = {
10658
- 50: "#ffebee",
10659
- 100: "#ffcdd2",
10660
- 200: "#ef9a9a",
10661
10667
  300: "#e57373",
10662
10668
  400: "#ef5350",
10663
10669
  500: "#f44336",
10664
- 600: "#e53935",
10665
10670
  700: "#d32f2f",
10666
- 800: "#c62828",
10667
- 900: "#b71c1c",
10668
- A100: "#ff8a80",
10669
- A200: "#ff5252",
10670
- A400: "#ff1744",
10671
- A700: "#d50000"
10671
+ 800: "#c62828"
10672
10672
  };
10673
10673
  const purple = {
10674
10674
  50: "#f3e5f5",
10675
- 100: "#e1bee7",
10676
10675
  200: "#ce93d8",
10677
10676
  300: "#ba68c8",
10678
10677
  400: "#ab47bc",
10679
10678
  500: "#9c27b0",
10680
- 600: "#8e24aa",
10681
- 700: "#7b1fa2",
10682
- 800: "#6a1b9a",
10683
- 900: "#4a148c",
10684
- A100: "#ea80fc",
10685
- A200: "#e040fb",
10686
- A400: "#d500f9",
10687
- A700: "#aa00ff"
10679
+ 700: "#7b1fa2"
10688
10680
  };
10689
10681
  const blue = {
10690
10682
  50: "#e3f2fd",
10691
- 100: "#bbdefb",
10692
10683
  200: "#90caf9",
10693
- 300: "#64b5f6",
10694
10684
  400: "#42a5f5",
10695
- 500: "#2196f3",
10696
- 600: "#1e88e5",
10697
10685
  700: "#1976d2",
10698
- 800: "#1565c0",
10699
- 900: "#0d47a1",
10700
- A100: "#82b1ff",
10701
- A200: "#448aff",
10702
- A400: "#2979ff",
10703
- A700: "#2962ff"
10686
+ 800: "#1565c0"
10704
10687
  };
10705
10688
  const lightBlue = {
10706
- 50: "#e1f5fe",
10707
- 100: "#b3e5fc",
10708
- 200: "#81d4fa",
10709
10689
  300: "#4fc3f7",
10710
10690
  400: "#29b6f6",
10711
10691
  500: "#03a9f4",
10712
- 600: "#039be5",
10713
10692
  700: "#0288d1",
10714
- 800: "#0277bd",
10715
- 900: "#01579b",
10716
- A100: "#80d8ff",
10717
- A200: "#40c4ff",
10718
- A400: "#00b0ff",
10719
- A700: "#0091ea"
10693
+ 900: "#01579b"
10720
10694
  };
10721
10695
  const green = {
10722
- 50: "#e8f5e9",
10723
- 100: "#c8e6c9",
10724
- 200: "#a5d6a7",
10725
10696
  300: "#81c784",
10726
10697
  400: "#66bb6a",
10727
10698
  500: "#4caf50",
10728
- 600: "#43a047",
10729
10699
  700: "#388e3c",
10730
10700
  800: "#2e7d32",
10731
- 900: "#1b5e20",
10732
- A100: "#b9f6ca",
10733
- A200: "#69f0ae",
10734
- A400: "#00e676",
10735
- A700: "#00c853"
10701
+ 900: "#1b5e20"
10736
10702
  };
10737
10703
  const orange = {
10738
- 50: "#fff3e0",
10739
- 100: "#ffe0b2",
10740
- 200: "#ffcc80",
10741
10704
  300: "#ffb74d",
10742
10705
  400: "#ffa726",
10743
10706
  500: "#ff9800",
10744
- 600: "#fb8c00",
10745
10707
  700: "#f57c00",
10746
- 800: "#ef6c00",
10747
- 900: "#e65100",
10748
- A100: "#ffd180",
10749
- A200: "#ffab40",
10750
- A400: "#ff9100",
10751
- A700: "#ff6d00"
10708
+ 900: "#e65100"
10752
10709
  };
10753
10710
  const grey = {
10754
10711
  50: "#fafafa",
@@ -10782,7 +10739,7 @@ function _objectWithoutPropertiesLoose(r2, e) {
10782
10739
  if (null == r2) return {};
10783
10740
  var t2 = {};
10784
10741
  for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
10785
- if (e.includes(n)) continue;
10742
+ if (-1 !== e.indexOf(n)) continue;
10786
10743
  t2[n] = r2[n];
10787
10744
  }
10788
10745
  return t2;
@@ -10805,7 +10762,7 @@ var jsx2 = function jsx3(type, props) {
10805
10762
  var JSX;
10806
10763
  /* @__PURE__ */ (function(_JSX) {
10807
10764
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
10808
- })(jsx2);
10765
+ })(jsx2 || (jsx2 = {}));
10809
10766
  var Global = /* @__PURE__ */ withEmotionCache(function(props, cache2) {
10810
10767
  var styles2 = props.styles;
10811
10768
  var serialized = serializeStyles([styles2], void 0, React$2.useContext(ThemeContext$1));
@@ -15479,7 +15436,7 @@ function requireObjectWithoutPropertiesLoose() {
15479
15436
  if (null == r2) return {};
15480
15437
  var t2 = {};
15481
15438
  for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
15482
- if (e.includes(n)) continue;
15439
+ if (-1 !== e.indexOf(n)) continue;
15483
15440
  t2[n] = r2[n];
15484
15441
  }
15485
15442
  return t2;
@@ -20228,7 +20185,6 @@ function detectOverflow(state, options) {
20228
20185
  var popperOffsets2 = computeOffsets({
20229
20186
  reference: referenceClientRect,
20230
20187
  element: popperRect,
20231
- strategy: "absolute",
20232
20188
  placement
20233
20189
  });
20234
20190
  var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets2));
@@ -20475,7 +20431,6 @@ function popperOffsets(_ref3) {
20475
20431
  state.modifiersData[name] = computeOffsets({
20476
20432
  reference: state.rects.reference,
20477
20433
  element: state.rects.popper,
20478
- strategy: "absolute",
20479
20434
  placement: state.placement
20480
20435
  });
20481
20436
  }
@@ -30712,7 +30667,7 @@ const InputAdornment = /* @__PURE__ */ React$2.forwardRef(function InputAdornmen
30712
30667
  }
30713
30668
  }
30714
30669
  }
30715
- if (!variant) {
30670
+ if (muiFormControl && !variant) {
30716
30671
  variant = muiFormControl.variant;
30717
30672
  }
30718
30673
  const ownerState = _extends({}, props, {
@@ -39273,7 +39228,7 @@ var picocolors_browserExports = picocolors_browser.exports;
39273
39228
  });
39274
39229
  const _log2 = /* @__PURE__ */ _interop_require_default(log$2);
39275
39230
  function _interop_require_default(obj) {
39276
- return obj.__esModule ? obj : {
39231
+ return obj && obj.__esModule ? obj : {
39277
39232
  default: obj
39278
39233
  };
39279
39234
  }
@@ -39770,7 +39725,7 @@ var featureFlags = {};
39770
39725
  })(nodeInterop);
39771
39726
  }
39772
39727
  function _interop_require_wildcard(obj, nodeInterop) {
39773
- if (obj.__esModule) {
39728
+ if (obj && obj.__esModule) {
39774
39729
  return obj;
39775
39730
  }
39776
39731
  if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
@@ -40827,7 +40782,7 @@ var colorNames = {};
40827
40782
  });
40828
40783
  const _colorNames = /* @__PURE__ */ _interop_require_default(colorNames);
40829
40784
  function _interop_require_default(obj) {
40830
- return obj.__esModule ? obj : {
40785
+ return obj && obj.__esModule ? obj : {
40831
40786
  default: obj
40832
40787
  };
40833
40788
  }
@@ -43169,7 +43124,7 @@ var config_full = {
43169
43124
  const _configfull = /* @__PURE__ */ _interop_require_default(config_full);
43170
43125
  const _featureFlags = featureFlags;
43171
43126
  function _interop_require_default(obj) {
43172
- return obj.__esModule ? obj : {
43127
+ return obj && obj.__esModule ? obj : {
43173
43128
  default: obj
43174
43129
  };
43175
43130
  }
@@ -44148,6 +44103,7 @@ var Query = (_g = class extends Removable {
44148
44103
  __privateAdd(this, _initialState);
44149
44104
  __privateAdd(this, _revertState);
44150
44105
  __privateAdd(this, _cache);
44106
+ __privateAdd(this, _client);
44151
44107
  __privateAdd(this, _retryer);
44152
44108
  __privateAdd(this, _defaultOptions);
44153
44109
  __privateAdd(this, _abortSignalConsumed);
@@ -44155,7 +44111,8 @@ var Query = (_g = class extends Removable {
44155
44111
  __privateSet(this, _defaultOptions, config2.defaultOptions);
44156
44112
  this.setOptions(config2.options);
44157
44113
  this.observers = [];
44158
- __privateSet(this, _cache, config2.cache);
44114
+ __privateSet(this, _client, config2.client);
44115
+ __privateSet(this, _cache, __privateGet(this, _client).getQueryCache());
44159
44116
  this.queryKey = config2.queryKey;
44160
44117
  this.queryHash = config2.queryHash;
44161
44118
  __privateSet(this, _initialState, getDefaultState$1(this.options));
@@ -44312,6 +44269,7 @@ var Query = (_g = class extends Removable {
44312
44269
  const fetchFn = () => {
44313
44270
  const queryFn = ensureQueryFn(this.options, fetchOptions2);
44314
44271
  const queryFnContext = {
44272
+ client: __privateGet(this, _client),
44315
44273
  queryKey: this.queryKey,
44316
44274
  meta: this.meta
44317
44275
  };
@@ -44330,6 +44288,7 @@ var Query = (_g = class extends Removable {
44330
44288
  fetchOptions: fetchOptions2,
44331
44289
  options: this.options,
44332
44290
  queryKey: this.queryKey,
44291
+ client: __privateGet(this, _client),
44333
44292
  state: this.state,
44334
44293
  fetchFn
44335
44294
  };
@@ -44412,7 +44371,7 @@ var Query = (_g = class extends Removable {
44412
44371
  }));
44413
44372
  return __privateGet(this, _retryer).start();
44414
44373
  }
44415
- }, _initialState = new WeakMap(), _revertState = new WeakMap(), _cache = new WeakMap(), _retryer = new WeakMap(), _defaultOptions = new WeakMap(), _abortSignalConsumed = new WeakMap(), _Query_instances = new WeakSet(), dispatch_fn = function(action) {
44374
+ }, _initialState = new WeakMap(), _revertState = new WeakMap(), _cache = new WeakMap(), _client = new WeakMap(), _retryer = new WeakMap(), _defaultOptions = new WeakMap(), _abortSignalConsumed = new WeakMap(), _Query_instances = new WeakSet(), dispatch_fn = function(action) {
44416
44375
  const reducer = (state) => {
44417
44376
  switch (action.type) {
44418
44377
  case "failed":
@@ -44530,7 +44489,7 @@ var QueryCache = (_h = class extends Subscribable {
44530
44489
  let query = this.get(queryHash);
44531
44490
  if (!query) {
44532
44491
  query = new Query({
44533
- cache: this,
44492
+ client,
44534
44493
  queryKey,
44535
44494
  queryHash,
44536
44495
  options: client.defaultQueryOptions(options),
@@ -44992,6 +44951,7 @@ function infiniteQueryBehavior(pages) {
44992
44951
  return Promise.resolve(data);
44993
44952
  }
44994
44953
  const queryFnContext = {
44954
+ client: context.client,
44995
44955
  queryKey: context.queryKey,
44996
44956
  pageParam: param,
44997
44957
  direction: previous ? "backward" : "forward",
@@ -45037,6 +44997,7 @@ function infiniteQueryBehavior(pages) {
45037
44997
  _a3,
45038
44998
  fetchFn,
45039
44999
  {
45000
+ client: context.client,
45040
45001
  queryKey: context.queryKey,
45041
45002
  meta: context.options.meta,
45042
45003
  signal: context.signal
@@ -45346,7 +45307,7 @@ var QueryObserver = (_l = class extends Subscribable {
45346
45307
  constructor(client, options) {
45347
45308
  super();
45348
45309
  __privateAdd(this, _QueryObserver_instances);
45349
- __privateAdd(this, _client);
45310
+ __privateAdd(this, _client2);
45350
45311
  __privateAdd(this, _currentQuery);
45351
45312
  __privateAdd(this, _currentQueryInitialState);
45352
45313
  __privateAdd(this, _currentResult);
@@ -45364,7 +45325,7 @@ var QueryObserver = (_l = class extends Subscribable {
45364
45325
  __privateAdd(this, _currentRefetchInterval);
45365
45326
  __privateAdd(this, _trackedProps, /* @__PURE__ */ new Set());
45366
45327
  this.options = options;
45367
- __privateSet(this, _client, client);
45328
+ __privateSet(this, _client2, client);
45368
45329
  __privateSet(this, _selectError, null);
45369
45330
  __privateSet(this, _currentThenable, pendingThenable());
45370
45331
  if (!this.options.experimental_prefetchInRender) {
@@ -45417,7 +45378,7 @@ var QueryObserver = (_l = class extends Subscribable {
45417
45378
  setOptions(options, notifyOptions) {
45418
45379
  const prevOptions = this.options;
45419
45380
  const prevQuery = __privateGet(this, _currentQuery);
45420
- this.options = __privateGet(this, _client).defaultQueryOptions(options);
45381
+ this.options = __privateGet(this, _client2).defaultQueryOptions(options);
45421
45382
  if (this.options.enabled !== void 0 && typeof this.options.enabled !== "boolean" && typeof this.options.enabled !== "function" && typeof resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== "boolean") {
45422
45383
  throw new Error(
45423
45384
  "Expected enabled to be a boolean or a callback that returns a boolean"
@@ -45426,7 +45387,7 @@ var QueryObserver = (_l = class extends Subscribable {
45426
45387
  __privateMethod(this, _QueryObserver_instances, updateQuery_fn).call(this);
45427
45388
  __privateGet(this, _currentQuery).setOptions(this.options);
45428
45389
  if (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) {
45429
- __privateGet(this, _client).getQueryCache().notify({
45390
+ __privateGet(this, _client2).getQueryCache().notify({
45430
45391
  type: "observerOptionsUpdated",
45431
45392
  query: __privateGet(this, _currentQuery),
45432
45393
  observer: this
@@ -45451,7 +45412,7 @@ var QueryObserver = (_l = class extends Subscribable {
45451
45412
  }
45452
45413
  }
45453
45414
  getOptimisticResult(options) {
45454
- const query = __privateGet(this, _client).getQueryCache().build(__privateGet(this, _client), options);
45415
+ const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), options);
45455
45416
  const result = this.createResult(query, options);
45456
45417
  if (shouldAssignObserverCurrentProperties(this, result)) {
45457
45418
  __privateSet(this, _currentResult, result);
@@ -45490,8 +45451,8 @@ var QueryObserver = (_l = class extends Subscribable {
45490
45451
  });
45491
45452
  }
45492
45453
  fetchOptimistic(options) {
45493
- const defaultedOptions = __privateGet(this, _client).defaultQueryOptions(options);
45494
- const query = __privateGet(this, _client).getQueryCache().build(__privateGet(this, _client), defaultedOptions);
45454
+ const defaultedOptions = __privateGet(this, _client2).defaultQueryOptions(options);
45455
+ const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), defaultedOptions);
45495
45456
  return query.fetch().then(() => this.createResult(query, defaultedOptions));
45496
45457
  }
45497
45458
  fetch(fetchOptions2) {
@@ -45693,7 +45654,7 @@ var QueryObserver = (_l = class extends Subscribable {
45693
45654
  __privateMethod(this, _QueryObserver_instances, updateTimers_fn).call(this);
45694
45655
  }
45695
45656
  }
45696
- }, _client = new WeakMap(), _currentQuery = new WeakMap(), _currentQueryInitialState = new WeakMap(), _currentResult = new WeakMap(), _currentResultState = new WeakMap(), _currentResultOptions = new WeakMap(), _currentThenable = new WeakMap(), _selectError = new WeakMap(), _selectFn = new WeakMap(), _selectResult = new WeakMap(), _lastQueryWithDefinedData = new WeakMap(), _staleTimeoutId = new WeakMap(), _refetchIntervalId = new WeakMap(), _currentRefetchInterval = new WeakMap(), _trackedProps = new WeakMap(), _QueryObserver_instances = new WeakSet(), executeFetch_fn = function(fetchOptions2) {
45657
+ }, _client2 = new WeakMap(), _currentQuery = new WeakMap(), _currentQueryInitialState = new WeakMap(), _currentResult = new WeakMap(), _currentResultState = new WeakMap(), _currentResultOptions = new WeakMap(), _currentThenable = new WeakMap(), _selectError = new WeakMap(), _selectFn = new WeakMap(), _selectResult = new WeakMap(), _lastQueryWithDefinedData = new WeakMap(), _staleTimeoutId = new WeakMap(), _refetchIntervalId = new WeakMap(), _currentRefetchInterval = new WeakMap(), _trackedProps = new WeakMap(), _QueryObserver_instances = new WeakSet(), executeFetch_fn = function(fetchOptions2) {
45697
45658
  __privateMethod(this, _QueryObserver_instances, updateQuery_fn).call(this);
45698
45659
  let promise = __privateGet(this, _currentQuery).fetch(
45699
45660
  this.options,
@@ -45746,7 +45707,7 @@ var QueryObserver = (_l = class extends Subscribable {
45746
45707
  __privateSet(this, _refetchIntervalId, void 0);
45747
45708
  }
45748
45709
  }, updateQuery_fn = function() {
45749
- const query = __privateGet(this, _client).getQueryCache().build(__privateGet(this, _client), this.options);
45710
+ const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), this.options);
45750
45711
  if (query === __privateGet(this, _currentQuery)) {
45751
45712
  return;
45752
45713
  }
@@ -45764,7 +45725,7 @@ var QueryObserver = (_l = class extends Subscribable {
45764
45725
  listener2(__privateGet(this, _currentResult));
45765
45726
  });
45766
45727
  }
45767
- __privateGet(this, _client).getQueryCache().notify({
45728
+ __privateGet(this, _client2).getQueryCache().notify({
45768
45729
  query: __privateGet(this, _currentQuery),
45769
45730
  type: "observerResultsUpdated"
45770
45731
  });
@@ -45860,9 +45821,10 @@ var getHasError = ({
45860
45821
  result,
45861
45822
  errorResetBoundary,
45862
45823
  throwOnError,
45863
- query
45824
+ query,
45825
+ suspense
45864
45826
  }) => {
45865
- return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && shouldThrowError(throwOnError, [result.error, query]);
45827
+ return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
45866
45828
  };
45867
45829
  var ensureSuspenseTimers = (defaultedOptions) => {
45868
45830
  const originalStaleTime = defaultedOptions.staleTime;
@@ -45930,7 +45892,8 @@ function useBaseQuery(options, Observer, queryClient2) {
45930
45892
  result,
45931
45893
  errorResetBoundary,
45932
45894
  throwOnError: defaultedOptions.throwOnError,
45933
- query: client.getQueryCache().get(defaultedOptions.queryHash)
45895
+ query: client.getQueryCache().get(defaultedOptions.queryHash),
45896
+ suspense: defaultedOptions.suspense
45934
45897
  })) {
45935
45898
  throw result.error;
45936
45899
  }
@@ -58013,7 +57976,7 @@ function _getRequireWildcardCache$1(nodeInterop) {
58013
57976
  })(nodeInterop);
58014
57977
  }
58015
57978
  function _interopRequireWildcard$1(obj, nodeInterop) {
58016
- if (obj.__esModule) {
57979
+ if (obj && obj.__esModule) {
58017
57980
  return obj;
58018
57981
  }
58019
57982
  if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
@@ -58399,7 +58362,7 @@ function _toPrimitive(input, hint) {
58399
58362
  if (typeof input !== "object" || input === null) return input;
58400
58363
  var prim = input[Symbol.toPrimitive];
58401
58364
  if (prim !== void 0) {
58402
- var res = prim.call(input, hint || "default");
58365
+ var res = prim.call(input, hint);
58403
58366
  if (typeof res !== "object") return res;
58404
58367
  throw new TypeError("@@toPrimitive must return a primitive value.");
58405
58368
  }
@@ -58814,7 +58777,7 @@ _defineProperty(DraggableCore$1, "defaultProps", {
58814
58777
  if (typeof input !== "object" || input === null) return input;
58815
58778
  var prim = input[Symbol.toPrimitive];
58816
58779
  if (prim !== void 0) {
58817
- var res = prim.call(input, hint || "default");
58780
+ var res = prim.call(input, hint);
58818
58781
  if (typeof res !== "object") return res;
58819
58782
  throw new TypeError("@@toPrimitive must return a primitive value.");
58820
58783
  }
@@ -61095,6 +61058,42 @@ const Modal2 = ({
61095
61058
  children2
61096
61059
  ] }) });
61097
61060
  };
61061
+ const propCheckErrorDefault = (problem) => {
61062
+ if (process.env.NODE_ENV === "production") {
61063
+ console.warn(problem);
61064
+ } else {
61065
+ throw new Error(problem);
61066
+ }
61067
+ };
61068
+ const SocketedText = ({
61069
+ children: children2,
61070
+ beforeItem,
61071
+ afterItem,
61072
+ beforeItemSX,
61073
+ afterItemSX,
61074
+ component = "span",
61075
+ href,
61076
+ containerSX,
61077
+ propCheckError = propCheckErrorDefault,
61078
+ ...rest
61079
+ }) => {
61080
+ if (component === "a" && !href) {
61081
+ propCheckError('SocketedText: When using component="a", the "href" prop is required.');
61082
+ }
61083
+ if (beforeItem === void 0 && afterItem === void 0) {
61084
+ propCheckError("SocketedText: Sockets unused; use normal Text/Typography component instead");
61085
+ }
61086
+ return /* @__PURE__ */ jsx$1(Typography, { component, href, ...rest, children: /* @__PURE__ */ jsxs(Box, { component: "span", sx: {
61087
+ display: "inline-flex",
61088
+ alignItems: "center",
61089
+ gap: 1,
61090
+ ...containerSX
61091
+ }, children: [
61092
+ beforeItem && /* @__PURE__ */ jsx$1(Box, { component: "span", sx: beforeItemSX, children: beforeItem }),
61093
+ /* @__PURE__ */ jsx$1(Box, { component: "span", children: children2 }),
61094
+ afterItem && /* @__PURE__ */ jsx$1(Box, { component: "span", sx: afterItemSX, children: afterItem })
61095
+ ] }) });
61096
+ };
61098
61097
  export {
61099
61098
  AppBar2 as AppBar,
61100
61099
  AppChrome,
@@ -61158,6 +61157,7 @@ export {
61158
61157
  SearchIcon,
61159
61158
  SearchResults,
61160
61159
  Skeleton2 as Skeleton,
61160
+ SocketedText,
61161
61161
  TeliAddIcon,
61162
61162
  TeliAutocomplete,
61163
61163
  TeliBasicLayout,
@@ -61216,6 +61216,7 @@ export {
61216
61216
  UserProfileContent,
61217
61217
  UserStatus,
61218
61218
  checkOntology,
61219
+ propCheckErrorDefault,
61219
61220
  useDebounce,
61220
61221
  useExtendedTheme,
61221
61222
  useFloatingPanels