@1024pix/epreuves-components 0.9.7 → 0.10.0
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/{ImageQuiz.ce-CoHr8kTK.js → ImageQuiz.ce-BbfMcldf.js} +12 -12
- package/dist/{LLMMessage.ce-DHyl5CcV.js → LLMMessage.ce-DBgXmxn9.js} +5 -5
- package/dist/{Loading.ce-B_mSjXBH.js → Loading.ce-BRzyhDRe.js} +1 -1
- package/dist/NavigationButton.ce-RaQYJjPs.js +98 -0
- package/dist/{_plugin-vue_export-helper-OrrhezDE.js → _plugin-vue_export-helper-CGpZIhKK.js} +17 -17
- package/dist/components/complete-phrase.ce.js.js +65 -67
- package/dist/components/image-quiz.ce.js.js +2 -2
- package/dist/components/image-quizzes.ce.js.js +2 -2
- package/dist/components/llm-compare-messages.ce.js.js +38 -34
- package/dist/components/llm-messages.ce.js.js +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +5 -5
- package/dist/components/message-conversation.ce.js.js +14 -14
- package/dist/components/pix-carousel.ce.js.js +16 -16
- package/dist/components/pix-cursor.ce.js.js +15 -15
- package/dist/{ButtonTooltip.ce-DJWPmZEW.js → i18n-DZYcdfDF.js} +370 -411
- package/dist/{shadow-dom-Bfma-Uia.js → shadow-dom-BdDj1I6f.js} +1 -1
- package/package.json +1 -1
- package/dist/NavigationButton.ce-CObYL4XH.js +0 -59
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as k, r as b,
|
|
2
|
-
import { L as V } from "../Loading.ce-
|
|
1
|
+
import { a as k, r as b, q as D, E as C, c as r, o as t, v as x, x as _, f as y, j as w, t as h, g as $, F as v, b as M, _ as N, D as E, e as B, d as T } from "../_plugin-vue_export-helper-CGpZIhKK.js";
|
|
2
|
+
import { L as V } from "../Loading.ce-BRzyhDRe.js";
|
|
3
3
|
const F = ["part"], L = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "message__loader message__content",
|
|
6
6
|
"aria-hidden": "true"
|
|
7
|
-
},
|
|
7
|
+
}, j = ["part"], z = { key: 0 }, I = /* @__PURE__ */ k({
|
|
8
8
|
__name: "Message.ce",
|
|
9
9
|
props: {
|
|
10
10
|
displaySender: { type: Boolean, default: !0 },
|
|
@@ -14,7 +14,7 @@ const F = ["part"], L = {
|
|
|
14
14
|
loadingDuration: { type: Number }
|
|
15
15
|
},
|
|
16
16
|
setup(n, { expose: c }) {
|
|
17
|
-
const s = b("hidden"), l = b([]), u =
|
|
17
|
+
const s = b("hidden"), l = b([]), u = D(() => n.message.content.split(`
|
|
18
18
|
`));
|
|
19
19
|
function m(e) {
|
|
20
20
|
return new Promise((i) => {
|
|
@@ -52,14 +52,14 @@ const F = ["part"], L = {
|
|
|
52
52
|
class: x(["message__content", { "hidden-state": s.value !== "visible" }]),
|
|
53
53
|
part: `message ${e.message.direction}`
|
|
54
54
|
}, [
|
|
55
|
-
(t(!0), r(v, null,
|
|
56
|
-
d > 0 ? (t(), r("br",
|
|
55
|
+
(t(!0), r(v, null, M(u.value, (o, d) => (t(), r(v, { key: d }, [
|
|
56
|
+
d > 0 ? (t(), r("br", z)) : _("", !0),
|
|
57
57
|
w(" " + h(o), 1)
|
|
58
58
|
], 64))), 128))
|
|
59
|
-
], 10,
|
|
59
|
+
], 10, j)
|
|
60
60
|
], 2));
|
|
61
61
|
}
|
|
62
|
-
}),
|
|
62
|
+
}), q = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion: reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", O = /* @__PURE__ */ N(I, [["styles", [q]]]), P = { part: "conversation" }, R = { class: "sr-only" }, G = /* @__PURE__ */ k({
|
|
63
63
|
__name: "MessageConversation.ce",
|
|
64
64
|
props: {
|
|
65
65
|
title: { default: "Conversation par messages", type: String },
|
|
@@ -67,7 +67,7 @@ const F = ["part"], L = {
|
|
|
67
67
|
animationSpeed: { default: 20, type: Number }
|
|
68
68
|
},
|
|
69
69
|
setup(n, { expose: c }) {
|
|
70
|
-
const s = 50 * n.animationSpeed, l =
|
|
70
|
+
const s = 50 * n.animationSpeed, l = D(
|
|
71
71
|
() => n.messages.reduce(
|
|
72
72
|
(a, e, i) => {
|
|
73
73
|
const o = m(e);
|
|
@@ -82,7 +82,7 @@ const F = ["part"], L = {
|
|
|
82
82
|
},
|
|
83
83
|
[]
|
|
84
84
|
)
|
|
85
|
-
), u =
|
|
85
|
+
), u = E("messages");
|
|
86
86
|
function m(a) {
|
|
87
87
|
return a.content.length * n.animationSpeed;
|
|
88
88
|
}
|
|
@@ -91,9 +91,9 @@ const F = ["part"], L = {
|
|
|
91
91
|
}
|
|
92
92
|
return c({
|
|
93
93
|
reset: g
|
|
94
|
-
}), (a, e) => (t(), r("figure",
|
|
95
|
-
y("figcaption",
|
|
96
|
-
(t(!0), r(v, null,
|
|
94
|
+
}), (a, e) => (t(), r("figure", P, [
|
|
95
|
+
y("figcaption", R, h(a.title), 1),
|
|
96
|
+
(t(!0), r(v, null, M(l.value, ({ message: i, displaySender: o, startAnimation: d, animationDuration: p }, f) => (t(), B(O, {
|
|
97
97
|
ref_for: !0,
|
|
98
98
|
ref: "messages",
|
|
99
99
|
message: i,
|
|
@@ -105,5 +105,5 @@ const F = ["part"], L = {
|
|
|
105
105
|
}, null, 8, ["message", "start-animation", "animation-duration", "display-sender"]))), 128))
|
|
106
106
|
]));
|
|
107
107
|
}
|
|
108
|
-
}),
|
|
108
|
+
}), H = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}", J = /* @__PURE__ */ N(G, [["styles", [H]]]);
|
|
109
109
|
window.customElements.define("message-conversation", T(J));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as b,
|
|
2
|
-
import {
|
|
3
|
-
import { N as B } from "../NavigationButton.ce-
|
|
1
|
+
import { a as b, q as _, c as a, o as s, v as N, f as l, x as E, H as M, j as T, t as m, _ as v, r as y, C as z, g as u, G as C, y as H, I as x, B as p, F as L, b as $, e as S, d as R } from "../_plugin-vue_export-helper-CGpZIhKK.js";
|
|
2
|
+
import { a as D, i as k, b as I } from "../i18n-DZYcdfDF.js";
|
|
3
|
+
import { B as A, N as B } from "../NavigationButton.ce-RaQYJjPs.js";
|
|
4
4
|
const V = {
|
|
5
5
|
"pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
|
|
6
6
|
}, F = {
|
|
7
7
|
"pix-carousel": { license: "Licencia de imagen", next: "Siguiente", of: "{{ currentSlide }} de {{ slideLength }}", previous: "Anterior", slide: "Diapositiva", title: "Carrusel" }
|
|
8
|
-
}, P = {
|
|
9
|
-
"pix-carousel": { license: "Licence de l’image", of: "{{ currentSlide }} sur {{ slideLength }}", next: "Suivant", previous: "Précédent", slide: "Diapositive", title: "Carrousel" }
|
|
10
8
|
}, G = {
|
|
9
|
+
"pix-carousel": { license: "Licence de l’image", of: "{{ currentSlide }} sur {{ slideLength }}", next: "Suivant", previous: "Précédent", slide: "Diapositive", title: "Carrousel" }
|
|
10
|
+
}, P = {
|
|
11
11
|
"pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
|
|
12
12
|
}, O = {
|
|
13
13
|
"pix-carousel": { license: "Afbeeldingslicentie", next: "Volgende", of: "{{ currentSlide }} van {{ slideLength }}", previous: "Vorige", slide: "Dia", title: "Carrousel" }
|
|
14
|
-
}, Z = ["aria-level"],
|
|
14
|
+
}, Z = ["aria-level"], q = ["innerHTML"], W = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "description"
|
|
17
17
|
}, J = /* @__PURE__ */ b({
|
|
@@ -45,10 +45,10 @@ const V = {
|
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "description",
|
|
47
47
|
innerHTML: n.description
|
|
48
|
-
}, null, 8,
|
|
48
|
+
}, null, 8, q)) : n.description ? (s(), a("p", W, m(n.description), 1)) : E("", !0)
|
|
49
49
|
], 2));
|
|
50
50
|
}
|
|
51
|
-
}), K = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{display:flex;align-items:center;font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;gap:8px;height:24px}.slide-info .description{font-size:.875rem}.slide-info .description ul li,.slide-info .description ol li{margin-left:1rem}@media only screen and (max-width:
|
|
51
|
+
}), K = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{display:flex;align-items:center;font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;gap:8px;min-height:24px}.slide-info .description{font-size:.875rem}.slide-info .description ul li,.slide-info .description ol li{margin-left:1rem}@media only screen and (max-width: 576px){.slide-info.active{border:none;padding-left:0}}", j = /* @__PURE__ */ v(J, [["styles", [K]]]), Q = ["aria-hidden", "aria-roledescription", "aria-label"], U = ["alt", "src"], X = {
|
|
52
52
|
key: 0,
|
|
53
53
|
class: "license"
|
|
54
54
|
}, Y = ["href"], ee = {
|
|
@@ -124,7 +124,7 @@ const V = {
|
|
|
124
124
|
}, null, 8, ["description", "title", "is-active", "title-level"])
|
|
125
125
|
], 10, Q));
|
|
126
126
|
}
|
|
127
|
-
}), oe = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:920px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;gap:12px;padding:0 16px}@media only screen and (max-width:
|
|
127
|
+
}), oe = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:920px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;gap:12px;padding:0 16px}@media only screen and (max-width: 576px){.license{font-size:.5rem}.image-container img{border-radius:8px}.text-image-container{padding:16px}}@media (prefers-reduced-motion: reduce){.slide{transition:none}}", ae = /* @__PURE__ */ v(se, [["styles", [oe]]]), le = {}, re = {
|
|
128
128
|
width: "25",
|
|
129
129
|
height: "24",
|
|
130
130
|
viewBox: "0 0 25 24",
|
|
@@ -169,7 +169,7 @@ const fe = /* @__PURE__ */ v(pe, [["render", me]]), ge = ["aria-roledescription"
|
|
|
169
169
|
function h(o) {
|
|
170
170
|
w.value = o, f.value = (f.value - o + i.slides.length) % i.slides.length;
|
|
171
171
|
}
|
|
172
|
-
const g =
|
|
172
|
+
const g = H();
|
|
173
173
|
return (o, r) => (s(), a("section", {
|
|
174
174
|
"aria-roledescription": o.$t("pix-carousel.title")
|
|
175
175
|
}, [
|
|
@@ -178,7 +178,7 @@ const fe = /* @__PURE__ */ v(pe, [["render", me]]), ge = ["aria-roledescription"
|
|
|
178
178
|
class: "slides",
|
|
179
179
|
id: p(g)
|
|
180
180
|
}, [
|
|
181
|
-
u(
|
|
181
|
+
u(A, {
|
|
182
182
|
class: "carousel__nav previous",
|
|
183
183
|
"aria-controls": p(g),
|
|
184
184
|
onClick: r[0] || (r[0] = (d) => h(1)),
|
|
@@ -201,7 +201,7 @@ const fe = /* @__PURE__ */ v(pe, [["render", me]]), ge = ["aria-roledescription"
|
|
|
201
201
|
type: o.type,
|
|
202
202
|
"disable-animation": o.disableAnimation
|
|
203
203
|
}, null, 8, ["slide", "direction", "label", "is-active", "title-level", "aspect-ratio", "type", "disable-animation"]))), 128)),
|
|
204
|
-
u(
|
|
204
|
+
u(A, {
|
|
205
205
|
class: "carousel__nav next",
|
|
206
206
|
"aria-controls": p(g),
|
|
207
207
|
onClick: r[1] || (r[1] = (d) => h(-1)),
|
|
@@ -247,10 +247,10 @@ const fe = /* @__PURE__ */ v(pe, [["render", me]]), ge = ["aria-roledescription"
|
|
|
247
247
|
])
|
|
248
248
|
], 8, ge));
|
|
249
249
|
}
|
|
250
|
-
}), we = "*{--pix-neutral-0: white;--pix-neutral-800: #253858;--pix-primary-100: #CEC3F4;--pix-primary-300: #957EE8;--pix-primary-700: #452D9D;--pix-primary-900: #291A5D;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.footer{padding:16px 56px;display:flex;align-items:start;gap:16px}.footer .footer-separator{border-left:1px solid;width:1px}.footer .control{display:flex;gap:8px;align-items:center}.footer .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .tagination{display:flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media only screen and (max-width:
|
|
251
|
-
|
|
252
|
-
window.customElements.define("pix-carousel",
|
|
250
|
+
}), we = "*{--pix-neutral-0: white;--pix-neutral-800: #253858;--pix-primary-100: #CEC3F4;--pix-primary-300: #957EE8;--pix-primary-700: #452D9D;--pix-primary-900: #291A5D;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.footer{padding:16px 56px;display:flex;align-items:start;gap:16px}.footer .footer-separator{border-left:1px solid;width:1px}.footer .control{display:flex;gap:8px;align-items:center}.footer .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .tagination{display:flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media only screen and (max-width: 576px){section .slides{grid-template-columns:0 100% 0;gap:0}section .slides .carousel__nav{display:none}.footer{flex-direction:column;padding:16px}.footer .footer-separator{display:none}}", Ce = /* @__PURE__ */ v(_e, [["styles", [we]]]);
|
|
251
|
+
D(/* @__PURE__ */ Object.assign({ "./locales/en.json": V, "./locales/es.json": F, "./locales/fr.json": G, "./locales/it.json": P, "./locales/nl.json": O })).catch((t) => console.error(t));
|
|
252
|
+
window.customElements.define("pix-carousel", R(Ce, {
|
|
253
253
|
configureApp(t) {
|
|
254
|
-
|
|
254
|
+
k.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(I, { i18next: k });
|
|
255
255
|
}
|
|
256
256
|
}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { a as
|
|
3
|
-
import { N as j } from "../NavigationButton.ce-
|
|
4
|
-
const
|
|
1
|
+
import { a as B, r as y, y as k, q as m, h as S, c as a, o as i, f as s, J as E, B as c, t as u, F as f, b, K as H, g, v as C, I as L, x as F, A as P, _ as D, d as q } from "../_plugin-vue_export-helper-CGpZIhKK.js";
|
|
2
|
+
import { a as G, i as w, b as J } from "../i18n-DZYcdfDF.js";
|
|
3
|
+
import { N as j } from "../NavigationButton.ce-RaQYJjPs.js";
|
|
4
|
+
const K = {}, R = {}, U = {
|
|
5
5
|
"pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
|
|
6
6
|
}, Q = {}, W = {}, X = ["for"], Y = {
|
|
7
7
|
class: "visible-options",
|
|
@@ -12,17 +12,17 @@ const R = {}, U = {}, q = {
|
|
|
12
12
|
}, le = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "confirm"
|
|
15
|
-
}, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */
|
|
15
|
+
}, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */ B({
|
|
16
16
|
__name: "PixCursor.ce",
|
|
17
17
|
props: {
|
|
18
18
|
options: { type: Array }
|
|
19
19
|
},
|
|
20
20
|
setup(d, { expose: M }) {
|
|
21
21
|
const p = d, r = y(Math.floor(p.options.length / 2)), o = y(!1), v = k(), h = k(), I = m(() => r.value === p.options.length - 1), N = m(() => r.value === 0), l = m(() => Number(r.value));
|
|
22
|
-
function
|
|
22
|
+
function $() {
|
|
23
23
|
o.value = !0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function z() {
|
|
26
26
|
o.value || (r.value = Math.max(0, l.value - 1));
|
|
27
27
|
}
|
|
28
28
|
function O() {
|
|
@@ -37,10 +37,10 @@ const R = {}, U = {}, q = {
|
|
|
37
37
|
return M({
|
|
38
38
|
reset: T
|
|
39
39
|
}), (t, x) => {
|
|
40
|
-
const V =
|
|
40
|
+
const V = S("i18next");
|
|
41
41
|
return i(), a("form", {
|
|
42
42
|
class: "pix-cursor",
|
|
43
|
-
onSubmit: P(
|
|
43
|
+
onSubmit: P($, ["prevent"])
|
|
44
44
|
}, [
|
|
45
45
|
s("div", null, [
|
|
46
46
|
s("label", {
|
|
@@ -49,13 +49,13 @@ const R = {}, U = {}, q = {
|
|
|
49
49
|
}, u(t.$t("pix-cursor.selectAnOption")), 9, X),
|
|
50
50
|
s("ul", Y, [
|
|
51
51
|
(i(!0), a(f, null, b(t.options, (n, e) => (i(), a("li", {
|
|
52
|
-
onClick: (
|
|
52
|
+
onClick: (A) => _(e),
|
|
53
53
|
key: e
|
|
54
54
|
}, u(n.label), 9, Z))), 128))
|
|
55
55
|
]),
|
|
56
56
|
s("datalist", { id: c(h) }, [
|
|
57
57
|
(i(!0), a(f, null, b(t.options, (n, e) => (i(), a("option", {
|
|
58
|
-
onClick: (
|
|
58
|
+
onClick: (A) => _(e),
|
|
59
59
|
key: e,
|
|
60
60
|
value: e,
|
|
61
61
|
label: n.label
|
|
@@ -74,7 +74,7 @@ const R = {}, U = {}, q = {
|
|
|
74
74
|
]),
|
|
75
75
|
s("div", ne, [
|
|
76
76
|
g(j, {
|
|
77
|
-
onClick:
|
|
77
|
+
onClick: z,
|
|
78
78
|
disabled: o.value || N.value,
|
|
79
79
|
label: t.$t("pix-cursor.previous"),
|
|
80
80
|
"aria-controls": c(v),
|
|
@@ -129,9 +129,9 @@ const R = {}, U = {}, q = {
|
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
}), ue = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", pe = /* @__PURE__ */ D(de, [["styles", [ue]], ["__scopeId", "data-v-58e704c5"]]);
|
|
132
|
-
|
|
133
|
-
window.customElements.define("pix-cursor",
|
|
132
|
+
G(/* @__PURE__ */ Object.assign({ "./locales/en.json": K, "./locales/es.json": R, "./locales/fr.json": U, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
|
|
133
|
+
window.customElements.define("pix-cursor", q(pe, {
|
|
134
134
|
configureApp(d) {
|
|
135
|
-
w.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(
|
|
135
|
+
w.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(J, { i18next: w });
|
|
136
136
|
}
|
|
137
137
|
}));
|