projet-fin-etude-rapport/assets/PresenterPrint-d4a99c25.js
2023-09-06 22:54:14 +02:00

18 lines
1.5 KiB
JavaScript

import{d,i as _,a as u,u as p,b as h,c as m,e as f,o as n,f as l,g as t,t as s,h as a,F as g,r as v,n as x,j as b,k as y,l as N,m as k,p as P,q as S,_ as w}from"./index-621d9fd0.js";import{N as E}from"./NoteDisplay-b086c452.js";const T={class:"m-4"},V={class:"mb-10"},j={class:"text-4xl font-bold mt-2"},C={class:"opacity-50"},D={class:"text-lg"},H={class:"font-bold flex gap-2"},L={class:"opacity-50"},B=t("div",{class:"flex-auto"},null,-1),F={key:0,class:"border-gray-400/50 mb-8"},z=d({__name:"PresenterPrint",setup(M){_(u),p(`
@page {
size: A4;
margin-top: 1.5cm;
margin-bottom: 1cm;
}
* {
-webkit-print-color-adjust: exact;
}
html,
html body,
html #app,
html #page-root {
height: auto;
overflow: auto !important;
}
`),h({title:`Notes - ${m.title}`});const i=f(()=>b.map(o=>{var r;return(r=o.meta)==null?void 0:r.slide}).filter(o=>o!==void 0&&o.noteHTML!==""));return(o,r)=>(n(),l("div",{id:"page-root",style:x(a(S))},[t("div",T,[t("div",V,[t("h1",j,s(a(m).title),1),t("div",C,s(new Date().toLocaleString()),1)]),(n(!0),l(g,null,v(a(i),(e,c)=>(n(),l("div",{key:c,class:"flex flex-col gap-4 break-inside-avoid-page"},[t("div",null,[t("h2",D,[t("div",H,[t("div",L,s(e==null?void 0:e.no)+"/"+s(a(y)),1),N(" "+s(e==null?void 0:e.title)+" ",1),B])]),k(E,{"note-html":e.noteHTML,class:"max-w-full"},null,8,["note-html"])]),c<a(i).length-1?(n(),l("hr",F)):P("v-if",!0)]))),128))])],4))}}),I=w(z,[["__file","/home/laurent/Documents/Cours/ENSEEIHT/PFE/etude-biblio/slides/node_modules/@slidev/client/internals/PresenterPrint.vue"]]);export{I as default};