PageSourceSearch

https://mafi.com/_nuxt/Select.8J18eE8Q.js

js mafi.com collected 2026-10-06 13:40:35 UTC 1,965 bytes, 1 lines download raw bytes

1import V from"./FormLabel.1HW0GAoH.js";import k from"./FormErrors._A8FkE1p.js";import{_ as q,I as c,x as a,h as t,m as s,j as d,K as i,p as b,B as o,F as f,C as _,E as S,G as B,k as F}from"./entry.rIozx1WT.js";const h={name:"Select",components:{FormErrors:k,FormLabel:V},props:{id:{default:null,required:!0,type:String},required:!1,disabled:{default:!1,type:Boolean},label:String,name:String,size:String,modelValue:String,color:{default:"default",required:!1,type:String},options:{default:[],type:Array},hideLabel:{default:!1,type:Boolean},disableValidation:{default:!1,type:Boolean}},data(){return{errors:[]}}},x={class:"position-relative"},C=["name","id","disabled","required"],E=["selected"],L=["value","disabled"];function z(n,u,e,N,m,j){const v=c("FormLabel"),y=c("FormErrors");return a(),t("div",{class:i(["form-group",{"js-form-validation__group":!e.disableValidation}])},[s("div",x,[e.label?(a(),d(v,{key:0,label:e.label,id:e.id,required:e.required,class:i({"text-primary":e.color==="primary"})},null,8,["label","id","required","class"])):b("",!0),s("select",{class:i(["form-select",{"is-invalid":m.errors.length,"form-select-lg":e.size==="lg","form-select--primary":e.color==="primary"}]),name:e.name,id:e.id,onInput:u[0]||(u[0]=l=>n.$emit("update:modelValue",l.target.value)),disabled:e.disabled,required:e.required},[s("option",{disabled:"",value:"",selected:!e.modelValue},o(n.$t("form.please-select")),9,E),(a(!0),t(f,null,_(e.options,(l,p,D)=>(a(),d(F(l.options?"optgroup":"option"),{value:l.value,key:l.value,disabled:!!l.disabled,label:l.label,selected:e.modelValue===l.value},{default:S(()=>[(a(!0),t(f,null,_(l.options,(r,g)=>(a(),t("option",{value:r.value?r.value:"",key:g,disabled:!!r.disabled},o(r.label),9,L))),128)),B(" "+o(l.label),1)]),_:2},1032,["value","disabled","label","selected"]))),128))],42,C)]),e.disableValidation?b("",!0):(a(),d(y,{key:0,errors:m.errors},null,8,["errors"]))],2)}const G=q(h,[["render",z]]);export{G 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.