PageSourceSearch

https://comunaighiu.ro/_nuxt/C23thWz-.js

js comunaighiu.ro collected 2026-09-25 12:31:04 UTC 3,190 bytes, 1 lines download raw bytes

1import{a as k,m as f,f as c}from"./CqawAVUb.js";import{d as S}from"./DdMfNbGx.js";import w from"./D2A-cuOJ.js";import D from"./Cq6d0fYR.js";import{bf as n,b2 as z,O as V,$ as e,bW as a,G as i,br as o,Y as r}from"./yzds40HC.js";import"./BgqE2USM.js";import"./C8Dppsyt.js";import"./CbO2Rjsj.js";import"./DhlRdtTC.js";import"./Dz0mkqCC.js";import"./DkpuU7u1.js";import"./DtS_aP2E.js";const $={name:"Index",components:{ResetFiltersButton:D,TextFieldFilter:w},mixins:[S],data(){return{headers:[{title:this.$t("fields.last_name"),align:"start",key:"last_name"},{title:this.$t("fields.first_name"),key:"first_name"},{title:this.$t("fields.email"),key:"email"},{title:"",key:"data-table-expand"}]}},async mounted(){await this.fetchData()},head(){return{title:"Mesaje"}},computed:{...c("messages",["messages"]),...c("loader",["loading"]),...c("query",["queryParams"]),currentScope(){return"messages"}},methods:{...f("resources",["getData"]),...f("query",["setVuetifyPagination"]),async fetchData(){await this.getData(this.currentScope)},handleOptionsUpdate(t){this.setVuetifyPagination({scope:this.currentScope,pagination:t}),this.getData(this.currentScope)}}},q={class:"d-flex flex-column flex-grow-1"},B={class:"text-h5 text-md-h4"},P=["colspan"],U={class:"filter-row"},F={class:"text-end"};function N(t,m,O,T,u,l){const h=n("v-divider"),g=n("v-spacer"),v=n("v-card-title"),p=n("v-card-text"),_=n("v-card"),d=n("text-field-filter"),b=n("reset-filters-button"),y=n("v-data-table-server");return z(),V("div",q,[e(_,{elevation:"5"},{default:a(()=>[e(v,null,{default:a(()=>[i("div",B,o(t.$t("menu.messages")),1),e(h,{vertical:"",class:"mx-2 d-none d-md-inline"}),e(g)]),_:1}),e(p,null,{default:a(()=>[e(y,{headers:u.headers,"items-per-page-options":[10,15,30,60],loading:t.loading,"items-length":t.queryParams[l.currentScope]?.pagination?.total||0,items:t.messages,"expand-on-click":!1,"show-expand":"",class:"flex-grow-1 v2-style-table",options:t.pagination,"onUpdate:options":[m[0]||(m[0]=s=>t.pagination=s),l.handleOptionsUpdate]},{"expanded-row":a(({item:s,columns:x})=>[i("tr",null,[i("td",{colspan:x.length},[e(_,{dark:""},{default:a(()=>[e(p,{class:"text-white"},{default:a(()=>[r(o(s.message),1)]),_:2},1024)]),_:2},1024)],8,P)])]),"body.prepend":a(()=>[i("tr",U,[i("td",null,[e(d,{label:t.$t("fields.citizen_name"),scope:l.currentScope,"scope-key":"last_name",class:"filter-field","hide-details":""},null,8,["label","scope"])]),i("td",null,[e(d,{label:t.$t("fields.citizen_first_name"),scope:l.currentScope,"scope-key":"first_name",class:"filter-field","hide-details":""},null,8,["label","scope"])]),i("td",null,[e(d,{label:t.$t("fields.email"),scope:l.currentScope,"scope-key":"email",class:"filter-field","hide-details":""},null,8,["label","scope"])]),i("td",F,[e(b,{scope:l.currentScope},null,8,["scope"])])])]),"item.first_name":a(({item:s})=>[r(o(s.citizen?.first_name||""),1)]),"item.last_name":a(({item:s})=>[r(o(s.citizen?.last_name||""),1)]),"item.email":a(({item:s})=>[r(o(s.citizen?.email||""),1)]),_:1},8,["headers","loading","items-length","items","options","onUpdate:options"])]),_:1})]),_:1})])}const K=k($,[["render",N],["__scopeId","data-v-6e4426d0"]]);export{K 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.