@superblocksteam/library 2.0.3-next.198 → 2.0.3-next.2

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.
Files changed (39) hide show
  1. package/dist/{allPaths-k-ermJRk.js → allPaths-DInKfo9f.js} +2 -2
  2. package/dist/{allPaths-k-ermJRk.js.map → allPaths-DInKfo9f.js.map} +1 -1
  3. package/dist/{allPaths-BTYAJAA3.js → allPaths-suM7y71x.js} +2 -2
  4. package/dist/{allPaths-BTYAJAA3.js.map → allPaths-suM7y71x.js.map} +1 -1
  5. package/dist/{allPathsLoader-XDG2QDHX.js → allPathsLoader-Bj9gR6m4.js} +3 -3
  6. package/dist/{allPathsLoader-DGPQhqI0.js.map → allPathsLoader-Bj9gR6m4.js.map} +1 -1
  7. package/dist/{allPathsLoader-DGPQhqI0.js → allPathsLoader-C6VX9lZI.js} +3 -3
  8. package/dist/{allPathsLoader-XDG2QDHX.js.map → allPathsLoader-C6VX9lZI.js.map} +1 -1
  9. package/dist/{index-CFz3UGkJ.js → index-DHOLy0gg.js} +454 -1041
  10. package/dist/{index-CFz3UGkJ.js.map → index-DHOLy0gg.js.map} +1 -1
  11. package/dist/index.css +1 -172
  12. package/dist/index.js +149 -149
  13. package/dist/{splitPathsBySizeLoader-9ypptKho.js → splitPathsBySizeLoader-K1ovXYr3.js} +2 -2
  14. package/dist/{splitPathsBySizeLoader-9ypptKho.js.map → splitPathsBySizeLoader-K1ovXYr3.js.map} +1 -1
  15. package/dist/{splitPathsBySizeLoader-CW0AvZcf.js → splitPathsBySizeLoader-yyTSdt5z.js} +2 -2
  16. package/dist/{splitPathsBySizeLoader-CW0AvZcf.js.map → splitPathsBySizeLoader-yyTSdt5z.js.map} +1 -1
  17. package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +23 -23
  18. package/dist-types/edit-mode/properties.d.ts +1 -1
  19. package/dist-types/internal-testing/components/modal.d.ts +1 -3
  20. package/dist-types/lib/internal-details/lib/devtools.d.ts +1 -0
  21. package/dist-types/lib/sb-trigger.d.ts +4 -0
  22. package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +3 -4
  23. package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +8 -4
  24. package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +8 -4
  25. package/dist-types/lib/triggers/registry.d.ts +14 -6
  26. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +9 -12
  27. package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +0 -1
  28. package/dist-types/lib/user-facing/components/table/index.d.ts +9 -12
  29. package/dist-types/lib/user-facing/components/table/props.d.ts +9 -12
  30. package/dist-types/lib/user-facing/sb-event-flow.d.ts +2 -4
  31. package/dist-types/lib/user-facing/themes/constants.d.ts +2 -7
  32. package/package.json +4 -3
  33. package/dist/devtools-consolidated-CuKf4Mw6.js +0 -590
  34. package/dist/devtools-consolidated-CuKf4Mw6.js.map +0 -1
  35. package/dist-types/edit-mode/extended-clickable-area.d.ts +0 -9
  36. package/dist-types/lib/internal-details/lib/devtools/devtools-consolidated.d.ts +0 -5
  37. package/dist-types/lib/internal-details/lib/devtools/index.d.ts +0 -4
  38. package/dist-types/lib/internal-details/lib/devtools/serialize-store-data.d.ts +0 -1
  39. package/dist-types/lib/utils/children.d.ts +0 -3
@@ -48,7 +48,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
48
48
  var __privateMethod = (obj, member, method4) => (__accessCheck(obj, member, "access private method"), method4);
49
49
  var _removeSourceIdElement_dec, _setSourceIdElement_dec, _setActiveRootInstanceId_dec, _init, _cancelApi_dec, _runApi_dec, _init2, _renameWidget_dec, _setWidgetProperty_dec, _setWidgetProperties_dec, _writeRuntimeProperties_dec, _deleteComponents_dec, _dropComponent_dec, _createComponent_dec, _batchUpdate_dec, _clearPendingTransactions_dec, _addPendingTransaction_dec, _executeOrAddToBatch_dec, _init3, _addOptimisticCreateWidget_dec, _processRootWidget_dec, _init4, _refreshPositionsAndGetDropConstraints_dec, _init5, _updateChildPositions_dec, _setWidgetPosition_dec, _setActiveTargetRect_dec, _setActiveDragRect_dec, _setDropTargetId_dec, _setInvalidDropTarget_dec, _setValidRootIds_dec, _cancelNewComponentDrag_dec, _startNewComponentDrag_dec, _setIsDragging_dec, _setWidgetFeatures_dec, _init6;
50
50
  import * as React from "react";
51
- import React__default, { isValidElement as isValidElement$1, version as version$2, createContext, useContext, useEffect, useRef, useLayoutEffect as useLayoutEffect$2, Component, useState, useMemo as useMemo$2, useCallback, forwardRef, useImperativeHandle, cloneElement as cloneElement$1, createElement, Suspense, Children, memo, useReducer, PureComponent, useSyncExternalStore, createRef } from "react";
51
+ import React__default, { isValidElement as isValidElement$1, version as version$2, createContext, useContext, useEffect, useRef, useLayoutEffect as useLayoutEffect$2, Component, useState, useMemo as useMemo$2, useCallback, forwardRef, useImperativeHandle, cloneElement as cloneElement$1, createElement, Children, memo, useReducer, PureComponent, useSyncExternalStore, Suspense, createRef } from "react";
52
52
  import { S as SvgClose, a as SvgSystemDanger, b as SvgSystemInfo, c as SvgSystemError, d as SvgSystemSuccess, e as SvgPlus, f as SvgHide, g as SvgChevronDown, h as SvgEmptyCheckbox, i as SvgMinus, j as SvgCheckmark, k as SvgCopy, l as SvgExternalLink, m as SvgPlay, n as SvgDownload, o as SvgTrash, p as SvgFilter, q as SvgFreeze, r as SvgSort, s as SvgEllipsis, t as SvgCrossXs, u as SvgClark } from "./icons-NrNO8p_u.js";
53
53
  import * as ReactDOM from "react-dom";
54
54
  import ReactDOM__default, { unstable_batchedUpdates, flushSync, createPortal } from "react-dom";
@@ -5917,11 +5917,18 @@ if (typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ === "object") {
5917
5917
  $mobx
5918
5918
  });
5919
5919
  }
