1import{_ as k}from"./AdminLayout-BqsvnMY8.js";import{P as v}from"./Primary-BcH7Jdez.js";import{n as w,p as B,c as I,o as m,a as l,u as n,m as E,w as u,d as s,f as C,b as N,e as j,F as T}from"./app-NQbLN-3Z.js";import{V as i,D as p}from"./dataTables.responsive-Bz5a09XM.js";import"./buttons.html5-DtiFHiav.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Padrao-sK87S89e.js";import"./CardSquare89_02-CVa7VxR7.js";import"./strings-BAGEavMC.js";import"./MessageError-Drx4cPe7.js";import"./Gif-CGorngwu.js";/* empty css */const V={class:"w-full py-6 mx-auto rounded-sm shadow-sm"},P={class:"flex items-center justify-between mb-4"},q={__name:"Trash",props:{status:{type:String},addresses:{type:Object}},setup(f){i.use(p),i.use(p);const x=w().props.auth.permissions??{},c=f;B("addresses",c.addresses??{});const b=(e,t,a)=>{let g=route("address.restore",e),_=route("address.permanent.delete",e),r='<div class="flex justify-center gap-2">',d='<a class="restore-btn" title="Ações" href="',o='<a class="remove-btn" title="Excluir" href="';return d+=g,o+=_,d+='">',o+='">',d+="Restaurar</a>",o+="Excluir</a>",r+=d,r+=o,r+="</div>",r},h=[{title:"Nome",dataIndex:"name",key:"name",data:"name",class:"text-center"},{title:"Cep",dataIndex:"zipcode",key:"zipcode",data:"zipcode",class:"text-center hidden md:table-cell"},{title:"Rua",dataIndex:"street",key:"street",data:"street",class:"text-center hidden md:table-cell"},{title:"Número",dataIndex:"number",key:"number",data:"number",class:"text-center hidden md:table-cell"},{title:"Bairro",dataIndex:"neighborhood",key:"neighborhood",data:"neighborhood",class:"text-center hidden md:table-cell"},{title:"Cidade",dataIndex:"city",key:"city",data:"city",class:"text-center hidden md:table-cell"},{title:"Estado",dataIndex:"uf",key:"uf",data:"uf",class:"text-center hidden md:table-cell"},{title:"Ações",class:"flex gap-2 justify-center",data:"id",class:"text-center",render:function(e,t,a){return b(e)}}],y={data:c.addresses,columns:h,dom:'<"dtsp-dataTable"PBft<lp>>',searchPanes:{layout:"columns-1",initCollapsed:!0},language:{url:"/libs/datatable/datatable-portuguese.json",sLengthMenu:"_MENU_",info:"",bInfo:!1,sInfoEmpty:"",searching:!0,ordering:!0},pageLength:10,lengthMenu:[[5,10,30,50,100,-1],[5,10,30,50,100,"Todos"]],buttons:["excelHtml5","pdfHtml5","colvis"],columnDefs:[{defaultContent:"-",targets:"_all"}]};return(e,t)=>(m(),I(T,null,[l(n(E),{title:"Endereço"}),l(k,null,{default:u(()=>{var a;return[s("div",V,[s("div",P,[t[1]||(t[1]=s("div",null,[s("h2",{class:"text-2xl font-semibold leading-tight text-gray-200"},"Endereços Removidos")],-1)),s("div",null,[(a=n(x))!=null&&a.addresses_list?(m(),C(v,{key:0,href:e.route("address.index")},{default:u(()=>t[0]||(t[0]=[j(" Lista Completa ")])),_:1},8,["href"])):N("",!0)])]),s("div",null,[l(n(i),{class:"display datatable text-white",width:"100%",options:y})])])]}),_:1})],64))}};export{q 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.