import{_ as c}from"./Agents.vue_vue_type_script_setup_true_lang-ead90234.js";import{d,i as p,f as g,g as u,o,w as f,a as m,b as e,m as n,y as _,v,z as h,u as S,e as w}from"./index-debd9251.js";const y={class:"view setting-view"},A={class:"setting-area"},D=e("div",{class:"setting-info"},[e("p",{class:"setting-title"},"Profile picture"),e("p",{class:"setting-description"}," Provide the profile picture of your agent. It is useful for creating an image of trust. ")],-1),V={class:"setting-interface setting-interface-compact"},k={class:"setting-area"},F=e("div",{class:"setting-info"},[e("p",{class:"setting-title"},"Name"),e("p",{class:"setting-description"}," Provide the name of your agent, for which the AI agent will refer to itself as. ")],-1),K={class:"setting-interface setting-interface-compact"},b={class:"setting-area"},I=e("div",{class:"setting-info"},[e("p",{class:"setting-title"},"Personality"),e("p",{class:"setting-description"}," Provide the desired personality for the AI assistant to adopt. Keep it short and direct. ")],-1),N={class:"setting-interface setting-interface-compact"},P={class:"setting-buttons"},B=["disabled"],$=e("div",{class:"mt-50"},null,-1),z=d({__name:"Identity",setup(C){let i=p(!1);async function l(){i.value=!0;let t=await FSDK.State.Agents.edit();if(i.value=!1,!t.status){FSDK.Notification.error(t.data);return}FSDK.Notification.success("Agent updated")}return(t,s)=>{const r=w("browser-title");return o(),g(c,null,{default:u(()=>[f((o(),m("div",y,[e("div",A,[D,e("div",V,[n(_,{modelValue:t.FSDK.State.Agents.workspace.agent.picture,"onUpdate:modelValue":s[0]||(s[0]=a=>t.FSDK.State.Agents.workspace.agent.picture=a),type:"profile picture"},null,8,["modelValue"])])]),e("div",k,[F,e("div",K,[n(v,{modelValue:t.FSDK.State.Agents.workspace.agent.name,"onUpdate:modelValue":s[1]||(s[1]=a=>t.FSDK.State.Agents.workspace.agent.name=a),placeholder:"ie. Emma"},null,8,["modelValue","placeholder"])])]),e("div",b,[I,e("div",N,[n(h,{modelValue:t.FSDK.State.Agents.workspace.agent.personality,"onUpdate:modelValue":s[2]||(s[2]=a=>t.FSDK.State.Agents.workspace.agent.personality=a),placeholder:"Friendly customer support representative.","max-length":1024},null,8,["modelValue","placeholder"])])]),e("div",P,[e("button",{onClick:l,async:"",disabled:S(i),class:"button-one-a"}," Save settings ",8,B)]),$])),[[r,"Agent - Identity"]])]),_:1})}}});export{z as default};
