import{d as c,bw as l,t as a,U as i,A as d,v as r,B as o,y as s,x as m}from"./D6By_0qX.js";import{u as p}from"./Cp_jxA-w.js";import{_ as u}from"./DlAUqK2U.js";import{V as S}from"./BJgLrMft.js";const h=c({name:"ScannerSelect",data(){return{selectedScanner:null,scanners:[]}},computed:{...l(p)},mounted(){var e;this.scanners=((e=this.scannersStore)==null?void 0:e.scanners)||[]},methods:{getScannerDetials(e){const n=(e.name||"").trim()!=="";return{title:n===!0?e.name:e.endpoint,subtitle:n===!0?e.endpoint:""}}}}),f={key:0,class:"mb-0"},_={key:1,class:"mb-0"};function b(e,n,V,w,k,y){return a(),i(S,{modelValue:e.selectedScanner,"onUpdate:modelValue":n[0]||(n[0]=t=>e.selectedScanner=t),items:e.scanners,"item-props":e.getScannerDetials,"hide-details":"",variant:"outlined","item-title":"endpoint",density:"compact",clearable:"","return-object":"",label:"Select a scanner",placeholder:"Select or create a scanner to run the scan on","prepend-icon":"mdi-shield-search"},{selection:d(({item:t})=>[(t.raw.name||"").trim()!==""?(a(),r("p",f,[o(s(t.raw.name)+" (",1),m("code",null,s(t.raw.endpoint),1),o(") ")])):(a(),r("code",_,s(t.raw.endpoint),1))]),_:1},8,["modelValue","items","item-props"])}const N=u(h,[["render",b]]);export{N as S};
