1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[89669],{89669:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var i=s(95155),n=s(43800),a=s(16103),l=s(15239),r=s(12115),c=s(47650),o=s(71408),x=s(87921),d=s(15503);let m=function(e){let{partyPlatterMenuUrl:t}=e,{toggleShowKitPopup:s,showKitPopup:m}=(0,a.V)(e=>e),p=(0,a.m)(e=>e.addons),b=(0,a.m)(e=>e.setAddonQty),f=(0,a.m)(e=>e.basics.nights),[u,h]=r.useState(!1);(0,r.useEffect)(()=>{h(!0)},[]);let y=(0,r.useMemo)(()=>{var e;return m&&"none"!==m&&null!=(e=null==p?void 0:p.find(e=>e.id===m))?e:null},[p,m]),_="none"!==m&&null!==y;(0,r.useEffect)(()=>{if(!_)return;let{documentElement:e,body:t}=document,s=e.style.overflow,i=t.style.overflow;return e.style.overflow="hidden",t.style.overflow="hidden",()=>{e.style.overflow=s,t.style.overflow=i}},[_]);let j=()=>{s("none")},w=e=>"partyPlatter"===e?10:Math.max(1,Number(f)||1),N=e=>{if(!y)return;let t=w(y.id),s=Math.min(Math.max(0,y.qty+e),t);b(y.id,s)};if(!u)return null;let g=y&&y.originalPrice>0&&y.originalPrice>y.discountedPrice;return y&&y.id,(0,c.createPortal)((0,i.jsx)(o.N,{children:_&&y&&(0,i.jsxs)("div",{className:"fixed inset-0 z-50",children:[(0,i.jsx)(x.P.div,{className:"absolute inset-0 bg-black",initial:{opacity:0}
1,animate:{opacity:.25},exit:{opacity:0},onClick:j}),(0,i.jsx)("div",{className:"absolute inset-0 flex items-center mobile:items-end justify-center",children:(0,i.jsxs)(x.P.div,{className:"relative bg-white max-h-[85vh] overflow-y-auto w-[500px] rounded-[8px] mobile:w-full mobile:rounded-t-[16px] mobile:rounded-b-none",initial:{opacity:0,y:24},animate:{opacity:1,y:0},exit:{opacity:0,y:16},transition:{type:"spring",stiffness:360,damping:32},children:[(0,i.jsxs)("div",{className:"flex justify-between border-b mobile:border-b-0 items-center px-8 mobile:px-6 py-4",children:[(0,i.jsx)("h2",{className:"text-semantic_text font-lexendDeca text-[20px] font-[326] leading-[28px]",children:y.name}),(0,i.jsx)("button",{onClick:j,className:"p-1","aria-label":"Close",children:(0,i.jsx)(n.A,{color:"#4b4e4b"})})]}),(0,i.jsxs)("div",{className:"flex mobile:flex-col",children:[(0,i.jsx)("div",{className:"px-8 mobile:px-6 w-full mx-auto max-w-[280px] mobile:w-full flex justify-center",children:y.image&&(0,i.jsx)(l.default,{width:500,height:500,alt:y.name,src:y.image,className:"w-full max-w-[280px] h-auto object-contain"})}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"px-8 mobile:px-6 py-3 flex items-center gap-2",children:[g&&(0,i.jsxs)("span",{className:"text-semantic_text_critical text-[14px] font-[326] line-through",children:["â¹",y.originalPrice]}),(0,i.jsxs)("span",{className:"text-semantic_text_success text-[16px] font-[634]",children:["â¹",y.discountedPrice]}),"partyPlatter"===y.id?(0,i.jsx)("span",{className:"text-semantic_text_secondary text-[14px] font-[326]",children:"/ per person"}):(0,i.jsx)("span",{className:"text-semantic_text_secondary text-[14px] font-[326]",children:"/night"})]}),(0,i.jsxs)("div",{className:"px-8 mobile:px-6 pb-4",children:[(0,i.jsx)("p",{className:"text-semantic_text_secondary text-[14px] font-[326] leading-[20px]",children:y.description}),(null==y?void 0:y.menu)&&(0,i.jsxs)("a",{target:"_blank",rel:"noopener noreferrer",href:t&&!/^https?:\/\/(www\.)?spacez\.co\/?$/i.test(t.trim())?t:"https://media.spacez.co/image/upload/v1765277675/party_menu_gwond5.pdf",className:"mt-1 flex items-center gap-1 text-[16px] leading-[22px] tracking-normal text-semantic_text_brand font-[634]",children:[(0,i.jsx)(d.A,{className:"mobile:w-[15px] mobile:h-3 "})," View menu"]})]})]})]}),(0,i.jsxs)("div",{className:"px-8 mobile:px-6 py-4 border-t border-semantic_border flex justify-between items-center",children:[(0,i.jsx)("span",{className:"text-semantic_text_secondary text-[14px] font-[326]",children:"Add to stay"}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsx)("button",{onClick:()=>N(-1),disabled:0===y.qty,className:"h-[30px] w-[30px] border rounded-[2px] flex justify-center items-center text-[14px] font-[634]\n ".concat(0===y.qty?"border-semantic_border bg-white text-semantic_text_disabled cursor-not-allowed":"border-semantic_border bg-white text-semantic_text"),children:"â"}),(0,i.jsx)("span",{className:"h-[30px] w-[40px] flex justify-center items-center text-[14px] font-[326] text-semantic_text",children:y.qty.toString().padStart(2,"0")}),(0,i.jsx)("button",{onClick:()=>N(1),disabled:y.qty>=w(y.id),className:"h-[30px] w-[30px] border rounded-[2px] flex justify-center items-center text-[14px] font-[634]\n ".concat(y.qty>=w(y.id)?"border-semantic_border bg-white text-semantic_text_disabled cursor-not-allowed":"border-semantic_surface_brown_prominent bg-semantic_surface_brown_prominent text-white"),children:"+"})]})]}),(0,i.jsx)("div",{className:"hidden mobile:block",style:{paddingBottom:"env(safe-area-inset-bottom, 0px)"}})]})})]})}),document.body)}}}]);
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.