PageSourceSearch

https://www.mymediamatters.com/_next/static/chunks/9965-6724e26c53bcf36e.js

js mymediamatters.com collected 2026-10-08 08:15:33 UTC 7,937 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9965],{1847:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(2115);let n=function(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return a.filter((e,a,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===a).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let r=(0,s.forwardRef)((e,a)=>{let{color:t="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:c="",children:d,iconNode:m,...u}=e;return(0,s.createElement)("svg",{ref:a,...l,width:r,height:r,stroke:t,strokeWidth:i?24*Number(o)/Number(r):o,className:n("lucide",c),...u},[...m.map(e=>{let[a,t]=e;return(0,s.createElement)(a,t)}),...Array.isArray(d)?d:[d]])}),o=(e,a)=>{let t=(0,s.forwardRef)((t,l)=>{let{className:o,...i}=t;return(0,s.createElement)(r,{ref:l,iconNode:a,className:n("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),o),...i})});return t.displayName="".concat(e),t}},2529:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(1847).A)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},6132:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(1847).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},8085:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(1847).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"}]])},9965:(e,a,t)=>{t.d(a,{default:()=>c});var s=t(5155),n=t(2115),l=t(2529),r=t(6132),o=t(8085);let i=[{value:"Web Design & Branding",label:"Web Design & Branding"},{value:"SEO & Maintenance",label:"SEO & Maintenance"},{value:"Social Media",label:"Social Media"},{value:"AI-Managed Hosting",label:"AI-Managed Hosting"},{value:"AI Integration & Consulting",label:"AI Integration & Consulting"},{value:"Custom Software",label:"Custom Software"},{value:"Photography",label:"Photography"},{value:"General Inquiry",label:"General Inquiry"}];function c(){let{subjectLabel:e="I'm interested in",subjectPlaceholder:a="Select a service...",subjectOptions:t=i,messagePlaceholder:c="Tell us about your project or question..."}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
1,[d,m]=(0,n.useState)("idle"),[u,h]=(0,n.useState)(""),[x,p]=(0,n.useState)(!1),g=(0,n.useMemo)(()=>{let e=Math.floor(9*Math.random())+1,a=Math.floor(9*Math.random())+1;return{a:e,b:a,answer:e+a}},[]),[b,y]=(0,n.useState)({name:"",email:"",phone:"",subject:"",message:"",website_url:""}),j=e=>{y(a=>({...a,[e.target.name]:e.target.value}))},f=async e=>{if(e.preventDefault(),parseInt(u,10)!==g.answer)return void p(!0);p(!1),m("loading");let{website_url:a,...t}=b;try{var s,n;if(!(await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...t,website_url:a,form_name:"Contact Form",source_page:window.location.pathname,source_url:window.location.href})})).ok)throw Error("Submission failed");null==(s=(n=window).gtag)||s.call(n,"event","contact_form_submit",{source_url:window.location.href}),m("success"),y({name:"",email:"",phone:"",subject:"",message:"",website_url:""}),h("")}catch(e){m("error")}};if("success"===d)return(0,s.jsxs)("div",{className:"border border-stone-200 rounded-2xl p-10 text-center bg-stone-50",children:[(0,s.jsx)(l.A,{className:"w-10 h-10 text-ink mx-auto mb-4"}),(0,s.jsx)("h3",{className:"text-ink font-semibold text-xl mb-2",children:"Message Sent"}),(0,s.jsx)("p",{className:"text-stone-500 text-sm",children:"Thanks for reaching out. We'll be in touch within one business day."}),(0,s.jsx)("button",{onClick:()=>m("idle"),className:"mt-6 text-ink text-sm font-medium underline underline-offset-2 hover:text-stone-600 transition-colors",children:"Send another message"})]});let v="w-full bg-white border border-stone-200 focus:border-ink rounded-lg px-4 py-2.5 text-ink text-sm placeholder:text-stone-300 outline-none transition-colors",w="block text-xs font-medium text-stone-500 mb-1.5";return(0,s.jsxs)("form",{onSubmit:f,className:"flex flex-col gap-4",children:[(0,s.jsx)("div",{style:{display:"none"},"aria-hidden":"true",children:(0,s.jsx)("input",{name:"website_url",type:"text",autoComplete:"off",tabIndex:-1,value:b.website_url,onChange:j})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"name",className:w,children:["Name ",(0,s.jsx)("span",{className:"text-stone-400",children:"*"})]}),(0,s.jsx)("input",{id:"name",name:"name",type:"text",required:!0,value:b.name,onChange:j,placeholder:"Your name",className:v})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"email",className:w,children:["Email ",(0,s.jsx)("span",{className:"text-stone-400",children:"*"})]}),(0,s.jsx)("input",{id:"email",name:"email",type:"email",required:!0,value:b.email,onChange:j,placeholder:"[email protected]",className:v})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"phone",className:w,children:"Phone"}),(0,s.jsx)("input",{id:"phone",name:"phone",type:"tel",value:b.phone,onChange:j,placeholder:"(555) 000-0000",className:v})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"subject",className:w,children:e}),(0,s.jsxs)("select",{id:"subject",name:"subject",value:b.subject,onChange:j,className:"".concat(v," cursor-pointer"),children:[(0,s.jsx)("option",{value:"",children:a}),t.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"message",className:w,children:["Message ",(0,s.jsx)("span",{className:"text-stone-400",children:"*"})]}),(0,s.jsx)("textarea",{id:"message",name:"message",required:!0,rows:5,value:b.message,onChange:j,placeholder:c,className:"".concat(v," resize-none")})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"captcha",className:w,children:["Quick check: what is ",g.a," + ",g.b,"? ",(0,s.jsx)("span",{className:"text-stone-400",children:"*"})]}),(0,s.jsx)("input",{id:"captcha",type:"number",required:!0,inputMode:"numeric",value:u,onChange:e=>{h(e.target.value),p(!1)},placeholder:"Enter the answer",className:"".concat(v," max-w-[160px] ").concat(x?"border-red-400":"")}),x&&(0,s.jsx)("p",{className:"mt-1 text-xs text-red-500",children:"That doesn't look right — try again."})]}),"error"===d&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-red-600 text-sm bg-red-50 border border-red-200 rounded-lg px-4 py-3",children:[(0,s.jsx)(r.A,{className:"w-4 h-4 shrink-0"}
1),"Something went wrong. Please try again or call us at 580-789-6640."]}),(0,s.jsxs)("p",{className:"text-xs text-stone-500 leading-relaxed",children:["By submitting, you agree we may contact you by phone, text, or email about your inquiry. Message and data rates may apply. Reply STOP to opt out, HELP for help. See our"," ",(0,s.jsx)("a",{href:"/privacy-policy",className:"underline underline-offset-2 hover:text-ink transition-colors",children:"Privacy Policy"}),"."]}),(0,s.jsx)("button",{type:"submit",disabled:"loading"===d,className:"inline-flex items-center justify-center gap-2 bg-ink hover:bg-stone-700 disabled:opacity-60 disabled:cursor-not-allowed text-paper font-semibold text-sm px-8 py-3.5 rounded-full transition-colors mt-1",children:"loading"===d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Sending…"]}):(0,s.jsxs)(s.Fragment,{children:["Send Message ",(0,s.jsx)(o.A,{className:"w-4 h-4"})]})})]})}}}]);

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.