1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{377:(e,t,i)=>{"use strict";i.d(t,{default:()=>V});var n=i(9192),a=i(4212),r=i(8173),s=i(7869),l=i.n(s),o=i(8699),d=i(4131),c=i(5139),g=i(854),m=i(6494);let h=["Akne","Borrelia","Erektionsbesv\xe4r","Halsbr\xe4nna","Hosta","Kondylom","K\xf6nsherpes","Manlig h\xe5ravfall","Pollenallergi","Tidig utl\xf6sning","Urinv\xe4gsinfektion","\xd6goninflammation","\xd6vervikt"],x=["L\xe4karintyg golfbil","L\xe4karintyg inst\xe4lld resa","L\xe4karintyg k\xf6rkort","L\xe4karintyg taxi","L\xe4karintyg v\xe5rd av sjukt barn (VAB)"],p={Akne:"299 kr",Borrelia:"299 kr",Erektionsbesvär:"299 kr",Halsbränna:"299 kr",Hosta:"299 kr",Kondylom:"299 kr",Könsherpes:"299 kr","Manlig h\xe5ravfall":"299 kr",Pollenallergi:"299 kr","Tidig utl\xf6sning":"299 kr",Urinvägsinfektion:"299 kr",Ãgoninflammation:"299 kr",Ãvervikt:"299 kr"},f={"L\xe4karintyg golfbil":"149 kr","L\xe4karintyg inst\xe4lld resa":"249 kr","L\xe4karintyg k\xf6rkort":"999 kr","L\xe4karintyg taxi":"299 kr","L\xe4karintyg v\xe5rd av sjukt barn (VAB)":"149 kr"},u={Akne:"/akne-glad-webp.webp"},b={Akne:{title:"F\xe5 behandling f\xf6r Akne",description:"Professionell aknebehandling online med legitimerade l\xe4kare. Vi hj\xe4lper dig att bli av med finnar och f\xf6rebygga \xe4rrbildning.",features:["Konsultation med l\xe4kare","Receptbelagd medicin","Uppf\xf6ljning inkluderad","Diskret leverans"],process:"Fyll i v\xe5rt medicinska formul\xe4r, f\xe5 din behandling granskad av en l\xe4kare och f\xe5 recept direkt hem.",duration:"Svar inom 24 timmar"},Borrelia:{title:"F\xe5 behandling f\xf6r Borrelia",description:"Snabb och s\xe4ker behandling av borrelia med antibiotikabehandling efter f\xe4stingbett.",features:["Akut konsultation","Antibiotikabehandling","Profylaktisk behandling","Snabb handl\xe4ggning"],process:"Beskriv dina symtom och n\xe4r f\xe4stingbettet intr\xe4ffade. L\xe4karen bed\xf6mer och ordinerar behandling.",duration:"Akut handl\xe4ggning samma dag"},Erektionsbesvär:{title:"F\xe5 behandling f\xf6r Erektionsbesv\xe4r",description:"Diskret och professionell behandling av erektionsbesv\xe4r. V\xe5ra l\xe4kare hj\xe4lper dig hitta r\xe4tt behandling.",features:["Diskret konsultation","Bepr\xf6vade mediciner","Flexibel dosering","S\xe4ker leverans"],process:"Svara p\xe5 h\xe4lsofr\xe5gor, f\xe5 medicinsk bed\xf6mning och f\xe5 din behandling levererad diskret.",duration:"Behandling inom 24 timmar"},Halsbränna:{title:"F\xe5 behandling f\xf6r Halsbr\xe4nna",description:"Effektiv behandling av halsbr\xe4nna och reflux. Lindra dina besv\xe4r med r\xe4tt medicin.",features:["Magsyreh\xe4mmare","Snabb lindring","L\xe5ngtidsbehandling","Kostr\xe5d inkluderade"],process:"Beskriv dina symtom och hur l\xe4nge du haft besv\xe4r. F\xe5 personlig behandlingsplan.",duration:"Svar inom 24 timmar"},Hosta:{title:"F\xe5 behandling f\xf6r Hosta",description:"Behandla din envisa hosta med receptbelagd medicin. B\xe5de torra och slemiga hostor.",features:["Hostd\xe4mpande medicin","Sleml\xf6sande behandling","Antibiotikabehandling","Snabb lindring"],process:"Beskriv din hosta och eventuella andra symtom. L\xe4karen bed\xf6mer och ordinerar medicin.",duration:"Behandling samma dag"},Kondylom:{title:"F\xe5 behandling f\xf6r Kondylom",description:"Diskret behandling av kondylom (k\xf6nsherpes) med effektiva receptbelagda l\xe4kemedel.",features:["Diskret konsultation","Lokal behandling","Uppf\xf6ljning","F\xf6rebyggande r\xe5d"],process:"Beskriv dina symtom konfidentiellt. F\xe5 behandling och r\xe5d fr\xe5n specialistl\xe4kare.",duration:"Konsultation inom 24 timmar"},Könsherpes:{title:"F\xe5 behandling f\xf6r K\xf6nsherpes",description:"Konfidentiell behandling av k\xf6nsherpes. Snabb lindring av symtom och f\xf6rebyggande behandling.",features:["Antivirala mediciner","Symtomlindring","F\xf6rebyggande behandling","Diskret hantering"],process:"Konfidentiell konsultation om dina symtom. F\xe5 effektiv behandling direkt hem.",duration:"Akut handl\xe4ggning inom timmar"},"Manlig h\xe5ravfall":{title:"F\xe5 behandling f\xf6r Manlig h\xe5ravfall",description:"Bevara och \xe5terf\xe5 ditt h\xe5r med kliniskt bepr\xf6vade behandlingar f\xf6r manligt h\xe5ravfall.",features:["Finasterid behandling","Minoxidil l\xf6sning","Kombinationsbehandling","L\xe5ngtidsresultat"],process:"Beskriv ditt h\xe5ravfall och f\xe5 personlig behandlingsplan fr\xe5n v\xe5ra l\xe4kare.",duration:"Behandling inom 24 timmar"},Pollenallergi:{title:"F\xe5 behandling f\xf6r Pollenallergi",description:"Effektiv behandling av pollenallergi. Antihistaminer och n\xe4sspray f\xf6r symtomfri v\xe5r.",features:["Antihistaminer","Kortisonn\xe4sspray","F\xf6reb
1yggande behandling","S\xe4songsbehandling"],process:"Beskriv dina allergisymptom och f\xe5 skr\xe4ddarsydd behandling f\xf6r pollens\xe4songen.",duration:"Behandling inom 24 timmar"},"Tidig utl\xf6sning":{title:"F\xe5 behandling f\xf6r Tidig utl\xf6sning",description:"Diskret behandling f\xf6r tidig utl\xf6sning. F\xf6rb\xe4ttra din sexuella h\xe4lsa med bepr\xf6vade metoder.",features:["Retardspray","SSRI-behandling","Tekniker och r\xe5d","Diskret leverans"],process:"Konfidentiell konsultation och f\xe5 behandling anpassad efter dina behov.",duration:"Behandling inom 24 timmar"},Urinvägsinfektion:{title:"F\xe5 behandling f\xf6r Urinv\xe4gsinfektion",description:"Snabb behandling av urinv\xe4gsinfektioner med antibiotika. Lindra dina besv\xe4r snabbt.",features:["Antibiotikabehandling","Snabb lindring","F\xf6rebyggande r\xe5d","Uppf\xf6ljning"],process:"Beskriv dina symtom och f\xe5 antibiotikabehandling ordinerad inom kort.",duration:"Akut handl\xe4ggning samma dag"},Ãgoninflammation:{title:"F\xe5 behandling f\xf6r \xd6goninflammation",description:"Behandla \xf6goninflammation med receptbelagda \xf6gondroppar och salvor.",features:["Antibiotiska \xf6gondroppar","Kortisondroppar","Kombinationsbehandling","Snabb f\xf6rb\xe4ttring"],process:"Beskriv dina \xf6gonsymptom och f\xe5 effektiv behandling f\xf6r inflammationen.",duration:"Behandling inom 24 timmar"},Ãvervikt:{title:"F\xe5 behandling f\xf6r \xd6vervikt",description:"Medicinsk viktminskning med GLP-1 analoger och professionell uppf\xf6ljning.",features:["GLP-1 behandling","Kostplan","Regelbunden uppf\xf6ljning","L\xe5ngsiktiga resultat"],process:"H\xe4lsobed\xf6mning, personlig behandlingsplan och kontinuerlig uppf\xf6ljning.",duration:"Konsultation inom 48 timmar"}},k={"L\xe4karintyg golfbil":{title:"F\xe5 L\xe4karintyg golfbil",description:"Medicinskt intyg f\xf6r anv\xe4ndning av golfbil p\xe5 golfbanan n\xe4r du har medicinska sk\xe4l som hindrar dig fr\xe5n att g\xe5.",features:["Digitalt intyg","Legitimerad l\xe4kare","Snabb handl\xe4ggning","Godk\xe4nt av golfklubbar"],process:"Fyll i ans\xf6kan med medicinska uppgifter, l\xe4karen bed\xf6mer ditt behov och utf\xe4rdar intyget.",duration:"Klart inom 24 timmar"},"L\xe4karintyg inst\xe4lld resa":{title:"F\xe5 L\xe4karintyg inst\xe4lld resa",description:"L\xe4karintyg f\xf6r att styrka att du inte kan resa p\xe5 grund av sjukdom eller skada.",features:["F\xf6rs\xe4kringsgiltig","Detaljerad bed\xf6mning","Snabb utf\xe4rdning","Digital leverans"],process:"Beskriv din sjukdom/skada och resans datum. L\xe4karen bed\xf6mer och utf\xe4rdar intyget.",duration:"Akut handl\xe4ggning samma dag"},"L\xe4karintyg k\xf6rkort":{title:"F\xe5 L\xe4karintyg k\xf6rkort",description:"Medicinskt k\xf6rkortsbevis f\xf6r olika k\xf6rkortsbeh\xf6righeter enligt Transportstyrelsens krav.",features:["Transportstyrelsen-godk\xe4nt","Komplett unders\xf6kning","Syn- och h\xf6rseltest","Specialist l\xe4kare"],process:"Genomf\xf6r medicinsk unders\xf6kning online eller p\xe5 klinik, f\xe5 ditt intyg digitalt.",duration:"Unders\xf6kning inom 5-7 dagar"},"L\xe4karintyg taxi":{title:"F\xe5 L\xe4karintyg taxi",description:"H\xe4lsointyg f\xf6r taxif\xf6rarlegitimation enligt Transportstyrelsens medicinska krav.",features:["Transportstyrelsen-godk\xe4nt","Yrkesintyg","H\xe4lsobed\xf6mning","Digital hantering"],process:"Fyll i h\xe4lsoformul\xe4r, genomf\xf6r bed\xf6mning och f\xe5 ditt taxiintyg utf\xe4rdat.",duration:"Klart inom 48 timmar"},"L\xe4karintyg v\xe5rd av sjukt barn (VAB)":{title:"F\xe5 L\xe4karintyg v\xe5rd av sjukt barn (VAB)",description:"L\xe4karintyg f\xf6r att styrka att du beh\xf6ver v\xe5rda ditt sjuka barn och inte kan arbeta.",features:["F\xf6rs\xe4kringskassan-godk\xe4nt","Snabb handl\xe4ggning","Digital leverans","Bakdaterat vid behov"],process:"Beskriv barnets sjukdom och v\xe5rdbehovet. L\xe4karen bed\xf6mer och utf\xe4rdar VAB-intyget.",duration:"Klart inom 4 timmar"}},v=(e,t)=>
1"behandlingar"===t?u[e]||"/behandlingar.webp":"/intyg.webp",y=(e,t)=>"behandlingar"===t?b[e]||{title:"F\xe5 behandling f\xf6r ".concat(e),description:"B\xf6rja din digitala behandling idag. V\xe5ra legitimerade l\xe4kare hj\xe4lper dig med ".concat(null==e?void 0:e.toLowerCase(),"."),features:["Konsultation med l\xe4kare","Receptbelagd medicin","Uppf\xf6ljning inkluderad","Diskret leverans"],process:"Fyll i v\xe5rt medicinska formul\xe4r, f\xe5 din behandling granskad av en l\xe4kare och f\xe5 recept direkt hem.",duration:"Svar inom 24 timmar"}:k[e]||{title:"F\xe5 ".concat(e),description:"Ans\xf6k om ditt digitala l\xe4karintyg. Snabb handl\xe4ggning av v\xe5ra legitimerade l\xe4kare.",features:["Digital hantering","Legitimerad l\xe4kare","Snabb handl\xe4ggning","S\xe4ker leverans"],process:"Fyll i ans\xf6kan, l\xe4karen bed\xf6mer och utf\xe4rdar ditt intyg digitalt.",duration:"Klart inom 24 timmar"};function j(e){var t;let i,s,l,{isOpen:o,onClose:d,type:m,selectedItem:u,onItemSelect:b,onBack:k}=e,[j,w]=(0,a.useState)(null),[N,L]=(0,a.useState)(!1);(0,a.useEffect)(()=>{o&&"start"===m||w(null),o||L(!1)},[o,m]);let S=e=>{w(e)};if((0,a.useEffect)(()=>{let e=e=>{"Escape"===e.key&&d()};return o&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow="unset"}},[o,d]),!o||!m)return null;let C="start"===m&&!j&&!u,D="start"===m&&j&&!u,T="behandlingar"===(i="start"===m?j:m)?h:"intyg"===i?x:[];return N?(s="Hur det fungerar",l=""):u?(s=u,l=""):C?(s="Vad beh\xf6ver du hj\xe4lp med?",l="V\xe4lj vad du beh\xf6ver hj\xe4lp med"):D?(s="behandlingar"===j?"V\xe4lj behandling":"V\xe4lj intyg",l="behandlingar"===j?"Klicka p\xe5 den behandling du beh\xf6ver hj\xe4lp med":"V\xe4lj det intyg du beh\xf6ver ans\xf6ka om"):(s="behandlingar"===m?"V\xe4lj behandling":"V\xe4lj intyg",l="behandlingar"===m?"Klicka p\xe5 den behandling du beh\xf6ver hj\xe4lp med":"V\xe4lj det intyg du beh\xf6ver ans\xf6ka om"),(0,n.jsx)(g.N,{children:o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",onClick:d}),(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:(0,n.jsxs)(c.P.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{type:"spring",duration:.3},className:"max-h-[90vh] w-full max-w-4xl overflow-hidden rounded-3xl bg-[#F8F6F3] shadow-xl",onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:"flex items-center justify-between p-6 pb-4 sm:p-8 sm:pb-6",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3 pr-4 sm:gap-4",children:[(N||u||"start"===m&&j)&&(0,n.jsx)("button",{onClick:()=>{N?L(!1):u?k():j&&"start"===m?w(null):k()},className:"flex-shrink-0 rounded-xl p-2 transition-colors hover:bg-white/50",children:(0,n.jsx)("svg",{className:"h-5 w-5 text-gray-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 12H5M12 19l-7-7 7-7"})})}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("h2",{className:"break-words text-2xl font-bold leading-tight text-black sm:text-3xl md:text-4xl",children:s}),l&&(0,n.jsx)("p",{className:"mt-1 text-sm text-gray-700 sm:mt-2 sm:text-base",children:l})]})]}),(0,n.jsx)("button",{onClick:d,className:"flex-shrink-0 rounded-xl p-2 transition-colors hover:bg-white/50",children:(0,n.jsx)("svg",{className:"h-6 w-6 text-gray-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,n.jsx)("div",{className:"max-h-[70vh] overflow-y-auto px-8 pb-8",children:N?(0,n.jsxs)("div",{className:"space-y-4 md:space-y-6",children:[(0,n.jsxs)(c.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"flex items-center justify-between rounded-3xl bg-black p-3 md:p-4",children:[(0,n.jsx)("div",{className:"text-lg font-medium text-white md:text-2xl",children:"behandlingar"===i?"S\xe5 h\xe4r fungerar behandlingen":"S\xe5 h\xe4r fungerar intygsskrivningen"}),(0,n.jsx)(r.default,{src:v(u||"",i),alt:u||"",width:96,height:96,className:"h-16 w-16 rounded-xl object-cover md:h-24 md:w-24"})]}),(0,n.jsxs)("div",{className:"space-y-3 md:space-y-4",children:[(0,n.jsxs)(c.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.1},className:"flex items-center gap-3 rounded-3xl bg-white p-3 shadow-md md:gap-4 md:p-5",children:[(0,n.jsx)(r.default,{src:"/1.png",alt:"H\xe4lsoformul\xe4r online",width:96,height:96,className:"h-16 w-16 flex-shrink-0 rounded-xl object-cover md:h-24 md:w-24"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,n.jsx)("div",{className:"flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full bg-black md:h-5 md:w-5",children:(0,n.jsx)("span",{className:"text-xs font-normal text-white md:text-sm",children:"1"})}),(0,n.jsx)("h3",{className:"text-sm font-medium md:text-base",children:"H\xe4lsoformul\xe4r online"})]}),(0,n.jsx)("p",{className:"text-xs leading-relaxed text-black md:text-sm",children:"Svara p\xe5 ett antal fr\xe5gor om dina symptom och h\xe4lsa. Ta reda p\xe5 om DD \xe4r r\xe4tt f\xf6r dig"})]})]}),(0,n.jsxs)(c.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.2},className:"flex items-center gap-3 rounded-3xl bg-white p-3 shadow-md md:gap-4 md:p-5",children:[(0,n.jsx)(r.default,{src:"/3.png",alt:"Utforska och betala f\xf6r din behandling",width:96,height:96,className:"h-16 w-16 flex-shrink-0 rounded-xl object-cover md:h-24 md:w-24"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,n.jsx)("div",{className:"flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full bg-black md:h-5 md:w-5",children:(0,n.jsx)("span",{className:"text-xs font-normal text-white md:text-sm",children:"2"})}),(0,n.jsx)("h3",{className:"text-sm font-medium md:text-base",children:"behandlingar"===i?"Utforska och betala f\xf6r din behandling":"Utforska och betala f\xf6r din intyg"})]}),(0,n.jsx)("p",{className:"text-xs leading-relaxed text-black md:text-sm",children:"Om behandling inte \xe4r l\xe4mplig \xe5terbetalas du direkt"})]})]}),(0,n.jsxs)(c.P.div,{initial:{opacity:0,x:-20}
1,animate:{opacity:1,x:0},transition:{delay:.3},className:"flex items-center gap-3 rounded-3xl bg-white p-3 shadow-md md:gap-4 md:p-5",children:[(0,n.jsx)(r.default,{src:"/DD2.png",alt:"Chatta med din l\xe4kare",width:96,height:96,className:"h-16 w-16 flex-shrink-0 rounded-xl object-cover md:h-24 md:w-24"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,n.jsx)("div",{className:"flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full bg-black md:h-5 md:w-5",children:(0,n.jsx)("span",{className:"text-xs font-normal text-white md:text-sm",children:"3"})}),(0,n.jsx)("h3",{className:"text-sm font-medium md:text-base",children:"Chatta med din l\xe4kare"})]}),(0,n.jsx)("p",{className:"text-xs leading-relaxed text-black md:text-sm",children:"Din l\xe4kare behandlar ditt \xe4rende och ni kan diskutera din behandling"})]})]}),(0,n.jsxs)(c.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4},className:"flex items-center gap-3 rounded-3xl bg-white p-3 shadow-md md:gap-4 md:p-5",children:[(0,n.jsx)(r.default,{src:"/hero2-2048x1365.jpg",alt:"Hemleverans av behandling",width:96,height:96,className:"h-16 w-16 flex-shrink-0 rounded-xl object-cover md:h-24 md:w-24"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,n.jsx)("div",{className:"flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full bg-black md:h-5 md:w-5",children:(0,n.jsx)("span",{className:"text-xs font-normal text-white md:text-sm",children:"4"})}),(0,n.jsx)("h3",{className:"text-sm font-medium md:text-base",children:"behandlingar"===i?"Hemleverans av behandling":"Hemleverans av intyg"})]}),(0,n.jsx)("p",{className:"text-xs leading-relaxed text-black md:text-sm",children:"Diskret leverans och fri frakt fr\xe5n v\xe5rt samarbetsapotek"})]})]})]}),(0,n.jsx)("div",{className:"space-y-10",children:(0,n.jsx)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"flex justify-center",children:(0,n.jsxs)("button",{className:"flex items-center gap-4 roun
1ded-full bg-black px-8 py-3 text-sm font-normal text-white transition-colors hover:bg-gray-800 md:px-10 md:py-4 md:text-base",children:[(0,n.jsx)("span",{children:"N\xe4sta"}),(0,n.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7"})})]})})})]}):u?(0,n.jsxs)("div",{children:[(0,n.jsx)(c.P.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},className:"mb-8 rounded-3xl bg-white p-6 shadow-sm sm:p-8",children:(0,n.jsxs)("div",{className:"flex flex-col gap-6 sm:flex-row sm:items-start sm:gap-8",children:[(0,n.jsx)("div",{className:"h-48 w-full flex-shrink-0 overflow-hidden rounded-2xl shadow-sm sm:h-48 sm:w-48",children:(0,n.jsx)(r.default,{src:v(u||"",i),alt:u||"",fill:!0,className:"object-cover"})}),(0,n.jsxs)("div",{className:"flex-1 text-center sm:text-left",children:[(0,n.jsx)("h3",{className:"mb-3 text-xl font-bold leading-tight text-black sm:mb-4 sm:text-3xl lg:text-4xl",children:y(u||"",i).title}),(0,n.jsxs)("div",{className:"mb-4 text-xl font-bold text-gray-900 sm:mb-6 sm:text-2xl lg:text-3xl",children:[(t=u||"","behandlingar"===i?p[t]||"299 kr":f[t]||"199 kr"),"behandlingar"===i?"/recept":"/intyg"]}),(0,n.jsx)("p",{className:"mb-4 text-sm leading-relaxed text-gray-700 sm:text-base lg:text-lg",children:y(u||"",i).description}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("h4",{className:"mb-2 font-semibold text-gray-900",children:"Vad ing\xe5r:"}),(0,n.jsx)("ul",{className:"space-y-1 text-sm text-gray-700",children:y(u||"",i).features.map((e,t)=>(0,n.jsxs)("li",{className:"flex items-center gap-2",children:[(0,n.jsx)("svg",{className:"h-4 w-4 flex-shrink-0 text-green-500",fill:"currentColor",viewBox:"0 0 20 20",children:(0,n.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]},t))})]}),(0,n.jsxs)("div",{className:"space-y-2 text-sm text-gray-600",children:[(0,n.jsxs)("p",{children:[(0,n.jsx)("span",{className:"font-medium",children:"Process:"})," ",y(u||"",i).process]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("span",{className:"font-medium",children:"Handl\xe4ggningstid:"})," ",y(u||"",i).duration]})]})]})]})}),(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 sm:flex-row",children:[(0,n.jsxs)(c.P.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>{L(!0)},className:"flex w-full items-center justify-center gap-2 rounded-full bg-black px-6 py-3 text-sm font-medium text-white shadow-sm transition-all duration-200 hover:bg-gray-800 hover:shadow-md sm:w-auto sm:px-8 sm:py-4 sm:text-base",children:[(0,n.jsx)(r.default,{src:"/BI-vit.svg",alt:"BankID",width:20,height:20,className:"h-4 w-4 sm:h-5 sm:w-5"}),"behandlingar"===i?"F\xe5 behandling":"Ans\xf6k om intyg"]}),(0,n.jsx)(c.P.button,{whileHover:{scale:1.02},whileTap:{scale:.98},className:"w-full rounded-full border-2 border-gray-300 bg-transparent px-6 py-3 text-sm font-medium text-black shadow-sm transition-all duration-200 hover:border-gray-400 hover:bg-gray-100 hover:shadow-md sm:w-auto sm:px-8 sm:py-4 sm:text-base",children:"Mer info"})]})]}):C?(0,n.jsxs)("div",{className:"mx-auto grid max-w-2xl grid-cols-1 gap-6 sm:grid-cols-2",children:[(0,n.jsxs)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},onClick:()=>S("behandlingar"),className:"flex cursor-pointer items-center gap-4 roun
1ded-2xl bg-white p-4 shadow-sm transition-shadow hover:shadow-md sm:block sm:gap-0",whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,n.jsx)("div",{className:"mb-0 aspect-square w-20 flex-shrink-0 overflow-hidden rounded-xl sm:mb-3 sm:aspect-[4/3] sm:w-full",children:(0,n.jsx)(r.default,{src:"/behandlingar.webp",alt:"Behandlingar",fill:!0,className:"object-cover"})}),(0,n.jsxs)("div",{className:"flex flex-1 items-center justify-between sm:flex-initial",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:"Behandlingar"}),(0,n.jsx)("svg",{className:"h-5 w-5 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7"})})]})]}),(0,n.jsxs)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},onClick:()=>S("intyg"),className:"flex cursor-pointer items-center gap-4 rounded-2xl bg-white p-4 shadow-sm transition-shadow hover:shadow-md sm:block sm:gap-0",whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,n.jsx)("div",{className:"mb-0 aspect-square w-20 flex-shrink-0 overflow-hidden rounded-xl sm:mb-3 sm:aspect-[4/3] sm:w-full",children:(0,n.jsx)(r.default,{src:"/intyg.webp",alt:"Intyg",fill:!0,className:"object-cover"})}),(0,n.jsxs)("div",{className:"flex flex-1 items-center justify-between sm:flex-initial",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:"Intyg"}),(0,n.jsx)("svg",{className:"h-5 w-5 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7"})})]})]})]}):(0,n.jsx)("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-3 lg:grid-cols-4",children:T.map((e,t)=>(0,n.jsx)(c.P.button,{onClick:()=>b(e),initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.05*t},className:"group rounded-2xl bg-white p-4 text-left text-sm font-semibold text-black shadow-sm transition-all duration-300 hover:shadow-md",whileHover:{scale:1.01},whileTap:{scale:.99},children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"hyphens-auto break-words",lang:"sv",children:e}),(0,n.jsx)("svg",{className:"h-4 w-4 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7"})})]})},e))})})]})})]})})}var w=i(7784),N=i(7011),L=i(2500);let S=[{category:"V\xe5rd",subtitle:"V\xe5ra behandlingar",icon:"\uD83C\uDFE5",treatments:[{name:"L\xe4kemedelsbehandling",description:"Medicinsk behandling av obesitas med l\xe4kare",url:"/viktnedgang"},{name:"Kostr\xe5dgivning",description:"Kostr\xe5dgivning med legitimerad dietist",url:"/dietist"},{name:"Ungdom",description:"Hj\xe4lp med vikten f\xf6r dig fr\xe5n 16 \xe5r",url:"/ungdom"}]},{category:"Vanliga fr\xe5gor",subtitle:"F\xe5 svar p\xe5 dina fr\xe5gor",icon:"â",treatments:[{name:"Fr\xe5gor & Svar",description:"Vanliga fr\xe5gor och svar om v\xe5ra tj\xe4nster",url:"/fragor-svar"},{name:"Priser",description:"Patientavgifter f\xf6r bes\xf6k hos oss",url:"/pris"},{name:"S\xe5 fungerar det",description:"Enkel digital v\xe5rd",url:"/sa-fungerar-det"}]},{category:"Fakta & r\xe5d",subtitle:"L\xe4s v\xe5ra artiklar",icon:"\uD83D\uDCDA",treatments:[{name:"Akademi",description:"Patientinformation om viktbehandling och l\xe4kemedel",url:"/akademi"},{name:"Artiklar",description:"L\xe4s v\xe5ra h\xe4lsoartiklar skrivna av legitimerade l\xe4kare",url:"/artiklar"}]},{category:"Verktyg",subtitle:"H\xe4lsor\xe4knare och verktyg",icon:"\uD83D\uDD27",treatments:[{name:"BMI-r\xe4knare",description:"Ber\xe4kna ditt Body Mass Index och f\xe5 personliga rekommendationer",url:"/bmi-raknare"},{name:"Kaloriber\xe4knare",description:"Ber\xe4kna ditt dagliga kaloribehov och f\xe5 rekommendationer",url:"/kaloriraknare"},{name:"Proteinr\xe4knare",description:"R\xe4kna ditt dagliga proteinbehov baserat p\xe5 dina m\xe5l",url:"/proteinraknare"},{name:"Varf\xf6r g\xe5r jag inte ner i vikt?",description:"Uppt\xe4ck faktorer som kan p\xe5verka din viktminskning",url:"/varfor-gar-jag-inte-ner-i-vikt"}]}
1],C=[{title:"L\xe4kemedelsbehandling",subtitle:"Medicinsk viktminskning",href:"/viktnedgang",image:"https://drvikt-media.b-cdn.net/viktnedgang6.webp",popular:!0,tag:"Recept"},{title:"Kostr\xe5dgivning",subtitle:"Dietistbehandling",href:"/dietist",image:"/dietistframsida.webp",popular:!1,tag:"Kostr\xe5d"}],D=[{title:"Om oss",href:"/om-oss",description:"L\xe4s mer om DrVikt"},{title:"Kontakt",href:"/kontakt",description:"Kontakta DrVikt"}];function T(e){var t;let{isOpen:i,onClose:s}=e,[o,h]=(0,a.useState)("main"),[x,p]=(0,a.useState)(null),[f,u]=(0,a.useState)(!1),b=(0,m.usePathname)(),{setIsUngdomPanelOpen:k}=(0,L.S)(),v="/ungdom"===b||b.startsWith("/ungdom/"),y=()=>{k(!0),s()},j=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex h-5 items-center justify-center",children:(0,n.jsx)(r.default,{src:"/drviktikon.webp",alt:"Kom ig\xe5ng",width:20,height:20,className:"h-5 w-5 object-contain"})}),(0,n.jsx)("span",{className:"text-[10px] font-medium text-gray-700",children:"Kom ig\xe5ng"})]});return(0,a.useEffect)(()=>(i?document.body.style.overflow="hidden":(document.body.style.overflow="unset",h("main"),p(null)),()=>{document.body.style.overflow="unset"}),[i]),(0,a.useEffect)(()=>{function e(){window.innerWidth>=1280&&i&&s()}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i,s]),(0,n.jsxs)(g.N,{children:[i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"fixed inset-0 z-50 bg-black/50",onClick:s},"sidebar-backdrop"),(0,n.jsxs)(c.P.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"tween",duration:.3,ease:[.25,.46,.45,.94]},className:"fixed right-0 top-0 z-50 h-full w-full max-w-sm overflow-hidden rounded-l-3xl bg-white shadow-xl",style:{touchAction:"pan-y"},children:[(0,n.jsxs)("div",{className:"flex h-16 items-center justify-between border-b border-gray-100 px-2",children:[(0,n.jsxs)("div",{className:"flex flex-1 items-center gap-3",children:["category"===o&&(0,n.jsx)("button",{onClick:()=>{h("main"),p(null)},className:"flex h-12 w-12 items-center justify-center rounded-full border-2 border-transparent transition-colors hover:bg-gray-50",children:(0,n.jsx)(w.A,{className:"h-5 w-5 text-gray-700"})}),(0,n.jsx)("h2",{className:"".concat("main"===o?"text-xl":"text-base"," pl-4 font-medium text-gray-900"),children:"main"===o?"Meny":null==x?void 0:x.category})]}),(0,n.jsxs)("div",{className:"flex items-end gap-1",children:[(0,n.jsxs)("button",{onClick:v?y:()=>u(!0),className:"flex flex-col items-center justify-end rounded-full border-2 border-transparent px-2 transition-colors hover:bg-gray-50",children:[(0,n.jsx)("div",{className:"flex h-5 items-center justify-center",children:(0,n.jsx)(r.default,{src:"/login.webp",alt:"Logga in",width:48,height:20,className:"h-5 w-auto object-contain"})}),(0,n.jsx)("span",{className:"text-[10px] font-medium text-gray-700",children:"Logga in"})]}),v?(0,n.jsx)("button",{onClick:y,className:"flex flex-col items-center justify-end rounded-full border-2 border-transparent px-2 transition-colors hover:bg-gray-50",children:j}):(0,n.jsx)("a",{href:"/start",className:"flex flex-col items-center justify-end rounded-full border-2 border-transparent px-2 transition-colors hover:bg-gray-50",children:j}),(0,n.jsx)("button",{className:"flex h-12 w-12 items-center justify-center rounded-full border-2 border-transparent transition-colors hover:bg-gray-50",onClick:s,children:(0,n.jsx)(d.A,{className:"h-6 w-6 text-gray-700"})})]})]}),(0,n.jsx)("div",{className:"scrollbar-hide relative h-[calc(100vh-4rem)] overflow-y-auto overflow-x-hidden",style:{touchAction:"pan-y"},children:(0,n.jsx)(g.N,{mode:"wait",children:"main"===o?(0,n.jsxs)(c.P.div,{initial:{opacity:1,x:0},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2,ease:"easeInOut"},className:"py-4 pb-40",children:[(0,n.jsxs)("div",{className:"mb-8",children:[(0,n.jsx)("div",{className:"px-6",children:(0,n.jsx)("h6",{className:"mb-4 text-xs font-bold uppercase tracking-wider text-gray-500",children:"UTFORSKA"})}),(0,n.jsx)("div",{className:"px-2",children:S.map((e,t)=>(0,n.jsxs)("button",{onClick:()=>{p(e),h("category")},className:"mx-2 flex w-full items-center justify-between rounded-2xl px-4 py-4 transition-colors hover:bg-gray-50",children:[(0,n.jsx)("span",{className:"text-lg font-medium text-gray-900",children:e.category}),(0,n.jsx)(N.A,{className:"h-6 w-6 text-gray-600"})]},t))})]}),(0,n.jsx)("div",{className:"-mx-8 mb-8 h-6 bg-gray-100/60"}),(0,n.jsxs)("div",{className:"mb-8",children:[(0,n.jsx)("div",{className:"mb-4 px-6",children:(0,n.jsx)("h6",{className:"text-xs font-bold uppercase tracking-wider text-gray-500",children:"TR\xc4FFA DrVikt"})}),(0,n.jsx)("div",{className:"px-2",children:D.map((e,t)=>(0,n.jsxs)(l(),{href:e.href,className:"mx-2 block rounded-2xl px-4 py-3 transition-colors hover:bg-gray-50",onClick:s,children:[(0,n.jsx)("div",{className:"text-lg font-medium text-gray-900",children:e.title}),(0,n.jsx)("div",{className:"mt-1 text-sm text-gray-600",children:e.description})]},t))})]}),(0,n.jsx)("div",{className:"-mx-8 mb-8 h-6 bg-gray-100/60"}),(0,n.jsxs)("div",{className:"mb-8 px-4",children:[(0,n.jsx)("div",{className:"mb-4 px-2",children:(0,n.jsx)("h6",{className:"text-xs font-bold uppercase tracking-wider text-gray-500",children:"WEBBINLOGGNING"})}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("button",{onClick:v?y:()=>u(!0),className:"flex-1 rounded-full bg-black py-2.5 text-center text-sm font-bold text-white transition-opacity hover:opacity-90",children:"Logga in"}),v?(0,n.jsx)("button",{className:"relative flex-1 overflow-hidden rounded-full",style:{backgroundImage:"linear-gradient(rgb(253, 212, 163), rgb(253, 212, 163) 13%, rgb(251, 166, 158) 32%, rgb(251, 111, 236) 49%, rgb(132, 169, 250) 68%, rgb(144, 220, 247) 86%, rgb(199, 233, 171))",padding:"2px"},onClick:y,children:(0,n.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-full bg-white py-2.5 text-sm font-bold text-gray-900",children:"Kom ig\xe5ng"})}):(0,n.jsx)("a",{href:"/start",className:"relative flex-1 overflow-hidden rounded-full",style:{backgroundImage:"linear-gradient(rgb(253, 212, 163), rgb(253, 212, 163) 13%, rgb(251, 166, 158) 32%, rgb(251, 111, 236) 49%, rgb(132, 169, 250) 68%, rgb(144, 220, 247) 86%, rgb(199, 233, 171))",padding:"2px"},onClick:s,children:(0,n.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-full bg-white py-2.5 text-sm font-bold text-gray-900",children:"Kom ig\xe5ng"})})]})]}),(0,n.jsx)("div",{className:"-mx-8 mb-8 h-6 bg-gray-100/60"}),(0,n.jsxs)("div",{className:"mb-8",children:[(0,n.jsx)("div",{className:"mb-4 px-6",children:(0,n.jsx)("h6",{className:"text-xs font-bold uppercase tracking-wider text-gray-500",children:"DRVIKTS BEHANDLINGAR"})}),(0,n.jsx)("div",{className:"px-4",children:(0,n.jsx)("div",{className:"scrollbar-hide flex gap-4 overflow-x-auto pb-4",children:C.map((e,t)=>(0,n.jsx)(l(),{href:e.href,className:"w-52 flex-none rounded-2xl bg-gray-100 p-4 transition-colors hover:bg-gray-50",onClick:s,children:(0,n.jsxs)("div",{className:"flex h-full flex-col",children:[(0,n.jsx)("div",{className:"mb-2 flex items-start",children:(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"rounded-full bg-white px-2 py-1 text-xs font-medium text-gray-600",children:e.tag}),e.popular&&(0,n.jsx)("span",{className:"rounded-full bg-green-500 px-2 py-1 text-xs font-medium text-white",children:"Popul\xe4r"})]})}),(0,n.jsx)("div",{className:"flex flex-1 items-center justify-center py-2",children:(0,n.jsx)(r.default,{src:e.image,alt:e.title,width:120,height:120,className:"h-28 w-28 rounded-lg object-cover"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"mb-1 text-sm font-medium text-gray-900",children:e.title}),(0,n.jsx)("p",{className:"text-xs text-gray-600",children:e.subt
1itle})]})]})},t))})})]})]},"main"):(0,n.jsx)(c.P.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.2,ease:"easeInOut"},className:"py-4 pb-40",children:(0,n.jsx)("div",{className:"px-2",children:null==x||null==(t=x.treatments)?void 0:t.map((e,t)=>(0,n.jsxs)(l(),{href:e.url,className:"mx-2 block rounded-2xl px-4 py-4 transition-colors hover:bg-gray-50",onClick:s,children:[(0,n.jsx)("div",{className:"mb-1 text-lg font-medium text-gray-900",children:e.name}),(0,n.jsx)("div",{className:"text-sm text-gray-600",children:e.description})]},t))})},"category")})}),(0,n.jsx)("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 z-20 h-12 rounded-bl-3xl",style:{background:"linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%)"}})]},"sidebar-panel")]}),f&&(0,n.jsxs)(c.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[60] flex items-start justify-center",onClick:()=>u(!1),children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/30"}),(0,n.jsxs)(c.P.div,{initial:{y:"-100%"},animate:{y:0},exit:{y:"-100%"},transition:{type:"tween",duration:.3,ease:"easeOut"},className:"relative w-full rounded-b-3xl bg-white shadow-xl",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("div",{className:"relative flex min-h-[65px] items-center justify-end px-4",children:(0,n.jsx)("button",{onClick:()=>u(!1),className:"absolute right-2 rounded-full p-2 transition-colors hover:bg-[#D6E9E0]",children:(0,n.jsx)(d.A,{className:"h-8 w-8 text-[#013f2a]",strokeWidth:1})})}),(0,n.jsxs)("div",{className:"px-5 pb-6",children:[(0,n.jsx)("div",{className:"mb-5 flex justify-center",children:(0,n.jsx)(r.default,{src:"https://drvikt-media.b-cdn.net/drv-header.webp",alt:"DrVikt",width:150,height:61,className:"h-16 w-auto"})}),(0,n.jsxs)("p",{className:"mb-4 text-center text-[13px] leading-relaxed text-gray-700",children:["V\xe4lkommen till DrVikt. ",(0,n.jsx)("br",{}),"Vi rekommenderar att du anv\xe4nder appen f\xf6r b\xe4sta upplevelse. Du kan ocks\xe5 logga in i patientplattformen p\xe5 webben f\xf6r att hantera din behandling och f\xf6lja din h\xe4lsoresa."]}),(0,n.jsx)("a",{href:"https://dashboard.curoflow.se/drvikt",className:"mb-2 flex w-full items-center justify-center rounded-full bg-[#013f2a] py-3 text-[13px] font-bold text-white transition-all hover:bg-[#1a5340]",children:"\xd6ppna patientplattformen"}),(0,n.jsx)("a",{href:"/start",className:"mb-4 flex w-full items-center justify-center rounded-full border border-[#013f2a] bg-white py-3 text-[13px] font-bold text-[#013f2a] transition-colors hover:bg-[#D6E9E0]",children:"\xc4r du inte patient?"}),(0,n.jsxs)("div",{className:"mb-4 flex items-center justify-center gap-3",children:[(0,n.jsx)("a",{href:"https://apps.apple.com/se/app/drvikt/id6502696625",target:"_blank",rel:"noopener noreferrer",className:"transition-opacity hover:opacity-80",children:(0,n.jsx)(r.default,{src:"https://drvikt-media.b-cdn.net/appstoreSV.svg",alt:"Ladda ner p\xe5 App Store",width:120,height:40,className:"h-10 w-auto"})}),(0,n.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.curoflow.drvikt",target:"_blank",rel:"noopener noreferrer",className:"transition-opacity hover:opacity-80",children:(0,n.jsx)(r.default,{src:"https://drvikt-media.b-cdn.net/playstoreSV.svg",alt:"Ladda ner p\xe5 Google Play",width:135,height:40,className:"h-10 w-auto"})})]}),(0,n.jsxs)("a",{href:"/om-oss",className:"flex items-center justify-center gap-1 pt-4 text-[13px] font-bold text-[#013f2a] transition-opacity hover:opacity-70",children:[(0,n.jsx)("span",{children:"Om DrVikt"}),(0,n.jsx)("svg",{width:"12",height:"18",viewBox:"0 0 18 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:(0,n.jsx)("path",{d:"M1 8.5h15m-5-6l5.293 5.293a1 1 0 010 1.414L11 14.5"})})]})]})]})]},"login-modal-backdrop")]})}var E=i(5869),B=i(4230),P=i(9454);function F(){let{isUngdomPanelOpen:e,setIsUngdomPanelOpen:t}=(0,L.S)(),i=()=>t(!1);return(0,a.useEffect)(()=>{if(!e)return;let i=e=>{"Escape"===e.key&&t(!1)};return document.addEventListener("keydown",i),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",i),document.body.style.overflow=""}},[e,t]),(0,n.jsx)(g.N,{children:e&&(0,n.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-[60] flex items-end justify-center bg-black/50 p-0 sm:items-center sm:p-6",onClick:i,role:"dialog","aria-modal":"true","aria-label":"Kom ig\xe5ng med DrVikt Ungdom",children:(0,n.jsxs)(c.P.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},exit:{opacity:0,y:24},transition:{duration:.25},onClick:e=>e.stopPropagation(),className:"max-h-[92vh] w-full max-w-md overflow-y-auto rounded-t-[2rem] bg-white shadow-xl sm:rounded-[2rem]",children:[(0,n.jsx)("div",{className:"flex items-center justify-end px-4 pt-4",children:(0,n.jsx)("button",{onClick:i,"aria-label":"St\xe4ng",className:"rounded-full p-2 transition-colors hover:bg-[#D6E9E0]",children:(0,n.jsx)(d.A,{className:"h-8 w-8 text-[#013f2a]",strokeWidth:1})})}),(0,n.jsxs)("div",{className:"flex flex-col items-center px-6 pb-8",children:[(0,n.jsx)("div",{className:"mb-6 flex justify-center",children:(0,n.jsx)(r.default,{src:"/drviktungdomlogga.webp",alt:"DrVikt Ungdom",width:220,height:31,className:"h-auto w-44"})}),(0,n.jsx)("p",{className:"mb-6 mt-0 text-center text-sm leading-relaxed text-gray-700",children:"V\xe4lj vad ditt bes\xf6k g\xe4ller. Alla bes\xf6k kostar 599 kr. \xc4r du under 18 \xe5r g\xf6r ni anm\xe4lan tillsammans med en v\xe5rdnadshavare, som legitimerar sig med BankID."}),(0,n.jsxs)(B.A,{href:P.e.ungdomStart,onClick:i,className:"mb-3 flex w-full flex-col items-center rounded-2xl bg-[#013f2a] px-5 py-4 text-center transition-all hover:bg-[#1a5340]",children:[(0,n.jsx)("span",{className:"text-sm font-bold text-white",children:"Start â f\xf6rsta bes\xf6ket"}),(0,n.jsx)("span",{className:"mt-1 text-xs leading-relaxed text-white/80",children:"Bed\xf6mning hos sjuksk\xf6terska och l\xe4kare. Prover tillkommer med 599 kr som extern kostnad."})]}),(0,n.jsxs)(B.A,{href:P.e.ungdomUppfoljning,onClick:i,className:"mb-6 flex w-full flex-col items-center rounded-2xl border border-[#013f2a] bg-white px-5 py-4 text-center transition-colors hover:bg-[#D6E9E0]",children:[(0,n.jsx)("span",{className:"text-sm font-bold text-[#013f2a]",children:"Uppf\xf6ljning"}),(0,n.jsx)("span",{className:"mt-1 text-xs leading-relaxed text-[rgba(29,29,31,0.7)]",children:"F\xf6r dig som redan p\xe5b\xf6rjat din behandling hos DrVikt Ungdom."})]}),(0,n.jsxs)("div",{className:"mb-4 w-full border-t border-gray-200 pt-6",children:[(0,n.jsx)("p",{className:"mb-3 mt-0 text-center text-xs font-bold uppercase tracking-wider text-gray-500",children:"Redan patient?"}),(0,n.jsx)("p",{className:"mb-4 mt-0 text-center text-sm leading-relaxed text-gray-700",children:"Vi rekommenderar att du anv\xe4nder appen f\xf6r b\xe4sta upplevelse. Du kan ocks\xe5 logga in i patientplattformen p\xe5 webben f\xf6r att hantera din behandling och f\xf6lja din h\xe4lsoresa."}),(0,n.jsx)("a",{href:"https://dashboard.curoflow.se/drvikt",className:"flex w-full items-center justify-center rounded-full bg-[#1a191b] py-3.5 text-sm font-bold text-white transition-all hover:bg-gray-800",children:"\xd6ppna patientplattformen"})]}),(0,n.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,n.jsx)("a",{href:"https://apps.apple.com/se/app/drvikt/id6502696625",target:"_blank",rel:"noopener noreferrer",className:"transition-opacity hover:opacity-80",children:(0,n.jsx)(r.default,{src:"https://drvikt-media.b-cdn.net/appstoreSV.svg",alt:"Ladda ner p\xe5 App Store",width:120,height:40,className:"h-10 w-auto"})}),(0,n.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.curoflow.drvikt",target:"_blank",rel:"noopener noreferrer",className:"transition-opacity hover:opacity-80",children:(0,n.jsx)(r.default,{src:"https://drvikt-media.b-cdn.net/playstoreSV.svg",alt:"Ladda ner p\xe5 Google Play",width:135,height:40,className:"h-10 w-auto"})})]})]})]},"ungdom-panel")},"ungdom-panel-backdrop")})}function K(e){let{isUngdom:t,onUngdomClick:i,className:a,style:r,children:s}=e;return t?(0,n.jsx)("button",{type:"button",onClick:i,className:"".concat(a," cursor-pointer"),style:r,children:s}):(0,n.jsx)("a",{href:"/start",className:a,style:r,children:s})}function V(){let e=(0,m.usePathname)(),t="/ungdom"===e||e.startsWith("/ungdom/"),[i,s]=(0,a.useState)(null),[h,x]=(0,a.useState)(!1),[p,f]=(0,a.useState)(null),[u,b]=(0,a.useState)(null),[k,v]=(0,a.useState)(!1),[y,w]=(0,a.useState)(!1),{isLoginPanelOpen:N,setIsLoginPanelOpen:S}=(0,E.z)(),{setIsUngdomPanelOpen:C}=(0,L.S)();if((0,a.useEffect)(()=>{function e(e){let t=e.target;i&&(t.closest(".dropdown-container")||s(null))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[i]),(0,a.useEffect)(()=>{function e(){window.innerWidth>=1280&&h&&x(!1)}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[h]),(0,a.useEffect)(()=>(N?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[N]),(0,a.useEffect)(()=>{function e(){w(window.scrollY>0)}return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),"/sa-fungerar-det"===e||"/start"===e)return null;let D=e=>{s(i===e?null:e)},B=()=>C(!0);return(0,n.jsxs)("header",{className:"fixed left-0 right-0 top-0 z-50 w-full bg-[rgb(249,249,250)] transition-shadow duration-300",style:{boxShadow:y?"0 4px 12px rgba(0, 0, 0, 0.08)":"none"},children:[(0,n.jsxs)("div",{className:"mx-auto w-full px-3 xl:px-6",style:{maxWidth:"min(100%, 1720px)"},children:[(0,n.jsxs)("div",{className:"hidden xl:grid xl:items-center xl:gap-4",style:{gridTemplateColumns:"minmax(200px, 1fr) minmax(800px, 2fr) minmax(200px, 1fr)",gridTemplateRows:"auto",paddingTop:"6px",paddingBottom:"6px"},children:[(0,n.jsx)("div",{className:"flex items-center justify-start",children:(0,n.jsx)(l(),{href:t?"/ungdom":"/",className:"transition-opacity hover:opacity-80","aria-label":t?"DrVikt Ungdom Logo, Go to DrVikt Ungdom":"DrVikt Logo, Go to Home Page",children:(0,n.jsx)(r.default,{src:t?"/drviktungdomlogga.webp":"/drv-header.webp",alt:t?"DrVikt Ungdom":"DrVikt",width:t?200:100,height:t?28:32,className:t?"h-7 w-auto":"h-8 w-auto",priority:!0,loading:"eager"})})}),(0,n.jsxs)("nav",{role:"navigation",className:"mx-auto flex items-center justify-center",style:{gap:"48px"},children:[(0,n.jsx)("div",{className:"dropdown-container relative",suppressHydrationWarning:!0,children:(0,n.jsxs)("button",{onClick:()=>D("behandlingar"),className:"flex items-center gap-2 p-0 font-bold text-[rgb(29,29,31)] transition-opacity hover:opacity-80",style:{lineHeight:"60px",fontSize:"14px",fontWeight:700},children:["S\xf6k v\xe5rd hos oss",(0,n.jsx)(o.A,{className:"h-4 w-4 transition-transform ".concat("behandlingar"===i?"rotate-180":"")})]})}),(0,n.jsx)(l(),{href:"/sa-fungerar-det",className:"p-0 font-bold text-[rgb(29,29,31)] transition-opacity hover:opacity-80",style:{lineHeight:"60px",fontSize:"14px",fontWeight:700},children:"S\xe5 fungerar det"}),(0,n.jsx)("div",{className:"dropdown-container relative",suppressHydrationWarning:!0,children:(0,n.jsxs)("button",{onClick:()=>D("information"),className:"flex items-center gap-2 p-0 font-bold text-[rgb(29,29,31)] transition-opacity hover:opacity-80",style:{lineHeight:"60px",fontSize:"14px",fontWeight:700},children:["Information",(0,n.jsx)(o.A,{className:"h-4 w-4 transition-transform ".concat("information"===i?"rotate-180":"")})]})}),(0,n.jsx)("div",{className:"dropdown-container relative",suppressHydrationWarning:!0,children:(0,n.jsxs)("button",{onClick:()=>D("om-oss"),className:"flex items-center gap-2 p-0 font-bold text-[rgb(29,29,31)] transition-opacity hover:opacity-80",style:{lineHeight:"60px",fontSize:"14px",fontWeight:700},children:["Om oss",(0,n.jsx)(o.A,{className:"h-4 w-4 transition-transform ".concat("om-oss"===i?"rotate-180":"")})]})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-end",style:{gap:"12px"},children:[(0,n.jsx)("button",{onClick:t?B:()=>S(!0),className:"cursor-pointer whitespace-nowrap text-center font-bold text-white transition-all hover:opacity-90",style:{borderRadius:"960px",backgroundColor:"rgb(0, 0, 0)",fontSize:"14px",fontWeight:700,padding:"12px 32px",border:"none"},children:"Logga in"}),(0,n.jsxs)(K,{isUngdom:t,onUngdomClick:B,...{className:"group relative block overflow-hidden",style:{borderRadius:"960px",padding:"2px"}},children:[(0,n.jsx)("div",{className:"absolute inset-0 transition-opacity duration-300 group-hover:opacity-0",style:{backgroundImage:"linear-gradient(rgb(253, 212, 163), rgb(253, 212, 163) 13%, rgb(251, 166, 158) 32%, rgb(251, 111, 236) 49%, rgb(132, 169, 250) 68%, rgb(144, 220, 247) 86%, rgb(199, 233, 171))",borderRadius:"960px"}}),(0,n.jsx)("div",{className:"absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{backgroundImage:"linear-gradient(rgb(199, 233, 171), rgb(144, 220, 247) 14%, rgb(132, 169, 250) 32%, rgb(251, 111, 236) 51%, rgb(251, 166, 158) 68%, rgb(253, 212, 163) 87%, rgb(253, 212, 163))",borderRadius:"960px"}}),(0,n.jsxs)("div",{className:"relative flex items-center justify-start bg-[rgb(249,249,250)]",style:{gap:"6px",borderRadius:"960px",padding:"11.2px 20px",fontSize:"14px",fontWeight:700},children:[(0,n.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"10.5",cy:"5.5",r:"4.5",stroke:"currentColor",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M18 19C18 15.6863 14.6421 13 10.5 13C6.35786 13 3 15.6863 3 19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),(0,n.jsx)("span",{className:"text-[rgba(29,29,31,0.8)]",children:"Kom ig\xe5ng"})]})]})]})]}),(0,n.jsxs)("div",{className:"xl:hidden",style:{backgroundColor:"rgb(249, 249, 250)",minHeight:"64px",padding:"12px 0px"},children:[(0,n.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,n.jsx)(l(),{href:t?"/ungdom":"/",className:"flex items-center transition-opacity hover:opacity-80","aria-label":t?"DrVikt Ungdom Logo, Go to DrVikt Ungdom":"DrVikt Logo, Go to Home Page",children:(0,n.jsx)(r.default,{src:t?"/drviktungdomlogga.webp":"https://drvikt-media.b-cdn.net/drv-header.webp",alt:t?"DrVikt Ungdom":"DrVikt",width:t?143:100,height:t?20:24,className:t?"h-4 w-auto sm:h-5":"h-5 w-auto sm:h-6",priority:!0,loading:"eager"})}),(0,n.jsxs)("div",{className:"flex items-center",style:{gap:"12px"},children:[(0,n.jsx)(K,{isUngdom:t,onUngdomClick:B,...{className:"relative block flex-shrink-0 overflow-hidden",style:{backgroundImage:"linear-gradient(rgb(253, 212, 163), rgb(253, 212, 163) 13%, rgb(251, 166, 158) 32%, rgb(251, 111, 236) 49%, rgb(132, 169, 250) 68%, rgb(144, 220, 247) 86%, rgb(199, 233, 171))",borderRadius:"960px",padding:"2px"}},children:(0,n.jsxs)("div",{className:"relative flex items-center justify-center",style:{gap:"6px",borderRadius:"960px",padding:"6px 12px",fontSize:"14px",fontWeight:700,backgroundColor:"rgb(249, 249, 250)"},children:[(0,n.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:[(0,n.jsx)("circle",{cx:"10.5",cy:"5.5",r:"4.5",stroke:"currentColor",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M18 19C18 15.6863 14.6421 13 10.5 13C6.35786 13 3 15.6863 3 19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),(0,n.jsx)("span",{className:"text-[rgba(29,29,31,0.8)]",style:{fontSize:"14px",fontWeight:700,whiteSpace:"nowrap"},children:"Kom ig\xe5ng"})]})}),(0,n.jsxs)(c.P.button,{onClick:()=>{x(!h)},className:"flex flex-shrink-0 flex-col items-center justify-center",style:{backgroundColor:"transparent",padding:0},whileTap:{scale:.95},transition:{duration:.1},"aria-label":"Toggle mobile menu",children:[(0,n.jsxs)("svg",{width:"27",height:"25",viewBox:"0 0 27 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M2.96777 3.38281L24.9678 3.38281",stroke:"#171717",strokeWidth:"2.5",strokeLinecap:"round"}),(0,n.jsx)("path",{d:"M2.96777 12.3828L24.9678 12.3828",stroke:"#171717",strokeWidth:"2.5",strokeLinecap:"round"}),(0,n.jsx)("path",{d:"M2.96777 21.3828L24.9678 21.3828",stroke:"#171717",strokeWidth:"2.5",strokeLinecap:"round"})]}),(0,n.jsx)("span",{className:"mt-0.5 text-[10px] font-medium text-[#171717]",children:"Meny"})]})]})]}),(0,n.jsx)(T,{isOpen:h,onClose:()=>x(!1)})]})]}),i&&(0,n.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeOut"},className:"pointer-events-auto fixed inset-0 z-40 hidden xl:block",style:{top:"60px",backdropFilter:"blur(25px)",WebkitBackdropFilter:"blur(25px)",backgroundColor:"rgba(23, 23, 23, 0.3)"},onClick:()=>s(null)}),"behandlingar"===i&&(0,n.jsx)(c.P.nav,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeOut"},"aria-label":"Behandlingar Category",className:"dropdown-container absolute left-0 right-0 z-50 hidden w-full bg-[#f9f9fa] xl:block",style:{top:"60px",boxShadow:"rgba(0, 0, 0, 0.12) 0px 5px 5px 0px",borderRadius:"0 0 16px 16px"},children:(0,n.jsx)("div",{className:"relative mx-auto flex w-full items-center justify-between",style:{maxWidth:"calc(-48px + min(100%, 1440px))"},children:(0,n.jsx)("div",{className:"flex w-full gap-8",children:(0,n.jsxs)("div",{className:"flex flex-1 justify-start gap-[10%]",style:{paddingTop:"48px",paddingBottom:"48px",paddingRight:"64px"},children:[(0,n.jsx)("div",{className:"flex-initial",style:{borderRight:"1px solid rgba(29, 29, 31, 0.2)",paddingRight:"10%"},children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{style:{fontWeight:600,fontSize:"24px"},children:"S\xf6k v\xe5rd hos oss"})})}),(0,n.jsxs)("div",{className:"flex-initial",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h3",{style:{color:"rgba(29, 29, 31, 0.8)",letterSpacing:"0.6px",textTransform:"uppercase",fontSize:"12px",fontWeight:600,lineHeight:"13.2px",marginBottom:"16px"},children:"Behandlingar"})}),(0,n.jsxs)("ul",{role:"list",className:"m-0 flex list-none flex-col gap-4 p-0",children:[(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/viktnedgang",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"L\xe4kemedelsbehandling"})}),(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/dietist",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Kostr\xe5dgivning"})}),(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/ungdom",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Ungdom fr\xe5n 16 \xe5r"})})]})]}),(0,n.jsxs)("div",{className:"flex-initial",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h3",{style:{color:"rgba(29, 29, 31, 0.8)",letterSpacing:"0.6px",textTransform:"uppercase",fontSize:"12px",fontWeight:600,lineHeight:"13.2px",marginBottom:"16px"},children:"V\xe5r app"})}),(0,n.jsx)("ul",{role:"list",className:"m-0 flex list-none flex-col gap-4 p-0",children:(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/app",onClick:()=>s(null),style:{color:"#09395d",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Ladda ner v\xe5r app"})})})]})]})})})}),"information"===i&&(0,n.jsx)(c.P.nav,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeOut"},"aria-label":"Information Category",className:"dropdown-container absolute left-0 right-0 z-50 hidden w-full bg-[#f9f9fa] xl:block",style:{to
1p:"60px",boxShadow:"rgba(0, 0, 0, 0.12) 0px 5px 5px 0px",borderRadius:"0 0 16px 16px"},children:(0,n.jsx)("div",{className:"relative mx-auto flex w-full items-center justify-between",style:{maxWidth:"calc(-48px + min(100%, 1440px))"},children:(0,n.jsx)("div",{className:"flex w-full gap-8",children:(0,n.jsxs)("div",{className:"flex flex-1 justify-start gap-[10%]",style:{paddingTop:"48px",paddingBottom:"48px",paddingRight:"64px"},children:[(0,n.jsx)("div",{className:"flex-initial",style:{borderRight:"1px solid rgba(29, 29, 31, 0.2)",paddingRight:"10%"},children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{style:{fontWeight:600,fontSize:"24px"},children:"Information"})})}),(0,n.jsxs)("div",{className:"flex-initial",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h3",{style:{color:"rgba(29, 29, 31, 0.8)",letterSpacing:"0.6px",textTransform:"uppercase",fontSize:"12px",fontWeight:600,lineHeight:"13.2px",marginBottom:"16px"},children:"Vanliga fr\xe5gor"})}),(0,n.jsxs)("ul",{role:"list",className:"m-0 flex list-none flex-col gap-4 p-0",children:[(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/fragor-svar",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Fr\xe5gor & Svar"})}),(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/pris",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Priser"})}),(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/sa-fungerar-det",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"S\xe5 fungerar det"})})]})]}),(0,n.jsxs)("div",{className:"flex-initial",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h3",{style:{color:"rgba(29, 29, 31, 0.8)",letterSpacing:"0.6px",textTransform:"uppercase",fontSize:"12px",fontWeight:600,lineHeight:"13.2px",marginBottom:"16px"},children:"Fakta & r\xe5d"})}),(0,n.jsxs)("ul",{role:"list",className:"m-0 flex list-none flex-col gap-4 p-0",children:[(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/akademi",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Akademi"})}),(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/artiklar",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Artiklar"})})]})]}),(0,n.jsxs)("div",{className:"flex-initial",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h3",{style:{color:"rgba(29, 29, 31, 0.8)",letterSpacing:"0.6px",textTransform:"uppercase",fontSize:"12px",fontWeight:600,lineHeight:"13.2px",marginBottom:"16px"},children:"Verktyg"})}),(0,n.jsxs)("ul",{role:"list",className:"m-0 flex list-none flex-col gap-4 p-0",children:[(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/bmi-raknare",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"BMI-r\xe4knare"})}),(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/kaloriraknare",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Kaloriber\xe4knare"})}),(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/proteinraknare",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Proteinr\xe4knare"})}),(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/varfor-gar-jag-inte-ner-i-vikt",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Varf\xf6r g\xe5r jag inte ner i vikt?"})})]})]})]})})})}),"om-oss"===i&&(0,n.jsx)(c.P.nav,{initial:{opacity:0,y:-10}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeOut"},"aria-label":"Om oss Category",className:"dropdown-container absolute left-0 right-0 z-50 hidden w-full bg-[#f9f9fa] xl:block",style:{top:"60px",boxShadow:"rgba(0, 0, 0, 0.12) 0px 5px 5px 0px",borderRadius:"0 0 16px 16px"},children:(0,n.jsx)("div",{className:"relative mx-auto flex w-full items-center justify-between",style:{maxWidth:"calc(-48px + min(100%, 1440px))"},children:(0,n.jsx)("div",{className:"flex w-full gap-8",children:(0,n.jsxs)("div",{className:"flex flex-1 justify-start gap-[10%]",style:{paddingTop:"48px",paddingBottom:"48px",paddingRight:"64px"},children:[(0,n.jsx)("div",{className:"flex-initial",style:{borderRight:"1px solid rgba(29, 29, 31, 0.2)",paddingRight:"10%"},children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{style:{fontWeight:600,fontSize:"24px"},children:"Om oss"})})}),(0,n.jsxs)("div",{className:"flex-initial",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h3",{style:{color:"rgba(29, 29, 31, 0.8)",letterSpacing:"0.6px",textTransform:"uppercase",fontSize:"12px",fontWeight:600,lineHeight:"13.2px",marginBottom:"16px"},children:"F\xf6retag"})}),(0,n.jsxs)("ul",{role:"list",className:"m-0 flex list-none flex-col gap-4 p-0",children:[(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/om-oss",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Om oss"})}),(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/kontakt",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Kontakt"})})]})]}),(0,n.jsxs)("div",{className:"flex-initial",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h3",{style:{color:"rgba(29, 29, 31, 0.8)",letterSpacing:"0.6px",textTransform:"uppercase",fontSize:"12px",fontWeight:600,lineHeight:"13.2px",marginBottom:"16px"},children:"Villkor"})}),(0,n.jsxs)("ul",{role:"list",className:"m-0 flex list-none flex-col gap-4 p-0",children:[(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/integritetspolicy",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Integritetspolicy"})}),(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/anvandarvillkor",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Anv\xe4ndarvillkor"})}),(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/kakor",onClick:()=>s(null),style:{color:"rgb(29, 29, 31)",textDecoration:"none",fontSize:"16px",fontWeight:500,padding:"8px 12px",borderRadius:"8px",display:"block"},className:"transition-all hover:bg-[#D6E9E0]",children:"Kakor"})})]})]})]})})})}),(0,n.jsx)(g.N,{children:N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"fixed inset-0 z-[60] bg-black/30",onClick:()=>S(!1)},"login-panel-backdrop"),(0,n.jsxs)(c.P.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"tween",duration:.3,ease:[.25,.46,.45,.94]},className:"fixed right-0 top-0 z-[61] flex h-full w-full max-w-sm flex-col rounded-l-3xl bg-white shadow-xl",children:[(0,n.jsx)("div",{className:"flex min-h-[65px] items-center justify-end px-4",children:(0,n.jsx)("button",{onClick:()=>S(!1),className:"rounded-full p-2 transition-colors hover:bg-[#D6E9E0]",children:(0,n.jsx)(d.A,{className:"h-8 w-8 text-[#013f2a]",strokeWidth:1})})}),(0,n.jsxs)("div",{className:"flex flex-1 flex-col items-center px-6 pb-8",children:[(0,n.jsx)("div",{className:"mb-6 flex justify-center",children:(0,n.jsx)(r.default,{src:"https://drvikt-media.b-cdn.net/drv-header.webp",alt:"DrVikt",width:180,height:44,className:"h-auto w-44"})}),(0,n.jsxs)("p",{className:"mb-6 text-center text-sm leading-relaxed text-gray-700",children:["V\xe4lkommen till DrVikt. ",(0,n.jsx)("br",{}),"Vi rekommenderar att du anv\xe4nder appen f\xf6r b\xe4sta upplevelse. Du kan ocks\xe5 logga in i patientplattformen p\xe5 webben f\xf6r att hantera din behandling och f\xf6lja din h\xe4lsoresa."]}),(0,n.jsx)("a",{href:"https://dashboard.curoflow.se/drvikt",className:"mb-3 flex w-full items-center justify-center rounded-full bg-[#013f2a] py-3.5 text-sm font-bold text-white transition-all hover:bg-[#1a5340]",children:"\xd6ppna patientplattformen"}),(0,n.jsx)("a",{href:"/start",className:"mb-6 flex w-full items-center justify-center rounded-full border border-[#013f2a] bg-white py-3.5 text-sm font-bold text-[#013f2a] transition-colors hover:bg-[#D6E9E0]",children:"\xc4r du inte patient?"}),(0,n.jsxs)("div",{className:"mb-6 flex items-center justify-center gap-3",children:[(0,n.jsx)("a",{href:"https://apps.apple.com/se/app/drvikt/id6502696625",target:"_blank",rel:"noopener noreferrer",className:"transition-opacity hover:opacity-80",children:(0,n.jsx)(r.default,{src:"https://drvikt-media.b-cdn.net/appstoreSV.svg",alt:"Ladda ner p\xe5 App Store",width:120,height:40,className:"h-10 w-auto"})}),(0,n.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.curoflow.drvikt",target:"_blank",rel:"noopener noreferrer",className:"transition-opacity hover:opacity-80",children:(0,n.jsx)(r.default,{src:"https://drvikt-media.b-cdn.net/playstoreSV.svg",alt:"Ladda ner p\xe5 Google Play",width:135,height:40,className:"h-10 w-auto"})})]}),(0,n.jsxs)("a",{href:"/om-oss",className:"flex items-center justify-center gap-1 text-sm font-bold text-[#013f2a] transition-opacity hover:opacity-70",children:[(0,n.jsx)("span",{children:"Om DrVikt"}),(0,n.jsx)("svg",{width:"12",height:"18",viewBox:"0 0 18 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:(0,n.jsx)("path",{d:"M1 8.5h15m-5-6l5.293 5.293a1 1 0 010 1.414L11 14.5"})})]})]})]},"login-panel")]})}),(0,n.jsx)(F,{}),(0,n.jsx)(j,{isOpen:k,onClose:()=>{v(!1),setTimeout(()=>{f(null),b(null)},200)},type:p,selectedItem:u,onItemSelect:e=>{b(e)},onBack:()=>{b(null)}})]})}},766:(e,t,i)=>{"use strict";i.d(t,{default:()=>r});var n=i(4212),a=i(6494);function r(){let e=(0,a.usePathname)();return(0,n.useEffect)(()=>{window.gtag&&window.gtag("event","conversion",{send_to:"AW-16752306367",value:1,currency:"SEK"})},[e]),null}},1292:(e,t,i)=>{"use strict";i.d(t,{default:()=>s});var n=i(9192),a=i(4212),r=i(8173);function s(){let[e,t]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{t(!0)},[]),e)?(0,n.jsx)("a",{href:"https://www.legitscript.com/websites/?checker_keywords=DrVikt.se",target:"_blank",title:"Verify LegitScript Approval for www.DrVikt.se",rel:"noopener noreferrer",children:(0,n.jsx)(r.default,{src:"https://static.legitscript.com/seals/38980404.png",alt:"Verify Approval for www.DrVikt.se",width:73,height:79,className:"h-10 w-auto"})}):(0,n.jsx)("div",{className:"h-10 w-auto"})}},2217:(e,t,i)=>{"use strict";i.d(t,{default:()=>s});var n=i(4212),a=i(6494),r=i(9808);function s(){let e=(0,a.usePathname)();return(0,n.useEffect)(()=>{(0,r.F1)()},[e]),null}},2489:(e,t,i)=>{"use strict";i.d(t,{default:()=>h});var n=i(9192),a=i(4212),r=i(6494),s=i(854),l=i(5139),o=i(8173);let d={"/akne":{title:"Behandling av akne - snabbt och enkelt",description:"F\xe5 professionell aknebehandling fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/akne.webp",startLink:"/start",infoLink:"/akne"},"/borrelia":{title:"Borreliosis behandling online",description:"F\xe5 snabb behandling f\xf6r borreliosis fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/borrelia.webp",startLink:"/start",infoLink:"/borrelia"},"/erektionsproblem":{title:"F\xe5 b\xe4ttre erektion idag!",description:"Vi hittar r\xe4tt behandling f\xf6r erektionsbesv\xe4r eller impotens f\xf6r dig",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/ed.webp",startLink:"/start",infoLink:"/erektionsproblem"},"/reflux":{title:"Behandling av halsbr\xe4nna och reflux",description:"F\xe5 hj\xe4lp med refluxbesv\xe4r fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/reflux.webp",startLink:"/start",infoLink:"/reflux"},"/hosta":{title:"Behandling av envisa hosta",description:"F\xe5 professionell hj\xe4lp f\xf6r l\xe5ngvarig hosta online",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/hosta.webp",startLink:"/start",infoLink:"/hosta"},"/kondylom":{title:"Diskret behandling av kondylom",description:"F\xe5 professionell behandling f\xf6r kondylom fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/kondylom.webp",startLink:"/start",infoLink:"/kondylom"},"/munherpes":{title:"Behandling av herpes - snabbt och diskret",description:"F\xe5 effektiv herpesbehandling fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/herpes.webp",startLink:"/start",infoLink:"/munherpes"},"/bmi-raknare":{title:"De senaste mediciner f\xf6r viktnedg\xe5ng",description:"F\xe5 tillg\xe5ng till de senaste viktmedicinern
1a",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/viktnedgang2.webp",startLink:"/start",infoLink:"/viktnedgang"},"/haravfall":{title:"Stoppa h\xe5ravfallet - effektivt.",description:"F\xe5 professionell h\xe5ravfallsbehandling fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/haravfall.webp",startLink:"/start",infoLink:"/haravfall"},"/pollenallergi":{title:"Behandling av pollenallergi",description:"F\xe5 lindring fr\xe5n pollensymptom med professionell behandling",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/pollenallergi.webp",startLink:"/start",infoLink:"/pollenallergi"},"/tidig-utlosning":{title:"Ta kontroll \xf6ver din situation",description:"F\xe5 professionell hj\xe4lp f\xf6r tidig utl\xf6sning fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/pe4.webp",startLink:"/start",infoLink:"/tidig-utlosning"},"/urinvagsinfektion":{title:"Behandling av urinv\xe4gsinfektion",description:"F\xe5 snabb behandling f\xf6r urinv\xe4gsinfektion online",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/urinvagsinfektion2.webp",startLink:"/start",infoLink:"/urinvagsinfektion"},"/ogoninflammation":{title:"Behandling av \xf6goninflammation",description:"F\xe5 professionell behandling f\xf6r konjunktivit och \xf6goninflammation",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/ogon2.webp",startLink:"/start",infoLink:"/ogoninflammation"},"/viktnedgang":{title:"Moderna viktmediciner",description:"F\xe5 tillg\xe5ng till de senaste viktmedicinerna",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/viktnedgang2.webp",startLink:"/start",infoLink:"/viktnedgang"},"/artiklar/tidig-utlosning":{title:"Ta kontroll \xf6ver din situation",description:"F\xe5 professionell hj\xe4lp f\xf6r tidig utl\xf6sning fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/pe4.webp",startLink:"/start",infoLink:"/tidig-utlosning"},"/artiklar/viktminskningsmedicin-guide":{title:"Moderna viktmediciner",description:"F\xe5 tillg\xe5ng till de senaste viktmedicinerna",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/viktnedgang2.webp",startLink:"/start",infoLink:"/viktnedgang"},"/artiklar/mounjaro-viktnedgang":{title:"Moderna viktmediciner",description:"F\xe5 tillg\xe5ng till de senaste viktmedicinerna",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/viktnedgang2.webp",startLink:"/start",infoLink:"/viktnedgang"},"/artiklar/obesitas":{title:"Moderna viktmediciner",description:"F\xe5 tillg\xe5ng till de senaste viktmedicinerna",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/viktnedgang2.webp",startLink:"/start",infoLink:"/viktnedgang"},"/artiklar/kosttillskott-maghalsa-viktnedgang":{title:"Moderna viktmediciner",description:"F\xe5 tillg\xe5ng till de senaste viktmedicinerna",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/viktnedgang2.webp",startLink:"/start",infoLink:"/viktnedgang"},"/artiklar/haravfall":{title:"Stoppa h\xe5ravfallet - effektivt.",description:"F\xe5 professionell h\xe5ravfallsbehandling fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/haravfall.webp",startLink:"/start",infoLink:"/haravfall"},"/artiklar/akne-behandling":{title:"Behandling av akne - snabbt och enkelt",description:"F\xe5 professionell aknebehandling fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/akne.webp",startLink:"/start",infoLink:"/akne"},"/artiklar/akne-orsaker-symptom":{title:"Behandling av akne - snabbt och enkelt",description:"F\xe5 professionell aknebehandling fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/akne.webp",startLink:"/start",infoLink:"/akne"},"/artiklar/urinvagsinfektion":{title:"Behandling av urinv\xe4gsinfektion",description:"F\xe5 snabb behandling f\xf6r urinv\xe4gsinfektion online",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/urinvagsinfektion2.webp",startLink:"/start",infoLink:"/urinvagsinfektion"},"/artiklar/kondylom-behandling":{title:"Diskret behandling av kondylom",description:"F\xe5 professionell behandling f\xf6r kondylom fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/kondylom.webp",startLink:"/start",infoLink:"/kondylom"},"/artiklar/herpes-behandling":{title:"Behandling av herpes - snabbt och diskret",description:"F\xe5 effektiv herpesbehandling fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/herpes.webp",startLink:"/start",infoLink:"/munherpes"},"/artiklar/borrelia-behandling":{title:"Borreliosis behandling online",description:"F\xe5 snabb behandling f\xf6r borreliosis fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/borrelia.webp",startLink:"/start",infoLink:"/borrelia"},"/artiklar/hosta-behandling":{title:"Behandling av envisa hosta",description:"F\xe5 professionell hj\xe4lp f\xf6r l\xe5ngvarig hosta online",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/hosta.webp",startLink:"/start",infoLink:"/hosta"},"/artiklar/reflux-behandling":{title:"Behandling av halsbr\xe4nna och reflux",description:"F\xe5 hj\xe4lp med refluxbesv\xe4r fr\xe5n legitimerade l\xe4kare",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/reflux.webp",startLink:"/start",infoLink:"/reflux"},"/artiklar/pollenallergi-behandling":{title:"Behandling av pollenallergi",description:"F\xe5 lindring fr\xe5n pollensymptom med professionell behandling",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/pollenallergi.webp",startLink:"/start",infoLink:"/pollenallergi"},"/artiklar/ogoninflammation-behandling":{title:"Behandling av \xf6goninflammation",description:"F\xe5 professionell behandling f\xf6r konjunktivit och \xf6goninflammation",buttonText:"Kom ig\xe5ng",buttonText2:"Mer info",image:"/ogon2.webp",startLink:"/start",infoLink:"/ogoninflammation"}};
1function c(e){let{isVisible:t,onClose:i,type:r,page:c,onGetStarted:g}=e,[m,h]=(0,a.useState)(!0);(0,a.useEffect)(()=>{let e=()=>{h(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let x=c&&d[c]?d[c]:null;return x&&t?(0,n.jsx)(s.N,{children:t&&(0,n.jsx)("div",{className:"fixed z-50 ".concat(m?"left-4 right-4":"right-6"),style:{bottom:"1rem",maxWidth:m?"calc(100vw - 2rem)":"min(380px, calc(100vw - 3rem))",...m?{margin:"0 auto",left:"1rem",right:"1rem"}:{left:"auto"}},children:(0,n.jsx)(l.P.div,{initial:{opacity:0,y:100},animate:{opacity:1,y:0},exit:{opacity:0,y:100},transition:{type:"spring",stiffness:260,damping:20,duration:.4},className:"w-full",children:(0,n.jsxs)("div",{className:"flex gap-3 rounded-2xl bg-white p-2",style:{boxShadow:"rgba(0, 0, 0, 0.12) 0px 8px 30px 0px, rgba(0, 0, 0, 0.1) 0px 6px 16px 0px"},children:[(0,n.jsx)("div",{className:"relative min-h-[140px] w-24 flex-shrink-0 self-stretch overflow-hidden rounded-xl",children:(0,n.jsx)(o.default,{src:x.image,alt:"",fill:!0,className:"object-cover"})}),(0,n.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex flex-row justify-between gap-3",children:[(0,n.jsxs)("div",{className:"my-2 flex flex-1 flex-col justify-center",children:[(0,n.jsx)("h6",{className:"m-0 text-lg font-medium leading-snug text-gray-900",children:x.title}),(0,n.jsx)("div",{className:"mt-1",children:(0,n.jsx)("p",{className:"text-sm leading-relaxed text-gray-600",children:x.description})})]}),(0,n.jsx)("button",{onClick:i,className:"flex items-center justify-center self-start rounded-full bg-black/[0.06] p-2 transition-colors hover:bg-black/[0.1]",style:{appearance:"none",border:"none",cursor:"pointer",width:"32px",height:"32px"},children:(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fill:"black",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]}),(0,n.jsxs)("div",{className:"mt-4 flex flex-col gap-2 sm:flex-row",children:[(0,n.jsx)("button",{onClick:()=>{g?g():window.location.href=x.startLink||"/start"},className:"flex h-11 flex-1 items-center justify-center rounded-full border-2 border-transparent bg-black px-3 text-sm font-medium text-white transition-colors hover:bg-gray-800 sm:h-9 sm:px-4",children:x.buttonText}),(0,n.jsx)("button",{onClick:()=>{window.location.href=x.infoLink||("treatment"===r?"/behandlingar":"/start")},className:"border-black/12 flex h-11 flex-1 items-center justify-center rounded-full border bg-transparent px-3 text-sm font-semibold text-black transition-colors hover:bg-gray-50 sm:h-9 sm:px-4",children:x.buttonText2})]})]})]})})})}):null}let g=(0,a.createContext)(void 0),m=["/artiklar/tidig-utlosning","/artiklar/viktminskningsmedicin-guide","/artiklar/mounjaro-viktnedgang","/artiklar/obesitas","/artiklar/kosttillskott-maghalsa-viktnedgang","/artiklar/haravfall","/artiklar/akne-behandling","/artiklar/akne-orsaker-symptom","/artiklar/urinvagsinfektion","/artiklar/kondylom-behandling","/artiklar/herpes-behandling","/artiklar/borrelia-behandling","/artiklar/hosta-behandling","/artiklar/reflux-behandling","/artiklar/pollenallergi-behandling","/artiklar/ogoninflammation-behandling"];function h(e){let{children:t}=e,[i,s]=(0,a.useState)(!1),[l,o]=(0,a.useState)("treatment"),[d,h]=(0,a.useState)(null),x=(0,r.usePathname)();(0,a.useEffect)(()=>{s(!1);let e=!1,t="treatment";if(m.includes(x)&&(e=!0,t="treatment"),e&&!(e=>{try{let t=localStorage.getItem("popup-dismissed-".concat(e));if(!t)return!1;let i=new Date(t);return(new Date().getTime()-i.getTime())/36e5<24}catch(e){return!1}})("".concat(x,"-").concat(t))){let e=setTimeout(()=>{o(t),s(!0)},8e3);return h(e),()=>{clearTimeout(e),h(null)}}},[x]);let p=()=>{s(!1);var e="".concat(x,"-").concat(l);try{localStorage.setItem("popup-dismissed-".concat(e),new Date().toISOString())}catch(e){}d&&(clearTimeout(d),h(null))};return(0,n.jsxs)(g.Provider,{value:{showPopup:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d&&clearTimeout(d),h(setTimeout(()=>{o(e),s(!0)},t))},hidePopup:p,isVisible:i},children:[t,(0,n.jsx)(c,{isVisible:i,onClose:p,type:l,page:x})]})}},2500:(e,t,i)=>{"use strict";i.d(t,{S:()=>l,UngdomPanelProvider:()=>s});var n=i(9192),a=i(4212);let r=(0,a.createContext)(null);function s(e){let{children:t}=e,[i,s]=(0,a.useState)(!1);return(0,n.jsx)(r.Provider,{value:{isUngdomPanelOpen:i,setIsUngdomPanelOpen:s},children:t})}function l(){let e=(0,a.useContext)(r);if(!e)throw Error("useUngdomPanel must be used within an UngdomPanelProvider");return e}},3983:(e,t,i)=>{Promise.resolve().then(i.t.bind(i,7869,23)),Promise.resolve().then(i.t.bind(i,8450,23)),Promise.resolve().then(i.t.bind(i,8075,23)),Promise.resolve().then(i.bind(i,2217)),Promise.resolve().then(i.bind(i,377)),Promise.resolve().then(i.bind(i,2489)),Promise.resolve().then(i.bind(i,5949)),Promise.resolve().then(i.bind(i,8712)),Promise.resolve().then(i.bind(i,766)),Promise.resolve().then(i.bind(i,1292)),Promise.resolve().then(i.bind(i,5869)),Promise.resolve().then(i.bind(i,2500))},4230:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var n=i(9192),a=i(4212),r=i(9808),s=i(9454);function l(e){let{href:t,onClick:i,target:l="_blank",rel:o,children:d,...c}=e,g=function(e){let[t,i]=(0,a.useState)(e);return(0,a.useEffect)(()=>{let t=!0;return i((0,r.SL)(e)),(0,r.pM)(e,{measurementId:s.J}).then(e=>{t&&i(e)}
1),()=>{t=!1}},[e]),t}(t);return(0,n.jsx)("a",{href:g,target:l,rel:null!=o?o:"_blank"===l?"noopener noreferrer":void 0,onClick:e=>{0===e.button&&!e.defaultPrevented&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&(0,r.VC)()&&(0,r.sI)()&&!(0,r.zm)(g)&&(e.preventDefault(),(0,r.pM)(t,{measurementId:s.J}).then(e=>{"_blank"===l?window.open(e,"_blank","noopener,noreferrer"):window.location.assign(e)})),null==i||i(e)},...c,children:d})}},5869:(e,t,i)=>{"use strict";i.d(t,{LoginPanelProvider:()=>s,z:()=>l});var n=i(9192),a=i(4212);let r=(0,a.createContext)(null);function s(e){let{children:t}=e,[i,s]=(0,a.useState)(!1);return(0,n.jsx)(r.Provider,{value:{isLoginPanelOpen:i,setIsLoginPanelOpen:s},children:t})}function l(){let e=(0,a.useContext)(r);if(!e)throw Error("useLoginPanel must be used within a LoginPanelProvider");return e}},5949:(e,t,i)=>{"use strict";i.d(t,{default:()=>a});var n=i(4212);function a(){return(0,n.useEffect)(()=>{function e(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];window.dataLayer.push(t)}window.dataLayer=window.dataLayer||[],window.gtag=e,e("consent","default",{ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted",wait_for_update:500}),e("set","ads_data_redaction",!0),e("set","url_passthrough",!0);let t=document.createElement("script");return t.id="Cookiebot",t.src="https://consent.cookiebot.com/uc.js",t.setAttribute("data-cbid","d6760d15-7b68-408b-951e-ebc4285bf2d1"),t.setAttribute("data-blockingmode","auto"),t.setAttribute("data-georegions",'{"region":"EU","cbid":"d6760d15-7b68-408b-951e-ebc4285bf2d1"}'),t.type="text/javascript",document.head.appendChild(t),window.addEventListener("CookiebotOnAccept",function(){window.Cookiebot&&e("consent","update",{ad_storage:window.Cookiebot.consent.marketing?"granted":"denied",ad_user_data:window.Cookiebot.consent.marketing?"granted":"denied",ad_personalization:window.Cookiebot.consent.marketing?"granted":"denied",analytics_storage:window.Cookiebot.consent.statistics?"granted":"denied",functionality_storage:window.Cookiebot.consent.preferences?"granted":"denied",personalization_storage:window.Cookiebot.consent.preferences?"granted":"denied",security_storage:"granted"})},!1),window.addEventListener("CookiebotOnDecline",function(){e("consent","update",{ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted"})},!1),()=>{let e=document.getElementById("Cookiebot");e&&e.remove()}},[]),null}},8075:()=>{},8712:(e,t,i)=>{"use strict";i.d(t,{default:()=>d});var n=i(9192),a=i(9131),r=i(9454);let s="GTM-MPTF46CX",l="AW-11072925466",o=r.J;function d(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.default,{id:"gtm-script",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='
1+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','".concat(s,"');\n ")}}),(0,n.jsx)(a.default,{id:"google-analytics",strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=".concat(l)}),(0,n.jsx)(a.default,{id:"gtag-init",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(l,"');\n gtag('config', '").concat(o,"', { send_page_view: false });\n ")}}),(0,n.jsx)("noscript",{children:(0,n.jsx)("iframe",{src:"https://www.googletagmanager.com/ns.html?id=".concat(s),height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})}},9454:(e,t,i)=>{"use strict";var n;i.d(t,{J:()=>a,e:()=>r});let a=null!=(n=i(6354).env.NEXT_PUBLIC_GA4_MEASUREMENT_ID)?n:"G-N7803MXVKE",r={medicinskViktnedgang:"https://dashboard.curoflow.se/drvikt/forms/6814878d86b990ffc338ebfd",dietist:"https://dashboard.curoflow.se/drvikt/forms/697e61880e1412d9d454177f",konsultation:"https://dashboard.curoflow.se/drvikt/forms/6751eeffc29e01bdf0e76930",viktStart:"https://dashboard.curoflow.se/DrVikt/forms/6883528cd64923fd6c75d3f9",viktReceptfornyelse:"https://dashboard.curoflow.se/DrVikt/forms/689da96a59afc62c37c9e56c",ungdomStart:"https://dashboard.curoflow.se/drvikt/forms/68f62ef06629a8b9d8a89161",ungdomUppfoljning:"https://dashboard.curoflow.se/drvikt/forms/6a81dc214398d552d9e5be97",erektion:"https://dashboard.curoflow.se/DrVikt/forms/670784bdafc6d571b7a094b1",erektionHemleverans:"https://dashboard.curoflow.se/DrVikt/forms/68cd47ee7a63c8ad636932e9",erektionRecept:"https://dashboard.curoflow.se/DrVikt/forms/68d15067b06c17e7476a4f90",lakarintyg:"https://dashboard.curoflow.se/DrVikt/forms/67c185b83d3baa0ae41df240",lakarintygSyn:"https://dashboard.curoflow.se/DrVikt/forms/691b2513389e17c20fc3af8f",mrRontgen:"https://dashboard.curoflow.se/DrVikt/forms/68d15eff4e2f338877ba8334"}},9808:(e,t,i)=>{"use strict";i.d(t,{F1:()=>o,SL:()=>x,VC:()=>r,pM:()=>p,sI:()=>s,zm:()=>g});let n="curoflow_landing_params",a=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","gbraid","wbraid","fbclid","msclkid"];function r(){return!0}function s(){var e,t;return(null==(t=window.Cookiebot)||null==(e=t.consent)?void 0:e.statistics)===!0}function l(){let e=new URLSearchParams(window.location.search),t={};for(let i of a){let n=e.get(i);n&&(t[i]=n)}return t}function o(){let e=l();if(0!==Object.keys(e).length)try{let t={params:{...d(),...e},expiry:Date.now()+2592e6};window.localStorage.setItem(n,JSON.stringify(t))}catch(e){}}function d(){try{var e;let t=window.localStorage.getItem(n);if(!t)return{};let i=JSON.parse(t);if(!(null==i?void 0:i.expiry)||i.expiry<Date.now())return window.localStorage.removeItem(n),{};return null!=(e=i.params)?e:{}}catch(e){return{}}}function c(e){let t=new URL(e);for(let[e,i]of Object.entries({...d(),...l()}))t.searchParams.set(e,i);return t}function g(e){return/[?&]client_id=/.test(e)}function m(e,t,i){return new Promise(n=>{if("function"!=typeof window.gtag)return void n(void 0);let a=!1,r=e=>{a||(a=!0,clearTimeout(s),n(e||void 0))},s=setTimeout(()=>r(void 0),i);try{window.gtag("get",e,t,e=>r(e))}catch(e){r(void 0)}})}async function h(e,t){let[i,n]=await Promise.all([m(e,"client_id",t),m(e,"session_id",t)]);return{client_id:i,session_id:n}}function x(e){return c(e).toString()}async function p(e,t){let{measurementId:i,timeoutMs:n=800}=t,a=c(e);if(s()){let{client_id:e,session_id:t}=await h(i,n);e&&a.searchParams.set("client_id",e),t&&a.searchParams.set("session_id",t)}return a.toString()}}},e=>{e.O(0,[6630,8173,7869,5139,4838,9253,4334,7358],()=>e(e.s=3983)),_N_E=e.O()}]);
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.