@sheetxl/studio-mui 0.8.0-beta.11 → 0.8.0-beta.13

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 (132) hide show
  1. package/browser/esm/{DDc6rDuU9JAo1DH_.mjs → 6QDKC3DXaJjdTQvn.mjs} +3 -3
  2. package/browser/esm/{LZoYSQAYV2wksnDv.mjs → B8-aNCyDzXh-3BnN.mjs} +5 -5
  3. package/browser/esm/{Bujtz_Guj88d03vI.mjs → BEjT3zSht5iH93uB.mjs} +6 -6
  4. package/browser/esm/{Ds3XRkne7HxcXD8J.mjs → BKB6y-l1USxdLM8V.mjs} +2 -2
  5. package/browser/esm/{BED6h6YAwCf1HEQJ.mjs → BKE2ez65WLb02bOy.mjs} +1 -1
  6. package/browser/esm/{C9pIZVACtl9unFOp.mjs → BOKRcLS0QikMyoWf.mjs} +2 -2
  7. package/browser/esm/{DdcZrjMLWVukWcU5.mjs → BTH-nzAPniB6G4TG.mjs} +814 -685
  8. package/browser/esm/{BYE9gCDWKyx6mnVs.mjs → Bbvx7IiwR5jW-Hwu.mjs} +114 -103
  9. package/browser/esm/{zqilJefihVd7At2T.mjs → BgYy8t04q74BFK5_.mjs} +7 -7
  10. package/browser/esm/{CynTY0oNtyJnoaBq.mjs → BniGX5aeZXM9zMWH.mjs} +1 -1
  11. package/browser/esm/{D9ISy7VkaRRFJl46.mjs → BsxCXTfNJhFrldW9.mjs} +4 -4
  12. package/browser/esm/{D3rRUK4dIM5gUSmj.mjs → BwbheU7gonBpE9Bs.mjs} +2 -2
  13. package/browser/esm/{DDczwkXhz_MHub4z.mjs → BzLjlI67XDv3JcvA.mjs} +2 -2
  14. package/browser/esm/{DsoNMWDwHZP8UXQd.mjs → C3KoAU2WKPxC5-u7.mjs} +1 -1
  15. package/browser/esm/{DTpRkgsTm_zYnWfW.mjs → C9HzAN75sBq35kZg.mjs} +1 -1
  16. package/browser/esm/{BknfGJouygmnpFIU.mjs → CMbJhvtUGfi-wQ3o.mjs} +2 -2
  17. package/browser/esm/{DnGaP5F7mLwCGUYG.mjs → CQd6qQ6b5R96lYkQ.mjs} +206 -124
  18. package/browser/esm/{DV6i9RQZfJiKtEaJ.mjs → CYDqU_DnwM2dkv3O.mjs} +678 -623
  19. package/browser/esm/{ChSVxkPTIjgcC8PL.mjs → CYNVxcg3QJ1RHCwS.mjs} +2 -2
  20. package/browser/esm/{BjvD_4t2KGsZP5V8.mjs → CcyyIgMejaWOK8qw.mjs} +3 -3
  21. package/browser/esm/{ClBvNPeNCAhuVWrG.mjs → CkmieJ2_aHVESg8Q.mjs} +1 -1
  22. package/browser/esm/{Di3BUxA0SqFWWgeg.mjs → CtVEsNpA7LivARDl.mjs} +1 -1
  23. package/browser/esm/{w_JrR69vEpvoyeMy.mjs → CyRZCFT_uVfmLkoB.mjs} +1 -1
  24. package/browser/esm/{DpD4fg2WcyiKX_2K.mjs → D2KYXweAKTJVnLbt.mjs} +5 -5
  25. package/browser/esm/{G0Inqm6Eqw47dMpa.mjs → D9KI3TDs1Ed_en8o.mjs} +1 -1
  26. package/browser/esm/{CEtXsBzEjEKk9GOj.mjs → DAX7uqV05BahXHL1.mjs} +2 -2
  27. package/browser/esm/{COlZu93LRwuBvjE-.mjs → DFEz0RMRQrGo3tWC.mjs} +2 -2
  28. package/browser/esm/{DG21x7RKDpge6zAE.mjs → DLP2vkb2VDlGGA1A.mjs} +1 -1
  29. package/browser/esm/{BXhNFzyEGokTF-BL.mjs → DSIQFoVhlKSPzucu.mjs} +2 -2
  30. package/browser/esm/{Buqcl7J75MJrhpVE.mjs → DWUrXikL8TyDNRrI.mjs} +8 -8
  31. package/browser/esm/{0BWO0bLZ8Vm_dKd2.mjs → DYypTSo0adN5dUTS.mjs} +13 -13
  32. package/browser/esm/{CTjqDD-swFMZzI-Y.mjs → D_x6k92V4etahUtS.mjs} +2 -2
  33. package/browser/esm/{YThnrg3PadGs7B4j.mjs → DeSHnKGHmL3Lwl6t.mjs} +143 -137
  34. package/browser/esm/{BlE_8o8tO2AgAlaj.mjs → DkRUwiADZvoEL2xg.mjs} +1 -1
  35. package/browser/esm/{BAbq4-I5f5oUiNaF.mjs → DlGOcFqQzrYB9wiZ.mjs} +4 -4
  36. package/browser/esm/{C0wlMAIn9iREPK6w.mjs → DvDPtmuD-1bVFXhc.mjs} +1 -1
  37. package/browser/esm/{DKtJxrpN0axtuQ0l.mjs → DyKgCJS1jQMxcPFF.mjs} +1 -1
  38. package/browser/esm/{CWkOgdL7mOKiTR62.mjs → ERVyjcGWX4mUl1p_.mjs} +4 -4
  39. package/browser/esm/{HViD4Wfoi0mmqk9w.mjs → H8Dxocn689KdLYhD.mjs} +1 -1
  40. package/browser/esm/{Brsh5yscJ_4uKFXp.mjs → LF4eGB9EZ_W6kUXC.mjs} +2 -2
  41. package/browser/esm/{BokqKEpU6TFgfRs6.mjs → PSYAcayGMjkZauMz.mjs} +2 -2
  42. package/browser/esm/{DJOOed_OtB-XT7f3.mjs → TT3Q8r0Jww_zZmNv.mjs} +6 -6
  43. package/browser/esm/{C8JU4KsMasmLvojI.mjs → UMji8dlv0GKyfjRw.mjs} +1 -1
  44. package/browser/esm/UWvqHAyCVY3D-8Pk.mjs +242 -0
  45. package/browser/esm/{DRSCS6aLiYmPjUz1.mjs → aNYq27kJA5RA4L_0.mjs} +365 -362
  46. package/browser/esm/{CBD4RiRKbbZtSXV-.mjs → dn1AnYOyR4bZamV4.mjs} +3 -3
  47. package/browser/esm/{ttjcNHcFn8O6hfnd.mjs → eKakg1lFqn9dZkOO.mjs} +11 -11
  48. package/browser/esm/index.mjs +290 -287
  49. package/browser/esm/{CyLn6zOOp_biA3xU.mjs → jbPNLnRSS8Xt5_Zd.mjs} +8 -8
  50. package/browser/esm/{BvhYPwX3GrRaO9CM.mjs → oj398-Nn8Gb8Cmu7.mjs} +3 -3
  51. package/browser/esm/{DEv4pIEgYr5C7etm.mjs → qyIg2o8AfCcwCuVZ.mjs} +1 -1
  52. package/browser/esm/{xFqkfN8QMCxvsetB.mjs → w9rl3kS5ehDc2U18.mjs} +1 -1
  53. package/node/esm/{Do-zCKziWhoG5eAv.mjs → A-6VdAxUYuVCsS80.mjs} +2 -2
  54. package/node/esm/{Db3dbaYLKUO66T9s.mjs → BN5K-JWYdHJtnF5G.mjs} +473 -418
  55. package/node/esm/{CSAnTp5rwId0DUb8.mjs → BRSLQ_UNOJKAWRUq.mjs} +127 -116
  56. package/node/esm/{Bph-sR3l6AYWeuxK.mjs → BVCjSh6m3Z_Cd6DD.mjs} +2 -2
  57. package/node/esm/{4HmLH0bPVJCZLgik.mjs → BVyN4cLnT2ii1GMj.mjs} +1 -1
  58. package/node/esm/{zITjZ7R4raDqhP-n.mjs → BWG2FA3rbsOsBHQM.mjs} +3 -3
  59. package/node/esm/{DMXLxp3T0E0SRTQc.mjs → BZVe_afv1tfvExD6.mjs} +1 -1
  60. package/node/esm/{CYIoK22I6Yvv12_x.mjs → BiBMdXkWOUHZpWcb.mjs} +1 -1
  61. package/node/esm/{1bf4gn-2vld4BZ9u.mjs → Bj-UqmrrHdVSX4vS.mjs} +1 -1
  62. package/node/esm/{CuMePia6i_8yfJ6S.mjs → Blxb1C2eUbWoXcsl.mjs} +9 -9
  63. package/node/esm/{CZyA9uD4SkTvqp_G.mjs → BmySpSgR3H6eUK0L.mjs} +253 -253
  64. package/node/esm/{CPq-MIdEnc-53JpF.mjs → C86bIpa86VUEVY3_.mjs} +2 -2
  65. package/node/esm/CVeYUjvKIc1XuPC1.mjs +242 -0
  66. package/node/esm/{XEDcegsv5AGKBfu2.mjs → Cg1eqOYlWMCprF6j.mjs} +2 -2
  67. package/node/esm/{BlN7G0DVC24zauig.mjs → CksDVaPvtllTUe7F.mjs} +1 -1
  68. package/node/esm/{BPzcW4BejRqso338.mjs → D0HpdVWcePBpfQHX.mjs} +3 -3
  69. package/node/esm/{DfCuL8AUxMFoEG2s.mjs → DEK0D7wAs-O0YMBq.mjs} +36 -36
  70. package/node/esm/{DLqBHdFp6wvm6EGs.mjs → DFZctv5meqoQLuQF.mjs} +1 -1
  71. package/node/esm/{BIMkjQUwG4Ih-6Sh.mjs → DQ9BkHy3YgoLqyAw.mjs} +1 -1
  72. package/node/esm/{D-xqQ5qOSd6WrzwJ.mjs → DTtGcAuClHgv-5s6.mjs} +1 -1
  73. package/node/esm/{CvRbu8JPxFarsSR-.mjs → DcUXYRkJLeQFybOy.mjs} +5 -5
  74. package/node/esm/{CjC6s3RUJQNCF7mP.mjs → DjB5CHk5N8mYRiAW.mjs} +1 -1
  75. package/node/esm/{DeZJlLk8WJ3BLtLs.mjs → DopRYDglwpRFuZ9y.mjs} +3 -3
  76. package/node/esm/E3iNwBp5FzwRWhBH.mjs +489 -0
  77. package/node/esm/{DWqvf4H5F2wMnZ0L.mjs → Mm5HFZHyaIJ5EfYO.mjs} +1 -1
  78. package/node/esm/{CWcv7UVXF8IUB0PC.mjs → VLp3LfRG5Njlf4Mp.mjs} +15 -15
  79. package/node/esm/{CyafafEgfmjLqE5O.mjs → YTiLYQEQ-ST2j-Yd.mjs} +1 -1
  80. package/node/esm/{DdEzhVqYTrGODXrz.mjs → h5Tt_pl2Dpa9vaR-.mjs} +1 -1
  81. package/node/esm/index.mjs +2936 -2800
  82. package/node/esm/{BR45ogAR-hY2bE60.mjs → nVZW0-P7DISm9GFM.mjs} +1 -1
  83. package/node/esm/{yCUxQuqVuC4DHKPx.mjs → sKA_898BrWm-kfiS.mjs} +1 -1
  84. package/node/esm/{3WghtBXAvCDwcVrq.mjs → uySjOpgLC6iCqgC-.mjs} +1 -1
  85. package/node/esm/{BNg4QQY0WAPLE0q7.mjs → xw7vek0VNw7ofbq1.mjs} +3 -3
  86. package/node/esm/{DpJ2gmZJioCyq8La.mjs → zZTOpRFxWBgeZTpk.mjs} +166 -160
  87. package/package.json +9 -9
  88. package/resources/locales/de/groups.cmd.json +16 -1
  89. package/resources/locales/de/ui.msg.json +3 -1
  90. package/resources/locales/en/groups.cmd.json +16 -1
  91. package/resources/locales/en/ui.msg.json +3 -1
  92. package/types/src/border/BorderPopupButton.d.ts +1 -1
  93. package/types/src/color/ColorPopupButton.d.ts +1 -1
  94. package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
  95. package/types/src/command/DocThemeCommandButton.d.ts +1 -1
  96. package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
  97. package/types/src/command/FontSizeCommandButton.d.ts +1 -1
  98. package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
  99. package/types/src/command/LanguageCommandButton.d.ts +1 -1
  100. package/types/src/command/LocaleCommandButton.d.ts +1 -1
  101. package/types/src/command/index.d.ts +1 -0
  102. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
  103. package/types/src/conditions/ConditionEditor.d.ts +1 -1
  104. package/types/src/conditions/MembershipOption.d.ts +1 -1
  105. package/types/src/conditions/OperatorAndParamEditor.d.ts +1 -1
  106. package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
  107. package/types/src/conditions/SelectorSelect.d.ts +1 -1
  108. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +1 -1
  109. package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
  110. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
  111. package/types/src/fill/PatternPopupButton.d.ts +1 -1
  112. package/types/src/filter/ColumnMenu.d.ts +1 -1
  113. package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
  114. package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
  115. package/types/src/named/NamedDetailsPanel.d.ts +2 -2
  116. package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
  117. package/types/src/shape/ShapePlugin.d.ts +2 -0
  118. package/types/src/shape/index.d.ts +1 -1
  119. package/types/src/statusBar/PendingStatus.d.ts +19 -0
  120. package/types/src/statusBar/index.d.ts +1 -0
  121. package/types/src/studio/StudioProps.d.ts +10 -10
  122. package/types/src/template/TemplatePanel.d.ts +5 -1
  123. package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
  124. package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
  125. package/types/src/workbook/DefaultRenderers.d.ts +30 -18
  126. package/types/src/workbook/WorkbookElement.d.ts +5 -4
  127. package/types/src/workbook/WorkbookStrip.d.ts +8 -7
  128. package/types/src/workbook/index.d.ts +1 -1
  129. package/browser/esm/QgaAIDUMmBQBsXP9.mjs +0 -236
  130. package/node/esm/B0bdb_6p7fQI_ivo.mjs +0 -236
  131. package/node/esm/DatM6eEYPpAtIMy-.mjs +0 -405
  132. package/types/src/shape/InsertShapeCommandButton.d.ts +0 -20
