PageSourceSearch

https://only-apartments.de/_nuxt/ajUPfreu.js

js only-apartments.de collected 2026-10-08 07:56:20 UTC 11,648 bytes, 1 lines download raw bytes

1import{d as Q,j as ge,l as H,r as S,w as Z,m as fe,p as ve,o as _e,S as D,L as C,C as be,c as U,D as ye,u as e,b as o,q as f,s as k,h as xe,v as m,n as ae,f as l,g as v,e as d,A as N,E,t as y,F as R,G as $,i as j,x as T,y as Se,_ as oe,H as Ce,I as we}from"./TCVk03Au.js";import{S as q,T as ee,c as ke,g as $e,p as Pe}from"./9o0KszMn.js";import{_ as Re}from"./Cckct0Eo.js";import{_ as Te}from"./B7ao4Lta.js";import{_ as Me}from"./-gf6szHu.js";import{_ as Fe}from"./BgLO9YcP.js";import{u as Ve,_ as De,a as te,b as Ie,c as ze,d as Be,e as Le,S as Ae}from"./DFoZgQ-N.js";import{_ as Oe}from"./J26Vtiy_.js";import{_ as re,a as Ue}from"./COlrKNOf.js";import{_ as Ne}from"./Duz46P39.js";import{_ as Ee}from"./DfddzCaJ.js";import{S as se}from"./DMZblTWz.js";import"./6IyeWu7k.js";import"./U--lgaY1.js";import"./SWLNJ9dn.js";import"./Df1nw9FS.js";import"./B6tM9mUH.js";import"./DRiHcznQ.js";import"./CIYOjL-z.js";import"./X-NHEa71.js";import"./D0qVoFVG.js";import"./DeV51at5.js";import"./CxXtwB9a.js";import"./CU1aZVkf.js";import"./BwRgQO-5.js";import"./BcIFi0LM.js";import"./_3oRYW9b.js";import"./C_Zze_if.js";const He={class:"pt-6 max-w-[1370px] mx-auto relative z-search-box-container"},je={class:"flex"},Qe={class:"hidden md:block w-1/4 p-4 pl-0"},Ye=["src"],Ge={class:"absolute inset-0 flex items-center justify-center text-white font-bold"},Ke={class:"w-full md:w-3/4 md:pl-4 py-4"},We={class:"hidden md:block z-search-filters-active"},Xe={key:0,class:"py-2 flex w-full justify-center h-dvh"},Je={class:"mb-6 sm:mb-4 text-lg flex flex-col sm:flex-row justify-between"},Ze=["innerHTML"],qe={class:"flex flex-row items-center justify-between gap-2"},et={key:0,class:"mt-8 flex justify-center min-h-20"},tt={key:2,class:"flex flex-col items-center my-16"},st={key:0,class:"my-6"},at=Q({__name:"SerpPage",emits:["search","sortByChanged"],async setup(I,{emit:w}){let p,x;const{$requestContext:u,$loggedUserData:M,$getSerpMode:i,$setSerpMode:h}=ge(),_=H().public.zShowSegmentsTab,b=S(!1),z=S(!1),F=S(!1),s=S({}),t=S({}),n=S(new Ae),V=S(null),{scrollToAnchor:ne}=Ve(),P=S(!1),g=u.segment.type?.vertical;s.value=q.getSearchRequest(),W();const{data:le,error:B}=([p,x]=Z(()=>fe("/api/product/search",{method:"POST",body:s.value,watch:!1},"$KYA-D847Rr")),p=await p,x(),p);if(B.value)throw ve({statusCode:500,statusMessage:"Server Error",message:"Internal server error",stack:B.value.stack,data:B.value.data});t.value=le.value,_e(async()=>{window.addEventListener("pageshow",async a=>{a.persisted&&(s.value=q.getSearchRequest(),W(),t.value=await $fetch("/api/product/search",{method:"POST",body:s.value}),D.addHeadersSerp(u,t.value?.pageContext?.seo),V.value?.enableSearchButton(),P.value=!1)}),ee.trackViewList(t.value,M.value.logged)}),ke(C.getFullPathSerpPage(t.value.pageContext?.seo?.canonicalLink));const L=()=>{const a=C.getMapSerpPage(t.value.pageContext?.seo?.canonicalLink,s.value.from,s.value.to,s.value.distribution);T(a,{external:!0})},ie=async(a,r)=>{P.value=!0,await h("minimized"),ee.trackSearch(a,()=>{T(C.getSerpPage(r.canonicalLink,a.from,a.to,a.distribution),{external:!0})})};async function Y(){G(s.value)}async function G(a){b.value=!0,g==="ACTIVITY"&&(a.distribution=[{adults:1}]),n.value.applyTo(a),a.sortBy=s.value.sortBy,a.sortDirection=s.value.sortDirection,a.facetting={amenities:!0,categories:!0,collections:!0,tags:!0,restrictions:!0,types:!0,countries:!0,states:!0,counties:!0,regions:!0,cities:!0,districts:!0,places:!0},a.imageSize="SM_CROP",a.format="PLAIN_TEXT",a.page=void 0,s.value=a,t.value=await $fetch("/api/product/search",{method:"POST",body:s.value}),Pe(C.getSerpPage(t.value.pageContext?.seo?.canonicalLink,s.value.from,s.value.to,s.value.distribution)),D.addHeadersSerp(u,t.value?.pageContext?.seo),V.value?.enableSearchButton(),b.value=!1,ne("breadcrumbs")}async function ce(){if(t.value.currentPage<t.value.totalPages-1){z.value=!0,s.value.page=t.value.currentPage+1;const a=await $fetch("/api/product/search",{method:"POST",body:s.value});a.currentPage&&(t.value.currentPage=a.currentPage),t.value.products=t.value.products.concat(a.products),z.value=!1}}be(n,()=>{!F.value&&!b.value&&G(s.value)},{deep:!0});const A=U(()=>t.value&&t.value.products),ue=U(()=>t.value&&t.value.products&&t.value.products.length>0),de=(a,r)=>{P.value=!0,a&&a.productId?T(C.getDetailsPage(r,a.from,a.to,a.distribution),{external:!0}):(P.value=!1,V.value?.enableSearchButton(),Se.error("Missing product id or multiple products selected"))},K=([p,x]=Z(()=>i()),p=await p,x(),p||"full");D.addHeadersSerp(u,t.value?.pageContext?.seo),D.addSerpSchema(u,t.value.pageContext?.breadcrumbs,t.value.products,t.value.pageContext?.seo?.canonicalLink?.url);function W(){n.value.removeAll(),s.value.sortBy=void 0,s.value.sortDirection=void 0}const X=U(()=>
1{if(t.value.pageContext?.coordinates){let r=`${H().public.zMapsUrl}/static/${t.value.pageContext.coordinates.longitude},${t.value.pageContext.coordinates.latitude},16/776x350.png`;return r+=`?marker=${t.value.pageContext.coordinates.longitude},${t.value.pageContext.coordinates.latitude}%7Cmarker-icon.png`,r}else return null});return(a,r)=>{const J=Re,O=Te,pe=ye("i18n-t"),me=Me,he=Fe;return e(P)?(o(),f(e(Ee),{key:0})):(o(),f(he,{key:1,seo:e(t)?.pageContext?.seo,page:"SERP"},{default:k(()=>[xe(a.$slots,"cover",{searchResponse:e(t),serpMode:e(K)}),m(me,{class:ae(["px-2 sm:px-4 z-search-results-page",("getVerticalClassName"in a?a.getVerticalClassName:e($e))(e(g))])},{default:k(()=>[l("div",He,[m(e(re),{onSubmitSearch:ie,onSubmitQuote:de,minimized:e(K)==="minimized",searchRequest:e(s),showSegmentsTab:e(_),ref_key:"searchBox",ref:V},null,8,["minimized","searchRequest","showSegmentsTab"])]),e(A)&&e(g)?(o(),f(e(Ne),{key:0,id:"breadcrumbs",breadcrumbs:e(t).pageContext?.breadcrumbs,vertical:e(g),from:e(s).from,to:e(s).to,distribution:e(s).distribution},null,8,["breadcrumbs","vertical","from","to","distribution"])):v("",!0),l("div",je,[l("aside",Qe,[e(X)?(o(),d("div",{key:0,class:"relative overflow-hidden border rounded-xl cursor-pointer h-24 mb-8",onClick:N(L,["stop"])},[l("img",{src:e(X),alt:"Map",loading:"lazy",decoding:"async"},null,8,Ye),l("div",Ge,[m(O,{class:"py-2 px-4 cursor-pointer hover:bg-primary-400 z-search-button",onClick:N(L,["stop"])},{default:k(()=>[m(J,{name:"i-mdi-map-marker"}),E(y(a.$t("view_in_map")),1)]),_:1})])])):v("",!0),e(A)&&e(g)?(o(),d(R,{key:1},[e(g)==="ACCOMMODATION"?(o(),f(e(De),{key:0,modelValue:e(n),"onUpdate:modelValue":r[0]||(r[0]=c=>$(n)?n.value=c:null),searchResponse:e(t),showPrice:!!(e(s).from&&e(s).to),showFreeCancellation:!!(e(s).from&&e(s).to)},null,8,["modelValue","searchResponse","showPrice","showFreeCancellation"])):v("",!0),e(g)==="ACTIVITY"?(o(),f(e(te),{key:1,isFilterModal:!1,modelValue:e(n),"onUpdate:modelValue":r[1]||(r[1]=c=>$(n)?n.value=c:null),searchRequest:e(s),searchResponse:e(t),showPrice:!!(e(s).from&&e(s).to),showFreeCancellation:!!(e(s).from&&e(s).to)},null,8,["modelValue","searchRequest","searchResponse","showPrice","showFreeCancellation"])):v("",!0),e(g)==="INSURANCE"?(o(),f(e(te),{key:2,isFilterModal:!1,modelValue:e(n),"onUpdate:modelValue":r[2]||(r[2]=c=>$(n)?n.value=c:null),searchRequest:e(s),searchResponse:e(t),showPrice:!!(e(s).from&&e(s).to),showFreeCancellation:!!(e(s).from&&e(s).to)},null,8,["modelValue","searchRequest","searchResponse","showPrice","showFreeCancellation"])):v("",!0)],64)):v("",!0)]),l("section",Ke,[l("div",We,[e(A)?(o(),f(e(Ie),{key:0,searchResponse:e(t),modelValue:e(n),"onUpdate:modelValue":r[3]||(r[3]=c=>$(n)?n.value=c:null)},null,8,["searchResponse","modelValue"])):v("",!0)]),e(b)?(o(),d("div",Xe,[m(e(se))])):e(ue)&&e(g)?(o(),d(R,{key:1},[l("div",Je,[l("span",{class:"pl-1 text-base mb-2 sm:mb-0 z-search-results-found-text",innerHTML:e(t).pageContext?.productsFoundText},null,8,Ze),l("div",qe,[m(e(ze),{isFiltersDialogOpen:e(F),"onUpdate:isFiltersDialogOpen":r[4]||(r[4]=c=>$(F)?F.value=c:null),searchFilters:e(n),"onUpdate:searchFilters":r[5]||(r[5]=c=>$(n)?n.value=c:null),onSortByChanged:Y,searchResponse:e(t),searchRequest:e(s),vertical:e(g)},null,8,["isFiltersDialogOpen","searchFilters","searchResponse","searchRequest","vertical"]),m(O,{class:"py-2 px-4 cursor-pointer z-filters-button md:hidden",onClick:N(L,["stop"])},{default:k(()=>[m(J,{name:"i-mdi-map-marker"}),E(y(a.$t("view_in_map")),1)]),_:1})]),m(e(Be),{class:"hidden sm:hidden md:block z-search-results-sort-by",searchResponse:e(t),searchRequest:e(s),vertical:e(g),onChanged:Y},null,8,["searchResponse","searchRequest","vertical"])]),(o(!0),d(R,null,j(e(t).products,c=>(o(),f(e(Le),{key:c.productId,product:c,searchRequest:e(s)},null,8,["product","searchRequest"]))),128)),e(t).totalPages>1&&e(t).currentPage<e(t).totalPages-1?(o(),d("div",et,[l("div",null,[e(z)?(o(),f(e(se),{key:0})):(o(),f(O,{key:1,onClick:ce,variant:"outline",ui:{base:"bg-white rounded-full cursor-pointer"},size:"lg"},{default:k(()=>[E(y(a.$t("load_more")),1)]),_:1}))])])):v("",!0)],64)):(o(),d("div",tt,[l("span",null,y(a.$t("no_results")),1),e(n).isEmpty()?v("",!0):(o(),d("div",st,[m(pe,{keypath:"remove_filters_not_found",scope:"global"},{remove_filters:k(()=>[l("a",{class:"text-base text-primary-500 hover:text-primary-700 hover:underline cursor-pointer",onClick:r[6]||(r[6]=c=>e(n).removeAll())},y(a.$t("remove_filters")),1)]),_:1})]))]))])]),e(t).pageContext?.landingId?(o(),f(e(Oe),{key:1,landingId:e(t).pageContext?.landingId,language:e(u).language,class:"my-12"},null,8,["landingId","language"])):v("",!0),e(g)==="ACCOMMODATION"&&e(t).pageContext?.relatedDestinations?(o(),f(e(dt),{key:2,searchResponse:e(t),from:e(s).from,to:e(s).to,distribution:e(s).distribution},null,8,["searchResponse","from","to","distribution"])):v("",!0),m(e(Ue))]),_:1},8,["class"])]),_:3},8,["seo"]))}}}),ot={class:"my-12 p-4 bg-gray-100 rounded-xl"},rt={class:"text-lg font-bold text-secondary-400 uppercase mb-4"}
1,nt={class:"grid grid-cols-2 sm:grid-cols-5 gap-4 z-related-section"},lt={class:"uppercase text-md font-bold mb-2"},it=["href"],ct={class:"text-gray-400 italic text-sm"},ut=Q({__name:"RelatedDestinations",props:{searchResponse:{},from:{},to:{},distribution:{}},setup(I){const w=I,p=w.searchResponse.pageContext?.relatedDestinations;function x(u){return C.getSerpPageFromSeoLink(u.canonicalLink,w.from,w.to,w.distribution)}return(u,M)=>(o(),d("div",ot,[l("h2",rt,y(u.$t("related_destinations")),1),l("div",nt,[(o(!0),d(R,null,j(e(p),(i,h)=>(o(),d("section",null,[l("h3",lt,y(u.$t("location_types."+i.locationType)),1),l("ul",null,[(o(!0),d(R,null,j(i.items,(_,b)=>(o(),d("li",{key:b,class:"flex flex-col w-fit mb-2"},[l("a",{href:x(_),class:"text-primary-500 hover:underline"},y(_.label),9,it),l("span",ct,y(u.$t("products_accommodation",{count:_.count})),1)]))),128))])]))),256))])]))}}),dt=oe(ut,[["__scopeId","data-v-be6f0a93"]]),pt={class:"mx-auto max-w-[1370px] px-2 sm:px-4 pt-6"},mt=Q({__name:"serp",setup(I){const w=H().public.zShowSegmentsTab,p=Ce("cdrSuggestEnabled",()=>!1);function x(i,h){const _=String(h||"").trim();if(!_)return i;const b=i.includes("?")?"&":"?";return`${i}${b}destino=${encodeURIComponent(_)}`}const u=async(i,h)=>
1{const _=C.getSerpPage(h.canonicalLink,i.from,i.to,i.distribution),b=x(_,h.display||h.name||h.id);await T(b,{external:!0})},M=async(i,h)=>{i?.productId&&await T(C.getDetailsPage(h,i.from,i.to,i.distribution),{external:!0})};return(i,h)=>(o(),d("div",{class:ae(["serp-custom-page",{"serp-custom-page--cdr":e(p)}])},[m(e(at),null,we({_:2},[e(p)?{name:"cover",fn:k(()=>[l("div",pt,[m(e(re),{showSegmentsTab:e(w),onSubmitSearch:u,onSubmitQuote:M},null,8,["showSegmentsTab"])])]),key:"0"}:void 0]),1024)],2))}}),Et=oe(mt,[["__scopeId","data-v-e4b3a723"]]);export{Et 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.