@s_mart/telas-de-acesso 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +120 -120
- package/dist/index.mjs +120 -120
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var v3=Object.create;var Q=Object.defineProperty,h3=Object.defineProperties,y3=Object.getOwnPropertyDescriptor,x3=Object.getOwnPropertyDescriptors,b3=Object.getOwnPropertyNames,s2=Object.getOwnPropertySymbols,S3=Object.getPrototypeOf,$2=Object.prototype.hasOwnProperty,U2=Object.prototype.propertyIsEnumerable;var j2=(C,e,r)=>e in C?Q(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,b=(C,e)=>{for(var r in e||(e={}))$2.call(e,r)&&j2(C,r,e[r]);if(s2)for(var r of s2(e))U2.call(e,r)&&j2(C,r,e[r]);return C},E=(C,e)=>h3(C,x3(e));var w=(C,e)=>{var r={};for(var a in C)$2.call(C,a)&&e.indexOf(a)<0&&(r[a]=C[a]);if(C!=null&&s2)for(var a of s2(C))e.indexOf(a)<0&&U2.call(C,a)&&(r[a]=C[a]);return r};var l2=(C,e)=>()=>(e||C((e={exports:{}}).exports,e),e.exports),E3=(C,e)=>{for(var r in e)Q(C,r,{get:e[r],enumerable:!0})},Y2=(C,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of b3(e))!$2.call(C,n)&&n!==r&&Q(C,n,{get:()=>e[n],enumerable:!(a=y3(e,n))||a.enumerable});return C};var M=(C,e,r)=>(r=C!=null?v3(S3(C)):{},Y2(e||!C||!C.__esModule?Q(r,"default",{value:C,enumerable:!0}):r,C)),w3=C=>Y2(Q({},"__esModule",{value:!0}),C);var c1=l2(l=>{"use strict";var V=typeof Symbol=="function"&&Symbol.for,A2=V?Symbol.for("react.element"):60103,O2=V?Symbol.for("react.portal"):60106,V2=V?Symbol.for("react.fragment"):60107,f2=V?Symbol.for("react.strict_mode"):60108,m2=V?Symbol.for("react.profiler"):60114,M2=V?Symbol.for("react.provider"):60109,g2=V?Symbol.for("react.context"):60110,B2=V?Symbol.for("react.async_mode"):60111,Z2=V?Symbol.for("react.concurrent_mode"):60111,v2=V?Symbol.for("react.forward_ref"):60112,h2=V?Symbol.for("react.suspense"):60113,Y3=V?Symbol.for("react.suspense_list"):60120,y2=V?Symbol.for("react.memo"):60115,x2=V?Symbol.for("react.lazy"):60116,X3=V?Symbol.for("react.block"):60121,K3=V?Symbol.for("react.fundamental"):60117,G3=V?Symbol.for("react.responder"):60118,Q3=V?Symbol.for("react.scope"):60119;function S(C){if(typeof C=="object"&&C!==null){var e=C.$$typeof;switch(e){case A2:switch(C=C.type,C){case B2:case Z2:case V2:case m2:case f2:case h2:return C;default:switch(C=C&&C.$$typeof,C){case g2:case v2:case x2:case y2:case M2:return C;default:return e}}case O2:return e}}}function L1(C){return S(C)===Z2}l.AsyncMode=B2;l.ConcurrentMode=Z2;l.ContextConsumer=g2;l.ContextProvider=M2;l.Element=A2;l.ForwardRef=v2;l.Fragment=V2;l.Lazy=x2;l.Memo=y2;l.Portal=O2;l.Profiler=m2;l.StrictMode=f2;l.Suspense=h2;l.isAsyncMode=function(C){return L1(C)||S(C)===B2};l.isConcurrentMode=L1;l.isContextConsumer=function(C){return S(C)===g2};l.isContextProvider=function(C){return S(C)===M2};l.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===A2};l.isForwardRef=function(C){return S(C)===v2};l.isFragment=function(C){return S(C)===V2};l.isLazy=function(C){return S(C)===x2};l.isMemo=function(C){return S(C)===y2};l.isPortal=function(C){return S(C)===O2};l.isProfiler=function(C){return S(C)===m2};l.isStrictMode=function(C){return S(C)===f2};l.isSuspense=function(C){return S(C)===h2};l.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===V2||C===Z2||C===m2||C===f2||C===h2||C===Y3||typeof C=="object"&&C!==null&&(C.$$typeof===x2||C.$$typeof===y2||C.$$typeof===M2||C.$$typeof===g2||C.$$typeof===v2||C.$$typeof===K3||C.$$typeof===G3||C.$$typeof===Q3||C.$$typeof===X3)};l.typeOf=S});var d1=l2(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,d=C?Symbol.for("react.context"):60110,f=C?Symbol.for("react.async_mode"):60111,h=C?Symbol.for("react.concurrent_mode"):60111,g=C?Symbol.for("react.forward_ref"):60112,P=C?Symbol.for("react.suspense"):60113,X=C?Symbol.for("react.suspense_list"):60120,D=C?Symbol.for("react.memo"):60115,y=C?Symbol.for("react.lazy"):60116,i2=C?Symbol.for("react.block"):60121,n2=C?Symbol.for("react.fundamental"):60117,t2=C?Symbol.for("react.responder"):60118,a2=C?Symbol.for("react.scope"):60119;function K1(t){return typeof t=="string"||typeof t=="function"||t===a||t===h||t===s||t===n||t===P||t===X||typeof t=="object"&&t!==null&&(t.$$typeof===y||t.$$typeof===D||t.$$typeof===u||t.$$typeof===d||t.$$typeof===g||t.$$typeof===n2||t.$$typeof===t2||t.$$typeof===a2||t.$$typeof===i2)}function x(t){if(typeof t=="object"&&t!==null){var P2=t.$$typeof;switch(P2){case e:var o2=t.type;switch(o2){case f:case h:case a:case s:case n:case P:return o2;default:var W2=o2&&o2.$$typeof;switch(W2){case d:case g:case y:case D:case u:return W2;default:return P2}}case r:return P2}}}var G1=f,Q1=h,J1=d,C3=u,e3=e,r3=g,i3=a,n3=y,t3=D,a3=r,o3=s,s3=n,l3=P,q2=!1;function L3(t){return q2||(q2=!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.")),z2(t)||x(t)===f}function z2(t){return x(t)===h}function c3(t){return x(t)===d}function d3(t){return x(t)===u}function u3(t){return typeof t=="object"&&t!==null&&t.$$typeof===e}function H3(t){return x(t)===g}function p3(t){return x(t)===a}function V3(t){return x(t)===y}function f3(t){return x(t)===D}function m3(t){return x(t)===r}function M3(t){return x(t)===s}function g3(t){return x(t)===n}function Z3(t){return x(t)===P}L.AsyncMode=G1,L.ConcurrentMode=Q1,L.ContextConsumer=J1,L.ContextProvider=C3,L.Element=e3,L.ForwardRef=r3,L.Fragment=i3,L.Lazy=n3,L.Memo=t3,L.Portal=a3,L.Profiler=o3,L.StrictMode=s3,L.Suspense=l3,L.isAsyncMode=L3,L.isConcurrentMode=z2,L.isContextConsumer=c3,L.isContextProvider=d3,L.isElement=u3,L.isForwardRef=H3,L.isFragment=p3,L.isLazy=V3,L.isMemo=f3,L.isPortal=m3,L.isProfiler=M3,L.isStrictMode=g3,L.isSuspense=Z3,L.isValidElementType=K1,L.typeOf=x}()});var u1=l2((D5,D2)=>{"use strict";process.env.NODE_ENV==="production"?D2.exports=c1():D2.exports=d1()});var g1=l2((R5,M1)=>{"use strict";var R2=u1(),J3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},C5={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},e5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},f1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F2={};F2[R2.ForwardRef]=e5;F2[R2.Memo]=f1;function H1(C){return R2.isMemo(C)?f1:F2[C.$$typeof]||J3}var r5=Object.defineProperty,i5=Object.getOwnPropertyNames,p1=Object.getOwnPropertySymbols,n5=Object.getOwnPropertyDescriptor,t5=Object.getPrototypeOf,V1=Object.prototype;function m1(C,e,r){if(typeof e!="string"){if(V1){var a=t5(e);a&&a!==V1&&m1(C,a,r)}var n=i5(e);p1&&(n=n.concat(p1(e)));for(var s=H1(C),u=H1(e),d=0;d<n.length;++d){var f=n[d];if(!C5[f]&&!(r&&r[f])&&!(u&&u[f])&&!(s&&s[f])){var h=n5(e,f);try{r5(C,f,h)}catch(g){}}}}return C}M1.exports=m1});var c5={};E3(c5,{TelaCadastro:()=>l1,TelaConviteExpirado:()=>O1,TelaEsqueceuSenha:()=>X1,TelaInstrucoesEnviadas:()=>R1,TelaLogin:()=>P1,TelaNovaSenha:()=>W1,TemplateTelaBase:()=>v});module.exports=w3(c5);var c2=require("@s_mart/core"),C1=require("@s_mart/masks");var N={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 L2={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 K=M(require("@emotion/styled"));var T3=Object.defineProperty,k3=(C,e)=>{for(var r in e)T3(C,r,{get:e[r],enumerable:!0})},H={};k3(H,{blue:()=>$3,green:()=>D3,neutral:()=>I3,red:()=>O3,yellow:()=>F3});var P3={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},$3=P3,A3={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},O3=A3,B3={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},D3=B3,R3={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},F3=R3,N3={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},I3=N3;var X2=K.default.div`
|
|
1
|
+
"use strict";var H2=Object.create;var G=Object.defineProperty,b2=Object.defineProperties,x2=Object.getOwnPropertyDescriptor,V2=Object.getOwnPropertyDescriptors,S2=Object.getOwnPropertyNames,l1=Object.getOwnPropertySymbols,E2=Object.getPrototypeOf,P1=Object.prototype.hasOwnProperty,U1=Object.prototype.propertyIsEnumerable;var W1=(e,a,r)=>a in e?G(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,S=(e,a)=>{for(var r in a||(a={}))P1.call(a,r)&&W1(e,r,a[r]);if(l1)for(var r of l1(a))U1.call(a,r)&&W1(e,r,a[r]);return e},L=(e,a)=>b2(e,V2(a));var T=(e,a)=>{var r={};for(var c in e)P1.call(e,c)&&a.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&l1)for(var c of l1(e))a.indexOf(c)<0&&U1.call(e,c)&&(r[c]=e[c]);return r};var s1=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports),L2=(e,a)=>{for(var r in a)G(e,r,{get:a[r],enumerable:!0})},Y1=(e,a,r,c)=>{if(a&&typeof a=="object"||typeof a=="function")for(let i of S2(a))!P1.call(e,i)&&i!==r&&G(e,i,{get:()=>a[i],enumerable:!(c=x2(a,i))||c.enumerable});return e};var y=(e,a,r)=>(r=e!=null?H2(E2(e)):{},Y1(a||!e||!e.__esModule?G(r,"default",{value:e,enumerable:!0}):r,e)),T2=e=>Y1(G({},"__esModule",{value:!0}),e);var d0=s1(s=>{"use strict";var f=typeof Symbol=="function"&&Symbol.for,$1=f?Symbol.for("react.element"):60103,O1=f?Symbol.for("react.portal"):60106,f1=f?Symbol.for("react.fragment"):60107,g1=f?Symbol.for("react.strict_mode"):60108,Z1=f?Symbol.for("react.profiler"):60114,y1=f?Symbol.for("react.provider"):60109,M1=f?Symbol.for("react.context"):60110,D1=f?Symbol.for("react.async_mode"):60111,C1=f?Symbol.for("react.concurrent_mode"):60111,H1=f?Symbol.for("react.forward_ref"):60112,b1=f?Symbol.for("react.suspense"):60113,Y2=f?Symbol.for("react.suspense_list"):60120,x1=f?Symbol.for("react.memo"):60115,V1=f?Symbol.for("react.lazy"):60116,X2=f?Symbol.for("react.block"):60121,K2=f?Symbol.for("react.fundamental"):60117,Q2=f?Symbol.for("react.responder"):60118,G2=f?Symbol.for("react.scope"):60119;function E(e){if(typeof e=="object"&&e!==null){var a=e.$$typeof;switch(a){case $1:switch(e=e.type,e){case D1:case C1:case f1:case Z1:case g1:case b1:return e;default:switch(e=e&&e.$$typeof,e){case M1:case H1:case V1:case x1:case y1:return e;default:return a}}case O1:return a}}}function h0(e){return E(e)===C1}s.AsyncMode=D1;s.ConcurrentMode=C1;s.ContextConsumer=M1;s.ContextProvider=y1;s.Element=$1;s.ForwardRef=H1;s.Fragment=f1;s.Lazy=V1;s.Memo=x1;s.Portal=O1;s.Profiler=Z1;s.StrictMode=g1;s.Suspense=b1;s.isAsyncMode=function(e){return h0(e)||E(e)===D1};s.isConcurrentMode=h0;s.isContextConsumer=function(e){return E(e)===M1};s.isContextProvider=function(e){return E(e)===y1};s.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$1};s.isForwardRef=function(e){return E(e)===H1};s.isFragment=function(e){return E(e)===f1};s.isLazy=function(e){return E(e)===V1};s.isMemo=function(e){return E(e)===x1};s.isPortal=function(e){return E(e)===O1};s.isProfiler=function(e){return E(e)===Z1};s.isStrictMode=function(e){return E(e)===g1};s.isSuspense=function(e){return E(e)===b1};s.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===f1||e===C1||e===Z1||e===g1||e===b1||e===Y2||typeof e=="object"&&e!==null&&(e.$$typeof===V1||e.$$typeof===x1||e.$$typeof===y1||e.$$typeof===M1||e.$$typeof===H1||e.$$typeof===K2||e.$$typeof===Q2||e.$$typeof===G2||e.$$typeof===X2)};s.typeOf=E});var v0=s1(h=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,a=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,c=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,m=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,b=e?Symbol.for("react.concurrent_mode"):60111,M=e?Symbol.for("react.forward_ref"):60112,A=e?Symbol.for("react.suspense"):60113,X=e?Symbol.for("react.suspense_list"):60120,R=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,n1=e?Symbol.for("react.block"):60121,i1=e?Symbol.for("react.fundamental"):60117,t1=e?Symbol.for("react.responder"):60118,c1=e?Symbol.for("react.scope"):60119;function K0(t){return typeof t=="string"||typeof t=="function"||t===c||t===b||t===l||t===i||t===A||t===X||typeof t=="object"&&t!==null&&(t.$$typeof===x||t.$$typeof===R||t.$$typeof===u||t.$$typeof===m||t.$$typeof===M||t.$$typeof===i1||t.$$typeof===t1||t.$$typeof===c1||t.$$typeof===n1)}function V(t){if(typeof t=="object"&&t!==null){var A1=t.$$typeof;switch(A1){case a:var o1=t.type;switch(o1){case g:case b:case c:case l:case i:case A:return o1;default:var z1=o1&&o1.$$typeof;switch(z1){case m:case M:case x:case R:case u:return z1;default:return A1}}case r:return A1}}}var Q0=g,G0=b,J0=m,e2=u,a2=a,r2=M,n2=c,i2=x,t2=R,c2=r,o2=l,l2=i,s2=A,q1=!1;function h2(t){return q1||(q1=!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.")),j1(t)||V(t)===g}function j1(t){return V(t)===b}function d2(t){return V(t)===m}function v2(t){return V(t)===u}function m2(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function u2(t){return V(t)===M}function p2(t){return V(t)===c}function f2(t){return V(t)===x}function g2(t){return V(t)===R}function Z2(t){return V(t)===r}function y2(t){return V(t)===l}function M2(t){return V(t)===i}function C2(t){return V(t)===A}h.AsyncMode=Q0,h.ConcurrentMode=G0,h.ContextConsumer=J0,h.ContextProvider=e2,h.Element=a2,h.ForwardRef=r2,h.Fragment=n2,h.Lazy=i2,h.Memo=t2,h.Portal=c2,h.Profiler=o2,h.StrictMode=l2,h.Suspense=s2,h.isAsyncMode=h2,h.isConcurrentMode=j1,h.isContextConsumer=d2,h.isContextProvider=v2,h.isElement=m2,h.isForwardRef=u2,h.isFragment=p2,h.isLazy=f2,h.isMemo=g2,h.isPortal=Z2,h.isProfiler=y2,h.isStrictMode=M2,h.isSuspense=C2,h.isValidElementType=K0,h.typeOf=V}()});var m0=s1((R3,R1)=>{"use strict";process.env.NODE_ENV==="production"?R1.exports=d0():R1.exports=v0()});var M0=s1((F3,y0)=>{"use strict";var F1=m0(),J2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},e3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},g0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},N1={};N1[F1.ForwardRef]=a3;N1[F1.Memo]=g0;function u0(e){return F1.isMemo(e)?g0:N1[e.$$typeof]||J2}var r3=Object.defineProperty,n3=Object.getOwnPropertyNames,p0=Object.getOwnPropertySymbols,i3=Object.getOwnPropertyDescriptor,t3=Object.getPrototypeOf,f0=Object.prototype;function Z0(e,a,r){if(typeof a!="string"){if(f0){var c=t3(a);c&&c!==f0&&Z0(e,c,r)}var i=n3(a);p0&&(i=i.concat(p0(a)));for(var l=u0(e),u=u0(a),m=0;m<i.length;++m){var g=i[m];if(!e3[g]&&!(r&&r[g])&&!(u&&u[g])&&!(l&&l[g])){var b=i3(a,g);try{r3(e,g,b)}catch(M){}}}}return e}y0.exports=Z0});var d3={};L2(d3,{TelaCadastro:()=>s0,TelaConviteExpirado:()=>O0,TelaEsqueceuSenha:()=>X0,TelaInstrucoesEnviadas:()=>F0,TelaLogin:()=>A0,TelaNovaSenha:()=>z0,TemplateTelaBase:()=>H});module.exports=T2(d3);var d1=require("@s_mart/core"),e0=require("@s_mart/masks");var I={description:"m37.5 11.3-19 19.4-7-7.2a.9.9 0 0 0-1.2 0l-2 2.1c-.4.4-.4 1 0 1.3l9.6 9.8c.3.4.9.4 1.2 0l21.6-22.1c.4-.3.4-1 0-1.3l-2-2a.9.9 0 0 0-1.2 0Z",id:"line-check-regular"};var h1={description:"M35.2 12.7a15.9 15.9 0 0 0-25 19.1L8 40l8.4-2.2a16 16 0 0 0 23.6-14 16 16 0 0 0-4.8-11.1ZM24 37a13 13 0 0 1-6.7-1.9l-.5-.3-5 1.3 1.3-4.8-.3-.5a13.2 13.2 0 0 1 20.5-16.3c2.5 2.4 4 5.7 4 9.3C37.3 31 31.3 37 24 37Zm7.2-10-2.7-1c-.4-.1-.6-.2-.9.2l-1.2 1.5c-.3.3-.5.3-.9.1-2.3-1.1-3.9-2-5.4-4.7-.4-.7.4-.6 1.2-2.1v-.7c-.2-.2-1-2.2-1.3-3-.3-.7-.6-.6-.9-.6h-.7c-.3 0-.7 0-1 .4-.4.4-1.5 1.4-1.5 3.3 0 2 1.5 3.9 1.6 4.1.2.3 2.8 4.3 6.8 6 2.5 1.1 3.5 1.2 4.8 1 .7 0 2.3-1 2.6-1.9.4-.9.4-1.7.3-1.9l-.8-.4Z",id:"line-whatsapp-regular"};var n=e=>`${e/16}rem`;var K=y(require("@emotion/styled"));var k2=Object.defineProperty,w2=(e,a)=>{for(var r in a)k2(e,r,{get:a[r],enumerable:!0})},v={};w2(v,{blue:()=>P2,green:()=>R2,neutral:()=>_2,red:()=>O2,yellow:()=>N2});var A2={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},P2=A2,$2={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},O2=$2,D2={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},R2=D2,F2={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},N2=F2,I2={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},_2=I2;var X1=K.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:e})=>e.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:e})=>e.palette.common.white};
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@media (max-height: 600px) {
|
|
19
19
|
justify-content: flex-start;
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,K1=K.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
|
+
`,Q1=K.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:e})=>e.palette.common.white};
|
|
36
|
+
font-size: ${n(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: ${n(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: ${n(24)};
|
|
50
50
|
|
|
51
51
|
@media (max-width: 768px) {
|
|
52
52
|
display: none;
|
|
@@ -59,131 +59,131 @@
|
|
|
59
59
|
|
|
60
60
|
span {
|
|
61
61
|
background-color: #262626;
|
|
62
|
-
padding: ${
|
|
63
|
-
border-radius: ${
|
|
62
|
+
padding: ${n(4)} ${n(8)};
|
|
63
|
+
border-radius: ${n(12)};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
@media (max-width: 500px) {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,G1=K.default.div`
|
|
70
70
|
position: relative;
|
|
71
71
|
z-index: 2;
|
|
72
72
|
|
|
73
|
-
padding: ${
|
|
74
|
-
border-radius: ${
|
|
75
|
-
margin: ${
|
|
73
|
+
padding: ${n(32)};
|
|
74
|
+
border-radius: ${n(24)};
|
|
75
|
+
margin: ${n(16)};
|
|
76
76
|
|
|
77
|
-
background-color: ${({theme:
|
|
78
|
-
`,
|
|
77
|
+
background-color: ${({theme:e})=>e.palette.common.white};
|
|
78
|
+
`,J1=K.default.button`
|
|
79
79
|
position: relative;
|
|
80
80
|
z-index: 2;
|
|
81
81
|
|
|
82
|
-
background-color: ${({theme:
|
|
83
|
-
padding: ${
|
|
82
|
+
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
83
|
+
padding: ${n(4)} ${n(8)};
|
|
84
84
|
border: none;
|
|
85
|
-
border-radius: ${
|
|
85
|
+
border-radius: ${n(8)};
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
|
|
88
88
|
display: flex;
|
|
89
89
|
align-items: center;
|
|
90
|
-
gap: ${
|
|
90
|
+
gap: ${n(4)};
|
|
91
91
|
|
|
92
|
-
color: ${({theme:
|
|
92
|
+
color: ${({theme:e})=>e.palette.common.white};
|
|
93
93
|
|
|
94
94
|
@media (max-width: 500px) {
|
|
95
|
-
color: ${({theme:
|
|
95
|
+
color: ${({theme:e})=>e.palette.common.black};
|
|
96
96
|
background-color: transparent;
|
|
97
97
|
|
|
98
98
|
svg {
|
|
99
|
-
color: ${
|
|
99
|
+
color: ${v.green[300]};
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`;var
|
|
102
|
+
`;var $=require("react/jsx-runtime");function H({children:e,whatsapp:a,textoChamativo:r,style:c,paperStyle:i,ilustracao:l}){return(0,$.jsxs)(X1,{style:c,children:[r&&(0,$.jsx)(Q1,{children:r}),l&&(0,$.jsx)(K1,{children:typeof l=="string"?(0,$.jsx)("img",{src:l,alt:"Logo do sistema"}):l}),(0,$.jsx)(G1,{style:i,children:e}),a&&(0,$.jsxs)(J1,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${a}`)},style:{marginBottom:16},children:[(0,$.jsxs)(d1.Typography,{variant:"bodyXS",children:["Com d\xFAvidas? ",e0.telefone.format(a.slice(2))]}),(0,$.jsx)(d1.LIcon,{icon:h1,size:"20px",removeMargin:!0})]})]})}var k=require("@s_mart/core"),F=require("@s_mart/form");var B2=Object.defineProperty,q2=Object.defineProperties,j2=Object.getOwnPropertyDescriptors,a0=Object.getOwnPropertySymbols,z2=Object.prototype.hasOwnProperty,W2=Object.prototype.propertyIsEnumerable,r0=(e,a,r)=>a in e?B2(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,v1=(e,a)=>{for(var r in a||(a={}))z2.call(a,r)&&r0(e,r,a[r]);if(a0)for(var r of a0(a))W2.call(a,r)&&r0(e,r,a[r]);return e},U2=(e,a)=>q2(e,j2(a));var m1=e=>{let a={validate:{}};return e.forEach(r=>{a=U2(v1(v1({},a),r),{validate:v1(v1({},a.validate),r.validate)})}),a},O={validate:{required:e=>{if(!e)return"Obrigat\xF3rio"}}};var u1={validate:{email:e=>{if(e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e))return"O email \xE9 inv\xE1lido"}}};var j=y(require("@emotion/styled"));var n0=j.default.div`
|
|
103
103
|
display: grid;
|
|
104
|
-
gap: ${
|
|
105
|
-
`,
|
|
104
|
+
gap: ${n(32)};
|
|
105
|
+
`,i0=j.default.header`
|
|
106
106
|
display: grid;
|
|
107
107
|
text-align: center;
|
|
108
|
-
gap: ${
|
|
109
|
-
`,
|
|
108
|
+
gap: ${n(16)};
|
|
109
|
+
`,t0=j.default.div`
|
|
110
110
|
display: grid;
|
|
111
|
-
gap: ${
|
|
112
|
-
`,
|
|
111
|
+
gap: ${n(32)};
|
|
112
|
+
`,c0=j.default.div`
|
|
113
113
|
display: grid;
|
|
114
|
-
gap: ${
|
|
114
|
+
gap: ${n(4)};
|
|
115
115
|
|
|
116
116
|
> div:first-of-type {
|
|
117
117
|
display: grid;
|
|
118
118
|
grid-template-columns: 1fr 1fr;
|
|
119
|
-
gap: ${
|
|
119
|
+
gap: ${n(16)};
|
|
120
120
|
|
|
121
121
|
@media (max-width: 768px) {
|
|
122
122
|
grid-template-columns: 1fr;
|
|
123
|
-
gap: ${
|
|
123
|
+
gap: ${n(8)};
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
> div:last-of-type {
|
|
128
128
|
display: grid;
|
|
129
|
-
gap: ${
|
|
129
|
+
gap: ${n(4)};
|
|
130
130
|
}
|
|
131
|
-
`,
|
|
131
|
+
`,o0=j.default.div`
|
|
132
132
|
display: flex;
|
|
133
133
|
flex-wrap: wrap;
|
|
134
|
-
gap: ${
|
|
135
|
-
`,
|
|
134
|
+
gap: ${n(8)};
|
|
135
|
+
`,p1=j.default.div`
|
|
136
136
|
display: flex;
|
|
137
137
|
align-items: center;
|
|
138
|
-
gap: ${
|
|
138
|
+
gap: ${n(4)};
|
|
139
139
|
|
|
140
|
-
color: ${
|
|
141
|
-
border: 1px solid ${
|
|
142
|
-
border-radius: ${
|
|
143
|
-
padding: ${
|
|
140
|
+
color: ${v.neutral[600]};
|
|
141
|
+
border: 1px solid ${v.neutral[600]};
|
|
142
|
+
border-radius: ${n(4)};
|
|
143
|
+
padding: ${n(3)} ${n(4)};
|
|
144
144
|
|
|
145
145
|
line-height: 1em;
|
|
146
146
|
vertical-align: middle;
|
|
147
147
|
|
|
148
|
-
${({checked:
|
|
149
|
-
color: ${
|
|
150
|
-
border-color: ${
|
|
148
|
+
${({checked:e})=>{if(e)return`
|
|
149
|
+
color: ${v.green[300]};
|
|
150
|
+
border-color: ${v.green[300]};
|
|
151
151
|
`}}
|
|
152
|
-
`;function
|
|
152
|
+
`;function l0(){let e=i=>i?i.match(/[a-z]/i):!1,a=i=>i?i.match(/[0-9]/i):!1,r=i=>i?i.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:i=>!i.email||!i.senha||!i.confirmarSenha||!i.termosDeUso||!e(i.senha)||!a(i.senha)||!r(i.senha)}}var o=require("react/jsx-runtime");function s0(m){var g=m,{logo:e,nomeSistema:a,onSubmit:r,linkTermosDeUso:c,email:i,nome:l}=g,u=T(g,["logo","nomeSistema","onSubmit","linkTermosDeUso","email","nome"]);let{senhaContemLetra:b,senhaContemNumero:M,senhaContemMinimoDe6Caracteres:A,desabilitarBotaoDeCadastro:X}=l0(),R=typeof e=="string"?(0,o.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,o.jsx)(H,L(S({},u),{children:(0,o.jsxs)(n0,{children:[(0,o.jsxs)(i0,{children:[e&&(0,o.jsx)("div",{children:R}),(0,o.jsxs)(k.Typography,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",a,"."]})]}),(0,o.jsx)(F.Form,{onSubmit:r,defaultValues:{email:i,nome:l,termosDeUso:!1},children:({watch:x})=>{let n1=b(x("senha")),i1=M(x("senha")),t1=A(x("senha"));return(0,o.jsxs)(t0,{children:[(0,o.jsx)(F.TextField,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),(0,o.jsx)(F.TextField,{name:"nome",label:"Nome completo",required:!0,rules:O}),(0,o.jsxs)(c0,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(F.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:O}),(0,o.jsx)(F.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:c1=>{if(!c1)return"Campo obrigat\xF3rio";if(c1!==x("senha"))return"As senhas devem ser iguais"}}})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(k.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,o.jsxs)(o0,{children:[(0,o.jsxs)(p1,{checked:Boolean(n1),children:[n1&&(0,o.jsx)(k.LIcon,{icon:I,size:"16px",removeMargin:!0}),(0,o.jsx)(k.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,o.jsxs)(p1,{checked:Boolean(i1),children:[i1&&(0,o.jsx)(k.LIcon,{icon:I,size:"16px",removeMargin:!0}),(0,o.jsx)(k.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,o.jsxs)(p1,{checked:Boolean(t1),children:[t1&&(0,o.jsx)(k.LIcon,{icon:I,size:"16px",removeMargin:!0}),(0,o.jsx)(k.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,o.jsx)("div",{children:(0,o.jsx)(F.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:c,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),(0,o.jsx)("div",{children:(0,o.jsx)(k.Button,{type:"submit",fullWidth:!0,disabled:X(x()),children:"Concluir meu cadastro"})})]})}})]})}))}var w0=require("react"),W=require("@s_mart/core"),U=require("@s_mart/form");var S1=require("react");var J=y(require("react"),1);var D=y(require("react")),c3=require("react-dom");var o3=y(M0());var l3="SnackbarContent",_3={root:l3+"-root"};var N="SnackbarItem",B3={contentRoot:N+"-contentRoot",lessPadding:N+"-lessPadding",variantSuccess:N+"-variantSuccess",variantError:N+"-variantError",variantInfo:N+"-variantInfo",variantWarning:N+"-variantWarning",message:N+"-message",action:N+"-action",wrappedRoot:N+"-wrappedRoot"};var z="SnackbarContainer",q3={root:z+"-root",rootDense:z+"-rootDense",top:z+"-top",bottom:z+"-bottom",left:z+"-left",right:z+"-right",center:z+"-center"};var j3=process.env.NODE_ENV!=="production";var E1=y(require("@emotion/styled"),1);var H0=y(require("@emotion/styled"),1),_=require("@emotion/react");var s3=require("react/jsx-runtime"),b0=require("react/jsx-runtime"),I1=require("react/jsx-runtime"),x0=require("react"),V0=y(require("react"),1),S0=y(require("react"),1),E0=y(require("react"),1),e1=y(require("react"),1);var C0=()=>{let[e,a]=(0,S1.useState)(!1);return(0,S1.useEffect)(()=>{let r=c=>{c.key==="CapsLock"&&a(c.getModifierState("CapsLock"))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[]),e};var B=({defaultValue:e}={})=>{let a=typeof window!="undefined",r=J.default.useCallback(()=>{if(!a){if(e){let{width:u=0,height:m=0}=e;return{width:u,height:m}}return{width:0,height:0}}return{width:window.innerWidth,height:window.innerHeight}},[a,e]),[c,i]=J.default.useState(r()),l=J.default.useCallback(()=>{i(r())},[i,r]);return J.default.useEffect(()=>a?(window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}):()=>{},[l,a]),c},K3=E1.default.div`
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
155
|
justify-content: space-between;
|
|
156
|
-
gap: ${
|
|
156
|
+
gap: ${n(8)};
|
|
157
157
|
|
|
158
158
|
background-color: white;
|
|
159
159
|
border-radius: 4px;
|
|
160
|
-
padding: ${
|
|
160
|
+
padding: ${n(16)} ${n(16)};
|
|
161
161
|
|
|
162
162
|
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
163
163
|
|
|
164
164
|
border-left: 6px solid
|
|
165
|
-
${({variant:
|
|
165
|
+
${({variant:e})=>{switch(e){case"error":return v.red[300];case"warning":return v.yellow[300];case"info":return v.blue[100];default:case"success":return v.green[300]}}};
|
|
166
166
|
|
|
167
167
|
> div {
|
|
168
168
|
display: flex;
|
|
169
169
|
align-items: center;
|
|
170
|
-
gap: ${
|
|
170
|
+
gap: ${n(8)};
|
|
171
171
|
}
|
|
172
|
-
`,
|
|
172
|
+
`,Q3=E1.default.div`
|
|
173
173
|
display: flex;
|
|
174
174
|
flex-direction: column;
|
|
175
175
|
justify-content: center;
|
|
176
176
|
|
|
177
177
|
> *:first-of-type {
|
|
178
|
-
margin-bottom: ${
|
|
178
|
+
margin-bottom: ${n(4)};
|
|
179
179
|
}
|
|
180
|
-
`,
|
|
180
|
+
`,G3=E1.default.div`
|
|
181
181
|
cursor: pointer;
|
|
182
182
|
align-self: flex-start;
|
|
183
|
-
`,
|
|
183
|
+
`,ee=H0.default.i`
|
|
184
184
|
align-self: center;
|
|
185
185
|
display: inline-flex;
|
|
186
|
-
color: ${({color:
|
|
186
|
+
color: ${({color:e})=>e};
|
|
187
187
|
|
|
188
188
|
user-select: none;
|
|
189
189
|
|
|
@@ -191,150 +191,150 @@
|
|
|
191
191
|
z-index: 0 !important;
|
|
192
192
|
outline: 0 !important;
|
|
193
193
|
|
|
194
|
-
${({left:
|
|
195
|
-
left: ${
|
|
194
|
+
${({left:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&_.css`
|
|
195
|
+
left: ${e};
|
|
196
196
|
`}
|
|
197
197
|
|
|
198
|
-
${({right:
|
|
199
|
-
right: ${
|
|
198
|
+
${({right:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&_.css`
|
|
199
|
+
right: ${e};
|
|
200
200
|
`}
|
|
201
201
|
|
|
202
|
-
${({top:
|
|
203
|
-
top: ${
|
|
202
|
+
${({top:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&_.css`
|
|
203
|
+
top: ${e};
|
|
204
204
|
`}
|
|
205
205
|
|
|
206
|
-
${({bottom:
|
|
207
|
-
bottom: ${
|
|
206
|
+
${({bottom:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&_.css`
|
|
207
|
+
bottom: ${e};
|
|
208
208
|
`}
|
|
209
209
|
|
|
210
|
-
${({color:
|
|
211
|
-
fill: ${
|
|
210
|
+
${({color:e})=>{let a=e;return e==="inherit"&&(a="currentColor"),_.css`
|
|
211
|
+
fill: ${a};
|
|
212
212
|
`}}
|
|
213
213
|
position: relative;
|
|
214
214
|
|
|
215
|
-
height: ${({height:
|
|
216
|
-
width: ${({width:
|
|
215
|
+
height: ${({height:e})=>e} !important;
|
|
216
|
+
width: ${({width:e})=>e} !important;
|
|
217
217
|
|
|
218
|
-
${({removeMargin:
|
|
218
|
+
${({removeMargin:e})=>e?_.css`
|
|
219
219
|
margin: 0;
|
|
220
|
-
`:
|
|
221
|
-
margin: 0 ${
|
|
220
|
+
`:_.css`
|
|
221
|
+
margin: 0 ${n(4)};
|
|
222
222
|
`}
|
|
223
223
|
}
|
|
224
|
-
`;var
|
|
224
|
+
`;var h3=S0.createContext(null);process.env.NODE_ENV!=="production"&&(h3.displayName="ThemeContext");var L1=y(require("@emotion/styled"));var L0=L1.default.div`
|
|
225
225
|
display: grid;
|
|
226
|
-
gap: ${
|
|
227
|
-
`,
|
|
226
|
+
gap: ${n(32)};
|
|
227
|
+
`,T0=L1.default.header`
|
|
228
228
|
display: grid;
|
|
229
229
|
text-align: center;
|
|
230
|
-
gap: ${
|
|
231
|
-
`,
|
|
230
|
+
gap: ${n(16)};
|
|
231
|
+
`,k0=L1.default.div`
|
|
232
232
|
display: grid;
|
|
233
|
-
gap: ${
|
|
233
|
+
gap: ${n(16)};
|
|
234
234
|
|
|
235
235
|
> div {
|
|
236
236
|
display: grid;
|
|
237
|
-
gap: ${
|
|
237
|
+
gap: ${n(16)};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
> div:last-of-type {
|
|
241
|
-
gap: ${
|
|
241
|
+
gap: ${n(8)};
|
|
242
242
|
}
|
|
243
|
-
`;var p=require("react/jsx-runtime");function
|
|
243
|
+
`;var p=require("react/jsx-runtime");function A0(u){var m=u,{logo:e,initialValues:a,onSubmit:r,onEsqueciMinhaSenha:c,errorLabel:i}=m,l=T(m,["logo","initialValues","onSubmit","onEsqueciMinhaSenha","errorLabel"]);let g=typeof e=="string"?(0,p.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:b}=B(),M=C0(),A=(0,w0.useMemo)(()=>S({manterConectado:!1},a),[a]);return(0,p.jsx)(H,L(S({},l),{paperStyle:{minWidth:b>500?456:void 0,width:b>500?void 0:"90%"},children:(0,p.jsxs)(L0,{children:[(0,p.jsx)(T0,{children:e&&(0,p.jsx)("div",{children:g})}),(0,p.jsx)(U.Form,{onSubmit:r,defaultValues:A,children:(0,p.jsxs)(k0,{children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(U.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:m1([O,u1]),autoComplete:"email",type:"email"}),(0,p.jsxs)("div",{children:[(0,p.jsx)(U.TextField,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:O}),M&&(0,p.jsx)(W.Indicator,{severity:"warning",children:"Capslock ativado"}),!!i&&(0,p.jsx)(W.Typography,{variant:"titleXXS",color:v.red[300],children:i})]})]}),(0,p.jsx)(U.Checkbox,{name:"manterConectado",label:"Manter conectado"}),(0,p.jsxs)("div",{children:[(0,p.jsx)(W.Button,{type:"submit",fullWidth:!0,children:"Entrar"}),c&&(0,p.jsx)(W.Button,{type:"button",fullWidth:!0,variant:"text",onClick:c,children:"Esqueci minha senha"})]})]})})]})}))}var q=require("@s_mart/core");var _1=y(require("@emotion/styled"));var P0=_1.default.div`
|
|
244
244
|
display: grid;
|
|
245
|
-
gap: ${
|
|
245
|
+
gap: ${n(32)};
|
|
246
246
|
|
|
247
247
|
> div {
|
|
248
248
|
display: grid;
|
|
249
|
-
gap: ${
|
|
249
|
+
gap: ${n(8)};
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
`,$0=_1.default.header`
|
|
252
252
|
display: grid;
|
|
253
253
|
text-align: center;
|
|
254
|
-
gap: ${
|
|
255
|
-
`;var
|
|
254
|
+
gap: ${n(16)};
|
|
255
|
+
`;var C=require("react/jsx-runtime");function O0(i){var l=i,{logo:e,onPrecisoDeAjuda:a,onRealizarAcesso:r}=l,c=T(l,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let u=typeof e=="string"?(0,C.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:m}=B();return(0,C.jsx)(H,L(S({},c),{paperStyle:{minWidth:m>500?456:void 0,width:m>500?void 0:"90%"},children:(0,C.jsxs)(P0,{children:[(0,C.jsxs)("div",{children:[(0,C.jsx)($0,{children:e&&(0,C.jsx)("div",{children:u})}),(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:8,color:v.neutral[800]},children:[(0,C.jsx)(q.Typography,{variant:"bodyMD",children:"Parece que este convite, j\xE1 foi usado ou expirou."}),(0,C.jsx)(q.Typography,{variant:"bodyMD",children:"J\xE1 se cadastro? Realize o login."})]})]}),(0,C.jsxs)("div",{children:[(0,C.jsx)(q.Button,{fullWidth:!0,onClick:r,children:"Realizar login"}),(0,C.jsxs)(q.Button,{fullWidth:!0,variant:"text",onClick:a,style:{display:"flex",gap:4,color:v.neutral[900]},children:[(0,C.jsx)(q.LIcon,{icon:h1,size:"20px",removeMargin:!0,color:v.neutral[900]}),"Preciso de outro convite"]})]})]})}))}var a1=require("@s_mart/core");var B1=y(require("@emotion/styled"));var D0=B1.default.div`
|
|
256
256
|
display: grid;
|
|
257
|
-
gap: ${
|
|
257
|
+
gap: ${n(32)};
|
|
258
258
|
|
|
259
259
|
> div {
|
|
260
260
|
display: grid;
|
|
261
|
-
gap: ${
|
|
261
|
+
gap: ${n(16)};
|
|
262
262
|
}
|
|
263
|
-
`,
|
|
263
|
+
`,R0=B1.default.header`
|
|
264
264
|
display: grid;
|
|
265
265
|
text-align: center;
|
|
266
|
-
gap: ${
|
|
267
|
-
`;var
|
|
266
|
+
gap: ${n(16)};
|
|
267
|
+
`;var P=require("react/jsx-runtime");function F0(c){var i=c,{logo:e,onVoltarParaLogin:a}=i,r=T(i,["logo","onVoltarParaLogin"]);let l=typeof e=="string"?(0,P.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:u}=B();return(0,P.jsx)(H,L(S({},r),{paperStyle:{maxWidth:u>500?456:void 0,width:u>500?void 0:"90%"},children:(0,P.jsxs)(D0,{children:[(0,P.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,P.jsx)(R0,{children:e&&(0,P.jsx)("div",{children:l})}),(0,P.jsx)(a1.Typography,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),(0,P.jsx)(a1.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,P.jsx)(a1.Button,{fullWidth:!0,onClick:a,children:"Voltar para login"})]})}))}var w=require("@s_mart/core"),r1=require("@s_mart/form");var Y=y(require("@emotion/styled"));var N0=Y.default.div`
|
|
268
268
|
display: grid;
|
|
269
|
-
gap: ${
|
|
270
|
-
`,
|
|
269
|
+
gap: ${n(32)};
|
|
270
|
+
`,I0=Y.default.header`
|
|
271
271
|
display: grid;
|
|
272
272
|
text-align: center;
|
|
273
|
-
gap: ${
|
|
274
|
-
`,
|
|
273
|
+
gap: ${n(16)};
|
|
274
|
+
`,_0=Y.default.div`
|
|
275
275
|
display: grid;
|
|
276
|
-
gap: ${
|
|
277
|
-
`,
|
|
276
|
+
gap: ${n(32)};
|
|
277
|
+
`,B0=Y.default.div`
|
|
278
278
|
display: grid;
|
|
279
|
-
gap: ${
|
|
279
|
+
gap: ${n(4)};
|
|
280
280
|
|
|
281
281
|
> div:first-of-type {
|
|
282
282
|
display: grid;
|
|
283
283
|
grid-template-columns: 1fr 1fr;
|
|
284
|
-
gap: ${
|
|
284
|
+
gap: ${n(16)};
|
|
285
285
|
|
|
286
286
|
@media (max-width: 768px) {
|
|
287
287
|
grid-template-columns: 1fr;
|
|
288
|
-
gap: ${
|
|
288
|
+
gap: ${n(8)};
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
> div:last-of-type {
|
|
293
293
|
display: grid;
|
|
294
|
-
gap: ${
|
|
294
|
+
gap: ${n(4)};
|
|
295
295
|
}
|
|
296
|
-
`,
|
|
296
|
+
`,q0=Y.default.div`
|
|
297
297
|
display: flex;
|
|
298
298
|
flex-wrap: wrap;
|
|
299
|
-
gap: ${
|
|
300
|
-
`,
|
|
299
|
+
gap: ${n(8)};
|
|
300
|
+
`,T1=Y.default.div`
|
|
301
301
|
display: flex;
|
|
302
302
|
align-items: center;
|
|
303
|
-
gap: ${
|
|
303
|
+
gap: ${n(4)};
|
|
304
304
|
|
|
305
|
-
color: ${
|
|
306
|
-
border: 1px solid ${
|
|
307
|
-
border-radius: ${
|
|
308
|
-
padding: ${
|
|
305
|
+
color: ${v.neutral[600]};
|
|
306
|
+
border: 1px solid ${v.neutral[600]};
|
|
307
|
+
border-radius: ${n(4)};
|
|
308
|
+
padding: ${n(3)} ${n(4)};
|
|
309
309
|
|
|
310
310
|
line-height: 1em;
|
|
311
311
|
vertical-align: middle;
|
|
312
312
|
|
|
313
|
-
${({checked:
|
|
314
|
-
color: ${
|
|
315
|
-
border-color: ${
|
|
313
|
+
${({checked:e})=>{if(e)return`
|
|
314
|
+
color: ${v.green[300]};
|
|
315
|
+
border-color: ${v.green[300]};
|
|
316
316
|
`}}
|
|
317
|
-
`;function
|
|
317
|
+
`;function j0(){let e=i=>i?i.match(/[a-z]/i):!1,a=i=>i?i.match(/[0-9]/i):!1,r=i=>i?i.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:i=>!i.senha||!i.confirmarSenha||!e(i.senha)||!a(i.senha)||!r(i.senha)}}var d=require("react/jsx-runtime");function z0(c){var i=c,{logo:e,onTrocarMinhaSenha:a}=i,r=T(i,["logo","onTrocarMinhaSenha"]);let{senhaContemLetra:l,senhaContemNumero:u,senhaContemMinimoDe6Caracteres:m,desabilitarBotaoDeCadastro:g}=j0(),b=typeof e=="string"?(0,d.jsx)("img",{src:e,alt:"Logo do sistema"}):e;return(0,d.jsx)(H,L(S({},r),{children:(0,d.jsxs)(N0,{children:[(0,d.jsxs)(I0,{children:[e&&(0,d.jsx)("div",{children:b}),(0,d.jsx)(w.Typography,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),(0,d.jsx)(r1.Form,{onSubmit:a,children:({watch:M})=>{let A=l(M("senha")),X=u(M("senha")),R=m(M("senha"));return(0,d.jsxs)(_0,{children:[(0,d.jsxs)(B0,{children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(r1.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:O}),(0,d.jsx)(r1.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:x=>{if(!x)return"Campo obrigat\xF3rio";if(x!==M("senha"))return"As senhas devem ser iguais"}}})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(w.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,d.jsxs)(q0,{children:[(0,d.jsxs)(T1,{checked:Boolean(A),children:[A&&(0,d.jsx)(w.LIcon,{icon:I,size:"16px",removeMargin:!0}),(0,d.jsx)(w.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,d.jsxs)(T1,{checked:Boolean(X),children:[X&&(0,d.jsx)(w.LIcon,{icon:I,size:"16px",removeMargin:!0}),(0,d.jsx)(w.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,d.jsxs)(T1,{checked:Boolean(R),children:[R&&(0,d.jsx)(w.LIcon,{icon:I,size:"16px",removeMargin:!0}),(0,d.jsx)(w.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,d.jsx)("div",{children:(0,d.jsx)(w.Button,{type:"submit",fullWidth:!0,disabled:g(M()),children:"Trocar minha senha"})})]})}})]})}))}var Q=require("@s_mart/core");var k1=y(require("@emotion/styled"));var W0=k1.default.div`
|
|
318
318
|
display: grid;
|
|
319
|
-
gap: ${
|
|
319
|
+
gap: ${n(32)};
|
|
320
320
|
|
|
321
321
|
> div {
|
|
322
322
|
display: grid;
|
|
323
|
-
gap: ${
|
|
323
|
+
gap: ${n(16)};
|
|
324
324
|
}
|
|
325
|
-
`,
|
|
325
|
+
`,U0=k1.default.header`
|
|
326
326
|
display: grid;
|
|
327
327
|
text-align: center;
|
|
328
|
-
gap: ${
|
|
329
|
-
`,
|
|
328
|
+
gap: ${n(16)};
|
|
329
|
+
`,Y0=k1.default.div`
|
|
330
330
|
display: grid;
|
|
331
|
-
gap: ${
|
|
331
|
+
gap: ${n(32)};
|
|
332
332
|
|
|
333
333
|
> div:last-of-type {
|
|
334
334
|
display: grid;
|
|
335
|
-
gap: ${
|
|
335
|
+
gap: ${n(16)};
|
|
336
336
|
}
|
|
337
|
-
`;var
|
|
337
|
+
`;var w1=require("@s_mart/form");var Z=require("react/jsx-runtime");function X0(i){var l=i,{logo:e,onVoltarParaLogin:a,onConfirmar:r}=l,c=T(l,["logo","onVoltarParaLogin","onConfirmar"]);let u=typeof e=="string"?(0,Z.jsx)("img",{src:e,alt:"Logo do sistema"}):e,{width:m}=B();return(0,Z.jsx)(H,L(S({},c),{paperStyle:{minWidth:m>500?456:void 0,width:m>500?void 0:"90%"},children:(0,Z.jsxs)(W0,{children:[(0,Z.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,Z.jsx)(U0,{children:e&&(0,Z.jsx)("div",{children:u})}),(0,Z.jsx)(Q.Typography,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),(0,Z.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,Z.jsx)(w1.Form,{onSubmit:r,children:(0,Z.jsxs)(Y0,{children:[(0,Z.jsx)("div",{children:(0,Z.jsx)(w1.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:m1([O,u1])})}),(0,Z.jsxs)("div",{children:[(0,Z.jsx)(Q.Button,{fullWidth:!0,type:"submit",children:"Confirmar"}),(0,Z.jsx)(Q.Button,{fullWidth:!0,onClick:a,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}0&&(module.exports={TelaCadastro,TelaConviteExpirado,TelaEsqueceuSenha,TelaInstrucoesEnviadas,TelaLogin,TelaNovaSenha,TemplateTelaBase});
|
|
338
338
|
/**
|
|
339
339
|
* @mui/material v5.11.7
|
|
340
340
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var p2=Object.create;var b1=Object.defineProperty,f2=Object.defineProperties,g2=Object.getOwnPropertyDescriptor,Z2=Object.getOwnPropertyDescriptors,y2=Object.getOwnPropertyNames,a1=Object.getOwnPropertySymbols,M2=Object.getPrototypeOf,x1=Object.prototype.hasOwnProperty,_1=Object.prototype.propertyIsEnumerable;var I1=(e,a,r)=>a in e?b1(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,C=(e,a)=>{for(var r in a||(a={}))x1.call(a,r)&&I1(e,r,a[r]);if(a1)for(var r of a1(a))_1.call(a,r)&&I1(e,r,a[r]);return e},x=(e,a)=>f2(e,Z2(a));var V=(e,a)=>{var r={};for(var c in e)x1.call(e,c)&&a.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&a1)for(var c of a1(e))a.indexOf(c)<0&&_1.call(e,c)&&(r[c]=e[c]);return r};var r1=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var C2=(e,a,r,c)=>{if(a&&typeof a=="object"||typeof a=="function")for(let i of y2(a))!x1.call(e,i)&&i!==r&&b1(e,i,{get:()=>a[i],enumerable:!(c=g2(a,i))||c.enumerable});return e};var H2=(e,a,r)=>(r=e!=null?p2(M2(e)):{},C2(a||!e||!e.__esModule?b1(r,"default",{value:e,enumerable:!0}):r,e));var r0=r1(l=>{"use strict";var u=typeof Symbol=="function"&&Symbol.for,E1=u?Symbol.for("react.element"):60103,L1=u?Symbol.for("react.portal"):60106,s1=u?Symbol.for("react.fragment"):60107,h1=u?Symbol.for("react.strict_mode"):60108,d1=u?Symbol.for("react.profiler"):60114,v1=u?Symbol.for("react.provider"):60109,m1=u?Symbol.for("react.context"):60110,T1=u?Symbol.for("react.async_mode"):60111,u1=u?Symbol.for("react.concurrent_mode"):60111,p1=u?Symbol.for("react.forward_ref"):60112,f1=u?Symbol.for("react.suspense"):60113,Y2=u?Symbol.for("react.suspense_list"):60120,g1=u?Symbol.for("react.memo"):60115,Z1=u?Symbol.for("react.lazy"):60116,X2=u?Symbol.for("react.block"):60121,K2=u?Symbol.for("react.fundamental"):60117,Q2=u?Symbol.for("react.responder"):60118,G2=u?Symbol.for("react.scope"):60119;function b(e){if(typeof e=="object"&&e!==null){var a=e.$$typeof;switch(a){case E1:switch(e=e.type,e){case T1:case u1:case s1:case d1:case h1:case f1:return e;default:switch(e=e&&e.$$typeof,e){case m1:case p1:case Z1:case g1:case v1:return e;default:return a}}case L1:return a}}}function a0(e){return b(e)===u1}l.AsyncMode=T1;l.ConcurrentMode=u1;l.ContextConsumer=m1;l.ContextProvider=v1;l.Element=E1;l.ForwardRef=p1;l.Fragment=s1;l.Lazy=Z1;l.Memo=g1;l.Portal=L1;l.Profiler=d1;l.StrictMode=h1;l.Suspense=f1;l.isAsyncMode=function(e){return a0(e)||b(e)===T1};l.isConcurrentMode=a0;l.isContextConsumer=function(e){return b(e)===m1};l.isContextProvider=function(e){return b(e)===v1};l.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===E1};l.isForwardRef=function(e){return b(e)===p1};l.isFragment=function(e){return b(e)===s1};l.isLazy=function(e){return b(e)===Z1};l.isMemo=function(e){return b(e)===g1};l.isPortal=function(e){return b(e)===L1};l.isProfiler=function(e){return b(e)===d1};l.isStrictMode=function(e){return b(e)===h1};l.isSuspense=function(e){return b(e)===f1};l.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===s1||e===u1||e===d1||e===h1||e===f1||e===Y2||typeof e=="object"&&e!==null&&(e.$$typeof===Z1||e.$$typeof===g1||e.$$typeof===v1||e.$$typeof===m1||e.$$typeof===p1||e.$$typeof===K2||e.$$typeof===Q2||e.$$typeof===G2||e.$$typeof===X2)};l.typeOf=b});var n0=r1(s=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,a=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,c=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,v=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,Z=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,L=e?Symbol.for("react.suspense"):60113,I=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,K=e?Symbol.for("react.block"):60121,Q=e?Symbol.for("react.fundamental"):60117,G=e?Symbol.for("react.responder"):60118,J=e?Symbol.for("react.scope"):60119;function q0(t){return typeof t=="string"||typeof t=="function"||t===c||t===Z||t===o||t===i||t===L||t===I||typeof t=="object"&&t!==null&&(t.$$typeof===y||t.$$typeof===A||t.$$typeof===v||t.$$typeof===d||t.$$typeof===g||t.$$typeof===Q||t.$$typeof===G||t.$$typeof===J||t.$$typeof===K)}function M(t){if(typeof t=="object"&&t!==null){var H1=t.$$typeof;switch(H1){case a:var e1=t.type;switch(e1){case p:case Z:case c:case o:case i:case L:return e1;default:var N1=e1&&e1.$$typeof;switch(N1){case d:case g:case y:case A:case v:return N1;default:return H1}}case r:return H1}}}var j0=p,z0=Z,W0=d,U0=v,Y0=a,X0=g,K0=c,Q0=y,G0=A,J0=r,e2=o,a2=i,r2=L,R1=!1;function n2(t){return R1||(R1=!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.")),F1(t)||M(t)===p}function F1(t){return M(t)===Z}function i2(t){return M(t)===d}function t2(t){return M(t)===v}function c2(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function o2(t){return M(t)===g}function l2(t){return M(t)===c}function s2(t){return M(t)===y}function h2(t){return M(t)===A}function d2(t){return M(t)===r}function v2(t){return M(t)===o}function m2(t){return M(t)===i}function u2(t){return M(t)===L}s.AsyncMode=j0,s.ConcurrentMode=z0,s.ContextConsumer=W0,s.ContextProvider=U0,s.Element=Y0,s.ForwardRef=X0,s.Fragment=K0,s.Lazy=Q0,s.Memo=G0,s.Portal=J0,s.Profiler=e2,s.StrictMode=a2,s.Suspense=r2,s.isAsyncMode=n2,s.isConcurrentMode=F1,s.isContextConsumer=i2,s.isContextProvider=t2,s.isElement=c2,s.isForwardRef=o2,s.isFragment=l2,s.isLazy=s2,s.isMemo=h2,s.isPortal=d2,s.isProfiler=v2,s.isStrictMode=m2,s.isSuspense=u2,s.isValidElementType=q0,s.typeOf=M}()});var i0=r1((oe,k1)=>{"use strict";process.env.NODE_ENV==="production"?k1.exports=r0():k1.exports=n0()});var d0=r1((le,h0)=>{"use strict";var w1=i0(),J2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},e3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},A1={};A1[w1.ForwardRef]=a3;A1[w1.Memo]=l0;function t0(e){return w1.isMemo(e)?l0:A1[e.$$typeof]||J2}var r3=Object.defineProperty,n3=Object.getOwnPropertyNames,c0=Object.getOwnPropertySymbols,i3=Object.getOwnPropertyDescriptor,t3=Object.getPrototypeOf,o0=Object.prototype;function s0(e,a,r){if(typeof a!="string"){if(o0){var c=t3(a);c&&c!==o0&&s0(e,c,r)}var i=n3(a);c0&&(i=i.concat(c0(a)));for(var o=t0(e),v=t0(a),d=0;d<i.length;++d){var p=i[d];if(!e3[p]&&!(r&&r[p])&&!(v&&v[p])&&!(o&&o[p])){var Z=i3(a,p);try{r3(e,p,Z)}catch(g){}}}}return e}h0.exports=s0});import{LIcon as O2,Typography as D2}from"@s_mart/core";import{telefone as R2}from"@s_mart/masks";var $={description:"m37.5 11.3-19 19.4-7-7.2a.9.9 0 0 0-1.2 0l-2 2.1c-.4.4-.4 1 0 1.3l9.6 9.8c.3.4.9.4 1.2 0l21.6-22.1c.4-.3.4-1 0-1.3l-2-2a.9.9 0 0 0-1.2 0Z",id:"line-check-regular"};var n1={description:"M35.2 12.7a15.9 15.9 0 0 0-25 19.1L8 40l8.4-2.2a16 16 0 0 0 23.6-14 16 16 0 0 0-4.8-11.1ZM24 37a13 13 0 0 1-6.7-1.9l-.5-.3-5 1.3 1.3-4.8-.3-.5a13.2 13.2 0 0 1 20.5-16.3c2.5 2.4 4 5.7 4 9.3C37.3 31 31.3 37 24 37Zm7.2-10-2.7-1c-.4-.1-.6-.2-.9.2l-1.2 1.5c-.3.3-.5.3-.9.1-2.3-1.1-3.9-2-5.4-4.7-.4-.7.4-.6 1.2-2.1v-.7c-.2-.2-1-2.2-1.3-3-.3-.7-.6-.6-.9-.6h-.7c-.3 0-.7 0-1 .4-.4.4-1.5 1.4-1.5 3.3 0 2 1.5 3.9 1.6 4.1.2.3 2.8 4.3 6.8 6 2.5 1.1 3.5 1.2 4.8 1 .7 0 2.3-1 2.6-1.9.4-.9.4-1.7.3-1.9l-.8-.4Z",id:"line-whatsapp-regular"};var n=e=>`${e/16}rem`;import q from"@emotion/styled";var b2=Object.defineProperty,x2=(e,a)=>{for(var r in a)b2(e,r,{get:a[r],enumerable:!0})},h={};x2(h,{blue:()=>S2,green:()=>k2,neutral:()=>$2,red:()=>L2,yellow:()=>A2});var V2={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},S2=V2,E2={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},L2=E2,T2={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},k2=T2,w2={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},A2=w2,P2={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},$2=P2;var B1=q.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -8,17 +8,17 @@ var p3=Object.create;var h2=Object.defineProperty,V3=Object.defineProperties,f3=
|
|
|
8
8
|
|
|
9
9
|
height: 100vh;
|
|
10
10
|
|
|
11
|
-
background-color: ${({theme:
|
|
11
|
+
background-color: ${({theme:e})=>e.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:e})=>e.palette.common.white};
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@media (max-height: 600px) {
|
|
19
19
|
justify-content: flex-start;
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,q1=q.div`
|
|
22
22
|
position: absolute;
|
|
23
23
|
left: 0;
|
|
24
24
|
bottom: 32px;
|
|
@@ -27,26 +27,26 @@ var p3=Object.create;var h2=Object.defineProperty,V3=Object.defineProperties,f3=
|
|
|
27
27
|
@media (max-width: 768px) {
|
|
28
28
|
display: none;
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,j1=q.h1`
|
|
31
31
|
position: absolute;
|
|
32
32
|
left: 32px;
|
|
33
33
|
top: 32px;
|
|
34
34
|
|
|
35
|
-
color: ${({theme:
|
|
36
|
-
font-size: ${
|
|
35
|
+
color: ${({theme:e})=>e.palette.common.white};
|
|
36
|
+
font-size: ${n(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: ${n(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: ${n(24)};
|
|
50
50
|
|
|
51
51
|
@media (max-width: 768px) {
|
|
52
52
|
display: none;
|
|
@@ -59,131 +59,131 @@ var p3=Object.create;var h2=Object.defineProperty,V3=Object.defineProperties,f3=
|
|
|
59
59
|
|
|
60
60
|
span {
|
|
61
61
|
background-color: #262626;
|
|
62
|
-
padding: ${
|
|
63
|
-
border-radius: ${
|
|
62
|
+
padding: ${n(4)} ${n(8)};
|
|
63
|
+
border-radius: ${n(12)};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
@media (max-width: 500px) {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,z1=q.div`
|
|
70
70
|
position: relative;
|
|
71
71
|
z-index: 2;
|
|
72
72
|
|
|
73
|
-
padding: ${
|
|
74
|
-
border-radius: ${
|
|
75
|
-
margin: ${
|
|
73
|
+
padding: ${n(32)};
|
|
74
|
+
border-radius: ${n(24)};
|
|
75
|
+
margin: ${n(16)};
|
|
76
76
|
|
|
77
|
-
background-color: ${({theme:
|
|
78
|
-
`,
|
|
77
|
+
background-color: ${({theme:e})=>e.palette.common.white};
|
|
78
|
+
`,W1=q.button`
|
|
79
79
|
position: relative;
|
|
80
80
|
z-index: 2;
|
|
81
81
|
|
|
82
|
-
background-color: ${({theme:
|
|
83
|
-
padding: ${
|
|
82
|
+
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
83
|
+
padding: ${n(4)} ${n(8)};
|
|
84
84
|
border: none;
|
|
85
|
-
border-radius: ${
|
|
85
|
+
border-radius: ${n(8)};
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
|
|
88
88
|
display: flex;
|
|
89
89
|
align-items: center;
|
|
90
|
-
gap: ${
|
|
90
|
+
gap: ${n(4)};
|
|
91
91
|
|
|
92
|
-
color: ${({theme:
|
|
92
|
+
color: ${({theme:e})=>e.palette.common.white};
|
|
93
93
|
|
|
94
94
|
@media (max-width: 500px) {
|
|
95
|
-
color: ${({theme:
|
|
95
|
+
color: ${({theme:e})=>e.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
|
-
`;import{jsx as
|
|
102
|
+
`;import{jsx as j,jsxs as V1}from"react/jsx-runtime";function H({children:e,whatsapp:a,textoChamativo:r,style:c,paperStyle:i,ilustracao:o}){return V1(B1,{style:c,children:[r&&j(j1,{children:r}),o&&j(q1,{children:typeof o=="string"?j("img",{src:o,alt:"Logo do sistema"}):o}),j(z1,{style:i,children:e}),a&&V1(W1,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${a}`)},style:{marginBottom:16},children:[V1(D2,{variant:"bodyXS",children:["Com d\xFAvidas? ",R2.format(a.slice(2))]}),j(O2,{icon:n1,size:"20px",removeMargin:!0})]})]})}import{Button as j2,LIcon as S1,Typography as z}from"@s_mart/core";import{Checkbox as z2,Form as W2,TextField as l1}from"@s_mart/form";var F2=Object.defineProperty,N2=Object.defineProperties,I2=Object.getOwnPropertyDescriptors,U1=Object.getOwnPropertySymbols,_2=Object.prototype.hasOwnProperty,B2=Object.prototype.propertyIsEnumerable,Y1=(e,a,r)=>a in e?F2(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,i1=(e,a)=>{for(var r in a||(a={}))_2.call(a,r)&&Y1(e,r,a[r]);if(U1)for(var r of U1(a))B2.call(a,r)&&Y1(e,r,a[r]);return e},q2=(e,a)=>N2(e,I2(a));var t1=e=>{let a={validate:{}};return e.forEach(r=>{a=q2(i1(i1({},a),r),{validate:i1(i1({},a.validate),r.validate)})}),a},k={validate:{required:e=>{if(!e)return"Obrigat\xF3rio"}}};var c1={validate:{email:e=>{if(e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e))return"O email \xE9 inv\xE1lido"}}};import _ from"@emotion/styled";var X1=_.div`
|
|
103
103
|
display: grid;
|
|
104
|
-
gap: ${
|
|
105
|
-
`,
|
|
104
|
+
gap: ${n(32)};
|
|
105
|
+
`,K1=_.header`
|
|
106
106
|
display: grid;
|
|
107
107
|
text-align: center;
|
|
108
|
-
gap: ${
|
|
109
|
-
`,
|
|
108
|
+
gap: ${n(16)};
|
|
109
|
+
`,Q1=_.div`
|
|
110
110
|
display: grid;
|
|
111
|
-
gap: ${
|
|
112
|
-
`,
|
|
111
|
+
gap: ${n(32)};
|
|
112
|
+
`,G1=_.div`
|
|
113
113
|
display: grid;
|
|
114
|
-
gap: ${
|
|
114
|
+
gap: ${n(4)};
|
|
115
115
|
|
|
116
116
|
> div:first-of-type {
|
|
117
117
|
display: grid;
|
|
118
118
|
grid-template-columns: 1fr 1fr;
|
|
119
|
-
gap: ${
|
|
119
|
+
gap: ${n(16)};
|
|
120
120
|
|
|
121
121
|
@media (max-width: 768px) {
|
|
122
122
|
grid-template-columns: 1fr;
|
|
123
|
-
gap: ${
|
|
123
|
+
gap: ${n(8)};
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
> div:last-of-type {
|
|
128
128
|
display: grid;
|
|
129
|
-
gap: ${
|
|
129
|
+
gap: ${n(4)};
|
|
130
130
|
}
|
|
131
|
-
`,
|
|
131
|
+
`,J1=_.div`
|
|
132
132
|
display: flex;
|
|
133
133
|
flex-wrap: wrap;
|
|
134
|
-
gap: ${
|
|
135
|
-
`,
|
|
134
|
+
gap: ${n(8)};
|
|
135
|
+
`,o1=_.div`
|
|
136
136
|
display: flex;
|
|
137
137
|
align-items: center;
|
|
138
|
-
gap: ${
|
|
138
|
+
gap: ${n(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: ${n(4)};
|
|
143
|
+
padding: ${n(3)} ${n(4)};
|
|
144
144
|
|
|
145
145
|
line-height: 1em;
|
|
146
146
|
vertical-align: middle;
|
|
147
147
|
|
|
148
|
-
${({checked:
|
|
149
|
-
color: ${
|
|
150
|
-
border-color: ${
|
|
148
|
+
${({checked:e})=>{if(e)return`
|
|
149
|
+
color: ${h.green[300]};
|
|
150
|
+
border-color: ${h.green[300]};
|
|
151
151
|
`}}
|
|
152
|
-
`;function
|
|
152
|
+
`;function e0(){let e=i=>i?i.match(/[a-z]/i):!1,a=i=>i?i.match(/[0-9]/i):!1,r=i=>i?i.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:i=>!i.email||!i.senha||!i.confirmarSenha||!i.termosDeUso||!e(i.senha)||!a(i.senha)||!r(i.senha)}}import{jsx as m,jsxs as S}from"react/jsx-runtime";function U2(d){var p=d,{logo:e,nomeSistema:a,onSubmit:r,linkTermosDeUso:c,email:i,nome:o}=p,v=V(p,["logo","nomeSistema","onSubmit","linkTermosDeUso","email","nome"]);let{senhaContemLetra:Z,senhaContemNumero:g,senhaContemMinimoDe6Caracteres:L,desabilitarBotaoDeCadastro:I}=e0(),A=typeof e=="string"?m("img",{src:e,alt:"Logo do sistema"}):e;return m(H,x(C({},v),{children:S(X1,{children:[S(K1,{children:[e&&m("div",{children:A}),S(z,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",a,"."]})]}),m(W2,{onSubmit:r,defaultValues:{email:i,nome:o,termosDeUso:!1},children:({watch:y})=>{let K=Z(y("senha")),Q=g(y("senha")),G=L(y("senha"));return S(Q1,{children:[m(l1,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),m(l1,{name:"nome",label:"Nome completo",required:!0,rules:k}),S(G1,{children:[S("div",{children:[m(l1,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:k}),m(l1,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:J=>{if(!J)return"Campo obrigat\xF3rio";if(J!==y("senha"))return"As senhas devem ser iguais"}}})]}),S("div",{children:[m(z,{variant:"bodyXS",children:"Sua senha precisa conter:"}),S(J1,{children:[S(o1,{checked:Boolean(K),children:[K&&m(S1,{icon:$,size:"16px",removeMargin:!0}),m(z,{variant:"bodyXS",children:"Uma letra"})]}),S(o1,{checked:Boolean(Q),children:[Q&&m(S1,{icon:$,size:"16px",removeMargin:!0}),m(z,{variant:"bodyXS",children:"Um n\xFAmero"})]}),S(o1,{checked:Boolean(G),children:[G&&m(S1,{icon:$,size:"16px",removeMargin:!0}),m(z,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),m("div",{children:m(z2,{name:"termosDeUso",label:S("div",{style:{display:"flex",gap:4},children:[m("span",{children:"Li e aceito os"}),m("a",{href:c,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),m("div",{children:m(j2,{type:"submit",fullWidth:!0,disabled:I(y()),children:"Concluir meu cadastro"})})]})}})]})}))}import{useMemo as v3}from"react";import{Button as y0,Indicator as m3,Typography as u3}from"@s_mart/core";import{Checkbox as p3,Form as f3,TextField as M0}from"@s_mart/form";import{useEffect as l3,useState as s3}from"react";import y1 from"react";import de,{forwardRef as ve,useRef as me,useCallback as ue,useLayoutEffect as pe,useEffect as fe,createElement as ge,useState as Ze,Component as ye,useContext as Me}from"react";import{createPortal as He}from"react-dom";var c3=H2(d0());var o3="SnackbarContent",xe={root:o3+"-root"};var P="SnackbarItem",Ve={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 R="SnackbarContainer",Se={root:R+"-root",rootDense:R+"-rootDense",top:R+"-top",bottom:R+"-bottom",left:R+"-left",right:R+"-right",center:R+"-center"};var Ee=process.env.NODE_ENV!=="production";import P1 from"@emotion/styled";import h3 from"@emotion/styled";import{css as F}from"@emotion/react";import{jsx as je}from"react/jsx-runtime";import{Fragment as We,jsx as Ue}from"react/jsx-runtime";import{Fragment as Xe,jsx as Ke,jsxs as Qe}from"react/jsx-runtime";import{useEffect as Je,useRef as ea}from"react";import*as m0 from"react";import*as u0 from"react";import*as p0 from"react";import*as W from"react";var v0=()=>{let[e,a]=s3(!1);return l3(()=>{let r=c=>{c.key==="CapsLock"&&a(c.getModifierState("CapsLock"))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[]),e};var O=({defaultValue:e}={})=>{let a=typeof window!="undefined",r=y1.useCallback(()=>{if(!a){if(e){let{width:v=0,height:d=0}=e;return{width:v,height:d}}return{width:0,height:0}}return{width:window.innerWidth,height:window.innerHeight}},[a,e]),[c,i]=y1.useState(r()),o=y1.useCallback(()=>{i(r())},[i,r]);return y1.useEffect(()=>a?(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}):()=>{},[o,a]),c},De=P1.div`
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
155
|
justify-content: space-between;
|
|
156
|
-
gap: ${
|
|
156
|
+
gap: ${n(8)};
|
|
157
157
|
|
|
158
158
|
background-color: white;
|
|
159
159
|
border-radius: 4px;
|
|
160
|
-
padding: ${
|
|
160
|
+
padding: ${n(16)} ${n(16)};
|
|
161
161
|
|
|
162
162
|
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
163
163
|
|
|
164
164
|
border-left: 6px solid
|
|
165
|
-
${({variant:
|
|
165
|
+
${({variant:e})=>{switch(e){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]}}};
|
|
166
166
|
|
|
167
167
|
> div {
|
|
168
168
|
display: flex;
|
|
169
169
|
align-items: center;
|
|
170
|
-
gap: ${
|
|
170
|
+
gap: ${n(8)};
|
|
171
171
|
}
|
|
172
|
-
`,
|
|
172
|
+
`,Re=P1.div`
|
|
173
173
|
display: flex;
|
|
174
174
|
flex-direction: column;
|
|
175
175
|
justify-content: center;
|
|
176
176
|
|
|
177
177
|
> *:first-of-type {
|
|
178
|
-
margin-bottom: ${
|
|
178
|
+
margin-bottom: ${n(4)};
|
|
179
179
|
}
|
|
180
|
-
`,
|
|
180
|
+
`,Fe=P1.div`
|
|
181
181
|
cursor: pointer;
|
|
182
182
|
align-self: flex-start;
|
|
183
|
-
`,
|
|
183
|
+
`,Be=h3.i`
|
|
184
184
|
align-self: center;
|
|
185
185
|
display: inline-flex;
|
|
186
|
-
color: ${({color:
|
|
186
|
+
color: ${({color:e})=>e};
|
|
187
187
|
|
|
188
188
|
user-select: none;
|
|
189
189
|
|
|
@@ -191,150 +191,150 @@ var p3=Object.create;var h2=Object.defineProperty,V3=Object.defineProperties,f3=
|
|
|
191
191
|
z-index: 0 !important;
|
|
192
192
|
outline: 0 !important;
|
|
193
193
|
|
|
194
|
-
${({left:
|
|
195
|
-
left: ${
|
|
194
|
+
${({left:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&F`
|
|
195
|
+
left: ${e};
|
|
196
196
|
`}
|
|
197
197
|
|
|
198
|
-
${({right:
|
|
199
|
-
right: ${
|
|
198
|
+
${({right:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&F`
|
|
199
|
+
right: ${e};
|
|
200
200
|
`}
|
|
201
201
|
|
|
202
|
-
${({top:
|
|
203
|
-
top: ${
|
|
202
|
+
${({top:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&F`
|
|
203
|
+
top: ${e};
|
|
204
204
|
`}
|
|
205
205
|
|
|
206
|
-
${({bottom:
|
|
207
|
-
bottom: ${
|
|
206
|
+
${({bottom:e})=>(typeof e=="string"||typeof e=="number"&&e>0)&&F`
|
|
207
|
+
bottom: ${e};
|
|
208
208
|
`}
|
|
209
209
|
|
|
210
|
-
${({color:
|
|
211
|
-
fill: ${
|
|
210
|
+
${({color:e})=>{let a=e;return e==="inherit"&&(a="currentColor"),F`
|
|
211
|
+
fill: ${a};
|
|
212
212
|
`}}
|
|
213
213
|
position: relative;
|
|
214
214
|
|
|
215
|
-
height: ${({height:
|
|
216
|
-
width: ${({width:
|
|
215
|
+
height: ${({height:e})=>e} !important;
|
|
216
|
+
width: ${({width:e})=>e} !important;
|
|
217
217
|
|
|
218
|
-
${({removeMargin:
|
|
218
|
+
${({removeMargin:e})=>e?F`
|
|
219
219
|
margin: 0;
|
|
220
|
-
`:
|
|
221
|
-
margin: 0 ${
|
|
220
|
+
`:F`
|
|
221
|
+
margin: 0 ${n(4)};
|
|
222
222
|
`}
|
|
223
223
|
}
|
|
224
|
-
`;var
|
|
224
|
+
`;var d3=u0.createContext(null);process.env.NODE_ENV!=="production"&&(d3.displayName="ThemeContext");import $1 from"@emotion/styled";var f0=$1.div`
|
|
225
225
|
display: grid;
|
|
226
|
-
gap: ${
|
|
227
|
-
`,
|
|
226
|
+
gap: ${n(32)};
|
|
227
|
+
`,g0=$1.header`
|
|
228
228
|
display: grid;
|
|
229
229
|
text-align: center;
|
|
230
|
-
gap: ${
|
|
231
|
-
`,
|
|
230
|
+
gap: ${n(16)};
|
|
231
|
+
`,Z0=$1.div`
|
|
232
232
|
display: grid;
|
|
233
|
-
gap: ${
|
|
233
|
+
gap: ${n(16)};
|
|
234
234
|
|
|
235
235
|
> div {
|
|
236
236
|
display: grid;
|
|
237
|
-
gap: ${
|
|
237
|
+
gap: ${n(16)};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
> div:last-of-type {
|
|
241
|
-
gap: ${
|
|
241
|
+
gap: ${n(8)};
|
|
242
242
|
}
|
|
243
|
-
`;import{jsx as
|
|
243
|
+
`;import{jsx as E,jsxs as U}from"react/jsx-runtime";function g3(v){var d=v,{logo:e,initialValues:a,onSubmit:r,onEsqueciMinhaSenha:c,errorLabel:i}=d,o=V(d,["logo","initialValues","onSubmit","onEsqueciMinhaSenha","errorLabel"]);let p=typeof e=="string"?E("img",{src:e,alt:"Logo do sistema"}):e,{width:Z}=O(),g=v0(),L=v3(()=>C({manterConectado:!1},a),[a]);return E(H,x(C({},o),{paperStyle:{minWidth:Z>500?456:void 0,width:Z>500?void 0:"90%"},children:U(f0,{children:[E(g0,{children:e&&E("div",{children:p})}),E(f3,{onSubmit:r,defaultValues:L,children:U(Z0,{children:[U("div",{children:[E(M0,{name:"email",label:"E-mail de acesso",required:!0,rules:t1([k,c1]),autoComplete:"email",type:"email"}),U("div",{children:[E(M0,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:k}),g&&E(m3,{severity:"warning",children:"Capslock ativado"}),!!i&&E(u3,{variant:"titleXXS",color:h.red[300],children:i})]})]}),E(p3,{name:"manterConectado",label:"Manter conectado"}),U("div",{children:[E(y0,{type:"submit",fullWidth:!0,children:"Entrar"}),c&&E(y0,{type:"button",fullWidth:!0,variant:"text",onClick:c,children:"Esqueci minha senha"})]})]})})]})}))}import{Button as x0,LIcon as Z3,Typography as V0}from"@s_mart/core";import C0 from"@emotion/styled";var H0=C0.div`
|
|
244
244
|
display: grid;
|
|
245
|
-
gap: ${
|
|
245
|
+
gap: ${n(32)};
|
|
246
246
|
|
|
247
247
|
> div {
|
|
248
248
|
display: grid;
|
|
249
|
-
gap: ${
|
|
249
|
+
gap: ${n(8)};
|
|
250
250
|
}
|
|
251
|
-
`,
|
|
251
|
+
`,b0=C0.header`
|
|
252
252
|
display: grid;
|
|
253
253
|
text-align: center;
|
|
254
|
-
gap: ${
|
|
255
|
-
`;import{jsx as
|
|
254
|
+
gap: ${n(16)};
|
|
255
|
+
`;import{jsx as D,jsxs as Y}from"react/jsx-runtime";function y3(i){var o=i,{logo:e,onPrecisoDeAjuda:a,onRealizarAcesso:r}=o,c=V(o,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let v=typeof e=="string"?D("img",{src:e,alt:"Logo do sistema"}):e,{width:d}=O();return D(H,x(C({},c),{paperStyle:{minWidth:d>500?456:void 0,width:d>500?void 0:"90%"},children:Y(H0,{children:[Y("div",{children:[D(b0,{children:e&&D("div",{children:v})}),Y("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:8,color:h.neutral[800]},children:[D(V0,{variant:"bodyMD",children:"Parece que este convite, j\xE1 foi usado ou expirou."}),D(V0,{variant:"bodyMD",children:"J\xE1 se cadastro? Realize o login."})]})]}),Y("div",{children:[D(x0,{fullWidth:!0,onClick:r,children:"Realizar login"}),Y(x0,{fullWidth:!0,variant:"text",onClick:a,style:{display:"flex",gap:4,color:h.neutral[900]},children:[D(Z3,{icon:n1,size:"20px",removeMargin:!0,color:h.neutral[900]}),"Preciso de outro convite"]})]})]})}))}import{Button as M3,Typography as T0}from"@s_mart/core";import S0 from"@emotion/styled";var E0=S0.div`
|
|
256
256
|
display: grid;
|
|
257
|
-
gap: ${
|
|
257
|
+
gap: ${n(32)};
|
|
258
258
|
|
|
259
259
|
> div {
|
|
260
260
|
display: grid;
|
|
261
|
-
gap: ${
|
|
261
|
+
gap: ${n(16)};
|
|
262
262
|
}
|
|
263
|
-
`,
|
|
263
|
+
`,L0=S0.header`
|
|
264
264
|
display: grid;
|
|
265
265
|
text-align: center;
|
|
266
|
-
gap: ${
|
|
267
|
-
`;import{jsx as
|
|
266
|
+
gap: ${n(16)};
|
|
267
|
+
`;import{jsx as N,jsxs as k0}from"react/jsx-runtime";function C3(c){var i=c,{logo:e,onVoltarParaLogin:a}=i,r=V(i,["logo","onVoltarParaLogin"]);let o=typeof e=="string"?N("img",{src:e,alt:"Logo do sistema"}):e,{width:v}=O();return N(H,x(C({},r),{paperStyle:{maxWidth:v>500?456:void 0,width:v>500?void 0:"90%"},children:k0(E0,{children:[k0("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[N(L0,{children:e&&N("div",{children:o})}),N(T0,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),N(T0,{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(M3,{fullWidth:!0,onClick:a,children:"Voltar para login"})]})}))}import{Button as H3,LIcon as O1,Typography as X}from"@s_mart/core";import{Form as b3,TextField as R0}from"@s_mart/form";import B from"@emotion/styled";var w0=B.div`
|
|
268
268
|
display: grid;
|
|
269
|
-
gap: ${
|
|
270
|
-
`,
|
|
269
|
+
gap: ${n(32)};
|
|
270
|
+
`,A0=B.header`
|
|
271
271
|
display: grid;
|
|
272
272
|
text-align: center;
|
|
273
|
-
gap: ${
|
|
274
|
-
|
|
273
|
+
gap: ${n(16)};
|
|
274
|
+
`,P0=B.div`
|
|
275
275
|
display: grid;
|
|
276
|
-
gap: ${
|
|
277
|
-
|
|
276
|
+
gap: ${n(32)};
|
|
277
|
+
`,$0=B.div`
|
|
278
278
|
display: grid;
|
|
279
|
-
gap: ${
|
|
279
|
+
gap: ${n(4)};
|
|
280
280
|
|
|
281
281
|
> div:first-of-type {
|
|
282
282
|
display: grid;
|
|
283
283
|
grid-template-columns: 1fr 1fr;
|
|
284
|
-
gap: ${
|
|
284
|
+
gap: ${n(16)};
|
|
285
285
|
|
|
286
286
|
@media (max-width: 768px) {
|
|
287
287
|
grid-template-columns: 1fr;
|
|
288
|
-
gap: ${
|
|
288
|
+
gap: ${n(8)};
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
> div:last-of-type {
|
|
293
293
|
display: grid;
|
|
294
|
-
gap: ${
|
|
294
|
+
gap: ${n(4)};
|
|
295
295
|
}
|
|
296
|
-
`,
|
|
296
|
+
`,O0=B.div`
|
|
297
297
|
display: flex;
|
|
298
298
|
flex-wrap: wrap;
|
|
299
|
-
gap: ${
|
|
300
|
-
`,
|
|
299
|
+
gap: ${n(8)};
|
|
300
|
+
`,M1=B.div`
|
|
301
301
|
display: flex;
|
|
302
302
|
align-items: center;
|
|
303
|
-
gap: ${
|
|
303
|
+
gap: ${n(4)};
|
|
304
304
|
|
|
305
|
-
color: ${
|
|
306
|
-
border: 1px solid ${
|
|
307
|
-
border-radius: ${
|
|
308
|
-
padding: ${
|
|
305
|
+
color: ${h.neutral[600]};
|
|
306
|
+
border: 1px solid ${h.neutral[600]};
|
|
307
|
+
border-radius: ${n(4)};
|
|
308
|
+
padding: ${n(3)} ${n(4)};
|
|
309
309
|
|
|
310
310
|
line-height: 1em;
|
|
311
311
|
vertical-align: middle;
|
|
312
312
|
|
|
313
|
-
${({checked:
|
|
314
|
-
color: ${
|
|
315
|
-
border-color: ${
|
|
313
|
+
${({checked:e})=>{if(e)return`
|
|
314
|
+
color: ${h.green[300]};
|
|
315
|
+
border-color: ${h.green[300]};
|
|
316
316
|
`}}
|
|
317
|
-
`;function
|
|
317
|
+
`;function D0(){let e=i=>i?i.match(/[a-z]/i):!1,a=i=>i?i.match(/[0-9]/i):!1,r=i=>i?i.length>=6:!1;return{senhaContemLetra:e,senhaContemNumero:a,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:i=>!i.senha||!i.confirmarSenha||!e(i.senha)||!a(i.senha)||!r(i.senha)}}import{jsx as f,jsxs as w}from"react/jsx-runtime";function x3(c){var i=c,{logo:e,onTrocarMinhaSenha:a}=i,r=V(i,["logo","onTrocarMinhaSenha"]);let{senhaContemLetra:o,senhaContemNumero:v,senhaContemMinimoDe6Caracteres:d,desabilitarBotaoDeCadastro:p}=D0(),Z=typeof e=="string"?f("img",{src:e,alt:"Logo do sistema"}):e;return f(H,x(C({},r),{children:w(w0,{children:[w(A0,{children:[e&&f("div",{children:Z}),f(X,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),f(b3,{onSubmit:a,children:({watch:g})=>{let L=o(g("senha")),I=v(g("senha")),A=d(g("senha"));return w(P0,{children:[w($0,{children:[w("div",{children:[f(R0,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:k}),f(R0,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:y=>{if(!y)return"Campo obrigat\xF3rio";if(y!==g("senha"))return"As senhas devem ser iguais"}}})]}),w("div",{children:[f(X,{variant:"bodyXS",children:"Sua senha precisa conter:"}),w(O0,{children:[w(M1,{checked:Boolean(L),children:[L&&f(O1,{icon:$,size:"16px",removeMargin:!0}),f(X,{variant:"bodyXS",children:"Uma letra"})]}),w(M1,{checked:Boolean(I),children:[I&&f(O1,{icon:$,size:"16px",removeMargin:!0}),f(X,{variant:"bodyXS",children:"Um n\xFAmero"})]}),w(M1,{checked:Boolean(A),children:[A&&f(O1,{icon:$,size:"16px",removeMargin:!0}),f(X,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),f("div",{children:f(H3,{type:"submit",fullWidth:!0,disabled:p(g()),children:"Trocar minha senha"})})]})}})]})}))}import{Button as _0,Typography as B0}from"@s_mart/core";import D1 from"@emotion/styled";var F0=D1.div`
|
|
318
318
|
display: grid;
|
|
319
|
-
gap: ${
|
|
319
|
+
gap: ${n(32)};
|
|
320
320
|
|
|
321
321
|
> div {
|
|
322
322
|
display: grid;
|
|
323
|
-
gap: ${
|
|
323
|
+
gap: ${n(16)};
|
|
324
324
|
}
|
|
325
|
-
`,
|
|
325
|
+
`,N0=D1.header`
|
|
326
326
|
display: grid;
|
|
327
327
|
text-align: center;
|
|
328
|
-
gap: ${
|
|
329
|
-
`,
|
|
328
|
+
gap: ${n(16)};
|
|
329
|
+
`,I0=D1.div`
|
|
330
330
|
display: grid;
|
|
331
|
-
gap: ${
|
|
331
|
+
gap: ${n(32)};
|
|
332
332
|
|
|
333
333
|
> div:last-of-type {
|
|
334
334
|
display: grid;
|
|
335
|
-
gap: ${
|
|
335
|
+
gap: ${n(16)};
|
|
336
336
|
}
|
|
337
|
-
`;import{Form as
|
|
337
|
+
`;import{Form as V3,TextField as S3}from"@s_mart/form";import{jsx as T,jsxs as C1}from"react/jsx-runtime";function E3(i){var o=i,{logo:e,onVoltarParaLogin:a,onConfirmar:r}=o,c=V(o,["logo","onVoltarParaLogin","onConfirmar"]);let v=typeof e=="string"?T("img",{src:e,alt:"Logo do sistema"}):e,{width:d}=O();return T(H,x(C({},c),{paperStyle:{minWidth:d>500?456:void 0,width:d>500?void 0:"90%"},children:C1(F0,{children:[C1("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[T(N0,{children:e&&T("div",{children:v})}),T(B0,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),T(B0,{variant:"bodySM",textAlign:"center",children:"Informe seu e-mail de acesso para receber instru\xE7\xF5es e criar uma nova senha."})]}),T(V3,{onSubmit:r,children:C1(I0,{children:[T("div",{children:T(S3,{name:"email",label:"E-mail de acesso",required:!0,rules:t1([k,c1])})}),C1("div",{children:[T(_0,{fullWidth:!0,type:"submit",children:"Confirmar"}),T(_0,{fullWidth:!0,onClick:a,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}export{U2 as TelaCadastro,y3 as TelaConviteExpirado,E3 as TelaEsqueceuSenha,C3 as TelaInstrucoesEnviadas,g3 as TelaLogin,x3 as TelaNovaSenha,H as TemplateTelaBase};
|
|
338
338
|
/**
|
|
339
339
|
* @mui/material v5.11.7
|
|
340
340
|
*
|