1import{f as B,g as U,h as D,i as E}from"../modules/unplugin-icons-AkUyeZgK.js";import{d as H,t as C,N as I,I as u,O as L,o as _,b as V,e as o,h as y,C as l,l as s,k as p,c as b,x as w,F as M}from"../modules/vue-B-b6Incm.js";import{k as O,l as P,s as t,n as R,o as j,p as q}from"../index-CDE-gO2j.js";import{_ as A,C as G}from"./NoteDisplay.vue_vue_type_style_index_0_lang-cBDtYszM.js";import{_ as d}from"./IconButton.vue_vue_type_script_setup_true_lang-DLtbPLTm.js";import"../modules/shiki-BR1C-NDD.js";const J={class:"h-full pt-2 flex flex-col"},K={class:"flex-none border-t border-main",px3:"",py2:""},Q={class:"flex-none border-t border-main"},W={class:"flex gap-1 items-center px-6 py-3"},X={class:"p2 text-center"},ne=H({__name:"notes",setup(Y){O({title:`Notes - ${j}`});const{slides:z,total:f}=P(),{isFullscreen:m,toggle:S}=q,v=C(),n=I("slidev-notes-font-size",18),a=u(()=>{var e;return((e=t.lastUpdate)==null?void 0:e.type)==="viewer"?t.viewerPage:t.page}),x=u(()=>z.value.find(e=>e.no===a.value));L(a,()=>{var e;(e=v.value)==null||e.scrollTo({left:0,top:0,behavior:"smooth"}),window.scrollTo({left:0,top:0,behavior:"smooth"})});function $(){n.value=n.value+1}function N(){n.value=n.value-1}const k=u(()=>{var i,r;const e=((i=t.lastUpdate)==null?void 0:i.type)==="viewer"?t.viewerClicks:t.clicks,c=((r=t.lastUpdate)==null?void 0:r.type)==="viewer"?t.viewerClicksTotal:t.clicksTotal;return R(C(e),void 0,c)});return(e,c)=>{var h,g;const i=D,r=E,F=B,T=U;return _(),V(M,null,[o("div",{class:"fixed top-0 left-0 h-3px bg-primary transition-all duration-500",style:y({width:`${(a.value-1)/(l(f)-1)*100+1}%`})},null,4),o("div",J,[o("div",{ref_key:"scroller",ref:v,class:"px-5 flex-auto h-full overflow-auto",style:y({fontSize:`${l(n)}px`})},[s(A,{note:(h=x.value)==null?void 0:h.meta.slide.note,"note-html":(g=x.value)==null?void 0:g.meta.slide.noteHTML,placeholder:`No notes for Slide ${a.value}.`,"clicks-context":k.value,"auto-scroll":!0},null,8,["note","note-html","placeholder","clicks-context"])],4),o("div",K,[s(G,{"clicks-context":k.value,readonly:""},null,8,["clicks-context"])]),o("div",Q,[o("div",W,[s(d,{title:l(m)?"Close fullscreen":"Enter fullscreen",onClick:l(S)},{default:p(()=>[l(m)?(_(),b(i,{key:0})):(_(),b(r,{key:1}))]),_:1},8,["title","onClick"]),s(d,{title:"Increase font size",onClick:$},{default:p(()=>[s(F)]),_:1}),s(d,{title:"Decrease font size",onClick:N},{default:p(()=>[s(T)]),_:1}),c[0]||(c[0]=o("div",{class:"flex-auto"},null,-1)),o("div",X,w(a.value)+" / "+w(l(f)),1)])])])],64)}}});export{ne 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.