@s_mart/telas-de-acesso 1.0.2 → 1.1.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 +146 -104
- package/dist/index.mjs +146 -104
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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`
|
|
1
|
+
"use strict";var f3=Object.create;var J=Object.defineProperty,m3=Object.defineProperties,M3=Object.getOwnPropertyDescriptor,g3=Object.getOwnPropertyDescriptors,Z3=Object.getOwnPropertyNames,a2=Object.getOwnPropertySymbols,v3=Object.getPrototypeOf,k2=Object.prototype.hasOwnProperty,W2=Object.prototype.propertyIsEnumerable;var z2=(C,e,r)=>e in C?J(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,h=(C,e)=>{for(var r in e||(e={}))k2.call(e,r)&&z2(C,r,e[r]);if(a2)for(var r of a2(e))W2.call(e,r)&&z2(C,r,e[r]);return C},S=(C,e)=>m3(C,g3(e));var E=(C,e)=>{var r={};for(var a in C)k2.call(C,a)&&e.indexOf(a)<0&&(r[a]=C[a]);if(C!=null&&a2)for(var a of a2(C))e.indexOf(a)<0&&W2.call(C,a)&&(r[a]=C[a]);return r};var o2=(C,e)=>()=>(e||C((e={exports:{}}).exports,e),e.exports),h3=(C,e)=>{for(var r in e)J(C,r,{get:e[r],enumerable:!0})},j2=(C,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Z3(e))!k2.call(C,n)&&n!==r&&J(C,n,{get:()=>e[n],enumerable:!(a=M3(e,n))||a.enumerable});return C};var w=(C,e,r)=>(r=C!=null?f3(v3(C)):{},j2(e||!C||!C.__esModule?J(r,"default",{value:C,enumerable:!0}):r,C)),y3=C=>j2(J({},"__esModule",{value:!0}),C);var l1=o2(l=>{"use strict";var p=typeof Symbol=="function"&&Symbol.for,$2=p?Symbol.for("react.element"):60103,P2=p?Symbol.for("react.portal"):60106,H2=p?Symbol.for("react.fragment"):60107,p2=p?Symbol.for("react.strict_mode"):60108,V2=p?Symbol.for("react.profiler"):60114,f2=p?Symbol.for("react.provider"):60109,m2=p?Symbol.for("react.context"):60110,A2=p?Symbol.for("react.async_mode"):60111,M2=p?Symbol.for("react.concurrent_mode"):60111,g2=p?Symbol.for("react.forward_ref"):60112,Z2=p?Symbol.for("react.suspense"):60113,q3=p?Symbol.for("react.suspense_list"):60120,v2=p?Symbol.for("react.memo"):60115,h2=p?Symbol.for("react.lazy"):60116,z3=p?Symbol.for("react.block"):60121,W3=p?Symbol.for("react.fundamental"):60117,j3=p?Symbol.for("react.responder"):60118,U3=p?Symbol.for("react.scope"):60119;function y(C){if(typeof C=="object"&&C!==null){var e=C.$$typeof;switch(e){case $2:switch(C=C.type,C){case A2:case M2:case H2:case V2:case p2:case Z2:return C;default:switch(C=C&&C.$$typeof,C){case m2:case g2:case h2:case v2:case f2:return C;default:return e}}case P2:return e}}}function s1(C){return y(C)===M2}l.AsyncMode=A2;l.ConcurrentMode=M2;l.ContextConsumer=m2;l.ContextProvider=f2;l.Element=$2;l.ForwardRef=g2;l.Fragment=H2;l.Lazy=h2;l.Memo=v2;l.Portal=P2;l.Profiler=V2;l.StrictMode=p2;l.Suspense=Z2;l.isAsyncMode=function(C){return s1(C)||y(C)===A2};l.isConcurrentMode=s1;l.isContextConsumer=function(C){return y(C)===m2};l.isContextProvider=function(C){return y(C)===f2};l.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===$2};l.isForwardRef=function(C){return y(C)===g2};l.isFragment=function(C){return y(C)===H2};l.isLazy=function(C){return y(C)===h2};l.isMemo=function(C){return y(C)===v2};l.isPortal=function(C){return y(C)===P2};l.isProfiler=function(C){return y(C)===V2};l.isStrictMode=function(C){return y(C)===p2};l.isSuspense=function(C){return y(C)===Z2};l.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===H2||C===M2||C===V2||C===p2||C===Z2||C===q3||typeof C=="object"&&C!==null&&(C.$$typeof===h2||C.$$typeof===v2||C.$$typeof===f2||C.$$typeof===m2||C.$$typeof===g2||C.$$typeof===W3||C.$$typeof===j3||C.$$typeof===U3||C.$$typeof===z3)};l.typeOf=y});var L1=o2(L=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var C=typeof Symbol=="function"&&Symbol.for,e=C?Symbol.for("react.element"):60103,r=C?Symbol.for("react.portal"):60106,a=C?Symbol.for("react.fragment"):60107,n=C?Symbol.for("react.strict_mode"):60108,s=C?Symbol.for("react.profiler"):60114,u=C?Symbol.for("react.provider"):60109,c=C?Symbol.for("react.context"):60110,f=C?Symbol.for("react.async_mode"):60111,x=C?Symbol.for("react.concurrent_mode"):60111,O=C?Symbol.for("react.forward_ref"):60112,b=C?Symbol.for("react.suspense"):60113,K=C?Symbol.for("react.suspense_list"):60120,Z=C?Symbol.for("react.memo"):60115,P=C?Symbol.for("react.lazy"):60116,z=C?Symbol.for("react.block"):60121,i2=C?Symbol.for("react.fundamental"):60117,n2=C?Symbol.for("react.responder"):60118,z1=C?Symbol.for("react.scope"):60119;function W1(t){return typeof t=="string"||typeof t=="function"||t===a||t===x||t===s||t===n||t===b||t===K||typeof t=="object"&&t!==null&&(t.$$typeof===P||t.$$typeof===Z||t.$$typeof===u||t.$$typeof===c||t.$$typeof===O||t.$$typeof===i2||t.$$typeof===n2||t.$$typeof===z1||t.$$typeof===z)}function v(t){if(typeof t=="object"&&t!==null){var T2=t.$$typeof;switch(T2){case e:var t2=t.type;switch(t2){case f:case x:case a:case s:case n:case b:return t2;default:var q2=t2&&t2.$$typeof;switch(q2){case c:case O:case P:case Z:case u:return q2;default:return T2}}case r:return T2}}}var j1=f,U1=x,Y1=c,K1=u,X1=e,G1=O,Q1=a,J1=P,C3=Z,e3=r,r3=s,i3=n,n3=b,N2=!1;function t3(t){return N2||(N2=!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.")),_2(t)||v(t)===f}function _2(t){return v(t)===x}function a3(t){return v(t)===c}function o3(t){return v(t)===u}function s3(t){return typeof t=="object"&&t!==null&&t.$$typeof===e}function l3(t){return v(t)===O}function L3(t){return v(t)===a}function d3(t){return v(t)===P}function c3(t){return v(t)===Z}function u3(t){return v(t)===r}function H3(t){return v(t)===s}function p3(t){return v(t)===n}function V3(t){return v(t)===b}L.AsyncMode=j1,L.ConcurrentMode=U1,L.ContextConsumer=Y1,L.ContextProvider=K1,L.Element=X1,L.ForwardRef=G1,L.Fragment=Q1,L.Lazy=J1,L.Memo=C3,L.Portal=e3,L.Profiler=r3,L.StrictMode=i3,L.Suspense=n3,L.isAsyncMode=t3,L.isConcurrentMode=_2,L.isContextConsumer=a3,L.isContextProvider=o3,L.isElement=s3,L.isForwardRef=l3,L.isFragment=L3,L.isLazy=d3,L.isMemo=c3,L.isPortal=u3,L.isProfiler=H3,L.isStrictMode=p3,L.isSuspense=V3,L.isValidElementType=W1,L.typeOf=v}()});var d1=o2((k5,B2)=>{"use strict";process.env.NODE_ENV==="production"?B2.exports=l1():B2.exports=L1()});var m1=o2(($5,f1)=>{"use strict";var O2=d1(),Y3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},K3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},X3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},p1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R2={};R2[O2.ForwardRef]=X3;R2[O2.Memo]=p1;function c1(C){return O2.isMemo(C)?p1:R2[C.$$typeof]||Y3}var G3=Object.defineProperty,Q3=Object.getOwnPropertyNames,u1=Object.getOwnPropertySymbols,J3=Object.getOwnPropertyDescriptor,C5=Object.getPrototypeOf,H1=Object.prototype;function V1(C,e,r){if(typeof e!="string"){if(H1){var a=C5(e);a&&a!==H1&&V1(C,a,r)}var n=Q3(e);u1&&(n=n.concat(u1(e)));for(var s=c1(C),u=c1(e),c=0;c<n.length;++c){var f=n[c];if(!K3[f]&&!(r&&r[f])&&!(u&&u[f])&&!(s&&s[f])){var x=J3(e,f);try{G3(C,f,x)}catch(O){}}}}return C}f1.exports=V1});var t5={};h3(t5,{TelaCadastro:()=>o1,TelaConviteExpirado:()=>w1,TelaEsqueceuSenha:()=>q1,TelaInstrucoesEnviadas:()=>$1,TelaLogin:()=>b1,TelaNovaSenha:()=>F1,TemplateTelaBase:()=>g});module.exports=y3(t5);var l2=require("@s_mart/core"),Q2=require("@s_mart/masks");var F={description:"M37.4802 11.2595L18.4955 30.6836L11.5198 23.5465C11.1816 23.2004 10.6333 23.2004 10.295 23.5465L8.25365 25.635C7.91545 25.9811 7.91545 26.5421 8.25365 26.8882L17.8831 36.7405C18.2213 37.0865 18.7696 37.0865 19.1079 36.7405L40.7463 14.6013C41.0845 14.2553 41.0845 13.6942 40.7463 13.3481L38.705 11.2595C38.3668 10.9135 37.8184 10.9135 37.4802 11.2595Z",viewBox:"0 0 48 48",id:"line-check-regular"};var s2={description:"M35.2071 12.65C32.2143 9.65 28.2286 8 23.9929 8C15.25 8 8.13571 15.1143 8.13571 23.8571C8.13571 26.65 8.86429 29.3786 10.25 31.7857L8 40L16.4071 37.7929C18.7214 39.0571 21.3286 39.7214 23.9857 39.7214H23.9929C32.7286 39.7214 40 32.6071 40 23.8643C40 19.6286 38.2 15.65 35.2071 12.65ZM23.9929 37.05C21.6214 37.05 19.3 36.4143 17.2786 35.2143L16.8 34.9286L11.8143 36.2357L13.1429 31.3714L12.8286 30.8714C11.5071 28.7714 10.8143 26.35 10.8143 23.8571C10.8143 16.5929 16.7286 10.6786 24 10.6786C27.5214 10.6786 30.8286 12.05 33.3143 14.5429C35.8 17.0357 37.3286 20.3429 37.3214 23.8643C37.3214 31.1357 31.2571 37.05 23.9929 37.05ZM31.2214 27.1786C30.8286 26.9786 28.8786 26.0214 28.5143 25.8929C28.15 25.7571 27.8857 25.6929 27.6214 26.0929C27.3571 26.4929 26.6 27.3786 26.3643 27.65C26.1357 27.9143 25.9 27.95 25.5071 27.75C23.1786 26.5857 21.65 25.6714 20.1143 23.0357C19.7071 22.3357 20.5214 22.3857 21.2786 20.8714C21.4071 20.6071 21.3429 20.3786 21.2429 20.1786C21.1429 19.9786 20.35 18.0286 20.0214 17.2357C19.7 16.4643 19.3714 16.5714 19.1286 16.5571C18.9 16.5429 18.6357 16.5429 18.3714 16.5429C18.1071 16.5429 17.6786 16.6429 17.3143 17.0357C16.95 17.4357 15.9286 18.3929 15.9286 20.3429C15.9286 22.2929 17.35 24.1786 17.5429 24.4429C17.7429 24.7071 20.3357 28.7071 24.3143 30.4286C26.8286 31.5143 27.8143 31.6071 29.0714 31.4214C29.8357 31.3071 31.4143 30.4643 31.7429 29.5357C32.0714 28.6071 32.0714 27.8143 31.9714 27.65C31.8786 27.4714 31.6143 27.3714 31.2214 27.1786Z",viewBox:"0 0 48 48",id:"line-whatsapp-regular"};var i=C=>`${C/16}rem`;var X=w(require("@emotion/styled"));var x3=Object.defineProperty,b3=(C,e)=>{for(var r in e)x3(C,r,{get:e[r],enumerable:!0})},H={};b3(H,{blue:()=>E3,green:()=>$3,neutral:()=>O3,red:()=>T3,yellow:()=>A3});var S3={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},E3=S3,w3={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},T3=w3,k3={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},$3=k3,P3={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},A3=P3,B3={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},O3=B3;var U2=X.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
height: 100vh;
|
|
10
10
|
|
|
11
|
-
background-color: ${({theme:
|
|
11
|
+
background-color: ${({theme:C})=>C.palette.primary.main};
|
|
12
12
|
transition: background-color 0.3s ease-in-out;
|
|
13
13
|
|
|
14
14
|
@media (max-width: 500px) {
|
|
15
|
-
background-color: ${({theme:
|
|
15
|
+
background-color: ${({theme:C})=>C.palette.common.white};
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@media (max-height: 650px) {
|
|
19
19
|
justify-content: flex-start;
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,Y2=X.default.div`
|
|
22
22
|
position: absolute;
|
|
23
23
|
left: 0;
|
|
24
24
|
bottom: 32px;
|
|
@@ -27,26 +27,26 @@
|
|
|
27
27
|
@media (max-width: 768px) {
|
|
28
28
|
display: none;
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,K2=X.default.h1`
|
|
31
31
|
position: absolute;
|
|
32
32
|
left: 32px;
|
|
33
33
|
top: 32px;
|
|
34
34
|
|
|
35
|
-
color: ${({theme:
|
|
36
|
-
font-size: ${
|
|
35
|
+
color: ${({theme:C})=>C.palette.common.white};
|
|
36
|
+
font-size: ${i(32)};
|
|
37
37
|
line-height: 150%;
|
|
38
38
|
font-weight: normal;
|
|
39
39
|
|
|
40
40
|
@media (max-width: 768px) {
|
|
41
41
|
left: 16px;
|
|
42
42
|
top: 16px;
|
|
43
|
-
font-size: ${
|
|
43
|
+
font-size: ${i(24)};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@media (max-height: 830px) {
|
|
47
47
|
left: 16px;
|
|
48
48
|
top: 16px;
|
|
49
|
-
font-size: ${
|
|
49
|
+
font-size: ${i(24)};
|
|
50
50
|
|
|
51
51
|
@media (max-width: 768px) {
|
|
52
52
|
display: none;
|
|
@@ -59,240 +59,282 @@
|
|
|
59
59
|
|
|
60
60
|
span {
|
|
61
61
|
background-color: #262626;
|
|
62
|
-
padding: ${
|
|
63
|
-
border-radius: ${
|
|
62
|
+
padding: ${i(4)} ${i(8)};
|
|
63
|
+
border-radius: ${i(12)};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
@media (max-width: 500px) {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,X2=X.default.div`
|
|
70
70
|
position: relative;
|
|
71
71
|
z-index: 2;
|
|
72
72
|
|
|
73
|
-
padding: ${
|
|
74
|
-
border-radius: ${
|
|
75
|
-
margin: ${
|
|
73
|
+
padding: ${i(32)};
|
|
74
|
+
border-radius: ${i(24)};
|
|
75
|
+
margin: ${i(16)};
|
|
76
76
|
|
|
77
|
-
background-color: ${({theme:
|
|
78
|
-
`,
|
|
77
|
+
background-color: ${({theme:C})=>C.palette.common.white};
|
|
78
|
+
`,G2=X.default.button`
|
|
79
79
|
position: relative;
|
|
80
80
|
z-index: 2;
|
|
81
81
|
|
|
82
|
-
background-color: ${({theme:
|
|
83
|
-
padding: ${
|
|
82
|
+
background-color: ${({theme:C})=>C.palette.primary.main};
|
|
83
|
+
padding: ${i(4)} ${i(8)};
|
|
84
84
|
border: none;
|
|
85
|
-
border-radius: ${
|
|
85
|
+
border-radius: ${i(8)};
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
|
|
88
88
|
display: flex;
|
|
89
89
|
align-items: center;
|
|
90
|
-
gap: ${
|
|
90
|
+
gap: ${i(4)};
|
|
91
91
|
|
|
92
|
-
color: ${({theme:
|
|
92
|
+
color: ${({theme:C})=>C.palette.common.white};
|
|
93
93
|
|
|
94
94
|
@media (max-width: 500px) {
|
|
95
|
-
color: ${({theme:
|
|
95
|
+
color: ${({theme:C})=>C.palette.common.black};
|
|
96
96
|
background-color: transparent;
|
|
97
97
|
|
|
98
98
|
svg {
|
|
99
|
-
color: ${
|
|
99
|
+
color: ${H.green[300]};
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`;var
|
|
102
|
+
`;var A=require("react/jsx-runtime");function g({children:C,whatsapp:e,textoChamativo:r,style:a,paperStyle:n,ilustracao:s}){return(0,A.jsxs)(U2,{style:a,children:[r&&(0,A.jsx)(K2,{children:r}),s&&(0,A.jsx)(Y2,{children:typeof s=="string"?(0,A.jsx)("img",{src:s,alt:"Logo do sistema"}):s}),(0,A.jsx)(X2,{style:n,children:C}),e&&(0,A.jsxs)(G2,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${e}`)},style:{marginBottom:16},children:[(0,A.jsxs)(l2.Typography,{variant:"bodyXS",children:["Com d\xFAvidas? ",Q2.telefone.format(e)]}),(0,A.jsx)(l2.LIcon,{icon:s2,size:"20px",removeMargin:!0})]})]})}var T=require("@s_mart/core"),I=require("@s_mart/form");var R3=Object.defineProperty,D3=Object.defineProperties,F3=Object.getOwnPropertyDescriptors,J2=Object.getOwnPropertySymbols,I3=Object.prototype.hasOwnProperty,N3=Object.prototype.propertyIsEnumerable,C1=(C,e,r)=>e in C?R3(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,L2=(C,e)=>{for(var r in e||(e={}))I3.call(e,r)&&C1(C,r,e[r]);if(J2)for(var r of J2(e))N3.call(e,r)&&C1(C,r,e[r]);return C},_3=(C,e)=>D3(C,F3(e));var d2=C=>{let e={validate:{}};return C.forEach(r=>{e=_3(L2(L2({},e),r),{validate:L2(L2({},e.validate),r.validate)})}),e},R={validate:{required:C=>{if(!C)return"Campo obrigat\xF3rio"}}},c2={validate:{email:C=>{if(C&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(C))return"O email \xE9 inv\xE1lido"}}};var W=w(require("@emotion/styled"));var e1=W.default.div`
|
|
103
103
|
display: grid;
|
|
104
|
-
gap: ${
|
|
105
|
-
`,
|
|
104
|
+
gap: ${i(32)};
|
|
105
|
+
`,r1=W.default.header`
|
|
106
106
|
display: grid;
|
|
107
107
|
text-align: center;
|
|
108
|
-
gap: ${
|
|
109
|
-
`,
|
|
108
|
+
gap: ${i(16)};
|
|
109
|
+
`,i1=W.default.div`
|
|
110
110
|
display: grid;
|
|
111
|
-
gap: ${
|
|
112
|
-
`,
|
|
111
|
+
gap: ${i(32)};
|
|
112
|
+
`,n1=W.default.div`
|
|
113
113
|
display: grid;
|
|
114
|
-
gap: ${
|
|
114
|
+
gap: ${i(4)};
|
|
115
115
|
|
|
116
116
|
> div:first-of-type {
|
|
117
117
|
display: grid;
|
|
118
118
|
grid-template-columns: 1fr 1fr;
|
|
119
|
-
gap: ${
|
|
119
|
+
gap: ${i(16)};
|
|
120
120
|
|
|
121
121
|
@media (max-width: 768px) {
|
|
122
122
|
grid-template-columns: 1fr;
|
|
123
|
-
gap: ${
|
|
123
|
+
gap: ${i(8)};
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
> div:last-of-type {
|
|
128
128
|
display: grid;
|
|
129
|
-
gap: ${
|
|
129
|
+
gap: ${i(4)};
|
|
130
130
|
}
|
|
131
|
-
`,
|
|
131
|
+
`,t1=W.default.div`
|
|
132
132
|
display: flex;
|
|
133
133
|
flex-wrap: wrap;
|
|
134
|
-
gap: ${
|
|
135
|
-
`,
|
|
134
|
+
gap: ${i(8)};
|
|
135
|
+
`,u2=W.default.div`
|
|
136
136
|
display: flex;
|
|
137
137
|
align-items: center;
|
|
138
|
-
gap: ${
|
|
138
|
+
gap: ${i(4)};
|
|
139
139
|
|
|
140
|
-
color: ${
|
|
141
|
-
border: 1px solid ${
|
|
142
|
-
border-radius: ${
|
|
143
|
-
padding: ${
|
|
140
|
+
color: ${H.neutral[600]};
|
|
141
|
+
border: 1px solid ${H.neutral[600]};
|
|
142
|
+
border-radius: ${i(4)};
|
|
143
|
+
padding: ${i(3)} ${i(4)};
|
|
144
144
|
|
|
145
145
|
line-height: 1em;
|
|
146
146
|
vertical-align: middle;
|
|
147
147
|
|
|
148
|
-
${({checked:
|
|
149
|
-
color: ${
|
|
150
|
-
border-color: ${
|
|
148
|
+
${({checked:C})=>{if(C)return`
|
|
149
|
+
color: ${H.green[300]};
|
|
150
|
+
border-color: ${H.green[300]};
|
|
151
151
|
`}}
|
|
152
|
-
`;function
|
|
152
|
+
`;function a1(){let C=n=>n?n.match(/[a-z]/i):!1,e=n=>n?n.match(/[0-9]/i):!1,r=n=>n?n.length>=6:!1;return{senhaContemLetra:C,senhaContemNumero:e,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:n=>!n.email||!n.senha||!n.confirmarSenha||!n.termosDeUso||!C(n.senha)||!e(n.senha)||!r(n.senha)}}var o=require("react/jsx-runtime");function o1(u){var c=u,{logo:C,nomeSistema:e,onSubmit:r,linkTermosDeUso:a,email:n}=c,s=E(c,["logo","nomeSistema","onSubmit","linkTermosDeUso","email"]);let{senhaContemLetra:f,senhaContemNumero:x,senhaContemMinimoDe6Caracteres:O,desabilitarBotaoDeCadastro:b}=a1(),K=typeof C=="string"?(0,o.jsx)("img",{src:C,alt:"Logo do sistema"}):C;return(0,o.jsx)(g,S(h({},s),{children:(0,o.jsxs)(e1,{children:[(0,o.jsxs)(r1,{children:[C&&(0,o.jsx)("div",{children:K}),(0,o.jsxs)(T.Typography,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",e,"."]})]}),(0,o.jsx)(I.Form,{onSubmit:r,defaultValues:{email:n,termosDeUso:!1},children:({watch:Z})=>{let P=f(Z("senha")),z=x(Z("senha")),i2=O(Z("senha"));return(0,o.jsxs)(i1,{children:[(0,o.jsx)(I.TextField,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),(0,o.jsxs)(n1,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(I.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:R}),(0,o.jsx)(I.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:n2=>{if(!n2)return"Campo obrigat\xF3rio";if(n2!==Z("senha"))return"As senhas devem ser iguais"}}})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(T.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,o.jsxs)(t1,{children:[(0,o.jsxs)(u2,{checked:Boolean(P),children:[P&&(0,o.jsx)(T.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,o.jsx)(T.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,o.jsxs)(u2,{checked:Boolean(z),children:[z&&(0,o.jsx)(T.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,o.jsx)(T.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,o.jsxs)(u2,{checked:Boolean(i2),children:[i2&&(0,o.jsx)(T.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,o.jsx)(T.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,o.jsx)("div",{children:(0,o.jsx)(I.Checkbox,{name:"termosDeUso",label:(0,o.jsxs)("div",{style:{display:"flex",gap:4},children:[(0,o.jsx)("span",{children:"Li e aceito os"}),(0,o.jsx)("a",{href:a,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),(0,o.jsx)("div",{children:(0,o.jsx)(T.Button,{type:"submit",fullWidth:!0,disabled:b(Z()),children:"Concluir meu cadastro"})})]})}})]})}))}var e2=require("@s_mart/core"),U=require("@s_mart/form");var y2=require("react");var C2=w(require("react"),1);var B=w(require("react")),e5=require("react-dom");var r5=w(m1());var i5="SnackbarContent",B5={root:i5+"-root"};var D="SnackbarItem",O5={contentRoot:D+"-contentRoot",lessPadding:D+"-lessPadding",variantSuccess:D+"-variantSuccess",variantError:D+"-variantError",variantInfo:D+"-variantInfo",variantWarning:D+"-variantWarning",message:D+"-message",action:D+"-action",wrappedRoot:D+"-wrappedRoot"};var j="SnackbarContainer",R5={root:j+"-root",rootDense:j+"-rootDense",top:j+"-top",bottom:j+"-bottom",left:j+"-left",right:j+"-right",center:j+"-center"};var D5=process.env.NODE_ENV!=="production";var x2=w(require("@emotion/styled"),1);var g1=w(require("@emotion/styled"),1),N=require("@emotion/react");var n5=require("react/jsx-runtime"),Z1=require("react/jsx-runtime"),D2=require("react/jsx-runtime"),v1=require("react");var M1=()=>{let[C,e]=(0,y2.useState)(!1);return(0,y2.useEffect)(()=>{let r=a=>{a.key==="CapsLock"&&e(a.getModifierState("CapsLock"))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[]),C};var _=({defaultValue:C}={})=>{let e=typeof window!="undefined",r=C2.default.useCallback(()=>{if(!e){if(C){let{width:u=0,height:c=0}=C;return{width:u,height:c}}return{width:0,height:0}}return{width:window.innerWidth,height:window.innerHeight}},[e,C]),[a,n]=C2.default.useState(r()),s=C2.default.useCallback(()=>{n(r())},[n,r]);return C2.default.useEffect(()=>e?(window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}):()=>{},[s,e]),a},z5=x2.default.div`
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
|
-
|
|
155
|
+
justify-content: space-between;
|
|
156
|
+
gap: ${i(8)};
|
|
156
157
|
|
|
157
158
|
background-color: white;
|
|
158
159
|
border-radius: 4px;
|
|
159
|
-
padding: ${
|
|
160
|
+
padding: ${i(16)} ${i(16)};
|
|
160
161
|
|
|
161
162
|
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
162
163
|
|
|
163
164
|
border-left: 6px solid
|
|
164
|
-
${({variant:
|
|
165
|
+
${({variant:C})=>{switch(C){case"error":return H.red[300];case"warning":return H.yellow[300];case"info":return H.blue[100];default:case"success":return H.green[300]}}};
|
|
165
166
|
|
|
166
|
-
> div
|
|
167
|
+
> div {
|
|
167
168
|
display: flex;
|
|
168
169
|
align-items: center;
|
|
169
|
-
gap: ${
|
|
170
|
+
gap: ${i(8)};
|
|
170
171
|
}
|
|
171
|
-
`,
|
|
172
|
+
`,W5=x2.default.div`
|
|
172
173
|
display: flex;
|
|
173
174
|
flex-direction: column;
|
|
174
175
|
justify-content: center;
|
|
175
176
|
|
|
176
177
|
> *:first-of-type {
|
|
177
|
-
margin-bottom: ${
|
|
178
|
+
margin-bottom: ${i(4)};
|
|
178
179
|
}
|
|
179
|
-
`,
|
|
180
|
+
`,j5=x2.default.div`
|
|
180
181
|
cursor: pointer;
|
|
181
182
|
align-self: flex-start;
|
|
182
|
-
|
|
183
|
+
`,Y5=g1.default.i`
|
|
184
|
+
align-self: center;
|
|
185
|
+
display: inline-flex;
|
|
186
|
+
color: ${({color:C})=>C};
|
|
187
|
+
|
|
188
|
+
user-select: none;
|
|
189
|
+
|
|
190
|
+
svg {
|
|
191
|
+
z-index: 0 !important;
|
|
192
|
+
outline: 0 !important;
|
|
193
|
+
|
|
194
|
+
${({left:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&N.css`
|
|
195
|
+
left: ${C};
|
|
196
|
+
`}
|
|
197
|
+
|
|
198
|
+
${({right:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&N.css`
|
|
199
|
+
right: ${C};
|
|
200
|
+
`}
|
|
201
|
+
|
|
202
|
+
${({top:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&N.css`
|
|
203
|
+
top: ${C};
|
|
204
|
+
`}
|
|
205
|
+
|
|
206
|
+
${({bottom:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&N.css`
|
|
207
|
+
bottom: ${C};
|
|
208
|
+
`}
|
|
209
|
+
|
|
210
|
+
${({color:C})=>{let e=C;return C==="inherit"&&(e="currentColor"),N.css`
|
|
211
|
+
fill: ${e};
|
|
212
|
+
`}}
|
|
213
|
+
position: relative;
|
|
214
|
+
|
|
215
|
+
height: ${({height:C})=>C} !important;
|
|
216
|
+
width: ${({width:C})=>C} !important;
|
|
217
|
+
|
|
218
|
+
${({removeMargin:C})=>C?N.css`
|
|
219
|
+
margin: 0;
|
|
220
|
+
`:N.css`
|
|
221
|
+
margin: 0 ${i(4)};
|
|
222
|
+
`}
|
|
223
|
+
}
|
|
224
|
+
`;var b2=w(require("@emotion/styled"));var h1=b2.default.div`
|
|
183
225
|
display: grid;
|
|
184
|
-
gap: ${
|
|
185
|
-
`,
|
|
226
|
+
gap: ${i(32)};
|
|
227
|
+
`,y1=b2.default.header`
|
|
186
228
|
display: grid;
|
|
187
229
|
text-align: center;
|
|
188
|
-
gap: ${
|
|
189
|
-
`,
|
|
230
|
+
gap: ${i(16)};
|
|
231
|
+
`,x1=b2.default.div`
|
|
190
232
|
display: grid;
|
|
191
|
-
gap: ${
|
|
233
|
+
gap: ${i(16)};
|
|
192
234
|
|
|
193
235
|
> div {
|
|
194
236
|
display: grid;
|
|
195
|
-
gap: ${
|
|
237
|
+
gap: ${i(16)};
|
|
196
238
|
}
|
|
197
239
|
|
|
198
240
|
> div:last-of-type {
|
|
199
|
-
gap: ${
|
|
241
|
+
gap: ${i(8)};
|
|
200
242
|
}
|
|
201
|
-
`;var
|
|
243
|
+
`;var V=require("react/jsx-runtime");function b1(s){var u=s,{logo:C,initialValues:e,onSubmit:r,onEsqueciMinhaSenha:a}=u,n=E(u,["logo","initialValues","onSubmit","onEsqueciMinhaSenha"]);let c=typeof C=="string"?(0,V.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:f}=_(),x=M1();return(0,V.jsx)(g,S(h({},n),{paperStyle:{minWidth:f>500?456:void 0,width:f>500?void 0:"90%"},children:(0,V.jsxs)(h1,{children:[(0,V.jsx)(y1,{children:C&&(0,V.jsx)("div",{children:c})}),(0,V.jsx)(U.Form,{onSubmit:r,defaultValues:h({manterConectado:!1},e),children:(0,V.jsxs)(x1,{children:[(0,V.jsxs)("div",{children:[(0,V.jsx)(U.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:d2([R,c2])}),(0,V.jsxs)("div",{children:[(0,V.jsx)(U.TextField,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:R}),x&&(0,V.jsx)(e2.Indicator,{severity:"warning",children:"Capslock ativado"})]})]}),(0,V.jsx)(U.Checkbox,{name:"manterConectado",label:"Manter conectado"}),(0,V.jsxs)("div",{children:[(0,V.jsx)(e2.Button,{type:"submit",fullWidth:!0,children:"Entrar"}),a&&(0,V.jsx)(e2.Button,{type:"button",fullWidth:!0,variant:"text",children:"Esqueci minha senha"})]})]})})]})}))}var q=require("@s_mart/core");var F2=w(require("@emotion/styled"));var S1=F2.default.div`
|
|
202
244
|
display: grid;
|
|
203
|
-
gap: ${
|
|
245
|
+
gap: ${i(32)};
|
|
204
246
|
|
|
205
247
|
> div {
|
|
206
248
|
display: grid;
|
|
207
|
-
gap: ${
|
|
249
|
+
gap: ${i(16)};
|
|
208
250
|
}
|
|
209
|
-
|
|
251
|
+
`,E1=F2.default.header`
|
|
210
252
|
display: grid;
|
|
211
253
|
text-align: center;
|
|
212
|
-
gap: ${
|
|
213
|
-
`;var
|
|
254
|
+
gap: ${i(16)};
|
|
255
|
+
`;var M=require("react/jsx-runtime");function w1(n){var s=n,{logo:C,onPrecisoDeAjuda:e,onRealizarAcesso:r}=s,a=E(s,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let u=typeof C=="string"?(0,M.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:c}=_();return(0,M.jsx)(g,S(h({},a),{paperStyle:{minWidth:c>500?456:void 0,width:c>500?void 0:"90%"},children:(0,M.jsxs)(S1,{children:[(0,M.jsxs)("div",{children:[(0,M.jsx)(E1,{children:C&&(0,M.jsx)("div",{children:u})}),(0,M.jsxs)("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:4},children:[(0,M.jsx)(q.Typography,{variant:"bodyMD",children:"O convite que voc\xEA utilizou, j\xE1 foi usado ou expirou."}),(0,M.jsx)(q.Typography,{variant:"titleSM",children:"Realize o acesso ou solicite um novo convite."})]})]}),(0,M.jsxs)("div",{children:[(0,M.jsx)(q.Button,{fullWidth:!0,onClick:r,children:"Realizar acesso"}),(0,M.jsxs)(q.Button,{fullWidth:!0,variant:"outlined",onClick:e,style:{display:"flex",gap:8},children:[(0,M.jsx)(q.LIcon,{icon:s2,size:"20px",removeMargin:!0,color:H.green[300]}),"Preciso de ajuda"]})]})]})}))}var r2=require("@s_mart/core");var I2=w(require("@emotion/styled"));var T1=I2.default.div`
|
|
214
256
|
display: grid;
|
|
215
|
-
gap: ${
|
|
257
|
+
gap: ${i(32)};
|
|
216
258
|
|
|
217
259
|
> div {
|
|
218
260
|
display: grid;
|
|
219
|
-
gap: ${
|
|
261
|
+
gap: ${i(16)};
|
|
220
262
|
}
|
|
221
|
-
`,
|
|
263
|
+
`,k1=I2.default.header`
|
|
222
264
|
display: grid;
|
|
223
265
|
text-align: center;
|
|
224
|
-
gap: ${
|
|
225
|
-
`;var
|
|
266
|
+
gap: ${i(16)};
|
|
267
|
+
`;var $=require("react/jsx-runtime");function $1(a){var n=a,{logo:C,onVoltarParaLogin:e}=n,r=E(n,["logo","onVoltarParaLogin"]);let s=typeof C=="string"?(0,$.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:u}=_();return(0,$.jsx)(g,S(h({},r),{paperStyle:{minWidth:u>500?456:void 0,width:u>500?void 0:"90%"},children:(0,$.jsxs)(T1,{children:[(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,$.jsx)(k1,{children:C&&(0,$.jsx)("div",{children:s})}),(0,$.jsx)(r2.Typography,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),(0,$.jsx)(r2.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,$.jsx)(r2.Button,{fullWidth:!0,onClick:e,children:"Voltar para login"})]})}))}var k=require("@s_mart/core"),G=require("@s_mart/form");var Y=w(require("@emotion/styled"));var P1=Y.default.div`
|
|
226
268
|
display: grid;
|
|
227
|
-
gap: ${
|
|
228
|
-
`,
|
|
269
|
+
gap: ${i(32)};
|
|
270
|
+
`,A1=Y.default.header`
|
|
229
271
|
display: grid;
|
|
230
272
|
text-align: center;
|
|
231
|
-
gap: ${
|
|
232
|
-
`,
|
|
273
|
+
gap: ${i(16)};
|
|
274
|
+
`,B1=Y.default.div`
|
|
233
275
|
display: grid;
|
|
234
|
-
gap: ${
|
|
235
|
-
`,
|
|
276
|
+
gap: ${i(32)};
|
|
277
|
+
`,O1=Y.default.div`
|
|
236
278
|
display: grid;
|
|
237
|
-
gap: ${
|
|
279
|
+
gap: ${i(4)};
|
|
238
280
|
|
|
239
281
|
> div:first-of-type {
|
|
240
282
|
display: grid;
|
|
241
283
|
grid-template-columns: 1fr 1fr;
|
|
242
|
-
gap: ${
|
|
284
|
+
gap: ${i(16)};
|
|
243
285
|
|
|
244
286
|
@media (max-width: 768px) {
|
|
245
287
|
grid-template-columns: 1fr;
|
|
246
|
-
gap: ${
|
|
288
|
+
gap: ${i(8)};
|
|
247
289
|
}
|
|
248
290
|
}
|
|
249
291
|
|
|
250
292
|
> div:last-of-type {
|
|
251
293
|
display: grid;
|
|
252
|
-
gap: ${
|
|
294
|
+
gap: ${i(4)};
|
|
253
295
|
}
|
|
254
|
-
`,
|
|
296
|
+
`,R1=Y.default.div`
|
|
255
297
|
display: flex;
|
|
256
298
|
flex-wrap: wrap;
|
|
257
|
-
gap: ${
|
|
258
|
-
`,
|
|
299
|
+
gap: ${i(8)};
|
|
300
|
+
`,S2=Y.default.div`
|
|
259
301
|
display: flex;
|
|
260
302
|
align-items: center;
|
|
261
|
-
gap: ${
|
|
303
|
+
gap: ${i(4)};
|
|
262
304
|
|
|
263
|
-
color: ${
|
|
264
|
-
border: 1px solid ${
|
|
265
|
-
border-radius: ${
|
|
266
|
-
padding: ${
|
|
305
|
+
color: ${H.neutral[600]};
|
|
306
|
+
border: 1px solid ${H.neutral[600]};
|
|
307
|
+
border-radius: ${i(4)};
|
|
308
|
+
padding: ${i(3)} ${i(4)};
|
|
267
309
|
|
|
268
310
|
line-height: 1em;
|
|
269
311
|
vertical-align: middle;
|
|
270
312
|
|
|
271
|
-
${({checked:
|
|
272
|
-
color: ${
|
|
273
|
-
border-color: ${
|
|
313
|
+
${({checked:C})=>{if(C)return`
|
|
314
|
+
color: ${H.green[300]};
|
|
315
|
+
border-color: ${H.green[300]};
|
|
274
316
|
`}}
|
|
275
|
-
`;function
|
|
317
|
+
`;function D1(){let C=n=>n?n.match(/[a-z]/i):!1,e=n=>n?n.match(/[0-9]/i):!1,r=n=>n?n.length>=6:!1;return{senhaContemLetra:C,senhaContemNumero:e,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:n=>!n.email||!n.senha||!n.confirmarSenha||!C(n.senha)||!e(n.senha)||!r(n.senha)}}var d=require("react/jsx-runtime");function F1(n){var s=n,{logo:C,onTrocarMinhaSenha:e,email:r}=s,a=E(s,["logo","onTrocarMinhaSenha","email"]);let{senhaContemLetra:u,senhaContemNumero:c,senhaContemMinimoDe6Caracteres:f,desabilitarBotaoDeCadastro:x}=D1(),O=typeof C=="string"?(0,d.jsx)("img",{src:C,alt:"Logo do sistema"}):C;return(0,d.jsx)(g,S(h({},a),{children:(0,d.jsxs)(P1,{children:[(0,d.jsxs)(A1,{children:[C&&(0,d.jsx)("div",{children:O}),(0,d.jsx)(k.Typography,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),(0,d.jsx)(G.Form,{onSubmit:e,defaultValues:{email:r},children:({watch:b})=>{let K=u(b("senha")),Z=c(b("senha")),P=f(b("senha"));return(0,d.jsxs)(B1,{children:[(0,d.jsx)(G.TextField,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),(0,d.jsxs)(O1,{children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(G.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:R}),(0,d.jsx)(G.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:z=>{if(!z)return"Campo obrigat\xF3rio";if(z!==b("senha"))return"As senhas devem ser iguais"}}})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(k.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,d.jsxs)(R1,{children:[(0,d.jsxs)(S2,{checked:Boolean(K),children:[K&&(0,d.jsx)(k.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,d.jsx)(k.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,d.jsxs)(S2,{checked:Boolean(Z),children:[Z&&(0,d.jsx)(k.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,d.jsx)(k.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,d.jsxs)(S2,{checked:Boolean(P),children:[P&&(0,d.jsx)(k.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,d.jsx)(k.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,d.jsx)("div",{children:(0,d.jsx)(k.Button,{type:"submit",fullWidth:!0,disabled:x(b()),children:"Trocar minha senha"})})]})}})]})}))}var Q=require("@s_mart/core");var E2=w(require("@emotion/styled"));var I1=E2.default.div`
|
|
276
318
|
display: grid;
|
|
277
|
-
gap: ${
|
|
319
|
+
gap: ${i(32)};
|
|
278
320
|
|
|
279
321
|
> div {
|
|
280
322
|
display: grid;
|
|
281
|
-
gap: ${
|
|
323
|
+
gap: ${i(16)};
|
|
282
324
|
}
|
|
283
|
-
`,
|
|
325
|
+
`,N1=E2.default.header`
|
|
284
326
|
display: grid;
|
|
285
327
|
text-align: center;
|
|
286
|
-
gap: ${
|
|
287
|
-
`,
|
|
328
|
+
gap: ${i(16)};
|
|
329
|
+
`,_1=E2.default.div`
|
|
288
330
|
display: grid;
|
|
289
|
-
gap: ${
|
|
331
|
+
gap: ${i(32)};
|
|
290
332
|
|
|
291
333
|
> div:last-of-type {
|
|
292
334
|
display: grid;
|
|
293
|
-
gap: ${
|
|
335
|
+
gap: ${i(16)};
|
|
294
336
|
}
|
|
295
|
-
`;var
|
|
337
|
+
`;var w2=require("@s_mart/form");var m=require("react/jsx-runtime");function q1(n){var s=n,{logo:C,onVoltarParaLogin:e,onConfirmar:r}=s,a=E(s,["logo","onVoltarParaLogin","onConfirmar"]);let u=typeof C=="string"?(0,m.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:c}=_();return(0,m.jsx)(g,S(h({},a),{paperStyle:{minWidth:c>500?456:void 0,width:c>500?void 0:"90%"},children:(0,m.jsxs)(I1,{children:[(0,m.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,m.jsx)(N1,{children:C&&(0,m.jsx)("div",{children:u})}),(0,m.jsx)(Q.Typography,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),(0,m.jsx)(Q.Typography,{variant:"bodySM",textAlign:"center",children:"Informe seu e-mail de acesso para receber instru\xE7\xF5es e criar uma nova senha."})]}),(0,m.jsx)(w2.Form,{onSubmit:r,children:(0,m.jsxs)(_1,{children:[(0,m.jsx)("div",{children:(0,m.jsx)(w2.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:d2([R,c2])})}),(0,m.jsxs)("div",{children:[(0,m.jsx)(Q.Button,{fullWidth:!0,type:"submit",children:"Confirmar"}),(0,m.jsx)(Q.Button,{fullWidth:!0,onClick:e,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}0&&(module.exports={TelaCadastro,TelaConviteExpirado,TelaEsqueceuSenha,TelaInstrucoesEnviadas,TelaLogin,TelaNovaSenha,TemplateTelaBase});
|
|
296
338
|
/** @license React v16.13.1
|
|
297
339
|
* react-is.development.js
|
|
298
340
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=Object.getOwnPropertyDescriptor,H3=Object.getOwnPropertyDescriptors,p3=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,V3=Object.getPrototypeOf,Z2=Object.prototype.hasOwnProperty,I2=Object.prototype.propertyIsEnumerable;var F2=(C,e,r)=>e in C?g2(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,M=(C,e)=>{for(var r in e||(e={}))Z2.call(e,r)&&F2(C,r,e[r]);if(J)for(var r of J(e))I2.call(e,r)&&F2(C,r,e[r]);return C},y=(C,e)=>c3(C,H3(e));var x=(C,e)=>{var r={};for(var a in C)Z2.call(C,a)&&e.indexOf(a)<0&&(r[a]=C[a]);if(C!=null&&J)for(var a of J(C))e.indexOf(a)<0&&I2.call(C,a)&&(r[a]=C[a]);return r};var C2=(C,e)=>()=>(e||C((e={exports:{}}).exports,e),e.exports);var f3=(C,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p3(e))!Z2.call(C,n)&&n!==r&&g2(C,n,{get:()=>e[n],enumerable:!(a=u3(e,n))||a.enumerable});return C};var m3=(C,e,r)=>(r=C!=null?d3(V3(C)):{},f3(e||!C||!C.__esModule?g2(r,"default",{value:C,enumerable:!0}):r,C));var e1=C2(s=>{"use strict";var H=typeof Symbol=="function"&&Symbol.for,x2=H?Symbol.for("react.element"):60103,b2=H?Symbol.for("react.portal"):60106,a2=H?Symbol.for("react.fragment"):60107,o2=H?Symbol.for("react.strict_mode"):60108,s2=H?Symbol.for("react.profiler"):60114,l2=H?Symbol.for("react.provider"):60109,L2=H?Symbol.for("react.context"):60110,S2=H?Symbol.for("react.async_mode"):60111,d2=H?Symbol.for("react.concurrent_mode"):60111,c2=H?Symbol.for("react.forward_ref"):60112,u2=H?Symbol.for("react.suspense"):60113,z3=H?Symbol.for("react.suspense_list"):60120,H2=H?Symbol.for("react.memo"):60115,p2=H?Symbol.for("react.lazy"):60116,W3=H?Symbol.for("react.block"):60121,j3=H?Symbol.for("react.fundamental"):60117,U3=H?Symbol.for("react.responder"):60118,Y3=H?Symbol.for("react.scope"):60119;function Z(C){if(typeof C=="object"&&C!==null){var e=C.$$typeof;switch(e){case x2:switch(C=C.type,C){case S2:case d2:case a2:case s2:case o2:case u2:return C;default:switch(C=C&&C.$$typeof,C){case L2:case c2:case p2:case H2:case l2:return C;default:return e}}case b2:return e}}}function C1(C){return Z(C)===d2}s.AsyncMode=S2;s.ConcurrentMode=d2;s.ContextConsumer=L2;s.ContextProvider=l2;s.Element=x2;s.ForwardRef=c2;s.Fragment=a2;s.Lazy=p2;s.Memo=H2;s.Portal=b2;s.Profiler=s2;s.StrictMode=o2;s.Suspense=u2;s.isAsyncMode=function(C){return C1(C)||Z(C)===S2};s.isConcurrentMode=C1;s.isContextConsumer=function(C){return Z(C)===L2};s.isContextProvider=function(C){return Z(C)===l2};s.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===x2};s.isForwardRef=function(C){return Z(C)===c2};s.isFragment=function(C){return Z(C)===a2};s.isLazy=function(C){return Z(C)===p2};s.isMemo=function(C){return Z(C)===H2};s.isPortal=function(C){return Z(C)===b2};s.isProfiler=function(C){return Z(C)===s2};s.isStrictMode=function(C){return Z(C)===o2};s.isSuspense=function(C){return Z(C)===u2};s.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===a2||C===d2||C===s2||C===o2||C===u2||C===z3||typeof C=="object"&&C!==null&&(C.$$typeof===p2||C.$$typeof===H2||C.$$typeof===l2||C.$$typeof===L2||C.$$typeof===c2||C.$$typeof===j3||C.$$typeof===U3||C.$$typeof===Y3||C.$$typeof===W3)};s.typeOf=Z});var r1=C2(l=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var C=typeof Symbol=="function"&&Symbol.for,e=C?Symbol.for("react.element"):60103,r=C?Symbol.for("react.portal"):60106,a=C?Symbol.for("react.fragment"):60107,n=C?Symbol.for("react.strict_mode"):60108,o=C?Symbol.for("react.profiler"):60114,d=C?Symbol.for("react.provider"):60109,L=C?Symbol.for("react.context"):60110,p=C?Symbol.for("react.async_mode"):60111,v=C?Symbol.for("react.concurrent_mode"):60111,k=C?Symbol.for("react.forward_ref"):60112,h=C?Symbol.for("react.suspense"):60113,N=C?Symbol.for("react.suspense_list"):60120,f=C?Symbol.for("react.memo"):60115,w=C?Symbol.for("react.lazy"):60116,R=C?Symbol.for("react.block"):60121,X=C?Symbol.for("react.fundamental"):60117,G=C?Symbol.for("react.responder"):60118,D1=C?Symbol.for("react.scope"):60119;function F1(t){return typeof t=="string"||typeof t=="function"||t===a||t===v||t===o||t===n||t===h||t===N||typeof t=="object"&&t!==null&&(t.$$typeof===w||t.$$typeof===f||t.$$typeof===d||t.$$typeof===L||t.$$typeof===k||t.$$typeof===X||t.$$typeof===G||t.$$typeof===D1||t.$$typeof===R)}function m(t){if(typeof t=="object"&&t!==null){var M2=t.$$typeof;switch(M2){case e:var Q=t.type;switch(Q){case p:case v:case a:case o:case n:case h:return Q;default:var D2=Q&&Q.$$typeof;switch(D2){case L:case k:case w:case f:case d:return D2;default:return M2}}case r:return M2}}}var I1=p,N1=v,_1=L,q1=d,z1=e,W1=k,j1=a,U1=w,Y1=f,K1=r,X1=o,G1=n,Q1=h,O2=!1;function J1(t){return O2||(O2=!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.")),R2(t)||m(t)===p}function R2(t){return m(t)===v}function C3(t){return m(t)===L}function e3(t){return m(t)===d}function r3(t){return typeof t=="object"&&t!==null&&t.$$typeof===e}function i3(t){return m(t)===k}function n3(t){return m(t)===a}function t3(t){return m(t)===w}function a3(t){return m(t)===f}function o3(t){return m(t)===r}function s3(t){return m(t)===o}function l3(t){return m(t)===n}function L3(t){return m(t)===h}l.AsyncMode=I1,l.ConcurrentMode=N1,l.ContextConsumer=_1,l.ContextProvider=q1,l.Element=z1,l.ForwardRef=W1,l.Fragment=j1,l.Lazy=U1,l.Memo=Y1,l.Portal=K1,l.Profiler=X1,l.StrictMode=G1,l.Suspense=Q1,l.isAsyncMode=J1,l.isConcurrentMode=R2,l.isContextConsumer=C3,l.isContextProvider=e3,l.isElement=r3,l.isForwardRef=i3,l.isFragment=n3,l.isLazy=t3,l.isMemo=a3,l.isPortal=o3,l.isProfiler=s3,l.isStrictMode=l3,l.isSuspense=L3,l.isValidElementType=F1,l.typeOf=m}()});var i1=C2((C4,E2)=>{"use strict";process.env.NODE_ENV==="production"?E2.exports=e1():E2.exports=r1()});var L1=C2((e4,l1)=>{"use strict";var w2=i1(),K3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},X3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},T2={};T2[w2.ForwardRef]=G3;T2[w2.Memo]=o1;function n1(C){return w2.isMemo(C)?o1:T2[C.$$typeof]||K3}var Q3=Object.defineProperty,J3=Object.getOwnPropertyNames,t1=Object.getOwnPropertySymbols,C5=Object.getOwnPropertyDescriptor,e5=Object.getPrototypeOf,a1=Object.prototype;function s1(C,e,r){if(typeof e!="string"){if(a1){var a=e5(e);a&&a!==a1&&s1(C,a,r)}var n=J3(e);t1&&(n=n.concat(t1(e)));for(var o=n1(C),d=n1(e),L=0;L<n.length;++L){var p=n[L];if(!X3[p]&&!(r&&r[p])&&!(d&&d[p])&&!(o&&o[p])){var v=C5(e,p);try{Q3(C,p,v)}catch(k){}}}}return C}l1.exports=s1});import{LIcon as k3,Typography as $3}from"@s_mart/core";import{telefone as P3}from"@s_mart/masks";var A={description:"M37.4802 11.2595L18.4955 30.6836L11.5198 23.5465C11.1816 23.2004 10.6333 23.2004 10.295 23.5465L8.25365 25.635C7.91545 25.9811 7.91545 26.5421 8.25365 26.8882L17.8831 36.7405C18.2213 37.0865 18.7696 37.0865 19.1079 36.7405L40.7463 14.6013C41.0845 14.2553 41.0845 13.6942 40.7463 13.3481L38.705 11.2595C38.3668 10.9135 37.8184 10.9135 37.4802 11.2595Z",viewBox:"0 0 48 48",id:"line-check-regular"};var e2={description:"M35.2071 12.65C32.2143 9.65 28.2286 8 23.9929 8C15.25 8 8.13571 15.1143 8.13571 23.8571C8.13571 26.65 8.86429 29.3786 10.25 31.7857L8 40L16.4071 37.7929C18.7214 39.0571 21.3286 39.7214 23.9857 39.7214H23.9929C32.7286 39.7214 40 32.6071 40 23.8643C40 19.6286 38.2 15.65 35.2071 12.65ZM23.9929 37.05C21.6214 37.05 19.3 36.4143 17.2786 35.2143L16.8 34.9286L11.8143 36.2357L13.1429 31.3714L12.8286 30.8714C11.5071 28.7714 10.8143 26.35 10.8143 23.8571C10.8143 16.5929 16.7286 10.6786 24 10.6786C27.5214 10.6786 30.8286 12.05 33.3143 14.5429C35.8 17.0357 37.3286 20.3429 37.3214 23.8643C37.3214 31.1357 31.2571 37.05 23.9929 37.05ZM31.2214 27.1786C30.8286 26.9786 28.8786 26.0214 28.5143 25.8929C28.15 25.7571 27.8857 25.6929 27.6214 26.0929C27.3571 26.4929 26.6 27.3786 26.3643 27.65C26.1357 27.9143 25.9 27.95 25.5071 27.75C23.1786 26.5857 21.65 25.6714 20.1143 23.0357C19.7071 22.3357 20.5214 22.3857 21.2786 20.8714C21.4071 20.6071 21.3429 20.3786 21.2429 20.1786C21.1429 19.9786 20.35 18.0286 20.0214 17.2357C19.7 16.4643 19.3714 16.5714 19.1286 16.5571C18.9 16.5429 18.6357 16.5429 18.3714 16.5429C18.1071 16.5429 17.6786 16.6429 17.3143 17.0357C16.95 17.4357 15.9286 18.3929 15.9286 20.3429C15.9286 22.2929 17.35 24.1786 17.5429 24.4429C17.7429 24.7071 20.3357 28.7071 24.3143 30.4286C26.8286 31.5143 27.8143 31.6071 29.0714 31.4214C29.8357 31.3071 31.4143 30.4643 31.7429 29.5357C32.0714 28.6071 32.0714 27.8143 31.9714 27.65C31.8786 27.4714 31.6143 27.3714 31.2214 27.1786Z",viewBox:"0 0 48 48",id:"line-whatsapp-regular"};var i=C=>`${C/16}rem`;import z from"@emotion/styled";var M3=Object.defineProperty,g3=(C,e)=>{for(var r in e)M3(C,r,{get:e[r],enumerable:!0})},c={};g3(c,{blue:()=>v3,green:()=>b3,neutral:()=>T3,red:()=>y3,yellow:()=>E3});var Z3={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},v3=Z3,h3={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},y3=h3,x3={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},b3=x3,S3={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},E3=S3,w3={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},T3=w3;var N2=z.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -8,17 +8,17 @@ var lt=Object.create;var ve=Object.defineProperty,ct=Object.defineProperties,ut=
|
|
|
8
8
|
|
|
9
9
|
height: 100vh;
|
|
10
10
|
|
|
11
|
-
background-color: ${({theme:
|
|
11
|
+
background-color: ${({theme:C})=>C.palette.primary.main};
|
|
12
12
|
transition: background-color 0.3s ease-in-out;
|
|
13
13
|
|
|
14
14
|
@media (max-width: 500px) {
|
|
15
|
-
background-color: ${({theme:
|
|
15
|
+
background-color: ${({theme:C})=>C.palette.common.white};
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@media (max-height: 650px) {
|
|
19
19
|
justify-content: flex-start;
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,_2=z.div`
|
|
22
22
|
position: absolute;
|
|
23
23
|
left: 0;
|
|
24
24
|
bottom: 32px;
|
|
@@ -27,26 +27,26 @@ var lt=Object.create;var ve=Object.defineProperty,ct=Object.defineProperties,ut=
|
|
|
27
27
|
@media (max-width: 768px) {
|
|
28
28
|
display: none;
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,q2=z.h1`
|
|
31
31
|
position: absolute;
|
|
32
32
|
left: 32px;
|
|
33
33
|
top: 32px;
|
|
34
34
|
|
|
35
|
-
color: ${({theme:
|
|
36
|
-
font-size: ${
|
|
35
|
+
color: ${({theme:C})=>C.palette.common.white};
|
|
36
|
+
font-size: ${i(32)};
|
|
37
37
|
line-height: 150%;
|
|
38
38
|
font-weight: normal;
|
|
39
39
|
|
|
40
40
|
@media (max-width: 768px) {
|
|
41
41
|
left: 16px;
|
|
42
42
|
top: 16px;
|
|
43
|
-
font-size: ${
|
|
43
|
+
font-size: ${i(24)};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@media (max-height: 830px) {
|
|
47
47
|
left: 16px;
|
|
48
48
|
top: 16px;
|
|
49
|
-
font-size: ${
|
|
49
|
+
font-size: ${i(24)};
|
|
50
50
|
|
|
51
51
|
@media (max-width: 768px) {
|
|
52
52
|
display: none;
|
|
@@ -59,240 +59,282 @@ var lt=Object.create;var ve=Object.defineProperty,ct=Object.defineProperties,ut=
|
|
|
59
59
|
|
|
60
60
|
span {
|
|
61
61
|
background-color: #262626;
|
|
62
|
-
padding: ${
|
|
63
|
-
border-radius: ${
|
|
62
|
+
padding: ${i(4)} ${i(8)};
|
|
63
|
+
border-radius: ${i(12)};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
@media (max-width: 500px) {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,z2=z.div`
|
|
70
70
|
position: relative;
|
|
71
71
|
z-index: 2;
|
|
72
72
|
|
|
73
|
-
padding: ${
|
|
74
|
-
border-radius: ${
|
|
75
|
-
margin: ${
|
|
73
|
+
padding: ${i(32)};
|
|
74
|
+
border-radius: ${i(24)};
|
|
75
|
+
margin: ${i(16)};
|
|
76
76
|
|
|
77
|
-
background-color: ${({theme:
|
|
78
|
-
`,
|
|
77
|
+
background-color: ${({theme:C})=>C.palette.common.white};
|
|
78
|
+
`,W2=z.button`
|
|
79
79
|
position: relative;
|
|
80
80
|
z-index: 2;
|
|
81
81
|
|
|
82
|
-
background-color: ${({theme:
|
|
83
|
-
padding: ${
|
|
82
|
+
background-color: ${({theme:C})=>C.palette.primary.main};
|
|
83
|
+
padding: ${i(4)} ${i(8)};
|
|
84
84
|
border: none;
|
|
85
|
-
border-radius: ${
|
|
85
|
+
border-radius: ${i(8)};
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
|
|
88
88
|
display: flex;
|
|
89
89
|
align-items: center;
|
|
90
|
-
gap: ${
|
|
90
|
+
gap: ${i(4)};
|
|
91
91
|
|
|
92
|
-
color: ${({theme:
|
|
92
|
+
color: ${({theme:C})=>C.palette.common.white};
|
|
93
93
|
|
|
94
94
|
@media (max-width: 500px) {
|
|
95
|
-
color: ${({theme:
|
|
95
|
+
color: ${({theme:C})=>C.palette.common.black};
|
|
96
96
|
background-color: transparent;
|
|
97
97
|
|
|
98
98
|
svg {
|
|
99
|
-
color: ${
|
|
99
|
+
color: ${c.green[300]};
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`;import{jsx as W,jsxs as
|
|
102
|
+
`;import{jsx as W,jsxs as v2}from"react/jsx-runtime";function g({children:C,whatsapp:e,textoChamativo:r,style:a,paperStyle:n,ilustracao:o}){return v2(N2,{style:a,children:[r&&W(q2,{children:r}),o&&W(_2,{children:typeof o=="string"?W("img",{src:o,alt:"Logo do sistema"}):o}),W(z2,{style:n,children:C}),e&&v2(W2,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${e}`)},style:{marginBottom:16},children:[v2($3,{variant:"bodyXS",children:["Com d\xFAvidas? ",P3.format(e)]}),W(k3,{icon:e2,size:"20px",removeMargin:!0})]})]})}import{Button as I3,LIcon as h2,Typography as j}from"@s_mart/core";import{Checkbox as N3,Form as _3,TextField as y2}from"@s_mart/form";var A3=Object.defineProperty,B3=Object.defineProperties,O3=Object.getOwnPropertyDescriptors,j2=Object.getOwnPropertySymbols,R3=Object.prototype.hasOwnProperty,D3=Object.prototype.propertyIsEnumerable,U2=(C,e,r)=>e in C?A3(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,r2=(C,e)=>{for(var r in e||(e={}))R3.call(e,r)&&U2(C,r,e[r]);if(j2)for(var r of j2(e))D3.call(e,r)&&U2(C,r,e[r]);return C},F3=(C,e)=>B3(C,O3(e));var i2=C=>{let e={validate:{}};return C.forEach(r=>{e=F3(r2(r2({},e),r),{validate:r2(r2({},e.validate),r.validate)})}),e},$={validate:{required:C=>{if(!C)return"Campo obrigat\xF3rio"}}},n2={validate:{email:C=>{if(C&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(C))return"O email \xE9 inv\xE1lido"}}};import _ from"@emotion/styled";var Y2=_.div`
|
|
103
103
|
display: grid;
|
|
104
|
-
gap: ${
|
|
105
|
-
`,
|
|
104
|
+
gap: ${i(32)};
|
|
105
|
+
`,K2=_.header`
|
|
106
106
|
display: grid;
|
|
107
107
|
text-align: center;
|
|
108
|
-
gap: ${
|
|
109
|
-
`,
|
|
108
|
+
gap: ${i(16)};
|
|
109
|
+
`,X2=_.div`
|
|
110
110
|
display: grid;
|
|
111
|
-
gap: ${
|
|
112
|
-
`,
|
|
111
|
+
gap: ${i(32)};
|
|
112
|
+
`,G2=_.div`
|
|
113
113
|
display: grid;
|
|
114
|
-
gap: ${
|
|
114
|
+
gap: ${i(4)};
|
|
115
115
|
|
|
116
116
|
> div:first-of-type {
|
|
117
117
|
display: grid;
|
|
118
118
|
grid-template-columns: 1fr 1fr;
|
|
119
|
-
gap: ${
|
|
119
|
+
gap: ${i(16)};
|
|
120
120
|
|
|
121
121
|
@media (max-width: 768px) {
|
|
122
122
|
grid-template-columns: 1fr;
|
|
123
|
-
gap: ${
|
|
123
|
+
gap: ${i(8)};
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
> div:last-of-type {
|
|
128
128
|
display: grid;
|
|
129
|
-
gap: ${
|
|
129
|
+
gap: ${i(4)};
|
|
130
130
|
}
|
|
131
|
-
`,
|
|
131
|
+
`,Q2=_.div`
|
|
132
132
|
display: flex;
|
|
133
133
|
flex-wrap: wrap;
|
|
134
|
-
gap: ${
|
|
135
|
-
`,
|
|
134
|
+
gap: ${i(8)};
|
|
135
|
+
`,t2=_.div`
|
|
136
136
|
display: flex;
|
|
137
137
|
align-items: center;
|
|
138
|
-
gap: ${
|
|
138
|
+
gap: ${i(4)};
|
|
139
139
|
|
|
140
|
-
color: ${
|
|
141
|
-
border: 1px solid ${
|
|
142
|
-
border-radius: ${
|
|
143
|
-
padding: ${
|
|
140
|
+
color: ${c.neutral[600]};
|
|
141
|
+
border: 1px solid ${c.neutral[600]};
|
|
142
|
+
border-radius: ${i(4)};
|
|
143
|
+
padding: ${i(3)} ${i(4)};
|
|
144
144
|
|
|
145
145
|
line-height: 1em;
|
|
146
146
|
vertical-align: middle;
|
|
147
147
|
|
|
148
|
-
${({checked:
|
|
149
|
-
color: ${
|
|
150
|
-
border-color: ${
|
|
148
|
+
${({checked:C})=>{if(C)return`
|
|
149
|
+
color: ${c.green[300]};
|
|
150
|
+
border-color: ${c.green[300]};
|
|
151
151
|
`}}
|
|
152
|
-
`;function
|
|
152
|
+
`;function J2(){let C=n=>n?n.match(/[a-z]/i):!1,e=n=>n?n.match(/[0-9]/i):!1,r=n=>n?n.length>=6:!1;return{senhaContemLetra:C,senhaContemNumero:e,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:n=>!n.email||!n.senha||!n.confirmarSenha||!n.termosDeUso||!C(n.senha)||!e(n.senha)||!r(n.senha)}}import{jsx as u,jsxs as b}from"react/jsx-runtime";function q3(d){var L=d,{logo:C,nomeSistema:e,onSubmit:r,linkTermosDeUso:a,email:n}=L,o=x(L,["logo","nomeSistema","onSubmit","linkTermosDeUso","email"]);let{senhaContemLetra:p,senhaContemNumero:v,senhaContemMinimoDe6Caracteres:k,desabilitarBotaoDeCadastro:h}=J2(),N=typeof C=="string"?u("img",{src:C,alt:"Logo do sistema"}):C;return u(g,y(M({},o),{children:b(Y2,{children:[b(K2,{children:[C&&u("div",{children:N}),b(j,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",e,"."]})]}),u(_3,{onSubmit:r,defaultValues:{email:n,termosDeUso:!1},children:({watch:f})=>{let w=p(f("senha")),R=v(f("senha")),X=k(f("senha"));return b(X2,{children:[u(y2,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),b(G2,{children:[b("div",{children:[u(y2,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:$}),u(y2,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:G=>{if(!G)return"Campo obrigat\xF3rio";if(G!==f("senha"))return"As senhas devem ser iguais"}}})]}),b("div",{children:[u(j,{variant:"bodyXS",children:"Sua senha precisa conter:"}),b(Q2,{children:[b(t2,{checked:Boolean(w),children:[w&&u(h2,{icon:A,size:"16px",removeMargin:!0}),u(j,{variant:"bodyXS",children:"Uma letra"})]}),b(t2,{checked:Boolean(R),children:[R&&u(h2,{icon:A,size:"16px",removeMargin:!0}),u(j,{variant:"bodyXS",children:"Um n\xFAmero"})]}),b(t2,{checked:Boolean(X),children:[X&&u(h2,{icon:A,size:"16px",removeMargin:!0}),u(j,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),u("div",{children:u(N3,{name:"termosDeUso",label:b("div",{style:{display:"flex",gap:4},children:[u("span",{children:"Li e aceito os"}),u("a",{href:a,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),u("div",{children:u(I3,{type:"submit",fullWidth:!0,disabled:h(f()),children:"Concluir meu cadastro"})})]})}})]})}))}import{Button as p1,Indicator as o5}from"@s_mart/core";import{Checkbox as s5,Form as l5,TextField as V1}from"@s_mart/form";import{useEffect as n5,useState as t5}from"react";import V2 from"react";import n4,{forwardRef as t4,useRef as a4,useCallback as o4,useLayoutEffect as s4,useEffect as l4,createElement as L4,useState as d4,Component as c4,useContext as u4}from"react";import{createPortal as p4}from"react-dom";var r5=m3(L1());var i5="SnackbarContent",f4={root:i5+"-root"};var P="SnackbarItem",m4={contentRoot:P+"-contentRoot",lessPadding:P+"-lessPadding",variantSuccess:P+"-variantSuccess",variantError:P+"-variantError",variantInfo:P+"-variantInfo",variantWarning:P+"-variantWarning",message:P+"-message",action:P+"-action",wrappedRoot:P+"-wrappedRoot"};var D="SnackbarContainer",M4={root:D+"-root",rootDense:D+"-rootDense",top:D+"-top",bottom:D+"-bottom",left:D+"-left",right:D+"-right",center:D+"-center"};var g4=process.env.NODE_ENV!=="production";import k2 from"@emotion/styled";import a5 from"@emotion/styled";import{css as F}from"@emotion/react";import{jsx as R4}from"react/jsx-runtime";import{Fragment as F4,jsx as I4}from"react/jsx-runtime";import{Fragment as _4,jsx as q4,jsxs as z4}from"react/jsx-runtime";import{useEffect as j4,useRef as U4}from"react";var d1=()=>{let[C,e]=t5(!1);return n5(()=>{let r=a=>{a.key==="CapsLock"&&e(a.getModifierState("CapsLock"))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[]),C};var B=({defaultValue:C}={})=>{let e=typeof window!="undefined",r=V2.useCallback(()=>{if(!e){if(C){let{width:d=0,height:L=0}=C;return{width:d,height:L}}return{width:0,height:0}}return{width:window.innerWidth,height:window.innerHeight}},[e,C]),[a,n]=V2.useState(r()),o=V2.useCallback(()=>{n(r())},[n,r]);return V2.useEffect(()=>e?(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}):()=>{},[o,e]),a},w4=k2.div`
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
|
-
|
|
155
|
+
justify-content: space-between;
|
|
156
|
+
gap: ${i(8)};
|
|
156
157
|
|
|
157
158
|
background-color: white;
|
|
158
159
|
border-radius: 4px;
|
|
159
|
-
padding: ${
|
|
160
|
+
padding: ${i(16)} ${i(16)};
|
|
160
161
|
|
|
161
162
|
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
162
163
|
|
|
163
164
|
border-left: 6px solid
|
|
164
|
-
${({variant:
|
|
165
|
+
${({variant:C})=>{switch(C){case"error":return c.red[300];case"warning":return c.yellow[300];case"info":return c.blue[100];default:case"success":return c.green[300]}}};
|
|
165
166
|
|
|
166
|
-
> div
|
|
167
|
+
> div {
|
|
167
168
|
display: flex;
|
|
168
169
|
align-items: center;
|
|
169
|
-
gap: ${
|
|
170
|
+
gap: ${i(8)};
|
|
170
171
|
}
|
|
171
|
-
`,
|
|
172
|
+
`,T4=k2.div`
|
|
172
173
|
display: flex;
|
|
173
174
|
flex-direction: column;
|
|
174
175
|
justify-content: center;
|
|
175
176
|
|
|
176
177
|
> *:first-of-type {
|
|
177
|
-
margin-bottom: ${
|
|
178
|
+
margin-bottom: ${i(4)};
|
|
178
179
|
}
|
|
179
|
-
`,
|
|
180
|
+
`,k4=k2.div`
|
|
180
181
|
cursor: pointer;
|
|
181
182
|
align-self: flex-start;
|
|
182
|
-
|
|
183
|
+
`,B4=a5.i`
|
|
184
|
+
align-self: center;
|
|
185
|
+
display: inline-flex;
|
|
186
|
+
color: ${({color:C})=>C};
|
|
187
|
+
|
|
188
|
+
user-select: none;
|
|
189
|
+
|
|
190
|
+
svg {
|
|
191
|
+
z-index: 0 !important;
|
|
192
|
+
outline: 0 !important;
|
|
193
|
+
|
|
194
|
+
${({left:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&F`
|
|
195
|
+
left: ${C};
|
|
196
|
+
`}
|
|
197
|
+
|
|
198
|
+
${({right:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&F`
|
|
199
|
+
right: ${C};
|
|
200
|
+
`}
|
|
201
|
+
|
|
202
|
+
${({top:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&F`
|
|
203
|
+
top: ${C};
|
|
204
|
+
`}
|
|
205
|
+
|
|
206
|
+
${({bottom:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&F`
|
|
207
|
+
bottom: ${C};
|
|
208
|
+
`}
|
|
209
|
+
|
|
210
|
+
${({color:C})=>{let e=C;return C==="inherit"&&(e="currentColor"),F`
|
|
211
|
+
fill: ${e};
|
|
212
|
+
`}}
|
|
213
|
+
position: relative;
|
|
214
|
+
|
|
215
|
+
height: ${({height:C})=>C} !important;
|
|
216
|
+
width: ${({width:C})=>C} !important;
|
|
217
|
+
|
|
218
|
+
${({removeMargin:C})=>C?F`
|
|
219
|
+
margin: 0;
|
|
220
|
+
`:F`
|
|
221
|
+
margin: 0 ${i(4)};
|
|
222
|
+
`}
|
|
223
|
+
}
|
|
224
|
+
`;import $2 from"@emotion/styled";var c1=$2.div`
|
|
183
225
|
display: grid;
|
|
184
|
-
gap: ${
|
|
185
|
-
`,
|
|
226
|
+
gap: ${i(32)};
|
|
227
|
+
`,u1=$2.header`
|
|
186
228
|
display: grid;
|
|
187
229
|
text-align: center;
|
|
188
|
-
gap: ${
|
|
189
|
-
`,
|
|
230
|
+
gap: ${i(16)};
|
|
231
|
+
`,H1=$2.div`
|
|
190
232
|
display: grid;
|
|
191
|
-
gap: ${
|
|
233
|
+
gap: ${i(16)};
|
|
192
234
|
|
|
193
235
|
> div {
|
|
194
236
|
display: grid;
|
|
195
|
-
gap: ${
|
|
237
|
+
gap: ${i(16)};
|
|
196
238
|
}
|
|
197
239
|
|
|
198
240
|
> div:last-of-type {
|
|
199
|
-
gap: ${
|
|
241
|
+
gap: ${i(8)};
|
|
200
242
|
}
|
|
201
|
-
`;import{jsx as
|
|
243
|
+
`;import{jsx as S,jsxs as U}from"react/jsx-runtime";function L5(o){var d=o,{logo:C,initialValues:e,onSubmit:r,onEsqueciMinhaSenha:a}=d,n=x(d,["logo","initialValues","onSubmit","onEsqueciMinhaSenha"]);let L=typeof C=="string"?S("img",{src:C,alt:"Logo do sistema"}):C,{width:p}=B(),v=d1();return S(g,y(M({},n),{paperStyle:{minWidth:p>500?456:void 0,width:p>500?void 0:"90%"},children:U(c1,{children:[S(u1,{children:C&&S("div",{children:L})}),S(l5,{onSubmit:r,defaultValues:M({manterConectado:!1},e),children:U(H1,{children:[U("div",{children:[S(V1,{name:"email",label:"E-mail de acesso",required:!0,rules:i2([$,n2])}),U("div",{children:[S(V1,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:$}),v&&S(o5,{severity:"warning",children:"Capslock ativado"})]})]}),S(s5,{name:"manterConectado",label:"Manter conectado"}),U("div",{children:[S(p1,{type:"submit",fullWidth:!0,children:"Entrar"}),a&&S(p1,{type:"button",fullWidth:!0,variant:"text",children:"Esqueci minha senha"})]})]})})]})}))}import{Button as g1,LIcon as d5,Typography as Z1}from"@s_mart/core";import f1 from"@emotion/styled";var m1=f1.div`
|
|
202
244
|
display: grid;
|
|
203
|
-
gap: ${
|
|
245
|
+
gap: ${i(32)};
|
|
204
246
|
|
|
205
247
|
> div {
|
|
206
248
|
display: grid;
|
|
207
|
-
gap: ${
|
|
249
|
+
gap: ${i(16)};
|
|
208
250
|
}
|
|
209
|
-
`,
|
|
251
|
+
`,M1=f1.header`
|
|
210
252
|
display: grid;
|
|
211
253
|
text-align: center;
|
|
212
|
-
gap: ${
|
|
213
|
-
`;import{jsx as
|
|
254
|
+
gap: ${i(16)};
|
|
255
|
+
`;import{jsx as O,jsxs as Y}from"react/jsx-runtime";function c5(n){var o=n,{logo:C,onPrecisoDeAjuda:e,onRealizarAcesso:r}=o,a=x(o,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let d=typeof C=="string"?O("img",{src:C,alt:"Logo do sistema"}):C,{width:L}=B();return O(g,y(M({},a),{paperStyle:{minWidth:L>500?456:void 0,width:L>500?void 0:"90%"},children:Y(m1,{children:[Y("div",{children:[O(M1,{children:C&&O("div",{children:d})}),Y("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:4},children:[O(Z1,{variant:"bodyMD",children:"O convite que voc\xEA utilizou, j\xE1 foi usado ou expirou."}),O(Z1,{variant:"titleSM",children:"Realize o acesso ou solicite um novo convite."})]})]}),Y("div",{children:[O(g1,{fullWidth:!0,onClick:r,children:"Realizar acesso"}),Y(g1,{fullWidth:!0,variant:"outlined",onClick:e,style:{display:"flex",gap:8},children:[O(d5,{icon:e2,size:"20px",removeMargin:!0,color:c.green[300]}),"Preciso de ajuda"]})]})]})}))}import{Button as u5,Typography as x1}from"@s_mart/core";import v1 from"@emotion/styled";var h1=v1.div`
|
|
214
256
|
display: grid;
|
|
215
|
-
gap: ${
|
|
257
|
+
gap: ${i(32)};
|
|
216
258
|
|
|
217
259
|
> div {
|
|
218
260
|
display: grid;
|
|
219
|
-
gap: ${
|
|
261
|
+
gap: ${i(16)};
|
|
220
262
|
}
|
|
221
|
-
`,
|
|
263
|
+
`,y1=v1.header`
|
|
222
264
|
display: grid;
|
|
223
265
|
text-align: center;
|
|
224
|
-
gap: ${
|
|
225
|
-
`;import{jsx as
|
|
266
|
+
gap: ${i(16)};
|
|
267
|
+
`;import{jsx as I,jsxs as b1}from"react/jsx-runtime";function H5(a){var n=a,{logo:C,onVoltarParaLogin:e}=n,r=x(n,["logo","onVoltarParaLogin"]);let o=typeof C=="string"?I("img",{src:C,alt:"Logo do sistema"}):C,{width:d}=B();return I(g,y(M({},r),{paperStyle:{minWidth:d>500?456:void 0,width:d>500?void 0:"90%"},children:b1(h1,{children:[b1("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[I(y1,{children:C&&I("div",{children:o})}),I(x1,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),I(x1,{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."})]}),I(u5,{fullWidth:!0,onClick:e,children:"Voltar para login"})]})}))}import{Button as p5,LIcon as P2,Typography as K}from"@s_mart/core";import{Form as V5,TextField as A2}from"@s_mart/form";import q from"@emotion/styled";var S1=q.div`
|
|
226
268
|
display: grid;
|
|
227
|
-
gap: ${
|
|
228
|
-
`,
|
|
269
|
+
gap: ${i(32)};
|
|
270
|
+
`,E1=q.header`
|
|
229
271
|
display: grid;
|
|
230
272
|
text-align: center;
|
|
231
|
-
gap: ${
|
|
232
|
-
`,
|
|
273
|
+
gap: ${i(16)};
|
|
274
|
+
`,w1=q.div`
|
|
233
275
|
display: grid;
|
|
234
|
-
gap: ${
|
|
235
|
-
|
|
276
|
+
gap: ${i(32)};
|
|
277
|
+
`,T1=q.div`
|
|
236
278
|
display: grid;
|
|
237
|
-
gap: ${
|
|
279
|
+
gap: ${i(4)};
|
|
238
280
|
|
|
239
281
|
> div:first-of-type {
|
|
240
282
|
display: grid;
|
|
241
283
|
grid-template-columns: 1fr 1fr;
|
|
242
|
-
gap: ${
|
|
284
|
+
gap: ${i(16)};
|
|
243
285
|
|
|
244
286
|
@media (max-width: 768px) {
|
|
245
287
|
grid-template-columns: 1fr;
|
|
246
|
-
gap: ${
|
|
288
|
+
gap: ${i(8)};
|
|
247
289
|
}
|
|
248
290
|
}
|
|
249
291
|
|
|
250
292
|
> div:last-of-type {
|
|
251
293
|
display: grid;
|
|
252
|
-
gap: ${
|
|
294
|
+
gap: ${i(4)};
|
|
253
295
|
}
|
|
254
|
-
`,
|
|
296
|
+
`,k1=q.div`
|
|
255
297
|
display: flex;
|
|
256
298
|
flex-wrap: wrap;
|
|
257
|
-
gap: ${
|
|
258
|
-
`,
|
|
299
|
+
gap: ${i(8)};
|
|
300
|
+
`,f2=q.div`
|
|
259
301
|
display: flex;
|
|
260
302
|
align-items: center;
|
|
261
|
-
gap: ${
|
|
303
|
+
gap: ${i(4)};
|
|
262
304
|
|
|
263
|
-
color: ${
|
|
264
|
-
border: 1px solid ${
|
|
265
|
-
border-radius: ${
|
|
266
|
-
padding: ${
|
|
305
|
+
color: ${c.neutral[600]};
|
|
306
|
+
border: 1px solid ${c.neutral[600]};
|
|
307
|
+
border-radius: ${i(4)};
|
|
308
|
+
padding: ${i(3)} ${i(4)};
|
|
267
309
|
|
|
268
310
|
line-height: 1em;
|
|
269
311
|
vertical-align: middle;
|
|
270
312
|
|
|
271
|
-
${({checked:
|
|
272
|
-
color: ${
|
|
273
|
-
border-color: ${
|
|
313
|
+
${({checked:C})=>{if(C)return`
|
|
314
|
+
color: ${c.green[300]};
|
|
315
|
+
border-color: ${c.green[300]};
|
|
274
316
|
`}}
|
|
275
|
-
`;function
|
|
317
|
+
`;function $1(){let C=n=>n?n.match(/[a-z]/i):!1,e=n=>n?n.match(/[0-9]/i):!1,r=n=>n?n.length>=6:!1;return{senhaContemLetra:C,senhaContemNumero:e,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:n=>!n.email||!n.senha||!n.confirmarSenha||!C(n.senha)||!e(n.senha)||!r(n.senha)}}import{jsx as V,jsxs as T}from"react/jsx-runtime";function f5(n){var o=n,{logo:C,onTrocarMinhaSenha:e,email:r}=o,a=x(o,["logo","onTrocarMinhaSenha","email"]);let{senhaContemLetra:d,senhaContemNumero:L,senhaContemMinimoDe6Caracteres:p,desabilitarBotaoDeCadastro:v}=$1(),k=typeof C=="string"?V("img",{src:C,alt:"Logo do sistema"}):C;return V(g,y(M({},a),{children:T(S1,{children:[T(E1,{children:[C&&V("div",{children:k}),V(K,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),V(V5,{onSubmit:e,defaultValues:{email:r},children:({watch:h})=>{let N=d(h("senha")),f=L(h("senha")),w=p(h("senha"));return T(w1,{children:[V(A2,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),T(T1,{children:[T("div",{children:[V(A2,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:$}),V(A2,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:R=>{if(!R)return"Campo obrigat\xF3rio";if(R!==h("senha"))return"As senhas devem ser iguais"}}})]}),T("div",{children:[V(K,{variant:"bodyXS",children:"Sua senha precisa conter:"}),T(k1,{children:[T(f2,{checked:Boolean(N),children:[N&&V(P2,{icon:A,size:"16px",removeMargin:!0}),V(K,{variant:"bodyXS",children:"Uma letra"})]}),T(f2,{checked:Boolean(f),children:[f&&V(P2,{icon:A,size:"16px",removeMargin:!0}),V(K,{variant:"bodyXS",children:"Um n\xFAmero"})]}),T(f2,{checked:Boolean(w),children:[w&&V(P2,{icon:A,size:"16px",removeMargin:!0}),V(K,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),V("div",{children:V(p5,{type:"submit",fullWidth:!0,disabled:v(h()),children:"Trocar minha senha"})})]})}})]})}))}import{Button as O1,Typography as R1}from"@s_mart/core";import B2 from"@emotion/styled";var P1=B2.div`
|
|
276
318
|
display: grid;
|
|
277
|
-
gap: ${
|
|
319
|
+
gap: ${i(32)};
|
|
278
320
|
|
|
279
321
|
> div {
|
|
280
322
|
display: grid;
|
|
281
|
-
gap: ${
|
|
323
|
+
gap: ${i(16)};
|
|
282
324
|
}
|
|
283
|
-
`,
|
|
325
|
+
`,A1=B2.header`
|
|
284
326
|
display: grid;
|
|
285
327
|
text-align: center;
|
|
286
|
-
gap: ${
|
|
287
|
-
`,
|
|
328
|
+
gap: ${i(16)};
|
|
329
|
+
`,B1=B2.div`
|
|
288
330
|
display: grid;
|
|
289
|
-
gap: ${
|
|
331
|
+
gap: ${i(32)};
|
|
290
332
|
|
|
291
333
|
> div:last-of-type {
|
|
292
334
|
display: grid;
|
|
293
|
-
gap: ${
|
|
335
|
+
gap: ${i(16)};
|
|
294
336
|
}
|
|
295
|
-
`;import{Form as
|
|
337
|
+
`;import{Form as m5,TextField as M5}from"@s_mart/form";import{jsx as E,jsxs as m2}from"react/jsx-runtime";function g5(n){var o=n,{logo:C,onVoltarParaLogin:e,onConfirmar:r}=o,a=x(o,["logo","onVoltarParaLogin","onConfirmar"]);let d=typeof C=="string"?E("img",{src:C,alt:"Logo do sistema"}):C,{width:L}=B();return E(g,y(M({},a),{paperStyle:{minWidth:L>500?456:void 0,width:L>500?void 0:"90%"},children:m2(P1,{children:[m2("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[E(A1,{children:C&&E("div",{children:d})}),E(R1,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),E(R1,{variant:"bodySM",textAlign:"center",children:"Informe seu e-mail de acesso para receber instru\xE7\xF5es e criar uma nova senha."})]}),E(m5,{onSubmit:r,children:m2(B1,{children:[E("div",{children:E(M5,{name:"email",label:"E-mail de acesso",required:!0,rules:i2([$,n2])})}),m2("div",{children:[E(O1,{fullWidth:!0,type:"submit",children:"Confirmar"}),E(O1,{fullWidth:!0,onClick:e,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}export{q3 as TelaCadastro,c5 as TelaConviteExpirado,g5 as TelaEsqueceuSenha,H5 as TelaInstrucoesEnviadas,L5 as TelaLogin,f5 as TelaNovaSenha,g as TemplateTelaBase};
|
|
296
338
|
/** @license React v16.13.1
|
|
297
339
|
* react-is.development.js
|
|
298
340
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s_mart/telas-de-acesso",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"@s_mart/masks": "*"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"phosphor-react": ">=1.4.1",
|
|
29
28
|
"react": ">=18.0.0",
|
|
30
29
|
"react-dom": ">=18.0.0",
|
|
31
30
|
"react-hook-form": ">=7.36.1",
|