dsh-talk-map 0.1.55 → 0.1.57
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/README.md +2 -0
- package/README.zh.md +2 -0
- package/client/client.js +395 -160
- package/package.json +1 -1
package/client/client.js
CHANGED
|
@@ -63,12 +63,12 @@ var require_use_sync_external_store_shim_production = __commonJS({
|
|
|
63
63
|
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
64
64
|
}
|
|
65
65
|
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
66
|
-
var
|
|
67
|
-
var
|
|
66
|
+
var useState9 = React.useState;
|
|
67
|
+
var useEffect12 = React.useEffect;
|
|
68
68
|
var useLayoutEffect3 = React.useLayoutEffect;
|
|
69
69
|
var useDebugValue2 = React.useDebugValue;
|
|
70
70
|
function useSyncExternalStore$2(subscribe2, getSnapshot2) {
|
|
71
|
-
var value = getSnapshot2(), _useState =
|
|
71
|
+
var value = getSnapshot2(), _useState = useState9({ inst: { value, getSnapshot: getSnapshot2 } }), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
72
72
|
useLayoutEffect3(
|
|
73
73
|
function() {
|
|
74
74
|
inst.value = value;
|
|
@@ -77,7 +77,7 @@ var require_use_sync_external_store_shim_production = __commonJS({
|
|
|
77
77
|
},
|
|
78
78
|
[subscribe2, value, getSnapshot2]
|
|
79
79
|
);
|
|
80
|
-
|
|
80
|
+
useEffect12(
|
|
81
81
|
function() {
|
|
82
82
|
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
83
83
|
return subscribe2(function() {
|
|
@@ -130,17 +130,17 @@ var require_with_selector_production = __commonJS({
|
|
|
130
130
|
}
|
|
131
131
|
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
132
132
|
var useSyncExternalStore5 = shim.useSyncExternalStore;
|
|
133
|
-
var
|
|
134
|
-
var
|
|
135
|
-
var
|
|
133
|
+
var useRef8 = React.useRef;
|
|
134
|
+
var useEffect12 = React.useEffect;
|
|
135
|
+
var useMemo4 = React.useMemo;
|
|
136
136
|
var useDebugValue2 = React.useDebugValue;
|
|
137
137
|
exports.useSyncExternalStoreWithSelector = function(subscribe2, getSnapshot2, getServerSnapshot, selector, isEqual) {
|
|
138
|
-
var instRef =
|
|
138
|
+
var instRef = useRef8(null);
|
|
139
139
|
if (null === instRef.current) {
|
|
140
140
|
var inst = { hasValue: false, value: null };
|
|
141
141
|
instRef.current = inst;
|
|
142
142
|
} else inst = instRef.current;
|
|
143
|
-
instRef =
|
|
143
|
+
instRef = useMemo4(
|
|
144
144
|
function() {
|
|
145
145
|
function memoizedSelector(nextSnapshot) {
|
|
146
146
|
if (!hasMemo) {
|
|
@@ -175,7 +175,7 @@ var require_with_selector_production = __commonJS({
|
|
|
175
175
|
[getSnapshot2, getServerSnapshot, selector, isEqual]
|
|
176
176
|
);
|
|
177
177
|
var value = useSyncExternalStore5(subscribe2, instRef[0], instRef[1]);
|
|
178
|
-
|
|
178
|
+
useEffect12(
|
|
179
179
|
function() {
|
|
180
180
|
inst.hasValue = true;
|
|
181
181
|
inst.value = value;
|
|
@@ -326,6 +326,14 @@ var zh = {
|
|
|
326
326
|
"map.back": "返回",
|
|
327
327
|
"map.toggle": "对话地图",
|
|
328
328
|
"map.empty": "地图是空的 —— 右键导入工作区或对话;双击空白直接开新对话",
|
|
329
|
+
"statusRail.title": "有状态的卡片",
|
|
330
|
+
"statusRail.open": "展开状态栏",
|
|
331
|
+
"statusRail.close": "收起状态栏",
|
|
332
|
+
"statusRail.empty": "暂时没有带状态的卡片",
|
|
333
|
+
"statusRail.lamp.running": "运行中",
|
|
334
|
+
"statusRail.lamp.waiting": "等你回复",
|
|
335
|
+
"statusRail.lamp.done": "待查看",
|
|
336
|
+
"statusRail.lamp.error": "异常终止",
|
|
329
337
|
"map.sessions": "个会话",
|
|
330
338
|
"map.loading": "正在加载地图……",
|
|
331
339
|
"map.retry": "重试",
|
|
@@ -448,7 +456,7 @@ var zh = {
|
|
|
448
456
|
"digest.empty": "这条对话还没有摘要,先刷新摘要再来看。",
|
|
449
457
|
"digest.copy": "复制",
|
|
450
458
|
"digest.close": "关闭",
|
|
451
|
-
"global.searchPlaceholder": "
|
|
459
|
+
"global.searchPlaceholder": "b57 · 搜地图上的卡片(标题/正文)",
|
|
452
460
|
"global.searchRun": "搜索",
|
|
453
461
|
"global.searchTitle": "搜索地图",
|
|
454
462
|
"font.group": "文字大小",
|
|
@@ -484,6 +492,14 @@ var en = {
|
|
|
484
492
|
"map.back": "Back",
|
|
485
493
|
"map.toggle": "Talk Map",
|
|
486
494
|
"map.empty": "The map is empty — right-click to import a workspace or conversation; double-click to start a chat",
|
|
495
|
+
"statusRail.title": "Cards with a status",
|
|
496
|
+
"statusRail.open": "Open the status rail",
|
|
497
|
+
"statusRail.close": "Close the status rail",
|
|
498
|
+
"statusRail.empty": "No card carries a status right now",
|
|
499
|
+
"statusRail.lamp.running": "running",
|
|
500
|
+
"statusRail.lamp.waiting": "waiting",
|
|
501
|
+
"statusRail.lamp.done": "unread",
|
|
502
|
+
"statusRail.lamp.error": "error",
|
|
487
503
|
"map.sessions": "sessions",
|
|
488
504
|
"map.loading": "Loading map…",
|
|
489
505
|
"map.retry": "Retry",
|
|
@@ -599,7 +615,7 @@ var en = {
|
|
|
599
615
|
"menu.noGroup": "Remove from group (free card)",
|
|
600
616
|
"menu.open": "Open conversation",
|
|
601
617
|
"menu.markUnread": "Mark as unread",
|
|
602
|
-
"global.searchPlaceholder": "
|
|
618
|
+
"global.searchPlaceholder": "b57 · Search cards on the map",
|
|
603
619
|
"global.searchRun": "Search",
|
|
604
620
|
"global.searchTitle": "Search the map",
|
|
605
621
|
"font.group": "Text size",
|
|
@@ -1245,7 +1261,7 @@ function allCards() {
|
|
|
1245
1261
|
}
|
|
1246
1262
|
|
|
1247
1263
|
// src/client/MapOverlay.tsx
|
|
1248
|
-
var
|
|
1264
|
+
var import_react15 = require("react");
|
|
1249
1265
|
|
|
1250
1266
|
// src/client/font-scale.ts
|
|
1251
1267
|
var STORAGE_KEY = "dsh.talk-map.font-step";
|
|
@@ -1363,7 +1379,7 @@ function cleanSnippet(raw, query) {
|
|
|
1363
1379
|
|
|
1364
1380
|
// dsh-css:dsh-css:src/client/talk-map.module.css
|
|
1365
1381
|
var __tagId = "dsh-talk-map/talk-map.module.css";
|
|
1366
|
-
var __css = `.tm_toggleButton { display: flex; align-items: center; justify-content: center; gap: 6px; width: 32px; height: 32px; padding: 0; border: none; border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; } .tm_toggleButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_toggleButtonActive { background: var(--dsw-alias-interactive-bg-active); color: var(--dsw-alias-brand-primary); } .tm_toggleRow { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: none; border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; text-align: left; } .tm_toggleRow:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_toggleLabel { white-space: nowrap; } .tm_toggleIcon { width: 18px; height: 18px; flex: none; } .tm_panel { height: 100%; min-height: 0; box-sizing: border-box; display: flex; flex-direction: column; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); } .tm_header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-layer-1); flex: none; } .tm_backButton { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 18px 0 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; line-height: 1; cursor: pointer; } .tm_backButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_globalSearch { position: relative; display: flex; align-items: center; gap: 6px; margin-right: 8px; } .tm_globalSearchInput { width: 200px; font: inherit; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 9px; outline: none; } .tm_globalSearchInput:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_globalSearchButton { font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 10px; cursor: pointer; } .tm_globalSearchButton:hover { color: var(--dsw-alias-label-primary); } .tm_globalSearchBackdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-start; justify-content: center; padding-top: 9vh; } .tm_globalSearchPanel { width: min(980px, 92vw); max-height: 76vh; display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5); overflow: hidden; } .tm_globalSearchHead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--dsw-alias-border-l2); } .tm_globalSearchTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_globalSearchBody { padding: 0 16px 14px; overflow-y: auto; overscroll-behavior: contain; } .tm_searchInlineLoading { display: flex; align-items: center; padding: 4px 0 2px 10px; } .tm_searchInlineLoading > span { width: 62%; } .tm_drawerScrollSensor { width: 100%; height: 1px; opacity: 0; } .tm_fontGroup { display: flex; align-items: center; gap: 4px; margin-right: 6px; } .tm_fontButton { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 46px; height: 28px; padding: 0 8px; line-height: 1; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font: inherit; font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_fontButton:hover:not(:disabled) { color: var(--dsw-alias-label-primary); border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_fontButton:disabled { opacity: 0.4; cursor: default; } .tm_fontGlyphSmall, .tm_fontGlyphLarge { display: inline-block; width: calc(9px + 0px); text-align: center; line-height: 1; } .tm_fontGlyphSmall, .tm_fontGlyphLarge { font-size: calc(13px + var(--tm-font-step, 0px)); } .tm_fontSign { display: inline-block; font-size: calc(10px + var(--tm-font-step, 0px)); line-height: 1; transform: translateY(-3px); } .tm_fontReset { min-width: 50px; } .tm_fontReset { min-width: 44px; } .tm_headerSpace { flex: 1; } .tm_langButton { flex: none; min-width: 72px; height: 34px; padding: 0 14px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; } .tm_langButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_closeButton { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; } .tm_closeButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_zoomResetLabel { font-size: calc(9px + var(--tm-font-step, 0px)); font-weight: 700; letter-spacing: -0.5px; } .tm_canvas { flex: 1; min-height: 0; position: relative; } @media (prefers-reduced-motion: reduce) { .tm_canvas .react-flow__edge circle { opacity: 0.28; } } .tm_canvas .react-flow__node { transition: transform 200ms cubic-bezier(0.2, 0.8, 0.25, 1); } .tm_canvas .react-flow__node.dragging, .tm_canvas .react-flow__node.tmDragging { transition: none; } .tm_canvas .react-flow__nodesselection, .tm_canvas .react-flow__nodesselection-rect { display: none !important; pointer-events: none !important; } .tm_card { position: relative; width: 224px; min-height: 104px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 10px; background: var(--dsw-alias-bg-layer-1); color: var(--dsw-alias-label-primary); box-shadow: 0 1px 3px var(--dsw-alias-bg-mask-1); font-size: calc(13px + var(--tm-font-step, 0px)); } .tm_cardSelected { border-color: var(--dsw-alias-brand-primary); } .tm_cardGhost { opacity: 0.55; border-style: dashed; } .tm_cardTop { display: flex; align-items: center; gap: 6px; min-width: 0; } .tm_cardTitle { font-weight: 600; font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; } .tm_runningDot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ffffff; animation: tm_talkmap-pulse 1.6s ease-in-out infinite; } @keyframes tm_talkmap-pulse { 50% { opacity: 0.35; } } .tm_cardNext { display: flex; align-items: baseline; gap: 6px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); min-width: 0; } .tm_cardNextLabel { flex: none; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-brand-primary); font-weight: 600; } .tm_cardNextText { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .tm_cardStale { flex: none; color: var(--dsw-alias-state-warn-primary); font-size: calc(12px + var(--tm-font-step, 0px)); } .tm_cardFooter { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_cardTime { flex: none; } .tm_cardChip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); font-weight: 600; white-space: nowrap; border: 1px solid transparent; } .tm_cardChipRunning { color: #ffffff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); } .tm_cardChipWaiting { color: rgb(245, 178, 46); background: rgba(245, 178, 46, 0.14); border-color: rgba(245, 178, 46, 0.42); } .tm_cardChipDone { color: rgb(52, 199, 89); background: rgba(52, 199, 89, 0.14); border-color: rgba(52, 199, 89, 0.42); } .tm_cardChipError { color: rgb(242, 78, 78); background: rgba(242, 78, 78, 0.14); border-color: rgba(242, 78, 78, 0.45); } .tm_cardChipDraft { color: rgb(255, 197, 61); background: rgba(255, 197, 61, 0.18); border-color: rgba(255, 197, 61, 0.5); } .tm_cardChipInterrupted { color: rgb(214, 158, 92); background: rgba(214, 158, 92, 0.14); border-color: rgba(214, 158, 92, 0.42); } .tm_cardSummary { font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1.45; color: var(--dsw-alias-label-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; } .tm_cardBadgeWaiting { padding: 1px 7px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-warn-label); background: var(--dsw-alias-state-warn-tertiary); } .tm_cardBadgeDone { padding: 1px 7px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-success-primary); background: var(--dsw-alias-state-success-tertiary); } .tm_cardLampRunning { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 0 16px 2px rgba(255, 255, 255, 0.2), 0 0 40px 9px rgba(255, 255, 255, 0.1); } .tm_dialogBackdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(2px); animation: tm_tmFadeIn 140ms ease-out; } .tm_digestDialog { width: min(720px, 86vw); max-height: 82vh; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; border-radius: 14px; background: var(--dsw-alias-bg-elevated, #232323); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); animation: tm_tmRiseIn 200ms cubic-bezier(0.16, 1, 0.3, 1); } .tm_digestDialogHead { display: flex; align-items: baseline; gap: 8px; min-width: 0; } .tm_digestDialogTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_digestDialogFrom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_digestLabel { margin-top: 4px; font-size: calc(10.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary, rgba(255, 255, 255, 0.5)); } .tm_digestText { width: 100%; min-height: 96px; max-height: 30vh; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); color: var(--dsw-alias-label-primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: calc(11.5px + var(--tm-font-step, 0px)); line-height: 1.62; resize: none; } .tm_digestEmpty { padding: 18px 4px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_digestActions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; } .tm_renameBackdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.42); display: flex; align-items: flex-start; justify-content: center; padding-top: 22vh; } .tm_renameDialog { width: min(420px, 90vw); background: var(--dsw-alias-bg-layer-1); border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42); padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 10px; } .tm_renameHeading { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_renameInput { width: 100%; box-sizing: border-box; font: inherit; font-size: calc(13px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 8px 10px; outline: none; } .tm_renameInput:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.35)); } .tm_renameError { font-size: calc(12px + var(--tm-font-step, 0px)); color: rgb(242, 78, 78); } .tm_renameActions { display: flex; justify-content: flex-end; gap: 8px; } .tm_renameButton { font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 6px 12px; cursor: pointer; } .tm_renameButton:hover { color: var(--dsw-alias-label-primary); } .tm_renamePrimary { color: #0b0b0c; background: rgb(255, 214, 106); border-color: rgb(255, 214, 106); } .tm_renamePrimary:disabled { opacity: 0.5; cursor: default; } .tm_cardPin { display: inline-flex; align-items: center; flex: none; color: rgb(255, 214, 106); filter: drop-shadow(0 0 5px rgba(255, 214, 106, 0.85)); animation: tm_talkmap-pin-glow 2.6s ease-in-out infinite; } @keyframes tm_talkmap-pin-glow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 214, 106, 0.6)); opacity: 0.92; } 50% { filter: drop-shadow(0 0 9px rgba(255, 214, 106, 1)); opacity: 1; } } .tm_cardReticle { position: absolute; inset: -5px; pointer-events: none; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45)); } .tm_cardReticle i { position: absolute; width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, 0.9); } .tm_cardReticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; } .tm_cardReticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; } .tm_cardReticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; } .tm_cardReticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; } .tm_cardQuiet { opacity: 0.62; transition: opacity 140ms ease; } .tm_cardQuiet:hover { opacity: 1; } .tm_stackBadgeBusy { color: rgb(255, 197, 61); border-color: rgba(255, 197, 61, 0.5); } @property --tm-ring-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; } .tm_cardLampRunning::after { content: ''; position: absolute; inset: -2px; border-radius: 12px; padding: 2px; background: conic-gradient( from var(--tm-ring-angle), rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 190deg, rgba(255, 255, 255, 0.18) 250deg, rgba(255, 255, 255, 0.55) 292deg, rgba(255, 255, 255, 1) 325deg, rgba(255, 255, 255, 0.4) 352deg, rgba(255, 255, 255, 0) 360deg ); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: tm_talkmap-ring-sweep 1.8s linear infinite; pointer-events: none; } @keyframes tm_talkmap-ring-sweep { to { --tm-ring-angle: 360deg; } } .tm_cardLampDone { animation: tm_talkmap-lamp-green 2.8s ease-in-out infinite; } .tm_cardLampError { animation: tm_talkmap-lamp-red 1.9s ease-in-out infinite; } .tm_cardLampWaiting { animation: tm_talkmap-lamp-amber 3.4s ease-in-out infinite; } @keyframes tm_talkmap-lamp-green { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.40), 0 0 14px 1px rgba(52, 199, 89, 0.26), 0 0 34px 8px rgba(52, 199, 89, 0.11); } 50% { box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.72), 0 0 24px 5px rgba(52, 199, 89, 0.46), 0 0 62px 20px rgba(52, 199, 89, 0.22); } } @keyframes tm_talkmap-lamp-amber { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(245, 178, 46, 0.42), 0 0 14px 1px rgba(245, 178, 46, 0.24), 0 0 34px 8px rgba(245, 178, 46, 0.11); } 50% { box-shadow: inset 0 0 0 1px rgba(245, 178, 46, 0.72), 0 0 24px 5px rgba(245, 178, 46, 0.44), 0 0 60px 19px rgba(245, 178, 46, 0.20); } } @keyframes tm_talkmap-lamp-red { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(242, 78, 78, 0.46), 0 0 14px 1px rgba(242, 78, 78, 0.28), 0 0 34px 8px rgba(242, 78, 78, 0.12); } 50% { box-shadow: inset 0 0 0 1px rgba(242, 78, 78, 0.80), 0 0 26px 6px rgba(242, 78, 78, 0.52), 0 0 66px 22px rgba(242, 78, 78, 0.26); } } .tm_cardRemove { align-self: flex-start; padding: 3px 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 6px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_cardRemove:hover { background: var(--dsw-alias-interactive-bg-hover-danger); color: var(--dsw-alias-state-error-primary); } .tm_cardHandle { width: 10px; height: 10px; background: var(--dsw-alias-border-l3); border: 2px solid var(--dsw-alias-bg-layer-1); opacity: 0; } .tm_card:hover .tm_cardHandle, .tm_canvasConnecting .tm_cardHandle { opacity: 1; } .tm_cardHandle:hover { background: var(--dsw-alias-brand-primary); } .tm_cardRefresh { flex: none; margin-left: auto; width: 22px; height: 22px; padding: 0; border: none; border-radius: 6px; background: transparent; color: var(--dsw-alias-label-tertiary); font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1; cursor: pointer; opacity: 0; transition: opacity 120ms ease; } .tm_card:hover .tm_cardRefresh { opacity: 1; } .tm_cardRefresh:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_cardRefreshBusy { opacity: 1; animation: tm_talkmap-spin 1s linear infinite; } @keyframes tm_talkmap-spin { to { transform: rotate(360deg); } } .tm_spawnPanel { position: absolute; right: 24px; top: 24px; z-index: 6; width: 420px; max-width: calc(100% - 48px); display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 30px var(--dsw-alias-bg-mask-2); } .tm_spawnHeading { font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_spawnFrom { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_spawnModes { display: flex; gap: 6px; } .tm_spawnModeBtn { flex: 1; padding: 5px 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnModeBtn:hover { background: var(--dsw-alias-interactive-bg-hover); } .tm_spawnModeActive { border-color: var(--dsw-alias-brand-primary); color: var(--dsw-alias-brand-primary); background: var(--dsw-alias-interactive-bg-active); } .tm_spawnHint { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_spawnTextarea { width: 100%; resize: vertical; min-height: 140px; padding: 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1.5; font-family: inherit; } .tm_spawnError { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-error-primary); word-break: break-all; } .tm_spawnActions { display: flex; justify-content: flex-end; gap: 8px; } .tm_spawnBtnPrimary { padding: 6px 16px; border: none; border-radius: 8px; background: var(--dsw-alias-button-primary-fill); color: var(--dsw-alias-label-primary-foreground); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnBtnPrimary:hover { background: var(--dsw-alias-button-primary-hover); } .tm_spawnBtnPrimary:disabled { background: var(--dsw-alias-button-primary-dimmed); cursor: default; } .tm_spawnBtnGhost { padding: 6px 16px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnBtnGhost:hover { background: var(--dsw-alias-interactive-bg-hover); } .tm_wsFrame { position: relative; border: 1.5px dashed var(--dsw-alias-border-l2); border-radius: 16px; background: transparent; } .tm_wsFrameBlocked { border-color: rgb(242, 78, 78) !important; box-shadow: 0 0 0 1px rgba(242, 78, 78, 0.45) inset; } .tm_wsFrameSelected { border-style: solid; border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameLabel { position: absolute; top: -12px; left: 14px; display: flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-layer-1); font-size: calc(12px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-secondary); white-space: nowrap; pointer-events: auto; cursor: grab; z-index: 5; } .tm_wsFrameLabel:active { cursor: grabbing; } .tm_wsFrameEdge { position: absolute; pointer-events: auto; cursor: grab; } .tm_wsFrameEdge:active { cursor: grabbing; } .tm_wsFrameCount { font-weight: 400; color: var(--dsw-alias-label-tertiary); } .tm_menu { position: absolute; z-index: 60; min-width: 200px; max-width: 280px; max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 10px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 30px var(--dsw-alias-bg-mask-2); } .tm_menuTitle { flex: none; padding: 4px 10px 6px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_menuSearch { flex: none; box-sizing: border-box; width: calc(100% - 8px); margin: 2px 4px 6px; padding: 5px 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 7px; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font-size: calc(12px + var(--tm-font-step, 0px)); font-family: inherit; } .tm_menuHint { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-dimmed); } .tm_menuPreview { flex: none; padding: 0 10px 4px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); word-break: break-all; } .tm_menuError { flex: none; padding: 0 10px 4px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-error-primary); word-break: break-all; } .tm_menuEmpty { padding: 8px 10px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_menuItem { flex: none; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 10px; border: none; border-radius: 7px; background: transparent; color: var(--dsw-alias-label-primary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tm_menuIcon { flex: none; width: 14px; height: 14px; color: var(--dsw-alias-label-secondary); } .tm_menuItemDanger { color: rgb(242, 78, 78); } .tm_menuItemDanger .tm_menuIcon { color: rgb(242, 78, 78); } .tm_menuItem:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); } .tm_menuItem:disabled { color: var(--dsw-alias-label-dimmed); cursor: default; } .tm_wsFrameHidden { font-weight: 400; color: var(--dsw-alias-state-warn-primary); } .tm_emptyHint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: calc(13px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); pointer-events: none; z-index: 4; } .tm_toast { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 8; max-width: 70%; padding: 7px 16px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 4px 16px var(--dsw-alias-bg-mask-2); font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tm_stackCell { position: relative; width: 224px; height: 104px; cursor: pointer; } .tm_stackSheetBack, .tm_stackSheetMid { position: absolute; inset: 0; border-radius: 12px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); } .tm_stackSheetBack { transform: translate(11px, 11px) scale(0.95); opacity: 0.35; } .tm_stackSheetMid { transform: translate(5px, 5px) scale(0.977); opacity: 0.6; } .tm_stackFace { position: absolute; inset: 0; box-sizing: border-box; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; background: var(--dsw-alias-bg-layer-1); transition: border-color 140ms ease, transform 140ms ease; } .tm_stackCell:hover .tm_stackFace { border-color: var(--dsw-alias-brand-primary); transform: translateY(-1px); } .tm_stackFaceTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } .tm_stackBadge { flex: none; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l2); color: var(--dsw-alias-label-secondary); font-size: calc(11px + var(--tm-font-step, 0px)); font-variant-numeric: tabular-nums; } .tm_drawerBackdrop { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: var(--dsw-alias-bg-mask-2); } .tm_drawer { width: min(1120px, 94%); max-height: 84%; box-sizing: border-box; display: flex; flex-direction: column; border: 1px solid var(--dsw-alias-border-l1); border-radius: 16px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 18px 48px var(--dsw-alias-bg-mask-2); overflow: hidden; } .tm_drawerHead { display: flex; align-items: center; gap: 10px; flex: none; padding: 12px 14px; border-bottom: 1px solid var(--dsw-alias-border-l1); } .tm_drawerTitle { font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_drawerCount { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_drawerSpace { flex: 1; } .tm_drawerHint { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_drawerClose { flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(16px + var(--tm-font-step, 0px)); line-height: 1; cursor: pointer; } .tm_drawerClose:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_drawerHits > .tm_drawerHit { animation: tm_tmPopIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both; } .tm_drawerHits > .tm_drawerHit:nth-child(1) { animation-delay: 20ms; } .tm_drawerHits > .tm_drawerHit:nth-child(2) { animation-delay: 34ms; } .tm_drawerHits > .tm_drawerHit:nth-child(3) { animation-delay: 48ms; } .tm_drawerHits > .tm_drawerHit:nth-child(4) { animation-delay: 62ms; } .tm_drawerHits > .tm_drawerHit:nth-child(5) { animation-delay: 76ms; } .tm_drawerHits > .tm_drawerHit:nth-child(n+6) { animation-delay: 90ms; } .tm_searchLoading { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 2px; } .tm_searchLoadingBar { position: relative; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.07); } .tm_searchLoadingBar > i { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--dsw-alias-brand-primary), transparent); animation: tm_tmSlideBar 1150ms cubic-bezier(0.4, 0, 0.2, 1) infinite; } @keyframes tm_tmSlideBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } } .tm_searchSkeletonRow { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 9px; } .tm_searchSkeletonTitle, .tm_searchSkeletonLine { display: block; height: 9px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05)); background-size: 220% 100%; animation: tm_tmShimmer 1300ms ease-in-out infinite; } .tm_searchSkeletonTitle { width: 38%; } .tm_searchSkeletonLine { width: 78%; } @keyframes tm_tmShimmer { 0% { background-position: 120% 0; } 100% { background-position: -60% 0; } } @media (prefers-reduced-motion: reduce) { .tm_drawerHits > .tm_drawerHit, .tm_searchLoadingBar > i, .tm_searchSkeletonTitle, .tm_searchSkeletonLine { animation: none; } } @keyframes tm_tmFadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes tm_tmFadeOut { from { opacity: 1; } to { opacity: 0; } } @keyframes tm_tmRiseIn { from { opacity: 0; transform: translateY(26px) scale(0.94); } 60% { opacity: 1; } to { opacity: 1; transform: none; } } @keyframes tm_tmRiseOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(0.985); } } @keyframes tm_tmPopIn { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } } @keyframes tm_tmCardIn { from { opacity: 0; transform: translateY(6px) scale(0.99); } to { opacity: 1; transform: none; } } .tm_drawerBackdrop { animation: tm_tmFadeIn 180ms cubic-bezier(0.16, 1, 0.3, 1) both; } .tm_drawerBackdropOut { animation: tm_tmFadeOut 130ms ease-in both; } .tm_drawer { animation: tm_tmRiseIn 260ms cubic-bezier(0.16, 1, 0.3, 1) both; will-change: transform, opacity; } .tm_drawerOut { animation: tm_tmRiseOut 150ms cubic-bezier(0.4, 0, 0.7, 0.2) both; } .tm_globalSearchBackdrop { animation: tm_tmFadeIn 130ms ease-out both; } .tm_globalSearchPanel { animation: tm_tmRiseIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both; will-change: transform, opacity; } .tm_menu { animation: tm_tmPopIn 120ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_card { transition: transform 120ms ease-out, box-shadow 160ms ease-out, opacity 160ms ease-out; } .tm_card:hover { transform: translateY(-1px); } .tm_reactFlowNodeEnter { animation: tm_tmCardIn 170ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_stackCell { transition: transform 120ms ease-out, box-shadow 160ms ease-out; } .tm_stackCell:hover { transform: translateY(-2px); } .tm_wsFrameLabel { transition: color 120ms ease-out, background 120ms ease-out, box-shadow 120ms ease-out; } .tm_wsFrameLabel:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); } .tm_toast { animation: tm_tmRiseIn 160ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_snippetCode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.94em; padding: 0 3px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); } .tm_snippetLink { color: var(--dsw-alias-brand-primary); } @media (prefers-reduced-motion: reduce) { .tm_drawerBackdrop, .tm_drawerBackdropOut, .tm_drawer, .tm_drawerOut, .tm_globalSearchBackdrop, .tm_globalSearchPanel, .tm_menu, .tm_toast, .tm_reactFlowNodeEnter { animation: none; } .tm_card, .tm_stackCell, .tm_wsFrameLabel { transition: none; } .tm_card:hover, .tm_stackCell:hover { transform: none; } } .tm_drawerSearchRow { display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; } .tm_drawerSearch { flex: 1; min-width: 0; font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 6px 10px; outline: none; } .tm_drawerSearch:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_drawerSearchGo { flex: none; font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 10px; cursor: pointer; } .tm_drawerSearchGo:hover { color: var(--dsw-alias-label-primary); } .tm_drawerSearchState { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); flex: none; } .tm_drawerSearchError { flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(11px + var(--tm-font-step, 0px)); color: rgb(242, 78, 78); } .tm_drawerEmpty { grid-column: 1 / -1; padding: 10px 4px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_drawerHits { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--dsw-alias-border-l2); } .tm_drawerHitsHead { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); letter-spacing: 0.04em; } .tm_drawerHit { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 8px 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 9px; background: transparent; color: var(--dsw-alias-label-primary); font: inherit; cursor: pointer; } .tm_drawerHit:hover { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_drawerRoleChip { flex: none; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-size: calc(9.5px + var(--tm-font-step, 0px)); line-height: 1.6; color: var(--dsw-alias-label-secondary); background: rgba(255, 255, 255, 0.07); } .tm_drawerRoleChip[data-talkmap-role="user"] { color: rgba(160, 210, 255, 0.95); background: rgba(90, 160, 255, 0.14); } .tm_hitMark { color: #0b0b0c; background: rgb(255, 214, 106); border-radius: 3px; padding: 0 2px; } .tm_drawerHitHead { display: flex; align-items: center; gap: 6px; min-width: 0; } .tm_drawerAgentChip { flex: none; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l2); font-size: calc(10px + var(--tm-font-step, 0px)); line-height: 1.5; color: var(--dsw-alias-label-secondary); letter-spacing: 0.02em; } .tm_drawerAgentChipSub { color: rgb(255, 214, 106); border-color: rgba(255, 214, 106, 0.5); background: rgba(255, 214, 106, 0.1); } .tm_drawerHitTitle { display: block; width: 100%; text-align: left; font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); background: transparent; border: none; padding: 0 0 2px; cursor: pointer; } .tm_drawerHitTitle:hover { color: var(--dsw-alias-brand-primary); } .tm_peek { position: fixed; z-index: 80; width: min(500px, 88vw); max-height: 42vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); } .tm_peekTitle { font-size: calc(11.5px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-secondary); padding-bottom: 4px; margin-bottom: 2px; border-bottom: 1px solid var(--dsw-alias-border-l2); } .tm_peekLine { font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1.55; color: var(--dsw-alias-label-primary); white-space: pre-wrap; word-break: break-word; } .tm_peekHint { margin-top: 6px; font-size: calc(10.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); opacity: 0.7; } .tm_drawerHitMore { align-self: flex-start; margin-top: 2px; font: inherit; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: none; padding: 2px 0 2px 10px; cursor: pointer; } .tm_drawerHitMore:hover { color: var(--dsw-alias-brand-primary); } .tm_drawerHitBlock { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; padding-left: 2px; } .tm_drawerHitLine { display: block; width: 100%; text-align: left; font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: none; padding: 2px 0 2px 10px; border-left: 2px solid var(--dsw-alias-border-l2); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tm_drawerHitLine:hover { color: var(--dsw-alias-label-primary); border-left-color: var(--dsw-alias-brand-primary); } .tm_drawerScroll { overscroll-behavior: contain; scroll-behavior: auto; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y proximity; display: grid; grid-template-columns: repeat(auto-fill, 224px); justify-content: center; align-content: start; gap: 12px; padding: 16px; } .tm_drawerCard[draggable="true"] { cursor: grab; } .tm_drawerCard[data-talkmap-drag="1"] { cursor: grabbing; opacity: 0.55; transform: scale(0.98); } .tm_cardLinks { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; } .tm_cardLinkChip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; border-radius: 4px; font-size: calc(9.5px + var(--tm-font-step, 0px)); line-height: 1.7; color: var(--dsw-alias-label-secondary); background: rgba(255, 255, 255, 0.06); } .tm_cardLinkChip[data-talkmap-link="out"] { color: rgba(255, 214, 106, 0.9); background: rgba(255, 214, 106, 0.12); } .tm_drawerCard { width: 224px; box-sizing: border-box; scroll-snap-align: start; text-align: left; font: inherit; cursor: pointer; background: var(--dsw-alias-bg-layer-1); } .tm_drawerCard:hover { border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameResize { position: absolute; z-index: 2; pointer-events: auto; opacity: 0.5; } .tm_wsFrameResize:hover { opacity: 1; border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameResizeN { cursor: ns-resize; border-top: 3px solid var(--dsw-alias-border-l3); border-radius: 14px 14px 0 0; } .tm_wsFrameResizeS { cursor: ns-resize; border-bottom: 3px solid var(--dsw-alias-border-l3); border-radius: 0 0 14px 14px; } .tm_wsFrameResizeW { cursor: ew-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-radius: 14px 0 0 14px; } .tm_wsFrameResizeE { cursor: ew-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-radius: 0 14px 14px 0; } .tm_wsFrameResizeNw, .tm_wsFrameResizeNe, .tm_wsFrameResizeSw, .tm_wsFrameResizeSe { width: 26px; height: 26px; z-index: 3; } .tm_wsFrameResizeNw { cursor: nwse-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-top: 3px solid var(--dsw-alias-border-l3); border-top-left-radius: 14px; } .tm_wsFrameResizeNe { cursor: nesw-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-top: 3px solid var(--dsw-alias-border-l3); border-top-right-radius: 14px; } .tm_wsFrameResizeSw { cursor: nesw-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-bottom: 3px solid var(--dsw-alias-border-l3); border-bottom-left-radius: 14px; } .tm_wsFrameResizeSe { cursor: nwse-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-bottom: 3px solid var(--dsw-alias-border-l3); border-bottom-right-radius: 14px; } .tm_batchBar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 24px var(--dsw-alias-bg-mask-2); } .tm_batchCount { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); white-space: nowrap; } .tm_batchSpace { width: 6px; } .tm_batchAction { padding: 5px 14px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-primary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; } .tm_batchAction:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); } .tm_batchAction:disabled { opacity: 0.5; cursor: default; } .tm_batchDanger { color: var(--dsw-alias-state-error-primary); } .tm_pickBox { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--dsw-alias-border-l3); border-radius: 4px; background: var(--dsw-alias-bg-base); color: transparent; font-size: calc(11px + var(--tm-font-step, 0px)); line-height: 1; pointer-events: none; } .tm_pickBoxChecked { border-color: var(--dsw-alias-brand-primary); background: var(--dsw-alias-brand-primary); color: #fff; } .tm_colorToolbar { position: absolute; top: 12px; left: 12px; z-index: 20; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 6px 20px var(--dsw-alias-bg-mask-2); } .tm_colorToolbarLabel { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); margin-right: 2px; white-space: nowrap; } .tm_colorSwatch { width: 16px; height: 16px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 50%; cursor: pointer; } .tm_colorSwatch:hover { transform: scale(1.15); } .tm_colorSwatchClear { display: flex; align-items: center; justify-content: center; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1; } .tm_colorSwatchClear:hover { color: var(--dsw-alias-label-primary); background: var(--dsw-alias-interactive-bg-hover); } .tm_drawerWires { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; } .tm_drawerScroll { position: relative; } .tm_drawerScroll > .tm_card, .tm_drawerScroll > [data-stack-card] { position: relative; z-index: 1; } .tm_canvas .react-flow__edges { z-index: 0 !important; } .tm_canvas .react-flow__nodes { z-index: 1 !important; }`;
|
|
1382
|
+
var __css = `.tm_toggleButton { display: flex; align-items: center; justify-content: center; gap: 6px; width: 32px; height: 32px; padding: 0; border: none; border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; } .tm_toggleButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_toggleButtonActive { background: var(--dsw-alias-interactive-bg-active); color: var(--dsw-alias-brand-primary); } .tm_toggleRow { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: none; border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; text-align: left; } .tm_toggleRow:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_toggleLabel { white-space: nowrap; } .tm_toggleIcon { width: 18px; height: 18px; flex: none; } .tm_panel { height: 100%; min-height: 0; box-sizing: border-box; display: flex; flex-direction: column; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); } .tm_header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-layer-1); flex: none; } .tm_backButton { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 18px 0 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; line-height: 1; cursor: pointer; } .tm_backButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_globalSearch { position: relative; display: flex; align-items: center; gap: 6px; margin-right: 8px; } .tm_globalSearchInput { width: 200px; font: inherit; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 9px; outline: none; } .tm_globalSearchInput:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_globalSearchButton { font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 10px; cursor: pointer; } .tm_globalSearchButton:hover { color: var(--dsw-alias-label-primary); } .tm_globalSearchBackdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-start; justify-content: center; padding-top: 9vh; } .tm_globalSearchPanel { width: min(980px, 92vw); max-height: 76vh; display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5); overflow: hidden; } .tm_globalSearchHead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--dsw-alias-border-l2); } .tm_globalSearchTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_globalSearchBody { padding: 0 16px 14px; overflow-y: auto; overscroll-behavior: contain; } .tm_searchInlineLoading { display: flex; align-items: center; padding: 4px 0 2px 10px; } .tm_searchInlineLoading > span { width: 62%; } .tm_drawerScrollSensor { width: 100%; height: 1px; opacity: 0; } .tm_fontGroup { display: flex; align-items: center; gap: 4px; margin-right: 6px; } .tm_fontButton { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 46px; height: 28px; padding: 0 8px; line-height: 1; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font: inherit; font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_fontButton:hover:not(:disabled) { color: var(--dsw-alias-label-primary); border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_fontButton:disabled { opacity: 0.4; cursor: default; } .tm_fontGlyphSmall, .tm_fontGlyphLarge { display: inline-block; width: calc(9px + 0px); text-align: center; line-height: 1; } .tm_fontGlyphSmall, .tm_fontGlyphLarge { font-size: calc(13px + var(--tm-font-step, 0px)); } .tm_fontSign { display: inline-block; font-size: calc(10px + var(--tm-font-step, 0px)); line-height: 1; transform: translateY(-3px); } .tm_fontReset { min-width: 50px; } .tm_fontReset { min-width: 44px; } .tm_headerSpace { flex: 1; } .tm_langButton { flex: none; min-width: 72px; height: 34px; padding: 0 14px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; } .tm_langButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_closeButton { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; } .tm_closeButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_zoomResetLabel { font-size: calc(9px + var(--tm-font-step, 0px)); font-weight: 700; letter-spacing: -0.5px; } .tm_canvas { flex: 1; min-height: 0; position: relative; } @media (prefers-reduced-motion: reduce) { .tm_canvas .react-flow__edge circle { opacity: 0.28; } } .tm_canvas .react-flow__node { transition: transform 200ms cubic-bezier(0.2, 0.8, 0.25, 1); } .tm_canvas .react-flow__node.dragging, .tm_canvas .react-flow__node.tmDragging { transition: none; } .tm_canvas .react-flow__nodesselection, .tm_canvas .react-flow__nodesselection-rect { display: none !important; pointer-events: none !important; } .tm_card { position: relative; width: 224px; min-height: 104px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 10px; background: var(--dsw-alias-bg-layer-1); color: var(--dsw-alias-label-primary); box-shadow: 0 1px 3px var(--dsw-alias-bg-mask-1); font-size: calc(13px + var(--tm-font-step, 0px)); } .tm_cardSelected { border-color: var(--dsw-alias-brand-primary); } .tm_cardGhost { opacity: 0.55; border-style: dashed; } .tm_cardTop { display: flex; align-items: center; gap: 6px; min-width: 0; } .tm_cardTitle { font-weight: 600; font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; } .tm_runningDot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ffffff; animation: tm_talkmap-pulse 1.6s ease-in-out infinite; } @keyframes tm_talkmap-pulse { 50% { opacity: 0.35; } } .tm_cardNext { display: flex; align-items: baseline; gap: 6px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); min-width: 0; } .tm_cardNextLabel { flex: none; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-brand-primary); font-weight: 600; } .tm_cardNextText { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .tm_cardStale { flex: none; color: var(--dsw-alias-state-warn-primary); font-size: calc(12px + var(--tm-font-step, 0px)); } .tm_cardFooter { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_cardTime { flex: none; } .tm_cardChip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); font-weight: 600; white-space: nowrap; border: 1px solid transparent; } .tm_cardChipRunning { color: #ffffff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); } .tm_cardChipWaiting { color: rgb(245, 178, 46); background: rgba(245, 178, 46, 0.14); border-color: rgba(245, 178, 46, 0.42); } .tm_cardChipDone { color: rgb(52, 199, 89); background: rgba(52, 199, 89, 0.14); border-color: rgba(52, 199, 89, 0.42); } .tm_cardChipError { color: rgb(242, 78, 78); background: rgba(242, 78, 78, 0.14); border-color: rgba(242, 78, 78, 0.45); } .tm_cardChipDraft { color: rgb(255, 197, 61); background: rgba(255, 197, 61, 0.18); border-color: rgba(255, 197, 61, 0.5); } .tm_cardChipInterrupted { color: rgb(214, 158, 92); background: rgba(214, 158, 92, 0.14); border-color: rgba(214, 158, 92, 0.42); } .tm_cardSummary { font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1.45; color: var(--dsw-alias-label-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; } .tm_cardBadgeWaiting { padding: 1px 7px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-warn-label); background: var(--dsw-alias-state-warn-tertiary); } .tm_cardBadgeDone { padding: 1px 7px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-success-primary); background: var(--dsw-alias-state-success-tertiary); } .tm_cardLampRunning { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 0 16px 2px rgba(255, 255, 255, 0.2), 0 0 40px 9px rgba(255, 255, 255, 0.1); } .tm_dialogBackdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(2px); animation: tm_tmFadeIn 140ms ease-out; } .tm_digestDialog { width: min(720px, 86vw); max-height: 82vh; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; border-radius: 14px; background: var(--dsw-alias-bg-elevated, #232323); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); animation: tm_tmRiseIn 200ms cubic-bezier(0.16, 1, 0.3, 1); } .tm_digestDialogHead { display: flex; align-items: baseline; gap: 8px; min-width: 0; } .tm_digestDialogTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_digestDialogFrom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_digestLabel { margin-top: 4px; font-size: calc(10.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary, rgba(255, 255, 255, 0.5)); } .tm_digestText { width: 100%; min-height: 96px; max-height: 30vh; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); color: var(--dsw-alias-label-primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: calc(11.5px + var(--tm-font-step, 0px)); line-height: 1.62; resize: none; } .tm_digestEmpty { padding: 18px 4px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_digestActions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; } .tm_renameBackdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.42); display: flex; align-items: flex-start; justify-content: center; padding-top: 22vh; } .tm_renameDialog { width: min(420px, 90vw); background: var(--dsw-alias-bg-layer-1); border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42); padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 10px; } .tm_renameHeading { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_renameInput { width: 100%; box-sizing: border-box; font: inherit; font-size: calc(13px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 8px 10px; outline: none; } .tm_renameInput:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.35)); } .tm_renameError { font-size: calc(12px + var(--tm-font-step, 0px)); color: rgb(242, 78, 78); } .tm_renameActions { display: flex; justify-content: flex-end; gap: 8px; } .tm_renameButton { font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 6px 12px; cursor: pointer; } .tm_renameButton:hover { color: var(--dsw-alias-label-primary); } .tm_renamePrimary { color: #0b0b0c; background: rgb(255, 214, 106); border-color: rgb(255, 214, 106); } .tm_renamePrimary:disabled { opacity: 0.5; cursor: default; } .tm_cardPin { display: inline-flex; align-items: center; flex: none; color: rgb(255, 214, 106); filter: drop-shadow(0 0 5px rgba(255, 214, 106, 0.85)); animation: tm_talkmap-pin-glow 2.6s ease-in-out infinite; } @keyframes tm_talkmap-pin-glow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 214, 106, 0.6)); opacity: 0.92; } 50% { filter: drop-shadow(0 0 9px rgba(255, 214, 106, 1)); opacity: 1; } } .tm_cardReticle { position: absolute; inset: -5px; pointer-events: none; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45)); } .tm_cardReticle i { position: absolute; width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, 0.9); } .tm_cardReticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; } .tm_cardReticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; } .tm_cardReticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; } .tm_cardReticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; } .tm_cardQuiet { opacity: 0.62; transition: opacity 140ms ease; } .tm_cardQuiet:hover { opacity: 1; } .tm_stackBadgeBusy { color: rgb(255, 197, 61); border-color: rgba(255, 197, 61, 0.5); } @property --tm-ring-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; } .tm_cardLampRunning::after { content: ''; position: absolute; inset: -2px; border-radius: 12px; padding: 2px; background: conic-gradient( from var(--tm-ring-angle), rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 190deg, rgba(255, 255, 255, 0.18) 250deg, rgba(255, 255, 255, 0.55) 292deg, rgba(255, 255, 255, 1) 325deg, rgba(255, 255, 255, 0.4) 352deg, rgba(255, 255, 255, 0) 360deg ); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: tm_talkmap-ring-sweep 1.8s linear infinite; pointer-events: none; } @keyframes tm_talkmap-ring-sweep { to { --tm-ring-angle: 360deg; } } .tm_cardLampDone { animation: tm_talkmap-lamp-green 2.8s ease-in-out infinite; } .tm_cardLampError { animation: tm_talkmap-lamp-red 1.9s ease-in-out infinite; } .tm_cardLampWaiting { animation: tm_talkmap-lamp-amber 3.4s ease-in-out infinite; } @keyframes tm_talkmap-lamp-green { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.40), 0 0 14px 1px rgba(52, 199, 89, 0.26), 0 0 34px 8px rgba(52, 199, 89, 0.11); } 50% { box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.72), 0 0 24px 5px rgba(52, 199, 89, 0.46), 0 0 62px 20px rgba(52, 199, 89, 0.22); } } @keyframes tm_talkmap-lamp-amber { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(245, 178, 46, 0.42), 0 0 14px 1px rgba(245, 178, 46, 0.24), 0 0 34px 8px rgba(245, 178, 46, 0.11); } 50% { box-shadow: inset 0 0 0 1px rgba(245, 178, 46, 0.72), 0 0 24px 5px rgba(245, 178, 46, 0.44), 0 0 60px 19px rgba(245, 178, 46, 0.20); } } @keyframes tm_talkmap-lamp-red { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(242, 78, 78, 0.46), 0 0 14px 1px rgba(242, 78, 78, 0.28), 0 0 34px 8px rgba(242, 78, 78, 0.12); } 50% { box-shadow: inset 0 0 0 1px rgba(242, 78, 78, 0.80), 0 0 26px 6px rgba(242, 78, 78, 0.52), 0 0 66px 22px rgba(242, 78, 78, 0.26); } } .tm_cardRemove { align-self: flex-start; padding: 3px 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 6px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_cardRemove:hover { background: var(--dsw-alias-interactive-bg-hover-danger); color: var(--dsw-alias-state-error-primary); } .tm_cardHandle { width: 10px; height: 10px; background: var(--dsw-alias-border-l3); border: 2px solid var(--dsw-alias-bg-layer-1); opacity: 0; } .tm_card:hover .tm_cardHandle, .tm_canvasConnecting .tm_cardHandle { opacity: 1; } .tm_cardHandle:hover { background: var(--dsw-alias-brand-primary); } .tm_cardRefresh { flex: none; margin-left: auto; width: 22px; height: 22px; padding: 0; border: none; border-radius: 6px; background: transparent; color: var(--dsw-alias-label-tertiary); font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1; cursor: pointer; opacity: 0; transition: opacity 120ms ease; } .tm_card:hover .tm_cardRefresh { opacity: 1; } .tm_cardRefresh:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_cardRefreshBusy { opacity: 1; animation: tm_talkmap-spin 1s linear infinite; } @keyframes tm_talkmap-spin { to { transform: rotate(360deg); } } .tm_spawnPanel { position: absolute; right: 24px; top: 24px; z-index: 6; width: 420px; max-width: calc(100% - 48px); display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 30px var(--dsw-alias-bg-mask-2); } .tm_spawnHeading { font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_spawnFrom { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_spawnModes { display: flex; gap: 6px; } .tm_spawnModeBtn { flex: 1; padding: 5px 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnModeBtn:hover { background: var(--dsw-alias-interactive-bg-hover); } .tm_spawnModeActive { border-color: var(--dsw-alias-brand-primary); color: var(--dsw-alias-brand-primary); background: var(--dsw-alias-interactive-bg-active); } .tm_spawnHint { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_spawnTextarea { width: 100%; resize: vertical; min-height: 140px; padding: 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1.5; font-family: inherit; } .tm_spawnError { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-error-primary); word-break: break-all; } .tm_spawnActions { display: flex; justify-content: flex-end; gap: 8px; } .tm_spawnBtnPrimary { padding: 6px 16px; border: none; border-radius: 8px; background: var(--dsw-alias-button-primary-fill); color: var(--dsw-alias-label-primary-foreground); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnBtnPrimary:hover { background: var(--dsw-alias-button-primary-hover); } .tm_spawnBtnPrimary:disabled { background: var(--dsw-alias-button-primary-dimmed); cursor: default; } .tm_spawnBtnGhost { padding: 6px 16px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnBtnGhost:hover { background: var(--dsw-alias-interactive-bg-hover); } .tm_wsFrame { position: relative; border: 1.5px dashed var(--dsw-alias-border-l2); border-radius: 16px; background: transparent; } .tm_wsFrameBlocked { border-color: rgb(242, 78, 78) !important; box-shadow: 0 0 0 1px rgba(242, 78, 78, 0.45) inset; } .tm_wsFrameSelected { border-style: solid; border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameLabel { position: absolute; top: -12px; left: 14px; display: flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-layer-1); font-size: calc(12px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-secondary); white-space: nowrap; pointer-events: auto; cursor: grab; z-index: 5; } .tm_wsFrameLabel:active { cursor: grabbing; } .tm_wsFrameEdge { position: absolute; pointer-events: auto; cursor: grab; } .tm_wsFrameEdge:active { cursor: grabbing; } .tm_wsFrameCount { font-weight: 400; color: var(--dsw-alias-label-tertiary); } .tm_menu { position: absolute; z-index: 60; min-width: 200px; max-width: 280px; max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 10px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 30px var(--dsw-alias-bg-mask-2); } .tm_menuTitle { flex: none; padding: 4px 10px 6px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_menuSearch { flex: none; box-sizing: border-box; width: calc(100% - 8px); margin: 2px 4px 6px; padding: 5px 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 7px; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font-size: calc(12px + var(--tm-font-step, 0px)); font-family: inherit; } .tm_menuHint { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-dimmed); } .tm_menuPreview { flex: none; padding: 0 10px 4px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); word-break: break-all; } .tm_menuError { flex: none; padding: 0 10px 4px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-error-primary); word-break: break-all; } .tm_menuEmpty { padding: 8px 10px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_menuItem { flex: none; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 10px; border: none; border-radius: 7px; background: transparent; color: var(--dsw-alias-label-primary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tm_menuIcon { flex: none; width: 14px; height: 14px; color: var(--dsw-alias-label-secondary); } .tm_menuItemDanger { color: rgb(242, 78, 78); } .tm_menuItemDanger .tm_menuIcon { color: rgb(242, 78, 78); } .tm_menuItem:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); } .tm_menuItem:disabled { color: var(--dsw-alias-label-dimmed); cursor: default; } .tm_wsFrameHidden { font-weight: 400; color: var(--dsw-alias-state-warn-primary); } .tm_emptyHint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: calc(13px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); pointer-events: none; z-index: 4; } .tm_toast { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 8; max-width: 70%; padding: 7px 16px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 4px 16px var(--dsw-alias-bg-mask-2); font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tm_stackCell { position: relative; width: 224px; height: 104px; cursor: pointer; } .tm_stackSheetBack, .tm_stackSheetMid { position: absolute; inset: 0; border-radius: 12px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); } .tm_stackSheetBack { transform: translate(11px, 11px) scale(0.95); opacity: 0.35; } .tm_stackSheetMid { transform: translate(5px, 5px) scale(0.977); opacity: 0.6; } .tm_stackFace { position: absolute; inset: 0; box-sizing: border-box; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; background: var(--dsw-alias-bg-layer-1); transition: border-color 140ms ease, transform 140ms ease; } .tm_stackCell:hover .tm_stackFace { border-color: var(--dsw-alias-brand-primary); transform: translateY(-1px); } .tm_stackFaceTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } .tm_stackBadge { flex: none; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l2); color: var(--dsw-alias-label-secondary); font-size: calc(11px + var(--tm-font-step, 0px)); font-variant-numeric: tabular-nums; } .tm_drawerBackdrop { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: var(--dsw-alias-bg-mask-2); } .tm_drawer { width: min(1120px, 94%); max-height: 84%; box-sizing: border-box; display: flex; flex-direction: column; border: 1px solid var(--dsw-alias-border-l1); border-radius: 16px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 18px 48px var(--dsw-alias-bg-mask-2); overflow: hidden; } .tm_drawerHead { display: flex; align-items: center; gap: 10px; flex: none; padding: 12px 14px; border-bottom: 1px solid var(--dsw-alias-border-l1); } .tm_drawerTitle { font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_drawerCount { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_drawerSpace { flex: 1; } .tm_drawerHint { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_drawerClose { flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(16px + var(--tm-font-step, 0px)); line-height: 1; cursor: pointer; } .tm_drawerClose:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_drawerHits > .tm_drawerHit { animation: tm_tmPopIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both; } .tm_drawerHits > .tm_drawerHit:nth-child(1) { animation-delay: 20ms; } .tm_drawerHits > .tm_drawerHit:nth-child(2) { animation-delay: 34ms; } .tm_drawerHits > .tm_drawerHit:nth-child(3) { animation-delay: 48ms; } .tm_drawerHits > .tm_drawerHit:nth-child(4) { animation-delay: 62ms; } .tm_drawerHits > .tm_drawerHit:nth-child(5) { animation-delay: 76ms; } .tm_drawerHits > .tm_drawerHit:nth-child(n+6) { animation-delay: 90ms; } .tm_searchLoading { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 2px; } .tm_searchLoadingBar { position: relative; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.07); } .tm_searchLoadingBar > i { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--dsw-alias-brand-primary), transparent); animation: tm_tmSlideBar 1150ms cubic-bezier(0.4, 0, 0.2, 1) infinite; } @keyframes tm_tmSlideBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } } .tm_searchSkeletonRow { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 9px; } .tm_searchSkeletonTitle, .tm_searchSkeletonLine { display: block; height: 9px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05)); background-size: 220% 100%; animation: tm_tmShimmer 1300ms ease-in-out infinite; } .tm_searchSkeletonTitle { width: 38%; } .tm_searchSkeletonLine { width: 78%; } @keyframes tm_tmShimmer { 0% { background-position: 120% 0; } 100% { background-position: -60% 0; } } @media (prefers-reduced-motion: reduce) { .tm_drawerHits > .tm_drawerHit, .tm_searchLoadingBar > i, .tm_searchSkeletonTitle, .tm_searchSkeletonLine { animation: none; } } @keyframes tm_tmFadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes tm_tmFadeOut { from { opacity: 1; } to { opacity: 0; } } @keyframes tm_tmRiseIn { from { opacity: 0; transform: translateY(26px) scale(0.94); } 60% { opacity: 1; } to { opacity: 1; transform: none; } } @keyframes tm_tmRiseOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(0.985); } } @keyframes tm_tmPopIn { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } } @keyframes tm_tmCardIn { from { opacity: 0; transform: translateY(6px) scale(0.99); } to { opacity: 1; transform: none; } } .tm_drawerBackdrop { animation: tm_tmFadeIn 180ms cubic-bezier(0.16, 1, 0.3, 1) both; } .tm_drawerBackdropOut { animation: tm_tmFadeOut 130ms ease-in both; } .tm_drawer { animation: tm_tmRiseIn 260ms cubic-bezier(0.16, 1, 0.3, 1) both; will-change: transform, opacity; } .tm_drawerOut { animation: tm_tmRiseOut 150ms cubic-bezier(0.4, 0, 0.7, 0.2) both; } .tm_globalSearchBackdrop { animation: tm_tmFadeIn 130ms ease-out both; } .tm_globalSearchPanel { animation: tm_tmRiseIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both; will-change: transform, opacity; } .tm_menu { animation: tm_tmPopIn 120ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_card { transition: transform 120ms ease-out, box-shadow 160ms ease-out, opacity 160ms ease-out; } .tm_card:hover { transform: translateY(-1px); } .tm_reactFlowNodeEnter { animation: tm_tmCardIn 170ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_stackCell { transition: transform 120ms ease-out, box-shadow 160ms ease-out; } .tm_stackCell:hover { transform: translateY(-2px); } .tm_wsFrameLabel { transition: color 120ms ease-out, background 120ms ease-out, box-shadow 120ms ease-out; } .tm_wsFrameLabel:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); } .tm_toast { animation: tm_tmRiseIn 160ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_snippetCode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.94em; padding: 0 3px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); } .tm_snippetLink { color: var(--dsw-alias-brand-primary); } @media (prefers-reduced-motion: reduce) { .tm_drawerBackdrop, .tm_drawerBackdropOut, .tm_drawer, .tm_drawerOut, .tm_globalSearchBackdrop, .tm_globalSearchPanel, .tm_menu, .tm_toast, .tm_reactFlowNodeEnter { animation: none; } .tm_card, .tm_stackCell, .tm_wsFrameLabel { transition: none; } .tm_card:hover, .tm_stackCell:hover { transform: none; } } .tm_drawerSearchRow { display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; } .tm_drawerSearch { flex: 1; min-width: 0; font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 6px 10px; outline: none; } .tm_drawerSearch:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_drawerSearchGo { flex: none; font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 10px; cursor: pointer; } .tm_drawerSearchGo:hover { color: var(--dsw-alias-label-primary); } .tm_drawerSearchState { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); flex: none; } .tm_drawerSearchError { flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(11px + var(--tm-font-step, 0px)); color: rgb(242, 78, 78); } .tm_drawerEmpty { grid-column: 1 / -1; padding: 10px 4px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_drawerHits { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--dsw-alias-border-l2); } .tm_drawerHitsHead { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); letter-spacing: 0.04em; } .tm_drawerHit { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 8px 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 9px; background: transparent; color: var(--dsw-alias-label-primary); font: inherit; cursor: pointer; } .tm_drawerHit:hover { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_drawerRoleChip { flex: none; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-size: calc(9.5px + var(--tm-font-step, 0px)); line-height: 1.6; color: var(--dsw-alias-label-secondary); background: rgba(255, 255, 255, 0.07); } .tm_drawerRoleChip[data-talkmap-role="user"] { color: rgba(160, 210, 255, 0.95); background: rgba(90, 160, 255, 0.14); } .tm_hitMark { color: #0b0b0c; background: rgb(255, 214, 106); border-radius: 3px; padding: 0 2px; } .tm_drawerHitHead { display: flex; align-items: center; gap: 6px; min-width: 0; } .tm_drawerAgentChip { flex: none; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l2); font-size: calc(10px + var(--tm-font-step, 0px)); line-height: 1.5; color: var(--dsw-alias-label-secondary); letter-spacing: 0.02em; } .tm_drawerAgentChipSub { color: rgb(255, 214, 106); border-color: rgba(255, 214, 106, 0.5); background: rgba(255, 214, 106, 0.1); } .tm_drawerHitTitle { display: block; width: 100%; text-align: left; font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); background: transparent; border: none; padding: 0 0 2px; cursor: pointer; } .tm_drawerHitTitle:hover { color: var(--dsw-alias-brand-primary); } .tm_peek { position: fixed; z-index: 80; width: min(500px, 88vw); max-height: 42vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); } .tm_peekTitle { font-size: calc(11.5px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-secondary); padding-bottom: 4px; margin-bottom: 2px; border-bottom: 1px solid var(--dsw-alias-border-l2); } .tm_peekLine { font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1.55; color: var(--dsw-alias-label-primary); white-space: pre-wrap; word-break: break-word; } .tm_peekHint { margin-top: 6px; font-size: calc(10.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); opacity: 0.7; } .tm_drawerHitMore { align-self: flex-start; margin-top: 2px; font: inherit; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: none; padding: 2px 0 2px 10px; cursor: pointer; } .tm_drawerHitMore:hover { color: var(--dsw-alias-brand-primary); } .tm_drawerHitBlock { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; padding-left: 2px; } .tm_drawerHitLine { display: block; width: 100%; text-align: left; font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: none; padding: 2px 0 2px 10px; border-left: 2px solid var(--dsw-alias-border-l2); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tm_drawerHitLine:hover { color: var(--dsw-alias-label-primary); border-left-color: var(--dsw-alias-brand-primary); } .tm_drawerScroll { overscroll-behavior: contain; scroll-behavior: auto; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y proximity; display: grid; grid-template-columns: repeat(auto-fill, 224px); justify-content: center; align-content: start; gap: 12px; padding: 16px; } .tm_drawerCard[draggable="true"] { cursor: grab; } .tm_drawerCard[data-talkmap-drag="1"] { cursor: grabbing; opacity: 0.55; transform: scale(0.98); } .tm_cardLinks { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; } .tm_cardLinkChip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; border-radius: 4px; font-size: calc(9.5px + var(--tm-font-step, 0px)); line-height: 1.7; color: var(--dsw-alias-label-secondary); background: rgba(255, 255, 255, 0.06); } .tm_cardLinkChip[data-talkmap-link="out"] { color: rgba(255, 214, 106, 0.9); background: rgba(255, 214, 106, 0.12); } .tm_drawerCard { width: 224px; box-sizing: border-box; scroll-snap-align: start; text-align: left; font: inherit; cursor: pointer; background: var(--dsw-alias-bg-layer-1); } .tm_drawerCard:hover { border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameResize { position: absolute; z-index: 2; pointer-events: auto; opacity: 0.5; } .tm_wsFrameResize:hover { opacity: 1; border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameResizeN { cursor: ns-resize; border-top: 3px solid var(--dsw-alias-border-l3); border-radius: 14px 14px 0 0; } .tm_wsFrameResizeS { cursor: ns-resize; border-bottom: 3px solid var(--dsw-alias-border-l3); border-radius: 0 0 14px 14px; } .tm_wsFrameResizeW { cursor: ew-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-radius: 14px 0 0 14px; } .tm_wsFrameResizeE { cursor: ew-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-radius: 0 14px 14px 0; } .tm_wsFrameResizeNw, .tm_wsFrameResizeNe, .tm_wsFrameResizeSw, .tm_wsFrameResizeSe { width: 26px; height: 26px; z-index: 3; } .tm_wsFrameResizeNw { cursor: nwse-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-top: 3px solid var(--dsw-alias-border-l3); border-top-left-radius: 14px; } .tm_wsFrameResizeNe { cursor: nesw-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-top: 3px solid var(--dsw-alias-border-l3); border-top-right-radius: 14px; } .tm_wsFrameResizeSw { cursor: nesw-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-bottom: 3px solid var(--dsw-alias-border-l3); border-bottom-left-radius: 14px; } .tm_wsFrameResizeSe { cursor: nwse-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-bottom: 3px solid var(--dsw-alias-border-l3); border-bottom-right-radius: 14px; } .tm_batchBar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 24px var(--dsw-alias-bg-mask-2); } .tm_batchCount { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); white-space: nowrap; } .tm_batchSpace { width: 6px; } .tm_batchAction { padding: 5px 14px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-primary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; } .tm_batchAction:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); } .tm_batchAction:disabled { opacity: 0.5; cursor: default; } .tm_batchDanger { color: var(--dsw-alias-state-error-primary); } .tm_pickBox { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--dsw-alias-border-l3); border-radius: 4px; background: var(--dsw-alias-bg-base); color: transparent; font-size: calc(11px + var(--tm-font-step, 0px)); line-height: 1; pointer-events: none; } .tm_pickBoxChecked { border-color: var(--dsw-alias-brand-primary); background: var(--dsw-alias-brand-primary); color: #fff; } .tm_colorToolbar { position: absolute; top: 12px; left: 12px; z-index: 20; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 6px 20px var(--dsw-alias-bg-mask-2); } .tm_colorToolbarLabel { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); margin-right: 2px; white-space: nowrap; } .tm_colorSwatch { width: 16px; height: 16px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 50%; cursor: pointer; } .tm_colorSwatch:hover { transform: scale(1.15); } .tm_colorSwatchClear { display: flex; align-items: center; justify-content: center; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1; } .tm_colorSwatchClear:hover { color: var(--dsw-alias-label-primary); background: var(--dsw-alias-interactive-bg-hover); } .tm_drawerWires { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; } .tm_drawerScroll { position: relative; } .tm_drawerScroll > .tm_card, .tm_drawerScroll > [data-stack-card] { position: relative; z-index: 1; } .tm_canvas .react-flow__edges { z-index: 0 !important; } .tm_canvas .react-flow__nodes { z-index: 1 !important; } .tm_statusRail { position: absolute; left: 0; top: 0; bottom: 0; z-index: 6; pointer-events: none; --rail-card-w: 224px; --rail-pad: 10px; --rail-card-outer: calc(var(--rail-card-w) + 26px); --rail-w: calc(var(--rail-card-outer) + var(--rail-pad) * 2); } .tm_statusRailPanel { position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail-w); box-sizing: border-box; padding: var(--rail-pad); display: flex; flex-direction: column; gap: 8px; background: var(--dsw-alias-bg-elevated, rgba(18, 20, 26, 0.94)); border-right: 1px solid var(--dsw-alias-border-secondary); box-shadow: 6px 0 26px rgba(0, 0, 0, 0.32); backdrop-filter: blur(10px); transform: translateX(-101%); transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 320ms ease; pointer-events: none; } .tm_statusRailOpen .tm_statusRailPanel { transform: translateX(0); pointer-events: auto; } .tm_statusRailHead { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 0; } .tm_statusRailTitle { flex: 1; font-size: 12px; letter-spacing: 0.02em; color: var(--dsw-alias-label-secondary); } .tm_statusRailCount { font-size: 11px; color: var(--dsw-alias-label-tertiary, #6b7280); font-variant-numeric: tabular-nums; } .tm_statusRailList { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 2px 14px; } .tm_statusRailEmpty { padding: 8px 4px; font-size: 12px; line-height: 1.5; color: var(--dsw-alias-label-secondary); } .tm_statusRailSlot { position: relative; } .tm_statusRailSlot[draggable="true"] { cursor: grab; } .tm_statusRailSlot[draggable="true"]:active { cursor: grabbing; } .tm_statusRailCard { width: var(--rail-card-w); min-height: 84px; cursor: pointer; transition: transform 120ms ease, box-shadow 120ms ease; } .tm_statusRailCard:hover { transform: translateY(-1px); } .tm_statusRailTab { position: absolute; top: 50%; left: 0; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 5px; border: 1px solid var(--dsw-alias-border-secondary); border-left: none; border-radius: 0 9px 9px 0; background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-secondary); cursor: pointer; font: inherit; pointer-events: auto; transition: left 320ms cubic-bezier(0.22, 0.61, 0.36, 1), color 140ms ease, background 140ms ease; } .tm_statusRailOpen .tm_statusRailTab { left: calc(var(--rail-w) - 12px); } .tm_statusRailTab:hover { color: var(--dsw-alias-label-primary); background: var(--dsw-alias-interactive-bg-active); } .tm_statusRailTabCount { font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 999px; background: var(--dsw-alias-brand-primary); color: #0b0d12; font-variant-numeric: tabular-nums; }`;
|
|
1367
1383
|
if (typeof document !== "undefined") {
|
|
1368
1384
|
const __selector = "style[data-plugin-css=" + JSON.stringify(__tagId) + "]";
|
|
1369
1385
|
if (document.querySelector(__selector) === null) {
|
|
@@ -1374,7 +1390,7 @@ if (typeof document !== "undefined") {
|
|
|
1374
1390
|
document.head.appendChild(__tag);
|
|
1375
1391
|
}
|
|
1376
1392
|
}
|
|
1377
|
-
var talk_map_default = { "backButton": "tm_backButton", "batchAction": "tm_batchAction", "batchBar": "tm_batchBar", "batchCount": "tm_batchCount", "batchDanger": "tm_batchDanger", "batchSpace": "tm_batchSpace", "canvas": "tm_canvas", "canvasConnecting": "tm_canvasConnecting", "card": "tm_card", "cardBadgeDone": "tm_cardBadgeDone", "cardBadgeWaiting": "tm_cardBadgeWaiting", "cardChip": "tm_cardChip", "cardChipDone": "tm_cardChipDone", "cardChipDraft": "tm_cardChipDraft", "cardChipError": "tm_cardChipError", "cardChipInterrupted": "tm_cardChipInterrupted", "cardChipRunning": "tm_cardChipRunning", "cardChipWaiting": "tm_cardChipWaiting", "cardFooter": "tm_cardFooter", "cardGhost": "tm_cardGhost", "cardHandle": "tm_cardHandle", "cardLampDone": "tm_cardLampDone", "cardLampError": "tm_cardLampError", "cardLampRunning": "tm_cardLampRunning", "cardLampWaiting": "tm_cardLampWaiting", "cardLinkChip": "tm_cardLinkChip", "cardLinks": "tm_cardLinks", "cardNext": "tm_cardNext", "cardNextLabel": "tm_cardNextLabel", "cardNextText": "tm_cardNextText", "cardPin": "tm_cardPin", "cardQuiet": "tm_cardQuiet", "cardRefresh": "tm_cardRefresh", "cardRefreshBusy": "tm_cardRefreshBusy", "cardRemove": "tm_cardRemove", "cardReticle": "tm_cardReticle", "cardSelected": "tm_cardSelected", "cardStale": "tm_cardStale", "cardSummary": "tm_cardSummary", "cardTime": "tm_cardTime", "cardTitle": "tm_cardTitle", "cardTop": "tm_cardTop", "closeButton": "tm_closeButton", "colorSwatch": "tm_colorSwatch", "colorSwatchClear": "tm_colorSwatchClear", "colorToolbar": "tm_colorToolbar", "colorToolbarLabel": "tm_colorToolbarLabel", "dialogBackdrop": "tm_dialogBackdrop", "digestActions": "tm_digestActions", "digestDialog": "tm_digestDialog", "digestDialogFrom": "tm_digestDialogFrom", "digestDialogHead": "tm_digestDialogHead", "digestDialogTitle": "tm_digestDialogTitle", "digestEmpty": "tm_digestEmpty", "digestLabel": "tm_digestLabel", "digestText": "tm_digestText", "drawer": "tm_drawer", "drawerAgentChip": "tm_drawerAgentChip", "drawerAgentChipSub": "tm_drawerAgentChipSub", "drawerBackdrop": "tm_drawerBackdrop", "drawerBackdropOut": "tm_drawerBackdropOut", "drawerCard": "tm_drawerCard", "drawerClose": "tm_drawerClose", "drawerCount": "tm_drawerCount", "drawerEmpty": "tm_drawerEmpty", "drawerHead": "tm_drawerHead", "drawerHint": "tm_drawerHint", "drawerHit": "tm_drawerHit", "drawerHitBlock": "tm_drawerHitBlock", "drawerHitHead": "tm_drawerHitHead", "drawerHitLine": "tm_drawerHitLine", "drawerHitMore": "tm_drawerHitMore", "drawerHitTitle": "tm_drawerHitTitle", "drawerHits": "tm_drawerHits", "drawerHitsHead": "tm_drawerHitsHead", "drawerOut": "tm_drawerOut", "drawerRoleChip": "tm_drawerRoleChip", "drawerScroll": "tm_drawerScroll", "drawerScrollSensor": "tm_drawerScrollSensor", "drawerSearch": "tm_drawerSearch", "drawerSearchError": "tm_drawerSearchError", "drawerSearchGo": "tm_drawerSearchGo", "drawerSearchRow": "tm_drawerSearchRow", "drawerSearchState": "tm_drawerSearchState", "drawerSpace": "tm_drawerSpace", "drawerTitle": "tm_drawerTitle", "drawerWires": "tm_drawerWires", "emptyHint": "tm_emptyHint", "fontButton": "tm_fontButton", "fontGlyphLarge": "tm_fontGlyphLarge", "fontGlyphSmall": "tm_fontGlyphSmall", "fontGroup": "tm_fontGroup", "fontReset": "tm_fontReset", "fontSign": "tm_fontSign", "globalSearch": "tm_globalSearch", "globalSearchBackdrop": "tm_globalSearchBackdrop", "globalSearchBody": "tm_globalSearchBody", "globalSearchButton": "tm_globalSearchButton", "globalSearchHead": "tm_globalSearchHead", "globalSearchInput": "tm_globalSearchInput", "globalSearchPanel": "tm_globalSearchPanel", "globalSearchTitle": "tm_globalSearchTitle", "header": "tm_header", "headerSpace": "tm_headerSpace", "hitMark": "tm_hitMark", "langButton": "tm_langButton", "menu": "tm_menu", "menuEmpty": "tm_menuEmpty", "menuError": "tm_menuError", "menuHint": "tm_menuHint", "menuIcon": "tm_menuIcon", "menuItem": "tm_menuItem", "menuItemDanger": "tm_menuItemDanger", "menuPreview": "tm_menuPreview", "menuSearch": "tm_menuSearch", "menuTitle": "tm_menuTitle", "panel": "tm_panel", "peek": "tm_peek", "peekHint": "tm_peekHint", "peekLine": "tm_peekLine", "peekTitle": "tm_peekTitle", "pickBox": "tm_pickBox", "pickBoxChecked": "tm_pickBoxChecked", "reactFlowNodeEnter": "tm_reactFlowNodeEnter", "renameActions": "tm_renameActions", "renameBackdrop": "tm_renameBackdrop", "renameButton": "tm_renameButton", "renameDialog": "tm_renameDialog", "renameError": "tm_renameError", "renameHeading": "tm_renameHeading", "renameInput": "tm_renameInput", "renamePrimary": "tm_renamePrimary", "runningDot": "tm_runningDot", "searchInlineLoading": "tm_searchInlineLoading", "searchLoading": "tm_searchLoading", "searchLoadingBar": "tm_searchLoadingBar", "searchSkeletonLine": "tm_searchSkeletonLine", "searchSkeletonRow": "tm_searchSkeletonRow", "searchSkeletonTitle": "tm_searchSkeletonTitle", "snippetCode": "tm_snippetCode", "snippetLink": "tm_snippetLink", "spawnActions": "tm_spawnActions", "spawnBtnGhost": "tm_spawnBtnGhost", "spawnBtnPrimary": "tm_spawnBtnPrimary", "spawnError": "tm_spawnError", "spawnFrom": "tm_spawnFrom", "spawnHeading": "tm_spawnHeading", "spawnHint": "tm_spawnHint", "spawnModeActive": "tm_spawnModeActive", "spawnModeBtn": "tm_spawnModeBtn", "spawnModes": "tm_spawnModes", "spawnPanel": "tm_spawnPanel", "spawnTextarea": "tm_spawnTextarea", "stackBadge": "tm_stackBadge", "stackBadgeBusy": "tm_stackBadgeBusy", "stackCell": "tm_stackCell", "stackFace": "tm_stackFace", "stackFaceTitle": "tm_stackFaceTitle", "stackSheetBack": "tm_stackSheetBack", "stackSheetMid": "tm_stackSheetMid", "toast": "tm_toast", "toggleButton": "tm_toggleButton", "toggleButtonActive": "tm_toggleButtonActive", "toggleIcon": "tm_toggleIcon", "toggleLabel": "tm_toggleLabel", "toggleRow": "tm_toggleRow", "wsFrame": "tm_wsFrame", "wsFrameBlocked": "tm_wsFrameBlocked", "wsFrameCount": "tm_wsFrameCount", "wsFrameEdge": "tm_wsFrameEdge", "wsFrameHidden": "tm_wsFrameHidden", "wsFrameLabel": "tm_wsFrameLabel", "wsFrameResize": "tm_wsFrameResize", "wsFrameResizeE": "tm_wsFrameResizeE", "wsFrameResizeN": "tm_wsFrameResizeN", "wsFrameResizeNe": "tm_wsFrameResizeNe", "wsFrameResizeNw": "tm_wsFrameResizeNw", "wsFrameResizeS": "tm_wsFrameResizeS", "wsFrameResizeSe": "tm_wsFrameResizeSe", "wsFrameResizeSw": "tm_wsFrameResizeSw", "wsFrameResizeW": "tm_wsFrameResizeW", "wsFrameSelected": "tm_wsFrameSelected", "zoomResetLabel": "tm_zoomResetLabel" };
|
|
1393
|
+
var talk_map_default = { "backButton": "tm_backButton", "batchAction": "tm_batchAction", "batchBar": "tm_batchBar", "batchCount": "tm_batchCount", "batchDanger": "tm_batchDanger", "batchSpace": "tm_batchSpace", "canvas": "tm_canvas", "canvasConnecting": "tm_canvasConnecting", "card": "tm_card", "cardBadgeDone": "tm_cardBadgeDone", "cardBadgeWaiting": "tm_cardBadgeWaiting", "cardChip": "tm_cardChip", "cardChipDone": "tm_cardChipDone", "cardChipDraft": "tm_cardChipDraft", "cardChipError": "tm_cardChipError", "cardChipInterrupted": "tm_cardChipInterrupted", "cardChipRunning": "tm_cardChipRunning", "cardChipWaiting": "tm_cardChipWaiting", "cardFooter": "tm_cardFooter", "cardGhost": "tm_cardGhost", "cardHandle": "tm_cardHandle", "cardLampDone": "tm_cardLampDone", "cardLampError": "tm_cardLampError", "cardLampRunning": "tm_cardLampRunning", "cardLampWaiting": "tm_cardLampWaiting", "cardLinkChip": "tm_cardLinkChip", "cardLinks": "tm_cardLinks", "cardNext": "tm_cardNext", "cardNextLabel": "tm_cardNextLabel", "cardNextText": "tm_cardNextText", "cardPin": "tm_cardPin", "cardQuiet": "tm_cardQuiet", "cardRefresh": "tm_cardRefresh", "cardRefreshBusy": "tm_cardRefreshBusy", "cardRemove": "tm_cardRemove", "cardReticle": "tm_cardReticle", "cardSelected": "tm_cardSelected", "cardStale": "tm_cardStale", "cardSummary": "tm_cardSummary", "cardTime": "tm_cardTime", "cardTitle": "tm_cardTitle", "cardTop": "tm_cardTop", "closeButton": "tm_closeButton", "colorSwatch": "tm_colorSwatch", "colorSwatchClear": "tm_colorSwatchClear", "colorToolbar": "tm_colorToolbar", "colorToolbarLabel": "tm_colorToolbarLabel", "dialogBackdrop": "tm_dialogBackdrop", "digestActions": "tm_digestActions", "digestDialog": "tm_digestDialog", "digestDialogFrom": "tm_digestDialogFrom", "digestDialogHead": "tm_digestDialogHead", "digestDialogTitle": "tm_digestDialogTitle", "digestEmpty": "tm_digestEmpty", "digestLabel": "tm_digestLabel", "digestText": "tm_digestText", "drawer": "tm_drawer", "drawerAgentChip": "tm_drawerAgentChip", "drawerAgentChipSub": "tm_drawerAgentChipSub", "drawerBackdrop": "tm_drawerBackdrop", "drawerBackdropOut": "tm_drawerBackdropOut", "drawerCard": "tm_drawerCard", "drawerClose": "tm_drawerClose", "drawerCount": "tm_drawerCount", "drawerEmpty": "tm_drawerEmpty", "drawerHead": "tm_drawerHead", "drawerHint": "tm_drawerHint", "drawerHit": "tm_drawerHit", "drawerHitBlock": "tm_drawerHitBlock", "drawerHitHead": "tm_drawerHitHead", "drawerHitLine": "tm_drawerHitLine", "drawerHitMore": "tm_drawerHitMore", "drawerHitTitle": "tm_drawerHitTitle", "drawerHits": "tm_drawerHits", "drawerHitsHead": "tm_drawerHitsHead", "drawerOut": "tm_drawerOut", "drawerRoleChip": "tm_drawerRoleChip", "drawerScroll": "tm_drawerScroll", "drawerScrollSensor": "tm_drawerScrollSensor", "drawerSearch": "tm_drawerSearch", "drawerSearchError": "tm_drawerSearchError", "drawerSearchGo": "tm_drawerSearchGo", "drawerSearchRow": "tm_drawerSearchRow", "drawerSearchState": "tm_drawerSearchState", "drawerSpace": "tm_drawerSpace", "drawerTitle": "tm_drawerTitle", "drawerWires": "tm_drawerWires", "emptyHint": "tm_emptyHint", "fontButton": "tm_fontButton", "fontGlyphLarge": "tm_fontGlyphLarge", "fontGlyphSmall": "tm_fontGlyphSmall", "fontGroup": "tm_fontGroup", "fontReset": "tm_fontReset", "fontSign": "tm_fontSign", "globalSearch": "tm_globalSearch", "globalSearchBackdrop": "tm_globalSearchBackdrop", "globalSearchBody": "tm_globalSearchBody", "globalSearchButton": "tm_globalSearchButton", "globalSearchHead": "tm_globalSearchHead", "globalSearchInput": "tm_globalSearchInput", "globalSearchPanel": "tm_globalSearchPanel", "globalSearchTitle": "tm_globalSearchTitle", "header": "tm_header", "headerSpace": "tm_headerSpace", "hitMark": "tm_hitMark", "langButton": "tm_langButton", "menu": "tm_menu", "menuEmpty": "tm_menuEmpty", "menuError": "tm_menuError", "menuHint": "tm_menuHint", "menuIcon": "tm_menuIcon", "menuItem": "tm_menuItem", "menuItemDanger": "tm_menuItemDanger", "menuPreview": "tm_menuPreview", "menuSearch": "tm_menuSearch", "menuTitle": "tm_menuTitle", "panel": "tm_panel", "peek": "tm_peek", "peekHint": "tm_peekHint", "peekLine": "tm_peekLine", "peekTitle": "tm_peekTitle", "pickBox": "tm_pickBox", "pickBoxChecked": "tm_pickBoxChecked", "reactFlowNodeEnter": "tm_reactFlowNodeEnter", "renameActions": "tm_renameActions", "renameBackdrop": "tm_renameBackdrop", "renameButton": "tm_renameButton", "renameDialog": "tm_renameDialog", "renameError": "tm_renameError", "renameHeading": "tm_renameHeading", "renameInput": "tm_renameInput", "renamePrimary": "tm_renamePrimary", "runningDot": "tm_runningDot", "searchInlineLoading": "tm_searchInlineLoading", "searchLoading": "tm_searchLoading", "searchLoadingBar": "tm_searchLoadingBar", "searchSkeletonLine": "tm_searchSkeletonLine", "searchSkeletonRow": "tm_searchSkeletonRow", "searchSkeletonTitle": "tm_searchSkeletonTitle", "snippetCode": "tm_snippetCode", "snippetLink": "tm_snippetLink", "spawnActions": "tm_spawnActions", "spawnBtnGhost": "tm_spawnBtnGhost", "spawnBtnPrimary": "tm_spawnBtnPrimary", "spawnError": "tm_spawnError", "spawnFrom": "tm_spawnFrom", "spawnHeading": "tm_spawnHeading", "spawnHint": "tm_spawnHint", "spawnModeActive": "tm_spawnModeActive", "spawnModeBtn": "tm_spawnModeBtn", "spawnModes": "tm_spawnModes", "spawnPanel": "tm_spawnPanel", "spawnTextarea": "tm_spawnTextarea", "stackBadge": "tm_stackBadge", "stackBadgeBusy": "tm_stackBadgeBusy", "stackCell": "tm_stackCell", "stackFace": "tm_stackFace", "stackFaceTitle": "tm_stackFaceTitle", "stackSheetBack": "tm_stackSheetBack", "stackSheetMid": "tm_stackSheetMid", "statusRail": "tm_statusRail", "statusRailCard": "tm_statusRailCard", "statusRailCount": "tm_statusRailCount", "statusRailEmpty": "tm_statusRailEmpty", "statusRailHead": "tm_statusRailHead", "statusRailList": "tm_statusRailList", "statusRailOpen": "tm_statusRailOpen", "statusRailPanel": "tm_statusRailPanel", "statusRailSlot": "tm_statusRailSlot", "statusRailTab": "tm_statusRailTab", "statusRailTabCount": "tm_statusRailTabCount", "statusRailTitle": "tm_statusRailTitle", "toast": "tm_toast", "toggleButton": "tm_toggleButton", "toggleButtonActive": "tm_toggleButtonActive", "toggleIcon": "tm_toggleIcon", "toggleLabel": "tm_toggleLabel", "toggleRow": "tm_toggleRow", "wsFrame": "tm_wsFrame", "wsFrameBlocked": "tm_wsFrameBlocked", "wsFrameCount": "tm_wsFrameCount", "wsFrameEdge": "tm_wsFrameEdge", "wsFrameHidden": "tm_wsFrameHidden", "wsFrameLabel": "tm_wsFrameLabel", "wsFrameResize": "tm_wsFrameResize", "wsFrameResizeE": "tm_wsFrameResizeE", "wsFrameResizeN": "tm_wsFrameResizeN", "wsFrameResizeNe": "tm_wsFrameResizeNe", "wsFrameResizeNw": "tm_wsFrameResizeNw", "wsFrameResizeS": "tm_wsFrameResizeS", "wsFrameResizeSe": "tm_wsFrameResizeSe", "wsFrameResizeSw": "tm_wsFrameResizeSw", "wsFrameResizeW": "tm_wsFrameResizeW", "wsFrameSelected": "tm_wsFrameSelected", "zoomResetLabel": "tm_zoomResetLabel" };
|
|
1378
1394
|
|
|
1379
1395
|
// src/client/markdown-inline.tsx
|
|
1380
1396
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1651,7 +1667,7 @@ function GlobalSearch(props) {
|
|
|
1651
1667
|
}
|
|
1652
1668
|
|
|
1653
1669
|
// src/client/MapCanvas.tsx
|
|
1654
|
-
var
|
|
1670
|
+
var import_react13 = require("react");
|
|
1655
1671
|
|
|
1656
1672
|
// node_modules/@xyflow/react/dist/esm/index.js
|
|
1657
1673
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
@@ -13654,8 +13670,198 @@ function StackNode(props) {
|
|
|
13654
13670
|
);
|
|
13655
13671
|
}
|
|
13656
13672
|
|
|
13657
|
-
// src/client/
|
|
13673
|
+
// src/client/StatusRail.tsx
|
|
13658
13674
|
var import_react11 = require("react");
|
|
13675
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
13676
|
+
var OPEN_KEY = "dsh.talk-map.status-rail.open.v1";
|
|
13677
|
+
var ORDER_KEY = "dsh.talk-map.status-rail.order.v1";
|
|
13678
|
+
var LAMP_CLASS3 = {
|
|
13679
|
+
running: "cardLampRunning",
|
|
13680
|
+
done: "cardLampDone",
|
|
13681
|
+
error: "cardLampError",
|
|
13682
|
+
waiting: "cardLampWaiting"
|
|
13683
|
+
};
|
|
13684
|
+
function readOpen() {
|
|
13685
|
+
if (typeof window === "undefined") return false;
|
|
13686
|
+
try {
|
|
13687
|
+
return window.localStorage.getItem(OPEN_KEY) === "1";
|
|
13688
|
+
} catch {
|
|
13689
|
+
return false;
|
|
13690
|
+
}
|
|
13691
|
+
}
|
|
13692
|
+
function writeOpen(open) {
|
|
13693
|
+
try {
|
|
13694
|
+
window.localStorage.setItem(OPEN_KEY, open ? "1" : "0");
|
|
13695
|
+
} catch {
|
|
13696
|
+
}
|
|
13697
|
+
}
|
|
13698
|
+
function readOrder() {
|
|
13699
|
+
if (typeof window === "undefined") return [];
|
|
13700
|
+
try {
|
|
13701
|
+
const raw = window.localStorage.getItem(ORDER_KEY);
|
|
13702
|
+
const parsed = raw === null ? [] : JSON.parse(raw);
|
|
13703
|
+
return Array.isArray(parsed) ? parsed.filter((item) => typeof item === "string") : [];
|
|
13704
|
+
} catch {
|
|
13705
|
+
return [];
|
|
13706
|
+
}
|
|
13707
|
+
}
|
|
13708
|
+
function writeOrder(order) {
|
|
13709
|
+
try {
|
|
13710
|
+
window.localStorage.setItem(ORDER_KEY, JSON.stringify(order));
|
|
13711
|
+
} catch {
|
|
13712
|
+
}
|
|
13713
|
+
}
|
|
13714
|
+
function StatusRail(props) {
|
|
13715
|
+
const [open, setOpen] = (0, import_react11.useState)(() => readOpen());
|
|
13716
|
+
const [order, setOrder] = (0, import_react11.useState)(() => readOrder());
|
|
13717
|
+
const seenRef = (0, import_react11.useRef)(/* @__PURE__ */ new Map());
|
|
13718
|
+
const dragFrom = (0, import_react11.useRef)(null);
|
|
13719
|
+
const signature = (0, import_react11.useMemo)(
|
|
13720
|
+
() => props.entries.map((entry) => `${entry.cardId}:${entry.lamp}:${entry.stamp}`).join("|"),
|
|
13721
|
+
[props.entries]
|
|
13722
|
+
);
|
|
13723
|
+
(0, import_react11.useEffect)(() => {
|
|
13724
|
+
const seen = seenRef.current;
|
|
13725
|
+
const fresh = [];
|
|
13726
|
+
for (const entry of props.entries) {
|
|
13727
|
+
const before = seen.get(entry.cardId);
|
|
13728
|
+
const now2 = `${entry.lamp}:${entry.stamp}`;
|
|
13729
|
+
if (before !== void 0 && before !== now2) fresh.push(entry.cardId);
|
|
13730
|
+
seen.set(entry.cardId, now2);
|
|
13731
|
+
}
|
|
13732
|
+
const alive = new Set(props.entries.map((entry) => entry.cardId));
|
|
13733
|
+
setOrder((current) => {
|
|
13734
|
+
const kept = current.filter((cardId) => alive.has(cardId));
|
|
13735
|
+
const next = [.../* @__PURE__ */ new Set([...fresh.reverse(), ...kept])];
|
|
13736
|
+
for (const entry of props.entries) {
|
|
13737
|
+
if (!next.includes(entry.cardId)) next.push(entry.cardId);
|
|
13738
|
+
}
|
|
13739
|
+
if (next.length === kept.length && next.every((cardId, index2) => cardId === kept[index2])) return kept;
|
|
13740
|
+
writeOrder(next);
|
|
13741
|
+
return next;
|
|
13742
|
+
});
|
|
13743
|
+
for (const cardId of [...seen.keys()]) {
|
|
13744
|
+
if (!alive.has(cardId)) seen.delete(cardId);
|
|
13745
|
+
}
|
|
13746
|
+
}, [signature]);
|
|
13747
|
+
const ordered = (0, import_react11.useMemo)(() => {
|
|
13748
|
+
const byId2 = new Map(props.entries.map((entry) => [entry.cardId, entry]));
|
|
13749
|
+
const rows = [];
|
|
13750
|
+
for (const cardId of order) {
|
|
13751
|
+
const entry = byId2.get(cardId);
|
|
13752
|
+
if (entry !== void 0) rows.push(entry);
|
|
13753
|
+
}
|
|
13754
|
+
for (const entry of props.entries) {
|
|
13755
|
+
if (!order.includes(entry.cardId)) rows.push(entry);
|
|
13756
|
+
}
|
|
13757
|
+
return rows;
|
|
13758
|
+
}, [order, props.entries]);
|
|
13759
|
+
const toggle = (0, import_react11.useCallback)(() => {
|
|
13760
|
+
setOpen((current) => {
|
|
13761
|
+
writeOpen(!current);
|
|
13762
|
+
return !current;
|
|
13763
|
+
});
|
|
13764
|
+
}, []);
|
|
13765
|
+
const move = (0, import_react11.useCallback)((from, to) => {
|
|
13766
|
+
if (from === to) return;
|
|
13767
|
+
setOrder((current) => {
|
|
13768
|
+
const rest = current.filter((cardId) => cardId !== from);
|
|
13769
|
+
const at = rest.indexOf(to);
|
|
13770
|
+
if (at < 0) return current;
|
|
13771
|
+
const next = [...rest.slice(0, at), from, ...rest.slice(at)];
|
|
13772
|
+
writeOrder(next);
|
|
13773
|
+
return next;
|
|
13774
|
+
});
|
|
13775
|
+
}, []);
|
|
13776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
13777
|
+
"div",
|
|
13778
|
+
{
|
|
13779
|
+
className: `${talk_map_default["statusRail"]}${open ? ` ${talk_map_default["statusRailOpen"]}` : ""}`,
|
|
13780
|
+
style: { ["--rail-card-w"]: `${props.cardWidth}px` },
|
|
13781
|
+
children: [
|
|
13782
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: talk_map_default["statusRailPanel"], "aria-hidden": !open, children: [
|
|
13783
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: talk_map_default["statusRailHead"], children: [
|
|
13784
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: talk_map_default["statusRailTitle"], children: t("statusRail.title") }),
|
|
13785
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: talk_map_default["statusRailCount"], children: props.entries.length })
|
|
13786
|
+
] }),
|
|
13787
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: talk_map_default["statusRailList"], role: "list", children: [
|
|
13788
|
+
ordered.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: talk_map_default["statusRailEmpty"], children: t("statusRail.empty") }) : null,
|
|
13789
|
+
ordered.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
13790
|
+
"div",
|
|
13791
|
+
{
|
|
13792
|
+
role: "listitem",
|
|
13793
|
+
className: talk_map_default["statusRailSlot"],
|
|
13794
|
+
draggable: true,
|
|
13795
|
+
onDragStart: (event) => {
|
|
13796
|
+
dragFrom.current = entry.cardId;
|
|
13797
|
+
event.dataTransfer.effectAllowed = "move";
|
|
13798
|
+
event.dataTransfer.setData("text/plain", entry.cardId);
|
|
13799
|
+
},
|
|
13800
|
+
onDragOver: (event) => {
|
|
13801
|
+
if (dragFrom.current === null) return;
|
|
13802
|
+
event.preventDefault();
|
|
13803
|
+
event.dataTransfer.dropEffect = "move";
|
|
13804
|
+
},
|
|
13805
|
+
onDrop: (event) => {
|
|
13806
|
+
event.preventDefault();
|
|
13807
|
+
const from = dragFrom.current ?? event.dataTransfer.getData("text/plain");
|
|
13808
|
+
dragFrom.current = null;
|
|
13809
|
+
if (from !== "") move(from, entry.cardId);
|
|
13810
|
+
},
|
|
13811
|
+
onDragEnd: () => {
|
|
13812
|
+
dragFrom.current = null;
|
|
13813
|
+
},
|
|
13814
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
13815
|
+
"div",
|
|
13816
|
+
{
|
|
13817
|
+
className: `${talk_map_default["card"]} ${talk_map_default[LAMP_CLASS3[entry.lamp]] ?? ""} ${talk_map_default["statusRailCard"]}`,
|
|
13818
|
+
onClick: () => {
|
|
13819
|
+
props.onFocus(entry.cardId);
|
|
13820
|
+
},
|
|
13821
|
+
title: entry.title,
|
|
13822
|
+
children: [
|
|
13823
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: talk_map_default["cardTop"], children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: talk_map_default["cardTitle"], children: entry.title }) }),
|
|
13824
|
+
entry.preview !== void 0 && entry.preview !== "" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: talk_map_default["cardSummary"], children: entry.preview }) : null,
|
|
13825
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: talk_map_default["cardFooter"], children: [
|
|
13826
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: talk_map_default["cardTime"], children: relativeTime(entry.updatedAt) }),
|
|
13827
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: `${talk_map_default["cardChip"]} ${talk_map_default[LAMP_CHIP[entry.lamp].className]}`, children: [
|
|
13828
|
+
LAMP_CHIP[entry.lamp].dot ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: talk_map_default["runningDot"] }) : null,
|
|
13829
|
+
t(LAMP_CHIP[entry.lamp].key)
|
|
13830
|
+
] })
|
|
13831
|
+
] })
|
|
13832
|
+
]
|
|
13833
|
+
}
|
|
13834
|
+
)
|
|
13835
|
+
},
|
|
13836
|
+
entry.cardId
|
|
13837
|
+
))
|
|
13838
|
+
] })
|
|
13839
|
+
] }),
|
|
13840
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
13841
|
+
"button",
|
|
13842
|
+
{
|
|
13843
|
+
type: "button",
|
|
13844
|
+
className: talk_map_default["statusRailTab"],
|
|
13845
|
+
"aria-expanded": open,
|
|
13846
|
+
"aria-label": open ? t("statusRail.close") : t("statusRail.open"),
|
|
13847
|
+
title: open ? t("statusRail.close") : t("statusRail.open"),
|
|
13848
|
+
onClick: toggle,
|
|
13849
|
+
children: [
|
|
13850
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { viewBox: "0 0 12 14", width: "12", height: "14", "aria-hidden": "true", children: [
|
|
13851
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("rect", { x: "1.6", y: "1.5", width: "2.1", height: "11", rx: "1.05", fill: "currentColor" }),
|
|
13852
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("rect", { x: "8.3", y: "1.5", width: "2.1", height: "11", rx: "1.05", fill: "currentColor" })
|
|
13853
|
+
] }),
|
|
13854
|
+
props.entries.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: talk_map_default["statusRailTabCount"], children: props.entries.length }) : null
|
|
13855
|
+
]
|
|
13856
|
+
}
|
|
13857
|
+
)
|
|
13858
|
+
]
|
|
13859
|
+
}
|
|
13860
|
+
);
|
|
13861
|
+
}
|
|
13862
|
+
|
|
13863
|
+
// src/client/use-dark.ts
|
|
13864
|
+
var import_react12 = require("react");
|
|
13659
13865
|
var DARK_ATTRIBUTE = "data-ds-dark-theme";
|
|
13660
13866
|
function subscribe(listener) {
|
|
13661
13867
|
if (typeof document === "undefined") return () => {
|
|
@@ -13671,11 +13877,11 @@ function getSnapshot() {
|
|
|
13671
13877
|
return document.body.hasAttribute(DARK_ATTRIBUTE);
|
|
13672
13878
|
}
|
|
13673
13879
|
function useDsDarkTheme() {
|
|
13674
|
-
return (0,
|
|
13880
|
+
return (0, import_react12.useSyncExternalStore)(subscribe, getSnapshot);
|
|
13675
13881
|
}
|
|
13676
13882
|
|
|
13677
13883
|
// src/client/MapCanvas.tsx
|
|
13678
|
-
var
|
|
13884
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
13679
13885
|
var TALK_MAP_EDGE_TYPE = "talkMap";
|
|
13680
13886
|
var nodeTypes = {
|
|
13681
13887
|
sessionCard: SessionCardNode,
|
|
@@ -13730,14 +13936,14 @@ function fitRect(members) {
|
|
|
13730
13936
|
}
|
|
13731
13937
|
function CanvasInner(props) {
|
|
13732
13938
|
const dark = useDsDarkTheme();
|
|
13733
|
-
const canvasState = (0,
|
|
13939
|
+
const canvasState = (0, import_react13.useSyncExternalStore)(canvas.subscribe, canvas.get);
|
|
13734
13940
|
const sessions = props.useSessions((state3) => state3);
|
|
13735
13941
|
const workspaces = props.useWorkspaces((state3) => state3);
|
|
13736
13942
|
const statusById = typeof props.useSessionStatus === "function" ? props.useSessionStatus((status) => status) : EMPTY_SESSION_STATUS;
|
|
13737
|
-
const alertById = (0,
|
|
13738
|
-
const finishedById = (0,
|
|
13739
|
-
const interruptedById = (0,
|
|
13740
|
-
(0,
|
|
13943
|
+
const alertById = (0, import_react13.useSyncExternalStore)(sessionAlerts.subscribe, sessionAlerts.getSnapshot);
|
|
13944
|
+
const finishedById = (0, import_react13.useSyncExternalStore)(sessionActivity.subscribe, sessionActivity.getSnapshot);
|
|
13945
|
+
const interruptedById = (0, import_react13.useSyncExternalStore)(sessionActivity.subscribe, sessionActivity.getInterrupted);
|
|
13946
|
+
(0, import_react13.useEffect)(() => {
|
|
13741
13947
|
const onUnload = () => {
|
|
13742
13948
|
sessionActivity.recordShutdown(statusById, sessions.byId);
|
|
13743
13949
|
};
|
|
@@ -13746,14 +13952,14 @@ function CanvasInner(props) {
|
|
|
13746
13952
|
window.removeEventListener("beforeunload", onUnload);
|
|
13747
13953
|
};
|
|
13748
13954
|
}, [statusById, sessions]);
|
|
13749
|
-
(0,
|
|
13955
|
+
(0, import_react13.useEffect)(() => {
|
|
13750
13956
|
sessionActivity.beginPanelSession();
|
|
13751
13957
|
}, []);
|
|
13752
|
-
(0,
|
|
13958
|
+
(0, import_react13.useEffect)(() => {
|
|
13753
13959
|
sessionActivity.observe(statusById, sessions.byId);
|
|
13754
13960
|
}, [statusById, sessions]);
|
|
13755
|
-
const draftSessions = (0,
|
|
13756
|
-
(0,
|
|
13961
|
+
const draftSessions = (0, import_react13.useSyncExternalStore)(draftWatch.subscribe, draftWatch.getSnapshot);
|
|
13962
|
+
(0, import_react13.useEffect)(() => {
|
|
13757
13963
|
draftWatch.refresh();
|
|
13758
13964
|
const timer4 = setInterval(() => {
|
|
13759
13965
|
draftWatch.refresh();
|
|
@@ -13762,22 +13968,22 @@ function CanvasInner(props) {
|
|
|
13762
13968
|
clearInterval(timer4);
|
|
13763
13969
|
};
|
|
13764
13970
|
}, []);
|
|
13765
|
-
const [previews, setPreviews] = (0,
|
|
13766
|
-
const previewStamp = (0,
|
|
13971
|
+
const [previews, setPreviews] = (0, import_react13.useState)(readPreviewTexts);
|
|
13972
|
+
const previewStamp = (0, import_react13.useRef)(
|
|
13767
13973
|
// Only entries that still make a usable body count as cached: a rule fix that
|
|
13768
13974
|
// empties an old entry must trigger a refetch, not leave a blank card.
|
|
13769
13975
|
new Map(Object.entries(loadPreviewCache()).filter(([, entry]) => typeof entry?.text === "string" && cleanPreviewText(entry.text) !== "").map(([sessionId, entry]) => [sessionId, entry.stamp]))
|
|
13770
13976
|
);
|
|
13771
|
-
const { screenToFlowPosition, zoomTo, setNodes } = useReactFlow();
|
|
13772
|
-
const [selectedIds, setSelectedIds] = (0,
|
|
13773
|
-
const [selectedEdgeIds, setSelectedEdgeIds] = (0,
|
|
13774
|
-
const [connecting, setConnecting] = (0,
|
|
13775
|
-
const connectCancelledRef = (0,
|
|
13776
|
-
const [toast, setToast] = (0,
|
|
13777
|
-
const toastTimer = (0,
|
|
13778
|
-
const [pendingSpawn, setPendingSpawn] = (0,
|
|
13779
|
-
const [menu, setMenu] = (0,
|
|
13780
|
-
const [drawer, setDrawer] = (0,
|
|
13977
|
+
const { screenToFlowPosition, zoomTo, setNodes, setCenter, getZoom } = useReactFlow();
|
|
13978
|
+
const [selectedIds, setSelectedIds] = (0, import_react13.useState)(/* @__PURE__ */ new Set());
|
|
13979
|
+
const [selectedEdgeIds, setSelectedEdgeIds] = (0, import_react13.useState)(/* @__PURE__ */ new Set());
|
|
13980
|
+
const [connecting, setConnecting] = (0, import_react13.useState)(false);
|
|
13981
|
+
const connectCancelledRef = (0, import_react13.useRef)(false);
|
|
13982
|
+
const [toast, setToast] = (0, import_react13.useState)(null);
|
|
13983
|
+
const toastTimer = (0, import_react13.useRef)(void 0);
|
|
13984
|
+
const [pendingSpawn, setPendingSpawn] = (0, import_react13.useState)(null);
|
|
13985
|
+
const [menu, setMenu] = (0, import_react13.useState)(null);
|
|
13986
|
+
const [drawer, setDrawer] = (0, import_react13.useState)(() => {
|
|
13781
13987
|
const remembered = drawerState.readGroup();
|
|
13782
13988
|
return remembered === null ? null : { groupId: remembered };
|
|
13783
13989
|
});
|
|
@@ -13785,11 +13991,11 @@ function CanvasInner(props) {
|
|
|
13785
13991
|
setDrawer(null);
|
|
13786
13992
|
drawerState.clear();
|
|
13787
13993
|
};
|
|
13788
|
-
const [digestTarget, setDigestTarget] = (0,
|
|
13789
|
-
const [pushEpoch, setPushEpoch] = (0,
|
|
13994
|
+
const [digestTarget, setDigestTarget] = (0, import_react13.useState)(null);
|
|
13995
|
+
const [pushEpoch, setPushEpoch] = (0, import_react13.useState)(0);
|
|
13790
13996
|
const LINEAGE_KEY = "dsh.talk-map.lineage-hidden.v1";
|
|
13791
13997
|
const LINEAGE_CUT_KEY = "dsh.talk-map.lineage-cut.v1";
|
|
13792
|
-
const [lineageCut, setLineageCut] = (0,
|
|
13998
|
+
const [lineageCut, setLineageCut] = (0, import_react13.useState)(() => {
|
|
13793
13999
|
try {
|
|
13794
14000
|
const raw = window.localStorage.getItem(LINEAGE_CUT_KEY);
|
|
13795
14001
|
const parsed = raw === null ? [] : JSON.parse(raw);
|
|
@@ -13810,7 +14016,7 @@ function CanvasInner(props) {
|
|
|
13810
14016
|
return next;
|
|
13811
14017
|
});
|
|
13812
14018
|
};
|
|
13813
|
-
const [lineageHidden, setLineageHiddenState] = (0,
|
|
14019
|
+
const [lineageHidden, setLineageHiddenState] = (0, import_react13.useState)(() => {
|
|
13814
14020
|
try {
|
|
13815
14021
|
return localStorage.getItem("dsh.talk-map.lineage-hidden.v1") === "1";
|
|
13816
14022
|
} catch {
|
|
@@ -13824,34 +14030,34 @@ function CanvasInner(props) {
|
|
|
13824
14030
|
} catch {
|
|
13825
14031
|
}
|
|
13826
14032
|
};
|
|
13827
|
-
const [renameTarget, setRenameTarget] = (0,
|
|
13828
|
-
const [renamedTitles, setRenamedTitles] = (0,
|
|
13829
|
-
const [renamedWorkspaces, setRenamedWorkspaces] = (0,
|
|
13830
|
-
const [batchMode, setBatchMode] = (0,
|
|
13831
|
-
const [batchPicks, setBatchPicks] = (0,
|
|
13832
|
-
const [batchBusy, setBatchBusy] = (0,
|
|
13833
|
-
const wrapperRef = (0,
|
|
13834
|
-
const [draggingCardId, setDraggingCardId] = (0,
|
|
13835
|
-
const [liveFrame, setLiveFrame] = (0,
|
|
13836
|
-
const [blockedFrame, setBlockedFrame] = (0,
|
|
13837
|
-
const [dragCenter, setDragCenter] = (0,
|
|
13838
|
-
const [isSelecting, setIsSelecting] = (0,
|
|
13839
|
-
const frozenRef = (0,
|
|
13840
|
-
const locale = (0,
|
|
13841
|
-
const sessionWs = (0,
|
|
13842
|
-
const wsTitles = (0,
|
|
14033
|
+
const [renameTarget, setRenameTarget] = (0, import_react13.useState)(null);
|
|
14034
|
+
const [renamedTitles, setRenamedTitles] = (0, import_react13.useState)({});
|
|
14035
|
+
const [renamedWorkspaces, setRenamedWorkspaces] = (0, import_react13.useState)({});
|
|
14036
|
+
const [batchMode, setBatchMode] = (0, import_react13.useState)(false);
|
|
14037
|
+
const [batchPicks, setBatchPicks] = (0, import_react13.useState)(/* @__PURE__ */ new Set());
|
|
14038
|
+
const [batchBusy, setBatchBusy] = (0, import_react13.useState)(false);
|
|
14039
|
+
const wrapperRef = (0, import_react13.useRef)(null);
|
|
14040
|
+
const [draggingCardId, setDraggingCardId] = (0, import_react13.useState)(null);
|
|
14041
|
+
const [liveFrame, setLiveFrame] = (0, import_react13.useState)(null);
|
|
14042
|
+
const [blockedFrame, setBlockedFrame] = (0, import_react13.useState)(null);
|
|
14043
|
+
const [dragCenter, setDragCenter] = (0, import_react13.useState)(null);
|
|
14044
|
+
const [isSelecting, setIsSelecting] = (0, import_react13.useState)(false);
|
|
14045
|
+
const frozenRef = (0, import_react13.useRef)(null);
|
|
14046
|
+
const locale = (0, import_react13.useSyncExternalStore)(subscribeLocale, activeLocale, activeLocale);
|
|
14047
|
+
const sessionWs = (0, import_react13.useMemo)(() => sessionWorkspaceIndex(workspaces), [workspaces]);
|
|
14048
|
+
const wsTitles = (0, import_react13.useMemo)(
|
|
13843
14049
|
() => new Map(workspaces.items.map((item) => [item.workspaceId, item.title])),
|
|
13844
14050
|
[workspaces]
|
|
13845
14051
|
);
|
|
13846
14052
|
const workspacesReady = workspaces.baselinesReady !== false;
|
|
13847
|
-
const pinnedSessions = (0,
|
|
13848
|
-
const boardSessionIds = (0,
|
|
14053
|
+
const pinnedSessions = (0, import_react13.useMemo)(() => new Set(workspaces.pinnedSessionIds ?? []), [workspaces]);
|
|
14054
|
+
const boardSessionIds = (0, import_react13.useMemo)(
|
|
13849
14055
|
() => new Set(Object.values(canvasState.cards).map((card) => card.sessionId)),
|
|
13850
14056
|
[canvasState.cards]
|
|
13851
14057
|
);
|
|
13852
14058
|
const wsFrames = canvasState.global?.wsFrames ?? {};
|
|
13853
14059
|
const layoutVersion = canvasState.global?.layoutVersion ?? 1;
|
|
13854
|
-
(0,
|
|
14060
|
+
(0, import_react13.useEffect)(() => {
|
|
13855
14061
|
if (canvasState.phase !== "ready" || layoutVersion >= LAYOUT_VERSION || !workspacesReady) return;
|
|
13856
14062
|
const byGroup = /* @__PURE__ */ new Map();
|
|
13857
14063
|
for (const card of Object.values(canvasState.cards)) {
|
|
@@ -13870,7 +14076,7 @@ function CanvasInner(props) {
|
|
|
13870
14076
|
}
|
|
13871
14077
|
canvas.patchGlobalNow({ layoutVersion: LAYOUT_VERSION, wsFrames: framesNext });
|
|
13872
14078
|
}, [canvasState.phase, layoutVersion, workspacesReady, canvasState.cards, canvasState.global, sessionWs]);
|
|
13873
|
-
const visibleCards = (0,
|
|
14079
|
+
const visibleCards = (0, import_react13.useMemo)(() => {
|
|
13874
14080
|
const out = {};
|
|
13875
14081
|
for (const [cardId, card] of Object.entries(canvasState.cards)) {
|
|
13876
14082
|
if (sessions.byId[card.sessionId]?.blank === true) continue;
|
|
@@ -13878,11 +14084,11 @@ function CanvasInner(props) {
|
|
|
13878
14084
|
}
|
|
13879
14085
|
return out;
|
|
13880
14086
|
}, [canvasState.cards, sessions]);
|
|
13881
|
-
const previewInputs = (0,
|
|
14087
|
+
const previewInputs = (0, import_react13.useRef)({ cards: visibleCards, sessions });
|
|
13882
14088
|
previewInputs.current = { cards: visibleCards, sessions };
|
|
13883
|
-
const previewTick = (0,
|
|
14089
|
+
const previewTick = (0, import_react13.useRef)(() => {
|
|
13884
14090
|
});
|
|
13885
|
-
(0,
|
|
14091
|
+
(0, import_react13.useEffect)(() => {
|
|
13886
14092
|
const tick = () => {
|
|
13887
14093
|
const { cards, sessions: latest } = previewInputs.current;
|
|
13888
14094
|
const pending = [];
|
|
@@ -13914,10 +14120,10 @@ function CanvasInner(props) {
|
|
|
13914
14120
|
clearInterval(timer4);
|
|
13915
14121
|
};
|
|
13916
14122
|
}, []);
|
|
13917
|
-
(0,
|
|
14123
|
+
(0, import_react13.useEffect)(() => {
|
|
13918
14124
|
previewTick.current();
|
|
13919
14125
|
}, [visibleCards]);
|
|
13920
|
-
const membersByGroup = (0,
|
|
14126
|
+
const membersByGroup = (0, import_react13.useMemo)(() => {
|
|
13921
14127
|
const index2 = /* @__PURE__ */ new Map();
|
|
13922
14128
|
for (const [cardId, card] of Object.entries(visibleCards)) {
|
|
13923
14129
|
const groupId = sessionWs.get(card.sessionId);
|
|
@@ -13926,7 +14132,7 @@ function CanvasInner(props) {
|
|
|
13926
14132
|
}
|
|
13927
14133
|
return index2;
|
|
13928
14134
|
}, [visibleCards, sessionWs]);
|
|
13929
|
-
const frameRects = (0,
|
|
14135
|
+
const frameRects = (0, import_react13.useMemo)(() => {
|
|
13930
14136
|
const out = {};
|
|
13931
14137
|
for (const [groupId, stored] of Object.entries(wsFrames)) {
|
|
13932
14138
|
const base = liveFrame !== null && liveFrame.groupId === groupId ? liveFrame.rect : stored;
|
|
@@ -13934,7 +14140,7 @@ function CanvasInner(props) {
|
|
|
13934
14140
|
}
|
|
13935
14141
|
return out;
|
|
13936
14142
|
}, [wsFrames, liveFrame]);
|
|
13937
|
-
const folderLayouts = (0,
|
|
14143
|
+
const folderLayouts = (0, import_react13.useMemo)(() => {
|
|
13938
14144
|
const out = {};
|
|
13939
14145
|
for (const [groupId, rect] of Object.entries(frameRects)) {
|
|
13940
14146
|
const members = (membersByGroup.get(groupId) ?? []).map((cardId) => {
|
|
@@ -13966,21 +14172,21 @@ function CanvasInner(props) {
|
|
|
13966
14172
|
}
|
|
13967
14173
|
return out;
|
|
13968
14174
|
}, [frameRects, membersByGroup, visibleCards, pinnedSessions, draggingCardId, dragCenter]);
|
|
13969
|
-
const cardLayout = (0,
|
|
14175
|
+
const cardLayout = (0, import_react13.useMemo)(() => {
|
|
13970
14176
|
const out = {};
|
|
13971
14177
|
for (const layout of Object.values(folderLayouts)) {
|
|
13972
14178
|
Object.assign(out, layoutFor(layout.rect, layout.ordered));
|
|
13973
14179
|
}
|
|
13974
14180
|
return out;
|
|
13975
14181
|
}, [folderLayouts]);
|
|
13976
|
-
const foldedCards = (0,
|
|
14182
|
+
const foldedCards = (0, import_react13.useMemo)(() => {
|
|
13977
14183
|
const out = {};
|
|
13978
14184
|
for (const [groupId, layout] of Object.entries(folderLayouts)) {
|
|
13979
14185
|
if (layout.folded.length > 0) out[groupId] = layout.folded;
|
|
13980
14186
|
}
|
|
13981
14187
|
return out;
|
|
13982
14188
|
}, [folderLayouts]);
|
|
13983
|
-
(0,
|
|
14189
|
+
(0, import_react13.useEffect)(() => {
|
|
13984
14190
|
if (canvasState.phase !== "ready") return;
|
|
13985
14191
|
if (draggingCardId !== null || liveFrame !== null) return;
|
|
13986
14192
|
const timer4 = window.setTimeout(() => {
|
|
@@ -13995,8 +14201,8 @@ function CanvasInner(props) {
|
|
|
13995
14201
|
}, 140);
|
|
13996
14202
|
return () => window.clearTimeout(timer4);
|
|
13997
14203
|
}, [cardLayout, canvasState.cards, canvasState.phase, draggingCardId, liveFrame]);
|
|
13998
|
-
const foldedSet = (0,
|
|
13999
|
-
(0,
|
|
14204
|
+
const foldedSet = (0, import_react13.useMemo)(() => new Set(Object.values(foldedCards).flat()), [foldedCards]);
|
|
14205
|
+
(0, import_react13.useEffect)(() => {
|
|
14000
14206
|
if (canvasState.phase !== "ready") return;
|
|
14001
14207
|
if (draggingCardId !== null || liveFrame !== null) return;
|
|
14002
14208
|
const seen = lastActivitySeen;
|
|
@@ -14031,8 +14237,8 @@ function CanvasInner(props) {
|
|
|
14031
14237
|
for (const [sessionId, stamp] of stamps) seen.set(sessionId, stamp);
|
|
14032
14238
|
if (Object.keys(promoted).length > 0) canvas.moveCards(promoted);
|
|
14033
14239
|
}, [canvasState.phase, visibleCards, sessions, folderLayouts, draggingCardId, liveFrame, pinnedSessions]);
|
|
14034
|
-
const autoSyncedRef = (0,
|
|
14035
|
-
(0,
|
|
14240
|
+
const autoSyncedRef = (0, import_react13.useRef)(false);
|
|
14241
|
+
(0, import_react13.useEffect)(() => {
|
|
14036
14242
|
if (canvasState.phase !== "ready" || !workspacesReady || autoSyncedRef.current) return;
|
|
14037
14243
|
autoSyncedRef.current = true;
|
|
14038
14244
|
const remembered = canvasState.global?.layoutMemory ?? {};
|
|
@@ -14092,7 +14298,7 @@ function CanvasInner(props) {
|
|
|
14092
14298
|
}
|
|
14093
14299
|
if (Object.keys(added).length > 0) canvas.addCards(added);
|
|
14094
14300
|
}, [canvasState.phase, canvasState.cards, canvasState.global, workspacesReady, wsFrames, frameRects, membersByGroup, sessions, sessionWs, boardSessionIds]);
|
|
14095
|
-
(0,
|
|
14301
|
+
(0, import_react13.useEffect)(() => {
|
|
14096
14302
|
if (!connecting) return;
|
|
14097
14303
|
const release = mapUi.claimEscape("connecting");
|
|
14098
14304
|
const onKeyDown = (event) => {
|
|
@@ -14113,7 +14319,7 @@ function CanvasInner(props) {
|
|
|
14113
14319
|
release();
|
|
14114
14320
|
};
|
|
14115
14321
|
}, [connecting]);
|
|
14116
|
-
(0,
|
|
14322
|
+
(0, import_react13.useEffect)(() => {
|
|
14117
14323
|
const onKeyDown = (event) => {
|
|
14118
14324
|
if (!(event.metaKey || event.ctrlKey) || event.code !== "KeyZ") return;
|
|
14119
14325
|
const target = event.target;
|
|
@@ -14128,7 +14334,7 @@ function CanvasInner(props) {
|
|
|
14128
14334
|
window.removeEventListener("keydown", onKeyDown, { capture: true });
|
|
14129
14335
|
};
|
|
14130
14336
|
}, []);
|
|
14131
|
-
const liveSelectedIds = (0,
|
|
14337
|
+
const liveSelectedIds = (0, import_react13.useMemo)(() => {
|
|
14132
14338
|
const next = /* @__PURE__ */ new Set();
|
|
14133
14339
|
for (const id2 of selectedIds) {
|
|
14134
14340
|
if (id2.startsWith("frame-")) {
|
|
@@ -14139,7 +14345,7 @@ function CanvasInner(props) {
|
|
|
14139
14345
|
}
|
|
14140
14346
|
return next;
|
|
14141
14347
|
}, [selectedIds, visibleCards, wsFrames]);
|
|
14142
|
-
const liveSelectedEdgeIds = (0,
|
|
14348
|
+
const liveSelectedEdgeIds = (0, import_react13.useMemo)(() => {
|
|
14143
14349
|
const next = /* @__PURE__ */ new Set();
|
|
14144
14350
|
for (const id2 of selectedEdgeIds) {
|
|
14145
14351
|
if (canvasState.edges[id2] !== void 0) next.add(id2);
|
|
@@ -14147,7 +14353,7 @@ function CanvasInner(props) {
|
|
|
14147
14353
|
return next;
|
|
14148
14354
|
}, [selectedEdgeIds, canvasState.edges]);
|
|
14149
14355
|
const hasSelection = liveSelectedIds.size > 0 || liveSelectedEdgeIds.size > 0;
|
|
14150
|
-
(0,
|
|
14356
|
+
(0, import_react13.useEffect)(() => {
|
|
14151
14357
|
if (!hasSelection) return;
|
|
14152
14358
|
const release = mapUi.claimEscape("selection");
|
|
14153
14359
|
const onKeyDown = (event) => {
|
|
@@ -14176,7 +14382,7 @@ function CanvasInner(props) {
|
|
|
14176
14382
|
release();
|
|
14177
14383
|
};
|
|
14178
14384
|
});
|
|
14179
|
-
(0,
|
|
14385
|
+
(0, import_react13.useEffect)(() => {
|
|
14180
14386
|
if (!batchMode) return;
|
|
14181
14387
|
const release = mapUi.claimEscape("batch-mode");
|
|
14182
14388
|
const onKeyDown = (event) => {
|
|
@@ -14269,7 +14475,35 @@ function CanvasInner(props) {
|
|
|
14269
14475
|
if (status?.completionUnread === true || finishedById.has(sessionId)) return "done";
|
|
14270
14476
|
return void 0;
|
|
14271
14477
|
};
|
|
14272
|
-
const
|
|
14478
|
+
const statusEntries = (0, import_react13.useMemo)(() => {
|
|
14479
|
+
const rows = [];
|
|
14480
|
+
for (const [cardId, card] of Object.entries(visibleCards)) {
|
|
14481
|
+
if (card.boardId !== INBOX_BOARD_ID) continue;
|
|
14482
|
+
const lamp = glowOf(card.sessionId);
|
|
14483
|
+
if (lamp === void 0) continue;
|
|
14484
|
+
const summary = sessions.byId[card.sessionId];
|
|
14485
|
+
rows.push({
|
|
14486
|
+
cardId,
|
|
14487
|
+
sessionId: card.sessionId,
|
|
14488
|
+
title: renamedTitles[card.sessionId] ?? summary?.displayTitle ?? card.sessionId,
|
|
14489
|
+
lamp,
|
|
14490
|
+
stamp: summary?.updatedAt ?? 0,
|
|
14491
|
+
...summary?.updatedAt !== void 0 ? { updatedAt: summary.updatedAt } : {},
|
|
14492
|
+
...previews[card.sessionId] !== void 0 ? { preview: previews[card.sessionId] } : {},
|
|
14493
|
+
...pinnedSessions.has(card.sessionId) ? { pinned: true } : {}
|
|
14494
|
+
});
|
|
14495
|
+
}
|
|
14496
|
+
return rows;
|
|
14497
|
+
}, [visibleCards, sessions, renamedTitles, previews, pinnedSessions, statusById, alertById, finishedById]);
|
|
14498
|
+
const focusCard = (0, import_react13.useCallback)((cardId) => {
|
|
14499
|
+
const slot = cardLayout[cardId];
|
|
14500
|
+
const card = visibleCards[cardId];
|
|
14501
|
+
const point = slot ?? (card === void 0 ? void 0 : { x: card.x, y: card.y });
|
|
14502
|
+
setSelectedIds([cardId]);
|
|
14503
|
+
if (point === void 0) return;
|
|
14504
|
+
setCenter(point.x + CARD_W / 2, point.y + CARD_H / 2, { zoom: getZoom(), duration: 320 });
|
|
14505
|
+
}, [cardLayout, visibleCards, setCenter, getZoom, setSelectedIds]);
|
|
14506
|
+
const liveNodes = (0, import_react13.useMemo)(() => {
|
|
14273
14507
|
const wsColors = canvasState.global?.wsColors ?? {};
|
|
14274
14508
|
const frameNodes = Object.entries(frameRects).map(([groupId, rect]) => {
|
|
14275
14509
|
const members = membersByGroup.get(groupId) ?? [];
|
|
@@ -14380,7 +14614,7 @@ function CanvasInner(props) {
|
|
|
14380
14614
|
});
|
|
14381
14615
|
return [...frameNodes, ...cardNodes, ...stackNodes];
|
|
14382
14616
|
}, [frameRects, folderLayouts, foldedCards, foldedSet, cardLayout, draggingCardId, membersByGroup, wsTitles, visibleCards, canvasState.digests, canvasState.global, sessions, statusById, alertById, finishedById, interruptedById, draftSessions, previews, pinnedSessions, renamedTitles, renamedWorkspaces, liveSelectedIds, batchMode, batchPicks, locale]);
|
|
14383
|
-
const sessionIdToCardId = (0,
|
|
14617
|
+
const sessionIdToCardId = (0, import_react13.useMemo)(() => {
|
|
14384
14618
|
const index2 = /* @__PURE__ */ new Map();
|
|
14385
14619
|
for (const [cardId, card] of Object.entries(visibleCards)) {
|
|
14386
14620
|
if (!index2.has(card.sessionId)) index2.set(card.sessionId, cardId);
|
|
@@ -14414,8 +14648,8 @@ function CanvasInner(props) {
|
|
|
14414
14648
|
};
|
|
14415
14649
|
const CARD_PAINTED_W = 250;
|
|
14416
14650
|
const CARD_PAINTED_H = 129;
|
|
14417
|
-
const [boardTick, setBoardTick] = (0,
|
|
14418
|
-
(0,
|
|
14651
|
+
const [boardTick, setBoardTick] = (0, import_react13.useState)(0);
|
|
14652
|
+
(0, import_react13.useEffect)(() => {
|
|
14419
14653
|
const timer4 = window.setTimeout(() => setBoardTick((value) => value + 1), 150);
|
|
14420
14654
|
return () => window.clearTimeout(timer4);
|
|
14421
14655
|
}, []);
|
|
@@ -14453,7 +14687,7 @@ function CanvasInner(props) {
|
|
|
14453
14687
|
const picked = sideHandles(fromCardId, toCardId);
|
|
14454
14688
|
return { sourceHandle: picked.fromHandle, targetHandle: picked.toHandle };
|
|
14455
14689
|
};
|
|
14456
|
-
const liveEdges = (0,
|
|
14690
|
+
const liveEdges = (0, import_react13.useMemo)(() => {
|
|
14457
14691
|
const out = [];
|
|
14458
14692
|
const present = new Set(Object.keys(visibleCards).filter((cardId) => !foldedSet.has(cardId)));
|
|
14459
14693
|
const explicitPairs = /* @__PURE__ */ new Set();
|
|
@@ -14557,7 +14791,7 @@ function CanvasInner(props) {
|
|
|
14557
14791
|
}
|
|
14558
14792
|
return out;
|
|
14559
14793
|
}, [visibleCards, canvasState.edges, sessions, sessionIdToCardId, liveSelectedEdgeIds, foldedSet, locale, pushEpoch, lineageHidden, liveNodes, boardTick]);
|
|
14560
|
-
const drawerWireLinks = (0,
|
|
14794
|
+
const drawerWireLinks = (0, import_react13.useMemo)(() => {
|
|
14561
14795
|
if (drawer === null) return [];
|
|
14562
14796
|
const layout = folderLayouts[drawer.groupId];
|
|
14563
14797
|
const inFolder = new Set(layout === void 0 ? [] : [...layout.shown, ...layout.folded]);
|
|
@@ -14687,8 +14921,8 @@ function CanvasInner(props) {
|
|
|
14687
14921
|
}
|
|
14688
14922
|
if (removedIds.length > 0) canvas.removeEdges(removedIds);
|
|
14689
14923
|
};
|
|
14690
|
-
const mountedRef = (0,
|
|
14691
|
-
(0,
|
|
14924
|
+
const mountedRef = (0, import_react13.useRef)(true);
|
|
14925
|
+
(0, import_react13.useEffect)(() => {
|
|
14692
14926
|
mountedRef.current = true;
|
|
14693
14927
|
return () => {
|
|
14694
14928
|
mountedRef.current = false;
|
|
@@ -14844,7 +15078,7 @@ function CanvasInner(props) {
|
|
|
14844
15078
|
agent: hit.agent,
|
|
14845
15079
|
depth: hit.depth
|
|
14846
15080
|
});
|
|
14847
|
-
(0,
|
|
15081
|
+
(0, import_react13.useEffect)(() => {
|
|
14848
15082
|
setTitleResolver((sessionId) => renamedTitles[sessionId] ?? sessions.byId[sessionId]?.displayTitle);
|
|
14849
15083
|
setCardTable(Object.entries(canvasState.cards).map(([cardId, card]) => ({
|
|
14850
15084
|
cardId,
|
|
@@ -14954,11 +15188,11 @@ function CanvasInner(props) {
|
|
|
14954
15188
|
canvas.moveCard(id2, point.x, point.y);
|
|
14955
15189
|
});
|
|
14956
15190
|
};
|
|
14957
|
-
const selectedCardIds = (0,
|
|
15191
|
+
const selectedCardIds = (0, import_react13.useMemo)(
|
|
14958
15192
|
() => [...batchPicks].filter((id2) => visibleCards[id2] !== void 0),
|
|
14959
15193
|
[batchPicks, visibleCards]
|
|
14960
15194
|
);
|
|
14961
|
-
const selectedFrameWs = (0,
|
|
15195
|
+
const selectedFrameWs = (0, import_react13.useMemo)(
|
|
14962
15196
|
() => [...liveSelectedIds].filter((id2) => id2.startsWith("frame-")).map((id2) => id2.slice("frame-".length)),
|
|
14963
15197
|
[liveSelectedIds]
|
|
14964
15198
|
);
|
|
@@ -15095,7 +15329,7 @@ function CanvasInner(props) {
|
|
|
15095
15329
|
view: "root"
|
|
15096
15330
|
});
|
|
15097
15331
|
};
|
|
15098
|
-
const menuState = (0,
|
|
15332
|
+
const menuState = (0, import_react13.useMemo)(() => {
|
|
15099
15333
|
if (menu === null) return null;
|
|
15100
15334
|
const close = () => {
|
|
15101
15335
|
setMenu(null);
|
|
@@ -15367,7 +15601,7 @@ function CanvasInner(props) {
|
|
|
15367
15601
|
}, [menu, workspaces.items, sessions, boardSessionIds, wsFrames, wsTitles, canvasState.cards, canvasState.edges, canvasState.digests, pinnedSessions, locale]);
|
|
15368
15602
|
const savedCamera = canvas.savedCamera(INBOX_BOARD_ID);
|
|
15369
15603
|
const hasContent = Object.keys(visibleCards).length > 0 || Object.keys(wsFrames).length > 0;
|
|
15370
|
-
return /* @__PURE__ */ (0,
|
|
15604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
15371
15605
|
"div",
|
|
15372
15606
|
{
|
|
15373
15607
|
ref: wrapperRef,
|
|
@@ -15391,7 +15625,7 @@ function CanvasInner(props) {
|
|
|
15391
15625
|
if (menu !== null) setMenu(null);
|
|
15392
15626
|
},
|
|
15393
15627
|
children: [
|
|
15394
|
-
/* @__PURE__ */ (0,
|
|
15628
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
15395
15629
|
index,
|
|
15396
15630
|
{
|
|
15397
15631
|
nodes,
|
|
@@ -15459,14 +15693,15 @@ function CanvasInner(props) {
|
|
|
15459
15693
|
proOptions: { hideAttribution: true },
|
|
15460
15694
|
...savedCamera !== void 0 ? { defaultViewport: savedCamera } : { fitView: hasContent },
|
|
15461
15695
|
children: [
|
|
15462
|
-
/* @__PURE__ */ (0,
|
|
15463
|
-
/* @__PURE__ */ (0,
|
|
15696
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Background, { variant: BackgroundVariant.Dots, gap: GRID, size: 1 }),
|
|
15697
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Controls, { showInteractive: false, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ControlButton, { title: t("map.zoom100"), onClick: () => {
|
|
15464
15698
|
void zoomTo(1, { duration: 200 });
|
|
15465
|
-
}, children: /* @__PURE__ */ (0,
|
|
15699
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: talk_map_default["zoomResetLabel"], children: "1:1" }) }) })
|
|
15466
15700
|
]
|
|
15467
15701
|
}
|
|
15468
15702
|
),
|
|
15469
|
-
|
|
15703
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StatusRail, { entries: statusEntries, cardWidth: CARD_W, onFocus: focusCard }),
|
|
15704
|
+
batchMode ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
15470
15705
|
BatchBar,
|
|
15471
15706
|
{
|
|
15472
15707
|
count: selectedCardIds.length,
|
|
@@ -15483,14 +15718,14 @@ function CanvasInner(props) {
|
|
|
15483
15718
|
}
|
|
15484
15719
|
}
|
|
15485
15720
|
) : null,
|
|
15486
|
-
hasContent ? null : /* @__PURE__ */ (0,
|
|
15487
|
-
menuState !== null ? /* @__PURE__ */ (0,
|
|
15721
|
+
hasContent ? null : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: talk_map_default["emptyHint"], children: t("map.empty") }),
|
|
15722
|
+
menuState !== null ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ContextMenu, { menu: menuState, onClose: () => {
|
|
15488
15723
|
setMenu(null);
|
|
15489
15724
|
} }, menu?.view ?? "root") : null,
|
|
15490
|
-
pendingSpawn !== null ? /* @__PURE__ */ (0,
|
|
15725
|
+
pendingSpawn !== null ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SpawnPreview, { pending: pendingSpawn, onClose: () => {
|
|
15491
15726
|
setPendingSpawn(null);
|
|
15492
15727
|
} }) : null,
|
|
15493
|
-
digestTarget !== null ? /* @__PURE__ */ (0,
|
|
15728
|
+
digestTarget !== null ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
15494
15729
|
DigestDialog,
|
|
15495
15730
|
{
|
|
15496
15731
|
title: digestTarget.title,
|
|
@@ -15500,7 +15735,7 @@ function CanvasInner(props) {
|
|
|
15500
15735
|
}
|
|
15501
15736
|
}
|
|
15502
15737
|
) : null,
|
|
15503
|
-
renameTarget !== null ? /* @__PURE__ */ (0,
|
|
15738
|
+
renameTarget !== null ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
15504
15739
|
RenameDialog,
|
|
15505
15740
|
{
|
|
15506
15741
|
target: renameTarget,
|
|
@@ -15517,7 +15752,7 @@ function CanvasInner(props) {
|
|
|
15517
15752
|
}
|
|
15518
15753
|
}
|
|
15519
15754
|
) : null,
|
|
15520
|
-
drawer !== null ? /* @__PURE__ */ (0,
|
|
15755
|
+
drawer !== null ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
15521
15756
|
StackDrawer,
|
|
15522
15757
|
{
|
|
15523
15758
|
workspaceTitle: renamedWorkspaces[drawer.groupId] ?? wsTitles.get(drawer.groupId) ?? t("frame.unknown"),
|
|
@@ -15542,16 +15777,16 @@ function CanvasInner(props) {
|
|
|
15542
15777
|
onClose: closeDrawer
|
|
15543
15778
|
}
|
|
15544
15779
|
) : null,
|
|
15545
|
-
toast !== null ? /* @__PURE__ */ (0,
|
|
15780
|
+
toast !== null ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: talk_map_default["toast"], children: toast }) : null
|
|
15546
15781
|
]
|
|
15547
15782
|
}
|
|
15548
15783
|
);
|
|
15549
15784
|
}
|
|
15550
15785
|
function BatchBar(props) {
|
|
15551
|
-
return /* @__PURE__ */ (0,
|
|
15552
|
-
/* @__PURE__ */ (0,
|
|
15553
|
-
/* @__PURE__ */ (0,
|
|
15554
|
-
/* @__PURE__ */ (0,
|
|
15786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: talk_map_default["batchBar"], role: "toolbar", "aria-label": t("batch.title"), children: [
|
|
15787
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: talk_map_default["batchCount"], children: t("batch.count", { n: String(props.count) }) }),
|
|
15788
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: talk_map_default["batchSpace"] }),
|
|
15789
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
15555
15790
|
"button",
|
|
15556
15791
|
{
|
|
15557
15792
|
type: "button",
|
|
@@ -15561,7 +15796,7 @@ function BatchBar(props) {
|
|
|
15561
15796
|
children: t("batch.archive")
|
|
15562
15797
|
}
|
|
15563
15798
|
),
|
|
15564
|
-
/* @__PURE__ */ (0,
|
|
15799
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
15565
15800
|
"button",
|
|
15566
15801
|
{
|
|
15567
15802
|
type: "button",
|
|
@@ -15571,7 +15806,7 @@ function BatchBar(props) {
|
|
|
15571
15806
|
children: t("batch.delete")
|
|
15572
15807
|
}
|
|
15573
15808
|
),
|
|
15574
|
-
/* @__PURE__ */ (0,
|
|
15809
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
15575
15810
|
"button",
|
|
15576
15811
|
{
|
|
15577
15812
|
type: "button",
|
|
@@ -15585,18 +15820,18 @@ function BatchBar(props) {
|
|
|
15585
15820
|
}
|
|
15586
15821
|
var DRAW_LINEAGE_LINKS = true;
|
|
15587
15822
|
function MapCanvas(props) {
|
|
15588
|
-
const canvasState = (0,
|
|
15589
|
-
(0,
|
|
15823
|
+
const canvasState = (0, import_react13.useSyncExternalStore)(canvas.subscribe, canvas.get);
|
|
15824
|
+
(0, import_react13.useEffect)(() => {
|
|
15590
15825
|
canvas.ensureLoaded();
|
|
15591
15826
|
canvas.refresh();
|
|
15592
15827
|
return canvas.connect();
|
|
15593
15828
|
}, []);
|
|
15594
15829
|
if (canvasState.phase === "error") {
|
|
15595
|
-
return /* @__PURE__ */ (0,
|
|
15830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: talk_map_default["canvas"], children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: talk_map_default["emptyHint"], children: [
|
|
15596
15831
|
t("map.loadError"),
|
|
15597
15832
|
" ",
|
|
15598
15833
|
canvasState.error,
|
|
15599
|
-
/* @__PURE__ */ (0,
|
|
15834
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
15600
15835
|
"button",
|
|
15601
15836
|
{
|
|
15602
15837
|
type: "button",
|
|
@@ -15611,17 +15846,17 @@ function MapCanvas(props) {
|
|
|
15611
15846
|
] }) });
|
|
15612
15847
|
}
|
|
15613
15848
|
if (canvasState.phase !== "ready") {
|
|
15614
|
-
return /* @__PURE__ */ (0,
|
|
15849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: talk_map_default["canvas"], children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: talk_map_default["emptyHint"], children: t("map.loading") }) });
|
|
15615
15850
|
}
|
|
15616
|
-
return /* @__PURE__ */ (0,
|
|
15851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ReactFlowProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CanvasInner, { ...props }) });
|
|
15617
15852
|
}
|
|
15618
15853
|
|
|
15619
15854
|
// src/client/MapOverlay.tsx
|
|
15620
|
-
var
|
|
15855
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
15621
15856
|
function FontSizeButtons() {
|
|
15622
|
-
const step2 = (0,
|
|
15623
|
-
return /* @__PURE__ */ (0,
|
|
15624
|
-
/* @__PURE__ */ (0,
|
|
15857
|
+
const step2 = (0, import_react15.useSyncExternalStore)(fontScale.subscribe, fontScale.getSnapshot);
|
|
15858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: talk_map_default["fontGroup"], role: "group", "aria-label": t("font.group"), children: [
|
|
15859
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
15625
15860
|
"button",
|
|
15626
15861
|
{
|
|
15627
15862
|
type: "button",
|
|
@@ -15633,12 +15868,12 @@ function FontSizeButtons() {
|
|
|
15633
15868
|
fontScale.decrease();
|
|
15634
15869
|
},
|
|
15635
15870
|
children: [
|
|
15636
|
-
/* @__PURE__ */ (0,
|
|
15637
|
-
/* @__PURE__ */ (0,
|
|
15871
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: talk_map_default["fontGlyphSmall"], children: "A" }),
|
|
15872
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: talk_map_default["fontSign"], children: "−" })
|
|
15638
15873
|
]
|
|
15639
15874
|
}
|
|
15640
15875
|
),
|
|
15641
|
-
/* @__PURE__ */ (0,
|
|
15876
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
15642
15877
|
"button",
|
|
15643
15878
|
{
|
|
15644
15879
|
type: "button",
|
|
@@ -15650,12 +15885,12 @@ function FontSizeButtons() {
|
|
|
15650
15885
|
fontScale.increase();
|
|
15651
15886
|
},
|
|
15652
15887
|
children: [
|
|
15653
|
-
/* @__PURE__ */ (0,
|
|
15654
|
-
/* @__PURE__ */ (0,
|
|
15888
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: talk_map_default["fontGlyphLarge"], children: "A" }),
|
|
15889
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: talk_map_default["fontSign"], children: "+" })
|
|
15655
15890
|
]
|
|
15656
15891
|
}
|
|
15657
15892
|
),
|
|
15658
|
-
/* @__PURE__ */ (0,
|
|
15893
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
15659
15894
|
"button",
|
|
15660
15895
|
{
|
|
15661
15896
|
type: "button",
|
|
@@ -15672,15 +15907,15 @@ function FontSizeButtons() {
|
|
|
15672
15907
|
] });
|
|
15673
15908
|
}
|
|
15674
15909
|
function BackIcon() {
|
|
15675
|
-
return /* @__PURE__ */ (0,
|
|
15910
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M15 5l-7 7 7 7" }) });
|
|
15676
15911
|
}
|
|
15677
15912
|
function CloseIcon() {
|
|
15678
|
-
return /* @__PURE__ */ (0,
|
|
15913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M6 6l12 12M18 6L6 18" }) });
|
|
15679
15914
|
}
|
|
15680
15915
|
function MapOverlay(props) {
|
|
15681
|
-
(0,
|
|
15682
|
-
const fontStep = (0,
|
|
15683
|
-
(0,
|
|
15916
|
+
(0, import_react15.useSyncExternalStore)(subscribeLocale, activeLocale, activeLocale);
|
|
15917
|
+
const fontStep = (0, import_react15.useSyncExternalStore)(fontScale.subscribe, fontScale.getSnapshot);
|
|
15918
|
+
(0, import_react15.useEffect)(() => {
|
|
15684
15919
|
mapUi.setOpen(true);
|
|
15685
15920
|
hideSidebarForMap();
|
|
15686
15921
|
return () => {
|
|
@@ -15688,7 +15923,7 @@ function MapOverlay(props) {
|
|
|
15688
15923
|
restoreSidebarAfterMap();
|
|
15689
15924
|
};
|
|
15690
15925
|
}, []);
|
|
15691
|
-
(0,
|
|
15926
|
+
(0, import_react15.useEffect)(() => {
|
|
15692
15927
|
const onKeyDown = (event) => {
|
|
15693
15928
|
if (event.key !== "Escape") return;
|
|
15694
15929
|
if (mapUi.escapeClaimed()) return;
|
|
@@ -15700,7 +15935,7 @@ function MapOverlay(props) {
|
|
|
15700
15935
|
window.removeEventListener("keydown", onKeyDown, { capture: true });
|
|
15701
15936
|
};
|
|
15702
15937
|
}, []);
|
|
15703
|
-
return /* @__PURE__ */ (0,
|
|
15938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
15704
15939
|
"div",
|
|
15705
15940
|
{
|
|
15706
15941
|
className: talk_map_default["panel"],
|
|
@@ -15709,8 +15944,8 @@ function MapOverlay(props) {
|
|
|
15709
15944
|
"aria-label": t("map.title"),
|
|
15710
15945
|
style: { "--tm-font-step": `${fontStep}px` },
|
|
15711
15946
|
children: [
|
|
15712
|
-
/* @__PURE__ */ (0,
|
|
15713
|
-
/* @__PURE__ */ (0,
|
|
15947
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: talk_map_default["header"], children: [
|
|
15948
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
15714
15949
|
"button",
|
|
15715
15950
|
{
|
|
15716
15951
|
type: "button",
|
|
@@ -15719,17 +15954,17 @@ function MapOverlay(props) {
|
|
|
15719
15954
|
"aria-label": t("map.back"),
|
|
15720
15955
|
onClick: closeMapPanel,
|
|
15721
15956
|
children: [
|
|
15722
|
-
/* @__PURE__ */ (0,
|
|
15723
|
-
/* @__PURE__ */ (0,
|
|
15957
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(BackIcon, {}),
|
|
15958
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: t("map.back") })
|
|
15724
15959
|
]
|
|
15725
15960
|
}
|
|
15726
15961
|
),
|
|
15727
|
-
/* @__PURE__ */ (0,
|
|
15728
|
-
/* @__PURE__ */ (0,
|
|
15962
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: talk_map_default["headerSpace"] }),
|
|
15963
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(GlobalSearch, { onOpenSession: (sessionId) => {
|
|
15729
15964
|
openSessionInUi(sessionId);
|
|
15730
15965
|
} }),
|
|
15731
|
-
/* @__PURE__ */ (0,
|
|
15732
|
-
/* @__PURE__ */ (0,
|
|
15966
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FontSizeButtons, {}),
|
|
15967
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
15733
15968
|
"button",
|
|
15734
15969
|
{
|
|
15735
15970
|
type: "button",
|
|
@@ -15737,36 +15972,36 @@ function MapOverlay(props) {
|
|
|
15737
15972
|
title: t("map.close"),
|
|
15738
15973
|
"aria-label": t("map.close"),
|
|
15739
15974
|
onClick: closeMapPanel,
|
|
15740
|
-
children: /* @__PURE__ */ (0,
|
|
15975
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CloseIcon, {})
|
|
15741
15976
|
}
|
|
15742
15977
|
)
|
|
15743
15978
|
] }),
|
|
15744
|
-
/* @__PURE__ */ (0,
|
|
15979
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(MapCanvas, { ...props })
|
|
15745
15980
|
]
|
|
15746
15981
|
}
|
|
15747
15982
|
);
|
|
15748
15983
|
}
|
|
15749
15984
|
|
|
15750
15985
|
// src/client/MapToggleButton.tsx
|
|
15751
|
-
var
|
|
15752
|
-
var
|
|
15986
|
+
var import_react16 = require("react");
|
|
15987
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
15753
15988
|
function MapIcon() {
|
|
15754
|
-
return /* @__PURE__ */ (0,
|
|
15755
|
-
/* @__PURE__ */ (0,
|
|
15756
|
-
/* @__PURE__ */ (0,
|
|
15757
|
-
/* @__PURE__ */ (0,
|
|
15989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { className: talk_map_default["toggleIcon"], viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
15990
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M9 4 3.5 6v14L9 18l6 2 5.5-2V4L15 6 9 4Z" }),
|
|
15991
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M9 4v14" }),
|
|
15992
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M15 6v14" })
|
|
15758
15993
|
] });
|
|
15759
15994
|
}
|
|
15760
15995
|
function MapToggleButton(props) {
|
|
15761
|
-
const open = (0,
|
|
15762
|
-
const locale = (0,
|
|
15996
|
+
const open = (0, import_react16.useSyncExternalStore)(mapUi.subscribe, () => mapUi.get().open);
|
|
15997
|
+
const locale = (0, import_react16.useSyncExternalStore)(subscribeLocale, activeLocale, activeLocale);
|
|
15763
15998
|
const wide = props.wide;
|
|
15764
|
-
(0,
|
|
15999
|
+
(0, import_react16.useEffect)(() => {
|
|
15765
16000
|
reportSidebarWide(wide);
|
|
15766
16001
|
}, [wide]);
|
|
15767
16002
|
const classNames = [wide ? talk_map_default["toggleRow"] : talk_map_default["toggleButton"]];
|
|
15768
16003
|
if (open) classNames.push(talk_map_default["toggleButtonActive"]);
|
|
15769
|
-
return /* @__PURE__ */ (0,
|
|
16004
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
15770
16005
|
"button",
|
|
15771
16006
|
{
|
|
15772
16007
|
type: "button",
|
|
@@ -15779,8 +16014,8 @@ function MapToggleButton(props) {
|
|
|
15779
16014
|
mapUi.toggle();
|
|
15780
16015
|
},
|
|
15781
16016
|
children: [
|
|
15782
|
-
/* @__PURE__ */ (0,
|
|
15783
|
-
wide ? /* @__PURE__ */ (0,
|
|
16017
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(MapIcon, {}),
|
|
16018
|
+
wide ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: talk_map_default["toggleLabel"], children: t("map.toggle") }) : null
|
|
15784
16019
|
]
|
|
15785
16020
|
}
|
|
15786
16021
|
);
|