PageSourceSearch

https://jewishvirtuallibrary.org/_nuxt/ClFRoBZ2.js

js jewishvirtuallibrary.org collected 2026-09-24 08:29:58 UTC 3,030 bytes, 1 lines download raw bytes

1import{_ as P}from"./BC0bmsmX.js";import{_ as q}from"./CJlzNQ1F.js";import{_ as M}from"./D4H9sm2l.js";import{_ as U}from"./BKkv2N_l.js";import{_ as H}from"./v6eW2DxJ.js";import{ax as L,d as v,r as y,o as Y,c as E,a as S,w as s,b as t,i,t as j,g,h as p,s as z,x as F,f as G,q as J,n as K}from"./t8OAlijK.js";import{u as O}from"./BDTG_x6x.js";import{u as Q}from"./CVjUcXNT.js";import{u as W}from"./Co6mxnGB.js";import"./DSNWTBrn.js";import"./BbAC7yzK.js";import"./BK-tONi_.js";const X=[{name:"ID",sortable:!0,sortBy:"id",field:n=>n.id},{name:"Headline",sortable:!0,sortBy:"headline",field:n=>n.headline},{name:"Year",sortBy:"year",sortable:!0,field:n=>n.year},{name:"Created At",sortBy:"created_at",sortable:!0,field:n=>n.created_at},{name:"Actions",sortable:!1,field:()=>""}],Z={class:"mb-4"},ee={class:"mt-4"},te={class:"col s12 m6 l4 mb-2"},ne={class:"col s12 m6 l4"},ae={class:"left",style:{"margin-right":"1%"}},se={scope:"col",class:"align-middle px-4"},be={__name:"index",setup(n){const{isAdmin:k}=W(),l=L().params.timeline_id,m=O(),b=Q(),B=v(()=>m.entries),w=v(()=>m.pagination),h=v(()=>b.timeline),o=y(10),f=y(!1),r=y(""),d=async(a={})=>{await m.fetchTimelineEntries(l,a)},$=async()=>{await b.fetchTimeline(l)},x=async a=>{const e=r.value.trim()!=="",u={...a};e&&(u.search=r.value),await d(u)},A=async a=>{confirm("Are you sure you want to delete this entry?")&&(await m.deleteTimelineEntry(l,a),await d({page:w.value.current_page,per_page:o.value}))},N=a=>{K(`/admin/timelines/${l}/timeline-entries/${a}`)},R=async()=>{f.value=!0,r.value="",o.value=10,await d({page:1,per_page:o.value}),f.value=!1};return Y(async()=>{await $(),await d({per_page:o.value})}),(a,e)=>{const u=P,_=q,V=M,D=U,I=H;return S(),E(I,{class:"rounded-3"},{default:s(()=>{var T,C;return[t("title",null,"Timeline Entries for "+j(((T=h.value)==null?void 0:T.title)||""),1),i(u,{title:`Entries for ${((C=h.value)==null?void 0:C.title)||""}`},null,8,["title"]),t("div",Z,[i(V,{to:`/admin/timelines/${g(l)}/timeline-entries/create`},{default:s(()=>[i(_,{class:"bg-new-blue"},{default:s(()=>e[2]||(e[2]=[p("Add Entry")])),_:1,__:[2]})]),_:1},8,["to"])]),t("div",ee,[t("div",te,[e[3]||(e[3]=t("label",{for:"search",class:"active"},"Search Title",-1)),z(t("input",{id:"search","onUpdate:modelValue":e[0]||(e[0]=c=>r.value=c),type:"text"},null,512),[[F,r.value]])])]),t("div",ne,[t("div",ae,[i(_,{class:"bg-new-green mb-4",onClick:x},{default:s(()=>e[4]||(e[4]=[p(" Search ")])),_:1,__:[4]})])]),t("div",null,[i(_,{class:"bg-black mb-4",onClick:R,disabled:f.value},{default:s(()=>e[5]||(e[5]=[p(" Clear ")])),_:1,__:[5]},8,["disabled"])]),i(D,{columns:g(X),rows:B.value,pagination:w.value,perPage:o.value,"onUpdate:perPage":e[1]||(e[1]=c=>o.value=c),onRequest:x,onRedirect:N},{"row-Actions":s(({rowData:c})=>[t("td",se,[g(k)?(S(),E(_,{key:0,class:"red",onClick:J(ie=>A(c.id),["stop"])},{default:s(()=>e[6]||(e[6]=[p(" Delete ")])),_:2,__:[6]},1032,["onClick"])):G("",!0)])]),_:1},8,["columns","rows","pagination","perPage"])]}),_:1})}}};export{be 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.