projet-long/assets/NoteDisplay-39559114.js
2023-06-25 20:09:16 +02:00

2 lines
1 KiB
JavaScript

import{d as u,i as d,a as p,o as l,f as s,E as i,g as r,t as c,_ as m}from"./index-b4b4a2ac.js";const f=["innerHTML"],k=["textContent"],v=["textContent"],y=u({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1}},emits:["click"],setup(t){const n=t;return d(p),(o,e)=>t.noteHtml?(l(),s("div",{key:0,class:i(["prose overflow-auto outline-none",n.class]),onClick:e[0]||(e[0]=a=>o.$emit("click")),innerHTML:t.noteHtml},null,10,f)):t.note?(l(),s("div",{key:1,class:i(["prose overflow-auto outline-none",n.class]),onClick:e[1]||(e[1]=a=>o.$emit("click"))},[r("p",{textContent:c(t.note)},null,8,k)],2)):(l(),s("div",{key:2,class:i(["prose overflow-auto outline-none opacity-50 italic",n.class]),onClick:e[2]||(e[2]=a=>o.$emit("click"))},[r("p",{textContent:c(n.placeholder||"No notes.")},null,8,v)],2))}}),g=m(y,[["__file","/home/laurent/Documents/Cours/ENSEEIHT/Projet-long/prez/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{g as N};