1import{d as O,D as d,s as r,A as E,aH as v,h as u,x as m,Z as h,g as s,ai as R,c as w,aC as M,ag as B,o}from"#entry";const k={class:"flex justify-between items-center p-4 gap-2 bg-white rounded-full overflow-hidden shadow-sm"},A={key:0,class:"relative grow"},V={class:"flex no-wrap gap-2 justify-between"},U=O({__name:"search-input",props:{name:{default:"ai-search-query"},modelValue:{default:""},isLoadingLocation:{type:Boolean,default:!1},hasLocation:{type:Boolean,default:!1},locationName:{default:""}},emits:["update:modelValue","search","near-me","clear-location","blur"],setup(e,{emit:L}){const b=e,l=L,n=w({get:()=>b.modelValue,set:a=>l("update:modelValue",a)}),i=()=>{l("search",n.value)},C=a=>{l("blur",a)},f=()=>{l("near-me")},y=()=>{l("clear-location")};return(a,c)=>{const N=M,t=B;return o(),d("div",k,[e.hasLocation?m("",!0):(o(),d("div",A,[r(N,{modelValue:u(n),"onUpdate:modelValue":c[0]||(c[0]=g=>v(n)?n.value=g:null),placeholder:e.hasLocation?"":a.$t("COMMON.CLUB-FINDER-SEARCH-PLACEHOLDER"),ui:{base:"ring-0"},disabled:e.isLoadingLocation||e.hasLocation,"aria-label":a.$t("COMMON.CLUB-FINDER-SEARCH-PLACEHOLDER"),onKeyup:E(i,["enter"]),onBlur:C},null,8,["modelValue","placeholder","disabled","aria-label"])])),h("div",{class:R(["flex no-wrap gap-2 justify-between",{"w-full":e.hasLocation}])},[e.hasLocation?(o(),s(t,{key:0,variant:"outline",class:"pointer-events-none overflow-hidden",icon:"near-me",label:e.locationName||a.$t("COMMON.CURRENT-LOCATION")},null,8,["label"])):m("",!0),h("div",V,[e.hasLocation?(o(),s(t,{key:1,icon:"close",label:a.$t("CLUB-FINDER.CLEAR-LOCATION"),variant:"outline","label-classes":"max-sm:sr-only",onClick:y},null,8,["label"])):(o(),s(t,{key:0,icon:"near-me",label:a.$t("COMMON.NEAR-ME"),loading:e.isLoadingLocation,disabled:e.isLoadingLocation||!!e.locationName,"label-classes":"max-sm:sr-only",variant:"outline",onClick:f},null,8,["label","loading","disabled"])),r(t,{icon:"search",color:"primary",label:a.$t("COMMON.SEARCH"),"search-query":u(n),disabled:e.isLoadingLocation||e.hasLocation,"label-classes":"max-md:sr-only",onClick:i},null,8,["label","search-query","disabled"])])],2)])}}}),I=Object.assign(U,{__name:"UiSearchInput"});export{I 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.