";return"email"===e.type&&i&&i.hasOwnProperty("name")?s+=`${a}
- ${i.name}`:s+=`
${a}
`,i&&i.hasOwnProperty("comments")&&(s+=`
${this.texts.comments}
${i.comments}
`),s+="
",s},navigateToResponse(e){this.$router.push({name:"response",params:{surveyId:this.surveyId,id:e}})},showPreviousResponse(){if(0===this.currentResponseIndex)return;const e=this.responses.items[this.currentResponseIndex-1];this.navigateToResponse(e.id)},showNextResponse(){if(this.currentResponseIndex===this.responses.items.length-1)return;const e=this.responses.items[this.currentResponseIndex+1];this.navigateToResponse(e.id)},async fetchResponses(e={}){const t=Object.assign({page:1,per_page:-1},e);this.responses=await Object(c["d"])(this.surveyId,t)},async fetchSurvey(){this.survey=await Object(Le["e"])(this.surveyId)}},created(){},beforeMount(){this.fetchSurvey(),this.fetchResponses()}},He=Ue,Ee=Object(w["a"])(He,Ie,Fe,!1,null,null,null),Ve=Ee.exports;const Ze=new i["a"]({routes:[{path:"/",component:Q,name:"results-overview"},{path:"/survey/:id",component:Ae,name:"survey-results"},{path:"/survey/:id/responses",component:qe,name:"survey-responses"},{path:"/survey/:surveyId/responses/:id",component:Ve,name:"response"}]})},"33e7":function(e,t,a){"use strict";var i=function(){var e=this,t=e._self._c;return t("LineChartGenerator",{attrs:{"chart-options":e.chartOptions,"chart-data":e.chartData,"chart-id":e.chartId,"dataset-id-key":e.datasetIdKey,plugins:e.plugins,"css-classes":e.cssClasses,styles:e.styles,width:e.width,height:e.height}})},s=[],n=(a("e9f5"),a("7d54"),a("ab43"),a("7b97")),r=a("7c9b"),o=a("dd61");o["f"].register(o["q"],o["r"],o["h"],o["j"],o["k"],o["e"],o["m"]);var l={name:"LineChart",components:{LineChartGenerator:n["b"]},props:{chartData:{type:Object,required:!0},options:{type:Object,default:()=>{}},chartId:{type:String,default:"line-chart"},datasetIdKey:{type:String,default:"label"},width:{type:Number,default:400},height:{type:Number,default:400},cssClasses:{default:"",type:String},styles:{type:Object,default:()=>{}},plugins:{type:Array,default:()=>[]},inlineTooltip:{type:Boolean,default:!1}},computed:{chartOptions(){return Object(r["a"])(this.baseOptions,this.options)}},data(){return{baseOptions:{plugins:{legend:{display:!1},tooltip:{enabled:!1,external:function(e){const t=this.chartId+"-chartjs-tooltip",a=this.inlineTooltip;let i=document.getElementById(t);i||(i=document.createElement("div"),i.id=t,i.style.padding=0,i.style.backgroundColor="white",i.style.border="1px solid #ddd",i.style.borderRadius="5px",i.style.boxShadow="0px 5px 15px rgba(0, 0, 0, 0.05), 0px 15px 35px rgba(0, 0, 0, 0.1)",i.classList.add("userfeedback-chart-tooltip"),i.innerHTML='";const o=a?"margin: 0 8px 0 0;":"margin: 0 0 8px 0;";e.forEach((function(e){r+='
'+e+"
"})),r+="",t.forEach((function(e,t){const a=`