@weppy/roblox-mcp 2.1.2 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +17 -11
  3. package/README.md +1 -1
  4. package/docs/en/dashboard/overview.md +1 -1
  5. package/docs/en/dashboard/settings.md +1 -8
  6. package/docs/en/dashboard/sync.md +0 -7
  7. package/docs/en/sync/overview.md +0 -1
  8. package/docs/en/tools/overview.md +0 -1
  9. package/docs/es/dashboard/overview.md +1 -1
  10. package/docs/es/dashboard/settings.md +1 -8
  11. package/docs/es/dashboard/sync.md +0 -7
  12. package/docs/es/sync/overview.md +0 -1
  13. package/docs/es/tools/overview.md +0 -1
  14. package/docs/id/dashboard/overview.md +1 -1
  15. package/docs/id/dashboard/settings.md +1 -8
  16. package/docs/id/dashboard/sync.md +0 -7
  17. package/docs/id/sync/overview.md +0 -1
  18. package/docs/id/tools/overview.md +0 -1
  19. package/docs/ja/dashboard/overview.md +1 -1
  20. package/docs/ja/dashboard/settings.md +1 -8
  21. package/docs/ja/dashboard/sync.md +0 -7
  22. package/docs/ja/sync/overview.md +0 -1
  23. package/docs/ja/tools/overview.md +0 -1
  24. package/docs/ko/dashboard/overview.md +1 -1
  25. package/docs/ko/dashboard/settings.md +1 -8
  26. package/docs/ko/dashboard/sync.md +0 -7
  27. package/docs/ko/sync/overview.md +0 -1
  28. package/docs/ko/tools/overview.md +0 -1
  29. package/docs/pt-br/dashboard/overview.md +1 -1
  30. package/docs/pt-br/dashboard/settings.md +1 -8
  31. package/docs/pt-br/dashboard/sync.md +0 -7
  32. package/docs/pt-br/sync/overview.md +0 -1
  33. package/docs/pt-br/tools/overview.md +0 -1
  34. package/llms-full.txt +1 -2
  35. package/package.json +1 -1
  36. package/plugins/weppy-roblox-mcp/.claude-plugin/plugin.json +1 -1
  37. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ChangelogDetailPage-2ZPwh_Le.js → ChangelogDetailPage-D7eMrarv.js} +1 -1
  38. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ChangelogPage-DW2_STiE.js → ChangelogPage-DFCCRyyK.js} +1 -1
  39. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ConfirmModal-CInBBLZW.js → ConfirmModal-BmRJ2JXZ.js} +1 -1
  40. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ConnectionPage-nNwPIEZw.js → ConnectionPage-CiaCY026.js} +1 -1
  41. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{InfoLabel-B_Ys60mi.js → InfoLabel-CCDWZLC9.js} +1 -1
  42. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{OverviewPage-BMBzDR4R.js → OverviewPage-BHpt3LI2.js} +1 -1
  43. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{PlaytestPage-BDgsWgto.js → PlaytestPage-CNwwI5Ro.js} +1 -1
  44. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{PropertyDiff-BbsF9z4D.js → PropertyDiff-DIplDn-J.js} +1 -1
  45. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SettingsPage-CPqQYZPN.js +1 -0
  46. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SettingsPage-DTv0NbEY.css +1 -0
  47. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{StatusBadge-FYpJOX7r.js → StatusBadge-C8VKAPpk.js} +1 -1
  48. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SyncPage-CLt9jxd8.css +1 -0
  49. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SyncPage-DTSKbpio.js +4 -0
  50. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/TierComparison-7ofkPwj3.js +1 -0
  51. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{TierPromoProgress-Cuz1dgcs.js → TierPromoProgress-SnRUjAPh.js} +1 -1
  52. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ToolsPage-YGBoDwbQ.js → ToolsPage-CrdNh3D9.js} +1 -1
  53. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/index-DGGmfli1.js +129 -0
  54. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{useLiveUptime-D5Ux8dA5.js → useLiveUptime-BnXeLpOw.js} +1 -1
  55. package/plugins/weppy-roblox-mcp/dashboard/dist/index.html +1 -1
  56. package/plugins/weppy-roblox-mcp/dist/index.js +61 -64
  57. package/plugins/weppy-roblox-mcp/roblox-plugin/WeppyRobloxMCP.rbxm +0 -0
  58. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SettingsPage-BB7-WAMU.css +0 -1
  59. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SettingsPage-BPSAA3lu.js +0 -1
  60. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SyncPage-BcXYv0GI.js +0 -4
  61. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SyncPage-Bf1SdHGg.css +0 -1
  62. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/TierComparison-D4uVUGcZ.js +0 -1
  63. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/index-BNdn6WpU.js +0 -129
