1import{i as A,c as i,w as v,o as l,a as s,g,j as k,k as o}from"./app-BILMRQ8k.js";import{A as x}from"./AdminLayout-q6rhfm04.js";import{_ as y}from"./BaseDataTable-CQ02NWpW.js";import{_ as h}from"./Pagination-CrgLH-6J.js";import{u as b}from"./usePreserveQueryParams-Q-foJI03.js";/* empty css */import"./useToast-aB3Lru0D.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./NotificationDropdown-CF5anDhQ.js";import"./ToastContainer-Do8oHR8l.js";import"./useFcmNotifications-v3SHtSf8.js";const S={class:"py-6"},w={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},I={__name:"Index",props:{data:Object,columns:Array,actions:{type:Array,default:()=>[]},bulkActions:{type:Array,default:()=>[]},headerActions:{type:Array,default:()=>[]},filters:{type:Array,default:()=>[]},resourceSlug:{type:String,default:null}},setup(t){const c=A(!1),{getCurrentParams:u}=b(),d=({action:a,row:e})=>{a==="view"&&o.visit(route("vue.application-notes.show",e.id)),a==="edit"&&o.visit(route("vue.application-notes.edit",e.id))},m=({action:a,rows:e})=>{o.post(route("vue.application-notes.bulk-action"),{action:a,ids:e.map(n=>n.id)})},f=({column:a,direction:e})=>{const r={...u(),sort_column:a,sort_direction:e};o.get(route("vue.application-notes.index"),r,{preserveState:!0,preserveScroll:!0,replace:!0})},p=a=>{const e=Object.fromEntries(Object.entries(a).filter(([n,r])=>n==="presets"?!0:r!==null&&r!==""&&r!==!1));o.get(route("vue.application-notes.index"),e,{preserveState:!0,preserveScroll:!0,replace:!0})};return(a,e)=>(l(),i(x,null,{default:v(()=>[s("div",S,[s("div",w,[e[0]||(e[0]=s("div",{class:"mb-6"},[s("h1",{class:"text-2xl font-semibold text-gray-900 dark:text-white"},"Application Notes")],-1)),g(y,{data:t.data.data,columns:t.columns,actions:t.actions,"bulk-actions":t.bulkActions,"header-actions":t.headerActions,filters:t.filters,"resource-slug":t.resourceSlug,loading:c.value,paginated:!1,"server-side":!0,onAction:d,onBulkAction:m,onHeaderAction:a.handleHeaderAction,onSort:f,onFilter:p},null,8,["data","columns","actions","bulk-actions","header-actions","filters","resource-slug","loading","onHeaderAction"]),t.data.links?(l(),i(h,{key:0,links:{prev:t.data.prev_page_url,next:t.data.next_page_url},meta:{from:t.data.from,to:t.data.to,total:t.data.total,links:t.data.links}},null,8,["links","meta"])):k("",!0)])])]),_:1}))}};export{I 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.