import{l as d,m as k,ai as e,A as y,as as z,t as h,f as T,h as B,j as D,at as S,au as v,ar as P,y as t,_ as j,av as H,aw as A,c as C,K as I,q,ax as F,ay as L,w as R,az as E,aA as O,aB as G,n as u,aj as K,al as x,am as $,aC as N,aD as V,aq as U,d as W,ao as Z,aE as w,af as J,aF as Q,F as X,b as M,aG as Y,aH as ee,aI as te,aJ as se,aK as oe,aL as ae,aM as ne,aN as le,aO as re,aP as ie}from"./nav-1e818d35.js";import{N as ce}from"./NoteViewer-0b2b5e23.js";import ue from"./DrawingControls-43cafd8c.js";import{u as de}from"./index-85fbf1a9.js";const _e={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},pe=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),me=[pe];function ve(a,l){return d(),k("svg",_e,me)}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 ye(a,l){return d(),k("svg",fe,we)}const Se={name:"carbon-time",render:ye},ke="/projet-probleme-inverse-3D/assets/logo-title-horizontal-96c3c915.png";function be(){const a=y(Date.now()),l=z({interval:1e3}),_=h(()=>{const s=(l.value-a.value)/1e3,n=Math.floor(s%60).toString().padStart(2,"0");return`${Math.floor(s/60).toString().padStart(2,"0")}:${n}`});function p(){a.value=l.value}return{timer:_,resetTimer:p}}const Ce=T({__name:"NoteStatic",props:{class:{type:String,required:!1}},setup(a){const l=a;B(D);const _=h(()=>{var s,n,o;return(o=(n=(s=S.value)==null?void 0:s.meta)==null?void 0:n.slide)==null?void 0:o.note}),p=h(()=>{var s,n,o;return(o=(n=(s=S.value)==null?void 0:s.meta)==null?void 0:n.slide)==null?void 0:o.notesHTML});return(s,n)=>(d(),v(ce,{class:P(l.class),note:t(_),"note-html":t(p)},null,8,["class","note","note-html"]))}}),$e=j(Ce,[["__file","/tmp/projet-probleme-inverse-3D/docs/node_modules/@slidev/client/internals/NoteStatic.vue"]]),f=a=>(re("data-v-574fd206"),a=a(),ie(),a),Ne={class:"bg-main h-full slidev-presenter"},Ve={class:"grid-container"},Me={class:"grid-section top flex"},Te=f(()=>e("img",{src:ke,class:"ml-2 my-auto h-10 py-1 lg:h-14 lg:py-2"},null,-1)),Be=f(()=>e("div",{class:"flex-auto"},null,-1)),De={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},Pe=f(()=>e("div",{class:"context"}," current ",-1)),je=f(()=>e("div",{class:"context"}," next ",-1)),ze={class:"grid-section note overflow-auto"},He={class:"grid-section bottom"},Ae={class:"progress-bar"},Ie=T({__name:"Presenter",setup(a){B(D);const l=y();H(),A(l);const _=C.titleTemplate.replace("%s",C.title||"Slidev");de({title:`Presenter - ${_}`});const{timer:p,resetTimer:s}=be(),n=y([]),o=h(()=>M.value{const b=l.value.querySelector("#slide-content"),i=q(F()),g=L();R(()=>{if(!g.value||O.value||!G.value)return;const c=b.getBoundingClientRect(),r=(i.x-c.left)/c.width*100,m=(i.y-c.top)/c.height*100;if(!(r<0||r>100||m<0||m>100))return{x:r,y:m}},c=>{E.cursor=c})}),(b,i)=>{const g=Se,c=he;return d(),k(X,null,[e("div",Ne,[e("div",Ve,[e("div",Me,[Te,Be,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:i[0]||(i[0]=(...r)=>t(s)&&t(s)(...r))},[u(g,{class:"absolute"}),u(c,{class:"absolute opacity-0"})]),e("div",De,K(t(p)),1)]),e("div",{ref_key:"main",ref:l,class:"relative grid-section main flex flex-col p-2 lg:p-4",style:x(t($))},[u(V,{key:"main",class:"h-full w-full"},{default:N(()=>[u(se,{context:"presenter"})]),_:1}),Pe],4),e("div",{class:"relative grid-section next flex flex-col p-2 lg:p-4",style:x(t($))},[t(o)?(d(),v(V,{key:"next",class:"h-full w-full"},{default:N(()=>{var r;return[u(t(ae),{is:(r=t(o).route)==null?void 0:r.component,"clicks-elements":n.value,"onUpdate:clicks-elements":i[1]||(i[1]=m=>n.value=m),clicks:t(o).clicks,"clicks-disabled":!1,class:P(t(oe)(t(o).route)),route:t(o).route,context:"previewNext"},null,8,["is","clicks-elements","clicks","class","route"])]}),_:1})):U("v-if",!0),je],4),e("div",ze,[(d(),v($e,{key:1,class:"w-full h-full overflow-auto p-2 lg:p-4"}))]),e("div",He,[u(ne,{persist:!0})]),(d(),v(ue,{key:0}))]),e("div",Ae,[e("div",{class:"progress h-2px bg-primary transition-all",style:x({width:`${(t(W)-1)/(t(Z)-1)*100}%`})},null,4)])]),u(le),u(Q,{modelValue:t(w),"onUpdate:modelValue":i[2]||(i[2]=r=>J(w)?w.value=r:null)},null,8,["modelValue"])],64)}}});const Ee=j(Ie,[["__scopeId","data-v-574fd206"],["__file","/tmp/projet-probleme-inverse-3D/docs/node_modules/@slidev/client/internals/Presenter.vue"]]);export{Ee as default};