PageSourceSearch

https://www.discovercrete.com/_nuxt/index.98f899f9.js

js discovercrete.com collected 2026-10-02 13:37:44 UTC 8,995 bytes, 9 lines download raw bytes

1import{_ as M}from"./nuxt-link.1ac5d3a4.js";import{_ as J}from"./Wrapper.1870acbf.js";import{_ as K}from"./client-only.18c4ea92.js";import{_ as W}from"./PremiumIcon.36bd04ea.js";import{_ as H}from"./nuxt-img.b8820f2e.js";import{_ as Q}from"./Checkbox.93a26901.js";import{u as X,b as Z,f as l,c as Y,g as ee,j as _}from"./entry.c9f0dfe4.js";import{u as te}from"./useSiteId.48e6c61a.js";import{a as h,ac as oe,J as d,K as t,S as o,R as a,u as e,F as c,a1 as A,W as r,L as se,a0 as ae,G as ne,N as ie,aa as B}from"./swiper-vue.b7606e03.js";import{u as le,A as re}from"./InstantSearch.1561c754.js";import{u as ce}from"./vue.f36acd1f.aac6b694.js";import{S as ue,U as de,h as I,G as pe,r as fe,_ as L}from"./XMarkIcon.28f6b907.js";import{e as me,a as _e,b as he}from"./SearchBox.vue.015d7234.js";import{a as xe}from"./ExperimentalDynamicWidgets.3af9a0cd.js";import{A as ge}from"./Configure.6b3c18fa.js";import"./MenuSelect.vue.d6515e91.js";import"./entry.07438c3c.js";import"./premium.3a6523ca.js";import"./panel.ab259ffa.js";const ve={class:"h-full"},ye={class:"h-full bg-color10"},be={class:"mx-[7.3vw] py-7 xl:pt-14 xl:mb-14 xl:border-b xl:border-color4"},we={key:0,class:"text-47-35-md font-extrabold"},Ce={key:1,class:"text-47-35-md font-extrabold"},Pe={class:"mb-20 px-[7.3vw]"},Se={class:"mt-10 discover-container"},$e={class:"flex justify-between items-center gap-x-3 md:gap-x-5"},ke=t("img",{class:"w-[18px]",src:L,alt:"filters"},null,-1),Ae={class:"text-[13px] font-bold"},Be={class:"px-[7.3vw] grid grid-cols-1 xl:grid-cols-12"},Ie={class:"pt-12 pb-12 xl:pt-0 col-span-full xl:col-[3/11]"},Le={class:"mb-20 w-full grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 gap-x-4 gap-y-10"},Re={class:"mt-2 text-16-14-md"},qe={class:"flex justify-center discover-container"},Ee=t("div",{class:"fixed inset-0 bg-black bg-opacity-25"},null,-1),je={class:"fixed inset-0 z-40 flex"},Ne={class:"py-1 px-4 flex items-center justify-between shadow-[0px_3px_6px_#00000029]"},Ue=["href","onClick"],Te=["href","onClick"],Fe={class:"flex items-center justify-center gap-x-2"},ze=t("img",{class:"w-[18px]",src:L,alt:"filters"},null,-1),Ge={class:"text-[13px] font-bold"},Oe=t("span",{class:"sr-only"},"Close menu",-1),Ve={class:"pb-12 overflow-y-auto flex-grow"},De={class:"font-medium"},dt={__name:"index",async setup(Me){let x,w;const C=X(),g=Y(),{siteId:R}=te(),{locale:q,t:v}=Z(),E=h(g.public.ALGOLIA_ENV+"_blog_"+q.value),j=le(),N=h(24),U={"ais-Pagination":"self-center xl:self-end w-fit","ais-Pagination-list":"!px-4 !py-1.5 flex items-center bg-color1 rounded-3xl","ais-Pagination-link":"!px-2.5 xl:!px-3 !py-0.5 !border-none !border-0 text-[16px] md:!text-[19px] !text-white hover:!bg-[transparent] hover:!text-color10","ais-Pagination-item--page":"py-0.5 px-0 rounded-md","ais-Pagination-item--selected":"bg-white !text-color1","ais-Pagination-item--firstPage":"xl:p-1 text-white rounded-md","ais-Pagination-item--lastPage":"xl:p-1 text-white rounded-md","ais-Pagination-item--previousPage":"xl:p-1 text-white rounded-md","ais-Pagination-item--nextPage":"xl:p-1 text-white rounded-md"},p=h(!1),T={"ais-SearchBox":"flex items-center","ais-SearchBox-form":"h-full w-full !border-none !outline-none focus:!outline-none focus:!ring-0","ais-SearchBox-input":"!px-10 h-full !border-none !outline-none focus:!outline-none focus:!ring-0","ais-SearchBox-submit":"!left-3","ais-SearchBox-reset":"!right-3 !p-4 [&_svg]:!w-3 [&_svg]:!h-3"},P=["name:asc"],y=h({});if(l().query.entryId){const{data:s,error:i}=([x,w]=oe(()=>ee("/api",{baseURL:g.public.CRAFT_BASE_URL,headers:{Authorization:g.public.GQL_TOKEN},method:"post",body:JSON.stringify({query:`
2            query entry {
3              entry(section: ["thingsToDo", "placesToGo", "excursions"], id: "${l().query.entryId}", siteId: ${R.value}) {
4                id
5                title
6                uri
7              }
8            }
9          `})},"$ansXcfZp0C")),x=await x,w(),x);y.value=s.value}const f=h("");if(l().query.id)for(var m=l().query.id.length-1;m>=0;m--)m>0?f.value=f.value+"id: "+l().query.id[m]+" OR ":f.value=f.value+"id: "+l().query.id[m];const F={router:{read(){return l().query},write(s){this.createURL(s)!==this.createURL(this.read())&&(_().currentRoute.value.name!="blog___el"&&_().currentRoute.value.name!="blog___en"||_().push({query:s}))},createURL(s){return _().resolve({query:s}).href},onUpdate(s){typeof window>"u"||(this._removeAfterEach=_().afterEach(()=>{s(this.read())}),this._onPopState=()=>{s(this.read())},window.addEventListener("popstate",this._onPopState))},dispose(){typeof window>"u"||(this._onPopState&&window.removeEventListener("popstate",this._onPopState),this._removeAfterEach&&this._removeAfterEach())}}},z=l().query;function G(){window.scrollTo({top:0,behavior:"smooth"})}return ce({title:"Blog - Discover Crete"}),(s,i)=>{const S=M,O=J,$=K,V=W,D=H,k=Q;return c(),d("div",ve,[t("div",ye,[o(e(re),{"index-name":e(E),"search-client":e(j),routing:F,"initial-ui-state":e(z)},{default:a(()=>[o(e(ge),{distinct:!0,hitsPerPage:e(N),filters:e(f)},null,8,["hitsPerPage","filters"]),t("div",be,[("useRoute"in s?s.useRoute:e(l))().query.entryId?(c(),d("p",we,[A(r(s.$t("News related to"))+" ",1),o(S,{to:e(C)("/"+e(y).data.entry.uri)},{default:a(()=>[A(r(e(y).data.entry.title),1)]),_:1},8,["to"])])):(c(),d("p",Ce,r(s.$t("Latest news")),1))]),t("div",Pe,[t("div",Se,[t("div",$e,[o(e(me),{placeholder:e(v)("Search blogs"),class:"w-full md:w-[550px] lg:w-[780p
9x] h-11 lg:h-[60px] placeholder:text-color1 text-20-11 opacity-90 border-none focus:ring-0 focus:outline-none shadow-[0px_3px_6px_#00000029] rounded-[34px] overflow-hidden","class-names":T},null,8,["placeholder"]),t("button",{type:"button",class:"py-2 px-5 flex items-center justify-center gap-x-2 border border-color1 rounded-[10px]",onClick:i[0]||(i[0]=u=>p.value=!0)},[ke,t("span",Ae,r(s.$t("Filters")),1)])])])]),t("div",Be,[t("div",Ie,[o(e(_e),null,{default:a(({items:u,sendEvent:b})=>[t("div",Le,[(c(!0),d(se,null,ae(u,n=>(c(),d("div",{key:n.objectID,class:"col-span-1 relative"},[o($,null,{default:a(()=>[o(O,{classesButton:"left-4 top-4",classesModal:"w-11/12 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",loginButtons:"gap-2.5 flex-col",elementId:n.objectID},null,8,["elementId"])]),_:2},1024),n.premiumContent?(c(),ne(V,{key:0,wrapperClasses:"top-14 xl:top-16 left-4"})):ie("",!0),o(S,{to:e(C)("/"+n.uri),class:"group"},{default:a(()=>[o(D,{loading:"lazy",format:"webp",sizes:"400px",quality:"80",class:"w-full h-60 md:h-40 xl:h-44 object-cover rounded-[10px] group-hover:opacity-70 transition-opacity duration-300",src:n.heroSearchThumbUrl.length?n.heroSearchThumbUrl:"https://discovercreteweb.s3.eu-west-1.amazonaws.com/static/website/placeholders/400x670.png",alt:n.title},null,8,["src","alt"]),t("p",Re,r(n.title),1)]),_:2},1032,["to"])]))),128))])]),_:1}),t("div",qe,[o(e(he),{padding:2,"class-names":U,onPageChange:G})]),o($,null,{default:a(()=>[o(e(ue),{as:"template",unmount:!1,show:e(p)},{default:a(()=>[o(e(de),{as:"div",class:"relative z-[99]",unmount:!1,onClose:i[3]||(i[3]=u=>p.value=!1)},{default:a(()=>[o(e(I),{as:"template",unmount:!1,enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:a(()=>[Ee]),_:1}),o(e(I),{as:"template",unmount:!1,enter:"transition ease-in-out duration-300 transform","enter-from":"translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"translate-x-full"},{default:a(()=>[t("div",je,[o(e(pe),{class:"relative ml-auto flex h-full w-full max-w-xs flex-col bg-white shadow-xl"},{default:a(()=>[t("div",Ne,[t("div",null,[o(e(xe),null,{default:a(({canRefine:u,refine:b,createURL:n})=>[u?(c(),d("a",{key:0,href:n(),onClick:B(b,["prevent"]),class:"flex justify-center items-center text-[14px] text-color1 xl:hover:text-white transition-colors duration-300"},r(s.$t("Clear")),9,Ue)):(c(),d("a",{key:1,href:n(),onClick:B(b,["prevent"]),class:"flex justify-center items-center text-[14px] text-color1 opacity-60 pointer-events-none"},r(s.$t("Clear")),9,Te))]),_:1})]),t("div",Fe,[ze,t("span",Ge,r(s.$t("Filters")),1)]),t("button",{type:"button",class:"-ml-2 flex h-10 w-10 items-center justify-center rounded-md bg-white p-2 text-gray-400",onClick:i[1]||(i[1]=u=>p.value=!1)},[Oe,o(e(fe),{class:"h-6 w-6","aria-hidden":"true"})])]),t("div",Ve,[o(k,{algoliaAttribute:"mainCategory",algoliaSorting:P,heading:e(v)("Categories"),isMobile:!0},null,8,["heading"]),o(k,{algoliaAttribute:"locations",algoliaSorting:P,heading:e(v)("Locations"),isMobile:!0},null,8,["heading"])]),t("button",{type:"button",class:"py-3.5 px-4 bg-color1 text-white",onClick:i[2]||(i[2]=u=>p.value=!1)},[t("span",De,r(s.$t("View results")),1)])]),_:1})])]),_:1})]),_:1})]),_:1},8,["show"])]),_:1})])])]),_:1},8,["index-name","search-client","initial-ui-state"])])])}}};export{dt 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.