@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.
Files changed (3) hide show
  1. package/dist/index.js +124 -77
  2. package/dist/index.mjs +124 -77
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,9 +1,10 @@
1
- "use strict";var Ze=Object.create;var O=Object.defineProperty,Qe=Object.defineProperties,Je=Object.getOwnPropertyDescriptor,Ge=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertyNames,W=Object.getOwnPropertySymbols,Ye=Object.getPrototypeOf,K=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var oe=(e,a,r)=>a in e?O(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,f=(e,a)=>{for(var r in a||(a={}))K.call(a,r)&&oe(e,r,a[r]);if(W)for(var r of W(a))ie.call(a,r)&&oe(e,r,a[r]);return e},g=(e,a)=>Qe(e,Ge(a));var h=(e,a)=>{var r={};for(var s in e)K.call(e,s)&&a.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&W)for(var s of W(e))a.indexOf(s)<0&&ie.call(e,s)&&(r[s]=e[s]);return r};var ea=(e,a)=>{for(var r in a)O(e,r,{get:a[r],enumerable:!0})},ne=(e,a,r,s)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of Ke(a))!K.call(e,o)&&o!==r&&O(e,o,{get:()=>a[o],enumerable:!(s=Je(a,o))||s.enumerable});return e};var F=(e,a,r)=>(r=e!=null?Ze(Ye(e)):{},ne(a||!e||!e.__esModule?O(r,"default",{value:e,enumerable:!0}):r,e)),aa=e=>ne(O({},"__esModule",{value:!0}),e);var xa={};ea(xa,{TelaCadastro:()=>Be,TelaConviteExpirado:()=>Le,TelaEsqueceuSenha:()=>Xe,TelaInstrucoesEnviadas:()=>ke,TelaLogin:()=>Pe,TelaNovaSenha:()=>_e,TemplateTelaBase:()=>c});module.exports=aa(xa);var ue=require("phosphor-react"),ce=require("@s_mart/core"),fe=require("@s_mart/masks");var t=e=>`${e/16}rem`;var D=F(require("@emotion/styled"));var ra=Object.defineProperty,ta=(e,a)=>{for(var r in a)ra(e,r,{get:a[r],enumerable:!0})},m={};ta(m,{blue:()=>ia,green:()=>pa,neutral:()=>ca,red:()=>sa,yellow:()=>ma});var oa={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},ia=oa,na={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},sa=na,la={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},pa=la,da={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},ma=da,ua={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},ca=ua;var se=D.default.div`
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
- `,le=D.default.div`
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
- `,pe=D.default.h1`
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: ${t(32)};
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: ${t(24)};
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: ${t(24)};
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: ${t(4)} ${t(8)};
62
- border-radius: ${t(12)};
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
- `,de=D.default.div`
69
+ `,Ye=Y.default.div`
69
70
  position: relative;
70
71
  z-index: 2;
71
72
 
72
- padding: ${t(32)};
73
- border-radius: ${t(24)};
74
- margin: ${t(16)};
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
- `,me=D.default.button`
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: ${t(4)} ${t(8)};
83
+ padding: ${n(4)} ${n(8)};
83
84
  border: none;
84
- border-radius: ${t(8)};
85
+ border-radius: ${n(8)};
85
86
  cursor: pointer;
86
87
 
87
88
  display: flex;
88
89
  align-items: center;
89
- gap: ${t(4)};
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 C=require("react/jsx-runtime");function c({children:e,whatsapp:a,textoChamativo:r,style:s,paperStyle:o,ilustracao:l}){return(0,C.jsxs)(se,{style:s,children:[r&&(0,C.jsx)(pe,{children:r}),l&&(0,C.jsx)(le,{children:typeof l=="string"?(0,C.jsx)("img",{src:l,alt:"Logo do sistema"}):l}),(0,C.jsx)(de,{style:o,children:e}),a&&(0,C.jsxs)(me,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${a}`)},style:{marginBottom:16},children:[(0,C.jsxs)(ce.Typography,{variant:"bodyXS",children:["Com d\xFAvidas? ",fe.telefone.format(a)]}),(0,C.jsx)(ue.WhatsappLogo,{weight:"fill",size:16})]})]})}var _=require("phosphor-react"),b=require("@s_mart/core"),S=require("@s_mart/form");var fa=Object.defineProperty,ga=Object.defineProperties,ha=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,va=Object.prototype.hasOwnProperty,ya=Object.prototype.propertyIsEnumerable,he=(e,a,r)=>a in e?fa(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,H=(e,a)=>{for(var r in a||(a={}))va.call(a,r)&&he(e,r,a[r]);if(ge)for(var r of ge(a))ya.call(a,r)&&he(e,r,a[r]);return e},Ca=(e,a)=>ga(e,ha(a));var ve=e=>{let a={validate:{}};return e.forEach(r=>{a=Ca(H(H({},a),r),{validate:H(H({},a.validate),r.validate)})}),a},x={validate:{required:e=>{if(!e)return"Campo obrigat\xF3rio"}}},ye={validate:{email:e=>{if(e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e))return"O email \xE9 inv\xE1lido"}}};var q=F(require("@emotion/styled"));var Ce=q.default.div`
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: ${t(32)};
104
- `,xe=q.default.header`
104
+ gap: ${n(32)};
105
+ `,nr=V.default.header`
105
106
  display: grid;
106
107
  text-align: center;
107
- gap: ${t(16)};
108
- `,Te=q.default.div`
108
+ gap: ${n(16)};
109
+ `,ar=V.default.div`
109
110
  display: grid;
110
- gap: ${t(32)};
111
- `,be=q.default.div`
111
+ gap: ${n(32)};
112
+ `,or=V.default.div`
112
113
  display: grid;
113
- gap: ${t(4)};
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: ${t(16)};
119
+ gap: ${n(16)};
119
120
 
120
121
  @media (max-width: 768px) {
121
122
  grid-template-columns: 1fr;
122
- gap: ${t(8)};
123
+ gap: ${n(8)};
123
124
  }
124
125
  }
125
126
 
126
127
  > div:last-of-type {
127
128
  display: grid;
128
- gap: ${t(4)};
129
+ gap: ${n(4)};
129
130
  }
130
- `,Se=q.default.div`
131
+ `,ir=V.default.div`
131
132
  display: flex;
132
133
  flex-wrap: wrap;
133
- gap: ${t(8)};
134
- `,V=q.default.div`
134
+ gap: ${n(8)};
135
+ `,le=V.default.div`
135
136
  display: flex;
136
137
  align-items: center;
137
- gap: ${t(4)};
138
+ gap: ${n(4)};
138
139
 
139
140
  color: ${m.neutral[600]};
140
141
  border: 1px solid ${m.neutral[600]};
141
- border-radius: ${t(4)};
142
- padding: ${t(3)} ${t(4)};
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 $e(){let e=o=>o?o.match(/[a-z]/i):!1,a=o=>o?o.match(/[0-9]/i):!1,r=o=>o?o.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:o=>!o.email||!o.senha||!o.confirmarSenha||!o.termosDeUso||!e(o.senha)||!a(o.senha)||!r(o.senha)}}var i=require("react/jsx-runtime");function Be(y){var B=y,{logo:e,nomeSistema:a,onSubmit:r,linkTermosDeUso:s,email:o}=B,l=h(B,["logo","nomeSistema","onSubmit","linkTermosDeUso","email"]);let{senhaContemLetra:Q,senhaContemNumero:J,senhaContemMinimoDe6Caracteres:G,desabilitarBotaoDeCadastro:E}=$e(),I=typeof e=="string"?(0,i.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,i.jsx)(c,g(f({},l),{children:(0,i.jsxs)(Ce,{children:[(0,i.jsxs)(xe,{children:[e&&(0,i.jsx)("div",{children:I}),(0,i.jsxs)(b.Typography,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",a,"."]})]}),(0,i.jsx)(S.Form,{onSubmit:r,defaultValues:{email:o,termosDeUso:!1},children:({watch:T})=>{let N=Q(T("senha")),k=J(T("senha")),re=G(T("senha"));return(0,i.jsxs)(Te,{children:[(0,i.jsx)(S.TextField,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),(0,i.jsxs)(be,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(S.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:x}),(0,i.jsx)(S.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:te=>{if(!te)return"Campo obrigat\xF3rio";if(te!==T("senha"))return"As senhas devem ser iguais"}}})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(b.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,i.jsxs)(Se,{children:[(0,i.jsxs)(V,{checked:Boolean(N),children:[N&&(0,i.jsx)(_.Check,{size:16,weight:"bold"}),(0,i.jsx)(b.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,i.jsxs)(V,{checked:Boolean(k),children:[k&&(0,i.jsx)(_.Check,{size:16,weight:"bold"}),(0,i.jsx)(b.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,i.jsxs)(V,{checked:Boolean(re),children:[re&&(0,i.jsx)(_.Check,{size:16,weight:"bold"}),(0,i.jsx)(b.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,i.jsx)("div",{children:(0,i.jsx)(S.Checkbox,{name:"termosDeUso",label:(0,i.jsxs)("div",{style:{display:"flex",gap:4},children:[(0,i.jsx)("span",{children:"Li e aceito os"}),(0,i.jsx)("a",{href:s,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),(0,i.jsx)("div",{children:(0,i.jsx)(b.Button,{type:"submit",fullWidth:!0,disabled:E(T()),children:"Concluir meu cadastro"})})]})}})]})}))}var Y=require("@s_mart/core"),P=require("@s_mart/form");var M=F(require("@emotion/styled"));var Ee=M.default.div`
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: ${t(32)};
154
- `,Fe=M.default.header`
184
+ gap: ${n(32)};
185
+ `,Sr=Ee.default.header`
155
186
  display: grid;