5920
+ let internalStores = {};
5921
+ function registerStores(stores) {
5922
+ internalStores = { ...internalStores, ...stores };
5923
+ }
5920
5924
  class ConnectionManager {
5921
5925
  // The status of the connection to the remote dev server
5922
5926
  constructor() {
5923
5927
  __publicField(this, "connectionStatus", "pre-init");
5924
5928
  makeAutoObservable(this);
5929
+ registerStores({
5930
+ ConnectionManager: this
5931
+ });
5925
5932
  }
5926
5933
  initializeSocket() {
5927
5934
  this.connectionStatus = "connecting";
@@ -6031,7 +6038,7 @@ const isDimension = (value) => {
6031
6038
  var Dim;
6032
6039
  (function(Dim2) {
6033
6040
  function isEqual2(a3, b3) {
6034
- return Object.is(a3.mode, b3.mode) && Object.is(a3.value, b3.value);
6041
+ return a3.mode === b3.mode && a3.value === b3.value;
6035
6042
  }
6036
6043
  Dim2.isEqual = isEqual2;
6037
6044
  function build(value, mode) {
@@ -43041,6 +43048,9 @@ class InteractionLayerManager {
43041
43048
  __publicField(this, "activeRootInstanceId");
43042
43049
  __publicField(this, "sourceIdElements", /* @__PURE__ */ new Map());
43043
43050
  makeAutoObservable(this);
43051
+ registerStores({
43052
+ InteractionLayerManager: this
43053
+ });
43044
43054
  }
43045
43055
  setActiveRootInstanceId(rootInstanceId) {
43046
43056
  this.activeRootInstanceId = rootInstanceId;
@@ -43161,14 +43171,10 @@ const RunApisTrigger = {
43161
43171
  const ControlModalTrigger = {
43162
43172
  type: TriggerStepType.CONTROL_MODAL,
43163
43173
  async execute(context2, step) {
43164
- if (step.name === void 0) {
43165
- return;
43166
- }
43167
43174
  context2.rootStore.entityManager.runCode({
43168
43175
  scopeId: context2.scopeId,
43169
43176
  name: context2.name,
43170
43177
  func: (state, step2) => {
43171
- if (!state || !step2.name) return;
43172
43178
  if (step2.direction === "open") {
43173
43179
  state[step2.name].isOpen = true;
43174
43180
  } else {
@@ -43178,11 +43184,10 @@ const ControlModalTrigger = {
43178
43184
  args: [step]
43179
43185
  });
43180
43186
  },
43181
- create(modal, direction) {
43182
- const meta = getBindingIdentifier(modal);
43187
+ create(name, direction) {
43183
43188
  return {
43184
43189
  type: TriggerStepType.CONTROL_MODAL,
43185
- name: meta == null ? void 0 : meta.entityName,
43190
+ name,
43186
43191
  direction
43187
43192
  };
43188
43193
  }
@@ -43656,8 +43661,8 @@ function findDOMNode(node2) {
43656
43661
  }
43657
43662
  return null;
43658
43663
  }
43659
- var reactIs$2 = { exports: {} };
43660
- var reactIs_production_min$2 = {};
43664
+ var reactIs$1 = { exports: {} };
43665
+ var reactIs_production_min$1 = {};
43661
43666
  /**
43662
43667
  * @license React
43663
43668
  * react-is.production.min.js
@@ -43667,10 +43672,10 @@ var reactIs_production_min$2 = {};
43667
43672
  * This source code is licensed under the MIT license found in the
43668
43673
  * LICENSE file in the root directory of this source tree.
43669
43674
  */
43670
- var hasRequiredReactIs_production_min$2;
43671
- function requireReactIs_production_min$2() {
43672
- if (hasRequiredReactIs_production_min$2) return reactIs_production_min$2;
43673
- hasRequiredReactIs_production_min$2 = 1;
43675
+ var hasRequiredReactIs_production_min$1;
43676
+ function requireReactIs_production_min$1() {
43677
+ if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
43678
+ hasRequiredReactIs_production_min$1 = 1;
43674
43679
  var b3 = Symbol.for("react.element"), c3 = Symbol.for("react.portal"), d3 = Symbol.for("react.fragment"), e3 = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g2 = Symbol.for("react.provider"), h3 = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m4 = Symbol.for("react.suspense"), n2 = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q3 = Symbol.for("react.lazy"), t3 = Symbol.for("react.offscreen"), u2;
43675
43680
  u2 = Symbol.for("react.module.reference");
43676
43681
  function v2(a3) {
@@ -43703,71 +43708,71 @@ function requireReactIs_production_min$2() {
43703
43708
  }
43704
43709
  }
43705
43710
  }
43706
- reactIs_production_min$2.ContextConsumer = h3;
43707
- reactIs_production_min$2.ContextProvider = g2;
43708
- reactIs_production_min$2.Element = b3;
43709
- reactIs_production_min$2.ForwardRef = l;
43710
- reactIs_production_min$2.Fragment = d3;
43711
- reactIs_production_min$2.Lazy = q3;
43712
- reactIs_production_min$2.Memo = p;
43713
- reactIs_production_min$2.Portal = c3;
43714
- reactIs_production_min$2.Profiler = f;
43715
- reactIs_production_min$2.StrictMode = e3;
43716
- reactIs_production_min$2.Suspense = m4;
43717
- reactIs_production_min$2.SuspenseList = n2;
43718
- reactIs_production_min$2.isAsyncMode = function() {
43711
+ reactIs_production_min$1.ContextConsumer = h3;
43712
+ reactIs_production_min$1.ContextProvider = g2;
43713
+ reactIs_production_min$1.Element = b3;
43714
+ reactIs_production_min$1.ForwardRef = l;
43715
+ reactIs_production_min$1.Fragment = d3;
43716
+ reactIs_production_min$1.Lazy = q3;
43717
+ reactIs_production_min$1.Memo = p;
43718
+ reactIs_production_min$1.Portal = c3;
43719
+ reactIs_production_min$1.Profiler = f;
43720
+ reactIs_production_min$1.StrictMode = e3;
43721
+ reactIs_production_min$1.Suspense = m4;
43722
+ reactIs_production_min$1.SuspenseList = n2;
43723
+ reactIs_production_min$1.isAsyncMode = function() {
43719
43724
  return false;
43720
43725
  };
43721
- reactIs_production_min$2.isConcurrentMode = function() {
43726
+ reactIs_production_min$1.isConcurrentMode = function() {
43722
43727
  return false;
43723
43728
  };
43724
- reactIs_production_min$2.isContextConsumer = function(a3) {
43729
+ reactIs_production_min$1.isContextConsumer = function(a3) {
43725
43730
  return v2(a3) === h3;
43726
43731
  };
43727
- reactIs_production_min$2.isContextProvider = function(a3) {
43732
+ reactIs_production_min$1.isContextProvider = function(a3) {
43728
43733
  return v2(a3) === g2;
43729
43734
  };
43730
- reactIs_production_min$2.isElement = function(a3) {
43735
+ reactIs_production_min$1.isElement = function(a3) {
43731
43736
  return "object" === typeof a3 && null !== a3 && a3.$$typeof === b3;
43732
43737
  };
43733
- reactIs_production_min$2.isForwardRef = function(a3) {
43738
+ reactIs_production_min$1.isForwardRef = function(a3) {
43734
43739
  return v2(a3) === l;
43735
43740
  };
43736
- reactIs_production_min$2.isFragment = function(a3) {
43741
+ reactIs_production_min$1.isFragment = function(a3) {
43737
43742
  return v2(a3) === d3;
43738
43743
  };
43739
- reactIs_production_min$2.isLazy = function(a3) {
43744
+ reactIs_production_min$1.isLazy = function(a3) {
43740
43745
  return v2(a3) === q3;
43741
43746
  };
43742
- reactIs_production_min$2.isMemo = function(a3) {
43747
+ reactIs_production_min$1.isMemo = function(a3) {
43743
43748
  return v2(a3) === p;
43744
43749
  };
43745
- reactIs_production_min$2.isPortal = function(a3) {
43750
+ reactIs_production_min$1.isPortal = function(a3) {
43746
43751
  return v2(a3) === c3;
43747
43752
  };
43748
- reactIs_production_min$2.isProfiler = function(a3) {
43753
+ reactIs_production_min$1.isProfiler = function(a3) {
43749
43754
  return v2(a3) === f;
43750
43755
  };
43751
- reactIs_production_min$2.isStrictMode = function(a3) {
43756
+ reactIs_production_min$1.isStrictMode = function(a3) {
43752
43757
  return v2(a3) === e3;
43753
43758
  };
43754
- reactIs_production_min$2.isSuspense = function(a3) {
43759
+ reactIs_production_min$1.isSuspense = function(a3) {
43755
43760
  return v2(a3) === m4;
43756
43761
  };
43757
- reactIs_production_min$2.isSuspenseList = function(a3) {
43762
+ reactIs_production_min$1.isSuspenseList = function(a3) {
43758
43763
  return v2(a3) === n2;
43759
43764
  };
43760
- reactIs_production_min$2.isValidElementType = function(a3) {
43765
+ reactIs_production_min$1.isValidElementType = function(a3) {
43761
43766
  return "string" === typeof a3 || "function" === typeof a3 || a3 === d3 || a3 === f || a3 === e3 || a3 === m4 || a3 === n2 || a3 === t3 || "object" === typeof a3 && null !== a3 && (a3.$$typeof === q3 || a3.$$typeof === p || a3.$$typeof === g2 || a3.$$typeof === h3 || a3.$$typeof === l || a3.$$typeof === u2 || void 0 !== a3.getModuleId) ? true : false;
43762
43767
  };
43763
- reactIs_production_min$2.typeOf = v2;
43764
- return reactIs_production_min$2;
43768
+ reactIs_production_min$1.typeOf = v2;
43769
+ return reactIs_production_min$1;
43765
43770
  }
43766
- var reactIs_development$2 = {};
43767
- var hasRequiredReactIs_development$2;
43768
- function requireReactIs_development$2() {
43769
- if (hasRequiredReactIs_development$2) return reactIs_development$2;
43770
- hasRequiredReactIs_development$2 = 1;
43771
+ var reactIs_development$1 = {};
43772
+ var hasRequiredReactIs_development$1;
43773
+ function requireReactIs_development$1() {
43774
+ if (hasRequiredReactIs_development$1) return reactIs_development$1;
43775
+ hasRequiredReactIs_development$1 = 1;
43771
43776
  var define_process_env_default2 = {};
43772
43777
  /**
43773
43778
  * @license React
@@ -43922,51 +43927,51 @@ function requireReactIs_development$2() {
43922
43927
  function isSuspenseList(object4) {
43923
43928
  return typeOf(object4) === REACT_SUSPENSE_LIST_TYPE;
43924
43929
  }
43925
- reactIs_development$2.ContextConsumer = ContextConsumer;
43926
- reactIs_development$2.ContextProvider = ContextProvider;
43927
- reactIs_development$2.Element = Element3;
43928
- reactIs_development$2.ForwardRef = ForwardRef;
43929
- reactIs_development$2.Fragment = Fragment;
43930
- reactIs_development$2.Lazy = Lazy;
43931
- reactIs_development$2.Memo = Memo;
43932
- reactIs_development$2.Portal = Portal2;
43933
- reactIs_development$2.Profiler = Profiler;
43934
- reactIs_development$2.StrictMode = StrictMode;
43935
- reactIs_development$2.Suspense = Suspense2;
43936
- reactIs_development$2.SuspenseList = SuspenseList;
43937
- reactIs_development$2.isAsyncMode = isAsyncMode;
43938
- reactIs_development$2.isConcurrentMode = isConcurrentMode;
43939
- reactIs_development$2.isContextConsumer = isContextConsumer;
43940
- reactIs_development$2.isContextProvider = isContextProvider;
43941
- reactIs_development$2.isElement = isElement2;
43942
- reactIs_development$2.isForwardRef = isForwardRef;
43943
- reactIs_development$2.isFragment = isFragment2;
43944
- reactIs_development$2.isLazy = isLazy;
43945
- reactIs_development$2.isMemo = isMemo;
43946
- reactIs_development$2.isPortal = isPortal;
43947
- reactIs_development$2.isProfiler = isProfiler;
43948
- reactIs_development$2.isStrictMode = isStrictMode;
43949
- reactIs_development$2.isSuspense = isSuspense;
43950
- reactIs_development$2.isSuspenseList = isSuspenseList;
43951
- reactIs_development$2.isValidElementType = isValidElementType;
43952
- reactIs_development$2.typeOf = typeOf;
43930
+ reactIs_development$1.ContextConsumer = ContextConsumer;
43931
+ reactIs_development$1.ContextProvider = ContextProvider;
43932
+ reactIs_development$1.Element = Element3;
43933
+ reactIs_development$1.ForwardRef = ForwardRef;
43934
+ reactIs_development$1.Fragment = Fragment;
43935
+ reactIs_development$1.Lazy = Lazy;
43936
+ reactIs_development$1.Memo = Memo;
43937
+ reactIs_development$1.Portal = Portal2;
43938
+ reactIs_development$1.Profiler = Profiler;
43939
+ reactIs_development$1.StrictMode = StrictMode;
43940
+ reactIs_development$1.Suspense = Suspense2;
43941
+ reactIs_development$1.SuspenseList = SuspenseList;
43942
+ reactIs_development$1.isAsyncMode = isAsyncMode;
43943
+ reactIs_development$1.isConcurrentMode = isConcurrentMode;
43944
+ reactIs_development$1.isContextConsumer = isContextConsumer;
43945
+ reactIs_development$1.isContextProvider = isContextProvider;
43946
+ reactIs_development$1.isElement = isElement2;
43947
+ reactIs_development$1.isForwardRef = isForwardRef;
43948
+ reactIs_development$1.isFragment = isFragment2;
43949
+ reactIs_development$1.isLazy = isLazy;
43950
+ reactIs_development$1.isMemo = isMemo;
43951
+ reactIs_development$1.isPortal = isPortal;
43952
+ reactIs_development$1.isProfiler = isProfiler;
43953
+ reactIs_development$1.isStrictMode = isStrictMode;
43954
+ reactIs_development$1.isSuspense = isSuspense;
43955
+ reactIs_development$1.isSuspenseList = isSuspenseList;
43956
+ reactIs_development$1.isValidElementType = isValidElementType;
43957
+ reactIs_development$1.typeOf = typeOf;
43953
43958
  })();
43954
43959
  }
43955
- return reactIs_development$2;
43960
+ return reactIs_development$1;
43956
43961
  }
43957
- var hasRequiredReactIs$2;
43958
- function requireReactIs$2() {
43959
- if (hasRequiredReactIs$2) return reactIs$2.exports;
43960
- hasRequiredReactIs$2 = 1;
43962
+ var hasRequiredReactIs$1;
43963
+ function requireReactIs$1() {
43964
+ if (hasRequiredReactIs$1) return reactIs$1.exports;
43965
+ hasRequiredReactIs$1 = 1;
43961
43966
  var define_process_env_default2 = {};
43962
43967
  if (define_process_env_default2.NODE_ENV === "production") {
43963
- reactIs$2.exports = requireReactIs_production_min$2();
43968
+ reactIs$1.exports = requireReactIs_production_min$1();
43964
43969
  } else {
43965
- reactIs$2.exports = requireReactIs_development$2();
43970
+ reactIs$1.exports = requireReactIs_development$1();
43966
43971
  }
43967
- return reactIs$2.exports;
43972
+ return reactIs$1.exports;
43968
43973
  }
43969
- var reactIsExports$1 = requireReactIs$2();
43974
+ var reactIsExports = requireReactIs$1();
43970
43975
  function useMemo$1(getValue2, condition, shouldUpdate) {
43971
43976
  var cacheRef = React.useRef({});
43972
43977
  if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
@@ -44017,11 +44022,11 @@ var supportRef = function supportRef2(nodeOrComponent) {
44017
44022
  if (isReactElement$2(nodeOrComponent) && ReactMajorVersion >= 19) {
44018
44023
  return true;
44019
44024
  }
44020
- var type5 = reactIsExports$1.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
44021
- if (typeof type5 === "function" && !((_type$prototype = type5.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render) && type5.$$typeof !== reactIsExports$1.ForwardRef) {
44025
+ var type5 = reactIsExports.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
44026
+ if (typeof type5 === "function" && !((_type$prototype = type5.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render) && type5.$$typeof !== reactIsExports.ForwardRef) {
44022
44027
  return false;
44023
44028
  }
44024
- if (typeof nodeOrComponent === "function" && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render) && nodeOrComponent.$$typeof !== reactIsExports$1.ForwardRef) {
44029
+ if (typeof nodeOrComponent === "function" && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render) && nodeOrComponent.$$typeof !== reactIsExports.ForwardRef) {
44025
44030
  return false;
44026
44031
  }
44027
44032
  return true;
@@ -76408,317 +76413,6 @@ function requireCopyToClipboard() {
76408
76413
  }
76409
76414
  var copyToClipboardExports = requireCopyToClipboard();
76410
76415
  const copy$1 = /* @__PURE__ */ getDefaultExportFromCjs(copyToClipboardExports);
76411
- var reactIs$1 = { exports: {} };
76412
- var reactIs_production_min$1 = {};
76413
- /**
76414
- * @license React
76415
- * react-is.production.min.js
76416
- *
76417
- * Copyright (c) Facebook, Inc. and its affiliates.
76418
- *
76419
- * This source code is licensed under the MIT license found in the
76420
- * LICENSE file in the root directory of this source tree.
76421
- */
76422
- var hasRequiredReactIs_production_min$1;
76423
- function requireReactIs_production_min$1() {
76424
- if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
76425
- hasRequiredReactIs_production_min$1 = 1;
76426
- var b3 = Symbol.for("react.element"), c3 = Symbol.for("react.portal"), d3 = Symbol.for("react.fragment"), e3 = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g2 = Symbol.for("react.provider"), h3 = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m4 = Symbol.for("react.suspense"), n2 = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q3 = Symbol.for("react.lazy"), t3 = Symbol.for("react.offscreen"), u2;
76427
- u2 = Symbol.for("react.module.reference");
76428
- function v2(a3) {
76429
- if ("object" === typeof a3 && null !== a3) {
76430
- var r2 = a3.$$typeof;
76431
- switch (r2) {
76432
- case b3:
76433
- switch (a3 = a3.type, a3) {
76434
- case d3:
76435
- case f:
76436
- case e3:
76437
- case m4:
76438
- case n2:
76439
- return a3;
76440
- default:
76441
- switch (a3 = a3 && a3.$$typeof, a3) {
76442
- case k2:
76443
- case h3:
76444
- case l:
76445
- case q3:
76446
- case p:
76447
- case g2:
76448
- return a3;
76449
- default:
76450
- return r2;
76451
- }
76452
- }
76453
- case c3:
76454
- return r2;
76455
- }
76456
- }
76457
- }
76458
- reactIs_production_min$1.ContextConsumer = h3;
76459
- reactIs_production_min$1.ContextProvider = g2;
76460
- reactIs_production_min$1.Element = b3;
76461
- reactIs_production_min$1.ForwardRef = l;
76462
- reactIs_production_min$1.Fragment = d3;
76463
- reactIs_production_min$1.Lazy = q3;
76464
- reactIs_production_min$1.Memo = p;
76465
- reactIs_production_min$1.Portal = c3;
76466
- reactIs_production_min$1.Profiler = f;
76467
- reactIs_production_min$1.StrictMode = e3;
76468
- reactIs_production_min$1.Suspense = m4;
76469
- reactIs_production_min$1.SuspenseList = n2;
76470
- reactIs_production_min$1.isAsyncMode = function() {
76471
- return false;
76472
- };
76473
- reactIs_production_min$1.isConcurrentMode = function() {
76474
- return false;
76475
- };
76476
- reactIs_production_min$1.isContextConsumer = function(a3) {
76477
- return v2(a3) === h3;
76478
- };
76479
- reactIs_production_min$1.isContextProvider = function(a3) {
76480
- return v2(a3) === g2;
76481
- };
76482
- reactIs_production_min$1.isElement = function(a3) {
76483
- return "object" === typeof a3 && null !== a3 && a3.$$typeof === b3;
76484
- };
76485
- reactIs_production_min$1.isForwardRef = function(a3) {
76486
- return v2(a3) === l;
76487
- };
76488
- reactIs_production_min$1.isFragment = function(a3) {
76489
- return v2(a3) === d3;
76490
- };
76491
- reactIs_production_min$1.isLazy = function(a3) {
76492
- return v2(a3) === q3;
76493
- };
76494
- reactIs_production_min$1.isMemo = function(a3) {
76495
- return v2(a3) === p;
76496
- };
76497
- reactIs_production_min$1.isPortal = function(a3) {
76498
- return v2(a3) === c3;
76499
- };
76500
- reactIs_production_min$1.isProfiler = function(a3) {
76501
- return v2(a3) === f;
76502
- };
76503
- reactIs_production_min$1.isStrictMode = function(a3) {
76504
- return v2(a3) === e3;
76505
- };
76506
- reactIs_production_min$1.isSuspense = function(a3) {
76507
- return v2(a3) === m4;
76508
- };
76509
- reactIs_production_min$1.isSuspenseList = function(a3) {
76510
- return v2(a3) === n2;
76511
- };
76512
- reactIs_production_min$1.isValidElementType = function(a3) {
76513
- return "string" === typeof a3 || "function" === typeof a3 || a3 === d3 || a3 === f || a3 === e3 || a3 === m4 || a3 === n2 || a3 === t3 || "object" === typeof a3 && null !== a3 && (a3.$$typeof === q3 || a3.$$typeof === p || a3.$$typeof === g2 || a3.$$typeof === h3 || a3.$$typeof === l || a3.$$typeof === u2 || void 0 !== a3.getModuleId) ? true : false;
76514
- };
76515
- reactIs_production_min$1.typeOf = v2;
76516
- return reactIs_production_min$1;
76517
- }
76518
- var reactIs_development$1 = {};
76519
- var hasRequiredReactIs_development$1;
76520
- function requireReactIs_development$1() {
76521
- if (hasRequiredReactIs_development$1) return reactIs_development$1;
76522
- hasRequiredReactIs_development$1 = 1;
76523
- var define_process_env_default2 = {};
76524
- /**
76525
- * @license React
76526
- * react-is.development.js
76527
- *
76528
- * Copyright (c) Facebook, Inc. and its affiliates.
76529
- *
76530
- * This source code is licensed under the MIT license found in the
76531
- * LICENSE file in the root directory of this source tree.
76532
- */
76533
- if (define_process_env_default2.NODE_ENV !== "production") {
76534
- (function() {
76535
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
76536
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
76537
- var REACT_FRAGMENT_TYPE2 = Symbol.for("react.fragment");
76538
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
76539
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
76540
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
76541
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
76542
- var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
76543
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
76544
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
76545
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
76546
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
76547
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
76548
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
76549
- var enableScopeAPI = false;
76550
- var enableCacheElement = false;
76551
- var enableTransitionTracing = false;
76552
- var enableLegacyHidden = false;
76553
- var enableDebugTracing = false;
76554
- var REACT_MODULE_REFERENCE;
76555
- {
76556
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
76557
- }
76558
- function isValidElementType(type5) {
76559
- if (typeof type5 === "string" || typeof type5 === "function") {
76560
- return true;
76561
- }
76562
- if (type5 === REACT_FRAGMENT_TYPE2 || type5 === REACT_PROFILER_TYPE || enableDebugTracing || type5 === REACT_STRICT_MODE_TYPE || type5 === REACT_SUSPENSE_TYPE || type5 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type5 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
76563
- return true;
76564
- }
76565
- if (typeof type5 === "object" && type5 !== null) {
76566
- if (type5.$$typeof === REACT_LAZY_TYPE || type5.$$typeof === REACT_MEMO_TYPE || type5.$$typeof === REACT_PROVIDER_TYPE || type5.$$typeof === REACT_CONTEXT_TYPE || type5.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
76567
- // types supported by any Flight configuration anywhere since
76568
- // we don't know which Flight build this will end up being used
76569
- // with.
76570
- type5.$$typeof === REACT_MODULE_REFERENCE || type5.getModuleId !== void 0) {
76571
- return true;
76572
- }
76573
- }
76574
- return false;
76575
- }
76576
- function typeOf(object4) {
76577
- if (typeof object4 === "object" && object4 !== null) {
76578
- var $$typeof = object4.$$typeof;
76579
- switch ($$typeof) {
76580
- case REACT_ELEMENT_TYPE:
76581
- var type5 = object4.type;
76582
- switch (type5) {
76583
- case REACT_FRAGMENT_TYPE2:
76584
- case REACT_PROFILER_TYPE:
76585
- case REACT_STRICT_MODE_TYPE:
76586
- case REACT_SUSPENSE_TYPE:
76587
- case REACT_SUSPENSE_LIST_TYPE:
76588
- return type5;
76589
- default:
76590
- var $$typeofType = type5 && type5.$$typeof;
76591
- switch ($$typeofType) {
76592
- case REACT_SERVER_CONTEXT_TYPE:
76593
- case REACT_CONTEXT_TYPE:
76594
- case REACT_FORWARD_REF_TYPE:
76595
- case REACT_LAZY_TYPE:
76596
- case REACT_MEMO_TYPE:
76597
- case REACT_PROVIDER_TYPE:
76598
- return $$typeofType;
76599
- default:
76600
- return $$typeof;
76601
- }
76602
- }
76603
- case REACT_PORTAL_TYPE:
76604
- return $$typeof;
76605
- }
76606
- }
76607
- return void 0;
76608
- }
76609
- var ContextConsumer = REACT_CONTEXT_TYPE;
76610
- var ContextProvider = REACT_PROVIDER_TYPE;
76611
- var Element3 = REACT_ELEMENT_TYPE;
76612
- var ForwardRef = REACT_FORWARD_REF_TYPE;
76613
- var Fragment = REACT_FRAGMENT_TYPE2;
76614
- var Lazy = REACT_LAZY_TYPE;
76615
- var Memo = REACT_MEMO_TYPE;
76616
- var Portal2 = REACT_PORTAL_TYPE;
76617
- var Profiler = REACT_PROFILER_TYPE;
76618
- var StrictMode = REACT_STRICT_MODE_TYPE;
76619
- var Suspense2 = REACT_SUSPENSE_TYPE;
76620
- var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
76621
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
76622
- var hasWarnedAboutDeprecatedIsConcurrentMode = false;
76623
- function isAsyncMode(object4) {
76624
- {
76625
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
76626
- hasWarnedAboutDeprecatedIsAsyncMode = true;
76627
- console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
76628
- }
76629
- }
76630
- return false;
76631
- }
76632
- function isConcurrentMode(object4) {
76633
- {
76634
- if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
76635
- hasWarnedAboutDeprecatedIsConcurrentMode = true;
76636
- console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
76637
- }
76638
- }
76639
- return false;
76640
- }
76641
- function isContextConsumer(object4) {
76642
- return typeOf(object4) === REACT_CONTEXT_TYPE;
76643
- }
76644
- function isContextProvider(object4) {
76645
- return typeOf(object4) === REACT_PROVIDER_TYPE;
76646
- }
76647
- function isElement2(object4) {
76648
- return typeof object4 === "object" && object4 !== null && object4.$$typeof === REACT_ELEMENT_TYPE;
76649
- }
76650
- function isForwardRef(object4) {
76651
- return typeOf(object4) === REACT_FORWARD_REF_TYPE;
76652
- }
76653
- function isFragment2(object4) {
76654
- return typeOf(object4) === REACT_FRAGMENT_TYPE2;
76655
- }
76656
- function isLazy(object4) {
76657
- return typeOf(object4) === REACT_LAZY_TYPE;
76658
- }
76659
- function isMemo(object4) {
76660
- return typeOf(object4) === REACT_MEMO_TYPE;
76661
- }
76662
- function isPortal(object4) {
76663
- return typeOf(object4) === REACT_PORTAL_TYPE;
76664
- }
76665
- function isProfiler(object4) {
76666
- return typeOf(object4) === REACT_PROFILER_TYPE;
76667
- }
76668
- function isStrictMode(object4) {
76669
- return typeOf(object4) === REACT_STRICT_MODE_TYPE;
76670
- }
76671
- function isSuspense(object4) {
76672
- return typeOf(object4) === REACT_SUSPENSE_TYPE;
76673
- }
76674
- function isSuspenseList(object4) {
76675
- return typeOf(object4) === REACT_SUSPENSE_LIST_TYPE;
76676
- }
76677
- reactIs_development$1.ContextConsumer = ContextConsumer;
76678
- reactIs_development$1.ContextProvider = ContextProvider;
76679
- reactIs_development$1.Element = Element3;
76680
- reactIs_development$1.ForwardRef = ForwardRef;
76681
- reactIs_development$1.Fragment = Fragment;
76682
- reactIs_development$1.Lazy = Lazy;
76683
- reactIs_development$1.Memo = Memo;
76684
- reactIs_development$1.Portal = Portal2;
76685
- reactIs_development$1.Profiler = Profiler;
76686
- reactIs_development$1.StrictMode = StrictMode;
76687
- reactIs_development$1.Suspense = Suspense2;
76688
- reactIs_development$1.SuspenseList = SuspenseList;
76689
- reactIs_development$1.isAsyncMode = isAsyncMode;
76690
- reactIs_development$1.isConcurrentMode = isConcurrentMode;
76691
- reactIs_development$1.isContextConsumer = isContextConsumer;
76692
- reactIs_development$1.isContextProvider = isContextProvider;
76693
- reactIs_development$1.isElement = isElement2;
76694
- reactIs_development$1.isForwardRef = isForwardRef;
76695
- reactIs_development$1.isFragment = isFragment2;
76696
- reactIs_development$1.isLazy = isLazy;
76697
- reactIs_development$1.isMemo = isMemo;
76698
- reactIs_development$1.isPortal = isPortal;
76699
- reactIs_development$1.isProfiler = isProfiler;
76700
- reactIs_development$1.isStrictMode = isStrictMode;
76701
- reactIs_development$1.isSuspense = isSuspense;
76702
- reactIs_development$1.isSuspenseList = isSuspenseList;
76703
- reactIs_development$1.isValidElementType = isValidElementType;
76704
- reactIs_development$1.typeOf = typeOf;
76705
- })();
76706
- }
76707
- return reactIs_development$1;
76708
- }
76709
- var hasRequiredReactIs$1;
76710
- function requireReactIs$1() {
76711
- if (hasRequiredReactIs$1) return reactIs$1.exports;
76712
- hasRequiredReactIs$1 = 1;
76713
- var define_process_env_default2 = {};
76714
- if (define_process_env_default2.NODE_ENV === "production") {
76715
- reactIs$1.exports = requireReactIs_production_min$1();
76716
- } else {
76717
- reactIs$1.exports = requireReactIs_development$1();
76718
- }
76719
- return reactIs$1.exports;
76720
- }
76721
- var reactIsExports = requireReactIs$1();
76722
76416
  function stylis_min(W2) {
76723
76417
  function M4(d3, c3, e3, h3, a3) {
76724
76418
  for (var m4 = 0, b3 = 0, v2 = 0, n2 = 0, q3, g2, x3 = 0, K3 = 0, k2, u2 = k2 = q3 = 0, l = 0, r2 = 0, I3 = 0, t3 = 0, B4 = e3.length, J2 = B4 - 1, y4, f = "", p = "", F3 = "", G4 = "", C2; l < B4; ) {
@@ -78414,33 +78108,38 @@ const ShowAlertTrigger = {
78414
78108
  };
78415
78109
  const ResetStateVarTrigger = {
78416
78110
  type: TriggerStepType.RESET_STATE_VAR,
78417
- async execute(context2, step) {
78418
- if (step.state === void 0) {
78111
+ async execute(context2, _step) {
78112
+ if (_step.state === void 0) {
78419
78113
  return;
78420
78114
  }
78115
+ const step = _step;
78421
78116
  context2.rootStore.entityManager.runCode({
78422
78117
  scopeId: context2.scopeId,
78423
78118
  name: context2.name,
78424
- func: () => {
78425
- var _a2;
78426
- return (_a2 = step.state) == null ? void 0 : _a2.set(step.state.defaultValue);
78427
- },
78428
- args: []
78119
+ func: (state, step2) => state[step2.state.name].value = state[step2.state.name].defaultValue,
78120
+ args: [step]
78429
78121
  });
78430
78122
  },
78431
78123
  create(stateVar) {
78124
+ const meta = getBindingIdentifier(stateVar);
78125
+ const state = meta ? {
78126
+ name: meta.entityName,
78127
+ scopeId: stateVar == null ? void 0 : stateVar.scopeId,
78128
+ scope: stateVar == null ? void 0 : stateVar.scope
78129
+ } : void 0;
78432
78130
  return {
78433
78131
  type: TriggerStepType.RESET_STATE_VAR,
78434
- state: stateVar
78132
+ state
78435
78133
  };
78436
78134
  }
78437
78135
  };
78438
78136
  const SetStateVarTrigger = {
78439
78137
  type: TriggerStepType.SET_STATE_VAR,
78440
- async execute(context2, step) {
78441
- if (step.state === void 0) {
78138
+ async execute(context2, _step) {
78139
+ if (_step.state === void 0) {
78442
78140
  return;
78443
78141
  }
78142
+ const step = _step;
78444
78143
  const value = context2.rootStore.entityManager.computeValue({
78445
78144
  scopeId: context2.scopeId,
78446
78145
  name: context2.name,
@@ -78449,18 +78148,22 @@ const SetStateVarTrigger = {
78449
78148
  context2.rootStore.entityManager.runCode({
78450
78149
  scopeId: context2.scopeId,
78451
78150
  name: context2.name,
78452
- func: (state, value2) => {
78453
- var _a2;
78151
+ func: (state, value2, step2) => {
78454
78152
  if (!state) return;
78455
- (_a2 = step.state) == null ? void 0 : _a2.set(value2);
78153
+ state[step2.state.name].value = value2;
78456
78154
  },
78457
- args: [value]
78155
+ args: [value, step]
78458
78156
  });
78459
78157
  },
78460
78158
  create(stateVar, value) {
78159
+ const meta = getBindingIdentifier(stateVar);
78461
78160
  return {
78462
78161
  type: TriggerStepType.SET_STATE_VAR,
78463
- state: stateVar,
78162
+ state: meta ? {
78163
+ name: meta.entityName,
78164
+ scopeId: stateVar == null ? void 0 : stateVar.scopeId,
78165
+ scope: stateVar == null ? void 0 : stateVar.scope
78166
+ } : void 0,
78464
78167
  value
78465
78168
  };
78466
78169
  }
@@ -82741,18 +82444,6 @@ const VALIDATORS = {
82741
82444
  }
82742
82445
  }
82743
82446
  };
82744
- function mergeRelations(existingRelations, relations) {
82745
- if (!existingRelations || existingRelations.length === 0) {
82746
- return relations;
82747
- }
82748
- if (!relations || relations.length === 0) {
82749
- return existingRelations;
82750
- }
82751
- const mergedRelations = existingRelations && existingRelations.length > 0 ? existingRelations.flatMap(
82752
- (existing) => relations.map((relation) => [...existing, ...relation])
82753
- ) : relations;
82754
- return mergedRelations;
82755
- }
82756
82447
  function getChildren(input, path2, entity, scopedState) {
82757
82448
  function getChildrenFromSection(section) {
82758
82449
  return Object.keys(section.props).reduce(
@@ -83189,16 +82880,6 @@ class UnionProp extends Prop {
83189
82880
  getProps() {
83190
82881
  const sharedKeys = Object.keys(this.shared);
83191
82882
  const variants = this.variants;
83192
- const preMergeRelationsMap = variants.reduce(
83193
- (acc, v2) => {
83194
- Object.entries(v2).forEach(([key2, prop]) => {
83195
- if (acc[key2]) return;
83196
- acc[key2] = prop.getRelations() ?? [];
83197
- });
83198
- return acc;
83199
- },
83200
- {}
83201
- );
83202
82883
  const mergedVariants = variants.reduce(
83203
82884
  (acc, v2) => {
83204
82885
  const variantConstants = Object.entries(v2).filter(
@@ -83212,18 +82893,9 @@ class UnionProp extends Prop {
83212
82893
  });
83213
82894
  const filteredVariant = Object.fromEntries(
83214
82895
  Object.entries(v2).filter(([key2]) => !sharedKeys.includes(key2)).map(([key2, prop]) => {
83215
- const existingRelations = (prop == null ? void 0 : prop.getRelations()) ?? [];
83216
- const preMergeRelations = preMergeRelationsMap[key2];
83217
- const existingNonPreMergeRelations = existingRelations.filter(
83218
- (r2) => !preMergeRelations.some((p) => p === r2)
83219
- );
83220
- return [
83221
- key2,
83222
- prop.dependsOn([
83223
- ...existingNonPreMergeRelations,
83224
- ...mergeRelations(preMergeRelations, [relations])
83225
- ])
83226
- ];
82896
+ var _a2;
82897
+ const existingRelations = ((_a2 = acc[key2]) == null ? void 0 : _a2.getRelations()) ?? [];
82898
+ return [key2, prop.dependsOn([...existingRelations, relations])];
83227
82899
  })
83228
82900
  );
83229
82901
  return { ...acc, ...filteredVariant };
@@ -83495,35 +83167,6 @@ function requireRfdc() {
83495
83167
  var rfdcExports = requireRfdc();
83496
83168
  const clone$3 = /* @__PURE__ */ getDefaultExportFromCjs(rfdcExports);
83497
83169
  const fastClone$1 = clone$3({});
83498
- let internalStores = {};
83499
- const SUPPORTED_MODES = ["local-dev"];
83500
- function registerStores(stores) {
83501
- internalStores = { ...internalStores, ...stores };
83502
- if (SUPPORTED_MODES.includes("production")) {
83503
- if (Object.keys(internalStores).length === Object.keys(stores).length) {
83504
- import("./devtools-consolidated-CuKf4Mw6.js").then(({ initializeCustomDevTools, setRegisteredStores }) => {
83505
- setRegisteredStores(internalStores);
83506
- initializeCustomDevTools();
83507
- }).catch((error) => {
83508
- console.warn(
83509
- "[DevTools] Failed to initialize custom devtools:",
83510
- error
83511
- );
83512
- });
83513
- }
83514
- }
83515
- }
83516
- const DevToolsInternal = React__default.lazy(() => {
83517
- return import("./devtools-consolidated-CuKf4Mw6.js").then((module2) => ({
83518
- default: module2.CustomDevTools
83519
- }));
83520
- });
83521
- const DevTools = () => {
83522
- if (!SUPPORTED_MODES.includes("production")) {
83523
- return null;
83524
- }
83525
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DevToolsInternal, {}) });
83526
- };
83527
83170
  const ARGS_VAR_NAME = "$SB_args";
83528
83171
  const USER_JS_CODE_VAR_NAME = "$SB_userJSCode";
83529
83172
  const SNAPSHOT_VAR_NAME = "$SB_snapshot";
@@ -83865,11 +83508,11 @@ class SbEventFlow {
83865
83508
  EventRegistry.controlSlideout.create(slideoutId, action2)
83866
83509
  );
83867
83510
  }
83868
- static controlModal(modal, action2) {
83869
- return SbEventFlow.start().controlModal(modal, action2);
83511
+ static controlModal(modalId, action2) {
83512
+ return SbEventFlow.start().controlModal(modalId, action2);
83870
83513
  }
83871
- controlModal(modal, action2) {
83872
- return this.addStep(EventRegistry.controlModal.create(modal, action2));
83514
+ controlModal(modalId, action2) {
83515
+ return this.addStep(EventRegistry.controlModal.create(modalId, action2));
83873
83516
  }
83874
83517
  static controlTimer(timerId, action2) {
83875
83518
  return SbEventFlow.start().controlTimer(timerId, action2);
@@ -83967,16 +83610,6 @@ class SbEventFlow {
83967
83610
  EventRegistry.triggerEvent.create(eventName, eventData)
83968
83611
  );
83969
83612
  }
83970
- static sequence(eventFlows) {
83971
- return SbEventFlow.start().sequence(eventFlows);
83972
- }
83973
- sequence(eventFlows) {
83974
- this.steps = [
83975
- ...this.steps,
83976
- ...eventFlows.flatMap((eventFlow) => eventFlow.build())
83977
- ];
83978
- return this;
83979
- }
83980
83613
  build() {
83981
83614
  return this.steps;
83982
83615
  }
@@ -86318,6 +85951,9 @@ class OperationManager {
86318
85951
  __publicField(this, "batchOperationTransactionId");
86319
85952
  __publicField(this, "visibleSourceIds", []);
86320
85953
  makeAutoObservable(this);
85954
+ registerStores({
85955
+ OperationManager: this
85956
+ });
86321
85957
  }
86322
85958
  get allPendingTransactions() {
86323
85959
  return this.pendingTransactions;
@@ -86694,6 +86330,9 @@ class PropertiesPanelManager {
86694
86330
  makeAutoObservable(this, {
86695
86331
  _propertyLookupCache: false
86696
86332
  });
86333
+ registerStores({
86334
+ PropertiesPanelManager: this
86335
+ });
86697
86336
  }
86698
86337
  getPropertiesPanel(scopeId, instanceId) {
86699
86338
  const props2 = this.entityManager.getEntityById(scopeId, instanceId);
@@ -86868,18 +86507,6 @@ function getPropertyValue$1({
86868
86507
  }
86869
86508
  return parsed;
86870
86509
  }
86871
- if (property.type === "EVENT" && scopeId && name) {
86872
- const eventFlows = property.value.map((step) => {
86873
- try {
86874
- return getSbEventFlow(step, scopeId);
86875
- } catch {
86876
- return void 0;
86877
- }
86878
- }).filter(
86879
- (eventFlow) => eventFlow !== void 0
86880
- );
86881
- return SbEventFlow.sequence(eventFlows);
86882
- }
86883
86510
  if (property.type === "STATIC" && typeof property.value === "object" && property.value !== null) {
86884
86511
  return Object.entries(property.value).reduce(
86885
86512
  (acc, [key2, value]) => {
@@ -86899,133 +86526,6 @@ function getPropertyValue$1({
86899
86526
  }
86900
86527
  return property.value;
86901
86528
  }
86902
- function getSbEventFlow(step, scopeId) {
86903
- var _a2, _b2, _c2, _d2, _e2, _f2;
86904
- if (!isValidStepDef(step)) {
86905
- return void 0;
86906
- }
86907
- const getEntity = (entityName) => {
86908
- try {
86909
- const entity = rootStore.entityManager.getEntity(
86910
- scopeId,
86911
- getName(entityName)
86912
- );
86913
- if (entity)
86914
- return withBindingIdentifier(entity, {
86915
- entityName,
86916
- scopeId
86917
- });
86918
- } catch {
86919
- return void 0;
86920
- }
86921
- };
86922
- const getEntities = (entityNames) => {
86923
- return entityNames.map(getEntity).filter((entity) => entity !== void 0);
86924
- };
86925
- const createNestedEventFlow = (steps) => {
86926
- return Array.isArray(steps) && steps.length > 0 ? getSbEventFlow(steps, scopeId) : void 0;
86927
- };
86928
- switch (step.type) {
86929
- case "executeApi":
86930
- return SbEventFlow.runApis(
86931
- getEntities(step.apiNames),
86932
- createNestedEventFlow(step.onSuccess ?? []),
86933
- createNestedEventFlow(step.onError ?? [])
86934
- );
86935
- case "cancelApi":
86936
- return SbEventFlow.cancelApis(
86937
- getEntities(step.apiNames),
86938
- createNestedEventFlow(step.onCancel ?? [])
86939
- );
86940
- case "runJs":
86941
- return SbEventFlow.runJS(function(...args) {
86942
- if (step.code) {
86943
- try {
86944
- const cleanCode = step.code.trim().endsWith(";") ? step.code.slice(0, -1) : step.code;
86945
- new Function(`return (${cleanCode})()`).call(this, ...args);
86946
- } catch (e3) {
86947
- console.error("Error executing JS code:", e3);
86948
- }
86949
- }
86950
- });
86951
- case "navigateTo":
86952
- return SbEventFlow.navigateTo({
86953
- url: step.url,
86954
- newWindow: step.newWindow
86955
- });
86956
- case "navigateToApp":
86957
- return SbEventFlow.navigateToApp(step.targetApp.id);
86958
- case "navigateToRoute":
86959
- return SbEventFlow.navigateToRoute(step.routeId);
86960
- case "setQueryParams":
86961
- return SbEventFlow.setQueryParams(
86962
- step.queryParams ? JSON.parse(step.queryParams) : {},
86963
- step.keepQueryParams
86964
- );
86965
- case "controlSlideout": {
86966
- const slideoutEntity = getEntity(step.name);
86967
- if (!slideoutEntity) return void 0;
86968
- return SbEventFlow.controlSlideout(step.name, step.direction);
86969
- }
86970
- case "controlModal": {
86971
- const modalEntity = getEntity(step.name);
86972
- if (!modalEntity) return void 0;
86973
- return SbEventFlow.controlModal(modalEntity, step.direction);
86974
- }
86975
- case "controlTimer": {
86976
- const timerEntity = getEntity(step.name);
86977
- if (!timerEntity) return void 0;
86978
- return SbEventFlow.controlTimer(step.name, step.command);
86979
- }
86980
- case "setStateVar": {
86981
- const stateEntity = getEntity((_a2 = step.state) == null ? void 0 : _a2.name);
86982
- if (!stateEntity) return void 0;
86983
- const value = isPropertyInfo(step.value) ? getPropertyValue$1({
86984
- property: step.value,
86985
- scopeId,
86986
- name: getName((_b2 = step.state) == null ? void 0 : _b2.name)
86987
- }) : step.value;
86988
- return SbEventFlow.setStateVar(stateEntity, value);
86989
- }
86990
- case "resetStateVar": {
86991
- const resetStateEntity = getEntity((_c2 = step.state) == null ? void 0 : _c2.name);
86992
- if (!resetStateEntity) return void 0;
86993
- return SbEventFlow.resetStateVar(resetStateEntity);
86994
- }
86995
- case "resetComponent": {
86996
- const resetWidgetEntity = getEntity((_d2 = step.widget) == null ? void 0 : _d2.name);
86997
- if (!resetWidgetEntity) return void 0;
86998
- return SbEventFlow.resetComponent(
86999
- step.widget,
87000
- step.propertyName,
87001
- step.resetChildren
87002
- );
87003
- }
87004
- case "setComponentProperty": {
87005
- const setWidgetEntity = getEntity((_e2 = step.widget) == null ? void 0 : _e2.name);
87006
- if (!setWidgetEntity) return void 0;
87007
- return SbEventFlow.setComponentProperty(
87008
- step.widget,
87009
- step.propertyName,
87010
- step.propertyValue
87011
- );
87012
- }
87013
- case "showAlert":
87014
- return SbEventFlow.showAlert(
87015
- step.message,
87016
- step.style,
87017
- step.alertDuration,
87018
- step.alertPosition
87019
- );
87020
- case "setProfile":
87021
- return SbEventFlow.setProfile(step.profileId, step.profileAction);
87022
- case "triggerEvent":
87023
- return SbEventFlow.triggerEvent((_f2 = step.event) == null ? void 0 : _f2.name, step.eventPayload);
87024
- default:
87025
- console.warn("Unhandled runtime step type", step.type);
87026
- return void 0;
87027
- }
87028
- }
87029
86529
  const getNormalizedIdInfo = (params) => {
87030
86530
  var _a2, _b2;
87031
86531
  const name = (_a2 = params.bind) == null ? void 0 : _a2.entityName;
@@ -87040,21 +86540,6 @@ function isSbComponent(child) {
87040
86540
  var _a2;
87041
86541
  return typeof child === "object" && ((_a2 = child.type) == null ? void 0 : _a2.isSb) === superblocksComponentSymbol;
87042
86542
  }
87043
- function getValidChildrenNodes(children) {
87044
- if (Array.isArray(children)) {
87045
- return children.filter(isValidReactNode);
87046
- }
87047
- if (isValidReactNode(children)) {
87048
- return [children];
87049
- }
87050
- return [];
87051
- }
87052
- function isValidReactNode(element) {
87053
- if (Array.isArray(element)) {
87054
- return element.every(isValidReactNode);
87055
- }
87056
- return React__default.isValidElement(element) || typeof element !== "object" || element === null;
87057
- }
87058
86543
  class RuntimeWidgetsManager {
87059
86544
  constructor(nameManager) {
87060
86545
  __publicField(this, "widgets", {});
@@ -87068,6 +86553,9 @@ class RuntimeWidgetsManager {
87068
86553
  addWidgetFromPayload: action,
87069
86554
  sourceToInstanceIdSample: observable
87070
86555
  });
86556
+ registerStores({
86557
+ RuntimeManager: this
86558
+ });
87071
86559
  }
87072
86560
  setWidgetMeta(instanceId, meta) {
87073
86561
  const existingMeta = this.widgets[instanceId];
@@ -87094,7 +86582,7 @@ class RuntimeWidgetsManager {
87094
86582
  const traverse = (params2) => {
87095
86583
  var _a2;
87096
86584
  const { props: props2, type: type5, parentInstanceId, node: node2, isSbComponent: isSbComponent$1, identifier: identifier2 } = params2;
87097
- const childrenArr = typeof props2.children === "function" ? [props2.children] : React__default.Children.toArray(getValidChildrenNodes(props2.children));
86585
+ const childrenArr = typeof props2.children === "function" ? [props2.children] : React__default.Children.toArray(props2.children);
87098
86586
  const metaChildren = [];
87099
86587
  for (const child of childrenArr) {
87100
86588
  let childElement;
@@ -87268,7 +86756,7 @@ class RuntimeEntitiesManager {
87268
86756
  if (!meta) {
87269
86757
  return void 0;
87270
86758
  }
87271
- if (!this.hasEditOperationsPending()) {
86759
+ if (!this.hasEditOperationsPending) {
87272
86760
  return meta;
87273
86761
  }
87274
86762
  const sourceId = meta.sourceId;
@@ -87415,8 +86903,9 @@ class RuntimeEntitiesManager {
87415
86903
  this.nameManager = nameManager;
87416
86904
  this.entityManager = entityManager;
87417
86905
  this.widgets = new RuntimeWidgetsManager(nameManager);
87418
- makeAutoObservable(this, {
87419
- widgets: false
86906
+ makeAutoObservable(this);
86907
+ registerStores({
86908
+ DeployedRuntimeManager: this
87420
86909
  });
87421
86910
  }
87422
86911
  processRootWidget(params) {
@@ -87574,13 +87063,13 @@ class RuntimeEntitiesManager {
87574
87063
  }
87575
87064
  // TODO will need to include all other operations like
87576
87065
  // widget creation/deletion, etc.
87577
- hasEditOperationsPending() {
87066
+ get hasEditOperationsPending() {
87578
87067
  const hasPendingOperations = getEditStore().operationManager.hasPendingOperations;
87579
87068
  const hasPendingResize = getEditStore().ui.resizing.hasAnyPendingResize;
87580
87069
  const shouldRezisePage = getEditStore().ui.dnd.shouldResizePage;
87581
87070
  return hasPendingOperations || hasPendingResize || shouldRezisePage;
87582
87071
  }
87583
- getPendingOperations() {
87072
+ get getPendingOperations() {
87584
87073
  const pendingResizes = getEditStore().ui.resizing.pendingResizes;
87585
87074
  return [
87586
87075
  ...getEditStore().operationManager.allPendingTransactions,
@@ -87843,6 +87332,9 @@ class GridManager {
87843
87332
  this.root = root2;
87844
87333
  this.dnd = dnd;
87845
87334
  makeAutoObservable(this);
87335
+ registerStores({
87336
+ GridManager: this
87337
+ });
87846
87338
  }
87847
87339
  get draggedInstanceId() {
87848
87340
  var _a2;
@@ -88363,6 +87855,9 @@ class StackManager {
88363
87855
  this.root = root2;
88364
87856
  this.dnd = dnd;
88365
87857
  makeAutoObservable(this);
87858
+ registerStores({
87859
+ StackManager: this
87860
+ });
88366
87861
  }
88367
87862
  refreshPositionsAndGetDropIndex() {
88368
87863
  if (this.dnd.dropTargetId) {
@@ -88432,6 +87927,9 @@ class DragAndDropManager {
88432
87927
  this.stack = new StackManager(root2, this);
88433
87928
  this.grid = new GridManager(root2, this);
88434
87929
  makeAutoObservable(this);
87930
+ registerStores({
87931
+ DragAndDropManager: this
87932
+ });
88435
87933
  startEditorSync({
88436
87934
  store: this,
88437
87935
  storeId: "dnd",
@@ -88672,6 +88170,9 @@ class ResizingManager {
88672
88170
  __publicField(this, "_activeResizes", /* @__PURE__ */ new Map());
88673
88171
  this.root = root2;
88674
88172
  makeAutoObservable(this);
88173
+ registerStores({
88174
+ ResizingManager: this
88175
+ });
88675
88176
  startEditorSync({
88676
88177
  store: this,
88677
88178
  storeId: "resizing",
@@ -89006,6 +88507,9 @@ class UIStore {
89006
88507
  setFocusedInstanceId: action,
89007
88508
  selectWidget: action
89008
88509
  });
88510
+ registerStores({
88511
+ UIManager: this
88512
+ });
89009
88513
  }
89010
88514
  // TODO (Alex): For these getters, we should differentiate between source and instance selection
89011
88515
  isSourceSelected(sourceId) {
@@ -90979,14 +90483,14 @@ function getLoaderFn$1(options) {
90979
90483
  if (!(loader === "all")) return [3, 3];
90980
90484
  return [4, import(
90981
90485
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
90982
- "./allPathsLoader-DGPQhqI0.js"
90486
+ "./allPathsLoader-Bj9gR6m4.js"
90983
90487
  )];
90984
90488
  case 2:
90985
90489
  return [2, _b2.sent().allPathsLoader];
90986
90490
  case 3:
90987
90491
  return [4, import(
90988
90492
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
90989
- "./splitPathsBySizeLoader-9ypptKho.js"
90493
+ "./splitPathsBySizeLoader-K1ovXYr3.js"
90990
90494
  )];
90991
90495
  case 4:
90992
90496
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -99544,7 +99048,7 @@ const DEFAULT_TYPOGRAPHIES_NEW = {
99544
99048
  },
99545
99049
  buttonLabel: {
99546
99050
  ...DEFAULT_TYPOGRAPHIES_LEGACY.buttonLabel,
99547
- lineHeight: 1.2
99051
+ lineHeight: 1.1
99548
99052
  },
99549
99053
  code: {
99550
99054
  ...DEFAULT_TYPOGRAPHIES_LEGACY.code,
@@ -99707,6 +99211,12 @@ const BOX_SHADOWS = {
99707
99211
  dark: "0 3px 6px -4px rgba(160, 160, 160, 0.03), 0 6px 16px 0 rgba(160, 160, 160, 0.01)"
99708
99212
  }
99709
99213
  };
99214
+ const BUTTON_PADDING = {
99215
+ left: { mode: "px", value: 10 },
99216
+ right: { mode: "px", value: 10 },
99217
+ top: { mode: "px", value: 9 },
99218
+ bottom: { mode: "px", value: 9 }
99219
+ };
99710
99220
  const INPUT_PADDING = {
99711
99221
  left: Dim.px(10),
99712
99222
  right: Dim.px(10),
@@ -99714,7 +99224,6 @@ const INPUT_PADDING = {
99714
99224
  bottom: Dim.px(8)
99715
99225
  };
99716
99226
  const DROPDOWN_PADDING = INPUT_PADDING;
99717
- const BUTTON_PADDING = INPUT_PADDING;
99718
99227
  const KEY_VALUE_PADDING = {
99719
99228
  left: Dim.px(20),
99720
99229
  right: Dim.px(20),
@@ -100143,7 +99652,7 @@ const useStableEffect = (effect2, obj, options = {}) => {
100143
99652
  return isEqual2(val, old);
100144
99653
  }
100145
99654
  }
100146
- return Object.is(val, old);
99655
+ return val === old;
100147
99656
  });
100148
99657
  const propRemoved = Object.keys(ref2.current).some((key2) => !(key2 in obj));
100149
99658
  if (propsChanged || propRemoved) {
@@ -101404,8 +100913,8 @@ const shineAnimation = We$1`
101404
100913
  }
101405
100914
  `;
101406
100915
  const Skeleton2 = qe$1.div`
101407
- height: var(--height);
101408
- width: var(--width);
100916
+ width: 24px;
100917
+ height: 24px;
101409
100918
  border-radius: 50%;
101410
100919
  background: linear-gradient(110deg, #ececec 10%, #f5f5f5 30%, #ececec 60%);
101411
100920
  background-size: 200% 100%;
@@ -111585,8 +111094,14 @@ const useStyleWithSize = (props2) => {
111585
111094
  {
111586
111095
  cold: true,
111587
111096
  customEqualChecks: [
111588
- [isDimension, Dim.isEqual],
111589
- [lodashExports.isObject, (a3, b3) => lodashExports.isEqual(a3, b3)]
111097
+ [
111098
+ isDimension,
111099
+ (a3, b3) => a3.mode === b3.mode && a3.value === b3.value
111100
+ ],
111101
+ [
111102
+ lodashExports.isObject,
111103
+ (a3, b3) => lodashExports.isEqual(a3, b3)
111104
+ ]
111590
111105
  ]
111591
111106
  }
111592
111107
  );
@@ -111631,7 +111146,7 @@ const ReactiveComponent = observer(function Component2({
111631
111146
  return stylePropWithSize;
111632
111147
  }, [reactiveProps.isVisible, stylePropWithSize]);
111633
111148
  const { setStyle, getFallbackStyle } = useComponentSuspenseStyle();
111634
- useEffect(() => {
111149
+ useMemo$2(() => {
111635
111150
  setStyle(styleProp);
111636
111151
  }, [styleProp, setStyle]);
111637
111152
  const instanceIdProps = { [WIDGET_INSTANCE_ID_ATTRIBUTE]: instanceId };
@@ -115949,19 +115464,6 @@ const DroppableWidget = observer(
115949
115464
  return /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: props2.children });
115950
115465
  }
115951
115466
  );
115952
- const EXTENDED_CLICKABLE_AREA_DELTA = 6;
115953
- const EXTENDED_CLICKABLE_AREA_TYPES = ["SbButton"];
115954
- const EXTENDED_CLICKABLE_ANCHOR_CSS = {
115955
- top: `calc(anchor(top) - ${EXTENDED_CLICKABLE_AREA_DELTA}px)`,
115956
- left: `calc(anchor(left) - ${EXTENDED_CLICKABLE_AREA_DELTA}px)`,
115957
- right: `calc(anchor(right) - ${EXTENDED_CLICKABLE_AREA_DELTA}px)`,
115958
- bottom: `calc(anchor(bottom) - ${EXTENDED_CLICKABLE_AREA_DELTA}px)`
115959
- };
115960
- const EXTENDED_CLICKABLE_ANCHOR_CLIP_PATH = `polygon(
115961
- 0% 0%, 0% 100%, 100% 100%, 100% 0%,
115962
- 0% 0%, ${EXTENDED_CLICKABLE_AREA_DELTA}px ${EXTENDED_CLICKABLE_AREA_DELTA}px, calc(100% - ${EXTENDED_CLICKABLE_AREA_DELTA}px) ${EXTENDED_CLICKABLE_AREA_DELTA}px,
115963
- calc(100% - ${EXTENDED_CLICKABLE_AREA_DELTA}px) calc(100% - ${EXTENDED_CLICKABLE_AREA_DELTA}px), ${EXTENDED_CLICKABLE_AREA_DELTA}px calc(100% - ${EXTENDED_CLICKABLE_AREA_DELTA}px), ${EXTENDED_CLICKABLE_AREA_DELTA}px ${EXTENDED_CLICKABLE_AREA_DELTA}px
115964
- )`;
115965
115467
  function useRegisterSourceElement(sourceId) {
115966
115468
  const instanceIdRef = useRef(null);
115967
115469
  return useCallback(
@@ -117778,6 +117280,22 @@ const DraggableWrapper = (props2) => {
117778
117280
  }
117779
117281
  );
117780
117282
  };
117283
+ const getRepositionNamePill = (instanceId) => {
117284
+ var _a2, _b2, _c2, _d2;
117285
+ const parentInstanceId = (_a2 = getEditStore().runtimeEntitiesManager.getEditorWidgetMeta(
117286
+ instanceId
117287
+ )) == null ? void 0 : _a2.parentInstanceId;
117288
+ const parentWidget = parentInstanceId ? getEditStore().runtimeEntitiesManager.getEditorWidgetMeta(
117289
+ parentInstanceId
117290
+ ) : void 0;
117291
+ if ((parentWidget == null ? void 0 : parentWidget.type) === "SbPage") {
117292
+ return ((_b2 = parentWidget == null ? void 0 : parentWidget.children) == null ? void 0 : _b2.length) === 1;
117293
+ } else if ((parentWidget == null ? void 0 : parentWidget.type) === "SbSection") {
117294
+ return ((_d2 = (_c2 = parentWidget == null ? void 0 : parentWidget.props) == null ? void 0 : _c2.height) == null ? void 0 : _d2.mode) === "fill";
117295
+ } else {
117296
+ return false;
117297
+ }
117298
+ };
117781
117299
  const NamePillDiv = (params) => {
117782
117300
  const {
117783
117301
  attributes: attributes2 = {},
@@ -117789,6 +117307,7 @@ const NamePillDiv = (params) => {
117789
117307
  isVisible: isVisible2
117790
117308
  } = params;
117791
117309
  const { canResizeWidth: canResizeWidth2, canResizeHeight: canResizeHeight2 } = useResizeCapabilities(instanceId);
117310
+ const repositionNamePill = getRepositionNamePill(instanceId);
117792
117311
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
117793
117312
  "div",
117794
117313
  {
@@ -117812,7 +117331,13 @@ const NamePillDiv = (params) => {
117812
117331
  zIndex: Layers$1.namePill,
117813
117332
  display: "flex",
117814
117333
  alignItems: "center",
117815
- gap: "4px"
117334
+ gap: "4px",
117335
+ ...repositionNamePill ? {
117336
+ top: "anchor(top)",
117337
+ bottom: void 0,
117338
+ marginTop: "3px",
117339
+ marginRight: "3px"
117340
+ } : {}
117816
117341
  },
117817
117342
  "data-sb-pill-id": instanceId,
117818
117343
  onClick: (ev) => {
@@ -117995,7 +117520,6 @@ const InteractionRect = (props2) => {
117995
117520
  left: "anchor(left)",
117996
117521
  right: "anchor(right)",
117997
117522
  bottom: "anchor(bottom)",
117998
- ...EXTENDED_CLICKABLE_AREA_TYPES.includes(type5 ?? "") && selectionType === "FOCUSED" ? EXTENDED_CLICKABLE_ANCHOR_CSS : {},
117999
117523
  visibility: isDragging ? "hidden" : "visible",
118000
117524
  anchorName: getWidgetRectAnchorName(instanceId),
118001
117525
  positionAnchor: getWidgetAnchorName(instanceId),
@@ -118043,27 +117567,7 @@ const selectDisplayNameAndVisibility = (instanceId) => {
118043
117567
  };
118044
117568
  };
118045
117569
  const calculateWidgetsAtCursor = (params) => {
118046
- let elements = document.elementsFromPoint(params.x, params.y);
118047
- if (params.delta) {
118048
- elements = [
118049
- ...document.elementsFromPoint(
118050
- params.x - params.delta.x,
118051
- params.y - params.delta.y
118052
- ),
118053
- ...document.elementsFromPoint(
118054
- params.x + params.delta.x,
118055
- params.y + params.delta.y
118056
- ),
118057
- ...document.elementsFromPoint(
118058
- params.x - params.delta.x,
118059
- params.y + params.delta.y
118060
- ),
118061
- ...document.elementsFromPoint(
118062
- params.x + params.delta.x,
118063
- params.y - params.delta.y
118064
- )
118065
- ];
118066
- }
117570
+ const elements = document.elementsFromPoint(params.x, params.y);
118067
117571
  const hoveredPills = [];
118068
117572
  const hoveredActual = [];
118069
117573
  elements.forEach((element) => {
@@ -118085,30 +117589,6 @@ const calculateWidgetsAtCursor = (params) => {
118085
117589
  hoveredActual
118086
117590
  };
118087
117591
  };
118088
- function getFocusedWidget(event, rootType, rootElement, editStore2, delta, types2) {
118089
- if (!rootElement) {
118090
- return null;
118091
- }
118092
- const { hoveredPills, hoveredActual } = calculateWidgetsAtCursor({
118093
- x: event.clientX,
118094
- y: event.clientY,
118095
- rootType,
118096
- rootElement,
118097
- delta
118098
- });
118099
- const instanceIds = [...hoveredPills, ...hoveredActual];
118100
- const focusedWidget = instanceIds.find((id2) => {
118101
- const widgetMeta = editStore2.runtimeEntitiesManager.getEditorWidgetMeta(id2);
118102
- const sourceIdInstanceCount = editStore2.interactionLayerManager.getSourceIdElements(
118103
- (widgetMeta == null ? void 0 : widgetMeta.sourceId) ?? ""
118104
- ).length;
118105
- return (types2 === void 0 || types2.includes((widgetMeta == null ? void 0 : widgetMeta.type) ?? "")) && (widgetMeta == null ? void 0 : widgetMeta.isSbComponent) && !(widgetMeta == null ? void 0 : widgetMeta.isInCustomComponent) && sourceIdInstanceCount <= 1;
118106
- }) ?? null;
118107
- if (focusedWidget) {
118108
- return focusedWidget;
118109
- }
118110
- return null;
118111
- }
118112
117592
  function useWidgetHover(rootType) {
118113
117593
  useEffect(() => {
118114
117594
  const rootElement = document.getElementById(
@@ -118116,26 +117596,22 @@ function useWidgetHover(rootType) {
118116
117596
  );
118117
117597
  const editStore2 = getEditStore();
118118
117598
  const handleMouseMove = (event) => {
118119
- const focusedWidgetExtended = getFocusedWidget(
118120
- event,
117599
+ const { hoveredPills, hoveredActual } = calculateWidgetsAtCursor({
117600
+ x: event.clientX,
117601
+ y: event.clientY,
118121
117602
  rootType,
118122
- rootElement,
118123
- editStore2,
118124
- { x: EXTENDED_CLICKABLE_AREA_DELTA, y: EXTENDED_CLICKABLE_AREA_DELTA },
118125
- EXTENDED_CLICKABLE_AREA_TYPES
118126
- );
118127
- if (focusedWidgetExtended) {
118128
- editStore2.ui.setFocusedInstanceId(focusedWidgetExtended);
118129
- } else {
118130
- const focusedWidget = getFocusedWidget(
118131
- event,
118132
- rootType,
118133
- rootElement,
118134
- editStore2
118135
- );
118136
- if (focusedWidget) {
118137
- editStore2.ui.setFocusedInstanceId(focusedWidget);
118138
- }
117603
+ rootElement
117604
+ });
117605
+ const instanceIds = [...hoveredPills, ...hoveredActual];
117606
+ const focusedWidget = instanceIds.find((id2) => {
117607
+ const widgetMeta = editStore2.runtimeEntitiesManager.getEditorWidgetMeta(id2);
117608
+ const sourceIdInstanceCount = editStore2.interactionLayerManager.getSourceIdElements(
117609
+ (widgetMeta == null ? void 0 : widgetMeta.sourceId) ?? ""
117610
+ ).length;
117611
+ return (widgetMeta == null ? void 0 : widgetMeta.isSbComponent) && !(widgetMeta == null ? void 0 : widgetMeta.isInCustomComponent) && sourceIdInstanceCount <= 1;
117612
+ }) ?? null;
117613
+ if (focusedWidget) {
117614
+ editStore2.ui.setFocusedInstanceId(focusedWidget);
118139
117615
  }
118140
117616
  };
118141
117617
  const throttledHandleMouseMove = throttle(handleMouseMove, 25);
@@ -118243,7 +117719,7 @@ const stableEffectOptions$1 = {
118243
117719
  /* isType, isEqual */
118244
117720
  [(a3) => isBindingString(a3), isBindingEqual],
118245
117721
  [(a3) => isName(a3), isNameEqual],
118246
- [(a3) => isDimension(a3), Dim.isEqual],
117722
+ [(a3) => isDimension(a3), (a3, b3) => Dim.isEqual(a3, b3)],
118247
117723
  [(a3) => typeof a3 === "function", (a3, b3) => a3.toString() === b3.toString()],
118248
117724
  [(a3) => typeof a3 === "string", (a3, b3) => a3 === b3],
118249
117725
  [(a3) => typeof a3 === "object" && a3 !== null, (a3, b3) => _$2.isEqual(a3, b3)]
@@ -118376,24 +117852,6 @@ const EditWrapper = observer(function EditWrapper2(props2) {
118376
117852
  const scopeName = rootStore.entityManager.getScopeName(
118377
117853
  props2.identifier.scopeId
118378
117854
  );
118379
- const handleClick = (ev) => {
118380
- const sourceIdInstanceCount = editStore2.interactionLayerManager.getSourceIdElements(
118381
- props2.identifier.sourceId
118382
- ).length;
118383
- if (sourceIdInstanceCount > 1) {
118384
- return;
118385
- }
118386
- if (isInCustomComponent && customComponentInstanceId) {
118387
- editStore2.ui.selectWidget(customComponentInstanceId);
118388
- ev.stopPropagation();
118389
- return;
118390
- }
118391
- editStore2.ui.selectWidget(props2.identifier.instanceId);
118392
- ev.stopPropagation();
118393
- };
118394
- const expandedClickArea = EXTENDED_CLICKABLE_AREA_TYPES.includes(
118395
- (meta == null ? void 0 : meta.type) ?? ""
118396
- );
118397
117855
  const node2 = /* @__PURE__ */ jsxRuntimeExports.jsxs(
118398
117856
  "div",
118399
117857
  {
@@ -118405,25 +117863,24 @@ const EditWrapper = observer(function EditWrapper2(props2) {
118405
117863
  "data-can-drop": props2.isDroppable,
118406
117864
  "data-selected": isSelected,
118407
117865
  "data-has-local-binding": hasLocalBinding,
118408
- onClick: handleClick,
118409
117866
  id: getEditWrapperId(props2.identifier.instanceId),
117867
+ onClick: (ev) => {
117868
+ const sourceIdInstanceCount = editStore2.interactionLayerManager.getSourceIdElements(
117869
+ props2.identifier.sourceId
117870
+ ).length;
117871
+ if (sourceIdInstanceCount > 1) {
117872
+ return;
117873
+ }
117874
+ if (isInCustomComponent && customComponentInstanceId) {
117875
+ editStore2.ui.selectWidget(customComponentInstanceId);
117876
+ ev.stopPropagation();
117877
+ return;
117878
+ }
117879
+ editStore2.ui.selectWidget(props2.identifier.instanceId);
117880
+ ev.stopPropagation();
117881
+ },
118410
117882
  ref: registerSourceElement,
118411
117883
  children: [
118412
- expandedClickArea && /* @__PURE__ */ jsxRuntimeExports.jsx(
118413
- "div",
118414
- {
118415
- onClick: handleClick,
118416
- style: {
118417
- position: "absolute",
118418
- ...EXTENDED_CLICKABLE_ANCHOR_CSS,
118419
- zIndex: 0,
118420
- pointerEvents: "auto",
118421
- overflow: "hidden",
118422
- positionAnchor: getWidgetAnchorName(identifier2.instanceId),
118423
- clipPath: EXTENDED_CLICKABLE_ANCHOR_CLIP_PATH
118424
- }
118425
- }
118426
- ),
118427
117884
  showVisibilityBackground && /* @__PURE__ */ jsxRuntimeExports.jsx(
118428
117885
  "div",
118429
117886
  {
@@ -118625,8 +118082,7 @@ const stableEffectOptions = {
118625
118082
  /* isType, isEqual */
118626
118083
  [(a3) => isBindingString(a3), isBindingEqual],
118627
118084
  [(a3) => isName(a3), isNameEqual],
118628
- [(a3) => isDimension(a3), Dim.isEqual],
118629
- [(a3) => isObservable(a3), (a3, b3) => lodashExports.isEqual(a3, b3)],
118085
+ [(a3) => isDimension(a3), (a3, b3) => Dim.isEqual(a3, b3)],
118630
118086
  [(a3) => typeof a3 === "function", (a3, b3) => a3.toString() === b3.toString()],
118631
118087
  [(a3) => typeof a3 === "string", (a3, b3) => a3 === b3],
118632
118088
  [(a3) => typeof a3 === "object" && a3 !== null, (a3, b3) => lodashExports.isEqual(a3, b3)]
@@ -118669,7 +118125,7 @@ function useTrackRuntimeWidget(instanceId, params) {
118669
118125
  };
118670
118126
  }
118671
118127
  const editStore2 = getEditStore();
118672
- if (isEditing && editStore2.runtimeEntitiesManager.hasEditOperationsPending()) {
118128
+ if (isEditing && editStore2.runtimeEntitiesManager.hasEditOperationsPending) {
118673
118129
  const meta = editStore2.runtimeEntitiesManager.getEditorWidgetMeta(instanceId);
118674
118130
  if (meta == null ? void 0 : meta.props) {
118675
118131
  const {
@@ -134089,7 +133545,7 @@ function requireRef() {
134089
133545
  ref.useComposeRef = ref.supportRef = ref.supportNodeRef = ref.getNodeRef = ref.fillRef = ref.composeRef = void 0;
134090
133546
  var _typeof2 = _interopRequireDefault(require_typeof());
134091
133547
  var _react = React__default;
134092
- var _reactIs = requireReactIs$2();
133548
+ var _reactIs = requireReactIs$1();
134093
133549
  var _useMemo = _interopRequireDefault(requireUseMemo());
134094
133550
  var _isFragment = _interopRequireDefault(requireIsFragment());
134095
133551
  var ReactMajorVersion2 = Number(_react.version.split(".")[0]);
@@ -135880,31 +135336,20 @@ const textStyleProps = {
135880
135336
  })),
135881
135337
  cellBackground: cellBackgroundProp
135882
135338
  };
135883
- const computedValueUnion = Prop.union({
135884
- shared: {
135885
- isDerived: Prop.boolean().default(false)
135886
- },
135887
- variants: [
135888
- {
135889
- isDerived: Prop.literal(false)
135890
- },
135891
- {
135892
- isDerived: Prop.literal(true),
135893
- computedValue: Prop.string().readAndWrite().propertiesPanel({
135894
- label: "Computed value"
135895
- // todo: add special control that can use currentRow
135896
- })
135897
- }
135898
- ]
135899
- }).getProps();
135900
135339
  const textColumnProperties = {
135901
135340
  general: {
135341
+ // TODO: bring this back when we are ready
135342
+ // computedValue: Prop.string().readAndWrite().propertiesPanel({
135343
+ // label: "Computed value",
135344
+ // controlType: "COMPUTE_TABLE_VALUE",
135345
+ // }),
135902
135346
  displayedValue: Prop.string().readAndWrite().propertiesPanel({
135903
135347
  label: "Displayed value",
135904
135348
  controlType: "COMPUTE_TABLE_VALUE"
135905
135349
  })
135906
135350
  },
135907
135351
  presentation: {
135352
+ ...cellIconProps,
135908
135353
  textWrap: Prop.boolean().readAndWrite().propertiesPanel({
135909
135354
  label: "Wrap text",
135910
135355
  controlType: "SWITCH"
@@ -135994,6 +135439,11 @@ const buttonColumnProperties = {
135994
135439
  };
135995
135440
  const numberColumnProperties = {
135996
135441
  general: {
135442
+ // TODO: bring this back when we are ready
135443
+ // computedValue: Prop.string().readAndWrite().propertiesPanel({
135444
+ // label: "Computed value",
135445
+ // controlType: "COMPUTE_TABLE_VALUE",
135446
+ // }),
135997
135447
  notation: Prop.string().readAndWrite().propertiesPanel({
135998
135448
  label: "Number format",
135999
135449
  controlType: "DROP_DOWN",
@@ -136097,32 +135547,6 @@ const imageColumnProperties = {
136097
135547
  cellBackground: cellBackgroundProp
136098
135548
  }
136099
135549
  };
136100
- const manageTimezoneUnion = Prop.union({
136101
- shared: {
136102
- manageTimezone: Prop.boolean().default(false).readAndWrite().propertiesPanel({
136103
- label: "Manage timezone",
136104
- controlType: "SWITCH"
136105
- })
136106
- },
136107
- variants: [
136108
- {
136109
- manageTimezone: Prop.literal(false)
136110
- },
136111
- {
136112
- manageTimezone: Prop.literal(true),
136113
- valueTimezone: Prop.string().readAndWrite().propertiesPanel({
136114
- label: "Value timezone",
136115
- controlType: "DROP_DOWN",
136116
- options: TIMEZONE_OPTIONS
136117
- }),
136118
- displayTimezone: Prop.string().readAndWrite().propertiesPanel({
136119
- label: "Display timezone",
136120
- controlType: "DROP_DOWN",
136121
- options: TIMEZONE_OPTIONS
136122
- })
136123
- }
136124
- ]
136125
- }).getProps();
136126
135550
  const dateColumnProperties = {
136127
135551
  general: {
136128
135552
  inputFormat: Prop.string().readAndWrite().propertiesPanel({
@@ -136135,7 +135559,21 @@ const dateColumnProperties = {
136135
135559
  controlType: "DROP_DOWN",
136136
135560
  options: DATE_OUTPUT_FORMATS
136137
135561
  }),
136138
- ...manageTimezoneUnion
135562
+ // todo: this should actually be a union too (nested unions ?)
135563
+ manageTimezone: Prop.boolean().readAndWrite().propertiesPanel({
135564
+ label: "Manage timezone",
135565
+ controlType: "SWITCH"
135566
+ }),
135567
+ valueTimezone: Prop.string().readAndWrite().propertiesPanel({
135568
+ label: "Value timezone",
135569
+ controlType: "DROP_DOWN",
135570
+ options: TIMEZONE_OPTIONS
135571
+ }),
135572
+ displayTimezone: Prop.string().readAndWrite().propertiesPanel({
135573
+ label: "Display timezone",
135574
+ controlType: "DROP_DOWN",
135575
+ options: TIMEZONE_OPTIONS
135576
+ })
136139
135577
  },
136140
135578
  presentation: {
136141
135579
  ...cellIconProps,
@@ -136147,7 +135585,13 @@ const dateColumnProperties = {
136147
135585
  }
136148
135586
  };
136149
135587
  const booleanColumnProperties = {
136150
- general: {},
135588
+ general: {
135589
+ // TODO: bring this back when we are ready
135590
+ // computedValue: Prop.string().readAndWrite().propertiesPanel({
135591
+ // label: "Computed value",
135592
+ // controlType: "COMPUTE_TABLE_VALUE",
135593
+ // }),
135594
+ },
136151
135595
  presentation: {
136152
135596
  horizontalAlign: horizontalAlignProp(),
136153
135597
  verticalAlign: verticalAlignProp(),
@@ -136183,14 +135627,26 @@ const booleanColumnProperties = {
136183
135627
  }
136184
135628
  };
136185
135629
  const videoColumnProperties = {
136186
- general: {},
135630
+ general: {
135631
+ // TODO: bring this back when we are ready
135632
+ // computedValue: Prop.string().readAndWrite().propertiesPanel({
135633
+ // label: "Computed value",
135634
+ // controlType: "COMPUTE_TABLE_VALUE",
135635
+ // }),
135636
+ },
136187
135637
  presentation: {
136188
135638
  horizontalAlign: horizontalAlignProp(),
136189
135639
  cellBackground: cellBackgroundProp
136190
135640
  }
136191
135641
  };
136192
135642
  const tagsColumnProperties = {
136193
- general: {},
135643
+ general: {
135644
+ // TODO: bring this back when we are ready
135645
+ // computedValue: Prop.string().readAndWrite().propertiesPanel({
135646
+ // label: "Computed value",
135647
+ // controlType: "COMPUTE_TABLE_VALUE",
135648
+ // }),
135649
+ },
136194
135650
  presentation: {
136195
135651
  horizontalAlign: horizontalAlignProp(),
136196
135652
  verticalAlign: verticalAlignProp(),
@@ -136227,67 +135683,54 @@ const columnPanelConfig = {
136227
135683
  variants: [
136228
135684
  {
136229
135685
  columnType: Prop.unset(),
136230
- ...computedValueUnion,
136231
135686
  ...textColumnProperties.general
136232
135687
  },
136233
135688
  {
136234
135689
  columnType: Prop.literal(ColumnType.TEXT),
136235
- ...computedValueUnion,
136236
135690
  ...textColumnProperties.general
136237
135691
  },
136238
135692
  {
136239
135693
  columnType: Prop.literal(ColumnType.NUMBER),
136240
- ...computedValueUnion,
136241
135694
  ...numberColumnProperties.general
136242
135695
  },
136243
135696
  {
136244
135697
  columnType: Prop.literal(ColumnType.CURRENCY),
136245
- ...computedValueUnion,
136246
135698
  ...currencyColumnProperties.general
136247
135699
  },
136248
135700
  {
136249
135701
  columnType: Prop.literal(ColumnType.PERCENTAGE),
136250
- ...computedValueUnion,
136251
135702
  ...percentageColumnProperties.general
136252
135703
  },
136253
135704
  {
136254
135705
  columnType: Prop.literal(ColumnType.IMAGE),
136255
- ...computedValueUnion,
136256
135706
  ...imageColumnProperties.general
136257
135707
  },
136258
135708
  {
136259
135709
  columnType: Prop.literal(ColumnType.VIDEO),
136260
- ...computedValueUnion,
136261
135710
  ...videoColumnProperties.general
136262
135711
  },
136263
135712
  {
136264
135713
  columnType: Prop.literal(ColumnType.DATE),
136265
- ...computedValueUnion,
136266
135714
  ...dateColumnProperties.general
136267
135715
  },
136268
135716
  {
136269
135717
  columnType: Prop.literal(ColumnType.BUTTON),
136270
- // no computedValue (just buttonLabel)
136271
135718
  ...buttonColumnProperties.general
136272
135719
  },
136273
135720
  {
136274
135721
  columnType: Prop.literal(ColumnType.LINK),
136275
- // no computedValue (just linkUrl/linkLabel)
136276
135722
  ...linkColumnProperties.general
136277
135723
  },
136278
135724
  {
136279
135725
  columnType: Prop.literal(ColumnType.BOOLEAN),
136280
- ...computedValueUnion,
136281
135726
  ...booleanColumnProperties.general
136282
135727
  },
136283
135728
  {
136284
135729
  columnType: Prop.literal(ColumnType.TAGS),
136285
- ...computedValueUnion,
136286
135730
  ...tagsColumnProperties.general
136287
135731
  },
136288
135732
  {
136289
135733
  columnType: Prop.literal(ColumnType.EMAIL),
136290
- ...computedValueUnion,
136291
135734
  ...emailColumnProperties.general
136292
135735
  }
136293
135736
  ]
@@ -145434,14 +144877,14 @@ function getLoaderFn(options) {
145434
144877
  if (!(loader === "all")) return [3, 3];
145435
144878
  return [4, import(
145436
144879
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
145437
- "./allPathsLoader-XDG2QDHX.js"
144880
+ "./allPathsLoader-C6VX9lZI.js"
145438
144881
  )];
145439
144882
  case 2:
145440
144883
  return [2, _b2.sent().allPathsLoader];
145441
144884
  case 3:
145442
144885
  return [4, import(
145443
144886
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
145444
- "./splitPathsBySizeLoader-CW0AvZcf.js"
144887
+ "./splitPathsBySizeLoader-yyTSdt5z.js"
145445
144888
  )];
145446
144889
  case 4:
145447
144890
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -153436,8 +152879,7 @@ const StyledControlGroup$1 = qe$1(ControlGroup)`
153436
152879
  }
153437
152880
  }
153438
152881
 
153439
- .${INPUT_LEFT_CONTAINER$1},
153440
- .${INPUT_ACTION$1} {
152882
+ .${INPUT_LEFT_CONTAINER$1}, .${INPUT_ACTION$1} {
153441
152883
  display: flex;
153442
152884
  align-items: center;
153443
152885
  height: 100%;
@@ -153773,32 +153215,24 @@ class DatePickerComponent extends React__default.Component {
153773
153215
  minHeight: this.props.inputLineHeightPx ? `${this.props.inputLineHeightPx + INPUT_ADDITIONAL_MIN_HEIGHT$1}px` : void 0
153774
153216
  },
153775
153217
  onClick: this.props.onInputClick,
153776
- leftIcon: this.props.icon ? (
153777
- /**
153778
- * Use `leftIcon` (with Blueprint's `INPUT_LEFT_CONTAINER` CSS class) instead of `leftElement`.
153779
- * Blueprint measures `leftElement` width after render to set input padding.
153780
- * If the element isn't present (e.g., Suspense, modals), it measures 0 and sets `padding-left: 0`, causing overlap.
153781
- * Setting the style to `paddingLeft` is overridden by Blueprint.
153782
- */
153783
- /* @__PURE__ */ jsxRuntimeExports.jsx(
153784
- "div",
153785
- {
153786
- className: `IconWrapper ${CLASS_NAMES.ICON} ${INPUT_LEFT_CONTAINER$1} ${isInputFocused ? CLASS_NAMES.ACTIVE_MODIFIER : ""} ${this.props.isDisabled || this.props.selectedDate === "" || this.props.selectedDate == null ? CLASS_NAMES.DISABLED_MODIFIER : ""} ${!this.props.isValid ? CLASS_NAMES.ERROR_MODIFIER : ""}`,
153787
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
153788
- DynamicSVG,
153789
- {
153790
- iconName: this.props.icon,
153791
- size: this.props.iconSize ?? DEFAULT_ICON_SIZE$1
153792
- }
153793
- )
153794
- }
153795
- )
153796
- ) : null,
153797
- rightElement: !formatIncludesTimezone(displayFormat) && this.props.showTimezone ? /* @__PURE__ */ jsxRuntimeExports.jsx(Timezone, { timezone: this.displayTimezone }) : void 0,
153798
- onChange: this.onInputChanged,
153218
+ leftElement: this.props.icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(
153219
+ "div",
153220
+ {
153221
+ className: `IconWrapper ${CLASS_NAMES.ICON} ${isInputFocused ? CLASS_NAMES.ACTIVE_MODIFIER : ""} ${this.props.isDisabled || this.props.selectedDate === "" || this.props.selectedDate == null ? CLASS_NAMES.DISABLED_MODIFIER : ""} ${!this.props.isValid ? CLASS_NAMES.ERROR_MODIFIER : ""}`,
153222
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
153223
+ DynamicSVG,
153224
+ {
153225
+ iconName: this.props.icon,
153226
+ size: this.props.iconSize ?? DEFAULT_ICON_SIZE$1
153227
+ }
153228
+ )
153229
+ }
153230
+ ) : void 0,
153799
153231
  // @ts-expect-error extra props
153800
153232
  "data-invalid": !this.props.isValid && !this.state.isOpen,
153801
- "data-active": this.state.isOpen
153233
+ "data-active": this.state.isOpen,
153234
+ rightElement: !formatIncludesTimezone(displayFormat) && this.props.showTimezone ? /* @__PURE__ */ jsxRuntimeExports.jsx(Timezone, { timezone: this.displayTimezone }) : void 0,
153235
+ onChange: this.onInputChanged
153802
153236
  },
153803
153237
  popoverProps: {
153804
153238
  ...this.props.forceOpen ? { isOpen: this.state.isOpen } : {},
@@ -162257,17 +161691,6 @@ function getSelectedRows(props2) {
162257
161691
  const selectedRows = selectedRowIndices.map((ind) => filteredTableData[ind]).filter(Boolean);
162258
161692
  return selectedRows;
162259
161693
  }
162260
- const isDerivedColumn = (tableData, columnId) => {
162261
- if (!tableData || tableData.length === 0) {
162262
- return true;
162263
- }
162264
- const firstRow = tableData[0];
162265
- if (!firstRow) {
162266
- return true;
162267
- }
162268
- const isInRow = columnId in firstRow;
162269
- return !isInRow;
162270
- };
162271
161694
  function getFilteredTableData(props2) {
162272
161695
  var _a2;
162273
161696
  if (!props2.tableData) {
@@ -162299,8 +161722,7 @@ function getFilteredTableData(props2) {
162299
161722
  return;
162300
161723
  }
162301
161724
  let computedValues = [];
162302
- if (column2 && column2.computedValue && // ignore computed values for non-derived columns (they can only use displayed values)
162303
- isDerivedColumn(derivedTableData, columnId)) {
161725
+ if (column2 && column2.computedValue) {
162304
161726
  if (lodashExports.isString(column2.computedValue)) {
162305
161727
  try {
162306
161728
  computedValues = JSON.parse(column2.computedValue);
@@ -182823,7 +182245,6 @@ const SbDatePicker = registerSbComponent(
182823
182245
  backgroundColor: props2.backgroundColor,
182824
182246
  textStyle: props2.textStyle
182825
182247
  });
182826
- const iconSize = useInputIconSize({ textStyle: props2.textStyle });
182827
182248
  return /* @__PURE__ */ jsxRuntimeExports.jsx(DatePickerContainer, { ...passThroughProps, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
182828
182249
  DatePickerComponent,
182829
182250
  {
@@ -182845,7 +182266,6 @@ const SbDatePicker = registerSbComponent(
182845
182266
  timezone: props2.manageTimezone ? props2.valueTimezone : void 0,
182846
182267
  showTimezone: !!props2.manageTimezone,
182847
182268
  icon: props2.icon,
182848
- iconSize,
182849
182269
  onDatePickerClosed: handleDatePickerClosed,
182850
182270
  placeholder: props2.placeholder,
182851
182271
  labelStyleOverride: labelProps == null ? void 0 : labelProps.style,
@@ -186414,7 +185834,7 @@ const SbProvider = function SbProvider2({
186414
185834
  },
186415
185835
  id: "sb-provider-root",
186416
185836
  children: [
186417
- /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary2, { theme: userAccessibleTheme, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
185837
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary2, { theme: userAccessibleTheme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
186418
185838
  "div",
186419
185839
  {
186420
185840
  id: CANVAS_ROOT_ID,
@@ -186427,10 +185847,7 @@ const SbProvider = function SbProvider2({
186427
185847
  overflow: "hidden",
186428
185848
  position: "relative"
186429
185849
  },
186430
- children: [
186431
- /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme: userAccessibleTheme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(GlobalScope, { children: isEmbedded ? /* @__PURE__ */ jsxRuntimeExports.jsx(EmbedWrapper, { children }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Auth0Wrapper, { children }) }) }),
186432
- /* @__PURE__ */ jsxRuntimeExports.jsx(DevTools, {})
186433
- ]
185850
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme: userAccessibleTheme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(GlobalScope, { children: isEmbedded ? /* @__PURE__ */ jsxRuntimeExports.jsx(EmbedWrapper, { children }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Auth0Wrapper, { children }) }) })
186434
185851
  }
186435
185852
  ) }),
186436
185853
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: MODAL_TARGET_ROOT_ID, "data-superblocks": MODAL_TARGET_ROOT_ID })
@@ -197843,149 +197260,145 @@ function requireClient() {
197843
197260
  }
197844
197261
  var clientExports = requireClient();
197845
197262
  export {
197846
- clientExports as $,
197263
+ HashRouter as $,
197847
197264
  AppStateVarPersistence6 as A,
197848
- SbProvider as B,
197849
- SbEventFlow as C,
197850
- copyToClipboard as D,
197851
- navigateTo as E,
197852
- setQueryParams as F,
197853
- download as G,
197854
- showAlert as H,
197265
+ setQueryParams as B,
197266
+ download as C,
197267
+ showAlert as D,
197268
+ logoutIntegrations as E,
197269
+ registerScope as F,
197270
+ registerPage as G,
197271
+ createSbScope as H,
197855
197272
  IconSize$2 as I,
197856
- logoutIntegrations as J,
197857
- registerScope as K,
197858
- registerPage as L,
197859
- createSbScope as M,
197860
- Global as N,
197861
- Embed as O,
197862
- Env as P,
197863
- SbEvent as Q,
197864
- useUpdateProperties as R,
197273
+ Global as J,
197274
+ Embed as K,
197275
+ Env as L,
197276
+ SbEvent as M,
197277
+ useUpdateProperties as N,
197278
+ useTheme as O,
197279
+ Prop as P,
197280
+ sbComputed as Q,
197281
+ Dim as R,
197865
197282
  SbButton as S,
197866
197283
  Theme as T,
197867
- useTheme as U,
197868
- Prop as V,
197869
- sbComputed as W,
197870
- Dim as X,
197871
- SB as Y,
197872
- Outlet as Z,
197284
+ SB as U,
197285
+ Outlet as V,
197286
+ clientExports as W,
197287
+ Await as X,
197288
+ BrowserRouter as Y,
197289
+ Form2 as Z,
197873
197290
  __awaiter as _,
197874
197291
  __generator as a,
197875
- createStaticHandler2 as a$,
197876
- Await as a0,
197877
- BrowserRouter as a1,
197878
- Form2 as a2,
197879
- HashRouter as a3,
197880
- IDLE_BLOCKER as a4,
197881
- IDLE_FETCHER as a5,
197882
- IDLE_NAVIGATION as a6,
197883
- Link as a7,
197884
- Links as a8,
197885
- MemoryRouter as a9,
197886
- createBrowserHistory as aA,
197887
- createClientRoutes as aB,
197888
- createClientRoutesWithHMRRevalidationOptOut as aC,
197889
- createRouter as aD,
197890
- decodeViaTurboStream as aE,
197891
- deserializeErrors2 as aF,
197892
- getPatchRoutesOnNavigationFunction as aG,
197893
- getSingleFetchDataStrategy as aH,
197894
- invariant as aI,
197895
- mapRouteProperties as aJ,
197896
- shouldHydrateRouteLoader as aK,
197897
- useFogOFWarDiscovery as aL,
197898
- useScrollRestoration as aM,
197899
- createBrowserRouter as aN,
197900
- createCookie as aO,
197901
- createCookieSessionStorage as aP,
197902
- createHashRouter as aQ,
197903
- createMemoryRouter as aR,
197904
- createMemorySessionStorage as aS,
197905
- createPath as aT,
197906
- createRequestHandler as aU,
197907
- createRoutesFromChildren as aV,
197908
- createRoutesFromElements as aW,
197909
- createRoutesStub as aX,
197910
- createSearchParams as aY,
197911
- createSession as aZ,
197912
- createSessionStorage as a_,
197913
- Meta as aa,
197914
- NavLink as ab,
197915
- Navigate as ac,
197916
- Action as ad,
197917
- PrefetchPageLinks as ae,
197918
- Route as af,
197919
- Router as ag,
197920
- RouterProvider as ah,
197921
- Routes as ai,
197922
- Scripts as aj,
197923
- ScrollRestoration as ak,
197924
- ServerRouter as al,
197925
- StaticRouter as am,
197926
- StaticRouterProvider as an,
197927
- DataRouterContext as ao,
197928
- DataRouterStateContext as ap,
197929
- ErrorResponseImpl as aq,
197930
- FetchersContext as ar,
197931
- FrameworkContext as as,
197932
- LocationContext as at,
197933
- NavigationContext as au,
197934
- RemixErrorBoundary as av,
197935
- RouteContext as aw,
197936
- ServerMode as ax,
197937
- SingleFetchRedirectSymbol as ay,
197938
- ViewTransitionContext as az,
197292
+ href as a$,
197293
+ IDLE_BLOCKER as a0,
197294
+ IDLE_FETCHER as a1,
197295
+ IDLE_NAVIGATION as a2,
197296
+ Link as a3,
197297
+ Links as a4,
197298
+ MemoryRouter as a5,
197299
+ Meta as a6,
197300
+ NavLink as a7,
197301
+ Navigate as a8,
197302
+ Action as a9,
197303
+ decodeViaTurboStream as aA,
197304
+ deserializeErrors2 as aB,
197305
+ getPatchRoutesOnNavigationFunction as aC,
197306
+ getSingleFetchDataStrategy as aD,
197307
+ invariant as aE,
197308
+ mapRouteProperties as aF,
197309
+ shouldHydrateRouteLoader as aG,
197310
+ useFogOFWarDiscovery as aH,
197311
+ useScrollRestoration as aI,
197312
+ createBrowserRouter as aJ,
197313
+ createCookie as aK,
197314
+ createCookieSessionStorage as aL,
197315
+ createHashRouter as aM,
197316
+ createMemoryRouter as aN,
197317
+ createMemorySessionStorage as aO,
197318
+ createPath as aP,
197319
+ createRequestHandler as aQ,
197320
+ createRoutesFromChildren as aR,
197321
+ createRoutesFromElements as aS,
197322
+ createRoutesStub as aT,
197323
+ createSearchParams as aU,
197324
+ createSession as aV,
197325
+ createSessionStorage as aW,
197326
+ createStaticHandler2 as aX,
197327
+ createStaticRouter as aY,
197328
+ data as aZ,
197329
+ generatePath as a_,
197330
+ PrefetchPageLinks as aa,
197331
+ Route as ab,
197332
+ Router as ac,
197333
+ RouterProvider as ad,
197334
+ Routes as ae,
197335
+ Scripts as af,
197336
+ ScrollRestoration as ag,
197337
+ ServerRouter as ah,
197338
+ StaticRouter as ai,
197339
+ StaticRouterProvider as aj,
197340
+ DataRouterContext as ak,
197341
+ DataRouterStateContext as al,
197342
+ ErrorResponseImpl as am,
197343
+ FetchersContext as an,
197344
+ FrameworkContext as ao,
197345
+ LocationContext as ap,
197346
+ NavigationContext as aq,
197347
+ RemixErrorBoundary as ar,
197348
+ RouteContext as as,
197349
+ ServerMode as at,
197350
+ SingleFetchRedirectSymbol as au,
197351
+ ViewTransitionContext as av,
197352
+ createBrowserHistory as aw,
197353
+ createClientRoutes as ax,
197354
+ createClientRoutesWithHMRRevalidationOptOut as ay,
197355
+ createRouter as az,
197939
197356
  IconSize as b,
197940
- createStaticRouter as b0,
197941
- data as b1,
197942
- generatePath as b2,
197943
- href as b3,
197944
- isCookie as b4,
197945
- isRouteErrorResponse as b5,
197946
- isSession as b6,
197947
- matchPath as b7,
197948
- matchRoutes as b8,
197949
- parsePath as b9,
197950
- useNavigation as bA,
197951
- useNavigationType as bB,
197952
- useOutlet as bC,
197953
- useOutletContext as bD,
197954
- useParams as bE,
197955
- useResolvedPath as bF,
197956
- useRevalidator as bG,
197957
- useRouteError as bH,
197958
- useRouteLoaderData as bI,
197959
- useRoutes as bJ,
197960
- useSearchParams as bK,
197961
- useSubmit as bL,
197962
- useViewTransitionState as bM,
197963
- redirect as ba,
197964
- redirectDocument as bb,
197965
- renderMatches as bc,
197966
- replace2 as bd,
197967
- resolvePath as be,
197968
- HistoryRouter as bf,
197969
- unstable_RouterContextProvider as bg,
197970
- unstable_createContext as bh,
197971
- setDevServerHooks as bi,
197972
- usePrompt as bj,
197973
- useActionData as bk,
197974
- useAsyncError as bl,
197975
- useAsyncValue as bm,
197976
- useBeforeUnload as bn,
197977
- useBlocker as bo,
197978
- useFetcher as bp,
197979
- useFetchers as bq,
197980
- useFormAction as br,
197981
- useHref as bs,
197982
- useInRouterContext as bt,
197983
- useLinkClickHandler as bu,
197984
- useLoaderData as bv,
197985
- useLocation as bw,
197986
- useMatch as bx,
197987
- useMatches as by,
197988
- useNavigate as bz,
197357
+ isCookie as b0,
197358
+ isRouteErrorResponse as b1,
197359
+ isSession as b2,
197360
+ matchPath as b3,
197361
+ matchRoutes as b4,
197362
+ parsePath as b5,
197363
+ redirect as b6,
197364
+ redirectDocument as b7,
197365
+ renderMatches as b8,
197366
+ replace2 as b9,
197367
+ useParams as bA,
197368
+ useResolvedPath as bB,
197369
+ useRevalidator as bC,
197370
+ useRouteError as bD,
197371
+ useRouteLoaderData as bE,
197372
+ useRoutes as bF,
197373
+ useSearchParams as bG,
197374
+ useSubmit as bH,
197375
+ useViewTransitionState as bI,
197376
+ resolvePath as ba,
197377
+ HistoryRouter as bb,
197378
+ unstable_RouterContextProvider as bc,
197379
+ unstable_createContext as bd,
197380
+ setDevServerHooks as be,
197381
+ usePrompt as bf,
197382
+ useActionData as bg,
197383
+ useAsyncError as bh,
197384
+ useAsyncValue as bi,
197385
+ useBeforeUnload as bj,
197386
+ useBlocker as bk,
197387
+ useFetcher as bl,
197388
+ useFetchers as bm,
197389
+ useFormAction as bn,
197390
+ useHref as bo,
197391
+ useInRouterContext as bp,
197392
+ useLinkClickHandler as bq,
197393
+ useLoaderData as br,
197394
+ useLocation as bs,
197395
+ useMatch as bt,
197396
+ useMatches as bu,
197397
+ useNavigate as bv,
197398
+ useNavigation as bw,
197399
+ useNavigationType as bx,
197400
+ useOutlet as by,
197401
+ useOutletContext as bz,
197989
197402
  SbSection as c,
197990
197403
  SbColumn as d,
197991
197404
  SbContainer as e,
@@ -197993,22 +197406,22 @@ export {
197993
197406
  SbPage as g,
197994
197407
  SbText as h,
197995
197408
  SbModal as i,
197996
- jsxRuntimeExports as j,
197997
- SbTable as k,
197998
- SbDropdown as l,
197999
- makeAutoObservable as m,
198000
- SbCustom as n,
198001
- observer as o,
197409
+ SbTable as j,
197410
+ SbDropdown as k,
197411
+ SbCustom as l,
197412
+ SbCheckbox as m,
197413
+ SbDatePicker as n,
197414
+ SbSwitch as o,
198002
197415
  pascalCase as p,
198003
- SbCheckbox as q,
197416
+ SbIcon as q,
198004
197417
  registerComponent as r,
198005
- SbDatePicker as s,
198006
- toJS as t,
198007
- SbSwitch as u,
198008
- SbIcon as v,
198009
- SbImage as w,
198010
- SbVariable as x,
198011
- SbTimer as y,
198012
- SbApi as z
198013
- };
198014
- //# sourceMappingURL=index-CFz3UGkJ.js.map
197418
+ SbImage as s,
197419
+ SbVariable as t,
197420
+ SbTimer as u,
197421
+ SbApi as v,
197422
+ SbProvider as w,
197423
+ SbEventFlow as x,
197424
+ copyToClipboard as y,
197425
+ navigateTo as z
197426
+ };
197427
+ //# sourceMappingURL=index-DHOLy0gg.js.map