import{s as h,h as d,c as e,a as r,b as t,t as a,F as c,r as _,g as b,o as s,e as f,u as g,j as y}from"./app-13978987.js";import{_ as v}from"./AdminLayout-bd13ff9d.js";import{_ as w}from"./PageHeader-8c638686.js";import"./dropdown-45d66330.js";const x={class:"container flex-grow p-4 sm:p-6"},k={class:"space-y-6"},C={class:"table-responsive table-hover whitespace-nowrap rounded-primary"},j={class:"table"},I={colspan:"1"},B={class:"text-right"},E={class:"w-32 text-sm font-semibold capitalize text-white"},L=["src"],N={key:1},O={class:"flex justify-end"},S=b({layout:v}),D=Object.assign(S,{__name:"Index",props:["buttons","posts"],setup(i){const{textExcerpt:u}=h();return(l,V)=>{const m=d("Icon"),p=d("Link");return s(),e("main",x,[r(w,{title:l.trans("SEO Settings"),buttons:i.buttons},null,8,["title","buttons"]),t("div",k,[t("div",C,[t("table",j,[t("thead",null,[t("tr",null,[t("th",null,a(l.trans("Page")),1),t("th",I,a(l.trans("Meta Information")),1),t("th",null,[t("p",B,a(l.trans("Action")),1)])])]),t("tbody",null,[(s(!0),e(c,null,_(i.posts,n=>(s(),e("tr",{key:n},[t("td",null,a(n.key),1),t("td",null,[(s(!0),e(c,null,_(Object.keys(n.content),o=>(s(),e("div",{class:"mb-2 flex items-center gap-2",key:o},[t("p",E,a(o)+":",1),o=="preview"?(s(),e(c,{key:0},[n.content[o]?(s(),e("img",{key:0,class:"w-16",src:n.content[o]},null,8,L)):f("",!0)],64)):(s(),e("span",N,a(g(u)(n.content[o],120)),1))]))),128))]),t("td",null,[t("div",O,[r(p,{href:l.route("admin.seo.edit",n.id),class:"btn btn-primary btn-sm"},{default:y(()=>[r(m,{icon:"bx:pencil"})]),_:2},1032,["href"])])])]))),128))])])])])])}}});export{D as default};