@@ -1 +0,0 @@
1
- ._page_amh3j_2{display:flex;flex-direction:column;gap:16px;max-width:820px}._card_amh3j_10{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px}._licenseCardPro_amh3j_17{border-color:var(--pro-border);background:linear-gradient(180deg,var(--pro-bg-soft),transparent 28%),var(--bg-card);box-shadow:inset 0 1px #f3d46b2e,0 0 0 1px #8f6f1f24}._cardHeader_amh3j_28{font-family:var(--font-label);font-weight:500;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);margin-bottom:12px;display:flex;align-items:center;justify-content:space-between}._headerBadge_amh3j_42{font-size:10px;font-weight:400;padding:2px 8px;border-radius:4px;border:1px solid var(--border);color:var(--text-muted);text-transform:none;letter-spacing:0}._headerBadgeLive_amh3j_53{color:var(--success);border-color:var(--success)}._licenseGrid_amh3j_59{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;font-family:var(--font-code);font-size:13px}._licenseGrid_amh3j_59 dt{color:var(--text-muted)}._licenseGrid_amh3j_59 dd{color:var(--text-primary);margin:0}._statusDot_amh3j_77{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:middle}._statusActive_amh3j_86{background:var(--success);box-shadow:0 0 4px var(--success)}._statusGrace_amh3j_91{background:var(--warning, #b7791f);box-shadow:0 0 4px color-mix(in srgb,var(--warning, #b7791f) 70%,transparent)}._statusInactive_amh3j_96{background:var(--text-muted)}._statusError_amh3j_100{background:var(--error)}._proBadge_amh3j_105{color:var(--pro-badge);font-weight:500}._licenseCardPro_amh3j_17 ._cardHeader_amh3j_28 span:first-child{color:var(--pro-text)}._licenseCardPro_amh3j_17 ._licenseGrid_amh3j_59 dt{color:var(--pro-badge)}._upgradeLink_amh3j_119{display:inline-block;margin-top:8px;font-family:var(--font-label);font-size:12px;color:var(--accent);cursor:pointer;text-decoration:underline}._upgradeLink_amh3j_119:hover{opacity:.8}._licenseControls_amh3j_133{display:flex;flex-direction:column;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--border)}._licenseControlRow_amh3j_142{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}._licenseField_amh3j_149{display:flex;flex-direction:column;gap:6px}._licenseFieldGrow_amh3j_155{flex:1;min-width:220px}._controlLabel_amh3j_160{font-family:var(--font-label);font-size:12px;color:var(--text-primary)}._textInput_amh3j_166{font-family:var(--font-code);font-size:12px;padding:6px 8px;border-radius:4px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);outline:none;transition:border-color var(--transition)}._textInput_amh3j_166:focus{border-color:var(--accent)}._actionBtn_amh3j_182{font-family:var(--font-label);font-size:12px;padding:6px 14px;border-radius:4px;border:1px solid var(--accent);background:transparent;color:var(--accent);cursor:pointer;transition:background var(--transition),color var(--transition),opacity var(--transition)}._actionBtn_amh3j_182:hover{background:var(--accent);color:var(--bg-primary)}._actionBtn_amh3j_182:disabled{opacity:.5;cursor:not-allowed}._licenseMessage_amh3j_204{margin:0;font-family:var(--font-code);font-size:12px;color:var(--text-secondary)}._licenseNotice_amh3j_211{margin:12px 0 0;padding:10px 12px;border-radius:8px;border:1px solid var(--border);font-family:var(--font-label);font-size:12px;line-height:1.5}._licenseNoticeInfo_amh3j_221{color:var(--text-primary);background:color-mix(in srgb,var(--accent) 8%,transparent);border-color:color-mix(in srgb,var(--accent) 28%,var(--border))}._licenseNoticeWarning_amh3j_227{color:var(--text-primary);background:color-mix(in srgb,var(--warning, #b7791f) 12%,transparent);border-color:color-mix(in srgb,var(--warning, #b7791f) 34%,var(--border))}._licenseNoticeMuted_amh3j_233{color:var(--text-secondary);background:var(--bg-secondary)}._settingRow_amh3j_239{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px}._settingRow_amh3j_239:last-child{border-bottom:none}._settingLabel_amh3j_253{font-family:var(--font-label);color:var(--text-primary);flex:1}._settingControl_amh3j_260{display:flex;align-items:center;gap:8px;justify-content:flex-end;min-width:112px}._select_amh3j_269{font-family:var(--font-code);font-size:12px;padding:4px 8px;border-radius:4px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);cursor:pointer;outline:none;transition:border-color var(--transition)}._select_amh3j_269:focus{border-color:var(--accent)}._numberInput_amh3j_287{font-family:var(--font-code);font-size:12px;padding:4px 8px;border-radius:4px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);width:80px;outline:none;transition:border-color var(--transition)}._numberInput_amh3j_287:focus{border-color:var(--accent)}._toggleSwitch_amh3j_305{position:relative;display:inline-flex;align-items:center;cursor:pointer}._toggleInput_amh3j_312{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}._toggleTrack_amh3j_320{position:relative;display:inline-flex;align-items:center;width:46px;height:28px;padding:3px;border-radius:999px;border:1px solid color-mix(in srgb,var(--border) 82%,transparent);background:linear-gradient(180deg,#ffffff08,#fff0),color-mix(in srgb,var(--bg-secondary) 88%,#0b1220 12%);box-shadow:inset 0 1px #ffffff0d,inset 0 0 0 1px #070a122e;transition:background var(--transition),border-color var(--transition),box-shadow var(--transition),transform var(--transition)}._toggleThumb_amh3j_342{width:20px;height:20px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#ffffffd1,#ffffff14 45%),linear-gradient(180deg,#f7fbff,#c8d4ea);box-shadow:0 4px 10px #00000047,inset 0 1px #ffffffa6;transform:translate(0);transition:transform var(--transition),background var(--transition),box-shadow var(--transition)}._toggleInput_amh3j_312:focus-visible+._toggleTrack_amh3j_320{border-color:color-mix(in srgb,var(--accent) 70%,white 8%);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 24%,transparent),inset 0 1px #ffffff0d}._toggleInput_amh3j_312:checked+._toggleTrack_amh3j_320{border-color:color-mix(in srgb,var(--accent) 62%,white 6%);background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 36%,white 4%),color-mix(in srgb,var(--accent) 78%,#1b2640 22%)),var(--accent);box-shadow:inset 0 1px #ffffff29,0 0 16px color-mix(in srgb,var(--accent) 22%,transparent)}._toggleInput_amh3j_312:checked+._toggleTrack_amh3j_320 ._toggleThumb_amh3j_342{transform:translate(18px);background:radial-gradient(circle at 30% 30%,#ffffffeb,#ffffff1f 42%),linear-gradient(180deg,#fff,#d8e5ff)}._toggleSwitch_amh3j_305:hover ._toggleTrack_amh3j_320{border-color:color-mix(in srgb,var(--accent) 38%,var(--border))}._toggleSwitch_amh3j_305:hover ._toggleInput_amh3j_312:checked+._toggleTrack_amh3j_320{box-shadow:inset 0 1px #ffffff29,0 0 20px color-mix(in srgb,var(--accent) 28%,transparent)}._savedIndicator_amh3j_391{font-family:var(--font-code);font-size:11px;color:var(--success);opacity:1;min-width:56px;text-align:right;white-space:nowrap;transition:opacity .3s ease}._savedIndicatorHidden_amh3j_402{opacity:0}._coldGrid_amh3j_407{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;font-family:var(--font-code);font-size:13px}._coldGrid_amh3j_407 dt{color:var(--text-muted)}._coldGrid_amh3j_407 dd{color:var(--text-primary);margin:0}._coldHint_amh3j_425{margin-top:10px;font-family:var(--font-label);font-size:12px;color:var(--text-muted);font-style:italic}._syncForm_amh3j_434{display:flex;flex-direction:column;gap:10px}._syncRow_amh3j_440{display:flex;align-items:center;gap:16px;flex-wrap:wrap}._syncField_amh3j_447{display:flex;align-items:center;gap:8px;font-size:13px}._syncField_amh3j_447 label{font-family:var(--font-label);color:var(--text-primary);white-space:nowrap}._saveBtn_amh3j_461{align-self:flex-end;font-family:var(--font-label);font-size:12px;padding:6px 16px;border-radius:4px;border:1px solid var(--accent);background:transparent;color:var(--accent);cursor:pointer;transition:background var(--transition),color var(--transition)}._saveBtn_amh3j_461:hover{background:var(--accent);color:var(--bg-primary)}._saveBtn_amh3j_461:disabled{opacity:.5;cursor:not-allowed}._langRow_amh3j_485{display:flex;align-items:center;gap:12px;font-size:13px}._langRow_amh3j_485 label{font-family:var(--font-label);color:var(--text-primary)}._loading_amh3j_498{color:var(--text-muted);font-family:var(--font-code);font-size:13px;padding:32px 0;text-align:center}._unit_amh3j_507{font-family:var(--font-code);font-size:11px;color:var(--text-muted)}
@@ -1 +0,0 @@
1
- import{d as P,r as c,f as M,D as $,e as F,g as G,h as W,a as w,u as X,j as e,T as b,A as q,S as U}from"./index-BNdn6WpU.js";import{I as o}from"./InfoLabel-B_Ys60mi.js";function K(){const{level:s}=P(),[r,y]=c.useState(null),[u,i]=c.useState(null),[C,T]=c.useState(null),[A,m]=c.useState(!1),[p,S]=c.useState(!0),[O,f]=c.useState(!1),[B,L]=c.useState(null),g="gumroad",_=s==="disconnected",h=c.useCallback(n=>{n&&i(l=>({...l,...n,maskedKey:n.maskedKey??(l==null?void 0:l.maskedKey),provider:n.provider??(l==null?void 0:l.provider)??g}))},[g]),N=c.useCallback(n=>{if(!n){i(null);return}i({...n,provider:n.provider??g})},[g]),x=c.useCallback(async()=>{try{return await M(g)}catch{return null}},[g]);c.useEffect(()=>{let n=!1;async function l(){try{const[a,d,v]=await Promise.all([w.get("/api/dashboard/settings").catch(()=>null),x(),w.get("/sync/config").catch(()=>null)]);if(n)return;a&&y(a),d&&h(d),v&&T(v)}catch{}finally{n||S(!1)}}return l(),()=>{n=!0}},[x,h]),c.useEffect(()=>{const n=new $;n.connect();const l=n.on("license",a=>{x().then(d=>{if(d){if((a==null?void 0:a.cleared)===!0){N(d);return}h(d)}})});return()=>{l(),n.disconnect()}},[x,h,N]);const j=c.useCallback((n,l)=>{L(n??l)},[]),R=c.useCallback(async n=>{if(_)return!1;if(!n.trim())return L("License key is required."),!1;f(!0);try{const l=await F({provider:g,licenseKey:n.trim()});return h(l.license),j(l.message,l.ok?"License updated.":"License activation failed."),l.ok}catch{return L("License activation failed."),!1}finally{f(!1)}},[j,_,g,h]),I=c.useCallback(async()=>{if(!_){f(!0);try{const n=await G({provider:g});h(n.license),j(n.message,n.ok?"License updated.":"License refresh failed.")}catch{L("License refresh failed.")}finally{f(!1)}}},[j,_,g,h]),D=c.useCallback(async()=>{if(!_){f(!0);try{const n=await W({provider:g});N(n.license),j(n.message,n.ok?"License reset.":"License reset failed.")}catch{L("License reset failed.")}finally{f(!1)}}},[j,_,g,N]),E=c.useCallback(async(n,l)=>{if(r){y(a=>a&&{...a,hot:{...a.hot,[n]:l}}),m(!0);try{await w.patch("/api/dashboard/settings",{[n]:l})}catch{y(a=>a&&{...a,hot:{...a.hot,[n]:r.hot[n]}})}finally{m(!1)}}},[r]),k=c.useCallback(async n=>{m(!0);try{const l=await w.post("/sync/config",n);T(l)}catch{}finally{m(!1)}},[]);return{settings:r,license:u,syncConfig:C,saving:A,licenseProvider:g,licenseControlsDisabled:_,licenseSubmitting:O,licenseMessage:B,activateLicense:R,refreshLicense:I,resetLicense:D,updateHotSetting:E,updateSyncConfig:k,loading:p}}const V="_page_amh3j_2",Q="_card_amh3j_10",Y="_licenseCardPro_amh3j_17",z="_cardHeader_amh3j_28",J="_headerBadge_amh3j_42",Z="_headerBadgeLive_amh3j_53",ee="_licenseGrid_amh3j_59",se="_statusDot_amh3j_77",te="_statusActive_amh3j_86",ae="_statusGrace_amh3j_91",ne="_statusInactive_amh3j_96",ie="_statusError_amh3j_100",le="_proBadge_amh3j_105",ce="_upgradeLink_amh3j_119",oe="_licenseControls_amh3j_133",re="_licenseControlRow_amh3j_142",de="_licenseField_amh3j_149",ge="_licenseFieldGrow_amh3j_155",ue="_controlLabel_amh3j_160",he="_textInput_amh3j_166",me="_actionBtn_amh3j_182",pe="_licenseMessage_amh3j_204",je="_licenseNotice_amh3j_211",_e="_licenseNoticeInfo_amh3j_221",xe="_licenseNoticeWarning_amh3j_227",ve="_licenseNoticeMuted_amh3j_233",be="_settingRow_amh3j_239",fe="_settingLabel_amh3j_253",Le="_settingControl_amh3j_260",ye="_select_amh3j_269",Ne="_numberInput_amh3j_287",Ce="_toggleSwitch_amh3j_305",Te="_toggleInput_amh3j_312",Se="_toggleTrack_amh3j_320",Re="_toggleThumb_amh3j_342",Ie="_savedIndicator_amh3j_391",Ee="_savedIndicatorHidden_amh3j_402",ke="_coldGrid_amh3j_407",we="_coldHint_amh3j_425",Ae="_syncForm_amh3j_434",Oe="_syncRow_amh3j_440",Be="_syncField_amh3j_447",De="_saveBtn_amh3j_461",He="_langRow_amh3j_485",Pe="_loading_amh3j_498",Me="_unit_amh3j_507",t={page:V,card:Q,licenseCardPro:Y,cardHeader:z,headerBadge:J,headerBadgeLive:Z,licenseGrid:ee,statusDot:se,statusActive:te,statusGrace:ae,statusInactive:ne,statusError:ie,proBadge:le,upgradeLink:ce,licenseControls:oe,licenseControlRow:re,licenseField:de,licenseFieldGrow:ge,controlLabel:ue,textInput:he,actionBtn:me,licenseMessage:pe,licenseNotice:je,licenseNoticeInfo:_e,licenseNoticeWarning:xe,licenseNoticeMuted:ve,settingRow:be,settingLabel:fe,settingControl:Le,select:ye,numberInput:Ne,toggleSwitch:Ce,toggleInput:Te,toggleTrack:Se,toggleThumb:Re,savedIndicator:Ie,savedIndicatorHidden:Ee,coldGrid:ke,coldHint:we,syncForm:Ae,syncRow:Oe,syncField:Be,saveBtn:De,langRow:He,loading:Pe,unit:Me},$e={en:"English",ko:"한국어",es:"Español","pt-br":"Português (BR)",ja:"日本語",id:"Bahasa Indonesia"},Fe=["debug","info","warn","error"];function Ge(s){return s==="active"?t.statusActive:s==="grace"?t.statusGrace:s==="invalid"||s==="revoked"?t.statusError:t.statusInactive}function We(s,r){return s.refreshBlockedReason==="missing_session_token"?{label:r("settings.license.status.activationRequired","Activation Required"),tooltip:r("settings.license.status.activationRequired.tooltip","Manual license activation is required before WROX Dashboard can refresh this status."),detail:r("settings.license.detail.missingSessionToken","Refresh is blocked because the current session token is missing."),detailTone:t.licenseNoticeWarning}:s.statusDetail==="grace_provider_unavailable"?{label:r("settings.license.status.grace","Grace"),tooltip:r("settings.license.status.grace.tooltip","Provider verification is temporarily unavailable, but Pro access remains active during the grace period."),detail:r("settings.license.detail.graceProviderUnavailable","Provider unavailable. Pro access remains active during grace mode."),detailTone:t.licenseNoticeInfo}:s.statusDetail==="grace_cancelled"||s.statusDetail==="grace_expired"||s.statusDetail==="grace_payment_failed"?{label:r("settings.license.status.grace","Grace"),tooltip:r("settings.license.status.graceBilling.tooltip","Pro access is still available during a billing-related grace period."),detail:r("settings.license.detail.graceBilling","Pro access remains available during a billing grace period."),detailTone:t.licenseNoticeInfo}:{label:r(`settings.license.${s.status}`,s.status),tooltip:r(`settings.license.${s.status}.tooltip`,"Current license activation state."),detail:s.refreshRequired?r("settings.license.detail.refreshRecommended","License verification should be refreshed soon."):null,detailTone:t.licenseNoticeMuted}}function H({checked:s,onChange:r,testId:y,ariaLabel:u}){return e.jsxs("label",{className:t.toggleSwitch,"data-testid":y,children:[e.jsx("input",{type:"checkbox",className:t.toggleInput,checked:s,"aria-label":u,onChange:i=>r(i.target.checked)}),e.jsx("span",{className:t.toggleTrack,"aria-hidden":"true",children:e.jsx("span",{className:t.toggleThumb})})]})}function Ue(){const{t:s,selectedLocale:r,setLocale:y}=X(),{settings:u,license:i,syncConfig:C,saving:T,licenseProvider:A,licenseControlsDisabled:m,licenseSubmitting:p,licenseMessage:S,activateLicense:O,refreshLicense:f,resetLicense:B,updateHotSetting:L,updateSyncConfig:g,loading:_}=K(),[h,N]=c.useState(null),[x,j]=c.useState({}),[R,I]=c.useState(""),D=i?We(i,s):null,E=(i==null?void 0:i.tier)==="pro",k=(i==null?void 0:i.tier)==="pro"?i.maskedKey:void 0;c.useEffect(()=>{C&&j({maxDepth:C.maxDepth,maxInstances:C.maxInstances})},[C]);const n=c.useCallback(async(a,d)=>{await L(a,d),N(a),setTimeout(()=>N(v=>v===a?null:v),2e3)},[L]),l=c.useCallback(async()=>{await g(x)},[g,x]);return _?e.jsx("div",{className:t.page,children:e.jsx("div",{className:t.loading,children:s("common.loading")})}):e.jsxs("div",{className:t.page,children:[e.jsxs("div",{"data-testid":"settings-license-card",className:[t.card,(i==null?void 0:i.tier)==="pro"?t.licenseCardPro:""].filter(Boolean).join(" "),children:[e.jsxs("div",{className:t.cardHeader,children:[e.jsx(o,{label:s("settings.license.title","License"),tooltip:s("settings.license.title.tooltip","Current license status and subscription tier.")}),e.jsx(b,{text:m?s("settings.license.disconnected.tooltip","Reconnect to the MCP server to manage license actions from WROX Dashboard."):s("settings.license.live.tooltip","License actions are sent to the MCP server immediately."),children:e.jsx("span",{className:`${t.headerBadge} ${m?"":t.headerBadgeLive}`,children:m?s("settings.license.disconnected","Disconnected"):s("settings.general.liveApply","Live Apply")})})]}),e.jsxs(e.Fragment,{children:[i?e.jsxs(e.Fragment,{children:[(()=>{const a=D;return e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:t.licenseGrid,children:[e.jsx("dt",{children:e.jsx(o,{label:s("settings.license.status","Status"),tooltip:s("settings.license.status.tooltip","Current license activation state.")})}),e.jsxs("dd",{children:[e.jsx("span",{className:`${t.statusDot} ${Ge(i.status)}`}),e.jsx(b,{text:(a==null?void 0:a.tooltip)??s(`settings.license.${i.status}.tooltip`,"Current license activation state."),children:(a==null?void 0:a.label)??s(`settings.license.${i.status}`,i.status)})]}),e.jsx("dt",{children:e.jsx(o,{label:s("settings.license.tier","Tier"),tooltip:s("settings.license.tier.tooltip","Current subscription tier for available WROX Dashboard features.")})}),e.jsx("dd",{className:i.tier==="pro"?t.proBadge:"",children:e.jsx(b,{text:s(`tier.${i.tier}.tooltip`,"Available feature set for the connected license."),children:i.tier==="pro"?s("tier.pro","Pro"):s("tier.basic","Basic")})}),k&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(o,{label:s("settings.license.key","Key"),tooltip:s("settings.license.key.tooltip","Masked license key currently loaded by the server.")})}),e.jsx("dd",{children:e.jsx(b,{text:s("settings.license.keyValue.tooltip","Masked license key currently loaded by the server."),children:k})})]}),i.provider&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(o,{label:s("settings.license.provider","Provider"),tooltip:s("settings.license.provider.tooltip","License provider used to validate this key.")})}),e.jsx("dd",{children:e.jsx(b,{text:s("settings.license.providerValue.tooltip","License provider used to validate this key."),children:i.provider})})]})]}),(a==null?void 0:a.detail)&&e.jsx("p",{className:`${t.licenseNotice} ${a.detailTone}`,children:i.refreshBlockedReason==="missing_session_token"?s("settings.license.detail.manualActivation","Manual activation required to restore Pro access."):a.detail}),i.refreshBlockedReason==="missing_session_token"&&e.jsx("p",{className:`${t.licenseNotice} ${t.licenseNoticeMuted}`,children:a==null?void 0:a.detail})]})})(),i.tier==="basic"&&e.jsx("a",{className:t.upgradeLink,href:"https://gum.co/u/din5in7h",target:"_blank",rel:"noopener noreferrer",children:s("tier.upgrade")})]}):e.jsx("div",{className:t.loading,children:s("settings.license.unavailable")}),e.jsxs("div",{className:t.licenseControls,children:[e.jsxs("div",{className:t.licenseControlRow,children:[e.jsxs("label",{className:t.licenseField,children:[e.jsx("span",{className:t.controlLabel,children:e.jsx(o,{label:s("settings.license.provider","Provider"),tooltip:s("settings.license.provider.tooltip","License provider used to validate this key.")})}),e.jsx("select",{"aria-label":s("settings.license.provider","Provider"),className:t.select,value:A,disabled:m||p,onChange:()=>{},children:e.jsx("option",{value:"gumroad",children:"gumroad"})})]}),e.jsx("button",{type:"button",className:t.actionBtn,disabled:m||p||!E,onClick:()=>{f()},children:p?s("common.loading"):s("settings.license.refresh","Refresh License")}),e.jsx("button",{type:"button",className:t.actionBtn,disabled:m||p||!E,onClick:()=>{B()},children:p?s("common.loading"):s("settings.license.reset","Reset License")})]}),e.jsxs("div",{className:t.licenseControlRow,children:[e.jsxs("label",{className:`${t.licenseField} ${t.licenseFieldGrow}`,children:[e.jsx("span",{className:t.controlLabel,children:e.jsx(o,{label:s("settings.license.keyInput","License Key"),tooltip:s("settings.license.key.tooltip","Masked license key currently loaded by the server.")})}),e.jsx("input",{"aria-label":s("settings.license.keyInput","License Key"),className:t.textInput,type:"text",value:R,disabled:m||p,onChange:a=>I(a.target.value)})]}),e.jsx("button",{type:"button",className:t.actionBtn,disabled:m||p,onClick:()=>{(async()=>await O(R)&&I(""))()},children:p?s("common.loading"):s("settings.license.activate","Activate License")})]}),S&&e.jsx("p",{className:t.licenseMessage,children:S})]})]})]}),e.jsxs("div",{className:t.card,children:[e.jsxs("div",{className:t.cardHeader,children:[e.jsx(o,{label:s("settings.general.title","General Settings"),tooltip:s("settings.general.title.tooltip","Hot settings that apply immediately when changed.")}),e.jsx(b,{text:s("settings.general.liveApply.tooltip","Changes in this section are applied immediately without a separate save button."),children:e.jsx("span",{className:`${t.headerBadge} ${t.headerBadgeLive}`,children:s("settings.general.liveApply","Live Apply")})})]}),u?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:t.settingRow,children:[e.jsx("span",{className:t.settingLabel,children:e.jsx(o,{label:s("settings.general.logLevel","Log Level"),tooltip:s("settings.general.logLevel.tooltip","Sets how much detail WROX Dashboard writes to its logs.")})}),e.jsxs("div",{className:t.settingControl,children:[e.jsx("select",{className:t.select,value:u.hot.LOG_LEVEL,onChange:a=>n("LOG_LEVEL",a.target.value),children:Fe.map(a=>e.jsx("option",{value:a,children:a},a))}),h==="LOG_LEVEL"&&e.jsx("span",{className:t.savedIndicator,children:s("settings.general.applied")})]})]}),e.jsxs("div",{className:t.settingRow,children:[e.jsx("span",{className:t.settingLabel,children:e.jsx(o,{label:s("settings.general.localHistory","Tool History Recording"),tooltip:s("settings.general.localHistory.tooltip","Stores local tool execution history for the WROX Dashboard history views.")})}),e.jsxs("div",{className:t.settingControl,children:[e.jsx("span",{className:`${t.savedIndicator} ${h==="ENABLE_LOCAL_HISTORY"?"":t.savedIndicatorHidden}`,children:s("settings.general.applied","Applied")}),e.jsx(H,{checked:u.hot.ENABLE_LOCAL_HISTORY,ariaLabel:s("settings.general.localHistory","Tool History Recording"),testId:"settings-toggle-enable-local-history",onChange:a=>n("ENABLE_LOCAL_HISTORY",a)})]})]}),e.jsxs("div",{className:t.settingRow,children:[e.jsx("span",{className:t.settingLabel,children:e.jsx(o,{label:s("settings.general.localStatistics","Tool Statistics Collection"),tooltip:s("settings.general.localStatistics.tooltip","Aggregates local usage statistics for WROX Dashboard reporting.")})}),e.jsxs("div",{className:t.settingControl,children:[e.jsx("span",{className:`${t.savedIndicator} ${h==="ENABLE_LOCAL_STATISTICS"?"":t.savedIndicatorHidden}`,children:s("settings.general.applied","Applied")}),e.jsx(H,{checked:u.hot.ENABLE_LOCAL_STATISTICS,ariaLabel:s("settings.general.localStatistics","Tool Statistics Collection"),testId:"settings-toggle-enable-local-statistics",onChange:a=>n("ENABLE_LOCAL_STATISTICS",a)})]})]}),e.jsxs("div",{className:t.settingRow,children:[e.jsx("span",{className:t.settingLabel,children:e.jsx(o,{label:s("settings.general.contextCapture","Context Capture"),tooltip:s("settings.general.contextCapture.tooltip","When enabled, WROX Dashboard records structured execution context for changelog and playtest views.")})}),e.jsxs("div",{className:t.settingControl,children:[e.jsx("span",{className:`${t.savedIndicator} ${h==="ENABLE_CONTEXT_CAPTURE"?"":t.savedIndicatorHidden}`,children:s("settings.general.applied","Applied")}),e.jsx(H,{checked:u.hot.ENABLE_CONTEXT_CAPTURE,ariaLabel:s("settings.general.contextCapture","Context Capture"),testId:"settings-toggle-enable-context-capture",onChange:a=>n("ENABLE_CONTEXT_CAPTURE",a)})]})]}),e.jsxs("div",{className:t.settingRow,children:[e.jsx("span",{className:t.settingLabel,children:e.jsx(o,{label:s("settings.general.requestTimeout","Request Timeout"),tooltip:s("settings.general.requestTimeout.tooltip","Maximum time WROX Dashboard waits for a request before it fails.")})}),e.jsxs("div",{className:t.settingControl,children:[e.jsx("input",{type:"number",className:t.numberInput,value:u.hot.REQUEST_TIMEOUT,min:1e3,max:12e4,step:1e3,onChange:a=>{const d=parseInt(a.target.value,10);isNaN(d)||n("REQUEST_TIMEOUT",d)}}),e.jsx(b,{text:s("settings.general.requestTimeout.unit.tooltip","Request timeout is measured in milliseconds."),children:e.jsx("span",{className:t.unit,children:s("settings.general.requestTimeout.unit","ms")})}),h==="REQUEST_TIMEOUT"&&e.jsx("span",{className:t.savedIndicator,children:s("settings.general.applied","Applied")})]})]})]}):e.jsx("div",{className:t.loading,children:s("settings.unavailable")})]}),e.jsxs("div",{className:t.card,children:[e.jsxs("div",{className:t.cardHeader,children:[e.jsx(o,{label:s("settings.cold.title","Server Environment"),tooltip:s("settings.cold.title.tooltip","Read-only server environment values loaded at startup.")}),e.jsx(b,{text:s("settings.readOnly.tooltip","This section shows values that cannot be edited from WROX Dashboard."),children:e.jsx("span",{className:t.headerBadge,children:s("settings.readOnly","Read-only")})})]}),u?e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:t.coldGrid,children:[e.jsx("dt",{children:e.jsx(o,{label:"HTTP_PORT",tooltip:s("settings.cold.httpPort.tooltip","Port number used by the MCP WROX Dashboard HTTP server.")})}),e.jsx("dd",{children:u.cold.HTTP_PORT}),e.jsx("dt",{children:e.jsx(o,{label:"HTTP_HOST",tooltip:s("settings.cold.httpHost.tooltip","Host interface that the MCP WROX Dashboard HTTP server binds to.")})}),e.jsx("dd",{children:u.cold.HTTP_HOST}),e.jsx("dt",{children:e.jsx(o,{label:"DASHBOARD_AUTO_OPEN",tooltip:s("settings.cold.dashboardAutoOpen.tooltip","Controls whether WROX Dashboard opens automatically in the browser when the server starts.")})}),e.jsx("dd",{children:e.jsx(b,{text:s("settings.cold.dashboardAutoOpen.value.tooltip","Current startup behavior for opening WROX Dashboard in a browser."),children:String(u.cold.DASHBOARD_AUTO_OPEN)})})]}),e.jsx("p",{className:t.coldHint,children:s("settings.cold.hint","Set via environment variables to change these values.")})]}):e.jsx("div",{className:t.loading,children:s("settings.unavailable")})]}),e.jsxs("div",{className:t.card,children:[e.jsx("div",{className:t.cardHeader,children:e.jsx(o,{label:s("settings.sync.title","Sync Settings"),tooltip:s("settings.sync.title.tooltip","Saved sync limits for project file indexing and traversal.")})}),e.jsxs("div",{className:t.syncForm,children:[e.jsxs("div",{className:t.syncRow,children:[e.jsxs("div",{className:t.syncField,children:[e.jsx("label",{children:e.jsx(o,{label:s("settings.sync.maxDepth","Max Depth"),tooltip:s("settings.sync.maxDepth.tooltip","Maximum folder depth the sync scanner will traverse.")})}),e.jsx("input",{type:"number",className:t.numberInput,value:x.maxDepth??10,min:1,max:100,onChange:a=>{const d=parseInt(a.target.value,10);isNaN(d)||j(v=>({...v,maxDepth:d}))}})]}),e.jsxs("div",{className:t.syncField,children:[e.jsx("label",{children:e.jsx(o,{label:s("settings.sync.maxInstances","Max Instances"),tooltip:s("settings.sync.maxInstances.tooltip","Maximum number of Roblox instances to index during sync.")})}),e.jsx("input",{type:"number",className:t.numberInput,value:x.maxInstances??5e3,min:100,max:5e4,step:100,onChange:a=>{const d=parseInt(a.target.value,10);isNaN(d)||j(v=>({...v,maxInstances:d}))}})]})]}),e.jsx("button",{className:t.saveBtn,onClick:l,disabled:T,children:T?s("common.loading"):s("settings.sync.save","Save")})]})]}),e.jsxs("div",{className:t.card,children:[e.jsx("div",{className:t.cardHeader,children:e.jsx(o,{label:s("settings.language.title","Language"),tooltip:s("settings.language.title.tooltip","Choose how the WROX Dashboard interface text is localized.")})}),e.jsxs("div",{className:t.langRow,children:[e.jsx("label",{children:e.jsx(o,{label:s("settings.language.dashboard","WROX Dashboard Language"),tooltip:s("settings.language.dashboard.tooltip","Overrides the WROX Dashboard language or follows the system language when set to Auto.")})}),e.jsxs("select",{className:t.select,value:r,onChange:a=>y(a.target.value),children:[e.jsx("option",{value:q,children:s("settings.language.auto","Auto")}),U.map(a=>e.jsx("option",{value:a,children:$e[a]??a},a))]})]})]})]})}export{Ue as Component};
@@ -1,4 +0,0 @@
1
- import{r as c,a as N,D as S,u as L,k as R,l as P,j as e,d as B,i as $,T as j,m as O}from"./index-BNdn6WpU.js";import{I as x}from"./InfoLabel-B_Ys60mi.js";import{C as E}from"./ConfirmModal-CInBBLZW.js";import{S as A}from"./StatusBadge-FYpJOX7r.js";import{D,a as H,u as M,T as F}from"./TierComparison-D4uVUGcZ.js";import{t as p}from"./TierPromo.module-CAoUYgIx.js";const U=5e3;function G(){const[t,a]=c.useState(null),[_,g]=c.useState(null),[o,l]=c.useState([]),[m,f]=c.useState(!0),h=c.useRef(null),y=c.useRef(null),r=c.useCallback(async()=>{try{const d=await N.get("/sync/status");a(d)}catch{}},[]),b=c.useCallback(async()=>{try{const d=await N.get("/sync/config");g(d)}catch{}},[]),n=c.useCallback(async()=>{try{const d=await N.get("/sync/history",{limit:"30"});l(d.entries??[])}catch{l([])}},[]),u=c.useCallback(async()=>{await Promise.all([r(),b(),n()]),f(!1)},[r,b,n]),v=c.useCallback(()=>{u()},[u]),T=c.useCallback(async()=>{await N.post("/api/dashboard/sync/history/clear"),l([]),r()},[r]);return c.useEffect(()=>(u(),y.current=setInterval(u,U),()=>{y.current&&clearInterval(y.current)}),[u]),c.useEffect(()=>{const d=new S;h.current=d,d.connect();const i=d.on("sync",()=>{r(),n()});return()=>{i(),d.disconnect(),h.current=null}},[r,n]),{status:t,config:_,history:o,loading:m,refresh:v,clearHistory:T}}function W({icon:t,title:a,description:_,benefits:g,upgradeLabel:o,upgradeHref:l}){const{t:m}=L(),[f,h]=c.useState(!1),{trackEvent:y}=R(),{pathname:r}=P(),b=r.replace(/^\//,"").split("/")[0]||"overview";return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:p.panel,children:[t&&e.jsx("div",{className:p.panelIcon,children:t}),e.jsx("div",{className:p.panelTitle,children:a}),e.jsx("div",{className:p.panelDesc,children:_}),e.jsx("ul",{className:p.benefitList,children:g.map(n=>e.jsx("li",{className:p.benefitItem,children:n},n))}),e.jsx("div",{className:p.panelDiscountWrap,children:e.jsx(D,{variant:"centered"})}),e.jsxs("div",{className:p.actions,children:[e.jsx("button",{className:`${p.btn} ${p.btnOutline}`,onClick:()=>{y("dashboard_tier_toggle",{page:b}),h(!0)},children:m("tier.compare","Basic vs Pro")}),e.jsx("a",{className:`${p.btn} ${p.btnPrimary}`,href:l,target:"_blank",rel:"noreferrer",onClick:()=>y("dashboard_upgrade_click",{page:b}),children:o})]})]}),f&&e.jsx(H,{onClose:()=>h(!1)})]})}const V="_page_xmkt1_2",q="_card_xmkt1_10",z="_cardHeader_xmkt1_17",X="_clearButton_xmkt1_29",Y="_statusRow_xmkt1_39",J="_metaItem_xmkt1_46",K="_statusGrid_xmkt1_52",Q="_table_xmkt1_71",Z="_directionRail_xmkt1_99",ee="_endpointLabel_xmkt1_105",te="_optionRail_xmkt1_109",se="_directionOption_xmkt1_115",ne="_directionOptionActive_xmkt1_129",ae="_directionOptionInactive_xmkt1_133",ie="_direction_forward_xmkt1_139",ce="_direction_bidirectional_xmkt1_143",oe="_direction_reverse_xmkt1_147",le="_lockBadge_xmkt1_152",re="_proBadge_xmkt1_160",de="_forwardBadge_xmkt1_174",pe="_configGrid_xmkt1_187",ue="_configItem_xmkt1_193",me="_configLabel_xmkt1_199",ye="_configValue_xmkt1_207",ge="_logContainer_xmkt1_214",he="_logEntry_xmkt1_221",xe="_logTime_xmkt1_233",_e="_logType_xmkt1_239",fe="_logTypeWrite_xmkt1_248",je="_logTypeUpdate_xmkt1_252",be="_logTypeDelete_xmkt1_256",ke="_logTypeIdle_xmkt1_260",ve="_logPath_xmkt1_264",we="_logEmpty_xmkt1_271",Ne="_overlay_xmkt1_278",Te="_overlayTitle_xmkt1_288",Ie="_overlayMessage_xmkt1_295",Ce="_checklist_xmkt1_301",Le="_checkItem_xmkt1_311",Se="_upgradePanel_xmkt1_327",Re="_upgradePanelHeader_xmkt1_334",Pe="_benefitList_xmkt1_342",Be="_benefitItem_xmkt1_351",$e="_upgradeActions_xmkt1_366",Oe="_btn_xmkt1_371",Ee="_btnPrimary_xmkt1_388",Ae="_disabled_xmkt1_399",s={page:V,card:q,cardHeader:z,clearButton:X,statusRow:Y,metaItem:J,statusGrid:K,table:Q,directionRail:Z,endpointLabel:ee,optionRail:te,directionOption:se,directionOptionActive:ne,directionOptionInactive:ae,direction_forward:ie,direction_bidirectional:ce,direction_reverse:oe,lockBadge:le,proBadge:re,forwardBadge:de,configGrid:pe,configItem:ue,configLabel:me,configValue:ye,logContainer:ge,logEntry:he,logTime:xe,logType:_e,logTypeWrite:fe,logTypeUpdate:je,logTypeDelete:be,logTypeIdle:ke,logPath:ve,logEmpty:we,overlay:Ne,overlayTitle:Te,overlayMessage:Ie,checklist:Ce,checkItem:Le,upgradePanel:Se,upgradePanelHeader:Re,benefitList:Pe,benefitItem:Be,upgradeActions:$e,btn:Oe,btnPrimary:Ee,disabled:Ae},De=[{key:"forward",symbol:"←"},{key:"bidirectional",symbol:"↔"},{key:"reverse",symbol:"→"}];function He(t){const a=new Date(t);return`${String(a.getHours()).padStart(2,"0")}:${String(a.getMinutes()).padStart(2,"0")}`}function Me(t){return t<1024?`${t}B`:t<1024*1024?`${(t/1024).toFixed(0)}KB`:`${(t/(1024*1024)).toFixed(0)}MB`}function Fe(t){switch(t){case"write":return s.logTypeWrite;case"update":return s.logTypeUpdate;case"delete":return s.logTypeDelete;default:return s.logTypeIdle}}function Ue(t){switch(t){case"syncing":return"syncing";case"initializing":return"initializing";case"idle":return"idle";default:return"offline"}}function Ge(t,a,_,g){const o=t(`sync.directions.cat.${a}`,a.charAt(0).toUpperCase()+a.slice(1)),l=t("sync.directions.endpoint.local","Local"),m=t("sync.directions.endpoint.studio","Studio");switch(_){case"forward":return[`${o}: ${l} <- ${m}`,t("sync.directions.tooltip.forward.body","Studio changes sync to local files only")].join(`
2
- `);case"bidirectional":return[`${o}: ${l} <-> ${m}`,t("sync.directions.tooltip.bidirectional.body","Two-way sync between Local and Studio"),g?t("sync.directions.tooltip.proRequired","Pro required in Basic tier"):""].filter(Boolean).join(`
3
- `);case"reverse":return[`${o}: ${l} -> ${m}`,t("sync.directions.tooltip.reverse.body","Push local file changes to Studio"),g?t("sync.directions.tooltip.proRequired","Pro required in Basic tier"):""].filter(Boolean).join(`
4
- `);default:return o}}const We=["scripts","values","containers","data","services"];function Ve(t,a){return a==="manual"?t("sync.directions.mode.manual","Manual"):a==="auto"?t("sync.directions.mode.auto","Auto"):"-"}function qe(t,a){return a==="manual"?t("sync.directions.mode.manual.tooltip","Applies sync changes only when you trigger them manually."):a==="auto"?t("sync.directions.mode.auto.tooltip","Applies sync changes automatically when updates arrive."):""}function ze(t,a){switch(a){case"write":return t("sync.log.type.write","WRITE");case"update":return t("sync.log.type.update","UPDATE");case"delete":return t("sync.log.type.delete","DELETE");default:return t("sync.log.type.idle","IDLE")}}function Xe(t,a){switch(a){case"write":return t("sync.log.type.write.tooltip","A new sync output was written to disk.");case"update":return t("sync.log.type.update.tooltip","An existing synced file or instance was updated.");case"delete":return t("sync.log.type.delete.tooltip","A synced file or instance was removed.");default:return t("sync.log.type.idle.tooltip","A sync event was recorded without a file mutation.")}}function tt(){const{t}=L(),{level:a}=B(),{tier:_,loading:g}=M(),o=G(),{show:l}=$(),[m,f]=c.useState(!1),[h,y]=c.useState(!1),r=!g&&_==="basic";if(a==="disconnected"||a==="serverOnly")return e.jsx("div",{className:s.page,children:e.jsx("div",{className:s.card,children:e.jsxs("div",{className:s.overlay,children:[e.jsx("div",{className:s.overlayTitle,children:t("sync.overlay.title","Roblox Studio plugin required")}),e.jsx("div",{className:s.overlayMessage,children:t("sync.overlay.message","Sync status will be available once the Roblox Studio plugin connects.")}),e.jsxs("ul",{className:s.checklist,children:[e.jsx("li",{className:s.checkItem,children:t("sync.overlay.check1","Is Roblox Studio running?")}),e.jsx("li",{className:s.checkItem,children:t("sync.overlay.check2","Is the WROX Plugin installed?")}),e.jsx("li",{className:s.checkItem,children:t("sync.overlay.check3","Are HTTP Requests enabled in Studio settings?")})]})]})})});const n=o.status,u=o.config,v=o.history,T=Ue(n==null?void 0:n.state),d=async()=>{y(!0);try{await o.clearHistory(),l(t("toast.clearSuccess","Cleared successfully"),"success"),f(!1)}catch{l(t("toast.clearFailed","Failed to clear data"),"error")}finally{y(!1)}};return e.jsxs("div",{className:s.page,children:[e.jsxs("div",{className:s.card,children:[e.jsxs("div",{className:s.cardHeader,children:[e.jsx(j,{text:t("sync.status.title.tooltip","Current Studio and local file sync status for this place."),children:t("sync.status.title","Sync Status")}),r&&e.jsx(j,{text:t("sync.status.forwardOnly.tooltip","Basic tier allows Studio to local forward sync only."),children:e.jsx("span",{className:s.forwardBadge,children:t("sync.status.forwardOnly","Forward Only")})})]}),e.jsxs("div",{className:s.statusRow,children:[e.jsx(A,{status:T}),(n==null?void 0:n.placeName)&&e.jsxs("span",{className:s.metaItem,children:[e.jsx(x,{label:t("sync.status.place","Place"),tooltip:t("sync.status.place.tooltip","Connected Roblox place name and place ID.")}),": ",n.placeName,n.placeId?` (${n.placeId})`:""]})]}),e.jsxs("dl",{className:s.statusGrid,children:[(n==null?void 0:n.syncRoot)&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(x,{label:t("sync.status.path","Path"),tooltip:t("sync.status.path.tooltip","Local filesystem root currently used for sync output.")})}),e.jsx("dd",{children:n.syncRoot})]}),(n==null?void 0:n.instanceCount)!=null&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(x,{label:t("sync.status.instances","Instances"),tooltip:t("sync.status.instances.tooltip","Total synced Roblox instances tracked in the local mirror.")})}),e.jsx("dd",{children:n.instanceCount})]}),(n==null?void 0:n.scriptCount)!=null&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(x,{label:t("sync.status.scripts","Scripts"),tooltip:t("sync.status.scripts.tooltip","Total synced script files currently indexed for this place.")})}),e.jsx("dd",{children:n.scriptCount})]}),(n==null?void 0:n.state)==="syncing"&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(x,{label:t("sync.status.state","State"),tooltip:t("sync.status.state.tooltip","Current runtime sync state reported by the server.")})}),e.jsx("dd",{children:t("status.syncing","Syncing")})]})]})]}),(n==null?void 0:n.directions)&&e.jsxs("div",{className:s.card,children:[e.jsx("div",{className:s.cardHeader,children:e.jsx(j,{text:t("sync.directions.title.tooltip","Per-category sync direction and apply behavior between Local and Studio."),children:t("sync.directions.title","Sync Directions")})}),e.jsxs("table",{className:s.table,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx(x,{label:t("sync.directions.type","Type"),tooltip:t("sync.directions.type.tooltip","Sync category affected by this rule.")})}),e.jsx("th",{children:e.jsx(x,{label:t("sync.directions.direction","Direction"),tooltip:t("sync.directions.direction.tooltip","Whether each category syncs from Studio, to Studio, or both ways.")})}),e.jsx("th",{children:e.jsx(x,{label:t("sync.directions.applyMode","Apply Mode"),tooltip:t("sync.directions.applyMode.tooltip","How incoming sync changes are applied for this category.")})})]})}),e.jsx("tbody",{children:We.map(i=>{var C;const w=n.directions[i],I=(C=n.applyModes)==null?void 0:C[i];return e.jsxs("tr",{children:[e.jsx("td",{children:t(`sync.directions.cat.${i}`,i.charAt(0).toUpperCase()+i.slice(1))}),e.jsx("td",{children:e.jsxs("div",{className:s.directionRail,"aria-label":`${i}-direction-rail`,children:[e.jsx(j,{text:t("sync.directions.endpoint.local.tooltip","Local files on disk are always shown on the left side of the direction rail."),children:e.jsx("span",{className:s.endpointLabel,children:t("sync.directions.endpoint.local","Local")})}),e.jsx("span",{className:s.optionRail,children:De.map(k=>e.jsx(O,{text:Ge(t,i,k.key,r),children:e.jsx("span",{className:`${s.directionOption} ${w===k.key?s.directionOptionActive:s.directionOptionInactive} ${s[`direction_${k.key}`]??""}`,"data-active":w===k.key?"true":"false",children:k.symbol})},k.key))}),e.jsx(j,{text:t("sync.directions.endpoint.studio.tooltip","Roblox Studio is always shown on the right side of the direction rail."),children:e.jsx("span",{className:s.endpointLabel,children:t("sync.directions.endpoint.studio","Studio")})})]})}),e.jsx("td",{children:e.jsx(j,{text:qe(t,I),children:Ve(t,I)})})]},i)})})]})]}),u&&e.jsxs("div",{className:s.card,children:[e.jsx("div",{className:s.cardHeader,children:t("sync.config.title","Sync Config")}),e.jsxs("div",{className:s.configGrid,children:[e.jsxs("div",{className:s.configItem,children:[e.jsx("span",{className:s.configLabel,children:t("sync.config.maxDepth","Max Depth")}),e.jsx("span",{className:s.configValue,children:u.maxDepth})]}),e.jsxs("div",{className:s.configItem,children:[e.jsx("span",{className:s.configLabel,children:t("sync.config.maxInstances","Max Instances")}),e.jsx("span",{className:s.configValue,children:u.maxInstances})]}),e.jsxs("div",{className:s.configItem,children:[e.jsx("span",{className:s.configLabel,children:t("sync.config.dirLimit","Dir Limit")}),e.jsx("span",{className:s.configValue,children:Me(u.directorySizeLimit)})]})]})]}),e.jsxs("div",{className:s.card,children:[e.jsxs("div",{className:s.cardHeader,children:[e.jsx("span",{children:t("sync.log.title","Sync Log")}),e.jsx("button",{className:s.clearButton,onClick:()=>f(!0),children:t("common.clear","Clear")})]}),e.jsx("div",{className:s.logContainer,children:v.length===0?e.jsx("div",{className:s.logEmpty,children:t("sync.log.empty","No sync events yet")}):v.map((i,w)=>e.jsxs("div",{className:s.logEntry,children:[e.jsx("span",{className:s.logTime,children:He(i.timestamp)}),e.jsx(j,{text:Xe(t,i.type),children:e.jsx("span",{className:`${s.logType} ${Fe(i.type)}`,children:ze(t,i.type)})}),e.jsxs("span",{className:s.logPath,children:[i.path,i.details?` — ${i.details}`:""]})]},w))})]}),r&&e.jsx(W,{title:t("sync.upgrade.title","Unlock Full Sync with Pro"),description:t("tier.banner.save","Save AI tokens with Pro!"),benefits:[t("sync.upgrade.benefit1","Bidirectional sync — edit files, auto-apply to Studio"),t("sync.upgrade.benefit2","Reverse sync — push file changes back to Studio"),t("sync.upgrade.benefit3","Full sync history and detailed change log")],upgradeLabel:t("sync.upgrade.buy","Upgrade to Pro"),upgradeHref:F.sync}),e.jsx(E,{open:m,title:t("sync.clear.title","Clear sync log?"),message:t("sync.clear.message","This permanently removes the stored sync log for the current place."),cancelLabel:t("common.cancel","Cancel"),confirmLabel:t("common.clear","Clear"),loading:h,onCancel:()=>!h&&f(!1),onConfirm:d})]})}export{tt as Component};
@@ -1 +0,0 @@
1
- ._page_xmkt1_2{display:flex;flex-direction:column;gap:16px;max-width:900px}._card_xmkt1_10{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px}._cardHeader_xmkt1_17{font-family:var(--font-label);font-size:13px;font-weight:600;color:var(--text-primary);margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}._clearButton_xmkt1_29{border:1px solid rgba(209,84,84,.5);background:#d154541f;color:#f4c1c1;border-radius:8px;padding:6px 12px;cursor:pointer}._statusRow_xmkt1_39{display:flex;align-items:center;gap:12px;margin-bottom:8px}._metaItem_xmkt1_46{font-family:var(--font-code);font-size:12px;color:var(--text-secondary)}._statusGrid_xmkt1_52{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;font-size:12px}._statusGrid_xmkt1_52 dt{color:var(--text-secondary);font-family:var(--font-label)}._statusGrid_xmkt1_52 dd{margin:0;font-family:var(--font-code);color:var(--text-primary)}._table_xmkt1_71{width:100%;border-collapse:collapse;font-family:var(--font-code);font-size:12px}._table_xmkt1_71 th{text-align:left;padding:6px 12px;border-bottom:1px solid var(--border);color:var(--text-secondary);font-family:var(--font-label);font-weight:500;font-size:11px}._table_xmkt1_71 td{padding:6px 12px;border-bottom:1px solid var(--border);color:var(--text-primary)}._table_xmkt1_71 tr:last-child td{border-bottom:none}._directionRail_xmkt1_99{display:inline-flex;align-items:center;gap:10px}._endpointLabel_xmkt1_105{color:var(--text-secondary)}._optionRail_xmkt1_109{display:inline-flex;align-items:center;gap:6px}._directionOption_xmkt1_115{display:inline-flex;align-items:center;justify-content:center;width:28px;height:24px;border-radius:6px;border:1px solid var(--border);font-family:var(--font-code);font-size:13px;cursor:help;-webkit-user-select:none;user-select:none}._directionOptionActive_xmkt1_129{background:var(--bg-secondary)}._directionOptionInactive_xmkt1_133{background:transparent;opacity:.45;color:var(--text-muted)}._directionOptionActive_xmkt1_129._direction_forward_xmkt1_139{color:var(--success)}._directionOptionActive_xmkt1_129._direction_bidirectional_xmkt1_143{color:var(--accent)}._directionOptionActive_xmkt1_129._direction_reverse_xmkt1_147{color:var(--warning)}._lockBadge_xmkt1_152{display:inline-block;margin-left:6px;font-size:11px;color:var(--text-muted)}._proBadge_xmkt1_160{display:inline-block;margin-left:6px;padding:1px 5px;font-size:9px;font-weight:600;letter-spacing:.05em;color:#1a1407;background:var(--pro-badge);border-radius:3px;vertical-align:middle}._forwardBadge_xmkt1_174{display:inline-block;padding:2px 8px;font-size:10px;font-weight:600;letter-spacing:.04em;color:var(--text-secondary);background:var(--bg-secondary);border:1px solid var(--border);border-radius:4px}._configGrid_xmkt1_187{display:flex;flex-wrap:wrap;gap:16px}._configItem_xmkt1_193{display:flex;flex-direction:column;gap:2px}._configLabel_xmkt1_199{font-family:var(--font-label);font-size:10px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em}._configValue_xmkt1_207{font-family:var(--font-code);font-size:13px;color:var(--text-primary)}._logContainer_xmkt1_214{max-height:240px;overflow-y:auto;font-family:var(--font-code);font-size:11px}._logEntry_xmkt1_221{display:flex;gap:10px;padding:3px 0;border-bottom:1px solid var(--border);color:var(--text-primary)}._logEntry_xmkt1_221:last-child{border-bottom:none}._logTime_xmkt1_233{color:var(--text-muted);flex-shrink:0;width:44px}._logType_xmkt1_239{font-weight:500;flex-shrink:0;width:90px;text-transform:uppercase;font-size:10px;letter-spacing:.04em}._logTypeWrite_xmkt1_248{color:var(--success)}._logTypeUpdate_xmkt1_252{color:var(--accent)}._logTypeDelete_xmkt1_256{color:var(--error)}._logTypeIdle_xmkt1_260{color:var(--text-muted)}._logPath_xmkt1_264{color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._logEmpty_xmkt1_271{color:var(--text-muted);font-style:italic;padding:8px 0}._overlay_xmkt1_278{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 24px;gap:16px}._overlayTitle_xmkt1_288{font-family:var(--font-label);font-size:15px;font-weight:600;color:var(--text-primary)}._overlayMessage_xmkt1_295{font-size:13px;color:var(--text-secondary);max-width:400px}._checklist_xmkt1_301{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;text-align:left}._checkItem_xmkt1_311{font-family:var(--font-code);font-size:12px;color:var(--text-secondary);padding-left:20px;position:relative}._checkItem_xmkt1_311:before{content:"○";position:absolute;left:0;color:var(--text-muted)}._upgradePanel_xmkt1_327{background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px}._upgradePanelHeader_xmkt1_334{font-family:var(--font-label);font-size:13px;font-weight:600;color:var(--accent);margin-bottom:8px}._benefitList_xmkt1_342{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-direction:column;gap:4px}._benefitItem_xmkt1_351{font-size:12px;color:var(--text-secondary);padding-left:16px;position:relative}._benefitItem_xmkt1_351:before{content:"+";position:absolute;left:0;color:var(--accent);font-weight:600}._upgradeActions_xmkt1_366{display:flex;gap:8px}._btn_xmkt1_371{font-family:var(--font-label);font-size:12px;padding:6px 14px;border-radius:4px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);cursor:pointer;transition:background var(--transition),border-color var(--transition)}._btn_xmkt1_371:hover{border-color:var(--accent);background:var(--accent-dim)}._btnPrimary_xmkt1_388{background:var(--accent);color:var(--bg-card);border-color:var(--accent)}._btnPrimary_xmkt1_388:hover{opacity:.9}._disabled_xmkt1_399{opacity:.4;pointer-events:none}
@@ -1 +0,0 @@
1
- import{r as o,D as S,a as T,f as R,u as j,j as t}from"./index-BNdn6WpU.js";function pe(){const[c,e]=o.useState("basic"),[m,n]=o.useState(0),[p,g]=o.useState(0),[a,i]=o.useState(0),[k,P]=o.useState(!0);o.useEffect(()=>{let _=!1;async function h(){try{return await R("gumroad")}catch{return null}}async function C(){var r,f;try{const[u,d]=await Promise.all([h(),T.get("/api/dashboard/tool-stats").catch(()=>null)]);if(_)return;if(u!=null&&u.tier&&e(u.tier),d!=null&&d.tierSummary){const b=((r=d.tierSummary.basic)==null?void 0:r.totalCalls)??0,x=((f=d.tierSummary.pro)==null?void 0:f.totalCalls)??0;i(b),g(x),n(b+x)}}catch{}finally{_||P(!1)}}C();const y=new S;y.connect();const N=y.on("license",()=>{h().then(r=>{!_&&(r!=null&&r.tier)&&e(r.tier)})});return()=>{_=!0,N(),y.disconnect()}},[]);const w=m>0?p/m*100:0;return{tier:c,proUsagePercent:w,totalCalls:m,proCalls:p,basicCalls:a,loading:k}}const O=[{name:"query_instances",description:"Query Roblox instances: get, children, find child/descendant, wait for child, class info, search by name/class. [PRO] file_tree, project_structure, descendants, ancestors, search by property/tag.",basic:["get","children","find_child","find_descendant","wait_for_child","class_info","search_name","search_class"],pro:["search_property","search_tag","file_tree","project_structure","descendants","ancestors"]},{name:"mutate_instances",description:"Create, delete, clone, move, rename, or pivot instances. [PRO] create_tree, mass_create, mass_delete, mass_duplicate, smart_duplicate.",basic:["create","create_with_props","delete","clone","move","rename","pivot"],pro:["create_tree","mass_create","mass_delete","mass_duplicate","smart_duplicate"]},{name:"manage_properties",description:"Get/set properties, attributes, and tags on instances. [PRO] set_calculated, set_relative, mass_set, mass_get, modify_children.",basic:["get","set","get_all","set_multiple","get_attr","set_attr","get_all_attrs","delete_attr","add_tag","remove_tag","check_tag","get_tags","get_tagged"],pro:["set_calculated","set_relative","mass_set","mass_get","modify_children"]},{name:"manage_scripts",description:"Manage script source code: read, write, create, delete, edit lines, search. [PRO] replace across scripts.",basic:["get_source","set_source","create","delete","edit_replace","edit_insert","edit_delete","search","get_dependencies"],pro:["replace"]},{name:"manage_lighting",description:"[PRO] Configure environment: lighting, atmosphere, sky, terrain properties, time of day.",basic:[],pro:["lighting","atmosphere","sky","terrain_props","time"]},{name:"manage_selection",description:"Get, set, or clear selection. [PRO] context, details, add/remove items, watch changes.",basic:["get","set","clear","cached"],pro:["context","details","add","remove","watch"]},{name:"manage_camera",description:"Camera operations: get info, focus on instance by path or position, get suggested view.",basic:["info","focus_path","focus_position","suggest"],pro:[]},{name:"manage_tween",description:"[PRO] Tween service: create, play, pause, cancel tweens for smooth animations.",basic:[],pro:["create","play","pause","cancel"]},{name:"manage_audio",description:"[PRO] Audio management: play, stop, pause, resume sounds. Set audio listener.",basic:[],pro:["play","stop","pause","resume","set_listener"]},{name:"manage_animation",description:"[PRO] Animation: load, play, stop animations. Get animation tracks from humanoid/controller.",basic:[],pro:["load","play","stop","get_tracks"]},{name:"manage_physics",description:"[PRO] Physics collision groups: register, set collidable between groups, list groups.",basic:[],pro:["register_group","set_collidable","get_groups"]},{name:"manage_effects",description:"[PRO] Particle effects: emit particles, clear all particles, toggle effect enabled state.",basic:[],pro:["emit","clear","toggle"]},{name:"manage_terrain",description:"[PRO] Terrain operations: fill shapes, clear regions, replace materials, manage colors, read/write voxels, generate procedural terrain, smooth terrain.",basic:[],pro:["fill_block","fill_ball","fill_cylinder","fill_wedge","clear_region","clear_bounds","replace_material","colors_get","colors_set","read_voxel","read_voxels","write_voxels","generate","smooth"]},{name:"spatial_query",description:"[PRO] Spatial queries: raycast, find ground, check placement, multi-raycast, scan area, find flat areas, find spawn positions, analyze walkable, spatial map, find empty space, get bounds, snap to grid, check collision.",basic:[],pro:["raycast","find_ground","check_placement","multi_raycast","scan_area","find_flat","find_spawn","analyze_walkable","spatial_map","find_space","bounds","snap_grid","collision"]},{name:"manage_assets",description:"[PRO] Asset management: insert models by ID, get asset info, search creator store, insert free models/packages, export selection.",basic:[],pro:["insert","info","search","search_insert","insert_free","insert_package","export"]},{name:"manage_sync",description:"[PRO] Project sync management: status, config, history, direction settings, read/write synced files.",basic:[],pro:["status","config","history","directions","read_file","write_file","progress"]},{name:"workspace_state",description:"[PRO] Workspace state: full sync, snapshot, recent changes, viewport info, clear history, metadata, scripts, selection info, clear cache.",basic:[],pro:["sync","snapshot","changes","viewport","clear_history","metadata","scripts","selection_info","clear_cache"]},{name:"manage_logs",description:"Output logs: get filtered logs, poll incrementally with sinceSeq cursor, clear buffer, get recent errors.",basic:["get","clear","errors"],pro:[]},{name:"system_info",description:"System info: ping, connection status, usage tier. [PRO] place info, services list, studio settings, playtest control, automated test runner.",basic:["ping","connection","usage"],pro:["place_info","services","studio_settings","play","stop","pause","resume","play_status","run_test"]},{name:"batch_execute",description:'[PRO] Execute multiple commands in a single batch. Each command is an object with "tool" name and "args". Commands execute sequentially; optionally continue on error.',basic:[],pro:["batch_execute"]},{name:"execute_luau",description:"[PRO] Execute arbitrary Luau code in Roblox Studio sandbox. Blocked services: HttpService, DataStoreService, MessagingService. Cannot access CoreGui/CorePackages.",basic:[],pro:["execute_luau"]}],B={proOnlyTools:13,mixedTools:6,totalBasicActions:51,totalProActions:107},L={tools:O,summary:B},A=new Date("2026-04-30T23:59:59");function v(){return Date.now()<=A.getTime()}const _e={overview:"https://gum.co/u/2nc0fhky",changelog:"https://gum.co/u/wjcnucpy",sync:"https://gum.co/u/p0barnlb",playtest:"https://gum.co/u/kchczjry",tools:"https://gum.co/u/ljmteaed"},D="_tag_1wj0q_2",E="_label_1wj0q_17",q="_code_1wj0q_22",G="_expiry_1wj0q_31",M="_inline_1wj0q_49",$="_centered_1wj0q_54",l={tag:D,label:E,code:q,expiry:G,inline:M,centered:$};function W({variant:c}){const{t:e}=j();return v()?t.jsxs("div",{className:`${l.tag} ${c==="centered"?l.centered:l.inline}`,children:[t.jsx("span",{className:l.label,children:e("tier.promo.discount.context","🎁 Gumroad 결제 시 할인코드 입력:")}),t.jsx("span",{className:l.code,children:e("tier.comparison.discount.code","WEPPY-MCP")}),t.jsx("span",{className:l.expiry,children:e("tier.comparison.discount.expiry","Valid until April 30")})]}):null}const H="_overlay_171mk_2",I="_modal_171mk_13",U="_summaryGrid_171mk_32",z="_summaryCard_171mk_39",Y="_basicCard_171mk_45",F="_proCard_171mk_49",Q="_cardTitle_171mk_54",V="_summarySection_171mk_70",X="_sectionTitle_171mk_78",J="_featureList_171mk_90",K="_summary_171mk_32",Z="_statBasic_171mk_116",ee="_statPro_171mk_120",te="_statMixed_171mk_124",se="_detailHeader_171mk_128",ae="_tableWrap_171mk_137",ie="_table_171mk_137",re="_toolName_171mk_165",ce="_description_171mk_171",ne="_actionList_171mk_176",oe="_none_171mk_184",le="_discountBanner_171mk_189",me="_closeBtn_171mk_227",s={overlay:H,modal:I,summaryGrid:U,summaryCard:z,basicCard:Y,proCard:F,cardTitle:Q,summarySection:V,sectionTitle:X,featureList:J,summary:K,statBasic:Z,statPro:ee,statMixed:te,detailHeader:se,tableWrap:ae,table:ie,toolName:re,description:ce,actionList:ne,none:oe,discountBanner:le,closeBtn:me};function ue({onClose:c}){const{t:e}=j(),{tools:m,summary:n}=L,p=[{title:e("tier.comparison.basic.core","Core MCP workflow"),items:[e("tier.comparison.basic.core.item1","Script create/edit"),e("tier.comparison.basic.core.item2","Instance management"),e("tier.comparison.basic.core.item3","Property control"),e("tier.comparison.basic.core.item4","Selection and search"),e("tier.comparison.basic.core.item5","Tag management"),e("tier.comparison.basic.core.item6","Camera control"),e("tier.comparison.basic.core.item7","Log monitoring")]},{title:e("tier.comparison.basic.sync","Sync (Basic)"),items:[e("tier.comparison.basic.sync.item1","Studio to Local one-way sync"),e("tier.comparison.basic.sync.item2","Manual apply as default"),e("tier.comparison.basic.sync.item3","Pro sync settings stay read-only")]}],g=[{title:e("tier.comparison.pro.all","Everything in Basic, plus"),items:[]},{title:e("tier.comparison.pro.sync","Advanced Sync workflow"),items:[e("tier.comparison.pro.sync.item1","Per-type sync direction"),e("tier.comparison.pro.sync.item2","Per-type apply mode"),e("tier.comparison.pro.sync.item3","Bidirectional and reverse sync"),e("tier.comparison.pro.sync.item4","Full sync, resync, and push to Studio"),e("tier.comparison.pro.sync.item5","Multi-place sync")]},{title:e("tier.comparison.pro.playtest","Playtest control"),items:[e("tier.comparison.pro.playtest.item1","Play, stop, pause, and resume"),e("tier.comparison.pro.playtest.item2","Playtest state inspection"),e("tier.comparison.pro.playtest.item3","Automated test execution")]},{title:e("tier.comparison.pro.creation","Advanced creation workflow"),items:[e("tier.comparison.pro.creation.item1","Bulk operations"),e("tier.comparison.pro.creation.item2","Terrain generation"),e("tier.comparison.pro.creation.item3","Asset search and insert"),e("tier.comparison.pro.creation.item4","Raycast and spatial analysis"),e("tier.comparison.pro.creation.item5","Environment control")]}];return t.jsx("div",{className:s.overlay,onClick:c,children:t.jsxs("div",{className:s.modal,onClick:a=>a.stopPropagation(),children:[v()&&t.jsx("div",{className:s.discountBanner,children:t.jsx(W,{variant:"centered"})}),t.jsx("h2",{children:e("tier.compare")}),t.jsxs("div",{className:s.summaryGrid,children:[t.jsxs("section",{className:`${s.summaryCard} ${s.basicCard}`,children:[t.jsx("h3",{className:s.cardTitle,children:e("tier.basic")}),p.map(a=>t.jsxs("div",{className:s.summarySection,children:[t.jsx("div",{className:s.sectionTitle,children:a.title}),t.jsx("ul",{className:s.featureList,children:a.items.map(i=>t.jsx("li",{children:i},i))})]},a.title))]}),t.jsxs("section",{className:`${s.summaryCard} ${s.proCard}`,children:[t.jsx("h3",{className:s.cardTitle,children:e("tier.pro")}),g.map(a=>t.jsxs("div",{className:s.summarySection,children:[t.jsx("div",{className:s.sectionTitle,children:a.title}),a.items.length>0&&t.jsx("ul",{className:s.featureList,children:a.items.map(i=>t.jsx("li",{children:i},i))})]},a.title))]})]}),t.jsxs("div",{className:s.summary,children:[t.jsxs("span",{className:s.statBasic,children:["Basic: ",n.totalBasicActions," actions"]}),t.jsxs("span",{className:s.statPro,children:["Pro: ",n.totalProActions," actions"]}),t.jsxs("span",{className:s.statMixed,children:[n.mixedTools," mixed / ",n.proOnlyTools," pro-only"]})]}),t.jsx("div",{className:s.detailHeader,children:e("tier.comparison.detailTitle","Detailed Tool Catalog")}),t.jsx("div",{className:s.tableWrap,children:t.jsxs("table",{className:s.table,children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:e("tools.col.tool")}),t.jsx("th",{children:e("tier.comparison.description","Description")}),t.jsx("th",{children:e("tier.basic")}),t.jsx("th",{children:e("tier.pro")})]})}),t.jsx("tbody",{children:m.map(a=>t.jsxs("tr",{children:[t.jsx("td",{className:s.toolName,children:a.name}),t.jsx("td",{className:s.description,children:e(`tier.tool.${a.name}.desc`,a.description)}),t.jsx("td",{className:s.actionList,children:a.basic.length>0?a.basic.join(", "):t.jsx("span",{className:s.none,children:"—"})}),t.jsx("td",{className:s.actionList,children:a.pro.length>0?a.pro.join(", "):t.jsx("span",{className:s.none,children:"—"})})]},a.name))})]})}),t.jsx("button",{className:s.closeBtn,onClick:c,children:e("tier.comparison.close","Close")})]})})}export{W as D,_e as T,ue as a,pe as u};