156
187
  text-align: center;
157
- gap: ${t(16)};
158
- `,qe=M.default.div`
188
+ gap: ${n(16)};
189
+ `,Tr=Ee.default.div`
159
190
  display: grid;
160
- gap: ${t(16)};
191
+ gap: ${n(16)};
161
192
 
162
193
  > div {
163
194
  display: grid;
164
- gap: ${t(16)};
195
+ gap: ${n(16)};
165
196
  }
166
197
 
167
198
  > div:last-of-type {
168
- gap: ${t(8)};
199
+ gap: ${n(8)};
169
200
  }
170
- `;var d=require("react/jsx-runtime");function Pe(l){var y=l,{logo:e,initialValues:a,onSubmit:r,onEsqueciMinhaSenha:s}=y,o=h(y,["logo","initialValues","onSubmit","onEsqueciMinhaSenha"]);let B=typeof e=="string"?(0,d.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,d.jsx)(c,g(f({},o),{paperStyle:{minWidth:456},children:(0,d.jsxs)(Ee,{children:[(0,d.jsx)(Fe,{children:e&&(0,d.jsx)("div",{children:B})}),(0,d.jsx)(P.Form,{onSubmit:r,defaultValues:f({manterConectado:!1},a),children:(0,d.jsxs)(qe,{children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(P.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:x}),(0,d.jsx)(P.TextField,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:x})]}),(0,d.jsx)(P.Checkbox,{name:"manterConectado",label:"Manter conectado"}),(0,d.jsxs)("div",{children:[(0,d.jsx)(Y.Button,{type:"submit",fullWidth:!0,children:"Entrar"}),s&&(0,d.jsx)(Y.Button,{type:"button",fullWidth:!0,variant:"text",children:"Esqueci minha senha"})]})]})})]})}))}var R=require("@s_mart/core");var ee=F(require("@emotion/styled"));var we=ee.default.div`
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: ${t(32)};
203
+ gap: ${n(32)};
173
204
 
