1import{d as A,s,k as F,v as T,q as I,w as P,b as f,o as b,f as t,H as n,g as E,K as M,m as x,A as U,I as l,z as _,ad as D,t as S,L as j,j as H}from"./CmM1QDzE.js";import{a as L,u as O}from"./CizS8yfw.js";import"./BM45Ncu5.js";const G={class:"section_contact"},z={class:"padding-global padding-section-large"},R={class:"container-small"},W={class:"text-align-center"},Y={class:"contact-component"},$={class:"contact-quick-actions",role:"group","aria-label":"Contact us directly"},J=["href"],K=["aria-expanded"],Q={class:"contact-form_2-col"},X=["disabled"],Z={key:0,class:"form-success"},ee={key:1,class:"form-error"},te=A({__name:"ContactSection",async setup(oe){let u,g;const{openBombieChat:C}=O();function N(){p("chat"),C()}const c=s(!1),m=s(null);async function k(){p("email"),c.value=!0,await j(),m.value?.scrollIntoView({behavior:"smooth",block:"start"}),m.value?.querySelector("select, input, textarea")?.focus({preventScroll:!0})}function p(i){h.trackGA4Event("contact_quick_action",{channel:i})}const q=F();T(()=>{q.query.openForm==="1"&&k()});const o=s({location:"",firstName:"",lastName:"",email:"",phone:"",confirmationNumber:"",message:"",website:""}),d=s(!1),v=s(!1),r=s(""),h=I();let y=!1;function w(){y||(y=!0,h.trackFormStart("contact_form"))}async function V(){d.value=!0,r.value="",v.value=!1;try{const i=await fetch("/api/public/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({location:o.value.location,firstName:o.value.firstName,lastName:o.value.lastName,email:o.value.email,phone:o.value.phone,confirmationNumber:o.value.confirmationNumber,message:o.value.message,website:o.value.website})});if(i.ok)v.value=!0,o.value={location:"",firstName:"",lastName:"",email:"",phone:"",confirmationNumber:"",message:"",website:""};else{const e=await i.json();r.value=e.message||"Something went wrong. Please try again."}}catch{r.value="Something went wrong. Please try again."}finally{d.value=!1}}const{smsHrefDigits:B}=([u,g]=P(()=>L()),u=await u,g(),u);return(i,e)=>(b(),f("section",G,[t("div",z,[t("div",R,[t("div",W,[t("div",Y,[e[15]||(e[15]=t("h1",null,"Contact us",-1)),e[16]||(e[16]=t("div",{class:"padding-top padding-small"},null,-1)),e[17]||(e[17]=t("div",null,"Got a question or something you feel like we need to know? Reach us via text/chat/email or using the form below. We'll get back to you ASAP!",-1)),t("div",$,[t("a",{href:`sms:${E(B)}`,class:"quick-action-btn is-pink",onClick:e[0]||(e[0]=a=>p("text"))},[...e[9]||(e[9]=[t("svg",{class:"quick-action-icon",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[t("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2"}),t("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"})],-1),t("span",null,"Text",-1)])],8,J),t("button",{type:"button",class:"quick-action-btn is-blue",onClick:N},[...e[10]||(e[10]=[t("svg",{class:"quick-action-icon",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[t("path",{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"})],-1),t("span",null,"Chat",-1)])]),t("button",{type:"button",class:"quick-action-btn is-green","aria-expanded":c.value?"true":"false","aria-controls":"contact-email-form",onClick:k},[...e[11]||(e[11]=[t("svg",{class:"quick-action-icon",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[t("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),t("polyline",{points:"22,6 12,13 2,6"})],-1),t("span",null,"Email",-1)])],8,K)]),e[18]||(e[18]=t("noscript",null,null,-1)),n(t("div",{id:"contact-email-form",ref_key:"emailFormEl",ref:m,class:"contact-form-block"},[t("form",{onSubmit:U(V,["prevent"]),class:"form"},[n(t("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>o.value.website=a),type:"text",name:"hp_7f3a",id:"hp_7f3a",tabindex:"-1",autocomplete:"off","aria-hidden":"true",readonly:"",class:"hp-field"},null,512),[[l,o.value.website]]),e[13]||(e[13]=t("label",{for:"contact-location",class:"sr-only"},"Select a location",-1)),n(t("select",{id:"contact-location","onUpdate:modelValue":e[2]||(e[2]=a=>o.value.location=a),required:"",class:"form_select",onFocus:w},[...e[12]||(e[12]=[_('<option value="" data-v-b149e1fa>Select a location *</option><option value="Atlanta" data-v-b149e1fa>Atlanta, GA</option><option value="Brooklyn" data-v-b149e1fa>Brooklyn, NY</option><option value="Charlotte" data-v-b149e1fa>Charlotte, NC</option><option value="Denver" data-v-b149e1fa>Denver, CO</option><option value="Houston" data-v-b149e1fa>Houston, TX</option><option value="Philly" data-v-b149e1fa>Philadelphia, PA</option><option value="DC" data-v-b149e1fa>Washington, DC</option><option value="Virtual" data-v-b149e1fa>Virtual</option>',9)])],544),[[D,o.value.location]]),t("div",Q,[n(t("input",{"onUpdate:modelValue":e[3]||(e[3]=a=>o.value.firstName=a),class:"contact-form_text-field",type:"text",placeholder:"First name *",required:"",onFocus:w},null,544),[[l,o.value.firstName]]),n(t("input",{"onUpdate:modelValue":e[4]||(e[4]=a=>
1o.value.lastName=a),class:"contact-form_text-field",type:"text",placeholder:"Last name *",required:""},null,512),[[l,o.value.lastName]]),n(t("input",{"onUpdate:modelValue":e[5]||(e[5]=a=>o.value.email=a),class:"contact-form_text-field",type:"email",placeholder:"Email *",required:""},null,512),[[l,o.value.email]]),n(t("input",{"onUpdate:modelValue":e[6]||(e[6]=a=>o.value.phone=a),class:"contact-form_text-field",type:"tel",placeholder:"Phone"},null,512),[[l,o.value.phone]]),n(t("input",{"onUpdate:modelValue":e[7]||(e[7]=a=>o.value.confirmationNumber=a),class:"contact-form_text-field full-width",type:"text",placeholder:"Booking Confirmation Number (if applicable)"},null,512),[[l,o.value.confirmationNumber]])]),n(t("textarea",{"onUpdate:modelValue":e[8]||(e[8]=a=>o.value.message=a),placeholder:"Your message *",required:"",class:"contact-form_text-area"},null,512),[[l,o.value.message]]),t("button",{type:"submit",class:"button is-form-submit",disabled:d.value},S(d.value?"Submitting...":"Submit"),9,X)],32),v.value?(b(),f("div",Z,[...e[14]||(e[14]=[t("div",null,"Thank you! Your submission has been received!",-1)])])):x("",!0),r.value?(b(),f("div",ee,[t("div",null,S(r.value),1)])):x("",!0)],512),[[M,c.value]]),e[19]||(e[19]=t("div",{class:"padding-top padding-large"},null,-1)),e[20]||(e[20]=t("h2",null,"PUBLIC RELATIONS",-1)),e[21]||(e[21]=t("div",{class:"padding-top padding-small"},null,-1)),e[22]||(e[22]=t("div",null,"For press inquiries, please contact",-1)),e[23]||(e[23]=t("a",{href:"mailto:[email protected]?subject=Press%20Inquiry",class:"email"},"[email protected]",-1))])])])])]))}}),ie=H(te,[["__scopeId","data-v-b149e1fa"]]);export{ie as default};
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.