@1doc3/synapse-viewer-2
Advanced tools
+1
-1
@@ -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-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} | ||
| .title[data-v-d0000486]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.img-container[data-v-d0000486]{display:flex;justify-content:center}.img-container .img-selection[data-v-d0000486]{position:relative}.img-container .img-selection img[data-v-d0000486]{height:100px}.img-container .img-selection .point[data-v-d0000486]{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-d0000486]{background-color:#ff3737be;width:14px;height:14px;border-radius:50%}.title[data-v-93f6524b]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-93f6524b]{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-93f6524b]{border:solid 1px #e7e7e7;border-radius:5px}.painlevel .box-container[data-v-93f6524b]{cursor:pointer;display:flex;flex-direction:column;align-items:center;flex-grow:1;margin-left:4px}.painlevel .box-container[data-v-93f6524b]:first-child{margin-left:0}.painlevel .box-container .box[data-v-93f6524b]{height:45px;width:100%}.help-text[data-v-93f6524b]{font-size:14px;color:#172b4d}.title[data-v-1c0f5bee]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-1c0f5bee]{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-1c0f5bee]{margin:0;padding-left:inherit}.no-selected[data-v-1c0f5bee]{color:#172b4d;font-size:13px;letter-spacing:0;line-height:20px}.title[data-v-398aabfc]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-398aabfc]{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-398aabfc]{border:1px solid #EAEAF9;background-color:#ffefe5;color:#ff5900}.answer-section ul[data-v-398aabfc]{margin:0;padding-left:inherit}.no-selected[data-v-398aabfc]{color:#172b4d;font-size:13px;letter-spacing:0;line-height:20px}.title[data-v-551740d0]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.answer-section[data-v-551740d0]{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-e8b350ff]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px}.badge[data-v-e8b350ff]{color:#172b4d;border:1px solid #e2e2e2;padding:6px 8px;border-radius:10px;gap:6px;align-items:center}.badge .preview[data-v-e8b350ff]{border-radius:10px;max-width:80px}.box[data-v-3f5d822f]{background-color:#fff;color:#2a3353}.box .title-section[data-v-3f5d822f]{display:flex;align-items:center;cursor:pointer}.box .title-section .title[data-v-3f5d822f]{color:#00b8cc;font-size:13px;font-weight:700;flex-grow:1}.box .title-section .icon-arrow-up[data-v-3f5d822f],.box .title-section .icon-arrow-down[data-v-3f5d822f]{float:right;color:#c1c7d0;font-size:7px;font-weight:700}.box .content[data-v-3f5d822f]{word-break:break-word;overflow-y:auto;overflow-x:hidden}.title[data-v-cf0c74e1],.title[data-v-668b93ff],.title[data-v-43f0eae2],.title[data-v-881ecba3]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px} |
+132
-133
| 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 | ||
| 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 bt, withDirectives as Tt, renderSlot as $t, vShow as St, resolveComponent as D, createBlock as $, withCtx as O, createVNode as q, createTextVNode as ft } from "vue"; | ||
| const qt = (t) => (W("data-v-d0000486"), t = t(), B(), t), kt = { class: "title mb-2" }, Dt = { class: "img-container" }, xt = { class: "img-selection" }, Mt = ["src"], Qt = /* @__PURE__ */ qt(() => /* @__PURE__ */ w("div", { class: "subpoint" }, null, -1)), Pt = [ | ||
| Qt | ||
| ]; | ||
| function Ct(t, d, e, S, u, v) { | ||
| function It(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("div", kt, Q(e.title), 1), | ||
| w("div", Dt, [ | ||
| w("div", xt, [ | ||
| w("img", { | ||
| src: e.question.questionData.imgUrl | ||
| }, null, 8, Qt), | ||
| }, null, 8, Mt), | ||
| w("div", { | ||
| class: "point", | ||
| style: rt({ top: `${e.question.answer.y}%`, left: `${e.question.answer.x}%` }) | ||
| }, It, 4) | ||
| }, Pt, 4) | ||
| ]) | ||
@@ -27,15 +27,15 @@ ]) | ||
| return e; | ||
| }, Ot = { | ||
| }, Ct = { | ||
| props: ["question", "title"] | ||
| }, 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" }, [ | ||
| }, Ot = /* @__PURE__ */ F(Ct, [["render", It], ["__scopeId", "data-v-d0000486"]]), At = (t) => (W("data-v-93f6524b"), t = t(), B(), t), Nt = { class: "title mb-2" }, Ht = { class: "answer-section mb-2" }, Lt = { class: "painlevel mb-1" }, Ft = { class: "d-flex align-item-center justify-content-center" }, Yt = { class: "box-container" }, Et = { class: "mb-2" }, Vt = /* @__PURE__ */ At(() => /* @__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 jt(t, d, e, S, u, v) { | ||
| function zt(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", Nt, Q(e.title), 1), | ||
| w("div", Ht, Q(v.answerText), 1), | ||
| w("div", Lt, [ | ||
| w("div", Ft, [ | ||
| (n(!0), s(x, null, A(u.levels, (y) => (n(), s("div", Yt, [ | ||
| w("div", { | ||
@@ -45,10 +45,10 @@ class: "box mb-2", | ||
| }, null, 4), | ||
| w("div", Vt, Q(y.value), 1) | ||
| w("div", Et, Q(y.value), 1) | ||
| ]))), 256)) | ||
| ]) | ||
| ]), | ||
| zt | ||
| Vt | ||
| ]); | ||
| } | ||
| const Ut = { | ||
| const jt = { | ||
| props: ["value", "title"], | ||
@@ -90,21 +90,21 @@ data() { | ||
| } | ||
| }, 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 = { | ||
| }, ut = /* @__PURE__ */ F(jt, [["render", zt], ["__scopeId", "data-v-93f6524b"]]), Ut = (t) => (W("data-v-1c0f5bee"), t = t(), B(), t), Wt = { class: "title mb-2" }, Bt = { class: "answer-section mb-2" }, Jt = { key: 0 }, Zt = { class: "mb-1" }, Gt = { key: 1 }, Kt = { | ||
| key: 0, | ||
| class: "no-selected" | ||
| }, Xt = /* @__PURE__ */ Wt(() => /* @__PURE__ */ w("div", { class: "mb-2" }, "No seleccionados", -1)), te = { class: "mb-2" }; | ||
| function ee(t, d, e, S, u, v) { | ||
| }, Rt = /* @__PURE__ */ Ut(() => /* @__PURE__ */ w("div", { class: "mb-2" }, "No seleccionados", -1)), Xt = { class: "mb-2" }; | ||
| function te(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("div", Wt, Q(e.title), 1), | ||
| w("div", Bt, [ | ||
| e.question.answer != null ? (n(), s("ul", Jt, [ | ||
| w("li", Zt, Q(v.answerLabel), 1) | ||
| ])) : (n(), s("span", Gt, "Ninguno")) | ||
| ]), | ||
| v.noSelectedText ? (n(), s("div", Rt, [ | ||
| Xt, | ||
| w("div", te, Q(v.noSelectedText), 1) | ||
| v.noSelectedText ? (n(), s("div", Kt, [ | ||
| Rt, | ||
| w("div", Xt, Q(v.noSelectedText), 1) | ||
| ])) : g("", !0) | ||
| ]); | ||
| } | ||
| const ne = { | ||
| const ee = { | ||
| props: ["title", "question"], | ||
@@ -129,23 +129,23 @@ computed: { | ||
| } | ||
| }, 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 = { | ||
| }, it = /* @__PURE__ */ F(ee, [["render", te], ["__scopeId", "data-v-1c0f5bee"]]), ne = (t) => (W("data-v-398aabfc"), t = t(), B(), t), ie = { class: "title mb-2" }, se = { key: 0 }, ae = { class: "mb-2" }, le = { key: 1 }, oe = { | ||
| key: 0, | ||
| class: "no-selected" | ||
| }, ue = /* @__PURE__ */ ie(() => /* @__PURE__ */ w("div", { class: "mb-2" }, "No seleccionados", -1)), ce = { class: "mb-2" }; | ||
| function de(t, d, e, S, u, v) { | ||
| }, re = /* @__PURE__ */ ne(() => /* @__PURE__ */ w("div", { class: "mb-2" }, "No seleccionados", -1)), ue = { class: "mb-2" }; | ||
| function ce(t, d, e, S, u, v) { | ||
| return n(), s("div", null, [ | ||
| w("div", se, Q(e.title), 1), | ||
| w("div", ie, Q(e.title), 1), | ||
| w("div", { | ||
| class: Tt(["answer-section mb-2", { warning: e.type === "warning" }]) | ||
| class: bt(["answer-section mb-2", { warning: e.type === "warning" }]) | ||
| }, [ | ||
| 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")) | ||
| e.question.answer != null ? (n(), s("ul", se, [ | ||
| (n(!0), s(x, null, A(v.answerLabels, (y) => (n(), s("li", ae, Q(y), 1))), 256)) | ||
| ])) : (n(), s("span", le, "Ninguno")) | ||
| ], 2), | ||
| v.noSelectedText ? (n(), s("div", re, [ | ||
| ue, | ||
| w("div", ce, Q(v.noSelectedText), 1) | ||
| v.noSelectedText ? (n(), s("div", oe, [ | ||
| re, | ||
| w("div", ue, Q(v.noSelectedText), 1) | ||
| ])) : g("", !0) | ||
| ]); | ||
| } | ||
| const he = { | ||
| const de = { | ||
| props: ["title", "question", "type"], | ||
@@ -171,5 +171,5 @@ computed: { | ||
| } | ||
| }, 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) { | ||
| }, ct = /* @__PURE__ */ F(de, [["render", ce], ["__scopeId", "data-v-398aabfc"]]); | ||
| var he = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}; | ||
| function _e(t) { | ||
| return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; | ||
@@ -181,4 +181,4 @@ } | ||
| 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) { | ||
| })(he, 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+)?$/, yt = /\[([^\]]+)]|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, mt = { 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; | ||
@@ -189,3 +189,3 @@ return "[" + h + (l[(i - 20) % 10] || l[i] || l[0]) + "]"; | ||
| return !r || r.length >= l ? h : "" + Array(l + 1 - r.length).join(i) + h; | ||
| }, bt = { s: at, z: function(h) { | ||
| }, gt = { s: at, z: function(h) { | ||
| var l = -h.utcOffset(), i = Math.abs(l), r = Math.floor(i / 60), a = i % 60; | ||
@@ -205,3 +205,3 @@ return (l <= 0 ? "+" : "-") + at(r, 2, "0") + ":" + at(a, 2, "0"); | ||
| } }, Z = "en", z = {}; | ||
| z[Z] = gt; | ||
| z[Z] = mt; | ||
| var dt = "$isDayjsObject", lt = function(h) { | ||
@@ -229,3 +229,3 @@ return h instanceof et || !(!h || !h[dt]); | ||
| return i.date = h, i.args = arguments, new et(i); | ||
| }, b = bt; | ||
| }, b = gt; | ||
| b.l = tt, b.i = lt, b.w = function(h, l) { | ||
@@ -349,3 +349,3 @@ return P(h, { locale: l.$L, utc: l.$u, x: l.$x, $offset: l.$offset }); | ||
| }; | ||
| return f.replace(mt, function(N, V) { | ||
| return f.replace(yt, function(N, V) { | ||
| return V || function(K) { | ||
@@ -472,31 +472,31 @@ switch (K) { | ||
| })(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 = { | ||
| var fe = pt.exports; | ||
| const _t = /* @__PURE__ */ _e(fe), wt = (t) => (W("data-v-551740d0"), t = t(), B(), t), pe = { class: "title mb-2" }, we = { | ||
| key: 0, | ||
| class: "answer-section mb-2" | ||
| }, ye = { key: 0 }, me = { key: 1 }, ge = { | ||
| }, ve = { key: 0 }, ye = { key: 1 }, me = { | ||
| key: 1, | ||
| class: "answer-section mb-2" | ||
| }, be = { | ||
| }, ge = { | ||
| key: 2, | ||
| class: "answer-section mb-2" | ||
| }, Te = /* @__PURE__ */ wt(() => /* @__PURE__ */ w("span", null, "- - -", -1)), $e = [ | ||
| Te | ||
| ], Se = { | ||
| }, be = /* @__PURE__ */ wt(() => /* @__PURE__ */ w("span", null, "- - -", -1)), Te = [ | ||
| be | ||
| ], $e = { | ||
| key: 3, | ||
| class: "answer-section mb-2" | ||
| }, qe = /* @__PURE__ */ wt(() => /* @__PURE__ */ w("span", null, "Ninguno", -1)), ke = [ | ||
| qe | ||
| }, Se = /* @__PURE__ */ wt(() => /* @__PURE__ */ w("span", null, "Ninguno", -1)), qe = [ | ||
| Se | ||
| ]; | ||
| function De(t, d, e, S, u, v) { | ||
| function ke(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("div", pe, Q(e.title), 1), | ||
| e.type && e.type === "date" && e.answer ? (n(), s("div", we, [ | ||
| e.answer == "dont_know" ? (n(), s("span", ve, "No lo sé")) : (n(), s("span", ye, Q(v.formatDateAnswer), 1)) | ||
| ])) : e.answer ? (n(), s("div", me, [ | ||
| 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)) | ||
| ])) : e.title.includes("pesas") || e.title.includes("mides") || e.title.includes("cintura") ? (n(), s("div", ge, Te)) : (n(), s("div", $e, qe)) | ||
| ]); | ||
| } | ||
| const xe = { | ||
| const De = { | ||
| props: ["title", "answer", "type"], | ||
@@ -516,8 +516,8 @@ computed: { | ||
| } | ||
| }, 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) { | ||
| }, st = /* @__PURE__ */ F(De, [["render", ke], ["__scopeId", "data-v-551740d0"]]), xe = { class: "title mb-2" }, Me = { class: "d-flex flex-wrap" }, Qe = { class: "badge d-flex flex-column mr-2 mb-2" }, Pe = ["src"]; | ||
| function Ie(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("div", xe, Q(e.title), 1), | ||
| w("div", Me, [ | ||
| (n(!0), s(x, null, A(e.question.answer, (y) => (n(), s("div", Qe, [ | ||
| w("span", null, Q(e.question.questionData.options.find((m) => m.value === y).label), 1), | ||
@@ -527,3 +527,3 @@ w("img", { | ||
| src: e.question.questionData.options.find((m) => m.value === y).src | ||
| }, null, 8, Ie) | ||
| }, null, 8, Pe) | ||
| ]))), 256)) | ||
@@ -533,14 +533,14 @@ ]) | ||
| } | ||
| const Oe = { | ||
| const Ce = { | ||
| props: ["title", "question"] | ||
| }, Ae = /* @__PURE__ */ F(Oe, [["render", Ce], ["__scopeId", "data-v-46a54f37"]]), Ne = { class: "box" }, He = { class: "title-section mb-3" }, Le = { | ||
| }, Oe = /* @__PURE__ */ F(Ce, [["render", Ie], ["__scopeId", "data-v-e8b350ff"]]), Ae = { class: "box" }, Ne = { class: "title-section mb-3" }, He = { | ||
| key: 0, | ||
| class: "icon-arrow-down" | ||
| }, Fe = { | ||
| }, Le = { | ||
| key: 1, | ||
| class: "icon-arrow-up" | ||
| }; | ||
| function Ye(t, d, e, S, u, v) { | ||
| return n(), s("div", Ne, [ | ||
| w("div", He, [ | ||
| function Fe(t, d, e, S, u, v) { | ||
| return n(), s("div", Ae, [ | ||
| w("div", Ne, [ | ||
| w("div", { | ||
@@ -553,16 +553,16 @@ class: "title", | ||
| }, [ | ||
| u.expanded ? (n(), s("span", Fe)) : (n(), s("span", Le)) | ||
| u.expanded ? (n(), s("span", Le)) : (n(), s("span", He)) | ||
| ]) | ||
| ]), | ||
| $t(w("div", { | ||
| Tt(w("div", { | ||
| class: "content", | ||
| style: rt({ "max-height": e.contentMaxHeight }) | ||
| }, [ | ||
| St(t.$slots, "default", {}, void 0, !0) | ||
| $t(t.$slots, "default", {}, void 0, !0) | ||
| ], 4), [ | ||
| [qt, u.expanded] | ||
| [St, u.expanded] | ||
| ]) | ||
| ]); | ||
| } | ||
| const Ee = { | ||
| const Ye = { | ||
| props: { | ||
@@ -591,4 +591,4 @@ title: {}, | ||
| } | ||
| }, 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) { | ||
| }, vt = /* @__PURE__ */ F(Ye, [["render", Fe], ["__scopeId", "data-v-3f5d822f"]]), Ee = { class: "ml-2" }, Ve = { class: "ml-2" }, ze = { class: "ml-2" }, je = { class: "ml-2" }, Ue = { class: "ml-2" }; | ||
| function We(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"); | ||
@@ -631,3 +631,3 @@ return n(), s("div", null, [ | ||
| default: O(() => [ | ||
| (n(!0), s(x, null, A(u.painLocationQuestions, (o) => (n(), s("div", Ve, [ | ||
| (n(!0), s(x, null, A(u.painLocationQuestions, (o) => (n(), s("div", Ee, [ | ||
| o.type == "singleSelection" ? (n(), $(y, { | ||
@@ -653,3 +653,3 @@ key: 0, | ||
| default: O(() => [ | ||
| (n(!0), s(x, null, A(u.painIrradiationQuestions, (o) => (n(), s("div", ze, [ | ||
| (n(!0), s(x, null, A(u.painIrradiationQuestions, (o) => (n(), s("div", Ve, [ | ||
| q(M, { | ||
@@ -668,3 +668,3 @@ title: e.showPatientTitle ? o.patientTitle : o.title, | ||
| default: O(() => [ | ||
| (n(!0), s(x, null, A(u.painTypeQuestions, (o) => (n(), s("div", je, [ | ||
| (n(!0), s(x, null, A(u.painTypeQuestions, (o) => (n(), s("div", ze, [ | ||
| o.type == "singleSelection" ? (n(), $(y, { | ||
@@ -703,3 +703,3 @@ key: 0, | ||
| default: O(() => [ | ||
| (n(!0), s(x, null, A(u.painAggravatingQuestions, (o) => (n(), s("div", Ue, [ | ||
| (n(!0), s(x, null, A(u.painAggravatingQuestions, (o) => (n(), s("div", je, [ | ||
| o.type == "multipleSelection" ? (n(), $(L, { | ||
@@ -725,3 +725,3 @@ key: 0, | ||
| default: O(() => [ | ||
| (n(!0), s(x, null, A(u.painMitigatingQuestions, (o) => (n(), s("div", We, [ | ||
| (n(!0), s(x, null, A(u.painMitigatingQuestions, (o) => (n(), s("div", Ue, [ | ||
| o.type == "multipleSelection" ? (n(), $(L, { | ||
@@ -773,3 +773,3 @@ key: 0, | ||
| } | ||
| const Je = { | ||
| const Be = { | ||
| props: ["data", "showPatientTitle"], | ||
@@ -800,7 +800,7 @@ components: { | ||
| } | ||
| }, 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 = { | ||
| }, Je = /* @__PURE__ */ F(Be, [["render", We], ["__scopeId", "data-v-cf0c74e1"]]), Ze = (t) => (W("data-v-668b93ff"), t = t(), B(), t), Ge = { class: "ml-2" }, Ke = { class: "ml-2" }, Re = { class: "ml-2" }, Xe = { class: "ml-2" }, tn = { class: "ml-2" }, en = { | ||
| key: 1, | ||
| class: "mb-3" | ||
| }, sn = /* @__PURE__ */ Ge(() => /* @__PURE__ */ w("b", null, "IMC:", -1)); | ||
| function an(t, d, e, S, u, v) { | ||
| }, nn = /* @__PURE__ */ Ze(() => /* @__PURE__ */ w("b", null, "IMC:", -1)); | ||
| function sn(t, d, e, S, u, v) { | ||
| const y = D("free-text"), m = D("collapse-section"), M = D("single-selection"); | ||
@@ -814,3 +814,3 @@ return n(), s("div", null, [ | ||
| default: O(() => [ | ||
| (n(!0), s(x, null, A(v.medicalHistoryQuestions, (c) => (n(), s("div", Ke, [ | ||
| (n(!0), s(x, null, A(v.medicalHistoryQuestions, (c) => (n(), s("div", Ge, [ | ||
| q(y, { | ||
@@ -829,3 +829,3 @@ title: e.showPatientTitle ? c.patientTitle : c.title, | ||
| default: O(() => [ | ||
| (n(!0), s(x, null, A(v.pharmacologicalHistoryQuestions, (c) => (n(), s("div", Re, [ | ||
| (n(!0), s(x, null, A(v.pharmacologicalHistoryQuestions, (c) => (n(), s("div", Ke, [ | ||
| q(y, { | ||
@@ -845,3 +845,3 @@ title: e.showPatientTitle ? c.patientTitle : c.title, | ||
| default: O(() => [ | ||
| (n(!0), s(x, null, A(v.allergicHistoryQuestions, (c) => (n(), s("div", Xe, [ | ||
| (n(!0), s(x, null, A(v.allergicHistoryQuestions, (c) => (n(), s("div", Re, [ | ||
| q(y, { | ||
@@ -860,3 +860,3 @@ title: e.showPatientTitle ? c.patientTitle : c.title, | ||
| default: O(() => [ | ||
| (n(!0), s(x, null, A(v.gynecologicalHistoryQuestions, (c) => (n(), s("div", tn, [ | ||
| (n(!0), s(x, null, A(v.gynecologicalHistoryQuestions, (c) => (n(), s("div", Xe, [ | ||
| q(y, { | ||
@@ -875,3 +875,3 @@ title: e.showPatientTitle ? c.patientTitle : c.title, | ||
| default: O(() => [ | ||
| (n(!0), s(x, null, A(v.riskFactorQuestions, (c) => (n(), s("div", en, [ | ||
| (n(!0), s(x, null, A(v.riskFactorQuestions, (c) => (n(), s("div", tn, [ | ||
| c.type == "number" ? (n(), $(y, { | ||
@@ -883,5 +883,5 @@ key: 0, | ||
| }, null, 8, ["title", "answer"])) : g("", !0), | ||
| v.imc && c.id == "7" ? (n(), s("div", nn, [ | ||
| v.imc && c.id == "7" ? (n(), s("div", en, [ | ||
| w("span", null, [ | ||
| sn, | ||
| nn, | ||
| ft(" " + Q(v.imc), 1) | ||
@@ -903,3 +903,3 @@ ]) | ||
| } | ||
| const ln = { | ||
| const an = { | ||
| props: ["data", "showPatientTitle"], | ||
@@ -935,17 +935,17 @@ components: { | ||
| } | ||
| }, on = /* @__PURE__ */ F(ln, [["render", an], ["__scopeId", "data-v-d48c9c06"]]), rn = (t) => (W("data-v-7b415bc9"), t = t(), B(), t), un = { | ||
| }, ln = /* @__PURE__ */ F(an, [["render", sn], ["__scopeId", "data-v-668b93ff"]]), on = (t) => (W("data-v-43f0eae2"), t = t(), B(), t), rn = { | ||
| 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) { | ||
| }, un = /* @__PURE__ */ on(() => /* @__PURE__ */ w("b", null, "IMC:", -1)), cn = { class: "ml-2" }; | ||
| function dn(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, [ | ||
| v.imc ? (n(), s("div", rn, [ | ||
| w("span", null, [ | ||
| cn, | ||
| un, | ||
| ft(" " + Q(v.imc), 1) | ||
| ]) | ||
| ])) : g("", !0), | ||
| (n(!0), s(x, null, A(e.data, (c) => (n(), s("div", dn, [ | ||
| (n(!0), s(x, null, A(e.data, (c) => (n(), s("div", cn, [ | ||
| c.type == "directSelector" ? (n(), $(y, { | ||
@@ -973,3 +973,3 @@ key: 0, | ||
| } | ||
| const _n = { | ||
| const hn = { | ||
| props: ["data", "showPatientTitle"], | ||
@@ -989,19 +989,19 @@ components: { | ||
| } | ||
| }, fn = /* @__PURE__ */ F(_n, [["render", hn], ["__scopeId", "data-v-7b415bc9"]]), pn = { | ||
| }, _n = /* @__PURE__ */ F(hn, [["render", dn], ["__scopeId", "data-v-43f0eae2"]]), fn = { | ||
| key: 0, | ||
| class: "mb-3" | ||
| }, wn = { | ||
| }, pn = { | ||
| key: 1, | ||
| class: "mb-3" | ||
| }, vn = { class: "title" }, yn = { | ||
| }, wn = { class: "title" }, vn = { | ||
| key: 2, | ||
| class: "mb-3" | ||
| }, mn = { | ||
| }, yn = { | ||
| key: 3, | ||
| class: "mb-3" | ||
| }, gn = { | ||
| }, mn = { | ||
| key: 4, | ||
| class: "mb-3" | ||
| }; | ||
| function bn(t, d, e, S, u, v) { | ||
| function gn(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"); | ||
@@ -1024,3 +1024,3 @@ return n(), s("div", null, [ | ||
| _.showOnlyInClient ? g("", !0) : (n(), s(x, { key: 0 }, [ | ||
| _.type === "imagePointSelector" ? (n(), s("div", pn, [ | ||
| _.type === "imagePointSelector" ? (n(), s("div", fn, [ | ||
| q(c, { | ||
@@ -1030,8 +1030,8 @@ question: _, | ||
| }, null, 8, ["question", "title"]) | ||
| ])) : _.type === "synapse" ? (n(), s("div", wn, [ | ||
| w("div", vn, Q(e.showPatientTitle && _.patientTitle ? _.patientTitle : _.title), 1), | ||
| ])) : _.type === "synapse" ? (n(), s("div", pn, [ | ||
| w("div", wn, Q(e.showPatientTitle && _.patientTitle ? _.patientTitle : _.title), 1), | ||
| q(L, { | ||
| data: _.answer | ||
| }, null, 8, ["data"]) | ||
| ])) : _.type === "imageSelector" ? (n(), s("div", yn, [ | ||
| ])) : _.type === "imageSelector" ? (n(), s("div", vn, [ | ||
| q(o, { | ||
@@ -1041,3 +1041,3 @@ question: _, | ||
| }, null, 8, ["question", "title"]) | ||
| ])) : _.type === "painScale" ? (n(), s("div", mn, [ | ||
| ])) : _.type === "painScale" ? (n(), s("div", yn, [ | ||
| q(R, { | ||
@@ -1047,3 +1047,3 @@ value: _, | ||
| }, null, 8, ["value", "title"]) | ||
| ])) : !["action", "actionSelector", "info", "productSelector", "patientSelector"].includes(_.type) && _.title !== "¿Cuál es tu consulta?" ? (n(), s("div", gn, [ | ||
| ])) : !["action", "actionSelector", "info", "productSelector", "patientSelector"].includes(_.type) && _.title !== "¿Cuál es tu consulta?" ? (n(), s("div", mn, [ | ||
| ["singleSelection", "selectionList"].includes(_.type) ? (n(), $(Y, { | ||
@@ -1072,7 +1072,7 @@ key: 0, | ||
| } | ||
| const Tn = { | ||
| const bn = { | ||
| name: "SynapseViewer", | ||
| props: ["data", "showPatientTitle", "questionnarieName"], | ||
| components: { | ||
| ImagePointSelector: At, | ||
| ImagePointSelector: Ot, | ||
| PainScale: ut, | ||
@@ -1082,11 +1082,10 @@ SingleSelection: it, | ||
| FreeText: st, | ||
| ImageSelector: Ae, | ||
| MigraineFlowViewer: Ze, | ||
| PreventiveCheckViewer: on, | ||
| NutritionCampaignViewer: fn, | ||
| SynapseViewer: yt | ||
| ImageSelector: Oe, | ||
| MigraineFlowViewer: Je, | ||
| PreventiveCheckViewer: ln, | ||
| NutritionCampaignViewer: _n | ||
| } | ||
| }, yt = /* @__PURE__ */ F(Tn, [["render", bn], ["__scopeId", "data-v-1b10d527"]]), qn = { | ||
| }, Tn = /* @__PURE__ */ F(bn, [["render", gn], ["__scopeId", "data-v-881ecba3"]]), qn = { | ||
| install: (t) => { | ||
| t.component("SynapseViewer", yt); | ||
| t.component("SynapseViewer", Tn); | ||
| } | ||
@@ -1093,0 +1092,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
| (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)}}}); | ||
| (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-d0000486"),t=t(),e.popScopeId(),t),se={class:"title mb-2"},le={class:"img-container"},ae={class:"img-selection"},ce=["src"],re=[F(()=>e.createElementVNode("div",{class:"subpoint"},null,-1))];function de(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",se,e.toDisplayString(n.title),1),e.createElementVNode("div",le,[e.createElementVNode("div",ae,[e.createElementVNode("img",{src:n.question.questionData.imgUrl},null,8,ce),e.createElementVNode("div",{class:"point",style:e.normalizeStyle({top:`${n.question.answer.y}%`,left:`${n.question.answer.x}%`})},re,4)])])])}const T=(t,d)=>{const n=t.__vccOpts||t;for(const[B,c]of d)n[B]=c;return n},pe=T({props:["question","title"]},[["render",de],["__scopeId","data-v-d0000486"]]),me=t=>(e.pushScopeId("data-v-93f6524b"),t=t(),e.popScopeId(),t),he={class:"title mb-2"},ue={class:"answer-section mb-2"},_e={class:"painlevel mb-1"},fe={class:"d-flex align-item-center justify-content-center"},ke={class:"box-container"},we={class:"mb-2"},ye=me(()=>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 Be(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",he,e.toDisplayString(n.title),1),e.createElementVNode("div",ue,e.toDisplayString(_.answerText),1),e.createElementVNode("div",_e,[e.createElementVNode("div",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.levels,f=>(e.openBlock(),e.createElementBlock("div",ke,[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",we,e.toDisplayString(f.value),1)]))),256))])]),ye])}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",Be],["__scopeId","data-v-93f6524b"]]),ge=t=>(e.pushScopeId("data-v-1c0f5bee"),t=t(),e.popScopeId(),t),be={class:"title mb-2"},Se={class:"answer-section mb-2"},Ee={key:0},Ne={class:"mb-1"},Ve={key:1},$e={key:0,class:"no-selected"},Te=ge(()=>e.createElementVNode("div",{class:"mb-2"},"No seleccionados",-1)),qe={class:"mb-2"};function Ce(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",be,e.toDisplayString(n.title),1),e.createElementVNode("div",Se,[n.question.answer!=null?(e.openBlock(),e.createElementBlock("ul",Ee,[e.createElementVNode("li",Ne,e.toDisplayString(_.answerLabel),1)])):(e.openBlock(),e.createElementBlock("span",Ve,"Ninguno"))]),_.noSelectedText?(e.openBlock(),e.createElementBlock("div",$e,[Te,e.createElementVNode("div",qe,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",Ce],["__scopeId","data-v-1c0f5bee"]]),De=t=>(e.pushScopeId("data-v-398aabfc"),t=t(),e.popScopeId(),t),xe={class:"title mb-2"},Me={key:0},Qe={class:"mb-2"},Ie={key:1},Pe={key:0,class:"no-selected"},Fe=De(()=>e.createElementVNode("div",{class:"mb-2"},"No seleccionados",-1)),Le={class:"mb-2"};function Oe(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",xe,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",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.answerLabels,f=>(e.openBlock(),e.createElementBlock("li",Qe,e.toDisplayString(f),1))),256))])):(e.openBlock(),e.createElementBlock("span",Ie,"Ninguno"))],2),_.noSelectedText?(e.openBlock(),e.createElementBlock("div",Pe,[Fe,e.createElementVNode("div",Le,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",Oe],["__scopeId","data-v-398aabfc"]]);var Ae=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function He(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()})(Ae,function(){var n=1e3,B=6e4,c=36e5,_="millisecond",f="second",k="minute",b="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:b,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 oe="$isDayjsObject",R=function(p){return p instanceof W||!(!p||!p[oe])},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},S=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 S(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[oe]=!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=S(o);return this.startOf(a)<=i&&i<=this.endOf(a)},s.isAfter=function(o,a){return S(o)<this.startOf(a)},s.isBefore=function(o,a){return this.endOf(a)<S(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 b: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[b]=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 $=S(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[b]=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=S(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 b: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}(),ie=W.prototype;return S.prototype=ie,[["$ms",_],["$s",f],["$m",k],["$H",b],["$W",r],["$M",l],["$y",C],["$D",D]].forEach(function(p){ie[p[1]]=function(s){return this.$g(s,p[0],p[1])}}),S.extend=function(p,s){return p.$i||(p(s,W,S),p.$i=!0),S},S.locale=U,S.isDayjs=R,S.unix=function(p){return S(1e3*p)},S.en=M[L],S.Ls=M,S.p={},S})})(v);var Ye=v.exports;const ee=He(Ye),te=t=>(e.pushScopeId("data-v-551740d0"),t=t(),e.popScopeId(),t),ze={class:"title mb-2"},je={key:0,class:"answer-section mb-2"},Ue={key:0},We={key:1},Je={key:1,class:"answer-section mb-2"},Ze={key:2,class:"answer-section mb-2"},Ge=[te(()=>e.createElementVNode("span",null,"- - -",-1))],Ke={key:3,class:"answer-section mb-2"},Re=[te(()=>e.createElementVNode("span",null,"Ninguno",-1))];function Xe(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",ze,e.toDisplayString(n.title),1),n.type&&n.type==="date"&&n.answer?(e.openBlock(),e.createElementBlock("div",je,[n.answer=="dont_know"?(e.openBlock(),e.createElementBlock("span",Ue,"No lo sé")):(e.openBlock(),e.createElementBlock("span",We,e.toDisplayString(_.formatDateAnswer),1))])):n.answer?(e.openBlock(),e.createElementBlock("div",Je,[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",Ze,Ge)):(e.openBlock(),e.createElementBlock("div",Ke,Re))])}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",Xe],["__scopeId","data-v-551740d0"]]),ve={class:"title mb-2"},et={class:"d-flex flex-wrap"},tt={class:"badge d-flex flex-column mr-2 mb-2"},nt=["src"];function ot(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",ve,e.toDisplayString(n.title),1),e.createElementVNode("div",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.question.answer,f=>(e.openBlock(),e.createElementBlock("div",tt,[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,nt)]))),256))])])}const it=T({props:["title","question"]},[["render",ot],["__scopeId","data-v-e8b350ff"]]),st={class:"box"},lt={class:"title-section mb-3"},at={key:0,class:"icon-arrow-down"},ct={key:1,class:"icon-arrow-up"};function rt(t,d,n,B,c,_){return e.openBlock(),e.createElementBlock("div",st,[e.createElementVNode("div",lt,[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",ct)):(e.openBlock(),e.createElementBlock("span",at))])]),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",rt],["__scopeId","data-v-3f5d822f"]]),dt={class:"ml-2"},pt={class:"ml-2"},mt={class:"ml-2"},ht={class:"ml-2"},ut={class:"ml-2"};function _t(t,d,n,B,c,_){const f=e.resolveComponent("single-selection"),k=e.resolveComponent("collapse-section"),b=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(b,{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",dt,[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(b,{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",pt,[e.createVNode(b,{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",mt,[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(b,{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",ht,[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(b,{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",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(b,{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 ft=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",_t],["__scopeId","data-v-cf0c74e1"]]),kt=t=>(e.pushScopeId("data-v-668b93ff"),t=t(),e.popScopeId(),t),wt={class:"ml-2"},yt={class:"ml-2"},Bt={class:"ml-2"},gt={class:"ml-2"},bt={class:"ml-2"},St={key:1,class:"mb-3"},Et=kt(()=>e.createElementVNode("b",null,"IMC:",-1));function Nt(t,d,n,B,c,_){const f=e.resolveComponent("free-text"),k=e.resolveComponent("collapse-section"),b=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",wt,[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",yt,[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",Bt,[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",gt,[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",St,[e.createElementVNode("span",null,[Et,e.createTextVNode(" "+e.toDisplayString(_.imc),1)])])):e.createCommentVNode("",!0),r.type=="singleSelection"?(e.openBlock(),e.createBlock(b,{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 Vt=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",Nt],["__scopeId","data-v-668b93ff"]]),$t=t=>(e.pushScopeId("data-v-43f0eae2"),t=t(),e.popScopeId(),t),Tt={key:0,class:"mb-3"},qt=$t(()=>e.createElementVNode("b",null,"IMC:",-1)),Ct={class:"ml-2"};function Dt(t,d,n,B,c,_){const f=e.resolveComponent("single-selection"),k=e.resolveComponent("multiple-selection"),b=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",Tt,[e.createElementVNode("span",null,[qt,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",Ct,[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(b,{key:2,title:r.title,answer:r.answer},null,8,["title","answer"])):e.createCommentVNode("",!0)]))),256))],64)):e.createCommentVNode("",!0)])}const xt=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",Dt],["__scopeId","data-v-43f0eae2"]]),Mt={key:0,class:"mb-3"},Qt={key:1,class:"mb-3"},It={class:"title"},Pt={key:2,class:"mb-3"},Ft={key:3,class:"mb-3"},Lt={key:4,class:"mb-3"};function Ot(t,d,n,B,c,_){const f=e.resolveComponent("migraine-flow-viewer"),k=e.resolveComponent("preventive-check-viewer"),b=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(b,{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",Mt,[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",Qt,[e.createElementVNode("div",It,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",Pt,[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",Ft,[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",Lt,[["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 At=T({name:"SynapseViewer",props:["data","showPatientTitle","questionnarieName"],components:{ImagePointSelector:pe,PainScale:Z,SingleSelection:H,MultipleSelection:G,FreeText:Y,ImageSelector:it,MigraineFlowViewer:ft,PreventiveCheckViewer:Vt,NutritionCampaignViewer:xt}},[["render",Ot],["__scopeId","data-v-881ecba3"]]);return{install:t=>{t.component("SynapseViewer",At)}}}); |
+1
-1
@@ -18,3 +18,3 @@ { | ||
| }, | ||
| "version": "0.1.3", | ||
| "version": "0.1.4", | ||
| "private": false, | ||
@@ -21,0 +21,0 @@ "type": "module", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
82027
0.05%1202
-0.08%1
Infinity%