import{l as x,bn as f,u as k,r as h,bT as v,j as e,a$ as a,S as j,bU as N,a7 as w,bV as _,bW as C,aT as P,aR as T}from"./index-Bt7ohjT1.js";import{C as A}from"./clock-Dim94Qys.js";/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const F=x("Armchair",[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const O=x("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const z=x("Pizza",[["path",{d:"m12 14-1 1",key:"11onhr"}],["path",{d:"m13.75 18.25-1.25 1.42",key:"1yisr3"}],["path",{d:"M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12",key:"1qtqk6"}],["path",{d:"M18.8 9.3a1 1 0 0 0 2.1 7.7",key:"fbbbr2"}],["path",{d:"M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z",key:"1hyfdd"}]]),m="Arranged directly with the venue, subject to availability.",u="We book and set the room up for you — just add it to your booking.",B={bristol:{badge:"Food + party space",features:[{icon:"food",label:"Food included",detail:"Pizza, hot dog or burger + chips + squash"},{icon:"space",label:"Dedicated space",detail:"Private clubhouse space for your group"},{icon:"clock",label:"Last orders",detail:"Food orders available until 4pm"}],note:m},manchester:{badge:"Food package",features:[{icon:"food",label:"Freshly made",detail:"Hot pizzas straight after the session"},{icon:"space",label:"Lounge seating",detail:"Relaxed seating area beside the pitch"},{icon:"order",label:"Pre-order",detail:"Order ahead so it's ready on arrival"}],note:m},newcastle:{badge:"Food package",features:[{icon:"food",label:"Pizza deal",detail:"Chicago Town pizzas, 2 for £17.50"},{icon:"space",label:"Lounge seating",detail:"Seating area for your whole group"},{icon:"cake",label:"Cake welcome",detail:"Bring your own birthday cake"}],note:m},liverpool:{badge:"Private party room",features:[{icon:"space",label:"Private room",detail:"Yours for 30 minutes after the session"},{icon:"decorate",label:"Set up for you",detail:"Tables, chairs and bins ready to go"},{icon:"food",label:"Bring your own",detail:"Food, cake and decorations welcome"}],note:u},leeds:{badge:"Private party room",features:[{icon:"space",label:"Private room",detail:"Your own space beside the pitch"},{icon:"decorate",label:"Blank canvas",detail:"Decorate it however you like"},{icon:"order",label:"Food your way",detail:"Bring your own or order in"}],note:u},bath:{badge:"Private party room",features:[{icon:"space",label:"Private room",detail:"Tables and chairs set up for your group"},{icon:"decorate",label:"Blank canvas",detail:"Decorate it however you like"},{icon:"order",label:"Food your way",detail:"Bring your own or order in"}],note:u},blackpool:{badge:"Party area",features:[{icon:"space",label:"Dedicated area",detail:"Tables and chairs for your group"},{icon:"order",label:"Food your way",detail:"Bring your own or order in"},{icon:"cake",label:"Cake welcome",detail:"Birthday cake permitted"}],note:u}};function M(o){if(o)return B[o.toLowerCase().trim()]}const E="This venue is session-only — the hosted session is complete on its own. Many groups bring snacks or head to a nearby café after.",S={food:z,space:F,clock:A,cake:P,decorate:T,order:O};function L(o){var d;if(o.price_label){const l=(d=o.price_label.match(/£[\d,.]+/))==null?void 0:d[0];if(l){const t=o.price_label.replace(l,"").trim();return{amount:l,suffix:"",unit:t||"Party deal"}}return{amount:o.price_label,suffix:"",unit:"Party deal"}}if(o.price_amount==null)return null;const n=Number(o.price_amount),r=`£${n%1===0?n.toFixed(0):n.toFixed(2)}`;return o.price_type==="per_child"?{amount:r,suffix:"pp",unit:"Per child"}:o.price_type==="deal"?{amount:r,suffix:"",unit:"Party deal"}:{amount:r,suffix:"",unit:"Flat rate"}}function U(){const{data:o}=f(),{openCheckDate:n}=k(),[r,d]=h.useState(),l=r?v(r):void 0,t=h.useMemo(()=>o==null?void 0:o.find(i=>i.city_slug===r&&i.is_enabled),[o,r]),p=!!t&&t.addon_type!=="none",c=p&&t?L(t):null,s=p?M(r):void 0,b=(s==null?void 0:s.badge)??((t==null?void 0:t.addon_type)==="food_package"?"Food package":"Private party room");return e.jsx("section",{className:"py-16 md:py-24 px-4",style:{backgroundColor:a.pageBg},children:e.jsxs("div",{className:"container mx-auto max-w-4xl flex flex-col items-center",children:[e.jsx(j,{children:e.jsxs("div",{className:"text-center",children:[e.jsx("span",{className:"inline-block text-[10px] font-bold uppercase tracking-[0.2em] px-3 py-1 rounded-sm border",style:{color:a.muted,borderColor:a.border,backgroundColor:a.cardBgAlt},children:"Optional add-on"}),e.jsxs("h2",{className:"font-display text-4xl md:text-6xl font-bold italic uppercase tracking-tight leading-[0.95] mt-6 mb-5",style:{color:a.body},children:["Want To Keep The ",e.jsx("span",{style:{color:a.green},children:"Party Going?"})]}),e.jsxs("p",{className:"font-story text-sm md:text-base max-w-lg mx-auto leading-relaxed",style:{color:a.secondary},children:["Add a party room or food and drink package to your booking.",e.jsx("br",{className:"hidden sm:block"})," Pick your city to see what's available and the price."]})]})}),e.jsx("div",{className:"mt-10 w-full max-w-md",children:e.jsx(N,{value:r,onChange:d})}),r&&e.jsxs("div",{className:"mt-10 w-full max-w-3xl animate-fade-in",children:[e.jsxs("div",{className:"rounded-2xl border overflow-hidden text-left",style:{backgroundColor:a.cardBg,borderColor:a.border},children:[p&&(t==null?void 0:t.photo_url)&&e.jsxs("div",{className:"relative w-full h-52 md:h-64",children:[e.jsx("img",{src:t.photo_url,alt:`${t.addon_name||"Party add-on"} at our ${(l==null?void 0:l.name)??""} venue`,loading:"lazy",className:"absolute inset-0 w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, rgba(20,23,20,0.95), rgba(20,23,20,0.1))"}})]}),e.jsxs("div",{className:"p-6 md:p-9",children:[p&&t?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"inline-block text-[10px] font-bold uppercase tracking-[0.18em] px-3 py-1.5 rounded-[6px] border",style:{color:a.green,borderColor:a.green},children:b}),e.jsx("h3",{className:"font-display text-2xl md:text-4xl font-bold tracking-tight leading-tight mt-4",style:{color:a.body},children:t.addon_name})]}),c&&e.jsxs("div",{className:"text-right shrink-0",children:[e.jsx("span",{className:"font-display text-3xl md:text-5xl font-bold tracking-tight",style:{color:a.green},children:c.amount}),c.suffix&&e.jsx("span",{className:"font-display text-base md:text-xl font-bold ml-1",style:{color:a.green},children:c.suffix}),e.jsx("span",{className:"block text-[10px] font-bold uppercase tracking-[0.2em] mt-1",style:{color:a.muted},children:c.unit})]})]}),t.addon_description&&e.jsx("p",{className:"font-story text-sm md:text-base leading-relaxed mt-4",style:{color:a.secondary},children:t.addon_description}),s&&e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5 sm:gap-0 mt-7",children:s.features.map((i,y)=>{const g=S[i.icon];return e.jsxs("div",{className:`flex items-start gap-3 sm:px-5 ${y===0?"sm:pl-0":""}`,style:y>0?{borderLeft:`1px solid ${a.border}`}:void 0,children:[e.jsx(g,{className:"w-6 h-6 shrink-0",style:{color:a.green}}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.12em]",style:{color:a.body},children:i.label}),e.jsx("p",{className:"font-story text-sm leading-snug mt-1",style:{color:a.secondary},children:i.detail})]})]},i.label)})}),e.jsxs("div",{className:"mt-7 pt-6 flex items-center gap-3",style:{borderTop:`1px solid ${a.border}`},children:[e.jsx("span",{className:"flex items-center justify-center w-5 h-5 rounded-full border shrink-0",style:{borderColor:a.green},children:e.jsx(w,{className:"w-3 h-3",style:{color:a.green}})}),e.jsx("p",{className:"font-story text-sm",style:{color:a.secondary},children:(s==null?void 0:s.note)??"Arranged directly with the venue, subject to availability."})]})]}):e.jsx("p",{className:"font-story text-sm md:text-base leading-relaxed",style:{color:a.secondary},children:(t==null?void 0:t.session_only_note)||E}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mt-6",children:[e.jsx("a",{href:_(r)??C,target:"_blank",rel:"noopener noreferrer",className:"flex-1 text-center px-6 py-4 rounded-[6px] font-bold uppercase tracking-[0.2em] text-[11px] transition-opacity hover:opacity-90 active:scale-[0.98]",style:{backgroundColor:a.green,color:a.greenDark},children:"Book Now"}),e.jsx("button",{type:"button",onClick:()=>n({citySlug:r,audience:"kids",source:"BUTTON"}),className:"flex-1 flex items-center justify-center gap-2 px-6 py-4 rounded-[6px] border font-bold uppercase tracking-[0.2em] text-[11px] transition-colors hover:bg-white/5 active:scale-[0.98]",style:{borderColor:a.body,color:a.body},children:"Check A Date"})]})]})]}),e.jsx("p",{className:"mt-5 text-center text-[10px] font-bold uppercase tracking-[0.2em]",style:{color:a.muted},children:"Optional extra · Added at checkout · Subject to venue availability"})]})]})})}export{U as K};