import{o as n,f as i,g as t,d as q,i as I,a as U,c as k,b as G,s as J,v as d,w as _,k as M,n as L,h as e,l as V,p as a,q as K,x as B,t as F,F as O,y as Q,z as W,A as X,_ as Y}from"./index-b4b4a2ac.js";import{N as H}from"./NoteDisplay-39559114.js";const ee={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},te=t("path",{fill:"currentColor",d:"M8 12h10v2H8z"},null,-1),oe=t("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9Z"},null,-1),ne=[te,oe];function se(u,c){return n(),i("svg",ee,ne)}const le={name:"carbon-zoom-out",render:se},ae={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ie=t("path",{fill:"currentColor",d:"M18 12h-4V8h-2v4H8v2h4v4h2v-4h4v-2z"},null,-1),ce=t("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9Z"},null,-1),re=[ie,ce];function de(u,c){return n(),i("svg",ae,re)}const _e={name:"carbon-zoom-in",render:de},ue={class:"h-full flex flex-col"},pe={key:0,class:"px-5 py-2 max-h-60 overflow-auto border-t border-gray-400 border-opacity-20"},me={class:"flex-none border-t border-gray-400 border-opacity-20"},he={class:"flex gap-1 items-center px-6 py-3"},ve=t("div",{class:"flex-auto"},null,-1),fe={class:"p2 text-center"},xe=q({__name:"NotesView",setup(u){I(U);const c=k.titleTemplate.replace("%s",k.title||"Slidev");G({title:`Notes - ${c}`});const{isFullscreen:T,toggle:p}=Q,s=J("slidev-notes-font-size",18),l=d(()=>{var o;return((o=_.lastUpdate)==null?void 0:o.type)==="viewer"?_.viewerPage:_.page}),m=d(()=>M.find(o=>o.path===`${l.value}`)),r=d(()=>M.find(o=>o.path===`${l.value+1}`));function E(){s.value=s.value+1}function Z(){s.value=s.value-1}return(o,h)=>{var v,f,x,g,b,y,z,$,w,N,C,S;const j=W,A=X,D=_e,R=le;return n(),i(O,null,[t("div",{class:"fixed top-0 left-0 h-2px bg-teal-500 transition-all duration-500",style:L({width:`${(e(l)-1)/e(V)*100}%`})},null,4),t("div",ue,[t("div",{class:"px-5 flex-auto h-full overflow-auto",style:L({fontSize:`${e(s)}px`})},[a(H,{note:(x=(f=(v=e(m))==null?void 0:v.meta)==null?void 0:f.slide)==null?void 0:x.note,"note-html":(y=(b=(g=e(m))==null?void 0:g.meta)==null?void 0:b.slide)==null?void 0:y.noteHTML,placeholder:`No notes for Slide ${e(l)}.`},null,8,["note","note-html","placeholder"])],4),e(r)?(n(),i("div",pe,[a(H,{class:"opacity-50",note:(w=($=(z=e(r))==null?void 0:z.meta)==null?void 0:$.slide)==null?void 0:w.note,"note-html":(S=(C=(N=e(r))==null?void 0:N.meta)==null?void 0:C.slide)==null?void 0:S.noteHTML,placeholder:"No notes for next slide."},null,8,["note","note-html"])])):K("v-if",!0),t("div",me,[t("div",he,[t("button",{class:"slidev-icon-btn",onClick:h[0]||(h[0]=(...P)=>e(p)&&e(p)(...P))},[e(T)?(n(),B(j,{key:0})):(n(),B(A,{key:1}))]),t("button",{class:"slidev-icon-btn",onClick:E},[a(D)]),t("button",{class:"slidev-icon-btn",onClick:Z},[a(R)]),ve,t("div",fe,F(e(l))+" / "+F(e(V)),1)])])])],64)}}}),ye=Y(xe,[["__file","/home/laurent/Documents/Cours/ENSEEIHT/Projet-long/prez/node_modules/@slidev/client/internals/NotesView.vue"]]);export{ye as default};