PageSourceSearch

https://iluminarte.art/static/js/2614.de710edd.chunk.js

js iluminarte.art collected 2026-10-02 01:16:00 UTC 12,099 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2614],{5487:function(e,n,r){r.d(n,{Ai:function(){return f},c0:function(){return p},eD:function(){return c},gF:function(){return d},y1:function(){return u},zB:function(){return l}});var t=r(5861),o=r(4687),i=r.n(o),a=r(1718),s=r(6204),c=function(){var e=(0,t.Z)(i().mark((function e(n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.Z.head("/api/identification?id=".concat(n),{headers:{"Content-Type":"application/json"}});case 2:return r=e.sent,e.abrupt("return",null===r||void 0===r?void 0:r.data);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),u=function(){var e=(0,t.Z)(i().mark((function e(n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.Z.post("/api/signup",n,{headers:{"Content-Type":"application/json"}});case 2:return r=e.sent,e.abrupt("return",null===r||void 0===r?void 0:r.data);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),l=function(){var e=(0,t.Z)(i().mark((function e(n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.Z.post("/api/signin",n,{headers:{"Content-Type":"application/json"}});case 2:return r=e.sent,e.abrupt("return",null===r||void 0===r?void 0:r.data);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),d=function(){var e=(0,t.Z)(i().mark((function e(n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.Z.post("/api/forgot-password",{email:n},{headers:{"Content-Type":"application/json"}});case 2:return r=e.sent,e.abrupt("return",null===r||void 0===r?void 0:r.data);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),p=function(){var e=(0,t.Z)(i().mark((function e(n,r){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.Z.post("/api/reset-password",{token:n,password:r},{headers:{"Content-Type":"application/json"}});case 2:return t=e.sent,e.abrupt("return",null===t||void 0===t?void 0:t.data);case 4:case"end":return e.stop()}}),e)})));return function(n,r){return e.apply(this,arguments)}}(),f=function(){var e=(0,t.Z)(i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.Z.get("/api/profile",{headers:{"Content-Type":"application/json"}});case 2:return n=e.sent,e.abrupt("return",null===n||void 0===n?void 0:n.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},7310:function(e,n,r){r.d(n,{o:function(){return s}});var t=r(1413),o=r(5987),i=(r(7313),r(6417)),a=["text","onClick","isLoading","disabled","variant"],s=function(e){var n=e.text,r=e.onClick,s=e.isLoading,c=void 0!==s&&s,u=e.disabled,l=void 0!==u&&u,d=e.variant,p=void 0===d?"primary":d,f=(0,o.Z)(e,a);return(0,i.jsxs)("button",(0,t.Z)((0,t.Z)({className:"button ".concat(p),onClick:r,disabled:c||l},f),{},{children:[c&&(0,i.jsx)("span",{className:"button-loading"}),(0,i.jsx)("span",{children:n})]}))}},5284:function(e,n,r){r.d(n,{y:function(){return s}});r(7313);var t=r(8259),o=r(8207),i=r(6417),a={cpf:t.DC,phone:o.y,date:function(e){var n=e.replace(/\D/g,"").slice(0,8),r=n.slice(0,2),t=n.slice(2,4),o=n.slice(4,8);return n.length<=2?r:n.length<=4?"".concat(r,"/").concat(t):"".concat(r,"/").concat(t,"/").concat(o)},cep:function(e){return e?e=(e=e.replace(/\D/g,"")).replace(/(\d{5})(\d)/,"$1-$2"):""}},s=function(e){var n,r=e.label,t=e.type,o=void 0===t?"text":t,s=e.value,c=e.onChange,u=e.onBlur,l=e.error,d=e.isRequired,p=void 0!==d&&d,f=e.prefix,v=void 0===f?null:f,h=e.mask,g=void 0===h?null:h,m=e.showToggle,w=void 0!==m&&m,x=e.onToggleVisibility,y=void 0===x?void 0:x,b=e.isPasswordVisible,C=void 0!==b&&b,j=function(e){var n=e.target.value;g&&(n=a[g](n)),c(n)};return n=w?C?"text":"password":o,(0,i.jsxs)("div",{className:"form-group",children:[(0,i.jsxs)("label",{className:"label",children:[r," ",p&&"*"]}),v?(0,i.jsxs)("div",{className:"phone-prefix",children:[(0,i.jsx)("div",{className:"phone-prefix-box",children:v}),(0,i.jsx)("input",{type:n,className:"input-field",value:s,onChange:j,onBlur:u})]}):(0,i.jsxs)("div",{style:{position:"relative",display:"flex"},children:[(0,i.jsx)("input",{type:n,className:"input-field",value:s,onChange:j,onBlur:u,placeholder:r,style:{width:"100%"}}),w&&(0,i.jsx)("button",{className:"input-icon",type:"button",onClick:y,style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"},children:C?"\ud83d\udc41\ufe0f":"\ud83d\udc41\ufe0f\u200d\ud83d\udde8\ufe0f"})]}),l&&(0,i.jsx)("div",{className:"error-message",children:l})]})}},6865:function(e,n,r){r.d(n,{u:function(){return o}});r(7313);
1var t=r(6417),o=function(){return(0,t.jsx)("div",{className:"yellow-line"})}},5968:function(e,n){var r,t=null===(r={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_API_URL)||void 0===r?void 0:r.trim(),o={urlServer:t||"http://localhost:8000"},i={urlServer:t||window.location.origin},a=window.location.href.match("localhost")?o:i;n.Z=a},2614:function(e,n,r){r.r(n);var t=r(5861),o=r(9439),i=r(4687),a=r.n(i),s=r(7313),c=r(8467),u=r(1387),l=r(3137),d=r(6865),p=r(5284),f=r(7310),v=r(5487),h=r(6417);n.default=function(){var e=(0,c.s0)(),n=s.useState(""),r=(0,o.Z)(n,2),i=r[0],g=r[1],m=s.useState(""),w=(0,o.Z)(m,2),x=w[0],y=w[1],b=s.useState({password:"",confirmPassword:""}),C=(0,o.Z)(b,2),j=C[0],T=C[1],k=s.useState(!1),Z=(0,o.Z)(k,2),S=Z[0],P=Z[1],A=s.useState(!1),D=(0,o.Z)(A,2),N=D[0],$=D[1],R=s.useState(!1),E=(0,o.Z)(R,2),_=E[0],I=E[1],U=s.useMemo((function(){return function(){var e=window.location.href,n=e.match(/[?#&]access_token=([^&#]+)/),r=e.match(/[?#&]type=([^&#]+)/);return{accessToken:decodeURIComponent((null===n||void 0===n?void 0:n[1])||""),type:decodeURIComponent((null===r||void 0===r?void 0:r[1])||"")}}()}),[]),L=U.accessToken,V=U.type;s.useEffect((function(){L&&"recovery"===V||((0,u.Am)("Link inv\xe1lido ou expirado. Por favor, solicite um novo link de recupera\xe7\xe3o.",{type:"error"}),e("/forgot-password"))}),[L,V,e]),s.useEffect((function(){var e=null;if(L&&"recovery"===V){var n="reset-bridge-attempted-".concat(L.slice(0,16));if(!window.sessionStorage.getItem(n)){window.sessionStorage.setItem(n,"1");var r="iluminart://reset-password?access_token=".concat(encodeURIComponent(L),"&type=").concat(encodeURIComponent(V));e=window.setTimeout((function(){window.location.href=r}),300)}}return function(){null!==e&&window.clearTimeout(e)}}),[L,V]);var F=function(){var n=(0,t.Z)(a().mark((function n(r){var t,o,s,c,d;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.preventDefault(),t={password:"",confirmPassword:""},(o=l.k.password(i))&&(t.password=o),x?i!==x&&(t.confirmPassword="As senhas n\xe3o coincidem"):t.confirmPassword="Confirma\xe7\xe3o de senha \xe9 obrigat\xf3ria",T(t),t.password||t.confirmPassword||!L){n.next=22;break}return n.prev=7,P(!0),n.next=11,(0,v.c0)(L,i);case 11:(0,u.Am)("Senha redefinida com sucesso! Voc\xea j\xe1 pode fazer login.",{type:"success"}),e("/"),n.next=19;break;case 15:n.prev=15,n.t0=n.catch(7),d=(null===n.t0||void 0===n.t0||null===(s=n.t0.response)||void 0===s||null===(c=s.data)||void 0===c?void 0:c.message)||"N\xe3o foi poss\xedvel redefinir a senha. O link pode ter expirado. Por favor, solicite um novo link.",(0,u.Am)(d,{type:"error"});case 19:return n.prev=19,P(!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[7,15,19,22]])})));return function(e){return n.apply(this,arguments)}}();return L&&"recovery"===V?(0,h.jsx)("div",{className:"container",children:(0,h.jsxs)("div",{className:"content",style:{marginTop:20},children:[(0,h.jsx)("h1",{className:"title",children:"Redefinir senha"}),(0,h.jsx)(d.u,{}),(0,h.jsxs)("div",{style:{marginTop:24},children:[(0,h.jsx)("p",{style:{color:"#666",fontSize:14,marginBottom:24,textAlign:"center"},children:"Digite sua nova senha abaixo."}),(0,h.jsx)(p.y,{label:"Nova senha",type:"password",value:i,onChange:g,error:j.password,isRequired:!0,showToggle:!0,isPasswordVisible:N,onToggleVisibility:function(){return $(!N)}}),(0,h.jsx)("div",{style:{marginTop:16},children:(0,h.jsx)(p.y,{label:"Confirmar senha",type:"password",value:x,onChange:y,error:j.confirmPassword,isRequired:!0,showToggle:!0,isPasswordVisible:_,onToggleVisibility:function(){return I(!_)}})}),(0,h.jsx)("div",{style:{marginTop:32},children:(0,h.jsx)(f.o,{text:"Redefinir senha",onClick:F,isLoading:S})})]}),(0,h.jsx)("div",{style:{marginTop:24},children:(0,h.jsx)(d.u,{})}),(0,h.jsx)("div",{style:{marginTop:16,textAlign:"center"},children:(0,h.jsx)("button",{className:"link-highlight",onClick:function(){e("/")},children:"Voltar ao login"})})]})}):null}},1718:function(e,n,r){var t=r(1881),o=r.n(t),i=r(9884),a=r(5968),s=r(2933),c=o().create({baseURL:a.Z.urlServer,timeout:72e4,headers:{"Content-Type":"application/json"}});c.interceptors.request.use((function(e){var n=(0,i.$l)(s.Z).token;return n&&(e.headers.Authorization="Bearer ".concat(n)),e.data instanceof FormData&&delete e.headers["Content-Type"],e}),(function(e){return Promise.reject(e)})),c.interceptors.response.use((function(e){return e}),(function(e){var n;return 401===(null===(n=e.response)||void 0===n?void 0:n.status)&&((0,i.z8)(s.Z,{isAuthenticate:!1,token:"",user:null}),["#/"].includes(window.location.hash)||(window.location.hash="/")),Promise.reject(e)})),n.Z=c},6204:function(e,n,r){var t=r(1881),o=r.n(t),i=r(5968),a=o().create({baseURL:i.Z.urlServer,timeout:72e4,headers:{"Content-Type":"application/json"}});n.Z=a},8065:function(e,n,r){r.d(n,{s:function(){return t}});var t=function(e){if(11!==(e=e.replace(/[^\d]/g,"")).length)return!1;if(/^(\d)\1{10}$/.test(e))return!1;for(var n=0,r=0;r<9;r++)n+=parseInt(e.charAt(r),10)*(10-r);var t=n%11,o=t<2?0:11-t;if(parseInt(e.charAt(9),10)!==o)return!1;n=0;for(var i=0;i<10;i++)n+=parseInt(e.charAt(i),10)*(11-i);var a=(t=n%11)<2?0:11-t;return parseInt(e.charAt(10),10)===a}},8259:function(e,n,r){r.d(n,{DC:function(){return t},Uo:function(){return o}});
1var t=function(e){return(e=(e=(e=(e=e.replace(/\D/g,"")).replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d{1,2})$/,"$1-$2")).substring(0,14)},o=function(e){return e?e.toString().replace(/\D/g,""):""}},8207:function(e,n,r){r.d(n,{T:function(){return o},y:function(){return t}});var t=function(e){return e?(e=(e=(e=e.replace(/\D/g,"")).replace(/(\d{2})(\d)/,"($1) $2")).replace(/(\d)(\d{4})$/,"$1-$2")).substring(0,16):""},o=function(e){var n=e.replace(/\D/g,"").slice(0,11);return n.length<=2?n:n.length<=6?"(".concat(n.slice(0,2),") ").concat(n.slice(2)):n.length<=10?"(".concat(n.slice(0,2),") ").concat(n.slice(2,6),"-").concat(n.slice(6,10)):"(".concat(n.slice(0,2),") ").concat(n.slice(2,7),"-").concat(n.slice(7,11))}},3137:function(e,n,r){r.d(n,{k:function(){return o}});var t=r(8065),o={email:function(e){return e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?null:"E-mail inv\xe1lido":"E-mail \xe9 obrigat\xf3rio"},password:function(e){return e?e.length<8?"Senha deve ter no m\xednimo 8 caracteres":null:"Senha \xe9 obrigat\xf3ria"},required:function(e,n){return e&&""!==e.trim()?null:"".concat(n," \xe9 obrigat\xf3rio")},cpf:function(e){if(!e)return"CPF \xe9 obrigat\xf3rio";var n=e.replace(/[^\d]/g,"");return 11!==n.length?"CPF deve ter 11 d\xedgitos":(0,t.s)(n)?null:"CPF inv\xe1lido"},phone:function(e){if(!e)return"Telefone \xe9 obrigat\xf3rio";var n=e.replace(/[^\d]/g,"");return 10!==n.length&&11!==n.length?"Telefone inv\xe1lido":null},birthDate:function(e){return e?/^\d{2}\/\d{2}\/\d{4}$/.test(e)?null:"Formato inv\xe1lido (DD/MM/AAAA)":"Data de nascimento \xe9 obrigat\xf3ria"},cep:function(e){return e?8!==e.replace(/[^\d]/g,"").length?"CEP deve ter 8 d\xedgitos":null:"CEP \xe9 obrigat\xf3rio"},number:function(e){return e?/^\d+$/.test(e.replace(/\D/g,""))?null:"Apenas n\xfameros s\xe3o permitidos":"N\xfamero \xe9 obrigat\xf3rio"}}}}]);

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.