1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8625],{75195:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot",function(){return t(5928)}])},5928:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return g}});var n=t(85893),o=t(67294),a=t(2962),i=t(18199),s=t(16897),l=t(9938),u=t(34051),c=t.n(u),d=t(25386),f=t(65965);function m(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function p(e,r,t,n,o,a,i){try{var s=e[a](i),l=s.value}catch(u){return void t(u)}s.done?r(l):Promise.resolve(l).then(n,o)}function h(e){return function(){var r=this,t=arguments;return new Promise((function(n,o){var a=e.apply(r,t);function i(e){p(a,n,o,i,s,"next",e)}function s(e){p(a,n,o,i,s,"throw",e)}i(void 0)}))}}function x(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return m(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){var r=(0,o.useState)((function(){return sessionStorage.getItem("email")?sessionStorage.getItem("email"):""})),t=r[0],a=r[1],i=x((0,f.Z)(d.tV),2),s=i[0],l=s.loading,u=s.failed,m=s.completed,p=s.error,y=i[1],v=u&&p&&"isVerified"===p.errors.$className,g=x((0,f.Z)(d.mP),2),b=g[0],w=g[1],j=function(){var e=h(c().mark((function e(r){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.preventDefault(),t){e.next=4;break}return alert("Email is required"),e.abrupt("return",!1);case 4:if(!t.toLowerCase().endsWith("@kindle.com")){e.next=7;break}return alert("Use your personal email address. NOT your send-to-kindle email."),e.abrupt("return",!1);case 7:return e.next=9,y(t);case 9:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),N=function(){var e=h(c().mark((function e(r){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return alert("Email is required"),e.abrupt("return",!1);case 3:return e.next=5,w(t);case 5:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),k=b.completed,S=!k&&u;return(0,n.jsxs)("div",{className:"min-h-full flex flex-col justify-center py-12 sm:px-6 lg:px-8",children:[(0,n.jsxs)("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:[(0,n.jsx)("h2",{className:"mt-6 text-center text-3xl tracking-tight font-bold",children:"Reset your password"}),(0,n.jsx)("p",{className:"mt-2 text-center m-auto text-sm max-w-xs",children:"Enter your email address and we will send you a link to reset your password."})]}),(0,n.jsx)("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md",children:(0,n.jsx)("div",{className:"bg-white py-8 px-4 shadow-xl sm:rounded-lg sm:px-8",children:(0,n.jsxs)("form",{className:"space-y-6",autoComplete:"off",action:"/api/forgot",method:"POST",onSubmit:j,children:[S&&(0,n.jsx)("div",{className:"rounded-md bg-red-50 p-4",children:(0,n.jsxs)("h3",{className:"text-sm font-medium text-red-500",children:[p.message,v&&(0,n.jsx)("button",{onClick:N,title:"Resend account verification code",className:"bg-red-50 px-2 py-1.5 rounded-md text-sm font-bold text-red-800 hover:bg-red-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-red-50 focus:ring-red-600",children:"Resend Verification Code"})]})}),m&&(0,n.jsx)("div",{className:"rounded-md bg-green-50 p-4",children:(0,n.jsx)("h3",{className:"text-sm font-medium text-green-500",children:"Please check your inbox and click the link to reset your password."})}
1),k&&(0,n.jsx)("div",{className:"rounded-md bg-green-50 p-4",children:(0,n.jsx)("h3",{className:"text-sm font-medium text-green-500",children:"Please check your inbox and click the link to verify your account. You can change your password after your account is verified."})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:"Your personal email address (NOT @kindle.com)"}),(0,n.jsx)("div",{className:"mt-1",children:(0,n.jsx)("input",{id:"email",name:"email",type:"email",value:t,onChange:function(e){return a(e.target.value)},disabled:l,autoComplete:"off",required:!0,className:"text-gray-800 appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"})})]}),(0,n.jsx)("div",{children:l?(0,n.jsx)("button",{className:"w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-rose-600 hover:bg-rose-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:(0,n.jsxs)("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}):(0,n.jsx)("button",{type:"submit",className:"w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-rose-600 hover:bg-rose-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Send instructions"})})]})})})]})}var v=t(10262);var g=function(){return(0,n.jsxs)(i.Z,{children:[(0,n.jsx)(s.Z,{showCTA:!0}),(0,n.jsx)(a.PB,{title:"Reset your password"}),(0,n.jsxs)("main",{className:"grow min-h-screen",children:[(0,n.jsx)("div",{className:"relative max-w-6xl mx-auto h-0 pointer-events-none -z-1","aria-hidden":"true",children:(0,n.jsx)(l.Z,{})}),(0,n.jsx)("div",{className:"pt-8 sm:pt-12",children:(0,n.jsx)(y,{})}),(0,n.jsx)(v.Z,{})]})]})}},65965:function(e,r,t){"use strict";var n=t(34051),o=t.n(n),a=t(67294);function i(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function s(e,r,t,n,o,a,i){try{var s=e[a](i),l=s.value}catch(u){return void t(u)}s.done?r(l):Promise.resolve(l).then(n,o)}function l(e){return function(){var r=this,t=arguments;return new Promise((function(n,o){var a=e.apply(r,t);function i(e){s(a,n,o,i,l,"next",e)}function l(e){s(a,n,o,i,l,"throw",e)}i(void 0)}))}}function u(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function c(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return i(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d={result:null,error:null,loading:!1,completed:!1,failed:!1};function f(e,r){switch(r.type){case"started":return function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}
1)))),n.forEach((function(r){u(e,r,t[r])}))}return e}({},d,{loading:!0});case"completed":return{result:r.payload,loading:!1,failed:!1,completed:!0};case"failed":return{error:r.payload,loading:!1,failed:!0,completed:!1};case"updated":var t;return"function"===typeof r.payload&&(t=r.payload(e.result)),{result:t,loading:!1,failed:!1,completed:!0};default:throw new Error}}r.Z=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=r.autorun,n=void 0!==t&&t,i=r.args,s=void 0===i?[]:i,u=r.onSuccess,m=r.onError,p=c(a.useReducer(f,d),2),h=p[0],x=p[1],y=function(){var r=l(o().mark((function r(){var t,n,a,i,l=arguments;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(t=l.length,n=new Array(t),a=0;a<t;a++)n[a]=l[a];return x({type:"started"}),r.prev=2,r.next=5,e.apply(null,null!==n&&void 0!==n?n:s);case 5:i=r.sent,u&&u(i),x({type:"completed",payload:i}),r.next=14;break;case 10:r.prev=10,r.t0=r.catch(2),m&&m(r.t0),x({type:"failed",payload:r.t0});case 14:case"end":return r.stop()}}),r,null,[[2,10]])})));return function(){return r.apply(this,arguments)}}(),v=function(e){x({type:"updated",payload:e})};return a.useEffect((function(){n&&y()}),[e]),[h,y,v]}},81173:function(e,r,t){"use strict";var n=t(67294);function o({title:e,titleId:r,...t},o){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":r},t),e?n.createElement("title",{id:r},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"}))}const a=n.forwardRef(o);r.Z=a}},function(e){e.O(0,[1833,2737,8735,7762,4494,9734,453,6897,5386,6206,9774,2888,179],(function(){return r=75195,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.