1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DRKC3g-L.js","./BNNXfIFk.js","./DHWl9nsM.js","./entry.CY6AwyML.css","./RBo1fSvS.js","./CuFjzdoB.js","./CuCzFkhu.js","./B3FDppW-.js","./De9H0Q1c.js","./D5_X9KKr.js","./DfcmZqSY.js","./DfbxOf5Q.js","./j4JuYvhu.js","./C00ih-aa.js","./B5VkNdqI.js","./DiROASFR.js","./BNRQZEc4.js","./DnHZRFST.js","./yyQZ4Qm5.js"])))=>i.map(i=>d[i]); 2import{aN as r,aO as l,aP as a,c2 as y,b4 as d,aE as x,aL as k,aR as o,aU as m,b1 as D,b2 as S,aX as b,aW as C,bn as E,aV as L,aQ as I,aY as T,aT as V,bf as j,b3 as N}from"./DHWl9nsM.js";import{u as P}from"./DfcmZqSY.js";import{a as B}from"./CuCzFkhu.js";import{r as M}from"./4kKB2yJd.js";import{j as R}from"./yyQZ4Qm5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"lebegesund-nuxt-development"};var s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="dd30c1bf-76fb-4999-8980-998298972dba",e._sentryDebugIdIdentifier="sentry-dbid-dd30c1bf-76fb-4999-8980-998298972dba")}catch{}})();function A(e,s){return r(),l("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})])}function O(){const e=d(!1),s=d(!1);async function u(f,c){try{e.value=!0;const n=await y.searchPage({search:f,...c});return e.value=!1,{productListing:B(n),params:c}}catch(n){throw e.value=!1,s.value=n,n}}return{loading:e,error:s,search:u}}const $=j(()=>N(()=>import("./DRKC3g-L.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]),import.meta.url).then(e=>e.default||e)),z={class:"flex flex-col gap-4"},U={class:"flex justify-between items-center"},Y={class:"fieldset"},q={class:"join"},Q={class:"btn btn-square join-item"},W={key:0,class:"loading"},X={key:0},Z={key:1},F={key:2},G=x({__name:"DrawerContextSearch",setup(e){const{closeDrawer:s}=P(),{search:u,loading:f,error:c}=O(),n=d(),i=d(),_=d(null);k(()=>{setTimeout(()=>{n.value.focus()},300)}),R(i,()=>{h()},{debounce:500});const h=async function(){if(i.value!==""){const{productListing:v}=await u(i.value);_.value=v}};return(v,t)=>{const w=T,g=$;return r(),l("div",z,[a("div",U,[t[3]||(t[3]=a("div",{class:"text-2xl"}," Search ",-1)),a("div",{class:"btn btn-ghost btn-circle",onClick:t[0]||(t[0]=(...p)=>o(s)&&o(s)(...p))}
2,[m(o(M),{class:"w-5 h-5"})])]),a("form",{onSubmit:t[2]||(t[2]=E(p=>h(),["prevent"]))},[a("fieldset",Y,[a("div",q,[D(a("input",{ref_key:"searchInput",ref:n,"onUpdate:modelValue":t[1]||(t[1]=p=>i.value=p),type:"text",placeholder:"Browse our offer",class:"input w-full focus:input-primary join-item"},null,512),[[S,i.value]]),a("button",Q,[o(f)?(r(),l("span",W)):b("",!0),o(f)?b("",!0):(r(),C(o(A),{key:1,class:"h-5 w-5"}))])])])],32),_.value?.total>0?(r(),l("div",X,[m(w,{to:`/search?search=${i.value}`,class:"w-full btn btn-sm btn-secondary mb-4"},{default:L(()=>[...t[4]||(t[4]=[V(" View all results ",-1)])]),_:1},8,["to"]),m(g,{data:_.value,total:!1,pagination:!1,sorting:!1,"grid-classes":"grid grid-cols-2 gap-2"},null,8,["data"])])):_.value?.total<=0?(r(),l("div",Z," No search results ")):o(c)?(r(),l("div",F,I(o(c)),1)):b("",!0)])}}}),se=Object.assign(G,{__name:"DrawerContextSearch"});export{se as default}; 3//# sourceMappingURL=D_3m46DV.js.map
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.