PageSourceSearch

https://redeindica.go.gov.br/build/assets/RedefinirSenha-2ffc6eb6.js

js redeindica.go.gov.br collected 2026-10-02 00:27:25 UTC 5,089 bytes, 1 lines download raw bytes

1import{s as O,r as v,v as T,a,o as i,c as m,w as o,f as t,n as D,e as C,g as x,F as G,h as I,i as h,d as e,t as p,u as g,k as c,N as P}from"./app-5fc1912d.js";import{_ as H}from"./AdminGeralLayout-a3455019.js";import{C as J}from"./Card-511e1ef8.js";import"./AdminLayout-c73cece3.js";import"./ApplicationLogo-e0d31125.js";import"./Footer-af4780d1.js";import"./iconify-03d69e80.js";import"./icon-df62cc88.js";import"./validacaoNome-49cf0a9d.js";import"./_plugin-vue_export-helper-c27b6911.js";const K=e("h4",{class:"tw-text-xl tw-font-bold"}," Redefinir senha de usuários ",-1),Q={key:0,class:"tw-flex tw-bg-gray-50 tw-flex-col tw-gap-2 tw-px-2 -tw-mt-5 tw-py-2 tw-rounded-b-3xl tw-border-t tw-border-t-gray-400"},W=["onClick"],X=e("div",{class:"tw-rounded-full tw-bg-primary"},[e("h6",{class:"tw-text-white tw-flex tw-h-10 tw-w-10 tw-items-center tw-justify-center"},"RI")],-1),Y={class:"tw-flex tw-flex-col tw-text-black"},Z={class:"tw-text-base tw-leading-4"},ee=e("button",{class:"tw-rounded-full tw-h-10 tw-w-full tw-bg-primary tw-text-white tw-items-center tw-justify-center"}," Gerar senha aleatória ",-1),te={class:"tw-flex tw-justify-between tw-items-center"},oe=e("div",{class:"tw-flex"},[e("div",{class:"text-h5"},"Redefinir Senha")],-1),ae=e("br",null,null,-1),le=e("br",null,null,-1),ne={class:"tw-my-2 tw-flex"},se=["onClick"],re={class:"tw-flex tw-py-4 tw-px-20 tw-justify-center tw-items-center tw-gap-4 tw-flex-col"},ie=e("h5",{class:"tw-text-center tw-text-2xl"},[c("Senha redefinida"),e("br"),c(" com sucesso!")],-1),ge={__name:"RedefinirSenha",props:{usuarios:{type:Array},phpVersion:{type:Object},laravelVersion:{type:Object}},setup(V){const S=V,b=O(()=>S.usuarios.filter(s=>s.name.toLowerCase().includes(n.value.toLowerCase())||s.email.toLowerCase().includes(n.value.toLowerCase())).splice(0,3)),n=v(""),d=v(!1),_=v(!1),u=T({name:"",email:"",token:""});function j(s){u.email=s.email,u.name=s.name,d.value=!0}function F(){n.value=""}function y(){d.value=!1,_.value=!1}function N(){u.email=b.value[0].email,u.post(route("admin.password.email"),{preserveScroll:!0,preserveState:!0,onSuccess:s=>{_.value=!0,window.setTimeout(()=>{y()},5e3)},onError:s=>{P.create({type:"negative",color:"negative",position:"top-right",message:"Não foi possível enviar o código de recuperação, email não inválido ou não localizado."})}})}return(s,r)=>{const q=a("q-separator"),w=a("q-icon"),E=a("q-input"),L=a("q-avatar"),f=a("q-card-section"),z=a("q-item-label"),A=a("q-item-section"),B=a("q-item"),R=a("q-btn"),$=a("q-card-actions"),k=a("q-card"),M=a("q-dialog");return i(),m(H,null,{default:o(()=>[t(J,null,{default:o(()=>[K,t(q),t(E,{class:D(["tw-flex tw-w-full tw-px-4 tw-bg-gray-100 tw-text-gray-700 tw-border-none",n.value.length>0?"tw-rounded-t-3xl":"tw-rounded-full"]),rounded:"",outlined:!1,"bg-color":"gray",borderless:"",placeholder:"Pesquisar usuário ou empresa",modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=l=>n.value=l)},{prepend:o(()=>[t(w,{name:"search"})]),append:o(()=>[n.value.length>0?(i(),m(w,{key:0,onClick:F,name:"clear",class:"tw-cursor-pointer"})):C("",!0)]),_:1},8,["class","modelValue"]),n.value.length?(i(),x("div",Q,[(i(!0),x(G,null,I(g(b),(l,U)=>(i(),x("div",{key:U,onClick:h(ce=>j(l),["prevent"]),class:"tw-flex tw-gap-2 hover:tw-bg-gray-200 tw-cursor-pointer tw-flex-row tw-items-center tw-p-1 tw-rounded-full"},[t(L,{class:"tw-mr-3","text-color":"white"},{default:o(()=>[X]),_:1}),e("div",Y,[e("h5",Z,p(l.name),1),e("span",null,p(l.email),1)])],8,W))),128))])):C("",!0),ee]),_:1}),t(M,{modelValue:d.value,"onUpdate:modelValue":r[3]||(r[3]=l=>d.value=l)},{default:o(()=>[_.value?(i(),m(k,{key:1,class:"tw-rounded-3xl tw-overflow-hidden",onClick:r[2]||(r[2]=l=>d.value=!1)},{default:o(()=>[t(f,null,{default:o(()=>[e("div",re,[t(w,{name:"mark_email_read",size:"60px",class:"tw-h-16 tw-w-16 tw-text-gray-900"}),ie])]),_:1})]),_:1})):(i(),m(k,{key:0,class:"tw-rounded-3xl tw-px-4 tw-overflow-hidden"},{default:o(()=>[t(f,null,{default:o(()=>[e("div",te,[oe,e("div",null,[t(w,{name:"close",class:"tw-cursor-pointer tw-text-gray-500",size:"25px",onClick:r[1]||(r[1]=l=>d.value=!1)})])])]),_:1}),t(f,null,{default:o(()=>[e("div",null,[e("p",null,[c("Você deseja mesmo redefinir a senha de "),ae,c(" "+p(g(u).name)+"?",1)]),e("p",null,[c("Uma nova senha será enviada para o email: "),le,c(p(g(u).email),1)])]),t(q,{class:"tw-mt-2"}
1),t($,{align:"right"},{default:o(()=>[e("div",ne,[e("button",{onClick:h(y,["prevent"]),class:"tw-bg-white tw-text-[#6F797A] tw-border-[#6F797A] tw-rounded-full tw-mr-5 tw-items-center tw-px-4 tw-py-2 tw-border tw-font-semibold tw-text-xs tw-text-[[#6F797A] tw-tracking-widest focus:tw-outline-none tw-ease-in-out tw-duration-150"}," Cancelar ",8,se),t(R,{onClick:h(N,["prevent"]),rounded:"",flat:"",class:"tw-bg-primary tw-font-bold","no-caps":"","text-color":"white"},{default:o(()=>[t(B,{clickable:""},{default:o(()=>[t(A,null,{default:o(()=>[t(z,null,{default:o(()=>[c("Enviar")]),_:1})]),_:1})]),_:1})]),_:1},8,["onClick"])])]),_:1})]),_:1})]),_:1}))]),_:1},8,["modelValue"])]),_:1})}}};export{ge as default};

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.