PageSourceSearch

https://visualcsseditor.com/_next/static/chunks/app/sign-in/page-9ba9b937285919c6.js

js visualcsseditor.com collected 2026-10-02 01:48:08 UTC 4,810 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1253],{1782:function(e,s,r){Promise.resolve().then(r.bind(r,2791))},2791:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return l}});var t=r(3827),a=r(7908),n=r(4090);function l(){let[e,s]=(0,n.useState)(!1),[r,l]=(0,n.useState)(!1),[i,o]=(0,n.useState)({email:"",password:""}),[c,d]=(0,n.useState)({message:"",type:""}),[u,m]=(0,n.useState)({message:"",type:""}),x=e=>{let{name:s,value:r}=e.target;o(e=>({...e,[s]:r}))},g=async e=>{e.preventDefault(),s(!0);try{let e=await a.Z.post("/api/headless/",{...i,action:"signin"});if("success"===e.data.status){window.location.href="/account";return}d({message:e.data.message,type:"error"})}catch(e){console.error("sign in error:",e),d({message:"An error occurred during sign in.",type:"error"})}finally{s(!1)}},b=async e=>{e.preventDefault(),s(!0);try{let e=await a.Z.post("/api/headless/",{email:i.email,action:"reset_password"});"success"===e.data.status?m({message:"Reset link has been sent to your email.",type:"success"}):m({message:e.data.message,type:"error"})}catch(e){console.error("reset password error:",e),m({message:"An error occurred during sending reset link email.",type:"error"})}finally{s(!1)}};return(0,t.jsx)("section",{className:"relative w-full flex-grow",children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-md px-6 py-16 sm:py-24",children:(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("h1",{className:"font-display mb-1 text-3xl font-bold tracking-tight text-gray-900",children:r?"Reset password":"Welcome back"}),(0,t.jsx)("p",{className:"mb-6 text-sm text-gray-500",children:r?"Enter your email and we'll send you a reset link.":"Sign in to manage your account."}),(0,t.jsxs)(t.Fragment,{children:[c.message&&(0,t.jsx)("div",{className:"".concat("success"===c.type?"bg-green-100 border-green-400 text-green-700":"bg-red-100 border-red-400 text-red-700"," px-4 py-3 rounded mb-4"),role:"alert",children:(0,t.jsx)("span",{className:"block sm:inline",children:c.message})}),u.message&&(0,t.jsx)("div",{className:"".concat("success"===u.type?"bg-green-100 border-green-400 text-green-700":"bg-red-100 border-red-400 text-red-700"," px-4 py-3 rounded mb-4"),role:"alert",children:(0,t.jsx)("span",{className:"block sm:inline",children:u.message})}),r?(0,t.jsxs)("form",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"forgot-email",className:"block text-sm font-medium text-gray-700",children:"Email"}),(0,t.jsx)("input",{type:"email",name:"email",id:"forgot-email",required:!0,className:"mt-1.5 block w-full rounded-xl border border-gray-200 bg-white px-4 py-2.5 text-gray-900 shadow-sm transition focus:border-blue-400 focus:outline-none focus:ring-4 focus:ring-blue-100",value:i.email,onChange:x})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{type:"button",className:"text-sm text-gray-600 hover:underline cursor-pointer",onClick:()=>{l(!1)},children:"Back to Sign In"}),(0,t.jsx)("button",{type:"submit",className:"inline-flex items-center justify-center rounded-full bg-blue-600 px-6 py-2.5 text-sm font-semibold text-white transition-colors duration-200 hover:bg-blue-700 disabled:opacity-60",disabled:e,onClick:b,children:"Send Reset Link"})]})]}):(0,t.jsxs)("form",{onSubmit:g,className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:"Email"}),(0,t.jsx)("input",{type:"email",name:"email",id:"email",required:!0,className:"mt-1.5 block w-full rounded-xl border border-gray-200 bg-white px-4 py-2.5 text-gray-900 shadow-sm transition focus:border-blue-400 focus:outline-none focus:ring-4 focus:ring-blue-100",value:i.email,onChange:x})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700",children:"Password"}),(0,t.jsx)("input",{type:"password",name:"password",id:"password",required:!0,className:"mt-1.5 block w-full rounded-xl border border-gray-200 bg-white px-4 py-2.5 text-gray-900 shadow-sm transition focus:border-blue-400 focus:outline-none focus:ring-4 focus:ring-blue-100",value:i.password,onChange:x})]}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-x-4",children:[(0,t.jsx)("div",{className:"text-sm text-gray-600 hover:underline cursor-pointer",onClick:()=>{l(!0)},children:"Forgot your password?"}),(0,t.jsx)("button",{type:"submit",disabled:e,className:"inline-flex items-center justify-center rounded-full bg-blue-600 px-6 py-2.5 text-sm font-semibold text-white transition-colors duration-200 hover:bg-blue-700 disabled:opacity-60",children:"Sign in"})]})]})]})]})})})}}},function(e){e.O(0,[7908,2971,8069,1744],function(){return e(e.s=1782)}),_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.