@arcanewizards/timecode-toolbox 0.1.1 → 0.1.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.
package/dist/frontend.js CHANGED
@@ -25238,8 +25238,8 @@
25238
25238
  return t4;
25239
25239
  };
25240
25240
 
25241
- // ../../packages/sigil/dist/chunk-HF7IIHPE.js
25242
- var import_compiler_runtime5 = __toESM(require_compiler_runtime(), 1);
25241
+ // ../../packages/sigil/dist/chunk-E3VUC3Q4.js
25242
+ var import_compiler_runtime4 = __toESM(require_compiler_runtime(), 1);
25243
25243
 
25244
25244
  // ../../packages/sigil/dist/chunk-BIY5HAXP.js
25245
25245
  var import_compiler_runtime2 = __toESM(require_compiler_runtime(), 1);
@@ -31306,10 +31306,6 @@
31306
31306
  return t1;
31307
31307
  };
31308
31308
 
31309
- // ../../packages/sigil/dist/chunk-H4U4Z4GM.js
31310
- var import_compiler_runtime4 = __toESM(require_compiler_runtime(), 1);
31311
- var import_react11 = __toESM(require_react(), 1);
31312
-
31313
31309
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
31314
31310
  var external_exports = {};
31315
31311
  __export(external_exports, {
@@ -35354,7 +35350,7 @@
35354
35350
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js
35355
35351
  var zod_default = external_exports;
35356
35352
 
35357
- // ../../packages/sigil/dist/chunk-H4U4Z4GM.js
35353
+ // ../../packages/sigil/dist/chunk-WYUGJOEB.js
35358
35354
  var SIGIL_COLOR = external_exports.enum(["purple", "blue", "teal", "red", "green", "yellow", "brown", "orange", "gray"]);
35359
35355
  var sigilColorUsage = (color) => ({
35360
35356
  text: `var(--sigil-usage-${color}-text)`,
@@ -35385,38 +35381,13 @@
35385
35381
  [`--${prefix}-gradient-dark`]: usage.gradientDark
35386
35382
  });
35387
35383
  var cssHintColorVariables = (color) => cssSigilColorUsageVariables(`sigil-usage-hint`, sigilColorUsage(color));
35388
- var useRootHintVariables = (color) => {
35389
- const $ = (0, import_compiler_runtime4.c)(3);
35390
- let t0;
35391
- let t1;
35392
- if ($[0] !== color) {
35393
- t0 = () => {
35394
- const root = document.querySelector(".arcane-theme-root");
35395
- if (!root) {
35396
- return;
35397
- }
35398
- Object.entries(cssHintColorVariables(color)).forEach((t2) => {
35399
- const [key, value] = t2;
35400
- root.style.setProperty(key, value);
35401
- });
35402
- };
35403
- t1 = [color];
35404
- $[0] = color;
35405
- $[1] = t0;
35406
- $[2] = t1;
35407
- } else {
35408
- t0 = $[1];
35409
- t1 = $[2];
35410
- }
35411
- (0, import_react11.useEffect)(t0, t1);
35412
- };
35413
35384
  var cssVariables = (variables) => variables;
35414
35385
  function cnd(condition, truthyClassName, falseyClassName) {
35415
35386
  return condition ? truthyClassName : falseyClassName;
35416
35387
  }
35417
35388
 
35418
- // ../../packages/sigil/dist/chunk-HF7IIHPE.js
35419
- var import_react12 = __toESM(require_react(), 1);
35389
+ // ../../packages/sigil/dist/chunk-E3VUC3Q4.js
35390
+ var import_react11 = __toESM(require_react(), 1);
35420
35391
 
35421
35392
  // ../../node_modules/.pnpm/@arcanejs+toolkit-frontend@0.11.0/node_modules/@arcanejs/toolkit-frontend/dist/chunk-DK4BAXVE.mjs
35422
35393
  var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
@@ -35454,16 +35425,16 @@
35454
35425
  `;
35455
35426
  var TRANSPARENCY_SVG_URI = `data:image/svg+xml,${encodeURIComponent(TRANSPARENCY_SVG)}`;
35456
35427
 
35457
- // ../../packages/sigil/dist/chunk-HF7IIHPE.js
35458
- var import_react13 = __toESM(require_react(), 1);
35428
+ // ../../packages/sigil/dist/chunk-E3VUC3Q4.js
35429
+ var import_react12 = __toESM(require_react(), 1);
35459
35430
  var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
35460
- var import_react14 = __toESM(require_react(), 1);
35431
+ var import_react13 = __toESM(require_react(), 1);
35461
35432
  var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
35462
- var import_react15 = __toESM(require_react(), 1);
35433
+ var import_react14 = __toESM(require_react(), 1);
35463
35434
  var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
35464
- var import_react16 = __toESM(require_react(), 1);
35435
+ var import_react15 = __toESM(require_react(), 1);
35465
35436
  var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1);
35466
- var import_react17 = __toESM(require_react(), 1);
35437
+ var import_react16 = __toESM(require_react(), 1);
35467
35438
  var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
35468
35439
  var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
35469
35440
  var clsControlPosition = (position) => {
@@ -35517,7 +35488,7 @@
35517
35488
  className,
35518
35489
  primary
35519
35490
  }) => cn(`sigil-control-button`, cnd(variant === "border", `sigil-control-button-variant-border`), cnd(variant === "large", `sigil-control-button-variant-large`), cnd(variant === "properties", `sigil-control-button-variant-properties`), cnd(variant === "table-row", `sigil-control-button-variant-table-row`), cnd(variant === "toolbar", `sigil-control-button-variant-toolbar`), cnd(variant === "titlebar", `sigil-control-button-variant-titlebar`), cnd(touching, `sigil-control-button-touching`), cnd(active, `sigil-control-button-active`), cnd(touching && active, `sigil-control-button-active-touching`), cnd(primary, `sigil-control-button-primary`), clsControlPosition(position), className);
35520
- var ControlButtonFrame = /* @__PURE__ */ (0, import_react13.forwardRef)(({
35491
+ var ControlButtonFrame = /* @__PURE__ */ (0, import_react12.forwardRef)(({
35521
35492
  children,
35522
35493
  className,
35523
35494
  type,
@@ -35560,7 +35531,7 @@
35560
35531
  });
35561
35532
  });
35562
35533
  ControlButtonFrame.displayName = "ControlButtonFrame";
35563
- var ControlButton = /* @__PURE__ */ (0, import_react13.forwardRef)(({
35534
+ var ControlButton = /* @__PURE__ */ (0, import_react12.forwardRef)(({
35564
35535
  onClick,
35565
35536
  disabled,
35566
35537
  ...props
@@ -35578,7 +35549,7 @@
35578
35549
  });
35579
35550
  });
35580
35551
  ControlButton.displayName = "ControlButton";
35581
- var CheckboxControlButton = /* @__PURE__ */ (0, import_react13.forwardRef)(({
35552
+ var CheckboxControlButton = /* @__PURE__ */ (0, import_react12.forwardRef)(({
35582
35553
  active,
35583
35554
  label,
35584
35555
  ...props
@@ -35591,7 +35562,7 @@
35591
35562
  }), label]
35592
35563
  }));
35593
35564
  CheckboxControlButton.displayName = "CheckboxControlButton";
35594
- var LongPressableControlButton = /* @__PURE__ */ (0, import_react13.forwardRef)(({
35565
+ var LongPressableControlButton = /* @__PURE__ */ (0, import_react12.forwardRef)(({
35595
35566
  active,
35596
35567
  disabled,
35597
35568
  onPress,
@@ -35614,7 +35585,7 @@
35614
35585
  });
35615
35586
  });
35616
35587
  LongPressableControlButton.displayName = "LongPressableControlButton";
35617
- var ControlButtonGroup = /* @__PURE__ */ (0, import_react13.forwardRef)(({
35588
+ var ControlButtonGroup = /* @__PURE__ */ (0, import_react12.forwardRef)(({
35618
35589
  children,
35619
35590
  className,
35620
35591
  position,
@@ -35629,7 +35600,7 @@
35629
35600
  children
35630
35601
  }));
35631
35602
  ControlButtonGroup.displayName = "ControlButtonGroup";
35632
- var ControlParagraph = /* @__PURE__ */ (0, import_react14.forwardRef)(({
35603
+ var ControlParagraph = /* @__PURE__ */ (0, import_react13.forwardRef)(({
35633
35604
  className,
35634
35605
  mode,
35635
35606
  position = "all",
@@ -35650,7 +35621,7 @@
35650
35621
  `), className)
35651
35622
  }));
35652
35623
  ControlParagraph.displayName = "ControlParagraph";
