1import{d as Q,r as u,m as S,p as j,Y as q,$ as I,g as t,o as s,j as v,w as i,a as o,h as n,b as h,c as d,F as f,i as O,t as b}from"./debounce-066c2ac9.js";import{t as P}from"./throttle-ba353df1.js";const Y={class:"flex items-center space-x-2"},$={class:"px-7 py-2"},z={class:"space-y-4"},G={class:"max-h-[calc(100vh-193px)] overflow-auto"},H={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500 w-10/12"},J={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},K={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},X=Q({__name:"Index",props:["items","allCount","selectedTab","searchQuery","filterDate"],setup(x){const l=x,k=u(route("admin.contents.updates.index")),y=u(route("admin.contents.updates.create")),p=S(()=>l.items),m=u(l.searchQuery),r=u(l.selectedTab),_=u(l.filterDate),g=[{name:"All",value:null,count:l.allCount},{name:"Archived",value:"",count:l.allCount},{name:"Activity Logs",value:"activity_logs",count:25}],D=[{text:"Updates"},{text:"Date Created"}],T=()=>{};return j(m,P(c=>{q.get(route("admin.contents.updates.index"),I({query:c,tab:r.value}),{preserveState:!0})},1e3)),(c,a)=>{const w=t("export-button"),B=t("create-button"),C=t("Tabs"),U=t("date-picker"),N=t("Filter"),F=t("EditButton"),L=t("DeleteButton"),V=t("RestoreButton"),R=t("DataTable"),A=t("pagination"),E=t("admin-layout");return s(),v(E,{title:"Updates"},{default:i(()=>[o("div",null,[n(C,{tabs:g,"button-items":!0,"active-tab":r.value,"onUpdate:tab":a[0]||(a[0]=e=>r.value=e),"tab-route":k.value},{buttons:i(()=>[o("div",Y,[r.value!=="activity_logs"?(s(),v(w,{key:0,routeLink:y.value},null,8,["routeLink"])):h("",!0),n(B,{routeLink:y.value},null,8,["routeLink"])])]),_:1},8,["active-tab","tab-route"])]),r.value!=="activity_logs"?(s(),d(f,{key:0},[o("div",$,[n(N,{search:m.value,"onUpdate:searchText":a[3]||(a[3]=e=>m.value=e),"onUpdate:filters":T,"custom-filters":r.value!=="activity_logs"},{fields:i(()=>[o("div",z,[n(U,{id:"filterDate",label:"Date Created",placeholder:"Filter Date Created",modelValue:_.value,"onUpdate:modelValue":[a[1]||(a[1]=e=>_.value=e),a[2]||(a[2]=e=>_.value=e)],enableTimePicker:!1},null,8,["modelValue"])])]),_:1},8,["search","custom-filters"])]),o("div",G,[n(R,{headers:D,"no-action":!1,checkbox:!1,count:p.value.data.length},{body:i(()=>[(s(!0),d(f,null,O(p.value.data,e=>(s(),d("tr",{key:e.name},[o("td",H,b(e.name),1),o("td",J,b(e.created_at_formatted),1),o("td",K,[e.deleted_at?(s(),v(V,{key:1,confirmText:"Restore Update?",itemName:e.name,href:c.route("admin.contents.updates.restore",e.id)},null,8,["itemName","href"])):(s(),d(f,{key:0},[n(F,{href:c.route("admin.contents.updates.edit",e.id)},null,8,["href"]),n(L,{confirmText:"Archive Update?",itemName:e.name,href:c.route("admin.contents.updates.destroy",e.id)},null,8,["itemName","href"])],64))])]))),128))]),_:1},8,["count"]),n(A,{items:p.value},null,8,["items"])])],64)):h("",!0)]),_:1})}}});
1export{X 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.