PageSourceSearch

https://burghhouse.org.uk//skins/burgh_house/static/dist/assets/Select.a2a1be62bc2.js

js burghhouse.org.uk collected 2026-10-02 06:22:46 UTC 1,544 bytes, 1 lines download raw bytes

1import{r as p,G as S,e as a,o as l,h as v,g as o,F as c,f as g,J as y,a as s,z as V,k as C,c as $,I as x}from"./index.a2a1be62bc.js";import q from"./Popover.a2a1be62bc.js";const w={class:"select"},B=["id","name","value"],z={__name:"Select",props:{options:{type:Array,required:!0},name:{type:String,required:!1,default:"Select"},modelValue:{type:[String,Number,null],required:!0},placeholder:{type:String,required:!1,default:"Select"}},emits:["update:modelValue"],setup(e,{emit:h}){const d=h,u=(r,n="value")=>r[n]??r,m=p(null),f=r=>{d("update:modelValue",r)};return(r,n)=>{const k=S("Clicker");return l(),a("div",w,[v("select",{class:"select-origin","aria-hidden":"true",id:e.name,onFocus:n[0]||(n[0]=t=>m.value.toggle()),name:e.name,value:e.modelValue,onChange:n[1]||(n[1]=t=>d("update:modelValue",t.target.value))},[(l(!0),a(c,null,g(e.options,t=>(l(),a("option",{key:u(t)},y(u(t)),1))),128))],40,B),o(q,{popup:"dropdown",ref_key:"popover",ref:m},{trigger:s(()=>[o(V,{id:"chevron",width:12,class:"flex"}),e.modelValue?(l(),$(C,{key:0,content:e.options.find(t=>t.value===e.modelValue)?.name??e.modelValue},null,8,["content"])):(l(),a(c,{key:1},[x(y(e.placeholder),1)],64))]),content:s(({popclose:t})=>[v("li",null,[o(k,{onClick:i=>t(()=>f(""))},{default:s(()=>[o(V,{id:"close",width:12})]),_:2},1032,["onClick"])]),(l(!0),a(c,null,g(e.options,i=>(l(),a("li",{key:i.value??i},[o(k,{onClick:N=>t(()=>f(u(i)))},{default:s(()=>[o(C,{content:u(i,"name")},null,8,["content"])]),_:2},1032,["onClick"])]))),128))]),_:1},512)])}}};export{z 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.