(self.webpackChunk=self.webpackChunk||[]).push([[3464],{12573:function(t,e,s){var n,i;n=[e,s(37455),s(1086),s(78538)],void 0===(i=function(t,s,n,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(t,"__esModule",{value:!0}),e.default=void 0,s=a(s),n=a(n),i=a(i);var o=Ember.Component.extend(s.default,{classNames:"quiz__container--survey",passedQuizAttempts:[],isLastWorkbookInCourse:!1,selectingLinkedWorkbook:!1,isPrintable:!1,isEmailable:!1,pdfTarget:null,pdfName:null,hasRequired:function(){var t=this.get("quizAttempt.questions");return this.get("quiz.preventProgression")&&t&&t.some((function(t){return t.get("required")}))}.property("quiz.preventProgression","quizAttempt.questions.@each.required"),surveyLookup:function(){var t=this;this.get("quiz.instructorAssessment")||this.get("quiz.isGraded")||!this.get("quiz")||(this.get("passedQuizAttempts")?Ember.RSVP.Promise.resolve(this.get("passedQuizAttempts")).then((function(e){var s=function(t,e,s){return s&&t&&t.length?t.find((function(t){return t.topicId===e&&t.linkedWorkbook===s})):t.find((function(t){return t.topicId===e}))}(e,t.get("quiz.id"),t.get("linkedWorkbook")?t.get("linkedWorkbook.id"):null);return s?t.loadQuizAttempt(s.id):(t.send("setPrintEnabled",!1),t.send("showAndSetEmailButton",!1),t.send("startQuiz"))})):(this.send("startQuiz"),this.send("setPrintEnabled",!1),this.send("showAndSetEmailButton",!1)))}.on("didInsertElement").observes("passedQuizAttempts","passedQuizAttempts.[]"),onShowResults:function(){if(this.get("quiz.isWorkbook")){var t=this.get("showResults");this.send("setPrintEnabled",t),this.send("showAndSetEmailButton",t)}}.observes("showResults"),unsubscribe:function(){this.get("quiz.isWorkbook")&&(this.send("setPrintEnabled",!1),this.send("showAndSetEmailButton",!1))}.on("willDestroyElement"),loadQuizAttempt:function(t){var e=this;this.graphql.query({query:n.default,variables:{id:t},fetchPolicy:"network-only"}).then((function(t){var s=t.data.AssessmentAttemptById;return e.set("quizAttempt",(0,i.default)(s)),e.get("quiz.linked")&&e.get("selectingLinkedWorkbook")?(e.set("selectingLinkedWorkbook",!1),e.send("setPrintEnabled",!0),e.send("showAndSetEmailButton",!0),e.send("startQuiz",(0,i.default)(s))):e.set("showResults",!0)}))},maybeAllowTopicSkip:function(){["finished","pending"].includes(this.get("quizAttempt.status"))&&this.sendAction("allowTopicSkip")}.observes("quizAttempt.status"),actions:{selectChoice:function(t,e){e.set("selectedChoice",t)},resetLinkedWorkbook:function(){this.sendAction("resetLinkedWorkbook")},setPrintEnabled:function(t){this.set("isPrintable",t)},showAndSetEmailButton:function(t){this.setProperties({isEmailable:t,pdfTarget:"#email-content",pdfName:this.get("linkedWorkbook.label")})}}});e.default=o}.apply(e,n))||(t.exports=i)},1683:function(t,e){var s;void 0===(s=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e.default=void 0;var s=Ember.Component.extend({isVisible:Ember.computed.alias("showDisableButton"),actions:{disableTooltip:function(){this.set("showDisableButton",!1)}}});e.default=s}.apply(e,[e]))||(t.exports=s)},42316:function(t,e,s){"use strict";s.d(e,{Z:function(){return R}});var n=s(4562),i=s.n(n),a=s(29733),o=s(82852),r=s.n(o),u=s(38638),h=s(65434),p=s.n(h),l=s(53321),f=s(98906),c=s.n(f),b=s(85789),d=s(82436),m=s.n(d),T=s(61570),y=s(33318),I=s.n(y),g=s(75825),w=s(77320),v=s.n(w),x=s(11361),k=s(23617),z=s.n(k),C=s(65070),q=s(1683),E=s.n(q),A=Ember.Handlebars.template((function(t,e,s,n,i){this.compilerInfo=[4,">= 1.0.0"],i=i||{};var a,o,r=(s=this.merge(s,Ember.Handlebars.helpers)).helperMissing,u=this.escapeExpression;return i.buffer.push('
\n\n"),""})),D=s(31153),S=s.n(D),Q=s(68359),L=s(815),P=s.n(L),N=s(77963);window.TI=window.TI||{},window.TI.ComponentsTiQuizLoading=i(),Ember.TEMPLATES.TemplatesComponentsTiQuizLoading=a.Z,window.TI=window.TI||{},window.TI.ComponentsTiAssignment=r(),Ember.TEMPLATES.TemplatesComponentsTiAssignment=u.Z,window.TI=window.TI||{},window.TI.ComponentsTiEmailPdfButton=p(),Ember.TEMPLATES.TemplatesComponentsTiEmailPdfButton=l.Z,window.TI=window.TI||{},window.TI.ComponentsTiPrintButton=c(),Ember.TEMPLATES.TemplatesComponentsTiPrintButton=b.Z,window.TI=window.TI||{},window.TI.ComponentsTiSurveySummary=m(),Ember.TEMPLATES.TemplatesComponentsTiSurveySummary=T.Z,window.TI=window.TI||{},window.TI.ComponentsTiTimer=I(),Ember.TEMPLATES.TemplatesComponentsTiTimer=g.Z,window.TI=window.TI||{},window.TI.ComponentsTiQuizQuestion=v(),Ember.TEMPLATES.TemplatesComponentsTiQuizQuestion=x.Z,window.TI=window.TI||{},window.TI.ComponentsTiConfirmButton=z(),Ember.TEMPLATES.TemplatesComponentsTiConfirmButton=C.Z,window.TI=window.TI||{},window.TI.ComponentsTiWorkbookSurveyDisableButton=E(),Ember.TEMPLATES.TemplatesComponentsTiWorkbookSurveyDisableButton=A,window.TI=window.TI||{},window.TI.ComponentsTiQuizStart=S(),Ember.TEMPLATES.TemplatesComponentsTiQuizStart=Q.Z,window.TI=window.TI||{},window.TI.ComponentsTiLoader=P(),Ember.TEMPLATES.TemplatesComponentsTiLoader=N.default;var R=Ember.Handlebars.template((function(t,e,s,n,i){this.compilerInfo=[4,">= 1.0.0"],i=i||{};var a,o=(s=this.merge(s,Ember.Handlebars.helpers)).helperMissing,r=this.escapeExpression,u=this;function h(t,e){var n;return e.buffer.push("\n "),((n=s.if.call(t,"quizAttempt.assignmentSubmission",{hash:{},hashTypes:{},hashContexts:{},inverse:u.program(7,l,e),fn:u.program(5,p,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),""}function p(t,e){var n,i;return e.buffer.push("\n "),e.buffer.push(r((i={hash:{company:"company",assignment:"quiz",currentUser:"currentUser",quizAttempt:"quizAttempt",startQuiz:"startQuiz"},hashTypes:{company:"ID",assignment:"ID",currentUser:"ID",quizAttempt:"ID",startQuiz:"STRING"},hashContexts:{company:t,assignment:t,currentUser:t,quizAttempt:t,startQuiz:t},contexts:[],types:[],data:e},(n=s["ti-assignment"]||t&&t["ti-assignment"])?n.call(t,i):o.call(t,"ti-assignment",i)))),e.buffer.push("\n "),""}function l(t,e){var n,i,a;return e.buffer.push("\n "),((n=s.if.call(t,"quiz.isWorkbook",{hash:{},hashTypes:{},hashContexts:{},inverse:u.noop,fn:u.program(8,f,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),e.buffer.push(r((a={hash:{quizAttempt:"quizAttempt",takeAgain:"startQuiz",quiz:"quiz",setPrintEnabled:"setPrintEnabled",showAndSetEmailButton:"showAndSetEmailButton"},hashTypes:{quizAttempt:"ID",takeAgain:"STRING",quiz:"ID",setPrintEnabled:"STRING",showAndSetEmailButton:"STRING"},hashContexts:{quizAttempt:t,takeAgain:t,quiz:t,setPrintEnabled:t,showAndSetEmailButton:t},contexts:[],types:[],data:e},(i=s["ti-survey-summary"]||t&&t["ti-survey-summary"])?i.call(t,a):o.call(t,"ti-survey-summary",a)))),e.buffer.push("\n "),""}function f(t,e){var n;return e.buffer.push('\n '),((n=s._triageMustache.call(t,"quiz.title",{hash:{},hashTypes:{},hashContexts:{},contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push('
\n \n '),((n=s.if.call(t,"isEmailable",{hash:{},hashTypes:{},hashContexts:{},inverse:u.noop,fn:u.program(9,c,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),((n=s.if.call(t,"isPrintable",{hash:{},hashTypes:{},hashContexts:{},inverse:u.noop,fn:u.program(11,b,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n
\n "),""}function c(t,e){var n,i;return e.buffer.push('\n \n '),e.buffer.push(r((i={hash:{company:"company",currentUser:"currentUser",topicTitle:"course.title",target:"pdfTarget",pdfName:"pdfName",btnClass:"btn--bare-icon"},hashTypes:{company:"ID",currentUser:"ID",topicTitle:"ID",target:"ID",pdfName:"ID",btnClass:"STRING"},hashContexts:{company:t,currentUser:t,topicTitle:t,target:t,pdfName:t,btnClass:t},contexts:[],types:[],data:e},(n=s["ti-email-pdf-button"]||t&&t["ti-email-pdf-button"])?n.call(t,i):o.call(t,"ti-email-pdf-button",i)))),e.buffer.push("\n \n "),""}function b(t,e){var n,i;return e.buffer.push('\n \n '),e.buffer.push(r((i={hash:{class:"btn--link btn--no-margin btn--print-top btn--bare-icon"},hashTypes:{class:"STRING"},hashContexts:{class:t},contexts:[],types:[],data:e},(n=s["ti-print-button"]||t&&t["ti-print-button"])?n.call(t,i):o.call(t,"ti-print-button",i)))),e.buffer.push("\n \n "),""}function d(t,e){var n;return e.buffer.push("\n "),((n=s.if.call(t,"activeQuestion",{hash:{},hashTypes:{},hashContexts:{},inverse:u.program(36,D,e),fn:u.program(14,m,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),""}function m(t,e){var n,i,a;return e.buffer.push("\n "),((n=s.if.call(t,"quiz.isWorkbook",{hash:{},hashTypes:{},hashContexts:{},inverse:u.noop,fn:u.program(15,T,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),((n=s.if.call(t,"quiz.timerEnabled",{hash:{},hashTypes:{},hashContexts:{},inverse:u.noop,fn:u.program(21,w,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),i=s.eachIndexed||t&&t.eachIndexed,a={hash:{},hashTypes:{},hashContexts:{},inverse:u.noop,fn:u.program(23,v,e),contexts:[t,t,t],types:["ID","ID","ID"],data:e},((n=i?i.call(t,"question","in","quizAttempt.questions",a):o.call(t,"eachIndexed","question","in","quizAttempt.questions",a))||0===n)&&e.buffer.push(n),e.buffer.push("\n\n "),((n=s.if.call(t,"linkedWorkbook",{hash:{},hashTypes:{},hashContexts:{},inverse:u.noop,fn:u.program(26,k,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push('\n \n "),e.buffer.push(r((a={hash:{showDisableButton:"showDisableButton"},hashTypes:{showDisableButton:"ID"},hashContexts:{showDisableButton:t},contexts:[],types:[],data:e},(i=s["ti-workbook-survey-disable-button"]||t&&t["ti-workbook-survey-disable-button"])?i.call(t,a):o.call(t,"ti-workbook-survey-disable-button",a)))),e.buffer.push("\n "),""}function T(t,e){var n;return e.buffer.push('\n '),((n=s._triageMustache.call(t,"quiz.title",{hash:{},hashTypes:{},hashContexts:{},contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("
\n "),((n=s.if.call(t,"showControls",{hash:{},hashTypes:{},hashContexts:{},inverse:u.noop,fn:u.program(16,y,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),""}function y(t,e){var n;return e.buffer.push('\n \n '),((n=s.if.call(t,"isEmailable",{hash:{},hashTypes:{},hashContexts:{},inverse:u.noop,fn:u.program(17,I,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),((n=s.if.call(t,"isPrintable",{hash:{},hashTypes:{},hashContexts:{},inverse:u.noop,fn:u.program(19,g,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n
\n "),""}function I(t,e){var n,i;return e.buffer.push('\n \n '),e.buffer.push(r((i={hash:{company:"company",currentUser:"currentUser",topicTitle:"course.title",target:"pdfTarget",pdfName:"pdfName",btnClass:"btn--bare-icon"},hashTypes:{company:"ID",currentUser:"ID",topicTitle:"ID",target:"ID",pdfName:"ID",btnClass:"STRING"},hashContexts:{company:t,currentUser:t,topicTitle:t,target:t,pdfName:t,btnClass:t},contexts:[],types:[],data:e},(n=s["ti-email-pdf-button"]||t&&t["ti-email-pdf-button"])?n.call(t,i):o.call(t,"ti-email-pdf-button",i)))),e.buffer.push("\n \n "),""}function g(t,e){var n,i;return e.buffer.push('\n \n '),e.buffer.push(r((i={hash:{class:"btn--link btn--no-margin btn--print-top btn--bare-icon"},hashTypes:{class:"STRING"},hashContexts:{class:t},contexts:[],types:[],data:e},(n=s["ti-print-button"]||t&&t["ti-print-button"])?n.call(t,i):o.call(t,"ti-print-button",i)))),e.buffer.push("\n \n "),""}function w(t,e){var n,i;return e.buffer.push('\n \n '),e.buffer.push(r((i={hash:{timeElapsedInSeconds:"quizAttempt.timeElapsedInSeconds"},hashTypes:{timeElapsedInSeconds:"ID"},hashContexts:{timeElapsedInSeconds:t},contexts:[],types:[],data:e},(n=s["ti-timer"]||t&&t["ti-timer"])?n.call(t,i):o.call(t,"ti-timer",i)))),e.buffer.push("\n
\n "),""}function v(t,e){var n,i,a;return e.buffer.push('\n \n
\n '),((n=s.if.call(t,"question.required",{hash:{},hashTypes:{},hashContexts:{},inverse:u.noop,fn:u.program(24,x,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),e.buffer.push(r((a={hash:{retakingQuizAttempt:"retakingQuizAttempt",quiz:"quiz",quizAttempt:"quizAttempt",question:"question",selectChoice:"selectChoice",nextQuestion:"nextQuestion",isOptional:!0,showAllQuestions:!0,index:"index"},hashTypes:{retakingQuizAttempt:"ID",quiz:"ID",quizAttempt:"ID",question:"ID",selectChoice:"STRING",nextQuestion:"STRING",isOptional:"BOOLEAN",showAllQuestions:"BOOLEAN",index:"ID"},hashContexts:{retakingQuizAttempt:t,quiz:t,quizAttempt:t,question:t,selectChoice:t,nextQuestion:t,isOptional:t,showAllQuestions:t,index:t},contexts:[],types:[],data:e},(i=s["ti-quiz-question"]||t&&t["ti-quiz-question"])?i.call(t,a):o.call(t,"ti-quiz-question",a)))),e.buffer.push("\n
\n
\n "),""}function x(t,e){e.buffer.push('\n *
\n ')}function k(t,e){var n,i;return e.buffer.push("\n "),e.buffer.push(r((i={hash:{action:"resetLinkedWorkbook",btnClass:"btn--alert btn--left btn--alt btn--no-margin hide-for-print",label:"resetLabel",confirmLabel:"confirmResetLabel"},hashTypes:{action:"STRING",btnClass:"STRING",label:"ID",confirmLabel:"ID"},hashContexts:{action:t,btnClass:t,label:t,confirmLabel:t},contexts:[],types:[],data:e},(n=s["ti-confirm-button"]||t&&t["ti-confirm-button"])?n.call(t,i):o.call(t,"ti-confirm-button",i)))),e.buffer.push("\n "),""}function z(t,e){var n;return e.buffer.push("\n "),((n=s.if.call(t,"isLastWorkbookInCourse",{hash:{},hashTypes:{},hashContexts:{},inverse:u.program(31,q,e),fn:u.program(29,C,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),""}function C(t,e){var n,i;return e.buffer.push("\n "),e.buffer.push(r((i={hash:{},hashTypes:{},hashContexts:{},contexts:[t],types:["STRING"],data:e},(n=s.t||t&&t.t)?n.call(t,"workbook-complete-button",i):o.call(t,"t","workbook-complete-button",i)))),e.buffer.push("\n "),""}function q(t,e){var n,i;return e.buffer.push("\n "),e.buffer.push(r((i={hash:{},hashTypes:{},hashContexts:{},contexts:[t],types:["STRING"],data:e},(n=s.t||t&&t.t)?n.call(t,"linkedworkbook.continue",i):o.call(t,"t","linkedworkbook.continue",i)))),e.buffer.push("\n "),""}function E(t,e){var n;return e.buffer.push("\n "),((n=s.if.call(t,"quiz.isWorkbook",{hash:{},hashTypes:{},hashContexts:{},inverse:u.program(34,A,e),fn:u.program(29,C,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),""}function A(t,e){var n,i;return e.buffer.push("\n "),e.buffer.push(r((i={hash:{},hashTypes:{},hashContexts:{},contexts:[t],types:["STRING"],data:e},(n=s.t||t&&t.t)?n.call(t,"survey-complete-button",i):o.call(t,"t","survey-complete-button",i)))),e.buffer.push("\n "),""}function D(t,e){var n;return e.buffer.push("\n "),((n=s.if.call(t,"quiz.instructorAssessment",{hash:{},hashTypes:{},hashContexts:{},inverse:u.program(39,Q,e),fn:u.program(37,S,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),""}function S(t,e){var n,i;return e.buffer.push("\n "),e.buffer.push(r((i={hash:{course:"course",quiz:"quiz",currentUser:"currentUser",startQuizForUser:"startQuizForUser"},hashTypes:{course:"ID",quiz:"ID",currentUser:"ID",startQuizForUser:"STRING"},hashContexts:{course:t,quiz:t,currentUser:t,startQuizForUser:t},contexts:[],types:[],data:e},(n=s["ti-quiz-start"]||t&&t["ti-quiz-start"])?n.call(t,i):o.call(t,"ti-quiz-start",i)))),e.buffer.push("\n "),""}function Q(t,e){var n;return e.buffer.push("\n "),((n=s._triageMustache.call(t,"ti-loader",{hash:{},hashTypes:{},hashContexts:{},contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n "),""}return((a=s.if.call(e,"isLoading",{hash:{},hashTypes:{},hashContexts:{},inverse:u.program(3,(function(t,e){var n;return e.buffer.push("\n "),((n=s.if.call(t,"showResults",{hash:{},hashTypes:{},hashContexts:{},inverse:u.program(13,d,e),fn:u.program(4,h,e),contexts:[t],types:["ID"],data:e}))||0===n)&&e.buffer.push(n),e.buffer.push("\n"),""}),i),fn:u.program(1,(function(t,e){var n,i;return e.buffer.push("\n "),e.buffer.push(r((i={hash:{startingQuiz:"startingQuiz",finishingQuiz:"finishingQuiz",findingRecentlyFinishedAttempt:"findingRecentlyFinishedAttempt",typeLabel:"quiz.typeLabel",tryAgain:"nextQuestion"},hashTypes:{startingQuiz:"ID",finishingQuiz:"ID",findingRecentlyFinishedAttempt:"ID",typeLabel:"ID",tryAgain:"STRING"},hashContexts:{startingQuiz:t,finishingQuiz:t,findingRecentlyFinishedAttempt:t,typeLabel:t,tryAgain:t},contexts:[],types:[],data:e},(n=s["ti-quiz-loading"]||t&&t["ti-quiz-loading"])?n.call(t,i):o.call(t,"ti-quiz-loading",i)))),e.buffer.push("\n"),""}),i),contexts:[e],types:["ID"],data:i}))||0===a)&&i.buffer.push(a),i.buffer.push("\n"),""}))}}]);