PageSourceSearch

https://www.flyerzone.be/_nuxt/CkNOz6eu2.js

js flyerzone.be collected 2026-10-08 16:00:22 UTC 5,950 bytes, 1 lines download raw bytes

1import{n as e}from"./B_nDuXWP.js";import{s as t}from"./VALu4SJC.js";import{Ct as n,D as r,E as i,Ht as a,On as o,Yt as s,Zn as c,_ as l,b as u,ct as d,er as f,ft as p,g as m,it as h,mt as g,qt as _,t as v,tr as y,un as b,v as x,vn as S,xt as C,y as w}from"./CJOrt7RF.js";import{C as ee,x as te}from"./DzEf6c3d.js";import{m as T,p as E}from"./DHNRalsD.js";import{t as D}from"./CPIQkRVN.js";import{t as ne}from"./BxXNGZbE.js";import{t as re}from"./CUOME1_-.js";import{t as O}from"./bRQZeg1c.js";var k={key:0,class:`z-1 rounded-custom absolute mt-0.5 w-full origin-top transform bg-white shadow-md`},A={class:`z-70`},j={key:0,class:`overflow-y-auto`,style:{"max-height":`calc(100dvh - 20rem)`}},M={key:1,class:`px-6 pb-4 pt-2`},ie={__name:`BaseSearchResults`,props:{search:{type:String,required:!0},results:{type:Array,default:()=>[]},searchPath:{type:String,default:`/`},isLoading:{type:Boolean,default:!1}},setup(e,{expose:t}){let n=e,r=E(),s=Symbol(`base-search-results`),c=S(!1),d=m(()=>n.search.length>2&&c.value),f=()=>{c.value=!1};return a(()=>n.search,e=>{e?c.value=!0:f()}),a(r,()=>{f()}),a(c,e=>{O(e,s)}),h(()=>{O(!1,s)}),t({close:f,showResults:d}),(t,n)=>{let r=D;return g(),x(v,null,{default:_(()=>[o(d)?(g(),u(`div`,k,[l(`div`,A,[e.isLoading||e.results.length>0?(g(),u(`div`,j,[C(t.$slots,`default`),e.searchPath&&e.results.length>5?(g(),x(r,{key:0,to:e.searchPath+`?q=`+e.search,class:`bg-blue-light text-blue block rounded-b-xl px-6 py-2.5 text-sm no-underline hover:underline`},{default:_(()=>[i(y(t.$t(`search.view_all_results`))+` » `,1)]),_:1},8,[`to`])):w(``,!0)])):(g(),u(`div`,M,y(t.$t(`search.no_results`)),1))])])):w(``,!0)]),_:3})}}},ae=[`placeholder`],oe={key:2,class:`ml-3.5 mt-1 flex h-8 items-center`},N=150,P=50,se=1500,F={__name:`BaseSearchBar`,props:{canSearch:{type:Boolean,default:!0},mode:{type:String,default:`normal`},searchType:{type:String,default:`search`},placeholder:{type:[String,Array],default:null},results:{type:Array,default:()=>[]},hasBorder:{type:Boolean,default:!0},searchPath:{type:String,default:null},buttonType:{type:String,default:`search`},isLoading:{type:Boolean,default:!1},bgColor:{type:String,default:`bg-white`}},emits:[`search`,`perform-search`,`search-removed`],setup(i,{emit:h}){let y=i,D=h,O=E(),k=T(),{public:{storeCode:A}}=t(),{t:j}=e(),M=S(``),F=S(null),I=S(null),L=S([]),R=S(0),z=S([]),B=S(null),V=S(!1),H=null,U=m(()=>A===`DL`),W=m(()=>A===`RL`),G=m(()=>A===`FZ`),ce=m(()=>[{"z-30":y.searchType===`search`&&I.value?.showResults},U.value?`rounded-custom`:`rounded-full`]),le=m(()=>(y.mode===`header`||y.mode===`primary`)&&I.value?.showResults?`box-shadow: 0 0 0 max(100vh, 100vw) rgba(0, 0, 0, .5);`:``),K=m(()=>({border:y.hasBorder,"text-custom h-10 rounded-full pl-12 pr-5":W.value,"text-custom rounded-custom h-11 px-4":U.value,"h-10 rounded-full px-5 text-xs sm:text-sm":G.value,[y.bgColor]:!0})),ue=m(()=>[W.value?`left-0`:`right-0 top-0`,{"m-1":!W.value}]),de=m(()=>Array.isArray(y.placeholder)?`${j(`search.placeholder`)} ${z.value.join(``)}`:y.placeholder),fe=()=>{I.value?.close()},q=()=>{M.value.length>2&&(y.searchPath?k.push({path:y.searchPath,query:{q:M.value}}):D(`perform-search`,M.value))},J=(e=!1)=>{M.value=``,e&&F.value?.focus(),D(`search-removed`)},Y=()=>{F.value?.removeAttribute(`readonly`)},X=()=>{F.value?.setAttribute(`readonly`,``)},Z=()=>{L.value.length>0?z.value.push(L.value.shift()):!V.value&&L.value.length===0&&y.placeholder[R.value]&&z.value.length===y.placeholder[R.value].length?(B.value=se,V.value=!0):L.value.length===0&&z.value.length>0?(B.value=P,z.value.pop()):L.value.length===0&&z.value.length===0&&(R.value<y.placeholder.length-1?R.value++:R.value=0,B.value=N,V.value=!1,y.placeholder[R.value]&&(L.value=y.placeholder[R.value].split(``)),z.value.push(L.value.shift())),H=setTimeout(Z,B.value)},Q=()=>{y.placeholder&&y.placeholder.length>0&&y.placeholder[R.value]&&(L.value=y.placeholder[R.value].split(``),B.value=N,H=setTimeout(Z,B.value))},$=e=>{e?.key===`/`&&e.target.nodeName!==`INPUT`&&F.value?.focus()};return a(O,e=>{e&&J(),e.name&&!e.name.includes(`account-information`)?Y():X()}),a(M,e=>{D(`search`,M.value),e.length===0&&D(`search-removed`)}),a(()=>y.placeholder,e=>{Array.isArray(e)&&Q()}),d(()=>{Array.isArray(y.placeholder)&&Q(),y.mode===`header`&&(window.addEventListener(`ke
1yup`,$),O.name&&O.name.includes(`account-information`)&&X())}),p(()=>{y.mode===`header`&&window.removeEventListener(`keyup`,$),H&&clearTimeout(H)}),(e,t)=>{let a=ne,d=re,p=ie,m=n(`click-outside`);return s((g(),u(`div`,{class:c([`relative ml-auto w-full transition duration-200 md:mx-auto`,o(ce)]),style:f(o(le))},[s(l(`input`,{id:`search`,ref_key:`inputRef`,ref:F,"onUpdate:modelValue":t[0]||=e=>b(M)?M.value=e:null,class:c([`z-2 relative w-full focus:outline-none`,o(K)]),type:`search`,placeholder:o(de),name:`search`,autocomplete:`off`,onKeyup:ee(q,[`enter`]),onMouseover:Y,onInput:t[1]||=e=>e.target.composing=!1},null,42,ae),[[te,o(M)]]),l(`div`,{class:c([`z-2 absolute top-0 flex`,o(ue)])},[o(U)?(g(),x(v,{key:0,element:`text-white`},{default:_(()=>[o(M)?(g(),x(a,{key:0,icon:`x`,class:c([`mr-2 cursor-pointer self-center`,{"absolute right-0":o(W)}]),onClick:t[2]||=e=>J(!0)},null,8,[`class`])):w(``,!0)]),_:1})):w(``,!0),i.canSearch&&!o(W)?(g(),x(d,{key:1,mode:i.buttonType,caption:o(U)?e.$t(`btn.search`):``,"hide-caption":o(U),"icon-size":o(U)?`6`:`4`,"icon-left":`search`,"is-addon":o(U),class:c([`text-md text-white`,[o(U)?`-mr-1 -mt-1 py-2.5`:`px-4 py-2`,o(U)?`px-2.5 lg:px-4`:`px-2.5`]]),onClick:q},null,8,[`mode`,`caption`,`hide-caption`,`icon-size`,`is-addon`,`class`])):w(``,!0),o(W)?(g(),u(`div`,oe,[r(a,{icon:`search`,size:`6`})])):w(``,!0)],2),i.searchType===`search`?(g(),x(p,{key:0,ref_key:`resultsRef`,ref:I,search:o(M),results:i.results,"search-path":i.searchPath,"is-loading":i.isLoading},{default:_(()=>[C(e.$slots,`default`)]),_:3},8,[`search`,`results`,`search-path`,`is-loading`])):w(``,!0)],6)),[[m,fe]])}}};export{F as t};

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.