PageSourceSearch

https://www.billetweb.fr/_nuxt/Bh7cjxyw.js

js billetweb.fr collected 2026-09-24 08:29:36 UTC 1,489 bytes, 1 lines download raw bytes

1import{_}from"./Yo0n_eQ8.js";import{m as v}from"./Dd7lFren.js";import{d as b}from"./xSx_LQSJ.js";import{a as x,r as i,X as w,j as y,h as S,m as n,q as d,f as s,v as g,l as E}from"./JTGkqvXa.js";const N={class:"flex mt-8 SearchEventForm"},O={class:"flex w-full gap-y-8 xs:flex-nowrap flex-wrap"},$={class:"flex text-secondary items-center u-text-regular-1"},C={__name:"index",props:{slice:{type:Object,required:!0,default:()=>({})}},setup(c){const f=c,{t:m}=x(),p=i(!0),t=i([]),l=b(async({loading:e,search:o})=>{if(p.value){e(!0);try{const h=await(await fetch(`${E().public.apiUrl}/event/${encodeURIComponent(o)}`)).json();t.value=h.map(r=>({label:r.label,url:r.value,code:r.label,description:r.description||""}))}catch(a){console.error("Error fetching events:",a)}finally{e(!1)}}},200),u=e=>{const o=t.value.find(a=>a.label===e.label);o&&o.url?window.location.href=`https://billetweb.fr/${o.url}`:console.warn("No url found for selected option")};return w(()=>f.slice.primary.search,e=>{l({loading:()=>{},search:e})}),(e,o)=>{const a=_;return y(),S("div",N,[n("div",O,[n("div",$,[d(s(v),{class:"mr-4 transform-gpu transition-transform duration-200 ease-in-out group-hover:scale-125 fill-secondary SearchEventForm-icon"}),n("span",null,g(c.slice.primary.label),1)]),d(a,{onSearch:s(l),"onOption:selected":u,type:"select",classes:{"md:ml-8 max-w-[35.3rem]":!0},placeholder:s(m)("form.fields.eventName"),options:s(t)},null,8,["onSearch","placeholder","options"])])])}}};export{C 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.