(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23d564e9"],{"1f75":function(t,e,s){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",[t.model?e("vx-card",{key:t.key},[e("div",{staticClass:"w-full",attrs:{slot:"header"},slot:"header"},[t._t("header")],2),e("p",{staticClass:"mb-3"},t._l(t.model.answers,(function(s,n){return e("vx-card",{key:s,staticClass:"mb-4",attrs:{title:t.firstFinishedAt(s),"collapse-action":"",rewindContentAction:"",headerBackground:s[0].finished_at?"":"#F5EAD9",rewindTooltip:"Segunda chance"},on:{rewind:function(e){t.resetAnswer(t.model.answers[n][0].answer_id,t.model)}}},[t.rewindedAt(t.model.answers[0])?e("p",{staticClass:"pb-3 text-primary font-bold"},[t._v(" "+t._s(t.rewindedAt(t.model.answers[0]))+" ")]):t._e(),e("p",{staticClass:"mb-3"},[t._v(" "+t._s(t.getScoreTotalAnswer(t.model.answers[0]))+" | "+t._s(t.$t("pontuacao-nivelada"))+": "+t._s(t.model.answers[n][0]?t.model.answers[n][0].leveled_score:"")+" "),e("vs-table",{attrs:{noDataText:"",data:t.model.answers[n]},scopedSlots:t._u([{key:"default",fn:function(s){var n=s.data;return t._l(n,(function(s,i){return e("vs-tr",{key:i,class:t.getRowClass(n[i],"user"),attrs:{state:t.correctionStatus(n[i])}},[e("vs-td",[t._v(" "+t._s(i+1)+" ")]),e("vs-td",{attrs:{data:n[i].user_name}},[t._v(" "+t._s(t.shortTitle(n[i].title))+" ")]),e("vs-td",{staticClass:"answer",attrs:{data:n[i].answer}},[e("question-answer",{attrs:{data:t.getCompleteQuestion(n[i])}})],1),e("vs-td",{staticClass:"w-score",attrs:{data:n[i].score}},[e("vs-input",{attrs:{lang:"pt-BR",type:"number",disabled:t.invalidatedQuestion(n[i].question_id)},on:{input:function(e){t.scoreChanged(n[i],t.getMaxScore(s))}},model:{value:n[i].score,callback:function(e){t.$set(n[i],"score",e)},expression:"data[i].score"}})],1),e("vs-td",{attrs:{data:n[i].id}},[e("div",{staticClass:"grid justify-end grid-rows-2 __grid-columns-2"},[e("div",{staticClass:"m-1 justify-self-end self-center"},[e("vs-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:{content:"Marcar questão como correta",delay:{show:1e3,hide:100}},expression:"{\n                          content: 'Marcar questão como correta',\n                          delay: { show: 1000, hide: 100 }\n                        }",modifiers:{top:!0}}],attrs:{type:"filled",icon:"check",disabled:t.disableCorrectedButton(n[i])},on:{click:function(e){return t.correctQuestion(!0,n[i])}}})],1),e("div",{staticClass:"justify-self-start self-center m-1"},[e("vs-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:{content:"Marcar questão como incorreta",delay:{show:1e3,hide:100}},expression:"{\n                          content: 'Marcar questão como incorreta',\n                          delay: { show: 1000, hide: 100 }\n                        }",modifiers:{top:!0}}],attrs:{type:"filled",color:"danger",icon:"clear",disabled:t.disableWrongButton(n[i])},on:{click:function(e){return t.correctQuestion(!1,n[i])}}})],1),e("div",{staticClass:"justify-self-end self-center p-1"},[e("vs-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:{content:"Visualizar questão completa",delay:{show:1e3,hide:100}},expression:"{\n                          content: 'Visualizar questão completa',\n                          delay: { show: 1000, hide: 100 }\n                        }",modifiers:{top:!0}}],attrs:{type:"filled",color:"warning",icon:"visibility"},on:{click:function(e){return t.showCompleteQuestionModal(n[i])}}})],1),t.showCommentButton?e("div",{staticClass:"justify-self-start p-1 self-center"},[0!==t.unreadComments(n[i].comments,n[i].question_id)?e("feather-icon",{staticClass:"float-right h-auto z-50 mr-3 mt-2",attrs:{badge:t.unreadComments(n[i].comments,n[i].question_id),svgClasses:"text-success"},on:{click:function(e){return t.showCommentSectionModal(t.field)}}}):t._e(),e("vs-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:{content:"Abrir comentários",delay:{show:1e3,hide:100}},expression:"{\n                          content: 'Abrir comentários',\n                          delay: { show: 1000, hide: 100 }\n                        }",modifiers:{top:!0}}],attrs:{type:"filled",color:"success",icon:"speaker_notes"},on:{click:function(e){return t.showCommentSectionModal(n[i])}}})],1):t._e()])])],1)}))}}],null,!0)},[e("template",{slot:"thead"},[e("vs-th",[t._v(t._s(t.$t("numero")))]),e("vs-th",[t._v(t._s(t.$t("questao")))]),e("vs-th",[t._v(t._s(t.$t("data_viewer.keys.answer")))]),e("vs-th",[t._v(t._s(t.$t("points")))]),e("vs-th",[t._v(t._s(t.$t("Actions")))])],1)],2)],1)])})),1)]):t._e()],1)},i=[],o=s("44d1"),a=s("9f7c"),r={mixins:[o["a"],a["a"]],props:{showCommentButton:{type:Boolean,default:!0}}},c=r,l=(s("eee1"),s("2877")),u=Object(l["a"])(c,n,i,!1,null,null,null);e["a"]=u.exports},"325c":function(t,e,s){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"w-full",staticStyle:{"border-bottom":"1px solid #dadce0"}},[e("div",{staticClass:"flex mb-2 mt-4 w-full"},[e("div",{staticClass:"bg-grid-color-secondary mr-2 w-full"},[t.showQuestionNumber?e("div",{staticClass:"m-1 flex gap-2"},[e("b",[t._v(t._s(t.$t("questao-this-index",[this.index])))]),t.showQuestionScore?e("label",[t._v(t._s(t.item.data.score?"(".concat(t.$t("valor"),": ")+t.formattedScore+")":""))]):t._e()]):t._e(),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.title,expression:"title"}],staticClass:"editor-content ck-content content-break-word ml-3"})])])]),t.showAnswerSection?e("div",{staticClass:"answer"},[e("div",{staticClass:"w-full mt-8"},[e("div",{staticClass:"flex mb-2 w-full"},[e("div",{staticClass:"bg-grid-color-secondary mr-2"},[e("h4",{class:t.statusClass},[t._v(t._s(t.$t("resposta_uppercase"))+":")])])])]),e("div",{staticClass:"flex sm:w-full"},[e("div",{staticClass:"bg-grid-color-secondary mr-2 mb-2 pt-2 w-full"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.value,expression:"value"}],class:t.statusClass})])]),t.isEmpty(t.item.feedback||t.feedback)?t._e():e("h5",{staticClass:"mt-8 border-bottom"}),t.isEmpty(t.item.feedback||t.feedback)?t._e():e("h5",{staticClass:"mt-8 border-bottom"},[t._v(t._s(t.$t("feedback-do-professor")))]),t.isEmpty(t.item.feedback||t.feedback)?t._e():e("div",{staticClass:"flex sm:w-full"},[e("div",{staticClass:"bg-grid-color-secondary mr-2 mb-2 pt-2 w-full"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.item.feedback||t.feedback,expression:"item.feedback || feedback"}]})])]),t.invalidated?e("h5",{staticClass:"mt-8 border-bottom"}):t._e(),t.invalidated?e("h5",{staticClass:"mt-8 text-danger"},[t._v(t._s(t.$t("justificativa-da-anulacao")))]):t._e(),t.invalidated?e("div",{staticClass:"flex sm:w-full"},[e("div",{staticClass:"bg-grid-color-secondary mr-2 mb-2 pt-2 w-full"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.invalidated,expression:"invalidated"}]})])]):t._e()]):t._e()])},i=[],o=(s("a9e3"),s("b680"),s("ac1f"),s("5319"),{props:{item:{type:Object,default:function(){return{feedback:""}}},showAnswerSection:{type:Boolean,default:!0},showQuestionNumber:{type:Boolean,default:!1},showQuestionScore:{type:Boolean,default:!1},index:{type:Number,default:null}},data:function(){return{value:"",feedback:null}},computed:{title:function(){var t=this.item.data.title?this.item.data.title:this.$t("sem-titulo");return t},statusClass:function(){return!0===this.item.correction||!1===this.item.correction?this.item.correction?"success editor-content ck-content":"error editor-content ck-content":""},invalidated:function(){var t=this._.get(this.item,"data.invalidated.justification",!1);return!1!==t&&t},formattedScore:function(){var t=this.item.data.score;return t?parseFloat(t).toFixed(2).replace(".",","):""}},methods:{},beforeMount:function(){console.log("this.item.answer...",this.item.answer),this.value=this.item.answer?this.item.answer:"",this.isEmpty(this.value)||(this.value=this.value.replace(/(?:\r\n|\r|\n)/g,"<br />")),this.feedback=this.item.feedback},beforeDestroy:function(){this.destroyChilds(this)}}),a=o,r=(s("6c16"),s("2877")),c=Object(r["a"])(a,n,i,!1,null,null,null);e["a"]=c.exports},"44d1":function(t,e,s){"use strict";var n=s("5530"),i=(s("7db0"),s("c35a"),s("d3b7"),s("498a"),s("9739")),o=function(){var t=this,e=t._self._c;return e("div",[null!==t.component?e("div",[e(t.component,{tag:"component",attrs:{item:t.data,"brief-mode":!0}})],1):e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.buildAnswerHtml(t.data,t.i),expression:"buildAnswerHtml(data, i)"}]})])},a=[],r=s("53ca"),c=(s("99af"),s("ac1f"),s("00b4"),s("159b"),s("c70d")),l=s("3574"),u=s("1410"),d=s("f4fb"),h={components:{SimpleTextShow:c["a"],MultipleChoiceShow:l["a"],CheckBoxShow:u["a"],GapShow:d["a"]},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{component:function(){var t=_.get(this.data,"type");switch(t){case"gap":return"GapShow";default:return null}}},methods:{buildAnswerHtml:function(t){var e=_.get(t,"answer",this.$t("nao-respondido"))||this.$t("nao-respondido");_.get(t,"question_id",null);if("string"===typeof e)return"<span>".concat(this.truncate(this.html2text(e),50),"</span>");if("object"===Object(r["a"])(e)&&("image"in e||"label"in e)){var s=!1;return"label"in e&&(s=/<\/?[a-z][\s\S]*>/i.test(e.label)),this.renderImgAnswerElement(e,0,s)}return"object"===Object(r["a"])(e)&&Array.isArray(e)?this.renderCheckBoxAnswerWithImgs(e):"<span>".concat(this.truncate(this.html2text(e),50),"</span>")},renderCheckBoxAnswerWithImgs:function(t){var e=this,s='<div class="flex content-center">';return t.forEach((function(t,n){s+=e.renderImgAnswerElement(t,n)})),s+="</div>",s},renderImgAnswerElement:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=s?'<div class="mb-auto pt-1 overflow-y-scroll" style="width: 100px;">'.concat(t.label,"</div>"):'<span class="text-center">'.concat(this.truncate(t.label,12),"</span>");return'<div\n         class="flex content-between flex-col '.concat(e>0?"ml-2 pl-2 border-l border-r-0 border-t-0 border-b-0 border-faint-grey border-solid ":"",'"\n         style="max-height: 200px;max-width:100px;"\n        >\n          ').concat("image"in t?'<img class="mb-auto" style="width: 100px;" src="'.concat(t.image.src,'"/>'):"","\n          ").concat(n,"\n        </div>")}}},m=h,f=s("2877"),p=Object(f["a"])(m,o,a,!1,null,null,null),v=p.exports,g=s("2c1d"),w=s("4a4f");e["a"]={components:{QuestionAnswer:v},props:{model:{type:Object,default:null},fields:{type:Array,default:function(){return[]}}},mounted:function(){this.questionnaireAnswerService=i["a"].build(this.$vs)},data:function(){return{questionnaireAnswerService:null,key:0,comments:{readCache:[]}}},methods:{getCompleteQuestion:function(t){var e=this.fields.find((function(e){return e.id===t.question_id}));if(e)return Object(n["a"])(Object(n["a"])(Object(n["a"])({},e),t),{},{score:this.formatFloat(e.data.score),answer_score:t.score})},firstFinishedAt:function(t){var e="";return t.length>0&&(e=t[0].finished_at?w["a"].t("data-entrega-this-moment-answer-0-finish",[this.$moment(t[0].finished_at).format("DD/MM/YYYY kk:mm")]):w["a"].t("data-entrega-this-moment-answer-not-finish")),e},rewindedAt:function(t){var e=null;return t.length>0&&t[0].rewinded_at&&(e=w["a"].t("segunda-chance-em-0",[this.$moment(t[0].rewinded_at).format("DD/MM/YYYY kk:mm")])),e},resetAnswer:function(t,e){var s=this;this.$vs.dialog({type:"confirm",color:"success",title:w["a"].t("segunda-chance"),acceptText:w["a"].t("sim"),cancelText:w["a"].t("nao"),text:w["a"].t("tem-certeza-que-quer-abrir-a-tentativa",[e.user_name]),accept:function(){s.$vs.loading(),s.questionnaireAnswerService.reset(t).then((function(t){s.$vs.loading.close(),s.notifySuccess(s.$vs,w["a"].t("operacao-realizada-com-sucesso")),s.$emit("secondChance")}),(function(t){s.notifyError(s.$vs,"ERRO"),s.$vs.loading.close()}))}})},getScoreTotalAnswer:function(t){var e=this.getScoreTotal(t),s=this.getScore(t);return s||0===s||(s=" - "),0===e&&(e=" - "),w["a"].t("pontuacao-score-maxtotalscore",[s,e])},correctionStatus:function(t){return t.correction?"success":!1===t.correction?"danger":null},getRowClass:function(t,e){var s="",n=this._.get(t,"question_id");if(n){var i=Object(g["a"])(n,this.fields,{}),o=this._.get(i,"data.invalidated.justification",!1);if(!1!==o)return"".concat(s," invalidated-item pointer-events-auto without-bg")}return s},shortTitle:function(t){return this.truncate(this._.trim(this.html2text(t)),50)},scoreChanged:function(t,e){var s=this;this.timeout&&clearTimeout(this.timeout);var n=Number.parseFloat(t.score),i=Number.parseFloat(e);n<0?t.score=0:n>i&&(t.score=i,this.notifyWarning(this.$vs,w["a"].t("o-valor-da-pontuacao-nao-pode-ultrapassar",[i]),3e3)),this.timeout=setTimeout((function(){s.questionnaireAnswerService.score(t.answer_id,t.question_id,t.score).then((function(e){s.$vs.loading.close(),s.notifySuccess(s.$vs,w["a"].t("operacao-realizada-com-sucesso")),s.$root.$emit("corrected",t,{correction:e.correction,score:e.score}),s.key++}),(function(t){s.notifyError(s.$vs,"Erro ao tentar alterar a nota dessa resposta."),s.$vs.loading.close()})).finally((function(){s.$vs.loading.close()}))}),1e3)},getMaxScore:function(t){var e=t.question_id,s=this.fields.find((function(t){return t.id===e}));return s&&s.data&&s.data.score},showCompleteQuestionModal:function(t){this.$emit("showCompleteQuestionModal",this.getCompleteQuestion(t))},showCommentSectionModal:function(t){this.$emit("showCommentModal",t,this)},unreadComments:function(t,e){return-1===this.comments.readCache.indexOf(e)?t:0},getScoreTotal:function(t){var e=0;if(null!==t&&t.length>0)for(var s=0;s<t.length;s++)e+=this.isEmpty(t[s].maxScore)?0:Number.parseFloat(t[s].maxScore);return e},getScore:function(t){var e=0;if(null!==t&&t.length>0)for(var s=0;s<t.length;s++)e+=this.isEmpty(t[s].score)?0:Number.parseFloat(t[s].score);return e}}}},"58c5":function(t,e,s){},"6c16":function(t,e,s){"use strict";s("58c5")},"7e12":function(t,e,s){"use strict";var n=s("da84"),i=s("d039"),o=s("e330"),a=s("577e"),r=s("58a8").trim,c=s("5899"),l=o("".charAt),u=n.parseFloat,d=n.Symbol,h=d&&d.iterator,m=1/u(c+"-0")!==-1/0||h&&!i((function(){u(Object(h))}));t.exports=m?function(t){var e=r(a(t)),s=u(e);return 0===s&&"-"===l(e,0)?-0:s}:u},"8d9d":function(t,e,s){"use strict";s.r(e);s("b0c0");var n=function(){var t=this,e=t._self._c;return t.model?e("vx-card",{staticClass:"py-4",attrs:{title:"".concat(t.model.name)}},[e("questionnaire-answers",{attrs:{id:t.id,content:t.model}})],1):t._e()},i=[],o=(s("a9e3"),s("b64b"),s("f0d2")),a=s("b802"),r={components:{QuestionnaireAnswers:a["a"]},props:{id:{default:null,type:Number}},data:function(){return{service:{},model:null}},computed:{contentData:function(){return JSON.parse(this.model.data)}},created:function(){this.service=o["a"].build()},mounted:function(){var t=this;this.$vs.loading(),this.service.get(this.id).then((function(e){t.$vs.loading.close(),t.model=e}),(function(e){console.error(e),t.$vs.loading.close()}))}},c=r,l=s("2877"),u=Object(l["a"])(c,n,i,!1,null,null,null);e["default"]=u.exports},"9f50":function(t,e,s){"use strict";s("e823")},"9f7c":function(t,e,s){"use strict";s("7db0"),s("d3b7");var n=s("5263");e["a"]={methods:{correctQuestion:function(t,e){var s=this;this.$vs.loading(),this.questionnaireAnswerService.correct(e.answer_id,e.question_id,t).then((function(i){var o=i.correction?'Resposta marcada como <b class="dimmer text-primary">correta<b>':'Resposta marcada como <b class="dimmer text-danger">incorreta</b>';s.notifySuccess(s.$vs,o,Object(n["d"])(o)),s.$root.$emit("corrected",e,{correction:i.correction||t,score:i.score}),s.key++,s.$vs.loading.close()}),(function(t){s.$vs.loading.close(),s.notifyError(s.$vs,"Erro ao tentar marcar a correção dessa resposta.")}))},disableWrongButton:function(t){var e=this._.get(t,"question_id"),s=this.invalidatedQuestion(e);return!!s||null!==t&&void 0!==t.correction&&!t.correction},invalidatedQuestion:function(t){var e=this._.get(this,"fields");if(this._.isArray(e)&&e.length>0&&t){var s=e.find((function(e){return e.id===t})),n=this._.get(s,"data.invalidated.justification",!1);return!1!==n}return!1},disableCorrectedButton:function(t){var e=this._.get(t,"question_id"),s=this.invalidatedQuestion(e);return!!s||null!==t&&void 0!==t.correction&&!!t.correction}}}},af73:function(t,e,s){},b802:function(t,e,s){"use strict";s("99af"),s("b0c0");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mt-4"},[e("vx-tour",{attrs:{name:"questionnaireAnswersIntroSteps",auto:!0}}),e("div",[e("div",{staticClass:"grid grid-cols-1 sm:grid-cols-6 w-full"},[e("div",{staticClass:"w-full flex justify-center"},[e("div",{staticClass:"flex bg-gray-200",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.getAnswers(!0)}}},[e("div",{staticClass:"flex-4 text-center py-2 ml-2 tour-answers-refresh"},[e("feather-icon",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:{content:"Atualizar",delay:{show:1e3,hide:100}},expression:"{\n                content: 'Atualizar',\n                delay: { show: 1000, hide: 100 }\n              }",modifiers:{top:!0}}],staticClass:"ml-1",attrs:{icon:"RefreshCwIcon",svgClasses:"h-4 w-4"}})],1),e("div",{staticClass:"flex-4 text-center py-1 px-4"},[e("b",[t._v(t._s(t.$t("atualizar")))])])])]),t.hasAnswers?e("div",{staticClass:"w-full flex justify-center text-sm"},[e("vs-checkbox",{staticClass:"mb-3 tour-answers-1",model:{value:t.filterCorrected,callback:function(e){t.filterCorrected=e},expression:"filterCorrected"}},[t._v(" "+t._s(t.$t("questao-sem-correcao"))+" ")])],1):t._e(),t.hasAnswers?e("div",{staticClass:"flex flex-wrap w-full md:col-span-2 justify-center"},[e("div",{staticClass:"flex bg-gray-200"},[e("div",{staticClass:"flex-4 text-center py-1 px-2"},[e("b",[t._v(t._s(t.$t("agrupado-por")))])]),e("div",{staticClass:"flex-4 text-center py-1 px-2"},[t._v(t._s(t.$t("usuario")))]),e("div",{staticClass:"flex-4 text-center py-1 ml-2 tour-answers-2"},[e("vs-switch",{model:{value:t.questionGrouped,callback:function(e){t.questionGrouped=e},expression:"questionGrouped"}})],1),e("div",{staticClass:"flex-4 text-center py-1 px-4"},[t._v(t._s(t.$t("questao")))])])]):t._e(),e("div",{staticClass:"flex justify-end sm:justify-left py-1 px-4 w-full md:col-span-2 mt-4 md:mt-0"},[!t.isEmpty(t.usersList)&&t.usersList.length>0?e("label",{staticClass:"text-center font-bold"},[t._v(" "+t._s(t.$tc("x_answered_questionnaire",t.usersList.length,{count:t.usersList.length}))+" ")]):t._e()])]),t.unfinishedCount>0&&!t.questionnaireClosed?e("div",{staticClass:"flex justify-items-center w-full"},[e("vs-alert",{staticClass:"mt-5 text-warning mb-4 h-auto",attrs:{title:t.$t("alerta"),color:"rgb(231, 154, 23)",active:"true"}},[e("b",[t._v(" "+t._s(t.unfinishedCount)+" participante"+t._s(t.unfinishedCount>1?"s":"")+" ainda "+t._s(t.unfinishedCount>1?"não finalizaram":"não finalizou")+" a sua avaliação. Caso já tenha encerrado o período de aplicação, orientamos: ")]),e("span",{staticClass:"flex items-center mt-2"},[e("div",{staticClass:"ml-1 h-3 w-3 rounded-full mr-4 border-2 border-solid border-warning"}),e("span",{staticClass:"text-sm text-warning"},[t._v(" Situações que pode ocorrer para esse comportamento: participante não envio/finalizou a sua avaliação; fechou o aplicativo (navegador/browser); para avaliações com tempo, pode ser que o participante saiu da prova e o tempo foi encerrado. ")])]),e("span",{staticClass:"flex items-center mt-4"},[e("div",{staticClass:"ml-1 h-3 w-3 rounded-full mr-4 border-2 border-solid border-warning"}),e("span",{staticClass:"text-sm text-warning"},[t._v(" Se você clicar em liberar notas no final da página, todos os questionários pendentes serão finalizados.")])]),e("span",{staticClass:"flex items-center mt-4"},[e("div",{staticClass:"ml-1 h-3 w-3 rounded-full mr-4 border-2 border-solid border-warning"}),e("span",{staticClass:"text-sm text-warning"},[t._v(" Para o caso de questionários finalizados, basta liberar novamente que serão automaticamente encerradas as avaliações dos participantes.")])])])],1):t._e(),t.questionGrouped?e("vs-row",[e("vs-col",[e("correction-question-page",{attrs:{model:t.currentQuestion,fields:t.contentQuestions,grid:t.grid},on:{showCommentModal:t.showCommentModal,showCompleteQuestionModal:t.showCompleteQuestionModal},scopedSlots:t._u([{key:"header",fn:function(){return[e("div",{staticClass:"grid grid-cols-4"},[e("div",{staticClass:"col-span-4 lg:col-span-2"},[t.currentQuestion?e("vs-select",{attrs:{"no-data-text":" ",autocomplete:"",label:t.$t("questao")},model:{value:t.pagination.currentQuestion,callback:function(e){t.$set(t.pagination,"currentQuestion",e)},expression:"pagination.currentQuestion"}},t._l(t.questionsFiltered,(function(s,n){return e("vs-select-item",{key:n,attrs:{value:n+1,text:"Questão ".concat(n+1," - ").concat(t.shortTitle(s.data.title))}})})),1):t._e()],1),e("div",{staticClass:"col-span-4 md:mt-1 lg:col-span-2"},[e("div",{staticClass:"lg:pt-6 lg:w-1/2 lg:float-right"},[e("vs-pagination",{staticClass:"tour-answers-3",attrs:{max:"8",total:t.questionsFiltered.length},model:{value:t.pagination.currentQuestion,callback:function(e){t.$set(t.pagination,"currentQuestion",e)},expression:"pagination.currentQuestion"}})],1)])])]},proxy:!0}],null,!1,2642693936)})],1)],1):t._e(),t.questionGrouped?t._e():e("vs-row",[e("vs-col",[e("correction-user-page",{staticClass:"mb-4",attrs:{model:t.currentUser,fields:t.contentQuestions},on:{secondChance:t.givenSecondChance,showCompleteQuestionModal:t.showCompleteQuestionModal,showCommentModal:t.showCommentModal},scopedSlots:t._u([{key:"header",fn:function(){return[e("div",{staticClass:"grid grid-cols-6"},[e("div",{staticClass:"col-span-6 mb-2 md:col-span-3 md:mb-0"},[t.currentUser?e("vs-select",{staticClass:"select-auto-width",attrs:{"no-data":" ",autocomplete:"",label:t.$t("usuario")},model:{value:t.pagination.currentUser,callback:function(e){t.$set(t.pagination,"currentUser",e)},expression:"pagination.currentUser"}},t._l(t.usersList,(function(t,s){return e("vs-select-item",{key:s,attrs:{value:s+1,text:"".concat(t.name," - ").concat(t.email)}})})),1):t._e()],1),e("div",{staticClass:"col-span-6 md:col-span-3"},[e("div",{staticClass:"md:pt-5 md:w-1/2 md:float-right"},[e("vs-pagination",{attrs:{max:"5",total:t.usersList.length},model:{value:t.pagination.currentUser,callback:function(e){t.$set(t.pagination,"currentUser",e)},expression:"pagination.currentUser"}})],1)])])]},proxy:!0}],null,!1,1092944307)})],1)],1),t.noAnswers?e("vs-row",{staticClass:"flex text-center mt-4"},[e("vs-col",{staticClass:"w-full"},[t._v(t._s(t.$t("nao-ha-respostas-disponiveis-clique")))])],1):e("vs-row",{staticClass:"flex text-center mt-4 mb-24"},[e("vs-col",{staticClass:"flex w-1/2 float-left font-bold"},[t._v(t._s(t.isEmpty(t.content)||t.isEmpty(t.content.score_released_at)?"":"Notas liberadas em ".concat(t.content.score_released_at_formatted)))]),e("vs-col",{staticClass:"w-1/2 flex justify-end items-center gap-2"},[e("div",[e("vs-button",{directives:[{name:"tooltip",rawName:"v-tooltip.bottom-start",value:{content:"Processa todas as respostas enviadas e aplica a correção automática.",delay:{show:1e3,hide:100}},expression:"{\n              content: 'Processa todas as respostas enviadas e aplica a correção automática.',\n              delay: { show: 1000, hide: 100 }\n            }",modifiers:{"bottom-start":!0}}],staticClass:"tour-answers-9",attrs:{type:"border"},on:{click:t.reapplyCorrection}},[e("font-awesome-icon",{staticStyle:{height:"14px",width:"14px"},attrs:{icon:"cogs"}}),t._v(" "+t._s(t.$t("atualizar-correcao")))],1)],1),e("div",[e("vs-button",{directives:[{name:"permission",rawName:"v-permission",value:"questionnaires.release.notes",expression:"'questionnaires.release.notes'"},{name:"tooltip",rawName:"v-tooltip.bottom-start",value:{content:"Liberar notas do questionário",delay:{show:1e3,hide:100}},expression:"{\n              content: 'Liberar notas do questionário',\n              delay: { show: 1000, hide: 100 }\n            }",modifiers:{"bottom-start":!0}}],staticClass:"tour-answers-9",attrs:{icon:"playlist_play",disabled:t.disableScoreReleaseButton},on:{click:t.scoreReleaseConfirmation}},[t._v(t._s(t.$t("liberar-notas")))])],1)])],1)],1),e("vx-tour",{attrs:{name:"questionnaireAnswerHasAnswerSteps",auto:!1}}),e("vs-popup",{attrs:{title:"",active:t.showCompleteQuestion,fullscreen:!0},on:{"update:active":function(e){t.showCompleteQuestion=e}}},[e("correction-complete-question",{attrs:{"complete-question":t.completeQuestion,"questionnaire-answer-service":t.questionnaireAnswerService}})],1),e("vs-popup",{attrs:{title:t.$t("comments"),active:t.showCommentSection},on:{"update:active":function(e){t.showCommentSection=e}}},[e("AnswerCommentSection",{ref:"commentsection"})],1)],1)},i=[],o=s("5530"),a=(s("4de4"),s("c740"),s("14d9"),s("a434"),s("a9e3"),s("b64b"),s("d3b7"),s("ac1f"),s("3ca3"),s("5319"),s("159b"),s("ddb0"),s("c70d"),s("3574"),s("1410"),s("f4fb"),s("9041")),r=s("9739"),c=s("f0d2"),l=s("1f75"),u=function(){var t=this,e=t._self._c;return e("div",[t.model?e("vx-card",{key:t.model,staticClass:"mb-4"},[e("div",{staticClass:"w-full",attrs:{slot:"header"},slot:"header"},[t._t("header")],2),e("p",{staticClass:"mb-3"},[e("vs-table",{key:t.key,attrs:{"no-data":" ",data:t.model.answers},scopedSlots:t._u([{key:"default",fn:function(s){var n=s.data;return t._l(n,(function(s,i){return e("vs-tr",{key:i,class:t.getRowClass(n[i],"question"),attrs:{state:t.correctionStatus(n[i])}},[e("vs-td",{directives:[{name:"tooltip",rawName:"v-tooltip",value:n[i].user_email,expression:"data[i].user_email"}],attrs:{data:n[i].user_name}},[e("label",[t._v(t._s(n[i].user_name))])]),e("vs-td",{attrs:{data:n[i].finished_at}},[t._v(t._s(t._f("moment")(n[i].finished_at,"DD/MM/YYYY kk:mm")))]),e("vs-td",{staticClass:"answer",attrs:{data:n[i].answer}},[e("question-answer",{attrs:{data:t.getCompleteQuestion(n[i])}})],1),e("vs-td",{staticClass:"w-score",attrs:{data:n[i].score}},[e("vs-input",{attrs:{lang:"pt-BR",type:"number",disabled:t.invalidatedQuestion(n[i].question_id)},on:{input:function(e){return t.scoreChanged(n[i],t.model.data.score)}},model:{value:n[i].score,callback:function(e){t.$set(n[i],"score",e)},expression:"data[i].score"}})],1),e("vs-td",{attrs:{data:n[i].id}},[e("div",{staticClass:"flex flex-wrap"},[e("vs-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:{content:"Marcar questão como correta",delay:{show:1e3,hide:100}},expression:"{\n                    content: 'Marcar questão como correta',\n                    delay: { show: 1000, hide: 100 }\n                  }",modifiers:{top:!0}}],staticClass:"m-1 tour-answers-5",attrs:{type:"filled",icon:"check",disabled:t.disableCorrectedButton(n[i])},on:{click:function(e){return t.correctQuestion(!0,n[i])}}}),e("vs-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:{content:"Marcar questão como incorreta",delay:{show:1e3,hide:100}},expression:"{\n                    content: 'Marcar questão como incorreta',\n                    delay: { show: 1000, hide: 100 }\n                  }",modifiers:{top:!0}}],staticClass:"m-1 tour-answers-6",attrs:{type:"filled",color:"danger",icon:"clear",disabled:t.disableWrongButton(n[i])},on:{click:function(e){return t.correctQuestion(!1,n[i])}}}),e("vs-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:{content:"Visualizar questão completa",delay:{show:1e3,hide:100}},expression:"{\n                    content: 'Visualizar questão completa',\n                    delay: { show: 1000, hide: 100 }\n                  }",modifiers:{top:!0}}],staticClass:"m-1 tour-answers-7",attrs:{type:"filled",color:"warning",icon:"visibility"},on:{click:function(e){return t.showCompleteQuestionModal(n[i])}}}),e("div",[e("feather-icon",{staticClass:"float-right h-auto z-50 mr-3 mt-2 tour-answers-8",attrs:{badge:t.unreadComments(n[i].comments,n[i].question_id),svgClasses:"text-success"},on:{click:function(e){return t.showCommentSectionModal(t.field)}}}),e("vs-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:{content:"Abrir comentários",delay:{show:1e3,hide:100}},expression:"{\n                      content: 'Abrir comentários',\n                      delay: { show: 1000, hide: 100 }\n                    }",modifiers:{top:!0}}],staticClass:"m-1",attrs:{type:"filled",color:"success",icon:"speaker_notes"},on:{click:function(e){return t.showCommentSectionModal(n[i])}}})],1)],1)])],1)}))}}],null,!1,2505964662)},[e("template",{slot:"thead"},[e("vs-th",{attrs:{width:"20%"}},[t._v(t._s(t.$t("participant")))]),e("vs-th",{attrs:{width:"18%"}},[t._v(t._s(t.$t("data-entrega")))]),e("vs-th",{attrs:{width:"43%"}},[t._v(t._s(t.$t("data_viewer.keys.answer")))]),e("vs-th",{attrs:{width:"1%"}},[t._v(t._s(t.$t("points")))]),e("vs-th",{attrs:{width:"18%"}},[t._v(t._s(t.$t("Actions")))])],1)],2)],1),t._.isArray(t.model.answers)&&0==t.model.answers.length?e("div",{staticClass:"w-full justify-center flex flex-wrap"},[t.hasRandomQuestions?e("label",{staticClass:"w-full text-center font-bold text-warning"},[t._v(" "+t._s(t.$t("este-questionario-possui-questoes-aleatorias"))+" ")]):t._e(),e("label",{staticClass:"w-full text-center"},[t._v(" "+t._s(t.$t("nao-ha-respostas-para-esta-questao"))+" ")])]):t._e(),e("div",{staticClass:"w-full pt-2 pb-8"},[e("vs-pagination",{staticClass:"float-right",attrs:{max:"10",total:t.grid.total},model:{value:t.grid.page,callback:function(e){t.$set(t.grid,"page",e)},expression:"grid.page"}})],1),e("p")]):t._e()],1)},d=[],h=s("44d1"),m=s("9f7c"),f={props:{grid:{type:Object,default:function(){return{total:0,page:0}}}},mixins:[h["a"],m["a"]]},p=f,v=s("2877"),g=Object(v["a"])(p,u,d,!1,null,null,null),w=g.exports,_=s("da80"),b=function(){return s.e("chunk-903d0b62").then(s.bind(null,"dca1"))},y={mixins:[m["a"]],components:{AnswerCommentSection:a["a"],VxTour:b,CorrectionUserPage:l["a"],CorrectionQuestionPage:w,CorrectionCompleteQuestion:_["a"]},props:{id:{type:Number,default:null},content:{type:Object,default:null}},data:function(){return{questionnaireAnswerService:null,contentQuestionnaireService:null,unfinishedCount:0,totalAnswers:0,questions:[],users:[],questionsFiltered:[],usersFiltered:[],usersList:[],questionGrouped:!1,showCompleteQuestion:!1,showCommentSection:!1,completeQuestion:null,key:0,filterCorrected:!1,filteringAmount:0,filterLock:!1,pagination:{currentQuestion:1,currentUser:1},grid:{total:0,page:0}}},watch:{answerPage:function(t){this.questionGrouped&&0!==t&&this.getAnswers(!0)},userPage:function(t){this.questionGrouped||0===t||this.getAnswers(!0)},filterCorrected:function(t){this.filterLock||this.applyUncorrectedQuestionFilter(!0),this.filterLock=!1},questionGrouped:function(){this.grid.page=1,this.grid.total=1,this.pagination.currentUser=1,this.getAnswers(!0),this.applyCorrectFilter(!0)},filteringAmount:function(t){0===t&&(this.filterLock=!0,this.filterCorrected=!1,this.applyCorrectFilter(!0))}},computed:{contentQuestions:function(){return this._.get(JSON.parse(this._.get(this.content,"data","")),"fields",[])},hasRandomQuestions:function(){return this._.get(this.content,"random_questions.type",!1)||!1},disableScoreReleaseButton:function(){var t=this._.get(this.content,"published_at","");return this.isEmpty(t)||this.totalAnswers<=0},questionnaireClosed:function(){var t=this.content&&this.content.finish_at;if(null===t)return!1;var e=this.$moment(),s=this.$moment(t);return s.isBefore(e)},answerPage:function(){return this.grid.page},userPage:function(){return this.pagination.currentUser},contentData:function(){return JSON.parse(this.content.data)},currentQuestion:function(){return"undefined"!==typeof this.questionsFiltered&&null!==this.questionsFiltered?this.pagination.currentQuestion?this.questionsFiltered[this.pagination.currentQuestion-1]:this.questionsFiltered[0]:null},currentUser:function(){return this.pagination.currentUser?this.usersFiltered[0]:this.users[0]},currentQuestionTitle:function(){var t=this.questionsFiltered[this.pagination.currentQuestion-1].data.title;return this.isEmpty(t)?"":this.questionsFiltered[this.pagination.currentQuestion-1].data.title.replace(/<\/?p[^>]*>/g,"")},noAnswers:function(){return!(!this.questionGrouped||!this.questionsFiltered||0!==this.questionsFiltered.length)||!(this.questionGrouped||!this.usersFiltered||0!==this.usersFiltered.length)},hasAnswers:function(){var t=this._.isArray(this.questions)&&this.questions.length||this._.isArray(this.users)&&this.users.length||0;return 0!==t}},methods:{showCommentModal:function(t,e){this.$refs.commentsection.getData(t.answer_id,t.question_id),-1===e.comments.readCache.indexOf(t.question_id)&&e.comments.readCache.push(t.question_id),this.showCommentSection=!0},showCompleteQuestionModal:function(t){this.key++,this.completeQuestion=t,this.showCompleteQuestion=!0},givenSecondChance:function(){this.questionGrouped=!1,this.getAnswers(!0)},reapplyCorrection:function(){var t=this;this.$vs.loading(),this.contentQuestionnaireService.reapplyCorrection(this.id).then((function(e){t.$vs.loading.close(),t._.isNumber(e)&&e>0?(t.notifySuccess(t.$vs,t.$t("correcao-automatica-aplicada-em-response",[e]),5e3),t.getAnswers(!0)):t.notifySuccess(t.$vs,t.$t("nao-ha-nenhuma-avaliacao-para-corrigir"),5e3)}),(function(e){t.$vs.loading.close()}))},getShowQuestionPopupCardClass:function(){},answerCorrectionWarnings:function(t){var e=t&&t.pending_correction,s=t&&t.pending_score_release;e&&s?this.notifyWarning(this.$vs,this.$t("pending_correction_and_release_msg")):e?this.notifyWarning(this.$vs,this.$t("pending_correction_msg")):s&&this.notifyWarning(this.$vs,this.$t("pending_score_release_msg"))},getAnswers:function(t){var e=this;this.isEmpty(this.id)||(t&&this.$vs.loading(),this.questionGrouped?this.questionnaireAnswerService.answersQuestion(this.id,{page:this.grid.page}).then((function(s){e.grid.total=s.pagination&&s.pagination.last_page,e.grid.page=s.pagination&&s.pagination.current_page,e.answersCallback(s,t)}),(function(s){t&&e.$vs.loading.close()})):this.questionnaireAnswerService.answersUser(this.id,{page:this.pagination.currentUser}).then((function(s){e.grid.total=s.pagination&&s.pagination.last_page,e.grid.page=s.pagination&&s.pagination.current_page,e.answersCallback(s,t)}),(function(s){t&&e.$vs.loading.close()})))},answersCallback:function(t,e){var s=this._.get(t,"grouped_by_question",[])||[],n=this._.get(t,"grouped_by_user",[])||[],i=this._.get(t,"users",[])||[],o=this._.get(t,"unfinished_answers",0)||0,a=this._.get(t,"total_answers",0)||0;this.questions=s,this.questionsFiltered=this._.cloneDeep(this.questions),this.users=n,this.usersFiltered=this._.cloneDeep(this.users),this.usersList=i,this.unfinishedCount=parseInt(o),this.totalAnswers=parseInt(a),this.pagination.currentQuestion=1,this.answerCorrectionWarnings(t),this.applyCorrectFilter(!0);var r=(t["grouped_by_question"]||t["grouped_by_user"]||[]).length;r>0&&!this.tourStarted("questionnaireAnswerHasAnswerSteps")&&this.startTour("questionnaireAnswerHasAnswerSteps"),e&&this.$vs.loading.close()},questionCorrected:function(t,e){console.log("corrected question"),this.updateQuestion(t,e),this.applyCorrectFilter(!1),this.showCompleteQuestion=!1,this.key++},updateQuestion:function(t,e){var s=this,n=Object(o["a"])(Object(o["a"])({},t),e);this.users&&this.users.length>0&&this.users[0].answers.forEach((function(e,i){var o=e.findIndex((function(e){return e.answer_id===t.answer_id&&e.question_id===t.question_id}));-1!==o&&(s.users[0].answers[i][o]=n)})),this.usersFiltered&&this.usersFiltered.length>0&&this.usersFiltered[0].answers.forEach((function(e,i){var o=e.findIndex((function(e){return e.answer_id===t.answer_id&&e.question_id===t.question_id}));-1!==o&&(s.usersFiltered[0].answers[i][o]=n)})),this.questions&&this.questions.length>0&&this.questions.forEach((function(e,i){var o=e.answers.findIndex((function(e){return e.answer_id===t.answer_id&&e.question_id===t.question_id}));-1!==o&&(s.questions[i].answers[o]=n)})),this.questionsFiltered&&this.questionsFiltered.length>0&&this.questionsFiltered.forEach((function(e,i){var o=e.answers.findIndex((function(e){return e.answer_id===t.answer_id&&e.question_id===t.question_id}));-1!==o&&(s.questionsFiltered[i].answers[o]=n)}))},scoreReleaseConfirmation:function(){this.$vs.dialog({type:"confirm",color:"success",title:this.$t("confirmacao"),acceptText:this.$t("sim"),cancelText:this.$t("nao"),text:this.$t("tem-certeza-que-deseja-liberar-as-notas"),accept:this.scoreRelease})},scoreRelease:function(){var t=this;this.$vs.loading(),this.contentQuestionnaireService.scoreRelease(this.id).then((function(e){t.content=e,t.$emit("contentUpdated",e),t.$vs.loading.close(),t.pendingCorrections=!1,t.notifySuccess(t.$vs,t.$t("operacao-realizada-com-sucesso"))}),(function(e){t.$vs.loading.close()}))},applyCorrectFilter:function(t){t&&(this.pagination.currentQuestion=1),this.filterCorrected&&this.applyFilterCorrected()},applyFilterCorrected:function(){var t=this,e=[],s=0;this.questionsFiltered.forEach((function(n){if(!t.isEmpty(n.answers)){var i=n.answers.filter((function(t){return!("correction"in t)}));i.length>0&&(e[s]=[],e[s].answers=i,e[s].data=n.data,s++)}})),this.questionsFiltered=e,this.filteringAmount=e.length,this.usersFiltered.forEach((function(e,s,n){if(!t.isEmpty(e.answers)){var i=[];e.answers.forEach((function(t,e,s){var n=t.filter((function(t){return!("correction"in t)}));n.length>0&&(i[e]=[],i[e]=n)})),i.length>0?e.answers=i:n.splice(s,1)}}))},applyUncorrectedQuestionFilter:function(t){t&&(this.pagination.currentQuestion=1),this.filterCorrected?this.applyFilterCorrected():this.questionGrouped?this.questionsFiltered=this._.cloneDeep(this.questions):this.usersFiltered=this._.cloneDeep(this.users)},setViewDefaults:function(t){var e=this._.get(t,"random_questions.type",null)||null;null!==e&&(this.questionGrouped=!1)}},beforeMount:function(){this.questionnaireAnswerService=r["a"].build(this.$vs),this.contentQuestionnaireService=c["a"].build(this.$vs)},mounted:function(){this.getAnswers(!0),this.setViewDefaults(this.content),this.$root.$on("corrected",this.questionCorrected)},beforeDestroy:function(){this.$root.$off("corrected",this.questionCorrected),this.destroyChilds(this)}},C=y,x=(s("9f50"),Object(v["a"])(C,n,i,!1,null,null,null));e["a"]=x.exports},c35a:function(t,e,s){"use strict";var n=s("23e7"),i=s("7e12");n({target:"Number",stat:!0,forced:Number.parseFloat!==i},{parseFloat:i})},da80:function(t,e,s){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",[e("vx-card",[e("div",{staticClass:"grid grid-rows-1"},[e("div",{staticClass:"grid grid-cols-2"},[e("div",{staticClass:"float-left text-sm"},[e("label",{staticClass:"font-bold"},[t._v(t._s(t.$t("valor"))+":")]),e("label",[t._v(" ("+t._s(t.formatFloat(t._.get(t.completeQuestion,"data.score",0),2))+") ")])])])]),e("div",[t.completeQuestion&&"multiple_choice"===t.completeQuestion.type?e("multiple-choice-show",{key:t.key,attrs:{item:t.completeQuestion}}):t._e(),t.completeQuestion&&"check_box"===t.completeQuestion.type?e("check-box-show",{key:t.key,attrs:{item:t.completeQuestion}}):t._e(),t.completeQuestion&&"simple_text"===t.completeQuestion.type?e("simple-text-show",{key:t.key,attrs:{item:t.completeQuestion}}):t._e(),t.completeQuestion&&"gap"===t.completeQuestion.type?e("gap-show",{key:t.key,attrs:{item:t.completeQuestion}}):t._e(),t.completeQuestion&&"essay"===t.completeQuestion.type?e("essay-show",{key:t.key,attrs:{item:t.completeQuestion}}):t._e()],1)]),e("vs-divider"),e("div",{staticClass:"flex flex-wrap float-right"},[e("vs-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:{content:t.$t("marcar-questao-como-correta"),delay:{show:1e3,hide:100}},expression:"{\n        content: $t('marcar-questao-como-correta'),\n        delay: { show: 1000, hide: 100 }\n      }",modifiers:{top:!0}}],staticClass:"m-1",attrs:{type:"filled",icon:"check",disabled:t.disableCorrectedButton(t.completeQuestion)},on:{click:function(e){return t.correctQuestion(!0,t.completeQuestion)}}}),e("vs-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:{content:t.$t("marcar-questao-como-incorreta"),delay:{show:1e3,hide:100}},expression:"{\n        content: $t('marcar-questao-como-incorreta'),\n        delay: { show: 1000, hide: 100 }\n      }",modifiers:{top:!0}}],staticClass:"m-1",attrs:{type:"filled",color:"danger",icon:"clear",disabled:t.disableWrongButton(t.completeQuestion)},on:{click:function(e){return t.correctQuestion(!1,t.completeQuestion)}}})],1)],1)},i=[],o=s("9f7c"),a=s("3574"),r=s("1410"),c=s("c70d"),l=s("325c"),u=s("f4fb"),d={components:{MultipleChoiceShow:a["a"],CheckBoxShow:r["a"],SimpleTextShow:c["a"],GapShow:u["a"],EssayShow:l["a"]},data:function(){return{key:0}},props:{completeQuestion:{type:Object,default:null},questionnaireAnswerService:{type:Object,default:null}},watch:{completeQuestion:function(){this.key++}},mixins:[o["a"]]},h=d,m=s("2877"),f=Object(m["a"])(h,n,i,!1,null,null,null);e["a"]=f.exports},e823:function(t,e,s){},eee1:function(t,e,s){"use strict";s("af73")},f0d2:function(t,e,s){"use strict";s.d(e,"a",(function(){return c}));var n=s("d4ec"),i=s("bee2"),o=s("8f33"),a=s("262e"),r=(s("99af"),s("c0e9")),c=function(t){function e(){return Object(n["a"])(this,e),Object(o["a"])(this,e,arguments)}return Object(a["a"])(e,t),Object(i["a"])(e,[{key:"uploadOptionImageUrl",value:function(t,e){return this.post("/upload_option_image_url/".concat(t),e).then((function(t){return t}))}},{key:"canAnswer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.get("/".concat(t,"/can_answer"),{preview:e}).then((function(t){return t}))}},{key:"resume",value:function(t){return this.get("/".concat(t,"/resume")).then((function(t){return t}))}},{key:"generalResume",value:function(t){return this.get("/".concat(t,"/resume/general")).then((function(t){return t}))}},{key:"createEmailsSent",value:function(t,e){return this.post("/".concat(t,"/emails"),e).then((function(t){return t}))}},{key:"destroyEmailSent",value:function(t,e){return this.delete("/".concat(t,"/emails/").concat(e)).then((function(t){return t}))}},{key:"selectAllEmails",value:function(t,e){return this.get("/".concat(t,"/emails/").concat(e,"/selection"))}},{key:"sendEmailToAll",value:function(t,e){return this.post("/".concat(t,"/send_all_email"),e).then((function(t){return t}))}},{key:"findByShortUrlId",value:function(t){return this.get("/".concat(t,"/find_by_short_url_id")).then((function(t){return t}))}},{key:"scoreRelease",value:function(t){return this.post("/".concat(t,"/score_release")).then((function(t){return t}))}},{key:"clone",value:function(t){return this.post("/".concat(t,"/clone")).then((function(t){return t}))}},{key:"storeQuestion",value:function(t){return this.put("/".concat(this.getId(t),"/store_question"),t).then((function(t){return t}))}},{key:"storeSingleQuestion",value:function(t){return this.put("/".concat(this.getId(t),"/store_single_question"),t).then((function(t){return t}))}},{key:"getContent",value:function(t){return this.get("/".concat(t,"/content")).then((function(t){return t}))}},{key:"deleteOptionImage",value:function(t,e){return this.delete("/".concat(t,"/media/").concat(e)).then((function(t){return t}))}},{key:"getParticipants",value:function(t,e){return this.get("/".concat(t,"/participants"),{level:e})}},{key:"getStatusIndicators",value:function(t,e){return this.get("/".concat(t,"/status"),e).then((function(t){return t}))}},{key:"getEventSeverityChart",value:function(t,e){return this.get("/".concat(t,"/severity_chart"),e).then((function(t){return t}))}},{key:"getEventData",value:function(t,e){return this.get("/".concat(t,"/events/data"),e)}},{key:"calcAllQuestionScore",value:function(t){return this.post("/".concat(t,"/calc_all_questions_score"))}},{key:"reapplyCorrection",value:function(t){return this.post("/".concat(t,"/reapply_correction"))}},{key:"getContentSimple",value:function(t){return this.get("/".concat(t,"/simple")).then((function(t){return t}))}},{key:"getInvitedGrid",value:function(t,e){return this.get("/".concat(t,"/invited/grid"),{level:e})}},{key:"resendInvite",value:function(t,e){var s={invite_ids:e};return this.post("/".concat(t,"/invited/resend_invite"),s).then((function(t){return t}))}},{key:"resendInviteAll",value:function(t){return this.post("/".concat(t,"/invited/resend_all"),{}).then((function(t){return t}))}},{key:"resendInvitePending",value:function(t){return this.post("/".concat(t,"/invited/resend_pending"),{}).then((function(t){return t}))}},{key:"getThemesConfig",value:function(t){return this.get("/".concat(t,"/questions/themes"))}}],[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;return new this(this.resource,null,t,e)}}])}(r["a"]);c.resource="/api/v1/content_questionnaires"}}]);