35653
- var ControlLabel = /* @__PURE__ */ (0, import_react14.forwardRef)(({
35624
+ var ControlLabel = /* @__PURE__ */ (0, import_react13.forwardRef)(({
35654
35625
  className,
35655
35626
  disabled,
35656
35627
  nonMicro,
@@ -35665,7 +35636,7 @@
35665
35636
  });
35666
35637
  });
35667
35638
  ControlLabel.displayName = "ControlLabel";
35668
- var ControlDetails = /* @__PURE__ */ (0, import_react14.forwardRef)(({
35639
+ var ControlDetails = /* @__PURE__ */ (0, import_react13.forwardRef)(({
35669
35640
  align,
35670
35641
  className,
35671
35642
  position = "all",
@@ -35676,7 +35647,7 @@
35676
35647
  className: cn("flex items-center px-0.3 text-sigil-foreground-muted", clsControlPosition(position), cnd(align === "start", "justify-start"), cnd(align === "center", "justify-center"), cnd(align === "end", "justify-end"), className)
35677
35648
  }));
35678
35649
  ControlDetails.displayName = "ControlDetails";
35679
- var InputSpanningTitle = /* @__PURE__ */ (0, import_react14.forwardRef)(({
35650
+ var InputSpanningTitle = /* @__PURE__ */ (0, import_react13.forwardRef)(({
35680
35651
  className,
35681
35652
  position = "row",
35682
35653
  ...props
@@ -35686,7 +35657,7 @@
35686
35657
  className: cn("truncate p-0.6 text-center text-[0.8rem] font-bold", clsControlPosition(position), className)
35687
35658
  }));
35688
35659
  InputSpanningTitle.displayName = "InputSpanningTitle";
35689
- var ControlDialogButtons = /* @__PURE__ */ (0, import_react15.forwardRef)(({
35660
+ var ControlDialogButtons = /* @__PURE__ */ (0, import_react14.forwardRef)(({
35690
35661
  children,
35691
35662
  className,
35692
35663
  ...props
@@ -35715,29 +35686,29 @@
35715
35686
  inputRef: inputRefProp,
35716
35687
  ...props
35717
35688
  }) => {
35718
- const lastValue = (0, import_react16.useRef)(value);
35719
- const inputRef = (0, import_react16.useRef)(null);
35720
- (0, import_react16.useEffect)(() => {
35689
+ const lastValue = (0, import_react15.useRef)(value);
35690
+ const inputRef = (0, import_react15.useRef)(null);
35691
+ (0, import_react15.useEffect)(() => {
35721
35692
  if (inputRef.current && inputRef.current.value !== value) {
35722
35693
  inputRef.current.value = value;
35723
35694
  }
35724
35695
  lastValue.current = value;
35725
35696
  }, [value]);
35726
- const updateRef = (0, import_react16.useCallback)((instance) => {
35697
+ const updateRef = (0, import_react15.useCallback)((instance) => {
35727
35698
  inputRef.current = instance;
35728
35699
  if (inputRefProp) {
35729
35700
  inputRefProp.current = instance;
35730
35701
  }
35731
35702
  }, [inputRefProp]);
35732
35703
  const onBlurProp = props.onBlur;
35733
- const onBlur = (0, import_react16.useCallback)((e) => {
35704
+ const onBlur = (0, import_react15.useCallback)((e) => {
35734
35705
  if (e.currentTarget.value !== lastValue.current) {
35735
35706
  onChange(e.currentTarget.value, false);
35736
35707
  }
35737
35708
  onBlurProp?.(e);
35738
35709
  }, [onChange, onBlurProp]);
35739
35710
  const onKeyUpProp = props.onKeyUp;
35740
- const onKeyUp = (0, import_react16.useCallback)((e_0) => {
35711
+ const onKeyUp = (0, import_react15.useCallback)((e_0) => {
35741
35712
  if ((e_0.key === "Enter" || e_0.key.startsWith("Arrow")) && e_0.currentTarget.value !== lastValue.current) {
35742
35713
  onChange(e_0.currentTarget.value, true);
35743
35714
  }
@@ -35775,7 +35746,7 @@
35775
35746
  });
35776
35747
  var NULL_VALUE = "__null_value__";
35777
35748
  var ControlSelect = (t0) => {
35778
- const $ = (0, import_compiler_runtime5.c)(20);
35749
+ const $ = (0, import_compiler_runtime4.c)(20);
35779
35750
  const {
35780
35751
  options,
35781
35752
  value,
@@ -35986,7 +35957,7 @@
35986
35957
  });
35987
35958
  };
35988
35959
  var isDarkDialog = (variant) => variant === "dark" || variant === "dark-compact";
35989
- var DialogTitle = /* @__PURE__ */ (0, import_react12.forwardRef)(({
35960
+ var DialogTitle = /* @__PURE__ */ (0, import_react11.forwardRef)(({
35990
35961
  className,
35991
35962
  variant = "light",
35992
35963
  ...props
@@ -35999,7 +35970,7 @@
35999
35970
  `, cnd(isDarkDialog(variant), "bg-sigil-bg-light", "bg-sigil-bg-dark"), className)
36000
35971
  }));
36001
35972
  DialogTitle.displayName = "DialogTitle";
36002
- var DialogButtons = /* @__PURE__ */ (0, import_react12.forwardRef)(({
35973
+ var DialogButtons = /* @__PURE__ */ (0, import_react11.forwardRef)(({
36003
35974
  className,
36004
35975
  ...props
36005
35976
  }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", {
@@ -36009,7 +35980,7 @@
36009
35980
  }));
36010
35981
  DialogButtons.displayName = "DialogButtons";
36011
35982
  var Dialog = (t0) => {
36012
- const $ = (0, import_compiler_runtime5.c)(19);
35983
+ const $ = (0, import_compiler_runtime4.c)(19);
36013
35984
  const {
36014
35985
  children,
36015
35986
  dialogClosed,
@@ -36019,7 +35990,7 @@
36019
35990
  } = t0;
36020
35991
  const closable = t1 === void 0 ? true : t1;
36021
35992
  const variant = t2 === void 0 ? "light" : t2;
36022
- const [dialogRef, setDialogRef] = (0, import_react12.useState)(null);
35993
+ const [dialogRef, setDialogRef] = (0, import_react11.useState)(null);
36023
35994
  let t3;
36024
35995
  let t4;
36025
35996
  if ($[0] !== dialogRef) {
@@ -36037,7 +36008,7 @@
36037
36008
  t3 = $[1];
36038
36009
  t4 = $[2];
36039
36010
  }
36040
- (0, import_react12.useEffect)(t3, t4);
36011
+ (0, import_react11.useEffect)(t3, t4);
36041
36012
  let t5;
36042
36013
  if ($[3] !== dialogRef) {
36043
36014
  t5 = () => dialogRef?.close();
@@ -36123,27 +36094,27 @@
36123
36094
  var isCoreComponent = (component) => component.namespace === "core";
36124
36095
 
36125
36096
  // ../../node_modules/.pnpm/@arcanejs+toolkit-frontend@0.11.0/node_modules/@arcanejs/toolkit-frontend/dist/components/index.mjs
36097
+ var import_react17 = __toESM(require_react(), 1);
36126
36098
  var import_react18 = __toESM(require_react(), 1);
36127
- var import_react19 = __toESM(require_react(), 1);
36128
36099
  var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
36100
+ var import_react19 = __toESM(require_react(), 1);
36129
36101
  var import_react20 = __toESM(require_react(), 1);
36130
- var import_react21 = __toESM(require_react(), 1);
36131
36102
  var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
36132
36103
  var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
36133
36104
  var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
36134
36105
  var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
36135
- var import_react22 = __toESM(require_react(), 1);
36106
+ var import_react21 = __toESM(require_react(), 1);
36136
36107
  var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
36137
- var import_react23 = __toESM(require_react(), 1);
36108
+ var import_react22 = __toESM(require_react(), 1);
36138
36109
  var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
36139
- var import_react24 = __toESM(require_react(), 1);
36110
+ var import_react23 = __toESM(require_react(), 1);
36140
36111
  var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
36141
- var import_react25 = __toESM(require_react(), 1);
36112
+ var import_react24 = __toESM(require_react(), 1);
36142
36113
  var import_jsx_runtime32 = __toESM(require_jsx_runtime(), 1);
36143
- var import_react26 = __toESM(require_react(), 1);
36114
+ var import_react25 = __toESM(require_react(), 1);
36144
36115
  var import_jsx_runtime33 = __toESM(require_jsx_runtime(), 1);
36145
36116
  var import_jsx_runtime34 = __toESM(require_jsx_runtime(), 1);
36146
- var StageContext = (0, import_react19.createContext)(
36117
+ var StageContext = (0, import_react18.createContext)(
36147
36118
  new Proxy({}, {
36148
36119
  get: () => {
36149
36120
  throw new Error("Missing StageContext.Provider");
@@ -36151,8 +36122,8 @@
36151
36122
  })
36152
36123
  );
36153
36124
  var Button = (props) => {
36154
- const { call } = import_react18.default.useContext(StageContext);
36155
- const [localState, setLocalState] = import_react18.default.useState(null);
36125
+ const { call } = import_react17.default.useContext(StageContext);
36126
+ const [localState, setLocalState] = import_react17.default.useState(null);
36156
36127
  const state = localState ?? props.info.state;
36157
36128
  const { touching, handlers } = usePressable(async () => {
36158
36129
  try {
@@ -36223,9 +36194,9 @@
36223
36194
  return "dark";
36224
36195
  }
36225
36196
  }
36226
- var LastNestedColor = import_react21.default.createContext("dark");
36197
+ var LastNestedColor = import_react20.default.createContext("dark");
36227
36198
  var NestedContent = ({ className, children }) => {
36228
- const color = import_react21.default.useContext(LastNestedColor);
36199
+ const color = import_react20.default.useContext(LastNestedColor);
36229
36200
  return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
36230
36201
  "div",
36231
36202
  {
@@ -36241,7 +36212,7 @@
36241
36212
  );
36242
36213
  };
36243
36214
  NestedContent.displayName = "NestedContent";
36244
- var GroupStateContext = import_react20.default.createContext({
36215
+ var GroupStateContext = import_react19.default.createContext({
36245
36216
  isCollapsed: () => {
36246
36217
  throw new Error("missing GroupStateContext");
36247
36218
  },
@@ -36250,7 +36221,7 @@
36250
36221
  }
36251
36222
  });
36252
36223
  var GroupStateWrapper = ({ openByDefault, children }) => {
36253
- const [state, setState] = (0, import_react20.useState)({});
36224
+ const [state, setState] = (0, import_react19.useState)({});
36254
36225
  const isCollapsed = (key, defaultState) => {
36255
36226
  let match = state[key];
36256
36227
  if (!match) {
@@ -36271,9 +36242,9 @@
36271
36242
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(GroupStateContext.Provider, { value: { isCollapsed, toggleCollapsed }, children });
36272
36243
  };
36273
36244
  var Group2 = ({ className, info }) => {
36274
- const groupState = (0, import_react20.useContext)(GroupStateContext);
36275
- const { renderComponent, sendMessage } = (0, import_react20.useContext)(StageContext);
36276
- const [editingTitle, setEditingTitle] = (0, import_react20.useState)(false);
36245
+ const groupState = (0, import_react19.useContext)(GroupStateContext);
36246
+ const { renderComponent, sendMessage } = (0, import_react19.useContext)(StageContext);
36247
+ const [editingTitle, setEditingTitle] = (0, import_react19.useState)(false);
36277
36248
  const children = /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
36278
36249
  "div",
36279
36250
  {
@@ -36464,16 +36435,16 @@
36464
36435
  return pageX - rect.left;
36465
36436
  };
36466
36437
  var SliderButton = ({ info, className }) => {
36467
- const { sendMessage } = import_react22.default.useContext(StageContext);
36468
- const [state, setState] = import_react22.default.useState({ state: "closed" });
36469
- const input = import_react22.default.useRef(null);
36438
+ const { sendMessage } = import_react21.default.useContext(StageContext);
36439
+ const [state, setState] = import_react21.default.useState({ state: "closed" });
36440
+ const input = import_react21.default.useRef(null);
36470
36441
  const displayValue = (value2) => {
36471
36442
  if (info.max === 1 && info.min === 0) {
36472
36443
  return `${Math.round(value2 * 100)}%`;
36473
36444
  }
36474
36445
  return NUMBER_FORMATTER.format(value2);
36475
36446
  };
36476
- const sendValue = (0, import_react22.useCallback)(
36447
+ const sendValue = (0, import_react21.useCallback)(
36477
36448
  (value2) => sendMessage?.({
36478
36449
  type: "component-message",
36479
36450
  namespace: "core",
@@ -36483,7 +36454,7 @@
36483
36454
  }),
36484
36455
  [sendMessage, info.key]
36485
36456
  );
36486
- const sanitizeValue = (0, import_react22.useCallback)(
36457
+ const sanitizeValue = (0, import_react21.useCallback)(
36487
36458
  (value2) => {
36488
36459
  const i = Math.round((value2 - info.min) / info.step);
36489
36460
  const v = i * info.step + info.min;
@@ -36491,13 +36462,13 @@
36491
36462
  },
36492
36463
  [info.min, info.max, info.step]
36493
36464
  );
36494
- const getNewValue = (0, import_react22.useCallback)(
36465
+ const getNewValue = (0, import_react21.useCallback)(
36495
36466
  (startValue, diff) => {
36496
36467
  return sanitizeValue((startValue || 0) + diff);
36497
36468
  },
36498
36469
  [sanitizeValue]
36499
36470
  );
36500
- const getCurrentInputValue = (0, import_react22.useCallback)(
36471
+ const getCurrentInputValue = (0, import_react21.useCallback)(
36501
36472
  (e) => {
36502
36473
  const float = parseFloat(e.currentTarget.value);
36503
36474
  return sanitizeValue(isNaN(float) ? info.value || 0 : float);
@@ -36685,9 +36656,9 @@
36685
36656
  );
36686
36657
  };
36687
36658
  var Switch = ({ className, info }) => {
36688
- const { sendMessage } = import_react23.default.useContext(StageContext);
36689
- const [touching, setTouching] = (0, import_react23.useState)(false);
36690
- const onClick = (0, import_react23.useMemo)(
36659
+ const { sendMessage } = import_react22.default.useContext(StageContext);
36660
+ const [touching, setTouching] = (0, import_react22.useState)(false);
36661
+ const onClick = (0, import_react22.useMemo)(
36691
36662
  () => () => {
36692
36663
  sendMessage?.({
36693
36664
  type: "component-message",
@@ -36698,14 +36669,14 @@
36698
36669
  },
36699
36670
  [sendMessage, info.key]
36700
36671
  );
36701
- const onTouchStart = (0, import_react23.useMemo)(
36672
+ const onTouchStart = (0, import_react22.useMemo)(
36702
36673
  () => (event) => {
36703
36674
  event.preventDefault();
36704
36675
  setTouching(true);
36705
36676
  },
36706
36677
  []
36707
36678
  );
36708
- const onTouchEnd = (0, import_react23.useMemo)(
36679
+ const onTouchEnd = (0, import_react22.useMemo)(
36709
36680
  () => (event) => {
36710
36681
  event.preventDefault();
36711
36682
  setTouching(false);
@@ -36803,9 +36774,9 @@
36803
36774
  );
36804
36775
  };
36805
36776
  var Tabs = (props) => {
36806
- const { renderComponent } = import_react24.default.useContext(StageContext);
36807
- const [touching, setTouching] = import_react24.default.useState(null);
36808
- const [currentTab, setCurrentTab] = import_react24.default.useState(0);
36777
+ const { renderComponent } = import_react23.default.useContext(StageContext);
36778
+ const [touching, setTouching] = import_react23.default.useState(null);
36779
+ const [currentTab, setCurrentTab] = import_react23.default.useState(0);
36809
36780
  const tab = props.info.tabs[currentTab];
36810
36781
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
36811
36782
  "div",
@@ -36856,9 +36827,9 @@
36856
36827
  );
36857
36828
  };
36858
36829
  var TextInput = ({ className, info }) => {
36859
- const { sendMessage } = import_react25.default.useContext(StageContext);
36860
- const ref = import_react25.default.useRef(null);
36861
- (0, import_react25.useEffect)(() => {
36830
+ const { sendMessage } = import_react24.default.useContext(StageContext);
36831
+ const ref = import_react24.default.useRef(null);
36832
+ (0, import_react24.useEffect)(() => {
36862
36833
  if (ref.current && ref.current.value !== info.value) {
36863
36834
  ref.current.value = info.value;
36864
36835
  }
@@ -36888,13 +36859,13 @@
36888
36859
  };
36889
36860
  var Timeline = (props) => {
36890
36861
  const { className, info } = props;
36891
- const { timeDifferenceMs } = (0, import_react26.useContext)(StageContext);
36892
- const frameState = import_react26.default.useRef({
36862
+ const { timeDifferenceMs } = (0, import_react25.useContext)(StageContext);
36863
+ const frameState = import_react25.default.useRef({
36893
36864
  animationFrame: -1,
36894
36865
  state: null
36895
36866
  });
36896
- const [currentTimeMillis, setCurrentTimeMillis] = (0, import_react26.useState)(0);
36897
- (0, import_react26.useEffect)(() => {
36867
+ const [currentTimeMillis, setCurrentTimeMillis] = (0, import_react25.useState)(0);
36868
+ (0, import_react25.useEffect)(() => {
36898
36869
  frameState.current.state = info.state;
36899
36870
  const recalculateCurrentTimeMillis = () => {
36900
36871
  if (frameState.current.state !== info.state) {
@@ -36991,11 +36962,11 @@
36991
36962
  };
36992
36963
 
36993
36964
  // ../../packages/sigil/dist/frontend.js
36965
+ var import_react27 = __toESM(require_react(), 1);
36994
36966
  var import_react28 = __toESM(require_react(), 1);
36995
- var import_react29 = __toESM(require_react(), 1);
36996
36967
  var import_jsx_runtime37 = __toESM(require_jsx_runtime(), 1);
36997
36968
  var import_jsx_runtime38 = __toESM(require_jsx_runtime(), 1);
36998
- var import_react30 = __toESM(require_react(), 1);
36969
+ var import_react29 = __toESM(require_react(), 1);
36999
36970
  var import_jsx_runtime39 = __toESM(require_jsx_runtime(), 1);
37000
36971
 
37001
36972
  // ../../node_modules/.pnpm/@arcanejs+toolkit@8.0.0_@arcanejs+toolkit-frontend@0.11.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@arcanejs/toolkit/dist/frontend/index.mjs
@@ -37129,7 +37100,7 @@
37129
37100
  };
37130
37101
 
37131
37102
  // ../../node_modules/.pnpm/@arcanejs+toolkit@8.0.0_@arcanejs+toolkit-frontend@0.11.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@arcanejs/toolkit/dist/frontend/index.mjs
37132
- var import_react27 = __toESM(require_react(), 1);
37103
+ var import_react26 = __toESM(require_react(), 1);
37133
37104
 
37134
37105
  // ../../node_modules/.pnpm/@arcanejs+toolkit-frontend@0.11.0/node_modules/@arcanejs/toolkit-frontend/dist/styling.mjs
37135
37106
  var import_jsx_runtime35 = __toESM(require_jsx_runtime(), 1);
@@ -37152,32 +37123,32 @@
37152
37123
  // ../../node_modules/.pnpm/@arcanejs+toolkit@8.0.0_@arcanejs+toolkit-frontend@0.11.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@arcanejs/toolkit/dist/frontend/index.mjs
37153
37124
  var import_jsx_runtime36 = __toESM(require_jsx_runtime(), 1);
37154
37125
  var Stage = ({ className, renderers, loadingState }) => {
37155
- const [root, setRoot] = (0, import_react27.useState)(
37126
+ const [root, setRoot] = (0, import_react26.useState)(
37156
37127
  void 0
37157
37128
  );
37158
- const socket = (0, import_react27.useRef)(null);
37159
- const [connection, setConnection] = (0, import_react27.useState)({
37129
+ const socket = (0, import_react26.useRef)(null);
37130
+ const [connection, setConnection] = (0, import_react26.useState)({
37160
37131
  state: "connecting"
37161
37132
  });
37162
- const [clockSync, setClockSync] = (0, import_react27.useState)(null);
37163
- const [lastPingMs, setLastPingMs] = (0, import_react27.useState)(null);
37164
- const [bestPing, setBestPing] = (0, import_react27.useState)(null);
37165
- const calls = (0, import_react27.useRef)({
37133
+ const [clockSync, setClockSync] = (0, import_react26.useState)(null);
37134
+ const [lastPingMs, setLastPingMs] = (0, import_react26.useState)(null);
37135
+ const [bestPing, setBestPing] = (0, import_react26.useState)(null);
37136
+ const calls = (0, import_react26.useRef)({
37166
37137
  nextId: 1,
37167
37138
  calls: /* @__PURE__ */ new Map()
37168
37139
  });
37169
- const pings = (0, import_react27.useRef)({
37140
+ const pings = (0, import_react26.useRef)({
37170
37141
  nextId: 1,
37171
37142
  pings: /* @__PURE__ */ new Map()
37172
37143
  });
37173
- const preparedRenderers = (0, import_react27.useMemo)(() => {
37144
+ const preparedRenderers = (0, import_react26.useMemo)(() => {
37174
37145
  const prepared = {};
37175
37146
  for (const renderer of renderers) {
37176
37147
  prepared[renderer.namespace] = renderer;
37177
37148
  }
37178
37149
  return prepared;
37179
37150
  }, [renderers]);
37180
- const renderComponent = (0, import_react27.useCallback)(
37151
+ const renderComponent = (0, import_react26.useCallback)(
37181
37152
  (info) => {
37182
37153
  const renderer = preparedRenderers[info.namespace];
37183
37154
  if (!renderer) {
@@ -37187,7 +37158,7 @@
37187
37158
  },
37188
37159
  [preparedRenderers]
37189
37160
  );
37190
- const handleMessage = (0, import_react27.useCallback)((msg) => {
37161
+ const handleMessage = (0, import_react26.useCallback)((msg) => {
37191
37162
  switch (msg.type) {
37192
37163
  case "metadata":
37193
37164
  setConnection({ state: "connected", uuid: msg.connectionUuid });
@@ -37243,7 +37214,7 @@
37243
37214
  }
37244
37215
  }
37245
37216
  }, []);
37246
- const initializeWebsocket = (0, import_react27.useCallback)(async () => {
37217
+ const initializeWebsocket = (0, import_react26.useCallback)(async () => {
37247
37218
  if (socket.current) {
37248
37219
  socket.current.then((s) => s.close()).catch((err) => console.error(err));
37249
37220
  socket.current = null;
@@ -37279,10 +37250,10 @@
37279
37250
  });
37280
37251
  return socket.current;
37281
37252
  }, []);
37282
- const sendMessage = (0, import_react27.useCallback)(async (msg) => {
37253
+ const sendMessage = (0, import_react26.useCallback)(async (msg) => {
37283
37254
  (await (socket.current || initializeWebsocket())).send(JSON.stringify(msg));
37284
37255
  }, []);
37285
- const call = (0, import_react27.useCallback)(
37256
+ const call = (0, import_react26.useCallback)(
37286
37257
  async (msg) => {
37287
37258
  const requestId = calls.current.nextId++;
37288
37259
  const sendMsg = {
@@ -37304,10 +37275,10 @@
37304
37275
  },
37305
37276
  []
37306
37277
  );
37307
- (0, import_react27.useEffect)(() => {
37278
+ (0, import_react26.useEffect)(() => {
37308
37279
  initializeWebsocket();
37309
37280
  }, [initializeWebsocket]);
37310
- (0, import_react27.useEffect)(() => {
37281
+ (0, import_react26.useEffect)(() => {
37311
37282
  if (connection.state !== "connected" && clockSync !== null) {
37312
37283
  setClockSync(null);
37313
37284
  }
@@ -37337,7 +37308,7 @@
37337
37308
  window.clearInterval(interval);
37338
37309
  };
37339
37310
  }, [clockSync, connection.state, sendMessage]);
37340
- const stageContext = (0, import_react27.useMemo)(
37311
+ const stageContext = (0, import_react26.useMemo)(
37341
37312
  () => ({
37342
37313
  sendMessage,
37343
37314
  renderComponent,
@@ -37478,7 +37449,7 @@
37478
37449
  ...browser
37479
37450
  };
37480
37451
  };
37481
- var BrowserContext = /* @__PURE__ */ (0, import_react29.createContext)(new Proxy({}, {
37452
+ var BrowserContext = /* @__PURE__ */ (0, import_react28.createContext)(new Proxy({}, {
37482
37453
  get: () => {
37483
37454
  throw new Error("BrowserContext not provided.");
37484
37455
  }
@@ -37493,7 +37464,7 @@
37493
37464
  });
37494
37465
  };
37495
37466
  var useBrowserContext = () => {
37496
- return (0, import_react29.useContext)(BrowserContext);
37467
+ return (0, import_react28.useContext)(BrowserContext);
37497
37468
  };
37498
37469
  var AppRoot = ({
37499
37470
  info,
@@ -37506,13 +37477,13 @@
37506
37477
  const {
37507
37478
  renderComponent,
37508
37479
  call
37509
- } = (0, import_react28.useContext)(StageContext);
37510
- const [logs, setLogs] = (0, import_react28.useState)({
37480
+ } = (0, import_react27.useContext)(StageContext);
37481
+ const [logs, setLogs] = (0, import_react27.useState)({
37511
37482
  lastLog: -1,
37512
37483
  logs: []
37513
37484
  });
37514
- const [debugMode, setDebugMode] = (0, import_react28.useState)(false);
37515
- (0, import_react28.useEffect)(() => {
37485
+ const [debugMode, setDebugMode] = (0, import_react27.useState)(false);
37486
+ (0, import_react27.useEffect)(() => {
37516
37487
  if (!debugMode || !call) return;
37517
37488
  const lastLogId = logs.logs[logs.logs.length - 1]?.index ?? -1;
37518
37489
  call({
@@ -37531,7 +37502,7 @@
37531
37502
  });
37532
37503
  });
37533
37504
  }, [call, debugMode, info.key, lastLog, logs]);
37534
- const debuggerContext = (0, import_react28.useMemo)(() => ({
37505
+ const debuggerContext = (0, import_react27.useMemo)(() => ({
37535
37506
  logs: logs.logs,
37536
37507
  setDebugMode
37537
37508
  }), [logs.logs]);
@@ -37567,8 +37538,8 @@ Caused by: ${unwrapErrorStack(error.cause)}`;
37567
37538
  title,
37568
37539
  className
37569
37540
  }) => {
37570
- const scrollRef = (0, import_react30.useRef)(null);
37571
- const shouldScrollToBottom = (0, import_react30.useRef)(true);
37541
+ const scrollRef = (0, import_react29.useRef)(null);
37542
+ const shouldScrollToBottom = (0, import_react29.useRef)(true);
37572
37543
  const {
37573
37544
  openDevTools
37574
37545
  } = useBrowserContext();
@@ -37577,7 +37548,7 @@ Caused by: ${unwrapErrorStack(error.cause)}`;
37577
37548
  logs
37578
37549
  } = useDebuggerContext();
37579
37550
  const system = useSystemInformation();
37580
- (0, import_react30.useEffect)(() => {
37551
+ (0, import_react29.useEffect)(() => {
37581
37552
  setDebugMode(true);
37582
37553
  return () => {
37583
37554
  setDebugMode(false);
@@ -37592,19 +37563,19 @@ Caused by: ${unwrapErrorStack(error.cause)}`;
37592
37563
  } = scrollRef.current;
37593
37564
  shouldScrollToBottom.current = scrollTop + clientHeight >= scrollHeight - 10;
37594
37565
  };
37595
- const scrollToBottomIfRequired = (0, import_react30.useCallback)(() => {
37566
+ const scrollToBottomIfRequired = (0, import_react29.useCallback)(() => {
37596
37567
  if (shouldScrollToBottom.current && scrollRef.current) {
37597
37568
  scrollRef.current.scrollTop = scrollRef.current.scrollHeight;
37598
37569
  }
37599
37570
  }, []);
37600
- (0, import_react30.useEffect)(scrollToBottomIfRequired, [logs, scrollToBottomIfRequired]);
37601
- (0, import_react30.useEffect)(() => {
37571
+ (0, import_react29.useEffect)(scrollToBottomIfRequired, [logs, scrollToBottomIfRequired]);
37572
+ (0, import_react29.useEffect)(() => {
37602
37573
  window.addEventListener("resize", scrollToBottomIfRequired);
37603
37574
  return () => {
37604
37575
  window.removeEventListener("resize", scrollToBottomIfRequired);
37605
37576
  };
37606
37577
  }, [scrollToBottomIfRequired]);
37607
- const exportLogs = (0, import_react30.useCallback)(() => {
37578
+ const exportLogs = (0, import_react29.useCallback)(() => {
37608
37579
  const logText = JSON.stringify({
37609
37580
  system,
37610
37581
  logs
@@ -37619,7 +37590,7 @@ Caused by: ${unwrapErrorStack(error.cause)}`;
37619
37590
  link.click();
37620
37591
  URL.revokeObjectURL(url);
37621
37592
  }, [system, logs]);
37622
- const handleRequestScrollToBottom = (0, import_react30.useCallback)(() => {
37593
+ const handleRequestScrollToBottom = (0, import_react29.useCallback)(() => {
37623
37594
  shouldScrollToBottom.current = true;
37624
37595
  scrollToBottomIfRequired();
37625
37596
  }, [scrollToBottomIfRequired]);
@@ -37891,14 +37862,14 @@ Data Directory: ${system.dataDirectory}`
37891
37862
  };
37892
37863
 
37893
37864
  // src/components/frontend/toolbox/outputs.tsx
37894
- var import_compiler_runtime10 = __toESM(require_compiler_runtime());
37895
- var import_react34 = __toESM(require_react());
37865
+ var import_compiler_runtime9 = __toESM(require_compiler_runtime());
37866
+ var import_react33 = __toESM(require_react());
37896
37867
 
37897
37868
  // src/components/frontend/toolbox/util.tsx
37898
- var import_compiler_runtime6 = __toESM(require_compiler_runtime());
37869
+ var import_compiler_runtime5 = __toESM(require_compiler_runtime());
37899
37870
  var import_jsx_runtime41 = __toESM(require_jsx_runtime());
37900
37871
  var PrimaryToolboxSection = (t0) => {
37901
- const $ = (0, import_compiler_runtime6.c)(12);
37872
+ const $ = (0, import_compiler_runtime5.c)(12);
37902
37873
  const {
37903
37874
  title,
37904
37875
  children,
@@ -37979,44 +37950,44 @@ Data Directory: ${system.dataDirectory}`
37979
37950
  }
37980
37951
 
37981
37952
  // src/components/frontend/toolbox/context.tsx
37982
- var import_react31 = __toESM(require_react());
37983
- var ConfigContext = /* @__PURE__ */ (0, import_react31.createContext)(new Proxy({}, {
37953
+ var import_react30 = __toESM(require_react());
37954
+ var ConfigContext = /* @__PURE__ */ (0, import_react30.createContext)(new Proxy({}, {
37984
37955
  get() {
37985
37956
  throw new Error("ConfigContext not initialized");
37986
37957
  }
37987
37958
  }));
37988
- var ApplicationStateContext = /* @__PURE__ */ (0, import_react31.createContext)(new Proxy({}, {
37959
+ var ApplicationStateContext = /* @__PURE__ */ (0, import_react30.createContext)(new Proxy({}, {
37989
37960
  get() {
37990
37961
  throw new Error("ApplicationStateContext not initialized");
37991
37962
  }
37992
37963
  }));
37993
37964
  var useApplicationState = () => {
37994
- return (0, import_react31.useContext)(ApplicationStateContext);
37965
+ return (0, import_react30.useContext)(ApplicationStateContext);
37995
37966
  };
37996
- var ApplicationHandlersContext = /* @__PURE__ */ (0, import_react31.createContext)(new Proxy({}, {
37967
+ var ApplicationHandlersContext = /* @__PURE__ */ (0, import_react30.createContext)(new Proxy({}, {
37997
37968
  get() {
37998
37969
  throw new Error("ApplicationHandlersContext not initialized");
37999
37970
  }
38000
37971
  }));
38001
37972
  var useApplicationHandlers = () => {
38002
- return (0, import_react31.useContext)(ApplicationHandlersContext);
37973
+ return (0, import_react30.useContext)(ApplicationHandlersContext);
38003
37974
  };
38004
- var NetworkContext = /* @__PURE__ */ (0, import_react31.createContext)(new Proxy({}, {
37975
+ var NetworkContext = /* @__PURE__ */ (0, import_react30.createContext)(new Proxy({}, {
38005
37976
  get() {
38006
37977
  throw new Error("NetworkContext not initialized");
38007
37978
  }
38008
37979
  }));
38009
37980
 
38010
37981
  // src/components/frontend/toolbox/core/timecode-display.tsx
38011
- var import_compiler_runtime8 = __toESM(require_compiler_runtime());
38012
- var import_react33 = __toESM(require_react());
38013
-
38014
- // src/components/frontend/toolbox/core/size-aware-div.tsx
38015
37982
  var import_compiler_runtime7 = __toESM(require_compiler_runtime());
38016
37983
  var import_react32 = __toESM(require_react());
37984
+
37985
+ // src/components/frontend/toolbox/core/size-aware-div.tsx
37986
+ var import_compiler_runtime6 = __toESM(require_compiler_runtime());
37987
+ var import_react31 = __toESM(require_react());
38017
37988
  var import_jsx_runtime42 = __toESM(require_jsx_runtime());
38018
37989
  var SizeAwareDiv = (t0) => {
38019
- const $ = (0, import_compiler_runtime7.c)(16);
37990
+ const $ = (0, import_compiler_runtime6.c)(16);
38020
37991
  let children;
38021
37992
  let rest;
38022
37993
  let style;
@@ -38035,8 +38006,8 @@ Data Directory: ${system.dataDirectory}`
38035
38006
  rest = $[2];
38036
38007
  style = $[3];
38037
38008
  }
38038
- const [div, setDiv] = (0, import_react32.useState)(null);
38039
- const [rect, setRect] = (0, import_react32.useState)(null);
38009
+ const [div, setDiv] = (0, import_react31.useState)(null);
38010
+ const [rect, setRect] = (0, import_react31.useState)(null);
38040
38011
  let t1;
38041
38012
  let t2;
38042
38013
  if ($[4] !== div) {
@@ -38062,7 +38033,7 @@ Data Directory: ${system.dataDirectory}`
38062
38033
  t1 = $[5];
38063
38034
  t2 = $[6];
38064
38035
  }
38065
- (0, import_react32.useEffect)(t1, t2);
38036
+ (0, import_react31.useEffect)(t1, t2);
38066
38037
  let t3;
38067
38038
  if ($[7] !== rect) {
38068
38039
  t3 = rect && cssVariables({
@@ -38213,15 +38184,15 @@ Data Directory: ${system.dataDirectory}`
38213
38184
  // src/components/frontend/toolbox/core/timecode-display.tsx
38214
38185
  var import_jsx_runtime43 = __toESM(require_jsx_runtime());
38215
38186
  var ActiveTimecodeText = (t0) => {
38216
- const $ = (0, import_compiler_runtime8.c)(7);
38187
+ const $ = (0, import_compiler_runtime7.c)(7);
38217
38188
  const {
38218
38189
  effectiveStartTimeMillis,
38219
38190
  speed
38220
38191
  } = t0;
38221
- const [millis, setMillis] = (0, import_react33.useState)(0);
38192
+ const [millis, setMillis] = (0, import_react32.useState)(0);
38222
38193
  const {
38223
38194
  timeDifferenceMs
38224
- } = (0, import_react33.useContext)(StageContext);
38195
+ } = (0, import_react32.useContext)(StageContext);
38225
38196
  let t1;
38226
38197
  let t2;
38227
38198
  if ($[0] !== effectiveStartTimeMillis || $[1] !== speed || $[2] !== timeDifferenceMs) {
@@ -38250,7 +38221,7 @@ Data Directory: ${system.dataDirectory}`
38250
38221
  t1 = $[3];
38251
38222
  t2 = $[4];
38252
38223
  }
38253
- (0, import_react33.useEffect)(t1, t2);
38224
+ (0, import_react32.useEffect)(t1, t2);
38254
38225
  let t3;
38255
38226
  if ($[5] !== millis) {
38256
38227
  t3 = displayMillis(millis);
@@ -38262,15 +38233,15 @@ Data Directory: ${system.dataDirectory}`
38262
38233
  return t3;
38263
38234
  };
38264
38235
  var Timeline2 = (t0) => {
38265
- const $ = (0, import_compiler_runtime8.c)(11);
38236
+ const $ = (0, import_compiler_runtime7.c)(11);
38266
38237
  const {
38267
38238
  state,
38268
38239
  totalTime
38269
38240
  } = t0;
38270
- const [millis, setMillis] = (0, import_react33.useState)(0);
38241
+ const [millis, setMillis] = (0, import_react32.useState)(0);
38271
38242
  const {
38272
38243
  timeDifferenceMs
38273
- } = (0, import_react33.useContext)(StageContext);
38244
+ } = (0, import_react32.useContext)(StageContext);
38274
38245
  let t1;
38275
38246
  if ($[0] !== state.effectiveStartTimeMillis || $[1] !== state.positionMillis || $[2] !== state.speed || $[3] !== state.state || $[4] !== timeDifferenceMs) {
38276
38247
  t1 = () => {
@@ -38314,7 +38285,7 @@ Data Directory: ${system.dataDirectory}`
38314
38285
  } else {
38315
38286
  t2 = $[8];
38316
38287
  }
38317
- (0, import_react33.useEffect)(t1, t2);
38288
+ (0, import_react32.useEffect)(t1, t2);
38318
38289
  const t3 = `${Math.min(millis / totalTime.timeMillis * 100, 100)}%`;
38319
38290
  let t4;
38320
38291
  if ($[9] !== t3) {
@@ -38338,7 +38309,7 @@ Data Directory: ${system.dataDirectory}`
38338
38309
  return t4;
38339
38310
  };
38340
38311
  var TimecodeDisplay = (t0) => {
38341
- const $ = (0, import_compiler_runtime8.c)(71);
38312
+ const $ = (0, import_compiler_runtime7.c)(71);
38342
38313
  const {
38343
38314
  id,
38344
38315
  timecode: t1,
@@ -38732,7 +38703,7 @@ Data Directory: ${system.dataDirectory}`
38732
38703
  const {
38733
38704
  openNewWidow
38734
38705
  } = useBrowserContext();
38735
- const openInNewWindow = (0, import_react33.useCallback)(() => {
38706
+ const openInNewWindow = (0, import_react32.useCallback)(() => {
38736
38707
  if (id) {
38737
38708
  openNewWidow(withUrlFragment({
38738
38709
  values: {
@@ -38796,14 +38767,14 @@ Data Directory: ${system.dataDirectory}`
38796
38767
  });
38797
38768
  };
38798
38769
  var FullscreenTimecodeDisplay = (t0) => {
38799
- const $ = (0, import_compiler_runtime8.c)(38);
38770
+ const $ = (0, import_compiler_runtime7.c)(38);
38800
38771
  const {
38801
38772
  id
38802
38773
  } = t0;
38803
38774
  const {
38804
38775
  config
38805
- } = (0, import_react33.useContext)(ConfigContext);
38806
- const applicationState = (0, import_react33.useContext)(ApplicationStateContext);
38776
+ } = (0, import_react32.useContext)(ConfigContext);
38777
+ const applicationState = (0, import_react32.useContext)(ApplicationStateContext);
38807
38778
  let t1;
38808
38779
  bb0: if (isInputInstanceId(id) || isGeneratorInstanceId(id)) {
38809
38780
  let t22;
@@ -39065,10 +39036,10 @@ Data Directory: ${system.dataDirectory}`
39065
39036
  var v4_default = v4;
39066
39037
 
39067
39038
  // src/components/frontend/toolbox/content.tsx
39068
- var import_compiler_runtime9 = __toESM(require_compiler_runtime());
39039
+ var import_compiler_runtime8 = __toESM(require_compiler_runtime());
39069
39040
  var import_jsx_runtime44 = __toESM(require_jsx_runtime());
39070
39041
  var ExternalLink = (t0) => {
39071
- const $ = (0, import_compiler_runtime9.c)(7);
39042
+ const $ = (0, import_compiler_runtime8.c)(7);
39072
39043
  const {
39073
39044
  href,
39074
39045
  children
@@ -39108,7 +39079,7 @@ Data Directory: ${system.dataDirectory}`
39108
39079
  return t2;
39109
39080
  };
39110
39081
  var TextButton = (t0) => {
39111
- const $ = (0, import_compiler_runtime9.c)(3);
39082
+ const $ = (0, import_compiler_runtime8.c)(3);
39112
39083
  const {
39113
39084
  onClick,
39114
39085
  children
@@ -39129,7 +39100,7 @@ Data Directory: ${system.dataDirectory}`
39129
39100
  return t1;
39130
39101
  };
39131
39102
  var NoToolboxChildren = (t0) => {
39132
- const $ = (0, import_compiler_runtime9.c)(3);
39103
+ const $ = (0, import_compiler_runtime8.c)(3);
39133
39104
  const {
39134
39105
  text
39135
39106
  } = t0;
@@ -39163,18 +39134,18 @@ Data Directory: ${system.dataDirectory}`
39163
39134
  // src/components/frontend/toolbox/outputs.tsx
39164
39135
  var import_jsx_runtime45 = __toESM(require_jsx_runtime());
39165
39136
  var DmxConnectionSettings = (t0) => {
39166
- const $ = (0, import_compiler_runtime10.c)(41);
39137
+ const $ = (0, import_compiler_runtime9.c)(41);
39167
39138
  const {
39168
39139
  data,
39169
39140
  updateSettings
39170
39141
  } = t0;
39171
39142
  const {
39172
39143
  commitChanges
39173
- } = (0, import_react34.useContext)(ChangeCommitContext);
39144
+ } = (0, import_react33.useContext)(ChangeCommitContext);
39174
39145
  const {
39175
39146
  getNetworkInterfaces
39176
- } = (0, import_react34.useContext)(NetworkContext);
39177
- const [interfaces, setInterfaces] = (0, import_react34.useState)(null);
39147
+ } = (0, import_react33.useContext)(NetworkContext);
39148
+ const [interfaces, setInterfaces] = (0, import_react33.useState)(null);
39178
39149
  let t1;
39179
39150
  if ($[0] !== getNetworkInterfaces) {
39180
39151
  t1 = () => {
@@ -39201,7 +39172,7 @@ Data Directory: ${system.dataDirectory}`
39201
39172
  t2 = $[3];
39202
39173
  t3 = $[4];
39203
39174
  }
39204
- (0, import_react34.useEffect)(t2, t3);
39175
+ (0, import_react33.useEffect)(t2, t3);
39205
39176
  if (data.type !== "artnet") {
39206
39177
  return null;
39207
39178
  }
@@ -39445,8 +39416,8 @@ Data Directory: ${system.dataDirectory}`
39445
39416
  const {
39446
39417
  config,
39447
39418
  updateConfig
39448
- } = (0, import_react34.useContext)(ConfigContext);
39449
- const [newData, setNewData] = (0, import_react34.useState)({
39419
+ } = (0, import_react33.useContext)(ConfigContext);
39420
+ const [newData, setNewData] = (0, import_react33.useState)({
39450
39421
  name: "",
39451
39422
  enabled: true,
39452
39423
  definition: {
@@ -39459,7 +39430,7 @@ Data Directory: ${system.dataDirectory}`
39459
39430
  },
39460
39431
  link: null
39461
39432
  });
39462
- const updateSettings = (0, import_react34.useCallback)((change) => {
39433
+ const updateSettings = (0, import_react33.useCallback)((change) => {
39463
39434
  if (target.type === "add") {
39464
39435
  setNewData(change);
39465
39436
  } else {
@@ -39478,13 +39449,13 @@ Data Directory: ${system.dataDirectory}`
39478
39449
  });
39479
39450
  }
39480
39451
  }, [target, updateConfig]);
39481
- const updateDefinition = (0, import_react34.useCallback)((change_0) => {
39452
+ const updateDefinition = (0, import_react33.useCallback)((change_0) => {
39482
39453
  updateSettings((current_0) => ({
39483
39454
  ...current_0,
39484
39455
  definition: change_0(current_0.definition)
39485
39456
  }));
39486
39457
  }, [updateSettings]);
39487
- const addOutput = (0, import_react34.useCallback)(() => {
39458
+ const addOutput = (0, import_react33.useCallback)(() => {
39488
39459
  updateConfig((current_1) => {
39489
39460
  return {
39490
39461
  ...current_1,
@@ -39498,7 +39469,7 @@ Data Directory: ${system.dataDirectory}`
39498
39469
  }, [newData, close, updateConfig]);
39499
39470
  const resolvedTarget = target.type === "add" ? "add" : config.outputs?.[target.uuid];
39500
39471
  const data = resolvedTarget === "add" ? newData : resolvedTarget;
39501
- const commitChanges = (0, import_react34.useCallback)(() => {
39472
+ const commitChanges = (0, import_react33.useCallback)(() => {
39502
39473
  if (target.type === "add") {
39503
39474
  addOutput();
39504
39475
  } else {
@@ -39587,7 +39558,7 @@ Data Directory: ${system.dataDirectory}`
39587
39558
  });
39588
39559
  };
39589
39560
  var OutputDisplay = (t0) => {
39590
- const $ = (0, import_compiler_runtime10.c)(57);
39561
+ const $ = (0, import_compiler_runtime9.c)(57);
39591
39562
  const {
39592
39563
  uuid,
39593
39564
  config,
@@ -39598,7 +39569,7 @@ Data Directory: ${system.dataDirectory}`
39598
39569
  const applicationState = useApplicationState();
39599
39570
  const {
39600
39571
  updateConfig
39601
- } = (0, import_react34.useContext)(ConfigContext);
39572
+ } = (0, import_react33.useContext)(ConfigContext);
39602
39573
  let t1;
39603
39574
  if ($[0] !== setAssignToOutput || $[1] !== updateConfig || $[2] !== uuid) {
39604
39575
  t1 = () => {
@@ -39862,7 +39833,7 @@ Data Directory: ${system.dataDirectory}`
39862
39833
  return t24;
39863
39834
  };
39864
39835
  var OutputsSection = (t0) => {
39865
- const $ = (0, import_compiler_runtime10.c)(11);
39836
+ const $ = (0, import_compiler_runtime9.c)(11);
39866
39837
  const {
39867
39838
  setDialogMode,
39868
39839
  assignToOutput,
@@ -39870,7 +39841,7 @@ Data Directory: ${system.dataDirectory}`
39870
39841
  } = t0;
39871
39842
  const {
39872
39843
  config
39873
- } = (0, import_react34.useContext)(ConfigContext);
39844
+ } = (0, import_react33.useContext)(ConfigContext);
39874
39845
  let t1;
39875
39846
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
39876
39847
  t1 = ["artnet"];
@@ -39956,18 +39927,18 @@ Data Directory: ${system.dataDirectory}`
39956
39927
  }
39957
39928
 
39958
39929
  // src/components/frontend/toolbox/generators.tsx
39959
- var import_compiler_runtime11 = __toESM(require_compiler_runtime());
39960
- var import_react35 = __toESM(require_react());
39930
+ var import_compiler_runtime10 = __toESM(require_compiler_runtime());
39931
+ var import_react34 = __toESM(require_react());
39961
39932
  var import_jsx_runtime46 = __toESM(require_jsx_runtime());
39962
39933
  var ClockSpecificSettings = (t0) => {
39963
- const $ = (0, import_compiler_runtime11.c)(9);
39934
+ const $ = (0, import_compiler_runtime10.c)(9);
39964
39935
  const {
39965
39936
  data,
39966
39937
  updateSettings
39967
39938
  } = t0;
39968
39939
  const {
39969
39940
  commitChanges
39970
- } = (0, import_react35.useContext)(ChangeCommitContext);
39941
+ } = (0, import_react34.useContext)(ChangeCommitContext);
39971
39942
  if (data.type !== "clock") {
39972
39943
  return null;
39973
39944
  }
@@ -40036,15 +40007,15 @@ Data Directory: ${system.dataDirectory}`
40036
40007
  const {
40037
40008
  config,
40038
40009
  updateConfig
40039
- } = (0, import_react35.useContext)(ConfigContext);
40040
- const [newData, setNewData] = (0, import_react35.useState)({
40010
+ } = (0, import_react34.useContext)(ConfigContext);
40011
+ const [newData, setNewData] = (0, import_react34.useState)({
40041
40012
  name: "",
40042
40013
  definition: {
40043
40014
  type: generator,
40044
40015
  speed: 1
40045
40016
  }
40046
40017
  });
40047
- const updateSettings = (0, import_react35.useCallback)((change) => {
40018
+ const updateSettings = (0, import_react34.useCallback)((change) => {
40048
40019
  if (target.type === "add") {
40049
40020
  setNewData(change);
40050
40021
  } else {
@@ -40063,13 +40034,13 @@ Data Directory: ${system.dataDirectory}`
40063
40034
  });
40064
40035
  }
40065
40036
  }, [target, updateConfig]);
40066
- const updateDefinition = (0, import_react35.useCallback)((change_0) => {
40037
+ const updateDefinition = (0, import_react34.useCallback)((change_0) => {
40067
40038
  updateSettings((current_0) => ({
40068
40039
  ...current_0,
40069
40040
  definition: change_0(current_0.definition)
40070
40041
  }));
40071
40042
  }, [updateSettings]);
40072
- const addGenerator = (0, import_react35.useCallback)(() => {
40043
+ const addGenerator = (0, import_react34.useCallback)(() => {
40073
40044
  updateConfig((current_1) => {
40074
40045
  return {
40075
40046
  ...current_1,
@@ -40083,7 +40054,7 @@ Data Directory: ${system.dataDirectory}`
40083
40054
  }, [newData, close, updateConfig]);
40084
40055
  const resolvedTarget = target.type === "add" ? "add" : config.generators?.[target.uuid];
40085
40056
  const data = resolvedTarget === "add" ? newData : resolvedTarget;
40086
- const commitChanges = (0, import_react35.useCallback)(() => {
40057
+ const commitChanges = (0, import_react34.useCallback)(() => {
40087
40058
  if (target.type === "add") {
40088
40059
  addGenerator();
40089
40060
  } else {
@@ -40152,7 +40123,7 @@ Data Directory: ${system.dataDirectory}`
40152
40123
  });
40153
40124
  };
40154
40125
  var GeneratorDisplay = (t0) => {
40155
- const $ = (0, import_compiler_runtime11.c)(19);
40126
+ const $ = (0, import_compiler_runtime10.c)(19);
40156
40127
  const {
40157
40128
  uuid,
40158
40129
  config,
@@ -40246,14 +40217,14 @@ Data Directory: ${system.dataDirectory}`
40246
40217
  return t8;
40247
40218
  };
40248
40219
  var GeneratorsSection = (t0) => {
40249
- const $ = (0, import_compiler_runtime11.c)(10);
40220
+ const $ = (0, import_compiler_runtime10.c)(10);
40250
40221
  const {
40251
40222
  setDialogMode,
40252
40223
  assignToOutput
40253
40224
  } = t0;
40254
40225
  const {
40255
40226
  config
40256
- } = (0, import_react35.useContext)(ConfigContext);
40227
+ } = (0, import_react34.useContext)(ConfigContext);
40257
40228
  let t1;
40258
40229
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
40259
40230
  t1 = ["clock"];
@@ -40324,22 +40295,22 @@ Data Directory: ${system.dataDirectory}`
40324
40295
  };
40325
40296
 
40326
40297
  // src/components/frontend/toolbox/inputs.tsx
40327
- var import_compiler_runtime12 = __toESM(require_compiler_runtime());
40328
- var import_react36 = __toESM(require_react());
40298
+ var import_compiler_runtime11 = __toESM(require_compiler_runtime());
40299
+ var import_react35 = __toESM(require_react());
40329
40300
  var import_jsx_runtime47 = __toESM(require_jsx_runtime());
40330
40301
  var DmxConnectionSettings2 = (t0) => {
40331
- const $ = (0, import_compiler_runtime12.c)(31);
40302
+ const $ = (0, import_compiler_runtime11.c)(31);
40332
40303
  const {
40333
40304
  data,
40334
40305
  updateSettings
40335
40306
  } = t0;
40336
40307
  const {
40337
40308
  commitChanges
40338
- } = (0, import_react36.useContext)(ChangeCommitContext);
40309
+ } = (0, import_react35.useContext)(ChangeCommitContext);
40339
40310
  const {
40340
40311
  getNetworkInterfaces
40341
- } = (0, import_react36.useContext)(NetworkContext);
40342
- const [interfaces, setInterfaces] = (0, import_react36.useState)(null);
40312
+ } = (0, import_react35.useContext)(NetworkContext);
40313
+ const [interfaces, setInterfaces] = (0, import_react35.useState)(null);
40343
40314
  let t1;
40344
40315
  if ($[0] !== getNetworkInterfaces) {
40345
40316
  t1 = () => {
@@ -40366,7 +40337,7 @@ Data Directory: ${system.dataDirectory}`
40366
40337
  t2 = $[3];
40367
40338
  t3 = $[4];
40368
40339
  }
40369
- (0, import_react36.useEffect)(t2, t3);
40340
+ (0, import_react35.useEffect)(t2, t3);
40370
40341
  if (data.type !== "artnet") {
40371
40342
  return null;
40372
40343
  }
@@ -40518,15 +40489,15 @@ Data Directory: ${system.dataDirectory}`
40518
40489
  return t16;
40519
40490
  };
40520
40491
  var TCNetConnectionSettings = (t0) => {
40521
- const $ = (0, import_compiler_runtime12.c)(21);
40492
+ const $ = (0, import_compiler_runtime11.c)(21);
40522
40493
  const {
40523
40494
  data,
40524
40495
  updateSettings
40525
40496
  } = t0;
40526
40497
  const {
40527
40498
  getNetworkInterfaces
40528
- } = (0, import_react36.useContext)(NetworkContext);
40529
- const [interfaces, setInterfaces] = (0, import_react36.useState)(null);
40499
+ } = (0, import_react35.useContext)(NetworkContext);
40500
+ const [interfaces, setInterfaces] = (0, import_react35.useState)(null);
40530
40501
  let t1;
40531
40502
  if ($[0] !== getNetworkInterfaces) {
40532
40503
  t1 = () => {
@@ -40553,7 +40524,7 @@ Data Directory: ${system.dataDirectory}`
40553
40524
  t2 = $[3];
40554
40525
  t3 = $[4];
40555
40526
  }
40556
- (0, import_react36.useEffect)(t2, t3);
40527
+ (0, import_react35.useEffect)(t2, t3);
40557
40528
  if (data.type !== "tcnet") {
40558
40529
  return null;
40559
40530
  }
@@ -40658,8 +40629,8 @@ Data Directory: ${system.dataDirectory}`
40658
40629
  const {
40659
40630
  config,
40660
40631
  updateConfig
40661
- } = (0, import_react36.useContext)(ConfigContext);
40662
- const [newData, setNewData] = (0, import_react36.useState)({
40632
+ } = (0, import_react35.useContext)(ConfigContext);
40633
+ const [newData, setNewData] = (0, import_react35.useState)({
40663
40634
  name: "",
40664
40635
  enabled: true,
40665
40636
  definition: input === "artnet" ? {
@@ -40671,7 +40642,7 @@ Data Directory: ${system.dataDirectory}`
40671
40642
  iface: ""
40672
40643
  }
40673
40644
  });
40674
- const updateSettings = (0, import_react36.useCallback)((change) => {
40645
+ const updateSettings = (0, import_react35.useCallback)((change) => {
40675
40646
  if (target.type === "add") {
40676
40647
  setNewData(change);
40677
40648
  } else {
@@ -40690,13 +40661,13 @@ Data Directory: ${system.dataDirectory}`
40690
40661
  });
40691
40662
  }
40692
40663
  }, [target, updateConfig]);
40693
- const updateDefinition = (0, import_react36.useCallback)((change_0) => {
40664
+ const updateDefinition = (0, import_react35.useCallback)((change_0) => {
40694
40665
  updateSettings((current_0) => ({
40695
40666
  ...current_0,
40696
40667
  definition: change_0(current_0.definition)
40697
40668
  }));
40698
40669
  }, [updateSettings]);
40699
- const addInput = (0, import_react36.useCallback)(() => {
40670
+ const addInput = (0, import_react35.useCallback)(() => {
40700
40671
  updateConfig((current_1) => {
40701
40672
  return {
40702
40673
  ...current_1,
@@ -40710,7 +40681,7 @@ Data Directory: ${system.dataDirectory}`
40710
40681
  }, [newData, close, updateConfig]);
40711
40682
  const resolvedTarget = target.type === "add" ? "add" : config.inputs?.[target.uuid];
40712
40683
  const data = resolvedTarget === "add" ? newData : resolvedTarget;
40713
- const commitChanges = (0, import_react36.useCallback)(() => {
40684
+ const commitChanges = (0, import_react35.useCallback)(() => {
40714
40685
  if (target.type === "add") {
40715
40686
  addInput();
40716
40687
  } else {
@@ -40802,7 +40773,7 @@ Data Directory: ${system.dataDirectory}`
40802
40773
  });
40803
40774
  };
40804
40775
  var InputDisplay = (t0) => {
40805
- const $ = (0, import_compiler_runtime12.c)(29);
40776
+ const $ = (0, import_compiler_runtime11.c)(29);
40806
40777
  const {
40807
40778
  uuid,
40808
40779
  config,
@@ -40811,7 +40782,7 @@ Data Directory: ${system.dataDirectory}`
40811
40782
  } = t0;
40812
40783
  const {
40813
40784
  updateConfig
40814
- } = (0, import_react36.useContext)(ConfigContext);
40785
+ } = (0, import_react35.useContext)(ConfigContext);
40815
40786
  const {
40816
40787
  inputs
40817
40788
  } = useApplicationState();
@@ -40952,14 +40923,14 @@ Data Directory: ${system.dataDirectory}`
40952
40923
  return t13;
40953
40924
  };
40954
40925
  var InputsSection = (t0) => {
40955
- const $ = (0, import_compiler_runtime12.c)(10);
40926
+ const $ = (0, import_compiler_runtime11.c)(10);
40956
40927
  const {
40957
40928
  setDialogMode,
40958
40929
  assignToOutput
40959
40930
  } = t0;
40960
40931
  const {
40961
40932
  config
40962
- } = (0, import_react36.useContext)(ConfigContext);
40933
+ } = (0, import_react35.useContext)(ConfigContext);
40963
40934
  let t1;
40964
40935
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
40965
40936
  t1 = ["artnet", "tcnet"];
@@ -41042,15 +41013,15 @@ Data Directory: ${system.dataDirectory}`
41042
41013
  }
41043
41014
 
41044
41015
  // src/components/frontend/toolbox/settings.tsx
41045
- var import_compiler_runtime14 = __toESM(require_compiler_runtime());
41046
- var import_react39 = __toESM(require_react());
41016
+ var import_compiler_runtime13 = __toESM(require_compiler_runtime());
41017
+ var import_react38 = __toESM(require_react());
41047
41018
 
41048
41019
  // ../../packages/sigil/dist/frontend/appearance.js
41049
- var import_compiler_runtime13 = __toESM(require_compiler_runtime(), 1);
41050
- var import_react37 = __toESM(require_react(), 1);
41020
+ var import_compiler_runtime12 = __toESM(require_compiler_runtime(), 1);
41021
+ var import_react36 = __toESM(require_react(), 1);
41051
41022
  var import_jsx_runtime48 = __toESM(require_jsx_runtime(), 1);
41052
41023
  var AppearanceSwitcher = (t0) => {
41053
- const $ = (0, import_compiler_runtime13.c)(16);
41024
+ const $ = (0, import_compiler_runtime12.c)(16);
41054
41025
  const {
41055
41026
  color,
41056
41027
  onColorChange
@@ -41164,9 +41135,9 @@ Data Directory: ${system.dataDirectory}`
41164
41135
  };
41165
41136
 
41166
41137
  // ../../packages/sigil/dist/frontend/preferences.js
41167
- var import_react38 = __toESM(require_react(), 1);
41138
+ var import_react37 = __toESM(require_react(), 1);
41168
41139
  var createBrowserPreferencesHook = (def) => () => {
41169
- const [preferences, setPreference] = (0, import_react38.useState)(() => {
41140
+ const [preferences, setPreference] = (0, import_react37.useState)(() => {
41170
41141
  const stored = window.localStorage.getItem(def.key);
41171
41142
  if (stored) {
41172
41143
  try {
@@ -41185,7 +41156,7 @@ Data Directory: ${system.dataDirectory}`
41185
41156
  newValue
41186
41157
  }));
41187
41158
  };
41188
- (0, import_react38.useEffect)(() => {
41159
+ (0, import_react37.useEffect)(() => {
41189
41160
  const onStorageChange = (event) => {
41190
41161
  if (event.key === def.key) {
41191
41162
  const newValue = event.newValue;
@@ -41237,7 +41208,7 @@ Data Directory: ${system.dataDirectory}`
41237
41208
  timeStyle: "medium"
41238
41209
  });
41239
41210
  var Settings = (t0) => {
41240
- const $ = (0, import_compiler_runtime14.c)(29);
41211
+ const $ = (0, import_compiler_runtime13.c)(29);
41241
41212
  const {
41242
41213
  setWindowMode
41243
41214
  } = t0;
@@ -41248,7 +41219,7 @@ Data Directory: ${system.dataDirectory}`
41248
41219
  const {
41249
41220
  config,
41250
41221
  updateConfig
41251
- } = (0, import_react39.useContext)(ConfigContext);
41222
+ } = (0, import_react38.useContext)(ConfigContext);
41252
41223
  const {
41253
41224
  updates
41254
41225
  } = useApplicationState();
@@ -41420,10 +41391,10 @@ Data Directory: ${system.dataDirectory}`
41420
41391
  var import_react41 = __toESM(require_react());
41421
41392
 
41422
41393
  // src/components/frontend/toolbox/logo.tsx
41423
- var import_compiler_runtime15 = __toESM(require_compiler_runtime());
41394
+ var import_compiler_runtime14 = __toESM(require_compiler_runtime());
41424
41395
  var import_jsx_runtime50 = __toESM(require_jsx_runtime());
41425
41396
  var TimecodeToolboxLogo = (props) => {
41426
- const $ = (0, import_compiler_runtime15.c)(33);
41397
+ const $ = (0, import_compiler_runtime14.c)(33);
41427
41398
  let t0;
41428
41399
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
41429
41400
  t0 = /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("mask", {
@@ -41843,10 +41814,10 @@ Data Directory: ${system.dataDirectory}`
41843
41814
  var import_react40 = __toESM(require_react());
41844
41815
 
41845
41816
  // src/components/frontend/toolbox/core/footer.tsx
41846
- var import_compiler_runtime16 = __toESM(require_compiler_runtime());
41817
+ var import_compiler_runtime15 = __toESM(require_compiler_runtime());
41847
41818
  var import_jsx_runtime51 = __toESM(require_jsx_runtime());
41848
41819
  var Footer = (t0) => {
41849
- const $ = (0, import_compiler_runtime16.c)(7);
41820
+ const $ = (0, import_compiler_runtime15.c)(7);
41850
41821
  const {
41851
41822
  openLicenseDetails
41852
41823
  } = t0;
@@ -41900,6 +41871,35 @@ Data Directory: ${system.dataDirectory}`
41900
41871
  return t5;
41901
41872
  };
41902
41873
 
41874
+ // ../../packages/sigil/dist/frontend/styling.hooks.js
41875
+ var import_compiler_runtime16 = __toESM(require_compiler_runtime(), 1);
41876
+ var import_react39 = __toESM(require_react(), 1);
41877
+ var useRootHintVariables = (color) => {
41878
+ const $ = (0, import_compiler_runtime16.c)(3);
41879
+ let t0;
41880
+ let t1;
41881
+ if ($[0] !== color) {
41882
+ t0 = () => {
41883
+ const root = document.querySelector(".arcane-theme-root");
41884
+ if (!root) {
41885
+ return;
41886
+ }
41887
+ Object.entries(cssHintColorVariables(color)).forEach((t2) => {
41888
+ const [key, value] = t2;
41889
+ root.style.setProperty(key, value);
41890
+ });
41891
+ };
41892
+ t1 = [color];
41893
+ $[0] = color;
41894
+ $[1] = t0;
41895
+ $[2] = t1;
41896
+ } else {
41897
+ t0 = $[1];
41898
+ t1 = $[2];
41899
+ }
41900
+ (0, import_react39.useEffect)(t0, t1);
41901
+ };
41902
+
41903
41903
  // src/components/frontend/toolbox/core/layout.tsx
41904
41904
  var import_jsx_runtime52 = __toESM(require_jsx_runtime());
41905
41905
  var Layout = (t0) => {