PageSourceSearch

https://vdoma.us/_nuxt/BMMAa7Ul.js

js vdoma.us collected 2026-10-06 12:50:26 UTC 4,845 bytes, 1 lines download raw bytes

1import U from"./DEIW5kST.js";import{d as D}from"./DriSxad0.js";import j from"./CiGzBY0A.js";import q from"./DtqQPRBL.js";import z from"./BSgdc79W.js";import O from"./BqUQnyjE.js";import L from"./BOHEeBgn.js";import K from"./CbRJe5Ty.js";import G from"./DiR_9q0S.js";import H from"./xvHkWpOM.js";import{k as J,V as Q,x as c,a8 as W,f as X,c as y,a as m,b as o,n as _,w as s,q as a,D as Y,F as T,y as Z,z as ee,d as C,t as $,K as g,r as te,o as d}from"./BrkecvL-.js";import{u as oe}from"./CjUXpmsH.js";import{_ as ae}from"./DlAUqK2U.js";import"./DfbQtUfl.js";import"./xSSxg6Px.js";import"./BKbaG_33.js";import"./DUtg4XGi.js";import"./Ddlc_1IA.js";import"./fFiXWMDk.js";import"./CJligEAU.js";import"./CtaX54ek.js";import"./fEnMOZhx.js";import"./D7OjAjXY.js";import"./q-TicHYr.js";import"./E5hnjbWG.js";import"./BlrzcdpB.js";import"./BvJU0dNw.js";import"./D9ZSq6k7.js";import"./DjyQeiBl.js";import"./DYhftwlw.js";import"./CS2lKLWG.js";import"./Dvm3oyzx.js";import"./CcVV4h_K.js";import"./xIGMQGHE.js";import"./DhV-vYrl.js";import"./CASPRpuT.js";import"./DPwegIQ_.js";import"./CVC6L7Dw.js";import"./DYdXoKCR.js";import"./539fZg9N.js";import"./Be9FUOsi.js";import"./VaZy7O7u.js";const re={class:"buttons-container"},se={class:"buttons-container"},le={key:1},ie={style:{display:"flex","flex-direction":"row","justify-content":"flex-start","align-items":"center","flex-wrap":"wrap",gap:"3px"}},ne={style:{display:"flex","flex-direction":"row","justify-content":"flex-start","align-items":"center","flex-wrap":"wrap",gap:"3px"}},me=J({__name:"index",setup(de){const l=oe(),S=Q(),p=c(!1),u=c(!1),v=c([]),i=c([]),A=()=>{g("/dashboard/reklama/new-page")},N=()=>{S.require({message:"Are you sure you want to delete this item(s)?",header:"Confirm Deletion",accept:async()=>{if(!i.value.length){l.showError("No item(s) selected for deletion.");return}p.value=!0;try{(await $fetch("/api/reklama/deleteReklama",{method:"POST",body:{ids:i.value.map(n=>n.id)}})).success?(l.showSuccess("Selected item(s) deleted successfully"),w(),i.value=[]):l.showError("Failed to delete item(s)")}catch(e){l.showError(e)}finally{p.value=!1}},reject:()=>{l.showInfo("Deletion cancelled.")}})},V=e=>{g(`/dashboard/reklama/edit/${e}`)},F=e=>{g(`${te().public.siteUrl}reklama/${e}`,{external:!0})},w=async()=>{u.value=!0;try{const e=await $fetch("/api/reklama/allReklamas");e.success?v.value=e.data:l.showError(e.error)}catch(e){l.showError(e)}finally{u.value=!1}},f=c({global:{value:null,matchMode:W.CONTAINS}});return X(async()=>{w()}),(e,n)=>{const b=H,B=G,E=K,P=L,r=O,k=z,x=U,I=q,M=j;return d(),y(T,null,[m("div",null,[o(E,{fluid:!0,style:{width:"100%"}},{start:s(()=>[m("div",re,[o(b,{label:"Add new page",onClick:A,severity:"contrast",outlined:""}),a(i).length?(d(),_(b,{key:0,onClick:N,label:"Delete",severity:"danger",outlined:"",disabled:a(p),loading:a(p)},null,8,["disabled","loading"])):Z("",!0)])]),end:s(()=>[m("div",se,[m("div",null,[o(B,{modelValue:a(f).global.value,"onUpdate:modelValue":n[0]||(n[0]=t=>a(f).global.value=t),placeholder:"Title Search"},null,8,["modelValue"])])])]),_:1}),a(u)?(d(),_(P,{key:0,mode:"indeterminate",style:{height:"6px",width:"100%","margin-top":"24px"}})):(d(),y("div",le,[o(I,{style:{width:"100%"},value:a(v),selection:a(i),"onUpdate:selection":n[1]||(n[1]=t=>Y(i)?i.value=t:null),removableSort:"",paginator:"",rows:10,rowsPerPageOptions:[10,20,50],globalFilterFields:["title"],filters:a(f)},{default:s(()=>[o(r,{selectionMode:"multiple",headerStyle:"width: 3rem"}),o(r,{field:"title",sortable:"",header:"Title",style:{width:"30%"}}),o(r,{field:"status",sortable:"",header:"Status"},{body:s(({data:t})=>[m("div",ie,[o(k,{value:t.status,severity:`${t.status==="draft"?"warn":t.status==="publish"?"success":"contrast"}`,style:{"text-wrap":"nowrap"}},null,8,["value","severity"])])]),_:1}),o(r,{field:"tags",sortable:"",header:"Tags"},{body:s(({data:t})=>[m("div",ne,[(d(!0),y(T,null,ee(t.tags,(h,R)=>(d(),_(k,{key:R,value:h,severity:"secondary",style:{"text-wrap":"nowrap"}},null,8,["value"]))),128))])]),_:1}),o(r,{field:"author",sortable:"",header:"Author"}),o(r,{field:"createdAt",sortable:"",header:"Created At"},{body:s(({data:t})=>[C($(("formatDateTime"in e?e.formatDateTime:a(D))(t.createdAt)),1)]),_:1}),o(r,{field:"updatedAt",sortable:"",header:"Updated At"},{body:s(({data:t})=>[C($(("formatDateTime"in e?e.formatDateTime:a(D))(t.updatedAt)),1)]),_:1}),o(r,null,{body:s(({data:t})=>[o(x,{name:"material-symbols-light:edit-square-outline",size:"24",onClick:h=>V(t.id),style:{cursor:"pointer"}},null,8,["onClick"])]),_:1}),o(r,null,{body:s(({data:t})=>[o(x,{name:"material-symbols-light:multimodal-hand-eye-outline",size:"24",onClick:h=>F(t.slug),style:{cursor:"pointer"}},null,8,["onClick"])]),_:1})]),_:1},8,["value","selection","filters"])]))]),o(M)],64)}}}),Ze=ae(me,[["__scopeId","data-v-9cc949da"]]);export{Ze 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.