1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5939],{34387:(e,t,a)=>{a.d(t,{default:()=>n});var l=a(95155),s=a(12115),i=a(52619),r=a.n(i),c=a(15239);function n(e){let{categories:t,activeCategory:a="all"}=e,[i,n]=(0,s.useState)(!1),[x,d]=(0,s.useState)(!1);return(0,l.jsxs)("nav",{className:"sticky top-0 z-50 bg-white shadow-[0px_4px_16px_0px_rgba(0,0,0,0.08)] h-[72px] md:h-[96px] flex items-center px-4 md:px-16",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between w-full max-w-[1440px] mx-auto relative",children:[(0,l.jsx)(r(),{href:"/",className:"flex-shrink-0 md:relative absolute left-1/2 -translate-x-1/2 md:left-auto md:translate-x-0",children:(0,l.jsx)(c.default,{src:"/LUMA.png",alt:"LUMA Hotels",width:111,height:43,className:"h-[43px] w-[111px]"})}),(0,l.jsx)("button",{onClick:()=>d(!x),className:"md:hidden w-8 h-8 flex items-center justify-center ml-auto","aria-label":"Toggle menu",children:x?(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M1 1L19 19M19 1L1 19",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round"})}):(0,l.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,l.jsx)("span",{className:"block w-5 h-0.5 bg-black"}),(0,l.jsx)("span",{className:"block w-5 h-0.5 bg-black"}),(0,l.jsx)("span",{className:"block w-5 h-0.5 bg-black"})]})}),(0,l.jsx)("div",{className:"hidden md:flex items-center gap-8",children:(0,l.jsxs)("div",{className:"flex items-center gap-8",children:[t.map(e=>(0,l.jsxs)(r(),{href:"all"===e.slug?"/blog":"/blog/category/".concat(e.slug),className:"group flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"font-extrabold text-[12px] tracking-[1.2px] uppercase text-black ".concat(a===e.slug?"opacity-100":"opacity-70 hover:opacity-100"),children:e.name}),(0,l.jsx)("div",{className:"h-[2px] bg-black transition-all duration-200 ".concat(a===e.slug?"w-full":"w-0 group-hover:w-full")})]},e.id)),(0,l.jsx)("span",{className:"bg-black w-[1px] h-full",children:"\xa0"}),(0,l.jsxs)(r(),{href:"/blog/archive",className:"group flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"font-extrabold text-[12px] tracking-[1.2px] uppercase text-black ".concat("archive"===a?"opacity-100":"opacity-70 hover:opacity-100"),children:"Archive"}),(0,l.jsx)("div",{className:"h-[2px] bg-black transition-all duration-200 ".concat("archive"===a?"w-full":"w-0 group-hover:w-full")})]})]})})]}),(0,l.jsx)("div",{className:"md:hidden absolute top-full left-0 right-0 h-[calc(100vh-72px)] bg-white transition-all duration-300 ".concat(x?"opacity-100 visible":"opacity-0 invisible"),children:(0,l.jsxs)("div",{className:"flex flex-col gap-[30px] items-center pt-16",children:[t.map(e=>(0,l.jsx)(r(),{href:"all"===e.slug?"/blog":"/blog/category/".concat(e.slug),className:"font-extrabold text-[18px] tracking-[.54px] uppercase text-black ".concat(a===e.slug?"border-b border-black":""),onClick:()=>d(!1),children:e.name},e.id)),(0,l.jsx)(r(),{href:"/blog/archive",className:"font-extrabold text-[18px] tracking-[.54px] uppercase text-black ".concat("archive"===a?"border-b border-black":""),onClick:()=>d(!1),children:"Archive"})]})})]})}},49585:(e,t,a)=>{a.d(t,{default:()=>p});var l=a(95155),s=a(12115),i=a(22544),r=a(66942),c=a(72377),n=a(20063),x=a(15239),d=a(52619),o=a.n(d);function p(e){var t;let{formData:a=[],onSubmit:d}=e,p=(0,n.useRouter)(),[m,h]=(0,s.useState)(null),[u,g]=(0,s.useState)(!0),[f,b]=(0,s.useState)(!1),[v,j]=(0,s.useState)(null),[N,w]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=a.filter(e=>e.title.toLowerCase().includes("email signup")||e.title.toLowerCase().includes("email signups")),t=e.find(e=>null===e.property_id);!t&&e.length>0&&(t=e[0]),h(t||null),g(!1)},[a]);let{register:y,handleSubmit:k,formState:{errors:L},reset:S}=(0,i.mN)({resolver:m?(0,r.u)((e=>{let t={};return e.structure.forEach(e=>{e.groups.forEach(e=>{e.fields.forEach(e=>{var a,l,s;let i;"submit"!==e.attributes.type&&(i=(null==(a=e.validators.email)?void 0:a.enabled)?(null==(l=e.validators.required)?void 0:l.enabled)?c.Yj().email("Please enter a valid email address").min(1,"".concat(e.data.label," is required")):c.Yj().email("Please enter a valid email address").optional():(null==(s=e.validators.required)?void 0:s.enabled)?c.Yj().min(1,"".concat(e.data.label," is required")):c.Yj().optional(),t[e.attributes.name]=i)})})}),c.Ik(t)})(m)):void 0}),E=async e=>{if(m){b(!0),j(null);try{let t={payload:{fieldsets:m.structure.map(t=>({title:t.title,fields:t.groups.flatMap(t=>t.fields.filter(e=>"submit"!==e.attributes.type).map(t=>({name:t.attributes.name,label:t.data.label,value:e[t.attributes.name]||""})))}))},form_id:m.id,property_id:m.property_id};if(d){let e=await d(t);if(e.success){w(!0),S(),p.push("/thank-you");return}throw Error(e.error||"Form submission failed")}w(!0),S()}catch(e){console.error("Error submitting form:",e),j(e instanceof Error?e.message:"An error occurred")}finally{b(!1)}}},_=(()=>
1{if(!m)return null;for(let e of m.structure)for(let t of e.groups)for(let e of t.fields)if("email"===e.attributes.type)return e;return null})();return(0,l.jsx)("footer",{className:"bg-[#151715] text-white",children:(0,l.jsxs)("div",{className:"max-w-[1440px] mx-auto px-4 md:px-16 py-10 md:py-14",children:[(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 md:gap-12",children:[(0,l.jsx)("div",{children:(0,l.jsx)(x.default,{src:"/footer-logo-white.svg",alt:"LUMA Hotels",width:111,height:43,className:"h-[36px] md:h-[43px] w-auto mb-6 md:mb-8"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-4 md:gap-5",children:[(0,l.jsx)("h3",{className:"font-extrabold text-[13px] md:text-[14px] leading-[24px] md:leading-[26px] tracking-[0.3px] uppercase",children:"Links"}),(0,l.jsxs)("nav",{className:"flex flex-col gap-1",children:[(0,l.jsx)(o(),{href:"/san-francisco",className:"text-[13px] md:text-[14px] leading-[24px] md:leading-[26px] tracking-[0.3px] hover:opacity-80 transition-opacity",children:"San Francisco"}),(0,l.jsx)(o(),{href:"/times-square",className:"text-[13px] md:text-[14px] leading-[24px] md:leading-[26px] tracking-[0.3px] hover:opacity-80 transition-opacity",children:"Times Square"}),(0,l.jsx)(o(),{href:"/contact-us",className:"text-[13px] md:text-[14px] leading-[24px] md:leading-[26px] tracking-[0.3px] hover:opacity-80 transition-opacity",children:"Contact"}),(0,l.jsx)(o(),{href:"/privacy-policy",className:"text-[13px] md:text-[14px] leading-[24px] md:leading-[26px] tracking-[0.3px] hover:opacity-80 transition-opacity",children:"Privacy Policy"}),(0,l.jsx)(o(),{href:"/sitemap",className:"text-[13px] md:text-[14px] leading-[24px] md:leading-[26px] tracking-[0.3px] hover:opacity-80 transition-opacity",children:"Sitemap"})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-4 md:gap-5",children:[(0,l.jsx)("h3",{className:"font-extrabold text-[13px] md:text-[14px] leading-[24px] md:leading-[26px] tracking-[0.3px] uppercase",children:"Contact"}),(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("a",{href:"mailto:[email protected]",className:"text-[13px] md:text-[14px] leading-[24px] md:leading-[26px] tracking-[0.3px] hover:opacity-80 transition-opacity",children:"[email protected]"}),(0,l.jsx)("a",{href:"tel:1-415-266-9999",className:"text-[13px] md:text-[14px] leading-[24px] md:leading-[26px] tracking-[0.3px] hover:opacity-80 transition-opacity",children:"1-415-266-9999"})]})]}),(0,l.jsx)("div",{className:"flex flex-col gap-6 md:gap-8",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4 md:gap-5",children:[(0,l.jsx)("h3",{className:"font-extrabold text-[13px] md:text-[14px] leading-[24px] md:leading-[26px] tracking-[0.3px] uppercase",children:"Subscribe for updates"}),(0,l.jsxs)("form",{onSubmit:k(E),className:"flex flex-col gap-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between pb-2 border-b border-white/50",children:[u?(0,l.jsx)("span",{className:"text-[13px] md:text-[14px] text-white/70",children:"Loading..."}):m&&_?(0,l.jsx)("input",{...y(_.attributes.name),type:"email",placeholder:_.data.placeholder||_.data.label||"Email",disabled:f,className:"bg-transparent text-[13px] md:text-[14px] leading-[22px] md:leading-[24px] tracking-[0.56px] text-white placeholder-white/70 outline-none flex-1 disabled:opacity-50"}):(0,l.jsx)("input",{type:"email",placeholder:"Email",className:"bg-transparent text-[13px] md:text-[14px] leading-[22px] md:leading-[24px] tracking-[0.56px] text-white placeholder-white/70 outline-none flex-1"}),(0,l.jsx)("button",{type:"submit","aria-label":"Subscribe",disabled:f||u,className:"disabled:opacity-50",children:f?(0,l.jsx)("span",{className:"text-white text-[14px]",children:"..."}):(0,l.jsx)("svg",{width:"20",height:"10",viewBox:"0 0 24 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-[20px] md:w-[24px]",children:(0,l.jsx)("path",{d:"M18 1L23 6M23 6L18 11M23 6H1",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),v&&(0,l.jsx)("p",{className:"text-red-400 text-[12px]",children:v}),N&&!v&&(0,l.jsx)("p",{className:"text-green-400 text-[12px]",children:"Subscribed successfully!"}),_&&L[_.attributes.name]&&(0,l.jsx)("p",{className:"text-red-400 text-[12px]",children:null==(t=L[_.attributes.name])?void 0:t.message})]})]})})]}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4 mt-10 md:mt-20 pt-6 border-t border-white/10",children:[(0,l.jsx)("p",{className:"text-[12px] md:text-[14px] leading-[18px] md:leading-[20px] tracking-[0.42px] text-white/50 text-center md:text-left",children:"\xa9 LUMA HOTELS 2026"}),(0,l.jsxs)("div",{className:"flex items-center gap-6 md:gap-8 text-[12px] md:text-[14px] leading-[18px] md:leading-[20px] tracking-[0.42px] text-white/50",children:[(0,l.jsx)(o(),{href:"/privacy-policy",className:"hover:text-white transition-colors",children:"Privacy Policy"}),(0,l.jsx)(o(),{href:"/terms-conditions",className:"hover:text-white transition-colors",children:"Terms & Conditions"})]})]})]})})}}}]);
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.