1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,t,r)=>{t.exports=e.r(76562)},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return u},urlObjectKeys:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",l=e.hash||"",o=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),o&&"object"==typeof o&&(o=String(s.urlQueryToSearchParams(o)));let c=e.search||o&&`?${o}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${l}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return l(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=s(e,n)),t&&(a.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(18967),a=e.r(52817);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return j}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(90809),i=e.r(43476),l=s._(e.r(71645)),o=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),p=e.r(5550);e.r(33525);let f=e.r(88540),x=e.r(91949),h=e.r(73668),m=e.r(9396);function g(t){var r,n;let a,s,g,[j,v]=(0,l.useOptimistic)(x.IDLE_LINK_STATUS),y=(0,l.useRef)(null),{href:k,as:w,children:N,prefetch:C=null,passHref:S,replace:M,shallow:L,scroll:E,onClick:_,onMouseEnter:P,onTouchStart:T,legacyBehavior:O=!1,onNavigate:R,transitionTypes:A,ref:$,unstable_dynamicOnHover:B,...I}=t;a=N,O&&("string"==typeof a||"number"==typeof a)&&(a=(0,i.jsx)("a",{children:a}));let K=l.default.useContext(u.AppRouterContext),F=!1!==C,U=!1!==C?null===(n=C)||"auto"===n?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,D="string"==typeof(r=w||k)?r:(0,o.formatUrl)(r);if(O){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=l.default.Children.only(a)}let z=O?s&&"object"==typeof s&&s.ref:$,q=l.default.useCallback(e=>(null!==K&&(y.current=(0,x.mountLinkInstance)(e,D,K,U,F,v)),()=>{y.current&&((0,x.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,x.unmountPrefetchableInstance)(e)}),[F,D,K,U,v]),W={ref:(0,c.useMergedRef)(q,z),onClick(t){O||"function"!=typeof _||_(t),O&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!K||t.defaultPrevented||function(t,r,n,a,s,i,o){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);l.default.startTransition(()=>{d(r,a?"replace":"push",!1===s?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,o)})}}(t,D,y,M,E,R,A)},onMouseEnter(e){O||"function"!=typeof P||P(e),O&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),K&&F&&(0,x.onNavigationIntent)(e.currentTarget,!0===B)},onTouchStart:function(e){O||"function"!=typeof T||T(e),O&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),K&&F&&(0,x.onNavigationIntent)(e.currentTarget,!0===B)}};return(0,d.isAbsoluteUrl)(D)?W.href=D:O&&!S&&("a"!==s.type||"href"in s.props)||(W.href=(0,p.addBasePath)(D)),g=O?l.default.cloneElement(s,W):(0,i.jsx)("a",{...I,...W,children:a}),(0,i.jsx)(b.Provider,{value:j,children:g})}e.r(84508);let b=(0,l.createContext)(x.IDLE_LINK_STATUS),j=()=>(0,l.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},23676,62773,29529,21638,25225,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),a=e.i(18566);e.i(14539);var s=e.i(97427);e.i(61978);var i=e.i(52831);function l(){return(0,t.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M16.365 1.43c0 1.14-.42 2.2-1.12 2.99-.85.96-2.24 1.7-3.38 1.61-.14-1.09.44-2.24 1.09-2.96.73-.82 2.05-1.44 3.16-1.49.03.28.05.55.05.85zM20.5 17.03c-.53 1.23-.79 1.78-1.47 2.87-.95 1.52-2.29 3.41-3.95 3.42-1.47.01-1.85-.96-3.85-.95-2 .01-2.42.96-3.9.95-1.66-.01-2.93-1.72-3.88-3.24C1.06 16.15.79 11.4 2.5 8.9c1.02-1.5 2.62-2.4 4.13-2.4 1.53 0 2.5 1 3.77 1 1.23 0 1.98-1 3.75-1 1.35 0 2.78.74 3.8 2-.09.06-2.26 1.32-2.24 3.94.03 3.14 2.76 4.19 2.79 4.2z"})})}function o(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M3 3.5v17l10-8.5L3 3.5zm12 6.5l3.2 2.7L22 10l-4-2.3L15 10zm0 4l3 2.3 4-2.3-3.8-2.7L15 14z"})})}function u(){let e="flex items-center gap-2 rounded-[9px] border border-white/[0.14] bg-surface px-4 py-2.5 font-heading text-[13px] font-semibold text-white transition-colors hover:border-white/30";return(0,t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,t.jsxs)("a",{href:"https://apps.apple.com/is/app/id6790426764",target:"_blank",rel:"noopener noreferrer",className:e,children:[(0,t.jsx)(l,{}),"App Store"]}),(0,t.jsxs)("a",{href:"https://play.google.com/store/apps/details?id=com.beintibilinn.app",target:"_blank",rel:"noopener noreferrer",className:e,children:[(0,t.jsx)(o,{}),"Google Play"]})]})}e.s(["default",0,u],62773);var c=e.i(72299),d=e.i(59141);async function p(e){let t=e.pan.replace(/\s/g,""),r=2===e.expYear.length?`20${e.expYear}`:e.expYear,n=e.expMonth.padStart(2,"0"),a=new URLSearchParams({PAN:t,ExpMonth:n,ExpYear:r,CVC:e.cvc,TokenLifetime:"120"}),s=await fetch("https://ecommerce.borgun.is/rpg/api/token/single",{method:"POST",headers:{Authorization:`Basic ${btoa("361150_puZEyLcIw918++ppKfFwMnhT23EaQ4HNr+:")}`,"Content-Type":"application/x-www-form-urlencoded"},body:a.toString()}),i=await s.json().catch(()=>({})),l=i.Token??i.token;if(!l)throw Error(String(i.Message??i.message??"Kortavinnsla mistókst."));return{token:l,lastFour:t.slice(-4),expiry:`${n}/${r}`}}e.s(["tokenizeCard",0,p],29529);let f=[{key:"monthly",label:"Mánaðaráskrift",months:1,price:1490,renews:"mánaðarlega",badge:null},{key:"quarterly",label:"3 mánaða áskrift",months:3,price:4390,renews:"á 3 mánaða fresti",badge:null},{key:"yearly",label:"Ãrsáskrift",months:12,price:14900,renews:"árlega",badge:"2 mán frÃtt"}],x=e=>e.toLocaleString("de-DE");function h(){return(0,t.jsxs)("svg",{width:"19",height:"19",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"9",cy:"21",r:"1"}),(0,t.jsx)("circle",{cx:"20",cy:"21",r:"1"}),(0,t.jsx)("path",{d:"M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"})]})}function m({open:e,onClose:n}){let{user:l,signUp:o}=(0,c.useAuth)(),g=(0,a.useRouter)(),[b,j]=(0,r.useState)(""),[v,y]=(0,r.useState)(""),[k,w]=(0,r.useState)(""),[N,C]=(0,r.useState)(""),[S,M]=(0,r.useState)(""),[L,E]=(0,r.useState)(f[0]),[_,P]=(0,r.useState)("form"),[T,O]=(0,r.useState)(null),R="processing"===_;if((0,r.useEffect)(()=>{let t=e=>{"Escape"===e.key&&"processing"!==_&&n()};return e&&document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,n,_]),!e)return null;let A=async e=>{e.preventDefault(),O(null),P("processing");try{let[e,t]=N.split("/"),r=await p({pan:k,expMonth:(e??"").trim(),expYear:(t??"").trim(),cvc:S});l||await o(b,v);let n=(0,i.httpsCallable)(d.functions,"createSubscription");await n({singleToken:r.token,lastFour:r.lastFour,expiry:r.expiry,plan:L.key}),P("success")}catch(t){let e="Eitthvað fór úrskeiðis. Reyndu aftur.";t instanceof s.FirebaseError?e=t.code.startsWith("auth/")?(0,c.authErrorMessage)(t.code):"functions/already-exists"===t.code?t.message||"Ãú ert nú þegar með vir
1ka áskrift.":t.message||e:t instanceof Error&&t.message&&(e=t.message),O(e),P("form")}},$="w-full min-h-12 rounded-[11px] border border-[#2a3852] bg-[#0d1526] px-[15px] py-3 text-[15px] text-ink outline-none placeholder:text-muted focus:border-green",B=e=>(0,t.jsx)("div",{className:"fixed inset-0 z-[100] flex items-start justify-center overflow-y-auto bg-[rgba(6,11,22,0.55)] p-4 py-10 backdrop-blur-md sm:py-14",onClick:R?void 0:n,children:(0,t.jsx)("div",{className:"relative w-full max-w-[460px] rounded-[18px] border border-white/[0.08] bg-[#141d33] p-6 shadow-[0_40px_90px_rgba(0,0,0,0.55)] sm:p-[30px]",onClick:e=>e.stopPropagation(),children:e})});return"success"===_?B((0,t.jsxs)("div",{className:"px-1 pb-2 pt-6 text-center",children:[(0,t.jsx)("span",{className:"mx-auto mb-[22px] flex h-[72px] w-[72px] items-center justify-center rounded-full bg-green",children:(0,t.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M20 6L9 17l-5-5"})})}),(0,t.jsx)("h2",{className:"mb-2 font-heading text-[23px] font-extrabold text-white",children:"Velkomin um borð! ð"}),(0,t.jsx)("p",{className:"mb-2 text-sm leading-[1.55] text-sub",children:"Ãskriftin er virk â allir þættirnir bÃða þÃn, hér á vefnum og à appinu."}),(0,t.jsxs)("p",{className:"mb-6 text-[12.5px] leading-normal text-muted",children:[L.label," · endurnýjast sjálfkrafa ",L.renews," (",x(L.price)," kr)."]}),(0,t.jsx)("div",{className:"mb-4 flex justify-center",children:(0,t.jsx)(u,{})}),(0,t.jsx)("button",{onClick:()=>{n(),g.push("/spilarinn")},className:"p-2 font-heading text-sm font-bold text-green transition-colors hover:text-green-light",children:"Byrja að horfa â"}),(0,t.jsx)("button",{onClick:()=>{n(),g.push("/minar-sidur")},className:"block w-full py-2 text-sm text-muted hover:text-ink",children:"MÃnar sÃður"})]})):B((0,t.jsxs)(t.Fragment,{children:[!R&&(0,t.jsx)("button",{onClick:n,className:"absolute right-5 top-5 flex p-1 text-muted hover:text-white","aria-label":"Loka",children:(0,t.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})}),R&&(0,t.jsxs)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center gap-4 roun
1ded-[18px] bg-[#141d33]/95",children:[(0,t.jsx)("span",{className:"h-9 w-9 animate-spin rounded-full border-[3px] border-line border-t-green"}),(0,t.jsx)("p",{className:"text-sm font-medium text-ink",children:"Vinnum úr greiðslunniâ¦"}),(0,t.jsx)("p",{className:"text-xs text-faint",children:"Ãetta tekur örfáar sekúndur."})]}),(0,t.jsx)("h2",{className:"mb-1.5 font-heading text-2xl font-extrabold text-white",children:"Kaupa áskrift"}),(0,t.jsxs)("p",{className:"mb-[22px] text-sm text-[#9aa7bd]",children:["Frá ",(0,t.jsxs)("span",{className:"font-bold text-green",children:[x(Math.round(f[2].price/12))," kr"]})," á mánuði â hættu hvenær sem er."]}),(0,t.jsx)("p",{className:"mb-2.5 font-heading text-xs font-semibold tracking-[0.04em] text-muted",children:"TÃMABIL"}),(0,t.jsx)("div",{role:"radiogroup","aria-label":"TÃmabil",className:"mb-3.5 grid grid-cols-3 gap-2.5",children:f.map(e=>{let r=e.key===L.key;return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":r,disabled:R,onClick:()=>E(e),className:`relative flex flex-col items-center rounded-[13px] border-2 px-1.5 pb-3 pt-3.5 transition-colors ${r?"border-green bg-[#132a4c]":"border-[#2a3852] bg-[#0d1526] hover:border-[#3a4a68]"}`,children:[e.badge&&(0,t.jsx)("span",{className:"absolute -top-2.5 rounded-full bg-green px-2 py-[2px] font-heading text-[10px] font-bold text-white",children:e.badge}),(0,t.jsxs)("span",{className:"font-heading text-[15px] font-bold text-white",children:[e.months," mán"]}),(0,t.jsx)("span",{className:"mt-[3px] font-heading text-[15px] font-extrabold text-white",children:x(e.price)}),(0,t.jsx)("span",{className:"text-[10px] text-muted",children:1===e.months?"kr/mán":`${x(Math.round(e.price/e.months))} kr/m\xe1n`})]},e.key)})}),(0,t.jsxs)("div",{className:"mb-[22px] flex gap-2.5 rounded-[11px] border border-green/25 bg-green/[0.08] px-3.5 py-3",children:[(0,t.jsx)("span",{className:"mt-px flex-none",children:(0,t.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"#3bbd6a",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M23 4v6h-6M1 20v-6h6"}),(0,t.jsx)("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"})]})}),(0,t.jsxs)("p",{className:"text-[12.5px] leading-normal text-sub",children:["Ãú greiðir ",(0,t.jsxs)("strong",{className:"text-white",children:[x(L.price)," kr"]})," núna fyrir"," ",1===L.months?"eins mánaðar áskrift":`${L.months} m\xe1nu\xf0i`,". Ãskriftin"," ",(0,t.jsx)("strong",{className:"text-white",children:"endurnýjast sjálfkrafa"})," ",L.renews," á sama verði, þar til þú segir upp. Ãú getur sagt upp hvenær sem er á MÃnu svæði."]})]}),(0,t.jsxs)("form",{onSubmit:A,className:"flex flex-col gap-3",children:[l?(0,t.jsxs)("p",{className:"rounded-[11px] bg-[#0d1526] px-[15px] py-3 text-sm text-muted",children:["Ãskrift fyrir ",(0,t.jsx)("span",{className:"font-semibold text-ink",children:l.email})]}):(0,t.jsx)("input",{type:"email",required:!0,autoComplete:"email",placeholder:"Netfang",value:b,onChange:e=>j(e.target.value),className:$}),(0,t.jsx)("input",{inputMode:"numeric",required:!0,autoComplete:"cc-number",placeholder:"Kortanúmer",value:k,onChange:e=>w(e.target.value.replace(/\D/g,"").slice(0,16).replace(/(.{4})/g,"$1 ").trim()),className:$}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("input",{inputMode:"numeric",required:!0,autoComplete:"cc-exp",placeholder:"MM/ÃÃ",value:N,onChange:e=>{let t;return C((t=e.target.value.replace(/\D/g,"").slice(0,4)).length>=3?`${t.slice(0,2)}/${t.slice(2)}`:t)},className:$}),(0,t.jsx)("input",{inputMode:"numeric",required:!0,autoComplete:"cc-csc",placeholder:"CVC",value:S,onChange:e=>M(e.target.value.replace(/\D/g,"").slice(0,4)),className:$})]}),!l&&(0,t.jsx)("input",{type:"password",required:!0,autoComplete:"new-password",placeholder:"Veldu lykilorð",value:v,onChange:e=>y(e.target.value),className:$}),T&&(0,t.jsx)("p",{className:"text-sm text-danger",children:T}),(0,t.jsxs)("button",{type:"submit",disabled:R,className:"mt-1 flex items-center justify-center gap-[9px] rounded-xl bg-green p-[15px] font-heading text-base font-bold text-white transition-colors hover:bg-green-dark disabled:opacity-60",children:[(0,t.jsx)(h,{}),R?"â¦":`Kaupa \xe1skrift â ${x(L.price)} kr`]}),(0,t.jsxs)("p",{className:"text-center text-[11.5px] leading-normal text-[#6b7a94]",children:["Með þvà að kaupa samþykkir þú skilmála Beint à bÃlinn.",(0,t.jsx)("br",{}),"Endurnýjast sjálfkrafa ",L.renews," þar til sagt er upp."]})]})]}))}function g({href:e,label:r,active:a}){return(0,t.jsx)(n.default,{href:e,className:`flex-none whitespace-nowrap font-heading text-[13px] transition-colors sm:text-sm ${a?"font-semibold text-white":"font-medium text-[#c8d3e6] hover:text-white"}`,children:r})}e.s(["PLANS",0,f,"kr",0,x,"planLabel",0,e=>12===e?"Ãrsáskrift":e>1?`${e} m\xe1na\xf0a \xe1skrift`:"Mánaðaráskrift"],21638),e.s(["default",0,m],25225),e.s(["default",0,function(){let{user:e,loading:s}=(0,c.useAuth)(),i=(0,a.usePathname)(),[l,o]=(0,r.useState)(!1);return(0,t.jsxs)("header",{className:"fixed top-0 z-50 w-full bg-navy",children:[(0,t.jsxs)("div",{className:"mx-auto flex h-16 w-full max-w-[1220px] items-center gap-3.5 px-4 sm:gap-7 sm:px-8",children:[(0,t.jsx)(n.default,{href:"/",className:"mr-auto flex flex-none items-center",children:(0,t.jsx)("img",{src:"/brand/logo-gulur.png",alt:"Beint à bÃlinn",className:"h-9 w-auto sm:h-11"})}),(0,t.jsx)(g,{href:"/",label:"ForsÃða",active:"/"===i}),(0,t.jsx)(g,{href:"/spilarinn",label:"Spilarinn",active:"/spilarinn"===i}),(0,t.jsx)(g,{href:e?"/minar-sidur":"/innskra",label:"Mitt svæði",active:"/minar-sidur"===i||"/innskra"===i}),e?(0,t.jsx)(n.default,{href:"/minar-sidur","aria-label":"Mitt svæði",className:"flex h-[38px] w-[38px] flex-none items-center justify-center rounded-full bg-yellow font-heading text-sm font-bold text-navy",children:(0,c.userInitials
1)(e)}):s?(0,t.jsx)("span",{className:"h-[38px] w-[38px] flex-none rounded-full bg-white/10"}):(0,t.jsx)("button",{onClick:()=>o(!0),className:"hidden flex-none rounded-lg bg-green px-5 py-2.5 font-heading text-sm font-bold text-white transition-colors hover:bg-green-dark sm:block",children:"Kaupa áskrift"})]}),(0,t.jsx)(m,{open:l,onClose:()=>o(!1)})]})}],23676)},13642,e=>{"use strict";var t=e.i(43476),r=e.i(22016);e.s(["default",0,function(){return(0,t.jsx)("footer",{className:"mt-auto w-full bg-navy-deep",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-[1220px] flex-wrap items-center gap-6 px-4 py-6 text-[13px] text-[#7c8aa3] sm:px-8",children:[(0,t.jsx)("img",{src:"/brand/logo-gulur.png",alt:"Beint à bÃlinn",className:"h-7 w-auto"}),(0,t.jsx)(r.default,{href:"/personuvernd",className:"transition-colors hover:text-ink",children:"Persónuvernd"}),(0,t.jsx)("a",{href:"mailto:[email protected]",className:"transition-colors hover:text-ink",children:"Hafa samband"}),(0,t.jsx)("span",{className:"ml-auto",children:"© 2026 Beint à bÃlinn"})]})})}])},4700,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(18566),a=e.i(23676),s=e.i(13642);e.i(14539);var i=e.i(97427);e.i(61978);var l=e.i(52831),o=e.i(72299),u=e.i(59141);function c({defaultMode:e="signup",submitLabel:n}){let{signUp:a,signIn:s}=(0,o.useAuth)(),[d,p]=(0,r.useState)(e),[f,x]=(0,r.useState)(""),[h,m]=(0,r.useState)(""),[g,b]=(0,r.useState)(null),[j,v]=(0,r.useState)(!1),[y,k]=(0,r.useState)(!1),[w,N]=(0,r.useState)(null),C=async()=>{let e=f.trim();if(!e)return void N("Sláðu fyrst inn netfangið þitt hér að ofan.");k(!0),N(null);try{await (0,l.httpsCallable)(u.functions,"sendResetEmail")({email:e}),N("Ef netfangið er með aðgang eða virka áskrift var póstur sendur með hlekk til að velja lykilorð. Athugaðu lÃka ruslpóstinn.")}catch{N("Eitthvað fór úrskeiðis â reyndu aftur eftir smástund.")}finally{k(!1)}},S=async e=>{e.preventDefault(),b(null),v(!0);try{"signup"===d?await a(f,h):await s(f,h)}catch(t){let e=t instanceof i.FirebaseError?t.code:"";if("signin"===d&&["auth/user-not-found","auth/invalid-credential","auth/wrong-password"].includes(e))try{let e=(await (0,l.httpsCallable)(u.functions,"wpLogin")({email:f.trim(),password:h})).data;if(e.migrated)return void await s(f,h);if(e.passwordTooShort)return void b('Lykilorðið þitt af gamla kerfinu er of stutt fyrir nýja kerfið â smelltu á âGleymt lykilorð" hér að neðan til að velja nýtt.')}catch{}b((0,o.authErrorMessage)(e))}finally{v(!1)}};return(0,t.jsxs)("div",{children:[(0,t.jsxs)("form",{onSubmit:S,className:"flex flex-col gap-3",children:[(0,t.jsx)("input",{type:"email",required:!0,autoComplete:"email",placeholder:"Netfang",value:f,onChange:e=>x(e.target.value),className:"rounded-lg border border-line bg-surface px-4 py-2.5 text-sm text-ink outline-none focus:border-green"}),(0,t.jsx)("input",{type:"password",required:!0,autoComplete:"signup"===d?"new-password":"current-password",placeholder:"Lykilorð",value:h,onChange:e=>m(e.target.value),className:"rounded-lg border border-line bg-surface px-4 py-2.5 text-sm text-ink outline-none focus:border-green"}),g&&(0,t.jsx)("p",{className:"text-sm text-red-400",children:g}),(0,t.jsx)("button",{type:"submit",disabled:j,className:"mt-1 rounded-lg bg-green px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-green-dark disabled:opacity-60",children:j?"â¦":n??("signup"===d?"Kaupa áskrift":"Innskrá")})]}),"signin"===d&&(0,t.jsxs)("div",{className:"mt-3 border-t border-line pt-3",children:[(0,t.jsx)("button",{type:"button",onClick:C,disabled:y,className:"text-sm text-muted underline underline-offset-2 hover:text-ink disabled:opacity-60",children:y?"Sendi póstâ¦":"Gleymt lykilorð? Fáðu hlekk à pósti"}),w&&(0,t.jsx)("p",{className:"mt-2 text-sm text-green",children:w})]})]})}e.s(["default",0,function(){let{user:e}=(0,o.useAuth)(),i=(0,n.useRouter)();return(0,r.useEffect)(()=>{e&&i.replace("/minar-sidur")},[e,i]),(0,t.jsxs)("div",{className:"flex min-h-screen flex-col pt-16",children:[(0,t.jsx)(a.default,{}),(0,t.jsxs)("main",{className:"mx-auto flex w-full max-w-md flex-grow flex-col justify-center gap-6 px-6 py-16",children:[(0,t.jsxs)("div",{className:"w-full rounded-2xl border border-line bg-surface-2 p-6 shadow-sm sm:p-8",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold text-ink",children:"Innskráning"}),(0,t.jsx)("p",{className:"mb-5 mt-1 text-sm text-muted",children:"Skráðu þig inn á aðganginn þinn."}),(0,t.jsx)(c,{defaultMode:"signin",submitLabel:"Innskrá"})]}),(0,t.jsxs)("p",{className:"px-2 text-center text-xs text-faint",children:["Lendirðu à vandræðum með innskráningu? Sendu okkur póst á"," ",(0,t.jsx)("a",{href:"mailto:[email protected]",className:"underline underline-offset-2 hover:text-ink",children:"[email protected]"})," ","og við leysum úr þvÃ."]})]}),(0,t.jsx)(s.default,{})]})}],4700)}]);
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.