1 line
No EOL
1.2 KiB
JavaScript
1 line
No EOL
1.2 KiB
JavaScript
import{Fragment as e,createBlock as t,createCommentVNode as n,createElementBlock as r,createElementVNode as i,createTextVNode as a,createVNode as o,openBlock as s,renderList as c,toDisplayString as l,unref as u,withCtx as d}from"vue";import{Link as f}from"@inertiajs/vue3";import{Panel as p}from"@inhaus/ui";var m={key:0,class:`ih:-mx-5 ih:divide-y ih:border-t`},h=[`src`],g={class:`ih:shrink-0 ih:text-xs ih:text-muted-foreground`},_={key:1,class:`ih:text-sm ih:text-muted-foreground`},v={__name:`EditorialListings`,props:{pending:{type:Array,required:!0}},setup(v){return(y,b)=>(s(),t(u(p),{title:`Kleinanzeigen – Freigabe`,"action-label":`Zur Freigabe`,"action-href":`/kleinanzeigen/moderation`},{default:d(()=>[v.pending.length?(s(),r(`ul`,m,[(s(!0),r(e,null,c(v.pending,e=>(s(),r(`li`,{key:e.id,class:`ih:flex ih:items-center ih:gap-3 ih:px-5 ih:py-2.5`},[e.thumb_url?(s(),r(`img`,{key:0,src:e.thumb_url,alt:``,class:`ih:size-10 ih:rounded ih:object-cover`},null,8,h)):n(``,!0),o(u(f),{href:e.url,class:`ih:min-w-0 ih:flex-1 ih:truncate ih:text-sm ih:font-medium ih:hover:underline`},{default:d(()=>[a(l(e.title),1)]),_:2},1032,[`href`]),i(`span`,g,l(e.type_label),1)]))),128))])):(s(),r(`p`,_,`Keine Anzeigen warten auf Freigabe.`))]),_:1}))}};export{v as default}; |