@vscode/component-explorer 0.1.1-14 → 0.1.1-16

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/viewer.js CHANGED
@@ -4,8 +4,8 @@ var l = (r, e, t) => vt(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { f as we, a as Re, s as Te } from "./index-DnRcKk60.js";
5
5
  import { b as Dn, d as Fn, c as En, e as Bn, g as An } from "./index-DnRcKk60.js";
6
6
  import { createRoot as _t } from "react-dom/client";
7
- import { createContext as Pe, useReducer as bt, useState as yt, useContext as xt, useEffect as Ie, createElement as Ct } from "react";
8
- import { jsx as a, jsxs as p, Fragment as ge } from "react/jsx-runtime";
7
+ import { createContext as Pe, useReducer as bt, useState as yt, useContext as xt, useEffect as Ie, createElement as St } from "react";
8
+ import { jsx as a, jsxs as f, Fragment as ge } from "react/jsx-runtime";
9
9
  import { unstable_batchedUpdates as We } from "react-dom";
10
10
  function me(r) {
11
11
  return typeof r == "object" && r !== null && Te in r && r[Te] === !0 && "_options" in r && typeof r._options == "object";
@@ -45,13 +45,13 @@ function Oe(r, e, t) {
45
45
  function On(r) {
46
46
  return typeof r == "object" && r !== null && "render" in r && typeof r.render == "function" && "id" in r && "name" in r;
47
47
  }
48
- const St = {
48
+ const Ct = {
49
49
  mobile: { width: 390, height: 844 },
50
50
  tablet: { width: 768, height: 1024 },
51
51
  desktop: { width: 1440, height: 900 }
52
52
  };
53
53
  function wt(r) {
54
- return typeof r == "string" ? { name: r, ...St[r] } : r;
54
+ return typeof r == "string" ? { name: r, ...Ct[r] } : r;
55
55
  }
56
56
  function Rt(r) {
57
57
  const e = {};
@@ -140,7 +140,7 @@ let $;
140
140
  function Ot(r) {
141
141
  $ ? $ instanceof Ve ? $.loggers.push(r) : $ = new Ve([$, r]) : $ = r;
142
142
  }
143
- function C() {
143
+ function S() {
144
144
  return $;
145
145
  }
146
146
  let ae;
@@ -398,17 +398,17 @@ class Lt {
398
398
  class xe extends Lt {
399
399
  constructor(e) {
400
400
  var t;
401
- super(), this._observers = /* @__PURE__ */ new Set(), (t = C()) == null || t.handleObservableCreated(this, e);
401
+ super(), this._observers = /* @__PURE__ */ new Set(), (t = S()) == null || t.handleObservableCreated(this, e);
402
402
  }
403
403
  addObserver(e) {
404
404
  var n;
405
405
  const t = this._observers.size;
406
- this._observers.add(e), t === 0 && this.onFirstObserverAdded(), t !== this._observers.size && ((n = C()) == null || n.handleOnListenerCountChanged(this, this._observers.size));
406
+ this._observers.add(e), t === 0 && this.onFirstObserverAdded(), t !== this._observers.size && ((n = S()) == null || n.handleOnListenerCountChanged(this, this._observers.size));
407
407
  }
408
408
  removeObserver(e) {
409
409
  var n;
410
410
  const t = this._observers.delete(e);
411
- t && this._observers.size === 0 && this.onLastObserverRemoved(), t && ((n = C()) == null || n.handleOnListenerCountChanged(this, this._observers.size));
411
+ t && this._observers.size === 0 && this.onLastObserverRemoved(), t && ((n = S()) == null || n.handleOnListenerCountChanged(this, this._observers.size));
412
412
  }
413
413
  onFirstObserverAdded() {
414
414
  }
@@ -416,8 +416,8 @@ class xe extends Lt {
416
416
  }
417
417
  log() {
418
418
  var t;
419
- const e = !!C();
420
- return Vt(this), e || (t = C()) == null || t.handleObservableCreated(this, F.ofCaller()), this;
419
+ const e = !!S();
420
+ return Vt(this), e || (t = S()) == null || t.handleObservableCreated(this, F.ofCaller()), this;
421
421
  }
422
422
  debugGetObservers() {
423
423
  return this._observers;
@@ -492,7 +492,7 @@ class j extends xe {
492
492
  }
493
493
  onLastObserverRemoved() {
494
494
  var e, t;
495
- this._state = 0, this._value = void 0, (e = C()) == null || e.handleDerivedCleared(this);
495
+ this._state = 0, this._value = void 0, (e = S()) == null || e.handleDerivedCleared(this);
496
496
  for (const n of this._dependencies)
497
497
  n.removeObserver(this);
498
498
  this._dependencies.clear(), this._store !== void 0 && (this._store.dispose(), this._store = void 0), this._delayedStore !== void 0 && (this._delayedStore.dispose(), this._delayedStore = void 0), (t = this._handleLastObserverRemoved) == null || t.call(this);
@@ -542,7 +542,7 @@ class j extends xe {
542
542
  v.removeObserver(this);
543
543
  this._dependenciesToBeRemoved.clear(), m !== void 0 && m.dispose();
544
544
  }
545
- e = this._didReportChange || c && !this._equalityComparator(h, this._value), (i = C()) == null || i.handleObservableUpdated(this, {
545
+ e = this._didReportChange || c && !this._equalityComparator(h, this._value), (i = S()) == null || i.handleObservableUpdated(this, {
546
546
  oldValue: h,
547
547
  newValue: this._value,
548
548
  change: void 0,
@@ -601,7 +601,7 @@ class j extends xe {
601
601
  handleChange(e, t) {
602
602
  var n;
603
603
  if (this._dependencies.has(e) && !this._dependenciesToBeRemoved.has(e) || this._isInBeforeUpdate) {
604
- (n = C()) == null || n.handleDerivedDependencyChanged(this, e, t);
604
+ (n = S()) == null || n.handleDerivedDependencyChanged(this, e, t);
605
605
  let s = !1;
606
606
  try {
607
607
  s = this._changeTracker ? this._changeTracker.handleChange({
@@ -707,7 +707,7 @@ class Ye {
707
707
  }
708
708
  constructor(e, t, n, s) {
709
709
  var o, i;
710
- this._debugNameData = e, this._runFn = t, this._changeTracker = n, this._state = 2, this._updateCount = 0, this._disposed = !1, this._dependencies = /* @__PURE__ */ new Set(), this._dependenciesToBeRemoved = /* @__PURE__ */ new Set(), this._isRunning = !1, this._store = void 0, this._delayedStore = void 0, this._changeSummary = (o = this._changeTracker) == null ? void 0 : o.createChangeSummary(void 0), (i = C()) == null || i.handleAutorunCreated(this, s), this._run();
710
+ this._debugNameData = e, this._runFn = t, this._changeTracker = n, this._state = 2, this._updateCount = 0, this._disposed = !1, this._dependencies = /* @__PURE__ */ new Set(), this._dependenciesToBeRemoved = /* @__PURE__ */ new Set(), this._isRunning = !1, this._store = void 0, this._delayedStore = void 0, this._changeSummary = (o = this._changeTracker) == null ? void 0 : o.createChangeSummary(void 0), (i = S()) == null || i.handleAutorunCreated(this, s), this._run();
711
711
  }
712
712
  dispose() {
713
713
  var e;
@@ -715,7 +715,7 @@ class Ye {
715
715
  this._disposed = !0;
716
716
  for (const t of this._dependencies)
717
717
  t.removeObserver(this);
718
- this._dependencies.clear(), this._store !== void 0 && this._store.dispose(), this._delayedStore !== void 0 && this._delayedStore.dispose(), (e = C()) == null || e.handleAutorunDisposed(this);
718
+ this._dependencies.clear(), this._store !== void 0 && this._store.dispose(), this._delayedStore !== void 0 && this._delayedStore.dispose(), (e = S()) == null || e.handleAutorunDisposed(this);
719
719
  }
720
720
  }
721
721
  _run() {
@@ -724,7 +724,7 @@ class Ye {
724
724
  this._dependenciesToBeRemoved = this._dependencies, this._dependencies = e, this._state = 3;
725
725
  try {
726
726
  if (!this._disposed) {
727
- (t = C()) == null || t.handleAutorunStarted(this);
727
+ (t = S()) == null || t.handleAutorunStarted(this);
728
728
  const i = this._changeSummary, d = this._delayedStore;
729
729
  d !== void 0 && (this._delayedStore = void 0);
730
730
  try {
@@ -736,7 +736,7 @@ class Ye {
736
736
  }
737
737
  }
738
738
  } finally {
739
- this._disposed || (o = C()) == null || o.handleAutorunFinished(this);
739
+ this._disposed || (o = S()) == null || o.handleAutorunFinished(this);
740
740
  for (const i of this._dependenciesToBeRemoved)
741
741
  i.removeObserver(this);
742
742
  this._dependenciesToBeRemoved.clear();
@@ -771,7 +771,7 @@ class Ye {
771
771
  handleChange(e, t) {
772
772
  var n;
773
773
  if (this._isDependency(e)) {
774
- (n = C()) == null || n.handleAutorunDependencyChanged(this, e, t);
774
+ (n = S()) == null || n.handleAutorunDependencyChanged(this, e, t);
775
775
  try {
776
776
  (this._changeTracker ? this._changeTracker.handleChange({
777
777
  changedObservable: e,
@@ -842,7 +842,7 @@ function Gt(r, e, t) {
842
842
  class tt {
843
843
  constructor(e, t) {
844
844
  var n;
845
- this._fn = e, this._getDebugName = t, this._updatingObservers = [], (n = C()) == null || n.handleBeginTransaction(this);
845
+ this._fn = e, this._getDebugName = t, this._updatingObservers = [], (n = S()) == null || n.handleBeginTransaction(this);
846
846
  }
847
847
  getDebugName() {
848
848
  return this._getDebugName ? this._getDebugName() : ye(this._fn);
@@ -867,7 +867,7 @@ class tt {
867
867
  const { observer: s, observable: o } = e[n];
868
868
  s.endUpdate(o);
869
869
  }
870
- this._updatingObservers = null, (t = C()) == null || t.handleEndTransaction(this);
870
+ this._updatingObservers = null, (t = S()) == null || t.handleEndTransaction(this);
871
871
  }
872
872
  debugGetUpdatingObservers() {
873
873
  return this._updatingObservers;
@@ -883,7 +883,7 @@ class rt extends xe {
883
883
  }
884
884
  constructor(e, t, n, s) {
885
885
  var o;
886
- super(s), this._debugNameData = e, this._equalityComparator = n, this._value = t, (o = C()) == null || o.handleObservableUpdated(this, { hadValue: !1, newValue: t, change: void 0, didChange: !0, oldValue: void 0 });
886
+ super(s), this._debugNameData = e, this._equalityComparator = n, this._value = t, (o = S()) == null || o.handleObservableUpdated(this, { hadValue: !1, newValue: t, change: void 0, didChange: !0, oldValue: void 0 });
887
887
  }
888
888
  get() {
889
889
  return this._value;
@@ -897,7 +897,7 @@ class rt extends xe {
897
897
  }, () => `Setting ${this.debugName}`));
898
898
  try {
899
899
  const i = this._value;
900
- this._setValue(e), (o = C()) == null || o.handleObservableUpdated(this, { oldValue: i, newValue: e, change: n, didChange: !0, hadValue: !0 });
900
+ this._setValue(e), (o = S()) == null || o.handleObservableUpdated(this, { oldValue: i, newValue: e, change: n, didChange: !0, hadValue: !0 });
901
901
  for (const d of this._observers)
902
902
  t.updateObserver(d, this), d.handleChange(this, n);
903
903
  } finally {
@@ -931,13 +931,13 @@ class L extends xe {
931
931
  let v = !1;
932
932
  m && (this._value = c, this._hasValue && (v = !0, Gt(this._getTransaction(), (g) => {
933
933
  var _;
934
- (_ = C()) == null || _.handleObservableUpdated(this, { oldValue: h, newValue: c, change: void 0, didChange: m, hadValue: this._hasValue });
934
+ (_ = S()) == null || _.handleObservableUpdated(this, { oldValue: h, newValue: c, change: void 0, didChange: m, hadValue: this._hasValue });
935
935
  for (const b of this._observers)
936
936
  g.updateObserver(b, this), b.handleChange(this, void 0);
937
937
  }, () => {
938
938
  const g = this.getDebugName();
939
939
  return "Event fired" + (g ? `: ${g}` : "");
940
- })), this._hasValue = !0), v || (R = C()) == null || R.handleObservableUpdated(this, { oldValue: h, newValue: c, change: void 0, didChange: m, hadValue: this._hasValue });
940
+ })), this._hasValue = !0), v || (R = S()) == null || R.handleObservableUpdated(this, { oldValue: h, newValue: c, change: void 0, didChange: m, hadValue: this._hasValue });
941
941
  };
942
942
  }
943
943
  getDebugName() {
@@ -1537,11 +1537,11 @@ function B(r = {}) {
1537
1537
  return e = class extends cr {
1538
1538
  }, e._props = r, e;
1539
1539
  }
1540
- let pe = 0;
1540
+ let fe = 0;
1541
1541
  const hr = new or((r) => {
1542
1542
  for (const e of r)
1543
1543
  e.rendered = !1;
1544
- if (pe > 0) {
1544
+ if (fe > 0) {
1545
1545
  const e = r.find((t) => t.isRendering);
1546
1546
  e.itemsToRender = r;
1547
1547
  } else
@@ -1551,7 +1551,7 @@ const hr = new or((r) => {
1551
1551
  });
1552
1552
  });
1553
1553
  let ur = 0;
1554
- class pr {
1554
+ class fr {
1555
1555
  constructor(e, t) {
1556
1556
  this.debugName = e, this.renderFactory = t, this._obsProps = void 0, this.forceUpdate = void 0, this._render = void 0, this._disposable = void 0, this.contextValues = /* @__PURE__ */ new Map(), this.cleanupEffect = () => () => {
1557
1557
  var n;
@@ -1570,27 +1570,27 @@ class pr {
1570
1570
  this._obsProps ? this._obsProps.set(e, void 0) : (this._obsProps = w(this, e), this._render = this.renderFactory(this._obsProps, () => this.contextValues), this.rendering = D(this, this._render), this._disposable = hr.addDependency(this.rendering, this));
1571
1571
  }
1572
1572
  }
1573
- function Ce(r, e, t) {
1574
- const n = (i) => i + 1, s = () => new pr(r + ++ur, e), o = function(i) {
1573
+ function Se(r, e, t) {
1574
+ const n = (i) => i + 1, s = () => new fr(r + ++ur, e), o = function(i) {
1575
1575
  const d = bt(n, 0)[1], c = yt(s)[0];
1576
1576
  for (const h of t ?? [])
1577
1577
  c.contextValues.set(h, xt(h));
1578
1578
  if (Ie(c.cleanupEffect, []), Ie(c.handleAfterRender), c.isRendering)
1579
1579
  throw new Error("Component is already rendering");
1580
- c.isRendering = !0, pe++;
1580
+ c.isRendering = !0, fe++;
1581
1581
  try {
1582
1582
  c.forceUpdate = d, c.updateProps(i);
1583
1583
  const h = c.rendering.get();
1584
1584
  return c.rendered = !0, h;
1585
1585
  } finally {
1586
- c.isRendering = !1, pe--;
1586
+ c.isRendering = !1, fe--;
1587
1587
  }
1588
1588
  };
1589
1589
  return o.displayName = r, o;
1590
1590
  }
1591
- Ce("ObsView", (r) => (e) => r.read(e).children(e));
1591
+ Se("ObsView", (r) => (e) => r.read(e).children(e));
1592
1592
  function V(r, e) {
1593
- return Ce("view", (t) => {
1593
+ return Se("view", (t) => {
1594
1594
  const n = K(r, (s, o) => s.create((i) => t.read(i)[o], void 0));
1595
1595
  return (s) => {
1596
1596
  const o = K(n, (i) => i.read(s));
@@ -1598,7 +1598,7 @@ function V(r, e) {
1598
1598
  };
1599
1599
  });
1600
1600
  }
1601
- function fr(r) {
1601
+ function pr(r) {
1602
1602
  const e = [];
1603
1603
  for (const t of Object.values(r)) {
1604
1604
  const n = t._requiredContext;
@@ -1607,8 +1607,8 @@ function fr(r) {
1607
1607
  return e;
1608
1608
  }
1609
1609
  function A(r, e, t) {
1610
- const n = typeof e == "function" ? {} : e, s = typeof e == "function" ? e : t, o = "_props" in r ? r._props : {}, i = fr({ ...o, ...n }), d = lr(r), c = [...i, d];
1611
- return Ce("viewWithModel", (h, m) => {
1610
+ const n = typeof e == "function" ? {} : e, s = typeof e == "function" ? e : t, o = "_props" in r ? r._props : {}, i = pr({ ...o, ...n }), d = lr(r), c = [...i, d];
1611
+ return Se("viewWithModel", (h, m) => {
1612
1612
  const v = m(), R = v.get(d), g = "_props" in r ? K(r._props, (y, O) => y.create((x) => h.read(x)[O], v.get(y._requiredContext))) : {}, _ = R ? { read: () => R, dispose: () => {
1613
1613
  } } : Pt((y) => {
1614
1614
  const O = K(g, (x) => x.read(y));
@@ -1853,7 +1853,7 @@ class gr extends B({
1853
1853
  return i;
1854
1854
  }
1855
1855
  }
1856
- const f = {
1856
+ const p = {
1857
1857
  container: {
1858
1858
  display: "flex",
1859
1859
  flexDirection: "row",
@@ -2042,7 +2042,7 @@ const f = {
2042
2042
  cursor: "pointer"
2043
2043
  }
2044
2044
  };
2045
- function Se(...r) {
2045
+ function Ce(...r) {
2046
2046
  return Object.assign({}, ...r.filter(Boolean));
2047
2047
  }
2048
2048
  class mr extends B({
@@ -2067,10 +2067,10 @@ const oe = A(
2067
2067
  children: u.const()
2068
2068
  },
2069
2069
  (r, e, t) => {
2070
- const n = e.isHovered.read(r), s = e.active.read(r), o = Se(
2071
- f.titleBarButton,
2072
- n && !s && f.titleBarButtonHover,
2073
- s && f.titleBarButtonActive
2070
+ const n = e.isHovered.read(r), s = e.active.read(r), o = Ce(
2071
+ p.titleBarButton,
2072
+ n && !s && p.titleBarButtonHover,
2073
+ s && p.titleBarButtonActive
2074
2074
  );
2075
2075
  return /* @__PURE__ */ a(
2076
2076
  "button",
@@ -2084,17 +2084,17 @@ const oe = A(
2084
2084
  }
2085
2085
  );
2086
2086
  }
2087
- ), vr = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M5.7 13.7L5 13l4.6-4.6L5 3.7l.7-.7 5.3 5.4-5.3 5.3z" }) }), _r = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M11 5.5L6 10.5L5.3 9.8L9.6 5.5L5.3 1.2L6 0.5L11 5.5z", transform: "rotate(90 8 5.5)" }) }), br = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M14.5 2H9l-.35.15-.65.64-.65-.64L7 2H1.5l-.5.5v10l.5.5H7l.35-.15.65-.64.65.64.35.15h5.5l.5-.5v-10l-.5-.5zm-7 10H2V3h5v.86L5.85 5l1.15 1.14V10l-1.15-1.14L7 7.72V12zm6 0H8V7.72l1.15 1.14L8 10V6.14L9.15 5 8 3.86V3h5v9z" }) }), yr = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M14.5 3H7.71l-.85-.85L6.5 2h-5l-.5.5v11l.5.5h13l.5-.5v-10l-.5-.5zm-.5 10H2V6h12v7zm0-8H2V3h4.29l.85.85.36.15H14v1z" }) }), xr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M2 2v12h12V2H2zm11 11H6V3h7v10zM3 3h2v10H3V3z" }) }), Cr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M2 2v12h12V2H2zm6 11V3h5v10H8zM3 3h4v10H3V3z" }) }), Sr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z" }) }), wr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z" }) }), Rr = V(
2087
+ ), vr = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M5.7 13.7L5 13l4.6-4.6L5 3.7l.7-.7 5.3 5.4-5.3 5.3z" }) }), _r = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M11 5.5L6 10.5L5.3 9.8L9.6 5.5L5.3 1.2L6 0.5L11 5.5z", transform: "rotate(90 8 5.5)" }) }), br = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M14.5 2H9l-.35.15-.65.64-.65-.64L7 2H1.5l-.5.5v10l.5.5H7l.35-.15.65-.64.65.64.35.15h5.5l.5-.5v-10l-.5-.5zm-7 10H2V3h5v.86L5.85 5l1.15 1.14V10l-1.15-1.14L7 7.72V12zm6 0H8V7.72l1.15 1.14L8 10V6.14L9.15 5 8 3.86V3h5v9z" }) }), yr = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M14.5 3H7.71l-.85-.85L6.5 2h-5l-.5.5v11l.5.5h13l.5-.5v-10l-.5-.5zm-.5 10H2V6h12v7zm0-8H2V3h4.29l.85.85.36.15H14v1z" }) }), xr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M2 2v12h12V2H2zm11 11H6V3h7v10zM3 3h2v10H3V3z" }) }), Sr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M2 2v12h12V2H2zm6 11V3h5v10H8zM3 3h4v10H3V3z" }) }), Cr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z" }) }), wr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z" }) }), Rr = V(
2088
2088
  { model: u.const() },
2089
2089
  (r, e) => {
2090
2090
  var d, c;
2091
2091
  const t = e.model, n = t.viewMode.read(r), s = ((d = t.daemon) == null ? void 0 : d.sessions.read(r)) ?? [], o = (c = t.daemon) == null ? void 0 : c.sessionName, i = s.filter((h) => h.name !== o);
2092
- return s.length <= 1 ? null : /* @__PURE__ */ p("div", { style: J.container, children: [
2093
- /* @__PURE__ */ p("div", { style: J.segmentedControl, children: [
2092
+ return s.length <= 1 ? null : /* @__PURE__ */ f("div", { style: J.container, children: [
2093
+ /* @__PURE__ */ f("div", { style: J.segmentedControl, children: [
2094
2094
  /* @__PURE__ */ a(Be, { label: "Live", mode: "session", active: n === "session", onClick: () => t.setViewMode("session") }),
2095
2095
  /* @__PURE__ */ a(Be, { label: "Diff", mode: "diff", active: n === "diff", onClick: () => t.setViewMode("diff") })
2096
2096
  ] }),
2097
- i.length > 0 && /* @__PURE__ */ a("div", { style: J.sessionLinks, children: i.map((h) => /* @__PURE__ */ p(
2097
+ i.length > 0 && /* @__PURE__ */ a("div", { style: J.sessionLinks, children: i.map((h) => /* @__PURE__ */ f(
2098
2098
  "button",
2099
2099
  {
2100
2100
  style: J.sessionLink,
@@ -2126,8 +2126,8 @@ const Tr = V(
2126
2126
  },
2127
2127
  (r, e) => {
2128
2128
  const t = e.model, n = t.leftSidebarVisible.read(r), s = t.rightSidebarVisible.read(r), o = t.isDarkTheme.read(r), i = t.selectedNode.read(r);
2129
- return /* @__PURE__ */ p("div", { style: f.titleBar, children: [
2130
- /* @__PURE__ */ a("div", { style: f.titleBarSection, children: /* @__PURE__ */ a(
2129
+ return /* @__PURE__ */ f("div", { style: p.titleBar, children: [
2130
+ /* @__PURE__ */ a("div", { style: p.titleBarSection, children: /* @__PURE__ */ a(
2131
2131
  oe,
2132
2132
  {
2133
2133
  active: n,
@@ -2136,22 +2136,22 @@ const Tr = V(
2136
2136
  children: /* @__PURE__ */ a(xr, {})
2137
2137
  }
2138
2138
  ) }),
2139
- /* @__PURE__ */ p("div", { style: f.titleBarCenter, children: [
2139
+ /* @__PURE__ */ f("div", { style: p.titleBarCenter, children: [
2140
2140
  t.isReportMode ? /* @__PURE__ */ a("span", { style: { fontSize: 12, color: "var(--vscode-descriptionForeground)" }, children: "Screenshot Report" }) : t.daemonAvailable ? /* @__PURE__ */ a(Rr, { model: t }) : null,
2141
- i ? /* @__PURE__ */ p(ge, { children: [
2141
+ i ? /* @__PURE__ */ f(ge, { children: [
2142
2142
  /* @__PURE__ */ a("span", { style: { color: "var(--vscode-textLink-foreground)" }, children: "<" }),
2143
2143
  /* @__PURE__ */ a("span", { children: i.name }),
2144
2144
  /* @__PURE__ */ a("span", { style: { color: "var(--vscode-textLink-foreground)" }, children: "/>" })
2145
2145
  ] }) : /* @__PURE__ */ a("span", { style: { color: "var(--vscode-descriptionForeground)" }, children: "No component selected" })
2146
2146
  ] }),
2147
- /* @__PURE__ */ p("div", { style: f.titleBarSection, children: [
2147
+ /* @__PURE__ */ f("div", { style: p.titleBarSection, children: [
2148
2148
  /* @__PURE__ */ a(
2149
2149
  oe,
2150
2150
  {
2151
2151
  active: !1,
2152
2152
  onClick: t.toggleTheme,
2153
2153
  title: o ? "Switch to light theme" : "Switch to dark theme",
2154
- children: o ? /* @__PURE__ */ a(Sr, {}) : /* @__PURE__ */ a(wr, {})
2154
+ children: o ? /* @__PURE__ */ a(Cr, {}) : /* @__PURE__ */ a(wr, {})
2155
2155
  }
2156
2156
  ),
2157
2157
  /* @__PURE__ */ a(
@@ -2160,7 +2160,7 @@ const Tr = V(
2160
2160
  active: s,
2161
2161
  onClick: t.toggleRightSidebar,
2162
2162
  title: "Toggle right sidebar",
2163
- children: /* @__PURE__ */ a(Cr, {})
2163
+ children: /* @__PURE__ */ a(Sr, {})
2164
2164
  }
2165
2165
  )
2166
2166
  ] })
@@ -2254,14 +2254,14 @@ class Ir extends B({
2254
2254
  }
2255
2255
  }
2256
2256
  const Or = A(Ir, {}, (r, e) => {
2257
- const t = e.explorerModel, n = e.treeNode, s = e.treeDepth, o = !!(n.children && n.children.length > 0), i = o ? t.isNodeExpanded(n.id, r) : !1, c = t.selectedNodeId.read(r) === n.id, h = e.isHovered.read(r), m = Se(
2258
- f.treeItem,
2257
+ const t = e.explorerModel, n = e.treeNode, s = e.treeDepth, o = !!(n.children && n.children.length > 0), i = o ? t.isNodeExpanded(n.id, r) : !1, c = t.selectedNodeId.read(r) === n.id, h = e.isHovered.read(r), m = Ce(
2258
+ p.treeItem,
2259
2259
  { paddingLeft: `${8 + s * 12}px` },
2260
- c && f.treeItemSelected,
2261
- !c && h && f.treeItemHover
2260
+ c && p.treeItemSelected,
2261
+ !c && h && p.treeItemHover
2262
2262
  );
2263
- return /* @__PURE__ */ p(ge, { children: [
2264
- /* @__PURE__ */ p(
2263
+ return /* @__PURE__ */ f(ge, { children: [
2264
+ /* @__PURE__ */ f(
2265
2265
  "div",
2266
2266
  {
2267
2267
  style: m,
@@ -2270,10 +2270,10 @@ const Or = A(Ir, {}, (r, e) => {
2270
2270
  onMouseEnter: () => e.setHovered(!0),
2271
2271
  onMouseLeave: () => e.setHovered(!1),
2272
2272
  children: [
2273
- o ? /* @__PURE__ */ a("div", { style: f.treeItemChevron, onClick: e.handleChevronClick, children: i ? /* @__PURE__ */ a(_r, {}) : /* @__PURE__ */ a(vr, {}) }) : /* @__PURE__ */ a("div", { style: f.treeItemChevronPlaceholder }),
2274
- /* @__PURE__ */ a("div", { style: f.treeItemIcon, children: n.type === "folder" ? /* @__PURE__ */ a(yr, { style: { color: "var(--vscode-symbolIcon-folderForeground)" } }) : /* @__PURE__ */ a(br, { style: { color: "#deb45b" } }) }),
2275
- /* @__PURE__ */ a("span", { style: f.treeItemLabel, children: n.name }),
2276
- o && /* @__PURE__ */ a("span", { style: f.treeItemCount, children: n.children.length })
2273
+ o ? /* @__PURE__ */ a("div", { style: p.treeItemChevron, onClick: e.handleChevronClick, children: i ? /* @__PURE__ */ a(_r, {}) : /* @__PURE__ */ a(vr, {}) }) : /* @__PURE__ */ a("div", { style: p.treeItemChevronPlaceholder }),
2274
+ /* @__PURE__ */ a("div", { style: p.treeItemIcon, children: n.type === "folder" ? /* @__PURE__ */ a(yr, { style: { color: "var(--vscode-symbolIcon-folderForeground)" } }) : /* @__PURE__ */ a(br, { style: { color: "#deb45b" } }) }),
2275
+ /* @__PURE__ */ a("span", { style: p.treeItemLabel, children: n.name }),
2276
+ o && /* @__PURE__ */ a("span", { style: p.treeItemCount, children: n.children.length })
2277
2277
  ]
2278
2278
  }
2279
2279
  ),
@@ -2285,9 +2285,9 @@ const Or = A(Ir, {}, (r, e) => {
2285
2285
  },
2286
2286
  (r, e) => {
2287
2287
  const t = e.model.tree.read(r);
2288
- return /* @__PURE__ */ p("div", { style: f.sidebar, children: [
2289
- /* @__PURE__ */ a("div", { style: f.sidebarHeader, children: "Explorer" }),
2290
- /* @__PURE__ */ a("div", { style: f.sidebarContent, children: /* @__PURE__ */ a(it, { model: e.model, nodes: [t], depth: 0 }) })
2288
+ return /* @__PURE__ */ f("div", { style: p.sidebar, children: [
2289
+ /* @__PURE__ */ a("div", { style: p.sidebarHeader, children: "Explorer" }),
2290
+ /* @__PURE__ */ a("div", { style: p.sidebarContent, children: /* @__PURE__ */ a(it, { model: e.model, nodes: [t], depth: 0 }) })
2291
2291
  ] });
2292
2292
  }
2293
2293
  );
@@ -2325,9 +2325,9 @@ const Nr = A(Vr, {}, (r, e) => {
2325
2325
  {
2326
2326
  node: u.const()
2327
2327
  },
2328
- (r, e) => e.node.type !== "component" ? /* @__PURE__ */ a("div", { style: { padding: "12px", color: "var(--vscode-descriptionForeground)", fontSize: "12px" }, children: "Select a component (not a folder) to view its properties" }) : /* @__PURE__ */ p("div", { style: f.propertiesPanel, children: [
2329
- /* @__PURE__ */ p("div", { style: f.propertyRow, children: [
2330
- /* @__PURE__ */ p("div", { style: f.propertyLabel, children: [
2328
+ (r, e) => e.node.type !== "component" ? /* @__PURE__ */ a("div", { style: { padding: "12px", color: "var(--vscode-descriptionForeground)", fontSize: "12px" }, children: "Select a component (not a folder) to view its properties" }) : /* @__PURE__ */ f("div", { style: p.propertiesPanel, children: [
2329
+ /* @__PURE__ */ f("div", { style: p.propertyRow, children: [
2330
+ /* @__PURE__ */ f("div", { style: p.propertyLabel, children: [
2331
2331
  "children",
2332
2332
  /* @__PURE__ */ a("span", { style: { color: "var(--vscode-descriptionForeground)" }, children: " : string" })
2333
2333
  ] }),
@@ -2335,57 +2335,57 @@ const Nr = A(Vr, {}, (r, e) => {
2335
2335
  "input",
2336
2336
  {
2337
2337
  type: "text",
2338
- style: f.propertyInput,
2338
+ style: p.propertyInput,
2339
2339
  defaultValue: "Click me",
2340
2340
  placeholder: "Enter text..."
2341
2341
  }
2342
2342
  ),
2343
- /* @__PURE__ */ a("div", { style: f.propertyDescription, children: "Button text content" })
2343
+ /* @__PURE__ */ a("div", { style: p.propertyDescription, children: "Button text content" })
2344
2344
  ] }),
2345
- /* @__PURE__ */ p("div", { style: f.propertyRow, children: [
2346
- /* @__PURE__ */ p("div", { style: f.propertyLabel, children: [
2345
+ /* @__PURE__ */ f("div", { style: p.propertyRow, children: [
2346
+ /* @__PURE__ */ f("div", { style: p.propertyLabel, children: [
2347
2347
  "variant",
2348
2348
  /* @__PURE__ */ a("span", { style: { color: "var(--vscode-descriptionForeground)" }, children: " : select" })
2349
2349
  ] }),
2350
- /* @__PURE__ */ p("select", { style: f.propertySelect, defaultValue: "default", children: [
2350
+ /* @__PURE__ */ f("select", { style: p.propertySelect, defaultValue: "default", children: [
2351
2351
  /* @__PURE__ */ a("option", { value: "default", children: "default" }),
2352
2352
  /* @__PURE__ */ a("option", { value: "primary", children: "primary" }),
2353
2353
  /* @__PURE__ */ a("option", { value: "secondary", children: "secondary" }),
2354
2354
  /* @__PURE__ */ a("option", { value: "destructive", children: "destructive" })
2355
2355
  ] }),
2356
- /* @__PURE__ */ a("div", { style: f.propertyDescription, children: "Visual style variant" })
2356
+ /* @__PURE__ */ a("div", { style: p.propertyDescription, children: "Visual style variant" })
2357
2357
  ] }),
2358
- /* @__PURE__ */ p("div", { style: f.propertyRow, children: [
2359
- /* @__PURE__ */ p("div", { style: f.propertyLabel, children: [
2358
+ /* @__PURE__ */ f("div", { style: p.propertyRow, children: [
2359
+ /* @__PURE__ */ f("div", { style: p.propertyLabel, children: [
2360
2360
  "size",
2361
2361
  /* @__PURE__ */ a("span", { style: { color: "var(--vscode-descriptionForeground)" }, children: " : select" })
2362
2362
  ] }),
2363
- /* @__PURE__ */ p("select", { style: f.propertySelect, defaultValue: "default", children: [
2363
+ /* @__PURE__ */ f("select", { style: p.propertySelect, defaultValue: "default", children: [
2364
2364
  /* @__PURE__ */ a("option", { value: "sm", children: "sm" }),
2365
2365
  /* @__PURE__ */ a("option", { value: "default", children: "default" }),
2366
2366
  /* @__PURE__ */ a("option", { value: "lg", children: "lg" })
2367
2367
  ] }),
2368
- /* @__PURE__ */ a("div", { style: f.propertyDescription, children: "Button size" })
2368
+ /* @__PURE__ */ a("div", { style: p.propertyDescription, children: "Button size" })
2369
2369
  ] }),
2370
- /* @__PURE__ */ p("div", { style: f.propertyRow, children: [
2371
- /* @__PURE__ */ p("div", { style: f.propertyLabel, children: [
2370
+ /* @__PURE__ */ f("div", { style: p.propertyRow, children: [
2371
+ /* @__PURE__ */ f("div", { style: p.propertyLabel, children: [
2372
2372
  "disabled",
2373
2373
  /* @__PURE__ */ a("span", { style: { color: "var(--vscode-descriptionForeground)" }, children: " : boolean" })
2374
2374
  ] }),
2375
2375
  /* @__PURE__ */ a(Nr, {}),
2376
- /* @__PURE__ */ a("div", { style: f.propertyDescription, children: "Disable the button" })
2376
+ /* @__PURE__ */ a("div", { style: p.propertyDescription, children: "Disable the button" })
2377
2377
  ] })
2378
2378
  ] })
2379
2379
  ), Dr = V(
2380
2380
  {
2381
2381
  selectedNode: u.const()
2382
2382
  },
2383
- (r, e) => /* @__PURE__ */ p("div", { style: Se(f.sidebar, f.sidebarRight), children: [
2384
- /* @__PURE__ */ p("div", { style: f.sidebarHeader, children: [
2383
+ (r, e) => /* @__PURE__ */ f("div", { style: Ce(p.sidebar, p.sidebarRight), children: [
2384
+ /* @__PURE__ */ f("div", { style: p.sidebarHeader, children: [
2385
2385
  /* @__PURE__ */ a("span", { style: { marginRight: "6px", color: "var(--vscode-textLink-foreground)" }, children: "</>" }),
2386
2386
  "Props"
2387
2387
  ] }),
2388
- /* @__PURE__ */ a("div", { style: f.sidebarContent, children: e.selectedNode ? /* @__PURE__ */ a(Mr, { node: e.selectedNode }) : /* @__PURE__ */ a("div", { style: { padding: "12px", color: "var(--vscode-descriptionForeground)", fontSize: "12px" }, children: "Select a component to view its properties" }) })
2388
+ /* @__PURE__ */ a("div", { style: p.sidebarContent, children: e.selectedNode ? /* @__PURE__ */ a(Mr, { node: e.selectedNode }) : /* @__PURE__ */ a("div", { style: { padding: "12px", color: "var(--vscode-descriptionForeground)", fontSize: "12px" }, children: "Select a component to view its properties" }) })
2389
2389
  ] })
2390
2390
  );
2391
2391
  class Fr extends B({
@@ -2494,8 +2494,8 @@ const at = A(
2494
2494
  display: "inline-block"
2495
2495
  };
2496
2496
  const h = o && i ? `${o} × ${i}` : "", m = d ? G.wrapperCompact : G.wrapper, v = d ? G.nameCompact : G.name;
2497
- return /* @__PURE__ */ p("div", { style: m, children: [
2498
- /* @__PURE__ */ p("div", { style: G.labelRow, children: [
2497
+ return /* @__PURE__ */ f("div", { style: m, children: [
2498
+ /* @__PURE__ */ f("div", { style: G.labelRow, children: [
2499
2499
  /* @__PURE__ */ a("span", { style: v, children: t.name }),
2500
2500
  !d && h && /* @__PURE__ */ a("span", { style: G.dimensions, children: h })
2501
2501
  ] }),
@@ -2698,13 +2698,13 @@ const Hr = A(
2698
2698
  {},
2699
2699
  (r, e) => {
2700
2700
  const t = e.comparisonStatus.read(r), n = t.status === "loading" ? /* @__PURE__ */ a("span", { style: T.badgeLoading, children: "comparing..." }) : t.status === "error" ? /* @__PURE__ */ a("span", { style: T.badgeError, children: "error" }) : t.match ? /* @__PURE__ */ a("span", { style: T.badgeMatch, children: "✓ match" }) : /* @__PURE__ */ a("span", { style: T.badgeChanged, children: "● changed" });
2701
- return /* @__PURE__ */ p("div", { style: T.fixtureRow, children: [
2702
- /* @__PURE__ */ p("div", { style: T.fixtureLabel, children: [
2701
+ return /* @__PURE__ */ f("div", { style: T.fixtureRow, children: [
2702
+ /* @__PURE__ */ f("div", { style: T.fixtureLabel, children: [
2703
2703
  /* @__PURE__ */ a("span", { style: T.fixtureName, children: e.fixtureId }),
2704
2704
  n
2705
2705
  ] }),
2706
- /* @__PURE__ */ p("div", { style: T.sideBySide, children: [
2707
- /* @__PURE__ */ p("div", { style: T.screenshotColumn, children: [
2706
+ /* @__PURE__ */ f("div", { style: T.sideBySide, children: [
2707
+ /* @__PURE__ */ f("div", { style: T.screenshotColumn, children: [
2708
2708
  /* @__PURE__ */ a("span", { style: T.columnLabel, children: "Current" }),
2709
2709
  /* @__PURE__ */ a(
2710
2710
  Ae,
@@ -2715,7 +2715,7 @@ const Hr = A(
2715
2715
  }
2716
2716
  )
2717
2717
  ] }),
2718
- /* @__PURE__ */ p("div", { style: T.screenshotColumn, children: [
2718
+ /* @__PURE__ */ f("div", { style: T.screenshotColumn, children: [
2719
2719
  /* @__PURE__ */ a("span", { style: T.columnLabel, children: "Baseline" }),
2720
2720
  /* @__PURE__ */ a(
2721
2721
  Ae,
@@ -2738,7 +2738,7 @@ const Hr = A(
2738
2738
  baselineSession: u.const(),
2739
2739
  currentSession: u.const()
2740
2740
  },
2741
- (r, e) => /* @__PURE__ */ p("div", { children: [
2741
+ (r, e) => /* @__PURE__ */ f("div", { children: [
2742
2742
  /* @__PURE__ */ a("div", { style: T.groupHeader, children: /* @__PURE__ */ a("span", { style: T.groupTitle, children: e.path }) }),
2743
2743
  /* @__PURE__ */ a("div", { style: T.groupContent, children: e.items.map((t) => /* @__PURE__ */ a(
2744
2744
  Hr,
@@ -2851,7 +2851,7 @@ function Gr(r) {
2851
2851
  };
2852
2852
  }
2853
2853
  function ze({ src: r, alt: e, background: t }) {
2854
- return /* @__PURE__ */ a("div", { style: Gr(t), children: /* @__PURE__ */ a("img", { src: r, alt: e, style: S.image }) });
2854
+ return /* @__PURE__ */ a("div", { style: Gr(t), children: /* @__PURE__ */ a("img", { src: r, alt: e, style: C.image }) });
2855
2855
  }
2856
2856
  const qr = V(
2857
2857
  {
@@ -2859,15 +2859,15 @@ const qr = V(
2859
2859
  reportModel: u.const()
2860
2860
  },
2861
2861
  (r, e) => {
2862
- const { item: t, reportModel: n } = e, { entry: s } = t, o = s.background ?? "light", i = s.status === "unchanged" ? /* @__PURE__ */ a("span", { style: S.badgeMatch, children: "✓ match" }) : s.status === "changed" ? /* @__PURE__ */ a("span", { style: S.badgeChanged, children: "● changed" }) : /* @__PURE__ */ a("span", { style: S.badgeAdded, children: "+ added" }), d = s.baselineScreenshot || s.currentScreenshot;
2863
- return /* @__PURE__ */ p("div", { style: S.fixtureRow, children: [
2864
- /* @__PURE__ */ p("div", { style: S.fixtureLabel, children: [
2865
- /* @__PURE__ */ a("span", { style: S.fixtureName, children: t.fixtureId }),
2862
+ const { item: t, reportModel: n } = e, { entry: s } = t, o = s.background ?? "light", i = s.status === "unchanged" ? /* @__PURE__ */ a("span", { style: C.badgeMatch, children: "✓ match" }) : s.status === "changed" ? /* @__PURE__ */ a("span", { style: C.badgeChanged, children: "● changed" }) : /* @__PURE__ */ a("span", { style: C.badgeAdded, children: "+ added" }), d = s.baselineScreenshot || s.currentScreenshot;
2863
+ return /* @__PURE__ */ f("div", { style: C.fixtureRow, children: [
2864
+ /* @__PURE__ */ f("div", { style: C.fixtureLabel, children: [
2865
+ /* @__PURE__ */ a("span", { style: C.fixtureName, children: t.fixtureId }),
2866
2866
  i
2867
2867
  ] }),
2868
- d && /* @__PURE__ */ p("div", { style: S.sideBySide, children: [
2869
- s.baselineScreenshot && /* @__PURE__ */ p("div", { style: S.screenshotColumn, children: [
2870
- /* @__PURE__ */ a("span", { style: S.columnLabel, children: "Baseline" }),
2868
+ d && /* @__PURE__ */ f("div", { style: C.sideBySide, children: [
2869
+ s.baselineScreenshot && /* @__PURE__ */ f("div", { style: C.screenshotColumn, children: [
2870
+ /* @__PURE__ */ a("span", { style: C.columnLabel, children: "Baseline" }),
2871
2871
  /* @__PURE__ */ a(
2872
2872
  ze,
2873
2873
  {
@@ -2877,8 +2877,8 @@ const qr = V(
2877
2877
  }
2878
2878
  )
2879
2879
  ] }),
2880
- s.currentScreenshot && /* @__PURE__ */ p("div", { style: S.screenshotColumn, children: [
2881
- /* @__PURE__ */ a("span", { style: S.columnLabel, children: "Current" }),
2880
+ s.currentScreenshot && /* @__PURE__ */ f("div", { style: C.screenshotColumn, children: [
2881
+ /* @__PURE__ */ a("span", { style: C.columnLabel, children: "Current" }),
2882
2882
  /* @__PURE__ */ a(
2883
2883
  ze,
2884
2884
  {
@@ -2889,7 +2889,7 @@ const qr = V(
2889
2889
  )
2890
2890
  ] })
2891
2891
  ] }),
2892
- !d && s.status === "unchanged" && /* @__PURE__ */ a("div", { style: S.hashRow, children: /* @__PURE__ */ p("span", { style: S.hashText, children: [
2892
+ !d && s.status === "unchanged" && /* @__PURE__ */ a("div", { style: C.hashRow, children: /* @__PURE__ */ f("span", { style: C.hashText, children: [
2893
2893
  "hash: ",
2894
2894
  s.targetHash
2895
2895
  ] }) })
@@ -2902,9 +2902,9 @@ const qr = V(
2902
2902
  items: u.const(),
2903
2903
  reportModel: u.const()
2904
2904
  },
2905
- (r, e) => /* @__PURE__ */ p("div", { children: [
2906
- /* @__PURE__ */ a("div", { style: S.groupHeader, children: /* @__PURE__ */ a("span", { style: S.groupTitle, children: e.path }) }),
2907
- /* @__PURE__ */ a("div", { style: S.groupContent, children: e.items.map((t) => /* @__PURE__ */ a(
2905
+ (r, e) => /* @__PURE__ */ f("div", { children: [
2906
+ /* @__PURE__ */ a("div", { style: C.groupHeader, children: /* @__PURE__ */ a("span", { style: C.groupTitle, children: e.path }) }),
2907
+ /* @__PURE__ */ a("div", { style: C.groupContent, children: e.items.map((t) => /* @__PURE__ */ a(
2908
2908
  qr,
2909
2909
  {
2910
2910
  item: t,
@@ -2913,7 +2913,7 @@ const qr = V(
2913
2913
  t.fixtureId
2914
2914
  )) })
2915
2915
  ] })
2916
- ), S = {
2916
+ ), C = {
2917
2917
  groupHeader: {
2918
2918
  marginBottom: 12
2919
2919
  },
@@ -3013,7 +3013,7 @@ function Xr() {
3013
3013
  return new Map(Object.entries(ht()));
3014
3014
  }
3015
3015
  const Yr = 280, Qr = 32, ne = 32, Le = 400, ut = "component-explorer:scrollAnchors", He = 100;
3016
- function pt() {
3016
+ function ft() {
3017
3017
  try {
3018
3018
  const r = localStorage.getItem(ut);
3019
3019
  if (r) return JSON.parse(r);
@@ -3023,7 +3023,7 @@ function pt() {
3023
3023
  }
3024
3024
  function en(r, e) {
3025
3025
  try {
3026
- const t = pt();
3026
+ const t = ft();
3027
3027
  t[r] = e;
3028
3028
  const n = Object.entries(t), s = n.length > He ? Object.fromEntries(n.slice(-He)) : t;
3029
3029
  localStorage.setItem(ut, JSON.stringify(s));
@@ -3031,16 +3031,16 @@ function en(r, e) {
3031
3031
  }
3032
3032
  }
3033
3033
  function tn(r) {
3034
- return pt()[r];
3034
+ return ft()[r];
3035
3035
  }
3036
- function ft(r) {
3036
+ function pt(r) {
3037
3037
  return r.type === "single" ? r.fixture.id : r.id;
3038
3038
  }
3039
3039
  function rn(r, e) {
3040
3040
  const t = new Array(r.length);
3041
3041
  let n = ne;
3042
3042
  for (let s = 0; s < r.length; s++) {
3043
- const o = e.get(ft(r[s])) ?? Yr;
3043
+ const o = e.get(pt(r[s])) ?? Yr;
3044
3044
  t[s] = { top: n, height: o }, n += o + Qr;
3045
3045
  }
3046
3046
  return t;
@@ -3138,6 +3138,20 @@ class on extends B({
3138
3138
  get explorerModel() {
3139
3139
  return this.props.model;
3140
3140
  }
3141
+ get currentSessionName() {
3142
+ var s, o;
3143
+ const t = this.explorerModel.daemon;
3144
+ if (!t) return "current";
3145
+ const n = t.sessions.get();
3146
+ return ((s = n.find((i) => i.sourceKind === "current")) == null ? void 0 : s.name) ?? ((o = n[0]) == null ? void 0 : o.name) ?? "current";
3147
+ }
3148
+ get baselineSessionName() {
3149
+ var s, o;
3150
+ const t = this.explorerModel.daemon;
3151
+ if (!t) return "baseline";
3152
+ const n = t.sessions.get();
3153
+ return ((s = n.find((i) => i.sourceKind === "worktree")) == null ? void 0 : s.name) ?? ((o = n[1]) == null ? void 0 : o.name) ?? "baseline";
3154
+ }
3141
3155
  updateForSelection(t) {
3142
3156
  this._currentNodeId !== t && (this._currentNodeId = t, this._restoreScrollPosition());
3143
3157
  }
@@ -3167,7 +3181,7 @@ const an = A(
3167
3181
  if (h.status === "loading")
3168
3182
  return /* @__PURE__ */ a("div", { style: N.emptyState, children: /* @__PURE__ */ a("span", { style: N.emptyText, children: "Loading report..." }) });
3169
3183
  if (h.status === "error")
3170
- return /* @__PURE__ */ a("div", { style: N.emptyState, children: /* @__PURE__ */ p("span", { style: { ...N.emptyText, color: "var(--vscode-errorForeground)" }, children: [
3184
+ return /* @__PURE__ */ a("div", { style: N.emptyState, children: /* @__PURE__ */ f("span", { style: { ...N.emptyText, color: "var(--vscode-errorForeground)" }, children: [
3171
3185
  "Failed to load report: ",
3172
3186
  h.message
3173
3187
  ] }) });
@@ -3176,7 +3190,7 @@ const an = A(
3176
3190
  }
3177
3191
  const d = nn(s);
3178
3192
  return /* @__PURE__ */ a("div", { ref: e.setScrollContainerRef, style: N.scrollContainer, children: /* @__PURE__ */ a("div", { style: { position: "relative", height: d }, children: t.slice(o, i).map((c, h) => {
3179
- const m = o + h, { top: v } = s[m], R = ft(c);
3193
+ const m = o + h, { top: v } = s[m], R = pt(c);
3180
3194
  return /* @__PURE__ */ a(
3181
3195
  "div",
3182
3196
  {
@@ -3189,8 +3203,8 @@ const an = A(
3189
3203
  path: c.path,
3190
3204
  items: c.items,
3191
3205
  daemon: e.explorerModel.daemon,
3192
- baselineSession: "baseline",
3193
- currentSession: "current"
3206
+ baselineSession: e.baselineSessionName,
3207
+ currentSession: e.currentSessionName
3194
3208
  }
3195
3209
  ) : c.type === "report-comparison" && e.explorerModel.reportModel ? /* @__PURE__ */ a(
3196
3210
  Kr,
@@ -3210,7 +3224,7 @@ const an = A(
3210
3224
  { row: u.const() },
3211
3225
  (r, e) => {
3212
3226
  const t = e.row;
3213
- return /* @__PURE__ */ p("div", { children: [
3227
+ return /* @__PURE__ */ f("div", { children: [
3214
3228
  /* @__PURE__ */ a("div", { style: N.variantsHeader, children: /* @__PURE__ */ a("span", { style: N.variantsTitle, children: t.path }) }),
3215
3229
  /* @__PURE__ */ a("div", { style: N.variantsContent, children: t.fixtures.map((n) => /* @__PURE__ */ a(at, { fixture: n, compact: !0 }, n.id)) })
3216
3230
  ] });
@@ -3251,9 +3265,9 @@ const an = A(
3251
3265
  { daemonModel: u.const(), reportModel: u.const() },
3252
3266
  (r, e) => {
3253
3267
  const t = e.leftSidebarVisible.read(r), n = e.rightSidebarVisible.read(r), s = e.isDarkTheme.read(r), o = e.selectedNode.read(r);
3254
- return /* @__PURE__ */ p("div", { className: s ? "vscode-theme default-dark-plus" : "vscode-theme default-light-plus", style: f.container, children: [
3268
+ return /* @__PURE__ */ f("div", { className: s ? "vscode-theme default-dark-plus" : "vscode-theme default-light-plus", style: p.container, children: [
3255
3269
  t && /* @__PURE__ */ a(kr, { model: e }),
3256
- /* @__PURE__ */ p("div", { style: f.centerArea, children: [
3270
+ /* @__PURE__ */ f("div", { style: p.centerArea, children: [
3257
3271
  /* @__PURE__ */ a(Tr, { model: e }),
3258
3272
  /* @__PURE__ */ a(an, { model: e })
3259
3273
  ] }),
@@ -3261,15 +3275,15 @@ const an = A(
3261
3275
  ] });
3262
3276
  }
3263
3277
  );
3264
- var ln = class fe {
3278
+ var ln = class pe {
3265
3279
  constructor(e) {
3266
3280
  this.iterator = e;
3267
3281
  }
3268
3282
  static fromIterable(e) {
3269
- return new fe(e[Symbol.asyncIterator]());
3283
+ return new pe(e[Symbol.asyncIterator]());
3270
3284
  }
3271
3285
  static fromFn(e) {
3272
- return new fe(e());
3286
+ return new pe(e());
3273
3287
  }
3274
3288
  [Symbol.asyncIterator]() {
3275
3289
  return this.iterator;
@@ -3294,7 +3308,7 @@ var ln = class fe {
3294
3308
  });
3295
3309
  }
3296
3310
  };
3297
- function pn(r, e) {
3311
+ function fn(r, e) {
3298
3312
  return new un(async (t, n) => {
3299
3313
  var d;
3300
3314
  const s = await fetch(`${r}/${t}`, {
@@ -3335,7 +3349,7 @@ function pn(r, e) {
3335
3349
  }) : await s.json();
3336
3350
  });
3337
3351
  }
3338
- class fn {
3352
+ class pn {
3339
3353
  constructor(e) {
3340
3354
  l(this, "_sourceTreeIds", w(this, /* @__PURE__ */ new Map()));
3341
3355
  l(this, "_sessions", w(this, []));
@@ -3347,7 +3361,7 @@ class fn {
3347
3361
  l(this, "sourceTreeIds", this._sourceTreeIds);
3348
3362
  /** Observable list of sessions from the daemon */
3349
3363
  l(this, "sessions", this._sessions);
3350
- this.config = e, this.sessionName = e.sessionName, this._client = pn("/__explorer/daemon-api");
3364
+ this.config = e, this.sessionName = e.sessionName, this._client = fn("/__explorer/daemon-api");
3351
3365
  }
3352
3366
  /**
3353
3367
  * Initializes the model: fetches initial session info and starts listening to events.
@@ -3418,7 +3432,7 @@ class fn {
3418
3432
  async _fetchSessionInfos() {
3419
3433
  const e = await this._client.methods.sessions(), t = /* @__PURE__ */ new Map(), n = [];
3420
3434
  for (const s of e)
3421
- t.set(s.name, s.sourceTreeId), n.push({ name: s.name, serverUrl: s.serverUrl });
3435
+ t.set(s.name, s.sourceTreeId), n.push({ name: s.name, serverUrl: s.serverUrl, sourceKind: s.sourceKind });
3422
3436
  this._sourceTreeIds.set(t, void 0), this._sessions.set(n, void 0);
3423
3437
  }
3424
3438
  async _startEventStream() {
@@ -3504,7 +3518,7 @@ class Vn {
3504
3518
  l(this, "_registry", new sr());
3505
3519
  l(this, "_daemonModel");
3506
3520
  l(this, "_reportModel");
3507
- this._populateRegistry(t), this._reportModel = this._initializeReportModel(), this._daemonModel = this._reportModel ? void 0 : this._initializeDaemonModel(), this._root = _t(e), this._root.render(Ct(cn, {
3521
+ this._populateRegistry(t), this._reportModel = this._initializeReportModel(), this._daemonModel = this._reportModel ? void 0 : this._initializeDaemonModel(), this._root = _t(e), this._root.render(St(cn, {
3508
3522
  registry: this._registry,
3509
3523
  daemonModel: this._daemonModel,
3510
3524
  reportModel: this._reportModel
@@ -3519,7 +3533,7 @@ class Vn {
3519
3533
  const e = gn();
3520
3534
  if (!e)
3521
3535
  return;
3522
- const t = new fn(e);
3536
+ const t = new pn(e);
3523
3537
  return t.initialize().catch((n) => {
3524
3538
  console.error("[ExplorerApp] Failed to initialize DaemonModel:", n);
3525
3539
  }), t;
@@ -3556,7 +3570,7 @@ export {
3556
3570
  vr as ChevronRightIcon,
3557
3571
  kn as CliRuntime,
3558
3572
  br as ComponentIcon,
3559
- fn as DaemonModel,
3573
+ pn as DaemonModel,
3560
3574
  cn as Explorer,
3561
3575
  Vn as ExplorerApp,
3562
3576
  gr as ExplorerModel,
@@ -3565,15 +3579,15 @@ export {
3565
3579
  kr as LeftSidebar,
3566
3580
  wr as MoonIcon,
3567
3581
  xr as PanelLeftIcon,
3568
- Cr as PanelRightIcon,
3582
+ Sr as PanelRightIcon,
3569
3583
  mn as ReportModel,
3570
3584
  Dr as RightSidebar,
3571
- Sr as SunIcon,
3585
+ Cr as SunIcon,
3572
3586
  Tr as TitleBar,
3573
3587
  oe as TitleBarButton,
3574
3588
  Or as TreeItem,
3575
3589
  it as TreeView,
3576
- St as VIEWPORT_SIZES,
3590
+ Ct as VIEWPORT_SIZES,
3577
3591
  Dn as asyncRender,
3578
3592
  It as collectComponents,
3579
3593
  Oe as createComponentDefinition,
@@ -3589,14 +3603,14 @@ export {
3589
3603
  ve as isFixtureGroup,
3590
3604
  _e as isFixtureVariants,
3591
3605
  me as isSingleFixture,
3592
- Se as mergeStyles,
3606
+ Ce as mergeStyles,
3593
3607
  wn as parseFixtureExport,
3594
3608
  Tn as parseFixtureGroup,
3595
3609
  In as parseFixtureVariants,
3596
3610
  Rn as parseSingleFixture,
3597
3611
  wt as resolveViewport,
3598
3612
  Te as singleFixtureBrand,
3599
- f as styles,
3613
+ p as styles,
3600
3614
  An as syncRender,
3601
3615
  ot as toExplorerTree
3602
3616
  };