@s_mart/telas-de-acesso 1.0.1 → 1.1.0
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 +149 -103
- package/dist/index.mjs +149 -103
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
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,w2=Object.prototype.hasOwnProperty,q2=Object.prototype.propertyIsEnumerable;var I2=(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={}))w2.call(e,r)&&I2(C,r,e[r]);if(a2)for(var r of a2(e))q2.call(e,r)&&I2(C,r,e[r]);return C},S=(C,e)=>m3(C,g3(e));var E=(C,e)=>{var r={};for(var a in C)w2.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&&q2.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})},z2=(C,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Z3(e))!w2.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)):{},z2(e||!C||!C.__esModule?J(r,"default",{value:C,enumerable:!0}):r,C)),y3=C=>z2(J({},"__esModule",{value:!0}),C);var l1=o2(l=>{"use strict";var p=typeof Symbol=="function"&&Symbol.for,T2=p?Symbol.for("react.element"):60103,k2=p?Symbol.for("react.portal"):60106,L2=p?Symbol.for("react.fragment"):60107,u2=p?Symbol.for("react.strict_mode"):60108,H2=p?Symbol.for("react.profiler"):60114,p2=p?Symbol.for("react.provider"):60109,V2=p?Symbol.for("react.context"):60110,$2=p?Symbol.for("react.async_mode"):60111,f2=p?Symbol.for("react.concurrent_mode"):60111,m2=p?Symbol.for("react.forward_ref"):60112,M2=p?Symbol.for("react.suspense"):60113,q3=p?Symbol.for("react.suspense_list"):60120,g2=p?Symbol.for("react.memo"):60115,Z2=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 T2:switch(C=C.type,C){case $2:case f2:case L2:case H2:case u2:case M2:return C;default:switch(C=C&&C.$$typeof,C){case V2:case m2:case Z2:case g2:case p2:return C;default:return e}}case k2:return e}}}function s1(C){return y(C)===f2}l.AsyncMode=$2;l.ConcurrentMode=f2;l.ContextConsumer=V2;l.ContextProvider=p2;l.Element=T2;l.ForwardRef=m2;l.Fragment=L2;l.Lazy=Z2;l.Memo=g2;l.Portal=k2;l.Profiler=H2;l.StrictMode=u2;l.Suspense=M2;l.isAsyncMode=function(C){return s1(C)||y(C)===$2};l.isConcurrentMode=s1;l.isContextConsumer=function(C){return y(C)===V2};l.isContextProvider=function(C){return y(C)===p2};l.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===T2};l.isForwardRef=function(C){return y(C)===m2};l.isFragment=function(C){return y(C)===L2};l.isLazy=function(C){return y(C)===Z2};l.isMemo=function(C){return y(C)===g2};l.isPortal=function(C){return y(C)===k2};l.isProfiler=function(C){return y(C)===H2};l.isStrictMode=function(C){return y(C)===u2};l.isSuspense=function(C){return y(C)===M2};l.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===L2||C===f2||C===H2||C===u2||C===M2||C===q3||typeof C=="object"&&C!==null&&(C.$$typeof===Z2||C.$$typeof===g2||C.$$typeof===p2||C.$$typeof===V2||C.$$typeof===m2||C.$$typeof===W3||C.$$typeof===j3||C.$$typeof===U3||C.$$typeof===z3)};l.typeOf=y});var d1=o2(d=>{"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,L=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===L||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 E2=t.$$typeof;switch(E2){case e:var t2=t.type;switch(t2){case f:case x:case a:case s:case n:case b:return t2;default:var _2=t2&&t2.$$typeof;switch(_2){case L:case O:case P:case Z:case u:return _2;default:return E2}}case r:return E2}}}var j1=f,U1=x,Y1=L,K1=u,X1=e,Q1=O,G1=a,J1=P,C3=Z,e3=r,r3=s,i3=n,n3=b,F2=!1;function t3(t){return F2||(F2=!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.")),N2(t)||v(t)===f}function N2(t){return v(t)===x}function a3(t){return v(t)===L}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 d3(t){return v(t)===a}function c3(t){return v(t)===P}function L3(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}d.AsyncMode=j1,d.ConcurrentMode=U1,d.ContextConsumer=Y1,d.ContextProvider=K1,d.Element=X1,d.ForwardRef=Q1,d.Fragment=G1,d.Lazy=J1,d.Memo=C3,d.Portal=e3,d.Profiler=r3,d.StrictMode=i3,d.Suspense=n3,d.isAsyncMode=t3,d.isConcurrentMode=N2,d.isContextConsumer=a3,d.isContextProvider=o3,d.isElement=s3,d.isForwardRef=l3,d.isFragment=d3,d.isLazy=c3,d.isMemo=L3,d.isPortal=u3,d.isProfiler=H3,d.isStrictMode=p3,d.isSuspense=V3,d.isValidElementType=W1,d.typeOf=v}()});var c1=o2((k5,P2)=>{"use strict";process.env.NODE_ENV==="production"?P2.exports=l1():P2.exports=d1()});var m1=o2(($5,f1)=>{"use strict";var A2=c1(),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},B2={};B2[A2.ForwardRef]=X3;B2[A2.Memo]=p1;function L1(C){return A2.isMemo(C)?p1:B2[C.$$typeof]||Y3}var Q3=Object.defineProperty,G3=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=G3(e);u1&&(n=n.concat(u1(e)));for(var s=L1(C),u=L1(e),L=0;L<n.length;++L){var f=n[L];if(!K3[f]&&!(r&&r[f])&&!(u&&u[f])&&!(s&&s[f])){var x=J3(e,f);try{Q3(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"),X2=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 W2=X.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
|
|
|
10
|
-
background-color: ${({theme:
|
|
11
|
+
background-color: ${({theme:C})=>C.palette.primary.main};
|
|
11
12
|
transition: background-color 0.3s ease-in-out;
|
|
12
13
|
|
|
13
14
|
@media (max-width: 500px) {
|
|
14
|
-
background-color: ${({theme:
|
|
15
|
+
background-color: ${({theme:C})=>C.palette.common.white};
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
@media (max-height: 650px) {
|
|
18
19
|
justify-content: flex-start;
|
|
19
20
|
}
|
|
20
|
-
`,
|
|
21
|
+
`,j2=X.default.div`
|
|
21
22
|
position: absolute;
|
|
22
23
|
left: 0;
|
|
23
24
|
bottom: 32px;
|
|
@@ -26,26 +27,26 @@
|
|
|
26
27
|
@media (max-width: 768px) {
|
|
27
28
|
display: none;
|
|
28
29
|
}
|
|
29
|
-
`,
|
|
30
|
+
`,U2=X.default.h1`
|
|
30
31
|
position: absolute;
|
|
31
32
|
left: 32px;
|
|
32
33
|
top: 32px;
|
|
33
34
|
|
|
34
|
-
color: ${({theme:
|
|
35
|
-
font-size: ${
|
|
35
|
+
color: ${({theme:C})=>C.palette.common.white};
|
|
36
|
+
font-size: ${i(32)};
|
|
36
37
|
line-height: 150%;
|
|
37
38
|
font-weight: normal;
|
|
38
39
|
|
|
39
40
|
@media (max-width: 768px) {
|
|
40
41
|
left: 16px;
|
|
41
42
|
top: 16px;
|
|
42
|
-
font-size: ${
|
|
43
|
+
font-size: ${i(24)};
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
@media (max-height: 830px) {
|
|
46
47
|
left: 16px;
|
|
47
48
|
top: 16px;
|
|
48
|
-
font-size: ${
|
|
49
|
+
font-size: ${i(24)};
|
|
49
50
|
|
|
50
51
|
@media (max-width: 768px) {
|
|
51
52
|
display: none;
|
|
@@ -58,240 +59,285 @@
|
|
|
58
59
|
|
|
59
60
|
span {
|
|
60
61
|
background-color: #262626;
|
|
61
|
-
padding: ${
|
|
62
|
-
border-radius: ${
|
|
62
|
+
padding: ${i(4)} ${i(8)};
|
|
63
|
+
border-radius: ${i(12)};
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
@media (max-width: 500px) {
|
|
66
67
|
display: none;
|
|
67
68
|
}
|
|
68
|
-
`,
|
|
69
|
+
`,Y2=X.default.div`
|
|
69
70
|
position: relative;
|
|
70
71
|
z-index: 2;
|
|
71
72
|
|
|
72
|
-
padding: ${
|
|
73
|
-
border-radius: ${
|
|
74
|
-
margin: ${
|
|
73
|
+
padding: ${i(32)};
|
|
74
|
+
border-radius: ${i(24)};
|
|
75
|
+
margin: ${i(16)};
|
|
75
76
|
|
|
76
|
-
background-color: ${({theme:
|
|
77
|
-
`,
|
|
77
|
+
background-color: ${({theme:C})=>C.palette.common.white};
|
|
78
|
+
`,K2=X.default.button`
|
|
78
79
|
position: relative;
|
|
79
80
|
z-index: 2;
|
|
80
81
|
|
|
81
|
-
background-color: ${({theme:
|
|
82
|
-
padding: ${
|
|
82
|
+
background-color: ${({theme:C})=>C.palette.primary.main};
|
|
83
|
+
padding: ${i(4)} ${i(8)};
|
|
83
84
|
border: none;
|
|
84
|
-
border-radius: ${
|
|
85
|
+
border-radius: ${i(8)};
|
|
85
86
|
cursor: pointer;
|
|
86
87
|
|
|
87
88
|
display: flex;
|
|
88
89
|
align-items: center;
|
|
89
|
-
gap: ${
|
|
90
|
+
gap: ${i(4)};
|
|
90
91
|
|
|
91
|
-
color: ${({theme:
|
|
92
|
+
color: ${({theme:C})=>C.palette.common.white};
|
|
92
93
|
|
|
93
94
|
@media (max-width: 500px) {
|
|
94
|
-
color: ${({theme:
|
|
95
|
+
color: ${({theme:C})=>C.palette.common.black};
|
|
95
96
|
background-color: transparent;
|
|
96
97
|
|
|
97
98
|
svg {
|
|
98
|
-
color: ${
|
|
99
|
+
color: ${H.green[300]};
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
`;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)(W2,{style:a,children:[r&&(0,A.jsx)(U2,{children:r}),s&&(0,A.jsx)(j2,{children:typeof s=="string"?(0,A.jsx)("img",{src:s,alt:"Logo do sistema"}):s}),(0,A.jsx)(Y2,{style:n,children:C}),e&&(0,A.jsxs)(K2,{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? ",X2.telefone.format(e)]}),(0,A.jsx)(l2.LIcon,{icon:s2,size:"20px",removeMargin:!0})]})]})}var T=require("@s_mart/core"),N=require("@s_mart/form");var R3=Object.defineProperty,D3=Object.defineProperties,F3=Object.getOwnPropertyDescriptors,Q2=Object.getOwnPropertySymbols,N3=Object.prototype.hasOwnProperty,_3=Object.prototype.propertyIsEnumerable,G2=(C,e,r)=>e in C?R3(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,d2=(C,e)=>{for(var r in e||(e={}))N3.call(e,r)&&G2(C,r,e[r]);if(Q2)for(var r of Q2(e))_3.call(e,r)&&G2(C,r,e[r]);return C},I3=(C,e)=>D3(C,F3(e));var J2=C=>{let e={validate:{}};return C.forEach(r=>{e=I3(d2(d2({},e),r),{validate:d2(d2({},e.validate),r.validate)})}),e},R={validate:{required:C=>{if(!C)return"Campo obrigat\xF3rio"}}},C1={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`
|
|
102
103
|
display: grid;
|
|
103
|
-
gap: ${
|
|
104
|
-
`,
|
|
104
|
+
gap: ${i(32)};
|
|
105
|
+
`,r1=W.default.header`
|
|
105
106
|
display: grid;
|
|
106
107
|
text-align: center;
|
|
107
|
-
gap: ${
|
|
108
|
-
`,
|
|
108
|
+
gap: ${i(16)};
|
|
109
|
+
`,i1=W.default.div`
|
|
109
110
|
display: grid;
|
|
110
|
-
gap: ${
|
|
111
|
-
`,
|
|
111
|
+
gap: ${i(32)};
|
|
112
|
+
`,n1=W.default.div`
|
|
112
113
|
display: grid;
|
|
113
|
-
gap: ${
|
|
114
|
+
gap: ${i(4)};
|
|
114
115
|
|
|
115
116
|
> div:first-of-type {
|
|
116
117
|
display: grid;
|
|
117
118
|
grid-template-columns: 1fr 1fr;
|
|
118
|
-
gap: ${
|
|
119
|
+
gap: ${i(16)};
|
|
119
120
|
|
|
120
121
|
@media (max-width: 768px) {
|
|
121
122
|
grid-template-columns: 1fr;
|
|
122
|
-
gap: ${
|
|
123
|
+
gap: ${i(8)};
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
> div:last-of-type {
|
|
127
128
|
display: grid;
|
|
128
|
-
gap: ${
|
|
129
|
+
gap: ${i(4)};
|
|
129
130
|
}
|
|
130
|
-
`,
|
|
131
|
+
`,t1=W.default.div`
|
|
131
132
|
display: flex;
|
|
132
133
|
flex-wrap: wrap;
|
|
133
|
-
gap: ${
|
|
134
|
-
`,
|
|
134
|
+
gap: ${i(8)};
|
|
135
|
+
`,c2=W.default.div`
|
|
135
136
|
display: flex;
|
|
136
137
|
align-items: center;
|
|
137
|
-
gap: ${
|
|
138
|
+
gap: ${i(4)};
|
|
138
139
|
|
|
139
|
-
color: ${
|
|
140
|
-
border: 1px solid ${
|
|
141
|
-
border-radius: ${
|
|
142
|
-
padding: ${
|
|
140
|
+
color: ${H.neutral[600]};
|
|
141
|
+
border: 1px solid ${H.neutral[600]};
|
|
142
|
+
border-radius: ${i(4)};
|
|
143
|
+
padding: ${i(3)} ${i(4)};
|
|
143
144
|
|
|
144
145
|
line-height: 1em;
|
|
145
146
|
vertical-align: middle;
|
|
146
147
|
|
|
147
|
-
${({checked:
|
|
148
|
-
color: ${
|
|
149
|
-
border-color: ${
|
|
148
|
+
${({checked:C})=>{if(C)return`
|
|
149
|
+
color: ${H.green[300]};
|
|
150
|
+
border-color: ${H.green[300]};
|
|
150
151
|
`}}
|
|
151
|
-
`;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 L=u,{logo:C,nomeSistema:e,onSubmit:r,linkTermosDeUso:a,email:n}=L,s=E(L,["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)(N.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)(N.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)(N.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:R}),(0,o.jsx)(N.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)(c2,{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)(c2,{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)(c2,{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)(N.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 v2=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 h2=w(require("@emotion/styled"),1);var g1=w(require("@emotion/styled"),1),_=require("@emotion/react");var n5=require("react/jsx-runtime"),Z1=require("react/jsx-runtime"),O2=require("react/jsx-runtime"),v1=require("react");var M1=()=>{let[C,e]=(0,v2.useState)(!1);return(0,v2.useEffect)(()=>{let r=a=>{a.key==="CapsLock"&&e(a.getModifierState("CapsLock"))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[]),C};var I=({defaultValue:C}={})=>{let e=typeof window!="undefined",r=C2.default.useCallback(()=>{if(!e){if(C){let{width:u=0,height:L=0}=C;return{width:u,height:L}}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=h2.default.div`
|
|
152
153
|
display: flex;
|
|
153
154
|
align-items: center;
|
|
154
|
-
gap: ${
|
|
155
|
+
gap: ${i(8)};
|
|
155
156
|
|
|
156
157
|
background-color: white;
|
|
157
158
|
border-radius: 4px;
|
|
158
|
-
padding: ${
|
|
159
|
+
padding: ${i(16)} ${i(16)};
|
|
159
160
|
|
|
160
161
|
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
161
162
|
|
|
162
163
|
border-left: 6px solid
|
|
163
|
-
${({variant:
|
|
164
|
+
${({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]}}};
|
|
164
165
|
|
|
165
166
|
> div:first-of-type {
|
|
166
167
|
display: flex;
|
|
167
168
|
align-items: center;
|
|
168
|
-
gap: ${
|
|
169
|
+
gap: ${i(8)};
|
|
169
170
|
}
|
|
170
|
-
|
|
171
|
+
|
|
172
|
+
> div:last-of-type {
|
|
173
|
+
margin-left: ${i(8)};
|
|
174
|
+
}
|
|
175
|
+
`,W5=h2.default.div`
|
|
171
176
|
display: flex;
|
|
172
177
|
flex-direction: column;
|
|
173
178
|
justify-content: center;
|
|
174
179
|
|
|
175
180
|
> *:first-of-type {
|
|
176
|
-
margin-bottom: ${
|
|
181
|
+
margin-bottom: ${i(4)};
|
|
177
182
|
}
|
|
178
|
-
`,
|
|
183
|
+
`,j5=h2.default.div`
|
|
179
184
|
cursor: pointer;
|
|
180
185
|
align-self: flex-start;
|
|
181
|
-
|
|
186
|
+
`,Y5=g1.default.i`
|
|
187
|
+
align-self: center;
|
|
188
|
+
display: inline-flex;
|
|
189
|
+
color: ${({color:C})=>C};
|
|
190
|
+
|
|
191
|
+
user-select: none;
|
|
192
|
+
|
|
193
|
+
svg {
|
|
194
|
+
z-index: 0 !important;
|
|
195
|
+
outline: 0 !important;
|
|
196
|
+
|
|
197
|
+
${({left:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&_.css`
|
|
198
|
+
left: ${C};
|
|
199
|
+
`}
|
|
200
|
+
|
|
201
|
+
${({right:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&_.css`
|
|
202
|
+
right: ${C};
|
|
203
|
+
`}
|
|
204
|
+
|
|
205
|
+
${({top:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&_.css`
|
|
206
|
+
top: ${C};
|
|
207
|
+
`}
|
|
208
|
+
|
|
209
|
+
${({bottom:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&_.css`
|
|
210
|
+
bottom: ${C};
|
|
211
|
+
`}
|
|
212
|
+
|
|
213
|
+
${({color:C})=>{let e=C;return C==="inherit"&&(e="currentColor"),_.css`
|
|
214
|
+
fill: ${e};
|
|
215
|
+
`}}
|
|
216
|
+
position: relative;
|
|
217
|
+
|
|
218
|
+
height: ${({height:C})=>C} !important;
|
|
219
|
+
width: ${({width:C})=>C} !important;
|
|
220
|
+
|
|
221
|
+
${({removeMargin:C})=>C?_.css`
|
|
222
|
+
margin: 0;
|
|
223
|
+
`:_.css`
|
|
224
|
+
margin: 0 ${i(4)};
|
|
225
|
+
`}
|
|
226
|
+
}
|
|
227
|
+
`;var y2=w(require("@emotion/styled"));var h1=y2.default.div`
|
|
182
228
|
display: grid;
|
|
183
|
-
gap: ${
|
|
184
|
-
`,
|
|
229
|
+
gap: ${i(32)};
|
|
230
|
+
`,y1=y2.default.header`
|
|
185
231
|
display: grid;
|
|
186
232
|
text-align: center;
|
|
187
|
-
gap: ${
|
|
188
|
-
`,
|
|
233
|
+
gap: ${i(16)};
|
|
234
|
+
`,x1=y2.default.div`
|
|
189
235
|
display: grid;
|
|
190
|
-
gap: ${
|
|
236
|
+
gap: ${i(16)};
|
|
191
237
|
|
|
192
238
|
> div {
|
|
193
239
|
display: grid;
|
|
194
|
-
gap: ${
|
|
240
|
+
gap: ${i(16)};
|
|
195
241
|
}
|
|
196
242
|
|
|
197
243
|
> div:last-of-type {
|
|
198
|
-
gap: ${
|
|
244
|
+
gap: ${i(8)};
|
|
199
245
|
}
|
|
200
|
-
`;var
|
|
246
|
+
`;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 L=typeof C=="string"?(0,V.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:f}=I(),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:L})}),(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:R}),(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 R2=w(require("@emotion/styled"));var S1=R2.default.div`
|
|
201
247
|
display: grid;
|
|
202
|
-
gap: ${
|
|
248
|
+
gap: ${i(32)};
|
|
203
249
|
|
|
204
250
|
> div {
|
|
205
251
|
display: grid;
|
|
206
|
-
gap: ${
|
|
252
|
+
gap: ${i(16)};
|
|
207
253
|
}
|
|
208
|
-
|
|
254
|
+
`,E1=R2.default.header`
|
|
209
255
|
display: grid;
|
|
210
256
|
text-align: center;
|
|
211
|
-
gap: ${
|
|
212
|
-
`;var
|
|
257
|
+
gap: ${i(16)};
|
|
258
|
+
`;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:L}=I();return(0,M.jsx)(g,S(h({},a),{paperStyle:{minWidth:L>500?456:void 0,width:L>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 D2=w(require("@emotion/styled"));var T1=D2.default.div`
|
|
213
259
|
display: grid;
|
|
214
|
-
gap: ${
|
|
260
|
+
gap: ${i(32)};
|
|
215
261
|
|
|
216
262
|
> div {
|
|
217
263
|
display: grid;
|
|
218
|
-
gap: ${
|
|
264
|
+
gap: ${i(16)};
|
|
219
265
|
}
|
|
220
|
-
`,
|
|
266
|
+
`,k1=D2.default.header`
|
|
221
267
|
display: grid;
|
|
222
268
|
text-align: center;
|
|
223
|
-
gap: ${
|
|
224
|
-
`;var
|
|
269
|
+
gap: ${i(16)};
|
|
270
|
+
`;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}=I();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"),Q=require("@s_mart/form");var Y=w(require("@emotion/styled"));var P1=Y.default.div`
|
|
225
271
|
display: grid;
|
|
226
|
-
gap: ${
|
|
227
|
-
`,
|
|
272
|
+
gap: ${i(32)};
|
|
273
|
+
`,A1=Y.default.header`
|
|
228
274
|
display: grid;
|
|
229
275
|
text-align: center;
|
|
230
|
-
gap: ${
|
|
231
|
-
`,
|
|
276
|
+
gap: ${i(16)};
|
|
277
|
+
`,B1=Y.default.div`
|
|
232
278
|
display: grid;
|
|
233
|
-
gap: ${
|
|
234
|
-
`,
|
|
279
|
+
gap: ${i(32)};
|
|
280
|
+
`,O1=Y.default.div`
|
|
235
281
|
display: grid;
|
|
236
|
-
gap: ${
|
|
282
|
+
gap: ${i(4)};
|
|
237
283
|
|
|
238
284
|
> div:first-of-type {
|
|
239
285
|
display: grid;
|
|
240
286
|
grid-template-columns: 1fr 1fr;
|
|
241
|
-
gap: ${
|
|
287
|
+
gap: ${i(16)};
|
|
242
288
|
|
|
243
289
|
@media (max-width: 768px) {
|
|
244
290
|
grid-template-columns: 1fr;
|
|
245
|
-
gap: ${
|
|
291
|
+
gap: ${i(8)};
|
|
246
292
|
}
|
|
247
293
|
}
|
|
248
294
|
|
|
249
295
|
> div:last-of-type {
|
|
250
296
|
display: grid;
|
|
251
|
-
gap: ${
|
|
297
|
+
gap: ${i(4)};
|
|
252
298
|
}
|
|
253
|
-
`,
|
|
299
|
+
`,R1=Y.default.div`
|
|
254
300
|
display: flex;
|
|
255
301
|
flex-wrap: wrap;
|
|
256
|
-
gap: ${
|
|
257
|
-
`,
|
|
302
|
+
gap: ${i(8)};
|
|
303
|
+
`,x2=Y.default.div`
|
|
258
304
|
display: flex;
|
|
259
305
|
align-items: center;
|
|
260
|
-
gap: ${
|
|
306
|
+
gap: ${i(4)};
|
|
261
307
|
|
|
262
|
-
color: ${
|
|
263
|
-
border: 1px solid ${
|
|
264
|
-
border-radius: ${
|
|
265
|
-
padding: ${
|
|
308
|
+
color: ${H.neutral[600]};
|
|
309
|
+
border: 1px solid ${H.neutral[600]};
|
|
310
|
+
border-radius: ${i(4)};
|
|
311
|
+
padding: ${i(3)} ${i(4)};
|
|
266
312
|
|
|
267
313
|
line-height: 1em;
|
|
268
314
|
vertical-align: middle;
|
|
269
315
|
|
|
270
|
-
${({checked:
|
|
271
|
-
color: ${
|
|
272
|
-
border-color: ${
|
|
316
|
+
${({checked:C})=>{if(C)return`
|
|
317
|
+
color: ${H.green[300]};
|
|
318
|
+
border-color: ${H.green[300]};
|
|
273
319
|
`}}
|
|
274
|
-
`;function
|
|
320
|
+
`;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 c=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:L,senhaContemMinimoDe6Caracteres:f,desabilitarBotaoDeCadastro:x}=D1(),O=typeof C=="string"?(0,c.jsx)("img",{src:C,alt:"Logo do sistema"}):C;return(0,c.jsx)(g,S(h({},a),{children:(0,c.jsxs)(P1,{children:[(0,c.jsxs)(A1,{children:[C&&(0,c.jsx)("div",{children:O}),(0,c.jsx)(k.Typography,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),(0,c.jsx)(Q.Form,{onSubmit:e,defaultValues:{email:r},children:({watch:b})=>{let K=u(b("senha")),Z=L(b("senha")),P=f(b("senha"));return(0,c.jsxs)(B1,{children:[(0,c.jsx)(Q.TextField,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),(0,c.jsxs)(O1,{children:[(0,c.jsxs)("div",{children:[(0,c.jsx)(Q.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:R}),(0,c.jsx)(Q.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,c.jsxs)("div",{children:[(0,c.jsx)(k.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,c.jsxs)(R1,{children:[(0,c.jsxs)(x2,{checked:Boolean(K),children:[K&&(0,c.jsx)(k.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,c.jsx)(k.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,c.jsxs)(x2,{checked:Boolean(Z),children:[Z&&(0,c.jsx)(k.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,c.jsx)(k.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,c.jsxs)(x2,{checked:Boolean(P),children:[P&&(0,c.jsx)(k.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,c.jsx)(k.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,c.jsx)("div",{children:(0,c.jsx)(k.Button,{type:"submit",fullWidth:!0,disabled:x(b()),children:"Trocar minha senha"})})]})}})]})}))}var G=require("@s_mart/core");var b2=w(require("@emotion/styled"));var N1=b2.default.div`
|
|
275
321
|
display: grid;
|
|
276
|
-
gap: ${
|
|
322
|
+
gap: ${i(32)};
|
|
277
323
|
|
|
278
324
|
> div {
|
|
279
325
|
display: grid;
|
|
280
|
-
gap: ${
|
|
326
|
+
gap: ${i(16)};
|
|
281
327
|
}
|
|
282
|
-
`,
|
|
328
|
+
`,_1=b2.default.header`
|
|
283
329
|
display: grid;
|
|
284
330
|
text-align: center;
|
|
285
|
-
gap: ${
|
|
286
|
-
`,
|
|
331
|
+
gap: ${i(16)};
|
|
332
|
+
`,I1=b2.default.div`
|
|
287
333
|
display: grid;
|
|
288
|
-
gap: ${
|
|
334
|
+
gap: ${i(32)};
|
|
289
335
|
|
|
290
336
|
> div:last-of-type {
|
|
291
337
|
display: grid;
|
|
292
|
-
gap: ${
|
|
338
|
+
gap: ${i(16)};
|
|
293
339
|
}
|
|
294
|
-
`;var
|
|
340
|
+
`;var S2=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:L}=I();return(0,m.jsx)(g,S(h({},a),{paperStyle:{minWidth:L>500?456:void 0,width:L>500?void 0:"90%"},children:(0,m.jsxs)(N1,{children:[(0,m.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,m.jsx)(_1,{children:C&&(0,m.jsx)("div",{children:u})}),(0,m.jsx)(G.Typography,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),(0,m.jsx)(G.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)(S2.Form,{onSubmit:r,children:(0,m.jsxs)(I1,{children:[(0,m.jsx)("div",{children:(0,m.jsx)(S2.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:J2([R,C1])})}),(0,m.jsxs)("div",{children:[(0,m.jsx)(G.Button,{fullWidth:!0,type:"submit",children:"Confirmar"}),(0,m.jsx)(G.Button,{fullWidth:!0,onClick:e,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}0&&(module.exports={TelaCadastro,TelaConviteExpirado,TelaEsqueceuSenha,TelaInstrucoesEnviadas,TelaLogin,TelaNovaSenha,TemplateTelaBase});
|
|
295
341
|
/** @license React v16.13.1
|
|
296
342
|
* react-is.development.js
|
|
297
343
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
var
|
|
1
|
+
var c3=Object.create;var m2=Object.defineProperty,L3=Object.defineProperties,u3=Object.getOwnPropertyDescriptor,H3=Object.getOwnPropertyDescriptors,p3=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,V3=Object.getPrototypeOf,M2=Object.prototype.hasOwnProperty,D2=Object.prototype.propertyIsEnumerable;var R2=(C,e,r)=>e in C?m2(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,M=(C,e)=>{for(var r in e||(e={}))M2.call(e,r)&&R2(C,r,e[r]);if(J)for(var r of J(e))D2.call(e,r)&&R2(C,r,e[r]);return C},y=(C,e)=>L3(C,H3(e));var x=(C,e)=>{var r={};for(var a in C)M2.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&&D2.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))!M2.call(C,n)&&n!==r&&m2(C,n,{get:()=>e[n],enumerable:!(a=u3(e,n))||a.enumerable});return C};var m3=(C,e,r)=>(r=C!=null?c3(V3(C)):{},f3(e||!C||!C.__esModule?m2(r,"default",{value:C,enumerable:!0}):r,C));var e1=C2(s=>{"use strict";var H=typeof Symbol=="function"&&Symbol.for,h2=H?Symbol.for("react.element"):60103,y2=H?Symbol.for("react.portal"):60106,n2=H?Symbol.for("react.fragment"):60107,t2=H?Symbol.for("react.strict_mode"):60108,a2=H?Symbol.for("react.profiler"):60114,o2=H?Symbol.for("react.provider"):60109,s2=H?Symbol.for("react.context"):60110,x2=H?Symbol.for("react.async_mode"):60111,l2=H?Symbol.for("react.concurrent_mode"):60111,d2=H?Symbol.for("react.forward_ref"):60112,c2=H?Symbol.for("react.suspense"):60113,z3=H?Symbol.for("react.suspense_list"):60120,L2=H?Symbol.for("react.memo"):60115,u2=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 h2:switch(C=C.type,C){case x2:case l2:case n2:case a2:case t2:case c2:return C;default:switch(C=C&&C.$$typeof,C){case s2:case d2:case u2:case L2:case o2:return C;default:return e}}case y2:return e}}}function C1(C){return Z(C)===l2}s.AsyncMode=x2;s.ConcurrentMode=l2;s.ContextConsumer=s2;s.ContextProvider=o2;s.Element=h2;s.ForwardRef=d2;s.Fragment=n2;s.Lazy=u2;s.Memo=L2;s.Portal=y2;s.Profiler=a2;s.StrictMode=t2;s.Suspense=c2;s.isAsyncMode=function(C){return C1(C)||Z(C)===x2};s.isConcurrentMode=C1;s.isContextConsumer=function(C){return Z(C)===s2};s.isContextProvider=function(C){return Z(C)===o2};s.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===h2};s.isForwardRef=function(C){return Z(C)===d2};s.isFragment=function(C){return Z(C)===n2};s.isLazy=function(C){return Z(C)===u2};s.isMemo=function(C){return Z(C)===L2};s.isPortal=function(C){return Z(C)===y2};s.isProfiler=function(C){return Z(C)===a2};s.isStrictMode=function(C){return Z(C)===t2};s.isSuspense=function(C){return Z(C)===c2};s.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n2||C===l2||C===a2||C===t2||C===c2||C===z3||typeof C=="object"&&C!==null&&(C.$$typeof===u2||C.$$typeof===L2||C.$$typeof===o2||C.$$typeof===s2||C.$$typeof===d2||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,c=C?Symbol.for("react.provider"):60109,d=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,_=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,Q=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===_||typeof t=="object"&&t!==null&&(t.$$typeof===w||t.$$typeof===f||t.$$typeof===c||t.$$typeof===d||t.$$typeof===k||t.$$typeof===X||t.$$typeof===Q||t.$$typeof===D1||t.$$typeof===R)}function m(t){if(typeof t=="object"&&t!==null){var f2=t.$$typeof;switch(f2){case e:var G=t.type;switch(G){case p:case v:case a:case o:case n:case h:return G;default:var O2=G&&G.$$typeof;switch(O2){case d:case k:case w:case f:case c:return O2;default:return f2}}case r:return f2}}}var N1=p,_1=v,I1=d,q1=c,z1=e,W1=k,j1=a,U1=w,Y1=f,K1=r,X1=o,Q1=n,G1=h,A2=!1;function J1(t){return A2||(A2=!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.")),B2(t)||m(t)===p}function B2(t){return m(t)===v}function C3(t){return m(t)===d}function e3(t){return m(t)===c}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 d3(t){return m(t)===h}l.AsyncMode=N1,l.ConcurrentMode=_1,l.ContextConsumer=I1,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=Q1,l.Suspense=G1,l.isAsyncMode=J1,l.isConcurrentMode=B2,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=d3,l.isValidElementType=F1,l.typeOf=m}()});var i1=C2((C4,b2)=>{"use strict";process.env.NODE_ENV==="production"?b2.exports=e1():b2.exports=r1()});var d1=C2((e4,l1)=>{"use strict";var S2=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},Q3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},E2={};E2[S2.ForwardRef]=Q3;E2[S2.Memo]=o1;function n1(C){return S2.isMemo(C)?o1:E2[C.$$typeof]||K3}var G3=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),c=n1(e),d=0;d<n.length;++d){var p=n[d];if(!X3[p]&&!(r&&r[p])&&!(c&&c[p])&&!(o&&o[p])){var v=C5(e,p);try{G3(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})},L={};g3(L,{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 F2=z.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
|
|
|
10
|
-
background-color: ${({theme:
|
|
11
|
+
background-color: ${({theme:C})=>C.palette.primary.main};
|
|
11
12
|
transition: background-color 0.3s ease-in-out;
|
|
12
13
|
|
|
13
14
|
@media (max-width: 500px) {
|
|
14
|
-
background-color: ${({theme:
|
|
15
|
+
background-color: ${({theme:C})=>C.palette.common.white};
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
@media (max-height: 650px) {
|
|
18
19
|
justify-content: flex-start;
|
|
19
20
|
}
|
|
20
|
-
`,
|
|
21
|
+
`,N2=z.div`
|
|
21
22
|
position: absolute;
|
|
22
23
|
left: 0;
|
|
23
24
|
bottom: 32px;
|
|
@@ -26,26 +27,26 @@ var lt=Object.create;var ve=Object.defineProperty,ct=Object.defineProperties,ut=
|
|
|
26
27
|
@media (max-width: 768px) {
|
|
27
28
|
display: none;
|
|
28
29
|
}
|
|
29
|
-
`,
|
|
30
|
+
`,_2=z.h1`
|
|
30
31
|
position: absolute;
|
|
31
32
|
left: 32px;
|
|
32
33
|
top: 32px;
|
|
33
34
|
|
|
34
|
-
color: ${({theme:
|
|
35
|
-
font-size: ${
|
|
35
|
+
color: ${({theme:C})=>C.palette.common.white};
|
|
36
|
+
font-size: ${i(32)};
|
|
36
37
|
line-height: 150%;
|
|
37
38
|
font-weight: normal;
|
|
38
39
|
|
|
39
40
|
@media (max-width: 768px) {
|
|
40
41
|
left: 16px;
|
|
41
42
|
top: 16px;
|
|
42
|
-
font-size: ${
|
|
43
|
+
font-size: ${i(24)};
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
@media (max-height: 830px) {
|
|
46
47
|
left: 16px;
|
|
47
48
|
top: 16px;
|
|
48
|
-
font-size: ${
|
|
49
|
+
font-size: ${i(24)};
|
|
49
50
|
|
|
50
51
|
@media (max-width: 768px) {
|
|
51
52
|
display: none;
|
|
@@ -58,240 +59,285 @@ var lt=Object.create;var ve=Object.defineProperty,ct=Object.defineProperties,ut=
|
|
|
58
59
|
|
|
59
60
|
span {
|
|
60
61
|
background-color: #262626;
|
|
61
|
-
padding: ${
|
|
62
|
-
border-radius: ${
|
|
62
|
+
padding: ${i(4)} ${i(8)};
|
|
63
|
+
border-radius: ${i(12)};
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
@media (max-width: 500px) {
|
|
66
67
|
display: none;
|
|
67
68
|
}
|
|
68
|
-
`,
|
|
69
|
+
`,I2=z.div`
|
|
69
70
|
position: relative;
|
|
70
71
|
z-index: 2;
|
|
71
72
|
|
|
72
|
-
padding: ${
|
|
73
|
-
border-radius: ${
|
|
74
|
-
margin: ${
|
|
73
|
+
padding: ${i(32)};
|
|
74
|
+
border-radius: ${i(24)};
|
|
75
|
+
margin: ${i(16)};
|
|
75
76
|
|
|
76
|
-
background-color: ${({theme:
|
|
77
|
-
`,
|
|
77
|
+
background-color: ${({theme:C})=>C.palette.common.white};
|
|
78
|
+
`,q2=z.button`
|
|
78
79
|
position: relative;
|
|
79
80
|
z-index: 2;
|
|
80
81
|
|
|
81
|
-
background-color: ${({theme:
|
|
82
|
-
padding: ${
|
|
82
|
+
background-color: ${({theme:C})=>C.palette.primary.main};
|
|
83
|
+
padding: ${i(4)} ${i(8)};
|
|
83
84
|
border: none;
|
|
84
|
-
border-radius: ${
|
|
85
|
+
border-radius: ${i(8)};
|
|
85
86
|
cursor: pointer;
|
|
86
87
|
|
|
87
88
|
display: flex;
|
|
88
89
|
align-items: center;
|
|
89
|
-
gap: ${
|
|
90
|
+
gap: ${i(4)};
|
|
90
91
|
|
|
91
|
-
color: ${({theme:
|
|
92
|
+
color: ${({theme:C})=>C.palette.common.white};
|
|
92
93
|
|
|
93
94
|
@media (max-width: 500px) {
|
|
94
|
-
color: ${({theme:
|
|
95
|
+
color: ${({theme:C})=>C.palette.common.black};
|
|
95
96
|
background-color: transparent;
|
|
96
97
|
|
|
97
98
|
svg {
|
|
98
|
-
color: ${
|
|
99
|
+
color: ${L.green[300]};
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
`;import{jsx as W,jsxs as
|
|
102
|
+
`;import{jsx as W,jsxs as g2}from"react/jsx-runtime";function g({children:C,whatsapp:e,textoChamativo:r,style:a,paperStyle:n,ilustracao:o}){return g2(F2,{style:a,children:[r&&W(_2,{children:r}),o&&W(N2,{children:typeof o=="string"?W("img",{src:o,alt:"Logo do sistema"}):o}),W(I2,{style:n,children:C}),e&&g2(q2,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${e}`)},style:{marginBottom:16},children:[g2($3,{variant:"bodyXS",children:["Com d\xFAvidas? ",P3.format(e)]}),W(k3,{icon:e2,size:"20px",removeMargin:!0})]})]})}import{Button as N3,LIcon as Z2,Typography as j}from"@s_mart/core";import{Checkbox as _3,Form as I3,TextField as v2}from"@s_mart/form";var A3=Object.defineProperty,B3=Object.defineProperties,O3=Object.getOwnPropertyDescriptors,z2=Object.getOwnPropertySymbols,R3=Object.prototype.hasOwnProperty,D3=Object.prototype.propertyIsEnumerable,W2=(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)&&W2(C,r,e[r]);if(z2)for(var r of z2(e))D3.call(e,r)&&W2(C,r,e[r]);return C},F3=(C,e)=>B3(C,O3(e));var j2=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"}}},U2={validate:{email:C=>{if(C&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(C))return"O email \xE9 inv\xE1lido"}}};import I from"@emotion/styled";var Y2=I.div`
|
|
102
103
|
display: grid;
|
|
103
|
-
gap: ${
|
|
104
|
-
`,
|
|
104
|
+
gap: ${i(32)};
|
|
105
|
+
`,K2=I.header`
|
|
105
106
|
display: grid;
|
|
106
107
|
text-align: center;
|
|
107
|
-
gap: ${
|
|
108
|
-
`,
|
|
108
|
+
gap: ${i(16)};
|
|
109
|
+
`,X2=I.div`
|
|
109
110
|
display: grid;
|
|
110
|
-
gap: ${
|
|
111
|
-
`,
|
|
111
|
+
gap: ${i(32)};
|
|
112
|
+
`,Q2=I.div`
|
|
112
113
|
display: grid;
|
|
113
|
-
gap: ${
|
|
114
|
+
gap: ${i(4)};
|
|
114
115
|
|
|
115
116
|
> div:first-of-type {
|
|
116
117
|
display: grid;
|
|
117
118
|
grid-template-columns: 1fr 1fr;
|
|
118
|
-
gap: ${
|
|
119
|
+
gap: ${i(16)};
|
|
119
120
|
|
|
120
121
|
@media (max-width: 768px) {
|
|
121
122
|
grid-template-columns: 1fr;
|
|
122
|
-
gap: ${
|
|
123
|
+
gap: ${i(8)};
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
> div:last-of-type {
|
|
127
128
|
display: grid;
|
|
128
|
-
gap: ${
|
|
129
|
+
gap: ${i(4)};
|
|
129
130
|
}
|
|
130
|
-
`,
|
|
131
|
+
`,G2=I.div`
|
|
131
132
|
display: flex;
|
|
132
133
|
flex-wrap: wrap;
|
|
133
|
-
gap: ${
|
|
134
|
-
`,
|
|
134
|
+
gap: ${i(8)};
|
|
135
|
+
`,i2=I.div`
|
|
135
136
|
display: flex;
|
|
136
137
|
align-items: center;
|
|
137
|
-
gap: ${
|
|
138
|
+
gap: ${i(4)};
|
|
138
139
|
|
|
139
|
-
color: ${
|
|
140
|
-
border: 1px solid ${
|
|
141
|
-
border-radius: ${
|
|
142
|
-
padding: ${
|
|
140
|
+
color: ${L.neutral[600]};
|
|
141
|
+
border: 1px solid ${L.neutral[600]};
|
|
142
|
+
border-radius: ${i(4)};
|
|
143
|
+
padding: ${i(3)} ${i(4)};
|
|
143
144
|
|
|
144
145
|
line-height: 1em;
|
|
145
146
|
vertical-align: middle;
|
|
146
147
|
|
|
147
|
-
${({checked:
|
|
148
|
-
color: ${
|
|
149
|
-
border-color: ${
|
|
148
|
+
${({checked:C})=>{if(C)return`
|
|
149
|
+
color: ${L.green[300]};
|
|
150
|
+
border-color: ${L.green[300]};
|
|
150
151
|
`}}
|
|
151
|
-
`;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(c){var d=c,{logo:C,nomeSistema:e,onSubmit:r,linkTermosDeUso:a,email:n}=d,o=x(d,["logo","nomeSistema","onSubmit","linkTermosDeUso","email"]);let{senhaContemLetra:p,senhaContemNumero:v,senhaContemMinimoDe6Caracteres:k,desabilitarBotaoDeCadastro:h}=J2(),_=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:_}),b(j,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",e,"."]})]}),u(I3,{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(v2,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),b(Q2,{children:[b("div",{children:[u(v2,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:$}),u(v2,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:Q=>{if(!Q)return"Campo obrigat\xF3rio";if(Q!==f("senha"))return"As senhas devem ser iguais"}}})]}),b("div",{children:[u(j,{variant:"bodyXS",children:"Sua senha precisa conter:"}),b(G2,{children:[b(i2,{checked:Boolean(w),children:[w&&u(Z2,{icon:A,size:"16px",removeMargin:!0}),u(j,{variant:"bodyXS",children:"Uma letra"})]}),b(i2,{checked:Boolean(R),children:[R&&u(Z2,{icon:A,size:"16px",removeMargin:!0}),u(j,{variant:"bodyXS",children:"Um n\xFAmero"})]}),b(i2,{checked:Boolean(X),children:[X&&u(Z2,{icon:A,size:"16px",removeMargin:!0}),u(j,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),u("div",{children:u(_3,{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(N3,{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 H2 from"react";import n4,{forwardRef as t4,useRef as a4,useCallback as o4,useLayoutEffect as s4,useEffect as l4,createElement as d4,useState as c4,Component as L4,useContext as u4}from"react";import{createPortal as p4}from"react-dom";var r5=m3(d1());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 w2 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 N4}from"react/jsx-runtime";import{Fragment as I4,jsx as q4,jsxs as z4}from"react/jsx-runtime";import{useEffect as j4,useRef as U4}from"react";var c1=()=>{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=H2.useCallback(()=>{if(!e){if(C){let{width:c=0,height:d=0}=C;return{width:c,height:d}}return{width:0,height:0}}return{width:window.innerWidth,height:window.innerHeight}},[e,C]),[a,n]=H2.useState(r()),o=H2.useCallback(()=>{n(r())},[n,r]);return H2.useEffect(()=>e?(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}):()=>{},[o,e]),a},w4=w2.div`
|
|
152
153
|
display: flex;
|
|
153
154
|
align-items: center;
|
|
154
|
-
gap: ${
|
|
155
|
+
gap: ${i(8)};
|
|
155
156
|
|
|
156
157
|
background-color: white;
|
|
157
158
|
border-radius: 4px;
|
|
158
|
-
padding: ${
|
|
159
|
+
padding: ${i(16)} ${i(16)};
|
|
159
160
|
|
|
160
161
|
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
161
162
|
|
|
162
163
|
border-left: 6px solid
|
|
163
|
-
${({variant:
|
|
164
|
+
${({variant:C})=>{switch(C){case"error":return L.red[300];case"warning":return L.yellow[300];case"info":return L.blue[100];default:case"success":return L.green[300]}}};
|
|
164
165
|
|
|
165
166
|
> div:first-of-type {
|
|
166
167
|
display: flex;
|
|
167
168
|
align-items: center;
|
|
168
|
-
gap: ${
|
|
169
|
+
gap: ${i(8)};
|
|
169
170
|
}
|
|
170
|
-
|
|
171
|
+
|
|
172
|
+
> div:last-of-type {
|
|
173
|
+
margin-left: ${i(8)};
|
|
174
|
+
}
|
|
175
|
+
`,T4=w2.div`
|
|
171
176
|
display: flex;
|
|
172
177
|
flex-direction: column;
|
|
173
178
|
justify-content: center;
|
|
174
179
|
|
|
175
180
|
> *:first-of-type {
|
|
176
|
-
margin-bottom: ${
|
|
181
|
+
margin-bottom: ${i(4)};
|
|
177
182
|
}
|
|
178
|
-
`,
|
|
183
|
+
`,k4=w2.div`
|
|
179
184
|
cursor: pointer;
|
|
180
185
|
align-self: flex-start;
|
|
181
|
-
|
|
186
|
+
`,B4=a5.i`
|
|
187
|
+
align-self: center;
|
|
188
|
+
display: inline-flex;
|
|
189
|
+
color: ${({color:C})=>C};
|
|
190
|
+
|
|
191
|
+
user-select: none;
|
|
192
|
+
|
|
193
|
+
svg {
|
|
194
|
+
z-index: 0 !important;
|
|
195
|
+
outline: 0 !important;
|
|
196
|
+
|
|
197
|
+
${({left:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&F`
|
|
198
|
+
left: ${C};
|
|
199
|
+
`}
|
|
200
|
+
|
|
201
|
+
${({right:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&F`
|
|
202
|
+
right: ${C};
|
|
203
|
+
`}
|
|
204
|
+
|
|
205
|
+
${({top:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&F`
|
|
206
|
+
top: ${C};
|
|
207
|
+
`}
|
|
208
|
+
|
|
209
|
+
${({bottom:C})=>(typeof C=="string"||typeof C=="number"&&C>0)&&F`
|
|
210
|
+
bottom: ${C};
|
|
211
|
+
`}
|
|
212
|
+
|
|
213
|
+
${({color:C})=>{let e=C;return C==="inherit"&&(e="currentColor"),F`
|
|
214
|
+
fill: ${e};
|
|
215
|
+
`}}
|
|
216
|
+
position: relative;
|
|
217
|
+
|
|
218
|
+
height: ${({height:C})=>C} !important;
|
|
219
|
+
width: ${({width:C})=>C} !important;
|
|
220
|
+
|
|
221
|
+
${({removeMargin:C})=>C?F`
|
|
222
|
+
margin: 0;
|
|
223
|
+
`:F`
|
|
224
|
+
margin: 0 ${i(4)};
|
|
225
|
+
`}
|
|
226
|
+
}
|
|
227
|
+
`;import T2 from"@emotion/styled";var L1=T2.div`
|
|
182
228
|
display: grid;
|
|
183
|
-
gap: ${
|
|
184
|
-
`,
|
|
229
|
+
gap: ${i(32)};
|
|
230
|
+
`,u1=T2.header`
|
|
185
231
|
display: grid;
|
|
186
232
|
text-align: center;
|
|
187
|
-
gap: ${
|
|
188
|
-
`,
|
|
233
|
+
gap: ${i(16)};
|
|
234
|
+
`,H1=T2.div`
|
|
189
235
|
display: grid;
|
|
190
|
-
gap: ${
|
|
236
|
+
gap: ${i(16)};
|
|
191
237
|
|
|
192
238
|
> div {
|
|
193
239
|
display: grid;
|
|
194
|
-
gap: ${
|
|
240
|
+
gap: ${i(16)};
|
|
195
241
|
}
|
|
196
242
|
|
|
197
243
|
> div:last-of-type {
|
|
198
|
-
gap: ${
|
|
244
|
+
gap: ${i(8)};
|
|
199
245
|
}
|
|
200
|
-
`;import{jsx as
|
|
246
|
+
`;import{jsx as S,jsxs as U}from"react/jsx-runtime";function d5(o){var c=o,{logo:C,initialValues:e,onSubmit:r,onEsqueciMinhaSenha:a}=c,n=x(c,["logo","initialValues","onSubmit","onEsqueciMinhaSenha"]);let d=typeof C=="string"?S("img",{src:C,alt:"Logo do sistema"}):C,{width:p}=B(),v=c1();return S(g,y(M({},n),{paperStyle:{minWidth:p>500?456:void 0,width:p>500?void 0:"90%"},children:U(L1,{children:[S(u1,{children:C&&S("div",{children:d})}),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:$}),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 c5,Typography as Z1}from"@s_mart/core";import f1 from"@emotion/styled";var m1=f1.div`
|
|
201
247
|
display: grid;
|
|
202
|
-
gap: ${
|
|
248
|
+
gap: ${i(32)};
|
|
203
249
|
|
|
204
250
|
> div {
|
|
205
251
|
display: grid;
|
|
206
|
-
gap: ${
|
|
252
|
+
gap: ${i(16)};
|
|
207
253
|
}
|
|
208
|
-
`,
|
|
254
|
+
`,M1=f1.header`
|
|
209
255
|
display: grid;
|
|
210
256
|
text-align: center;
|
|
211
|
-
gap: ${
|
|
212
|
-
`;import{jsx as
|
|
257
|
+
gap: ${i(16)};
|
|
258
|
+
`;import{jsx as O,jsxs as Y}from"react/jsx-runtime";function L5(n){var o=n,{logo:C,onPrecisoDeAjuda:e,onRealizarAcesso:r}=o,a=x(o,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let c=typeof C=="string"?O("img",{src:C,alt:"Logo do sistema"}):C,{width:d}=B();return O(g,y(M({},a),{paperStyle:{minWidth:d>500?456:void 0,width:d>500?void 0:"90%"},children:Y(m1,{children:[Y("div",{children:[O(M1,{children:C&&O("div",{children:c})}),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(c5,{icon:e2,size:"20px",removeMargin:!0,color:L.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`
|
|
213
259
|
display: grid;
|
|
214
|
-
gap: ${
|
|
260
|
+
gap: ${i(32)};
|
|
215
261
|
|
|
216
262
|
> div {
|
|
217
263
|
display: grid;
|
|
218
|
-
gap: ${
|
|
264
|
+
gap: ${i(16)};
|
|
219
265
|
}
|
|
220
|
-
`,
|
|
266
|
+
`,y1=v1.header`
|
|
221
267
|
display: grid;
|
|
222
268
|
text-align: center;
|
|
223
|
-
gap: ${
|
|
224
|
-
`;import{jsx as
|
|
269
|
+
gap: ${i(16)};
|
|
270
|
+
`;import{jsx as N,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"?N("img",{src:C,alt:"Logo do sistema"}):C,{width:c}=B();return N(g,y(M({},r),{paperStyle:{minWidth:c>500?456:void 0,width:c>500?void 0:"90%"},children:b1(h1,{children:[b1("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[N(y1,{children:C&&N("div",{children:o})}),N(x1,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),N(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."})]}),N(u5,{fullWidth:!0,onClick:e,children:"Voltar para login"})]})}))}import{Button as p5,LIcon as k2,Typography as K}from"@s_mart/core";import{Form as V5,TextField as $2}from"@s_mart/form";import q from"@emotion/styled";var S1=q.div`
|
|
225
271
|
display: grid;
|
|
226
|
-
gap: ${
|
|
227
|
-
`,
|
|
272
|
+
gap: ${i(32)};
|
|
273
|
+
`,E1=q.header`
|
|
228
274
|
display: grid;
|
|
229
275
|
text-align: center;
|
|
230
|
-
gap: ${
|
|
231
|
-
`,
|
|
276
|
+
gap: ${i(16)};
|
|
277
|
+
`,w1=q.div`
|
|
232
278
|
display: grid;
|
|
233
|
-
gap: ${
|
|
234
|
-
|
|
279
|
+
gap: ${i(32)};
|
|
280
|
+
`,T1=q.div`
|
|
235
281
|
display: grid;
|
|
236
|
-
gap: ${
|
|
282
|
+
gap: ${i(4)};
|
|
237
283
|
|
|
238
284
|
> div:first-of-type {
|
|
239
285
|
display: grid;
|
|
240
286
|
grid-template-columns: 1fr 1fr;
|
|
241
|
-
gap: ${
|
|
287
|
+
gap: ${i(16)};
|
|
242
288
|
|
|
243
289
|
@media (max-width: 768px) {
|
|
244
290
|
grid-template-columns: 1fr;
|
|
245
|
-
gap: ${
|
|
291
|
+
gap: ${i(8)};
|
|
246
292
|
}
|
|
247
293
|
}
|
|
248
294
|
|
|
249
295
|
> div:last-of-type {
|
|
250
296
|
display: grid;
|
|
251
|
-
gap: ${
|
|
297
|
+
gap: ${i(4)};
|
|
252
298
|
}
|
|
253
|
-
`,
|
|
299
|
+
`,k1=q.div`
|
|
254
300
|
display: flex;
|
|
255
301
|
flex-wrap: wrap;
|
|
256
|
-
gap: ${
|
|
257
|
-
`,
|
|
302
|
+
gap: ${i(8)};
|
|
303
|
+
`,p2=q.div`
|
|
258
304
|
display: flex;
|
|
259
305
|
align-items: center;
|
|
260
|
-
gap: ${
|
|
306
|
+
gap: ${i(4)};
|
|
261
307
|
|
|
262
|
-
color: ${
|
|
263
|
-
border: 1px solid ${
|
|
264
|
-
border-radius: ${
|
|
265
|
-
padding: ${
|
|
308
|
+
color: ${L.neutral[600]};
|
|
309
|
+
border: 1px solid ${L.neutral[600]};
|
|
310
|
+
border-radius: ${i(4)};
|
|
311
|
+
padding: ${i(3)} ${i(4)};
|
|
266
312
|
|
|
267
313
|
line-height: 1em;
|
|
268
314
|
vertical-align: middle;
|
|
269
315
|
|
|
270
|
-
${({checked:
|
|
271
|
-
color: ${
|
|
272
|
-
border-color: ${
|
|
316
|
+
${({checked:C})=>{if(C)return`
|
|
317
|
+
color: ${L.green[300]};
|
|
318
|
+
border-color: ${L.green[300]};
|
|
273
319
|
`}}
|
|
274
|
-
`;function
|
|
320
|
+
`;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:c,senhaContemNumero:d,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 _=c(h("senha")),f=d(h("senha")),w=p(h("senha"));return T(w1,{children:[V($2,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),T(T1,{children:[T("div",{children:[V($2,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:$}),V($2,{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(p2,{checked:Boolean(_),children:[_&&V(k2,{icon:A,size:"16px",removeMargin:!0}),V(K,{variant:"bodyXS",children:"Uma letra"})]}),T(p2,{checked:Boolean(f),children:[f&&V(k2,{icon:A,size:"16px",removeMargin:!0}),V(K,{variant:"bodyXS",children:"Um n\xFAmero"})]}),T(p2,{checked:Boolean(w),children:[w&&V(k2,{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 P2 from"@emotion/styled";var P1=P2.div`
|
|
275
321
|
display: grid;
|
|
276
|
-
gap: ${
|
|
322
|
+
gap: ${i(32)};
|
|
277
323
|
|
|
278
324
|
> div {
|
|
279
325
|
display: grid;
|
|
280
|
-
gap: ${
|
|
326
|
+
gap: ${i(16)};
|
|
281
327
|
}
|
|
282
|
-
`,
|
|
328
|
+
`,A1=P2.header`
|
|
283
329
|
display: grid;
|
|
284
330
|
text-align: center;
|
|
285
|
-
gap: ${
|
|
286
|
-
`,
|
|
331
|
+
gap: ${i(16)};
|
|
332
|
+
`,B1=P2.div`
|
|
287
333
|
display: grid;
|
|
288
|
-
gap: ${
|
|
334
|
+
gap: ${i(32)};
|
|
289
335
|
|
|
290
336
|
> div:last-of-type {
|
|
291
337
|
display: grid;
|
|
292
|
-
gap: ${
|
|
338
|
+
gap: ${i(16)};
|
|
293
339
|
}
|
|
294
|
-
`;import{Form as
|
|
340
|
+
`;import{Form as m5,TextField as M5}from"@s_mart/form";import{jsx as E,jsxs as V2}from"react/jsx-runtime";function g5(n){var o=n,{logo:C,onVoltarParaLogin:e,onConfirmar:r}=o,a=x(o,["logo","onVoltarParaLogin","onConfirmar"]);let c=typeof C=="string"?E("img",{src:C,alt:"Logo do sistema"}):C,{width:d}=B();return E(g,y(M({},a),{paperStyle:{minWidth:d>500?456:void 0,width:d>500?void 0:"90%"},children:V2(P1,{children:[V2("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[E(A1,{children:C&&E("div",{children:c})}),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:V2(B1,{children:[E("div",{children:E(M5,{name:"email",label:"E-mail de acesso",required:!0,rules:j2([$,U2])})}),V2("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,L5 as TelaConviteExpirado,g5 as TelaEsqueceuSenha,H5 as TelaInstrucoesEnviadas,d5 as TelaLogin,f5 as TelaNovaSenha,g as TemplateTelaBase};
|
|
295
341
|
/** @license React v16.13.1
|
|
296
342
|
* react-is.development.js
|
|
297
343
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s_mart/telas-de-acesso",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
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",
|