PageSourceSearch

https://hejsenior-se.pages.dev/assets/Kundeservice-5JML1am4.js

js hejsenior-se.pages.dev collected 2026-10-03 05:12:27 UTC 6,201 bytes, 1 lines download raw bytes

1import{r as n,k as g,j as e}from"./index-BR09kpgA.js";import{t as o}from"./trackQuizEvent-BWZcU9l9.js";import{S as h}from"./SEOHead-hKIP84hs.js";import{S as j,a as b}from"./SiteFooter-BEYNB4vY.js";import{S as k}from"./SeasonalHero-Dt3Ump_v.js";import{s as v}from"./client-1Eb_KJrN.js";import{M as N}from"./mail-DoHIeZaV.js";import{C as y}from"./clock-C3c6Z4Bj.js";import{P as S}from"./phone-DTVYSjA4.js";import"./StarSplash-BhJJ1WrW.js";import"./useDealStats-C8ElCLWH.js";import"./categoryMapping-BtYy9jtP.js";const q=()=>{const[t,s]=n.useState({namn:"",email:"",amne:"Allmän förfrÃ¥gan",meddelande:""}),[c,d]=n.useState(!1),[l,i]=n.useState(!1),{toast:m}=g(),[u,x]=n.useState(!1),p=()=>{u||(x(!0),o("kundtjanst","form_start",{funnel:"support",funnelStep:"form",placement:"kundtjanst-form"}))},f=async r=>{r.preventDefault(),i(!0),o("kundtjanst","step_submit",{funnel:"support",funnelStep:"form",placement:"kundtjanst-form"});try{const{error:a}=await v.functions.invoke("contact-form",{body:{name:t.namn,email:t.email,subject:t.amne,message:t.meddelande,country:"SE"}});if(a)throw a;o("kundtjanst","funnel_success",{funnel:"support",funnelStep:"form",placement:"kundtjanst-form",leadStatus:"stored"}),d(!0),s({namn:"",email:"",amne:"Allmän förfrÃ¥gan",meddelande:""})}catch(a){console.error("Contact form error:",a),o("kundtjanst","funnel_error",{funnel:"support",funnelStep:"form",placement:"kundtjanst-form",errorType:"contact_form_failed"}),m({title:"NÃ¥got gick fel",description:"Försök igen senare, eller skriv direkt till [email protected]",variant:"destructive"})}finally{i(!1)}};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(h,{title:"Kundtjänst – kontakta Hej Senior",description:"Har du frÃ¥gor? Kontakta Hej Seniors kundtjänst. Vi svarar inom 24 timmar pÃ¥ vardagar.",canonical:"/kundtjanst"}),e.jsx(j,{}),e.jsxs("main",{children:[e.jsx(k,{heading:"KUNDTJÄNST",showCta:!1}),e.jsx("section",{className:"py-12 md:py-16 px-4",children:e.jsxs("div",{className:"max-w-4xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-8",children:[c?e.jsxs("div",{className:"flex flex-col items-center justify-center text-center py-12 space-y-4",children:[e.jsx("p",{className:"text-5xl",children:"✅"}),e.jsx("h2",{className:"text-xl font-bold",children:"Tack för ditt meddelande!"}),e.jsx("p",{className:"text-muted-foreground",children:"Vi Ã¥terkommer inom 24 timmar pÃ¥ vardagar."}),e.jsx("button",{onClick:()=>d(!1),className:"mt-4 px-6 py-3 border-2 border-border rounded-lg text-sm font-medium hover:bg-muted transition-colors min-h-[44px]",children:"Skicka ett nytt meddelande"})]}):e.jsxs("form",{onSubmit:f,onFocus:p,className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"flex items-center gap-2 text-sm font-bold text-foreground mb-2 uppercase tracking-wide",children:"Namn"}),e.jsx("input",{type:"text",required:!0,maxLength:200,value:t.namn,onChange:r=>s({...t,namn:r.target.value}),className:"w-full h-14 px-4 rounded-lg border-2 border-input bg-card text-foreground text-base focus:outline-none focus:ring-2 focus:ring-secondary"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"flex items-center gap-2 text-sm font-bold text-foreground mb-2 uppercase tracking-wide",children:"E-post"}),e.jsx("input",{type:"email",required:!0,maxLength:255,value:t.email,onChange:r=>s({...t,email:r.target.value}),className:"w-full h-14 px-4 rounded-lg border-2 border-input bg-card text-foreground text-base focus:outline-none focus:ring-2 focus:ring-secondary"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"flex items-center gap-2 text-sm font-bold text-foreground mb-2 uppercase tracking-wide",children:"Ämne"}),e.jsxs("select",{value:t.amne,onChange:r=>s({...t,amne:r.target.value}),className:"w-full h-14 px-4 rounded-lg border-2 border-input bg-card text-foreground text-base focus:outline-none focus:ring-2 focus:ring-secondary",children:[e.jsx("option",{children:"Allmän förfrÃ¥gan"}),e.jsx("option",{children:"Tekniskt problem"}),e.jsx("option",{children:"Samarbete"}),e.jsx("option",{children:"Annat"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"flex items-center gap-2 text-sm font-bold text-foreground mb-2 uppercase tracking-wide",children:"Meddelande"}),e.jsx("textarea",{required:!0,rows:6,maxLength:5e3,value:t.meddelande,onCh
1ange:r=>s({...t,meddelande:r.target.value}),className:"w-full px-4 py-3 rounded-lg border-2 border-input bg-card text-foreground text-base resize-none focus:outline-none focus:ring-2 focus:ring-secondary"})]}),e.jsx("button",{type:"submit",disabled:l,className:"w-full font-display uppercase text-lg tracking-wide bg-cta text-white px-10 py-4 rounded hover:bg-cta-hover hover:scale-[1.02] transition-all duration-200 min-h-[56px] font-bold disabled:opacity-50",children:l?"SKICKAR...":"SKICKA MEDDELANDE →"})]}),e.jsxs("div",{className:"bg-card rounded-xl p-8 shadow-md h-fit border border-border",children:[e.jsx("h2",{className:"text-xl text-left mb-6",children:"Kontaktuppgifter"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(N,{className:"h-5 w-5 text-secondary mt-0.5 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase text-muted-foreground mb-1",children:"E-post"}),e.jsx("a",{href:"mailto:[email protected]",className:"text-secondary font-medium hover:underline",children:"Klicka här för att skicka e-post →"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(y,{className:"h-5 w-5 text-secondary mt-0.5 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase text-muted-foreground mb-1",children:"Svarstid"}),e.jsx("p",{className:"text-foreground font-medium",children:"Vi svarar inom 24 timmar"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(S,{className:"h-5 w-5 text-secondary mt-0.5 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase text-muted-foreground mb-1",children:"Öppettider"}),e.jsx("p",{className:"text-foreground font-medium",children:"MÃ¥ndag–Fredag 9–17"})]})]})]})]})]})})]}),e.jsx(b,{})]})};export{q 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.