1import{_ as u,s,u as m,d as w,v as n,e as i,x as a,i as y}from"./main-1ztNDaK5.js";const _={props:{plugin:{type:Object,required:!0},settings:{type:Object,required:!0}},emits:["update:settings"],data(){return{isKeyVisible:!1}},methods:{changeApiKey(o){this.$emit("update:settings",{...this.settings,privateData:{...this.settings.privateData,apiKey:o}})}}},f={class:"flex items-center"};function b(o,e,r,g,t,l){const p=s("wwEditorInputText"),d=s("wwEditorIcon"),c=s("wwEditorFormRow");return w(),m(c,{required:"",label:"API key"},{"append-label":n(()=>e[1]||(e[1]=[i("a",{class:"ww-editor-link ml-2",href:"https://platform.openai.com/account/api-keys",target:"_blank"}," Find it here ",-1)])),default:n(()=>[i("div",f,[a(p,{type:t.isKeyVisible?"text":"password",name:"api-key",placeholder:"**************","model-value":r.settings.privateData.apiKey,"onUpdate:modelValue":l.changeApiKey,class:"w-100 mr-2"},null,8,["type","model-value","onUpdate:modelValue"]),i("button",{class:"ww-editor-button -icon -secondary -dark",onClick:e[0]||(e[0]=y(h=>t.isKeyVisible=!t.isKeyVisible,["prevent"]))},[a(d,{name:t.isKeyVisible?"eye-off":"eye"},null,8,["name"])])])]),_:1})}const k=u(_,[["render",b]]);export{k as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.