@1doc3/synapse-viewer-2
Advanced tools
+1
-1
@@ -1,1 +0,1 @@ | ||
| .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} | ||
| .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-2f8e0ba0]{color:#172b4d;font-size:15px;font-weight:700;letter-spacing:0;line-height:20px} |
| 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 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 = [ | ||
| const qt = (t) => (W("data-v-90907f88"), 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 | ||
@@ -29,3 +29,3 @@ ]; | ||
| props: ["question", "title"] | ||
| }, 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" }, [ | ||
| }, Ot = /* @__PURE__ */ F(Ct, [["render", It], ["__scopeId", "data-v-90907f88"]]), At = (t) => (W("data-v-94c6e091"), 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"), | ||
@@ -89,3 +89,3 @@ /* @__PURE__ */ w("div", { class: "help-text" }, "Intolerable") | ||
| } | ||
| }, 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 = { | ||
| }, ut = /* @__PURE__ */ F(jt, [["render", zt], ["__scopeId", "data-v-94c6e091"]]), Ut = (t) => (W("data-v-ae99b734"), 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, | ||
@@ -128,3 +128,3 @@ class: "no-selected" | ||
| } | ||
| }, 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 = { | ||
| }, it = /* @__PURE__ */ F(ee, [["render", te], ["__scopeId", "data-v-ae99b734"]]), ne = (t) => (W("data-v-ba59488c"), t = t(), B(), t), ie = { class: "title mb-2" }, se = { key: 0 }, ae = { class: "mb-2" }, le = { key: 1 }, oe = { | ||
| key: 0, | ||
@@ -170,3 +170,3 @@ class: "no-selected" | ||
| } | ||
| }, ct = /* @__PURE__ */ F(de, [["render", ce], ["__scopeId", "data-v-398aabfc"]]); | ||
| }, ct = /* @__PURE__ */ F(de, [["render", ce], ["__scopeId", "data-v-ba59488c"]]); | ||
| var he = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}; | ||
@@ -467,3 +467,3 @@ function _e(t) { | ||
| 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 = { | ||
| const _t = /* @__PURE__ */ _e(fe), wt = (t) => (W("data-v-351a44e5"), t = t(), B(), t), pe = { class: "title mb-2" }, we = { | ||
| key: 0, | ||
@@ -510,3 +510,3 @@ class: "answer-section mb-2" | ||
| } | ||
| }, 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"]; | ||
| }, st = /* @__PURE__ */ F(De, [["render", ke], ["__scopeId", "data-v-351a44e5"]]), 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) { | ||
@@ -528,3 +528,3 @@ return n(), s("div", null, [ | ||
| props: ["title", "question"] | ||
| }, Oe = /* @__PURE__ */ F(Ce, [["render", Ie], ["__scopeId", "data-v-e8b350ff"]]), Ae = { class: "box" }, Ne = { class: "title-section mb-3" }, He = { | ||
| }, Oe = /* @__PURE__ */ F(Ce, [["render", Ie], ["__scopeId", "data-v-46a54f37"]]), Ae = { class: "box" }, Ne = { class: "title-section mb-3" }, He = { | ||
| key: 0, | ||
@@ -583,3 +583,3 @@ class: "icon-arrow-down" | ||
| } | ||
| }, 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" }; | ||
| }, vt = /* @__PURE__ */ F(Ye, [["render", Fe], ["__scopeId", "data-v-1d8ad39f"]]), 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) { | ||
@@ -786,3 +786,3 @@ const y = D("single-selection"), m = D("collapse-section"), M = D("free-text"), c = D("pain-scale"), L = D("multiple-selection"); | ||
| } | ||
| }, 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 = { | ||
| }, Je = /* @__PURE__ */ F(Be, [["render", We], ["__scopeId", "data-v-38c08e79"]]), Ze = (t) => (W("data-v-d48c9c06"), 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, | ||
@@ -914,3 +914,3 @@ class: "mb-3" | ||
| } | ||
| }, ln = /* @__PURE__ */ F(an, [["render", sn], ["__scopeId", "data-v-668b93ff"]]), on = (t) => (W("data-v-43f0eae2"), t = t(), B(), t), rn = { | ||
| }, ln = /* @__PURE__ */ F(an, [["render", sn], ["__scopeId", "data-v-d48c9c06"]]), on = (t) => (W("data-v-7b415bc9"), t = t(), B(), t), rn = { | ||
| key: 0, | ||
@@ -967,3 +967,3 @@ class: "mb-3" | ||
| } | ||
| }, _n = /* @__PURE__ */ F(hn, [["render", dn], ["__scopeId", "data-v-43f0eae2"]]), fn = { | ||
| }, _n = /* @__PURE__ */ F(hn, [["render", dn], ["__scopeId", "data-v-7b415bc9"]]), fn = { | ||
| key: 0, | ||
@@ -1060,3 +1060,3 @@ class: "mb-3" | ||
| } | ||
| }, Tn = /* @__PURE__ */ F(bn, [["render", gn], ["__scopeId", "data-v-881ecba3"]]), qn = { | ||
| }, Tn = /* @__PURE__ */ F(bn, [["render", gn], ["__scopeId", "data-v-2f8e0ba0"]]), qn = { | ||
| install: (t) => { | ||
@@ -1063,0 +1063,0 @@ t.component("SynapseViewer", Tn); |
@@ -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-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)}}}); | ||
| (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),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-90907f88"]]),me=t=>(e.pushScopeId("data-v-94c6e091"),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-94c6e091"]]),ge=t=>(e.pushScopeId("data-v-ae99b734"),t=t(),e.popScopeId(),t),Se={class:"title mb-2"},be={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",Se,e.toDisplayString(n.title),1),e.createElementVNode("div",be,[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-ae99b734"]]),De=t=>(e.pushScopeId("data-v-ba59488c"),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-ba59488c"]]);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",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 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},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[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=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}(),ie=W.prototype;return b.prototype=ie,[["$ms",_],["$s",f],["$m",k],["$H",S],["$W",r],["$M",l],["$y",C],["$D",D]].forEach(function(p){ie[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 Ye=v.exports;const ee=He(Ye),te=t=>(e.pushScopeId("data-v-351a44e5"),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-351a44e5"]]),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-46a54f37"]]),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-1d8ad39f"]]),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"),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",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(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",pt,[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",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(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",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(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",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}),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-38c08e79"]]),kt=t=>(e.pushScopeId("data-v-d48c9c06"),t=t(),e.popScopeId(),t),wt={class:"ml-2"},yt={class:"ml-2"},Bt={class:"ml-2"},gt={class:"ml-2"},St={class:"ml-2"},bt={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"),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",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",St,[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",bt,[e.createElementVNode("span",null,[Et,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 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-d48c9c06"]]),$t=t=>(e.pushScopeId("data-v-7b415bc9"),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"),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",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(S,{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-7b415bc9"]]),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"),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",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-2f8e0ba0"]]);return{install:t=>{t.component("SynapseViewer",At)}}}); |
+1
-1
@@ -18,3 +18,3 @@ { | ||
| }, | ||
| "version": "0.1.4", | ||
| "version": "0.1.5", | ||
| "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.
0
-100%81948
-0.1%