PageSourceSearch

https://www.dagensmedia.se/_next/static/chunks/pages/logga-in-547ea1d4279bdfc6.js

js dagensmedia.se collected 2026-09-24 17:57:09 UTC 7,893 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2123],{52248:function(e,t,r){"use strict";var n=r(36557),o=(r(33957),r(82668),r(2784),n.Z.bind(null));["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){o[e]=o(e)}))},66208:function(e,t,r){"use strict";r.r(t);var n=r(14032);n.Z.getInitialProps=n.k,n.Z.plain=!0,t.default=n.Z},14032:function(e,t,r){"use strict";r.d(t,{Z:function(){return z},k:function(){return H}});var n=r(95235),o=(r(52248),r(36557)),i=r(2784),a=r(63602),l=r(68622),c=r(12402),s=r(64446),d=r(49205),p=r(34220),u=r(65073),h=r(27686),m=r(49558),g=r(33838),f=r(850),b=r(60114),w=r(52903);const y=(0,o.Z)("div",{target:"e1eft65r2"})("margin-top:5rem;display:flex;flex-direction:column;gap:1.5rem;",(e=>e.theme.breakpoints.tablet),"{margin-bottom:4.375rem;}"),v=(0,o.Z)("div",{target:"e1eft65r1"})({name:"143bdh",styles:"align-items:center;display:flex;flex-direction:row;justify-content:flex-start;gap:1rem;font-size:1rem;a{margin-top:0;}"}),Z=(0,o.Z)("div",{target:"e1eft65r0"})("color:",(e=>e.theme.color5),";align-items:center;display:flex;svg{height:16px;width:16px;g{stroke:",(e=>e.theme.color5),";}}");var O=e=>{const{redirectUrl:t}=e,r=t?"?url=".concat(t):"";return(0,w.BX)(y,{children:[(0,w.BX)(v,{children:[(0,w.tZ)(Z,{children:(0,w.tZ)(b.HelpCircle,{width:16,height:16,viewBox:"0 0 24 24"})}),(0,w.tZ)(m.Z,{href:"/glomt-losenord/",children:"Gl\xf6mt l\xf6senord?"})]}),(0,w.BX)(v,{children:[(0,w.tZ)(Z,{children:(0,w.tZ)(b.Link2,{width:16,height:16,viewBox:"0 0 24 24"})}),(0,w.tZ)(m.Z,{href:"/logga-in/inloggningslank/",children:"Logga in utan l\xf6senord"})]}),(0,w.BX)(v,{children:[(0,w.tZ)(Z,{children:(0,w.tZ)(b.User,{width:16,height:16,viewBox:"0 0 14 16"})}),(0,w.tZ)(m.Z,{href:"/skapa-konto/".concat(r),children:"Skapa konto"})]})]})},k=r(38969),x=r(85343),j=r(7732),P=r(3588),B=r(82701),X=r(12463);var E=r(5632);function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const D=(0,o.Z)(g.Z.Info,{target:"etb6vxr0"})("font-size:0.8125rem;text-align:left;line-height:1.25rem;width:100%;padding:1rem;margin-top:1rem;overflow:hidden;margin-bottom:1rem;",(e=>e.theme.breakpoints.tablet),"{padding:1.25rem;}color:",(e=>{let{theme:t}=e;return t.grey1}),";background-color:",(e=>{let{theme:t}=e;return t.error2}),";animation-duration:0.9s;animation-name:unfold;animation-iteration-count:1;animation-fill-mode:forwards;@media (max-width: 374px){animation-name:unfold-small;}*{animation-duration:0.2s;animation-name:fade-in;animation-iteration-count:1;animation-fill-mode:forwards;}@keyframes unfold{0%{max-height:0px;opacity:0;}100%{max-height:135px;opacity:1;}}@keyframes unfold-small{0%{max-height:0px;opacity:0;}100%{max-height:195px;opacity:1;}}@keyframes fade-in{0%{opacity:0;}50%{opacity:0;}100%{opacity:1;}}ul{text-align:left;margin-top:0.5rem;*{font-size:0.8125rem;}li{margin-left:1.5rem;}li:before{top:0.5rem;left:-0.75rem;height:4px;width:4px;}}"),_=e=>{let{redirectUrl:t="/",setShowNoAccountInfo:r}=e;const{setToken:n}=(0,j.Z)(),{pushEvent:o}=(0,B.Z)(),i=(0,E.useRouter)();return(0,w.tZ)(a.J9,{initialValues:{email:"",password:""},onSubmit:async(e,a)=>{let{setSubmitting:d,setErrors:p}=a;r(!1);try{const r=await(0,x.LP)(x.Nw.LOGIN),{jwt:a}=await s.U.post("login",e,{headers:{"x-recaptcha-token":r}});n(a);const d=(0,X.TD)(a);o((0,P.pW)({user:d}
1));if(new RegExp("^https://(lab|latest|beta|www)?.?".concat(l.nw,"(/)?")).test(t)||(0,c.U)(t))return g=t,void(window.location=g);i.push(t)}catch(f){var u,h,m;const e=null===(u=f.response)||void 0===u||null===(h=u.data)||void 0===h||null===(m=h.errors[0])||void 0===m?void 0:m.message;o((0,P.fD)({user:void 0,errorMessage:e})),r(!0),p({email:" ",password:" "}),d(!1)}var g},children:e=>{let{isSubmitting:t}=e;return(0,w.BX)(a.l0,{children:[(0,w.tZ)(a.gN,{placeholder:"E-postadress",name:"email",type:"email",validate:d.Do,component:k.Z}),(0,w.tZ)(a.gN,{placeholder:"L\xf6senord",type:"password",name:"password",autoComplete:"current-password",validate:d.C1,component:f.Z}),(0,w.tZ)(h.Z,{as:"button",type:"submit",disabled:t,children:"Logga in"})]})}})};var C=e=>{const{0:t,1:r}=(0,i.useState)(!1),n=(0,p.ZP)();return(0,w.BX)(w.HY,{children:[(0,w.tZ)(x.ZP,{}),(0,w.BX)(u.Z,{heading:"Logga in",footer:(0,w.BX)(w.HY,{children:[l.jT," \xe4r en del av Bonnier News. Med ditt konto kan du logga in p\xe5 de flesta av v\xe5ra sajter och appar."]}),children:[t&&(0,w.BX)(D,{showNoAccountInfo:t,breakpoint:n,children:[(0,w.tZ)("strong",{children:"Det gick inte att logga in, testa f\xf6ljande:"}),(0,w.BX)("ul",{children:[(0,w.tZ)("li",{children:"Kontrollera e-postadress och l\xf6senord."}),(0,w.BX)("li",{children:["Gl\xf6mt l\xf6senord?"," ",(0,w.tZ)(m.Z,{href:"/glomt-losenord/",inline:!0,children:(0,w.tZ)("strong",{children:"\xc5terst\xe4ll ditt l\xf6senord"})})," "]})]})]}),(0,w.tZ)(_,S({setShowNoAccountInfo:r},e)),(0,w.tZ)(O,S({},e))]})]})},L=r(39662),q=r(74160),I=r(41433),T=r(63912),U=r(72302);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const H=async e=>{let{isServer:t,query:r,path:n,res:o,req:i}=e;const a=await s.x.get("/okapi/pages".concat(n));if(t){o.set("Cache-Control","private, max-age=0, no-cache"),o.set("Surrogate-Control","private, max-age=0, no-cache");if(Boolean((0,U.e)("usr",i)||(0,U.e)("jwt",i))){const e=(0,c.B)(null===r||void 0===r?void 0:r.url);throw new I.A(e,302,["url"])}}else{if((0,X.LP)()){const e=(0,c.B)(null===r||void 0===r?void 0:r.url);throw new I.A(e,302,["url"])}}return a};var z=e=>{let{query:t}=e;const{data:r}=(0,q.Z)();return(0,w.BX)(w.HY,{children:[(0,w.tZ)(L.Fb,G({},r)),(0,w.BX)(L.T3,{plain:!0,children:[(0,w.tZ)(L.VM,{children:(0,w.tZ)(T.Z,{})}),(0,w.tZ)(C,{redirectUrl:t.url})]})]})}},67028:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/logga-in",function(){return r(66208)}])}},function(e){e.O(0,[3602,6745,9774,2888,179],(function(){return t=67028,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.