(window.webpackJsonp=window.webpackJsonp||[]).push([["cc-slide"],{"1e22":function(e,t,n){"use strict";var i=n("7b31");n.o(i,"render")&&n.d(t,"render",(function(){return i.render})),n.o(i,"staticRenderFns")&&n.d(t,"staticRenderFns",(function(){return i.staticRenderFns}))},"1f1e":function(e,t,n){},"7b31":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0;t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"question-panel-container"},[e.showRaiseHandControl&&!e.isUserCCPresenter&&e.isAudioQAndAEnabled&&e.isTextQAndAEnabled?t("BinaryToggle",{attrs:{toggleOptions:["Text","Audio"],toggleStyle:e.toggleStyle,toggleOptionStyle:e.toggleOptionStyle,defaultSelection:e.getSelectedItem},on:{"option-selected":e.setSelectedQuestionType}}):e._e(),t("div",{staticClass:"question-content"},[t("TextQuestionsPanel",{directives:[{name:"show",rawName:"v-show",value:e.showTextQuestionPanel,expression:"showTextQuestionPanel"}],attrs:{submitButtonText:e.submitButtonText},on:{"delete-question":e.deleteTextQuestion,"submit-question":e.submitTextQuestion}}),!e.isUserCCPresenter&&e.showRaiseHandControl&&e.isAudioQAndAEnabled?t("AudioQuestionsPanel",{directives:[{name:"show",rawName:"v-show",value:e.showAudioQuestionPanel,expression:"showAudioQuestionPanel"}],attrs:{audioPanelShown:e.isAudioQuestionSelected},on:{"delete-question":e.deleteAudioQuestion,"submit-question":e.postNewAudioQuestion}}):e._e()],1)],1)},t.staticRenderFns=[]},"9a30":function(e,t,n){"use strict";var i=n("288e");n("8e6e"),n("ac6a"),n("456d"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("7514");var s=i(n("bd86")),o=n("2f62"),u=i(n("e6fd"));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default={name:"QuestionsPanel",data:function(){return{toggleOptionStyle:{lineHeight:"28px"},toggleStyle:{height:"36px",padding:"4px"}}},components:{AudioQuestionsPanel:function(){return n.e("questions-panel").then(n.bind(null,"94d9"))},BinaryToggle:function(){return n.e("questions-panel").then(n.bind(null,"3db5"))},TextQuestionsPanel:function(){return n.e("questions-panel").then(n.bind(null,"9a84"))}},mounted:function(){this.setIsSubmitTextQuestionDisabled(!1),this.setDisableButtonTooltip("")},computed:d(d(d(d(d(d(d({},(0,o.mapState)("liveVideo",["isLiveVideoDOMLoaded"])),(0,o.mapGetters)("questions",["isTextQAndAEnabled","isAudioQAndAEnabled","isTextQuestionSelected","isAudioQuestionSelected","unansweredTextQuestion","isCurrentTextQuestion"])),(0,o.mapState)("conferenceCall",["isConferenceCallAndStreamAvailable"])),(0,o.mapGetters)("conferenceCall",["isConfCallLive","isUserCCPresenter","hasConfCallEndedOrExpired","isParticipantAccessRevoked"])),(0,o.mapGetters)("presentation",["isTwoWayAudioConferencing"])),(0,o.mapState)("questions",["allowEditQuestion","doNotAnnounceNameAndCompany","textQuestions","audioQuestions","questionStatuses","questionText","selectedQuestionType","isSubmitTextQuestionDisabled"])),{},{showTextQuestionPanel:function(){return this.isTextQuestionSelected&&this.isTextQAndAEnabled},showAudioQuestionPanel:function(){return this.isAudioQuestionSelected&&this.isAudioQAndAEnabled},submitButtonText:function(){return this.showUpdateButton?"":u.default.ccWithSlidesQandA.submitButtonText},showUpdateButton:function(){return this.unansweredTextQuestion&&!this.isSubmitTextQuestionDisabled&&!this.isCurrentTextQuestion},getSelectedItem:function(){return this.isTextQuestionSelected?0:1},showRaiseHandControl:function(){return this.isTwoWayAudioConferencing&&(this.isConferenceCallAndStreamAvailable||this.isConfCallLive)&&!this.hasConfCallEndedOrExpired&&!this.isParticipantAccessRevoked&&this.isLiveVideoDOMLoaded}}),methods:d(d(d({},(0,o.mapActions)("questions",["getPresentationTextQuestions","getPresentationAudioQuestions","postNewQuestion","updateTextQuestion","updateAudioQuestionState","deleteQuestion"])),(0,o.mapMutations)("questions",["setAllowEditQuestion","setDoNotAnnounceNameAndCompany","setQuestionText","setTextQuestions","setIsSubmitTextQuestionDisabled","setDisableButtonTooltip","setSelectedQuestionType"])),{},{updateTextQuestionState:function(){var e=this;if(this.unansweredTextQuestion){if(!this.textQuestions)return;var t=this.textQuestions.find((function(t){return t.Id===e.unansweredTextQuestion.Id}));if(!t)return;var n=!1;t.Status===this.questionStatuses.Ignored||t.Status===this.questionStatuses.Answered?n=!0:this.allowEditQuestion||(this.setQuestionText(this.unansweredTextQuestion.Question),this.setDoNotAnnounceNameAndCompany(this.unansweredTextQuestion.DoNotAnnounceNameAndCompany)),n&&this.setQuestionText("")}else this.setQuestionText("")},submitTextQuestion:function(){this.isSubmitTextQuestionDisabled||(this.setIsSubmitTextQuestionDisabled(!0),this.unansweredTextQuestion?this.updateTextQuestion():this.postNewQuestion(u.default.QuestionType.Text))},postNewAudioQuestion:function(){this.postNewQuestion(u.default.QuestionType.Audio)},deleteAudioQuestion:function(){this.deleteQuestion(u.default.QuestionType.Audio)},deleteTextQuestion:function(){return!this.isSubmitTextQuestionDisabled&&(this.setIsSubmitTextQuestionDisabled(!0),this.deleteQuestion(u.default.QuestionType.Text))}}),watch:{audioQuestions:function(){this.updateAudioQuestionState()},selectedQuestionType:function(e){e===u.default.QuestionType.Text?this.getPresentationTextQuestions():this.getPresentationAudioQuestions()},textQuestions:{deep:!0,handler:function(){this.updateTextQuestionState()}}}}},a292:function(e,t,n){"use strict";n("1f1e")},db47:function(e,t,n){"use strict";n.r(t);var i=n("9a30"),s=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t.default=s.a},de44:function(e,t,n){"use strict";n.r(t);var i=n("1e22"),s=n("db47");for(var o in s)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return s[e]}))}(o);n("a292");var u=n("2877"),a=Object(u.a)(s.default,i.render,i.staticRenderFns,!1,null,"3d32ab9f",null);t.default=a.exports}}]);