@thestatic-tv/dcl-sdk 2.11.2 → 2.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1323,7 +1323,7 @@ async function signedRequest(url, init = {}) {
1323
1323
  }
1324
1324
 
1325
1325
  // src/ui/guide-ui.tsx
1326
- var import_react_ecs2 = __toESM(require("@dcl/sdk/react-ecs"));
1326
+ var import_react_ecs3 = __toESM(require("@dcl/sdk/react-ecs"));
1327
1327
  var import_math3 = require("@dcl/sdk/math");
1328
1328
  var import_RestrictedActions2 = require("~system/RestrictedActions");
1329
1329
 
@@ -1566,6 +1566,113 @@ function truncateText(text, maxLength) {
1566
1566
  return text.substring(0, maxLength - 3) + "...";
1567
1567
  }
1568
1568
 
1569
+ // src/ui/toolbar-button.ts
1570
+ var import_react_ecs2 = __toESM(require("@dcl/sdk/react-ecs"));
1571
+
1572
+ // src/ui/toolbar.ts
1573
+ var TOOLBAR = { edge: 20, gap: 10, buttonWidth: 100, buttonHeight: 45, bottom: 10 };
1574
+ var COLUMN_SLOTS = 5;
1575
+ var PHONE_EDGE = 0;
1576
+ function platformOf(answer) {
1577
+ const raw = answer?.platform;
1578
+ if (typeof raw !== "string") return "unknown";
1579
+ const p = raw.trim().toLowerCase();
1580
+ return p === "desktop" || p === "mobile" || p === "vr" || p === "web" ? p : "unknown";
1581
+ }
1582
+ function isPhonePlatform(platform) {
1583
+ return platform === "mobile";
1584
+ }
1585
+ var scaled = (value, uiScale) => Math.round(value * uiScale);
1586
+ function rowRight(slot, uiScale = 1) {
1587
+ return TOOLBAR.edge + slot * (scaled(TOOLBAR.buttonWidth, uiScale) + TOOLBAR.gap);
1588
+ }
1589
+ function columnSlot(slot, uiScale = 1) {
1590
+ const h = scaled(TOOLBAR.buttonHeight, uiScale);
1591
+ return {
1592
+ right: PHONE_EDGE,
1593
+ boxHeight: COLUMN_SLOTS * h + (COLUMN_SLOTS - 1) * TOOLBAR.gap,
1594
+ above: Math.max(0, slot) * (h + TOOLBAR.gap)
1595
+ };
1596
+ }
1597
+ function panelRight(phone, desktopRight, uiScale = 1) {
1598
+ return phone ? PHONE_EDGE + scaled(TOOLBAR.buttonWidth, uiScale) + TOOLBAR.gap : desktopRight;
1599
+ }
1600
+ var DESKTOP_CLOSES = { guide: ["admin"], admin: ["guide"] };
1601
+ var GUIDE_PLACE = ["guide", "admin"];
1602
+ function panelsToClose(opened, registered, phone, coversGuide = []) {
1603
+ if (phone) return registered.filter((name) => name !== opened);
1604
+ const closes = [...DESKTOP_CLOSES[opened] ?? []];
1605
+ if (GUIDE_PLACE.includes(opened)) closes.push(...coversGuide);
1606
+ if (coversGuide.includes(opened)) closes.push(...GUIDE_PLACE);
1607
+ return registered.filter((name) => name !== opened && closes.includes(name));
1608
+ }
1609
+ var PanelRules = class {
1610
+ constructor(phone) {
1611
+ this.hides = /* @__PURE__ */ new Map();
1612
+ this.coveringGuide = /* @__PURE__ */ new Set();
1613
+ this.phone = phone;
1614
+ }
1615
+ /** Register (or replace) a panel; its hide runs when another panel opens and the rule says so */
1616
+ register(name, hide, options = {}) {
1617
+ this.hides.set(name, hide);
1618
+ if (options.coversGuide === true) this.coveringGuide.add(name);
1619
+ else this.coveringGuide.delete(name);
1620
+ }
1621
+ /** A panel opened: close the ones the rule names. One failing hide does not stop the rest. */
1622
+ opened(name) {
1623
+ for (const other of panelsToClose(name, [...this.hides.keys()], this.phone(), [...this.coveringGuide])) {
1624
+ try {
1625
+ this.hides.get(other)?.();
1626
+ } catch {
1627
+ }
1628
+ }
1629
+ }
1630
+ get names() {
1631
+ return [...this.hides.keys()];
1632
+ }
1633
+ };
1634
+
1635
+ // src/ui/toolbar-button.ts
1636
+ function toolbarButton(slot, props, phone, uiScale = 1) {
1637
+ const width = Math.round(TOOLBAR.buttonWidth * uiScale);
1638
+ const height = Math.round(TOOLBAR.buttonHeight * uiScale);
1639
+ if (!phone) {
1640
+ return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1641
+ ...props,
1642
+ uiTransform: {
1643
+ positionType: "absolute",
1644
+ position: { right: rowRight(slot, uiScale), bottom: TOOLBAR.bottom },
1645
+ width,
1646
+ height,
1647
+ ...props.uiTransform
1648
+ }
1649
+ });
1650
+ }
1651
+ const place = columnSlot(slot, uiScale);
1652
+ return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1653
+ uiTransform: {
1654
+ positionType: "absolute",
1655
+ position: { right: place.right, top: 0 },
1656
+ width,
1657
+ height: "100%",
1658
+ flexDirection: "column",
1659
+ justifyContent: "center"
1660
+ },
1661
+ children: [
1662
+ import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1663
+ uiTransform: { width, height: place.boxHeight, flexDirection: "column", flexShrink: 0 },
1664
+ children: [
1665
+ import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, { uiTransform: { width, height: place.above, flexShrink: 0 } }),
1666
+ import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1667
+ ...props,
1668
+ uiTransform: { width, height, flexShrink: 0, ...props.uiTransform }
1669
+ })
1670
+ ]
1671
+ })
1672
+ ]
1673
+ });
1674
+ }
1675
+
1569
1676
  // src/ui/guide-ui.tsx
