(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d10d3d3"],{1475:function(t,e,i){},1504:function(t,e,i){"use strict";i("fd82")},"163a":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t._self._c;return e(t.rootComponent,{tag:"component"},[e("div",{staticClass:"grid grid-cols-12 gap-4"},[t.showBrowserWarning&&!t.printMode?e("vs-alert",{staticClass:"mt-5 col-span-12 text-warning mb-4",attrs:{title:t.$t("alerta"),color:"rgb(231, 154, 23)",active:"true"}},[t._v(" "+t._s(t.$t("melhor-visualizacao-e-impressao-na-versa"))+" ")]):t._e(),e("div",{staticClass:"col-span-12 page mx-auto mt-4"},[e("full-questionnaire-blank",{staticClass:"mb-2",attrs:{questionnaire_data:t.questionnaire}})],1)],1)])},s=[],a=(i("b0c0"),i("a9e3"),i("d3b7"),i("2ef0"),i("f0d2")),r=(i("a4d3"),i("e01a"),function(){var t=this,e=t._self._c;return e("vx-card",{staticClass:"border-grey border-solid border p-0"},[e("div",{staticClass:"grid grid-cols-12 gap-4"},[e("div",{staticClass:"col-span-12"},[e("vx-card",{staticClass:"mx-0 px-0 shadow-none"},[e("div",{staticClass:"grid gap-2"},[t.questionnaireName?e("div",{staticClass:"flex flex-col row-start-1 col-span-3"},[e("label",{staticClass:"font-bold"},[t._v(t._s(t.$t("Questionnaire")))]),e("span",[t._v(t._s(t.questionnaireName))])]):t._e(),t.questionnaireOwner?e("div",{staticClass:"flex flex-col row-start-2"},[e("label",{staticClass:"font-bold"},[t._v(t._s(t.$t("owner_by")))]),e("span",[t._v(t._s(t.questionnaireOwner))])]):t._e(),t.questionnaireCreatedAt?e("div",{staticClass:"flex flex-col row-start-2"},[e("label",{staticClass:"font-bold"},[t._v(t._s(t.$t("criado-em")))]),e("span",[t._v(t._s(t.questionnaireCreatedAt))])]):t._e(),t.questionnairePublishedAt?e("div",{staticClass:"flex flex-col row-start-2"},[e("label",{staticClass:"font-bold"},[t._v(t._s(t.$t("Release_Date")))]),e("span",[t._v(t._s(t.questionnairePublishedAt))])]):t._e(),t.questionnaireTotalScore?e("div",{staticClass:"flex flex-col row-start-2"},[e("label",{staticClass:"font-bold"},[t._v(t._s(t.$t("pontuacao-total")))]),e("span",{staticClass:"text-center"},[t._v(t._s(t.questionnaireTotalScore))])]):t._e(),t.questionnaireStartAt||t.questionnaireFinishAt?e("div",{staticClass:"flex flex-col col-span-4 row-start-3"},[e("label",{staticClass:"font-bold"},[t._v(t._s(t.$t("fields.term")))]),null!==t.questionnaireStartAt||null!==t.questionnaireFinishAt?e("span",{staticClass:"flex items-center"},[e("span",[null!==t.questionnaireStartAt?e("span",[t._v(" "+t._s(t.$t("inicio-as"))+" "+t._s(t.questionnaireStartAt)+" ")]):t._e(),null!==t.questionnaireFinishAt?e("span",[null!==t.questionnaireStartAt?e("span",[t._v(" - ")]):t._e(),t._v(" "+t._s(t.$t("termino-as"))+" "+t._s(t.questionnaireFinishAt)+" ")]):t._e()])]):t._e()]):t._e(),t.description?e("div",{staticClass:"flex flex-col col-span-4 row-start-4"},[e("label",{staticClass:"font-bold"},[t._v(t._s(t.$t("informacoes-gerais")))]),t.description?e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.description,expression:"description"}],staticClass:"editor-content ck-content",attrs:{id:"descriptionElement"}}):t._e()]):t._e()])])],1),e("div",{staticClass:"col-span-12"},[e("div",[t._l(t.answeredQuestionnaireFields,(function(i,n){return e("div",{key:i.id,staticClass:"px-4"},[e("vx-card",{class:t.getRowClass(i)},["section"!==t._.get(i,"type",null)?e("div",{staticClass:"grid grid-rows-1"},[e("div",{staticClass:"grid grid-cols-2"},[e("div",{staticClass:"float-left"},[e("span",{staticStyle:{"font-size":"12px"}},[t._v(t._s(t.scoreSet(i)))])])])]):t._e(),e("div",["section"===i.type?e("SectionAnswer",{attrs:{item:{data:{title:i.data.title}}}}):t._e(),"simple_text"===i.type?e("SimpleTextShow",{attrs:{item:i,showAnswerSection:!1,hide_score:!1,showQuestionNumber:!0,showQuestionScore:!0,index:t.questionNumber(n)}}):t._e(),"multiple_choice"===i.type?e("MultipleChoiceShow",{attrs:{item:i,showQuestionNumber:!0,showQuestionScore:!0,index:t.questionNumber(n)}}):t._e(),"check_box"===i.type?e("CheckBoxShow",{attrs:{item:i,showQuestionNumber:!0,showQuestionScore:!0,index:t.questionNumber(n)}}):t._e(),"gap"===i.type?e("GapShow",{attrs:{item:i,showQuestionNumber:!0,showQuestionScore:!0,index:t.questionNumber(n)}}):t._e(),"essay"===i.type?e("EssayShow",{attrs:{item:i,showAnswerSection:!1,hide_score:!1,showQuestionNumber:!0,showQuestionScore:!0,index:t.questionNumber(n)}}):t._e()],1)])],1)})),e("div",{staticClass:"vx-col grid w-full mt-6"},[t.organizationLogo?e("div",{staticClass:"flex items-stretch mx-auto place-self-center"},[e("div",{staticClass:"flex items-center"},[e("label",{staticClass:"text-black text-sm mr-2 text-center"},[t._v(t._s(t.$t("made_by")))])]),e("img",{staticStyle:{"max-width":"100px"},attrs:{src:t.organizationLogo}})]):t._e(),e("div",{staticClass:"flex items-stretch mx-auto place-self-center"},[e("label",{staticClass:"text-primary text-sm mr-2"},[t._v(t._s(t.$t("Powered_by")))]),e("a",{attrs:{href:"https://educatena.com.br",target:"_blank"}},[e("img",{staticStyle:{"max-width":"100px"},attrs:{src:i("a4ef")}})])])])],2)])])])}),o=[],c=(i("d9e2"),i("4de4"),i("14d9"),i("b680"),i("b64b"),i("ac1f"),i("5319"),i("159b"),i("f9ca")),l=i("c70d"),u=i("325c"),d=i("3574"),f=i("1410"),h=i("f4fb"),m=i("2c1d"),v=(i("a014"),{components:{SectionAnswer:c["a"],SimpleTextShow:l["a"],MultipleChoiceShow:d["a"],CheckBoxShow:f["a"],GapShow:h["a"],EssayShow:u["a"]},props:{answer:{type:Object,default:null},questionnaire_data:{type:Object,default:null},questionnaire_short_url:{type:String,default:null},logo:{type:String,default:null}},data:function(){return{}},computed:{organizationLogo:function(){return this._.get(this.questionnaire_data,"organization_logo",null)},questionnaireOwner:function(){return this._.get(this.questionnaire_data,"owner_formatted",null)},questionnaireCreatedAt:function(){return this._.get(this.questionnaire_data,"created_at_formatted",null)},questionnairePublishedAt:function(){return this._.get(this.questionnaire_data,"published_at_formatted",null)},questionnaireStartAt:function(){return this._.get(this.questionnaire_data,"start_at_formatted","--")},questionnaireFinishAt:function(){return this._.get(this.questionnaire_data,"finish_at_formatted","--")},questionnaireName:function(){return this._.get(this.questionnaire_data||{},"name",null)},description:function(){return this._.get(this.questionnaire_data,"description","")},questionnaireTotalScore:function(){return this._.get(this.questionnaire_data,"total_score","0,0")},answeredQuestionnaireFields:function(){var t=this._.get(this.questionnaire_data,"data",null);if(!t)return null;try{var e=JSON.parse(t),i=e["fields"];return this._.isArray(i)&&i||null}catch(n){return n instanceof SyntaxError||console.error(n),null}}},methods:{scoreSet:function(t){if(!this.isEmpty(t.max_score)){var e=parseFloat(t.max_score).toFixed(2).replace(".",",");return this.$t("valor-scoreset",[e])}return""},formmatedScore:function(t){return this.isEmpty(t)?"":parseFloat(t).toFixed(2).replace(".",",")},getRowClass:function(t){var e="mb-2",i=this._.get(t,"id",null);if(i){var n=Object(m["a"])(i,this.answeredQuestionnaireFields,{}),s=this._.get(n,"invalidated.justification",!1);if(!1!==s)return"".concat(e," invalidated-item")}return e},sections:function(t){var e=this,i=t,n=[],s=[],a=function(){s.push(n),n=[]};return i.forEach((function(t,s){var r=e._.get(t,"type",null)||null;"section"===r&&0!==s&&a(),n.push(t),s===i.length-1&&a()})),s},questionsQuantity:function(t){return t=t?t.filter((function(t){return"section"!==t.type})):[],t.length},sectionQuantity:function(t){return t=t?t.filter((function(t){return"section"===t.type})):[],t.length},countQuestionsBeforeSection:function(t){for(var e=0,i=0;i<t;i++){var n=this.sections[i];e+=this.questionsQuantity(n)}return e+1},countQuestionsBeforePresentedField:function(t,e){for(var i=0,n=0;n<=e;n++){var s=t[n];s&&(i+="section"!==s.type?1:0)}return i},questionNumber:function(t){return this.countQuestionsBeforePresentedField(this.answeredQuestionnaireFields,t)}},beforeMount:function(){}}),p=v,_=(i("b34f"),i("9b02b"),i("2877")),b=Object(_["a"])(p,r,o,!1,null,"37a4d424",null),g=b.exports,w={components:{FullQuestionnaireBlank:g},data:function(){return{questionnaireService:null,questionnaire:{}}},props:{mode:{type:String,default:"form"},id:{default:null,type:Number}},watch:{},computed:{printMode:function(){return"print"===this.mode},rootComponent:function(){switch(this.mode){case"print":return"div";default:return"vx-card"}},showBrowserWarning:function(){return!this.$utils.browser.isAtleastChrome(71)}},methods:{setupPrint:function(){var t=this,e=this.questionnaire.name;document.title=e,this.$nextTick((function(){t.$vs.loading(),setTimeout((function(){t.$vs.loading.close(),window.print()}),2e3)}))}},beforeMount:function(){this.questionnaireService=a["a"].build(this.$vs)},mounted:function(){var t=this;this.questionnaireService.read(this.id,{res:["logo"]}).then((function(e){t.questionnaire=e}),(function(e){t.notifyError(t.$vs,t.$t("nao-foi-possivel-carregar-os-dados-dos-q"))})).finally((function(){t.$vs.loading.close(),t.printMode="print",t.setupPrint()}))}},y=w,C=(i("1504"),Object(_["a"])(y,n,s,!1,null,"79eb7756",null));e["default"]=C.exports},"25ca":function(t,e,i){"use strict";i("1475")},"2c1d":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return s}));i("c740"),i("d3b7"),i("159b");function n(t,e){var i=0,n=0;return e.forEach((function(e,s){e.id===t&&(n=i),(0===s&&"section"!==e.type||0!==s&&"section"===e.type)&&i++})),n}function s(t,e){var i=e.findIndex((function(e){return e.id===t}));return-1!==i?e[i]:null}},"325c":function(t,e,i){"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()])},s=[],a=(i("a9e3"),i("b680"),i("ac1f"),i("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)}}),r=a,o=(i("6c16"),i("2877")),c=Object(o["a"])(r,n,s,!1,null,null,null);e["a"]=c.exports},"38cf":function(t,e,i){"use strict";var n=i("23e7"),s=i("1148");n({target:"String",proto:!0},{repeat:s})},"3bdd":function(t,e,i){},"58c5":function(t,e,i){},"6c16":function(t,e,i){"use strict";i("58c5")},"9b02b":function(t,e,i){"use strict";i("eac9")},a014:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("d4ec"),s=i("bee2"),a=i("8f33"),r=i("262e"),o=i("c0e9"),c=function(t){function e(){return Object(n["a"])(this,e),Object(a["a"])(this,e,arguments)}return Object(r["a"])(e,t),Object(s["a"])(e,null,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new this(this.resource,null,t)}}])}(o["a"]);c.resource="/api/v1/organizations"},a4ef:function(t,e,i){t.exports=i.p+"img/logo.e9192b58.png"},b34f:function(t,e,i){"use strict";i("3bdd")},dd55:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("d4ec"),s=i("bee2"),a=i("8f33"),r=i("262e"),o=i("c0e9"),c=function(t){function e(){return Object(n["a"])(this,e),Object(a["a"])(this,e,arguments)}return Object(r["a"])(e,t),Object(s["a"])(e,[{key:"upload",value:function(t,e){return this.post("/".concat(t,"/upload"),e,{headers:{"Content-Type":"multipart/form-data;"}}).then((function(t){return t}))}},{key:"uploadPart",value:function(t){return this.post("/upload_part",t,{"Content-Type":"multipart/form-data;"}).then((function(t){return t}))}},{key:"url",value:function(t){return this.get("".concat(t,"/url")).then((function(t){return t}))}},{key:"optimizeImage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.post("/".concat(e,"/optimize_image"),t,{"Content-Type":"multipart/form-data;"}).then((function(t){return t}))}},{key:"optimizeUrl",value:function(t,e){return this.post("/".concat(t,"/optimize_url"),{id:t,url:e}).then((function(t){return t}))}},{key:"downloadMedia",value:function(t,e,i){return this.download("/".concat(t,"/download"),e,i)}}],[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new this(this.resource,null,t,e)}}])}(o["a"]);c.resource="/api/v1/medias"},eac9:function(t,e,i){},f0d2:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("d4ec"),s=i("bee2"),a=i("8f33"),r=i("262e"),o=(i("99af"),i("c0e9")),c=function(t){function e(){return Object(n["a"])(this,e),Object(a["a"])(this,e,arguments)}return Object(r["a"])(e,t),Object(s["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 i={invite_ids:e};return this.post("/".concat(t,"/invited/resend_invite"),i).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)}}])}(o["a"]);c.resource="/api/v1/content_questionnaires"},f4fb:function(t,e,i){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gapShow"},[t.briefMode?t._e():e("div",{staticClass:"w-full",staticStyle:{"border-bottom":"1px solid #dadce0"}},[e("div",{staticClass:"flex mb-2 mt-2 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:"content-break-word question-title ml-3"})])])]),e("div",[t.dragItems&&t.dragItems.length>0&&!t.briefMode?e("div",{key:t.item.id,staticClass:"flex sm:w-full"},[e("div",{staticClass:"p-2 w-full"},[e("div",{staticClass:"flex gap-2 flex-wrap justify-center gap-drop"},t._l(t.dragItems,(function(i){return e("div",{key:i},[e("div",{staticClass:"drag-item select-none"},[t._v(" "+t._s(i.label)+" ")])])})),0)])]):t._e(),e("div",{staticClass:"flex flex-wrap justify-center items-center mb-3"},t._l(t.options,(function(i){return e("div",{key:i,staticClass:"mt-4 ml-2"},[e("div",{class:{"gap-answer":"gap"===i.type,"magnetic-gap-answer":"magnetic_gap"===i.type}},[e("div",{staticClass:"relative"},[t.isTextGap(i)?t._e():e("div",{class:{"wrong-option":t.isIncorrectedOption(i),"corrected-option":t.isCorrectedOption(i),"partially-corrected-option":t.isPartiallyCorrectedOption(i)}},[e("div",{staticStyle:{width:"100%","min-height":"1.5rem"}},[t._v(" "+t._s(t.getAnswer(i))+" ")]),t.showCorrectAnswer?e("label",{staticClass:"absolute text-xs",staticStyle:{left:"0",width:"max-content",bottom:"-1.5rem"}},[t._v(" "+t._s(i.label)+" ")]):t._e()])]),t._v("   "),t.isTextGap(i)&&!t.briefMode?e("span",[t._v(" "+t._s(i.label)+" ")]):t._e()])])})),0)]),t.isEmpty(t.item.feedback||t.feedback)||t.briefMode?t._e():e("h5",{staticClass:"mt-8 border-bottom"}),t.isEmpty(t.item.feedback||t.feedback)||t.briefMode?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.briefMode?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&&!t.briefMode?e("h5",{staticClass:"mt-8 border-bottom"}):t._e(),t.invalidated&&!t.briefMode?e("h5",{staticClass:"mt-8 text-danger"},[t._v(t._s(t.$t("justificativa-da-anulacao")))]):t._e(),t.invalidated&&!t.briefMode?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()])},s=[],a=(i("4de4"),i("7db0"),i("c740"),i("a9e3"),i("b680"),i("d3b7"),i("ac1f"),i("38cf"),i("5319"),i("159b"),i("dd55")),r={props:{item:{type:Object,default:function(){return{feedback:""}}},highlightCorrectBackground:{type:Boolean,default:!0},showCorrectAnswer:{type:Boolean,default:!0},briefMode:{type:Boolean,default:!1},showQuestionNumber:{type:Boolean,default:!1},showQuestionScore:{type:Boolean,default:!1},index:{type:Number,default:null}},data:function(){return{options:[],key:0}},computed:{title:function(){var t=this.item.data.title?this.item.data.title:this.$t("sem-titulo");return t},invalidated:function(){var t=this._.get(this.item,"data.invalidated.justification",!1);return!1!==t&&t},dragItems:function(){var t=this,e=this._.get(this.item,"data.options",[])||[],i=this._.get(this.item,"answer",[])||[];return e.filter((function(n){var s=t._.get(n,"type");if("magnetic_gap"===s){t._.get(n,"id");var a=i.findIndex((function(i){var s="magnetic_gap"===t._.get(e.find((function(t){return t.id===i.id})),"type");return s&&i&&!t.isEmpty(i.answer)&&i.answer===n.label}));return-1===a}return!1}))},formattedScore:function(){var t=this.item.data.score;return t?parseFloat(t).toFixed(2).replace(".",","):""}},methods:{getAnswer:function(t){var e=(_.get(t,"label","")||"").length,i=function(t){return _.pad(t,e," ")},n=_.repeat(" ",(_.get(t,"label","")||"").length);if("gap"===t.type||"magnetic_gap"===t.type){var s=this._.get(this.item,"answer",[])||[],a=s.find((function(e){return e.id===t.id}));return i(this._.get(a,"answer"))||n}return n},optionCorrectionIs:function(t,e){if(this.item&&this.item.answer&&this._.isArray(this.item.answer)){var i=this.item.answer.find((function(t){return t.id===e.id}));return!(!i||i.correction!==t)}return null},optionAnswerIsEmpty:function(t){var e=_.get(this.item,"answer",[])||[],i=_.find(e,_.matchesProperty("id",_.get(t,"id")));return!i||_.isEmpty(i.answer)},isTextGap:function(t){return"text"===t.type},isCorrectedOption:function(t){var e=this.optionCorrectionIs("C",t);return null!==e&&e},isPartiallyCorrectedOption:function(t){var e=this.optionCorrectionIs("P",t);return null!==e&&e},isIncorrectedOption:function(t){var e=this.optionCorrectionIs("I",t);return null===e||e},showOptionLabel:function(t){var e=this.optionCorrectionIs("I",t);switch(t.type){case"magnetic_gap":case"gap":var i=this.optionAnswerIsEmpty(t);return(e||i)&&this.showCorrectAnswer;default:return!0}},borderClass:function(t){var e="vx-row py-1 sm:py-auto";return this.highlightCorrectBackground?t.chosen?this.item.correction?"".concat(e," bg-green-light bg-opacity-25"):"".concat(e," bg-red-light bg-opacity-25"):"".concat(e):e},teacherMark:function(t){var e="ml-2 float-left absolute";return t.selected?"".concat(e):"".concat(e," invisible")}},beforeMount:function(){if(this.mediaService=a["a"].build(this.$vs),this.item){this.options=this.item.data&&this.item.data.options?this.item.data.options:[],this.options.forEach((function(t){t.chosen=!1}));for(var t=0;t<this.options.length;t++){var e=this.options[t];e.id===this.item.chosen_option_id&&(e.chosen=!0)}}},beforeDestroy:function(){this.destroyChilds(this)}},o=r,c=(i("25ca"),i("2877")),l=Object(c["a"])(o,n,s,!1,null,null,null);e["a"]=l.exports},f9ca:function(t,e,i){"use strict";i("a4d3"),i("e01a");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ml-4 mr-4 mt-4 w-full"},[e("div",{staticClass:"flex mb-5"},[e("div",{staticClass:"bg-grid-color-secondary mr-2 w-full"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.title,expression:"title"}],staticClass:"editor-content ck-content unselectable"}),t.isEmpty(t.description)?t._e():e("vs-divider",{staticClass:"m-1"}),t.isEmpty(t.description)?t._e():e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.description,expression:"description"}],staticClass:"mt-2"})],1)])])},s=[],a=(i("a9e3"),{props:{item:{type:Object,default:null},answer_id:{type:Number,default:null},user_id:{type:Number,default:null}},data:function(){return{service:null}},computed:{title:function(){var t=this.html2text(this.item.data.title);return null!==t&&""!==t?this.item.data.title:"<h1>".concat(this.$t("sem-titulo"),"</h1>")},description:function(){var t=this.html2text(this.item.data.description);return null!==t&&""!==t?this.item.data.description:""}},methods:{},beforeMount:function(){}}),r=a,o=i("2877"),c=Object(o["a"])(r,n,s,!1,null,null,null);e["a"]=c.exports},fd82:function(t,e,i){}}]);