1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[353],{904:(e,t,l)=>{"use strict";l.d(t,{default:()=>g});var a=l(95155),s=l(51396),r=l(2821),n=l(16405),i=l(46980),o=l.n(i),d=l(12115),c=l(58726),m=l(73697),p=l(13055),u=l(9098),x=l(95455),h=l(64216),f=l(48447);function v(e){var t,l,i,v,g,b,y;let j,w,{title:k,content:N,date:A,image:C,url:S,newTab:_,width:D="450px",mobileWidth:T="384px",className:P}=e,{context:F}=(0,s.Ti)();(null==C||null==(t=C[0])?void 0:t.fields)?(j=null==(i=C[0])||null==(l=i.fields)?void 0:l.url.value,w=null==(g=C[0])||null==(v=g.fields)?void 0:v.title.value):(j=null==C||null==(b=C[0])?void 0:b.url,w=null==C||null==(y=C[0])?void 0:y.title);let L=(0,d.useRef)(null);return(0,u.t)(L),(0,a.jsx)(a.Fragment,{children:(null==S?void 0:S.path)?(0,a.jsx)("div",{ref:L,className:(0,r.A)("group/udc relative box-border flex w-[100%] flex-col gap-6 rounded-2xl border border-primary-cocoa border-opacity-20 bg-secondary-white p-4 pb-6 no-underline lg-mobile:w-[".concat(T,"] lg-mobile:max-w-[").concat(T,"] lg-desktop:w-[").concat(D,"] lg-desktop:max-w-[").concat(D,"]"),P),children:(0,a.jsxs)(m.A,{href:null==S?void 0:S.path,target:(_?"_blank":void 0)?"_blank":void 0,ariaLabel:"Read More about ".concat(k),onClick:()=>{let e=(0,x.N_)(null==S?void 0:S.path,k);null==F||F.update({events:[{event:e}]})},rel:"nofollow",children:[C&&j&&(0,a.jsx)("div",{className:"box-border h-[181px] w-full max-w-[100%] overflow-hidden",children:(0,a.jsx)(c.A,{src:j,alt:(0,f.Vo)(null!=w?w:""),containerClasses:"rounded-2xl w-full",sizes:"25.375rem"})}),(0,a.jsxs)("div",{className:"gap-4 text-primary-cocoa",children:[k&&(0,a.jsx)("h4",{className:"text mb-0 mt-6 font-filson-pro text-h4-m desktop:text-h4",children:(0,n.Ay)(o().sanitize(k,{ALLOWED_TAGS:p.ls,ADD_ATTR:["target"]}))}),A&&(0,a.jsx)("p",{className:"mt-2 font-filson-pro text-p-s",children:(0,n.Ay)(o().sanitize(A,{ALLOWED_TAGS:p.ls,ADD_ATTR:["target"]}))}),(0,a.jsxs)("div",{className:"mt-3 gap-6 pr-10",children:[N&&(0,a.jsx)("div",{children:(0,n.Ay)(o().sanitize(N,{ALLOWED_TAGS:p.ls,ADD_ATTR:["target"]}))}),(null==S?void 0:S.path)&&(0,a.jsx)(h.f,{})]})]})]})}):null})}function g(e){let{blogFeedData:t}=e;return(0,a.jsx)(a.Fragment,{children:t&&(0,a.jsx)("div",{className:"mx-auto flex max-w-[1600px] flex-wrap justify-center gap-8 px-4",children:t.map(e=>(0,a.jsx)(v,{title:null==e?void 0:e.title,date:e.date||"",content:e.content||"",url:{path:e.link||""},image:[{url:e.image_url||"",title:e.title}]},e.title))})})}},3941:(e,t,l)=>{"use strict";l.d(t,{default:()=>g});var a=l(95155),s=l(11597),r=l(13948),n=l(20063),i=l(12115),o=l(90604),d=l.n(o),c=l(89030),m=l(73074),p=l(55899),u=l(56780);let x="",h="",f=new Date,v=new Date(new Date().getFullYear(),11,31);function g(e){let{defaultHeadline:t,defaultSubheadline:l,packages:o,feed:g}=e,[b,y]=(0,i.useState)({nights:1,rooms:1,r1adult:1,r1youth:0,r1child:0,r1infant:0,r2adult:1,r2youth:0,r2child:0,r2infant:0,r3adult:1,r3youth:0,r3child:0,r3infant:0,r4adult:1,r4youth:0,r4child:0,r4infant:0});(0,i.useEffect)(()=>{k()},[b.nights]);let j=e=>{(4!==b[e]||"rooms"!=e)&&(21!==b[e]||"nights"!=e)&&(!(b[e]>4)||"r1adult"!=e&&"r2adult"!=e&&"r3adult"!=e&&"r4adult"!=e)&&(b[e]>3&&("r1youth"==e||"r2youth"==e||"r3youth"==e||"r4youth"==e||"r1child"==e||"r2child"==e||"r3child"==e||"r4child"==e||"r1infant"==e||"r2infant"==e||"r3infant"==e||"r4infant"==e)||y(t=>({...t,[e]:b[e]+1})))},w=e=>{if(1!==b[e]||"nights"!=e&&"rooms"!=e&&"r1adult"!=e&&"r2adult"!=e&&"r3adult"!=e&&"r4adult"!=e)0!==b[e]&&y(t=>({...t,[e]:b[e]-1}))},k=()=>{let e=document.getElementById("date-length");if(e){let t=1===b.nights?"Night":"Nights";e.textContent=C.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})+" (".concat(b.nights," ").concat(t,")")}let t=document.querySelector('input[name="nights"]');t&&(t.value=b.nights.toString())},N=e=>{let{roomNumber:t}=e;return(0,a.jsxs)("div",{className:"form-row room-row mt-6 grid grid-cols-4 gap-4 rounded-xl bg-secondary-white p-6 text-primary-cocoa",children:[(0,a.jsx)("div",{className:"grid-element col-span-2 desktop:col-span-1",children:(0,a.jsx)("div",{className:"form-element",children:(0,a.jsxs)("div",{className:"plusminus",children:[(0,a.jsx)("label",{htmlFor:"r".concat(t,"adult"),children:"Adults 18+"}),(0,a.jsxs)("button",{type:"button",className:"minus",onClick:()=>w("r".concat(t,"adult")),"aria-label":"Remove an adult",children:[(0,a.jsx)(u.default,{width:"15",height:"15"}),(0,a.jsx)("div",{className:"screen-reader-only",children:"Remove an adult"})]}),(0,a.jsx)("input",{type:"text",id:"r".concat(t,"adult"),name:"r".concat(t,"adult"),defaultValue:b["r".concat(t,"adult")],"data-default":"1","data-min":"0","data-max":"5",className:"form-input"}),(0,a.jsxs)("button",{type:"button",className:"plus",onClick:()=>j("r".concat(t,"adult")),"aria-label":"Add an adult",children:[(0,a.jsx)(m.default,{width:"15",height:"15"}),(0,a.jsx)("div",{className:"screen-reader-only",children:"Add an adult"})]})]})})}),(0,a.jsx)("div",{className:"grid-element col-span-2 desktop:col-span-1",children:(0,a.jsx)("div",{className:"form-element",children:(0,a.jsxs)("div",{className:"plusminus",children:[(0,a.jsx)("label",{htmlFor:"r".concat(t,"youth"),children:"Youth 9-17"}),(0,a.jsxs)("button",{type:"button",className:"minus",onClick:()=>w("r".concat(t,"youth")),"aria-label":"Remove a youth",children:[(0,a.jsx)(u.default,{width:"15",height:"15"}),(0,a.jsx)("div",{className:"screen-reader-only",children:"Remove a youth"})]}),(0,a.jsx)("input",{type:"text",id:"r".concat(t,"youth"),name:"r".concat(t,"youth"),defaultValue:b["r".concat(t,"youth")],"data-default":"0","data-min":"0","data-max":"4",className:"form-input"}),(0,a.jsxs)("button",{type:"button",className:"plus",onClick:()=>j("r".concat(t,"youth")),"aria-label":"Add a youth",children:[(0,a.jsx)(m.default,{width:"15",height:"15"}),(0,a.jsx)("div",{className:"screen-reader-only",children:"Add a youth"})]})]})})}),(0,a.jsx)("div",{className:"grid-element col-span-2 desktop:col-span-1",children:(0,a.jsx)("div",{className:"form-element",children:(0,a.jsxs)("div",{className:"plusminus",children:[(0,a.jsx)("label",{htmlFor:"r".concat(t,"child"),children:"Child 3-8"}),(0,a.jsxs)("button",{type:"button",className:"minus",onClick:()=>w("r".concat(t,"child")),"aria-label":"Remove a child",children:[(0,a.jsx)(u.default,{width:"15",height:"15"}),(0,a.jsx)("div",{className:"screen-reader-only",children:"Remove a child"})]}),(0,a.jsx)("input",{type:"text",id:"r".concat(t,"child"),name:"r".concat(t,"child"),defaultValue:b["r".concat(t,"child")],"data-default":"0","data-min":"0","data-max":"4",className:"form-input"}),(0,a.jsxs)("button",{type:"button",className:"plus",onClick:()=>j("r".concat(t,"child")),"aria-label":"Add a child",children:[(0,a.jsx)(m.default,{width:"15",height:"15"}),(0,a.jsx)("div",{className:"screen-reader-only",children:"Add a child"})]})]})})}),(0,a.jsx)("div",{className:"grid-element col-span-2 desktop:col-span-1",children:(0,a.jsx)("div",{className:"form-element",children:(0,a.jsxs)("div",{className:"plusminus",children:[(0,a.jsx)("label",{htmlFor:"r".concat(t,"infant"),children:"Infant 0-2"}),(0,a.jsxs)("button",{type:"button",className:"minus",onClick:()=>w("r".concat(t,"infant")),"aria-label":"Remove an infant",children:[(0,a.jsx)(u.default,{width:"15",height:"15"}),(0,a.jsx)("div",{className:"screen-reader-only",children:"Remove an infant"})]}),(0,a.jsx)("input",{type:"text",id:"r".concat(t,"infant"),name:"r".concat(t,"infant"),defaultValue:b["r".concat(t,"infant")],"data-default":"0","data-min":"0",className:"form-input"}),(0,a.jsxs)("button",{type:"button",className:"plus",onClick:()=>j("r".concat(t,"infant")),"aria-label":"Add an infant",children:[(0,a.jsx)(m.default,{width:"15",height:"15"}),(0,a.jsx)("div",{className:"screen-reader-only",children:"Add an infant"})]})]})})})]})},A=(0,s.fKV)(o),[C,S]=(0,i.useState)(new Date);(0,i.useEffect)(()=>{var e;_(),k();let t=(0,r.GP)(C,"yyyy-MM-dd");
1null==(e=document.getElementById("check-in"))||e.setAttribute("value",t)},[C]);let _=()=>{var e,t;let l=(0,r.GP)(C,"yyyy-MM-dd");document.querySelectorAll(".selected").length&&(null==(t=document.querySelector(".selected"))||t.classList.remove("selected")),null==(e=document.querySelector('[data-date="'+l+'"]'))||e.classList.add("selected")},D=(0,i.useRef)(null),T=(0,i.useRef)(null),P=(0,n.useSearchParams)();(0,i.useEffect)(()=>{let e=document.querySelector('select[name="propertyid"]');if(e&&(e.value=""),x=(null==P?void 0:P.get("package-id"))||"",null==P?void 0:P.get("package-id")){var a,s;null==(a=F.current)||a.scrollIntoView({behavior:"smooth",block:"center"});let e=new Event("click",{bubbles:!0});null==(s=document.querySelector(".packages-datepicker .react-datepicker__day--selected"))||s.dispatchEvent(e);let r=(null!=A?A:[]).find(e=>(null==e?void 0:e.packageId)===x);D.current&&(D.current.textContent=(null==r?void 0:r.headline)||t),T.current&&(T.current.textContent=(null==r?void 0:r.subheadline)||l);let n=document.querySelector('input[name="package_name"]');n&&(n.value=x)}else(null==P?void 0:P.get("package-id"))||document.body.scrollTo(0,0);if(h=(null==P?void 0:P.get("nights"))||"",null==P?void 0:P.get("nights")){let e=document.querySelector('input[name="nights"]');e&&(e.value=h,b.nights=parseInt(h,10))}},[P]),(0,i.useEffect)(()=>{let e=document.querySelector('select[name="propertyid"]');if(e){let t=()=>{let e=document.querySelector('input[name="package_name"]'),t=document.querySelector('select[name="propertyid"]');e&&e.value&&t&&"1"===t.value?e.value="L"+x:e&&e.value&&t&&"2"===t.value?e.value="H"+x:e&&e.value&&t&&"4"===t.value?e.value="W"+x:e.value=x};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}},[]);let F=(0,i.useRef)(null),L=(0,i.useRef)(null),[E,I]=(0,i.useState)(!0),z=null==g?void 0:g[x];return(0,a.jsx)("section",{ref:F,children:(0,a.jsxs)("div",{className:"overflow-hidden border-primary-cocoa-2 bg-primary-cocoa-1 text-primary-cocoa desktop:m-16 desktop:rounded-xl desktop:border",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 border-b border-primary-cocoa-2 bg-secondary-white p-4",children:[(0,a.jsx)("span",{className:"inline-block rounded-lg bg-primary-happiness-0 p-2.5",children:(0,a.jsx)(p.default,{width:"32",height:"32",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{ref:D,className:"text-p-l font-bold",children:t}),(0,a.jsx)("p",{ref:T,className:"my-0 text-p-s",children:l})]})]}),(0,a.jsxs)("div",{className:"default-grid-row px-8 py-4 text-center desktop:p-8",children:[(0,a.jsx)("div",{className:"col-span-full desktop:col-span-6",children:(0,a.jsxs)("div",{className:"packages-datepicker inline-block overflow-hidden rounded-lg bg-secondary-white text-primary-cocoa",children:[(0,a.jsx)(d(),{selected:C,onChange:e=>{e&&S(e)},formatWeekDay:e=>e.substr(0,1),calendarClassName:"inline-datepicker inline-flex w-full font-filson-pro font-medium",inline:!0,minDate:f,maxDate:v,renderDayContents:(e,t)=>{var l,s,n,i,o,d;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"dp-day",children:e}),z&&(0,a.jsxs)("div",{children:[(null==(s=z["Hotel Hershey"])||null==(l=s.dates)?void 0:l.includes((0,r.GP)(t,"yyyy-MM-dd")))&&(0,a.jsx)("span",{className:"hotel"}),(null==(i=z["Hershey Lodge"])||null==(n=i.dates)?void 0:n.includes((0,r.GP)(t,"yyyy-MM-dd")))&&(0,a.jsx)("span",{className:"lodge"}),(null==(d=z["Hershey Inn & Suites"])||null==(o=d.dates)?void 0:o.includes((0,r.GP)(t,"yyyy-MM-dd")))&&(0,a.jsx)("span",{className:"suites"})]})]})}}),(0,a.jsxs)("div",{className:"box-border p-8 text-left",children:[(0,a.jsxs)("p",{className:"inline text-p-xs",children:[(0,a.jsx)("span",{className:"hotel mr-2 align-baseline"}),"The Hotel Hershey"]}),(0,a.jsxs)("p",{className:"mt-0 text-p-xs desktop:ml-6 desktop:inline",children:[(0,a.jsx)("span",{className:"lodge mr-2 align-baseline"}),"Hershey Lodge"]}),(0,a.jsxs)("p",{className:"mt-0 text-p-xs desktop:ml-6 desktop:inline",children:[(0,a.jsx)("span",{className:"suites mr-2 align-baseline"}),"Hershey Inn & Suites"]}),(0,a.jsxs)("p",{className:"text-p-xs",children:["Package available on dates with corresponding resort icon.",(0,a.jsx)("br",{}),"* Availability varies per package, per date."]})]})]})}),(0,a.jsx)("div",{className:"col-span-full desktop:col-span-6",children:(0,a.jsxs)("form",{target:"_blank",id:"forms",method:"post",className:"packages-form",action:"https://misc.hersheypa.com/assets/hrs/redir/?redir=2",onSubmit:e=>{var t;(null==(t=L.current)?void 0:t.value)?(I(!0),setTimeout(()=>{var e;null==(e=F.current)||e.scrollIntoView({behavior:"smooth",block:"center"})},1e3)):(e.preventDefault(),I(!1),setTimeout(()=>{var e;null==(e=F.current)||e.scrollIntoView({behavior:"smooth",block:"center"})},1e3))},children:[(0,a.jsx)("input",{type:"hidden",id:"package",name:"package",defaultValue:"1"}),(0,a.jsx)("input",{type:"hidden",id:"package_name",name:"package_name"}),(0,a.jsx)("input",{type:"hidden",id:"base-package",name:"base-package"}),(0,a.jsx)("input",{type:"hidden",id:"check-in",name:"checkin"}),(0,a.jsx)("input",{type:"hidden",id:"redir-val",name:"redir-val",defaultValue:"2"}),(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-4",children:[(0,a.jsx)("div",{className:"grid-element col-span-4 desktop:col-span-2",children:(0,a.jsxs)("div",{className:"form-element",children:[(0,a.jsx)("label",{htmlFor:"property",children:"Select Resort"}),(0,a.jsxs)("div",{className:"select-wrap",children:[(0,a.jsxs)("select",{id:"property",name:"propertyid","aria-required":!0,ref:L,className:E?"form-input"
1:"form-input error",children:[(0,a.jsx)("option",{value:"",children:"Please select a Resort"}),(0,a.jsx)("option",{value:"1",children:"Hershey Lodge"}),(0,a.jsx)("option",{value:"2",children:"The Hotel Hershey"}),(0,a.jsx)("option",{value:"4",children:"Hershey Inn & Suites"})]}),!E&&(0,a.jsx)("small",{className:"text-p-xs font-bold text-rides-red",children:"Please select a Resort"})]})]})}),(0,a.jsx)("div",{className:"grid-element col-span-2 desktop:col-span-2",id:"number-of-nights",children:(0,a.jsx)("div",{className:"form-element",children:(0,a.jsxs)("div",{className:"plusminus",children:[(0,a.jsx)("label",{htmlFor:"nights",children:"Number of Nights"}),(0,a.jsxs)("button",{type:"button",className:"minus",onClick:()=>w("nights"),"aria-label":"Remove a night",children:[(0,a.jsx)(u.default,{width:"15",height:"15"}),(0,a.jsx)("div",{className:"screen-reader-only",children:"Remove a night"})]}),(0,a.jsx)("input",{type:"text",id:"nights",name:"nights",defaultValue:b.nights,"data-min":"1","data-max":"21",className:"form-input"}),(0,a.jsxs)("button",{type:"button",className:"plus",onClick:()=>j("nights"),"aria-label":"Add a night",children:[(0,a.jsx)(m.default,{width:"15",height:"15"}),(0,a.jsx)("div",{className:"screen-reader-only",children:"Add a night"})]})]})})})]}),(0,a.jsx)(N,{roomNumber:1}),b.rooms>=2&&(0,a.jsx)(N,{roomNumber:2}),b.rooms>=3&&(0,a.jsx)(N,{roomNumber:3}),4==b.rooms&&(0,a.jsx)(N,{roomNumber:4})]})})]}),(0,a.jsxs)("div",{className:"m-8 mt-4 items-center justify-between gap-4 rounded-xl bg-secondary-white p-4 desktop:flex",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{id:"date-length",className:"text-p-l font-bold"}),(0,a.jsx)("p",{className:"text-p-xs desktop:text-p-s",children:"Please be advised, we are currently experiencing higher than normal wait times to speak with an associate."}),(0,a.jsx)("a",{href:"tel:844-330-1813",className:"font-bold",children:"Contact: (844) 330-1813"})]}),(0,a.jsx)(c.A,{className:"mt-4 desktop:mt-0",href:"#",size:"md",variant:"Chocolate",iconPosition:"Left",egalEntryCode:!1,onClick:()=>{var e;return null==(e=document.getElementById("forms"))?void 0:e.requestSubmit()},children:"Check Room Availability"})]})]})})}},6737:(e,t,l)=>{"use strict";l.d(t,{default:()=>c});var a=l(95155),s=l(37935),r=l(2821),n=l(12115),i=l(19296),o=l(12703);let d={Three:{containerClasses:"desktop:grid-cols-2 md-desktop:grid-cols-3 w-[1920px]"},Four:{containerClasses:"desktop:grid-cols-2 lg-desktop:grid-cols-4 w-[1920px]"}};function c(e){var t,l,c,m,p,u;let{layout:x="Three",component:h,context:f,slots:v,backgroundColor:g,id:b}=e,y=(0,i.gK)(g,f),j=(0,n.useRef)(null),w=(0,o.A)(j,[null!=(u=null==(t=i.Cs[y])?void 0:t.className)?u:""]);return(0,a.jsxs)("section",{ref:j,"data-component":null==h?void 0:h.type,id:b,className:(0,r.A)("sweet-deals &>*]:bg-opacity-0 flex w-full flex-col gap-10 [&>*]:pb-0 [&>*]:pt-0 [&>.copyComponent]:bg-secondary-transparent",null==(l=i.Cs[y])?void 0:l.className,null==(c=i.Cs[y])?void 0:c.childrenClassName,w?"mt-[-2px] pb-14 pt-0 desktop:pb-24 desktop:pt-0":"py-14 desktop:py-24"),style:null==(m=i.Cs[y])?void 0:m.backgroundStyles,itemProp:"hasOfferCatalog",itemScope:!0,itemType:"https://schema.org/OfferCatalog",children:[v.top&&(0,a.jsx)(s.D,{context:f,data:h,slot:v.top}),(0,a.jsx)("div",{className:(0,r.A)("mx-auto grid grid-cols-12",v.top?"!pt-6 desktop:!pt-10":"!pt-4 desktop:!pt-8"),children:(0,a.jsx)("div",{className:(0,r.A)("relative col-span-full grid max-w-[100%] gap-8 px-4 !pb-10 desktop:col-span-12 md-desktop:px-8 xxl-desktop:px-0",null==(p=d[x])?void 0:p.containerClasses),children:(0,a.jsx)(s.D,{context:f,data:h,slot:v.deals})})})]})}},7987:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var a=l(95155),s=l(18500),r=l(45470),n=l(17707);function i(e){let{marqueeText:t,backgroundColor:l}=e,{isMatch:i}=(0,s.s)("desktop");t=t||"";let o=l?"fill-rides-".concat(l):"fill-primary-cream",d=(0,r.b)(l).svgClass;return(0,a.jsx)(a.Fragment,{children:t&&(0,a.jsxs)("div",{className:"relative block overflow-hidden font-filson-pro text-label-s font-bold",children:[i?(0,a.jsxs)("svg",{className:"absolute z-10 w-[200%] translate-x-[-25%]",viewBox:"0 0 500 100",preserveAspectRatio:"none",children:[(0,a.jsx)("path",{id:"curve",fill:"transparent",d:"M0,130c0,0,120-100,250-100s250,100,250,100H0z"}),(0,a.jsx)("text",{className:"".concat(d),children:(0,a.jsxs)("textPath",{xlinkHref:"#curve",children:[(0,a.jsx)("animate",{attributeName:"startOffset",from:"-5%",to:"40%",dur:"7s",repeatCount:"indef
1inite"}),t]})})]}):(0,a.jsx)(n.A,{speed:50,autoFill:!0,className:"!absolute bottom-[30px] z-10 overflow-hidden",children:(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)("p",{className:"px-6 font-filson-pro text-display-medium-m text-secondary-white tablet:text-display-medium",children:t})})}),i?(0,a.jsx)("svg",{className:"w-[200%] translate-x-[-25%]",viewBox:"0 0 500 60",preserveAspectRatio:"none",children:(0,a.jsx)("path",{className:"".concat(o),d:"M0,100C0,100,105,0,250,0s250,100,250,100H0z"})}):(0,a.jsx)("svg",{className:"w-[200%] translate-x-[-25%]",viewBox:"0 0 500 100",preserveAspectRatio:"none",children:(0,a.jsx)("path",{className:"".concat(o),d:"M0,100C0,100,105,0,250,0s250,100,250,100H0z"})})]})})}},9947:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var a=l(95155),s=l(2821);l(12115);var r=l(79072),n=l(45470);function i(e){let{thrillRating:t,bgColor:l,facts:i}=e,o=i||[],d=l?"bg-rides-".concat(l):"bg-primary-cocoa",c=(0,n.b)(l).textClass,m=(0,n.b)(l).svgClass,p={"Max Speed":{icon:"Speed"},"Ride Height":{icon:"Height"},"Ride Length":{icon:"Length"},"Ride Time":{icon:"Time"},"Thrill Rating":{icon:"Temperature"}};return t&&(o=[...o,{fact:"Thrill Rating",value:t}]),(0,a.jsx)("div",{className:(0,s.A)("group mx-auto flex flex-wrap justify-center rounded-bl-[8px] rounded-br-[8px] lg-desktop:w-fit",d),children:Object.entries(o).map(e=>{var t,l;let[n,i]=e;return i.value&&p[i.fact]&&(0,a.jsxs)("div",{className:(0,s.A)("flex w-1/2 items-center justify-center border-b-[1.5px] px-2 pb-4 pt-3 font-normal last-of-type:!border-b-0 last-of-type:!border-r-0","desktop:w-[20%] desktop:border-b-0 desktop:border-r-[1.5px] desktop:px-4 md-desktop:px-6","lg-desktop:w-auto lg-desktop:px-9 xl-desktop:min-w-[302px] [&:nth-child(2n+1)]:border-r-[1.5px]",c),children:[(0,a.jsx)("span",{className:"mr-3 w-[20px] desktop:w-[28px]",children:(0,a.jsx)(r.A,{icon:null!=(l=null==(t=p[i.fact])?void 0:t.icon)?l:"",width:"28",height:"28",btnClassName:(0,s.A)("max-w-full",m)})}),(0,a.jsxs)("div",{className:(0,s.A)(c),children:[(0,a.jsx)("span",{className:"block font-proxima-nova font-normal",children:i.fact}),(0,a.jsx)("span",{className:"p-xl block font-proxima-nova text-p-l font-normal",children:i.value})]})]},n)})})}},13317:(e,t,l)=>{"use strict";l.d(t,{default:()=>g});var a=l(95155),s=l(11597),r=l(37935),n=l(2821),i=l(15239),o=l(12115),d=l(47411),c=l(19296),m=l(12703),p=l(79072),u=l(18500),x=l(48447),h=l(82589),f=l(36334),v=l(11282);function g(e){var t,l,g;let{heroType:b,images:y,component:j,context:w,slots:k,link:N,icon:A,videoSettings:C,uniformVideo:S,backgroundColor:_}=e,{isMatch:D}=(0,u.s)("tablet"),{isMatch:T}=(0,u.s)("desktop"),P=(0,c.gK)(_,w),F=(0,s.fKV)(C,{toSingle:!0}),L=(0,o.useRef)(null),E=(0,m.A)(L,[null!=(g=null==(t=c.Cs[P])?void 0:t.className)?g:""]),I=T?0:D?1:2,z=e=>{var t,l,a,s;let r=null==e?void 0:e.generated,n=(null==r?void 0:r[I])?I:0;return(null!=(a=null==r||null==(t=r[0])?void 0:t.url)?a:"")+(null!=(s=null==r||null==(l=r[n])?void 0:l.file_name)?s:"")},M=z(null==y?void 0:y[0]);return(0,a.jsx)("section",{id:j._id,ref:L,"data-component":j.type,className:(0,n.A)(null==(l=c.Cs[P])?void 0:l.className,j.type,E?"mt-[-2px] pb-24 pt-0 desktop:pt-0":"py-24"),children:(0,a.jsx)("div",{className:"default-grid-row mx-auto max-w-[1920px] items-center",children:(0,a.jsx)("div",{className:"relative col-span-full flex justify-center rounded-3xl",children:(0,a.jsxs)("div",{className:"h-full w-full overflow-hidden",children:[(0,a.jsxs)("div",{className:(0,n.A)("photo-container w-full relative bottom-0 left-0 right-0 top-0 z-[10] overflow-hidden md-desktop:rounded-3xl"),children:[(()=>{var e,t,l,s,r,c;if("video"===b)return Array.isArray(S)&&S.length>0?(0,a.jsx)(v.A,{uniformVideo:S,bgImage:y,context:w}):(null==F?void 0:F.videoId)?(0,a.jsx)(f.A,{videoId:null==F?void 0:F.videoId,videoTitle:null==F?void 0:F.videoTitle,bgImage:y,videoWidth:null==F?void 0:F.videoWidth,videoHeight:null==F?void 0:F.videoHeight,autoplay:null==F?void 0:F.autoplay,videoSettings:C}):(null==y?void 0:y[0])&&(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(i.default,{src:M,alt:(0,x.Vo)(null==y||null==(e=y[0])?void 0:e.alt_tag),width:1920,height:600,style:{objectFit:"cover"},itemProp:"image",sizes:"(max-width: 767px) 30rem, (max-width: 1024px) 47.5rem, (max-width: 1440px) 90rem, 120rem"}),(0,a.jsx)("meta",{itemProp:"name",content:(0,x.Vo)(null==y||null==(t=y[0])?void 0:t.alt_tag)})]});if("link"===b)return(null==N?void 0:N.path)&&(null==y?void 0:y[0])?(0,a.jsxs)(d.A,{href:null==N?void 0:N.path,className:(0,n.A)("block h-full min-h-[250px] w-full tablet:min-h-[470px] desktop:min-h-[500px]"),children:[(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(i.default,{className:"absolute",src:M,alt:(0,x.Vo)(null==y||null==(l=y[0])?void 0:l.alt_tag),fill:!0,style:{objectFit:"cover"},itemProp:"image",sizes:"(max-width: 767px) 30rem, (max-width: 1024px) 47.5rem, (max-width: 1440px) 90rem, 120rem"}),(0,a.jsx)("meta",{itemProp:"name",content:(0,x.Vo)(null==y||null==(s=y[0])?void 0:s.alt_tag)})]}
1),(0,a.jsx)("div",{className:"bottom absolute bottom-[16px] right-[16px] z-20 flex justify-between md-desktop:bottom-[32px] md-desktop:right-[32px]",children:(0,a.jsx)("div",{className:"group flex !h-[50px] !min-h-[50px] w-[50px] items-center justify-center !rounded-full !border-[3px] border-secondary-white bg-primary-cocoa-3 !px-2 !py-1 transition ease-in-out hover:bg-primary-cocoa hover:transition-all desktop:!h-[60px] desktop:!min-h-[60px] desktop:w-[60px] desktop:!border-[6px]",children:(0,a.jsx)(p.A,{icon:A,width:"28",height:"28",btnClassName:(0,n.A)("fill-secondary-white transition ease-in-out hover:transition-all z-10")})})})]}):(null==y?void 0:y[0])&&(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(i.default,{className:"absolute",src:M,alt:(0,x.Vo)(null==y||null==(r=y[0])?void 0:r.alt_tag),fill:!0,style:{objectFit:"cover"},itemProp:"image",sizes:"(max-width: 767px) 30rem, (max-width: 1024px) 47.5rem, (max-width: 1440px) 90rem, 120rem"}),(0,a.jsx)("meta",{itemProp:"name",content:(0,x.Vo)(null==y||null==(c=y[0])?void 0:c.alt_tag)})]});if("images"===b&&y&&y.length>0){let e=y.length>1,t=e=>null==e?void 0:e.alt_tag;return(0,a.jsx)(a.Fragment,{children:e?(0,a.jsx)(h.A,{variableWidth:!1,mobileFade:!0,tabletFade:!0,mediumDesktopFade:!0,autoplay:!0,slidesToShow:1,dotsClass:(0,n.A)("absolute !bottom-[50px] desktop:!bottom-[30px] left-0 right-0 flex justify-center white text-secondary-white"),children:Array.isArray(y)&&y.map((e,l)=>(0,a.jsx)(o.Fragment,{children:(0,a.jsxs)("div",{className:"relative h-full min-h-[250px] w-full tablet:min-h-[450px] desktop:min-h-[650px]",itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(i.default,{src:z(e),alt:(0,x.Vo)(t(e)),fill:!0,style:{objectFit:"cover"},itemProp:"image",sizes:"(max-width: 767px) 30rem, (max-width: 1024px) 47.5rem, (max-width: 1440px) 90rem, 120rem"}),(0,a.jsx)("meta",{itemProp:"name",content:(0,x.Vo)(t(e))})]})},l))}):y[0]&&(0,a.jsxs)("div",{className:"relative min-h-[250px] tablet:min-h-[450px] desktop:min-h-[650px]",itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(i.default,{className:"absolute",src:z(y[0]),alt:(0,x.Vo)(t(y[0])),fill:!0,style:{objectFit:"cover"},itemProp:"image",sizes:"(max-width: 767px) 30rem, (max-width: 1024px) 47.5rem, (max-width: 1440px) 90rem, 120rem"}),(0,a.jsx)("meta",{itemProp:"name",content:t(y[0])})]})})}return(0,a.jsx)("h4",{style:{color:"rgb(255 0 0 / 50%)"},children:"Select a hero type to display image(s) or a video."})})(),(0,a.jsx)(r.D,{context:w,data:j,slot:k.topComponent,children:e=>(0,a.jsx)(o.Fragment,{children:(0,a.jsx)("div",{className:(0,n.A)("absolute left-1/2 top-6 z-10 -translate-x-1/2 transform tablet:bottom-6 tablet:left-6 tablet:top-auto tablet:translate-x-1"),children:e.child})},e.key)})]}),(0,a.jsx)(r.D,{context:w,data:j,slot:k.components}),(0,a.jsx)(r.D,{context:w,data:j,slot:k.bottomComponent,children:e=>(0,a.jsx)(o.Fragment,{children:(0,a.jsx)("div",{className:(0,n.A)("pb-1 pt-2"),children:e.child})},e.key)})]})})})})}},13814:(e,t,l)=>{"use strict";l.d(t,{default:()=>m});var a=l(95155),s=l(11597),r=l(2821),n=l(20063),i=l(12115),o=l(28994),d=l(47411);let c={Default:{containerClasses:"bg-primary-cream"},Transparent:{containerClasses:"bg-secondary-transparent"},White:{containerClasses:"bg-secondary-white"}};function m(e){var t;let{homeUrl:l,separator:m,variant:p="Transparent",capitalizeLinks:u,component:x}=e,h=(0,n.usePathname)(),f=h?h.split("/").filter(e=>e):[],v=(0,s.fKV)(l,{toSingle:!0}),g=(0,o.z)(v);return(0,a.jsx)("section",{"data-component":null==x?void 0:x.type,className:(0,r.$)("increaseFirstChild mx-auto items-center pb-7 pt-7 text-center last:pb-0 tablet:text-left",null==(t=c[p])?void 0:t.containerClasses,null==x?void 0:x.type),children:(0,a.jsx)("div",{className:"default-grid-row mx-auto max-w-[2280px] px-0 text-center tablet:px-8 tablet:text-left",children:(0,a.jsxs)("ul",{className:(0,r.$)("col-span-full flex flex-row flex-wrap items-center justify-center gap-x-1 px-0 text-p-s tablet:justify-start tablet:whitespace-nowrap"),itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[(0,a.jsxs)("li",{className:(0,r.$)("bg-none p-0 font-proxima-nova text-p-xs"),itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:[(0,a.jsx)(d.A,{href:g,className:"no-underline hover:underline",itemProp:"item",children:(0,a.jsx)("span",{itemProp:"name",children:null==v?void 0:v.title})}),(0,a.jsx)("meta",{itemProp:"position",content:"1"}),f.length>0&&(0,a.jsx)("span",{className:"ml-1 inline-block",children:m})]}),f.map((e,t)=>{var l;let s=e.replace(/-/g," "),n="/".concat(f.slice(0,t+1).join("/")),o=h===n,x=u?s.charAt(0).toUpperCase()+s.slice(1):s;return(0,a.jsx)(i.Fragment,{children:(0,a.jsxs)("li",{className:(0,r.$)("bg-none p-0 pl-0 font-proxima-nova text-p-xs",o&&"pointer-events-none font-semibold",o&&(null==(l=c[p])?void 0:l.activeClasses)),itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:[(0,a.jsx)(d.A,{href:n,className:"capitalize no-underline hover:underline",itemProp:"item",children:(0,a.jsx)("span",{itemProp:"name",children:x})}),(0,a.jsx)("meta",{itemProp:"position",content:(t+2).toString()}),f.length!==t+1&&(0,a.jsx)("span",{className:"ml-1 inline-block",children:m})]})},t)})]})})})}},16345:(e,t,l)=>{"use strict";l.d(t,{H:()=>r});var a=l(11597);function s(e){if(e){if("string"==typeof e)return e;if(Array.isArray(e))return s(e[0]);if("object"==typeof e&&"icons"in e){let t=e.icons;return"string"==typeof t?t:void 0}}}function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=s(e);if(l)return{icons:l};let r=t;if(e&&"object"==typeof e)try{let l=(0,a.fKV)(e,{toSingle:!0});r=s(l)||t}catch(e){r=t}return{icons:r}}},17071:(e,t,l)=>{"use strict";l.d(t,{default:()=>o});
1var a=l(95155),s=l(2821),r=l(13948);l(12115);var n=l(16345),i=l(79072);function o(e){var t,l,o;let{newIcon:d,info:c,additionalInfo:m,title:p,component:u,feed:x,location:h}=e,f=(0,r.GP)(new Date,"yyyy-MM-dd"),v=(0,n.H)(d,"AppIcon"),g=null==v?void 0:v.icons,b=parseInt(h),y=void 0!==b&&x&&h,j=void 0!==b?null==x||null==(o=x[b])||null==(l=o.hours_list)||null==(t=l[f])?void 0:t.hours:void 0,w="relative before:inline-block before:h-[5px] before:w-[5px] before:rounded-full before:bg-primary-zoo before:align-middle before:content-[''] before:mr-[7px]";return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:(0,s.A)("mx-auto mb-5 mt-10 w-fit max-w-[90%] rounded-lg last:mb-0 desktop:max-w-full",null==u?void 0:u.type),children:(0,a.jsxs)("div",{className:(0,s.A)("flex flex-wrap items-center justify-center space-x-2 rounded-[8px] bg-secondary-white px-6 py-3"),children:[g&&(0,a.jsx)("span",{className:"icon-container flex items-center",children:(0,a.jsx)(i.A,{icon:g,width:"32",height:"32"})}),p&&(0,a.jsx)("p",{className:"mb-0 font-filson-pro font-medium text-primary-cocoa",children:p}),y&&(j?(0,a.jsx)("p",{className:"my-0 ml-4 inline-block font-proxima-nova font-normal text-primary-zoo desktop:block",children:j}):(0,a.jsx)("p",{className:"my-0 ml-4 inline-block font-proxima-nova font-normal text-rides-red desktop:block",children:"Closed"})),c&&(0,a.jsx)("p",{className:(0,s.A)("info m-0 text-primary-zoo",y&&w),children:c}),m&&(0,a.jsx)("p",{className:(0,s.A)("info m-0 text-primary-zoo",w),children:m})]})})})}},17842:(e,t,l)=>{"use strict";l.d(t,{default:()=>j});var a=l(95155),s=l(11597),r=l(51396),n=l(2821),i=l(16405),o=l(46980),d=l.n(o),c=l(20063),m=l(12115),p=l(13055),u=l(82002),x=l(95455),h=l(85395),f=l(95993),v=l(31947),g=l(91100),b=l(88314),y=l(18691);function j(e){let{title:t,categorized:l=!1,buttonLink:o,questions:j,component:w}=e,{context:k}=(0,r.Ti)(),[N,A]=(0,m.useState)(""),C=(0,s.fKV)(o,{toSingle:!0}),S=(0,s.fKV)(j),_=null==S?void 0:S.filter(e=>void 0!==e).map(e=>{var t;return{...e,sortOrder:null!=(t=e.sortOrder)?t:0}}),D=null==_?void 0:_.slice().sort((e,t)=>t.sortOrder-e.sortOrder),T=(0,c.usePathname)(),P=T?T.split("/").filter(e=>e):[],F=null==D?void 0:D.reduce((e,t)=>{let l=t.category||"Uncategorized";return"Uncategorized"!==l&&(e[l]||(e[l]=[]),e[l].push(t)),e},{}),L=null==D?void 0:D.filter(e=>!e.category||"Uncategorized"===e.category),E=null==_?void 0:_.some(e=>void 0!==e.category);return(0,a.jsx)("section",{"data-component":null==w?void 0:w.type,className:(0,n.A)("mx-auto mb-24 mt-24 w-full max-w-[1600px] rounded-3xl bg-secondary-white px-8 py-20 desktop:px-24 md-desktop:px-0",null==w?void 0:w.type),children:(0,a.jsxs)("div",{className:"col-span-12 mx-auto flex flex-col gap-6 rounded-3xl desktop:gap-8 desktop:px-24",children:[t&&(0,a.jsx)("h3",{className:"title font-filson-pro text-h3-m text-primary-cocoa desktop:text-h3",children:t}),l&&E?(0,a.jsxs)(a.Fragment,{children:[Object.entries(F).map((e,t)=>{let[l,s]=e;return(0,a.jsx)("div",{className:"accordion-group rounded-2xl border border-primary-cocoa border-opacity-40 bg-secondary-white text-primary-cocoa",children:(0,a.jsx)(h.A,{id:t.toString(),triggerClassName:"flex gap-8 justify-between items-center px-6 py-5",triggerContent:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:"mb-0 font-filson-pro text-h4-m",children:(0,i.Ay)(d().sanitize(l,{ALLOWED_TAGS:p.ls,ADD_ATTR:["target"]}))}),e?(0,a.jsx)(g.A,{width:"21",height:"24"}):(0,a.jsx)(v.A,{width:"21",height:"24"})]}),isExpanded:N===t.toString(),onTriggerClick:async()=>{let e=u.H.CTA_FAQs;N!==t.toString()?((0,u.R)({event:e,value:{data_title:l,data_text:s.map(e=>e.question).join(", ")}}),A(t.toString()),setTimeout(()=>{let e=document.querySelector("body"),l=document.getElementById("main-header"),a=document.getElementsByClassName("accordion-group")[t];a&&(a.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{if(e){var t;e.scrollTo({top:(null==a?void 0:a.offsetTop)?a.offsetTop-((null!=(t=null==l?void 0:l.offsetHeight)?t:0)+10):0,behavior:"smooth"})}},550))},0)):A("")},children:s.map((e,t)=>{let l=(null==e?void 0:e.link)&&(null==e?void 0:e.link.map(e=>e));return(0,a.jsxs)("div",{children:[e.question&&(0,a.jsx)("h4",{className:"mb-0 px-6 font-proxima-nova text-p-m !font-bold desktop:text-p-l",children:(0,i.Ay)(d().sanitize(e.question,{ALLOWED_TAGS:p.ls,ADD_ATTR:["target"]}))}),(0,a.jsx)(y.A,{richTextEditor:null==e?void 0:e.richTextEditor,answer:null==e?void 0:e.answer,optionalAnswer:null==e?void 0:e.optionalAnswer,links:l})]},t)})})},t)}),(null==L?void 0:L.length)>0&&(0,a.jsx)(a.Fragment,{children:L.map((e,t)=>(0,a.jsx)(b.A,{expandedId:N,setExpandedId:A,...e,id:t.toString()},t))})]}):S&&S.length>0?null==S?void 0:S.map((e,t)=>(0,a.jsx)(b.A,{expandedId:N,setExpandedId:A,...e,id:t.toString()},t)):(0,a.jsx)("p",{children:P.includes("dining")?"Menu not available online.":"No FAQs available."}),C&&(0,a.jsx)("div",{className:"flex self-center",children:(0,a.jsx)(f.A,{ctaButton:C,linkClassName:(0,n.A)("w-full flex-grow mt-4"),linkSize:"md",onLinkClick:e=>{let t=(0,x.N_)(e,null==C?void 0:C.title);null==k||k.update({events:[{event:t}]})}})})]})})}},21186:(e,t,l)=>{"use strict";l.d(t,{default:()=>S});var a=l(95155),s=l(11597),r=l(51396),n=l(37935),i=l(2821),o=l(71543),d=l(68425),c=l(12115),m=l(12096),p=l(8751),u=l(15239),x=l(59630),h=l(48424),f=l(48447);function v(e){var t,l,s;let{id:r,imageCard:n,backgroundIcon:i}=e,d=(0,c.useRef)(document.body),v=(0,c.useRef)(null),g=(0,o.L)({container:d,target:v,axis:"y",offset:["start end","end start"]}),b=(0,m.G)(g.scrollYProgress,[0,1],[0,0],{ease:h.F.easeInOutCubic}),y=(0,m.G)(g.scrollYProgress,[0,1],[150,-150],{ease:h.F.easeInOutCubic}),j=Math.floor((null==n?void 0:n.length)/2),w=(null==i||null==(t=i[0])?void 0:t.t
1itle)?(0,f.Vo)(null==i||null==(l=i[0])?void 0:l.title):"";return(0,a.jsxs)("div",{id:r,className:"relative flex h-dvh snap-start flex-row items-center gap-8",ref:v,children:[(null==i||null==(s=i[0])?void 0:s.url)&&(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(u.default,{src:i[0].url,alt:w,className:"absolute left-[33%] top-[15%] z-0",width:200,height:200,sizes:"12.5rem",itemProp:"image"}),(0,a.jsx)("meta",{itemProp:"name",content:w})]}),n?(0,a.jsxs)(a.Fragment,{children:[n.slice(0,j).map((e,t)=>(0,a.jsx)(p.P.div,{style:{translateY:b},className:"flex w-full flex-col gap-8",children:(0,a.jsx)(x.q,{attractionType:"",title:"",intro:{root:{children:[]}},image:[],...e,width:"350px",mobileWidth:"300px"})},t)),(0,a.jsx)(p.P.div,{style:{translateY:y},className:"flex w-full flex-col gap-8",children:n.slice(j).map((e,t)=>(0,a.jsx)(x.q,{attractionType:"",title:"",intro:{root:{children:[]}},image:[],...e,width:"350px",mobileWidth:"300px"},t))})]}):null]})}var g=l(51997),b=l(3132),y=l(55605),j=l(31947),w=l(91100),k=l(19296),N=l(18500),A=l(95455),C=l(28994);function S(e){var t,l,m;let{sections:p,backgroundColor:u,component:h,context:f}=e,S=(0,s.fKV)(p),_=(0,c.useRef)(document.body),D=(0,c.useRef)(null),T=!!(S&&(null==S||null==(t=S.filter(Boolean))?void 0:t.length)),{isMatch:P}=(0,N.s)("md-desktop"),F=(0,k.gK)(u,f),L=(0,k.FI)(F),[E,I]=(0,c.useState)(0),z=(0,o.L)({container:_,target:D,axis:"y",offset:["start start","end end"]});(0,d.L)(z.scrollYProgress,"change",e=>{if(!P||!T)return;let t=Math.min(Math.floor(e/(1/(null==S?void 0:S.length))),(null==S?void 0:S.length)-1);E!==t&&I(t)});let{context:M}=(0,r.Ti)();return(0,a.jsx)("section",{id:"acc-section","data-component":null==h?void 0:h.type,className:"scrolling-wrapper relative flex flex-col py-12 md-desktop:py-0 ".concat(null==(l=k.Cs[F])?void 0:l.className),style:null==(m=k.Cs[F])?void 0:m.backgroundStyles,ref:D,children:(0,a.jsxs)("div",{className:"default-grid-row",children:[(0,a.jsx)("div",{className:"col-span-full flex items-center md-desktop:sticky md-desktop:top-0 md-desktop:col-span-5 md-desktop:h-dvh md-desktop:pr-16",children:(0,a.jsx)("ul",{className:"flex w-full flex-col gap-8",children:T&&S.map((e,t)=>{var l,s,r,o,d,c,m,p,u,h,f;let v=(null==e||null==(r=e.intro)||null==(s=r.root)||null==(l=s.children)?void 0:l.map((e,t)=>(0,a.jsx)(n.Y2,{node:e},t)))||[],N=null==e||null==(o=e.ctaLink)?void 0:o[0],S=N?(0,C.z)(N):void 0;return(0,a.jsx)("li",{className:"flex w-full pb-8",children:(0,a.jsxs)(g.A,{id:"pg-accordion-".concat(t),className:"w-full gap-4 md-desktop:[&>button]:cursor-default",triggerContent:t=>{var l;return(null==e?void 0:e.title)?(0,a.jsxs)("h2",{className:(0,i.A)("flex items-center justify-between font-filson-pro text-h1-m transition md-desktop:text-h1",null==(l=k.Cs[F])?void 0:l.childrenClassName,t?"":"text-opacity-25"),children:[e.title,!P&&(t?(0,a.jsx)(w.A,{width:"19",height:"19",className:(0,i.A)("shrink-0","White"===L?"fill-secondary-white":"Black"===L?"fill-secondary-black":"fill-primary-cocoa")}):(0,a.jsx)(j.A,{width:"19",height:"19",className:(0,i.A)("shrink-0","White"===L?"fill-secondary-white":"Black"===L?"fill-secondary-black":"fill-primary-cocoa")}))]}):(0,a.jsx)(a.Fragment,{})},onTriggerClick:()=>{I(t);let e=document.querySelector("body"),l=document.getElementById("acc-section");if(P){let a=document.getElementById("side-section-".concat(t));e&&l&&a&&e.scrollTo({top:(null==l?void 0:l.offsetTop)+a.offsetTop,behavior:"smooth"})}else{let a=document.getElementById("at-pg-accordion-".concat(t));e&&l&&a&&setTimeout(()=>{e.scrollTo({top:(null==l?void 0:l.offsetTop)+a.offsetTop-120,behavior:"smooth"})},550)}},contentClassName:(0,i.A)("flex-col items-start gap-8 w-full overflow-hidden",null==(d=k.Cs[F])?void 0:d.childrenClassName),displayState:!0,isExpanded:E===t,children:[v?(0,a.jsx)("div",{className:(0,i.A)("font-proxima-nova [&>p]:text-p-m",null==(c=k.Cs[F])?void 0:c.childrenClassName),children:v}):(null==e?void 0:e.description)&&(0,a.jsx)("p",{className:(0,i.A)("font-proxima-nova text-p-m",null==(m=k.Cs[F])?void 0:m.childrenClassName),children:e.description}),(null==e?void 0:e.ctaLink)&&(null==e||null==(p=e.ctaLink)?void 0:p.length)>0&&S&&(0,a.jsx)(b.A,{href:S,outlined:!0,variant:L,onClick:()=>{var t;let l=(0,A.N_)(S,e.title+" | "+(null==(t=e.ctaLink[0])?void 0:t.t
1itle));null==M||M.update({events:[{event:l}]})},egalEntryCode:!!(null==e||null==(h=e.ctaLink)||null==(u=h[0])?void 0:u.egalEntryCode),iconPosition:"Left",children:null==(f=e.ctaLink[0])?void 0:f.title}),!P&&(0,a.jsx)("div",{className:"relative mt-8 block w-full pb-16",children:(0,a.jsx)(y.A,{dotsClass:"White"===L?"fill-secondary-white text-secondary-white":"Black"===L?"fill-secondary-black text-secondary-black":"fill-primary-cocoa text-primary-cocoa",children:(null==e?void 0:e.imageCard)?null==e?void 0:e.imageCard.map((e,t)=>(0,a.jsx)("div",{className:"mx-3",children:(0,a.jsx)(x.q,{attractionType:"",title:"",intro:{root:{children:[]}},image:[],...e})},t)):null})})]})},t)})})}),P&&(0,a.jsx)("div",{className:"col-span-7",children:T&&S.map((e,t)=>(0,a.jsx)(v,{...e,id:"side-section-".concat(t)},t))})]})})}},21617:(e,t,l)=>{"use strict";l.d(t,{default:()=>f});var a=l(95155),s=l(11597),r=l(51396),n=l(37935),i=l(2821),o=l(12115),d=l(9098),c=l(16345),m=l(79072),p=l(95455),u=l(64216),x=l(47411),h=l(23743);function f(e){var t;let l,{eyebrowIcon:f,eyebrowText:v,title:g,description:b,link:y,component:j,context:w}=e,k=(0,o.useRef)(null),{context:N}=(0,r.Ti)();(0,d.t)(k);let A=(0,c.H)(f,"Stars");y&&(null==y?void 0:y.length)&&(l=(0,s.fKV)(y,{toSingle:!0}));let C=()=>{var e;return(0,a.jsxs)(a.Fragment,{children:[v&&(0,a.jsxs)("h5",{className:"eyebrow-text text-font-proxima-nova mb-8 text-label-s font-medium",children:[A&&(0,a.jsx)(m.A,{icon:A.icons,width:"20",height:"20",btnClassName:(0,i.A)("max-w-full mr-2 inline-block align-middle")}),v]}),g&&(0,a.jsx)(h.A,{title:g,component:j,context:w,titleClassName:(0,i.A)("mb-6 font-filson-pro text-primary-cocoa"),htmlTag:"h3"}),b&&(0,a.jsx)("div",{ref:k,children:(0,a.jsx)(n.mj,{component:j,parameterId:"description",className:""})}),(null==l||null==(e=l.path)?void 0:e.path)&&(0,a.jsx)(u.f,{})]})};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:(0,i.A)("group/udc relative rounded-2xl border border-primary-cocoa/20 bg-secondary-white no-underline",null==j?void 0:j.type),children:l?(0,a.jsx)(x.A,{href:(null==l||null==(t=l.path)?void 0:t.path)||"#",target:(null==l?void 0:l.target)==!0?"_blank":"_self",isExternal:null==l?void 0:l.target,className:"block p-6 pr-10 no-underline desktop:pr-12",title:(null==l?void 0:l.title)||"",onClick:()=>{let e=(0,p.UA)(g);null==N||N.update({events:[{event:e}]})},children:C()}):(0,a.jsx)("div",{className:"block p-6 pr-10 no-underline desktop:pr-12",children:C()})})})}},21881:(e,t,l)=>{"use strict";l.d(t,{default:()=>m});var a=l(95155),s=l(11597),r=l(51396),n=l(2821),i=l(19296),o=l(95455),d=l(57488),c=l(73697);function m(e){var t,l,m,p,u;let{socialLinkBlocks:x,component:h,context:f}=e,v=(0,s.fKV)(x)||[],{context:g}=(0,r.Ti)(),b=null!=(u=null==f||null==(p=f.composition)||null==(m=p.parameters)||null==(l=m.wimpFeed)||null==(t=l.value)?void 0:t.background_color)?u:"",y=b.replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase());return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:(0,n.A)("flex flex-wrap justify-center gap-4",null==h?void 0:h.type),children:null==v?void 0:v.map((e,t)=>{var l,s,r;return(0,a.jsx)(c.A,{href:(null==e||null==(l=e.socialUrl)?void 0:l.path)||"#",target:"_blank",title:(null==e?void 0:e.linkText)?"Open ".concat(null==e?void 0:e.linkText," in a new window"):"Visit social media in a new window",className:(0,n.A)(null==(s=d.o[null==e?void 0:e.icon])?void 0:s.classNames,"flex items-center justify-center rounded-3xl ring-2",b&&(0,i.YG)(y)?"bg-secondary-white ring-secondary-white hover:bg-primary-cocoa hover:ring-primary-cocoa child:fill-primary-cocoa child:hover:fill-secondary-white":"bg-primary-cocoa ring-primary-cocoa hover:bg-secondary-white hover:ring-secondary-white child:fill-secondary-white child:hover:fill-primary-cocoa"),onClick:()=>{var t;let l=(0,o.N_)(null==e||null==(t=e.socialUrl)?void 0:t.path,null==e?void 0:e.linkText);null==g||g.update({events:[{event:l}]})},children:(null==(r=d.o[null==e?void 0:e.icon])?void 0:r.element)||(0,a.jsx)("span",{children:null==e?void 0:e.linkText})},t)})})})}},24573:(e,t,l)=>{"use strict";l.d(t,{default:()=>S});var a=l(95155),s=l(11597),r=l(51396),n=l(2821),i=l(12115),o=l(16405),d=l(46980),c=l.n(d),m=l(58726),p=l(73697),u=l(13055),x=l(18500),h=l(95455),f=l(64216);function v(e){var t,l,s,i;let{title:d,intro:v,image:g,url:b,newTab:y,height:j,id:w,className:k,linkDescription:N}=e,{isMatch:A}=(0,x.s)("tablet"),{context:C}=(0,r.Ti)(),S=y?"_blank":void 0,_=null==b?void 0:b.path,D=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(m.A,{src:null!=(s=null==g||null==(t=g[0])?void 0:t.url)?s:"",alt:null!=(i=null==g||null==(l=g[0])?void 0:l.title)?i:"",containerClasses:"roun
1ded-lg w-full",sizes:"375px"})});return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{id:w,className:(0,n.A)("onscroll-card relative flex w-[100%] flex-col gap-6 p-6 no-underline",k),style:A&&j?{height:"".concat(j,"px")}:void 0,children:[g&&(0,a.jsx)("div",{className:"h-[256px] w-full max-w-[100%] overflow-hidden",children:_?(0,a.jsx)(p.A,{href:String(_),ariaLabel:N||"Learn More",target:S?"_blank":void 0,onClick:()=>{let e=(0,h.UA)(d);null==C||C.update({events:[{event:e}]})},children:D}):D}),(0,a.jsxs)("div",{className:"gap-2",children:[d&&(0,a.jsx)("h4",{className:"text mt-3 font-filson-pro text-h4-m desktop:text-h4",children:_?(0,a.jsx)(p.A,{href:String(_),ariaLabel:N||"Learn More",target:S?"_blank":void 0,onClick:()=>{let e=(0,h.UA)(d);null==C||C.update({events:[{event:e}]})},children:d}):d}),(0,a.jsxs)("div",{className:"flex items-end gap-6 pr-[40px]",children:[v&&(0,a.jsx)("p",{className:"mt-2 font-proxima-nova text-p-s",children:(0,o.Ay)(c().sanitize(v,{ALLOWED_TAGS:u.e2,ADD_ATTR:["target"]}))}),_&&(0,a.jsx)(p.A,{href:String(_),ariaLabel:N||"Learn More",target:S?"_blank":void 0,className:"group/udc",onClick:()=>{let e=(0,h.UA)(d);null==C||C.update({events:[{event:e}]})},children:(0,a.jsx)(f.f,{})})]})]})]})})}var g=l(19296);function b(e){let{text:t}=e;return(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:"\x3c!--".concat(t,"--\x3e")}})}var y=l(12703),j=l(79669),w=l(82589),k=l(95993),N=l(34781),A=l(40057);function C(e,t){return e.map((e,l)=>({item:e,sort:(e=>{let t=1e4*Math.sin(e);return t-Math.floor(t)})(t+l)})).sort((e,t)=>e.sort-t.sort).map(e=>{let{item:t}=e;return t})}function S(e){var t,l,o,d,c,m,p,u,x,f,S;let{title:_,intro:D,ctaButton:T,cards:P,component:F,context:L,backgroundColor:E,dataType:I,wimpData:z,hideForZoomSearch:M}=e,O=(0,g.gK)(E,L,"White"),{context:R}=(0,r.Ti)(),V=(0,i.useRef)(null),H=(0,y.A)(V,[null!=(f=null==(t=g.Cs[O])?void 0:t.className)?f:""]),B=null==L||null==(d=L.composition)||null==(o=d.parameters)||null==(l=o.wimpFeed)?void 0:l.value,G=null==B?void 0:B.url,K=null==B||null==(c=B.types)?void 0:c.map(e=>e.name),W="Wimp"===I&&Array.isArray(z)&&Array.isArray(null==B?void 0:B.types)?C(z.filter(e=>Array.isArray(e.types)&&B.types.every(t=>e.types.some(e=>e.name===t.name))&&e.url!==G),1234):[],q=W.length<6?C([...W,...Array.isArray(z)?z.filter(e=>!W.some(t=>t.id===e.id)&&e.url!==G&&Array.isArray(e.types)&&e.types.some(e=>"string"==typeof e.name&&(null==K?void 0:K.includes(e.name)))):[]],1234).slice(0,12):W.slice(0,12),U="Wimp"===I&&Array.isArray(q)?q:(0,s.fKV)(P),Y=(0,s.fKV)(T,{toSingle:!0}),[Z,X]=(0,i.useState)(0),Q=null!=(S=null==_?void 0:_.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-"))?S:"OnScrollCarousel";(0,i.useEffect)(()=>{Array.isArray(U)&&U.length>0&&X(Math.max(...U.map((e,t)=>{let l=document.getElementById("card-".concat(t));return l?l.scrollHeight:0})))},[U]),(0,i.useEffect)(()=>{if(window.location.hash.substring(1)===Q){var e;null==(e=V.current)||e.scrollIntoView({behavior:"smooth"})}},[_]);let J="slider-arrows-".concat(Q),$="onScrollSlideParent-".concat(Q);(0,i.useEffect)(()=>{let e=()=>{let e=document.querySelectorAll(".slick-arrow"),t=document.querySelectorAll(".arrow-container");0===e.length?t.forEach(e=>{e.style.display="none"}):t.forEach(e=>{e.style.display=""})},t=()=>{let e=document.querySelector(".slick-prev"),t=document.querySelector(".slick-next"),l=document.querySelector(".scroll-prev"),a=document.querySelector(".scroll-next");e&&l&&(e.classList.contains("slick-disabled")?l.classList.add("slick-disabled"):l.classList.remove("slick-disabled")),t&&a&&(t.classList.contains("slick-disabled")?a.classList.add("slick-disabled"):a.classList.remove("slick-disabled"))},l=()=>{let e=document.querySelector(".slick-prev");e&&(e.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0})),setTimeout(t,0))},a=()=>{let e=document.querySelector(".slick-next");e&&(e.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0})),setTimeout(t,0))},s=()=>{document.querySelectorAll(".slick-arrow").forEach(e=>{e.removeEventListener("click",t),e.addEventListener("click",t)})};e(),t(),s();let r=document.querySelector(".scroll-prev"),n=document.querySelector(".scroll-next");r&&r.addEventListener("click",l),n&&n.addEventListener("click",a);let i=new MutationObserver(()=>{e(),t(),s()});return i.observe(document.body,{childList:!0,subtree:!0}),()=>{i.disconnect(),r&&r.removeEventListener("click",l),n&&n.removeEventListener("click",a),document.querySelectorAll(".slick-arrow").forEach(e
1=>{e.removeEventListener("click",t)})}},[]);let ee=(0,g.FI)(O);return Array.isArray(U)&&0!==U.length?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("section",{id:Q,"data-component":null==F?void 0:F.type,ref:V,className:(0,n.A)("flex-col items-center pb-8 desktop:flex desktop:pb-0",null==F?void 0:F.type,null==(m=g.Cs[O])?void 0:m.className,H?"mt-[-2px] pt-0 desktop:pt-0":""),style:null==(p=g.Cs[O])?void 0:p.backgroundStyles,children:[M&&(0,a.jsx)(b,{text:"ZOOMSTOP"}),(0,a.jsxs)("div",{className:(0,n.A)("onScrollContainer desktop:default-grid-row w-full items-start gap-x-0 !px-0"),children:[(0,a.jsx)("div",{className:(0,n.A)("onScrollSlideSibling col-span-full p-11 text-center","tablet:col-span-3","desktop:col-span-4 desktop:ml-[calc((100vw-900px)/2)] desktop:flex desktop:h-full desktop:flex-wrap desktop:px-0 desktop:text-left","md-desktop:ml-[calc((100vw-1200px)/2)] lg-desktop:ml-[calc((100vw-1400px)/2)] xl-desktop:ml-[calc((100vw-1600px)/2)] xxl-desktop:ml-[calc((100vw-1800px)/2)]"),children:(0,a.jsxs)("div",{className:"text-container w-full desktop:pr-8",children:[_&&(0,a.jsx)(A.A,{title:_,component:F,context:L,titleClassName:(0,n.A)("mb-6 font-filson-pro text-h2-m desktop:text-h2",null==(u=g.Cs[O])?void 0:u.childrenClassName),htmlTag:"h2"}),D&&(0,a.jsx)(N.A,{intro:D,component:F,introClassName:(0,n.A)("font-proxima-nova text-p-l desktop:text-p-xl",null==(x=g.Cs[O])?void 0:x.childrenClassName)}),Y?(0,a.jsx)(k.A,{ctaButton:Y,linkClassName:(0,n.A)("mx-auto mt-5"),linkSize:"md",onLinkClick:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,j.xC)(Y),t=(0,h.N_)(e,_);null==R||R.update({events:[{event:t}]})}}):null,(0,a.jsx)("div",{id:"".concat(J),className:(0,n.A)("arrow-container relative mx-auto max-w-20 tablet:max-w-32 desktop:mx-0","White"===ee?"text-secondary-white":"Black"===ee?"text-secondary-black":"text-primary-cocoa"),children:(0,a.jsxs)("div",{className:(0,n.A)("mx-auto mt-8 flex w-fit justify-center"),children:[(0,a.jsx)("button",{className:(0,n.A)("scroll-arrow scroll-prev mr-3"),"aria-label":"Scroll Left"}),(0,a.jsx)("button",{className:(0,n.A)("scroll-arrow scroll-next ml-3"),"aria-label":"Scroll Right"})]})})]})}),(0,a.jsx)("div",{id:$,className:(0,n.A)("onScrollSlideParent col-span-full mt-4 border-t tablet:col-span-5 desktop:col-span-4 desktop:mt-0 desktop:border-l desktop:border-t-0 md-desktop:col-span-8 [&_.slick-arrow]:!invisible [&_.slick-arrow]:!opacity-0","White"===ee?"border-primary-cocoa-2":"Black"===ee?"border-secondary-black border-opacity-20":"border-primary-cocoa border-opacity-20"),children:U?(0,a.jsx)(w.A,{desktopDots:!1,infinite:!1,dotsClass:"slick-dots absolute bottom-2 left-0 right-0 desktop:!hidden",variableWidth:!0,slidesToShow:3,largeDesktopSize:1920,largeDesktopSlideToShow:2,largeDesktopVariableWidth:!0,mediumDesktopSize:1279,mediumDesktopSlideToShow:1,mediumDesktopVariableWidth:!0,tabletVariableWidth:!0,tabletSlideToShow:2,mobileSlideToShow:1,mobileVariableWidth:!1,drag:!0,arrows:!0,dots:!1,children:U.map((e,t)=>{var l,s,r,i,o,d,c,m,p;let u="Wimp"===I&&"name"in e,x="";if(null==e||null==(l=e.url)?void 0:l.path){let t={...e.url,type:null!=(c=e.url.type)?c:""};x=(0,j.bu)(t)}let h={title:u?null==e?void 0:e.name:null!=(m=null==e?void 0:e.title)?m:"",intro:u?e.description&&e.description.length>150?e.description.slice(0,150)+"...":e.description||"":(null==e?void 0:e.intro)||"",image:u&&(null==e||null==(o=e.images)||null==(i=o[0])||null==(r=i.generated)||null==(s=r[0])?void 0:s.url)?[{url:(null==e?void 0:e.images[0].generated[0].url)+(null==e?void 0:e.images[0].generated[0].file_name),title:(null==e?void 0:e.images[0].alt_tag)||"Featured Image of ".concat(null==e?void 0:e.name)}]:null==e?void 0:e.image,url:u?{path:null==e?void 0:e.url}:{path:null!=x?x:""},className:"child:".concat(null==(d=g.Cs[O])?void 0:d.childrenClassName),height:Z,id:"card-".concat(t),newTab:null==e?void 0:e.newTab,linkDescription:(p=!!(null==e?void 0:e.newTab),e?"Wimp"===I&&"name"in e?"View ".concat(e.name).concat(p?" in a new window":""):"linkDescription"in e&&e.linkDescription?"".concat(e.linkDescription).concat(p?", Link opens in a new window":""):"title"in e&&e.title?"".concat(e.title).concat(p?", Link opens in a new window":""):"Learn More".concat(p?", Link opens in a new window":""):"Learn More".concat(p?", Link opens in a new window":""))};return(0,a.jsx)("div",{className:(0,n.A)("tablet:w-[384px] desktop:w-[420px] desktop:border-r lg-desktop:w-[424px]","White"===ee?"border-primary-cocoa-2":"Black"===ee?"border-secondary-black border-opacity-20":"border-primary-cocoa border-opacity-20"),children:(0,a.jsx)(v,{...h})},t)})}):null})]}),M&&(0,a.jsx)(b,{text:"ZOOMRESTART"})]})}):null}},27153:(e,t,l)=>{"use strict";l.d(t,{default:()=>f});var a=l(95155),s=l(11597),r=l(2821),n=l(15239),i=l(12115),o=l(30287),d=l(19296),c=l(12703),m=l(48447),p=l(96807),u=l(34781),x=l(40057);let h={transparent:{containerClasses:"bg-secondary-transparent",textColor:"",countdownClass:"desktop:mt-0 desktop:mx-0"},gray:{containerClasses:"bg-rides-halloween-gray-lighten",textColor:"text-primary-cocoa",countdownClass:"desktop:mt-0 desktop:mx-0"},blue:{containerClasses:"bg-primary-boardwalk",textColor:"text-secondary-white",countdownClass:"desktop:mt-0 desktop:mx-0"},image:{containerClasses:"bg-primary-boardwalk bg-cover bg-repeat-no-repeat bg-center",textColor:"",countdownClass:"desktop:mt-0"}};function f(e){var t,l,f,v,g,b,y,j,w,k,N;let{theme:A="gray",countdown:C,backgroundImage:S,logo:_,title:D,intro:T,component:P,context:F,backgroundColor:L}=e,E=(0,s.fKV)(C,{toSingle:!0}),I=new Date((null==E||null==(t=E.startDateTime)?void 0:t.datetime)||"").getTime(),z=(0,d.gK)(L,F),M=new Date((null==E||null==(l=E.endDateTime)?void 0:l.datetime)||"").getTime(),O=null==E?void 0:E.sideButton,R=null==E?void 0:E.
1countdownBgColor,V=(0,s.fKV)(S,{toSingle:!0}),H=(0,s.fKV)(_,{toSingle:!0}),{props:{srcSet:B}}=(0,n.getImageProps)({alt:null==V?void 0:V.title,width:800,height:570,src:null==V?void 0:V.url}),G=(null==V?void 0:V.url)?(0,o.A)(B):"",K=H?"flex items-center flex-wrap":"",W=H?"":"flex flex-wrap items-center justify-center",q=(0,i.useRef)(null),U=(0,c.A)(q,[null!=(N=null==(f=d.Cs[z])?void 0:f.className)?N:""]);return(0,a.jsx)(a.Fragment,{children:I<=Date.now()&&M>Date.now()&&(0,a.jsx)("section",{ref:q,"data-component":null==P?void 0:P.type,className:(0,r.A)(null==P?void 0:P.type,null==(v=d.Cs[z])?void 0:v.className,null==(g=d.Cs[z])?void 0:g.childrenClassName,U?"mt-[-2px] pb-10 pt-0 desktop:pb-24 desktop:pt-0":"py-10 desktop:py-24"),style:null==(b=d.Cs[z])?void 0:b.backgroundStyles,children:(0,a.jsx)("div",{className:(0,r.A)("default-grid-row mx-auto max-w-[1920px] items-center",null==P?void 0:P.type),children:(0,a.jsxs)("div",{className:(0,r.A)("col-span-full mx-auto flex max-w-full flex-wrap items-center justify-center gap-8 overflow-hidden rounded-[20px] p-4 tablet:max-w-[600px] desktop:max-w-[800px] lg-desktop:max-w-full",null==(y=h[A])?void 0:y.containerClasses,K),style:G?{backgroundImage:"".concat(G),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:void 0,children:[H&&(0,a.jsxs)("div",{className:"relative",itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(n.default,{src:null==H?void 0:H.url,alt:(0,m.Vo)(null==H?void 0:H.title),width:486,height:324,sizes:"30rem",style:{objectFit:"cover"},className:"mx-auto block lg-desktop:-my-7",itemProp:"image"}),(0,a.jsx)("meta",{itemProp:"name",content:(0,m.Vo)(null==H?void 0:H.title)})]}),(0,a.jsxs)("div",{className:(0,r.A)("gap-8",W),children:[(D||T)&&(0,a.jsxs)("div",{className:(0,r.A)("text-container mb-5 text-center",!H&&"mb-0 max-w-[414px] lg-desktop:max-w-[500px] lg-desktop:pl-4 lg-desktop:text-left"),children:[(0,a.jsx)(x.A,{title:D,component:P,context:F,htmlTag:"h2",titleClassName:(0,r.A)("text-h2 font-filson-pro",null==(j=h[A])?void 0:j.textColor)}),(0,a.jsx)(u.A,{intro:T,component:P,introClassName:(0,r.A)("mt-5 font-proxima-nova text-p-m",null==(w=h[A])?void 0:w.textColor)})]}),(0,a.jsx)(p.A,{startdate:I,timestamp:M,className:"z-10",countdownBgColor:R,btn:O,countdownClass:null==(k=h[A])?void 0:k.countdownClass})]})]})})})})}},27888:(e,t,l)=>{"use strict";l.d(t,{default:()=>D});var a=l(95155),s=l(37935),r=l(2821),n=l(12115),i=l(19296),o=l(12703),d=l(18500),c=l(11597),m=l(51396),p=l(15239),u=l(89030);let x=e=>{let{tbodyRef:t,thRef:l,customClassName:s}=e,[i,o]=(0,n.useState)(!0),[d,c]=(0,n.useState)(!1),m=()=>{if(t.current){let{scrollLeft:e,scrollWidth:l,clientWidth:a}=t.current;o(e<=1),c(e+a>=l-1)}};return(0,n.useEffect)(()=>{let e=t.current;return e&&(e.addEventListener("scroll",m),m()),()=>{t.current&&t.current.removeEventListener("scroll",m)}},[t]),(0,a.jsxs)("div",{className:(0,r.A)("mx-auto flex w-fit justify-center",s),children:[(0,a.jsx)("button",{onClick:()=>{if(t.current&&l.current){let e=l.current.offsetWidth||0;t.current.scrollTo({left:t.current.scrollLeft-e,behavior:"smooth"}),m()}},disabled:i,className:(0,r.A)("scroll-arrow scroll-prev mr-3",{"scroll-disabled":i}),"aria-label":"Scroll Left"}),(0,a.jsx)("button",{onClick:()=>{if(t.current&&l.current){let e=l.current.offsetWidth||0;t.current.scrollTo({left:t.current.scrollLeft+e,behavior:"smooth"}),m()}},disabled:d,className:(0,r.A)("scroll-arrow scroll-next ml-3",{"scroll-disabled":d}),"aria-label":"Scroll Right"})]})};var h=l(95455),f=l(48447),v=l(73842),g=l(16405),b=l(46980),y=l.n(b),j=l(55817),w=l(51997),k=l(39329),N=l(40839),A=l(13055),C=l(28994);function S(e){let{title:t,description:l,link:s,seasonPassCards:n,customGiantText:o,customKingText:c,customFullText:m,customBiteText:p,customSnackText:u,id:x,expandedId:h,setExpandedId:f,spCards:v}=e,b=(null==s?void 0:s[0])||"",S=(0,C.z)(b),_=S?"<a class='underline hover:no-underline' href=".concat(S,">").concat(null==b?void 0:b.title,"</a>"):"",D=h===x,T=Array.isArray(n)?n.map(e=>{var t,l,a,s,r,n,i,o,d,c;return{_slug:null==e||null==(t=e.entry)?void 0:t._slug,color:null==e||null==(s=e.entry)||null==(a=s.fields)||null==(l=a.color)?void 0:l.value,soldOut:null==e||null==(i=e.entry)||null==(n=i.fields)||null==(r=n.soldOut)?void 0:r.value,orderNumber:null==e||null==(c=e.entry)||null==(d=c.fields)||null==(o=d.orderNumber)?void 0:o.value}}):[],P=T.map(e=>e._slug);for(;P.length<v;)P.push("size-".concat(P.length));let F=[o,c,m,u,p],L=Array.from({length:Math.max(T.length,P.length)}).map((e,t)=>{var l,a;let s=T[t],r=P[t]||"size-".concat(t);return{type:r,availability:!!s,orderNumber:null!=(l=null==s?void 0:s.orderNumber)?l:t,...(e=>{var t,l;let a=T.find(t=>t._slug===e);return a?{fillName:null==(t=i.Cs[a.color])?void 0:t.fillName,textColor:null==(l=i.Cs[a.color])?void 0:l.textColor,soldOut:null==a?void 0:a.soldOut}:{}})(r),text:F[t]||"",soldOut:null!=(a=null==s?void 0:s.soldOut)&&a}}).sort((e,t)=>
1e.orderNumber-t.orderNumber),{isMatch:E}=(0,d.s)("md-desktop");return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("tr",{className:(0,r.A)(E?"odd:bg-secondary-white even:bg-primary-cream":"w-[160px] border-t-0 !bg-primary-cream"),children:[(0,a.jsx)("th",{className:(0,r.A)(E?"w-[32%] text-left":"block h-32 w-[120px] border-t-0 text-center tablet:h-36 desktop:h-52"),children:E?(0,a.jsx)(w.A,{id:x,triggerClassName:"",triggerContent:()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("p",{className:(0,r.A)("line-height-[1.5em] font-filson-pro underline underline-offset-4 transition-all hover:no-underline",{"no-underline":D}),children:(0,g.Ay)(y().sanitize(t,{ALLOWED_TAGS:A.ls,ADD_ATTR:["target"]}))})}),isExpanded:D,onTriggerClick:()=>{f(D?"":x)},children:l&&(0,a.jsxs)("p",{className:"mt-1 text-p-xs",children:[(0,g.Ay)(y().sanitize(l,{ALLOWED_TAGS:A.ls,ADD_ATTR:["target"]}))," ",(0,g.Ay)(_)]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"line-height-[1.5em] cursor-pointer font-filson-pro text-[12px] underline decoration-dashed underline-offset-4 transition-all hover:no-underline desktop:text-p-s","data-tooltip-id":x,children:(0,g.Ay)(y().sanitize(t,{ALLOWED_TAGS:A.ls,ADD_ATTR:["target"]}))}),(0,a.jsx)(j.m_,{id:x,openOnClick:!0,place:"bottom-start",className:"!pointer-events-auto z-50","data-html":!0,children:(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column",width:"150px"},children:l&&(0,a.jsxs)("p",{className:"text-label-xs",children:[(0,g.Ay)(y().sanitize(l,{ALLOWED_TAGS:A.ls,ADD_ATTR:["target"]}))," ",(0,g.Ay)(_)]})})})]})}),L.map((e,t)=>(0,a.jsx)("td",{"data-table":null==e?void 0:e.type,"aria-label":e.availability?(null==e?void 0:e.text)?null==e?void 0:e.text:"Available":"Unavailable",className:(0,r.A)("relative text-center font-semibold text-primary-cocoa",E?"":"flex h-[120px] w-[120px] flex-wrap items-center justify-center border-t border-t-primary-cocoa-2 text-[12px] even:bg-secondary-white tablet:h-[155px] tablet:text-p-s desktop:h-[174px] md-desktop:h-[220px]",{"after:absolute after:bottom-0 after:left-0 after:right-0 after:top-0 after:z-10 after:bg-secondary-black after:bg-opacity-60 md-desktop:after:top-[-1.1px]":null==e?void 0:e.soldOut}),style:E?{width:"".concat(68/L.length,"%")}:{},children:e.availability?(null==e?void 0:e.text.toLowerCase())==="unavailable"?(0,a.jsx)(k.default,{className:"mx-auto fill-rides-gray-neutral"}):e.text||(0,a.jsx)(N.default,{className:(0,r.A)("mx-auto",null==e?void 0:e.fillName)}):(null==e?void 0:e.text)||(0,a.jsx)(k.default,{className:"mx-auto fill-rides-gray-neutral"})},t))]})})}function _(e){let t,{seasonPassBlock:l}=e,{context:s}=(0,m.Ti)(),{isMatch:i}=(0,d.s)("md-desktop"),{isMatch:o}=(0,d.s)("tablet"),v=(0,c.fKV)(l),[g,b]=(0,n.useState)(""),y=(0,n.useRef)(null),j=(0,n.useRef)(null),w=Array.from((t=(null==v?void 0:v.flatMap(e=>null==e?void 0:e.seasonPassCards))||[]).reduce((e,l)=>{let{id:a,slug:s,...r}=(e=>{var t,l,a,s,r,n,i,o,d;let{entry:{_id:c,_slug:m,fields:{title:{value:p}={value:void 0},subtitle:{value:u}={value:void 0},monthlyPrice:{value:x}={value:void 0},fullPrice:{value:h}={value:void 0},per:{value:f}={value:void 0},thumbnail:{value:v}={value:void 0},button:{value:g},soldOut:{value:b}={value:void 0},orderNumber:{value:y}={value:void 0}}}}=e||{},j=null==v||null==(a=v[0])||null==(l=a.fields)||null==(t=l.url)?void 0:t.value,w=null==v||null==(n=v[0])||null==(r=n.fields)||null==(s=r.title)?void 0:s.value,k=null==g||null==(i=g[0])?void 0:i.fields,N=null==k||null==(d=k.link)||null==(o=d.value)?void 0:o.path,A=null==k?void 0:k.title;return{id:c,slug:m,title:p,subtitle:u,price:{monthlyPrice:x,fullPrice:h,per:f},image:{url:j,alt:w},button:{url:N,title:A,variant:null==k?void 0:k.variant,newWindow:null==k?void 0:k.newWindow,backgroundColor:null==k?void 0:k.backgroundColor},soldOut:b,orderNumber:y}})(l);return!e.has(a)&&t.some(e=>{var t;return(null==(t=e.entry)?void 0:t._slug)===s})&&e.set(a,{id:a,slug:s,...r}),e},new Map).values());return(0,a.jsxs)("div",{className:"col-span-full w-full",children:[!i&&(0,a.jsx)(x,{tbodyRef:y,thRef:j,customClassName:"mb-6"}),(0,a.jsxs)("table",{className:"relative w-full max-w-full overflow-hidden border border-primary-cocoa-2",children:[w.length>
10&&(0,a.jsx)("thead",{className:(0,r.A)(i?"w-full lg-desktop:inline-table":"block w-[40%] tablet:w-[30%] desktop:w-[26%]"),children:(0,a.jsxs)("tr",{className:(0,r.A)(i?"":"block"),children:[(0,a.jsx)("th",{ref:j,className:(0,r.A)(i?"w-[32%] text-left align-top":"relative flex h-32 items-center justify-center px-6 tablet:h-36 desktop:h-52"),children:(0,a.jsx)("span",{className:"sr-only",children:"Description"})}),w.sort((e,t)=>{var l,a;return(null!=(l=e.orderNumber)?l:0)-(null!=(a=t.orderNumber)?a:0)}).map((e,t)=>{var l,d,c,m,x,v,g,b,y,j,k,N,A,C,S,_;let D=null==e?void 0:e.soldOut,T=null==e||null==(v=e.button)||null==(x=v.backgroundColor)||null==(m=x.value)||null==(c=m[0])||null==(d=c.fields)||null==(l=d.theme)?void 0:l.value;return(0,a.jsx)(n.Fragment,{children:(0,a.jsxs)("th",{className:(0,r.A)("relative text-center align-top",i?"":"block h-[120px] border-t border-t-primary-cocoa-2 p-4 text-center even:bg-secondary-white tablet:h-[155px] tablet:py-5 desktop:h-[174px] md-desktop:h-[220px]",{"overflow-hidden after:absolute after:bottom-0 after:left-0 after:right-0 after:top-0 after:z-10 after:bg-secondary-black after:bg-opacity-60 md-desktop:after:top-[-1px] lg-desktop:after:top-[-1.2px]":!0===D}),style:i?{width:"".concat(68/w.length,"%")}:{},children:[!0===D&&(0,a.jsx)("p",{className:"absolute left-[-10%] top-[40%] z-20 inline-block w-[120%] rotate-[345deg] whitespace-nowrap bg-rides-yellow text-center text-p-s !font-black uppercase tablet:text-h3",children:"Sold Out"}),o&&(null==e||null==(g=e.image)?void 0:g.url)&&(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(p.default,{className:"mx-auto mb-1 max-w-[100px] rounded-[10px] tablet:mb-2 tablet:rounded-xl desktop:max-w-[130px] md-desktop:max-w-[180px]",src:null==e||null==(b=e.image)?void 0:b.url,alt:(0,f.Vo)(null==e||null==(y=e.image)?void 0:y.alt),width:o?186:100,height:o?110:100,itemProp:"image",sizes:"(max-width: 767px) 6.25rem, 11.625rem"}),(0,a.jsx)("meta",{itemProp:"name",content:null==e||null==(j=e.image)?void 0:j.alt})]}),!o&&(null==e?void 0:e.title)&&(0,a.jsx)("h3",{className:"mb-0 font-filson-pro text-p-s font-bold tablet:text-h4-m md-desktop:text-h3",children:null==e?void 0:e.title}),!i&&(null==e?void 0:e.subtitle)?"":(null==e?void 0:e.subtitle)?(0,a.jsx)("p",{className:"font-proxima-nova text-p-xs",children:null==e?void 0:e.subtitle}):"",(null==e||null==(k=e.button)?void 0:k.url)&&(0,a.jsx)(u.A,{size:i?"md":"sm",href:null==e||null==(N=e.button)?void 0:N.url,variant:T,className:(0,r.A)("mt-2 px-3 text-[12px] tablet:text-[16px]",(null==e||null==(A=e.soldOut)?void 0:A.value)&&"hidden"),egalEntryCode:null==e?void 0:e.egalEntryCode,onClick:()=>{var t,l,a;let r=(0,h.N_)(null==e||null==(t=e.button)?void 0:t.url,"SP chart- "+(null==e?void 0:e.title)+" | "+(null==e||null==(a=e.button)||null==(l=a.title)?void 0:l.value));null==s||s.update({events:[{event:r}]})},iconPosition:null==e?void 0:e.iconPosition,disabled:null==e||null==(C=e.soldOut)?void 0:C.value,children:null==e||null==(_=e.button)||null==(S=_.title)?void 0:S.value})]})},t)})]})}),(0,a.jsx)("tbody",{ref:y,className:(0,r.A)(i?"w-full lg-desktop:inline-table":"absolute bottom-0 left-[40%] top-0 flex w-[60%] overflow-y-hidden overflow-x-scroll tablet:left-[30%] tablet:w-[70%] desktop:left-[26%] desktop:w-[74%]"),style:{WebkitOverflowScrolling:"touch",scrollbarGutter:"stable"},children:v&&v.map((e,t)=>(0,a.jsx)(S,{expandedId:g,setExpandedId:b,...e,id:t.toString(),spCards:w.length},t))})]}),!i&&(0,a.jsx)(x,{tbodyRef:y,thRef:j,customClassName:"mt-6"})]})}function D(e){var t,l;let{component:c,context:m,slots:p,seasonPassBlock:u}=e,{isMatch:x}=(0,d.s)("md-desktop"),h=(0,n.useRef)(null),f=(0,o.A)(h,[null!=(l=null==(t=i.Cs.Default)?void 0:t.className)?l:""]);return(0,a.jsxs)("section",{id:"season-pass-chart",ref:h,"data-component":null==c?void 0:c.type,className:(0,r.A)(null==c?void 0:c.type,"bg-primary-cream !px-4 md-desktop:!px-16",f?"mt-[-2px] pb-14 pt-0 desktop:pb-24 desktop:pt-0":"py-14 desktop:py-24"),children:[(0,a.jsx)(s.D,{context:m,data:c,slot:p.components,children:e=>(0,a.jsx)(n.Fragment,{children:(0,a.jsx)("div",{className:(0,r.A)("[&>*]:p-0"),children:e.child})},e.key)}),(0,a.jsx)("div",{className:(0,r.A)("mx-auto max-w-[1920px] justify-items-center gap-8 px-0 !pb-0 !pt-6 tablet:!pt-8",x&&"default-grid-row"),children:(0,a.jsx)(_,{seasonPassBlock:u})})]})}(0,v.hf)({type:"seasonPass",component:S})},27981:(e,t,l)=>{"use strict";l.d(t,{default:()=>k});var a=l(95155),s=l(11597),r=l(51396),n=l(37935),i=l(2821),o=l(15239),d=l(12115),c=l(76963),m=l(2671),p=l(95993),u=l(39329),x=l(75387),h=l(62990),f=l(30287),v=l(19296
1),g=l(79072),b=l(95455),y=l(79669),j=l(48447),w=l(29249);function k(e){var t,l,k,N,A,C,S;let{addOnOffer:_,backgroundColor:D,button:T,calloutBadgeColor:P,calloutBadgeText:F,component:L,context:E,description:I,detailsButton:z,id:M,image:O,list:R,per:V,price:H,priceDisclaimer:B,priceValidUntil:G,soldOut:K,strikethroughPrice:W,subtitle:q,subtitleColor:U,title:Y,productValidFrom:Z,productValidThrough:X}=e,[Q,J]=(0,d.useState)(!1),[$,ee]=(0,d.useState)(!1),[et,el]=(0,d.useState)(),{context:ea}=(0,r.Ti)(),es=(0,v.gK)(D,E),er=(0,v.gK)(U,E),en=(0,s.fKV)(O,{toSingle:!0}),ei=P&&"object"==typeof P?(0,v.wj)(P):{theme:"Callout Badge"},eo=ei&&ei.theme?ei.theme:"Callout Badge",ed=(0,v.FI)(es),ec=null==en?void 0:en.url,em=ec?(0,o.getImageProps)({alt:(null==en?void 0:en.title)||"",width:800,height:570,src:ec}).props.srcSet:"",ep=ec&&em?(0,f.C)(em):"";return(0,a.jsxs)("div",{"data-component":"comparison-card",id:M,className:(0,i.A)("card-wrapper mx-auto flex w-full max-w-full flex-col lg-mobile:w-[430px] lg-mobile:px-0 desktop:w-full"),itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/Offer",children:[(0,a.jsx)("meta",{itemProp:"acceptedPaymentMethod",content:"VISA, MasterCard, Discover, and American Express"}),(0,a.jsx)("span",{className:"inline-flex h-9",children:F&&(0,a.jsx)("span",{className:(0,i.A)("relative items-start justify-start gap-2.5 rounded-tl-[20px] rounded-tr-md px-3 py-2 text-p-xs font-black uppercase",null==(t=v.Cs[eo])?void 0:t.className,null==(l=v.Cs[eo])?void 0:l.childrenClassName),children:F})}),(0,a.jsxs)("div",{className:(0,i.A)("card-body relative flex h-full flex-col overflow-hidden rounded-[16px] border pb-24 pt-4",Array.isArray(D)&&D.length>0?"".concat(null==(k=v.Cs[es])?void 0:k.className," ").concat(null==(N=v.Cs[es])?void 0:N.childrenClassName," ").concat(null==(A=v.Cs[es])?void 0:A.borderColor):"border-primary-cocoa-2 bg-secondary-white text-primary-cocoa",F&&"rounded-tl-none"),...H?{itemProp:"itemOffered",itemScope:!0,itemType:"https://schema.org/Product"}:{},style:Array.isArray(D)&&D.length>0?null==(C=v.Cs[es])?void 0:C.backgroundStyles:void 0,children:[(0,a.jsx)("meta",{itemProp:"name",content:Y}),I&&("object"==typeof I?(0,a.jsx)("meta",{itemProp:"description",content:(0,c.v)(I)}):(0,a.jsx)("meta",{itemProp:"description",content:I})),ec&&ep&&(0,a.jsx)("link",{itemProp:"image",href:ep}),ec&&(0,a.jsx)("div",{className:"mb-6 aspect-[1.85] w-full px-4",children:(0,a.jsxs)("div",{className:"relative h-full w-full overflow-hidden rounded-[8px]",itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(o.default,{className:"pointer-events-none h-full w-full object-cover",src:ec,alt:(0,j.Vo)(null==en?void 0:en.title),fill:!0,itemProp:"image",sizes:"25.375rem"}),(0,a.jsx)("meta",{itemProp:"name",content:(0,j.Vo)(null==en?void 0:en.title)})]})}),(0,a.jsxs)("div",{className:"mb-6 flex flex-col gap-4 px-4 font-filson-pro text-primary-cocoa first:pt-2",...H?{itemProp:"offers",itemScope:!0,itemType:"https://schema.org/Offer"}:{},children:[Z&&(0,a.jsx)("meta",{itemProp:"validFrom",content:(0,c.b)(Z)}),X&&(0,a.jsx)("meta",{itemProp:"validThrough",content:(0,c.b)(null==X?void 0:X.datetime)}),G&&(0,a.jsx)("meta",{itemProp:"priceValidUntil",content:(0,c.b)(null==G?void 0:G.datetime)}),_&&(0,a.jsx)("meta",{itemProp:"addOn",itemScope:!0,itemType:"https://schema.org/Offer"}),(0,a.jsx)("span",{itemProp:"brand",itemType:"https://schema.org/Brand",itemScope:!0,children:(0,a.jsx)("meta",{itemProp:"name",content:"Hersheypark"})}),(0,a.jsx)("link",{itemProp:"availability",content:K?"https://schema.org/SoldOut":"https://schema.org/InStock"}),Y&&(0,a.jsx)("h2",{className:"mb-0 flex items-baseline justify-between gap-4 text-h3",children:(0,a.jsx)("span",{className:"font-bold",children:Y})}),q&&(0,a.jsx)("p",{className:(0,i.A)("-mt-3 font-filson-pro text-label-l",null==(S=v.Cs[er])?void 0:S.textColor),itemProp:"description",children:q}),H&&(0,a.jsxs)("div",{className:"mb-2 text-left",children:[H&&(0,a.jsxs)("div",{className:"flex justify-start gap-1",children:[(0,a.jsxs)("h3",{className:"mb-0",children:[(0,a.jsx)("meta",{itemProp:"priceCurrency",content:"USD"}),(0,a.jsx)("span",{itemProp:"price",className:"text-h2-m desktop:text-h2",content:H.replace(/[^\d.]/g,""),children:H}),V&&(0,a.jsxs)("span",{className:"text-h4-m desktop:text-h4",children:["/",V]})]}),W&&(0,a.jsxs)("span",{itemProp:"priceSpecification",itemScope:!0,itemType:"https://schema.org/UnitPriceSpecification",children:[(0,a.jsx)("meta",{itemProp:"priceType",content:"https://schema.org/StrikethroughPrice"}),(0,a.jsx)("meta",{itemProp:"priceCurrency",content:"USD"}),(0,a.jsx)("meta",{itemProp:"price",content:W.replace(/[^\d.]/g,"")}),(0,a.jsx)("p",{className:(0,i.A)("strikethrough relative ml-2 mt-1 text-p-xl before:top-[40%] desktop:mt-4",Array.isArray(D)&&D.length>0?"White"===ed?"text-secondary-white before:border-b-secondary-white":"Black"===ed?"text-secondary-black before:border-b-secondary-black":"Callout Badge"===ed?"text-primary-callout-badge-blue before:border-b-primary-callout-badge-blue":"text-primary-cocoa before:border-b-primary-cocoa":"text-primary-zoo before:border-b-primary-zoo"),children:W})]})]}),B&&(0,a.jsx)(n.mj,{component:L,parameterId:"priceDisclaimer",itemProp:"description",className:"w-full flex-shrink-0 [&>p]:text-p-xs"})]}),R&&(0,a.jsx)("ul",{className:"gap-y-5",children:R.map((e,t)=>{var l,r,i;let o=(0,s.fKV)(e),c=null==o?void 0:o.icon,m=(null==o||null==(i=o.description)||null==(r=i.root)||null==(l=r.children)?void 0:l.map((e,t)=>{var l;return(0,a.jsx)(n.Y2,{node:e},null!=(l=null==e?void 0:e._key)?l:t)}))||[],p=Array.isArray(D)&&D.length>0?"White"===ed?"fill-secondary-white":"Black"===ed?"fill-secondary-black":"Callout Badge"===ed?"fill-primary-callout-badge-blue":"fill-primary-cocoa":"fill-primary-boardwalk",u=(0,s.fKV)(T,{toSingle:!0}),x=(null==u?void 0:u.newWindow)?"_blank":"_self",f=(0,y.xC)(u);return(0,a.jsx)("li",{className:"mb-0 flex flex-nowrap items-start gap-x-3 bg-none px-0 font-proxima-nova text-p-m !font-bold",children:m&&(0,a.jsxs)(d.Fragment,{children:[(0,a.jsx)(g.A,{icon:c,btnClassName:"Close"===c?"bg-primary-twizzler fill-secondary-white rounded-full flex-shrink-0 flex-grow-0 basis-6 w-6 h-6 mt-1":p+" flex-shrink-0 flex-grow-0 basis-6 w-6 h-6 mt-1"}),(null==o?void 0:o.showCalendar)&&(null==o?void 0:o.feed)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",className:"text-left underline underline-offset-4 hover:no-underline",onClick:()=>ee(!0),children:m}),(0,a.jsx)(h.A,{isOpen:$,setIsOpen:ee,isCentered:!0,children:(0,a.jsx)(w.default,{feed:null==o?void 0:o.feed,onBtnClick:e=>{e.preventDefault(),e.stopPropagation(),ee(!1)},link:{url:f,target:x},className:"!p-0 [&_.mini-calendar-datepicker]:w-full [&_.mini-calendar-datepicker]:rounded-lg",maximumDate:null==o?void 0:o.maximumDate,headline:null==o?void 0:o.headline,disclaimer:null==o?void 0:o.disclaimer,sellingFastTitle:null==o?void 0:o.sellingFastTitle,sellingFastIcon:Array.isArray(null==o?void 0:o.sellingFastIcon)?null==o?void 0:o.sellingFastIcon:(null==o?void 0:o.sellingFastIcon)?Object.values(o.sellingFastIcon):void 0,soldOutTitle:null==o?void 0:o.soldOutTitle,soldOutIcon:Array.isArray(null==o?void 0:o.soldOutIcon)?null==o?void 0:o.soldOutIcon:(null==o?void 0:o.soldOutIcon)?Object.values(o.soldOutIcon):void 0})})]}):m]})},t)})}),(0,a.jsxs)("div",{className:"absolute bottom-7 left-5 right-5 mt-3 flex items-center justify-between gap-x-2 lg-mobile:gap-x-4",children:[T&&(null==T?void 0:T.length)>0&&T.map((e,t)=>{let l=(0,s.fKV)(e,{toSingle:!0});return(0,a.jsx)(p.A,{ctaButton:l,linkClassName:(0,i.A)("w-full flex-grow min-w-40 !text-[16
1px] md-desktop:!text-[18px] leading-6"),linkSize:"sm",onLinkClick:e=>{let t=(0,b.N_)(e,Y+" | "+l.title);null==ea||ea.update({events:[{event:t}]})}},t)}),z&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.A,{className:(0,i.A)("button-md underline underline-offset-2",Array.isArray(T)&&T.length>1&&"w-full"),size:"sm",variant:"Transparent",onClick:e=>{let t=(0,b.UA)("Details about ".concat(Y));null==ea||ea.update({events:[{event:t}]}),el({x:e.clientX+"px",y:e.clientY+"px"}),J(!0)},children:"Details"}),(0,a.jsxs)(h.A,{isOpen:Q,setIsOpen:J,overlayCenter:et,children:[(0,a.jsxs)("div",{className:"flex flex-shrink-0 justify-between overflow-hidden border-b border-primary-cocoa-2 bg-secondary-white px-6 pb-6 pt-8 desktop:rounded-t-[16px]",children:[(0,a.jsxs)("p",{className:"flex items-center gap-3 font-filson-pro text-label-l text-primary-cocoa",children:[(0,a.jsx)(x.default,{width:"23",height:"20"})," Details"]}),(0,a.jsx)("button",{className:"flex h-6 w-8 justify-center",onClick:()=>J(!1),children:(0,a.jsx)(u.default,{width:"13",height:"24",className:"fill-primary-cocoa"})})]}),(0,a.jsxs)("div",{className:"flex flex-grow flex-col gap-6 overflow-y-auto bg-secondary-white px-8 py-6",children:[ec&&(0,a.jsxs)("div",{className:"relative aspect-[1.6] w-full flex-shrink-0",itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(o.default,{className:"pointer-events-none h-full w-full object-cover",src:ec,alt:(0,j.Vo)(null==en?void 0:en.title),fill:!0,itemProp:"image",sizes:"(max-width: 767px) 47.9375rem, (max-width: 1024px) 28.125rem, (max-width: 1200px) 37.5rem, 50rem"}),(0,a.jsx)("meta",{itemProp:"name",content:null==en?void 0:en.title})]}),(0,a.jsx)("div",{className:"flex flex-col gap-4 text-center font-filson-pro",children:Y&&(0,a.jsx)("h3",{className:"text-h3 text-primary-cocoa",itemProp:"name",children:Y})}
1),(H||q)&&(0,a.jsx)("div",{className:"flex flex-col gap-4 rounded-3xl border border-primary-cocoa-2 px-5 py-8 text-center text-primary-cocoa",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[q&&(0,a.jsx)("p",{className:"mb-0 font-filson-pro text-label-l",children:q}),H&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("h2",{className:"mb-0 mt-0 gap-2 text-h1",children:[(0,a.jsx)("meta",{itemProp:"priceCurrency",content:"USD"}),(0,a.jsx)("span",{itemProp:"price",content:H.replace(/[^\d.]/g,""),children:H}),W&&(0,a.jsx)("span",{className:"strikethrough relative ml-2 mt-4 text-p-xl",children:W})]})}),V&&(0,a.jsxs)("p",{className:"font-proxima-nova text-p-s font-normal",children:["Price Per ",V.slice(0,1).toUpperCase()+V.slice(1)]})]})}),I&&(0,a.jsx)(n.mj,{component:L,parameterId:"description",itemProp:"description"})]}),(0,a.jsx)("meta",{itemProp:"availableAtOrFrom",content:"Hersheypark"}),(0,a.jsx)("meta",{itemProp:"isFamilyFriendly",content:"true"}),Array.isArray(T)&&(0,a.jsx)("div",{className:"bg-gradient-happiness flex flex-shrink-0 flex-wrap justify-center gap-4 gap-x-4 p-8 desktop:rounded-b-[16px]",children:T.map((e,t)=>{let l=(0,s.fKV)(e,{toSingle:!0});return(0,a.jsx)(p.A,{ctaButton:l,linkClassName:(0,i.A)("min-w-64"),linkSize:"sm",onLinkClick:e=>{let t=(0,b.N_)(e,Y+" | "+l.title);null==ea||ea.update({events:[{event:t}]})}},t)})})]})]})]})]})]})]})}},29249:(e,t,l)=>{"use strict";l.d(t,{default:()=>m});var a=l(95155),s=l(37935),r=l(2821);l(12115);var n=l(90604),i=l.n(n),o=l(39329),d=l(79072),c=l(5593);function m(e){var t,l,n,m,p,u;let x,{className:h,disclaimer:f,feed:v,headline:g,maximumDate:b,onBtnClick:y,sellingFastIcon:j,sellingFastTitle:w,soldOutIcon:k,soldOutTitle:N,link:A}=e,C=new Date,S=(null==b?void 0:b.datetime)?new Date((x=new Date(b.datetime)).getFullYear(),x.getMonth(),x.getDate()):new Date(new Date().getFullYear(),11,31),_=Array.isArray(null==v?void 0:v.dates)?v.dates:[],D=_.some(e=>"Selling Fast"===e.type),T=_.some(e=>"Sold Out"===e.type),P=[{icon:"Tickets",iconClassName:"available mr-1",label:"Available"},...D?[{icon:(null==j||null==(t=j[0])?void 0:t.icons)||"Time",iconClassName:"selling-fast mr-1",label:w||"Selling Fast"}]:[],...T?[{icon:(null==k||null==(l=k[0])?void 0:l.icons)||"Close",iconClassName:"soldout mr-1",label:N||"Sold Out"}]:[]],F=null==g||null==(m=g.root)||null==(n=m.children)?void 0:n.map((e,t)=>(0,a.jsx)(s.Y2,{node:e},t)),L=(null==f||null==(u=f.root)||null==(p=u.children)?void 0:p.map((e,t)=>(0,a.jsx)(s.Y2,{node:e},t)))||[];return(0,a.jsx)("section",{className:(0,r.A)(y?"tablet:p-2 desktop:p-8":"p-8 desktop:p-16"),children:(0,a.jsxs)("div",{className:(0,r.A)("mx-auto w-[550px] max-w-full overflow-hidden bg-primary-cocoa-1 p-0 shadow-[0px_4px_8px_0px_rgba(63,0,11,0.2)] desktop:rounded-t-[16px]",y?"tablet:rounded-3xl":"rounded-3xl"),children:[(0,a.jsxs)("div",{className:"flex flex-shrink-0 items-start justify-between overflow-hidden border-b border-primary-cocoa-2 bg-secondary-white px-6 pb-6 pt-8 desktop:rounded-t-[16px]",children:[F&&(0,a.jsxs)("div",{className:"flex items-start gap-3 bg-secondary-white font-filson-pro text-primary-cocoa [&_p]:text-label-l",children:[(0,a.jsx)(c.default,{width:"24",height:"24",className:"mt-1 flex-shrink-0"}),(0,a.jsx)("div",{className:"text-primary-cocoa [&_h3]:text-p-m [&_h3]:font-bold tablet:[&_h3]:text-h4",children:F})]}),y&&(0,a.jsx)("button",{className:"flex h-6 w-8 justify-center",onClick:e=>{null==y||y(e)},children:(0,a.jsx)(o.default,{width:"13",height:"24",className:"fill-primary-cocoa"})})]}),(0,a.jsx)("div",{className:(0,r.A)("p-6 py-8",y&&"max-h-[calc(100dvh-100px)] overflow-y-auto tablet:rounded-b-3xl desktop:max-h-[calc(100dvh-200px)] md-desktop:max-h-fit"),children:(0,a.jsx)("div",{className:(0,r.A)("increaseFirstChild p-4 pt-0",h),children:(0,a.jsxs)("div",{className:"mini-calendar-datepicker block overflow-hidden rounded-lg bg-secondary-white text-primary-cocoa",children:[(0,a.jsx)(i(),{formatWeekDay:e=>e.substr(0,1),calendarClassName:"inline-datepicker inline-flex w-full font-filson-pro font-medium",inline:!0,minDate:C,maxDate:S,renderDayContents:(e,t)=>{var l,s,n;let[i="01",o="01",c="1970"]=new Intl.DateTimeFormat("en-US",{timeZone:"America/Ne
1w_York",year:"numeric",month:"2-digit",day:"2-digit"}).format(t).split("/"),m="".concat(c,"-").concat(i.padStart(2,"0"),"-").concat(o.padStart(2,"0")),p=_.some(e=>"Selling Fast"===e.type&&e.date===m);return _.some(e=>"Sold Out"===e.type&&e.date===m)?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("span",{className:"dp-day soldout bg-primary-twizzler-3",title:N||"Sold Out",children:["".concat(e),(0,a.jsx)("span",{className:"icon-container",children:(0,a.jsx)(d.A,{icon:(null==k||null==(l=k[0])?void 0:l.icons)||"Close",btnClassName:"fill-primary-cocoa"})})]})}):p?A?(0,a.jsxs)("a",{href:null==A?void 0:A.url,target:null==A?void 0:A.target,className:"dp-day mr-1 !cursor-pointer bg-rides-yellow-lighten text-primary-cocoa !no-underline hover:bg-rides-yellow",title:w||"Purchase Tickets",children:[e,(0,a.jsx)("span",{className:"icon-container",children:(0,a.jsx)(d.A,{icon:(null==j||null==(s=j[0])?void 0:s.icons)||"Time",btnClassName:"fill-primary-cocoa"})})]}):(0,a.jsxs)("span",{className:"dp-day selling-fast mr-1 bg-rides-yellow-lighten",title:w||"Selling Fast",children:["".concat(e),(0,a.jsx)("span",{className:"icon-container",children:(0,a.jsx)(d.A,{icon:(null==j||null==(n=j[0])?void 0:n.icons)||"Time",btnClassName:"fill-primary-cocoa"})})]}):A?(0,a.jsxs)("a",{href:null==A?void 0:A.url,target:null==A?void 0:A.target,className:"dp-day mr-1 !cursor-pointer bg-primary-zoo-4 text-primary-cocoa !no-underline hover:bg-primary-zoo",title:"Purchase Tickets",children:[e,(0,a.jsx)("span",{className:"icon-container",children:(0,a.jsx)(d.A,{icon:"Tickets",btnClassName:"fill-primary-cocoa"})})]}):(0,a.jsxs)("span",{className:(0,r.A)("dp-day mr-1 bg-primary-zoo-4 text-primary-cocoa"),title:"Purchase Tickets",children:[e,(0,a.jsx)("span",{className:"icon-container",children:(0,a.jsx)(d.A,{icon:"Tickets",btnClassName:"fill-primary-cocoa"})})]})}}),(0,a.jsxs)("div",{className:"box-border rounded-b-lg p-8 text-left",children:[(0,a.jsx)("div",{className:"flex flex-col justify-center gap-x-6 gap-y-2 tablet:flex-row",children:P.map(e=>(0,a.jsxs)("p",{className:"mt-0 flex items-start gap-x-1 text-p-xs",children:[(0,a.jsx)("span",{className:"".concat(e.iconClassName," align-baseline"),children:(0,a.jsx)(d.A,{width:"20",icon:e.icon})}),e.label]},e.label))}),L&&(0,a.jsx)("div",{className:"mt-2 [&_p]:text-p-xs",children:L})]})]})})})]})})}},31196:(e,t,l)=>{"use strict";l.d(t,{default:()=>x});var a=l(95155),s=l(11597),r=l(2821),n=l(79072),i=l(79669),o=l(3132),d=l(44281),c=l(95053),m=l(93787),p=l(4866),u=l(4146);function x(e){let{quickLinkCta:t,quickLinks:l}=e,x=(0,s.fKV)(t),h=Array.isArray(x),f=(0,s.fKV)(l);return(0,a.jsxs)("div",{className:"m-4 flex max-w-[300px] flex-col gap-6 rounded-xl border border-primary-cocoa pt-6 leading-6 text-primary-cocoa",children:[h&&x.length>0?(0,a.jsx)("div",{className:"mx-10 mt-5 border-primary-cocoa-2",children:x.map((e,t)=>{var l,s,d,c,m;let p=(0,i.xC)(e),u=Array.isArray(null==e?void 0:e.backgroundColor)&&(null==e||null==(l=e.backgroundColor[0])?void 0:l.theme);return(0,a.jsxs)(o.A,{ariaLabel:(null==e?void 0:e.ariaLabel)||(null==e?void 0:e.title),egalEntryCode:null==e?void 0:e.egalEntryCode,href:p,size:"sm",variant:u||"Chocolate",target:(null==e?void 0:e.newWindow)?"_blank":"_self",iconPosition:null==e?void 0:e.iconPosition,outlined:null==e?void 0:e.outlined,className:"lg-desktop:button-md group mb-4 w-full flex-grow last:mb-0",children:[(null==e||null==(d=e.selectedIcon)||null==(s=d[0])?void 0:s.icons)&&(0,a.jsx)(n.A,{icon:null==e||null==(m=e.selectedIcon)||null==(c=m[0])?void 0:c.icons,btnClassName:(0,r.A)("mr-3")}),null==e?void 0:e.title]},"button-".concat(t))})}):null,f&&f.map((e,t)=>(null==e?void 0:e.title)=="Quick Links"?(0,a.jsxs)("div",{className:"mx-10 flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"font-filson-pro font-medium",children:null==e?void 0:e.title}),(null==e?void 0:e.hyperlinks)&&(null==e?void 0:e.hyperlinks.map((e,t)=>{var l;return(0,a.jsx)("a",{href:null==e||null==(l=e.path)?void 0:l.path,className:"block font-proxima-nova text-p-s font-medium",children:null==e?void 0:e.title},t)}))]},t):null),(0,a.jsxs)("div",{className:"mx-10 flex flex-col gap-2 border-t border-primary-cocoa-2 pt-6",children:[(0,a.jsx)("p",{className:"font-filson-pro font-medium",children:"Social"}),(0,a.jsxs)("a",{href:"https://m.me//Hersheypark/",className:"mb-0 font-proxima-nova text-p-s font-medium underline hover:no-underline",title:"Chat with us on Facebook Messenger in a new window",target:"_blank",rel:"noreferrer",children:["Facebook Messenger",(0,a.jsx)(p.default,{width:"14",height:"14",className:"ml-2 inline"})]}),(0,a.jsx)("p",{className:"font-proxima-nova text-p-s font-medium",children:"Available 8 AM - 5 PM Monday through Friday"})]}),(0,a.jsxs)("div",{className:"mx-10",children:[(0,a.jsx)("p",{className:"mb-2 font-filson-pro text-p-s font-medium",children:"Engage with Us"}),(0,a.jsx)("a",{href:"https://www.facebook.com/Hersheypark",title:"Visit our Facebook page in a new window",target:"_blank",className:"button-outlined group inline-flex h-[40px] w-[40px] flex-shrink-0 items-center justify-center rounded-full border border-primary-cocoa align-top transition-all hover:bg-primary-cocoa",rel:"noreferrer",children:(0,a.jsx)(c.default,{width:"17",height:"17",className:"fill-primary-cocoa group-hover/udc:fill-secondary-white group-hover:fill-secondary-white"})}),(0,a.jsx)("a",{href:"https://instagram.com/Hersheypark",title:"Visit our Instagram page in a new window",target:"_blank",className:"button-outlined group ml-3 inline-flex h-[40px] w-[40px] flex-shrink-0 items-center justify-center rounded-full border border-primary-cocoa align-top transition-all hover:bg-primary-cocoa",rel:"noreferrer",children:(0,a.jsx)(m.default,{width:"14",height:"16",className:"fill-primary-cocoa group-hover/udc:fill-secondary-white group-hover:fill-secondary-white"})}),(0,a.jsx)("a",{href:"https://x.com/Hersheypark",title:"Visit our X page in a new window",target:"_blank",className:"button-outlined group ml-3 inline-flex h-[40px] w-[40px] flex-shrink-0 items-center justify-center rounded-full border border-primary-cocoa align-top transition-all hover:bg-primary-cocoa",rel:"noreferrer",children:(0,a.jsx)(u.default,{width:"15",height:"15",className:"fill-primary-cocoa group-hover/udc:fill-secondary-white group-hover:fill-secondary-white"})})]}),f&&f.map((e,t)=>(null==e?void 0:e.title)=="Phone Numbers"?(0,a.jsx)("div",{className:"mx-10 flex flex-col gap-4 border-t border-primary-cocoa-2 pt-6",children:(null==e?void 0:e.hyperlinks)&&e.hyperlinks.map((e,t)=>{var l,s;return(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-filson-pro text-p-s font-medium",children:null==e?void 0:e.title}),(0,a.jsx)("a",{href:"tel:".concat(null==(l=e.path)?void 0:l.path.replace(/[- )(]/g,"")),className:"block font-proxima-nova text-p-s font-medium",children:null==(s=e.path)?void 0:s.path},t)]},t)})},t):null),(0,a.jsxs)("div",{className:"mx-10 flex flex-col gap-2 border-t border-primary-cocoa-2 py-6",children:[(0,a.jsx)("p",{className:"font-filson-pro font-medium",children:"Find Us"}),(0,a.jsxs)("p",{className:"mt-0 font-proxima-nova text-p-s font-medium",children:[(0,a.jsx)("span",{className:"block",children:"100 W. Hersheypark Dr.,"}),(0,a.jsx)("span",{className:"block",children:"Hershey, PA 17033"})]}
1),(0,a.jsxs)("a",{href:"https://www.google.com/maps?saddr=Current+Location&daddr=Park+Blvd+%26+Hersheypark+Dr,+Hershey,+PA",className:"mt-1 block font-proxima-nova text-p-s font-medium underline hover:no-underline",target:"_blank",rel:"noreferrer",title:"Get directions to Hersheypark in a new window",children:[(0,a.jsx)(d.default,{width:"14",height:"14",className:"mr-2 inline-block"}),"Get Directions"]})]})]})}},35236:(e,t,l)=>{"use strict";l.d(t,{default:()=>h});var a=l(95155),s=l(37935),r=l(78674),n=l(99228),i=l(75513),o=l(6180),d=l(88901),c=l(13948),m=l(16405),p=l(12115),u=l(26736),x=l(81275);let h=e=>{let{rewardsData:t,component:l,footnote:h}=e,[f,v]=(0,p.useState)(new Date),g=(0,p.useMemo)(()=>{let e=t.map(e=>e.start).map(e=>e.split(" ")[0]).map(e=>new Date("".concat(e,"T00:00:00"))).filter(e=>!Number.isNaN(e.getTime()));return 0===e.length?(0,r.w)(new Date):(0,r.w)(new Date(Math.max(...e.map(e=>e.getTime()))))},[t]),b=(0,o.k)({start:(0,r.w)(f),end:(0,d.p)(f)}),y=b.some(e=>{let l=(0,c.GP)(e,"yyyy-MM-dd");return t.some(e=>e.start.split(" ")[0]===l)});return(0,a.jsxs)("div",{id:"rewards-calendar",className:"bg-primary-cocoa/10",children:[(0,a.jsx)("header",{className:"bg-secondary-white desktop:px-12 desktop:py-3",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("div",{className:"relative flex flex-row items-baseline p-4 desktop:p-0",children:(0,a.jsx)("h2",{className:"mb-0 inline-block font-filson-pro text-h2-m text-primary-cocoa",children:(0,c.GP)(f,"MMMM yyyy")})}),(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between gap-4 pr-3 desktop:py-3",children:[(0,a.jsx)("button",{className:"button-bg-transparent button-transition button-gradient flex h-[40px] w-[40px] flex-col items-center justify-center rounded-full border-2 border-primary-cocoa align-middle","aria-label":"View Previous Date",onClick:()=>(()=>{let e=(0,n.a)(f,1);e>=(0,r.w)(new Date)&&v(e)})(),disabled:f.getMonth()===new Date().getMonth()&&f.getFullYear()===new Date().getFullYear(),children:(0,a.jsx)(u.A,{width:"15",height:"15",className:""})}),(0,a.jsx)("button",{className:"button-bg-transparent button-transition button-gradient flex h-[40px] w-[40px] flex-col items-center justify-center rounded-full border-2 border-primary-cocoa align-middle","aria-label":"View Next Date",onClick:()=>(()=>{let e=(0,i.P)(f,1);(0,r.w)(e)<=g&&v(e)})(),disabled:(0,r.w)((0,i.P)(f,1))>g,children:(0,a.jsx)(x.A,{width:"15",height:"15",className:""})})]})]})}),y?(0,a.jsx)("div",{className:"mx-12 my-8",children:b.map(e=>{let l=(0,c.GP)(e,"yyyy-MM-dd"),s=t.filter(e=>e.start.split(" ")[0]===l);return null==s?void 0:s.map((e,t)=>{let l=e.description.replace(/</g,"<").replace(/>/g,">").replace(/<[^>]*?>/g,e=>e.replace(/'/g,'"'));return(0,a.jsx)("div",{className:"mb-4 flex flex-row items-center gap-8 rounded-md bg-secondary-white p-8 text-primary-cocoa",children:(0,a.jsxs)("div",{className:"underline-link grow whitespace-normal bg-secondary-white",children:[e.type&&(0,a.jsx)("p",{className:"font-filson-pro text-p-s font-medium text-rides-orange-darken",children:e.type}),e.title&&(0,a.jsx)("p",{className:"mt-0 font-filson-pro text-p-m font-bold",children:e.title}),(0,a.jsx)("p",{className:"text-p-m font-bold",children:e.end.split(" ")[0]===e.start.split(" ")[0]?"".concat((0,c.GP)(new Date(e.start),"MMMM d, yyyy")):"".concat((0,c.GP)(new Date(e.start),"MMMM d")," - ").concat((0,c.GP)(new Date(e.end),"MMMM d, yyyy"))}),l&&(0,a.jsx)("p",{className:"text-p-m",children:(0,m.Ay)(l)}),["giant","king","full","bite"].map((t,l)=>e.passes.includes(t)&&(0,a.jsx)("p",{className:"mb-0 ".concat(l>0?"ml-3":""," inline-block rounded-md px-3 py-1 text-p-s font-medium ").concat("giant"===t?"bg-secondary-remix":"king"===t?"bg-secondary-reeses":"full"===t?"bg-primary-boardwalk":"bg-primary-cocoa text-secondary-white"),children:t.charAt(0).toUpperCase()+t.slice(1)},t))]})},t)})})}):(0,a.jsx)("div",{className:"mx-12 my-8",children:(0,a.jsx)("div",{className:"mb-4 flex flex-row items-center gap-8 rounded-md bg-secondary-white p-8 text-primary-cocoa",children:(0,a.jsx)("h3",{className:"mb-0",children:"Rewards Unavailable."})})}),h&&(0,a.jsx)(s.mj,{parameterId:"footnote",component:l,className:"mx-20 pb-16 child:text-primary-cocoa [&>p]:text-p-xs",itemProp:"description"})]})}},38152:(e,t,l)=>{"use strict";l.d(t,{default:()=>g});var a=l(95155),s=l(76784),r=l(11597),n=l(51396),i=l(2821),o=l(12115),d=l(9775);let c=()=>(0,a.jsx)("div",{className:"loading-overlay flex h-screen items-center justify-center",children:(0,a.jsx)("div",{className:"spinner",children:(0,a.jsx)(d.default,{width:"100",height:"100"})})});var m=l(18500),p=l(82002),u=l(85395),x=l(31947),h=l(91100),f=l(474
111),v=l(40057);function g(e){let{title:t,links:l,component:d,context:g}=e,[b,y]=(0,o.useState)(!1),j=(0,r.fKV)(l),w=null==g?void 0:g.matchedRoute,{context:k}=(0,n.Ti)(),{isMatch:N}=(0,m.s)("desktop"),[A,C]=(0,o.useState)({category_links:!0});return(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)(c,{}),(0,a.jsx)("div",{className:"links mb-5",children:(0,a.jsx)("div",{className:(0,i.A)("rounded-[8px] bg-primary-cream px-4 pt-5",null==d?void 0:d.type),children:(0,a.jsx)(u.A,{id:"category_links",triggerClassName:(0,i.A)("flex mb-4 gap-8 justify-between items-center px-0 py-0 relative",N?"cursor-default":"cursor-pointer"),triggerContent:e=>(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)(v.A,{title:t,htmlTag:"h4",component:d,context:g,titleClassName:"font-filson-pro font-medium mb-5 text-p-s"}),!N&&(e?(0,a.jsx)(h.A,{width:"21",height:"24",className:"mb-4 shrink-0"}):(0,a.jsx)(x.A,{width:"21",height:"24",className:"mb-4 shrink-0"}))]}),isExpanded:N||A.category_links,onTriggerClick:()=>{var e;return e="category_links",void C(t=>({...t,[e]:!t[e]}))},contentClassName:N?"!h-full !opacity-100 !visible !block":"",children:l&&(0,a.jsx)("ul",{className:"no-list-style",children:j.map((e,t)=>{var l,r;return(0,a.jsx)("li",{className:"mb-5 text-p-s last:mb-0 last:pb-5",children:(null==(l=e.path)?void 0:l.path)!==w?(0,a.jsx)(f.A,{href:(null==(r=e.path)?void 0:r.path)||"#",className:(0,i.A)("relative flex items-center font-filson-pro !text-p-s !no-underline hover:!underline md-desktop:whitespace-nowrap"),onClick:t=>{t.metaKey||t.ctrlKey||(y(!0),setTimeout(()=>{y(!1)},1e4));let l=p.H.Filter_Categories;(0,s.sendGTMEvent)({event:l,value:{data_title:"Filter_Categories",data_text:e.title}}),null==k||k.update({events:[{event:l}]})},children:e.title}):(0,a.jsx)("span",{className:"font-bold",children:e.title})},t)})})})})})]})}},38866:(e,t,l)=>{"use strict";l.d(t,{default:()=>Z});var a=l(95155),s=l(12411),r=l(97081),n=l(36385),i=l(11597),o=l(51396),d=l(37935),c=l(13948),m=l(26467),p=l(12115),u=l(47650),x=l(12669),h=l(47411),f=l(79072),v=l(18500),g=l(82002),b=l(9555);let y=["hersheypark","zooamerica","boardwalk","darknights","sweetlights","chocolatetown","ticketing","hershey","treatville"],j=(0,p.createContext)({filterState:{activeFilters:y},setFilterState:()=>{}}),w=e=>{let{children:t}=e,[l,s]=(0,p.useState)({activeFilters:y});return(0,a.jsx)(j.Provider,{value:{filterState:l,setFilterState:s},children:t})};var k=l(90604),N=l.n(k),A=l(5593),C=l(31947),S=l(26736),_=l(81275),D=l(2821),T=l(13467),P=l(9775),F=l(55899),L=l(17638),E=l(75387),I=l(95413),z=l(74332);let M=e=>{let{id:t,filter:l,Icon:s,label:r,className:n}=e,{context:i}=(0,o.Ti)(),{filterState:d,setFilterState:c}=(0,p.useContext)(j);return(0,a.jsxs)("button",{id:t,onClick:()=>{let e=d.activeFilters.includes(l)?d.activeFilters.filter(e=>e!==l):[...d.activeFilters,l],t={hersheypark:"hour-holder-7",zooamerica:"hour-holder-2",boardwalk:"hour-holder-38",darknights:"hour-holder-217",treatville:"hour-holder-163",sweetlights:"hour-holder-36"}[l];t&&document.querySelectorAll(".".concat(t)).forEach(t=>t.classList.toggle("hidden",!e.includes(l)));let a=g.H.Filter_Calendar;(0,g.R)({event:a,value:{data_title:"Filter_Calendar",data_text:l}}),null==i||i.update({events:[{event:a}]}),c({...d,activeFilters:e})},className:(0,D.A)("group relative flex w-full flex-col items-center justify-center rounded-2xl p-2 py-4 text-p-xxs ring-2 transition-all hover:ring-4 lg-mobile:text-p-xs tablet:flex-row md-desktop:text-p-s",n&&n,d.activeFilters.includes(l)?"col-span-1 text-primary-cocoa ring-primary-cocoa":"text-primary-cocoa-2 ring-primary-cocoa-2 [&>.close]:bg-secondary-white"),value:l,children:[(0,a.jsx)(s,{width:"18",height:"20",className:(0,D.A)("mb-1 mr-2 tablet:mb-0",d.activeFilters.includes(l)?"fill-primary-cocoa":"fill-primary-cocoa-2 child:child:fill-primary-cocoa-2")}),r,(0,a.jsx)(T.default,{width:"15",height:"15",className:(0,D.A)("close absolute right-2 top-2 ml-5 cursor-pointer rounded-full border-[1.5px] border-primary-cocoa bg-secondary-white p-[2px] transition-all duration-300",d.activeFilters.includes(l)?"-rotate-45":"rotate-0"),title:d.activeFilters.includes(l)?"Hide Location":"Show Location"})]})},O=e=>{let{showBoardwalk:t,showDarkNights:l,showSweetLights:s,showTreatville:r,onlyMonthView:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(M,{id:"hersheyparkFilterBtn",filter:"hersheypark",Icon:P.default,label:"Hersheypark"}),t&&(0,a.jsx)(M,{id:"boardwalkFilterBtn",filter:"boardwalk",Icon:I.default,label:"The Boardwalk"}),l&&(0,a.jsx)(M,{id:"darknightsFilterBtn",filter:"darknights",Icon:I.default,label:"Dark Nights"}),s&&(0,a.jsx)(M,{id:"sweetlightsFilterBtn",filter:"sweetlights",Icon:I.default,label:"Sweet Lights"}),r&&(0,a.jsx)(M,{id:"treatvilleFilterBtn",filter:"treatville",Icon:I.default,label:"Treatville"}),(0,a.jsx)(M,{id:"zooamericaFilterBtn",filter:"zooamerica",Icon:z.default,label:"ZooAmerica"}),!n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(M,{id:"chocolatetownFilterBtn",filter:"chocolatetown",Icon:L.default,label:"Chocolatetown"}),(0,a.jsx)(M,{id:"ticketingFilterBtn",filter:"ticketing",Icon:E.default,label:"Tickets Office"}),(0,a.jsx)(M,{id:"hersheyFilterBtn",filter:"hershey",Icon:F.default,label:"Hershey, PA"})]})]})};function R(e){let{calendarRef:t,minDate:l,maxDate:s,selectedDate:r,hoursData:n,showBoardwalk:i,showDarkNights:d,showTreatville:c,showSweetLights:m,handleDateSelect:u,highliteSelected:x}=e,h=(0,p.useRef)(null),f=(0,p.useRef)(null),b=(0,p.useRef)(null),y=(0,p.useRef)(null),j=(0,p.useRef)(null),w=(0,p.useRef)(null),[k,D]=(0,p.useState)(!1),[T,P]=(0,p.useState)("dayGridWeek");(0,p.useEffect)(()=>{var e;let l=null==(e=t.current)?void 0:e.getApi();l&&l.on("datesSet",function(e){let t=new Date,l=new Date(e.view.currentStart),a="dayGridDay"===e.view.type,s=t.getFullYear()===l.getFullYear()&&t.getMonth()===l.getMonth()&&t.getDate()===l.getDate();D(a&&s),P(e.view.type)})},[t]);let[F,L]=(0,p.useState)(!0);(0,p.useEffect)(()=>{var e;let l=null==(e=t.current)?void 0:e.getApi();l&&l.on("datesSet",function(e){let t=new Date;t.setHours(0,0,0,0);let l=new Date(e.view.currentStart);l.setHours(0,0,0,0),L(l>t)})},[t]);let[E,I]=(0,p.useState)(!0);(0,p.useEffect)(()=>{var e;let l=null==(e=t.current)?void 0:e.getApi();l&&l.on("datesSet",function(e){let t=new Date(s);I(new Date(e.view.currentEnd)<=t)})},[t,s]);let{context:z}=(0,o.Ti)();(0,p.useEffect)(()=>{var e;let l=null==(e=t.current)?void 0:e.getApi();l&&l.on("datesSet",function(e){if(h.current){let t="";t="dayGridDay"===e.view.type?e.view.currentStart.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):e.view.title,h.current.textContent=t}})},[t]);let M=e=>{var l;let a=null==(l=t.current)?void 0:l.getApi();if(a){let t=a.getDate(),l=new Date;if("prev"===e)a.prev();else if("next"===e)a.next();else{let e=a.view;l>=e.activeStart&&l<e.activeEnd?(a.changeView("dayGridDay"),y.current&&(y.current.value="dayGridDay")):a.today(),a.today()}u(t)}},[R,V]=(0,p.useState)(!1),[H,B]=(0,p.useState)(!1),{isMatch:G}=(0,v.s)("tablet"),{isMatch:K}=(0,v.s)("desktop"),W=[{id:7,className:"hersheypark",label:"Hersheypark"},{id:2,className:"zooamerica",label:"ZooAmerica"},{id:38,className:"boardwalk",label:"Boardwalk"},{id:217,className:"darknights",label:"Dark Nights"},{id:163,className:"treatville",label:"Treatville"}];return(0,a.jsxs)("header",{className:"bg-secondary-white desktop:px-12 desktop:py-3",children:[(0,a.jsxs)("div",{className:"items-center justify-between desktop:flex",children:[(0,a.jsxs)("div",{className:"relative mr-4 flex flex-row items-baseline p-4 desktop:p-0",children:[(0,a.jsx)("h2",{ref:h,className:"mb-0 inline-block font-filson-pro text-h2-m text-primary-cocoa",children:new Date().toLocaleDateString(void 0,{month:"long",year:"numeric"})}),(0,a.jsxs)("div",{className:"ml-3 desktop:relative",children:[(0,a.jsx)("button",{"aria-label":"Click to pick a date in the calendar",onClick:()=>V(!R),children:(0,a.jsx)(A.default,{})}),R&&(0,a.jsxs)("div",{className:"hours-datepicker absolute left-0 top-full z-[1001] box-border w-full font-filson-pro font-medium text-primary-cocoa desktop:w-auto",children:[(0,a.jsx)(N(),{ref:f,selected:r,onChange:e=>{if(e){var l;u(e),null==(l=t.current)||l.getApi().gotoDate(e)}},onSelect:()=>V(!R),onClickOutside:e=>{e.target&&!e.target.closest("button")&&V(!1)},formatWeekDay:e=>e.substring(0,1),calendarClassName:"inline-datepicker block desktop:inline-flex desktop:pb-6 w-full font-filson-pro font-medium desktop:px-12 rounded-none desktop:rounded-md",inline:!0,monthsShown:2,showPreviousMonths:!1,minDate:l,maxDate:s,renderDayContents:(e,t)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"dp-day",children:e}),W.map(e=>{var l;let s="".concat(t.getFullYear(),"-").concat(String(t.getMonth()+1).padStart(2,"0"),"-").concat(String(t.getDate()).padStart(2,"0")),r=null==n||null==(l=n[e.id])?void 0:l.hours_list;if(r&&r[s])return(0,a.jsx)("span",{className:"".concat(e.className," dot")}
1,e.id)})]})}),(0,a.jsxs)("div",{ref:w,className:"bg-secondary-white px-4 py-2 text-p-xs desktop:hidden",children:["Availibility:"," ",W.map(e=>(0,a.jsxs)("p",{className:"inline text-p-xs",children:[(0,a.jsx)("span",{className:"".concat(e.className," align-baseline")}),e.label]},e.className))]})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col flex-wrap items-center justify-between gap-4 border-t border-primary-cocoa-2 px-6 py-3 desktop:w-fit desktop:flex-row desktop:border-0 desktop:px-0",children:[(0,a.jsxs)("div",{className:"flex w-full flex-grow flex-wrap items-center justify-between gap-4 desktop:w-fit",children:[(0,a.jsxs)("button",{className:"relative rounded-sm border border-secondary-transparent p-1 font-proxima-nova text-p-xxs transition-all after:absolute after:inset-0 after:top-auto after:h-[2px] after:w-full after:bg-primary-cocoa after:transition-all after:duration-300 after:content-[''] hover:after:w-0 lmd-mobile:text-p-xs desktop:text-p-s",onClick:()=>B(!H),children:["Filter Locations (",(()=>{let e="dayGridMonth"===T?2:5;return[i,d,m,c].filter(Boolean).length+e})(),")",(0,a.jsx)(C.A,{className:"ml-1 inline-block w-[13px]"})]}),(0,a.jsxs)("div",{className:"font-proxima-nova text-p-xxs text-primary-cocoa desktop:text-p-s",children:[(0,a.jsx)("label",{htmlFor:"viewSelector",className:"mr-2 text-p-xxs !font-medium lmd-mobile:text-p-xs desktop:text-p-s",children:"Switch Current View:"}),(0,a.jsxs)("select",{id:"viewSelector",className:"cursor-pointer rounded-md border border-primary-cocoa bg-secondary-white p-1 text-p-xxs transition-all hover:border-secondary-transparent lmd-mobile:text-p-xs desktop:text-p-s",ref:y,value:T,onChange:e=>{P(e.target.value),(e=>{var l,a,s,r,n,i,o;let d=null==(l=t.current)?void 0:l.getApi();d&&d.changeView(e),y.current&&(y.current.value="dayGridDay"===e?"dayGridDay":e),"dayGridMonth"===e?(null==(a=document.getElementById("chocolatetownFilterBtn"))||a.classList.add("hidden"),null==(s=document.getElementById("ticketingFilterBtn"))||s.classList.add("hidden"),null==(r=document.getElementById("hersheyFilterBtn"))||r.classList.add("hidden")):(null==(n=document.getElementById("chocolatetownFilterBtn"))||n.classList.remove("hidden"),null==(i=document.getElementById("ticketingFilterBtn"))||i.classList.remove("hidden"),null==(o=document.getElementById("hersheyFilterBtn"))||o.classList.remove("hidden"));let c=g.H.Filter_Calendar;(0,g.R)({event:c,value:{data_title:"Filter_Calendar",data_text:e}}),null==z||z.update({events:[{event:c}]}),x()})(e.target.value)},children:[(0,a.jsx)("option",{value:"dayGridDay",children:"1-Day"}),(0,a.jsx)("option",{value:"dayGrid3Day",children:"3-Day"}),G&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("option",{value:"dayGridWeek",children:"5-Day"})}),K&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("option",{value:"dayGridMonth",children:"Month"})})]})]})]}),!K&&H&&(0,a.jsx)("div",{ref:b,className:"grid w-full grid-cols-3 flex-row justify-stretch gap-4 border-t border-primary-cocoa-2 p-6 px-0 font-filson-pro font-medium desktop:w-fit",children:(0,a.jsx)(O,{showBoardwalk:i,showDarkNights:d,showSweetLights:m,showTreatville:c})}),(0,a.jsxs)("div",{className:"flex w-full flex-grow flex-wrap justify-between gap-4 desktop:w-fit",children:[(0,a.jsx)("button",{id:"previous-btn",className:"button-bg-transparent button-transition button-gradient flex h-[40px] w-[40px] flex-col items-center justify-center rounded-full border-2 border-primary-cocoa align-middle","aria-label":"View Previous Date",onClick:()=>M("prev"),disabled:!F,children:(0,a.jsx)(S.A,{width:"15",height:"15"})}),(0,a.jsx)("button",{id:"todays-btn",ref:j,className:"button-bg-transparent button-transition button-gradient h-[40px] w-[150px] rounded-full border-2 border-primary-cocoa px-6 font-filson-pro text-link-xs font-medium text-primary-cocoa desktop:block","aria-label":"View Today's Date",onClick:()=>M("today"),disabled:k,children:"Today"}),(0,a.jsx)("button",{id:"next-btn",className:"button-bg-transparent button-transition button-gradient flex h-[40px] w-[40px] flex-col items-center justify-center rounded-full border-2 border-primary-cocoa align-middle","aria-label":"View Next Date",onClick:()=>M("next"),disabled:!E,children:(0,a.jsx)(_.A,{width:"15",height:"15"})})]})]})]}),K&&H&&(0,a.jsx)("div",{ref:b,className:"grid grid-cols-3 flex-row justify-stretch gap-4 border-t border-primary-cocoa-2 p-6 font-filson-pro font-medium desktop:grid-cols-6 desktop:gap-6 md-desktop:px-24",children:(0,a.jsx)(O,{showBoardwalk:"dayGridMonth"!==T&&i,showDarkNights:"dayGridMonth"!==T&&d,showSweetLights:m,showTreatville:"dayGridMonth"!==T&&c,onlyMonthView:"dayGridMonth"===T})})]})}var V=l(55817),H=l(41428),B=l(89030),G=l(712),K=l(30785);let W=e=>{if(!e)return"";let[t,l=1,a]=e.split("-").map(Number);return new Date(null!=t?t:0,l-1,a).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})},q=e=>{var t,l,s,r,n,o,d,c,m,u,x,f,v,g,b,y,w,k,N,A,C,S,_,T,M;let{boardwalkButton:O,boardwalkDescription:R="",boardwalkTitle:q="The Boardwalk",chocolatetownButton:U,chocolatetownDescription:Y="",chocolatetownTitle:Z="ChocolateTown",chocolateworldButton:X,chocolateworldDescription:Q="",chocolateworldTitle:J="Chocolate World",chocolatierButton:$,chocolatierDescription:ee="",chocolatierTitle:et="The Chocolatier",darknightsButton:el,darknightsDescription:ea="",darknightsTitle:es="Dark Nights",hersheygardensButton:er,hersheygardensDescription:en="",hersheygardensTitle:ei="Hershey Gardens",hersheypaButton:eo,hersheypaDescription:ed="",hersheypaTitle:ec="Hershey, PA",hersheystoryButton:em,hersheystoryDescription:ep="",hersheystoryTitle:eu="Hershey Story",hpButton:ex,hpDescription:eh="",hpTitle:ef="Hersheypark",hpsupplyButton:ev,hpsupplyDescription:eg="",hpsupplyTitle:eb="Hersheypark Supply Co.",miltonsButton:ey,miltonsDescription:ej="",miltonsTitle:ew="Miltons",sweeterieButton:ek,sweeterieDescription:eN="",sweeterieTitle:eA="The Sweeterie",sweetlightsButton:eC,sweetlightsDescription:eS="",sweetlightsTitle:e_="Sweet Lights",ticketingButton:eD,ticketingDescription:eT="",ticketingTitle:eP="Ticketing",treatvilleButton:eF,treatvilleDescription:eL="",treatvilleTitle:eE="Trick or Treat Trail - Treatville",zooButton:eI,zooDescription:ez="",zooTitle:eM="ZooAmerica",previewHelperText:eO,sweetstartHelperText:eR,showBoardwalk:eV=!0,showDarkNights:eH=!0,showTreatville:eB=!0,showSweetLights:eG=!0,visibleDates:eK}=e,{filterState:eW}=(0,p.useContext)(j),eq=(0,i.fKV)(ex,{toSingle:!0}),eU=(0,i.fKV)(eI,{toSingle:!0}),eY=(0,i.fKV)(O,{toSingle:!0}),eZ=(0,i.fKV)(el,{toSingle:!0}),eX=(0,i.fKV)(eF,{toSingle:!0}),eQ=(0,i.fKV)(eC,{toSingle:!0}),eJ=(0,i.fKV)(U,{toSingle:!0}),e$=(0,i.fKV)($,{toSingle:!0}),e0=(0,i.fKV)(ey,{toSingle:!0}),e1=(0,i.fKV)(ek,{toSingle:!0}),e2=(0,i.fKV)(ev,{toSingle:!0}),e4=(0,i.fKV)(eD,{toSingle:!0}),e5=(0,i.fKV)(eo,{toSingle:!0}),e3=(0,i.fKV)(em,{toSingle:!0}),e6=(0,i.fKV)(er,{toSingle:!0}),e9=(0,i.fKV)(X,{toSingle:!0}
1),e8="America/New_York",e7=new Date().toLocaleDateString("en-CA",{timeZone:e8}),te=(null!=eK?eK:[]).map(e=>{let t=e instanceof Date?e.toLocaleDateString("en-CA",{timeZone:e8}):new Date(e).toLocaleDateString("en-CA",{timeZone:e8}),l=t===e7,s=e instanceof Date?e:new Date(e),r=new Date(new Date().toLocaleDateString("en-CA",{timeZone:e8}));return(0,a.jsxs)("td",{role:"gridcell","data-date":t,className:(0,D.A)("fc-day !cursor-default !p-4",l?"fc-day-today":s<r?"fc-day-past":s>r?"fc-day-future":""),children:[(0,a.jsx)("p",{className:"mb-1 font-filson-pro text-label-xs leading-5",children:W(t)}),(0,a.jsx)("p",{className:"hrs-holder m-0 text-p-m"})]},t)}),tt=(null!=eK?eK:[]).map(e=>{let t=e instanceof Date?e.toLocaleDateString("en-CA",{timeZone:e8}):new Date(e).toLocaleDateString("en-CA",{timeZone:e8}),l=e instanceof Date?e:new Date(e),s=new Date(new Date().toLocaleDateString("en-CA",{timeZone:e8}));return function(e){let{sweetstartHelperText:t,previewHelperText:l,showTooltip:s=!0,cellDateStr:r,isPast:n,isFuture:i,isToday:o}=e;return(0,a.jsxs)("td",{role:"gridcell","data-date":r,className:(0,D.A)("fc-day !cursor-default !p-4",o?"fc-day-today":n?"fc-day-past":i?"fc-day-future":""),children:[(0,a.jsx)("p",{className:"mb-1 font-filson-pro text-label-xs leading-5",children:W(r)}),(0,a.jsx)("p",{className:"hrs-holder m-0 text-p-m"}),(0,a.jsxs)("div",{className:"sweetstart mt-4",children:[(0,a.jsx)("p",{className:"inline text-p-s font-bold underline","data-tooltip-id":"sweetstart",children:"Sweet Start"}),s&&(0,a.jsx)(V.m_,{id:"sweetstart",openOnClick:!0,place:"bottom-start",className:"z-20 max-w-[88%] !bg-primary-cocoa-shade",children:(0,a.jsx)("div",{children:t})}),(0,a.jsx)("p",{className:"hrs-holder mt-0 block text-p-s tablet:text-p-s"})]}),(0,a.jsxs)("div",{className:"previewplan mt-4",children:[(0,a.jsx)("p",{className:"inline text-p-s font-bold underline","data-tooltip-id":"preview",children:"Preview Plan"}),s&&(0,a.jsx)(V.m_,{id:"preview",openOnClick:!0,place:"bottom-start",className:"z-20 max-w-[88%] !bg-primary-cocoa-shade",children:(0,a.jsx)("div",{children:l})}),(0,a.jsxs)("p",{className:"mt-0 block text-p-xs tablet:text-p-s",children:["General Public:",(0,a.jsx)("span",{className:"hrs-holder ml-1 text-p-s"}),(0,a.jsx)("br",{}),"Resort Guests:",(0,a.jsx)("span",{className:"hrs-holder2 ml-1 text-p-s"})]})]}),(0,a.jsx)("div",{className:"fireworks mt-4",children:(0,a.jsx)("p",{className:"inline text-p-s font-bold uppercase","data-tooltip-id":"fireworks",children:"Fireworks"})})]},r)}({sweetstartHelperText:null!=eR?eR:"",previewHelperText:null!=eO?eO:"",showTooltip:!0,cellDateStr:t,isToday:t===e7,isPast:l<s,isFuture:l>s})});return(0,a.jsxs)("div",{id:"dayview",className:"text-primary-cocoa",children:[(0,a.jsxs)("div",{className:"".concat(eW.activeFilters.includes("hersheypark")?"":"hidden"," mb-8 overflow-hidden rounded-2xl bg-secondary-white"),children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b p-4 tablet:flex-row desktop:flex-row desktop:desktop:items-center",children:[(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"self-start rounded-2xl bg-primary-twizzler p-2.5",children:(0,a.jsx)(P.default,{color:"white",width:"40",height:"40"})}),(0,a.jsxs)("div",{className:"ml-4 flex-1",children:[ef&&(0,a.jsx)("h2",{className:"mb-0 font-filson-pro text-p-l !font-bold leading-[1.15em] tablet:text-p-xl",children:ef}),eh&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:eh})]})]})}),(null==eq||null==(t=eq.link)?void 0:t.path)&&(0,a.jsx)(B.A,{href:(null==eq||null==(l=eq.link)?void 0:l.path)||"#",target:(null==eq?void 0:eq.newWindow)?"_blank":"_self",size:"sm",variant:(null==eq?void 0:eq.variant)||"Default",className:"",icon:(null==eq?void 0:eq.icon)?null==eq?void 0:eq.icon:"",egalEntryCode:null==eq?void 0:eq.egalEntryCode,iconPosition:null==eq?void 0:eq.iconPosition,children:null==eq?void 0:eq.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-7 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:tt})})})]}),(0,a.jsxs)("div",{className:"".concat(eW.activeFilters.includes("boardwalk")&&eV?"":"hidden"," mb-8 overflow-hidden rounded-2xl bg-secondary-white"),children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"self-start rounded-2xl bg-primary-boardwalk p-2.5",children:(0,a.jsx)(I.default,{width:"32",height:"32",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{className:"ml-4 flex-1",children:[q&&(0,a.jsx)("h2",{className:"mb-0 font-filson-pro text-p-l !font-bold leading-[1.15em] tablet:text-p-xl",children:q}),R&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:R})]})]}),(null==eY||null==(s=eY.link)?void 0:s.path)&&(0,a.jsx)(B.A,{href:(null==eY||null==(r=eY.link)?void 0:r.path)||"#",target:(null==eY?void 0:eY.newWindow)?"_blank":"_self",size:"sm",variant:(null==eY?void 0:eY.variant)||"Default",outlined:!0,className:"",egalEntryCode:null==eY?void 0:eY.egalEntryCode,icon:(null==eY?void 0:eY.icon)?null==eY?void 0:eY.icon:"",iconPosition:null==eY?void 0:eY.iconPosition,children:null==eY?void 0:eY.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-38 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]}),(0,a.jsxs)("div",{id:"darknightsSection",className:"".concat(eW.activeFilters.includes("darknights")&&eH?"":"hidden"," mb-8 overflow-hidden rounded-2xl bg-secondary-white"),children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"self-start rounded-2xl bg-secondary-black p-2.5",children:(0,a.jsx)(K.default,{width:"32",height:"32",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{className:"ml-4 flex-1",children:[es&&(0,a.jsx)("h2",{className:"mb-0 font-filson-pro text-p-l !font-bold leading-[1.15em] tablet:text-p-xl",children:es}),ea&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:ea})]})]}),(null==eZ||null==(n=eZ.link)?void 0:n.path)&&(0,a.jsx)(B.A,{href:(null==eZ||null==(o=eZ.link)?void 0:o.path)||"#",target:(null==eZ?void 0:eZ.newWindow)?"_blank":"_self",size:"sm",variant:(null==eZ?void 0:eZ.variant)||"Default",outlined:!0,egalEntryCode:null==eZ?void 0:eZ.egalEntryCode,className:"",icon:(null==eZ?void 0:eZ.icon)?null==eZ?void 0:eZ.icon:"",iconPosition:null==eZ?void 0:eZ.iconPosition,children:null==eZ?void 0:eZ.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-217 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]}),(0,a.jsxs)("div",{id:"treatvilleSection",className:"".concat(eW.activeFilters.includes("treatville")&&eB?"":"hidden"," mb-8 overflow-hidden rounded-2xl bg-secondary-white"),children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"self-start rounded-2xl bg-secondary-thrills-1 p-2.5",children:(0,a.jsx)(H.default,{width:"32",height:"32",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{className:"ml-4 flex-1",children:[eE&&(0,a.jsx)("h2",{className:"mb-0 font-filson-pro text-p-l !font-bold leading-[1.15em] tablet:text-p-xl",children:eE}),eL&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:eL})]})]}),(null==eX||null==(d=eX.link)?void 0:d.path)&&(0,a.jsx)(B.A,{href:(null==eX||null==(c=eX.link)?void 0:c.path)||"#",target:(null==eX?void 0:eX.newWindow)?"_blank":"_self",size:"sm",variant:(null==eX?void 0:eX.variant)||"Default",egalEntryCode:null==eX?void 0:eX.egalEntryCode,outlined:!0,className:"",icon:(null==eX?void 0:eX.icon)?null==eX?void 0:eX.icon:"",iconPosition:null==eX?void 0:eX.iconPosition,children:null==eX?void 0:eX.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-163 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]}),(0,a.jsxs)("div",{id:"sweetlightsSection",className:"".concat(eW.activeFilters.includes("sweetlights")&&eG?"":"hidden"," mb-8 overflow-hidden rounded-2xl bg-secondary-white"),children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"self-start rounded-2xl bg-primary-zoo-shade p-2.5",children:(0,a.jsx)(G.default,{width:"32",height:"32",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{className:"ml-4 flex-1",children:[e_&&(0,a.jsx)("h2",{className:"mb-0 font-filson-pro text-p-l !font-bold leading-[1.15em] tablet:text-p-xl",children:e_}),eS&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:eS})]})]}
1),(null==eQ||null==(m=eQ.link)?void 0:m.path)&&(0,a.jsx)(B.A,{href:(null==eQ||null==(u=eQ.link)?void 0:u.path)||"#",target:(null==eQ?void 0:eQ.newWindow)?"_blank":"_self",size:"sm",egalEntryCode:null==eQ?void 0:eQ.egalEntryCode,variant:(null==eQ?void 0:eQ.variant)||"Default",outlined:!0,className:"",icon:(null==eQ?void 0:eQ.icon)?null==eQ?void 0:eQ.icon:"",iconPosition:null==eQ?void 0:eQ.iconPosition,children:null==eQ?void 0:eQ.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-36 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]}),(0,a.jsxs)("div",{className:"".concat(eW.activeFilters.includes("zooamerica")?"":"hidden"," mb-8 overflow-hidden rounded-2xl bg-secondary-white"),children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"self-start rounded-2xl bg-primary-zoo p-2.5",children:(0,a.jsx)(z.default,{width:"32",height:"32",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{className:"ml-4 flex-1",children:[eM&&(0,a.jsx)("h2",{className:"mb-0 font-filson-pro text-p-l !font-bold leading-[1.15em] tablet:text-p-xl",children:eM}),ez&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:ez})]})]}),(null==eU||null==(x=eU.link)?void 0:x.path)&&(0,a.jsx)(B.A,{href:(null==eU||null==(f=eU.link)?void 0:f.path)||"#",target:(null==eU?void 0:eU.newWindow)?"_blank":"_self",egalEntryCode:null==eU?void 0:eU.egalEntryCode,size:"sm",variant:(null==eU?void 0:eU.variant)||"Default",outlined:!0,className:"",icon:(null==eU?void 0:eU.icon)?null==eU?void 0:eU.icon:"",iconPosition:null==eU?void 0:eU.iconPosition,children:null==eU?void 0:eU.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-2 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]}),(0,a.jsxs)("div",{className:"".concat(eW.activeFilters.includes("chocolatetown")?"":"hidden"," mb-8 overflow-hidden rounded-2xl bg-secondary-white p-4"),children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 desktop:flex-row desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"self-start rounded-2xl bg-primary-cocoa p-2.5",children:(0,a.jsx)(L.default,{width:"32",height:"32",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{className:"ml-4 flex-1",children:[Z&&(0,a.jsx)("h2",{className:"mb-0 font-filson-pro text-p-l !font-bold leading-[1.15em] tablet:text-p-xl",children:Z}),Y&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:Y})]})]}),(null==eJ||null==(v=eJ.link)?void 0:v.path)&&(0,a.jsx)(B.A,{href:(null==eJ||null==(g=eJ.link)?void 0:g.path)||"#",target:(null==eJ?void 0:eJ.newWindow)?"_blank":"_self",size:"sm",variant:(null==eJ?void 0:eJ.variant)||"Default",egalEntryCode:null==eJ?void 0:eJ.egalEntryCode,outlined:!0,className:"",icon:(null==eJ?void 0:eJ.icon)?null==eJ?void 0:eJ.icon:"",iconPosition:null==eJ?void 0:eJ.iconPosition,children:null==eJ?void 0:eJ.title})]}),(0,a.jsxs)("div",{className:"mt-4 overflow-hidden rounded-2xl border border-primary-cocoa",children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex-1",children:[et&&(0,a.jsx)("h3",{className:"mb-0 font-filson-pro text-p-m !font-medium leading-[1.15em] tablet:text-p-l",children:et}),ee&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:ee})]}),(null==e$?void 0:e$.path)&&(0,a.jsx)(h.A,{href:(null==e$||null==(b=e$.path)?void 0:b.path)||"#",className:"underline",children:null==e$?void 0:e$.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-198 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]}),(0,a.jsxs)("div",{className:"mt-4 overflow-hidden rounded-2xl border border-primary-cocoa",children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex-1",children:[eA&&(0,a.jsx)("h3",{className:"mb-0 font-filson-pro text-p-m !font-medium leading-[1.15em] tablet:text-p-l",children:eA}),eN&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:eN})]}),(null==e1?void 0:e1.path)&&(0,a.jsx)(h.A,{href:(null==e1||null==(y=e1.path)?void 0:y.path)||"#",className:"underline",children:null==e1?void 0:e1.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-203 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]}),(0,a.jsxs)("div",{className:"mt-4 overflow-hidden rounded-2xl border border-primary-cocoa",children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex-1",children:[ew&&(0,a.jsx)("h3",{className:"mb-0 font-filson-pro text-p-m !font-medium leading-[1.15em] tablet:text-p-l",children:ew}),ej&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:ej})]}),(null==e0?void 0:e0.path)&&(0,a.jsx)(h.A,{href:(null==e0||null==(w=e0.path)?void 0:w.path)||"#",className:"underline",children:null==e0?void 0:e0.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-204 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]}),(0,a.jsxs)("div",{className:"mt-4 overflow-hidden rounded-2xl border border-primary-cocoa",children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex-1",children:[eb&&(0,a.jsx)("h3",{className:"mb-0 font-filson-pro text-p-m !font-medium leading-[1.15em] tablet:text-p-l",children:eb}),eg&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:eg})]}),(null==e2?void 0:e2.path)&&(0,a.jsx)(h.A,{href:(null==e2||null==(k=e2.path)?void 0:k.path)||"#",className:"underline",children:null==e2?void 0:e2.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-205 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]})]}),(0,a.jsxs)("div",{className:"".concat(eW.activeFilters.includes("ticketing")?"":"hidden"," mb-8 overflow-hidden rounded-2xl bg-secondary-white"),children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"self-start rounded-2xl bg-primary-golden p-2.5",children:(0,a.jsx)(E.default,{width:"32",height:"32",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{className:"ml-4 flex-1",children:[eP&&(0,a.jsx)("h2",{className:"mb-0 font-filson-pro text-p-l !font-bold leading-[1.15em] tablet:text-p-xl",children:eP}),eT&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:eT})]})]}),(null==e4||null==(N=e4.link)?void 0:N.path)&&(0,a.jsx)(B.A,{href:(null==e4||null==(A=e4.link)?void 0:A.path)||"#",target:(null==e4?void 0:e4.newWindow)?"_blank":"_self",size:"sm",variant:(null==e4?void 0:e4.variant)||"Default",egalEntryCode:null==e4?void 0:e4.egalEntryCode,outlined:!0,className:"",icon:(null==e4?void 0:e4.icon)?null==e4?void 0:e4.icon:"",iconPosition:null==e4?void 0:e4.iconPosition,children:null==e4?void 0:e4.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-39 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]}),(0,a.jsxs)("div",{className:"".concat(eW.activeFilters.includes("hershey")?"":"hidden"," mb-4 overflow-hidden rounded-2xl bg-secondary-white p-4"),children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 desktop:flex-row desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"self-start rounded-lg bg-primary-happiness-0 p-2.5",children:(0,a.jsx)(F.default,{width:"32",height:"32",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{className:"ml-4 flex-1",children:[ec&&(0,a.jsx)("h2",{className:"mb-0 font-filson-pro text-p-l !font-bold leading-[1.15em] tablet:text-p-xl",children:ec}),ed&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:ed})]})]}),(null==e5||null==(C=e5.link)?void 0:C.path)&&(0,a.jsx)(B.A,{href:(null==e5||null==(S=e5.link)?void 0:S.path)||"#",target:(null==e5?void 0:e5.newWindow)?"_blank":"_self",size:"sm",variant:(null==e5?void 0:e5.variant)||"Default",egalEntryCode:null==e5?void 0:e5.egalEntryCode,outlined:!0,className:"",icon:(null==e5?void 0:e5.icon)?null==e5?void 0:e5.icon:"",iconPosition:null==e5?void 0:e5.iconPosition,children:null==e5?void 0:e5.title})]}),(0,a.jsxs)("div",{className:"mt-4 overflow-hidden rounded-2xl border border-primary-cocoa",children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex-1",children:[J&&(0,a.jsx)("h3",{className:"mb-0 font-filson-pro text-p-m !font-medium leading-[1.15em] tablet:text-p-l",children:J}),Q&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:Q})]}),(null==e9?void 0:e9.path)&&(0,a.jsx)(h.A,{href:(null==e9||null==(_=e9.path)?void 0:_.path)||"#",className:"underline",children:null==e9?void 0:e9.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-5 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]}),(0,a.jsxs)("div",{className:"mt-4 overflow-hidden rounded-2xl border border-primary-cocoa",children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex-1",children:[eu&&(0,a.jsx)("h3",{className:"mb-0 font-filson-pro text-p-m !font-medium leading-[1.15em] tablet:text-p-l",children:eu}),ep&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:ep})]}),(null==e3?void 0:e3.path)&&(0,a.jsx)(h.A,{href:(null==e3||null==(T=e3.path)?void 0:T.path)||"#",className:"underline",children:null==e3?void 0:e3.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-12 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]}),(0,a.jsxs)("div",{className:"mt-4 overflow-hidden rounded-2xl border border-primary-cocoa",children:[(0,a.jsxs)("div",{className:"topSection flex flex-col justify-between gap-4 border-b border-primary-cocoa-2 p-4 tablet:flex-row tablet:items-start desktop:items-center",children:[(0,a.jsxs)("div",{className:"flex-1",children:[ei&&(0,a.jsx)("h3",{className:"mb-0 font-filson-pro text-p-m !font-medium leading-[1.15em] tablet:text-p-l",children:ei}),en&&(0,a.jsx)("p",{className:"mt-0 text-p-xs tablet:text-p-s",children:en})]}),(null==e6?void 0:e6.path)&&(0,a.jsx)(h.A,{href:(null==e6||null==(M=e6.path)?void 0:M.path)||"#",className:"underline",children:null==e6?void 0:e6.title})]}),(0,a.jsx)("table",{role:"presentation",className:"hour-holder-13 overflow-hidden rounded-bl-2xl rounded-br-2xl",children:(0,a.jsx)("tbody",{role:"presentation",children:(0,a.jsx)("tr",{role:"row",children:te})})})]})]})]})},U=e=>{let{calendarRef:t,hpHours:l="CLOSED",zooHours:s="CLOSED",bwHours:r="CLOSED",dnHours:n="CLOSED",tvHours:i="CLOSED",slHours:o="CLOSED",hpHoursLabel:d="CLOSED",zooHoursLabel:c="CLOSED",bwHoursLabel:m="CLOSED",dnHoursLabel:p="CLOSED",tvHoursLabel:u="CLOSED",slHoursLabel:x="CLOSED",plusHours:h}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grow",children:[(0,a.jsxs)("div",{className:"hour-holder-7 mb-2 inline-flex w-full items-center text-primary-cocoa",children:[(0,a.jsx)("span",{className:"mr-2 rounded-md bg-primary-twizzler p-1",children:(0,a.jsx)(P.default,{height:"16",width:"16",color:"white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-filson-pro text-p-s font-medium",children:d}),(0,a.jsx)("p",{className:"hrs-holder m-0 text-p-xs ".concat("CLOSED"===l?"text-primary-twizzler":""),children:l})]})]}),"CLOSED"!=r&&(0,a.jsxs)("div",{className:"hour-holder-38 mb-2 inline-flex w-full items-center text-primary-cocoa",children:[(0,a.jsx)("span",{className:"mr-2 rounded-md bg-primary-boardwalk px-2 py-1",children:(0,a.jsx)(I.default,{height:"14",width:"12",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-filson-pro text-p-s font-medium",children:m}),(0,a.jsx)("p",{className:"hrs-holder m-0 text-p-xs ".concat("CLOSED"===r?"text-primary-twizzler":""),children:r})]})]}),"CLOSED"!=n&&(0,a.jsxs)("div",{className:"hour-holder-217 mb-2 inline-flex w-full items-center text-primary-cocoa",children:[(0,a.jsx)("span",{className:"mr-2 rounded-md bg-secondary-black px-2 py-1",children:(0,a.jsx)(K.default,{height:"12",width:"12",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-filson-pro text-p-s font-medium",children:p}),(0,a.jsx)("p",{className:"hrs-holder m-0 text-p-xs ".concat("CLOSED"===n?"text-primary-twizzler":""),children:n})]})]}),"CLOSED"!=i&&(0,a.jsxs)("div",{className:"hour-holder-163 mb-2 inline-flex w-full items-center text-primary-cocoa",children:[(0,a.jsx)("span",{className:"mr-2 rounded-md bg-secondary-thrills-1 px-2 py-1",children:(0,a.jsx)(H.default,{height:"12",width:"12",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-filson-pro text-p-s font-medium",children:u}),(0,a.jsx)("p",{className:"hrs-holder m-0 text-p-xs ".concat("CLOSED"===i?"text-primary-twizzler":""),children:i})]})]}),"CLOSED"!=o&&(0,a.jsxs)("div",{className:"hour-holder-36 mb-2 inline-flex w-full items-center text-primary-cocoa",children:[(0,a.jsx)("span",{className:"mr-2 rounded-md bg-primary-zoo-shade px-2 py-1",children:(0,a.jsx)(G.default,{height:"12",width:"12",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-filson-pro text-p-s font-medium",children:x}),(0,a.jsx)("p",{className:"hrs-holder m-0 text-p-xs ".concat("CLOSED"===o?"text-primary-twizzler":""),children:o})]})]}),(0,a.jsxs)("div",{className:"hour-holder-2 mb-2 inline-flex w-full items-center text-primary-cocoa",children:[(0,a.jsx)("span",{className:"mr-2 rounded-md bg-primary-zoo p-2",children:(0,a.jsx)(z.default,{height:"12",width:"12",className:"fill-secondary-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-filson-pro text-p-s font-medium",children:c}),(0,a.jsx)("p",{className:"hrs-holder m-0 text-p-xs ".concat("CLOSED"===s?"text-primary-twizzler":""),children:s})]})]})]}),(0,a.jsx)("p",{className:"mx-1 text-p-xs text-primary-cocoa",children:(0,a.jsxs)("button",{className:"flex w-full justify-between",onClick:()=>{var e;document.getElementById("viewSelector").value="dayGridDay",null==(e=t.current)||e.getApi().changeView("dayGridDay")},children:[(0,a.jsx)("span",{className:"font-medium underline",children:"View Day"}),void 0!==h&&(0,a.jsxs)("span",{children:["+ ",(0,a.jsx)("span",{className:"numMore font-normal",children:h})," more"]})]})})]})};function Y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[l="",a=""]=e.split(" "),[s="0",r="0"]=l.split(":"),n=parseInt(s,10),i=par
1seInt(r,10);"PM"===a&&12!==n?n+=12:"AM"===a&&12===n&&(n=0);let o=60*n+i;(o-=Math.round(60*t))<0&&(o+=1440);let d=Math.floor(o/60),c=d%12;0===c&&(c=12);let m=(o%60).toString().padStart(2,"0");return"".concat(c,":").concat(m," ").concat(d<12?"AM":"PM")}let Z=e=>{var t,l;let{hoursData:y,...j}=e,k=function(e){let t=null;return Object.values(e).forEach(e=>{Object.keys(e.hours_list).forEach(e=>{let l=new Date(e+"T00:00:00");(!t||l<t)&&(t=l)})}),t}(y)||new Date(new Date().getFullYear(),new Date().getMonth(),1),N=function(e){let t=null;return Object.values(e).forEach(e=>{Object.keys(e.hours_list).forEach(e=>{let l=new Date(e+"T11:59:59");(!t||l>t)&&(t=l)})}),t}(y)||new Date(new Date().getFullYear()+1,12,1),A=new Date(N),{downloadableCalendar:C,...S}=j,_=(0,p.useRef)(null),D=null==(t=_.current)?void 0:t.getApi(),[T,P]=(0,p.useState)(new Date),[F,L]=(0,p.useState)(!1),[E,I]=(0,p.useState)(!1),[z,M]=(0,p.useState)(!1),[O,V]=(0,p.useState)(!1),{context:H}=(0,o.Ti)(),[B,G]=(0,p.useState)([]),K=null==j?void 0:j.fireworksDates;(0,p.useEffect)(()=>{Z()},[T]),(0,p.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.get("date"),l=e.get("calendar-view");if(t){let e=(0,m.H)(t);if(!isNaN(e.getTime())){var a;P(e),null==(a=_.current)||a.getApi().gotoDate(e)}}l&&_.current&&_.current.getApi().changeView({day:"dayGridDay",1:"dayGridDay",3:"dayGrid3Day","3-day":"dayGrid3Day",week:"dayGridWeek",7:"dayGridWeek",month:"dayGridMonth",30:"dayGridMonth"}[l]||"dayGridWeek")},[]);let{isMatch:W}=(0,v.s)("md-desktop");(0,p.useEffect)(()=>{let e=()=>{if(D){D.changeView("dayGridWeek"),W||"dayGridMonth"!=D.view.type&&"dayGridWeek"!=D.view.type?W&&"dayGrid3Day"==D.view.type&&D.changeView("dayGridWeek"):D.changeView("dayGrid3Day");let e=document.getElementById("viewSelector");e&&e.querySelectorAll("option").forEach(e=>{e.value===D.view.type&&(e.selected=!0)})}};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[W]);let Z=()=>{var e,t;let l=(0,c.GP)(T,"yyyy-MM-dd");document.querySelectorAll(".selected").length&&(null==(t=document.querySelector(".selected"))||t.classList.remove("selected")),null==(e=document.querySelector('[data-date="'+l+'"]'))||e.classList.add("selected")},X=(e,t)=>{let l=g.H.Calendar_Day;(0,g.R)({event:l,value:{data_title:"Calendar_Day",data_text:e.toString()}}),null==H||H.update({events:[{event:l}]}),P(e),t&&D&&D.gotoDate(e)},[Q,J]=(0,p.useState)(null);return(0,p.useEffect)(()=>{let e=document.querySelector("#hours-calendar .fc-daygrid-body");e&&J(e)},[]),(0,a.jsxs)("div",{id:"hours-calendar",className:"bg-primary-cocoa/10 pb-12",children:[(0,a.jsxs)(w,{children:[(0,a.jsx)(R,{calendarRef:_,minDate:k,maxDate:A,selectedDate:T,hoursData:y,showBoardwalk:F,showDarkNights:E,showTreatville:z,showSweetLights:O,handleDateSelect:X,highliteSelected:Z}),Q&&(0,u.createPortal)((0,a.jsx)(q,{...S,showBoardwalk:F,showDarkNights:E,showTreatville:z,showSweetLights:O,visibleDates:B}),Q)]}),(0,a.jsx)(n.A,{ref:_,plugins:[s.A,r.Ay],height:"auto",validRange:{start:k,end:N},selectable:!0,headerToolbar:!1,initialView:"dayGridWeek",views:{dayGridMonth:{type:"dayGridMonth",dayHeaderFormat:{weekday:"long"}},dayGridWeek:{type:"dayGridWeek",duration:{days:5},titleFormat:{month:"long",day:"numeric",year:"numeric"},dayHeaderFormat:{weekday:"short",month:"short",day:"numeric"},navLinks:!0},dayGrid3Day:{type:"dayGridDay",duration:{days:3},titleFormat:{month:"long",year:"numeric"},dayHeaderContent:e=>{let{date:t}=e,l=new Intl.DateTimeFormat("en-US",{weekday:"short"}).format(t),a=new Intl.DateTimeFormat("en-US",{day:"numeric"}).format(t);return{html:"".concat(l+", "+a)}},navLinks:!0},dayGridDay:{type:"dayGridDay",duration:{days:1},titleFormat:{month:"long",day:"numeric",year:"numeric"},dayHeaderContent:e=>{let{date:t}=e,l=new Intl.DateTimeFormat("en-US",{weekday:"short"}).format(t),a=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t),s=new Intl.DateTimeFormat("en-US",{day:"numeric"}).format(t);return{html:"".concat(l+', <span class="mth">'+a+"</span> "+s)}},navLinks:!0}},eventColor:"transparent",eventBorderColor:"transparent",showNonCurrentDates:!1,dateClick:function(e){var t;let l=null==(t=_.current)?void 0:t.getApi(),a=new Date(e.date),s=new Date;s.setHours(0,0,0,0),a.setHours(0,0,0,0),l&&"dayGridMonth"===l.view.type&&a>=s&&l.changeView("dayGridDay",e.date),X(e.date,!0)},navLinkDayClick:e=>X(e,!0),dayCellClassNames:function(e){var t,l,a,s,r,n;let i=(0,c.GP)(e.date,"yyyy-MM-dd"),o=(null==(t=y[7])?void 0:t.hours_list[i])||(null==(l=y[2])?void 0:l.hours_list[i])||(null==(a=y[38])?void 0:a.hours_list[i])||(null==(s=y[217])?void 0:s.hours_list[i])||(null==(r=y[163])?void 0:r.hours_list[i])||(null==(n=y[36])?void 0:n.hours_list[i]);return(null==o?void 0:o.hours)?"open":"closed"},datesSet:e=>{!function(e){if(e&&e.start&&e.end){let L=[],I=new Date(e.start),M=1;for(;I<new Date(e.end);){let V=(0,c.GP)(I,"yyyy-MM-dd");if("dayGridMonth"===e.view.type){let e=document.querySelector('td[data-date="'.concat(V,'"] .fc-daygri
1d-day-events'));if(e){var t,l,s,r,n,o,m,u,h,v,g,b,w,k,N,A,C,S,D,T,P,F,E,z,O,R;let i=e._reactRoot;i||(i=(0,x.createRoot)(e),e._reactRoot=i);let d=[null==(t=y[198])?void 0:t.hours_list[V],null==(l=y[203])?void 0:l.hours_list[V],null==(s=y[204])?void 0:s.hours_list[V],null==(r=y[205])?void 0:r.hours_list[V],null==(n=y[39])?void 0:n.hours_list[V],null==(o=y[12])?void 0:o.hours_list[V],null==(m=y[13])?void 0:m.hours_list[V],null==(u=y[5])?void 0:u.hours_list[V]].filter(e=>null==e?void 0:e.hours).length;i.render((0,a.jsx)(U,{calendarRef:_,hpHours:null==(v=y[7])||null==(h=v.hours_list[V])?void 0:h.hours,zooHours:null==(b=y[2])||null==(g=b.hours_list[V])?void 0:g.hours,bwHours:null==(k=y[38])||null==(w=k.hours_list[V])?void 0:w.hours,dnHours:null==(A=y[217])||null==(N=A.hours_list[V])?void 0:N.hours,tvHours:null==(S=y[163])||null==(C=S.hours_list[V])?void 0:C.hours,slHours:null==(T=y[36])||null==(D=T.hours_list[V])?void 0:D.hours,hpHoursLabel:null==(P=y[7])?void 0:P.title,zooHoursLabel:null==(F=y[2])?void 0:F.title,bwHoursLabel:null==(E=y[38])?void 0:E.title,dnHoursLabel:null==(z=y[217])?void 0:z.title,tvHoursLabel:null==(O=y[163])?void 0:O.title,slHoursLabel:null==(R=y[36])?void 0:R.title,plusHours:d>0?d:void 0}))}}else[2,5,7,12,13,36,38,39,163,198,203,204,205,217].map(e=>({selector:".hour-holder-".concat(e),dataKey:e})).forEach(e=>{var t,l,s,r,n,o,c,m,u,h;let{selector:v,dataKey:g}=e,b=document.querySelector("".concat(v," td:nth-of-type(").concat(M,")")),w=null==(l=y[g])||null==(t=l.hours_list[V])?void 0:t.hours;if(b){b.classList.toggle("bg-primary-cocoa-1",!w);let e=b.querySelector(".hrs-holder");e&&(e.classList.toggle("text-primary-twizzler",!w),e.textContent=w||"CLOSED");let t=w&&w.includes(" - "),l=b.querySelector(".sweetstart"),v=b.querySelector(".previewplan"),g=b.querySelector(".fireworks");if(g&&Array.isArray(K)){let e=[];for(let t=0;t<K.length;t++){let l=(0,i.fKV)(K[t],{toSingle:!0}),s=null==l?void 0:l.title,r=(null==l||null==(c=l.intro)||null==(o=c.root)||null==(n=o.children)?void 0:n.map((e,t)=>{var l;return(0,a.jsx)(d.Y2,{node:e},null!=(l=null==e?void 0:e._key)?l:t)}))||[],u=null==l||null==(m=l.icon)?void 0:m[0],x=u&&"icons"in u?u.icons:void 0;if((null==l?void 0:l.date)&&(null==l?void 0:l.date)===V){let t=null==l?void 0:l.time;e.push((0,a.jsxs)(p.Fragment,{children:[(0,a.jsx)("p",{className:"text-p-m font-bold uppercase",children:s?(0,a.jsxs)(a.Fragment,{children:[x&&(0,a.jsx)(f.A,{icon:x,btnClassName:"mr-1 inline align-text-bottom",width:"30",height:"30"}),s,t&&(0,a.jsxs)("span",{className:"font-normal",children:[": ",t]})]}):t}),r.length>0&&(0,a.jsx)("div",{className:"rich-text mt-2 font-proxima-nova [&>p]:text-p-s desktop:[&>p]:text-p-m",children:r})]},t))}}g._reactRoot||(g._reactRoot=(0,x.createRoot)(g)),g._reactRoot.render(e.length>0?e:null)}if(new Date(V+"T00:00:00").getTime()>=new Date(null==j||null==(s=j.ssBeginTime)?void 0:s.datetime).getTime()&&new Date(V+"T00:00:00").getTime()<=new Date(null==j||null==(r=j.ssEndTime)?void 0:r.datetime).getTime()?l&&l.classList.toggle("hidden",!t):l&&l.classList.add("hidden"),v&&v.classList.toggle("hidden",!t),t){let[e,t]=w.split(" - ");if(l&&(null==j||null==(u=j.ssBeginTime)?void 0:u.datetime)&&(null==j||null==(h=j.ssEndTime)?void 0:h.datetime)){let t=l.querySelector(".hrs-holder");t&&e&&(t.textContent=Y(e,1))}if(v){let e=v.querySelector(".hrs-holder");e&&t&&(e.textContent=Y(t,1.5));let l=v.querySelector(".hrs-holder2");l&&t&&(l.textContent=Y(t,2.5))}}}});L.push(new Date(I)),I.setDate(I.getDate()+1),M++}(L.length!==B.length||L.some((e,t)=>{var l;return(null==(l=B[t])?void 0:l.getTime())!==e.getTime()}))&&G(L)}let H=new Date;H.setHours(H.getHours()+H.getTimezoneOffset()/60-5,0,0,0);let W=(0,c.GP)(H,"yyyy-MM-dd"),q=[],Z=new Date(e.start),X=new Date(e.end);for(;Z<X;){let e=(0,c.GP)(Z,"yyyy-MM-dd");if(e<W){Z.setDate(Z.getDate()+1);continue}q.push(e),Z.setDate(Z.getDate()+1)}L(q.some(e=>{var t,l,a;return null!=(a=null==(l=y[38])||null==(t=l.hours_list)?void 0:t[e])&&a})),I(q.some(e=>{var t,l,a;return null!=(a=null==(l=y[217])||null==(t=l.hours_list)?void 0:t[e])&&a})),M(q.some(e=>{var t,l,a;return null!=(a=null==(l=y[163])||null==(t=l.hours_list)?void 0:t[e])&&a})),V(q.some(e=>{var t,l,a;return null!=(a=null==(l=y[36])||null==(t=l.hours_list)?void 0:t[e])&&a}))}(e)}}),(0,a.jsxs)("div",{className:"mt-4 rounded-2xl bg-secondary-white px-6 py-8 text-primary-cocoa desktop:mx-12",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-between desktop:flex-row",children:[(0,a.jsx)("p",{className:"font-filson-pro text-p-m font-medium",children:"Explore Hersheypark all year:"}),(null==C||null==(l=C[0])?void 0:l.fields.url.value)&&(0,a.jsxs)("a",{href:C[0].fields.url.value,target:"_blank",onClick:()=>{let e=g.H.Hours_CalendarDownload;(0,g.R)({event:e,value:{data_title:"Hours_CalendarDownload",data_text:"Download Calendar PDF"}}),null==H||H.update({events:[{event:e}]})},rel:"noreferrer",children:[(0,a.jsx)("span",{className:"underline",children:"Download Calendar PDF"})," ",(0,a.jsx)(b.default,{className:"ml-1 inline align-top"})]})]}),(0,a.jsxs)("div",{className:"mt-4 flex flex-col items-center gap-4 font-proxima-nova text-p-m desktop:flex-row",children:[(0,a.jsxs)(h.A,{href:"/plan-your-visit/spring-weekends",className:"border border-dotted border-secondary-reeses-shade bg-secondary-reeses-1 px-2 py-1 text-secondary-reeses-shade",children:[(0,a.jsx)("span",{className:"font-bold",children:"Spring"})," April - May"]}),(0,a.jsxs)(h.A,{href:"/plan-your-visit/summer",className:"border border-dotted border-primary-boardwalk-sha
1de bg-primary-boardwalk-1 px-2 py-1 text-primary-boardwalk-shade",children:[(0,a.jsx)("span",{className:"font-bold",children:"Summer"})," May - Sep"]}),(0,a.jsxs)(h.A,{href:"/plan-your-visit/hersheypark-halloween",className:"border border-dotted border-primary-jolly-shade bg-primary-jolly-1 px-2 py-1 text-primary-jolly-shade",children:[(0,a.jsx)("span",{className:"font-bold",children:"Halloween"})," Sep - Nov"]}),(0,a.jsxs)(h.A,{href:"/plan-your-visit/christmas-candylane",className:"border border-dotted border-primary-zoo-shade bg-primary-zoo-1 px-2 py-1 text-primary-zoo-shade",children:[(0,a.jsx)("span",{className:"font-bold",children:"Christmas Candylane"})," Nov - Jan"]})]})]})]})}},41527:(e,t,l)=>{"use strict";l.d(t,{default:()=>y});var a=l(95155),s=l(11597),r=l(2821),n=l(12115),i=l(73842),o=l(51396),d=l(15239),c=l(81275),m=l(73697),p=l(95455),u=l(79669),x=l(48447);function h(e){let{title:t,image:l,url:s,newTab:n}=e,{context:i}=(0,o.Ti)(),h=s?(0,u.bu)(s):"";return(0,a.jsx)(a.Fragment,{children:h?(0,a.jsxs)(m.A,{href:h,target:(n?"_blank":void 0)?"_blank":void 0,className:(0,r.A)("border-red-950/opacity-20 group col-span-full flex min-h-28 w-full max-w-[600px] flex-wrap items-center justify-between gap-6 rounded-2xl border bg-secondary-white py-4 pl-4 pr-6 no-underline tablet:col-span-4"),onClick:()=>{let e=(0,p.UA)(t);null==i||i.update({events:[{event:e}]})},children:[(0,a.jsxs)("div",{className:"flex max-w-[76%] items-center",children:[(0,a.jsx)("div",{className:"mr-6 h-[65px] w-[60px] flex-shrink-0 tablet:w-[96px]",children:function(e){let t=null==e?void 0:e.url;return t?(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(d.default,{src:t,alt:(0,x.Vo)(null==e?void 0:e.title),className:"block h-full w-full rounded-lg",width:120,height:80,style:{objectFit:"cover"},itemProp:"image",sizes:"7.5rem"}),(0,a.jsx)("meta",{itemProp:"name",content:(0,x.Vo)(null==e?void 0:e.title)})]}):null}(null==l?void 0:l[0])}),t?(0,a.jsx)("h4",{className:"tablet:label-m mb-0 font-filson-pro text-h4-m",children:t}):null]}),(0,a.jsx)("span",{className:(0,r.A)("button-bg-chocolate button-transition button-gradient button-outlined bg-chocolate group-hover:bg-gradient-chocolate transition-background inline-flex h-[36px] w-[36px] items-center justify-center overflow-hidden whitespace-nowrap rounded-full !px-2 !py-1.5 !text-link-s transition-transform tablet:w-fit md-desktop:text-link-xs"),children:(0,a.jsx)(c.A,{width:"18",height:"17",className:"fill-primary-cocoa group-hover:fill-primary-cream"})})]}):null})}(0,i.hf)({type:"popularToolCard",component:h});var f=l(19296),v=l(12703),g=l(34781),b=l(40057);function y(e){var t,l,i,o,d;let{backgroundColor:c,title:m="",intro:p="",card:u,component:x,context:y}=e,j=(0,s.fKV)(u),w=(0,f.gK)(c,y),k=(0,n.useRef)(null),N=(0,v.A)(k,[null!=(d=null==(t=f.Cs[w])?void 0:t.className)?d:""]);return Array.isArray(j)?(0,a.jsxs)("section",{"data-component":null==x?void 0:x.type,ref:k,className:(0,r.A)(x.type,"px-4 desktop:px-24",null==(l=f.Cs[w])?void 0:l.className,N?"mt-[-2px] pb-16 pt-0 tablet:pb-16 desktop:pb-24 desktop:pt-0":"py-6 pb-16 tablet:py-8 tablet:pb-16 desktop:py-24"),children:[(0,a.jsxs)("div",{className:(0,r.A)("mx-auto py-6 text-center tablet:py-8 desktop:px-24 desktop:pb-4 desktop:pt-0 lg-desktop:max-w-4xl"),children:[(0,a.jsx)(b.A,{title:m,component:x,context:y,titleClassName:(0,r.A)("font-filson-pro text-h3-m text-primary-cocoa",null==(i=f.Cs[w])?void 0:i.childrenClassName),htmlTag:"h3"}),(0,a.jsx)(g.A,{intro:p,component:x,introClassName:(0,r.A)("mb-5 mt-5 text-primary-cocoa font-proxima-nova text-p-m",null==(o=f.Cs[w])?void 0:o.childrenClassName)})]}),(0,a.jsx)("div",{className:"default-grid-row mx-auto max-w-[1820px] justify-items-center gap-8 !px-4 pt-4",children:j.map((e,t)=>(0,a.jsx)(h,{...e},t))})]}):(console.error("popularToolsSections is undefined or not an array"),(0,a.jsx)("h2",{children:"You must add at least 1 card to display this component."}))}},42756:(e,t,l)=>{"use strict";l.d(t,{default:()=>h});var a=l(95155),s=l(11597),r=l(51396),n=l(37935),i=l(2821),o=l(19296),d=l(41055),c=l(18500),m=l(95455),p=l(55605),u=l(95993),x=l(12679);function h(e){var t,l,h;let{title:f,descriptionText:v,ctaButton:g,turnOffAutoScroll:b,backgroundColor:y,component:j,context:w,slots:k}=e,{isMatch:N}=(0,c.s)("desktop"),A=(0,s.fKV)(g,{toSingle:!0}),C=(0,o.gK)(y,w),S=(0,o.FI)(C),_=(null==w?void 0:w.isContextualEditing)==!1,{context:D}=(0,r.Ti)();return(null==k?void 0:k.cards)?(0,a.jsxs)("section",{"data-component":null==j?void 0:j.type,className:(0,i.A)("flex flex-col items-center py-24 desktop:py-24",null==(t=o.Cs[C])?void 0:t.className,null==(l=o.Cs[C])?void 0:l.childrenClassName),style:null==(h=o.Cs[C])?void 0:h.backgroundStyles,children:[(0,a.jsxs)("div",{className:"mb-14 max-w-[863px] px-8 text-center desktop:px-0",children:[f&&(0,a.jsx)("h2",{className:"mb-6 font-filson-pro text-h1-m desktop:text-h1",children:f}),v&&(0,a.jsx)(n.mj,{className:"mb-10 font-proxima-nova [&>p]:text-p-l [&>p]:desktop:text-p-xl",component:j,parameterId:"descriptionText"}),A&&(0,a.jsx)(u.A,{ctaButton:A,linkClassName:(0,i.A)("w-full mx-auto"),linkSize:"sm",onLinkClick:e=>{let t=(0,m.N_)(e,f+" | "+A.title);null==D||D.update({events:[{event:t}]})}})]}),(null==k?void 0:k.cards)&&(N?b?(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(n.D,{context:w,data:j,slot:k.cards})}):(0,a.jsx)(x.A,{speed:50,autoFill:!0,pauseOnHover:!0,play:_,children:(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(n.D,{context:w,data:j,slot:k.cards})})}):(0,a.jsx)("div",{className:"relative block w-full space-x-8",children:(0,a.jsx)(p.A,{infinite:!1,variableWidth:!0,slidesToShow:3,tabletSlideToShow:2,mobileSlideToShow:1,mobileVariableWidth:!1,dotsClass:"White"===S?"text-secondary-white":"Black"===S?"text-secondary-black":"text-primary-cocoa",children:(0,d.u)((0,a.jsx)(n.D,{context:w,data:j,slot:k.cards}))})}))]}):null}},45470:(e,t,l)=>{"use strict";l.d(t,{b:()=>a});let a=e=>["aqua","blue","aqua-lighten","blue-lighten","darkblue-lighten","darkpink-lighten","gold-lighten","gray-darken","green","green-lighten","maroon-lighten","orange","orange-lighten","pink","pink-lighten","purple-lighten","red-lighten","skyblue","yellow","yellow-darken","yellow-lighten","yellowgreen","yellowgreen-darken","yellowgreen-lighten","white"].includes(e)?{textClass:"text-primary-cocoa",svgClass:"fill-primary-cocoa"}:["aqua-darken","blue-darken","darkblue","darkblue-darken","darkpink","darkpink-darken","maroon","gold","gold-darken","green-darken","gray","orange-darken","purple","pink-darken","purple-darken","red","red-darken"].includes(e)?{textClass:"text-secondary-white",svgClass:"fill-secondary-white"}:{textClass:"text-secondary-white",svgClass:"fill-secondary-white",backgroundClass:"bg-rides-maroon bg-darknights-black bg-rides-aqua bg-rides-aqua-darken bg-rides-blue bg-rides-blue-darken bg-rides-darkblue bg-rides-darkblue-darken bg-rides-darkpink bg-rides-darkpink-darken bg-rides-gold bg-rides-gold-darken bg-rides-gray bg-rides-green bg-rides-green-darken bg-rides-maroon bg-rides-orange bg-rides-orange-darken bg-rides-pink bg-rides-pink-darken bg-rides-purple bg-rides-purple-darken bg-rides-red bg-rides-red-darken bg-rides-skyblue bg-rides-yellow bg-rides-yellowgreen bg-rides-yellowgreen-darken bg-rides-yellow-darken",foregroundClass:"bg-rides-aqua-lighten bg-rides-blue-lighten bg-rides-darkblue-lighten bg-rides-darkpink-lighten bg-rides-gold-lighten bg-rides-gray-lighten bg-rides-green-lighten bg-rides-orange-lighten bg-rides-pink-lighten bg-rides-purple-lighten bg-rides-red-lighten bg-rides-yellowgreen-lighten bg-rides-yellow-lighten",fillColor:"fill-rides-maroon fill-rides-aqua fill-rides-aqua-darken fill-rides-blue fill-rides-blue-darken fill-rides-darkblue fill-rides-darkblue-darken fill-rides-darkpink fill-rides-darkpink-darken fill-rides-gold fill-rides-gold-darken fill-rides-gray fill-rides-green fill-rides-green-darken fill-rides-maroon fill-rides-orange fill-rides-orange-darken fill-rides-pink fill-rides-pink-darken fill-rides-purple fill-rides-purple-darken fill-rides-red fill-rides-red-darken fill-rides-skyblue fill-rides-yellow fill-rides-yellowgreen fill-rides-yellowgreen-darken fill-rides-yellow-darken"}},46908:(e,t,l)=>{"use strict";l.d(t,{default:()=>w});var a=l(95155),s=l(11597),r=l(37935),n=l(2821),i=l(12115),o=l(19296),d=l(12703),c=l(51396),m=l(8751),p=l(15239),u=l(76963),x=l(95993),h=l(73697),f=l(30287),v=l(95455),g=l(79669),b=l(28994),y=l(48447);function j(e){var t,l,r,i,d,j,w,k,N;let{seasonPassBlock:A,link:C,hideTitle:S}=e,{context:_}=(0,c.Ti)();if(!(null==A||null==(t=A.entry)?void 0:t.fields))return null;let{title:D,thumbnail:T,monthlyPrice:P,fullPrice:F,originalPrice
1:L,button:E,leftNote:I,rightNote:z,monthlyPriceSubText:M,soldOut:O,validFrom:R,validThrough:V,addOnOffer:H,priceValidUntil:B,calloutBadgeText:G,calloutBadgeColor:K}=A.entry.fields,W=(0,s.fKV)(null==T||null==(l=T.value)?void 0:l[0],{toSingle:!0}),q=null==D?void 0:D.value,U=null==F?void 0:F.value,Y=null==P?void 0:P.value,Z=(0,s.fKV)(null==E?void 0:E.value,{toSingle:!0}),X=Array.isArray(null==Z?void 0:Z.backgroundColor)&&(null==Z||null==(r=Z.backgroundColor[0])?void 0:r.theme),Q=null==M?void 0:M.value,J=K&&"object"==typeof K?(0,o.wj)(null==K?void 0:K.value):{theme:"Callout Badge"},$=(null==J?void 0:J.theme)&&J.theme?J.theme:"Callout Badge",ee=null==W?void 0:W.url,et=ee?(0,p.getImageProps)({alt:(null==W?void 0:W.title)||"",width:800,height:570,src:ee}).props.srcSet:"",el=ee&&et?(0,f.C)(et):"";return(0,a.jsxs)(m.P.div,{id:null==q?void 0:q.split(" ").join("-").toLowerCase().toString(),initial:{opacity:0},animate:{opacity:1},className:"card-wrapper standart-card mx-auto flex w-full max-w-full flex-col px-8 lg-mobile:w-[430px] lg-mobile:px-0 desktop:w-full",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/Offer",children:[(0,a.jsx)("meta",{itemProp:"acceptedPaymentMethod",content:"VISA, MasterCard, Discover, and American Express"}),(0,a.jsx)("span",{className:"inline-flex h-9",children:(null==G?void 0:G.value)&&(0,a.jsxs)("span",{className:(0,n.A)("relative items-start justify-start gap-2.5 rounded-tl-[20px] rounded-tr-md px-3 py-2 text-p-xs font-black uppercase",null==(i=o.Cs[$])?void 0:i.className,null==(d=o.Cs[$])?void 0:d.childrenClassName),children:[null==G?void 0:G.value,(null==O?void 0:O.value)&&(0,a.jsx)("div",{className:"absolute -bottom-[1px] left-[1px] right-0 top-0 z-50 rounded-tl-[20px] rounded-tr-md bg-secondary-black bg-opacity-60"})]})}),(0,a.jsxs)("div",{className:(0,n.A)("card-body relative flex flex-col overflow-hidden rounded-[16px] border border-primary-cocoa-2 bg-secondary-white pt-4",(null==G?void 0:G.value)&&"rounded-tl-none"),itemProp:"itemOffered",itemScope:!0,itemType:"https://schema.org/Product",children:[(null==O?void 0:O.value)&&(0,a.jsx)("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-50 bg-secondary-black bg-opacity-60",children:(0,a.jsx)("p",{className:"absolute left-[-10%] top-[46%] z-10 inline-block w-[120%] rotate-[345deg] whitespace-nowrap bg-rides-yellow text-center text-h1 !font-black uppercase md-desktop:text-h2 xl-desktop:text-h1",children:"Sold Out"})}),(0,a.jsx)("meta",{itemProp:"name",content:q}),ee&&el&&(0,a.jsx)("link",{itemProp:"image",href:el}),ee&&(0,a.jsx)("div",{className:"mb-6 aspect-[1.85] w-full px-4",children:(0,a.jsxs)("div",{className:"relative h-full w-full overflow-hidden rounded-[8px]",itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(p.default,{className:"pointer-events-none h-full w-full object-cover",src:ee,alt:(0,y.Vo)(null==W?void 0:W.title),fill:!0,itemProp:"image",sizes:"25.375rem"}),(0,a.jsx)("meta",{itemProp:"name",content:(0,y.Vo)(null==W?void 0:W.title)})]})}),(0,a.jsxs)("div",{className:"mb-6 flex flex-col gap-4 px-4 font-filson-pro text-primary-cocoa first:pt-2",itemProp:"offers",itemScope:!0,itemType:"https://schema.org/Offer",children:[R&&(0,a.jsx)("meta",{itemProp:"validFrom",content:(0,u.b)(null==R?void 0:R.value)}),V&&(0,a.jsx)("meta",{itemProp:"validThrough",content:(0,u.b)(null==V?void 0:V.value)}),B&&(0,a.jsx)("meta",{itemProp:"priceValidUntil",content:(0,u.b)(null==B?void 0:B.value)}),H&&(0,a.jsx)("meta",{itemProp:"addOn",itemScope:!0,itemType:"https://schema.org/Offer"}),(0,a.jsx)("span",{itemProp:"brand",itemType:"https://schema.org/Brand",itemScope:!0,children:(0,a.jsx)("meta",{itemProp:"name",content:"Hersheypark"})}),(0,a.jsx)("link",{itemProp:"availability",content:(null==O?void 0:O.value)?"https://schema.org/SoldOut":"https://schema.org/InStock"}),!S&&q&&(0,a.jsx)("p",{className:"flex items-baseline justify-between gap-4 text-label-l",children:(0,a.jsx)("span",{className:"font-bold",children:q})}),Y&&(0,a.jsxs)("div",{className:"flex flex-col justify-center gap-1 text-center",children:[(0,a.jsx)("h2",{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"text-h2-m desktop:text-h2",children:Y}),(0,a.jsx)("span",{className:"text-h4-m desktop:text-h4",children:"/Month"})]})}),Q&&(0,a.jsx)("p",{className:"mt-0 text-p-s",children:Q}),(0,a.jsx)("span",{className:(0,n.A)("mx-auto mt-3 flex h-9 w-9 flex-wrap items-center justify-center rounded-full p-1 font-filson-pro text-p-xs font-bold",null==(j=o.Cs[X])?void 0:j.className,null==(w=o.Cs[X])?void 0:w.childrenClassName),children:"OR"})]}),U&&(0,a.jsxs)("div",{className:"flex flex-col justify-center gap-1 text-center",children:[(0,a.jsx)("h2",{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{itemProp:"priceCurrency",content:"USD"}),(0,a.jsx)("span",{className:"text-h2-m desktop:text-h2",itemProp:"price",content:U.replace(/[^\d.]/g,""),children:U}),(null==L?void 0:L.value)&&(0,a.jsxs)("span",{itemProp:"priceSpecification",itemScope:!0,itemType:"https://schema.org/UnitPriceSpecification",children:[(0,a.jsx)("meta",{itemProp:"priceType",content:"https://schema.org/StrikethroughPrice"}),(0,a.jsx)("meta",{itemProp:"priceCurrency",content:"USD"}),(0,a.jsx)("span",{itemProp:"price",content:null==L?void 0:L.value.replace(/[^\d.]/g,""),className:"strikethrough ml-2 inline-block text-h4-m !font-normal desktop:text-h4",children:null==L?void 0:L.value})]})]})}),(0,a.jsx)("p",{className:"mt-0 text-p-s",children:"One-Time Payment"})]}),(0,a.jsxs)("div",{className:"mt-3 flex items-center justify-between",children:[Z&&(0,a.jsx)(x.A,{ctaButton:Z,linkClassName:(0,n.A)("flex-grow",(null==O?void 0:O.value)&&"invisible opacity-0"),linkSize:"md",onLinkClick:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,g.xC)(Z),t=(0,v.N_)(e,q+" | "+Z.title);null==_||_.update({events:[{event:t}]})}}),Array.isArray(C)&&C.map((e,t)=>{let l=(0,b.z)(e);return(0,a.jsx)("div",{children:(0,a.jsx)(h.A,{className:(0,n.A)("ml-12 align-middle text-p-xs underline underline-offset-2 hover:no-underline",(null==O?void 0:O.value)?"invisible opacity-0":"inl
1ine-block"),href:l,onClick:()=>{let t=(0,v.aH)(q+" | "+(null==e?void 0:e.title));null==_||_.update({events:[{event:t}]})},showItemProp:!1,children:null==e?void 0:e.title})},t)})]})]}),(null==I?void 0:I.value)&&(0,a.jsxs)("div",{className:(0,n.A)("flex items-baseline justify-between gap-4 border-t px-4 py-6 font-filson-pro no-underline",null==(k=o.Cs.Zoo)?void 0:k.borderColor,null==(N=o.Cs.Zoo)?void 0:N.lightColor),children:[(0,a.jsx)("p",{className:"text-label-m",children:null==I?void 0:I.value}),(0,a.jsx)("p",{className:"text-label-l line-through",children:null==z?void 0:z.value})]})]})]})}function w(e){var t,l;let{seasonPassCard:c,component:m,context:p,slots:u}=e,x=(0,s.fKV)(c),h=(0,i.useRef)(null),f=(0,d.A)(h,[null!=(l=null==(t=o.Cs.Default)?void 0:t.className)?l:""]);return(0,a.jsxs)("section",{"data-component":null==m?void 0:m.type,ref:h,className:(0,n.A)("flex w-full flex-col gap-10 bg-primary-cream py-24",f?"mt-[-2px] pb-14 pt-0 desktop:pb-24 desktop:pt-0":"py-14 desktop:py-24"),itemProp:"hasOfferCatalog",itemScope:!0,itemType:"https://schema.org/OfferCatalog",children:[(0,a.jsx)(r.D,{context:p,data:m,slot:u.components,children:e=>(0,a.jsx)(i.Fragment,{children:(0,a.jsx)("div",{className:(0,n.A)("mx-auto pb-2 child:py-0 [&>*]:max-w-[1000px]"),children:e.child})},e.key)}),(0,a.jsx)("div",{className:"col-span-1 mx-auto mt-0 grid w-[1920px] max-w-[100%] gap-8 tablet:px-8 desktop:col-span-12 desktop:grid-cols-2 md-desktop:grid-cols-4",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/OfferCatalog",children:x&&x.sort((e,t)=>{var l,a,s,r,n,i,o,d,c,m;return(null!=(c=null==(r=e.seasonPassBlock)||null==(s=r.entry)||null==(a=s.fields)||null==(l=a.orderNumber)?void 0:l.value)?c:0)-(null!=(m=null==(d=t.seasonPassBlock)||null==(o=d.entry)||null==(i=o.fields)||null==(n=i.orderNumber)?void 0:n.value)?m:0)}).map((e,t)=>(0,a.jsx)(j,{...e},t))})]})}},47177:(e,t,l)=>{"use strict";l.d(t,{default:()=>u});var a=l(95155),s=l(37935),r=l(2821),n=l(15239),i=l(12115),o=l(19296),d=l(18500),c=l(48447),m=l(51450),p=l.n(m);function u(e){var t,l,m;let{image:u,mobileimage:x,component:h,context:f,slots:v,backgroundColor:g}=e,{isMatch:b}=(0,d.s)("tablet"),y=(0,i.useMemo)(()=>{var e,t,l;return u&&(null==(l=u[0])||null==(t=l.fields)||null==(e=t.url)?void 0:e.value)},[u]),j=(0,i.useMemo)(()=>{var e,t,l;return x&&!b?null==x||null==(l=x[0])||null==(t=l.fields)||null==(e=t.url)?void 0:e.value:y},[x,b,y]),w=(0,i.useMemo)(()=>{var e,t,l,a,s,r;return x&&!b?null==x||null==(l=x[0])||null==(t=l.fields)||null==(e=t.title)?void 0:e.value:null==u||null==(r=u[0])||null==(s=r.fields)||null==(a=s.title)?void 0:a.value},[x,b,u]),k=null!=j?j:y,N=(0,i.useMemo)(()=>(0,o.gK)(g,f,"Chocolate"),[g,f]),A=(null==(t=o.Cs[N])?void 0:t.backgroundStyles)?{backgroundImage:"var(--stripes-pattern)",backgroundSize:"8px 8px, 100%",backgroundBlendMode:"hue, normal"}:{},C=(0,i.useRef)(null),S=((e,t)=>{let[l,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{e.current&&a(!!e.current.querySelector(t))},[e]),l})(C,"breadcrumbs");return(0,a.jsxs)("section",{ref:C,id:h._id,"data-component":h.type,className:(0,r.A)("relative min-h-[440px] pt-24 desktop:h-[568px]",!k&&(null==(l=o.Cs[N])?void 0:l.className),null==(m=o.Cs[N])?void 0:m.childrenClassName,h.type),style:A,children:[k&&(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(n.default,{src:k,alt:(0,c.Vo)(null!=w?w:""),fill:!0,sizes:"(max-width: 767px) 30rem, (max-width: 1024px) 47.5rem, (max-width: 1440px) 90rem, 120rem",style:{objectFit:"cover"},priority:!0,fetchPriority:"high",placeholder:"blur",blurDataURL:k+"?w=10&q=10",itemProp:"image"}),(0,a.jsx)("meta",{itemProp:"name",content:(0,c.Vo)(null!=w?w:"")})]}),(0,a.jsx)("div",{className:"relative flex h-full flex-wrap justify-center pb-10 pt-24 text-center",children:(0,a.jsx)("div",{className:(0,r.A)("flex h-full w-full flex-wrap",S?"items-baseline [&>.breadcrumbs]:self-start":"items-center"),children:(0,a.jsx)(s.D,{context:f,data:h,slot:v.components,children:e=>{var t;let{child:l,key:s}=e;return(0,a.jsx)("div",{className:(0,r.A)("flex-[100%] flex-shrink-0 flex-grow-0 [&>*]:mx-auto [&>*]:bg-opacity-0 [&>*]:!p-0 [&_.copyComponent]:!px-4",null==(t=o.Cs[N])?void 0:t.childrenClassName,(0,o.YG)(N)&&k&&p()["copyComponent-text-shadow"]),children:l},s)}})})})]})}},51414:(e,t,l)=>{"use strict";l.d(t,{default:()=>v,V:()=>f});var a=l(95155),s=l(11597),r=l(2821),n=l(12115),i=l(19296),o=l(12703),d=l(18500),c=l(73842),m=l(77861),p=l.n(m),u=l(79072),x=l(28994);function h(e){var t,l,s,n,o,c,m,h;
1let{icon:v,backgroundColor:g,iconAndTextColor:b,url:y,title:j,newTab:w,hideTitle:k,layout:N="Default",parentTheme:A}=e,C=g&&g.map(e=>e),S=b&&b.map(e=>e),_=null==S||null==(t=S[0])?void 0:t.theme,D=null==S||null==(l=S[0])?void 0:l.theme,T=null==C||null==(s=C[0])?void 0:s.theme,P=T?i.Cs[T]:void 0,F=i.Cs[A],{isMatch:L}=(0,d.s)("desktop"),E=(null==v||null==(n=v[0])?void 0:n.icons)&&(0,a.jsx)("span",{className:(0,r.A)("mx-auto block flex-shrink-0",j&&!k&&"mb-4"),children:(0,a.jsx)(u.A,{width:k?L?"80px":"60px":"30px",height:k?L?"80px":"60px":"30px",icon:null==v||null==(o=v[0])?void 0:o.icons,btnClassName:(0,r.A)("block text-center mx-auto",_?null==(c=i.Cs[_])?void 0:c.fillName:void 0)})}),I=j&&!k&&(0,a.jsx)("span",{className:(0,r.A)("title block w-full flex-shrink-0 whitespace-normal",D?null==(m=i.Cs[D])?void 0:m.textColor:void 0,null==(h=f[N])?void 0:h.titleClasses),children:j}),z=P===F||P===i.Cs.Transparent,M=(0,r.A)("button-lg group relative top-0 w-full overflow-hidden whitespace-nowrap text-center transition-all",z?"ring-0":"ring-4 ".concat(null==P?void 0:P.ringColor),z?"py-1 pb-0":"","Default"===N?"px-4":"px-1","Default"===N?"px-4":"px-1");return(0,a.jsx)(a.Fragment,{children:(null==y?void 0:y.path)?(0,a.jsxs)(p(),{href:"string"==typeof(null==y?void 0:y.path)?y.path:(0,x.z)(y),className:(0,r.A)(M,"".concat(null==P?void 0:P.ringColorHover," hover:ring-[6px]")),target:w?"_blank":"_self",children:[E,I]}):(0,a.jsxs)("div",{className:M,children:[E,I]})})}(0,c.hf)({type:"toolbarIcon",component:h});let f={Default:{containerClasses:"grid-cols-4 tablet:grid-cols-8 tablet:child:col-span-2 md-desktop:grid-cols-12 md-desktop:child:col-span-3 child:col-span-2",titleClasses:"text-p-md"},"Column of 6":{containerClasses:"max-w-[1024px] grid-cols-3 tablet:grid-cols-6 gap-x-4 child:col-span-1 tablet:grid-cols-6 tablet:child:col-span-1 tablet:child:col-span-2",titleClasses:"text-p-xs"},"Column of 8":{containerClasses:"max-w-[1024px] grid-cols-4 gap-x-4 tablet:grid-cols-8 md-desktop:grid-cols-8 child:col-span-1",titleClasses:"text-p-xxs tablet:text-p-xs desktop:text-p-s"}};function v(e){var t,l,c,m;let{toolbarIcon:p,removeBorder:u,removeBottomPadding:x,component:v,context:g,hideOnDesktop:b,backgroundColor:y,layout:j="Default"}=e,w=(0,s.fKV)(p),k=(0,n.useRef)(null),N=(0,i.gK)(y,g),A=(0,o.A)(k,[null!=(m=null==(t=i.Cs[N])?void 0:t.className)?m:""]),{isMatch:C}=(0,d.s)("md-desktop");return b&&C?null:(0,a.jsx)("div",{ref:k,"data-component":null==v?void 0:v.type,className:(0,r.A)(null==v?void 0:v.type,null==(l=i.Cs[N])?void 0:l.className,"increaseFirstChild px-4 md-desktop:!px-16",x?"pb-0":"pb-24",A?"pt-0 tablet:pt-8":"pt-24"),children:(0,a.jsx)("div",{className:(0,r.A)("default-grid-row mx-auto max-w-[1920px] justify-items-center gap-8 px-0",!u&&"pb-10",null==(c=f[j])?void 0:c.containerClasses,!u&&"border-b border-primary-cocoa-2"),children:w&&w.map((e,t)=>(0,a.jsx)(h,{...e,iconLength:w.length,layout:j,parentTheme:N},t))})})}},51450:e=>{e.exports={"copyComponent-text-shadow":"CondensedHero_copyComponent-text-shadow__Pl7I3"}},53408:(e,t,l)=>{"use strict";l.d(t,{default:()=>b});var a=l(95155),s=l(11597),r=l(2821),n=l(12115),i=l(58726),o=l(19296),d=l(12703),c=l(18500),m=l(48447),p=l(76733),u=l(55605),x=l(42764),h=l(36334),f=l(11282),v=l(42271);function g(e){let{videoId:t,videoWidth:l,videoHeight:s,autoplay:n}=e,i=t||"",o=s||1080,d=l||1920,c={paddingBottom:"calc(".concat(o," / ").concat(d," * 100%)")};return(0,a.jsx)(a.Fragment,{children:i&&(0,a.jsx)("div",{"data-video":"youtube",className:"embed-container relative bottom-0 left-0 right-0 top-0 z-[10] mx-auto !h-full max-w-full overflow-hidden desktop:rounded-3xl",style:c,children:(0,a.jsx)(v.A,{videoId:t,opts:{height:o,width:d,playerVars:{autoplay:+!!n,mute:+!!n,playsinline:1,rel:0}},className:(0,r.A)("t-0 l-0 absolute z-10 h-full w-full")})})})}function b(e){var t,l,v,b,y,j;let{imagefeed:w,backgroundColor:k,autoplayVideo:N,wimpVideos:A=[],wimpImages:C=[],images:S,customVideoId:_,customVideoImage:D,customVideoTitle:T,customVideoWidth:P=1080,customVideoHeight:F=930,videoSettings:L,uniformVideo:E,context:I,component:z}=e,M=(0,o.gK)(k,I),{isMatch:O}=(0,c.s)("md-tablet"),R=e=>{var t,l,a,s,r,n;return"".concat(null!=(r=null==e||null==(l=e.generated)||null==(t=l[2])?void 0:t.url)?r:"").concat(null!=(n=null==e||null==(s=e.generated)||null==(a=s[2])?void 0:a.file_name)?n:"")},V=(0,s.fKV)(L,{toSingle:!0}),H=(0,s.fKV)(E,{toSingle:!0}),B=(null==H?void 0:H.video)?null==H?void 0:H.video:(null==V?void 0:V.videoId)?null==V?void 0:V.videoId:_,G=(null==V?void 0:V.videoTitle)?null==V?void 0:V.videoTitle:T,K=(null==V?void 0:V.image)?null==V?void 0:V.image:D,W=(null==V?void 0:V.autoplay)?null==V?void 0:V.autoplay:N,q=(0,n.useRef)(null),U=(0,d.A)(q,[null!=(j=null==(t=o.Cs[M])?void 0:t.className)?j:""]),[Y,Z]=(0,n.use
1State)(!1),X=()=>{Z(!0)},Q="default-grid-row relative mx-auto grid w-[1400px] max-w-[100%] grid-cols-2 gap-8 desktop:gap-4 desktop:grid-cols-4 lg-desktop:gap-8 lg-desktop:w-[1920px]",J=[...B?[{type:"video",video_id:B,video_title:G,video_image:K,autoplay:W}]:[],...S?S.map(e=>{let t=(0,s.fKV)(e,{toSingle:!0});return{type:"image",url:t.url,title:t.title}}):[]],$=[...(Array.isArray(A)?A:[]).map(e=>({type:"video",...e})),...(C.length>1?C:C.slice(1)).map(e=>({type:"image",...e}))],ee="h-[340px] tablet:h-[450px] desktop:col-span-1 ".concat((null==H?void 0:H.videoHeight)>450?"desktop:h-full":" desktop:h-[200px] lg-desktop:h-[350px]"),et=(e,t)=>(0,a.jsx)("div",{className:(null==e?void 0:e.type)==="video"?"px-5 desktop:px-2":"h-[300px] px-5 desktop:h-full desktop:px-2",children:(null==e?void 0:e.type)==="video"?(0,a.jsx)(g,{videoId:e.video_id,cc:!0,autoplay:N}):(0,a.jsxs)("picture",{children:[(0,a.jsx)("source",{media:"(min-width: 420px)",srcSet:R(e)}),(0,a.jsx)("source",{srcSet:R(e)}),(0,a.jsx)("img",{src:R(e),alt:(0,m.Vo)((null==e?void 0:e.alt_tag)||""),className:"h-full w-full rounded-3xl object-cover"})]})},t),el=(e,t)=>(0,a.jsx)("div",{className:1===J.length?"col-span-full rounded-3xl":0===t?"col-span-2 rounded-3xl desktop:row-span-2":ee,children:"video"===e.type?Array.isArray(E)&&E.length>0?(0,a.jsx)(f.A,{uniformVideo:E,bgImage:e.video_image,context:I}):(null==V?void 0:V.videoId)?(0,a.jsx)(h.A,{videoId:e.video_id,videoWidth:P||1080,videoHeight:F||930,videoTitle:e.video_title,bgImage:e.video_image,autoplay:e.autoplay,videoSettings:L}):null:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(i.A,{src:null==e?void 0:e.url,alt:(null==e?void 0:e.title)||"Image",fill:!1,containerClasses:"h-full w-full rounded-3xl object-cover",sizes:"(max-width: 767px) 21.875rem, (max-width: 767px) 46.875rem, 54rem"})})},t),ea=()=>(0,a.jsxs)(p.A,{size:"sm",variant:"White",className:"lg-desktop:button-md group absolute bottom-10 right-24",onClick:X,children:["Show All Photos",(0,a.jsx)(x.default,{className:"ml-3 fill-primary-cocoa group-hover:fill-secondary-white"})]});return(0,a.jsx)(a.Fragment,{children:(J.length>0||$.length>2||$.some(e=>"video"===e.type))&&(0,a.jsx)("section",{ref:q,"data-component":null==z?void 0:z.type,className:(0,r.A)(null==(l=o.Cs[M])?void 0:l.className,"relative",U?"mt-[-2px] pb-16 pt-0 desktop:pb-24 desktop:pt-0":"pb-16 pt-24 desktop:pb-24 desktop:pt-24"),style:{...null==(v=o.Cs[M])?void 0:v.backgroundStyles},children:"custom"===w?O?(0,a.jsxs)("div",{className:Q,children:[J.slice(0,Y?J.length:5).map(el),!Y&&J.length>5&&ea()]}):(0,a.jsx)(u.A,{infinite:!1,slidesToShow:1,variableWidth:!1,mobileFade:!0,dotsClass:(0,r.A)("relative",null==(b=o.Cs[M])?void 0:b.childrenClassName),tabletSlideToShow:2,children:J.map((e,t)=>(0,a.jsx)("div",{className:(0,r.A)("h-340px relative px-6 tablet:h-[450px]"),children:el(e,t)},t))}):"WIMP"===w&&((null==A?void 0:A[0])||(null==C?void 0:C[0]))?O?(0,a.jsxs)("div",{className:Q,children:[$.map((e,t)=>(0,a.jsx)("div",{className:1===$.length?"col-span-full rounded-3xl":(null==e?void 0:e.type)==="video"?"col-span-2 row-span-2 rounded-3xl":ee,children:et(e,t)},t)),$&&$.length>=6&&ea()]}):(0,a.jsx)(u.A,{infinite:!1,slidesToShow:1,variableWidth:!1,mobileFade:!0,dotsClass:(0,r.A)("relative",null==(y=o.Cs[M])?void 0:y.childrenClassName),children:$.map(et)}):null})})}},57841:(e,t,l)=>{"use strict";l.d(t,{default:()=>m});var a=l(95155),s=l(11597),r=l(2821),n=l(15239),i=l(79072),o=l(48447),d=l(45470);let c={coaster:{icon:"Coaster"},"ferris-wheel":{icon:"FerrisWheel"},"the-boardwalk":{icon:"Water"},"hot-air-balloon":{icon:"HotAirBalloon"}};function m(e){var t,l,m,p,u,x;let{type:h,foregroundColor:f,logo:v,component:g,context:b}=e,y=(0,s.fKV)(v,{toSingle:!0}),j=null!=(x=null==b||null==(p=b.composition)||null==(m=p.parameters)||null==(l=m.wimpFeed)||null==(t=l.value)?void 0:t.background_color)?x:"",w=j?"bg-rides-".concat(j):"bg-rides-red",k=(0,d.b)(j).textClass;return(0,a.jsx)(a.Fragment,{children:y&&(0,a.jsxs)("div",{style:{backgroundImage:"var(--stripes-pattern)",backgroundSize:"8px 8px, 100%",backgroundBlendMode:"overlay, normal"},className:(0,r.A)("w-[280px] max-w-full items-start justify-center gap-2.5 rounded-[20px] border border-secondary-white/60 px-8 pb-8 pt-6 lg-mobile:w-[347px]","bg-rides-".concat(f),null==g?void 0:g.type),children:[(null==h?void 0:h.icon)&&(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:(0,r.A)("roun
1ded-[62px] border-[1px] border-secondary-white px-3 py-1 font-proxima-nova text-[16px] font-semibold",w,k),children:null==h?void 0:h.name}),(0,a.jsx)("span",{className:"flex h-[32px] w-[32px] items-center justify-center rounded-full bg-secondary-white p-1 font-bold",children:(0,a.jsx)(i.A,{icon:null==(u=c[null==h?void 0:h.icon])?void 0:u.icon,width:"32",height:"32",btnClassName:(0,r.A)("max-w-full")})})]}),(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(n.default,{className:(0,r.A)(),src:null==y?void 0:y.url,alt:(0,o.Vo)(null==y?void 0:y.title),width:284,height:190,itemProp:"logo",sizes:"284px"}),(0,a.jsx)("meta",{itemProp:"name",content:null==y?void 0:y.title})]})]})})}},59630:(e,t,l)=>{"use strict";l.d(t,{q:()=>p});var a=l(95155),s=l(51396),r=l(37935),n=l(2821),i=l(58726),o=l(73697),d=l(95455),c=l(79669),m=l(64216);function p(e){var t,l,p;let{title:u,attractionType:x,intro:h,image:f,url:v,newTab:g,width:b="450px",mobileWidth:y="384px",className:j}=e,{context:w}=(0,s.Ti)(),k=v?(0,c.bu)(v):"",N=(0,n.A)("group/udc relative block h-full gap-6 rounded-2xl border border-primary-cocoa border-opacity-20 bg-secondary-white p-4 pb-6 no-underline lg-mobile:w-[".concat(y,"] lg-mobile:max-w-[").concat(y,"] lg-desktop:w-[").concat(b,"] lg-desktop:max-w-[").concat(b,"]")),A=(null==h||null==(l=h.root)||null==(t=l.children)?void 0:t.map((e,t)=>(0,a.jsx)(r.Y2,{node:e},t)))||[],C=null!=(p=null==u?void 0:u.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-"))?p:"DetailCard",S=e=>(0,a.jsxs)(a.Fragment,{children:[f.map((e,t)=>{var l;return(0,a.jsx)("div",{className:"box-border h-[181px] w-full max-w-[100%] overflow-hidden",children:(0,a.jsx)(i.A,{src:e.url,alt:null!=(l=e.title)?l:"",containerClasses:"rounded-2xl w-full",sizes:"300px"})},"".concat(e.url,"-").concat(t))}),(0,a.jsxs)("div",{className:"gap-2 text-primary-cocoa",children:[x&&(0,a.jsx)("div",{className:"w-fit rounded-[72px] border border-primary-cocoa px-3 py-1.5 font-proxima-nova text-label-s text-primary-cocoa",children:x}),u&&(0,a.jsx)("h4",{className:"text mt-3 font-filson-pro text-h4-m desktop:text-h4",children:u}),(0,a.jsxs)("div",{className:"mt-3 gap-6 pr-10",children:[A&&A,e?(0,a.jsx)(m.f,{}):null]})]})]});return(0,a.jsx)(a.Fragment,{children:k?(0,a.jsx)("div",{id:C,className:j,children:(0,a.jsx)(o.A,{href:k,target:(g?"_blank":void 0)?"_blank":void 0,className:N,onClick:()=>{let e=(0,d.UA)(u);null==w||w.update({events:[{event:e}]})},children:S(!0)})}):(0,a.jsx)("div",{className:N,children:S(!1)})})}},60631:(e,t,l)=>{"use strict";l.d(t,{default:()=>f});var a=l(95155),s=l(11597),r=l(37935),n=l(2821),i=l(71543),o=l(12096),d=l(8751),c=l(15239),m=l(12115),p=l(30287),u=l(19296),x=l(48424),h=l(18500);function f(e){var t,l;let{context:f,component:v,slots:g,backgroundImage:b,backgroundColor:y}=e,j=(0,m.useRef)(document.body),w=(0,m.useRef)(null),{isMatch:k}=(0,h.s)("md-desktop"),N=(0,i.L)({container:j,target:w,axis:"y",offset:["start end","end start"]}),A=(0,u.gK)(y,f),C=b&&(0,s.fKV)(null==b?void 0:b[0],{toSingle:!0}),{props:{srcSet:S}}=(0,c.getImageProps)({alt:null==C?void 0:C.title,width:1920,height:1e3,src:null==C?void 0:C.url}),_=(null==C?void 0:C.url)?(0,p.A)(S):"",D=(0,o.G)(N.scrollYProgress,[0,1],[200,-50],{ease:x.F.easeInOutCubic});return(0,a.jsxs)("section",{"data-component":null==v?void 0:v.type,className:(0,n.A)("w-full flex-row justify-center gap-12 bg-cover bg-center bg-no-repeat px-5 py-12 tablet:flex desktop:gap-24",null==(t=u.Cs[A])?void 0:t.className,null==v?void 0:v.type),style:{...null==(l=u.Cs[A])?void 0:l.backgroundStyles,backgroundImage:_},ref:w,children:[(0,a.jsx)("div",{className:"leftColumn flex w-full flex-col items-center gap-12 tablet:items-end [&>div]:ml-0 desktop:[&>div]:w-[400px] md-desktop:[&>div]:w-[500px]",children:(0,a.jsx)(r.D,{context:f,data:v,slot:g.leftColumn})}),k?(0,a.jsx)(d.P.div,{style:{translateY:D},className:"rightColumn mt-48 flex w-full flex-col gap-12 tablet:items-start [&>div]:ml-0 desktop:[&>div]:w-[400px] md-desktop:[&>div]:w-[500px]",children:(0,a.jsx)(r.D,{context:f,data:v,slot:g.rightColumn})}):(0,a.jsx)("div",{className:"rightColumn mt-12 flex w-full flex-col items-center gap-12 tablet:mt-24 tablet:items-start [&>div]:ml-0 desktop:[&>div]:w-[400px] md-desktop:[&>div]:w-[500px]",children:(0,a.jsx)(r.D,{context:f,data:v,slot:g.rightColumn})})]})}},63305:(e,t,l)=>{"use strict";l.d(t,{default:()=>N});var a=l(95155),s=l(11597),r=l(51396),n=l(37935),i=l(2821),o=l(8751),d=l(15239),c=l(12115),m=l(9364);function p(e){let{variant:t="White",size:l="xs",children:s}=e;return(0,a.jsx)("span",{className:(0,i.A)("inline-flex items-center border font-proxima-nova",{"h-8 rounded-[14px] px-3 py-1.5 text-label-s":"xs"===l,"h-9 rounded-[18px] px-4 py-2 text-label-m":"sm"===l,"border-primary-cocoa text-primary-cocoa":"Cocoa"===t,"border-secondary-white text-secondary-white":"White"===t}),children:s})}var u=l(2671),x=l(39329),h=l(75387),f=l(62990),v=l(30287),g=l(19296
1),b=l(95455),y=l(79669),j=l(48447),w=l(76963),k=l(95993);function N(e){var t,l,N;let{variant:A="Auto",badgeText:C,badgeVariant:S,badgeSize:_,image:D,title:T,subtitle:P,shortDescription:F,newDescription:L,priceText:E,priceValue:I,strikethroughPrice:z,pricePeriod:M,newPriceDescription:O,offerText:R,offerDetails:V,ctaLink:H,detailsButton:B,notice:G,component:K,validFrom:W,validThrough:q,addOnOffer:U,priceValidUntil:Y,priceDisclaimer:Z,displayPriceDisclaimer:X,calloutBadgeText:Q,calloutBadgeColor:J}=e,[$,ee]=(0,c.useState)(!1),[et,el]=(0,c.useState)(),ea=(0,c.useRef)(null),[es,er]=(0,m.A)(),en=(0,s.fKV)(D,{toSingle:!0});(0,c.useEffect)(()=>{ea.current&&es(ea.current.closest(".admission-column")||ea.current.parentNode)},[]);let ei=(0,c.useMemo)(()=>er.width/er.height,[er]),eo=(0,c.useMemo)(()=>"Vertical"===A||"Horizontal"!==A&&"Side by Side"!==A&&"Side by Side Right Image"!==A&&("Auto"===A?ei<1:void 0),[A,ei]),ed=(0,c.useMemo)(()=>"Vertical"!==A&&"Horizontal"!==A&&("Side by Side"===A||"Side by Side Right Image"===A||"Auto"!==A&&void 0),[A,ei]),ec=(null==T?void 0:T.toLowerCase().replace(/[^a-zA-Z0-9\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,""))||"AdmissionsStandardCard",{context:em}=(0,r.Ti)(),ep=J&&"object"==typeof J?(0,g.wj)(J):{theme:"Callout Badge"},eu=ep&&ep.theme?ep.theme:"Callout Badge",{props:{srcSet:ex}}=(0,d.getImageProps)({alt:(null==en?void 0:en.title)||"",width:800,height:570,src:(null==en?void 0:en.url)||""}),eh=(null==en?void 0:en.url)?(0,v.C)(ex):"";return(0,a.jsxs)(o.P.div,{id:ec,"data-component":null==K?void 0:K.type,className:"card-wrapper col-span-full flex w-full flex-col gap-4 transition-opacity",ref:ea,initial:{opacity:0}
1,animate:{opacity:Number(!Number.isNaN(ei))},itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/Offer",children:[(0,a.jsx)("meta",{itemProp:"acceptedPaymentMethod",content:"VISA, MasterCard, Discover, and American Express"}),(0,a.jsx)("span",{className:"-mb-4 inline-flex h-9",children:Q&&(0,a.jsx)("span",{className:(0,i.A)("relative items-start justify-start gap-2.5 rounded-tl-[20px] rounded-tr-md px-3 py-2 text-p-xs font-black uppercase",null==(t=g.Cs[eu])?void 0:t.className,null==(l=g.Cs[eu])?void 0:l.childrenClassName),style:null==(N=g.Cs[eu])?void 0:N.backgroundStyles,children:Q})}),(0,a.jsxs)("div",{className:(0,i.A)("card-body relative flex overflow-hidden rounded-[16px]",Q&&"rounded-tl-none",{"aspect-[0.5] max-h-[90dvh] min-h-[434px] lg-desktop:aspect-[0.625]":eo,"aspect-[0.5] max-h-[90dvh] min-h-[434px] w-dvw max-w-full tablet:aspect-auto":!eo&&!ed,"min-h-0 w-dvw max-w-full flex-col lg-desktop:min-h-[325px]":ed,"desktop:flex-row":ed&&"Side by Side Right Image"!==A,"desktop:flex-row-reverse":ed&&"Side by Side Right Image"===A}),...I?{itemProp:"itemOffered",itemScope:!0,itemType:"https://schema.org/Product"}:{},children:[(0,a.jsxs)("div",{className:(0,i.A)({"pointer-events-none absolute left-0 top-0 h-full w-full":!ed,"relative h-64 desktop:h-full desktop:w-[100%] md-desktop:w-[70%]":ed}),children:[(0,a.jsx)("meta",{itemProp:"name",content:T}),L?"object"==typeof L?(0,a.jsx)("meta",{itemProp:"description",content:(0,w.v)(L)}):(0,a.jsx)("meta",{itemProp:"description",content:L}):F?"object"==typeof F?(0,a.jsx)("meta",{itemProp:"description",content:(0,w.v)(F)}):(0,a.jsx)("meta",{itemProp:"description",content:F}):null,en&&(null==en?void 0:en.url)&&(0,a.jsx)("link",{itemProp:"image",href:eh}),en&&(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(d.default,{className:"pointer-events-none h-full w-full object-cover",src:null==en?void 0:en.url,alt:(0,j.Vo)(en.title),fill:!0,loading:"eager",itemProp:"image",content:en.url,sizes:"(max-width: 767px) 47.9375rem, (max-width: 1024px) 28.125rem, (max-width: 1200px) 37.5rem, 50rem"}),(0,a.jsx)("meta",{itemProp:"name",content:null==en?void 0:en.title})]})]}),(0,a.jsxs)("div",{className:(0,i.A)("relative flex w-full justify-end",{"pt-6 tablet:pt-40":!eo&&!ed,"flex-col pt-6 lg-desktop:pt-8":eo||!ed,"flex-wrap pt-0 lg-desktop:pt-0":ed},{"flex-col":"Horizontal"===A||"Auto"===A}),...I?{itemProp:"offers",itemScope:!0,itemType:"https://schema.org/Offer"}:{},children:[W&&(0,a.jsx)("meta",{itemProp:"validFrom",content:(0,w.b)(W)}),q&&(0,a.jsx)("meta",{itemProp:"validThrough",content:(0,w.b)(q)}),Y&&(0,a.jsx)("meta",{itemProp:"priceValidUntil",content:(0,w.b)(Y)}),U&&(0,a.jsx)("meta",{itemProp:"addOn",itemScope:!0,itemType:"https://schema.org/Offer"}),(0,a.jsx)("span",{itemProp:"brand",itemType:"https://schema.org/Brand",itemScope:!0,children:(0,a.jsx)("meta",{itemProp:"name",content:"Hersheypark"})}),(0,a.jsx)("link",{itemProp:"availability",content:"https://schema.org/InStock"}),C&&!ed&&(0,a.jsx)("div",{className:"absolute left-6 top-6 lg-desktop:left-8 lg-desktop:top-8",children:(0,a.jsx)(p,{variant:S||"Cocoa",size:_||"sm",children:C})}),(0,a.jsxs)("div",{className:(0,i.A)("flex flex-wrap justify-between gap-4 bg-secondary-white px-6 pb-6 font-filson-pro text-primary-cocoa lg-desktop:px-8 lg-desktop:pb-8",{"flex-col":eo},{"pt-4":!ed},{"w-full flex-col pt-8":ed}),children:[C&&ed&&(0,a.jsx)("div",{className:"mb-4 w-fit",children:(0,a.jsx)(p,{variant:S||"Cocoa",size:_||"sm",children:C})}),(T||F)&&(0,a.jsxs)("div",{className:(0,i.A)("w-fit",{"desktop:basis-7/12 md-desktop:basis-8/12":!eo&&!ed}),children:[(0,a.jsx)("h2",{className:(0,i.A)("text-h3-m lg-desktop:text-h2",{"mt-4":!ed},{"mb-4 mt-0":ed}),children:T}),F&&(0,a.jsx)(n.mj,{className:"font-proxima-nova [&>p]:text-p-s lg-desktop:[&>p]:text-p-m",component:K,parameterId:"shortDescription",itemProp:"description"})]}),(0,a.jsxs)("div",{className:(0,i.A)("flex w-fit flex-col gap-1"),children:[I&&(0,a.jsxs)(a.Fragment,{children:[E&&(0,a.jsx)("p",{className:"text-label-m",children:E}),(0,a.jsxs)("h2",{className:(0,i.A)("mt-4",{"!mt-0 mb-4 desktop:mb-0":ed}),children:[I&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{itemProp:"priceCurrency",content:"USD"}),(0,a.jsx)("span",{className:"text-h1-m lg-desktop:text-h1",itemProp:"price",content:I.replace(/[^\d.]/g,""),children:I}),z&&(0,a.jsxs)("span",{itemProp:"priceSpecification",itemScope:!0,itemType:"https://schema.org/UnitPriceSpecification",children:[(0,a.jsx)("meta",{itemProp:"priceType",content:"https://schema.org/StrikethroughPrice"}),(0,a.jsx)("meta",{itemProp:"priceCurrency",content:"USD"}),(0,a.jsx)("meta",{itemProp:"price",content:z.replace(/[^\d.]/g,"")})]})]}),z&&(0,a.jsx)("span",{className:"strikethrough ml-2 inline-block text-h3",children:z}),M&&(0,a.jsxs)("span",{className:"text-h4-m lg-desktop:text-h4",children:["/",M]})]})]}),Z&&"Details"!=X&&(0,a.jsx)(n.mj,{component:K,parameterId:"priceDisclaimer",itemProp:"description",className:"[&>p]:text-p-xs"})]}),(0,a.jsxs)("div",{className:(0,i.A)("flex flex-wrap justify-between gap-4",{"w-full self
1-end":!eo&&!ed,"mb-2 mt-4 w-full !justify-between desktop:!justify-start":ed}),children:[Array.isArray(H)&&H.map((e,t)=>{let l=(0,s.fKV)(e,{toSingle:!0}),r=Array.isArray(H)?H.length:0,n="";return n=B&&1===r?"flex-grow":r>1?"w-full flex-shrink-0 lg-mobile:w-[48%] md-desktop:w-[30%]":"w-full flex-shrink-0 lg-mobile:w-1/2 md-desktop:w-[30%]",(0,a.jsx)(k.A,{ctaButton:l,linkClassName:(0,i.A)("lg-desktop:button-md h-auto flex-grow",{"tablet:min-w-[240px]":!eo&&!ed},{"lg-desktop:button-md h-auto flex-grow-0 tablet:px-12 md-desktop:px-20":ed},n),linkSize:"sm",onLinkClick:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,y.xC)(l),t=(0,b.N_)(e,T+" | "+l.title);null==em||em.update({events:[{event:t}]})}},t)}),B&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.A,{className:(0,i.A)("lg-desktop:button-md border-0 bg-secondary-transparent text-primary-cocoa underline underline-offset-2",Array.isArray(H)&&H.length>1&&"w-full md-desktop:w-[30%]"),size:"sm",variant:"Transparent",onClick:e=>{let t=(0,b.UA)("Details about ".concat(T));null==em||em.update({events:[{event:t}]}),el({x:e.clientX+"px",y:e.clientY+"px"}),ee(!0)},children:"Details"}),(0,a.jsxs)(f.A,{isOpen:$,setIsOpen:ee,overlayCenter:et,children:[(0,a.jsxs)("div",{className:"flex flex-shrink-0 justify-between overflow-hidden border-b border-primary-cocoa-2 bg-secondary-white px-6 pb-6 pt-8 desktop:rounded-t-[16px]",children:[(0,a.jsxs)("p",{className:"flex items-center gap-3 font-filson-pro text-label-l text-primary-cocoa",children:[(0,a.jsx)(h.default,{width:"23",height:"20"})," Details"]}),(0,a.jsx)("button",{className:"flex h-6 w-8 justify-center",onClick:()=>ee(!1),children:(0,a.jsx)(x.default,{width:"13",height:"24",className:"fill-primary-cocoa"})})]}),(0,a.jsxs)("div",{className:"flex flex-grow flex-col gap-6 overflow-y-auto bg-secondary-white px-8 py-6",children:[(0,a.jsx)("div",{className:"relative aspect-[1.6] w-full flex-shrink-0",children:en&&(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(d.default,{className:"pointer-events-none h-full w-full object-cover",src:en.url,alt:(0,j.Vo)(en.title),fill:!0,itemProp:"image",sizes:"(max-width: 767px) 47.9375rem, (max-width: 1024px) 28.125rem, (max-width: 1200px) 37.5rem, 50rem"}),(0,a.jsx)("meta",{itemProp:"name",content:null==en?void 0:en.title})]})}),(0,a.jsxs)("div",{className:"flex flex-col gap-4 text-center font-filson-pro",children:[T&&(0,a.jsx)("h3",{className:"text-h3 text-primary-cocoa",itemProp:"name",children:T}),R&&(0,a.jsx)("p",{className:"mt-0 text-label-l text-primary-zoo",itemProp:"description",children:R})]}),(I||O||P)&&(0,a.jsxs)("div",{className:"flex flex-col gap-4 roun
1ded-3xl border border-primary-cocoa-2 px-5 py-8 text-center text-primary-cocoa",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[P&&(0,a.jsx)("p",{className:"font-filson-pro text-label-l",children:P}),I&&(0,a.jsxs)("h2",{className:"mb-0 mt-0 text-h1",children:[(0,a.jsx)("span",{itemProp:"price",content:I.replace(/[^\d.]/g,""),children:I}),V&&(0,a.jsx)("span",{className:"strikethrough relative mx-auto ml-2 mt-4 w-max text-p-xl",children:V})]}),M&&(0,a.jsxs)("p",{className:"font-proxima-nova text-p-s font-normal",children:["Price Per ",M.slice(0,1).toUpperCase()+M.slice(1)]})]}),Z&&"Card"!=X&&(0,a.jsx)(n.mj,{component:K,parameterId:"priceDisclaimer",itemProp:"description",className:"[&>p]:text-p-xs"})]}),L&&(0,a.jsx)(n.mj,{component:K,parameterId:"newDescription",itemProp:"description"})]}),Array.isArray(H)&&(0,a.jsx)("div",{className:"bg-gradient-happiness flex flex-shrink-0 flex-wrap justify-center gap-4 p-8 desktop:rounded-b-[16px]",children:H.map((e,t)=>{let l=(0,s.fKV)(e,{toSingle:!0});return(0,a.jsx)(k.A,{ctaButton:l,linkClassName:(0,i.A)("min-w-64",{"desktop:button-md":"Auto"===A}),linkSize:"md",variant:"White",onLinkClick:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,y.xC)(l);(0,b.N_)(e,null==l?void 0:l.title),ee(!1)}},t)})})]})]})]})]})]})]}),G&&(0,a.jsx)("div",{className:"px-8",children:(0,a.jsx)("p",{className:"text-center font-proxima-nova text-legal-regular text-opacity-60",children:G})})]})}},64216:(e,t,l)=>{"use strict";l.d(t,{f:()=>r});var a=l(95155),s=l(81275);let r=()=>(0,a.jsx)("span",{className:"group-hover/udc:bg-gradient-chocolate absolute bottom-[20px] right-[20px] flex h-[29px] w-[29px] flex-shrink-0 items-center justify-center rounded-full border-2 border-primary-cocoa bg-secondary-white transition duration-300 ease-in-out",children:(0,a.jsx)(s.A,{width:"18",height:"17",className:"fill-primary-cocoa group-hover/udc:fill-secondary-white"})})},65775:(e,t,l)=>{"use strict";l.d(t,{default:()=>j});var a=l(95155),s=l(37935),r=l(2821),n=l(12115),i=l(2671),o=l(39329),d=l(92038),c=l(62990),m=l(13835),p=l(17992),u=l(87408),x=l(90106),h=l(96157),f=l(87839),v=l(99966),g=l(26621),b=l(21327),y=l(47712);function j(e){var t,l,j,w,k,N,A;let{context:C,component:S,footnote:_}
1=e,[D,T]=(0,n.useState)(!1);(0,n.useEffect)(()=>{T(!0)},[]);let[P,F]=(0,n.useState)(!1),[L,E]=(0,n.useState)();if(!D)return null;let I=null==C||null==(j=C.composition)||null==(l=j.parameters)||null==(t=l.wimpFeed)?void 0:t.value,z=null==I?void 0:I.heights,M=null==I?void 0:I.fast_track_seasons,O=e=>{var t,l;return z&&null!=(l=null==(t=I.heights)?void 0:t[e])?l:"F"},R=[{name:"Jolly Rancher",height:"60â+",icon:g.default,value:O("Jolly Rancher"),className:"bg-primary-boardwalk text-secondary-white",fillName:"fill-secondary-white"},{name:"Twizzlers",height:'54-60"',icon:y.default,value:O("Twizzlers"),className:"bg-primary-twizzler text-secondary-white",fillName:"fill-secondary-white"},{name:"Hershey's Chocolate",height:'48-54"',icon:h.default,value:O("Hershey's"),className:"bg-primary-cocoa text-secondary-white",fillName:"fill-secondary-white"},{name:"Reese's",height:'42-48"',icon:b.default,value:O("Reese's"),className:"bg-secondary-reeses text-secondary-white",fillName:"fill-secondary-white"},{name:"Hershey's Kisses",height:'36-42"',icon:f.default,value:O("Hershey's Kisses"),className:"bg-secondary-kisses text-primary-cocoa",fillName:"fill-primary-cocoa"},{name:"Hershey's Miniatures",height:'0-36"',icon:v.HersheysMiniatures,value:O("Hershey's Miniatures"),className:"bg-secondary-sunshine text-primary-cocoa",fillName:"fill-primary-cocoa"}],V=e=>{var t;return null!=(t=null==M?void 0:M.some(t=>t==e))&&t},H=[{name:"Spring",open:null!=(w=null==I?void 0:I.open_springtime)&&w,fastTrack:V(1)},{name:"Summer",open:null!=(k=null==I?void 0:I.open_summer)&&k,fastTrack:V(2)},{name:"Halloween",open:null!=(N=null==I?void 0:I.open_halloween)&&N,fastTrack:V(3)},{name:"Christmas",open:null!=(A=null==I?void 0:I.open_christmas)&&A,fastTrack:V(4)}];return(0,a.jsxs)("div",{"data-component":null==S?void 0:S.type,className:(0,r.A)("col-span-full flex flex-col gap-8 desktop:col-span-6",null==S?void 0:S.type),children:[z&&(0,a.jsxs)("div",{className:"gap-8 overflow-hidden rounded-[16px] border border-primary-cocoa-2 bg-secondary-white pb-0 text-primary-cocoa",children:[(0,a.jsx)("h3",{className:"mb-0 p-8 font-filson-pro text-h3-m desktop:text-h3",children:"Height Requirements"}),(0,a.jsx)("ul",{children:R.map(e=>(0,a.jsxs)("li",{className:(0,r.A)("T"===e.value?null==e?void 0:e.className:"opacity-50","m-0 flex flex-row items-center gap-5 !px-4 py-4 leading-6 desktop:py-3"),children:[(0,a.jsx)("span",{className:"flex h-[50px] align-middle",children:(0,a.jsx)(e.icon,{className:"m-auto"})}),(0,a.jsx)("span",{className:"flex-1",children:e.name}),(0,a.jsx)("span",{className:"text-right",children:e.height}),(0,a.jsx)("span",{children:"T"===e.value?(0,a.jsx)(p.default,{className:(0,r.A)("mx-auto",null==e?void 0:e.fillName)}):(0,a.jsx)(u.default,{className:"m-auto"})})]},e.name))})]}),(0,a.jsxs)("div",{className:"gap-8 rounded-[16px] border border-primary-cocoa-2 bg-secondary-white p-8 pb-8 text-primary-cocoa",children:[(0,a.jsxs)("table",{className:"rides-chart table w-full border-separate border-spacing-y-4 font-filson-pro",children:[(0,a.jsx)("caption",{children:(0,a.jsx)("h3",{className:"text-center text-h3-m desktop:text-h3",children:"Seasonal Availability"})}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"font-proxima-nova uppercase",children:[(0,a.jsx)("th",{scope:"col",className:"w-[75%] text-left",children:"Season"}),(0,a.jsx)("th",{scope:"col",children:"Open"}),(null==I?void 0:I.fast_track)!==void 0&&(null==I?void 0:I.fast_track)!==null&&(0,a.jsx)("th",{scope:"col",className:"whitespace-nowrap pl-4",children:"Fast Track"})]})}),(0,a.jsx)("tbody",{className:"text-p-l",children:H.map(e=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{scope:"row",className:"".concat(e.open?"":"font-normal"," text-left"),children:e.name}),(0,a.jsx)("td",{children:e.open?(0,a.jsx)(m.default,{className:"mx-auto"}):(0,a.jsx)(u.default,{className:"m-auto"})}),(null==I?void 0:I.fast_track)!==void 0&&(null==I?void 0:I.fast_track)!==null&&(0,a.jsx)("td",{children:e.fastTrack?(0,a.jsx)(m.default,{className:"mx-auto"}):(0,a.jsx)(u.default,{className:"m-auto"})})]},e.name))})]}),_&&(0,a.jsx)(s.mj,{className:"px-2 pt-4 font-proxima-nova text-legal-regular [&>p]:text-p-s",component:S,parameterId:"footnote"})]}),((null==I?void 0:I.information)||(null==I?void 0:I.additional_information))&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.A,{className:"button-xl group justify-between whitespace-normal
1!rounded-[16px] !border !border-primary-cocoa-2 bg-secondary-white !px-8 !py-10 text-left !font-bold text-primary-cocoa ring-0 hover:bg-primary-cocoa hover:text-secondary-white",size:"sm",variant:"Chocolate",outlined:!0,onClick:e=>{E({x:e.clientX+"px",y:e.clientY+"px"}),F(!0)},children:["Rider Safety & Accessibility ",(0,a.jsx)(x.default,{className:"h-[35px] w-[35px] group-hover:fill-secondary-white"})]}),(0,a.jsxs)(c.A,{isOpen:P,setIsOpen:F,overlayCenter:L,children:[(0,a.jsxs)("div",{className:"flex flex-shrink-0 justify-between overflow-hidden border-b border-primary-cocoa-2 bg-secondary-white px-6 pb-6 pt-8 desktop:rounded-t-[16px]",children:[(0,a.jsxs)("p",{className:"flex items-center gap-3 font-filson-pro text-label-l text-primary-cocoa",children:[(0,a.jsx)(d.default,{width:"24",height:"24"})," Rider Safety & Accessibility"]}),(0,a.jsx)("button",{className:"flex h-6 w-8 justify-center",onClick:()=>F(!1),children:(0,a.jsx)(o.default,{width:"13",height:"24",className:"fill-primary-cocoa"})})]}),(0,a.jsx)("div",{className:"flex flex-grow flex-col gap-5 overflow-y-auto bg-secondary-white px-8 py-6",children:(0,a.jsxs)("div",{className:"text-primary-cocoa",children:[(null==I?void 0:I.information)?Object.values(I.information).map(e=>(0,a.jsx)("p",{className:"mb-4",children:e},e)):[],(null==I?void 0:I.additional_information)?Object.values(I.additional_information).map(e=>(0,a.jsx)("p",{className:"mb-4",children:e},e)):[],(0,a.jsx)("a",{href:"/plan-your-visit/accessibility-information",children:"Learn More About Rider Safety and Accessibility"})]})})]})]})]})}},66733:(e,t,l)=>{"use strict";l.d(t,{default:()=>f});var a=l(95155),s=l(11597),r=l(51396),n=l(2821),i=l(12115),o=l(59630),d=l(19296),c=l(12703),m=l(95455),p=l(79669),u=l(95993),x=l(34781),h=l(40057);function f(e){var t,l,f,v,g;let{title:b,intro:y,ctaButton:j,backgroundColor:w,cards:k,component:N,context:A}=e,C=(0,s.fKV)(k),S=(0,s.fKV)(j,{toSingle:!0}),{context:_}=(0,r.Ti)(),D=(0,d.gK)(w,A),T=(0,i.useRef)(null),P=(0,c.A)(T,[null!=(g=null==(t=d.Cs[D])?void 0:t.className)?g:""]);return(0,a.jsxs)("section",{ref:T,"data-component":N.type,className:(0,n.A)(null==(l=d.Cs[D])?void 0:l.className,null==(f=d.Cs[D])?void 0:f.childrenClassName,N.type,P?"mt-[-2px] pb-24 pt-0 desktop:pt-0":"py-24"),style:null==(v=d.Cs[D])?void 0:v.backgroundStyles,children:[(b||y||(null==S?void 0:S.link))&&(0,a.jsxs)("div",{className:"mx-auto mb-14 max-w-[863px] px-8 pb-10 text-center desktop:px-0",children:[(0,a.jsx)(h.A,{title:b,component:N,context:A,titleClassName:(0,n.A)("mb-6 font-filson-pro text-h1-m desktop:text-h1"),htmlTag:"h2"}),(0,a.jsx)(x.A,{intro:y,component:N,introClassName:(0,n.A)("font-proxima-nova text-p-l desktop:text-p-xl")}),S&&(0,a.jsx)(u.A,{ctaButton:S,linkClassName:(0,n.A)("mx-auto mt-5"),linkSize:"md",onLinkClick:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,p.xC)(S),t=(0,m.N_)(e,null==S?void 0:S.title);null==_||_.update({events:[{event:t}]})}})]}),C?(0,a.jsx)("div",{className:"mx-auto flex max-w-[1600px] flex-wrap justify-center gap-8 px-4",children:C.map((e,t)=>(0,a.jsx)(o.q,{className:"lg-mobile:w-[384px] lg-mobile:max-w-full tablet:col-span-4 lg-desktop:w-[450px]",...e},t))}):null]})}},66837:(e,t,l)=>{"use strict";l.d(t,{default:()=>r});var a=l(95155),s=l(37935);function r(e){let{component:t,context:l,slots:r}=e;return(0,a.jsx)("div",{className:"flex flex-col gap-8 desktop:flex-row",children:(0,a.jsx)(s.D,{context:l,data:t,slot:r.cards})},t._id)}},68147:(e,t,l)=>{"use strict";l.d(t,{default:()=>T});var a=l(95155),s=l(76784),r=l(51396),n=l(37935),i=l(2821),o=l(12115),d=l(90912),c=l(62990),m=l(18500),p=l(82002),u=l(2671),x=l(15239),h=l(64216),f=l(48447);let v={src:"/_next/static/media/app-logo.24cc57a0.png",height:72,width:73,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAY1BMVEVMaXEfrtPmO0/8uSYKodPRXV+oNJPNhZHWs0YiiJeBPpXdIkTsOI2aP5krX4fwOpvlSSn/cBwGo94Ai8fuxTkAZoEPrd33niCizXjmO0I9v8EAbIPqOpn4mh5uSJNEwLz/wSYzEwFxAAAAIXRSTlMASVNOFylUBhgQNQ8bkVN7oFuTaop8ua9suXS1uHe2tLoUDwggAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAQklEQVR4nB3LRRbAIBDA0KADNepu9z9lH83qbwIggVww5nJlxvgurYa4P2u3aUHUPPgzVaD6464dYO3U+OL/YkT4AFTdAl3PpRJEAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8};function g(e){var t,l,s,r,n,o,d,c,m;let{item:p,href:u,onClick:g,index:b=0,showSubtitle:y=!1,showActionButton:j=!1,cardClassName:w}=e,k=null==(s=p.images)||null==(l=s[0])||null==(t=l.generated)?void 0:t[2],N=null==k?void 0:k.url,A=null==k?void 0:k.file_name,C=N&&A?N+A:"";return(0,a.jsxs)("a",{className:(0,i.A)("group/udc relative mx-auto w-[360px] max-w-full rounded-2xl border border-primary-cocoa/20 px-4 pb-4 pt-4 no-underline transition hover:shadow-[0_0_0_1px_rgba(63,0,11,0.2)] tablet:w-full",w),href:u,onClick:g,children:[(0,a.jsx)("div",{className:"relative mb-8 grid h-[184px] place-items-center overflow-hidden rounded-[8px] bg-secondary-white",children:C?(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(x.default,{className:"absolute",src:C,alt:(0,f.Vo)((null==(n=p.images)||null==(r=n[0])?void 0:r.alt_tag)||p.name),fill:!0,sizes:"18.75rem",style:{objectFit:"cover"},placeholder:"blur",blurDataURL:C+"?w=10&q=10",loading:0===b?"eager":"lazy",priority:0===b,itemProp:"image"}),(0,a.jsx)("meta",{itemProp:"name",content:(null==(d=p.images)||null==(o=d[0])?void 0:o.alt_tag)||p.name})]}):(0,a.jsxs)("span",{itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(x.default,{className:"absolute",src:v,alt:"Hersheypark Logo",width:80,height:80,itemProp:"image",sizes:"5rem"}),(0,a.jsx)("meta",{itemProp:"name",content:(null==(m=p.images)||null==(c=m[0])?void 0:c.alt_tag)||p.name})]})}),(null==p?void 0:p.name)&&(0,a.jsx)("h3",{className:"mb-0 pr-8 font-filson-pro text-h4 font-medium text-primary-cocoa",children:p.name}),y&&(null==p?void 0:p.subtitle)&&(0,a.jsx)("h4",{className:"mb-0 pr-8 font-proxima-nova text-h5 font-medium text-primary-cocoa",children:p.subtitle}),j&&(0,a.jsx)(h.f,{})]})}let b=e=>{let{showFeed:t}=e,{context:l}=(0,r.Ti)();return(0,a.jsxs)("div",{className:"mt-16",children:[(0,a.jsx)("h2",{className:"mb-10 text-h2 desktop:text-h2",children:"Fun With The Characters"}),(0,a.jsx)("div",{className:(0,i.A)("grid grid-cols-1 content-start gap-8 tablet:grid-cols-2 md-desktop:grid-cols-3"),children:0===t.length?(0,a.jsx)("div",{className:"col-span-4 text-center text-primary-cocoa",children:(0,a.jsx)("h3",{className:"font-filson-pro text-h2-m font-medium",children:"No shows are currently available to display."})}):t.map(e=>(0,a.jsx)(g,{item:e,href:"/things-to-do/entertainment/"+e.url,onClick:()=>{let t=p.H.ToDo_Cards;(0,s.sendGTMEvent)({event:t,value:{data_title:"ToDo_Cards",data_text:e.name}}),null==l||l.update({events:[{event:t}]})}},e.id))})]})};var y=l(20063);let j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t]=(0,o.useState)(e),[l,a]=(0,o.useState)(e),[s,r]=(0,o.useState)(18),n=(0,y.useSearchParams)(),i=(0,y.useRouter)(),d=(0,y.usePathname)(),[c,m]=(0,o.useState)(!1),p=[...Array.isArray(t)&&t.some(e=>e.fast_track&&1===e.fast_track)?[{name:"Fast Track Eligible",state:c,setState:m}]:[]];(0,o.useEffect)(()=>{n&&("1"===n.get("fast_track")?m(!0):m(!1))},[]);let[u,x]=(0,o.useState)([]),h=Array.isArray(t)&&t.length>0?Array.from(new Set(t.flatMap(e=>e.types?e.types.filter(e=>""!==e.name.trim()):[]))):[];(0,o.useEffect)(()=>
1{if(n){let e=n.get("ride_types");e?x(e.split(",").map(e=>e.trim())):x([])}},[]);let[f,v]=(0,o.useState)(!1),[g,b]=(0,o.useState)(!1),[j,w]=(0,o.useState)(!1),[k,N]=(0,o.useState)(!1),[A,C]=(0,o.useState)(!1),[S,_]=(0,o.useState)(!1),D=[{key:"Hershey's Miniatures",name:"Hershey's Miniatures | 0-36â",id:"miniatures",state:f,setState:v},{key:"Hershey's Kisses",name:"Hershey's Kisses | 36-42â",id:"kisses",state:g,setState:b},{key:"Reese's",name:"Reese's | 42-48â",id:"reeses",state:j,setState:w},{key:"Hershey's",name:"Hershey's | 48-54â",id:"hersheys",state:k,setState:N},{key:"Twizzlers",name:"Twizzlers | 54-60â",id:"twizzlers",state:A,setState:C},{key:"Jolly Rancher",name:"Jolly Rancher | 60â+",id:"jolly_rancher",state:S,setState:_}];(0,o.useEffect)(()=>{if(n){let e=n.get("height");if(e){let t=e.split(",").map(e=>e.trim());D.forEach(e=>{let{key:l,setState:a}=e;a(t.includes(l))})}else D.forEach(e=>{let{setState:t}=e;return t(!1)})}},[]);let T=D.flatMap(e=>{let{key:l,name:a,state:s,setState:r}=e;return Array.isArray(t)&&t.some(e=>e.heights&&"T"===e.heights[l])?[{name:a,state:s,setState:r}]:[]}),[P,F]=(0,o.useState)([]),L=Array.from(new Set(Array.isArray(t)?t.map(e=>e.ride_rating_name).filter(e=>void 0!==e):[]));(0,o.useEffect)(()=>{if(n){let e=n.get("ratings");e?F(e.split(",").map(e=>e.trim())):F([])}},[]);let[E,I]=(0,o.useState)([]),z=Array.from(new Set(Array.isArray(t)?t.map(e=>e.park_region_name).filter(e=>void 0!==e):[]));(0,o.useEffect)(()=>{if(n){let e=n.get("region");e?I(e.split(",").map(e=>e.trim())):I([])}},[]);let[M,O]=(0,o.useState)(!1),[R,V]=(0,o.useState)(!1),[H,B]=(0,o.useState)(!1),[G,K]=(0,o.useState)(!1),W=[{key:"open_springtime",name:"Spring",state:G,setState:K},{key:"open_summer",name:"Summer",state:M,setState:O},{key:"open_halloween",name:"Halloween",state:H,setState:B},{key:"open_christmas",name:"Christmas",state:R,setState:V}];(0,o.useEffect)(()=>{if(n){let e=n.get("season");if(e){let t=e.split(",").map(e=>e.trim().toLowerCase());W.forEach(e=>{let{name:l,setState:a}=e;a(!!t.includes(l.toLowerCase()))})}else W.forEach(e=>{let{setState:t}=e;return t(!1)})}},[]);let q=W.flatMap(e=>{let{key:l,name:a,state:s,setState:r}=e;return Array.isArray(t)&&t.some(e=>1===e[l])?[{name:a,state:s,setState:r}]:[]}),[U,Y]=(0,o.useState)(!1),[Z,X]=(0,o.useState)(!1),[Q,J]=(0,o.useState)(!1),$=[{key:"dairy_free_options",name:"Dairy Friendly",state:U,setState:Y},{key:"gluten_free_options",name:"Gluten Friendly",state:Z,setState:X},{key:"nut_free_options",name:"Nut Friendly",state:Q,setState:J}];(0,o.useEffect)(()=>{n&&$.forEach(e=>{let{name:t,setState:l}=e,a=n.get("allergen");l(!!a&&a.split(",").map(e=>e.trim()).includes(t))})},[]);let ee=$.flatMap(e=>{let{key:l,name:a,state:s,setState:r}=e;return Array.isArray(t)&&t.some(e=>1===e[l])?[{name:a,state:s,setState:r}]:[]}),[et,el]=(0,o.useState)(!1),[ea,es]=(0,o.useState)(!1),[er,en]=(0,o.useState)(!1),[ei,eo]=(0,o.useState)(!1),[ed,ec]=(0,o.useState)(!1),[em,ep]=(0,o.useState)(!1),eu=[{key:"regular_meal_ticket",name:"Single Use Meal Deal",state:et,setState:el},{key:"all_day_drink",name:"All-Day Drink Plan",state:ea,setState:es},{key:"all_year_drink",name:"All-Year Drink Plan",state:er,setState:en},{key:"all_day_meal",name:"All-Day Dining Plan",state:ei,setState:eo},{key:"all_summer_meal",name:"All Summer Meal Plan",state:ed,setState:ec},{key:"all_summer_meal_2x",name:"All Summer Meal Plan 2x",state:em,setState:ep}];(0,o.useEffect)(()=>{n&&eu.forEach(e=>{let{name:t,setState:l}=e,a=n.get("mealplan");l(!!a&&a.split(",").map(e=>e.trim()).includes(t))})},[]);let ex=eu.flatMap(e=>{let{key:l,name:a,state:s,setState:r}=e;return Array.isArray(t)&&t.some(e=>1===e[l])?[{name:a,state:s,setState:r}]:[]}),[eh,ef]=(0,o.useState)(!1),ev=[...Array.isArray(t)&&t.some(e=>e.winner_every_race&&1===e.winner_every_race)?[{name:"Winner Every Time",state:eh,setState:ef}]:[]];(0,o.useEffect)(()=>{n&&"1"===n.get("winner_every_race")&&ef(!0)},[]);let eg=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(!eg.current){eg.current=!0;return}let e=new URLSearchParams;c&&e.set("fast_track","1"),u.length>0&&e.set("ride_types",u.join(",")),E.length>0&&e.set("region",E.join(",")),P.length>0&&e.set("ratings",P.join(","));let t=q.filter(e=>e.state).map(e=>e.name);t.length>0&&e.set("season",t.join(","));let l=T.filter(e=>e.state).map(e=>e.name.split(" | ")[0]);l.length>0&&e.set("height",l.join(","));let a=ee.filter(e=>e.state).map(e=>e.name);a.length>0&&e.set("allergen",a.join(","));let s=ex.filter(e=>e.state).map(e=>e.name);s.length>0&&e.set("mealplan",s.join(",")),eh&&e.set("winner_every_race","1");let r=e.toString();if(r!==window.location.search.replace(/^\?/,"")){let e=r?"".concat(d,"?").concat(r):d;i.replace(String(e),{scroll:!1})}},[c,u,E,P,q,T,ee,ex,eh,d]),(0,o.useEffect)(()=>{Array.isArray(t)?a(t.filter(e=>{let t=!M||1===e.open_summer,l=!R||1===e.open_christmas,a=!H||1===e.open_halloween,s=!G||1===e.open_springtime,r=!U||1===e.dairy_free_options,n=!Z||1===e.gluten_free_options,i=!Q||1===e.nut_free_options,o=!et||1===e.regular_meal_ticket,d=!ea||1===e.all_day_drink,m=!er||1===e.all_year_drink,p=!ei||1===e.all_day_meal,x=!ed||1===e.all_summer_meal,h=!em||1===e.all_summer_meal_2x,v=!f||"T"===e.heights["Hershey's Miniatures"],b=!g||"T"===e.heights["Hershey's Kisses"],y=!j||"T"===e.heights["Reese's"],w=!k||"T"===e.heights["Hershey's"],N=!A||"T"===e.heights.Twizzlers,C=!S||"T"===e.heights["Jolly Rancher"],_=!c||1===e.fast_track,D=!eh||1===e.winner_every_race,T=0===P.length||P.includes(e.ride_rating_name.toLowerCase())||P.includes(e.ride_rating_name),F=0===E.length||E.includes(e.park_region_name.toLowerCase())||E.includes(e.park_region_name),L=0===u.length||e.types.some(e=>u.includes(e.name.toLowerCase())||u.includes(e.name));return t&&l&&a&&s&&v&&b&&y&&w&&N&&C&&_&&T&&F&&L&&D&&r&&n&&i&&o&&d&&m&&p&&x&&h})):a([])},[M,R,H,G,U,Z,Q,et,ea,er,ei,ed,em,f,g,j,k,A,S,c,eh,P,E,u,t]),(0,o.useEffect)(()=>{let e=sessionStorage.getItem("visibleItems");e?(sessionStorage.removeItem("visibleItems"),r(parseInt(e))):r(18)},[]),(0,o.useEffect)(()=>{(u.length>0||P.length>0||E.length>
10||q.some(e=>e.state)||T.some(e=>e.state)||c||eh||ee.some(e=>e.state)||ex.some(e=>e.state))&&r(l.length)},[u,P,E,q,T,c,eh,ee,ex,l]),{rides:t,filteredRides:l,visibleItems:s,seasons:q,showSummerRides:M,showChristmasRides:R,showHalloweenRides:H,showSpringtimeRides:G,fastTrack:p,showFastTrack:c,winnerEveryRace:ev,showWinnerEveryRace:eh,allergens:ee,showDairyFree:U,showGlutenFree:Z,showNutFree:Q,mealplans:ex,showRegularMeal:et,showAllDayDrink:ea,showAllDayMeal:ei,showAllYearDrink:er,showAllSummerMeal:ed,showAllSummerMeal2x:em,heightRequirements:T,showMiniatures:f,showKisses:g,showReeses:j,showHersheys:k,showTwizzlers:A,showJollyRancher:S,rideRatings:L,selectedRideRatings:P,handleRideRatingChange:e=>{F(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},parkRegions:z,selectedParkRegions:E,handleParkRegionChange:e=>{I(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},types:h,selectedRideTypes:u,handleRideTypeChange:e=>{x(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},handleLoadMore:()=>{r(e=>e+18)},handleClearAll:()=>{O(!1),V(!1),B(!1),K(!1),Y(!1),X(!1),J(!1),el(!1),es(!1),en(!1),eo(!1),ec(!1),ep(!1),v(!1),b(!1),w(!1),N(!1),C(!1),_(!1),m(!1),ef(!1),F([]),I([]),x([]);let e=new URLSearchParams((null==n?void 0:n.toString())||"");e.forEach((t,l)=>{e.delete(l)}),i.replace("".concat(d),{scroll:!1})},handleRemoveFilter:(e,t)=>{let l=t=>{t.forEach(t=>{let{name:l,setState:a}=t;l===e&&a(!1)})};"rating"===t?F(t=>t.filter(t=>t!==e)):"region"===t?I(t=>t.filter(t=>t!==e)):"type"===t?x(t=>t.filter(t=>t!==e)):"heights"===t?l(D):"season"===t?l(W):"allergen"===t?l($):"mealplan"===t?l(eu):"winner_every_race"===t?l(ev):"fast_track"===t&&m(!1)}}};var w=l(39329),k=l(85395),N=l(31947),A=l(91100);let C={winner_category:!0,type_category:!0,allergen_category:!0,dining_c
1ategory:!0,height_category:!0,thrill_category:!0,region_category:!0,season_category:!0},S=e=>{let{seasons:t,heightRequirements:l,fastTrack:d,winnerEveryRace:c,allergens:u,mealplans:x,types:h,selectedRideTypes:f,handleRideTypeChange:v,rideRatings:g,selectedRideRatings:b,handleRideRatingChange:y,parkRegions:j,selectedParkRegions:S,handleParkRegionChange:_,component:D,context:T,slot:P,sidebarClassName:F,setIsOpen:L,children:E,filterCount:I}=e,{isMatch:z}=(0,m.s)("desktop"),M=p.H.Filter_Radials,{context:O}=(0,r.Ti)(),[R,V]=(0,o.useState)(C),H=e=>{V(t=>({...t,[e]:!t[e]}))};return(0,a.jsx)("aside",{className:(0,i.A)("sidebar col-span-full desktop:col-span-3"),children:(0,a.jsxs)("form",{className:(0,i.A)("py-4 desktop:rounded-2xl desktop:border desktop:border-primary-cocoa/20",F),onSubmit:e=>{e.preventDefault()},children:[(0,a.jsxs)("div",{className:"mb-4 flex flex-wrap justify-between p-4",children:[(0,a.jsxs)("h3",{className:"flex flex-wrap items-center font-filson-pro text-p-l font-medium",children:["Filters",(0,a.jsx)("span",{className:"counter ml-2 flex h-6 w-6 items-center justify-center gap-2 rounded-full bg-primary-boardwalk-2 px-1 py-2 text-[12px] text-primary-boardwalk-shade",children:I})]}),!z&&(0,a.jsx)("button",{className:"flex h-6 w-8 justify-center",onClick:()=>L&&L(!1),children:(0,a.jsx)(w.default,{width:"28",height:"35",className:"fill-primary-cocoa"})})]}),(0,a.jsxs)("div",{className:"max-h-[calc(100dvh-100px)] overflow-y-scroll px-4 pb-16 md-mobile:max-h-[calc(100dvh-100px)] desktop:max-h-full desktop:overflow-auto",children:[(0,a.jsx)(n.D,{context:T,data:D,slot:P}),void 0!==d&&d.length>0&&d.map((e,t)=>(0,a.jsx)("div",{className:(0,i.A)("relative mb-4 rounded-[8px] bg-primary-cream p-4"),children:(0,a.jsxs)("label",{className:"!static flex cursor-pointer flex-wrap items-center justify-between !text-p-s",htmlFor:"fast_track",children:[(0,a.jsx)("span",{className:"mr-3 text-p-s italic",children:e.name}),(0,a.jsx)("input",{id:"fast_track",name:"fast_track",type:"checkbox",checked:e.state,onChange:t=>e.setState(t.target.checked),className:"peer sr-only",onClick:()=>{(0,s.sendGTMEvent)({event:M,value:{data_title:"Filter_Radials",data_text:e.name}}),null==O||O.update({events:[{event:M}]})}}),(0,a.jsx)("div",{className:(0,i.A)("peer relative h-6 w-11 rounded-full border border-primary-cocoa bg-primary-cocoa-2 peer-checked:bg-primary-cocoa","peer-checked:after:border-white after:absolute after:start-[5px] after:top-[2.5px] after:h-[16px] after:w-[16px] after:rounded-full after:border after:border-primary-cocoa after:bg-primary-cocoa after:transition-all after:content-[''] peer-checked:after:translate-x-full peer-checked:after:bg-secondary-white rtl:peer-checked:after:-translate-x-full","peer-focus:border-2 peer-focus:border-rides-blue-darken peer-focus:after:top-[1.5px]")})]})},t)),void 0!==c&&c.length>0&&(0,a.jsx)("div",{className:"border-t border-t-primary-cocoa/20 px-4 py-5",children:(0,a.jsx)(k.A,{id:"winner_category",triggerClassName:(0,i.A)("flex mb-4 mt-4 gap-8 justify-between items-center px-0 py-0 relative",z?"cursor-default":"cursor-pointer"),contentClassName:z?"!h-full !opacity-100 !visible !block":"",triggerContent:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"mb-0 font-filson-pro text-p-m font-normal",children:"Play Type Options"}),!z&&(e?(0,a.jsx)(A.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}):(0,a.jsx)(N.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}))]}),isExpanded:z||R.winner_category,onTriggerClick:()=>{z||H("winner_category")},children:c.map((e,t)=>(0,a.jsxs)("div",{className:"flex-center relative mb-4 flex",children:[(0,a.jsx)("input",{type:"checkbox",checked:e.state,onChange:t=>e.setState(t.target.checked),className:"mr-2 cursor-pointer",id:"".concat(e.name.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),onClick:()=>{(0,s.sendGTMEvent)({event:M,value:{data_title:M,data_text:e.name}}),null==O||O.update({events:[{event:M}]})}}),(0,a.jsx)("label",{className:"!static !text-p-s",htmlFor:"".concat(e.name.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),children:e.name})]},t))})}),void 0!==h&&h.length>0&&(0,a.jsx)("div",{className:"border-t border-t-primary-cocoa/20 px-4 py-5",children:(0,a.jsx)(k.A,{id:"type_category",triggerClassName:(0,i.A)("flex mb-4 mt-4 gap-8 justify-between items-center px-0 py-0 relative",z?"cursor-default":"cursor-pointer"),contentClassName:z?"!h-full !opacity-100 !visible !block":"",triggerContent:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"mb-0 font-filson-pro text-p-m font-normal",children:"Type"}),!z&&(e?(0,a.jsx)(A.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}):(0,a.jsx)(N.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}))]}),isExpanded:R.type_category,onTriggerClick:()=>{z||H("type_category")},children:Array.from(new Set(h.map(e=>e.name))).filter(e=>""!==e.trim()).map((e,t)=>(0,a.jsxs)("div",{className:"flex-center relative mb-4 flex",children:[(0,a.jsx)("input",{type:"checkbox",checked:null==f?void 0:f.includes(e),onChange:()=>v(e),className:"mr-2 cursor-pointer",id:"".concat(e.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),onClick:()=>{(0,s.sendGTMEvent)({event:M,value:{data_title:M,data_text:e}}),null==O||O.update({events:[{event:M}]})}}),(0,a.jsx)("label",{className:"!static !text-p-s",htmlFor:"".concat(e.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),children:e})]},t))})}),void 0!==u&&u.length>0&&(0,a.jsx)("div",{className:"border-t border-t-primary-cocoa/20 px-4 py-5",children:(0,a.jsx)(k.A,{id:"allergen_category",triggerClassName:(0,i.A)("flex mb-4 mt-4 gap-8 justify-between items-center px-0 py-0 relative",z?"cursor-default":"cursor-pointer"),contentClassName:z?"!h-full !opacity-100 !visible !block":"",triggerContent:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"mb-0 font-filson-pro text-p-m font-normal",children:"Allergens"}),!z&&(e?(0,a.jsx)(A.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}):(0,a.jsx)(N.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}))]}),isExpanded:R.allergen_category,onTriggerClick:()=>{z||H("allergen_category")},children:u.map((e,t)=>(0,a.jsxs)("div",{className:"flex-center relative mb-4 flex",children:[(0,a.jsx)("input",{type:"checkbox",checked:e.state,onChange:t=>e.setState(t.target.checked),className:"mr-2 cursor-pointer",id:"".concat(e.name.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),onClick:()=>{(0,s.sendGTMEvent)({event:M,value:{data_title:M,data_text:e.name}}),null==O||O.update({events:[{event:M}]})}}),(0,a.jsx)("label",{className:"!static !text-p-s",htmlFor:"".concat(e.name.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),children:e.name})]},t))})}),void 0!==x&&x.length>0&&(0,a.jsx)("div",{className:"border-t border-t-primary-cocoa/20 px-4 py-5",children:(0,a.jsx)(k.A,{id:"dining_c
1ategory",triggerClassName:(0,i.A)("flex mb-4 mt-4 gap-8 justify-between items-center px-0 py-0 relative",z?"cursor-default":"cursor-pointer"),contentClassName:z?"!h-full !opacity-100 !visible !block":"",triggerContent:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"mb-0 font-filson-pro text-p-m font-normal",children:"Dining/Drink Plan Options"}),!z&&(e?(0,a.jsx)(A.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}):(0,a.jsx)(N.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}))]}),isExpanded:R.dining_category,onTriggerClick:()=>{z||H("dining_category")},children:x.map((e,t)=>(0,a.jsxs)("div",{className:"flex-center relative mb-4 flex",children:[(0,a.jsx)("input",{type:"checkbox",checked:e.state,onChange:t=>e.setState(t.target.checked),className:"mr-2 cursor-pointer",id:"".concat(e.name.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),onClick:()=>{(0,s.sendGTMEvent)({event:M,value:{data_title:M,data_text:e.name}}),null==O||O.update({events:[{event:M}]})}}),(0,a.jsx)("label",{className:"!static !text-p-s",htmlFor:"".concat(e.name.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),children:e.name})]},t))})}),void 0!==l&&l.length>0&&(0,a.jsx)("div",{className:"border-t border-t-primary-cocoa/20 px-4 py-5",children:(0,a.jsx)(k.A,{id:"height_category",triggerClassName:(0,i.A)("flex mb-4 mt-4 gap-8 justify-between items-center px-0 py-0 relative",z?"cursor-default":"cursor-pointer"),contentClassName:z?"!h-full !opacity-100 !visible !block":"",triggerContent:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"mb-0 font-filson-pro text-p-m font-normal",children:"Height"}),!z&&(e?(0,a.jsx)(A.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}):(0,a.jsx)(N.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}))]}),isExpanded:R.height_category,onTriggerClick:()=>{z||H("height_category")},children:l.map((e,t)=>(0,a.jsxs)("div",{className:"flex-center relative mb-4 flex",children:[(0,a.jsx)("input",{type:"checkbox",checked:e.state,onChange:t=>e.setState(t.target.checked),className:"mr-2 cursor-pointer",id:"".concat(e.name.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),onClick:()=>{(0,s.sendGTMEvent)({event:M,value:{data_title:M,data_text:e.name}}),null==O||O.update({events:[{event:M}]})}}),(0,a.jsx)("label",{className:"!static !text-p-s",htmlFor:"".concat(e.name.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),children:e.name})]},t))})}),void 0!==g&&g.length>0&&(0,a.jsx)("div",{className:"border-t border-t-primary-cocoa/20 px-4 py-5",children:(0,a.jsx)(k.A,{id:"thrill_category",triggerClassName:(0,i.A)("flex mb-4 mt-4 gap-8 justify-between items-center px-0 py-0 relative",z?"cursor-default":"cursor-pointer"),contentClassName:z?"!h-full !opacity-100 !visible !block":"",triggerContent:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"mb-0 font-filson-pro text-p-m font-normal",children:"Thrill Rating"}),!z&&(e?(0,a.jsx)(A.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}):(0,a.jsx)(N.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}))]}),isExpanded:R.thrill_category,onTriggerClick:()=>{z||H("thrill_category")},children:g.filter(e=>e&&""!==e.trim()).map((e,t)=>(0,a.jsxs)("div",{className:"flex-center relative mb-4 flex",children:[(0,a.jsx)("input",{type:"checkbox",checked:b.includes(e),onChange:()=>y(e),className:"mr-2 cursor-pointer",id:"".concat(e.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),onClick:()=>{(0,s.sendGTMEvent)({event:M,value:{data_title:M,data_text:e}}),null==O||O.update({events:[{event:M}]})}}),(0,a.jsx)("label",{className:"!static !text-p-s",htmlFor:"".concat(e.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),children:e})]},t))})}),void 0!==j&&j.length>0&&(0,a.jsx)("div",{className:"border-t border-t-primary-cocoa/20 px-4 py-5",children:(0,a.jsx)(k.A,{id:"region_category",triggerClassName:(0,i.A)("flex mb-4 mt-4 gap-8 justify-between items-center px-0 py-0 relative",z?"cursor-default":"cursor-pointer"),contentClassName:z?"!h-full !opacity-100 !visible !block":"",triggerContent:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"mb-0 font-filson-pro text-p-m font-normal",children:"Park Region"}),!z&&(e?(0,a.jsx)(A.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}):(0,a.jsx)(N.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}))]}),isExpanded:R.region_category,onTriggerClick:()=>{z||H("region_category")},children:j.filter(e=>e&&""!==e.trim()).map((e,t)=>(0,a.jsxs)("div",{className:"flex-center relative mb-4 flex",children:[(0,a.jsx)("input",{type:"checkbox",checked:S.includes(e),onChange:()=>_(e),className:"mr-2 cursor-pointer",id:"".concat(e.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),onClick:()=>{(0,s.sendGTMEvent)({event:M,value:{data_title:M,data_text:e}}),null==O||O.update({events:[{event:M}]})}}),(0,a.jsx)("label",{className:"!static !text-p-s",htmlFor:"".concat(e.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),children:e})]},t))})}),void 0!==t&&t.length>0&&(0,a.jsx)("div",{className:"border-t border-t-primary-cocoa/20 px-4 py-5",children:(0,a.jsx)(k.A,{id:"season_category",triggerClassName:(0,i.A)("flex mb-4 mt-4 gap-8 justify-between items-center px-0 py-0 relative",z?"cursor-default":"cursor-pointer"),contentClassName:z?"!h-full !opacity-100 !visible !block":"",triggerContent:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"mb-0 font-filson-pro text-p-m font-normal",children:"Seasonal Availability"}),!z&&(e?(0,a.jsx)(A.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}):(0,a.jsx)(N.A,{width:"21",height:"24",className:"mb-0 mt-0 shrink-0"}))]}),isExpanded:R.season_category,onTriggerClick:()=>{z||H("season_category")},children:t.map((e,t)=>(0,a.jsxs)("div",{className:"flex-center relative mb-4 flex",children:[(0,a.jsx)("input",{type:"checkbox",checked:e.state,onChange:t=>e.setState(t.target.checked),className:"mr-2 cursor-pointer",id:"".concat(e.name.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),onClick:()=>{(0,s.sendGTMEvent)({event:M,value:{data_title:M,data_text:e.name}}),null==O||O.update({events:[{event:M}]})}}),(0,a.jsx)("label",{className:"!static !text-p-s",htmlFor:"".concat(e.name.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),children:e.name})]},t))})}),E]})]})})},_=e=>{let{selectedFilters:t,otherSelectedFilters:l,handleRemoveFilter:s,handleClearAll:r,FilterClassName:n,children:o}=e,{isMatch:d}=(0,m.s)("desktop"),c="filter-tag mb-3 mr-3 flex items-center justify-center gap-2 rounded-full bg-primary-boardwalk-2 px-3 py-1 text-[14px] text-primary-boardwalk-sha
1de border border-primary-boardwalk-shade",p=t.length>0||l.length>0;return(0,a.jsxs)("div",{className:(0,i.A)("selected-filters pt-0 desktop:mb-5 desktop:flex desktop:flex-wrap",n),children:[(l.length>0||t.length>0)&&(0,a.jsxs)("div",{className:(0,i.A)("mb-4 flex flex-wrap border-b-primary-cocoa/20 border-t-primary-cocoa/20 pb-3 pt-0 desktop:max-h-full desktop:overflow-auto desktop:border-0 desktop:py-0"),children:[l.map(e=>(0,a.jsxs)("button",{className:c,onClick:()=>s(e.name,e.type),children:[e.name.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),(0,a.jsx)("span",{className:"close-button",children:(0,a.jsx)(w.default,{width:"12",height:"12",className:"fill-primary-boardwalk-shade"})})]},e.name)),t.map(e=>(0,a.jsxs)("button",{className:c,onClick:()=>s(e.name,e.type),children:[e.name.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),(0,a.jsx)("span",{className:"close-button",children:(0,a.jsx)(w.default,{width:"12",height:"12",className:"fill-primary-boardwalk-shade"})})]},e.name)),d&&p&&(0,a.jsx)("button",{onClick:r,className:"clear-all-button text-font-proxima-nova mb-3 text-[14px] font-semibold text-primary-cocoa underline hover:no-underline",children:"Clear All"})]}),!d&&(0,a.jsxs)("div",{className:"fixed bottom-0 left-0 right-0 bg-secondary-white p-5 lg-mobile:left-auto lg-mobile:w-[570px]",children:[o,p&&(0,a.jsx)("button",{onClick:r,className:"clear-all-button text-font-proxima-nova mb-3 text-[14px] font-semibold text-primary-cocoa underline hover:no-underline",children:"Clear All"})]})]})},D=e=>{let{rides:t,onSortedRides:l}=e,[s,r]=(0,o.useState)("nameAsc"),n=(e,t)=>[...e].sort((e,l)=>{switch(t){case"nameAsc":return e.name.localeCompare(l.name);case"nameDesc":return l.name.localeCompare(e.name);case"newest":return(l.year_built||0)-(e.year_built||0);case"oldest":return(e.year_built||0)-(l.year_built||0);default:return 0}}),i=Array.isArray(t)&&t.some(e=>void 0!==e.year_built);return(0,o.useEffect)(()=>
1{l(n(t,"nameAsc"))},[t,l]),(0,a.jsxs)("form",{className:"col-span-7 flex h-[20px] items-center justify-end lg-mobile:col-span-6 desktop:col-span-4 desktop:mb-4 md-desktop:col-span-3",children:[(0,a.jsx)("label",{className:"!static text-p-xs font-bold lg-mobile:mr-3 lg-mobile:text-p-s desktop:text-p-m",htmlFor:"sort-option",children:"Sort by:"}),(0,a.jsxs)("select",{id:"sort-option",name:"sort-option",onChange:e=>{let a=e.target.value;r(a),l(n(t,a))},value:s,className:"max-w-32 items-center p-1 font-proxima-nova !text-p-s outline-0 desktop:!text-p-m",children:[i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("option",{value:"newest",children:"Newest"}),(0,a.jsx)("option",{value:"oldest",children:"Oldest"})]}),(0,a.jsx)("option",{value:"nameAsc",children:"Name (A-Z)"}),(0,a.jsx)("option",{value:"nameDesc",children:"Name (Z-A)"})]})]})};function T(e){var t,l,x,h;let{context:f,component:v,slots:y,feed:w,showFeed:k}=e,N=null==f||null==(t=f.matchedRoute)?void 0:t.split("/").pop(),A=(Array.isArray(k)?k:k?[k]:[]).filter(e=>1===e.character_show),{filteredRides:C=[],visibleItems:T,seasons:P,heightRequirements:F,fastTrack:L,winnerEveryRace:E,allergens:I,mealplans:z,types:M,selectedRideTypes:O,handleRideTypeChange:R,rideRatings:V,selectedRideRatings:H,handleRideRating
1Change:B,parkRegions:G,selectedParkRegions:K,handleParkRegionChange:W,handleLoadMore:q,handleRemoveFilter:U,handleClearAll:Y}=j(Array.isArray(w)?w:[w]),[Z,X]=(0,o.useState)(C),{isMatch:Q}=(0,m.s)("desktop"),[J,$]=(0,o.useState)(!1),[ee,et]=(0,o.useState)(),el=(0,o.useRef)(null),ea=[...F.filter(e=>e.state).map(e=>({name:e.name,type:"heights",setState:e.setState})),...P.filter(e=>e.state).map(e=>({name:e.name,type:"season",setState:e.setState})),...I.filter(e=>e.state).map(e=>({name:e.name,type:"allergen",setState:e.setState})),...z.filter(e=>e.state).map(e=>({name:e.name,type:"mealplan",setState:e.setState})),...L.filter(e=>e.state).map(e=>({name:e.name,type:"fast_track",setState:e.setState})),...E.filter(e=>e.state).map(e=>({name:e.name,type:"winner_every_race",setState:e.setState}))],es=[...O.map(e=>({name:e,type:"type"})),...H.map(e=>({name:e,type:"rating"})),...K.map(e=>({name:e,type:"region"}))],er=()=>{er()},en={selectedFilters:ea.map(e=>"string"==typeof e?{name:e,type:"custom"}:e),otherSelectedFilters:es,handleRemoveFilter:U,handleClearAll:Y,resetVisibleItems:er};(0,o.useEffect)(()=>{let e=sessionStorage.getItem("myPageScroll");e&&(setTimeout(()=>{document.body.scrollTo(0,parseInt(e))},1e3),sessionStorage.removeItem("myPageScroll"))},[]),(0,o.useEffect)(()=>{let e=new IntersectionObserver(e=>{var t;(null==e||null==(t=e[0])?void 0:t.isIntersecting)&&q()},{threshold:1});return el.current&&e.observe(el.current),()=>{el.current&&e.unobserve(el.current)}},[q]);let ei=ea.length+es.length,eo={types:M,heightRequirements:F,rideRatings:V,parkRegions:G,seasons:P,fastTrack:L,winnerEveryRace:E,allergens:I,mealplans:z,selectedRideTypes:O,selectedRideRatings:H,selectedParkRegions:K,handleRideTypeChange:R,handleRideRating
1Change:B,handleParkRegionChange:W,component:v,context:f,slot:y.sidebar,filterCount:ei},{context:ed}=(0,r.Ti)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.D,{context:f,data:v,slot:y.breadcrumbs,children:e=>(0,a.jsx)(o.Fragment,{children:(0,a.jsx)("div",{className:(0,i.A)("bg-secondary-white px-8 [&>*]:[&>*]:mx-auto [&>*]:[&>*]:max-w-[1920px] [&>*]:bg-secondary-white [&>*]:pt-6"),children:e.child})},e.key)}),(0,a.jsx)("section",{className:(0,i.A)("bg-secondary-white py-7 desktop:py-14"),children:(0,a.jsxs)("div",{className:"default-grid-row mx-auto max-w-[1920px] content-start",children:[Q&&(0,a.jsx)(S,{...eo,sidebarClassName:"hidden desktop:block"}),(0,a.jsxs)("div",{className:(0,i.A)("col-span-full desktop:col-span-5 md-desktop:col-span-9"),children:[(0,a.jsx)(n.D,{context:f,data:v,slot:y.main,children:e=>(0,a.jsx)(o.Fragment,{children:(0,a.jsx)("div",{className:(0,i.A)("bg-secondary-white p-0 [&>*]:[&>*]:mx-auto [&>*]:[&>*]:max-w-[1920px] [&>*]:bg-secondary-white [&>*]:[&>*]:[&>*]:!p-0 [&>*]:p-0"),children:e.child})},e.key)}),(0,a.jsx)("div",{className:(0,i.A)("mb-12 text-center"),children:(0,a.jsxs)("p",{className:"mt-2 font-filson-pro text-p-s font-medium text-primary-cocoa",children:["Showing ",C.length," result",C.length>1?"s":""," for"," ",String((null==f||null==(h=f.composition)||null==(x=h.parameters)||null==(l=x.pageTitle)?void 0:l.value)||""),"."]})}),(0,a.jsxs)("div",{className:(0,i.A)("mb-8 grid grid-cols-12 content-start items-center gap-4 border-b-[1.5px] border-primary-cocoa/20 pb-3 desktop:items-start"),children:[Q&&(0,a.jsx)(_,{...en,FilterClassName:"col-span-5 desktop:col-span-8 md-desktop:col-span-9"}),!Q&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.A,{className:(0,i.A)("col-span-5 w-[120px] p-4 lg-mobile:col-span-6 lg-mobile:w-[150px]"),size:"sm",variant:"Chocolate",ariaLabel:'Open "Filters" sidebar',onClick:e=>{et({x:e.clientX+"px",y:e.clientY+"px"}),$(!0)},children:[(0,a.jsx)("span",{className:"mr-2 h-[20px] w-[20px]",children:(0,a.jsx)(d.default,{width:"12px",className:"fill-secondary-white"})}),"Filters",(0,a.jsxs)("span",{className:"counter ml-1 text-secondary-white",children:["(",ei,")"]})]}),(0,a.jsx)(c.A,{isOpen:J,setIsOpen:$,overlayCenter:ee,children:(0,a.jsx)(S,{...eo,sidebarClassName:"bg-secondary-white",setIsOpen:$,children:(0,a.jsx)(_,{...en,FilterClassName:"col-span-12 tablet:col-span-5 bottom-0 right-0 left-0 bg-secondary-white z-1 p-4 lg-mobile:static",children:(0,a.jsx)(u.A,{className:(0,i.A)("col-span-6 mr-6 w-[220px] p-4"),size:"md",variant:"Chocolate",onClick:()=>$&&$(!1),ariaLabel:"Show Results",children:ei>0?"Show ".concat(C.length," Result").concat(C.length>1?"s":""):"Show Results"})})})})]}),(0,a.jsx)(D,{rides:C,onSortedRides:X})]}),(0,a.jsx)("div",{className:(0,i.A)("grid grid-cols-1 content-start gap-8 tablet:grid-cols-2 md-desktop:grid-cols-3"),children:0===Z.length?(0,a.jsx)("div",{className:"col-span-4 text-center text-primary-cocoa",children:(0,a.jsx)("h3",{className:"font-filson-pro text-h2-m font-medium",children:"No results found."})}):Array.isArray(Z)&&Z.slice(0,T).map((e,t)=>(0,a.jsx)(g,{item:e,href:(null==f?void 0:f.matchedRoute)+"/"+e.url,index:t,showSubtitle:!0,showActionButton:!0,onClick:()=>{sessionStorage.setItem("myPageScroll",document.body.scrollTop.toString()),sessionStorage.setItem("visibleItems",T.toString());let t=p.H.ToDo_Cards;(0,s.sendGTMEvent)({event:t,value:{data_title:"ToDo_Cards",data_text:e.name}}),null==ed||ed.update({events:[{event:t}]})}},e.id))}),T<Z.length&&(0,a.jsx)("button",{ref:el,onClick:q,className:"observer-target mx-auto mt-12 block font-proxima-nova text-p-m font-semibold text-primary-cocoa underline hover:no-underline hover:transition-all",children:"Load More Results"}),(null==N?void 0:N.includes("character"))&&(0,a.jsx)(b,{showFeed:A})]})]})})]})}},70603:(e,t,l)=>{"use strict";l.d(t,{default:()=>u});var a=l(95155),s=l(11597),r=l(37935),n=l(2821),i=l(15239),o=l(12115),d=l(30287),c=l(19296),m=l(71543),p=l(68425);function u(e){var t,l;let{image:u,component:x,context:h,slots:f,backgroundColor:v}=e,g=(0,c.gK)(v,h,"Skyblue"),b=(0,s.fKV)(u,{toSingle:!0}),{props:{srcSet:y}}=(0,i.getImageProps)({alt:null==b?void 0:b.title,width:1920,height:1e3,src:null==b?void 0:b.url}
1),j=(null==b?void 0:b.url)?(0,d.A)(y):"",{targetRef:w,childrenRef:k,parentColumnRef:N}=(()=>{let e=(0,o.useRef)(document.body),t=(0,o.useRef)(null),l=(0,o.useRef)(null),a=(0,o.useRef)(null),s=(0,m.L)({container:e,target:t,axis:"y",offset:["start 0.4","end 0.5"]});return(0,p.L)(s.scrollYProgress,"change",e=>{let t=l.current,s=a.current;if(!s||!t)return;t.style.transform="";let r=s.offsetHeight,n=t.offsetHeight,i=Math.max(r,n);t.style.transform="translateY(".concat((i-n)*e,"px)")}),{containerRef:e,targetRef:t,childrenRef:l,parentColumnRef:a}})();return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("section",{"data-component":null==x?void 0:x.type,ref:w,className:(0,n.A)("pb-16 tablet:pt-14 desktop:py-24",null==x?void 0:x.type,null==(t=c.Cs[g])?void 0:t.className),style:j?{backgroundImage:j,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{...null==(l=c.Cs[g])?void 0:l.backgroundStyles},children:(0,a.jsx)("div",{ref:N,children:(0,a.jsxs)("div",{ref:k,children:[(0,a.jsx)(r.D,{context:h,data:x,slot:f.topComponent}),(0,a.jsx)("div",{className:(0,n.A)("admission-column three-column mx-auto max-w-[1860px] py-10"),children:(0,a.jsx)(r.D,{context:h,data:x,slot:f.cards,children:e=>(0,a.jsx)(o.Fragment,{children:e.child},e.key)})}),(0,a.jsx)(r.D,{context:h,data:x,slot:f.bottomComponent,children:e=>(0,a.jsx)("div",{className:"mx-auto flex flex-wrap justify-center",children:e.child},e.key)})]})})})})}},71058:(e,t,l)=>{"use strict";l.d(t,{default:()=>c});var a=l(95155),s=l(37935),r=l(2821),n=l(71543),i=l(68425),o=l(12115),d=l(18500);function c(e){let{variant:t="Vertical",component:l,context:c,slots:m}=e,p=(0,o.useRef)(document.body),u=(0,o.useRef)(null),{isMatch:x}=(0,d.s)("desktop"),h=(0,n.L)({container:p,target:u,axis:"y",offset:["start 0.4","end 0.5"]}),f=o.useRef(null),v=o.useRef(null),g=o.useRef(null);return(0,i.L)(h.scrollYProgress,"change",e=>{let l=f.current,a=v.current,s=g.current;if(!l||!a||!s)return;if("Vertical"!==t||!x){l.style.transform="",a.style.transform="",s.style.transform="";return}let r=l.offsetHeight,n=a.offsetHeight,i=s.offsetHeight,o=Math.max(r,n,i);l.style.transform="translateY(".concat((o-r)*e,"px"),a.style.transform="translateY(".concat((o-n)*e,"px"),s.style.transform="translateY(".concat((o-i)*e,"px")}),(0,a.jsxs)("div",{"data-component":null==l?void 0:l.type,ref:u,className:(0,r.A)("admissionsCardLayout mx-auto grid max-w-[2060px] grid-cols-4 gap-8 px-4 tablet:px-8 desktop:px-24",{"max-w-[1912px] desktop:grid-cols-12":"Vertical"===t}),itemProp:"hasOfferCatalog",itemScope:!0,itemType:"https://schema.org/OfferCatalog",children:[(null==m?void 0:m.left)&&(0,a.jsx)("div",{className:"admission-column col-span-4",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/OfferCatalog",children:(0,a.jsx)("div",{ref:f,className:(0,r.A)("grid gap-x-8 gap-y-2",{"grid-cols-1 desktop:grid-cols-3":"Horizontal"===t}),children:(0,a.jsx)(s.D,{context:c,data:l,slot:m.left})})}),(null==m?void 0:m.middle)&&(0,a.jsx)("div",{className:"admission-column col-span-4",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/OfferCatalog",children:(0,a.jsx)("div",{ref:v,className:(0,r.A)("grid gap-x-8 gap-y-2",{"grid-cols-1 desktop:grid-cols-3":"Horizontal"===t}),children:(0,a.jsx)(s.D,{context:c,data:l,slot:m.middle})})}),(null==m?void 0:m.right)&&(0,a.jsx)("div",{className:"admission-column col-span-4",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/OfferCatalog",children:(0,a.jsx)("div",{ref:g,className:(0,r.A)("grid gap-x-8 gap-y-2",{"grid-cols-1 desktop:grid-cols-3":"Horizontal"===t}),children:(0,a.jsx)(s.D,{context:c,data:l,slot:m.right})})})]})}},73416:(e,t,l)=>{"use strict";l.d(t,{default:()=>u});var a=l(95155),s=l(11597),r=l(51396),n=l(47411),i=l(95455),o=l(40160),d=l(44281),c=l(12476),m=l(75387);let p={Accessibility:(0,a.jsx)(o.default,{}),Location:(0,a.jsx)(d.default,{}),"Mobile Device":(0,a.jsx)(c.default,{}),Tickets:(0,a.jsx)(m.default,{})};function u(e){var t;let{title:l,details:o,icon:d,ctaLink:c}=e,m=(0,s.fKV)(c,{toSingle:!0}),{context:u}=(0,r.Ti)();return(0,a.jsxs)("div",{className:"flex flex-grow basis-1/2 flex-col gap-4 text-primary-cocoa",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[p[d],(0,a.jsx)("p",{className:"font-filson-pro text-label-l",children:l})]}),(0,a.jsx)("p",{className:"font-proxima-nova text-p-s",children:o}),m&&(0,a.jsx)("div",{className:"w-fit",children:(0,a.jsx)(n.A,{href:(null==m||null==(t=m.path)?void 0:t.path)||"#",onClick:()=>{var e;let t=(0,i.N_)(null==m||null==(e=m.path)?void 0:e.path,null==m?void 0:m.title);null==u||u.update({events:[{event:t}]})},target:"_blank",isExternal:!1,className:"font-proxima-nova text-link-m underline hover:no-underline",children:null==m?void 0:m.title})})]})}},74476:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var a=l(95155),s=l(68321),r=l(12115);function n(){let[e,t]=(0,r.useState)({settings:!1,index:!1,pageinfo:!1}),l=e.settings&&e.index&&e.pageinfo;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.default,{src:"./js/settings.js",strategy:"afterInteractive",onLoad:()=>t(e=>({...e,settings:!0}))}),(0,a.jsx)(s.default,{src:"./js/zoom_index.js",strategy:"afterInteractive",onLoad:()=>t(e=>({...e,index:!0}))}),(0,a.jsx)(s.default,{src:"./js/zoom_pageinfo.js",strategy:"afterInteractive",onLoad:()=>t(e=>({...e,pageinfo:!0}))}),l&&(0,a.jsx)(s.default,{src:"./js/search-custom.js",strategy:"afterInteractive",onLoad:()=>{let e=window;"function"==typeof e.setQuery&&"function"==typeof e.ZoomInitSearch&&"function"==typeof e.ZoomShowSummary&&"function"==typeof e.ZoomShowHeading&&"function"==typeof e.ZoomShowResults?(e.setQuery(),e.ZoomInitSearch(),e.ZoomShowSummary(),e.ZoomShowHeading(),e.ZoomShowResults()):console.error("One or more search functions are not defined on window.")}}),(0,a.jsx)("div",{id:"search_results",className:"bg-secondary-white px-8 py-8 font-proxima-nova text-primary-cocoa desktop:px-24 [&>*:first-child]:border-t-0"})]})}},74499:(e,t,l)=>{"use strict";l.d(t,{default:()=>N});var a=l(95155),s=l(11597),r=l(51396),n=l(37935),i=l(2821),o=l(71543),d=l(68425),c=l(12115),m=l(58726),p=l(48447);function u(e){var t,l;let{id:s,mainImage:r}=e;return(0,a.jsx)("div",{id:s,className:"flex h-dvh gap-8",children:(null==r?void 0:r[0])&&(0,a.jsx)("div",{className:"flex flex-grow flex-col items-center justify-center",children:(0,a.jsx)("div",{className:"h-[90dvh] max-h-[720px] w-full rounded-3xl bg-primary-boardwalk-5",children:(0,a.jsx)(m.A,{src:null==r||null==(t=r[0])?void 0:t.url,alt:(0,p.Vo)(null==r||null==(l=r[0])?void 0:l.title),sizes:"(max-width: 767px) 280px, (max-width: 1200px) 700px, 1200px"})})})})}var x=l(51997),h=l(3132),f=l(31947),v=l(91100),g=l(17638),b=l(474
111),y=l(19296),j=l(18500),w=l(95455),k=l(28994);function N(e){var t,l,N;let{sections:A,backgroundColor:C,component:S,context:_}=e,D=(0,s.fKV)(A),T=(0,c.useRef)(document.body),P=(0,c.useRef)(null),F=!!(D&&(null==D||null==(t=D.filter(Boolean))?void 0:t.length)),{context:L}=(0,r.Ti)(),E=(0,y.gK)(C,_),I=(0,y.FI)(E),{isMatch:z}=(0,j.s)("md-desktop"),[M,O]=(0,c.useState)(0),R=(0,o.L)({container:T,target:P,axis:"y",offset:["start start","end end"]});return(0,d.L)(R.scrollYProgress,"change",e=>{if(!z||!F)return;let t=Math.min(Math.floor(e/(1/D.length)),D.length-1);M!==t&&O(t)}),(0,a.jsx)("section",{id:"acc-section","data-component":null==S?void 0:S.type,className:(0,i.A)("scrolling-wrapper relative flex flex-col py-12 md-desktop:py-0",null==(l=y.Cs[E])?void 0:l.className),style:null==(N=y.Cs[E])?void 0:N.backgroundStyles,ref:P,children:(0,a.jsxs)("div",{className:"default-grid-row",children:[(0,a.jsx)("div",{className:"col-span-full flex items-center py-16 md-desktop:sticky md-desktop:top-0 md-desktop:col-span-5 md-desktop:h-dvh md-desktop:p-16",children:(0,a.jsx)("ul",{className:"flex w-full flex-col gap-6",children:F&&D.map((e,t)=>{var l,s,r,o,d,c,u,j,N,A,C,S,_,D,T,P,F;let R=(null==e||null==(r=e.intro)||null==(s=r.root)||null==(l=s.children)?void 0:l.map((e,t)=>(0,a.jsx)(n.Y2,{node:e},t)))||[],V=(null==e||null==(o=e.ctaLink)?void 0:o[0])?(0,k.z)(null==e||null==(d=e.ctaLink)?void 0:d[0]):void 0;return(0,a.jsx)("li",{className:"flex w-full pb-8",children:(0,a.jsxs)(x.A,{id:"pg-accordion-".concat(t),className:"w-full gap-4 md-desktop:[&>button]:cursor-default",triggerContent:t=>{var l;return(null==e?void 0:e.title)?(0,a.jsxs)("h2",{className:(0,i.A)("flex items-center justify-between font-filson-pro text-h2-m transition md-desktop:text-h1",null==(l=y.Cs[E])?void 0:l.childrenClassName,t?"":"text-opacity-25"),children:[e.title,!z&&(t?(0,a.jsx)(v.A,{width:"19",height:"19",className:(0,i.A)("shrink-0","White"===I?"fill-secondary-white":"Black"===I?"fill-secondary-black":"fill-primary-cocoa")}):(0,a.jsx)(f.A,{width:"19",height:"19",className:(0,i.A)("shrink-0","White"===I?"fill-secondary-white":"Black"===I?"fill-secondary-black":"fill-primary-cocoa")}))]}):(0,a.jsx)(a.Fragment,{})},onTriggerClick:()=>{O(t);let e=document.querySelector("body"),l=document.getElementById("acc-section");if(z){let a=document.getElementById("side-section-".concat(t));e&&l&&a&&e.scrollTo({top:(null==l?void 0:l.offsetTop)+a.offsetTop,behavior:"smooth"})}else{let a=document.getElementById("at-pg-accordion-".concat(t));e&&l&&a&&setTimeout(()=>{e.scrollTo({top:(null==l?void 0:l.offsetTop)+a.offsetTop-120,behavior:"smooth"})},550)}},contentClassName:"flex-col items-start gap-8 w-full overflow-hidden pb-4",isExpanded:M===t,displayState:!0,children:[R?(0,a.jsx)("div",{className:(0,i.A)("font-proxima-nova [&>p]:text-p-m",null==(c=y.Cs[E])?void 0:c.childrenClassName),children:R}):(null==e?void 0:e.description)&&(0,a.jsx)("p",{className:(0,i.A)("font-proxima-nova text-p-m",null==(u=y.Cs[E])?void 0:u.childrenClassName),children:e.description}),!!((null==e||null==(F=e.linkList)?void 0:F.length)&&(null==e?void 0:e.linkList.filter(Boolean).length))&&(0,a.jsx)("ul",{className:"flex flex-col gap-4 text-primary-cocoa",children:null==(j=e.linkList)?void 0:j.map((e,t)=>{var l;return(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)(g.default,{className:"flex-shrink-0 fill-primary-cocoa",width:"16",height:"16"}),(0,a.jsx)(b.A,{className:"font-proxima-nova text-link-l",href:null==e||null==(l=e.path)?void 0:l.path,children:null==e?void 0:e.title})]},t)})}),V&&(0,a.jsx)(h.A,{href:V,variant:I,outlined:!0,iconPosition:"Left",egalEntryCode:!!(null==e||null==(A=e.ctaLink)||null==(N=A[0])?void 0:N.egalEntryCode),onClick:()=>{var t;let l=(0,w.N_)(V,e.title+" | "+(null==(t=e.ctaLink[0])?void 0:t.title));null==L||L.update({events:[{event:l}]})},children:null==(C=e.ctaLink[0])?void 0:C.title}),!z&&(0,a.jsx)("div",{className:"relative block w-full",children:(null==e||null==(S=e.mainImage)?void 0:S[0])&&(0,a.jsx)("div",{className:"h-[400px] rounded-3xl",children:(0,a.jsx)(m.A,{src:null==(D=e.mainImage)||null==(_=D[0])?void 0:_.url,alt:(0,p.Vo)(null==(P=e.mainImage)||null==(T=P[0])?void 0:T.title),sizes:"(max-width: 767px) 280px, (max-width: 1200px) 600px, 1200px"})})})]})},t)})})}),z&&(0,a.jsx)("div",{className:"col-span-7",children:F&&D.map((e,t)=>(0,a.jsx)(u,{...e,id:"side-section-".concat(t)},t))})]})})}},76963:(e,t,l)=>{"use strict";l.d(t,{b:()=>k,default:()=>A,v:()=>N});var a=l(95155),s=l(11597),r=l(51396),n=l(37935),i=l(2821),o=l(8751),d=l(15239),c=l(12115),m=l(2671),p=l(39329),u=l(75387),x=l(62990),h=l(30287),f=l(19296
1),v=l(95455),g=l(79669),b=l(28994),y=l(48447),j=l(95993),w=l(47411);function k(e){if(!e)return"";let t="string"==typeof e?new Date(e):e;if(!(t instanceof Date)||isNaN(t.getTime()))return"";let l=new Date(t);return l.setDate(l.getDate()),l.toISOString().slice(0,10)}function N(e){return e.root.children.flatMap(e=>e.children.map(e=>e.text)).join("")}function A(e){var t,l,A,C,S,_,D,T,P;let{addlLink:F,addOnOffer:L,bottomBgColor:E,calloutBadgeColor:I,calloutBadgeText:z,component:M,ctaLink:O,detailsButton:R,displayPriceDisclaimer:V,image:H,newDescription:B,notice:G,offerDetails:K,offerText:W,price:q,priceDescription:U,priceDisclaimer:Y,pricePeriod:Z,priceText:X,priceValidUntil:Q,showDescription:J,strikethroughPricePosition:$="White Box",subtitle:ee,title:et,validFrom:el,validThrough:ea,variant:es}=e,[er,en]=(0,c.useState)(!1),[ei,eo]=(0,c.useState)(),{context:ed}=(0,r.Ti)(),ec=(0,s.fKV)(F,{toSingle:!0}),em=H&&(0,s.fKV)(H,{toSingle:!0}),ep=(0,b.z)(ec),{theme:eu}=E&&"object"==typeof E?(0,f.wj)(E):{theme:"Zoo"},ex=I&&"object"==typeof I?(0,f.wj)(I):{theme:"Callout Badge"},eh=ex&&ex.theme?ex.theme:"Callout Badge",ef=(null==ec?void 0:ec.target)?"_blank":"_self",ev=(null==et?void 0:et.toLowerCase().replace(/[^a-zA-Z0-9\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,""))||"AdmissionsStandardCard",{props:{srcSet:eg}}=(0,d.getImageProps)({alt:(null==em?void 0:em.title)||"",width:800,height:570,src:(null==em?void 0:em.url)||""}),eb=(null==em?void 0:em.url)?(0,h.C)(eg):"",ey="White Box"!==$;return(0,a.jsxs)(o.P.div,{"data-component":null==M?void 0:M.type,id:ev,initial:{opacity:0}
1,animate:{opacity:1},className:"card-wrapper standart-card mx-auto flex w-full max-w-full flex-col gap-4 tablet:w-[430px] desktop:w-full",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/Offer",children:[(0,a.jsx)("meta",{itemProp:"acceptedPaymentMethod",content:"VISA, MasterCard, Discover, and American Express"}),(0,a.jsx)("span",{className:"-mb-4 mt-8 inline-flex h-9",children:z&&(0,a.jsx)("span",{className:(0,i.A)("relative items-start justify-start gap-2.5 rounded-tl-[20px] rounded-tr-md px-3 py-2 text-p-xs font-black uppercase",null==(t=f.Cs[eh])?void 0:t.className,null==(l=f.Cs[eh])?void 0:l.childrenClassName),style:null==(A=f.Cs[eh])?void 0:A.backgroundStyles,children:z})}),(0,a.jsxs)("div",{className:(0,i.A)("card-body relative flex flex-col overflow-hidden rounded-[16px] border border-primary-cocoa-2 bg-secondary-white pt-4",z&&"rounded-tl-none"),...q?{itemProp:"itemOffered",itemScope:!0,itemType:"https://schema.org/Product"}:{},children:[(0,a.jsx)("meta",{itemProp:"name",content:et}),B&&("object"==typeof B?(0,a.jsx)("meta",{itemProp:"description",content:N(B)}):(0,a.jsx)("meta",{itemProp:"description",content:B})),em&&(null==em?void 0:em.url)&&(0,a.jsx)("link",{itemProp:"image",href:eb}),em&&(0,a.jsx)("div",{className:"mb-6 aspect-[1.85] w-full px-4",children:(0,a.jsxs)("div",{className:"relative h-full w-full overflow-hidden rounded-[8px]",itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(d.default,{className:"pointer-events-none h-full w-full object-cover",src:null==em?void 0:em.url,alt:(0,y.Vo)((null==em?void 0:em.title)||""),fill:!0,itemProp:"image",content:em.url,sizes:"(max-width: 767px) 47.9375rem, (max-width: 1024px) 28.125rem, (max-width: 1200px) 37.5rem, 50rem"}),(0,a.jsx)("meta",{itemProp:"name",content:null==em?void 0:em.title})]})}),(0,a.jsxs)("div",{className:"mb-6 flex flex-col gap-4 px-4 font-filson-pro text-primary-cocoa first:pt-2",...q?{itemProp:"offers",itemScope:!0,itemType:"https://schema.org/Offer"}:{},children:[el&&(0,a.jsx)("meta",{itemProp:"validFrom",content:k(el)}),ea&&(0,a.jsx)("meta",{itemProp:"validThrough",content:k(ea)}),Q&&(0,a.jsx)("meta",{itemProp:"priceValidUntil",content:k(Q)}),L&&(0,a.jsx)("meta",{itemProp:"addOn",itemScope:!0,itemType:"https://schema.org/Offer"}),(0,a.jsx)("link",{itemProp:"availability",content:"https://schema.org/InStock"}),(0,a.jsx)("span",{itemProp:"brand",itemType:"https://schema.org/Brand",itemScope:!0,children:(0,a.jsx)("meta",{itemProp:"name",content:"Hersheypark"})}),et&&(0,a.jsxs)("p",{className:"flex flex-wrap items-baseline justify-between gap-4 text-label-l",children:[(0,a.jsx)("span",{className:"font-bold",children:et}),X&&(0,a.jsx)("span",{className:"whitespace-nowrap text-label-m",children:X})]}),J&&B&&(0,a.jsx)(n.mj,{component:M,parameterId:"newDescription",itemProp:"description"}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[q&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{itemProp:"priceCurrency",content:"USD"}),(0,a.jsxs)("h2",{className:"mb-0",children:[q&&(0,a.jsx)("span",{className:"mb-0 inline-block align-middle text-h2-m desktop:text-h2",itemProp:"price",content:q.replace(/[^\d.]/g,""),children:q}),Z&&(0,a.jsxs)("p",{className:"mb-0 ml-2 mt-4 inline-block align-middle normal-case",children:["/",Z]}),K&&"Green Bar"!==$&&(0,a.jsxs)("span",{itemProp:"priceSpecification",itemScope:!0,itemType:"https://schema.org/UnitPriceSpecification",children:[(0,a.jsx)("meta",{itemProp:"priceType",content:"https://schema.org/StrikethroughPrice"}),(0,a.jsx)("meta",{itemProp:"priceCurrency",content:"USD"}),(0,a.jsx)("span",{itemProp:"price",content:K.replace(/[^\d.]/g,""),className:"strikethrough strikethrough relative ml-2 mt-4 text-p-xl text-primary-zoo before:top-[40%] before:border-b-primary-zoo lg-mobile:top-[15%] desktop:mt-4",children:K})]})]})]}),Y&&"Details"!=V&&(0,a.jsx)(n.mj,{component:M,parameterId:"priceDisclaimer",itemProp:"description",className:"mt-3 [&>p]:text-p-xs"})]}),(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap justify-between gap-4 gap-x-2 lg-mobile:gap-x-4",children:[Array.isArray(O)&&O.map((e,t)=>{let l=(0,s.fKV)(e,{toSingle:!0});return(0,a.jsx)(j.A,{ctaButton:l,linkClassName:(0,i.A)({"desktop:button-md":"Default"===es},R&&Array.isArray(O)&&1==O.length?"flex-grow":Array.isArray(O)&&O.length>1?"w-full flex-shrink-0 lg-mobile:w-[48%]":"w-1/2 flex-shrink-0"),linkSize:"sm",onLinkClick:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,g.xC)(l),t=(0,v.N_)(e,et);null==ed||ed.update({events:[{event:t}]})}},t)}),R&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.A,{className:(0,i.A)("underline underline-offset-2",{"desktop:button-md":"Default"===es},Array.isArray(O)&&O.length>
11&&"w-full"),size:"sm",variant:"Transparent",onClick:e=>{let t=(0,v.UA)("Details about ".concat(et));null==ed||ed.update({events:[{event:t}]}),eo({x:e.clientX+"px",y:e.clientY+"px"}),en(!0)},children:"Details"}),(0,a.jsxs)(x.A,{isOpen:er,setIsOpen:en,overlayCenter:ei,children:[(0,a.jsxs)("div",{className:"flex flex-shrink-0 justify-between overflow-hidden border-b border-primary-cocoa-2 bg-secondary-white px-6 pb-6 pt-8 desktop:rounded-t-[16px]",children:[(0,a.jsxs)("p",{className:"flex items-center gap-3 font-filson-pro text-label-l text-primary-cocoa",children:[(0,a.jsx)(u.default,{width:"23",height:"20"})," Details"]}),(0,a.jsx)("button",{className:"flex h-6 w-8 justify-center",onClick:()=>en(!1),children:(0,a.jsx)(p.default,{width:"13",height:"24",className:"fill-primary-cocoa"})})]}),(0,a.jsxs)("div",{className:"flex flex-grow flex-col gap-6 overflow-y-auto bg-secondary-white px-8 py-6",children:[em&&(0,a.jsxs)("div",{className:"relative aspect-[1.6] w-full flex-shrink-0",itemScope:!0,itemType:"https://schema.org/ImageObject",children:[(0,a.jsx)(d.default,{className:"pointer-events-none h-full w-full object-cover",src:null==em?void 0:em.url,alt:(0,y.Vo)(null==em?void 0:em.title),fill:!0,itemProp:"image",sizes:"(max-width: 767px) 47.9375rem, (max-width: 1024px) 28.125rem, (max-width: 1200px) 37.5rem, 50rem"}),(0,a.jsx)("meta",{itemProp:"name",content:null==em?void 0:em.title})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4 text-center font-filson-pro",children:[et&&(0,a.jsx)("h3",{className:"text-h3 text-primary-cocoa",itemProp:"name",children:et}),W&&(0,a.jsx)("p",{className:"mt-0 text-label-l text-primary-zoo",itemProp:"description",children:W})]}),(q||U||ee)&&(0,a.jsxs)("div",{className:"flex flex-col gap-4 roun
1ded-3xl border border-primary-cocoa-2 px-5 py-8 text-center text-primary-cocoa",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[ee&&(0,a.jsx)("p",{className:"font-filson-pro text-label-l",children:ee}),q&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("h2",{className:"mb-0 gap-2 text-h1",children:[(0,a.jsx)("meta",{itemProp:"priceCurrency",content:"USD"}),(0,a.jsx)("span",{itemProp:"price",content:q.replace(/[^\d.]/g,""),children:q}),K&&(0,a.jsx)("span",{className:"strikethrough relative ml-2 mt-4 text-p-xl",children:K})]})}),Z&&(0,a.jsxs)("p",{className:"font-proxima-nova text-p-s font-normal",children:["Price Per ",Z.slice(0,1).toUpperCase()+Z.slice(1)]})]}),U&&(0,a.jsx)("p",{className:"font-proxima-nova text-label-m font-normal",children:U}),Y&&"Card"!=V&&(0,a.jsx)(n.mj,{component:M,parameterId:"priceDisclaimer",itemProp:"description",className:"[&>p]:text-p-xs"})]}),B&&(0,a.jsx)(n.mj,{component:M,parameterId:"newDescription",itemProp:"description"})]}),(0,a.jsx)("meta",{itemProp:"availableAtOrFrom",content:"Hersheypark"}),(0,a.jsx)("meta",{itemProp:"isFamilyFriendly",content:"true"}),Array.isArray(O)&&(0,a.jsx)("div",{className:"bg-gradient-happiness flex flex-shrink-0 flex-wrap justify-center gap-4 gap-x-4 p-8 desktop:rounded-b-[16px]",children:O.map((e,t)=>{let l=(0,s.fKV)(e,{toSingle:!0});return(0,a.jsx)(j.A,{ctaButton:l,linkClassName:(0,i.A)("min-w-64",{"desktop:button-md":"Default"===es}),linkSize:"sm",variant:"White",onLinkClick:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,g.xC)(l),t=(0,v.N_)(e,et);null==ed||ed.update({events:[{event:t}]})}},t)})})]})]})]})]}),ec?(0,a.jsxs)(w.A,{className:(0,i.A)("border-t px-4 py-6 font-filson-pro no-underline transition-all",null==(C=f.Cs[eu])?void 0:C.borderColor,"".concat(null==(S=f.Cs[eu])?void 0:S.lightColor," ").concat(null==(_=f.Cs[eu])?void 0:_.lightColorHover," hover:").concat(null==(D=f.Cs[eu])?void 0:D.className)),href:ep,target:ef,title:null==ec?void 0:ec.title,children:[(0,a.jsx)("p",{className:(0,i.A)("text-label-m",ey&&"mb-0"),children:W||(null==ec?void 0:ec.title)}),K&&ey&&(0,a.jsx)("p",{className:"flex-shrink-0 text-label-l line-through",children:K})]}):W&&(0,a.jsxs)("div",{className:(0,i.A)("border-t px-4 py-6 font-filson-pro no-underline",null==(T=f.Cs[eu])?void 0:T.borderColor,null==(P=f.Cs[eu])?void 0:P.lightColor,ey&&"flex flex-wrap items-baseline justify-between gap-4"),children:[(0,a.jsx)("p",{className:(0,i.A)("text-label-m",ey&&"mb-0"),itemProp:"description",children:W}),K&&ey&&(0,a.jsx)("p",{className:"flex-shrink-0 text-label-l line-through",children:K})]})]}),G&&(0,a.jsx)("div",{className:"px-8",children:(0,a.jsx)("p",{className:"text-center font-proxima-nova text-legal-regular text-opacity-60",children:G})})]})}},91105:(e,t,l)=>{"use strict";l.d(t,{default:()=>d});var a=l(95155),s=l(37935),r=l(2821),n=l(12115),i=l(19296),o=l(12703);function d(e){var t,l,d,c,m,p;let{title:u,description:x,component:h,context:f,slots:v,backgroundColor:g}=e,b=(0,i.gK)(g,f),y=(0,n.useRef)(null),j=(0,o.A)(y,[null!=(p=null==(t=i.Cs[b])?void 0:t.className)?p:""]);return(0,a.jsxs)("section",{ref:y,"data-component":null==h?void 0:h.type,className:(0,r.A)("increaseFirstChild flex flex-col gap-12 desktop:gap-16",null==(l=i.Cs[b])?void 0:l.className,null==(d=i.Cs[b])?void 0:d.childrenClassName,j?"mt-[-2px] pb-14 pt-0 desktop:pb-24 desktop:pt-0":"pb-14 pt-20 desktop:pt-24"),style:null==(c=i.Cs[b])?void 0:c.backgroundStyles,children:[(0,a.jsx)("div",{className:"child:my-0 [&>.breadcrumbs]:bg-secondary-transparent [&>.breadcrumbs]:pb-2 [&>.breadcrumbs]:pt-10 desktop:[&>.breadcrumbs]:pt-0",children:(0,a.jsx)(s.D,{context:f,data:h,slot:v.topComponent})}),u&&x&&(0,a.jsxs)("div",{className:"flex flex-col items-center gap-6 px-8 text-center",children:[u&&(0,a.jsx)("h1",{className:"font-filson-pro text-h1-m desktop:text-h1",itemProp:"name",children:u}),x&&(0,a.jsx)("p",{className:"max-w-[798px] font-proxima-nova text-p-l desktop:text-p-xl",itemProp:"description",children:x})]}),(0,a.jsx)("div",{className:(0,r.A)("flex flex-col gap-6 desktop:gap-8 [&>*]:bg-opacity-0 [&>*]:!bg-none [&>*]:py-0","[&>*]:".concat(null==(m=i.Cs[b])?void 0:m.childrenClassName)),children:(0,a.jsx)(s.D,{context:f,data:h,slot:v.layout})})]})}},93138:(e,t,l)=>{"use strict";l.d(t,{default:()=>D});var a=l(95155),s=l(51396),r=l(37935),n=l(2821),i=l(16405),o=l(46980),d=l.n(o),c=l(12115),m=l(90912),p=l(62990),u=l(13055),x=l(18500),h=l(82002),f=l(85395),v=l(2671),g=l(31947),b=l(91100),y=l(20063);let j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=null==t?void 0:t.dynamicInputs,[s]=(0,c.useState)(e),[r,n]=(0,c.useState)(e),[i,o]=(0,c.useState)(r.length),[d,m]=(0,c.useState)([]),[p,u]=(0,c.useState)(""),[x,h]=(0,c.useState)(null),f=(0,y.useSearchParams)(),v=(0,y.useRouter)(),g=(0,y.usePathname)(),b=Array.from(new Set(Array.isArray(s)?s.map(e=>e.category_name).filter(e=>void 0!==e):[]));return((0,c.useEffect)(()=>
1{if(f){let e=f.get("category"),t=f.get("search"),l=f.get("id");e?m(e.split(",").map(e=>e.trim().toLowerCase())):m([]),t?u(t.trim().toLowerCase()):u(""),l?h(l.trim()):h(null)}},[f]),(0,c.useEffect)(()=>{if(!d.length&&!p&&!x)return;let e=new URLSearchParams((null==f?void 0:f.toString())||"");d.length>0?e.set("category",d.join(",")):e.delete("category"),p.trim().length>0?e.set("search",p.trim()):e.delete("search"),x?e.set("id",x):e.delete("id");let t=e.toString()?"".concat(g,"?").concat(e.toString()):g;v.replace(String(t),{scroll:!1})},[d,p,x,f,g,v]),(0,c.useEffect)(()=>{Array.isArray(s)?n(s.filter(e=>{var t,l,a;let s=0===d.length||d.includes(e.category_name.toLowerCase())||d.includes(e.category_name),r=(null==(t=e.question)?void 0:t.toLowerCase().includes(p.toLowerCase()))||(null==(l=e.answer)?void 0:l.toLowerCase().includes(p.toLowerCase()))||(null==(a=e.search_terms)?void 0:a.toLowerCase().includes(p.toLowerCase()))||!1,n=!x||e.id.toString()===x;return s&&r&&n})):n([])},[d,s,p,x]),(0,c.useEffect)(()=>{o(r.length)},[d,r,p,x]),Array.isArray(e)&&0!==e.length)?{sidebarFeed:l,accordions:s,filteredAccordions:r,visibleItems:i,Accordions:b,selectedAccordions:d,searchTerm:p,setSearchTerm:u,handleSearchTermChange:e=>{u(e.target.value)},handleAccordionChange:e=>{m(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},handleAccordionLoadMore:()=>{o(e=>e+10)},handleClearAll:()=>{m([]),u(""),h(null),h(null);let e=new URLSearchParams((null==f?void 0:f.toString())||"");e.delete("category"),e.delete("search"),e.delete("id");let t=g?g.substring(0,g.lastIndexOf("/")):"/";if(a&&Object.keys(a).length>0)t!==g&&v.push(t);else{let t=e.toString()?"".concat(g,"?").concat(e.toString()):g;v.replace(String(t),{scroll:!1})}},handleRemoveFilter:(e,t)=>{"category"===t?m(t=>t.filter(t=>t!==e)):"id"===t&&h(null)},selectedId:x,setSelectedId:h}:{accordions:[],filteredAccordions:[],visibleItems:0,Accordions:[],selectedAccordions:[],searchTerm:"",setSearchTerm:()=>{},handleSearchTermChange:()=>{},handleAccordionChange:()=>{},handleAccordionLoadMore:()=>{},handleClearAll:()=>{},handleRemoveFilter:()=>{},selectedId:null,setSelectedId:()=>{}}};var w=l(76784),k=l(39329),N=l(81583),A=l(89347);let C=e=>{let{Accordions:t,selectedAccordions:l,handleAccordionChange:i,component:o,context:d,slot:m,searchTerm:p,handleSearchTermChange:u,sidebarClassName:v,setIsOpen:y,children:j,filterCount:C,sidebarFeed:S}=e,{isMatch:_}=(0,x.s)("desktop"),{context:D}=(0,s.Ti)(),[T,P]=(0,c.useState)(""),F=S?Array.from(new Set(S.map(e=>e.category_name).filter(e=>"string"==typeof e&&""!==e.trim()))):t;return(0,a.jsx)("aside",{className:(0,n.A)("sidebar col-span-full desktop:col-span-3"),children:(0,a.jsxs)("form",{className:(0,n.A)("py-4 desktop:rounded-2xl desktop:border desktop:border-primary-cocoa/20",v),onSubmit:e=>{e.preventDefault()},children:[(0,a.jsxs)("div",{className:"mb-4 flex flex-wrap justify-between p-4",children:[(0,a.jsxs)("h3",{className:"flex flex-wrap items-center font-filson-pro text-p-l font-medium",children:["Filters",(0,a.jsx)("span",{className:"counter ml-2 flex h-[24px] w-[24px] items-center justify-center gap-2 rounded-full bg-primary-boardwalk-2 px-1 py-3 text-[12px] text-primary-boardwalk-shade",children:C})]}),!_&&(0,a.jsx)("button",{className:"flex h-6 w-8 justify-center",onClick:()=>y&&y(!1),children:(0,a.jsx)(k.default,{width:"28",height:"35",className:"fill-primary-cocoa"})})]}),(0,a.jsxs)("div",{className:"max-h-[80vh] overflow-y-scroll px-4 desktop:max-h-full desktop:overflow-auto",children:[(0,a.jsx)(r.D,{context:d,data:o,slot:m}),(0,a.jsxs)("div",{className:"relative border-t border-t-primary-cocoa/20 px-0 py-5",children:[(0,a.jsx)("label",{className:"sr-only !text-p-s",htmlFor:"faq-search",children:"Search"}),(0,a.jsxs)("div",{className:"relative mx-auto w-full",children:[(0,a.jsx)(A.A,{className:"h-14 w-full rounded-[38px] border border-primary-cocoa/50 pr-16 font-filson-pro text-p-l font-medium text-primary-cocoa placeholder:text-primary-cocoa/50",type:"text",id:"faq-search",name:"faq-search",placeholder:"Search",value:p,onChange:e=>u(e),onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()}}),(0,a.jsx)("button",{className:"absolute right-2 top-3 px-2 hover:cursor-pointer","aria-label":"Search",children:(0,a.jsx)(N.default,{width:"20",height:"25",className:"fill-primary-cocoa/50"})})]})]}),void 0!==t&&t.length>0&&(0,a.jsx)("div",{className:"border-t border-t-primary-cocoa/20 px-4 py-5 desktop:last:child:pb-16",children:(0,a.jsx)(f.A,{id:"faq_category",triggerClassName:(0,n.A)("flex mb-4 gap-8 justify-between items-center px-0 py-0",_?"cursor-default pointer-events-none":"cursor-pointer"),contentClassName:_?"!h-full !opacity-100 !visible !block":"",triggerContent:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"mb-0 font-filson-pro text-p-m font-normal",children:"Categories"}),!_&&(e?(0,a.jsx)(b.A,{width:"21",height:"24",className:"shrink-0"}):(0,a.jsx)(g.A,{width:"21",height:"24",className:"shrink-0"}))]}),isExpanded:"faq_category"!==T,onTriggerClick:()=>{_||P("faq_category"!==T?"faq_category":"")},children:F.filter(e=>"string"==typeof e&&""!==e.trim()).sort((e,t)=>
1e.localeCompare(t)).map((e,t)=>(0,a.jsxs)("div",{className:"flex-center relative mb-4 flex",children:[(0,a.jsx)("input",{type:"checkbox",checked:l.includes(e.toLowerCase()),onChange:()=>i(e.toLowerCase()),className:"mr-2",id:"".concat(e.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),onClick:()=>{let t=h.H.Filter_Radials;(0,w.sendGTMEvent)({event:t,value:{data_title:"Filter_Radials",data_text:e}}),null==D||D.update({events:[{event:t}]})}}),(0,a.jsx)("label",{className:"!static !text-p-s",htmlFor:"".concat(e.split(" ").join("-").toLowerCase(),"-").concat(t).toString(),children:e})]},t))})}),j]})]})})},S=e=>{let{accordionSelectedFilters:t,handleRemoveFilter:l,handleClearAll:s,FilterClassName:r,children:i,searchTerm:o,setSearchTerm:d,selectedId:c,context:m}=e,p=null==m?void 0:m.dynamicInputs,{isMatch:u}=(0,x.s)("desktop"),h="filter-tag mb-3 mr-3 flex items-center justify-center gap-2 rounded-full bg-primary-boardwalk-2 px-3 py-1 text-[14px] text-primary-boardwalk-shade border border-primary-boardwalk-shade",f=t.length+ +!!o>0||c||p&&Object.keys(p).length>0;return(0,a.jsxs)("div",{className:(0,n.A)("selected-filters desktop:flex desktop:flex-wrap",r),children:[(0,a.jsxs)("div",{className:(0,n.A)("mb-4 flex flex-wrap border-b border-t border-b-primary-cocoa/20 border-t-primary-cocoa/20 pb-3 pt-6 desktop:border-0 desktop:py-0"),children:[o&&(0,a.jsxs)("button",{className:h,onClick:()=>{d("")},children:[o.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")," ",(0,a.jsx)("span",{className:"close-button",children:(0,a.jsx)(k.default,{width:"12",height:"12",className:"fill-primary-boardwalk-shade"})})]}),t.map(e=>(0,a.jsxs)("button",{className:h,onClick:()=>l(e.name,e.type),children:[e.name.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),(0,a.jsx)("span",{className:"close-button",children:(0,a.jsx)(k.default,{width:"12",height:"12",className:"fill-primary-boardwalk-shade"})})]},e.name)),u&&f&&(0,a.jsx)("button",{onClick:s,className:"clear-all-button text-font-proxima-nova mb-3 text-[14px] font-semibold text-primary-cocoa underline hover:no-underline",children:"Clear All"})]}),!u&&(0,a.jsxs)("div",{className:"fixed bottom-0 left-0 right-0 bg-secondary-white p-5 lg-mobile:left-auto lg-mobile:w-[570px]",children:[i,f&&(0,a.jsx)("button",{onClick:s,className:"clear-all-button text-font-proxima-nova mb-3 text-[14px] font-semibold text-primary-cocoa underline hover:no-underline",children:"Clear All"})]})]})},_=e=>{let{accordions:t,onSortedAccordions:l}=e,s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,l=[...e];return"relevance"===t&&(l=l.sort((e,t)=>(t.top_ten_order||0)-(e.top_ten_order||0))),l};return(0,c.useEffect)(()=>
1{l(s(t||[],"relevance"))},[t,l]),(0,a.jsx)(a.Fragment,{})};function D(e){var t,l,o;let{context:y,component:w,slots:k,feed:N,sidebarFeed:A}=e,{accordions:D,filteredAccordions:T=[],visibleItems:P,searchTerm:F,setSearchTerm:L,handleSearchTermChange:E,Accordions:I,selectedAccordions:z,handleAccordionChange:M,handleAccordionLoadMore:O,handleRemoveFilter:R,handleClearAll:V,selectedId:H,setSelectedId:B}=j(N,y,A),[G,K]=(0,c.useState)(T),{isMatch:W}=(0,x.s)("desktop"),[q,U]=(0,c.useState)(!1),[Y,Z]=(0,c.useState)(),{context:X}=(0,s.Ti)(),Q=[...z.map(e=>({name:e,type:"category"}))],J=Q.length+ +!!F,$={Accordions:I,searchTerm:F,setSearchTerm:L,handleSearchTermChange:E,selectedAccordions:z,handleAccordionChange:M,component:w,context:y,slot:k.sidebar,filterCount:J,sidebarFeed:A},ee=(0,c.useRef)(null),et=null==y?void 0:y.dynamicInputs,el=()=>{el()},[ea,es]=(0,c.useState)(H?H.toString():"");(0,c.useEffect)(()=>{H&&es(H.toString())},[H]),(0,c.useEffect)(()=>{if(et&&N.length>0&&Object.keys(et).length>0){var e,t,l;es(null!=(l=null==N||null==(t=N[0])||null==(e=t.id)?void 0:e.toString())?l:"")}},[et,N]);let er={selectedFilters:Array.isArray(D)?D.map(e=>"string"==typeof e?{name:e,type:"custom"}:e):[],searchTerm:F,setSearchTerm:L,accordionSelectedFilters:Q,handleRemoveFilter:R,handleClearAll:V,resetVisibleItems:el,selectedId:H,setSelectedId:B,componentContext:y};return((0,c.useEffect)(()=>{let e=new IntersectionObserver(e=>{var t;(null==e||null==(t=e[0])?void 0:t.isIntersecting)&&O()},{threshold:1});return ee.current&&e.observe(ee.current),()=>{ee.current&&e.unobserve(ee.current)}},[O]),N&&0!==N.length)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.D,{context:y,data:w,slot:k.breadcrumbs,children:e=>(0,a.jsx)(c.Fragment,{children:(0,a.jsx)("div",{className:(0,n.A)("bg-secondary-white px-8 [&>*]:[&>*]:mx-auto [&>*]:[&>*]:max-w-[1920px] [&>*]:bg-secondary-white [&>*]:pt-6"),children:e.child})},e.key)}),(0,a.jsx)("section",{className:(0,n.A)("bg-secondary-white py-7 desktop:py-14"),children:(0,a.jsxs)("div",{className:"default-grid-row mx-auto max-w-[1920px] content-start",children:[W&&(0,a.jsx)(C,{...$,sidebarClassName:"hidden desktop:block"}),(0,a.jsxs)("div",{className:(0,n.A)("col-span-full desktop:col-span-5 md-desktop:col-span-9"),children:[(0,a.jsx)(r.D,{context:y,data:w,slot:k.main,children:e=>(0,a.jsx)(c.Fragment,{children:(0,a.jsx)("div",{className:(0,n.A)("bg-secondary-white p-0 [&>*]:[&>*]:mx-auto [&>*]:[&>*]:max-w-[1920px] [&>*]:bg-secondary-white [&>*]:[&>*]:[&>*]:!p-0 [&>*]:p-0"),children:e.child})},e.key)}),(0,a.jsx)("div",{className:(0,n.A)("mb-4 text-center"),children:(0,a.jsxs)("p",{className:"mt-2 font-filson-pro text-p-s font-medium text-primary-cocoa",children:["Showing ",P," result",P>1?"s":""," for"," ",String((null==y||null==(o=y.composition)||null==(l=o.parameters)||null==(t=l.pageTitle)?void 0:t.value)||""),"."]})}),(0,a.jsxs)("div",{className:(0,n.A)("mb-8 grid grid-cols-12 content-start items-center gap-4 border-b-[1.5px] border-primary-cocoa/20 pb-3 desktop:items-start"),children:[W&&(0,a.jsx)(S,{...er,context:y,FilterClassName:"col-span-5 tablet:col-span-3 desktop:col-span-8 md-desktop:col-span-9"}),!W&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(v.A,{className:(0,n.A)("col-span-5 w-[120px] p-4 lg-mobile:col-span-3 lg-mobile:w-[150px]"),size:"sm",variant:"Chocolate",ariaLabel:"Open Filters sidebar",onClick:e=>{Z({x:e.clientX+"px",y:e.clientY+"px"}),U(!0)},children:[(0,a.jsx)("span",{className:"mr-2 h-[20px] w-[20px]",children:(0,a.jsx)(m.default,{width:"12px",className:"fill-secondary-white"})}),"Filters",(0,a.jsxs)("span",{className:"counter ml-1 text-secondary-white",children:["(",J,")"]})]}),!W&&(J>0||H)&&(0,a.jsx)("button",{onClick:V,className:"clear-all-button text-font-proxima-nova col-span-6 mb-3 text-left text-[14px] font-semibold text-primary-cocoa underline hover:no-underline tablet:col-span-5 desktop:col-span-4 md-desktop:col-span-3",children:"Clear All"}),(0,a.jsx)(p.A,{isOpen:q,setIsOpen:U,overlayCenter:Y,children:(0,a.jsx)(C,{...$,sidebarClassName:"bg-secondary-white",setIsOpen:U,children:(0,a.jsx)(S,{...er,context:y,FilterClassName:"col-span-12 tablet:col-span-5 bottom-0 right-0 left-0 bg-secondary-white z-1 p-4 lg-mobile:static",children:(0,a.jsx)(v.A,{className:(0,n.A)("col-span-6 mr-6 w-[220px] p-4"),size:"md",variant:"Chocolate",ariaLabel:"Show Results",onClick:()=>U&&U(!1),children:J>0?"Show ".concat(P," Result").concat(P>1?"s":""):"Show Results"})})})})]}),(null==y?void 0:y.isContextualEditing)===!1&&(0,a.jsx)(_,{accordions:T,onSortedAccordions:K})]}),(0,a.jsx)("div",{className:(0,n.A)("grid grid-cols-1 content-start gap-8"),children:0===G.length?(0,a.jsx)("div",{className:"col-span-4 text-center text-primary-cocoa",children:(0,a.jsx)("h3",{className:"font-filson-pro text-h2-m font-medium",children:"No results found."})}):Array.isArray(G)&&G.slice(0,P).map(e=>{let t=e.id.toString(),l=ea===t,s=d().sanitize(null==e?void 0:e.answer,{ALLOWED_TAGS:u.ls,ADD_ATTR:["target"]}),r=s.includes("<p>")?"div":"p";return(0,a.jsx)("div",{className:"accordion-group rounded-2xl border border-primary-cocoa border-opacity-40 bg-secondary-white text-primary-cocoa",children:(0,a.jsx)(f.A,{id:t,triggerClassName:"flex gap-8 justify-between items-center px-6 py-5",triggerContent:()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"font-filson-pro text-label-m desktop:text-label-l",children:(0,i.Ay)(d().sanitize(null==e?void 0:e.question,{ALLOWED_TAGS:u.ls,ADD_ATTR:["target"]}))}),l?(0,a.jsx)(b.A,{width:"21",height:"24"}):(0,a.jsx)(g.A,{width:"21",height:"24"})]}),isExpanded:l,onTriggerClick:()=>{let a=h.H.CTA_FAQs;l||((0,h.R)({event:a,value:{data_title:s,data_text:null==e?void 0:e.question}}),null==X||X.update({events:[{event:a}]})),es(l?"":t)},children:(0,a.jsx)(r,{className:"px-6 pb-5 font-proxima-nova text-p-s desktop:text-p-m",children:(0,i.Ay)(s)})},t)},t)})}),P<G.length&&(0,a.jsx)("button",{ref:ee,onClick:O,className:"observer-target mx-auto mt-12 block font-proxima-nova text-p-m font-semibold text-primary-cocoa underline hover:no-underline hover:transition-all",children:"Load More Results"})]})]})})]}):null}},97964:(e,t,l)=>{"use strict";l.d(t,{default:()=>x});var a=l(95155),s=l(11597),r=l(51396),n=l(37935),i=l(12115),o=l(58726),d=l(47411),c=l(9098),m=l(95455),p=l(64216),u=l(48447);function x(e){let{title:t,descriptionText:l,image:x,linkUrl:h,component:f}=e,v=(0,s.fKV)(x,{toSingle:!0}),g="group/udc relative mx-4 flex min-h-[324px] mx-auto max-w-[356px] tablet:mx-5 flex-col gap-6 rounded-2xl border border-primary-cocoa border-opacity-20 bg-secondary-white p-4 pb-6",{context:b}=(0,r.Ti)(),y=(0,i.useRef)(null);(0,c.t)(y);let j=()=>(0,a.jsxs)(a.Fragment,{children:[(null==v?void 0:v.url)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(o.A,{src:v.url,alt:(0,u.Vo)(null==v?void 0:v.title),containerClasses:"roun
1ded-2xl h-[216px] w-full",sizes:"350px"})}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 text-primary-cocoa",children:[t&&(0,a.jsx)("h4",{className:"text mt-3 font-filson-pro text-h4-m desktop:text-h4",children:t}),(0,a.jsx)("div",{className:"flex items-end gap-6",children:l&&(0,a.jsx)("div",{ref:y,children:(0,a.jsx)(n.mj,{className:"pr-8 [&>p]:text-p-s",component:f,parameterId:"descriptionText"})})})]})]});return(0,a.jsx)(a.Fragment,{children:(null==h?void 0:h.path)?(0,a.jsxs)(d.A,{href:h.path,className:g,onClick:()=>{let e=(0,m.UA)(t);null==b||b.update({events:[{event:e}]})},children:[(0,a.jsx)(j,{}),(0,a.jsx)(p.f,{})]}):(0,a.jsx)("div",{className:g,children:(0,a.jsx)(j,{})})})}},98405:(e,t,l)=>{"use strict";l.d(t,{default:()=>m});var a=l(95155),s=l(37935),r=l(2821),n=l(20063),i=l(12115),o=l(81583),d=l(89347),c=l(46591);function m(e){var t,l,m;let{backgroundColor:p,component:u,context:x,slots:h}=e,[f,v]=(0,i.useState)(""),g=(0,n.useSearchParams)();(0,i.useEffect)(()=>{if(g){let e=g.get("search_query");if(e){v(e);let t=()=>{let e=window;"function"==typeof e.setQuery&&"function"==typeof e.ZoomInitSearch&&"function"==typeof e.ZoomShowSummary&&"function"==typeof e.ZoomShowHeading&&"function"==typeof e.ZoomShowResults?(e.setQuery(),e.ZoomInitSearch(),e.ZoomShowSummary(),e.ZoomShowHeading(),e.ZoomShowResults()):setTimeout(t,100)};t()}}},[g]);let b=null!=(m=null==(t=c.A[p])?void 0:t.backgroundStyles)?m:{};return(0,a.jsx)("section",{id:u._id,"data-component":u.type,className:(0,r.A)("relative desktop:h-[420px]",null==(l=c.A[p])?void 0:l.className),style:b,children:(0,a.jsx)("div",{className:"flex h-full flex-wrap justify-center pt-44 text-center",children:(0,a.jsxs)("div",{className:"flex h-full w-full flex-wrap items-center [&>*:first-child]:self-start",children:[(0,a.jsx)("h1",{className:"sr-only",children:"Search site"}),(0,a.jsx)(s.D,{context:x,data:u,slot:h.components,children:e=>{let{child:t,key:l}=e;return(0,a.jsx)("div",{className:(0,r.A)("flex-[100%] flex-shrink-0 flex-grow-0 [&>*]:mx-auto [&>*]:bg-opacity-0 [&>*]:!p-0"),children:t},l)}}),(0,a.jsx)("div",{className:"relative mx-auto mb-6 w-full max-w-[900px] px-6",children:(0,a.jsx)("form",{method:"",action:"",className:"zoom_searchform",children:(0,a.jsxs)("div",{className:"relative mx-auto mb-6 w-full max-w-[900px] px-6",children:[(0,a.jsx)("label",{htmlFor:"search-field",className:"sr-only",children:"Search Hersheypark"}),(0,a.jsx)(d.A,{className:"h-14 w-full rounded-[38px] border border-primary-cocoa pr-16 font-filson-pro text-p-l font-medium text-primary-cocoa placeholder:text-primary-cocoa",id:"search-field",type:"text",name:"search_query",onChange:e=>{v(e.target.value)},placeholder:"Search",value:f}),(0,a.jsx)("button",{"aria-label":"Search",className:"absolute right-8 top-3 px-2 hover:cursor-pointer",children:(0,a.jsx)(o.default,{width:"24",height:"29"})}),(0,a.jsx)("p",{id:"search_header",className:"mt-6 text-center font-filson-pro text-p-s font-medium text-primary-cocoa"})]})})})]})})})}}}]);
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.