🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@1doc3/synapse-viewer-2

Package Overview
Dependencies
Maintainers
8
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@1doc3/synapse-viewer-2 - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+1
-1
dist/style.css

@@ -1,1 +0,1 @@

.title[data-v-90907f88]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.img-container[data-v-90907f88]{display:flex;justify-content:center}.img-container .img-selection[data-v-90907f88]{position:relative}.img-container .img-selection img[data-v-90907f88]{height:100px}.img-container .img-selection .point[data-v-90907f88]{position:absolute;background-color:#ff3a3a80;width:25px;height:25px;border-radius:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center}.img-container .img-selection .point .subpoint[data-v-90907f88]{background-color:#ff3737be;width:14px;height:14px;border-radius:50%}.title[data-v-94c6e091]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-94c6e091]{padding:16px;border:1px solid #EAEAF9;border-radius:4px;background-color:#f8f8fd;color:#172b4d;font-size:13px;letter-spacing:0;line-height:16px}.painlevel[data-v-94c6e091]{border:solid 1px #e7e7e7;border-radius:5px}.painlevel .box-container[data-v-94c6e091]{cursor:pointer;display:flex;flex-direction:column;align-items:center;flex-grow:1;margin-left:4px}.painlevel .box-container[data-v-94c6e091]:first-child{margin-left:0}.painlevel .box-container .box[data-v-94c6e091]{height:45px;width:100%}.help-text[data-v-94c6e091]{font-size:14px;color:#172b4d}.title[data-v-ae99b734]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-ae99b734]{border:1px solid #EAEAF9;padding:16px;border-radius:4px;background-color:#e2e2ef;color:#172b4d;font-size:13px;font-weight:700;letter-spacing:0;line-height:16px}.answer-section ul[data-v-ae99b734]{margin:0;padding-left:inherit}.no-selected[data-v-ae99b734]{color:#172b4d;font-size:13px;letter-spacing:0;line-height:20px}.title[data-v-b10d5f3c]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-b10d5f3c]{border:1px solid #EAEAF9;padding:16px;border-radius:4px;background-color:#e2e2ef;color:#172b4d;font-size:13px;font-weight:700;letter-spacing:0;line-height:16px}.answer-section.warning[data-v-b10d5f3c]{border:1px solid #EAEAF9;background-color:#ffefe5;color:#ff5900}.answer-section ul[data-v-b10d5f3c]{margin:0;padding-left:inherit}.no-selected[data-v-b10d5f3c]{color:#172b4d;font-size:13px;letter-spacing:0;line-height:20px}.title[data-v-95bafdfb]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-95bafdfb]{padding:16px;border:1px solid #EAEAF9;border-radius:4px;background-color:#f8f8fd;color:#172b4d;font-size:13px;letter-spacing:0;line-height:16px}.title[data-v-46a54f37]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.badge[data-v-46a54f37]{color:#172b4d;border:1px solid #e2e2e2;padding:6px 8px;border-radius:10px;gap:6px;align-items:center}.badge .preview[data-v-46a54f37]{border-radius:10px;max-width:80px}.box[data-v-1d8ad39f]{background-color:#fff;color:#2a3353}.box .title-section[data-v-1d8ad39f]{display:flex;align-items:center;cursor:pointer}.box .title-section .title[data-v-1d8ad39f]{color:#00b8cc;font-size:13px;font-weight:700;flex-grow:1}.box .title-section .icon-arrow-up[data-v-1d8ad39f],.box .title-section .icon-arrow-down[data-v-1d8ad39f]{float:right;color:#c1c7d0;font-size:7px;font-weight:700}.box .content[data-v-1d8ad39f]{word-break:break-word;overflow-y:auto;overflow-x:hidden}.title[data-v-38c08e79],.title[data-v-70fcbf20],.title[data-v-c13d9646]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}
.title[data-v-90907f88]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.img-container[data-v-90907f88]{display:flex;justify-content:center}.img-container .img-selection[data-v-90907f88]{position:relative}.img-container .img-selection img[data-v-90907f88]{height:100px}.img-container .img-selection .point[data-v-90907f88]{position:absolute;background-color:#ff3a3a80;width:25px;height:25px;border-radius:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center}.img-container .img-selection .point .subpoint[data-v-90907f88]{background-color:#ff3737be;width:14px;height:14px;border-radius:50%}.title[data-v-94c6e091]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-94c6e091]{padding:16px;border:1px solid #EAEAF9;border-radius:4px;background-color:#f8f8fd;color:#172b4d;font-size:13px;letter-spacing:0;line-height:16px}.painlevel[data-v-94c6e091]{border:solid 1px #e7e7e7;border-radius:5px}.painlevel .box-container[data-v-94c6e091]{cursor:pointer;display:flex;flex-direction:column;align-items:center;flex-grow:1;margin-left:4px}.painlevel .box-container[data-v-94c6e091]:first-child{margin-left:0}.painlevel .box-container .box[data-v-94c6e091]{height:45px;width:100%}.help-text[data-v-94c6e091]{font-size:14px;color:#172b4d}.title[data-v-ae99b734]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-ae99b734]{border:1px solid #EAEAF9;padding:16px;border-radius:4px;background-color:#e2e2ef;color:#172b4d;font-size:13px;font-weight:700;letter-spacing:0;line-height:16px}.answer-section ul[data-v-ae99b734]{margin:0;padding-left:inherit}.no-selected[data-v-ae99b734]{color:#172b4d;font-size:13px;letter-spacing:0;line-height:20px}.title[data-v-ba59488c]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-ba59488c]{border:1px solid #EAEAF9;padding:16px;border-radius:4px;background-color:#e2e2ef;color:#172b4d;font-size:13px;font-weight:700;letter-spacing:0;line-height:16px}.answer-section.warning[data-v-ba59488c]{border:1px solid #EAEAF9;background-color:#ffefe5;color:#ff5900}.answer-section ul[data-v-ba59488c]{margin:0;padding-left:inherit}.no-selected[data-v-ba59488c]{color:#172b4d;font-size:13px;letter-spacing:0;line-height:20px}.title[data-v-351a44e5]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-351a44e5]{padding:16px;border:1px solid #EAEAF9;border-radius:4px;background-color:#f8f8fd;color:#172b4d;font-size:13px;letter-spacing:0;line-height:16px}.title[data-v-46a54f37]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.badge[data-v-46a54f37]{color:#172b4d;border:1px solid #e2e2e2;padding:6px 8px;border-radius:10px;gap:6px;align-items:center}.badge .preview[data-v-46a54f37]{border-radius:10px;max-width:80px}.box[data-v-1d8ad39f]{background-color:#fff;color:#2a3353}.box .title-section[data-v-1d8ad39f]{display:flex;align-items:center;cursor:pointer}.box .title-section .title[data-v-1d8ad39f]{color:#00b8cc;font-size:13px;font-weight:700;flex-grow:1}.box .title-section .icon-arrow-up[data-v-1d8ad39f],.box .title-section .icon-arrow-down[data-v-1d8ad39f]{float:right;color:#c1c7d0;font-size:7px;font-weight:700}.box .content[data-v-1d8ad39f]{word-break:break-word;overflow-y:auto;overflow-x:hidden}.title[data-v-38c08e79],.title[data-v-d48c9c06],.title[data-v-7b415bc9],.title[data-v-1b10d527]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}

@@ -1,18 +0,18 @@

var E = Math.pow;
import { openBlock as i, createElementBlock as s, createElementVNode as o, toDisplayString as m, normalizeStyle as x, pushScopeId as S, popScopeId as k, Fragment as v, renderList as b, createCommentVNode as r, normalizeClass as V, withDirectives as C, renderSlot as L, vShow as z, resolveComponent as f, createBlock as p, withCtx as y, createVNode as _, createTextVNode as M } from "vue";
const B = (e) => (S("data-v-90907f88"), e = e(), k(), e), U = { class: "title mb-2" }, O = { class: "img-container" }, j = { class: "img-selection" }, G = ["src"], J = /* @__PURE__ */ B(() => /* @__PURE__ */ o("div", { class: "subpoint" }, null, -1)), K = [
J
var ot = Math.pow;
import { openBlock as n, createElementBlock as s, createElementVNode as w, toDisplayString as Q, normalizeStyle as rt, pushScopeId as W, popScopeId as B, Fragment as x, renderList as A, createCommentVNode as g, normalizeClass as Tt, withDirectives as $t, renderSlot as St, vShow as qt, resolveComponent as D, createBlock as $, withCtx as O, createVNode as q, createTextVNode as ft } from "vue";
const kt = (t) => (W("data-v-90907f88"), t = t(), B(), t), Dt = { class: "title mb-2" }, xt = { class: "img-container" }, Mt = { class: "img-selection" }, Qt = ["src"], Pt = /* @__PURE__ */ kt(() => /* @__PURE__ */ w("div", { class: "subpoint" }, null, -1)), It = [
Pt
];
function R(e, a, t, q, n, w) {
return i(), s("div", null, [
o("div", U, m(t.title), 1),
o("div", O, [
o("div", j, [
o("img", {
src: t.question.questionData.imgUrl
}, null, 8, G),
o("div", {
function Ct(t, d, e, S, u, v) {
return n(), s("div", null, [
w("div", Dt, Q(e.title), 1),
w("div", xt, [
w("div", Mt, [
w("img", {
src: e.question.questionData.imgUrl
}, null, 8, Qt),
w("div", {
class: "point",
style: x({ top: `${t.question.answer.y}%`, left: `${t.question.answer.x}%` })
}, K, 4)
style: rt({ top: `${e.question.answer.y}%`, left: `${e.question.answer.x}%` })
}, It, 4)
])

@@ -22,32 +22,32 @@ ])

}
const T = (e, a) => {
const t = e.__vccOpts || e;
for (const [q, n] of a)
t[q] = n;
return t;
}, W = {
const F = (t, d) => {
const e = t.__vccOpts || t;
for (const [S, u] of d)
e[S] = u;
return e;
}, Ot = {
props: ["question", "title"]
}, X = /* @__PURE__ */ T(W, [["render", R], ["__scopeId", "data-v-90907f88"]]), Y = (e) => (S("data-v-94c6e091"), e = e(), k(), e), Z = { class: "title mb-2" }, ee = { class: "answer-section mb-2" }, te = { class: "painlevel mb-1" }, ie = { class: "d-flex align-item-center justify-content-center" }, se = { class: "box-container" }, ne = { class: "mb-2" }, le = /* @__PURE__ */ Y(() => /* @__PURE__ */ o("div", { class: "d-flex justify-content-between" }, [
/* @__PURE__ */ o("div", { class: "help-text" }, "Sin dolor"),
/* @__PURE__ */ o("div", { class: "help-text" }, "Intolerable")
}, At = /* @__PURE__ */ F(Ot, [["render", Ct], ["__scopeId", "data-v-90907f88"]]), Nt = (t) => (W("data-v-94c6e091"), t = t(), B(), t), Ht = { class: "title mb-2" }, Lt = { class: "answer-section mb-2" }, Ft = { class: "painlevel mb-1" }, Yt = { class: "d-flex align-item-center justify-content-center" }, Et = { class: "box-container" }, Vt = { class: "mb-2" }, zt = /* @__PURE__ */ Nt(() => /* @__PURE__ */ w("div", { class: "d-flex justify-content-between" }, [
/* @__PURE__ */ w("div", { class: "help-text" }, "Sin dolor"),
/* @__PURE__ */ w("div", { class: "help-text" }, "Intolerable")
], -1));
function oe(e, a, t, q, n, w) {
return i(), s("div", null, [
o("div", Z, m(t.title), 1),
o("div", ee, m(w.answerText), 1),
o("div", te, [
o("div", ie, [
(i(!0), s(v, null, b(n.levels, (d) => (i(), s("div", se, [
o("div", {
function jt(t, d, e, S, u, v) {
return n(), s("div", null, [
w("div", Ht, Q(e.title), 1),
w("div", Lt, Q(v.answerText), 1),
w("div", Ft, [
w("div", Yt, [
(n(!0), s(x, null, A(u.levels, (y) => (n(), s("div", Et, [
w("div", {
class: "box mb-2",
style: x({ "background-color": d.value <= w.selectedValue || d.value <= n.hoverValue ? d.color : "#DADDE7" })
style: rt({ "background-color": y.value <= v.selectedValue || y.value <= u.hoverValue ? y.color : "#DADDE7" })
}, null, 4),
o("div", ne, m(d.value), 1)
w("div", Vt, Q(y.value), 1)
]))), 256))
])
]),
le
zt
]);
}
const ae = {
const Ut = {
props: ["value", "title"],

@@ -84,26 +84,26 @@ data() {

immediate: !0,
handler(e) {
e && (this.question = e, !this.question.answer && this.question.questionData.min && (this.question.answer = this.question.questionData.min));
handler(t) {
t && (this.question = t, !this.question.answer && this.question.questionData.min && (this.question.answer = this.question.questionData.min));
}
}
}
}, P = /* @__PURE__ */ T(ae, [["render", oe], ["__scopeId", "data-v-94c6e091"]]), ce = (e) => (S("data-v-ae99b734"), e = e(), k(), e), ue = { class: "title mb-2" }, re = { class: "answer-section mb-2" }, de = { key: 0 }, _e = { class: "mb-1" }, he = { key: 1 }, pe = {
}, ut = /* @__PURE__ */ F(Ut, [["render", jt], ["__scopeId", "data-v-94c6e091"]]), Wt = (t) => (W("data-v-ae99b734"), t = t(), B(), t), Bt = { class: "title mb-2" }, Jt = { class: "answer-section mb-2" }, Zt = { key: 0 }, Gt = { class: "mb-1" }, Kt = { key: 1 }, Rt = {
key: 0,
class: "no-selected"
}, we = /* @__PURE__ */ ce(() => /* @__PURE__ */ o("div", { class: "mb-2" }, "No seleccionados", -1)), ve = { class: "mb-2" };
function fe(e, a, t, q, n, w) {
return i(), s("div", null, [
o("div", ue, m(t.title), 1),
o("div", re, [
t.question.answer != null ? (i(), s("ul", de, [
o("li", _e, m(w.answerLabel), 1)
])) : (i(), s("span", he, "Ninguno"))
}, Xt = /* @__PURE__ */ Wt(() => /* @__PURE__ */ w("div", { class: "mb-2" }, "No seleccionados", -1)), te = { class: "mb-2" };
function ee(t, d, e, S, u, v) {
return n(), s("div", null, [
w("div", Bt, Q(e.title), 1),
w("div", Jt, [
e.question.answer != null ? (n(), s("ul", Zt, [
w("li", Gt, Q(v.answerLabel), 1)
])) : (n(), s("span", Kt, "Ninguno"))
]),
w.noSelectedText ? (i(), s("div", pe, [
we,
o("div", ve, m(w.noSelectedText), 1)
])) : r("", !0)
v.noSelectedText ? (n(), s("div", Rt, [
Xt,
w("div", te, Q(v.noSelectedText), 1)
])) : g("", !0)
]);
}
const me = {
const ne = {
props: ["title", "question"],

@@ -113,5 +113,5 @@ computed: {

if (this.question && this.question.answer) {
const e = this.question.questionData.options.find((a) => this.question.answer === a.value);
if (e)
return e.title ? e.title + " " + e.label : e.label;
const t = this.question.questionData.options.find((d) => this.question.answer === d.value);
if (t)
return t.title ? t.title + " " + t.label : t.label;
}

@@ -122,5 +122,5 @@ return null;

if (this.question && !this.question.hideUnselectedAnswers && this.answerLabel) {
const e = this.question.questionData.options.find((t) => this.question.answer === t.value), a = this.question.questionData.options.filter((t) => ![e].includes(t));
if (a)
return a.map((t) => t.title ? t.title + " " + t.label : t.label).join(", ");
const t = this.question.questionData.options.find((e) => this.question.answer === e.value), d = this.question.questionData.options.filter((e) => ![t].includes(e));
if (d)
return d.map((e) => e.title ? e.title + " " + e.label : e.label).join(", ");
}

@@ -130,23 +130,23 @@ return null;

}
}, I = /* @__PURE__ */ T(me, [["render", fe], ["__scopeId", "data-v-ae99b734"]]), ye = (e) => (S("data-v-b10d5f3c"), e = e(), k(), e), be = { class: "title mb-2" }, qe = { key: 0 }, ge = { class: "mb-2" }, Te = { key: 1 }, Qe = {
}, it = /* @__PURE__ */ F(ne, [["render", ee], ["__scopeId", "data-v-ae99b734"]]), ie = (t) => (W("data-v-ba59488c"), t = t(), B(), t), se = { class: "title mb-2" }, ae = { key: 0 }, le = { class: "mb-2" }, oe = { key: 1 }, re = {
key: 0,
class: "no-selected"
}, Se = /* @__PURE__ */ ye(() => /* @__PURE__ */ o("div", { class: "mb-2" }, "No seleccionados", -1)), ke = { class: "mb-2" };
function xe(e, a, t, q, n, w) {
return i(), s("div", null, [
o("div", be, m(t.title), 1),
o("div", {
class: V(["answer-section mb-2", { warning: t.type === "warning" }])
}, ue = /* @__PURE__ */ ie(() => /* @__PURE__ */ w("div", { class: "mb-2" }, "No seleccionados", -1)), ce = { class: "mb-2" };
function de(t, d, e, S, u, v) {
return n(), s("div", null, [
w("div", se, Q(e.title), 1),
w("div", {
class: Tt(["answer-section mb-2", { warning: e.type === "warning" }])
}, [
t.question.answer != null ? (i(), s("ul", qe, [
(i(!0), s(v, null, b(w.answerLabels, (d) => (i(), s("li", ge, m(d), 1))), 256))
])) : (i(), s("span", Te, "Ninguno"))
e.question.answer != null ? (n(), s("ul", ae, [
(n(!0), s(x, null, A(v.answerLabels, (y) => (n(), s("li", le, Q(y), 1))), 256))
])) : (n(), s("span", oe, "Ninguno"))
], 2),
w.noSelectedText ? (i(), s("div", Qe, [
Se,
o("div", ke, m(w.noSelectedText), 1)
])) : r("", !0)
v.noSelectedText ? (n(), s("div", re, [
ue,
w("div", ce, Q(v.noSelectedText), 1)
])) : g("", !0)
]);
}
const Pe = {
const he = {
props: ["title", "question", "type"],

@@ -156,6 +156,6 @@ computed: {

if (this.question && this.question.answer) {
if (this.question.type === "multipleSelection")
return this.question.questionData.options.filter((a) => this.question.answer.includes(a.value)).map((a) => a.label);
if (this.question.type === "multipleSelection" || this.question.type === "imageMultipleSelector")
return this.question.questionData.options.filter((d) => this.question.answer.includes(d.value)).map((d) => d.label);
if (this.question.type === "autocomplete")
return this.question.answer.map((e) => e.label);
return this.question.answer.map((t) => t.label);
}

@@ -166,5 +166,5 @@ return [];

if (this.question && !this.question.hideUnselectedAnswers && this.answerLabels.length > 0 && this.question.type === "multipleSelection") {
const e = this.question.questionData.options.filter((t) => this.question.answer.includes(t.value)), a = this.question.questionData.options.filter((t) => !e.includes(t));
if (a)
return a.map((t) => t.label).join(", ");
const t = this.question.questionData.options.filter((e) => this.question.answer.includes(e.value)), d = this.question.questionData.options.filter((e) => !t.includes(e));
if (d)
return d.map((e) => e.label).join(", ");
}

@@ -174,32 +174,351 @@ return null;

}
}, $ = /* @__PURE__ */ T(Pe, [["render", xe], ["__scopeId", "data-v-b10d5f3c"]]), Ie = (e) => (S("data-v-95bafdfb"), e = e(), k(), e), De = { class: "title mb-2" }, Ee = {
}, ct = /* @__PURE__ */ F(he, [["render", de], ["__scopeId", "data-v-ba59488c"]]);
var _e = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
function fe(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var pt = { exports: {} };
(function(t, d) {
(function(e, S) {
t.exports = S();
})(_e, function() {
var e = 1e3, S = 6e4, u = 36e5, v = "millisecond", y = "second", m = "minute", M = "hour", c = "day", L = "week", o = "month", R = "quarter", Y = "year", E = "date", X = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, mt = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, gt = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(h) {
var l = ["th", "st", "nd", "rd"], i = h % 100;
return "[" + h + (l[(i - 20) % 10] || l[i] || l[0]) + "]";
} }, at = function(h, l, i) {
var r = String(h);
return !r || r.length >= l ? h : "" + Array(l + 1 - r.length).join(i) + h;
}, bt = { s: at, z: function(h) {
var l = -h.utcOffset(), i = Math.abs(l), r = Math.floor(i / 60), a = i % 60;
return (l <= 0 ? "+" : "-") + at(r, 2, "0") + ":" + at(a, 2, "0");
}, m: function h(l, i) {
if (l.date() < i.date())
return -h(i, l);
var r = 12 * (i.year() - l.year()) + (i.month() - l.month()), a = l.clone().add(r, o), f = i - a < 0, p = l.clone().add(r + (f ? -1 : 1), o);
return +(-(r + (i - a) / (f ? a - p : p - a)) || 0);
}, a: function(h) {
return h < 0 ? Math.ceil(h) || 0 : Math.floor(h);
}, p: function(h) {
return { M: o, y: Y, w: L, d: c, D: E, h: M, m, s: y, ms: v, Q: R }[h] || String(h || "").toLowerCase().replace(/s$/, "");
}, u: function(h) {
return h === void 0;
} }, Z = "en", z = {};
z[Z] = gt;
var dt = "$isDayjsObject", lt = function(h) {
return h instanceof et || !(!h || !h[dt]);
}, tt = function h(l, i, r) {
var a;
if (!l)
return Z;
if (typeof l == "string") {
var f = l.toLowerCase();
z[f] && (a = f), i && (z[f] = i, a = f);
var p = l.split("-");
if (!a && p.length > 1)
return h(p[0]);
} else {
var T = l.name;
z[T] = l, a = T;
}
return !r && a && (Z = a), a || !r && Z;
}, P = function(h, l) {
if (lt(h))
return h.clone();
var i = typeof l == "object" ? l : {};
return i.date = h, i.args = arguments, new et(i);
}, b = bt;
b.l = tt, b.i = lt, b.w = function(h, l) {
return P(h, { locale: l.$L, utc: l.$u, x: l.$x, $offset: l.$offset });
};
var et = function() {
function h(i) {
this.$L = tt(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[dt] = !0;
}
var l = h.prototype;
return l.parse = function(i) {
this.$d = function(r) {
var a = r.date, f = r.utc;
if (a === null)
return /* @__PURE__ */ new Date(NaN);
if (b.u(a))
return /* @__PURE__ */ new Date();
if (a instanceof Date)
return new Date(a);
if (typeof a == "string" && !/Z$/i.test(a)) {
var p = a.match(_);
if (p) {
var T = p[2] - 1 || 0, k = (p[7] || "0").substring(0, 3);
return f ? new Date(Date.UTC(p[1], T, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, k)) : new Date(p[1], T, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, k);
}
}
return new Date(a);
}(i), this.init();
}, l.init = function() {
var i = this.$d;
this.$y = i.getFullYear(), this.$M = i.getMonth(), this.$D = i.getDate(), this.$W = i.getDay(), this.$H = i.getHours(), this.$m = i.getMinutes(), this.$s = i.getSeconds(), this.$ms = i.getMilliseconds();
}, l.$utils = function() {
return b;
}, l.isValid = function() {
return this.$d.toString() !== X;
}, l.isSame = function(i, r) {
var a = P(i);
return this.startOf(r) <= a && a <= this.endOf(r);
}, l.isAfter = function(i, r) {
return P(i) < this.startOf(r);
}, l.isBefore = function(i, r) {
return this.endOf(r) < P(i);
}, l.$g = function(i, r, a) {
return b.u(i) ? this[r] : this.set(a, i);
}, l.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, l.valueOf = function() {
return this.$d.getTime();
}, l.startOf = function(i, r) {
var a = this, f = !!b.u(r) || r, p = b.p(i), T = function(U, N) {
var V = b.w(a.$u ? Date.UTC(a.$y, N, U) : new Date(a.$y, N, U), a);
return f ? V : V.endOf(c);
}, k = function(U, N) {
return b.w(a.toDate()[U].apply(a.toDate("s"), (f ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(N)), a);
}, I = this.$W, C = this.$M, H = this.$D, J = "set" + (this.$u ? "UTC" : "");
switch (p) {
case Y:
return f ? T(1, 0) : T(31, 11);
case o:
return f ? T(1, C) : T(0, C + 1);
case L:
var j = this.$locale().weekStart || 0, G = (I < j ? I + 7 : I) - j;
return T(f ? H - G : H + (6 - G), C);
case c:
case E:
return k(J + "Hours", 0);
case M:
return k(J + "Minutes", 1);
case m:
return k(J + "Seconds", 2);
case y:
return k(J + "Milliseconds", 3);
default:
return this.clone();
}
}, l.endOf = function(i) {
return this.startOf(i, !1);
}, l.$set = function(i, r) {
var a, f = b.p(i), p = "set" + (this.$u ? "UTC" : ""), T = (a = {}, a[c] = p + "Date", a[E] = p + "Date", a[o] = p + "Month", a[Y] = p + "FullYear", a[M] = p + "Hours", a[m] = p + "Minutes", a[y] = p + "Seconds", a[v] = p + "Milliseconds", a)[f], k = f === c ? this.$D + (r - this.$W) : r;
if (f === o || f === Y) {
var I = this.clone().set(E, 1);
I.$d[T](k), I.init(), this.$d = I.set(E, Math.min(this.$D, I.daysInMonth())).$d;
} else
T && this.$d[T](k);
return this.init(), this;
}, l.set = function(i, r) {
return this.clone().$set(i, r);
}, l.get = function(i) {
return this[b.p(i)]();
}, l.add = function(i, r) {
var a, f = this;
i = Number(i);
var p = b.p(r), T = function(C) {
var H = P(f);
return b.w(H.date(H.date() + Math.round(C * i)), f);
};
if (p === o)
return this.set(o, this.$M + i);
if (p === Y)
return this.set(Y, this.$y + i);
if (p === c)
return T(1);
if (p === L)
return T(7);
var k = (a = {}, a[m] = S, a[M] = u, a[y] = e, a)[p] || 1, I = this.$d.getTime() + i * k;
return b.w(I, this);
}, l.subtract = function(i, r) {
return this.add(-1 * i, r);
}, l.format = function(i) {
var r = this, a = this.$locale();
if (!this.isValid())
return a.invalidDate || X;
var f = i || "YYYY-MM-DDTHH:mm:ssZ", p = b.z(this), T = this.$H, k = this.$m, I = this.$M, C = a.weekdays, H = a.months, J = a.meridiem, j = function(N, V, K, nt) {
return N && (N[V] || N(r, f)) || K[V].slice(0, nt);
}, G = function(N) {
return b.s(T % 12 || 12, N, "0");
}, U = J || function(N, V, K) {
var nt = N < 12 ? "AM" : "PM";
return K ? nt.toLowerCase() : nt;
};
return f.replace(mt, function(N, V) {
return V || function(K) {
switch (K) {
case "YY":
return String(r.$y).slice(-2);
case "YYYY":
return b.s(r.$y, 4, "0");
case "M":
return I + 1;
case "MM":
return b.s(I + 1, 2, "0");
case "MMM":
return j(a.monthsShort, I, H, 3);
case "MMMM":
return j(H, I);
case "D":
return r.$D;
case "DD":
return b.s(r.$D, 2, "0");
case "d":
return String(r.$W);
case "dd":
return j(a.weekdaysMin, r.$W, C, 2);
case "ddd":
return j(a.weekdaysShort, r.$W, C, 3);
case "dddd":
return C[r.$W];
case "H":
return String(T);
case "HH":
return b.s(T, 2, "0");
case "h":
return G(1);
case "hh":
return G(2);
case "a":
return U(T, k, !0);
case "A":
return U(T, k, !1);
case "m":
return String(k);
case "mm":
return b.s(k, 2, "0");
case "s":
return String(r.$s);
case "ss":
return b.s(r.$s, 2, "0");
case "SSS":
return b.s(r.$ms, 3, "0");
case "Z":
return p;
}
return null;
}(N) || p.replace(":", "");
});
}, l.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, l.diff = function(i, r, a) {
var f, p = this, T = b.p(r), k = P(i), I = (k.utcOffset() - this.utcOffset()) * S, C = this - k, H = function() {
return b.m(p, k);
};
switch (T) {
case Y:
f = H() / 12;
break;
case o:
f = H();
break;
case R:
f = H() / 3;
break;
case L:
f = (C - I) / 6048e5;
break;
case c:
f = (C - I) / 864e5;
break;
case M:
f = C / u;
break;
case m:
f = C / S;
break;
case y:
f = C / e;
break;
default:
f = C;
}
return a ? f : b.a(f);
}, l.daysInMonth = function() {
return this.endOf(o).$D;
}, l.$locale = function() {
return z[this.$L];
}, l.locale = function(i, r) {
if (!i)
return this.$L;
var a = this.clone(), f = tt(i, r, !0);
return f && (a.$L = f), a;
}, l.clone = function() {
return b.w(this.$d, this);
}, l.toDate = function() {
return new Date(this.valueOf());
}, l.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, l.toISOString = function() {
return this.$d.toISOString();
}, l.toString = function() {
return this.$d.toUTCString();
}, h;
}(), ht = et.prototype;
return P.prototype = ht, [["$ms", v], ["$s", y], ["$m", m], ["$H", M], ["$W", c], ["$M", o], ["$y", Y], ["$D", E]].forEach(function(h) {
ht[h[1]] = function(l) {
return this.$g(l, h[0], h[1]);
};
}), P.extend = function(h, l) {
return h.$i || (h(l, et, P), h.$i = !0), P;
}, P.locale = tt, P.isDayjs = lt, P.unix = function(h) {
return P(1e3 * h);
}, P.en = z[Z], P.Ls = z, P.p = {}, P;
});
})(pt);
var pe = pt.exports;
const _t = /* @__PURE__ */ fe(pe), wt = (t) => (W("data-v-351a44e5"), t = t(), B(), t), we = { class: "title mb-2" }, ve = {
key: 0,
class: "answer-section mb-2"
}, $e = {
}, ye = { key: 0 }, me = { key: 1 }, ge = {
key: 1,
class: "answer-section mb-2"
}, Ae = /* @__PURE__ */ Ie(() => /* @__PURE__ */ o("span", null, "Ninguno", -1)), Fe = [
Ae
}, be = {
key: 2,
class: "answer-section mb-2"
}, Te = /* @__PURE__ */ wt(() => /* @__PURE__ */ w("span", null, "- - -", -1)), $e = [
Te
], Se = {
key: 3,
class: "answer-section mb-2"
}, qe = /* @__PURE__ */ wt(() => /* @__PURE__ */ w("span", null, "Ninguno", -1)), ke = [
qe
];
function Ne(e, a, t, q, n, w) {
return i(), s("div", null, [
o("div", De, m(t.title), 1),
t.answer ? (i(), s("div", Ee, [
o("span", null, m(t.answer), 1)
])) : (i(), s("div", $e, Fe))
function De(t, d, e, S, u, v) {
return n(), s("div", null, [
w("div", we, Q(e.title), 1),
e.type && e.type === "date" && e.answer ? (n(), s("div", ve, [
e.answer == "dont_know" ? (n(), s("span", ye, "No lo sé")) : (n(), s("span", me, Q(v.formatDateAnswer), 1))
])) : e.answer ? (n(), s("div", ge, [
w("span", null, Q(e.answer), 1)
])) : e.title.includes("pesas") || e.title.includes("mides") || e.title.includes("cintura") ? (n(), s("div", be, $e)) : (n(), s("div", Se, ke))
]);
}
const He = {
props: ["title", "answer"]
}, D = /* @__PURE__ */ T(He, [["render", Ne], ["__scopeId", "data-v-95bafdfb"]]), Ve = { class: "title mb-2" }, Ce = { class: "d-flex flex-wrap" }, Le = { class: "badge d-flex flex-column mr-2 mb-2" }, ze = ["src"];
function Me(e, a, t, q, n, w) {
return i(), s("div", null, [
o("div", Ve, m(t.title), 1),
o("div", Ce, [
(i(!0), s(v, null, b(t.question.answer, (d) => (i(), s("div", Le, [
o("span", null, m(t.question.questionData.options.find((h) => h.value === d).label), 1),
o("img", {
const xe = {
props: ["title", "answer", "type"],
computed: {
formatDateAnswer() {
const t = _t(this.answer, "YYYY-MM-DD");
if (this.type && this.type === "date" && this.answer && t.isValid()) {
const d = _t(this.answer);
let e = d.format("dddd DD");
e = e.charAt(0).toUpperCase() + e.slice(1);
let S = d.format("MMMM");
return S = S.charAt(0).toUpperCase() + S.slice(1), e + " de " + S + ", " + d.format("YYYY");
}
return this.answer;
}
}
}, st = /* @__PURE__ */ F(xe, [["render", De], ["__scopeId", "data-v-351a44e5"]]), Me = { class: "title mb-2" }, Qe = { class: "d-flex flex-wrap" }, Pe = { class: "badge d-flex flex-column mr-2 mb-2" }, Ie = ["src"];
function Ce(t, d, e, S, u, v) {
return n(), s("div", null, [
w("div", Me, Q(e.title), 1),
w("div", Qe, [
(n(!0), s(x, null, A(e.question.answer, (y) => (n(), s("div", Pe, [
w("span", null, Q(e.question.questionData.options.find((m) => m.value === y).label), 1),
w("img", {
class: "preview",
src: t.question.questionData.options.find((h) => h.value === d).src
}, null, 8, ze)
src: e.question.questionData.options.find((m) => m.value === y).src
}, null, 8, Ie)
]))), 256))

@@ -209,35 +528,35 @@ ])

}
const Be = {
const Oe = {
props: ["title", "question"]
}, Ue = /* @__PURE__ */ T(Be, [["render", Me], ["__scopeId", "data-v-46a54f37"]]), Oe = { class: "box" }, je = { class: "title-section mb-3" }, Ge = {
}, Ae = /* @__PURE__ */ F(Oe, [["render", Ce], ["__scopeId", "data-v-46a54f37"]]), Ne = { class: "box" }, He = { class: "title-section mb-3" }, Le = {
key: 0,
class: "icon-arrow-down"
}, Je = {
}, Fe = {
key: 1,
class: "icon-arrow-up"
};
function Ke(e, a, t, q, n, w) {
return i(), s("div", Oe, [
o("div", je, [
o("div", {
function Ye(t, d, e, S, u, v) {
return n(), s("div", Ne, [
w("div", He, [
w("div", {
class: "title",
onClick: a[0] || (a[0] = (d) => n.expanded = !n.expanded)
}, m(t.title), 1),
o("div", {
onClick: a[1] || (a[1] = (d) => n.expanded = !n.expanded)
onClick: d[0] || (d[0] = (y) => u.expanded = !u.expanded)
}, Q(e.title), 1),
w("div", {
onClick: d[1] || (d[1] = (y) => u.expanded = !u.expanded)
}, [
n.expanded ? (i(), s("span", Je)) : (i(), s("span", Ge))
u.expanded ? (n(), s("span", Fe)) : (n(), s("span", Le))
])
]),
C(o("div", {
$t(w("div", {
class: "content",
style: x({ "max-height": t.contentMaxHeight })
style: rt({ "max-height": e.contentMaxHeight })
}, [
L(e.$slots, "default", {}, void 0, !0)
St(t.$slots, "default", {}, void 0, !0)
], 4), [
[z, n.expanded]
[qt, u.expanded]
])
]);
}
const Re = {
const Ee = {
props: {

@@ -258,16 +577,16 @@ title: {},

immediate: !0,
handler(e) {
this.expanded = e;
handler(t) {
this.expanded = t;
}
},
expanded(e) {
this.$emit("input", e);
expanded(t) {
this.$emit("input", t);
}
}
}, A = /* @__PURE__ */ T(Re, [["render", Ke], ["__scopeId", "data-v-1d8ad39f"]]), We = { class: "ml-2" }, Xe = { class: "ml-2" }, Ye = { class: "ml-2" }, Ze = { class: "ml-2" }, et = { class: "ml-2" };
function tt(e, a, t, q, n, w) {
const d = f("single-selection"), h = f("collapse-section"), g = f("free-text"), u = f("pain-scale"), Q = f("multiple-selection");
return i(), s("div", null, [
t.data ? (i(), s(v, { key: 0 }, [
n.durationQuestion ? (i(), p(h, {
}, vt = /* @__PURE__ */ F(Ee, [["render", Ye], ["__scopeId", "data-v-1d8ad39f"]]), Ve = { class: "ml-2" }, ze = { class: "ml-2" }, je = { class: "ml-2" }, Ue = { class: "ml-2" }, We = { class: "ml-2" };
function Be(t, d, e, S, u, v) {
const y = D("single-selection"), m = D("collapse-section"), M = D("free-text"), c = D("pain-scale"), L = D("multiple-selection");
return n(), s("div", null, [
e.data ? (n(), s(x, { key: 0 }, [
u.durationQuestion ? (n(), $(m, {
key: 0,

@@ -277,12 +596,12 @@ class: "mb-3",

}, {
default: y(() => [
_(d, {
default: O(() => [
q(y, {
class: "ml-2",
title: t.showPatientTitle ? n.durationQuestion.patientTitle : n.durationQuestion.title,
question: n.durationQuestion
title: e.showPatientTitle ? u.durationQuestion.patientTitle : u.durationQuestion.title,
question: u.durationQuestion
}, null, 8, ["title", "question"])
]),
_: 1
})) : r("", !0),
n.painEpisodesQuestion ? (i(), p(h, {
})) : g("", !0),
u.painEpisodesQuestion ? (n(), $(m, {
key: 1,

@@ -292,12 +611,12 @@ class: "mb-3",

}, {
default: y(() => [
_(g, {
default: O(() => [
q(M, {
class: "ml-2",
title: t.showPatientTitle ? n.painEpisodesQuestion.patientTitle : n.painEpisodesQuestion.title,
answer: n.painEpisodesQuestion.answer
title: e.showPatientTitle ? u.painEpisodesQuestion.patientTitle : u.painEpisodesQuestion.title,
answer: u.painEpisodesQuestion.answer
}, null, 8, ["title", "answer"])
]),
_: 1
})) : r("", !0),
n.painLocationQuestions ? (i(), p(h, {
})) : g("", !0),
u.painLocationQuestions ? (n(), $(m, {
key: 2,

@@ -307,28 +626,28 @@ class: "mb-3",

}, {
default: y(() => [
(i(!0), s(v, null, b(n.painLocationQuestions, (l) => (i(), s("div", We, [
l.type == "singleSelection" ? (i(), p(d, {
default: O(() => [
(n(!0), s(x, null, A(u.painLocationQuestions, (o) => (n(), s("div", Ve, [
o.type == "singleSelection" ? (n(), $(y, {
key: 0,
class: "mb-2",
title: t.showPatientTitle ? l.patientTitle : l.title,
question: l
}, null, 8, ["title", "question"])) : r("", !0),
l.type == "free" ? (i(), p(g, {
title: e.showPatientTitle ? o.patientTitle : o.title,
question: o
}, null, 8, ["title", "question"])) : g("", !0),
o.type == "free" ? (n(), $(M, {
key: 1,
title: t.showPatientTitle ? l.patientTitle : l.title,
answer: l.answer
}, null, 8, ["title", "answer"])) : r("", !0)
title: e.showPatientTitle ? o.patientTitle : o.title,
answer: o.answer
}, null, 8, ["title", "answer"])) : g("", !0)
]))), 256))
]),
_: 1
})) : r("", !0),
_(h, {
})) : g("", !0),
q(m, {
class: "mb-3",
title: "Irradiación del dolor de cabeza"
}, {
default: y(() => [
(i(!0), s(v, null, b(n.painIrradiationQuestions, (l) => (i(), s("div", Xe, [
_(g, {
title: t.showPatientTitle ? l.patientTitle : l.title,
answer: l.answer
default: O(() => [
(n(!0), s(x, null, A(u.painIrradiationQuestions, (o) => (n(), s("div", ze, [
q(M, {
title: e.showPatientTitle ? o.patientTitle : o.title,
answer: o.answer
}, null, 8, ["title", "answer"])

@@ -339,19 +658,19 @@ ]))), 256))

}),
_(h, {
q(m, {
class: "mb-3",
title: "Tipo de dolor de cabeza"
}, {
default: y(() => [
(i(!0), s(v, null, b(n.painTypeQuestions, (l) => (i(), s("div", Ye, [
l.type == "singleSelection" ? (i(), p(d, {
default: O(() => [
(n(!0), s(x, null, A(u.painTypeQuestions, (o) => (n(), s("div", je, [
o.type == "singleSelection" ? (n(), $(y, {
key: 0,
class: "mb-2",
title: t.showPatientTitle ? l.patientTitle : l.title,
question: l
}, null, 8, ["title", "question"])) : r("", !0),
l.type == "free" ? (i(), p(g, {
title: e.showPatientTitle ? o.patientTitle : o.title,
question: o
}, null, 8, ["title", "question"])) : g("", !0),
o.type == "free" ? (n(), $(M, {
key: 1,
title: t.showPatientTitle ? l.patientTitle : l.title,
answer: l.answer
}, null, 8, ["title", "answer"])) : r("", !0)
title: e.showPatientTitle ? o.patientTitle : o.title,
answer: o.answer
}, null, 8, ["title", "answer"])) : g("", !0)
]))), 256))

@@ -361,3 +680,3 @@ ]),

}),
n.painScaleQuestion ? (i(), p(h, {
u.painScaleQuestion ? (n(), $(m, {
key: 3,

@@ -367,27 +686,27 @@ class: "mb-3",

}, {
default: y(() => [
_(u, {
value: n.painScaleQuestion,
title: t.showPatientTitle ? n.painScaleQuestion.patientTitle : n.painScaleQuestion.title
default: O(() => [
q(c, {
value: u.painScaleQuestion,
title: e.showPatientTitle ? u.painScaleQuestion.patientTitle : u.painScaleQuestion.title
}, null, 8, ["value", "title"])
]),
_: 1
})) : r("", !0),
_(h, {
})) : g("", !0),
q(m, {
class: "mb-3",
title: "Agravantes del dolor de cabeza"
}, {
default: y(() => [
(i(!0), s(v, null, b(n.painAggravatingQuestions, (l) => (i(), s("div", Ze, [
l.type == "multipleSelection" ? (i(), p(Q, {
default: O(() => [
(n(!0), s(x, null, A(u.painAggravatingQuestions, (o) => (n(), s("div", Ue, [
o.type == "multipleSelection" ? (n(), $(L, {
key: 0,
class: "mb-2",
title: t.showPatientTitle ? l.patientTitle : l.title,
question: l
}, null, 8, ["title", "question"])) : r("", !0),
l.type == "free" ? (i(), p(g, {
title: e.showPatientTitle ? o.patientTitle : o.title,
question: o
}, null, 8, ["title", "question"])) : g("", !0),
o.type == "free" ? (n(), $(M, {
key: 1,
title: t.showPatientTitle ? l.patientTitle : l.title,
answer: l.answer
}, null, 8, ["title", "answer"])) : r("", !0)
title: e.showPatientTitle ? o.patientTitle : o.title,
answer: o.answer
}, null, 8, ["title", "answer"])) : g("", !0)
]))), 256))

@@ -397,19 +716,19 @@ ]),

}),
_(h, {
q(m, {
class: "mb-3",
title: "Atenuantes del dolor de cabeza"
}, {
default: y(() => [
(i(!0), s(v, null, b(n.painMitigatingQuestions, (l) => (i(), s("div", et, [
l.type == "multipleSelection" ? (i(), p(Q, {
default: O(() => [
(n(!0), s(x, null, A(u.painMitigatingQuestions, (o) => (n(), s("div", We, [
o.type == "multipleSelection" ? (n(), $(L, {
key: 0,
class: "mb-2",
title: t.showPatientTitle ? l.patientTitle : l.title,
question: l
}, null, 8, ["title", "question"])) : r("", !0),
l.type == "free" ? (i(), p(g, {
title: e.showPatientTitle ? o.patientTitle : o.title,
question: o
}, null, 8, ["title", "question"])) : g("", !0),
o.type == "free" ? (n(), $(M, {
key: 1,
title: t.showPatientTitle ? l.patientTitle : l.title,
answer: l.answer
}, null, 8, ["title", "answer"])) : r("", !0)
title: e.showPatientTitle ? o.patientTitle : o.title,
answer: o.answer
}, null, 8, ["title", "answer"])) : g("", !0)
]))), 256))

@@ -419,3 +738,3 @@ ]),

}),
n.symptomsQuestion ? (i(), p(h, {
u.symptomsQuestion ? (n(), $(m, {
key: 4,

@@ -425,12 +744,12 @@ class: "mb-3",

}, {
default: y(() => [
_(Q, {
default: O(() => [
q(L, {
class: "mb-2",
title: t.showPatientTitle ? n.symptomsQuestion.patientTitle : n.symptomsQuestion.title,
question: n.symptomsQuestion
title: e.showPatientTitle ? u.symptomsQuestion.patientTitle : u.symptomsQuestion.title,
question: u.symptomsQuestion
}, null, 8, ["title", "question"])
]),
_: 1
})) : r("", !0),
n.additionalSymptomsQuestion ? (i(), p(h, {
})) : g("", !0),
u.additionalSymptomsQuestion ? (n(), $(m, {
key: 5,

@@ -440,22 +759,22 @@ class: "mb-3",

}, {
default: y(() => [
_(Q, {
default: O(() => [
q(L, {
class: "mb-2",
title: t.showPatientTitle ? n.additionalSymptomsQuestion.patientTitle : n.additionalSymptomsQuestion.title,
question: n.additionalSymptomsQuestion
title: e.showPatientTitle ? u.additionalSymptomsQuestion.patientTitle : u.additionalSymptomsQuestion.title,
question: u.additionalSymptomsQuestion
}, null, 8, ["title", "question"])
]),
_: 1
})) : r("", !0)
], 64)) : r("", !0)
})) : g("", !0)
], 64)) : g("", !0)
]);
}
const it = {
const Je = {
props: ["data", "showPatientTitle"],
components: {
PainScale: P,
SingleSelection: I,
MultipleSelection: $,
FreeText: D,
CollapseSection: A
PainScale: ut,
SingleSelection: it,
MultipleSelection: ct,
FreeText: st,
CollapseSection: vt
},

@@ -477,21 +796,21 @@ data() {

mounted() {
this.data && (this.durationQuestion = this.data.find((e) => e.id === "1"), this.painEpisodesQuestion = this.data.find((e) => e.id === "2"), this.painScaleQuestion = this.data.find((e) => e.id === "6"), this.symptomsQuestion = this.data.find((e) => e.id === "9"), this.additionalSymptomsQuestion = this.data.find((e) => e.id === "10"), this.painLocationQuestions = this.data.filter((e) => e.id === "3" || e.id === "3.1"), this.painIrradiationQuestions = this.data.filter((e) => e.id === "4" || e.id === "4.1"), this.painTypeQuestions = this.data.filter((e) => e.id === "5" || e.id === "5.1"), this.painAggravatingQuestions = this.data.filter((e) => e.id === "7" || e.id === "7.1"), this.painMitigatingQuestions = this.data.filter((e) => ["8", "8.1", "8.2"].includes(e.id)));
this.data && (this.durationQuestion = this.data.find((t) => t.id === "1"), this.painEpisodesQuestion = this.data.find((t) => t.id === "2"), this.painScaleQuestion = this.data.find((t) => t.id === "6"), this.symptomsQuestion = this.data.find((t) => t.id === "9"), this.additionalSymptomsQuestion = this.data.find((t) => t.id === "10"), this.painLocationQuestions = this.data.filter((t) => t.id === "3" || t.id === "3.1"), this.painIrradiationQuestions = this.data.filter((t) => t.id === "4" || t.id === "4.1"), this.painTypeQuestions = this.data.filter((t) => t.id === "5" || t.id === "5.1"), this.painAggravatingQuestions = this.data.filter((t) => t.id === "7" || t.id === "7.1"), this.painMitigatingQuestions = this.data.filter((t) => ["8", "8.1", "8.2"].includes(t.id)));
}
}, st = /* @__PURE__ */ T(it, [["render", tt], ["__scopeId", "data-v-38c08e79"]]), nt = (e) => (S("data-v-70fcbf20"), e = e(), k(), e), lt = { class: "ml-2" }, ot = { class: "ml-2" }, at = { class: "ml-2" }, ct = { class: "ml-2" }, ut = { class: "ml-2" }, rt = {
}, Ze = /* @__PURE__ */ F(Je, [["render", Be], ["__scopeId", "data-v-38c08e79"]]), Ge = (t) => (W("data-v-d48c9c06"), t = t(), B(), t), Ke = { class: "ml-2" }, Re = { class: "ml-2" }, Xe = { class: "ml-2" }, tn = { class: "ml-2" }, en = { class: "ml-2" }, nn = {
key: 1,
class: "mb-3"
}, dt = /* @__PURE__ */ nt(() => /* @__PURE__ */ o("b", null, "IMC:", -1));
function _t(e, a, t, q, n, w) {
const d = f("free-text"), h = f("collapse-section"), g = f("single-selection");
return i(), s("div", null, [
t.data ? (i(), s(v, { key: 0 }, [
_(h, {
}, sn = /* @__PURE__ */ Ge(() => /* @__PURE__ */ w("b", null, "IMC:", -1));
function an(t, d, e, S, u, v) {
const y = D("free-text"), m = D("collapse-section"), M = D("single-selection");
return n(), s("div", null, [
e.data ? (n(), s(x, { key: 0 }, [
q(m, {
class: "mb-3",
title: "Antecedentes médicos"
}, {
default: y(() => [
(i(!0), s(v, null, b(n.medicalHistoryQuestions, (u) => (i(), s("div", lt, [
_(d, {
title: t.showPatientTitle ? u.patientTitle : u.title,
answer: u.answer
default: O(() => [
(n(!0), s(x, null, A(v.medicalHistoryQuestions, (c) => (n(), s("div", Ke, [
q(y, {
title: e.showPatientTitle ? c.patientTitle : c.title,
answer: c.answer
}, null, 8, ["title", "answer"])

@@ -502,11 +821,11 @@ ]))), 256))

}),
_(h, {
q(m, {
class: "mb-3",
title: "Antecedentes farmacológicos"
}, {
default: y(() => [
(i(!0), s(v, null, b(n.pharmacologicalHistoryQuestions, (u) => (i(), s("div", ot, [
_(d, {
title: t.showPatientTitle ? u.patientTitle : u.title,
answer: u.answer
default: O(() => [
(n(!0), s(x, null, A(v.pharmacologicalHistoryQuestions, (c) => (n(), s("div", Re, [
q(y, {
title: e.showPatientTitle ? c.patientTitle : c.title,
answer: c.answer
}, null, 8, ["title", "answer"])

@@ -517,11 +836,12 @@ ]))), 256))

}),
_(h, {
v.allergicHistoryQuestions.length > 0 ? (n(), $(m, {
key: 0,
class: "mb-3",
title: "Antecedentes alérgicos"
}, {
default: y(() => [
(i(!0), s(v, null, b(n.allergicHistoryQuestions, (u) => (i(), s("div", at, [
_(d, {
title: t.showPatientTitle ? u.patientTitle : u.title,
answer: u.answer
default: O(() => [
(n(!0), s(x, null, A(v.allergicHistoryQuestions, (c) => (n(), s("div", Xe, [
q(y, {
title: e.showPatientTitle ? c.patientTitle : c.title,
answer: c.answer
}, null, 8, ["title", "answer"])

@@ -531,12 +851,12 @@ ]))), 256))

_: 1
}),
_(h, {
})) : g("", !0),
q(m, {
class: "mb-3",
title: "Antecedentes ginecológicos"
}, {
default: y(() => [
(i(!0), s(v, null, b(n.gynecologicalHistoryQuestions, (u) => (i(), s("div", ct, [
_(d, {
title: t.showPatientTitle ? u.patientTitle : u.title,
answer: u.answer
default: O(() => [
(n(!0), s(x, null, A(v.gynecologicalHistoryQuestions, (c) => (n(), s("div", tn, [
q(y, {
title: e.showPatientTitle ? c.patientTitle : c.title,
answer: c.answer
}, null, 8, ["title", "answer"])

@@ -547,26 +867,26 @@ ]))), 256))

}),
_(h, {
q(m, {
class: "mb-3",
title: "Factores de riesgo relacionados con los hábitos"
}, {
default: y(() => [
(i(!0), s(v, null, b(n.riskFactorQuestions, (u) => (i(), s("div", ut, [
u.type == "number" ? (i(), p(d, {
default: O(() => [
(n(!0), s(x, null, A(v.riskFactorQuestions, (c) => (n(), s("div", en, [
c.type == "number" ? (n(), $(y, {
key: 0,
class: "mb-2",
title: t.showPatientTitle ? u.patientTitle : u.title,
answer: u.answer
}, null, 8, ["title", "answer"])) : r("", !0),
w.imc && u.id == "7" ? (i(), s("div", rt, [
o("span", null, [
dt,
M(" " + m(w.imc), 1)
title: e.showPatientTitle ? c.patientTitle : c.title,
answer: c.answer
}, null, 8, ["title", "answer"])) : g("", !0),
v.imc && c.id == "7" ? (n(), s("div", nn, [
w("span", null, [
sn,
ft(" " + Q(v.imc), 1)
])
])) : r("", !0),
u.type == "singleSelection" ? (i(), p(g, {
])) : g("", !0),
c.type == "singleSelection" ? (n(), $(M, {
key: 2,
class: "mb-2",
title: t.showPatientTitle ? u.patientTitle : u.title,
question: u
}, null, 8, ["title", "question"])) : r("", !0)
title: e.showPatientTitle ? c.patientTitle : c.title,
question: c
}, null, 8, ["title", "question"])) : g("", !0)
]))), 256))

@@ -576,21 +896,79 @@ ]),

})
], 64)) : r("", !0)
], 64)) : g("", !0)
]);
}
const ht = {
const ln = {
props: ["data", "showPatientTitle"],
components: {
PainScale: P,
SingleSelection: I,
FreeText: D,
CollapseSection: A
PainScale: ut,
SingleSelection: it,
FreeText: st,
CollapseSection: vt
},
data() {
return {
medicalHistoryQuestions: [],
pharmacologicalHistoryQuestions: [],
allergicHistoryQuestions: [],
gynecologicalHistoryQuestions: [],
riskFactorQuestions: []
};
computed: {
imc() {
if (!this.data)
return null;
const t = this.data.find((e) => e.id === "6"), d = this.data.find((e) => e.id === "7");
return t && t.answer && d && d.answer ? !Number(d.answer) > 0 ? null : (Number(t.answer) / ot(Number(d.answer) / 100, 2)).toFixed(2) : null;
},
medicalHistoryQuestions() {
return this.data ? this.data.filter((t) => t.id === "1" || t.id === "1.1" || t.id === "1.2" || t.id === "1.2.1") : [];
},
pharmacologicalHistoryQuestions() {
return this.data ? this.data.filter((t) => t.id === "2" || t.id === "2.1") : [];
},
allergicHistoryQuestions() {
return this.data ? this.data.filter((t) => t.id === "3" || t.id === "3.1") : [];
},
gynecologicalHistoryQuestions() {
return this.data ? this.data.filter((t) => t.id === "4" || t.id === "5" || t.id === "pvc-cytology" || t.id === "pvc-cytology-date") : [];
},
riskFactorQuestions() {
return this.data ? this.data.filter((t) => ["6", "7", "8", "8.1", "9"].includes(t.id)) : [];
}
}
}, on = /* @__PURE__ */ F(ln, [["render", an], ["__scopeId", "data-v-d48c9c06"]]), rn = (t) => (W("data-v-7b415bc9"), t = t(), B(), t), un = {
key: 0,
class: "mb-3"
}, cn = /* @__PURE__ */ rn(() => /* @__PURE__ */ w("b", null, "IMC:", -1)), dn = { class: "ml-2" };
function hn(t, d, e, S, u, v) {
const y = D("single-selection"), m = D("multiple-selection"), M = D("free-text");
return n(), s("div", null, [
e.data ? (n(), s(x, { key: 0 }, [
v.imc ? (n(), s("div", un, [
w("span", null, [
cn,
ft(" " + Q(v.imc), 1)
])
])) : g("", !0),
(n(!0), s(x, null, A(e.data, (c) => (n(), s("div", dn, [
c.type == "directSelector" ? (n(), $(y, {
key: 0,
class: "mb-2",
title: e.showPatientTitle ? c.patientTitle : c.title,
question: c
}, null, 8, ["title", "question"])) : g("", !0),
c.type == "imageMultipleSelector" ? (n(), $(m, {
key: 1,
class: "mb-2",
title: c.title,
question: c,
type: "multipleSelection"
}, null, 8, ["title", "question"])) : g("", !0),
c.type == "numberInput" ? (n(), $(M, {
key: 2,
title: c.title,
answer: c.answer
}, null, 8, ["title", "answer"])) : g("", !0)
]))), 256))
], 64)) : g("", !0)
]);
}
const _n = {
props: ["data", "showPatientTitle"],
components: {
MultipleSelection: ct,
SingleSelection: it,
FreeText: st
},

@@ -601,102 +979,106 @@ computed: {

return null;
const e = this.data.find((t) => t.id === "6"), a = this.data.find((t) => t.id === "7");
return e && e.answer && a && a.answer ? (Number(e.answer) / E(Number(a.answer) / 100, 2)).toFixed(2) : null;
let t = this.data.find((e) => e.id === "7"), d = this.data.find((e) => e.id === "9");
return t && t.answer && d && d.answer ? (t = parseFloat(t.answer.replace(",", ".")), d = parseInt(d.answer), !d > 0 ? null : (t / ot(d / 100, 2)).toFixed(2)) : null;
}
},
mounted() {
this.data && (this.medicalHistoryQuestions = this.data.filter((e) => e.id === "1" || e.id === "1.1" || e.id === "1.2" || e.id === "1.2.1"), this.pharmacologicalHistoryQuestions = this.data.filter((e) => e.id === "2" || e.id === "2.1"), this.allergicHistoryQuestions = this.data.filter((e) => e.id === "3" || e.id === "3.1"), this.gynecologicalHistoryQuestions = this.data.filter((e) => e.id === "4" || e.id === "5"), this.riskFactorQuestions = this.data.filter((e) => ["6", "7", "8", "9"].includes(e.id)));
}
}, pt = /* @__PURE__ */ T(ht, [["render", _t], ["__scopeId", "data-v-70fcbf20"]]), wt = {
}, fn = /* @__PURE__ */ F(_n, [["render", hn], ["__scopeId", "data-v-7b415bc9"]]), pn = {
key: 0,
class: "mb-3"
}, vt = {
}, wn = {
key: 1,
class: "mb-3"
}, ft = { class: "title" }, mt = {
}, vn = { class: "title" }, yn = {
key: 2,
class: "mb-3"
}, yt = {
}, mn = {
key: 3,
class: "mb-3"
}, bt = {
}, gn = {
key: 4,
class: "mb-3"
};
function qt(e, a, t, q, n, w) {
const d = f("migraine-flow-viewer"), h = f("preventive-check-viewer"), g = f("image-point-selector"), u = f("synapse-viewer", !0), Q = f("image-selector"), l = f("pain-scale"), F = f("single-selection"), N = f("multiple-selection"), H = f("free-text");
return i(), s("div", null, [
t.data ? (i(), s(v, { key: 0 }, [
t.questionnarieName === "headacheAndMigraine" ? (i(), p(d, {
function bn(t, d, e, S, u, v) {
const y = D("migraine-flow-viewer"), m = D("preventive-check-viewer"), M = D("nutrition-campaign-viewer"), c = D("image-point-selector"), L = D("synapse-viewer", !0), o = D("image-selector"), R = D("pain-scale"), Y = D("single-selection"), E = D("multiple-selection"), X = D("free-text");
return n(), s("div", null, [
e.data ? (n(), s(x, { key: 0 }, [
e.questionnarieName === "headacheAndMigraine" ? (n(), $(y, {
key: 0,
data: t.data,
showPatientTitle: t.showPatientTitle
}, null, 8, ["data", "showPatientTitle"])) : t.questionnarieName === "preventiveCheck" ? (i(), p(h, {
data: e.data,
showPatientTitle: e.showPatientTitle
}, null, 8, ["data", "showPatientTitle"])) : e.questionnarieName === "preventiveCheck" ? (n(), $(m, {
key: 1,
data: t.data,
showPatientTitle: t.showPatientTitle
}, null, 8, ["data", "showPatientTitle"])) : (i(!0), s(v, { key: 2 }, b(t.data, (c) => (i(), s(v, null, [
c.showOnlyInClient ? r("", !0) : (i(), s(v, { key: 0 }, [
c.type === "imagePointSelector" ? (i(), s("div", wt, [
_(g, {
question: c,
title: t.showPatientTitle ? c.patientTitle : c.title
data: e.data,
showPatientTitle: e.showPatientTitle
}, null, 8, ["data", "showPatientTitle"])) : e.questionnarieName === "nutritionCampaign" ? (n(), $(M, {
key: 2,
data: e.data,
showPatientTitle: e.showPatientTitle
}, null, 8, ["data", "showPatientTitle"])) : (n(!0), s(x, { key: 3 }, A(e.data, (_) => (n(), s(x, null, [
_.showOnlyInClient ? g("", !0) : (n(), s(x, { key: 0 }, [
_.type === "imagePointSelector" ? (n(), s("div", pn, [
q(c, {
question: _,
title: e.showPatientTitle && _.patientTitle ? _.patientTitle : _.title
}, null, 8, ["question", "title"])
])) : c.type === "synapse" ? (i(), s("div", vt, [
o("div", ft, m(t.showPatientTitle ? c.patientTitle : c.title), 1),
_(u, {
data: c.answer
])) : _.type === "synapse" ? (n(), s("div", wn, [
w("div", vn, Q(e.showPatientTitle && _.patientTitle ? _.patientTitle : _.title), 1),
q(L, {
data: _.answer
}, null, 8, ["data"])
])) : c.type === "imageSelector" ? (i(), s("div", mt, [
_(Q, {
question: c,
title: t.showPatientTitle ? c.patientTitle : c.title
])) : _.type === "imageSelector" ? (n(), s("div", yn, [
q(o, {
question: _,
title: e.showPatientTitle && _.patientTitle ? _.patientTitle : _.title
}, null, 8, ["question", "title"])
])) : c.type === "painScale" ? (i(), s("div", yt, [
_(l, {
value: c,
title: t.showPatientTitle ? c.patientTitle : c.title
])) : _.type === "painScale" ? (n(), s("div", mn, [
q(R, {
value: _,
title: e.showPatientTitle && _.patientTitle ? _.patientTitle : _.title
}, null, 8, ["value", "title"])
])) : !["action", "actionSelector", "info", "productSelector", "patientSelector"].includes(c.type) && c.title !== "¿Cuál es tu consulta?" ? (i(), s("div", bt, [
["singleSelection", "selectionList"].includes(c.type) ? (i(), p(F, {
])) : !["action", "actionSelector", "info", "productSelector", "patientSelector"].includes(_.type) && _.title !== "¿Cuál es tu consulta?" ? (n(), s("div", gn, [
["singleSelection", "selectionList"].includes(_.type) ? (n(), $(Y, {
key: 0,
class: "mb-3",
title: t.showPatientTitle ? c.patientTitle : c.title,
question: c
}, null, 8, ["title", "question"])) : ["multipleSelection", "autocomplete"].includes(c.type) ? (i(), p(N, {
title: e.showPatientTitle && _.patientTitle ? _.patientTitle : _.title,
question: _
}, null, 8, ["title", "question"])) : ["multipleSelection", "autocomplete"].includes(_.type) ? (n(), $(E, {
key: 1,
class: "mb-3",
title: t.showPatientTitle ? c.patientTitle : c.title,
question: c
}, null, 8, ["title", "question"])) : ["free", "date", "number", "shortAnswer", "gender"].includes(c.type) ? (i(), p(H, {
title: e.showPatientTitle && _.patientTitle ? _.patientTitle : _.title,
question: _
}, null, 8, ["title", "question"])) : ["free", "date", "number", "shortAnswer", "gender", "numberInput"].includes(_.type) ? (n(), $(X, {
key: 2,
class: "mb-3",
title: t.showPatientTitle ? c.patientTitle : c.title,
answer: c.answer
}, null, 8, ["title", "answer"])) : r("", !0)
])) : r("", !0)
title: e.showPatientTitle && _.patientTitle ? _.patientTitle : _.title,
answer: _.answer,
type: _.type
}, null, 8, ["title", "answer", "type"])) : g("", !0)
])) : g("", !0)
], 64))
], 64))), 256))
], 64)) : r("", !0)
], 64)) : g("", !0)
]);
}
const gt = {
const Tn = {
name: "SynapseViewer",
props: ["data", "showPatientTitle", "questionnarieName"],
components: {
ImagePointSelector: X,
PainScale: P,
SingleSelection: I,
MultipleSelection: $,
FreeText: D,
ImageSelector: Ue,
MigraineFlowViewer: st,
PreventiveCheckViewer: pt
ImagePointSelector: At,
PainScale: ut,
SingleSelection: it,
MultipleSelection: ct,
FreeText: st,
ImageSelector: Ae,
MigraineFlowViewer: Ze,
PreventiveCheckViewer: on,
NutritionCampaignViewer: fn,
SynapseViewer: yt
}
}, Tt = /* @__PURE__ */ T(gt, [["render", qt], ["__scopeId", "data-v-c13d9646"]]), kt = {
install: (e) => {
e.component("SynapseViewer", Tt);
}, yt = /* @__PURE__ */ F(Tn, [["render", bn], ["__scopeId", "data-v-1b10d527"]]), qn = {
install: (t) => {
t.component("SynapseViewer", yt);
}
};
export {
kt as default
qn as default
};

@@ -1,1 +0,1 @@

(function(e,k){typeof exports=="object"&&typeof module!="undefined"?module.exports=k(require("vue")):typeof define=="function"&&define.amd?define(["vue"],k):(e=typeof globalThis!="undefined"?globalThis:e||self,e.SynapseViewer=k(e.Vue))})(this,function(e){"use strict";var g=Math.pow;const k=t=>(e.pushScopeId("data-v-90907f88"),t=t(),e.popScopeId(),t),E={class:"title mb-2"},V={class:"img-container"},N={class:"img-selection"},b=["src"],S=[k(()=>e.createElementVNode("div",{class:"subpoint"},null,-1))];function q(t,i,n,p,o,d){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",E,e.toDisplayString(n.title),1),e.createElementVNode("div",V,[e.createElementVNode("div",N,[e.createElementVNode("img",{src:n.question.questionData.imgUrl},null,8,b),e.createElementVNode("div",{class:"point",style:e.normalizeStyle({top:`${n.question.answer.y}%`,left:`${n.question.answer.x}%`})},S,4)])])])}const m=(t,i)=>{const n=t.__vccOpts||t;for(const[p,o]of i)n[p]=o;return n},T=m({props:["question","title"]},[["render",q],["__scopeId","data-v-90907f88"]]),x=t=>(e.pushScopeId("data-v-94c6e091"),t=t(),e.popScopeId(),t),C={class:"title mb-2"},Q={class:"answer-section mb-2"},P={class:"painlevel mb-1"},D={class:"d-flex align-item-center justify-content-center"},I={class:"box-container"},F={class:"mb-2"},$=x(()=>e.createElementVNode("div",{class:"d-flex justify-content-between"},[e.createElementVNode("div",{class:"help-text"},"Sin dolor"),e.createElementVNode("div",{class:"help-text"},"Intolerable")],-1));function L(t,i,n,p,o,d){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",C,e.toDisplayString(n.title),1),e.createElementVNode("div",Q,e.toDisplayString(d.answerText),1),e.createElementVNode("div",P,[e.createElementVNode("div",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.levels,a=>(e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("div",{class:"box mb-2",style:e.normalizeStyle({"background-color":a.value<=d.selectedValue||a.value<=o.hoverValue?a.color:"#DADDE7"})},null,4),e.createElementVNode("div",F,e.toDisplayString(a.value),1)]))),256))])]),$])}const w=m({props:["value","title"],data(){return{question:null,hoverValue:null,levels:[{value:0,color:"#FFDD74"},{value:1,color:"#FBC318"},{value:2,color:"#F8AE1D"},{value:3,color:"#F5A01E"},{value:4,color:"#F29121"},{value:5,color:"#EF8223"},{value:6,color:"#ED7426"},{value:7,color:"#EA6529"},{value:8,color:"#E7562B"},{value:9,color:"#E5472D"},{value:10,color:"#E03130"}]}},computed:{selectedValue(){return this.question&&this.question.answer?this.question.answer:null},answerText(){return this.question&&this.question.answer?`${this.question.answer}/${this.question.questionData.max}`:null}},watch:{value:{immediate:!0,handler(t){t&&(this.question=t,!this.question.answer&&this.question.questionData.min&&(this.question.answer=this.question.questionData.min))}}}},[["render",L],["__scopeId","data-v-94c6e091"]]),A=t=>(e.pushScopeId("data-v-ae99b734"),t=t(),e.popScopeId(),t),H={class:"title mb-2"},z={class:"answer-section mb-2"},M={key:0},U={class:"mb-1"},j={key:1},O={key:0,class:"no-selected"},G=A(()=>e.createElementVNode("div",{class:"mb-2"},"No seleccionados",-1)),J={class:"mb-2"};function K(t,i,n,p,o,d){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",H,e.toDisplayString(n.title),1),e.createElementVNode("div",z,[n.question.answer!=null?(e.openBlock(),e.createElementBlock("ul",M,[e.createElementVNode("li",U,e.toDisplayString(d.answerLabel),1)])):(e.openBlock(),e.createElementBlock("span",j,"Ninguno"))]),d.noSelectedText?(e.openBlock(),e.createElementBlock("div",O,[G,e.createElementVNode("div",J,e.toDisplayString(d.noSelectedText),1)])):e.createCommentVNode("",!0)])}const B=m({props:["title","question"],computed:{answerLabel(){if(this.question&&this.question.answer){const t=this.question.questionData.options.find(i=>this.question.answer===i.value);if(t)return t.title?t.title+" "+t.label:t.label}return null},noSelectedText(){if(this.question&&!this.question.hideUnselectedAnswers&&this.answerLabel){const t=this.question.questionData.options.find(n=>this.question.answer===n.value),i=this.question.questionData.options.filter(n=>![t].includes(n));if(i)return i.map(n=>n.title?n.title+" "+n.label:n.label).join(", ")}return null}}},[["render",K],["__scopeId","data-v-ae99b734"]]),R=t=>(e.pushScopeId("data-v-b10d5f3c"),t=t(),e.popScopeId(),t),W={class:"title mb-2"},X={key:0},Y={class:"mb-2"},Z={key:1},v={key:0,class:"no-selected"},ee=R(()=>e.createElementVNode("div",{class:"mb-2"},"No seleccionados",-1)),te={class:"mb-2"};function ne(t,i,n,p,o,d){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",W,e.toDisplayString(n.title),1),e.createElementVNode("div",{class:e.normalizeClass(["answer-section mb-2",{warning:n.type==="warning"}])},[n.question.answer!=null?(e.openBlock(),e.createElementBlock("ul",X,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.answerLabels,a=>(e.openBlock(),e.createElementBlock("li",Y,e.toDisplayString(a),1))),256))])):(e.openBlock(),e.createElementBlock("span",Z,"Ninguno"))],2),d.noSelectedText?(e.openBlock(),e.createElementBlock("div",v,[ee,e.createElementVNode("div",te,e.toDisplayString(d.noSelectedText),1)])):e.createCommentVNode("",!0)])}const y=m({props:["title","question","type"],computed:{answerLabels(){if(this.question&&this.question.answer){if(this.question.type==="multipleSelection")return this.question.questionData.options.filter(i=>this.question.answer.includes(i.value)).map(i=>i.label);if(this.question.type==="autocomplete")return this.question.answer.map(t=>t.label)}return[]},noSelectedText(){if(this.question&&!this.question.hideUnselectedAnswers&&this.answerLabels.length>0&&this.question.type==="multipleSelection"){const t=this.question.questionData.options.filter(n=>this.question.answer.includes(n.value)),i=this.question.questionData.options.filter(n=>!t.includes(n));if(i)return i.map(n=>n.label).join(", ")}return null}}},[["render",ne],["__scopeId","data-v-b10d5f3c"]]),oe=t=>(e.pushScopeId("data-v-95bafdfb"),t=t(),e.popScopeId(),t),le={class:"title mb-2"},ie={key:0,class:"answer-section mb-2"},se={key:1,class:"answer-section mb-2"},ce=[oe(()=>e.createElementVNode("span",null,"Ninguno",-1))];function ae(t,i,n,p,o,d){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",le,e.toDisplayString(n.title),1),n.answer?(e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("span",null,e.toDisplayString(n.answer),1)])):(e.openBlock(),e.createElementBlock("div",se,ce))])}const f=m({props:["title","answer"]},[["render",ae],["__scopeId","data-v-95bafdfb"]]),re={class:"title mb-2"},de={class:"d-flex flex-wrap"},pe={class:"badge d-flex flex-column mr-2 mb-2"},me=["src"];function _e(t,i,n,p,o,d){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",re,e.toDisplayString(n.title),1),e.createElementVNode("div",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.question.answer,a=>(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("span",null,e.toDisplayString(n.question.questionData.options.find(r=>r.value===a).label),1),e.createElementVNode("img",{class:"preview",src:n.question.questionData.options.find(r=>r.value===a).src},null,8,me)]))),256))])])}const he=m({props:["title","question"]},[["render",_e],["__scopeId","data-v-46a54f37"]]),ke={class:"box"},we={class:"title-section mb-3"},Be={key:0,class:"icon-arrow-down"},fe={key:1,class:"icon-arrow-up"};function ye(t,i,n,p,o,d){return e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("div",we,[e.createElementVNode("div",{class:"title",onClick:i[0]||(i[0]=a=>o.expanded=!o.expanded)},e.toDisplayString(n.title),1),e.createElementVNode("div",{onClick:i[1]||(i[1]=a=>o.expanded=!o.expanded)},[o.expanded?(e.openBlock(),e.createElementBlock("span",fe)):(e.openBlock(),e.createElementBlock("span",Be))])]),e.withDirectives(e.createElementVNode("div",{class:"content",style:e.normalizeStyle({"max-height":n.contentMaxHeight})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4),[[e.vShow,o.expanded]])])}const u=m({props:{title:{},contentMaxHeight:{},value:{default:!0}},data(){return{expanded:!1}},watch:{value:{immediate:!0,handler(t){this.expanded=t}},expanded(t){this.$emit("input",t)}}},[["render",ye],["__scopeId","data-v-1d8ad39f"]]),ue={class:"ml-2"},ge={class:"ml-2"},Ee={class:"ml-2"},Ve={class:"ml-2"},Ne={class:"ml-2"};function be(t,i,n,p,o,d){const a=e.resolveComponent("single-selection"),r=e.resolveComponent("collapse-section"),_=e.resolveComponent("free-text"),c=e.resolveComponent("pain-scale"),h=e.resolveComponent("multiple-selection");return e.openBlock(),e.createElementBlock("div",null,[n.data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.durationQuestion?(e.openBlock(),e.createBlock(r,{key:0,class:"mb-3",title:"Duración del dolor de cabeza"},{default:e.withCtx(()=>[e.createVNode(a,{class:"ml-2",title:n.showPatientTitle?o.durationQuestion.patientTitle:o.durationQuestion.title,question:o.durationQuestion},null,8,["title","question"])]),_:1})):e.createCommentVNode("",!0),o.painEpisodesQuestion?(e.openBlock(),e.createBlock(r,{key:1,class:"mb-3",title:"Número de episodios del dolor de cabeza"},{default:e.withCtx(()=>[e.createVNode(_,{class:"ml-2",title:n.showPatientTitle?o.painEpisodesQuestion.patientTitle:o.painEpisodesQuestion.title,answer:o.painEpisodesQuestion.answer},null,8,["title","answer"])]),_:1})):e.createCommentVNode("",!0),o.painLocationQuestions?(e.openBlock(),e.createBlock(r,{key:2,class:"mb-3",title:"Localización del dolor de cabeza"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.painLocationQuestions,l=>(e.openBlock(),e.createElementBlock("div",ue,[l.type=="singleSelection"?(e.openBlock(),e.createBlock(a,{key:0,class:"mb-2",title:n.showPatientTitle?l.patientTitle:l.title,question:l},null,8,["title","question"])):e.createCommentVNode("",!0),l.type=="free"?(e.openBlock(),e.createBlock(_,{key:1,title:n.showPatientTitle?l.patientTitle:l.title,answer:l.answer},null,8,["title","answer"])):e.createCommentVNode("",!0)]))),256))]),_:1})):e.createCommentVNode("",!0),e.createVNode(r,{class:"mb-3",title:"Irradiación del dolor de cabeza"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.painIrradiationQuestions,l=>(e.openBlock(),e.createElementBlock("div",ge,[e.createVNode(_,{title:n.showPatientTitle?l.patientTitle:l.title,answer:l.answer},null,8,["title","answer"])]))),256))]),_:1}),e.createVNode(r,{class:"mb-3",title:"Tipo de dolor de cabeza"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.painTypeQuestions,l=>(e.openBlock(),e.createElementBlock("div",Ee,[l.type=="singleSelection"?(e.openBlock(),e.createBlock(a,{key:0,class:"mb-2",title:n.showPatientTitle?l.patientTitle:l.title,question:l},null,8,["title","question"])):e.createCommentVNode("",!0),l.type=="free"?(e.openBlock(),e.createBlock(_,{key:1,title:n.showPatientTitle?l.patientTitle:l.title,answer:l.answer},null,8,["title","answer"])):e.createCommentVNode("",!0)]))),256))]),_:1}),o.painScaleQuestion?(e.openBlock(),e.createBlock(r,{key:3,class:"mb-3",title:"Intensidad del dolor de cabeza"},{default:e.withCtx(()=>[e.createVNode(c,{value:o.painScaleQuestion,title:n.showPatientTitle?o.painScaleQuestion.patientTitle:o.painScaleQuestion.title},null,8,["value","title"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(r,{class:"mb-3",title:"Agravantes del dolor de cabeza"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.painAggravatingQuestions,l=>(e.openBlock(),e.createElementBlock("div",Ve,[l.type=="multipleSelection"?(e.openBlock(),e.createBlock(h,{key:0,class:"mb-2",title:n.showPatientTitle?l.patientTitle:l.title,question:l},null,8,["title","question"])):e.createCommentVNode("",!0),l.type=="free"?(e.openBlock(),e.createBlock(_,{key:1,title:n.showPatientTitle?l.patientTitle:l.title,answer:l.answer},null,8,["title","answer"])):e.createCommentVNode("",!0)]))),256))]),_:1}),e.createVNode(r,{class:"mb-3",title:"Atenuantes del dolor de cabeza"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.painMitigatingQuestions,l=>(e.openBlock(),e.createElementBlock("div",Ne,[l.type=="multipleSelection"?(e.openBlock(),e.createBlock(h,{key:0,class:"mb-2",title:n.showPatientTitle?l.patientTitle:l.title,question:l},null,8,["title","question"])):e.createCommentVNode("",!0),l.type=="free"?(e.openBlock(),e.createBlock(_,{key:1,title:n.showPatientTitle?l.patientTitle:l.title,answer:l.answer},null,8,["title","answer"])):e.createCommentVNode("",!0)]))),256))]),_:1}),o.symptomsQuestion?(e.openBlock(),e.createBlock(r,{key:4,class:"mb-3",title:"Síntomas de Aura"},{default:e.withCtx(()=>[e.createVNode(h,{class:"mb-2",title:n.showPatientTitle?o.symptomsQuestion.patientTitle:o.symptomsQuestion.title,question:o.symptomsQuestion},null,8,["title","question"])]),_:1})):e.createCommentVNode("",!0),o.additionalSymptomsQuestion?(e.openBlock(),e.createBlock(r,{key:5,class:"mb-3",title:"Síntomas adicionales"},{default:e.withCtx(()=>[e.createVNode(h,{class:"mb-2",title:n.showPatientTitle?o.additionalSymptomsQuestion.patientTitle:o.additionalSymptomsQuestion.title,question:o.additionalSymptomsQuestion},null,8,["title","question"])]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])}const Se=m({props:["data","showPatientTitle"],components:{PainScale:w,SingleSelection:B,MultipleSelection:y,FreeText:f,CollapseSection:u},data(){return{durationQuestion:null,painEpisodesQuestion:null,painScaleQuestion:null,symptomsQuestion:null,additionalSymptomsQuestion:null,painLocationQuestions:[],painIrradiationQuestions:[],painTypeQuestions:[],painAggravatingQuestions:[],painMitigatingQuestions:[]}},mounted(){this.data&&(this.durationQuestion=this.data.find(t=>t.id==="1"),this.painEpisodesQuestion=this.data.find(t=>t.id==="2"),this.painScaleQuestion=this.data.find(t=>t.id==="6"),this.symptomsQuestion=this.data.find(t=>t.id==="9"),this.additionalSymptomsQuestion=this.data.find(t=>t.id==="10"),this.painLocationQuestions=this.data.filter(t=>t.id==="3"||t.id==="3.1"),this.painIrradiationQuestions=this.data.filter(t=>t.id==="4"||t.id==="4.1"),this.painTypeQuestions=this.data.filter(t=>t.id==="5"||t.id==="5.1"),this.painAggravatingQuestions=this.data.filter(t=>t.id==="7"||t.id==="7.1"),this.painMitigatingQuestions=this.data.filter(t=>["8","8.1","8.2"].includes(t.id)))}},[["render",be],["__scopeId","data-v-38c08e79"]]),qe=t=>(e.pushScopeId("data-v-70fcbf20"),t=t(),e.popScopeId(),t),Te={class:"ml-2"},xe={class:"ml-2"},Ce={class:"ml-2"},Qe={class:"ml-2"},Pe={class:"ml-2"},De={key:1,class:"mb-3"},Ie=qe(()=>e.createElementVNode("b",null,"IMC:",-1));function Fe(t,i,n,p,o,d){const a=e.resolveComponent("free-text"),r=e.resolveComponent("collapse-section"),_=e.resolveComponent("single-selection");return e.openBlock(),e.createElementBlock("div",null,[n.data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(r,{class:"mb-3",title:"Antecedentes médicos"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.medicalHistoryQuestions,c=>(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(a,{title:n.showPatientTitle?c.patientTitle:c.title,answer:c.answer},null,8,["title","answer"])]))),256))]),_:1}),e.createVNode(r,{class:"mb-3",title:"Antecedentes farmacológicos"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pharmacologicalHistoryQuestions,c=>(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(a,{title:n.showPatientTitle?c.patientTitle:c.title,answer:c.answer},null,8,["title","answer"])]))),256))]),_:1}),e.createVNode(r,{class:"mb-3",title:"Antecedentes alérgicos"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.allergicHistoryQuestions,c=>(e.openBlock(),e.createElementBlock("div",Ce,[e.createVNode(a,{title:n.showPatientTitle?c.patientTitle:c.title,answer:c.answer},null,8,["title","answer"])]))),256))]),_:1}),e.createVNode(r,{class:"mb-3",title:"Antecedentes ginecológicos"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.gynecologicalHistoryQuestions,c=>(e.openBlock(),e.createElementBlock("div",Qe,[e.createVNode(a,{title:n.showPatientTitle?c.patientTitle:c.title,answer:c.answer},null,8,["title","answer"])]))),256))]),_:1}),e.createVNode(r,{class:"mb-3",title:"Factores de riesgo relacionados con los hábitos"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.riskFactorQuestions,c=>(e.openBlock(),e.createElementBlock("div",Pe,[c.type=="number"?(e.openBlock(),e.createBlock(a,{key:0,class:"mb-2",title:n.showPatientTitle?c.patientTitle:c.title,answer:c.answer},null,8,["title","answer"])):e.createCommentVNode("",!0),d.imc&&c.id=="7"?(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("span",null,[Ie,e.createTextVNode(" "+e.toDisplayString(d.imc),1)])])):e.createCommentVNode("",!0),c.type=="singleSelection"?(e.openBlock(),e.createBlock(_,{key:2,class:"mb-2",title:n.showPatientTitle?c.patientTitle:c.title,question:c},null,8,["title","question"])):e.createCommentVNode("",!0)]))),256))]),_:1})],64)):e.createCommentVNode("",!0)])}const $e=m({props:["data","showPatientTitle"],components:{PainScale:w,SingleSelection:B,FreeText:f,CollapseSection:u},data(){return{medicalHistoryQuestions:[],pharmacologicalHistoryQuestions:[],allergicHistoryQuestions:[],gynecologicalHistoryQuestions:[],riskFactorQuestions:[]}},computed:{imc(){if(!this.data)return null;const t=this.data.find(n=>n.id==="6"),i=this.data.find(n=>n.id==="7");return t&&t.answer&&i&&i.answer?(Number(t.answer)/g(Number(i.answer)/100,2)).toFixed(2):null}},mounted(){this.data&&(this.medicalHistoryQuestions=this.data.filter(t=>t.id==="1"||t.id==="1.1"||t.id==="1.2"||t.id==="1.2.1"),this.pharmacologicalHistoryQuestions=this.data.filter(t=>t.id==="2"||t.id==="2.1"),this.allergicHistoryQuestions=this.data.filter(t=>t.id==="3"||t.id==="3.1"),this.gynecologicalHistoryQuestions=this.data.filter(t=>t.id==="4"||t.id==="5"),this.riskFactorQuestions=this.data.filter(t=>["6","7","8","9"].includes(t.id)))}},[["render",Fe],["__scopeId","data-v-70fcbf20"]]),Le={key:0,class:"mb-3"},Ae={key:1,class:"mb-3"},He={class:"title"},ze={key:2,class:"mb-3"},Me={key:3,class:"mb-3"},Ue={key:4,class:"mb-3"};function je(t,i,n,p,o,d){const a=e.resolveComponent("migraine-flow-viewer"),r=e.resolveComponent("preventive-check-viewer"),_=e.resolveComponent("image-point-selector"),c=e.resolveComponent("synapse-viewer",!0),h=e.resolveComponent("image-selector"),l=e.resolveComponent("pain-scale"),Ge=e.resolveComponent("single-selection"),Je=e.resolveComponent("multiple-selection"),Ke=e.resolveComponent("free-text");return e.openBlock(),e.createElementBlock("div",null,[n.data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.questionnarieName==="headacheAndMigraine"?(e.openBlock(),e.createBlock(a,{key:0,data:n.data,showPatientTitle:n.showPatientTitle},null,8,["data","showPatientTitle"])):n.questionnarieName==="preventiveCheck"?(e.openBlock(),e.createBlock(r,{key:1,data:n.data,showPatientTitle:n.showPatientTitle},null,8,["data","showPatientTitle"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(n.data,s=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.showOnlyInClient?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.type==="imagePointSelector"?(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(_,{question:s,title:n.showPatientTitle?s.patientTitle:s.title},null,8,["question","title"])])):s.type==="synapse"?(e.openBlock(),e.createElementBlock("div",Ae,[e.createElementVNode("div",He,e.toDisplayString(n.showPatientTitle?s.patientTitle:s.title),1),e.createVNode(c,{data:s.answer},null,8,["data"])])):s.type==="imageSelector"?(e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(h,{question:s,title:n.showPatientTitle?s.patientTitle:s.title},null,8,["question","title"])])):s.type==="painScale"?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(l,{value:s,title:n.showPatientTitle?s.patientTitle:s.title},null,8,["value","title"])])):!["action","actionSelector","info","productSelector","patientSelector"].includes(s.type)&&s.title!=="¿Cuál es tu consulta?"?(e.openBlock(),e.createElementBlock("div",Ue,[["singleSelection","selectionList"].includes(s.type)?(e.openBlock(),e.createBlock(Ge,{key:0,class:"mb-3",title:n.showPatientTitle?s.patientTitle:s.title,question:s},null,8,["title","question"])):["multipleSelection","autocomplete"].includes(s.type)?(e.openBlock(),e.createBlock(Je,{key:1,class:"mb-3",title:n.showPatientTitle?s.patientTitle:s.title,question:s},null,8,["title","question"])):["free","date","number","shortAnswer","gender"].includes(s.type)?(e.openBlock(),e.createBlock(Ke,{key:2,class:"mb-3",title:n.showPatientTitle?s.patientTitle:s.title,answer:s.answer},null,8,["title","answer"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))],64))),256))],64)):e.createCommentVNode("",!0)])}const Oe=m({name:"SynapseViewer",props:["data","showPatientTitle","questionnarieName"],components:{ImagePointSelector:T,PainScale:w,SingleSelection:B,MultipleSelection:y,FreeText:f,ImageSelector:he,MigraineFlowViewer:Se,PreventiveCheckViewer:$e}},[["render",je],["__scopeId","data-v-c13d9646"]]);return{install:t=>{t.component("SynapseViewer",Oe)}}});
(function(e,F){typeof exports=="object"&&typeof module!="undefined"?module.exports=F(require("vue")):typeof define=="function"&&define.amd?define(["vue"],F):(e=typeof globalThis!="undefined"?globalThis:e||self,e.SynapseViewer=F(e.Vue))})(this,function(e){"use strict";var X=Math.pow;const F=t=>(e.pushScopeId("data-v-90907f88"),t=t(),e.popScopeId(),t),le={class:"title mb-2"},ae={class:"img-container"},ce={class:"img-selection"},re=["src"],de=[F(()=>e.createElementVNode("div",{class:"subpoint"},null,-1))];function pe(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",le,e.toDisplayString(n.title),1),e.createElementVNode("div",ae,[e.createElementVNode("div",ce,[e.createElementVNode("img",{src:n.question.questionData.imgUrl},null,8,re),e.createElementVNode("div",{class:"point",style:e.normalizeStyle({top:`${n.question.answer.y}%`,left:`${n.question.answer.x}%`})},de,4)])])])}const T=(t,d)=>{const n=t.__vccOpts||t;for(const[B,c]of d)n[B]=c;return n},me=T({props:["question","title"]},[["render",pe],["__scopeId","data-v-90907f88"]]),he=t=>(e.pushScopeId("data-v-94c6e091"),t=t(),e.popScopeId(),t),ue={class:"title mb-2"},_e={class:"answer-section mb-2"},fe={class:"painlevel mb-1"},ke={class:"d-flex align-item-center justify-content-center"},we={class:"box-container"},ye={class:"mb-2"},Be=he(()=>e.createElementVNode("div",{class:"d-flex justify-content-between"},[e.createElementVNode("div",{class:"help-text"},"Sin dolor"),e.createElementVNode("div",{class:"help-text"},"Intolerable")],-1));function ge(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",ue,e.toDisplayString(n.title),1),e.createElementVNode("div",_e,e.toDisplayString(_.answerText),1),e.createElementVNode("div",fe,[e.createElementVNode("div",ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.levels,f=>(e.openBlock(),e.createElementBlock("div",we,[e.createElementVNode("div",{class:"box mb-2",style:e.normalizeStyle({"background-color":f.value<=_.selectedValue||f.value<=c.hoverValue?f.color:"#DADDE7"})},null,4),e.createElementVNode("div",ye,e.toDisplayString(f.value),1)]))),256))])]),Be])}const Z=T({props:["value","title"],data(){return{question:null,hoverValue:null,levels:[{value:0,color:"#FFDD74"},{value:1,color:"#FBC318"},{value:2,color:"#F8AE1D"},{value:3,color:"#F5A01E"},{value:4,color:"#F29121"},{value:5,color:"#EF8223"},{value:6,color:"#ED7426"},{value:7,color:"#EA6529"},{value:8,color:"#E7562B"},{value:9,color:"#E5472D"},{value:10,color:"#E03130"}]}},computed:{selectedValue(){return this.question&&this.question.answer?this.question.answer:null},answerText(){return this.question&&this.question.answer?`${this.question.answer}/${this.question.questionData.max}`:null}},watch:{value:{immediate:!0,handler(t){t&&(this.question=t,!this.question.answer&&this.question.questionData.min&&(this.question.answer=this.question.questionData.min))}}}},[["render",ge],["__scopeId","data-v-94c6e091"]]),Se=t=>(e.pushScopeId("data-v-ae99b734"),t=t(),e.popScopeId(),t),be={class:"title mb-2"},Ee={class:"answer-section mb-2"},Ne={key:0},Ve={class:"mb-1"},$e={key:1},Te={key:0,class:"no-selected"},qe=Se(()=>e.createElementVNode("div",{class:"mb-2"},"No seleccionados",-1)),Ce={class:"mb-2"};function De(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",be,e.toDisplayString(n.title),1),e.createElementVNode("div",Ee,[n.question.answer!=null?(e.openBlock(),e.createElementBlock("ul",Ne,[e.createElementVNode("li",Ve,e.toDisplayString(_.answerLabel),1)])):(e.openBlock(),e.createElementBlock("span",$e,"Ninguno"))]),_.noSelectedText?(e.openBlock(),e.createElementBlock("div",Te,[qe,e.createElementVNode("div",Ce,e.toDisplayString(_.noSelectedText),1)])):e.createCommentVNode("",!0)])}const H=T({props:["title","question"],computed:{answerLabel(){if(this.question&&this.question.answer){const t=this.question.questionData.options.find(d=>this.question.answer===d.value);if(t)return t.title?t.title+" "+t.label:t.label}return null},noSelectedText(){if(this.question&&!this.question.hideUnselectedAnswers&&this.answerLabel){const t=this.question.questionData.options.find(n=>this.question.answer===n.value),d=this.question.questionData.options.filter(n=>![t].includes(n));if(d)return d.map(n=>n.title?n.title+" "+n.label:n.label).join(", ")}return null}}},[["render",De],["__scopeId","data-v-ae99b734"]]),xe=t=>(e.pushScopeId("data-v-ba59488c"),t=t(),e.popScopeId(),t),Me={class:"title mb-2"},Qe={key:0},Ie={class:"mb-2"},Pe={key:1},Fe={key:0,class:"no-selected"},Le=xe(()=>e.createElementVNode("div",{class:"mb-2"},"No seleccionados",-1)),Oe={class:"mb-2"};function Ae(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Me,e.toDisplayString(n.title),1),e.createElementVNode("div",{class:e.normalizeClass(["answer-section mb-2",{warning:n.type==="warning"}])},[n.question.answer!=null?(e.openBlock(),e.createElementBlock("ul",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.answerLabels,f=>(e.openBlock(),e.createElementBlock("li",Ie,e.toDisplayString(f),1))),256))])):(e.openBlock(),e.createElementBlock("span",Pe,"Ninguno"))],2),_.noSelectedText?(e.openBlock(),e.createElementBlock("div",Fe,[Le,e.createElementVNode("div",Oe,e.toDisplayString(_.noSelectedText),1)])):e.createCommentVNode("",!0)])}const G=T({props:["title","question","type"],computed:{answerLabels(){if(this.question&&this.question.answer){if(this.question.type==="multipleSelection"||this.question.type==="imageMultipleSelector")return this.question.questionData.options.filter(d=>this.question.answer.includes(d.value)).map(d=>d.label);if(this.question.type==="autocomplete")return this.question.answer.map(t=>t.label)}return[]},noSelectedText(){if(this.question&&!this.question.hideUnselectedAnswers&&this.answerLabels.length>0&&this.question.type==="multipleSelection"){const t=this.question.questionData.options.filter(n=>this.question.answer.includes(n.value)),d=this.question.questionData.options.filter(n=>!t.includes(n));if(d)return d.map(n=>n.label).join(", ")}return null}}},[["render",Ae],["__scopeId","data-v-ba59488c"]]);var He=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ye(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var v={exports:{}};(function(t,d){(function(n,B){t.exports=B()})(He,function(){var n=1e3,B=6e4,c=36e5,_="millisecond",f="second",k="minute",S="hour",r="day",q="week",l="month",z="quarter",C="year",D="date",j="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Ht=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Yt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(p){var s=["th","st","nd","rd"],o=p%100;return"["+p+(s[(o-20)%10]||s[o]||s[0])+"]"}},K=function(p,s,o){var a=String(p);return!a||a.length>=s?p:""+Array(s+1-a.length).join(o)+p},zt={s:K,z:function(p){var s=-p.utcOffset(),o=Math.abs(s),a=Math.floor(o/60),i=o%60;return(s<=0?"+":"-")+K(a,2,"0")+":"+K(i,2,"0")},m:function p(s,o){if(s.date()<o.date())return-p(o,s);var a=12*(o.year()-s.year())+(o.month()-s.month()),i=s.clone().add(a,l),h=o-i<0,u=s.clone().add(a+(h?-1:1),l);return+(-(a+(o-i)/(h?i-u:u-i))||0)},a:function(p){return p<0?Math.ceil(p)||0:Math.floor(p)},p:function(p){return{M:l,y:C,w:q,d:r,D,h:S,m:k,s:f,ms:_,Q:z}[p]||String(p||"").toLowerCase().replace(/s$/,"")},u:function(p){return p===void 0}},L="en",M={};M[L]=Yt;var ie="$isDayjsObject",R=function(p){return p instanceof W||!(!p||!p[ie])},U=function p(s,o,a){var i;if(!s)return L;if(typeof s=="string"){var h=s.toLowerCase();M[h]&&(i=h),o&&(M[h]=o,i=h);var u=s.split("-");if(!i&&u.length>1)return p(u[0])}else{var y=s.name;M[y]=s,i=y}return!a&&i&&(L=i),i||!a&&L},b=function(p,s){if(R(p))return p.clone();var o=typeof s=="object"?s:{};return o.date=p,o.args=arguments,new W(o)},w=zt;w.l=U,w.i=R,w.w=function(p,s){return b(p,{locale:s.$L,utc:s.$u,x:s.$x,$offset:s.$offset})};var W=function(){function p(o){this.$L=U(o.locale,null,!0),this.parse(o),this.$x=this.$x||o.x||{},this[ie]=!0}var s=p.prototype;return s.parse=function(o){this.$d=function(a){var i=a.date,h=a.utc;if(i===null)return new Date(NaN);if(w.u(i))return new Date;if(i instanceof Date)return new Date(i);if(typeof i=="string"&&!/Z$/i.test(i)){var u=i.match(m);if(u){var y=u[2]-1||0,g=(u[7]||"0").substring(0,3);return h?new Date(Date.UTC(u[1],y,u[3]||1,u[4]||0,u[5]||0,u[6]||0,g)):new Date(u[1],y,u[3]||1,u[4]||0,u[5]||0,u[6]||0,g)}}return new Date(i)}(o),this.init()},s.init=function(){var o=this.$d;this.$y=o.getFullYear(),this.$M=o.getMonth(),this.$D=o.getDate(),this.$W=o.getDay(),this.$H=o.getHours(),this.$m=o.getMinutes(),this.$s=o.getSeconds(),this.$ms=o.getMilliseconds()},s.$utils=function(){return w},s.isValid=function(){return this.$d.toString()!==j},s.isSame=function(o,a){var i=b(o);return this.startOf(a)<=i&&i<=this.endOf(a)},s.isAfter=function(o,a){return b(o)<this.startOf(a)},s.isBefore=function(o,a){return this.endOf(a)<b(o)},s.$g=function(o,a,i){return w.u(o)?this[a]:this.set(i,o)},s.unix=function(){return Math.floor(this.valueOf()/1e3)},s.valueOf=function(){return this.$d.getTime()},s.startOf=function(o,a){var i=this,h=!!w.u(a)||a,u=w.p(o),y=function(I,V){var x=w.w(i.$u?Date.UTC(i.$y,V,I):new Date(i.$y,V,I),i);return h?x:x.endOf(r)},g=function(I,V){return w.w(i.toDate()[I].apply(i.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(V)),i)},E=this.$W,N=this.$M,$=this.$D,P="set"+(this.$u?"UTC":"");switch(u){case C:return h?y(1,0):y(31,11);case l:return h?y(1,N):y(0,N+1);case q:var Q=this.$locale().weekStart||0,O=(E<Q?E+7:E)-Q;return y(h?$-O:$+(6-O),N);case r:case D:return g(P+"Hours",0);case S:return g(P+"Minutes",1);case k:return g(P+"Seconds",2);case f:return g(P+"Milliseconds",3);default:return this.clone()}},s.endOf=function(o){return this.startOf(o,!1)},s.$set=function(o,a){var i,h=w.p(o),u="set"+(this.$u?"UTC":""),y=(i={},i[r]=u+"Date",i[D]=u+"Date",i[l]=u+"Month",i[C]=u+"FullYear",i[S]=u+"Hours",i[k]=u+"Minutes",i[f]=u+"Seconds",i[_]=u+"Milliseconds",i)[h],g=h===r?this.$D+(a-this.$W):a;if(h===l||h===C){var E=this.clone().set(D,1);E.$d[y](g),E.init(),this.$d=E.set(D,Math.min(this.$D,E.daysInMonth())).$d}else y&&this.$d[y](g);return this.init(),this},s.set=function(o,a){return this.clone().$set(o,a)},s.get=function(o){return this[w.p(o)]()},s.add=function(o,a){var i,h=this;o=Number(o);var u=w.p(a),y=function(N){var $=b(h);return w.w($.date($.date()+Math.round(N*o)),h)};if(u===l)return this.set(l,this.$M+o);if(u===C)return this.set(C,this.$y+o);if(u===r)return y(1);if(u===q)return y(7);var g=(i={},i[k]=B,i[S]=c,i[f]=n,i)[u]||1,E=this.$d.getTime()+o*g;return w.w(E,this)},s.subtract=function(o,a){return this.add(-1*o,a)},s.format=function(o){var a=this,i=this.$locale();if(!this.isValid())return i.invalidDate||j;var h=o||"YYYY-MM-DDTHH:mm:ssZ",u=w.z(this),y=this.$H,g=this.$m,E=this.$M,N=i.weekdays,$=i.months,P=i.meridiem,Q=function(V,x,A,J){return V&&(V[x]||V(a,h))||A[x].slice(0,J)},O=function(V){return w.s(y%12||12,V,"0")},I=P||function(V,x,A){var J=V<12?"AM":"PM";return A?J.toLowerCase():J};return h.replace(Ht,function(V,x){return x||function(A){switch(A){case"YY":return String(a.$y).slice(-2);case"YYYY":return w.s(a.$y,4,"0");case"M":return E+1;case"MM":return w.s(E+1,2,"0");case"MMM":return Q(i.monthsShort,E,$,3);case"MMMM":return Q($,E);case"D":return a.$D;case"DD":return w.s(a.$D,2,"0");case"d":return String(a.$W);case"dd":return Q(i.weekdaysMin,a.$W,N,2);case"ddd":return Q(i.weekdaysShort,a.$W,N,3);case"dddd":return N[a.$W];case"H":return String(y);case"HH":return w.s(y,2,"0");case"h":return O(1);case"hh":return O(2);case"a":return I(y,g,!0);case"A":return I(y,g,!1);case"m":return String(g);case"mm":return w.s(g,2,"0");case"s":return String(a.$s);case"ss":return w.s(a.$s,2,"0");case"SSS":return w.s(a.$ms,3,"0");case"Z":return u}return null}(V)||u.replace(":","")})},s.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},s.diff=function(o,a,i){var h,u=this,y=w.p(a),g=b(o),E=(g.utcOffset()-this.utcOffset())*B,N=this-g,$=function(){return w.m(u,g)};switch(y){case C:h=$()/12;break;case l:h=$();break;case z:h=$()/3;break;case q:h=(N-E)/6048e5;break;case r:h=(N-E)/864e5;break;case S:h=N/c;break;case k:h=N/B;break;case f:h=N/n;break;default:h=N}return i?h:w.a(h)},s.daysInMonth=function(){return this.endOf(l).$D},s.$locale=function(){return M[this.$L]},s.locale=function(o,a){if(!o)return this.$L;var i=this.clone(),h=U(o,a,!0);return h&&(i.$L=h),i},s.clone=function(){return w.w(this.$d,this)},s.toDate=function(){return new Date(this.valueOf())},s.toJSON=function(){return this.isValid()?this.toISOString():null},s.toISOString=function(){return this.$d.toISOString()},s.toString=function(){return this.$d.toUTCString()},p}(),se=W.prototype;return b.prototype=se,[["$ms",_],["$s",f],["$m",k],["$H",S],["$W",r],["$M",l],["$y",C],["$D",D]].forEach(function(p){se[p[1]]=function(s){return this.$g(s,p[0],p[1])}}),b.extend=function(p,s){return p.$i||(p(s,W,b),p.$i=!0),b},b.locale=U,b.isDayjs=R,b.unix=function(p){return b(1e3*p)},b.en=M[L],b.Ls=M,b.p={},b})})(v);var ze=v.exports;const ee=Ye(ze),te=t=>(e.pushScopeId("data-v-351a44e5"),t=t(),e.popScopeId(),t),je={class:"title mb-2"},Ue={key:0,class:"answer-section mb-2"},We={key:0},Je={key:1},Ze={key:1,class:"answer-section mb-2"},Ge={key:2,class:"answer-section mb-2"},Ke=[te(()=>e.createElementVNode("span",null,"- - -",-1))],Re={key:3,class:"answer-section mb-2"},Xe=[te(()=>e.createElementVNode("span",null,"Ninguno",-1))];function ve(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",je,e.toDisplayString(n.title),1),n.type&&n.type==="date"&&n.answer?(e.openBlock(),e.createElementBlock("div",Ue,[n.answer=="dont_know"?(e.openBlock(),e.createElementBlock("span",We,"No lo sé")):(e.openBlock(),e.createElementBlock("span",Je,e.toDisplayString(_.formatDateAnswer),1))])):n.answer?(e.openBlock(),e.createElementBlock("div",Ze,[e.createElementVNode("span",null,e.toDisplayString(n.answer),1)])):n.title.includes("pesas")||n.title.includes("mides")||n.title.includes("cintura")?(e.openBlock(),e.createElementBlock("div",Ge,Ke)):(e.openBlock(),e.createElementBlock("div",Re,Xe))])}const Y=T({props:["title","answer","type"],computed:{formatDateAnswer(){const t=ee(this.answer,"YYYY-MM-DD");if(this.type&&this.type==="date"&&this.answer&&t.isValid()){const d=ee(this.answer);let n=d.format("dddd DD");n=n.charAt(0).toUpperCase()+n.slice(1);let B=d.format("MMMM");return B=B.charAt(0).toUpperCase()+B.slice(1),n+" de "+B+", "+d.format("YYYY")}return this.answer}}},[["render",ve],["__scopeId","data-v-351a44e5"]]),et={class:"title mb-2"},tt={class:"d-flex flex-wrap"},nt={class:"badge d-flex flex-column mr-2 mb-2"},ot=["src"];function it(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",et,e.toDisplayString(n.title),1),e.createElementVNode("div",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.question.answer,f=>(e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("span",null,e.toDisplayString(n.question.questionData.options.find(k=>k.value===f).label),1),e.createElementVNode("img",{class:"preview",src:n.question.questionData.options.find(k=>k.value===f).src},null,8,ot)]))),256))])])}const st=T({props:["title","question"]},[["render",it],["__scopeId","data-v-46a54f37"]]),lt={class:"box"},at={class:"title-section mb-3"},ct={key:0,class:"icon-arrow-down"},rt={key:1,class:"icon-arrow-up"};function dt(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",lt,[e.createElementVNode("div",at,[e.createElementVNode("div",{class:"title",onClick:d[0]||(d[0]=f=>c.expanded=!c.expanded)},e.toDisplayString(n.title),1),e.createElementVNode("div",{onClick:d[1]||(d[1]=f=>c.expanded=!c.expanded)},[c.expanded?(e.openBlock(),e.createElementBlock("span",rt)):(e.openBlock(),e.createElementBlock("span",ct))])]),e.withDirectives(e.createElementVNode("div",{class:"content",style:e.normalizeStyle({"max-height":n.contentMaxHeight})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4),[[e.vShow,c.expanded]])])}const ne=T({props:{title:{},contentMaxHeight:{},value:{default:!0}},data(){return{expanded:!1}},watch:{value:{immediate:!0,handler(t){this.expanded=t}},expanded(t){this.$emit("input",t)}}},[["render",dt],["__scopeId","data-v-1d8ad39f"]]),pt={class:"ml-2"},mt={class:"ml-2"},ht={class:"ml-2"},ut={class:"ml-2"},_t={class:"ml-2"};function ft(t,d,n,B,c,_){const f=e.resolveComponent("single-selection"),k=e.resolveComponent("collapse-section"),S=e.resolveComponent("free-text"),r=e.resolveComponent("pain-scale"),q=e.resolveComponent("multiple-selection");return e.openBlock(),e.createElementBlock("div",null,[n.data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.durationQuestion?(e.openBlock(),e.createBlock(k,{key:0,class:"mb-3",title:"Duración del dolor de cabeza"},{default:e.withCtx(()=>[e.createVNode(f,{class:"ml-2",title:n.showPatientTitle?c.durationQuestion.patientTitle:c.durationQuestion.title,question:c.durationQuestion},null,8,["title","question"])]),_:1})):e.createCommentVNode("",!0),c.painEpisodesQuestion?(e.openBlock(),e.createBlock(k,{key:1,class:"mb-3",title:"Número de episodios del dolor de cabeza"},{default:e.withCtx(()=>[e.createVNode(S,{class:"ml-2",title:n.showPatientTitle?c.painEpisodesQuestion.patientTitle:c.painEpisodesQuestion.title,answer:c.painEpisodesQuestion.answer},null,8,["title","answer"])]),_:1})):e.createCommentVNode("",!0),c.painLocationQuestions?(e.openBlock(),e.createBlock(k,{key:2,class:"mb-3",title:"Localización del dolor de cabeza"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.painLocationQuestions,l=>(e.openBlock(),e.createElementBlock("div",pt,[l.type=="singleSelection"?(e.openBlock(),e.createBlock(f,{key:0,class:"mb-2",title:n.showPatientTitle?l.patientTitle:l.title,question:l},null,8,["title","question"])):e.createCommentVNode("",!0),l.type=="free"?(e.openBlock(),e.createBlock(S,{key:1,title:n.showPatientTitle?l.patientTitle:l.title,answer:l.answer},null,8,["title","answer"])):e.createCommentVNode("",!0)]))),256))]),_:1})):e.createCommentVNode("",!0),e.createVNode(k,{class:"mb-3",title:"Irradiación del dolor de cabeza"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.painIrradiationQuestions,l=>(e.openBlock(),e.createElementBlock("div",mt,[e.createVNode(S,{title:n.showPatientTitle?l.patientTitle:l.title,answer:l.answer},null,8,["title","answer"])]))),256))]),_:1}),e.createVNode(k,{class:"mb-3",title:"Tipo de dolor de cabeza"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.painTypeQuestions,l=>(e.openBlock(),e.createElementBlock("div",ht,[l.type=="singleSelection"?(e.openBlock(),e.createBlock(f,{key:0,class:"mb-2",title:n.showPatientTitle?l.patientTitle:l.title,question:l},null,8,["title","question"])):e.createCommentVNode("",!0),l.type=="free"?(e.openBlock(),e.createBlock(S,{key:1,title:n.showPatientTitle?l.patientTitle:l.title,answer:l.answer},null,8,["title","answer"])):e.createCommentVNode("",!0)]))),256))]),_:1}),c.painScaleQuestion?(e.openBlock(),e.createBlock(k,{key:3,class:"mb-3",title:"Intensidad del dolor de cabeza"},{default:e.withCtx(()=>[e.createVNode(r,{value:c.painScaleQuestion,title:n.showPatientTitle?c.painScaleQuestion.patientTitle:c.painScaleQuestion.title},null,8,["value","title"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(k,{class:"mb-3",title:"Agravantes del dolor de cabeza"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.painAggravatingQuestions,l=>(e.openBlock(),e.createElementBlock("div",ut,[l.type=="multipleSelection"?(e.openBlock(),e.createBlock(q,{key:0,class:"mb-2",title:n.showPatientTitle?l.patientTitle:l.title,question:l},null,8,["title","question"])):e.createCommentVNode("",!0),l.type=="free"?(e.openBlock(),e.createBlock(S,{key:1,title:n.showPatientTitle?l.patientTitle:l.title,answer:l.answer},null,8,["title","answer"])):e.createCommentVNode("",!0)]))),256))]),_:1}),e.createVNode(k,{class:"mb-3",title:"Atenuantes del dolor de cabeza"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.painMitigatingQuestions,l=>(e.openBlock(),e.createElementBlock("div",_t,[l.type=="multipleSelection"?(e.openBlock(),e.createBlock(q,{key:0,class:"mb-2",title:n.showPatientTitle?l.patientTitle:l.title,question:l},null,8,["title","question"])):e.createCommentVNode("",!0),l.type=="free"?(e.openBlock(),e.createBlock(S,{key:1,title:n.showPatientTitle?l.patientTitle:l.title,answer:l.answer},null,8,["title","answer"])):e.createCommentVNode("",!0)]))),256))]),_:1}),c.symptomsQuestion?(e.openBlock(),e.createBlock(k,{key:4,class:"mb-3",title:"Síntomas de Aura"},{default:e.withCtx(()=>[e.createVNode(q,{class:"mb-2",title:n.showPatientTitle?c.symptomsQuestion.patientTitle:c.symptomsQuestion.title,question:c.symptomsQuestion},null,8,["title","question"])]),_:1})):e.createCommentVNode("",!0),c.additionalSymptomsQuestion?(e.openBlock(),e.createBlock(k,{key:5,class:"mb-3",title:"Síntomas adicionales"},{default:e.withCtx(()=>[e.createVNode(q,{class:"mb-2",title:n.showPatientTitle?c.additionalSymptomsQuestion.patientTitle:c.additionalSymptomsQuestion.title,question:c.additionalSymptomsQuestion},null,8,["title","question"])]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])}const kt=T({props:["data","showPatientTitle"],components:{PainScale:Z,SingleSelection:H,MultipleSelection:G,FreeText:Y,CollapseSection:ne},data(){return{durationQuestion:null,painEpisodesQuestion:null,painScaleQuestion:null,symptomsQuestion:null,additionalSymptomsQuestion:null,painLocationQuestions:[],painIrradiationQuestions:[],painTypeQuestions:[],painAggravatingQuestions:[],painMitigatingQuestions:[]}},mounted(){this.data&&(this.durationQuestion=this.data.find(t=>t.id==="1"),this.painEpisodesQuestion=this.data.find(t=>t.id==="2"),this.painScaleQuestion=this.data.find(t=>t.id==="6"),this.symptomsQuestion=this.data.find(t=>t.id==="9"),this.additionalSymptomsQuestion=this.data.find(t=>t.id==="10"),this.painLocationQuestions=this.data.filter(t=>t.id==="3"||t.id==="3.1"),this.painIrradiationQuestions=this.data.filter(t=>t.id==="4"||t.id==="4.1"),this.painTypeQuestions=this.data.filter(t=>t.id==="5"||t.id==="5.1"),this.painAggravatingQuestions=this.data.filter(t=>t.id==="7"||t.id==="7.1"),this.painMitigatingQuestions=this.data.filter(t=>["8","8.1","8.2"].includes(t.id)))}},[["render",ft],["__scopeId","data-v-38c08e79"]]),wt=t=>(e.pushScopeId("data-v-d48c9c06"),t=t(),e.popScopeId(),t),yt={class:"ml-2"},Bt={class:"ml-2"},gt={class:"ml-2"},St={class:"ml-2"},bt={class:"ml-2"},Et={key:1,class:"mb-3"},Nt=wt(()=>e.createElementVNode("b",null,"IMC:",-1));function Vt(t,d,n,B,c,_){const f=e.resolveComponent("free-text"),k=e.resolveComponent("collapse-section"),S=e.resolveComponent("single-selection");return e.openBlock(),e.createElementBlock("div",null,[n.data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(k,{class:"mb-3",title:"Antecedentes médicos"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.medicalHistoryQuestions,r=>(e.openBlock(),e.createElementBlock("div",yt,[e.createVNode(f,{title:n.showPatientTitle?r.patientTitle:r.title,answer:r.answer},null,8,["title","answer"])]))),256))]),_:1}),e.createVNode(k,{class:"mb-3",title:"Antecedentes farmacológicos"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.pharmacologicalHistoryQuestions,r=>(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(f,{title:n.showPatientTitle?r.patientTitle:r.title,answer:r.answer},null,8,["title","answer"])]))),256))]),_:1}),_.allergicHistoryQuestions.length>0?(e.openBlock(),e.createBlock(k,{key:0,class:"mb-3",title:"Antecedentes alérgicos"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.allergicHistoryQuestions,r=>(e.openBlock(),e.createElementBlock("div",gt,[e.createVNode(f,{title:n.showPatientTitle?r.patientTitle:r.title,answer:r.answer},null,8,["title","answer"])]))),256))]),_:1})):e.createCommentVNode("",!0),e.createVNode(k,{class:"mb-3",title:"Antecedentes ginecológicos"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.gynecologicalHistoryQuestions,r=>(e.openBlock(),e.createElementBlock("div",St,[e.createVNode(f,{title:n.showPatientTitle?r.patientTitle:r.title,answer:r.answer},null,8,["title","answer"])]))),256))]),_:1}),e.createVNode(k,{class:"mb-3",title:"Factores de riesgo relacionados con los hábitos"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.riskFactorQuestions,r=>(e.openBlock(),e.createElementBlock("div",bt,[r.type=="number"?(e.openBlock(),e.createBlock(f,{key:0,class:"mb-2",title:n.showPatientTitle?r.patientTitle:r.title,answer:r.answer},null,8,["title","answer"])):e.createCommentVNode("",!0),_.imc&&r.id=="7"?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("span",null,[Nt,e.createTextVNode(" "+e.toDisplayString(_.imc),1)])])):e.createCommentVNode("",!0),r.type=="singleSelection"?(e.openBlock(),e.createBlock(S,{key:2,class:"mb-2",title:n.showPatientTitle?r.patientTitle:r.title,question:r},null,8,["title","question"])):e.createCommentVNode("",!0)]))),256))]),_:1})],64)):e.createCommentVNode("",!0)])}const $t=T({props:["data","showPatientTitle"],components:{PainScale:Z,SingleSelection:H,FreeText:Y,CollapseSection:ne},computed:{imc(){if(!this.data)return null;const t=this.data.find(n=>n.id==="6"),d=this.data.find(n=>n.id==="7");return t&&t.answer&&d&&d.answer?!Number(d.answer)>0?null:(Number(t.answer)/X(Number(d.answer)/100,2)).toFixed(2):null},medicalHistoryQuestions(){return this.data?this.data.filter(t=>t.id==="1"||t.id==="1.1"||t.id==="1.2"||t.id==="1.2.1"):[]},pharmacologicalHistoryQuestions(){return this.data?this.data.filter(t=>t.id==="2"||t.id==="2.1"):[]},allergicHistoryQuestions(){return this.data?this.data.filter(t=>t.id==="3"||t.id==="3.1"):[]},gynecologicalHistoryQuestions(){return this.data?this.data.filter(t=>t.id==="4"||t.id==="5"||t.id==="pvc-cytology"||t.id==="pvc-cytology-date"):[]},riskFactorQuestions(){return this.data?this.data.filter(t=>["6","7","8","8.1","9"].includes(t.id)):[]}}},[["render",Vt],["__scopeId","data-v-d48c9c06"]]),Tt=t=>(e.pushScopeId("data-v-7b415bc9"),t=t(),e.popScopeId(),t),qt={key:0,class:"mb-3"},Ct=Tt(()=>e.createElementVNode("b",null,"IMC:",-1)),Dt={class:"ml-2"};function xt(t,d,n,B,c,_){const f=e.resolveComponent("single-selection"),k=e.resolveComponent("multiple-selection"),S=e.resolveComponent("free-text");return e.openBlock(),e.createElementBlock("div",null,[n.data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[_.imc?(e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("span",null,[Ct,e.createTextVNode(" "+e.toDisplayString(_.imc),1)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data,r=>(e.openBlock(),e.createElementBlock("div",Dt,[r.type=="directSelector"?(e.openBlock(),e.createBlock(f,{key:0,class:"mb-2",title:n.showPatientTitle?r.patientTitle:r.title,question:r},null,8,["title","question"])):e.createCommentVNode("",!0),r.type=="imageMultipleSelector"?(e.openBlock(),e.createBlock(k,{key:1,class:"mb-2",title:r.title,question:r,type:"multipleSelection"},null,8,["title","question"])):e.createCommentVNode("",!0),r.type=="numberInput"?(e.openBlock(),e.createBlock(S,{key:2,title:r.title,answer:r.answer},null,8,["title","answer"])):e.createCommentVNode("",!0)]))),256))],64)):e.createCommentVNode("",!0)])}const Mt=T({props:["data","showPatientTitle"],components:{MultipleSelection:G,SingleSelection:H,FreeText:Y},computed:{imc(){if(!this.data)return null;let t=this.data.find(n=>n.id==="7"),d=this.data.find(n=>n.id==="9");return t&&t.answer&&d&&d.answer?(t=parseFloat(t.answer.replace(",",".")),d=parseInt(d.answer),!d>0?null:(t/X(d/100,2)).toFixed(2)):null}}},[["render",xt],["__scopeId","data-v-7b415bc9"]]),Qt={key:0,class:"mb-3"},It={key:1,class:"mb-3"},Pt={class:"title"},Ft={key:2,class:"mb-3"},Lt={key:3,class:"mb-3"},Ot={key:4,class:"mb-3"};function At(t,d,n,B,c,_){const f=e.resolveComponent("migraine-flow-viewer"),k=e.resolveComponent("preventive-check-viewer"),S=e.resolveComponent("nutrition-campaign-viewer"),r=e.resolveComponent("image-point-selector"),q=e.resolveComponent("synapse-viewer",!0),l=e.resolveComponent("image-selector"),z=e.resolveComponent("pain-scale"),C=e.resolveComponent("single-selection"),D=e.resolveComponent("multiple-selection"),j=e.resolveComponent("free-text");return e.openBlock(),e.createElementBlock("div",null,[n.data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.questionnarieName==="headacheAndMigraine"?(e.openBlock(),e.createBlock(f,{key:0,data:n.data,showPatientTitle:n.showPatientTitle},null,8,["data","showPatientTitle"])):n.questionnarieName==="preventiveCheck"?(e.openBlock(),e.createBlock(k,{key:1,data:n.data,showPatientTitle:n.showPatientTitle},null,8,["data","showPatientTitle"])):n.questionnarieName==="nutritionCampaign"?(e.openBlock(),e.createBlock(S,{key:2,data:n.data,showPatientTitle:n.showPatientTitle},null,8,["data","showPatientTitle"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(n.data,m=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.showOnlyInClient?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[m.type==="imagePointSelector"?(e.openBlock(),e.createElementBlock("div",Qt,[e.createVNode(r,{question:m,title:n.showPatientTitle&&m.patientTitle?m.patientTitle:m.title},null,8,["question","title"])])):m.type==="synapse"?(e.openBlock(),e.createElementBlock("div",It,[e.createElementVNode("div",Pt,e.toDisplayString(n.showPatientTitle&&m.patientTitle?m.patientTitle:m.title),1),e.createVNode(q,{data:m.answer},null,8,["data"])])):m.type==="imageSelector"?(e.openBlock(),e.createElementBlock("div",Ft,[e.createVNode(l,{question:m,title:n.showPatientTitle&&m.patientTitle?m.patientTitle:m.title},null,8,["question","title"])])):m.type==="painScale"?(e.openBlock(),e.createElementBlock("div",Lt,[e.createVNode(z,{value:m,title:n.showPatientTitle&&m.patientTitle?m.patientTitle:m.title},null,8,["value","title"])])):!["action","actionSelector","info","productSelector","patientSelector"].includes(m.type)&&m.title!=="¿Cuál es tu consulta?"?(e.openBlock(),e.createElementBlock("div",Ot,[["singleSelection","selectionList"].includes(m.type)?(e.openBlock(),e.createBlock(C,{key:0,class:"mb-3",title:n.showPatientTitle&&m.patientTitle?m.patientTitle:m.title,question:m},null,8,["title","question"])):["multipleSelection","autocomplete"].includes(m.type)?(e.openBlock(),e.createBlock(D,{key:1,class:"mb-3",title:n.showPatientTitle&&m.patientTitle?m.patientTitle:m.title,question:m},null,8,["title","question"])):["free","date","number","shortAnswer","gender","numberInput"].includes(m.type)?(e.openBlock(),e.createBlock(j,{key:2,class:"mb-3",title:n.showPatientTitle&&m.patientTitle?m.patientTitle:m.title,answer:m.answer,type:m.type},null,8,["title","answer","type"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))],64))),256))],64)):e.createCommentVNode("",!0)])}const oe=T({name:"SynapseViewer",props:["data","showPatientTitle","questionnarieName"],components:{ImagePointSelector:me,PainScale:Z,SingleSelection:H,MultipleSelection:G,FreeText:Y,ImageSelector:st,MigraineFlowViewer:kt,PreventiveCheckViewer:$t,NutritionCampaignViewer:Mt,SynapseViewer:oe}},[["render",At],["__scopeId","data-v-1b10d527"]]);return{install:t=>{t.component("SynapseViewer",oe)}}});

@@ -18,3 +18,3 @@ {

},
"version": "0.1.0",
"version": "0.1.1",
"private": false,

@@ -30,2 +30,3 @@ "type": "module",

"bootstrap": "^5.3.2",
"dayjs": "^1.11.13",
"vue": "^3.3.10"

@@ -32,0 +33,0 @@ },