PageSourceSearch

https://intdecor.ai/_next/static/chunks/app/%5Blang%5D/user/login/page-f31c1a63baa7533b.js

js intdecor.ai collected 2026-10-05 15:22:24 UTC 6,461 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[196],{9873:function(e,s,t){Promise.resolve().then(t.t.bind(t,8173,23)),Promise.resolve().then(t.bind(t,7230)),Promise.resolve().then(t.bind(t,8356)),Promise.resolve().then(t.bind(t,4389))},6463:function(e,s,t){"use strict";var n=t(1169);t.o(n,"useRouter")&&t.d(s,{useRouter:function(){return n.useRouter}}),t.o(n,"useSearchParams")&&t.d(s,{useSearchParams:function(){return n.useSearchParams}})},8277:function(e,s,t){"use strict";async function n(e,s){let t=await fetch("/api/users/signup",{method:"POST",body:JSON.stringify({userData:e,haveCompany:s})}),n=await t.json();return 200===t.status?n.message:n.error}async function r(e,s){let t=await fetch("/api/users/login",{method:"POST",body:JSON.stringify({email:e,password:s})}),n=await t.json();return 200===t.status?n.message:n.error}async function a(e,s){return 200===(await fetch("/api/users/verify",{method:"POST",body:JSON.stringify({email:e,verificationCode:s})})).status}async function i(e){return 200===(await fetch("/api/users/reset-password",{method:"POST",body:JSON.stringify({email:e})})).status}async function o(e,s,t){return 200===(await fetch("/api/users/reset-password/verify",{method:"POST",body:JSON.stringify({userId:e,passwordResetCode:s,newPassword:t})})).status}async function l(e){let s=new FormData;s.append("file",e),await fetch("/api/users/upload-logo",{method:"POST",body:s})}async function u(){let e=await fetch("/api/users/me"),s=await e.json();return 200===e.status&&null!==s.logoUrl&&void 0!==s.logoUrl?s.logoUrl:null}async function c(){await fetch("/api/users/logout",{method:"POST"})}async function d(e,s){return 200===(await fetch("/api/users/me",{method:"PATCH",body:JSON.stringify({name:e,commercialCom:s})})).status}async function h(e,s,t,n,r,a,i){return 200===(await fetch("/api/users/me/company",{method:"PATCH",body:JSON.stringify({NIF:e,name:s,address:t,country:n,state:r,phone:a,PC:i})})).status}t.d(s,{$C:function(){return u},A9:function(){return a},NR:function(){return l},Nq:function(){return d},OU:function(){return o},SS:function(){return c},Ty:function(){return i},cK:function(){return n},j1:function(){return h},n$:function(){return r}})},7230:function(e,s,t){"use strict";t.d(s,{default:function(){return a}});var n=t(7437);let r=(0,t(9099).Ue)(e=>({renders:0,decrement:()=>e(e=>({renders:e.renders-1}))}));function a(e){let{userRenders:s}=e;r.setState({renders:s});let{renders:t}=r();return(0,n.jsxs)("div",{className:"relative mx-2 p-4",children:[(0,n.jsx)("span",{className:"badge badge-primary absolute right-0 top-3 md:text-base",children:t}),(0,n.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-[url('/assets/intdecor-coin-n.svg')] bg-contain bg-center bg-no-repeat md:h-12 md:w-12"})]})}},8356:function(e,s,t){"use strict";t.d(s,{default:function(){return a}});var n=t(7437),r=t(8277);function a(e){let{text:s}=e;return(0,n.jsx)("a",{onClick:async()=>{await (0,r.SS)(),window.location.href="/"},children:s},"logout")}},4389:function(e,s,t){"use strict";t.d(s,{default:function(){return o}});var n=t(7437),r=t(8277),a=t(6463),i=t(2265);function o(e){let{formDictionary:s,actionDictionary:t,loadingText:o}=e,l=(0,a.useRouter)(),[u,c]=(0,i.useState)(!1),[d,h]=(0,i.useState)(null),[f,m]=(0,i.useState)(!1),[p,w]=(0,i.useState)({email:"",password:""}),b=async()=>{c(!0);let e=await (0,r.n$)(p.email,p.password);"User logged in successfully"===e?l.push("/render"):"User not verified"===e?l.push("/user/verify-email"):(h(e),c(!1))};return(0,n.jsxs)("div",{className:"space-y-2",children:[d&&(0,n.jsxs)("div",{className:"alert alert-error",children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 shrink-0 stroke-current",fill:"none",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,n.jsx)("span",{children:d})]}),(0,n.jsx)("div",{className:"card rounded-3xl bg-base-200 shadow-xl",children:(0,n.jsx)("div",{className:"card-body",children:(0,n.jsxs)("div",{className:"form-control space-y-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"label",children:(0,n.jsx)("span",{className:"label-text",children:s.email})}),(0,n.jsx)("input",{type:"email",placeholder:"[email protected]",className:"input input-bordered w-full",value:p.email,onChange:e=>w({...p,email:e.target.value}),required:!0})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"label space-x-8",children:[(0,n.jsx)("span",{className:"label-text",children:s.password}),(0,n.jsx)("span",{className:"label-text-alt",children:(0,n.jsx)("a",{tabIndex:-1,href:"/user/forgot-password",className:"link-hover link-primary",children:t.forgotPassword})})]}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{type:f?"text":"password",placeholder:"*********",className:"input input-bordered w-full",value:p.password,onChange:e=>w({...p,password:e.target.value}),onKeyDown:e=>{"Enter"===e.key&&b()},required:!0}),(0,n.jsx)("button",{className:"absolute right-3.5 top-3.5 bg-transparent",onClick:()=>m(!f),children:f?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-5 w-5",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"})}):(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-5 w-5",children:[(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})})]})]}),(0,n.jsx)("button",{className:"btn btn-circle btn-primary btn-block ".concat(u?"btn-disabled":""),onClick:b,children:u?o:t.button})]})})})]})}}},function(e){e.O(0,[468,971,23,744],function(){return e(e.s=9873)}),_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.