{"version":3,"file":"AgentLockPanel.cjs","names":["useT","Button","setAgentLock","UnlockIcon"],"sources":["../../../../src/web/features/session/AgentLockPanel.tsx"],"sourcesContent":["import { useT } from '@agimon-ai/po-core/web';\nimport { Button, UnlockIcon } from '@agimon-ai/po-web-components';\n\nimport { setAgentLock } from '../../stores/sessionStore';\n\n/** The prompt-area gate while the local agent is locked so a remote MCP agent can work. */\nexport function AgentLockPanel({ sessionId }: { sessionId: string }) {\n  const t = useT();\n  return (\n    <div\n      data-testid=\"agent-locked\"\n      className=\"flex flex-wrap items-center justify-between gap-3 rounded-lg border border-po-border bg-po-deep px-3 py-3\"\n    >\n      <div className=\"min-w-0\">\n        <p className=\"text-base font-semibold text-po-hi\">\n          {t('webDashboard.session.agentLocked', 'local agent locked')}\n        </p>\n        <p className=\"text-sm leading-relaxed text-po-dim\">\n          {t(\n            'webDashboard.session.agentLockedDescription',\n            'it will not start turns, so remote MCP agents can work without it. unlock to chat here.',\n          )}\n        </p>\n      </div>\n      <Button variant=\"primary\" size=\"md\" data-testid=\"agent-unlock\" onClick={() => setAgentLock(false, sessionId)}>\n        <UnlockIcon className=\"h-3 w-3\" />\n        {t('webDashboard.session.unlockAgent', 'unlock agent')}\n      </Button>\n    </div>\n  );\n}\n"],"mappings":";;;;;;AAMA,SAAgB,eAAe,EAAE,aAAoC;CACnE,MAAM,KAAA,GAAIA,uBAAAA,KAAAA,CAAK;CACf,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EACE,eAAY;EACZ,WAAU;EAFZ,UAAA,CAIE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;IAAG,WAAU;IACV,UAAA,EAAE,oCAAoC,oBAAoB;GAC1D,CAAA,GACH,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;IAAG,WAAU;IACV,UAAA,EACC,+CACA,yFACF;GACC,CAAA,CACA;EACL,CAAA,GAAA,iBAAA,GAAA,kBAAA,KAAA,CAACC,6BAAAA,QAAD;GAAQ,SAAQ;GAAU,MAAK;GAAK,eAAY;GAAe,eAAeC,qBAAAA,aAAa,OAAO,SAAS;GAA3G,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,6BAAAA,YAAD,EAAY,WAAU,UAAW,CAAA,GAChC,EAAE,oCAAoC,cAAc,CAC/C;EACL,CAAA,CAAA;;AAET"}