import{a as y}from"./Z4eZ-m2s.js";import{O as $,j as h,d as C,w as E,m as n,o as r,b as t,c as s,t as o,F,g as P,e as m,E as d}from"./Bgmy51Qv.js";import{u as B}from"./CYl1ofbh.js";import"./7pZkuj9N.js";import"./BHvLfWtM.js";import"./hSbGpNHU.js";import"./DuhDFJjj.js";import"./ByXs6QR-.js";import"./D_7E8SMU.js";const N={class:"lite-bold"},S=["onClick"],j=["onClick"],q={__name:"index",setup(w){const{t:a}=$(),c=h({title:{title:a("index.title")},subject:{title:a("util.sub")},created_at:{title:a("category.date")}}),{listPageRef:u,editNode:p,deleteNode:b}=B();return(e,l)=>{const _=y;return r(),C(_,{ref_key:"listPageRef",ref:u,"list-api":"getSubscriptionEmailFormats","delete-api":"deleteSubscriptionEmailFormat","route-name":"subscription-email-formats",name:e.$t("dataPage.sef"),gate:"subscription_email_format","empty-store-variable":"allSubscriptionEmailFormats","order-options":n(c)},{table:E(({list:f})=>[t("tr",N,[t("th",null,o(e.$t("index.title")),1),t("th",null,o(e.$t("util.sub")),1),t("th",null,o(e.$t("category.created")),1),l[0]||(l[0]=t("th",null,null,-1))]),(r(!0),s(F,null,P(f,(i,g)=>(r(),s("tr",{key:g},[t("td",null,o(i.title),1),t("td",null,o(i.subject),1),t("td",null,o(i.created),1),t("td",null,[e.$can("subscription_email_format","edit")?(r(),s("button",{key:0,onClick:d(k=>n(p)(i),["prevent"]),class:"lite-btn"},o(e.$t("category.edit")),9,S)):m("",!0),e.$can("subscription_email_format","delete")?(r(),s("button",{key:1,onClick:d(k=>n(b)(i),["prevent"]),class:"delete-btn lite-btn"},o(e.$t("category.delete")),9,j)):m("",!0)])]))),128))]),_:1},8,["name","order-options"])}}};export{q as default};
