@s_mart/telas-de-acesso 4.0.1 → 5.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.mjs +86 -201
- package/package.json +23 -16
- package/dist/index.js +0 -380
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import{LIcon as Ve,Typography as Xe}from"@s_mart/core";import{telefone as Ae}from"@s_mart/masks";import{lineWhatsApp as Qe}from"@s_mart/regular-icons";import{toRem as p}from"@s_mart/utils";import B from"@emotion/styled";import{colorPalette as He}from"@s_mart/tokens";var ae=B.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -18,7 +18,7 @@ var i2=Object.create;var k1=Object.defineProperty;var t2=Object.getOwnPropertyDe
|
|
|
18
18
|
@media (max-height: 600px) {
|
|
19
19
|
justify-content: flex-start;
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,te=B.div`
|
|
22
22
|
position: absolute;
|
|
23
23
|
left: 0;
|
|
24
24
|
bottom: 32px;
|
|
@@ -27,26 +27,26 @@ var i2=Object.create;var k1=Object.defineProperty;var t2=Object.getOwnPropertyDe
|
|
|
27
27
|
@media (max-width: 768px) {
|
|
28
28
|
display: none;
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,oe=B.h1`
|
|
31
31
|
position: absolute;
|
|
32
32
|
left: 32px;
|
|
33
33
|
top: 32px;
|
|
34
34
|
|
|
35
35
|
color: ${({theme:e})=>e.palette.common.white};
|
|
36
|
-
font-size: ${
|
|
36
|
+
font-size: ${p(32)};
|
|
37
37
|
line-height: 150%;
|
|
38
38
|
font-weight: normal;
|
|
39
39
|
|
|
40
40
|
@media (max-width: 768px) {
|
|
41
41
|
left: 16px;
|
|
42
42
|
top: 16px;
|
|
43
|
-
font-size: ${
|
|
43
|
+
font-size: ${p(24)};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@media (max-height: 830px) {
|
|
47
47
|
left: 16px;
|
|
48
48
|
top: 16px;
|
|
49
|
-
font-size: ${
|
|
49
|
+
font-size: ${p(24)};
|
|
50
50
|
|
|
51
51
|
@media (max-width: 768px) {
|
|
52
52
|
display: none;
|
|
@@ -59,35 +59,35 @@ var i2=Object.create;var k1=Object.defineProperty;var t2=Object.getOwnPropertyDe
|
|
|
59
59
|
|
|
60
60
|
span {
|
|
61
61
|
background-color: #262626;
|
|
62
|
-
padding: ${
|
|
63
|
-
border-radius: ${
|
|
62
|
+
padding: ${p(4)} ${p(8)};
|
|
63
|
+
border-radius: ${p(12)};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
@media (max-width: 500px) {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,re=B.div`
|
|
70
70
|
position: relative;
|
|
71
71
|
z-index: 2;
|
|
72
72
|
|
|
73
|
-
padding: ${
|
|
74
|
-
border-radius: ${
|
|
75
|
-
margin: ${
|
|
73
|
+
padding: ${p(32)};
|
|
74
|
+
border-radius: ${p(24)};
|
|
75
|
+
margin: ${p(16)};
|
|
76
76
|
|
|
77
77
|
background-color: ${({theme:e})=>e.palette.common.white};
|
|
78
|
-
|
|
78
|
+
`,ne=B.button`
|
|
79
79
|
position: relative;
|
|
80
80
|
z-index: 2;
|
|
81
81
|
|
|
82
82
|
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
83
|
-
padding: ${
|
|
83
|
+
padding: ${p(4)} ${p(8)};
|
|
84
84
|
border: none;
|
|
85
|
-
border-radius: ${
|
|
85
|
+
border-radius: ${p(8)};
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
|
|
88
88
|
display: flex;
|
|
89
89
|
align-items: center;
|
|
90
|
-
gap: ${
|
|
90
|
+
gap: ${p(4)};
|
|
91
91
|
|
|
92
92
|
color: ${({theme:e})=>e.palette.common.white};
|
|
93
93
|
|
|
@@ -96,285 +96,170 @@ var i2=Object.create;var k1=Object.defineProperty;var t2=Object.getOwnPropertyDe
|
|
|
96
96
|
background-color: transparent;
|
|
97
97
|
|
|
98
98
|
svg {
|
|
99
|
-
color: ${
|
|
99
|
+
color: ${He.green[300]};
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`;import{jsx as
|
|
102
|
+
`;import{jsx as q,jsxs as H}from"react/jsx-runtime";function d({children:e,whatsapp:t,textoChamativo:r,style:n,paperStyle:a,ilustracao:i}){return H(ae,{style:n,children:[r&&q(oe,{children:r}),i&&q(te,{children:typeof i=="string"?q("img",{src:i,alt:"Logo do sistema"}):i}),q(re,{style:a,children:e}),t&&H(ne,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${t}`)},style:{marginBottom:16},children:[H(Xe,{variant:"bodyXS",children:["Com d\xFAvidas? ",Ae.format(t.slice(2))]}),q(Ve,{icon:Qe,size:"20px",removeMargin:!0})]})]})}import{Button as Ue,LIcon as V,Typography as M}from"@s_mart/core";import{Checkbox as Oe,Form as Je,TextField as N}from"@s_mart/form";import{required as ce}from"@s_mart/rules";import{lineCheck as X}from"@s_mart/regular-icons";import{colorPalette as R}from"@s_mart/tokens";import S from"@emotion/styled";import{toRem as l}from"@s_mart/utils";var ie=S.div`
|
|
103
103
|
display: grid;
|
|
104
|
-
gap: ${
|
|
105
|
-
`,
|
|
104
|
+
gap: ${l(32)};
|
|
105
|
+
`,se=S.header`
|
|
106
106
|
display: grid;
|
|
107
107
|
text-align: center;
|
|
108
|
-
gap: ${
|
|
109
|
-
`,
|
|
108
|
+
gap: ${l(16)};
|
|
109
|
+
`,pe=S.div`
|
|
110
110
|
display: grid;
|
|
111
|
-
gap: ${
|
|
112
|
-
`,
|
|
111
|
+
gap: ${l(32)};
|
|
112
|
+
`,de=S.div`
|
|
113
113
|
display: grid;
|
|
114
|
-
gap: ${
|
|
114
|
+
gap: ${l(4)};
|
|
115
115
|
|
|
116
116
|
> div:first-of-type {
|
|
117
117
|
display: grid;
|
|
118
118
|
grid-template-columns: 1fr 1fr;
|
|
119
|
-
gap: ${
|
|
119
|
+
gap: ${l(16)};
|
|
120
120
|
|
|
121
121
|
@media (max-width: 768px) {
|
|
122
122
|
grid-template-columns: 1fr;
|
|
123
|
-
gap: ${
|
|
123
|
+
gap: ${l(8)};
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
> div:last-of-type {
|
|
128
128
|
display: grid;
|
|
129
|
-
gap: ${
|
|
129
|
+
gap: ${l(4)};
|
|
130
130
|
}
|
|
131
|
-
`,
|
|
131
|
+
`,le=S.div`
|
|
132
132
|
display: flex;
|
|
133
133
|
flex-wrap: wrap;
|
|
134
|
-
gap: ${
|
|
135
|
-
`,
|
|
134
|
+
gap: ${l(8)};
|
|
135
|
+
`,D=S.div`
|
|
136
136
|
display: flex;
|
|
137
137
|
align-items: center;
|
|
138
|
-
gap: ${
|
|
138
|
+
gap: ${l(4)};
|
|
139
139
|
|
|
140
|
-
color: ${
|
|
141
|
-
border: 1px solid ${
|
|
142
|
-
border-radius: ${
|
|
143
|
-
padding: ${
|
|
140
|
+
color: ${R.neutral[600]};
|
|
141
|
+
border: 1px solid ${R.neutral[600]};
|
|
142
|
+
border-radius: ${l(4)};
|
|
143
|
+
padding: ${l(3)} ${l(4)};
|
|
144
144
|
|
|
145
145
|
line-height: 1em;
|
|
146
146
|
vertical-align: middle;
|
|
147
147
|
|
|
148
148
|
${({checked:e})=>{if(e)return`
|
|
149
|
-
color: ${
|
|
150
|
-
border-color: ${
|
|
149
|
+
color: ${R.green[300]};
|
|
150
|
+
border-color: ${R.green[300]};
|
|
151
151
|
`}}
|
|
152
|
-
`;function
|
|
153
|
-
display: flex;
|
|
154
|
-
align-items: center;
|
|
155
|
-
justify-content: space-between;
|
|
156
|
-
gap: ${c(8)};
|
|
157
|
-
|
|
158
|
-
background-color: white;
|
|
159
|
-
border-radius: 4px;
|
|
160
|
-
padding: ${c(16)} ${c(16)};
|
|
161
|
-
|
|
162
|
-
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
163
|
-
|
|
164
|
-
border-left: 6px solid
|
|
165
|
-
${({variant:e})=>{switch(e){case"error":return m.red[300];case"warning":return m.yellow[300];case"info":return m.blue[100];default:case"success":return m.green[300]}}};
|
|
166
|
-
|
|
167
|
-
> div {
|
|
168
|
-
display: flex;
|
|
169
|
-
align-items: center;
|
|
170
|
-
gap: ${c(8)};
|
|
171
|
-
}
|
|
172
|
-
`,D4=C1.div`
|
|
173
|
-
display: flex;
|
|
174
|
-
flex-direction: column;
|
|
175
|
-
justify-content: center;
|
|
176
|
-
|
|
177
|
-
> *:first-of-type {
|
|
178
|
-
margin-bottom: ${c(4)};
|
|
179
|
-
}
|
|
180
|
-
`,R4=C1.div`
|
|
181
|
-
cursor: pointer;
|
|
182
|
-
align-self: flex-start;
|
|
183
|
-
`,B4=j2.i`
|
|
184
|
-
align-self: center;
|
|
185
|
-
display: inline-flex;
|
|
186
|
-
color: ${({color:e})=>e};
|
|
187
|
-
|
|
188
|
-
user-select: none;
|
|
189
|
-
|
|
190
|
-
svg {
|
|
191
|
-
z-index: 0 !important;
|
|
192
|
-
outline: 0 !important;
|
|
193
|
-
|
|
194
|
-
${({left:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&R`
|
|
195
|
-
left: ${e};
|
|
196
|
-
`}
|
|
197
|
-
|
|
198
|
-
${({right:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&R`
|
|
199
|
-
right: ${e};
|
|
200
|
-
`}
|
|
201
|
-
|
|
202
|
-
${({top:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&R`
|
|
203
|
-
top: ${e};
|
|
204
|
-
`}
|
|
205
|
-
|
|
206
|
-
${({bottom:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&R`
|
|
207
|
-
bottom: ${e};
|
|
208
|
-
`}
|
|
209
|
-
|
|
210
|
-
${({color:e})=>{let a=e;return e==="inherit"&&(a="currentColor"),R`
|
|
211
|
-
fill: ${a};
|
|
212
|
-
`}}
|
|
213
|
-
position: relative;
|
|
214
|
-
|
|
215
|
-
height: ${({height:e})=>e} !important;
|
|
216
|
-
width: ${({width:e})=>e} !important;
|
|
217
|
-
|
|
218
|
-
${({removeMargin:e})=>e?R`
|
|
219
|
-
margin: 0;
|
|
220
|
-
`:R`
|
|
221
|
-
margin: 0 ${c(4)};
|
|
222
|
-
`}
|
|
223
|
-
}
|
|
224
|
-
`;function q(){return q=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},q.apply(this,arguments)}var Y2=typeof window<"u"?h1.useLayoutEffect:h1.useEffect,X2=Y2;function e0(e,a){let r=q({},a);return Object.keys(e).forEach(i=>{if(i.toString().match(/^(components|slots)$/))r[i]=q({},e[i],r[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){let n=e[i]||{},l=a[i];r[i]={},!l||!Object.keys(l)?r[i]=n:!n||!Object.keys(n)?r[i]=l:(r[i]=q({},l),Object.keys(n).forEach(d=>{r[i][d]=e0(n[d],l[d])}))}else r[i]===void 0&&(r[i]=e[i])}),r}function Q2(e){return Object.keys(e).length===0}function G2(e=null){let a=a0.useContext(K2);return!a||Q2(a)?e:a}var J2=G2;function e3(e){let{theme:a,name:r,props:i}=e;return!a||!a.components||!a.components[r]||!a.components[r].defaultProps?i:e0(a.components[r].defaultProps,i)}var a3=X2;function r3(e,a,r,i,n){let[l,d]=b.useState(()=>n&&r?r(e).matches:i?i(e).matches:a);return a3(()=>{let u=!0;if(!r)return;let o=r(e),v=()=>{u&&d(o.matches)};return v(),o.addListener(v),()=>{u=!1,o.removeListener(v)}},[e,r]),l}var r0=b.useSyncExternalStore;function n3(e,a,r,i,n){let l=b.useCallback(()=>a,[a]),d=b.useMemo(()=>{if(n&&r)return()=>r(e).matches;if(i!==null){let{matches:v}=i(e);return()=>v}return l},[l,e,i,n,r]),[u,o]=b.useMemo(()=>{if(r===null)return[l,()=>()=>{}];let v=r(e);return[()=>v.matches,g=>(v.addListener(g),()=>{v.removeListener(g)})]},[l,r,e]);return r0(o,u,d)}function c3(e,a={}){let r=J2(),i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:n=!1,matchMedia:l=i?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:u=!1}=e3({name:"MuiUseMediaQuery",props:a,theme:r});process.env.NODE_ENV!=="production"&&typeof e=="function"&&r===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
225
|
-
`));let o=typeof e=="function"?e(r):e;o=o.replace(/^@media( ?)/m,"");let v=(r0!==void 0?n3:r3)(o,n,l,d,u);return process.env.NODE_ENV!=="production"&&b.useDebugValue({query:o,match:v}),v}var w=(e,a)=>c3(e,a);import V1 from"@emotion/styled";var n0=V1.div`
|
|
152
|
+
`;function me(){let e=a=>a?a.match(/[a-z]/i):!1,t=a=>a?a.match(/[0-9]/i):!1,r=a=>a?a.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:t,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:a=>!a.email||!a.senha||!a.confirmarSenha||!a.termosDeUso||!e(a.senha)||!t(a.senha)||!r(a.senha)}}import{jsx as o,jsxs as m}from"react/jsx-runtime";function Ge({logo:e,nomeSistema:t,onSubmit:r,linkTermosDeUso:n,email:a,nome:i,...x}){let{senhaContemLetra:b,senhaContemNumero:h,senhaContemMinimoDe6Caracteres:T,desabilitarBotaoDeCadastro:L}=me();return o(d,{...x,children:m(ie,{children:[m(se,{children:[e&&o("div",{children:typeof e=="string"?o("img",{src:e,alt:"Logo do sistema"}):e}),m(M,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",t,"."]})]}),o(Je,{onSubmit:r,defaultValues:{email:a,nome:i,termosDeUso:!1},children:({watch:g})=>{let Y=b(g("senha")),Z=h(g("senha")),j=T(g("senha"));return m(pe,{children:[o(N,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),o(N,{name:"nome",label:"Nome completo",required:!0,rules:ce}),m(de,{children:[m("div",{children:[o(N,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:ce}),o(N,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:ee=>{if(!ee)return"Campo obrigat\xF3rio";if(ee!==g("senha"))return"As senhas devem ser iguais"}}})]}),m("div",{children:[o(M,{variant:"bodyXS",children:"Sua senha precisa conter:"}),m(le,{children:[m(D,{checked:!!Y,children:[Y&&o(V,{icon:X,size:"16px",removeMargin:!0}),o(M,{variant:"bodyXS",children:"Uma letra"})]}),m(D,{checked:!!Z,children:[Z&&o(V,{icon:X,size:"16px",removeMargin:!0}),o(M,{variant:"bodyXS",children:"Um n\xFAmero"})]}),m(D,{checked:!!j,children:[j&&o(V,{icon:X,size:"16px",removeMargin:!0}),o(M,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),o("div",{children:o(Oe,{name:"termosDeUso",label:m("div",{style:{display:"flex",gap:4},children:[o("span",{children:"Li e aceito os"}),o("a",{href:n,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),o("div",{children:o(Ue,{type:"submit",fullWidth:!0,disabled:L(g()),children:"Concluir meu cadastro"})})]})}})]})})}import{useMemo as Ke}from"react";import{Button as ye,Indicator as Ye,Typography as Ze}from"@s_mart/core";import{Checkbox as je,Form as ea,TextField as ge}from"@s_mart/form";import{composeValidators as aa,required as Ce,email as ta}from"@s_mart/rules";import{useCapsLock as oa,useMediaQuery as ra}from"@s_mart/hooks";import{colorPalette as na}from"@s_mart/tokens";import A from"@emotion/styled";import{toRem as F}from"@s_mart/utils";var ue=A.div`
|
|
226
153
|
display: grid;
|
|
227
|
-
gap: ${
|
|
228
|
-
`,
|
|
154
|
+
gap: ${F(32)};
|
|
155
|
+
`,fe=A.header`
|
|
229
156
|
display: grid;
|
|
230
157
|
text-align: center;
|
|
231
|
-
gap: ${
|
|
232
|
-
`,
|
|
158
|
+
gap: ${F(16)};
|
|
159
|
+
`,he=A.div`
|
|
233
160
|
display: grid;
|
|
234
|
-
gap: ${
|
|
161
|
+
gap: ${F(16)};
|
|
235
162
|
|
|
236
163
|
> div {
|
|
237
164
|
display: grid;
|
|
238
|
-
gap: ${
|
|
165
|
+
gap: ${F(16)};
|
|
239
166
|
}
|
|
240
167
|
|
|
241
168
|
> div:last-of-type {
|
|
242
|
-
gap: ${
|
|
169
|
+
gap: ${F(8)};
|
|
243
170
|
}
|
|
244
|
-
`;import{jsx as
|
|
171
|
+
`;import{jsx as c,jsxs as P}from"react/jsx-runtime";function ia({logo:e,initialValues:t,onSubmit:r,onEsqueciMinhaSenha:n,errorLabel:a,...i}){let x=typeof e=="string"?c("img",{src:e,alt:"Logo do sistema"}):e,b=oa(),h=ra("(max-width: 500px)"),T=Ke(()=>({manterConectado:!1,...t}),[t]);return c(d,{...i,paperStyle:{minWidth:h?void 0:456,width:h?"90%":void 0},children:P(ue,{children:[c(fe,{children:e&&c("div",{children:x})}),c(ea,{onSubmit:r,defaultValues:T,children:P(he,{children:[P("div",{children:[c(ge,{name:"email",label:"E-mail de acesso",required:!0,rules:aa([Ce,ta]),autoComplete:"email",type:"email"}),P("div",{children:[c(ge,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:Ce}),b&&c(Ye,{severity:"warning",children:"Capslock ativado"}),!!a&&c(Ze,{variant:"titleXXS",color:na.red[300],children:a})]})]}),c(je,{name:"manterConectado",label:"Manter conectado"}),P("div",{children:[c(ye,{type:"submit",fullWidth:!0,children:"Entrar"}),n&&c(ye,{type:"button",fullWidth:!0,variant:"text",onClick:n,children:"Esqueci minha senha"})]})]})})]})})}import{Button as Se,LIcon as sa,Typography as $e}from"@s_mart/core";import{useMediaQuery as pa}from"@s_mart/hooks";import{colorPalette as U}from"@s_mart/tokens";import{lineWhatsApp as da}from"@s_mart/regular-icons";import ve from"@emotion/styled";import{toRem as Q}from"@s_mart/utils";var xe=ve.div`
|
|
245
172
|
display: grid;
|
|
246
|
-
gap: ${
|
|
173
|
+
gap: ${Q(32)};
|
|
247
174
|
|
|
248
175
|
> div {
|
|
249
176
|
display: grid;
|
|
250
|
-
gap: ${
|
|
177
|
+
gap: ${Q(8)};
|
|
251
178
|
}
|
|
252
|
-
`,
|
|
179
|
+
`,Te=ve.header`
|
|
253
180
|
display: grid;
|
|
254
181
|
text-align: center;
|
|
255
|
-
gap: ${
|
|
256
|
-
`;import{jsx as
|
|
182
|
+
gap: ${Q(16)};
|
|
183
|
+
`;import{jsx as C,jsxs as k}from"react/jsx-runtime";function la({logo:e,onPrecisoDeAjuda:t,onRealizarAcesso:r,...n}){let a=typeof e=="string"?C("img",{src:e,alt:"Logo do sistema"}):e,i=pa("(max-width: 500px)");return C(d,{...n,paperStyle:{minWidth:i?void 0:456,width:i?"90%":void 0},children:k(xe,{children:[k("div",{children:[C(Te,{children:e&&C("div",{children:a})}),k("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:8,color:U.neutral[800]},children:[C($e,{variant:"bodyMD",children:"Parece que este convite j\xE1 foi usado ou expirou."}),C($e,{variant:"bodyMD",children:"J\xE1 se cadastrou? Realize o login."})]})]}),k("div",{children:[C(Se,{fullWidth:!0,onClick:r,children:"Realizar login"}),k(Se,{fullWidth:!0,variant:"text",onClick:t,style:{display:"flex",gap:4,color:U.neutral[900]},children:[C(sa,{icon:da,size:"20px",removeMargin:!0,color:U.neutral[900]}),"Preciso de outro convite"]})]})]})})}import{Button as ma,Typography as Me}from"@s_mart/core";import{useMediaQuery as ca}from"@s_mart/hooks";import be from"@emotion/styled";import{toRem as O}from"@s_mart/utils";var Be=be.div`
|
|
257
184
|
display: grid;
|
|
258
|
-
gap: ${
|
|
185
|
+
gap: ${O(32)};
|
|
259
186
|
|
|
260
187
|
> div {
|
|
261
188
|
display: grid;
|
|
262
|
-
gap: ${
|
|
189
|
+
gap: ${O(16)};
|
|
263
190
|
}
|
|
264
|
-
`,
|
|
191
|
+
`,qe=be.header`
|
|
265
192
|
display: grid;
|
|
266
193
|
text-align: center;
|
|
267
|
-
gap: ${
|
|
268
|
-
`;import{jsx as
|
|
194
|
+
gap: ${O(16)};
|
|
195
|
+
`;import{jsx as v,jsxs as Fe}from"react/jsx-runtime";function ua({logo:e,onVoltarParaLogin:t,...r}){let n=typeof e=="string"?v("img",{src:e,alt:"Logo do sistema"}):e,a=ca("(max-width: 500px)");return v(d,{...r,paperStyle:{maxWidth:a?void 0:456,width:a?"90%":void 0},children:Fe(Be,{children:[Fe("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[v(qe,{children:e&&v("div",{children:n})}),v(Me,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),v(Me,{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."})]}),v(ma,{fullWidth:!0,onClick:t,children:"Voltar para login"})]})})}import{Button as fa,LIcon as J,Typography as E}from"@s_mart/core";import{Form as ha,TextField as De}from"@s_mart/form";import{required as ya}from"@s_mart/rules";import{lineCheck as G}from"@s_mart/regular-icons";import{colorPalette as W}from"@s_mart/tokens";import $ from"@emotion/styled";import{toRem as u}from"@s_mart/utils";var Pe=$.div`
|
|
269
196
|
display: grid;
|
|
270
|
-
gap: ${
|
|
271
|
-
`,
|
|
197
|
+
gap: ${u(32)};
|
|
198
|
+
`,ke=$.header`
|
|
272
199
|
display: grid;
|
|
273
200
|
text-align: center;
|
|
274
|
-
gap: ${
|
|
275
|
-
`,
|
|
201
|
+
gap: ${u(16)};
|
|
202
|
+
`,Ee=$.div`
|
|
276
203
|
display: grid;
|
|
277
|
-
gap: ${
|
|
278
|
-
`,
|
|
204
|
+
gap: ${u(32)};
|
|
205
|
+
`,we=$.div`
|
|
279
206
|
display: grid;
|
|
280
|
-
gap: ${
|
|
207
|
+
gap: ${u(4)};
|
|
281
208
|
|
|
282
209
|
> div:first-of-type {
|
|
283
210
|
display: grid;
|
|
284
211
|
grid-template-columns: 1fr 1fr;
|
|
285
|
-
gap: ${
|
|
212
|
+
gap: ${u(16)};
|
|
286
213
|
|
|
287
214
|
@media (max-width: 768px) {
|
|
288
215
|
grid-template-columns: 1fr;
|
|
289
|
-
gap: ${
|
|
216
|
+
gap: ${u(8)};
|
|
290
217
|
}
|
|
291
218
|
}
|
|
292
219
|
|
|
293
220
|
> div:last-of-type {
|
|
294
221
|
display: grid;
|
|
295
|
-
gap: ${
|
|
222
|
+
gap: ${u(4)};
|
|
296
223
|
}
|
|
297
|
-
`,
|
|
224
|
+
`,Le=$.div`
|
|
298
225
|
display: flex;
|
|
299
226
|
flex-wrap: wrap;
|
|
300
|
-
gap: ${
|
|
301
|
-
`,
|
|
227
|
+
gap: ${u(8)};
|
|
228
|
+
`,_=$.div`
|
|
302
229
|
display: flex;
|
|
303
230
|
align-items: center;
|
|
304
|
-
gap: ${
|
|
231
|
+
gap: ${u(4)};
|
|
305
232
|
|
|
306
|
-
color: ${
|
|
307
|
-
border: 1px solid ${
|
|
308
|
-
border-radius: ${
|
|
309
|
-
padding: ${
|
|
233
|
+
color: ${W.neutral[600]};
|
|
234
|
+
border: 1px solid ${W.neutral[600]};
|
|
235
|
+
border-radius: ${u(4)};
|
|
236
|
+
padding: ${u(3)} ${u(4)};
|
|
310
237
|
|
|
311
238
|
line-height: 1em;
|
|
312
239
|
vertical-align: middle;
|
|
313
240
|
|
|
314
241
|
${({checked:e})=>{if(e)return`
|
|
315
|
-
color: ${
|
|
316
|
-
border-color: ${
|
|
242
|
+
color: ${W.green[300]};
|
|
243
|
+
border-color: ${W.green[300]};
|
|
317
244
|
`}}
|
|
318
|
-
`;function
|
|
245
|
+
`;function Re(){let e=a=>a?a.match(/[a-z]/i):!1,t=a=>a?a.match(/[0-9]/i):!1,r=a=>a?a.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:t,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:a=>!a.senha||!a.confirmarSenha||!e(a.senha)||!t(a.senha)||!r(a.senha)}}import{jsx as s,jsxs as y}from"react/jsx-runtime";function ga({logo:e,onTrocarMinhaSenha:t,...r}){let{senhaContemLetra:n,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:i,desabilitarBotaoDeCadastro:x}=Re();return s(d,{...r,children:y(Pe,{children:[y(ke,{children:[e&&s("div",{children:typeof e=="string"?s("img",{src:e,alt:"Logo do sistema"}):e}),s(E,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),s(ha,{onSubmit:t,children:({watch:h})=>{let T=n(h("senha")),L=a(h("senha")),z=i(h("senha"));return y(Ee,{children:[y(we,{children:[y("div",{children:[s(De,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:ya}),s(De,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:g=>{if(!g)return"Campo obrigat\xF3rio";if(g!==h("senha"))return"As senhas devem ser iguais"}}})]}),y("div",{children:[s(E,{variant:"bodyXS",children:"Sua senha precisa conter:"}),y(Le,{children:[y(_,{checked:!!T,children:[T&&s(J,{icon:G,size:"16px",removeMargin:!0}),s(E,{variant:"bodyXS",children:"Uma letra"})]}),y(_,{checked:!!L,children:[L&&s(J,{icon:G,size:"16px",removeMargin:!0}),s(E,{variant:"bodyXS",children:"Um n\xFAmero"})]}),y(_,{checked:!!z,children:[z&&s(J,{icon:G,size:"16px",removeMargin:!0}),s(E,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),s("div",{children:s(fa,{type:"submit",fullWidth:!0,disabled:x(h()),children:"Trocar minha senha"})})]})}})]})})}import{Button as Ie,Typography as ze}from"@s_mart/core";import{useMediaQuery as Ca}from"@s_mart/hooks";import K from"@emotion/styled";import{toRem as w}from"@s_mart/utils";var Ne=K.div`
|
|
319
246
|
display: grid;
|
|
320
|
-
gap: ${
|
|
247
|
+
gap: ${w(32)};
|
|
321
248
|
|
|
322
249
|
> div {
|
|
323
250
|
display: grid;
|
|
324
|
-
gap: ${
|
|
251
|
+
gap: ${w(16)};
|
|
325
252
|
}
|
|
326
|
-
`,
|
|
253
|
+
`,We=K.header`
|
|
327
254
|
display: grid;
|
|
328
255
|
text-align: center;
|
|
329
|
-
gap: ${
|
|
330
|
-
`,
|
|
256
|
+
gap: ${w(16)};
|
|
257
|
+
`,_e=K.div`
|
|
331
258
|
display: grid;
|
|
332
|
-
gap: ${
|
|
259
|
+
gap: ${w(32)};
|
|
333
260
|
|
|
334
261
|
> div:last-of-type {
|
|
335
262
|
display: grid;
|
|
336
|
-
gap: ${
|
|
263
|
+
gap: ${w(16)};
|
|
337
264
|
}
|
|
338
|
-
`;import{Form as
|
|
339
|
-
/*! Bundled license information:
|
|
340
|
-
|
|
341
|
-
@mui/styled-engine/index.js:
|
|
342
|
-
(**
|
|
343
|
-
* @mui/styled-engine v5.14.6
|
|
344
|
-
*
|
|
345
|
-
* @license MIT
|
|
346
|
-
* This source code is licensed under the MIT license found in the
|
|
347
|
-
* LICENSE file in the root directory of this source tree.
|
|
348
|
-
*)
|
|
349
|
-
|
|
350
|
-
@mui/material/index.js:
|
|
351
|
-
(**
|
|
352
|
-
* @mui/material v5.14.6
|
|
353
|
-
*
|
|
354
|
-
* @license MIT
|
|
355
|
-
* This source code is licensed under the MIT license found in the
|
|
356
|
-
* LICENSE file in the root directory of this source tree.
|
|
357
|
-
*)
|
|
358
|
-
*/
|
|
359
|
-
/*! Bundled license information:
|
|
360
|
-
|
|
361
|
-
react-is/cjs/react-is.production.min.js:
|
|
362
|
-
(** @license React v16.13.1
|
|
363
|
-
* react-is.production.min.js
|
|
364
|
-
*
|
|
365
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
366
|
-
*
|
|
367
|
-
* This source code is licensed under the MIT license found in the
|
|
368
|
-
* LICENSE file in the root directory of this source tree.
|
|
369
|
-
*)
|
|
370
|
-
|
|
371
|
-
react-is/cjs/react-is.development.js:
|
|
372
|
-
(** @license React v16.13.1
|
|
373
|
-
* react-is.development.js
|
|
374
|
-
*
|
|
375
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
376
|
-
*
|
|
377
|
-
* This source code is licensed under the MIT license found in the
|
|
378
|
-
* LICENSE file in the root directory of this source tree.
|
|
379
|
-
*)
|
|
380
|
-
*/
|
|
265
|
+
`;import{Form as va,TextField as xa}from"@s_mart/form";import{composeValidators as Ta,email as Sa,required as $a}from"@s_mart/rules";import{jsx as f,jsxs as I}from"react/jsx-runtime";function ba({logo:e,onVoltarParaLogin:t,onConfirmar:r,...n}){let a=typeof e=="string"?f("img",{src:e,alt:"Logo do sistema"}):e,i=Ca("(max-width: 500px)");return f(d,{...n,paperStyle:{minWidth:i?void 0:456,width:i?"90%":void 0},children:I(Ne,{children:[I("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[f(We,{children:e&&f("div",{children:a})}),f(ze,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),f(ze,{variant:"bodySM",textAlign:"center",children:"Informe seu e-mail de acesso para receber instru\xE7\xF5es e criar uma nova senha."})]}),f(va,{onSubmit:r,children:I(_e,{children:[f("div",{children:f(xa,{name:"email",label:"E-mail de acesso",required:!0,rules:Ta([$a,Sa]),type:"email"})}),I("div",{children:[f(Ie,{fullWidth:!0,type:"submit",children:"Confirmar"}),f(Ie,{fullWidth:!0,onClick:t,variant:"neutral",children:"Voltar para login"})]})]})})]})})}export{Ge as TelaCadastro,la as TelaConviteExpirado,ba as TelaEsqueceuSenha,ua as TelaInstrucoesEnviadas,ia as TelaLogin,ga as TelaNovaSenha,d as TemplateTelaBase};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s_mart/telas-de-acesso",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"dist/**"
|
|
11
11
|
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsup src/index.tsx --minify --format esm,cjs --dts --external react",
|
|
14
|
-
"dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react",
|
|
15
|
-
"lint": "eslint src/**/*.ts* --fix"
|
|
16
|
-
},
|
|
17
12
|
"dependencies": {
|
|
18
13
|
"tsup": "^6.7.0",
|
|
19
14
|
"typescript": "^5.2.2",
|
|
20
15
|
"@types/react": "^18.2.21",
|
|
21
16
|
"@types/react-dom": "18.2.4",
|
|
22
|
-
"@s_mart/core": "
|
|
23
|
-
"@s_mart/form": "
|
|
24
|
-
"@s_mart/masks": "
|
|
25
|
-
"@s_mart/rules": "
|
|
17
|
+
"@s_mart/core": "5.0.0",
|
|
18
|
+
"@s_mart/form": "5.0.0",
|
|
19
|
+
"@s_mart/masks": "5.0.0",
|
|
20
|
+
"@s_mart/rules": "5.0.0",
|
|
21
|
+
"@s_mart/tokens": "5.0.0",
|
|
22
|
+
"@s_mart/utils": "5.0.0",
|
|
23
|
+
"@s_mart/regular-icons": "5.0.0",
|
|
24
|
+
"eslint-config-smarten": "4.0.1",
|
|
25
|
+
"@s_mart/hooks": "5.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=18.2.0",
|
|
@@ -33,16 +33,23 @@
|
|
|
33
33
|
"@types/react-dom": ">=18.2.7",
|
|
34
34
|
"@emotion/react": ">=11.10.8",
|
|
35
35
|
"@emotion/styled": ">=11.10.8",
|
|
36
|
-
"@s_mart/core": "
|
|
37
|
-
"@s_mart/form": "
|
|
38
|
-
"@s_mart/masks": "
|
|
36
|
+
"@s_mart/core": "5.0.0",
|
|
37
|
+
"@s_mart/form": "5.0.0",
|
|
38
|
+
"@s_mart/masks": "5.0.0",
|
|
39
|
+
"@s_mart/tokens": "5.0.0",
|
|
40
|
+
"@s_mart/utils": "5.0.0",
|
|
41
|
+
"@s_mart/regular-icons": "5.0.0",
|
|
42
|
+
"@s_mart/hooks": "5.0.0"
|
|
39
43
|
},
|
|
40
44
|
"devDependencies": {
|
|
41
|
-
"
|
|
42
|
-
"eslint": "^8.47.0",
|
|
43
|
-
"eslint-config-smarten": "*"
|
|
45
|
+
"eslint": "^8.47.0"
|
|
44
46
|
},
|
|
45
47
|
"publishConfig": {
|
|
46
48
|
"access": "public"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsup src/index.tsx --minify --format esm --dts --external react",
|
|
52
|
+
"dev": "tsup src/index.tsx --format esm --watch --dts --external react",
|
|
53
|
+
"lint": "eslint src/**/*.ts* --fix"
|
|
47
54
|
}
|
|
48
55
|
}
|
package/dist/index.js
DELETED
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
"use strict";var p2=Object.create;var n1=Object.defineProperty;var f2=Object.getOwnPropertyDescriptor;var Z2=Object.getOwnPropertyNames;var g2=Object.getPrototypeOf,y2=Object.prototype.hasOwnProperty;var c1=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports),M2=(e,a)=>{for(var r in a)n1(e,r,{get:a[r],enumerable:!0})},_1=(e,a,r,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of Z2(a))!y2.call(e,n)&&n!==r&&n1(e,n,{get:()=>a[n],enumerable:!(i=f2(a,n))||i.enumerable});return e};var M=(e,a,r)=>(r=e!=null?p2(g2(e)):{},_1(a||!e||!e.__esModule?n1(r,"default",{value:e,enumerable:!0}):r,e)),H2=e=>_1(n1({},"__esModule",{value:!0}),e);var e0=c1(h=>{"use strict";var g=typeof Symbol=="function"&&Symbol.for,L1=g?Symbol.for("react.element"):60103,E1=g?Symbol.for("react.portal"):60106,o1=g?Symbol.for("react.fragment"):60107,s1=g?Symbol.for("react.strict_mode"):60108,h1=g?Symbol.for("react.profiler"):60114,v1=g?Symbol.for("react.provider"):60109,d1=g?Symbol.for("react.context"):60110,k1=g?Symbol.for("react.async_mode"):60111,m1=g?Symbol.for("react.concurrent_mode"):60111,u1=g?Symbol.for("react.forward_ref"):60112,p1=g?Symbol.for("react.suspense"):60113,$2=g?Symbol.for("react.suspense_list"):60120,f1=g?Symbol.for("react.memo"):60115,Z1=g?Symbol.for("react.lazy"):60116,D2=g?Symbol.for("react.block"):60121,R2=g?Symbol.for("react.fundamental"):60117,F2=g?Symbol.for("react.responder"):60118,O2=g?Symbol.for("react.scope"):60119;function x(e){if(typeof e=="object"&&e!==null){var a=e.$$typeof;switch(a){case L1:switch(e=e.type,e){case k1:case m1:case o1:case h1:case s1:case p1:return e;default:switch(e=e&&e.$$typeof,e){case d1:case u1:case Z1:case f1:case v1:return e;default:return a}}case E1:return a}}}function J1(e){return x(e)===m1}h.AsyncMode=k1;h.ConcurrentMode=m1;h.ContextConsumer=d1;h.ContextProvider=v1;h.Element=L1;h.ForwardRef=u1;h.Fragment=o1;h.Lazy=Z1;h.Memo=f1;h.Portal=E1;h.Profiler=h1;h.StrictMode=s1;h.Suspense=p1;h.isAsyncMode=function(e){return J1(e)||x(e)===k1};h.isConcurrentMode=J1;h.isContextConsumer=function(e){return x(e)===d1};h.isContextProvider=function(e){return x(e)===v1};h.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===L1};h.isForwardRef=function(e){return x(e)===u1};h.isFragment=function(e){return x(e)===o1};h.isLazy=function(e){return x(e)===Z1};h.isMemo=function(e){return x(e)===f1};h.isPortal=function(e){return x(e)===E1};h.isProfiler=function(e){return x(e)===h1};h.isStrictMode=function(e){return x(e)===s1};h.isSuspense=function(e){return x(e)===p1};h.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o1||e===m1||e===h1||e===s1||e===p1||e===$2||typeof e=="object"&&e!==null&&(e.$$typeof===Z1||e.$$typeof===f1||e.$$typeof===v1||e.$$typeof===d1||e.$$typeof===u1||e.$$typeof===R2||e.$$typeof===F2||e.$$typeof===O2||e.$$typeof===D2)};h.typeOf=x});var a0=c1(v=>{"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,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,V=e?Symbol.for("react.forward_ref"):60112,D=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,B=e?Symbol.for("react.memo"):60115,N=e?Symbol.for("react.lazy"):60116,e1=e?Symbol.for("react.block"):60121,a1=e?Symbol.for("react.fundamental"):60117,N0=e?Symbol.for("react.responder"):60118,I0=e?Symbol.for("react.scope"):60119;function q0(t){return typeof t=="string"||typeof t=="function"||t===i||t===m||t===l||t===n||t===D||t===T||typeof t=="object"&&t!==null&&(t.$$typeof===N||t.$$typeof===B||t.$$typeof===u||t.$$typeof===f||t.$$typeof===V||t.$$typeof===a1||t.$$typeof===N0||t.$$typeof===I0||t.$$typeof===e1)}function b(t){if(typeof t=="object"&&t!==null){var x1=t.$$typeof;switch(x1){case a:var r1=t.type;switch(r1){case s:case m:case i:case l:case n:case D:return r1;default:var O1=r1&&r1.$$typeof;switch(O1){case f:case V:case N:case B:case u:return O1;default:return x1}}case r:return x1}}}var z0=s,W0=m,U0=f,j0=u,Y0=a,X0=V,K0=i,Q0=N,G0=B,J0=r,e2=l,a2=n,r2=D,R1=!1;function n2(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)||b(t)===s}function F1(t){return b(t)===m}function c2(t){return b(t)===f}function i2(t){return b(t)===u}function t2(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function l2(t){return b(t)===V}function o2(t){return b(t)===i}function s2(t){return b(t)===N}function h2(t){return b(t)===B}function v2(t){return b(t)===r}function d2(t){return b(t)===l}function m2(t){return b(t)===n}function u2(t){return b(t)===D}v.AsyncMode=z0,v.ConcurrentMode=W0,v.ContextConsumer=U0,v.ContextProvider=j0,v.Element=Y0,v.ForwardRef=X0,v.Fragment=K0,v.Lazy=Q0,v.Memo=G0,v.Portal=J0,v.Profiler=e2,v.StrictMode=a2,v.Suspense=r2,v.isAsyncMode=n2,v.isConcurrentMode=F1,v.isContextConsumer=c2,v.isContextProvider=i2,v.isElement=t2,v.isForwardRef=l2,v.isFragment=o2,v.isLazy=s2,v.isMemo=h2,v.isPortal=v2,v.isProfiler=d2,v.isStrictMode=m2,v.isSuspense=u2,v.isValidElementType=q0,v.typeOf=b}()});var r0=c1((T3,T1)=>{"use strict";process.env.NODE_ENV==="production"?T1.exports=e0():T1.exports=a0()});var s0=c1((w3,o0)=>{"use strict";var w1=r0(),_2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},B2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},N2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},t0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},A1={};A1[w1.ForwardRef]=N2;A1[w1.Memo]=t0;function n0(e){return w1.isMemo(e)?t0:A1[e.$$typeof]||_2}var I2=Object.defineProperty,q2=Object.getOwnPropertyNames,c0=Object.getOwnPropertySymbols,z2=Object.getOwnPropertyDescriptor,W2=Object.getPrototypeOf,i0=Object.prototype;function l0(e,a,r){if(typeof a!="string"){if(i0){var i=W2(a);i&&i!==i0&&l0(e,i,r)}var n=q2(a);c0&&(n=n.concat(c0(a)));for(var l=n0(e),u=n0(a),f=0;f<n.length;++f){var s=n[f];if(!B2[s]&&!(r&&r[s])&&!(u&&u[s])&&!(l&&l[s])){var m=z2(a,s);try{I2(e,s,m)}catch{}}}}return e}o0.exports=l0});var l3={};M2(l3,{TelaCadastro:()=>G1,TelaConviteExpirado:()=>x0,TelaEsqueceuSenha:()=>B0,TelaInstrucoesEnviadas:()=>E0,TelaLogin:()=>C0,TelaNovaSenha:()=>R0,TemplateTelaBase:()=>C});module.exports=H2(l3);var t1=require("@s_mart/core"),W1=require("@s_mart/masks");var R={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 i1={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 c=e=>`${e/16}rem`;var Y=M(require("@emotion/styled"));var C2=Object.defineProperty,V2=(e,a)=>{for(var r in a)C2(e,r,{get:a[r],enumerable:!0})},p={};V2(p,{blue:()=>x2,green:()=>k2,neutral:()=>P2,red:()=>L2,yellow:()=>w2});var b2={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},x2=b2,S2={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},L2=S2,E2={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},k2=E2,T2={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},w2=T2,A2={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},P2=A2;var B1=Y.default.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
overflow: auto;
|
|
7
|
-
overflow-x: hidden;
|
|
8
|
-
|
|
9
|
-
height: 100vh;
|
|
10
|
-
|
|
11
|
-
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
12
|
-
transition: background-color 0.3s ease-in-out;
|
|
13
|
-
|
|
14
|
-
@media (max-width: 500px) {
|
|
15
|
-
background-color: ${({theme:e})=>e.palette.common.white};
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@media (max-height: 600px) {
|
|
19
|
-
justify-content: flex-start;
|
|
20
|
-
}
|
|
21
|
-
`,N1=Y.default.div`
|
|
22
|
-
position: absolute;
|
|
23
|
-
left: 0;
|
|
24
|
-
bottom: 32px;
|
|
25
|
-
z-index: 1;
|
|
26
|
-
|
|
27
|
-
@media (max-width: 768px) {
|
|
28
|
-
display: none;
|
|
29
|
-
}
|
|
30
|
-
`,I1=Y.default.h1`
|
|
31
|
-
position: absolute;
|
|
32
|
-
left: 32px;
|
|
33
|
-
top: 32px;
|
|
34
|
-
|
|
35
|
-
color: ${({theme:e})=>e.palette.common.white};
|
|
36
|
-
font-size: ${c(32)};
|
|
37
|
-
line-height: 150%;
|
|
38
|
-
font-weight: normal;
|
|
39
|
-
|
|
40
|
-
@media (max-width: 768px) {
|
|
41
|
-
left: 16px;
|
|
42
|
-
top: 16px;
|
|
43
|
-
font-size: ${c(24)};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@media (max-height: 830px) {
|
|
47
|
-
left: 16px;
|
|
48
|
-
top: 16px;
|
|
49
|
-
font-size: ${c(24)};
|
|
50
|
-
|
|
51
|
-
@media (max-width: 768px) {
|
|
52
|
-
display: none;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@media (max-height: 600px) {
|
|
57
|
-
display: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
span {
|
|
61
|
-
background-color: #262626;
|
|
62
|
-
padding: ${c(4)} ${c(8)};
|
|
63
|
-
border-radius: ${c(12)};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@media (max-width: 500px) {
|
|
67
|
-
display: none;
|
|
68
|
-
}
|
|
69
|
-
`,q1=Y.default.div`
|
|
70
|
-
position: relative;
|
|
71
|
-
z-index: 2;
|
|
72
|
-
|
|
73
|
-
padding: ${c(32)};
|
|
74
|
-
border-radius: ${c(24)};
|
|
75
|
-
margin: ${c(16)};
|
|
76
|
-
|
|
77
|
-
background-color: ${({theme:e})=>e.palette.common.white};
|
|
78
|
-
`,z1=Y.default.button`
|
|
79
|
-
position: relative;
|
|
80
|
-
z-index: 2;
|
|
81
|
-
|
|
82
|
-
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
83
|
-
padding: ${c(4)} ${c(8)};
|
|
84
|
-
border: none;
|
|
85
|
-
border-radius: ${c(8)};
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
|
|
88
|
-
display: flex;
|
|
89
|
-
align-items: center;
|
|
90
|
-
gap: ${c(4)};
|
|
91
|
-
|
|
92
|
-
color: ${({theme:e})=>e.palette.common.white};
|
|
93
|
-
|
|
94
|
-
@media (max-width: 500px) {
|
|
95
|
-
color: ${({theme:e})=>e.palette.common.black};
|
|
96
|
-
background-color: transparent;
|
|
97
|
-
|
|
98
|
-
svg {
|
|
99
|
-
color: ${p.green[300]};
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
`;var w=require("react/jsx-runtime");function C({children:e,whatsapp:a,textoChamativo:r,style:i,paperStyle:n,ilustracao:l}){return(0,w.jsxs)(B1,{style:i,children:[r&&(0,w.jsx)(I1,{children:r}),l&&(0,w.jsx)(N1,{children:typeof l=="string"?(0,w.jsx)("img",{src:l,alt:"Logo do sistema"}):l}),(0,w.jsx)(q1,{style:n,children:e}),a&&(0,w.jsxs)(z1,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${a}`)},style:{marginBottom:16},children:[(0,w.jsxs)(t1.Typography,{variant:"bodyXS",children:["Com d\xFAvidas? ",W1.telefone.format(a.slice(2))]}),(0,w.jsx)(t1.LIcon,{icon:i1,size:"20px",removeMargin:!0})]})]})}var S=require("@s_mart/core"),P=require("@s_mart/form"),S1=require("@s_mart/rules");var I=M(require("@emotion/styled"));var U1=I.default.div`
|
|
103
|
-
display: grid;
|
|
104
|
-
gap: ${c(32)};
|
|
105
|
-
`,j1=I.default.header`
|
|
106
|
-
display: grid;
|
|
107
|
-
text-align: center;
|
|
108
|
-
gap: ${c(16)};
|
|
109
|
-
`,Y1=I.default.div`
|
|
110
|
-
display: grid;
|
|
111
|
-
gap: ${c(32)};
|
|
112
|
-
`,X1=I.default.div`
|
|
113
|
-
display: grid;
|
|
114
|
-
gap: ${c(4)};
|
|
115
|
-
|
|
116
|
-
> div:first-of-type {
|
|
117
|
-
display: grid;
|
|
118
|
-
grid-template-columns: 1fr 1fr;
|
|
119
|
-
gap: ${c(16)};
|
|
120
|
-
|
|
121
|
-
@media (max-width: 768px) {
|
|
122
|
-
grid-template-columns: 1fr;
|
|
123
|
-
gap: ${c(8)};
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
> div:last-of-type {
|
|
128
|
-
display: grid;
|
|
129
|
-
gap: ${c(4)};
|
|
130
|
-
}
|
|
131
|
-
`,K1=I.default.div`
|
|
132
|
-
display: flex;
|
|
133
|
-
flex-wrap: wrap;
|
|
134
|
-
gap: ${c(8)};
|
|
135
|
-
`,l1=I.default.div`
|
|
136
|
-
display: flex;
|
|
137
|
-
align-items: center;
|
|
138
|
-
gap: ${c(4)};
|
|
139
|
-
|
|
140
|
-
color: ${p.neutral[600]};
|
|
141
|
-
border: 1px solid ${p.neutral[600]};
|
|
142
|
-
border-radius: ${c(4)};
|
|
143
|
-
padding: ${c(3)} ${c(4)};
|
|
144
|
-
|
|
145
|
-
line-height: 1em;
|
|
146
|
-
vertical-align: middle;
|
|
147
|
-
|
|
148
|
-
${({checked:e})=>{if(e)return`
|
|
149
|
-
color: ${p.green[300]};
|
|
150
|
-
border-color: ${p.green[300]};
|
|
151
|
-
`}}
|
|
152
|
-
`;function Q1(){let e=n=>n?n.match(/[a-z]/i):!1,a=n=>n?n.match(/[0-9]/i):!1,r=n=>n?n.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:n=>!n.email||!n.senha||!n.confirmarSenha||!n.termosDeUso||!e(n.senha)||!a(n.senha)||!r(n.senha)}}var o=require("react/jsx-runtime");function G1({logo:e,nomeSistema:a,onSubmit:r,linkTermosDeUso:i,email:n,nome:l,...u}){let{senhaContemLetra:f,senhaContemNumero:s,senhaContemMinimoDe6Caracteres:m,desabilitarBotaoDeCadastro:V}=Q1();return(0,o.jsx)(C,{...u,children:(0,o.jsxs)(U1,{children:[(0,o.jsxs)(j1,{children:[e&&(0,o.jsx)("div",{children:typeof e=="string"?(0,o.jsx)("img",{src:e,alt:"Logo do sistema"}):e}),(0,o.jsxs)(S.Typography,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",a,"."]})]}),(0,o.jsx)(P.Form,{onSubmit:r,defaultValues:{email:n,nome:l,termosDeUso:!1},children:({watch:T})=>{let B=f(T("senha")),N=s(T("senha")),e1=m(T("senha"));return(0,o.jsxs)(Y1,{children:[(0,o.jsx)(P.TextField,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),(0,o.jsx)(P.TextField,{name:"nome",label:"Nome completo",required:!0,rules:S1.required}),(0,o.jsxs)(X1,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(P.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:S1.required}),(0,o.jsx)(P.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:a1=>{if(!a1)return"Campo obrigat\xF3rio";if(a1!==T("senha"))return"As senhas devem ser iguais"}}})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(S.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,o.jsxs)(K1,{children:[(0,o.jsxs)(l1,{checked:!!B,children:[B&&(0,o.jsx)(S.LIcon,{icon:R,size:"16px",removeMargin:!0}),(0,o.jsx)(S.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,o.jsxs)(l1,{checked:!!N,children:[N&&(0,o.jsx)(S.LIcon,{icon:R,size:"16px",removeMargin:!0}),(0,o.jsx)(S.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,o.jsxs)(l1,{checked:!!e1,children:[e1&&(0,o.jsx)(S.LIcon,{icon:R,size:"16px",removeMargin:!0}),(0,o.jsx)(S.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,o.jsx)("div",{children:(0,o.jsx)(P.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:i,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),(0,o.jsx)("div",{children:(0,o.jsx)(S.Button,{type:"submit",fullWidth:!0,disabled:V(T()),children:"Concluir meu cadastro"})})]})}})]})})}var H0=require("react"),z=require("@s_mart/core"),W=require("@s_mart/form"),U=require("@s_mart/rules");var g1=require("react");var X2=M(require("react"),1);var A=M(require("react")),U2=require("react-dom");var j2=M(s0());var Y2="SnackbarContent",$3={root:Y2+"-root"};var $="SnackbarItem",D3={contentRoot:$+"-contentRoot",lessPadding:$+"-lessPadding",variantSuccess:$+"-variantSuccess",variantError:$+"-variantError",variantInfo:$+"-variantInfo",variantWarning:$+"-variantWarning",message:$+"-message",action:$+"-action",wrappedRoot:$+"-wrappedRoot"};var q="SnackbarContainer",R3={root:q+"-root",rootDense:q+"-rootDense",top:q+"-top",bottom:q+"-bottom",left:q+"-left",right:q+"-right",center:q+"-center"};var F3=process.env.NODE_ENV!=="production";var y1=M(require("@emotion/styled"),1);var v0=M(require("@emotion/styled"),1),F=require("@emotion/react");var K2=require("react/jsx-runtime"),d0=require("react/jsx-runtime"),P1=require("react/jsx-runtime"),m0=require("react"),M1=M(require("react"),1),Y3=require("@emotion/styled"),p0=require("@emotion/react"),f0=M(require("react"),1),E=M(require("react"),1),h0=()=>{let[e,a]=(0,g1.useState)(!1);return(0,g1.useEffect)(()=>{let r=i=>{i.key==="CapsLock"&&a(i.getModifierState("CapsLock"))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[]),e};var q3=y1.default.div`
|
|
153
|
-
display: flex;
|
|
154
|
-
align-items: center;
|
|
155
|
-
justify-content: space-between;
|
|
156
|
-
gap: ${c(8)};
|
|
157
|
-
|
|
158
|
-
background-color: white;
|
|
159
|
-
border-radius: 4px;
|
|
160
|
-
padding: ${c(16)} ${c(16)};
|
|
161
|
-
|
|
162
|
-
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
163
|
-
|
|
164
|
-
border-left: 6px solid
|
|
165
|
-
${({variant:e})=>{switch(e){case"error":return p.red[300];case"warning":return p.yellow[300];case"info":return p.blue[100];default:case"success":return p.green[300]}}};
|
|
166
|
-
|
|
167
|
-
> div {
|
|
168
|
-
display: flex;
|
|
169
|
-
align-items: center;
|
|
170
|
-
gap: ${c(8)};
|
|
171
|
-
}
|
|
172
|
-
`,z3=y1.default.div`
|
|
173
|
-
display: flex;
|
|
174
|
-
flex-direction: column;
|
|
175
|
-
justify-content: center;
|
|
176
|
-
|
|
177
|
-
> *:first-of-type {
|
|
178
|
-
margin-bottom: ${c(4)};
|
|
179
|
-
}
|
|
180
|
-
`,W3=y1.default.div`
|
|
181
|
-
cursor: pointer;
|
|
182
|
-
align-self: flex-start;
|
|
183
|
-
`,j3=v0.default.i`
|
|
184
|
-
align-self: center;
|
|
185
|
-
display: inline-flex;
|
|
186
|
-
color: ${({color:e})=>e};
|
|
187
|
-
|
|
188
|
-
user-select: none;
|
|
189
|
-
|
|
190
|
-
svg {
|
|
191
|
-
z-index: 0 !important;
|
|
192
|
-
outline: 0 !important;
|
|
193
|
-
|
|
194
|
-
${({left:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&F.css`
|
|
195
|
-
left: ${e};
|
|
196
|
-
`}
|
|
197
|
-
|
|
198
|
-
${({right:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&F.css`
|
|
199
|
-
right: ${e};
|
|
200
|
-
`}
|
|
201
|
-
|
|
202
|
-
${({top:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&F.css`
|
|
203
|
-
top: ${e};
|
|
204
|
-
`}
|
|
205
|
-
|
|
206
|
-
${({bottom:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&F.css`
|
|
207
|
-
bottom: ${e};
|
|
208
|
-
`}
|
|
209
|
-
|
|
210
|
-
${({color:e})=>{let a=e;return e==="inherit"&&(a="currentColor"),F.css`
|
|
211
|
-
fill: ${a};
|
|
212
|
-
`}}
|
|
213
|
-
position: relative;
|
|
214
|
-
|
|
215
|
-
height: ${({height:e})=>e} !important;
|
|
216
|
-
width: ${({width:e})=>e} !important;
|
|
217
|
-
|
|
218
|
-
${({removeMargin:e})=>e?F.css`
|
|
219
|
-
margin: 0;
|
|
220
|
-
`:F.css`
|
|
221
|
-
margin: 0 ${c(4)};
|
|
222
|
-
`}
|
|
223
|
-
}
|
|
224
|
-
`;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Q.apply(this,arguments)}var Q2=typeof window<"u"?M1.useLayoutEffect:M1.useEffect,G2=Q2;function u0(e,a){let r=Q({},a);return Object.keys(e).forEach(i=>{if(i.toString().match(/^(components|slots)$/))r[i]=Q({},e[i],r[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){let n=e[i]||{},l=a[i];r[i]={},!l||!Object.keys(l)?r[i]=n:!n||!Object.keys(n)?r[i]=l:(r[i]=Q({},l),Object.keys(n).forEach(u=>{r[i][u]=u0(n[u],l[u])}))}else r[i]===void 0&&(r[i]=e[i])}),r}function J2(e){return Object.keys(e).length===0}function e3(e=null){let a=f0.useContext(p0.ThemeContext);return!a||J2(a)?e:a}var a3=e3;function r3(e){let{theme:a,name:r,props:i}=e;return!a||!a.components||!a.components[r]||!a.components[r].defaultProps?i:u0(a.components[r].defaultProps,i)}var n3=G2;function c3(e,a,r,i,n){let[l,u]=E.useState(()=>n&&r?r(e).matches:i?i(e).matches:a);return n3(()=>{let f=!0;if(!r)return;let s=r(e),m=()=>{f&&u(s.matches)};return m(),s.addListener(m),()=>{f=!1,s.removeListener(m)}},[e,r]),l}var Z0=E.useSyncExternalStore;function i3(e,a,r,i,n){let l=E.useCallback(()=>a,[a]),u=E.useMemo(()=>{if(n&&r)return()=>r(e).matches;if(i!==null){let{matches:m}=i(e);return()=>m}return l},[l,e,i,n,r]),[f,s]=E.useMemo(()=>{if(r===null)return[l,()=>()=>{}];let m=r(e);return[()=>m.matches,V=>(m.addListener(V),()=>{m.removeListener(V)})]},[l,r,e]);return Z0(s,f,u)}function t3(e,a={}){let r=a3(),i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:n=!1,matchMedia:l=i?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=r3({name:"MuiUseMediaQuery",props:a,theme:r});process.env.NODE_ENV!=="production"&&typeof e=="function"&&r===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
225
|
-
`));let s=typeof e=="function"?e(r):e;s=s.replace(/^@media( ?)/m,"");let m=(Z0!==void 0?i3:c3)(s,n,l,u,f);return process.env.NODE_ENV!=="production"&&E.useDebugValue({query:s,match:m}),m}var O=(e,a)=>t3(e,a);var H1=M(require("@emotion/styled"));var g0=H1.default.div`
|
|
226
|
-
display: grid;
|
|
227
|
-
gap: ${c(32)};
|
|
228
|
-
`,y0=H1.default.header`
|
|
229
|
-
display: grid;
|
|
230
|
-
text-align: center;
|
|
231
|
-
gap: ${c(16)};
|
|
232
|
-
`,M0=H1.default.div`
|
|
233
|
-
display: grid;
|
|
234
|
-
gap: ${c(16)};
|
|
235
|
-
|
|
236
|
-
> div {
|
|
237
|
-
display: grid;
|
|
238
|
-
gap: ${c(16)};
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
> div:last-of-type {
|
|
242
|
-
gap: ${c(8)};
|
|
243
|
-
}
|
|
244
|
-
`;var Z=require("react/jsx-runtime");function C0({logo:e,initialValues:a,onSubmit:r,onEsqueciMinhaSenha:i,errorLabel:n,...l}){let u=typeof e=="string"?(0,Z.jsx)("img",{src:e,alt:"Logo do sistema"}):e,f=h0(),s=O("(max-width: 500px)"),m=(0,H0.useMemo)(()=>({manterConectado:!1,...a}),[a]);return(0,Z.jsx)(C,{...l,paperStyle:{minWidth:s?void 0:456,width:s?"90%":void 0},children:(0,Z.jsxs)(g0,{children:[(0,Z.jsx)(y0,{children:e&&(0,Z.jsx)("div",{children:u})}),(0,Z.jsx)(W.Form,{onSubmit:r,defaultValues:m,children:(0,Z.jsxs)(M0,{children:[(0,Z.jsxs)("div",{children:[(0,Z.jsx)(W.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:(0,U.composeValidators)([U.required,U.email]),autoComplete:"email",type:"email"}),(0,Z.jsxs)("div",{children:[(0,Z.jsx)(W.TextField,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:U.required}),f&&(0,Z.jsx)(z.Indicator,{severity:"warning",children:"Capslock ativado"}),!!n&&(0,Z.jsx)(z.Typography,{variant:"titleXXS",color:p.red[300],children:n})]})]}),(0,Z.jsx)(W.Checkbox,{name:"manterConectado",label:"Manter conectado"}),(0,Z.jsxs)("div",{children:[(0,Z.jsx)(z.Button,{type:"submit",fullWidth:!0,children:"Entrar"}),i&&(0,Z.jsx)(z.Button,{type:"button",fullWidth:!0,variant:"text",onClick:i,children:"Esqueci minha senha"})]})]})})]})})}var _=require("@s_mart/core");var $1=M(require("@emotion/styled"));var V0=$1.default.div`
|
|
245
|
-
display: grid;
|
|
246
|
-
gap: ${c(32)};
|
|
247
|
-
|
|
248
|
-
> div {
|
|
249
|
-
display: grid;
|
|
250
|
-
gap: ${c(8)};
|
|
251
|
-
}
|
|
252
|
-
`,b0=$1.default.header`
|
|
253
|
-
display: grid;
|
|
254
|
-
text-align: center;
|
|
255
|
-
gap: ${c(16)};
|
|
256
|
-
`;var H=require("react/jsx-runtime");function x0({logo:e,onPrecisoDeAjuda:a,onRealizarAcesso:r,...i}){let n=typeof e=="string"?(0,H.jsx)("img",{src:e,alt:"Logo do sistema"}):e,l=O("(max-width: 500px)");return(0,H.jsx)(C,{...i,paperStyle:{minWidth:l?void 0:456,width:l?"90%":void 0},children:(0,H.jsxs)(V0,{children:[(0,H.jsxs)("div",{children:[(0,H.jsx)(b0,{children:e&&(0,H.jsx)("div",{children:n})}),(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:8,color:p.neutral[800]},children:[(0,H.jsx)(_.Typography,{variant:"bodyMD",children:"Parece que este convite j\xE1 foi usado ou expirou."}),(0,H.jsx)(_.Typography,{variant:"bodyMD",children:"J\xE1 se cadastrou? Realize o login."})]})]}),(0,H.jsxs)("div",{children:[(0,H.jsx)(_.Button,{fullWidth:!0,onClick:r,children:"Realizar login"}),(0,H.jsxs)(_.Button,{fullWidth:!0,variant:"text",onClick:a,style:{display:"flex",gap:4,color:p.neutral[900]},children:[(0,H.jsx)(_.LIcon,{icon:i1,size:"20px",removeMargin:!0,color:p.neutral[900]}),"Preciso de outro convite"]})]})]})})}var G=require("@s_mart/core");var D1=M(require("@emotion/styled"));var S0=D1.default.div`
|
|
257
|
-
display: grid;
|
|
258
|
-
gap: ${c(32)};
|
|
259
|
-
|
|
260
|
-
> div {
|
|
261
|
-
display: grid;
|
|
262
|
-
gap: ${c(16)};
|
|
263
|
-
}
|
|
264
|
-
`,L0=D1.default.header`
|
|
265
|
-
display: grid;
|
|
266
|
-
text-align: center;
|
|
267
|
-
gap: ${c(16)};
|
|
268
|
-
`;var k=require("react/jsx-runtime");function E0({logo:e,onVoltarParaLogin:a,...r}){let i=typeof e=="string"?(0,k.jsx)("img",{src:e,alt:"Logo do sistema"}):e,n=O("(max-width: 500px)");return(0,k.jsx)(C,{...r,paperStyle:{maxWidth:n?void 0:456,width:n?"90%":void 0},children:(0,k.jsxs)(S0,{children:[(0,k.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,k.jsx)(L0,{children:e&&(0,k.jsx)("div",{children:i})}),(0,k.jsx)(G.Typography,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),(0,k.jsx)(G.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,k.jsx)(G.Button,{fullWidth:!0,onClick:a,children:"Voltar para login"})]})})}var L=require("@s_mart/core"),J=require("@s_mart/form"),D0=require("@s_mart/rules");var j=M(require("@emotion/styled"));var k0=j.default.div`
|
|
269
|
-
display: grid;
|
|
270
|
-
gap: ${c(32)};
|
|
271
|
-
`,T0=j.default.header`
|
|
272
|
-
display: grid;
|
|
273
|
-
text-align: center;
|
|
274
|
-
gap: ${c(16)};
|
|
275
|
-
`,w0=j.default.div`
|
|
276
|
-
display: grid;
|
|
277
|
-
gap: ${c(32)};
|
|
278
|
-
`,A0=j.default.div`
|
|
279
|
-
display: grid;
|
|
280
|
-
gap: ${c(4)};
|
|
281
|
-
|
|
282
|
-
> div:first-of-type {
|
|
283
|
-
display: grid;
|
|
284
|
-
grid-template-columns: 1fr 1fr;
|
|
285
|
-
gap: ${c(16)};
|
|
286
|
-
|
|
287
|
-
@media (max-width: 768px) {
|
|
288
|
-
grid-template-columns: 1fr;
|
|
289
|
-
gap: ${c(8)};
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
> div:last-of-type {
|
|
294
|
-
display: grid;
|
|
295
|
-
gap: ${c(4)};
|
|
296
|
-
}
|
|
297
|
-
`,P0=j.default.div`
|
|
298
|
-
display: flex;
|
|
299
|
-
flex-wrap: wrap;
|
|
300
|
-
gap: ${c(8)};
|
|
301
|
-
`,C1=j.default.div`
|
|
302
|
-
display: flex;
|
|
303
|
-
align-items: center;
|
|
304
|
-
gap: ${c(4)};
|
|
305
|
-
|
|
306
|
-
color: ${p.neutral[600]};
|
|
307
|
-
border: 1px solid ${p.neutral[600]};
|
|
308
|
-
border-radius: ${c(4)};
|
|
309
|
-
padding: ${c(3)} ${c(4)};
|
|
310
|
-
|
|
311
|
-
line-height: 1em;
|
|
312
|
-
vertical-align: middle;
|
|
313
|
-
|
|
314
|
-
${({checked:e})=>{if(e)return`
|
|
315
|
-
color: ${p.green[300]};
|
|
316
|
-
border-color: ${p.green[300]};
|
|
317
|
-
`}}
|
|
318
|
-
`;function $0(){let e=n=>n?n.match(/[a-z]/i):!1,a=n=>n?n.match(/[0-9]/i):!1,r=n=>n?n.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:n=>!n.senha||!n.confirmarSenha||!e(n.senha)||!a(n.senha)||!r(n.senha)}}var d=require("react/jsx-runtime");function R0({logo:e,onTrocarMinhaSenha:a,...r}){let{senhaContemLetra:i,senhaContemNumero:n,senhaContemMinimoDe6Caracteres:l,desabilitarBotaoDeCadastro:u}=$0();return(0,d.jsx)(C,{...r,children:(0,d.jsxs)(k0,{children:[(0,d.jsxs)(T0,{children:[e&&(0,d.jsx)("div",{children:typeof e=="string"?(0,d.jsx)("img",{src:e,alt:"Logo do sistema"}):e}),(0,d.jsx)(L.Typography,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),(0,d.jsx)(J.Form,{onSubmit:a,children:({watch:s})=>{let m=i(s("senha")),V=n(s("senha")),D=l(s("senha"));return(0,d.jsxs)(w0,{children:[(0,d.jsxs)(A0,{children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(J.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:D0.required}),(0,d.jsx)(J.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:T=>{if(!T)return"Campo obrigat\xF3rio";if(T!==s("senha"))return"As senhas devem ser iguais"}}})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(L.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,d.jsxs)(P0,{children:[(0,d.jsxs)(C1,{checked:!!m,children:[m&&(0,d.jsx)(L.LIcon,{icon:R,size:"16px",removeMargin:!0}),(0,d.jsx)(L.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,d.jsxs)(C1,{checked:!!V,children:[V&&(0,d.jsx)(L.LIcon,{icon:R,size:"16px",removeMargin:!0}),(0,d.jsx)(L.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,d.jsxs)(C1,{checked:!!D,children:[D&&(0,d.jsx)(L.LIcon,{icon:R,size:"16px",removeMargin:!0}),(0,d.jsx)(L.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,d.jsx)("div",{children:(0,d.jsx)(L.Button,{type:"submit",fullWidth:!0,disabled:u(s()),children:"Trocar minha senha"})})]})}})]})})}var X=require("@s_mart/core");var V1=M(require("@emotion/styled"));var F0=V1.default.div`
|
|
319
|
-
display: grid;
|
|
320
|
-
gap: ${c(32)};
|
|
321
|
-
|
|
322
|
-
> div {
|
|
323
|
-
display: grid;
|
|
324
|
-
gap: ${c(16)};
|
|
325
|
-
}
|
|
326
|
-
`,O0=V1.default.header`
|
|
327
|
-
display: grid;
|
|
328
|
-
text-align: center;
|
|
329
|
-
gap: ${c(16)};
|
|
330
|
-
`,_0=V1.default.div`
|
|
331
|
-
display: grid;
|
|
332
|
-
gap: ${c(32)};
|
|
333
|
-
|
|
334
|
-
> div:last-of-type {
|
|
335
|
-
display: grid;
|
|
336
|
-
gap: ${c(16)};
|
|
337
|
-
}
|
|
338
|
-
`;var b1=require("@s_mart/form"),K=require("@s_mart/rules");var y=require("react/jsx-runtime");function B0({logo:e,onVoltarParaLogin:a,onConfirmar:r,...i}){let n=typeof e=="string"?(0,y.jsx)("img",{src:e,alt:"Logo do sistema"}):e,l=O("(max-width: 500px)");return(0,y.jsx)(C,{...i,paperStyle:{minWidth:l?void 0:456,width:l?"90%":void 0},children:(0,y.jsxs)(F0,{children:[(0,y.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,y.jsx)(O0,{children:e&&(0,y.jsx)("div",{children:n})}),(0,y.jsx)(X.Typography,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),(0,y.jsx)(X.Typography,{variant:"bodySM",textAlign:"center",children:"Informe seu e-mail de acesso para receber instru\xE7\xF5es e criar uma nova senha."})]}),(0,y.jsx)(b1.Form,{onSubmit:r,children:(0,y.jsxs)(_0,{children:[(0,y.jsx)("div",{children:(0,y.jsx)(b1.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:(0,K.composeValidators)([K.required,K.email]),type:"email"})}),(0,y.jsxs)("div",{children:[(0,y.jsx)(X.Button,{fullWidth:!0,type:"submit",children:"Confirmar"}),(0,y.jsx)(X.Button,{fullWidth:!0,onClick:a,variant:"neutral",children:"Voltar para login"})]})]})})]})})}0&&(module.exports={TelaCadastro,TelaConviteExpirado,TelaEsqueceuSenha,TelaInstrucoesEnviadas,TelaLogin,TelaNovaSenha,TemplateTelaBase});
|
|
339
|
-
/*! Bundled license information:
|
|
340
|
-
|
|
341
|
-
@mui/styled-engine/index.js:
|
|
342
|
-
(**
|
|
343
|
-
* @mui/styled-engine v5.14.6
|
|
344
|
-
*
|
|
345
|
-
* @license MIT
|
|
346
|
-
* This source code is licensed under the MIT license found in the
|
|
347
|
-
* LICENSE file in the root directory of this source tree.
|
|
348
|
-
*)
|
|
349
|
-
|
|
350
|
-
@mui/material/index.js:
|
|
351
|
-
(**
|
|
352
|
-
* @mui/material v5.14.6
|
|
353
|
-
*
|
|
354
|
-
* @license MIT
|
|
355
|
-
* This source code is licensed under the MIT license found in the
|
|
356
|
-
* LICENSE file in the root directory of this source tree.
|
|
357
|
-
*)
|
|
358
|
-
*/
|
|
359
|
-
/*! Bundled license information:
|
|
360
|
-
|
|
361
|
-
react-is/cjs/react-is.production.min.js:
|
|
362
|
-
(** @license React v16.13.1
|
|
363
|
-
* react-is.production.min.js
|
|
364
|
-
*
|
|
365
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
366
|
-
*
|
|
367
|
-
* This source code is licensed under the MIT license found in the
|
|
368
|
-
* LICENSE file in the root directory of this source tree.
|
|
369
|
-
*)
|
|
370
|
-
|
|
371
|
-
react-is/cjs/react-is.development.js:
|
|
372
|
-
(** @license React v16.13.1
|
|
373
|
-
* react-is.development.js
|
|
374
|
-
*
|
|
375
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
376
|
-
*
|
|
377
|
-
* This source code is licensed under the MIT license found in the
|
|
378
|
-
* LICENSE file in the root directory of this source tree.
|
|
379
|
-
*)
|
|
380
|
-
*/
|