PageSourceSearch

https://www.valeris.com/_nuxt/SearchFilter.ccc56b42.js

js valeris.com collected 2026-10-09 21:49:14 UTC 2,650 bytes, 1 lines download raw bytes

1import{G as m,o as r,a as l,e as s,d as C,r as F,S as L,J as B,K as $,f as h,w as d,b as _,t as I,z as f,n as M,j as R,u as n}from"./entry.323442db.js";import{C as N}from"./vue-select.es.19dd2a99.js";const V={},z={width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},D=s("circle",{cx:"6",cy:"6",r:"5",stroke:"#0062FF","stroke-width":"2"},null,-1),E=s("path",{d:"M10.7929 13.2071C11.1834 13.5976 11.8166 13.5976 12.2071 13.2071C12.5976 12.8166 12.5976 12.1834 12.2071 11.7929L10.7929 13.2071ZM7.79289 10.2071L10.7929 13.2071L12.2071 11.7929L9.20711 8.79289L7.79289 10.2071Z",fill:"#0062FF"},null,-1),H=[D,E];function P(a,p){return r(),l("svg",z,H)}const Z=m(V,[["render",P]]),j={ref:"root",class:"relative w-full transition-all duration-300"},A={key:0,class:"text-blue"},G={key:1,style:{opacity:"0.5"}},J=["innerHTML"],K=C({__name:"SearchFilter",props:{options:{type:Array,default:()=>[]},navToRoute:{type:String,default:"team-detail"},label:{type:String,default:"name"},focusOnMount:{type:Boolean,default:!1},customId:{type:String,default:"search-filter"}},emits:["focused"],setup(a,{emit:p}){const i=a,e=F({selectedTopic:null,searchStr:"",searchOpen:!1}),g=L();function S(){e.selectedTopic||(e.searchOpen=!1,e.searchOpen=!1)}function x(){e.searchOpen=!0,p("focused")}function v(){e.selectedTopic||(e.searchOpen=!1)}function w(t){e.searchStr=t}function b(t){g.push({name:i.navToRoute,params:{slug:t.slug}})}function y(t){return(e.selectedTopic!==null||t.search.length!==0)&&t.open}function T(t){const c=new RegExp(e.searchStr,"gi");return t.replace(c,'<span class="text-coral">$&</span>')}return(t,c)=>{const u=Z,O=B("click-outside");return $((r(),l("div",j,[h(n(N),{"onSearch:focus":x,"onSearch:blur":v,onSearch:w,"onOption:selected":b,placeholder:n(e).searchOpen?"":"Search","aria-placeholder":n(e).searchOpen?"":"Search",modelValue:n(e).selectedTopic,"onUpdate:modelValue":c[0]||(c[0]=o=>n(e).selectedTopic=o),label:a.label,inputId:i.customId,options:[...a.options],"dropdown-should-open":y,class:f(["rounded-[60px] bg-btn_off_white transition-all duration-300",n(e).searchOpen?"":"font-bold"])},{"no-options":d(({search:o,searching:k})=>[k?(r(),l("span",A,[_("No results found for "),s("em",null,I(o),1),_(".")])):(r(),l("em",G,"Start typing to search for a topic."))]),option:d(o=>[s("span",{class:f(o),innerHTML:T(o[i.label])},null,10,J)]),"open-indicator":d(({attributes:o})=>[s("span",M(R(o)),[h(u)],16)]),_:1},8,["placeholder","aria-placeholder","modelValue","label","inputId","options","class"])])),[[O,S]])}}});const Q=m(K,[["__scopeId","data-v-6b8435ab"]]);export{Q 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.