@s_mart/telas-de-acesso 4.0.1 → 4.0.2
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 +104 -104
- package/package.json +3 -3
- package/dist/index.js +0 -380
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t2=Object.create;var k1=Object.defineProperty;var l2=Object.getOwnPropertyDescriptor;var o2=Object.getOwnPropertyNames;var s2=Object.getPrototypeOf,c2=Object.prototype.hasOwnProperty;var K=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var h2=(e,a,r,t)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of o2(a))!c2.call(e,n)&&n!==r&&k1(e,n,{get:()=>a[n],enumerable:!(t=l2(a,n))||t.enumerable});return e};var q2=(e,a,r)=>(r=e!=null?t2(s2(e)):{},h2(a||!e||!e.__esModule?k1(r,"default",{value:e,enumerable:!0}):r,e));var N1=K(c=>{"use strict";var p=typeof Symbol=="function"&&Symbol.for,p1=p?Symbol.for("react.element"):60103,f1=p?Symbol.for("react.portal"):60106,e1=p?Symbol.for("react.fragment"):60107,a1=p?Symbol.for("react.strict_mode"):60108,r1=p?Symbol.for("react.profiler"):60114,n1=p?Symbol.for("react.provider"):60109,i1=p?Symbol.for("react.context"):60110,g1=p?Symbol.for("react.async_mode"):60111,t1=p?Symbol.for("react.concurrent_mode"):60111,l1=p?Symbol.for("react.forward_ref"):60112,o1=p?Symbol.for("react.suspense"):60113,T2=p?Symbol.for("react.suspense_list"):60120,s1=p?Symbol.for("react.memo"):60115,c1=p?Symbol.for("react.lazy"):60116,Z2=p?Symbol.for("react.block"):60121,w2=p?Symbol.for("react.fundamental"):60117,A2=p?Symbol.for("react.responder"):60118,P2=p?Symbol.for("react.scope"):60119;function H(e){if(typeof e=="object"&&e!==null){var a=e.$$typeof;switch(a){case p1:switch(e=e.type,e){case g1:case t1:case e1:case r1:case a1:case o1:return e;default:switch(e=e&&e.$$typeof,e){case i1:case l1:case c1:case s1:case n1:return e;default:return a}}case f1:return a}}}function B1(e){return H(e)===t1}c.AsyncMode=g1;c.ConcurrentMode=t1;c.ContextConsumer=i1;c.ContextProvider=n1;c.Element=p1;c.ForwardRef=l1;c.Fragment=e1;c.Lazy=c1;c.Memo=s1;c.Portal=f1;c.Profiler=r1;c.StrictMode=a1;c.Suspense=o1;c.isAsyncMode=function(e){return B1(e)||H(e)===g1};c.isConcurrentMode=B1;c.isContextConsumer=function(e){return H(e)===i1};c.isContextProvider=function(e){return H(e)===n1};c.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===p1};c.isForwardRef=function(e){return H(e)===l1};c.isFragment=function(e){return H(e)===e1};c.isLazy=function(e){return H(e)===c1};c.isMemo=function(e){return H(e)===s1};c.isPortal=function(e){return H(e)===f1};c.isProfiler=function(e){return H(e)===r1};c.isStrictMode=function(e){return H(e)===a1};c.isSuspense=function(e){return H(e)===o1};c.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===e1||e===t1||e===r1||e===a1||e===o1||e===T2||typeof e=="object"&&e!==null&&(e.$$typeof===c1||e.$$typeof===s1||e.$$typeof===n1||e.$$typeof===i1||e.$$typeof===l1||e.$$typeof===w2||e.$$typeof===A2||e.$$typeof===P2||e.$$typeof===Z2)};c.typeOf=H});var I1=K(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,t=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,v=e?Symbol.for("react.provider"):60109,m=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,q=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,k=e?Symbol.for("react.suspense"):60113,z=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,A=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,Y=e?Symbol.for("react.fundamental"):60117,T0=e?Symbol.for("react.responder"):60118,Z0=e?Symbol.for("react.scope"):60119;function w0(l){return typeof l=="string"||typeof l=="function"||l===t||l===q||l===o||l===n||l===k||l===z||typeof l=="object"&&l!==null&&(l.$$typeof===A||l.$$typeof===w||l.$$typeof===v||l.$$typeof===m||l.$$typeof===g||l.$$typeof===Y||l.$$typeof===T0||l.$$typeof===Z0||l.$$typeof===j)}function M(l){if(typeof l=="object"&&l!==null){var d1=l.$$typeof;switch(d1){case a:var Q=l.type;switch(Q){case s:case q:case t:case o:case n:case k:return Q;default:var L1=Q&&Q.$$typeof;switch(L1){case m:case g:case A:case w:case v:return L1;default:return d1}}case r:return d1}}}var A0=s,P0=q,$0=m,D0=v,R0=a,F0=g,O0=t,_0=A,B0=w,N0=r,I0=o,W0=n,U0=k,z1=!1;function j0(l){return z1||(z1=!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.")),S1(l)||M(l)===s}function S1(l){return M(l)===q}function Y0(l){return M(l)===m}function Q0(l){return M(l)===v}function K0(l){return typeof l=="object"&&l!==null&&l.$$typeof===a}function X0(l){return M(l)===g}function G0(l){return M(l)===t}function J0(l){return M(l)===A}function e2(l){return M(l)===w}function a2(l){return M(l)===r}function r2(l){return M(l)===o}function n2(l){return M(l)===n}function i2(l){return M(l)===k}h.AsyncMode=A0,h.ConcurrentMode=P0,h.ContextConsumer=$0,h.ContextProvider=D0,h.Element=R0,h.ForwardRef=F0,h.Fragment=O0,h.Lazy=_0,h.Memo=B0,h.Portal=N0,h.Profiler=I0,h.StrictMode=W0,h.Suspense=U0,h.isAsyncMode=j0,h.isConcurrentMode=S1,h.isContextConsumer=Y0,h.isContextProvider=Q0,h.isElement=K0,h.isForwardRef=X0,h.isFragment=G0,h.isLazy=J0,h.isMemo=e2,h.isPortal=a2,h.isProfiler=r2,h.isStrictMode=n2,h.isSuspense=i2,h.isValidElementType=w0,h.typeOf=M}()});var W1=K((ie,M1)=>{"use strict";process.env.NODE_ENV==="production"?M1.exports=N1():M1.exports=I1()});var G1=K((te,X1)=>{"use strict";var y1=W1(),$2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},D2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},R2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Q1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},H1={};H1[y1.ForwardRef]=R2;H1[y1.Memo]=Q1;function U1(e){return y1.isMemo(e)?Q1:H1[e.$$typeof]||$2}var F2=Object.defineProperty,O2=Object.getOwnPropertyNames,j1=Object.getOwnPropertySymbols,_2=Object.getOwnPropertyDescriptor,B2=Object.getPrototypeOf,Y1=Object.prototype;function K1(e,a,r){if(typeof a!="string"){if(Y1){var t=B2(a);t&&t!==Y1&&K1(e,t,r)}var n=O2(a);j1&&(n=n.concat(j1(a)));for(var o=U1(e),v=U1(a),m=0;m<n.length;++m){var s=n[m];if(!D2[s]&&!(r&&r[s])&&!(v&&v[s])&&!(o&&o[s])){var q=_2(a,s);try{F2(e,s,q)}catch{}}}}return e}X1.exports=K1});import{LIcon as V2,Typography as x2}from"@s_mart/core";import{telefone as z2}from"@s_mart/masks";var E={description:"m37.5 11.3-19 19.4-7-7.2a1 1 0 0 0-1.2 0l-2 2.1q-.6.7 0 1.3l9.6 9.8q.6.6 1.2 0l21.6-22.1c.4-.3.4-1 0-1.3l-2-2a1 1 0 0 0-1.2 0",id:"line-check-regular"};var X={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.1M24 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.3q3.9 3.8 4 9.3C37.3 31 31.3 37 24 37m7.2-10-2.7-1q-.5-.3-.9.2l-1.2 1.5q-.4.4-.9.1c-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-3s-.6-.6-.9-.6h-.7q-.5-.1-1 .4c-.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.9q.5-1.5.3-1.9l-.8-.4Z",id:"line-whatsapp-regular"};var i=e=>`${e/16}rem`;import O from"@emotion/styled";var v2=Object.defineProperty,d2=(e,a)=>{for(var r in a)v2(e,r,{get:a[r],enumerable:!0})},d={};d2(d,{blue:()=>u2,green:()=>M2,neutral:()=>b2,red:()=>f2,yellow:()=>H2});var m2={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},u2=m2,p2={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},f2=p2,g2={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},M2=g2,y2={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},H2=y2,C2={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},b2=C2;var E1=O.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
|
+
`,T1=O.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
|
+
`,Z1=O.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: ${i(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: ${i(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: ${i(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: ${i(4)} ${i(8)};
|
|
63
|
+
border-radius: ${i(12)};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
@media (max-width: 500px) {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,w1=O.div`
|
|
70
70
|
position: relative;
|
|
71
71
|
z-index: 2;
|
|
72
72
|
|
|
73
|
-
padding: ${
|
|
74
|
-
border-radius: ${
|
|
75
|
-
margin: ${
|
|
73
|
+
padding: ${i(32)};
|
|
74
|
+
border-radius: ${i(24)};
|
|
75
|
+
margin: ${i(16)};
|
|
76
76
|
|
|
77
77
|
background-color: ${({theme:e})=>e.palette.common.white};
|
|
78
|
-
|
|
78
|
+
`,A1=O.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: ${i(4)} ${i(8)};
|
|
84
84
|
border: none;
|
|
85
|
-
border-radius: ${
|
|
85
|
+
border-radius: ${i(8)};
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
|
|
88
88
|
display: flex;
|
|
89
89
|
align-items: center;
|
|
90
|
-
gap: ${
|
|
90
|
+
gap: ${i(4)};
|
|
91
91
|
|
|
92
92
|
color: ${({theme:e})=>e.palette.common.white};
|
|
93
93
|
|
|
@@ -96,91 +96,91 @@ 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: ${d.green[300]};
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`;import{jsx as
|
|
102
|
+
`;import{jsx as _,jsxs as m1}from"react/jsx-runtime";function y({children:e,whatsapp:a,textoChamativo:r,style:t,paperStyle:n,ilustracao:o}){return m1(E1,{style:t,children:[r&&_(Z1,{children:r}),o&&_(T1,{children:typeof o=="string"?_("img",{src:o,alt:"Logo do sistema"}):o}),_(w1,{style:n,children:e}),a&&m1(A1,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${a}`)},style:{marginBottom:16},children:[m1(x2,{variant:"bodyXS",children:["Com d\xFAvidas? ",z2.format(a.slice(2))]}),_(V2,{icon:X,size:"20px",removeMargin:!0})]})]})}import{Button as S2,LIcon as u1,Typography as B}from"@s_mart/core";import{Checkbox as L2,Form as k2,TextField as J}from"@s_mart/form";import{required as _1}from"@s_mart/rules";import R from"@emotion/styled";var P1=R.div`
|
|
103
103
|
display: grid;
|
|
104
|
-
gap: ${
|
|
105
|
-
|
|
104
|
+
gap: ${i(32)};
|
|
105
|
+
`,$1=R.header`
|
|
106
106
|
display: grid;
|
|
107
107
|
text-align: center;
|
|
108
|
-
gap: ${
|
|
109
|
-
`,
|
|
108
|
+
gap: ${i(16)};
|
|
109
|
+
`,D1=R.div`
|
|
110
110
|
display: grid;
|
|
111
|
-
gap: ${
|
|
112
|
-
`,
|
|
111
|
+
gap: ${i(32)};
|
|
112
|
+
`,R1=R.div`
|
|
113
113
|
display: grid;
|
|
114
|
-
gap: ${
|
|
114
|
+
gap: ${i(4)};
|
|
115
115
|
|
|
116
116
|
> div:first-of-type {
|
|
117
117
|
display: grid;
|
|
118
118
|
grid-template-columns: 1fr 1fr;
|
|
119
|
-
gap: ${
|
|
119
|
+
gap: ${i(16)};
|
|
120
120
|
|
|
121
121
|
@media (max-width: 768px) {
|
|
122
122
|
grid-template-columns: 1fr;
|
|
123
|
-
gap: ${
|
|
123
|
+
gap: ${i(8)};
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
> div:last-of-type {
|
|
128
128
|
display: grid;
|
|
129
|
-
gap: ${
|
|
129
|
+
gap: ${i(4)};
|
|
130
130
|
}
|
|
131
|
-
`,
|
|
131
|
+
`,F1=R.div`
|
|
132
132
|
display: flex;
|
|
133
133
|
flex-wrap: wrap;
|
|
134
|
-
gap: ${
|
|
135
|
-
`,G=
|
|
134
|
+
gap: ${i(8)};
|
|
135
|
+
`,G=R.div`
|
|
136
136
|
display: flex;
|
|
137
137
|
align-items: center;
|
|
138
|
-
gap: ${
|
|
138
|
+
gap: ${i(4)};
|
|
139
139
|
|
|
140
|
-
color: ${
|
|
141
|
-
border: 1px solid ${
|
|
142
|
-
border-radius: ${
|
|
143
|
-
padding: ${
|
|
140
|
+
color: ${d.neutral[600]};
|
|
141
|
+
border: 1px solid ${d.neutral[600]};
|
|
142
|
+
border-radius: ${i(4)};
|
|
143
|
+
padding: ${i(3)} ${i(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: ${d.green[300]};
|
|
150
|
+
border-color: ${d.green[300]};
|
|
151
151
|
`}}
|
|
152
|
-
`;function
|
|
152
|
+
`;function O1(){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)}}import{jsx as u,jsxs as C}from"react/jsx-runtime";function E2({logo:e,nomeSistema:a,onSubmit:r,linkTermosDeUso:t,email:n,nome:o,...v}){let{senhaContemLetra:m,senhaContemNumero:s,senhaContemMinimoDe6Caracteres:q,desabilitarBotaoDeCadastro:g}=O1();return u(y,{...v,children:C(P1,{children:[C($1,{children:[e&&u("div",{children:typeof e=="string"?u("img",{src:e,alt:"Logo do sistema"}):e}),C(B,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",a,"."]})]}),u(k2,{onSubmit:r,defaultValues:{email:n,nome:o,termosDeUso:!1},children:({watch:z})=>{let w=m(z("senha")),A=s(z("senha")),j=q(z("senha"));return C(D1,{children:[u(J,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),u(J,{name:"nome",label:"Nome completo",required:!0,rules:_1}),C(R1,{children:[C("div",{children:[u(J,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:_1}),u(J,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:Y=>{if(!Y)return"Campo obrigat\xF3rio";if(Y!==z("senha"))return"As senhas devem ser iguais"}}})]}),C("div",{children:[u(B,{variant:"bodyXS",children:"Sua senha precisa conter:"}),C(F1,{children:[C(G,{checked:!!w,children:[w&&u(u1,{icon:E,size:"16px",removeMargin:!0}),u(B,{variant:"bodyXS",children:"Uma letra"})]}),C(G,{checked:!!A,children:[A&&u(u1,{icon:E,size:"16px",removeMargin:!0}),u(B,{variant:"bodyXS",children:"Um n\xFAmero"})]}),C(G,{checked:!!j,children:[j&&u(u1,{icon:E,size:"16px",removeMargin:!0}),u(B,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),u("div",{children:u(L2,{name:"termosDeUso",label:C("div",{style:{display:"flex",gap:4},children:[u("span",{children:"Li e aceito os"}),u("a",{href:t,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),u("div",{children:u(S2,{type:"submit",fullWidth:!0,disabled:g(z()),children:"Concluir meu cadastro"})})]})}})]})})}import{useMemo as t3}from"react";import{Button as l0,Indicator as l3,Typography as o3}from"@s_mart/core";import{Checkbox as s3,Form as c3,TextField as o0}from"@s_mart/form";import{composeValidators as h3,required as s0,email as q3}from"@s_mart/rules";import{useEffect as W2,useState as U2}from"react";import ke from"react";import se,{forwardRef as ce,useRef as he,useCallback as qe,useLayoutEffect as ve,useEffect as de,createElement as me,useState as ue,Component as pe,useContext as fe}from"react";import{createPortal as Me}from"react-dom";var N2=q2(G1());var I2="SnackbarContent",He={root:I2+"-root"};var L="SnackbarItem",Ce={contentRoot:L+"-contentRoot",lessPadding:L+"-lessPadding",variantSuccess:L+"-variantSuccess",variantError:L+"-variantError",variantInfo:L+"-variantInfo",variantWarning:L+"-variantWarning",message:L+"-message",action:L+"-action",wrappedRoot:L+"-wrappedRoot"};var P="SnackbarContainer",be={root:P+"-root",rootDense:P+"-rootDense",top:P+"-top",bottom:P+"-bottom",left:P+"-left",right:P+"-right",center:P+"-center"};var Ve=process.env.NODE_ENV!=="production";import C1 from"@emotion/styled";import j2 from"@emotion/styled";import{css as $}from"@emotion/react";import{jsx as Be}from"react/jsx-runtime";import{Fragment as Ie,jsx as We}from"react/jsx-runtime";import{Fragment as je,jsx as Ye,jsxs as Qe}from"react/jsx-runtime";import{useEffect as Xe,useRef as Ge}from"react";import*as h1 from"react";import"@emotion/styled";import{ThemeContext as K2}from"@emotion/react";import*as a0 from"react";import*as V from"react";var J1=()=>{let[e,a]=U2(!1);return W2(()=>{let r=t=>{t.key==="CapsLock"&&a(t.getModifierState("CapsLock"))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[]),e};var Ae=C1.div`
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
155
|
justify-content: space-between;
|
|
156
|
-
gap: ${
|
|
156
|
+
gap: ${i(8)};
|
|
157
157
|
|
|
158
158
|
background-color: white;
|
|
159
159
|
border-radius: 4px;
|
|
160
|
-
padding: ${
|
|
160
|
+
padding: ${i(16)} ${i(16)};
|
|
161
161
|
|
|
162
162
|
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
163
163
|
|
|
164
164
|
border-left: 6px solid
|
|
165
|
-
${({variant:e})=>{switch(e){case"error":return
|
|
165
|
+
${({variant:e})=>{switch(e){case"error":return d.red[300];case"warning":return d.yellow[300];case"info":return d.blue[100];default:case"success":return d.green[300]}}};
|
|
166
166
|
|
|
167
167
|
> div {
|
|
168
168
|
display: flex;
|
|
169
169
|
align-items: center;
|
|
170
|
-
gap: ${
|
|
170
|
+
gap: ${i(8)};
|
|
171
171
|
}
|
|
172
|
-
`,
|
|
172
|
+
`,Pe=C1.div`
|
|
173
173
|
display: flex;
|
|
174
174
|
flex-direction: column;
|
|
175
175
|
justify-content: center;
|
|
176
176
|
|
|
177
177
|
> *:first-of-type {
|
|
178
|
-
margin-bottom: ${
|
|
178
|
+
margin-bottom: ${i(4)};
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
`,$e=C1.div`
|
|
181
181
|
cursor: pointer;
|
|
182
182
|
align-self: flex-start;
|
|
183
|
-
`,
|
|
183
|
+
`,Oe=j2.i`
|
|
184
184
|
align-self: center;
|
|
185
185
|
display: inline-flex;
|
|
186
186
|
color: ${({color:e})=>e};
|
|
@@ -191,23 +191,23 @@ var i2=Object.create;var k1=Object.defineProperty;var t2=Object.getOwnPropertyDe
|
|
|
191
191
|
z-index: 0 !important;
|
|
192
192
|
outline: 0 !important;
|
|
193
193
|
|
|
194
|
-
${({left:e})=>(typeof e=="string"||typeof e=="number"&&e>0)
|
|
194
|
+
${({left:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&$`
|
|
195
195
|
left: ${e};
|
|
196
196
|
`}
|
|
197
197
|
|
|
198
|
-
${({right:e})=>(typeof e=="string"||typeof e=="number"&&e>0)
|
|
198
|
+
${({right:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&$`
|
|
199
199
|
right: ${e};
|
|
200
200
|
`}
|
|
201
201
|
|
|
202
|
-
${({top:e})=>(typeof e=="string"||typeof e=="number"&&e>0)
|
|
202
|
+
${({top:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&$`
|
|
203
203
|
top: ${e};
|
|
204
204
|
`}
|
|
205
205
|
|
|
206
|
-
${({bottom:e})=>(typeof e=="string"||typeof e=="number"&&e>0)
|
|
206
|
+
${({bottom:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&$`
|
|
207
207
|
bottom: ${e};
|
|
208
208
|
`}
|
|
209
209
|
|
|
210
|
-
${({color:e})=>{let a=e;return e==="inherit"&&(a="currentColor")
|
|
210
|
+
${({color:e})=>{let a=e;return e==="inherit"&&(a="currentColor"),$`
|
|
211
211
|
fill: ${a};
|
|
212
212
|
`}}
|
|
213
213
|
position: relative;
|
|
@@ -215,127 +215,127 @@ var i2=Object.create;var k1=Object.defineProperty;var t2=Object.getOwnPropertyDe
|
|
|
215
215
|
height: ${({height:e})=>e} !important;
|
|
216
216
|
width: ${({width:e})=>e} !important;
|
|
217
217
|
|
|
218
|
-
${({removeMargin:e})=>e
|
|
218
|
+
${({removeMargin:e})=>e?$`
|
|
219
219
|
margin: 0;
|
|
220
|
-
|
|
221
|
-
margin: 0 ${
|
|
220
|
+
`:$`
|
|
221
|
+
margin: 0 ${i(4)};
|
|
222
222
|
`}
|
|
223
223
|
}
|
|
224
|
-
`;function
|
|
225
|
-
`));let
|
|
224
|
+
`;function N(){return N=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},N.apply(this,arguments)}var Y2=typeof window<"u"?h1.useLayoutEffect:h1.useEffect,Q2=Y2;function e0(e,a){let r=N({},a);return Object.keys(e).forEach(t=>{if(t.toString().match(/^(components|slots)$/))r[t]=N({},e[t],r[t]);else if(t.toString().match(/^(componentsProps|slotProps)$/)){let n=e[t]||{},o=a[t];r[t]={},!o||!Object.keys(o)?r[t]=n:!n||!Object.keys(n)?r[t]=o:(r[t]=N({},o),Object.keys(n).forEach(v=>{r[t][v]=e0(n[v],o[v])}))}else r[t]===void 0&&(r[t]=e[t])}),r}function X2(e){return Object.keys(e).length===0}function G2(e=null){let a=a0.useContext(K2);return!a||X2(a)?e:a}var J2=G2;function e3(e){let{theme:a,name:r,props:t}=e;return!a||!a.components||!a.components[r]||!a.components[r].defaultProps?t:e0(a.components[r].defaultProps,t)}var a3=Q2;function r3(e,a,r,t,n){let[o,v]=V.useState(()=>n&&r?r(e).matches:t?t(e).matches:a);return a3(()=>{let m=!0;if(!r)return;let s=r(e),q=()=>{m&&v(s.matches)};return q(),s.addListener(q),()=>{m=!1,s.removeListener(q)}},[e,r]),o}var r0=V.useSyncExternalStore;function n3(e,a,r,t,n){let o=V.useCallback(()=>a,[a]),v=V.useMemo(()=>{if(n&&r)return()=>r(e).matches;if(t!==null){let{matches:q}=t(e);return()=>q}return o},[o,e,t,n,r]),[m,s]=V.useMemo(()=>{if(r===null)return[o,()=>()=>{}];let q=r(e);return[()=>q.matches,g=>(q.addListener(g),()=>{q.removeListener(g)})]},[o,r,e]);return r0(s,m,v)}function i3(e,a={}){let r=J2(),t=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:n=!1,matchMedia:o=t?window.matchMedia:null,ssrMatchMedia:v=null,noSsr:m=!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 s=typeof e=="function"?e(r):e;s=s.replace(/^@media( ?)/m,"");let q=(r0!==void 0?n3:r3)(s,n,o,v,m);return process.env.NODE_ENV!=="production"&&V.useDebugValue({query:s,match:q}),q}var T=(e,a)=>i3(e,a);import b1 from"@emotion/styled";var n0=b1.div`
|
|
226
226
|
display: grid;
|
|
227
|
-
gap: ${
|
|
228
|
-
`,
|
|
227
|
+
gap: ${i(32)};
|
|
228
|
+
`,i0=b1.header`
|
|
229
229
|
display: grid;
|
|
230
230
|
text-align: center;
|
|
231
|
-
gap: ${
|
|
232
|
-
`,
|
|
231
|
+
gap: ${i(16)};
|
|
232
|
+
`,t0=b1.div`
|
|
233
233
|
display: grid;
|
|
234
|
-
gap: ${
|
|
234
|
+
gap: ${i(16)};
|
|
235
235
|
|
|
236
236
|
> div {
|
|
237
237
|
display: grid;
|
|
238
|
-
gap: ${
|
|
238
|
+
gap: ${i(16)};
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
> div:last-of-type {
|
|
242
|
-
gap: ${
|
|
242
|
+
gap: ${i(8)};
|
|
243
243
|
}
|
|
244
|
-
`;import{jsx as
|
|
244
|
+
`;import{jsx as b,jsxs as I}from"react/jsx-runtime";function v3({logo:e,initialValues:a,onSubmit:r,onEsqueciMinhaSenha:t,errorLabel:n,...o}){let v=typeof e=="string"?b("img",{src:e,alt:"Logo do sistema"}):e,m=J1(),s=T("(max-width: 500px)"),q=t3(()=>({manterConectado:!1,...a}),[a]);return b(y,{...o,paperStyle:{minWidth:s?void 0:456,width:s?"90%":void 0},children:I(n0,{children:[b(i0,{children:e&&b("div",{children:v})}),b(c3,{onSubmit:r,defaultValues:q,children:I(t0,{children:[I("div",{children:[b(o0,{name:"email",label:"E-mail de acesso",required:!0,rules:h3([s0,q3]),autoComplete:"email",type:"email"}),I("div",{children:[b(o0,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:s0}),m&&b(l3,{severity:"warning",children:"Capslock ativado"}),!!n&&b(o3,{variant:"titleXXS",color:d.red[300],children:n})]})]}),b(s3,{name:"manterConectado",label:"Manter conectado"}),I("div",{children:[b(l0,{type:"submit",fullWidth:!0,children:"Entrar"}),t&&b(l0,{type:"button",fullWidth:!0,variant:"text",onClick:t,children:"Esqueci minha senha"})]})]})})]})})}import{Button as v0,LIcon as d3,Typography as d0}from"@s_mart/core";import c0 from"@emotion/styled";var h0=c0.div`
|
|
245
245
|
display: grid;
|
|
246
|
-
gap: ${
|
|
246
|
+
gap: ${i(32)};
|
|
247
247
|
|
|
248
248
|
> div {
|
|
249
249
|
display: grid;
|
|
250
|
-
gap: ${
|
|
250
|
+
gap: ${i(8)};
|
|
251
251
|
}
|
|
252
|
-
`,
|
|
252
|
+
`,q0=c0.header`
|
|
253
253
|
display: grid;
|
|
254
254
|
text-align: center;
|
|
255
|
-
gap: ${
|
|
256
|
-
`;import{jsx as
|
|
255
|
+
gap: ${i(16)};
|
|
256
|
+
`;import{jsx as Z,jsxs as W}from"react/jsx-runtime";function m3({logo:e,onPrecisoDeAjuda:a,onRealizarAcesso:r,...t}){let n=typeof e=="string"?Z("img",{src:e,alt:"Logo do sistema"}):e,o=T("(max-width: 500px)");return Z(y,{...t,paperStyle:{minWidth:o?void 0:456,width:o?"90%":void 0},children:W(h0,{children:[W("div",{children:[Z(q0,{children:e&&Z("div",{children:n})}),W("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:8,color:d.neutral[800]},children:[Z(d0,{variant:"bodyMD",children:"Parece que este convite j\xE1 foi usado ou expirou."}),Z(d0,{variant:"bodyMD",children:"J\xE1 se cadastrou? Realize o login."})]})]}),W("div",{children:[Z(v0,{fullWidth:!0,onClick:r,children:"Realizar login"}),W(v0,{fullWidth:!0,variant:"text",onClick:a,style:{display:"flex",gap:4,color:d.neutral[900]},children:[Z(d3,{icon:X,size:"20px",removeMargin:!0,color:d.neutral[900]}),"Preciso de outro convite"]})]})]})})}import{Button as u3,Typography as f0}from"@s_mart/core";import m0 from"@emotion/styled";var u0=m0.div`
|
|
257
257
|
display: grid;
|
|
258
|
-
gap: ${
|
|
258
|
+
gap: ${i(32)};
|
|
259
259
|
|
|
260
260
|
> div {
|
|
261
261
|
display: grid;
|
|
262
|
-
gap: ${
|
|
262
|
+
gap: ${i(16)};
|
|
263
263
|
}
|
|
264
|
-
`,
|
|
264
|
+
`,p0=m0.header`
|
|
265
265
|
display: grid;
|
|
266
266
|
text-align: center;
|
|
267
|
-
gap: ${
|
|
268
|
-
`;import{jsx as
|
|
267
|
+
gap: ${i(16)};
|
|
268
|
+
`;import{jsx as D,jsxs as g0}from"react/jsx-runtime";function p3({logo:e,onVoltarParaLogin:a,...r}){let t=typeof e=="string"?D("img",{src:e,alt:"Logo do sistema"}):e,n=T("(max-width: 500px)");return D(y,{...r,paperStyle:{maxWidth:n?void 0:456,width:n?"90%":void 0},children:g0(u0,{children:[g0("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[D(p0,{children:e&&D("div",{children:t})}),D(f0,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),D(f0,{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."})]}),D(u3,{fullWidth:!0,onClick:a,children:"Voltar para login"})]})})}import{Button as f3,LIcon as V1,Typography as U}from"@s_mart/core";import{Form as g3,TextField as x0}from"@s_mart/form";import{required as M3}from"@s_mart/rules";import F from"@emotion/styled";var M0=F.div`
|
|
269
269
|
display: grid;
|
|
270
|
-
gap: ${
|
|
271
|
-
`,
|
|
270
|
+
gap: ${i(32)};
|
|
271
|
+
`,y0=F.header`
|
|
272
272
|
display: grid;
|
|
273
273
|
text-align: center;
|
|
274
|
-
gap: ${
|
|
275
|
-
`,H0=
|
|
274
|
+
gap: ${i(16)};
|
|
275
|
+
`,H0=F.div`
|
|
276
276
|
display: grid;
|
|
277
|
-
gap: ${
|
|
278
|
-
`,C0=
|
|
277
|
+
gap: ${i(32)};
|
|
278
|
+
`,C0=F.div`
|
|
279
279
|
display: grid;
|
|
280
|
-
gap: ${
|
|
280
|
+
gap: ${i(4)};
|
|
281
281
|
|
|
282
282
|
> div:first-of-type {
|
|
283
283
|
display: grid;
|
|
284
284
|
grid-template-columns: 1fr 1fr;
|
|
285
|
-
gap: ${
|
|
285
|
+
gap: ${i(16)};
|
|
286
286
|
|
|
287
287
|
@media (max-width: 768px) {
|
|
288
288
|
grid-template-columns: 1fr;
|
|
289
|
-
gap: ${
|
|
289
|
+
gap: ${i(8)};
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
> div:last-of-type {
|
|
294
294
|
display: grid;
|
|
295
|
-
gap: ${
|
|
295
|
+
gap: ${i(4)};
|
|
296
296
|
}
|
|
297
|
-
`,
|
|
297
|
+
`,b0=F.div`
|
|
298
298
|
display: flex;
|
|
299
299
|
flex-wrap: wrap;
|
|
300
|
-
gap: ${
|
|
301
|
-
`,
|
|
300
|
+
gap: ${i(8)};
|
|
301
|
+
`,q1=F.div`
|
|
302
302
|
display: flex;
|
|
303
303
|
align-items: center;
|
|
304
|
-
gap: ${
|
|
304
|
+
gap: ${i(4)};
|
|
305
305
|
|
|
306
|
-
color: ${
|
|
307
|
-
border: 1px solid ${
|
|
308
|
-
border-radius: ${
|
|
309
|
-
padding: ${
|
|
306
|
+
color: ${d.neutral[600]};
|
|
307
|
+
border: 1px solid ${d.neutral[600]};
|
|
308
|
+
border-radius: ${i(4)};
|
|
309
|
+
padding: ${i(3)} ${i(4)};
|
|
310
310
|
|
|
311
311
|
line-height: 1em;
|
|
312
312
|
vertical-align: middle;
|
|
313
313
|
|
|
314
314
|
${({checked:e})=>{if(e)return`
|
|
315
|
-
color: ${
|
|
316
|
-
border-color: ${
|
|
315
|
+
color: ${d.green[300]};
|
|
316
|
+
border-color: ${d.green[300]};
|
|
317
317
|
`}}
|
|
318
|
-
`;function
|
|
318
|
+
`;function V0(){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)}}import{jsx as f,jsxs as S}from"react/jsx-runtime";function y3({logo:e,onTrocarMinhaSenha:a,...r}){let{senhaContemLetra:t,senhaContemNumero:n,senhaContemMinimoDe6Caracteres:o,desabilitarBotaoDeCadastro:v}=V0();return f(y,{...r,children:S(M0,{children:[S(y0,{children:[e&&f("div",{children:typeof e=="string"?f("img",{src:e,alt:"Logo do sistema"}):e}),f(U,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),f(g3,{onSubmit:a,children:({watch:s})=>{let q=t(s("senha")),g=n(s("senha")),k=o(s("senha"));return S(H0,{children:[S(C0,{children:[S("div",{children:[f(x0,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:M3}),f(x0,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:z=>{if(!z)return"Campo obrigat\xF3rio";if(z!==s("senha"))return"As senhas devem ser iguais"}}})]}),S("div",{children:[f(U,{variant:"bodyXS",children:"Sua senha precisa conter:"}),S(b0,{children:[S(q1,{checked:!!q,children:[q&&f(V1,{icon:E,size:"16px",removeMargin:!0}),f(U,{variant:"bodyXS",children:"Uma letra"})]}),S(q1,{checked:!!g,children:[g&&f(V1,{icon:E,size:"16px",removeMargin:!0}),f(U,{variant:"bodyXS",children:"Um n\xFAmero"})]}),S(q1,{checked:!!k,children:[k&&f(V1,{icon:E,size:"16px",removeMargin:!0}),f(U,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),f("div",{children:f(f3,{type:"submit",fullWidth:!0,disabled:v(s()),children:"Trocar minha senha"})})]})}})]})})}import{Button as k0,Typography as E0}from"@s_mart/core";import x1 from"@emotion/styled";var z0=x1.div`
|
|
319
319
|
display: grid;
|
|
320
|
-
gap: ${
|
|
320
|
+
gap: ${i(32)};
|
|
321
321
|
|
|
322
322
|
> div {
|
|
323
323
|
display: grid;
|
|
324
|
-
gap: ${
|
|
324
|
+
gap: ${i(16)};
|
|
325
325
|
}
|
|
326
|
-
`,
|
|
326
|
+
`,S0=x1.header`
|
|
327
327
|
display: grid;
|
|
328
328
|
text-align: center;
|
|
329
|
-
gap: ${
|
|
330
|
-
`,
|
|
329
|
+
gap: ${i(16)};
|
|
330
|
+
`,L0=x1.div`
|
|
331
331
|
display: grid;
|
|
332
|
-
gap: ${
|
|
332
|
+
gap: ${i(32)};
|
|
333
333
|
|
|
334
334
|
> div:last-of-type {
|
|
335
335
|
display: grid;
|
|
336
|
-
gap: ${
|
|
336
|
+
gap: ${i(16)};
|
|
337
337
|
}
|
|
338
|
-
`;import{Form as H3,TextField as C3}from"@s_mart/form";import{composeValidators as
|
|
338
|
+
`;import{Form as H3,TextField as C3}from"@s_mart/form";import{composeValidators as b3,email as V3,required as x3}from"@s_mart/rules";import{jsx as x,jsxs as v1}from"react/jsx-runtime";function z3({logo:e,onVoltarParaLogin:a,onConfirmar:r,...t}){let n=typeof e=="string"?x("img",{src:e,alt:"Logo do sistema"}):e,o=T("(max-width: 500px)");return x(y,{...t,paperStyle:{minWidth:o?void 0:456,width:o?"90%":void 0},children:v1(z0,{children:[v1("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[x(S0,{children:e&&x("div",{children:n})}),x(E0,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),x(E0,{variant:"bodySM",textAlign:"center",children:"Informe seu e-mail de acesso para receber instru\xE7\xF5es e criar uma nova senha."})]}),x(H3,{onSubmit:r,children:v1(L0,{children:[x("div",{children:x(C3,{name:"email",label:"E-mail de acesso",required:!0,rules:b3([x3,V3]),type:"email"})}),v1("div",{children:[x(k0,{fullWidth:!0,type:"submit",children:"Confirmar"}),x(k0,{fullWidth:!0,onClick:a,variant:"neutral",children:"Voltar para login"})]})]})})]})})}export{E2 as TelaCadastro,m3 as TelaConviteExpirado,z3 as TelaEsqueceuSenha,p3 as TelaInstrucoesEnviadas,v3 as TelaLogin,y3 as TelaNovaSenha,y as TemplateTelaBase};
|
|
339
339
|
/*! Bundled license information:
|
|
340
340
|
|
|
341
341
|
@mui/styled-engine/index.js:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s_mart/telas-de-acesso",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"dist/**"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsup src/index.tsx --minify --format esm
|
|
14
|
-
"dev": "tsup src/index.tsx --format esm
|
|
13
|
+
"build": "tsup src/index.tsx --minify --format esm --dts --external react",
|
|
14
|
+
"dev": "tsup src/index.tsx --format esm --watch --dts --external react",
|
|
15
15
|
"lint": "eslint src/**/*.ts* --fix"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
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
|
-
*/
|