1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7765],{489:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(8340).A)("Ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]])},2289:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(8340).A)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},2564:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(8340).A)("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},3894:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(8340).A)("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]])},4636:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(8340).A)("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]])},4832:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(8340).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},5118:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(8340).A)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},6663:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(8340).A)("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},7081:(e,a,t)=>{t.d(a,{c:()=>v});var r=t(5155),s=t(2115),l=t(5118),n=t(8340);let o=(0,n.A)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);var i=t(2289);let d=(0,n.A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);var c=t(6609),m=t(4474),h=t(9658),x=t(9540),u=t(9792),p=t(9984),g=t(5086),f=t(24),y=t(1337);function v({showPageHeader:e=!0,className:a}){let{t,locale:n}=(0,g.o)(),{settings:v}=(0,f.t0)(),[b,j]=(0,s.useState)(!1),[w,N]=(0,s.useState)(!1),[k,A]=(0,s.useState)({name:"",phone:"",email:"",message:""}),M="+971502257061",D=v.email?.en||"[email protected]",C=v.map_location_url?.en||"https://maps.app.goo.gl/tK4MCehfxzRCmZ837",S=v.map_embed_url?.en||"https://www.google.com/maps?q=%D8%AA%D9%82%D8%B3%D9%8A%D8%B7%20%D8%B3%D9%8A%D8%A7%D8%B1%D8%A7%D8%AA%20%D9%85%D8%A8%D8%A7%D8%B4%D8%B1%20SS%20Motors%20LLC&output=embed",z=async e=>{e.preventDefault();try{j(!0);let e=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(k)}),a=await e.json().catch(()=>({}));if(!e.ok)throw Error(a?.error||"تعذر Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§ÙØ©");N(!0),A({name:"",phone:"",email:"",message:""}),c.oR.success("ar"===n?"تÙ
Ø¥Ø±Ø³Ø§Ù Ø±Ø³Ø§ÙØªÙ Ø¨ÙØ¬Ø§Ø":"Your message has been sent successfully")}catch(e){console.error("Contact submit error:",e),c.oR.error("ar"===n?"تعذر Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§ÙØ© ØØ§ÙÙØ§Ù. ØªØ£ÙØ¯ Ù
٠إعدادات SMTP Ù
Ù ÙÙØØ© Ø§ÙØªØÙÙ
.":"Unable to send message right now. Please check SMTP settings from dashboard.")}finally{j(!1)}},_=[{icon:l.A,label:t.contact.phone,value:"0502257061",href:"tel:+971502257061"},{icon:o,label:"ar"===n?"ÙØ§ØªØ³Ø§Ø¨":"WhatsApp",value:M,href:`https://wa.me/${M.replace("+","")}`},{icon:i.A,label:t.contact.email,value:D,href:`mailto:${D}`}];return(0,r.jsx)("section",{className:(0,y.cn)("py-12 overflow-hidden",a),children:(0,r.jsxs)("div",{className:"container mx-auto px-4",children:[e&&(0,r.jsxs)("div",{className:"mb-12 text-center",children:[(0,r.jsx)("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-2xl bg-primary/10",children:(0,r.jsx)(o,{className:"h-8 w-8 text-primary"})}),(0,r.jsx)("h1",{className:"text-3xl font-bold text-foreground md:text-4xl",children:t.contact.title}),(0,r.jsx)("p",{className:"mx-auto mt-2 max-w-xl text-muted-foreground",children:"ar"===n?"ÙØÙ ÙÙØ§ ÙÙ
ساعدتÙ. ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ ÙØ³Ùرد عÙÙÙ Ù٠أÙ
1رب ÙÙØª.":"We are here to help. Contact us and we will get back to you as soon as possible."})]}),(0,r.jsx)("div",{className:"mx-auto max-w-5xl min-w-0 w-full",children:(0,r.jsxs)("div",{className:"grid gap-8 lg:grid-cols-[minmax(0,1fr)_minmax(0,340px)] xl:grid-cols-[minmax(0,1fr)_minmax(0,380px)]",children:[(0,r.jsx)(p.Zp,{className:"min-w-0",children:(0,r.jsx)(p.Wu,{className:"p-6",children:w?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,r.jsx)("div",{className:"mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-green-100",children:(0,r.jsx)(d,{className:"h-8 w-8 text-green-600"})}),(0,r.jsx)("h3",{className:"mb-2 text-xl font-semibold text-foreground",children:"ar"===n?"تÙ
Ø§ÙØ¥Ø±Ø³Ø§Ù Ø¨ÙØ¬Ø§Ø!":"Message Sent!"}),(0,r.jsx)("p",{className:"text-muted-foreground",children:"ar"===n?"Ø´ÙØ±Ø§Ù ÙØªÙاصÙÙ Ù
Ø¹ÙØ§. Ø³ÙØ±Ø¯ عÙÙÙ ÙØ±ÙباÙ.":"Thank you for contacting us. We will get back to you soon."}),(0,r.jsx)(m.$,{className:"mt-4",onClick:()=>N(!1),children:"ar"===n?"Ø¥Ø±Ø³Ø§Ù Ø±Ø³Ø§ÙØ© أخرÙ":"Send Another Message"})]}):(0,r.jsxs)("form",{onSubmit:z,className:"space-y-6",children:[(0,r.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(u.J,{htmlFor:"name",children:t.contact.name}),(0,r.jsx)(h.p,{id:"name",required:!0,value:k.name,onChange:e=>A(a=>({...a,name:e.target.value})),placeholder:"ar"===n?"اسÙ
٠اÙÙØ§Ù
Ù":"Your full name"})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(u.J,{htmlFor:"phone",children:t.contact.phone}),(0,r.jsx)(h.p,{id:"phone",type:"tel",required:!0,value:k.phone,onChange:e=>A(a=>({...a,phone:e.target.value})),placeholder:"05xxxxxxxx",dir:"ltr"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(u.J,{htmlFor:"email",children:t.contact.email}),(0,r.jsx)(h.p,{id:"email",type:"email",required:!0,value:k.email,onChange:e=>A(a=>({...a,email:e.target.value})),placeholder:"[email protected]",dir:"ltr"})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(u.J,{htmlFor:"message",children:t.contact.message}),(0,r.jsx)(x.T,{id:"message",required:!0,rows:5,value:k.message,onChange:e=>A(a=>({...a,message:e.target.value})),placeholder:"ar"===n?"Ø§ÙØªØ¨ Ø±Ø³Ø§ÙØªÙ ÙÙØ§...":"Write your message here..."})]}),(0,r.jsx)(m.$,{type:"submit",className:"w-full gap-2",size:"lg",disabled:b,children:b?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"}),"ar"===n?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù...":"Sending..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d,{className:"h-4 w-4"}),t.contact.send]})})]})})}),(0,r.jsxs)("div",{className:"space-y-4",children:[_.map((e,a)=>(0,r.jsx)(p.Zp,{children:(0,r.jsx)(p.Wu,{className:"p-4",children:(0,r.jsxs)("a",{href:e.href,className:"flex items-center gap-4",target:e.href.startsWith("http")?"_blank":void 0,rel:e.href.startsWith("http")?"noopener noreferrer":void 0,children:[(0,r.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-primary/10",children:(0,r.jsx)(e.icon,{className:"h-6 w-6 text-primary"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:e.label}),(0,r.jsx)("p",{className:"font-medium text-foreground",dir:e.href.startsWith("tel:")||e.href.includes("wa.me")?"ltr":void 0,children:e.value})]})]})})},a)),(0,r.jsx)(p.Zp,{className:"overflow-hidden",children:(0,r.jsxs)("div",{className:"relative aspect-[4/3] bg-muted",children:[(0,r.jsx)("iframe",{src:S,width:"100%",height:"100%",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Location"}),(0,r.jsx)("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"absolute bottom-3 start-3 rounded-md bg-primary px-3 py-2 text-xs font-medium text-primary-foreground",children:"ar"===n?"ÙØªØ ÙÙ Google Maps":"Open in Google Maps"})]})})]})]})})]})})}},8238:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(8340).A)("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},9486:(e,a,t)=>{t.d(a,{b:()=>o});var r=t(2115),s=t(5897),l=t(5155),n=r.forwardRef((e,a)=>(0,l.jsx)(s.sG.label,{...e,ref:a,onMouseDown:a=>{a.target.closest("button, input, select, textarea")||(e.onMouseDown?.(a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));n.displayName="Label";var o=n},9540:(e,a,t)=>{t.d(a,{T:()=>l});var r=t(5155);t(2115);var s=t(1337);function l({className:e,...a}){return(0,r.jsx)("textarea",{"data-slot":"textarea",className:(0,s.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...a})}},9792:(e,a,t)=>{t.d(a,{J:()=>n});var r=t(5155);t(2115);
1var s=t(9486),l=t(1337);function n({className:e,...a}){return(0,r.jsx)(s.b,{"data-slot":"label",className:(0,l.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...a})}},9857:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(8340).A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},9984:(e,a,t)=>{t.d(a,{BT:()=>i,Wu:()=>d,ZB:()=>o,Zp:()=>l,aR:()=>n});var r=t(5155);t(2115);var s=t(1337);function l({className:e,...a}){return(0,r.jsx)("div",{"data-slot":"card",className:(0,s.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...a})}function n({className:e,...a}){return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,s.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...a})}function o({className:e,...a}){return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,s.cn)("leading-none font-semibold",e),...a})}function i({className:e,...a}){return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,s.cn)("text-muted-foreground text-sm",e),...a})}function d({className:e,...a}){return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,s.cn)("px-6",e),...a})}}}]);
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.