1import{_ as $}from"./index.e0bb0aca.js";import{_ as B}from"./social-media-share.d62e9928.js";import{u as F}from"./useExpandables.d45572e1.js";import{u as H}from"./useRouteLocale.1b3c57f1.js";import{f as L,v as N,a as R,x as I,w as P,h as x,u as e,b as Y,i as d,e as a,t as i,j as T,o as D}from"./entry.6e2f654c.js";import{_ as V}from"./_plugin-vue_export-helper.a1a6add7.js";import"./client-only.6e67a511.js";import"./useDevice.bced59f3.js";const j={key:0},z={class:"printable"},C={class:"title"},O={class:"article-body"},S={class:"info grid"},q={style:{width:"35%"}},G={class:"classified-publication-date"},J={style:{width:"35%"}},K={class:"classified-update-date"},Q=["innerHTML"],U={key:1},W={class:"title"},X={__name:"[id]",async setup(Z){var m,h,v,f,b,y;let l,r;F();const{getRoute:n}=H(),M=L(),{$moment:u}=N(),{locale:k,t:A}=R();let t=I(null);const{id:_}=M.params,{error:o,data:s}=([l,r]=P(()=>T("classifieds/"+_)),l=await l,r(),l);t.value={publicationDate:u((m=s.value)==null?void 0:m.publication_date).format("DD/MM/YYYY"),updatedAt:u((h=s.value)!=null&&h.updated_at?(v=s.value)==null?void 0:v.updated_at:(f=s.value)==null?void 0:f.publication_date).format("DD/MM/YYYY"),...s.value},x({title:o.value?"Error 404":(b=s==null?void 0:s.value)==null?void 0:b.title});let p;o.value||(p=[{label:A("pages.boards"),link:n("anuncios")+"/"},{label:t.value.board.translations.find(c=>c.locale==k.value).name,link:n("anuncios")+"/"+t.value.board_id}]),o.value,x({title:o.value?"Error 404":(y=t==null?void 0:t.value)==null?void 0:y.title});const g=()=>{window.print()};return(c,tt)=>{const E=$,w=B;return!e(o)&&e(t)?(D(),Y("div",j,[d(E,{path:e(t).title,folders:e(p)},null,8,["path","folders"]),a("div",z,[a("h1",C,i(e(t).title),1),a("div",O,[a("div",S,[a("div",q,[a("div",G," Fecha publicaci\xF3n: "+i(e(t).publicationDate),1)]),a("div",J,[a("div",K," \xDAltima actualizaci\xF3n: "+i(e(t).updatedAt),1)]),d(w,{style:{width:"30%"},path:e(n)("anuncio")+"/"+e(_),title:e(t).title,type:"Anuncio",onOnPrint:g},null,8,["path","title"])]),a("div",{innerHTML:e(t).body},null,8,Q)])]),d(w,{footer:!0,path:e(n)("anuncio")+"/"+e(_),title:e(t).title,type:"Anuncio"},null,8,["path","title"])])):(D(),Y("div",U,[a("h1",W,i(c.$t("errors.404.title")),1),a("p",null,i(c.$t("errors.404.text")),1)]))}}},_t=V(X,[["__scopeId","data-v-0945e908"]]);export{_t 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.