1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./S5PbEj1a.js","./B5zyh8Ym.js","./BGOF6Vuk.js","./0i3RuH_s.js","./Cj3xnhb7.js","./zmxHmLOt.js","./Bhy4boTv.js","./Bxvj9Qdk.js"])))=>i.map(i=>d[i]); 2import{j as X,k as be,_ as Y,L as xe,o as c,c as g,a as l,n as m,t as y,i as S,D as Ae,p as ke,E as we,b as I,w as F,q as Z,d as L,F as z,r as B,g as ee,ah as te,T as V,h as _,f as U,s as Pe}from"./BGOF6Vuk.js";import{h as v}from"./B-YVwB4U.js";import{s as De}from"./DciLHD26.js";import{_ as Ye}from"./DlAUqK2U.js";const Se=[{category:"",time:[{range_from_time:"08:00 AM",range_to_time:"08:20 AM",_12_hour_format_from:"08:00 AM",_12_hour_format_to:"08:20 AM"},{range_from_time:"08:20 AM",range_to_time:"08:40 AM",_12_hour_format_from:"08:20 AM",_12_hour_format_to:"08:40 AM"},{range_from_time:"08:40 AM",range_to_time:"09:00 AM",_12_hour_format_from:"08:40 AM",_12_hour_format_to:"09:00 AM"},{range_from_time:"09:00 AM",range_to_time:"09:20 AM",_12_hour_format_from:"09:00 AM",_12_hour_format_to:"09:20 AM"},{range_from_time:"09:20 AM",range_to_time:"09:40 AM",_12_hour_format_from:"09:20 AM",_12_hour_format_to:"09:40 AM"},{range_from_time:"09:40 AM",range_to_time:"10:00 AM",_12_hour_format_from:"09:40 AM",_12_hour_format_to:"10:00 AM"},{range_from_time:"10:00 AM",range_to_time:"10:20 AM",_12_hour_format_from:"10:00 AM",_12_hour_format_to:"10:20 AM"},{range_from_time:"10:20 AM",range_to_time:"10:40 AM",_12_hour_format_from:"10:20 AM",_12_hour_format_to:"10:40 AM"},{range_from_time:"10:40 AM",range_to_time:"11:00 AM",_12_hour_format_from:"10:40 AM",_12_hour_format_to:"11:00 AM"},{range_from_time:"11:00 AM",range_to_time:"11:20 AM",_12_hour_format_from:"11:00 AM",_12_hour_format_to:"11:20 AM"},{range_from_time:"11:20 AM",range_to_time:"11:40 AM",_12_hour_format_from:"11:20 AM",_12_hour_format_to:"11:40 AM"},{range_from_time:"11:40 AM",range_to_time:"12:00 NN",_12_hour_format_from:"11:40 AM",_12_hour_format_to:"12:00 NN"},{range_from_time:"12:00 NN",range_to_time:"12:20 PM",_12_hour_format_from:"12:00 NN",_12_hour_format_to:"12:20 PM"},{range_from_time:"12:20 PM",range_to_time:"12:40 PM",_12_hour_format_from:"12:20 PM",_12_hour_format_to:"12:40 PM"},{range_from_time:"12:40 PM",range_to_time:"13:00 PM",_12_hour_format_from:"12:40 PM",_12_hour_format_to:"01:00 PM"},{range_from_time:"13:00 PM",range_to_time:"13:20 PM",_12_hour_format_from:"01:00 PM",_12_hour_format_to:"01:20 PM"},{range_from_time:"13:20 PM",range_to_time:"13:40 PM",_12_hour_format_from:"01:20 PM",_12_hour_format_to:"01:40 PM"},{range_from_time:"13:40 PM",range_to_time:"14:00 PM",_12_hour_format_from:"01:40 PM",_12_hour_format_to:"02:00 PM"},{range_from_time:"14:00 PM",range_to_time:"14:20 PM",_12_hour_format_from:"02:00 PM",_12_hour_format_to:"02:20 PM"},{range_from_time:"14:20 PM",range_to_time:"14:40 PM",_12_hour_format_from:"02:20 PM",_12_hour_format_to:"02:40 PM"},{range_from_time:"14:40 PM",range_to_time:"15:00 PM",_12_hour_format_from:"02:40 PM",_12_hour_format_to:"03:00 PM"},{range_from_time:"15:00 PM",range_to_time:"15:20 PM",_12_hour_format_from:"03:00 PM",_12_hour_format_to:"03:20 PM"},{range_from_time:"15:20 PM",range_to_time:"15:40 PM",_12_hour_format_from:"03:20 PM",_12_hour_format_to:"03:40 PM"},{range_from_time:"15:40 PM",range_to_time:"16:00 PM",_12_hour_format_from:"03:40 PM",_12_hour_format_to:"04:00 PM"},{range_from_time:"16:00 PM",range_to_time:"16:20 PM",_12_hour_format_from:"04:00 PM",_12_hour_format_to:"04:20 PM"},{range_from_time:"16:20 PM",range_to_time:"16:40 PM",_12_hour_format_from:"04:20 PM",_12_hour_format_to:"04:40 PM"},{range_from_time:"16:40 PM",range_to_time:"17:00 PM",_12_hour_format_from:"04:40 PM",_12_hour_format_to:"05:00 PM"}]}],Te={timeSelection:Se},Ce={class:"flex gap-4"},Ee={class:""},$e={class:"flex items-center mb-4 w-full"},Re={class:"uppercase relative z-0"},Oe={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-40"},je={class:"w-full flex justify-between"},Ne={class:"grid gap-3"},Ie=["checked","indeterminate"],Fe={class:"lg:grid grid-cols-3"},Le=["value"],ze={class:"pl-2"},Be={key:0,class:"grid grid-cols-7 gap-2 text-xs"},Ve=["value"],Ue={class:"text-xs"},qe={class:""},We={class:"justify-end flex gap-2 mt-4"},Ke=["disabled"],Qe={key:1,class:"flex w-full justify-between gap-2"},Ge=["disabled"],He={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-40"},Je={class:m(["rounded-lg w-full max-w-md p-6 text-center bg-white"])},Xe={class:"text-sm text-gray-700 mb-6"},Ze={class:"flex justify-center gap-3"},et=["disabled"],tt={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-40"},at={key:1,class:"space-y-2"},rt=["onClick","disabled"],ot={class:"flex justify-end gap-2 mt-4"}
2,st={__name:"index",props:{darkMode:Boolean},setup(d){const ae=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],re=e=>{if(!e)return null;if(typeof e=="string")return e.includes(" - ")?e:null;if(typeof e=="object"){if(e._12_hour_format_from&&e._12_hour_format_to)return`${e._12_hour_format_from} - ${e._12_hour_format_to}`;if(e.range_from_time&&e.range_to_time)return`${e.range_from_time} - ${e.range_to_time}`}return null},oe=e=>{if(!Array.isArray(e))return[];const r={};return e.forEach(t=>{const a=v(t.date,["MM-DD-YYYY","YYYY-MM-DD"]).format("YYYY-MM-DD");r[a]||(r[a]={id:String(t.id),date:a,originalDate:t.date,times:[],recurrence:t.recurrence,notes:t.notes||""});const s=Array.isArray(t.time)?t.time:t.time?[t.time]:[];r[a].times.push(...s)}),Object.values(r).map(t=>t.recurrence&&typeof t.recurrence=="string"?{id:t.id,title:"BOOKED",rrule:t.recurrence,allDay:!0,extendedProps:{original:{id:t.id,date:t.originalDate,time:t.times,notes:t.notes}}}:{id:t.id,title:"BOOKED",start:t.date,allDay:!0,extendedProps:{original:{id:t.id,date:t.originalDate,time:t.times,notes:t.notes}}})},se=e=>{const t=(Array.isArray(e.time)?e.time:e.time?[e.time]:[]).map(a=>typeof a=="string"?a:a._12_hour_format_from&&a._12_hour_format_to?`${a._12_hour_format_from} - ${a._12_hour_format_to}`:null).filter(Boolean);return{id:e.id,date:e.date,times:t,notes:e.notes||"",recurring:!!e.recurrence,recurrence_days:e.recurrence_days||[]}},q=e=>{const r=e.times.map(a=>{if(!a||!a.includes(" - "))return null;const[s,o]=a.split(" - ").map(h=>h.trim());return{range_from_time:s,range_to_time:o,_12_hour_format_from:s,_12_hour_format_to:o}}).filter(Boolean),t={date:v(e.date).format("MM-DD-YYYY"),time:r.length>0?r:[],notes:e.notes||"",updated_at:new Date().toISOString()};if(e.recurring&&e.recurrence_days&&e.recurrence_days.length){const a={Sunday:"SU",Monday:"MO",Tuesday:"TU",Wednesday:"WE",Thursday:"TH",Friday:"FR",Saturday:"SA"},s=e.recurrence_days.map(h=>a[h]).join(","),o=v(e.date).format("YYYYMMDD");t.recurrence=`FREQ=WEEKLY;BYDAY=${s};DTSTART=${o}`,t.recurrence_days=e.recurrence_days}return t},le=Pe(),x=U(()=>le.public.apiUrl||""),M=_([]),$=_([]),W=_(!1),f=_(!1),i=_({show:!1,message:"",type:"success"});let R=null;X(()=>i.value.show,e=>{e&&(R&&clearTimeout(R),R=setTimeout(()=>{i.value.show=!1},3e3))});const w=_(!1),T=_(!1),A=_(!1),n=_({id:null,date:"",times:[],notes:"",recurring:!1,recurrence_days:[]}),O=_(!1),p=_(""),P=_([]),K=_(null),D=_(Te?.timeSelection?.[0]?.time||[]),Q=_(!1),C=U(()=>D.value.length>0&&n.value.times.length===D.value.length),ne=U(()=>n.value.times.length>0&&n.value.times.length<D.value.length),ie=()=>{C.value?n.value.times=[]:n.value.times=D.value.map(e=>`${e._12_hour_format_from} - ${e._12_hour_format_to}`),Q.value=C.value};X(()=>n.value.times,e=>{Q.value=C.value},{immediate:!0});const j=_(null),G=_([]),H=_(!1),E=_({}),b=async(e=!1)=>{e||(W.value=!0);try{const r=await $fetch(`${x.value}/api/library/schedule/booking/list/`);M.value=Array.isArray(r)?r:[],$.value=oe(M.value),E.value&&(E.value.events=$.value)}catch(r){e||(i.value={show:!0,message:r?.message||"Failed to load schedules",type:"error"})}finally{e||(W.value=!1)}};let k=null;const _e=()=>{k&&clearInterval(k),k=De(()=>{b(!0)},5e3)},ue=()=>{k&&(clearInterval(k),k=null)},me=async()=>{if(!n.value.date||!n.value.times.length){i.value={show:!0,message:"Choose date and at least one time",type:"error"};return}const e=v(n.value.date).format("MM-DD-YYYY");if(M.value.find(a=>a.date===e)){i.value={show:!0,message:"This date already has a schedule. Please edit the existing one.",type:"error"};return}const t=q(n.value);if(!t.time||t.time.length===0){i.value={show:!0,message:"No times selected",type:"error"};return}f.value=!0;try{const a=`${x.value}/api/library/schedule/booking/create/`,s=await $fetch(a,{method:"POST",body:t,headers:{"Content-Type":"application/json"}});N(),await b(),i.value={show:!0,message:`Schedule set for ${t.date}`,type:"success"}}catch(a){console.error("â Create error:",{message:a?.message,data:a?.data,statusCode:a?.statusCode,statusMessage:a?.statusMessage}),i.value={show:!0,message:a?.data?.message||a?.statusMessage||a?.message||"Create failed",type:"error"}}finally{f.value=!1}},de=async()=>
2{if(!n.value.date||!n.value.times.length){i.value={show:!0,message:"Choose date and at least one time",type:"error"};return}const e=v(n.value.date).format("MM-DD-YYYY"),r=M.value.filter(a=>a.date===e),t=q(n.value);if(r.length>0){const a=[];r.forEach(o=>{const h=Array.isArray(o.time)?o.time:o.time?[o.time]:[];a.push(...h)});const s=new Map;a.forEach(o=>{const h=typeof o=="string"?o:`${o._12_hour_format_from} - ${o._12_hour_format_to}`;s.has(h)||s.set(h,o)}),t.time.forEach(o=>{const h=`${o._12_hour_format_from} - ${o._12_hour_format_to}`;s.has(h)||s.set(h,o)}),t.time=Array.from(s.values())}if(!t.time||t.time.length===0){i.value={show:!0,message:"No times selected",type:"error"};return}f.value=!0;try{const a=`${x.value}/api/library/schedule/booking/create/`,s=await $fetch(a,{method:"POST",body:t,headers:{"Content-Type":"application/json"}});N(),await b(),i.value={show:!0,message:`Schedule updated for ${t.date}`,type:"success"}}catch(a){console.error("â Create error:",{message:a?.message,data:a?.data,statusCode:a?.statusCode,statusMessage:a?.statusMessage}),i.value={show:!0,message:a?.data?.message||a?.statusMessage||a?.message||"Update failed",type:"error"}}finally{f.value=!1}},ce=async()=>{if(n.value.id){f.value=!0;try{await $fetch(`${x.value}/api/library/schedule/booking/${n.value.id}/delete/`,{method:"DELETE"}),T.value=!1,await b(),i.value={show:!0,message:"Schedule Removed",type:"success"}}catch(e){i.value={show:!0,message:e?.data?.message||e?.message||"Delete failed",type:"error"}}finally{f.value=!1}}},fe=async e=>{const r=e.event,t=r.extendedProps.original||{},a=v(r.start).format("hh:mm A"),s=v(r.end).format("hh:mm A"),o={date:v(r.start).format("MM-DD-YYYY"),time:[`${a} - ${s}`]};try{await $fetch(`${x.value}/api/library/schedule/booking/${t.id}/update/`,{method:"PUT",body:o,headers:{"Content-Type":"application/json"}}),i.value={show:!0,message:"Schedule Resized",type:"success"},await b()}catch(h){i.value={show:!0,message:h?.message||"Resize failed",type:"error"},e.revert()}},N=()=>{w.value=!1,A.value=!1,n.value={id:null,date:"",times:[],notes:"",recurring:!1,recurrence_days:[]}},he=()=>{T.value=!0,w.value=!1};be(async()=>{try{const e=await Y(()=>import("./S5PbEj1a.js"),__vite__mapDeps([0,1,2]),import.meta.url),r=(await Y(async()=>{const{default:o}=await import("./0i3RuH_s.js");return{default:o}},__vite__mapDeps([3,1,4]),import.meta.url)).default,t=(await Y(async()=>{const{default:o}=await import("./zmxHmLOt.js");return{default:o}},__vite__mapDeps([5,1,4]),import.meta.url)).default,a=(await Y(async()=>{const{default:o}=await import("./Bhy4boTv.js");return{default:o}},__vite__mapDeps([6,1]),import.meta.url)).default;let s=null;try{s=(await Y(async()=>{const{default:o}=await import("./Bxvj9Qdk.js");return{default:o}},__vite__mapDeps([7,1]),import.meta.url)).default}catch{}j.value=e.default||e,G.value=s?[r,t,a,s]:[r,t,a],E.value={plugins:G.value,selectable:!0,editable:!0,droppable:!1,events:$.value,eventContent(o){return{html:'<div style="font-weight:bold; color:#fff; text-align:center; width:100%; display:block;">TIME SCHEDULES</div>'}},select:o=>ge(o),eventClick:o=>ve(o),eventResize:o=>fe(o),dayClick:o=>ye(o),height:"auto",headerToolbar:{left:"",center:"title",right:"today prev,next"},buttonText:{today:"TODAY"}},H.value=!0}catch(e){console.warn("FullCalendar load failed:",e),i.value={show:!0,message:"Calendar failed to load",type:"error"}}await b(),_e()}),xe(()=>{ue()});const ge=e=>{const r=v(e.start).format("MM-DD-YYYY"),t=M.value.filter(a=>a.date===r);if(t.length>0){A.value=!0;const a=[];t.forEach(s=>{(Array.isArray(s.time)?s.time:s.time?[s.time]:[]).forEach(h=>{const u=re(h);u&&!a.includes(u)&&a.push(u)})}),n.value={id:t[0].id,date:v(e.start).format("YYYY-MM-DD"),times:a,notes:t[0].notes||"",recurring:!1,recurrence_days:[]}}else if(A.value=!1,n.value={id:null,date:v(e.start).format("YYYY-MM-DD"),times:[],notes:"",recurring:!1,recurrence_days:[]},e.start&&e.end&&!e.allDay){const a=v(e.start).format("hh:mm A"),s=v(e.end).format("hh:mm A");n.value.times=[`${a} - ${s}`]}w.value=!0},ve=e=>{const t=e.event.extendedProps?.original||{};A.value=!0,n.value=se(t),w.value=!0},ye=e=>{const r=v(e.date).format("MM-DD-YYYY"),t=M.value.filter(a=>a.date===r);if(t.length>0){p.value=r,K.value=t[0].id;const a=[];t.forEach(s=>{const o=Array.isArray(s.time)?s.time:s.time?[s.time]:[];a.push(...o)}),P.value=a,O.value=!0}else i.value={show:!0,message:"No schedule found for this date",type:"info"}},Me=async e=>{if(p.value){f.value=!0;try{const r=M.value.filter(u=>u.date===p.value);if(r.length===0){i.value={show:!0,message:"Schedule not Found",type:"error"};return}const t=[];r.forEach(u=>{const pe=Array.isArray(u.time)?u.time:u.time?[u.time]:[];t.push(...pe)});const a=t.filter(u=>!(u._12_hour_format_from===e._12_hour_format_from&&u._12_hour_format_to===e._12_hour_format_to)),s=a.map(u=>({range_from_time:u._12_hour_format_from,range_to_time:u._12_hour_format_to,_12_hour_format_from:u._12_hour_format_from,_12_hour_format_to:u._12_hour_format_to}
2)),o={date:p.value,time:s.length>0?s:[],updated_at:new Date().toISOString()},h=await $fetch(`${x.value}/api/library/schedule/booking/create/`,{method:"POST",body:o,headers:{"Content-Type":"application/json"}});P.value=a,await b(),a.length===0?(J(),i.value={show:!0,message:"All slots removed for this day",type:"success"}):i.value={show:!0,message:"Time slot removed",type:"success"}}catch(r){console.error("â Slot removal error:",r),i.value={show:!0,message:r?.data?.message||r?.message||"Failed to remove slot",type:"error"}}finally{f.value=!1}}},J=()=>{O.value=!1,p.value="",P.value=[],K.value=null};return(e,r)=>(c(),g("div",{class:m(d.darkMode?"bg-gray-900 min-h-screen px-4 pt-4 pb-20":"bg-white min-h-screen p-4")},[l("div",Ce,[l("div",Ee,[l("div",$e,[l("h2",{class:m(["text-xl font-bold text-center w-full",d.darkMode?"text-green-400":"text-green-800"])}," Library Schedules ",2)]),i.value.show?(c(),g("div",{key:0,class:m(["p-3 rounded mb-3",i.value.type==="error"?"bg-red-100 text-red-800":"bg-green-100 text-green-800"])},y(i.value.message),3)):S("",!0),l("div",Re,[H.value&&j.value?(c(),Ae(we(j.value),{key:0,options:E.value,style:ke(d.darkMode?"background: #1f2937; border-radius: 8px; padding: 8px":"background: white; border-radius: 8px; padding: 8px")},null,8,["options","style"])):(c(),g("div",{key:1,class:m(["text-center py-10",d.darkMode?"text-gray-300":"text-gray-900"])}," Loading calendar... ",2))]),I(V,{name:"fade"},{default:F(()=>[w.value?(c(),g("div",Oe,[l("div",{class:m(["rounded-lg w-full max-w-2xl p-6",d.darkMode?"bg-gray-900":"bg-white"])},[l("div",je,[l("h3",{class:m(["font-bold mb-4 uppercase",d.darkMode?"text-gray-200":"text-gray-900"])},y(A.value?"Edit Schedule":"Create New Schedule")+" ID: "+y(n.value.id),3),l("button",{onClick:N,class:m(["px-4 py-2 border rounded",d.darkMode?"border-gray-600 text-gray-200 hover:bg-gray-700":"border-gray-300 text-gray-900 hover:bg-gray-100"])},[...r[3]||(r[3]=[l("i",{class:"fa fa-times"},null,-1)])],2)]),l("div",Ne,[l("label",{class:m(["text-sm",d.darkMode?"text-gray-300":"text-gray-900"])},"Date: "+y(n.value.date?Z(v)(n.value.date).format("MMMM DD, YYYY"):""),3),l("label",{class:m(["text-sm font-bold uppercase",d.darkMode?"text-gray-300":"text-gray-900"])},[l("input",{type:"checkbox",checked:C.value,indeterminate:ne.value,onChange:ie},null,40,Ie),r[4]||(r[4]=L(" Select All",-1))],2),l("div",Fe,[(c(!0),g(z,null,B(D.value,(t,a)=>(c(),g("label",{key:a,class:m(["items-center gap-2 text-sm uppercase",d.darkMode?"text-gray-300":"text-gray-900"])},[ee(l("input",{type:"checkbox",value:t._12_hour_format_from+" - "+t._12_hour_format_to,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value.times=s)},null,8,Le),[[te,n.value.times]]),l("span",ze,y(t._12_hour_format_from)+" - "+y(t._12_hour_format_to),1)],2))),128))]),n.value.recurring?(c(),g("div",Be,[(c(),g(z,null,B(ae,(t,a)=>l("label",{key:t,class:m(["flex flex-col items-center",d.darkMode?"text-gray-300":"text-gray-900"])},[ee(l("input",{type:"checkbox",value:t,"onUpdate:modelValue":r[1]||(r[1]=s=>n.value.recurrence_days=s)},null,8,Ve),[[te,n.value.recurrence_days]]),l("span",Ue,y(t.slice(0,2)),1)],2)),64))])):S("",!0),l("div",qe,[l("div",We,[A.value?(c(),g("div",Qe,[l("button",{onClick:de,disabled:f.value,class:"px-4 py-2 bg-yellow-500 text-white rounded"},y(f.value?"assigning...":"Set"),9,Ge),l("button",{onClick:he,class:"px-4 py-2 bg-red-600 text-white rounded"},[...r[5]||(r[5]=[l("i",{class:"fa fa-trash"},null,-1)])])])):(c(),g("button",{key:0,onClick:me,disabled:f.value,class:"px-4 py-2 bg-green-800 text-white rounded flex"},y(f.value?"Saving...":"Create"),9,Ke))])])])],2)])):S("",!0)]),_:1}),I(V,{name:"fade"},{default:F(()=>[T.value?(c(),g("div",He,[l("div",Je,[r[8]||(r[8]=l("h3",{class:"font-bold mb-4"},"Confirm Remove",-1)),l("p",Xe,[r[6]||(r[6]=L(" Remove schedule for ",-1)),l("strong",null,y(n.value.date),1),r[7]||(r[7]=L("? ",-1))]),l("div",Ze,[l("button",{onClick:r[2]||(r[2]=t=>T.value=!1),class:"px-4 py-2 border rounded"}," Cancel "),l("button",{onClick:ce,disabled:f.value,class:"px-4 py-2 bg-red-700 text-white rounded"},y(f.value?"Removing...":"Remove"),9,et)])])])):S("",!0)]),_:1}),I(V,{name:"fade"},{default:F(()=>[O.value?(c(),g("div",tt,[l("div",{class:m(["rounded-lg w-full max-w-lg p-6",d.darkMode?"bg-gray-800":"bg-white"])},[l("h3",{class:m(["font-bold mb-4",d.darkMode?"text-gray-200":"text-gray-900"])}," Manage Time Slots - "+y(p.value?Z(v)(p.value).format("MMMM DD, YYYY"):""),3),P.value.length===0?(c(),g("div",{key:0,class:m(["text-center py-4",d.darkMode?"text-gray-400":"text-gray-500"])}," No time slots available for this day ",2)):(c(),g("div",at,[(c(!0),g(z,null,B(P.value,(t,a)=>(c(),g("div",{key:a,class:m(["flex items-center justify-between p-3 border rounded",d.darkMode?"border-gray-600 bg-gray-700":"border-gray-300 bg-white"])},[l("span",{class:m(["text-sm",d.darkMode?"text-gray-200":"text-gray-900"])},y(t._12_hour_format_from)+" - "+y(t._12_hour_format_to),3),l("button",{onClick:s=>Me(t),disabled:f.value,class:"px-3 py-1 bg-red-500 text-white text-xs rounded hover:bg-red-600"},y(f.value?"...":"Remove"),9,rt)],2))),128))])),l("div",ot,[l("button",{onClick:J,class:m(["px-4 py-2 border rounded",d.darkMode?"border-gray-600 text-gray-200 hover:bg-gray-700":"border-gray-300 text-gray-900 hover:bg-gray-100"])}," Close ",2)])],2)])):S("",!0)]),_:1})])])],2))}},ut=Ye(st,[["__scopeId","data-v-b8824b69"]]);export{ut 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.