PageSourceSearch

https://www.dlsl.edu.ph/build/assets/Index-c54b0459.js

js dlsl.edu.ph collected 2026-10-02 19:16:39 UTC 3,429 bytes, 1 lines download raw bytes

1import{d as H,c as y,r,D as J,a7 as h,i as e,o as u,a5 as w,w as i,j as a,b as c,a as d,F as C,e as K,t as b,f}from"./default.css_vue_type_style_index_0_src_true_lang-c1d9a380.js";import{t as Q}from"./throttle-b6152df9.js";import{p as W}from"./pickBy-6af1ab89.js";import"./debounce-ce60a578.js";const X={key:0},Y={class:"first:pl-6 last:pr-6 px-4 whitespace-nowrap text-gray-900 w-1"},Z={class:"first:pl-6 last:pr-6 px-4 whitespace-nowrap text-gray-900 w-1"},ee={class:"first:pl-6 last:pr-6 px-4 whitespace-nowrap text-gray-900 w-1"},te={class:"first:pl-6 last:pr-6 px-4 whitespace-nowrap w-1"},le=H({__name:"Index",props:{items:{type:Object,default:()=>{},require:!0},activeCount:{type:Number,default:0},archivedCount:{type:Number,default:0},selectedTab:{type:String,default:null},query:{type:String,default:null},filterDate:{type:String,default:null}},setup(p){const n=p,m=y(()=>n.items),k=r(n.query),v=r(n.selectedTab??"active");r(n.filterDate);const _=r(!1),g=r(!1),s=r(null),x={title:"Page Group",icon:"/icons/nav/ic-nav-stylesheet.svg"},T=[{title:"Modular Pages"},{title:"Index",route:route("admin.modules.page-groups.index")}],D=[{name:"Active",value:"active",count:n.activeCount},{name:"Archived",value:"archived",count:n.archivedCount}],S=[{text:"ID"},{text:"Title"},{text:"Date Created"}],A=y(()=>s.value?s.value.name:""),M=o=>{s.value=o,_.value=!0},P=o=>{s.value=o,g.value=!0},B=()=>{h.delete(route("admin.modules.page-groups.delete",s.value.id),{preserveState:!1})},N=()=>{h.post(route("admin.modules.page-groups.restore"),{id:s.value.id},{preserveState:!1})};return J(k,Q(o=>{h.get(route("admin.modules.page-groups.index"),W({query:o,tab:n.selectedTab}),{preserveState:!0})}
1,1e3)),(o,l)=>{const R=e("create-button"),G=e("header-section"),I=e("Tabs"),L=e("edit-button"),q=e("delete-button"),$=e("restore-button"),V=e("DataTable"),j=e("pagination"),F=e("page-template"),O=e("DeleteModal"),E=e("RestoreModal"),U=e("admin-layout");return u(),w(U,{title:"Page Groups"},{default:i(()=>[a(G,{header:x,breadcrumbs:T},{default:i(()=>[a(R,{routeLink:o.route("admin.modules.page-groups.create")},null,8,["routeLink"])]),_:1}),a(I,{tabs:D,"active-tab":v.value,"onUpdate:tab":l[0]||(l[0]=t=>v.value=t),"tab-route":o.route("admin.modules.page-groups.index")},null,8,["active-tab","tab-route"]),a(F,null,{default:i(()=>[c("div",null,[v.value!=="activity_logs"?(u(),d("div",X,[a(V,{headers:S,"no-action":!1,count:m.value.data.length},{body:i(()=>[(u(!0),d(C,null,K(m.value.data,t=>(u(),d("tr",{key:t,class:"h-20"},[c("td",Y,b(t.id),1),c("td",Z,b(t.title),1),c("td",ee,b(new Date(t.formatted_created_at)),1),c("td",te,[p.selectedTab!=="archived"?(u(),d(C,{key:0},[a(L,{class:"mr-3",routeLink:o.route("admin.modules.page-groups.edit",t.id)},null,8,["routeLink"]),a(q,{onClick:z=>M(t)},null,8,["onClick"])],64)):f("",!0),p.selectedTab==="archived"?(u(),w($,{key:1,onClick:z=>P(t)},null,8,["onClick"])):f("",!0)])]))),128))]),_:1},8,["count"])])):f("",!0),a(j,{items:m.value},null,8,["items"])])]),_:1}),a(O,{title:"Archive Page Group",show:_.value,"item-name":A.value,onConfirm:B,content:"Are you sure you want to delete this item? By doing this, all Pages and Subpages related to this Page Group will be deleted as well.",onCancel:l[1]||(l[1]=t=>_.value=!1)},null,8,["show","item-name"]),a(E,{title:"Restore Page Group",show:g.value,onConfirm:N,onCancel:l[2]||(l[2]=t=>g.value=!1)},null,8,["show"])]),_:1})}}});
1export{le 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.