@s_mart/telas-de-acesso 1.0.0 → 1.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.js +124 -77
- package/dist/index.mjs +124 -77
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var gt=Object.create;var Q=Object.defineProperty,yt=Object.defineProperties,Ct=Object.getOwnPropertyDescriptor,bt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertyNames,oe=Object.getOwnPropertySymbols,Et=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable;var ze=(e,r,t)=>r in e?Q(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,S=(e,r)=>{for(var t in r||(r={}))Oe.call(r,t)&&ze(e,t,r[t]);if(oe)for(var t of oe(r))Ve.call(r,t)&&ze(e,t,r[t]);return e},$=(e,r)=>yt(e,bt(r));var O=(e,r)=>{var t={};for(var i in e)Oe.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&oe)for(var i of oe(e))r.indexOf(i)<0&&Ve.call(e,i)&&(t[i]=e[i]);return t};var ie=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),St=(e,r)=>{for(var t in r)Q(e,t,{get:r[t],enumerable:!0})},We=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of xt(r))!Oe.call(e,a)&&a!==t&&Q(e,a,{get:()=>r[a],enumerable:!(i=Ct(r,a))||i.enumerable});return e};var P=(e,r,t)=>(t=e!=null?gt(Et(e)):{},We(r||!e||!e.__esModule?Q(t,"default",{value:e,enumerable:!0}):t,e)),Tt=e=>We(Q({},"__esModule",{value:!0}),e);var ur=ie(c=>{"use strict";var v=typeof Symbol=="function"&&Symbol.for,Pe=v?Symbol.for("react.element"):60103,Ae=v?Symbol.for("react.portal"):60106,ue=v?Symbol.for("react.fragment"):60107,de=v?Symbol.for("react.strict_mode"):60108,pe=v?Symbol.for("react.profiler"):60114,fe=v?Symbol.for("react.provider"):60109,me=v?Symbol.for("react.context"):60110,Re=v?Symbol.for("react.async_mode"):60111,ve=v?Symbol.for("react.concurrent_mode"):60111,he=v?Symbol.for("react.forward_ref"):60112,ge=v?Symbol.for("react.suspense"):60113,Wt=v?Symbol.for("react.suspense_list"):60120,ye=v?Symbol.for("react.memo"):60115,Ce=v?Symbol.for("react.lazy"):60116,Ht=v?Symbol.for("react.block"):60121,jt=v?Symbol.for("react.fundamental"):60117,Ut=v?Symbol.for("react.responder"):60118,Yt=v?Symbol.for("react.scope"):60119;function T(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case Pe:switch(e=e.type,e){case Re:case ve:case ue:case pe:case de:case ge:return e;default:switch(e=e&&e.$$typeof,e){case me:case he:case Ce:case ye:case fe:return e;default:return r}}case Ae:return r}}}function cr(e){return T(e)===ve}c.AsyncMode=Re;c.ConcurrentMode=ve;c.ContextConsumer=me;c.ContextProvider=fe;c.Element=Pe;c.ForwardRef=he;c.Fragment=ue;c.Lazy=Ce;c.Memo=ye;c.Portal=Ae;c.Profiler=pe;c.StrictMode=de;c.Suspense=ge;c.isAsyncMode=function(e){return cr(e)||T(e)===Re};c.isConcurrentMode=cr;c.isContextConsumer=function(e){return T(e)===me};c.isContextProvider=function(e){return T(e)===fe};c.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pe};c.isForwardRef=function(e){return T(e)===he};c.isFragment=function(e){return T(e)===ue};c.isLazy=function(e){return T(e)===Ce};c.isMemo=function(e){return T(e)===ye};c.isPortal=function(e){return T(e)===Ae};c.isProfiler=function(e){return T(e)===pe};c.isStrictMode=function(e){return T(e)===de};c.isSuspense=function(e){return T(e)===ge};c.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ue||e===ve||e===pe||e===de||e===ge||e===Wt||typeof e=="object"&&e!==null&&(e.$$typeof===Ce||e.$$typeof===ye||e.$$typeof===fe||e.$$typeof===me||e.$$typeof===he||e.$$typeof===jt||e.$$typeof===Ut||e.$$typeof===Yt||e.$$typeof===Ht)};c.typeOf=T});var dr=ie(u=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,w=e?Symbol.for("react.concurrent_mode"):60111,L=e?Symbol.for("react.forward_ref"):60112,k=e?Symbol.for("react.suspense"):60113,U=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,z=e?Symbol.for("react.block"):60121,te=e?Symbol.for("react.fundamental"):60117,ne=e?Symbol.for("react.responder"):60118,Hr=e?Symbol.for("react.scope"):60119;function jr(o){return typeof o=="string"||typeof o=="function"||o===i||o===w||o===l||o===a||o===k||o===U||typeof o=="object"&&o!==null&&(o.$$typeof===R||o.$$typeof===x||o.$$typeof===f||o.$$typeof===p||o.$$typeof===L||o.$$typeof===te||o.$$typeof===ne||o.$$typeof===Hr||o.$$typeof===z)}function E(o){if(typeof o=="object"&&o!==null){var $e=o.$$typeof;switch($e){case r:var ae=o.type;switch(ae){case g:case w:case i:case l:case a:case k:return ae;default:var qe=ae&&ae.$$typeof;switch(qe){case p:case L:case R:case x:case f:return qe;default:return $e}}case t:return $e}}}var Ur=g,Yr=w,Kr=p,Xr=f,Zr=r,Qr=L,Gr=i,Jr=R,et=x,rt=t,tt=l,nt=a,at=k,Me=!1;function ot(o){return Me||(Me=!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.")),Be(o)||E(o)===g}function Be(o){return E(o)===w}function it(o){return E(o)===p}function st(o){return E(o)===f}function lt(o){return typeof o=="object"&&o!==null&&o.$$typeof===r}function ct(o){return E(o)===L}function ut(o){return E(o)===i}function dt(o){return E(o)===R}function pt(o){return E(o)===x}function ft(o){return E(o)===t}function mt(o){return E(o)===l}function vt(o){return E(o)===a}function ht(o){return E(o)===k}u.AsyncMode=Ur,u.ConcurrentMode=Yr,u.ContextConsumer=Kr,u.ContextProvider=Xr,u.Element=Zr,u.ForwardRef=Qr,u.Fragment=Gr,u.Lazy=Jr,u.Memo=et,u.Portal=rt,u.Profiler=tt,u.StrictMode=nt,u.Suspense=at,u.isAsyncMode=ot,u.isConcurrentMode=Be,u.isContextConsumer=it,u.isContextProvider=st,u.isElement=lt,u.isForwardRef=ct,u.isFragment=ut,u.isLazy=dt,u.isMemo=pt,u.isPortal=ft,u.isProfiler=mt,u.isStrictMode=vt,u.isSuspense=ht,u.isValidElementType=jr,u.typeOf=E}()});var pr=ie((On,_e)=>{"use strict";process.env.NODE_ENV==="production"?_e.exports=ur():_e.exports=dr()});var Cr=ie((Pn,yr)=>{"use strict";var Ne=pr(),Kt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Zt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Le={};Le[Ne.ForwardRef]=Zt;Le[Ne.Memo]=hr;function fr(e){return Ne.isMemo(e)?hr:Le[e.$$typeof]||Kt}var Qt=Object.defineProperty,Gt=Object.getOwnPropertyNames,mr=Object.getOwnPropertySymbols,Jt=Object.getOwnPropertyDescriptor,en=Object.getPrototypeOf,vr=Object.prototype;function gr(e,r,t){if(typeof r!="string"){if(vr){var i=en(r);i&&i!==vr&&gr(e,i,t)}var a=Gt(r);mr&&(a=a.concat(mr(r)));for(var l=fr(e),f=fr(r),p=0;p<a.length;++p){var g=a[p];if(!Xt[g]&&!(t&&t[g])&&!(f&&f[g])&&!(l&&l[g])){var w=Jt(r,g);try{Qt(e,g,w)}catch(L){}}}}return e}yr.exports=gr});var an={};St(an,{TelaCadastro:()=>lr,TelaConviteExpirado:()=>Pr,TelaEsqueceuSenha:()=>Wr,TelaInstrucoesEnviadas:()=>_r,TelaLogin:()=>wr,TelaNovaSenha:()=>Br,TemplateTelaBase:()=>b});module.exports=Tt(an);var Xe=require("phosphor-react"),Ze=require("@s_mart/core"),Qe=require("@s_mart/masks");var n=e=>`${e/16}rem`;var Y=P(require("@emotion/styled"));var wt=Object.defineProperty,kt=(e,r)=>{for(var t in r)wt(e,t,{get:r[t],enumerable:!0})},m={};kt(m,{blue:()=>Ot,green:()=>_t,neutral:()=>It,red:()=>At,yellow:()=>Lt});var $t={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},Ot=$t,Pt={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},At=Pt,Rt={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},_t=Rt,Nt={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},Lt=Nt,Dt={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},It=Dt;var He=Y.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
5
5
|
justify-content: center;
|
|
6
6
|
overflow: auto;
|
|
7
|
+
overflow-x: hidden;
|
|
7
8
|
|
|
8
9
|
height: 100vh;
|
|
9
10
|
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
@media (max-height: 650px) {
|
|
18
19
|
justify-content: flex-start;
|
|
19
20
|
}
|
|
20
|
-
`,
|
|
21
|
+
`,je=Y.default.div`
|
|
21
22
|
position: absolute;
|
|
22
23
|
left: 0;
|
|
23
24
|
bottom: 32px;
|
|
@@ -26,26 +27,26 @@
|
|
|
26
27
|
@media (max-width: 768px) {
|
|
27
28
|
display: none;
|
|
28
29
|
}
|
|
29
|
-
`,
|
|
30
|
+
`,Ue=Y.default.h1`
|
|
30
31
|
position: absolute;
|
|
31
32
|
left: 32px;
|
|
32
33
|
top: 32px;
|
|
33
34
|
|
|
34
35
|
color: ${({theme:e})=>e.palette.common.white};
|
|
35
|
-
font-size: ${
|
|
36
|
+
font-size: ${n(32)};
|
|
36
37
|
line-height: 150%;
|
|
37
38
|
font-weight: normal;
|
|
38
39
|
|
|
39
40
|
@media (max-width: 768px) {
|
|
40
41
|
left: 16px;
|
|
41
42
|
top: 16px;
|
|
42
|
-
font-size: ${
|
|
43
|
+
font-size: ${n(24)};
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
@media (max-height: 830px) {
|
|
46
47
|
left: 16px;
|
|
47
48
|
top: 16px;
|
|
48
|
-
font-size: ${
|
|
49
|
+
font-size: ${n(24)};
|
|
49
50
|
|
|
50
51
|
@media (max-width: 768px) {
|
|
51
52
|
display: none;
|
|
@@ -58,35 +59,35 @@
|
|
|
58
59
|
|
|
59
60
|
span {
|
|
60
61
|
background-color: #262626;
|
|
61
|
-
padding: ${
|
|
62
|
-
border-radius: ${
|
|
62
|
+
padding: ${n(4)} ${n(8)};
|
|
63
|
+
border-radius: ${n(12)};
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
@media (max-width: 500px) {
|
|
66
67
|
display: none;
|
|
67
68
|
}
|
|
68
|
-
`,
|
|
69
|
+
`,Ye=Y.default.div`
|
|
69
70
|
position: relative;
|
|
70
71
|
z-index: 2;
|
|
71
72
|
|
|
72
|
-
padding: ${
|
|
73
|
-
border-radius: ${
|
|
74
|
-
margin: ${
|
|
73
|
+
padding: ${n(32)};
|
|
74
|
+
border-radius: ${n(24)};
|
|
75
|
+
margin: ${n(16)};
|
|
75
76
|
|
|
76
77
|
background-color: ${({theme:e})=>e.palette.common.white};
|
|
77
|
-
`,
|
|
78
|
+
`,Ke=Y.default.button`
|
|
78
79
|
position: relative;
|
|
79
80
|
z-index: 2;
|
|
80
81
|
|
|
81
82
|
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
82
|
-
padding: ${
|
|
83
|
+
padding: ${n(4)} ${n(8)};
|
|
83
84
|
border: none;
|
|
84
|
-
border-radius: ${
|
|
85
|
+
border-radius: ${n(8)};
|
|
85
86
|
cursor: pointer;
|
|
86
87
|
|
|
87
88
|
display: flex;
|
|
88
89
|
align-items: center;
|
|
89
|
-
gap: ${
|
|
90
|
+
gap: ${n(4)};
|
|
90
91
|
|
|
91
92
|
color: ${({theme:e})=>e.palette.common.white};
|
|
92
93
|
|
|
@@ -98,48 +99,48 @@
|
|
|
98
99
|
color: ${m.green[300]};
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
`;var
|
|
102
|
+
`;var _=require("react/jsx-runtime");function b({children:e,whatsapp:r,textoChamativo:t,style:i,paperStyle:a,ilustracao:l}){return(0,_.jsxs)(He,{style:i,children:[t&&(0,_.jsx)(Ue,{children:t}),l&&(0,_.jsx)(je,{children:typeof l=="string"?(0,_.jsx)("img",{src:l,alt:"Logo do sistema"}):l}),(0,_.jsx)(Ye,{style:a,children:e}),r&&(0,_.jsxs)(Ke,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${r}`)},style:{marginBottom:16},children:[(0,_.jsxs)(Ze.Typography,{variant:"bodyXS",children:["Com d\xFAvidas? ",Qe.telefone.format(r)]}),(0,_.jsx)(Xe.WhatsappLogo,{weight:"fill",size:16})]})]})}var ce=require("phosphor-react"),F=require("@s_mart/core"),M=require("@s_mart/form");var Ft=Object.defineProperty,Mt=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Je=(e,r,t)=>r in e?Ft(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,se=(e,r)=>{for(var t in r||(r={}))qt.call(r,t)&&Je(e,t,r[t]);if(Ge)for(var t of Ge(r))zt.call(r,t)&&Je(e,t,r[t]);return e},Vt=(e,r)=>Mt(e,Bt(r));var er=e=>{let r={validate:{}};return e.forEach(t=>{r=Vt(se(se({},r),t),{validate:se(se({},r.validate),t.validate)})}),r},D={validate:{required:e=>{if(!e)return"Campo obrigat\xF3rio"}}},rr={validate:{email:e=>{if(e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e))return"O email \xE9 inv\xE1lido"}}};var V=P(require("@emotion/styled"));var tr=V.default.div`
|
|
102
103
|
display: grid;
|
|
103
|
-
gap: ${
|
|
104
|
-
`,
|
|
104
|
+
gap: ${n(32)};
|
|
105
|
+
`,nr=V.default.header`
|
|
105
106
|
display: grid;
|
|
106
107
|
text-align: center;
|
|
107
|
-
gap: ${
|
|
108
|
-
`,
|
|
108
|
+
gap: ${n(16)};
|
|
109
|
+
`,ar=V.default.div`
|
|
109
110
|
display: grid;
|
|
110
|
-
gap: ${
|
|
111
|
-
`,
|
|
111
|
+
gap: ${n(32)};
|
|
112
|
+
`,or=V.default.div`
|
|
112
113
|
display: grid;
|
|
113
|
-
gap: ${
|
|
114
|
+
gap: ${n(4)};
|
|
114
115
|
|
|
115
116
|
> div:first-of-type {
|
|
116
117
|
display: grid;
|
|
117
118
|
grid-template-columns: 1fr 1fr;
|
|
118
|
-
gap: ${
|
|
119
|
+
gap: ${n(16)};
|
|
119
120
|
|
|
120
121
|
@media (max-width: 768px) {
|
|
121
122
|
grid-template-columns: 1fr;
|
|
122
|
-
gap: ${
|
|
123
|
+
gap: ${n(8)};
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
> div:last-of-type {
|
|
127
128
|
display: grid;
|
|
128
|
-
gap: ${
|
|
129
|
+
gap: ${n(4)};
|
|
129
130
|
}
|
|
130
|
-
`,
|
|
131
|
+
`,ir=V.default.div`
|
|
131
132
|
display: flex;
|
|
132
133
|
flex-wrap: wrap;
|
|
133
|
-
gap: ${
|
|
134
|
-
`,V
|
|
134
|
+
gap: ${n(8)};
|
|
135
|
+
`,le=V.default.div`
|
|
135
136
|
display: flex;
|
|
136
137
|
align-items: center;
|
|
137
|
-
gap: ${
|
|
138
|
+
gap: ${n(4)};
|
|
138
139
|
|
|
139
140
|
color: ${m.neutral[600]};
|
|
140
141
|
border: 1px solid ${m.neutral[600]};
|
|
141
|
-
border-radius: ${
|
|
142
|
-
padding: ${
|
|
142
|
+
border-radius: ${n(4)};
|
|
143
|
+
padding: ${n(3)} ${n(4)};
|
|
143
144
|
|
|
144
145
|
line-height: 1em;
|
|
145
146
|
vertical-align: middle;
|
|
@@ -148,91 +149,121 @@
|
|
|
148
149
|
color: ${m.green[300]};
|
|
149
150
|
border-color: ${m.green[300]};
|
|
150
151
|
`}}
|
|
151
|
-
`;function
|
|
152
|
+
`;function sr(){let e=a=>a?a.match(/[a-z]/i):!1,r=a=>a?a.match(/[0-9]/i):!1,t=a=>a?a.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:r,senhaContemMinimoDe6Caracteres:t,desabilitarBotaoDeCadastro:a=>!a.email||!a.senha||!a.confirmarSenha||!a.termosDeUso||!e(a.senha)||!r(a.senha)||!t(a.senha)}}var s=require("react/jsx-runtime");function lr(f){var p=f,{logo:e,nomeSistema:r,onSubmit:t,linkTermosDeUso:i,email:a}=p,l=O(p,["logo","nomeSistema","onSubmit","linkTermosDeUso","email"]);let{senhaContemLetra:g,senhaContemNumero:w,senhaContemMinimoDe6Caracteres:L,desabilitarBotaoDeCadastro:k}=sr(),U=typeof e=="string"?(0,s.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,s.jsx)(b,$(S({},l),{children:(0,s.jsxs)(tr,{children:[(0,s.jsxs)(nr,{children:[e&&(0,s.jsx)("div",{children:U}),(0,s.jsxs)(F.Typography,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",r,"."]})]}),(0,s.jsx)(M.Form,{onSubmit:t,defaultValues:{email:a,termosDeUso:!1},children:({watch:x})=>{let R=g(x("senha")),z=w(x("senha")),te=L(x("senha"));return(0,s.jsxs)(ar,{children:[(0,s.jsx)(M.TextField,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),(0,s.jsxs)(or,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(M.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:D}),(0,s.jsx)(M.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:ne=>{if(!ne)return"Campo obrigat\xF3rio";if(ne!==x("senha"))return"As senhas devem ser iguais"}}})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(F.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,s.jsxs)(ir,{children:[(0,s.jsxs)(le,{checked:Boolean(R),children:[R&&(0,s.jsx)(ce.Check,{size:16,weight:"bold"}),(0,s.jsx)(F.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,s.jsxs)(le,{checked:Boolean(z),children:[z&&(0,s.jsx)(ce.Check,{size:16,weight:"bold"}),(0,s.jsx)(F.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,s.jsxs)(le,{checked:Boolean(te),children:[te&&(0,s.jsx)(ce.Check,{size:16,weight:"bold"}),(0,s.jsx)(F.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,s.jsx)("div",{children:(0,s.jsx)(M.Checkbox,{name:"termosDeUso",label:(0,s.jsxs)("div",{style:{display:"flex",gap:4},children:[(0,s.jsx)("span",{children:"Li e aceito os"}),(0,s.jsx)("a",{href:i,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),(0,s.jsx)("div",{children:(0,s.jsx)(F.Button,{type:"submit",fullWidth:!0,disabled:k(x()),children:"Concluir meu cadastro"})})]})}})]})}))}var ee=require("@s_mart/core"),H=require("@s_mart/form");var be=require("react");var G=P(require("react"),1),J=require("phosphor-react");var N=P(require("react")),rn=require("react-dom");var tn=P(Cr());var nn="SnackbarContent",_n={root:nn+"-root"};var I="SnackbarItem",Nn={contentRoot:I+"-contentRoot",lessPadding:I+"-lessPadding",variantSuccess:I+"-variantSuccess",variantError:I+"-variantError",variantInfo:I+"-variantInfo",variantWarning:I+"-variantWarning",message:I+"-message",action:I+"-action",wrappedRoot:I+"-wrappedRoot"};var W="SnackbarContainer",Ln={root:W+"-root",rootDense:W+"-rootDense",top:W+"-top",bottom:W+"-bottom",left:W+"-left",right:W+"-right",center:W+"-center"};var Dn=process.env.NODE_ENV!=="production";var xe=P(require("@emotion/styled"),1);var De=require("react/jsx-runtime"),xr=require("react");var br=()=>{let[e,r]=(0,be.useState)(!1);return(0,be.useEffect)(()=>{let t=i=>{i.key==="CapsLock"&&r(i.getModifierState("CapsLock"))};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[]),e};var B=({defaultValue:e}={})=>{let r=typeof window!="undefined",t=G.default.useCallback(()=>{if(!r){if(e){let{width:f=0,height:p=0}=e;return{width:f,height:p}}return{width:0,height:0}}return{width:window.innerWidth,height:window.innerHeight}},[r,e]),[i,a]=G.default.useState(t()),l=G.default.useCallback(()=>{a(t())},[a,t]);return G.default.useEffect(()=>r?(window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}):()=>{},[l,r]),i},zn=xe.default.div`
|
|
153
|
+
display: flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
gap: ${n(16)};
|
|
156
|
+
|
|
157
|
+
background-color: white;
|
|
158
|
+
border-radius: 4px;
|
|
159
|
+
padding: ${n(16)} ${n(24)};
|
|
160
|
+
|
|
161
|
+
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
162
|
+
|
|
163
|
+
border-left: 6px solid
|
|
164
|
+
${({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]}}};
|
|
165
|
+
|
|
166
|
+
> div:first-of-type {
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
gap: ${n(8)};
|
|
170
|
+
}
|
|
171
|
+
`,Vn=xe.default.div`
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
justify-content: center;
|
|
175
|
+
|
|
176
|
+
> *:first-of-type {
|
|
177
|
+
margin-bottom: ${n(4)};
|
|
178
|
+
}
|
|
179
|
+
`,Wn=xe.default.div`
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
align-self: flex-start;
|
|
182
|
+
`;var Ee=P(require("@emotion/styled"));var Er=Ee.default.div`
|
|
152
183
|
display: grid;
|
|
153
|
-
gap: ${
|
|
154
|
-
`,
|
|
184
|
+
gap: ${n(32)};
|
|
185
|
+
`,Sr=Ee.default.header`
|
|
155
186
|
display: grid;
|
|
156
187
|
text-align: center;
|
|
157
|
-
gap: ${
|
|
158
|
-
`,
|
|
188
|
+
gap: ${n(16)};
|
|
189
|
+
`,Tr=Ee.default.div`
|
|
159
190
|
display: grid;
|
|
160
|
-
gap: ${
|
|
191
|
+
gap: ${n(16)};
|
|
161
192
|
|
|
162
193
|
> div {
|
|
163
194
|
display: grid;
|
|
164
|
-
gap: ${
|
|
195
|
+
gap: ${n(16)};
|
|
165
196
|
}
|
|
166
197
|
|
|
167
198
|
> div:last-of-type {
|
|
168
|
-
gap: ${
|
|
199
|
+
gap: ${n(8)};
|
|
169
200
|
}
|
|
170
|
-
`;var
|
|
201
|
+
`;var h=require("react/jsx-runtime");function wr(l){var f=l,{logo:e,initialValues:r,onSubmit:t,onEsqueciMinhaSenha:i}=f,a=O(f,["logo","initialValues","onSubmit","onEsqueciMinhaSenha"]);let p=typeof e=="string"?(0,h.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:g}=B(),w=br();return(0,h.jsx)(b,$(S({},a),{paperStyle:{minWidth:g>500?456:void 0,width:g>500?void 0:"90%"},children:(0,h.jsxs)(Er,{children:[(0,h.jsx)(Sr,{children:e&&(0,h.jsx)("div",{children:p})}),(0,h.jsx)(H.Form,{onSubmit:t,defaultValues:S({manterConectado:!1},r),children:(0,h.jsxs)(Tr,{children:[(0,h.jsxs)("div",{children:[(0,h.jsx)(H.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:D}),(0,h.jsxs)("div",{children:[(0,h.jsx)(H.TextField,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:D}),w&&(0,h.jsx)(ee.Indicator,{severity:"warning",children:"Capslock ativado"})]})]}),(0,h.jsx)(H.Checkbox,{name:"manterConectado",label:"Manter conectado"}),(0,h.jsxs)("div",{children:[(0,h.jsx)(ee.Button,{type:"submit",fullWidth:!0,children:"Entrar"}),i&&(0,h.jsx)(ee.Button,{type:"button",fullWidth:!0,variant:"text",children:"Esqueci minha senha"})]})]})})]})}))}var Or=require("phosphor-react"),K=require("@s_mart/core");var Ie=P(require("@emotion/styled"));var kr=Ie.default.div`
|
|
171
202
|
display: grid;
|
|
172
|
-
gap: ${
|
|
203
|
+
gap: ${n(32)};
|
|
173
204
|
|
|
174
205
|
> div {
|
|
175
206
|
display: grid;
|
|
176
|
-
gap: ${
|
|
207
|
+
gap: ${n(16)};
|
|
177
208
|
}
|
|
178
|
-
|
|
209
|
+
`,$r=Ie.default.header`
|
|
179
210
|
display: grid;
|
|
180
211
|
text-align: center;
|
|
181
|
-
gap: ${
|
|
182
|
-
`;var
|
|
212
|
+
gap: ${n(16)};
|
|
213
|
+
`;var C=require("react/jsx-runtime");function Pr(a){var l=a,{logo:e,onPrecisoDeAjuda:r,onRealizarAcesso:t}=l,i=O(l,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let f=typeof e=="string"?(0,C.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:p}=B();return(0,C.jsx)(b,$(S({},i),{paperStyle:{minWidth:p>500?456:void 0,width:p>500?void 0:"90%"},children:(0,C.jsxs)(kr,{children:[(0,C.jsxs)("div",{children:[(0,C.jsx)($r,{children:e&&(0,C.jsx)("div",{children:f})}),(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:4},children:[(0,C.jsx)(K.Typography,{variant:"bodyMD",children:"O convite que voc\xEA utilizou, j\xE1 foi usado ou expirou."}),(0,C.jsx)(K.Typography,{variant:"titleSM",children:"Realize o acesso ou solicite um novo convite."})]})]}),(0,C.jsxs)("div",{children:[(0,C.jsx)(K.Button,{fullWidth:!0,onClick:t,children:"Realizar acesso"}),(0,C.jsxs)(K.Button,{fullWidth:!0,variant:"outlined",onClick:r,style:{display:"flex",gap:8},children:[(0,C.jsx)(Or.WhatsappLogo,{size:18,weight:"fill",color:m.green[300]}),"Preciso de ajuda"]})]})]})}))}var re=require("@s_mart/core");var Fe=P(require("@emotion/styled"));var Ar=Fe.default.div`
|
|
183
214
|
display: grid;
|
|
184
|
-
gap: ${
|
|
215
|
+
gap: ${n(32)};
|
|
185
216
|
|
|
186
217
|
> div {
|
|
187
218
|
display: grid;
|
|
188
|
-
gap: ${
|
|
219
|
+
gap: ${n(16)};
|
|
189
220
|
}
|
|
190
|
-
`,
|
|
221
|
+
`,Rr=Fe.default.header`
|
|
191
222
|
display: grid;
|
|
192
223
|
text-align: center;
|
|
193
|
-
gap: ${
|
|
194
|
-
`;var
|
|
224
|
+
gap: ${n(16)};
|
|
225
|
+
`;var A=require("react/jsx-runtime");function _r(i){var a=i,{logo:e,onVoltarParaLogin:r}=a,t=O(a,["logo","onVoltarParaLogin"]);let l=typeof e=="string"?(0,A.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:f}=B();return(0,A.jsx)(b,$(S({},t),{paperStyle:{minWidth:f>500?456:void 0,width:f>500?void 0:"90%"},children:(0,A.jsxs)(Ar,{children:[(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,A.jsx)(Rr,{children:e&&(0,A.jsx)("div",{children:l})}),(0,A.jsx)(re.Typography,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),(0,A.jsx)(re.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,A.jsx)(re.Button,{fullWidth:!0,onClick:r,children:"Voltar para login"})]})}))}var Te=require("phosphor-react"),q=require("@s_mart/core"),X=require("@s_mart/form");var j=P(require("@emotion/styled"));var Nr=j.default.div`
|
|
195
226
|
display: grid;
|
|
196
|
-
gap: ${
|
|
197
|
-
`,
|
|
227
|
+
gap: ${n(32)};
|
|
228
|
+
`,Lr=j.default.header`
|
|
198
229
|
display: grid;
|
|
199
230
|
text-align: center;
|
|
200
|
-
gap: ${
|
|
201
|
-
`,
|
|
231
|
+
gap: ${n(16)};
|
|
232
|
+
`,Dr=j.default.div`
|
|
202
233
|
display: grid;
|
|
203
|
-
gap: ${
|
|
204
|
-
`,
|
|
234
|
+
gap: ${n(32)};
|
|
235
|
+
`,Ir=j.default.div`
|
|
205
236
|
display: grid;
|
|
206
|
-
gap: ${
|
|
237
|
+
gap: ${n(4)};
|
|
207
238
|
|
|
208
239
|
> div:first-of-type {
|
|
209
240
|
display: grid;
|
|
210
241
|
grid-template-columns: 1fr 1fr;
|
|
211
|
-
gap: ${
|
|
242
|
+
gap: ${n(16)};
|
|
212
243
|
|
|
213
244
|
@media (max-width: 768px) {
|
|
214
245
|
grid-template-columns: 1fr;
|
|
215
|
-
gap: ${
|
|
246
|
+
gap: ${n(8)};
|
|
216
247
|
}
|
|
217
248
|
}
|
|
218
249
|
|
|
219
250
|
> div:last-of-type {
|
|
220
251
|
display: grid;
|
|
221
|
-
gap: ${
|
|
252
|
+
gap: ${n(4)};
|
|
222
253
|
}
|
|
223
|
-
`,
|
|
254
|
+
`,Fr=j.default.div`
|
|
224
255
|
display: flex;
|
|
225
256
|
flex-wrap: wrap;
|
|
226
|
-
gap: ${
|
|
227
|
-
`,j
|
|
257
|
+
gap: ${n(8)};
|
|
258
|
+
`,Se=j.default.div`
|
|
228
259
|
display: flex;
|
|
229
260
|
align-items: center;
|
|
230
|
-
gap: ${
|
|
261
|
+
gap: ${n(4)};
|
|
231
262
|
|
|
232
263
|
color: ${m.neutral[600]};
|
|
233
264
|
border: 1px solid ${m.neutral[600]};
|
|
234
|
-
border-radius: ${
|
|
235
|
-
padding: ${
|
|
265
|
+
border-radius: ${n(4)};
|
|
266
|
+
padding: ${n(3)} ${n(4)};
|
|
236
267
|
|
|
237
268
|
line-height: 1em;
|
|
238
269
|
vertical-align: middle;
|
|
@@ -241,24 +272,40 @@
|
|
|
241
272
|
color: ${m.green[300]};
|
|
242
273
|
border-color: ${m.green[300]};
|
|
243
274
|
`}}
|
|
244
|
-
`;function
|
|
275
|
+
`;function Mr(){let e=a=>a?a.match(/[a-z]/i):!1,r=a=>a?a.match(/[0-9]/i):!1,t=a=>a?a.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:r,senhaContemMinimoDe6Caracteres:t,desabilitarBotaoDeCadastro:a=>!a.email||!a.senha||!a.confirmarSenha||!e(a.senha)||!r(a.senha)||!t(a.senha)}}var d=require("react/jsx-runtime");function Br(a){var l=a,{logo:e,onTrocarMinhaSenha:r,email:t}=l,i=O(l,["logo","onTrocarMinhaSenha","email"]);let{senhaContemLetra:f,senhaContemNumero:p,senhaContemMinimoDe6Caracteres:g,desabilitarBotaoDeCadastro:w}=Mr(),L=typeof e=="string"?(0,d.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,d.jsx)(b,$(S({},i),{children:(0,d.jsxs)(Nr,{children:[(0,d.jsxs)(Lr,{children:[e&&(0,d.jsx)("div",{children:L}),(0,d.jsx)(q.Typography,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),(0,d.jsx)(X.Form,{onSubmit:r,defaultValues:{email:t},children:({watch:k})=>{let U=f(k("senha")),x=p(k("senha")),R=g(k("senha"));return(0,d.jsxs)(Dr,{children:[(0,d.jsx)(X.TextField,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),(0,d.jsxs)(Ir,{children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(X.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:D}),(0,d.jsx)(X.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:z=>{if(!z)return"Campo obrigat\xF3rio";if(z!==k("senha"))return"As senhas devem ser iguais"}}})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(q.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,d.jsxs)(Fr,{children:[(0,d.jsxs)(Se,{checked:Boolean(U),children:[U&&(0,d.jsx)(Te.Check,{size:16,weight:"bold"}),(0,d.jsx)(q.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,d.jsxs)(Se,{checked:Boolean(x),children:[x&&(0,d.jsx)(Te.Check,{size:16,weight:"bold"}),(0,d.jsx)(q.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,d.jsxs)(Se,{checked:Boolean(R),children:[R&&(0,d.jsx)(Te.Check,{size:16,weight:"bold"}),(0,d.jsx)(q.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,d.jsx)("div",{children:(0,d.jsx)(q.Button,{type:"submit",fullWidth:!0,disabled:w(k()),children:"Trocar minha senha"})})]})}})]})}))}var Z=require("@s_mart/core");var we=P(require("@emotion/styled"));var qr=we.default.div`
|
|
245
276
|
display: grid;
|
|
246
|
-
gap: ${
|
|
277
|
+
gap: ${n(32)};
|
|
247
278
|
|
|
248
279
|
> div {
|
|
249
280
|
display: grid;
|
|
250
|
-
gap: ${
|
|
281
|
+
gap: ${n(16)};
|
|
251
282
|
}
|
|
252
|
-
`,
|
|
283
|
+
`,zr=we.default.header`
|
|
253
284
|
display: grid;
|
|
254
285
|
text-align: center;
|
|
255
|
-
gap: ${
|
|
256
|
-
`,
|
|
286
|
+
gap: ${n(16)};
|
|
287
|
+
`,Vr=we.default.div`
|
|
257
288
|
display: grid;
|
|
258
|
-
gap: ${
|
|
289
|
+
gap: ${n(32)};
|
|
259
290
|
|
|
260
291
|
> div:last-of-type {
|
|
261
292
|
display: grid;
|
|
262
|
-
gap: ${
|
|
293
|
+
gap: ${n(16)};
|
|
263
294
|
}
|
|
264
|
-
`;var
|
|
295
|
+
`;var ke=require("@s_mart/form");var y=require("react/jsx-runtime");function Wr(a){var l=a,{logo:e,onVoltarParaLogin:r,onConfirmar:t}=l,i=O(l,["logo","onVoltarParaLogin","onConfirmar"]);let f=typeof e=="string"?(0,y.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:p}=B();return(0,y.jsx)(b,$(S({},i),{paperStyle:{minWidth:p>500?456:void 0,width:p>500?void 0:"90%"},children:(0,y.jsxs)(qr,{children:[(0,y.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,y.jsx)(zr,{children:e&&(0,y.jsx)("div",{children:f})}),(0,y.jsx)(Z.Typography,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),(0,y.jsx)(Z.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)(ke.Form,{onSubmit:t,children:(0,y.jsxs)(Vr,{children:[(0,y.jsx)("div",{children:(0,y.jsx)(ke.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:er([D,rr])})}),(0,y.jsxs)("div",{children:[(0,y.jsx)(Z.Button,{fullWidth:!0,type:"submit",children:"Confirmar"}),(0,y.jsx)(Z.Button,{fullWidth:!0,onClick:r,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}0&&(module.exports={TelaCadastro,TelaConviteExpirado,TelaEsqueceuSenha,TelaInstrucoesEnviadas,TelaLogin,TelaNovaSenha,TemplateTelaBase});
|
|
296
|
+
/** @license React v16.13.1
|
|
297
|
+
* react-is.development.js
|
|
298
|
+
*
|
|
299
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
300
|
+
*
|
|
301
|
+
* This source code is licensed under the MIT license found in the
|
|
302
|
+
* LICENSE file in the root directory of this source tree.
|
|
303
|
+
*/
|
|
304
|
+
/** @license React v16.13.1
|
|
305
|
+
* react-is.production.min.js
|
|
306
|
+
*
|
|
307
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
308
|
+
*
|
|
309
|
+
* This source code is licensed under the MIT license found in the
|
|
310
|
+
* LICENSE file in the root directory of this source tree.
|
|
311
|
+
*/
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var lt=Object.create;var ve=Object.defineProperty,ct=Object.defineProperties,ut=Object.getOwnPropertyDescriptor,dt=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ft=Object.getPrototypeOf,he=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var Le=(e,r,t)=>r in e?ve(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,C=(e,r)=>{for(var t in r||(r={}))he.call(r,t)&&Le(e,t,r[t]);if(Q)for(var t of Q(r))De.call(r,t)&&Le(e,t,r[t]);return e},T=(e,r)=>ct(e,dt(r));var w=(e,r)=>{var t={};for(var i in e)he.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&Q)for(var i of Q(e))r.indexOf(i)<0&&De.call(e,i)&&(t[i]=e[i]);return t};var G=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var mt=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of pt(r))!he.call(e,a)&&a!==t&&ve(e,a,{get:()=>r[a],enumerable:!(i=ut(r,a))||i.enumerable});return e};var vt=(e,r,t)=>(t=e!=null?lt(ft(e)):{},mt(r||!e||!e.__esModule?ve(t,"default",{value:e,enumerable:!0}):t,e));var Ge=G(l=>{"use strict";var m=typeof Symbol=="function"&&Symbol.for,be=m?Symbol.for("react.element"):60103,xe=m?Symbol.for("react.portal"):60106,re=m?Symbol.for("react.fragment"):60107,te=m?Symbol.for("react.strict_mode"):60108,ne=m?Symbol.for("react.profiler"):60114,ae=m?Symbol.for("react.provider"):60109,oe=m?Symbol.for("react.context"):60110,Ee=m?Symbol.for("react.async_mode"):60111,ie=m?Symbol.for("react.concurrent_mode"):60111,se=m?Symbol.for("react.forward_ref"):60112,le=m?Symbol.for("react.suspense"):60113,zt=m?Symbol.for("react.suspense_list"):60120,ce=m?Symbol.for("react.memo"):60115,ue=m?Symbol.for("react.lazy"):60116,Vt=m?Symbol.for("react.block"):60121,Wt=m?Symbol.for("react.fundamental"):60117,Ht=m?Symbol.for("react.responder"):60118,jt=m?Symbol.for("react.scope"):60119;function x(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case be:switch(e=e.type,e){case Ee:case ie:case re:case ne:case te:case le:return e;default:switch(e=e&&e.$$typeof,e){case oe:case se:case ue:case ce:case ae:return e;default:return r}}case xe:return r}}}function Qe(e){return x(e)===ie}l.AsyncMode=Ee;l.ConcurrentMode=ie;l.ContextConsumer=oe;l.ContextProvider=ae;l.Element=be;l.ForwardRef=se;l.Fragment=re;l.Lazy=ue;l.Memo=ce;l.Portal=xe;l.Profiler=ne;l.StrictMode=te;l.Suspense=le;l.isAsyncMode=function(e){return Qe(e)||x(e)===Ee};l.isConcurrentMode=Qe;l.isContextConsumer=function(e){return x(e)===oe};l.isContextProvider=function(e){return x(e)===ae};l.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===be};l.isForwardRef=function(e){return x(e)===se};l.isFragment=function(e){return x(e)===re};l.isLazy=function(e){return x(e)===ue};l.isMemo=function(e){return x(e)===ce};l.isPortal=function(e){return x(e)===xe};l.isProfiler=function(e){return x(e)===ne};l.isStrictMode=function(e){return x(e)===te};l.isSuspense=function(e){return x(e)===le};l.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===re||e===ie||e===ne||e===te||e===le||e===zt||typeof e=="object"&&e!==null&&(e.$$typeof===ue||e.$$typeof===ce||e.$$typeof===ae||e.$$typeof===oe||e.$$typeof===se||e.$$typeof===Wt||e.$$typeof===Ht||e.$$typeof===jt||e.$$typeof===Vt)};l.typeOf=x});var Je=G(c=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,v=e?Symbol.for("react.async_mode"):60111,E=e?Symbol.for("react.concurrent_mode"):60111,R=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,B=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,P=e?Symbol.for("react.lazy"):60116,I=e?Symbol.for("react.block"):60121,K=e?Symbol.for("react.fundamental"):60117,X=e?Symbol.for("react.responder"):60118,Dr=e?Symbol.for("react.scope"):60119;function Ir(o){return typeof o=="string"||typeof o=="function"||o===i||o===E||o===s||o===a||o===S||o===B||typeof o=="object"&&o!==null&&(o.$$typeof===P||o.$$typeof===g||o.$$typeof===d||o.$$typeof===u||o.$$typeof===R||o.$$typeof===K||o.$$typeof===X||o.$$typeof===Dr||o.$$typeof===I)}function y(o){if(typeof o=="object"&&o!==null){var me=o.$$typeof;switch(me){case r:var Z=o.type;switch(Z){case v:case E:case i:case s:case a:case S:return Z;default:var Ne=Z&&Z.$$typeof;switch(Ne){case u:case R:case P:case g:case d:return Ne;default:return me}}case t:return me}}}var Fr=v,Mr=E,Br=u,qr=d,zr=r,Vr=R,Wr=i,Hr=P,jr=g,Ur=t,Yr=s,Kr=a,Xr=S,Re=!1;function Zr(o){return Re||(Re=!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.")),_e(o)||y(o)===v}function _e(o){return y(o)===E}function Qr(o){return y(o)===u}function Gr(o){return y(o)===d}function Jr(o){return typeof o=="object"&&o!==null&&o.$$typeof===r}function et(o){return y(o)===R}function rt(o){return y(o)===i}function tt(o){return y(o)===P}function nt(o){return y(o)===g}function at(o){return y(o)===t}function ot(o){return y(o)===s}function it(o){return y(o)===a}function st(o){return y(o)===S}c.AsyncMode=Fr,c.ConcurrentMode=Mr,c.ContextConsumer=Br,c.ContextProvider=qr,c.Element=zr,c.ForwardRef=Vr,c.Fragment=Wr,c.Lazy=Hr,c.Memo=jr,c.Portal=Ur,c.Profiler=Yr,c.StrictMode=Kr,c.Suspense=Xr,c.isAsyncMode=Zr,c.isConcurrentMode=_e,c.isContextConsumer=Qr,c.isContextProvider=Gr,c.isElement=Jr,c.isForwardRef=et,c.isFragment=rt,c.isLazy=tt,c.isMemo=nt,c.isPortal=at,c.isProfiler=ot,c.isStrictMode=it,c.isSuspense=st,c.isValidElementType=Ir,c.typeOf=y}()});var er=G((Zn,Se)=>{"use strict";process.env.NODE_ENV==="production"?Se.exports=Ge():Se.exports=Je()});var sr=G((Qn,ir)=>{"use strict";var Te=er(),Ut={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Yt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Kt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ar={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},we={};we[Te.ForwardRef]=Kt;we[Te.Memo]=ar;function rr(e){return Te.isMemo(e)?ar:we[e.$$typeof]||Ut}var Xt=Object.defineProperty,Zt=Object.getOwnPropertyNames,tr=Object.getOwnPropertySymbols,Qt=Object.getOwnPropertyDescriptor,Gt=Object.getPrototypeOf,nr=Object.prototype;function or(e,r,t){if(typeof r!="string"){if(nr){var i=Gt(r);i&&i!==nr&&or(e,i,t)}var a=Zt(r);tr&&(a=a.concat(tr(r)));for(var s=rr(e),d=rr(r),u=0;u<a.length;++u){var v=a[u];if(!Yt[v]&&!(t&&t[v])&&!(d&&d[v])&&!(s&&s[v])){var E=Qt(r,v);try{Xt(e,v,E)}catch(R){}}}}return e}ir.exports=or});import{WhatsappLogo as Ot}from"phosphor-react";import{Typography as Pt}from"@s_mart/core";import{telefone as At}from"@s_mart/masks";var n=e=>`${e/16}rem`;import V from"@emotion/styled";var ht=Object.defineProperty,gt=(e,r)=>{for(var t in r)ht(e,t,{get:r[t],enumerable:!0})},p={};gt(p,{blue:()=>Ct,green:()=>St,neutral:()=>$t,red:()=>xt,yellow:()=>wt});var yt={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},Ct=yt,bt={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},xt=bt,Et={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},St=Et,Tt={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},wt=Tt,kt={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},$t=kt;var Ie=V.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
5
5
|
justify-content: center;
|
|
6
6
|
overflow: auto;
|
|
7
|
+
overflow-x: hidden;
|
|
7
8
|
|
|
8
9
|
height: 100vh;
|
|
9
10
|
|
|
@@ -17,7 +18,7 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
17
18
|
@media (max-height: 650px) {
|
|
18
19
|
justify-content: flex-start;
|
|
19
20
|
}
|
|
20
|
-
`,
|
|
21
|
+
`,Fe=V.div`
|
|
21
22
|
position: absolute;
|
|
22
23
|
left: 0;
|
|
23
24
|
bottom: 32px;
|
|
@@ -26,26 +27,26 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
26
27
|
@media (max-width: 768px) {
|
|
27
28
|
display: none;
|
|
28
29
|
}
|
|
29
|
-
`,
|
|
30
|
+
`,Me=V.h1`
|
|
30
31
|
position: absolute;
|
|
31
32
|
left: 32px;
|
|
32
33
|
top: 32px;
|
|
33
34
|
|
|
34
35
|
color: ${({theme:e})=>e.palette.common.white};
|
|
35
|
-
font-size: ${
|
|
36
|
+
font-size: ${n(32)};
|
|
36
37
|
line-height: 150%;
|
|
37
38
|
font-weight: normal;
|
|
38
39
|
|
|
39
40
|
@media (max-width: 768px) {
|
|
40
41
|
left: 16px;
|
|
41
42
|
top: 16px;
|
|
42
|
-
font-size: ${
|
|
43
|
+
font-size: ${n(24)};
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
@media (max-height: 830px) {
|
|
46
47
|
left: 16px;
|
|
47
48
|
top: 16px;
|
|
48
|
-
font-size: ${
|
|
49
|
+
font-size: ${n(24)};
|
|
49
50
|
|
|
50
51
|
@media (max-width: 768px) {
|
|
51
52
|
display: none;
|
|
@@ -58,35 +59,35 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
58
59
|
|
|
59
60
|
span {
|
|
60
61
|
background-color: #262626;
|
|
61
|
-
padding: ${
|
|
62
|
-
border-radius: ${
|
|
62
|
+
padding: ${n(4)} ${n(8)};
|
|
63
|
+
border-radius: ${n(12)};
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
@media (max-width: 500px) {
|
|
66
67
|
display: none;
|
|
67
68
|
}
|
|
68
|
-
`,
|
|
69
|
+
`,Be=V.div`
|
|
69
70
|
position: relative;
|
|
70
71
|
z-index: 2;
|
|
71
72
|
|
|
72
|
-
padding: ${
|
|
73
|
-
border-radius: ${
|
|
74
|
-
margin: ${
|
|
73
|
+
padding: ${n(32)};
|
|
74
|
+
border-radius: ${n(24)};
|
|
75
|
+
margin: ${n(16)};
|
|
75
76
|
|
|
76
77
|
background-color: ${({theme:e})=>e.palette.common.white};
|
|
77
|
-
`,
|
|
78
|
+
`,qe=V.button`
|
|
78
79
|
position: relative;
|
|
79
80
|
z-index: 2;
|
|
80
81
|
|
|
81
82
|
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
82
|
-
padding: ${
|
|
83
|
+
padding: ${n(4)} ${n(8)};
|
|
83
84
|
border: none;
|
|
84
|
-
border-radius: ${
|
|
85
|
+
border-radius: ${n(8)};
|
|
85
86
|
cursor: pointer;
|
|
86
87
|
|
|
87
88
|
display: flex;
|
|
88
89
|
align-items: center;
|
|
89
|
-
gap: ${
|
|
90
|
+
gap: ${n(4)};
|
|
90
91
|
|
|
91
92
|
color: ${({theme:e})=>e.palette.common.white};
|
|
92
93
|
|
|
@@ -98,48 +99,48 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
98
99
|
color: ${p.green[300]};
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
`;import{jsx as
|
|
102
|
+
`;import{jsx as W,jsxs as ge}from"react/jsx-runtime";function b({children:e,whatsapp:r,textoChamativo:t,style:i,paperStyle:a,ilustracao:s}){return ge(Ie,{style:i,children:[t&&W(Me,{children:t}),s&&W(Fe,{children:typeof s=="string"?W("img",{src:s,alt:"Logo do sistema"}):s}),W(Be,{style:a,children:e}),r&&ge(qe,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${r}`)},style:{marginBottom:16},children:[ge(Pt,{variant:"bodyXS",children:["Com d\xFAvidas? ",At.format(r)]}),W(Ot,{weight:"fill",size:16})]})]})}import{Check as ye}from"phosphor-react";import{Button as Ft,Typography as H}from"@s_mart/core";import{Checkbox as Mt,Form as Bt,TextField as Ce}from"@s_mart/form";var Rt=Object.defineProperty,_t=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Ve=(e,r,t)=>r in e?Rt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,J=(e,r)=>{for(var t in r||(r={}))Lt.call(r,t)&&Ve(e,t,r[t]);if(ze)for(var t of ze(r))Dt.call(r,t)&&Ve(e,t,r[t]);return e},It=(e,r)=>_t(e,Nt(r));var We=e=>{let r={validate:{}};return e.forEach(t=>{r=It(J(J({},r),t),{validate:J(J({},r.validate),t.validate)})}),r},_={validate:{required:e=>{if(!e)return"Campo obrigat\xF3rio"}}},He={validate:{email:e=>{if(e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e))return"O email \xE9 inv\xE1lido"}}};import q from"@emotion/styled";var je=q.div`
|
|
102
103
|
display: grid;
|
|
103
|
-
gap: ${
|
|
104
|
-
`,
|
|
104
|
+
gap: ${n(32)};
|
|
105
|
+
`,Ue=q.header`
|
|
105
106
|
display: grid;
|
|
106
107
|
text-align: center;
|
|
107
|
-
gap: ${
|
|
108
|
-
`,
|
|
108
|
+
gap: ${n(16)};
|
|
109
|
+
`,Ye=q.div`
|
|
109
110
|
display: grid;
|
|
110
|
-
gap: ${
|
|
111
|
-
`,
|
|
111
|
+
gap: ${n(32)};
|
|
112
|
+
`,Ke=q.div`
|
|
112
113
|
display: grid;
|
|
113
|
-
gap: ${
|
|
114
|
+
gap: ${n(4)};
|
|
114
115
|
|
|
115
116
|
> div:first-of-type {
|
|
116
117
|
display: grid;
|
|
117
118
|
grid-template-columns: 1fr 1fr;
|
|
118
|
-
gap: ${
|
|
119
|
+
gap: ${n(16)};
|
|
119
120
|
|
|
120
121
|
@media (max-width: 768px) {
|
|
121
122
|
grid-template-columns: 1fr;
|
|
122
|
-
gap: ${
|
|
123
|
+
gap: ${n(8)};
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
> div:last-of-type {
|
|
127
128
|
display: grid;
|
|
128
|
-
gap: ${
|
|
129
|
+
gap: ${n(4)};
|
|
129
130
|
}
|
|
130
|
-
`,
|
|
131
|
+
`,Xe=q.div`
|
|
131
132
|
display: flex;
|
|
132
133
|
flex-wrap: wrap;
|
|
133
|
-
gap: ${
|
|
134
|
-
`,
|
|
134
|
+
gap: ${n(8)};
|
|
135
|
+
`,ee=q.div`
|
|
135
136
|
display: flex;
|
|
136
137
|
align-items: center;
|
|
137
|
-
gap: ${
|
|
138
|
+
gap: ${n(4)};
|
|
138
139
|
|
|
139
140
|
color: ${p.neutral[600]};
|
|
140
141
|
border: 1px solid ${p.neutral[600]};
|
|
141
|
-
border-radius: ${
|
|
142
|
-
padding: ${
|
|
142
|
+
border-radius: ${n(4)};
|
|
143
|
+
padding: ${n(3)} ${n(4)};
|
|
143
144
|
|
|
144
145
|
line-height: 1em;
|
|
145
146
|
vertical-align: middle;
|
|
@@ -148,91 +149,121 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
148
149
|
color: ${p.green[300]};
|
|
149
150
|
border-color: ${p.green[300]};
|
|
150
151
|
`}}
|
|
151
|
-
`;function
|
|
152
|
+
`;function Ze(){let e=a=>a?a.match(/[a-z]/i):!1,r=a=>a?a.match(/[0-9]/i):!1,t=a=>a?a.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:r,senhaContemMinimoDe6Caracteres:t,desabilitarBotaoDeCadastro:a=>!a.email||!a.senha||!a.confirmarSenha||!a.termosDeUso||!e(a.senha)||!r(a.senha)||!t(a.senha)}}import{jsx as f,jsxs as k}from"react/jsx-runtime";function qt(d){var u=d,{logo:e,nomeSistema:r,onSubmit:t,linkTermosDeUso:i,email:a}=u,s=w(u,["logo","nomeSistema","onSubmit","linkTermosDeUso","email"]);let{senhaContemLetra:v,senhaContemNumero:E,senhaContemMinimoDe6Caracteres:R,desabilitarBotaoDeCadastro:S}=Ze(),B=typeof e=="string"?f("img",{src:e,alt:"Logo do sistema"}):e;return f(b,T(C({},s),{children:k(je,{children:[k(Ue,{children:[e&&f("div",{children:B}),k(H,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",r,"."]})]}),f(Bt,{onSubmit:t,defaultValues:{email:a,termosDeUso:!1},children:({watch:g})=>{let P=v(g("senha")),I=E(g("senha")),K=R(g("senha"));return k(Ye,{children:[f(Ce,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),k(Ke,{children:[k("div",{children:[f(Ce,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:_}),f(Ce,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:X=>{if(!X)return"Campo obrigat\xF3rio";if(X!==g("senha"))return"As senhas devem ser iguais"}}})]}),k("div",{children:[f(H,{variant:"bodyXS",children:"Sua senha precisa conter:"}),k(Xe,{children:[k(ee,{checked:Boolean(P),children:[P&&f(ye,{size:16,weight:"bold"}),f(H,{variant:"bodyXS",children:"Uma letra"})]}),k(ee,{checked:Boolean(I),children:[I&&f(ye,{size:16,weight:"bold"}),f(H,{variant:"bodyXS",children:"Um n\xFAmero"})]}),k(ee,{checked:Boolean(K),children:[K&&f(ye,{size:16,weight:"bold"}),f(H,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),f("div",{children:f(Mt,{name:"termosDeUso",label:k("div",{style:{display:"flex",gap:4},children:[f("span",{children:"Li e aceito os"}),f("a",{href:i,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),f("div",{children:f(Ft,{type:"submit",fullWidth:!0,disabled:S(g()),children:"Concluir meu cadastro"})})]})}})]})}))}import{Button as pr,Indicator as nn}from"@s_mart/core";import{Checkbox as an,Form as on,TextField as fr}from"@s_mart/form";import{useEffect as rn,useState as tn}from"react";import de from"react";import{Warning as Ea,Info as Sa,CheckCircle as Ta,WarningOctagon as wa,X as ka}from"phosphor-react";import ea,{forwardRef as ra,useRef as ta,useCallback as na,useLayoutEffect as aa,useEffect as oa,createElement as ia,useState as sa,Component as la,useContext as ca}from"react";import{createPortal as da}from"react-dom";var Jt=vt(sr());var en="SnackbarContent",fa={root:en+"-root"};var N="SnackbarItem",ma={contentRoot:N+"-contentRoot",lessPadding:N+"-lessPadding",variantSuccess:N+"-variantSuccess",variantError:N+"-variantError",variantInfo:N+"-variantInfo",variantWarning:N+"-variantWarning",message:N+"-message",action:N+"-action",wrappedRoot:N+"-wrappedRoot"};var F="SnackbarContainer",va={root:F+"-root",rootDense:F+"-rootDense",top:F+"-top",bottom:F+"-bottom",left:F+"-left",right:F+"-right",center:F+"-center"};var ha=process.env.NODE_ENV!=="production";import ke from"@emotion/styled";import{Fragment as Da,jsx as Ia,jsxs as Fa}from"react/jsx-runtime";import{useEffect as Ba,useRef as qa}from"react";var lr=()=>{let[e,r]=tn(!1);return rn(()=>{let t=i=>{i.key==="CapsLock"&&r(i.getModifierState("CapsLock"))};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[]),e};var L=({defaultValue:e}={})=>{let r=typeof window!="undefined",t=de.useCallback(()=>{if(!r){if(e){let{width:d=0,height:u=0}=e;return{width:d,height:u}}return{width:0,height:0}}return{width:window.innerWidth,height:window.innerHeight}},[r,e]),[i,a]=de.useState(t()),s=de.useCallback(()=>{a(t())},[a,t]);return de.useEffect(()=>r?(window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}):()=>{},[s,r]),i},Ra=ke.div`
|
|
153
|
+
display: flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
gap: ${n(16)};
|
|
156
|
+
|
|
157
|
+
background-color: white;
|
|
158
|
+
border-radius: 4px;
|
|
159
|
+
padding: ${n(16)} ${n(24)};
|
|
160
|
+
|
|
161
|
+
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
162
|
+
|
|
163
|
+
border-left: 6px solid
|
|
164
|
+
${({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]}}};
|
|
165
|
+
|
|
166
|
+
> div:first-of-type {
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
gap: ${n(8)};
|
|
170
|
+
}
|
|
171
|
+
`,_a=ke.div`
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
justify-content: center;
|
|
175
|
+
|
|
176
|
+
> *:first-of-type {
|
|
177
|
+
margin-bottom: ${n(4)};
|
|
178
|
+
}
|
|
179
|
+
`,Na=ke.div`
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
align-self: flex-start;
|
|
182
|
+
`;import $e from"@emotion/styled";var cr=$e.div`
|
|
152
183
|
display: grid;
|
|
153
|
-
gap: ${
|
|
154
|
-
`,
|
|
184
|
+
gap: ${n(32)};
|
|
185
|
+
`,ur=$e.header`
|
|
155
186
|
display: grid;
|
|
156
187
|
text-align: center;
|
|
157
|
-
gap: ${
|
|
158
|
-
`,
|
|
188
|
+
gap: ${n(16)};
|
|
189
|
+
`,dr=$e.div`
|
|
159
190
|
display: grid;
|
|
160
|
-
gap: ${
|
|
191
|
+
gap: ${n(16)};
|
|
161
192
|
|
|
162
193
|
> div {
|
|
163
194
|
display: grid;
|
|
164
|
-
gap: ${
|
|
195
|
+
gap: ${n(16)};
|
|
165
196
|
}
|
|
166
197
|
|
|
167
198
|
> div:last-of-type {
|
|
168
|
-
gap: ${
|
|
199
|
+
gap: ${n(8)};
|
|
169
200
|
}
|
|
170
|
-
`;import{jsx as
|
|
201
|
+
`;import{jsx as $,jsxs as j}from"react/jsx-runtime";function sn(s){var d=s,{logo:e,initialValues:r,onSubmit:t,onEsqueciMinhaSenha:i}=d,a=w(d,["logo","initialValues","onSubmit","onEsqueciMinhaSenha"]);let u=typeof e=="string"?$("img",{src:e,alt:"Logo do sistema"}):e,{width:v}=L(),E=lr();return $(b,T(C({},a),{paperStyle:{minWidth:v>500?456:void 0,width:v>500?void 0:"90%"},children:j(cr,{children:[$(ur,{children:e&&$("div",{children:u})}),$(on,{onSubmit:t,defaultValues:C({manterConectado:!1},r),children:j(dr,{children:[j("div",{children:[$(fr,{name:"email",label:"E-mail de acesso",required:!0,rules:_}),j("div",{children:[$(fr,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:_}),E&&$(nn,{severity:"warning",children:"Capslock ativado"})]})]}),$(an,{name:"manterConectado",label:"Manter conectado"}),j("div",{children:[$(pr,{type:"submit",fullWidth:!0,children:"Entrar"}),i&&$(pr,{type:"button",fullWidth:!0,variant:"text",children:"Esqueci minha senha"})]})]})})]})}))}import{WhatsappLogo as ln}from"phosphor-react";import{Button as gr,Typography as yr}from"@s_mart/core";import mr from"@emotion/styled";var vr=mr.div`
|
|
171
202
|
display: grid;
|
|
172
|
-
gap: ${
|
|
203
|
+
gap: ${n(32)};
|
|
173
204
|
|
|
174
205
|
> div {
|
|
175
206
|
display: grid;
|
|
176
|
-
gap: ${
|
|
207
|
+
gap: ${n(16)};
|
|
177
208
|
}
|
|
178
|
-
|
|
209
|
+
`,hr=mr.header`
|
|
179
210
|
display: grid;
|
|
180
211
|
text-align: center;
|
|
181
|
-
gap: ${
|
|
182
|
-
`;import{
|
|
212
|
+
gap: ${n(16)};
|
|
213
|
+
`;import{jsx as D,jsxs as U}from"react/jsx-runtime";function cn(a){var s=a,{logo:e,onPrecisoDeAjuda:r,onRealizarAcesso:t}=s,i=w(s,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let d=typeof e=="string"?D("img",{src:e,alt:"Logo do sistema"}):e,{width:u}=L();return D(b,T(C({},i),{paperStyle:{minWidth:u>500?456:void 0,width:u>500?void 0:"90%"},children:U(vr,{children:[U("div",{children:[D(hr,{children:e&&D("div",{children:d})}),U("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:4},children:[D(yr,{variant:"bodyMD",children:"O convite que voc\xEA utilizou, j\xE1 foi usado ou expirou."}),D(yr,{variant:"titleSM",children:"Realize o acesso ou solicite um novo convite."})]})]}),U("div",{children:[D(gr,{fullWidth:!0,onClick:t,children:"Realizar acesso"}),U(gr,{fullWidth:!0,variant:"outlined",onClick:r,style:{display:"flex",gap:8},children:[D(ln,{size:18,weight:"fill",color:p.green[300]}),"Preciso de ajuda"]})]})]})}))}import{Button as un,Typography as Er}from"@s_mart/core";import Cr from"@emotion/styled";var br=Cr.div`
|
|
183
214
|
display: grid;
|
|
184
|
-
gap: ${
|
|
215
|
+
gap: ${n(32)};
|
|
185
216
|
|
|
186
217
|
> div {
|
|
187
218
|
display: grid;
|
|
188
|
-
gap: ${
|
|
219
|
+
gap: ${n(16)};
|
|
189
220
|
}
|
|
190
|
-
`,
|
|
221
|
+
`,xr=Cr.header`
|
|
191
222
|
display: grid;
|
|
192
223
|
text-align: center;
|
|
193
|
-
gap: ${
|
|
194
|
-
`;import{jsx as
|
|
224
|
+
gap: ${n(16)};
|
|
225
|
+
`;import{jsx as M,jsxs as Sr}from"react/jsx-runtime";function dn(i){var a=i,{logo:e,onVoltarParaLogin:r}=a,t=w(a,["logo","onVoltarParaLogin"]);let s=typeof e=="string"?M("img",{src:e,alt:"Logo do sistema"}):e,{width:d}=L();return M(b,T(C({},t),{paperStyle:{minWidth:d>500?456:void 0,width:d>500?void 0:"90%"},children:Sr(br,{children:[Sr("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[M(xr,{children:e&&M("div",{children:s})}),M(Er,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),M(Er,{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."})]}),M(un,{fullWidth:!0,onClick:r,children:"Voltar para login"})]})}))}import{Check as Oe}from"phosphor-react";import{Button as pn,Typography as Y}from"@s_mart/core";import{Form as fn,TextField as Pe}from"@s_mart/form";import z from"@emotion/styled";var Tr=z.div`
|
|
195
226
|
display: grid;
|
|
196
|
-
gap: ${
|
|
197
|
-
`,
|
|
227
|
+
gap: ${n(32)};
|
|
228
|
+
`,wr=z.header`
|
|
198
229
|
display: grid;
|
|
199
230
|
text-align: center;
|
|
200
|
-
gap: ${
|
|
201
|
-
`,
|
|
231
|
+
gap: ${n(16)};
|
|
232
|
+
`,kr=z.div`
|
|
202
233
|
display: grid;
|
|
203
|
-
gap: ${
|
|
204
|
-
|
|
234
|
+
gap: ${n(32)};
|
|
235
|
+
`,$r=z.div`
|
|
205
236
|
display: grid;
|
|
206
|
-
gap: ${
|
|
237
|
+
gap: ${n(4)};
|
|
207
238
|
|
|
208
239
|
> div:first-of-type {
|
|
209
240
|
display: grid;
|
|
210
241
|
grid-template-columns: 1fr 1fr;
|
|
211
|
-
gap: ${
|
|
242
|
+
gap: ${n(16)};
|
|
212
243
|
|
|
213
244
|
@media (max-width: 768px) {
|
|
214
245
|
grid-template-columns: 1fr;
|
|
215
|
-
gap: ${
|
|
246
|
+
gap: ${n(8)};
|
|
216
247
|
}
|
|
217
248
|
}
|
|
218
249
|
|
|
219
250
|
> div:last-of-type {
|
|
220
251
|
display: grid;
|
|
221
|
-
gap: ${
|
|
252
|
+
gap: ${n(4)};
|
|
222
253
|
}
|
|
223
|
-
`,
|
|
254
|
+
`,Or=z.div`
|
|
224
255
|
display: flex;
|
|
225
256
|
flex-wrap: wrap;
|
|
226
|
-
gap: ${
|
|
227
|
-
`,
|
|
257
|
+
gap: ${n(8)};
|
|
258
|
+
`,pe=z.div`
|
|
228
259
|
display: flex;
|
|
229
260
|
align-items: center;
|
|
230
|
-
gap: ${
|
|
261
|
+
gap: ${n(4)};
|
|
231
262
|
|
|
232
263
|
color: ${p.neutral[600]};
|
|
233
264
|
border: 1px solid ${p.neutral[600]};
|
|
234
|
-
border-radius: ${
|
|
235
|
-
padding: ${
|
|
265
|
+
border-radius: ${n(4)};
|
|
266
|
+
padding: ${n(3)} ${n(4)};
|
|
236
267
|
|
|
237
268
|
line-height: 1em;
|
|
238
269
|
vertical-align: middle;
|
|
@@ -241,24 +272,40 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
241
272
|
color: ${p.green[300]};
|
|
242
273
|
border-color: ${p.green[300]};
|
|
243
274
|
`}}
|
|
244
|
-
`;function
|
|
275
|
+
`;function Pr(){let e=a=>a?a.match(/[a-z]/i):!1,r=a=>a?a.match(/[0-9]/i):!1,t=a=>a?a.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:r,senhaContemMinimoDe6Caracteres:t,desabilitarBotaoDeCadastro:a=>!a.email||!a.senha||!a.confirmarSenha||!e(a.senha)||!r(a.senha)||!t(a.senha)}}import{jsx as h,jsxs as A}from"react/jsx-runtime";function mn(a){var s=a,{logo:e,onTrocarMinhaSenha:r,email:t}=s,i=w(s,["logo","onTrocarMinhaSenha","email"]);let{senhaContemLetra:d,senhaContemNumero:u,senhaContemMinimoDe6Caracteres:v,desabilitarBotaoDeCadastro:E}=Pr(),R=typeof e=="string"?h("img",{src:e,alt:"Logo do sistema"}):e;return h(b,T(C({},i),{children:A(Tr,{children:[A(wr,{children:[e&&h("div",{children:R}),h(Y,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),h(fn,{onSubmit:r,defaultValues:{email:t},children:({watch:S})=>{let B=d(S("senha")),g=u(S("senha")),P=v(S("senha"));return A(kr,{children:[h(Pe,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),A($r,{children:[A("div",{children:[h(Pe,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:_}),h(Pe,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:I=>{if(!I)return"Campo obrigat\xF3rio";if(I!==S("senha"))return"As senhas devem ser iguais"}}})]}),A("div",{children:[h(Y,{variant:"bodyXS",children:"Sua senha precisa conter:"}),A(Or,{children:[A(pe,{checked:Boolean(B),children:[B&&h(Oe,{size:16,weight:"bold"}),h(Y,{variant:"bodyXS",children:"Uma letra"})]}),A(pe,{checked:Boolean(g),children:[g&&h(Oe,{size:16,weight:"bold"}),h(Y,{variant:"bodyXS",children:"Um n\xFAmero"})]}),A(pe,{checked:Boolean(P),children:[P&&h(Oe,{size:16,weight:"bold"}),h(Y,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),h("div",{children:h(pn,{type:"submit",fullWidth:!0,disabled:E(S()),children:"Trocar minha senha"})})]})}})]})}))}import{Button as Nr,Typography as Lr}from"@s_mart/core";import Ae from"@emotion/styled";var Ar=Ae.div`
|
|
245
276
|
display: grid;
|
|
246
|
-
gap: ${
|
|
277
|
+
gap: ${n(32)};
|
|
247
278
|
|
|
248
279
|
> div {
|
|
249
280
|
display: grid;
|
|
250
|
-
gap: ${
|
|
281
|
+
gap: ${n(16)};
|
|
251
282
|
}
|
|
252
|
-
`,
|
|
283
|
+
`,Rr=Ae.header`
|
|
253
284
|
display: grid;
|
|
254
285
|
text-align: center;
|
|
255
|
-
gap: ${
|
|
256
|
-
`,
|
|
286
|
+
gap: ${n(16)};
|
|
287
|
+
`,_r=Ae.div`
|
|
257
288
|
display: grid;
|
|
258
|
-
gap: ${
|
|
289
|
+
gap: ${n(32)};
|
|
259
290
|
|
|
260
291
|
> div:last-of-type {
|
|
261
292
|
display: grid;
|
|
262
|
-
gap: ${
|
|
293
|
+
gap: ${n(16)};
|
|
263
294
|
}
|
|
264
|
-
`;import{Form as
|
|
295
|
+
`;import{Form as vn,TextField as hn}from"@s_mart/form";import{jsx as O,jsxs as fe}from"react/jsx-runtime";function gn(a){var s=a,{logo:e,onVoltarParaLogin:r,onConfirmar:t}=s,i=w(s,["logo","onVoltarParaLogin","onConfirmar"]);let d=typeof e=="string"?O("img",{src:e,alt:"Logo do sistema"}):e,{width:u}=L();return O(b,T(C({},i),{paperStyle:{minWidth:u>500?456:void 0,width:u>500?void 0:"90%"},children:fe(Ar,{children:[fe("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[O(Rr,{children:e&&O("div",{children:d})}),O(Lr,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),O(Lr,{variant:"bodySM",textAlign:"center",children:"Informe seu e-mail de acesso para receber instru\xE7\xF5es e criar uma nova senha."})]}),O(vn,{onSubmit:t,children:fe(_r,{children:[O("div",{children:O(hn,{name:"email",label:"E-mail de acesso",required:!0,rules:We([_,He])})}),fe("div",{children:[O(Nr,{fullWidth:!0,type:"submit",children:"Confirmar"}),O(Nr,{fullWidth:!0,onClick:r,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}export{qt as TelaCadastro,cn as TelaConviteExpirado,gn as TelaEsqueceuSenha,dn as TelaInstrucoesEnviadas,sn as TelaLogin,mn as TelaNovaSenha,b as TemplateTelaBase};
|
|
296
|
+
/** @license React v16.13.1
|
|
297
|
+
* react-is.development.js
|
|
298
|
+
*
|
|
299
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
300
|
+
*
|
|
301
|
+
* This source code is licensed under the MIT license found in the
|
|
302
|
+
* LICENSE file in the root directory of this source tree.
|
|
303
|
+
*/
|
|
304
|
+
/** @license React v16.13.1
|
|
305
|
+
* react-is.production.min.js
|
|
306
|
+
*
|
|
307
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
308
|
+
*
|
|
309
|
+
* This source code is licensed under the MIT license found in the
|
|
310
|
+
* LICENSE file in the root directory of this source tree.
|
|
311
|
+
*/
|