1import{j as s}from"./jsx-runtime-D_zvdyIk.js";import{r as x}from"./chunk-JZWAC4HX-CWXBk4Fr.js";import{t}from"./index-eoqpUOz7.js";import{B as l}from"./button-DwvMrSl7.js";import{u as p,D as h,a as f,b as j,c as u,d as g}from"./section-layout-D_T60sp3.js";import{D as C,a as D,b as N,c as b,d as v}from"./dialog-CKQmONq-.js";import"./tabs-CGsfRUoC.js";import{M as c}from"./mail-Dw6n3-fX.js";import{C as w}from"./check-BDlDVl3g.js";import{C as y}from"./copy-DV_BI0A-.js";function A({open:a,onOpenChange:i,email:e="[email protected]"}){const n=p(),[m,r]=x.useState(!1),d=async()=>{try{await navigator.clipboard.writeText(e),r(!0),t.success("Email copied to clipboard"),setTimeout(()=>r(!1),2e3)}catch{t.error("Failed to copy email")}},o=s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center gap-3 p-4 rounded-lg border bg-muted/30",children:[s.jsx(c,{className:"size-5 text-muted-foreground shrink-0"}),s.jsx("span",{className:"text-lg font-medium flex-1 break-all",children:e})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx(l,{variant:"outline",onClick:d,className:"flex-1 gap-2",children:m?s.jsxs(s.Fragment,{children:[s.jsx(w,{className:"size-4"}),"Copied!"]}):s.jsxs(s.Fragment,{children:[s.jsx(y,{className:"size-4"}),"Copy Email"]})}),s.jsx(l,{asChild:!0,className:"flex-1 gap-2",children:s.jsxs("a",{href:`mailto:${e}`,children:[s.jsx(c,{className:"size-4"}),"Open Email App"]})})]})]});return n?s.jsx(h,{open:a,onOpenChange:i,children:s.jsxs(f,{children:[s.jsxs(j,{children:[s.jsx(u,{children:"Contact Us"}),s.jsx(g,{children:"Reach out to us via email for more information."})]}),s.jsx("div",{className:"px-4 pb-6",children:o})]})}):s.jsx(C,{open:a,onOpenChange:i,children:s.jsxs(D,{className:"sm:max-w-md",children:[s.jsxs(N,{children:[s.jsx(b,{children:"Contact Us"}),s.jsx(v,{children:"Reach out to us via email for more information."})]}),o]})})}export{A as C};
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.