PageSourceSearch

https://fybercom.net/_next/static/chunks/pages/resetpassword-48c442b1bc7b30c9.js

js fybercom.net collected 2026-10-06 17:24:14 UTC 7,328 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7794],{17743:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r={src:"/_next/static/media/logininlogo.73cf348d.png",height:1080,width:1080,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAUVBMVEX///+us7ni/910+lpeX3ja/tO3/qn9/v2Vmab08PjP0Na/wsl4unaV/X9iyFeguaaHiJuJ5HuJro93jYZ9rIJU/zBP7jJ73G5yeobN8sf6+fsvq9V0AAAACXBIWXMAAC4jAAAuIwF4pT92AAAAPklEQVR4nB3LRxaAMAzEUAWcjE3v5f4X5YXV10ZIRCBB+LaWqh33dJ0N6dltmdsCvaV3zCA6HzKq5V7lX+EDTPUB0+5SIDgAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},18846:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>A});var r=s(37876),a=s(77328),n=s.n(a),l=s(14232),i=s(89099),c=s(5068),o=s(54587),d=s.n(o),m=s(99827),u=s(17743);function x(e){let[t,s]=(0,l.useState)(""),[a,n]=(0,l.useState)(""),[o,x]=(0,l.useState)(!1),h=(0,i.useRouter)(),A=async e=>{if(e.preventDefault(),!t)return void n("Username is required.");try{await c.A.post("/api/customer/reset-password",{username:t}),n(""),x(!0)}catch(e){e.response&&404===e.response.status?n("Invalid username"):n("An error occurred")}};return(0,r.jsxs)("div",{className:"relative flex items-center justify-start min-h-screen bg-gray-100",children:[(0,r.jsx)(d(),{src:m.A,layout:"fill",objectFit:"cover",alt:"Background Image",className:"absolute z-0"}),(0,r.jsx)("div",{className:"relative flex flex-col space-y-8 bg-white shadow-2xl rounded-2xl md:flex-row md:space-y-0 z-10 p-10 md:p-14",style:{width:"400px",height:"500px",marginLeft:"150px"},children:(0,r.jsxs)("form",{className:"flex flex-col justify-center w-full",method:"POST",children:[(0,r.jsx)("input",{type:"hidden",name:"remember",defaultValue:"true"}),(0,r.jsx)("div",{className:"flex justify-center mb-6",children:(0,r.jsx)(d(),{className:"items-center",src:u.A,alt:"Fybercom Logo",width:100,height:50})}),(0,r.jsx)("div",{className:"flex justify-center items-center mt-4 ",children:(0,r.jsx)("p",{className:"text-xl font-bold",children:"Forgot Your Password?"})}),(0,r.jsx)("div",{className:"flex justify-center items-center mt-4 mb-6",children:(0,r.jsx)("p",{className:"text-gray-400 tracking-wide leading-relaxed text-sm items-center",children:"Enter your email to reset your password"})}),(0,r.jsxs)("div",{className:"rounded-md shadow-sm -space-y-px",children:[(0,r.jsx)("label",{htmlFor:"username",className:"mb-2 text-sm text-gray-400 pb-1",children:"Email"}),(0,r.jsx)("input",{value:t,onChange:e=>s(e.target.value),id:"username",name:"username",type:"text",autoComplete:"username",required:!0,className:"appearance-none rounded-md bg-gray-100 block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-fybercomgreenhover focus:border-fybercomgreenhover sm:text-sm"})]}),a&&(0,r.jsx)("div",{className:"mt-4 text-center text-sm text-red-600",children:a}),o?(0,r.jsx)("div",{className:"mt-4 text-center text-sm text-green-600",children:"An email has been sent to your registered email address with instructions on how to reset your password."}):(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)("button",{onClick:A,type:"submit",className:"w-full text-white my-2 font-semibold bg-fybercomgreen hover:bg-fybercomgreenhover rounded-md p-2 text-center flex items-center justify-center",children:"Reset password"})}),(0,r.jsx)("div",{className:"flex items-center justify-center mt-6",children:(0,r.jsx)("button",{onClick:()=>h.push("/login"),className:"text-sm font-normal text-black",children:"Return to Sign In"})})]})})]})}function h(e){let[t,s]=(0,l.useState)(""),[a,n]=(0,l.useState)(""),[o,m]=(0,l.useState)(!1),x=(0,i.useRouter)(),h=async e=>{if(e.preventDefault(),!t)return void n("Username is required.");try{await c.A.post("/api/customer/reset-password",{username:t}),n(""),m(!0)}catch(e){e.response&&404===e.response.status?n("Invalid username"):n("An error occurred")}};return(0,r.jsx)("div",{className:"relative flex items-center justify-center min-h-screen bg-white",children:(0,r.jsx)("div",{className:"flex flex-col space-y-8 bg-white p-10 md:p-14 w-full max-w-sm",children:(0,r.jsxs)("form",{className:"flex flex-col justify-center w-full",method:"POST",children:[(0,r.jsx)("input",{type:"hidden",name:"remember",defaultValue:"true"}),(0,r.jsx)("div",{className:"flex justify-center mb-6",children:(0,r.jsx)(d(),{className:"items-center",src:u.A,alt:"Fybercom Logo",width:100,height:50})}),(0,r.jsx)("div",{className:"flex justify-center items-center mt-4 ",children:(0,r.jsx)("p",{className:"text-xl font-bold",children:"Forgot Your Password?"})}),(0,r.jsx)("div",{className:"flex justify-center items-center mt-4 mb-6",children:(0,r.jsx)("p",{className:"text-gray-400 tracking-wide leading-relaxed text-sm items-center",children:"Enter your email to reset your password"})}),(0,r.jsxs)("div",{className:"rounded-md shadow-sm -space-y-px",children:[(0,r.jsx)("label",{htmlFor:"username",className:"mb-2 text-sm text-gray-400 pb-1",children:"Email"}),(0,r.jsx)("input",{value:t,onChange:e=>s(e.target.value),id:"username",name:"username",type:"text",autoComplete:"username",required:!0,className:"appearance-none rounded-md bg-gray-100 block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-fybercomgreenhover focus:border-fybercomgreenhover sm:text-sm"})]}),a&&(0,r.jsx)("div",{className:"mt-4 text-center text-sm text-red-600",children:a}),o?(0,r.jsx)("div",{className:"mt-4 text-center text-sm text-green-600",children:"An email has been sent to your registered email address with instructions on how to reset your password."}):(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)("button",{onClick:h,type:"submit",className:"w-full text-white my-2 font-semibold bg-fybercomgreen  hover:bg-fybercomgreenhover rounded-md p-2 text-center flex items-center justify-center",children:"Reset password"})}),(0,r.jsx)("div",{className:"flex items-center justify-center mt-6",children:(0,r.jsx)("button",{onClick:()=>
1x.push("/login"),className:"text-sm font-normal text-black",children:"Return to Sign In"})})]})})})}function A(){return(0,r.jsxs)("div",{className:"flex flex-col h-screen justify-between",children:[(0,r.jsxs)(n(),{children:[(0,r.jsx)("title",{children:"Reset Password | Fybercom"}),(0,r.jsx)("meta",{name:"description",content:"Idaho's Internet"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsx)(x,{tokenName:"reset_token",redirectUrl:"/login",resetUrl:"/api/customer/reset-password"})}),(0,r.jsx)("div",{className:"block md:hidden",children:(0,r.jsx)(h,{tokenName:"reset_token",redirectUrl:"/login",resetUrl:"/api/customer/reset-password"})})]})}},77328:(e,t,s)=>{e.exports=s(29269)},87980:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/resetpassword",function(){return s(18846)}])},99827:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r={src:"/_next/static/media/websiteloginbg.fab1ed46.png",height:2048,width:3240,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAALVBMVEWVkYuppqGOiIG8ubTFwr2ysa7t7u3FtJ+8rZrNy8iBf3ifm5etnIeXiHnm5eUoLe7rAAAACXBIWXMAAC4jAAAuIwF4pT92AAAALUlEQVR4nBXGyREAIAgAseUSBbX/ch3zCjICa5SfJSg9onwZ9JVyFwM9M+fOBw+aAM669pblAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5}}},e=>{e.O(0,[4587,5068,636,6593,8792],()=>e(e.s=87980)),_N_E=e.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.