PageSourceSearch

https://drdomenico.com/assets/entries/pages_reach-out.BjdbTnPk.js

js drdomenico.com collected 2026-10-05 06:04:47 UTC 9,751 bytes, 1 lines download raw bytes

1import{r as d,h as M,e as I,j as e,d as O,P as g,f as U,q as H,m as w,p as q,i as V,a as B,o as F}from"../chunks/chunk-RQAEqGgT.js";import{H as $}from"../chunks/chunk-CoLKIzL0.js";import{F as K}from"../chunks/chunk-wvYg7WIk.js";import"../chunks/chunk-DH5RMd9P.js";/* empty css                      */function Y(t){const r=d.useRef({value:t,previous:t});return d.useMemo(()=>(r.current.value!==t&&(r.current.previous=r.current.value,r.current.value=t),r.current.previous),[t])}var y="Switch",[G]=O(y),[W,J]=G(y),j=d.forwardRef((t,r)=>{const{__scopeSwitch:a,name:s,checked:o,defaultChecked:i,required:l,disabled:c,value:n="on",onCheckedChange:u,form:p,...h}=t,[f,z]=d.useState(null),L=M(r,x=>z(x)),v=d.useRef(!1),S=f?p||!!f.closest("form"):!0,[b=!1,D]=I({prop:o,defaultProp:i,onChange:u});return e.jsxs(W,{scope:a,checked:b,disabled:c,children:[e.jsx(g.button,{type:"button",role:"switch","aria-checked":b,"aria-required":l,"data-state":T(b),"data-disabled":c?"":void 0,disabled:c,value:n,...h,ref:L,onClick:U(t.onClick,x=>{D(_=>!_),S&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),S&&e.jsx(X,{control:f,bubbles:!v.current,name:s,value:n,checked:b,required:l,disabled:c,form:p,style:{transform:"translateX(-100%)"}})]})});j.displayName=y;var k="SwitchThumb",N=d.forwardRef((t,r)=>{const{__scopeSwitch:a,...s}=t,o=J(k,a);return e.jsx(g.span,{"data-state":T(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:r})});N.displayName=k;var X=t=>{const{control:r,checked:a,bubbles:s=!0,...o}=t,i=d.useRef(null),l=Y(a),c=H(r);return d.useEffect(()=>{const n=i.current,u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(l!==a&&h){const f=new Event("click",{bubbles:s});h.call(n,a),n.dispatchEvent(f)}},[l,a,s]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...o,tabIndex:-1,ref:i,style:{...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function T(t){return t?"checked":"unchecked"}var E=j,Q=N;const C=d.forwardRef(({className:t,...r},a)=>e.jsx(E,{className:w("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...r,ref:a,children:e.jsx(Q,{className:w("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));C.displayName=E.displayName;var Z="Label",P=d.forwardRef((t,r)=>e.jsx(g.label,{...t,ref:r,onMouseDown:a=>{var o;a.target.closest("button, input, select, textarea")||((o=t.onMouseDown)==null||o.call(t,a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));P.displayName=Z;var A=P;const ee=q("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),R=d.forwardRef(({className:t,...r},a)=>e.jsx(A,{ref:a,className:w(ee(),t),...r}));R.displayName=A.displayName;const te=()=>e.jsx("div",{className:"max-w-2xl mx-auto",children:e.jsx("div",{className:"bg-pure-white p-8 border-4 border-pure-black shadow-brutal-lg text-center",children:e.jsxs("div",{className:"mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-electric-blue border-4 border-pure-black mx-auto mb-4 flex items-center justify-center",children:e.jsx("svg",{className:"w-8 h-8 text-pure-white",fill:"currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}),e.jsx("h3",{className:"font-space font-bold text-3xl text-pure-black mb-4",children:"Thank you for reaching out!"}),e.jsx("p",{className:"font-space font-medium text-xl text-pure-black",children:"I look forward to connecting."})]})})}),ae=(t,r,a,s)=>{const o=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,i=/^\+?[0-9\s\-().]{7,}$/,l=t.value.trim(),c=r.value.trim(),n=a.value.trim(),u=s.value.trim();let p=!0;return l||(m(t,!1),p=!1),(!c||!o.test(c))&&(m(r,!1),p=!1),(!n||!i.test(n))&&(m(a,!1),p=!1),u||(m(s,!1),p=!1),p},m=(t,r)=>{const a="border-pure-black",s="border-hot-pink";r?(t.classList.remove(s),t.classList.add(a)):(t.classList.remove(a),t.classList.add(s))},re=()=>{const[t,r]=d.useState(!1),a=s=>{s.preventDefault();const o=document.querySelector('input[name="name"]'),i=document.querySelector('input[name="phone"]'),l=d
1ocument.querySelector('input[name="email"]'),c=document.querySelector('input[name="voicemail"]'),n=document.querySelector('textarea[name="message"]');!o||!i||!l||!c||!n||(o.addEventListener("input",()=>{m(o,!0)}),l.addEventListener("input",()=>{m(l,!0)}),i.addEventListener("input",()=>{m(i,!0)}),n.addEventListener("input",()=>{m(n,!0)}),ae(o,l,i,n)&&fetch("/message",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:o.value.trim(),email:l.value.trim(),phone:i.value.trim(),voicemail:c.checked,message:n.value})}).then(u=>{if(u.ok)r(!0),typeof window<"u"&&typeof window.gtag=="function"&&window.gtag("event","generate_lead",{form_id:"reach_out"});else throw new Error}).catch(u=>{console.error("Error submitting form:",u)}).finally(()=>{window.scrollTo({top:0,behavior:"smooth"})}))};return e.jsxs("div",{className:"font-space",children:[e.jsx($,{}),e.jsx("section",{className:"bg-hot-pink py-20 min-h-screen",children:t?e.jsx(te,{}):e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx("div",{className:"text-center mb-16",children:e.jsxs("h2",{className:"font-space font-bold text-4xl lg:text-6xl text-pure-white mb-6",children:["WANT TO TALK?",e.jsx("br",{}),e.jsx("span",{className:"bg-pure-white text-pure-black px-4 py-2 border-4 border-pure-black shadow-brutal-lg inline-block transform -rotate-1",children:"LET'S CONNECT"})]})}),e.jsx("div",{className:"max-w-2xl mx-auto",children:e.jsxs("div",{className:"bg-pure-white p-8 border-4 border-pure-black shadow-brutal-lg",children:[e.jsx("p",{className:"font-space font-medium text-xl text-pure-black mb-6",children:"If you would like to chat about working together, please fill out this form. I will respond within 2 business days."}),e.jsxs("form",{className:"space-y-6",noValidate:!0,onSubmit:a,children:[e.jsx("div",{children:e.jsx("input",{name:"name",type:"text",placeholder:"NAME",className:"w-full p-4 border-4 border-pure-black font-space font-medium text-lg focus:outline-none focus:shadow-brutal-blue transition-all duration-200"})}),e.jsx("div",{children:e.jsx("input",{name:"email",type:"email",placeholder:"EMAIL",className:"w-full p-4 border-4 border-pure-black font-space font-medium text-lg focus:outline-none focus:shadow-brutal-blue transition-all duration-200"})}),e.jsx("div",{children:e.jsx("input",{name:"phone",type:"tel",placeholder:"PHONE NUMBER",className:"w-full p-4 border-4 border-pure-black font-space font-medium text-lg focus:outline-none focus:shadow-brutal-blue transition-all duration-200"})}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(C,{id:"voicemail",name:"voicemail"}),e.jsx(R,{htmlFor:"voicemail",className:"font-space font-medium text-lg text-pure-black",children:"OKAY TO LEAVE A VOICEMAIL"})]}),e.jsx("div",{children:e.jsx("textarea",{name:"message",placeholder:"ANYTHING YOU'D LIKE TO SHARE?",rows:4,required:!0,className:"w-full p-4 border-4 border-pure-black font-space font-medium text-lg focus:outline-none focus:shadow-brutal-blue transition-all duration-200 resize-none"})}),e.jsx("button",{type:"submit",className:"w-full bg-electric-blue text-pure-white font-space font-bold text-xl py-4 border-4 border-pure-black shadow-brutal hover:shadow-brutal-lg transform hover:-translate-y-1 transition-all duration-200",children:"SEND MESSAGE"})]})]})})]})}),e.jsx(K,{})]})},oe=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"})),de={hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!1}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:F}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/reach-out/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:oe}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/+Layout.t
1sx",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:B}]},title:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+config.ts",fileExportPathToShowToUser:["default","title"]},valueSerialized:{type:"js-serialized",value:"Courtney Domenico, PsyD"}},Loading:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/Loading",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:V}}};export{de as configValuesSerialized};

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.