@s_mart/telas-de-acesso 2.0.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +68 -56
- package/dist/index.mjs +65 -53
- package/package.json +13 -14
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var M2=Object.create;var G=Object.defineProperty,C2=Object.defineProperties,H2=Object.getOwnPropertyDescriptor,b2=Object.getOwnPropertyDescriptors,x2=Object.getOwnPropertyNames,l1=Object.getOwnPropertySymbols,V2=Object.getPrototypeOf,P1=Object.prototype.hasOwnProperty,U1=Object.prototype.propertyIsEnumerable;var W1=(e,a,r)=>a in e?G(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,S=(e,a)=>{for(var r in a||(a={}))P1.call(a,r)&&W1(e,r,a[r]);if(l1)for(var r of l1(a))U1.call(a,r)&&W1(e,r,a[r]);return e},L=(e,a)=>C2(e,b2(a));var T=(e,a)=>{var r={};for(var c in e)P1.call(e,c)&&a.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&l1)for(var c of l1(e))a.indexOf(c)<0&&U1.call(e,c)&&(r[c]=e[c]);return r};var s1=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports),S2=(e,a)=>{for(var r in a)G(e,r,{get:a[r],enumerable:!0})},Y1=(e,a,r,c)=>{if(a&&typeof a=="object"||typeof a=="function")for(let i of x2(a))!P1.call(e,i)&&i!==r&&G(e,i,{get:()=>a[i],enumerable:!(c=H2(a,i))||c.enumerable});return e};var M=(e,a,r)=>(r=e!=null?M2(V2(e)):{},Y1(a||!e||!e.__esModule?G(r,"default",{value:e,enumerable:!0}):r,e)),E2=e=>Y1(G({},"__esModule",{value:!0}),e);var d0=s1(s=>{"use strict";var f=typeof Symbol=="function"&&Symbol.for,$1=f?Symbol.for("react.element"):60103,O1=f?Symbol.for("react.portal"):60106,f1=f?Symbol.for("react.fragment"):60107,g1=f?Symbol.for("react.strict_mode"):60108,Z1=f?Symbol.for("react.profiler"):60114,y1=f?Symbol.for("react.provider"):60109,M1=f?Symbol.for("react.context"):60110,D1=f?Symbol.for("react.async_mode"):60111,C1=f?Symbol.for("react.concurrent_mode"):60111,H1=f?Symbol.for("react.forward_ref"):60112,b1=f?Symbol.for("react.suspense"):60113,W2=f?Symbol.for("react.suspense_list"):60120,x1=f?Symbol.for("react.memo"):60115,V1=f?Symbol.for("react.lazy"):60116,U2=f?Symbol.for("react.block"):60121,Y2=f?Symbol.for("react.fundamental"):60117,K2=f?Symbol.for("react.responder"):60118,X2=f?Symbol.for("react.scope"):60119;function E(e){if(typeof e=="object"&&e!==null){var a=e.$$typeof;switch(a){case $1:switch(e=e.type,e){case D1:case C1:case f1:case Z1:case g1:case b1:return e;default:switch(e=e&&e.$$typeof,e){case M1:case H1:case V1:case x1:case y1:return e;default:return a}}case O1:return a}}}function h0(e){return E(e)===C1}s.AsyncMode=D1;s.ConcurrentMode=C1;s.ContextConsumer=M1;s.ContextProvider=y1;s.Element=$1;s.ForwardRef=H1;s.Fragment=f1;s.Lazy=V1;s.Memo=x1;s.Portal=O1;s.Profiler=Z1;s.StrictMode=g1;s.Suspense=b1;s.isAsyncMode=function(e){return h0(e)||E(e)===D1};s.isConcurrentMode=h0;s.isContextConsumer=function(e){return E(e)===M1};s.isContextProvider=function(e){return E(e)===y1};s.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$1};s.isForwardRef=function(e){return E(e)===H1};s.isFragment=function(e){return E(e)===f1};s.isLazy=function(e){return E(e)===V1};s.isMemo=function(e){return E(e)===x1};s.isPortal=function(e){return E(e)===O1};s.isProfiler=function(e){return E(e)===Z1};s.isStrictMode=function(e){return E(e)===g1};s.isSuspense=function(e){return E(e)===b1};s.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===f1||e===C1||e===Z1||e===g1||e===b1||e===W2||typeof e=="object"&&e!==null&&(e.$$typeof===V1||e.$$typeof===x1||e.$$typeof===y1||e.$$typeof===M1||e.$$typeof===H1||e.$$typeof===Y2||e.$$typeof===K2||e.$$typeof===X2||e.$$typeof===U2)};s.typeOf=E});var v0=s1(h=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,a=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,c=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,m=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,b=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,A=e?Symbol.for("react.suspense"):60113,K=e?Symbol.for("react.suspense_list"):60120,R=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,n1=e?Symbol.for("react.block"):60121,i1=e?Symbol.for("react.fundamental"):60117,t1=e?Symbol.for("react.responder"):60118,c1=e?Symbol.for("react.scope"):60119;function Y0(t){return typeof t=="string"||typeof t=="function"||t===c||t===b||t===l||t===i||t===A||t===K||typeof t=="object"&&t!==null&&(t.$$typeof===x||t.$$typeof===R||t.$$typeof===u||t.$$typeof===m||t.$$typeof===y||t.$$typeof===i1||t.$$typeof===t1||t.$$typeof===c1||t.$$typeof===n1)}function V(t){if(typeof t=="object"&&t!==null){var A1=t.$$typeof;switch(A1){case a:var o1=t.type;switch(o1){case g:case b:case c:case l:case i:case A:return o1;default:var z1=o1&&o1.$$typeof;switch(z1){case m:case y:case x:case R:case u:return z1;default:return A1}}case r:return A1}}}var K0=g,X0=b,Q0=m,G0=u,J0=a,e2=y,a2=c,r2=x,n2=R,i2=r,t2=l,c2=i,o2=A,q1=!1;function l2(t){return q1||(q1=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j1(t)||V(t)===g}function j1(t){return V(t)===b}function s2(t){return V(t)===m}function h2(t){return V(t)===u}function d2(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function v2(t){return V(t)===y}function m2(t){return V(t)===c}function u2(t){return V(t)===x}function p2(t){return V(t)===R}function f2(t){return V(t)===r}function g2(t){return V(t)===l}function Z2(t){return V(t)===i}function y2(t){return V(t)===A}h.AsyncMode=K0,h.ConcurrentMode=X0,h.ContextConsumer=Q0,h.ContextProvider=G0,h.Element=J0,h.ForwardRef=e2,h.Fragment=a2,h.Lazy=r2,h.Memo=n2,h.Portal=i2,h.Profiler=t2,h.StrictMode=c2,h.Suspense=o2,h.isAsyncMode=l2,h.isConcurrentMode=j1,h.isContextConsumer=s2,h.isContextProvider=h2,h.isElement=d2,h.isForwardRef=v2,h.isFragment=m2,h.isLazy=u2,h.isMemo=p2,h.isPortal=f2,h.isProfiler=g2,h.isStrictMode=Z2,h.isSuspense=y2,h.isValidElementType=Y0,h.typeOf=V}()});var m0=s1((D3,R1)=>{"use strict";process.env.NODE_ENV==="production"?R1.exports=d0():R1.exports=v0()});var M0=s1((R3,y0)=>{"use strict";var F1=m0(),Q2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},G2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},J2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},g0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},I1={};I1[F1.ForwardRef]=J2;I1[F1.Memo]=g0;function u0(e){return F1.isMemo(e)?g0:I1[e.$$typeof]||Q2}var e3=Object.defineProperty,a3=Object.getOwnPropertyNames,p0=Object.getOwnPropertySymbols,r3=Object.getOwnPropertyDescriptor,n3=Object.getPrototypeOf,f0=Object.prototype;function Z0(e,a,r){if(typeof a!="string"){if(f0){var c=n3(a);c&&c!==f0&&Z0(e,c,r)}var i=a3(a);p0&&(i=i.concat(p0(a)));for(var l=u0(e),u=u0(a),m=0;m<i.length;++m){var g=i[m];if(!G2[g]&&!(r&&r[g])&&!(u&&u[g])&&!(l&&l[g])){var b=r3(a,g);try{e3(e,g,b)}catch(y){}}}}return e}y0.exports=Z0});var h3={};S2(h3,{TelaCadastro:()=>s0,TelaConviteExpirado:()=>P0,TelaEsqueceuSenha:()=>U0,TelaInstrucoesEnviadas:()=>D0,TelaLogin:()=>k0,TelaNovaSenha:()=>q0,TemplateTelaBase:()=>H});module.exports=E2(h3);var d1=require("@s_mart/core"),e0=require("@s_mart/masks");var N={description:"m37.5 11.3-19 19.4-7-7.2a.9.9 0 0 0-1.2 0l-2 2.1c-.4.4-.4 1 0 1.3l9.6 9.8c.3.4.9.4 1.2 0l21.6-22.1c.4-.3.4-1 0-1.3l-2-2a.9.9 0 0 0-1.2 0Z",id:"line-check-regular"};var h1={description:"M35.2 12.7a15.9 15.9 0 0 0-25 19.1L8 40l8.4-2.2a16 16 0 0 0 23.6-14 16 16 0 0 0-4.8-11.1ZM24 37a13 13 0 0 1-6.7-1.9l-.5-.3-5 1.3 1.3-4.8-.3-.5a13.2 13.2 0 0 1 20.5-16.3c2.5 2.4 4 5.7 4 9.3C37.3 31 31.3 37 24 37Zm7.2-10-2.7-1c-.4-.1-.6-.2-.9.2l-1.2 1.5c-.3.3-.5.3-.9.1-2.3-1.1-3.9-2-5.4-4.7-.4-.7.4-.6 1.2-2.1v-.7c-.2-.2-1-2.2-1.3-3-.3-.7-.6-.6-.9-.6h-.7c-.3 0-.7 0-1 .4-.4.4-1.5 1.4-1.5 3.3 0 2 1.5 3.9 1.6 4.1.2.3 2.8 4.3 6.8 6 2.5 1.1 3.5 1.2 4.8 1 .7 0 2.3-1 2.6-1.9.4-.9.4-1.7.3-1.9l-.8-.4Z",id:"line-whatsapp-regular"};var n=e=>`${e/16}rem`;var X=M(require("@emotion/styled"));var L2=Object.defineProperty,T2=(e,a)=>{for(var r in a)L2(e,r,{get:a[r],enumerable:!0})},v={};T2(v,{blue:()=>w2,green:()=>O2,neutral:()=>I2,red:()=>P2,yellow:()=>R2});var k2={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},w2=k2,A2={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},P2=A2,$2={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},O2=$2,D2={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},R2=D2,F2={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},I2=F2;var K1=X.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
@media (max-height: 600px) {
|
|
19
19
|
justify-content: flex-start;
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,X1=X.default.div`
|
|
22
22
|
position: absolute;
|
|
23
23
|
left: 0;
|
|
24
24
|
bottom: 32px;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
@media (max-width: 768px) {
|
|
28
28
|
display: none;
|
|
29
29
|
}
|
|
30
|
-
`,Q1=
|
|
30
|
+
`,Q1=X.default.h1`
|
|
31
31
|
position: absolute;
|
|
32
32
|
left: 32px;
|
|
33
33
|
top: 32px;
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
@media (max-width: 500px) {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
`,G1=
|
|
69
|
+
`,G1=X.default.div`
|
|
70
70
|
position: relative;
|
|
71
71
|
z-index: 2;
|
|
72
72
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
margin: ${n(16)};
|
|
76
76
|
|
|
77
77
|
background-color: ${({theme:e})=>e.palette.common.white};
|
|
78
|
-
`,J1=
|
|
78
|
+
`,J1=X.default.button`
|
|
79
79
|
position: relative;
|
|
80
80
|
z-index: 2;
|
|
81
81
|
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
color: ${v.green[300]};
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`;var $=require("react/jsx-runtime");function H({children:e,whatsapp:a,textoChamativo:r,style:c,paperStyle:i,ilustracao:l}){return(0,$.jsxs)(
|
|
102
|
+
`;var $=require("react/jsx-runtime");function H({children:e,whatsapp:a,textoChamativo:r,style:c,paperStyle:i,ilustracao:l}){return(0,$.jsxs)(K1,{style:c,children:[r&&(0,$.jsx)(Q1,{children:r}),l&&(0,$.jsx)(X1,{children:typeof l=="string"?(0,$.jsx)("img",{src:l,alt:"Logo do sistema"}):l}),(0,$.jsx)(G1,{style:i,children:e}),a&&(0,$.jsxs)(J1,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${a}`)},style:{marginBottom:16},children:[(0,$.jsxs)(d1.Typography,{variant:"bodyXS",children:["Com d\xFAvidas? ",e0.telefone.format(a.slice(2))]}),(0,$.jsx)(d1.LIcon,{icon:h1,size:"20px",removeMargin:!0})]})]})}var k=require("@s_mart/core"),F=require("@s_mart/form");var N2=Object.defineProperty,_2=Object.defineProperties,B2=Object.getOwnPropertyDescriptors,a0=Object.getOwnPropertySymbols,q2=Object.prototype.hasOwnProperty,j2=Object.prototype.propertyIsEnumerable,r0=(e,a,r)=>a in e?N2(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,v1=(e,a)=>{for(var r in a||(a={}))q2.call(a,r)&&r0(e,r,a[r]);if(a0)for(var r of a0(a))j2.call(a,r)&&r0(e,r,a[r]);return e},z2=(e,a)=>_2(e,B2(a));var m1=e=>{let a={validate:{}};return e.forEach(r=>{a=z2(v1(v1({},a),r),{validate:v1(v1({},a.validate),r.validate)})}),a},O={validate:{required:e=>{if(!e)return"Obrigat\xF3rio"}}};var u1={validate:{email:e=>{if(e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e))return"O email \xE9 inv\xE1lido"}}};var j=M(require("@emotion/styled"));var n0=j.default.div`
|
|
103
103
|
display: grid;
|
|
104
104
|
gap: ${n(32)};
|
|
105
105
|
`,i0=j.default.header`
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
color: ${v.green[300]};
|
|
150
150
|
border-color: ${v.green[300]};
|
|
151
151
|
`}}
|
|
152
|
-
`;function l0(){let e=i=>i?i.match(/[a-z]/i):!1,a=i=>i?i.match(/[0-9]/i):!1,r=i=>i?i.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:i=>!i.email||!i.senha||!i.confirmarSenha||!i.termosDeUso||!e(i.senha)||!a(i.senha)||!r(i.senha)}}var o=require("react/jsx-runtime");function s0(m){var g=m,{logo:e,nomeSistema:a,onSubmit:r,linkTermosDeUso:c,email:i,nome:l}=g,u=T(g,["logo","nomeSistema","onSubmit","linkTermosDeUso","email","nome"]);let{senhaContemLetra:b,senhaContemNumero:
|
|
152
|
+
`;function l0(){let e=i=>i?i.match(/[a-z]/i):!1,a=i=>i?i.match(/[0-9]/i):!1,r=i=>i?i.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:i=>!i.email||!i.senha||!i.confirmarSenha||!i.termosDeUso||!e(i.senha)||!a(i.senha)||!r(i.senha)}}var o=require("react/jsx-runtime");function s0(m){var g=m,{logo:e,nomeSistema:a,onSubmit:r,linkTermosDeUso:c,email:i,nome:l}=g,u=T(g,["logo","nomeSistema","onSubmit","linkTermosDeUso","email","nome"]);let{senhaContemLetra:b,senhaContemNumero:y,senhaContemMinimoDe6Caracteres:A,desabilitarBotaoDeCadastro:K}=l0(),R=typeof e=="string"?(0,o.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,o.jsx)(H,L(S({},u),{children:(0,o.jsxs)(n0,{children:[(0,o.jsxs)(i0,{children:[e&&(0,o.jsx)("div",{children:R}),(0,o.jsxs)(k.Typography,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",a,"."]})]}),(0,o.jsx)(F.Form,{onSubmit:r,defaultValues:{email:i,nome:l,termosDeUso:!1},children:({watch:x})=>{let n1=b(x("senha")),i1=y(x("senha")),t1=A(x("senha"));return(0,o.jsxs)(t0,{children:[(0,o.jsx)(F.TextField,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),(0,o.jsx)(F.TextField,{name:"nome",label:"Nome completo",required:!0,rules:O}),(0,o.jsxs)(c0,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(F.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:O}),(0,o.jsx)(F.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:c1=>{if(!c1)return"Campo obrigat\xF3rio";if(c1!==x("senha"))return"As senhas devem ser iguais"}}})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(k.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,o.jsxs)(o0,{children:[(0,o.jsxs)(p1,{checked:!!n1,children:[n1&&(0,o.jsx)(k.LIcon,{icon:N,size:"16px",removeMargin:!0}),(0,o.jsx)(k.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,o.jsxs)(p1,{checked:!!i1,children:[i1&&(0,o.jsx)(k.LIcon,{icon:N,size:"16px",removeMargin:!0}),(0,o.jsx)(k.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,o.jsxs)(p1,{checked:!!t1,children:[t1&&(0,o.jsx)(k.LIcon,{icon:N,size:"16px",removeMargin:!0}),(0,o.jsx)(k.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,o.jsx)("div",{children:(0,o.jsx)(F.Checkbox,{name:"termosDeUso",label:(0,o.jsxs)("div",{style:{display:"flex",gap:4},children:[(0,o.jsx)("span",{children:"Li e aceito os"}),(0,o.jsx)("a",{href:c,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),(0,o.jsx)("div",{children:(0,o.jsx)(k.Button,{type:"submit",fullWidth:!0,disabled:K(x()),children:"Concluir meu cadastro"})})]})}})]})}))}var T0=require("react"),W=require("@s_mart/core"),U=require("@s_mart/form");var S1=require("react");var J=M(require("react"),1);var D=M(require("react")),i3=require("react-dom");var t3=M(M0());var c3="SnackbarContent",N3={root:c3+"-root"};var I="SnackbarItem",_3={contentRoot:I+"-contentRoot",lessPadding:I+"-lessPadding",variantSuccess:I+"-variantSuccess",variantError:I+"-variantError",variantInfo:I+"-variantInfo",variantWarning:I+"-variantWarning",message:I+"-message",action:I+"-action",wrappedRoot:I+"-wrappedRoot"};var z="SnackbarContainer",B3={root:z+"-root",rootDense:z+"-rootDense",top:z+"-top",bottom:z+"-bottom",left:z+"-left",right:z+"-right",center:z+"-center"};var q3=process.env.NODE_ENV!=="production";var E1=M(require("@emotion/styled"),1);var H0=M(require("@emotion/styled"),1),_=require("@emotion/react");var o3=require("react/jsx-runtime"),b0=require("react/jsx-runtime"),N1=require("react/jsx-runtime"),x0=require("react"),V0=M(require("react"),1),ee=require("@emotion/styled"),l3=require("@emotion/react"),s3=M(require("react"),1),e1=M(require("react"),1);var C0=()=>{let[e,a]=(0,S1.useState)(!1);return(0,S1.useEffect)(()=>{let r=c=>{c.key==="CapsLock"&&a(c.getModifierState("CapsLock"))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[]),e};var B=({defaultValue:e}={})=>{let a=typeof window!="undefined",r=J.default.useCallback(()=>{if(!a){if(e){let{width:u=0,height:m=0}=e;return{width:u,height:m}}return{width:0,height:0}}return{width:window.innerWidth,height:window.innerHeight}},[a,e]),[c,i]=J.default.useState(r()),l=J.default.useCallback(()=>{i(r())},[i,r]);return J.default.useEffect(()=>a?(window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}):()=>{},[l,a]),c},K3=E1.default.div`
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
155
|
justify-content: space-between;
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
align-items: center;
|
|
170
170
|
gap: ${n(8)};
|
|
171
171
|
}
|
|
172
|
-
`,
|
|
172
|
+
`,X3=E1.default.div`
|
|
173
173
|
display: flex;
|
|
174
174
|
flex-direction: column;
|
|
175
175
|
justify-content: center;
|
|
@@ -177,10 +177,10 @@
|
|
|
177
177
|
> *:first-of-type {
|
|
178
178
|
margin-bottom: ${n(4)};
|
|
179
179
|
}
|
|
180
|
-
`,
|
|
180
|
+
`,Q3=E1.default.div`
|
|
181
181
|
cursor: pointer;
|
|
182
182
|
align-self: flex-start;
|
|
183
|
-
`,
|
|
183
|
+
`,J3=H0.default.i`
|
|
184
184
|
align-self: center;
|
|
185
185
|
display: inline-flex;
|
|
186
186
|
color: ${({color:e})=>e};
|
|
@@ -221,14 +221,14 @@
|
|
|
221
221
|
margin: 0 ${n(4)};
|
|
222
222
|
`}
|
|
223
223
|
}
|
|
224
|
-
`;var
|
|
224
|
+
`;var L1=M(require("@emotion/styled"));var S0=L1.default.div`
|
|
225
225
|
display: grid;
|
|
226
226
|
gap: ${n(32)};
|
|
227
|
-
`,
|
|
227
|
+
`,E0=L1.default.header`
|
|
228
228
|
display: grid;
|
|
229
229
|
text-align: center;
|
|
230
230
|
gap: ${n(16)};
|
|
231
|
-
`,
|
|
231
|
+
`,L0=L1.default.div`
|
|
232
232
|
display: grid;
|
|
233
233
|
gap: ${n(16)};
|
|
234
234
|
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
> div:last-of-type {
|
|
241
241
|
gap: ${n(8)};
|
|
242
242
|
}
|
|
243
|
-
`;var p=require("react/jsx-runtime");function
|
|
243
|
+
`;var p=require("react/jsx-runtime");function k0(u){var m=u,{logo:e,initialValues:a,onSubmit:r,onEsqueciMinhaSenha:c,errorLabel:i}=m,l=T(m,["logo","initialValues","onSubmit","onEsqueciMinhaSenha","errorLabel"]);let g=typeof e=="string"?(0,p.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:b}=B(),y=C0(),A=(0,T0.useMemo)(()=>S({manterConectado:!1},a),[a]);return(0,p.jsx)(H,L(S({},l),{paperStyle:{minWidth:b>500?456:void 0,width:b>500?void 0:"90%"},children:(0,p.jsxs)(S0,{children:[(0,p.jsx)(E0,{children:e&&(0,p.jsx)("div",{children:g})}),(0,p.jsx)(U.Form,{onSubmit:r,defaultValues:A,children:(0,p.jsxs)(L0,{children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(U.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:m1([O,u1]),autoComplete:"email",type:"email"}),(0,p.jsxs)("div",{children:[(0,p.jsx)(U.TextField,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:O}),y&&(0,p.jsx)(W.Indicator,{severity:"warning",children:"Capslock ativado"}),!!i&&(0,p.jsx)(W.Typography,{variant:"titleXXS",color:v.red[300],children:i})]})]}),(0,p.jsx)(U.Checkbox,{name:"manterConectado",label:"Manter conectado"}),(0,p.jsxs)("div",{children:[(0,p.jsx)(W.Button,{type:"submit",fullWidth:!0,children:"Entrar"}),c&&(0,p.jsx)(W.Button,{type:"button",fullWidth:!0,variant:"text",onClick:c,children:"Esqueci minha senha"})]})]})})]})}))}var q=require("@s_mart/core");var _1=M(require("@emotion/styled"));var w0=_1.default.div`
|
|
244
244
|
display: grid;
|
|
245
245
|
gap: ${n(32)};
|
|
246
246
|
|
|
@@ -248,11 +248,11 @@
|
|
|
248
248
|
display: grid;
|
|
249
249
|
gap: ${n(8)};
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
`,A0=_1.default.header`
|
|
252
252
|
display: grid;
|
|
253
253
|
text-align: center;
|
|
254
254
|
gap: ${n(16)};
|
|
255
|
-
`;var C=require("react/jsx-runtime");function
|
|
255
|
+
`;var C=require("react/jsx-runtime");function P0(i){var l=i,{logo:e,onPrecisoDeAjuda:a,onRealizarAcesso:r}=l,c=T(l,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let u=typeof e=="string"?(0,C.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:m}=B();return(0,C.jsx)(H,L(S({},c),{paperStyle:{minWidth:m>500?456:void 0,width:m>500?void 0:"90%"},children:(0,C.jsxs)(w0,{children:[(0,C.jsxs)("div",{children:[(0,C.jsx)(A0,{children:e&&(0,C.jsx)("div",{children:u})}),(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:8,color:v.neutral[800]},children:[(0,C.jsx)(q.Typography,{variant:"bodyMD",children:"Parece que este convite, j\xE1 foi usado ou expirou."}),(0,C.jsx)(q.Typography,{variant:"bodyMD",children:"J\xE1 se cadastro? Realize o login."})]})]}),(0,C.jsxs)("div",{children:[(0,C.jsx)(q.Button,{fullWidth:!0,onClick:r,children:"Realizar login"}),(0,C.jsxs)(q.Button,{fullWidth:!0,variant:"text",onClick:a,style:{display:"flex",gap:4,color:v.neutral[900]},children:[(0,C.jsx)(q.LIcon,{icon:h1,size:"20px",removeMargin:!0,color:v.neutral[900]}),"Preciso de outro convite"]})]})]})}))}var a1=require("@s_mart/core");var B1=M(require("@emotion/styled"));var $0=B1.default.div`
|
|
256
256
|
display: grid;
|
|
257
257
|
gap: ${n(32)};
|
|
258
258
|
|
|
@@ -260,21 +260,21 @@
|
|
|
260
260
|
display: grid;
|
|
261
261
|
gap: ${n(16)};
|
|
262
262
|
}
|
|
263
|
-
`,
|
|
263
|
+
`,O0=B1.default.header`
|
|
264
264
|
display: grid;
|
|
265
265
|
text-align: center;
|
|
266
266
|
gap: ${n(16)};
|
|
267
|
-
`;var P=require("react/jsx-runtime");function
|
|
267
|
+
`;var P=require("react/jsx-runtime");function D0(c){var i=c,{logo:e,onVoltarParaLogin:a}=i,r=T(i,["logo","onVoltarParaLogin"]);let l=typeof e=="string"?(0,P.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:u}=B();return(0,P.jsx)(H,L(S({},r),{paperStyle:{maxWidth:u>500?456:void 0,width:u>500?void 0:"90%"},children:(0,P.jsxs)($0,{children:[(0,P.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,P.jsx)(O0,{children:e&&(0,P.jsx)("div",{children:l})}),(0,P.jsx)(a1.Typography,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),(0,P.jsx)(a1.Typography,{variant:"bodySM",textAlign:"center",children:"Enviamos ao seu e-mail de acesso as instru\xE7\xF5es para criar uma nova senha. Verifique sua caixa de entrada e de Spam."})]}),(0,P.jsx)(a1.Button,{fullWidth:!0,onClick:a,children:"Voltar para login"})]})}))}var w=require("@s_mart/core"),r1=require("@s_mart/form");var Y=M(require("@emotion/styled"));var R0=Y.default.div`
|
|
268
268
|
display: grid;
|
|
269
269
|
gap: ${n(32)};
|
|
270
|
-
`,
|
|
270
|
+
`,F0=Y.default.header`
|
|
271
271
|
display: grid;
|
|
272
272
|
text-align: center;
|
|
273
273
|
gap: ${n(16)};
|
|
274
|
-
`,
|
|
274
|
+
`,I0=Y.default.div`
|
|
275
275
|
display: grid;
|
|
276
276
|
gap: ${n(32)};
|
|
277
|
-
`,
|
|
277
|
+
`,N0=Y.default.div`
|
|
278
278
|
display: grid;
|
|
279
279
|
gap: ${n(4)};
|
|
280
280
|
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
display: grid;
|
|
294
294
|
gap: ${n(4)};
|
|
295
295
|
}
|
|
296
|
-
`,
|
|
296
|
+
`,_0=Y.default.div`
|
|
297
297
|
display: flex;
|
|
298
298
|
flex-wrap: wrap;
|
|
299
299
|
gap: ${n(8)};
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
color: ${v.green[300]};
|
|
315
315
|
border-color: ${v.green[300]};
|
|
316
316
|
`}}
|
|
317
|
-
`;function
|
|
317
|
+
`;function B0(){let e=i=>i?i.match(/[a-z]/i):!1,a=i=>i?i.match(/[0-9]/i):!1,r=i=>i?i.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:i=>!i.senha||!i.confirmarSenha||!e(i.senha)||!a(i.senha)||!r(i.senha)}}var d=require("react/jsx-runtime");function q0(c){var i=c,{logo:e,onTrocarMinhaSenha:a}=i,r=T(i,["logo","onTrocarMinhaSenha"]);let{senhaContemLetra:l,senhaContemNumero:u,senhaContemMinimoDe6Caracteres:m,desabilitarBotaoDeCadastro:g}=B0(),b=typeof e=="string"?(0,d.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,d.jsx)(H,L(S({},r),{children:(0,d.jsxs)(R0,{children:[(0,d.jsxs)(F0,{children:[e&&(0,d.jsx)("div",{children:b}),(0,d.jsx)(w.Typography,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),(0,d.jsx)(r1.Form,{onSubmit:a,children:({watch:y})=>{let A=l(y("senha")),K=u(y("senha")),R=m(y("senha"));return(0,d.jsxs)(I0,{children:[(0,d.jsxs)(N0,{children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(r1.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:O}),(0,d.jsx)(r1.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:x=>{if(!x)return"Campo obrigat\xF3rio";if(x!==y("senha"))return"As senhas devem ser iguais"}}})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(w.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,d.jsxs)(_0,{children:[(0,d.jsxs)(T1,{checked:!!A,children:[A&&(0,d.jsx)(w.LIcon,{icon:N,size:"16px",removeMargin:!0}),(0,d.jsx)(w.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,d.jsxs)(T1,{checked:!!K,children:[K&&(0,d.jsx)(w.LIcon,{icon:N,size:"16px",removeMargin:!0}),(0,d.jsx)(w.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,d.jsxs)(T1,{checked:!!R,children:[R&&(0,d.jsx)(w.LIcon,{icon:N,size:"16px",removeMargin:!0}),(0,d.jsx)(w.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,d.jsx)("div",{children:(0,d.jsx)(w.Button,{type:"submit",fullWidth:!0,disabled:g(y()),children:"Trocar minha senha"})})]})}})]})}))}var Q=require("@s_mart/core");var k1=M(require("@emotion/styled"));var j0=k1.default.div`
|
|
318
318
|
display: grid;
|
|
319
319
|
gap: ${n(32)};
|
|
320
320
|
|
|
@@ -322,11 +322,11 @@
|
|
|
322
322
|
display: grid;
|
|
323
323
|
gap: ${n(16)};
|
|
324
324
|
}
|
|
325
|
-
`,
|
|
325
|
+
`,z0=k1.default.header`
|
|
326
326
|
display: grid;
|
|
327
327
|
text-align: center;
|
|
328
328
|
gap: ${n(16)};
|
|
329
|
-
`,
|
|
329
|
+
`,W0=k1.default.div`
|
|
330
330
|
display: grid;
|
|
331
331
|
gap: ${n(32)};
|
|
332
332
|
|
|
@@ -334,34 +334,46 @@
|
|
|
334
334
|
display: grid;
|
|
335
335
|
gap: ${n(16)};
|
|
336
336
|
}
|
|
337
|
-
`;var w1=require("@s_mart/form");var Z=require("react/jsx-runtime");function
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
337
|
+
`;var w1=require("@s_mart/form");var Z=require("react/jsx-runtime");function U0(i){var l=i,{logo:e,onVoltarParaLogin:a,onConfirmar:r}=l,c=T(l,["logo","onVoltarParaLogin","onConfirmar"]);let u=typeof e=="string"?(0,Z.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:m}=B();return(0,Z.jsx)(H,L(S({},c),{paperStyle:{minWidth:m>500?456:void 0,width:m>500?void 0:"90%"},children:(0,Z.jsxs)(j0,{children:[(0,Z.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,Z.jsx)(z0,{children:e&&(0,Z.jsx)("div",{children:u})}),(0,Z.jsx)(Q.Typography,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),(0,Z.jsx)(Q.Typography,{variant:"bodySM",textAlign:"center",children:"Informe seu e-mail de acesso para receber instru\xE7\xF5es e criar uma nova senha."})]}),(0,Z.jsx)(w1.Form,{onSubmit:r,children:(0,Z.jsxs)(W0,{children:[(0,Z.jsx)("div",{children:(0,Z.jsx)(w1.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:m1([O,u1])})}),(0,Z.jsxs)("div",{children:[(0,Z.jsx)(Q.Button,{fullWidth:!0,type:"submit",children:"Confirmar"}),(0,Z.jsx)(Q.Button,{fullWidth:!0,onClick:a,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}0&&(module.exports={TelaCadastro,TelaConviteExpirado,TelaEsqueceuSenha,TelaInstrucoesEnviadas,TelaLogin,TelaNovaSenha,TemplateTelaBase});
|
|
338
|
+
/*! Bundled license information:
|
|
339
|
+
|
|
340
|
+
@mui/styled-engine/index.js:
|
|
341
|
+
(**
|
|
342
|
+
* @mui/styled-engine v5.12.3
|
|
343
|
+
*
|
|
344
|
+
* @license MIT
|
|
345
|
+
* This source code is licensed under the MIT license found in the
|
|
346
|
+
* LICENSE file in the root directory of this source tree.
|
|
347
|
+
*)
|
|
348
|
+
|
|
349
|
+
@mui/material/index.js:
|
|
350
|
+
(**
|
|
351
|
+
* @mui/material v5.12.3
|
|
352
|
+
*
|
|
353
|
+
* @license MIT
|
|
354
|
+
* This source code is licensed under the MIT license found in the
|
|
355
|
+
* LICENSE file in the root directory of this source tree.
|
|
356
|
+
*)
|
|
357
|
+
*/
|
|
358
|
+
/*! Bundled license information:
|
|
359
|
+
|
|
360
|
+
react-is/cjs/react-is.production.min.js:
|
|
361
|
+
(** @license React v16.13.1
|
|
362
|
+
* react-is.production.min.js
|
|
363
|
+
*
|
|
364
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
365
|
+
*
|
|
366
|
+
* This source code is licensed under the MIT license found in the
|
|
367
|
+
* LICENSE file in the root directory of this source tree.
|
|
368
|
+
*)
|
|
369
|
+
|
|
370
|
+
react-is/cjs/react-is.development.js:
|
|
371
|
+
(** @license React v16.13.1
|
|
372
|
+
* react-is.development.js
|
|
373
|
+
*
|
|
374
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
375
|
+
*
|
|
376
|
+
* This source code is licensed under the MIT license found in the
|
|
377
|
+
* LICENSE file in the root directory of this source tree.
|
|
378
|
+
*)
|
|
379
|
+
*/
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var m2=Object.create;var b1=Object.defineProperty,u2=Object.defineProperties,p2=Object.getOwnPropertyDescriptor,f2=Object.getOwnPropertyDescriptors,g2=Object.getOwnPropertyNames,a1=Object.getOwnPropertySymbols,Z2=Object.getPrototypeOf,x1=Object.prototype.hasOwnProperty,_1=Object.prototype.propertyIsEnumerable;var N1=(e,a,r)=>a in e?b1(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,C=(e,a)=>{for(var r in a||(a={}))x1.call(a,r)&&N1(e,r,a[r]);if(a1)for(var r of a1(a))_1.call(a,r)&&N1(e,r,a[r]);return e},x=(e,a)=>u2(e,f2(a));var V=(e,a)=>{var r={};for(var c in e)x1.call(e,c)&&a.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&a1)for(var c of a1(e))a.indexOf(c)<0&&_1.call(e,c)&&(r[c]=e[c]);return r};var r1=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var y2=(e,a,r,c)=>{if(a&&typeof a=="object"||typeof a=="function")for(let i of g2(a))!x1.call(e,i)&&i!==r&&b1(e,i,{get:()=>a[i],enumerable:!(c=p2(a,i))||c.enumerable});return e};var M2=(e,a,r)=>(r=e!=null?m2(Z2(e)):{},y2(a||!e||!e.__esModule?b1(r,"default",{value:e,enumerable:!0}):r,e));var r0=r1(l=>{"use strict";var u=typeof Symbol=="function"&&Symbol.for,E1=u?Symbol.for("react.element"):60103,L1=u?Symbol.for("react.portal"):60106,s1=u?Symbol.for("react.fragment"):60107,h1=u?Symbol.for("react.strict_mode"):60108,d1=u?Symbol.for("react.profiler"):60114,v1=u?Symbol.for("react.provider"):60109,m1=u?Symbol.for("react.context"):60110,T1=u?Symbol.for("react.async_mode"):60111,u1=u?Symbol.for("react.concurrent_mode"):60111,p1=u?Symbol.for("react.forward_ref"):60112,f1=u?Symbol.for("react.suspense"):60113,W2=u?Symbol.for("react.suspense_list"):60120,g1=u?Symbol.for("react.memo"):60115,Z1=u?Symbol.for("react.lazy"):60116,U2=u?Symbol.for("react.block"):60121,Y2=u?Symbol.for("react.fundamental"):60117,K2=u?Symbol.for("react.responder"):60118,X2=u?Symbol.for("react.scope"):60119;function b(e){if(typeof e=="object"&&e!==null){var a=e.$$typeof;switch(a){case E1:switch(e=e.type,e){case T1:case u1:case s1:case d1:case h1:case f1:return e;default:switch(e=e&&e.$$typeof,e){case m1:case p1:case Z1:case g1:case v1:return e;default:return a}}case L1:return a}}}function a0(e){return b(e)===u1}l.AsyncMode=T1;l.ConcurrentMode=u1;l.ContextConsumer=m1;l.ContextProvider=v1;l.Element=E1;l.ForwardRef=p1;l.Fragment=s1;l.Lazy=Z1;l.Memo=g1;l.Portal=L1;l.Profiler=d1;l.StrictMode=h1;l.Suspense=f1;l.isAsyncMode=function(e){return a0(e)||b(e)===T1};l.isConcurrentMode=a0;l.isContextConsumer=function(e){return b(e)===m1};l.isContextProvider=function(e){return b(e)===v1};l.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===E1};l.isForwardRef=function(e){return b(e)===p1};l.isFragment=function(e){return b(e)===s1};l.isLazy=function(e){return b(e)===Z1};l.isMemo=function(e){return b(e)===g1};l.isPortal=function(e){return b(e)===L1};l.isProfiler=function(e){return b(e)===d1};l.isStrictMode=function(e){return b(e)===h1};l.isSuspense=function(e){return b(e)===f1};l.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===s1||e===u1||e===d1||e===h1||e===f1||e===W2||typeof e=="object"&&e!==null&&(e.$$typeof===Z1||e.$$typeof===g1||e.$$typeof===v1||e.$$typeof===m1||e.$$typeof===p1||e.$$typeof===Y2||e.$$typeof===K2||e.$$typeof===X2||e.$$typeof===U2)};l.typeOf=b});var n0=r1(s=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,a=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,c=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,v=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,Z=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,L=e?Symbol.for("react.suspense"):60113,N=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,X=e?Symbol.for("react.block"):60121,Q=e?Symbol.for("react.fundamental"):60117,G=e?Symbol.for("react.responder"):60118,J=e?Symbol.for("react.scope"):60119;function _0(t){return typeof t=="string"||typeof t=="function"||t===c||t===Z||t===o||t===i||t===L||t===N||typeof t=="object"&&t!==null&&(t.$$typeof===y||t.$$typeof===A||t.$$typeof===v||t.$$typeof===d||t.$$typeof===g||t.$$typeof===Q||t.$$typeof===G||t.$$typeof===J||t.$$typeof===X)}function M(t){if(typeof t=="object"&&t!==null){var H1=t.$$typeof;switch(H1){case a:var e1=t.type;switch(e1){case p:case Z:case c:case o:case i:case L:return e1;default:var I1=e1&&e1.$$typeof;switch(I1){case d:case g:case y:case A:case v:return I1;default:return H1}}case r:return H1}}}var B0=p,q0=Z,j0=d,z0=v,W0=a,U0=g,Y0=c,K0=y,X0=A,Q0=r,G0=o,J0=i,e2=L,R1=!1;function a2(t){return R1||(R1=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F1(t)||M(t)===p}function F1(t){return M(t)===Z}function r2(t){return M(t)===d}function n2(t){return M(t)===v}function i2(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function t2(t){return M(t)===g}function c2(t){return M(t)===c}function o2(t){return M(t)===y}function l2(t){return M(t)===A}function s2(t){return M(t)===r}function h2(t){return M(t)===o}function d2(t){return M(t)===i}function v2(t){return M(t)===L}s.AsyncMode=B0,s.ConcurrentMode=q0,s.ContextConsumer=j0,s.ContextProvider=z0,s.Element=W0,s.ForwardRef=U0,s.Fragment=Y0,s.Lazy=K0,s.Memo=X0,s.Portal=Q0,s.Profiler=G0,s.StrictMode=J0,s.Suspense=e2,s.isAsyncMode=a2,s.isConcurrentMode=F1,s.isContextConsumer=r2,s.isContextProvider=n2,s.isElement=i2,s.isForwardRef=t2,s.isFragment=c2,s.isLazy=o2,s.isMemo=l2,s.isPortal=s2,s.isProfiler=h2,s.isStrictMode=d2,s.isSuspense=v2,s.isValidElementType=_0,s.typeOf=M}()});var i0=r1((te,k1)=>{"use strict";process.env.NODE_ENV==="production"?k1.exports=r0():k1.exports=n0()});var d0=r1((ce,h0)=>{"use strict";var w1=i0(),Q2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},G2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},J2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},A1={};A1[w1.ForwardRef]=J2;A1[w1.Memo]=l0;function t0(e){return w1.isMemo(e)?l0:A1[e.$$typeof]||Q2}var e3=Object.defineProperty,a3=Object.getOwnPropertyNames,c0=Object.getOwnPropertySymbols,r3=Object.getOwnPropertyDescriptor,n3=Object.getPrototypeOf,o0=Object.prototype;function s0(e,a,r){if(typeof a!="string"){if(o0){var c=n3(a);c&&c!==o0&&s0(e,c,r)}var i=a3(a);c0&&(i=i.concat(c0(a)));for(var o=t0(e),v=t0(a),d=0;d<i.length;++d){var p=i[d];if(!G2[p]&&!(r&&r[p])&&!(v&&v[p])&&!(o&&o[p])){var Z=r3(a,p);try{e3(e,p,Z)}catch(g){}}}}return e}h0.exports=s0});import{LIcon as P2,Typography as $2}from"@s_mart/core";import{telefone as O2}from"@s_mart/masks";var $={description:"m37.5 11.3-19 19.4-7-7.2a.9.9 0 0 0-1.2 0l-2 2.1c-.4.4-.4 1 0 1.3l9.6 9.8c.3.4.9.4 1.2 0l21.6-22.1c.4-.3.4-1 0-1.3l-2-2a.9.9 0 0 0-1.2 0Z",id:"line-check-regular"};var n1={description:"M35.2 12.7a15.9 15.9 0 0 0-25 19.1L8 40l8.4-2.2a16 16 0 0 0 23.6-14 16 16 0 0 0-4.8-11.1ZM24 37a13 13 0 0 1-6.7-1.9l-.5-.3-5 1.3 1.3-4.8-.3-.5a13.2 13.2 0 0 1 20.5-16.3c2.5 2.4 4 5.7 4 9.3C37.3 31 31.3 37 24 37Zm7.2-10-2.7-1c-.4-.1-.6-.2-.9.2l-1.2 1.5c-.3.3-.5.3-.9.1-2.3-1.1-3.9-2-5.4-4.7-.4-.7.4-.6 1.2-2.1v-.7c-.2-.2-1-2.2-1.3-3-.3-.7-.6-.6-.9-.6h-.7c-.3 0-.7 0-1 .4-.4.4-1.5 1.4-1.5 3.3 0 2 1.5 3.9 1.6 4.1.2.3 2.8 4.3 6.8 6 2.5 1.1 3.5 1.2 4.8 1 .7 0 2.3-1 2.6-1.9.4-.9.4-1.7.3-1.9l-.8-.4Z",id:"line-whatsapp-regular"};var n=e=>`${e/16}rem`;import q from"@emotion/styled";var C2=Object.defineProperty,H2=(e,a)=>{for(var r in a)C2(e,r,{get:a[r],enumerable:!0})},h={};H2(h,{blue:()=>x2,green:()=>L2,neutral:()=>A2,red:()=>S2,yellow:()=>k2});var b2={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},x2=b2,V2={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},S2=V2,E2={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},L2=E2,T2={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},k2=T2,w2={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},A2=w2;var B1=q.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -99,10 +99,10 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
99
99
|
color: ${h.green[300]};
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`;import{jsx as j,jsxs as V1}from"react/jsx-runtime";function H({children:e,whatsapp:a,textoChamativo:r,style:c,paperStyle:i,ilustracao:o}){return V1(B1,{style:c,children:[r&&j(j1,{children:r}),o&&j(q1,{children:typeof o=="string"?j("img",{src:o,alt:"Logo do sistema"}):o}),j(z1,{style:i,children:e}),a&&V1(W1,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${a}`)},style:{marginBottom:16},children:[V1(
|
|
102
|
+
`;import{jsx as j,jsxs as V1}from"react/jsx-runtime";function H({children:e,whatsapp:a,textoChamativo:r,style:c,paperStyle:i,ilustracao:o}){return V1(B1,{style:c,children:[r&&j(j1,{children:r}),o&&j(q1,{children:typeof o=="string"?j("img",{src:o,alt:"Logo do sistema"}):o}),j(z1,{style:i,children:e}),a&&V1(W1,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${a}`)},style:{marginBottom:16},children:[V1($2,{variant:"bodyXS",children:["Com d\xFAvidas? ",O2.format(a.slice(2))]}),j(P2,{icon:n1,size:"20px",removeMargin:!0})]})]})}import{Button as B2,LIcon as S1,Typography as z}from"@s_mart/core";import{Checkbox as q2,Form as j2,TextField as l1}from"@s_mart/form";var D2=Object.defineProperty,R2=Object.defineProperties,F2=Object.getOwnPropertyDescriptors,U1=Object.getOwnPropertySymbols,I2=Object.prototype.hasOwnProperty,N2=Object.prototype.propertyIsEnumerable,Y1=(e,a,r)=>a in e?D2(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,i1=(e,a)=>{for(var r in a||(a={}))I2.call(a,r)&&Y1(e,r,a[r]);if(U1)for(var r of U1(a))N2.call(a,r)&&Y1(e,r,a[r]);return e},_2=(e,a)=>R2(e,F2(a));var t1=e=>{let a={validate:{}};return e.forEach(r=>{a=_2(i1(i1({},a),r),{validate:i1(i1({},a.validate),r.validate)})}),a},k={validate:{required:e=>{if(!e)return"Obrigat\xF3rio"}}};var c1={validate:{email:e=>{if(e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e))return"O email \xE9 inv\xE1lido"}}};import _ from"@emotion/styled";var K1=_.div`
|
|
103
103
|
display: grid;
|
|
104
104
|
gap: ${n(32)};
|
|
105
|
-
`,
|
|
105
|
+
`,X1=_.header`
|
|
106
106
|
display: grid;
|
|
107
107
|
text-align: center;
|
|
108
108
|
gap: ${n(16)};
|
|
@@ -149,7 +149,7 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
149
149
|
color: ${h.green[300]};
|
|
150
150
|
border-color: ${h.green[300]};
|
|
151
151
|
`}}
|
|
152
|
-
`;function e0(){let e=i=>i?i.match(/[a-z]/i):!1,a=i=>i?i.match(/[0-9]/i):!1,r=i=>i?i.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:i=>!i.email||!i.senha||!i.confirmarSenha||!i.termosDeUso||!e(i.senha)||!a(i.senha)||!r(i.senha)}}import{jsx as m,jsxs as S}from"react/jsx-runtime";function
|
|
152
|
+
`;function e0(){let e=i=>i?i.match(/[a-z]/i):!1,a=i=>i?i.match(/[0-9]/i):!1,r=i=>i?i.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:i=>!i.email||!i.senha||!i.confirmarSenha||!i.termosDeUso||!e(i.senha)||!a(i.senha)||!r(i.senha)}}import{jsx as m,jsxs as S}from"react/jsx-runtime";function z2(d){var p=d,{logo:e,nomeSistema:a,onSubmit:r,linkTermosDeUso:c,email:i,nome:o}=p,v=V(p,["logo","nomeSistema","onSubmit","linkTermosDeUso","email","nome"]);let{senhaContemLetra:Z,senhaContemNumero:g,senhaContemMinimoDe6Caracteres:L,desabilitarBotaoDeCadastro:N}=e0(),A=typeof e=="string"?m("img",{src:e,alt:"Logo do sistema"}):e;return m(H,x(C({},v),{children:S(K1,{children:[S(X1,{children:[e&&m("div",{children:A}),S(z,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",a,"."]})]}),m(j2,{onSubmit:r,defaultValues:{email:i,nome:o,termosDeUso:!1},children:({watch:y})=>{let X=Z(y("senha")),Q=g(y("senha")),G=L(y("senha"));return S(Q1,{children:[m(l1,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),m(l1,{name:"nome",label:"Nome completo",required:!0,rules:k}),S(G1,{children:[S("div",{children:[m(l1,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:k}),m(l1,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:J=>{if(!J)return"Campo obrigat\xF3rio";if(J!==y("senha"))return"As senhas devem ser iguais"}}})]}),S("div",{children:[m(z,{variant:"bodyXS",children:"Sua senha precisa conter:"}),S(J1,{children:[S(o1,{checked:!!X,children:[X&&m(S1,{icon:$,size:"16px",removeMargin:!0}),m(z,{variant:"bodyXS",children:"Uma letra"})]}),S(o1,{checked:!!Q,children:[Q&&m(S1,{icon:$,size:"16px",removeMargin:!0}),m(z,{variant:"bodyXS",children:"Um n\xFAmero"})]}),S(o1,{checked:!!G,children:[G&&m(S1,{icon:$,size:"16px",removeMargin:!0}),m(z,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),m("div",{children:m(q2,{name:"termosDeUso",label:S("div",{style:{display:"flex",gap:4},children:[m("span",{children:"Li e aceito os"}),m("a",{href:c,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),m("div",{children:m(B2,{type:"submit",fullWidth:!0,disabled:N(y()),children:"Concluir meu cadastro"})})]})}})]})}))}import{useMemo as h3}from"react";import{Button as g0,Indicator as d3,Typography as v3}from"@s_mart/core";import{Checkbox as m3,Form as u3,TextField as Z0}from"@s_mart/form";import{useEffect as c3,useState as o3}from"react";import y1 from"react";import se,{forwardRef as he,useRef as de,useCallback as ve,useLayoutEffect as me,useEffect as ue,createElement as pe,useState as fe,Component as ge,useContext as Ze}from"react";import{createPortal as Me}from"react-dom";var i3=M2(d0());var t3="SnackbarContent",He={root:t3+"-root"};var P="SnackbarItem",be={contentRoot:P+"-contentRoot",lessPadding:P+"-lessPadding",variantSuccess:P+"-variantSuccess",variantError:P+"-variantError",variantInfo:P+"-variantInfo",variantWarning:P+"-variantWarning",message:P+"-message",action:P+"-action",wrappedRoot:P+"-wrappedRoot"};var R="SnackbarContainer",xe={root:R+"-root",rootDense:R+"-rootDense",top:R+"-top",bottom:R+"-bottom",left:R+"-left",right:R+"-right",center:R+"-center"};var Ve=process.env.NODE_ENV!=="production";import P1 from"@emotion/styled";import l3 from"@emotion/styled";import{css as F}from"@emotion/react";import{jsx as Be}from"react/jsx-runtime";import{Fragment as je,jsx as ze}from"react/jsx-runtime";import{Fragment as Ue,jsx as Ye,jsxs as Ke}from"react/jsx-runtime";import{useEffect as Qe,useRef as Ge}from"react";import*as m0 from"react";import"@emotion/styled";import{ThemeContext as ra}from"@emotion/react";import*as s3 from"react";import*as W from"react";var v0=()=>{let[e,a]=o3(!1);return c3(()=>{let r=c=>{c.key==="CapsLock"&&a(c.getModifierState("CapsLock"))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[]),e};var O=({defaultValue:e}={})=>{let a=typeof window!="undefined",r=y1.useCallback(()=>{if(!a){if(e){let{width:v=0,height:d=0}=e;return{width:v,height:d}}return{width:0,height:0}}return{width:window.innerWidth,height:window.innerHeight}},[a,e]),[c,i]=y1.useState(r()),o=y1.useCallback(()=>{i(r())},[i,r]);return y1.useEffect(()=>a?(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}):()=>{},[o,a]),c},$e=P1.div`
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
155
|
justify-content: space-between;
|
|
@@ -169,7 +169,7 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
169
169
|
align-items: center;
|
|
170
170
|
gap: ${n(8)};
|
|
171
171
|
}
|
|
172
|
-
`,
|
|
172
|
+
`,Oe=P1.div`
|
|
173
173
|
display: flex;
|
|
174
174
|
flex-direction: column;
|
|
175
175
|
justify-content: center;
|
|
@@ -177,10 +177,10 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
177
177
|
> *:first-of-type {
|
|
178
178
|
margin-bottom: ${n(4)};
|
|
179
179
|
}
|
|
180
|
-
`,
|
|
180
|
+
`,De=P1.div`
|
|
181
181
|
cursor: pointer;
|
|
182
182
|
align-self: flex-start;
|
|
183
|
-
`,
|
|
183
|
+
`,Ne=l3.i`
|
|
184
184
|
align-self: center;
|
|
185
185
|
display: inline-flex;
|
|
186
186
|
color: ${({color:e})=>e};
|
|
@@ -221,14 +221,14 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
221
221
|
margin: 0 ${n(4)};
|
|
222
222
|
`}
|
|
223
223
|
}
|
|
224
|
-
`;
|
|
224
|
+
`;import $1 from"@emotion/styled";var u0=$1.div`
|
|
225
225
|
display: grid;
|
|
226
226
|
gap: ${n(32)};
|
|
227
|
-
`,
|
|
227
|
+
`,p0=$1.header`
|
|
228
228
|
display: grid;
|
|
229
229
|
text-align: center;
|
|
230
230
|
gap: ${n(16)};
|
|
231
|
-
`,
|
|
231
|
+
`,f0=$1.div`
|
|
232
232
|
display: grid;
|
|
233
233
|
gap: ${n(16)};
|
|
234
234
|
|
|
@@ -240,7 +240,7 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
240
240
|
> div:last-of-type {
|
|
241
241
|
gap: ${n(8)};
|
|
242
242
|
}
|
|
243
|
-
`;import{jsx as E,jsxs as U}from"react/jsx-runtime";function
|
|
243
|
+
`;import{jsx as E,jsxs as U}from"react/jsx-runtime";function p3(v){var d=v,{logo:e,initialValues:a,onSubmit:r,onEsqueciMinhaSenha:c,errorLabel:i}=d,o=V(d,["logo","initialValues","onSubmit","onEsqueciMinhaSenha","errorLabel"]);let p=typeof e=="string"?E("img",{src:e,alt:"Logo do sistema"}):e,{width:Z}=O(),g=v0(),L=h3(()=>C({manterConectado:!1},a),[a]);return E(H,x(C({},o),{paperStyle:{minWidth:Z>500?456:void 0,width:Z>500?void 0:"90%"},children:U(u0,{children:[E(p0,{children:e&&E("div",{children:p})}),E(u3,{onSubmit:r,defaultValues:L,children:U(f0,{children:[U("div",{children:[E(Z0,{name:"email",label:"E-mail de acesso",required:!0,rules:t1([k,c1]),autoComplete:"email",type:"email"}),U("div",{children:[E(Z0,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:k}),g&&E(d3,{severity:"warning",children:"Capslock ativado"}),!!i&&E(v3,{variant:"titleXXS",color:h.red[300],children:i})]})]}),E(m3,{name:"manterConectado",label:"Manter conectado"}),U("div",{children:[E(g0,{type:"submit",fullWidth:!0,children:"Entrar"}),c&&E(g0,{type:"button",fullWidth:!0,variant:"text",onClick:c,children:"Esqueci minha senha"})]})]})})]})}))}import{Button as H0,LIcon as f3,Typography as b0}from"@s_mart/core";import y0 from"@emotion/styled";var M0=y0.div`
|
|
244
244
|
display: grid;
|
|
245
245
|
gap: ${n(32)};
|
|
246
246
|
|
|
@@ -248,11 +248,11 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
248
248
|
display: grid;
|
|
249
249
|
gap: ${n(8)};
|
|
250
250
|
}
|
|
251
|
-
`,
|
|
251
|
+
`,C0=y0.header`
|
|
252
252
|
display: grid;
|
|
253
253
|
text-align: center;
|
|
254
254
|
gap: ${n(16)};
|
|
255
|
-
`;import{jsx as D,jsxs as Y}from"react/jsx-runtime";function
|
|
255
|
+
`;import{jsx as D,jsxs as Y}from"react/jsx-runtime";function g3(i){var o=i,{logo:e,onPrecisoDeAjuda:a,onRealizarAcesso:r}=o,c=V(o,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let v=typeof e=="string"?D("img",{src:e,alt:"Logo do sistema"}):e,{width:d}=O();return D(H,x(C({},c),{paperStyle:{minWidth:d>500?456:void 0,width:d>500?void 0:"90%"},children:Y(M0,{children:[Y("div",{children:[D(C0,{children:e&&D("div",{children:v})}),Y("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:8,color:h.neutral[800]},children:[D(b0,{variant:"bodyMD",children:"Parece que este convite, j\xE1 foi usado ou expirou."}),D(b0,{variant:"bodyMD",children:"J\xE1 se cadastro? Realize o login."})]})]}),Y("div",{children:[D(H0,{fullWidth:!0,onClick:r,children:"Realizar login"}),Y(H0,{fullWidth:!0,variant:"text",onClick:a,style:{display:"flex",gap:4,color:h.neutral[900]},children:[D(f3,{icon:n1,size:"20px",removeMargin:!0,color:h.neutral[900]}),"Preciso de outro convite"]})]})]})}))}import{Button as Z3,Typography as E0}from"@s_mart/core";import x0 from"@emotion/styled";var V0=x0.div`
|
|
256
256
|
display: grid;
|
|
257
257
|
gap: ${n(32)};
|
|
258
258
|
|
|
@@ -260,21 +260,21 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
260
260
|
display: grid;
|
|
261
261
|
gap: ${n(16)};
|
|
262
262
|
}
|
|
263
|
-
`,
|
|
263
|
+
`,S0=x0.header`
|
|
264
264
|
display: grid;
|
|
265
265
|
text-align: center;
|
|
266
266
|
gap: ${n(16)};
|
|
267
|
-
`;import{jsx as
|
|
267
|
+
`;import{jsx as I,jsxs as L0}from"react/jsx-runtime";function y3(c){var i=c,{logo:e,onVoltarParaLogin:a}=i,r=V(i,["logo","onVoltarParaLogin"]);let o=typeof e=="string"?I("img",{src:e,alt:"Logo do sistema"}):e,{width:v}=O();return I(H,x(C({},r),{paperStyle:{maxWidth:v>500?456:void 0,width:v>500?void 0:"90%"},children:L0(V0,{children:[L0("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[I(S0,{children:e&&I("div",{children:o})}),I(E0,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),I(E0,{variant:"bodySM",textAlign:"center",children:"Enviamos ao seu e-mail de acesso as instru\xE7\xF5es para criar uma nova senha. Verifique sua caixa de entrada e de Spam."})]}),I(Z3,{fullWidth:!0,onClick:a,children:"Voltar para login"})]})}))}import{Button as M3,LIcon as O1,Typography as K}from"@s_mart/core";import{Form as C3,TextField as O0}from"@s_mart/form";import B from"@emotion/styled";var T0=B.div`
|
|
268
268
|
display: grid;
|
|
269
269
|
gap: ${n(32)};
|
|
270
|
-
`,
|
|
270
|
+
`,k0=B.header`
|
|
271
271
|
display: grid;
|
|
272
272
|
text-align: center;
|
|
273
273
|
gap: ${n(16)};
|
|
274
|
-
`,
|
|
274
|
+
`,w0=B.div`
|
|
275
275
|
display: grid;
|
|
276
276
|
gap: ${n(32)};
|
|
277
|
-
|
|
277
|
+
`,A0=B.div`
|
|
278
278
|
display: grid;
|
|
279
279
|
gap: ${n(4)};
|
|
280
280
|
|
|
@@ -293,7 +293,7 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
293
293
|
display: grid;
|
|
294
294
|
gap: ${n(4)};
|
|
295
295
|
}
|
|
296
|
-
`,
|
|
296
|
+
`,P0=B.div`
|
|
297
297
|
display: flex;
|
|
298
298
|
flex-wrap: wrap;
|
|
299
299
|
gap: ${n(8)};
|
|
@@ -314,7 +314,7 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
314
314
|
color: ${h.green[300]};
|
|
315
315
|
border-color: ${h.green[300]};
|
|
316
316
|
`}}
|
|
317
|
-
`;function
|
|
317
|
+
`;function $0(){let e=i=>i?i.match(/[a-z]/i):!1,a=i=>i?i.match(/[0-9]/i):!1,r=i=>i?i.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:i=>!i.senha||!i.confirmarSenha||!e(i.senha)||!a(i.senha)||!r(i.senha)}}import{jsx as f,jsxs as w}from"react/jsx-runtime";function H3(c){var i=c,{logo:e,onTrocarMinhaSenha:a}=i,r=V(i,["logo","onTrocarMinhaSenha"]);let{senhaContemLetra:o,senhaContemNumero:v,senhaContemMinimoDe6Caracteres:d,desabilitarBotaoDeCadastro:p}=$0(),Z=typeof e=="string"?f("img",{src:e,alt:"Logo do sistema"}):e;return f(H,x(C({},r),{children:w(T0,{children:[w(k0,{children:[e&&f("div",{children:Z}),f(K,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),f(C3,{onSubmit:a,children:({watch:g})=>{let L=o(g("senha")),N=v(g("senha")),A=d(g("senha"));return w(w0,{children:[w(A0,{children:[w("div",{children:[f(O0,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:k}),f(O0,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:y=>{if(!y)return"Campo obrigat\xF3rio";if(y!==g("senha"))return"As senhas devem ser iguais"}}})]}),w("div",{children:[f(K,{variant:"bodyXS",children:"Sua senha precisa conter:"}),w(P0,{children:[w(M1,{checked:!!L,children:[L&&f(O1,{icon:$,size:"16px",removeMargin:!0}),f(K,{variant:"bodyXS",children:"Uma letra"})]}),w(M1,{checked:!!N,children:[N&&f(O1,{icon:$,size:"16px",removeMargin:!0}),f(K,{variant:"bodyXS",children:"Um n\xFAmero"})]}),w(M1,{checked:!!A,children:[A&&f(O1,{icon:$,size:"16px",removeMargin:!0}),f(K,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),f("div",{children:f(M3,{type:"submit",fullWidth:!0,disabled:p(g()),children:"Trocar minha senha"})})]})}})]})}))}import{Button as I0,Typography as N0}from"@s_mart/core";import D1 from"@emotion/styled";var D0=D1.div`
|
|
318
318
|
display: grid;
|
|
319
319
|
gap: ${n(32)};
|
|
320
320
|
|
|
@@ -322,11 +322,11 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
322
322
|
display: grid;
|
|
323
323
|
gap: ${n(16)};
|
|
324
324
|
}
|
|
325
|
-
`,
|
|
325
|
+
`,R0=D1.header`
|
|
326
326
|
display: grid;
|
|
327
327
|
text-align: center;
|
|
328
328
|
gap: ${n(16)};
|
|
329
|
-
`,
|
|
329
|
+
`,F0=D1.div`
|
|
330
330
|
display: grid;
|
|
331
331
|
gap: ${n(32)};
|
|
332
332
|
|
|
@@ -334,34 +334,46 @@ var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=
|
|
|
334
334
|
display: grid;
|
|
335
335
|
gap: ${n(16)};
|
|
336
336
|
}
|
|
337
|
-
`;import{Form as
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
337
|
+
`;import{Form as b3,TextField as x3}from"@s_mart/form";import{jsx as T,jsxs as C1}from"react/jsx-runtime";function V3(i){var o=i,{logo:e,onVoltarParaLogin:a,onConfirmar:r}=o,c=V(o,["logo","onVoltarParaLogin","onConfirmar"]);let v=typeof e=="string"?T("img",{src:e,alt:"Logo do sistema"}):e,{width:d}=O();return T(H,x(C({},c),{paperStyle:{minWidth:d>500?456:void 0,width:d>500?void 0:"90%"},children:C1(D0,{children:[C1("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[T(R0,{children:e&&T("div",{children:v})}),T(N0,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),T(N0,{variant:"bodySM",textAlign:"center",children:"Informe seu e-mail de acesso para receber instru\xE7\xF5es e criar uma nova senha."})]}),T(b3,{onSubmit:r,children:C1(F0,{children:[T("div",{children:T(x3,{name:"email",label:"E-mail de acesso",required:!0,rules:t1([k,c1])})}),C1("div",{children:[T(I0,{fullWidth:!0,type:"submit",children:"Confirmar"}),T(I0,{fullWidth:!0,onClick:a,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}export{z2 as TelaCadastro,g3 as TelaConviteExpirado,V3 as TelaEsqueceuSenha,y3 as TelaInstrucoesEnviadas,p3 as TelaLogin,H3 as TelaNovaSenha,H as TemplateTelaBase};
|
|
338
|
+
/*! Bundled license information:
|
|
339
|
+
|
|
340
|
+
@mui/styled-engine/index.js:
|
|
341
|
+
(**
|
|
342
|
+
* @mui/styled-engine v5.12.3
|
|
343
|
+
*
|
|
344
|
+
* @license MIT
|
|
345
|
+
* This source code is licensed under the MIT license found in the
|
|
346
|
+
* LICENSE file in the root directory of this source tree.
|
|
347
|
+
*)
|
|
348
|
+
|
|
349
|
+
@mui/material/index.js:
|
|
350
|
+
(**
|
|
351
|
+
* @mui/material v5.12.3
|
|
352
|
+
*
|
|
353
|
+
* @license MIT
|
|
354
|
+
* This source code is licensed under the MIT license found in the
|
|
355
|
+
* LICENSE file in the root directory of this source tree.
|
|
356
|
+
*)
|
|
357
|
+
*/
|
|
358
|
+
/*! Bundled license information:
|
|
359
|
+
|
|
360
|
+
react-is/cjs/react-is.production.min.js:
|
|
361
|
+
(** @license React v16.13.1
|
|
362
|
+
* react-is.production.min.js
|
|
363
|
+
*
|
|
364
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
365
|
+
*
|
|
366
|
+
* This source code is licensed under the MIT license found in the
|
|
367
|
+
* LICENSE file in the root directory of this source tree.
|
|
368
|
+
*)
|
|
369
|
+
|
|
370
|
+
react-is/cjs/react-is.development.js:
|
|
371
|
+
(** @license React v16.13.1
|
|
372
|
+
* react-is.development.js
|
|
373
|
+
*
|
|
374
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
375
|
+
*
|
|
376
|
+
* This source code is licensed under the MIT license found in the
|
|
377
|
+
* LICENSE file in the root directory of this source tree.
|
|
378
|
+
*)
|
|
379
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s_mart/telas-de-acesso",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,27 +12,26 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsup src/index.tsx --minify --format esm,cjs --dts --external react",
|
|
14
14
|
"dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react",
|
|
15
|
-
"lint": "eslint src/**/*.ts* --fix"
|
|
16
|
-
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
15
|
+
"lint": "eslint src/**/*.ts* --fix"
|
|
17
16
|
},
|
|
18
17
|
"dependencies": {
|
|
19
|
-
"tsup": "^6.
|
|
20
|
-
"typescript": "^
|
|
21
|
-
"@types/react": "18.
|
|
22
|
-
"@types/react-dom": "18.
|
|
18
|
+
"tsup": "^6.7.0",
|
|
19
|
+
"typescript": "^5.0.4",
|
|
20
|
+
"@types/react": "18.2.5",
|
|
21
|
+
"@types/react-dom": "18.2.4",
|
|
23
22
|
"@s_mart/core": "*",
|
|
24
23
|
"@s_mart/form": "*",
|
|
25
24
|
"@s_mart/masks": "*"
|
|
26
25
|
},
|
|
27
26
|
"peerDependencies": {
|
|
28
|
-
"react": ">=18.
|
|
29
|
-
"react-dom": ">=18.
|
|
27
|
+
"react": ">=18.2.0",
|
|
28
|
+
"react-dom": ">=18.2.0",
|
|
30
29
|
"react-hook-form": ">=7.36.1",
|
|
31
|
-
"typescript": ">=
|
|
32
|
-
"@types/react": ">=18.
|
|
33
|
-
"@types/react-dom": ">=18.
|
|
34
|
-
"@emotion/react": ">=11.10.
|
|
35
|
-
"@emotion/styled": ">=11.10.
|
|
30
|
+
"typescript": ">=5.0.4",
|
|
31
|
+
"@types/react": ">=18.2.5",
|
|
32
|
+
"@types/react-dom": ">=18.2.4",
|
|
33
|
+
"@emotion/react": ">=11.10.8",
|
|
34
|
+
"@emotion/styled": ">=11.10.8",
|
|
36
35
|
"@s_mart/core": "*",
|
|
37
36
|
"@s_mart/form": "*",
|
|
38
37
|
"@s_mart/masks": "*"
|