const __vite__fileDeps=["shared/bchhc/BaseBreadcrumb-B6HDJrad.js","shared/bchhc/index-BRMV7KFd.js","shared/bchhc/vendor-CI5NvTnj.js","shared/bchhc/index-C6eaw0wS.css","shared/bchhc/BaseBreadcrumb-D1pef9HR.css","shared/bchhc/BaseLoading-BybaDtvq.js","shared/bchhc/BasePageWrapper-CXSeoIUS.js","shared/bchhc/ModalProductDetail-lHIuLyrX.js","shared/bchhc/ProductsCatalogGrid-BnMcf0wU.js","shared/bchhc/striptags-BpeLwlJ7.js","shared/bchhc/propertiesSvgs-DIjf9FvC.js","shared/bchhc/ProductsCatalogGrid-alUmg8R0.css","shared/bchhc/BaseCategoriesSection-BWgn4y8j.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{p as I,q as T,A as W,a as s}from"./index-BRMV7KFd.js";import{y as N,D as p,H as K,e as m,k as i,l as k,m as r,F as M,u as F,P as H,o as c,f as g,t as v,g as q,h as l}from"./vendor-CI5NvTnj.js";function D(y){const d=y;d.__i18n=d.__i18n||[],d.__i18n.push({locale:"",resource:{cs:{choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Vybírejte z našich kategorií."])},or_choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Nebo si vyberte z našich kategorií:"])},search_results:t=>{const{normalize:e,interpolate:o,named:n}=t;return e(["Výsledky vyhledávání: ",o(n("value"))])},title:t=>{const{normalize:e}=t;return e(["Vyhledávání"])},watchdog_title:t=>{const{normalize:e}=t;return e(["Chcete si počkat?"])},we_did_not_find:t=>{const{normalize:e}=t;return e(["Bohužel tohle zobání jsme nenašli."])},write_what_you_are_looking:t=>{const{normalize:e}=t;return e(["Napište, jaké zobání hledáte"])}},sk:{choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Vyberte si z našich kategórií."])},or_choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Alebo si vyberte z našich kategórií:"])},search_results:t=>{const{normalize:e,interpolate:o,named:n}=t;return e(["Výsledky vyhľadávania: ",o(n("value"))])},title:t=>{const{normalize:e}=t;return e(["Vyhľadávanie"])},watchdog_title:t=>{const{normalize:e}=t;return e(["Chcete si počkať?"])},we_did_not_find:t=>{const{normalize:e}=t;return e(["Bohužiaľ toto zobkanie sme nenašli."])},write_what_you_are_looking:t=>{const{normalize:e}=t;return e(["Napíšte, aké zobkanie hľadáte"])}},pl:{choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Wybierz jedną z naszych kategorii."])},or_choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Lub wybierz jedną z naszych kategorii:"])},search_results:t=>{const{normalize:e,interpolate:o,named:n}=t;return e(["Wyniki wyszukiwania: ",o(n("value"))])},title:t=>{const{normalize:e}=t;return e(["Szukaj"])},watchdog_title:t=>{const{normalize:e}=t;return e(["Chcesz poczekać?"])},we_did_not_find:t=>{const{normalize:e}=t;return e(["Niestety, nie znaleźliśmy takiego produktu"])},write_what_you_are_looking:t=>{const{normalize:e}=t;return e(["Napisz, jakich przekąsek szukasz"])}},hu:{choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Válassz kategóriáink közül."])},or_choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Vagy válassz kategóriáink közül:"])},search_results:t=>{const{normalize:e,interpolate:o,named:n}=t;return e(["Keresési eredmények: ",o(n("value"))])},title:t=>{const{normalize:e}=t;return e(["Keresés"])},watchdog_title:t=>{const{normalize:e}=t;return e(["Szeretnél várni?"])},we_did_not_find:t=>{const{normalize:e}=t;return e(["Ezt a finomságot sajnos nem találtuk meg."])},write_what_you_are_looking:t=>{const{normalize:e}=t;return e(["Írd meg nekünk, milyen finomságra vágysz"])}},de:{choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Wähle aus unseren Kategorien."])},or_choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Oder wähle aus unseren Kategorien:"])},search_results:t=>{const{normalize:e,interpolate:o,named:n}=t;return e(["Suchergebnisse:",o(n("value"))])},title:t=>{const{normalize:e}=t;return e(["Suche"])},watchdog_title:t=>{const{normalize:e}=t;return e(["Möchtest Du warten?"])},we_did_not_find:t=>{const{normalize:e}=t;return e(["Leider haben wir dieses Produkt nicht gefunden"])},write_what_you_are_looking:t=>{const{normalize:e}=t;return e(["Schreib uns, welchen Snack Du suchst"])}},at:{choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Wähle aus unseren Kategorien."])},or_choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Oder wähle aus unseren Kategorien:"])},search_results:t=>{const{normalize:e,interpolate:o,named:n}=t;return e(["Suchergebnisse:",o(n("value"))])},title:t=>{const{normalize:e}=t;return e(["Suche"])},watchdog_title:t=>{const{normalize:e}=t;return e(["Möchtest Du warten?"])},we_did_not_find:t=>{const{normalize:e}=t;return e(["Leider haben wir dieses Produkt nicht gefunden"])},write_what_you_are_looking:t=>{const{normalize:e}=t;return e(["Schreib uns, welchen Snack Du suchst"])}},ro:{choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Alegeți din categoriile noastre."])},or_choose_from_our_categories:t=>{const{normalize:e}=t;return e(["Sau alegeți din categoriile noastre:"])},search_results:t=>{const{normalize:e,interpolate:o,named:n}=t;return e(["Rezultatele căutării: ",o(n("value"))])},title:t=>{const{normalize:e}=t;return e(["Căutare"])},watchdog_title:t=>{const{normalize:e}=t;return e(["Dorești să aștepți?"])},we_did_not_find:t=>{const{normalize:e}=t;return e(["Din păcate, nu am găsit această gustare."])},write_what_you_are_looking:t=>{const{normalize:e}=t;return e(["Scrie-ne ce bunătăți dorești"])}}}})}const G={class:"container"},U={class:"row"},Z={class:"col-lg-10 col-xl-8 mx-auto"},$={key:0,class:"h2 text-center mt-4"},J={key:1,class:"h2 text-center mt-4"},Q={class:"col-lg-10 col-xl-8 mx-auto mb-6"},X={key:0},Y={key:1},ee={class:"text-center text-lg"},te={key:2,class:"d-flex flex-col items-center mt-n8"},re={__name:"index",setup(y){const d=l(()=>s(()=>import("./BaseBreadcrumb-B6HDJrad.js"),__vite__mapDeps([0,1,2,3,4]))),t=l(()=>s(()=>import("./BaseLoading-BybaDtvq.js"),__vite__mapDeps([5,2]))),e=l(()=>s(()=>import("./index-BRMV7KFd.js").then(a=>a.V),__vite__mapDeps([1,2,3]))),o=l(()=>s(()=>import("./BasePageWrapper-CXSeoIUS.js"),__vite__mapDeps([6,1,2,3]))),n=l(()=>s(()=>import("./index-BRMV7KFd.js").then(a=>a.W),__vite__mapDeps([1,2,3]))),P=l(()=>s(()=>import("./index-BRMV7KFd.js").then(a=>a.Z),__vite__mapDeps([1,2,3]))),S=l(()=>s(()=>import("./ModalProductDetail-lHIuLyrX.js"),__vite__mapDeps([7,2,1,3]))),A=l(()=>s(()=>import("./ProductsCatalogGrid-BnMcf0wU.js").then(a=>a.a),__vite__mapDeps([8,1,2,3,9,10,11]))),b=l(()=>s(()=>import("./BaseCategoriesSection-BWgn4y8j.js"),__vite__mapDeps([12,1,2,3]))),{t:_}=N(),w=F(),L=H(),f="https://www.mixit.sk/",C=(f.endsWith("/")?f.slice(0,-1):f)+w.path,h=p(!1),u=p([]),z=p(),R=w.params.search,x=K(a=>{E(a,!0)},100,{maxWait:15e3}),{setDefault:O}=I();O();const E=async(a,V=!0)=>{if(z.value=a,h.value=!1,V&&await L.push({name:"searchPath",params:{search:a}}),a.length>0){const{data:B}=await W.get(`searches?q=${a}&limit=50&variant=lp`);u.value=B.products,h.value=!0}else u.value=[],h.value=!1};E(w.params.search,!1);const j=p([{name:_("title"),link:{name:"mixitAfiliatePath"}}]);return T({title:_("title"),link:[{rel:"canonical",href:C},{rel:"alternate",hreflang:"cs",href:"https://www.mixit.cz/vernostni-program"},{rel:"alternate",hreflang:"sk",href:"https://www.mixit.sk/vernostny-program"},{rel:"alternate",hreflang:"pl",href:"https://www.mixit.pl/program-lojalnosciowy"},{rel:"alternate",hreflang:"hu",href:"https://www.mixit.hu/husegprogram"},{rel:"alternate",hreflang:"ro",href:"https://www.mixit.ro/program-loialitate"}]}),(a,V)=>(c(),m(M,null,[i(r(o),null,{default:k(()=>[g("div",G,[g("div",U,[g("div",Z,[i(r(d),{"breadcrumb-list":j.value,"additional-class-name":"justify-center"},null,8,["breadcrumb-list"]),z.value?(c(),m("h1",J,v(r(_)("search_results",{value:z.value})),1)):(c(),m("h1",$,v(r(_)("write_what_you_are_looking")),1))]),g("div",Q,[i(r(n),{type:"navbar","init-value":r(R),items:u.value,"hide-whisperer":!0,onSearchChanged:r(x),onEnterPressed:r(x)},null,8,["init-value","items","onSearchChanged","onEnterPressed"])])]),u.value.length>0?(c(),m("div",X,[i(r(A),{"is-loaded":h.value,products:u.value,"info-click-behaviour":"modal"},null,8,["is-loaded","products"])])):z.value&&h.value?(c(),m("div",Y,[g("p",ee,v(r(_)("we_did_not_find")),1),i(r(b),{title:r(_)("choose_from_our_categories"),class:"mt-n6"},null,8,["title"])])):u.value.length===0&&!z.value?(c(),m("div",te,[i(r(b),{title:r(_)("or_choose_from_our_categories")},null,8,["title"])])):(c(),q(r(t),{key:3,style:{minHeight:"30vh"}}))])]),_:1}),i(r(e),{"modal-id":"product-detail-modal"},{default:k(()=>[i(r(S))]),_:1}),i(r(e),{title:r(_)("watchdog_title"),"modal-id":"modal-watchdog"},{default:k(()=>[i(r(P))]),_:1},8,["title"])],64))}};typeof D=="function"&&D(re);export{re as default};