174
205
  > div {
175
206
  display: grid;
176
- gap: ${t(16)};
207
+ gap: ${n(16)};
177
208
  }
178
- `,De=ee.default.header`
209
+ `,$r=Ie.default.header`
179
210
  display: grid;
180
211
  text-align: center;
181
- gap: ${t(16)};
182
- `;var Re=require("phosphor-react");var u=require("react/jsx-runtime");function Le(o){var l=o,{logo:e,onPrecisoDeAjuda:a,onRealizarAcesso:r}=l,s=h(l,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let y=typeof e=="string"?(0,u.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,u.jsx)(c,g(f({},s),{paperStyle:{minWidth:456},children:(0,u.jsxs)(we,{children:[(0,u.jsxs)("div",{children:[(0,u.jsx)(De,{children:e&&(0,u.jsx)("div",{children:y})}),(0,u.jsxs)("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:4},children:[(0,u.jsx)(R.Typography,{variant:"bodyMD",children:"O convite que voc\xEA utilizou, j\xE1 foi usado ou expirou."}),(0,u.jsx)(R.Typography,{variant:"titleSM",children:"Realize o acesso ou solicite um novo convite."})]})]}),(0,u.jsxs)("div",{children:[(0,u.jsx)(R.Button,{fullWidth:!0,onClick:r,children:"Realizar acesso"}),(0,u.jsxs)(R.Button,{fullWidth:!0,variant:"outlined",onClick:a,style:{display:"flex",gap:8},children:[(0,u.jsx)(Re.WhatsappLogo,{size:18,weight:"fill",color:m.green[300]}),"Preciso de ajuda"]})]})]})}))}var z=require("@s_mart/core");var ae=F(require("@emotion/styled"));var Ae=ae.default.div`
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: ${t(32)};
215
+ gap: ${n(32)};
185
216
 
186
217
  > div {
187
218
  display: grid;
188
- gap: ${t(16)};
219
+ gap: ${n(16)};
189
220
  }
190
- `,Ne=ae.default.header`
221
+ `,Rr=Fe.default.header`
191
222
  display: grid;
192
223
  text-align: center;
193
- gap: ${t(16)};
194
- `;var v=require("react/jsx-runtime");function ke(s){var o=s,{logo:e,onVoltarParaLogin:a}=o,r=h(o,["logo","onVoltarParaLogin"]);let l=typeof e=="string"?(0,v.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,v.jsx)(c,g(f({},r),{paperStyle:{maxWidth:456},children:(0,v.jsxs)(Ae,{children:[(0,v.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,v.jsx)(Ne,{children:e&&(0,v.jsx)("div",{children:l})}),(0,v.jsx)(z.Typography,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),(0,v.jsx)(z.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,v.jsx)(z.Button,{fullWidth:!0,onClick:a,children:"Voltar para login"})]})}))}var U=require("phosphor-react"),$=require("@s_mart/core"),L=require("@s_mart/form");var w=F(require("@emotion/styled"));var Oe=w.default.div`
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: ${t(32)};
197
- `,ze=w.default.header`
227
+ gap: ${n(32)};
228
+ `,Lr=j.default.header`
198
229
  display: grid;
199
230
  text-align: center;
