PageSourceSearch

https://www.berghilfe.ch/build/assets/InputSelect-3844e720.js

js berghilfe.ch collected 2026-10-02 11:50:58 UTC 1,560 bytes, 1 lines download raw bytes

1import{_ as u,o as t,c as o,a as n,t as l,n as a,F as p,b as c,r as m,d as w}from"./main-e9b0a8a2.js";/* empty css               */const _={name:"InputSelect",props:{options:{type:[Array,Object],default:null},selected:{type:String,default:""},placeholder:{type:String,default:""},type:{type:String,default:""}},data:()=>({selectedOption:{name:""},showDropDown:!1,placeholderText:"Please select an item"}),mounted(){this.selectedOption=this.selected,this.placeholder&&(this.placeholderText=this.placeholder)},methods:{toggleMenu(){this.showDropDown=!this.showDropDown},updateOption(e){this.selectedOption=e,this.showDropDown=!1,this.$emit("updateOption",this.selectedOption)}}},D={class:"input-select"},g={class:"text-group"},y={class:"type"},f=["onClick"];function O(e,i,r,v,k,d){return t(),o("div",D,[n("div",{class:a(["dropdown-toggler",{"-open":e.showDropDown}]),onClick:i[0]||(i[0]=(...s)=>d.toggleMenu&&d.toggleMenu(...s))},[n("div",g,[n("div",y,l(r.type),1),n("div",{class:a(["selection",{"-open":e.showDropDown}])},[e.selectedOption.name!==""?(t(),o(p,{key:0},[c(l(e.selectedOption.name),1)],64)):(t(),o(p,{key:1},[c(l(e.placeholderText),1)],64))],2)])],2),e.showDropDown?(t(),o("ul",{key:0,class:a(["dropdown-list",{"-open":e.showDropDown}])},[(t(!0),o(p,null,m(r.options,(s,h)=>(t(),o("li",{key:`option-${h}`,class:a(["dropdown-item",{"-selected":s.name===e.selectedOption.name}]),onClick:S=>d.updateOption(s)},[n("div",null,l(s.name),1)],10,f))),128))],2)):w("",!0)])}const T=u(_,[["render",O],["__scopeId","data-v-15ddc6a8"]]);export{T 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.