@@ -1,29 +1,29 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.13
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { t as e } from "./ClBvNPeNCAhuVWrG.mjs";
8
- import { n as t } from "./DDc6rDuU9JAo1DH_.mjs";
9
- import { n } from "./CynTY0oNtyJnoaBq.mjs";
7
+ import { t as e } from "./CkmieJ2_aHVESg8Q.mjs";
8
+ import { n as t } from "./6QDKC3DXaJjdTQvn.mjs";
9
+ import { n } from "./BniGX5aeZXM9zMWH.mjs";
10
10
  import { Condition as r, FormulaError as i, FormulaText as a, ICondition as o, ScalarType as s, getLocaleProfile as c } from "@sheetxl/sdk";
11
11
  import { ValueChecklist as l, useWorksheet as u } from "@sheetxl/react";
12
- import { DynamicIcon as d, KeyCodes as f, useCallbackRef as p, useLanguage as m, useMeasure as h, useTranslator as g } from "@sheetxl/utils-react";
13
- import _, { createContext as v, forwardRef as y, memo as b, useCallback as x, useContext as S, useEffect as C, useMemo as w, useRef as T, useState as E } from "react";
14
- import { ExhibitIconButton as D, ExhibitPopupIconButton as O } from "@sheetxl/utils-mui";
15
- import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
16
- import { Box as M, Checkbox as N, Divider as P, FormControl as F, FormControlLabel as I, FormHelperText as L, InputLabel as R, ListSubheader as z, MenuItem as B, MenuList as V, Select as H, TextField as U, ToggleButton as W, ToggleButtonGroup as ee, Typography as te } from "@mui/material";
12
+ import { DynamicIcon as d, KeyCodes as f, RenderSlot as p, useCallbackRef as m, useLanguage as h, useMeasure as g, useTranslator as _ } from "@sheetxl/utils-react";
13
+ import v, { createContext as y, forwardRef as b, memo as x, useCallback as S, useContext as C, useEffect as w, useMemo as T, useRef as E, useState as D } from "react";
14
+ import { ExhibitIconButton as O, ExhibitPopupIconButton as k } from "@sheetxl/utils-mui";
15
+ import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
16
+ import { Box as N, Checkbox as P, Divider as F, FormControl as I, FormControlLabel as ee, FormHelperText as L, InputLabel as R, ListSubheader as z, MenuItem as B, MenuList as V, Select as H, TextField as U, ToggleButton as te, ToggleButtonGroup as W, Typography as ne } from "@mui/material";
17
17
  import { messageKey as G } from "@sheetxl/utils";
