@weppy/roblox-mcp 2.16.2 → 2.17.1
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/CHANGELOG.md +28 -0
- package/README.md +9 -1
- package/dashboard/dist/assets/AssetsPage-BRZSoLQp.css +1 -0
- package/dashboard/dist/assets/{AssetsPage-_CPMetwm.js → AssetsPage-ClzgrkC_.js} +9 -14
- package/dashboard/dist/assets/ChangelogPage-B1CY41my.css +1 -0
- package/dashboard/dist/assets/ChangelogPage-CRXXHovV.js +1 -0
- package/dashboard/dist/assets/ConfirmModal-Dz7mVKLZ.js +1 -0
- package/dashboard/dist/assets/ConnectionPage-B3fGIK2X.css +1 -0
- package/dashboard/dist/assets/ConnectionPage-CKKn3lt0.js +6 -0
- package/dashboard/dist/assets/ControlsPage-Ch6He2CV.js +1 -0
- package/dashboard/dist/assets/CurrentPlaceScope-COd50R0N.css +1 -0
- package/dashboard/dist/assets/CurrentPlaceScope-DhPCqaMU.js +1 -0
- package/dashboard/dist/assets/{GameChangeDetail-CCQ8h1ft.js → GameChangeDetail-CZuYgFvS.js} +1 -1
- package/dashboard/dist/assets/{InfoLabel-D6WxKFnG.js → InfoLabel-BGeOUBIl.js} +1 -1
- package/dashboard/dist/assets/OverviewPage-B-CtTLEP.js +1 -0
- package/dashboard/dist/assets/OverviewPage-CviBL36S.css +1 -0
- package/dashboard/dist/assets/PageHeader-CYbeZdtL.js +6 -0
- package/dashboard/dist/assets/PageHeader-ip0Enk1k.css +1 -0
- package/dashboard/dist/assets/PlaytestAiPromptExamples-DHVX0Ljy.css +1 -0
- package/dashboard/dist/assets/PlaytestAiPromptExamples-flhav1EU.js +1 -0
- package/dashboard/dist/assets/PlaytestPage-C092tN-C.js +127 -0
- package/dashboard/dist/assets/PlaytestPage-C3Vjgtlg.css +1 -0
- package/dashboard/dist/assets/SettingsPage-BO1WqaOl.css +1 -0
- package/dashboard/dist/assets/{SettingsPage-B_9NwPEF.js → SettingsPage-bEHQn_8W.js} +1 -1
- package/dashboard/dist/assets/{StatusBadge-Ddzg1cSk.js → StatusBadge-BmR5_DsF.js} +1 -1
- package/dashboard/dist/assets/SyncPage-BFz_XQ40.js +1 -0
- package/dashboard/dist/assets/SyncPage-BgbrC3SP.css +1 -0
- package/dashboard/dist/assets/Tabs-C7TenrZD.js +1 -0
- package/dashboard/dist/assets/Tabs-CPTkUoYi.css +1 -0
- package/dashboard/dist/assets/TierPromoPanel-C02VRkHz.js +1 -0
- package/dashboard/dist/assets/TierPromoPanel-Ch583WAw.css +1 -0
- package/dashboard/dist/assets/ToolsPage-ApMAWvg3.css +1 -0
- package/dashboard/dist/assets/ToolsPage-CJeoFakm.js +1 -0
- package/dashboard/dist/assets/{TooltipText-B1An7dUI.js → TooltipText-sb-BSgUg.js} +1 -1
- package/dashboard/dist/assets/{UiStudioPage-CWQgLMHO.js → UiStudioPage-C5dYQMax.js} +3 -3
- package/dashboard/dist/assets/UiStudioPage-CSK5gQMN.css +1 -0
- package/dashboard/dist/assets/WhatsNewPage-C_z4g3oa.js +1 -0
- package/dashboard/dist/assets/WhatsNewPage-WMbbAUsL.css +1 -0
- package/dashboard/dist/assets/bot-oMwejCZF.js +6 -0
- package/dashboard/dist/assets/check-EdHXSSef.js +6 -0
- package/dashboard/dist/assets/{copy-B03ftJiE.js → copy-CePVq0VI.js} +1 -1
- package/dashboard/dist/assets/index-DchewB5y.js +874 -0
- package/dashboard/dist/assets/index-VXvX8jPK.css +1 -0
- package/dashboard/dist/assets/sample-requests-BeoPIWbH.css +1 -0
- package/dashboard/dist/assets/{sample-requests-r6iFLFba.js → sample-requests-CQvn7a4-.js} +1 -1
- package/dashboard/dist/assets/trash-2-8V3SCC8q.js +6 -0
- package/dashboard/dist/assets/{useLiveUptime-CnfGQ_vS.js → useLiveUptime-BeZ9TLyF.js} +1 -1
- package/dashboard/dist/assets/useSettings-D5XHMODc.js +1 -0
- package/dashboard/dist/assets/useSettings-I6BaXsZq.css +1 -0
- package/dashboard/dist/index.html +2 -2
- package/dist/index.js +218 -126
- package/package.json +1 -1
- package/roblox-plugin/WeppyRobloxMCP.rbxm +0 -0
- package/dashboard/dist/assets/AssetsPage-BVUpssWN.css +0 -1
- package/dashboard/dist/assets/ChangelogPage-B9Ct115r.css +0 -1
- package/dashboard/dist/assets/ChangelogPage-BpTjHwvr.js +0 -1
- package/dashboard/dist/assets/ConfirmModal-BSbhJt6x.js +0 -1
- package/dashboard/dist/assets/ConnectionPage-BMIbBueG.js +0 -11
- package/dashboard/dist/assets/ConnectionPage-Ca5WLCm3.css +0 -1
- package/dashboard/dist/assets/ContentScopedDialog-D92wgDaU.js +0 -1
- package/dashboard/dist/assets/ContentScopedDialog-DCgVfmeB.css +0 -1
- package/dashboard/dist/assets/ControlsPage-C828Cgwo.js +0 -6
- package/dashboard/dist/assets/CurrentPlaceScope-BFYSAg2T.js +0 -1
- package/dashboard/dist/assets/CurrentPlaceScope-D-0g0WrM.css +0 -1
- package/dashboard/dist/assets/OverviewPage-B8RMrIaQ.js +0 -1
- package/dashboard/dist/assets/OverviewPage-Dsfl-NRT.css +0 -1
- package/dashboard/dist/assets/PageHeader-CrhjZjgp.css +0 -1
- package/dashboard/dist/assets/PageHeader-Xrn6BpcL.js +0 -6
- package/dashboard/dist/assets/PlaytestPage-C-WO2SsY.css +0 -1
- package/dashboard/dist/assets/PlaytestPage-CrCurhRT.js +0 -11
- package/dashboard/dist/assets/SettingsPage-BR71s-WH.css +0 -1
- package/dashboard/dist/assets/SyncPage-BNadN0NU.js +0 -1
- package/dashboard/dist/assets/SyncPage-sHUpW30U.css +0 -1
- package/dashboard/dist/assets/Tabs-CIszXeoU.css +0 -1
- package/dashboard/dist/assets/Tabs-DZDOsT6_.js +0 -1
- package/dashboard/dist/assets/ToolsPage-B4t6LvfV.css +0 -1
- package/dashboard/dist/assets/ToolsPage-bHm2QbDR.js +0 -1
- package/dashboard/dist/assets/UiStudioPage-Ds-eaGvd.css +0 -1
- package/dashboard/dist/assets/WhatsNewPage-D-iibgAc.js +0 -1
- package/dashboard/dist/assets/WhatsNewPage-wF04BABp.css +0 -1
- package/dashboard/dist/assets/index-BDzb8NjS.css +0 -1
- package/dashboard/dist/assets/index-Ygt1Wh6v.js +0 -778
- package/dashboard/dist/assets/sample-requests-DmUwqmFE.css +0 -1
- package/dashboard/dist/assets/useSettings-BrnGUYZY.js +0 -1
- package/dashboard/dist/assets/useSettings-Ce19GEW2.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._header_6e369_1{position:sticky;top:0;z-index:2;display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;gap:var(--space-page);min-width:0;padding:var(--card-padding-block) var(--card-padding-inline);border-bottom:1px solid var(--border);background:var(--bg-card)}._copy_6e369_16{display:flex;min-width:0;flex-direction:column;gap:4px}._copy_6e369_16 h2{margin:0;color:var(--text-primary);font-family:var(--font-label);font-size:var(--type-section-title-size);font-weight:600;line-height:var(--leading-title)}._copy_6e369_16 p{margin:0;color:var(--text-secondary);font-size:var(--type-control-size);line-height:var(--leading-body)}._close_6e369_39{display:inline-grid;width:44px;height:44px;flex:0 0 44px;place-items:center;padding:0;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-secondary);cursor:pointer}._close_6e369_39:hover:not(:disabled){border-color:var(--accent);color:var(--text-primary)}._close_6e369_39:focus-visible{outline:none;box-shadow:var(--focus-ring)}._close_6e369_39:disabled{cursor:not-allowed;opacity:.5}@media(max-width:520px){._header_6e369_1{gap:10px;padding:12px}._copy_6e369_16 p{max-width:30ch}._close_6e369_39{flex:0 0 44px}}._page_12t05_2{display:flex;flex-direction:column;width:100%;min-width:0;gap:var(--space-page)}._sampleBanner_12t05_10{display:flex;flex-direction:column;gap:12px;padding:18px 20px;border:1px solid var(--pro-border);border-radius:var(--radius);background:linear-gradient(135deg,#f0bd5829,#f0bd5808 55%),var(--bg-card)}._sampleBannerRow_12t05_22{display:flex;align-items:center;justify-content:space-between;gap:20px}._sampleBannerMain_12t05_29{display:flex;flex-direction:column;gap:8px;min-width:0}._sampleBadge_12t05_36{width:fit-content;padding:0;border-radius:0;background:none;border:none;color:var(--pro-text);font-family:var(--font-label);font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:none;opacity:.92}._sampleTitle_12t05_51{font-family:var(--font-label);font-size:16px;font-weight:600;color:var(--text-primary)}._sampleMessage_12t05_58{max-width:560px;color:var(--text-secondary);font-size:13px;line-height:1.5}._sampleActions_12t05_65{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}._primaryAction_12t05_73,._secondaryAction_12t05_74,._resetAction_12t05_75{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border-radius:var(--radius-control);font-family:var(--font-label);font-size:12px;text-decoration:none;transition:background var(--transition),border-color var(--transition),opacity var(--transition)}._secondaryAction_12t05_74{border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);cursor:pointer}._secondaryAction_12t05_74:hover{border-color:var(--accent);background:var(--accent-dim)}._primaryAction_12t05_73{border:1px solid var(--accent);background:var(--accent);color:var(--button-primary-text);cursor:pointer}._primaryAction_12t05_73:hover{opacity:.9}._resetAction_12t05_75{border:1px solid var(--danger-border);background:var(--danger-bg);color:var(--danger-text);cursor:pointer}._resetAction_12t05_75:hover:not(:disabled){border-color:var(--danger);background:var(--danger-hover-bg)}._card_12t05_124{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:var(--card-padding-block) var(--card-padding-inline)}._cardHeader_12t05_131{font-family:var(--font-label);font-size:var(--type-surface-title-size);font-weight:600;line-height:var(--leading-title);color:var(--text-primary);margin-bottom:var(--space-section);display:flex;align-items:center;justify-content:space-between;gap:var(--space-related)}._clearButton_12t05_144{border:1px solid var(--danger-border);background:var(--danger-bg);color:var(--danger-text);border-radius:var(--radius-control);padding:6px 12px;font-family:var(--font-label);font-size:12px;font-weight:600;cursor:pointer;transition:background var(--transition),border-color var(--transition),color var(--transition)}._clearButton_12t05_144:hover:not(:disabled){background:var(--danger-hover-bg);border-color:var(--danger)}._clearButton_12t05_144:focus-visible{outline:none;box-shadow:var(--focus-ring)}._clearButton_12t05_144:disabled{cursor:not-allowed;opacity:.55}._statusRow_12t05_173{display:flex;align-items:center;gap:12px;margin-bottom:8px}._statusIndicator_12t05_180{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}._statusRunning_12t05_188{background:var(--success);box-shadow:0 0 6px var(--success)}._statusPaused_12t05_193{background:var(--warning)}._statusNotRunning_12t05_197{background:var(--text-muted)}._statusLabel_12t05_201{font-family:var(--font-code);font-size:13px;font-weight:600;color:var(--text-primary)}._statusMeta_12t05_208{font-family:var(--font-code);font-size:12px;color:var(--text-secondary)}._controlButtons_12t05_214{display:flex;gap:8px;margin-top:12px}._btn_12t05_221{font-family:var(--font-label);font-size:12px;padding:6px 14px;border-radius:var(--radius-control);border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);cursor:pointer;transition:background var(--transition),border-color var(--transition)}._btn_12t05_221:hover{border-color:var(--accent);background:var(--accent-dim)}._btn_12t05_221:disabled{opacity:.4;pointer-events:none}._btnPrimary_12t05_243{background:var(--accent);color:var(--bg-card);border-color:var(--accent)}._btnPrimary_12t05_243:hover{opacity:.9}._btnDanger_12t05_253{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger-text)}._btnDanger_12t05_253:hover{border-color:var(--danger);background:var(--danger-hover-bg)}._historyList_12t05_265{display:flex;flex-direction:column;gap:4px}._historyItem_12t05_271{display:flex;flex-direction:column;gap:4px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-card);cursor:pointer;text-align:left;width:100%;font-family:inherit;transition:border-color var(--transition)}._historyItem_12t05_271:hover{border-color:var(--accent)}._historyItem_12t05_271:focus-visible,._stepDisclosure_12t05_291:focus-visible{outline:none;box-shadow:var(--focus-ring)}._historyItemSelected_12t05_296{border-color:var(--accent);background:var(--accent-dim)}._historyItemHeader_12t05_301{display:flex;align-items:center;gap:8px}._historyIcon_12t05_307{font-size:14px;flex-shrink:0}._historyTimestamp_12t05_312{font-family:var(--font-code);font-size:11px;color:var(--text-muted);flex-shrink:0}._historyName_12t05_319{min-width:0;font-family:var(--font-label);font-size:12px;font-weight:500;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._recordKind_12t05_330{margin-left:auto;flex-shrink:0;padding:2px 6px;border:1px solid var(--border);border-radius:999px;color:var(--text-muted);font-family:var(--font-label);font-size:9px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}._historyItemMeta_12t05_344{display:flex;flex-wrap:wrap;gap:12px;font-family:var(--font-code);font-size:11px;color:var(--text-secondary);padding-left:22px}._historyMode_12t05_354{color:var(--text-muted)}._historyDuration_12t05_358{color:var(--text-secondary)}._historyStatus_12t05_362{font-weight:500;text-transform:uppercase;font-size:10px;letter-spacing:.04em}._status_passed_12t05_369{color:var(--success)}._status_failed_12t05_373{color:var(--error)}._status_running_12t05_377{color:var(--accent)}._status_timed_out_12t05_381{color:var(--error)}._status_cancelled_12t05_385,._status_insufficient_evidence_12t05_386{color:var(--warning)}._historyError_12t05_390{font-family:var(--font-code);font-size:11px;color:var(--error);padding-left:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._historyEvidence_12t05_400{display:flex;flex-wrap:wrap;gap:5px 10px;padding-left:22px;color:var(--text-muted);font-family:var(--font-code);font-size:9px}._historyLimitation_12t05_410{padding-left:22px;overflow:hidden;color:var(--warning);font-size:10px;text-overflow:ellipsis;white-space:nowrap}._detailShell_12t05_421{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column}._detailHeader_12t05_429{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:16px 20px;border-bottom:1px solid var(--border)}._detailHeading_12t05_440{display:flex;min-width:0;flex-direction:column;gap:4px;color:var(--text-primary);font-family:var(--font-label);font-size:13px;font-weight:600}._detailRecordName_12t05_451{overflow:hidden;color:var(--text-secondary);font-size:12px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}._detailCloseButton_12t05_460{display:inline-grid;width:34px;height:34px;flex:0 0 34px;place-items:center;padding:0;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-secondary);cursor:pointer}._detailCloseButton_12t05_460:hover{border-color:var(--accent);color:var(--text-primary)}._detailCloseButton_12t05_460:focus-visible,._detailRetryButton_12t05_480:focus-visible{outline:none;box-shadow:var(--focus-ring)}._detailBody_12t05_485{flex:1;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;padding:20px}._detailState_12t05_494{display:flex;min-height:220px;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--text-secondary);text-align:center}._detailErrorTitle_12t05_505{color:var(--text-primary);font-family:var(--font-label);font-size:15px;font-weight:600}._detailErrorMessage_12t05_512{max-width:560px;color:var(--error);font-family:var(--font-code);font-size:11px;overflow-wrap:anywhere}._detailRetryButton_12t05_480{margin-top:6px;padding:7px 14px;border:1px solid var(--accent);border-radius:var(--radius-control);background:var(--accent);color:var(--bg-card);font-family:var(--font-label);font-size:12px;font-weight:600;cursor:pointer}._reportContainer_12t05_534{display:flex;flex-direction:column;gap:12px}._runSummary_12t05_540,._viewerSection_12t05_541{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-secondary);padding:14px}._runSummary_12t05_540{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px}._summaryLead_12t05_554{display:flex;gap:12px;min-width:0}._summaryStatusMark_12t05_560{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid currentColor;border-radius:50%;font-family:var(--font-label);font-size:17px;font-weight:700}._viewerHeading_12t05_573{margin:0;color:var(--text-primary);font-family:var(--font-label);font-size:12px;font-weight:650;letter-spacing:.04em;text-transform:uppercase}._summaryName_12t05_583{margin-top:5px;overflow:hidden;color:var(--text-primary);font-family:var(--font-label);font-size:15px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}._summaryReason_12t05_594{margin-top:3px;color:var(--text-secondary);font-size:12px;line-height:1.45}._summaryFacts_12t05_601{display:grid;grid-template-columns:repeat(2,minmax(88px,1fr));gap:8px 14px}._summaryFacts_12t05_601 div{display:flex;flex-direction:column;gap:2px}._summaryFacts_12t05_601 span,._subsectionLabel_12t05_614{color:var(--text-muted);font-family:var(--font-label);font-size:9px;letter-spacing:.06em;text-transform:uppercase}._summaryFacts_12t05_601 strong{color:var(--text-primary);font-family:var(--font-code);font-size:11px;font-weight:500}._sectionHeadingRow_12t05_629{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}._sectionHint_12t05_637{color:var(--text-muted);font-size:10px}._dimensionGrid_12t05_642{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}._dimensionCard_12t05_649{min-width:0;padding:10px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card)}._dimensionHeader_12t05_657{display:flex;align-items:center;gap:6px}._statusMark_12t05_663{display:inline-grid;place-items:center;width:18px;height:18px;flex:0 0 18px;border:1px solid currentColor;border-radius:50%;font-family:var(--font-code);font-size:10px;font-weight:700}._dimensionName_12t05_676{overflow:hidden;color:var(--text-primary);font-family:var(--font-label);font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}._requirementBadge_12t05_686{margin-left:auto;color:var(--text-muted);font-family:var(--font-code);font-size:8px;text-transform:uppercase}._dimensionStatus_12t05_694{margin-top:9px;color:var(--text-primary);font-family:var(--font-code);font-size:11px}._dimensionMeta_12t05_701{margin-top:3px;overflow-wrap:anywhere;color:var(--text-muted);font-family:var(--font-code);font-size:9px}._tone_passed_12t05_709{color:var(--success)}._tone_failed_12t05_710,._tone_timed_out_12t05_711{color:var(--error)}._tone_cancelled_12t05_712,._tone_insufficient_evidence_12t05_713,._tone_unavailable_12t05_714{color:var(--warning)}._tone_skipped_12t05_715,._tone_not_requested_12t05_716{color:var(--text-muted)}._stepList_12t05_718{display:flex;flex-direction:column;gap:6px;margin-top:10px}._stepItem_12t05_725{overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card)}._stepDisclosure_12t05_291{display:grid;grid-template-columns:18px 22px minmax(0,1fr) auto 14px;align-items:center;width:100%;gap:8px;padding:9px 10px;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:left}._stepDisclosure_12t05_291:hover{background:var(--bg-secondary)}._stepIndex_12t05_749{color:var(--text-muted);font-family:var(--font-code);font-size:10px;text-align:right}._stepIdentity_12t05_756{display:flex;min-width:0;flex-direction:column;gap:2px}._stepName_12t05_763{overflow:hidden;color:var(--text-primary);font-family:var(--font-code);font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}._stepMeta_12t05_773,._stepStatus_12t05_774{color:var(--text-muted);font-family:var(--font-code);font-size:9px}._stepStatus_12t05_774{color:var(--text-secondary)}._chevron_12t05_782{color:var(--text-muted);font-size:14px;transition:transform var(--transition)}._chevronOpen_12t05_788{transform:rotate(180deg)}._stepDetails_12t05_790{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;border-top:1px solid var(--border);background:var(--bg-secondary)}._evidenceBlock_12t05_799{min-width:0}._evidenceLabel_12t05_803{margin-bottom:4px;color:var(--text-muted);font-family:var(--font-label);font-size:9px;letter-spacing:.05em;text-transform:uppercase}._evidenceBlock_12t05_799 pre{max-height:180px;margin:0;overflow-x:hidden;overflow-y:auto;padding:8px;border:1px solid var(--border);border-radius:4px;background:var(--bg-card);color:var(--text-secondary);font-family:var(--font-code);font-size:9px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all}._stepError_12t05_830,._recordProblem_12t05_831{padding:9px 10px;border:1px solid color-mix(in srgb,var(--error) 38%,var(--border));border-radius:var(--radius-control);background:color-mix(in srgb,var(--error) 8%,var(--bg-card));color:var(--error);font-size:11px}._recordProblem_12t05_831{display:flex;flex-direction:column;gap:4px}._capabilityGrid_12t05_846{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}._capabilityItem_12t05_853{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:7px;padding:8px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card);color:var(--text-primary);font-size:11px}._capabilityYes_12t05_866{color:var(--success)}._capabilityNo_12t05_867{color:var(--text-muted)}._capabilityState_12t05_868{color:var(--text-muted);font-size:9px}._limitations_12t05_870,._artifactList_12t05_871,._agentList_12t05_872{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px}._agentList_12t05_872 code{padding:3px 5px;border-radius:4px;background:var(--bg-card);color:var(--text-secondary);font-family:var(--font-code);font-size:9px}._artifactDisclosures_12t05_889{display:flex;flex-direction:column;gap:6px;margin-top:10px}._artifactDisclosure_12t05_889{overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card)}._artifactButton_12t05_903{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 10px;border:0;background:transparent;color:var(--text-secondary);cursor:pointer;font-family:var(--font-label);font-size:10px;font-weight:600;letter-spacing:.05em;text-align:left;text-transform:uppercase}._artifactButton_12t05_903:hover{background:var(--bg-secondary)}._artifactButton_12t05_903:focus-visible{outline:none;box-shadow:var(--focus-ring)}._artifactContent_12t05_928{padding:10px;border-top:1px solid var(--border);background:var(--bg-secondary)}._artifactContent_12t05_928 pre{max-height:320px;margin:0;overflow-x:hidden;overflow-y:auto;color:var(--text-secondary);font-family:var(--font-code);font-size:10px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all}._limitationItem_12t05_948{padding:5px 7px;border-radius:4px;background:color-mix(in srgb,var(--warning) 9%,transparent);color:var(--text-secondary);font-size:10px}._artifactList_12t05_871 code{padding:3px 5px;border-radius:4px;background:var(--bg-card);color:var(--text-secondary);font-family:var(--font-code);font-size:9px}._reportContextPanel_12t05_965{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-secondary)}._reportContextRow_12t05_975{display:flex;flex-direction:column;gap:4px;color:var(--text-primary);font-size:12px}._reportContextLabel_12t05_983{font-family:var(--font-label);font-size:10px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}._reportSection_12t05_991{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}._reportSectionHeader_12t05_997{font-family:var(--font-label);font-size:11px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.06em;padding:6px 12px;background:var(--bg-secondary);border-bottom:1px solid var(--border)}._reportMarkdown_12t05_1009{padding:12px;margin:0;font-family:var(--font-code);font-size:12px;line-height:1.6;color:var(--text-primary);white-space:pre-wrap;word-break:break-word;max-height:400px;overflow-y:auto}._reportLogs_12t05_1022{padding:12px;margin:0;font-family:var(--font-code);font-size:11px;line-height:1.5;color:var(--text-secondary);white-space:pre-wrap;word-break:break-word;max-height:240px;overflow-y:auto;background:var(--bg-secondary)}._emptyState_12t05_1037{text-align:center;padding:32px 16px;color:var(--text-muted);font-size:13px}._emptyStateTitle_12t05_1044{font-family:var(--font-label);font-size:14px;font-weight:600;color:var(--text-secondary);margin-bottom:8px}._emptyStateMessage_12t05_1052{font-size:12px;color:var(--text-muted);max-width:360px;margin:0 auto;line-height:1.5}._upgradePanel_12t05_1061{background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius);padding:32px 24px;text-align:center}._upgradePanelIcon_12t05_1069{font-size:32px;margin-bottom:12px}._upgradePanelTitle_12t05_1074{font-family:var(--font-label);font-size:15px;font-weight:600;color:var(--text-primary);margin-bottom:8px}._upgradePanelDesc_12t05_1082{font-size:13px;color:var(--text-secondary);margin-bottom:16px;max-width:400px;margin-left:auto;margin-right:auto;line-height:1.5}._benefitList_12t05_1092{list-style:none;padding:0;margin:0 auto 16px;display:flex;flex-direction:column;gap:4px;max-width:360px;text-align:left}._benefitItem_12t05_1103{font-size:12px;color:var(--text-secondary);padding-left:16px;position:relative}._benefitItem_12t05_1103:before{content:"+";position:absolute;left:0;color:var(--accent);font-weight:600}._upgradeActions_12t05_1118{display:flex;gap:8px;justify-content:center}._workspaceTabs_12t05_1124{min-width:0;overflow-x:auto;scrollbar-width:none}._workspaceTabs_12t05_1124::-webkit-scrollbar{display:none}._workspaceTabs_12t05_1124>div:first-child{flex:0 0 max-content}._workspaceTabs_12t05_1124 button{white-space:nowrap}._sessionHelp_12t05_1137{display:inline-grid;width:28px;height:28px;place-items:center;border-radius:50%;color:var(--text-muted);cursor:help}._sessionHelp_12t05_1137:focus-visible{outline:none;box-shadow:var(--focus-ring)}._secondaryAction_12t05_74:focus-visible,._primaryAction_12t05_73:focus-visible,._resetAction_12t05_75:focus-visible,._stopAction_12t05_1143:focus-visible,._controlEditor_12t05_1144 input:focus-visible,._controlEditor_12t05_1144 select:focus-visible,._profileToolbar_12t05_1146 select:focus-visible,._profileDialog_12t05_1147 input:focus-visible{outline:none;box-shadow:var(--focus-ring)}._sessionBar_12t05_1152,._profileToolbar_12t05_1146{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-card)}._sessionIdentity_12t05_1165{display:flex;min-width:0;align-items:center;gap:11px;color:var(--accent)}._sessionIdentity_12t05_1165>div{display:flex;min-width:0;flex-direction:column;gap:3px}._sessionIdentity_12t05_1165 strong{color:var(--text-primary);font-family:var(--font-label);font-size:13px}._sessionIdentity_12t05_1165 span{overflow:hidden;color:var(--text-secondary);font-family:var(--font-code);font-size:10px;text-overflow:ellipsis;white-space:nowrap}._sessionActions_12t05_1195,._profileActions_12t05_1196,._profileDialogActions_12t05_1197{display:flex;align-items:center;gap:8px}._sessionActions_12t05_1195{min-width:188px;justify-content:flex-end}._secondaryAction_12t05_74,._primaryAction_12t05_73,._resetAction_12t05_75,._stopAction_12t05_1143{gap:6px;white-space:nowrap}._stopAction_12t05_1143{display:inline-flex;min-height:34px;align-items:center;padding:0 14px;border:1px solid var(--danger-border);border-radius:var(--radius-control);background:var(--danger-bg);color:var(--danger-text);font-family:var(--font-label);font-size:12px;font-weight:600;cursor:pointer}._primaryAction_12t05_73:disabled,._secondaryAction_12t05_74:disabled,._resetAction_12t05_75:disabled{cursor:not-allowed;opacity:.45}._liveWorkspace_12t05_1238{display:flex;min-width:0;flex-direction:column;gap:12px}._profileToolbar_12t05_1146{padding:10px 12px}._profileToolbar_12t05_1146>div:first-child{display:flex;min-width:240px;flex-direction:column;gap:5px}._profileLabelRow_12t05_1254{display:flex;align-items:center;justify-content:space-between;gap:12px}._profileLabelRow_12t05_1254>span,._profileHint_12t05_1262{color:var(--text-muted);font-family:var(--font-label);font-size:9px}._profileHint_12t05_1262{line-height:1.35}._profileToolbar_12t05_1146 label,._actualValue_12t05_1271 span,._watchReading_12t05_1272 span{color:var(--text-muted);font-family:var(--font-label);font-size:9px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}._profileToolbar_12t05_1146 select,._controlEditor_12t05_1144 input,._controlEditor_12t05_1144 select,._profileDialog_12t05_1147 input{min-height:36px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-primary);font-family:var(--font-code);font-size:12px;padding:0 10px}._controlEditor_12t05_1144 input:disabled,._controlEditor_12t05_1144 select:disabled{border-color:var(--border);background:var(--bg-primary);color:var(--text-muted);cursor:not-allowed;opacity:.58}._controlEditor_12t05_1144 input[type=checkbox]:disabled{accent-color:var(--text-muted)}._liveGrid_12t05_1308{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}._livePanel_12t05_1315{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-card)}._livePanel_12t05_1315[data-runtime-state=inactive]{border-color:var(--border);background:var(--bg-card)}._livePanel_12t05_1315>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:10px 14px;border-bottom:1px solid var(--border)}._livePanel_12t05_1315>header>div{display:flex;flex-direction:column;gap:3px}._livePanel_12t05_1315>header strong{color:var(--text-primary);font-family:var(--font-label);font-size:var(--type-surface-title-size);font-weight:600;line-height:var(--leading-title)}._livePanel_12t05_1315>header span,._panelEmpty_12t05_1352{color:var(--text-secondary);font-size:var(--type-body-size);line-height:var(--leading-body)}._livePanel_12t05_1315>header ._controlAvailability_12t05_1358{display:flex;flex-direction:row;align-items:center;gap:6px;min-height:20px;color:var(--text-secondary)}._livePanel_12t05_1315>header ._controlAvailability_12t05_1358[data-warning=true]{color:var(--warning)}._controlAvailability_12t05_1358 svg{flex-shrink:0}._controlGate_12t05_1361{position:relative;min-width:0}._controlGate_12t05_1361>label{display:flex;box-sizing:border-box}._controlGate_12t05_1361>input:not([type=range]),._controlGate_12t05_1361>select{width:100%;box-sizing:border-box}._controlGateTrigger_12t05_1364{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;min-height:36px;padding:0;border:0;border-radius:var(--radius-control);background:transparent;cursor:help}._controlGateTrigger_12t05_1364:focus-visible{outline:none;box-shadow:var(--focus-ring)}._controlGateHint_12t05_1366{position:fixed;z-index:1000;width:max-content;max-width:min(320px,65vw);box-sizing:border-box;padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card);color:var(--text-primary);font-size:12px;line-height:1.5}._editorLabel_12t05_1367{color:var(--text-secondary);font-size:10px}._editorHeading_12t05_1368{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:8px}._savedValueState_12t05_1369{min-width:0;overflow:hidden;color:var(--text-muted);font-family:var(--font-label);font-size:9px;text-overflow:ellipsis;white-space:nowrap}._savedValueState_12t05_1369 strong{color:var(--text-secondary);font-family:var(--font-code);font-weight:500}._panelEmpty_12t05_1352{padding:28px 16px;text-align:center}._valueToolbar_12t05_1373{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:10px;padding:10px 16px;border-bottom:1px solid var(--border);background:var(--bg-secondary)}._valueToolbar_12t05_1373 label,._valueFilters_12t05_1383 label{display:flex;min-width:0;flex-direction:column;gap:5px;color:var(--text-secondary);font-size:10px}._valueToolbar_12t05_1373 input,._valueFilters_12t05_1383 select{width:100%;min-height:36px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card);color:var(--text-primary);padding:0 10px;font-size:12px}._valueToolbar_12t05_1373 ._secondaryAction_12t05_74{min-height:36px}._valueFilters_12t05_1383{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:10px;padding:10px 16px;border-bottom:1px solid var(--border);background:var(--bg-secondary)}._valueToolbar_12t05_1373 input:focus-visible,._valueFilters_12t05_1383 select:focus-visible,._valuePagination_12t05_1390 button:focus-visible{outline:none;box-shadow:var(--focus-ring)}._valueListStatus_12t05_1391{display:flex;min-height:36px;align-items:center;justify-content:space-between;gap:12px;padding:3px 10px 3px 14px;border-bottom:1px solid var(--border)}._valueCount_12t05_1392{color:var(--text-muted);font-family:var(--font-code);font-size:10px}._valueListStatus_12t05_1391 ._secondaryAction_12t05_74{min-height:30px;padding-inline:10px;font-size:10px}._layoutHint_12t05_1394{padding:6px 16px;border-bottom:1px solid var(--border);background:var(--bg-secondary);color:var(--text-muted);font-size:10px}._srOnly_12t05_1395{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}._unifiedValueRows_12t05_1396{min-width:0}._unifiedValueRows_12t05_1396 ._liveRows_12t05_1397:not(:empty)+._watchRows_12t05_1397:not(:empty){border-top:1px solid var(--border)}._valueGroup_12t05_1398{min-width:0;border-bottom:1px solid var(--border)}._valueGroup_12t05_1398:last-child{border-bottom:0}._valueGroupToggle_12t05_1400{display:flex;width:100%;min-height:34px;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;border:0;border-bottom:1px solid var(--border);background:var(--bg-secondary);color:var(--text-secondary);font-family:var(--font-label);font-size:10px;font-weight:600;text-align:left;cursor:pointer}._valueGroupToggle_12t05_1400:before{content:"▾";color:var(--text-muted)}._valueGroupToggle_12t05_1400[aria-expanded=false]:before{content:"▸"}._valueGroupToggle_12t05_1400 span:first-child{flex:1}._valueGroupToggle_12t05_1400 span:last-child{color:var(--text-muted);font-family:var(--font-code)}._valueGroupToggle_12t05_1400:focus-visible{outline:none;box-shadow:inset var(--focus-ring)}._valueGroupRows_12t05_1406>:not(:last-child) ._controlRow_12t05_1406,._valueGroupRows_12t05_1406>:not(:last-child) ._watchRow_12t05_1397{border-bottom:1px solid var(--border)}._valuePagination_12t05_1390{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:10px 16px;border-top:1px solid var(--border);color:var(--text-secondary);font-size:11px}._valuePagination_12t05_1390 button{min-height:34px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-primary)}._valuePagination_12t05_1390 button:disabled{cursor:not-allowed;opacity:.5}._historyBrowser_12t05_1411{min-width:0}._historyToolbar_12t05_1412{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,220px);gap:10px;padding:12px 14px;border-bottom:1px solid var(--border);background:var(--bg-secondary)}._historyToolbar_12t05_1412 label{display:flex;min-width:0;flex-direction:column;gap:5px;color:var(--text-secondary);font-size:10px}._historyToolbar_12t05_1412 input,._historyToolbar_12t05_1412 select{min-height:36px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card);color:var(--text-primary);padding:0 10px}._historyToolbar_12t05_1412 input:focus-visible,._historyToolbar_12t05_1412 select:focus-visible{outline:none;box-shadow:var(--focus-ring)}._liveRows_12t05_1397,._watchRows_12t05_1397{display:flex;flex-direction:column}._controlRow_12t05_1406,._watchRow_12t05_1397{display:grid;min-width:0;grid-template-columns:minmax(130px,1fr) minmax(90px,auto) minmax(170px,1fr);align-items:center;gap:12px;min-height:82px;padding:12px 16px;border-bottom:1px solid var(--border)}._controlRow_12t05_1406:last-child,._watchRow_12t05_1397:last-child{border-bottom:0}._rowIdentity_12t05_1436,._actualValue_12t05_1271,._watchReading_12t05_1272,._freshness_12t05_1439,._controlEditor_12t05_1144{display:flex;min-width:0;flex-direction:column;gap:4px}._rowIdentity_12t05_1436 strong,._actualValue_12t05_1271 strong,._watchReading_12t05_1272 strong{overflow:hidden;color:var(--text-primary);font-family:var(--font-code);font-size:12px;text-overflow:ellipsis;white-space:nowrap}._rowIdentity_12t05_1436 strong{font-family:var(--font-label);font-size:12px}._rowIdentity_12t05_1436 span{color:var(--text-muted);font-family:var(--font-code);font-size:9px;overflow-wrap:anywhere}._rowIdentity_12t05_1436>._presentationMeta_12t05_1460{color:var(--accent);font-family:var(--font-label);font-weight:600}._rowFeedback_12t05_1461{min-height:14px;color:var(--text-muted);font-size:9px}._rowFeedback_12t05_1461[data-state=error],._rowFeedback_12t05_1461[data-state=conflict]{color:var(--error)}._rowFeedback_12t05_1461[data-state=applied]{color:var(--success)}._rowFeedback_12t05_1461[data-state=pending_resume],._rowFeedback_12t05_1461[data-state=requires_adapter]{color:var(--warning)}._controlEditorRow_12t05_1467{display:grid;min-width:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}._controlActions_12t05_1468{display:flex;min-width:0;align-items:center;gap:8px}._controlActions_12t05_1468>._controlGate_12t05_1361{flex:0 0 auto}._controlActions_12t05_1468 ._secondaryAction_12t05_74{min-height:32px;padding:0 10px;font-size:10px}._applyOnStartOption_12t05_1471{display:inline-flex;min-width:0;flex:1;align-items:center;gap:6px;color:var(--text-secondary);font-size:9px}._applyOnStartOption_12t05_1471 input{width:14px;height:14px;min-height:14px;flex:0 0 auto;padding:0;accent-color:var(--accent)}._valueDetails_12t05_1473{margin-top:3px;color:var(--text-secondary);font-size:10px}._valueDetails_12t05_1473 summary{color:var(--text-secondary);cursor:pointer}._valueDetails_12t05_1473 dl{display:grid;gap:5px;margin:8px 0 0}._valueDetails_12t05_1473 dl>div{display:grid;grid-template-columns:minmax(92px,auto) minmax(0,1fr);gap:8px}._valueDetails_12t05_1473 dt{color:var(--text-muted)}._valueDetails_12t05_1473 dd{margin:0;overflow-wrap:anywhere}._valueDetailButton_12t05_1479{width:fit-content;min-height:24px;border:0;border-radius:var(--radius-control);background:transparent;color:var(--text-secondary);padding:0 5px;font-family:var(--font-label);font-size:10px;cursor:pointer}._valueDetailButton_12t05_1479:hover{background:var(--accent-dim);color:var(--accent)}._valueDetailButton_12t05_1479:focus-visible{outline:none;box-shadow:var(--focus-ring)}._valueDetailShell_12t05_1482{display:flex;width:100%;height:100%;min-width:0;min-height:0;flex-direction:column;overflow:hidden}._valueDetailBody_12t05_1483{display:flex;min-height:0;flex:1;flex-direction:column;gap:16px;overflow-y:auto;padding:18px 20px 20px}._valueDetailList_12t05_1484{display:grid;gap:12px;margin:0}._valueDetailList_12t05_1484>div{display:grid;grid-template-columns:minmax(120px,.4fr) minmax(0,1fr);gap:12px}._valueDetailList_12t05_1484 dt{color:var(--text-muted);font-family:var(--font-label);font-size:11px}._valueDetailList_12t05_1484 dd{min-width:0;margin:0;color:var(--text-primary);font-family:var(--font-code);font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}._valueDetailActions_12t05_1488{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}._valueDetailFeedback_12t05_1489{min-height:34px;box-sizing:border-box;border:1px solid transparent;border-radius:var(--radius-control);padding:8px 10px;color:transparent;font-size:11px;line-height:1.45}._valueDetailFeedback_12t05_1489[data-state=success]{border-color:var(--success-border);background:var(--success-bg);color:var(--success-text)}._valueDetailFeedback_12t05_1489[data-state=error]{border-color:var(--error-border);background:var(--error-bg);color:var(--error-text)}._defaultValueEditor_12t05_1492 input:not([type=checkbox]),._defaultValueEditor_12t05_1492 select{width:100%;min-height:36px;box-sizing:border-box;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-primary);padding:0 10px;font-size:12px}._defaultValueEditor_12t05_1492 input:focus-visible,._defaultValueEditor_12t05_1492 select:focus-visible{outline:none;box-shadow:var(--focus-ring)}._defaultBooleanEditor_12t05_1496{display:inline-flex;min-height:36px;align-items:center;gap:8px;color:var(--text-primary);font-size:12px}._defaultBooleanEditor_12t05_1496 input{width:16px;height:16px;accent-color:var(--accent)}._booleanEditor_12t05_1499{display:inline-flex;min-height:36px;align-items:center;gap:8px;color:var(--text-primary);font-size:12px}._booleanEditor_12t05_1499 input{width:16px;height:16px;accent-color:var(--accent)}._rangeEditor_12t05_1508{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:center;gap:8px}._rangeEditor_12t05_1508 input{width:100%;accent-color:var(--accent)}._rangeEditor_12t05_1508 output{color:var(--text-primary);font-family:var(--font-code);font-size:11px;text-align:right}._freshness_12t05_1439{align-items:flex-end;color:var(--text-muted);font-family:var(--font-label);font-size:10px;font-weight:600}._freshness_12t05_1439[data-status=fresh]{color:var(--success)}._freshness_12t05_1439[data-status=stale]{color:var(--warning)}._freshness_12t05_1439 time{color:var(--text-muted);font-family:var(--font-code);font-size:9px;font-weight:400}._valueWorkspacePanel_12t05_1523{overflow:visible}._valueWorkspaceHeader_12t05_1524{border-radius:var(--radius) var(--radius) 0 0;background:var(--bg-card)}._valueSections_12t05_1525{display:flex;min-width:0;flex-direction:column;gap:8px;padding:8px;background:var(--bg-primary)}._valueSection_12t05_1525{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-card)}._valueSectionHeader_12t05_1527{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:12px;padding:6px 10px;border-bottom:1px solid var(--border)}._valueSectionHeading_12t05_1528{display:flex;min-width:0;align-items:center;gap:8px}._valueSectionHeading_12t05_1528 h3{margin:0;color:var(--text-primary);font-family:var(--font-label);font-size:var(--type-section-title-size);font-weight:600;line-height:var(--leading-title)}._valueSectionCount_12t05_1530{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;border-radius:var(--radius-pill);background:var(--bg-secondary);color:var(--text-secondary);padding:0 7px;font-family:var(--font-code);font-size:10px}._valueSectionHeaderActions_12t05_1531{display:flex;min-width:0;flex:1;align-items:center;justify-content:flex-end;gap:8px}._sectionDragHandle_12t05_1532,._sectionMoveButton_12t05_1533,._valueReorderControls_12t05_1534 button{display:inline-flex;min-width:28px;min-height:28px;align-items:center;justify-content:center;border:0;border-radius:var(--radius-control);background:transparent;color:var(--text-secondary);padding:0}._sectionDragHandle_12t05_1532,._dragHandle_12t05_1536{cursor:grab}._sectionDragHandle_12t05_1532:active,._dragHandle_12t05_1536:active{cursor:grabbing}._sectionDragHandle_12t05_1532:hover,._sectionMoveButton_12t05_1533:hover,._valueReorderControls_12t05_1534 button:hover:not(:disabled){background:var(--bg-secondary);color:var(--text-primary)}._sectionDragHandle_12t05_1532:focus-visible,._sectionMoveButton_12t05_1533:focus-visible,._valueReorderControls_12t05_1534 button:focus-visible{outline:none;box-shadow:var(--focus-ring)}._valueReorderControls_12t05_1534 button:disabled{opacity:.3}._sectionDragHandle_12t05_1532:disabled,._sectionMoveButton_12t05_1533:disabled{opacity:.3;cursor:not-allowed}._runtimeSettings_12t05_1548{display:flex;min-width:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}._runtimeApplyMode_12t05_1549{display:inline-flex;min-height:32px;align-items:center;gap:2px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);padding:2px}._runtimeApplyMode_12t05_1549>span{min-width:0;margin:0 6px;color:var(--text-secondary);font-family:var(--font-label);font-size:10px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}._runtimeApplyMode_12t05_1549 button{min-height:26px;border:0;border-radius:4px;background:transparent;color:var(--text-secondary);padding:0 9px;font-size:11px;font-weight:600;cursor:pointer}._runtimeApplyMode_12t05_1549 button:hover:not(:disabled){background:var(--accent-dim);color:var(--accent-hover)}._runtimeApplyMode_12t05_1549 button[aria-pressed=true]{background:var(--accent);color:var(--button-primary-text)}._runtimeApplyMode_12t05_1549 button:focus-visible{outline:none;box-shadow:var(--focus-ring)}._runtimeApplyMode_12t05_1549 button:disabled{cursor:not-allowed;opacity:.5}._runtimeDefaultOption_12t05_1556{display:inline-flex;min-height:32px;align-items:center;gap:7px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-secondary);padding:0 9px;font-size:11px;cursor:pointer}._runtimeDefaultOption_12t05_1556:hover{border-color:var(--border-highlight);color:var(--text-primary)}._runtimeDefaultOption_12t05_1556:focus-within{box-shadow:var(--focus-ring)}._runtimeDefaultOption_12t05_1556 input{width:15px;height:15px;margin:0;accent-color:var(--accent)}._runtimeDefaultOption_12t05_1556 span{min-width:0;overflow-wrap:anywhere}._runtimeDefaultOption_12t05_1556:has(input:disabled){cursor:not-allowed;opacity:.55}._layoutError_12t05_1562{padding:8px 16px;border-bottom:1px solid var(--error);color:var(--error);font-size:11px}._controlValueList_12t05_1563,._watchValueGrid_12t05_1564{min-width:0}._valueEntryShell_12t05_1565{position:relative;min-width:0;border-bottom:1px solid var(--border)}._valueEntryShell_12t05_1565:last-child{border-bottom:0}._valueReorderControls_12t05_1534{position:absolute;z-index:2;top:4px;right:4px;display:flex;align-items:center;justify-content:flex-end;gap:2px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);padding:1px}._valueEntryShell_12t05_1565[data-layout-editing=true] ._watchRow_12t05_1397,._valueEntryShell_12t05_1565[data-layout-editing=true] ._controlRow_12t05_1406{padding-right:100px}._valueEntryShell_12t05_1565[data-drop-position=before]{box-shadow:inset 3px 0 0 var(--accent)}._valueEntryShell_12t05_1565[data-drop-position=after]{box-shadow:inset -3px 0 0 var(--accent)}._controlValueList_12t05_1563 ._valueEntryShell_12t05_1565[data-drop-position=before]{box-shadow:inset 0 3px 0 var(--accent)}._controlValueList_12t05_1563 ._valueEntryShell_12t05_1565[data-drop-position=after]{box-shadow:inset 0 -3px 0 var(--accent)}._watchValueGrid_12t05_1564 ._valueGroupRows_12t05_1406{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}._watchValueGrid_12t05_1564 ._valueEntryShell_12t05_1565{border-right:1px solid var(--border)}._watchValueGrid_12t05_1564 ._watchRow_12t05_1397{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:64px;align-content:center;gap:3px 8px;padding:8px 10px;border:0}._watchCardMain_12t05_1577{display:flex;min-width:0;align-items:center;gap:6px}._watchCardMain_12t05_1577>strong{overflow:hidden;color:var(--text-primary);font-family:var(--font-label);font-size:12px;text-overflow:ellipsis;white-space:nowrap}._watchCardMain_12t05_1577 ._presentationMeta_12t05_1460{flex:0 0 auto;color:var(--accent);font-size:9px}._watchValueGrid_12t05_1564 ._watchReading_12t05_1272{grid-column:1;flex-direction:row;align-items:baseline;gap:6px}._watchValueGrid_12t05_1564 ._watchReading_12t05_1272 strong{display:block;overflow:hidden;font-size:15px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}._watchValueGrid_12t05_1564 ._watchRow_12t05_1397[data-value-type=number] ._watchReading_12t05_1272 strong{font-variant-numeric:tabular-nums;text-align:right}._watchValueGrid_12t05_1564 ._freshness_12t05_1439{align-self:center;align-items:flex-end;font-size:9px}._watchDetails_12t05_1584{grid-column:1 / -1;color:var(--text-secondary);font-size:9px}._watchDetails_12t05_1584 summary{cursor:pointer}._watchDetails_12t05_1584 dl{display:grid;gap:5px;margin:8px 0 0}._watchDetails_12t05_1584 dl>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}._watchDetails_12t05_1584 dt{color:var(--text-muted)}._watchDetails_12t05_1584 dd{min-width:0;margin:0;overflow-wrap:anywhere}._controlValueList_12t05_1563 ._controlRow_12t05_1406{grid-template-columns:minmax(140px,.72fr) minmax(90px,.45fr) minmax(280px,1.6fr);min-height:72px;padding-block:6px;border:0}._controlValueList_12t05_1563 ._rowFeedback_12t05_1461{min-height:14px;line-height:1.35}@media(max-width:760px){._watchValueGrid_12t05_1564 ._valueGroupRows_12t05_1406{grid-template-columns:repeat(2,minmax(0,1fr))}._controlValueList_12t05_1563 ._controlRow_12t05_1406{grid-template-columns:minmax(0,1fr)}._controlEditorRow_12t05_1467{grid-template-columns:minmax(0,1fr) auto}._valueFilters_12t05_1383{grid-template-columns:repeat(2,minmax(0,1fr))}._valueSections_12t05_1525{padding:10px}._valueSectionHeader_12t05_1527{align-items:flex-start;flex-wrap:wrap}._valueSectionHeaderActions_12t05_1531{flex-basis:100%;justify-content:flex-start}._runtimeSettings_12t05_1548{justify-content:flex-start}}@media(max-width:390px){._watchValueGrid_12t05_1564 ._valueGroupRows_12t05_1406,._valueFilters_12t05_1383{grid-template-columns:minmax(0,1fr)}._valueSections_12t05_1525{gap:8px;padding:8px}._valueSectionHeader_12t05_1527{padding-inline:8px}._runtimeSettings_12t05_1548,._runtimeSettings_12t05_1548>._controlGate_12t05_1361,._runtimeApplyMode_12t05_1549,._runtimeDefaultOption_12t05_1556{width:100%;box-sizing:border-box}._runtimeApplyMode_12t05_1549>span{flex:1}}._deploymentGuide_12t05_1616{display:grid;gap:var(--space-page);padding:var(--card-padding-block) var(--card-padding-inline);border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-card);min-width:0;container-type:inline-size}._deploymentGuide_12t05_1616 h2,._deploymentGuide_12t05_1616 h3,._deploymentGuide_12t05_1616 p{margin:0}._deploymentGuide_12t05_1616 h2{font-size:var(--type-surface-title-size);font-weight:600;line-height:var(--leading-title)}._deploymentGuide_12t05_1616 h3,._deploymentScope_12t05_1628 dt{color:var(--text-primary);font-size:var(--type-section-title-size);font-weight:600;line-height:var(--leading-title)}._deploymentGuide_12t05_1616 p,._deploymentScope_12t05_1628 dd{font-size:var(--type-guidance-size);line-height:var(--leading-guidance);color:var(--text-secondary);overflow-wrap:anywhere}._deploymentGuide_12t05_1616 header{display:grid;gap:var(--space-section)}._deploymentLifecycle_12t05_1631{display:grid;gap:var(--space-related)}._deploymentNotice_12t05_1632{display:grid;gap:var(--space-related);max-width:78ch;padding:var(--space-section);border:1px solid var(--warning-border);border-radius:var(--radius-control);background:var(--warning-bg)}._deploymentNotice_12t05_1632 h3{color:var(--warning-text)}._deploymentChecklist_12t05_1634{display:grid;gap:var(--space-section);max-width:78ch;padding:var(--card-padding-block);border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary)}._deploymentChecklist_12t05_1634 ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-related) 24px;margin:0;padding:0;list-style:none}._deploymentChecklist_12t05_1634 li{position:relative;padding-left:16px;color:var(--text-secondary);font-size:var(--type-guidance-size);font-weight:400;line-height:var(--leading-guidance)}._deploymentChecklist_12t05_1634 li:before{position:absolute;top:.65em;left:0;width:6px;height:6px;border-radius:var(--radius-pill);background:var(--accent);content:""}._deploymentGuide_12t05_1616 ._deploymentDescription_12t05_1638{color:var(--text-muted);font-size:var(--type-body-size);line-height:var(--leading-body)}._deploymentDescription_12t05_1638,._deploymentLifecycle_12t05_1631,._deploymentDetails_12t05_1641 p{max-width:78ch}._deploymentScope_12t05_1628{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:0;padding:20px 0;border-block:1px solid var(--border)}._deploymentScope_12t05_1628 dd{margin:var(--space-related) 0 0}._deploymentLifecycle_12t05_1631{padding-top:4px}._deploymentDetails_12t05_1641{min-width:0;border:1px solid var(--border);border-radius:var(--radius-control)}._deploymentDetails_12t05_1641 summary{cursor:pointer;padding:var(--space-section);font-size:var(--type-card-title-size);font-weight:600;line-height:var(--leading-title);color:var(--text-primary)}._deploymentDetails_12t05_1641 summary:hover{background:var(--bg-secondary)}._deploymentDetails_12t05_1641 summary:focus-visible{outline:none;box-shadow:var(--focus-ring)}._deploymentDetails_12t05_1641 p{padding:0 12px 12px}._deploymentDetails_12t05_1641 pre{margin:0 12px 12px;padding:12px;background:var(--bg-secondary);border-radius:var(--radius-control);font:12px/1.6 var(--font-code);overflow-x:auto}@container (max-width: 680px){._deploymentChecklist_12t05_1634 ul,._deploymentScope_12t05_1628{grid-template-columns:minmax(0,1fr)}}@media(max-width:600px){._deploymentGuide_12t05_1616{padding:var(--card-padding-block)}._deploymentChecklist_12t05_1634{padding:14px}._deploymentScope_12t05_1628{gap:16px}}._inlineError_12t05_1661{padding:10px 12px;border:1px solid var(--danger-border);border-radius:var(--radius-control);color:var(--error);font-size:11px}._profileDialog_12t05_1147{display:flex;flex:1;width:100%;height:100%;min-width:0;min-height:0;flex-direction:column;overflow:hidden}._profileEditorDialog_12t05_1664{width:100%}._profileDialogBody_12t05_1665{display:flex;min-height:0;flex:1;flex-direction:column;gap:14px;overflow-y:auto;padding:16px 20px}._profileDialog_12t05_1147 label{display:flex;flex-direction:column;gap:6px;color:var(--text-primary);font-size:11px}._profileDialogActions_12t05_1197{flex:0 0 auto;justify-content:flex-end;padding:12px 20px 16px;border-top:1px solid var(--border);background:var(--bg-card)}._profileDeleteAction_12t05_1668{margin-right:auto}._profileDeleteReason_12t05_1669{max-width:320px;color:var(--warning-text);font-size:var(--type-control-size);line-height:var(--leading-body)}._bindingTabs_12t05_1670{display:flex;gap:4px;border-bottom:1px solid var(--border)}._bindingTabs_12t05_1670 button{min-height:36px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--text-secondary);cursor:pointer}._bindingTabs_12t05_1670 button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--text-primary)}._bindingTabs_12t05_1670 span{margin-left:4px;color:var(--text-muted);font-family:var(--font-code);font-size:10px}._bindingList_12t05_1674{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--radius-control);overflow:hidden}._bindingEmpty_12t05_1675{padding:18px;color:var(--text-muted);font-size:11px;text-align:center}._bindingItem_12t05_1676{display:flex;min-height:54px;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid var(--border)}._bindingItem_12t05_1676:last-child{border-bottom:0}._bindingItem_12t05_1676>div{display:flex;min-width:0;flex-direction:column;gap:3px}._bindingItem_12t05_1676 strong{color:var(--text-primary);font-size:12px}._bindingItem_12t05_1676 span{overflow:hidden;color:var(--text-muted);font-family:var(--font-code);font-size:9px;text-overflow:ellipsis;white-space:nowrap}._bindingItem_12t05_1676>._bindingItemCopy_12t05_1681{min-width:0;flex:1}._bindingPresentation_12t05_1682{display:flex;min-width:0;align-items:flex-end;gap:10px;margin-top:6px}._bindingPresentation_12t05_1682 label{min-width:120px;flex:1;font-size:9px}._bindingPresentation_12t05_1682 input:not([type=checkbox]){width:100%;min-height:30px;box-sizing:border-box}._bindingPresentation_12t05_1682>._bindingPin_12t05_1685{min-width:auto;flex:0 0 auto;flex-direction:row;align-items:center;gap:5px;padding-bottom:7px}._bindingPin_12t05_1685 input{width:14px;height:14px;min-height:14px;padding:0;accent-color:var(--accent)}._bindingItem_12t05_1676>._bindingItemActions_12t05_1687{flex:0 0 auto;flex-direction:row;align-items:center;gap:4px}._bindingItemActions_12t05_1687>button{display:inline-grid;width:30px;height:30px;place-items:center;border:1px solid transparent;border-radius:var(--radius-control);background:transparent;color:var(--text-muted);cursor:pointer}._bindingItemActions_12t05_1687>button:hover:not(:disabled){border-color:var(--border);background:var(--bg-secondary);color:var(--text-primary)}._bindingItemActions_12t05_1687>button:disabled{cursor:not-allowed;opacity:.35}._bindingDelete_12t05_1691{display:inline-grid;width:32px;height:32px;flex:0 0 auto;place-items:center;border:1px solid transparent;border-radius:var(--radius-control);background:transparent;color:var(--text-muted);cursor:pointer}._bindingDelete_12t05_1691:hover{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger-text)}._addBindingButton_12t05_1693{display:inline-flex;min-height:36px;align-items:center;justify-content:center;gap:6px;border:1px dashed var(--border);border-radius:var(--radius-control);background:transparent;color:var(--text-secondary);cursor:pointer}._bindingForm_12t05_1694{display:flex;flex-direction:column;gap:12px;margin:0;padding:14px;border:1px solid var(--accent);border-radius:var(--radius-control)}._bindingFormGrid_12t05_1695{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}._bindingForm_12t05_1694 input,._bindingForm_12t05_1694 select{min-height:36px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-primary);padding:0 10px}._bindingBooleanDefault_12t05_1698{min-height:36px;flex-direction:row!important;align-items:center;align-self:end}._bindingBooleanDefault_12t05_1698 input{width:16px;min-height:16px;height:16px;padding:0;accent-color:var(--accent)}._bindingPathField_12t05_1700{grid-column:1 / -1}._rangeFields_12t05_1701{display:grid;grid-column:1 / -1;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}._selectionButton_12t05_1702{min-height:34px;align-self:flex-start;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-secondary);padding:0 10px;cursor:pointer}._bindingFormActions_12t05_1703{display:flex;justify-content:flex-end;gap:8px}._bindingError_12t05_1704{padding:8px 10px;border:1px solid var(--danger-border);border-radius:var(--radius-control);color:var(--error);font-size:11px}._valueManagerShell_12t05_1705{display:flex;flex:1;width:100%;height:100%;min-width:0;min-height:0;flex-direction:column;overflow:hidden}._valueSourceTabs_12t05_1706{display:flex;flex:0 0 auto;gap:4px;padding:0 20px;border-bottom:1px solid var(--border);background:var(--bg-card);overflow-x:auto}._valueSourceTabs_12t05_1706 button{min-height:42px;flex:0 0 auto;padding:0 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--text-secondary);font-family:var(--font-label);font-size:11px;cursor:pointer}._valueSourceTabs_12t05_1706 button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--text-primary)}._valueSourceTabs_12t05_1706 button:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--accent)}._valueManagerBody_12t05_1710{display:flex;min-height:0;flex:1;flex-direction:column;gap:12px;overflow-y:auto;padding:16px 20px 20px}._valueSourcePanel_12t05_1711{display:flex;min-width:0;flex-direction:column;gap:12px}._registeredIntro_12t05_1712{display:flex;flex-direction:column;gap:5px;padding:12px 14px;border-left:3px solid var(--accent);background:var(--accent-dim)}._registeredIntro_12t05_1712 strong{color:var(--text-primary);font-size:var(--type-guidance-size);line-height:var(--leading-guidance)}._registeredIntro_12t05_1712 p{margin:0;color:var(--text-secondary);font-size:var(--type-body-size);line-height:var(--leading-body)}._registeredIntro_12t05_1712 span{color:var(--text-muted);font-size:var(--type-control-size)}._registeredEmpty_12t05_1716{display:flex;min-height:220px;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:28px 16px;border:1px dashed var(--border);border-radius:var(--radius-control);text-align:center}._registeredEmpty_12t05_1716>strong{color:var(--text-primary);font-size:var(--type-section-title-size);line-height:var(--leading-title)}._registeredEmpty_12t05_1716>p{max-width:620px;margin:0;color:var(--text-secondary);font-size:var(--type-guidance-size);line-height:var(--leading-guidance)}._registeredSteps_12t05_1719{display:grid;width:min(100%,720px);margin:4px 0;padding:0;counter-reset:registered-step;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-related);list-style:none}._registeredSteps_12t05_1719 li{display:flex;min-width:0;align-items:center;gap:8px;color:var(--text-secondary);font-size:var(--type-body-size);line-height:var(--leading-body);text-align:left}._registeredSteps_12t05_1719 li:before{display:inline-grid;width:24px;height:24px;flex:0 0 auto;place-items:center;border:1px solid var(--border-highlight);border-radius:var(--radius-pill);color:var(--accent);content:counter(registered-step);counter-increment:registered-step;font-family:var(--font-code);font-size:var(--type-control-size)}._registeredEmptyActions_12t05_1722{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-related)}._registeredEmpty_12t05_1716 button,._registeredEmptyActions_12t05_1722 button{min-height:44px;border:1px solid var(--border-highlight);border-radius:var(--radius-control);background:var(--bg-card);color:var(--text-primary);padding:0 14px;cursor:pointer}._registeredEmpty_12t05_1716 button:focus-visible,._registeredEmptyActions_12t05_1722 button:focus-visible{outline:none;box-shadow:var(--focus-ring)}._adapterSetupList_12t05_1727{display:flex;flex-direction:column;border:1px solid var(--warning-border);border-radius:var(--radius-control);overflow:hidden}._adapterSetupList_12t05_1727>header{display:flex;flex-direction:column;gap:3px;padding:10px 12px;background:var(--warning-bg)}._adapterSetupList_12t05_1727>header strong{color:var(--warning-text);font-size:var(--type-card-title-size)}._adapterSetupList_12t05_1727>header span{color:var(--text-secondary);font-size:var(--type-body-size)}._adapterSetupRow_12t05_1731{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;background:var(--bg-card)}._adapterSetupRow_12t05_1731>div{display:flex;min-width:0;flex-direction:column;gap:4px}._adapterSetupRow_12t05_1731 strong{color:var(--text-primary);font-size:var(--type-record-title-size);overflow-wrap:anywhere}._adapterSetupRow_12t05_1731 span,._adapterSetupRow_12t05_1731 code{color:var(--text-secondary);font-size:var(--type-control-size);overflow-wrap:anywhere}._adapterSetupRow_12t05_1731 code{color:var(--text-muted)}._adapterSetupRow_12t05_1731>button{min-height:44px;flex:0 0 auto;border:1px solid var(--warning-border);border-radius:var(--radius-control);background:var(--warning-bg);color:var(--warning-text);padding:0 14px;cursor:pointer}._adapterSetupRow_12t05_1731>button:focus-visible{outline:none;box-shadow:var(--focus-ring)}._adapterMethods_12t05_1738{display:flex;flex-wrap:wrap;gap:4px 10px}._connectionGuide_12t05_1739{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary)}._connectionGuide_12t05_1739>summary{min-height:44px;display:flex;align-items:center;padding:0 14px;color:var(--text-primary);font-size:var(--type-card-title-size);font-weight:600;cursor:pointer}._connectionGuide_12t05_1739>summary:focus-visible{outline:none;box-shadow:var(--focus-ring)}._connectionGuide_12t05_1739 ._registrationGuide_12t05_1742{border:0;border-top:1px solid var(--border);border-radius:0}._adapterSetupContext_12t05_1743{padding:8px 10px;border:1px solid var(--info-border);border-radius:var(--radius-control);background:var(--info-bg);color:var(--info-text)!important}._valueManagerBody_12t05_1710 ._valueSearch_12t05_1744,._firstProfileName_12t05_1745{display:flex;flex-direction:column;gap:6px;color:var(--text-secondary);font-size:11px}._valueManagerBody_12t05_1710 ._valueSearch_12t05_1744 input,._firstProfileName_12t05_1745 input{min-height:38px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-primary);padding:0 11px}._firstProfileName_12t05_1745 small{color:var(--text-muted);font-size:10px}._sourceIntro_12t05_1749{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary)}._sourceIntro_12t05_1749>div{display:flex;min-width:0;flex-direction:column;gap:5px}._sourceIntro_12t05_1749 strong{color:var(--text-primary);font-size:13px}._sourceIntro_12t05_1749 p{margin:0;color:var(--text-secondary);font-size:11px;line-height:1.5}._catalogGroups_12t05_1753{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--radius-control);overflow:hidden}._catalogRow_12t05_1754{display:flex;min-height:74px;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;border-bottom:1px solid var(--border)}._catalogRow_12t05_1754:last-child{border-bottom:0}._catalogRow_12t05_1754>div{display:flex;min-width:0;flex-direction:column;gap:3px}._catalogRow_12t05_1754 strong{color:var(--text-primary);font-size:13px}._catalogRow_12t05_1754 span{color:var(--text-secondary);font-size:11px}._catalogRow_12t05_1754 code{overflow:hidden;color:var(--text-muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}._catalogRow_12t05_1754 button{min-width:92px;min-height:36px;border:1px solid var(--accent);border-radius:var(--radius-control);background:var(--accent-dim);color:var(--text-primary);padding:0 12px}._catalogRow_12t05_1754 button:disabled{border-color:var(--border);background:var(--bg-secondary);color:var(--text-muted);cursor:not-allowed}._catalogRow_12t05_1754>._candidateActions_12t05_1762{display:flex;flex:0 0 auto;flex-direction:row;gap:8px}._candidateActions_12t05_1762 button{min-width:0}._candidateEntry_12t05_1764{min-width:0;border-bottom:1px solid var(--border)}._propertySelection_12t05_1765{min-width:0;border:1px solid var(--border);border-radius:var(--radius-control)}._propertySelectionHeader_12t05_1766{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,2fr);align-items:start;gap:var(--space-section);padding:16px;border-bottom:1px solid var(--border)}._selectedInstance_12t05_1767{display:flex;min-width:0;flex-direction:column;gap:6px}._selectedInstance_12t05_1767>span,._propertyPickerLabel_12t05_1768{color:var(--text-secondary);font-size:var(--type-control-size)}._selectedInstance_12t05_1767 strong{font-size:var(--type-body-size);overflow-wrap:anywhere}._selectedInstance_12t05_1767 details{min-width:0;color:var(--text-secondary);font-size:var(--type-control-size)}._selectedInstance_12t05_1767 summary{cursor:pointer;min-height:32px;padding-top:6px}._selectedInstance_12t05_1767 code{display:block;overflow-wrap:anywhere;white-space:normal}._propertyPicker_12t05_1768{position:relative;display:flex;min-width:0;flex-direction:column;gap:6px}._propertyPickerTrigger_12t05_1774{display:flex;width:100%;min-height:44px;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-primary);font:inherit;cursor:pointer}._propertyPickerTrigger_12t05_1774:hover,._propertyPickerTrigger_12t05_1774[aria-expanded=true]{border-color:var(--accent);background:var(--accent-dim)}._propertyPickerTrigger_12t05_1774:focus-visible,._propertyPickerPanel_12t05_1776 :is(input,button,[role=option]):focus-visible{outline:none;box-shadow:var(--focus-ring)}._propertyPickerPanel_12t05_1776{position:absolute;z-index:12;top:calc(100% + 6px);right:0;width:min(440px,70vw);overflow:hidden;border:1px solid var(--border-highlight);border-radius:var(--radius-control);background:var(--bg-card);box-shadow:0 16px 36px #02061757}._propertyPickerSearchRow_12t05_1778{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:end;gap:8px;padding:12px;border-bottom:1px solid var(--border)}._propertyPickerSearchRow_12t05_1778 label{display:flex;min-width:0;flex-direction:column;gap:6px;color:var(--text-secondary);font-size:var(--type-control-size)}._propertyPickerSearchRow_12t05_1778 input{width:100%;min-height:44px;box-sizing:border-box;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-primary);padding:8px 10px;font:inherit}._propertyPickerSearchRow_12t05_1778 button{width:44px;height:44px;border:1px solid var(--border);border-radius:var(--radius-control);background:transparent;color:var(--text-secondary);cursor:pointer}._propertyPickerList_12t05_1782{max-height:280px;overflow-y:auto;padding:6px}._propertyPickerList_12t05_1782>p{margin:0;padding:18px 10px;color:var(--text-secondary);font-size:var(--type-body-size);text-align:center}._propertyPickerGroup_12t05_1784{display:flex;flex-direction:column;gap:2px}._propertyPickerGroup_12t05_1784+._propertyPickerGroup_12t05_1784{margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}._propertyPickerGroup_12t05_1784>span{padding:4px 8px;color:var(--text-muted);font-family:var(--font-label);font-size:var(--type-control-size)}._propertyPickerOption_12t05_1787{display:grid;min-height:38px;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:8px;border-radius:var(--radius-control);padding:5px 8px;color:var(--text-primary);cursor:pointer}._propertyPickerOption_12t05_1787:hover,._propertyPickerOption_12t05_1787[aria-selected=true]{background:var(--accent-dim)}._propertyPickerOption_12t05_1787 small{color:var(--text-muted);font-size:var(--type-control-size)}._propertyPickerOption_12t05_1787 svg{color:var(--accent)}._propertySelection_12t05_1765 ._catalogRow_12t05_1754 strong,._propertySelection_12t05_1765 ._catalogRow_12t05_1754 span{font-size:var(--type-body-size)}._propertySelection_12t05_1765 ._catalogRow_12t05_1754 span{overflow-wrap:anywhere}._compoundEditor_12t05_1793{display:flex;width:100%;min-width:0;gap:8px;align-items:start}._compoundCoordinates_12t05_1794{display:grid;width:100%;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}._compoundCoordinates_12t05_1794 label{display:flex;min-width:0;flex-direction:column;gap:4px}._compoundCoordinates_12t05_1794 label>span{color:var(--text-secondary);font-size:var(--type-control-size)}._valueDetailList_12t05_1484>div:has(._compoundEditor_12t05_1793){grid-template-columns:minmax(0,1fr)}._compoundCoordinates_12t05_1794 label>span{white-space:nowrap}._compoundCoordinates_12t05_1794 input{width:100%;min-width:0;min-height:44px;box-sizing:border-box}._compoundCoordinates_12t05_1794 input[aria-invalid=true]{border-color:var(--error-border)}._compoundEditor_12t05_1793>._colorSwatch_12t05_1801{flex:0 0 44px;width:44px;min-width:44px;height:44px;margin-top:22px;padding:3px}@container (max-width: 680px){._propertySelectionHeader_12t05_1766{grid-template-columns:minmax(0,1fr);gap:12px}}@media(max-width:760px){._propertySelectionHeader_12t05_1766{grid-template-columns:minmax(0,1fr);gap:12px}}@media(max-width:430px){._propertyPicker_12t05_1768{grid-template-columns:minmax(0,1fr)}._compoundEditor_12t05_1793{flex-wrap:wrap}._compoundEditor_12t05_1793>._colorSwatch_12t05_1801{margin-top:0}}._candidateEntry_12t05_1764:last-child{border-bottom:0}._candidateEntry_12t05_1764>._catalogRow_12t05_1754{border-bottom:0}._candidateEntry_12t05_1764 strong{overflow-wrap:anywhere}._candidateActions_12t05_1762 ._candidateAction_12t05_1762{display:grid;min-height:44px;align-items:center;justify-items:center}._candidateAction_12t05_1762>span{grid-area:1 / 1;color:inherit;font-size:var(--type-control-size);overflow-wrap:anywhere}._candidateActionSizer_12t05_1818{visibility:hidden}._candidateAction_12t05_1762[data-state=saved]{border-color:var(--success-border);background:var(--success-bg);color:var(--success-text);cursor:default}._candidateAction_12t05_1762[data-state=pending]{border-color:var(--warning-border);background:var(--warning-bg);color:var(--warning-text);cursor:default}._candidateAction_12t05_1762:focus-visible{outline:none;box-shadow:var(--focus-ring)}._candidateError_12t05_1822{display:flex;align-items:center;justify-content:space-between;gap:var(--space-related);margin:0 12px 12px;padding:var(--space-related);border:1px solid var(--error-border);border-radius:var(--radius-control);background:var(--error-bg);color:var(--error-text);font-size:var(--type-body-size);overflow-wrap:anywhere}._candidateError_12t05_1822 button{flex:0 0 auto;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card);color:var(--text-primary);cursor:pointer}._valueManagerFooter_12t05_1824{display:flex;flex:0 0 auto;justify-content:flex-end;padding:var(--space-section) 20px;border-top:1px solid var(--border)}._catalogDetails_12t05_1825{margin-top:5px;color:var(--text-secondary);font-size:10px}._catalogDetails_12t05_1825 summary{color:var(--text-secondary);cursor:pointer}._catalogDetails_12t05_1825 dl{display:grid;gap:5px;margin:8px 0}._catalogDetails_12t05_1825 dl>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px}._catalogDetails_12t05_1825 dt{color:var(--text-muted)}._catalogDetails_12t05_1825 dd{min-width:0;margin:0;overflow-wrap:anywhere}._catalogDetails_12t05_1825 dd code{white-space:normal}._catalogDetails_12t05_1825 p{margin:6px 0;color:var(--text-secondary);font-size:10px;line-height:1.5}._catalogDetails_12t05_1825>button{min-height:32px;margin-top:3px;border-color:var(--border);background:var(--bg-card);font-size:10px}._inlineNotice_12t05_1834{padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-secondary);font-size:11px}._subscriptionUsage_12t05_1835{color:var(--text-muted);font-family:var(--font-code);font-size:10px}._pendingProfileAction_12t05_1836{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--accent);border-radius:var(--radius-control);background:var(--accent-dim);color:var(--text-secondary);font-size:11px}._registrationGuide_12t05_1742{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px dashed var(--border);border-radius:var(--radius-control);background:var(--bg-secondary)}._registrationGuide_12t05_1742 strong{color:var(--text-primary);font-size:14px}._registrationGuide_12t05_1742 p{margin:0;color:var(--text-secondary);font-size:12px;line-height:1.5}._registrationGuide_12t05_1742 code{align-self:flex-start;border-radius:6px;background:var(--bg-card);color:var(--accent);padding:5px 8px;font-size:11px}._registrationExample_12t05_1841{border-top:1px solid var(--border);padding-top:10px}._registrationExample_12t05_1841 summary{color:var(--text-primary);font-size:12px;cursor:pointer}._registrationExample_12t05_1841 pre{max-height:240px;margin:10px 0 0;overflow:auto;border-radius:var(--radius-control);background:var(--bg-primary);color:var(--text-secondary);padding:12px;font-size:10px;line-height:1.5}._registrationActions_12t05_1844{display:flex;flex-wrap:wrap;gap:8px}._registrationActions_12t05_1844 button{min-height:36px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card);color:var(--text-primary);padding:0 12px}._registrationActions_12t05_1844 button:focus-visible{outline:none;box-shadow:var(--focus-ring)}@media(max-width:760px){._valueSourceTabs_12t05_1706{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:12px;overflow:visible}._valueSourceTabs_12t05_1706 button{min-width:0;min-height:52px;padding:7px 4px;line-height:1.25;white-space:normal}._registeredSteps_12t05_1719{grid-template-columns:repeat(2,minmax(0,1fr))}._sessionBar_12t05_1152,._profileToolbar_12t05_1146{align-items:stretch;flex-direction:column}._sessionActions_12t05_1195,._profileActions_12t05_1196{flex-wrap:wrap;justify-content:stretch}._sessionActions_12t05_1195{min-width:0}._sessionActions_12t05_1195 button,._profileActions_12t05_1196 button{flex:1 1 120px}._liveGrid_12t05_1308{grid-template-columns:minmax(0,1fr)}._controlRow_12t05_1406,._watchRow_12t05_1397{grid-template-columns:minmax(0,1fr);gap:9px}._valueToolbar_12t05_1373,._historyToolbar_12t05_1412{grid-template-columns:minmax(0,1fr)}._freshness_12t05_1439{align-items:flex-start}._sessionIdentity_12t05_1165 span{white-space:normal}._livePanel_12t05_1315>header{align-items:stretch;flex-direction:column}._controlAvailability_12t05_1358{max-width:none;align-items:flex-start;text-align:left}._profileEditorDialog_12t05_1664{width:100%;max-width:100%;height:100%;max-height:100%}._valueManagerShell_12t05_1705{width:100%;height:100%;max-width:100%;max-height:100%}._catalogRow_12t05_1754{align-items:stretch;flex-direction:column}._catalogRow_12t05_1754 button{width:100%}._catalogRow_12t05_1754>._candidateActions_12t05_1762{flex-direction:column}._registeredEmptyActions_12t05_1722{width:100%;flex-direction:column}._registeredEmptyActions_12t05_1722 button{width:100%}._adapterSetupRow_12t05_1731{align-items:stretch;flex-direction:column}._adapterSetupRow_12t05_1731>button{width:100%}._sourceIntro_12t05_1749,._pendingProfileAction_12t05_1836,._controlActions_12t05_1468{align-items:stretch;flex-direction:column}._controlActions_12t05_1468>._controlGate_12t05_1361,._controlActions_12t05_1468 button{width:100%}._bindingFormGrid_12t05_1695,._rangeFields_12t05_1701{grid-template-columns:minmax(0,1fr)}._bindingItem_12t05_1676,._bindingPresentation_12t05_1682{align-items:stretch;flex-direction:column}._bindingPresentation_12t05_1682>._bindingPin_12t05_1685{padding-bottom:0}._bindingItem_12t05_1676>._bindingItemActions_12t05_1687{align-self:flex-end}._bindingPathField_12t05_1700,._rangeFields_12t05_1701{grid-column:auto}}@media(max-width:720px){._sampleBannerRow_12t05_22{flex-direction:column;align-items:stretch}._sampleActions_12t05_65{justify-content:stretch}._primaryAction_12t05_73,._secondaryAction_12t05_74,._resetAction_12t05_75{width:100%}._runSummary_12t05_540{grid-template-columns:1fr}._summaryFacts_12t05_601,._capabilityGrid_12t05_846,._dimensionGrid_12t05_642{grid-template-columns:1fr 1fr}._stepDetails_12t05_790{grid-template-columns:1fr}._stepDisclosure_12t05_291{grid-template-columns:18px 18px minmax(0,1fr) 14px}._stepStatus_12t05_774,._historyTimestamp_12t05_312{display:none}._historyItemMeta_12t05_344,._historyEvidence_12t05_400,._historyLimitation_12t05_410,._historyError_12t05_390{padding-left:0}._detailHeader_12t05_429{padding:14px 16px}._detailBody_12t05_485{padding:16px}}@media(max-width:420px){._dimensionGrid_12t05_642,._capabilityGrid_12t05_846{grid-template-columns:1fr}._sectionHeadingRow_12t05_629{align-items:flex-start;flex-direction:column;gap:4px}}._emptyState_10pjf_1{display:flex;flex-direction:column;gap:var(--space-section);padding:20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-card)}._header_10pjf_11,._method_10pjf_12{display:flex;flex-direction:column;gap:var(--space-related)}._header_10pjf_11 h3,._header_10pjf_11 p,._method_10pjf_12 h4,._method_10pjf_12 p{margin:0}._header_10pjf_11 h3{color:var(--text-primary);font-family:var(--font-label);font-size:var(--type-section-title-size);font-weight:600}._header_10pjf_11 p,._method_10pjf_12 p{color:var(--text-secondary);font-size:var(--type-body-size);line-height:var(--leading-body)}._methods_10pjf_39{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--space-section)}._singleMethod_10pjf_45{grid-template-columns:minmax(0,1fr)}._method_10pjf_12{min-width:0;padding:14px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary)}._methodTitle_10pjf_57{display:flex;align-items:center;gap:var(--space-related);color:var(--text-primary)}._methodTitle_10pjf_57 h4{font-family:var(--font-label);font-size:var(--type-card-title-size);font-weight:600}._moreExamples_10pjf_70{color:var(--text-secondary);font-size:var(--type-body-size)}._moreExamples_10pjf_70 summary{width:fit-content;min-height:34px;cursor:pointer;color:var(--accent-hover);font-weight:600;line-height:34px}._moreExamples_10pjf_70[open] summary{margin-bottom:var(--space-related)}._hint_10pjf_88,._tierNote_10pjf_89,._disabledReason_10pjf_90{font-size:var(--type-control-size)!important}._tierNote_10pjf_89{color:var(--pro-text)!important}._disabledReason_10pjf_90{color:var(--warning-text)!important}._primaryAction_10pjf_102{width:fit-content;min-height:34px;padding:0 14px;border:1px solid var(--accent);border-radius:var(--radius-control);background:var(--accent);color:var(--button-primary-text);font-family:var(--font-label);font-size:var(--type-control-size);font-weight:600;cursor:pointer}._primaryAction_10pjf_102:focus-visible,._moreExamples_10pjf_70 summary:focus-visible{outline:none;box-shadow:var(--focus-ring)}._primaryAction_10pjf_102:disabled{cursor:not-allowed;opacity:.55}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._card_jz1ya_4{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-card);padding:16px 20px;display:flex;flex-direction:column;gap:14px}._cardEmbedded_jz1ya_14{border:none;border-radius:0;background:transparent;padding:0}._cardTitle_jz1ya_21{margin:0;font-size:var(--type-section-title-size);font-weight:600;line-height:var(--leading-title);color:var(--text-primary);letter-spacing:.02em}._storageConsoleGrid_jz1ya_31{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr);gap:24px;align-items:start}._storageUsageColumn_jz1ya_38,._storagePolicyColumn_jz1ya_39{min-width:0}._usageRow_jz1ya_44{display:flex;flex-direction:column;gap:6px}._usageTotal_jz1ya_50{font-size:18px;line-height:1.35;font-weight:600;color:var(--text-primary)}._usageBreakdown_jz1ya_57{font-size:13px;color:var(--text-muted);font-variant-numeric:tabular-nums}._usageCounts_jz1ya_63{font-size:13px;color:var(--text-secondary);font-variant-numeric:tabular-nums}._storageFooter_jz1ya_70{display:flex;flex-direction:column;gap:12px;padding-top:16px;border-top:1px solid var(--border)}._lastRunRow_jz1ya_79{font-size:13px;color:var(--text-secondary);display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-variant-numeric:tabular-nums}._lastRunLabel_jz1ya_89{color:var(--text-muted);font-weight:500;white-space:nowrap}._errorIcon_jz1ya_95{color:var(--error-text);cursor:help;font-size:13px;line-height:1;position:relative}._errorIcon_jz1ya_95:hover ._tooltip_jz1ya_103{display:block}._tooltip_jz1ya_103{display:none;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%);background:var(--bg-secondary);border:1px solid var(--border);border-radius:4px;padding:4px 8px;font-size:11px;color:var(--error-text);white-space:nowrap;z-index:10;pointer-events:none;box-shadow:0 2px 8px #0003}._cleanupRow_jz1ya_126{display:flex;flex-wrap:wrap;gap:8px;align-items:center}._cleanupLabel_jz1ya_133{font-size:12px;color:var(--text-muted);font-weight:500;white-space:nowrap}._cleanupBtn_jz1ya_140{min-height:44px;padding:0 12px;border-radius:var(--radius-control);border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-secondary);font-family:var(--font-label);font-size:13px;cursor:pointer;white-space:nowrap;transition:border-color var(--transition),color var(--transition)}._cleanupBtn_jz1ya_140:hover:not(:disabled){border-color:var(--accent);color:var(--text-primary)}._cleanupBtn_jz1ya_140:focus-visible{outline:none;box-shadow:var(--focus-ring)}._cleanupBtn_jz1ya_140:disabled{opacity:.45;cursor:not-allowed}._cleanupBtnDanger_jz1ya_169{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger-text)}._cleanupBtnDanger_jz1ya_169:hover:not(:disabled){border-color:var(--danger);background:var(--danger-hover-bg);color:var(--danger-text)}._retentionSection_jz1ya_182{display:flex;flex-direction:column;gap:16px}._retentionTitle_jz1ya_188{margin:0;font-size:var(--type-section-title-size);font-weight:600;line-height:var(--leading-title);color:var(--text-primary)}._retentionFieldset_jz1ya_196{display:flex;flex-direction:column;gap:10px;border:none;margin:0;padding:0;position:relative}._retentionFieldset_jz1ya_196[disabled]{opacity:.5;pointer-events:none}._proOverlay_jz1ya_211{position:absolute;top:0;right:0;bottom:0;left:0;cursor:not-allowed;z-index:1}._proOverlay_jz1ya_211:hover ._tooltip_jz1ya_103{display:block}._modeSegments_jz1ya_223{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card)}._modeSegments_jz1ya_223>*{min-width:0}._modeSegments_jz1ya_223>*+*{border-left:1px solid var(--border)}._modeSegments_jz1ya_223>*:focus-within{box-shadow:inset 0 0 0 2px var(--accent)}._radioLabel_jz1ya_244{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:44px;padding:0 10px;font-size:14px;color:var(--text-secondary);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;transition:background var(--transition),color var(--transition)}._radioLabel_jz1ya_244:hover{color:var(--text-primary);background:color-mix(in srgb,var(--accent-dim) 54%,transparent)}._radioLabelActive_jz1ya_265{color:var(--accent);background:var(--accent-dim);font-weight:600}._radioLabel_jz1ya_244 input[type=radio]{position:absolute;width:1px;height:1px;opacity:0}._presetGroup_jz1ya_279{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:2px 0 0}._presetBtn_jz1ya_287{min-height:44px;padding:0 12px;border-radius:4px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-secondary);font-family:var(--font-label);font-size:14px;cursor:pointer;transition:border-color var(--transition),background var(--transition)}._presetBtn_jz1ya_287:hover{border-color:var(--accent);color:var(--text-primary)}._presetBtn_jz1ya_287:focus-visible{outline:none;box-shadow:var(--focus-ring)}._presetBtnActive_jz1ya_310{border-color:var(--accent);background:var(--accent-dim);color:var(--accent);font-weight:600}._freeInput_jz1ya_317{width:72px;min-height:44px;font-size:14px;padding:0 9px;border:1px solid var(--border);border-radius:4px;background:var(--bg-secondary);color:var(--text-primary);font-family:inherit}._freeInput_jz1ya_317:focus{outline:none;border-color:var(--accent)}._freeInput_jz1ya_317._inputError_jz1ya_334{border-color:var(--error-text)}._inputUnit_jz1ya_338{font-size:12px;color:var(--text-muted);white-space:nowrap}._cascadeRow_jz1ya_345{display:flex;align-items:center;gap:7px;min-height:44px;font-size:13px;color:var(--text-secondary);cursor:pointer;-webkit-user-select:none;user-select:none}._cascadeRow_jz1ya_345 input[type=checkbox]{flex-shrink:0}._retentionActions_jz1ya_361{display:flex;gap:8px;flex-wrap:wrap}._saveBtn_jz1ya_367{min-height:44px;padding:0 16px;border-radius:5px;border:1px solid transparent;background:var(--accent);color:var(--bg-card);font-family:var(--font-label);font-size:14px;font-weight:600;cursor:pointer;transition:opacity var(--transition)}._saveBtn_jz1ya_367:hover:not(:disabled){opacity:.88}._saveBtn_jz1ya_367:focus-visible{outline:none;box-shadow:var(--focus-ring)}._saveBtn_jz1ya_367:disabled{opacity:.45;cursor:not-allowed}._runNowBtn_jz1ya_395{min-height:44px;padding:0 16px;border-radius:5px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-secondary);font-family:var(--font-label);font-size:14px;cursor:pointer;transition:border-color var(--transition),color var(--transition)}._runNowBtn_jz1ya_395:hover:not(:disabled){border-color:var(--accent);color:var(--text-primary)}._runNowBtn_jz1ya_395:focus-visible{outline:none;box-shadow:var(--focus-ring)}._runNowBtn_jz1ya_395:disabled{opacity:.45;cursor:not-allowed}._cardEmbedded_jz1ya_14{gap:12px}._cardEmbedded_jz1ya_14 ._storageConsoleGrid_jz1ya_31{gap:16px}._cardEmbedded_jz1ya_14 ._usageTotal_jz1ya_50{font-size:13px}._cardEmbedded_jz1ya_14 ._usageBreakdown_jz1ya_57,._cardEmbedded_jz1ya_14 ._usageCounts_jz1ya_63,._cardEmbedded_jz1ya_14 ._lastRunRow_jz1ya_79,._cardEmbedded_jz1ya_14 ._errorMsg_jz1ya_439{font-size:12px}._cardEmbedded_jz1ya_14 ._storageFooter_jz1ya_70{gap:8px;padding-top:12px}._cardEmbedded_jz1ya_14 ._retentionSection_jz1ya_182{gap:12px}._cardEmbedded_jz1ya_14 ._retentionTitle_jz1ya_188{font-size:12px}._cardEmbedded_jz1ya_14 ._cleanupLabel_jz1ya_133,._cardEmbedded_jz1ya_14 ._inputUnit_jz1ya_338,._cardEmbedded_jz1ya_14 ._cascadeRow_jz1ya_345{font-size:11px}._cardEmbedded_jz1ya_14 ._cleanupBtn_jz1ya_140,._cardEmbedded_jz1ya_14 ._presetBtn_jz1ya_287,._cardEmbedded_jz1ya_14 ._saveBtn_jz1ya_367,._cardEmbedded_jz1ya_14 ._runNowBtn_jz1ya_395{position:relative;min-height:36px;font-size:11px}._cardEmbedded_jz1ya_14 ._saveBtn_jz1ya_367,._cardEmbedded_jz1ya_14 ._runNowBtn_jz1ya_395{padding:0 12px}._cardEmbedded_jz1ya_14 ._cleanupBtn_jz1ya_140:after,._cardEmbedded_jz1ya_14 ._presetBtn_jz1ya_287:after,._cardEmbedded_jz1ya_14 ._saveBtn_jz1ya_367:after,._cardEmbedded_jz1ya_14 ._runNowBtn_jz1ya_395:after{position:absolute;top:-4px;right:0;bottom:-4px;left:0;content:""}._cardEmbedded_jz1ya_14 ._modeSegments_jz1ya_223{overflow:visible}._cardEmbedded_jz1ya_14 ._radioLabel_jz1ya_244{position:relative;min-height:36px;font-size:11px}._cardEmbedded_jz1ya_14 ._radioLabel_jz1ya_244:after{position:absolute;top:-4px;right:0;bottom:-4px;left:0;content:""}._cardEmbedded_jz1ya_14 ._freeInputHitArea_jz1ya_501{display:inline-flex;align-items:center;min-height:44px}._cardEmbedded_jz1ya_14 ._freeInput_jz1ya_317{min-height:36px;font-size:12px}._errorMsg_jz1ya_439{font-size:12px;color:var(--error-text);padding:4px 0}@media(max-width:720px){._storageConsoleGrid_jz1ya_31{grid-template-columns:minmax(0,1fr);gap:20px}}@media(max-width:520px){._modeSegments_jz1ya_223{grid-template-columns:minmax(0,1fr)}._modeSegments_jz1ya_223>*+*{border-top:1px solid var(--border);border-left:none}._cardEmbedded_jz1ya_14 ._radioLabel_jz1ya_244{min-height:44px}._cardEmbedded_jz1ya_14 ._radioLabel_jz1ya_244:after{content:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as X,a as le,r,j as e,b as U,g as me,c as ye,T as je,A as xe,S as fe}from"./index-Ygt1Wh6v.js";import{C as be,P as ve}from"./PageHeader-Xrn6BpcL.js";import{I as R}from"./InfoLabel-D6WxKFnG.js";import{T as m}from"./TooltipText-B1An7dUI.js";import{s as a,u as Se}from"./useSettings-BrnGUYZY.js";import{C as ce}from"./ConfirmModal-BSbhJt6x.js";import{D as de,f as ue,r as Ce,s as Ne,a as pe,d as se,S as ae,b as _e}from"./sample-requests-r6iFLFba.js";import"./ConfirmModal.module-DJksQHBd.js";const ke="_card_1ende_4",Pe="_cardEmbedded_1ende_14",Le="_cardTitle_1ende_21",Re="_storageConsoleGrid_1ende_30",we="_storageUsageColumn_1ende_37",He="_storagePolicyColumn_1ende_38",Be="_usageRow_1ende_43",Me="_usageTotal_1ende_49",Ae="_usageBreakdown_1ende_56",$e="_usageCounts_1ende_62",De="_storageFooter_1ende_69",Ee="_lastRunRow_1ende_78",Te="_lastRunLabel_1ende_88",Ie="_errorIcon_1ende_94",Ue="_tooltip_1ende_102",ze="_cleanupRow_1ende_125",Fe="_cleanupLabel_1ende_132",Oe="_cleanupBtn_1ende_139",Ge="_cleanupBtnDanger_1ende_168",qe="_retentionSection_1ende_181",We="_retentionTitle_1ende_187",Ye="_retentionFieldset_1ende_194",Ke="_proOverlay_1ende_209",Ve="_modeSegments_1ende_221",Je="_radioLabel_1ende_242",Qe="_radioLabelActive_1ende_263",Ze="_presetGroup_1ende_277",Xe="_presetBtn_1ende_285",et="_presetBtnActive_1ende_308",tt="_freeInput_1ende_315",st="_inputError_1ende_332",at="_inputUnit_1ende_336",nt="_cascadeRow_1ende_343",it="_retentionActions_1ende_359",ot="_saveBtn_1ende_365",rt="_runNowBtn_1ende_393",lt="_errorMsg_1ende_437",ct="_freeInputHitArea_1ende_499",o={card:ke,cardEmbedded:Pe,cardTitle:Le,storageConsoleGrid:Re,storageUsageColumn:we,storagePolicyColumn:He,usageRow:Be,usageTotal:Me,usageBreakdown:Ae,usageCounts:$e,storageFooter:De,lastRunRow:Ee,lastRunLabel:Te,errorIcon:Ie,tooltip:Ue,cleanupRow:ze,cleanupLabel:Fe,cleanupBtn:Oe,cleanupBtnDanger:Ge,retentionSection:qe,retentionTitle:We,retentionFieldset:Ye,proOverlay:Ke,modeSegments:Ve,radioLabel:Je,radioLabelActive:Qe,presetGroup:Ze,presetBtn:Xe,presetBtnActive:et,freeInput:tt,inputError:st,inputUnit:at,cascadeRow:nt,retentionActions:it,saveBtn:ot,runNowBtn:rt,errorMsg:lt,freeInputHitArea:ct};function dt(t,s){return!!(t.mode==="off"&&s.mode!=="off"||t.mode==="age"&&s.mode==="age"&&(s.ageDays??0)<(t.ageDays??0)||t.mode==="size"&&s.mode==="size"&&(s.sizeMb??0)<(t.sizeMb??0)||!t.cascadeSnapshots&&s.cascadeSnapshots)}function ne(t){return t.mode==="age"?Number.isInteger(t.ageDays)&&t.ageDays>=1&&t.ageDays<=365:t.mode==="size"?Number.isInteger(t.sizeMb)&&t.sizeMb>=50&&t.sizeMb<=1e4:!0}function ut(t,s){return t.mode===s.mode&&t.ageDays===s.ageDays&&t.sizeMb===s.sizeMb&&t.cascadeSnapshots===s.cascadeSnapshots}function Y(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:t<1024*1024*1024?`${(t/(1024*1024)).toFixed(1)} MB`:`${(t/(1024*1024*1024)).toFixed(2)} GB`}function pt({placeId:t,tier:s,currentPolicy:l,onSaved:d}){const{t:i}=X(),{trackEvent:b}=le(),[n,g]=r.useState(l),[p,_]=r.useState(()=>[7,14,30,90].includes(l.ageDays??-1)?"":String(l.ageDays??30)),[v,k]=r.useState(()=>[100,500,1e3].includes(l.sizeMb??-1)?"":String(l.sizeMb??500)),[P,D]=r.useState(null),[x,f]=r.useState(!1),[E,w]=r.useState(!1),[y,H]=r.useState(!1),[L,A]=r.useState(null);r.useEffect(()=>{g(l);const h=[7,14,30,90],M=[100,500,1e3];_(h.includes(l.ageDays??-1)?"":String(l.ageDays??30)),k(M.includes(l.sizeMb??-1)?"":String(l.sizeMb??500))},[l]);const $=s==="basic",N=ne(n),j=ut(l,n),T=N&&!j&&!E,S=h=>{g(M=>{const O={...M,mode:h};return h==="age"&&(O.ageDays=parseInt(p,10)||30),h==="size"&&(O.sizeMb=parseInt(v,10)||500),O})},B=h=>{_(""),g(M=>({...M,ageDays:h}))},z=h=>{k(""),g(M=>({...M,sizeMb:h}))},F=h=>{_(h);const M=parseInt(h,10);Number.isNaN(M)||g(O=>({...O,ageDays:M}))},c=h=>{k(h);const M=parseInt(h,10);Number.isNaN(M)||g(O=>({...O,sizeMb:M}))},I=async()=>{if(A(null),b("dashboard_click_event",{click_target:"ui_studio_cleanup_save",page:"settings"}),dt(l,n)){try{const h=await ue(t,{mode:n.mode,ageDays:n.ageDays,sizeMb:n.sizeMb,cascadeSnapshots:n.cascadeSnapshots});D(h.dryRun),f(!0)}catch(h){A(h.message)}return}await W()},W=async()=>{w(!0);try{await Ne(t,n),f(!1),d()}catch(h){throw A(h.message),h}finally{w(!1)}},u=async()=>{A(null),b("dashboard_click_event",{click_target:"ui_studio_cleanup_run_now",page:"settings"}),H(!0);try{await Ce(t),d()}catch(h){A(h.message)}finally{H(!1)}},C=P?`${i("uiStudio.cleanup.policy.confirm.messageStrict","이 정책으로 즉시")} ${P.wouldRemoveRequests}${i("uiStudio.cleanup.policy.confirm.requests","건")} / ${P.wouldRemoveSnapshots}${i("uiStudio.cleanup.policy.confirm.snapshots","개 화면 캡처")} / ${Y(P.wouldFreeBytes)} ${i("uiStudio.cleanup.policy.confirm.freed","가 삭제됩니다 — 적용?")}`:"",K=n.mode==="age"&&!ne(n),q=n.mode==="size"&&!ne(n);return e.jsxs("div",{className:o.retentionSection,children:[e.jsx("h3",{className:o.retentionTitle,children:e.jsx(R,{label:i("uiStudio.cleanup.policy.title","자동 삭제 정책"),tooltip:i("uiStudio.cleanup.policy.title.tooltip","Rules that automatically remove old or large captures.")})}),e.jsxs("div",{style:{position:"relative"},children:[$&&e.jsx("div",{className:o.proOverlay,title:i("uiStudio.cleanup.policy.proRequired","Pro에서 사용 가능"),children:e.jsx("div",{className:o.tooltip,children:i("uiStudio.cleanup.policy.proRequired","Pro에서 사용 가능")})}),e.jsxs("fieldset",{className:o.retentionFieldset,disabled:$,"aria-label":i("uiStudio.cleanup.policy.title","자동 삭제 정책"),style:$?{opacity:.45,pointerEvents:"none"}:void 0,children:[e.jsxs("div",{className:o.modeSegments,"data-testid":"cleanup-mode-segments",children:[e.jsx(m,{text:i("uiStudio.cleanup.policy.modeOff.tooltip","Turn off auto-cleanup. Data stays until you remove it manually."),children:e.jsxs("label",{className:`${o.radioLabel} ${n.mode==="off"?o.radioLabelActive:""}`,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"off",checked:n.mode==="off",onChange:()=>S("off")}),i("uiStudio.cleanup.policy.modeOff","사용 안 함 (off)")]})}),e.jsx(m,{text:i("uiStudio.cleanup.policy.modeAge.tooltip","Automatically delete data older than the configured number of days."),children:e.jsxs("label",{className:`${o.radioLabel} ${n.mode==="age"?o.radioLabelActive:""}`,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"age",checked:n.mode==="age",onChange:()=>S("age")}),i("uiStudio.cleanup.policy.modeAge","기간 기반 (age)")]})}),e.jsx(m,{text:i("uiStudio.cleanup.policy.modeSize.tooltip","When total usage exceeds the limit, the oldest data is removed first."),children:e.jsxs("label",{className:`${o.radioLabel} ${n.mode==="size"?o.radioLabelActive:""}`,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"size",checked:n.mode==="size",onChange:()=>S("size")}),i("uiStudio.cleanup.policy.modeSize","용량 기반 (size)")]})})]}),n.mode==="age"&&e.jsxs("div",{className:o.presetGroup,children:[[7,14,30,90].map(h=>e.jsx(m,{text:i("uiStudio.cleanup.policy.agePreset.tooltip","Delete data older than this many days."),children:e.jsxs("button",{type:"button",className:`${o.presetBtn} ${n.ageDays===h&&p===""?o.presetBtnActive:""}`,onClick:()=>B(h),children:[h,i("uiStudio.cleanup.policy.daysUnit","일")]})},h)),e.jsx(m,{text:i("uiStudio.cleanup.policy.ageInput.tooltip","Enter any value between 1 and 365 days."),children:e.jsx("label",{className:o.freeInputHitArea,children:e.jsx("input",{type:"number",className:`${o.freeInput} ${K?o.inputError:""}`,value:p,min:1,max:365,onChange:h=>F(h.target.value)})})}),e.jsxs("span",{className:o.inputUnit,children:["1–365",i("uiStudio.cleanup.policy.daysUnit","일")]})]}),n.mode==="size"&&e.jsxs("div",{className:o.presetGroup,children:[[100,500,1e3].map(h=>e.jsx(m,{text:i("uiStudio.cleanup.policy.sizePreset.tooltip","Keep total usage under this size."),children:e.jsxs("button",{type:"button",className:`${o.presetBtn} ${n.sizeMb===h&&v===""?o.presetBtnActive:""}`,onClick:()=>z(h),children:[h,i("uiStudio.cleanup.policy.mbUnit","MB")]})},h)),e.jsx(m,{text:i("uiStudio.cleanup.policy.sizeInput.tooltip","Enter any value between 50 MB and 10000 MB (10 GB)."),children:e.jsx("label",{className:o.freeInputHitArea,children:e.jsx("input",{type:"number",className:`${o.freeInput} ${q?o.inputError:""}`,value:v,min:50,max:1e4,onChange:h=>c(h.target.value)})})}),e.jsxs("span",{className:o.inputUnit,children:["50–10000",i("uiStudio.cleanup.policy.mbUnit","MB")]})]}),e.jsx(m,{text:i("uiStudio.cleanup.policy.cascade.tooltip","Also delete the capture images linked to those records. If off, the images stay."),children:e.jsxs("label",{className:o.cascadeRow,children:[e.jsx(be,{checked:n.cascadeSnapshots,onChange:h=>g(M=>({...M,cascadeSnapshots:h.target.checked}))}),i("uiStudio.cleanup.policy.cascade","연결된 화면 캡처도 함께 삭제")]})}),e.jsxs("div",{className:o.retentionActions,children:[e.jsx(m,{text:i("uiStudio.cleanup.policy.save.tooltip","Save the current cleanup rule. It runs in the background from then on."),children:e.jsx("button",{type:"button",className:o.saveBtn,onClick:()=>void I(),disabled:!T,children:i("uiStudio.cleanup.policy.save","정책 저장")})}),e.jsx(m,{text:i("uiStudio.cleanup.policy.runNow.tooltip","저장된 정리 정책을 다음 자동 실행까지 기다리지 않고 지금 한 번 실행합니다."),children:e.jsx("button",{type:"button",className:o.runNowBtn,onClick:()=>void u(),disabled:y,children:i("uiStudio.cleanup.policy.runNow","저장된 정책으로 정리")})})]}),L&&e.jsx("div",{className:o.errorMsg,children:L})]})]}),x&&P&&e.jsx(de,{title:i("uiStudio.cleanup.policy.confirm.title","정책 적용 확인"),message:C,danger:!0,confirmLabel:i("uiStudio.cleanup.policy.save","정책 저장"),busy:E,onConfirm:W,onClose:()=>f(!1)})]})}function gt({placeId:t,tier:s,onChanged:l,sampleUsage:d,sampleRetention:i,embedded:b=!1}){const{t:n}=X(),g=s==="basic"&&d!=null&&i!=null,[p,_]=r.useState(g?d:null),[v,k]=r.useState(g?i:null),[P,D]=r.useState(null),[x,f]=r.useState(null),[E,w]=r.useState(null),y=r.useCallback(async()=>{if(!g&&t!=null){D(null);try{const[S,B]=await Promise.all([pe(t),ue(t)]);_(S),k(B.policy)}catch(S){D(S.message)}}},[t,g]);r.useEffect(()=>{y()},[y]);const H=r.useCallback(()=>{y(),l==null||l()},[y,l]),L=r.useCallback(async()=>{if(x&&t!=null){w(null);try{x.kind==="keep7"?await se(t,{olderThanDays:7,alsoSnapshots:!0}):x.kind==="keep30"?await se(t,{olderThanDays:30,alsoSnapshots:!0}):await se(t,{all:!0,alsoSnapshots:!0}),f(null),y(),l==null||l()}catch(S){throw w(S.message),S}}},[x,t,y,l]);function A(S){const B=n("uiStudio.cleanup.studioPreservedNote","This deletes saved change records and screenshots on disk only; Roblox Studio instances are not affected.");return S.kind==="keep7"?`${n("uiStudio.cleanup.cleanupConfirmMessage.keep7","7일 이전 변경 기록과 화면 캡처가 삭제됩니다. 이 작업은 되돌릴 수 없습니다.")} ${B}`:S.kind==="keep30"?`${n("uiStudio.cleanup.cleanupConfirmMessage.keep30","30일 이전 변경 기록과 화면 캡처가 삭제됩니다. 이 작업은 되돌릴 수 없습니다.")} ${B}`:`${((p==null?void 0:p.requestCount)??0)+((p==null?void 0:p.snapshotCount)??0)}${n("uiStudio.cleanup.cleanupConfirmMessage.all","개의 저장된 변경 기록과 화면 캡처가 삭제됩니다. 이 작업은 되돌릴 수 없습니다.")} ${B}`}if(t==null&&!g)return null;if(P)return e.jsx("div",{className:`${o.card} ${b?o.cardEmbedded:""}`,children:e.jsx("p",{className:o.errorMsg,children:P})});if(!p||!v)return e.jsx("div",{className:`${o.card} ${b?o.cardEmbedded:""}`,children:e.jsx("p",{style:{fontSize:12,color:"var(--text-muted)",margin:0},children:n("uiStudio.storage.loading","로딩 중...")})});const $=v.lastRunAt,N=v.lastRunStats,j=$?new Date($).toLocaleString():null,T=t??0;return e.jsxs("div",{className:`${o.card} ${b?o.cardEmbedded:""}`,children:[!b&&e.jsx("h3",{className:o.cardTitle,children:e.jsx(R,{label:n("uiStudio.storage.title","UI Studio 저장 데이터"),tooltip:n("uiStudio.storage.title.tooltip","Disk usage of UI Studio change records and screenshots.")})}),e.jsxs("div",{className:o.storageConsoleGrid,"data-testid":"ui-studio-storage-console-grid",children:[e.jsx("section",{className:o.storageUsageColumn,children:e.jsxs("div",{className:o.usageRow,children:[e.jsx(m,{text:n("uiStudio.storage.usageLabel.tooltip","Disk space currently used by UI Studio for this project."),children:e.jsxs("div",{className:o.usageTotal,children:[n("uiStudio.storage.usageLabel","사용 중")," ",Y(p.totalBytes)]})}),e.jsxs("div",{className:o.usageBreakdown,children:[e.jsx(m,{text:n("uiStudio.storage.historyBytes.tooltip","Space taken by change record data (JSON)."),children:e.jsxs("span",{children:[n("uiStudio.storage.historyBytes","변경 이력")," ",Y(p.historyBytes)]})})," · ",e.jsx(m,{text:n("uiStudio.storage.snapshotBytes.tooltip","Space taken by captured PNG image files."),children:e.jsxs("span",{children:[n("uiStudio.storage.snapshotBytes","화면 캡처")," ",Y(p.snapshotBytes)]})})]}),e.jsxs("div",{className:o.usageCounts,children:[e.jsx(m,{text:n("uiStudio.storage.requestCount.tooltip","Number of actions where AI changed the UI."),children:e.jsxs("span",{children:[n("uiStudio.storage.requestCount","변경 기록")," ",p.requestCount.toLocaleString(),n("uiStudio.storage.countSuffix","개")]})})," · ",e.jsx(m,{text:n("uiStudio.storage.mutationCount.tooltip","Number of detail changes inside actions (one property edit = 1)."),children:e.jsxs("span",{children:[n("uiStudio.storage.mutationCount","변경 상세")," ",p.mutationCount.toLocaleString(),n("uiStudio.storage.countSuffix","개")]})})," · ",e.jsx(m,{text:n("uiStudio.storage.snapshotCount.tooltip","Number of saved capture image files."),children:e.jsxs("span",{children:[n("uiStudio.storage.snapshotCount","화면 캡처")," ",p.snapshotCount.toLocaleString(),n("uiStudio.storage.countSuffix","개")]})})]})]})}),e.jsx("section",{className:o.storagePolicyColumn,children:e.jsx(pt,{placeId:T,tier:s,currentPolicy:v,onSaved:H})})]}),e.jsxs("div",{className:o.storageFooter,"data-testid":"ui-studio-storage-footer",children:[e.jsxs("div",{className:o.lastRunRow,children:[e.jsx("span",{className:o.lastRunLabel,children:e.jsx(R,{label:n("uiStudio.storage.lastRun","마지막 자동 정리"),tooltip:n("uiStudio.storage.lastRun.tooltip","When the auto-cleanup policy last ran, and what it removed.")})}),j?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:j}),N&&e.jsxs("span",{children:["· ",n("uiStudio.storage.requestCount","변경 기록")," ",N.removedRequests,n("uiStudio.storage.countSuffix","개")," / ",n("uiStudio.storage.snapshotCount","화면 캡처")," ",N.removedSnapshots,n("uiStudio.storage.countSuffix","개")," / ",Y(N.freedBytes)," ",n("uiStudio.storage.lastRunFreed","회수")]}),N&&N.errors>0&&e.jsxs("span",{className:o.errorIcon,title:`${n("uiStudio.storage.lastRunErrors","오류")} ${N.errors}건`,children:["⚠",e.jsxs("span",{className:o.tooltip,children:[n("uiStudio.storage.lastRunErrors","오류")," ",N.errors,n("uiStudio.storage.countSuffix","건")]})]})]}):e.jsx("span",{children:n("uiStudio.storage.lastRunNever","—")})]}),e.jsxs("div",{className:o.cleanupRow,children:[e.jsx("span",{className:o.cleanupLabel,children:e.jsx(R,{label:n("uiStudio.cleanup.label","수동 정리"),tooltip:n("uiStudio.cleanup.label.tooltip","Manually clean up change records and captures whenever you want.")})}),e.jsx(m,{text:n("uiStudio.cleanup.keep7.tooltip","Delete change records and captures older than 7 days."),children:e.jsx("button",{type:"button",className:o.cleanupBtn,onClick:()=>f({kind:"keep7"}),disabled:s==="basic",children:n("uiStudio.cleanup.keepLastNDays","최근 7일만 남기기").replace("{n}","7")})}),e.jsx(m,{text:n("uiStudio.cleanup.keep30.tooltip","Delete change records and captures older than 30 days."),children:e.jsx("button",{type:"button",className:o.cleanupBtn,onClick:()=>f({kind:"keep30"}),disabled:s==="basic",children:n("uiStudio.cleanup.keepLastNDays","최근 30일만 남기기").replace("{n}","30")})}),!b&&e.jsx(m,{text:n("uiStudio.cleanup.deleteAll.tooltip","Delete every change record and capture for this project. The actual UI in Roblox Studio is not affected."),children:e.jsx("button",{type:"button",className:`${o.cleanupBtn} ${o.cleanupBtnDanger}`,onClick:()=>f({kind:"all"}),disabled:s==="basic",children:n("uiStudio.cleanup.deleteAll","전체 삭제…")})})]})]}),E&&e.jsx("div",{className:o.errorMsg,children:E}),x&&e.jsx(de,{title:n("uiStudio.cleanup.cleanupConfirmTitle","정리 확인"),message:A(x),danger:!0,confirmLabel:n("common.delete","삭제"),onConfirm:L,onClose:()=>{f(null),w(null)}})]})}function ie(t,s){const l={placeId:String(t)};return s&&(l["preview.mode"]=s.mode,s.mode==="size"&&(l["preview.sizeMb"]=String(s.sizeMb))),U.get("/api/dashboard/changelog/cleanup",l)}function oe(t){return U.put("/api/dashboard/changelog/cleanup",t)}function ht(t){return U.post(`/api/dashboard/changelog/cleanup/run?placeId=${encodeURIComponent(t)}`)}const mt=[100,500,1e3];function re(t,s){return t.mode!==s.mode?!1:t.mode==="off"||s.mode==="size"&&t.sizeMb===s.sizeMb}function yt(t,s){return t.mode==="off"?!1:s.mode==="off"||t.sizeMb<s.sizeMb}function J(t){return t<1e3?`${t} B`:t<1e6?`${(t/1e3).toFixed(1)} KB`:t<1e9?`${(t/1e6).toFixed(1)} MB`:`${(t/1e9).toFixed(2)} GB`}function jt({placeId:t,onChanged:s}){const{locale:l,t:d}=X(),[i,b]=r.useState(null),[n,g]=r.useState({mode:"size",sizeMb:500}),[p,_]=r.useState(t!==null),[v,k]=r.useState(!1),[P,D]=r.useState(!1),[x,f]=r.useState(!1),[E,w]=r.useState(!1),[y,H]=r.useState(null),L=r.useCallback(async()=>{if(t===null){b(null),_(!1);return}D(!1);try{const u=await ie(t);b(u),g(u.policy)}catch{D(!0)}finally{_(!1)}},[t]);r.useEffect(()=>{_(t!==null),L()},[L,t]);const A=r.useCallback(async u=>{k(!0),f(!1),w(!1);try{await oe(u),H(null),await L(),w(!0),s==null||s()}catch{f(!0)}finally{k(!1)}},[L,s]),$=r.useCallback(async()=>{if(!(!i||t===null||re(n,i.policy))){k(!0),f(!1),w(!1);try{if(yt(n,i.policy)){const u=await ie(t,n);if(u.preview.affectedPlaceCount>0){H({policy:n,preview:u});return}}await oe(n),await L(),w(!0),s==null||s()}catch{f(!0)}finally{k(!1)}}},[i,n,L,s,t]),N=r.useCallback(async()=>{if(t!==null){k(!0),f(!1),w(!1);try{await ht(t),await L(),s==null||s()}catch{f(!0)}finally{k(!1)}}},[L,s,t]),j=i==null?void 0:i.selectedPlace.currentUsage,T=(i==null?void 0:i.policy.mode)==="size"?i.policy.sizeMb*1e6:null,S=T??Math.max((j==null?void 0:j.bytes)??0,1),B=Math.min(100,((j==null?void 0:j.sessionBytes)??0)/S*100),z=Math.min(Math.max(0,100-B),((j==null?void 0:j.contextBytes)??0)/S*100),F=i?!re(n,i.policy):!1,c=u=>u.mode==="off"?d("settings.projectChanges.cleanup.unlimited","Unlimited"):`${u.sizeMb} MB`,I=r.useMemo(()=>{if(!y)return"";const u=y.preview.preview,C=d("settings.projectChanges.cleanup.confirm.message","{places} Places · {sessions} sessions · {bytes} expected to be freed.").replace("{places}",u.affectedPlaceCount.toLocaleString()).replace("{sessions}",u.deleteSessionCount.toLocaleString()).replace("{bytes}",J(u.estimatedFreedBytes));return u.wouldRemainOverLimitPlaceCount===0?C:`${C} ${d("settings.projectChanges.cleanup.confirm.protected","{places} Place may remain over the limit because active data is protected.").replace("{places}",u.wouldRemainOverLimitPlaceCount.toLocaleString())}`},[y,d]);if(t===null)return e.jsx("div",{className:a.projectChangesPanel,children:e.jsx("p",{className:a.projectChangesEmpty,children:d("settings.projectChanges.cleanup.noPlace","Select a Place to manage saved project changes.")})});if(p)return e.jsx("div",{className:a.projectChangesPanel,children:e.jsx("p",{className:a.projectChangesEmpty,children:d("settings.projectChanges.cleanup.loading","Loading storage settings…")})});if(P||!i||!j)return e.jsxs("div",{className:a.projectChangesPanel,children:[e.jsx("p",{className:a.projectChangesError,role:"alert",children:d("settings.projectChanges.cleanup.loadFailed","Could not load storage settings.")}),e.jsx("button",{className:a.projectChangesSecondaryButton,type:"button",onClick:()=>{_(!0),L()},children:d("common.retry","Retry")})]});const W=T===null?d("settings.projectChanges.cleanup.usageUnlimited","{used} used · Unlimited").replace("{used}",J(j.bytes)):d("settings.projectChanges.cleanup.usageLimited","{used} used of {limit}").replace("{used}",J(j.bytes)).replace("{limit}",c(i.policy));return e.jsxs("div",{className:a.projectChangesPanel,children:[e.jsxs("div",{className:a.projectChangesConsoleGrid,"data-testid":"project-storage-console-grid",children:[e.jsxs("section",{className:a.projectChangesUsageColumn,children:[e.jsx("h3",{className:a.projectChangesPanelTitle,children:e.jsx(R,{label:d("settings.projectChanges.cleanup.title","Storage management"),tooltip:d("settings.projectChanges.cleanup.title.tooltip","Set how much Project Change Summary history each Place can keep.")})}),e.jsxs("div",{className:a.projectChangesUsageBlock,children:[e.jsx("div",{className:a.projectChangesUsageSummary,children:W}),e.jsxs("div",{className:a.projectChangesQuotaRail,role:"meter","aria-label":d("settings.projectChanges.cleanup.usageAria","Place storage usage"),"aria-valuemin":0,"aria-valuenow":j.bytes,"aria-valuemax":T??j.bytes,children:[e.jsx("span",{className:a.projectChangesSessionRail,style:{width:`${B}%`}}),e.jsx("span",{className:a.projectChangesContextRail,style:{width:`${z}%`}})]}),e.jsxs("div",{className:a.projectChangesUsageLegend,children:[e.jsxs("span",{children:[d("settings.projectChanges.cleanup.sessions","Sessions")," ",e.jsx("strong",{children:J(j.sessionBytes)})]}),e.jsxs("span",{children:[d("settings.projectChanges.cleanup.contexts","Contexts")," ",e.jsx("strong",{children:J(j.contextBytes)})]})]})]})]}),e.jsxs("section",{className:a.projectChangesPolicyColumn,children:[e.jsx("p",{className:a.projectChangesScope,children:d("settings.projectChanges.cleanup.scope","One setting applies the selected limit separately to every Place.")}),e.jsxs("fieldset",{className:a.projectChangesPolicyFieldset,disabled:v,children:[e.jsx("legend",{className:a.projectChangesPolicyLegend,children:d("settings.projectChanges.cleanup.limit","Limit per Place")}),e.jsxs("div",{className:a.projectChangesPresetGroup,children:[mt.map(u=>{const C=n.mode==="size"&&n.sizeMb===u;return e.jsx("button",{className:`${a.projectChangesPresetButton} ${C?a.projectChangesPresetButtonActive:""}`,type:"button","aria-pressed":C,onClick:()=>g({mode:"size",sizeMb:u}),children:d("settings.projectChanges.cleanup.preset","{sizeMb}MB").replace("{sizeMb}",String(u))},u)}),e.jsx("button",{className:`${a.projectChangesPresetButton} ${n.mode==="off"?a.projectChangesPresetButtonActive:""}`,type:"button","aria-pressed":n.mode==="off",onClick:()=>g({mode:"off"}),children:d("settings.projectChanges.cleanup.unlimited","Unlimited")})]})]}),e.jsxs("div",{className:a.projectChangesActions,children:[e.jsx("button",{className:a.projectChangesSaveButton,type:"button",disabled:!F||v,onClick:()=>void $(),children:d("common.save","Save")}),e.jsx("button",{className:a.projectChangesSecondaryButton,type:"button",disabled:v,onClick:()=>void N(),children:d("settings.projectChanges.cleanup.runNow","Run saved policy")}),E&&e.jsx("span",{className:a.projectChangesSaved,role:"status",children:d("settings.projectChanges.cleanup.saved","Saved")})]})]})]}),i.selectedPlace.dryRun.wouldRemainOverLimit&&e.jsx("p",{className:a.projectChangesWarning,children:d("settings.projectChanges.cleanup.protectedWarning","Active changes are protected, so this Place may stay over the limit.")}),e.jsxs("div",{className:a.projectChangesLastRun,"data-testid":"project-storage-footer",children:[e.jsx("span",{className:a.projectChangesLastRunLabel,children:d("settings.projectChanges.cleanup.lastRun","Last cleanup")}),i.selectedPlace.lastRun?e.jsxs("span",{children:[new Date(i.selectedPlace.lastRun.ranAt).toLocaleString(l)," · ",d("settings.projectChanges.cleanup.lastRunSummary","{sessions} sessions · {bytes} freed").replace("{sessions}",i.selectedPlace.lastRun.deletedSessionCount.toLocaleString()).replace("{bytes}",J(i.selectedPlace.lastRun.freedBytes))]}):e.jsx("span",{children:d("settings.projectChanges.cleanup.neverRun","Not run yet")})]}),x&&e.jsx("p",{className:a.projectChangesError,role:"alert",children:d("settings.projectChanges.cleanup.actionFailed","Could not update storage settings.")}),e.jsx(ce,{open:y!==null,title:d("settings.projectChanges.cleanup.confirm.title","Apply this limit and clean saved changes?"),message:I,cancelLabel:d("common.cancel","Cancel"),confirmLabel:d("settings.projectChanges.cleanup.confirm.apply","Apply and clean"),loading:v,onCancel:()=>!v&&H(null),onConfirm:()=>{y&&A(y.policy)}})]})}const xt={toolsActivity:null,toolStats:null,toolSessions:null,syncLog:null,playtestReports:null,projectChanges:null,connectionLog:null},ft={toolsActivity:null,toolStats:null,syncLog:null,playtestReports:null,projectChanges:null,connectionLog:null};function bt(t){var s;return t?t.pluginConnected?t.activePlaceId:t.lastActivePlaceId??((s=t.places[0])==null?void 0:s.placeId)??null:null}async function G(t){try{return await t}catch{return null}}function ee(t){return t?typeof t.total=="number"?t.total:Array.isArray(t.entries)?t.entries.length:null:null}function te(t,s,l,d){return s===null?t("settings.dataHistory.metric.unavailable","Unavailable"):`${s.toLocaleString()} ${t(l,d)}`}function Q(t,s,l){const d=l===null?t("settings.dataHistory.metric.sizeUnavailable","size unavailable"):Y(l);return`${s} · ${d}`}function Z(t,s){var d;const l=(d=t==null?void 0:t[s])==null?void 0:d.bytes;return typeof l=="number"&&Number.isFinite(l)?l:null}function vt(t,s){return s?[`${s.requestCount.toLocaleString()} ${t("uiStudio.storage.requestCount","change records")}`,`${s.snapshotCount.toLocaleString()} ${t("uiStudio.storage.snapshotCount","screenshots")}`,Y(s.totalBytes)].join(" · "):t("settings.dataHistory.metric.unavailable","Unavailable")}function St({tier:t}){const{t:s}=X(),[l,d]=r.useState(xt),[i,b]=r.useState(ft),[n,g]=r.useState(t==="basic"?ae:null),[p,_]=r.useState(null),[v,k]=r.useState(!0),[P,D]=r.useState(!0),[x,f]=r.useState(null),[E,w]=r.useState(()=>new Set),[y,H]=r.useState(null),[L,A]=r.useState(!1),[$,N]=r.useState(null),j=r.useCallback(async()=>{k(!0);const u=await G(me()),C=bt(u);_(C);const[K,q,h,M,O,ge,V]=await Promise.all([G(U.get("/api/dashboard/history",{limit:"1",offset:"0"})),G(U.get("/api/dashboard/tool-stats")),G(U.get("/sync/history",{limit:"1",offset:"0"})),G(U.get("/api/dashboard/playtest/history")),G(U.get("/api/dashboard/changelog",{limit:"1",offset:"0"})),G(U.get("/api/dashboard/connection-log")),G(U.get("/api/dashboard/storage-summary"))]),he=t==="basic"?ae:C===null?null:await G(pe(C));d({toolsActivity:ee(K),toolStats:(q==null?void 0:q.totalCalls)??null,toolSessions:(q==null?void 0:q.totalSessions)??null,syncLog:ee(h),playtestReports:ee(M),projectChanges:ee(O),connectionLog:ee(ge)}),b({toolsActivity:Z(V,"toolsActivity"),toolStats:Z(V,"toolStats"),syncLog:Z(V,"syncLog"),playtestReports:Z(V,"playtestReports"),projectChanges:Z(V,"projectChanges"),connectionLog:Z(V,"connectionLog")}),g(he),k(!1)},[t]);r.useEffect(()=>{j()},[j]);const T=r.useCallback(u=>{w(C=>{if(C.has(u))return C;const K=new Set(C);return K.add(u),K}),f(C=>C===u?null:u)},[]),S=r.useMemo(()=>[{key:"toolsActivity",title:s("settings.dataHistory.toolsActivity.title","Tool activity"),description:s("settings.dataHistory.toolsActivity.description","Saved tool runs shown on the Tools page."),metric:Q(s,te(s,l.toolsActivity,"settings.dataHistory.metric.records","records"),i.toolsActivity),metricTooltip:s("settings.dataHistory.toolsActivity.metric.tooltip","Number of saved tool runs and the disk space they use."),route:"/tools",clearEndpoint:"/api/dashboard/tools/history/clear"},{key:"toolStats",title:s("settings.dataHistory.toolStats.title","Tool usage statistics"),description:s("settings.dataHistory.toolStats.description","Aggregated tool counts and status totals."),metric:Q(s,l.toolStats===null?s("settings.dataHistory.metric.unavailable","Unavailable"):`${l.toolStats.toLocaleString()} ${s("settings.dataHistory.metric.runs","runs")} · ${(l.toolSessions??0).toLocaleString()} ${s("settings.dataHistory.metric.sessions","sessions")}`,i.toolStats),metricTooltip:s("settings.dataHistory.toolStats.metric.tooltip","Aggregated total runs and session counts."),route:"/tools",clearEndpoint:"/api/dashboard/tools/statistics/clear"},{key:"syncLog",title:s("settings.dataHistory.syncLog.title","Sync log"),description:s("settings.dataHistory.syncLog.description","Saved file sync events for the active place."),metric:Q(s,te(s,l.syncLog,"settings.dataHistory.metric.records","records"),i.syncLog),metricTooltip:s("settings.dataHistory.syncLog.metric.tooltip","Number of saved sync events and the disk space they use."),route:"/sync",clearEndpoint:"/api/dashboard/sync/history/clear"},{key:"playtestReports",title:s("settings.dataHistory.playtest.title","Playtest reports"),description:s("settings.dataHistory.playtest.description","Saved automated playtest reports and logs."),metric:Q(s,te(s,l.playtestReports,"settings.dataHistory.metric.reports","reports"),i.playtestReports),metricTooltip:s("settings.dataHistory.playtestReports.metric.tooltip","Number of saved playtest reports and the disk space they use."),route:"/playtest",clearEndpoint:"/api/dashboard/playtest/history/clear"},{key:"projectChanges",title:s("settings.dataHistory.projectChanges.title","Project change summary"),description:s("settings.dataHistory.projectChanges.description","Saved summaries of project changes."),metric:Q(s,te(s,l.projectChanges,"settings.dataHistory.metric.records","records"),i.projectChanges),metricTooltip:s("settings.dataHistory.projectChanges.metric.tooltip","Number of saved project change summaries and the disk space they use."),route:"/changelog",clearEndpoint:"/api/dashboard/changelog/clear"},{key:"connectionLog",title:s("settings.dataHistory.connectionLog.title","Connection log"),description:s("settings.dataHistory.connectionLog.description","Saved MCP and Studio connection events."),metric:Q(s,te(s,l.connectionLog,"settings.dataHistory.metric.records","records"),i.connectionLog),metricTooltip:s("settings.dataHistory.connectionLog.metric.tooltip","Number of saved connection events and the disk space they use."),route:"/connection",clearEndpoint:"/api/dashboard/connection-log/clear"}],[l,i,s]),B=async()=>{if(y){A(!0),N(null);try{if(y.kind==="uiStudio"){if(t!=="pro"||p===null)throw new Error("UI Studio place is unavailable");await se(p,{all:!0,alsoSnapshots:!0}),N(s("settings.dataHistory.uiStudio.clear.success","UI Studio saved data cleared."))}else{const u=y.row.key==="projectChanges";if(u&&p===null)throw new Error("Project changes place is unavailable");let C=y.row.clearEndpoint;u&&p!==null&&(C=`${C}?placeId=${encodeURIComponent(p)}`),await U.post(C),N(u?s("settings.dataHistory.projectChanges.clear.success","Project change summaries cleared."):s("settings.dataHistory.clear.success","Saved data cleared."))}H(null),await j()}catch{N(y.kind==="uiStudio"?s("settings.dataHistory.uiStudio.clear.failed","Failed to clear UI Studio saved data."):s("settings.dataHistory.clear.failed","Failed to clear saved data."))}finally{A(!1)}}},z=t==="pro"?p:0,F=t==="pro"&&p!==null,c=(y==null?void 0:y.kind)==="uiStudio",I=(y==null?void 0:y.kind)==="row"&&y.row.key==="projectChanges",W=s("settings.dataHistory.title","Data & History");return e.jsxs(e.Fragment,{children:[e.jsxs("section",{id:"data-history",className:a.card,children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(R,{label:s("settings.dataHistory.title","Data & History"),tooltip:s("settings.dataHistory.title.tooltip","Manage saved dashboard data in one place.")}),e.jsxs("div",{className:a.cardHeaderActions,children:[e.jsx(m,{text:s("settings.dataHistory.scope.tooltip","Clear actions apply to the current project and active place where applicable."),children:e.jsx("span",{className:a.headerBadge,children:v?s("common.loading","Loading"):s("settings.dataHistory.scope","Current project")})}),e.jsx(m,{text:s("settings.dataHistory.toggle.tooltip","Collapse or expand this section."),children:e.jsx("button",{className:a.collapseButton,type:"button","aria-expanded":P,"aria-controls":"settings-data-history-body","aria-label":P?s("settings.dataHistory.collapse","Collapse {title}").replace("{title}",W):s("settings.dataHistory.expand","Expand {title}").replace("{title}",W),onClick:()=>D(u=>!u),children:P?"▾":"▸"})})]})]}),P&&e.jsxs("div",{id:"settings-data-history-body",children:[e.jsx("p",{className:a.dataHistoryIntro,children:s("settings.dataHistory.intro","Review saved dashboard data, open the related page, or clear stored records from one place.")}),e.jsxs("div",{className:a.dataHistoryList,children:[S.map(u=>e.jsxs(r.Fragment,{children:[e.jsxs("div",{className:`${a.dataHistoryRow} ${u.key==="projectChanges"&&x==="projectChanges"?a.dataHistoryRowExpanded:""}`,children:[e.jsxs("div",{className:a.dataHistoryMain,children:[e.jsx("div",{className:a.dataHistoryTitle,children:u.title}),e.jsx("div",{className:a.dataHistoryDescription,children:u.description})]}),e.jsx(m,{text:u.metricTooltip,children:e.jsx("div",{className:a.dataHistoryMetric,children:u.metric})}),e.jsxs("div",{className:a.dataHistoryActions,children:[e.jsx(m,{text:s("settings.dataHistory.open.tooltip","Open the page that shows this item in detail."),children:e.jsx("a",{className:a.linkButton,href:`#${u.route}`,children:s("settings.dataHistory.open","Open")})}),u.key==="projectChanges"&&e.jsx(m,{text:s("settings.dataHistory.manageStorage.tooltip","Show or hide storage policy and cleanup controls."),children:e.jsxs("button",{className:a.manageStorageButton,type:"button","aria-expanded":x==="projectChanges","aria-controls":"settings-project-changes-storage","aria-label":s("settings.dataHistory.manageStorage.projectChanges.aria","Manage Project change summary storage"),onClick:()=>T("projectChanges"),children:[s("settings.dataHistory.manageStorage","Manage storage"),e.jsx("span",{"aria-hidden":"true",children:x==="projectChanges"?"▴":"▾"})]})}),e.jsx(m,{text:s("settings.dataHistory.clear.tooltip","Delete only the records saved for this item. Roblox Studio data is not changed."),children:e.jsx("button",{className:a.dangerButton,type:"button",disabled:u.key==="projectChanges"&&p===null,onClick:()=>H({kind:"row",row:u}),children:u.key==="projectChanges"?s("settings.dataHistory.clearAll","Clear all"):s("common.clear","Clear")})})]})]}),u.key==="projectChanges"&&E.has("projectChanges")&&e.jsx("div",{id:"settings-project-changes-storage",className:`${a.dataHistoryDetail} ${a.projectChangesDataHistoryDetail}`,hidden:x!=="projectChanges",children:e.jsx(jt,{placeId:p,onChanged:j})})]},u.key)),e.jsxs("div",{className:`${a.dataHistoryRow} ${x==="uiStudio"?a.dataHistoryRowExpanded:""}`,children:[e.jsxs("div",{className:a.dataHistoryMain,children:[e.jsx("div",{className:a.dataHistoryTitle,children:s("settings.dataHistory.uiStudio.title","UI Studio history and screenshots")}),e.jsx("div",{className:a.dataHistoryDescription,children:s("settings.dataHistory.uiStudio.description","Saved UI Studio change records, screenshots, and cleanup policy.")})]}),e.jsx(m,{text:s("settings.dataHistory.uiStudio.metric.tooltip","UI Studio change record and capture counts, plus total disk usage."),children:e.jsx("div",{className:a.dataHistoryMetric,children:vt(s,n)})}),e.jsxs("div",{className:a.dataHistoryActions,children:[e.jsx(m,{text:s("settings.dataHistory.open.tooltip","Open the page that shows this item in detail."),children:e.jsx("a",{className:a.linkButton,href:"#/ui-studio?tab=history",children:s("settings.dataHistory.open","Open")})}),e.jsx(m,{text:s("settings.dataHistory.manageStorage.tooltip","Show or hide storage policy and cleanup controls."),children:e.jsxs("button",{className:a.manageStorageButton,type:"button","aria-expanded":x==="uiStudio","aria-controls":"settings-ui-studio-storage","aria-label":s("settings.dataHistory.manageStorage.uiStudio.aria","Manage UI Studio history and screenshots storage"),onClick:()=>T("uiStudio"),children:[s("settings.dataHistory.manageStorage","Manage storage"),e.jsx("span",{"aria-hidden":"true",children:x==="uiStudio"?"▴":"▾"})]})}),e.jsx(m,{text:s("settings.dataHistory.clear.tooltip","Delete only the records saved for this item. Roblox Studio data is not changed."),children:e.jsx("button",{className:a.dangerButton,type:"button",disabled:!F,onClick:()=>H({kind:"uiStudio"}),children:s("settings.dataHistory.clearAll","Clear all")})})]})]}),E.has("uiStudio")&&e.jsx("div",{id:"settings-ui-studio-storage",className:`${a.dataHistoryDetail} ${a.uiStudioDataHistoryDetail}`,hidden:x!=="uiStudio",children:e.jsx(gt,{placeId:z,tier:t,onChanged:j,embedded:!0,...t==="basic"?{sampleUsage:ae,sampleRetention:_e}:{}})})]}),$&&e.jsx("p",{className:a.inlineStatus,children:$})]})]}),e.jsx(ce,{open:y!==null,title:c?s("settings.dataHistory.uiStudio.clear.title","Clear UI Studio saved data?"):I?s("settings.dataHistory.projectChanges.clear.title","Clear project change summaries?"):s("settings.dataHistory.clear.title","Clear saved data?"),message:c?s("settings.dataHistory.uiStudio.clear.message","This deletes saved UI Studio change records and screenshots only. Roblox Studio instances and project objects are not changed."):I?s("settings.dataHistory.projectChanges.clear.message","This deletes completed sessions and ended context history for the selected Place. Active work and Roblox Studio project data stay intact."):s("settings.dataHistory.clear.message","This deletes saved dashboard records only. Roblox Studio instances and project objects are not changed."),cancelLabel:s("common.cancel","Cancel"),confirmLabel:I||c?s("settings.dataHistory.clearAll","Clear all"):s("common.clear","Clear"),loading:L,onCancel:()=>!L&&H(null),onConfirm:()=>void B()})]})}const Ct=r.forwardRef(function({autoOpen:s,settingsFilePath:l,saving:d,targeted:i,updateDashboardPreferences:b},n){const{t:g}=X(),[p,_]=r.useState("idle"),v="settings-dashboard-auto-open-label",k=d||p==="saving",P=async x=>{_("saving");try{await b({autoOpen:x}),_("saved")}catch{_("error")}},D=p==="saving"?g("settings.dashboard.autoOpen.saving","Saving…"):p==="saved"?g("settings.dashboard.autoOpen.saved","Saved for the next server start."):p==="error"?g("settings.dashboard.autoOpen.error","Could not save. The previous setting was restored."):" ";return e.jsxs("div",{id:"settings-dashboard",ref:n,tabIndex:-1,"data-testid":"settings-dashboard-card",className:[a.card,a.dashboardCard,i?a.dashboardCardTarget:""].filter(Boolean).join(" "),children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(R,{label:g("settings.dashboard.title","Dashboard"),tooltip:g("settings.dashboard.title.tooltip","Choose how WEPPY Dashboard behaves when the MCP Server starts.")}),e.jsx(m,{text:g("settings.dashboard.autoOpen.nextStart","Applies the next time the MCP Server starts."),children:e.jsx("span",{className:a.headerBadge,children:g("settings.dashboard.nextStartBadge","Next Start")})})]}),e.jsxs("div",{className:a.dashboardSettingRow,children:[e.jsxs("div",{className:a.dashboardSettingCopy,children:[e.jsx("span",{id:v,className:a.dashboardSettingLabel,children:g("settings.dashboard.autoOpen.label","Open Dashboard when WEPPY starts")}),e.jsx("span",{className:a.dashboardSettingDescription,children:g("settings.dashboard.autoOpen.description","Automatically opens this Dashboard after the MCP Server starts.")}),e.jsx("span",{className:a.dashboardSettingMeta,children:g("settings.dashboard.autoOpen.nextStart","Applies the next time the MCP Server starts.")})]}),e.jsxs("label",{className:`${a.toggleSwitch} ${a.dashboardToggleTarget}`,children:[e.jsx("input",{className:a.toggleInput,type:"checkbox",role:"switch","aria-labelledby":v,checked:s,disabled:k,onChange:x=>{P(x.target.checked)}}),e.jsx("span",{className:a.toggleTrack,"aria-hidden":"true",children:e.jsx("span",{className:a.toggleThumb})})]})]}),e.jsxs("dl",{className:a.dashboardDetails,children:[e.jsxs("div",{className:a.dashboardDetailRow,children:[e.jsx("dt",{children:g("settings.dashboard.settingsFile.label","Settings file")}),e.jsx("dd",{children:e.jsx("code",{className:a.dashboardSettingsFilePath,children:l})})]}),e.jsxs("div",{className:a.dashboardDetailRow,children:[e.jsx("dt",{children:g("settings.dashboard.agentExample.label","Ask your Agent")}),e.jsx("dd",{className:a.dashboardAgentPrompt,children:g("settings.dashboard.agentExample.prompt","“Turn off Dashboard auto-open.”")})]})]}),e.jsx("p",{className:`${a.dashboardSaveFeedback} ${p==="error"?a.dashboardSaveFeedbackError:""}`,"aria-live":"polite",children:D})]})}),Nt={en:"English",ko:"한국어",es:"Español","pt-br":"Português (BR)",ja:"日本語",id:"Bahasa Indonesia",de:"Deutsch","fr-fr":"Français"};function _t(t){return t==="active"?a.statusActive:t==="grace"?a.statusGrace:t==="invalid"||t==="revoked"?a.statusError:a.statusInactive}function kt(t){return t?t.refreshBlockedReason==="missing_session_token"?!0:t.status==="active"||t.status==="grace"||t.status==="invalid"||t.status==="revoked"||t.status==="unknown":!1}function Pt(t,s){return t.refreshBlockedReason==="missing_session_token"?{label:s("settings.license.status.activationRequired","Activation Required"),tooltip:s("settings.license.status.activationRequired.tooltip","Manual license activation is required before WEPPY Dashboard can refresh this status."),detail:s("settings.license.detail.missingSessionToken","Refresh is blocked because the current session token is missing."),detailTone:a.licenseNoticeWarning}:t.statusDetail==="active_cancel_pending"?{label:s("settings.license.active","Active"),tooltip:s("settings.license.status.activeCancelPending.tooltip","Cancellation is pending, but Pro access remains active until the current billing period ends."),detail:s("settings.license.detail.cancelPending","Cancellation is scheduled. Pro access remains active until the current billing period ends."),detailTone:a.licenseNoticeInfo}:t.statusDetail==="grace_provider_unavailable"?{label:s("settings.license.status.grace","Grace"),tooltip:s("settings.license.status.grace.tooltip","Provider verification is temporarily unavailable, but Pro access remains active during the grace period."),detail:s("settings.license.detail.graceProviderUnavailable","Provider unavailable. Pro access remains active during grace mode."),detailTone:a.licenseNoticeInfo}:t.statusDetail==="grace_expired"||t.statusDetail==="grace_payment_failed"?{label:s("settings.license.status.grace","Grace"),tooltip:s("settings.license.status.graceBilling.tooltip","Pro access is still available during a billing-related grace period."),detail:s("settings.license.detail.graceBilling","Pro access remains available during a billing grace period."),detailTone:a.licenseNoticeInfo}:{label:s(`settings.license.${t.status}`,t.status),tooltip:s(`settings.license.${t.status}.tooltip`,"Current license activation state."),detail:t.refreshRequired?s("settings.license.detail.refreshRecommended","License verification should be refreshed soon."):null,detailTone:a.licenseNoticeMuted}}function Dt(){const{t,selectedLocale:s,setLocale:l}=X(),{trackEvent:d}=le(),{search:i}=ye(),{settings:b,license:n,licenseControlsDisabled:g,licenseSubmitting:p,licenseMessage:_,activateLicense:v,refreshLicense:k,resetLicense:P,saving:D,updateDashboardPreferences:x,loading:f}=Se(),[E,w]=r.useState(""),y=n?Pt(n,t):null,H=kt(n),L=H&&(n==null?void 0:n.refreshBlockedReason)!=="missing_session_token",A=H,$=H?n==null?void 0:n.maskedKey:void 0,N=n!=null&&n.provider&&n.provider!=="auto"?n.provider:void 0,j=(n==null?void 0:n.tier)==="pro"?"pro":"basic",T=r.useRef(null),S=r.useRef(null),B=r.useRef(null),z=r.useMemo(()=>new URLSearchParams(i).get("section")==="license",[i]),F=r.useMemo(()=>new URLSearchParams(i).get("section")==="dashboard",[i]);return r.useEffect(()=>{var I;if(!z||f)return;const c=T.current;if((I=c==null?void 0:c.scrollIntoView)==null||I.call(c,{block:"start",behavior:"smooth"}),B.current&&!B.current.disabled){B.current.focus();return}c==null||c.focus()},[f,g,p,z]),r.useEffect(()=>{var I;if(!F||f)return;const c=S.current;(I=c==null?void 0:c.scrollIntoView)==null||I.call(c,{block:"start",behavior:"smooth"}),c==null||c.focus()},[f,F]),f?e.jsx("div",{className:a.page,children:e.jsx("div",{className:a.loading,children:t("common.loading")})}):e.jsxs("div",{className:a.page,children:[e.jsx(ve,{title:t("page.settings.title","Settings"),description:t("page.settings.description","Manage license, saved data, server environment, and language."),helpTopicId:"settings",helpState:{tier:j}}),e.jsxs("div",{id:"settings-license",ref:T,tabIndex:-1,"data-testid":"settings-license-card",className:[a.card,z?a.licenseCardTarget:"",(n==null?void 0:n.tier)==="pro"?a.licenseCardPro:""].filter(Boolean).join(" "),children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(R,{label:t("settings.license.title","License"),tooltip:t("settings.license.title.tooltip","Current license status and subscription tier.")}),e.jsx(m,{text:g?t("settings.license.disconnected.tooltip","Reconnect to the MCP server to manage license actions from WEPPY Dashboard."):t("settings.license.live.tooltip","License actions are sent to the MCP server immediately."),children:e.jsx("span",{className:`${a.headerBadge} ${g?"":a.headerBadgeLive}`,children:g?t("settings.license.disconnected","Disconnected"):t("settings.general.liveApply","Live Apply")})})]}),e.jsxs(e.Fragment,{children:[n?e.jsxs(e.Fragment,{children:[(()=>{const c=y;return e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:a.licenseGrid,children:[e.jsx("dt",{children:e.jsx(R,{label:t("settings.license.status","Status"),tooltip:t("settings.license.status.tooltip","Current license activation state.")})}),e.jsxs("dd",{children:[e.jsx("span",{className:`${a.statusDot} ${_t(n.status)}`}),e.jsx(m,{text:(c==null?void 0:c.tooltip)??t(`settings.license.${n.status}.tooltip`,"Current license activation state."),children:(c==null?void 0:c.label)??t(`settings.license.${n.status}`,n.status)})]}),e.jsx("dt",{children:e.jsx(R,{label:t("settings.license.tier","Tier"),tooltip:t("settings.license.tier.tooltip","Current subscription tier for available WEPPY Dashboard features.")})}),e.jsx("dd",{className:n.tier==="pro"?a.proBadge:"",children:e.jsx(m,{text:t(`tier.${n.tier}.tooltip`,"Available feature set for the connected license."),children:n.tier==="pro"?t("tier.pro","Pro"):t("tier.basic","Basic")})}),$&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(R,{label:t("settings.license.key","Key"),tooltip:t("settings.license.key.tooltip","Masked license key currently loaded by the server.")})}),e.jsx("dd",{children:e.jsx(m,{text:t("settings.license.keyValue.tooltip","Masked license key currently loaded by the server."),children:$})})]}),N&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(R,{label:t("settings.license.provider","Provider"),tooltip:t("settings.license.provider.tooltip","License provider used to validate this key.")})}),e.jsx("dd",{children:e.jsx(m,{text:t("settings.license.providerValue.tooltip","License provider used to validate this key."),children:N})})]})]}),(c==null?void 0:c.detail)&&e.jsx("p",{className:`${a.licenseNotice} ${c.detailTone}`,children:n.refreshBlockedReason==="missing_session_token"?t("settings.license.detail.manualActivation","Manual activation required to restore Pro access."):c.detail}),n.refreshBlockedReason==="missing_session_token"&&e.jsx("p",{className:`${a.licenseNotice} ${a.licenseNoticeMuted}`,children:c==null?void 0:c.detail})]})})(),n.tier==="basic"&&e.jsx(m,{text:t("tier.upgrade.tooltip","View Pro features and purchase options."),children:e.jsx("a",{className:a.upgradeLink,href:je.settingsLicense,target:"_blank",rel:"noopener noreferrer",onClick:()=>d("dashboard_click_event",{click_target:"upgrade_cta",placement:"settings_license",page:"settings"}),children:t("tier.upgrade","View Pro")})})]}):e.jsx("div",{className:a.loading,children:t("settings.license.unavailable")}),e.jsxs("div",{className:a.licenseControls,children:[e.jsxs("div",{className:a.licenseControlRow,children:[e.jsx(m,{text:t("settings.license.refresh.tooltip","Re-fetch the current state from the license server. Useful when a billing change hasn't appeared yet."),children:e.jsx("button",{type:"button",className:a.actionBtn,disabled:g||p||!L,onClick:()=>{k()},children:p?t("common.loading"):t("settings.license.refresh","Refresh License")})}),e.jsx(m,{text:t("settings.license.reset.tooltip","Remove the currently registered license key. Use this before activating with a different key."),children:e.jsx("button",{type:"button",className:a.actionBtn,disabled:g||p||!A,onClick:()=>{P()},children:p?t("common.loading"):t("settings.license.reset","Reset License")})})]}),e.jsxs("div",{className:a.licenseControlRow,children:[e.jsxs("label",{className:`${a.licenseField} ${a.licenseFieldGrow}`,children:[e.jsx("span",{className:a.controlLabel,children:e.jsx(R,{label:t("settings.license.keyInput","License Key"),tooltip:t("settings.license.key.tooltip","Masked license key currently loaded by the server.")})}),e.jsx("input",{ref:B,"aria-label":t("settings.license.keyInput","License Key"),className:a.textInput,type:"text",value:E,disabled:g||p,onChange:c=>w(c.target.value)})]}),e.jsx(m,{text:t("settings.license.activate.tooltip","Activate Pro features with the entered license key."),children:e.jsx("button",{type:"button",className:a.actionBtn,disabled:g||p,onClick:()=>{(async()=>await v(E)&&w(""))()},children:p?t("common.loading"):t("settings.license.activate","Activate License")})})]}),_&&e.jsx("p",{className:a.licenseMessage,children:_})]})]})]}),e.jsx(St,{tier:j}),b&&e.jsx(Ct,{ref:S,autoOpen:b.dashboard.autoOpen,settingsFilePath:b.dashboard.settingsFilePath,saving:D,targeted:F,updateDashboardPreferences:x}),e.jsxs("div",{className:a.card,children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(R,{label:t("settings.cold.title","Server Environment"),tooltip:t("settings.cold.title.tooltip","Read-only server environment values loaded at startup.")}),e.jsx(m,{text:t("settings.readOnly.tooltip","This section shows values that cannot be edited from WEPPY Dashboard."),children:e.jsx("span",{className:a.headerBadge,children:t("settings.readOnly","Read-only")})})]}),b?e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:a.coldGrid,children:[e.jsx("dt",{children:e.jsx(R,{label:"HTTP_PORT",tooltip:t("settings.cold.httpPort.tooltip","Port number used by the MCP WEPPY Dashboard HTTP server.")})}),e.jsx("dd",{children:b.cold.HTTP_PORT}),e.jsx("dt",{children:e.jsx(R,{label:"HTTP_HOST",tooltip:t("settings.cold.httpHost.tooltip","Host interface that the MCP WEPPY Dashboard HTTP server binds to.")})}),e.jsx("dd",{children:b.cold.HTTP_HOST})]}),e.jsx("p",{className:a.coldHint,children:t("settings.cold.hint","Set via environment variables to change these values.")})]}):e.jsx("div",{className:a.loading,children:t("settings.unavailable")})]}),e.jsxs("div",{className:a.card,children:[e.jsx("div",{className:a.cardHeader,children:e.jsx(R,{label:t("settings.language.title","Language"),tooltip:t("settings.language.title.tooltip","Choose how the WEPPY Dashboard interface text is localized.")})}),e.jsxs("div",{className:a.langRow,children:[e.jsx("label",{children:e.jsx(R,{label:t("settings.language.dashboard","WEPPY Dashboard Language"),tooltip:t("settings.language.dashboard.tooltip","Overrides the WEPPY Dashboard language or follows the system language when set to Auto.")})}),e.jsx(m,{text:t("settings.language.auto.tooltip","Follow the operating system's language. Falls back to English when not supported."),children:e.jsxs("select",{className:a.select,value:s,onChange:c=>l(c.target.value),children:[e.jsx("option",{value:xe,children:t("settings.language.auto","Auto")}),fe.map(c=>e.jsx("option",{value:c,children:Nt[c]??c},c))]})})]})]})]})}export{Dt as Component};
|
|
1
|
+
import{u as X,a as le,r,j as e,b as I,g as me,c as ye,T as je,A as xe,S as fe}from"./index-DchewB5y.js";import{C as be,P as ve}from"./PageHeader-CYbeZdtL.js";import{I as R}from"./InfoLabel-BGeOUBIl.js";import{T as m}from"./TooltipText-sb-BSgUg.js";import{s as a,u as Se}from"./useSettings-D5XHMODc.js";import{C as ce}from"./ConfirmModal-Dz7mVKLZ.js";import{D as de,f as ue,r as Ce,s as Ne,a as pe,d as se,S as ae,b as _e}from"./sample-requests-CQvn7a4-.js";import"./ConfirmModal.module-DJksQHBd.js";const ke="_card_jz1ya_4",Pe="_cardEmbedded_jz1ya_14",Le="_cardTitle_jz1ya_21",Re="_storageConsoleGrid_jz1ya_31",we="_storageUsageColumn_jz1ya_38",He="_storagePolicyColumn_jz1ya_39",Be="_usageRow_jz1ya_44",Me="_usageTotal_jz1ya_50",Ae="_usageBreakdown_jz1ya_57",$e="_usageCounts_jz1ya_63",ze="_storageFooter_jz1ya_70",De="_lastRunRow_jz1ya_79",Ee="_lastRunLabel_jz1ya_89",Te="_errorIcon_jz1ya_95",Ie="_tooltip_jz1ya_103",Ue="_cleanupRow_jz1ya_126",Fe="_cleanupLabel_jz1ya_133",Oe="_cleanupBtn_jz1ya_140",Ge="_cleanupBtnDanger_jz1ya_169",qe="_retentionSection_jz1ya_182",We="_retentionTitle_jz1ya_188",Ye="_retentionFieldset_jz1ya_196",Ke="_proOverlay_jz1ya_211",Ve="_modeSegments_jz1ya_223",Je="_radioLabel_jz1ya_244",Qe="_radioLabelActive_jz1ya_265",Ze="_presetGroup_jz1ya_279",Xe="_presetBtn_jz1ya_287",et="_presetBtnActive_jz1ya_310",tt="_freeInput_jz1ya_317",st="_inputError_jz1ya_334",at="_inputUnit_jz1ya_338",it="_cascadeRow_jz1ya_345",nt="_retentionActions_jz1ya_361",ot="_saveBtn_jz1ya_367",rt="_runNowBtn_jz1ya_395",lt="_errorMsg_jz1ya_439",ct="_freeInputHitArea_jz1ya_501",o={card:ke,cardEmbedded:Pe,cardTitle:Le,storageConsoleGrid:Re,storageUsageColumn:we,storagePolicyColumn:He,usageRow:Be,usageTotal:Me,usageBreakdown:Ae,usageCounts:$e,storageFooter:ze,lastRunRow:De,lastRunLabel:Ee,errorIcon:Te,tooltip:Ie,cleanupRow:Ue,cleanupLabel:Fe,cleanupBtn:Oe,cleanupBtnDanger:Ge,retentionSection:qe,retentionTitle:We,retentionFieldset:Ye,proOverlay:Ke,modeSegments:Ve,radioLabel:Je,radioLabelActive:Qe,presetGroup:Ze,presetBtn:Xe,presetBtnActive:et,freeInput:tt,inputError:st,inputUnit:at,cascadeRow:it,retentionActions:nt,saveBtn:ot,runNowBtn:rt,errorMsg:lt,freeInputHitArea:ct};function dt(t,s){return!!(t.mode==="off"&&s.mode!=="off"||t.mode==="age"&&s.mode==="age"&&(s.ageDays??0)<(t.ageDays??0)||t.mode==="size"&&s.mode==="size"&&(s.sizeMb??0)<(t.sizeMb??0)||!t.cascadeSnapshots&&s.cascadeSnapshots)}function ie(t){return t.mode==="age"?Number.isInteger(t.ageDays)&&t.ageDays>=1&&t.ageDays<=365:t.mode==="size"?Number.isInteger(t.sizeMb)&&t.sizeMb>=50&&t.sizeMb<=1e4:!0}function ut(t,s){return t.mode===s.mode&&t.ageDays===s.ageDays&&t.sizeMb===s.sizeMb&&t.cascadeSnapshots===s.cascadeSnapshots}function Y(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:t<1024*1024*1024?`${(t/(1024*1024)).toFixed(1)} MB`:`${(t/(1024*1024*1024)).toFixed(2)} GB`}function pt({placeId:t,tier:s,currentPolicy:l,onSaved:d}){const{t:n}=X(),{trackEvent:b}=le(),[i,g]=r.useState(l),[p,_]=r.useState(()=>[7,14,30,90].includes(l.ageDays??-1)?"":String(l.ageDays??30)),[v,k]=r.useState(()=>[100,500,1e3].includes(l.sizeMb??-1)?"":String(l.sizeMb??500)),[P,z]=r.useState(null),[x,f]=r.useState(!1),[D,w]=r.useState(!1),[y,H]=r.useState(!1),[L,A]=r.useState(null);r.useEffect(()=>{g(l);const h=[7,14,30,90],M=[100,500,1e3];_(h.includes(l.ageDays??-1)?"":String(l.ageDays??30)),k(M.includes(l.sizeMb??-1)?"":String(l.sizeMb??500))},[l]);const $=s==="basic",N=ie(i),j=ut(l,i),E=N&&!j&&!D,S=h=>{g(M=>{const O={...M,mode:h};return h==="age"&&(O.ageDays=parseInt(p,10)||30),h==="size"&&(O.sizeMb=parseInt(v,10)||500),O})},B=h=>{_(""),g(M=>({...M,ageDays:h}))},U=h=>{k(""),g(M=>({...M,sizeMb:h}))},F=h=>{_(h);const M=parseInt(h,10);Number.isNaN(M)||g(O=>({...O,ageDays:M}))},c=h=>{k(h);const M=parseInt(h,10);Number.isNaN(M)||g(O=>({...O,sizeMb:M}))},T=async()=>{if(A(null),b("dashboard_click_event",{click_target:"ui_studio_cleanup_save",page:"settings"}),dt(l,i)){try{const h=await ue(t,{mode:i.mode,ageDays:i.ageDays,sizeMb:i.sizeMb,cascadeSnapshots:i.cascadeSnapshots});z(h.dryRun),f(!0)}catch(h){A(h.message)}return}await W()},W=async()=>{w(!0);try{await Ne(t,i),f(!1),d()}catch(h){throw A(h.message),h}finally{w(!1)}},u=async()=>{A(null),b("dashboard_click_event",{click_target:"ui_studio_cleanup_run_now",page:"settings"}),H(!0);try{await Ce(t),d()}catch(h){A(h.message)}finally{H(!1)}},C=P?`${n("uiStudio.cleanup.policy.confirm.messageStrict","이 정책으로 즉시")} ${P.wouldRemoveRequests}${n("uiStudio.cleanup.policy.confirm.requests","건")} / ${P.wouldRemoveSnapshots}${n("uiStudio.cleanup.policy.confirm.snapshots","개 화면 캡처")} / ${Y(P.wouldFreeBytes)} ${n("uiStudio.cleanup.policy.confirm.freed","가 삭제됩니다 — 적용?")}`:"",K=i.mode==="age"&&!ie(i),q=i.mode==="size"&&!ie(i);return e.jsxs("div",{className:o.retentionSection,children:[e.jsx("h3",{className:o.retentionTitle,children:e.jsx(R,{label:n("uiStudio.cleanup.policy.title","자동 삭제 정책"),tooltip:n("uiStudio.cleanup.policy.title.tooltip","Rules that automatically remove old or large captures.")})}),e.jsxs("div",{style:{position:"relative"},children:[$&&e.jsx("div",{className:o.proOverlay,title:n("uiStudio.cleanup.policy.proRequired","Pro에서 사용 가능"),children:e.jsx("div",{className:o.tooltip,children:n("uiStudio.cleanup.policy.proRequired","Pro에서 사용 가능")})}),e.jsxs("fieldset",{className:o.retentionFieldset,disabled:$,"aria-label":n("uiStudio.cleanup.policy.title","자동 삭제 정책"),style:$?{opacity:.45,pointerEvents:"none"}:void 0,children:[e.jsxs("div",{className:o.modeSegments,"data-testid":"cleanup-mode-segments",children:[e.jsx(m,{text:n("uiStudio.cleanup.policy.modeOff.tooltip","Turn off auto-cleanup. Data stays until you remove it manually."),children:e.jsxs("label",{className:`${o.radioLabel} ${i.mode==="off"?o.radioLabelActive:""}`,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"off",checked:i.mode==="off",onChange:()=>S("off")}),n("uiStudio.cleanup.policy.modeOff","사용 안 함 (off)")]})}),e.jsx(m,{text:n("uiStudio.cleanup.policy.modeAge.tooltip","Automatically delete data older than the configured number of days."),children:e.jsxs("label",{className:`${o.radioLabel} ${i.mode==="age"?o.radioLabelActive:""}`,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"age",checked:i.mode==="age",onChange:()=>S("age")}),n("uiStudio.cleanup.policy.modeAge","기간 기반 (age)")]})}),e.jsx(m,{text:n("uiStudio.cleanup.policy.modeSize.tooltip","When total usage exceeds the limit, the oldest data is removed first."),children:e.jsxs("label",{className:`${o.radioLabel} ${i.mode==="size"?o.radioLabelActive:""}`,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"size",checked:i.mode==="size",onChange:()=>S("size")}),n("uiStudio.cleanup.policy.modeSize","용량 기반 (size)")]})})]}),i.mode==="age"&&e.jsxs("div",{className:o.presetGroup,children:[[7,14,30,90].map(h=>e.jsx(m,{text:n("uiStudio.cleanup.policy.agePreset.tooltip","Delete data older than this many days."),children:e.jsxs("button",{type:"button",className:`${o.presetBtn} ${i.ageDays===h&&p===""?o.presetBtnActive:""}`,onClick:()=>B(h),children:[h,n("uiStudio.cleanup.policy.daysUnit","일")]})},h)),e.jsx(m,{text:n("uiStudio.cleanup.policy.ageInput.tooltip","Enter any value between 1 and 365 days."),children:e.jsx("label",{className:o.freeInputHitArea,children:e.jsx("input",{type:"number",className:`${o.freeInput} ${K?o.inputError:""}`,value:p,min:1,max:365,onChange:h=>F(h.target.value)})})}),e.jsxs("span",{className:o.inputUnit,children:["1–365",n("uiStudio.cleanup.policy.daysUnit","일")]})]}),i.mode==="size"&&e.jsxs("div",{className:o.presetGroup,children:[[100,500,1e3].map(h=>e.jsx(m,{text:n("uiStudio.cleanup.policy.sizePreset.tooltip","Keep total usage under this size."),children:e.jsxs("button",{type:"button",className:`${o.presetBtn} ${i.sizeMb===h&&v===""?o.presetBtnActive:""}`,onClick:()=>U(h),children:[h,n("uiStudio.cleanup.policy.mbUnit","MB")]})},h)),e.jsx(m,{text:n("uiStudio.cleanup.policy.sizeInput.tooltip","Enter any value between 50 MB and 10000 MB (10 GB)."),children:e.jsx("label",{className:o.freeInputHitArea,children:e.jsx("input",{type:"number",className:`${o.freeInput} ${q?o.inputError:""}`,value:v,min:50,max:1e4,onChange:h=>c(h.target.value)})})}),e.jsxs("span",{className:o.inputUnit,children:["50–10000",n("uiStudio.cleanup.policy.mbUnit","MB")]})]}),e.jsx(m,{text:n("uiStudio.cleanup.policy.cascade.tooltip","Also delete the capture images linked to those records. If off, the images stay."),children:e.jsxs("label",{className:o.cascadeRow,children:[e.jsx(be,{checked:i.cascadeSnapshots,onChange:h=>g(M=>({...M,cascadeSnapshots:h.target.checked}))}),n("uiStudio.cleanup.policy.cascade","연결된 화면 캡처도 함께 삭제")]})}),e.jsxs("div",{className:o.retentionActions,children:[e.jsx(m,{text:n("uiStudio.cleanup.policy.save.tooltip","Save the current cleanup rule. It runs in the background from then on."),children:e.jsx("button",{type:"button",className:o.saveBtn,onClick:()=>void T(),disabled:!E,children:n("uiStudio.cleanup.policy.save","정책 저장")})}),e.jsx(m,{text:n("uiStudio.cleanup.policy.runNow.tooltip","저장된 정리 정책을 다음 자동 실행까지 기다리지 않고 지금 한 번 실행합니다."),children:e.jsx("button",{type:"button",className:o.runNowBtn,onClick:()=>void u(),disabled:y,children:n("uiStudio.cleanup.policy.runNow","저장된 정책으로 정리")})})]}),L&&e.jsx("div",{className:o.errorMsg,children:L})]})]}),x&&P&&e.jsx(de,{title:n("uiStudio.cleanup.policy.confirm.title","정책 적용 확인"),message:C,danger:!0,confirmLabel:n("uiStudio.cleanup.policy.save","정책 저장"),busy:D,onConfirm:W,onClose:()=>f(!1)})]})}function gt({placeId:t,tier:s,onChanged:l,sampleUsage:d,sampleRetention:n,embedded:b=!1}){const{t:i}=X(),g=s==="basic"&&d!=null&&n!=null,[p,_]=r.useState(g?d:null),[v,k]=r.useState(g?n:null),[P,z]=r.useState(null),[x,f]=r.useState(null),[D,w]=r.useState(null),y=r.useCallback(async()=>{if(!g&&t!=null){z(null);try{const[S,B]=await Promise.all([pe(t),ue(t)]);_(S),k(B.policy)}catch(S){z(S.message)}}},[t,g]);r.useEffect(()=>{y()},[y]);const H=r.useCallback(()=>{y(),l==null||l()},[y,l]),L=r.useCallback(async()=>{if(x&&t!=null){w(null);try{x.kind==="keep7"?await se(t,{olderThanDays:7,alsoSnapshots:!0}):x.kind==="keep30"?await se(t,{olderThanDays:30,alsoSnapshots:!0}):await se(t,{all:!0,alsoSnapshots:!0}),f(null),y(),l==null||l()}catch(S){throw w(S.message),S}}},[x,t,y,l]);function A(S){const B=i("uiStudio.cleanup.studioPreservedNote","This deletes saved change records and screenshots on disk only; Roblox Studio instances are not affected.");return S.kind==="keep7"?`${i("uiStudio.cleanup.cleanupConfirmMessage.keep7","7일 이전 변경 기록과 화면 캡처가 삭제됩니다. 이 작업은 되돌릴 수 없습니다.")} ${B}`:S.kind==="keep30"?`${i("uiStudio.cleanup.cleanupConfirmMessage.keep30","30일 이전 변경 기록과 화면 캡처가 삭제됩니다. 이 작업은 되돌릴 수 없습니다.")} ${B}`:`${((p==null?void 0:p.requestCount)??0)+((p==null?void 0:p.snapshotCount)??0)}${i("uiStudio.cleanup.cleanupConfirmMessage.all","개의 저장된 변경 기록과 화면 캡처가 삭제됩니다. 이 작업은 되돌릴 수 없습니다.")} ${B}`}if(t==null&&!g)return null;if(P)return e.jsx("div",{className:`${o.card} ${b?o.cardEmbedded:""}`,children:e.jsx("p",{className:o.errorMsg,children:P})});if(!p||!v)return e.jsx("div",{className:`${o.card} ${b?o.cardEmbedded:""}`,children:e.jsx("p",{style:{fontSize:12,color:"var(--text-muted)",margin:0},children:i("uiStudio.storage.loading","로딩 중...")})});const $=v.lastRunAt,N=v.lastRunStats,j=$?new Date($).toLocaleString():null,E=t??0;return e.jsxs("div",{className:`${o.card} ${b?o.cardEmbedded:""}`,children:[!b&&e.jsx("h3",{className:o.cardTitle,children:e.jsx(R,{label:i("uiStudio.storage.title","UI Studio 저장 데이터"),tooltip:i("uiStudio.storage.title.tooltip","Disk usage of UI Studio change records and screenshots.")})}),e.jsxs("div",{className:o.storageConsoleGrid,"data-testid":"ui-studio-storage-console-grid",children:[e.jsx("section",{className:o.storageUsageColumn,children:e.jsxs("div",{className:o.usageRow,children:[e.jsx(m,{text:i("uiStudio.storage.usageLabel.tooltip","Disk space currently used by UI Studio for this project."),children:e.jsxs("div",{className:o.usageTotal,children:[i("uiStudio.storage.usageLabel","사용 중")," ",Y(p.totalBytes)]})}),e.jsxs("div",{className:o.usageBreakdown,children:[e.jsx(m,{text:i("uiStudio.storage.historyBytes.tooltip","Space taken by change record data (JSON)."),children:e.jsxs("span",{children:[i("uiStudio.storage.historyBytes","변경 이력")," ",Y(p.historyBytes)]})})," · ",e.jsx(m,{text:i("uiStudio.storage.snapshotBytes.tooltip","Space taken by captured PNG image files."),children:e.jsxs("span",{children:[i("uiStudio.storage.snapshotBytes","화면 캡처")," ",Y(p.snapshotBytes)]})})]}),e.jsxs("div",{className:o.usageCounts,children:[e.jsx(m,{text:i("uiStudio.storage.requestCount.tooltip","Number of actions where AI changed the UI."),children:e.jsxs("span",{children:[i("uiStudio.storage.requestCount","변경 기록")," ",p.requestCount.toLocaleString(),i("uiStudio.storage.countSuffix","개")]})})," · ",e.jsx(m,{text:i("uiStudio.storage.mutationCount.tooltip","Number of detail changes inside actions (one property edit = 1)."),children:e.jsxs("span",{children:[i("uiStudio.storage.mutationCount","변경 상세")," ",p.mutationCount.toLocaleString(),i("uiStudio.storage.countSuffix","개")]})})," · ",e.jsx(m,{text:i("uiStudio.storage.snapshotCount.tooltip","Number of saved capture image files."),children:e.jsxs("span",{children:[i("uiStudio.storage.snapshotCount","화면 캡처")," ",p.snapshotCount.toLocaleString(),i("uiStudio.storage.countSuffix","개")]})})]})]})}),e.jsx("section",{className:o.storagePolicyColumn,children:e.jsx(pt,{placeId:E,tier:s,currentPolicy:v,onSaved:H})})]}),e.jsxs("div",{className:o.storageFooter,"data-testid":"ui-studio-storage-footer",children:[e.jsxs("div",{className:o.lastRunRow,children:[e.jsx("span",{className:o.lastRunLabel,children:e.jsx(R,{label:i("uiStudio.storage.lastRun","마지막 자동 정리"),tooltip:i("uiStudio.storage.lastRun.tooltip","When the auto-cleanup policy last ran, and what it removed.")})}),j?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:j}),N&&e.jsxs("span",{children:["· ",i("uiStudio.storage.requestCount","변경 기록")," ",N.removedRequests,i("uiStudio.storage.countSuffix","개")," / ",i("uiStudio.storage.snapshotCount","화면 캡처")," ",N.removedSnapshots,i("uiStudio.storage.countSuffix","개")," / ",Y(N.freedBytes)," ",i("uiStudio.storage.lastRunFreed","회수")]}),N&&N.errors>0&&e.jsxs("span",{className:o.errorIcon,title:`${i("uiStudio.storage.lastRunErrors","오류")} ${N.errors}건`,children:["⚠",e.jsxs("span",{className:o.tooltip,children:[i("uiStudio.storage.lastRunErrors","오류")," ",N.errors,i("uiStudio.storage.countSuffix","건")]})]})]}):e.jsx("span",{children:i("uiStudio.storage.lastRunNever","—")})]}),e.jsxs("div",{className:o.cleanupRow,children:[e.jsx("span",{className:o.cleanupLabel,children:e.jsx(R,{label:i("uiStudio.cleanup.label","수동 정리"),tooltip:i("uiStudio.cleanup.label.tooltip","Manually clean up change records and captures whenever you want.")})}),e.jsx(m,{text:i("uiStudio.cleanup.keep7.tooltip","Delete change records and captures older than 7 days."),children:e.jsx("button",{type:"button",className:o.cleanupBtn,onClick:()=>f({kind:"keep7"}),disabled:s==="basic",children:i("uiStudio.cleanup.keepLastNDays","최근 7일만 남기기").replace("{n}","7")})}),e.jsx(m,{text:i("uiStudio.cleanup.keep30.tooltip","Delete change records and captures older than 30 days."),children:e.jsx("button",{type:"button",className:o.cleanupBtn,onClick:()=>f({kind:"keep30"}),disabled:s==="basic",children:i("uiStudio.cleanup.keepLastNDays","최근 30일만 남기기").replace("{n}","30")})}),!b&&e.jsx(m,{text:i("uiStudio.cleanup.deleteAll.tooltip","Delete every change record and capture for this project. The actual UI in Roblox Studio is not affected."),children:e.jsx("button",{type:"button",className:`${o.cleanupBtn} ${o.cleanupBtnDanger}`,onClick:()=>f({kind:"all"}),disabled:s==="basic",children:i("uiStudio.cleanup.deleteAll","전체 삭제…")})})]})]}),D&&e.jsx("div",{className:o.errorMsg,children:D}),x&&e.jsx(de,{title:i("uiStudio.cleanup.cleanupConfirmTitle","정리 확인"),message:A(x),danger:!0,confirmLabel:i("common.delete","삭제"),onConfirm:L,onClose:()=>{f(null),w(null)}})]})}function ne(t,s){const l={placeId:String(t)};return s&&(l["preview.mode"]=s.mode,s.mode==="size"&&(l["preview.sizeMb"]=String(s.sizeMb))),I.get("/api/dashboard/changelog/cleanup",l)}function oe(t){return I.put("/api/dashboard/changelog/cleanup",t)}function ht(t){return I.post(`/api/dashboard/changelog/cleanup/run?placeId=${encodeURIComponent(t)}`)}const mt=[100,500,1e3];function re(t,s){return t.mode!==s.mode?!1:t.mode==="off"||s.mode==="size"&&t.sizeMb===s.sizeMb}function yt(t,s){return t.mode==="off"?!1:s.mode==="off"||t.sizeMb<s.sizeMb}function J(t){return t<1e3?`${t} B`:t<1e6?`${(t/1e3).toFixed(1)} KB`:t<1e9?`${(t/1e6).toFixed(1)} MB`:`${(t/1e9).toFixed(2)} GB`}function jt({placeId:t,onChanged:s}){const{locale:l,t:d}=X(),[n,b]=r.useState(null),[i,g]=r.useState({mode:"size",sizeMb:500}),[p,_]=r.useState(t!==null),[v,k]=r.useState(!1),[P,z]=r.useState(!1),[x,f]=r.useState(!1),[D,w]=r.useState(!1),[y,H]=r.useState(null),L=r.useCallback(async()=>{if(t===null){b(null),_(!1);return}z(!1);try{const u=await ne(t);b(u),g(u.policy)}catch{z(!0)}finally{_(!1)}},[t]);r.useEffect(()=>{_(t!==null),L()},[L,t]);const A=r.useCallback(async u=>{k(!0),f(!1),w(!1);try{await oe(u),H(null),await L(),w(!0),s==null||s()}catch{f(!0)}finally{k(!1)}},[L,s]),$=r.useCallback(async()=>{if(!(!n||t===null||re(i,n.policy))){k(!0),f(!1),w(!1);try{if(yt(i,n.policy)){const u=await ne(t,i);if(u.preview.affectedPlaceCount>0){H({policy:i,preview:u});return}}await oe(i),await L(),w(!0),s==null||s()}catch{f(!0)}finally{k(!1)}}},[n,i,L,s,t]),N=r.useCallback(async()=>{if(t!==null){k(!0),f(!1),w(!1);try{await ht(t),await L(),s==null||s()}catch{f(!0)}finally{k(!1)}}},[L,s,t]),j=n==null?void 0:n.selectedPlace.currentUsage,E=(n==null?void 0:n.policy.mode)==="size"?n.policy.sizeMb*1e6:null,S=E??Math.max((j==null?void 0:j.bytes)??0,1),B=Math.min(100,((j==null?void 0:j.sessionBytes)??0)/S*100),U=Math.min(Math.max(0,100-B),((j==null?void 0:j.contextBytes)??0)/S*100),F=n?!re(i,n.policy):!1,c=u=>u.mode==="off"?d("settings.projectChanges.cleanup.unlimited","Unlimited"):`${u.sizeMb} MB`,T=r.useMemo(()=>{if(!y)return"";const u=y.preview.preview,C=d("settings.projectChanges.cleanup.confirm.message","{places} Places · {sessions} sessions · {bytes} expected to be freed.").replace("{places}",u.affectedPlaceCount.toLocaleString()).replace("{sessions}",u.deleteSessionCount.toLocaleString()).replace("{bytes}",J(u.estimatedFreedBytes));return u.wouldRemainOverLimitPlaceCount===0?C:`${C} ${d("settings.projectChanges.cleanup.confirm.protected","{places} Place may remain over the limit because active data is protected.").replace("{places}",u.wouldRemainOverLimitPlaceCount.toLocaleString())}`},[y,d]);if(t===null)return e.jsx("div",{className:a.projectChangesPanel,children:e.jsx("p",{className:a.projectChangesEmpty,children:d("settings.projectChanges.cleanup.noPlace","Select a Place to manage saved project changes.")})});if(p)return e.jsx("div",{className:a.projectChangesPanel,children:e.jsx("p",{className:a.projectChangesEmpty,children:d("settings.projectChanges.cleanup.loading","Loading storage settings…")})});if(P||!n||!j)return e.jsxs("div",{className:a.projectChangesPanel,children:[e.jsx("p",{className:a.projectChangesError,role:"alert",children:d("settings.projectChanges.cleanup.loadFailed","Could not load storage settings.")}),e.jsx("button",{className:a.projectChangesSecondaryButton,type:"button",onClick:()=>{_(!0),L()},children:d("common.retry","Retry")})]});const W=E===null?d("settings.projectChanges.cleanup.usageUnlimited","{used} used · Unlimited").replace("{used}",J(j.bytes)):d("settings.projectChanges.cleanup.usageLimited","{used} used of {limit}").replace("{used}",J(j.bytes)).replace("{limit}",c(n.policy));return e.jsxs("div",{className:a.projectChangesPanel,children:[e.jsxs("div",{className:a.projectChangesConsoleGrid,"data-testid":"project-storage-console-grid",children:[e.jsxs("section",{className:a.projectChangesUsageColumn,children:[e.jsx("h3",{className:a.projectChangesPanelTitle,children:e.jsx(R,{label:d("settings.projectChanges.cleanup.title","Storage management"),tooltip:d("settings.projectChanges.cleanup.title.tooltip","Set how much Project Change Summary history each Place can keep.")})}),e.jsxs("div",{className:a.projectChangesUsageBlock,children:[e.jsx("div",{className:a.projectChangesUsageSummary,children:W}),e.jsxs("div",{className:a.projectChangesQuotaRail,role:"meter","aria-label":d("settings.projectChanges.cleanup.usageAria","Place storage usage"),"aria-valuemin":0,"aria-valuenow":j.bytes,"aria-valuemax":E??j.bytes,children:[e.jsx("span",{className:a.projectChangesSessionRail,style:{width:`${B}%`}}),e.jsx("span",{className:a.projectChangesContextRail,style:{width:`${U}%`}})]}),e.jsxs("div",{className:a.projectChangesUsageLegend,children:[e.jsxs("span",{children:[d("settings.projectChanges.cleanup.sessions","Sessions")," ",e.jsx("strong",{children:J(j.sessionBytes)})]}),e.jsxs("span",{children:[d("settings.projectChanges.cleanup.contexts","Contexts")," ",e.jsx("strong",{children:J(j.contextBytes)})]})]})]})]}),e.jsxs("section",{className:a.projectChangesPolicyColumn,children:[e.jsx("p",{className:a.projectChangesScope,children:d("settings.projectChanges.cleanup.scope","One setting applies the selected limit separately to every Place.")}),e.jsxs("fieldset",{className:a.projectChangesPolicyFieldset,disabled:v,children:[e.jsx("legend",{className:a.projectChangesPolicyLegend,children:d("settings.projectChanges.cleanup.limit","Limit per Place")}),e.jsxs("div",{className:a.projectChangesPresetGroup,children:[mt.map(u=>{const C=i.mode==="size"&&i.sizeMb===u;return e.jsx("button",{className:`${a.projectChangesPresetButton} ${C?a.projectChangesPresetButtonActive:""}`,type:"button","aria-pressed":C,onClick:()=>g({mode:"size",sizeMb:u}),children:d("settings.projectChanges.cleanup.preset","{sizeMb}MB").replace("{sizeMb}",String(u))},u)}),e.jsx("button",{className:`${a.projectChangesPresetButton} ${i.mode==="off"?a.projectChangesPresetButtonActive:""}`,type:"button","aria-pressed":i.mode==="off",onClick:()=>g({mode:"off"}),children:d("settings.projectChanges.cleanup.unlimited","Unlimited")})]})]}),e.jsxs("div",{className:a.projectChangesActions,children:[e.jsx("button",{className:a.projectChangesSaveButton,type:"button",disabled:!F||v,onClick:()=>void $(),children:d("common.save","Save")}),e.jsx("button",{className:a.projectChangesSecondaryButton,type:"button",disabled:v,onClick:()=>void N(),children:d("settings.projectChanges.cleanup.runNow","Run saved policy")}),D&&e.jsx("span",{className:a.projectChangesSaved,role:"status",children:d("settings.projectChanges.cleanup.saved","Saved")})]})]})]}),n.selectedPlace.dryRun.wouldRemainOverLimit&&e.jsx("p",{className:a.projectChangesWarning,children:d("settings.projectChanges.cleanup.protectedWarning","Active changes are protected, so this Place may stay over the limit.")}),e.jsxs("div",{className:a.projectChangesLastRun,"data-testid":"project-storage-footer",children:[e.jsx("span",{className:a.projectChangesLastRunLabel,children:d("settings.projectChanges.cleanup.lastRun","Last cleanup")}),n.selectedPlace.lastRun?e.jsxs("span",{children:[new Date(n.selectedPlace.lastRun.ranAt).toLocaleString(l)," · ",d("settings.projectChanges.cleanup.lastRunSummary","{sessions} sessions · {bytes} freed").replace("{sessions}",n.selectedPlace.lastRun.deletedSessionCount.toLocaleString()).replace("{bytes}",J(n.selectedPlace.lastRun.freedBytes))]}):e.jsx("span",{children:d("settings.projectChanges.cleanup.neverRun","Not run yet")})]}),x&&e.jsx("p",{className:a.projectChangesError,role:"alert",children:d("settings.projectChanges.cleanup.actionFailed","Could not update storage settings.")}),e.jsx(ce,{open:y!==null,title:d("settings.projectChanges.cleanup.confirm.title","Apply this limit and clean saved changes?"),message:T,cancelLabel:d("common.cancel","Cancel"),confirmLabel:d("settings.projectChanges.cleanup.confirm.apply","Apply and clean"),loading:v,onCancel:()=>!v&&H(null),onConfirm:()=>{y&&A(y.policy)}})]})}const xt={toolsActivity:null,toolStats:null,toolSessions:null,syncLog:null,playtestReports:null,projectChanges:null,connectionLog:null},ft={toolsActivity:null,toolStats:null,syncLog:null,playtestReports:null,projectChanges:null,connectionLog:null};function bt(t){var s;return t?t.pluginConnected?t.activePlaceId:t.lastActivePlaceId??((s=t.places[0])==null?void 0:s.placeId)??null:null}async function G(t){try{return await t}catch{return null}}function ee(t){return t?typeof t.total=="number"?t.total:Array.isArray(t.entries)?t.entries.length:null:null}function te(t,s,l,d){return s===null?t("settings.dataHistory.metric.unavailable","Unavailable"):`${s.toLocaleString()} ${t(l,d)}`}function Q(t,s,l){const d=l===null?t("settings.dataHistory.metric.sizeUnavailable","size unavailable"):Y(l);return`${s} · ${d}`}function Z(t,s){var d;const l=(d=t==null?void 0:t[s])==null?void 0:d.bytes;return typeof l=="number"&&Number.isFinite(l)?l:null}function vt(t,s){return s?[`${s.requestCount.toLocaleString()} ${t("uiStudio.storage.requestCount","change records")}`,`${s.snapshotCount.toLocaleString()} ${t("uiStudio.storage.snapshotCount","screenshots")}`,Y(s.totalBytes)].join(" · "):t("settings.dataHistory.metric.unavailable","Unavailable")}function St({tier:t}){const{t:s}=X(),[l,d]=r.useState(xt),[n,b]=r.useState(ft),[i,g]=r.useState(t==="basic"?ae:null),[p,_]=r.useState(null),[v,k]=r.useState(!0),[P,z]=r.useState(!0),[x,f]=r.useState(null),[D,w]=r.useState(()=>new Set),[y,H]=r.useState(null),[L,A]=r.useState(!1),[$,N]=r.useState(null),j=r.useCallback(async()=>{k(!0);const u=await G(me()),C=bt(u);_(C);const[K,q,h,M,O,ge,V]=await Promise.all([G(I.get("/api/dashboard/history",{limit:"1",offset:"0"})),G(I.get("/api/dashboard/tool-stats")),G(I.get("/sync/history",{limit:"1",offset:"0"})),G(I.get("/api/dashboard/playtest/history")),G(I.get("/api/dashboard/changelog",{limit:"1",offset:"0"})),G(I.get("/api/dashboard/connection-log")),G(I.get("/api/dashboard/storage-summary"))]),he=t==="basic"?ae:C===null?null:await G(pe(C));d({toolsActivity:ee(K),toolStats:(q==null?void 0:q.totalCalls)??null,toolSessions:(q==null?void 0:q.totalSessions)??null,syncLog:ee(h),playtestReports:ee(M),projectChanges:ee(O),connectionLog:ee(ge)}),b({toolsActivity:Z(V,"toolsActivity"),toolStats:Z(V,"toolStats"),syncLog:Z(V,"syncLog"),playtestReports:Z(V,"playtestReports"),projectChanges:Z(V,"projectChanges"),connectionLog:Z(V,"connectionLog")}),g(he),k(!1)},[t]);r.useEffect(()=>{j()},[j]);const E=r.useCallback(u=>{w(C=>{if(C.has(u))return C;const K=new Set(C);return K.add(u),K}),f(C=>C===u?null:u)},[]),S=r.useMemo(()=>[{key:"toolsActivity",title:s("settings.dataHistory.toolsActivity.title","Tool activity"),description:s("settings.dataHistory.toolsActivity.description","Saved tool runs shown on the Tools page."),metric:Q(s,te(s,l.toolsActivity,"settings.dataHistory.metric.records","records"),n.toolsActivity),metricTooltip:s("settings.dataHistory.toolsActivity.metric.tooltip","Number of saved tool runs and the disk space they use."),route:"/tools",clearEndpoint:"/api/dashboard/tools/history/clear"},{key:"toolStats",title:s("settings.dataHistory.toolStats.title","Tool usage statistics"),description:s("settings.dataHistory.toolStats.description","Aggregated tool counts and status totals."),metric:Q(s,l.toolStats===null?s("settings.dataHistory.metric.unavailable","Unavailable"):`${l.toolStats.toLocaleString()} ${s("settings.dataHistory.metric.runs","runs")} · ${(l.toolSessions??0).toLocaleString()} ${s("settings.dataHistory.metric.sessions","sessions")}`,n.toolStats),metricTooltip:s("settings.dataHistory.toolStats.metric.tooltip","Aggregated total runs and session counts."),route:"/tools",clearEndpoint:"/api/dashboard/tools/statistics/clear"},{key:"syncLog",title:s("settings.dataHistory.syncLog.title","Sync log"),description:s("settings.dataHistory.syncLog.description","Saved file sync events for the active place."),metric:Q(s,te(s,l.syncLog,"settings.dataHistory.metric.records","records"),n.syncLog),metricTooltip:s("settings.dataHistory.syncLog.metric.tooltip","Number of saved sync events and the disk space they use."),route:"/sync",clearEndpoint:"/api/dashboard/sync/history/clear"},{key:"playtestReports",title:s("settings.dataHistory.playtest.title","Playtest reports"),description:s("settings.dataHistory.playtest.description","Saved automated playtest reports and logs."),metric:Q(s,te(s,l.playtestReports,"settings.dataHistory.metric.reports","reports"),n.playtestReports),metricTooltip:s("settings.dataHistory.playtestReports.metric.tooltip","Number of saved playtest reports and the disk space they use."),route:"/playtest",clearEndpoint:"/api/dashboard/playtest/history/clear"},{key:"projectChanges",title:s("settings.dataHistory.projectChanges.title","Project change summary"),description:s("settings.dataHistory.projectChanges.description","Saved summaries of project changes."),metric:Q(s,te(s,l.projectChanges,"settings.dataHistory.metric.records","records"),n.projectChanges),metricTooltip:s("settings.dataHistory.projectChanges.metric.tooltip","Number of saved project change summaries and the disk space they use."),route:"/changelog",clearEndpoint:"/api/dashboard/changelog/clear"},{key:"connectionLog",title:s("settings.dataHistory.connectionLog.title","Connection log"),description:s("settings.dataHistory.connectionLog.description","Saved MCP and Studio connection events."),metric:Q(s,te(s,l.connectionLog,"settings.dataHistory.metric.records","records"),n.connectionLog),metricTooltip:s("settings.dataHistory.connectionLog.metric.tooltip","Number of saved connection events and the disk space they use."),route:"/connection",clearEndpoint:"/api/dashboard/connection-log/clear"}],[l,n,s]),B=async()=>{if(y){A(!0),N(null);try{if(y.kind==="uiStudio"){if(t!=="pro"||p===null)throw new Error("UI Studio place is unavailable");await se(p,{all:!0,alsoSnapshots:!0}),N(s("settings.dataHistory.uiStudio.clear.success","UI Studio saved data cleared."))}else{const u=y.row.key==="projectChanges";if(u&&p===null)throw new Error("Project changes place is unavailable");let C=y.row.clearEndpoint;u&&p!==null&&(C=`${C}?placeId=${encodeURIComponent(p)}`),await I.post(C),N(u?s("settings.dataHistory.projectChanges.clear.success","Project change summaries cleared."):s("settings.dataHistory.clear.success","Saved data cleared."))}H(null),await j()}catch{N(y.kind==="uiStudio"?s("settings.dataHistory.uiStudio.clear.failed","Failed to clear UI Studio saved data."):s("settings.dataHistory.clear.failed","Failed to clear saved data."))}finally{A(!1)}}},U=t==="pro"?p:0,F=t==="pro"&&p!==null,c=(y==null?void 0:y.kind)==="uiStudio",T=(y==null?void 0:y.kind)==="row"&&y.row.key==="projectChanges",W=s("settings.dataHistory.title","Data & History");return e.jsxs(e.Fragment,{children:[e.jsxs("section",{id:"data-history",className:a.card,children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(R,{label:s("settings.dataHistory.title","Data & History"),tooltip:s("settings.dataHistory.title.tooltip","Manage saved dashboard data in one place.")}),e.jsxs("div",{className:a.cardHeaderActions,children:[e.jsx(m,{text:s("settings.dataHistory.scope.tooltip","Clear actions apply to the current project and active place where applicable."),children:e.jsx("span",{className:a.headerBadge,children:v?s("common.loading","Loading"):s("settings.dataHistory.scope","Current project")})}),e.jsx(m,{text:s("settings.dataHistory.toggle.tooltip","Collapse or expand this section."),children:e.jsx("button",{className:a.collapseButton,type:"button","aria-expanded":P,"aria-controls":"settings-data-history-body","aria-label":P?s("settings.dataHistory.collapse","Collapse {title}").replace("{title}",W):s("settings.dataHistory.expand","Expand {title}").replace("{title}",W),onClick:()=>z(u=>!u),children:P?"▾":"▸"})})]})]}),P&&e.jsxs("div",{id:"settings-data-history-body",children:[e.jsx("p",{className:a.dataHistoryIntro,children:s("settings.dataHistory.intro","Review saved dashboard data, open the related page, or clear stored records from one place.")}),e.jsxs("div",{className:a.dataHistoryList,children:[S.map(u=>e.jsxs(r.Fragment,{children:[e.jsxs("div",{className:`${a.dataHistoryRow} ${u.key==="projectChanges"&&x==="projectChanges"?a.dataHistoryRowExpanded:""}`,children:[e.jsxs("div",{className:a.dataHistoryMain,children:[e.jsx("div",{className:a.dataHistoryTitle,children:u.title}),e.jsx("div",{className:a.dataHistoryDescription,children:u.description})]}),e.jsx(m,{text:u.metricTooltip,children:e.jsx("div",{className:a.dataHistoryMetric,children:u.metric})}),e.jsxs("div",{className:a.dataHistoryActions,children:[e.jsx(m,{text:s("settings.dataHistory.open.tooltip","Open the page that shows this item in detail."),children:e.jsx("a",{className:a.linkButton,href:`#${u.route}`,children:s("settings.dataHistory.open","Open")})}),u.key==="projectChanges"&&e.jsx(m,{text:s("settings.dataHistory.manageStorage.tooltip","Show or hide storage policy and cleanup controls."),children:e.jsxs("button",{className:a.manageStorageButton,type:"button","aria-expanded":x==="projectChanges","aria-controls":"settings-project-changes-storage","aria-label":s("settings.dataHistory.manageStorage.projectChanges.aria","Manage Project change summary storage"),onClick:()=>E("projectChanges"),children:[s("settings.dataHistory.manageStorage","Manage storage"),e.jsx("span",{"aria-hidden":"true",children:x==="projectChanges"?"▴":"▾"})]})}),e.jsx(m,{text:s("settings.dataHistory.clear.tooltip","Delete only the records saved for this item. Roblox Studio data is not changed."),children:e.jsx("button",{className:a.dangerButton,type:"button",disabled:u.key==="projectChanges"&&p===null,onClick:()=>H({kind:"row",row:u}),children:u.key==="projectChanges"?s("settings.dataHistory.clearAll","Clear all"):s("common.clear","Clear")})})]})]}),u.key==="projectChanges"&&D.has("projectChanges")&&e.jsx("div",{id:"settings-project-changes-storage",className:`${a.dataHistoryDetail} ${a.projectChangesDataHistoryDetail}`,hidden:x!=="projectChanges",children:e.jsx(jt,{placeId:p,onChanged:j})})]},u.key)),e.jsxs("div",{className:`${a.dataHistoryRow} ${x==="uiStudio"?a.dataHistoryRowExpanded:""}`,children:[e.jsxs("div",{className:a.dataHistoryMain,children:[e.jsx("div",{className:a.dataHistoryTitle,children:s("settings.dataHistory.uiStudio.title","UI Studio history and screenshots")}),e.jsx("div",{className:a.dataHistoryDescription,children:s("settings.dataHistory.uiStudio.description","Saved UI Studio change records, screenshots, and cleanup policy.")})]}),e.jsx(m,{text:s("settings.dataHistory.uiStudio.metric.tooltip","UI Studio change record and capture counts, plus total disk usage."),children:e.jsx("div",{className:a.dataHistoryMetric,children:vt(s,i)})}),e.jsxs("div",{className:a.dataHistoryActions,children:[e.jsx(m,{text:s("settings.dataHistory.open.tooltip","Open the page that shows this item in detail."),children:e.jsx("a",{className:a.linkButton,href:"#/ui-studio?tab=history",children:s("settings.dataHistory.open","Open")})}),e.jsx(m,{text:s("settings.dataHistory.manageStorage.tooltip","Show or hide storage policy and cleanup controls."),children:e.jsxs("button",{className:a.manageStorageButton,type:"button","aria-expanded":x==="uiStudio","aria-controls":"settings-ui-studio-storage","aria-label":s("settings.dataHistory.manageStorage.uiStudio.aria","Manage UI Studio history and screenshots storage"),onClick:()=>E("uiStudio"),children:[s("settings.dataHistory.manageStorage","Manage storage"),e.jsx("span",{"aria-hidden":"true",children:x==="uiStudio"?"▴":"▾"})]})}),e.jsx(m,{text:s("settings.dataHistory.clear.tooltip","Delete only the records saved for this item. Roblox Studio data is not changed."),children:e.jsx("button",{className:a.dangerButton,type:"button",disabled:!F,onClick:()=>H({kind:"uiStudio"}),children:s("settings.dataHistory.clearAll","Clear all")})})]})]}),D.has("uiStudio")&&e.jsx("div",{id:"settings-ui-studio-storage",className:`${a.dataHistoryDetail} ${a.uiStudioDataHistoryDetail}`,hidden:x!=="uiStudio",children:e.jsx(gt,{placeId:U,tier:t,onChanged:j,embedded:!0,...t==="basic"?{sampleUsage:ae,sampleRetention:_e}:{}})})]}),$&&e.jsx("p",{className:a.inlineStatus,children:$})]})]}),e.jsx(ce,{open:y!==null,title:c?s("settings.dataHistory.uiStudio.clear.title","Clear UI Studio saved data?"):T?s("settings.dataHistory.projectChanges.clear.title","Clear project change summaries?"):s("settings.dataHistory.clear.title","Clear saved data?"),message:c?s("settings.dataHistory.uiStudio.clear.message","This deletes saved UI Studio change records and screenshots only. Roblox Studio instances and project objects are not changed."):T?s("settings.dataHistory.projectChanges.clear.message","This deletes completed sessions and ended context history for the selected Place. Active work and Roblox Studio project data stay intact."):s("settings.dataHistory.clear.message","This deletes saved dashboard records only. Roblox Studio instances and project objects are not changed."),cancelLabel:s("common.cancel","Cancel"),confirmLabel:T||c?s("settings.dataHistory.clearAll","Clear all"):s("common.clear","Clear"),loading:L,onCancel:()=>!L&&H(null),onConfirm:()=>void B()})]})}const Ct=r.forwardRef(function({autoOpen:s,settingsFilePath:l,saving:d,targeted:n,updateDashboardPreferences:b},i){const{t:g}=X(),[p,_]=r.useState("idle"),v="settings-dashboard-auto-open-label",k=d||p==="saving",P=async x=>{_("saving");try{await b({autoOpen:x}),_("saved")}catch{_("error")}},z=p==="saving"?g("settings.dashboard.autoOpen.saving","Saving…"):p==="saved"?g("settings.dashboard.autoOpen.saved","Saved for the next server start."):p==="error"?g("settings.dashboard.autoOpen.error","Could not save. The previous setting was restored."):" ";return e.jsxs("div",{id:"settings-dashboard",ref:i,tabIndex:-1,"data-testid":"settings-dashboard-card",className:[a.card,a.dashboardCard,n?a.dashboardCardTarget:""].filter(Boolean).join(" "),children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(R,{label:g("settings.dashboard.title","Dashboard"),tooltip:g("settings.dashboard.title.tooltip","Choose how WEPPY Dashboard behaves when the MCP Server starts.")}),e.jsx(m,{text:g("settings.dashboard.autoOpen.nextStart","Applies the next time the MCP Server starts."),children:e.jsx("span",{className:a.headerBadge,children:g("settings.dashboard.nextStartBadge","Next Start")})})]}),e.jsxs("div",{className:a.dashboardSettingRow,children:[e.jsxs("div",{className:a.dashboardSettingCopy,children:[e.jsx("span",{id:v,className:a.dashboardSettingLabel,children:g("settings.dashboard.autoOpen.label","Open Dashboard when WEPPY starts")}),e.jsx("span",{className:a.dashboardSettingDescription,children:g("settings.dashboard.autoOpen.description","Automatically opens this Dashboard after the MCP Server starts.")}),e.jsx("span",{className:a.dashboardSettingMeta,children:g("settings.dashboard.autoOpen.nextStart","Applies the next time the MCP Server starts.")})]}),e.jsxs("label",{className:`${a.toggleSwitch} ${a.dashboardToggleTarget}`,children:[e.jsx("input",{className:a.toggleInput,type:"checkbox",role:"switch","aria-labelledby":v,checked:s,disabled:k,onChange:x=>{P(x.target.checked)}}),e.jsx("span",{className:a.toggleTrack,"aria-hidden":"true",children:e.jsx("span",{className:a.toggleThumb})})]})]}),e.jsxs("dl",{className:a.dashboardDetails,children:[e.jsxs("div",{className:a.dashboardDetailRow,children:[e.jsx("dt",{children:g("settings.dashboard.settingsFile.label","Settings file")}),e.jsx("dd",{children:e.jsx("code",{className:a.dashboardSettingsFilePath,children:l})})]}),e.jsxs("div",{className:a.dashboardDetailRow,children:[e.jsx("dt",{children:g("settings.dashboard.agentExample.label","Ask your Agent")}),e.jsx("dd",{className:a.dashboardAgentPrompt,children:g("settings.dashboard.agentExample.prompt","“Turn off Dashboard auto-open.”")})]})]}),e.jsx("p",{className:`${a.dashboardSaveFeedback} ${p==="error"?a.dashboardSaveFeedbackError:""}`,"aria-live":"polite",children:z})]})}),Nt={en:"English",ko:"한국어",es:"Español","pt-br":"Português (BR)",ja:"日本語",id:"Bahasa Indonesia",de:"Deutsch","fr-fr":"Français"};function _t(t){return t==="active"?a.statusActive:t==="grace"?a.statusGrace:t==="invalid"||t==="revoked"?a.statusError:a.statusInactive}function kt(t){return t?t.refreshBlockedReason==="missing_session_token"?!0:t.status==="active"||t.status==="grace"||t.status==="invalid"||t.status==="revoked"||t.status==="unknown":!1}function Pt(t,s){return t.refreshBlockedReason==="missing_session_token"?{label:s("settings.license.status.activationRequired","Activation Required"),tooltip:s("settings.license.status.activationRequired.tooltip","Manual license activation is required before WEPPY Dashboard can refresh this status."),detail:s("settings.license.detail.missingSessionToken","Refresh is blocked because the current session token is missing."),detailTone:a.licenseNoticeWarning}:t.statusDetail==="active_cancel_pending"?{label:s("settings.license.active","Active"),tooltip:s("settings.license.status.activeCancelPending.tooltip","Cancellation is pending, but Pro access remains active until the current billing period ends."),detail:s("settings.license.detail.cancelPending","Cancellation is scheduled. Pro access remains active until the current billing period ends."),detailTone:a.licenseNoticeInfo}:t.statusDetail==="grace_provider_unavailable"?{label:s("settings.license.status.grace","Grace"),tooltip:s("settings.license.status.grace.tooltip","Provider verification is temporarily unavailable, but Pro access remains active during the grace period."),detail:s("settings.license.detail.graceProviderUnavailable","Provider unavailable. Pro access remains active during grace mode."),detailTone:a.licenseNoticeInfo}:t.statusDetail==="grace_expired"||t.statusDetail==="grace_payment_failed"?{label:s("settings.license.status.grace","Grace"),tooltip:s("settings.license.status.graceBilling.tooltip","Pro access is still available during a billing-related grace period."),detail:s("settings.license.detail.graceBilling","Pro access remains available during a billing grace period."),detailTone:a.licenseNoticeInfo}:{label:s(`settings.license.${t.status}`,t.status),tooltip:s(`settings.license.${t.status}.tooltip`,"Current license activation state."),detail:t.refreshRequired?s("settings.license.detail.refreshRecommended","License verification should be refreshed soon."):null,detailTone:a.licenseNoticeMuted}}function zt(){const{t,selectedLocale:s,setLocale:l}=X(),{trackEvent:d}=le(),{search:n}=ye(),{settings:b,license:i,licenseControlsDisabled:g,licenseSubmitting:p,licenseMessage:_,activateLicense:v,refreshLicense:k,resetLicense:P,saving:z,updateDashboardPreferences:x,loading:f}=Se(),[D,w]=r.useState(""),y=i?Pt(i,t):null,H=kt(i),L=H&&(i==null?void 0:i.refreshBlockedReason)!=="missing_session_token",A=H,$=H?i==null?void 0:i.maskedKey:void 0,N=i!=null&&i.provider&&i.provider!=="auto"?i.provider:void 0,j=(i==null?void 0:i.tier)==="pro"?"pro":"basic",E=r.useRef(null),S=r.useRef(null),B=r.useRef(null),U=r.useMemo(()=>new URLSearchParams(n).get("section")==="license",[n]),F=r.useMemo(()=>new URLSearchParams(n).get("section")==="dashboard",[n]);return r.useEffect(()=>{var T;if(!U||f)return;const c=E.current;if((T=c==null?void 0:c.scrollIntoView)==null||T.call(c,{block:"start",behavior:"smooth"}),B.current&&!B.current.disabled){B.current.focus();return}c==null||c.focus()},[f,g,p,U]),r.useEffect(()=>{var T;if(!F||f)return;const c=S.current;(T=c==null?void 0:c.scrollIntoView)==null||T.call(c,{block:"start",behavior:"smooth"}),c==null||c.focus()},[f,F]),f?e.jsx("div",{className:a.page,children:e.jsx("div",{className:a.loading,children:t("common.loading")})}):e.jsxs("div",{className:a.page,children:[e.jsx(ve,{title:t("page.settings.title","Settings"),description:t("page.settings.description","Manage license, saved data, server environment, and language."),helpTopicId:"settings",helpState:{tier:j}}),e.jsxs("div",{id:"settings-license",ref:E,tabIndex:-1,"data-testid":"settings-license-card",className:[a.card,U?a.licenseCardTarget:"",(i==null?void 0:i.tier)==="pro"?a.licenseCardPro:""].filter(Boolean).join(" "),children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(R,{label:t("settings.license.title","License"),tooltip:t("settings.license.title.tooltip","Current license status and subscription tier.")}),e.jsx(m,{text:g?t("settings.license.disconnected.tooltip","Reconnect to the MCP server to manage license actions from WEPPY Dashboard."):t("settings.license.live.tooltip","License actions are sent to the MCP server immediately."),children:e.jsx("span",{className:`${a.headerBadge} ${g?"":a.headerBadgeLive}`,children:g?t("settings.license.disconnected","Disconnected"):t("settings.general.liveApply","Live Apply")})})]}),e.jsxs(e.Fragment,{children:[i?e.jsxs(e.Fragment,{children:[(()=>{const c=y;return e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:a.licenseGrid,children:[e.jsx("dt",{children:e.jsx(R,{label:t("settings.license.status","Status"),tooltip:t("settings.license.status.tooltip","Current license activation state.")})}),e.jsxs("dd",{children:[e.jsx("span",{className:`${a.statusDot} ${_t(i.status)}`}),e.jsx(m,{text:(c==null?void 0:c.tooltip)??t(`settings.license.${i.status}.tooltip`,"Current license activation state."),children:(c==null?void 0:c.label)??t(`settings.license.${i.status}`,i.status)})]}),e.jsx("dt",{children:e.jsx(R,{label:t("settings.license.tier","Tier"),tooltip:t("settings.license.tier.tooltip","Current subscription tier for available WEPPY Dashboard features.")})}),e.jsx("dd",{className:i.tier==="pro"?a.proBadge:"",children:e.jsx(m,{text:t(`tier.${i.tier}.tooltip`,"Available feature set for the connected license."),children:i.tier==="pro"?t("tier.pro","Pro"):t("tier.basic","Basic")})}),$&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(R,{label:t("settings.license.key","Key"),tooltip:t("settings.license.key.tooltip","Masked license key currently loaded by the server.")})}),e.jsx("dd",{children:e.jsx(m,{text:t("settings.license.keyValue.tooltip","Masked license key currently loaded by the server."),children:$})})]}),N&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(R,{label:t("settings.license.provider","Provider"),tooltip:t("settings.license.provider.tooltip","License provider used to validate this key.")})}),e.jsx("dd",{children:e.jsx(m,{text:t("settings.license.providerValue.tooltip","License provider used to validate this key."),children:N})})]})]}),(c==null?void 0:c.detail)&&e.jsx("p",{className:`${a.licenseNotice} ${c.detailTone}`,children:i.refreshBlockedReason==="missing_session_token"?t("settings.license.detail.manualActivation","Manual activation required to restore Pro access."):c.detail}),i.refreshBlockedReason==="missing_session_token"&&e.jsx("p",{className:`${a.licenseNotice} ${a.licenseNoticeMuted}`,children:c==null?void 0:c.detail})]})})(),i.tier==="basic"&&e.jsx(m,{text:t("tier.upgrade.tooltip","View Pro features and purchase options."),children:e.jsx("a",{className:a.upgradeLink,href:je.settingsLicense,target:"_blank",rel:"noopener noreferrer",onClick:()=>d("dashboard_click_event",{click_target:"upgrade_cta",placement:"settings_license",page:"settings"}),children:t("tier.upgrade","View Pro")})})]}):e.jsx("div",{className:a.loading,children:t("settings.license.unavailable")}),e.jsxs("div",{className:a.licenseControls,children:[e.jsxs("div",{className:a.licenseControlRow,children:[e.jsx(m,{text:t("settings.license.refresh.tooltip","Re-fetch the current state from the license server. Useful when a billing change hasn't appeared yet."),children:e.jsx("button",{type:"button",className:a.actionBtn,disabled:g||p||!L,onClick:()=>{k()},children:p?t("common.loading"):t("settings.license.refresh","Refresh License")})}),e.jsx(m,{text:t("settings.license.reset.tooltip","Remove the currently registered license key. Use this before activating with a different key."),children:e.jsx("button",{type:"button",className:a.actionBtn,disabled:g||p||!A,onClick:()=>{P()},children:p?t("common.loading"):t("settings.license.reset","Reset License")})})]}),e.jsxs("div",{className:a.licenseControlRow,children:[e.jsxs("label",{className:`${a.licenseField} ${a.licenseFieldGrow}`,children:[e.jsx("span",{className:a.controlLabel,children:e.jsx(R,{label:t("settings.license.keyInput","License Key"),tooltip:t("settings.license.key.tooltip","Masked license key currently loaded by the server.")})}),e.jsx("input",{ref:B,"aria-label":t("settings.license.keyInput","License Key"),className:a.textInput,type:"text",value:D,disabled:g||p,onChange:c=>w(c.target.value)})]}),e.jsx(m,{text:t("settings.license.activate.tooltip","Activate Pro features with the entered license key."),children:e.jsx("button",{type:"button",className:a.actionBtn,disabled:g||p,onClick:()=>{(async()=>await v(D)&&w(""))()},children:p?t("common.loading"):t("settings.license.activate","Activate License")})})]}),_&&e.jsx("p",{className:a.licenseMessage,children:_})]})]})]}),e.jsx(St,{tier:j}),b&&e.jsx(Ct,{ref:S,autoOpen:b.dashboard.autoOpen,settingsFilePath:b.dashboard.settingsFilePath,saving:z,targeted:F,updateDashboardPreferences:x}),e.jsxs("div",{className:a.card,children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(R,{label:t("settings.cold.title","Server Environment"),tooltip:t("settings.cold.title.tooltip","Read-only server environment values loaded at startup.")}),e.jsx(m,{text:t("settings.readOnly.tooltip","This section shows values that cannot be edited from WEPPY Dashboard."),children:e.jsx("span",{className:a.headerBadge,children:t("settings.readOnly","Read-only")})})]}),b?e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:a.coldGrid,children:[e.jsx("dt",{children:e.jsx(R,{label:"HTTP_PORT",tooltip:t("settings.cold.httpPort.tooltip","Port number used by the MCP WEPPY Dashboard HTTP server.")})}),e.jsx("dd",{children:b.cold.HTTP_PORT}),e.jsx("dt",{children:e.jsx(R,{label:"HTTP_HOST",tooltip:t("settings.cold.httpHost.tooltip","Host interface that the MCP WEPPY Dashboard HTTP server binds to.")})}),e.jsx("dd",{children:b.cold.HTTP_HOST})]}),e.jsx("p",{className:a.coldHint,children:t("settings.cold.hint","Set via environment variables to change these values.")})]}):e.jsx("div",{className:a.loading,children:t("settings.unavailable")})]}),e.jsxs("div",{className:a.card,children:[e.jsx("div",{className:a.cardHeader,children:e.jsx(R,{label:t("settings.language.title","Language"),tooltip:t("settings.language.title.tooltip","Choose how the WEPPY Dashboard interface text is localized.")})}),e.jsxs("div",{className:a.langRow,children:[e.jsx("label",{children:e.jsx(R,{label:t("settings.language.dashboard","WEPPY Dashboard Language"),tooltip:t("settings.language.dashboard.tooltip","Overrides the WEPPY Dashboard language or follows the system language when set to Auto.")})}),e.jsx(m,{text:t("settings.language.auto.tooltip","Follow the operating system's language. Falls back to English when not supported."),children:e.jsxs("select",{className:a.select,value:s,onChange:c=>l(c.target.value),children:[e.jsx("option",{value:xe,children:t("settings.language.auto","Auto")}),fe.map(c=>e.jsx("option",{value:c,children:Nt[c]??c},c))]})})]})]})]})}export{zt as Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as o,j as s}from"./index-
|
|
1
|
+
import{u as o,j as s}from"./index-DchewB5y.js";const e="_badge_1ucqq_2",c="_dot_1ucqq_12",a="_online_1ucqq_20",l="_offline_1ucqq_25",_="_idle_1ucqq_30",u="_syncing_1ucqq_34",d="_initializing_1ucqq_35",n={badge:e,dot:c,online:a,offline:l,idle:_,syncing:u,initializing:d},g={online:"status.online",offline:"status.offline",idle:"status.idle",syncing:"status.syncing",initializing:"status.initializing"};function f({status:i}){const{t}=o();return s.jsxs("span",{className:n.badge,children:[s.jsx("span",{className:`${n.dot} ${n[i]}`}),t(g[i])]})}export{f as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as c,b,k as C,D as F,u as O,j as e,a as U,d as V,e as W,i as q,T as G}from"./index-DchewB5y.js";import{B as R,a as P,P as z}from"./PageHeader-CYbeZdtL.js";import{I}from"./InfoLabel-BGeOUBIl.js";import{T as j}from"./TooltipText-sb-BSgUg.js";import{C as H}from"./ConfirmModal-Dz7mVKLZ.js";import{C as E}from"./CurrentPlaceScope-DhPCqaMU.js";import{S as Y}from"./StatusBadge-BmR5_DsF.js";import{T as K}from"./TierPromoPanel-C02VRkHz.js";import"./ConfirmModal.module-DJksQHBd.js";const J=5e3;function Q(){const[t,s]=c.useState(null),[l,a]=c.useState([]),[v,g]=c.useState(!0),[y,f]=c.useState(null),[_,w]=c.useState(null),[r,u]=c.useState({report:null,loading:!1,applying:!1,error:null}),D=c.useRef(null),N=c.useRef(null),x=c.useCallback(async()=>{var p;try{const[n,m]=await Promise.all([b.get("/sync/status"),b.get("/api/dashboard/place-summary")]);s(n);const T=(p=m.places)==null?void 0:p.find(M=>M.isActive);return f((T==null?void 0:T.placeDirName)??null),w(m.activePlaceId),m.activePlaceId}catch{return null}},[]),L=c.useCallback(async()=>{try{const p=await b.get("/sync/history",{limit:"30"});a(p.entries??[])}catch{a([])}},[]),o=c.useCallback(async p=>{if(p===null){u({report:null,loading:!1,applying:!1,error:null});return}u(n=>({...n,loading:!0,error:null}));try{const n=await b.get("/api/sync/migration",{placeId:String(p)});u(m=>({...m,report:n,loading:!1,error:n.status==="blocked"?"migration_blocked":null}))}catch(n){if(n instanceof C&&(n.status===404||n.status===503)){u(m=>({...m,report:null,loading:!1,error:null}));return}u(m=>({...m,loading:!1,error:"unknown"}))}},[]),h=c.useCallback(async()=>{const[p]=await Promise.all([x(),L()]);await o(p),g(!1)},[x,L,o]),k=c.useCallback(()=>{h()},[h]),A=c.useCallback(async()=>{await o(_)},[_,o]),d=c.useCallback(async()=>{const p=r.report;if(!(!p||p.status!=="ready"||r.applying)){u(n=>({...n,applying:!0,error:null}));try{const n=await b.post("/api/sync/migration",{placeId:p.placeId,fromVersion:2,previewFingerprint:p.previewFingerprint,apply:!0});u({report:n,loading:!1,applying:!1,error:null}),await x()}catch(n){if(n instanceof C&&n.status===409&&(n.error==="preview_stale"||n.error==="migration_blocked")){const m=n.error;await o(p.placeId),u(T=>({...T,applying:!1,error:m}));return}u(m=>({...m,applying:!1,error:"unknown"}))}}},[o,x,r.applying,r.report]),S=c.useCallback(async()=>{await b.post("/api/dashboard/sync/history/clear"),a([]),x()},[x]);return c.useEffect(()=>(h(),N.current=setInterval(h,J),()=>{N.current&&clearInterval(N.current)}),[h]),c.useEffect(()=>{const p=new F;D.current=p,p.connect();const n=p.on("sync",()=>{h()});return()=>{n(),p.disconnect(),D.current=null}},[h]),{status:t,history:l,loading:v,activePlaceDirName:y,migration:r,refresh:k,refreshMigration:A,applyMigration:d,clearHistory:S}}const X="_page_1rrgy_2",Z="_card_1rrgy_10",ee="_cardHeader_1rrgy_17",te="_clearButton_1rrgy_29",ie="_statusRow_1rrgy_53",oe="_metaItem_1rrgy_60",ae="_statusGrid_1rrgy_66",se="_migrationPanel_1rrgy_85",re="_migrationHeader_1rrgy_92",ne="_migrationTitle_1rrgy_99",ce="_migrationDescription_1rrgy_108",le="_migrationLedger_1rrgy_116",pe="_migrationLedgerItem_1rrgy_123",ye="_migrationLedgerBlocked_1rrgy_148",de="_migrationSection_1rrgy_152",ue="_migrationList_1rrgy_166",ge="_migrationRow_1rrgy_176",me="_migrationOperation_1rrgy_189",he="_migrationRowBody_1rrgy_194",fe="_migrationNotice_1rrgy_215",_e="_migrationActions_1rrgy_222",xe="_migrationButton_1rrgy_228",je="_policySummary_1rrgy_265",ve="_policySummaryItem_1rrgy_276",Se="_policyPrimaryValue_1rrgy_301",we="_policyReviewNotice_1rrgy_307",Ne="_policyApplySection_1rrgy_318",be="_policyApplyHeader_1rrgy_322",Ie="_policyApplyTitle_1rrgy_326",Le="_policyApplyDescription_1rrgy_334",Te="_policyInfoLabel_1rrgy_342",Re="_policySafetyRow_1rrgy_353",De="_policySafetyLabel_1rrgy_365",ke="_policySafetyBadge_1rrgy_371",Ae="_policyDisclosure_1rrgy_375",Ce="_policyDisclosureIcon_1rrgy_407",Pe="_policyDisclosureIconOpen_1rrgy_414",Ee="_policyScopeList_1rrgy_418",Be="_policyScopeRow_1rrgy_425",$e="_policyScopeName_1rrgy_439",Oe="_policyDirectionRail_1rrgy_451",He="_policyDirectionEndpoint_1rrgy_467",Me="_policyDirectionEndpointStudio_1rrgy_474",Fe="_policyDirectionArrow_1rrgy_478",Ue="_forwardBadge_1rrgy_521",Ve="_logContainer_1rrgy_536",We="_logEntry_1rrgy_543",qe="_logTime_1rrgy_555",Ge="_logType_1rrgy_561",ze="_logTypeWrite_1rrgy_570",Ye="_logTypeUpdate_1rrgy_574",Ke="_logTypeDelete_1rrgy_578",Je="_logTypeIdle_1rrgy_582",Qe="_logPath_1rrgy_586",Xe="_logEmpty_1rrgy_593",Ze="_overlay_1rrgy_600",et="_overlayTitle_1rrgy_610",tt="_overlayMessage_1rrgy_617",it="_checklist_1rrgy_623",ot="_checkItem_1rrgy_633",i={page:X,card:Z,cardHeader:ee,clearButton:te,statusRow:ie,metaItem:oe,statusGrid:ae,migrationPanel:se,migrationHeader:re,migrationTitle:ne,migrationDescription:ce,migrationLedger:le,migrationLedgerItem:pe,migrationLedgerBlocked:ye,migrationSection:de,migrationList:ue,migrationRow:ge,migrationOperation:me,migrationRowBody:he,migrationNotice:fe,migrationActions:_e,migrationButton:xe,policySummary:je,policySummaryItem:ve,policyPrimaryValue:Se,policyReviewNotice:we,policyApplySection:Ne,policyApplyHeader:be,policyApplyTitle:Ie,policyApplyDescription:Le,policyInfoLabel:Te,policySafetyRow:Re,policySafetyLabel:De,policySafetyBadge:ke,policyDisclosure:Ae,policyDisclosureIcon:Ce,policyDisclosureIconOpen:Pe,policyScopeList:Ee,policyScopeRow:Be,policyScopeName:$e,policyDirectionRail:Oe,policyDirectionEndpoint:He,policyDirectionEndpointStudio:Me,policyDirectionArrow:Fe,forwardBadge:Ue,logContainer:Ve,logEntry:We,logTime:qe,logType:Ge,logTypeWrite:ze,logTypeUpdate:Ye,logTypeDelete:Ke,logTypeIdle:Je,logPath:Qe,logEmpty:Xe,overlay:Ze,overlayTitle:et,overlayMessage:tt,checklist:it,checkItem:ot};function at(t){return t==="add"?"success":t==="delete"?"danger":"accent"}function st(t){return`sync.migration.reason.${t}`}function rt(t){return`sync.migration.reason.${t}`}function nt({migration:t,onRefresh:s,onApply:l}){const{t:a}=O(),[v,g]=c.useState(!1),y=t==null?void 0:t.report;if(!t||!y||y.status==="not_required")return null;const f=y.status==="blocked",_=y.status==="ready"&&!t.loading&&!t.applying,w=async()=>{await l(),g(!1)};return e.jsxs("section",{className:`${i.card} ${i.migrationPanel}`,"aria-labelledby":"sync-migration-title",children:[e.jsxs("div",{className:i.migrationHeader,children:[e.jsxs("div",{children:[e.jsx("h2",{id:"sync-migration-title",className:i.migrationTitle,children:a("sync.migration.title","Sync format update available")}),e.jsx("p",{className:i.migrationDescription,children:a("sync.migration.description","Review the metadata changes before updating this place from sync format v2 to v3.")})]}),e.jsx(R,{variant:f?"warning":"accent",children:f?a("sync.migration.status.blocked","Blocked"):a("sync.migration.status.ready","Ready to review")})]}),e.jsxs("div",{className:i.migrationLedger,"aria-label":a("sync.migration.preview","Review changes"),children:[e.jsxs("div",{className:i.migrationLedgerItem,children:[e.jsx("span",{children:a("sync.migration.summary.add","Add")}),e.jsx("strong",{children:y.summary.add})]}),e.jsxs("div",{className:i.migrationLedgerItem,children:[e.jsx("span",{children:a("sync.migration.summary.modify","Modify")}),e.jsx("strong",{children:y.summary.modify})]}),e.jsxs("div",{className:i.migrationLedgerItem,children:[e.jsx("span",{children:a("sync.migration.summary.delete","Delete")}),e.jsx("strong",{children:y.summary.delete})]}),e.jsxs("div",{className:`${i.migrationLedgerItem} ${f?i.migrationLedgerBlocked:""}`,children:[e.jsx("span",{children:a("sync.migration.summary.blocked","Blocked")}),e.jsx("strong",{children:y.summary.blocked})]})]}),y.changes.length>0&&e.jsxs("div",{className:i.migrationSection,children:[e.jsx("h3",{children:a("sync.migration.changes","Metadata changes")}),e.jsx("ul",{className:i.migrationList,children:y.changes.map(r=>e.jsxs("li",{className:i.migrationRow,children:[e.jsx(R,{variant:at(r.operation),className:i.migrationOperation,children:a(`sync.migration.operation.${r.operation}`,r.operation)}),e.jsxs("div",{className:i.migrationRowBody,children:[e.jsx("code",{children:r.path}),e.jsx("span",{children:a(st(r.reason),r.reason.replace(/_/g," "))})]})]},`${r.operation}:${r.path}`))})]}),y.blockers.length>0&&e.jsxs("div",{className:i.migrationSection,children:[e.jsx("h3",{children:a("sync.migration.blockers","Items to resolve")}),e.jsx("ul",{className:i.migrationList,children:y.blockers.map((r,u)=>e.jsxs("li",{className:i.migrationRow,children:[e.jsx(R,{variant:"warning",className:i.migrationOperation,children:a("sync.migration.summary.blocked","Blocked")}),e.jsxs("div",{className:i.migrationRowBody,children:[r.path&&e.jsx("code",{children:r.path}),e.jsx("span",{children:a(rt(r.reason),r.reason.replace(/_/g," "))})]})]},`${r.reason}:${r.path??u}`))})]}),e.jsxs("div",{className:i.migrationNotice,"aria-live":"polite",children:[(f||t.error==="migration_blocked")&&e.jsx("span",{children:a("sync.migration.blocked","Resolve sync conflicts before updating")}),t.error==="preview_stale"&&e.jsx("span",{children:a("sync.migration.stale","Preview changed. Review the latest diff.")}),t.error==="unknown"&&e.jsx("span",{children:a("sync.migration.error","Could not update the sync format. Try again.")})]}),e.jsxs("div",{className:i.migrationActions,children:[e.jsx(P,{variant:"secondary",className:i.migrationButton,disabled:t.loading||t.applying,onClick:()=>void s(),children:t.loading?a("sync.migration.refreshing","Refreshing…"):a("sync.migration.refresh","Refresh preview")}),e.jsx(P,{variant:"primary",className:i.migrationButton,disabled:!_,onClick:()=>g(!0),children:t.applying?a("sync.migration.applying","Applying…"):a("sync.migration.apply","Apply update")})]}),e.jsx(H,{open:v,title:a("sync.migration.confirm.title","Apply sync format update?"),message:a("sync.migration.confirm.message","Back up and update the listed sync metadata. Your Luau source files will not change."),cancelLabel:a("common.cancel","Cancel"),confirmLabel:a("sync.migration.apply","Apply update"),loading:t.applying,onCancel:()=>!t.applying&&g(!1),onConfirm:()=>void w()})]})}const ct=["scriptSource","properties","structure","serviceProperties"];function lt(t){const s=new Date(t);return`${String(s.getHours()).padStart(2,"0")}:${String(s.getMinutes()).padStart(2,"0")}`}function pt(t){switch(t){case"write":return i.logTypeWrite;case"update":return i.logTypeUpdate;case"delete":return i.logTypeDelete;default:return i.logTypeIdle}}function yt(t){switch(t){case"syncing":return"syncing";case"initializing":return"initializing";case"idle":return"idle";default:return"offline"}}function dt(t,s){const l={studio_first:"Studio First",bidirectional_review:"Bidirectional",local_code_studio_world:"Local Code, Studio World",custom:"Custom"};return t(`sync.policy.preset.${s}`,l[s])}function B(t,s){return s==="auto"?t("sync.policy.apply.auto","Auto apply"):t("sync.policy.apply.manual","Review first")}function ut(t,s){const l={forward:"Studio → Local",reverse:"Local → Studio",bidirectional:"Both ways"};return t(`sync.policy.direction.${s}`,l[s])}function gt(t){return{forward:"←",reverse:"→",bidirectional:"⇄"}[t]}function mt(t,s){const l={forward:"Studio changes are written to local files.",reverse:"Local file changes are applied to Studio.",bidirectional:"Changes can move from Studio to local files and from local files to Studio."};return t(`sync.policy.direction.${s}.tooltip`,l[s])}function $(...t){const s=t[0]??"",l=s.includes("\\")&&!s.includes("/")?"\\":"/";return t.filter(a=>a.length>0).map((a,v)=>v===0?a.replace(/[\\/]+$/g,""):a.replace(/^[\\/]+|[\\/]+$/g,"")).join(l)}function ht(t){const s=t.replace(/[\\/]+$/g,""),l=s.split(/[\\/]+/);return l[l.length-1]??s}function ft(t,s){const l=ht(t);return l==="explorer"?t:l===s?$(t,"explorer"):$(t,s,"explorer")}function _t(t,s){return s?t("sync.policy.safety.auto","Auto delete to Studio"):t("sync.policy.safety.review","Review before delete")}function xt(t,s){return s?t("sync.policy.safety.auto.tooltip","Deleting local files may automatically remove matching Studio instances. This is separate from UI Studio automatic cleanup."):t("sync.policy.safety.review.tooltip","Local file deletions wait for review before matching Studio instances are removed. This is separate from UI Studio automatic cleanup.")}function jt(t,s){switch(s){case"write":return t("sync.log.type.write","WRITE");case"update":return t("sync.log.type.update","UPDATE");case"delete":return t("sync.log.type.delete","DELETE");default:return t("sync.log.type.idle","IDLE")}}function vt(t,s){switch(s){case"write":return t("sync.log.type.write.tooltip","A new sync output was written to disk.");case"update":return t("sync.log.type.update.tooltip","An existing synced file or instance was updated.");case"delete":return t("sync.log.type.delete.tooltip","A synced file or instance was removed.");default:return t("sync.log.type.idle.tooltip","A sync event was recorded without a file mutation.")}}function kt(){const{t}=O(),{trackEvent:s}=U(),{level:l}=V(),{tier:a,loading:v}=W(),g=Q(),{show:y}=q(),[f,_]=c.useState(!1),[w,r]=c.useState(!1),[u,D]=c.useState(!1),N=!v&&a==="basic",x=l==="disconnected"||l==="serverOnly",L=e.jsx(z,{title:t("page.sync.title","Sync"),description:t("page.sync.description","Monitor Studio to local sync status, direction, apply mode, and recent sync logs."),helpTopicId:"sync",helpState:{connectionLevel:l,tier:a}});if(x)return e.jsxs("div",{className:i.page,children:[L,e.jsx(E,{surface:"sync"}),e.jsx("div",{className:i.card,children:e.jsxs("div",{className:i.overlay,children:[e.jsx("div",{className:i.overlayTitle,children:t("sync.overlay.title","Roblox Studio plugin required")}),e.jsx("div",{className:i.overlayMessage,children:t("sync.overlay.message","Sync status will be available once the Roblox Studio plugin connects.")}),e.jsxs("ul",{className:i.checklist,children:[e.jsx("li",{className:i.checkItem,children:t("sync.overlay.check1","Is Roblox Studio running?")}),e.jsx("li",{className:i.checkItem,children:t("sync.overlay.check2","Is the WEPPY Plugin installed?")})]})]})})]});const o=g.status,h=g.history,k=yt(o==null?void 0:o.state),A=async()=>{r(!0);try{await g.clearHistory(),y(t("toast.clearSuccess","Cleared successfully"),"success"),_(!1)}catch{y(t("toast.clearFailed","Failed to clear data"),"error")}finally{r(!1)}};return e.jsxs("div",{className:i.page,children:[L,e.jsx(E,{surface:"sync"}),e.jsxs("div",{className:i.card,children:[e.jsxs("div",{className:i.cardHeader,children:[e.jsx(j,{text:t("sync.status.title.tooltip","Current Studio and local file sync status for this place."),children:t("sync.status.title","Sync Status")}),N&&e.jsx(j,{text:t("sync.status.forwardOnly.tooltip","Basic tier allows Studio to local forward sync only."),children:e.jsx("span",{className:i.forwardBadge,children:t("sync.status.forwardOnly","Forward Only")})})]}),e.jsxs("div",{className:i.statusRow,children:[e.jsx(Y,{status:k}),(o==null?void 0:o.placeName)&&e.jsxs("span",{className:i.metaItem,children:[e.jsx(I,{label:t("sync.status.place","Place"),tooltip:t("sync.status.place.tooltip","Connected Roblox place name and place ID.")}),": ",o.placeName,o.placeId?` (${o.placeId})`:""]})]}),e.jsxs("dl",{className:i.statusGrid,children:[(o==null?void 0:o.syncRoot)&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(I,{label:t("sync.status.path","Place Root"),tooltip:t("sync.status.path.tooltip","Local filesystem root currently used for this place sync output.")})}),e.jsx("dd",{children:o.syncRoot})]}),g.activePlaceDirName&&(o==null?void 0:o.syncRoot)&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(I,{label:t("sync.status.placePath","Explorer Path"),tooltip:t("sync.status.placePath.tooltip","Explorer files path for the active place.")})}),e.jsx("dd",{children:ft(o.syncRoot,g.activePlaceDirName)})]}),(o==null?void 0:o.instanceCount)!=null&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(I,{label:t("sync.status.instances","Instances"),tooltip:t("sync.status.instances.tooltip","Total synced Roblox instances tracked in the local mirror.")})}),e.jsx("dd",{children:o.instanceCount})]}),(o==null?void 0:o.scriptCount)!=null&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(I,{label:t("sync.status.scripts","Scripts"),tooltip:t("sync.status.scripts.tooltip","Total synced script files currently indexed for this place.")})}),e.jsx("dd",{children:o.scriptCount})]}),(o==null?void 0:o.state)==="syncing"&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(I,{label:t("sync.status.state","State"),tooltip:t("sync.status.state.tooltip","Current runtime sync state reported by the server.")})}),e.jsx("dd",{children:t("status.syncing","Syncing")})]})]})]}),e.jsx(nt,{migration:g.migration,onRefresh:g.refreshMigration,onApply:g.applyMigration}),(o==null?void 0:o.policy)&&e.jsxs("div",{className:i.card,children:[e.jsx("div",{className:i.cardHeader,children:e.jsx(j,{text:t("sync.policy.title.tooltip","Effective Sync policy reported by the connected Studio plugin."),children:t("sync.policy.title","Sync Policy")})}),e.jsxs("dl",{className:i.policySummary,children:[e.jsxs("div",{className:i.policySummaryItem,children:[e.jsx("dt",{children:t("sync.policy.activation","Activation")}),e.jsx("dd",{children:e.jsx(R,{variant:o.syncEnabled?"success":"neutral",children:o.syncEnabled?t("sync.policy.activation.on","Sync ON"):t("sync.policy.activation.off","Sync OFF")})})]}),e.jsxs("div",{className:i.policySummaryItem,children:[e.jsx("dt",{children:t("sync.policy.preset","Workflow")}),e.jsx("dd",{className:i.policyPrimaryValue,children:dt(t,o.policy.preset)})]})]}),o.policyReviewRequired&&e.jsx("div",{className:i.policyReviewNotice,role:"status",children:t("sync.policy.reviewRequired","Review this policy in the Studio plugin before starting Sync.")}),e.jsxs("section",{className:i.policyApplySection,"aria-labelledby":"sync-policy-apply-title",children:[e.jsxs("div",{className:i.policyApplyHeader,children:[e.jsx("h3",{id:"sync-policy-apply-title",className:i.policyApplyTitle,children:t("sync.policy.apply.title","How local changes apply to Studio")}),e.jsx("p",{className:i.policyApplyDescription,children:t("sync.policy.apply.description","Shows whether changes made locally are reviewed first or applied to Studio automatically.")})]}),e.jsxs("dl",{className:i.policySummary,children:[e.jsxs("div",{className:i.policySummaryItem,children:[e.jsx("dt",{children:e.jsx(j,{text:t("sync.policy.apply.content.tooltip","Script Source, property, and Service property changes made locally. Instance creation, deletion, renaming, and moves are Structure changes."),children:e.jsx("span",{className:i.policyInfoLabel,tabIndex:0,children:t("sync.policy.apply.content","Content changes")})})}),e.jsx("dd",{children:B(t,o.policy.apply.contentChanges)})]}),e.jsxs("div",{className:i.policySummaryItem,children:[e.jsx("dt",{children:e.jsx(j,{text:t("sync.policy.apply.structure.tooltip","Instance creation, deletion, renaming, and moves made locally. Automatic local deletion additionally requires the separate delete option below."),children:e.jsx("span",{className:i.policyInfoLabel,tabIndex:0,children:t("sync.policy.apply.structure","Structure changes")})})}),e.jsx("dd",{children:B(t,o.policy.apply.structureChanges)})]})]}),e.jsxs("div",{className:i.policySafetyRow,children:[e.jsx("span",{className:i.policySafetyLabel,children:t("sync.policy.safety.localDeletes","Local delete → Studio instance removal")}),e.jsx(j,{text:xt(t,o.policy.autoApplyLocalDeletesToStudio),children:e.jsx(R,{variant:o.policy.autoApplyLocalDeletesToStudio?"warning":"neutral",className:i.policySafetyBadge,tabIndex:0,children:_t(t,o.policy.autoApplyLocalDeletesToStudio)})})]})]}),e.jsxs("button",{type:"button",className:i.policyDisclosure,"aria-expanded":u,"aria-controls":"sync-policy-scope-panel",onClick:()=>D(d=>!d),children:[e.jsx("span",{children:t("sync.policy.scope.disclosure","Scope directions")}),e.jsx("span",{"aria-hidden":"true",className:`${i.policyDisclosureIcon} ${u?i.policyDisclosureIconOpen:""}`,children:"⌄"})]}),u&&e.jsx("div",{id:"sync-policy-scope-panel",className:i.policyScopeList,children:ct.map(d=>{const S=o.policy.directions[d];return e.jsxs("div",{className:i.policyScopeRow,"data-testid":"sync-policy-scope-row",children:[e.jsx("span",{className:i.policyScopeName,children:t(`sync.policy.scope.${d}`,d)}),e.jsx(j,{text:mt(t,S),children:e.jsxs("span",{className:i.policyDirectionRail,"data-testid":"sync-policy-direction-rail",role:"img","aria-label":ut(t,S),tabIndex:0,children:[e.jsx("span",{className:i.policyDirectionEndpoint,children:t("sync.policy.endpoint.local","Local")}),e.jsx("span",{className:i.policyDirectionArrow,"aria-hidden":"true",children:gt(S)}),e.jsx("span",{className:`${i.policyDirectionEndpoint} ${i.policyDirectionEndpointStudio}`,children:t("sync.policy.endpoint.studio","Studio")})]})})]},d)})})]}),e.jsxs("div",{className:i.card,children:[e.jsxs("div",{className:i.cardHeader,children:[e.jsx("span",{children:t("sync.log.title","Sync Log")}),e.jsx("button",{className:i.clearButton,onClick:()=>{s("dashboard_click_event",{click_target:"sync_clear_log",page:"sync"}),_(!0)},children:t("common.clear","Clear")})]}),e.jsx("div",{className:i.logContainer,children:h.length===0?e.jsx("div",{className:i.logEmpty,children:t("sync.log.empty","No sync events yet")}):h.map((d,S)=>e.jsxs("div",{className:i.logEntry,children:[e.jsx("span",{className:i.logTime,children:lt(d.timestamp)}),e.jsx(j,{text:vt(t,d.type),children:e.jsx("span",{className:`${i.logType} ${pt(d.type)}`,children:jt(t,d.type)})}),e.jsxs("span",{className:i.logPath,children:[d.path,d.details?` — ${d.details}`:""]})]},S))})]}),N&&e.jsx(K,{title:t("sync.upgrade.title","Explore Full Sync with Pro"),description:t("tier.banner.save","Save AI tokens with Pro!"),benefits:[t("sync.upgrade.benefit1","Bidirectional sync — edit files, auto-apply to Studio"),t("sync.upgrade.benefit2","Reverse sync — push file changes back to Studio"),t("sync.upgrade.benefit3","Full sync history and detailed change log")],upgradeLabel:t("sync.upgrade.buy","View Pro"),upgradeHref:G.sync}),e.jsx(H,{open:f,title:t("sync.clear.title","Clear sync log?"),message:t("sync.clear.message","This permanently removes the stored sync log for the current place."),cancelLabel:t("common.cancel","Cancel"),confirmLabel:t("common.clear","Clear"),loading:w,onCancel:()=>!w&&_(!1),onConfirm:A})]})}export{kt as Component};
|