@weppy/roblox-mcp 2.17.18 → 2.17.20

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +11 -53
  2. package/LICENSE +42 -661
  3. package/README.md +5 -3
  4. package/THIRD_PARTY_NOTICES.txt +893 -0
  5. package/WEPPY_SDK_NOTICES.txt +49 -0
  6. package/dashboard/dist/THIRD_PARTY_NOTICES.txt +893 -0
  7. package/dashboard/dist/WEPPY_SDK_NOTICES.txt +49 -0
  8. package/dashboard/dist/assets/{AiPromptExamples-D2sS2PSu.js → AiPromptExamples-BLQgKnq1.js} +1 -1
  9. package/dashboard/dist/assets/{AssetsPage-B2qzqnkt.js → AssetsPage-CAyaS2og.js} +1 -1
  10. package/dashboard/dist/assets/ChangelogPage-3HMHHgjw.js +1 -0
  11. package/dashboard/dist/assets/{ConfirmModal-Bs6DRyDJ.js → ConfirmModal-DtH41UBe.js} +1 -1
  12. package/dashboard/dist/assets/{ConnectionPage-BlX_FCoU.js → ConnectionPage-DEKNG3dL.js} +1 -1
  13. package/dashboard/dist/assets/ContentScopedDialog-CO7HgbDh.js +1 -0
  14. package/dashboard/dist/assets/ContentScopedDialog-DCgVfmeB.css +1 -0
  15. package/dashboard/dist/assets/{ControlsPage-BJrBVm7J.js → ControlsPage-DALL8aLL.js} +1 -1
  16. package/dashboard/dist/assets/DialogHeader-DGlG63xP.js +1 -0
  17. package/dashboard/dist/assets/DialogHeader-b4oNn0lB.css +1 -0
  18. package/dashboard/dist/assets/{GameChangeDetail-BzNOM8NR.js → GameChangeDetail-DWovwQok.js} +1 -1
  19. package/dashboard/dist/assets/{InfoLabel-ZcP_cIQR.js → InfoLabel-CH5CpR7R.js} +1 -1
  20. package/dashboard/dist/assets/{OverviewPage-B9a6q4Ii.js → OverviewPage-C3wYZrG8.js} +1 -1
  21. package/dashboard/dist/assets/{PageHeader-DJRyLHjf.js → PageHeader-DfhSm4j-.js} +1 -1
  22. package/dashboard/dist/assets/{PlaceSelectOptions-CM4-kAp6.js → PlaceSelectOptions-CMtQalSy.js} +1 -1
  23. package/dashboard/dist/assets/{PlaytestAiPromptExamples-xPI9gFIa.js → PlaytestAiPromptExamples-DJFxefZu.js} +1 -1
  24. package/dashboard/dist/assets/PlaytestPage-CkC5T2D8.css +1 -0
  25. package/dashboard/dist/assets/{PlaytestPage-DAmSdhjK.js → PlaytestPage-DU9ZdQ21.js} +18 -18
  26. package/dashboard/dist/assets/SettingsPage-Dc-oWynP.css +1 -0
  27. package/dashboard/dist/assets/SettingsPage-OMdBse7E.js +23 -0
  28. package/dashboard/dist/assets/{SyncPage-Bdvcmu3d.js → SyncPage-D_yCFS3B.js} +1 -1
  29. package/dashboard/dist/assets/Tabs-D9FkOjPv.js +1 -0
  30. package/dashboard/dist/assets/{Tabs-Ci4-OJm-.css → Tabs-DOQZ3J5t.css} +1 -1
  31. package/dashboard/dist/assets/{TierPromoPanel-BKRqAd84.js → TierPromoPanel-e1H_6c6Z.js} +1 -1
  32. package/dashboard/dist/assets/ToolsPage-CKfktddT.js +1 -0
  33. package/dashboard/dist/assets/{TooltipText-3t8YedaH.js → TooltipText-DSn3s49K.js} +1 -1
  34. package/dashboard/dist/assets/{UiStudioPage-BDsl75Db.js → UiStudioPage-DD_9F7Lm.js} +2 -2
  35. package/dashboard/dist/assets/WhatsNewPage-BmnQR1Zm.js +1 -0
  36. package/dashboard/dist/assets/{bot-CtZWcMz-.js → bot-BQBLv2uC.js} +1 -1
  37. package/dashboard/dist/assets/{check-Baab5uf0.js → check-uNk3Ma2d.js} +1 -1
  38. package/dashboard/dist/assets/{copy-C3LkcanH.js → copy-D8MSHyQE.js} +1 -1
  39. package/dashboard/dist/assets/{index-DOEmzpkJ.js → index-CJYQedSN.js} +158 -46
  40. package/dashboard/dist/assets/{rotate-ccw-Qw8waJGt.js → rotate-ccw-Dwy8_z07.js} +2 -2
  41. package/dashboard/dist/assets/{sample-requests-D-1qxdk0.js → sample-requests-x7wuDmFr.js} +1 -1
  42. package/dashboard/dist/assets/{trash-2-BEuYnkkE.js → trash-2-Cw-jysM1.js} +1 -1
  43. package/dashboard/dist/assets/{useLiveUptime-DqFiew1s.js → useLiveUptime-BEJbC8rw.js} +1 -1
  44. package/dashboard/dist/assets/useSettings--lAkfuTh.css +1 -0
  45. package/dashboard/dist/assets/useSettings-PZ2Tx5jE.js +2 -0
  46. package/dashboard/dist/index.html +1 -1
  47. package/dist/index.js +141 -141
  48. package/package.json +2 -2
  49. package/roblox-plugin/WeppyRobloxMCP.rbxm +0 -0
  50. package/dashboard/dist/assets/ChangelogPage-C5ja0j4I.js +0 -1
  51. package/dashboard/dist/assets/PlaytestPage-BkuJr8Va.css +0 -1
  52. package/dashboard/dist/assets/SettingsPage-BO1WqaOl.css +0 -1
  53. package/dashboard/dist/assets/SettingsPage-vFF8B8_s.js +0 -1
  54. package/dashboard/dist/assets/Tabs-CKXzr1J0.js +0 -1
  55. package/dashboard/dist/assets/ToolsPage-CIujiMTB.js +0 -1
  56. package/dashboard/dist/assets/WhatsNewPage-C5UL-0oc.js +0 -1
  57. package/dashboard/dist/assets/useSettings-B4O8NGPH.js +0 -1
  58. package/dashboard/dist/assets/useSettings-I6BaXsZq.css +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weppy/roblox-mcp",
3
- "version": "2.17.18",
3
+ "version": "2.17.20",
4
4
  "description": "MCP (Model Context Protocol) server for Roblox Studio integration - enables AI coding agents to interact with Roblox Studio in real-time",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "vscode"
39
39
  ],
40
40
  "author": "",
41
- "license": "AGPL-3.0",
41
+ "license": "SEE LICENSE IN LICENSE",
42
42
  "engines": {
43
43
  "node": ">=22.0.0"
44
44
  },
