PageSourceSearch

https://chartwell.com/_next/static/chunks/4304.57a5090054876277.js

js chartwell.com collected 2026-10-03 20:12:51 UTC 4,901 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4304],{34304:(e,l,t)=>{t.r(l),t.d(l,{default:()=>v});var n=t(37876),a=t(79239),r=t(44825),i=t(40488),o=t(89617),s=t(36272),u=t(56057),d=t(26242);let m=e=>{if(!e)return;if(Array.isArray(e))return e.find(e=>!!(null==e?void 0:e.fields));if("fields"in e&&e.fields)return e;let l="value"in e?e.value:void 0;return Array.isArray(l)?l.find(e=>!!(null==e?void 0:e.fields)):l},c=e=>{var l,t;let{bookATourHref:r,className:i,fields:s}=e,u=s["Promotion Title"],m=s["Long Promotion Title"],c=s.AnnouncementContent,v=(null==(t=s.PromoCTA)||null==(l=t.value)?void 0:l.trim())||"";return(0,n.jsxs)("aside",{className:(0,d.cn)("relative border border-accent bg-primary/90 text-announcement-text shadow-lg backdrop-blur-sm rounded-sm lg:px-12",i),children:[(null==u?void 0:u.value)&&(0,n.jsx)(a.s,{field:u,tag:"div",className:"absolute -top-4 left-4 md:left-6 lg:left-14 rounded-(--button-border-radius) bg-[rgb(var(--palette-terra-cotta-300))] px-3 py-1 font-button text-theme-button  text-subtitle-announcement-text lowercase first-letter:uppercase  [&_p]:m-0! "}),(0,n.jsxs)("div",{className:(0,d.cn)("flex lg:items-center lg:justify-between px-4 sm:px-6  flex-col lg:flex-row gap-6  py-4 sm:py-6 "),children:[(0,n.jsxs)("div",{className:(0,d.cn)(" lg:items-center gap-2 flex flex-col lg:flex-row   lg:gap-6 mt-6 lg:mt-0"),children:[(null==m?void 0:m.value)&&(0,n.jsx)(a.s,{field:m,tag:"div",className:"font-heading shrink-0 text-theme-h4 [&_:is(p,h2,h3,h4,)]:text-announcement-text text-announcement-text [&_p]:m-0! [&_p]:whitespace-nowrap"}),(null==c?void 0:c.value)&&(0,n.jsx)(a.s,{field:c,tag:"div",className:"font-body text-theme-body text-announcement-text [&_a]:text-announcement-text [&_a]:underline-offset-4 [&_p]:m-0!"})]}),(0,n.jsx)("div",{children:v&&(0,n.jsx)(o.ChartwellLink,{href:r,label:v,ariaLabel:v,variant:"inverse",tailwindStyles:"isBookATourBtn mt-0! justify-self-start lg:justify-self-end",size:"md"})})]})]})},v=(0,i.w)()(e=>{var l,t,a,i,d,v,f,x,p,h,b;let{fields:g}=e,{page:w}=(0,r.M5)(),y=(e=>{let l=null==e?void 0:e.trim();if(!l)return"";if(/^\d+$/.test(l))return l;try{var t;let e=new URL(l);if(!("vimeo.com"===e.hostname||e.hostname.endsWith(".vimeo.com")))return"";return null!=(t=e.pathname.split("/").reverse().find(e=>/^\d+$/.test(e)))?t:""}catch(e){return""}})(null==(t=g.VideoID)?void 0:t.value),j=y?"https://player.vimeo.com/video/".concat(y,"?autoplay=1&autopause=0&background=1&dnt=1&loop=1&muted=1"):"",k=[g.CTALinkOne,g.CTALinkTwo],N=w.locale.toLowerCase().startsWith("fr")?"./planifier-une-visite":"./book-a-tour",A=null==(f=null!=(l=m(null==w||null==(v=w.layout)||null==(d=v.sitecore)||null==(i=d.route)||null==(a=i.fields)?void 0:a["Assigned Promotions"]))?l:m(g.PromoData))?void 0:f.fields,_=(null==A||null==(x=A.StartDate)?void 0:x.value)||(null==A||null==(p=A["Start Date"])?void 0:p.value),C=(null==A||null==(h=A.EndDate)?void 0:h.value)||(null==A||null==(b=A["End Date"])?void 0:b.value),L=!!(A&&_&&C&&(0,u.h)(_,C));return(0,n.jsxs)("div",{className:"component video-hero w-full bg-foreground",children:[(0,n.jsxs)("div",{className:"heroSection relative min-h-[clamp(30rem,78svh,52rem)] w-full overflow-hidden",children:[j&&(0,n.jsx)("iframe",{src:j,title:"Vimeo background video",tabIndex:-1,"aria-hidden":"true",allow:"autoplay; fullscreen; picture-in-picture",className:"pointer-events-none absolute top-1/2 left-1/2 h-[56.25vw] min-h-full w-[177.7778vh] min-w-full -translate-x-1/2 -translate-y-1/2 border-0"}),(0,n.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 bg-foreground
1/60 pointer-events-none"}),(0,n.jsx)("span",{"data-property-logo-anchor":!0,"aria-hidden":"true",className:"pointer-events-none absolute top-[44%] left-1/2 hidden size-px -translate-x-1/2 -translate-y-1/2 lg:block"}),(0,n.jsx)("div",{className:"absolute inset-x-0 top-1/2 z-10 -translate-y-1/2 px-4 lg:top-[calc(44%+3rem)] lg:translate-y-0",children:(0,n.jsx)("div",{className:"mx-auto flex w-full max-w-md flex-col items-center gap-3",children:k.map((e,l)=>{var t,a;let r,i=null==e?void 0:e.value,u=(null==(r=null==e?void 0:e.value)||null==(t=r.text)?void 0:t.trim())||(null==r||null==(a=r.title)?void 0:a.trim())||"",d="string"==typeof(null==i?void 0:i.id)?i.id:void 0;return(null==i?void 0:i.href)&&u?(0,n.jsx)(o.ChartwellLink,{href:i.href,label:u,target:i.target,ariaLabel:i.title||u,linkId:d,variant:(0,s.o)(i.class,"inverse"),tailwindStyles:"!mt-0 min-w-56 justify-center bg-foreground/15 backdrop-blur-[2px]",size:"md"},d||"".concat(i.href,"-").concat(l)):null})})}),L&&A&&(0,n.jsx)("div",{className:"absolute inset-x-0 bottom-6 z-20 hidden lg:block",children:(0,n.jsx)("div",{className:"mx-auto w-full max-w-1800px px-3 md:px-5 lg:px-6",children:(0,n.jsx)(c,{bookATourHref:N,fields:A,className:"w-full"})})})]}),L&&A&&(0,n.jsx)(c,{bookATourHref:N,fields:A,className:"m-4 mt-8 lg:hidden"})]})})}}]);

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.