200
- gap: ${t(16)};
201
- `,Ie=w.default.div`
231
+ gap: ${n(16)};
232
+ `,Dr=j.default.div`
202
233
  display: grid;
203
- gap: ${t(32)};
204
- `,We=w.default.div`
234
+ gap: ${n(32)};
235
+ `,Ir=j.default.div`
205
236
  display: grid;
206
- gap: ${t(4)};
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: ${t(16)};
242
+ gap: ${n(16)};
212
243
 
213
244
  @media (max-width: 768px) {
214
245
  grid-template-columns: 1fr;
215
- gap: ${t(8)};
246
+ gap: ${n(8)};
216
247
  }
217
248
  }
218
249
 
219
250
  > div:last-of-type {
220
251
  display: grid;
221
- gap: ${t(4)};
252
+ gap: ${n(4)};
222
253
  }
223
- `,He=w.default.div`
254
+ `,Fr=j.default.div`
224
255
  display: flex;
225
256
  flex-wrap: wrap;
226
- gap: ${t(8)};
227
- `,j=w.default.div`
257
+ gap: ${n(8)};
258
+ `,Se=j.default.div`
228
259
  display: flex;
229
260
  align-items: center;
230
- gap: ${t(4)};
261
+ gap: ${n(4)};
231
262
 
232
263
  color: ${m.neutral[600]};
233
264
  border: 1px solid ${m.neutral[600]};
