PageSourceSearch

https://www.dlsl.edu.ph/build/assets/VSelector.vue_vue_type_script_setup_true_lang-687e1889.js

js dlsl.edu.ph collected 2026-10-02 19:13:46 UTC 3,123 bytes, 1 lines download raw bytes

1import{d as k,c as v,o as t,a5 as y,w as o,u as l,aw as V,g as w,t as d,a as r,f as m,b,j as n,n as i,ax as B,ah as C,ay as z,az as N,e as S,aA as q,F,ab as $,aB as j}from"./default.css_vue_type_style_index_0_src_true_lang-c1d9a380.js";const T={key:0,class:"text-red-600 ml-0.5"},U={class:"relative"},A={key:0,class:"block truncate text-sm text-dark/[0.32]"},D={key:1,class:"block text-sm text-dark/[0.5]"},E={key:1,class:"absolute inset-y-0 right-0 flex items-center pr-2 z-10 cursor-pointer"},H={class:i(["block truncate text-sm"])},O=k({__name:"VSelector",props:{modelValue:{default:null,required:!0},options:{type:Object,required:!0},label:{type:String,default:""},error:{type:String,default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["update:modelValue","clear"],setup(e,{emit:h}){const c=e,f=h,g=v(()=>{const s=c.options.find(u=>u.id==c.modelValue);return s?s.value:c.placeholder}),x=s=>{f("update:modelValue",s)},p=()=>{f("update:modelValue",null),f("clear")};return(s,u)=>(t(),y(l(j),{as:"div",modelValue:e.modelValue,disabled:e.disabled,"onUpdate:modelValue":u[0]||(u[0]=a=>s.$emit("update:modelValue",a.id))},{default:o(()=>[e.label?(t(),y(l(V),{key:0,class:"block text-sm text-gray-900 mb-1"},{default:o(()=>[w(d(e.label),1),e.required?(t(),r("span",T,"*")):m("",!0)]),_:1})):m("",!0),b("div",U,[n(l(B),{class:i(["relative w-full bg-white border rounded-md pl-3 pr-10 py-2.5 h-11 text-left cursor-default focus:outline-none focus:ring-1 disabled:bg-gray-100",[e.error?"focus:ring-red-500 focus:border-red-500 border-red-500":"focus:ring-gray-900 focus:border-gray-900 border-gray-300",e.readonly?"pointer-events-none cursor-default":""]])},{default:o(()=>[g.value?(t(),r("span",A,d(g.value),1)):(t(),r("span",D,d(e.placeholder),1))]),_:1},8,["class"]),e.modelValue&&!e.disabled?(t(),r("span",{key:0,onClick:p,class:"absolute inset-y-0 right-0 flex items-center pr-2 z-10 cursor-pointer",title:"Clear Filter"},[n(l(C),{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])):(t(),r("span",E,[n(l(z),{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])),n($,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:o(()=>[n(l(N),{class:"absolute z-20 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none list-none pl-0"},{default:o(()=>[(t(!0),r(F,null,S(e.options,a=>(t(),y(l(q),{as:"template",key:a.id,value:a,disabled:a.unavailable,hidden:a.hidden,onClick:K=>x(a.id)},{default:o(()=>[b("li",{class:i([e.modelValue==a.id?"bg-gray-300":a.unavailable?"text-gray-900":"text-gray-900 hover:bg-gray-300","cursor-default select-none relative py-2 px-3"])},[b("span",H,d(a.value),1)],2)]),_:2},1032,["value","disabled","hidden","onClick"]))),128))]),_:1})]),_:1})]),e.error?(t(),r("p",{key:1,class:i(["mt-2 text-sm",e.error?"text-red-600":"text-gray-800"]),id:"email-error"},d(e.error),3)):m("",!0)]),_:1},8,["modelValue","disabled"]))}});export{O as _};

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.