PageSourceSearch

https://janex-net.pl/assets/Contact-C_Zy6YsO.js

js janex-net.pl collected 2026-10-08 17:31:03 UTC 8,112 bytes, 1 lines download raw bytes

1import{j as e}from"./motion-ByrmHL-7.js";import{S as P,a4 as B,a6 as E,P as F,M as J,e as L,B as v,L as s,I as o,C as A,b as K,aa as M,s as k,c as T}from"./index-CBCj37G3.js";import{P as q}from"./PromoBar-CAU4QOWz.js";import{C as R,T as D,S as G}from"./textarea-_9rrzmrh.js";import{r as t}from"./react-vendor-Dye3IoJs.js";import{B as O}from"./building-2-CXTLKqCF.js";import{S as z}from"./send-BI062Imi.js";import"./ui-vendor-BR6OGFid.js";const l=(n,i)=>Math.floor(Math.random()*(i-n+1))+n,_=[{icon:F,label:"Infolinia",value:"506 684 890",href:"tel:+48506684890"},{icon:J,label:"E-mail",value:"[email protected]",href:"mailto:[email protected]"},{icon:L,label:"Adres",value:"Wola Wiązowa 108, 97-438 Rusiec",href:null},{icon:O,label:"NIP",value:"769-208-75-34",href:null},{icon:R,label:"Godziny pracy",value:"Pon-Pt: 8:00 – 17:00",href:null}],ee=()=>{const[n,i]=t.useState(!1),[d,m]=t.useState(!1),[x,S]=t.useState(()=>l(1,20)),[p,C]=t.useState(()=>l(1,20)),[h,u]=t.useState(""),[j,b]=t.useState(!1),[f,g]=t.useState(!1),[y,w]=t.useState(!1),W=t.useCallback(()=>{S(l(1,20)),C(l(1,20))},[]),I=async a=>{if(a.preventDefault(),!f){w(!0);return}if(parseInt(h)!==x+p){b(!0);return}const r=a.target,N={name:r.elements.namedItem("name").value.trim(),email:r.elements.namedItem("email").value.trim(),phone:r.elements.namedItem("phone").value.trim()||null,subject:r.elements.namedItem("subject").value.trim(),message:r.elements.namedItem("message").value.trim()};m(!0);try{const{error:c}=await k.from("contact_messages").insert(N);if(c)throw c;k.functions.invoke("send-contact-notification",{body:N}).catch(()=>{}),i(!0)}catch(c){console.error("Failed to submit contact form:",c),T.error("Wystąpił błąd podczas wysyłania wiadomości. Spróbuj ponownie.")}m(!1)};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{title:"Kontakt — biuro Janex-Net | infolinia 506 684 890",description:"Skontaktuj się z Janex-Net: infolinia 506 684 890, e-mail [email protected]. Biuro Wola Wiązowa 108, pon-pt 8:00–17:00.",path:"/kontakt",jsonLd:[{"@context":"https://schema.org","@type":"ContactPage",name:"Kontakt — Janex-Net",url:"https://janex-net.pl/kontakt"},{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Strona główna",item:"https://janex-net.pl/"},{"@type":"ListItem",position:2,name:"Kontakt",item:"https://janex-net.pl/kontakt"}]}]}),e.jsx(B,{}),e.jsx(q,{messages:[{emoji:"☎️",text:"Infolinia 506 684 890 — pon-pt 8:00–17:00"},{emoji:"✉️",text:"Napisz: [email protected] — odpowiadamy tego samego dnia"},{emoji:"📍",text:"Biuro: Wola Wiązowa 108, 97-438 Rusiec"}]}),e.jsx("section",{className:"pt-24 pb-12 sm:pt-28 sm:pb-16",children:e.jsxs("div",{className:"section-container",children:[e.jsx("h1",{className:"sr-only",children:"Kontakt — Janex-Net"}),e.jsx(E,{eyebrow:"Kontakt",title:"Skontaktuj się z nami — chętnie pomożemy!",description:"",className:"mb-10"}),e.jsxs("div",{className:"grid gap-8 lg:grid-cols-2",children:[e.jsxs("div",{className:"space-y-4",children:[_.map(a=>
1e.jsxs("div",{className:"flex items-start gap-4 rounded-[20px] border border-border bg-card p-5 transition-[border-color] duration-200 hover:border-accent/35",children:[e.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-accent/5 text-accent",children:e.jsx(a.icon,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:a.label}),a.href?e.jsx("a",{href:a.href,className:"text-base font-semibold text-foreground hover:text-accent",children:a.value}):e.jsx("p",{className:"text-base font-semibold text-foreground",children:a.value})]})]},a.label)),e.jsx("div",{className:"overflow-hidden rounded-[20px] border border-border",children:e.jsx("iframe",{title:"Lokalizacja Janex-Net",src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d625!2d18.9080787!3d51.3256611!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x471a71dda935d1d9%3A0xded4b216dda8afe8!2sJanex-Net!5e1!3m2!1spl!2spl!4v1700000000000",width:"100%",height:"240",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})]}),e.jsxs("div",{children:[e.jsx("h2",{className:"mb-4 text-lg font-bold text-foreground",children:"Napisz do nas"}),n?e.jsxs("div",{className:"flex flex-col items-center justify-center rounded-[24px] border border-accent/20 bg-accent/5 p-10 text-center",children:[e.jsx("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-full bg-accent/15",children:e.jsx(z,{className:"h-7 w-7 text-accent"})}),e.jsx("h3",{className:"text-xl font-bold text-foreground",children:"Wiadomość wysłana"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Odpowiemy najszybciej, jak to możliwe."}),e.jsx(v,{variant:"outline",onClick:()=>{i(!1),u(""),g(!1),W()},className:"mt-6",children:"Wyślij kolejną"})]}):e.jsxs("form",{onSubmit:I,className:"space-y-4 rounded-[24px] border border-border bg-card p-6",children:[e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{htmlFor:"name",children:"Imię i nazwisko"}),e.jsx(o,{id:"name",placeholder:"Jan Kowalski",required:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{htmlFor:"phone",children:"Telefon"}),e.jsx(o,{id:"phone",type:"tel",placeholder:"500 000 000"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{htmlFor:"email",children:"E-mail"}),e.jsx(o,{id:"email",type:"email",placeholder:"[email protected]",required:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{htmlFor:"subject",children:"Temat"}),e.jsx(o,{id:"subject",placeholder:"W czym możemy pomóc?",required:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{htmlFor:"message",children:"Wiadomość"}),e.jsx(D,{id:"message",placeholder:"Treść wiadomości...",rows:4,required:!0})]}),e.jsxs("div",{className:"space-y-2 rounded-[16px] border border-border bg-muted/40 p-4",children:[e.jsxs(s,{className:"flex items-center gap-2 text-sm font-medium text-foreground",children:[e.jsx(G,{className:"h-4 w-4 text-accent"}),"Weryfikacja — ochrona przed botami"]}),e.jsxs("p",{className:"text-sm font-medium text-foreground",children:["Ile to jest ",x," + ",p,"?"]}),e.jsx(o,{value:h,onChange:a=>{u(a.target.value),b(!1)},placeholder:"Wpisz wynik",className:j?"max-w-[150px] border-destructive":"max-w-[150px]",autoComplete:"off"}),j&&e.jsx("p",{className:"text-xs text-destructive",children:"Nieprawidłowa odpowiedź, spróbuj ponownie."})]}),e.jsxs("div",{className:"space-y-3 rounded-[16px] border border-border bg-muted/40 p-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(A,{id:"rodoConsent",checked:f,onCheckedChange:a=>{g(a),w(!1)},className:y?"border-destructive":""}),e.jsx(s,{htmlFor:"rodoConsent",className:"cursor-pointer text-sm leading-relaxed",children:"Wyrażam zgodę na przetwarzanie moich danych osobowych w celach otrzymywania odpowiedzi na zadawane pytania, w tym przesyłania ich drogą elektroniczną."})]}),y&&e.jsx("p",{className:"text-xs text-destructive",children:"Wymagana zgoda n
1a przetwarzanie danych."}),e.jsx("div",{className:"border-t border-border/50 pt-3",children:e.jsxs("p",{className:"text-xs leading-relaxed text-muted-foreground",children:[e.jsx("span",{className:"font-medium text-foreground",children:"Administrator danych osobowych:"})," ","Janex-Net Marek Jasiński, Wola Wiązowa 108, 97-438 Wola Wiązowa, NIP: 769-208-75-34. Szczegółowe informacje znajdziesz w naszej"," ",e.jsx("a",{href:"/polityka-prywatnosci",className:"text-accent hover:underline",children:"Polityce Prywatności"}),"."]})})]}),e.jsxs(v,{type:"submit",disabled:d,className:"h-12 w-full gap-2 rounded-xl bg-accent text-accent-foreground hover:bg-accent/90",children:[d?e.jsx(K,{className:"h-4 w-4 animate-spin"}):e.jsx(z,{className:"h-4 w-4"}),d?"Wysyłanie...":"Wyślij wiadomość"]})]})]})]})]})}),e.jsx(M,{})]})};export{ee 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.