@s_mart/telas-de-acesso 1.0.0 → 1.0.1
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 +123 -77
- package/dist/index.mjs +123 -77
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@media (max-height: 650px) {
|
|
18
18
|
justify-content: flex-start;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`,je=Y.default.div`
|
|
21
21
|
position: absolute;
|
|
22
22
|
left: 0;
|
|
23
23
|
bottom: 32px;
|
|
@@ -26,26 +26,26 @@
|
|
|
26
26
|
@media (max-width: 768px) {
|
|
27
27
|
display: none;
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,Ue=Y.default.h1`
|
|
30
30
|
position: absolute;
|
|
31
31
|
left: 32px;
|
|
32
32
|
top: 32px;
|
|
33
33
|
|
|
34
34
|
color: ${({theme:e})=>e.palette.common.white};
|
|
35
|
-
font-size: ${
|
|
35
|
+
font-size: ${n(32)};
|
|
36
36
|
line-height: 150%;
|
|
37
37
|
font-weight: normal;
|
|
38
38
|
|
|
39
39
|
@media (max-width: 768px) {
|
|
40
40
|
left: 16px;
|
|
41
41
|
top: 16px;
|
|
42
|
-
font-size: ${
|
|
42
|
+
font-size: ${n(24)};
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
@media (max-height: 830px) {
|
|
46
46
|
left: 16px;
|
|
47
47
|
top: 16px;
|
|
48
|
-
font-size: ${
|
|
48
|
+
font-size: ${n(24)};
|
|
49
49
|
|
|
50
50
|
@media (max-width: 768px) {
|
|
51
51
|
display: none;
|
|
@@ -58,35 +58,35 @@
|
|
|
58
58
|
|
|
59
59
|
span {
|
|
60
60
|
background-color: #262626;
|
|
61
|
-
padding: ${
|
|
62
|
-
border-radius: ${
|
|
61
|
+
padding: ${n(4)} ${n(8)};
|
|
62
|
+
border-radius: ${n(12)};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
@media (max-width: 500px) {
|
|
66
66
|
display: none;
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,Ye=Y.default.div`
|
|
69
69
|
position: relative;
|
|
70
70
|
z-index: 2;
|
|
71
71
|
|
|
72
|
-
padding: ${
|
|
73
|
-
border-radius: ${
|
|
74
|
-
margin: ${
|
|
72
|
+
padding: ${n(32)};
|
|
73
|
+
border-radius: ${n(24)};
|
|
74
|
+
margin: ${n(16)};
|
|
75
75
|
|
|
76
76
|
background-color: ${({theme:e})=>e.palette.common.white};
|
|
77
|
-
`,
|
|
77
|
+
`,Ke=Y.default.button`
|
|
78
78
|
position: relative;
|
|
79
79
|
z-index: 2;
|
|
80
80
|
|
|
81
81
|
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
82
|
-
padding: ${
|
|
82
|
+
padding: ${n(4)} ${n(8)};
|
|
83
83
|
border: none;
|
|
84
|
-
border-radius: ${
|
|
84
|
+
border-radius: ${n(8)};
|
|
85
85
|
cursor: pointer;
|
|
86
86
|
|
|
87
87
|
display: flex;
|
|
88
88
|
align-items: center;
|
|
89
|
-
gap: ${
|
|
89
|
+
gap: ${n(4)};
|
|
90
90
|
|
|
91
91
|
color: ${({theme:e})=>e.palette.common.white};
|
|
92
92
|
|
|
@@ -98,48 +98,48 @@
|
|
|
98
98
|
color: ${m.green[300]};
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
`;var
|
|
101
|
+
`;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
102
|
display: grid;
|
|
103
|
-
gap: ${
|
|
104
|
-
`,
|
|
103
|
+
gap: ${n(32)};
|
|
104
|
+
`,nr=V.default.header`
|
|
105
105
|
display: grid;
|
|
106
106
|
text-align: center;
|
|
107
|
-
gap: ${
|
|
108
|
-
`,
|
|
107
|
+
gap: ${n(16)};
|
|
108
|
+
`,ar=V.default.div`
|
|
109
109
|
display: grid;
|
|
110
|
-
gap: ${
|
|
111
|
-
`,
|
|
110
|
+
gap: ${n(32)};
|
|
111
|
+
`,or=V.default.div`
|
|
112
112
|
display: grid;
|
|
113
|
-
gap: ${
|
|
113
|
+
gap: ${n(4)};
|
|
114
114
|
|
|
115
115
|
> div:first-of-type {
|
|
116
116
|
display: grid;
|
|
117
117
|
grid-template-columns: 1fr 1fr;
|
|
118
|
-
gap: ${
|
|
118
|
+
gap: ${n(16)};
|
|
119
119
|
|
|
120
120
|
@media (max-width: 768px) {
|
|
121
121
|
grid-template-columns: 1fr;
|
|
122
|
-
gap: ${
|
|
122
|
+
gap: ${n(8)};
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
> div:last-of-type {
|
|
127
127
|
display: grid;
|
|
128
|
-
gap: ${
|
|
128
|
+
gap: ${n(4)};
|
|
129
129
|
}
|
|
130
|
-
`,
|
|
130
|
+
`,ir=V.default.div`
|
|
131
131
|
display: flex;
|
|
132
132
|
flex-wrap: wrap;
|
|
133
|
-
gap: ${
|
|
134
|
-
`,V
|
|
133
|
+
gap: ${n(8)};
|
|
134
|
+
`,le=V.default.div`
|
|
135
135
|
display: flex;
|
|
136
136
|
align-items: center;
|
|
137
|
-
gap: ${
|
|
137
|
+
gap: ${n(4)};
|
|
138
138
|
|
|
139
139
|
color: ${m.neutral[600]};
|
|
140
140
|
border: 1px solid ${m.neutral[600]};
|
|
141
|
-
border-radius: ${
|
|
142
|
-
padding: ${
|
|
141
|
+
border-radius: ${n(4)};
|
|
142
|
+
padding: ${n(3)} ${n(4)};
|
|
143
143
|
|
|
144
144
|
line-height: 1em;
|
|
145
145
|
vertical-align: middle;
|
|
@@ -148,91 +148,121 @@
|
|
|
148
148
|
color: ${m.green[300]};
|
|
149
149
|
border-color: ${m.green[300]};
|
|
150
150
|
`}}
|
|
151
|
-
`;function
|
|
151
|
+
`;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`
|
|
152
|
+
display: flex;
|
|
153
|
+
align-items: center;
|
|
154
|
+
gap: ${n(16)};
|
|
155
|
+
|
|
156
|
+
background-color: white;
|
|
157
|
+
border-radius: 4px;
|
|
158
|
+
padding: ${n(16)} ${n(24)};
|
|
159
|
+
|
|
160
|
+
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
161
|
+
|
|
162
|
+
border-left: 6px solid
|
|
163
|
+
${({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]}}};
|
|
164
|
+
|
|
165
|
+
> div:first-of-type {
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
gap: ${n(8)};
|
|
169
|
+
}
|
|
170
|
+
`,Vn=xe.default.div`
|
|
171
|
+
display: flex;
|
|
172
|
+
flex-direction: column;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
|
|
175
|
+
> *:first-of-type {
|
|
176
|
+
margin-bottom: ${n(4)};
|
|
177
|
+
}
|
|
178
|
+
`,Wn=xe.default.div`
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
align-self: flex-start;
|
|
181
|
+
`;var Ee=P(require("@emotion/styled"));var Er=Ee.default.div`
|
|
152
182
|
display: grid;
|
|
153
|
-
gap: ${
|
|
154
|
-
`,
|
|
183
|
+
gap: ${n(32)};
|
|
184
|
+
`,Sr=Ee.default.header`
|
|
155
185
|
display: grid;
|
|
156
186
|
text-align: center;
|
|
157
|
-
gap: ${
|
|
158
|
-
`,
|
|
187
|
+
gap: ${n(16)};
|
|
188
|
+
`,Tr=Ee.default.div`
|
|
159
189
|
display: grid;
|
|
160
|
-
gap: ${
|
|
190
|
+
gap: ${n(16)};
|
|
161
191
|
|
|
162
192
|
> div {
|
|
163
193
|
display: grid;
|
|
164
|
-
gap: ${
|
|
194
|
+
gap: ${n(16)};
|
|
165
195
|
}
|
|
166
196
|
|
|
167
197
|
> div:last-of-type {
|
|
168
|
-
gap: ${
|
|
198
|
+
gap: ${n(8)};
|
|
169
199
|
}
|
|
170
|
-
`;var
|
|
200
|
+
`;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
201
|
display: grid;
|
|
172
|
-
gap: ${
|
|
202
|
+
gap: ${n(32)};
|
|
173
203
|
|
|
174
204
|
> div {
|
|
175
205
|
display: grid;
|
|
176
|
-
gap: ${
|
|
206
|
+
gap: ${n(16)};
|
|
177
207
|
}
|
|
178
|
-
|
|
208
|
+
`,$r=Ie.default.header`
|
|
179
209
|
display: grid;
|
|
180
210
|
text-align: center;
|
|
181
|
-
gap: ${
|
|
182
|
-
`;var
|
|
211
|
+
gap: ${n(16)};
|
|
212
|
+
`;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
213
|
display: grid;
|
|
184
|
-
gap: ${
|
|
214
|
+
gap: ${n(32)};
|
|
185
215
|
|
|
186
216
|
> div {
|
|
187
217
|
display: grid;
|
|
188
|
-
gap: ${
|
|
218
|
+
gap: ${n(16)};
|
|
189
219
|
}
|
|
190
|
-
`,
|
|
220
|
+
`,Rr=Fe.default.header`
|
|
191
221
|
display: grid;
|
|
192
222
|
text-align: center;
|
|
193
|
-
gap: ${
|
|
194
|
-
`;var
|
|
223
|
+
gap: ${n(16)};
|
|
224
|
+
`;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
225
|
display: grid;
|
|
196
|
-
gap: ${
|
|
197
|
-
`,
|
|
226
|
+
gap: ${n(32)};
|
|
227
|
+
`,Lr=j.default.header`
|
|
198
228
|
display: grid;
|
|
199
229
|
text-align: center;
|
|
200
|
-
gap: ${
|
|
201
|
-
`,
|
|
230
|
+
gap: ${n(16)};
|
|
231
|
+
`,Dr=j.default.div`
|
|
202
232
|
display: grid;
|
|
203
|
-
gap: ${
|
|
204
|
-
`,
|
|
233
|
+
gap: ${n(32)};
|
|
234
|
+
`,Ir=j.default.div`
|
|
205
235
|
display: grid;
|
|
206
|
-
gap: ${
|
|
236
|
+
gap: ${n(4)};
|
|
207
237
|
|
|
208
238
|
> div:first-of-type {
|
|
209
239
|
display: grid;
|
|
210
240
|
grid-template-columns: 1fr 1fr;
|
|
211
|
-
gap: ${
|
|
241
|
+
gap: ${n(16)};
|
|
212
242
|
|
|
213
243
|
@media (max-width: 768px) {
|
|
214
244
|
grid-template-columns: 1fr;
|
|
215
|
-
gap: ${
|
|
245
|
+
gap: ${n(8)};
|
|
216
246
|
}
|
|
217
247
|
}
|
|
218
248
|
|
|
219
249
|
> div:last-of-type {
|
|
220
250
|
display: grid;
|
|
221
|
-
gap: ${
|
|
251
|
+
gap: ${n(4)};
|
|
222
252
|
}
|
|
223
|
-
`,
|
|
253
|
+
`,Fr=j.default.div`
|
|
224
254
|
display: flex;
|
|
225
255
|
flex-wrap: wrap;
|
|
226
|
-
gap: ${
|
|
227
|
-
`,j
|
|
256
|
+
gap: ${n(8)};
|
|
257
|
+
`,Se=j.default.div`
|
|
228
258
|
display: flex;
|
|
229
259
|
align-items: center;
|
|
230
|
-
gap: ${
|
|
260
|
+
gap: ${n(4)};
|
|
231
261
|
|
|
232
262
|
color: ${m.neutral[600]};
|
|
233
263
|
border: 1px solid ${m.neutral[600]};
|
|
234
|
-
border-radius: ${
|
|
235
|
-
padding: ${
|
|
264
|
+
border-radius: ${n(4)};
|
|
265
|
+
padding: ${n(3)} ${n(4)};
|
|
236
266
|
|
|
237
267
|
line-height: 1em;
|
|
238
268
|
vertical-align: middle;
|
|
@@ -241,24 +271,40 @@
|
|
|
241
271
|
color: ${m.green[300]};
|
|
242
272
|
border-color: ${m.green[300]};
|
|
243
273
|
`}}
|
|
244
|
-
`;function
|
|
274
|
+
`;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
275
|
display: grid;
|
|
246
|
-
gap: ${
|
|
276
|
+
gap: ${n(32)};
|
|
247
277
|
|
|
248
278
|
> div {
|
|
249
279
|
display: grid;
|
|
250
|
-
gap: ${
|
|
280
|
+
gap: ${n(16)};
|
|
251
281
|
}
|
|
252
|
-
`,
|
|
282
|
+
`,zr=we.default.header`
|
|
253
283
|
display: grid;
|
|
254
284
|
text-align: center;
|
|
255
|
-
gap: ${
|
|
256
|
-
`,
|
|
285
|
+
gap: ${n(16)};
|
|
286
|
+
`,Vr=we.default.div`
|
|
257
287
|
display: grid;
|
|
258
|
-
gap: ${
|
|
288
|
+
gap: ${n(32)};
|
|
259
289
|
|
|
260
290
|
> div:last-of-type {
|
|
261
291
|
display: grid;
|
|
262
|
-
gap: ${
|
|
292
|
+
gap: ${n(16)};
|
|
263
293
|
}
|
|
264
|
-
`;var
|
|
294
|
+
`;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});
|
|
295
|
+
/** @license React v16.13.1
|
|
296
|
+
* react-is.development.js
|
|
297
|
+
*
|
|
298
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
299
|
+
*
|
|
300
|
+
* This source code is licensed under the MIT license found in the
|
|
301
|
+
* LICENSE file in the root directory of this source tree.
|
|
302
|
+
*/
|
|
303
|
+
/** @license React v16.13.1
|
|
304
|
+
* react-is.production.min.js
|
|
305
|
+
*
|
|
306
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the MIT license found in the
|
|
309
|
+
* LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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;
|
|
@@ -17,7 +17,7 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
17
17
|
@media (max-height: 650px) {
|
|
18
18
|
justify-content: flex-start;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`,Fe=V.div`
|
|
21
21
|
position: absolute;
|
|
22
22
|
left: 0;
|
|
23
23
|
bottom: 32px;
|
|
@@ -26,26 +26,26 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
26
26
|
@media (max-width: 768px) {
|
|
27
27
|
display: none;
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,Me=V.h1`
|
|
30
30
|
position: absolute;
|
|
31
31
|
left: 32px;
|
|
32
32
|
top: 32px;
|
|
33
33
|
|
|
34
34
|
color: ${({theme:e})=>e.palette.common.white};
|
|
35
|
-
font-size: ${
|
|
35
|
+
font-size: ${n(32)};
|
|
36
36
|
line-height: 150%;
|
|
37
37
|
font-weight: normal;
|
|
38
38
|
|
|
39
39
|
@media (max-width: 768px) {
|
|
40
40
|
left: 16px;
|
|
41
41
|
top: 16px;
|
|
42
|
-
font-size: ${
|
|
42
|
+
font-size: ${n(24)};
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
@media (max-height: 830px) {
|
|
46
46
|
left: 16px;
|
|
47
47
|
top: 16px;
|
|
48
|
-
font-size: ${
|
|
48
|
+
font-size: ${n(24)};
|
|
49
49
|
|
|
50
50
|
@media (max-width: 768px) {
|
|
51
51
|
display: none;
|
|
@@ -58,35 +58,35 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
58
58
|
|
|
59
59
|
span {
|
|
60
60
|
background-color: #262626;
|
|
61
|
-
padding: ${
|
|
62
|
-
border-radius: ${
|
|
61
|
+
padding: ${n(4)} ${n(8)};
|
|
62
|
+
border-radius: ${n(12)};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
@media (max-width: 500px) {
|
|
66
66
|
display: none;
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,Be=V.div`
|
|
69
69
|
position: relative;
|
|
70
70
|
z-index: 2;
|
|
71
71
|
|
|
72
|
-
padding: ${
|
|
73
|
-
border-radius: ${
|
|
74
|
-
margin: ${
|
|
72
|
+
padding: ${n(32)};
|
|
73
|
+
border-radius: ${n(24)};
|
|
74
|
+
margin: ${n(16)};
|
|
75
75
|
|
|
76
76
|
background-color: ${({theme:e})=>e.palette.common.white};
|
|
77
|
-
`,
|
|
77
|
+
`,qe=V.button`
|
|
78
78
|
position: relative;
|
|
79
79
|
z-index: 2;
|
|
80
80
|
|
|
81
81
|
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
82
|
-
padding: ${
|
|
82
|
+
padding: ${n(4)} ${n(8)};
|
|
83
83
|
border: none;
|
|
84
|
-
border-radius: ${
|
|
84
|
+
border-radius: ${n(8)};
|
|
85
85
|
cursor: pointer;
|
|
86
86
|
|
|
87
87
|
display: flex;
|
|
88
88
|
align-items: center;
|
|
89
|
-
gap: ${
|
|
89
|
+
gap: ${n(4)};
|
|
90
90
|
|
|
91
91
|
color: ${({theme:e})=>e.palette.common.white};
|
|
92
92
|
|
|
@@ -98,48 +98,48 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
98
98
|
color: ${p.green[300]};
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
`;import{jsx as
|
|
101
|
+
`;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
102
|
display: grid;
|
|
103
|
-
gap: ${
|
|
104
|
-
`,
|
|
103
|
+
gap: ${n(32)};
|
|
104
|
+
`,Ue=q.header`
|
|
105
105
|
display: grid;
|
|
106
106
|
text-align: center;
|
|
107
|
-
gap: ${
|
|
108
|
-
`,
|
|
107
|
+
gap: ${n(16)};
|
|
108
|
+
`,Ye=q.div`
|
|
109
109
|
display: grid;
|
|
110
|
-
gap: ${
|
|
111
|
-
`,
|
|
110
|
+
gap: ${n(32)};
|
|
111
|
+
`,Ke=q.div`
|
|
112
112
|
display: grid;
|
|
113
|
-
gap: ${
|
|
113
|
+
gap: ${n(4)};
|
|
114
114
|
|
|
115
115
|
> div:first-of-type {
|
|
116
116
|
display: grid;
|
|
117
117
|
grid-template-columns: 1fr 1fr;
|
|
118
|
-
gap: ${
|
|
118
|
+
gap: ${n(16)};
|
|
119
119
|
|
|
120
120
|
@media (max-width: 768px) {
|
|
121
121
|
grid-template-columns: 1fr;
|
|
122
|
-
gap: ${
|
|
122
|
+
gap: ${n(8)};
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
> div:last-of-type {
|
|
127
127
|
display: grid;
|
|
128
|
-
gap: ${
|
|
128
|
+
gap: ${n(4)};
|
|
129
129
|
}
|
|
130
|
-
`,
|
|
130
|
+
`,Xe=q.div`
|
|
131
131
|
display: flex;
|
|
132
132
|
flex-wrap: wrap;
|
|
133
|
-
gap: ${
|
|
134
|
-
`,
|
|
133
|
+
gap: ${n(8)};
|
|
134
|
+
`,ee=q.div`
|
|
135
135
|
display: flex;
|
|
136
136
|
align-items: center;
|
|
137
|
-
gap: ${
|
|
137
|
+
gap: ${n(4)};
|
|
138
138
|
|
|
139
139
|
color: ${p.neutral[600]};
|
|
140
140
|
border: 1px solid ${p.neutral[600]};
|
|
141
|
-
border-radius: ${
|
|
142
|
-
padding: ${
|
|
141
|
+
border-radius: ${n(4)};
|
|
142
|
+
padding: ${n(3)} ${n(4)};
|
|
143
143
|
|
|
144
144
|
line-height: 1em;
|
|
145
145
|
vertical-align: middle;
|
|
@@ -148,91 +148,121 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
148
148
|
color: ${p.green[300]};
|
|
149
149
|
border-color: ${p.green[300]};
|
|
150
150
|
`}}
|
|
151
|
-
`;function
|
|
151
|
+
`;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`
|
|
152
|
+
display: flex;
|
|
153
|
+
align-items: center;
|
|
154
|
+
gap: ${n(16)};
|
|
155
|
+
|
|
156
|
+
background-color: white;
|
|
157
|
+
border-radius: 4px;
|
|
158
|
+
padding: ${n(16)} ${n(24)};
|
|
159
|
+
|
|
160
|
+
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
161
|
+
|
|
162
|
+
border-left: 6px solid
|
|
163
|
+
${({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]}}};
|
|
164
|
+
|
|
165
|
+
> div:first-of-type {
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
gap: ${n(8)};
|
|
169
|
+
}
|
|
170
|
+
`,_a=ke.div`
|
|
171
|
+
display: flex;
|
|
172
|
+
flex-direction: column;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
|
|
175
|
+
> *:first-of-type {
|
|
176
|
+
margin-bottom: ${n(4)};
|
|
177
|
+
}
|
|
178
|
+
`,Na=ke.div`
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
align-self: flex-start;
|
|
181
|
+
`;import $e from"@emotion/styled";var cr=$e.div`
|
|
152
182
|
display: grid;
|
|
153
|
-
gap: ${
|
|
154
|
-
`,
|
|
183
|
+
gap: ${n(32)};
|
|
184
|
+
`,ur=$e.header`
|
|
155
185
|
display: grid;
|
|
156
186
|
text-align: center;
|
|
157
|
-
gap: ${
|
|
158
|
-
`,
|
|
187
|
+
gap: ${n(16)};
|
|
188
|
+
`,dr=$e.div`
|
|
159
189
|
display: grid;
|
|
160
|
-
gap: ${
|
|
190
|
+
gap: ${n(16)};
|
|
161
191
|
|
|
162
192
|
> div {
|
|
163
193
|
display: grid;
|
|
164
|
-
gap: ${
|
|
194
|
+
gap: ${n(16)};
|
|
165
195
|
}
|
|
166
196
|
|
|
167
197
|
> div:last-of-type {
|
|
168
|
-
gap: ${
|
|
198
|
+
gap: ${n(8)};
|
|
169
199
|
}
|
|
170
|
-
`;import{jsx as
|
|
200
|
+
`;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
201
|
display: grid;
|
|
172
|
-
gap: ${
|
|
202
|
+
gap: ${n(32)};
|
|
173
203
|
|
|
174
204
|
> div {
|
|
175
205
|
display: grid;
|
|
176
|
-
gap: ${
|
|
206
|
+
gap: ${n(16)};
|
|
177
207
|
}
|
|
178
|
-
|
|
208
|
+
`,hr=mr.header`
|
|
179
209
|
display: grid;
|
|
180
210
|
text-align: center;
|
|
181
|
-
gap: ${
|
|
182
|
-
`;import{
|
|
211
|
+
gap: ${n(16)};
|
|
212
|
+
`;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
213
|
display: grid;
|
|
184
|
-
gap: ${
|
|
214
|
+
gap: ${n(32)};
|
|
185
215
|
|
|
186
216
|
> div {
|
|
187
217
|
display: grid;
|
|
188
|
-
gap: ${
|
|
218
|
+
gap: ${n(16)};
|
|
189
219
|
}
|
|
190
|
-
`,
|
|
220
|
+
`,xr=Cr.header`
|
|
191
221
|
display: grid;
|
|
192
222
|
text-align: center;
|
|
193
|
-
gap: ${
|
|
194
|
-
`;import{jsx as
|
|
223
|
+
gap: ${n(16)};
|
|
224
|
+
`;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
225
|
display: grid;
|
|
196
|
-
gap: ${
|
|
197
|
-
`,
|
|
226
|
+
gap: ${n(32)};
|
|
227
|
+
`,wr=z.header`
|
|
198
228
|
display: grid;
|
|
199
229
|
text-align: center;
|
|
200
|
-
gap: ${
|
|
201
|
-
`,
|
|
230
|
+
gap: ${n(16)};
|
|
231
|
+
`,kr=z.div`
|
|
202
232
|
display: grid;
|
|
203
|
-
gap: ${
|
|
204
|
-
|
|
233
|
+
gap: ${n(32)};
|
|
234
|
+
`,$r=z.div`
|
|
205
235
|
display: grid;
|
|
206
|
-
gap: ${
|
|
236
|
+
gap: ${n(4)};
|
|
207
237
|
|
|
208
238
|
> div:first-of-type {
|
|
209
239
|
display: grid;
|
|
210
240
|
grid-template-columns: 1fr 1fr;
|
|
211
|
-
gap: ${
|
|
241
|
+
gap: ${n(16)};
|
|
212
242
|
|
|
213
243
|
@media (max-width: 768px) {
|
|
214
244
|
grid-template-columns: 1fr;
|
|
215
|
-
gap: ${
|
|
245
|
+
gap: ${n(8)};
|
|
216
246
|
}
|
|
217
247
|
}
|
|
218
248
|
|
|
219
249
|
> div:last-of-type {
|
|
220
250
|
display: grid;
|
|
221
|
-
gap: ${
|
|
251
|
+
gap: ${n(4)};
|
|
222
252
|
}
|
|
223
|
-
`,
|
|
253
|
+
`,Or=z.div`
|
|
224
254
|
display: flex;
|
|
225
255
|
flex-wrap: wrap;
|
|
226
|
-
gap: ${
|
|
227
|
-
`,
|
|
256
|
+
gap: ${n(8)};
|
|
257
|
+
`,pe=z.div`
|
|
228
258
|
display: flex;
|
|
229
259
|
align-items: center;
|
|
230
|
-
gap: ${
|
|
260
|
+
gap: ${n(4)};
|
|
231
261
|
|
|
232
262
|
color: ${p.neutral[600]};
|
|
233
263
|
border: 1px solid ${p.neutral[600]};
|
|
234
|
-
border-radius: ${
|
|
235
|
-
padding: ${
|
|
264
|
+
border-radius: ${n(4)};
|
|
265
|
+
padding: ${n(3)} ${n(4)};
|
|
236
266
|
|
|
237
267
|
line-height: 1em;
|
|
238
268
|
vertical-align: middle;
|
|
@@ -241,24 +271,40 @@ var _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnProp
|
|
|
241
271
|
color: ${p.green[300]};
|
|
242
272
|
border-color: ${p.green[300]};
|
|
243
273
|
`}}
|
|
244
|
-
`;function
|
|
274
|
+
`;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
275
|
display: grid;
|
|
246
|
-
gap: ${
|
|
276
|
+
gap: ${n(32)};
|
|
247
277
|
|
|
248
278
|
> div {
|
|
249
279
|
display: grid;
|
|
250
|
-
gap: ${
|
|
280
|
+
gap: ${n(16)};
|
|
251
281
|
}
|
|
252
|
-
`,
|
|
282
|
+
`,Rr=Ae.header`
|
|
253
283
|
display: grid;
|
|
254
284
|
text-align: center;
|
|
255
|
-
gap: ${
|
|
256
|
-
`,
|
|
285
|
+
gap: ${n(16)};
|
|
286
|
+
`,_r=Ae.div`
|
|
257
287
|
display: grid;
|
|
258
|
-
gap: ${
|
|
288
|
+
gap: ${n(32)};
|
|
259
289
|
|
|
260
290
|
> div:last-of-type {
|
|
261
291
|
display: grid;
|
|
262
|
-
gap: ${
|
|
292
|
+
gap: ${n(16)};
|
|
263
293
|
}
|
|
264
|
-
`;import{Form as
|
|
294
|
+
`;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};
|
|
295
|
+
/** @license React v16.13.1
|
|
296
|
+
* react-is.development.js
|
|
297
|
+
*
|
|
298
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
299
|
+
*
|
|
300
|
+
* This source code is licensed under the MIT license found in the
|
|
301
|
+
* LICENSE file in the root directory of this source tree.
|
|
302
|
+
*/
|
|
303
|
+
/** @license React v16.13.1
|
|
304
|
+
* react-is.production.min.js
|
|
305
|
+
*
|
|
306
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the MIT license found in the
|
|
309
|
+
* LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/
|