PageSourceSearch

https://redeindica.go.gov.br/build/assets/MeusTestes-c62aca0a.js

js redeindica.go.gov.br collected 2026-10-02 00:28:57 UTC 3,526 bytes, 1 lines download raw bytes

1import{_ as F}from"./AuthenticatedLayout-aebca31e.js";import{J as M,r as d,a as n,o as c,g as r,f as o,w as s,d as t,t as a,n as U,k as w,F as z}from"./app-5fc1912d.js";import"./ApplicationLogo-e0d31125.js";import"./icon-df62cc88.js";import"./validacaoNome-49cf0a9d.js";const H={class:"tw-py-12"},$={class:"tw-max-w-7xl tw-mx-auto sm:tw-px-6 lg:tw-px-8"},j={class:"tw-bg-white tw-overflow-hidden tw-shadow-sm sm:tw-rounded-lg"},I={key:0},J=["onClick"],P={key:1},R={key:2},G={key:3},K={class:"tw-w-full tw-flex tw-justify-center tw-items-center"},L=t("div",{class:"text-h6"},"Exemplo de Teste",-1),O=t("strong",null,"Nome:",-1),Q=t("strong",null,"Descrição:",-1),W=t("strong",null,"Duração:",-1),se={__name:"MeusTestes",props:{meusTestes:{type:Array,default:()=>[{id:1,nome:"Teste 1",status:"Em andamento"},{id:2,nome:"Teste 2",status:"Aprovado"}]}},setup(x){const b=x;M().props.auth.user;const h=[{name:"nome",align:"center",label:"Nome",field:"nome",sortable:!0},{name:"status",align:"center",label:"Status",field:"status",sortable:!0},{name:"actions",align:"center",label:"Ações",field:"actions",sortable:!0}],m=d(""),p=d([]),q=d(b.meusTestes),i=d(!1),_=d({nome:"Exemplo de Teste",descricao:"Este é um exemplo de teste.",duracao:"60 minutos"}),y=()=>{i.value=!0},T=()=>{i.value=!1},k=u=>u==="Em andamento"?"tw-text-yellow-500":u==="Aprovado"?"tw-text-green-500":u==="Reprovado"?"tw-text-red-500":"tw-text-gray-500";return(u,l)=>{const V=n("Head"),v=n("q-icon"),C=n("q-input"),D=n("q-td"),E=n("q-table"),f=n("q-card-section"),A=n("q-btn"),N=n("q-card-actions"),S=n("q-card"),B=n("q-dialog");return c(),r(z,null,[o(V,{title:"Meus Testes"}),o(F,null,{default:s(()=>[t("div",H,[t("div",$,[t("div",j,[o(E,{flat:"",bordered:"",rows:q.value,columns:h,filter:m.value,"row-key":"id",selected:p.value,"onUpdate:selected":l[1]||(l[1]=e=>p.value=e),"no-data-label":"Sem dados cadastrados","no-results-label":"A sua pesquisa não retornou dados"},{"top-right":s(()=>[o(C,{borderless:"",dense:"",modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=e=>m.value=e),placeholder:"Pesquisar",class:"tw-border tw-border-gray-400 tw-rounded-md tw-px-2"},{append:s(()=>[o(v,{name:"search"})]),_:1},8,["modelValue"])]),"body-cell":s(e=>[o(D,{props:e},{default:s(()=>[e.col.name==="actions"?(c(),r("div",I,[t("button",{onClick:g=>y(e.row),class:"tw-text-black-800 hover:tw-text-cyan-500 tw-text-sm tw-bg-white hover:tw-bg-slate-100 tw-border tw-border-slate-200 tw-font-medium tw-rounded-r-lg tw-px-4 tw-py-2 tw-inline-flex tw-space-x-1 tw-items-center"}," Iniciar Teste ",8,J)])):e.col.name==="nome"?(c(),r("div",P,[t("span",null,a(e.row.nome),1)])):e.col.name==="status"?(c(),r("div",R,[t("span",{class:U(k(e.row.status))},a(e.value),3)])):(c(),r("div",G,a(e.value),1))]),_:2},1032,["props"])]),"no-data":s(({icon:e,message:g,filter:X})=>[t("div",K,[t("span",null,a(g),1),o(v,{size:"2em",name:"sentiment_dissatisfied"})])]),_:1},8,["rows","filter","selected"])])])]),o(B,{modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=e=>i.value=e),"content-class":"dialog-content"},{default:s(()=>[o(S,{class:"tw-font-sans",style:{width:"700px","max-width":"80vw"}},{default:s(()=>[o(f,null,{default:s(()=>[L]),_:1}),o(f,null,{default:s(()=>[t("div",null,[O,w(" "+a(_.value.nome),1)]),t("div",null,[Q,w(" "+a(_.value.descricao),1)]),t("div",null,[W,w(" "+a(_.value.duracao),1)])]),_:1}),o(N,{align:"right"},{default:s(()=>[o(A,{label:"Fechar",color:"blue",onClick:T})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)}}};export{se 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.