@s_mart/telas-de-acesso 1.1.3 → 1.1.4
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.d.ts +6 -1
- package/dist/index.js +25 -25
- package/dist/index.mjs +23 -23
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -71,6 +71,11 @@ interface TelaLoginFormValues {
|
|
|
71
71
|
manterConectado: boolean;
|
|
72
72
|
}
|
|
73
73
|
interface TelaLoginProps extends Omit<TemplateTelaBaseProps, 'children'> {
|
|
74
|
+
/**
|
|
75
|
+
* Texto que vai abaixo do campo de senha (quando passado), usado para indicar erros
|
|
76
|
+
* @default undefined
|
|
77
|
+
*/
|
|
78
|
+
errorLabel?: string;
|
|
74
79
|
/**
|
|
75
80
|
* Valores iniciais do formulário de cadastro
|
|
76
81
|
* @default undefined
|
|
@@ -98,7 +103,7 @@ interface TelaLoginProps extends Omit<TemplateTelaBaseProps, 'children'> {
|
|
|
98
103
|
onEsqueciMinhaSenha?: () => void;
|
|
99
104
|
}
|
|
100
105
|
|
|
101
|
-
declare function TelaLogin({ logo, initialValues, onSubmit, onEsqueciMinhaSenha, ...rest }: TelaLoginProps): JSX.Element;
|
|
106
|
+
declare function TelaLogin({ logo, initialValues, onSubmit, onEsqueciMinhaSenha, errorLabel, ...rest }: TelaLoginProps): JSX.Element;
|
|
102
107
|
|
|
103
108
|
interface TelaConviteExpiradoProps extends Omit<TemplateTelaBaseProps, 'children' | 'whatsapp'> {
|
|
104
109
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var f3=Object.create;var G=Object.defineProperty,m3=Object.defineProperties,M3=Object.getOwnPropertyDescriptor,g3=Object.getOwnPropertyDescriptors,Z3=Object.getOwnPropertyNames,a2=Object.getOwnPropertySymbols,v3=Object.getPrototypeOf,k2=Object.prototype.hasOwnProperty,W2=Object.prototype.propertyIsEnumerable;var z2=(C,e,r)=>e in C?G(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,y=(C,e)=>{for(var r in e||(e={}))k2.call(e,r)&&z2(C,r,e[r]);if(a2)for(var r of a2(e))W2.call(e,r)&&z2(C,r,e[r]);return C},S=(C,e)=>m3(C,g3(e));var E=(C,e)=>{var r={};for(var a in C)k2.call(C,a)&&e.indexOf(a)<0&&(r[a]=C[a]);if(C!=null&&a2)for(var a of a2(C))e.indexOf(a)<0&&W2.call(C,a)&&(r[a]=C[a]);return r};var o2=(C,e)=>()=>(e||C((e={exports:{}}).exports,e),e.exports),h3=(C,e)=>{for(var r in e)G(C,r,{get:e[r],enumerable:!0})},j2=(C,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Z3(e))!k2.call(C,n)&&n!==r&&G(C,n,{get:()=>e[n],enumerable:!(a=M3(e,n))||a.enumerable});return C};var w=(C,e,r)=>(r=C!=null?f3(v3(C)):{},j2(e||!C||!C.__esModule?G(r,"default",{value:C,enumerable:!0}):r,C)),y3=C=>j2(G({},"__esModule",{value:!0}),C);var l1=o2(l=>{"use strict";var p=typeof Symbol=="function"&&Symbol.for,$2=p?Symbol.for("react.element"):60103,P2=p?Symbol.for("react.portal"):60106,H2=p?Symbol.for("react.fragment"):60107,p2=p?Symbol.for("react.strict_mode"):60108,V2=p?Symbol.for("react.profiler"):60114,f2=p?Symbol.for("react.provider"):60109,m2=p?Symbol.for("react.context"):60110,A2=p?Symbol.for("react.async_mode"):60111,M2=p?Symbol.for("react.concurrent_mode"):60111,g2=p?Symbol.for("react.forward_ref"):60112,Z2=p?Symbol.for("react.suspense"):60113,q3=p?Symbol.for("react.suspense_list"):60120,v2=p?Symbol.for("react.memo"):60115,h2=p?Symbol.for("react.lazy"):60116,z3=p?Symbol.for("react.block"):60121,W3=p?Symbol.for("react.fundamental"):60117,j3=p?Symbol.for("react.responder"):60118,U3=p?Symbol.for("react.scope"):60119;function x(C){if(typeof C=="object"&&C!==null){var e=C.$$typeof;switch(e){case $2:switch(C=C.type,C){case A2:case M2:case H2:case V2:case p2:case Z2:return C;default:switch(C=C&&C.$$typeof,C){case m2:case g2:case h2:case v2:case f2:return C;default:return e}}case P2:return e}}}function s1(C){return x(C)===M2}l.AsyncMode=A2;l.ConcurrentMode=M2;l.ContextConsumer=m2;l.ContextProvider=f2;l.Element=$2;l.ForwardRef=g2;l.Fragment=H2;l.Lazy=h2;l.Memo=v2;l.Portal=P2;l.Profiler=V2;l.StrictMode=p2;l.Suspense=Z2;l.isAsyncMode=function(C){return s1(C)||x(C)===A2};l.isConcurrentMode=s1;l.isContextConsumer=function(C){return x(C)===m2};l.isContextProvider=function(C){return x(C)===f2};l.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===$2};l.isForwardRef=function(C){return x(C)===g2};l.isFragment=function(C){return x(C)===H2};l.isLazy=function(C){return x(C)===h2};l.isMemo=function(C){return x(C)===v2};l.isPortal=function(C){return x(C)===P2};l.isProfiler=function(C){return x(C)===V2};l.isStrictMode=function(C){return x(C)===p2};l.isSuspense=function(C){return x(C)===Z2};l.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===H2||C===M2||C===V2||C===p2||C===Z2||C===q3||typeof C=="object"&&C!==null&&(C.$$typeof===h2||C.$$typeof===v2||C.$$typeof===f2||C.$$typeof===m2||C.$$typeof===g2||C.$$typeof===W3||C.$$typeof===j3||C.$$typeof===U3||C.$$typeof===z3)};l.typeOf=x});var L1=o2(L=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var C=typeof Symbol=="function"&&Symbol.for,e=C?Symbol.for("react.element"):60103,r=C?Symbol.for("react.portal"):60106,a=C?Symbol.for("react.fragment"):60107,n=C?Symbol.for("react.strict_mode"):60108,s=C?Symbol.for("react.profiler"):60114,u=C?Symbol.for("react.provider"):60109,c=C?Symbol.for("react.context"):60110,f=C?Symbol.for("react.async_mode"):60111,b=C?Symbol.for("react.concurrent_mode"):60111,Z=C?Symbol.for("react.forward_ref"):60112,O=C?Symbol.for("react.suspense"):60113,Y=C?Symbol.for("react.suspense_list"):60120,v=C?Symbol.for("react.memo"):60115,P=C?Symbol.for("react.lazy"):60116,r2=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===b||t===s||t===n||t===O||t===Y||typeof t=="object"&&t!==null&&(t.$$typeof===P||t.$$typeof===v||t.$$typeof===u||t.$$typeof===c||t.$$typeof===Z||t.$$typeof===i2||t.$$typeof===n2||t.$$typeof===z1||t.$$typeof===r2)}function h(t){if(typeof t=="object"&&t!==null){var T2=t.$$typeof;switch(T2){case e:var t2=t.type;switch(t2){case f:case b:case a:case s:case n:case O:return t2;default:var q2=t2&&t2.$$typeof;switch(q2){case c:case Z:case P:case v:case u:return q2;default:return T2}}case r:return T2}}}var j1=f,U1=b,Y1=c,K1=u,X1=e,G1=Z,Q1=a,J1=P,C3=v,e3=r,r3=s,i3=n,n3=O,N2=!1;function t3(t){return N2||(N2=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_2(t)||h(t)===f}function _2(t){return h(t)===b}function a3(t){return h(t)===c}function o3(t){return h(t)===u}function s3(t){return typeof t=="object"&&t!==null&&t.$$typeof===e}function l3(t){return h(t)===Z}function L3(t){return h(t)===a}function d3(t){return h(t)===P}function c3(t){return h(t)===v}function u3(t){return h(t)===r}function H3(t){return h(t)===s}function p3(t){return h(t)===n}function V3(t){return h(t)===O}L.AsyncMode=j1,L.ConcurrentMode=U1,L.ContextConsumer=Y1,L.ContextProvider=K1,L.Element=X1,L.ForwardRef=G1,L.Fragment=Q1,L.Lazy=J1,L.Memo=C3,L.Portal=e3,L.Profiler=r3,L.StrictMode=i3,L.Suspense=n3,L.isAsyncMode=t3,L.isConcurrentMode=_2,L.isContextConsumer=a3,L.isContextProvider=o3,L.isElement=s3,L.isForwardRef=l3,L.isFragment=L3,L.isLazy=d3,L.isMemo=c3,L.isPortal=u3,L.isProfiler=H3,L.isStrictMode=p3,L.isSuspense=V3,L.isValidElementType=W1,L.typeOf=h}()});var d1=o2((k5,B2)=>{"use strict";process.env.NODE_ENV==="production"?B2.exports=l1():B2.exports=L1()});var m1=o2(($5,f1)=>{"use strict";var O2=d1(),Y3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},K3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},X3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},p1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R2={};R2[O2.ForwardRef]=X3;R2[O2.Memo]=p1;function c1(C){return O2.isMemo(C)?p1:R2[C.$$typeof]||Y3}var G3=Object.defineProperty,Q3=Object.getOwnPropertyNames,u1=Object.getOwnPropertySymbols,J3=Object.getOwnPropertyDescriptor,C5=Object.getPrototypeOf,H1=Object.prototype;function V1(C,e,r){if(typeof e!="string"){if(H1){var a=C5(e);a&&a!==H1&&V1(C,a,r)}var n=Q3(e);u1&&(n=n.concat(u1(e)));for(var s=c1(C),u=c1(e),c=0;c<n.length;++c){var f=n[c];if(!K3[f]&&!(r&&r[f])&&!(u&&u[f])&&!(s&&s[f])){var b=J3(e,f);try{G3(C,f,b)}catch(Z){}}}}return C}f1.exports=V1});var t5={};h3(t5,{TelaCadastro:()=>o1,TelaConviteExpirado:()=>w1,TelaEsqueceuSenha:()=>q1,TelaInstrucoesEnviadas:()=>$1,TelaLogin:()=>b1,TelaNovaSenha:()=>F1,TemplateTelaBase:()=>g});module.exports=y3(t5);var l2=require("@s_mart/core"),Q2=require("@s_mart/masks");var F={description:"M37.4802 11.2595L18.4955 30.6836L11.5198 23.5465C11.1816 23.2004 10.6333 23.2004 10.295 23.5465L8.25365 25.635C7.91545 25.9811 7.91545 26.5421 8.25365 26.8882L17.8831 36.7405C18.2213 37.0865 18.7696 37.0865 19.1079 36.7405L40.7463 14.6013C41.0845 14.2553 41.0845 13.6942 40.7463 13.3481L38.705 11.2595C38.3668 10.9135 37.8184 10.9135 37.4802 11.2595Z",viewBox:"0 0 48 48",id:"line-check-regular"};var s2={description:"M35.2071 12.65C32.2143 9.65 28.2286 8 23.9929 8C15.25 8 8.13571 15.1143 8.13571 23.8571C8.13571 26.65 8.86429 29.3786 10.25 31.7857L8 40L16.4071 37.7929C18.7214 39.0571 21.3286 39.7214 23.9857 39.7214H23.9929C32.7286 39.7214 40 32.6071 40 23.8643C40 19.6286 38.2 15.65 35.2071 12.65ZM23.9929 37.05C21.6214 37.05 19.3 36.4143 17.2786 35.2143L16.8 34.9286L11.8143 36.2357L13.1429 31.3714L12.8286 30.8714C11.5071 28.7714 10.8143 26.35 10.8143 23.8571C10.8143 16.5929 16.7286 10.6786 24 10.6786C27.5214 10.6786 30.8286 12.05 33.3143 14.5429C35.8 17.0357 37.3286 20.3429 37.3214 23.8643C37.3214 31.1357 31.2571 37.05 23.9929 37.05ZM31.2214 27.1786C30.8286 26.9786 28.8786 26.0214 28.5143 25.8929C28.15 25.7571 27.8857 25.6929 27.6214 26.0929C27.3571 26.4929 26.6 27.3786 26.3643 27.65C26.1357 27.9143 25.9 27.95 25.5071 27.75C23.1786 26.5857 21.65 25.6714 20.1143 23.0357C19.7071 22.3357 20.5214 22.3857 21.2786 20.8714C21.4071 20.6071 21.3429 20.3786 21.2429 20.1786C21.1429 19.9786 20.35 18.0286 20.0214 17.2357C19.7 16.4643 19.3714 16.5714 19.1286 16.5571C18.9 16.5429 18.6357 16.5429 18.3714 16.5429C18.1071 16.5429 17.6786 16.6429 17.3143 17.0357C16.95 17.4357 15.9286 18.3929 15.9286 20.3429C15.9286 22.2929 17.35 24.1786 17.5429 24.4429C17.7429 24.7071 20.3357 28.7071 24.3143 30.4286C26.8286 31.5143 27.8143 31.6071 29.0714 31.4214C29.8357 31.3071 31.4143 30.4643 31.7429 29.5357C32.0714 28.6071 32.0714 27.8143 31.9714 27.65C31.8786 27.4714 31.6143 27.3714 31.2214 27.1786Z",viewBox:"0 0 48 48",id:"line-whatsapp-regular"};var i=C=>`${C/16}rem`;var K=w(require("@emotion/styled"));var x3=Object.defineProperty,b3=(C,e)=>{for(var r in e)x3(C,r,{get:e[r],enumerable:!0})},H={};b3(H,{blue:()=>E3,green:()=>$3,neutral:()=>O3,red:()=>T3,yellow:()=>A3});var S3={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},E3=S3,w3={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},T3=w3,k3={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},$3=k3,P3={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},A3=P3,B3={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},O3=B3;var U2=K.default.div`
|
|
1
|
+
"use strict";var f3=Object.create;var Q=Object.defineProperty,m3=Object.defineProperties,M3=Object.getOwnPropertyDescriptor,g3=Object.getOwnPropertyDescriptors,Z3=Object.getOwnPropertyNames,a2=Object.getOwnPropertySymbols,v3=Object.getPrototypeOf,k2=Object.prototype.hasOwnProperty,W2=Object.prototype.propertyIsEnumerable;var z2=(C,e,r)=>e in C?Q(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,x=(C,e)=>{for(var r in e||(e={}))k2.call(e,r)&&z2(C,r,e[r]);if(a2)for(var r of a2(e))W2.call(e,r)&&z2(C,r,e[r]);return C},S=(C,e)=>m3(C,g3(e));var E=(C,e)=>{var r={};for(var a in C)k2.call(C,a)&&e.indexOf(a)<0&&(r[a]=C[a]);if(C!=null&&a2)for(var a of a2(C))e.indexOf(a)<0&&W2.call(C,a)&&(r[a]=C[a]);return r};var o2=(C,e)=>()=>(e||C((e={exports:{}}).exports,e),e.exports),h3=(C,e)=>{for(var r in e)Q(C,r,{get:e[r],enumerable:!0})},j2=(C,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Z3(e))!k2.call(C,n)&&n!==r&&Q(C,n,{get:()=>e[n],enumerable:!(a=M3(e,n))||a.enumerable});return C};var w=(C,e,r)=>(r=C!=null?f3(v3(C)):{},j2(e||!C||!C.__esModule?Q(r,"default",{value:C,enumerable:!0}):r,C)),y3=C=>j2(Q({},"__esModule",{value:!0}),C);var l1=o2(l=>{"use strict";var V=typeof Symbol=="function"&&Symbol.for,$2=V?Symbol.for("react.element"):60103,P2=V?Symbol.for("react.portal"):60106,H2=V?Symbol.for("react.fragment"):60107,p2=V?Symbol.for("react.strict_mode"):60108,V2=V?Symbol.for("react.profiler"):60114,f2=V?Symbol.for("react.provider"):60109,m2=V?Symbol.for("react.context"):60110,A2=V?Symbol.for("react.async_mode"):60111,M2=V?Symbol.for("react.concurrent_mode"):60111,g2=V?Symbol.for("react.forward_ref"):60112,Z2=V?Symbol.for("react.suspense"):60113,q3=V?Symbol.for("react.suspense_list"):60120,v2=V?Symbol.for("react.memo"):60115,h2=V?Symbol.for("react.lazy"):60116,z3=V?Symbol.for("react.block"):60121,W3=V?Symbol.for("react.fundamental"):60117,j3=V?Symbol.for("react.responder"):60118,U3=V?Symbol.for("react.scope"):60119;function b(C){if(typeof C=="object"&&C!==null){var e=C.$$typeof;switch(e){case $2:switch(C=C.type,C){case A2:case M2:case H2:case V2:case p2:case Z2:return C;default:switch(C=C&&C.$$typeof,C){case m2:case g2:case h2:case v2:case f2:return C;default:return e}}case P2:return e}}}function s1(C){return b(C)===M2}l.AsyncMode=A2;l.ConcurrentMode=M2;l.ContextConsumer=m2;l.ContextProvider=f2;l.Element=$2;l.ForwardRef=g2;l.Fragment=H2;l.Lazy=h2;l.Memo=v2;l.Portal=P2;l.Profiler=V2;l.StrictMode=p2;l.Suspense=Z2;l.isAsyncMode=function(C){return s1(C)||b(C)===A2};l.isConcurrentMode=s1;l.isContextConsumer=function(C){return b(C)===m2};l.isContextProvider=function(C){return b(C)===f2};l.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===$2};l.isForwardRef=function(C){return b(C)===g2};l.isFragment=function(C){return b(C)===H2};l.isLazy=function(C){return b(C)===h2};l.isMemo=function(C){return b(C)===v2};l.isPortal=function(C){return b(C)===P2};l.isProfiler=function(C){return b(C)===V2};l.isStrictMode=function(C){return b(C)===p2};l.isSuspense=function(C){return b(C)===Z2};l.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===H2||C===M2||C===V2||C===p2||C===Z2||C===q3||typeof C=="object"&&C!==null&&(C.$$typeof===h2||C.$$typeof===v2||C.$$typeof===f2||C.$$typeof===m2||C.$$typeof===g2||C.$$typeof===W3||C.$$typeof===j3||C.$$typeof===U3||C.$$typeof===z3)};l.typeOf=b});var L1=o2(L=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var C=typeof Symbol=="function"&&Symbol.for,e=C?Symbol.for("react.element"):60103,r=C?Symbol.for("react.portal"):60106,a=C?Symbol.for("react.fragment"):60107,n=C?Symbol.for("react.strict_mode"):60108,s=C?Symbol.for("react.profiler"):60114,H=C?Symbol.for("react.provider"):60109,c=C?Symbol.for("react.context"):60110,m=C?Symbol.for("react.async_mode"):60111,v=C?Symbol.for("react.concurrent_mode"):60111,M=C?Symbol.for("react.forward_ref"):60112,O=C?Symbol.for("react.suspense"):60113,X=C?Symbol.for("react.suspense_list"):60120,h=C?Symbol.for("react.memo"):60115,P=C?Symbol.for("react.lazy"):60116,r2=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===v||t===s||t===n||t===O||t===X||typeof t=="object"&&t!==null&&(t.$$typeof===P||t.$$typeof===h||t.$$typeof===H||t.$$typeof===c||t.$$typeof===M||t.$$typeof===i2||t.$$typeof===n2||t.$$typeof===z1||t.$$typeof===r2)}function y(t){if(typeof t=="object"&&t!==null){var T2=t.$$typeof;switch(T2){case e:var t2=t.type;switch(t2){case m:case v:case a:case s:case n:case O:return t2;default:var q2=t2&&t2.$$typeof;switch(q2){case c:case M:case P:case h:case H:return q2;default:return T2}}case r:return T2}}}var j1=m,U1=v,Y1=c,X1=H,K1=e,G1=M,Q1=a,J1=P,C3=h,e3=r,r3=s,i3=n,n3=O,N2=!1;function t3(t){return N2||(N2=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_2(t)||y(t)===m}function _2(t){return y(t)===v}function a3(t){return y(t)===c}function o3(t){return y(t)===H}function s3(t){return typeof t=="object"&&t!==null&&t.$$typeof===e}function l3(t){return y(t)===M}function L3(t){return y(t)===a}function d3(t){return y(t)===P}function c3(t){return y(t)===h}function u3(t){return y(t)===r}function H3(t){return y(t)===s}function p3(t){return y(t)===n}function V3(t){return y(t)===O}L.AsyncMode=j1,L.ConcurrentMode=U1,L.ContextConsumer=Y1,L.ContextProvider=X1,L.Element=K1,L.ForwardRef=G1,L.Fragment=Q1,L.Lazy=J1,L.Memo=C3,L.Portal=e3,L.Profiler=r3,L.StrictMode=i3,L.Suspense=n3,L.isAsyncMode=t3,L.isConcurrentMode=_2,L.isContextConsumer=a3,L.isContextProvider=o3,L.isElement=s3,L.isForwardRef=l3,L.isFragment=L3,L.isLazy=d3,L.isMemo=c3,L.isPortal=u3,L.isProfiler=H3,L.isStrictMode=p3,L.isSuspense=V3,L.isValidElementType=W1,L.typeOf=y}()});var d1=o2((k5,B2)=>{"use strict";process.env.NODE_ENV==="production"?B2.exports=l1():B2.exports=L1()});var m1=o2(($5,f1)=>{"use strict";var O2=d1(),Y3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},X3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},K3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},p1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R2={};R2[O2.ForwardRef]=K3;R2[O2.Memo]=p1;function c1(C){return O2.isMemo(C)?p1:R2[C.$$typeof]||Y3}var G3=Object.defineProperty,Q3=Object.getOwnPropertyNames,u1=Object.getOwnPropertySymbols,J3=Object.getOwnPropertyDescriptor,C5=Object.getPrototypeOf,H1=Object.prototype;function V1(C,e,r){if(typeof e!="string"){if(H1){var a=C5(e);a&&a!==H1&&V1(C,a,r)}var n=Q3(e);u1&&(n=n.concat(u1(e)));for(var s=c1(C),H=c1(e),c=0;c<n.length;++c){var m=n[c];if(!X3[m]&&!(r&&r[m])&&!(H&&H[m])&&!(s&&s[m])){var v=J3(e,m);try{G3(C,m,v)}catch(M){}}}}return C}f1.exports=V1});var t5={};h3(t5,{TelaCadastro:()=>o1,TelaConviteExpirado:()=>w1,TelaEsqueceuSenha:()=>q1,TelaInstrucoesEnviadas:()=>$1,TelaLogin:()=>b1,TelaNovaSenha:()=>F1,TemplateTelaBase:()=>Z});module.exports=y3(t5);var l2=require("@s_mart/core"),Q2=require("@s_mart/masks");var F={description:"M37.4802 11.2595L18.4955 30.6836L11.5198 23.5465C11.1816 23.2004 10.6333 23.2004 10.295 23.5465L8.25365 25.635C7.91545 25.9811 7.91545 26.5421 8.25365 26.8882L17.8831 36.7405C18.2213 37.0865 18.7696 37.0865 19.1079 36.7405L40.7463 14.6013C41.0845 14.2553 41.0845 13.6942 40.7463 13.3481L38.705 11.2595C38.3668 10.9135 37.8184 10.9135 37.4802 11.2595Z",viewBox:"0 0 48 48",id:"line-check-regular"};var s2={description:"M35.2071 12.65C32.2143 9.65 28.2286 8 23.9929 8C15.25 8 8.13571 15.1143 8.13571 23.8571C8.13571 26.65 8.86429 29.3786 10.25 31.7857L8 40L16.4071 37.7929C18.7214 39.0571 21.3286 39.7214 23.9857 39.7214H23.9929C32.7286 39.7214 40 32.6071 40 23.8643C40 19.6286 38.2 15.65 35.2071 12.65ZM23.9929 37.05C21.6214 37.05 19.3 36.4143 17.2786 35.2143L16.8 34.9286L11.8143 36.2357L13.1429 31.3714L12.8286 30.8714C11.5071 28.7714 10.8143 26.35 10.8143 23.8571C10.8143 16.5929 16.7286 10.6786 24 10.6786C27.5214 10.6786 30.8286 12.05 33.3143 14.5429C35.8 17.0357 37.3286 20.3429 37.3214 23.8643C37.3214 31.1357 31.2571 37.05 23.9929 37.05ZM31.2214 27.1786C30.8286 26.9786 28.8786 26.0214 28.5143 25.8929C28.15 25.7571 27.8857 25.6929 27.6214 26.0929C27.3571 26.4929 26.6 27.3786 26.3643 27.65C26.1357 27.9143 25.9 27.95 25.5071 27.75C23.1786 26.5857 21.65 25.6714 20.1143 23.0357C19.7071 22.3357 20.5214 22.3857 21.2786 20.8714C21.4071 20.6071 21.3429 20.3786 21.2429 20.1786C21.1429 19.9786 20.35 18.0286 20.0214 17.2357C19.7 16.4643 19.3714 16.5714 19.1286 16.5571C18.9 16.5429 18.6357 16.5429 18.3714 16.5429C18.1071 16.5429 17.6786 16.6429 17.3143 17.0357C16.95 17.4357 15.9286 18.3929 15.9286 20.3429C15.9286 22.2929 17.35 24.1786 17.5429 24.4429C17.7429 24.7071 20.3357 28.7071 24.3143 30.4286C26.8286 31.5143 27.8143 31.6071 29.0714 31.4214C29.8357 31.3071 31.4143 30.4643 31.7429 29.5357C32.0714 28.6071 32.0714 27.8143 31.9714 27.65C31.8786 27.4714 31.6143 27.3714 31.2214 27.1786Z",viewBox:"0 0 48 48",id:"line-whatsapp-regular"};var i=C=>`${C/16}rem`;var K=w(require("@emotion/styled"));var x3=Object.defineProperty,b3=(C,e)=>{for(var r in e)x3(C,r,{get:e[r],enumerable:!0})},u={};b3(u,{blue:()=>E3,green:()=>$3,neutral:()=>O3,red:()=>T3,yellow:()=>A3});var S3={75:"#AFD2FF",100:"#689DCB",300:"#045BA8",500:"#132C70"},E3=S3,w3={75:"#FEBCAC",100:"#F5917F",300:"#EF4829",500:"#BD2601"},T3=w3,k3={75:"#D6EEBC",100:"#A5D770",300:"#49BF00",500:"#518133"},$3=k3,P3={75:"#FDEFB3",100:"#FFE380",300:"#FFAB00",500:"#C56C00"},A3=P3,B3={0:"#FFFFFF",10:"#FBFBFB",20:"#F4F5F7",30:"#EEEEEE",40:"#DBDBDB",50:"#CACACA",100:"#8B8B8B",500:"#555555",600:"#464646",800:"#2E2E2E",900:"#262626"},O3=B3;var U2=K.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
@media (max-width: 768px) {
|
|
28
28
|
display: none;
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,X2=K.default.h1`
|
|
31
31
|
position: absolute;
|
|
32
32
|
left: 32px;
|
|
33
33
|
top: 32px;
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
@media (max-width: 500px) {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,K2=K.default.div`
|
|
70
70
|
position: relative;
|
|
71
71
|
z-index: 2;
|
|
72
72
|
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
background-color: transparent;
|
|
97
97
|
|
|
98
98
|
svg {
|
|
99
|
-
color: ${
|
|
99
|
+
color: ${u.green[300]};
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`;var A=require("react/jsx-runtime");function
|
|
102
|
+
`;var A=require("react/jsx-runtime");function Z({children:C,whatsapp:e,textoChamativo:r,style:a,paperStyle:n,ilustracao:s}){return(0,A.jsxs)(U2,{style:a,children:[r&&(0,A.jsx)(X2,{children:r}),s&&(0,A.jsx)(Y2,{children:typeof s=="string"?(0,A.jsx)("img",{src:s,alt:"Logo do sistema"}):s}),(0,A.jsx)(K2,{style:n,children:C}),e&&(0,A.jsxs)(G2,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${e}`)},style:{marginBottom:16},children:[(0,A.jsxs)(l2.Typography,{variant:"bodyXS",children:["Com d\xFAvidas? ",Q2.telefone.format(e)]}),(0,A.jsx)(l2.LIcon,{icon:s2,size:"20px",removeMargin:!0})]})]})}var T=require("@s_mart/core"),I=require("@s_mart/form");var R3=Object.defineProperty,D3=Object.defineProperties,F3=Object.getOwnPropertyDescriptors,J2=Object.getOwnPropertySymbols,I3=Object.prototype.hasOwnProperty,N3=Object.prototype.propertyIsEnumerable,C1=(C,e,r)=>e in C?R3(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,L2=(C,e)=>{for(var r in e||(e={}))I3.call(e,r)&&C1(C,r,e[r]);if(J2)for(var r of J2(e))N3.call(e,r)&&C1(C,r,e[r]);return C},_3=(C,e)=>D3(C,F3(e));var d2=C=>{let e={validate:{}};return C.forEach(r=>{e=_3(L2(L2({},e),r),{validate:L2(L2({},e.validate),r.validate)})}),e},R={validate:{required:C=>{if(!C)return"Campo obrigat\xF3rio"}}},c2={validate:{email:C=>{if(C&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(C))return"O email \xE9 inv\xE1lido"}}};var z=w(require("@emotion/styled"));var e1=z.default.div`
|
|
103
103
|
display: grid;
|
|
104
104
|
gap: ${i(32)};
|
|
105
105
|
`,r1=z.default.header`
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
align-items: center;
|
|
138
138
|
gap: ${i(4)};
|
|
139
139
|
|
|
140
|
-
color: ${
|
|
141
|
-
border: 1px solid ${
|
|
140
|
+
color: ${u.neutral[600]};
|
|
141
|
+
border: 1px solid ${u.neutral[600]};
|
|
142
142
|
border-radius: ${i(4)};
|
|
143
143
|
padding: ${i(3)} ${i(4)};
|
|
144
144
|
|
|
@@ -146,10 +146,10 @@
|
|
|
146
146
|
vertical-align: middle;
|
|
147
147
|
|
|
148
148
|
${({checked:C})=>{if(C)return`
|
|
149
|
-
color: ${
|
|
150
|
-
border-color: ${
|
|
149
|
+
color: ${u.green[300]};
|
|
150
|
+
border-color: ${u.green[300]};
|
|
151
151
|
`}}
|
|
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(
|
|
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(H){var c=H,{logo:C,nomeSistema:e,onSubmit:r,linkTermosDeUso:a,email:n}=c,s=E(c,["logo","nomeSistema","onSubmit","linkTermosDeUso","email"]);let{senhaContemLetra:m,senhaContemNumero:v,senhaContemMinimoDe6Caracteres:M,desabilitarBotaoDeCadastro:O}=a1(),X=typeof C=="string"?(0,o.jsx)("img",{src:C,alt:"Logo do sistema"}):C;return(0,o.jsx)(Z,S(x({},s),{children:(0,o.jsxs)(e1,{children:[(0,o.jsxs)(r1,{children:[C&&(0,o.jsx)("div",{children:X}),(0,o.jsxs)(T.Typography,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",e,"."]})]}),(0,o.jsx)(I.Form,{onSubmit:r,defaultValues:{email:n,termosDeUso:!1},children:({watch:h})=>{let P=m(h("senha")),r2=v(h("senha")),i2=M(h("senha"));return(0,o.jsxs)(i1,{children:[(0,o.jsx)(I.TextField,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),(0,o.jsxs)(n1,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(I.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:R}),(0,o.jsx)(I.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:n2=>{if(!n2)return"Campo obrigat\xF3rio";if(n2!==h("senha"))return"As senhas devem ser iguais"}}})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(T.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,o.jsxs)(t1,{children:[(0,o.jsxs)(u2,{checked:Boolean(P),children:[P&&(0,o.jsx)(T.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,o.jsx)(T.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,o.jsxs)(u2,{checked:Boolean(r2),children:[r2&&(0,o.jsx)(T.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,o.jsx)(T.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,o.jsxs)(u2,{checked:Boolean(i2),children:[i2&&(0,o.jsx)(T.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,o.jsx)(T.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,o.jsx)("div",{children:(0,o.jsx)(I.Checkbox,{name:"termosDeUso",label:(0,o.jsxs)("div",{style:{display:"flex",gap:4},children:[(0,o.jsx)("span",{children:"Li e aceito os"}),(0,o.jsx)("a",{href:a,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),(0,o.jsx)("div",{children:(0,o.jsx)(T.Button,{type:"submit",fullWidth:!0,disabled:O(h()),children:"Concluir meu cadastro"})})]})}})]})}))}var j=require("@s_mart/core"),U=require("@s_mart/form");var y2=require("react");var J=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 W="SnackbarContainer",R5={root:W+"-root",rootDense:W+"-rootDense",top:W+"-top",bottom:W+"-bottom",left:W+"-left",right:W+"-right",center:W+"-center"};var D5=process.env.NODE_ENV!=="production";var x2=w(require("@emotion/styled"),1);var g1=w(require("@emotion/styled"),1),N=require("@emotion/react");var n5=require("react/jsx-runtime"),Z1=require("react/jsx-runtime"),D2=require("react/jsx-runtime"),v1=require("react");var M1=()=>{let[C,e]=(0,y2.useState)(!1);return(0,y2.useEffect)(()=>{let r=a=>{a.key==="CapsLock"&&e(a.getModifierState("CapsLock"))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[]),C};var _=({defaultValue:C}={})=>{let e=typeof window!="undefined",r=J.default.useCallback(()=>{if(!e){if(C){let{width:H=0,height:c=0}=C;return{width:H,height:c}}return{width:0,height:0}}return{width:window.innerWidth,height:window.innerHeight}},[e,C]),[a,n]=J.default.useState(r()),s=J.default.useCallback(()=>{n(r())},[n,r]);return J.default.useEffect(()=>e?(window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}):()=>{},[s,e]),a},z5=x2.default.div`
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
155
|
justify-content: space-between;
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
163
163
|
|
|
164
164
|
border-left: 6px solid
|
|
165
|
-
${({variant:C})=>{switch(C){case"error":return
|
|
165
|
+
${({variant:C})=>{switch(C){case"error":return u.red[300];case"warning":return u.yellow[300];case"info":return u.blue[100];default:case"success":return u.green[300]}}};
|
|
166
166
|
|
|
167
167
|
> div {
|
|
168
168
|
display: flex;
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
> div:last-of-type {
|
|
241
241
|
gap: ${i(8)};
|
|
242
242
|
}
|
|
243
|
-
`;var
|
|
243
|
+
`;var p=require("react/jsx-runtime");function b1(H){var c=H,{logo:C,initialValues:e,onSubmit:r,onEsqueciMinhaSenha:a,errorLabel:n}=c,s=E(c,["logo","initialValues","onSubmit","onEsqueciMinhaSenha","errorLabel"]);let m=typeof C=="string"?(0,p.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:v}=_(),M=M1();return(0,p.jsx)(Z,S(x({},s),{paperStyle:{minWidth:v>500?456:void 0,width:v>500?void 0:"90%"},children:(0,p.jsxs)(h1,{children:[(0,p.jsx)(y1,{children:C&&(0,p.jsx)("div",{children:m})}),(0,p.jsx)(U.Form,{onSubmit:r,defaultValues:x({manterConectado:!1},e),children:(0,p.jsxs)(x1,{children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(U.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:d2([R,c2])}),(0,p.jsxs)("div",{children:[(0,p.jsx)(U.TextField,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:R}),M&&(0,p.jsx)(j.Indicator,{severity:"warning",children:"Capslock ativado"}),!!n&&(0,p.jsx)(j.Typography,{variant:"titleXXS",color:u.red[300],children:n})]})]}),(0,p.jsx)(U.Checkbox,{name:"manterConectado",label:"Manter conectado"}),(0,p.jsxs)("div",{children:[(0,p.jsx)(j.Button,{type:"submit",fullWidth:!0,children:"Entrar"}),a&&(0,p.jsx)(j.Button,{type:"button",fullWidth:!0,variant:"text",onClick:a,children:"Esqueci minha senha"})]})]})})]})}))}var q=require("@s_mart/core");var F2=w(require("@emotion/styled"));var S1=F2.default.div`
|
|
244
244
|
display: grid;
|
|
245
245
|
gap: ${i(32)};
|
|
246
246
|
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
display: grid;
|
|
253
253
|
text-align: center;
|
|
254
254
|
gap: ${i(16)};
|
|
255
|
-
`;var
|
|
255
|
+
`;var g=require("react/jsx-runtime");function w1(n){var s=n,{logo:C,onPrecisoDeAjuda:e,onRealizarAcesso:r}=s,a=E(s,["logo","onPrecisoDeAjuda","onRealizarAcesso"]);let H=typeof C=="string"?(0,g.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:c}=_();return(0,g.jsx)(Z,S(x({},a),{paperStyle:{minWidth:c>500?456:void 0,width:c>500?void 0:"90%"},children:(0,g.jsxs)(S1,{children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(E1,{children:C&&(0,g.jsx)("div",{children:H})}),(0,g.jsxs)("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:4},children:[(0,g.jsx)(q.Typography,{variant:"bodyMD",children:"O convite que voc\xEA utilizou, j\xE1 foi usado ou expirou."}),(0,g.jsx)(q.Typography,{variant:"titleSM",children:"Realize o acesso ou solicite um novo convite."})]})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)(q.Button,{fullWidth:!0,onClick:r,children:"Realizar acesso"}),(0,g.jsxs)(q.Button,{fullWidth:!0,variant:"outlined",onClick:e,style:{display:"flex",gap:8},children:[(0,g.jsx)(q.LIcon,{icon:s2,size:"20px",removeMargin:!0,color:u.green[300]}),"Preciso de ajuda"]})]})]})}))}var C2=require("@s_mart/core");var I2=w(require("@emotion/styled"));var T1=I2.default.div`
|
|
256
256
|
display: grid;
|
|
257
257
|
gap: ${i(32)};
|
|
258
258
|
|
|
@@ -264,17 +264,17 @@
|
|
|
264
264
|
display: grid;
|
|
265
265
|
text-align: center;
|
|
266
266
|
gap: ${i(16)};
|
|
267
|
-
`;var $=require("react/jsx-runtime");function $1(a){var n=a,{logo:C,onVoltarParaLogin:e}=n,r=E(n,["logo","onVoltarParaLogin"]);let s=typeof C=="string"?(0,$.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:
|
|
267
|
+
`;var $=require("react/jsx-runtime");function $1(a){var n=a,{logo:C,onVoltarParaLogin:e}=n,r=E(n,["logo","onVoltarParaLogin"]);let s=typeof C=="string"?(0,$.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:H}=_();return(0,$.jsx)(Z,S(x({},r),{paperStyle:{maxWidth:H>500?456:void 0,width:H>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)(C2.Typography,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),(0,$.jsx)(C2.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)(C2.Button,{fullWidth:!0,onClick:e,children:"Voltar para login"})]})}))}var k=require("@s_mart/core"),e2=require("@s_mart/form");var Y=w(require("@emotion/styled"));var P1=Y.default.div`
|
|
268
268
|
display: grid;
|
|
269
269
|
gap: ${i(32)};
|
|
270
|
-
`,A1=
|
|
270
|
+
`,A1=Y.default.header`
|
|
271
271
|
display: grid;
|
|
272
272
|
text-align: center;
|
|
273
273
|
gap: ${i(16)};
|
|
274
|
-
`,B1=
|
|
274
|
+
`,B1=Y.default.div`
|
|
275
275
|
display: grid;
|
|
276
276
|
gap: ${i(32)};
|
|
277
|
-
`,O1=
|
|
277
|
+
`,O1=Y.default.div`
|
|
278
278
|
display: grid;
|
|
279
279
|
gap: ${i(4)};
|
|
280
280
|
|
|
@@ -293,17 +293,17 @@
|
|
|
293
293
|
display: grid;
|
|
294
294
|
gap: ${i(4)};
|
|
295
295
|
}
|
|
296
|
-
`,R1=
|
|
296
|
+
`,R1=Y.default.div`
|
|
297
297
|
display: flex;
|
|
298
298
|
flex-wrap: wrap;
|
|
299
299
|
gap: ${i(8)};
|
|
300
|
-
`,S2=
|
|
300
|
+
`,S2=Y.default.div`
|
|
301
301
|
display: flex;
|
|
302
302
|
align-items: center;
|
|
303
303
|
gap: ${i(4)};
|
|
304
304
|
|
|
305
|
-
color: ${
|
|
306
|
-
border: 1px solid ${
|
|
305
|
+
color: ${u.neutral[600]};
|
|
306
|
+
border: 1px solid ${u.neutral[600]};
|
|
307
307
|
border-radius: ${i(4)};
|
|
308
308
|
padding: ${i(3)} ${i(4)};
|
|
309
309
|
|
|
@@ -311,10 +311,10 @@
|
|
|
311
311
|
vertical-align: middle;
|
|
312
312
|
|
|
313
313
|
${({checked:C})=>{if(C)return`
|
|
314
|
-
color: ${
|
|
315
|
-
border-color: ${
|
|
314
|
+
color: ${u.green[300]};
|
|
315
|
+
border-color: ${u.green[300]};
|
|
316
316
|
`}}
|
|
317
|
-
`;function D1(){let C=n=>n?n.match(/[a-z]/i):!1,e=n=>n?n.match(/[0-9]/i):!1,r=n=>n?n.length>=6:!1;return{senhaContemLetra:C,senhaContemNumero:e,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:n=>!n.
|
|
317
|
+
`;function D1(){let C=n=>n?n.match(/[a-z]/i):!1,e=n=>n?n.match(/[0-9]/i):!1,r=n=>n?n.length>=6:!1;return{senhaContemLetra:C,senhaContemNumero:e,senhaContemMinimoDe6Caracteres:r,desabilitarBotaoDeCadastro:n=>!n.senha||!n.confirmarSenha||!C(n.senha)||!e(n.senha)||!r(n.senha)}}var d=require("react/jsx-runtime");function F1(a){var n=a,{logo:C,onTrocarMinhaSenha:e}=n,r=E(n,["logo","onTrocarMinhaSenha"]);let{senhaContemLetra:s,senhaContemNumero:H,senhaContemMinimoDe6Caracteres:c,desabilitarBotaoDeCadastro:m}=D1(),v=typeof C=="string"?(0,d.jsx)("img",{src:C,alt:"Logo do sistema"}):C;return(0,d.jsx)(Z,S(x({},r),{children:(0,d.jsxs)(P1,{children:[(0,d.jsxs)(A1,{children:[C&&(0,d.jsx)("div",{children:v}),(0,d.jsx)(k.Typography,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),(0,d.jsx)(e2.Form,{onSubmit:e,children:({watch:M})=>{let O=s(M("senha")),X=H(M("senha")),h=c(M("senha"));return(0,d.jsxs)(B1,{children:[(0,d.jsxs)(O1,{children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(e2.TextField,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:R}),(0,d.jsx)(e2.TextField,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:P=>{if(!P)return"Campo obrigat\xF3rio";if(P!==M("senha"))return"As senhas devem ser iguais"}}})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(k.Typography,{variant:"bodyXS",children:"Sua senha precisa conter:"}),(0,d.jsxs)(R1,{children:[(0,d.jsxs)(S2,{checked:Boolean(O),children:[O&&(0,d.jsx)(k.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,d.jsx)(k.Typography,{variant:"bodyXS",children:"Uma letra"})]}),(0,d.jsxs)(S2,{checked:Boolean(X),children:[X&&(0,d.jsx)(k.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,d.jsx)(k.Typography,{variant:"bodyXS",children:"Um n\xFAmero"})]}),(0,d.jsxs)(S2,{checked:Boolean(h),children:[h&&(0,d.jsx)(k.LIcon,{icon:F,size:"16px",removeMargin:!0}),(0,d.jsx)(k.Typography,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),(0,d.jsx)("div",{children:(0,d.jsx)(k.Button,{type:"submit",fullWidth:!0,disabled:m(M()),children:"Trocar minha senha"})})]})}})]})}))}var G=require("@s_mart/core");var E2=w(require("@emotion/styled"));var I1=E2.default.div`
|
|
318
318
|
display: grid;
|
|
319
319
|
gap: ${i(32)};
|
|
320
320
|
|
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
display: grid;
|
|
335
335
|
gap: ${i(16)};
|
|
336
336
|
}
|
|
337
|
-
`;var w2=require("@s_mart/form");var
|
|
337
|
+
`;var w2=require("@s_mart/form");var f=require("react/jsx-runtime");function q1(n){var s=n,{logo:C,onVoltarParaLogin:e,onConfirmar:r}=s,a=E(s,["logo","onVoltarParaLogin","onConfirmar"]);let H=typeof C=="string"?(0,f.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:c}=_();return(0,f.jsx)(Z,S(x({},a),{paperStyle:{minWidth:c>500?456:void 0,width:c>500?void 0:"90%"},children:(0,f.jsxs)(I1,{children:[(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[(0,f.jsx)(N1,{children:C&&(0,f.jsx)("div",{children:H})}),(0,f.jsx)(G.Typography,{variant:"titleMD",textAlign:"center",children:"Esqueceu a senha?"}),(0,f.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,f.jsx)(w2.Form,{onSubmit:r,children:(0,f.jsxs)(_1,{children:[(0,f.jsx)("div",{children:(0,f.jsx)(w2.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:d2([R,c2])})}),(0,f.jsxs)("div",{children:[(0,f.jsx)(G.Button,{fullWidth:!0,type:"submit",children:"Confirmar"}),(0,f.jsx)(G.Button,{fullWidth:!0,onClick:e,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}0&&(module.exports={TelaCadastro,TelaConviteExpirado,TelaEsqueceuSenha,TelaInstrucoesEnviadas,TelaLogin,TelaNovaSenha,TemplateTelaBase});
|
|
338
338
|
/** @license React v16.13.1
|
|
339
339
|
* react-is.development.js
|
|
340
340
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=Object.getOwnPropertyDescriptor,H3=Object.getOwnPropertyDescriptors,p3=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,V3=Object.getPrototypeOf,Z2=Object.prototype.hasOwnProperty,F2=Object.prototype.propertyIsEnumerable;var D2=(C,e,r)=>e in C?g2(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,
|
|
1
|
+
var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=Object.getOwnPropertyDescriptor,H3=Object.getOwnPropertyDescriptors,p3=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,V3=Object.getPrototypeOf,Z2=Object.prototype.hasOwnProperty,F2=Object.prototype.propertyIsEnumerable;var D2=(C,e,r)=>e in C?g2(C,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):C[e]=r,Z=(C,e)=>{for(var r in e||(e={}))Z2.call(e,r)&&D2(C,r,e[r]);if(J)for(var r of J(e))F2.call(e,r)&&D2(C,r,e[r]);return C},y=(C,e)=>c3(C,H3(e));var x=(C,e)=>{var r={};for(var a in C)Z2.call(C,a)&&e.indexOf(a)<0&&(r[a]=C[a]);if(C!=null&&J)for(var a of J(C))e.indexOf(a)<0&&F2.call(C,a)&&(r[a]=C[a]);return r};var C2=(C,e)=>()=>(e||C((e={exports:{}}).exports,e),e.exports);var f3=(C,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p3(e))!Z2.call(C,n)&&n!==r&&g2(C,n,{get:()=>e[n],enumerable:!(a=u3(e,n))||a.enumerable});return C};var m3=(C,e,r)=>(r=C!=null?d3(V3(C)):{},f3(e||!C||!C.__esModule?g2(r,"default",{value:C,enumerable:!0}):r,C));var C1=C2(s=>{"use strict";var H=typeof Symbol=="function"&&Symbol.for,x2=H?Symbol.for("react.element"):60103,b2=H?Symbol.for("react.portal"):60106,a2=H?Symbol.for("react.fragment"):60107,o2=H?Symbol.for("react.strict_mode"):60108,s2=H?Symbol.for("react.profiler"):60114,l2=H?Symbol.for("react.provider"):60109,L2=H?Symbol.for("react.context"):60110,S2=H?Symbol.for("react.async_mode"):60111,d2=H?Symbol.for("react.concurrent_mode"):60111,c2=H?Symbol.for("react.forward_ref"):60112,u2=H?Symbol.for("react.suspense"):60113,z3=H?Symbol.for("react.suspense_list"):60120,H2=H?Symbol.for("react.memo"):60115,p2=H?Symbol.for("react.lazy"):60116,W3=H?Symbol.for("react.block"):60121,j3=H?Symbol.for("react.fundamental"):60117,U3=H?Symbol.for("react.responder"):60118,Y3=H?Symbol.for("react.scope"):60119;function h(C){if(typeof C=="object"&&C!==null){var e=C.$$typeof;switch(e){case x2:switch(C=C.type,C){case S2:case d2:case a2:case s2:case o2:case u2:return C;default:switch(C=C&&C.$$typeof,C){case L2:case c2:case p2:case H2:case l2:return C;default:return e}}case b2:return e}}}function J2(C){return h(C)===d2}s.AsyncMode=S2;s.ConcurrentMode=d2;s.ContextConsumer=L2;s.ContextProvider=l2;s.Element=x2;s.ForwardRef=c2;s.Fragment=a2;s.Lazy=p2;s.Memo=H2;s.Portal=b2;s.Profiler=s2;s.StrictMode=o2;s.Suspense=u2;s.isAsyncMode=function(C){return J2(C)||h(C)===S2};s.isConcurrentMode=J2;s.isContextConsumer=function(C){return h(C)===L2};s.isContextProvider=function(C){return h(C)===l2};s.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===x2};s.isForwardRef=function(C){return h(C)===c2};s.isFragment=function(C){return h(C)===a2};s.isLazy=function(C){return h(C)===p2};s.isMemo=function(C){return h(C)===H2};s.isPortal=function(C){return h(C)===b2};s.isProfiler=function(C){return h(C)===s2};s.isStrictMode=function(C){return h(C)===o2};s.isSuspense=function(C){return h(C)===u2};s.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===a2||C===d2||C===s2||C===o2||C===u2||C===z3||typeof C=="object"&&C!==null&&(C.$$typeof===p2||C.$$typeof===H2||C.$$typeof===l2||C.$$typeof===L2||C.$$typeof===c2||C.$$typeof===j3||C.$$typeof===U3||C.$$typeof===Y3||C.$$typeof===W3)};s.typeOf=h});var e1=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,L=C?Symbol.for("react.context"):60110,p=C?Symbol.for("react.async_mode"):60111,m=C?Symbol.for("react.concurrent_mode"):60111,f=C?Symbol.for("react.forward_ref"):60112,k=C?Symbol.for("react.suspense"):60113,I=C?Symbol.for("react.suspense_list"):60120,M=C?Symbol.for("react.memo"):60115,w=C?Symbol.for("react.lazy"):60116,X=C?Symbol.for("react.block"):60121,K=C?Symbol.for("react.fundamental"):60117,G=C?Symbol.for("react.responder"):60118,D1=C?Symbol.for("react.scope"):60119;function F1(t){return typeof t=="string"||typeof t=="function"||t===a||t===m||t===o||t===n||t===k||t===I||typeof t=="object"&&t!==null&&(t.$$typeof===w||t.$$typeof===M||t.$$typeof===c||t.$$typeof===L||t.$$typeof===f||t.$$typeof===K||t.$$typeof===G||t.$$typeof===D1||t.$$typeof===X)}function g(t){if(typeof t=="object"&&t!==null){var M2=t.$$typeof;switch(M2){case e:var Q=t.type;switch(Q){case p:case m:case a:case o:case n:case k:return Q;default:var R2=Q&&Q.$$typeof;switch(R2){case L:case f:case w:case M:case c:return R2;default:return M2}}case r:return M2}}}var I1=p,N1=m,_1=L,q1=c,z1=e,W1=f,j1=a,U1=w,Y1=M,X1=r,K1=o,G1=n,Q1=k,B2=!1;function J1(t){return B2||(B2=!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.")),O2(t)||g(t)===p}function O2(t){return g(t)===m}function C3(t){return g(t)===L}function e3(t){return g(t)===c}function r3(t){return typeof t=="object"&&t!==null&&t.$$typeof===e}function i3(t){return g(t)===f}function n3(t){return g(t)===a}function t3(t){return g(t)===w}function a3(t){return g(t)===M}function o3(t){return g(t)===r}function s3(t){return g(t)===o}function l3(t){return g(t)===n}function L3(t){return g(t)===k}l.AsyncMode=I1,l.ConcurrentMode=N1,l.ContextConsumer=_1,l.ContextProvider=q1,l.Element=z1,l.ForwardRef=W1,l.Fragment=j1,l.Lazy=U1,l.Memo=Y1,l.Portal=X1,l.Profiler=K1,l.StrictMode=G1,l.Suspense=Q1,l.isAsyncMode=J1,l.isConcurrentMode=O2,l.isContextConsumer=C3,l.isContextProvider=e3,l.isElement=r3,l.isForwardRef=i3,l.isFragment=n3,l.isLazy=t3,l.isMemo=a3,l.isPortal=o3,l.isProfiler=s3,l.isStrictMode=l3,l.isSuspense=L3,l.isValidElementType=F1,l.typeOf=g}()});var r1=C2((e4,E2)=>{"use strict";process.env.NODE_ENV==="production"?E2.exports=C1():E2.exports=e1()});var l1=C2((r4,s1)=>{"use strict";var w2=r1(),X3={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},G3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},T2={};T2[w2.ForwardRef]=G3;T2[w2.Memo]=a1;function i1(C){return w2.isMemo(C)?a1:T2[C.$$typeof]||X3}var Q3=Object.defineProperty,J3=Object.getOwnPropertyNames,n1=Object.getOwnPropertySymbols,C5=Object.getOwnPropertyDescriptor,e5=Object.getPrototypeOf,t1=Object.prototype;function o1(C,e,r){if(typeof e!="string"){if(t1){var a=e5(e);a&&a!==t1&&o1(C,a,r)}var n=J3(e);n1&&(n=n.concat(n1(e)));for(var o=i1(C),c=i1(e),L=0;L<n.length;++L){var p=n[L];if(!K3[p]&&!(r&&r[p])&&!(c&&c[p])&&!(o&&o[p])){var m=C5(e,p);try{Q3(C,p,m)}catch(f){}}}}return C}s1.exports=o1});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 q from"@emotion/styled";var M3=Object.defineProperty,g3=(C,e)=>{for(var r in e)M3(C,r,{get:e[r],enumerable:!0})},d={};g3(d,{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 I2=q.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -96,20 +96,20 @@ var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=
|
|
|
96
96
|
background-color: transparent;
|
|
97
97
|
|
|
98
98
|
svg {
|
|
99
|
-
color: ${
|
|
99
|
+
color: ${d.green[300]};
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`;import{jsx as z,jsxs as v2}from"react/jsx-runtime";function
|
|
102
|
+
`;import{jsx as z,jsxs as v2}from"react/jsx-runtime";function v({children:C,whatsapp:e,textoChamativo:r,style:a,paperStyle:n,ilustracao:o}){return v2(I2,{style:a,children:[r&&z(_2,{children:r}),o&&z(N2,{children:typeof o=="string"?z("img",{src:o,alt:"Logo do sistema"}):o}),z(q2,{style:n,children:C}),e&&v2(z2,{onClick:()=>{window.open(`https://api.whatsapp.com/send?phone=${e}`)},style:{marginBottom:16},children:[v2($3,{variant:"bodyXS",children:["Com d\xFAvidas? ",P3.format(e)]}),z(k3,{icon:e2,size:"20px",removeMargin:!0})]})]})}import{Button as I3,LIcon as h2,Typography as W}from"@s_mart/core";import{Checkbox as N3,Form as _3,TextField as y2}from"@s_mart/form";var A3=Object.defineProperty,B3=Object.defineProperties,O3=Object.getOwnPropertyDescriptors,W2=Object.getOwnPropertySymbols,R3=Object.prototype.hasOwnProperty,D3=Object.prototype.propertyIsEnumerable,j2=(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)&&j2(C,r,e[r]);if(W2)for(var r of W2(e))D3.call(e,r)&&j2(C,r,e[r]);return C},F3=(C,e)=>B3(C,O3(e));var i2=C=>{let e={validate:{}};return C.forEach(r=>{e=F3(r2(r2({},e),r),{validate:r2(r2({},e.validate),r.validate)})}),e},$={validate:{required:C=>{if(!C)return"Campo obrigat\xF3rio"}}},n2={validate:{email:C=>{if(C&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(C))return"O email \xE9 inv\xE1lido"}}};import N from"@emotion/styled";var U2=N.div`
|
|
103
103
|
display: grid;
|
|
104
104
|
gap: ${i(32)};
|
|
105
105
|
`,Y2=N.header`
|
|
106
106
|
display: grid;
|
|
107
107
|
text-align: center;
|
|
108
108
|
gap: ${i(16)};
|
|
109
|
-
`,
|
|
109
|
+
`,X2=N.div`
|
|
110
110
|
display: grid;
|
|
111
111
|
gap: ${i(32)};
|
|
112
|
-
`,
|
|
112
|
+
`,K2=N.div`
|
|
113
113
|
display: grid;
|
|
114
114
|
gap: ${i(4)};
|
|
115
115
|
|
|
@@ -137,8 +137,8 @@ var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=
|
|
|
137
137
|
align-items: center;
|
|
138
138
|
gap: ${i(4)};
|
|
139
139
|
|
|
140
|
-
color: ${
|
|
141
|
-
border: 1px solid ${
|
|
140
|
+
color: ${d.neutral[600]};
|
|
141
|
+
border: 1px solid ${d.neutral[600]};
|
|
142
142
|
border-radius: ${i(4)};
|
|
143
143
|
padding: ${i(3)} ${i(4)};
|
|
144
144
|
|
|
@@ -146,10 +146,10 @@ var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=
|
|
|
146
146
|
vertical-align: middle;
|
|
147
147
|
|
|
148
148
|
${({checked:C})=>{if(C)return`
|
|
149
|
-
color: ${
|
|
150
|
-
border-color: ${
|
|
149
|
+
color: ${d.green[300]};
|
|
150
|
+
border-color: ${d.green[300]};
|
|
151
151
|
`}}
|
|
152
|
-
`;function Q2(){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(
|
|
152
|
+
`;function Q2(){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 L=c,{logo:C,nomeSistema:e,onSubmit:r,linkTermosDeUso:a,email:n}=L,o=x(L,["logo","nomeSistema","onSubmit","linkTermosDeUso","email"]);let{senhaContemLetra:p,senhaContemNumero:m,senhaContemMinimoDe6Caracteres:f,desabilitarBotaoDeCadastro:k}=Q2(),I=typeof C=="string"?u("img",{src:C,alt:"Logo do sistema"}):C;return u(v,y(Z({},o),{children:b(U2,{children:[b(Y2,{children:[C&&u("div",{children:I}),b(W,{variant:"titleSM",children:["Vamos cadastrar uma senha de acesso ao ",e,"."]})]}),u(_3,{onSubmit:r,defaultValues:{email:n,termosDeUso:!1},children:({watch:M})=>{let w=p(M("senha")),X=m(M("senha")),K=f(M("senha"));return b(X2,{children:[u(y2,{name:"email",label:"E-mail de acesso",required:!0,disabled:!0}),b(K2,{children:[b("div",{children:[u(y2,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:$}),u(y2,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:G=>{if(!G)return"Campo obrigat\xF3rio";if(G!==M("senha"))return"As senhas devem ser iguais"}}})]}),b("div",{children:[u(W,{variant:"bodyXS",children:"Sua senha precisa conter:"}),b(G2,{children:[b(t2,{checked:Boolean(w),children:[w&&u(h2,{icon:A,size:"16px",removeMargin:!0}),u(W,{variant:"bodyXS",children:"Uma letra"})]}),b(t2,{checked:Boolean(X),children:[X&&u(h2,{icon:A,size:"16px",removeMargin:!0}),u(W,{variant:"bodyXS",children:"Um n\xFAmero"})]}),b(t2,{checked:Boolean(K),children:[K&&u(h2,{icon:A,size:"16px",removeMargin:!0}),u(W,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),u("div",{children:u(N3,{name:"termosDeUso",label:b("div",{style:{display:"flex",gap:4},children:[u("span",{children:"Li e aceito os"}),u("a",{href:a,target:"_blank",style:{color:"var(--color-primary)"},rel:"noreferrer",children:"termos de uso"})]})})}),u("div",{children:u(I3,{type:"submit",fullWidth:!0,disabled:k(M()),children:"Concluir meu cadastro"})})]})}})]})}))}import{Button as H1,Indicator as o5,Typography as s5}from"@s_mart/core";import{Checkbox as l5,Form as L5,TextField as p1}from"@s_mart/form";import{useEffect as n5,useState as t5}from"react";import V2 from"react";import t4,{forwardRef as a4,useRef as o4,useCallback as s4,useLayoutEffect as l4,useEffect as L4,createElement as d4,useState as c4,Component as u4,useContext as H4}from"react";import{createPortal as V4}from"react-dom";var r5=m3(l1());var i5="SnackbarContent",m4={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 R="SnackbarContainer",g4={root:R+"-root",rootDense:R+"-rootDense",top:R+"-top",bottom:R+"-bottom",left:R+"-left",right:R+"-right",center:R+"-center"};var Z4=process.env.NODE_ENV!=="production";import k2 from"@emotion/styled";import a5 from"@emotion/styled";import{css as D}from"@emotion/react";import{jsx as D4}from"react/jsx-runtime";import{Fragment as I4,jsx as N4}from"react/jsx-runtime";import{Fragment as q4,jsx as z4,jsxs as W4}from"react/jsx-runtime";import{useEffect as U4,useRef as Y4}from"react";var L1=()=>{let[C,e]=t5(!1);return n5(()=>{let r=a=>{a.key==="CapsLock"&&e(a.getModifierState("CapsLock"))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[]),C};var B=({defaultValue:C}={})=>{let e=typeof window!="undefined",r=V2.useCallback(()=>{if(!e){if(C){let{width:c=0,height:L=0}=C;return{width:c,height:L}}return{width:0,height:0}}return{width:window.innerWidth,height:window.innerHeight}},[e,C]),[a,n]=V2.useState(r()),o=V2.useCallback(()=>{n(r())},[n,r]);return V2.useEffect(()=>e?(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}):()=>{},[o,e]),a},T4=k2.div`
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
155
|
justify-content: space-between;
|
|
@@ -162,14 +162,14 @@ var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=
|
|
|
162
162
|
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);
|
|
163
163
|
|
|
164
164
|
border-left: 6px solid
|
|
165
|
-
${({variant:C})=>{switch(C){case"error":return
|
|
165
|
+
${({variant:C})=>{switch(C){case"error":return d.red[300];case"warning":return d.yellow[300];case"info":return d.blue[100];default:case"success":return d.green[300]}}};
|
|
166
166
|
|
|
167
167
|
> div {
|
|
168
168
|
display: flex;
|
|
169
169
|
align-items: center;
|
|
170
170
|
gap: ${i(8)};
|
|
171
171
|
}
|
|
172
|
-
`,
|
|
172
|
+
`,k4=k2.div`
|
|
173
173
|
display: flex;
|
|
174
174
|
flex-direction: column;
|
|
175
175
|
justify-content: center;
|
|
@@ -177,10 +177,10 @@ var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=
|
|
|
177
177
|
> *:first-of-type {
|
|
178
178
|
margin-bottom: ${i(4)};
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
`,$4=k2.div`
|
|
181
181
|
cursor: pointer;
|
|
182
182
|
align-self: flex-start;
|
|
183
|
-
`,
|
|
183
|
+
`,O4=a5.i`
|
|
184
184
|
align-self: center;
|
|
185
185
|
display: inline-flex;
|
|
186
186
|
color: ${({color:C})=>C};
|
|
@@ -240,7 +240,7 @@ var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=
|
|
|
240
240
|
> div:last-of-type {
|
|
241
241
|
gap: ${i(8)};
|
|
242
242
|
}
|
|
243
|
-
`;import{jsx as S,jsxs as j}from"react/jsx-runtime";function
|
|
243
|
+
`;import{jsx as S,jsxs as j}from"react/jsx-runtime";function d5(c){var L=c,{logo:C,initialValues:e,onSubmit:r,onEsqueciMinhaSenha:a,errorLabel:n}=L,o=x(L,["logo","initialValues","onSubmit","onEsqueciMinhaSenha","errorLabel"]);let p=typeof C=="string"?S("img",{src:C,alt:"Logo do sistema"}):C,{width:m}=B(),f=L1();return S(v,y(Z({},o),{paperStyle:{minWidth:m>500?456:void 0,width:m>500?void 0:"90%"},children:j(d1,{children:[S(c1,{children:C&&S("div",{children:p})}),S(L5,{onSubmit:r,defaultValues:Z({manterConectado:!1},e),children:j(u1,{children:[j("div",{children:[S(p1,{name:"email",label:"E-mail de acesso",required:!0,rules:i2([$,n2])}),j("div",{children:[S(p1,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:$}),f&&S(o5,{severity:"warning",children:"Capslock ativado"}),!!n&&S(s5,{variant:"titleXXS",color:d.red[300],children:n})]})]}),S(l5,{name:"manterConectado",label:"Manter conectado"}),j("div",{children:[S(H1,{type:"submit",fullWidth:!0,children:"Entrar"}),a&&S(H1,{type:"button",fullWidth:!0,variant:"text",onClick:a,children:"Esqueci minha senha"})]})]})})]})}))}import{Button as M1,LIcon as c5,Typography as g1}from"@s_mart/core";import V1 from"@emotion/styled";var f1=V1.div`
|
|
244
244
|
display: grid;
|
|
245
245
|
gap: ${i(32)};
|
|
246
246
|
|
|
@@ -252,7 +252,7 @@ var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=
|
|
|
252
252
|
display: grid;
|
|
253
253
|
text-align: center;
|
|
254
254
|
gap: ${i(16)};
|
|
255
|
-
`;import{jsx as O,jsxs as U}from"react/jsx-runtime";function
|
|
255
|
+
`;import{jsx as O,jsxs as U}from"react/jsx-runtime";function u5(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:L}=B();return O(v,y(Z({},a),{paperStyle:{minWidth:L>500?456:void 0,width:L>500?void 0:"90%"},children:U(f1,{children:[U("div",{children:[O(m1,{children:C&&O("div",{children:c})}),U("div",{style:{display:"flex",flexDirection:"column",textAlign:"center",gap:4},children:[O(g1,{variant:"bodyMD",children:"O convite que voc\xEA utilizou, j\xE1 foi usado ou expirou."}),O(g1,{variant:"titleSM",children:"Realize o acesso ou solicite um novo convite."})]})]}),U("div",{children:[O(M1,{fullWidth:!0,onClick:r,children:"Realizar acesso"}),U(M1,{fullWidth:!0,variant:"outlined",onClick:e,style:{display:"flex",gap:8},children:[O(c5,{icon:e2,size:"20px",removeMargin:!0,color:d.green[300]}),"Preciso de ajuda"]})]})]})}))}import{Button as H5,Typography as y1}from"@s_mart/core";import Z1 from"@emotion/styled";var v1=Z1.div`
|
|
256
256
|
display: grid;
|
|
257
257
|
gap: ${i(32)};
|
|
258
258
|
|
|
@@ -264,7 +264,7 @@ var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=
|
|
|
264
264
|
display: grid;
|
|
265
265
|
text-align: center;
|
|
266
266
|
gap: ${i(16)};
|
|
267
|
-
`;import{jsx as F,jsxs as x1}from"react/jsx-runtime";function
|
|
267
|
+
`;import{jsx as F,jsxs as x1}from"react/jsx-runtime";function p5(a){var n=a,{logo:C,onVoltarParaLogin:e}=n,r=x(n,["logo","onVoltarParaLogin"]);let o=typeof C=="string"?F("img",{src:C,alt:"Logo do sistema"}):C,{width:c}=B();return F(v,y(Z({},r),{paperStyle:{maxWidth:c>500?456:void 0,width:c>500?void 0:"90%"},children:x1(v1,{children:[x1("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[F(h1,{children:C&&F("div",{children:o})}),F(y1,{variant:"titleMD",textAlign:"center",children:"Instru\xE7\xF5es enviadas"}),F(y1,{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."})]}),F(H5,{fullWidth:!0,onClick:e,children:"Voltar para login"})]})}))}import{Button as V5,LIcon as P2,Typography as Y}from"@s_mart/core";import{Form as f5,TextField as $1}from"@s_mart/form";import _ from"@emotion/styled";var b1=_.div`
|
|
268
268
|
display: grid;
|
|
269
269
|
gap: ${i(32)};
|
|
270
270
|
`,S1=_.header`
|
|
@@ -302,8 +302,8 @@ var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=
|
|
|
302
302
|
align-items: center;
|
|
303
303
|
gap: ${i(4)};
|
|
304
304
|
|
|
305
|
-
color: ${
|
|
306
|
-
border: 1px solid ${
|
|
305
|
+
color: ${d.neutral[600]};
|
|
306
|
+
border: 1px solid ${d.neutral[600]};
|
|
307
307
|
border-radius: ${i(4)};
|
|
308
308
|
padding: ${i(3)} ${i(4)};
|
|
309
309
|
|
|
@@ -311,10 +311,10 @@ var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=
|
|
|
311
311
|
vertical-align: middle;
|
|
312
312
|
|
|
313
313
|
${({checked:C})=>{if(C)return`
|
|
314
|
-
color: ${
|
|
315
|
-
border-color: ${
|
|
314
|
+
color: ${d.green[300]};
|
|
315
|
+
border-color: ${d.green[300]};
|
|
316
316
|
`}}
|
|
317
|
-
`;function k1(){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.
|
|
317
|
+
`;function k1(){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.senha||!n.confirmarSenha||!C(n.senha)||!e(n.senha)||!r(n.senha)}}import{jsx as V,jsxs as T}from"react/jsx-runtime";function m5(a){var n=a,{logo:C,onTrocarMinhaSenha:e}=n,r=x(n,["logo","onTrocarMinhaSenha"]);let{senhaContemLetra:o,senhaContemNumero:c,senhaContemMinimoDe6Caracteres:L,desabilitarBotaoDeCadastro:p}=k1(),m=typeof C=="string"?V("img",{src:C,alt:"Logo do sistema"}):C;return V(v,y(Z({},r),{children:T(b1,{children:[T(S1,{children:[C&&V("div",{children:m}),V(Y,{variant:"titleSM",children:"Vamos cadastrar uma nova senha de acesso."})]}),V(f5,{onSubmit:e,children:({watch:f})=>{let k=o(f("senha")),I=c(f("senha")),M=L(f("senha"));return T(E1,{children:[T(w1,{children:[T("div",{children:[V($1,{type:"password",name:"senha",label:"Senha de acesso",required:!0,rules:$}),V($1,{type:"password",name:"confirmarSenha",label:"Confirme sua senha",required:!0,rules:{validate:w=>{if(!w)return"Campo obrigat\xF3rio";if(w!==f("senha"))return"As senhas devem ser iguais"}}})]}),T("div",{children:[V(Y,{variant:"bodyXS",children:"Sua senha precisa conter:"}),T(T1,{children:[T(f2,{checked:Boolean(k),children:[k&&V(P2,{icon:A,size:"16px",removeMargin:!0}),V(Y,{variant:"bodyXS",children:"Uma letra"})]}),T(f2,{checked:Boolean(I),children:[I&&V(P2,{icon:A,size:"16px",removeMargin:!0}),V(Y,{variant:"bodyXS",children:"Um n\xFAmero"})]}),T(f2,{checked:Boolean(M),children:[M&&V(P2,{icon:A,size:"16px",removeMargin:!0}),V(Y,{variant:"bodyXS",children:"M\xEDnimo de 6 caracteres"})]})]})]})]}),V("div",{children:V(V5,{type:"submit",fullWidth:!0,disabled:p(f()),children:"Trocar minha senha"})})]})}})]})}))}import{Button as O1,Typography as R1}from"@s_mart/core";import A2 from"@emotion/styled";var P1=A2.div`
|
|
318
318
|
display: grid;
|
|
319
319
|
gap: ${i(32)};
|
|
320
320
|
|
|
@@ -334,7 +334,7 @@ var d3=Object.create;var g2=Object.defineProperty,c3=Object.defineProperties,u3=
|
|
|
334
334
|
display: grid;
|
|
335
335
|
gap: ${i(16)};
|
|
336
336
|
}
|
|
337
|
-
`;import{Form as
|
|
337
|
+
`;import{Form as M5,TextField as g5}from"@s_mart/form";import{jsx as E,jsxs as m2}from"react/jsx-runtime";function Z5(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:L}=B();return E(v,y(Z({},a),{paperStyle:{minWidth:L>500?456:void 0,width:L>500?void 0:"90%"},children:m2(P1,{children:[m2("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[E(A1,{children:C&&E("div",{children: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:m2(B1,{children:[E("div",{children:E(g5,{name:"email",label:"E-mail de acesso",required:!0,rules:i2([$,n2])})}),m2("div",{children:[E(O1,{fullWidth:!0,type:"submit",children:"Confirmar"}),E(O1,{fullWidth:!0,onClick:e,variant:"neutral",children:"Voltar para login"})]})]})})]})}))}export{q3 as TelaCadastro,u5 as TelaConviteExpirado,Z5 as TelaEsqueceuSenha,p5 as TelaInstrucoesEnviadas,d5 as TelaLogin,m5 as TelaNovaSenha,v as TemplateTelaBase};
|
|
338
338
|
/** @license React v16.13.1
|
|
339
339
|
* react-is.development.js
|
|
340
340
|
*
|