Binary file
@@ -1 +0,0 @@
1
- import{r as o,b as P,D as Q,u as q,j as e,X as W,a as X,x as Y,c as J,e as ee,k as te,T as ae}from"./index-DOEmzpkJ.js";import{B as ne,P as se}from"./PageHeader-DJRyLHjf.js";import{C as ie}from"./ConfirmModal-Bs6DRyDJ.js";import{C as ce,a as oe,T as re}from"./Tabs-CKXzr1J0.js";import{T as O}from"./TooltipText-3t8YedaH.js";import{I as le}from"./InfoLabel-ZcP_cIQR.js";import{G as de}from"./GameChangeDetail-BzNOM8NR.js";import"./ConfirmModal.module-DJksQHBd.js";import"./PlaceSelectOptions-CM4-kAp6.js";const ge=10;function me(t,i){return typeof i!="number"?t:`${t}?placeId=${encodeURIComponent(String(i))}`}function he(t){const i=(t==null?void 0:t.placeId)??null,[m,c]=o.useState([]),[n,s]=o.useState(0),[u,p]=o.useState(!1),[r,T]=o.useState(!0),[C,E]=o.useState(0),[f,z]=o.useState("all"),B=o.useRef(null),S=o.useCallback(async(y,v)=>{T(!0);try{const k={limit:String(ge),offset:String(y)};v!=="all"&&(k.status=v),typeof i=="number"&&(k.placeId=String(i));const w=await P.get("/api/dashboard/changelog",k);c(w.entries),s(w.total),p(w.hasMore)}catch{c([]),s(0),p(!1)}finally{T(!1)}},[i]),I=o.useCallback(()=>{S(C,f)},[S,C,f]),$=o.useCallback(async()=>{await P.post(me("/api/dashboard/changelog/clear",i)),c([]),s(0),p(!1)},[i]);return o.useEffect(()=>{S(C,f)},[S,C,f]),o.useEffect(()=>{const y=new Q;B.current=y,y.connect();const v=y.on("command",()=>{S(C,f)});return()=>{v(),y.disconnect(),B.current=null}},[S,C,f]),{entries:m,total:n,hasMore:u,loading:r,offset:C,statusFilter:f,setOffset:E,setStatusFilter:z,refresh:I,clear:$}}const ue="_card_qniob_2",pe="_header_qniob_27",fe="_statusBadge_qniob_34",ye="_statusDot_qniob_45",xe="_active_qniob_51",_e="_completed_qniob_60",be="_timeRange_qniob_68",Ce="_summaryList_qniob_75",Se="_summaryItem_qniob_81",ve="_summaryIcon_qniob_90",je="_summaryText_qniob_96",Ne="_progressBar_qniob_101",Te="_progressFill_qniob_110",Ie="_emptySummary_qniob_124",ke="_contextBlock_qniob_132",we="_contextLabel_qniob_141",$e="_contextValue_qniob_149",h={card:ue,header:pe,statusBadge:fe,statusDot:ye,active:xe,completed:_e,timeRange:be,summaryList:Ce,summaryItem:Se,summaryIcon:ve,summaryText:je,progressBar:Ne,progressFill:Te,emptySummary:Ie,contextBlock:ke,contextLabel:we,contextValue:$e};function H(t){if(!t)return"--:--";const i=new Date(t);return`${String(i.getHours()).padStart(2,"0")}:${String(i.getMinutes()).padStart(2,"0")}`}function Be({entry:t,onClick:i,buttonRef:m}){var v,k,w,L,A,R,d,_,D,M;const{t:c}=q(),n=t.changeSummary,s=t.status==="active",u=t.isBootstrapOnly===!0,p=[],r=n.scriptsModified+n.scriptsCreated;if(r>0){const g=[];n.scriptsModified>0&&g.push(`${n.scriptsModified} ${c("changelog.card.modified","modified")}`),n.scriptsCreated>0&&g.push(`${n.scriptsCreated} ${c("changelog.card.created","created")}`);const x=`${r} ${c("changelog.card.scripts","scripts")} ${g.join(", ")}`;p.push({icon:"📝",text:x,tooltip:c("changelog.card.scripts.tooltip","Script changes made in this session.")})}const T=n.instancesCreated+n.instancesDeleted+n.instancesMoved;if(T>0){const g=[];n.instancesCreated>0&&g.push(`${n.instancesCreated} ${c("changelog.card.created","created")}`),n.instancesDeleted>0&&g.push(`${n.instancesDeleted} ${c("changelog.card.deleted","deleted")}`),n.instancesMoved>0&&g.push(`${n.instancesMoved} ${c("changelog.card.moved","moved")}`);const x=`${T} ${c("changelog.card.instances","instances")} ${g.join(", ")}`;p.push({icon:"🧱",text:x,tooltip:c("changelog.card.instances.tooltip","Instance create, delete, move, or clone changes in this session.")})}n.propertiesChanged>0&&p.push({icon:"🎨",text:`${n.propertiesChanged} ${c("changelog.card.propertiesChanged","properties changed")}`,tooltip:c("changelog.card.propertiesChanged.tooltip","Property value changes recorded for this session.")}),n.lightingChanged&&p.push({icon:"🌅",text:c("changelog.card.lightingConfigured","Lighting configured"),tooltip:c("changelog.card.lightingConfigured.tooltip","Lighting or atmosphere settings changed in this session.")}),n.terrainChanged&&p.push({icon:"⛰️",text:c("changelog.card.terrainConfigured","Terrain configured"),tooltip:c("changelog.card.terrainConfigured.tooltip","Terrain data or terrain settings changed in this session.")}),n.assetsInserted>0&&p.push({icon:"📦",text:`${n.assetsInserted} ${c("changelog.card.assetsInserted","assets inserted")}`,tooltip:c("changelog.card.assetsInserted.tooltip","Assets inserted into the place during this session.")});const C=H(t.startTime),E=s?c("changelog.card.inProgress","in progress"):t.endTime?H(t.endTime):"--:--",f=u?c("changelog.card.bootstrapStatus","Bootstrap"):s?c("changelog.card.active","Active"):c("changelog.card.completed","Completed"),z=u?c("changelog.card.bootstrapStatus.tooltip","This session only contains the initial sync bootstrap snapshot."):s?c("changelog.card.active.tooltip","This session is still receiving new game changes."):c("changelog.card.completed.tooltip","This session has ended and no more changes are expected."),B=u?c("changelog.card.bootstrapSummary","Initial sync snapshot"):c("changelog.card.noChanges","No changes yet"),S=u?c("changelog.card.bootstrapSummary.tooltip","Initial file sync writes are collapsed into a single bootstrap snapshot row."):c("changelog.card.noChanges.tooltip","No game changes have been extracted for this session yet."),I=(k=(v=t.contextSummary)==null?void 0:v.intent)==null?void 0:k.trim(),$=((R=(A=(L=(w=t.contextSummary)==null?void 0:w.affectedAreas)==null?void 0:L[0])==null?void 0:A.label)==null?void 0:R.trim())||((_=(d=t.contextSummary)==null?void 0:d.testScenario)==null?void 0:_.trim()),y=(M=(D=t.verificationSummary)==null?void 0:D.label)==null?void 0:M.trim();return e.jsxs("button",{ref:m,className:h.card,type:"button",onClick:g=>i(g.currentTarget),children:[e.jsxs("span",{className:h.header,children:[e.jsx(O,{text:z,children:e.jsxs("span",{className:`${h.statusBadge} ${s?h.active:h.completed}`,children:[e.jsx("span",{className:h.statusDot}),f]})}),e.jsxs("span",{className:h.timeRange,children:[C,"~",E]})]}),e.jsx("span",{className:h.summaryList,children:p.length>0?p.map((g,x)=>e.jsxs("span",{className:h.summaryItem,children:[e.jsx("span",{className:h.summaryIcon,children:g.icon}),e.jsx(O,{text:g.tooltip,children:e.jsx("span",{className:h.summaryText,children:g.text})})]},x)):e.jsx(O,{text:S,children:e.jsx("span",{className:h.emptySummary,style:{display:"block"},children:B})})}),I&&e.jsxs("span",{className:h.contextBlock,children:[e.jsx("span",{className:h.contextLabel,children:c("changelog.card.sessionIntent","Session intent")}),e.jsx("span",{className:h.contextValue,children:I})]}),!I&&$&&e.jsxs("span",{className:h.contextBlock,children:[e.jsx("span",{className:h.contextLabel,children:c("changelog.card.representativeArea","Representative area")}),e.jsx("span",{className:h.contextValue,children:$})]}),y&&e.jsxs("span",{className:h.contextBlock,children:[e.jsx("span",{className:h.contextLabel,children:c("changelog.card.verification","Verification")}),e.jsx("span",{className:h.contextValue,children:y})]}),s&&e.jsx("span",{className:h.progressBar,children:e.jsx("span",{className:h.progressFill})})]})}function ze(t){const i={scriptsModified:0,scriptsCreated:0,instancesCreated:0,instancesDeleted:0,instancesMoved:0,propertiesChanged:0,lightingChanged:!1,terrainChanged:!1,assetsInserted:0};for(const m of t)switch(m.category){case"script":m.changeType==="create"?i.scriptsCreated++:i.scriptsModified++;break;case"instance":m.changeType==="create"?i.instancesCreated++:m.changeType==="delete"?i.instancesDeleted++:m.changeType==="move"&&i.instancesMoved++;break;case"property":i.propertiesChanged++;break;case"lighting":i.lightingChanged=!0;break;case"terrain":i.terrainChanged=!0;break;case"asset":i.assetsInserted++;break}return i}function Ee(t){if(typeof t=="number")return{placeId:String(t)}}function Le(t,i){const[m,c]=o.useState(""),[n,s]=o.useState(""),[u,p]=o.useState(),[r,T]=o.useState("completed"),[C,E]=o.useState([]),[f,z]=o.useState([]),[B,S]=o.useState([]),[I,$]=o.useState(),[y,v]=o.useState(),[k,w]=o.useState(),[L,A]=o.useState({scriptsModified:0,scriptsCreated:0,instancesCreated:0,instancesDeleted:0,instancesMoved:0,propertiesChanged:0,lightingChanged:!1,terrainChanged:!1,assetsInserted:0}),[R,d]=o.useState(!0),[_,D]=o.useState(null),M=o.useCallback(async()=>{if(t){d(!0),D(null);try{const g=Ee(i),[x,G]=await Promise.all([g?P.get(`/api/dashboard/changelog/${t}`,g):P.get(`/api/dashboard/changelog/${t}`),g?P.get(`/api/dashboard/changelog/${t}/changes`,g):P.get(`/api/dashboard/changelog/${t}/changes`)]);c(x.entryId),s(x.startTime),p(x.endTime),T(x.status),E(x.entries),z(x.failures),$(x.contextSummary),v(x.replayMetadata),w(x.verificationSummary),S(G.changes),A(ze(G.changes))}catch(g){D(g instanceof Error?g.message:"Failed to load changelog detail")}finally{d(!1)}}},[t,i]);return o.useEffect(()=>{M()},[M]),{entryId:m,startTime:n,endTime:u,status:r,entries:C,failures:f,changes:B,changeSummary:L,contextSummary:I,replayMetadata:y,verificationSummary:k,loading:R,error:_,refresh:M}}const Ae={script:"📝",instance:"🧱",property:"🎨",lighting:"🌅",terrain:"⛰️",asset:"📦"};function Re(t){return Ae[t]??"❓"}const Me="_dialogContent_197zf_2",Oe="_dialogHeader_197zf_10",De="_dialogTitleGroup_197zf_20",Fe="_dialogTitle_197zf_20",Pe="_dialogMeta_197zf_36",Ge="_dialogClose_197zf_43",Ke="_dialogBody_197zf_68",Ve="_page_197zf_77",qe="_headerTime_197zf_84",Ue="_dialogActions_197zf_90",He="_retryButton_197zf_96",Ze="_statusActive_197zf_129",Qe="_statusCompleted_197zf_134",We="_section_197zf_139",Xe="_sectionTitle_197zf_146",Ye="_summaryGrid_197zf_159",Je="_summaryCard_197zf_165",et="_summaryCardActive_197zf_188",tt="_summaryIcon_197zf_193",at="_summaryCount_197zf_199",nt="_summaryLabel_197zf_207",st="_contextGrid_197zf_217",it="_contextRow_197zf_223",ct="_contextKey_197zf_229",ot="_contextValue_197zf_237",rt="_timelineFilter_197zf_245",lt="_filterLabel_197zf_253",dt="_filterSelect_197zf_259",gt="_ownershipToggle_197zf_269",mt="_timeline_197zf_245",ht="_timelineEntry_197zf_297",ut="_timelineTime_197zf_326",pt="_timelineIcon_197zf_334",ft="_timelineBody_197zf_339",yt="_timelineSummary_197zf_345",xt="_timelineTarget_197zf_353",_t="_timelineConfidence_197zf_361",bt="_ownershipBadge_197zf_370",Ct="_confidenceExact_197zf_378",St="_confidencePartial_197zf_383",vt="_confidenceAfterOnly_197zf_388",jt="_confidenceIntentOnly_197zf_393",Nt="_confidenceUnknown_197zf_398",Tt="_timelineExpanded_197zf_404",It="_empty_197zf_413",kt="_loading_197zf_422",wt="_error_197zf_431",a={dialogContent:Me,dialogHeader:Oe,dialogTitleGroup:De,dialogTitle:Fe,dialogMeta:Pe,dialogClose:Ge,dialogBody:Ke,page:Ve,headerTime:qe,dialogActions:Ue,retryButton:He,statusActive:Ze,statusCompleted:Qe,section:We,sectionTitle:Xe,summaryGrid:Ye,summaryCard:Je,summaryCardActive:et,summaryIcon:tt,summaryCount:at,summaryLabel:nt,contextGrid:st,contextRow:it,contextKey:ct,contextValue:ot,timelineFilter:rt,filterLabel:lt,filterSelect:dt,ownershipToggle:gt,timeline:mt,timelineEntry:ht,timelineTime:ut,timelineIcon:pt,timelineBody:ft,timelineSummary:yt,timelineTarget:xt,timelineConfidence:_t,ownershipBadge:bt,confidenceExact:Ct,confidencePartial:St,confidenceAfterOnly:vt,confidenceIntentOnly:jt,confidenceUnknown:Nt,timelineExpanded:Tt,empty:It,loading:kt,error:wt},Z=[{key:"script",icon:"📝",labelKey:"changelog.category.script"},{key:"instance",icon:"🧱",labelKey:"changelog.category.instance"},{key:"property",icon:"🎨",labelKey:"changelog.category.property"},{key:"lighting",icon:"🌅",labelKey:"changelog.category.lighting"},{key:"terrain",icon:"⛰️",labelKey:"changelog.category.terrain"},{key:"asset",icon:"📦",labelKey:"changelog.category.asset"}];function V(t){if(!t)return"--:--";const i=new Date(t);return`${String(i.getHours()).padStart(2,"0")}:${String(i.getMinutes()).padStart(2,"0")}`}function $t(t){if(!t)return"--:--:--";const i=new Date(t);return`${String(i.getHours()).padStart(2,"0")}:${String(i.getMinutes()).padStart(2,"0")}:${String(i.getSeconds()).padStart(2,"0")}`}function Bt(t,i){if(!t||!i)return"";const m=new Date(i).getTime()-new Date(t).getTime();return m<0?"":`${Math.round(m/6e4)}min`}function zt(t){switch(t){case"exact":return a.confidenceExact;case"partial":return a.confidencePartial;case"after-only":return a.confidenceAfterOnly;case"intent-only":return a.confidenceIntentOnly;default:return a.confidenceUnknown}}function Et(t,i){switch(i){case"exact":return t("changelog.detail.confidence.exact","Exact");case"partial":return t("changelog.detail.confidence.partial","Partial");case"after-only":return t("changelog.detail.confidence.afterOnly","After only");case"intent-only":return t("changelog.detail.confidence.intentOnly","Intent only");default:return t("changelog.detail.confidence.unknown","Unknown")}}function Lt(t,i){switch(i){case"exact":return t("changelog.detail.confidence.exact.tooltip","Both the before and after state were confirmed for this change.");case"partial":return t("changelog.detail.confidence.partial.tooltip","Only part of the before and after state could be confirmed for this change.");case"after-only":return t("changelog.detail.confidence.afterOnly.tooltip","Only the resulting state after the change could be confirmed.");case"intent-only":return t("changelog.detail.confidence.intentOnly.tooltip","Only the requested action was recorded, not the resulting state.");default:return t("changelog.detail.confidence.unknown.tooltip","This change could not be confidently classified from the available data.")}}function At(t,i){switch(i){case"user_source":return t("changelog.ownership.userSource","User source");case"canonical_mirror":return t("changelog.ownership.canonicalMirror","Mirror metadata");case"generated":return t("changelog.ownership.generated","Generated");default:return null}}function Rt({entryId:t,placeId:i,onClose:m,returnFocusTo:c=null}){var v,k,w,L,A,R,d,_,D,M,g,x,G,U;const{t:n}=q(),s=Le(t,i),[u,p]=o.useState("all"),[r,T]=o.useState(!0),[C,E]=o.useState(null),f=o.useMemo(()=>{const l=r?s.changes:s.changes.filter(b=>b.artifactOwnership!=="generated");return[...u==="all"?l:l.filter(b=>b.category===u)].reverse()},[s.changes,u,r]),z=s.changes.some(l=>l.artifactOwnership==="generated"),B=Bt(s.startTime,s.endTime),S=s.endTime?`${V(s.startTime)} → ${V(s.endTime)} (${B})`:`${V(s.startTime)} → ${n("changelog.card.inProgress","in progress")}`,I=!!((v=s.contextSummary)!=null&&v.intent||(k=s.contextSummary)!=null&&k.testScenario||(w=s.contextSummary)!=null&&w.expectedBehavior||(L=s.contextSummary)!=null&&L.observedBehavior),$=!!((A=s.verificationSummary)!=null&&A.label||(R=s.verificationSummary)!=null&&R.status||(d=s.verificationSummary)!=null&&d.testTimestamp),y=n("changelog.detail.dialogLabel","Changelog detail");return e.jsx(ce,{open:!0,ariaLabel:y,onClose:m,returnFocusTo:c,testId:"changelog-detail-backdrop",children:e.jsxs("div",{className:a.dialogContent,children:[e.jsxs("div",{className:a.dialogHeader,children:[e.jsxs("div",{className:a.dialogTitleGroup,children:[e.jsx("h2",{className:a.dialogTitle,children:y}),!s.loading&&!s.error&&e.jsxs("div",{className:a.dialogMeta,children:[e.jsx("span",{className:a.headerTime,children:S}),e.jsx(O,{text:s.status==="active"?n("changelog.card.active.tooltip","This session is still receiving new game changes."):n("changelog.card.completed.tooltip","This session has ended and no more changes are expected."),children:e.jsx("span",{className:s.status==="active"?a.statusActive:a.statusCompleted,children:s.status==="active"?n("changelog.card.active","Active"):n("changelog.card.completed","Completed")})})]})]}),e.jsx("button",{className:a.dialogClose,type:"button","aria-label":n("common.close","Close"),onClick:m,children:e.jsx(W,{size:18,"aria-hidden":"true"})})]}),e.jsxs("div",{className:a.dialogBody,children:[s.loading&&e.jsx("div",{className:a.loading,children:n("common.loading","Loading...")}),s.error&&e.jsxs("div",{className:a.error,children:[e.jsx("span",{children:s.error}),e.jsxs("div",{className:a.dialogActions,children:[e.jsx("button",{className:a.retryButton,type:"button",onClick:s.refresh,children:n("common.retry","Retry")}),e.jsx("button",{className:a.retryButton,type:"button",onClick:m,children:n("common.close","Close")})]})]}),!s.loading&&!s.error&&e.jsxs("div",{className:a.page,children:[e.jsxs("div",{className:a.section,children:[e.jsx("div",{className:a.sectionTitle,children:e.jsx(O,{text:n("changelog.detail.changeSummary.tooltip","Counts of extracted game changes grouped by category for this session."),children:e.jsx("span",{children:n("changelog.detail.changeSummary","Change Summary")})})}),e.jsx("div",{className:a.summaryGrid,children:Z.map(l=>{const j=s.changeSummary;let b;switch(l.key){case"script":b=j.scriptsModified+j.scriptsCreated;break;case"instance":b=j.instancesCreated+j.instancesDeleted+j.instancesMoved;break;case"property":b=j.propertiesChanged;break;case"lighting":b=j.lightingChanged?1:0;break;case"terrain":b=j.terrainChanged?1:0;break;case"asset":b=j.assetsInserted;break;default:b=0}const F=u===l.key;return e.jsxs("button",{type:"button",className:`${a.summaryCard} ${F?a.summaryCardActive:""}`,"aria-label":`${n(l.labelKey,l.key)}: ${b}`,"aria-pressed":F,onClick:()=>p(F?"all":l.key),children:[e.jsx("span",{className:a.summaryIcon,children:l.icon}),e.jsx("span",{className:a.summaryCount,children:b}),e.jsx("span",{className:a.summaryLabel,children:n(l.labelKey,l.key)})]},l.key)})})]}),I&&e.jsxs("div",{className:a.section,children:[e.jsx("div",{className:a.sectionTitle,children:e.jsx(O,{text:n("changelog.detail.context.tooltip","Structured execution context captured for this changelog session."),children:e.jsx("span",{children:n("changelog.detail.context.title","Context Summary")})})}),e.jsxs("div",{className:a.contextGrid,children:[((_=s.contextSummary)==null?void 0:_.intent)&&e.jsxs("div",{className:a.contextRow,children:[e.jsx("span",{className:a.contextKey,children:n("changelog.card.sessionIntent","Session intent")}),e.jsx("span",{className:a.contextValue,children:s.contextSummary.intent})]}),((D=s.contextSummary)==null?void 0:D.testScenario)&&e.jsxs("div",{className:a.contextRow,children:[e.jsx("span",{className:a.contextKey,children:n("playtest.context.why","Why this test ran")}),e.jsx("span",{className:a.contextValue,children:s.contextSummary.testScenario})]}),((M=s.contextSummary)==null?void 0:M.expectedBehavior)&&e.jsxs("div",{className:a.contextRow,children:[e.jsx("span",{className:a.contextKey,children:n("playtest.context.expected","Expected")}),e.jsx("span",{className:a.contextValue,children:s.contextSummary.expectedBehavior})]}),((g=s.contextSummary)==null?void 0:g.observedBehavior)&&e.jsxs("div",{className:a.contextRow,children:[e.jsx("span",{className:a.contextKey,children:n("playtest.context.observed","Observed")}),e.jsx("span",{className:a.contextValue,children:s.contextSummary.observedBehavior})]})]})]}),$&&e.jsxs("div",{className:a.section,children:[e.jsx("div",{className:a.sectionTitle,children:e.jsx(O,{text:n("changelog.detail.verification.tooltip","Verification signals linked to this changelog session."),children:e.jsx("span",{children:n("changelog.detail.verification.title","Verification")})})}),e.jsxs("div",{className:a.contextGrid,children:[((x=s.verificationSummary)==null?void 0:x.label)&&e.jsxs("div",{className:a.contextRow,children:[e.jsx("span",{className:a.contextKey,children:n("changelog.detail.verification.label","Result")}),e.jsx("span",{className:a.contextValue,children:s.verificationSummary.label})]}),((G=s.verificationSummary)==null?void 0:G.status)&&e.jsxs("div",{className:a.contextRow,children:[e.jsx("span",{className:a.contextKey,children:n("changelog.detail.verification.status","Status")}),e.jsx("span",{className:a.contextValue,children:s.verificationSummary.status})]}),((U=s.verificationSummary)==null?void 0:U.testTimestamp)&&e.jsxs("div",{className:a.contextRow,children:[e.jsx("span",{className:a.contextKey,children:n("changelog.detail.verification.timestamp","Recorded at")}),e.jsx("span",{className:a.contextValue,children:s.verificationSummary.testTimestamp})]})]})]}),e.jsxs("div",{className:a.section,children:[e.jsx("div",{className:a.sectionTitle,children:e.jsx(O,{text:n("changelog.detail.changeTimeline.tooltip","Chronological list of extracted game changes for this session."),children:e.jsx("span",{children:n("changelog.detail.changeTimeline","Change Timeline")})})}),e.jsxs("div",{className:a.timelineFilter,children:[e.jsx("span",{className:a.filterLabel,children:e.jsx(le,{label:`${n("changelog.detail.filterCategory","Category")}:`,tooltip:n("changelog.detail.filterCategory.tooltip","Filter the timeline to a single change category.")})}),e.jsxs("select",{className:a.filterSelect,value:u,onChange:l=>p(l.target.value),children:[e.jsx("option",{value:"all",children:n("tools.filter.all","All")}),Z.map(l=>e.jsxs("option",{value:l.key,children:[l.icon," ",n(l.labelKey,l.key)]},l.key))]}),z&&e.jsxs("label",{className:a.ownershipToggle,children:[e.jsx("input",{type:"checkbox",checked:r,onChange:l=>T(l.target.checked)}),n("changelog.ownership.showGenerated","Show generated metadata")]})]}),f.length===0?e.jsx("div",{className:a.empty,children:n("changelog.detail.noChanges","No changes in this category")}):e.jsx("div",{className:a.timeline,children:f.map((l,j)=>{const b=C===j,F=At(n,l.artifactOwnership);return e.jsxs("div",{children:[e.jsxs("button",{type:"button",className:a.timelineEntry,"aria-expanded":b,onClick:()=>E(b?null:j),children:[e.jsx("span",{className:a.timelineTime,children:$t(l.timestamp)}),e.jsx("span",{className:a.timelineIcon,children:Re(l.category)}),e.jsxs("span",{className:a.timelineBody,children:[e.jsxs("span",{className:a.timelineSummary,children:[l.summary,F&&e.jsx(ne,{variant:l.artifactOwnership==="generated"?"neutral":"accent",className:a.ownershipBadge,children:F}),e.jsx(O,{text:Lt(n,l.confidence),children:e.jsx("span",{className:`${a.timelineConfidence} ${zt(l.confidence)}`,children:Et(n,l.confidence)})})]}),e.jsx("span",{className:a.timelineTarget,children:l.target})]})]}),b&&e.jsx("div",{className:a.timelineExpanded,children:e.jsx(de,{change:l})})]},j)})})]})]})]})]})})}const Mt="_page_1tggr_2",Ot="_limitNotice_1tggr_9",Dt="_limitNoticeContent_1tggr_23",Ft="_limitNoticeTitle_1tggr_28",Pt="_limitNoticeText_1tggr_35",Gt="_primaryAction_1tggr_41",Kt="_clearButton_1tggr_67",Vt="_list_1tggr_88",qt="_empty_1tggr_95",Ut="_loading_1tggr_104",Ht="_pagination_1tggr_113",Zt="_pageInfo_1tggr_121",Qt="_btn_1tggr_127",N={page:Mt,limitNotice:Ot,limitNoticeContent:Dt,limitNoticeTitle:Ft,limitNoticeText:Pt,primaryAction:Gt,clearButton:Kt,list:Vt,empty:qt,loading:Ut,pagination:Ht,pageInfo:Zt,btn:Qt},K=10;function Wt(t,i){return typeof i!="number"?`/changelog/${t}`:`/changelog/${t}?placeId=${encodeURIComponent(String(i))}`}function Xt(t){const i=/^\/changelog\/([^/]+)$/.exec(t);if(!i)return null;try{return decodeURIComponent(i[1])}catch{return i[1]}}function Yt(t){const i=new URLSearchParams(t).get("placeId");if(!i)return null;const m=Number.parseInt(i,10);return Number.isInteger(m)&&m>=0?m:null}const Jt=[{key:"all",labelKey:"changelog.filter.all"},{key:"active",labelKey:"changelog.filter.active"},{key:"completed",labelKey:"changelog.filter.completed"}];function la(){const{t}=q(),{trackEvent:i,trackPageView:m}=X(),c=Y(),n=J(),s=Xt(n.pathname),[u,p]=o.useState(()=>Yt(n.search)),r=he({placeId:u}),T=ee(),{show:C}=te(),[E,f]=o.useState(!1),[z,B]=o.useState(!1),[S,I]=o.useState(null),$=o.useRef(null),y=s??S,v=!T.loading&&T.tier==="basic",k=v?r.entries.slice(0,3):r.entries,w=!v&&r.total>K;o.useEffect(()=>{s&&s===S&&I(null)},[S,s]);const L=async()=>{B(!0);try{await r.clear(),C(t("toast.clearSuccess","Cleared successfully"),"success"),f(!1)}catch{C(t("toast.clearFailed","Failed to clear data"),"error")}finally{B(!1)}},A=(d,_)=>{$.current=_,I(d),c(Wt(d,u))},R=()=>{I(null),c("/changelog",{replace:!0})};return e.jsxs("div",{className:N.page,children:[e.jsx(se,{title:t("page.changelog.title","Changelog"),description:t("page.changelog.description","Review game-change sessions captured from AI actions and sync events."),helpTopicId:"changelog",helpState:{tier:T.tier}}),e.jsx(oe,{surface:"changelog",selectable:!0,selectedPlaceId:u,onSelectedPlaceIdChange:d=>{p(d),r.setOffset(0)}}),e.jsx(re,{items:Jt.map(d=>({key:d.key,label:t(d.labelKey,d.key.charAt(0).toUpperCase()+d.key.slice(1))})),value:r.statusFilter,onChange:d=>{const _=`changelog_${d}`;i("dashboard_click_event",{click_target:`changelog_tab_${d}`,page:"changelog",tab:_}),m({page:"changelog",tab:_}),r.setStatusFilter(d),r.setOffset(0)},rightActions:e.jsx("button",{className:N.clearButton,onClick:()=>{i("dashboard_click_event",{click_target:"changelog_clear",page:"changelog",tab:`changelog_${r.statusFilter}`}),f(!0)},children:t("common.clear","Clear")})}),r.loading&&r.entries.length===0&&e.jsx("div",{className:N.loading,children:t("common.loading","Loading...")}),!r.loading&&r.entries.length===0?e.jsx("div",{className:N.empty,children:t("changelog.empty","No changelog entries for the current place yet")}):e.jsx("div",{className:N.list,children:k.map(d=>e.jsx(Be,{entry:d,onClick:_=>A(d.entryId,_),buttonRef:_=>{d.entryId===y&&_&&($.current=_)}},d.entryId))}),w&&e.jsxs("div",{className:N.pagination,children:[e.jsx("button",{className:N.btn,disabled:r.offset===0,onClick:()=>r.setOffset(Math.max(0,r.offset-K)),children:t("tools.page.prev","Prev")}),e.jsxs("span",{className:N.pageInfo,children:[r.offset+1,"–",Math.min(r.offset+K,r.total)," / ",r.total]}),e.jsx("button",{className:N.btn,disabled:!r.hasMore,onClick:()=>r.setOffset(r.offset+K),children:t("tools.page.next","Next")})]}),v&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:N.limitNotice,children:[e.jsxs("div",{className:N.limitNoticeContent,children:[e.jsx("div",{className:N.limitNoticeTitle,children:t("changelog.basic.limit.title","Basic preview shows the latest 3 sessions")}),e.jsx("div",{className:N.limitNoticeText,children:t("changelog.basic.limit.body","Full changelog timeline browsing is available with Pro.")})]}),e.jsx("a",{className:N.primaryAction,href:ae.changelog,target:"_blank",rel:"noreferrer",onClick:()=>i("dashboard_click_event",{click_target:"upgrade_cta",placement:"changelog_limit_notice",page:"changelog",tab:`changelog_${r.statusFilter}`}),children:t("tier.upgrade","View Pro")})]})}),e.jsx(ie,{open:E,title:t("changelog.clear.title","Clear changelog?"),message:t("changelog.clear.message","This permanently removes the stored changelog for the current place."),cancelLabel:t("common.cancel","Cancel"),confirmLabel:t("common.clear","Clear"),loading:z,onCancel:()=>!z&&f(!1),onConfirm:L}),y&&e.jsx(Rt,{entryId:y,placeId:u,onClose:R,returnFocusTo:$.current})]})}export{la as Component};
@@ -1 +0,0 @@
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_14ipf_2{display:flex;flex-direction:column;width:100%;min-width:0;gap:var(--space-page)}._sampleBanner_14ipf_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_14ipf_22{display:flex;align-items:center;justify-content:space-between;gap:20px}._sampleBannerMain_14ipf_29{display:flex;flex-direction:column;gap:8px;min-width:0}._sampleBadge_14ipf_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_14ipf_51{font-family:var(--font-label);font-size:16px;font-weight:600;color:var(--text-primary)}._sampleMessage_14ipf_58{max-width:560px;color:var(--text-secondary);font-size:13px;line-height:1.5}._sampleActions_14ipf_65{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}._primaryAction_14ipf_73,._secondaryAction_14ipf_74,._resetAction_14ipf_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_14ipf_74{border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);cursor:pointer}._secondaryAction_14ipf_74:hover{border-color:var(--accent);background:var(--accent-dim)}._primaryAction_14ipf_73{border:1px solid var(--accent);background:var(--accent);color:var(--button-primary-text);cursor:pointer}._primaryAction_14ipf_73:hover{opacity:.9}._resetAction_14ipf_75{border:1px solid var(--danger-border);background:var(--danger-bg);color:var(--danger-text);cursor:pointer}._resetAction_14ipf_75:hover:not(:disabled){border-color:var(--danger);background:var(--danger-hover-bg)}._card_14ipf_124{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:var(--card-padding-block) var(--card-padding-inline)}._cardHeader_14ipf_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_14ipf_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_14ipf_144:hover:not(:disabled){background:var(--danger-hover-bg);border-color:var(--danger)}._clearButton_14ipf_144:focus-visible{outline:none;box-shadow:var(--focus-ring)}._clearButton_14ipf_144:disabled{cursor:not-allowed;opacity:.55}._statusRow_14ipf_173{display:flex;align-items:center;gap:12px;margin-bottom:8px}._statusIndicator_14ipf_180{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}._statusRunning_14ipf_188{background:var(--success);box-shadow:0 0 6px var(--success)}._statusPaused_14ipf_193{background:var(--warning)}._statusNotRunning_14ipf_197{background:var(--text-muted)}._statusLabel_14ipf_201{font-family:var(--font-code);font-size:13px;font-weight:600;color:var(--text-primary)}._statusMeta_14ipf_208{font-family:var(--font-code);font-size:12px;color:var(--text-secondary)}._controlButtons_14ipf_214{display:flex;gap:8px;margin-top:12px}._btn_14ipf_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_14ipf_221:hover{border-color:var(--accent);background:var(--accent-dim)}._btn_14ipf_221:disabled{opacity:.4;pointer-events:none}._btnPrimary_14ipf_243{background:var(--accent);color:var(--bg-card);border-color:var(--accent)}._btnPrimary_14ipf_243:hover{opacity:.9}._btnDanger_14ipf_253{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger-text)}._btnDanger_14ipf_253:hover{border-color:var(--danger);background:var(--danger-hover-bg)}._historyList_14ipf_265{display:flex;flex-direction:column;gap:4px}._historyItem_14ipf_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_14ipf_271:hover{border-color:var(--accent)}._historyItem_14ipf_271:focus-visible,._stepDisclosure_14ipf_291:focus-visible{outline:none;box-shadow:var(--focus-ring)}._historyItemSelected_14ipf_296{border-color:var(--accent);background:var(--accent-dim)}._historyItemHeader_14ipf_301{display:flex;align-items:center;gap:8px}._historyIcon_14ipf_307{font-size:14px;flex-shrink:0}._historyTimestamp_14ipf_312{font-family:var(--font-code);font-size:11px;color:var(--text-muted);flex-shrink:0}._historyName_14ipf_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_14ipf_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_14ipf_344{display:flex;flex-wrap:wrap;gap:12px;font-family:var(--font-code);font-size:11px;color:var(--text-secondary);padding-left:22px}._historyMode_14ipf_354{color:var(--text-muted)}._historyDuration_14ipf_358{color:var(--text-secondary)}._historyStatus_14ipf_362{font-weight:500;text-transform:uppercase;font-size:10px;letter-spacing:.04em}._status_passed_14ipf_369{color:var(--success)}._status_failed_14ipf_373{color:var(--error)}._status_running_14ipf_377{color:var(--accent)}._status_timed_out_14ipf_381{color:var(--error)}._status_cancelled_14ipf_385,._status_insufficient_evidence_14ipf_386{color:var(--warning)}._historyError_14ipf_390{font-family:var(--font-code);font-size:11px;color:var(--error);padding-left:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._historyEvidence_14ipf_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_14ipf_410{padding-left:22px;overflow:hidden;color:var(--warning);font-size:10px;text-overflow:ellipsis;white-space:nowrap}._detailShell_14ipf_421{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column}._detailHeader_14ipf_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_14ipf_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_14ipf_451{overflow:hidden;color:var(--text-secondary);font-size:12px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}._detailCloseButton_14ipf_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_14ipf_460:hover{border-color:var(--accent);color:var(--text-primary)}._detailCloseButton_14ipf_460:focus-visible,._detailRetryButton_14ipf_480:focus-visible{outline:none;box-shadow:var(--focus-ring)}._detailBody_14ipf_485{flex:1;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;padding:20px}._detailState_14ipf_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_14ipf_505{color:var(--text-primary);font-family:var(--font-label);font-size:15px;font-weight:600}._detailErrorMessage_14ipf_512{max-width:560px;color:var(--error);font-family:var(--font-code);font-size:11px;overflow-wrap:anywhere}._detailRetryButton_14ipf_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_14ipf_534{display:flex;flex-direction:column;gap:12px}._runSummary_14ipf_540,._viewerSection_14ipf_541{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-secondary);padding:14px}._runSummary_14ipf_540{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px}._summaryLead_14ipf_554{display:flex;gap:12px;min-width:0}._summaryStatusMark_14ipf_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_14ipf_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_14ipf_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_14ipf_594{margin-top:3px;color:var(--text-secondary);font-size:12px;line-height:1.45}._summaryFacts_14ipf_601{display:grid;grid-template-columns:repeat(2,minmax(88px,1fr));gap:8px 14px}._summaryFacts_14ipf_601 div{display:flex;flex-direction:column;gap:2px}._summaryFacts_14ipf_601 span,._subsectionLabel_14ipf_614{color:var(--text-muted);font-family:var(--font-label);font-size:9px;letter-spacing:.06em;text-transform:uppercase}._summaryFacts_14ipf_601 strong{color:var(--text-primary);font-family:var(--font-code);font-size:11px;font-weight:500}._sectionHeadingRow_14ipf_629{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}._sectionHint_14ipf_637{color:var(--text-muted);font-size:10px}._dimensionGrid_14ipf_642{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}._dimensionCard_14ipf_649{min-width:0;padding:10px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card)}._dimensionHeader_14ipf_657{display:flex;align-items:center;gap:6px}._statusMark_14ipf_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_14ipf_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_14ipf_686{margin-left:auto;color:var(--text-muted);font-family:var(--font-code);font-size:8px;text-transform:uppercase}._dimensionStatus_14ipf_694{margin-top:9px;color:var(--text-primary);font-family:var(--font-code);font-size:11px}._dimensionMeta_14ipf_701{margin-top:3px;overflow-wrap:anywhere;color:var(--text-muted);font-family:var(--font-code);font-size:9px}._tone_passed_14ipf_709{color:var(--success)}._tone_failed_14ipf_710,._tone_timed_out_14ipf_711{color:var(--error)}._tone_cancelled_14ipf_712,._tone_insufficient_evidence_14ipf_713,._tone_unavailable_14ipf_714{color:var(--warning)}._tone_skipped_14ipf_715,._tone_not_requested_14ipf_716{color:var(--text-muted)}._stepList_14ipf_718{display:flex;flex-direction:column;gap:6px;margin-top:10px}._stepItem_14ipf_725{overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card)}._stepDisclosure_14ipf_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_14ipf_291:hover{background:var(--bg-secondary)}._stepIndex_14ipf_749{color:var(--text-muted);font-family:var(--font-code);font-size:10px;text-align:right}._stepIdentity_14ipf_756{display:flex;min-width:0;flex-direction:column;gap:2px}._stepName_14ipf_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_14ipf_773,._stepStatus_14ipf_774{color:var(--text-muted);font-family:var(--font-code);font-size:9px}._stepStatus_14ipf_774{color:var(--text-secondary)}._chevron_14ipf_782{color:var(--text-muted);font-size:14px;transition:transform var(--transition)}._chevronOpen_14ipf_788{transform:rotate(180deg)}._stepDetails_14ipf_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_14ipf_799{min-width:0}._evidenceLabel_14ipf_803{margin-bottom:4px;color:var(--text-muted);font-family:var(--font-label);font-size:9px;letter-spacing:.05em;text-transform:uppercase}._evidenceBlock_14ipf_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_14ipf_830,._recordProblem_14ipf_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_14ipf_831{display:flex;flex-direction:column;gap:4px}._capabilityGrid_14ipf_846{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}._capabilityItem_14ipf_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_14ipf_866{color:var(--success)}._capabilityNo_14ipf_867{color:var(--text-muted)}._capabilityState_14ipf_868{color:var(--text-muted);font-size:9px}._limitations_14ipf_870,._artifactList_14ipf_871,._agentList_14ipf_872{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px}._agentList_14ipf_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_14ipf_889{display:flex;flex-direction:column;gap:6px;margin-top:10px}._artifactDisclosure_14ipf_889{overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-card)}._artifactButton_14ipf_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_14ipf_903:hover{background:var(--bg-secondary)}._artifactButton_14ipf_903:focus-visible{outline:none;box-shadow:var(--focus-ring)}._artifactContent_14ipf_928{padding:10px;border-top:1px solid var(--border);background:var(--bg-secondary)}._artifactContent_14ipf_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_14ipf_948{padding:5px 7px;border-radius:4px;background:color-mix(in srgb,var(--warning) 9%,transparent);color:var(--text-secondary);font-size:10px}._artifactList_14ipf_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_14ipf_965{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-secondary)}._reportContextRow_14ipf_975{display:flex;flex-direction:column;gap:4px;color:var(--text-primary);font-size:12px}._reportContextLabel_14ipf_983{font-family:var(--font-label);font-size:10px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}._reportSection_14ipf_991{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}._reportSectionHeader_14ipf_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_14ipf_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_14ipf_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_14ipf_1037{text-align:center;padding:32px 16px;color:var(--text-muted);font-size:13px}._emptyStateTitle_14ipf_1044{font-family:var(--font-label);font-size:14px;font-weight:600;color:var(--text-secondary);margin-bottom:8px}._emptyStateMessage_14ipf_1052{font-size:12px;color:var(--text-muted);max-width:360px;margin:0 auto;line-height:1.5}._upgradePanel_14ipf_1061{background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius);padding:32px 24px;text-align:center}._upgradePanelIcon_14ipf_1069{font-size:32px;margin-bottom:12px}._upgradePanelTitle_14ipf_1074{font-family:var(--font-label);font-size:15px;font-weight:600;color:var(--text-primary);margin-bottom:8px}._upgradePanelDesc_14ipf_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_14ipf_1092{list-style:none;padding:0;margin:0 auto 16px;display:flex;flex-direction:column;gap:4px;max-width:360px;text-align:left}._benefitItem_14ipf_1103{font-size:12px;color:var(--text-secondary);padding-left:16px;position:relative}._benefitItem_14ipf_1103:before{content:"+";position:absolute;left:0;color:var(--accent);font-weight:600}._upgradeActions_14ipf_1118{display:flex;gap:8px;justify-content:center}._workspaceTabs_14ipf_1124{min-width:0;overflow-x:auto;scrollbar-width:none}._workspaceTabs_14ipf_1124::-webkit-scrollbar{display:none}._workspaceTabs_14ipf_1124>div:first-child{flex:0 0 max-content}._workspaceTabs_14ipf_1124 button{white-space:nowrap}._sessionHelp_14ipf_1137{display:inline-grid;width:28px;height:28px;place-items:center;border-radius:50%;color:var(--text-muted);cursor:help}._sessionHelp_14ipf_1137:focus-visible{outline:none;box-shadow:var(--focus-ring)}._secondaryAction_14ipf_74:focus-visible,._primaryAction_14ipf_73:focus-visible,._resetAction_14ipf_75:focus-visible,._stopAction_14ipf_1143:focus-visible,._controlEditor_14ipf_1144 input:focus-visible,._controlEditor_14ipf_1144 select:focus-visible,._profileToolbar_14ipf_1146 select:focus-visible,._profileDialog_14ipf_1147 input:focus-visible{outline:none;box-shadow:var(--focus-ring)}._sessionBar_14ipf_1152,._profileToolbar_14ipf_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_14ipf_1165{display:flex;min-width:0;align-items:center;gap:11px;color:var(--accent)}._sessionIdentity_14ipf_1165>div{display:flex;min-width:0;flex-direction:column;gap:3px}._sessionIdentity_14ipf_1165 strong{color:var(--text-primary);font-family:var(--font-label);font-size:13px}._sessionIdentity_14ipf_1165 span{overflow:hidden;color:var(--text-secondary);font-family:var(--font-code);font-size:10px;text-overflow:ellipsis;white-space:nowrap}._sessionActions_14ipf_1195,._profileActions_14ipf_1196,._profileDialogActions_14ipf_1197{display:flex;align-items:center;gap:8px}._sessionActions_14ipf_1195{min-width:188px;justify-content:flex-end}._secondaryAction_14ipf_74,._primaryAction_14ipf_73,._resetAction_14ipf_75,._stopAction_14ipf_1143{gap:6px;white-space:nowrap}._stopAction_14ipf_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_14ipf_73:disabled,._secondaryAction_14ipf_74:disabled,._resetAction_14ipf_75:disabled{cursor:not-allowed;opacity:.45}._liveWorkspace_14ipf_1238{display:flex;min-width:0;flex-direction:column;gap:12px}._profileToolbar_14ipf_1146{padding:10px 12px}._profileToolbar_14ipf_1146>div:first-child{display:flex;min-width:240px;flex-direction:column;gap:5px}._profileLabelRow_14ipf_1254{display:flex;align-items:center;justify-content:space-between;gap:12px}._profileLabelRow_14ipf_1254>span,._profileHint_14ipf_1262{color:var(--text-muted);font-family:var(--font-label);font-size:9px}._profileHint_14ipf_1262{line-height:1.35}._profileToolbar_14ipf_1146 label,._actualValue_14ipf_1271 span,._watchReading_14ipf_1272 span{color:var(--text-muted);font-family:var(--font-label);font-size:9px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}._profileToolbar_14ipf_1146 select,._controlEditor_14ipf_1144 input,._controlEditor_14ipf_1144 select,._profileDialog_14ipf_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_14ipf_1144 input:disabled,._controlEditor_14ipf_1144 select:disabled{border-color:var(--border);background:var(--bg-primary);color:var(--text-muted);cursor:not-allowed;opacity:.58}._controlEditor_14ipf_1144 input[type=checkbox]:disabled{accent-color:var(--text-muted)}._liveGrid_14ipf_1308{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}._livePanel_14ipf_1315{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-card)}._livePanel_14ipf_1315[data-runtime-state=inactive]{border-color:var(--border);background:var(--bg-card)}._livePanel_14ipf_1315>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:10px 14px;border-bottom:1px solid var(--border)}._livePanel_14ipf_1315>header>div{display:flex;flex-direction:column;gap:3px}._livePanel_14ipf_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_14ipf_1315>header span,._panelEmpty_14ipf_1352{color:var(--text-secondary);font-size:var(--type-body-size);line-height:var(--leading-body)}._livePanel_14ipf_1315>header ._controlAvailability_14ipf_1358{display:flex;flex-direction:row;align-items:center;gap:6px;min-height:20px;color:var(--text-secondary)}._livePanel_14ipf_1315>header ._controlAvailability_14ipf_1358[data-warning=true]{color:var(--warning)}._controlAvailability_14ipf_1358 svg{flex-shrink:0}._controlGate_14ipf_1361{position:relative;min-width:0}._controlGate_14ipf_1361>label{display:flex;box-sizing:border-box}._controlGate_14ipf_1361>input:not([type=range]),._controlGate_14ipf_1361>select{width:100%;box-sizing:border-box}._controlGateTrigger_14ipf_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_14ipf_1364:focus-visible{outline:none;box-shadow:var(--focus-ring)}._controlGateHint_14ipf_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_14ipf_1367{color:var(--text-secondary);font-size:10px}._editorHeading_14ipf_1368{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:8px}._savedValueState_14ipf_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_14ipf_1369 strong{color:var(--text-secondary);font-family:var(--font-code);font-weight:500}._panelEmpty_14ipf_1352{padding:28px 16px;text-align:center}._valueToolbar_14ipf_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_14ipf_1373 label,._valueFilters_14ipf_1383 label{display:flex;min-width:0;flex-direction:column;gap:5px;color:var(--text-secondary);font-size:10px}._valueToolbar_14ipf_1373 input,._valueFilters_14ipf_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_14ipf_1373 ._secondaryAction_14ipf_74{min-height:36px}._valueFilters_14ipf_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_14ipf_1373 input:focus-visible,._valueFilters_14ipf_1383 select:focus-visible,._valuePagination_14ipf_1390 button:focus-visible{outline:none;box-shadow:var(--focus-ring)}._valueListStatus_14ipf_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_14ipf_1392{color:var(--text-muted);font-family:var(--font-code);font-size:10px}._valueListStatus_14ipf_1391 ._secondaryAction_14ipf_74{min-height:30px;padding-inline:10px;font-size:10px}._layoutHint_14ipf_1394{padding:6px 16px;border-bottom:1px solid var(--border);background:var(--bg-secondary);color:var(--text-muted);font-size:10px}._srOnly_14ipf_1395{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}._unifiedValueRows_14ipf_1396{min-width:0}._unifiedValueRows_14ipf_1396 ._liveRows_14ipf_1397:not(:empty)+._watchRows_14ipf_1397:not(:empty){border-top:1px solid var(--border)}._valueGroup_14ipf_1398{min-width:0;border-bottom:1px solid var(--border)}._valueGroup_14ipf_1398:last-child{border-bottom:0}._valueGroupToggle_14ipf_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_14ipf_1400:before{content:"▾";color:var(--text-muted)}._valueGroupToggle_14ipf_1400[aria-expanded=false]:before{content:"▸"}._valueGroupToggle_14ipf_1400 span:first-child{flex:1}._valueGroupToggle_14ipf_1400 span:last-child{color:var(--text-muted);font-family:var(--font-code)}._valueGroupToggle_14ipf_1400:focus-visible{outline:none;box-shadow:inset var(--focus-ring)}._valueGroupRows_14ipf_1406>:not(:last-child) ._controlRow_14ipf_1406,._valueGroupRows_14ipf_1406>:not(:last-child) ._watchRow_14ipf_1397,._valueGroupRows_14ipf_1406>:not(:last-child) ._actionRow_14ipf_1408{border-bottom:1px solid var(--border)}._valuePagination_14ipf_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_14ipf_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_14ipf_1390 button:disabled{cursor:not-allowed;opacity:.5}._historyBrowser_14ipf_1412{min-width:0}._historyToolbar_14ipf_1413{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_14ipf_1413 label{display:flex;min-width:0;flex-direction:column;gap:5px;color:var(--text-secondary);font-size:10px}._historyToolbar_14ipf_1413 input,._historyToolbar_14ipf_1413 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_14ipf_1413 input:focus-visible,._historyToolbar_14ipf_1413 select:focus-visible{outline:none;box-shadow:var(--focus-ring)}._liveRows_14ipf_1397,._watchRows_14ipf_1397{display:flex;flex-direction:column}._controlRow_14ipf_1406,._watchRow_14ipf_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_14ipf_1406:last-child,._watchRow_14ipf_1397:last-child{border-bottom:0}._rowIdentity_14ipf_1437,._actualValue_14ipf_1271,._watchReading_14ipf_1272,._freshness_14ipf_1440,._controlEditor_14ipf_1144{display:flex;min-width:0;flex-direction:column;gap:4px}._rowIdentity_14ipf_1437 strong,._actualValue_14ipf_1271 strong,._watchReading_14ipf_1272 strong{overflow:hidden;color:var(--text-primary);font-family:var(--font-code);font-size:12px;text-overflow:ellipsis;white-space:nowrap}._rowIdentity_14ipf_1437 strong{font-family:var(--font-label);font-size:12px}._rowIdentity_14ipf_1437 span{color:var(--text-muted);font-family:var(--font-code);font-size:9px;overflow-wrap:anywhere}._rowIdentity_14ipf_1437>._presentationMeta_14ipf_1461{color:var(--accent);font-family:var(--font-label);font-weight:600}._rowFeedback_14ipf_1462{min-height:14px;color:var(--text-muted);font-size:9px}._rowFeedback_14ipf_1462[data-state=error],._rowFeedback_14ipf_1462[data-state=conflict]{color:var(--error)}._rowFeedback_14ipf_1462[data-state=applied]{color:var(--success)}._rowFeedback_14ipf_1462[data-state=pending_resume],._rowFeedback_14ipf_1462[data-state=requires_adapter]{color:var(--warning)}._controlEditorRow_14ipf_1468{display:grid;min-width:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}._controlActions_14ipf_1469{display:flex;min-width:0;align-items:center;gap:8px}._controlActions_14ipf_1469>._controlGate_14ipf_1361{flex:0 0 auto}._controlActions_14ipf_1469 ._secondaryAction_14ipf_74{min-height:32px;padding:0 10px;font-size:10px}._applyOnStartOption_14ipf_1472{display:inline-flex;min-width:0;flex:1;align-items:center;gap:6px;color:var(--text-secondary);font-size:9px}._applyOnStartOption_14ipf_1472 input{width:14px;height:14px;min-height:14px;flex:0 0 auto;padding:0;accent-color:var(--accent)}._valueDetails_14ipf_1474{margin-top:3px;color:var(--text-secondary);font-size:10px}._valueDetails_14ipf_1474 summary{color:var(--text-secondary);cursor:pointer}._valueDetails_14ipf_1474 dl{display:grid;gap:5px;margin:8px 0 0}._valueDetails_14ipf_1474 dl>div{display:grid;grid-template-columns:minmax(92px,auto) minmax(0,1fr);gap:8px}._valueDetails_14ipf_1474 dt{color:var(--text-muted)}._valueDetails_14ipf_1474 dd{margin:0;overflow-wrap:anywhere}._valueDetailButton_14ipf_1480{width:fit-content;min-height:28px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-secondary);padding:0 8px;font-family:var(--font-label);font-size:10px;font-weight:600;cursor:pointer}._valueDetailButton_14ipf_1480:hover{border-color:var(--border-highlight);background:var(--accent-dim);color:var(--accent-hover)}._valueDetailButton_14ipf_1480:focus-visible{outline:none;box-shadow:var(--focus-ring)}._valueDetailShell_14ipf_1483{display:flex;width:100%;height:100%;min-width:0;min-height:0;flex-direction:column;overflow:hidden}._valueDetailBody_14ipf_1484{display:flex;min-height:0;flex:1;flex-direction:column;gap:16px;overflow-y:auto;padding:18px 20px 20px}._valueDetailList_14ipf_1485{display:grid;gap:12px;margin:0}._valueDetailList_14ipf_1485>div{display:grid;grid-template-columns:minmax(120px,.4fr) minmax(0,1fr);gap:12px}._valueDetailList_14ipf_1485 dt{color:var(--text-muted);font-family:var(--font-label);font-size:11px}._valueDetailList_14ipf_1485 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_14ipf_1489{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}._valueDetailFeedback_14ipf_1490{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_14ipf_1490[data-state=success]{border-color:var(--success-border);background:var(--success-bg);color:var(--success-text)}._valueDetailFeedback_14ipf_1490[data-state=error]{border-color:var(--error-border);background:var(--error-bg);color:var(--error-text)}._defaultValueEditor_14ipf_1493 input:not([type=checkbox]),._defaultValueEditor_14ipf_1493 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_14ipf_1493 input:focus-visible,._defaultValueEditor_14ipf_1493 select:focus-visible{outline:none;box-shadow:var(--focus-ring)}._defaultBooleanEditor_14ipf_1497{display:inline-flex;min-height:36px;align-items:center;gap:8px;color:var(--text-primary);font-size:12px}._defaultBooleanEditor_14ipf_1497 input{width:16px;height:16px;accent-color:var(--accent)}._booleanEditor_14ipf_1500{display:inline-flex;min-height:36px;align-items:center;gap:8px;color:var(--text-primary);font-size:12px}._booleanEditor_14ipf_1500 input{width:16px;height:16px;accent-color:var(--accent)}._rangeEditor_14ipf_1509{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:center;gap:8px}._rangeEditor_14ipf_1509 input{width:100%;accent-color:var(--accent)}._rangeEditor_14ipf_1509 output{color:var(--text-primary);font-family:var(--font-code);font-size:11px;text-align:right}._freshness_14ipf_1440{align-items:flex-end;color:var(--text-muted);font-family:var(--font-label);font-size:10px;font-weight:600}._freshness_14ipf_1440[data-status=fresh]{color:var(--success)}._freshness_14ipf_1440[data-status=stale]{color:var(--warning)}._freshness_14ipf_1440 time{color:var(--text-muted);font-family:var(--font-code);font-size:9px;font-weight:400}._valueWorkspacePanel_14ipf_1524{overflow:visible}._valueWorkspaceHeader_14ipf_1525{border-radius:var(--radius) var(--radius) 0 0;background:var(--bg-card)}._valueSections_14ipf_1526{display:flex;min-width:0;flex-direction:column;gap:8px;padding:8px;background:var(--bg-primary)}._valueSection_14ipf_1526{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-card)}._valueSectionHeader_14ipf_1528{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:12px;padding:6px 10px;border-bottom:1px solid var(--border)}._valueSectionHeading_14ipf_1529{display:flex;min-width:0;align-items:center;gap:8px}._valueSectionHeading_14ipf_1529 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_14ipf_1531{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_14ipf_1532{display:flex;min-width:0;flex:1;align-items:center;justify-content:flex-end;gap:8px}._sectionDragHandle_14ipf_1533,._sectionMoveButton_14ipf_1534,._valueReorderControls_14ipf_1535 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_14ipf_1533,._dragHandle_14ipf_1537{cursor:grab}._sectionDragHandle_14ipf_1533:active,._dragHandle_14ipf_1537:active{cursor:grabbing}._sectionDragHandle_14ipf_1533:hover,._sectionMoveButton_14ipf_1534:hover,._valueReorderControls_14ipf_1535 button:hover:not(:disabled){background:var(--bg-secondary);color:var(--text-primary)}._sectionDragHandle_14ipf_1533:focus-visible,._sectionMoveButton_14ipf_1534:focus-visible,._valueReorderControls_14ipf_1535 button:focus-visible{outline:none;box-shadow:var(--focus-ring)}._valueReorderControls_14ipf_1535 button:disabled{opacity:.3}._sectionDragHandle_14ipf_1533:disabled,._sectionMoveButton_14ipf_1534:disabled{opacity:.3;cursor:not-allowed}._runtimeSettings_14ipf_1549{display:flex;min-width:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}._runtimeSettingSwitch_14ipf_1550{position:relative;display:inline-flex;min-height:44px;align-items:center;gap:9px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary);color:var(--text-secondary);padding:0 9px;font-family:var(--font-label);font-size:11px;cursor:pointer}._runtimeSettingSwitch_14ipf_1550:hover{border-color:var(--border-highlight);color:var(--text-primary)}._runtimeSettingSwitch_14ipf_1550:focus-within{box-shadow:var(--focus-ring)}._runtimeSettingSwitchInput_14ipf_1553{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}._runtimeSettingSwitchTrack_14ipf_1554{display:inline-flex;width:34px;height:20px;flex:0 0 auto;align-items:center;box-sizing:border-box;border:1px solid var(--border-highlight);border-radius:var(--radius-pill);background:var(--bg-primary);padding:2px;transition:background var(--transition),border-color var(--transition)}._runtimeSettingSwitchThumb_14ipf_1555{width:14px;height:14px;border-radius:50%;background:var(--text-secondary);transition:transform var(--transition),background var(--transition)}._runtimeSettingSwitchInput_14ipf_1553:checked+._runtimeSettingSwitchTrack_14ipf_1554{border-color:var(--accent);background:var(--accent)}._runtimeSettingSwitchInput_14ipf_1553:checked+._runtimeSettingSwitchTrack_14ipf_1554 ._runtimeSettingSwitchThumb_14ipf_1555{background:var(--button-primary-text);transform:translate(14px)}._runtimeSettingSwitch_14ipf_1550:has(._runtimeSettingSwitchInput_14ipf_1553:disabled){cursor:not-allowed;opacity:.55}._layoutError_14ipf_1559{padding:8px 16px;border-bottom:1px solid var(--error);color:var(--error);font-size:11px}._controlValueList_14ipf_1560,._watchValueGrid_14ipf_1561,._actionValueList_14ipf_1562{min-width:0}._valueEntryShell_14ipf_1563{position:relative;min-width:0;border-bottom:1px solid var(--border)}._valueEntryShell_14ipf_1563:last-child{border-bottom:0}._valueReorderControls_14ipf_1535{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_14ipf_1563[data-layout-editing=true] ._watchRow_14ipf_1397,._valueEntryShell_14ipf_1563[data-layout-editing=true] ._controlRow_14ipf_1406,._valueEntryShell_14ipf_1563[data-layout-editing=true] ._actionRow_14ipf_1408{padding-right:100px}._valueEntryShell_14ipf_1563[data-drop-position=before]{box-shadow:inset 3px 0 0 var(--accent)}._valueEntryShell_14ipf_1563[data-drop-position=after]{box-shadow:inset -3px 0 0 var(--accent)}._controlValueList_14ipf_1560 ._valueEntryShell_14ipf_1563[data-drop-position=before]{box-shadow:inset 0 3px 0 var(--accent)}._controlValueList_14ipf_1560 ._valueEntryShell_14ipf_1563[data-drop-position=after]{box-shadow:inset 0 -3px 0 var(--accent)}._watchValueGrid_14ipf_1561 ._valueGroupRows_14ipf_1406{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}._watchValueGrid_14ipf_1561 ._valueEntryShell_14ipf_1563{border-right:1px solid var(--border)}._watchValueGrid_14ipf_1561 ._watchRow_14ipf_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_14ipf_1576{display:flex;min-width:0;align-items:center;gap:6px}._watchCardMain_14ipf_1576>strong{overflow:hidden;color:var(--text-primary);font-family:var(--font-label);font-size:12px;text-overflow:ellipsis;white-space:nowrap}._watchCardMain_14ipf_1576 ._presentationMeta_14ipf_1461{flex:0 0 auto;color:var(--accent);font-size:9px}._watchValueGrid_14ipf_1561 ._watchReading_14ipf_1272{grid-column:1;flex-direction:row;align-items:baseline;gap:6px}._watchValueGrid_14ipf_1561 ._watchReading_14ipf_1272 strong{display:block;overflow:hidden;font-size:15px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}._watchValueGrid_14ipf_1561 ._watchRow_14ipf_1397[data-value-type=number] ._watchReading_14ipf_1272 strong{font-variant-numeric:tabular-nums;text-align:right}._watchValueGrid_14ipf_1561 ._freshness_14ipf_1440{align-self:center;align-items:flex-end;font-size:9px}._watchDetails_14ipf_1583{grid-column:1 / -1;color:var(--text-secondary);font-size:9px}._watchDetails_14ipf_1583 summary{cursor:pointer}._watchDetails_14ipf_1583 dl{display:grid;gap:5px;margin:8px 0 0}._watchDetails_14ipf_1583 dl>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}._watchDetails_14ipf_1583 dt{color:var(--text-muted)}._watchDetails_14ipf_1583 dd{min-width:0;margin:0;overflow-wrap:anywhere}._controlValueList_14ipf_1560 ._controlRow_14ipf_1406{grid-template-columns:minmax(140px,.72fr) minmax(90px,.45fr) minmax(280px,1.6fr);min-height:72px;padding-block:6px;border:0}._controlValueList_14ipf_1560 ._rowFeedback_14ipf_1462{min-height:14px;line-height:1.35}._actionRow_14ipf_1408{display:grid;min-width:0;min-height:76px;grid-template-columns:minmax(140px,.8fr) minmax(170px,1fr) minmax(220px,1.2fr);align-items:center;gap:12px;padding:8px 16px}._actionSummary_14ipf_1592,._actionExecution_14ipf_1592{display:flex;min-width:0;flex-direction:column;gap:5px}._actionSummary_14ipf_1592>span,._actionParameter_14ipf_1593>span{color:var(--text-secondary);font-size:10px}._actionSummary_14ipf_1592>strong{overflow:hidden;color:var(--text-primary);font-family:var(--font-code);font-size:11px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}._actionExecution_14ipf_1592{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}._actionExecution_14ipf_1592>._controlGate_14ipf_1361{grid-column:2;justify-self:end}._actionExecution_14ipf_1592>._rowFeedback_14ipf_1462,._actionInactiveReason_14ipf_1597{grid-column:1 / -1}._actionInactiveReason_14ipf_1597{color:var(--text-secondary);font-size:9px}._actionRow_14ipf_1408[data-state=succeeded] ._rowFeedback_14ipf_1462{color:var(--success)}._actionRow_14ipf_1408[data-state=failed] ._rowFeedback_14ipf_1462{color:var(--error)}._actionRow_14ipf_1408[data-state=unknown] ._rowFeedback_14ipf_1462{color:var(--warning)}._actionParameterGrid_14ipf_1602{display:grid;min-width:0;gap:10px}._actionParameter_14ipf_1593{display:grid;min-width:0;gap:4px}._actionParameter_14ipf_1593 input:not([type=checkbox]),._actionParameter_14ipf_1593 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}._actionParameter_14ipf_1593 input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent)}._actionParameter_14ipf_1593 input:focus-visible,._actionParameter_14ipf_1593 select:focus-visible{outline:none;box-shadow:var(--focus-ring)}._actionParameter_14ipf_1593 small{color:var(--text-muted);font-size:9px}._actionParameter_14ipf_1593 ._actionParameterError_14ipf_1608{color:var(--error)}@media(max-width:760px){._watchValueGrid_14ipf_1561 ._valueGroupRows_14ipf_1406{grid-template-columns:repeat(2,minmax(0,1fr))}._controlValueList_14ipf_1560 ._controlRow_14ipf_1406,._actionRow_14ipf_1408{grid-template-columns:minmax(0,1fr)}._actionExecution_14ipf_1592>._controlGate_14ipf_1361{grid-column:1}._controlEditorRow_14ipf_1468{grid-template-columns:minmax(0,1fr) auto}._valueFilters_14ipf_1383{grid-template-columns:repeat(2,minmax(0,1fr))}._valueSections_14ipf_1526{padding:10px}._valueSectionHeader_14ipf_1528{align-items:flex-start;flex-wrap:wrap}._valueSectionHeaderActions_14ipf_1532{flex-basis:100%;justify-content:flex-start}._runtimeSettings_14ipf_1549{justify-content:flex-start}}@media(max-width:390px){._watchValueGrid_14ipf_1561 ._valueGroupRows_14ipf_1406,._valueFilters_14ipf_1383{grid-template-columns:minmax(0,1fr)}._valueSections_14ipf_1526{gap:8px;padding:8px}._valueSectionHeader_14ipf_1528{padding-inline:8px}._runtimeSettings_14ipf_1549,._runtimeSettings_14ipf_1549>._controlGate_14ipf_1361,._runtimeSettingSwitch_14ipf_1550{width:100%;box-sizing:border-box}._runtimeSettingSwitch_14ipf_1550>span:first-child{flex:1}}._deploymentGuide_14ipf_1634{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_14ipf_1634 h2,._deploymentGuide_14ipf_1634 h3,._deploymentGuide_14ipf_1634 p{margin:0}._deploymentGuide_14ipf_1634 h2{font-size:var(--type-surface-title-size);font-weight:600;line-height:var(--leading-title)}._deploymentGuide_14ipf_1634 h3,._deploymentScope_14ipf_1646 dt{color:var(--text-primary);font-size:var(--type-section-title-size);font-weight:600;line-height:var(--leading-title)}._deploymentGuide_14ipf_1634 p,._deploymentScope_14ipf_1646 dd{font-size:var(--type-guidance-size);line-height:var(--leading-guidance);color:var(--text-secondary);overflow-wrap:anywhere}._deploymentGuide_14ipf_1634 header{display:grid;gap:var(--space-section)}._deploymentLifecycle_14ipf_1649{display:grid;gap:var(--space-related)}._deploymentNotice_14ipf_1650{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_14ipf_1650 h3{color:var(--warning-text)}._deploymentChecklist_14ipf_1652{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_14ipf_1652 ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-related) 24px;margin:0;padding:0;list-style:none}._deploymentChecklist_14ipf_1652 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_14ipf_1652 li:before{position:absolute;top:.65em;left:0;width:6px;height:6px;border-radius:var(--radius-pill);background:var(--accent);content:""}._deploymentGuide_14ipf_1634 ._deploymentDescription_14ipf_1656{color:var(--text-muted);font-size:var(--type-body-size);line-height:var(--leading-body)}._deploymentDescription_14ipf_1656,._deploymentLifecycle_14ipf_1649,._deploymentDetails_14ipf_1659 p{max-width:78ch}._deploymentScope_14ipf_1646{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:0;padding:20px 0;border-block:1px solid var(--border)}._deploymentScope_14ipf_1646 dd{margin:var(--space-related) 0 0}._deploymentLifecycle_14ipf_1649{padding-top:4px}._deploymentDetails_14ipf_1659{min-width:0;border:1px solid var(--border);border-radius:var(--radius-control)}._deploymentDetails_14ipf_1659 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_14ipf_1659 summary:hover{background:var(--bg-secondary)}._deploymentDetails_14ipf_1659 summary:focus-visible{outline:none;box-shadow:var(--focus-ring)}._deploymentDetails_14ipf_1659 p{padding:0 12px 12px}._deploymentDetails_14ipf_1659 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_14ipf_1652 ul,._deploymentScope_14ipf_1646{grid-template-columns:minmax(0,1fr)}}@media(max-width:600px){._deploymentGuide_14ipf_1634{padding:var(--card-padding-block)}._deploymentChecklist_14ipf_1652{padding:14px}._deploymentScope_14ipf_1646{gap:16px}}._inlineError_14ipf_1679{padding:10px 12px;border:1px solid var(--danger-border);border-radius:var(--radius-control);color:var(--error);font-size:11px}._profileDialog_14ipf_1147{display:flex;flex:1;width:100%;height:100%;min-width:0;min-height:0;flex-direction:column;overflow:hidden}._profileEditorDialog_14ipf_1682{width:100%}._profileDialogBody_14ipf_1683{display:flex;min-height:0;flex:1;flex-direction:column;gap:14px;overflow-y:auto;padding:16px 20px}._profileDialog_14ipf_1147 label{display:flex;flex-direction:column;gap:6px;color:var(--text-primary);font-size:11px}._profileDialogActions_14ipf_1197{flex:0 0 auto;justify-content:flex-end;padding:12px 20px 16px;border-top:1px solid var(--border);background:var(--bg-card)}._profileDeleteAction_14ipf_1686{margin-right:auto}._profileDeleteReason_14ipf_1687{max-width:320px;color:var(--warning-text);font-size:var(--type-control-size);line-height:var(--leading-body)}._bindingTabs_14ipf_1688{display:flex;gap:4px;border-bottom:1px solid var(--border)}._bindingTabs_14ipf_1688 button{min-height:36px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--text-secondary);cursor:pointer}._bindingTabs_14ipf_1688 button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--text-primary)}._bindingTabs_14ipf_1688 span{margin-left:4px;color:var(--text-muted);font-family:var(--font-code);font-size:10px}._bindingList_14ipf_1692{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--radius-control);overflow:hidden}._bindingEmpty_14ipf_1693{padding:18px;color:var(--text-muted);font-size:11px;text-align:center}._bindingItem_14ipf_1694{display:flex;min-height:54px;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid var(--border)}._bindingItem_14ipf_1694:last-child{border-bottom:0}._bindingItem_14ipf_1694>div{display:flex;min-width:0;flex-direction:column;gap:3px}._bindingItem_14ipf_1694 strong{color:var(--text-primary);font-size:12px}._bindingItem_14ipf_1694 span{overflow:hidden;color:var(--text-muted);font-family:var(--font-code);font-size:9px;text-overflow:ellipsis;white-space:nowrap}._bindingItem_14ipf_1694>._bindingItemCopy_14ipf_1699{min-width:0;flex:1}._bindingPresentation_14ipf_1700{display:flex;min-width:0;align-items:flex-end;gap:10px;margin-top:6px}._bindingPresentation_14ipf_1700 label{min-width:120px;flex:1;font-size:9px}._bindingPresentation_14ipf_1700 input:not([type=checkbox]){width:100%;min-height:30px;box-sizing:border-box}._bindingPresentation_14ipf_1700>._bindingPin_14ipf_1703{min-width:auto;flex:0 0 auto;flex-direction:row;align-items:center;gap:5px;padding-bottom:7px}._bindingPin_14ipf_1703 input{width:14px;height:14px;min-height:14px;padding:0;accent-color:var(--accent)}._bindingItem_14ipf_1694>._bindingItemActions_14ipf_1705{flex:0 0 auto;flex-direction:row;align-items:center;gap:4px}._bindingItemActions_14ipf_1705>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_14ipf_1705>button:hover:not(:disabled){border-color:var(--border);background:var(--bg-secondary);color:var(--text-primary)}._bindingItemActions_14ipf_1705>button:disabled{cursor:not-allowed;opacity:.35}._bindingDelete_14ipf_1709{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_14ipf_1709:hover{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger-text)}._addBindingButton_14ipf_1711{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_14ipf_1712{display:flex;flex-direction:column;gap:12px;margin:0;padding:14px;border:1px solid var(--accent);border-radius:var(--radius-control)}._bindingFormGrid_14ipf_1713{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}._bindingForm_14ipf_1712 input,._bindingForm_14ipf_1712 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_14ipf_1716{min-height:36px;flex-direction:row!important;align-items:center;align-self:end}._bindingBooleanDefault_14ipf_1716 input{width:16px;min-height:16px;height:16px;padding:0;accent-color:var(--accent)}._bindingPathField_14ipf_1718{grid-column:1 / -1}._rangeFields_14ipf_1719{display:grid;grid-column:1 / -1;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}._selectionButton_14ipf_1720{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_14ipf_1721{display:flex;justify-content:flex-end;gap:8px}._bindingError_14ipf_1722{padding:8px 10px;border:1px solid var(--danger-border);border-radius:var(--radius-control);color:var(--error);font-size:11px}._valueManagerShell_14ipf_1723{display:flex;flex:1;width:100%;height:100%;min-width:0;min-height:0;flex-direction:column;overflow:hidden}._valueSourceTabs_14ipf_1724{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_14ipf_1724 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_14ipf_1724 button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--text-primary)}._valueSourceTabs_14ipf_1724 button:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--accent)}._valueManagerBody_14ipf_1728{display:flex;min-height:0;flex:1;flex-direction:column;gap:12px;overflow-y:auto;padding:16px 20px 20px}._valueSourcePanel_14ipf_1729{display:flex;min-width:0;flex-direction:column;gap:12px}._registeredIntro_14ipf_1730{display:flex;flex-direction:column;gap:5px;padding:12px 14px;border-left:3px solid var(--accent);background:var(--accent-dim)}._registeredIntro_14ipf_1730 strong{color:var(--text-primary);font-size:var(--type-guidance-size);line-height:var(--leading-guidance)}._registeredIntro_14ipf_1730 p{margin:0;color:var(--text-secondary);font-size:var(--type-body-size);line-height:var(--leading-body)}._registeredIntro_14ipf_1730 span{color:var(--text-muted);font-size:var(--type-control-size)}._registeredEmpty_14ipf_1734{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_14ipf_1734>strong{color:var(--text-primary);font-size:var(--type-section-title-size);line-height:var(--leading-title)}._registeredEmpty_14ipf_1734>p{max-width:620px;margin:0;color:var(--text-secondary);font-size:var(--type-guidance-size);line-height:var(--leading-guidance)}._registeredSteps_14ipf_1737{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_14ipf_1737 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_14ipf_1737 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_14ipf_1740{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-related)}._registeredEmpty_14ipf_1734 button,._registeredEmptyActions_14ipf_1740 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_14ipf_1734 button:focus-visible,._registeredEmptyActions_14ipf_1740 button:focus-visible{outline:none;box-shadow:var(--focus-ring)}._adapterSetupList_14ipf_1745{display:flex;flex-direction:column;border:1px solid var(--warning-border);border-radius:var(--radius-control);overflow:hidden}._adapterSetupList_14ipf_1745>header{display:flex;flex-direction:column;gap:3px;padding:10px 12px;background:var(--warning-bg)}._adapterSetupList_14ipf_1745>header strong{color:var(--warning-text);font-size:var(--type-card-title-size)}._adapterSetupList_14ipf_1745>header span{color:var(--text-secondary);font-size:var(--type-body-size)}._adapterSetupRow_14ipf_1749{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;background:var(--bg-card)}._adapterSetupRow_14ipf_1749>div{display:flex;min-width:0;flex-direction:column;gap:4px}._adapterSetupRow_14ipf_1749 strong{color:var(--text-primary);font-size:var(--type-record-title-size);overflow-wrap:anywhere}._adapterSetupRow_14ipf_1749 span,._adapterSetupRow_14ipf_1749 code{color:var(--text-secondary);font-size:var(--type-control-size);overflow-wrap:anywhere}._adapterSetupRow_14ipf_1749 code{color:var(--text-muted)}._adapterSetupRow_14ipf_1749>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_14ipf_1749>button:focus-visible{outline:none;box-shadow:var(--focus-ring)}._adapterMethods_14ipf_1756{display:flex;flex-wrap:wrap;gap:4px 10px}._connectionGuide_14ipf_1757{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg-secondary)}._connectionGuide_14ipf_1757>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_14ipf_1757>summary:focus-visible{outline:none;box-shadow:var(--focus-ring)}._connectionGuide_14ipf_1757 ._registrationGuide_14ipf_1760{border:0;border-top:1px solid var(--border);border-radius:0}._adapterSetupContext_14ipf_1761{padding:8px 10px;border:1px solid var(--info-border);border-radius:var(--radius-control);background:var(--info-bg);color:var(--info-text)!important}._valueManagerBody_14ipf_1728 ._valueSearch_14ipf_1762,._firstProfileName_14ipf_1763{display:flex;flex-direction:column;gap:6px;color:var(--text-secondary);font-size:11px}._valueManagerBody_14ipf_1728 ._valueSearch_14ipf_1762 input,._firstProfileName_14ipf_1763 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_14ipf_1763 small{color:var(--text-muted);font-size:10px}._sourceIntro_14ipf_1767{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_14ipf_1767>div{display:flex;min-width:0;flex-direction:column;gap:5px}._sourceIntro_14ipf_1767 strong{color:var(--text-primary);font-size:13px}._sourceIntro_14ipf_1767 p{margin:0;color:var(--text-secondary);font-size:11px;line-height:1.5}._catalogGroups_14ipf_1771{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--radius-control);overflow:hidden}._catalogRow_14ipf_1772{display:flex;min-height:74px;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;border-bottom:1px solid var(--border)}._catalogRow_14ipf_1772:last-child{border-bottom:0}._catalogRow_14ipf_1772>div{display:flex;min-width:0;flex-direction:column;gap:3px}._catalogRow_14ipf_1772 strong{color:var(--text-primary);font-size:13px}._catalogRow_14ipf_1772 span{color:var(--text-secondary);font-size:11px}._catalogRow_14ipf_1772 code{overflow:hidden;color:var(--text-muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}._catalogRow_14ipf_1772 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_14ipf_1772 button:disabled{border-color:var(--border);background:var(--bg-secondary);color:var(--text-muted);cursor:not-allowed}._catalogRow_14ipf_1772>._candidateActions_14ipf_1780{display:flex;flex:0 0 auto;flex-direction:row;gap:8px}._candidateActions_14ipf_1780 button{min-width:0}._candidateEntry_14ipf_1782{min-width:0;border-bottom:1px solid var(--border)}._propertySelection_14ipf_1783{min-width:0;border:1px solid var(--border);border-radius:var(--radius-control)}._propertySelectionHeader_14ipf_1784{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_14ipf_1785{display:flex;min-width:0;flex-direction:column;gap:6px}._selectedInstance_14ipf_1785>span,._propertyPickerLabel_14ipf_1786{color:var(--text-secondary);font-size:var(--type-control-size)}._selectedInstance_14ipf_1785 strong{font-size:var(--type-body-size);overflow-wrap:anywhere}._selectedInstance_14ipf_1785 details{min-width:0;color:var(--text-secondary);font-size:var(--type-control-size)}._selectedInstance_14ipf_1785 summary{cursor:pointer;min-height:32px;padding-top:6px}._selectedInstance_14ipf_1785 code{display:block;overflow-wrap:anywhere;white-space:normal}._propertyPicker_14ipf_1786{position:relative;display:flex;min-width:0;flex-direction:column;gap:6px}._propertyPickerTrigger_14ipf_1792{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_14ipf_1792:hover,._propertyPickerTrigger_14ipf_1792[aria-expanded=true]{border-color:var(--accent);background:var(--accent-dim)}._propertyPickerTrigger_14ipf_1792:focus-visible,._propertyPickerPanel_14ipf_1794 :is(input,button,[role=option]):focus-visible{outline:none;box-shadow:var(--focus-ring)}._propertyPickerPanel_14ipf_1794{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_14ipf_1796{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:end;gap:8px;padding:12px;border-bottom:1px solid var(--border)}._propertyPickerSearchRow_14ipf_1796 label{display:flex;min-width:0;flex-direction:column;gap:6px;color:var(--text-secondary);font-size:var(--type-control-size)}._propertyPickerSearchRow_14ipf_1796 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_14ipf_1796 button{width:44px;height:44px;border:1px solid var(--border);border-radius:var(--radius-control);background:transparent;color:var(--text-secondary);cursor:pointer}._propertyPickerList_14ipf_1800{max-height:280px;overflow-y:auto;padding:6px}._propertyPickerList_14ipf_1800>p{margin:0;padding:18px 10px;color:var(--text-secondary);font-size:var(--type-body-size);text-align:center}._propertyPickerGroup_14ipf_1802{display:flex;flex-direction:column;gap:2px}._propertyPickerGroup_14ipf_1802+._propertyPickerGroup_14ipf_1802{margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}._propertyPickerGroup_14ipf_1802>span{padding:4px 8px;color:var(--text-muted);font-family:var(--font-label);font-size:var(--type-control-size)}._propertyPickerOption_14ipf_1805{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_14ipf_1805:hover,._propertyPickerOption_14ipf_1805[aria-selected=true]{background:var(--accent-dim)}._propertyPickerOption_14ipf_1805 small{color:var(--text-muted);font-size:var(--type-control-size)}._propertyPickerOption_14ipf_1805 svg{color:var(--accent)}._propertySelection_14ipf_1783 ._catalogRow_14ipf_1772 strong,._propertySelection_14ipf_1783 ._catalogRow_14ipf_1772 span{font-size:var(--type-body-size)}._propertySelection_14ipf_1783 ._catalogRow_14ipf_1772 span{overflow-wrap:anywhere}._compoundEditor_14ipf_1811{display:flex;width:100%;min-width:0;gap:8px;align-items:start}._compoundCoordinates_14ipf_1812{display:grid;width:100%;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}._compoundCoordinates_14ipf_1812 label{display:flex;min-width:0;flex-direction:column;gap:4px}._compoundCoordinates_14ipf_1812 label>span{color:var(--text-secondary);font-size:var(--type-control-size)}._valueDetailList_14ipf_1485>div:has(._compoundEditor_14ipf_1811){grid-template-columns:minmax(0,1fr)}._compoundCoordinates_14ipf_1812 label>span{white-space:nowrap}._compoundCoordinates_14ipf_1812 input{width:100%;min-width:0;min-height:44px;box-sizing:border-box}._compoundCoordinates_14ipf_1812 input[aria-invalid=true]{border-color:var(--error-border)}._compoundEditor_14ipf_1811>._colorSwatch_14ipf_1819{flex:0 0 44px;width:44px;min-width:44px;height:44px;margin-top:22px;padding:3px}@container (max-width: 680px){._propertySelectionHeader_14ipf_1784{grid-template-columns:minmax(0,1fr);gap:12px}}@media(max-width:760px){._propertySelectionHeader_14ipf_1784{grid-template-columns:minmax(0,1fr);gap:12px}}@media(max-width:430px){._propertyPicker_14ipf_1786{grid-template-columns:minmax(0,1fr)}._compoundEditor_14ipf_1811{flex-wrap:wrap}._compoundEditor_14ipf_1811>._colorSwatch_14ipf_1819{margin-top:0}}._candidateEntry_14ipf_1782:last-child{border-bottom:0}._candidateEntry_14ipf_1782>._catalogRow_14ipf_1772{border-bottom:0}._candidateEntry_14ipf_1782 strong{overflow-wrap:anywhere}._candidateActions_14ipf_1780 ._candidateAction_14ipf_1780{display:grid;min-height:44px;align-items:center;justify-items:center}._candidateAction_14ipf_1780>span{grid-area:1 / 1;color:inherit;font-size:var(--type-control-size);overflow-wrap:anywhere}._candidateActionSizer_14ipf_1836{visibility:hidden}._candidateAction_14ipf_1780[data-state=saved]{border-color:var(--success-border);background:var(--success-bg);color:var(--success-text);cursor:default}._candidateAction_14ipf_1780[data-state=pending]{border-color:var(--warning-border);background:var(--warning-bg);color:var(--warning-text);cursor:default}._candidateAction_14ipf_1780:focus-visible{outline:none;box-shadow:var(--focus-ring)}._candidateError_14ipf_1840{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_14ipf_1840 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_14ipf_1842{display:flex;flex:0 0 auto;justify-content:flex-end;padding:var(--space-section) 20px;border-top:1px solid var(--border)}._catalogDetails_14ipf_1843{margin-top:5px;color:var(--text-secondary);font-size:10px}._catalogDetails_14ipf_1843 summary{color:var(--text-secondary);cursor:pointer}._catalogDetails_14ipf_1843 dl{display:grid;gap:5px;margin:8px 0}._catalogDetails_14ipf_1843 dl>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px}._catalogDetails_14ipf_1843 dt{color:var(--text-muted)}._catalogDetails_14ipf_1843 dd{min-width:0;margin:0;overflow-wrap:anywhere}._catalogDetails_14ipf_1843 dd code{white-space:normal}._catalogDetails_14ipf_1843 p{margin:6px 0;color:var(--text-secondary);font-size:10px;line-height:1.5}._catalogDetails_14ipf_1843>button{min-height:32px;margin-top:3px;border-color:var(--border);background:var(--bg-card);font-size:10px}._inlineNotice_14ipf_1852{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_14ipf_1853{color:var(--text-muted);font-family:var(--font-code);font-size:10px}._pendingProfileAction_14ipf_1854{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_14ipf_1760{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px dashed var(--border);border-radius:var(--radius-control);background:var(--bg-secondary)}._registrationGuide_14ipf_1760 strong{color:var(--text-primary);font-size:14px}._registrationGuide_14ipf_1760 p{margin:0;color:var(--text-secondary);font-size:12px;line-height:1.5}._registrationGuide_14ipf_1760 code{align-self:flex-start;border-radius:6px;background:var(--bg-card);color:var(--accent);padding:5px 8px;font-size:11px}._registrationExample_14ipf_1859{border-top:1px solid var(--border);padding-top:10px}._registrationExample_14ipf_1859 summary{color:var(--text-primary);font-size:12px;cursor:pointer}._registrationExample_14ipf_1859 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_14ipf_1862{display:flex;flex-wrap:wrap;gap:8px}._registrationActions_14ipf_1862 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_14ipf_1862 button:focus-visible{outline:none;box-shadow:var(--focus-ring)}@media(max-width:760px){._valueSourceTabs_14ipf_1724{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:12px;overflow:visible}._valueSourceTabs_14ipf_1724 button{min-width:0;min-height:52px;padding:7px 4px;line-height:1.25;white-space:normal}._registeredSteps_14ipf_1737{grid-template-columns:repeat(2,minmax(0,1fr))}._sessionBar_14ipf_1152,._profileToolbar_14ipf_1146{align-items:stretch;flex-direction:column}._sessionActions_14ipf_1195,._profileActions_14ipf_1196{flex-wrap:wrap;justify-content:stretch}._sessionActions_14ipf_1195{min-width:0}._sessionActions_14ipf_1195 button,._profileActions_14ipf_1196 button{flex:1 1 120px}._liveGrid_14ipf_1308{grid-template-columns:minmax(0,1fr)}._controlRow_14ipf_1406,._watchRow_14ipf_1397{grid-template-columns:minmax(0,1fr);gap:9px}._valueToolbar_14ipf_1373,._historyToolbar_14ipf_1413{grid-template-columns:minmax(0,1fr)}._freshness_14ipf_1440{align-items:flex-start}._sessionIdentity_14ipf_1165 span{white-space:normal}._livePanel_14ipf_1315>header{align-items:stretch;flex-direction:column}._controlAvailability_14ipf_1358{max-width:none;align-items:flex-start;text-align:left}._profileEditorDialog_14ipf_1682{width:100%;max-width:100%;height:100%;max-height:100%}._valueManagerShell_14ipf_1723{width:100%;height:100%;max-width:100%;max-height:100%}._catalogRow_14ipf_1772{align-items:stretch;flex-direction:column}._catalogRow_14ipf_1772 button{width:100%}._catalogRow_14ipf_1772>._candidateActions_14ipf_1780{flex-direction:column}._registeredEmptyActions_14ipf_1740{width:100%;flex-direction:column}._registeredEmptyActions_14ipf_1740 button{width:100%}._adapterSetupRow_14ipf_1749{align-items:stretch;flex-direction:column}._adapterSetupRow_14ipf_1749>button{width:100%}._sourceIntro_14ipf_1767,._pendingProfileAction_14ipf_1854,._controlActions_14ipf_1469{align-items:stretch;flex-direction:column}._controlActions_14ipf_1469>._controlGate_14ipf_1361,._controlActions_14ipf_1469 button{width:100%}._bindingFormGrid_14ipf_1713,._rangeFields_14ipf_1719{grid-template-columns:minmax(0,1fr)}._bindingItem_14ipf_1694,._bindingPresentation_14ipf_1700{align-items:stretch;flex-direction:column}._bindingPresentation_14ipf_1700>._bindingPin_14ipf_1703{padding-bottom:0}._bindingItem_14ipf_1694>._bindingItemActions_14ipf_1705{align-self:flex-end}._bindingPathField_14ipf_1718,._rangeFields_14ipf_1719{grid-column:auto}}@media(max-width:720px){._sampleBannerRow_14ipf_22{flex-direction:column;align-items:stretch}._sampleActions_14ipf_65{justify-content:stretch}._primaryAction_14ipf_73,._secondaryAction_14ipf_74,._resetAction_14ipf_75{width:100%}._runSummary_14ipf_540{grid-template-columns:1fr}._summaryFacts_14ipf_601,._capabilityGrid_14ipf_846,._dimensionGrid_14ipf_642{grid-template-columns:1fr 1fr}._stepDetails_14ipf_790{grid-template-columns:1fr}._stepDisclosure_14ipf_291{grid-template-columns:18px 18px minmax(0,1fr) 14px}._stepStatus_14ipf_774,._historyTimestamp_14ipf_312{display:none}._historyItemMeta_14ipf_344,._historyEvidence_14ipf_400,._historyLimitation_14ipf_410,._historyError_14ipf_390{padding-left:0}._detailHeader_14ipf_429{padding:14px 16px}._detailBody_14ipf_485{padding:16px}}@media(max-width:420px){._dimensionGrid_14ipf_642,._capabilityGrid_14ipf_846{grid-template-columns:1fr}._sectionHeadingRow_14ipf_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}
@@ -1 +0,0 @@
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 +0,0 @@
1
- import{u as K,s as le,j as e,r,a as ce,b as I,g as je,c as fe,T as xe,A as ve,S as be}from"./index-DOEmzpkJ.js";import{C as Se,P as Ce}from"./PageHeader-DJRyLHjf.js";import{I as R}from"./InfoLabel-ZcP_cIQR.js";import{T as m}from"./TooltipText-3t8YedaH.js";import{s as a,u as Ne}from"./useSettings-B4O8NGPH.js";import{C as de}from"./ConfirmModal-Bs6DRyDJ.js";import{D as ue,f as pe,r as _e,s as ke,a as ge,d as se,S as ae,b as Pe}from"./sample-requests-D-1qxdk0.js";import"./ConfirmModal.module-DJksQHBd.js";function he({value:t}){const{t:s}=K(),o=le(t);if(!o)return null;const c=["wait","review_settings","review_external","reauthenticate","correct_input"].includes(o.nextAction??"")?o.nextAction:"inspect",n=o.traceId??o.clientOperationId??o.requestId??"";return e.jsxs("details",{children:[e.jsx("summary",{children:s("settings.license.supportDetails","Support details")}),e.jsx("p",{children:s(`settings.license.action.${c}`,"Use this support ID to investigate the request.")}),e.jsx("p",{children:[o.code,o.category,o.stage].filter(Boolean).join(" · ")}),e.jsxs("label",{children:[s("settings.license.supportReference","Support ID"),e.jsx("input",{readOnly:!0,value:n,onFocus:f=>f.currentTarget.select()})]}),o.persistence==="unavailable"&&e.jsx("p",{children:s("settings.license.persistenceUnavailable","Local storage failed; this session keeps the current access decision.")}),!o.serverTraceAvailable&&e.jsx("p",{children:s("settings.license.localReference","Local request only; no server trace was received.")})]})}function Le(){const[t,s]=r.useState();return r.useEffect(()=>{let o=!1,c=!1;async function n(){var i,g;if(!c){c=!0;try{const p=await fetch("/api/platform/status",{cache:"no-store"});if(!p.ok)return;const b=await p.json();o||s(le(b.diagnostic??((g=(i=b.auth)==null?void 0:i.usage)==null?void 0:g.diagnostic)))}catch{}finally{c=!1}}}n();const f=setInterval(()=>{n()},1e4);return()=>{o=!0,clearInterval(f)}},[]),e.jsx(he,{value:t})}const Re="_card_jz1ya_4",we="_cardEmbedded_jz1ya_14",He="_cardTitle_jz1ya_21",Be="_storageConsoleGrid_jz1ya_31",Ae="_storageUsageColumn_jz1ya_38",De="_storagePolicyColumn_jz1ya_39",$e="_usageRow_jz1ya_44",Me="_usageTotal_jz1ya_50",ze="_usageBreakdown_jz1ya_57",Ee="_usageCounts_jz1ya_63",Te="_storageFooter_jz1ya_70",Ie="_lastRunRow_jz1ya_79",Ue="_lastRunLabel_jz1ya_89",Fe="_errorIcon_jz1ya_95",Oe="_tooltip_jz1ya_103",qe="_cleanupRow_jz1ya_126",Ge="_cleanupLabel_jz1ya_133",We="_cleanupBtn_jz1ya_140",Ye="_cleanupBtnDanger_jz1ya_169",Ke="_retentionSection_jz1ya_182",Ve="_retentionTitle_jz1ya_188",Je="_retentionFieldset_jz1ya_196",Qe="_proOverlay_jz1ya_211",Ze="_modeSegments_jz1ya_223",Xe="_radioLabel_jz1ya_244",et="_radioLabelActive_jz1ya_265",tt="_presetGroup_jz1ya_279",st="_presetBtn_jz1ya_287",at="_presetBtnActive_jz1ya_310",it="_freeInput_jz1ya_317",nt="_inputError_jz1ya_334",ot="_inputUnit_jz1ya_338",rt="_cascadeRow_jz1ya_345",lt="_retentionActions_jz1ya_361",ct="_saveBtn_jz1ya_367",dt="_runNowBtn_jz1ya_395",ut="_errorMsg_jz1ya_439",pt="_freeInputHitArea_jz1ya_501",l={card:Re,cardEmbedded:we,cardTitle:He,storageConsoleGrid:Be,storageUsageColumn:Ae,storagePolicyColumn:De,usageRow:$e,usageTotal:Me,usageBreakdown:ze,usageCounts:Ee,storageFooter:Te,lastRunRow:Ie,lastRunLabel:Ue,errorIcon:Fe,tooltip:Oe,cleanupRow:qe,cleanupLabel:Ge,cleanupBtn:We,cleanupBtnDanger:Ye,retentionSection:Ke,retentionTitle:Ve,retentionFieldset:Je,proOverlay:Qe,modeSegments:Ze,radioLabel:Xe,radioLabelActive:et,presetGroup:tt,presetBtn:st,presetBtnActive:at,freeInput:it,inputError:nt,inputUnit:ot,cascadeRow:rt,retentionActions:lt,saveBtn:ct,runNowBtn:dt,errorMsg:ut,freeInputHitArea:pt};function gt(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 ht(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 mt({placeId:t,tier:s,currentPolicy:o,onSaved:c}){const{t:n}=K(),{trackEvent:f}=ce(),[i,g]=r.useState(o),[p,b]=r.useState(()=>[7,14,30,90].includes(o.ageDays??-1)?"":String(o.ageDays??30)),[S,k]=r.useState(()=>[100,500,1e3].includes(o.sizeMb??-1)?"":String(o.sizeMb??500)),[P,M]=r.useState(null),[x,v]=r.useState(!1),[z,w]=r.useState(!1),[y,H]=r.useState(!1),[L,D]=r.useState(null);r.useEffect(()=>{g(o);const h=[7,14,30,90],A=[100,500,1e3];b(h.includes(o.ageDays??-1)?"":String(o.ageDays??30)),k(A.includes(o.sizeMb??-1)?"":String(o.sizeMb??500))},[o]);const $=s==="basic",_=ie(i),j=ht(o,i),E=_&&!j&&!z,C=h=>{g(A=>{const O={...A,mode:h};return h==="age"&&(O.ageDays=parseInt(p,10)||30),h==="size"&&(O.sizeMb=parseInt(S,10)||500),O})},B=h=>{b(""),g(A=>({...A,ageDays:h}))},U=h=>{k(""),g(A=>({...A,sizeMb:h}))},F=h=>{b(h);const A=parseInt(h,10);Number.isNaN(A)||g(O=>({...O,ageDays:A}))},d=h=>{k(h);const A=parseInt(h,10);Number.isNaN(A)||g(O=>({...O,sizeMb:A}))},T=async()=>{if(D(null),f("dashboard_click_event",{click_target:"ui_studio_cleanup_save",page:"settings"}),gt(o,i)){try{const h=await pe(t,{mode:i.mode,ageDays:i.ageDays,sizeMb:i.sizeMb,cascadeSnapshots:i.cascadeSnapshots});M(h.dryRun),v(!0)}catch(h){D(h.message)}return}await W()},W=async()=>{w(!0);try{await ke(t,i),v(!1),c()}catch(h){throw D(h.message),h}finally{w(!1)}},u=async()=>{D(null),f("dashboard_click_event",{click_target:"ui_studio_cleanup_run_now",page:"settings"}),H(!0);try{await _e(t),c()}catch(h){D(h.message)}finally{H(!1)}},N=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","가 삭제됩니다 — 적용?")}`:"",V=i.mode==="age"&&!ie(i),G=i.mode==="size"&&!ie(i);return e.jsxs("div",{className:l.retentionSection,children:[e.jsx("h3",{className:l.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:l.proOverlay,title:n("uiStudio.cleanup.policy.proRequired","Pro에서 사용 가능"),children:e.jsx("div",{className:l.tooltip,children:n("uiStudio.cleanup.policy.proRequired","Pro에서 사용 가능")})}),e.jsxs("fieldset",{className:l.retentionFieldset,disabled:$,"aria-label":n("uiStudio.cleanup.policy.title","자동 삭제 정책"),style:$?{opacity:.45,pointerEvents:"none"}:void 0,children:[e.jsxs("div",{className:l.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:`${l.radioLabel} ${i.mode==="off"?l.radioLabelActive:""}`,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"off",checked:i.mode==="off",onChange:()=>C("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:`${l.radioLabel} ${i.mode==="age"?l.radioLabelActive:""}`,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"age",checked:i.mode==="age",onChange:()=>C("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:`${l.radioLabel} ${i.mode==="size"?l.radioLabelActive:""}`,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"size",checked:i.mode==="size",onChange:()=>C("size")}),n("uiStudio.cleanup.policy.modeSize","용량 기반 (size)")]})})]}),i.mode==="age"&&e.jsxs("div",{className:l.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:`${l.presetBtn} ${i.ageDays===h&&p===""?l.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:l.freeInputHitArea,children:e.jsx("input",{type:"number",className:`${l.freeInput} ${V?l.inputError:""}`,value:p,min:1,max:365,onChange:h=>F(h.target.value)})})}),e.jsxs("span",{className:l.inputUnit,children:["1–365",n("uiStudio.cleanup.policy.daysUnit","일")]})]}),i.mode==="size"&&e.jsxs("div",{className:l.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:`${l.presetBtn} ${i.sizeMb===h&&S===""?l.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:l.freeInputHitArea,children:e.jsx("input",{type:"number",className:`${l.freeInput} ${G?l.inputError:""}`,value:S,min:50,max:1e4,onChange:h=>d(h.target.value)})})}),e.jsxs("span",{className:l.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:l.cascadeRow,children:[e.jsx(Se,{checked:i.cascadeSnapshots,onChange:h=>g(A=>({...A,cascadeSnapshots:h.target.checked}))}),n("uiStudio.cleanup.policy.cascade","연결된 화면 캡처도 함께 삭제")]})}),e.jsxs("div",{className:l.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:l.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:l.runNowBtn,onClick:()=>void u(),disabled:y,children:n("uiStudio.cleanup.policy.runNow","저장된 정책으로 정리")})})]}),L&&e.jsx("div",{className:l.errorMsg,children:L})]})]}),x&&P&&e.jsx(ue,{title:n("uiStudio.cleanup.policy.confirm.title","정책 적용 확인"),message:N,danger:!0,confirmLabel:n("uiStudio.cleanup.policy.save","정책 저장"),busy:z,onConfirm:W,onClose:()=>v(!1)})]})}function yt({placeId:t,tier:s,onChanged:o,sampleUsage:c,sampleRetention:n,embedded:f=!1}){const{t:i}=K(),g=s==="basic"&&c!=null&&n!=null,[p,b]=r.useState(g?c:null),[S,k]=r.useState(g?n:null),[P,M]=r.useState(null),[x,v]=r.useState(null),[z,w]=r.useState(null),y=r.useCallback(async()=>{if(!g&&t!=null){M(null);try{const[C,B]=await Promise.all([ge(t),pe(t)]);b(C),k(B.policy)}catch(C){M(C.message)}}},[t,g]);r.useEffect(()=>{y()},[y]);const H=r.useCallback(()=>{y(),o==null||o()},[y,o]),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}),v(null),y(),o==null||o()}catch(C){throw w(C.message),C}}},[x,t,y,o]);function D(C){const B=i("uiStudio.cleanup.studioPreservedNote","This deletes saved change records and screenshots on disk only; Roblox Studio instances are not affected.");return C.kind==="keep7"?`${i("uiStudio.cleanup.cleanupConfirmMessage.keep7","7일 이전 변경 기록과 화면 캡처가 삭제됩니다. 이 작업은 되돌릴 수 없습니다.")} ${B}`:C.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:`${l.card} ${f?l.cardEmbedded:""}`,children:e.jsx("p",{className:l.errorMsg,children:P})});if(!p||!S)return e.jsx("div",{className:`${l.card} ${f?l.cardEmbedded:""}`,children:e.jsx("p",{style:{fontSize:12,color:"var(--text-muted)",margin:0},children:i("uiStudio.storage.loading","로딩 중...")})});const $=S.lastRunAt,_=S.lastRunStats,j=$?new Date($).toLocaleString():null,E=t??0;return e.jsxs("div",{className:`${l.card} ${f?l.cardEmbedded:""}`,children:[!f&&e.jsx("h3",{className:l.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:l.storageConsoleGrid,"data-testid":"ui-studio-storage-console-grid",children:[e.jsx("section",{className:l.storageUsageColumn,children:e.jsxs("div",{className:l.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:l.usageTotal,children:[i("uiStudio.storage.usageLabel","사용 중")," ",Y(p.totalBytes)]})}),e.jsxs("div",{className:l.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:l.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:l.storagePolicyColumn,children:e.jsx(mt,{placeId:E,tier:s,currentPolicy:S,onSaved:H})})]}),e.jsxs("div",{className:l.storageFooter,"data-testid":"ui-studio-storage-footer",children:[e.jsxs("div",{className:l.lastRunRow,children:[e.jsx("span",{className:l.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}),_&&e.jsxs("span",{children:["· ",i("uiStudio.storage.requestCount","변경 기록")," ",_.removedRequests,i("uiStudio.storage.countSuffix","개")," / ",i("uiStudio.storage.snapshotCount","화면 캡처")," ",_.removedSnapshots,i("uiStudio.storage.countSuffix","개")," / ",Y(_.freedBytes)," ",i("uiStudio.storage.lastRunFreed","회수")]}),_&&_.errors>0&&e.jsxs("span",{className:l.errorIcon,title:`${i("uiStudio.storage.lastRunErrors","오류")} ${_.errors}건`,children:["⚠",e.jsxs("span",{className:l.tooltip,children:[i("uiStudio.storage.lastRunErrors","오류")," ",_.errors,i("uiStudio.storage.countSuffix","건")]})]})]}):e.jsx("span",{children:i("uiStudio.storage.lastRunNever","—")})]}),e.jsxs("div",{className:l.cleanupRow,children:[e.jsx("span",{className:l.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:l.cleanupBtn,onClick:()=>v({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:l.cleanupBtn,onClick:()=>v({kind:"keep30"}),disabled:s==="basic",children:i("uiStudio.cleanup.keepLastNDays","최근 30일만 남기기").replace("{n}","30")})}),!f&&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:`${l.cleanupBtn} ${l.cleanupBtnDanger}`,onClick:()=>v({kind:"all"}),disabled:s==="basic",children:i("uiStudio.cleanup.deleteAll","전체 삭제…")})})]})]}),z&&e.jsx("div",{className:l.errorMsg,children:z}),x&&e.jsx(ue,{title:i("uiStudio.cleanup.cleanupConfirmTitle","정리 확인"),message:D(x),danger:!0,confirmLabel:i("common.delete","삭제"),onConfirm:L,onClose:()=>{v(null),w(null)}})]})}function ne(t,s){const o={placeId:String(t)};return s&&(o["preview.mode"]=s.mode,s.mode==="size"&&(o["preview.sizeMb"]=String(s.sizeMb))),I.get("/api/dashboard/changelog/cleanup",o)}function oe(t){return I.put("/api/dashboard/changelog/cleanup",t)}function jt(t){return I.post(`/api/dashboard/changelog/cleanup/run?placeId=${encodeURIComponent(t)}`)}const ft=[100,500,1e3];function re(t,s){return t.mode!==s.mode?!1:t.mode==="off"||s.mode==="size"&&t.sizeMb===s.sizeMb}function xt(t,s){return t.mode==="off"?!1:s.mode==="off"||t.sizeMb<s.sizeMb}function Q(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 vt({placeId:t,onChanged:s}){const{locale:o,t:c}=K(),[n,f]=r.useState(null),[i,g]=r.useState({mode:"size",sizeMb:500}),[p,b]=r.useState(t!==null),[S,k]=r.useState(!1),[P,M]=r.useState(!1),[x,v]=r.useState(!1),[z,w]=r.useState(!1),[y,H]=r.useState(null),L=r.useCallback(async()=>{if(t===null){f(null),b(!1);return}M(!1);try{const u=await ne(t);f(u),g(u.policy)}catch{M(!0)}finally{b(!1)}},[t]);r.useEffect(()=>{b(t!==null),L()},[L,t]);const D=r.useCallback(async u=>{k(!0),v(!1),w(!1);try{await oe(u),H(null),await L(),w(!0),s==null||s()}catch{v(!0)}finally{k(!1)}},[L,s]),$=r.useCallback(async()=>{if(!(!n||t===null||re(i,n.policy))){k(!0),v(!1),w(!1);try{if(xt(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{v(!0)}finally{k(!1)}}},[n,i,L,s,t]),_=r.useCallback(async()=>{if(t!==null){k(!0),v(!1),w(!1);try{await jt(t),await L(),s==null||s()}catch{v(!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,C=E??Math.max((j==null?void 0:j.bytes)??0,1),B=Math.min(100,((j==null?void 0:j.sessionBytes)??0)/C*100),U=Math.min(Math.max(0,100-B),((j==null?void 0:j.contextBytes)??0)/C*100),F=n?!re(i,n.policy):!1,d=u=>u.mode==="off"?c("settings.projectChanges.cleanup.unlimited","Unlimited"):`${u.sizeMb} MB`,T=r.useMemo(()=>{if(!y)return"";const u=y.preview.preview,N=c("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}",Q(u.estimatedFreedBytes));return u.wouldRemainOverLimitPlaceCount===0?N:`${N} ${c("settings.projectChanges.cleanup.confirm.protected","{places} Place may remain over the limit because active data is protected.").replace("{places}",u.wouldRemainOverLimitPlaceCount.toLocaleString())}`},[y,c]);if(t===null)return e.jsx("div",{className:a.projectChangesPanel,children:e.jsx("p",{className:a.projectChangesEmpty,children:c("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:c("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:c("settings.projectChanges.cleanup.loadFailed","Could not load storage settings.")}),e.jsx("button",{className:a.projectChangesSecondaryButton,type:"button",onClick:()=>{b(!0),L()},children:c("common.retry","Retry")})]});const W=E===null?c("settings.projectChanges.cleanup.usageUnlimited","{used} used · Unlimited").replace("{used}",Q(j.bytes)):c("settings.projectChanges.cleanup.usageLimited","{used} used of {limit}").replace("{used}",Q(j.bytes)).replace("{limit}",d(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:c("settings.projectChanges.cleanup.title","Storage management"),tooltip:c("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":c("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:[c("settings.projectChanges.cleanup.sessions","Sessions")," ",e.jsx("strong",{children:Q(j.sessionBytes)})]}),e.jsxs("span",{children:[c("settings.projectChanges.cleanup.contexts","Contexts")," ",e.jsx("strong",{children:Q(j.contextBytes)})]})]})]})]}),e.jsxs("section",{className:a.projectChangesPolicyColumn,children:[e.jsx("p",{className:a.projectChangesScope,children:c("settings.projectChanges.cleanup.scope","One setting applies the selected limit separately to every Place.")}),e.jsxs("fieldset",{className:a.projectChangesPolicyFieldset,disabled:S,children:[e.jsx("legend",{className:a.projectChangesPolicyLegend,children:c("settings.projectChanges.cleanup.limit","Limit per Place")}),e.jsxs("div",{className:a.projectChangesPresetGroup,children:[ft.map(u=>{const N=i.mode==="size"&&i.sizeMb===u;return e.jsx("button",{className:`${a.projectChangesPresetButton} ${N?a.projectChangesPresetButtonActive:""}`,type:"button","aria-pressed":N,onClick:()=>g({mode:"size",sizeMb:u}),children:c("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:c("settings.projectChanges.cleanup.unlimited","Unlimited")})]})]}),e.jsxs("div",{className:a.projectChangesActions,children:[e.jsx("button",{className:a.projectChangesSaveButton,type:"button",disabled:!F||S,onClick:()=>void $(),children:c("common.save","Save")}),e.jsx("button",{className:a.projectChangesSecondaryButton,type:"button",disabled:S,onClick:()=>void _(),children:c("settings.projectChanges.cleanup.runNow","Run saved policy")}),z&&e.jsx("span",{className:a.projectChangesSaved,role:"status",children:c("settings.projectChanges.cleanup.saved","Saved")})]})]})]}),n.selectedPlace.dryRun.wouldRemainOverLimit&&e.jsx("p",{className:a.projectChangesWarning,children:c("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:c("settings.projectChanges.cleanup.lastRun","Last cleanup")}),n.selectedPlace.lastRun?e.jsxs("span",{children:[new Date(n.selectedPlace.lastRun.ranAt).toLocaleString(o)," · ",c("settings.projectChanges.cleanup.lastRunSummary","{sessions} sessions · {bytes} freed").replace("{sessions}",n.selectedPlace.lastRun.deletedSessionCount.toLocaleString()).replace("{bytes}",Q(n.selectedPlace.lastRun.freedBytes))]}):e.jsx("span",{children:c("settings.projectChanges.cleanup.neverRun","Not run yet")})]}),x&&e.jsx("p",{className:a.projectChangesError,role:"alert",children:c("settings.projectChanges.cleanup.actionFailed","Could not update storage settings.")}),e.jsx(de,{open:y!==null,title:c("settings.projectChanges.cleanup.confirm.title","Apply this limit and clean saved changes?"),message:T,cancelLabel:c("common.cancel","Cancel"),confirmLabel:c("settings.projectChanges.cleanup.confirm.apply","Apply and clean"),loading:S,onCancel:()=>!S&&H(null),onConfirm:()=>{y&&D(y.policy)}})]})}const bt={toolsActivity:null,toolStats:null,toolSessions:null,syncLog:null,playtestReports:null,projectChanges:null,connectionLog:null},St={toolsActivity:null,toolStats:null,syncLog:null,playtestReports:null,projectChanges:null,connectionLog:null};function Ct(t){var s;return t?t.pluginConnected?t.activePlaceId:t.lastActivePlaceId??((s=t.places[0])==null?void 0:s.placeId)??null:null}async function q(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,o,c){return s===null?t("settings.dataHistory.metric.unavailable","Unavailable"):`${s.toLocaleString()} ${t(o,c)}`}function Z(t,s,o){const c=o===null?t("settings.dataHistory.metric.sizeUnavailable","size unavailable"):Y(o);return`${s} · ${c}`}function X(t,s){var c;const o=(c=t==null?void 0:t[s])==null?void 0:c.bytes;return typeof o=="number"&&Number.isFinite(o)?o:null}function Nt(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 _t({tier:t}){const{t:s}=K(),[o,c]=r.useState(bt),[n,f]=r.useState(St),[i,g]=r.useState(t==="basic"?ae:null),[p,b]=r.useState(null),[S,k]=r.useState(!0),[P,M]=r.useState(!0),[x,v]=r.useState(null),[z,w]=r.useState(()=>new Set),[y,H]=r.useState(null),[L,D]=r.useState(!1),[$,_]=r.useState(null),j=r.useCallback(async()=>{k(!0);const u=await q(je()),N=Ct(u);b(N);const[V,G,h,A,O,me,J]=await Promise.all([q(I.get("/api/dashboard/history",{limit:"1",offset:"0"})),q(I.get("/api/dashboard/tool-stats")),q(I.get("/sync/history",{limit:"1",offset:"0"})),q(I.get("/api/dashboard/playtest/history")),q(I.get("/api/dashboard/changelog",{limit:"1",offset:"0"})),q(I.get("/api/dashboard/connection-log")),q(I.get("/api/dashboard/storage-summary"))]),ye=t==="basic"?ae:N===null?null:await q(ge(N));c({toolsActivity:ee(V),toolStats:(G==null?void 0:G.totalCalls)??null,toolSessions:(G==null?void 0:G.totalSessions)??null,syncLog:ee(h),playtestReports:ee(A),projectChanges:ee(O),connectionLog:ee(me)}),f({toolsActivity:X(J,"toolsActivity"),toolStats:X(J,"toolStats"),syncLog:X(J,"syncLog"),playtestReports:X(J,"playtestReports"),projectChanges:X(J,"projectChanges"),connectionLog:X(J,"connectionLog")}),g(ye),k(!1)},[t]);r.useEffect(()=>{j()},[j]);const E=r.useCallback(u=>{w(N=>{if(N.has(u))return N;const V=new Set(N);return V.add(u),V}),v(N=>N===u?null:u)},[]),C=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:Z(s,te(s,o.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:Z(s,o.toolStats===null?s("settings.dataHistory.metric.unavailable","Unavailable"):`${o.toolStats.toLocaleString()} ${s("settings.dataHistory.metric.runs","runs")} · ${(o.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:Z(s,te(s,o.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:Z(s,te(s,o.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:Z(s,te(s,o.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:Z(s,te(s,o.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"}],[o,n,s]),B=async()=>{if(y){D(!0),_(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}),_(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 N=y.row.clearEndpoint;u&&p!==null&&(N=`${N}?placeId=${encodeURIComponent(p)}`),await I.post(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{_(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{D(!1)}}},U=t==="pro"?p:0,F=t==="pro"&&p!==null,d=(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:S?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:()=>M(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:[C.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"&&z.has("projectChanges")&&e.jsx("div",{id:"settings-project-changes-storage",className:`${a.dataHistoryDetail} ${a.projectChangesDataHistoryDetail}`,hidden:x!=="projectChanges",children:e.jsx(vt,{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:Nt(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")})})]})]}),z.has("uiStudio")&&e.jsx("div",{id:"settings-ui-studio-storage",className:`${a.dataHistoryDetail} ${a.uiStudioDataHistoryDetail}`,hidden:x!=="uiStudio",children:e.jsx(yt,{placeId:U,tier:t,onChanged:j,embedded:!0,...t==="basic"?{sampleUsage:ae,sampleRetention:Pe}:{}})})]}),$&&e.jsx("p",{className:a.inlineStatus,children:$})]})]}),e.jsx(de,{open:y!==null,title:d?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:d?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||d?s("settings.dataHistory.clearAll","Clear all"):s("common.clear","Clear"),loading:L,onCancel:()=>!L&&H(null),onConfirm:()=>void B()})]})}const kt=r.forwardRef(function({autoOpen:s,settingsFilePath:o,saving:c,targeted:n,updateDashboardPreferences:f},i){const{t:g}=K(),[p,b]=r.useState("idle"),S="settings-dashboard-auto-open-label",k=c||p==="saving",P=async x=>{b("saving");try{await f({autoOpen:x}),b("saved")}catch{b("error")}},M=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:S,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":S,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:o})})]}),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:M})]})}),Pt={en:"English",ko:"한국어",es:"Español","pt-br":"Português (BR)",ja:"日本語",id:"Bahasa Indonesia",de:"Deutsch","fr-fr":"Français"};function Lt(t){return t==="active"?a.statusActive:t==="grace"?a.statusGrace:t==="invalid"||t==="revoked"?a.statusError:a.statusInactive}function Rt(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 wt(t,s){return t.provisional?{label:t.tier==="pro"?s("settings.license.provisional","Temporary Pro access"):s("settings.license.verificationRequired","Verification required"),tooltip:s("settings.license.provisionalHint","Verification is pending. Temporary access keeps its original expiry."),detail:`${t.graceUntil?new Date(t.graceUntil*1e3).toLocaleString():""}${t.provisional.persistence==="unavailable"?` · ${s("settings.license.persistenceUnavailable","Available in this session; local storage failed.")}`:""}`,detailTone:a.licenseNoticeWarning}: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 Tt(){const{t,selectedLocale:s,setLocale:o}=K(),{trackEvent:c}=ce(),{search:n}=fe(),{settings:f,license:i,licenseControlsDisabled:g,licenseSubmitting:p,licenseMessage:b,activateLicense:S,refreshLicense:k,resetLicense:P,saving:M,updateDashboardPreferences:x,loading:v}=Ne(),[z,w]=r.useState(""),y=i?wt(i,t):null,H=Rt(i),L=H&&(i==null?void 0:i.refreshBlockedReason)!=="missing_session_token",D=H,$=H?i==null?void 0:i.maskedKey:void 0,_=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),C=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||v)return;const d=E.current;if((T=d==null?void 0:d.scrollIntoView)==null||T.call(d,{block:"start",behavior:"smooth"}),B.current&&!B.current.disabled){B.current.focus();return}d==null||d.focus()},[v,g,p,U]),r.useEffect(()=>{var T;if(!F||v)return;const d=C.current;(T=d==null?void 0:d.scrollIntoView)==null||T.call(d,{block:"start",behavior:"smooth"}),d==null||d.focus()},[v,F]),v?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(Ce,{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 d=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} ${Lt(i.status)}`}),e.jsx(m,{text:(d==null?void 0:d.tooltip)??t(`settings.license.${i.status}.tooltip`,"Current license activation state."),children:(d==null?void 0:d.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:$})})]}),_&&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:_})})]})]}),(d==null?void 0:d.detail)&&e.jsx("p",{className:`${a.licenseNotice} ${d.detailTone}`,children:i.refreshBlockedReason==="missing_session_token"?t("settings.license.detail.manualActivation","Manual activation required to restore Pro access."):d.detail}),i.refreshBlockedReason==="missing_session_token"&&e.jsx("p",{className:`${a.licenseNotice} ${a.licenseNoticeMuted}`,children:d==null?void 0:d.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:xe.settingsLicense,target:"_blank",rel:"noopener noreferrer",onClick:()=>c("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||!D,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:z,disabled:g||p,onChange:d=>w(d.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 S(z)&&w(""))()},children:p?t("common.loading"):t("settings.license.activate","Activate License")})})]}),b&&e.jsx("p",{className:a.licenseMessage,children:b}),e.jsx(he,{value:i==null?void 0:i.diagnostic}),e.jsx(Le,{})]})]})]}),e.jsx(_t,{tier:j}),f&&e.jsx(kt,{ref:C,autoOpen:f.dashboard.autoOpen,settingsFilePath:f.dashboard.settingsFilePath,saving:M,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")})})]}),f?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:f.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:f.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:d=>o(d.target.value),children:[e.jsx("option",{value:ve,children:t("settings.language.auto","Auto")}),be.map(d=>e.jsx("option",{value:d,children:Pt[d]??d},d))]})})]})]})]})}export{Tt as Component};
@@ -1 +0,0 @@
1
- import{u as H,r as u,j as a,C as z,G as U,g as G,w as V,p as Y,q as B,t as D,y as F}from"./index-DOEmzpkJ.js";import{B as L}from"./PageHeader-DJRyLHjf.js";import{P as Q,a as J}from"./PlaceSelectOptions-CM4-kAp6.js";const X="_scope_1i8qy_1",Z="_main_1i8qy_13",ee="_label_1i8qy_22",ce="_selectorLabel_1i8qy_30",le="_placeSelect_1i8qy_38",ae="_name_1i8qy_54",te="_id_1i8qy_65",ne="_scopeBadge_1i8qy_72",oe="_copy_1i8qy_76",se="_note_1i8qy_88",re="_folderDetails_1i8qy_92",ie="_shortcuts_1i8qy_96",de="_shortcutsTrigger_1i8qy_103",pe="_shortcutLink_1i8qy_126",ue="_shortcutsPopover_1i8qy_131",s={scope:X,main:Z,label:ee,selectorLabel:ce,placeSelect:le,name:ae,id:te,scopeBadge:ne,copy:oe,note:se,folderDetails:re,shortcuts:ie,shortcutsTrigger:de,shortcutLink:pe,shortcutsPopover:ue};function C(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>0}function g(e,c){return Y(e.places,c)}function $(e){var c;return e.lastActivePlaceId!==null?e.lastActivePlaceId:((c=e.places[0])==null?void 0:c.placeId)??null}function T(e){var c;if(e.pluginConnected&&e.activePlaceId!==null){const l=e.places.filter(n=>n.placeId===e.activePlaceId);if(g(e,e.activePlaceId)||l.length===0)return e.activePlaceId}if(e.lastActivePlaceId!==null){const l=e.places.filter(n=>n.placeId===e.lastActivePlaceId);if(g(e,e.lastActivePlaceId)||l.length===0)return e.lastActivePlaceId}return((c=V(e.places))==null?void 0:c.placeId)??null}function fe(e,c,l){var n;return c?((n=g(e,typeof l=="number"?l:null))==null?void 0:n.placeId)??T(e):e.pluginConnected&&e.activePlaceId!==null?e.activePlaceId:$(e)}function M(e,c){const l=g(e,c);return(l==null?void 0:l.universeId)!==void 0?l.universeId:c===e.activePlaceId?e.activeUniverseId??null:c===e.lastActivePlaceId?e.lastActiveUniverseId??null:null}function ve(e,c,l){if(!C(e))return[];const n=[];return C(c)&&n.push({label:l("placeScope.shortcuts.settings","Place settings"),href:`https://create.roblox.com/dashboard/creations/experiences/${c}/places/${e}/configure`},{label:l("placeScope.shortcuts.experience","Experience management"),href:`https://create.roblox.com/dashboard/creations/experiences/${c}/overview`}),n.push({label:l("placeScope.shortcuts.roblox","View on Roblox"),href:`https://www.roblox.com/games/${e}`}),n}function he(e,c){if(e.pluginConnected&&e.activePlaceId!==null){const o=g(e,e.activePlaceId),t=o?B(e.places,o.placeId):!1,r=c("placeScope.folder.unresolvedPlace","Place {placeId}").replace("{placeId}",String(e.activePlaceId));return{label:c("placeScope.current.label","Current Place"),placeId:e.activePlaceId,placeName:e.activePlaceName??(t?r:o==null?void 0:o.placeName)??c("placeScope.unknownPlace","Unknown place"),badge:c("placeScope.connected","Studio connected"),connected:(o==null?void 0:o.isConnected)??!0,folderUnresolved:t,hasSyncMetadata:o?D(e.places,o):void 0,note:null}}const l=$(e),n=g(e,l);if(l!==null){const o=l===e.lastActivePlaceId?e.lastActivePlaceName:null,t=n?B(e.places,n.placeId):!1,r=c("placeScope.folder.unresolvedPlace","Place {placeId}").replace("{placeId}",String(l));return{label:c("placeScope.lastActive.label","Last Active Place"),placeId:l,placeName:o??(t?r:n==null?void 0:n.placeName)??c("placeScope.unknownPlace","Unknown place"),badge:c("placeScope.stored","Stored data"),connected:!1,folderUnresolved:t,hasSyncMetadata:n?D(e.places,n):void 0,note:c("placeScope.stored.note","No connected Studio currently has this place open.")}}return{label:c("placeScope.noPlace.label","Place scope"),placeId:null,placeName:c("placeScope.noPlace.value","No place data available yet"),badge:c("placeScope.noPlace.badge","No place"),connected:!1,folderUnresolved:!1,hasSyncMetadata:void 0,note:c("placeScope.noPlace.note","Connect WEPPY Plugin and sync a place to create place-scoped data.")}}function be(e,c,l){const n=typeof c=="number"?g(e,c):null,o=T(e),t=(n==null?void 0:n.placeId)??o,r=g(e,t);if(t===null)return{label:l("placeScope.noPlace.label","Place scope"),placeId:null,placeName:l("placeScope.noPlace.value","No place data available yet"),badge:l("placeScope.noPlace.badge","No place"),connected:!1,folderUnresolved:!1,hasSyncMetadata:void 0,note:l("placeScope.noPlace.note","Connect WEPPY Plugin and sync a place to create place-scoped data.")};const S=(r==null?void 0:r.isConnected)??!1,f=e.activePlaceId===t,p=t===e.lastActivePlaceId?e.lastActivePlaceName:null,b=f?e.activePlaceName:null,P=r?B(e.places,r.placeId):!1,v=l("placeScope.folder.unresolvedPlace","Place {placeId}").replace("{placeId}",String(t));return{label:f?l("placeScope.current.label","Current Place"):l("placeScope.selected.label","Selected Place"),placeId:t,placeName:b??p??(P?v:r==null?void 0:r.placeName)??l("placeScope.unknownPlace","Unknown place"),badge:S?l("placeScope.connected","Studio connected"):l("placeScope.stored","Stored data"),connected:S,folderUnresolved:P,hasSyncMetadata:r?D(e.places,r):void 0,note:S?null:l("placeScope.stored.note","No connected Studio currently has this place open.")}}function Se(e,c){switch(e){case"sync":return c("placeScope.surface.sync","Sync status and logs use this place.");case"changelog":return c("placeScope.surface.changelog","Changelog sessions use this place.");case"playtest":return c("placeScope.surface.playtest","Playtest reports use this place.");case"uiStudio":return c("placeScope.surface.uiStudio","UI captures and change history use this place.");case"tools":return c("placeScope.surface.tools","Tool history and statistics use this place.")}}function Le({surface:e,selectable:c=!1,selectedPlaceId:l=null,onSelectedPlaceIdChange:n}){const{t:o}=H(),[t,r]=u.useState(null),[S,f]=u.useState(!0),[p,b]=u.useState(null),P=u.useRef(null),v=u.useRef(null),E=u.useId();u.useEffect(()=>{let i=!1;async function N(){try{const w=await G();i||r(w)}catch{i||r(null)}finally{i||f(!1)}}return N(),()=>{i=!0}},[]),u.useEffect(()=>{if(!c||!t)return;const i=T(t);(typeof l!="number"||!g(t,l))&&l!==i&&(n==null||n(i))},[n,c,l,t]);const I=t?fe(t,c,l):null,h=t?M(t,I):null,_=`${I??"none"}:${h??"none"}`;if(u.useEffect(()=>{b(i=>i===_?i:null)},[_]),u.useEffect(()=>{function i(){b(null)}function N(k){var j;p!==null&&!((j=P.current)!=null&&j.contains(k.target))&&i()}function w(k){var j;p!==null&&k.key==="Escape"&&(k.preventDefault(),i(),(j=v.current)==null||j.focus())}return document.addEventListener("pointerdown",N),document.addEventListener("keydown",w),()=>{document.removeEventListener("pointerdown",N),document.removeEventListener("keydown",w)}},[p]),S)return a.jsx("div",{className:s.scope,"aria-live":"polite",children:a.jsx("span",{className:s.label,children:o("placeScope.loading","Loading place scope...")})});if(!t)return a.jsx("div",{className:s.scope,"aria-live":"polite",children:a.jsx("span",{className:s.label,children:o("placeScope.unavailable","Place scope unavailable")})});const d=c?be(t,l,o):he(t,o),m=z(t),x=typeof d.placeId=="number"?String(d.placeId):"",O=c&&t.places.length>0,W=M(t,d.placeId),q=ve(d.placeId,W,o),R=_,A=p===R;return a.jsxs("div",{className:s.scope,"aria-live":"polite",children:[a.jsxs("div",{className:s.main,children:[O?a.jsxs(a.Fragment,{children:[a.jsxs("label",{className:s.selectorLabel,children:[a.jsx("span",{className:s.label,children:o("placeScope.selector.label","Place data")}),a.jsxs("select",{className:s.placeSelect,value:x,onChange:i=>{const N=Number.parseInt(i.currentTarget.value,10);b(null),n==null||n(Number.isInteger(N)?N:null)},children:[d.placeId===null?a.jsx("option",{value:"",disabled:!0,children:o("placeScope.selector.noneSelectable","No selectable Place folder")}):null,a.jsx(Q,{places:t.places,confirmedNames:m,t:o})]})]}),a.jsx("span",{className:s.label,children:d.label}),a.jsx("span",{className:s.name,children:d.placeName})]}):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:s.label,children:d.label}),a.jsx("span",{className:s.name,children:d.placeName})]}),d.placeId!==null?a.jsx("span",{className:s.id,children:d.placeId}):null,a.jsx(L,{variant:d.connected?"success":"neutral",shape:"pill",className:s.scopeBadge,children:d.badge}),d.folderUnresolved?a.jsx(L,{variant:"neutral",shape:"pill",className:s.scopeBadge,children:o("placeScope.folder.unresolved","Representative folder unconfirmed")}):null,d.hasSyncMetadata===!1?a.jsx(L,{variant:"neutral",shape:"pill",className:s.scopeBadge,children:o("placeScope.folder.noSyncHistory","No sync history")}):null]}),a.jsxs("div",{className:s.copy,children:[a.jsx("span",{children:Se(e,o)}),d.note?a.jsx("span",{className:s.note,children:d.note}):null]}),t.places.some(i=>U(i)==="duplicate"||U(i)==="unresolved")?a.jsx("div",{className:s.folderDetails,children:a.jsx(J,{places:t.places,t:o})}):null,q.length>0?a.jsxs("div",{className:s.shortcuts,ref:P,children:[a.jsxs("button",{ref:v,type:"button",className:s.shortcutsTrigger,"aria-controls":E,"aria-expanded":A,onClick:()=>{b(A?null:R)},children:[o("placeScope.shortcuts.trigger","Quick links"),a.jsx("span",{"aria-hidden":"true",children:"↗"})]}),A?a.jsx("div",{id:E,className:s.shortcutsPopover,role:"group","aria-label":o("placeScope.shortcuts.label","Place shortcuts"),children:q.map(i=>a.jsxs("a",{className:s.shortcutLink,href:i.href,target:"_blank",rel:"noopener noreferrer",children:[a.jsx("span",{children:i.label}),a.jsx("span",{"aria-hidden":"true",children:"↗"})]},i.href))}):null]}):null]})}const ge="_backdrop_1sgib_1",Pe="_dialog_1sgib_19",K={backdrop:ge,dialog:Pe},_e=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(", ");function Ne(e){return Array.from(e.querySelectorAll(_e))}function xe(e){const c=document.activeElement;if(!(c instanceof HTMLElement))return!1;const l=c.closest('[role="dialog"][aria-modal="true"]');return l!==null&&l!==e}function Be({open:e,ariaLabel:c,onClose:l,returnFocusTo:n=null,initialFocusRef:o,dismissDisabled:t=!1,children:r,testId:S}){const f=u.useRef(null),p=u.useRef(l),b=u.useRef(t),P=u.useRef(null);return p.current=l,b.current=t,u.useEffect(()=>{if(!e)return;const v=f.current;if(!v)return;const E=document.body.style.overflow;P.current=n??(document.activeElement instanceof HTMLElement?document.activeElement:null),document.body.style.overflow="hidden",((o==null?void 0:o.current)??v).focus();const I=h=>{if(xe(v))return;if(h.key==="Escape"){h.preventDefault(),b.current||p.current();return}if(h.key!=="Tab")return;const _=Ne(v);if(_.length===0){h.preventDefault(),v.focus();return}const d=_[0],m=_[_.length-1],x=document.activeElement;h.shiftKey&&(x===d||!v.contains(x))?(h.preventDefault(),m.focus()):!h.shiftKey&&(x===m||!v.contains(x))&&(h.preventDefault(),d.focus())};return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I),document.body.style.overflow=E;const h=n??P.current;h&&document.contains(h)&&h.focus()}},[o,e,n]),e?F.createPortal(a.jsx("div",{className:K.backdrop,"data-testid":S,role:"presentation",onClick:v=>{v.target===v.currentTarget&&!t&&p.current()},children:a.jsx("section",{ref:f,className:K.dialog,role:"dialog","aria-modal":"true","aria-label":c,tabIndex:-1,children:r})}),document.body):null}const Ie="_tabBar_jefog_2",je="_tabs_jefog_9",ye="_actions_jefog_14",Ee="_tab_jefog_2",me="_tabActive_jefog_52",y={tabBar:Ie,tabs:je,actions:ye,tab:Ee,tabActive:me};function De({items:e,value:c,onChange:l,ariaLabel:n,className:o,rightActions:t}){const r=u.useRef(null),S=u.useRef(null);return u.useEffect(()=>{const f=()=>{const p=r.current,b=S.current;!p||!b||typeof p.scrollTo!="function"||p.scrollTo({left:Math.max(0,b.offsetLeft+b.offsetWidth/2-p.clientWidth/2),behavior:"auto"})};return f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[c]),a.jsxs("div",{ref:r,className:[y.tabBar,o].filter(Boolean).join(" "),role:"tablist","aria-label":n,children:[a.jsx("div",{className:y.tabs,children:e.map(f=>{const p=f.key===c;return a.jsx("button",{ref:p?S:void 0,type:"button",role:"tab","aria-selected":p,"data-testid":f.testId,className:[y.tab,p?y.tabActive:""].filter(Boolean).join(" "),onClick:()=>l(f.key),children:f.label},f.key)})}),t?a.jsx("div",{className:y.actions,children:t}):null]})}export{Be as C,De as T,Le as a};
@@ -1 +0,0 @@
1
- import{j as e,r as i,b as I,D as ht,u as at,X as mt,a as bt,k as xt}from"./index-DOEmzpkJ.js";import{P as ft}from"./PageHeader-DJRyLHjf.js";import{T as M}from"./TooltipText-3t8YedaH.js";import{C as _t}from"./ConfirmModal-Bs6DRyDJ.js";import{a as gt,T as jt,C as yt}from"./Tabs-CKXzr1J0.js";import"./ConfirmModal.module-DJksQHBd.js";import"./PlaceSelectOptions-CM4-kAp6.js";const Ct="_wrapper_1s3lp_2",kt="_table_1s3lp_7",Tt="_sortable_1s3lp_32",Nt="_sortArrow_1s3lp_41",St="_clickable_1s3lp_52",wt="_empty_1s3lp_57",A={wrapper:Ct,table:kt,sortable:Tt,sortArrow:Nt,clickable:St,empty:wt};function vt({columns:t,data:o,sortBy:c,sortDir:k="asc",onSort:b,onRowClick:l,rowKey:N,emptyMessage:S}){return e.jsx("div",{className:A.wrapper,children:e.jsxs("table",{className:A.table,children:[e.jsx("thead",{children:e.jsx("tr",{children:t.map(h=>e.jsxs("th",{style:h.width?{width:h.width}:void 0,className:h.sortable?A.sortable:void 0,onClick:h.sortable&&b?()=>b(h.key):void 0,children:[e.jsx("span",{children:h.label}),h.sortable&&c===h.key&&e.jsx("span",{className:A.sortArrow,children:k==="asc"?"▴":"▾"})]},h.key))})}),e.jsx("tbody",{children:o.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:t.length,className:A.empty,children:S||"No data"})}):o.map((h,w)=>{const C=N?N(h):String(w);return e.jsx("tr",{className:l?A.clickable:void 0,tabIndex:l?-1:void 0,onClick:l?_=>l(h,_.currentTarget):void 0,children:t.map(_=>e.jsx("td",{children:_.render?_.render(h):String(h[_.key]??"")},_.key))},C)})})]})})}function Mt(t){return{...t,sequenceNumber:typeof t.sequenceNumber=="number"?t.sequenceNumber:void 0,executionTimeMs:typeof t.executionTimeMs=="number"?t.executionTimeMs:void 0}}const Bt=50;function Pt(t){if(typeof t=="number")return{placeId:String(t)}}function Y(t,o){return typeof o!="number"?t:`${t}?placeId=${encodeURIComponent(String(o))}`}function Lt(t){const o=(t==null?void 0:t.placeId)??null,[c,k]=i.useState(null),[b,l]=i.useState(!0),[N,S]=i.useState([]),[h,w]=i.useState(0),[C,_]=i.useState(!1),[U,O]=i.useState(!0),[m,E]=i.useState(0),[g,F]=i.useState(""),B=i.useRef(null),T=i.useCallback(async()=>{l(!0);try{const j=Pt(o),u=j?await I.get("/api/dashboard/tool-stats",j):await I.get("/api/dashboard/tool-stats");k(u)}catch{}finally{l(!1)}},[o]),x=i.useCallback(async(j,u)=>{O(!0);try{const P={limit:String(Bt),offset:String(j)};u&&(P.tool=u),typeof o=="number"&&(P.placeId=String(o));const H=await I.get("/api/dashboard/history",P);S(H.entries.map(Mt)),w(H.total),_(H.hasMore)}catch{S([]),w(0),_(!1)}finally{O(!1)}},[o]),D=i.useCallback(()=>{T(),x(m,g)},[x,T,m,g]),V=i.useCallback(async()=>{await I.post(Y("/api/dashboard/tools/history/clear",o)),x(m,g)},[x,m,g,o]),K=i.useCallback(async()=>{await I.post(Y("/api/dashboard/tools/statistics/clear",o)),T()},[T,o]);return i.useEffect(()=>{T()},[T]),i.useEffect(()=>{x(m,g)},[x,m,g]),i.useEffect(()=>{const j=new ht;B.current=j,j.connect();const u=j.on("command",()=>{T(),x(m,g)});return()=>{u(),j.disconnect(),B.current=null}},[x,T,m,g]),{statistics:c,statsLoading:b,history:N,historyTotal:h,historyHasMore:C,historyLoading:U,historyOffset:m,historyToolFilter:g,setHistoryOffset:E,setHistoryToolFilter:F,refresh:D,clearHistory:V,clearStatistics:K}}const Et="_page_1rtjt_2",Ht="_card_1rtjt_14",At="_cardToolbar_1rtjt_21",Rt="_sectionTitle_1rtjt_29",It="_dangerButton_1rtjt_36",Ot="_proBadge_1rtjt_55",Ft="_statusOk_1rtjt_70",Dt="_statusFallback_1rtjt_83",$t="_statusUnsupported_1rtjt_96",qt="_statusWarning_1rtjt_109",Wt="_statusError_1rtjt_122",Ut="_tierBasic_1rtjt_136",Vt="_tierPro_1rtjt_140",Kt="_tierMixed_1rtjt_145",Gt="_filterRow_1rtjt_156",zt="_filterLabel_1rtjt_163",Jt="_filterSelect_1rtjt_172",Qt="_detailsButton_1rtjt_187",Zt="_detailShell_1rtjt_210",Xt="_detailHeader_1rtjt_218",Yt="_detailHeading_1rtjt_229",te="_detailTitle_1rtjt_236",ee="_detailRecordName_1rtjt_243",se="_detailHeaderActions_1rtjt_252",ae="_detailCloseButton_1rtjt_259",oe="_detailBody_1rtjt_282",le="_detailSection_1rtjt_294",re="_detailList_1rtjt_313",ie="_detailItem_1rtjt_319",ne="_detailLabel_1rtjt_326",ce="_detailValue_1rtjt_331",de="_pre_1rtjt_337",ue="_pagination_1rtjt_355",pe="_pageInfo_1rtjt_363",he="_btn_1rtjt_369",me="_tierDistribution_1rtjt_397",be="_tierBarWrap_1rtjt_401",xe="_tierBarBasic_1rtjt_409",fe="_tierBarPro_1rtjt_414",_e="_tierLabels_1rtjt_419",ge="_statsTableWrap_1rtjt_428",je="_statsTable_1rtjt_428",ye="_sortableHeader_1rtjt_460",Ce="_sortArrow_1rtjt_465",ke="_statsToolRow_1rtjt_469",Te="_statsActionRow_1rtjt_477",Ne="_expandButton_1rtjt_481",Se="_expandIcon_1rtjt_493",we="_actionLabel_1rtjt_498",ve="_emptyStats_1rtjt_505",Me="_summaryLine_1rtjt_511",a={page:Et,card:Ht,cardToolbar:At,sectionTitle:Rt,dangerButton:It,proBadge:Ot,statusOk:Ft,statusFallback:Dt,statusUnsupported:$t,statusWarning:qt,statusError:Wt,tierBasic:Ut,tierPro:Vt,tierMixed:Kt,filterRow:Gt,filterLabel:zt,filterSelect:Jt,detailsButton:Qt,detailShell:Zt,detailHeader:Xt,detailHeading:Yt,detailTitle:te,detailRecordName:ee,detailHeaderActions:se,detailCloseButton:ae,detailBody:oe,detailSection:le,detailList:re,detailItem:ie,detailLabel:ne,detailValue:ce,pre:de,pagination:ue,pageInfo:pe,btn:he,tierDistribution:me,tierBarWrap:be,tierBarBasic:xe,tierBarPro:fe,tierLabels:_e,statsTableWrap:ge,statsTable:je,sortableHeader:ye,sortArrow:Ce,statsToolRow:ke,statsActionRow:Te,expandButton:Ne,expandIcon:Se,actionLabel:we,emptyStats:ve,summaryLine:Me},Be=new Set(["clientId","placeId","pinnedTarget","recentPriority","globalQueue"]);function tt(t){return typeof t=="string"&&t.length>0?t:void 0}function Pe(t){if(!Array.isArray(t))return;const o=t.filter(c=>typeof c=="string"&&c.length>0);return o.length>0?o:void 0}function Le(t){const o=t.result??{};return{requestedCommand:t.requestedCommand??tt(o.requestedCommand),executedCommand:t.executedCommand??tt(o.executedCommand),alternatives:t.alternatives??Pe(o.alternatives)}}function ot(t,o){switch(t.status){case"fallback":return{label:o("tools.badge.fallback","FALLBACK"),tooltip:o("tools.badge.fallback.tooltip","The requested Pro action succeeded via a Basic fallback."),className:a.statusFallback};case"unsupported":return{label:o("tools.badge.unsupported","UNSUPPORTED"),tooltip:o("tools.badge.unsupported.tooltip","The requested Pro action was blocked and no fallback ran."),className:a.statusUnsupported};case"warning":return{label:o("tools.badge.warn","WARN"),tooltip:o("tools.badge.warn.tooltip","The tool call failed as an expected caller, project, policy, or user-code issue."),className:a.statusWarning};case"error":return{label:o("tools.badge.err","FAILED"),tooltip:o("tools.badge.err.tooltip","The tool run failed."),className:a.statusError};default:return{label:o("tools.status.ok","OK"),tooltip:o("tools.status.ok.tooltip","The tool run completed successfully."),className:a.statusOk}}}function y(t,o){return e.jsxs("div",{className:a.detailItem,children:[e.jsx("span",{className:a.detailLabel,children:t}),e.jsx("span",{className:a.detailValue,children:o})]})}function Ee(t){if(!t||typeof t!="object")return;const o=t;if(typeof o.selectionMode=="string"&&Be.has(o.selectionMode))return o}function et(t){if(!(!t||typeof t!="object"||!("routing"in t)))return Ee(t.routing)}function He(t){return t.routing??et(t.result)??et(t.data)}function Ae(t,o){return t.requestedClientId?t.requestedClientId:t.requestedPlaceId!==void 0?t.requestedPlaceId:o("tools.history.routing.none","No Studio target named")}function Re(t){return t.actualPlaceName?`${t.actualPlaceName} · ${t.actualPlaceId??"-"}`:t.actualClientId??"-"}function Ie({entry:t,onClose:o}){const{t:c}=at(),k=ot(t,c),b=Le(t),l=He(t);return e.jsxs("div",{className:a.detailShell,children:[e.jsxs("header",{className:a.detailHeader,children:[e.jsxs("div",{className:a.detailHeading,children:[e.jsx("span",{className:a.detailTitle,children:c("tools.detail.title","Tool execution")}),e.jsx("span",{className:a.detailRecordName,children:t.command})]}),e.jsxs("div",{className:a.detailHeaderActions,children:[e.jsx(M,{text:k.tooltip,children:e.jsx("span",{className:k.className,children:k.label})}),e.jsx("button",{type:"button",className:a.detailCloseButton,onClick:o,"aria-label":c("common.close","Close"),children:e.jsx(mt,{size:18,"aria-hidden":"true"})})]})]}),e.jsxs("div",{className:a.detailBody,children:[e.jsxs("section",{className:a.detailSection,children:[e.jsx("strong",{children:e.jsx(M,{text:c("tools.detail.params.tooltip","Input parameters passed to this tool run."),children:c("tools.detail.params","Parameters")})}),e.jsx("pre",{className:a.pre,children:JSON.stringify(t.parameters,null,2)})]}),t.result&&e.jsxs("section",{className:a.detailSection,children:[e.jsx("strong",{children:e.jsx(M,{text:c("tools.detail.result.tooltip","Returned result payload for this tool run."),children:c("tools.detail.result","Result")})}),e.jsx("pre",{className:a.pre,children:JSON.stringify(t.result,null,2)})]}),l&&e.jsxs("section",{className:a.detailSection,children:[e.jsx("strong",{children:c("tools.history.routing","Routing")}),e.jsxs("div",{className:a.detailList,children:[y(c("tools.history.routing.mode","Mode"),l.selectionMode),y(c("tools.history.routing.requested","Requested"),Ae(l,c)),y(c("tools.history.routing.actual","Actual"),Re(l))]})]}),(t.status==="fallback"||t.status==="unsupported"||t.status==="warning"||t.status==="error")&&e.jsx("section",{className:a.detailSection,children:e.jsxs("div",{className:a.detailList,children:[t.status==="fallback"&&b.requestedCommand?y(c("tools.detail.requestedCommand","Requested Command"),b.requestedCommand):null,t.status==="fallback"&&b.executedCommand?y(c("tools.detail.executedCommand","Executed Command"),b.executedCommand):null,t.status==="fallback"&&b.alternatives?y(c("tools.detail.alternatives","Alternatives"),b.alternatives.join(", ")):null,t.status==="unsupported"&&t.blockedMessage?y(c("tools.detail.blockedMessage","Blocked Reason"),t.blockedMessage):null,t.status==="unsupported"?y(c("tools.detail.noFallback","No Fallback"),c("tools.detail.noFallback.value","No fallback ran.")):null,t.status==="warning"&&t.warningMessage?y(c("tools.detail.warningMessage","Warning Message"),t.warningMessage):null,t.status==="error"&&t.errorMessage?y(c("tools.detail.errorMessage","Error Message"),t.errorMessage):null,t.status==="error"&&t.blockedMessage?y(c("tools.detail.blockedMessage","Blocked Reason"),t.blockedMessage):null,t.status==="error"&&t.fallbackCommand?y(c("tools.detail.executedCommand","Executed Command"),t.fallbackCommand):null]})})]})]})}const G=50;function Oe(t){const o=new Date(t);return`${String(o.getHours()).padStart(2,"0")}:${String(o.getMinutes()).padStart(2,"0")}:${String(o.getSeconds()).padStart(2,"0")}`}function W(t){return typeof t!="number"||!Number.isFinite(t)?"-":t<1e3?`${t}ms`:`${(t/1e3).toFixed(1)}s`}function R(t,o){return o==="pro"?t("tier.pro","Pro"):o==="mixed"?t("tier.mixed","Mixed"):t("tier.basic","Basic")}function lt(t,o){return o!==t&&o.startsWith(`${t}_`)?o.slice(t.length+1):""}function st(t,o){const c=lt(t,o);return c?`${t}.${c}`:t}function Ge(){const{t}=at(),{trackEvent:o,trackPageView:c}=bt(),[k,b]=i.useState(null),l=Lt({placeId:k}),{show:N}=xt(),[S,h]=i.useState("history"),[w,C]=i.useState(null),_=i.useRef(null),[U,O]=i.useState(null),[m,E]=i.useState(null),[g,F]=i.useState(!1),[B,T]=i.useState("totalCalls"),[x,D]=i.useState("desc"),V=i.useCallback(s=>{T(n=>n===s?(D(r=>r==="asc"?"desc":"asc"),s):(D("desc"),s))},[]),K=i.useMemo(()=>{var n;const s=new Set;return Object.keys(((n=l.statistics)==null?void 0:n.tools)??{}).forEach(r=>s.add(r)),l.history.forEach(r=>{r.tool&&s.add(r.tool)}),l.historyToolFilter&&s.add(l.historyToolFilter),Array.from(s).sort()},[l.history,l.historyToolFilter,l.statistics]),j=i.useMemo(()=>{var s;return(s=l.statistics)!=null&&s.tools?Object.values(l.statistics.tools).map(n=>{var X;const r=Object.entries(n.commands??{}).map(([p,d])=>({toolName:n.tool,commandName:d.command??p,label:lt(n.tool,d.command??p)||(d.command??p),tier:d.tier,totalCalls:d.totalCalls,successCount:d.successCount,fallbackCount:d.fallbackCount,unsupportedCount:d.unsupportedCount,warningCount:d.warningCount??0,failureCount:d.failureCount,totalExecutionTimeMs:d.totalExecutionTimeMs,avgExecutionTimeMs:d.avgExecutionTimeMs})),f=r.reduce((p,d)=>p+d.totalCalls,0),v=r.reduce((p,d)=>p+d.successCount,0),$=r.reduce((p,d)=>p+d.fallbackCount,0),q=r.reduce((p,d)=>p+d.unsupportedCount,0),dt=r.reduce((p,d)=>p+d.warningCount,0),ut=r.reduce((p,d)=>p+d.failureCount,0),Z=r.reduce((p,d)=>p+d.totalExecutionTimeMs,0),pt=new Set(r.map(p=>p.tier)).size>1?"mixed":((X=r[0])==null?void 0:X.tier)??n.tier;return{toolName:n.tool,tier:pt,commands:r,totalCalls:f,successCount:v,fallbackCount:$,unsupportedCount:q,warningCount:dt,failureCount:ut,totalExecutionTimeMs:Z,avgExecutionTimeMs:f>0?Math.round(Z/f):0}}):[]},[l.statistics]),u=i.useCallback((s,n,r,f)=>e.jsx(M,{text:t(r,f),children:t(s,n)}),[t]),P=i.useCallback((s,n)=>{_.current=n,C(s)},[]),H=i.useCallback(()=>{C(null)},[]),z=i.useMemo(()=>[...j].sort((n,r)=>{const f=n[B],v=r[B];if(typeof f=="number"&&typeof v=="number")return x==="asc"?f-v:v-f;const $=String(f??""),q=String(v??"");return x==="asc"?$.localeCompare(q):q.localeCompare($)}),[j,B,x]),rt=i.useMemo(()=>[{key:"timestamp",label:u("tools.col.time","Time","tools.col.time.tooltip","When the tool run was recorded."),width:"80px",render:s=>Oe(s.timestamp)},{key:"toolName",label:u("tools.col.toolAction","Tool.Action","tools.col.toolAction.tooltip","Tool name and action that were executed."),render:s=>e.jsxs("span",{children:[st(s.tool,s.command),s.tier==="pro"&&e.jsx(M,{text:t("tools.badge.pro.tooltip","This entry used a Pro-only tool or action."),children:e.jsx("span",{className:a.proBadge,children:t("tools.badge.pro","PRO")})})]})},{key:"executionTimeMs",label:u("tools.col.duration","Duration","tools.col.duration.tooltip","How long the tool took to finish."),width:"80px",render:s=>W(s.executionTimeMs)},{key:"status",label:u("tools.col.status","Status","tools.col.status.tooltip","Outcome of the recorded tool run."),width:"120px",render:s=>{const n=ot(s,t);return e.jsx(M,{text:n.tooltip,children:e.jsx("span",{className:n.className,children:n.label})})}},{key:"tier",label:u("tools.col.tier","Tier","tools.col.tier.tooltip","License tier required for the tool or action."),width:"60px",render:s=>e.jsx("span",{className:s.tier==="pro"?a.tierPro:a.tierBasic,children:R(t,s.tier)})},{key:"details",label:t("tools.detail.open","Details"),width:"84px",render:s=>{const n=st(s.tool,s.command);return e.jsx("button",{type:"button",className:a.detailsButton,"aria-haspopup":"dialog","aria-label":t("tools.detail.openLabel","View details for {command}").replace("{command}",n),onClick:r=>{r.stopPropagation(),P(s,r.currentTarget)},children:t("tools.detail.open","Details")})}}],[P,t,u]),J=i.useMemo(()=>[{key:"toolName",label:u("tools.col.tool","Tool","tools.col.tool.tooltip","Consolidated tool name in the statistics table."),sortable:!0},{key:"totalCalls",label:u("tools.col.calls","Calls","tools.col.calls.tooltip","Total number of recorded calls for this tool."),sortable:!0,width:"70px"},{key:"successCount",label:u("tools.col.ok","OK","tools.col.ok.tooltip","Number of direct successful runs."),sortable:!0,width:"70px"},{key:"fallbackCount",label:u("tools.col.fallback","FALLBACK","tools.col.fallback.tooltip","Number of runs that succeeded through fallback execution."),sortable:!0,width:"110px"},{key:"unsupportedCount",label:u("tools.col.unsupported","UNSUPPORTED","tools.col.unsupported.tooltip","Number of blocked runs without fallback execution."),sortable:!0,width:"130px"},{key:"warningCount",label:u("tools.col.warn","WARN","tools.col.warn.tooltip","Number of expected failures caused by caller input, project state, Roblox policy, or user code."),sortable:!0,width:"80px"},{key:"failureCount",label:u("tools.col.err","FAILED","tools.col.err.tooltip","Number of runs that failed."),sortable:!0,width:"70px"},{key:"avgExecutionTimeMs",label:u("tools.col.avgTime","Avg Time","tools.col.avgTime.tooltip","Average execution time across recorded calls."),sortable:!0,width:"90px",render:s=>W(s.avgExecutionTimeMs)},{key:"tier",label:u("tools.col.tier","Tier","tools.col.tierStats.tooltip","Basic, Pro, or Mixed summary for the tool statistics row."),sortable:!0,width:"70px",render:s=>e.jsx(M,{text:s.tier==="mixed"?t("tools.tier.mixed.tooltip","This tool includes both Basic and Pro actions."):"",children:e.jsx("span",{className:s.tier==="pro"?a.tierPro:s.tier==="mixed"?a.tierMixed:a.tierBasic,children:R(t,s.tier)})})}],[t,u]),L=i.useMemo(()=>{if(!l.statistics)return null;const s=l.statistics.tierSummary.basic.totalCalls,n=l.statistics.tierSummary.pro.totalCalls,r=s+n;if(r===0)return null;const f=Math.round(s/r*100),v=100-f;return{basic:s,pro:n,basicPct:f,proPct:v}},[l.statistics]),Q=i.useCallback(s=>{O(n=>n===s?null:s)},[]),it=i.useCallback(async()=>{if(m){F(!0);try{m==="history"?await l.clearHistory():await l.clearStatistics(),N(t("toast.clearSuccess","Cleared successfully"),"success"),E(null)}catch{N(t("toast.clearFailed","Failed to clear data"),"error")}finally{F(!1)}}},[m,N,t,l]),nt=i.useCallback(s=>{const n=s==="history"?"tools_history":"tools_statistics";o("dashboard_click_event",{click_target:s==="history"?"tools_tab_history":"tools_tab_statistics",page:"tools",tab:n}),c({page:"tools",tab:n}),C(null),h(s)},[o,c]),ct=["history","statistics"].map(s=>({key:s,label:t(`tools.tab.${s}`,s.charAt(0).toUpperCase()+s.slice(1))}));return e.jsxs("div",{className:a.page,children:[e.jsx(ft,{title:t("page.tools.title","Tools"),description:t("page.tools.description","Inspect tool history, outcomes, fallback details, and usage statistics."),helpTopicId:"tools"}),e.jsx(gt,{surface:"tools",selectable:!0,selectedPlaceId:k,onSelectedPlaceIdChange:s=>{C(null),b(s),l.setHistoryOffset(0)}}),e.jsx(jt,{items:ct,value:S,onChange:nt}),S==="history"&&e.jsxs("div",{className:a.card,children:[e.jsxs("div",{className:a.cardToolbar,children:[e.jsx("div",{className:a.sectionTitle,children:t("tools.tab.history","History")}),e.jsx("button",{className:a.dangerButton,onClick:()=>{o("dashboard_click_event",{click_target:"tools_clear_history",page:"tools",tab:"tools_history"}),E("history")},children:t("common.clear","Clear")})]}),e.jsx("div",{className:a.filterRow,children:e.jsxs("label",{className:a.filterLabel,children:[t("tools.filter.tool","Tool"),":",e.jsxs("select",{className:a.filterSelect,value:l.historyToolFilter,onChange:s=>{C(null),l.setHistoryToolFilter(s.target.value),l.setHistoryOffset(0)},children:[e.jsx("option",{value:"",children:t("tools.filter.all","All")}),K.map(s=>e.jsx("option",{value:s,children:s},s))]})]})}),e.jsx(vt,{columns:rt,data:l.history,rowKey:s=>s.id,onRowClick:(s,n)=>P(s,n),emptyMessage:t("tools.empty.history","No tool history entries for this place")}),e.jsxs("div",{className:a.pagination,children:[e.jsx("button",{className:a.btn,disabled:l.historyOffset===0,title:t("tools.page.prev.tooltip","Go to the previous page of tool history results."),onClick:()=>{C(null),l.setHistoryOffset(Math.max(0,l.historyOffset-G))},children:t("tools.page.prev","Prev")}),e.jsxs("span",{className:a.pageInfo,children:[l.historyOffset+1,"–",Math.min(l.historyOffset+G,l.historyTotal)," / ",l.historyTotal]}),e.jsx("button",{className:a.btn,disabled:!l.historyHasMore,title:t("tools.page.next.tooltip","Go to the next page of tool history results."),onClick:()=>{C(null),l.setHistoryOffset(l.historyOffset+G)},children:t("tools.page.next","Next")})]})]}),S==="statistics"&&e.jsxs("div",{className:a.card,children:[e.jsxs("div",{className:a.cardToolbar,children:[e.jsx("div",{className:a.sectionTitle,children:t("tools.tab.statistics","Statistics")}),e.jsx("button",{className:a.dangerButton,onClick:()=>{o("dashboard_click_event",{click_target:"tools_clear_statistics",page:"tools",tab:"tools_statistics"}),E("statistics")},children:t("common.clear","Clear")})]}),L&&e.jsxs("div",{className:a.tierDistribution,children:[e.jsxs("div",{className:a.tierBarWrap,children:[e.jsx("div",{className:a.tierBarBasic,style:{width:`${L.basicPct}%`}}),e.jsx("div",{className:a.tierBarPro,style:{width:`${L.proPct}%`}})]}),e.jsxs("div",{className:a.tierLabels,children:[e.jsxs("span",{children:[R(t,"basic")," ",L.basicPct,"% (",L.basic,")"]}),e.jsxs("span",{children:[R(t,"pro")," ",L.proPct,"% (",L.pro,")"]})]})]}),e.jsx("div",{className:a.statsTableWrap,children:e.jsxs("table",{className:a.statsTable,children:[e.jsx("thead",{children:e.jsx("tr",{children:J.map(s=>e.jsxs("th",{style:s.width?{width:s.width}:void 0,className:s.sortable?a.sortableHeader:void 0,onClick:s.sortable?()=>V(s.key):void 0,children:[e.jsx("span",{children:s.label}),s.sortable&&B===s.key&&e.jsx("span",{className:a.sortArrow,children:x==="asc"?"▴":"▾"})]},s.key))})}),e.jsx("tbody",{children:z.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:J.length,className:a.emptyStats,children:t("tools.empty.stats","No tool statistics for this place")})}):z.map(s=>{const n=U===s.toolName;return e.jsxs(i.Fragment,{children:[e.jsxs("tr",{className:a.statsToolRow,onClick:()=>Q(s.toolName),children:[e.jsx("td",{children:e.jsxs("button",{type:"button",className:a.expandButton,"aria-expanded":n,"aria-label":`${s.toolName} ${n?t("common.collapse","Collapse"):t("common.expand","Expand")}`,onClick:r=>{r.stopPropagation(),Q(s.toolName)},children:[e.jsx("span",{className:a.expandIcon,"aria-hidden":"true",children:n?"▾":"▸"}),e.jsx("span",{children:s.toolName})]})}),e.jsx("td",{children:s.totalCalls}),e.jsx("td",{children:s.successCount}),e.jsx("td",{children:s.fallbackCount}),e.jsx("td",{children:s.unsupportedCount}),e.jsx("td",{children:s.warningCount}),e.jsx("td",{children:s.failureCount}),e.jsx("td",{children:W(s.avgExecutionTimeMs)}),e.jsx("td",{children:e.jsx(M,{text:s.tier==="mixed"?t("tools.tier.mixed.tooltip","This tool includes both Basic and Pro actions."):"",children:e.jsx("span",{className:s.tier==="pro"?a.tierPro:s.tier==="mixed"?a.tierMixed:a.tierBasic,children:R(t,s.tier)})})})]}),n&&s.commands.map(r=>e.jsxs("tr",{className:a.statsActionRow,children:[e.jsx("td",{children:e.jsx("span",{className:a.actionLabel,children:r.label})}),e.jsx("td",{children:r.totalCalls}),e.jsx("td",{children:r.successCount}),e.jsx("td",{children:r.fallbackCount}),e.jsx("td",{children:r.unsupportedCount}),e.jsx("td",{children:r.warningCount}),e.jsx("td",{children:r.failureCount}),e.jsx("td",{children:W(r.avgExecutionTimeMs)}),e.jsx("td",{children:e.jsx("span",{className:r.tier==="pro"?a.tierPro:a.tierBasic,children:R(t,r.tier)})})]},`${s.toolName}:${r.commandName}`))]},s.toolName)})})]})}),l.statistics&&e.jsxs("div",{className:a.summaryLine,children:[t("tools.summary.total","Total"),": ",l.statistics.totalCalls," ",t("tools.summary.calls","calls")," | ",t("tools.summary.sessions","Sessions"),": ",l.statistics.totalSessions]})]}),e.jsx(yt,{open:w!==null,ariaLabel:t("tools.detail.dialogLabel","Tool execution detail"),onClose:H,returnFocusTo:_.current,testId:"tools-history-detail-popup-layer",children:w&&e.jsx(Ie,{entry:w,onClose:H})}),e.jsx(_t,{open:m!==null,title:m==="history"?t("tools.clear.history.title","Clear history?"):t("tools.clear.statistics.title","Clear statistics?"),message:m==="history"?t("tools.clear.history.message","This permanently removes the current place tools history."):t("tools.clear.statistics.message","This permanently resets the current place tool statistics."),cancelLabel:t("common.cancel","Cancel"),confirmLabel:t("common.clear","Clear"),loading:g,onCancel:()=>!g&&E(null),onConfirm:it})]})}export{Ge as Component};
@@ -1 +0,0 @@
1
- import{u as j,j as e,L as f,_ as k,r as g,$ as x}from"./index-DOEmzpkJ.js";import{P as z}from"./PageHeader-DJRyLHjf.js";import{P as C}from"./PlaytestAiPromptExamples-xPI9gFIa.js";import"./AiPromptExamples-D2sS2PSu.js";import"./copy-C3LkcanH.js";const P="_card_15ozw_2",v="_cardUnread_15ozw_15",R="_cardRead_15ozw_20",T="_cardUnreadWarning_15ozw_25",A="_topRow_15ozw_32",I="_categoryChip_15ozw_39",L="_versionChip_15ozw_52",B="_importantBadge_15ozw_64",U="_date_15ozw_77",b="_title_15ozw_85",E="_body_15ozw_94",S="_aiPrompt_15ozw_102",W="_aiPromptIntro_15ozw_112",$="_linkList_15ozw_125",M="_link_15ozw_125",O="_internalLink_15ozw_147",Y="_newBadge_15ozw_169",t={card:P,cardUnread:v,cardRead:R,cardUnreadWarning:T,topRow:A,categoryChip:I,versionChip:L,importantBadge:B,date:U,title:b,body:E,aiPrompt:S,aiPromptIntro:W,linkList:$,link:M,internalLink:O,newBadge:Y},H={release:"whatsNew.category.release",notice:"whatsNew.category.notice",deprecation:"whatsNew.category.deprecation",tip:"whatsNew.category.tip"};function u({announcement:s,isNew:i}){var a;const{locale:c,t:n}=j(),d=i?t.cardUnread:t.cardRead,l=s.severity==="warning",p=l&&i?t.cardUnreadWarning:"",w=s.title[c]??s.title.en,N=s.body[c]??s.body.en,_=s.links??(s.link?[s.link]:[]),h=r=>typeof r=="string"?r:r[c]??r.en;return e.jsxs("div",{className:`${t.card} ${d} ${p}`,children:[e.jsxs("div",{className:t.topRow,children:[e.jsx("span",{className:t.categoryChip,children:n(H[s.category])}),l&&e.jsx("span",{className:t.importantBadge,children:n("whatsNew.importantBadge","IMPORTANT")}),s.version&&e.jsx("span",{className:t.versionChip,children:s.version}),i&&e.jsx("span",{className:t.newBadge,children:n("whatsNew.newBadge","NEW")}),e.jsx("span",{className:t.date,children:s.date})]}),e.jsx("h3",{className:t.title,children:w}),e.jsx("p",{className:t.body,children:N}),((a=s.aiPrompt)==null?void 0:a.kind)==="playtest-values"&&e.jsxs("div",{className:t.aiPrompt,children:[e.jsxs("div",{className:t.aiPromptIntro,children:[e.jsx("strong",{children:n("playtest.emptyValues.aiTitle","Ask AI")}),e.jsx("span",{children:n("playtest.emptyValues.aiDescription","Copy a request and paste it into an AI chat connected to WEPPY.")})]}),e.jsx(C,{exampleIds:[s.aiPrompt.exampleId]})]}),_.length>0&&e.jsx("div",{className:t.linkList,children:_.map(r=>{const m=h(r.url),y=h(r.label);return m.startsWith("/")?e.jsx(f,{className:`${t.link} ${t.internalLink}`,to:m,children:y},m):e.jsxs("a",{className:t.link,href:m,target:"_blank",rel:"noopener noreferrer",children:["↗"," ",y]},m)})})]})}const V="_page_4653w_2",q="_section_4653w_10",D="_sectionTitle_4653w_16",G="_unreadCount_4653w_28",K="_empty_4653w_43",F="_divider_4653w_51",o={page:V,section:q,sectionTitle:D,unreadCount:G,empty:K,divider:F};function se(){const{t:s}=j(),{readSet:i,markRead:c}=k(),n=g.useMemo(()=>{const a=[];for(const r of x)i.has(r.id)||a.push(r.id);return a},[]),d=g.useRef(n);d.current=n,g.useEffect(()=>()=>{d.current.length>0&&c(d.current)},[]);const l=g.useMemo(()=>new Set(n),[n]),p=x.filter(a=>l.has(a.id)),w=x.filter(a=>!l.has(a.id)),N=p.length>0,_=w.length>0,h=e.jsx(z,{title:s("whatsNew.pageTitle","What's New"),description:s("whatsNew.pageSubtitle","Stay up to date with MCP changes"),helpTopicId:"whatsNew"});return x.length===0?e.jsxs("div",{className:o.page,children:[h,e.jsx("p",{className:o.empty,children:s("whatsNew.empty","No announcements yet")})]}):e.jsxs("div",{className:o.page,children:[h,N&&e.jsxs("section",{className:o.section,children:[e.jsxs("h2",{className:o.sectionTitle,children:[s("whatsNew.unreadSection","Unread"),e.jsx("span",{className:o.unreadCount,children:p.length})]}),p.map(a=>e.jsx(u,{announcement:a,isNew:!0},`unread-${a.id}`))]}),N&&_&&e.jsx("hr",{className:o.divider}),_&&e.jsxs("section",{className:o.section,children:[e.jsx("h2",{className:o.sectionTitle,children:s("whatsNew.allSection","All Announcements")}),w.map(a=>e.jsx(u,{announcement:a,isNew:!1},`all-${a.id}`))]})]})}export{se as Component};