PageSourceSearch

https://www.atcbv.com/_next/static/chunks/174.214d7714d4533042.js

js atcbv.com collected 2026-10-09 22:05:37 UTC 9,764 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ac9cfe11-911b-4a72-9a8e-2b4b7860652b",e._sentryDebugIdIdentifier="sentry-dbid-ac9cfe11-911b-4a72-9a8e-2b4b7860652b")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[174,2555],{54936:(e,t,l)=>{l.r(t),l.d(t,{default:()=>f});var s=l(95155),r=l(12115),n=l(18955),a=l(25016),i=l(88265),c=l(4818),o=l(20063),d=l(2230),m=l(97448),u=l(70049),x=l(53550);let p=(0,r.memo)(e=>{let{price:t,className:l,viewMode:p,alternatives:f,dates:h,customDates:b,showSearchedInfo:g,showSpecialOffer:w,horizontal:j,fromLabel:v,isLoading:y,isDateVisible:N=!0,showDiscountPlaceholder:k=!1}=e,M=(0,r.useRef)(null),E=(0,n.c3)("components.Price"),_=(0,n.c3)("components.CompositionField"),P=(0,n.c3)("components.Parameters"),T=(0,n.kc)(),D=(0,o.useSearchParams)(),I=e=>{var t;return Array.from(null!=(t=null==D?void 0:D.entries())?t:[]).filter(t=>{let[l]=t;return l.startsWith(P(e))}).reduce((e,t)=>{let[l,s]=t,r=parseInt(s,10);return e+(isNaN(r)||r<0?0:r)},0)},L=I("volwassen"),R=L+I("kind")+I("baby"),{products:C=[],facilities:z=[],discounts:A=[],package_name:H}=t||{},{depositProducts:S,nonDepositProducts:F}=(0,r.useMemo)(()=>C?{depositProducts:C.filter(e=>e.deposit),nonDepositProducts:C.filter(e=>!e.deposit)}:{depositProducts:[],nonDepositProducts:[]},[C]),B=(0,r.useMemo)(()=>{if(!h||!b||h.length<2||b.length<2)return null;let e=e=>{let t=new Date(e[0]);return Math.ceil(Math.abs(new Date(e[1]).getTime()-t.getTime())/864e5)},t=e(h),l=e(b)-t;return 0!==l?l:null},[h,b]);if(!y&&!t)return null;let{isDiscount:W,priceFrom:q,priceTotal:G,discount:J,rentFrom:K}=(0,c.A)({price:t,depositProducts:S}),{formattedFromDate:O,formattedTillDate:Q,nights:U}=(0,i.po)(f,b||h,T),V=T.number(G,"currency"),X=T.number(q,"currency"),Y=T.number(J,"currency");return(0,s.jsx)("div",{className:(0,a.cn)({"lg:w-1/3 lg:flex-shrink-0 lg:items-baseline lg:before:bottom-0 lg:before:left-0 lg:before:right-[unset] lg:before:top-0 lg:before:h-[75%] lg:before:w-[2px]":"list"===p&&!j,"sm:w-full md:h-full":"grid"===p&&!j,"before:hidden":void 0===p&&!j,"ml-auto flex":j,"ml-0":j&&"grid"===p,"relative flex-col items-end px-4 py-4 text-sm text-neutral-500 before:absolute before:left-0 before:right-0 before:top-0 before:m-auto before:h-[2px] before:w-[90%] before:bg-white dark:text-[var(--theme-text-color-quaternary)] md:py-5":!j},l),children:y?(0,s.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,s.jsx)(x.default,{})}):(0,s.jsxs)("div",{ref:M,className:(0,a.cn)({"flex h-full flex-row items-center justify-between gap-x-2":!j,"lg:flex-col lg:items-baseline lg:gap-y-4":"list"===p&&!j,"flex flex-col items-center gap-y-3 sm:flex-row sm:gap-x-4":j&&"list"===p,"flex flex-col gap-y-3 sm:gap-x-4":j&&"grid"===p}),children:[N&&O&&Q&&(0,s.jsxs)("div",{className:(0,a.cn)("w-fit",{"flex flex-col":g&&!j,"":g&&"list"===p&&!j,"mt-auto sm:mb-0":v,hidden:!g&&!j,"flex flex-row gap-x-2":j}),children:[w&&(0,s.jsx)(d.g,{className:"text-xl",icon:m.l6G}),(0,s.jsxs)("p",{className:"md:!text-md !m-0 w-fit !text-sm",children:[(0,s.jsx)("span",{className:"whitespace-nowrap",children:O}),(0,s.jsx)("span",{children:" - "}),(0,s.jsx)("span",{className:"whitespace-nowrap",children:Q}),null!==B&&(0,s.jsxs)("span",{className:"ml-2 whitespace-nowrap rounded-[var(--theme-border-radius)] bg-green-500 px-2 py-1 text-xs text-white",children:[B>0?"+ ":"- ",Math.abs(B)," ",E("nachten",{count:Math.abs(B)})]})]}),(0,s.jsxs)("p",{className:(0,a.cn)({"!m-0 w-fit !text-xs":!j,hidden:j}),children:[(0,s.jsxs)("span",{className:"whitespace-nowrap",children:[U," ",E("nachten",{count:U})]}),R>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:" - "}),(0,s.jsx)("span",{className:"whitespace-nowrap",children:_("{amount} personen",{amount:R})})]})]})]}),k&&"grid"===p&&(0,s.jsxs)("div",{className:"h-full w-1",children:[(0,s.jsx)("div",{className:"text-2xl font-medium text-[var(--theme-text-color-secondary)]",children:"\xa0"}),(0,s.jsx)("div",{className:"!mb-0 !text-sm",children:"\xa0"})]}),(0,s.jsxs)("div",{className:(0,a.cn)({"ml-auto flex flex-col items-end gap-x-2":!j,"ml-auto flex flex-row items-center gap-x-2 md:ml-0":j}),children:[(0,s.jsxs)("div",{className:(0,a.cn)({"flex flex-row items-center md:items-baseline xl:flex-row":"grid"===p&&!j,"ml-auto flex flex-col gap-x-2":!j,"flex flex-row items-center gap-x-2":j}),children:[v&&(0,s.jsx)("span",{className:"mr-auto text-base",children:E("vanaf")}
1),W&&(0,s.jsx)("p",{className:(0,a.cn)("!mb-0 pt-1 !text-sm leading-none line-through",{"pt-[1px]":j}),children:X}),(0,s.jsxs)("div",{className:"flex items-center gap-x-1",children:[(0,s.jsx)("span",{className:"text-xl font-medium text-[var(--theme-text-color-secondary)] xl:text-2xl",children:V}),(0,s.jsx)(u.A,{priceTotal:V,rentFrom:K,packageName:H,products:C,facilities:z,discounts:A,depositProducts:S})]})]}),W&&!w&&(0,s.jsx)("p",{className:(0,a.cn)("!mb-0 !text-sm",{"ml-auto":!j}),children:E("Je bespaart {discount}",{discount:Y})})]})]})})});p.displayName="Price";let f=p},70049:(e,t,l)=>{l.d(t,{A:()=>m});var s=l(95155),r=l(12115),n=l(25016),a=l(18955);let i=(0,l(71847).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var c=l(47650);let o=e=>Math.max(0,e-16),d=e=>{var t,l;let{children:a,ariaLabel:d}=e,m=(0,r.useId)(),u=(0,r.useRef)(null),x=(0,r.useRef)(null),p=(0,r.useRef)(null),[f,h]=(0,r.useState)(null),[b,g]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!b)return void h(null);let e=()=>{let e=x.current,t=u.current;if(!e||!t)return;let l=t.getBoundingClientRect(),s=Math.ceil(e.getBoundingClientRect().width);if(!s)return;let r=window.matchMedia("(max-width: 767px)").matches,n=e.offsetHeight,a=document.documentElement.clientWidth,i=document.documentElement.clientHeight,c=((e,t,l)=>{let s=Math.min(t,o(l)),r=e.top-s-8,n=e.bottom+8;return Math.min(Math.max(r>=8?r:n,8),l-s-8)})(l,Math.min(n,o(i)),i),d=((e,t,l)=>{if(t+16>=l)return(l-t)/2;let s=e;return Math.min(Math.max(s,8),l-t-8)})(r?l.left:l.right-s,s,a);h(e=>(null==e?void 0:e.top)===c&&(null==e?void 0:e.left)===d?e:{top:c,left:d})};e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0);let t=x.current,l=t?new ResizeObserver(()=>{e()}):null;return t&&l&&l.observe(t),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),null==l||l.disconnect()}},[b]),(0,r.useEffect)(()=>{let e=e=>{var t,l;let s=e.target;(null==(t=p.current)?void 0:t.contains(s))||(null==(l=x.current)?void 0:l.contains(s))||g(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[]),(0,s.jsxs)("div",{ref:p,className:"relative",children:[(0,s.jsx)("button",{type:"button",className:"relative flex",onClick:()=>{g(e=>!e)},onKeyDown:e=>{"Escape"===e.key&&b&&g(!1)},"aria-label":d,"aria-expanded":b,"aria-controls":m,"aria-describedby":b?m:void 0,tabIndex:0,children:(0,s.jsx)(i,{ref:u,className:"h-5 w-5",color:"black",fontSize:"1.15rem"})}),b&&"undefined"!=typeof document&&(0,c.createPortal)((0,s.jsx)("div",{id:m,role:"tooltip","aria-live":"polite",ref:x,className:(0,n.cn)("fixed z-info-tooltip w-60 max-w-[calc(100vw-1rem)] overflow-y-auto rounded-md border border-gray-400 bg-white px-2 py-4 text-start text-sm text-black shadow-md dark:border-gray-500 dark:bg-black dark:text-white md:w-80",!f&&"invisible"),style:{top:null!=(t=null==f?void 0:f.top)?t:0,left:null!=(l=null==f?void 0:f.left)?l:0,maxHeight:"calc(100vh - ".concat(16,"px)")},children:a}),document.body)]})},m=e=>{let{priceTotal:t,rentFrom:l,packageName:i,products:c,facilities:o,discounts:m,depositProducts:u}=e,x=(0,a.kc)(),p=(0,a.c3)("components.Price"),f=c.filter(e=>!e.deposit),h=f.filter(e=>"tekst"!==e.productType),b=f.filter(e=>"tekst"===e.productType),g=(0,r.useMemo)(()=>c?h.map((e,t)=>(0,s.jsxs)("li",{className:(0,n.cn)("flex text-xs"),children:[(0,s.jsx)("span",{children:e.description}),"tekst"!==e.productType&&(0,s.jsx)("span",{className:"ml-auto",children:x.number(e.price,"currency")})]},t)):null,[h,x,c]),w=(0,r.useMemo)(()=>c?b.map((e,t)=>(0,s.jsx)("li",{className:(0,n.cn)("flex text-xs",{"mt-2 border-t border-gray-400 pt-2":0===t||t===b.length-1}),children:(0,s.jsx)("span",{children:e.description})},t)):null,[b,c]),j=(0,r.useMemo)(()=>o?o.map((e,t)=>(0,s.jsxs)("li",{className:"flex text-xs",children:[(0,s.jsx)("span",{children:e.description}),(0,s.jsx)("span",{className:"ml-auto",children:x.number(e.price,"currency")})]},t)):null,[o,x]),v=(0,r.useMemo)(()=>m?m.filter(e=>!0===e.group_show_external).map(e=>(0,s.jsxs)("li",{className:"flex text-xs",children:[e.group_description,(0,s.jsxs)("span",{className:"ml-auto",children:["- ",x.number(e.discount_price,"currency")]})]},e.group_id)):null,[m,x]),y=(0,r.useMemo)(()=>u?u.map(e=>(0,s.jsxs)("li",{className:"flex text-xs",children:[(0,s.jsx)("span",{children:e.description}),(0,s.jsx)("span",{className:"ml-auto",children:x.number(e.price,"currency")})]},e.id)):null,[u,x]),N=x.number(l,"currency");return(0,s.jsxs)(d,{ariaLabel:p("Toon prijs uitleg"),children:[(0,s.jsx)("b",{className:"text-md",children:p("Prijs uitleg")}),(0,s.jsxs)("ul",{className:"mt-1 flex flex-col gap-1",children:[(0,s.jsxs)("li",{className:"flex text-xs",children:[(0,s.jsx)("span",{className:"pr-2",children:i||p("Huurprijs")}),(0,s.jsx)("span",{className:"ml-auto",children:N})]}),g,w,j,v,(0,s.jsxs)("li",{className:"text-md flex",children:[(0,s.jsx)("b",{children:p("Totaalprijs")}),(0,s.jsx)("span",{className:"ml-auto",children:t})]}),y]})]})}}}]);

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.