ep-lib-ts 1.0.45 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BgAudio-ryf2FIxF.js +4 -0
- package/dist/DisplayBox-ky90shjr.js +4 -0
- package/dist/EpAlert-BUiXiWRL.js +4 -0
- package/dist/EpAudio-CkZrkt3Z.js +4 -0
- package/dist/EpAvatar-2ZL5g8-2.js +4 -0
- package/dist/EpBadge-vOdZrc0e.js +4 -0
- package/dist/EpBarChart-CUUaOMsS.js +4 -0
- package/dist/{EpBranchingScenario-CtCO_8zu.js → EpBranchingScenario-DT2VQz7o.js} +1 -1
- package/dist/EpBtn-DD0ykcYq.js +4 -0
- package/dist/EpCard-Qgkskboo.js +4 -0
- package/dist/EpCardLink-BfTUOLcA.js +4 -0
- package/dist/EpChip-P7j6l0PH.js +4 -0
- package/dist/EpCodeblock-DpzMd_h0.js +4 -0
- package/dist/EpConclusion-BRBOGFVk.js +4 -0
- package/dist/EpContentSlider-KFhPqR1h.js +4 -0
- package/dist/{EpDarkmode-ChgCnqlF.js → EpDarkmode-DyUrMSO5.js} +1 -1
- package/dist/EpDescription-CcdsFWCf.js +4 -0
- package/dist/EpDivider-C30UAjvv.js +4 -0
- package/dist/{EpDraggable-hJJjJ6hz.js → EpDraggable-CTWqRQzE.js} +1 -1
- package/dist/EpEdu-CApC3SiS.js +4 -0
- package/dist/EpFlex-Dgc5dinh.js +4 -0
- package/dist/EpFunnelChart-Xm34GDMu.js +4 -0
- package/dist/EpHeader-DSKKm621.js +4 -0
- package/dist/EpHover-KHdqQJ6y.js +4 -0
- package/dist/EpHoverCard-Ccl2Un2s.js +4 -0
- package/dist/EpIcon-Eezd-EUx.js +4 -0
- package/dist/EpIframe-CmEsIYyW.js +4 -0
- package/dist/EpImg-BV_rS7v3.js +4 -0
- package/dist/EpImgCarousel-BHade9dP.js +4 -0
- package/dist/{EpInput-B-bfsw5E.js → EpInput-CGnN-piP.js} +1 -1
- package/dist/EpInstructions-A6ajkYEJ.js +4 -0
- package/dist/EpIntroduction-BY39wrQW.js +4 -0
- package/dist/EpLineChart-DQNIlO9r.js +4 -0
- package/dist/EpLink-BdxmUlWG.js +4 -0
- package/dist/EpLinkVersion-BAsA6tzp.js +4 -0
- package/dist/{EpList-DeapPqmX.js → EpList-C8uaLum6.js} +1 -1
- package/dist/EpModal-DIEKXVnQ.js +4 -0
- package/dist/{EpNothing-BglmKV-f.js → EpNothing-DxfGfasN.js} +1 -1
- package/dist/EpObjective-DwnP_7Zm.js +4 -0
- package/dist/EpPieChart-DmcML2d-.js +4 -0
- package/dist/EpQuestion-D7-nzMHE.js +4 -0
- package/dist/EpQuote-Cb5Ty6Ec.js +4 -0
- package/dist/EpRadio-9V6iAh4n.js +4 -0
- package/dist/EpRadioSummative-BL2YhCK3.js +4 -0
- package/dist/EpReading-DTWjzj6l.js +4 -0
- package/dist/EpResource-ZMfXpSqf.js +4 -0
- package/dist/EpScope-1aCF0beo.js +4 -0
- package/dist/EpSection-C-GaZN4R.js +4 -0
- package/dist/EpSectionCols-ap4Z5x7P.js +4 -0
- package/dist/EpSkeleton-DQUHmKio.js +4 -0
- package/dist/EpSoftware-DdF8BdqQ.js +4 -0
- package/dist/EpSpecificObjective-44uQGH3u.js +4 -0
- package/dist/EpSpinner-DHU8EZRf.js +4 -0
- package/dist/EpStackedList-BBGlTBx6.js +4 -0
- package/dist/EpSummativeTable-Cz4gcxHT.js +4 -0
- package/dist/EpSvg-Dk_q0cGB.js +4 -0
- package/dist/{EpSvgShow-BMQFmzKO.js → EpSvgShow-Cb_Y5UGq.js} +1 -1
- package/dist/EpTable-Cg3-lRZY.js +4 -0
- package/dist/EpTerm-CRkB0QyE.js +4 -0
- package/dist/EpText-Dj93fveo.js +4 -0
- package/dist/EpTimeLine-Cit4tc3F.js +4 -0
- package/dist/EpVideo-1obD7bUC.js +4 -0
- package/dist/EpVideoPanopto-DzkzWyOF.js +4 -0
- package/dist/EpWordDef-DIjwoqzN.js +4 -0
- package/dist/ep-lib-ts.js +1 -1
- package/dist/ep-lib-ts.umd.cjs +1 -1
- package/dist/{index-DTH65_9T.js → index-D5QYJLNE.js} +1 -1
- package/dist/{index-CwfMdRn8.js → index-FmXc2ivj.js} +8 -8
- package/dist/{prism-D45WTYqI.js → prism-D-x8E1YK.js} +1 -1
- package/package.json +1 -1
- package/src/components/signages/EpHeader.vue +1 -1
- package/dist/BgAudio-Dju9jJiu.js +0 -4
- package/dist/DisplayBox-HvviLWyp.js +0 -4
- package/dist/EpAlert-8x1egKQ1.js +0 -4
- package/dist/EpAudio-DLQ0xWz1.js +0 -4
- package/dist/EpAvatar-DlaagQT-.js +0 -4
- package/dist/EpBadge-hENKUkCt.js +0 -4
- package/dist/EpBarChart-Bw8qKwqp.js +0 -4
- package/dist/EpBtn-BH1hWlHT.js +0 -4
- package/dist/EpCard-CqhPrVAv.js +0 -4
- package/dist/EpCardLink-DlP0NsFx.js +0 -4
- package/dist/EpChip-Bi3nop6O.js +0 -4
- package/dist/EpCodeblock-DhkGfhDz.js +0 -4
- package/dist/EpConclusion-DYGJFM9I.js +0 -4
- package/dist/EpContentSlider-BxHaDAWo.js +0 -4
- package/dist/EpDescription-CHv8jeTs.js +0 -4
- package/dist/EpDivider-dB-VxNYj.js +0 -4
- package/dist/EpEdu-CcePBFeF.js +0 -4
- package/dist/EpFlex-BOIofhJe.js +0 -4
- package/dist/EpFunnelChart-B0cp8JDh.js +0 -4
- package/dist/EpHeader-4TIVPsGN.js +0 -4
- package/dist/EpHover-B6dcDLJH.js +0 -4
- package/dist/EpHoverCard-BYLDcALZ.js +0 -4
- package/dist/EpIcon-eQLd8Bef.js +0 -4
- package/dist/EpIframe-DmNysxf-.js +0 -4
- package/dist/EpImg-oLjhJdIS.js +0 -4
- package/dist/EpImgCarousel-DXPylqN5.js +0 -4
- package/dist/EpInstructions-DIAYW894.js +0 -4
- package/dist/EpIntroduction-DNNy0dG3.js +0 -4
- package/dist/EpLineChart-0D56Uh_r.js +0 -4
- package/dist/EpLink-DSTdUEpY.js +0 -4
- package/dist/EpLinkVersion-gKk7KyA_.js +0 -4
- package/dist/EpModal-D16kxfDo.js +0 -4
- package/dist/EpObjective-HxaZ9wp9.js +0 -4
- package/dist/EpPieChart-DgshvJsj.js +0 -4
- package/dist/EpQuestion-Dukzq4EH.js +0 -4
- package/dist/EpQuote-CzHty5N8.js +0 -4
- package/dist/EpRadio-b-7_ookc.js +0 -4
- package/dist/EpRadioSummative-B2rKvUDx.js +0 -4
- package/dist/EpReading-B4cnESfa.js +0 -4
- package/dist/EpResource-Cm_WCcOE.js +0 -4
- package/dist/EpScope-D7uqngTc.js +0 -4
- package/dist/EpSection-D5dy1gIO.js +0 -4
- package/dist/EpSectionCols-Td__J3LQ.js +0 -4
- package/dist/EpSkeleton-Dt9pU2x3.js +0 -4
- package/dist/EpSoftware-ZrDbL3q8.js +0 -4
- package/dist/EpSpecificObjective-BLP9pKHT.js +0 -4
- package/dist/EpSpinner-Bz6bpXEH.js +0 -4
- package/dist/EpStackedList-C-qDZcDO.js +0 -4
- package/dist/EpSummativeTable-D0IxH0wd.js +0 -4
- package/dist/EpSvg-CFAjqJWI.js +0 -4
- package/dist/EpTable-CFfBZzZJ.js +0 -4
- package/dist/EpTerm-C81Atlu_.js +0 -4
- package/dist/EpText-DPADYfER.js +0 -4
- package/dist/EpTimeLine-BaJ78dV9.js +0 -4
- package/dist/EpVideo-m4Cga9WS.js +0 -4
- package/dist/EpVideoPanopto-DrHaE_yl.js +0 -4
- package/dist/EpWordDef-CZw-9z0W.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as H, ref as f, computed as L, createElementBlock as n, openBlock as l, normalizeStyle as k, createElementVNode as t, createCommentVNode as g, toDisplayString as d, unref as v, normalizeClass as c, createVNode as j, Fragment as y, renderList as b } from "vue";
|
|
2
|
-
import { y as w, l as A, z as I, a as M } from "./index-
|
|
2
|
+
import { y as w, l as A, z as I, a as M } from "./index-FmXc2ivj.js";
|
|
3
3
|
const q = { class: "font-bold text-3xl" }, z = ["innerHTML"], E = ["innerHTML"], F = ["src"], V = ["onClick"], B = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "flex-grow flex"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, ref as u, onMounted as p, createElementBlock as r, openBlock as n, createStaticVNode as m, createElementVNode as a } from "vue";
|
|
2
|
-
import { O as g } from "./index-
|
|
2
|
+
import { O as g } from "./index-FmXc2ivj.js";
|
|
3
3
|
const k = {
|
|
4
4
|
key: 0,
|
|
5
5
|
title: "Switch to light mode"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Rt, resolveComponent as Jt, h as bt, ref as ae, onMounted as en, onUnmounted as tn, computed as wt, createElementBlock as W, openBlock as H, createElementVNode as le, createVNode as qe, unref as Me, withCtx as yt, Fragment as _t, renderList as Et, toDisplayString as Dt, createBlock as nn, normalizeStyle as on, createCommentVNode as Ke } from "vue";
|
|
2
|
-
import { l as St, P as rn, Q as an } from "./index-
|
|
2
|
+
import { l as St, P as rn, Q as an } from "./index-FmXc2ivj.js";
|
|
3
3
|
/*!
|
|
4
4
|
* vue-draggable-next v2.2.0
|
|
5
5
|
* (c) 2023 Anish George
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as C, toValue as g, unref as v, onMounted as Ye, getCurrentInstance as G, provide as Xe, isRef as ie, watch as U, onBeforeUnmount as He, inject as Qe, onUnmounted as Ze, ref as te, reactive as et, nextTick as tt, defineComponent as rt, toRefs as nt, toRef as ot, createElementBlock as ve, openBlock as pe, Fragment as it, createTextVNode as me, createElementVNode as P, toDisplayString as X, createVNode as lt, withDirectives as at, createCommentVNode as ut, vModelText as st } from "vue";
|
|
2
|
-
import { d as dt, K as ct } from "./index-
|
|
2
|
+
import { d as dt, K as ct } from "./index-FmXc2ivj.js";
|
|
3
3
|
/**
|
|
4
4
|
* vee-validate v4.15.0
|
|
5
5
|
* (c) 2024 Abdelrahman Awad
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as t, openBlock as o, renderSlot as r } from "vue";
|
|
2
|
-
import { a as s } from "./index-
|
|
2
|
+
import { a as s } from "./index-FmXc2ivj.js";
|
|
3
3
|
const c = {}, n = { class: "py-6 px-3 w-1/4 min-w-[180px]" };
|
|
4
4
|
function a(e, l) {
|
|
5
5
|
return o(), t("ul", n, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as m, ref as u, computed as f, onMounted as p, nextTick as v, createElementBlock as h, openBlock as y } from "vue";
|
|
2
|
-
import { y as g } from "./index-
|
|
2
|
+
import { y as g } from "./index-FmXc2ivj.js";
|
|
3
3
|
const E = ["id", "innerHTML"], T = /* @__PURE__ */ m({
|
|
4
4
|
__name: "EpSvgShow",
|
|
5
5
|
props: {
|
package/dist/ep-lib-ts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ac as p, a4 as E, U as e, d as o, u as i, e as t, f as n, V as r, ae as d, g as c, A as C, B as l, N as u, C as S, h as m, D as b, i as f, v as k, a5 as v, k as T, l as h, W as I, m as L, E as g, F as x, af as A, w as B, X as D, Y as V, R as F, G as H, x as R, S as j, a6 as w, b as O, H as P, I as Q, o as W, p as q, a7 as G, Z as J, J as K, q as M, r as N, T as U, $ as X, s as Y, ad as Z, _, t as $, a0 as y, a1 as z, a2 as aa, a3 as sa } from "./index-
|
|
1
|
+
import { ac as p, a4 as E, U as e, d as o, u as i, e as t, f as n, V as r, ae as d, g as c, A as C, B as l, N as u, C as S, h as m, D as b, i as f, v as k, a5 as v, k as T, l as h, W as I, m as L, E as g, F as x, af as A, w as B, X as D, Y as V, R as F, G as H, x as R, S as j, a6 as w, b as O, H as P, I as Q, o as W, p as q, a7 as G, Z as J, J as K, q as M, r as N, T as U, $ as X, s as Y, ad as Z, _, t as $, a0 as y, a1 as z, a2 as aa, a3 as sa } from "./index-FmXc2ivj.js";
|
|
2
2
|
export {
|
|
3
3
|
p as EpAccordeon,
|
|
4
4
|
E as EpAlert,
|
package/dist/ep-lib-ts.umd.cjs
CHANGED
|
@@ -424,7 +424,7 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
424
424
|
absolute
|
|
425
425
|
${t.big?"min-h-screen":"h-96"}
|
|
426
426
|
bg-cover
|
|
427
|
-
bg-center`),i=u.computed(()=>t.src?t.src:"https://live.staticflickr.com/1757/42677241511_a350206ac2_b.jpg"),a=e,o=()=>{a("clicked")},{title:s,headerImgColor:l,big:c}=u.toRefs(t);return(d,h)=>d.type==="imgBg"?(u.openBlock(),u.createElementBlock("header",{key:0,class:u.normalizeClass(`${u.unref(c)?"h-screen ":"h-96"} items-center overflow-hidden relative `),ref:"el"},[u.createElementVNode("div",{class:u.normalizeClass(r.value),style:u.normalizeStyle(`background-image:url('${i.value}'); filter:url(#${u.unref(l)});`)},null,6),u.createElementVNode("div",{class:u.normalizeClass(`relative ${u.unref(c)?"mb-36":""} h-full items-end`)},[u.createElementVNode("div",tW,[d.synchrone?(u.openBlock(),u.createBlock(pa,{key:0,prependIcon:u.unref(B9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.labels.synchrone),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0),d.duration?(u.openBlock(),u.createBlock(pa,{key:1,prependIcon:u.unref(V9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.duration),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0),d.assessment?(u.openBlock(),u.createBlock(pa,{key:2,prependIcon:u.unref(P9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.labels.formatif),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0)]),u.createElementVNode("div",{class:u.normalizeClass(`${d.vAlign} ${d.hAlign} flex w-full grow h-96 `)},[u.createElementVNode("div",{class:u.normalizeClass(`${AW}`)},[u.unref(s)||d.subtitle?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(`${d.textBg?"inline-block backdrop-blur-md backdrop-brightness-50 backdrop-opacity-75 rounded":""} p-4 md:items-center`)},[u.createElementVNode("div",nW,[u.unref(s)?(u.openBlock(),u.createElementBlock("h1",rW,u.toDisplayString(u.unref(s)),1)):u.createCommentVNode("",!0),d.subtitle?(u.openBlock(),u.createElementBlock("h2",iW,u.toDisplayString(d.subtitle),1)):u.createCommentVNode("",!0)])],2)):u.createCommentVNode("",!0)],2)],2)],2),t.big?(u.openBlock(),u.createElementBlock("div",aW,[u.createElementVNode("div",{class:"mx-auto w-12 bg-white dark:text-black rounded-full p-2",onClick:o},[u.createVNode(kt,{iconPath:u.unref(FU),size:"32"},null,8,["iconPath"])])])):u.createCommentVNode("",!0),u.createVNode(pC)],2)):d.type==="simple"?(u.openBlock(),u.createElementBlock("header",oW,[u.createElementVNode("div",sW,[u.unref(s)?(u.openBlock(),u.createElementBlock("h1",lW,u.toDisplayString(u.unref(s)),1)):u.createCommentVNode("",!0),d.subtitle?(u.openBlock(),u.createElementBlock("h2",cW,u.toDisplayString(d.subtitle),1)):u.createCommentVNode("",!0)])])):(u.openBlock(),u.createElementBlock("header",uW,[u.createElementVNode("div",dW,[u.createElementVNode("div",hW,[u.createElementVNode("div",pW,[d.synchrone?(u.openBlock(),u.createBlock(pa,{key:0,prependIcon:u.unref(B9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.labels.synchrone),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0),d.duration?(u.openBlock(),u.createBlock(pa,{key:1,prependIcon:u.unref(V9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.duration),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0),d.assessment?(u.openBlock(),u.createBlock(pa,{key:2,prependIcon:u.unref(P9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.labels.formatif),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0)]),u.createElementVNode("div",{class:u.normalizeClass(`${d.vAlign} flex h-full pb-8 max-w-3xl`)},[u.createElementVNode("div",null,[u.unref(s)?(u.openBlock(),u.createElementBlock("h1",mW,u.toDisplayString(u.unref(s)),1)):u.createCommentVNode("",!0),d.subtitle?(u.openBlock(),u.createElementBlock("p",fW,u.toDisplayString(d.subtitle),1)):u.createCommentVNode("",!0),u.createElementVNode("div",gW,[u.renderSlot(d.$slots,"default")])])],2)]),u.createElementVNode("div",_W,[u.createElementVNode("img",{src:i.value,alt:"",class:"h-32 lg:h-full size-full object-cover",style:u.normalizeStyle(`background-image:url('${i.value}'); filter:url(#${u.unref(l)});`)},null,12,bW)])])]))}}),wf=Object.freeze(Object.defineProperty({__proto__:null,default:mC},Symbol.toStringTag,{value:"Module"})),EW={class:u.normalizeClass("md:flex md:flex-wrap rounded-md")},vW={key:0,class:"w-1/5 mr-6"},yW=["src"],SW={key:1,class:"flex items-center justify-center px-7"},fC=u.defineComponent({__name:"EpQuote",props:{author:{default:null},img:{default:null},card:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1}},setup(n){const e=n,t=u.computed(()=>{if(e.card)return"text-white"}),r=u.computed(()=>e.card?"text-white":"text-black dark:text-white"),i=u.computed(()=>e.card?"md:rounded-lg":"md:rounded-l-md"),{author:a,img:o,card:s,hideIcon:l}=u.toRefs(e);return(c,d)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(s)?"w-4/6 mx-auto":"")},[u.createVNode(vs,{density:u.unref(s)?"default":"compact",outlined:!u.unref(s),color:u.unref(s)?"primary":"bg-white"},{default:u.withCtx(()=>[u.createElementVNode("div",EW,[u.unref(o)?(u.openBlock(),u.createElementBlock("div",vW,[u.createElementVNode("img",{class:u.normalizeClass(`${i.value} md:w-full md:h-full md:object-cover md:rounded-l-md`),src:u.unref(o),alt:"Image of quote"},null,10,yW)])):u.unref(l)?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",SW,[u.createElementVNode("div",{class:u.normalizeClass(u.unref(s)?"text-white":"text-base dark:text-white")},[u.createVNode(kt,{size:60,"icon-path":u.unref(VU)},null,8,["icon-path"])],2)])),u.createElementVNode("div",{class:u.normalizeClass(`py-6 flex-1 ${t.value} ${u.unref(l)?"px-6":"pr-2"}`)},[u.renderSlot(c.$slots,"default"),u.unref(a)?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(Ua,{size:"border",color:u.unref(s)?"white":"base"},null,8,["color"]),u.createElementVNode("p",{class:u.normalizeClass(`italic ${r.value}`)},u.toDisplayString(u.unref(a)),3)],64)):u.createCommentVNode("",!0)],2)])]),_:3},8,["density","outlined","color"])],2))}}),If=Object.freeze(Object.defineProperty({__proto__:null,default:fC},Symbol.toStringTag,{value:"Module"})),CW={};function TW(n,e){return u.openBlock(),u.createElementBlock("div",null," no data ")}const pc=Object.freeze(Object.defineProperty({__proto__:null,default:Fa(CW,[["render",TW]])},Symbol.toStringTag,{value:"Module"})),xW={},wW={class:"py-6 px-3 w-1/4 min-w-[180px]"};function IW(n,e){return u.openBlock(),u.createElementBlock("ul",wW,[u.renderSlot(n.$slots,"default")])}const Rf=Object.freeze(Object.defineProperty({__proto__:null,default:Fa(xW,[["render",IW]])},Symbol.toStringTag,{value:"Module"})),RW={class:"flex items-center"},MW={key:0,class:"mr-2 min-w-fit px-2"},NW={key:0,class:"px-2"},Mf=Object.freeze(Object.defineProperty({__proto__:null,default:u.defineComponent({__name:"EpListitem",props:{type:{default:"default"},disabled:{default:"false"}},setup(n){const e=n,t=u.useSlots();console.log(t);const r=u.computed(()=>!!t.leftContent),i=u.computed(()=>!!t.rightContent),a=u.computed(()=>e.type=="nested"?"px-10":""),o=u.computed(()=>e.disabled=="true"?"opacity-75 text-slate-500 ":"hover:bg-gray-200 active:bg-gray-300");return(s,l)=>(u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(`flex flex-row flex-nowrap justify-between font-medium items-center py-4 ${a.value} ${o.value}`)},[u.createElementVNode("div",RW,[r.value?(u.openBlock(),u.createElementBlock("div",MW,[u.renderSlot(s.$slots,"leftContent")])):u.createCommentVNode("",!0),u.createElementVNode("div",null,[u.renderSlot(s.$slots,"default")])]),i.value?(u.openBlock(),u.createElementBlock("div",NW,[u.renderSlot(s.$slots,"rightContent")])):u.createCommentVNode("",!0)],2))}})},Symbol.toStringTag,{value:"Module"})),kW={class:"font-bold text-3xl"},OW=["innerHTML"],DW=["innerHTML"],LW=["src"],BW=["onClick"],PW={key:1,class:"flex-grow flex"},FW=["innerHTML"],UW=["src"],jW=["onClick"],GW={class:"flex-grow flex flex-col items-center"},VW={class:"grid grid-cols-2 gap-2"},zW={class:"col-span-1 flex flex-col items-center"},HW={class:"flex flex-col relative w-full gap-4 px-5 py-5 items-start overflow-auto border-l-4 border-gray-700",style:{"max-width":"600px",height:"300px"}},qW={class:"flex flex-col col-span-1 justify-center items-center px-4 border-l-2 border-gray-700 overflow-auto"},QW={class:"text-center"},Nf=Object.freeze(Object.defineProperty({__proto__:null,default:Fa(u.defineComponent({__name:"EpBranchingScenario",props:{scenarioTitle:{},initialInstruction:{default:null},generalFeedback:{},bgColor:{},decisionTree:{},transitionAnimation:{default:"fade"}},setup(n){const e=n,t=u.ref([]),r=u.ref(0),i=u.ref(null),a=u.ref(!0),o=h=>{let p=e.decisionTree;if(h.length>0)for(let m=0;m<h.length;m++)p=p.options[h[m]];return p!==e.decisionTree?p:null},s=()=>{l.value&&(t.value.length===0&&(a.value=!0),t.value.pop(),i.value=o(t.value),r.value=t.value.length)},l=u.computed(()=>r.value===0||i.value&&i.value.options&&i.value.options.length>0),c=()=>{r.value=0,i.value=null,t.value=[],a.value=!0},d=h=>{let p=[{question:e.decisionTree.rootQuestion,choice:e.decisionTree.options[h[0]].name}],m=e.decisionTree.options[h[0]];if(h.length>1)for(let f=1;f<h.length;f++){let _=m.question;m=m.options[h[f]],p.push({question:_,choice:m.name})}return p};return(h,p)=>(u.openBlock(),u.createElementBlock("div",null,[a.value?(u.openBlock(),u.createElementBlock("div",{key:0,class:"m-4 mx-auto w-2/3 bg-gray-200 dark:bg-slate-800 rounded-md flex flex-col items-center justify-around p-4 fade",style:u.normalizeStyle({minHeight:"500px",backgroundColor:h.bgColor})},[u.createElementVNode("h1",kW,u.toDisplayString(h.scenarioTitle),1),h.initialInstruction?(u.openBlock(),u.createElementBlock("div",{key:0,class:"text-center min-w-max m-3 flex flex-col items-center gap-3",innerHTML:u.unref(Gn)(h.initialInstruction)},null,8,OW)):u.createCommentVNode("",!0),u.createElementVNode("button",{class:"rounded bg-blue-500 text-white py-2 px-4 min-w-28 my-3",onClick:p[0]||(p[0]=m=>a.value=!1)},"Commencer")],4)):(u.openBlock(),u.createElementBlock("div",{key:1,class:"m-4 mx-auto w-2/3 rounded-md flex flex-col p-4 bg-gray-200 dark:bg-slate-800",style:u.normalizeStyle({minHeight:"500px",backgroundColor:h.bgColor})},[u.createElementVNode("div",null,[l.value?(u.openBlock(),u.createElementBlock("button",{key:0,class:u.normalizeClass(`rounded bg-blue-500 text-white py-2 px-4 m-2 ${h.transitionAnimation}`),onClick:s},[u.createVNode(kt,{"icon-path":u.unref(k9),size:"25"},null,8,["icon-path"])],2)):u.createCommentVNode("",!0)]),r.value===0?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(`flex-grow flex flex-col items-center justify-around ${h.transitionAnimation}`)},[u.createElementVNode("div",{class:"text-center min-w-max m-3 flex flex-col items-center gap-3",innerHTML:u.unref(Gn)(h.decisionTree.rootQuestion)},null,8,DW),h.decisionTree.imgSrc?(u.openBlock(),u.createElementBlock("img",{key:0,src:h.decisionTree.imgSrc,class:"rounded",width:"200"},null,8,LW)):u.createCommentVNode("",!0),u.createElementVNode("div",{class:u.normalizeClass(`w-full justify-items-center mx-4 grid ${h.decisionTree.options.length<=2?"grid-cols-2":"grid-cols-3"}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(h.decisionTree.options,(m,f)=>(u.openBlock(),u.createElementBlock("button",{class:u.normalizeClass(`rounded bg-blue-500 text-white py-2 px-4 min-w-28 max-w-40 my-3 ${f===h.decisionTree.options.length-1&&f%3===0?"col-span-3":"col-span-1"}`),key:f,onClick:_=>{t.value.push(f),r.value++,i.value=m}},u.toDisplayString(m.name),11,BW))),128))],2)],2)):(u.openBlock(),u.createElementBlock("div",PW,[l.value?(u.openBlock(),u.createElementBlock("div",{key:i.value.question,class:u.normalizeClass(`flex-grow flex flex-col items-center justify-around ${h.transitionAnimation}`)},[u.createElementVNode("div",{class:"text-center min-w-max m-3 flex flex-col items-center gap-3",innerHTML:u.unref(Gn)(i.value.question)},null,8,FW),i.value.imgSrc?(u.openBlock(),u.createElementBlock("img",{key:0,src:i.value.imgSrc,class:"rounded",width:"200"},null,8,UW)):u.createCommentVNode("",!0),u.createElementVNode("div",{class:u.normalizeClass(`w-full justify-items-center mx-4 grid ${i.value.options.length<=2?"grid-cols-2":"grid-cols-3"}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.value.options,(m,f)=>(u.openBlock(),u.createElementBlock("button",{class:u.normalizeClass(`rounded bg-blue-500 text-white py-2 px-4 min-w-28 max-w-40 my-3 ${f===i.value.options.length-1&&f%3===0?"col-span-3":"col-span-1"}`),key:f,onClick:_=>{t.value.push(f),r.value++,i.value=m}},u.toDisplayString(m.name),11,jW))),128))],2)],2)):(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(`flex-grow flex flex-col items-center ${h.transitionAnimation}`)},[u.createElementVNode("div",GW,[p[3]||(p[3]=u.createElementVNode("h1",{class:"my-4 font-bold text-3xl"},"Vous avez terminé le scénario!",-1)),u.createElementVNode("div",VW,[u.createElementVNode("div",zW,[p[1]||(p[1]=u.createElementVNode("h3",{class:"font-bold"},"Voici votre parcours",-1)),u.createElementVNode("div",HW,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(d(t.value),(m,f)=>(u.openBlock(),u.createElementBlock("div",{key:f,class:"path-item rounded bg-blue-500 text-white py-2 px-4 flex flex-col items-center"},[u.createElementVNode("u",null,u.toDisplayString(m.question),1),u.createElementVNode("p",null,u.toDisplayString(m.choice),1)]))),128))])]),u.createElementVNode("div",qW,[p[2]||(p[2]=u.createElementVNode("h3",{class:"font-bold"},"Feedback général",-1)),u.createElementVNode("p",QW,u.toDisplayString(h.generalFeedback),1)])])]),u.createElementVNode("button",{class:"rounded bg-blue-500 text-white py-2 px-4 min-w-28 my-3 col-span-1",onClick:c},"Recommencer")],2))]))],4))]))}}),[["__scopeId","data-v-22a86a44"]])},Symbol.toStringTag,{value:"Module"})),YW={class:"cursor-pointer flex items-center rounded-md py-3 px-3 text-xs font-semibold uppercase sm:flex-1 hover:bg-gray-200"},WW=["id","value","disabled","readonly"],$W={class:"ml-2"},kf=Object.freeze(Object.defineProperty({__proto__:null,default:u.defineComponent({__name:"EpCheckbox",props:{id:{default:"0"},label:{default:"check"},modelValue:{type:[String,Array,Boolean],default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},value:{default:void 0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=u.computed({get(){return t.modelValue},set(d){r("update:modelValue",d)}}),{id:a,label:o,disabled:s,readonly:l,value:c}=u.toRefs(t);return(d,h)=>(u.openBlock(),u.createElementBlock("label",YW,[u.withDirectives(u.createElementVNode("input",{type:"checkbox",id:u.unref(a),"onUpdate:modelValue":h[0]||(h[0]=p=>i.value=p),value:u.unref(c),disabled:u.unref(s),readonly:u.unref(l),name:"notification-method",class:"rounded bg-gray-200 border-gray-300 focus:border-transparent focus:bg-gray-200 text-primary focus:ring-1 focus:ring-offset-2 focus:ring-primary"},null,8,WW),[[u.vModelCheckbox,i.value]]),u.createElementVNode("span",$W,u.toDisplayString(u.unref(o)),1)]))}})},Symbol.toStringTag,{value:"Module"}));/**
|
|
427
|
+
bg-center`),i=u.computed(()=>t.src?t.src:"https://live.staticflickr.com/1757/42677241511_a350206ac2_b.jpg"),a=e,o=()=>{a("clicked")},{title:s,headerImgColor:l,big:c}=u.toRefs(t);return(d,h)=>d.type==="imgBg"?(u.openBlock(),u.createElementBlock("header",{key:0,class:u.normalizeClass(`${u.unref(c)?"h-screen ":"h-96"} items-center overflow-hidden relative `),ref:"el"},[u.createElementVNode("div",{class:u.normalizeClass(r.value),style:u.normalizeStyle(`background-image:url('${i.value}'); filter:url(#${u.unref(l)});`)},null,6),u.createElementVNode("div",{class:u.normalizeClass(`relative ${u.unref(c)?"mb-36":""} h-full items-end`)},[u.createElementVNode("div",tW,[d.synchrone?(u.openBlock(),u.createBlock(pa,{key:0,prependIcon:u.unref(B9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.labels.synchrone),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0),d.duration?(u.openBlock(),u.createBlock(pa,{key:1,prependIcon:u.unref(V9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.duration),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0),d.assessment?(u.openBlock(),u.createBlock(pa,{key:2,prependIcon:u.unref(P9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.labels.formatif),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0)]),u.createElementVNode("div",{class:u.normalizeClass(`${d.vAlign} ${d.hAlign} flex w-full grow h-96 `)},[u.createElementVNode("div",{class:u.normalizeClass(`${AW}`)},[u.unref(s)||d.subtitle?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(`${d.textBg?"inline-block backdrop-blur-md backdrop-brightness-50 backdrop-opacity-75 rounded":""} p-4 md:items-center`)},[u.createElementVNode("div",nW,[u.unref(s)?(u.openBlock(),u.createElementBlock("h1",rW,u.toDisplayString(u.unref(s)),1)):u.createCommentVNode("",!0),d.subtitle?(u.openBlock(),u.createElementBlock("h2",iW,u.toDisplayString(d.subtitle),1)):u.createCommentVNode("",!0)])],2)):u.createCommentVNode("",!0)],2)],2)],2),t.big?(u.openBlock(),u.createElementBlock("div",aW,[u.createElementVNode("div",{class:"mx-auto w-12 bg-white dark:text-black rounded-full p-2",onClick:o},[u.createVNode(kt,{iconPath:u.unref(FU),size:"32"},null,8,["iconPath"])])])):u.createCommentVNode("",!0),u.createVNode(pC)],2)):d.type==="simple"?(u.openBlock(),u.createElementBlock("header",oW,[u.createElementVNode("div",sW,[u.unref(s)?(u.openBlock(),u.createElementBlock("h1",lW,u.toDisplayString(u.unref(s)),1)):u.createCommentVNode("",!0),d.subtitle?(u.openBlock(),u.createElementBlock("h2",cW,u.toDisplayString(d.subtitle),1)):u.createCommentVNode("",!0)])])):(u.openBlock(),u.createElementBlock("header",uW,[u.createElementVNode("div",dW,[u.createElementVNode("div",hW,[u.createElementVNode("div",pW,[d.synchrone?(u.openBlock(),u.createBlock(pa,{key:0,prependIcon:u.unref(B9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.labels.synchrone),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0),d.duration?(u.openBlock(),u.createBlock(pa,{key:1,prependIcon:u.unref(V9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.duration),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0),d.assessment?(u.openBlock(),u.createBlock(pa,{key:2,prependIcon:u.unref(P9),size:"small"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.labels.formatif),1)]),_:1},8,["prependIcon"])):u.createCommentVNode("",!0)]),u.createElementVNode("div",{class:u.normalizeClass(`${d.vAlign} flex h-full pb-8 max-w-3xl`)},[u.createElementVNode("div",null,[u.unref(s)?(u.openBlock(),u.createElementBlock("h1",mW,u.toDisplayString(u.unref(s)),1)):u.createCommentVNode("",!0),d.subtitle?(u.openBlock(),u.createElementBlock("p",fW,u.toDisplayString(d.subtitle),1)):u.createCommentVNode("",!0),u.createElementVNode("div",gW,[u.renderSlot(d.$slots,"default")])])],2)]),u.createElementVNode("div",_W,[u.createElementVNode("img",{src:i.value,alt:"",class:"h-32 lg:h-full size-full object-cover",style:u.normalizeStyle(`filter:url(#${u.unref(l)});`)},null,12,bW)])])]))}}),wf=Object.freeze(Object.defineProperty({__proto__:null,default:mC},Symbol.toStringTag,{value:"Module"})),EW={class:u.normalizeClass("md:flex md:flex-wrap rounded-md")},vW={key:0,class:"w-1/5 mr-6"},yW=["src"],SW={key:1,class:"flex items-center justify-center px-7"},fC=u.defineComponent({__name:"EpQuote",props:{author:{default:null},img:{default:null},card:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1}},setup(n){const e=n,t=u.computed(()=>{if(e.card)return"text-white"}),r=u.computed(()=>e.card?"text-white":"text-black dark:text-white"),i=u.computed(()=>e.card?"md:rounded-lg":"md:rounded-l-md"),{author:a,img:o,card:s,hideIcon:l}=u.toRefs(e);return(c,d)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(s)?"w-4/6 mx-auto":"")},[u.createVNode(vs,{density:u.unref(s)?"default":"compact",outlined:!u.unref(s),color:u.unref(s)?"primary":"bg-white"},{default:u.withCtx(()=>[u.createElementVNode("div",EW,[u.unref(o)?(u.openBlock(),u.createElementBlock("div",vW,[u.createElementVNode("img",{class:u.normalizeClass(`${i.value} md:w-full md:h-full md:object-cover md:rounded-l-md`),src:u.unref(o),alt:"Image of quote"},null,10,yW)])):u.unref(l)?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",SW,[u.createElementVNode("div",{class:u.normalizeClass(u.unref(s)?"text-white":"text-base dark:text-white")},[u.createVNode(kt,{size:60,"icon-path":u.unref(VU)},null,8,["icon-path"])],2)])),u.createElementVNode("div",{class:u.normalizeClass(`py-6 flex-1 ${t.value} ${u.unref(l)?"px-6":"pr-2"}`)},[u.renderSlot(c.$slots,"default"),u.unref(a)?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(Ua,{size:"border",color:u.unref(s)?"white":"base"},null,8,["color"]),u.createElementVNode("p",{class:u.normalizeClass(`italic ${r.value}`)},u.toDisplayString(u.unref(a)),3)],64)):u.createCommentVNode("",!0)],2)])]),_:3},8,["density","outlined","color"])],2))}}),If=Object.freeze(Object.defineProperty({__proto__:null,default:fC},Symbol.toStringTag,{value:"Module"})),CW={};function TW(n,e){return u.openBlock(),u.createElementBlock("div",null," no data ")}const pc=Object.freeze(Object.defineProperty({__proto__:null,default:Fa(CW,[["render",TW]])},Symbol.toStringTag,{value:"Module"})),xW={},wW={class:"py-6 px-3 w-1/4 min-w-[180px]"};function IW(n,e){return u.openBlock(),u.createElementBlock("ul",wW,[u.renderSlot(n.$slots,"default")])}const Rf=Object.freeze(Object.defineProperty({__proto__:null,default:Fa(xW,[["render",IW]])},Symbol.toStringTag,{value:"Module"})),RW={class:"flex items-center"},MW={key:0,class:"mr-2 min-w-fit px-2"},NW={key:0,class:"px-2"},Mf=Object.freeze(Object.defineProperty({__proto__:null,default:u.defineComponent({__name:"EpListitem",props:{type:{default:"default"},disabled:{default:"false"}},setup(n){const e=n,t=u.useSlots();console.log(t);const r=u.computed(()=>!!t.leftContent),i=u.computed(()=>!!t.rightContent),a=u.computed(()=>e.type=="nested"?"px-10":""),o=u.computed(()=>e.disabled=="true"?"opacity-75 text-slate-500 ":"hover:bg-gray-200 active:bg-gray-300");return(s,l)=>(u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(`flex flex-row flex-nowrap justify-between font-medium items-center py-4 ${a.value} ${o.value}`)},[u.createElementVNode("div",RW,[r.value?(u.openBlock(),u.createElementBlock("div",MW,[u.renderSlot(s.$slots,"leftContent")])):u.createCommentVNode("",!0),u.createElementVNode("div",null,[u.renderSlot(s.$slots,"default")])]),i.value?(u.openBlock(),u.createElementBlock("div",NW,[u.renderSlot(s.$slots,"rightContent")])):u.createCommentVNode("",!0)],2))}})},Symbol.toStringTag,{value:"Module"})),kW={class:"font-bold text-3xl"},OW=["innerHTML"],DW=["innerHTML"],LW=["src"],BW=["onClick"],PW={key:1,class:"flex-grow flex"},FW=["innerHTML"],UW=["src"],jW=["onClick"],GW={class:"flex-grow flex flex-col items-center"},VW={class:"grid grid-cols-2 gap-2"},zW={class:"col-span-1 flex flex-col items-center"},HW={class:"flex flex-col relative w-full gap-4 px-5 py-5 items-start overflow-auto border-l-4 border-gray-700",style:{"max-width":"600px",height:"300px"}},qW={class:"flex flex-col col-span-1 justify-center items-center px-4 border-l-2 border-gray-700 overflow-auto"},QW={class:"text-center"},Nf=Object.freeze(Object.defineProperty({__proto__:null,default:Fa(u.defineComponent({__name:"EpBranchingScenario",props:{scenarioTitle:{},initialInstruction:{default:null},generalFeedback:{},bgColor:{},decisionTree:{},transitionAnimation:{default:"fade"}},setup(n){const e=n,t=u.ref([]),r=u.ref(0),i=u.ref(null),a=u.ref(!0),o=h=>{let p=e.decisionTree;if(h.length>0)for(let m=0;m<h.length;m++)p=p.options[h[m]];return p!==e.decisionTree?p:null},s=()=>{l.value&&(t.value.length===0&&(a.value=!0),t.value.pop(),i.value=o(t.value),r.value=t.value.length)},l=u.computed(()=>r.value===0||i.value&&i.value.options&&i.value.options.length>0),c=()=>{r.value=0,i.value=null,t.value=[],a.value=!0},d=h=>{let p=[{question:e.decisionTree.rootQuestion,choice:e.decisionTree.options[h[0]].name}],m=e.decisionTree.options[h[0]];if(h.length>1)for(let f=1;f<h.length;f++){let _=m.question;m=m.options[h[f]],p.push({question:_,choice:m.name})}return p};return(h,p)=>(u.openBlock(),u.createElementBlock("div",null,[a.value?(u.openBlock(),u.createElementBlock("div",{key:0,class:"m-4 mx-auto w-2/3 bg-gray-200 dark:bg-slate-800 rounded-md flex flex-col items-center justify-around p-4 fade",style:u.normalizeStyle({minHeight:"500px",backgroundColor:h.bgColor})},[u.createElementVNode("h1",kW,u.toDisplayString(h.scenarioTitle),1),h.initialInstruction?(u.openBlock(),u.createElementBlock("div",{key:0,class:"text-center min-w-max m-3 flex flex-col items-center gap-3",innerHTML:u.unref(Gn)(h.initialInstruction)},null,8,OW)):u.createCommentVNode("",!0),u.createElementVNode("button",{class:"rounded bg-blue-500 text-white py-2 px-4 min-w-28 my-3",onClick:p[0]||(p[0]=m=>a.value=!1)},"Commencer")],4)):(u.openBlock(),u.createElementBlock("div",{key:1,class:"m-4 mx-auto w-2/3 rounded-md flex flex-col p-4 bg-gray-200 dark:bg-slate-800",style:u.normalizeStyle({minHeight:"500px",backgroundColor:h.bgColor})},[u.createElementVNode("div",null,[l.value?(u.openBlock(),u.createElementBlock("button",{key:0,class:u.normalizeClass(`rounded bg-blue-500 text-white py-2 px-4 m-2 ${h.transitionAnimation}`),onClick:s},[u.createVNode(kt,{"icon-path":u.unref(k9),size:"25"},null,8,["icon-path"])],2)):u.createCommentVNode("",!0)]),r.value===0?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(`flex-grow flex flex-col items-center justify-around ${h.transitionAnimation}`)},[u.createElementVNode("div",{class:"text-center min-w-max m-3 flex flex-col items-center gap-3",innerHTML:u.unref(Gn)(h.decisionTree.rootQuestion)},null,8,DW),h.decisionTree.imgSrc?(u.openBlock(),u.createElementBlock("img",{key:0,src:h.decisionTree.imgSrc,class:"rounded",width:"200"},null,8,LW)):u.createCommentVNode("",!0),u.createElementVNode("div",{class:u.normalizeClass(`w-full justify-items-center mx-4 grid ${h.decisionTree.options.length<=2?"grid-cols-2":"grid-cols-3"}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(h.decisionTree.options,(m,f)=>(u.openBlock(),u.createElementBlock("button",{class:u.normalizeClass(`rounded bg-blue-500 text-white py-2 px-4 min-w-28 max-w-40 my-3 ${f===h.decisionTree.options.length-1&&f%3===0?"col-span-3":"col-span-1"}`),key:f,onClick:_=>{t.value.push(f),r.value++,i.value=m}},u.toDisplayString(m.name),11,BW))),128))],2)],2)):(u.openBlock(),u.createElementBlock("div",PW,[l.value?(u.openBlock(),u.createElementBlock("div",{key:i.value.question,class:u.normalizeClass(`flex-grow flex flex-col items-center justify-around ${h.transitionAnimation}`)},[u.createElementVNode("div",{class:"text-center min-w-max m-3 flex flex-col items-center gap-3",innerHTML:u.unref(Gn)(i.value.question)},null,8,FW),i.value.imgSrc?(u.openBlock(),u.createElementBlock("img",{key:0,src:i.value.imgSrc,class:"rounded",width:"200"},null,8,UW)):u.createCommentVNode("",!0),u.createElementVNode("div",{class:u.normalizeClass(`w-full justify-items-center mx-4 grid ${i.value.options.length<=2?"grid-cols-2":"grid-cols-3"}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.value.options,(m,f)=>(u.openBlock(),u.createElementBlock("button",{class:u.normalizeClass(`rounded bg-blue-500 text-white py-2 px-4 min-w-28 max-w-40 my-3 ${f===i.value.options.length-1&&f%3===0?"col-span-3":"col-span-1"}`),key:f,onClick:_=>{t.value.push(f),r.value++,i.value=m}},u.toDisplayString(m.name),11,jW))),128))],2)],2)):(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(`flex-grow flex flex-col items-center ${h.transitionAnimation}`)},[u.createElementVNode("div",GW,[p[3]||(p[3]=u.createElementVNode("h1",{class:"my-4 font-bold text-3xl"},"Vous avez terminé le scénario!",-1)),u.createElementVNode("div",VW,[u.createElementVNode("div",zW,[p[1]||(p[1]=u.createElementVNode("h3",{class:"font-bold"},"Voici votre parcours",-1)),u.createElementVNode("div",HW,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(d(t.value),(m,f)=>(u.openBlock(),u.createElementBlock("div",{key:f,class:"path-item rounded bg-blue-500 text-white py-2 px-4 flex flex-col items-center"},[u.createElementVNode("u",null,u.toDisplayString(m.question),1),u.createElementVNode("p",null,u.toDisplayString(m.choice),1)]))),128))])]),u.createElementVNode("div",qW,[p[2]||(p[2]=u.createElementVNode("h3",{class:"font-bold"},"Feedback général",-1)),u.createElementVNode("p",QW,u.toDisplayString(h.generalFeedback),1)])])]),u.createElementVNode("button",{class:"rounded bg-blue-500 text-white py-2 px-4 min-w-28 my-3 col-span-1",onClick:c},"Recommencer")],2))]))],4))]))}}),[["__scopeId","data-v-22a86a44"]])},Symbol.toStringTag,{value:"Module"})),YW={class:"cursor-pointer flex items-center rounded-md py-3 px-3 text-xs font-semibold uppercase sm:flex-1 hover:bg-gray-200"},WW=["id","value","disabled","readonly"],$W={class:"ml-2"},kf=Object.freeze(Object.defineProperty({__proto__:null,default:u.defineComponent({__name:"EpCheckbox",props:{id:{default:"0"},label:{default:"check"},modelValue:{type:[String,Array,Boolean],default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},value:{default:void 0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=u.computed({get(){return t.modelValue},set(d){r("update:modelValue",d)}}),{id:a,label:o,disabled:s,readonly:l,value:c}=u.toRefs(t);return(d,h)=>(u.openBlock(),u.createElementBlock("label",YW,[u.withDirectives(u.createElementVNode("input",{type:"checkbox",id:u.unref(a),"onUpdate:modelValue":h[0]||(h[0]=p=>i.value=p),value:u.unref(c),disabled:u.unref(s),readonly:u.unref(l),name:"notification-method",class:"rounded bg-gray-200 border-gray-300 focus:border-transparent focus:bg-gray-200 text-primary focus:ring-1 focus:ring-offset-2 focus:ring-primary"},null,8,WW),[[u.vModelCheckbox,i.value]]),u.createElementVNode("span",$W,u.toDisplayString(u.unref(o)),1)]))}})},Symbol.toStringTag,{value:"Module"}));/**
|
|
428
428
|
* vee-validate v4.15.0
|
|
429
429
|
* (c) 2024 Abdelrahman Awad
|
|
430
430
|
* @license MIT
|