1570
1677
  function withLock(mapped, v, fallback) {
1571
1678
  if (v.locked !== true) return mapped;
@@ -1601,7 +1708,7 @@ var GuideUIModule = class {
1601
1708
  if (this.client.isVisitorBlocked) return null;
1602
1709
  const windowW = UI_DIMENSIONS.guide.width;
1603
1710
  const windowH = UI_DIMENSIONS.guide.height;
1604
- return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1711
+ return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1605
1712
  key: `guide-root-${this.client.uiScale}`,
1606
1713
  uiTransform: {
1607
1714
  width: "100%",
@@ -1613,7 +1720,8 @@ var GuideUIModule = class {
1613
1720
  this.renderToggleButton(),
1614
1721
  // Render panel when visible - Guide positioned relative to Chat's scaled width
1615
1722
  // Guide.right = Chat.right + Chat.scaledWidth + gap (10px)
1616
- this._isVisible ? import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1723
+ // On a phone centered beside the toolbar's column (2.13.0, src/ui/toolbar-panel.ts); elsewhere as here
1724
+ this._isVisible ? this.client.toolbarPanel({
1617
1725
  key: `guide-panel-${this.client.uiScale}`,
1618
1726
  uiTransform: {
1619
1727
  width: windowW,
@@ -1651,7 +1759,7 @@ var GuideUIModule = class {
1651
1759
  */
1652
1760
  show() {
1653
1761
  if (this._isVisible) return;
1654
- this.client.closeOtherPanels("guide");
1762
+ this.client.panelOpened("guide");
1655
1763
  this._isVisible = true;
1656
1764
  this.fetchGuideData().catch(() => {
1657
1765
  });
@@ -1829,7 +1937,7 @@ var GuideUIModule = class {
1829
1937
  const nodesPlaylist = this.featuredPlaylists.find((p) => p.name === "NODES");
1830
1938
  const nodesCount = nodesPlaylist ? nodesPlaylist.videos.filter((v) => v.isCreator).length : 0;
1831
1939
  const displayedPlaylists = this.featuredPlaylists.filter((p) => p.name !== "NODES").slice(0, 6);
1832
- return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1940
+ return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1833
1941
  uiTransform: {
1834
1942
  width: sidebarW,
1835
1943
  minWidth: sidebarW,
@@ -1843,11 +1951,11 @@ var GuideUIModule = class {
1843
1951
  uiBackground: { color: import_math3.Color4.create(0, 0, 0, 0.4) },
1844
1952
  children: [
1845
1953
  // Header & Search
1846
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1954
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1847
1955
  uiTransform: { width: "100%", flexDirection: "column", padding: 10 },
1848
1956
  children: [
1849
1957
  // Title row
1850
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1958
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1851
1959
  uiTransform: {
1852
1960
  width: "100%",
1853
1961
  height: this.s(40),
@@ -1857,7 +1965,7 @@ var GuideUIModule = class {
1857
1965
  },
1858
1966
  children: [
1859
1967
  // Title
1860
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1968
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1861
1969
  uiText: {
1862
1970
  value: "THE STATIC TV",
1863
1971
  fontSize: this.s(UI_DIMENSIONS.guide.sidebar.headerSize),
@@ -1868,7 +1976,7 @@ var GuideUIModule = class {
1868
1976
  ]
1869
1977
  }),
1870
1978
  // Random Signal button
1871
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1979
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1872
1980
  uiTransform: {
1873
1981
  width: "100%",
1874
1982
  height: this.s(40),
@@ -1886,13 +1994,13 @@ var GuideUIModule = class {
1886
1994
  }
1887
1995
  },
1888
1996
  children: [
1889
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1997
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1890
1998
  uiText: { value: ">> RANDOM SIGNAL <<", fontSize: this.s(14), color: THEME.colors.cyan }
1891
1999
  })
1892
2000
  ]
1893
2001
  }),
1894
2002
  // Search input
1895
- import_react_ecs2.default.createElement(import_react_ecs2.Input, {
2003
+ import_react_ecs3.default.createElement(import_react_ecs3.Input, {
1896
2004
  placeholder: "SCAN FREQ...",
1897
2005
  fontSize: this.s(UI_DIMENSIONS.guide.sidebar.fontSize),
1898
2006
  uiTransform: {
@@ -1912,11 +2020,11 @@ var GuideUIModule = class {
1912
2020
  ]
1913
2021
  }),
1914
2022
  // Menu items
1915
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2023
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1916
2024
  uiTransform: { flexGrow: 1, flexDirection: "column", width: "100%", padding: { top: 5 } },
1917
2025
  children: [
1918
2026
  // Section header
1919
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2027
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1920
2028
  uiTransform: { padding: { left: 10, bottom: 8, top: 5 } },
1921
2029
  uiText: { value: "GLOBAL NETWORK", fontSize: this.s(12), color: THEME.colors.cyan }
1922
2030
  }),
@@ -1925,12 +2033,12 @@ var GuideUIModule = class {
1925
2033
  this.renderMenuButton("SIGNALS", signalCount, THEME.colors.white, void 0, "VODS & RECORDINGS"),
1926
2034
  this.renderMenuButton("NODES", nodesCount, THEME.colors.magenta, void 0, "CHANNELS & CREATORS"),
1927
2035
  // Divider
1928
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2036
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1929
2037
  uiTransform: { height: 1, width: "90%", margin: { top: 12, bottom: 8, left: 5 } },
1930
2038
  uiBackground: { color: THEME.colors.panelBorder }
1931
2039
  }),
1932
2040
  // Archives section
1933
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2041
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1934
2042
  uiTransform: { padding: { left: 10, bottom: 8 } },
1935
2043
  uiText: { value: "ARCHIVES", fontSize: this.s(12), color: THEME.colors.cyan }
1936
2044
  }),
@@ -1946,7 +2054,7 @@ var GuideUIModule = class {
1946
2054
  renderMenuButton(label, count, color, badge, subtitle) {
1947
2055
  const isActive = this.activeTab === label;
1948
2056
  const buttonHeight = this.s(UI_DIMENSIONS.guide.sidebar.buttonHeight);
1949
- return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2057
+ return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1950
2058
  key: label,
1951
2059
  uiTransform: {
1952
2060
  width: "100%",
@@ -1965,10 +2073,10 @@ var GuideUIModule = class {
1965
2073
  this.currentPage = 0;
1966
2074
  },
1967
2075
  children: [
1968
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2076
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1969
2077
  uiTransform: { flexDirection: "column", alignItems: "flex-start", justifyContent: "center", gap: 0 },
1970
2078
  children: [
1971
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2079
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1972
2080
  uiTransform: { height: this.s(18) },
1973
2081
  uiText: {
1974
2082
  value: `${label} [${count}]`,
@@ -1978,7 +2086,7 @@ var GuideUIModule = class {
1978
2086
  }
1979
2087
  }),
1980
2088
  ...subtitle ? [
1981
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2089
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1982
2090
  key: "subtitle",
1983
2091
  uiTransform: { height: this.s(12), marginTop: -2 },
1984
2092
  uiText: {
@@ -1992,7 +2100,7 @@ var GuideUIModule = class {
1992
2100
  ]
1993
2101
  }),
1994
2102
  ...badge ? [
1995
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2103
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
1996
2104
  key: "badge",
1997
2105
  uiText: { value: badge, fontSize: this.s(UI_DIMENSIONS.guide.sidebar.fontSize), color: THEME.colors.red }
1998
2106
  })
@@ -2021,7 +2129,7 @@ var GuideUIModule = class {
2021
2129
  const start = this.currentPage * this.itemsPerPage;
2022
2130
  const paged = videosToShow.slice(start, start + this.itemsPerPage);
2023
2131
  const totalPages = Math.ceil(videosToShow.length / this.itemsPerPage);
2024
- return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2132
+ return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2025
2133
  uiTransform: {
2026
2134
  flexGrow: 1,
2027
2135
  flexDirection: "column",
@@ -2032,7 +2140,7 @@ var GuideUIModule = class {
2032
2140
  this.renderCardGrid(paged),
2033
2141
  // Pagination
2034
2142
  ...totalPages > 1 ? [
2035
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2143
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2036
2144
  key: "pagination",
2037
2145
  uiTransform: {
2038
2146
  width: "100%",
@@ -2045,7 +2153,7 @@ var GuideUIModule = class {
2045
2153
  },
2046
2154
  children: [
2047
2155
  ...this.currentPage > 0 ? [
2048
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2156
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2049
2157
  key: "prev",
2050
2158
  uiText: {
2051
2159
  value: "< PREV",
@@ -2055,7 +2163,7 @@ var GuideUIModule = class {
2055
2163
  onMouseDown: () => this.currentPage--
2056
2164
  })
2057
2165
  ] : [],
2058
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2166
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2059
2167
  uiText: {
2060
2168
  value: `${this.currentPage + 1}/${totalPages}`,
2061
2169
  fontSize: this.s(UI_DIMENSIONS.guide.content.bodySize),
@@ -2063,7 +2171,7 @@ var GuideUIModule = class {
2063
2171
  }
2064
2172
  }),
2065
2173
  ...this.currentPage < totalPages - 1 ? [
2066
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2174
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2067
2175
  key: "next",
2068
2176
  uiText: {
2069
2177
  value: "NEXT >",
@@ -2081,7 +2189,7 @@ var GuideUIModule = class {
2081
2189
  }
2082
2190
  renderCardGrid(videos) {
2083
2191
  if (videos.length === 0) {
2084
- return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2192
+ return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2085
2193
  uiTransform: { width: "100%", flexGrow: 1, justifyContent: "center", alignItems: "center" },
2086
2194
  uiText: { value: "NO SIGNAL", fontSize: this.s(UI_DIMENSIONS.guide.content.bodySize), color: THEME.colors.gray }
2087
2195
  });
@@ -2091,7 +2199,7 @@ var GuideUIModule = class {
2091
2199
  rows.push(videos.slice(i, i + 2));
2092
2200
  }
2093
2201
  const cardH = this.s(UI_DIMENSIONS.guide.content.cardHeight);
2094
- return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2202
+ return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2095
2203
  uiTransform: {
2096
2204
  width: "100%",
2097
2205
  flexGrow: 1,
@@ -2100,7 +2208,7 @@ var GuideUIModule = class {
2100
2208
  gap: 8
2101
2209
  },
2102
2210
  children: rows.map(
2103
- (row, rowIndex) => import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2211
+ (row, rowIndex) => import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2104
2212
  key: `row-${rowIndex}`,
2105
2213
  uiTransform: {
2106
2214
  width: "100%",
@@ -2127,7 +2235,7 @@ var GuideUIModule = class {
2127
2235
  } else if (isActive) {
2128
2236
  cardBgColor = import_math3.Color4.create(0, 0.4, 0, 0.5);
2129
2237
  }
2130
- return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2238
+ return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2131
2239
  key: video.id,
2132
2240
  uiTransform: {
2133
2241
  width: cardW,
@@ -2142,7 +2250,7 @@ var GuideUIModule = class {
2142
2250
  uiBackground: { color: cardBgColor },
2143
2251
  children: [
2144
2252
  // Main click area
2145
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2253
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2146
2254
  uiTransform: {
2147
2255
  width: "100%",
2148
2256
  height: "70%",
@@ -2152,7 +2260,7 @@ var GuideUIModule = class {
2152
2260
  },
2153
2261
  onMouseDown: () => this.handleVideoSelect(video),
2154
2262
  children: [
2155
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2263
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2156
2264
  uiText: {
2157
2265
  value: truncateText(video.name || "Unknown", 22),
2158
2266
  fontSize: this.s(UI_DIMENSIONS.guide.content.headerSize),
@@ -2161,7 +2269,7 @@ var GuideUIModule = class {
2161
2269
  }),
2162
2270
  // Status indicator: OFFLINE > CONNECTING > PLAYING > LIVE
2163
2271
  ...isOffline ? [
2164
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2272
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2165
2273
  key: "offline",
2166
2274
  uiText: {
2167
2275
  value: "OFFLINE",
@@ -2170,7 +2278,7 @@ var GuideUIModule = class {
2170
2278
  }
2171
2279
  })
2172
2280
  ] : isConnecting ? [
2173
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2281
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2174
2282
  key: "connecting",
2175
2283
  uiText: {
2176
2284
  value: "CONNECTING...",
@@ -2179,7 +2287,7 @@ var GuideUIModule = class {
2179
2287
  }
2180
2288
  })
2181
2289
  ] : isActive ? [
2182
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2290
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2183
2291
  key: "playing",
2184
2292
  uiText: {
2185
2293
  value: "PLAYING",
@@ -2188,18 +2296,18 @@ var GuideUIModule = class {
2188
2296
  }
2189
2297
  })
2190
2298
  ] : video.isLive ? [
2191
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2299
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2192
2300
  key: "live",
2193
2301
  uiTransform: { padding: { left: 4, right: 4, top: 2, bottom: 2 }, marginTop: 4 },
2194
2302
  uiBackground: { color: THEME.colors.red },
2195
2303
  children: [
2196
- import_react_ecs2.default.createElement(import_react_ecs2.Label, { value: "LIVE", fontSize: this.s(10), color: THEME.colors.white })
2304
+ import_react_ecs3.default.createElement(import_react_ecs3.Label, { value: "LIVE", fontSize: this.s(10), color: THEME.colors.white })
2197
2305
  ]
2198
2306
  })
2199
2307
  ] : [],
2200
2308
  // A locked channel (2026-11-20): its badge, the words a refused pick shows - one line, 12px in the 260px card
2201
2309
  ...video.locked === true ? [
2202
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2310
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2203
2311
  key: "locked",
2204
2312
  uiTransform: { height: this.s(16), marginTop: 4 },
2205
2313
  uiText: { value: LOCKED_LINE, fontSize: this.s(12), color: THEME.colors.yellow }
@@ -2208,7 +2316,7 @@ var GuideUIModule = class {
2208
2316
  ]
2209
2317
  }),
2210
2318
  // Channel link
2211
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2319
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2212
2320
  uiTransform: {
2213
2321
  width: "100%",
2214
2322
  height: "30%",
@@ -2219,7 +2327,7 @@ var GuideUIModule = class {
2219
2327
  uiBackground: { color: import_math3.Color4.create(0, 0, 0, 0.3) },
2220
2328
  onMouseDown: () => this.handleChannelClick(video),
2221
2329
  children: [
2222
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2330
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2223
2331
  uiText: {
2224
2332
  value: "CHANNEL",
2225
2333
  fontSize: this.s(UI_DIMENSIONS.guide.content.bodySize),
@@ -2236,7 +2344,7 @@ var GuideUIModule = class {
2236
2344
  const buttonW = this.s(170);
2237
2345
  const buttonH = this.s(44);
2238
2346
  const bodyH = this.s(UI_DIMENSIONS.guide.content.bodySize * 1.5 * 2);
2239
- return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2347
+ return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2240
2348
  key: "age-choice",
2241
2349
  uiTransform: {
2242
2350
  positionType: "absolute",
@@ -2250,7 +2358,7 @@ var GuideUIModule = class {
2250
2358
  },
2251
2359
  uiBackground: { color: import_math3.Color4.create(0, 0, 0, 0.85) },
2252
2360
  children: [
2253
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2361
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2254
2362
  uiTransform: {
2255
2363
  width: this.s(480),
2256
2364
  flexDirection: "column",
@@ -2261,15 +2369,15 @@ var GuideUIModule = class {
2261
2369
  },
2262
2370
  uiBackground: { color: THEME.colors.panel },
2263
2371
  children: [
2264
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2372
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2265
2373
  uiTransform: { marginBottom: this.s(8) },
2266
2374
  uiText: { value: "MATURE CONTENT", fontSize: this.s(24), color: THEME.colors.red }
2267
2375
  }),
2268
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2376
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2269
2377
  uiTransform: { marginBottom: this.s(12) },
2270
2378
  uiText: { value: truncateText(video.name || "Unknown", 40), fontSize: this.s(16), color: THEME.colors.cyan }
2271
2379
  }),
2272
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2380
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2273
2381
  uiTransform: { width: "100%", minHeight: bodyH, marginBottom: this.s(20) },
2274
2382
  uiText: {
2275
2383
  value: "This channel is for viewers aged 18 and older. Are you 18 or older?",
@@ -2279,21 +2387,21 @@ var GuideUIModule = class {
2279
2387
  textWrap: "wrap"
2280
2388
  }
2281
2389
  }),
2282
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2390
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2283
2391
  uiTransform: { flexDirection: "row", justifyContent: "center", gap: this.s(16) },
2284
2392
  children: [
2285
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2393
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2286
2394
  key: "age-yes",
2287
2395
  uiTransform: { width: buttonW, height: buttonH, justifyContent: "center", alignItems: "center" },
2288
2396
  uiBackground: { color: THEME.colors.red },
2289
2397
  onMouseDown: () => this.answerAge(true),
2290
2398
  children: [
2291
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2399
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2292
2400
  uiText: { value: "YES, I AM 18+", fontSize: this.s(14), color: THEME.colors.white }
2293
2401
  })
2294
2402
  ]
2295
2403
  }),
2296
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2404
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2297
2405
  key: "age-no",
2298
2406
  uiTransform: {
2299
2407
  width: buttonW,
@@ -2306,7 +2414,7 @@ var GuideUIModule = class {
2306
2414
  uiBackground: { color: THEME.colors.buttonBackground },
2307
2415
  onMouseDown: () => this.answerAge(false),
2308
2416
  children: [
2309
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2417
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2310
2418
  uiText: { value: "NO", fontSize: this.s(14), color: THEME.colors.white }
2311
2419
  })
2312
2420
  ]
@@ -2320,7 +2428,7 @@ var GuideUIModule = class {
2320
2428
  }
2321
2429
  renderCloseButton() {
2322
2430
  const closeSize = this.s(UI_DIMENSIONS.closeButton.size);
2323
- return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2431
+ return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2324
2432
  uiTransform: {
2325
2433
  positionType: "absolute",
2326
2434
  position: { top: -5, right: -5 },
@@ -2332,7 +2440,7 @@ var GuideUIModule = class {
2332
2440
  uiBackground: { color: THEME.colors.panel },
2333
2441
  onMouseDown: () => this.hide(),
2334
2442
  children: [
2335
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2443
+ import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2336
2444
  uiText: { value: "X", fontSize: this.s(UI_DIMENSIONS.closeButton.fontSize), color: THEME.colors.red }
2337
2445
  })
2338
2446
  ]
@@ -2341,8 +2449,25 @@ var GuideUIModule = class {
2341
2449
  renderToggleButton() {
2342
2450
  const buttonText = this._isVisible ? "CLOSE" : "GUIDE";
2343
2451
  const buttonColor = this._isVisible ? import_math3.Color4.create(0.2, 0.2, 0.28, 0.9) : import_math3.Color4.create(0, 0.5, 0.5, 0.9);
2452
+ const label = import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2453
+ uiText: {
2454
+ value: buttonText,
2455
+ fontSize: this.s(14),
2456
+ color: THEME.colors.white,
2457
+ textAlign: "middle-center"
2458
+ }
2459
+ });
2460
+ const press = () => this._isVisible ? this.hide() : this.show();
2461
+ if (this.client.isPhone) {
2462
+ return toolbarButton(1, {
2463
+ uiTransform: { justifyContent: "center", alignItems: "center" },
2464
+ uiBackground: { color: buttonColor },
2465
+ onMouseDown: press,
2466
+ children: [label]
2467
+ }, true, this.client.uiScale);
2468
+ }
2344
2469
  const buttonPos = 20 + this.s(100) + 10;
2345
- return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2470
+ return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2346
2471
  uiTransform: {
2347
2472
  positionType: "absolute",
2348
2473
  position: { right: buttonPos, bottom: 10 },
@@ -2352,23 +2477,14 @@ var GuideUIModule = class {
2352
2477
  alignItems: "center"
2353
2478
  },
2354
2479
  uiBackground: { color: buttonColor },
2355
- onMouseDown: () => this._isVisible ? this.hide() : this.show(),
2356
- children: [
2357
- import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
2358
- uiText: {
2359
- value: buttonText,
2360
- fontSize: this.s(14),
2361
- color: THEME.colors.white,
2362
- textAlign: "middle-center"
2363
- }
2364
- })
2365
- ]
2480
+ onMouseDown: press,
2481
+ children: [label]
2366
2482
  });
2367
2483
  }
2368
2484
  };
2369
2485
 
2370
2486
  // src/ui/chat-ui.tsx
2371
- var import_react_ecs3 = __toESM(require("@dcl/sdk/react-ecs"));
2487
+ var import_react_ecs4 = __toESM(require("@dcl/sdk/react-ecs"));
2372
2488
  var import_math4 = require("@dcl/sdk/math");
2373
2489
  var import_SignedFetch3 = require("~system/SignedFetch");
2374
2490
  var import_players = require("@dcl/sdk/players");
@@ -2419,7 +2535,7 @@ var ChatUIModule = class {
2419
2535
  if (this.client.isVisitorBlocked) return null;
2420
2536
  const scaledTheme = scaleChatTheme(DEFAULT_CHAT_THEME, this.client.uiScale);
2421
2537
  const positionStyle = this.getPositionStyle();
2422
- return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2538
+ return import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2423
2539
  uiTransform: {
2424
2540
  width: "100%",
2425
2541
  height: "100%",
@@ -2430,7 +2546,8 @@ var ChatUIModule = class {
2430
2546
  this.renderToggleButton(),
2431
2547
  // Render panel when visible - scaled sizes, fixed position
2432
2548
  // Key includes uiScale to force re-render when scale changes from other panels
2433
- this._isVisible ? import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2549
+ // On a phone centered beside the toolbar's column (2.13.0, src/ui/toolbar-panel.ts); elsewhere as here
2550
+ this._isVisible ? this.client.toolbarPanel({
2434
2551
  key: `chat-panel-${this.client.uiScale}`,
2435
2552
  uiTransform: {
2436
2553
  width: this.s(UI_DIMENSIONS.chat.width),
@@ -2446,7 +2563,7 @@ var ChatUIModule = class {
2446
2563
  this.renderHeader(),
2447
2564
  this.renderChannelButton(scaledTheme),
2448
2565
  this.renderMessagesArea(scaledTheme),
2449
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2566
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2450
2567
  uiTransform: { width: "100%", height: 1, flexShrink: 0 },
2451
2568
  uiBackground: { color: THEME.colors.panelBorder }
2452
2569
  }),
@@ -2479,6 +2596,7 @@ var ChatUIModule = class {
2479
2596
  */
2480
2597
  show() {
2481
2598
  if (this._isVisible) return;
2599
+ this.client.panelOpened("chat");
2482
2600
  this._isVisible = true;
2483
2601
  this._unreadCount = 0;
2484
2602
  this.chatScrollOffset = 0;
@@ -2787,7 +2905,7 @@ var ChatUIModule = class {
2787
2905
  renderChannelButton(theme) {
2788
2906
  const currentChannel = this.channels.find((c) => c.id === this.currentChannelId);
2789
2907
  const displayName = currentChannel?.name || this.currentChannelId;
2790
- return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2908
+ return import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2791
2909
  uiTransform: {
2792
2910
  height: 40,
2793
2911
  width: "100%",
@@ -2802,12 +2920,12 @@ var ChatUIModule = class {
2802
2920
  this.showChannelDropdown = !this.showChannelDropdown;
2803
2921
  },
2804
2922
  children: [
2805
- import_react_ecs3.default.createElement(import_react_ecs3.Label, {
2923
+ import_react_ecs4.default.createElement(import_react_ecs4.Label, {
2806
2924
  value: `// ${truncateText(displayName, 24)}`,
2807
2925
  fontSize: theme.channelButton,
2808
2926
  color: THEME.colors.white
2809
2927
  }),
2810
- import_react_ecs3.default.createElement(import_react_ecs3.Label, {
2928
+ import_react_ecs4.default.createElement(import_react_ecs4.Label, {
2811
2929
  value: this.showChannelDropdown ? "\u25B2" : "\u25BC",
2812
2930
  fontSize: 10,
2813
2931
  color: THEME.colors.cyan
@@ -2836,7 +2954,7 @@ var ChatUIModule = class {
2836
2954
  const visibleMessages = allMessages.slice(startIdx, endIdx);
2837
2955
  const canScrollUp = this.chatScrollOffset < maxOffset;
2838
2956
  const canScrollDown = this.chatScrollOffset > 0;
2839
- return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2957
+ return import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2840
2958
  uiTransform: { flexGrow: 1, width: "100%", flexDirection: "row", overflow: "hidden" },
2841
2959
  children: [
2842
2960
  // Messages - anchored at the bottom, so the newest stays in view now that a row grows with its text
@@ -2844,7 +2962,7 @@ var ChatUIModule = class {
2844
2962
  // past it; now its oldest clips at the top, one scroll up away. The rows keep their height
2845
2963
  // (flexShrink 0 - the protocol's default of 1 squeezes them onto each other) in one column
2846
2964
  // (nowrap - the protocol documents wrap as its default).
2847
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2965
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2848
2966
  uiTransform: {
2849
2967
  flexGrow: 1,
2850
2968
  flexDirection: "column",
@@ -2858,7 +2976,7 @@ var ChatUIModule = class {
2858
2976
  )
2859
2977
  }),
2860
2978
  // Scroll controls
2861
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2979
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2862
2980
  uiTransform: {
2863
2981
  width: 28,
2864
2982
  height: "100%",
@@ -2868,22 +2986,22 @@ var ChatUIModule = class {
2868
2986
  gap: 8
2869
2987
  },
2870
2988
  children: [
2871
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2989
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2872
2990
  uiTransform: { width: 26, height: 36, justifyContent: "center", alignItems: "center" },
2873
2991
  uiBackground: { color: canScrollUp ? THEME.colors.buttonBackground : import_math4.Color4.create(0.1, 0.1, 0.1, 0.3) },
2874
2992
  onMouseDown: () => {
2875
2993
  if (canScrollUp) this.chatScrollOffset += 1;
2876
2994
  },
2877
2995
  children: [
2878
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2996
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2879
2997
  uiText: { value: "\u25B2", fontSize: 14, color: canScrollUp ? THEME.colors.cyan : THEME.colors.gray }
2880
2998
  })
2881
2999
  ]
2882
3000
  }),
2883
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3001
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2884
3002
  uiTransform: { width: 26, height: 24, justifyContent: "center", alignItems: "center" },
2885
3003
  children: [
2886
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3004
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2887
3005
  uiText: {
2888
3006
  value: totalMessages > UI_DIMENSIONS.chat.messagesPerPage ? `${this.chatScrollOffset}` : "-",
2889
3007
  fontSize: 10,
@@ -2892,14 +3010,14 @@ var ChatUIModule = class {
2892
3010
  })
2893
3011
  ]
2894
3012
  }),
2895
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3013
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2896
3014
  uiTransform: { width: 26, height: 36, justifyContent: "center", alignItems: "center" },
2897
3015
  uiBackground: { color: canScrollDown ? THEME.colors.buttonBackground : import_math4.Color4.create(0.1, 0.1, 0.1, 0.3) },
2898
3016
  onMouseDown: () => {
2899
3017
  if (canScrollDown) this.chatScrollOffset -= 1;
2900
3018
  },
2901
3019
  children: [
2902
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3020
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2903
3021
  uiText: { value: "\u25BC", fontSize: 14, color: canScrollDown ? THEME.colors.cyan : THEME.colors.gray }
2904
3022
  })
2905
3023
  ]
@@ -2910,7 +3028,7 @@ var ChatUIModule = class {
2910
3028
  });
2911
3029
  }
2912
3030
  renderSystemMessage(msg, theme) {
2913
- return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3031
+ return import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2914
3032
  key: msg.id,
2915
3033
  uiTransform: { width: "100%", height: 24, marginBottom: 4, flexShrink: 0 },
2916
3034
  uiText: {
@@ -2930,12 +3048,12 @@ var ChatUIModule = class {
2930
3048
  if (displayName.toLowerCase().includes("admin")) accentColor = THEME.colors.magenta;
2931
3049
  else if (isCurrentUser) accentColor = THEME.colors.green;
2932
3050
  const textRoom = this.messageTextRoom(msg.text, theme.chatMessage);
2933
- return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3051
+ return import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2934
3052
  key: msg.id,
2935
3053
  uiTransform: { width: "100%", flexDirection: "column", marginBottom: 16, flexShrink: 0 },
2936
3054
  children: [
2937
3055
  // Header row
2938
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3056
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2939
3057
  uiTransform: {
2940
3058
  width: "100%",
2941
3059
  height: 24,
@@ -2945,23 +3063,23 @@ var ChatUIModule = class {
2945
3063
  marginBottom: 4
2946
3064
  },
2947
3065
  children: [
2948
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3066
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2949
3067
  uiText: { value: displayName, fontSize: theme.chatUsername, color: accentColor, textAlign: "middle-left" }
2950
3068
  }),
2951
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3069
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2952
3070
  uiText: { value: time, fontSize: theme.chatTimestamp, color: THEME.colors.gray, textAlign: "middle-right" }
2953
3071
  })
2954
3072
  ]
2955
3073
  }),
2956
3074
  // Message content
2957
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3075
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2958
3076
  uiTransform: { width: "100%", flexDirection: "row", alignItems: "stretch", paddingLeft: 8 },
2959
3077
  children: [
2960
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3078
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2961
3079
  uiTransform: { width: 3, minHeight: textRoom },
2962
3080
  uiBackground: { color: accentColor }
2963
3081
  }),
2964
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3082
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2965
3083
  uiTransform: { flexGrow: 1, minHeight: textRoom, paddingLeft: 12, paddingTop: 4, paddingBottom: 4 },
2966
3084
  uiText: {
2967
3085
  value: msg.text,
@@ -2977,7 +3095,7 @@ var ChatUIModule = class {
2977
3095
  });
2978
3096
  }
2979
3097
  renderUserInfoBar(theme) {
2980
- return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3098
+ return import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
2981
3099
  uiTransform: {
2982
3100
  width: "100%",
2983
3101
  height: 34,
@@ -2989,12 +3107,12 @@ var ChatUIModule = class {
2989
3107
  },
2990
3108
  uiBackground: { color: import_math4.Color4.create(0.03, 0.03, 0.05, 1) },
2991
3109
  children: [
2992
- import_react_ecs3.default.createElement(import_react_ecs3.Label, {
3110
+ import_react_ecs4.default.createElement(import_react_ecs4.Label, {
2993
3111
  value: `// ${this.currentUsername || "Guest"}`,
2994
3112
  fontSize: theme.userInfo,
2995
3113
  color: THEME.colors.yellow
2996
3114
  }),
2997
- import_react_ecs3.default.createElement(import_react_ecs3.Label, {
3115
+ import_react_ecs4.default.createElement(import_react_ecs4.Label, {
2998
3116
  value: this.isRegisteredUser ? "\u25CF CITIZEN" : "\u25CB GUEST",
2999
3117
  fontSize: theme.authStatus,
3000
3118
  color: this.isRegisteredUser ? THEME.colors.green : THEME.colors.gray
@@ -3005,7 +3123,7 @@ var ChatUIModule = class {
3005
3123
  renderInputArea(theme) {
3006
3124
  const baseUrl = this.getBaseUrl();
3007
3125
  if (!this.isRegisteredUser) {
3008
- return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3126
+ return import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
3009
3127
  uiTransform: {
3010
3128
  height: 75,
3011
3129
  minHeight: 75,
@@ -3019,14 +3137,14 @@ var ChatUIModule = class {
3019
3137
  },
3020
3138
  uiBackground: { color: import_math4.Color4.create(0.08, 0.08, 0.1, 1) },
3021
3139
  children: [
3022
- import_react_ecs3.default.createElement(import_react_ecs3.Label, {
3140
+ import_react_ecs4.default.createElement(import_react_ecs4.Label, {
3023
3141
  value: "ACCESS RESTRICTED: CITIZENS ONLY",
3024
3142
  fontSize: 12,
3025
3143
  color: THEME.colors.red,
3026
3144
  textAlign: "middle-center",
3027
3145
  uiTransform: { marginBottom: 5 }
3028
3146
  }),
3029
- import_react_ecs3.default.createElement(import_react_ecs3.Button, {
3147
+ import_react_ecs4.default.createElement(import_react_ecs4.Button, {
3030
3148
  value: "REGISTER IDENTITY",
3031
3149
  fontSize: 14,
3032
3150
  uiTransform: { width: 200, height: 30 },
@@ -3039,7 +3157,7 @@ var ChatUIModule = class {
3039
3157
  ]
3040
3158
  });
3041
3159
  }
3042
- return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3160
+ return import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
3043
3161
  uiTransform: {
3044
3162
  height: 75,
3045
3163
  minHeight: 75,
@@ -3051,7 +3169,7 @@ var ChatUIModule = class {
3051
3169
  },
3052
3170
  uiBackground: { color: import_math4.Color4.create(0.08, 0.08, 0.1, 1) },
3053
3171
  children: [
3054
- import_react_ecs3.default.createElement(import_react_ecs3.Input, {
3172
+ import_react_ecs4.default.createElement(import_react_ecs4.Input, {
3055
3173
  onChange: (v) => {
3056
3174
  this.inputText = v;
3057
3175
  },
@@ -3064,7 +3182,7 @@ var ChatUIModule = class {
3064
3182
  uiBackground: { color: import_math4.Color4.create(0.12, 0.12, 0.14, 1) },
3065
3183
  uiTransform: { flexGrow: 1, height: "100%", margin: { right: 10 } }
3066
3184
  }),
3067
- import_react_ecs3.default.createElement(import_react_ecs3.Button, {
3185
+ import_react_ecs4.default.createElement(import_react_ecs4.Button, {
3068
3186
  value: this.isSigningIn ? "..." : "SEND",
3069
3187
  onMouseDown: () => this.handleSend(),
3070
3188
  uiTransform: { width: 80, height: "100%" },
@@ -3081,7 +3199,7 @@ var ChatUIModule = class {
3081
3199
  const endIdx = startIdx + UI_DIMENSIONS.chat.channelsPerPage;
3082
3200
  const visibleChannels = this.channels.slice(startIdx, endIdx);
3083
3201
  const totalPages = Math.ceil(this.channels.length / UI_DIMENSIONS.chat.channelsPerPage);
3084
- return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3202
+ return import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
3085
3203
  uiTransform: {
3086
3204
  width: "100%",
3087
3205
  height: 260,
@@ -3092,13 +3210,13 @@ var ChatUIModule = class {
3092
3210
  uiBackground: { color: import_math4.Color4.create(0.08, 0.1, 0.14, 1) },
3093
3211
  children: [
3094
3212
  // Top border
3095
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3213
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
3096
3214
  uiTransform: { width: "100%", height: 2, flexShrink: 0 },
3097
3215
  uiBackground: { color: THEME.colors.cyan }
3098
3216
  }),
3099
3217
  // Channel list
3100
3218
  ...visibleChannels.map(
3101
- (channel) => import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3219
+ (channel) => import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
3102
3220
  key: channel.id,
3103
3221
  uiTransform: {
3104
3222
  height: 38,
@@ -3111,7 +3229,7 @@ var ChatUIModule = class {
3111
3229
  },
3112
3230
  onMouseDown: () => this.switchChannel(channel.id),
3113
3231
  children: [
3114
- import_react_ecs3.default.createElement(import_react_ecs3.Label, {
3232
+ import_react_ecs4.default.createElement(import_react_ecs4.Label, {
3115
3233
  value: channel.id === this.currentChannelId ? `\u25B8 ${channel.name}` : channel.name,
3116
3234
  fontSize: theme.channelDropdown,
3117
3235
  color: channel.id === this.currentChannelId ? THEME.colors.cyan : THEME.colors.gray
@@ -3121,7 +3239,7 @@ var ChatUIModule = class {
3121
3239
  ),
3122
3240
  // Pagination
3123
3241
  ...totalPages > 1 ? [
3124
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3242
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
3125
3243
  key: "pagination",
3126
3244
  uiTransform: {
3127
3245
  width: "100%",
@@ -3134,11 +3252,11 @@ var ChatUIModule = class {
3134
3252
  },
3135
3253
  children: [
3136
3254
  ...this.channelPage > 0 ? [
3137
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3255
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
3138
3256
  key: "prev",
3139
3257
  onMouseDown: () => this.channelPage--,
3140
3258
  children: [
3141
- import_react_ecs3.default.createElement(import_react_ecs3.Label, {
3259
+ import_react_ecs4.default.createElement(import_react_ecs4.Label, {
3142
3260
  value: "<< PREV",
3143
3261
  fontSize: 10,
3144
3262
  color: THEME.colors.cyan
@@ -3146,17 +3264,17 @@ var ChatUIModule = class {
3146
3264
  ]
3147
3265
  })
3148
3266
  ] : [],
3149
- import_react_ecs3.default.createElement(import_react_ecs3.Label, {
3267
+ import_react_ecs4.default.createElement(import_react_ecs4.Label, {
3150
3268
  value: `${this.channelPage + 1}/${totalPages}`,
3151
3269
  fontSize: 10,
3152
3270
  color: THEME.colors.gray
3153
3271
  }),
3154
3272
  ...this.channelPage < totalPages - 1 ? [
3155
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3273
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
3156
3274
  key: "next",
3157
3275
  onMouseDown: () => this.channelPage++,
3158
3276
  children: [
3159
- import_react_ecs3.default.createElement(import_react_ecs3.Label, {
3277
+ import_react_ecs4.default.createElement(import_react_ecs4.Label, {
3160
3278
  value: "NEXT >>",
3161
3279
  fontSize: 10,
3162
3280
  color: THEME.colors.cyan
@@ -3168,7 +3286,7 @@ var ChatUIModule = class {
3168
3286
  })
3169
3287
  ] : [],
3170
3288
  // Bottom border
3171
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3289
+ import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
3172
3290
  uiTransform: { width: "100%", height: 1, flexShrink: 0 },
3173
3291
  uiBackground: { color: THEME.colors.panelBorder }
3174
3292
  })
@@ -3179,7 +3297,24 @@ var ChatUIModule = class {
3179
3297
  const unreadBadge = this._unreadCount > 0 ? ` (${this._unreadCount})` : "";
3180
3298
  const buttonText = this._isVisible ? "CLOSE" : `CHAT${unreadBadge}`;
3181
3299
  const buttonColor = this._isVisible ? import_math4.Color4.create(0.2, 0.2, 0.28, 0.9) : import_math4.Color4.create(0.6, 0, 0.5, 0.9);
3182
- return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3300
+ const label = import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
3301
+ uiText: {
3302
+ value: buttonText,
3303
+ fontSize: this.s(14),
3304
+ color: THEME.colors.white,
3305
+ textAlign: "middle-center"
3306
+ }
3307
+ });
3308
+ const press = () => this._isVisible ? this.hide() : this.show();
3309
+ if (this.client.isPhone) {
3310
+ return toolbarButton(0, {
3311
+ uiTransform: { justifyContent: "center", alignItems: "center" },
3312
+ uiBackground: { color: buttonColor },
3313
+ onMouseDown: press,
3314
+ children: [label]
3315
+ }, true, this.client.uiScale);
3316
+ }
3317
+ return import_react_ecs4.default.createElement(import_react_ecs4.UiEntity, {
3183
3318
  uiTransform: {
3184
3319
  positionType: "absolute",
3185
3320
  position: { right: 20, bottom: 10 },
@@ -3189,29 +3324,20 @@ var ChatUIModule = class {
3189
3324
  alignItems: "center"
3190
3325
  },
3191
3326
  uiBackground: { color: buttonColor },
3192
- onMouseDown: () => this._isVisible ? this.hide() : this.show(),
3193
- children: [
3194
- import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
3195
- uiText: {
3196
- value: buttonText,
3197
- fontSize: this.s(14),
3198
- color: THEME.colors.white,
3199
- textAlign: "middle-center"
3200
- }
3201
- })
3202
- ]
3327
+ onMouseDown: press,
3328
+ children: [label]
3203
3329
  });
3204
3330
  }
3205
3331
  };
3206
3332
 
3207
3333
  // src/ui/admin-panel-ui.tsx
3208
- var import_react_ecs6 = __toESM(require("@dcl/sdk/react-ecs"));
3334
+ var import_react_ecs7 = __toESM(require("@dcl/sdk/react-ecs"));
3209
3335
  var import_math7 = require("@dcl/sdk/math");
3210
3336
  var import_players2 = require("@dcl/sdk/players");
3211
3337
  var import_RestrictedActions6 = require("~system/RestrictedActions");
3212
3338
 
3213
3339
  // src/ui/ui-renderer.tsx
3214
- var import_react_ecs4 = __toESM(require("@dcl/sdk/react-ecs"));
3340
+ var import_react_ecs5 = __toESM(require("@dcl/sdk/react-ecs"));
3215
3341
  var import_ecs3 = require("@dcl/sdk/ecs");
3216
3342
  var notificationText = "";
3217
3343
  var notificationVisible = false;
@@ -3244,8 +3370,8 @@ function NotificationBanner() {
3244
3370
  if (!notificationVisible) return null;
3245
3371
  return (
3246
3372
  // Full-width container to center the notification
3247
- /* @__PURE__ */ import_react_ecs4.default.createElement(
3248
- import_react_ecs4.UiEntity,
3373
+ /* @__PURE__ */ import_react_ecs5.default.createElement(
3374
+ import_react_ecs5.UiEntity,
3249
3375
  {
3250
3376
  uiTransform: {
3251
3377
  positionType: "absolute",
@@ -3255,8 +3381,8 @@ function NotificationBanner() {
3255
3381
  alignItems: "center"
3256
3382
  }
3257
3383
  },
3258
- /* @__PURE__ */ import_react_ecs4.default.createElement(
3259
- import_react_ecs4.UiEntity,
3384
+ /* @__PURE__ */ import_react_ecs5.default.createElement(
3385
+ import_react_ecs5.UiEntity,
3260
3386
  {
3261
3387
  uiTransform: {
3262
3388
  width: N.width,
@@ -3266,8 +3392,8 @@ function NotificationBanner() {
3266
3392
  },
3267
3393
  uiBackground: { color: C.panel }
3268
3394
  },
3269
- /* @__PURE__ */ import_react_ecs4.default.createElement(
3270
- import_react_ecs4.UiEntity,
3395
+ /* @__PURE__ */ import_react_ecs5.default.createElement(
3396
+ import_react_ecs5.UiEntity,
3271
3397
  {
3272
3398
  uiTransform: {
3273
3399
  width: N.borderWidth,
@@ -3276,8 +3402,8 @@ function NotificationBanner() {
3276
3402
  uiBackground: { color: C.cyan }
3277
3403
  }
3278
3404
  ),
3279
- /* @__PURE__ */ import_react_ecs4.default.createElement(
3280
- import_react_ecs4.UiEntity,
3405
+ /* @__PURE__ */ import_react_ecs5.default.createElement(
3406
+ import_react_ecs5.UiEntity,
3281
3407
  {
3282
3408
  uiTransform: {
3283
3409
  flexGrow: 1,
@@ -3287,8 +3413,8 @@ function NotificationBanner() {
3287
3413
  alignItems: "flex-start"
3288
3414
  }
3289
3415
  },
3290
- /* @__PURE__ */ import_react_ecs4.default.createElement(
3291
- import_react_ecs4.Label,
3416
+ /* @__PURE__ */ import_react_ecs5.default.createElement(
3417
+ import_react_ecs5.Label,
3292
3418
  {
3293
3419
  value: notificationText,
3294
3420
  fontSize: N.fontSize,
@@ -3297,8 +3423,8 @@ function NotificationBanner() {
3297
3423
  }
3298
3424
  )
3299
3425
  ),
3300
- /* @__PURE__ */ import_react_ecs4.default.createElement(
3301
- import_react_ecs4.UiEntity,
3426
+ /* @__PURE__ */ import_react_ecs5.default.createElement(
3427
+ import_react_ecs5.UiEntity,
3302
3428
  {
3303
3429
  uiTransform: {
3304
3430
  width: 5,
@@ -3320,8 +3446,8 @@ function createStaticUI(client) {
3320
3446
  const guideComponent = client.guideUI?.getComponent() ?? null;
3321
3447
  const chatComponent = client.chatUI?.getComponent() ?? null;
3322
3448
  const adminComponent = client.adminPanel?.getComponent() ?? null;
3323
- return /* @__PURE__ */ import_react_ecs4.default.createElement(
3324
- import_react_ecs4.UiEntity,
3449
+ return /* @__PURE__ */ import_react_ecs5.default.createElement(
3450
+ import_react_ecs5.UiEntity,
3325
3451
  {
3326
3452
  key: `static-ui-root-${currentScale}`,
3327
3453
  uiTransform: {
@@ -3332,7 +3458,7 @@ function createStaticUI(client) {
3332
3458
  alignItems: "center"
3333
3459
  }
3334
3460
  },
3335
- blocked ? null : /* @__PURE__ */ import_react_ecs4.default.createElement(NotificationBanner, null),
3461
+ blocked ? null : /* @__PURE__ */ import_react_ecs5.default.createElement(NotificationBanner, null),
3336
3462
  guideComponent,
3337
3463
  chatComponent,
3338
3464
  adminComponent
@@ -3341,11 +3467,11 @@ function createStaticUI(client) {
3341
3467
  }
3342
3468
  function setupStaticUI(client) {
3343
3469
  const StaticUI = createStaticUI(client);
3344
- import_react_ecs4.ReactEcsRenderer.setUiRenderer(StaticUI);
3470
+ import_react_ecs5.ReactEcsRenderer.setUiRenderer(StaticUI);
3345
3471
  }
3346
3472
 
3347
3473
  // src/ui/blocked-notice.tsx
3348
- var import_react_ecs5 = __toESM(require("@dcl/sdk/react-ecs"));
3474
+ var import_react_ecs6 = __toESM(require("@dcl/sdk/react-ecs"));
3349
3475
  var import_math5 = require("@dcl/sdk/math");
3350
3476
  var import_RestrictedActions4 = require("~system/RestrictedActions");
3351
3477
  var DEFAULT_SITE_URL = "https://thestatic.tv";
@@ -3372,8 +3498,8 @@ function BlockedNotice(props) {
3372
3498
  const s = (v) => Math.round(v * props.scale);
3373
3499
  const [title, ...body] = lines;
3374
3500
  const action = blockedNoticeAction(props.standing, props.siteUrl || DEFAULT_SITE_URL);
3375
- return /* @__PURE__ */ import_react_ecs5.default.createElement(
3376
- import_react_ecs5.UiEntity,
3501
+ return /* @__PURE__ */ import_react_ecs6.default.createElement(
3502
+ import_react_ecs6.UiEntity,
3377
3503
  {
3378
3504
  uiTransform: {
3379
3505
  width: "100%",
@@ -3383,16 +3509,16 @@ function BlockedNotice(props) {
3383
3509
  alignItems: "center"
3384
3510
  }
3385
3511
  },
3386
- /* @__PURE__ */ import_react_ecs5.default.createElement(
3387
- import_react_ecs5.UiEntity,
3512
+ /* @__PURE__ */ import_react_ecs6.default.createElement(
3513
+ import_react_ecs6.UiEntity,
3388
3514
  {
3389
3515
  uiTransform: { width: s(460), flexDirection: "column", alignItems: "center", padding: s(20) },
3390
3516
  uiBackground: { color: import_math5.Color4.create(0.05, 0.05, 0.08, 0.95) }
3391
3517
  },
3392
- /* @__PURE__ */ import_react_ecs5.default.createElement(import_react_ecs5.Label, { value: title, fontSize: s(22), color: import_math5.Color4.create(0.9, 0.2, 0.2, 1), uiTransform: { height: s(34) } }),
3393
- body.map((line, i) => /* @__PURE__ */ import_react_ecs5.default.createElement(import_react_ecs5.Label, { key: `blocked-line-${i}`, value: line, fontSize: s(16), color: import_math5.Color4.White(), uiTransform: { height: s(26) } })),
3394
- action && /* @__PURE__ */ import_react_ecs5.default.createElement(
3395
- import_react_ecs5.Button,
3518
+ /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: title, fontSize: s(22), color: import_math5.Color4.create(0.9, 0.2, 0.2, 1), uiTransform: { height: s(34) } }),
3519
+ body.map((line, i) => /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { key: `blocked-line-${i}`, value: line, fontSize: s(16), color: import_math5.Color4.White(), uiTransform: { height: s(26) } })),
3520
+ action && /* @__PURE__ */ import_react_ecs6.default.createElement(
3521
+ import_react_ecs6.Button,
3396
3522
  {
3397
3523
  uiTransform: { width: s(220), height: s(36), margin: { top: s(12) } },
3398
3524
  uiBackground: { color: import_math5.Color4.create(0, 0.8, 0.8, 1) },
@@ -3882,16 +4008,16 @@ var AdminPanelUIModule = class {
3882
4008
  this.privateStatus = line;
3883
4009
  } };
3884
4010
  // --- UI Components ---
3885
- this.SectionHead = ({ label, color }) => /* @__PURE__ */ import_react_ecs6.default.createElement(
3886
- import_react_ecs6.UiEntity,
4011
+ this.SectionHead = ({ label, color }) => /* @__PURE__ */ import_react_ecs7.default.createElement(
4012
+ import_react_ecs7.UiEntity,
3887
4013
  {
3888
4014
  uiTransform: { width: "100%", height: this.s(UI_DIMENSIONS.admin.sectionHeadHeight), margin: { bottom: 8 }, padding: { left: 10 }, alignItems: "center" },
3889
4015
  uiBackground: { color: import_math7.Color4.create(color.r * 0.3, color.g * 0.3, color.b * 0.3, 0.5) }
3890
4016
  },
3891
- /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: label, fontSize: this.theme.sectionHead, color })
4017
+ /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: label, fontSize: this.theme.sectionHead, color })
3892
4018
  );
3893
- this.TabBtn = ({ label, tab }) => /* @__PURE__ */ import_react_ecs6.default.createElement(
3894
- import_react_ecs6.Button,
4019
+ this.TabBtn = ({ label, tab }) => /* @__PURE__ */ import_react_ecs7.default.createElement(
4020
+ import_react_ecs7.Button,
3895
4021
  {
3896
4022
  uiTransform: { flexGrow: 1, height: this.s(UI_DIMENSIONS.admin.tabHeight), justifyContent: "center", alignItems: "center" },
3897
4023
  uiBackground: { color: this.activeTab === tab ? C2.tabActive : C2.tabInactive },
@@ -3909,8 +4035,8 @@ var AdminPanelUIModule = class {
3909
4035
  */
3910
4036
  this.ControlsTab = () => {
3911
4037
  const t = this.theme;
3912
- return /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", width: "100%", padding: 10 } }, this.controls.map((control) => /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { key: `control-${control.id}`, uiTransform: { flexDirection: "column", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(this.SectionHead, { label: control.label, color: C2.cyan }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap" } }, control.options.map((option) => this.controlButton(control, option.id, option.label)), control.off === true && this.controlButton(control, "off", "OFF")))), this.controlStatus && /* @__PURE__ */ import_react_ecs6.default.createElement(
3913
- import_react_ecs6.Label,
4038
+ return /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", width: "100%", padding: 10 } }, this.controls.map((control) => /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { key: `control-${control.id}`, uiTransform: { flexDirection: "column", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(this.SectionHead, { label: control.label, color: C2.cyan }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap" } }, control.options.map((option) => this.controlButton(control, option.id, option.label)), control.off === true && this.controlButton(control, "off", "OFF")))), this.controlStatus && /* @__PURE__ */ import_react_ecs7.default.createElement(
4039
+ import_react_ecs7.Label,
3914
4040
  {
3915
4041
  value: this.controlStatus,
3916
4042
  fontSize: t.status,
@@ -3924,8 +4050,8 @@ var AdminPanelUIModule = class {
3924
4050
  this.fetchStreamData();
3925
4051
  }
3926
4052
  const t = this.theme;
3927
- return /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", width: "100%", padding: 10 } }, !this.streamData?.hasChannel && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(this.SectionHead, { label: "LIVE STREAM", color: C2.btn }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "No streaming channel linked", fontSize: t.labelSmall, color: C2.textDim, uiTransform: { margin: { bottom: 8 } } }), this.isOwner && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column" } }, this.streamData?.trialAvailable && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 10 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(
3928
- import_react_ecs6.Button,
4053
+ return /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", width: "100%", padding: 10 } }, !this.streamData?.hasChannel && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(this.SectionHead, { label: "LIVE STREAM", color: C2.btn }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "No streaming channel linked", fontSize: t.labelSmall, color: C2.textDim, uiTransform: { margin: { bottom: 8 } } }), this.isOwner && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column" } }, this.streamData?.trialAvailable && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 10 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(
4054
+ import_react_ecs7.Button,
3929
4055
  {
3930
4056
  uiTransform: { width: this.s(200), height: this.s(UI_DIMENSIONS.admin.buttonHeight), margin: { bottom: 6 } },
3931
4057
  uiBackground: { color: this.trialClaiming ? C2.btn : C2.green },
@@ -3934,8 +4060,8 @@ var AdminPanelUIModule = class {
3934
4060
  color: C2.text,
3935
4061
  onMouseDown: () => this.claimTrial()
3936
4062
  }
3937
- ), this.trialClaimError && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: this.trialClaimError, fontSize: t.status, color: C2.red }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: trialNoteText(this.streamData?.trialSparks), fontSize: t.labelSmall, color: C2.textDim, uiTransform: { margin: { top: 4 } } })), !this.streamData?.trialAvailable && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column" } }, /* @__PURE__ */ import_react_ecs6.default.createElement(
3938
- import_react_ecs6.Button,
4063
+ ), this.trialClaimError && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: this.trialClaimError, fontSize: t.status, color: C2.red }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: trialNoteText(this.streamData?.trialSparks), fontSize: t.labelSmall, color: C2.textDim, uiTransform: { margin: { top: 4 } } })), !this.streamData?.trialAvailable && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column" } }, /* @__PURE__ */ import_react_ecs7.default.createElement(
4064
+ import_react_ecs7.Button,
3939
4065
  {
3940
4066
  uiTransform: { width: this.s(170), height: this.s(UI_DIMENSIONS.admin.buttonHeight), margin: { bottom: 6 } },
3941
4067
  uiBackground: { color: this.channelCreating ? C2.btn : C2.cyan },
@@ -3944,47 +4070,47 @@ var AdminPanelUIModule = class {
3944
4070
  color: C2.text,
3945
4071
  onMouseDown: () => this.createChannel()
3946
4072
  }
3947
- ), this.channelCreateError && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: this.channelCreateError, fontSize: t.status, color: C2.red }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "Relay tier \u2022 $25/mo \u2022 8 hours streaming", fontSize: t.labelSmall, color: C2.textDim, uiTransform: { margin: { top: 4 } } })))), this.streamData?.hasChannel && this.isOwner && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(this.SectionHead, { label: this.streamData.isLive ? "LIVE STREAM" : "STREAM SETTINGS", color: this.streamData.isLive ? C2.red : C2.yellow }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 8 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(
3948
- import_react_ecs6.Label,
4073
+ ), this.channelCreateError && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: this.channelCreateError, fontSize: t.status, color: C2.red }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "Relay tier \u2022 $25/mo \u2022 8 hours streaming", fontSize: t.labelSmall, color: C2.textDim, uiTransform: { margin: { top: 4 } } })))), this.streamData?.hasChannel && this.isOwner && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(this.SectionHead, { label: this.streamData.isLive ? "LIVE STREAM" : "STREAM SETTINGS", color: this.streamData.isLive ? C2.red : C2.yellow }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 8 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(
4074
+ import_react_ecs7.Label,
3949
4075
  {
3950
4076
  value: this.streamData.isLive ? `LIVE \u2022 ${this.streamData.currentViewers || 0} viewers` : "OFFLINE",
3951
4077
  fontSize: t.label,
3952
4078
  color: this.streamData.isLive ? C2.red : C2.textDim
3953
4079
  }
3954
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: ` \u2022 ${this.streamData.tier?.toUpperCase() || "RELAY"}`, fontSize: t.labelSmall, color: C2.cyan }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: ` \u2022 ${this.streamData.sparksBalance || 0} Sparks`, fontSize: t.labelSmall, color: C2.textDim })), /* @__PURE__ */ import_react_ecs6.default.createElement(
3955
- import_react_ecs6.Label,
4080
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: ` \u2022 ${this.streamData.tier?.toUpperCase() || "RELAY"}`, fontSize: t.labelSmall, color: C2.cyan }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: ` \u2022 ${this.streamData.sparksBalance || 0} Sparks`, fontSize: t.labelSmall, color: C2.textDim })), /* @__PURE__ */ import_react_ecs7.default.createElement(
4081
+ import_react_ecs7.Label,
3956
4082
  {
3957
4083
  value: `Channel: ${this.streamData.channelName || this.streamData.channelId}`,
3958
4084
  fontSize: t.labelSmall,
3959
4085
  color: C2.textDim,
3960
4086
  uiTransform: { margin: { bottom: 10 } }
3961
4087
  }
3962
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 6 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "RTMP Server:", fontSize: t.labelSmall, color: C2.textDim }), /* @__PURE__ */ import_react_ecs6.default.createElement(
3963
- import_react_ecs6.Label,
4088
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 6 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "RTMP Server:", fontSize: t.labelSmall, color: C2.textDim }), /* @__PURE__ */ import_react_ecs7.default.createElement(
4089
+ import_react_ecs7.Label,
3964
4090
  {
3965
4091
  value: this.streamData.rtmpUrl || "Loading...",
3966
4092
  fontSize: t.label,
3967
4093
  color: this.streamData.rtmpUrl ? C2.text : C2.textDim,
3968
4094
  uiTransform: { margin: { left: 6 } }
3969
4095
  }
3970
- )), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 6 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "Stream Key:", fontSize: t.labelSmall, color: C2.textDim }), /* @__PURE__ */ import_react_ecs6.default.createElement(
3971
- import_react_ecs6.Label,
4096
+ )), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 6 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "Stream Key:", fontSize: t.labelSmall, color: C2.textDim }), /* @__PURE__ */ import_react_ecs7.default.createElement(
4097
+ import_react_ecs7.Label,
3972
4098
  {
3973
4099
  value: this.streamData.streamKey || "Loading...",
3974
4100
  fontSize: t.label,
3975
4101
  color: this.streamData.streamKey ? C2.cyan : C2.textDim,
3976
4102
  uiTransform: { margin: { left: 6 } }
3977
4103
  }
3978
- )), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 10 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "HLS Playback:", fontSize: t.labelSmall, color: C2.textDim }), /* @__PURE__ */ import_react_ecs6.default.createElement(
3979
- import_react_ecs6.Label,
4104
+ )), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 10 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "HLS Playback:", fontSize: t.labelSmall, color: C2.textDim }), /* @__PURE__ */ import_react_ecs7.default.createElement(
4105
+ import_react_ecs7.Label,
3980
4106
  {
3981
4107
  value: this.streamData.locked === true ? LOCKED_LINE : this.streamData.hlsUrl || "Not available",
3982
4108
  fontSize: t.label,
3983
4109
  color: this.streamData.locked === true ? C2.yellow : this.streamData.hlsUrl ? C2.green : C2.textDim,
3984
4110
  uiTransform: { margin: { left: 6 } }
3985
4111
  }
3986
- )), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap", margin: { bottom: 6 } } }, !this.streamData.isLive && /* @__PURE__ */ import_react_ecs6.default.createElement(
3987
- import_react_ecs6.Button,
4112
+ )), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap", margin: { bottom: 6 } } }, !this.streamData.isLive && /* @__PURE__ */ import_react_ecs7.default.createElement(
4113
+ import_react_ecs7.Button,
3988
4114
  {
3989
4115
  uiTransform: { width: this.s(110), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
3990
4116
  uiBackground: { color: this.streamControlling ? C2.btn : C2.green },
@@ -3993,8 +4119,8 @@ var AdminPanelUIModule = class {
3993
4119
  color: C2.text,
3994
4120
  onMouseDown: () => this.startStream()
3995
4121
  }
3996
- ), this.streamData.isLive && /* @__PURE__ */ import_react_ecs6.default.createElement(
3997
- import_react_ecs6.Button,
4122
+ ), this.streamData.isLive && /* @__PURE__ */ import_react_ecs7.default.createElement(
4123
+ import_react_ecs7.Button,
3998
4124
  {
3999
4125
  uiTransform: { width: this.s(110), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
4000
4126
  uiBackground: { color: this.streamControlling ? C2.btn : C2.red },
@@ -4003,8 +4129,8 @@ var AdminPanelUIModule = class {
4003
4129
  color: C2.text,
4004
4130
  onMouseDown: () => this.stopStream()
4005
4131
  }
4006
- ), this.streamData.isLive && (this.streamData.hlsUrl || this.streamData.locked === true) && /* @__PURE__ */ import_react_ecs6.default.createElement(
4007
- import_react_ecs6.Button,
4132
+ ), this.streamData.isLive && (this.streamData.hlsUrl || this.streamData.locked === true) && /* @__PURE__ */ import_react_ecs7.default.createElement(
4133
+ import_react_ecs7.Button,
4008
4134
  {
4009
4135
  uiTransform: { width: this.s(100), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
4010
4136
  uiBackground: { color: C2.cyan },
@@ -4013,8 +4139,8 @@ var AdminPanelUIModule = class {
4013
4139
  color: C2.text,
4014
4140
  onMouseDown: () => this.playStreamOnScreen()
4015
4141
  }
4016
- )), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap", margin: { bottom: 6 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(
4017
- import_react_ecs6.Button,
4142
+ )), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap", margin: { bottom: 6 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(
4143
+ import_react_ecs7.Button,
4018
4144
  {
4019
4145
  uiTransform: { width: this.s(80), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
4020
4146
  uiBackground: { color: C2.btn },
@@ -4023,8 +4149,8 @@ var AdminPanelUIModule = class {
4023
4149
  color: C2.text,
4024
4150
  onMouseDown: () => this.refreshStreamStatus()
4025
4151
  }
4026
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(
4027
- import_react_ecs6.Button,
4152
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(
4153
+ import_react_ecs7.Button,
4028
4154
  {
4029
4155
  uiTransform: { width: this.s(95), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
4030
4156
  uiBackground: { color: this.keyRotating ? C2.btn : C2.yellow },
@@ -4033,8 +4159,8 @@ var AdminPanelUIModule = class {
4033
4159
  color: C2.text,
4034
4160
  onMouseDown: () => this.rotateStreamKey()
4035
4161
  }
4036
- ), !this.streamData.isLive && !this.channelDeleteLook && /* @__PURE__ */ import_react_ecs6.default.createElement(
4037
- import_react_ecs6.Button,
4162
+ ), !this.streamData.isLive && !this.channelDeleteLook && /* @__PURE__ */ import_react_ecs7.default.createElement(
4163
+ import_react_ecs7.Button,
4038
4164
  {
4039
4165
  uiTransform: { width: this.s(70), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
4040
4166
  uiBackground: { color: this.channelDeleting ? C2.btn : C2.red },
@@ -4043,8 +4169,8 @@ var AdminPanelUIModule = class {
4043
4169
  color: C2.text,
4044
4170
  onMouseDown: () => this.deleteChannel()
4045
4171
  }
4046
- )), !this.streamData.isLive && this.channelDeleteLook && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 6 }, padding: 6 }, uiBackground: { color: C2.section } }, /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "DELETE THIS CHANNEL?", fontSize: t.labelSmall, color: C2.red, uiTransform: { height: this.s(18) } }), channelDeleteLines(this.channelDeleteLook, this.channelDeleteChanged).map((line, i) => /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { key: `delete-line-${i}`, value: line, fontSize: t.status, color: line.startsWith("WHAT") ? C2.yellow : C2.text, uiTransform: { height: this.s(18) } })), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", margin: { top: 4 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(
4047
- import_react_ecs6.Button,
4172
+ )), !this.streamData.isLive && this.channelDeleteLook && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 6 }, padding: 6 }, uiBackground: { color: C2.section } }, /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "DELETE THIS CHANNEL?", fontSize: t.labelSmall, color: C2.red, uiTransform: { height: this.s(18) } }), channelDeleteLines(this.channelDeleteLook, this.channelDeleteChanged).map((line, i) => /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { key: `delete-line-${i}`, value: line, fontSize: t.status, color: line.startsWith("WHAT") ? C2.yellow : C2.text, uiTransform: { height: this.s(18) } })), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", margin: { top: 4 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(
4173
+ import_react_ecs7.Button,
4048
4174
  {
4049
4175
  uiTransform: { width: this.s(120), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
4050
4176
  uiBackground: { color: this.channelDeleting ? C2.btn : C2.red },
@@ -4053,8 +4179,8 @@ var AdminPanelUIModule = class {
4053
4179
  color: C2.text,
4054
4180
  onMouseDown: () => this.confirmDeleteChannel()
4055
4181
  }
4056
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(
4057
- import_react_ecs6.Button,
4182
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(
4183
+ import_react_ecs7.Button,
4058
4184
  {
4059
4185
  uiTransform: { width: this.s(70), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
4060
4186
  uiBackground: { color: C2.btn },
@@ -4063,8 +4189,8 @@ var AdminPanelUIModule = class {
4063
4189
  color: C2.text,
4064
4190
  onMouseDown: () => this.cancelDeleteChannel()
4065
4191
  }
4066
- ))), this.streamControlStatus === "started" && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "Stream started - begin broadcasting in OBS", fontSize: t.status, color: C2.green }), this.streamControlStatus === "stopped" && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "Stream stopped", fontSize: t.status, color: C2.textDim }), this.keyRotateStatus === "success" && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "Key rotated! Update OBS", fontSize: t.status, color: C2.green }), this.keyRotateStatus === "error" && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "Failed to rotate key", fontSize: t.status, color: C2.red }), this.channelDeleteError && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: this.channelDeleteError, fontSize: t.status, color: C2.red }), this.streamControlStatus === "error" && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "Stream control failed", fontSize: t.status, color: C2.red })), /* @__PURE__ */ import_react_ecs6.default.createElement(this.SectionHead, { label: "PLAY NOW", color: C2.orange }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(
4067
- import_react_ecs6.Input,
4192
+ ))), this.streamControlStatus === "started" && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "Stream started - begin broadcasting in OBS", fontSize: t.status, color: C2.green }), this.streamControlStatus === "stopped" && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "Stream stopped", fontSize: t.status, color: C2.textDim }), this.keyRotateStatus === "success" && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "Key rotated! Update OBS", fontSize: t.status, color: C2.green }), this.keyRotateStatus === "error" && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "Failed to rotate key", fontSize: t.status, color: C2.red }), this.channelDeleteError && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: this.channelDeleteError, fontSize: t.status, color: C2.red }), this.streamControlStatus === "error" && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "Stream control failed", fontSize: t.status, color: C2.red })), /* @__PURE__ */ import_react_ecs7.default.createElement(this.SectionHead, { label: "PLAY NOW", color: C2.orange }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(
4193
+ import_react_ecs7.Input,
4068
4194
  {
4069
4195
  uiTransform: { width: this.s(230), height: this.s(UI_DIMENSIONS.admin.inputHeight) },
4070
4196
  uiBackground: { color: import_math7.Color4.create(0.15, 0.15, 0.2, 1) },
@@ -4077,8 +4203,8 @@ var AdminPanelUIModule = class {
4077
4203
  this.customVideoUrl = val;
4078
4204
  }
4079
4205
  }
4080
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(
4081
- import_react_ecs6.Button,
4206
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(
4207
+ import_react_ecs7.Button,
4082
4208
  {
4083
4209
  uiTransform: { width: this.s(75), height: this.s(UI_DIMENSIONS.admin.inputHeight), margin: { left: 8 } },
4084
4210
  uiBackground: { color: C2.green },
@@ -4087,8 +4213,8 @@ var AdminPanelUIModule = class {
4087
4213
  color: C2.text,
4088
4214
  onMouseDown: () => this.playNow()
4089
4215
  }
4090
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(
4091
- import_react_ecs6.Button,
4216
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(
4217
+ import_react_ecs7.Button,
4092
4218
  {
4093
4219
  uiTransform: { width: this.s(65), height: this.s(UI_DIMENSIONS.admin.inputHeight), margin: { left: 6 } },
4094
4220
  uiBackground: { color: C2.btn },
@@ -4099,16 +4225,16 @@ var AdminPanelUIModule = class {
4099
4225
  this.customVideoUrl = "";
4100
4226
  }
4101
4227
  }
4102
- )), this.videoStatus && /* @__PURE__ */ import_react_ecs6.default.createElement(
4103
- import_react_ecs6.Label,
4228
+ )), this.videoStatus && /* @__PURE__ */ import_react_ecs7.default.createElement(
4229
+ import_react_ecs7.Label,
4104
4230
  {
4105
4231
  value: this.videoStatus,
4106
4232
  fontSize: t.status,
4107
4233
  color: this.videoStatus.startsWith("Not sent") || this.videoStatus === LOCKED_LINE || this.videoStatus === UNAVAILABLE_LINE ? C2.red : C2.green,
4108
4234
  uiTransform: { height: this.s(18), margin: { bottom: 6 } }
4109
4235
  }
4110
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(this.SectionHead, { label: "PLAYBACK", color: C2.green }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(
4111
- import_react_ecs6.Button,
4236
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(this.SectionHead, { label: "PLAYBACK", color: C2.green }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(
4237
+ import_react_ecs7.Button,
4112
4238
  {
4113
4239
  uiTransform: { width: this.s(75), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
4114
4240
  uiBackground: { color: C2.green },
@@ -4117,8 +4243,8 @@ var AdminPanelUIModule = class {
4117
4243
  color: C2.text,
4118
4244
  onMouseDown: () => this.playbackPlay()
4119
4245
  }
4120
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(
4121
- import_react_ecs6.Button,
4246
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(
4247
+ import_react_ecs7.Button,
4122
4248
  {
4123
4249
  uiTransform: { width: this.s(75), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
4124
4250
  uiBackground: { color: C2.red },
@@ -4127,8 +4253,8 @@ var AdminPanelUIModule = class {
4127
4253
  color: C2.text,
4128
4254
  onMouseDown: () => this.playbackStop()
4129
4255
  }
4130
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(
4131
- import_react_ecs6.Button,
4256
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(
4257
+ import_react_ecs7.Button,
4132
4258
  {
4133
4259
  uiTransform: { width: this.s(100), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
4134
4260
  uiBackground: { color: C2.btn },
@@ -4137,8 +4263,8 @@ var AdminPanelUIModule = class {
4137
4263
  color: C2.text,
4138
4264
  onMouseDown: () => this.resetDefault()
4139
4265
  }
4140
- )), /* @__PURE__ */ import_react_ecs6.default.createElement(this.SectionHead, { label: "VIDEO SLOTS", color: C2.cyan }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap", margin: { bottom: 10 } } }, ["slot1", "slot2", "slot3", "slot4", "slot5"].map((slot, i) => /* @__PURE__ */ import_react_ecs6.default.createElement(
4141
- import_react_ecs6.Button,
4266
+ )), /* @__PURE__ */ import_react_ecs7.default.createElement(this.SectionHead, { label: "VIDEO SLOTS", color: C2.cyan }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap", margin: { bottom: 10 } } }, ["slot1", "slot2", "slot3", "slot4", "slot5"].map((slot, i) => /* @__PURE__ */ import_react_ecs7.default.createElement(
4267
+ import_react_ecs7.Button,
4142
4268
  {
4143
4269
  key: `play-${slot}`,
4144
4270
  uiTransform: { width: this.s(70), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
@@ -4148,8 +4274,8 @@ var AdminPanelUIModule = class {
4148
4274
  color: C2.text,
4149
4275
  onMouseDown: () => this.pressSlot(slot)
4150
4276
  }
4151
- ))), /* @__PURE__ */ import_react_ecs6.default.createElement(
4152
- import_react_ecs6.Button,
4277
+ ))), /* @__PURE__ */ import_react_ecs7.default.createElement(
4278
+ import_react_ecs7.Button,
4153
4279
  {
4154
4280
  uiTransform: { height: this.s(24) },
4155
4281
  uiBackground: { color: import_math7.Color4.create(0, 0, 0, 0) },
@@ -4162,16 +4288,16 @@ var AdminPanelUIModule = class {
4162
4288
  };
4163
4289
  this.ModTab = () => {
4164
4290
  const t = this.theme;
4165
- return /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", width: "100%", padding: 10 } }, this.modStatus === "loading" && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "Loading...", fontSize: t.status, color: C2.yellow }), this.modStatus === "saved" && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "Saved!", fontSize: t.status, color: C2.green }), this.modStatus === "error" && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "Error - check input", fontSize: t.status, color: C2.red }), this.kickStatus && /* @__PURE__ */ import_react_ecs6.default.createElement(
4166
- import_react_ecs6.Label,
4291
+ return /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", width: "100%", padding: 10 } }, this.modStatus === "loading" && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "Loading...", fontSize: t.status, color: C2.yellow }), this.modStatus === "saved" && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "Saved!", fontSize: t.status, color: C2.green }), this.modStatus === "error" && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "Error - check input", fontSize: t.status, color: C2.red }), this.kickStatus && /* @__PURE__ */ import_react_ecs7.default.createElement(
4292
+ import_react_ecs7.Label,
4167
4293
  {
4168
4294
  value: this.kickStatus,
4169
4295
  fontSize: t.status,
4170
4296
  color: this.kickStatus.startsWith("Kick not sent") ? C2.red : C2.green,
4171
4297
  uiTransform: { height: this.s(18) }
4172
4298
  }
4173
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(this.SectionHead, { label: "BROADCAST", color: C2.orange }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(
4174
- import_react_ecs6.Input,
4299
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(this.SectionHead, { label: "BROADCAST", color: C2.orange }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(
4300
+ import_react_ecs7.Input,
4175
4301
  {
4176
4302
  uiTransform: { width: this.s(230), height: this.s(UI_DIMENSIONS.admin.inputHeight) },
4177
4303
  uiBackground: { color: import_math7.Color4.create(0.15, 0.15, 0.2, 1) },
@@ -4184,8 +4310,8 @@ var AdminPanelUIModule = class {
4184
4310
  this.broadcastText = val;
4185
4311
  }
4186
4312
  }
4187
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(
4188
- import_react_ecs6.Button,
4313
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(
4314
+ import_react_ecs7.Button,
4189
4315
  {
4190
4316
  uiTransform: { width: this.s(65), height: this.s(UI_DIMENSIONS.admin.inputHeight), margin: { left: 8 } },
4191
4317
  uiBackground: { color: C2.orange },
@@ -4194,16 +4320,16 @@ var AdminPanelUIModule = class {
4194
4320
  color: C2.text,
4195
4321
  onMouseDown: () => this.sendBroadcast()
4196
4322
  }
4197
- )), this.broadcastStatus && /* @__PURE__ */ import_react_ecs6.default.createElement(
4198
- import_react_ecs6.Label,
4323
+ )), this.broadcastStatus && /* @__PURE__ */ import_react_ecs7.default.createElement(
4324
+ import_react_ecs7.Label,
4199
4325
  {
4200
4326
  value: this.broadcastStatus,
4201
4327
  fontSize: t.status,
4202
4328
  color: this.broadcastStatus.startsWith("Not sent") ? C2.red : C2.green,
4203
4329
  uiTransform: { height: this.s(18), margin: { bottom: 6 } }
4204
4330
  }
4205
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(this.SectionHead, { label: "CHAOS MODE", color: C2.red }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(
4206
- import_react_ecs6.Button,
4331
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(this.SectionHead, { label: "CHAOS MODE", color: C2.red }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(
4332
+ import_react_ecs7.Button,
4207
4333
  {
4208
4334
  uiTransform: { width: this.s(130), height: this.s(UI_DIMENSIONS.admin.buttonHeight), margin: 4 },
4209
4335
  uiBackground: { color: C2.red },
@@ -4212,8 +4338,8 @@ var AdminPanelUIModule = class {
4212
4338
  color: C2.text,
4213
4339
  onMouseDown: () => this.kickAll()
4214
4340
  }
4215
- )), this.venue && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(this.SectionHead, { label: "PRIVATE MODE", color: C2.yellow }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "While ON, only citizens get in", fontSize: t.labelSmall, color: C2.textDim, uiTransform: { height: this.s(18), margin: { bottom: 4 } } }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap" } }, [true, false].map((on) => /* @__PURE__ */ import_react_ecs6.default.createElement(
4216
- import_react_ecs6.Button,
4341
+ )), this.venue && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(this.SectionHead, { label: "PRIVATE MODE", color: C2.yellow }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "While ON, only citizens get in", fontSize: t.labelSmall, color: C2.textDim, uiTransform: { height: this.s(18), margin: { bottom: 4 } } }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", flexWrap: "wrap" } }, [true, false].map((on) => /* @__PURE__ */ import_react_ecs7.default.createElement(
4342
+ import_react_ecs7.Button,
4217
4343
  {
4218
4344
  key: `private-${on ? "on" : "off"}`,
4219
4345
  uiTransform: { width: this.s(70), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4 },
@@ -4223,22 +4349,22 @@ var AdminPanelUIModule = class {
4223
4349
  color: this.privateModeOn === on ? import_math7.Color4.Black() : C2.text,
4224
4350
  onMouseDown: () => this.setPrivateMode(on)
4225
4351
  }
4226
- ))), this.privateStatus && /* @__PURE__ */ import_react_ecs6.default.createElement(
4227
- import_react_ecs6.Label,
4352
+ ))), this.privateStatus && /* @__PURE__ */ import_react_ecs7.default.createElement(
4353
+ import_react_ecs7.Label,
4228
4354
  {
4229
4355
  value: this.privateStatus,
4230
4356
  fontSize: t.status,
4231
4357
  color: this.privateStatus.startsWith("Not sent") ? C2.red : C2.green,
4232
4358
  uiTransform: { height: this.s(18) }
4233
4359
  }
4234
- )), /* @__PURE__ */ import_react_ecs6.default.createElement(this.SectionHead, { label: "SCENE ADMINS", color: C2.purple }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 6 } } }, this.sceneAdmins.length === 0 && this.modStatus !== "loading" && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "No scene admins", fontSize: t.labelSmall, color: C2.textDim }), this.sceneAdmins.map((wallet, i) => /* @__PURE__ */ import_react_ecs6.default.createElement(
4235
- import_react_ecs6.UiEntity,
4360
+ )), /* @__PURE__ */ import_react_ecs7.default.createElement(this.SectionHead, { label: "SCENE ADMINS", color: C2.purple }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 6 } } }, this.sceneAdmins.length === 0 && this.modStatus !== "loading" && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "No scene admins", fontSize: t.labelSmall, color: C2.textDim }), this.sceneAdmins.map((wallet, i) => /* @__PURE__ */ import_react_ecs7.default.createElement(
4361
+ import_react_ecs7.UiEntity,
4236
4362
  {
4237
4363
  key: `admin-${i}`,
4238
4364
  uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 5 }, width: "100%" }
4239
4365
  },
4240
- /* @__PURE__ */ import_react_ecs6.default.createElement(
4241
- import_react_ecs6.Label,
4366
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
4367
+ import_react_ecs7.Label,
4242
4368
  {
4243
4369
  value: `${wallet.slice(0, 6)}...${wallet.slice(-4)}`,
4244
4370
  fontSize: t.label,
@@ -4246,8 +4372,8 @@ var AdminPanelUIModule = class {
4246
4372
  uiTransform: { width: this.s(130) }
4247
4373
  }
4248
4374
  ),
4249
- /* @__PURE__ */ import_react_ecs6.default.createElement(
4250
- import_react_ecs6.Button,
4375
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
4376
+ import_react_ecs7.Button,
4251
4377
  {
4252
4378
  uiTransform: { width: this.s(70), height: this.s(28), margin: { left: 8 } },
4253
4379
  uiBackground: { color: C2.btn },
@@ -4257,8 +4383,8 @@ var AdminPanelUIModule = class {
4257
4383
  onMouseDown: () => this.removeSceneAdmin(wallet)
4258
4384
  }
4259
4385
  )
4260
- ))), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(
4261
- import_react_ecs6.Input,
4386
+ ))), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 14 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(
4387
+ import_react_ecs7.Input,
4262
4388
  {
4263
4389
  uiTransform: { width: this.s(230), height: this.s(UI_DIMENSIONS.admin.inputHeight) },
4264
4390
  uiBackground: { color: import_math7.Color4.create(0.15, 0.15, 0.2, 1) },
@@ -4271,8 +4397,8 @@ var AdminPanelUIModule = class {
4271
4397
  this.newAdminWallet = val;
4272
4398
  }
4273
4399
  }
4274
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(
4275
- import_react_ecs6.Button,
4400
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(
4401
+ import_react_ecs7.Button,
4276
4402
  {
4277
4403
  uiTransform: { width: this.s(60), height: this.s(UI_DIMENSIONS.admin.inputHeight), margin: { left: 8 } },
4278
4404
  uiBackground: { color: C2.purple },
@@ -4283,14 +4409,14 @@ var AdminPanelUIModule = class {
4283
4409
  if (this.newAdminWallet) this.addSceneAdmin(this.newAdminWallet);
4284
4410
  }
4285
4411
  }
4286
- )), /* @__PURE__ */ import_react_ecs6.default.createElement(this.SectionHead, { label: "BANNED WALLETS", color: C2.red }), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 6 } } }, this.bannedWallets.length === 0 && this.modStatus !== "loading" && /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: "No banned wallets", fontSize: t.labelSmall, color: C2.textDim }), this.bannedWallets.map((wallet, i) => /* @__PURE__ */ import_react_ecs6.default.createElement(
4287
- import_react_ecs6.UiEntity,
4412
+ )), /* @__PURE__ */ import_react_ecs7.default.createElement(this.SectionHead, { label: "BANNED WALLETS", color: C2.red }), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "column", margin: { bottom: 6 } } }, this.bannedWallets.length === 0 && this.modStatus !== "loading" && /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: "No banned wallets", fontSize: t.labelSmall, color: C2.textDim }), this.bannedWallets.map((wallet, i) => /* @__PURE__ */ import_react_ecs7.default.createElement(
4413
+ import_react_ecs7.UiEntity,
4288
4414
  {
4289
4415
  key: `ban-${i}`,
4290
4416
  uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 5 }, width: "100%" }
4291
4417
  },
4292
- /* @__PURE__ */ import_react_ecs6.default.createElement(
4293
- import_react_ecs6.Label,
4418
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
4419
+ import_react_ecs7.Label,
4294
4420
  {
4295
4421
  value: `${wallet.slice(0, 6)}...${wallet.slice(-4)}`,
4296
4422
  fontSize: t.label,
@@ -4298,8 +4424,8 @@ var AdminPanelUIModule = class {
4298
4424
  uiTransform: { width: this.s(130) }
4299
4425
  }
4300
4426
  ),
4301
- /* @__PURE__ */ import_react_ecs6.default.createElement(
4302
- import_react_ecs6.Button,
4427
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
4428
+ import_react_ecs7.Button,
4303
4429
  {
4304
4430
  uiTransform: { width: this.s(70), height: this.s(28), margin: { left: 8 } },
4305
4431
  uiBackground: { color: C2.green },
@@ -4309,8 +4435,8 @@ var AdminPanelUIModule = class {
4309
4435
  onMouseDown: () => this.unbanWallet(wallet)
4310
4436
  }
4311
4437
  )
4312
- ))), /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 10 } } }, /* @__PURE__ */ import_react_ecs6.default.createElement(
4313
- import_react_ecs6.Input,
4438
+ ))), /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { flexDirection: "row", alignItems: "center", margin: { bottom: 10 } } }, /* @__PURE__ */ import_react_ecs7.default.createElement(
4439
+ import_react_ecs7.Input,
4314
4440
  {
4315
4441
  uiTransform: { width: this.s(230), height: this.s(UI_DIMENSIONS.admin.inputHeight) },
4316
4442
  uiBackground: { color: import_math7.Color4.create(0.15, 0.15, 0.2, 1) },
@@ -4323,8 +4449,8 @@ var AdminPanelUIModule = class {
4323
4449
  this.newBanWallet = val;
4324
4450
  }
4325
4451
  }
4326
- ), /* @__PURE__ */ import_react_ecs6.default.createElement(
4327
- import_react_ecs6.Button,
4452
+ ), /* @__PURE__ */ import_react_ecs7.default.createElement(
4453
+ import_react_ecs7.Button,
4328
4454
  {
4329
4455
  uiTransform: { width: this.s(60), height: this.s(UI_DIMENSIONS.admin.inputHeight), margin: { left: 8 } },
4330
4456
  uiBackground: { color: C2.red },
@@ -4335,8 +4461,8 @@ var AdminPanelUIModule = class {
4335
4461
  if (this.newBanWallet) this.banWallet(this.newBanWallet);
4336
4462
  }
4337
4463
  }
4338
- )), /* @__PURE__ */ import_react_ecs6.default.createElement(
4339
- import_react_ecs6.Button,
4464
+ )), /* @__PURE__ */ import_react_ecs7.default.createElement(
4465
+ import_react_ecs7.Button,
4340
4466
  {
4341
4467
  uiTransform: { height: this.s(24) },
4342
4468
  uiBackground: { color: import_math7.Color4.create(0, 0, 0, 0) },
@@ -4382,8 +4508,8 @@ var AdminPanelUIModule = class {
4382
4508
  if (!tabs.find((tab) => tab.id === this.activeTab) && tabs.length > 0) {
4383
4509
  this.activeTab = tabs[0].id;
4384
4510
  }
4385
- return /* @__PURE__ */ import_react_ecs6.default.createElement(
4386
- import_react_ecs6.UiEntity,
4511
+ return /* @__PURE__ */ import_react_ecs7.default.createElement(
4512
+ import_react_ecs7.UiEntity,
4387
4513
  {
4388
4514
  uiTransform: {
4389
4515
  width: "100%",
@@ -4392,106 +4518,99 @@ var AdminPanelUIModule = class {
4392
4518
  }
4393
4519
  },
4394
4520
  this.renderScaledNotification(),
4395
- /* @__PURE__ */ import_react_ecs6.default.createElement(
4396
- import_react_ecs6.UiEntity,
4521
+ this.client.isPhone ? toolbarButton(2, { children: [this.renderToggleFace()] }, true, this.client.uiScale) : /* @__PURE__ */ import_react_ecs7.default.createElement(
4522
+ import_react_ecs7.UiEntity,
4397
4523
  {
4398
4524
  uiTransform: {
4399
4525
  position: { right: 20 + this.s(100) + 10 + this.s(100) + 10, bottom: 10 },
4400
4526
  positionType: "absolute"
4401
4527
  }
4402
4528
  },
4403
- /* @__PURE__ */ import_react_ecs6.default.createElement(
4404
- import_react_ecs6.Button,
4405
- {
4406
- uiTransform: { width: this.s(100), height: this.s(45) },
4407
- uiBackground: { color: this.panelOpen ? C2.btn : C2.header },
4408
- value: this.panelOpen ? "CLOSE" : "ADMIN",
4409
- fontSize: this.s(14),
4410
- color: C2.text,
4411
- onMouseDown: () => this.toggle()
4412
- }
4413
- )
4529
+ this.renderToggleFace()
4414
4530
  ),
4415
- this.panelOpen && /* @__PURE__ */ import_react_ecs6.default.createElement(
4416
- import_react_ecs6.UiEntity,
4417
- {
4418
- key: `admin-panel-${this.client.uiScale}`,
4419
- uiTransform: {
4420
- width: this.s(UI_DIMENSIONS.admin.width),
4421
- height: this.s(UI_DIMENSIONS.admin.height),
4422
- maxHeight: this.s(UI_DIMENSIONS.admin.maxHeight),
4423
- position: { right: UI_DIMENSIONS.chat.right + this.s(UI_DIMENSIONS.chat.width) + 10, bottom: UI_DIMENSIONS.admin.bottom },
4424
- positionType: "absolute",
4425
- flexDirection: "column"
4426
- },
4427
- uiBackground: { color: C2.bg }
4531
+ this.panelOpen && this.client.toolbarPanel({
4532
+ key: `admin-panel-${this.client.uiScale}`,
4533
+ uiTransform: {
4534
+ width: this.s(UI_DIMENSIONS.admin.width),
4535
+ height: this.s(UI_DIMENSIONS.admin.height),
4536
+ maxHeight: this.s(UI_DIMENSIONS.admin.maxHeight),
4537
+ position: { right: UI_DIMENSIONS.chat.right + this.s(UI_DIMENSIONS.chat.width) + 10, bottom: UI_DIMENSIONS.admin.bottom },
4538
+ positionType: "absolute",
4539
+ flexDirection: "column"
4428
4540
  },
4429
- /* @__PURE__ */ import_react_ecs6.default.createElement(
4430
- import_react_ecs6.UiEntity,
4431
- {
4432
- uiTransform: {
4433
- width: "100%",
4434
- height: this.s(UI_DIMENSIONS.admin.headerHeight),
4435
- justifyContent: "space-between",
4436
- alignItems: "center",
4437
- flexDirection: "row",
4438
- padding: { left: 12, right: 8 }
4541
+ uiBackground: { color: C2.bg },
4542
+ children: [
4543
+ // Header with font controls
4544
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
4545
+ import_react_ecs7.UiEntity,
4546
+ {
4547
+ uiTransform: {
4548
+ width: "100%",
4549
+ height: this.s(UI_DIMENSIONS.admin.headerHeight),
4550
+ justifyContent: "space-between",
4551
+ alignItems: "center",
4552
+ flexDirection: "row",
4553
+ padding: { left: 12, right: 8 }
4554
+ },
4555
+ uiBackground: { color: C2.header }
4439
4556
  },
4440
- uiBackground: { color: C2.header }
4441
- },
4442
- /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.Label, { value: this.config.title || "ADMIN PANEL", fontSize: t.header, color: C2.text }),
4443
- /* @__PURE__ */ import_react_ecs6.default.createElement(
4444
- import_react_ecs6.Button,
4557
+ /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.Label, { value: this.config.title || "ADMIN PANEL", fontSize: t.header, color: C2.text }),
4558
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
4559
+ import_react_ecs7.Button,
4560
+ {
4561
+ uiTransform: { width: this.s(28), height: this.s(28) },
4562
+ uiBackground: { color: import_math7.Color4.create(0, 0, 0, 0.3) },
4563
+ value: "X",
4564
+ fontSize: t.header,
4565
+ color: THEME.colors.red,
4566
+ onMouseDown: () => this.hide()
4567
+ }
4568
+ )
4569
+ ),
4570
+ // Tabs
4571
+ /* @__PURE__ */ import_react_ecs7.default.createElement(import_react_ecs7.UiEntity, { uiTransform: { width: "100%", height: this.s(UI_DIMENSIONS.admin.tabHeight), flexDirection: "row" } }, tabs.map((tab) => /* @__PURE__ */ import_react_ecs7.default.createElement(this.TabBtn, { label: tab.label, tab: tab.id }))),
4572
+ // Content
4573
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
4574
+ import_react_ecs7.UiEntity,
4445
4575
  {
4446
- uiTransform: { width: this.s(28), height: this.s(28) },
4447
- uiBackground: { color: import_math7.Color4.create(0, 0, 0, 0.3) },
4448
- value: "X",
4449
- fontSize: t.header,
4450
- color: THEME.colors.red,
4451
- onMouseDown: () => this.hide()
4452
- }
4453
- )
4454
- ),
4455
- /* @__PURE__ */ import_react_ecs6.default.createElement(import_react_ecs6.UiEntity, { uiTransform: { width: "100%", height: this.s(UI_DIMENSIONS.admin.tabHeight), flexDirection: "row" } }, tabs.map((tab) => /* @__PURE__ */ import_react_ecs6.default.createElement(this.TabBtn, { label: tab.label, tab: tab.id }))),
4456
- /* @__PURE__ */ import_react_ecs6.default.createElement(
4457
- import_react_ecs6.UiEntity,
4458
- {
4459
- uiTransform: {
4460
- width: "100%",
4461
- flexGrow: 1,
4462
- overflow: "scroll",
4463
- flexDirection: "column"
4464
- }
4465
- },
4466
- this.activeTab === "controls" && this.venue && this.controls.length > 0 && /* @__PURE__ */ import_react_ecs6.default.createElement(this.ControlsTab, null),
4467
- this.activeTab === "video" && /* @__PURE__ */ import_react_ecs6.default.createElement(this.VideoTab, null),
4468
- this.activeTab === "mod" && this.isOwner && /* @__PURE__ */ import_react_ecs6.default.createElement(this.ModTab, null),
4469
- this.config.sceneTabs?.map((tab) => this.activeTab === tab.id && tab.render())
4470
- ),
4471
- /* @__PURE__ */ import_react_ecs6.default.createElement(
4472
- import_react_ecs6.UiEntity,
4473
- {
4474
- uiTransform: {
4475
- width: "100%",
4476
- height: this.s(UI_DIMENSIONS.admin.footerHeight),
4477
- justifyContent: "center",
4478
- alignItems: "center"
4576
+ uiTransform: {
4577
+ width: "100%",
4578
+ flexGrow: 1,
4579
+ overflow: "scroll",
4580
+ flexDirection: "column"
4581
+ }
4479
4582
  },
4480
- uiBackground: { color: C2.section }
4481
- },
4482
- /* @__PURE__ */ import_react_ecs6.default.createElement(
4483
- import_react_ecs6.Button,
4583
+ this.activeTab === "controls" && this.venue && this.controls.length > 0 && /* @__PURE__ */ import_react_ecs7.default.createElement(this.ControlsTab, null),
4584
+ this.activeTab === "video" && /* @__PURE__ */ import_react_ecs7.default.createElement(this.VideoTab, null),
4585
+ this.activeTab === "mod" && this.isOwner && /* @__PURE__ */ import_react_ecs7.default.createElement(this.ModTab, null),
4586
+ this.config.sceneTabs?.map((tab) => this.activeTab === tab.id && tab.render())
4587
+ ),
4588
+ // Footer
4589
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
4590
+ import_react_ecs7.UiEntity,
4484
4591
  {
4485
- uiTransform: { height: this.s(24) },
4486
- uiBackground: { color: import_math7.Color4.create(0, 0, 0, 0) },
4487
- value: `thestatic.tv/scene/${this.config.sceneId}`,
4488
- fontSize: t.labelSmall,
4489
- color: C2.cyan,
4490
- onMouseDown: () => (0, import_RestrictedActions6.openExternalUrl)({ url: this.config.footerLink || `https://thestatic.tv/scene/${this.config.sceneId}` })
4491
- }
4592
+ uiTransform: {
4593
+ width: "100%",
4594
+ height: this.s(UI_DIMENSIONS.admin.footerHeight),
4595
+ justifyContent: "center",
4596
+ alignItems: "center"
4597
+ },
4598
+ uiBackground: { color: C2.section }
4599
+ },
4600
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
4601
+ import_react_ecs7.Button,
4602
+ {
4603
+ uiTransform: { height: this.s(24) },
4604
+ uiBackground: { color: import_math7.Color4.create(0, 0, 0, 0) },
4605
+ value: `thestatic.tv/scene/${this.config.sceneId}`,
4606
+ fontSize: t.labelSmall,
4607
+ color: C2.cyan,
4608
+ onMouseDown: () => (0, import_RestrictedActions6.openExternalUrl)({ url: this.config.footerLink || `https://thestatic.tv/scene/${this.config.sceneId}` })
4609
+ }
4610
+ )
4492
4611
  )
4493
- )
4494
- )
4612
+ ]
4613
+ })
4495
4614
  );
4496
4615
  };
4497
4616
  this.client = client;
@@ -4693,7 +4812,7 @@ var AdminPanelUIModule = class {
4693
4812
  */
4694
4813
  show() {
4695
4814
  if (this.panelOpen) return;
4696
- this.client.closeOtherPanels("admin");
4815
+ this.client.panelOpened("admin");
4697
4816
  this.panelOpen = true;
4698
4817
  if (this.activeTab === "video") {
4699
4818
  this.startStreamPolling();
@@ -5647,8 +5766,8 @@ var AdminPanelUIModule = class {
5647
5766
  /** A control's button (2026-11-18): the option's label, highlighted while that option is current on this copy */
5648
5767
  controlButton(control, option, label) {
5649
5768
  const current = this.currentOption[control.id] === option;
5650
- return /* @__PURE__ */ import_react_ecs6.default.createElement(
5651
- import_react_ecs6.Button,
5769
+ return /* @__PURE__ */ import_react_ecs7.default.createElement(
5770
+ import_react_ecs7.Button,
5652
5771
  {
5653
5772
  key: `control-${control.id}-${option}`,
5654
5773
  uiTransform: { minWidth: this.s(70), height: this.s(UI_DIMENSIONS.admin.buttonHeightSmall), margin: 4, padding: { left: 10, right: 10 } },
@@ -5670,8 +5789,8 @@ var AdminPanelUIModule = class {
5670
5789
  if (!state.visible) return null;
5671
5790
  const N2 = UI_DIMENSIONS.notification;
5672
5791
  const colors = THEME.colors;
5673
- return /* @__PURE__ */ import_react_ecs6.default.createElement(
5674
- import_react_ecs6.UiEntity,
5792
+ return /* @__PURE__ */ import_react_ecs7.default.createElement(
5793
+ import_react_ecs7.UiEntity,
5675
5794
  {
5676
5795
  uiTransform: {
5677
5796
  positionType: "absolute",
@@ -5681,8 +5800,8 @@ var AdminPanelUIModule = class {
5681
5800
  alignItems: "center"
5682
5801
  }
5683
5802
  },
5684
- /* @__PURE__ */ import_react_ecs6.default.createElement(
5685
- import_react_ecs6.UiEntity,
5803
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
5804
+ import_react_ecs7.UiEntity,
5686
5805
  {
5687
5806
  uiTransform: {
5688
5807
  minWidth: this.s(200),
@@ -5694,15 +5813,15 @@ var AdminPanelUIModule = class {
5694
5813
  },
5695
5814
  uiBackground: { color: colors.panel }
5696
5815
  },
5697
- /* @__PURE__ */ import_react_ecs6.default.createElement(
5698
- import_react_ecs6.UiEntity,
5816
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
5817
+ import_react_ecs7.UiEntity,
5699
5818
  {
5700
5819
  uiTransform: { width: N2.borderWidth, height: "100%" },
5701
5820
  uiBackground: { color: colors.cyan }
5702
5821
  }
5703
5822
  ),
5704
- /* @__PURE__ */ import_react_ecs6.default.createElement(
5705
- import_react_ecs6.UiEntity,
5823
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
5824
+ import_react_ecs7.UiEntity,
5706
5825
  {
5707
5826
  uiTransform: {
5708
5827
  flexGrow: 1,
@@ -5712,8 +5831,8 @@ var AdminPanelUIModule = class {
5712
5831
  alignItems: "center"
5713
5832
  }
5714
5833
  },
5715
- /* @__PURE__ */ import_react_ecs6.default.createElement(
5716
- import_react_ecs6.Label,
5834
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
5835
+ import_react_ecs7.Label,
5717
5836
  {
5718
5837
  value: state.text,
5719
5838
  fontSize: this.s(N2.fontSize),
@@ -5722,8 +5841,8 @@ var AdminPanelUIModule = class {
5722
5841
  }
5723
5842
  )
5724
5843
  ),
5725
- /* @__PURE__ */ import_react_ecs6.default.createElement(
5726
- import_react_ecs6.UiEntity,
5844
+ /* @__PURE__ */ import_react_ecs7.default.createElement(
5845
+ import_react_ecs7.UiEntity,
5727
5846
  {
5728
5847
  uiTransform: { width: 5, height: 5, margin: { right: 10 } },
5729
5848
  uiBackground: { color: colors.cyan }
@@ -5732,8 +5851,48 @@ var AdminPanelUIModule = class {
5732
5851
  )
5733
5852
  );
5734
5853
  }
5854
+ /** The ADMIN / CLOSE button itself; its place is the row's or, on a phone, the column's (2.12.0) */
5855
+ renderToggleFace() {
5856
+ return /* @__PURE__ */ import_react_ecs7.default.createElement(
5857
+ import_react_ecs7.Button,
5858
+ {
5859
+ uiTransform: { width: this.s(100), height: this.s(45) },
5860
+ uiBackground: { color: this.panelOpen ? C2.btn : C2.header },
5861
+ value: this.panelOpen ? "CLOSE" : "ADMIN",
5862
+ fontSize: this.s(14),
5863
+ color: C2.text,
5864
+ onMouseDown: () => this.toggle()
5865
+ }
5866
+ );
5867
+ }
5735
5868
  };
5736
5869
 
5870
+ // src/StaticTVClient.ts
5871
+ var import_Runtime2 = require("~system/Runtime");
5872
+
5873
+ // src/ui/toolbar-panel.ts
5874
+ var import_react_ecs8 = __toESM(require("@dcl/sdk/react-ecs"));
5875
+ function toolbarPanel(props, phone, uiScale = 1) {
5876
+ if (!phone) return import_react_ecs8.default.createElement(import_react_ecs8.UiEntity, props);
5877
+ const { key, uiTransform = {}, ...rest } = props;
5878
+ const { position: _position, positionType: _positionType, ...ownLayout } = uiTransform;
5879
+ const spacer = () => import_react_ecs8.default.createElement(import_react_ecs8.UiEntity, { uiTransform: { height: 0, flexGrow: 1 } });
5880
+ return import_react_ecs8.default.createElement(import_react_ecs8.UiEntity, {
5881
+ key,
5882
+ uiTransform: {
5883
+ positionType: "absolute",
5884
+ position: { right: panelRight(true, 0, uiScale), top: 0 },
5885
+ height: "100%",
5886
+ flexDirection: "column"
5887
+ },
5888
+ children: [
5889
+ spacer(),
5890
+ import_react_ecs8.default.createElement(import_react_ecs8.UiEntity, { ...rest, uiTransform: { ...ownLayout, flexShrink: 0 } }),
5891
+ spacer()
5892
+ ]
5893
+ });
5894
+ }
5895
+
5737
5896
  // src/StaticTVClient.ts
5738
5897
  var import_ecs5 = require("@dcl/sdk/ecs");
5739
5898
  var utils = __toESM(require("@dcl-sdk/utils"));
@@ -5741,7 +5900,7 @@ var DEFAULT_BASE_URL = "https://thestatic.tv/api/v1/dcl";
5741
5900
  var DEFAULT_FALLBACK_VIDEO = "https://media.thestatic.tv/fallback-loop.mp4";
5742
5901
  var KEY_TYPE_CHANNEL = "channel";
5743
5902
  var KEY_TYPE_SCENE = "scene";
5744
- var StaticTVClient = class {
5903
+ var _StaticTVClient = class _StaticTVClient {
5745
5904
  /**
5746
5905
  * Create a new StaticTVClient
5747
5906
  *
@@ -5801,6 +5960,13 @@ var StaticTVClient = class {
5801
5960
  this.adminPanel = null;
5802
5961
  /** UI scale - fixed at 1.0. DCL's UI system auto-scales based on viewport. */
5803
5962
  this.uiScale = 1;
5963
+ /** The explorer's platform, read once at construction (2.12.0); unknown until it answers, and if it cannot */
5964
+ this._platform = "unknown";
5965
+ /**
5966
+ * Which panels close when one opens (2.12.0, src/ui/toolbar.ts): on a phone every other one, the SDK's and a
5967
+ * scene's (registerPanel); elsewhere the guide and the admin panel close each other, as before.
5968
+ */
5969
+ this.panelRules = new PanelRules(() => this.isPhone);
5804
5970
  // =============================================================================
5805
5971
  // --- VIDEO PLAYBACK (Internal handler for videoScreen) ---
5806
5972
  // =============================================================================
@@ -5841,6 +6007,16 @@ var StaticTVClient = class {
5841
6007
  clearInterval: dclClearInterval,
5842
6008
  log: (msg, ...args) => this.log(msg, ...args)
5843
6009
  });
6010
+ this.readPlatform();
6011
+ this.panelRules.register("guide", () => {
6012
+ if (this.guideUI?.isVisible) this.guideUI.hide();
6013
+ });
6014
+ this.panelRules.register("chat", () => {
6015
+ if (this.chatUI?.isVisible) this.chatUI.hide();
6016
+ });
6017
+ this.panelRules.register("admin", () => {
6018
+ if (this.adminPanel?.isOpen) this.adminPanel.hide();
6019
+ });
5844
6020
  if (!config.apiKey) {
5845
6021
  this._disabled = true;
5846
6022
  this._keyType = null;
@@ -6691,16 +6867,99 @@ var StaticTVClient = class {
6691
6867
  }
6692
6868
  /**
6693
6869
  * Close Admin/Guide panels (they share the same screen space)
6694
- * Chat is independent and stays open.
6870
+ * Chat is independent and stays open. On a phone (2.12.0) every other panel closes: the same as panelOpened().
6695
6871
  * @param except The panel that should stay open: 'admin' | 'guide'
6696
6872
  */
6697
6873
  closeOtherPanels(except) {
6698
- if (except !== "guide" && this.guideUI?.isVisible) {
6699
- this.guideUI.hide();
6874
+ this.panelRules.opened(except);
6875
+ }
6876
+ // ===========================================================================
6877
+ // The toolbar on a phone (2.12.0, 2026-12-01; src/ui/toolbar.ts)
6878
+ // ===========================================================================
6879
+ /** Ask the explorer which platform this is, once; a failed or missing call leaves it unknown (the desktop layout) */
6880
+ readPlatform() {
6881
+ try {
6882
+ (0, import_Runtime2.getExplorerInformation)({}).then((answer) => {
6883
+ this._platform = platformOf(answer);
6884
+ this.log(`Platform: ${this._platform}`);
6885
+ }).catch(() => {
6886
+ });
6887
+ } catch {
6700
6888
  }
6701
- if (except !== "admin" && this.adminPanel?.isOpen) {
6702
- this.adminPanel.hide();
6889
+ }
6890
+ /** The explorer's platform: 'desktop', 'mobile', 'vr', 'web', or 'unknown' until it answers (and if it cannot) */
6891
+ get platform() {
6892
+ return this._platform;
6893
+ }
6894
+ /** A phone: the toolbar stands in a column on the right edge, panels open to its left, one at a time */
6895
+ get isPhone() {
6896
+ return isPhonePlatform(this._platform);
6897
+ }
6898
+ /**
6899
+ * Draw one of the scene's own toolbar buttons in its slot: the row along the bottom right on desktop (where a scene
6900
+ * placed its own by hand before), the column on a phone. Slots count from the right (the row) or the top (the
6901
+ * column): 0 is CHAT's, 1 GUIDE's, 2 ADMIN's (for a non-admin the scene's first button may take it), then the
6902
+ * scene's. `props` is the button's face - its uiBackground, onMouseDown and children - the slot gives its place and
6903
+ * size (a width or height in props.uiTransform wins).
6904
+ *
6905
+ * @example
6906
+ * ```typescript
6907
+ * staticTV.toolbarButton(3, {
6908
+ * uiTransform: { justifyContent: 'center', alignItems: 'center' },
6909
+ * uiBackground: { color: Color4.create(0.2, 0.4, 0.2, 0.9) },
6910
+ * onMouseDown: () => myPanel.toggle(),
6911
+ * children: [ReactEcs.createElement(UiEntity, { uiText: { value: 'MAP', fontSize: 14 } })],
6912
+ * })
6913
+ * ```
6914
+ */
6915
+ toolbarButton(slot, props) {
6916
+ return toolbarButton(slot, props, this.isPhone, this.uiScale);
6917
+ }
6918
+ /** Where a scene's own panel's right edge goes: on a phone one gap left of the column; elsewhere `desktopRight` */
6919
+ panelRight(desktopRight) {
6920
+ return panelRight(this.isPhone, desktopRight, this.uiScale);
6921
+ }
6922
+ /**
6923
+ * Draw one of the scene's own panels in its place (2.13.0): on desktop exactly as `props` say (their absolute
6924
+ * position included), on a phone centered on the screen's height one gap left of the toolbar's column, its top at
6925
+ * (canvas height - panel height) / 2 - or at the canvas's top when the panel is taller, so its header and close
6926
+ * button stay on screen. `props` is the panel's UiEntity props as on desktop: key, uiTransform, uiBackground,
6927
+ * children. The SDK's own chat, guide and admin panel draw through it.
6928
+ *
6929
+ * @example
6930
+ * ```typescript
6931
+ * myPanel.isOpen ? staticTV.toolbarPanel({
6932
+ * uiTransform: { positionType: 'absolute', position: { right: 20, bottom: 55 }, width: 380, height: 580 },
6933
+ * uiBackground: { color: Color4.create(0.05, 0.05, 0.08, 0.98) },
6934
+ * children: [header, body],
6935
+ * }) : null
6936
+ * ```
6937
+ */
6938
+ toolbarPanel(props) {
6939
+ return toolbarPanel(props, this.isPhone, this.uiScale);
6940
+ }
6941
+ /**
6942
+ * Put one of the scene's own panels under the panel rule: on a phone, when another panel opens (the SDK's or the
6943
+ * scene's), `hide` runs. On desktop (2.13.0), with `{ coversGuide: true }`, the panel and the guide's place close
6944
+ * each other: opening it closes the guide and the admin panel, and opening either runs `hide`; without it, the SDK
6945
+ * leaves the panel to the scene there. The SDK's own names (guide, chat, admin) are taken. Call panelOpened(name)
6946
+ * when it opens.
6947
+ */
6948
+ registerPanel(name, hide, options = {}) {
6949
+ if (_StaticTVClient.OWN_PANELS.includes(name)) {
6950
+ this.log(`registerPanel: '${name}' is one of the SDK's own panels - pick another name`);
6951
+ return;
6703
6952
  }
6953
+ this.panelRules.register(name, hide, options);
6954
+ }
6955
+ /**
6956
+ * A panel opened: on a phone every other one closes, the SDK's and the scene's registered ones. Elsewhere a panel
6957
+ * closes any panel it would cover: the guide and the admin panel close each other, and each closes a scene's panel
6958
+ * registered with coversGuide, as that panel closes them (2.13.0); the chat stays open beside the guide or the admin
6959
+ * panel, and a scene's other panels are left to the scene.
6960
+ */
6961
+ panelOpened(name) {
6962
+ this.panelRules.opened(name);
6704
6963
  }
6705
6964
  /**
6706
6965
  * Set up the UI renderer for all SDK panels
@@ -6758,6 +7017,9 @@ var StaticTVClient = class {
6758
7017
  this.log("StaticTVClient destroyed");
6759
7018
  }
6760
7019
  };
7020
+ /** The SDK's own panels, which a scene cannot register over */
7021
+ _StaticTVClient.OWN_PANELS = ["guide", "chat", "admin"];
7022
+ var StaticTVClient = _StaticTVClient;
6761
7023
  // Annotate the CommonJS export names for ESM import in node:
6762
7024
  0 && (module.exports = {
6763
7025
  AdminPanelUIModule,