PageSourceSearch

https://islamicdivinesystem.com/assets/ContactPage-BbQ4OZuB.js

js islamicdivinesystem.com collected 2026-10-09 21:48:18 UTC 9,827 bytes, 1 lines download raw bytes

1import{j as e,O as t,B as m,f as w,m as k,e as g,d as v}from"./index-Ca8Qthj3.js";import{L as h,b}from"./react-vendor-Coattl4B.js";import{P as S,S as u}from"./PageHead-BV4JoAsM.js";import{g as C,b as A,o as I}from"./schema-yPQl4twP.js";import{supabase as E}from"./supabase-B_M_3bCE.js";import{M as f,F as L}from"./message-circle-B52kSUsL.js";import{M as j}from"./mail-BhW5mNK9.js";import{U as _}from"./users-YE4bDSOt.js";import"./supabase-D56URzBO.js";const D=[{icon:f,title:"WhatsApp",detail:t.whatsappNumber,note:"The fastest way to reach us. Message us directly on WhatsApp.",href:t.whatsappUrl,cta:"Chat on WhatsApp",external:!0},{icon:j,title:"Email",detail:m,note:"For anything that needs a written record, or an attachment.",href:`mailto:${m}`,cta:"Send an email",external:!0},{icon:_,title:"Community",detail:"Questions & answers",note:"For questions about the Deen, the Qur’an, or the research, ask publicly in the community so everyone benefits.",href:"/community",cta:"Ask in the community",external:!1}];function F(){const[a,i]=b.useState({name:"",email:"",subject:"",message:""}),[s,r]=b.useState("idle"),[n,o]=b.useState(""),c=x=>l=>i(y=>({...y,[x]:l.target.value})),p=a.name.trim()&&a.message.trim()&&s!=="sending";async function N(x){if(x.preventDefault(),!!p){r("sending"),o("");try{const{error:l}=await E.from("contact_messages").insert({name:a.name.trim(),email:a.email.trim()||null,subject:a.subject.trim()||null,message:a.message.trim(),source_path:typeof window>"u"?null:window.location.pathname});if(l)throw l;r("sent"),i({name:"",email:"",subject:"",message:""})}catch(l){r("error"),o(l?.message||"The message could not be sent.")}}}if(s==="sent")return e.jsxs("div",{className:"border border-emerald-300 bg-emerald-50 p-6",children:[e.jsx("h2",{className:"text-lg font-bold text-emerald-900",children:"Message received"}),e.jsx("p",{className:"mt-2 text-[15px] leading-relaxed text-emerald-900/80",children:"It has been logged and will be read. If it is urgent, WhatsApp is faster."}),e.jsx("button",{type:"button",onClick:()=>r("idle"),className:"mt-4 text-sm font-semibold text-emerald-700 underline underline-offset-2",children:"Send another"})]});const d="w-full border border-gray-300 bg-white px-3.5 py-2.5 text-[15px] outline-none transition focus:border-emerald-500";return e.jsxs("form",{onSubmit:N,className:"border border-gray-200 bg-white p-6 shadow-sm",children:[e.jsx("h2",{className:"mb-1 text-xl font-bold text-gray-900",children:"Send a message"}),e.jsx("p",{className:"mb-5 text-sm text-gray-600",children:"Name and message are required. Leave an email only if you want a reply."}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"mb-1.5 block text-sm font-semibold text-gray-800",children:"Name"}),e.jsx("input",{type:"text",value:a.name,onChange:c("name"),required:!0,maxLength:120,autoComplete:"name",className:d})]}),e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-1.5 block text-sm font-semibold text-gray-800",children:["Email ",e.jsx("span",{className:"font-normal text-gray-500",children:"(optional)"})]}),e.jsx("input",{type:"email",value:a.email,onChange:c("email"),maxLength:254,autoComplete:"email",className:d})]})]}),e.jsxs("label",{className:"mt-4 block",children:[e.jsxs("span",{className:"mb-1.5 block text-sm font-semibold text-gray-800",children:["Subject ",e.jsx("span",{className:"font-normal text-gray-500",children:"(optional)"})]}),e.jsx("input",{type:"text",value:a.subject,onChange:c("subject"),maxLength:200,className:d})]}),e.jsxs("label",{className:"mt-4 block",children:[e.jsx("span",{className:"mb-1.5 block text-sm font-semibold text-gray-800",children:"Message"}),e.jsx("textarea",{value:a.message,onChange:c("message"),required:!0,rows:6,maxLength:5e3,className:`${d} resize-y`})]}),s==="error"&&e.jsxs("div",{className:"mt-4 border border-amber-300 bg-amber-50 p-4 text-sm leading-relaxed text-amber-900",children:[e.jsx("p",{className:"font-semibold",children:"The message could not be sent."}),e.jsxs("p",{className:"mt-1",children:["Please use"," ",e.jsx("a",{href:t.whatsappUrl,target:"_blank",rel:"noopener noreferrer",className:"font-semibold underline",children:"WhatsApp"})," ","or"," ",e.jsx("a",{href:`mailto:${m}`,className:"font-semibold underline",children:"email"}
1)," ","instead, so nothing is lost."]}),n&&e.jsx("p",{className:"mt-2 text-xs opacity-70",children:n})]}),e.jsx("button",{type:"submit",disabled:!p,className:"mt-5 inline-flex items-center gap-2 bg-emerald-700 px-6 py-2.5 text-sm font-bold text-white transition-colors hover:bg-emerald-800 disabled:cursor-not-allowed disabled:opacity-50",children:s==="sending"?"Sending…":"Send message"})]})}function B(){const a="/contact",i=C({"@type":"ContactPage","@id":`${u}${a}`,name:"Contact",url:`${u}${a}`,about:I()},A([{name:"Contact",path:a}]));return e.jsxs("div",{className:"min-h-screen bg-[#fafafa] font-sans",children:[e.jsx(S,{title:"Contact",description:`Reach Islamic Divine System (IDS) on WhatsApp (${t.whatsappNumber}), by email, through the community forum, or by leaving a message here.`,path:a,schema:i}),e.jsx("header",{className:"bg-emerald-950 px-6 pt-32 pb-14 text-white",children:e.jsxs("div",{className:"mx-auto max-w-4xl",children:[e.jsx("h1",{className:"text-4xl font-bold tracking-tight lg:text-5xl",children:"Contact"}),e.jsx("p",{className:"mt-4 max-w-2xl text-lg leading-relaxed text-emerald-50/90",children:"Questions, corrections, or collaboration around Islamic Divine System (IDS). Corrections are especially welcome: if something here is wrong, say so and it will be fixed."})]})}),e.jsxs("div",{className:"mx-auto max-w-4xl px-5 py-12",children:[e.jsx("div",{className:"grid gap-4 sm:grid-cols-3",children:D.map(s=>{const r=s.icon,n=e.jsxs(e.Fragment,{children:[e.jsx(r,{className:"h-6 w-6 text-emerald-600"}),e.jsx("h2",{className:"mt-3 font-bold text-gray-900",children:s.title}),e.jsx("p",{className:"mt-0.5 text-sm font-semibold break-words text-emerald-700",children:s.detail}),e.jsx("p",{className:"mt-2 text-sm leading-relaxed text-gray-600",children:s.note}),e.jsxs("span",{className:"mt-4 inline-block text-sm font-semibold text-emerald-700",children:[s.cta," →"]})]}),o="flex flex-col border border-gray-200 bg-white p-5 transition hover:border-emerald-400 hover:shadow-sm";return s.external?e.jsx("a",{href:s.href,target:"_blank",rel:"noopener noreferrer",className:o,children:n},s.title):e.jsx(h,{to:s.href,className:o,children:n},s.title)})}),e.jsx("div",{className:"mt-10",children:e.jsx(F,{})}),e.jsxs("section",{className:"mt-12",children:[e.jsx("h2",{className:"mb-2 text-xl font-bold text-gray-900",children:"Follow the work"}),e.jsx("p",{className:"mb-5 text-sm text-gray-600",children:"Every channel Islam
1ic Divine System (IDS) publishes on, and the founder’s own profiles."}),e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[w.map(s=>e.jsxs("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 border border-gray-200 bg-white px-4 py-3 transition hover:border-emerald-400 hover:shadow-sm",children:[e.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center bg-emerald-50 text-emerald-700",children:e.jsx(k,{name:s.key,className:"h-5 w-5"})}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-sm font-bold text-gray-900",children:s.label}),e.jsx("span",{className:"block truncate text-xs text-gray-500",children:s.url.replace(/^https?:\/\/(www\.)?/,"")})]})]},s.key)),e.jsxs("a",{href:`mailto:${m}`,className:"flex items-center gap-3 border border-gray-200 bg-white px-4 py-3 transition hover:border-emerald-400 hover:shadow-sm",children:[e.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center bg-emerald-50 text-emerald-700",children:e.jsx(j,{className:"h-5 w-5"})}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-sm font-bold text-gray-900",children:"Email"}),e.jsx("span",{className:"block truncate text-xs text-gray-500",children:m})]})]}),e.jsxs("a",{href:t.whatsappUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 border border-gray-200 bg-white px-4 py-3 transition hover:border-emerald-400 hover:shadow-sm",children:[e.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center bg-emerald-50 text-emerald-700",children:e.jsx(f,{className:"h-5 w-5"})}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-sm font-bold text-gray-900",children:"WhatsApp"}),e.jsx("span",{className:"block truncate text-xs text-gray-500",children:t.whatsappNumber})]})]}),e.jsxs("a",{href:t.facebook,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 border border-gray-200 bg-white px-4 py-3 transition hover:border-emerald-400 hover:shadow-sm",children:[e.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center bg-emerald-50 text-emerald-700",children:e.jsx(L,{className:"h-5 w-5"})}),e.jsxs("span",{className:"min-w-0",children:[e.jsxs("span",{className:"block text-sm font-bold text-gray-900",children:["Facebook, ",g.en]}),e.jsx("span",{className:"block truncate text-xs text-gray-500",children:"The founder’s own profile"})]})]})]})]}),e.jsx("div",{className:"mt-10 border border-emerald-200 bg-emerald-50/60 p-5",children:e.jsxs("p",{className:"text-sm text-gray-700",children:["The research and articles on this site are published by"," ",e.jsx(h,{to:v(),className:"font-semibold text-emerald-700 hover:text-emerald-900",children:g.en}),". More about the project on the"," ",e.jsx(h,{to:"/about",className:"font-semibold text-emerald-700 hover:text-emerald-900",children:"about page"}),"."]})})]})]})}export{B 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.