PageSourceSearch

https://solsign.ai/assets/ContactPage-CbbRP4EX.js

js solsign.ai collected 2026-10-05 12:39:15 UTC 12,857 bytes, 2 lines download raw bytes

1import{r as e,t}from"./react-D21h8Gxw.js";import{a as n,i as r,l as i,r as a,s as o,t as s}from"./SiteHeader-TUBQ6AUk.js";import{_ as c,d as l,g as u,m as d,p as f,x as p}from"./index-DYNPH9gE.js";import{t as m}from"./map-pin-Cm7hqPo0.js";import{n as h}from"./site-sections-CcI3Cqgd.js";import{n as g,r as _,t as v}from"./spam-protection-Bp0j5ANT.js";import{a as y,f as b,p as x}from"./submission-DmOnFqaz.js";var S=a(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),C=e(t(),1),w=p();function T({company:e,consent:t,email:n,isEnergy:r,locale:i,message:a,phone:o,turnstileToken:s}){let c={};return b(n.trim())||(c.email=`Enter a valid email address.`),r&&!e.trim()&&(c.company=`Enter your company name.`),r&&!o.trim()?c.phone=`Enter your phone number.`:o.trim()&&!x(o,y(i))&&(c.phone=`Enter a valid phone number.`),a.trim()||(c.message=`Enter a message.`),t||(c.consent=`Confirm that you agree to the privacy policy.`),s.trim()||(c.turnstileToken=`Complete the spam protection check.`),c}function E({locale:e}){l();let t=o(e),a=t.nav,u=t.public.contact,[f]=(0,C.useState)(d),p=i().state?.from,h=f&&p===`landowners`;return(0,w.jsxs)(`div`,{className:`min-h-screen bg-paper font-body text-ink`,children:[(0,w.jsx)(s,{locale:e,nav:a}),(0,w.jsxs)(`main`,{"data-testid":`contact-page`,children:[(0,w.jsx)(`section`,{className:`mesh-bg pb-19 pt-12`,children:(0,w.jsxs)(`div`,{className:`wrap`,children:[(0,w.jsx)(`nav`,{"aria-label":`Breadcrumb`,className:`mb-[18px]`,children:(0,w.jsxs)(`ol`,{className:`flex items-center gap-2 font-mono text-xs text-steel`,children:[(0,w.jsx)(`li`,{children:(0,w.jsx)(c,{to:e===`en`?`/`:`/de`,className:`hover:text-ink`,children:a.home})}),(0,w.jsx)(`li`,{"aria-hidden":`true`,children:`/`}),(0,w.jsx)(`li`,{"aria-current":`page`,children:a.contact})]})}),(0,w.jsxs)(`div`,{className:`grid items-start gap-14 min-[921px]:grid-cols-[1.05fr_0.95fr]`,children:[(0,w.jsxs)(`div`,{className:`reveal`,children:[(0,w.jsx)(`span`,{className:`eyebrow mb-3.5`,children:u.eyebrow}),(0,w.jsx)(`h1`,{className:`heading-xl mb-4 max-w-[16ch]`,children:u.heading}),(0,w.jsx)(`p`,{className:`max-w-[46ch] text-[clamp(1rem,1.3vw,1.2rem)] text-ink-70`,children:u.body})]}),(0,w.jsxs)(`div`,{className:`reveal rounded-panel border border-line bg-white p-6 shadow-lift min-[561px]:p-7`,children:[(0,w.jsx)(`h2`,{className:`mb-5 font-mono text-[11px] uppercase tracking-[0.1em] text-steel`,children:a.get_in_touch}),(0,w.jsxs)(`ul`,{className:`grid gap-5`,children:[(0,w.jsx)(O,{icon:(0,w.jsx)(S,{"aria-hidden":`true`,size:18}),children:(0,w.jsx)(n,{address:`[email protected]`,className:`font-semibold text-teal-deep hover:underline`})}),(0,w.jsx)(O,{icon:(0,w.jsx)(m,{"aria-hidden":`true`,size:18}),children:(0,w.jsxs)(`address`,{className:`text-sm leading-[1.6] text-ink-70 not-italic`,children:[a.floor,(0,w.jsx)(`br`,{}),a.street,(0,w.jsx)(`br`,{}),a.city,`, `,a.country]})}),(0,w.jsx)(O,{icon:(0,w.jsx)(D,{}),children:(0,w.jsx)(`a`,{href:`https://www.linkedin.com/company/solsign/`,target:`_blank`,rel:`noopener noreferrer`,className:`font-semibold text-teal-deep hover:underline`,children:`LinkedIn`})})]})]})]})]})}),(0,w.jsx)(k,{hideHeading:!0,locale:e,refreshed:e===`en`,showParcel:h})]}),(0,w.jsx)(r,{locale:e})]})}function D(){return(0,w.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`h-[18px] w-[18px]`,children:(0,w.jsx)(`path`,{d:`M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z`})})}function O({children:e,icon:t}){return(0,w.jsxs)(`li`,{className:`flex items-start gap-3.5`,children:[(0,w.jsx)(`span`,{className:`mt-px flex h-9 w-9 flex-none items-center justify-center rounded-full bg-amber-pale text-amber-deep`,children:t}),(0,w.jsx)(`span`,{className:`min-w-0`,children:e})]})}function k({headingLevel:e=`h2`,hideHeading:t=!1,id:n,locale:r,refreshed:i=!1,showParcel:a=!1,variant:s=`general`}){let c=o(r),l=c.public.contact,d=e=>i?``:N(e),p=r===`en`?`/privacy`:`/de/privacy`,m=s===`energy`,h=e,g=f(`https://api.solsign.ai`),[_,v]=(0,C.useState)(``),[y,b]=(0,C.useState)(``),[x,S]=(0,C.useState)(``),[E,D]=(0,C.useState)(``),[O,k]=(0,C.useState)(``),[F,I]=(0,C.useState)(``),[R,z]=(0,C.useState)(!1),[B,V]=(0,C.useState)(``),[H,U]=(0,C.useState)(null),[W,G]=(0,C.useState)(`idle`),[K,q]=(0,C.useState)({});function J(e){q(t=>({...t,[e]:void 0})),W===`error`&&G(`idle`)}let Y=(0,C.useCallback)(e=>{V(e),e&&q(e=>e.turnstileToken?{...e,turnstileToken:void 0}:e)},[]);(0,C.useEffect)(()=>{new u(g).getFormToken().then(e=>U(e.token)).catch(()=>U(null))},[g]);async function X(e){if(e.preventDefault(),W===`submitting`)return;let t=T({company:x,consent:R,email:_,isEnergy:m,locale:r,message:O,phone:E,turnstileToken:B});if(q(t),!(Object.keys(t).length>0)){G(`submitting`);try{let e=new u(g),t=m?[`Company: ${x}`,``,O].join(`
2`):O;await e.submitContact({email:_,subject:m?l.form.energySubject:l.form.defaultSubject,message:t,parcel:m||!a?null:y||null,phone:E.trim()||null,locale:r,consent:R,turnstile_token:B,form_token:H,company_website:F}),G(`submitted`)}catch{G(`error`)}}}let Z=W===`submitted`;return(0,w.jsx)(`section`,{id:n,className:i?`border-t border-line bg-paper-2 py-19`:`relative w-full max-w-7xl mx-auto px-3 sm:px-4 md:px-8 lg:px-12 py-8 sm:py-12`,children:(0,w.jsx)(A,{refreshed:i,tag:c.nav.contact,children:(0,w.jsxs)(`div`,{className:i?void 0:`text-center max-w-3xl mx-auto`,children:[t?null:(0,w.jsx)(h,{className:i?`heading-lg mb-4`:`text-4xl sm:text-5xl font-bold bg-gradient-to-r from-[#007565] to-[#002b25] bg-clip-text text-transparent ${m?`mb-6`:`mb-12`}`,children:l.heading}),m?(0,w.jsx)(`p`,{className:i?`mb-9 max-w-[52ch] text-[15px] text-ink-70`:`text-lg font-light sm:text-xl text-black mb-12`,children:l.form.energySubtitle}):null,(0,w.jsxs)(`form`,{noValidate:!0,onSubmit:X,className:i?`grid gap-5 text-left`:`space-y-8`,children:[(0,w.jsx)(L,{refreshed:i,id:`email`,label:l.form.email,requirement:`required`,error:K.email,children:(0,w.jsx)(`input`,{"aria-describedby":K.email?`email-error`:void 0,"aria-invalid":!!K.email,type:`email`,id:`email`,name:`email`,value:_,onCh
2ange:e=>{v(e.currentTarget.value),J(`email`)},required:!0,placeholder:``,className:d(K.email)})}),m?(0,w.jsx)(L,{refreshed:i,id:`company`,label:l.form.company,requirement:`required`,error:K.company,children:(0,w.jsx)(`input`,{"aria-describedby":K.company?`company-error`:void 0,"aria-invalid":!!K.company,type:`text`,id:`company`,name:`company`,value:x,onChange:e=>{S(e.currentTarget.value),J(`company`)},required:!0,placeholder:l.placeholder.company,className:d(K.company)})}):a?(0,w.jsx)(L,{refreshed:i,id:`parcel`,label:l.form.parcel,requirement:`optional`,children:(0,w.jsx)(`input`,{type:`number`,id:`parcel`,name:`parcel`,value:y,onChange:e=>b(e.currentTarget.value),className:i?``:j})}):null,(0,w.jsx)(L,{refreshed:i,id:`phone`,label:l.form.phone,requirement:m?`required`:`optional`,error:K.phone,children:(0,w.jsx)(`input`,{"aria-describedby":K.phone?`phone-error`:void 0,"aria-invalid":!!K.phone,type:`tel`,id:`phone`,name:`phone`,autoComplete:`tel`,value:E,onChange:e=>{D(e.currentTarget.value),J(`phone`)},required:m,placeholder:l.placeholder.phone,maxLength:32,className:d(K.phone)})}),(0,w.jsx)(L,{refreshed:i,id:`message`,label:l.form.message,requirement:`required`,error:K.message,children:(0,w.jsx)(`textarea`,{"aria-describedby":K.message?`message-error`:void 0,"aria-invalid":!!K.message,id:`message`,name:`message`,value:O,onChange:e=>{k(e.currentTarget.value),J(`message`)},rows:6,required:!0,placeholder:l.placeholder.message,maxLength:5e3,className:d(K.message)})}),(0,w.jsxs)(`div`,{className:`grid gap-2 text-left`,children:[(0,w.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,w.jsx)(`input`,{"aria-describedby":K.consent?`consent-error`:void 0,"aria-invalid":!!K.consent,type:`checkbox`,id:`consent`,name:`consent`,checked:R,onChange:e=>{z(e.currentTarget.checked),J(`consent`)},required:!0,className:i?`mt-0.5 h-[18px] w-[18px] flex-none accent-amber-deep aria-[invalid=true]:outline aria-[invalid=true]:outline-2 aria-[invalid=true]:outline-coral-deep`:`mt-1 h-5 w-5 rounded border-gray-300 text-[#007565] focus:ring-0 aria-[invalid=true]:outline aria-[invalid=true]:outline-2 aria-[invalid=true]:outline-[#8f2b21]`}),(0,w.jsxs)(`label`,{htmlFor:`consent`,className:i?`text-[13.5px] leading-[1.5] text-ink-70`:`text-sm text-gray-700 my-auto text-left`,children:[l.form.privacy,` `,(0,w.jsx)(`a`,{href:p,className:i?`font-semibold text-teal-deep hover:underline`:`text-[#007565] hover:underline`,target:`_blank`,rel:`noopener noreferrer`,children:l.form.privacylink}),` `,(0,w.jsx)(`span`,{className:i?`text-ink-70`:`text-gray-600`,children:`(required)`})]})]}),K.consent?(0,w.jsx)(`p`,{id:`consent-error`,className:M,children:K.consent}):null]}),(0,w.jsx)(`input`,{type:`text`,name:`company_website`,tabIndex:-1,autoComplete:`off`,value:F,onChange:e=>I(e.currentTarget.value),"aria-hidden":`true`,className:`hidden`}),(0,w.jsx)(P,{locale:r,refreshed:i,siteKey:`0x4AAAAAADYDBs0E_4SokzF7`,onTokenChange:Y}),K.turnstileToken?(0,w.jsx)(`p`,{className:M,children:K.turnstileToken}):null,Z?(0,w.jsxs)(`div`,{className:i?`rounded-card bg-teal-pale px-5 py-4 text-[15px] font-semibold text-teal-deep`:`text-lg sm:text-xl font-bold text-[#007565]`,children:[l.thankyou,` 🎉`]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`button`,{type:`submit`,disabled:W===`submitting`,className:i?`btn btn-primary w-full justify-center min-[561px]:w-auto`:`text-white bg-[#007565] rounded-lg w-full sm:w-auto whitespace-nowrap px-8 py-4 text-base hover:bg-[#005c4f] transition-colors disabled:opacity-60 disabled:cursor-not-allowed`,children:W===`submitting`?r===`de`?`Wird gesendet...`:`Sending...`:l.form.submit}),W===`error`?(0,w.jsx)(`p`,{className:i?`mt-2 text-sm text-coral-deep`:`text-sm text-red-600 mt-2`,children:r===`de`?`Senden fehlgeschlagen. Bitte erneut versuchen.`:`Submission failed. Please try again.`}):null]})]})]})})})}function A({children:e,refreshed:t,tag:n}){return t?(0,w.jsx)(`div`,{className:`wrap max-w-[720px]`,children:(0,w.jsx)(h,{tag:n,children:e})}):(0,w.jsx)(`div`,{className:`bg-gradient-to-r from-[rgba(227,233,232,0.93)] to-[rgba(227,233,232,1)] rounded-xl p-8 sm:p-12`,children:e})}var j=`w-full p-3 text-sm sm:text-base text-gray-900 bg-white border border-gray-300 rounded-lg shadow-sm focus:ring-1 focus:ring-[#007565] focus:border-[#007565]`,M=`m-0 text-left text-sm leading-snug text-[#8f2b21]`;function N(e){return`${j} ${e?`border-[#8f2b21] ring-1 ring-[#8f2b21]/30`:``}`}function P({locale:e,onTokenChange:t,refreshed:n=!1,siteKey:r}){let i=(0,C.useRef)(null);return(0,C.useEffect)(()=>
2{if(!r){t(g());return}t(``);let e=r,n=!1,a;function o(){n||!i.current||!window.turnstile||(a=window.turnstile.render(i.current,{sitekey:e,callback:t,"error-callback":()=>t(``),"expired-callback":()=>t(``)}))}return F().then(o).catch(()=>t(``)),()=>{n=!0,a&&window.turnstile&&window.turnstile.remove(a)}},[t,r]),(0,w.jsxs)(`fieldset`,{className:n?`grid min-h-[54px] place-items-center rounded-[3px] border border-dashed border-line bg-paper font-semibold text-steel`:`grid min-h-[54px] place-items-center rounded-md border border-dashed border-[#226048]/30 bg-[#f8faf6] text-[#3a493e] font-bold`,"aria-label":`Cloudflare Turnstile`,children:[(0,w.jsx)(`div`,{className:`min-h-px`,id:_,ref:i}),r?null:(0,w.jsx)(`span`,{className:n?`text-xs text-ink-70`:`text-xs text-gray-500`,children:e===`de`?`Lokaler Spam-Schutz-Bypass`:`Local spam protection bypass`})]})}async function F(){let e=v();if(!document.querySelector(`script[src="${e}"]`)){let t=document.createElement(`script`);t.async=!0,t.src=e,document.head.append(t)}await I()}function I(e=1e4,t=50){return new Promise((n,r)=>{if(window.turnstile){n();return}let i=Date.now(),a=window.setInterval(()=>{window.turnstile?(window.clearInterval(a),n()):Date.now()-i>e&&(window.clearInterval(a),r(Error(`Turnstile script did not become ready in time`)))},t)})}function L({id:e,label:t,error:n,refreshed:r=!1,requirement:i,children:a}){return(0,w.jsxs)(`div`,{className:r?`field`:void 0,children:[(0,w.jsxs)(`label`,{htmlFor:e,className:r?void 0:`block text-left text-lg font-bold text-[#007565] mb-2`,children:[t,` `,i?(0,w.jsxs)(`span`,{className:r?`text-ink-70 [letter-spacing:0] [text-transform:none]`:`text-sm font-normal text-gray-600`,children:[`(`,i,`)`]}):null]}),a,n?(0,w.jsx)(`p`,{id:`${e}-error`,className:r?`mt-1.5 block text-sm leading-snug text-coral-deep`:`${M} mt-2`,children:n}):null]})}export{E as n,k as t};

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.