PageSourceSearch

https://vittude.com/_next/static/chunks/8046-54006751f60ecb59.js

js vittude.com collected 2026-10-01 12:31:56 UTC 9,543 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8046],{60392:function(e,r,a){a.d(r,{j:function(){return i}});var t=a(85893),l=a(67294),s=a(46069),d=a(85851),n=a(98388);let i=(0,l.forwardRef)((e,r)=>{var a,l,i,c,u;let{label:h,disabled:m,fieldMessage:x,feedbackType:g="default",className:f,containerProps:b,"data-testid":v,id:p,name:y,required:j,checked:w,defaultChecked:N,onCheckedChange:k,value:C="on",onBlur:F,children:E,variant:z="primary",..._}=e,A=p||y;return(0,t.jsxs)("div",{"data-radix-checkbox-field":!0,className:(0,n.m6)("w-full text-left",null==b?void 0:b.className),...b,children:[(0,t.jsx)("div",{className:(0,n.m6)("w-full !rounded-lg border border-solid !border-gray-300 !bg-white !px-4 !py-2 text-left outline-none transition-all duration-300",m&&"!pointer-events-none !cursor-auto !border-gray-300",null===(a=o[g])||void 0===a?void 0:a.border,null===(l=o[g])||void 0===l?void 0:l.container,"ghost"===z&&"!border-none !px-0 !py-1"),children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(s.fC,{ref:r,id:A,name:y,value:C,disabled:m,required:j,checked:w,defaultChecked:N,onCheckedChange:k,onBlur:F,..._,className:(0,n.m6)("flex !h-5 !min-h-5 !w-5 !min-w-5 shrink-0 items-center justify-center !rounded border border-solid !border-gray-300 bg-white outline-none transition-all","hover:!border-orange-600 hover:!bg-[#FFF1E6]","focus-visible:!border-orange-600 focus-visible:!outline-none","data-[state=checked]:!border-orange-600 data-[state=checked]:!bg-orange-600 data-[state=checked]:text-white","data-[state=indeterminate]:!border-orange-600 data-[state=indeterminate]:!bg-orange-600",m&&"cursor-not-allowed !border-gray-300 !bg-gray-100 text-gray-400 data-[state=checked]:!border-gray-300 data-[state=checked]:!bg-gray-800 data-[state=checked]:text-gray-400",null===(i=o[g])||void 0===i?void 0:i.checkbox,f),"data-testid":v||y||p,children:(0,t.jsx)(s.z$,{className:"flex items-center justify-center text-current",children:(0,t.jsx)(d.Z,{"aria-hidden":!0,weight:"bold",size:14,className:"text-white"})})}),(0,t.jsxs)("label",{htmlFor:A,className:(0,n.m6)("cursor-pointer !text-base !font-normal text-gray-800",m&&"!cursor-not-allowed !text-gray-400",null===(c=o[g])||void 0===c?void 0:c.text),children:[h||E,j&&"*"]})]})}),x&&(0,t.jsx)("span",{className:(0,n.m6)("!mt-1 flex w-full !pl-4 text-left text-xs !text-gray-400",null===(u=o[g])||void 0===u?void 0:u.text),children:x})]})});i.displayName="CheckboxField";let o={error:{text:"!text-red-700",border:"!border-red-700",container:"hover:!border-red-700 focus-within:!border-red-700",checkbox:"!border-red-700 hover:!border-red-700 focus-visible:!border-red-700 data-[state=checked]:!border-red-700 data-[state=checked]:!bg-red-700 data-[state=indeterminate]:!border-red-700 data-[state=indeterminate]:!bg-red-700"}}},58163:function(e,r,a){a.d(r,{l:function(){return o}});var t=a(85893),l=a(25443),s=a(65285),d=a(10622),n=a(98388),i=a(55057);let o=e=>{var r,a,o;let{placeholder:u,options:h=[],value:m="",isLoading:x,onValueChange:g,className:f,icon:b,variant:v="primary",portalContainerRef:p,id:y,label:j,feedbackType:w="default",fieldMessage:N,contentPosition:k="popper",...C}=e,F=(null==p?void 0:p.current)||void 0;return(0,t.jsxs)(s.fC,{value:m||"",onValueChange:g,...C,children:[(0,t.jsxs)("div",{className:(0,n.m6)("w-full text-left",f),children:[(0,t.jsxs)(s.xz,{id:y,"aria-label":u,className:(0,n.m6)("disabled:!bg-gray-150 group w-full !rounded-lg border !border-gray-300 bg-white !px-4 !py-2 text-left text-sm font-normal outline-none hover:!border-orange-600 hover:!bg-[#FFF1E6] focus-visible:!border-orange-600 disabled:cursor-not-allowed disabled:!border-[#E7EAED] disabled:text-gray-400",null===(r=c[w])||void 0===r?void 0:r.border),children:[j&&(0,t.jsxs)("label",{htmlFor:(null==C?void 0:C.id)||(null==C?void 0:C.name),className:(0,n.m6)("!mb-1 !text-sm !font-normal !text-orange-600",null===(a=c[w])||void 0===a?void 0:a.text,C.disabled&&"!text-gray-400"),children:[j,(null==C?void 0:C.required)&&"*"]}),(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden text-ellipsis whitespace-nowrap",children:[b&&(0,t.jsx)(i.J,{name:b,className:"dark"===v?"fill-gray-950":"fill-orange-600"}),(0,t.jsx)("span",{className:(0,n.m6)("overflow-hidden text-ellipsis whitespace-nowrap text-left !text-base !text-gray-700 [&>span]:!text-gray-700 group-data-[placeholder]:[&>span]:!text-gray-600"),children:(0,t.jsx)(s.B4,{placeholder:u})})]}),(0,t.jsx)(s.JO,{className:"ml-2",children:(0,t.jsx)(d.Z,{size:16,color:"dark"===v?"#000":"#FF7708"})})]})]}),N&&(0,t.jsx)("span",{className:(0,n.m6)("!mt-1 flex w-full !pl-4 text-left text-xs !text-gray-400",null===(o=c[w])||void 0===o?void 0:o.text),children:N})]}),(0,t.jsx)(s.h_,{container:F,children:(0,t.jsx)(s.VY,{position:k,sideOffset:6,className:"z-[1000] min-w-[var(--radix-select-trigger-width)] overflow-x-hidden rounded-lg border border-gray-300 bg-white shadow-xl",children:(0,t.jsxs)(l.fC,{className:"max-h-56 w-full",type:"auto",children:[(0,t.jsx)(l.l_,{className:"w-full",children:(0,t.jsx)(s.l_,{className:"py-1",children:x?(0,t.jsx)("p",{className:"mb-0 animate-pulse cursor-default py-2 text-sm text-gray-400",children:"Carregando op\xe7\xf5es..."}):(0,t.jsx)(t.Fragment,{children:h.map(e=>(0,t.jsx)(s.ck,{value:String((null==e?void 0:e.id)||e),className:(0,n.m6)("relative flex cursor-pointer select-none items-center gap-2 px-4 py-3 text-sm text-gray-800 outline-none data-[highlighted]:bg-gray-100 data-[state=checked]:font-semibold data-[highlighted]:outline-none","dar
1k"===v&&"[&_span]:!text-gray-800"),children:(0,t.jsx)(s.eT,{children:(null==e?void 0:e.label)||e})},(null==e?void 0:e.id)||e))})})}),(0,t.jsx)(l.LW,{className:"bg-gray-100",orientation:"vertical",children:(0,t.jsx)(l.bU,{className:"!w-[8px] rounded-lg bg-gray-400"})})]})})})]})},c={error:{text:"!text-red-700",border:"!border-red-700"}}},4876:function(e,r,a){a.d(r,{G:function(){return i}});var t=a(85893),l=a(67294),s=a(25675),d=a.n(s),n=a(14375);let i=e=>{let{ref:r,...a}=e,[s,i]=(0,l.useState)(!0),o=()=>i(e=>!e);return(0,t.jsx)(n.U,{...a,ref:r,type:s?"password":"text",customIcon:(0,t.jsx)("span",{className:"visible cursor-pointer",onClick:o,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),o())},"aria-label":s?"Mostrar senha":"Ocultar senha",children:s?(0,t.jsx)(d(),{src:"/static/images/show.png",alt:"Mostrar senha",width:20,height:20}):(0,t.jsx)(d(),{src:"/static/images/hide.png",alt:"Ocultar senha",width:20,height:20})})})};i.displayName="PasswordInputField"},31749:function(e,r,a){a.d(r,{N:function(){return o}});var t=a(85893),l=a(67294),s=a(87536),d=a(98388),n=a(4876),i=a(55057);let o=e=>{var r,a,o,c;let{control:x,passwordName:g,confirmName:f,errors:b,className:v,onClearFieldError:p}=e,[y,j]=(0,l.useState)({}),w=null!==(r=(0,s.qo)({control:x,name:g}))&&void 0!==r?r:"",N=null!==(a=(0,s.qo)({control:x,name:f}))&&void 0!==a?a:"",k=(e,r)=>{j(a=>{if(!r){if(!a[e])return a;let r={...a};return delete r[e],r}return a[e]===r?a:{...a,[e]:r}})};(0,l.useEffect)(()=>{w&&N&&w===N&&j(e=>{if(e[f]!==h.mismatch)return e;let r={...e};return delete r[f],r})},[w,N,f]);let C=null!==(o=null==b?void 0:b.password)&&void 0!==o?o:y[g],F=null!==(c=null==b?void 0:b.confirm)&&void 0!==c?c:y[f];return(0,t.jsxs)("div",{className:(0,d.m6)("w-full",v),children:[(0,t.jsxs)("div",{className:"grid w-full grid-cols-1 gap-4 md:grid-cols-2",children:[(0,t.jsx)(s.Qr,{name:g,control:x,render:e=>{let{field:r}=e;return(0,t.jsx)(n.G,{...r,label:"Senha",placeholder:"Digite uma senha",required:!0,containerProps:{"data-field":g,className:"!mb-4"},onChange:e=>{r.onChange(e),k(g,void 0),null==p||p(g),e.target.value===N&&(k(f,void 0),null==p||p(f))},onBlur:e=>{r.onBlur(e),k(g,m(e.target.value)?h.passwordInvalid:void 0)},feedbackType:C?"error":"default",fieldMessage:C})}}),(0,t.jsx)(s.Qr,{name:f,control:x,render:e=>{let{field:r}=e;return(0,t.jsx)(n.G,{...r,label:"Confirme a sua senha",placeholder:"Digite novamente sua senha",required:!0,containerProps:{"data-field":f,className:"!mb-4"},onChange:e=>{r.onChange(e),k(f,void 0),null==p||p(f)},onBlur:e=>{r.onBlur(e);let a=e.target.value;if(w&&a&&w!==a){k(f,h.mismatch);return}k(f,void 0)},onPaste:e=>e.preventDefault(),feedbackType:F?"error":"default",fieldMessage:F})}})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"text-left !font-semibold text-gray-800",children:"A senha deve conter"}),(0,t.jsx)("ul",{className:"!mt-2 flex flex-col gap-1",children:u.map(e=>{let{id:r,label:a,validate:l}=e,s=l(w);return(0,t.jsxs)("li",{className:"flex items-center gap-2 text-left !text-sm font-normal text-gray-800",children:[(0,t.jsx)(i.J,{name:s?"CheckCircle":"ErrorOutline",className:s?"fill-green-700":"fill-red-800"}),a]},r)})})]})]})},c=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z0-9\s]).{8,}$/,u=[{id:"minLength",label:"No m\xednimo 8 caracteres;",validate:e=>e.length>=8},{id:"number",label:"1 n\xfamero;",validate:e=>/\d/.test(e)},{id:"specialChar",label:"1 caractere especial como @$!%?&#",validate:e=>/[^A-Za-z0-9\s]/.test(e)},{id:"uppercase",label:"1 letra mai\xfascula;",validate:e=>/[A-Z]/.test(e)},{id:"lowercase",label:"1 letra min\xfascula;",validate:e=>/[a-z]/.test(e)}],h={passwordInvalid:"Senha com formato inv\xe1lido!",mismatch:"As senhas n\xe3o coincidem."},m=e=>!!e&&!c.test(e);o.displayName="PasswordWithConfirmationFields"}}]);
2//# sourceMappingURL=8046-54006751f60ecb59.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.