PageSourceSearch

https://www.davidsen.dk/dist/components-user-ForgotPasswordPage.080e49c94c6acdfd9738.js

js davidsen.dk collected 2026-10-10 01:48:02 UTC 3,377 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5241],{2948:function(t,e,r){r.r(e);var o=r(74848),n=r(96540),i=r(23928),s=r(829),u=r(91197),c=r(57491);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function a(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var b=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,e,r){return e=y(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}(this,e,[t])).state={showErrorMsg:!1,message:""},r.setEmailRef=function(t){r.email=t},r.doForgot=r.doForgot.bind(r),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),r=e,n=[{key:"doForgot",value:function(t){var e=this;t.preventDefault(),t.stopPropagation();var r=s.A.forgotPassword,o={email:this.email.value};(0,u.L4)(r,JSON.stringify(o)).then((function(t){return t.json()})).then((function(t){t.success?t.url&&(document.location=t.url):e.setState({showErrorMsg:!0,message:t.message})}))}},{key:"render",value:function(){var t=this,e=this.props,r=e.intl.formatMessage,n=e.data.showInfo,i=this.state,s=i.showErrorMsg,u=i.message;return(0,o.jsxs)(c.YW,{children:[(0,o.jsx)(c.Y9,{children:r({id:"login_forgotpasswordHeadline"})}),s&&(0,o.jsx)(c.IW,{children:u}),n&&(0,o.jsx)(c.QB,{left:!0,children:r({id:"login_error_couldNotSetPasswordTryReset"})}),(0,o.jsxs)(c.lV,{children:[(0,o.jsxs)(c.Rr,{children:[(0,o.jsx)(c.JU,{for:"email",children:r({id:"login_email"})}),(0,o.jsx)(c.pd,{ref:this.setEmailRef,autoComplete:"login email",type:"text",id:"email"})]}),(0,o.jsx)(c.Rr,{flexRight:!0,children:(0,o.jsx)(c.$n,{secondary:!0,onClick:function(e){return t.doForgot(e)},children:r({id:"login_send"})})})]})]})}}],n&&a(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.Component);e.default=(0,i.Ay)(b)}}]);

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.