234
- border-radius: ${t(4)};
235
- padding: ${t(3)} ${t(4)};
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 Ve(){let e=o=>o?o.match(/[a-z]/i):!1,a=o=>o?o.match(/[0-9]/i):!1,r=o=>o?o.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:o=>!o.email||!o.senha||!o.confirmarSenha||!e(o.senha)||!a(o.senha)||!r(o.senha)}}var n=require("react/jsx-runtime");function _e(o){var l=o,{logo:e,onTrocarMinhaSenha:a,email:r}=l,s=h(l,["logo","onTrocarMinhaSenha","email"]);let{senhaContemLetra:y,senhaContemNumero:B,senhaContemMinimoDe6Caracteres:Q,desabilitarBotaoDeCadastro:J}=Ve(),G=typeof e=="string"?(0,n.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,n.jsx)(c,g(f({},s),{children:(0,n.jsxs)(Oe,{children:[(0,n.jsxs)(ze,{children:[e&&(0,n.jsx)("div",{children:G}),(0,n.jsx)($.Typography,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),(0,n.jsx)(L.Form,{onSubmit:a,defaultValues:{email:r},children:({watch:E})=>{let I=y(E("senha")),T=B(E("senha")),N=Q(E("senha"));return(0,n.jsxs)(Ie,{children:[(0,n.jsx)(L.TextField,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),(0,n.jsxs)(We,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(L.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:x}),(0,n.jsx)(L.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:k=>{if(!k)return"Campo obrigat\xF3rio";if(k!==E("senha"))return"As senhas devem ser iguais"}}})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)($.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,n.jsxs)(He,{children:[(0,n.jsxs)(j,{checked:Boolean(I),children:[I&&(0,n.jsx)(U.Check,{size:16,weight:"bold"}),(0,n.jsx)($.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,n.jsxs)(j,{checked:Boolean(T),children:[T&&(0,n.jsx)(U.Check,{size:16,weight:"bold"}),(0,n.jsx)($.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,n.jsxs)(j,{checked:Boolean(N),children:[N&&(0,n.jsx)(U.Check,{size:16,weight:"bold"}),(0,n.jsx)($.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,n.jsx)("div",{children:(0,n.jsx)($.Button,{type:"submit",fullWidth:!0,disabled:J(E()),children:"Trocar minha senha"})})]})}})]})}))}var A=require("@s_mart/core");var X=F(require("@emotion/styled"));var Me=X.default.div`
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: ${t(32)};
277
+ gap: ${n(32)};
247
278
 
248
279
  > div {
249
280
  display: grid;
250
- gap: ${t(16)};
281
+ gap: ${n(16)};
251
282
  }
252
- `,je=X.default.header`
283
+ `,zr=we.default.header`
253
284
  display: grid;
254
285
  text-align: center;
255
- gap: ${t(16)};
256
- `,Ue=X.default.div`
286
+ gap: ${n(16)};
287
+ `,Vr=we.default.div`
257
288
  display: grid;
258
- gap: ${t(32)};
289
+ gap: ${n(32)};
259
290
 
260
291
  > div:last-of-type {
261
292
  display: grid;
262
- gap: ${t(16)};
293
+ gap: ${n(16)};
263
294
  }
264
- `;var Z=require("@s_mart/form");var p=require("react/jsx-runtime");function Xe(o){var l=o,{logo:e,onVoltarParaLogin:a,onConfirmar:r}=l,s=h(l,["logo","onVoltarParaLogin","onConfirmar"]);let y=typeof e=="string"?(0,p.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,p.jsx)(c,g(f({},s),{paperStyle:{maxWidth:456},children:(0,p.jsxs)(Me,{children:[(0,p.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,p.jsx)(je,{children:e&&(0,p.jsx)("div",{children:y})}),(0,p.jsx)(A.Typography,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),(0,p.jsx)(A.Typography,{variant:"bodySM",textAlign:"center",children:"Informe seu e-mail de acesso para receber instru\xE7\xF5es e criar uma nova senha."})]}),(0,p.jsx)(Z.Form,{onSubmit:r,children:(0,p.jsxs)(Ue,{children:[(0,p.jsx)("div",{children:(0,p.jsx)(Z.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:ve([x,ye])})}),(0,p.jsxs)("div",{children:[(0,p.jsx)(A.Button,{fullWidth:!0,type:"submit",children:"Confirmar"}),(0,p.jsx)(A.Button,{fullWidth:!0,onClick:a,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}0&&(module.exports={TelaCadastro,TelaConviteExpirado,TelaEsqueceuSenha,TelaInstrucoesEnviadas,TelaLogin,TelaNovaSenha,TemplateTelaBase});
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 _e=Object.defineProperty,Me=Object.defineProperties;var je=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var Y=(e,r,t)=>r in e?_e(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,d=(e,r)=>{for(var t in r||(r={}))ee.call(r,t)&&Y(e,t,r[t]);if(N)for(var t of N(r))ae.call(r,t)&&Y(e,t,r[t]);return e},u=(e,r)=>Me(e,je(r));var c=(e,r)=>{var t={};for(var i in e)ee.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&N)for(var i of N(e))r.indexOf(i)<0&&ae.call(e,i)&&(t[i]=e[i]);return t};import{WhatsappLogo as oa}from"phosphor-react";import{Typography as ia}from"@s_mart/core";import{telefone as na}from"@s_mart/masks";var a=e=>`${e/16}rem`;import P from"@emotion/styled";var Ue=Object.defineProperty,Xe=(e,r)=>{for(var t in r)Ue(e,t,{get:r[t],enumerable:!0})},p={};Xe(p,{blue:()=>Qe,green:()=>Ye,neutral:()=>ta,red:()=>Ge,yellow:()=>aa});var Ze={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},Qe=Ze,Je={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},Ge=Je,Ke={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},Ye=Ke,ea={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},aa=ea,ra={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},ta=ra;var re=P.div`
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
- `,te=P.div`
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
- `,oe=P.h1`
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: ${a(32)};
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: ${a(24)};
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: ${a(24)};
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: ${a(4)} ${a(8)};
62
- border-radius: ${a(12)};
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
- `,ie=P.div`
69
+ `,Be=V.div`
69
70
  position: relative;
70
71
  z-index: 2;
71
72
 
72
- padding: ${a(32)};
73
- border-radius: ${a(24)};
74
- margin: ${a(16)};
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
- `,ne=P.button`
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: ${a(4)} ${a(8)};
83
+ padding: ${n(4)} ${n(8)};
83
84
  border: none;
84
- border-radius: ${a(8)};
85
+ border-radius: ${n(8)};
85
86
  cursor: pointer;
86
87
 
87
88
  display: flex;
88
89
  align-items: center;
89
- gap: ${a(4)};
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 w,jsxs as M}from"react/jsx-runtime";function m({children:e,whatsapp:r,textoChamativo:t,style:i,paperStyle:o,ilustracao:s}){return M(re,{style:i,children:[t&&w(oe,{children:t}),s&&w(te,{children:typeof s=="string"?w("img",{src:s,alt:"Logo do sistema"}):s}),w(ie,{style:o,children:e}),r&&M(ne,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${r}`)},style:{marginBottom:16},children:[M(ia,{variant:"bodyXS",children:["Com d\xFAvidas? ",na.format(r)]}),w(oa,{weight:"fill",size:16})]})]})}import{Check as j}from"phosphor-react";import{Button as ca,Typography as D}from"@s_mart/core";import{Checkbox as fa,Form as ga,TextField as U}from"@s_mart/form";var sa=Object.defineProperty,la=Object.defineProperties,pa=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,da=Object.prototype.hasOwnProperty,ma=Object.prototype.propertyIsEnumerable,le=(e,r,t)=>r in e?sa(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,k=(e,r)=>{for(var t in r||(r={}))da.call(r,t)&&le(e,t,r[t]);if(se)for(var t of se(r))ma.call(r,t)&&le(e,t,r[t]);return e},ua=(e,r)=>la(e,pa(r));var pe=e=>{let r={validate:{}};return e.forEach(t=>{r=ua(k(k({},r),t),{validate:k(k({},r.validate),t.validate)})}),r},C={validate:{required:e=>{if(!e)return"Campo obrigat\xF3rio"}}},de={validate:{email:e=>{if(e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e))return"O email \xE9 inv\xE1lido"}}};import B from"@emotion/styled";var me=B.div`
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: ${a(32)};
104
- `,ue=B.header`
104
+ gap: ${n(32)};
105
+ `,Ue=q.header`
105
106
  display: grid;
106
107
  text-align: center;
107
- gap: ${a(16)};
108
- `,ce=B.div`
108
+ gap: ${n(16)};
109
+ `,Ye=q.div`
109
110
  display: grid;
110
- gap: ${a(32)};
111
- `,fe=B.div`
111
+ gap: ${n(32)};
112
+ `,Ke=q.div`
112
113
  display: grid;
113
- gap: ${a(4)};
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: ${a(16)};
119
+ gap: ${n(16)};
119
120
 
120
121
  @media (max-width: 768px) {
121
122
  grid-template-columns: 1fr;
122
- gap: ${a(8)};
123
+ gap: ${n(8)};
123
124
  }
124
125
  }
125
126
 
126
127
  > div:last-of-type {
127
128
  display: grid;
128
- gap: ${a(4)};
129
+ gap: ${n(4)};
129
130
  }
130
- `,ge=B.div`
131
+ `,Xe=q.div`
131
132
  display: flex;
132
133
  flex-wrap: wrap;
133
- gap: ${a(8)};
134
- `,O=B.div`
134
+ gap: ${n(8)};
135
+ `,ee=q.div`
135
136
  display: flex;
136
137
  align-items: center;
137
- gap: ${a(4)};
138
+ gap: ${n(4)};
138
139
 
139
140
  color: ${p.neutral[600]};
140
141
  border: 1px solid ${p.neutral[600]};
141
- border-radius: ${a(4)};
142
- padding: ${a(3)} ${a(4)};
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 he(){let e=o=>o?o.match(/[a-z]/i):!1,r=o=>o?o.match(/[0-9]/i):!1,t=o=>o?o.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:r,senhaContemMinimoDe6Caracteres:t,desabilitarBotaoDeCadastro:o=>!o.email||!o.senha||!o.confirmarSenha||!o.termosDeUso||!e(o.senha)||!r(o.senha)||!t(o.senha)}}import{jsx as n,jsxs as f}from"react/jsx-runtime";function ha(h){var b=h,{logo:e,nomeSistema:r,onSubmit:t,linkTermosDeUso:i,email:o}=b,s=c(b,["logo","nomeSistema","onSubmit","linkTermosDeUso","email"]);let{senhaContemLetra:H,senhaContemNumero:V,senhaContemMinimoDe6Caracteres:_,desabilitarBotaoDeCadastro:S}=he(),A=typeof e=="string"?n("img",{src:e,alt:"Logo do sistema"}):e;return n(m,u(d({},s),{children:f(me,{children:[f(ue,{children:[e&&n("div",{children:A}),f(D,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",r,"."]})]}),n(ga,{onSubmit:t,defaultValues:{email:o,termosDeUso:!1},children:({watch:x})=>{let F=H(x("senha")),q=V(x("senha")),G=_(x("senha"));return f(ce,{children:[n(U,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),f(fe,{children:[f("div",{children:[n(U,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:C}),n(U,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:K=>{if(!K)return"Campo obrigat\xF3rio";if(K!==x("senha"))return"As senhas devem ser iguais"}}})]}),f("div",{children:[n(D,{variant:"bodyXS",children:"Sua senha precisa conter:"}),f(ge,{children:[f(O,{checked:Boolean(F),children:[F&&n(j,{size:16,weight:"bold"}),n(D,{variant:"bodyXS",children:"Uma letra"})]}),f(O,{checked:Boolean(q),children:[q&&n(j,{size:16,weight:"bold"}),n(D,{variant:"bodyXS",children:"Um n\xFAmero"})]}),f(O,{checked:Boolean(G),children:[G&&n(j,{size:16,weight:"bold"}),n(D,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),n("div",{children:n(fa,{name:"termosDeUso",label:f("div",{style:{display:"flex",gap:4},children:[n("span",{children:"Li e aceito os"}),n("a",{href:i,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),n("div",{children:n(ca,{type:"submit",fullWidth:!0,disabled:S(x()),children:"Concluir meu cadastro"})})]})}})]})}))}import{Button as xe}from"@s_mart/core";import{Checkbox as va,Form as ya,TextField as Te}from"@s_mart/form";import X from"@emotion/styled";var ve=X.div`
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: ${a(32)};
154
- `,ye=X.header`
184
+ gap: ${n(32)};
185
+ `,ur=$e.header`
155
186
  display: grid;
156
187
  text-align: center;
157
- gap: ${a(16)};
158
- `,Ce=X.div`
188
+ gap: ${n(16)};
189
+ `,dr=$e.div`
159
190
  display: grid;
160
- gap: ${a(16)};
191
+ gap: ${n(16)};
161
192
 
162
193
  > div {
163
194
  display: grid;
164
- gap: ${a(16)};
195
+ gap: ${n(16)};
165
196
  }
166
197
 
167
198
  > div:last-of-type {
168
- gap: ${a(8)};
199
+ gap: ${n(8)};
169
200
  }
170
- `;import{jsx as v,jsxs as z}from"react/jsx-runtime";function Ca(s){var h=s,{logo:e,initialValues:r,onSubmit:t,onEsqueciMinhaSenha:i}=h,o=c(h,["logo","initialValues","onSubmit","onEsqueciMinhaSenha"]);let b=typeof e=="string"?v("img",{src:e,alt:"Logo do sistema"}):e;return v(m,u(d({},o),{paperStyle:{minWidth:456},children:z(ve,{children:[v(ye,{children:e&&v("div",{children:b})}),v(ya,{onSubmit:t,defaultValues:d({manterConectado:!1},r),children:z(Ce,{children:[z("div",{children:[v(Te,{name:"email",label:"E-mail de acesso",required:!0,rules:C}),v(Te,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:C})]}),v(va,{name:"manterConectado",label:"Manter conectado"}),z("div",{children:[v(xe,{type:"submit",fullWidth:!0,children:"Entrar"}),i&&v(xe,{type:"button",fullWidth:!0,variant:"text",children:"Esqueci minha senha"})]})]})})]})}))}import{Button as Be,Typography as Ee}from"@s_mart/core";import be from"@emotion/styled";var Se=be.div`
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: ${a(32)};
203
+ gap: ${n(32)};
173
204
 
174
205
  > div {
175
206
  display: grid;
176
- gap: ${a(16)};
207
+ gap: ${n(16)};
177
208
  }
178
- `,$e=be.header`
209
+ `,hr=mr.header`
179
210
  display: grid;
180
211
  text-align: center;
181
- gap: ${a(16)};
182
- `;import{WhatsappLogo as xa}from"phosphor-react";import{jsx as T,jsxs as R}from"react/jsx-runtime";function Ta(o){var s=o,{logo:e,onPrecisoDeAjuda:r,onRealizarAcesso:t}=s,i=c(s,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let h=typeof e=="string"?T("img",{src:e,alt:"Logo do sistema"}):e;return T(m,u(d({},i),{paperStyle:{minWidth:456},children:R(Se,{children:[R("div",{children:[T($e,{children:e&&T("div",{children:h})}),R("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:4},children:[T(Ee,{variant:"bodyMD",children:"O convite que voc\xEA utilizou, j\xE1 foi usado ou expirou."}),T(Ee,{variant:"titleSM",children:"Realize o acesso ou solicite um novo convite."})]})]}),R("div",{children:[T(Be,{fullWidth:!0,onClick:t,children:"Realizar acesso"}),R(Be,{fullWidth:!0,variant:"outlined",onClick:r,style:{display:"flex",gap:8},children:[T(xa,{size:18,weight:"fill",color:p.green[300]}),"Preciso de ajuda"]})]})]})}))}import{Button as ba,Typography as we}from"@s_mart/core";import Fe from"@emotion/styled";var qe=Fe.div`
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: ${a(32)};
215
+ gap: ${n(32)};
185
216
 
186
217
  > div {
187
218
  display: grid;
188
- gap: ${a(16)};
219
+ gap: ${n(16)};
189
220
  }
190
- `,Pe=Fe.header`
221
+ `,xr=Cr.header`
191
222
  display: grid;
192
223
  text-align: center;
193
- gap: ${a(16)};
194
- `;import{jsx as $,jsxs as De}from"react/jsx-runtime";function Sa(i){var o=i,{logo:e,onVoltarParaLogin:r}=o,t=c(o,["logo","onVoltarParaLogin"]);let s=typeof e=="string"?$("img",{src:e,alt:"Logo do sistema"}):e;return $(m,u(d({},t),{paperStyle:{maxWidth:456},children:De(qe,{children:[De("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[$(Pe,{children:e&&$("div",{children:s})}),$(we,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),$(we,{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."})]}),$(ba,{fullWidth:!0,onClick:r,children:"Voltar para login"})]})}))}import{Check as Z}from"phosphor-react";import{Button as $a,Typography as L}from"@s_mart/core";import{Form as Ba,TextField as Q}from"@s_mart/form";import E from"@emotion/styled";var Re=E.div`
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: ${a(32)};
197
- `,Le=E.header`
227
+ gap: ${n(32)};
228
+ `,wr=z.header`
198
229
  display: grid;
199
230
  text-align: center;
200
- gap: ${a(16)};
201
- `,Ae=E.div`
231
+ gap: ${n(16)};
232
+ `,kr=z.div`
202
233
  display: grid;
203
- gap: ${a(32)};
204
- `,Ne=E.div`
234
+ gap: ${n(32)};
235
+ `,$r=z.div`
205
236
  display: grid;
206
- gap: ${a(4)};
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: ${a(16)};
242
+ gap: ${n(16)};
212
243
 
213
244
  @media (max-width: 768px) {
214
245
  grid-template-columns: 1fr;
215
- gap: ${a(8)};
246
+ gap: ${n(8)};
216
247
  }
217
248
  }
218
249
 
219
250
  > div:last-of-type {
220
251
  display: grid;
221
- gap: ${a(4)};
252
+ gap: ${n(4)};
222
253
  }
223
- `,ke=E.div`
254
+ `,Or=z.div`
224
255
  display: flex;
225
256
  flex-wrap: wrap;
226
- gap: ${a(8)};
227
- `,I=E.div`
257
+ gap: ${n(8)};
258
+ `,pe=z.div`
228
259
  display: flex;
229
260
  align-items: center;
230
- gap: ${a(4)};
261
+ gap: ${n(4)};
231
262
 
232
263
  color: ${p.neutral[600]};
233
264
  border: 1px solid ${p.neutral[600]};
234
- border-radius: ${a(4)};
235
- padding: ${a(3)} ${a(4)};
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 Oe(){let e=o=>o?o.match(/[a-z]/i):!1,r=o=>o?o.match(/[0-9]/i):!1,t=o=>o?o.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:r,senhaContemMinimoDe6Caracteres:t,desabilitarBotaoDeCadastro:o=>!o.email||!o.senha||!o.confirmarSenha||!e(o.senha)||!r(o.senha)||!t(o.senha)}}import{jsx as l,jsxs as y}from"react/jsx-runtime";function Ea(o){var s=o,{logo:e,onTrocarMinhaSenha:r,email:t}=s,i=c(s,["logo","onTrocarMinhaSenha","email"]);let{senhaContemLetra:h,senhaContemNumero:b,senhaContemMinimoDe6Caracteres:H,desabilitarBotaoDeCadastro:V}=Oe(),_=typeof e=="string"?l("img",{src:e,alt:"Logo do sistema"}):e;return l(m,u(d({},i),{children:y(Re,{children:[y(Le,{children:[e&&l("div",{children:_}),l(L,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),l(Ba,{onSubmit:r,defaultValues:{email:t},children:({watch:S})=>{let A=h(S("senha")),x=b(S("senha")),F=H(S("senha"));return y(Ae,{children:[l(Q,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),y(Ne,{children:[y("div",{children:[l(Q,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:C}),l(Q,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:q=>{if(!q)return"Campo obrigat\xF3rio";if(q!==S("senha"))return"As senhas devem ser iguais"}}})]}),y("div",{children:[l(L,{variant:"bodyXS",children:"Sua senha precisa conter:"}),y(ke,{children:[y(I,{checked:Boolean(A),children:[A&&l(Z,{size:16,weight:"bold"}),l(L,{variant:"bodyXS",children:"Uma letra"})]}),y(I,{checked:Boolean(x),children:[x&&l(Z,{size:16,weight:"bold"}),l(L,{variant:"bodyXS",children:"Um n\xFAmero"})]}),y(I,{checked:Boolean(F),children:[F&&l(Z,{size:16,weight:"bold"}),l(L,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),l("div",{children:l($a,{type:"submit",fullWidth:!0,disabled:V(S()),children:"Trocar minha senha"})})]})}})]})}))}import{Button as He,Typography as Ve}from"@s_mart/core";import J from"@emotion/styled";var ze=J.div`
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: ${a(32)};
277
+ gap: ${n(32)};
247
278
 
248
279
  > div {
249
280
  display: grid;
250
- gap: ${a(16)};
281
+ gap: ${n(16)};
251
282
  }
252
- `,Ie=J.header`
283
+ `,Rr=Ae.header`
253
284
  display: grid;
254
285
  text-align: center;
255
- gap: ${a(16)};
256
- `,We=J.div`
286
+ gap: ${n(16)};
287
+ `,_r=Ae.div`
257
288
  display: grid;
258
- gap: ${a(32)};
289
+ gap: ${n(32)};
259
290
 
260
291
  > div:last-of-type {
261
292
  display: grid;
262
- gap: ${a(16)};
293
+ gap: ${n(16)};
263
294
  }
264
- `;import{Form as Fa,TextField as qa}from"@s_mart/form";import{jsx as g,jsxs as W}from"react/jsx-runtime";function Pa(o){var s=o,{logo:e,onVoltarParaLogin:r,onConfirmar:t}=s,i=c(s,["logo","onVoltarParaLogin","onConfirmar"]);let h=typeof e=="string"?g("img",{src:e,alt:"Logo do sistema"}):e;return g(m,u(d({},i),{paperStyle:{maxWidth:456},children:W(ze,{children:[W("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[g(Ie,{children:e&&g("div",{children:h})}),g(Ve,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),g(Ve,{variant:"bodySM",textAlign:"center",children:"Informe seu e-mail de acesso para receber instru\xE7\xF5es e criar uma nova senha."})]}),g(Fa,{onSubmit:t,children:W(We,{children:[g("div",{children:g(qa,{name:"email",label:"E-mail de acesso",required:!0,rules:pe([C,de])})}),W("div",{children:[g(He,{fullWidth:!0,type:"submit",children:"Confirmar"}),g(He,{fullWidth:!0,onClick:r,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}export{ha as TelaCadastro,Ta as TelaConviteExpirado,Pa as TelaEsqueceuSenha,Sa as TelaInstrucoesEnviadas,Ca as TelaLogin,Ea as TelaNovaSenha,m as TemplateTelaBase};
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
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s_mart/telas-de-acesso",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",