PageSourceSearch

https://www.eurocamp.dk/_next/static/chunks/3138.5617bc187aa728d7.js

js eurocamp.dk collected 2026-10-07 22:07:32 UTC 1,506 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3138],{73138:(e,a,o)=>{o.r(a),o.d(a,{default:()=>m});var t=o(95155),r=o(12115),n=o(52853),c=o(35217),l=o(97322),i=o(48478),s=o(22528),d=o(58665),u=o(18682),p=o(79620);let m=e=>{let{pageContent:a}=e,o=(0,d.a)(),[m,g]=(0,r.useState)(),w=(0,r.useRef)(void 0),[b,h]=(0,r.useState)(!0),f=(0,r.useCallback)(async(e,a)=>{var o;null==(o=w.current)||o.abort(new s.l("new accommodation request")),h(!0);let t=new URLSearchParams({page:"bookflow",accommodationCode:e,siteCode:a}),r=new AbortController;w.current=r;try{let e=await fetch("/api/accommodation?".concat(t.toString()),{signal:r.signal}),a=await e.json();a.pageContent?g(a.pageContent.body):console.warn("accommodationSearch - data not returned",a)}catch(e){console.error(e)}h(!1)},[w]);return((0,r.useEffect)(()=>{o.proposal&&f(o.proposal.stay.accommodation.code,o.proposal.parc.code)},[o]),(0,i.A)(()=>{var e;null==(e=w.current)||e.abort(new s.l("component unmounted"))}),!o||b)?(0,t.jsx)(l.A,{sx:{textAlign:"center"},children:(0,t.jsx)(c.A,{"data-testid":"circular-progress"})}):!m||m.length<1?null:(0,t.jsxs)(t.Fragment,{children:[m.map(e=>{var o;let r={...e};return"AccommodationPriceInformationPanel"===e.component&&(r={...e,pageError:a.pageError,accommodationAvailabilityError:a.accommodationAvailabilityError}),(0,t.jsx)(n.A,{sx:{mb:4},id:null==(o=e.id)?void 0:o.value,children:(0,t.jsx)(u.d,{pageContent:r})},e._uid)}),(0,t.jsx)(p.r,{isBookflow:!0,redirectOnExpire:!0})]})}}}]);

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.