1import{r as P,j as e,P as M,S as q,C as d,O as v,h as i,i as l,k as n,l as c,b3 as F,b4 as T,b5 as I,b6 as w,L,n as H,m as U,b7 as R,s as k,d as B}from"./index-CI4XbE8D.js";import{u as D,t as G}from"./zod-BfZRU75x.js";import{P as J}from"./PageHero-BhtNLm0e.js";import{notifyInquiry as Y}from"./notifyInquiry-DG-KiM08.js";import{getVisitorContext as $}from"./visitorContext-hqJr67ez.js";import{t as z,f as V}from"./analytics-Dtf7LreY.js";import{o as W,_ as Q,s as x,l as C}from"./schemas-Cd0ObNz2.js";const K="/assets/contact-hero-bg-j3JCWk-j.jpg",A=U,X=A.map(R),Z=W({service:Q(["charter","management","medevac","jet_card","sales","general"]),name:x().trim().min(2).max(100),email:x().trim().email().max(255),phone:x().trim().max(40).optional().or(C("")),company:x().trim().max(120).optional().or(C("")),message:x().trim().min(10,"A short message helps us route you").max(2e3)});function ne(){var h,g,u,j,N,f;const[o,m]=P.useState(!1),{register:t,handleSubmit:E,reset:O,formState:{errors:a,isSubmitting:p}}=D({resolver:G(Z),defaultValues:{service:"general"}}),S=async s=>{await k.auth.getUser();const b=crypto.randomUUID(),_={id:b,service:s.service,name:s.name,email:s.email,phone:s.phone||null,company:s.company||null,message:s.message,submission_context:$()},{error:y}=await k.from("contact_inquiries").insert(_);if(y){B.error(y.message);return}Y({sourceTable:"contact_inquiries",sourceId:b}),m(!0),O({service:"general"}),z("contact",{service:s.service,...V({name:s.name,email:s.email,phone:s.phone,company:s.company,message:s.message})})};return e.jsxs(M,{children:[e.jsx(q,{title:`Contact ${d}`,description:"Speak with a senior trip manager. Charter, jet card, medevac, management and aircraft trading enquiries answered within the hour. Offices in Dubai, the USA, Bahrain and Jordan.",path:"/contact",jsonLd:[{"@context":"https://schema.org","@type":"ContactPage",name:`Contact ${d}`,url:"https://www.mega.aero/contact",about:{"@id":"https://www.mega.aero/#aviationbusiness"}},...X]}),e.jsx(J,{small:!0,eyebrow:"Contact",title:e.jsxs(e.Fragment,{children:[v," offices. ",e.jsx("span",{className:"italic-gold",children:"One number."})]}),intro:"Reach our charter desk, sales team or medical operations directly. Every enquiry is read by a senior manager, at any hour.",bgImage:K}),e.jsx("section",{className:"border-b border-line bg-bg-deep",children:e.jsxs("div",{className:"mx-auto max-w-7xl px-6 lg:px-10 py-16 grid grid-cols-1 md:grid-cols-3 bg-line gap-px",children:[e.jsxs("div",{className:"bg-bg-deep p-10",children:[e.jsx("p",{className:"eyebrow",children:"General Enquiries"}),e.jsx("a",{href:i,className:"block mt-6 font-display text-3xl text-text hover:text-gold transition-colors",children:l}),e.jsx("a",{href:n,className:"block mt-3 text-text-dim hover:text-gold transition-colors",children:c})]}),e.jsxs("div",{className:"bg-bg-deep p-10",children:[e.jsx("p",{className:"eyebrow",children:"Aircraft Management"}),e.jsx("a",{href:n,className:"block mt-6 font-display text-2xl text-text hover:text-gold transition-colors",children:c}),e.jsx("p",{className:"mt-3 text-text-dim text-sm",children:"Director-level enquiries."})]}),e.jsxs("div",{className:"bg-bg-deep p-10 border-l-2 border-danger",children:[e.jsxs("p",{className:"text-[11px] uppercase tracking-[0.3em] text-danger flex items-center gap-2",children:[e.jsxs("span",{className:"relative flex h-2 w-2",children:[e.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-danger opacity-60"}),e.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-danger"})]})," Medevac · 24/7"]}),e.jsx("a",{href:i,className:"block mt-6 font-display text-3xl text-text hover:text-gold transition-colors",children:l}),e.jsx("p",{className:"mt-3 text-text-dim text-sm",children:"Always staffed â medical operations answer at any hour."})]})]})}),e.jsx("section",{className:"py-32 bg-bg",children:e.jsxs("div",{className:"mx-auto max-w-7xl px-6 lg:px-10",children:[e.jsx("p",{className:"eyebrow",children:"Offices"}),e.jsxs("h2",{className:"display-2 mt-6 text-text mb-6",children:[v," offices, ",e.jsx("span",{className:"italic-gold",children:"one operator."})]}),e.jsxs("p",{className:"text-text-dim max-w-2xl mb-16",children:["Opening hours: ",F,". Every office reaches the same operations desk on the same number."]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 bg-line gap-px",children:A.map(s=>e.jsxs("div",{className:"bg-bg p-10 flex flex-col h-full",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsx("h3",{className:"font-display text-[22px] text-text",children:s.city}),s.isHq&&e.jsx("span",{className:"text-[10px] uppercase tracking-[0.2em] text-gold border border-gold px-2.5 py-1",children:"HQ"})]}),e.jsx("p",{className:"mt-1 text-[11px] uppercase tracking-[0.2em] text-text-mute",children:s.country}),s.role&&e.jsx("p",{className:"mt-1 text-[11px] uppercase tracking-[0.15em] text-text-mute",children:s.role}),e.jsx("p",{className:"mt-6 text-text-dim text-sm leading-relaxed",children:s.address}),e.jsxs("div",{className:"mt-4 flex flex-wrap gap-x-8 gap-y-2 text-sm",children:[e.jsx("a",{href:i,className:"text-text hover:text-gold transition-colors",children:l}),e.jsx("a",{href:n,className:"text-text hover:text-gold transition-colors",children:c})]}),e.jsx("p",{className:"mt-2 text-[11px] uppercase tracking-[0.15em] text-text-mute",children:"Open 24/7"}),e.jsxs("div",{className:"mt-auto pt-6",children:[e.jsx("div",{className:"border border-line",children:e.jsx("iframe",{src:T(s),title:`Map of ${d} ${s.city} office`,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block h-56 w-full grayscale-[0.4]"})}),e.jsx("a",{href:I(s),target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-block text-[11px] uppercase tracking-[0.2em] text-gold hover:opacity-80",children:"Get directions"})]})]},s.id))}),e.jsxs("div",{className:"mt-10 border-t border-line pt-10 flex flex-wrap gap-x-12 gap-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-text-mute",children:"General Enquiries"}),e.jsx("a",{href:i,className:"mt-2 block font-display text-xl text-text hover:text-gold transition-colors",children:l})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-text-mute",children:"Email"}),e.jsx("a",{href:n,className:"mt-2 block font-display text-xl text-text hover:text-gold transition-colors",children:c})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-text-mute",children:"Hours"}),e.jsx("p",{className:"mt-2 font-display text-xl text-text",children:"24 / 7 / 365"})]})]}),e.jsxs("div",{className:"mt-10 border-t border-line pt-10",children:[e.jsx("p",{className:"eyebrow",children:"UAE Operating Entity"}),e.jsx("h3",{className:"font-display text-[22px] text-text mt-4",children:w}),e.jsxs("dl",{className:"mt-6 grid grid-cols-1 sm:grid-cols-2 gap-x-12 gap-y-4 text-sm max-w-3xl",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"text-[11px] uppercase tracking-[0.2em] text-text-mute",children:"Office address"}),e.jsx("dd",{className:"mt-1 text-text-dim leading-relaxed",children:"MBRA Aerospace Hub, Supplier Complex, Building 1, 3rd Floor, Office 313, Dubai South, Dubai, UAE"})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-[11px] uppercase tracking-[0.2em] text-text-mute",children:"P.O. Box"}),e.jsx("dd",{className:"mt-1 text-text-dim",children:"390667"}),e.jsx("dt",{className:"mt-4 text-[11px] uppercase tracking-[0.2em] text-text-mute",children:"Country"}),e.jsx("dd",{className:"mt-1 text-text-dim",children:"United Arab Emirates"})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-[11px] uppercase tracking-[0.2em] text-text-mute",children:"Email"}),e.jsx("dd",{className:"mt-1",children:e.jsx("a",{href:n,className:"text-text hover:text-gold transition-colors",children:c})})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-[11px] uppercase tracking-[0.2em] text-text-mute",children:"Phone"}),e.jsx("dd",{className:"mt-1",children:e.jsx("a",{href:i,className:"text-text hover:text-gold transition-colors",children:l})})]})]}),e.jsxs("p",{className:"mt-6 text-xs text-text-mute max-w-3xl leading-relaxed",children:[w," owns, maintains and operates this website and is the merchant of record for all card payments processed through it. It acts as an Authorized Agent / Air Charter Broker and is not the operating air carrier."]}),e.jsxs("p",{className:"mt-4 text-sm text-text-dim max-w-3xl leading-relaxed",children:["Lease requirements can also start at the ",e.jsx(L,{to:"/aircraft-for-lease",className:"text-gold",children:"aircraft for lease"})," desk."]})]}),e.jsx("p",{className:"mt-10 text-xs text-text-mute",children:H()})]})}),e.jsx("section",{className:"py-32 bg-bg-deep border-t border-line",children:e.jsxs("div",{className:"mx-auto max-w-3xl px-6 lg:px-10",children:[e.jsx("p",{className:"eyebrow",children:"Send a message"}),e.jsxs("h2",{className:"display-2 mt-6 text-text",children:["Tell us how we
1can ",e.jsx("span",{className:"italic-gold",children:"help."})]}),o?e.jsxs("div",{className:"mt-12 border border-gold p-10",children:[e.jsx("p",{className:"text-gold uppercase tracking-[0.2em] text-[11px]",children:"Received"}),e.jsx("p",{className:"mt-3 font-display text-2xl text-text",children:"A senior manager will respond within the hour."})]}):e.jsxs("form",{onSubmit:E(S),className:"mt-12 space-y-5",children:[e.jsx(r,{label:"Service",error:(h=a.service)==null?void 0:h.message,children:e.jsxs("select",{className:"ma-input",...t("service"),children:[e.jsx("option",{value:"general",children:"General enquiry"}),e.jsx("option",{value:"charter",children:"Charter"}),e.jsx("option",{value:"management",children:"Aircraft management"}),e.jsx("option",{value:"medevac",children:"Medical evacuation"}),e.jsx("option",{value:"jet_card",children:"Jet Card"}),e.jsx("option",{value:"sales",children:"Sales / Acquisition / Leasing"})]})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(r,{label:"Name",error:(g=a.name)==null?void 0:g.message,children:e.jsx("input",{className:"ma-input",...t("name")})}),e.jsx(r,{label:"Email",error:(u=a.email)==null?void 0:u.message,children:e.jsx("input",{type:"email",className:"ma-input",...t("email")})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(r,{label:"Phone (optional)",error:(j=a.phone)==null?void 0:j.message,children:e.jsx("input",{className:"ma-input",...t("phone")})}),e.jsx(r,{label:"Company (optional)",error:(N=a.company)==null?void 0:N.message,children:e.jsx("input",{className:"ma-input",...t("company")})})]}),e.jsx(r,{label:"Message",error:(f=a.message)==null?void 0:f.message,children:e.jsx("textarea",{rows:5,className:"ma-input resize-none",...t("message")})}),e.jsx("button",{disabled:p,className:"btn-primary w-full disabled:opacity-50",children:p?"Sendingâ¦":"Send enquiry"})]})]})})]})}function r({label:o,error:m,children:t}){return e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"text-[10px] uppercase tracking-[0.25em] text-text-mute",children:o}),e.jsx("div",{className:"mt-2",children:t}),m&&e.jsx("p",{className:"mt-1 text-xs text-danger",children:m})]})}export{ne 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.