PageSourceSearch

https://intdecor.ai/_next/static/chunks/app/%5Blang%5D/user/signup/page-1bef016ed6e9f5c5.js

js intdecor.ai collected 2026-10-05 15:22:29 UTC 12,480 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[621],{5498:function(e,t,a){Promise.resolve().then(a.t.bind(a,8173,23)),Promise.resolve().then(a.bind(a,7230)),Promise.resolve().then(a.bind(a,8356)),Promise.resolve().then(a.bind(a,7320)),Promise.resolve().then(a.bind(a,857)),Promise.resolve().then(a.bind(a,6817))},8164:function(e,t,a){"use strict";async function l(e){return e&&200===(await fetch("/api/captcha/validate?captcha=".concat(e),{method:"POST"})).status||(console.error("Captcha validation failed"),!1)}a.d(t,{i:function(){return l}})},1373:function(e,t,a){"use strict";a.d(t,{Hw:function(){return n},O_:function(){return r},vX:function(){return s}});var l=a(9099);let s=(0,l.Ue)(e=>({name:"",email:"",password:""})),n=(0,l.Ue)(e=>({companyName:"",NIF:"",country:"",province:"",postalCode:"",telephone:"",address:""})),r=(0,l.Ue)(e=>({haveCompany:!1,setHaveCompany:t=>e({haveCompany:t})}))},7320:function(e,t,a){"use strict";a.d(t,{default:function(){return u}});var l=a(7437),s=a(7516),n=a(7969),r=a(1373),c=a(2265),i=a(7772),o=a(838),d=a(7793);function u(e){var t,a,u,h,p;let{dictionary:x,lang:m}=e,{haveCompany:b}=(0,r.O_)(),{companyName:v,NIF:j,country:N,province:g,postalCode:w,telephone:f,address:k}=(0,r.Hw)(),{countriesStore:y,statesStore:C,countrySelected:S,stateSelected:L}=(0,n.S)(),[O,_]=(0,c.useState)(!1),[H,P]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{(void 0===y||0===y.length)&&(0,s.o)().then(e=>{let t=e.find(e=>"ES"===e.iso2);t&&(0,s.P)(t._id).then(a=>{n.S.setState({countriesStore:e,countrySelected:t,statesStore:a,stateSelected:a&&a.length>0?a[0]:void 0}),r.Hw.setState({country:t.iso2,province:a&&a.length>0?a[0].name:"NOT_FOUND"})})})},[y]),(0,l.jsxs)("div",{className:"mx-4 grid grid-cols-3 gap-2 transition-opacity ".concat(b?"opacity-100":"h-0 w-0 opacity-0 duration-0"),children:[(0,l.jsxs)("div",{className:"col-span-2",children:[(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text",children:x.name})}),(0,l.jsx)("input",{type:"text",placeholder:"IntDecor S.L.",className:"input input-bordered w-full",value:v,onChange:e=>r.Hw.setState({companyName:e.target.value})})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text",children:x.NIF})}),(0,l.jsx)("input",{type:"text",placeholder:"12345678-A",className:"input input-bordered w-full max-w-xs",value:j,onChange:e=>r.Hw.setState({NIF:e.target.value})})]}),(0,l.jsxs)("div",{className:"col-span-2",children:[(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text",children:x.country})}),(0,l.jsx)(i.Z,{id:"country-selector",open:O,onToggle:()=>_(!O),onChange:e=>{if(r.Hw.setState({country:e}),y){let t=y.find(t=>t.iso2===e);t&&(n.S.setState({countrySelected:t}),(0,s.P)(S._id).then(e=>{n.S.setState({statesStore:e,stateSelected:e&&e.length>0?e[0]:void 0}),r.Hw.setState({province:e&&e.length>0?e[0].name:"NOT_FOUND"})}),_(!1))}},selectedValue:{title:null!==(a=null!==(t=null==S?void 0:S.translations[m])&&void 0!==t?t:null==S?void 0:S.name)&&void 0!==a?a:"NOT_FOUND",value:null!==(u=null==S?void 0:S.iso2)&&void 0!==u?u:"NOT_FOUND"},lang:m})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text",children:x.province})}),(0,l.jsx)(o.Z,{id:"state-selector",open:H,onToggle:()=>P(!H),onChange:e=>{if(r.Hw.setState({province:e}),C){let t=C.find(t=>t.name===e);t&&(n.S.setState({stateSelected:t}),P(!1))}},selectedValue:{title:null!==(h=null==L?void 0:L.name)&&void 0!==h?h:"NOT_FOUND",value:null!==(p=null==L?void 0:L.name)&&void 0!==p?p:"NOT_FOUND"},lang:m})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text",children:x.postalCode})}),(0,l.jsx)("input",{type:"text",placeholder:"123456",className:"input input-bordered w-full max-w-xs text-center",value:w,onChange:e=>{isNaN(Number(e.target.value))||(e.target.value.length<=6?r.Hw.setState({postalCode:e.target.value}):r.Hw.setState({postalCode:e.target.value.substring(0,6)}))}})]}),(0,l.jsxs)("div",{className:"col-span-2",children:[(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text",children:x.telephone})}),(0,l.jsx)(d.ZP,{defaultCountry:N,className:"input input-bordered w-full max-w-xs",placeholder:"623 456 789",value:f,onChange:e=>{!e||isNaN(Number(e))||(f.length<=11?r.Hw.setState({telephone:e}):r.Hw.setState({telephone:e.substring(0,11)}))}})]}),(0,l.jsxs)("div",{className:"col-span-3",children:[(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text",children:x.address})}),(0,l.jsx)("input",{type:"text",placeholder:"Calle, 123",className:"input input-bordered w-full",value:k,onChange:e=>r.Hw.setState({address:e.target.value})})]})]})}a(2892)},857:function(e,t,a){"use strict";a.d(t,{default:function(){return u}});var l=a(7437),s=a(8164),n=a(8277),r=a(1373),c=a(7138),i=a(6463),o=a(2265),d=a(1907);function u(e){let{dictionary:t,loadingText:a,captchaDictionary:u,lang:h}=e,p=(0,i.useRouter)(),{name:x,email:m,password:b}=(0,r.vX)(),{companyName:v,NIF:j,country:N,province:g,postalCode:w,telephone:f,address:k}=(0,r.Hw)(),{haveCompany:y,setHaveCompany:C}=(0,r.O_)(),[S,L]=(0,o.useState)(!1),[O,_]=(0,o.useState)(!1),[H,P]=(0,o.useState)(null),[A,F]=(0,o.useState)(!1),[M,U]=(0,o.useState)(null),E=()=>
1{if(A)return!0;let e=""===x||""===m||""===b||!O||!H;return y?e||""===v||""===j||""===N||""===g||""===w||""===f||""===k:e},T=async()=>{if(E()||null===H)return;if(F(!0),!await (0,s.i)(H)){U(u.error),P(null),window.grecaptcha.reset(),F(!1);return}let e=await (0,n.cK)({name:x,email:m,password:b,company:{name:v,NIF:j,country:N,state:g,PC:w,phone:f,address:k,logo:null},logo:null,commercialCom:S,language:h},y);"User created successfully"===e?p.push("/user/verify-email"):(U(e),P(null),window.grecaptcha.reset(),F(!1))};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)("label",{className:"label cursor-pointer justify-start space-x-4",children:[(0,l.jsx)("input",{type:"checkbox",className:"checkbox-neutral checkbox",checked:y,onChange:()=>C(!y)}),(0,l.jsx)("span",{className:"label-text",children:t.companyCheckbox})]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("label",{className:"label cursor-pointer justify-start space-x-4",children:[(0,l.jsx)("input",{type:"checkbox",className:"checkbox-neutral checkbox",checked:S,onChange:()=>{L(!S)}}),(0,l.jsx)("span",{className:"label-text",children:t.comercialConditions})]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("label",{className:"label cursor-pointer justify-start space-x-4",children:[(0,l.jsx)("input",{type:"checkbox",className:"checkbox-primary checkbox",checked:O,onChange:()=>{_(!O)}}),(0,l.jsxs)("span",{className:"label-text",children:[t.termsAndConditions," ",(0,l.jsx)(c.default,{className:"link link-primary",href:"/legal",children:t.termsAndConditionsLink})," ",t.privacyPolicy," ",(0,l.jsx)(c.default,{className:"link link-primary",href:"/privacy",children:t.privacyPolicyLink})]})]})}),(0,l.jsx)("div",{className:"mt-4 flex items-center justify-center",children:(0,l.jsx)(d.Z,{sitekey:"6Ldg6pooAAAAALMemf37PuuEI2kF4AaChxBwmqi3",onChange:e=>P(e)})}),(0,l.jsx)("button",{className:"btn btn-circle btn-primary btn-wide mt-4 self
1-center ".concat(E()?"btn-disabled":""),onClick:T,children:A?a:t.button}),(0,l.jsx)("label",{className:"label my-4 max-w-md text-center text-error ".concat(""!==M?"block":"hidden"),children:M})]})}},6817:function(e,t,a){"use strict";a.d(t,{default:function(){return r}});var l=a(7437),s=a(1373),n=a(2265);function r(e){let{dictionary:t}=e,{name:a,email:r,password:c}=(0,s.vX)(),[i,o]=(0,n.useState)(""),[d,u]=(0,n.useState)(!1),[h,p]=(0,n.useState)(!1),x=()=>r.includes("@")||0===r.length;return(0,l.jsxs)("div",{className:"form-control w-full items-center justify-center",children:[(0,l.jsxs)("div",{className:"mb-2",children:[(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text",children:t.name})}),(0,l.jsx)("input",{type:"text",placeholder:"John Doe",className:"input input-bordered w-full max-w-xs",required:!0,value:a,onChange:e=>s.vX.setState({name:e.target.value})})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text",children:t.email})}),(0,l.jsx)("input",{type:"email",placeholder:"[email protected]",className:"input input-bordered w-full max-w-xs ".concat(x()?"":"input-error"),required:!0,value:r,onChange:e=>s.vX.setState({email:e.target.value})}),(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text-alt text-error ".concat(x()?"hidden":"block"),children:t.emailError})})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text",children:t.password})}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{type:d?"text":"password",placeholder:"*********",className:"input input-bordered w-full max-w-xs ".concat(c.length>=8||0===c.length?"":"input-error"),required:!0,value:c,onChange:e=>s.vX.setState({password:e.target.value})}),(0,l.jsx)("button",{type:"button",className:"absolute right-3.5 top-3.5 bg-transparent",onClick:()=>u(!d),children:d?(0,l.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,l.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,l.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,l.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,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})})]}),(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text-alt text-error ".concat(c.length>=8||0===c.length?"hidden":"block"),children:t.passwordError})})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text",children:t.passwordConfirmation})}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{type:h?"text":"password",placeholder:"*********",className:"input input-bordered w-full max-w-xs ".concat(c===i||0===c.length?"":"input-error"),"data-tip":"Las contrase\xf1as deben coincidir para continuar",required:!0,value:i,onChange:e=>o(e.target.value)}),(0,l.jsx)("button",{type:"button",className:"absolute right-3.5 top-3.5 bg-transparent",onClick:()=>p(!h),children:h?(0,l.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,l.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,l.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,l.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,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})})]}),(0,l.jsx)("label",{className:"label",children:(0,l.jsx)("span",{className:"label-text-alt text-error ".concat(c===i||0===c.length?"hidden":"block"),children:t.passwordConfirmationError})})]})]})}}},function(e){e.O(0,[557,468,907,584,288,187,971,23,744],function(){return e(e.s=5498)}),_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.