PageSourceSearch

https://www.harfagre.no/_next/static/chunks/269-b7bfbedaffddde50.js

js harfagre.no collected 2026-10-09 22:05:38 UTC 58,200 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[269],{9269:function(e,t,a){a.d(t,{HomePage:function(){return f},s:function(){return j}});var n=a(7437),r=a(166),s=a(2265),l=a(9335),i=a(5254);let o=(0,r.default)(()=>a.e(731).then(a.bind(a,2731)).then(e=>e.CoverageMap),{loadableGenerated:{webpack:()=>[2731]},ssr:!1,loading:()=>(0,n.jsx)("div",{className:"aspect-square w-full rounded-[22px] bg-[#E7E7E2]"})}),d=[{label:"1 klipp",price:"450 kr",icon:"01",text:"For deg som vil ha en enkel h\xe5rklipp hjemme.",cta:"Bestill 1 klipp"}],c="border-[#A9A9A9]/85",x="booking-surface-field";function m(e){let t=450*e,a=450+(e-1)*350,n=t-a;return{originalPrice:t,totalPrice:a,discount:n,discountPercent:Math.round(n/t*100)}}let p=[{quote:"Veldig forn\xf8yd med klipp og service",author:"Linda",score:5},{quote:"Bra konsept med heimeklipp. Enkelt \xe5 bestille og booke. Dette bruke i p\xe5 neste klipp ogs\xe5.",author:"Marius",score:6},{quote:"Knallbra med et slikt konsept i Molde. Og flinke fris\xf8rer!",author:"Camilla",score:6},{quote:"Bra klipp, lenge siden jeg har v\xe6rt s\xe5 forn\xf8yd.",author:"Anders",score:5},{quote:"Steike fin sveis jeg har f\xe5tt n\xe5. H\xe5rfagre is the best <3",author:"Sofie",score:6},{quote:"Rart ingen har tenkt p\xe5 hjemmeklipp f\xf8r. Super-genialt og proft.",author:"Kristian",score:6},{quote:"Tok like greit og bestilte klipp til hele fammen. Alle ble forn\xf8yd, utenom kona, men hun er aldri forn\xf8yd med noe.",author:"Knut",score:5},{quote:"Var p\xe5 bes\xf8k med en kompis, da bestilte vi h\xe5rklpp gjennom H\xe5rfagre f\xf8r vi drog p\xe5 byen. Smashing.",author:"Jonas",score:5},{quote:"Bestilte klipp f\xf8r sydentur. Slapp \xe5 dra til byen.",author:"Elise",score:5},{quote:"Klipte oss med H\xe5rfagre rett f\xf8r konfirmasjon. Genialt. Stress \xe5 dra til byen, slapp det gitt.",author:"Henrik",score:6},{quote:"Kom til avtalt tid og klipte meg bedre enn forventet.",author:"Lene",score:5},{quote:"Wow. Kul sveis. St\xe6kje forn\xf8yd.",author:"Ola",score:5}],u=[{name:"Karianne",experience:"7 \xe5r",score:5.9,text:"Klipper bedre enn mora di.",image:"https://images.unsplash.com/photo-1580489944761-15a19d654956?auto=format&fit=crop&w=640&q=80"},{name:"Per K\xe5re",experience:"3 \xe5r",score:5.7,text:"Veldig fotball interessert og er ogs\xe5 glad i fjellklatring.",image:"https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=640&q=80"},{name:"Gina",experience:"5 \xe5r",score:5.8,text:"Danser og jobber p\xe5 kaf\xe9.",image:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=640&q=80"},{name:"Harald",experience:"1 \xe5r",score:5.6,text:"Liker musikkfestivaler og jazzmusikk.",image:"https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?auto=format&fit=crop&w=640&q=80"}],h=[{question:"Hva er H\xe5rfagre?",answer:"H\xe5rfagre er en fris\xf8rtjeneste der fris\xf8ren kommer hjem til deg."},{question:"Hva slags tjenester tilbyr H\xe5rfagre?",answer:"H\xe5rfagre tilbyr enkel h\xe5rklipp hjemme. Ingen farging, striping, permanent eller kjemisk behandling. Kun klipp."},{question:"Tilbyr H\xe5rfagre vask, farge eller styling?",answer:"Nei. H\xe5rfagre tilbyr bare h\xe5rklipp."},{question:"Er prisen lik for alle?",answer:"Ja. \xc9n klipp har samme pris for barn og voksne kvinner og menn."},{question:"Hva koster \xe9n klipp?",answer:"\xc9n klipp koster 450 kr."},{question:"Hva koster flere klipp?",answer:"F\xf8rste klipp koster 450 kr. Hver ekstra klipp i samme bes\xf8k koster 350 kr. Dermed sparer du 100 kr pr ekstra klipp."},{question:"Hva er forskjellen p\xe5 vanlig salong og H\xe5rfagre?",kind:"comparison"},{question:"Hva m\xe5 jeg gj\xf8re f\xf8r fris\xf8ren kommer?",answer:"Sett frem en stol p\xe5 et sted med nok lys og plass til \xe5 klippe."},{question:"M\xe5 jeg rydde etterp\xe5?",answer:"Ja. H\xe5rfagre klipper. Du rydder selv etterp\xe5."},{question:"Hva hvis jeg ikke er forn\xf8yd?",answer:"H\xe5rfagre har forn\xf8ydgaranti. Hvis du ikke er forn\xf8yd, ordner vi opp."},{question:"Hvor holder H\xe5rfagre til?",answer:"H\xe5rfagre holder i Molde-
1omr\xe5det."},{question:"Hvordan vet jeg om dere kommer til min adresse?",answer:"Du skriver inn adressen i bestillingen, s\xe5 f\xe5r du vite om tjenesten er tilgjengelig p\xe5 den oppgitte adressen."},{question:"Hvordan betaler jeg?",answer:"Du betaler med kort eller Vipps n\xe5r du bestiller."},{question:"Kan jeg endre eller avbestille?",answer:"Ja. Informasjon om endring og avbestilling f\xe5r du i bestillingsbekreftelsen."},{question:"Kan jeg bli H\xe5rfagre-fris\xf8r?",answer:"Ja. H\xe5rfagre ser etter dyktige fris\xf8rer som vil jobbe fleksibelt med hjemmebes\xf8k."}],g=[["Du m\xe5 stresse og ordne deg f\xf8r bytur.","H\xe5rfagre-fris\xf8ren kommer hjem til deg."],["Du m\xe5 bruke mye tid p\xe5 \xe5 reise til og fra salongen.","Du sparer tid p\xe5 \xe5 v\xe6re hjemme."],["Du m\xe5 finne parkering og betale for den.","Spar drivstoff, bilen kan st\xe5 hjemme."],["Du m\xe5 sitte og vente p\xe5 timen.","Vi kommer til deg til avtalt tid."]];function b(e){let{score:t,className:a=""}=e;return(0,n.jsx)("div",{className:"flex items-center gap-1 ".concat(a),"aria-label":"".concat(t.toLocaleString("no-NO")," av 6 stjerner"),children:Array.from({length:6}).map((e,a)=>{let r=Math.max(0,Math.min(1,t-a));return(0,n.jsxs)("span",{className:"relative inline-block h-5 w-5 text-[20px] leading-none",children:[(0,n.jsx)("span",{className:"absolute inset-0 text-[#D1D5DB]",children:"★"}),(0,n.jsx)("span",{className:"absolute inset-0 overflow-hidden text-[#F2D323]",style:{width:"".concat(100*r,"%")},children:"★"})]},a)})})}function f(){let e=(0,s.useMemo)(()=>
1new Date().toISOString().slice(0,10),[]),[t,a]=(0,s.useState)(!1),[r,i]=(0,s.useState)(-1),[o,c]=(0,s.useState)(!1),[x,m]=(0,s.useState)(!1),[p,u]=(0,s.useState)("plan"),[g,b]=(0,s.useState)("adult"),[f,k]=(0,s.useState)("single"),[v,w]=(0,s.useState)("3"),[N,y]=(0,s.useState)("12:00"),[D,_]=(0,s.useState)(null),[F,C]=(0,s.useState)(null),[S,E]=(0,s.useState)([]),[A,H]=(0,s.useState)(""),[M,q]=(0,s.useState)(2),[B,T]=(0,s.useState)({address:"",date:e,children:"0",adults:"1",comment:""}),P=(0,s.useCallback)(()=>{window.dispatchEvent(new CustomEvent("harfagre:open-booking"))},[]),V=(0,s.useCallback)(()=>{let e=document.querySelector("#hero-booking-widget");null==e||e.scrollIntoView({behavior:"smooth",block:"center"}),e instanceof HTMLElement&&window.setTimeout(()=>e.focus({preventScroll:!0}),420)},[]),K=(0,s.useCallback)(()=>{if(window.matchMedia("(min-width: 1024px)").matches){V();return}P()},[V,P]),O=(0,s.useCallback)(()=>{var e;null===(e=document.querySelector("#frisorer"))||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})},[]);return(0,n.jsxs)("main",{children:[(0,n.jsx)("section",{className:"hero-sunrise relative -mt-[82px] min-h-[100svh] overflow-hidden px-0 pb-0 pt-[96px] md:pt-[106px] lg:mt-0 lg:pt-6",children:(0,n.jsxs)("div",{className:"relative mx-auto min-h-[calc(100svh-96px)] max-w-[1180px] overflow-visible px-4 pb-[188px] pt-5 text-center md:min-h-[calc(100svh-106px)] md:overflow-hidden md:px-8 md:pb-12 md:pt-12 lg:px-6 lg:pb-16 lg:pt-4",children:[(0,n.jsx)(et,{}),(0,n.jsx)("h1",{className:"sr-only",children:"H\xe5rfagre hjemmefris\xf8r"}),(0,n.jsx)("div",{className:"flex min-h-[calc(100svh-286px)] flex-col items-center justify-center md:min-h-[calc(100svh-170px)] md:gap-10 lg:hidden",children:(0,n.jsxs)("div",{className:"mx-auto flex max-w-4xl -translate-y-2 flex-col items-center md:translate-y-0",children:[(0,n.jsxs)("p",{className:"font-caveat mb-7 flex items-center gap-3 text-3xl font-bold leading-none text-[#12100E] md:mb-9 md:text-4xl",children:[(0,n.jsx)("span",{className:"h-px w-10 bg-[#12100E]"}),"Nyhet i Molde",(0,n.jsx)("span",{className:"h-px w-10 bg-[#12100E]"})]}),(0,n.jsx)("img",{src:"/images/harfagre-hero-title.svg?v=20260620",alt:"H\xe5rfagre hjemmefris\xf8r",draggable:!1,className:"no-drag mt-3 block h-auto w-full max-w-[318px] md:mt-6 md:max-w-[640px]",width:512,height:316}),(0,n.jsx)("p",{className:"mx-auto mt-4 max-w-xl text-xl font-normal leading-8 text-[#6A625A] md:mt-6 md:text-2xl",children:"Klipp ✂️ hjemme hos deg \uD83C\uDFE0\uD83D\uDC48 | Flinke fris\xf8rer \uD83D\uDC4C | Enkelt \xe5 bestille \uD83D\uDC4D"}),(0,n.jsxs)("div",{className:"mt-7 flex w-full max-w-[880px] flex-col items-center gap-3 md:mt-9 md:flex-row md:justify-center",children:[(0,n.jsx)("button",{type:"button",onClick:P,className:"mobile-standard-button page-cta-button inline-flex items-center justify-center rounded-full bg-[#0D0D0F] text-sm font-black text-[#FFF8EA] shadow-[0_14px_28px_rgba(13,13,15,0.18)] transition-[background-color,transform] duration-150 hover:-translate-y-px hover:bg-[#17120F] active:scale-[0.98] md:text-base",children:"Bestill p\xe5 1 min"}),(0,n.jsx)("button",{type:"button",onClick:O,className:"mobile-standard-button page-cta-button inline-flex items-center justify-center rounded-full bg-[#FFFDF8] text-sm font-black text-[#0D0D0F] shadow-[0_14px_28px_rgba(13,13,15,0.12)] transition-[background-color,transform] duration-150 hover:-translate-y-px hover:bg-white active:scale-[0.98] md:text-base",children:"Se v\xe5re fris\xf8rer"})]})]})}),(0,n.jsxs)("div",{className:"relative z-[1] hidden min-h-[calc(100svh-118px)] flex-col items-center justify-start pt-5 lg:flex",children:[(0,n.jsxs)("p",{className:"font-caveat mb-7 flex items-center gap-3 text-4xl font-bold leading-none text-[#12100E]",children:[(0,n.jsx)("span",{className:"h-px w-12 bg-[#12100E]"}),"Nyhet i Molde",(0,n.jsx)("span",{className:"h-px w-12 bg-[#12100E]"})]}),(0,n.jsxs)("div",{className:"grid w-full max-w-[1040px] grid-cols-[1.03fr_0.97fr] overflow-hidden rounded-[34px] border-[3px] border-[#6A625A]/78 bg-[#F7F2E8]/72 text-left shadow-[0_26px_70px_rgba(17,16,14,0.12)]",children:[(0,n.jsxs)("div",{className:"relative flex min-h-[430px] flex-col items-center justify-center px-8 py-10 text-center",children:[(0,n.jsx)("img",{src:"/images/harfagre-hero-title.svg?v=20260620",alt:"H\xe5rfagre hjemmefris\xf8r",draggable:!1,
1className:"no-drag block h-auto w-full max-w-[420px]",width:512,height:316}),(0,n.jsx)("p",{className:"mx-auto mt-6 max-w-md text-lg font-normal leading-7 text-[#6A625A]",children:"Klipp ✂️ hjemme hos deg \uD83C\uDFE0\uD83D\uDC48 | Flinke fris\xf8rer \uD83D\uDC4C | Enkelt \xe5 bestille \uD83D\uDC4D"}),(0,n.jsxs)("button",{type:"button",onClick:V,className:"font-caveat mt-5 inline-flex items-center gap-3 text-4xl font-bold leading-none text-[#12100E] transition hover:translate-x-1",children:["Bestill p\xe5 1 min",(0,n.jsx)("span",{"aria-hidden":"true",className:"text-3xl",children:"→"})]})]}),(0,n.jsx)("div",{className:"min-h-[430px] border-l-[3px] border-[#6A625A]/78",children:(0,n.jsx)(j,{planner:B,setPlanner:T,isOpen:!0,onClose:()=>void 0,onComplete:()=>void 0,embedded:!0})})]})]})]})}),(0,n.jsx)("section",{id:"slik-fungerer-det",className:"overflow-x-clip bg-[#DDE9EA] px-1 pt-10 md:px-6 md:pt-14",children:(0,n.jsxs)("div",{className:"mx-auto max-w-[1180px] text-center",children:[(0,n.jsx)("p",{className:"eyebrow",children:"Slik bestiller du"}),(0,n.jsx)("h2",{className:"mt-3 text-4xl font-black uppercase tracking-[-0.02em] text-[#12100E] md:text-5xl",children:"H\xe5rfagre-klipp"}),(0,n.jsx)("p",{className:"mx-auto mt-4 max-w-xl text-lg leading-8 text-[#4C433A]",children:"Fort gjort \xe5 f\xe5 fris\xf8ren p\xe5 d\xf8ra."}),(0,n.jsx)(J,{onOpen:K})]})}),(0,n.jsx)(L,{onOpen:P}),(0,n.jsx)("section",{id:"priser",className:"bg-[#E7DA86] px-3 pb-3 pt-0 md:px-6 md:pb-12",children:(0,n.jsx)("div",{className:"mx-auto max-w-[1180px]",children:(0,n.jsxs)("div",{className:"px-4 py-8 md:px-0 md:py-12",children:[(0,n.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"eyebrow",children:"Enkelt \xe5 bestille"}),(0,n.jsxs)("h2",{className:"font-caveat mt-3 text-5xl font-bold leading-none text-[#12100E] md:text-6xl",children:["\xc9n klipp,",(0,n.jsx)("br",{}),"eller flere"]})]}),(0,n.jsx)("p",{className:"mx-auto mt-4 max-w-xl text-lg font-medium leading-8 text-[#4C433A]",children:"Samme pris for barn og voksne, kvinner og menn."})]}),(0,n.jsxs)("div",{className:"mt-8 grid gap-4 md:grid-cols-2",children:[d.map(e=>(0,n.jsx)(Y,{...e,onOpen:P},e.label)),(0,n.jsx)(U,{count:M,setCount:q,onOpen:P})]})]})})}),(0,n.jsx)(ee,{}),(0,n.jsx)(Z,{onOpen:P}),(0,n.jsx)(R,{}),(0,n.jsx)("section",{id:"faq",className:"section-y px-3 md:px-6",children:(0,n.jsxs)("div",{className:"mx-auto max-w-[1180px]",children:[(0,n.jsx)("div",{className:"mx-auto max-w-2xl text-center",children:(0,n.jsx)("h2",{className:"font-caveat text-5xl font-bold leading-none text-[#12100E] md:text-6xl",children:"Sp\xf8rsm\xe5l og svar"})}),(0,n.jsx)("div",{className:"mx-auto mt-10 max-w-4xl",children:h.map((e,t)=>{let a=r===t;return(0,n.jsxs)("div",{className:"border-b border-black/10",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>i(a?-1:t),className:"group flex w-full items-center justify-between gap-5 px-4 py-5 text-left md:px-0","aria-expanded":a,children:[(0,n.jsx)("span",{className:"text-lg font-black leading-tight text-[#12100E] md:text-xl",children:e.question}),(0,n.jsx)(l.Z,{className:"h-4 w-4 shrink-0 fill-[#12100E] text-[#12100E] opacity-90 transition-transform duration-300 ".concat(a?"rotate-0":"-rotate-180")})]}),a?(0,n.jsx)("div",{className:"-mt-1 pb-6",children:"comparison"===e.kind?(0,n.jsx)(W,{className:"mx-4 mt-3 md:mx-0"}):(0,n.jsx)("p",{className:"max-w-3xl px-4 text-base font-normal leading-7 text-[#4C433A] md:px-0 md:text-lg md:leading-8",children:e.answer})}):null]},e.question)})})]})}),(0,n.jsx)($,{onOpen:P}),(0,n.jsx)(X,{onOpen:P})]})}function j(e){let{planner:t,setPlanner:a,isOpen:r,onClose:l,onComplete:i,embedded:o=!1}=e,d=(0,s.useRef)(null),c=(0,s.useRef)(0),x=(0,s.useRef)(!1),p=(0,s.useRef)(!1),[u,h]=(0,s.useState)(1),[g,b]=(0,s.useState)("single"),[f,j]=(0,s.useState)(2),[v,E]=(0,s.useState)({name:"",email:"",phone:"",postalCode:"",city:""}),[A,H]=(0,s.useState)(t.date||V(new Date)),[M,q]=(0,s.useState)("10:30"),[B,T]=(0,s.useState)(!1),[P,K]=(0,s.useState)(0),[O,z]=(0,s.use
1State)("vipps"),[I,L]=(0,s.useState)(!1),[W,R]=(0,s.useState)(0),G=(0,s.useMemo)(()=>m(Math.max(1,f)),[f]),J="single"===g?1:f,Y="single"===g?450:G.totalPrice,U=450*J,Z=Math.max(0,U-Y),$=U>0?Math.round(Z/U*100):0,Q=(0,s.useMemo)(()=>(function(e){let t=new Date,a=new Date(t.getFullYear(),t.getMonth()+e,1),n=new Date(t.getFullYear(),t.getMonth()+e+1,0),r=[];for(let s=new Date(0===e?t:a);s<=n;s.setDate(s.getDate()+1))r.push(new Date(s));return r})(P),[P]),X=(0,s.useMemo)(()=>(function(){let e=[];for(let t=10;t<=21;t+=1)e.push("".concat(String(t).padStart(2,"0"),":00")),t<21&&e.push("".concat(String(t).padStart(2,"0"),":30"));return e})(),[]),ee=(0,s.useCallback)(()=>{p.current=!0},[]);(0,s.useEffect)(()=>{if(!o){if(r){x.current=!0;return}x.current&&p.current&&(window.localStorage.setItem("harfagre-cart-count",String(J)),window.dispatchEvent(new CustomEvent("harfagre:cart-count",{detail:{count:J}})),p.current=!1),x.current=!1}},[J,o,r]);let et=()=>{ee(),h(e=>Math.min(8,e+1))};(0,s.useEffect)(()=>{if(!r||o)return;let e=e=>{"Escape"===e.key&&l()};window.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",e),document.body.style.overflow=t}},[o,r,l]);let ea=()=>{c.current>80&&l(),d.current=null,c.current=0,R(0)};return(0,n.jsxs)(n.Fragment,{children:[o?null:(0,n.jsx)("button",{type:"button","aria-label":"Lukk bookingfelt",onClick:l,className:"fixed inset-0 z-30 bg-black/20 backdrop-blur-[2px] transition-opacity duration-200 ".concat(r?"pointer-events-auto opacity-100":"pointer-events-none opacity-0")}),(0,n.jsxs)("div",{id:o?"hero-booking-widget":"bestill",tabIndex:o?-1:void 0,className:o?"booking-drawer-surface flex h-full min-h-[430px] w-full max-w-none flex-col rounded-l-none rounded-r-[30px] border-0 px-5 pb-6 pt-6 text-white shadow-none outline-none ring-0":"booking-drawer-surface fixed inset-x-0 bottom-0 z-40 mx-auto flex h-[min(78svh,505px)] w-full max-w-[430px] flex-col rounded-t-none rounded-b-none border border-[#A9A9A9]/55 px-5 pb-[calc(1.15rem_+_env(safe-area-inset-bottom))] pt-3 text-white shadow-[0_-28px_80px_rgba(13,13,15,0.34),0_-1px_0_rgba(175,175,175,0.46),inset_0_1px_0_rgba(255,255,255,0.24),inset_0_28px_70px_rgba(255,255,255,0.06),inset_0_-70px_120px_rgba(255,255,255,0.05)] ring-1 ring-[#AFAFAF]/20 transition-[transform,opacity] duration-300 ease-out md:max-w-[440px] ".concat(r?"pointer-events-auto translate-y-0 opacity-100":"pointer-events-none translate-y-[calc(100%+20px)] opacity-0"),style:!o&&r?{transform:"translateY(".concat(W,"px)")}:void 0,children:[o?null:(0,n.jsx)("div",{onPointerDown:e=>{d.current=e.clientY,e.currentTarget.setPointerCapture(e.pointerId)},onPointerMove:e=>{if(null!==d.current){let t=Math.max(0,e.clientY-d.current);c.current=t,R(t)}},onPointerUp:ea,onPointerCancel:ea,className:"mx-auto mb-3 grid h-8 w-28 cursor-grab touch-none place-items-center rounded-full active:cursor-grabbing",children:(0,n.jsx)("span",{className:"block h-1 w-11 rounded-full bg-white/55 shadow-[0_0_14px_rgba(255,255,255,0.35)]"})}),(0,n.jsx)(k,{step:u,kind:g,count:J,price:Y,savingsPercent:$,onBack:()=>{ee(),h(e=>8===e?7:7===e||5===e?4:4===e?3:1)},onClose:l}),(0,n.jsxs)("div",{className:"min-h-0 flex-1 overflow-visible pt-3",onScroll:ee,onTouchMove:ee,onWheel:ee,children:[1===u?(0,n.jsx)(w,{kind:g,count:f,setCount:e=>{ee(),j(e)},price:Y,fullPrice:U,savings:Z,onKindChange:e=>{ee(),b(e)},onNext:()=>{ee(),h(3)}}):null,2===u?(0,n.jsx)(N,{count:f,setCount:e=>{ee(),j(e)},price:Y,fullPrice:U,savings:Z,onNext:et}):null,3===u?(0,n.jsx)(y,{name:v.name,setName:e=>{ee(),E(t=>({...t,name:e}))},address:t.address,setAddress:e=>{ee(),a(t=>({...t,address:e}))},postalCode:v.postalCode,city:v.city,setPostalCode:e=>{ee(),E(t=>({...t,postalCode:e}))},setCity:e=>{ee(),E(t=>({...t,city:e}))},onAddressSelect:e=>{ee(),a(t=>({...t,address:e.adressetekst})),E(t=>({...t,postalCode:e.postnummer,city:e.poststed}))},onNext:et}):null,4===u?(0,n.jsx)(D,{selectedDate:A,selectedTime:M,hasSelectedTime:B,email:v.email,phone:v.phone,setEmail:e=>{ee(),E(t=>({...t,email:e}))},setPhone:e=>{ee(),E(t=>({...t,phone:e}))},onOpenTime:()=>{ee(),h(5)},onNext:()=>{ee(),h(7)}}):null,5===u?(0,n.jsx)(_,{monthOffset:P,setMonthOffset:K,dates:Q,times:X,selectedDate:A,selectedTime:M,setSelectedDate:e=>{ee(),H(e),a(t=>({...t,date:e}))},setSelectedTime:e=>{ee(),q(e)},onNext:()=>{ee(),T(!0),h(4)}}):null,6===u?(0,n.jsx)(F,{date:A,time:M,email:v.email,phone:v.phone,setEmail:e=>{ee(),E(t=>({...t,email:e}))},setPhone:e=>{ee(),E(t=>({...t,phone:e}))},onNext:et}):null,7===u?(0,n.jsx)(C,{method:O,setMethod:e=>{ee(),z(e),"card"===e&&h(8)},acceptedTerms:I,setAcceptedTerms:e=>{ee(),L(e)},onNext:et}):null,8===u?(0,n.jsx)(S,{method:O,setMethod:e=>{ee(),z(e),"card"!==e&&h(7)},acceptedTerms:I,setAcceptedTerms:e=>{ee(),L(e)},onPay:()=>{ee(),i(),l()}}):null]})]})]})}function k(e){let{step:t,kind:a,count:r,price:s,savingsPercent:l,onBack:i,onClose:o}=e,d=t<=2?1:3===t?2:t<=6?3:4,c=t>=3,m=1===t&&"single"===a?"Spar inntil 20%":t<=2?"Du sparer ".concat(l,"%"):null,p=null==m?void 0:m.match(/^(.*?)(\d+%)$/);return(0,n.jsxs)("div",{className:"grid grid-cols-[82px_1fr_auto] items-center gap-2",children:[(0,n.jsxs)("button",{type:"button",onClick:c?
1i:o,className:"flex items-center gap-1 text-left text-sm font-medium transition-colors hover:text-white/75 active:text-white/60 ".concat(c?"opacity-100":"opacity-0"),children:[(0,n.jsx)("span",{className:"grid h-6 w-6 place-items-center rounded-full border border-white/62 text-base leading-none",children:"←"}),"Tilbake"]}),(0,n.jsx)("div",{className:"flex items-center justify-center",children:[1,2,3,4].map(e=>(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("span",{className:"grid h-6 w-6 place-items-center rounded-full border border-white/62 text-sm font-black leading-none ".concat(e<=d?"border-transparent bg-[#F2D323] text-[#0D0D0F]":"".concat(x," text-white")),children:e}),e<4?(0,n.jsx)("span",{className:"h-px w-3 bg-white"}):null]},e))}),(0,n.jsx)("span",{className:"flex h-8 w-[116px] items-center justify-center gap-1 rounded-full border border-white/62 px-2 text-sm font-semibold text-white ".concat(x),children:m?(0,n.jsx)("span",{className:"text-[11px]",children:p?(0,n.jsxs)(n.Fragment,{children:[p[1],(0,n.jsx)("span",{className:"text-[13px]",children:p[2]})]}):m}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"text-xs font-semibold",style:{color:"rgba(255, 255, 255, 0.72)"},children:r}),(0,n.jsx)("img",{src:"/images/scissors-symbol.svg",alt:"",className:"h-4 w-4 shrink-0",style:{filter:"invert(1)",opacity:.72}}),(0,n.jsxs)("span",{children:[s," kr"]})]})})]})}function v(e){let{active:t}=e;return(0,n.jsx)("span",{className:"grid h-[1.625rem] w-[1.625rem] shrink-0 place-items-center justify-self-end rounded-full ".concat(t?"border border-white bg-[#A1A1A1]":"border border-white bg-white"),children:t?(0,n.jsx)("span",{className:"h-2.5 w-2.5 rounded-full bg-white"}):null})}function w(e){let{kind:t,count:a,setCount:r,price:s,fullPrice:l,savings:i,onKindChange:o,onNext:d}=e;return(0,n.jsx)(E,{cta:"G\xe5 videre",onNext:d,children:(0,n.jsxs)("div",{className:"mt-1 grid gap-2 text-left",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>o("single"),className:"grid min-h-16 grid-cols-[1fr_auto_28px] items-center gap-3 rounded-[15px] border ".concat(c," px-4 text-left text-xl font-medium ").concat("single"===t?"".concat("booking-surface-selected-single"," shadow-[inset_0_1px_0_rgba(255,255,255,0.22)] backdrop-blur-2xl"):""),children:[(0,n.jsx)("span",{className:"justify-self-start text-left",children:"1 klipp"}),(0,n.jsx)("span",{children:"450 kr"}),(0,n.jsx)(v,{active:"single"===t})]}),(0,n.jsxs)("div",{className:"overflow-hidden rounded-[15px] border ".concat(c," ").concat("party"===t?"".concat("booking-surface-selected-party"," shadow-[inset_0_1px_0_rgba(255,255,255,0.22)] backdrop-blur-2xl"):""),children:[(0,n.jsxs)("button",{type:"button",onClick:()=>o("party"),className:"grid min-h-16 w-full grid-cols-[1fr_auto_28px] items-center gap-3 px-4 text-left",children:[(0,n.jsxs)("span",{className:"justify-self-start text-left",children:[(0,n.jsx)("span",{className:"block text-xl font-medium",children:"party"===t?"".concat(a," klipp"):"Velg flere"}),"party"===t?(0,n.jsxs)("span",{className:"block text-xs font-medium text-white",children:["Du sparer ",i," kr."]}):(0,n.jsx)("span",{className:"block text-xs font-medium text-white",children:"Spar 100 kr for hver ekstra klipp."})]}),(0,n.jsx)("span",{className:"justify-self-end text-xl font-medium",children:"party"===t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"mr-2 text-base text-white/70 line-through",children:[l," kr"]}),s," kr"]}):null}),(0,n.jsx)(v,{active:"party"===t})]}),"party"===t?(0,n.jsxs)("div",{className:"border-t border-white/18 px-4 py-3 text-left",children:[(0,n.jsxs)("label",{className:"grid justify-items-start gap-2 text-left text-lg font-medium text-white",children:[(0,n.jsx)("span",{children:"Velg antall"}),(0,n.jsx)("input",{type:"range",min:2,max:9,value:a,onChange:e=>r(Number(e.target.value)),className:"booking-range",style:{"--range-progress":"".concat((a-2)/7*100,"%")}})]}),(0,n.jsxs)("p",{className:"mt-1 text-left text-[10px] font-medium leading-tight text-white",children:["Alle klipp m\xe5 utf\xf8res p\xe5 samme bes\xf8k. Vi kan klippe familie, venner eller kolleger. ",(0,n.jsx)("a",{href:"/vilkar",className:"underline underline-offset-2",children:"Se vilk\xe5r."})]})]}):null]})]})})}
1function N(e){let{count:t,setCount:a,price:r,fullPrice:s,savings:l,onNext:i}=e,o="".concat((t-2)/7*100,"%");return(0,n.jsx)(E,{cta:"G\xe5 videre",onNext:i,children:(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsxs)("div",{className:"grid min-h-16 grid-cols-[1fr_auto_22px] items-center gap-3 rounded-[15px] border border-white/62 px-4 text-lg font-medium",children:[(0,n.jsx)("span",{children:"1 klipp"}),(0,n.jsx)("span",{children:"450 kr"}),(0,n.jsx)("span",{className:"h-4 w-4 rounded-full bg-white/80"})]}),(0,n.jsxs)("div",{className:"overflow-hidden rounded-[15px] border border-white/62",children:[(0,n.jsxs)("div",{className:"grid min-h-16 grid-cols-[1fr_auto_22px] items-center gap-3 px-4 text-lg font-medium",children:[(0,n.jsxs)("span",{children:[t," klipp",(0,n.jsxs)("span",{className:"block text-[10px]",children:["Du sparer ",l," kr."]})]}),(0,n.jsxs)("span",{children:[(0,n.jsxs)("span",{className:"mr-2 text-base text-white/70 line-through",children:[s," kr"]}),r," kr"]}),(0,n.jsx)("span",{className:"h-4 w-4 rounded-full border-2 border-white/70 bg-white shadow-[inset_0_0_0_4px_#969695]"})]}),(0,n.jsxs)("div",{className:"border-t border-white/18 px-4 py-3",children:[(0,n.jsxs)("label",{className:"grid gap-2 text-lg font-medium text-white",children:["Velg antall",(0,n.jsx)("input",{type:"range",min:2,max:9,value:t,onChange:e=>a(Number(e.target.value)),className:"booking-range",style:{"--range-progress":o}})]}),(0,n.jsxs)("p",{className:"mt-1 text-[10px] font-medium leading-tight text-white",children:["Alle klipp m\xe5 utf\xf8res p\xe5 samme bes\xf8k. Vi kan klippe familie, venner eller kolleger. ",(0,n.jsx)("a",{href:"/vilkar",className:"underline underline-offset-2",children:"Se vilk\xe5r."})]})]})]})]})})}function y(e){let{name:t,setName:a,address:r,setAddress:s,postalCode:l,city:i,setPostalCode:o,setCity:d,onAddressSelect:m,onNext:p}=e;return(0,n.jsx)(E,{cta:"Velg tid for klipp",onNext:p,children:(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsx)(H,{placeholder:"Navn",value:t,onChange:a}),(0,n.jsx)(A,{placeholder:"Adresse",value:r,onChange:s,onSelectDetails:m}),(0,n.jsxs)("div",{className:"grid h-16 grid-cols-[104px_1fr] overflow-hidden rounded-[14px] border ".concat(c," ").concat(x," shadow-[inset_0_1px_0_rgba(255,255,255,0.22)] backdrop-blur-xl"),children:[(0,n.jsx)("input",{value:l,onChange:e=>o(e.target.value),placeholder:"Post nr",inputMode:"numeric",maxLength:4,className:"booking-glass-input h-16 border-r border-white/18 bg-transparent px-4 text-base font-semibold text-white/90 outline-none placeholder:font-medium placeholder:text-white/58 focus:bg-white/8"}),(0,n.jsx)("input",{value:i,onChange:e=>d(e.target.value),placeholder:"Sted",className:"booking-glass-input h-16 bg-transparent px-4 text-base font-semibold text-white/90 outline-none placeholder:font-medium placeholder:text-white/58 focus:bg-white/8"})]})]})})}function D(e){let{selectedDate:t,selectedTime:a,hasSelectedTime:r,email:s,phone:l,setEmail:i,setPhone:o,onOpenTime:d,onNext:c}=e;return(0,n.jsx)(E,{cta:"G\xe5 til betaling",onNext:c,children:(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsx)(M,{onClick:d,children:r?"".concat(K(t)," kl. ").concat(a):"Dato og tid for klipp"}),(0,n.jsx)(H,{placeholder:"E-post adresse",value:s,onChange:i,type:"email"}),(0,n.jsx)(H,{placeholder:"Telefon nummer",value:l,onChange:o,type:"tel"})]})})}function _(e){var t,a;let{monthOffset:r,setMonthOffset:s,dates:l,times:i,selectedDate:o,selectedTime:d,setSelectedDate:m,setSelectedTime:p,onNext:u}=e,h=null!==(a=null===(t=l[0])||void 0===t?void 0:t.toLocaleDateString("no-NO",{month:"long",year:"numeric"}))&&void 0!==a?a:"",g=Math.max(0,l.findIndex(e=>V(e)===o)),b=Math.max(0,i.indexOf(d)),f=e=>{let t=l[Math.min(l.length-1,Math.max(0,g+e))];t&&m(V(t))},j=e=>{let t=i[Math.min(i.length-1,Math.max(0,b+e))];t&&p(t)};return(0,n.jsx)(E,{cta:"Velg",onNext:u,mutedCta:!0,children:(0,n.jsxs)("div",{className:"rounded-[14px] border ".concat(c," ").concat(x," px-3 py-4 shadow-[inset_0_1px_0_rgba(255,255,255,0.22)] backdrop-blur-xl"),children:[(0,n.jsxs)("div",{className:"mb-3 flex items-center justify-between text-base font-black",children:[(0,n.jsx)("span",{children:"Velg dato"}),(0,n.jsxs)("span",{className:"grid grid-cols-[24px_92px_24px] items-center gap-3 capitalize",children:[(0,n.jsx)("button",{type:"button",onClick:()=>s(Math.max(0,r-1)),className:"px-1 hover:text-white/70 active:text-white/55",children:"<"}),(0,n.jsx)("span",{className:"text-center",children:h.replace(/\s+\d{4}/,"")}),(0,n.jsx)("button",{type:"button",onClick:()=>s(r+1),className:"px-1 hover:text-white/70 active:text-white/55",children:">"})]})]}),(0,n.jsxs)("div",{className:"mb-5 grid grid-cols-[22px_1fr_22px] items-end gap-2",children:[(0,n.jsx)("button",{type:"button",onClick:()=>f(-1),className:"pb-2 text-xl font-black hover:text-white/70 active:text-white/55",children:"<"}),(0,n.jsx)("div",{className:"flex min-w-0 gap-2 overflow-x-auto [-webkit-overflow-scrolling:touch] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:l.map(e=>{let t=V(e),a=o===t;return(0,n.jsxs)("button",{type:"button",onClick:()=>m(t),className:"grid min-w-10 justify-items-center gap-2 rounded-full px-1 py-1 text-sm font-black backdrop-blur-xl ".concat(a?"border border-[#F2D323] bg-[#F2D323]/18 text-white":"bg-[linear-gradient(135deg,rgba(255,255,255,0.14),rgba(255,255,255,0.055))] text-white"),children:[(0,n.jsx)("span",{children:e.toLocaleDateString("no-NO",{weekday:"short"}).slice(0,1).toUpperCase()}),(0,n.jsx)("span",{className:"grid h-8 w-8 place-items-center rounded-full border ".concat(a?"border-[#F2D323] bg-white/15":"border-white bg-[linear-gradient(135deg,rgba(255,255,255,0.14),rgba(255,255,255,0.055))]"),children:e.getDate()})]},t)})}),(0,n.jsx)("button",{type:"button",onClick:()=>f(1),className:"pb-2 text-xl font-black hover:text-white/70 active:text-white/55",children:">"})]}),(0,n.jsx)("p",{className:"mb-3 text-left text-base font-black",children:"Velg tid"}),(0,n.jsxs)("div",{className:"grid grid-cols-[22px_1fr_22px] items-center gap-2",children:[(0,n.jsx)("button",{type:"button",onClick:()=>j(-1),className:"text-xl font-black hover:text-white/70 active:text-white/55",children:"<"}),(0,n.jsx)("div",{className:"flex min-w-0 gap-2 overflow-x-auto [-webkit-overflow-scrolling:touch] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:i.map(e=>(0,n.jsx)("button",{type:"button",onClick:()=>p(e),className:"min-w-20 rounded-full border px-4 py-2 text-base font-black ".concat(d===e?"border-[#F2D323] bg-white/20":"border-transparent bg-white/15"),children:e},e))}),(0,n.jsx)("button",{type:"button",onClick:()=>j(1),className:"text-xl font-black hover:text-white/70 active:text-white/55",children:">"})]})]})})}function F(e){let{date:t,time:a,email:r,phone:s,setEmail:l,setPhone:i,onNext:o}=e;return(0,n.jsx)(E,{cta:"G\xe5 til betaling",onNext:o,children:(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsxs)(M,{children:[K(t)," kl. ",a]}),(0,n.jsx)(H,{placeholder:"E-post adresse",value:r,onChange:l,type:"email"}),(0,n.jsx)(H,{placeholder:"Telefon nummer",value:s,onChange:i,type:"tel"})]})})}function C(e){let{method:t,setMethod:a,acceptedTerms:r,setAcceptedTerms:s,onNext:l}=e;return(0,n.jsxs)(E,{cta:"Betal for h\xe5rklipp",onNext:l,children:[(0,n.jsx)(B,{method:t,setMethod:a}),(0,n.jsx)(T,{checked:r,setChecked:s})]})}function S(e){let{method:t,setMethod:a,acceptedTerms:r,setAcceptedTerms:s,onPay:l}=e;return(0,n.jsxs)(E,{cta:"Betal for h\xe5rklipp",onNext:l,children:[(0,n.jsxs)("div",{className:"rounded-[14px] border ".concat(c," ").concat(x," p-3"),children:[(0,n.jsx)(B,{method:t,setMethod:a,compact:!0}),(0,n.jsxs)("div",{className:"mt-2 grid gap-1.5",children:[(0,n.jsx)(q,{placeholder:"Navn p\xe5 korteier"}),(0,n.jsx)(q,{placeholder:"Kortnummer"}),(0,n.jsxs)("div",{className:"grid grid-cols-[1.6fr_1fr] gap-2",children:[(0,n.jsx)(q,{placeholder:"Utl\xf8psdato  MM/\xc5\xc5"}),(0,n.jsx)(q,{placeholder:"CVV 123"})]})]})]}),(0,n.jsx)(T,{checked:r,setChecked:s})]})}function E(e){let{children:t,cta:a,onNext:r,mutedCta:s=!1}=e;return(0,n.jsxs)("div",{className:"grid h-full grid-rows-[1fr_auto] gap-4",children:[(0,n.jsx)("div",{className:"grid content-start gap-3 overflow-visible",children:t}),(0,n.jsxs)(P,{onClick:r,muted:s,children:[a," ",(0,n.jsx)("span",{"aria-hidden":"true",children:"→"})]})]})}function A(e){let{placeholder:t,value:a,onChange:r,onSelectDetails:l}
1=e,[i,o]=(0,s.useState)([]),[d,c]=(0,s.useState)(a.trim()),[x,m]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=window.setTimeout(async()=>{let e=a.trim();if(e.length<3||e===d){o([]);return}m(!0);try{var t;let e=await fetch("https://ws.geonorge.no/adresser/v1/sok?sok=".concat(encodeURIComponent(a),"&treffPerSide=5")),n=await e.json();o(null!==(t=n.adresser)&&void 0!==t?t:[])}catch(e){o([])}finally{m(!1)}},300);return()=>window.clearTimeout(e)},[d,a]),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(H,{placeholder:t,value:a,onChange:e=>{e!==d&&c(""),r(e)}}),x?(0,n.jsx)("span",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-[10px] font-bold text-[#12100E]/45",children:"Laster..."}):null,i.length?(0,n.jsx)("ul",{className:"absolute inset-x-0 top-[calc(100%+4px)] z-40 overflow-hidden rounded-[14px] border border-[#4A4A46] bg-white text-left shadow-[0_12px_24px_rgba(13,13,15,0.12)]",children:i.map((e,t)=>{let a="".concat(e.adressetekst,", ").concat(e.postnummer," ").concat(e.poststed);return(0,n.jsx)("li",{children:(0,n.jsx)("button",{type:"button",onClick:()=>{c(e.adressetekst),r(a),null==l||l(e),o([])},className:"w-full px-3 py-2 text-left text-xs font-bold text-[#12100E] transition-colors hover:bg-[#F2D323]/20 active:bg-[#F2D323]/35",children:a})},"".concat(a,"-").concat(t))})}):null]})}function H(e){let{placeholder:t,value:a,onChange:r,type:s="text"}=e;return(0,n.jsx)("input",{type:s,value:a,onChange:e=>r(e.target.value),placeholder:t,className:"booking-glass-input h-16 w-full rounded-[14px] border ".concat(c," ").concat(x," px-4 text-base font-semibold leading-none text-white/90 shadow-[inset_0_1px_0_rgba(255,255,255,0.22)] outline-none backdrop-blur-xl placeholder:font-medium placeholder:text-white/58 focus:border-white")})}function M(e){let{children:t,onClick:a}=e;return(0,n.jsx)("button",{type:"button",onClick:a,className:"h-16 w-full rounded-[14px] border ".concat(c," ").concat(x," px-4 text-left text-base font-medium text-white/68 shadow-[inset_0_1px_0_rgba(255,255,255,0.22)] backdrop-blur-xl"),children:t})}function q(e){let{placeholder:t}=e;return(0,n.jsx)("input",{placeholder:t,className:"booking-glass-input h-8 min-w-0 rounded-full border ".concat(c," ").concat(x," px-3 text-base font-semibold text-white/90 outline-none placeholder:font-medium placeholder:text-white/58 focus:border-white")})}function B(e){let{method:t,setMethod:a,compact:r=!1}=e;return(0,n.jsx)("div",{className:"rounded-[14px] border ".concat(c," ").concat(r?"border-0 p-0":"p-3 ".concat(x)),children:["vipps","apple-pay","card"].map(e=>(0,n.jsxs)("button",{type:"button",onClick:()=>a(e),className:"flex h-8 w-full items-center justify-between text-left text-base font-medium transition-colors ".concat(t===e?"text-white":"text-white/55"),children:[(0,n.jsx)("span",{children:"vipps"===e?"Betal med Vipps":"apple-pay"===e?"Betal med Apple Pay":"Betal med kort"}),(0,n.jsx)(v,{active:t===e})]},e))})}function T(e){let{checked:t,setChecked:a}=e;return(0,n.jsxs)("label",{className:"flex items-start gap-3 px-5 text-left text-[11px] font-medium leading-tight text-white",children:[(0,n.jsx)("input",{type:"checkbox",checked:t,onChange:e=>a(e.target.checked),className:"mt-0.5 h-5 w-5 rounded-full accent-[#F2D323]"}),(0,n.jsxs)("span",{children:["Jeg godtar ",(0,n.jsx)("a",{href:"/vilkar",className:"underline underline-offset-2",children:"salgsvilk\xe5rene"})," og ber om at klippen utf\xf8res p\xe5 valgt tidspunkt."]})]})}function P(e){let{children:t,onClick:a,disabled:r,muted:s=!1}=e;return(0,n.jsx)("button",{type:"button",disabled:r,onClick:a,className:"flex min-h-11 w-full items-center justify-center gap-2 rounded-full px-4 text-sm font-black leading-none transition-[background-color,opacity,transform] duration-150 active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-45 md:text-base ".concat(s?"border border-white/62 bg-[linear-gradient(135deg,rgba(255,255,255,0.14),rgba(255,255,255,0.055))] text-white hover:bg-[radial-gradient(circle_at_22%_14%,rgba(255,255,255,0.26),transparent_38%),linear-gradient(135deg,rgba(255,255,255,0.16),rgba(255,255,255,0.07))]":"border-0 bg-[#F2D323] text-[#0D0D0F] hover:bg-[#F5DF51]"),children:t})}function V(e){return"".concat(e.getFullYear(),"-").concat(String(e.getMonth()+1).padStart(2,"0"),"-").concat(String(e.getDate()).padStart(2,"0"))}function K(e){let t=new Date("".concat(e,"T12:00:00"));return Number.isNaN(t.getTime())?e:t.toLocaleDateString("no-NO",{weekday:"long",day:"numeric",month:"long"})}
1function O(){let e=(0,s.useRef)(null),[t,a]=(0,s.useState)(0),n=(0,s.useCallback)(()=>{let t=e.current;if(!t)return;let n=t.scrollWidth-t.clientWidth;a(n>1?Math.round(t.scrollLeft/n*100):0)},[]),r=(0,s.useCallback)(t=>{let a=e.current;if(!a)return;let n=a.scrollWidth-a.clientWidth;a.scrollTo({left:Number(t.target.value)/100*n,behavior:"auto"})},[]);return(0,s.useEffect)(()=>{n();let t=e.current;if(t)return t.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n),()=>{t.removeEventListener("scroll",n),window.removeEventListener("resize",n)}},[n]),{scrollerRef:e,progress:t,handleSliderChange:r}}function z(e){let{value:t,onChange:a,label:r}=e;return(0,n.jsx)("input",{type:"range",min:0,max:100,value:t,onChange:a,onInput:a,"aria-label":r,className:"section-carousel-range"})}let I=[{icon:"\uD83C\uDFE0",title:"Fris\xf8ren kommer til deg",text:"Du bestiller og betaler. Fris\xf8ren kommer til oppgitt adresse."},{icon:"✂️",title:"Kun h\xe5rklipp",text:"H\xe5rfagre tilbyr kun h\xe5rklipp. Ingen kjemisk behandling. Bra for lommeboka og milj\xf8et."},{icon:"\uD83D\uDCB3",title:"Lav pris",text:"\xc9n h\xe5rklipp koster 450 kr uansett alder og kj\xf8nn. Spar 100 kr pr ekstra klipp."},{icon:"\uD83C\uDFD6️",title:"Null stress",text:"N\xe5r vi kommer, setter du frem en stol og har nok lys."},{icon:"\uD83E\uDD1D",title:"Vi klipper, du rydder opp etterp\xe5",text:"Vi sparer tid. Du sparer penger."},{icon:"\uD83E\uDD47",title:"Forn\xf8yd-garanti",text:"Hvis du ikke blir forn\xf8yd med klippen, ordner fris\xf8ren opp med en gang."}];function L(e){let{onOpen:t}=e;return(0,n.jsx)("section",{id:"om-oss",className:"px-3 py-12 md:px-6 md:py-16",children:(0,n.jsxs)("div",{className:"mx-auto max-w-[1180px]",children:[(0,n.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,n.jsx)("p",{className:"eyebrow",children:"Hvorfor velge H\xe5rfagre?"}),(0,n.jsx)("h2",{className:"mt-3 text-4xl font-black uppercase tracking-[-0.02em] text-[#12100E] md:text-5xl",children:"Proff h\xe5rklipp uten \xe5 reise hjemmefra"}),(0,n.jsx)("p",{className:"mx-auto mt-4 max-w-xl text-lg leading-8 text-[#4C433A]",children:"Endelig f\xe5r du fiksa ny sveis hjemme. Null stress, joggedress."})]}),(0,n.jsx)("div",{className:"mt-9 grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:I.map(e=>(0,n.jsxs)("button",{type:"button",className:"group grid min-h-[112px] grid-cols-[42px_1fr] items-start gap-4 roun
1ded-[22px] border-2 border-zinc-300 bg-[#FFFDF8] px-5 py-4 text-left text-[#12100E] shadow-[10px_16px_30px_rgba(17,24,39,0.08)] transition-all duration-200 hover:border-[#12100E] hover:shadow-[12px_18px_36px_rgba(17,24,39,0.12)] focus-visible:border-[#12100E] focus-visible:outline-none focus-visible:shadow-[12px_18px_36px_rgba(17,24,39,0.12)] active:border-[#12100E] md:min-h-[112px]",children:[(0,n.jsx)("span",{className:"flex h-10 w-10 items-center justify-center text-4xl leading-none",children:e.icon}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"block text-lg font-bold leading-tight group-hover:font-black group-focus-visible:font-black group-active:font-black",children:e.title}),(0,n.jsx)("span",{className:"mt-2 block text-sm leading-6 text-[#4C433A] ".concat("Kun h\xe5rklipp"===e.title?"lg:text-[13px] lg:leading-5 xl:text-sm xl:leading-6":""),children:e.text})]})]},e.title))}),(0,n.jsx)("div",{className:"mt-8 text-center md:mt-10",children:(0,n.jsx)("button",{type:"button",onClick:t,className:"button-primary mobile-standard-button page-cta-button text-sm font-black",children:"Bestill klipp"})})]})})}function W(e){let{className:t=""}=e;return(0,n.jsx)("div",{className:"max-w-3xl ".concat(t),children:(0,n.jsxs)("div",{className:"group overflow-hidden rounded-[18px] border-2 border-zinc-300 bg-[#FFEF98] text-sm shadow-[10px_16px_30px_rgba(17,24,39,0.08)] transition-all duration-200 hover:border-[#12100E] hover:shadow-[12px_18px_36px_rgba(17,24,39,0.12)] active:border-[#12100E] md:text-base",children:[(0,n.jsx)("div",{className:"font-caveat px-4 pb-5 pt-5 text-center text-3xl font-bold leading-none text-[#12100E] transition-[font-weight] group-hover:font-black group-active:font-black md:text-4xl",children:"Vanlig salong VS. H\xe5rfagre fris\xf8r"}),g.map(e=>{let[t,a]=e;return(0,n.jsxs)("div",{className:"relative grid grid-cols-2 border-b border-[#7C7462]/45 last:border-b-0",children:[(0,n.jsx)("span",{className:"pointer-events-none absolute left-[48%] top-1/2 h-3 w-3 -translate-x-1/2 -translate-y-1/2 rotate-45 border border-[#12100E]/80 bg-[#F2D323]","aria-hidden":"true"}),(0,n.jsx)("div",{className:"p-3 leading-6 text-[#3F3934] md:p-4",children:t}),(0,n.jsx)("div",{className:"p-3 font-black leading-6 text-[#12100E] md:p-4",children:a})]},t)})]})})}function R(){let{scrollerRef:e,progress:t,handleSliderChange:a}=O();return(0,n.jsx)("section",{id:"frisorer",className:"px-3 py-12 md:px-6 md:py-16","aria-labelledby":"hairdressers-heading",children:(0,n.jsxs)("div",{className:"mx-auto max-w-[1120px]",children:[(0,n.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,n.jsx)("p",{className:"eyebrow",children:"V\xe5re fris\xf8rer"}),(0,n.jsxs)("h2",{id:"hairdressers-heading",className:"font-caveat mt-3 text-5xl font-bold leading-none text-[#111827] md:text-6xl",children:["Hils p\xe5 dine nye bestevenner ",(0,n.jsx)("span",{className:"inline-block align-[0.04em] text-[0.6em]",children:"\uD83D\uDC4B"})]})]}),(0,n.jsx)("div",{ref:e,className:"mt-8 grid auto-cols-[82%] grid-flow-col gap-4 overflow-x-auto overflow-y-visible px-1 py-2 pb-8 [scrollbar-width:none] [-ms-overflow-style:none] [scroll-snap-type:x_mandatory] md:auto-cols-[360px] lg:grid-flow-row lg:grid-cols-4 lg:auto-cols-auto lg:overflow-visible lg:px-0 [&::-webkit-scrollbar]:hidden",role:"region","aria-roledescription":"carousel","aria-label":"H\xe5rfagre-fris\xf8rer",children:u.map(e=>(0,n.jsxs)("article",{className:"overflow-hidden rounded-[18px] border border-black/8 bg-[#FFFDF8] shadow-[10px_16px_30px_rgba(17,24,39,0.11)] [scroll-snap-align:start]",children:[(0,n.jsx)("img",{src:e.image,alt:"",className:"h-48 w-full object-cover",loading:"lazy"}),(0,n.jsxs)("div",{className:"p-5",children:[(0,n.jsx)("h3",{className:"text-xl font-black text-[#111827]",children:e.name}),(0,n.jsxs)("p",{className:"mt-1 text-sm font-bold text-[#6B7280]",children:[e.experience," erfaring"]}),(0,n.jsxs)("div",{className:"mt-3 flex flex-col gap-1",children:[(0,n.jsx)(b,{score:e.score}),(0,n.jsxs)("p",{className:"text-sm font-bold text-[#6B7280]",children:["Kundescore: ",e.score.toLocaleStr
1ing("no-NO")]})]}),(0,n.jsx)("p",{className:"mt-4 text-base leading-7 text-[#374151]",children:e.text})]})]},e.name))}),(0,n.jsx)("div",{className:"mt-3 flex justify-center lg:hidden",children:(0,n.jsx)(z,{value:t,onChange:a,label:"Bla i fris\xf8rer"})}),(0,n.jsxs)("div",{className:"mx-auto mt-6 flex max-w-[620px] flex-col items-center justify-center gap-3 sm:flex-row",children:[(0,n.jsx)("a",{href:"/bli-frisor",className:"mobile-standard-button inline-flex w-[min(350px,calc(100vw-48px))] items-center justify-center rounded-full bg-[#0D0D0F] text-sm font-black text-[#FFF8EA] transition hover:bg-[#17120F] sm:w-[282px] sm:max-w-[282px]",children:"Bli H\xe5rfagre-fris\xf8r"}),(0,n.jsx)("button",{type:"button",onClick:()=>window.dispatchEvent(new CustomEvent("harfagre:open-booking")),className:"mobile-standard-button inline-flex w-[min(350px,calc(100vw-48px))] items-center justify-center rounded-full bg-[#F2D323] text-sm font-black text-[#0D0D0F] transition hover:bg-[#E7C919] sm:w-[282px] sm:max-w-[282px]",children:"Bestill klipp"})]})]})})}let G=[{number:"1",text:"Velg antall klipp"},{number:"2",text:"Skriv inn navn, adresse og velg tidspunkt"},{number:"3",text:"Betal med Vipps eller kort."},{number:"4",text:"Fris\xf8ren kommer til deg til avtalt tid."}];function J(e){let{onOpen:t}=e;return(0,n.jsxs)("div",{className:"relative left-1/2 z-[1] mt-7 w-[calc(100vw+5.6px)] max-w-none -translate-x-1/2 overflow-hidden md:left-auto md:mx-auto md:mt-10 md:w-full md:max-w-[540px] md:translate-x-0",children:[(0,n.jsx)("img",{src:"/images/harfagre-mobile-graphic.webp",alt:"",draggable:!1,className:"no-drag block h-auto w-full",loading:"lazy",width:600,height:991}),(0,n.jsxs)("div",{className:"absolute inset-[7.2%_8.8%_0_8.8%] overflow-visible rounded-t-[13%]",children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute left-1/2 top-[1%] h-[92%] w-[58.333vw] -translate-x-1/2 bg-[#DADADA] opacity-20 md:w-[65%]",style:{WebkitMaskImage:"url('/images/harfagre-hero-watermark.svg')",maskImage:"url('/images/harfagre-hero-watermark.svg')",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskSize:"contain",maskSize:"contain"}}),(0,n.jsx)("img",{src:"/images/harfagre-mobile-icon.svg",alt:"",draggable:!1,className:"no-drag pointer-events-none absolute left-1/2 top-[-3%] h-auto w-[132%] -translate-x-1/2","aria-hidden":"true"}),(0,n.jsxs)("div",{className:"absolute inset-x-[3.2%] bottom-[4.6%] top-[21.5%] flex flex-col",children:[(0,n.jsx)("div",{className:"grid gap-[3.9%]",children:G.map(e=>(0,n.jsxs)("button",{type:"button",className:"mobile-glass-card grid min-h-[76px] grid-cols-[38px_1fr] items-center gap-4 roun
1ded-[15px] border border-white/75 px-4 py-3 text-left md:min-h-[104px] md:grid-cols-[46px_1fr] md:rounded-[18px] md:px-6",children:[(0,n.jsx)("span",{className:"flex h-7 w-7 items-center justify-center rounded-full bg-[#F2D323] text-sm font-black leading-none text-[#0D0D0F] md:h-8 md:w-8 md:text-base",children:e.number}),(0,n.jsx)("p",{className:"text-[17px] font-medium leading-[1.2] tracking-[-0.02em] text-[#050505] md:text-[22px] md:leading-[1.25]",children:e.text})]},e.number))}),(0,n.jsx)("div",{className:"mt-auto pt-[5%]",children:(0,n.jsx)("button",{type:"button",onClick:t,className:"mobile-standard-button inline-flex items-center justify-center rounded-full bg-[#F2D323] text-sm font-black text-[#0D0D0F] shadow-[0_14px_28px_rgba(13,13,15,0.14)] transition-[background-color,transform] duration-150 hover:-translate-y-px hover:bg-[#F5DF51] active:scale-[0.98] md:min-h-14 md:text-base",children:"Bestill Klipp"})})]})]})]})}function Y(e){let{label:t,price:a,text:r,cta:s,featured:l,onOpen:i}=e;return(0,n.jsxs)("div",{className:"relative flex min-h-[320px] flex-col overflow-hidden rounded-[18px] border p-6 shadow-[0_18px_50px_rgba(13,13,15,0.11)] md:rounded-[24px] ".concat(l?"border-white/12 bg-[#0D0D0F] text-[#FFF8EA]":"border-black/8 bg-[#FFFDF8] text-[#12100E]"),children:[(0,n.jsx)("h3",{className:"text-center text-xl font-black",children:t}),"Familieklipp"===t?(0,n.jsx)("p",{className:"mt-2 text-center text-sm font-black uppercase tracking-[0.12em] ".concat(l?"text-[#F2D323]":"text-[#12100E]"),children:"2 voksne + 1 barn"}):null,(0,n.jsx)("p",{className:"mt-4 text-center text-5xl font-black tracking-[-0.04em]",children:a}),(0,n.jsx)("p",{className:"mt-4 text-center leading-7 ".concat(l?"text-[#B8AA98]":"text-[#4C433A]"),children:r}),(0,n.jsx)("button",{type:"button",onClick:i,className:"mobile-standard-button relative z-[1] mt-auto inline-flex items-center justify-center rounded-full text-sm font-black transition-[background-color,transform] duration-150 hover:-translate-y-px active:scale-[0.98] md:max-w-none ".concat(l?"bg-[#F2D323] text-[#0D0D0F] hover:bg-[#F5DF51]":"bg-[#0D0D0F] text-[#FFF8EA] hover:bg-[#17120F]"),children:s})]})}function U(e){let{count:t,setCount:a,onOpen:r}=e,s=m(t),l="".concat((t-2)/7*100,"%");return(0,n.jsxs)("div",{className:"relative flex min-h-[320px] flex-col overflow-hidden rounded-[18px] border border-white/12 bg-[#0D0D0F] p-6 text-[#FFF8EA] shadow-[0_18px_50px_rgba(13,13,15,0.18)] md:rounded-[24px]",children:[(0,n.jsxs)("h3",{className:"text-center text-xl font-black",children:[t," klipp"]}),(0,n.jsxs)("p",{className:"mt-4 text-center text-5xl font-black tracking-[-0.04em]",children:[s.totalPrice," kr"]}),(0,n.jsx)("p",{className:"mt-4 text-center leading-7 text-[#B8AA98]",children:"Bestill flere klipp i samme bes\xf8k og spar 100 kr per ekstra klipp. Klipp vennegjengen eller familien p\xe5 samme H\xe5rfagre-bes\xf8k."}),(0,n.jsxs)("label",{className:"mt-5 grid gap-2 text-sm font-semibold text-[#FFF8EA]",children:["Dra slideren og se pris for valgt antall.",(0,n.jsx)("input",{type:"range",min:2,max:9,value:t,onChange:e=>a(Number(e.target.value)),className:"booking-range",style:{"--range-progress":l}})]}),(0,n.jsx)("button",{type:"button",onClick:r,className:"mobile-standard-button relative z-[1] mt-auto inline-flex items-center justify-center rounded-full bg-[#F2D323] text-sm font-black text-[#0D0D0F] transition-[background-color,transform] duration-150 hover:-translate-y-px hover:bg-[#F5DF51] active:scale-[0.98] md:max-w-none",children:"Bestill flere klipp"})]})}function Z(e){let{onOpen:t}=e;return(0,n.jsx)("section",{id:"dekningsomrade",className:"px-3 py-12 md:px-6 md:py-16",children:(0,n.jsxs)("div",{className:"mx-auto max-w-[1120px]",children:[(0,n.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,n.jsx)("p",{className:"eyebrow",children:"Dekningsomr\xe5de"}),(0,n.jsx)("h2",{className:"font-caveat mt-3 text-5xl font-bold leading-none text-[#111827] md:text-6xl",children:"Molde, Aukra og Elnesv\xe5gen"}),(0,n.jsx)("p",{className:"mx-auto mt-4 max-w-xl text-lg leading-8 text-[#4C433A]",children:"Skriv inn adressen din i bestillingen, s\xe5 ser du om H\xe5rfagre er tilgjengelig der du bor."})]}),(0,n.jsxs)("div",{className:"mx-auto mt-8 grid max-w-[1120px] gap-6 lg:grid-cols-2 lg:items-stretch",children:[(0,n.jsxs)("div",{className:"mx-auto w-full max-w-[520px] lg:mx-0 lg:max-w-none",children:[(0,n.jsx)(o,{}),(0,n.jsx)("div",{className:"mt-6 text-center lg:hidden",children:(0,n.jsx)("button",{type:"button",onClick:t,className:"mobile-standard-button page-cta-button inline-flex items-center justify-center rounded-full bg-[#0D0D0F] text-sm font-black text-[#FFF8EA] transition hover:bg-[#17120F]",children:"Sjekk min adresse"})})]}),(0,n.jsx)("div",{className:"hidden lg:block",children:(0,n.jsx)(Q,{onOpen:t})})]})]})})}function $(e){let{onOpen:t}=e;return(0,n.jsx)("section",{className:"px-3 pb-8 lg:hidden",children:(0,n.jsx)("div",{className:"mx-auto max-w-[520px]",children:(0,n.jsx)(Q,{onOpen:t})})})}function Q(e){let{onOpen:t}=e;return(0,n.jsxs)("div",{className:"rounded-[24px] border-2 border-zinc-300 bg-[#DDE9EA] p-4 text-center shadow-[10px_16px_30px_rgba(17,24,39,0.08)] lg:flex lg:min-h-full lg:flex-col lg:justify-center lg:p-6 lg:text-left",children:[(0,n.jsxs)("h3",{className:"font-caveat text-3xl font-bold leading-none text-[#111827] lg:hidden",children:["\xd8nsker du H\xe5rfagre til ",(0,n.jsx)("span",{className:"underline decoration-[#111827]/70 decoration-2 underline-offset-4",children:"din"})," by?"]}),(0,n.jsx)("h3",{className:"font-caveat hidden text-4xl font-bold leading-none text-[#111827] lg:block",children:"\xd8nsker du at H\xe5rfagre kommer til din by eller tettsted?"}),(0,n.jsx)("p",{className:"mt-3 text-base leading-7 text-[#4C433A] lg:hidden",children:"Legg inn e-post, s\xe5 gir vi beskjed n\xe5r vi kommer."}),(0,n.jsx)("p",{className:"mt-4 hidden text-lg leading-8 text-[#4C433A] lg:block",children:"Om du bor p\xe5 Kjels\xe5s, Gr\xfcnerl\xf8kka, Kristiansand eller R\xf8ros, og \xf8nsker proff h\xe5rklipp hjemme. Da er det bare \xe5 legge inn e-posten din, s\xe5 gir vi beskjed n\xe5r vi kommer til ditt omr\xe5de."}),(0,n.jsx)(i.InterestSignupForm,{children:(0,n.jsx)("button",{type:"button",onClick:t,className:"mobile-standard-button page-cta-button mx-auto hidden items-center justify-center rounded-full bg-[#0D0D0F] text-sm font-black text-[#FFF8EA] transition hover:bg-[#17120F] lg:inline-flex",children:"Sjekk om H\xe5rfagre er i mitt omr\xe5de"})})]})}function X(e){let{onOpen:t}=e;return(0,n.jsx)("section",{className:"px-3 py-12 md:px-6 md:py-16",children:(0,n.jsxs)("div",{className:"mx-auto max-w-[960px] rounded-[28px] bg-[#0D0D0F] p-7 text-center text-[#FFF8EA] shadow-soft",children:[(0,n.jsx)("p",{className:"eyebrow !text-[#F2D323]",children:"Klar for klipp?"}),(0,n.jsx)("h2",{className:"mt-3 text-4xl font-black leading-tight tracking-[-0.025em] md:text-5xl",children:"F\xe5 fris\xf8ren p\xe5 d\xf8ra i dag"}),(0,n.jsxs)("div",{className:"mx-auto mt-7 flex max-w-[760px] flex-col items-center justify-center gap-3 sm:flex-row sm:flex-wrap",children:[(0,n.jsx)("button",{type:"button",onClick:t,className:"mobile-standard-button page-cta-button inline-flex items-center justify-center rounded-full bg-[#F2D323] text-sm font-black text-[#0D0D0F]",children:"Sjekk ledig tid"}),(0,n.jsx)("a",{href:"https://harfagre.vercel.app/bli-frisor",className:"mobile-standard-button page-cta-button inline-flex items-center justify-center rounded-full bg-[#FFFDF8] text-sm font-black text-[#0D0D0F]",children:"Bli H\xe5rfagre-fris\xf8r"})]})]})})}function ee(){let{scrollerRef:e,progress:t,handleSliderChange:a}=O();return(0,n.jsx)("section",{className:"px-3 py-12 md:px-6 md:py-16","aria-labelledby":"reviews-heading",children:(0,n.jsxs)("div",{className:"mx-auto max-w-[1120px]",children:[(0,n.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,n.jsxs)("h2",{id:"reviews-heading",className:"font-caveat mt-3 text-5xl font-bold leading-none text-[#111827] md:text-6xl",children:["Ikke h\xf8r p\xe5 oss.",(0,n.jsx)("br",{}),"H\xf8r hva kundene sier."]}),(0,n.jsx)("img",{src:"/images/harfagre-double-underlined.svg",alt:"",draggable:!1,
1className:"no-drag mx-auto mt-2 h-auto w-[280px] max-w-[86vw] md:w-[420px]","aria-hidden":"true"}),(0,n.jsxs)("p",{className:"font-caveat mx-auto mt-4 inline-flex -rotate-2 items-center gap-3 text-2xl leading-none text-[#77716A] md:text-3xl",children:["Dra finger for \xe5 lese flere av dem",(0,n.jsx)("span",{className:"text-3xl leading-none text-[#111827] md:text-4xl",children:"→"})]})]}),(0,n.jsxs)("div",{className:"relative mt-10 overflow-visible bg-transparent pb-4",children:[(0,n.jsx)("div",{ref:e,className:"grid auto-cols-[82%] grid-flow-col gap-3 overflow-x-auto overflow-y-visible bg-transparent px-1 py-2 pb-8 [scrollbar-width:none] [-ms-overflow-style:none] [scroll-snap-type:x_mandatory] md:auto-cols-[calc((100%_-_12px)/2)] lg:auto-cols-[calc((100%_-_48px)/4)] lg:gap-4 [&::-webkit-scrollbar]:hidden",role:"region","aria-roledescription":"carousel","aria-label":"Kundetilbakemeldinger",children:p.map(e=>(0,n.jsx)("article",{className:"bg-transparent pb-4 [scroll-snap-align:start]",children:(0,n.jsxs)("div",{className:"flex min-h-[252px] flex-col rounded-[18px] border border-black/8 bg-white p-5 shadow-[10px_16px_30px_rgba(17,24,39,0.11)] md:min-h-[300px] md:p-6",children:[(0,n.jsx)(b,{score:e.score}),(0,n.jsxs)("p",{className:"mt-4 text-left text-[18px] leading-[1.5] text-[#374151] md:mt-5 md:text-[16px] md:leading-7",children:["“",e.quote,"”"]}),(0,n.jsx)("div",{className:"mt-auto pt-5 md:pt-5",children:(0,n.jsx)("h3",{className:"text-[18px] font-semibold text-[#111827] md:text-[16px]",children:e.author})})]})},e.author))}),(0,n.jsx)("div",{className:"mt-3 flex justify-center",children:(0,n.jsx)(z,{value:t,onChange:a,label:"Bla i kundeomtaler"})})]})]})})}function et(){return(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 overflow-hidden",children:(0,n.jsx)("div",{className:"absolute left-1/2 top-4 h-[560px] w-[92%] -translate-x-1/2 bg-[rgba(116,108,92,0.024)] md:top-5 md:h-[720px] md:w-[72%]",style:{WebkitMaskImage:"url('/images/harfagre-hero-watermark.svg')",maskImage:"url('/images/harfagre-hero-watermark.svg')",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskSize:"contain",maskSize:"contain"}})})}},5254:function(e,t,a){a.d(t,{InterestSignupForm:function(){return l}});var n=a(7437),r=a(2265),s=a(9679);function l(e){let{children:t}=e,[a,l]=(0,r.useState)(!1),[i,o]=(0,r.useState)(!1),[d,c]=(0,r.useState)(""),x=async e=>{var t,a;e.preventDefault();let n=e.currentTarget,r=new FormData(n),s=String(null!==(t=r.get("email"))&&void 0!==t?t:"").trim();if(l(!1),c(""),!s){c("Skriv inn e-post.");return}o(!0);try{if(!(await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({formType:"interest",email:s,website:String(null!==(a=r.get("website"))&&void 0!==a?a:"")})})).ok)throw Error("Interest signup failed");n.reset(),l(!0)}catch(e){c("Kunne ikke sende akkurat n\xe5.")}finally{o(!1)}};return(0,n.jsxs)("form",{onSubmit:x,className:"mx-auto mt-5 grid w-full max-w-[430px] gap-3",children:[(0,n.jsx)("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden"}),(0,n.jsx)("input",{name:"email",type:"email",required:!0,placeholder:"E-post",className:"h-12 rounded-full border border-black/22 bg-white px-4 text-base outline-none transition-colors focus:border-[#3F3934]"}),(0,n.jsxs)("button",{type:"submit",disabled:i,className:"mobile-standard-button page-cta-button mx-auto inline-flex items-center justify-center gap-2 rounded-full bg-[#F2D323] px-6 text-sm font-black text-[#0D0D0F] disabled:cursor-not-allowed disabled:opacity-70",children:[i?"Sender...":"Hold meg oppdatert",(0,n.jsx)(s.Z,{size:18})]}),t,a?(0,n.jsx)("p",{className:"text-sm font-semibold text-[#31543A]",children:"Takk. Vi gir beskjed."}):null,d?(0,n.jsx)("p",{className:"text-sm font-semibold text-red-700",children:d}):null]})}}}]);

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.