2 lines
4.7 KiB
JavaScript
2 lines
4.7 KiB
JavaScript
import{o as d,f as k,g as e,B as S,C as D,v as h,d as V,i as P,a as H,D as y,x as v,E as M,_ as B,G as I,H as z,c as b,b as F,I as N,J as R,K as A,L,M as j,N as q,O,P as U,Q as W,h as i,m as u,t as Z,n as x,R as $,S as E,p as G,T as J,U as w,V as K,F as Q,W as X,X as Y,w as ee,Y as te,Z as se,q as T,$ as oe,a0 as le,a1 as ne,a2 as ae,a3 as ie,k as re,a4 as ce}from"./index-621d9fd0.js";import{N as ue}from"./NoteDisplay-b086c452.js";import de from"./DrawingControls-b71ecd01.js";const _e={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},me=e("path",{fill:"currentColor",d:"M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8z"},null,-1),pe=[me];function ve(o,n){return d(),k("svg",_e,pe)}const he={name:"carbon-renew",render:ve},fe={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ge=e("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14Zm0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4Z"},null,-1),xe=e("path",{fill:"currentColor",d:"M20.59 22L15 16.41V7h2v8.58l5 5.01L20.59 22z"},null,-1),we=[ge,xe];function Se(o,n){return d(),k("svg",fe,we)}const ye={name:"carbon-time",render:Se},ke="/projet-fin-etude/assets/logo-title-horizontal-96c3c915.png";function Ce(){const o=S(Date.now()),n=D({interval:1e3}),_=h(()=>{const t=(n.value-o.value)/1e3,l=Math.floor(t%60).toString().padStart(2,"0");return`${Math.floor(t/60).toString().padStart(2,"0")}:${l}`});function m(){o.value=n.value}return{timer:_,resetTimer:m}}const be=V({__name:"NoteStatic",props:{class:{type:String,required:!1}},setup(o){const n=o;P(H);const _=h(()=>{var t,l,s;return(s=(l=(t=y.value)==null?void 0:t.meta)==null?void 0:l.slide)==null?void 0:s.note}),m=h(()=>{var t,l,s;return(s=(l=(t=y.value)==null?void 0:t.meta)==null?void 0:l.slide)==null?void 0:s.noteHTML});return(t,l)=>(d(),v(ue,{class:M(n.class),note:_.value,"note-html":m.value},null,8,["class","note","note-html"]))}}),Ne=B(be,[["__file","/home/laurent/Documents/Cours/ENSEEIHT/PFE/etude-biblio/slides/node_modules/@slidev/client/internals/NoteStatic.vue"]]),f=o=>(X("data-v-574fd206"),o=o(),Y(),o),$e={class:"bg-main h-full slidev-presenter"},Ee={class:"grid-container"},Te={class:"grid-section top flex"},Ve=f(()=>e("img",{src:ke,class:"ml-2 my-auto h-10 py-1 lg:h-14 lg:py-2",style:{height:"3.5rem"}},null,-1)),Pe=f(()=>e("div",{class:"flex-auto"},null,-1)),He={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},Me=f(()=>e("div",{class:"context"}," current ",-1)),Be=f(()=>e("div",{class:"context"}," next ",-1)),De={class:"grid-section note overflow-auto"},Ie={class:"grid-section bottom"},ze={class:"progress-bar"},Fe=V({__name:"Presenter",setup(o){P(H);const n=S();I(),z(n);const _=b.titleTemplate.replace("%s",b.title||"Slidev");F({title:`Presenter - ${_}`});const{timer:m,resetTimer:t}=Ce(),l=S([]),s=h(()=>N.value<R.value?{route:y.value,clicks:N.value+1}:A.value?{route:L.value,clicks:0}:null);return j(()=>{const C=n.value.querySelector("#slide-content"),r=q(O()),g=U();W(()=>{if(!g.value||te.value||!se.value)return;const c=C.getBoundingClientRect(),a=(r.x-c.left)/c.width*100,p=(r.y-c.top)/c.height*100;if(!(a<0||a>100||p<0||p>100))return{x:a,y:p}},c=>{ee.cursor=c})}),(C,r)=>{const g=ye,c=he;return d(),k(Q,null,[e("div",$e,[e("div",Ee,[e("div",Te,[Ve,Pe,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:r[0]||(r[0]=(...a)=>i(t)&&i(t)(...a))},[u(g,{class:"absolute"}),u(c,{class:"absolute opacity-0"})]),e("div",He,Z(i(m)),1)]),e("div",{ref_key:"main",ref:n,class:"relative grid-section main flex flex-col p-2 lg:p-4",style:x(i(T))},[u(E,{key:"main",class:"h-full w-full"},{default:$(()=>[u(oe,{context:"presenter"})]),_:1}),Me],4),e("div",{class:"relative grid-section next flex flex-col p-2 lg:p-4",style:x(i(T))},[s.value?(d(),v(E,{key:"next",class:"h-full w-full"},{default:$(()=>{var a;return[u(i(ne),{is:(a=s.value.route)==null?void 0:a.component,"clicks-elements":l.value,"onUpdate:clicksElements":r[1]||(r[1]=p=>l.value=p),clicks:s.value.clicks,"clicks-disabled":!1,class:M(i(le)(s.value.route)),route:s.value.route,context:"previewNext"},null,8,["is","clicks-elements","clicks","class","route"])]}),_:1})):G("v-if",!0),Be],4),e("div",De,[(d(),v(Ne,{key:1,class:"w-full max-w-full h-full overflow-auto p-2 lg:p-4"}))]),e("div",Ie,[u(ae,{persist:!0})]),(d(),v(de,{key:0}))]),e("div",ze,[e("div",{class:"progress h-2px bg-primary transition-all",style:x({width:`${(i(ie)-1)/(i(re)-1)*100}%`})},null,4)])]),u(ce),u(K,{modelValue:i(w),"onUpdate:modelValue":r[2]||(r[2]=a=>J(w)?w.value=a:null)},null,8,["modelValue"])],64)}}});const je=B(Fe,[["__scopeId","data-v-574fd206"],["__file","/home/laurent/Documents/Cours/ENSEEIHT/PFE/etude-biblio/slides/node_modules/@slidev/client/internals/Presenter.vue"]]);export{je as default};
|