import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{L_ as s,Ou as a}from"./shared-0-C4kdVF7Y.js";import{Ei as t,Mi as r,ki as o}from"./vendor-frame-CwiylG4Y.js";import{nn as m}from"./vendor-all-2-BJdkbLSj.js";import{Ao as n,ts as d}from"./shared-5-UQAFGbWu.js";import{Hp as i}from"./shared-3-D-Ux4aGn.js";var l=e(r()),p=o();function c(){const e=s("system_prompt_editor"),{customSystemPrompt:t,setCustomSystemPrompt:r}=i(),[o,n]=(0,l.useState)(t);(0,l.useEffect)(()=>{n(t)},[t]),e||a();return(0,p.jsxs)(u,{children:[(0,p.jsxs)("div",{className:"mb-4",children:[(0,p.jsx)("h1",{className:"p-2 text-lg font-medium",children:(0,p.jsx)(m,{defaultMessage:"System prompt",id:"/rHnDpPaRk"})}),(0,p.jsx)("textarea",{"aria-label":"System prompt",placeholder:"The following is a conversation between a human and an AI assistant. The assistant is named Claude, created by the company Anthropic. The assistant has access to the current date {{currentDateTime}}",className:"bg-bg-000 border-1 h-72 w-full rounded-lg p-4 text-sm",onChange:e=>n(e.target.value),value:o})]}),(0,p.jsx)(d,{variant:"primary",onClick:()=>{r(o)},children:(0,p.jsx)(m,{defaultMessage:"Save system prompt",id:"pd7U1/hHyE"})}),(0,p.jsx)(d,{variant:"secondary",onClick:()=>{n(""),r("")},children:(0,p.jsx)(m,{defaultMessage:"Reset system prompt to default",id:"6QhTMIaodw"})})]})}function u({className:e,...s}){return(0,p.jsx)("div",{...s,className:t("grid grid-cols-1 gap-1 p-8 border border-border-200 rounded-xl",e)})}export{c as default,n as useShowSysPromptPageInPersonalSettings};