PageSourceSearch

https://d124toastmasters.org/_next/static/chunks/bda444d769e961d6.js

js d124toastmasters.org collected 2026-10-05 05:42:16 UTC 8,377 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70065,e=>{"use strict";var t=e.i(57596),a=e.i(63096),s=e.i(47163);let r=a.forwardRef(({className:e,...a},r)=>(0,t.jsx)("div",{ref:r,className:(0,s.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...a}));r.displayName="Card";let i=a.forwardRef(({className:e,...a},r)=>(0,t.jsx)("div",{ref:r,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",e),...a}));i.displayName="CardHeader";let l=a.forwardRef(({className:e,...a},r)=>(0,t.jsx)("div",{ref:r,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",e),...a}));l.displayName="CardTitle";let o=a.forwardRef(({className:e,...a},r)=>(0,t.jsx)("div",{ref:r,className:(0,s.cn)("text-sm text-muted-foreground",e),...a}));o.displayName="CardDescription";let n=a.forwardRef(({className:e,...a},r)=>(0,t.jsx)("div",{ref:r,className:(0,s.cn)("p-6 pt-0",e),...a}));n.displayName="CardContent";let d=a.forwardRef(({className:e,...a},r)=>(0,t.jsx)("div",{ref:r,className:(0,s.cn)("flex items-center p-6 pt-0",e),...a}));d.displayName="CardFooter",e.s(["Card",()=>r,"CardContent",()=>n,"CardDescription",()=>o,"CardFooter",()=>d,"CardHeader",()=>i,"CardTitle",()=>l])},69139,e=>{"use strict";var t=e.i(57596),a=e.i(63096),s=e.i(67881),r=e.i(70065),i=e.i(23750),l=e.i(47163);let o=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("textarea",{className:(0,l.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:s,...a}));o.displayName="Textarea";var n=e.i(10641),d=e.i(20682);class c{constructor(e=0,t="Network Error"){this.status=e,this.text=t}}let m={origin:"https://api.emailjs.com",blockHeadless:!1,storageProvider:(()=>{if("undefined"!=typeof localStorage)return{get:e=>Promise.resolve(localStorage.getItem(e)),set:(e,t)=>Promise.resolve(localStorage.setItem(e,t)),remove:e=>Promise.resolve(localStorage.removeItem(e))}})()},u=e=>e?"string"==typeof e?{publicKey:e}:"[object Object]"===e.toString()?e:{}:{},h=async(e,t,a={})=>{let s=await fetch(m.origin+e,{method:"POST",headers:a,body:t}),r=await s.text(),i=new c(s.status,r);if(s.ok)return i;throw i},b=(e,t,a)=>{if(!e||"string"!=typeof e)throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!t||"string"!=typeof t)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!a||"string"!=typeof a)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates"},g=e=>e.webdriver||!e.languages||0===e.languages.length,f=()=>new c(451,"Unavailable For Headless Browser"),p=(e,t)=>{let a;if(!e.list?.length||!e.watchVariable)return!1;var s=e.list,r=e.watchVariable;if(!Array.isArray(s))throw"The BlockList list has to be an array";if("string"!=typeof r)throw"The BlockList watchVariable has to be a string";let i=(a=e.watchVariable,t instanceof FormData?t.get(a):t[a]);return"string"==typeof i&&e.list.includes(i)},x=()=>new c(403,"Forbidden"),j=async(e,t,a)=>{let s=Number(await a.get(e)||0);return t-Date.now()+s},w=async(e,t,a)=>{if(!t.throttle||!a)return!1;var s=t.throttle,r=t.id;if("number"!=typeof s||s<0)throw"The LimitRate throttle has to be a positive number";if(r&&"string"!=typeof r)throw"The LimitRate ID has to be a non-empty string";let i=t.id||e;return await j(i,t.throttle,a)>0||(await a.set(i,Date.now().toString()),!1)},v=()=>new c(429,"Too Many Requests"),y=async(e,t,a,s)=>{let r=u(s),i=r.publicKey||m.publicKey,l=r.blockHeadless||m.blockHeadless,o=r.storageProvider||m.storageProvider,n={...m.blockList,...r.blockList},d={...m.limitRate,...r.limitRate};if(l&&g(navigator))return Promise.reject(f());b(i,e,t);if(a&&"[object Object]"!==a.toString())throw"The template params have to be the object. Visit https://www.emailjs.com/docs/sdk/send/";return a&&p(n,a)?Promise.reject(x()):await w(location.pathname,d,o)?Promise.reject(v()):h("/api/v1.0/email/send",JSON.stringify({lib_version:"4.4.1",user_id:i,service_id:e,template_id:t,template_params:a}),{"Content-type":"application/json"})};function N(){let[e,l]=(0,a.useState)({name:"",email:"",subject:"",message:""}),[c,h]=(0,a.useState)(!1);(0,a.useEffect)(()=>{((e,t="https://api.emailjs.com")=>{if(!e)return;let a=u(e);m.publicKey=a.publicKey,m.blockHeadless=a.blockHeadless,m.storageProvider=a.storageProvider,m.blockList=a.blockList,m.limitRate=a.limitRate,m.origin=a.origin||t})("o37XA6LW2OfwEJhej")},[]);let b=e=>{let{name:t,value:a}=e.target;l(e=>({...e,[t]:a}))},g=async t=>{t.preventDefault(),h(!0);try{let t=await y("service_j0b276k","template_gmhia7r",{name:e.name,email:e.email,subject:e.subject,message:e.message||"No additional message provided",to_email:e.email,bcc_email:"[email protected]"});if(200===t.status)(0,d.toast)({title:"Request Submitted",description:"Thank y
1ou for contacting us"}),l({name:"",subject:"",email:"",message:""});else throw Error("Failed to send email")}catch(e){console.error("Error submitting form:",e),(0,d.toast)({title:"Submission Error",description:"There was a problem submitting your request. Please try again later.",variant:"destructive"})}finally{h(!1)}};return(0,t.jsx)("div",{className:"container mx-auto px-4 py-12",children:(0,t.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,t.jsxs)("div",{className:"text-center mb-12",children:[(0,t.jsx)("h1",{className:"text-4xl font-bold mb-4 text-[#004165] dark:text-white",children:"Contact Us"}),(0,t.jsx)("p",{className:"text-lg text-gray-600 dark:text-gray-300 max-w-2xl mx-auto",children:"Get in touch with District 124 Toastmasters. We're here to help you on your communication and leadership journey."})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[(0,t.jsxs)(r.Card,{className:"shadow-lg",children:[(0,t.jsxs)(r.CardHeader,{children:[(0,t.jsxs)(r.CardTitle,{className:"text-[#004165] dark:text-white flex items-center gap-2",children:[(0,t.jsx)(n.Send,{className:"h-5 w-5"}),"Send us a Message"]}),(0,t.jsx)(r.CardDescription,{children:"Fill out the form below and we'll get back to you as soon as possible."})]}),(0,t.jsx)(r.CardContent,{children:(0,t.jsxs)("form",{className:"space-y-6",onSubmit:g,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"name",className:"block text-sm font-medium mb-2",children:"Name"}),(0,t.jsx)(i.Input,{id:"name",name:"name",value:e.name,onChange:b,required:!0,placeholder:"Your name"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium mb-2",children:"Email Address"}),(0,t.jsx)(i.Input,{id:"email",name:"email",type:"email",value:e.email,onChange:b,required:!0,placeholder:"Your email address"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"subject",className:"block text-sm font-medium mb-2",children:"Subject"}),(0,t.jsx)(i.Input,{id:"subject",name:"subject",value:e.subject,onChange:b,required:!0,placeholder:"What is this regarding?"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"message",className:"block text-sm font-medium mb-2",children:"Message"}),(0,t.jsx)(o,{id:"message",name:"message",value:e.message,onChange:b,placeholder:"Tell us how we can help you...",rows:4})]}),(0,t.jsx)(s.Button,{type:"submit",className:"w-full bg-[#C1272D] hover:bg-[#A01E24] text-white",disabled:c,children:c?"Submitting...":(0,t.jsxs)(t.Fragment,{children:["Send Message ",(0,t.jsx)(n.Send,{className:"ml-2 h-4 w-4"})]})})]})})]}),(0,t.jsxs)(r.Card,{className:"shadow-lg",children:[(0,t.jsx)(r.CardHeader,{children:(0,t.jsx)(r.CardTitle,{className:"text-[#004165] dark:text-white",children:"Quick Links"})}),(0,t.jsx)(r.CardContent,{children:(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3",children:[{title:"Find a Club",href:"/find-a-club"},{title:"Become a Member",href:"/about-us/about-d124"},{title:"Our Leaders",href:"/about-us/our-leaders"},{title:"Educational Resources",href:"/resources/pqd"},{title:"Upcoming Events",href:"/events/calendar"}].map(e=>(0,t.jsx)(s.Button,{variant:"outline",className:"justify-start",asChild:!0,children:(0,t.jsx)("a",{href:e.href,children:e.title})},e.title))})})]})]})]})})}e.s(["default",()=>N],69139)}]);

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.