1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[8],{"1OyB":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},CojT:function(e,t,n){var r;e.exports=(r=n("q1tI"),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(8)},function(e,t,n){e.exports=n(6)()},function(e,t){e.exports=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return decodeURIComponent(e.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(t).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=r(n(2)),l=r(n(1)),f=r(n(5)),d=r(n(3)),p=function(){var e=!1;try{e=!!(window.navigator&&window.navigator.standalone||navigator.userAgent.match("CriOS")||navigator.userAgent.match(/mobile/i))}catch(t){}return e},h=function(e){function t(){var e,n,r;o(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.state={isSdkLoaded:!1,isProcessing:!1},r.responseApi=function(e){window.FB.api("/me",{locale:r.props.language,fields:r.props.fields},(function(t){c(t,e),r.props.callback(t)}))},r.checkLoginState=function(e){r.setStateIfMounted({isProcessing:!1}),e.authResponse?r.responseApi(e.authResponse):r.props.onFailure?r.props.onFailure({status:e.status}):r.props.callback({status:e.status})},r.checkLoginAfterRefresh=function(e){"connected"===e.status?r.checkLoginState(e):window.FB.login((function(e){return r.checkLoginState(e)}),!0)},r.click=function(e){if(r.state.isSdkLoaded&&!r.state.isProcessing&&!r.props.isDisabled){r.setState({isProcessing:!0});var t=r.props,n=t.scope,o=t.appId,i=t.onClick,a=t.returnScopes,c=t.responseType,s=t.redirectUri,u=t.disableMobileRedirect,l=t.authType,d=t.state;if("function"!=typeof i||(i(e),!e.defaultPrevented)){var p={client_id:o,redirect_uri:s,state:d,return_scopes:a,scope:n,response_type:c,auth_type:l};if(r.props.isMobile&&!u)window.location.href="https://www.facebook.com/dialog/oauth"+(0,f.default)(p);else{if(!window.FB)return void(r.props.onFailure&&r.props.onFailure({status:"facebookNotLoaded"}));window.FB.login(r.checkLoginState,{scope:n,return_scopes:a,auth_type:p.auth_type})}}}},i(r,n)}return a(t,e),s(t,[{key:"componentDidMount",value:function(){if(this._isMounted=!0,document.getElementById("facebook-jssdk"))this.sdkLoaded();else{this.setFbAsyncInit(),this.loadSdkAsynchronously();var e=document.getElementById("fb-root");e||((e=document.createElement("div")).id="fb-root",document.body.appendChild(e))}}},{key:"componentWillReceiveProps",value:function(e){this.state.isSdkLoaded&&e.autoLoad&&!this.props.autoLoad&&window.FB.getLoginStatus(this.checkLoginAfterRefresh)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"setStateIfMounted",value:function(e){this._isMounted&&this.setState(e)}},{key:"setFbAsyncInit",value:function(){var e=this,t=this.props,n=t.appId,r=t.xfbml,o=t.cookie,i=t.version,a=t.autoLoad;window.fbAsyncInit=function(){window.FB.init({version:"v"+i,appId:n,xfbml:r,cookie:o}),e.setStateIfMounted({isSdkLoaded:!0}),(a||e.isRedirectedFromFb())&&window.FB.getLoginStatus(e.checkLoginAfterRefresh)}}},{key:"isRedirectedFromFb",value:function(){var e=window.location.search;return(0,d.default)(e,"code")||(0,d.default)(e,"granted_scopes")}},{key:"sdkLoaded",value:function(){this.setState({isSdkLoaded:!0})}},{key:"loadSdkAsynchronously",value:function(){var e=this.props.language;!function(t,n,r){var o=t.getElementsByTagName(n)[0],i=o,a=o;t.getElementById(r)||((a=t.createElement(n)).id=r,a.src="https://connect.facebook.net/"+e+"/sdk.js",i.parentNode.insertBefore(a,i))}(document,"script","facebook-jssdk")}},{key:"render",value:function(){var e=this.props.render;if(!e)throw new Error("ReactFacebookLogin requires a render prop to render");var t={onClick:this.click,isDisabled:!!this.props.isDisabled,isProcessing:this.state.isProcessing,isSdkLoaded:this.state.isSdkLoaded};return this.props.render(t)}}]),t}(u.default.Component);h.propTypes={isDisabled:l.default.bool,callback:l.default.func.isRequired,appId:l.default.string.isRequired,xfbml:l.default.bool,cookie:l.default.bool,authType:l.default.string,scope:l.default.string,state:l.default.string,responseType:l.default.string,returnScopes:l.default.bool,redirectUri:l.default.string,autoLoad:l.default.bool,disableMobileRedirect:l.default.bool,isMobile:l.default.bool,f
1ields:l.default.string,version:l.default.string,language:l.default.string,onClick:l.default.func,onFailure:l.default.func,render:l.default.func.isRequired},h.defaultProps={redirectUri:"undefined"!=typeof window?window.location.href:"/",scope:"public_profile,email",returnScopes:!1,xfbml:!1,cookie:!1,authType:"",fields:"name",version:"2.3",language:"en_US",disableMobileRedirect:!1,isMobile:p(),onFailure:null,state:"facebookdirect",responseType:"code"},t.default=h},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"?"+Object.keys(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&")}},function(e,t,n){"use strict";function r(){}var o=n(7);e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=r(n(2)),l=r(n(1)),f=r(n(9)),d=r(n(4)),p=function(e){return["button","input","select","textarea","optgroup","option","fieldset"].indexOf((e+"").toLowerCase())>=0},h=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"style",value:function(){var e=this.constructor.defaultProps.cssClass;return this.props.cssClass===e&&u.default.createElement("style",{dangerouslySetInnerHTML:{__html:f.default}})}},{key:"containerStyle",value:function(e){var t=e.isProcessing,n=e.isSdkLoaded,r=e.isDisabled,o={transition:"opacity 0.5s"};return(t||!n||r)&&(o.opacity=.6),c(o,this.props.containerStyle)}},{key:"renderOwnButton",value:function(e){var t=this.props,n=t.cssClass,r=t.size,o=t.icon,i=t.textButton,a=t.typeButton,s=t.buttonStyle,l=e.onClick,f="string"==typeof o,d={};return e.isDisabled&&p(this.props.tag)&&(d.disabled=!0),u.default.createElement("span",{style:this.containerStyle(e)},f&&u.default.createElement("link",{rel:"stylesheet",href:"https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"}),u.default.createElement(this.props.tag,c({type:a,className:n+" "+r,style:s,onClick:l},d),o&&f&&u.default.createElement("i",{className:"fa "+o}),o&&!f&&o,i),this.style())}},{key:"render",value:function(){var e=this;return u.default.createElement(d.default,c({},this.props,{render:function(t){return e.renderOwnButton(t)}}))}}]),t}(u.default.Component);h.propTypes={textButton:l.default.string,typeButton:l.default.string,size:l.default.string,cssClass:l.default.string,icon:l.default.any,containerStyle:l.default.object,buttonStyle:l.default.object,tag:l.default.oneOfType([l.default.node,l.default.func])},h.defaultProps={textButton:"Login with Facebook",typeButton:"button",size:"metro",fields:"name",cssClass:"kep-login-facebook",tag:"button"},t.default=h}
1,function(e,t,n){(t=e.exports=n(10)()).push([e.id,".kep-login-facebook{font-family:Helvetica,sans-serif;font-weight:700;-webkit-font-smoothing:antialiased;color:#fff;cursor:pointer;display:inline-block;font-size:calc(.27548vw + 12.71074px);text-decoration:none;text-transform:uppercase;transition:background-color .3s,border-color .3s;background-color:#4c69ba;border:calc(.06887vw + .67769px) solid #4c69ba;padding:calc(.34435vw + 13.38843px) calc(.34435vw + 18.38843px)}.kep-login-facebook.small{padding:calc(.34435vw + 3.38843px) calc(.34435vw + 8.38843px)}.kep-login-facebook.medium{padding:calc(.34435vw + 8.38843px) calc(.34435vw + 13.38843px)}.kep-login-facebook.metro{border-radius:0}.kep-login-facebook .fa{margin-right:calc(.34435vw + 3.38843px)}",""]),t.locals={"kep-login-facebook":"kep-login-facebook",small:"small",medium:"medium",metro:"metro",fa:"fa"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}}]))},Ji7U:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("s4An");function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(r.a)(e,t)}},fT9D:function(e,t,n){"use strict";var r,o=n("HaE+"),i=n("1OyB"),a=n("vuIU"),c=n("JX7q"),s=n("Ji7U"),u=n("md7G"),l=n("foSv"),f=n("rePB"),d=n("q1tI"),p=n.n(d),h=(n("CojT"),n("ebvu")),b=n("YFqc"),y=n.n(b),g=n("od3B"),m=n("vOnD"),v=n("Bksz"),x=n("16YA"),j=m.default.div.withConfig({displayName:"styles__LoginDiv",componentId:"p67llb-0"}
1)(["height:100%;display:flex;flex-direction:column;width:50%;a{color:",";text-decoration:underline;font-family:futura-pt,serif;}h2{margin:0 0 16px 0px;font:",";}p{width:100%;text-align:left;line-height:140%;font-weight:400;color:",";margin-top:0px;}","{width:100%;}"],v.a.blue,x.a.h2,v.a.darkBlue,h.j.smAndLess),w=m.default.div.withConfig({displayName:"styles__InlineButtons",componentId:"p67llb-1"})(["button{margin-right:12px;margin-bottom:24px;background:",";border-radius:32px;color:#fff;text-decoration:none;text-align:left;font-family:futura-pt,serif;font-style:normal;font-weight:500;font-size:20px;padding:8px 32px;","{border-radius:25px;font-size:16px;padding:8px 32px;}}.fb-button{background:#3b5998 !important;}"],v.a.darkBlue,h.j.smAndLess),k=(m.default.button.withConfig({displayName:"styles__FacebookCSS",componentId:"p67llb-2"})([""]),m.default.div.withConfig({displayName:"styles__LoginHeader",componentId:"p67llb-3"})(["display:flex;flex-direction:row;img{margin-right:20px;}h2{text-align:left;font-family:'museo-slab',sans-serif;}"])),O=n("h4VS"),_=n("rbQH"),S=m.default.div.withConfig({displayName:"styles__LoginStyle",componentId:"sc-1tf0mkp-0"})(["text-align:left;h2{margin-top:30px;text-align:left;@media (max-width:1023px){margin-top:16px;}}.small{font-size:18px;font-style:italic;}input{border:1px solid #dfdfdf;padding:12px 32px;background:rgba(0,0,0,0.05);margin:0 0 30px 0;border-radius:45px;font-size:20px;color:",";font-family:'museo-slab',sans-serif;font-style:normal;width:100%;max-width:500px;text-align:left;","{width:auto;font-size:18px;padding:12px 32px;max-width:300px;.small{font-size:12px;}}}p{margin-bottom:32px;margin-top:0px;text-align:left;}form{button{margin-bottom:24px;border-radius:32px;color:#fff;text-decoration:none;text-align:left;font-family:futura-pt,serif;font-style:normal;font-weight:500;font-size:20px;padding:8px 32px;background:",";","{border-radius:25px;font-size:16px;padding:8px 32px;}",";&.back{background:#fff;color:",";}}}","{padding:0 32px 40px 32px;}"],h.i.navydark,h.j.smAndLess,h.i.navydark,h.j.smAndLess,Object(_.a)("red")(r||(r=Object(O.a)(["\n background:",";\n "])),h.i.samuraired),h.i.navydark,h.j.smAndLess),L=m.default.div.withConfig({displayName:"styles__LoginHeader",componentId:"sc-1tf0mkp-1"})(["display:flex;flex-direction:row;img{margin-right:20px;}h2{text-align:left;}"]),E=n("nKUr");var P=function(e){var t=e.handleChange,n=e.handleSubmit,r=e.loading,o=e.documentPath,i=e.back;return Object(E.jsxs)("form",{onSubmit:function(e){return n(e,o)},children:[Object(E.jsx)("input",{type:"email",placeholder:"E-post",required:!0,onChange:t}),!0===r?Object(E.jsx)(h.h,{color:h.i.navydark,children:"Laster ...."}):Object(E.jsxs)("div",{style:{display:"flex"},children:[Object(E.jsx)("button",{primary:!0,type:"submit",value:"Submit",children:"Fortsett"}),Object(E.jsx)("button",{className:"back",type:"button",onClick:function(){return i()},children:"Avslutt"})]})]})};function C(){C=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new _(o||[]);return r(a,"_invoke",{value:j(e,n,c)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(E){return{type:"throw",arg:E}}}e.wrap=u;var f={};function d(){}function p(){}function h(){}var b={};s(b,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(S([])));g&&g!==t&&n.call(g,i)&&(b=g);var m=h.prototype=d.prototype=Object.create(b);function v(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var o;r(this,"_invoke",{value:function(r,i){function a(){return new t((function(o,a){!function r(o,i,a,c){var s=l(e[o],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(s.arg)}(r,i,o,a)}))}return o=o?o.then(a,a):a()}})}function j(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=l(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&
1(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(m,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,c,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},v(x.prototype),s(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},v(m),s(m,c,"Generator"),s(m,i,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function B(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var I=function(e){Object(s.a)(n,e);var t=B(n);function n(e){var r;return Object(i.a)(this,n),(r=t.call(this,e)).state={value:"",loading:!1,message:null,errorMessage:null},r.handleChange=r.handleChange.bind(Object(c.a)(r)),r.handleSubmit=r.handleSubmit.bind(Object(c.a)(r)),r}return Object(a.a)(n,[{key:"handleChange",value:function(e){this.setState({value:e.target.value})}},{key:"handleSubmit",value:function(){var e=Object(o.a)(C().mark((function e(t,n){var r,o;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),this.setState({loading:!0}),r=this.state.value,e.prev=3,e.next=6,Object(g.c)(r,n);case 6:(o=e.sent)?this.setState({message:o.message,loading:!1}):this.setState({errorMessage:o.message,loading:!1}),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),console.error({e:e.t0}),this.setState({errorMessage:"Errored :(",loading:!1});case 14:case"end":return e.stop()}}),e,this,[[3,10]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.state,t=e.loading,n=e.message,r=e.errorMessage,o=this.props,i=o.prevScreen,a=o.documentPath;return Object(E.jsxs)(S,{children:[Object(E.jsx)(L,{children:Object(E.jsx)(h.d,{color:h.i.navydark,children:"Logg inn med e-post"})}),Object(E.jsx)(h.h,{color:h.i.navydark,children:"Skriv inn din e-postadresse, og vi sender en magisk p\xe5loggingslink til innboksen din"}),Object(E.jsx)(h.h,{color:h.i.navydark,children:"Det er viktig at du logger inn med den adressen du oppga til oss da du tegnet abonnement"}),n?Object(E.jsx)(h.d,{color:h.i.navydark,children:n}):Object(E.jsx)(P,{handleChange:this.handleChange,handleSubmit:this.handleSubmit,loading:t,documentPath:a,back:function(){return i()}}),r?Object(E.jsx)(h.h,{children:"E-post addressen er ikke gylding"}):"",Object(E.jsx)(y.a,{href:"/aktuelt/problemer-med-innlogging",children:"Problemer med innlogging?"})]})}}]),n}(p.a.Component);function R(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var T=function(e){Object(s.a)(n,e);var t=R(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Object(f.a)(Object(c.a)(e),"state",{isEmail:!1}),e}return Object(a.a)(n,[{key:"render",value:function(){var e=this,t=this.state.isEmail,n=this.props,r=n.paymentStatus,o=n.isLoggedIn,i=n.documentPath,a=function(){return Object(E.jsx)(w,{children:Object(E.jsx)("button",{onClick:function(){return e.setState({isEmail
1:!0})},type:"submit",children:"Logg inn med e-post"})})},c=function(){return Object(E.jsxs)(S,{children:[Object(E.jsx)(k,{children:Object(E.jsx)(h.d,{color:h.i.navydark,children:"Logg inn"})}),Object(E.jsx)(h.h,{children:"Vi bruker en enkel p\xe5loggingsmetode, slik at du ikke trenger \xe5 forholde deg til et nytt brukernavn og passord."}),Object(E.jsxs)(h.h,{children:["For \xe5 f\xe5 full tilgang til BUNAD Magasinet m\xe5 du"," ",Object(E.jsx)(y.a,{href:"/abonnement",children:"abonnere"}),"."]}),Object(E.jsx)(a,{}),Object(E.jsx)(y.a,{href:"/aktuelt/problemer-med-innlogging",children:"Problemer med innlogging?"})]})},s=function(){return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(h.h,{children:"Du har n\xe5 opprettet en konto, for \xe5 lese artikler m\xe5 du knytte deg til ett abonnement."}),Object(E.jsxs)("form",{children:[Object(E.jsx)(y.a,{href:"/abonnement",children:Object(E.jsx)("a",{children:Object(E.jsx)("button",{primary:"true",children:"Bli abonnment n\xe5"})})}),Object(E.jsx)("button",{className:"back",onClick:function(e){e.preventDefault(),window.location.replace("?logout=true")},red:!0,children:"Logg ut"})]})]})},u=function(){return Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(h.h,{children:"Du er medlem av Bestestova"}),Object(E.jsx)("br",{}),Object(E.jsxs)("form",{children:[Object(E.jsx)(y.a,{href:"/",children:Object(E.jsx)("a",{children:Object(E.jsx)("button",{primary:"true",children:"G\xe5 til hjemmesiden"})})}),Object(E.jsx)("button",{onClick:function(e){e.preventDefault(),window.location.replace("?logout=true")},children:"Logout"})]})]})},l=function(){return Object(E.jsxs)(S,{children:[Object(E.jsx)(k,{children:Object(E.jsx)(h.d,{color:h.i.navydark,children:"Du er n\xe5 logget inn"})}),o&&r?Object(E.jsx)(u,{}):Object(E.jsx)(s,{})]})};return Object(E.jsx)(E.Fragment,{children:!0===o?Object(E.jsx)(l,{}):Object(E.jsx)(j,{children:t?Object(E.jsx)(I,{prevScreen:function(){return e.setState({isEmail:!t})},documentPath:i}):Object(E.jsx)(c,{})})})}}]),n}(p.a.Component);t.a=T},md7G:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return i}));var o=n("JX7q");function i(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(o.a)(e)}},vuIU:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,"a",(function(){return 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.