PageSourceSearch

https://campercontact-production.herokuapp.com/_next/static/chunks/4964-f16efa32ddbbaaf3.js

js campercontact-production.herokuapp.com collected 2026-10-03 14:47:41 UTC 60,359 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4964],{1513:(e,r,l)=>{l.d(r,{Q:()=>i});var t=l(7620),a=l(74160);function i(e){let{priceRange:r,price:l,priceBreakdown:i,currency:n="EUR"}=e,{formatCurrency:s,formatMessage:o}=(0,a.tz)();return(0,t.useMemo)(()=>{let e=(null==r?void 0:r.min)!=null&&(null==r?void 0:r.max)!=null,t=(null==r?void 0:r.min)!=null&&(null==r?void 0:r.max)==null,a=(null==r?void 0:r.min)==null&&(null==r?void 0:r.max)!=null;return(null==i?void 0:i.pricePerNight)!=null?"".concat(o("poi.booking.from")," ").concat(s(i.pricePerNight,n)):null!=l?"".concat(o("poi.booking.from")," ").concat(s(l,n)):e?"".concat(s(null==r?void 0:r.min,"EUR",0)," - ").concat(s(null==r?void 0:r.max,"EUR",0)):a?"".concat(s(0,"EUR",0)," - ").concat(s(null==r?void 0:r.max,"EUR",0)):t?"".concat(s(null==r?void 0:r.min,"EUR",0),"+"):null===l?o("info.price.unknown"):o("info.price.free")},[null==r?void 0:r.min,null==r?void 0:r.max,l,null==i?void 0:i.pricePerNight,s,o,n])}},6803:(e,r,l)=>{l.d(r,{Bc:()=>a.Bc,Ex:()=>t.E,ZI:()=>a.ZI,k$:()=>a.k$,m_:()=>a.m_});var t=l(46629),a=l(48645)},14900:(e,r,l)=>{l.d(r,{Lk:()=>a,UK:()=>i}),l(54568),l(7620);let t=[767,768,1024,1280,1440,1536],a=[293,517,710,1250],i=e=>e.map((e,r)=>0===r?"(max-width: ".concat(t[r],"px) ").concat(e,"px"):"(min-width: ".concat(t[r],"px) ").concat(e,"px")).reverse().join(", ")},15101:(e,r,l)=>{l.d(r,{J:()=>a,h:()=>i});let t=new Map,a=e=>{let r=t.get(e);if(void 0===r)throw Error("Env.get(".concat(e,") has not been set"));return r},i=(e,r)=>t.set(e,r)},15788:(e,r,l)=>{l.d(r,{A:()=>eb});var t=l(54568),a=l(7620),i=l(29431),n=l(74160),s=l(97573),o=l(12254);let d=e=>{let{numberOfCamperSpots:r,poiType:l}=e,{formatMessage:a}=(0,n.tz)(),d=r===i.$P?a("filters.label.amenity.unknown"):r;return(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[l===i.ds.PARKING?(0,t.jsx)(o.UI.ParkingIcon,{size:"xs"}):(0,t.jsx)(o.UI.CamperIcon,{size:"xs"}),(0,t.jsx)(s.E,{size:"sm",children:d})]})},c=e=>{let{isOpen:r,pricesAndOpeningPeriodKnown:l}=e,{formatMessage:a}=(0,n.tz)();return void 0!==r&&(0,t.jsx)(s.E,{weight:r?"bold":"normal",color:(()=>{switch(!0){case r&&l:return"textlink";case!r&&l:return"yellow-notice"}return"secondary"})(),size:"sm",className:"whitespace-nowrap",children:a(l?r?"poi.status.open":"poi.status.closed":"poi.status.open.unknown")})};var p=l(75405);l(26323);var u=l(47873),f=l(94338),b=l(94099),m=l(39597),h=l(16210),y=l(99753),v=l(36793),g=l(59267),x=l(23723),D=l(15167),w=l(15101),k=l(65271),E=l.n(k);class C{async fetchSuggestions(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments.length>1&&void 0!==arguments[1]&&arguments[1];let{from:e,size:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};throw Error("BaseElasticSearchDriver:fetchSuggestions not implemented")}async fetchPoiCount(e,r){throw Error("BaseElasticSearchDriver:fetchPoiCount not implemented (".concat(JSON.stringify(e),")"))}async fetchPois(e){throw Error("BaseElasticSearchDriver:fetchPois not implemented (".concat(JSON.stringify(e),")"))}async _search(e,r){throw Error("BaseElasticSearchDriver:_search not implemented (".concat(e,", ").concat(JSON.stringify(r),")"))}async _get(e,r){throw Error("BaseElasticSearchDriver:_get not implemented (".concat(e,", ").concat(r,")"))}setLocale(e){throw Error("BaseElasticSearchDriver:setLocale not implemented (".concat(e,"))"))}}let S=C;var A=l(84594),N=l.n(A);let j=[{field:"filters.properties",operator:"properties"},{field:"filters.price",operator:"price"},{field:"filters.rating",operator:"gte"},{field:"filters.numberOfReviews",operator:"gte"},{field:"filters.maxCamperSpots",operator:"range"},{field:"filters.maxHoursToStay",operator:"stayLength"},{field:"filters.maxCamperLength",operator:"gte"},{field:"name",operator:"query"},{field:"distance",operator:"distance"},{field:"exclude",operator:"exclude"},{field:"type",operator:"type"},{field:"filters.poiType",operator:"poiType"},{field:"parents",operator:"parents"},{field:"boundingBox",operator:"boundingBox"},{field:"or",operator:"or"},{field:"filters.favourites",operator:"favourites"},{field:"filters.price.date",operator:"period"},{field:"translatedPermalinks",operator:"permalink"},{field:"polygons",operator:"polygons"}];var O=l(26060),R=l(40459);let P={[i.QE.CITY2]:i.QE.CITY,[i.QE.REGION2]:i.QE.REGION};class F extends S{setLocale(e){this.index="geolocation-".concat(e,",auto-suggest")}setIndex(e){this.index=e}async fetchSeoLocation(e){let r={query:{nested:{path:"slug",query:{bool:{must:[{match:{"slug.path":e}}]}}}}};return this._search("seo-queries",r)}async fetchSuggestions(e,r,l,t){let a=await this.createBody(e,r,l);return this._search(this.index,a.build(),t)}async fetchAllSuggestions(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{fields:l}=r,t=await this.createBody(e,{fields:l});return this._scroll(this.index,t.build())}async fetchPoiCount(e,r,l){let t=await this.createBody(e,r,l);return this._count(this.index,t.build())}async fetchById(e,r){let{data:l}=await this.client.get("/".concat(r,"/_doc/").concat(e)),t=l._source;return{items:[{...t,type:P[t.type]||t.type,title:t.originalName?t.originalName:t.title}]}}async fetchViewport(e){let r=await this.createBody(e);return r.aggregation("geo_bounds","location",{wrap_longitude:!0},"viewport"),this._search(this.index,r.build())}async createBody(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{from:l,size:t}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{sortBy:a="level",sortOrder:n="asc",location:s,fields:o}=r,d=new(E());d.rawOption("_source",["id","type","title","shortName","originalName","names","subtitle","location","boundingBox","sitecode","filters.poiType","permalink","oldPermalink","thumbnail","filters.isClaimed","filters.rating","filters.numberOfReviews","filters.prices","filters.maxCamperSpots","filters.isBookable","translatedPermalinks","subscriptionLevel"]),Array.isArray(o)&&d.rawOption("_source",o);let c="relevance",p=new(E());(p=e.reduce((e,l)=>this.applyFilter(e,l,r),p)).notQuery("match","type",i.QE.COMPANY),l&&d.from(l),t&&d.size(t);let u=[{_score:"desc"},{level:"desc"}],f="distance",b=r.filterLocation;switch(a){case c:u.push({"filters.relevance":{order:n}});break;case f:u.push({_geo_distance:{location:s,order:n,mode:"min"}});break;
1case"price":u.push({"filters.prices.price":{order:n,mode:"min",nested:{path:"filters.prices"}}});break;case"rating":u.push({"filters.rating":{order:n}})}if(b&&b.names&&b.names.length>0&&a===c){let e=b.names.map(e=>({match_phrase:{subtitle:e}}));d.rawOption("query",{function_score:{query:p.getFilter(),functions:[{filter:{bool:{should:e}},weight:10}],score_mode:"sum",boost_mode:"multiply"}})}else{let e=p.build();d.rawOption("query",e.query)}if(b&&a!==f){let{lat:e,lon:r}=b;u.push({_geo_distance:{location:{lat:e,lon:r},order:"asc",mode:"min"}})}return d.sort(u),d}async _search(e,r,l){let t=encodeURI("/".concat(e,"/_search")),a=JSON.stringify(r),{data:n}=await this.client.post(t,a,{headers:{"Content-Type":"application/json"}});if(!n||!n.hits)return{aggregations:void 0,items:[],total:0};let{hits:s,total:o}=n.hits,d=s.map(e=>{let r,{_source:t}=e;if((t.type===i.QE.CITY2||t.type===i.QE.REGION2)&&l){let e=l.toLowerCase();if(t.originalName.toLowerCase()===e)r=t.originalName;else{var a;r=(null==(a=t.names)?void 0:a.find(r=>r.toLowerCase().startsWith(e)))||t.originalName}}else r=t.title;return{...t,type:P[t.type]||t.type,title:r,poiType:t.filters?t.filters.poiType:void 0}}),{aggregations:c}=n;return{aggregations:c,items:d,total:o.value}}async _count(e,r){r={...r,_source:void 0,sort:void 0};let l=encodeURI("/".concat(e,"/_count?source=").concat(JSON.stringify(r),"&source_content_type=application/json")),{data:t}=await this.client.get(l,{});return t.count}async _scroll(e,r){r={...r,sort:void 0,size:500};let l=await this.client.get("/".concat(e,"/_search?scroll=2m"),{params:{source:JSON.stringify(r),source_content_type:"application/json"}}),t=l.data,a=[],i=t.hits.total.value,n=t._scroll_id,s=t.hits.hits,o=s.map(e=>{let{_source:r}=e;return{...r}});for(a.push(...o);a.length<i;)a.push(...o=(s=(t=(l=await this.client("/_search/scroll",{params:{source:JSON.stringify({scroll:"2m",scroll_id:n}),source_content_type:"application/json"}})).data).hits.hits).map(e=>{let{_source:r}=e;return{...r}}));return{items:a,total:i}}getOperatorHandler(e){return this[F.operatorFunctions[e]]||this[F.operatorFunctions.default]}handlePropertiesFilter(e,r){let{field:l,value:t,property:a}=r;return t===O.GP.NO_PREFERENCE?e:t===O.GP.EXCLUDE?e.notFilter("term",l,a):e.filter("term",l,a)}handlePriceFilter(e,r){let{field:l,value:t}=r,a=t.split("-"),i=a[0],n=a[1],s=O.uW.pro.find(e=>e.field===l);return n>=s.options.max&&i<=s.options.min?e:e.filter("nested",{path:"filters.prices",query:{bool:{filter:[{range:{"filters.prices.price":{gte:i,lte:n}}}]}}})}handleGteFilter(e,r){let{field:l,value:t}=r;return e.filter("range",l,{gte:t})}handleRangeFilter(e,r){let{field:l,value:t}=r;return e.filter("range",l,{gte:t[0],lte:t[1]})}handleQueryFilter(e,r){let{value:l}=r;return e.notQuery("match","type",i.Ay.TYPES.CITY),e.notQuery("match","type",i.Ay.TYPES.REGION),e.orQuery("multi_match",{fields:["title","name^2","permalink"],query:l}),e.orQuery("match_phrase",{names:l}),e.orQuery("match_phrase",{originalName:{query:l,boost:5}}),e.orQuery("term","name.raw",{value:l,boost:5}),e.queryMinimumShouldMatch(1),"string"==typeof l&&/^\d+$/.test(l)&&e.orQuery("query_string","query",+l),e.rawOption("min_score",.1),e}handleDistanceFilter(e){let{field:r,value:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{location:a,filterLocation:i}=t,{lat:n,lon:s}=i||a;return e.filter("geo_distance",{distance:l,location:{lat:n,lon:s}})}handleDefaultFilter(e,r){let{field:l,value:t}=r,a=Array.isArray(t)?"terms":"term";return e.filter(a,l,t)}handlePermalinkFilter(e,r){let{field:l,value:t}=r;return e.orQuery("term","permalink",t),e.orQuery("match","translatedPermalinks.permalink.keyword",t),e}handlePeriodFilter(e,r){let l,t,{value:a}=r,i=JSON.parse(a),n=i.fromDate.split("-"),s=i.toDate.split("-");n[0]!==s[0]&&(l="1970-01-01",t="1970-12-31");let o="1970-".concat(n[1],"-").concat(n[2]),d="1970-".concat(s[1],"-").concat(s[2]);return l||t?(e.filter("nested",{path:"filters.prices",query:{bool:{filter:[{range:{"filters.prices.dateFrom":{lte:o}}},{range:{"filters.prices.dateTo":{gte:t}}}]}}}),e.filter("nested",{path:"filters.prices",query:{bool:{filter:[{range:{"filters.prices.dateFrom":{lte:l}}},{range:{"filters.prices.dateTo":{gte:d}}}]}}})):e.filter("nested",{path:"filters.prices",query:{bool:{filter:[{range:{"filters.prices.dateFrom":{lte:o}}},{range:{"filters.prices.dateTo":{gte:d}}}]}}})}constructor({baseURL:e,cloudId:r},l){super(),this.applyFilter=(e,r,l)=>{let{field:t}=r,a=j.find(e=>e.field===t),i=a&&a.operator;return this.getOperatorHandler(i)(e,r,l)},this.handleExcludeFilter=(e,r,l)=>{let{field:t,value:a}=r;return e.notFilter("bool",e=>e=a.reduce((e,r)=>this.applyFilter(e,r,l),e))},this.handleBoundingBoxFilter=(e,r)=>{let{value:l}=r,{north:t,east:a,south:i,west:n}=l;return e.filter("geo_bounding_box",{location:{top_left:{lat:t,lon:n},bottom_right:{lat:i,lon:a}}})},this.handleOrFilter=(e,r)=>{let{value:l}=r;return Array.isArray(l)&&l.forEach(r=>{let{field:l,value:t}=r;e.orFilter("term",l,t)}),e},this.handleFavouritesFilter=(e,r)=>{let{value:l}=r;return e.query("terms","id",{index:"favourites-v2",id:l,path:"favouriteIds"})},this.handleStayLengthFilter=(e,r)=>{let{field:l,value:t}=r;return Array.isArray(t)?e.query("terms",l,t):this.handleDefaultFilter(e,{field:l,value:t})},this.handlePolygonsFilter=(e,r)=>{let{value:l}=r;return e.filter("geo_shape","location",{shape:{type:"multipolygon",coordinates:l},relation:"within"})},R.env.ELASTIC_USERNAME,R.env.ELASTIC_PASSWORD;this.client=N().create({baseURL:e,headers:{}}),l&&this.setIndex(l)}}function _(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return JSON.stringify({filters:e,...r})}function T(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(_(e,r),"-count")}F.operatorFunctions={properties:"handlePropertiesFilter",price:"handlePriceFilter",gte:"handleGteFilter",range:"handleRangeFilter",query:"handleQueryFilter",distance:"handleDistanceFilter",exclude:"handleExcludeFilter",default:"handleDefaultFilter",permalink:"handlePermalinkFilter",boundingBox:"handleBoundingBoxFilter",favourites:"handleFavouritesFilter",stayLength:"handleStayLengthFilter",period:"handlePeriodFilter",polygons:"handlePolygonsFilter",or:"handleOrFilter"},(()=>{let e;return()=>(e||(e=new F({baseURL:w.J("ELASTIC_BASE_URL"),cloudId:w.J("ELASTIC_CLOUDID")})),e)})();let I=e=>e.map(e=>e instanceof Date?e:new Date(e)).map((0,y.A)(1970)).map((0,v.A)(0)).map((0,g.A)(0)).map((0,x.A)(0)).map((0,D.A)(0));l(36103);var L=l(52362);let B=(0,L.Bj)("search"),z=(0,L.Lw)("search"),[M,U,q]=z("fetchSearchSuggestions",{init:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{from:l=0,size:t=10}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return{filters:e,options:r,pagination:{from:l,size:t},locale:a,query:i}},resolve:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{from:l=0,size:t=10,total:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;return{filters:e,options:r,pagination:{from:l,size:t,total:a},items:i}},reject:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{from:l=0,size:t=10}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;return{filters:e,options:r,pagination:{from:l,size:t},error:a}}}),[G,J,Q]=z("fetchTranslations",{init:(e,r)=>({id:e,currentLocale:r}),resolve:(e,r,l)=>({id:e,currentLocale:r,translations:l}),reject:(e,r,l)=>({id:e,currentLocale:r,error:l})}),[W,X,Y]=z("fetchCount",{init:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{filters:e,options:r}},resolve:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;return{filters:e,options:r,count:l}},reject:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;return{filters:e,options:r,error:l}}}),[K,V,$]=z("fetchById",{init:(e,r)=>({index:e,id:r}),resolve:e=>({data:e}),reject:e=>({error:e})}),[H,Z,ee]=z("fetchSeoLocation",{init:(e,r)=>({slug:e,locale:r}),resolve:e=>({items:e}),reject:e=>({error:e})}),er=B("clearCache");var el=l(46717);let et={suggestions:{},searchCache:{}},ea=(0,u.C8)("search",{[U]:function(e,r){let{filters:l,options:t,pagination:a,items:i}=r,n=_(l,t),{from:s,total:o}=a,d=e.searchCache[n]||{total:o,ids:[]},c=e.suggestions;
1d.total=o,i.forEach((e,r)=>{d.ids[s+r]=e.id;let l=e;e&&e.thumbnail&&(l={...e,thumbnail:e.thumbnail.replace("https://img.campercontact.com","https://images.campercontact.com")}),c[e.id]=l}),e.searchCache[n]=d},[X]:function(e,r){let{filters:l,options:t,count:a}=r,i=T(l,t);e.searchCache[i]=a},[er]:function(){return et},[V]:function(e,r){let{index:l,id:t,item:a}=r,i="".concat(l,"-").concat(t);e.searchDocs[i]=a}},et),ei=(0,u.Qr)(ea),en=(0,el.Mz)(ei,e=>e.suggestions||{}),es=(0,el.Mz)(ei,e=>e.searchCache||{}),eo=(0,el.Mz)(ei,e=>e.searchDocs||{});(0,el.Mz)(eo,(0,u.bk)("id",void 0),(0,u.bk)("index",void 0),(e,r,l)=>e["".concat(r,"-").concat(l)]);let ed=(0,el.Mz)(es,function(e){let{filters:r,options:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _(r,l)},(e,r)=>e[r]),ec=(0,el.Mz)(en,ed,(e,r)=>{if(!e||!r)return;let{ids:l}=r;return l.map(r=>e[r])}),ep=(0,el.Mz)(ed,function(){let{total:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e});(0,el.Mz)(ec,ep,(0,u.bk)("pagination",{from:0,size:0}),(e,r,l)=>{let{from:t,size:a}=l;if(!e||void 0===r)return;let i=Math.min(t+a,r);e=e.slice(t,i);let n=i-t>=0?i-t:0;e.length=n;let s=Array(n).fill(void 0);return e.forEach((r,l)=>{s[l]=e[l]}),s});let eu=(0,el.Mz)(es,function(e){let{filters:r,options:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return T(r,l)},(e,r)=>e[r]);(0,el.Mz)(eu,e=>void 0!==e?e:void 0),(0,el.Mz)(ei,(0,u.bk)("id",void 0),(e,r)=>e.suggestions[r]);var ef=l(43492);let eb=e=>{let{prices:r,numberOfCamperSpots:l,poiType:i}=e,{isOpen:s,pricesAndOpeningPeriodKnown:o}=function(e){let{formatCurrency:r}=(0,n.tz)(),l=(0,p.sx)("filters.price.date"),t=((e,r)=>{if(!(null==e?void 0:e.length))return;let l=e.map(e=>"dateFrom"in e?{...e,startDate:e.dateFrom,endDate:e.dateTo}:"startDate"in e?{...e,dateFrom:e.startDate,dateTo:e.endDate,price:e.totalPrice}:e),t=Object.entries(r).reduce((e,r)=>{let[l,t]=r;return{...e,[l]:I([t])[0]}},{}),a=l.map(e=>({...e,differenceInDays:(0,f.A)(new Date(e.dateFrom),new Date(e.dateTo))})).filter(e=>{let r=I([e.dateFrom,e.dateTo]),l=r[0],a=r[1];return((0,b.A)(t.fromDate,l)||(0,m.A)(t.fromDate,l))&&((0,h.A)(t.toDate,a)||(0,m.A)(t.toDate,a))}).sort((e,r)=>e.differenceInDays-r.differenceInDays);return a.length?{...a[0],isOpen:!0}:e.length>1?(e=>{let r=[...e].sort((e,r)=>e.price-r.price);return{min:r[0],max:r[e.length-1],isOpen:!1}})(e):{...e[0],isOpen:!1}})(e,(0,a.useMemo)(()=>{if(!l)return{fromDate:new Date,toDate:new Date};{let e=JSON.parse(l);return{fromDate:e.fromDate,toDate:e.toDate}}},[l]));return{price:(0,a.useMemo)(()=>{var e,l,a;let i=null!=(a=null!=(l=null==t?void 0:t.currency)?l:null==t||null==(e=t.min)?void 0:e.currency)?a:"EUR";return(null==t?void 0:t.price)!=null?r(t.price,i):(null==t?void 0:t.min)!==void 0&&(null==t?void 0:t.max)!==void 0?"".concat(r(t.min.price,i)," - ").concat(r(t.max.price,i)):void 0},[t,r]),isOpen:!!(null==t?void 0:t.isOpen),pricesAndOpeningPeriodKnown:e&&e.length>0}}(r);return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[!!l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{numberOfCamperSpots:l,poiType:i}),(0,t.jsx)(ef.Z,{size:"xxs"})]}),(0,t.jsx)(c,{isOpen:s,pricesAndOpeningPeriodKnown:o})]})}},19274:(e,r,l)=>{l.d(r,{Xn:()=>t,YZ:()=>a});let t="nl",a=["en","es","de","fr","it","nl"]},21238:(e,r,l)=>{l.d(r,{AA:()=>d,a8:()=>c,hc:()=>p});var t=l(23113),a=l(51541),i=l(73901),n=l(73938),s=l(6722),o=l(98139);let d=(e,r)=>{let l=(0,i.A)((0,n.A)([(0,s.A)("field",e),(0,s.A)("property",e)]),r);return l?l.value===e.value||!1===e.value||void 0===e.value||null===e.value?(0,o.A)([l],r):[...(0,o.A)([l],r),e]:[...r,e]},c=e=>JSON.stringify({fromDate:(0,a.A)(e.fromDate,{representation:"date"}),toDate:(0,a.A)(e.toDate,{representation:"date"})}),p=()=>c((()=>{let e=new Date;return{fromDate:e,toDate:(0,t.A)(e,1)}})())},26060:(e,r,l)=>{l.d(r,{fG:()=>n,MJ:()=>d,x1:()=>s,Px:()=>o,G$:()=>i,GP:()=>a,X_:()=>f,Jv:()=>p,uW:()=>c,vP:()=>u});let t={PRO:"PRO",FREE:"FREE"},a={NO_PREFERENCE:void 0,INCLUDE:"INCLUDE",EXCLUDE:"EXCLUDE"},i={NO_PREFERENCE:void 0,SEVEN_DAYS_OR_MORE:["168","9999","unlimited"],TWO_TO_SIX_DAYS:["48","72","96","120","144"],ONE_DAY:["12","17","24"],FORBIDDEN:"forbidden"},n="amenities",s="surroundings",o="terrain",d="discounts",c={pro:[{field:"filters.poiType",type:"poiType",label:"filters.label.poiType",options:[{label:"filters.label.poiType.camping",value:"camping"},{label:"filters.label.poiType.camperplace",value:"camperplace"},{label:"filters.label.poiType.serviceplace",value:"serviceplace"},{label:"quickfilters.label.poiType.microcamping",value:"microcamping"},{label:"quickfilters.label.poiType.parking",value:"parking"}],userType:t.FREE},{field:"filters.price",type:"range",label:"filters.label.price",options:{min:0,max:100,defaultValue:"0-100"},userType:t.FREE},{field:"filters.isBookable",label:"filters.label.isBookable.title",type:"toggle",userType:t.FREE},{field:"filters.price.date",label:"filters.label.travelingPeriod.title",type:"peri
1od",userType:t.FREE},{field:"filters.rating",type:"rating",label:"filters.label.rating",options:[{label:2.5,value:2.5},{label:3.5,value:3.5},{label:4.5,value:4.5}],userType:t.FREE},{field:"filters.numberOfReviews",type:"review",label:"filters.label.reviewCount",options:[{label:5,value:5},{label:25,value:25},{label:50,value:50}],userType:t.FREE},{id:n,type:"section",label:"filters.label.amenities",options:{visibleChildren:5,children:[{field:"filters.properties",label:"filters.label.amenity.dischargeWasteWater",property:"amenity.dischargeWasteWater",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.dischargeToilet",property:"amenity.dischargeToilet",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.passerByAmenities",property:"amenity.passerByAmenities",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.water",property:"amenity.water",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.electricity",property:"amenity.electricity",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.toilet",property:"amenity.toilet",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.shower",property:"amenity.shower",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.clothesWashDry",property:"amenity.clothesWashDry",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.tumbledryer",property:"amenity.tumbleDryer",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.garbageContainer",property:"amenity.garbageContainer",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.internet",property:"amenity.internet",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.shoporkiosk",property:"amenity.shopOrKiosk",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.breadservice",property:"amenity.rollsService",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.swimmingpool",property:"amenity.swimmingPool",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.playground",property:"amenity.playground",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.bicyclerental",property:"amenity.bicycleRental",type:"checkbox"},{field:"filters.properties",label:"filters.label.amenity.campfire",property:"amenity.campfire",type:"checkbox"}]},userType:t.PRO},{id:o,type:"section",label:"filters.label.terrain",options:{visibleChildren:6,children:[{field:"filters.properties",label:"filters.label.terrain.wildcamping",property:"terrain.wildCamping",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.gateorcampsite",property:"terrain.atTheGateOrAdjacentToACampsite",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.motorhomepark",property:"terrain.motorhomePark",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.atarestaurant",property:"terrain.atARestaurant",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.atafarm",property:"terrain.atAFarm",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.atamarina",property:"terrain.atAMarina",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.atagolfcourse",property:"terrain.atAGolfCourse",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.hardened",property:"terrain.hardened",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.grass",property:"terrain.grass",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.security",property:"terrain.security",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.illuminated",property:"terrain.illuminated",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.onMixParking",property:"terrain.onMixParking",type:"checkbox"},{field:"filters.properties",label:"filters.label.terrain.especiallyForCampers",property:"terrain.especiallyForCampers",type:"checkbox"},{field:"filters.maxCamperSpots",label:"filters.label.amenity.camperSpots",type:"dropdown",options:[{label:"filters.label.amenity.button.noPreference",value:void 0},{label:"filters.label.amenity.camperSpots.range",value:[0,5]},{label:"filters.label.amenity.camperSpots.range",value:[6,10]},{label:"filters.label.amenity.camperSpots.range",value:[11,25]},{label:"filters.label.amenity.camperSpots.rangeMoreThan",value:[26,9999]}]},{field:"filters.maxCamperLength",label:"filters.label.amenity.maxCamperLength",type:"dropdown",options:[{label:"filters.label.amenity.button.noPreference",value:void 0},{label:"filters.label.amenity.maxCamperLength.unit",value:6},{label:"filters.label.amenity.maxCamperLength.unit",value:7},{label:"filters.label.amenity.maxCamperLength.unit",value:8},{label:"filters.label.amenity.maxCamperLength.unit",value:9},{label:"filters.label.amenity.maxCamperLength.unit",value:10},{label:"filters.label.amenity.maxCamperLength.unit",value:11},{label:"filters.label.amenity.maxCamperLength.unit",value:12}]},{field:"filters.maxHoursToStay",label:"filters.label.amenity.maximumStay",type:"dropdown",options:[{label:"filters.label.amenity.button.noPreference",value:i.NO_PREFERENCE},{label:"filters.label.amenity.maximumStay.sevenDaysOrMore",value:i.SEVEN_DAYS_OR_MORE},{label:"filters.label.amenity.maximumStay.twoToSixDays",value:i.TWO_TO_SIX_DAYS},{label:"filters.label.amenity.maximumStay.oneDayMax",value:i.ONE_DAY},{label:"filters.label.amenity.maximumStay.forbidden",value:i.FORB
1IDDEN}]}]},userType:t.PRO},{id:s,type:"section",label:"filters.label.surroundings",options:{visibleChildren:5,children:[{field:"filters.properties",label:"filters.label.surroundings.mountains",property:"surroundings.inTheMountains",type:"checkbox"},{field:"filters.properties",label:"filters.label.surroundings.bywater",property:"surroundings.byTheWater",type:"checkbox"},{field:"filters.properties",label:"filters.label.surroundings.forestedarea",property:"surroundings.inAForestedArea",type:"checkbox"},{field:"filters.properties",label:"filters.label.surroundings.citycenter",property:"surroundings.inCityCenter",type:"checkbox"},{field:"filters.properties",label:"filters.label.surroundings.publictransport",property:"surroundings.publicTransportNear",type:"checkbox"},{field:"filters.properties",label:"filters.label.surroundings.supermarket",property:"surroundings.supermarket",type:"checkbox"},{field:"filters.properties",label:"filters.label.surroundings.swimmingPool",property:"surroundings.swimmingPool",type:"checkbox"},{field:"filters.properties",label:"filters.label.surroundings.hiking",property:"surroundings.hiking",type:"checkbox"},{field:"filters.properties",label:"filters.label.surroundings.fish",property:"surroundings.fish",type:"checkbox"},{field:"filters.properties",label:"filters.label.surroundings.ski",property:"surroundings.ski",type:"checkbox"},{field:"filters.properties",label:"filters.label.surroundings.cycle",property:"surroundings.cycle",type:"checkbox"}]},userType:t.PRO},{id:d,type:"section",label:"filters.label.discounts",options:{visibleChildren:3,children:[{field:"filters.properties",label:"filters.label.discount.acsi",property:"discount.acsi",apiCode:"acsi",type:"checkbox"},{field:"filters.properties",label:"filters.label.discount.cci",property:"discount.cci",apiCode:"cci",type:"checkbox"},{field:"filters.properties",label:"filters.label.discount.ccc",property:"discount.ccc",apiCode:"ccc",type:"checkbox"},{field:"filters.properties",label:"filters.label.discount.cke",property:"discount.cke",apiCode:"cke",type:"checkbox"},{field:"filters.properties",label:"filters.label.discount.svr",property:"discount.svr",apiCode:"svr",type:"checkbox"},{field:"filters.properties",label:"filters.label.discount.campingCheque",property:"discount.campingCheque",apiCode:"camping_cheque",type:"checkbox"},{field:"filters.properties",label:"filters.label.discount.bestDeal",property:"discount.bestDeal",apiCode:"best_deal",type:"checkbox"}]},userType:t.PRO},{field:"filters.properties",label:"filters.label.amenity.wheelchairFriendly",property:"amenity.wheelchairFriendly",type:"toggle",userType:t.FREE},{field:"filters.properties",type:"inlineProperty",property:"amenity.dogsAllowed",label:"filters.label.amenity.dogs",options:[{label:"filters.label.amenity.button.noPreference"},{label:"filters.label.amenity.button.dogsWelcome",value:"INCLUDE"},{label:"filters.label.amenity.button.noDogs",value:"EXCLUDE"}],userType:t.PRO},{field:"filters.properties",type:"inlineProperty",property:"amenity.campingBehaviour",label:"filters.label.amenity.campingOutside",description:"filters.label.amenity.campingOutside.description",options:[{label:"filters.label.amenity.button.noPreference"},{label:"filters.label.amenity.button.allowed",value:"INCLUDE"},{label:"filters.label.amenity.button.notAllowed",value:"EXCLUDE"}],userType:t.FREE},{field:"filters.properties",type:"inlineProperty",property:"amenity.nudism",label:"filters.label.amenity.nudeRecreation",options:[{label:"filters.label.amenity.button.noPreference"},{label:"filters.label.amenity.button.allowed",value:"INCLUDE"},{label:"filters.label.amenity.button.notAllowed",value:"EXCLUDE"}],userType:t.FREE}],regular:[{field:"filters.poiType",type:"poiType",label:"filters.label.poiType",options:[{label:"filters.label.poiType.camping",value:"camping"},{label:"filters.label.poiType.camperplace",value:"camperplace"},{label:"filters.label.poiType.serviceplace",value:"serviceplace"},{label:"quickfilters.label.poiType.microcamping",value:"microcamping"},{label:"quickfilters.label.poiType.parking",value:"parking"}]},{field:"filters.price",type:"range",label:"filters.label.price",options:{min:0,max:51,defaultValue:"0-51"}},{field:"filters.rating",type:"rating",label:"filters.label.rating",options:[{label:2.5,value:2.5},{label:3.5,value:3.5},{label:4.5,value:4.5}]}],company:[{field:"filters.properties",type:"checkboxList",label:"filters.label.service",options:[{field:"filters.properties",label:"filters.label.service.camperAccessories",value:"service.camperAccessories"},{field:"filters.properties",label:"filters.label.service.camperSale",value:"service.camperSale"},{field:"filters.properties",label:"filters.label.service.camperBuilder",value:"service.camperBuilder"},{field:"filters.properties",label:"filters.label.service.camperMaintenance",value:"service.camperMaintenance"},{field:"filters.properties",label:"filters.label.service.camperRent",value:"service.camperRental"},{field:"filters.properties",label:"filters.label.service.camperStorage",value:"service.camperStorage"},{field:"filters.properties",label:"filters.label.service.camperWash",value:"service.camperWash"},{field:"filters.properties",label:"filters.label.service.weighStation",value:"service.weighStation"}]},{field:"filters.properties",type:"checkboxList",label:"filters.label.damageService",options:[{field:"filters.properties",label:"filters.label.damageService.nkcCamperdamageservice",value:"damageService.nkcCamperdamageservice"},{field:"filters.properties",label:"filters.label.damageService.reCamp",value:"damageService.reCamp"},{field:"filters.properties",label:"filters.label.damageService.omniaCss",value:"damageService.omniaCss"},{field:"filters.properties",label:"filters.label.damageService.dealerRepair",value:"damageService.dealerRepair"}]},{field:"filters.properties",type:"checkboxList",label:"filters.label.organisation",options:[{field:"filters.properties",label:"filters.label.organisation.bovag",value:"organisation.bovag"}]},{field:"filters.properties",type:"checkboxList",label:"filters.label.brandDealer",options:[{field:"filters.properties",label:"filters.label.brandDealer.across",value:"brandDealer.across"},{field:"filters.properties",label:"filters.label.brandDealer.adria",value:"brandDealer.adria"},{field:"filters.properties",label:"filters.label.brandDealer.amora-campers",value:"brandDealer.amora-campers"},{field:"filters.properties",label:"filters.label.brandDealer.autostar",value:"brandDealer.autostar"},{field:"filters.properties",label:"filters.label.brandDealer.bavaria",value:"brandDealer.bavaria"},{field:"filters.properties",label:"filters.label.brandDealer.benimar",value:"brandDealer.benimar"},{field:"filters.properties",label:"filters.label.brandDealer.bravia",value:"brandDealer.bravia"},{field:"filters.properties",label:"filters.label.brandDealer.burstner",value:"brandDealer.burstner"},{field:"filters.properties",label:"filters.label.brandDealer.butler",value:"brandDealer.butler"},{field:"filters.properties",label:"filters.label.brandDealer.carado",value:"brandDealer.carado"},{field:"filters.properties",label:"filters.label.brandDealer.carthago",value:"brandDealer.carthago"},{field:"filters.properties",label:"filters.label.brandDealer.challenger",value:"brandDealer.challenger"},{field:"filters.properties",label:"filters.label.brandDealer.chausson",value:"brandDealer.chausson"},{field:"filters.properties",label:"filters.label.brandDealer.ci",value:"brandDealer.ci"},{field:"filters.properties",label:"filters.label.brandDealer.clever",value:"brandDealer.clever"},{field:"filters.properties",label:"filters.label.brandDealer.concorde",value:"brandDealer.concorde"},{field:"filters.properties",label:"filters.label.brandDealer.dethleffs",value:"brandDealer.dethleffs"},{field:"filters.properties",label:"filters.label.brandDealer.dreamer",value:"brandDealer.dreamer"},{field:"filters.properties",label:"filters.label.brandDealer.elnagh",value:"brandDealer.elnagh"},{field:"filters.properties",label:"filters.label.brandDealer.eura-mobil",value:"brandDealer.eura-mobil"},{field:"filters.properties",label:"filters.label.brandDealer.fleurette",value:"brandDealer.fleurette"},{field:"filters.properties",label:"filters.label.brandDealer.frankia",value:"brandDealer.frankia"},{field:"filters.properties",label:"filters.label.brandDealer.giottiline",value:"brandDealer.giottiline"},{field:"filters.properties",label:"filters.label.brandDealer.globe-traveller",value:"brandDealer.globe-traveller"},{field:"filters.properties",label:"filters.label.brandDealer.globecar",value:"brandDealer.globecar"},{field:"filters.properties",label:"filters.label.brandDealer.glucksmobil",value:"brandDealer.glucksmobil"},{field:"filters.properties",label:"filters.label.brandDealer.haan-de-camper",value:"brandDealer.haan-de-camper"},{field:"filters.properties",label:"filters.label.brandDealer.hobby",value:"brandDealer.hobby"},{field:"filters.properties",label:"filters.label.brandDealer.hymer",value:"brandDealer.hymer"},{field:"filters.properties",label:"filters.label.brandDealer.hymer-car",value:"brandDealer.hymer-car"},{field:"filters.properties",label:"filters.label.brandDealer.itineo",value:"brandDealer.itineo"},{field:"filters.properties",label:"filters.label.brandDealer.kabe",value:"brandDealer.kabe"},{field:"filters.properties",label:"filters.label.brandDealer.karmann",value:"brandDealer.karmann"},{field:"filters.properties",label:"filters.label.brandDealer.knaus",value:"brandDealer.knaus"},{field:"filters.properties",label:"filters.label.brandDealer.la-strada",value:"brandDealer.la-strada"},{field:"filters.properties",label:"filters.label.brandDealer.laika",value:"brandDealer.laika"},{field:"filters.properties",label:"filters.label.brandDealer.le-voyageur",value:"brandDealer.le-voyageur"},{field:"filters.properties",label:"filters.label.brandDealer.lmc",value:"brandDealer.lmc"},{field:"filters.properties",label:"filters.label.brandDealer.malibu",value:"brandDealer.malibu"},{field:"filters.properties",label:"filters.label.brandDealer.mclouis",value:"brandDealer.mclouis"},{field:"filters.properties",label:"filters.label.brandDealer.mobilvetta",value:"brandDealer.mobilvetta"},{field:"filters.properties",label:"filters.label.brandDealer.morelo",value:"brandDealer.morelo"},{field:"filters.properties",label:"filters.label.brandDealer.niesmannbischoff",value:"brandDealer.niesmannbischoff"},{field:"filters.properties",label:"filters.label.brandDealer.phoenix",value:"brandDealer.phoenix"},{field:"filters.properties",label:"filters.label.brandDealer.pilote",value:"brandDealer.pilote"},{field:"filters.properties",label:"filters.label.brandDealer.pla",value:"brandDealer.pla"},{field:"filters.properties",label:"filters.label.brandDealer.possl",value:"brandDealer.possl"},{field:"filters.properties",label:"filters.label.brandDealer.rapido",value:"brandDealer.rapido"},{field:"filters.properties",label:"filters.label.brandDealer.rimor",value:"brandDealer.rimor"},{field:"filters.properties",label:"filters.label.brandDealer.roller-team",value:"brandDealer.roller-team"},{field:"filters.properties",label:"filters.label.brandDealer.sun-driver",value:"brandDealer.sun-driver"},{field:"filters.properties",label:"filters.label.brandDealer.sun-l
1iving",value:"brandDealer.sun-living"},{field:"filters.properties",label:"filters.label.brandDealer.sunlight",value:"brandDealer.sunlight"},{field:"filters.properties",label:"filters.label.brandDealer.tasman",value:"brandDealer.tasman"},{field:"filters.properties",label:"filters.label.brandDealer.terracamper",value:"brandDealer.terracamper"},{field:"filters.properties",label:"filters.label.brandDealer.thor-ace",value:"brandDealer.thor-ace"},{field:"filters.properties",label:"filters.label.brandDealer.tonke",value:"brandDealer.tonke"},{field:"filters.properties",label:"filters.label.brandDealer.vantourer",value:"brandDealer.vantourer"},{field:"filters.properties",label:"filters.label.brandDealer.volkswagen",value:"brandDealer.volkswagen"},{field:"filters.properties",label:"filters.label.brandDealer.weinsberg",value:"brandDealer.weinsberg"},{field:"filters.properties",label:"filters.label.brandDealer.westfalia",value:"brandDealer.westfalia"}]}]},p={DISTANCE:"DISTANCE",RELEVANCE:"RELEVANCE",PRICE:"PRICE",RATING:"RATING",CREATED:"CREATED"},u=[{type:p.DISTANCE,label:"poi.sort.distance",value:{sortBy:"distance",sortOrder:"asc"}},{type:p.RELEVANCE,label:"poi.sort.relevance",value:{sortBy:"relevance",sortOrder:"desc"}},{type:p.PRICE,label:"poi.sort.price",value:{sortBy:"price",sortOrder:"asc"}},{type:p.RATING,label:"poi.sort.rating",value:{sortBy:"rating",sortOrder:"desc"}},{type:p.CREATED,label:"poi.sort.created",value:{sortBy:"created",sortOrder:"desc"}}],f=[p.RELEVANCE,p.PRICE,p.RATING]},28977:(e,r,l)=>{l.d(r,{o:()=>n});var t=l(27541),a=l(19274),i=l(12662);let n=()=>{var e;let r=(0,t.useParams)(),l=(0,t.useSearchParams)(),{profile:n}=(0,i.xc)(),s=null==l?void 0:l.get("lang");return{lang:(null==r?void 0:r.lang)||s||(null==n||null==(e=n.personalData)?void 0:e.language)||function(){if(!window.location)return;let e=window.location.pathname.match(/^\/([a-z]{2})(\/|$)/);return e?e[1]:void 0}()||a.Xn}}},34964:(e,r,l)=>{l.d(r,{G:()=>j,A:()=>P});var t=l(54568),a=l(7620),i=l(53602),n=l(40215),s=l(71119),o=l(15788),d=l(84336),c=l(74160),p=l(6803),u=l(12254),f=l(96130);let b=e=>{let{labelKey:r,messageKey:l,className:a}=e,{formatMessage:i}=(0,c.tz)();return(0,t.jsx)(p.Bc,{delayDuration:0,children:(0,t.jsxs)(p.m_,{children:[(0,t.jsx)(p.k$,{className:a,onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,t.jsxs)(p.Ex,{variant:"subtle",size:"xs",className:(0,f.cn)("flex items-center gap-1 px-1.5",a),children:[(0,t.jsx)("div",{className:"py-1.5",children:(0,t.jsx)(u.UI.InfoRoundIcon,{size:"xxs",color:"primaryVariant"})}),r&&(0,t.jsx)("span",{className:"mr-0.5",children:i(r)})]})}),(0,t.jsx)(p.ZI,{className:"z-10 max-w-72",children:i(l)})]})})};var m=l(57971),h=l(63933),y=l(58533),v=l(79100),g=l(28977),x=l(95996),D=l(67378),w=l(1513),k=l(29431),E=l(82273),C=l(12662),S=l(61586),A=l(84201),N=l(14900),j=function(e){return e.default="default",e.list="list",e.highlight="highlight",e.preview="preview",e}({});let O=(0,N.UK)([608,360,320,300,300]),R=e=>{let{isLazy:r,children:l}=e;return r?(0,t.jsx)(i.Ay,{once:!0,children:l}):(0,t.jsx)(t.Fragment,{children:l})},P=e=>{var r,l,i,p,u,j,P;let{location:F,type:_,isPromoted:T=!1,sizes:I}=e,{lang:L}=(0,g.o)(),{queryString:B}=(0,S.l)(),{formatMessage:z,formatNumber:M,formatCurrency:U}=(0,c.tz)(),q=F.filters.poiType===k.ds.PARKING?(0,E.U)((null!=(j=F.filters.prices)?j:[]).map(e=>({totalPrice:e.price}))):void 0,{isFavorite:G,toggleFavorite:J}=(0,x.r)(),{isPro:Q}=(0,C.zI)(),{openModal:W}=(0,v.h)(),X=(0,w.Q)({price:F.price,priceRange:F.priceRange,priceBreakdown:F.priceBreakdown,currency:"EUR"}),[Y,K]=(0,a.useState)(!1),V=F.thumbnail&&!Y?F.thumbnail:void 0,$=V?"".concat(V,"?width=517"):"/illustrations/poi-placeholder.jpeg",H=V?(0,A.So)(V,N.Lk):void 0,Z=V?(0,A.So)(V,N.Lk,"webp"):void 0,ee="preview"===_?"128px":"list"===_?"(min-width: 768px) 160px, 128px":null!=I?I:O,er=(0,a.useCallback)(e=>{e.preventDefault(),Q?J(String(F.sitecode)):W("paywall_favourites")},[G,F.sitecode,J,Q,W]),el=(null==(r=F.metaData)?void 0:r.distance)?"".concat(M((parseInt(null==(l=F.metaData)?void 0:l.distance)/1e3).toFixed(1))," km"):null;return(0,t.jsx)("div",{className:(0,f.cn)("group relative flex overflow-hidden",{"flex-col":"default"===_||"highlight"===_,"rounded-xl shadow-card md:rounded-none md:shadow-none":"default"===_||"highlight"===_,"block rounded-xl bg-white shadow-card":"preview"===_}),children:(0,t.jsx)(s.N,{href:"/".concat(L).concat(F.permalink).concat(B?"?".concat(B):""),children:(0,t.jsxs)("div",{className:(0,f.cn)({"bg-white md:bg-transparent":"default"===_,"flex flex-row items-center gap-4":"list"===_||"preview"===_,"gap-4 p-2":"preview"===_}),children:[(0,t.jsxs)("div",{className:(0,f.cn)("relative overflow-hidden rounded-none md:rounded-card",{"shrink-0 rounded-lg md:rounded-lg":"preview"===_}),children:[(0,t.jsx)(R,{isLazy:"preview"!==_,children:(0,t.jsxs)("picture",{className:"contents",children:[Z&&(0,t.jsx)("source",{type:"image/webp",srcSet:Z,sizes:ee}),(0,t.jsx)("img",{src:$,srcSet:H,sizes:ee,alt:F.title,onError:()=>K(!0),className:(0,f.cn)("object-cover transition-opacity duration-200 md:group-hover:opacity-90",{"h-64 w-full rounded-none md:rounded-card":"list"!==_,"size-32 rounded-xl md:h-32 md:w-40 md:rounded-2xl":"list"===_,"size-32 md:rounded-none":"preview"===_})})]})}),(0,t.jsx)("div",{className:(0,f.cn)("absolute right-2 top-2 z-[2] md:right-4 md:top-4",{"right-2 top-2 md:right-2 md:top-2":"preview"===_}),children:(0,t.jsx)(n.A,{isFavorite:G(String(F.sitecode)),onClick:er,size:"list"===_||"preview"===_?"xxs":"sm"})}),(null==(i=F.filters)?void 0:i.isBookable)&&(0,t.jsx)("div",{className:(0,f.cn)("absolute left-0 top-2 z-[2] mt-1.5 md:top-4","rounded-r-md bg-ui-cta-primary px-1 py-0.5 md:px-2 md:py-1","text-xs text-ui-cta-on-primary md:text-base",{"md:top-2 md:px-1 md:py-0.5 md:text-xs":"preview"===_}),children:z("poi.booking.bookCTA")})]}),(0,t.jsxs)("div",{className:(0,f.cn)("flex flex-col gap-1 px-5 pb-5 pt-4",{"md:px-0":"default"===_||"highlight"===_,"flex-1 gap-px overflow-hidden p-0":"preview"===_||"list"===_}),children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsxs)(h.D,{as:"h4",size:"sm",className:(0,f.cn)({"flex max-w-full":"preview"===_}),children:[(0,t.jsx)("span",{className:(0,f.cn)({"flex-1 truncate":"preview"===_}),children:(0,D.c)(F.title)}),F.filters.isClaimed&&(0,t.jsx)("span",{className:"ml-1 inline-block align-top",children:(0,t.jsx)(m.t,{})})]})}),F.subtitle&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[el&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.E,{color:"secondary",weight:"medium",size:"footnote",children:el}),(0,t.jsx)(y.E,{color:"secondary",size:"footnote",children:"•"})]}),(0,t.jsx)(y.E,{color:"secondary",size:"footnote",children:F.subtitle})]})]}),(0,t.jsx)("div",{className:(0,f.cn)("my-2 flex items-center justify-between gap-2 whitespace-nowrap",{"my-1":"preview"===_}
1),children:(0,t.jsx)(d.A,{rating:F.filters.rating,numberOfReviews:F.filters.numberOfReviews,isCompact:!0})}),("list"===_||"preview"===_||"default"===_)&&(0,t.jsx)(o.A,{prices:F.filters.prices,numberOfCamperSpots:F.filters.maxCamperSpots,poiType:F.filters.poiType}),(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)("div",{className:"flex items-center gap-1",children:q?"unknown"===q.state?(0,t.jsx)(y.E,{color:"secondary",size:"sm",children:z("poi.booking.parking.unknown.title")}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.E,{color:"ui-secondary",size:"sm",children:"free"===q.state||(null==(p=q.lowest)?void 0:p.totalPrice)==null?z("poi.booking.parking.free.title"):U(q.lowest.totalPrice,"EUR")}),(0,t.jsx)(y.E,{color:"secondary",size:"sm",children:z("free"===q.state?"poi.booking.parking.free.unit":"poi.booking.parking.paid.unit")})]}):(0,t.jsxs)(t.Fragment,{children:[X,(null!=(P=null==(u=F.priceBreakdown)?void 0:u.fee)?P:0)>0?(0,t.jsx)(y.E,{color:"secondary",size:"footnote",children:z("poi.booking.exFee")}):null]})}),T&&(0,t.jsx)(b,{labelKey:"poi.promoted.info.label",messageKey:"geolocation.poi.list.promoted",className:"ml-auto"})]})]})]})})})}},40215:(e,r,l)=>{l.d(r,{A:()=>s});var t=l(54568),a=l(74160),i=l(44663),n=l(12254);let s=e=>{let{isFavorite:r,size:l,onClick:s}=e,{formatMessage:o}=(0,a.tz)();return(0,t.jsxs)(i.a,{variant:r?"primary":"on-media",onClick:s,children:[r?(0,t.jsx)(n.UI.HeartFilledIcon,{color:"cc-orange",size:l}):(0,t.jsx)(n.UI.HeartIcon,{color:"on-primary",size:l}),(0,t.jsx)("span",{className:"sr-only",children:o(r?"favorites.unmark":"favorites.mark")})]})}},44663:(e,r,l)=>{l.d(r,{a:()=>t.a});var t=l(82321)},47873:(e,r,l)=>{l.d(r,{FP:()=>y,C8:()=>g,Qr:()=>x,bk:()=>D});var t=l(52362),a=l(75326),i=l(24189),n=l(46717);let s=(0,t.Lw)("configs"),[o,d,c]=s("initialize",{init:()=>({}),resolve:e=>({configs:e}),reject:e=>({error:e})}),[p,u,f]=s("update",{init:e=>({configs:e}),resolve:e=>({configs:e}),reject:e=>({error:e})}),[b,m,h]=s("updateAppOpenedCounter",{init:()=>({}),resolve:e=>({configs:e}),reject:e=>({error:e})});function y(e,r,l){let i=(0,t.vy)(e,r,l),n=(0,a.jM)(i),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,r=arguments.length>1?arguments[1]:void 0;return n(e,r)};return s.toString=i.toString,s.isImmerReducer=!0,s}let v={currentLocale:"en"};function g(e,r,l){let t=y(e,r,l),i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,r=arguments.length>1?arguments[1]:void 0;return(0,a.jM)(e,e=>{r.type===String(u)&&r.configs.locale&&(e.currentLocale=r.configs.locale);let l=r.locale||e.currentLocale;e[l]=t(e[l],r)})};return i.toString=t.toString,i.isImmerReducer=!0,i}function x(e){return(0,n.Mz)(i.A,r=>((r=r[e])&&r.currentLocale&&(r=r[r.currentLocale]),r||{}))}let D=(e,r)=>(l,t)=>t[e]||r},56544:(e,r,l)=>{l.d(r,{AJ:()=>n,Ke:()=>a,Xe:()=>o,xA:()=>i});var t=l(7620);let a=(0,t.createContext)([]),i=(0,t.createContext)(()=>{}),{Provider:n,Consumer:s}=a,{Provider:o,Consumer:d}=i},61586:(e,r,l)=>{l.d(r,{Q:()=>m,l:()=>y});var t=l(7620),a=l(23113),i=l(68975),n=l(58017),s=l(77833),o=l(94338),d=l(27541);let c="yyyy-MM-dd",p=()=>{let e=new Date,r=(0,a.A)(e,2);return{startDate:e,endDate:r}},u=e=>{if(!e)return null;let r=(0,i.A)(e,c,new Date);return(0,n.A)(r)?r:null},f=(e,r)=>{if(!e)return r;let l=parseInt(e,10);return isNaN(l)?r:l},b=e=>{if(!e)return;let r=parseFloat(e);return isNaN(r)?void 0:r},m=["name","lat","lon","zoom","type","osmId","boundingBox","startDate","endDate","adults","children","pets","filters.isBookable"],h=new Set(m);function y(){let{syncDefaults:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,d.useSearchParams)(),l=(0,d.usePathname)(),a=(0,t.useMemo)(()=>{let e,l=null==r?void 0:r.get("name");if(!l)return null;let t=b(null==r?void 0:r.get("lat")),a=b(null==r?void 0:r.get("lon")),i=b(null==r?void 0:r.get("zoom")),n=null==r?void 0:r.get("boundingBox"),s=null==r?void 0:r.get("type"),o=s&&["city","region","country","municipality"].includes(s)?s:void 0,d=null==r?void 0:r.get("osmId"),c=null!=d&&""!==d?Number(d):NaN,p=Number.isInteger(c)?c:void 0;if(n)try{let r=JSON.parse(n);e={north:r.north,west:r.west,south:r.south,east:r.east}}catch(e){}return{name:l,type:o,lat:t,lon:a,zoom:i,osmId:p,boundingBox:e}},[r]),i=(0,t.useMemo)(()=>(null==r?void 0:r.get("filters.isBookable"))==="true",[r]),n=(0,t.useMemo)(()=>{let l=u((null==r?void 0:r.get("startDate"))||void 0);return l||(e?p().startDate:void 0)},[r,e]),y=(0,t.useMemo)(()=>{let l=u((null==r?void 0:r.get("endDate"))||void 0);return l||(e?p().endDate:void 0)},[r,e]),v=(0,t.useMemo)(()=>f((null==r?void 0:r.get("adults"))||void 0,2),[r]),g=(0,t.useMemo)(()=>f((null==r?void 0:r.get("children"))||void 0,0),[r]),x=(0,t.useMemo)(()=>f((null==r?void 0:r.get("pets"))||void 0,0),[r]),D=(0,t.useCallback)(e=>{let t=new URLSearchParams(r||void 0);if(!Object.entries(e).some(e=>{let[r,l]=e;return t.get(r)!==l}))return;
1Object.entries(e).forEach(e=>{let[r,l]=e;t.set(r,l)});let a=new URLSearchParams;m.forEach(e=>{let r=t.get(e);r&&a.set(e,r)}),t.forEach((e,r)=>{h.has(r)||a.set(r,e)});let i=a.toString(),n=i?"".concat(l,"?").concat(i):l;window.history.replaceState(null,"",n)},[r,l]);(0,t.useEffect)(()=>{if(!e||!r)return;let l={};r.get("startDate")||(l.startDate=(0,s.A)(p().startDate,c)),r.get("endDate")||(l.endDate=(0,s.A)(p().endDate,c)),r.get("adults")||(l.adults="2"),r.get("children")||(l.children="0"),r.get("pets")||(l.pets="0"),Object.keys(l).length>0&&D(l)},[e,r,D]);let w=(0,t.useCallback)((e,r)=>D({startDate:(0,s.A)(e,c),endDate:(0,s.A)(r,c)}),[D]),k=(0,t.useCallback)(e=>D({adults:String(e)}),[D]),E=(0,t.useCallback)(e=>D({children:String(e)}),[D]),C=(0,t.useCallback)(e=>D({pets:String(e)}),[D]),S=(0,t.useCallback)(e=>D({startDate:(0,s.A)(e.start,c),endDate:(0,s.A)(e.end,c),adults:String(e.adults),children:String(e.children),pets:String(e.pets)}),[D]),A=(0,t.useCallback)(()=>{let e=p();D({startDate:(0,s.A)(e.startDate,c),endDate:(0,s.A)(e.endDate,c),adults:"2",children:"0",pets:"0"})},[D]),N=n&&y?Math.max(0,(0,o.A)(y,n)):0,j=(0,t.useMemo)(()=>({startDate:n?(0,s.A)(n,c):void 0,endDate:y?(0,s.A)(y,c):void 0,adults:v,children:g,pets:x}),[n,y,v,g,x]),O=(0,t.useMemo)(()=>{let e=new URLSearchParams;a&&(e.set("name",a.name),a.boundingBox?e.set("boundingBox",JSON.stringify(a.boundingBox)):(null!=a.lat&&e.set("lat",String(a.lat)),null!=a.lon&&e.set("lon",String(a.lon)),null!=a.zoom&&e.set("zoom",String(a.zoom)))),j.startDate&&e.set("startDate",j.startDate),j.endDate&&e.set("endDate",j.endDate),e.set("adults",String(j.adults)),e.set("children",String(j.children)),e.set("pets",String(j.pets)),i&&e.set("filters.isBookable","true");let l=null==r?void 0:r.get("filters.properties");return l&&e.set("filters.properties",l),e.toString()},[j,a,i,r]);return{location:a,isBookable:i,startDate:n,endDate:y,amountOfNights:N,adults:v,children:g,pets:x,setDateRange:w,setAdults:k,setChildren:E,setPets:C,setStay:S,resetToDefaults:A,query:j,queryString:O}}},71119:(e,r,l)=>{l.d(r,{N:()=>s});var t=l(54568),a=l(7620),i=l(19664),n=l.n(i);let s=(0,a.forwardRef)((e,r)=>{let{children:l,href:a,target:i,...s}=e;return(0,t.jsx)(n(),{href:a,target:i,ref:r,...s,children:l})});s.displayName="Link"}
1,71595:(e,r,l)=>{l.d(r,{G3:()=>p,hr:()=>u,il:()=>o,pG:()=>d,sx:()=>c});var t=l(7620),a=l(3961),i=l(21238),n=l(26060),s=l(56544);function o(){return(0,t.useContext)(s.xA)}function d(){return(0,t.useContext)(s.Ke)}function c(e,r){let l=d();return(0,t.useMemo)(()=>{let t=l.find(l=>l.field===e&&l.property===r);return t?t.value:void 0},[l,e,r])}function p(e,r){return e?n.vP.filter(e=>e.type!==n.Jv.DISTANCE).map(e=>({label:e.label,sortBy:e.value.sortBy,sortOrder:e.value.sortOrder})).sort((e,r)=>n.X_.indexOf(r.type)-n.X_.indexOf(e.type)):n.vP}function u(e){let{value:r,onChange:l,filter:n,toggleCallback:s,onChangePeriodCallback:o}=e,d=(0,t.useMemo)(()=>{if(!r)return;let e=JSON.parse(r);return{fromDate:(0,a.A)(e.fromDate),toDate:(0,a.A)(e.toDate)}},[r]),c=void 0!==d,p=(0,t.useCallback)(()=>{void 0!==d?l(n.field,void 0,n.type,n.property):s?s(l,n,i.hc):l(n.field,(0,i.hc)(),n.type,n.property)},[n,d]),u=(0,t.useCallback)(e=>{let t=(0,i.a8)(e);t!==r&&(o?o(l,n,t):l(n.field,t,n.type,n.property))},[l,d,r]);return{onToggle:p,onChangeFromDate:(0,t.useCallback)(e=>{if(d.toDate<e){let r=new Date(e);r.setDate(r.getDate()+1),u({toDate:r,fromDate:e});return}u({...d,fromDate:e})},[u]),onChangeToDate:(0,t.useCallback)(e=>{if(d.fromDate>e){let r=new Date(e);r.setDate(r.getDate()-1),u({fromDate:r,toDate:e});return}u({...d,toDate:e})},[u]),isChecked:c,periodValues:d}}},75405:(e,r,l)=>{l.d(r,{Kq:()=>d,ic:()=>D,dg:()=>S,m7:()=>C,LP:()=>w,Yi:()=>E,U6:()=>k,il:()=>t.il,sx:()=>t.sx,pG:()=>t.pG});var t=l(71595),a=l(54568),i=l(7620),n=l(75326),s=l(56544),o=l(21238);function d(e){let{values:r=[],onChange:l,children:t}=e,d=(0,i.useRef)(r);d.current=r;let c=(0,i.useRef)(l);c.current=l;let p=(0,i.useCallback)((e,r,l,t)=>{let a=(0,n.jM)(d.current,l=>(0,o.AA)({field:e,value:r,property:t},l));d.current=a,c.current(d.current)},[l]);return(0,a.jsx)(s.Xe,{value:p,children:(0,a.jsx)(s.AJ,{value:r,children:t})})}var c=l(2023),p=l(27841),u=l(22204),f=l(57321),b=l(93980),m=l(31396),h=l(91255),y=l(6722),v=l(26060);let g=c.A(e=>+!p.A("field","filters.properties")(e)),x=e=>u.A(f.A,()=>[],e=>e)(e),D=e=>{let r=g(e);return[...x(r[0]),...b.A(x,m.A,h.A(y.A("field")),m.A)(r[1])]},w=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=Object.entries(e).reduce((e,r)=>{let[l,t]=r;return["location","lang"].includes(l)?e:{...e,[l]:t}},{});return Object.keys(l).length?l:r.includes("?")?Object.fromEntries(new URLSearchParams(r.
1slice(r.indexOf("?"),r.length)).entries()):{}},k=(e,r)=>{let l={hasProperty:e=>e.includes("[")&&e.includes("]")&&!e.includes("-"),isArray:e=>e.includes("[")&&e.includes("]")&&e.includes("-"),isBoolean:e=>"true"===e||"false"===e,isJSON:e=>e.includes("{")&&e.includes("}"),isNumber:e=>!e.includes("-")&&!isNaN(parseFloat(e)),isFavourites:e=>"filters.favourites"===e,isBoundingBox:e=>"boundingBox"===e},t={boolean:e=>({...e,value:"true"===e.value}),array:e=>{let r=e.value.replace("[","").replace("]","").split("-"),l=Object.values(v.G$).find(e=>JSON.stringify(e)===JSON.stringify(r));return{...e,value:l?r:r.map(e=>Number(e)||0===Number(e)?Number(e):e)}},number:e=>({...e,value:parseFloat(e.value)}),favourites:e=>({...e,value:r}),boundingBox:e=>({...e,value:JSON.parse(e.value)})};return Object.entries(e).filter(e=>{let[r]=e;return["filters","boundingBox"].some(e=>r.includes(e))}).reduce((e,r)=>{let[a,i]=r;return[...e,...(l.isJSON(i)?[i]:i.split(",")).map(e=>((e,r)=>{let a=((e,r)=>{let t;return l.hasProperty(r)&&(t=r.slice(r.indexOf("[")+1,r.indexOf("]")),r=r.slice(r.indexOf("]")+1,r.length)),{field:e,property:t,value:r}})(e,r);return l.isBoundingBox(a.field)?t.boundingBox(a):l.isBoolean(a.value)?t.boolean(a):l.isArray(a.value)?t.array(a):l.isFavourites(a.field)?t.favourites(a):l.isNumber(a.value)?t.number(a):a})(a,e))]},[])},E=e=>{let r=e.reduce((e,r)=>{let l=r.value;return"object"!=typeof l||Array.isArray(l)?Array.isArray(l)?l="[".concat(l.join("-"),"]"):r.property?l="[".concat(r.property,"]").concat(l):"string"==typeof l&&l.includes("auth0")&&(l=1):l=JSON.stringify(l),e[r.field]?e[r.field]="".concat(e[r.field],",").concat(l):e[r.field]=l,e},{});return Object.keys(r).map(e=>"".concat(e,"=").concat(r[e])).join("&")},C=(e,r)=>{let l=e.map(e=>{let{field:r}=e;return r}),t=r.map(e=>{let{field:r}=e;return r});return t.length<l.length?l.filter(e=>!t.includes(e)):[]},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(e=>!"boundingBox".includes(e.field)).length}},79100:(e,r,l)=>{l.d(r,{Z:()=>o,h:()=>s});var t=l(54568),a=l(7620),i=l(27541);let n=(0,a.createContext)(void 0),s=()=>{let e=(0,a.useContext)(n);if(!e)throw Error("useModal must be used within a ModalProvider");return e},o=e=>{let{children:r}=e,[l,s]=(0,a.useState)([]),[o,d]=(0,a.useState)({}),c=(0,a.useRef)(new Set),p=(0,i.usePathname)(),u=(0,i.useSearchParams)(),f=(0,a.useRef)(u);(0,a.useEffect)(()=>{f.current=u},[u]);let b=(0,a.useCallback)(e=>{var r;c.current.add(e);let l=null==(r=f.current)?void 0:r.get("modal");l===e&&s(e=>e.includes(l)?e:[...e,l])},[]);(0,a.useEffect)(()=>{let e=null==u?void 0:u.get("modal");e&&c.current.has(e)&&s(r=>r.includes(e)?r:[...r,e])},[u]);let m=(0,a.useCallback)((e,r)=>{if(d(l=>({...l,[e]:r})),s(r=>[...r,e]),c.current.has(e)){let r=new URLSearchParams(window.location.search);r.set("modal",e),window.history.replaceState(null,"","".concat(window.location.pathname,"?").concat(r.toString()))}},[]),h=(0,a.useCallback)(e=>{if(d(r=>{let l={...r};return delete l[e],l}),s(r=>r.filter(r=>r!==e)),c.current.has(e)){let r=new URLSearchParams(window.location.search);if(r.get("modal")===e){r.delete("modal");let e=r.toString();window.history.replaceState(null,"","".concat(window.location.pathname).concat(e?"?".concat(e):""))}}},[]);(0,a.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("modal"),r=e&&c.current.has(e)?[e]:[];d({}),s(r)},[p]);let y=l.length>0;return(0,t.jsx)(n.Provider,{value:{modalStack:l,modalPayloads:o,openModal:m,closeModal:h,registerPersistedModal:b,isModalOpen:y},children:r})}},82273:(e,r,l)=>{l.d(r,{F:()=>a,U:()=>n});var t=l(29431);function a(e){var r,l;if(e.type!==t.ds.PARKING)return null;let a=null==(r=e.limits)?void 0:r.maxStayHours;return 0===a?"daytimeOnly":"number"==typeof a&&a>0||(null==(l=e.terrain)?void 0:l.includes("wildCamping"))?"allowed":"unknown"}let i=e=>{var r;return null!=(r=e.pricePerNight)?r:e.totalPrice};function n(e){let r=e.filter(e=>null!=i(e));if(0===r.length)return{state:"unknown"};let l=r.reduce((e,r)=>i(r)<i(e)?r:e);return{state:0===i(l)?"free":"paid",lowest:l}}},84336:(e,r,l)=>{l.d(r,{A:()=>
1o});var t=l(54568);l(7620);var a=l(74160),i=l(25770),n=l(39205),s=l(58533);let o=e=>{let{rating:r,numberOfReviews:l,isCompact:o=!1,showNumberOfReviews:d=!0,lightVariant:c=!1}=e,{formatMessage:p}=(0,a.tz)();return 0===l?(0,t.jsx)(s.E,{color:c?"cta-on-primary":"secondary",size:"sm",children:p("detail.reviews.empty.text")}):o?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-e-lg rounded-es-lg rounded-ss-[0.125rem] bg-ui-purpose-rating px-2 py-[0.125rem]",children:[(0,t.jsx)(i.F,{fillPercentage:100,color:"white"}),(0,t.jsx)(s.E,{weight:"bold",color:"cta-on-primary",size:"sm",children:r})]}),d&&(0,t.jsx)(s.E,{color:c?"cta-on-primary":"secondary",size:"sm",children:p("poi.details.header.reviews",{count:l})})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.G,{rating:r}),(0,t.jsx)(s.E,{weight:"bold",children:r}),d&&(0,t.jsx)(s.E,{color:c?"cta-on-primary":"secondary",size:"sm",children:p("poi.details.header.reviews",{count:l})})]})}},95996:(e,r,l)=>{l.d(r,{r:()=>p});var t=l(7620),a=l(15822),i=l(33645),n=l(40342),s=l(27455),o=l(74160),d=l(12662);let c=(e,r)=>({"Accept-Language":e,Authorization:"Bearer ".concat(r)}),p=()=>{let{locale:e}=(0,o.tz)(),{isLoggedIn:r,token:l}=(0,a.A)(),{isPro:p}=(0,d.zI)(),{mutate:u}=(0,n.iX)(),f=async(e,r)=>{try{let{data:l,error:t}=await (0,i.Oap)({headers:c(e,r)});if(t||!l)throw Error("Error fetching favorites lists");return await Promise.all(l.map(async l=>{let{data:t}=await (0,i.y_G)({headers:c(e,r),path:{listId:l.id}});return{...l,siteCodes:(null==t?void 0:t.map(e=>e.siteCode).filter(Number))||[]}}))}catch(e){throw console.error("Error fetching favorites:",e),e}},{data:b,isLoading:m,error:h}=(0,s.A)(r&&p?["favorites","fetchFavorites",r,p,e]:null,()=>f(e,l)),y=(0,t.useMemo)(()=>m||!b?[]:Array.from(new Set(b.reduce((e,r)=>[...e,...r.siteCodes],[]))),[m,b]),v=async(r,t)=>{try{if(!r||!t)throw console.error("Invalid parameters for saveFavorite:",r,t),Error("Invalid parameters");let{error:a}=await (0,i.DK9)({headers:c(e,l),body:t,path:{siteCode:r}});if(a)throw Error("Error updating favorites lists");g()}catch(e){console.error(e)}},g=async()=>{u(e=>Array.isArray(e)&&"favorites"===e[0])};return{isLoading:m,error:h,favorites:b,favoritesFlattened:y,isFavorite:e=>{if(!m&&!h&&e)return y.includes(e.toString())},saveFavorite:v,revalidateFavorites:g,toggleFavorite:e=>{var r,l;if(!m&&!h&&e)if(y.includes(e.toString())){let r=null==b||null==(l=b.find(r=>r.siteCodes.includes(e)))?void 0:l.id;r&&v(e,{toAddTo:[],toRemoveFrom:[r]})}else{let l=(null==b||null==(r=b.find(e=>"my_favorites"===e.type))?void 0:r.id)||null;l&&v(e,{toAddTo:[l],toRemoveFrom:[]})}}}}},97573:(e,r,l)=>{l.d(r,{E:()=>t.E});var t=l(58533)}}]);

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.