18
- import { ListSearch as ne, PickList as K, filterByText as re } from "@sheetxl/grid-react";
19
- var ie = b((e) => {
20
- let { value: t = null, selectors: n, onChange: r, title: i, allowNull: a = !1, readOnly: o = !1, extras: s, extraValue: c = null, ...l } = e, u = g(), f = i ?? u("condition.selectorTitle"), p = n.map((e) => ({
18
+ import { ListSearch as K, PickList as re, filterByText as ie } from "@sheetxl/grid-react";
19
+ var ae = x((e) => {
20
+ let { value: t = null, selectors: n, onChange: r, title: i, allowNull: a = !1, readOnly: o = !1, extras: s, extraValue: c = null, ...l } = e, u = _(), f = i ?? u("condition.selectorTitle"), p = n.map((e) => ({
21
21
  value: e.getName(),
22
22
  title: e.getTitle?.() ?? e.getName()
23
- })).map((e) => A(B, {
23
+ })).map((e) => j(B, {
24
24
  value: e.value,
25
25
  children: e.title
26
- }, e.value)), m = (s ?? []).map((e) => A(B, {
26
+ }, e.value)), m = (s ?? []).map((e) => j(B, {
27
27
  value: e.value,
28
28
  children: e.title
29
29
  }, `extra:${e.value}`)), h = { backgroundColor: "background.paper" };
@@ -31,14 +31,14 @@ var ie = b((e) => {
31
31
  ...h,
32
32
  "& .MuiSelect-icon": { display: "none" },
33
33
  "& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
34
- }), j(F, {
34
+ }), M(I, {
35
35
  size: "small",
36
36
  ...l,
37
- children: [A(R, { children: f }), j(H, {
37
+ children: [j(R, { children: f }), M(H, {
38
38
  value: c ?? t?.getName() ?? "null",
39
39
  label: f,
40
40
  readOnly: o,
41
- IconComponent: (e) => A(d, {
41
+ IconComponent: (e) => j(d, {
42
42
  iconKey: "ExpandMore",
43
43
  ...e
44
44
  }),
@@ -50,7 +50,7 @@ var ie = b((e) => {
50
50
  },
51
51
  sx: h,
52
52
  children: [
53
- a && A(B, {
53
+ a && j(B, {
54
54
  value: "null",
55
55
  children: u("condition.anySelector")
56
56
  }),
@@ -60,35 +60,35 @@ var ie = b((e) => {
60
60
  })]
61
61
  });
62
62
  });
63
- ie.displayName = "SelectorSelect";
64
- var ae = 0, q = /* @__PURE__ */ new WeakMap(), oe = (e) => {
65
- let t = q.get(e);
66
- return t || (t = "__ci_" + ++ae, q.set(e, t)), t;
67
- }, J = (e, t) => {
68
- let n = q.get(e);
69
- n && q.set(t, n);
70
- }, se = Object.freeze([o.BuiltInOperatorNames.Icon, o.BuiltInOperatorNames.Color]), ce = /* @__PURE__ */ new Set([
63
+ ae.displayName = "SelectorSelect";
64
+ var q = 0, J = /* @__PURE__ */ new WeakMap(), oe = (e) => {
65
+ let t = J.get(e);
66
+ return t || (t = "__ci_" + ++q, J.set(e, t)), t;
67
+ }, se = (e, t) => {
68
+ let n = J.get(e);
69
+ n && J.set(t, n);
70
+ }, ce = Object.freeze([o.BuiltInOperatorNames.Icon, o.BuiltInOperatorNames.Color]), le = /* @__PURE__ */ new Set([
71
71
  o.BuiltInOperatorNames.TextContains,
72
72
  o.BuiltInOperatorNames.TextStartsWith,
73
73
  o.BuiltInOperatorNames.TextEndsWith,
74
74
  o.BuiltInOperatorNames.TextEmail,
75
75
  o.BuiltInOperatorNames.TextIsUrl
76
- ]), le = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakMap(), ue = (e, t) => (Y.set(e, t), e), de = (e) => (t, n) => {
77
- let r = Number(le.has(n)) - Number(le.has(t));
76
+ ]), ue = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakMap(), de = (e, t) => (Y.set(e, t), e), fe = (e) => (t, n) => {
77
+ let r = Number(ue.has(n)) - Number(ue.has(t));
78
78
  if (r !== 0) return r;
79
79
  let i = Y.has(t), a = Y.has(n);
80
80
  return i || a ? Number(a) - Number(i) : (t.getTitle?.() ?? "").localeCompare(n.getTitle?.() ?? "", e);
81
- }, fe = (e, t, n, i = se) => {
81
+ }, pe = (e, t, n, i = ce) => {
82
82
  let a = t ?? Object.values(r.BuiltInOperators), s = e?.getSelectType() ?? null, c = e?.getName() === o.BuiltInSelectorNames.Display;
83
83
  return a.filter((t) => {
84
84
  if (i.includes(t.getName())) return !1;
85
85
  if (!e) return !0;
86
- if (c && ce.has(t.getName())) return !1;
86
+ if (c && le.has(t.getName())) return !1;
87
87
  let n = t.getAcceptsTypes?.();
88
88
  return !n || n.includes(s);
89
- }).sort(de(n));
90
- }, pe = (e, t, n, r) => {
91
- let i = de(r), a = /* @__PURE__ */ new Map();
89
+ }).sort(fe(n));
90
+ }, me = (e, t, n, r) => {
91
+ let i = fe(r), a = /* @__PURE__ */ new Map();
92
92
  for (let t of e) {
93
93
  let e = Y.get(t);
94
94
  if (e === void 0) continue;
@@ -96,18 +96,18 @@ var ae = 0, q = /* @__PURE__ */ new WeakMap(), oe = (e) => {
96
96
  n ? n.push(t) : a.set(e, [t]);
97
97
  }
98
98
  let o = e.filter((e) => !e.isCombinator?.() && !Y.has(e)).sort(i), s = e.filter((e) => e.isCombinator?.()).sort(i), c = [];
99
- for (let [e, n] of a) c.push(A(z, {
99
+ for (let [e, n] of a) c.push(j(z, {
100
100
  disableSticky: !0,
101
- sx: me,
101
+ sx: he,
102
102
  children: e
103
103
  }, `__header:${e}`)), n.forEach((e) => c.push(t(e)));
104
- return a.size > 0 && o.length > 0 && c.push(A(P, {}, "__divider:grouped")), o.length > 0 && (c.push(A(z, {
104
+ return a.size > 0 && o.length > 0 && c.push(j(F, {}, "__divider:grouped")), o.length > 0 && (c.push(j(z, {
105
105
  disableSticky: !0,
106
- sx: me,
106
+ sx: he,
107
107
  children: n("condition.groupBasic")
108
- }, "__header:leaf")), o.forEach((e) => c.push(t(e)))), o.length > 0 && s.length > 0 && c.push(A(P, {}, "__divider")), s.length > 0 && (c.push(A(z, {
108
+ }, "__header:leaf")), o.forEach((e) => c.push(t(e)))), o.length > 0 && s.length > 0 && c.push(j(F, {}, "__divider")), s.length > 0 && (c.push(j(z, {
109
109
  disableSticky: !0,
110
- sx: me,
110
+ sx: he,
111
111
  children: n("condition.groupCombine")
112
112
  }, "__header:combinator")), s.forEach((e) => c.push(t(e)))), c;
113
113
  }, X = (e, t, n = null, r) => {
@@ -117,7 +117,7 @@ var ae = 0, q = /* @__PURE__ */ new WeakMap(), oe = (e) => {
117
117
  param: i.createDefaultParam?.(n ?? void 0) ?? null
118
118
  } : null;
119
119
  return e.getName() === "not" ? a : a ? [a] : [];
120
- }, me = {
120
+ }, he = {
121
121
  userSelect: "none",
122
122
  lineHeight: "2",
123
123
  fontSize: "0.75rem",
@@ -125,22 +125,22 @@ var ae = 0, q = /* @__PURE__ */ new WeakMap(), oe = (e) => {
125
125
  color: "text.secondary",
126
126
  paddingLeft: 1,
127
127
  paddingRight: 1
128
- }, he = { pl: 2 }, ge = b(y((e, t) => {
129
- let { icon: n, tooltip: r, label: i, darkMode: a, propsPanel: o, value: s, operators: c, onChange: l, title: u, readOnly: p = !1, ...h } = e, _ = g(), v = m();
130
- u ?? _("condition.operatorTitle");
131
- let y = n || A(d, { iconKey: "Add" }), b = T(l);
128
+ }, ge = { pl: 2 }, _e = x(b((e, t) => {
129
+ let { icon: n, tooltip: r, label: i, darkMode: a, propsPanel: o, value: s, operators: c, onChange: l, title: u, readOnly: p = !1, ...m } = e, g = _(), v = h();
130
+ u ?? g("condition.operatorTitle");
131
+ let y = n || j(d, { iconKey: "Add" }), b = E(l);
132
132
  b.current = l;
133
- let S = {
134
- createPopupPanel: x((e) => {
135
- let { closeFloatAll: t } = e, n = pe(c, (e) => A(B, {
136
- sx: he,
133
+ let x = {
134
+ renderPopupPanel: S((e) => {
135
+ let { closeFloatAll: t } = e, n = me(c, (e) => j(B, {
136
+ sx: ge,
137
137
  value: e.getName(),
138
138
  onClick: () => {
139
139
  t?.(), b.current(e);
140
140
  },
141
141
  children: e.getTitle?.()
142
- }, e.getName()), _, v);
143
- return A("div", {
142
+ }, e.getName()), g, v);
143
+ return j("div", {
144
144
  style: {
145
145
  minWidth: 200,
146
146
  paddingTop: "8px",
@@ -151,44 +151,44 @@ var ae = 0, q = /* @__PURE__ */ new WeakMap(), oe = (e) => {
151
151
  onKeyDown: (e) => {
152
152
  e.which === f.Enter && t?.();
153
153
  },
154
- children: A(V, {
154
+ children: j(V, {
155
155
  disablePadding: !0,
156
156
  children: n
157
157
  })
158
158
  });
159
159
  }, [
160
160
  c,
161
- _,
161
+ g,
162
162
  v
163
163
  ]),
164
164
  tooltip: r || i || "When",
165
165
  label: i,
166
166
  disabled: p,
167
167
  icon: y,
168
- ...h
168
+ ...m
169
169
  };
170
- return A(O, {
170
+ return j(k, {
171
171
  ref: t,
172
- ...S
172
+ ...x
173
173
  });
174
- })), _e = b((e) => {
175
- let { value: t, operators: n, onChange: r, title: i, readOnly: a = !1, ...o } = e, s = g(), c = m(), l = i ?? s("condition.operatorTitle"), u = /* @__PURE__ */ new Map();
174
+ })), ve = x((e) => {
175
+ let { value: t, operators: n, onChange: r, title: i, readOnly: a = !1, ...o } = e, s = _(), c = h(), l = i ?? s("condition.operatorTitle"), u = /* @__PURE__ */ new Map();
176
176
  n.forEach((e) => {
177
177
  u.set(e.getName(), e);
178
178
  });
179
- let f = pe(n, (e) => A(B, {
179
+ let f = me(n, (e) => j(B, {
180
180
  value: e.getName(),
181
- sx: he,
181
+ sx: ge,
182
182
  children: e.getTitle?.()
183
183
  }, e.getName()), s, c);
184
- return j(F, {
184
+ return M(I, {
185
185
  size: "small",
186
186
  ...o,
187
- children: [A(R, { children: l }), A(H, {
187
+ children: [j(R, { children: l }), j(H, {
188
188
  value: t?.getName() ?? "null",
189
189
  label: l,
190
190
  readOnly: a,
191
- IconComponent: (e) => A(d, {
191
+ IconComponent: (e) => j(d, {
192
192
  iconKey: "ExpandMore",
193
193
  ...e
194
194
  }),
@@ -204,10 +204,10 @@ var ae = 0, q = /* @__PURE__ */ new WeakMap(), oe = (e) => {
204
204
  })]
205
205
  });
206
206
  });
207
- _e.displayName = "OperatorSelect";
208
- var ve = b((e) => {
209
- let { operator: t, inputs: n, onOptionChange: i, operators: a, selector: o, getItems: s, propsChecklist: c, ignoreBlank: l, readOnly: u, ...d } = e, f = g(), p = t.getName() === "not", m = p ? null : t.getName() === "and" ? f("condition.and") : f("condition.or"), h = (e) => e.selector ? r.Selectors.get(e.selector) ?? o : o, v = p ? f("condition.not") : m;
210
- return A(M, {
207
+ ve.displayName = "OperatorSelect";
208
+ var ye = x((e) => {
209
+ let { operator: t, inputs: n, onOptionChange: i, operators: a, selector: o, getItems: s, propsChecklist: c, ignoreBlank: l, readOnly: u, ...d } = e, f = _(), p = t.getName() === "not", m = p ? null : t.getName() === "and" ? f("condition.and") : f("condition.or"), h = (e) => e.selector ? r.Selectors.get(e.selector) ?? o : o, g = p ? f("condition.not") : m;
210
+ return j(N, {
211
211
  sx: {
212
212
  display: "flex",
213
213
  flexDirection: "column",
@@ -217,15 +217,15 @@ var ve = b((e) => {
217
217
  borderColor: "divider"
218
218
  },
219
219
  ...d,
220
- children: n.map((e, t) => A(_.Fragment, { children: A(qe, {
221
- operatorTitle: t > 0 ? v ?? "" : "",
220
+ children: n.map((e, t) => j(v.Fragment, { children: j(Je, {
221
+ operatorTitle: t > 0 ? g ?? "" : "",
222
222
  operatorParam: e,
223
223
  onOperatorParamChange: (e) => ((e, t) => {
224
224
  let r = n.slice(), a = n[e], o = {
225
225
  operator: t.operator,
226
226
  param: t.param
227
227
  };
228
- a?.selector && (o.selector = a.selector), J(n[e], o), r[e] = o, i(r);
228
+ a?.selector && (o.selector = a.selector), se(n[e], o), r[e] = o, i(r);
229
229
  })(t, e),
230
230
  onRemove: () => ((e) => {
231
231
  let t = n.filter((t, n) => n !== e);
@@ -238,7 +238,7 @@ var ve = b((e) => {
238
238
  ...o,
239
239
  selector: t
240
240
  } : o;
241
- J(n[e], s), r[e] = s, i(r);
241
+ se(n[e], s), r[e] = s, i(r);
242
242
  })(t, e),
243
243
  getItems: s,
244
244
  propsChecklist: c,
@@ -248,10 +248,10 @@ var ve = b((e) => {
248
248
  }) }, oe(e)))
249
249
  });
250
250
  });
251
- ve.displayName = "CombinatorOption";
252
- var ye = b((e) => {
253
- let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = g();
254
- return A(U, {
251
+ ye.displayName = "CombinatorOption";
252
+ var be = x((e) => {
253
+ let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = _();
254
+ return j(U, {
255
255
  size: "small",
256
256
  type: "text",
257
257
  placeholder: a("condition.enterText"),
@@ -262,10 +262,10 @@ var ye = b((e) => {
262
262
  slotProps: { input: { sx: { backgroundColor: "background.paper" } } }
263
263
  });
264
264
  });
265
- ye.displayName = "StringOption";
266
- var be = b((e) => {
267
- let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = g();
268
- return A(U, {
265
+ be.displayName = "StringOption";
266
+ var xe = x((e) => {
267
+ let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = _();
268
+ return j(U, {
269
269
  size: "small",
270
270
  type: "number",
271
271
  placeholder: a("condition.enterNumber"),
@@ -276,14 +276,14 @@ var be = b((e) => {
276
276
  slotProps: { input: { sx: { backgroundColor: "background.paper" } } }
277
277
  });
278
278
  });
279
- be.displayName = "NumberOption";
280
- var xe = v(null), Se = (e) => {
279
+ xe.displayName = "NumberOption";
280
+ var Se = y(null), Ce = (e) => {
281
281
  let { rowIndex: t, colIndex: n } = e.getSelectedCell().getCoords();
282
282
  return {
283
283
  rowIndex: t,
284
284
  colIndex: n
285
285
  };
286
- }, Ce = (e, t) => {
286
+ }, we = (e, t) => {
287
287
  let n = ((e) => {
288
288
  let t = e?.getCoords();
289
289
  if (!t || t.length === 0) return null;
@@ -295,7 +295,7 @@ var xe = v(null), Se = (e) => {
295
295
  };
296
296
  })(t?.getRanges() ?? null);
297
297
  if (!e || !n) return null;
298
- let { rowIndex: r, colIndex: i } = Se(e);
298
+ let { rowIndex: r, colIndex: i } = Ce(e);
299
299
  return r === n.rowIndex && i === n.colIndex ? null : {
300
300
  active: {
301
301
  rowIndex: r,
@@ -303,8 +303,8 @@ var xe = v(null), Se = (e) => {
303
303
  },
304
304
  anchor: n
305
305
  };
306
- }, we = () => {
307
- let e = u(), t = S(xe), n = T(null), r = e ? Se(e) : null, i = e?.getName() ?? null, a = w(() => r && i ? {
306
+ }, Te = () => {
307
+ let e = u(), t = C(Se), n = E(null), r = e ? Ce(e) : null, i = e?.getName() ?? null, a = T(() => r && i ? {
308
308
  ...r,
309
309
  scope: i
310
310
  } : void 0, [
@@ -312,12 +312,12 @@ var xe = v(null), Se = (e) => {
312
312
  r?.rowIndex,
313
313
  r?.colIndex
314
314
  ]);
315
- return w(() => ({
315
+ return T(() => ({
316
316
  home: a,
317
317
  display: (r) => {
318
318
  let i = n.current;
319
319
  if (i && i.stored === r.getExpression()) return i.text;
320
- let a = Ce(e, t);
320
+ let a = we(e, t);
321
321
  if (a) try {
322
322
  let t = e.createFormula(r.getExpression(), a.anchor).shift(a.active);
323
323
  if (t) return t.getExpression({ target: "display" });
@@ -325,7 +325,7 @@ var xe = v(null), Se = (e) => {
325
325
  return r.getExpression({ target: "display" });
326
326
  },
327
327
  compile: (r) => {
328
- let i = Ce(e, t), a = null;
328
+ let i = we(e, t), a = null;
329
329
  try {
330
330
  a = e?.createFormula(r, i?.active, { target: "display" }) ?? null, a && i && (a = a.shift(i.anchor));
331
331
  } catch {
@@ -341,14 +341,14 @@ var xe = v(null), Se = (e) => {
341
341
  t,
342
342
  a
343
343
  ]);
344
- }, Te = (e, t) => !!t && typeof e == "string" && !e.startsWith("="), Ee = (e, t, n, r) => e == null ? "" : e.isIFormula ? "=" + t.display(e) : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : i.isError(e) ? e.getLabel() : r && typeof e == "number" ? ((e, t, n) => {
344
+ }, Ee = (e, t) => !!t && typeof e == "string" && !e.startsWith("="), De = (e, t, n, r) => e == null ? "" : e.isIFormula ? "=" + t.display(e) : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : i.isError(e) ? e.getLabel() : r && typeof e == "number" ? ((e, t, n) => {
345
345
  if (!e || t < 0) return String(t);
346
346
  let r = t >= 1, i = !Number.isInteger(t), a;
347
347
  return a = n !== "time" || r ? i ? r ? "Short DateTime" : "Long Time" : "Short Date" : "Long Time", e.createCell({
348
348
  value: t,
349
349
  style: { numberFormat: a }
350
350
  }).getText();
351
- })(n, e, r) : String(e), De = (e, t, n, r) => {
351
+ })(n, e, r) : String(e), Oe = (e, t, n, r) => {
352
352
  if (e.length === 0) return null;
353
353
  if (e.startsWith("=")) {
354
354
  let n = t.compile(e.substring(1));
@@ -363,28 +363,28 @@ var xe = v(null), Se = (e) => {
363
363
  })(n, i) ?? e;
364
364
  let a = Number(i);
365
365
  return Number.isFinite(a) ? a : e;
366
- }, Oe = (e, t, n, r) => {
367
- let i = De(e, t, n, r);
368
- if ((!i?.isIFormula || i.isValid()) && !Te(i, r)) return i;
369
- }, Z = b((e) => {
370
- let { option: r, onOptionChange: i, literal: a, readOnly: o, ...s } = e, c = g(), l = u(), d = we(), f = T(null), p = T(null), [m, h] = E(!1), _ = () => p.current === null || Oe(p.current, d, l, a) !== void 0;
366
+ }, ke = (e, t, n, r) => {
367
+ let i = Oe(e, t, n, r);
368
+ if ((!i?.isIFormula || i.isValid()) && !Ee(i, r)) return i;
369
+ }, Z = x((e) => {
370
+ let { option: r, onOptionChange: i, literal: a, readOnly: o, ...s } = e, c = _(), l = u(), d = Te(), f = E(null), p = E(null), [m, h] = D(!1), g = () => p.current === null || ke(p.current, d, l, a) !== void 0;
371
371
  return n(() => {
372
372
  let e = f.current;
373
- return !e?.error && (p.current !== null && e?.commit(), _() ? !Te(r, a) : (h(!0), !1));
374
- }), A(t, {
373
+ return !e?.error && (p.current !== null && e?.commit(), g() ? !Ee(r, a) : (h(!0), !1));
374
+ }), j(t, {
375
375
  size: "small",
376
376
  home: d.home,
377
- value: Ee(r, d, l, a),
377
+ value: De(r, d, l, a),
378
378
  apiRef: f,
379
379
  onChangeText: (e) => {
380
380
  h(!1), p.current = e;
381
- let t = Oe(e, d, l, a);
381
+ let t = ke(e, d, l, a);
382
382
  t !== void 0 && i(t);
383
383
  },
384
384
  onDone: () => {
385
- _() ? p.current = null : h(!0);
385
+ g() ? p.current = null : h(!0);
386
386
  },
387
- validationError: m || Te(r, a) ? G("condition.invalidDateTime") : null,
387
+ validationError: m || Ee(r, a) ? G("condition.invalidDateTime") : null,
388
388
  placeholder: c("condition.enterValueOrFormula"),
389
389
  disabled: o,
390
390
  fullWidth: !0,
@@ -397,9 +397,9 @@ var xe = v(null), Se = (e) => {
397
397
  });
398
398
  });
399
399
  Z.displayName = "ScalarOption";
400
- var ke = b((e) => {
401
- let { option: t, onOptionChange: n, readOnly: r } = e, i = g();
402
- return j(ee, {
400
+ var Ae = x((e) => {
401
+ let { option: t, onOptionChange: n, readOnly: r } = e, i = _();
402
+ return M(W, {
403
403
  exclusive: !0,
404
404
  size: "small",
405
405
  value: t ?? !0,
@@ -412,24 +412,24 @@ var ke = b((e) => {
412
412
  backgroundColor: "background.paper"
413
413
  },
414
414
  disabled: r,
415
- children: [A(W, {
415
+ children: [j(te, {
416
416
  value: !0,
417
417
  children: i("condition.true")
418
- }), A(W, {
418
+ }), j(te, {
419
419
  value: !1,
420
420
  children: i("condition.false")
421
421
  })]
422
422
  });
423
423
  });
424
- ke.displayName = "BooleanOption";
425
- var Ae = {}, je = b((t) => {
426
- let { option: n, onOptionChange: r, className: i, readOnly: a, ...s } = t, c = g(), l = n?.type ?? o.AverageType.Above, u = n?.stdDevs ?? "", f = { backgroundColor: "background.paper" };
424
+ Ae.displayName = "BooleanOption";
425
+ var je = {}, Me = x((t) => {
426
+ let { option: n, onOptionChange: r, className: i, readOnly: a, ...s } = t, c = _(), l = n?.type ?? o.AverageType.Above, u = n?.stdDevs ?? "", f = { backgroundColor: "background.paper" };
427
427
  return a && (f = {
428
428
  ...f,
429
429
  "& .MuiSelect-icon": { display: "none" },
430
430
  "& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
431
- }), j(M, {
432
- className: e(i, Ae.option),
431
+ }), M(N, {
432
+ className: e(i, je.option),
433
433
  ...s,
434
434
  sx: {
435
435
  display: "flex",
@@ -437,13 +437,13 @@ var Ae = {}, je = b((t) => {
437
437
  gap: .25,
438
438
  ...s?.sx
439
439
  },
440
- children: [A(F, {
440
+ children: [j(I, {
441
441
  sx: { flex: .5 },
442
442
  size: "small",
443
- children: j(H, {
443
+ children: M(H, {
444
444
  value: l,
445
445
  sx: f,
446
- IconComponent: (e) => A(d, {
446
+ IconComponent: (e) => j(d, {
447
447
  iconKey: "ExpandMore",
448
448
  ...e
449
449
  }),
@@ -452,15 +452,15 @@ var Ae = {}, je = b((t) => {
452
452
  ...n,
453
453
  type: e.target.value
454
454
  }),
455
- children: [A(B, {
455
+ children: [j(B, {
456
456
  value: o.AverageType.Above,
457
457
  children: c("condition.above")
458
- }), A(B, {
458
+ }), j(B, {
459
459
  value: o.AverageType.Below,
460
460
  children: c("condition.below")
461
461
  })]
462
462
  })
463
- }), A(U, {
463
+ }), j(U, {
464
464
  size: "small",
465
465
  placeholder: c("condition.stdDevs"),
466
466
  value: u,
@@ -475,8 +475,8 @@ var Ae = {}, je = b((t) => {
475
475
  })]
476
476
  });
477
477
  });
478
- je.displayName = "AverageOption";
479
- var Me = b((e) => {
478
+ Me.displayName = "AverageOption";
479
+ var Ne = x((e) => {
480
480
  let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = function(e, t) {
481
481
  let n = (e) => new Intl.DateTimeFormat(t, { month: "long" }).format(new Date(2e3, e, 1));
482
482
  return [
@@ -628,8 +628,8 @@ var Me = b((e) => {
628
628
  ]
629
629
  }
630
630
  ];
631
- }(g(), m()), s = t?.type ?? o.TimePeriodType.Today;
632
- return A(M, {
631
+ }(_(), h()), s = t?.type ?? o.TimePeriodType.Today;
632
+ return j(N, {
633
633
  ...i,
634
634
  sx: {
635
635
  display: "flex",
@@ -637,12 +637,12 @@ var Me = b((e) => {
637
637
  gap: 2,
638
638
  ...i?.sx
639
639
  },
640
- children: A(F, {
640
+ children: j(I, {
641
641
  size: "small",
642
- children: A(H, {
642
+ children: j(H, {
643
643
  value: s,
644
644
  sx: { backgroundColor: "background.paper" },
645
- IconComponent: (e) => A(d, {
645
+ IconComponent: (e) => j(d, {
646
646
  iconKey: "ExpandMore",
647
647
  ...e
648
648
  }),
@@ -653,11 +653,11 @@ var Me = b((e) => {
653
653
  disabled: r,
654
654
  children: a.map((e, t) => {
655
655
  let n = [];
656
- return t > 0 && n.push(A(P, {}, `divider-${t}`)), n.push(A(z, {
657
- sx: me,
658
- children: e.header
659
- }, `header-${t}`)), e.options.map((e) => n.push(A(B, {
656
+ return t > 0 && n.push(j(F, {}, `divider-${t}`)), n.push(j(z, {
660
657
  sx: he,
658
+ children: e.header
659
+ }, `header-${t}`)), e.options.map((e) => n.push(j(B, {
660
+ sx: ge,
661
661
  value: e.value,
662
662
  children: e.label
663
663
  }, e.value))), n;
@@ -666,10 +666,10 @@ var Me = b((e) => {
666
666
  })
667
667
  });
668
668
  });
669
- Me.displayName = "TimePeriodOption";
670
- var Ne = b((e) => {
671
- let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = g(), o = t?.top ?? !0, s = t?.limit ?? 10, c = t?.percent ?? !1;
672
- return j(M, {
669
+ Ne.displayName = "TimePeriodOption";
670
+ var Pe = x((e) => {
671
+ let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = _(), o = t?.top ?? !0, s = t?.limit ?? 10, c = t?.percent ?? !1;
672
+ return M(N, {
673
673
  ...i,
674
674
  sx: {
675
675
  display: "flex",
@@ -678,13 +678,13 @@ var Ne = b((e) => {
678
678
  ...i?.sx
679
679
  },
680
680
  children: [
681
- A(F, {
681
+ j(I, {
682
682
  size: "small",
683
683
  sx: { flex: 1 },
684
- children: j(H, {
684
+ children: M(H, {
685
685
  value: o ? "top" : "bottom",
686
686
  sx: { backgroundColor: "background.paper" },
687
- IconComponent: (e) => A(d, {
687
+ IconComponent: (e) => j(d, {
688
688
  iconKey: "ExpandMore",
689
689
  ...e
690
690
  }),
@@ -693,16 +693,16 @@ var Ne = b((e) => {
693
693
  top: e.target.value === "top"
694
694
  }),
695
695
  disabled: r,
696
- children: [A(B, {
696
+ children: [j(B, {
697
697
  value: "top",
698
698
  children: a("condition.top")
699
- }), A(B, {
699
+ }), j(B, {
700
700
  value: "bottom",
701
701
  children: a("condition.bottom")
702
702
  })]
703
703
  })
704
704
  }),
705
- A(U, {
705
+ j(U, {
706
706
  size: "small",
707
707
  placeholder: "10",
708
708
  value: s,
@@ -718,13 +718,13 @@ var Ne = b((e) => {
718
718
  slotProps: { input: { sx: { backgroundColor: "background.paper" } } },
719
719
  sx: { flex: .6 }
720
720
  }),
721
- A(F, {
721
+ j(I, {
722
722
  size: "small",
723
723
  sx: { flex: 1 },
724
- children: j(H, {
724
+ children: M(H, {
725
725
  value: c ? "percent" : "items",
726
726
  sx: { backgroundColor: "background.paper" },
727
- IconComponent: (e) => A(d, {
727
+ IconComponent: (e) => j(d, {
728
728
  iconKey: "ExpandMore",
729
729
  ...e
730
730
  }),
@@ -733,10 +733,10 @@ var Ne = b((e) => {
733
733
  percent: e.target.value === "percent"
734
734
  }),
735
735
  disabled: r,
736
- children: [A(B, {
736
+ children: [j(B, {
737
737
  value: "items",
738
738
  children: a("condition.items")
739
- }), A(B, {
739
+ }), j(B, {
740
740
  value: "percent",
741
741
  children: a("condition.percent")
742
742
  })]
@@ -745,9 +745,9 @@ var Ne = b((e) => {
745
745
  ]
746
746
  });
747
747
  });
748
- Ne.displayName = "TopNOption";
749
- var Pe = b((e) => {
750
- let { option: t, onOptionChange: n, selector: r, readOnly: i, ...a } = e, s = g(), c = ((e) => {
748
+ Pe.displayName = "TopNOption";
749
+ var Fe = x((e) => {
750
+ let { option: t, onOptionChange: n, selector: r, readOnly: i, ...a } = e, s = _(), c = ((e) => {
751
751
  switch (e?.getName()) {
752
752
  case o.BuiltInSelectorNames.Date: return "date";
753
753
  case o.BuiltInSelectorNames.Time: return "time";
@@ -755,7 +755,7 @@ var Pe = b((e) => {
755
755
  default: return;
756
756
  }
757
757
  })(r);
758
- return j(M, {
758
+ return M(N, {
759
759
  ...a,
760
760
  sx: {
761
761
  display: "flex",
@@ -763,7 +763,7 @@ var Pe = b((e) => {
763
763
  gap: .25,
764
764
  ...a?.sx
765
765
  },
766
- children: [A(Z, {
766
+ children: [j(Z, {
767
767
  option: t?.from ?? null,
768
768
  literal: c,
769
769
  placeholder: s("condition.from"),
@@ -778,7 +778,7 @@ var Pe = b((e) => {
778
778
  flex: .6,
779
779
  minWidth: 0
780
780
  }
781
- }), A(Z, {
781
+ }), j(Z, {
782
782
  option: t?.to ?? null,
783
783
  literal: c,
784
784
  placeholder: s("condition.to"),
@@ -796,10 +796,10 @@ var Pe = b((e) => {
796
796
  })]
797
797
  });
798
798
  });
799
- Pe.displayName = "BetweenOption";
800
- var Fe = b((e) => {
801
- let { option: r, onOptionChange: i, readOnly: a, ...o } = e, s = g(), c = we(), l = T(null), u = r?.isIFormula ? c.display(r) : r ?? "";
802
- return n(() => !l.current?.error), A(t, {
799
+ Fe.displayName = "BetweenOption";
800
+ var Ie = x((e) => {
801
+ let { option: r, onOptionChange: i, readOnly: a, ...o } = e, s = _(), c = Te(), l = E(null), u = r?.isIFormula ? c.display(r) : r ?? "";
802
+ return n(() => !l.current?.error), j(t, {
803
803
  size: "small",
804
804
  home: c.home,
805
805
  value: u,
@@ -821,12 +821,12 @@ var Fe = b((e) => {
821
821
  ...o
822
822
  });
823
823
  });
824
- Fe.displayName = "ExpressionOption";
825
- var Ie = "\0blank", Le = (e) => typeof e == "string" ? "s:" + e.toLowerCase() : typeof e + ":" + String(e), Re = (e, t) => t ? e.text : Le(e.value), ze = (e) => {
824
+ Ie.displayName = "ExpressionOption";
825
+ var Le = "\0blank", Re = (e) => typeof e == "string" ? "s:" + e.toLowerCase() : typeof e + ":" + String(e), ze = (e, t) => t ? e.text : Re(e.value), Be = (e) => {
826
826
  let t = e?.[0]?.runs;
827
827
  return t && t.length > 0 ? t[t.length - 1].max : -1;
828
- }, Be = (e, t, n) => {
829
- let r = e.items, i = (e) => t.has(Re(r[e], n)), { groups: a, leafItems: o } = ((e, t, n) => {
828
+ }, Ve = (e, t, n) => {
829
+ let r = e.items, i = (e) => t.has(ze(r[e], n)), { groups: a, leafItems: o } = ((e, t, n) => {
830
830
  let r = [], i = [];
831
831
  if (!t || t.length === 0) return {
832
832
  groups: r,
@@ -845,7 +845,7 @@ var Ie = "\0blank", Le = (e) => typeof e == "string" ? "s:" + e.toLowerCase() :
845
845
  else if (d) for (let e = u.min; e <= u.max; e++) n(e) && i.push(e);
846
846
  }
847
847
  };
848
- return a(0, 0, ze(t)), {
848
+ return a(0, 0, Be(t)), {
849
849
  groups: r,
850
850
  leafItems: i
851
851
  };
@@ -853,39 +853,39 @@ var Ie = "\0blank", Le = (e) => typeof e == "string" ? "s:" + e.toLowerCase() :
853
853
  s.push(n ? r[e].text : r[e].value);
854
854
  };
855
855
  for (let e = 0; e < o.length; e++) c(o[e]);
856
- for (let t = ze(e.dates) + 1; t < r.length; t++) i(t) && c(t);
856
+ for (let t = Be(e.dates) + 1; t < r.length; t++) i(t) && c(t);
857
857
  let l = { items: s };
858
- return a.length > 0 && (l.dateGroups = a), e.hasBlanks && t.has(Ie) && (l.blank = !0), l;
859
- }, Ve = o.BuiltInSelectorNames.Display, He = b((e) => {
860
- let { onOptionChange: t, getItems: n, selector: r, onSelectorChange: i, ignoreBlank: a = !1, readOnly: o, sx: s, propsChecklist: c } = e, { onWholeChange: u, ...d } = c ?? {}, f = g(), p = r?.getName() === Ve, [m, h] = E(null), [_, v] = E(() => /* @__PURE__ */ new Set()), y = T(null), b = T(t);
858
+ return a.length > 0 && (l.dateGroups = a), e.hasBlanks && t.has(Le) && (l.blank = !0), l;
859
+ }, He = o.BuiltInSelectorNames.Display, Ue = x((e) => {
860
+ let { onOptionChange: t, getItems: n, selector: r, onSelectorChange: i, ignoreBlank: a = !1, readOnly: o, sx: s, propsChecklist: c } = e, { onWholeChange: u, ...d } = c ?? {}, f = _(), p = r?.getName() === He, [m, h] = D(null), [g, v] = D(() => /* @__PURE__ */ new Set()), y = E(null), b = E(t);
861
861
  b.current = t;
862
- let S = T(u);
863
- S.current = u, C(() => {
862
+ let x = E(u);
863
+ x.current = u, w(() => {
864
864
  let e = !0;
865
- return n({ selector: p ? Ve : null }).then((t) => {
865
+ return n({ selector: p ? He : null }).then((t) => {
866
866
  if (!e) return;
867
867
  let n = y.current;
868
868
  y.current = null;
869
869
  let r = /* @__PURE__ */ new Set();
870
- for (let e of t.items) (n ? n.values.has(Le(e.value)) || n.texts.has(e.text) : e.checked) && r.add(Re(e, p));
871
- t.hasBlanks && (n ? n.blank : t.blanksChecked) && r.add(Ie), h(t), v(r);
870
+ for (let e of t.items) (n ? n.values.has(Re(e.value)) || n.texts.has(e.text) : e.checked) && r.add(ze(e, p));
871
+ t.hasBlanks && (n ? n.blank : t.blanksChecked) && r.add(Le), h(t), v(r);
872
872
  }), () => {
873
873
  e = !1;
874
874
  };
875
- }, [n, p]), C(() => {
875
+ }, [n, p]), w(() => {
876
876
  if (!m) return;
877
- b.current(Be(m, _, p));
877
+ b.current(Ve(m, g, p));
878
878
  let e = !m.truncated;
879
- for (let t = 0; e && t < m.items.length; t++) e = _.has(Re(m.items[t], p));
880
- let t = !m.hasBlanks || a || _.has(Ie);
881
- S.current?.(e, t);
879
+ for (let t = 0; e && t < m.items.length; t++) e = g.has(ze(m.items[t], p));
880
+ let t = !m.hasBlanks || a || g.has(Le);
881
+ x.current?.(e, t);
882
882
  }, [
883
883
  m,
884
- _,
884
+ g,
885
885
  p,
886
886
  a
887
887
  ]);
888
- let D = w(() => {
888
+ let C = T(() => {
889
889
  if (!m) return [];
890
890
  let e = ((e, t, n) => {
891
891
  let r = /* @__PURE__ */ new Map();
@@ -903,12 +903,12 @@ var Ie = "\0blank", Le = (e) => typeof e == "string" ? "s:" + e.toLowerCase() :
903
903
  text: e[n],
904
904
  value: t.value,
905
905
  count: t.count,
906
- key: Re(t, p)
906
+ key: ze(t, p)
907
907
  }));
908
908
  return m.hasBlanks && !a && t.push({
909
909
  text: f("checklist.blank"),
910
910
  value: null,
911
- key: Ie,
911
+ key: Le,
912
912
  blank: !0
913
913
  }), t;
914
914
  }, [
@@ -916,29 +916,29 @@ var Ie = "\0blank", Le = (e) => typeof e == "string" ? "s:" + e.toLowerCase() :
916
916
  p,
917
917
  a,
918
918
  f
919
- ]), O = x((e, t) => {
919
+ ]), O = S((e, t) => {
920
920
  o || v((n) => {
921
921
  let r = new Set(n);
922
922
  for (let n of e) t ? r.add(n) : r.delete(n);
923
923
  return r;
924
924
  });
925
- }, [o]), k = x((e) => {
925
+ }, [o]), k = S((e) => {
926
926
  if (o || !m || !i || e === p) return;
927
927
  let t = {
928
928
  values: /* @__PURE__ */ new Set(),
929
929
  texts: /* @__PURE__ */ new Set(),
930
- blank: _.has(Ie)
930
+ blank: g.has(Le)
931
931
  };
932
- for (let e of m.items) _.has(Re(e, p)) && (t.values.add(Le(e.value)), t.texts.add(e.text));
933
- y.current = t, i(e ? Ve : null);
932
+ for (let e of m.items) g.has(ze(e, p)) && (t.values.add(Re(e.value)), t.texts.add(e.text));
933
+ y.current = t, i(e ? He : null);
934
934
  }, [
935
935
  o,
936
936
  m,
937
- _,
937
+ g,
938
938
  p,
939
939
  i
940
940
  ]);
941
- return A(M, {
941
+ return j(N, {
942
942
  sx: {
943
943
  display: "flex",
944
944
  flexDirection: "column",
@@ -946,10 +946,10 @@ var Ie = "\0blank", Le = (e) => typeof e == "string" ? "s:" + e.toLowerCase() :
946
946
  typography: "body2",
947
947
  ...s
948
948
  },
949
- children: A(l, {
950
- items: D,
949
+ children: j(l, {
950
+ items: C,
951
951
  dates: m?.dates,
952
- checked: _,
952
+ checked: g,
953
953
  onCheckedChange: O,
954
954
  byDisplay: p,
955
955
  onByDisplayChange: i ? k : void 0,
@@ -962,20 +962,20 @@ var Ie = "\0blank", Le = (e) => typeof e == "string" ? "s:" + e.toLowerCase() :
962
962
  })
963
963
  });
964
964
  });
965
- He.displayName = "SnapshotMembership";
966
- var Ue = (e) => e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : String(e), We = b((e) => {
967
- let { option: n, onOptionChange: r, ignoreBlank: i = !1, readOnly: o, sx: s, propsChecklist: l } = e, d = g(), f = u(), p = S(xe), m = we(), h = c(f?.getWorkbook()?.getLocale() ?? "en").listSeparator, _ = n?.items, v = n?.source, y = n?.additions, b = n?.subtractions, D = n?.blank, O = v != null && v !== "", k = w(() => {
965
+ Ue.displayName = "SnapshotMembership";
966
+ var We = (e) => e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : String(e), Ge = x((e) => {
967
+ let { option: n, onOptionChange: r, ignoreBlank: i = !1, readOnly: o, sx: s, propsChecklist: l } = e, d = _(), f = u(), p = C(Se), m = Te(), h = c(f?.getWorkbook()?.getLocale() ?? "en").listSeparator, g = n?.items, v = n?.source, y = n?.additions, b = n?.subtractions, x = n?.blank, O = v != null && v !== "", k = T(() => {
968
968
  let e = [];
969
- if (Array.isArray(_)) for (let t = 0; t < _.length; t++) {
970
- let n = Ue(_[t]);
969
+ if (Array.isArray(g)) for (let t = 0; t < g.length; t++) {
970
+ let n = We(g[t]);
971
971
  n.length > 0 && e.push(n);
972
972
  }
973
973
  if (y) for (let t = 0; t < y.length; t++) e.push(y[t]);
974
974
  return e;
975
- }, [_, y]), [N, P] = E(null), F = T(0);
976
- C(() => {
975
+ }, [g, y]), [A, P] = D(null), F = E(0);
976
+ w(() => {
977
977
  if (!p?.getListItemsAt || !f) return void P(null);
978
- let e = ++F.current, { rowIndex: t, colIndex: n } = Se(f);
978
+ let e = ++F.current, { rowIndex: t, colIndex: n } = Ce(f);
979
979
  p.getListItemsAt(t, n).then((t) => {
980
980
  e === F.current && P(t);
981
981
  }, () => {
@@ -984,47 +984,47 @@ var Ue = (e) => e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" :
984
984
  }, [
985
985
  p,
986
986
  f,
987
- _,
987
+ g,
988
988
  v,
989
989
  y,
990
990
  b,
991
- D
991
+ x
992
992
  ]);
993
- let I = w(() => {
993
+ let I = T(() => {
994
994
  let e = [];
995
- if (N) {
996
- for (let t = 0; t < N.length; t++) {
997
- let n = N[t];
995
+ if (A) {
996
+ for (let t = 0; t < A.length; t++) {
997
+ let n = A[t];
998
998
  n.value === null ? i || e.push({ text: d("checklist.blank") }) : e.push({ text: n.text });
999
999
  }
1000
1000
  return e;
1001
1001
  }
1002
1002
  for (let t = 0; t < k.length; t++) e.push({ text: k[t] });
1003
- return D && !i && e.push({ text: d("checklist.blank") }), e;
1003
+ return x && !i && e.push({ text: d("checklist.blank") }), e;
1004
1004
  }, [
1005
- N,
1005
+ A,
1006
1006
  k,
1007
- D,
1007
+ x,
1008
1008
  i,
1009
1009
  d
1010
- ]), [R, z] = E(null), [B, V] = E(null), H = x((e) => {
1010
+ ]), [ee, R] = D(null), [z, B] = D(null), V = S((e) => {
1011
1011
  let { source: t, items: i, additions: o, subtractions: s, ...c } = n ?? {}, l = e.trim();
1012
1012
  if (l.startsWith("=")) {
1013
1013
  let e = l.substring(1).trim();
1014
- if (e.length === 0) return void z(null);
1014
+ if (e.length === 0) return void R(null);
1015
1015
  let t = m.compile(e), n = typeof t == "string" ? t : t.getExpression();
1016
1016
  typeof t != "string" && ((e) => {
1017
1017
  let t = e;
1018
1018
  for (; t?.type === "paren" && t.inputs?.length === 1;) t = t.inputs[0];
1019
1019
  return t?.type === "list" || t?.type === "paren" && (t.inputs?.length ?? 0) > 1;
1020
- })(a.parse(n)) ? z(G("condition.listSourceOneRange")) : (z(null), r({
1020
+ })(a.parse(n)) ? R(G("condition.listSourceOneRange")) : (R(null), r({
1021
1021
  ...c,
1022
1022
  source: n
1023
1023
  }));
1024
1024
  return;
1025
1025
  }
1026
1026
  let u = l.length === 0 ? [] : l.split(h).map((e) => e.trim()).filter((e) => e.length > 0);
1027
- u.some((e) => e.includes(",")) ? z(G("condition.listItemHasComma")) : (z(null), r(u.length > 0 ? {
1027
+ u.some((e) => e.includes(",")) ? R(G("condition.listItemHasComma")) : (R(null), r(u.length > 0 ? {
1028
1028
  ...c,
1029
1029
  additions: u
1030
1030
  } : c));
@@ -1033,14 +1033,14 @@ var Ue = (e) => e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" :
1033
1033
  r,
1034
1034
  m,
1035
1035
  h
1036
- ]), U = w(() => O ? "=" + (v.isIFormula ? m.display(v) : v) : k.join(h + " "), [
1036
+ ]), H = T(() => O ? "=" + (v.isIFormula ? m.display(v) : v) : k.join(h + " "), [
1037
1037
  O,
1038
1038
  v,
1039
1039
  m,
1040
1040
  k,
1041
1041
  h
1042
- ]), W = B ?? R, { viewport: ee, itemHeight: ie } = l ?? {}, ae = ie ?? 24, [q, oe] = E(""), J = w(() => q ? re(I, q) : I, [I, q]);
1043
- return j(M, {
1042
+ ]), U = z ?? ee, { viewport: te, itemHeight: W } = l ?? {}, ae = W ?? 24, [q, J] = D(""), oe = T(() => q ? ie(I, q) : I, [I, q]);
1043
+ return M(N, {
1044
1044
  sx: {
1045
1045
  display: "flex",
1046
1046
  flexDirection: "column",
@@ -1050,11 +1050,11 @@ var Ue = (e) => e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" :
1050
1050
  ...s
1051
1051
  },
1052
1052
  children: [
1053
- A(t, {
1053
+ j(t, {
1054
1054
  size: "small",
1055
1055
  home: m.home,
1056
- value: U,
1057
- onChangeText: H,
1056
+ value: H,
1057
+ onChangeText: V,
1058
1058
  label: null,
1059
1059
  placeholder: d("condition.enterListSource"),
1060
1060
  disabled: o,
@@ -1062,17 +1062,17 @@ var Ue = (e) => e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" :
1062
1062
  equals: "literal",
1063
1063
  pickAs: "absolute",
1064
1064
  allowMulti: !1,
1065
- validationError: R,
1066
- onChangeError: V,
1065
+ validationError: ee,
1066
+ onChangeError: B,
1067
1067
  showError: !1,
1068
1068
  helperText: null
1069
1069
  }),
1070
- W && A(L, {
1070
+ U && j(L, {
1071
1071
  error: !0,
1072
1072
  sx: { mt: -.5 },
1073
- children: d(W)
1073
+ children: d(U)
1074
1074
  }),
1075
- j(M, {
1075
+ M(N, {
1076
1076
  className: "list-preview",
1077
1077
  sx: {
1078
1078
  display: "flex",
@@ -1080,12 +1080,12 @@ var Ue = (e) => e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" :
1080
1080
  gap: .5,
1081
1081
  minWidth: 0
1082
1082
  },
1083
- children: [A(ne, {
1083
+ children: [j(K, {
1084
1084
  value: q,
1085
- onChange: oe,
1085
+ onChange: J,
1086
1086
  placeholder: d("condition.listPreviewSearch"),
1087
1087
  clearLabel: d("condition.listPreviewClearSearch"),
1088
- trailing: A(M, {
1088
+ trailing: j(N, {
1089
1089
  component: "span",
1090
1090
  className: "list-preview-count",
1091
1091
  sx: {
@@ -1095,11 +1095,11 @@ var Ue = (e) => e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" :
1095
1095
  whiteSpace: "nowrap"
1096
1096
  },
1097
1097
  children: q ? d("checklist.countFiltered", {
1098
- checked: J.length,
1098
+ checked: oe.length,
1099
1099
  total: I.length
1100
1100
  }) : d("condition.listItems", { count: I.length })
1101
1101
  })
1102
- }), A(M, {
1102
+ }), j(N, {
1103
1103
  sx: {
1104
1104
  display: "flex",
1105
1105
  flexDirection: "column",
@@ -1109,7 +1109,7 @@ var Ue = (e) => e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" :
1109
1109
  minWidth: 0,
1110
1110
  height: 6 * ae + 2
1111
1111
  },
1112
- children: J.length === 0 ? A(te, {
1112
+ children: oe.length === 0 ? j(ne, {
1113
1113
  variant: "body2",
1114
1114
  color: "text.disabled",
1115
1115
  sx: {
@@ -1120,10 +1120,10 @@ var Ue = (e) => e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" :
1120
1120
  px: 1
1121
1121
  },
1122
1122
  children: d(q ? "condition.listPreviewNoMatch" : "condition.listPreviewEmpty")
1123
- }) : A(K, {
1124
- items: J,
1125
- itemHeight: ie,
1126
- viewport: ee,
1123
+ }) : j(re, {
1124
+ items: oe,
1125
+ itemHeight: W,
1126
+ viewport: te,
1127
1127
  visibleRows: 6,
1128
1128
  style: { minWidth: "100%" }
1129
1129
  })
@@ -1132,16 +1132,16 @@ var Ue = (e) => e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" :
1132
1132
  ]
1133
1133
  });
1134
1134
  });
1135
- We.displayName = "AuthoredMembership";
1136
- var Ge = b((e) => {
1135
+ Ge.displayName = "AuthoredMembership";
1136
+ var Ke = x((e) => {
1137
1137
  let t = e.getItems;
1138
- return t ? A(He, {
1138
+ return t ? j(Ue, {
1139
1139
  ...e,
1140
1140
  getItems: t
1141
- }) : A(We, { ...e });
1141
+ }) : j(Ge, { ...e });
1142
1142
  });
1143
- Ge.displayName = "MembershipOption";
1144
- var Q = o.BuiltInOperatorNames, Ke = /* @__PURE__ */ new Set([
1143
+ Ke.displayName = "MembershipOption";
1144
+ var Q = o.BuiltInOperatorNames, qe = /* @__PURE__ */ new Set([
1145
1145
  Q.EqualTo,
1146
1146
  Q.GreaterThan,
1147
1147
  Q.GreaterThanEqualTo,
@@ -1151,47 +1151,50 @@ var Q = o.BuiltInOperatorNames, Ke = /* @__PURE__ */ new Set([
1151
1151
  Q.AfterEqualTo,
1152
1152
  Q.Before,
1153
1153
  Q.BeforeEqualTo
1154
- ]), qe = b((e) => {
1155
- let { operatorParam: t, onOperatorParamChange: n, onRemove: r, renderRemove: i, operators: a, selector: s, onSelectorChange: c, getItems: l, propsChecklist: u, ignoreBlank: f, operatorTitle: m, operatorFixed: _ = !1, readOnly: v, required: y, ...b } = e, x = g(), S = m ?? x("condition.when"), C = t?.operator ?? null, T = () => v || y || i === null ? null : i ? i({
1156
- onClick: r,
1157
- operator: C,
1158
- readOnly: v
1159
- }) : A(D, {
1160
- icon: A(d, { iconKey: "Close" }),
1154
+ ]), Je = x((e) => {
1155
+ let { operatorParam: t, onOperatorParamChange: n, onRemove: r, renderRemove: i, operators: a, selector: s, onSelectorChange: c, getItems: l, propsChecklist: u, ignoreBlank: f, operatorTitle: h, operatorFixed: v = !1, readOnly: y, required: b, ...x } = e, S = _(), C = h ?? S("condition.when"), w = t?.operator ?? null, E = () => y || b || i === null ? null : i ? j(p, {
1156
+ render: i,
1157
+ props: {
1158
+ onClick: r,
1159
+ operator: w,
1160
+ readOnly: y
1161
+ }
1162
+ }) : j(O, {
1163
+ icon: j(d, { iconKey: "Close" }),
1161
1164
  onClick: r
1162
- }), E = a.find((e) => e.getName() === C) ?? null, O = t?.param ?? null, N = !!E?.isCombinator?.(), P = C === o.BuiltInOperatorNames.InSet, [F, { width: I }] = h(), L = w(() => !E || N ? null : E.getParamType?.(s ?? void 0) ?? null, [
1163
- E,
1164
- N,
1165
+ }), D = a.find((e) => e.getName() === w) ?? null, k = t?.param ?? null, P = !!D?.isCombinator?.(), F = w === o.BuiltInOperatorNames.InSet, [I, { width: ee }] = g(), L = T(() => !D || P ? null : D.getParamType?.(s ?? void 0) ?? null, [
1166
+ D,
1167
+ P,
1165
1168
  s
1166
- ]), R = _ || !N && !P && I > 360, z = p((e) => {
1169
+ ]), R = v || !P && !F && ee > 360, z = m((e) => {
1167
1170
  n({
1168
- operator: C,
1171
+ operator: w,
1169
1172
  param: e
1170
1173
  });
1171
- }, [n, C]), B = w(() => {
1172
- if (!E || N) return null;
1174
+ }, [n, w]), B = T(() => {
1175
+ if (!D || P) return null;
1173
1176
  let e = {
1174
1177
  sx: {
1175
- flex: _ ? 1 : .6,
1178
+ flex: v ? 1 : .6,
1176
1179
  minWidth: 0
1177
1180
  },
1178
- option: O,
1181
+ option: k,
1179
1182
  onOptionChange: z
1180
1183
  };
1181
- if (P) return A(Ge, {
1184
+ if (F) return j(Ke, {
1182
1185
  ...e,
1183
1186
  getItems: l,
1184
1187
  selector: s,
1185
1188
  onSelectorChange: c,
1186
- readOnly: v,
1189
+ readOnly: y,
1187
1190
  propsChecklist: u,
1188
1191
  ignoreBlank: f
1189
1192
  });
1190
1193
  if (!L) return null;
1191
- let t = !!C && Ke.has(C);
1192
- return L === o.BuiltInSelectorNames.Number || L === o.BuiltInSelectorNames.TextLength ? A(t ? Z : be, { ...e }) : L === o.BuiltInSelectorNames.Whole ? t ? A(Z, { ...e }) : A(be, {
1194
+ let t = !!w && qe.has(w);
1195
+ return L === o.BuiltInSelectorNames.Number || L === o.BuiltInSelectorNames.TextLength ? j(t ? Z : xe, { ...e }) : L === o.BuiltInSelectorNames.Whole ? t ? j(Z, { ...e }) : j(xe, {
1193
1196
  ...e,
1194
- placeholder: x("condition.enterWholeNumber"),
1197
+ placeholder: S("condition.enterWholeNumber"),
1195
1198
  slotProps: { htmlInput: {
1196
1199
  step: 1,
1197
1200
  onKeyDown: (e) => {
@@ -1206,48 +1209,48 @@ var Q = o.BuiltInOperatorNames, Ke = /* @__PURE__ */ new Set([
1206
1209
  /^-?\d+$/.test(e.clipboardData.getData("text")) || e.preventDefault();
1207
1210
  }
1208
1211
  } }
1209
- }) : L === o.BuiltInSelectorNames.Text || L === o.BuiltInSelectorNames.Display ? A(t ? Z : ye, { ...e }) : L === o.BuiltInSelectorNames.DateTime ? A(Z, {
1212
+ }) : L === o.BuiltInSelectorNames.Text || L === o.BuiltInSelectorNames.Display ? j(t ? Z : be, { ...e }) : L === o.BuiltInSelectorNames.DateTime ? j(Z, {
1210
1213
  ...e,
1211
1214
  literal: "dateTime"
1212
- }) : L === o.BuiltInSelectorNames.Date ? A(Z, {
1215
+ }) : L === o.BuiltInSelectorNames.Date ? j(Z, {
1213
1216
  ...e,
1214
1217
  literal: "date"
1215
- }) : L === o.BuiltInSelectorNames.Time ? A(Z, {
1218
+ }) : L === o.BuiltInSelectorNames.Time ? j(Z, {
1216
1219
  ...e,
1217
1220
  literal: "time"
1218
- }) : L === o.BuiltInSelectorNames.Logical ? A(ke, { ...e }) : L === o.BuiltInOperatorNames.Average ? A(je, { ...e }) : L === o.BuiltInOperatorNames.TimePeriod ? A(Me, { ...e }) : L === o.BuiltInOperatorNames.TopN ? A(Ne, { ...e }) : L === o.BuiltInOperatorNames.Between ? A(Pe, {
1221
+ }) : L === o.BuiltInSelectorNames.Logical ? j(Ae, { ...e }) : L === o.BuiltInOperatorNames.Average ? j(Me, { ...e }) : L === o.BuiltInOperatorNames.TimePeriod ? j(Ne, { ...e }) : L === o.BuiltInOperatorNames.TopN ? j(Pe, { ...e }) : L === o.BuiltInOperatorNames.Between ? j(Fe, {
1219
1222
  ...e,
1220
1223
  selector: s
1221
- }) : L === o.BuiltInOperatorNames.Expression ? A(Fe, { ...e }) : null;
1224
+ }) : L === o.BuiltInOperatorNames.Expression ? j(Ie, { ...e }) : null;
1222
1225
  }, [
1223
- E,
1224
- N,
1226
+ D,
1225
1227
  P,
1228
+ F,
1226
1229
  l,
1227
1230
  u,
1228
1231
  f,
1229
- v,
1232
+ y,
1230
1233
  L,
1231
- O,
1234
+ k,
1232
1235
  s,
1233
1236
  c,
1234
- _,
1235
- x
1236
- ]), V = w(() => N && O ? Array.isArray(O) ? O : [O] : [], [N, O]), H = N && E?.getName() === "not", U = (e) => {
1237
- if (!e || e === E) return;
1237
+ v,
1238
+ S
1239
+ ]), V = T(() => P && k ? Array.isArray(k) ? k : [k] : [], [P, k]), H = P && D?.getName() === "not", U = (e) => {
1240
+ if (!e || e === D) return;
1238
1241
  let t = !!e.isCombinator?.(), r;
1239
- if (t && N) r = e.getName() === "not" ? V[0] ?? X(e, a, s) : V.length > 0 ? V : X(e, a, s);
1242
+ if (t && P) r = e.getName() === "not" ? V[0] ?? X(e, a, s) : V.length > 0 ? V : X(e, a, s);
1240
1243
  else {
1241
- let n = E?.getParamType?.(s ?? void 0) ?? null, i = e.getParamType?.(s ?? void 0) ?? null;
1242
- r = t || N || !i || i !== n ? X(e, a, s) : O;
1244
+ let n = D?.getParamType?.(s ?? void 0) ?? null, i = e.getParamType?.(s ?? void 0) ?? null;
1245
+ r = t || P || !i || i !== n ? X(e, a, s) : k;
1243
1246
  }
1244
1247
  n({
1245
1248
  operator: e?.getName() ?? null,
1246
1249
  param: r
1247
1250
  });
1248
1251
  };
1249
- return A(M, {
1250
- ref: F,
1252
+ return j(N, {
1253
+ ref: I,
1251
1254
  sx: {
1252
1255
  display: "flex",
1253
1256
  flexDirection: "column",
@@ -1258,8 +1261,8 @@ var Q = o.BuiltInOperatorNames, Ke = /* @__PURE__ */ new Set([
1258
1261
  borderRadius: 1,
1259
1262
  p: 1
1260
1263
  },
1261
- ...b,
1262
- children: R ? j(M, {
1264
+ ...x,
1265
+ children: R ? M(N, {
1263
1266
  sx: {
1264
1267
  display: "flex",
1265
1268
  flexDirection: "row",
@@ -1267,18 +1270,18 @@ var Q = o.BuiltInOperatorNames, Ke = /* @__PURE__ */ new Set([
1267
1270
  gap: .5
1268
1271
  },
1269
1272
  children: [
1270
- _ ? null : A(_e, {
1271
- title: S,
1273
+ v ? null : j(ve, {
1274
+ title: C,
1272
1275
  sx: { flex: .4 },
1273
- value: E,
1276
+ value: D,
1274
1277
  operators: a,
1275
1278
  onChange: U,
1276
- readOnly: v
1279
+ readOnly: y
1277
1280
  }),
1278
1281
  B,
1279
- T()
1282
+ E()
1280
1283
  ]
1281
- }) : j(k, { children: [j(M, {
1284
+ }) : M(A, { children: [M(N, {
1282
1285
  sx: {
1283
1286
  display: "flex",
1284
1287
  flexDirection: "row",
@@ -1286,17 +1289,17 @@ var Q = o.BuiltInOperatorNames, Ke = /* @__PURE__ */ new Set([
1286
1289
  gap: .5
1287
1290
  },
1288
1291
  children: [
1289
- A(_e, {
1290
- title: S,
1292
+ j(ve, {
1293
+ title: C,
1291
1294
  sx: { flex: 1 },
1292
- value: E,
1295
+ value: D,
1293
1296
  operators: a,
1294
1297
  onChange: U,
1295
- readOnly: v
1298
+ readOnly: y
1296
1299
  }),
1297
- N && !H && !v && A(ge, {
1298
- label: E?.getTitle?.(),
1299
- icon: A(d, { iconKey: "Add" }),
1300
+ P && !H && !y && j(_e, {
1301
+ label: D?.getTitle?.(),
1302
+ icon: j(d, { iconKey: "Add" }),
1300
1303
  operators: a,
1301
1304
  value: null,
1302
1305
  onChange: (e) => {
@@ -1306,19 +1309,19 @@ var Q = o.BuiltInOperatorNames, Ke = /* @__PURE__ */ new Set([
1306
1309
  param: t
1307
1310
  }];
1308
1311
  n({
1309
- operator: C,
1312
+ operator: w,
1310
1313
  param: r
1311
1314
  });
1312
1315
  }
1313
1316
  }),
1314
- T()
1317
+ E()
1315
1318
  ]
1316
- }), N ? A(ve, {
1317
- operator: E,
1319
+ }), P ? j(ye, {
1320
+ operator: D,
1318
1321
  inputs: V,
1319
1322
  onOptionChange: (e) => {
1320
1323
  n({
1321
- operator: C,
1324
+ operator: w,
1322
1325
  param: H ? e[0] ?? null : e
1323
1326
  });
1324
1327
  },
@@ -1327,76 +1330,76 @@ var Q = o.BuiltInOperatorNames, Ke = /* @__PURE__ */ new Set([
1327
1330
  getItems: l,
1328
1331
  propsChecklist: u,
1329
1332
  ignoreBlank: f,
1330
- readOnly: v
1333
+ readOnly: y
1331
1334
  }) : B] })
1332
1335
  });
1333
1336
  });
1334
- qe.displayName = "OperatorAndParamEditor";
1335
- var Je = {
1337
+ Je.displayName = "OperatorAndParamEditor";
1338
+ var Ye = {
1336
1339
  backgroundColor: "action.hover",
1337
1340
  border: 1,
1338
1341
  borderColor: "divider",
1339
1342
  borderRadius: 1
1340
- }, $ = "formula", Ye = b((e) => {
1341
- let { condition: t, onConditionChange: n, showIncludeBlanks: i = !0, qualifiers: a, selectorTitle: s, readOnly: c, operators: l, selectors: u, ranges: d, getItems: f, propsChecklist: p, showSelector: h = !0, operatorTitle: _, renderRemove: v, sx: y, ...b } = e, x = g(), S = m(), [D, O] = E(() => t?.getSelector() ?? null), [k, P] = E(() => t?.getOperator() ? {
1343
+ }, $ = "formula", Xe = x((e) => {
1344
+ let { condition: t, onConditionChange: n, showIncludeBlanks: i = !0, qualifiers: a, selectorTitle: s, readOnly: c, operators: l, selectors: u, ranges: d, getItems: f, propsChecklist: p, showSelector: m = !0, operatorTitle: g, renderRemove: v, sx: y, ...b } = e, x = _(), S = h(), [C, O] = D(() => t?.getSelector() ?? null), [k, A] = D(() => t?.getOperator() ? {
1342
1345
  operator: t.getOperator().getName(),
1343
1346
  param: t.getParam()
1344
- } : null), [F, L] = E(() => t?.isIncludeBlanks() ?? !1);
1345
- C(() => {
1346
- if (!t) return O(null), void P(null);
1347
+ } : null), [F, I] = D(() => t?.isIncludeBlanks() ?? !1);
1348
+ w(() => {
1349
+ if (!t) return O(null), void A(null);
1347
1350
  let e = t.getOperator(), n = t.getSelector() ?? null;
1348
- O(n), P(e ? {
1351
+ O(n), A(e ? {
1349
1352
  operator: e.getName(),
1350
1353
  param: t.getParam()
1351
- } : null), L(t.isIncludeBlanks());
1354
+ } : null), I(t.isIncludeBlanks());
1352
1355
  }, [t]);
1353
- let R = w(() => (u ?? Object.values(r.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", S)), [u, S]), z = w(() => l ?? Object.values(r.BuiltInOperators), [l]), B = w(() => z.find((e) => e.getName() === o.BuiltInOperatorNames.Expression) ?? null, [z]), V = h && !!B, H = V && k?.operator === o.BuiltInOperatorNames.Expression, U = w(() => {
1356
+ let L = T(() => (u ?? Object.values(r.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", S)), [u, S]), R = T(() => l ?? Object.values(r.BuiltInOperators), [l]), z = T(() => R.find((e) => e.getName() === o.BuiltInOperatorNames.Expression) ?? null, [R]), B = m && !!z, V = B && k?.operator === o.BuiltInOperatorNames.Expression, H = T(() => {
1354
1357
  if (l) return null;
1355
- let e = z.find((e) => e.getName() === o.BuiltInOperatorNames.InSet);
1356
- return e ? (t = Object.create(e), le.add(t), t) : null;
1358
+ let e = R.find((e) => e.getName() === o.BuiltInOperatorNames.InSet);
1359
+ return e ? (t = Object.create(e), ue.add(t), t) : null;
1357
1360
  var t;
1358
- }, [z, l]), W = w(() => {
1359
- let e = fe(h ? D : null, z, S, l ? [] : void 0);
1361
+ }, [R, l]), U = T(() => {
1362
+ let e = pe(m ? C : null, R, S, l ? [] : void 0);
1360
1363
  if (f) {
1361
- let t = z.find((e) => e.getName() === o.BuiltInOperatorNames.InSet);
1364
+ let t = R.find((e) => e.getName() === o.BuiltInOperatorNames.InSet);
1362
1365
  t && !e.includes(t) && e.unshift(t);
1363
1366
  }
1364
- if (U && !D) {
1367
+ if (H && !C) {
1365
1368
  let t = e.findIndex((e) => e.getName() === o.BuiltInOperatorNames.InSet);
1366
- t >= 0 && e.splice(t, 1, U);
1369
+ t >= 0 && e.splice(t, 1, H);
1367
1370
  }
1368
1371
  return e;
1369
1372
  }, [
1370
- D,
1371
- z,
1373
+ C,
1374
+ R,
1372
1375
  S,
1373
1376
  l,
1374
1377
  f,
1375
- h,
1376
- U
1377
- ]), ee = w(() => V ? W.filter((e) => e.getName() !== o.BuiltInOperatorNames.Expression) : W, [W, V]), te = T(/* @__PURE__ */ new Map()), G = (e) => e?.getName() ?? "", ne = T(null), K = T(!1);
1378
- C(() => {
1378
+ m,
1379
+ H
1380
+ ]), te = T(() => B ? U.filter((e) => e.getName() !== o.BuiltInOperatorNames.Expression) : U, [U, B]), W = E(/* @__PURE__ */ new Map()), ne = (e) => e?.getName() ?? "", G = E(null), K = E(!1);
1381
+ w(() => {
1379
1382
  if (!K.current) return;
1380
1383
  K.current = !1;
1381
- let e = Array.from(ne.current?.querySelectorAll("input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"hidden\"]):not([tabindex=\"-1\"]), textarea") ?? []).find((e) => !e.disabled && !e.readOnly && e.getAttribute("aria-hidden") !== "true");
1384
+ let e = Array.from(G.current?.querySelectorAll("input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"hidden\"]):not([tabindex=\"-1\"]), textarea") ?? []).find((e) => !e.disabled && !e.readOnly && e.getAttribute("aria-hidden") !== "true");
1382
1385
  e && (e.focus(), e.select());
1383
- }, [D, k]);
1386
+ }, [C, k]);
1384
1387
  let re = (e) => {
1385
- let t = z.find((t) => t.getName() === e.operator) ?? null, r = h || !D || !t || ((e, t) => {
1388
+ let t = R.find((t) => t.getName() === e.operator) ?? null, r = m || !C || !t || ((e, t) => {
1386
1389
  if (!e) return !0;
1387
1390
  let n = t.getName();
1388
1391
  if (n === o.BuiltInOperatorNames.Blank) return !0;
1389
- if (e.getName() === o.BuiltInSelectorNames.Display && ce.has(n)) return !1;
1392
+ if (e.getName() === o.BuiltInSelectorNames.Display && le.has(n)) return !1;
1390
1393
  let r = t.getAcceptsTypes?.();
1391
1394
  return !r || r.includes(e.getSelectType() ?? null);
1392
- })(D, t) ? D : null;
1393
- r !== D && O(r), P(e), n?.({
1395
+ })(C, t) ? C : null;
1396
+ r !== C && O(r), A(e), n?.({
1394
1397
  selector: r,
1395
1398
  ...e,
1396
1399
  includeBlanks: F
1397
1400
  });
1398
1401
  };
1399
- return j(M, {
1402
+ return M(N, {
1400
1403
  sx: [{
1401
1404
  display: "flex",
1402
1405
  flexDirection: "column",
@@ -1404,17 +1407,17 @@ var Je = {
1404
1407
  }, ...Array.isArray(y) ? y : [y]],
1405
1408
  ...b,
1406
1409
  children: [
1407
- h ? A(ie, {
1410
+ m ? j(ae, {
1408
1411
  title: s,
1409
- selectors: R,
1410
- value: D,
1412
+ selectors: L,
1413
+ value: C,
1411
1414
  onChange: (e, t) => {
1412
- if (k && te.current.set(H ? $ : G(D), k), t === $ && B) {
1413
- let e = te.current.get($) ?? {
1414
- operator: B.getName(),
1415
- param: B.createDefaultParam?.() ?? ""
1415
+ if (k && W.current.set(V ? $ : ne(C), k), t === $ && z) {
1416
+ let e = W.current.get($) ?? {
1417
+ operator: z.getName(),
1418
+ param: z.createDefaultParam?.() ?? ""
1416
1419
  };
1417
- O(null), P(e), K.current = !0, n?.({
1420
+ O(null), A(e), K.current = !0, n?.({
1418
1421
  selector: null,
1419
1422
  ...e,
1420
1423
  includeBlanks: F
@@ -1422,7 +1425,7 @@ var Je = {
1422
1425
  return;
1423
1426
  }
1424
1427
  let r = ((e) => {
1425
- let { from: t, to: n, current: r, remembered: i, operators: a, context: o } = e, s = fe(n, a), c = (e) => e && s.find((t) => t.getName() === e) || null;
1428
+ let { from: t, to: n, current: r, remembered: i, operators: a, context: o } = e, s = pe(n, a), c = (e) => e && s.find((t) => t.getName() === e) || null;
1426
1429
  if (i && c(i.operator)) return i;
1427
1430
  let l = c(r?.operator);
1428
1431
  if (r && l) {
@@ -1438,14 +1441,14 @@ var Je = {
1438
1441
  param: u.param === void 0 ? X(d, s, n) : u.param
1439
1442
  } : null;
1440
1443
  })({
1441
- from: D,
1444
+ from: C,
1442
1445
  to: e,
1443
- current: H ? null : k,
1444
- remembered: te.current.get(G(e)) ?? null,
1445
- operators: z,
1446
+ current: V ? null : k,
1447
+ remembered: W.current.get(ne(e)) ?? null,
1448
+ operators: R,
1446
1449
  context: { ranges: d }
1447
1450
  });
1448
- O(e), P(r), K.current = !0, n?.({
1451
+ O(e), A(r), K.current = !0, n?.({
1449
1452
  selector: e,
1450
1453
  ...r ?? {
1451
1454
  operator: null,
@@ -1456,33 +1459,33 @@ var Je = {
1456
1459
  },
1457
1460
  allowNull: !0,
1458
1461
  readOnly: c,
1459
- extras: V ? [{
1462
+ extras: B ? [{
1460
1463
  value: $,
1461
- title: B.getTitle?.() ?? $
1464
+ title: z.getTitle?.() ?? $
1462
1465
  }] : void 0,
1463
- extraValue: H ? $ : null
1466
+ extraValue: V ? $ : null
1464
1467
  }) : null,
1465
- k ? A(M, {
1466
- ref: ne,
1468
+ k ? j(N, {
1469
+ ref: G,
1467
1470
  sx: { display: "contents" },
1468
- children: A(qe, {
1471
+ children: j(Je, {
1469
1472
  operatorParam: k,
1470
1473
  onOperatorParamChange: re,
1471
1474
  onRemove: () => {
1472
- P(null), n?.({
1473
- selector: D,
1475
+ A(null), n?.({
1476
+ selector: C,
1474
1477
  operator: null,
1475
1478
  param: null,
1476
1479
  includeBlanks: F
1477
1480
  });
1478
1481
  },
1479
1482
  renderRemove: v,
1480
- operatorTitle: _,
1481
- operators: H ? W : ee,
1482
- operatorFixed: H,
1483
- selector: D,
1483
+ operatorTitle: g,
1484
+ operators: V ? U : te,
1485
+ operatorFixed: V,
1486
+ selector: C,
1484
1487
  onSelectorChange: (e) => {
1485
- let t = e ? R.find((t) => t.getName() === e) ?? r.Selectors.get(e) ?? null : null;
1488
+ let t = e ? L.find((t) => t.getName() === e) ?? r.Selectors.get(e) ?? null : null;
1486
1489
  O(t), n?.({
1487
1490
  selector: t,
1488
1491
  ...k,
@@ -1494,22 +1497,22 @@ var Je = {
1494
1497
  ignoreBlank: F,
1495
1498
  readOnly: c
1496
1499
  })
1497
- }) : !c && A(M, {
1500
+ }) : !c && j(N, {
1498
1501
  sx: { display: "flex" },
1499
- children: A(ge, {
1500
- label: _ ?? x("condition.when"),
1501
- operators: ee,
1502
+ children: j(_e, {
1503
+ label: g ?? x("condition.when"),
1504
+ operators: te,
1502
1505
  value: null,
1503
1506
  onChange: (e) => {
1504
1507
  e && (K.current = !0, re({
1505
1508
  operator: e?.getName() ?? null,
1506
- param: X(e, W, D, f ? void 0 : { ranges: d })
1509
+ param: X(e, U, C, f ? void 0 : { ranges: d })
1507
1510
  }));
1508
1511
  },
1509
1512
  readOnly: c
1510
1513
  })
1511
1514
  }),
1512
- i || a ? j(M, {
1515
+ i || a ? M(N, {
1513
1516
  className: "condition-qualifiers",
1514
1517
  sx: {
1515
1518
  display: "flex",
@@ -1517,14 +1520,14 @@ var Je = {
1517
1520
  alignItems: "center",
1518
1521
  columnGap: 2
1519
1522
  },
1520
- children: [i ? A(I, {
1523
+ children: [i ? j(ee, {
1521
1524
  className: "include-blanks",
1522
- control: A(N, {
1525
+ control: j(P, {
1523
1526
  size: "small",
1524
1527
  checked: F,
1525
1528
  onChange: (e) => {
1526
- t = e.target.checked, L(t), n?.({
1527
- selector: D,
1529
+ t = e.target.checked, I(t), n?.({
1530
+ selector: C,
1528
1531
  ...k,
1529
1532
  includeBlanks: t
1530
1533
  });
@@ -1539,5 +1542,5 @@ var Je = {
1539
1542
  ]
1540
1543
  });
1541
1544
  });
1542
- Ye.displayName = "ConditionEditor";
1543
- export { we as a, de as c, xe as i, ue as l, Je as n, se as o, Ge as r, X as s, Ye as t };
1545
+ Xe.displayName = "ConditionEditor";
1546
+ export { Te as a, fe as c, Se as i, de as l, Ye as n, ce as o, Ke as r, X as s, Xe as t };