PageSourceSearch

https://my.ine.com/js/8160.8c80a3c702afe606.js

js ine.com collected 2026-10-01 10:45:16 UTC 7,918 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkmy_ine_com"]=self["webpackChunkmy_ine_com"]||[]).push([[8160],{48160:function(e,t,i){i.r(t),i.d(t,{default:function(){return E}});var a=i(95976),s=i(10160);const r={class:"exam-preview"},n={class:"sr-only"},o={key:0,class:"exam-preview__modal-mobile-wrapper"},c={key:1,class:"exam-preview__modal-wrapper"},l={key:0,class:"exam-preview__loader-wrapper"};function u(e,t,i,u,d,m){const _=(0,a.g2)("ActionLoader"),p=(0,a.g2)("ExamInstructions"),h=(0,a.g2)("ExamModal");return(0,a.uX)(),(0,a.CE)("div",r,[(0,a.Lk)("h1",n,(0,s.v_)(m.previewTitle||"Exam Preview"),1),m.isMobile?((0,a.uX)(),(0,a.CE)("div",o,[t[1]||(t[1]=(0,a.Lk)("h4",{class:"exam-preview__modal-mobile-title"},"We’re sorry!",-1)),t[2]||(t[2]=(0,a.Lk)("div",{class:"exam-preview__modal-mobile-content"}," Currently, INE Certification Exams can't be executed on mobile devices. Please try again on a computer. ",-1)),(0,a.Lk)("button",{class:"btn btn--primary exam-preview__modal-mobile-button",onClick:t[0]||(t[0]=e=>m.closeModal())}," Go back ")])):((0,a.uX)(),(0,a.CE)("div",c,[d.isLoading?((0,a.uX)(),(0,a.CE)("div",l,[(0,a.bF)(_)])):m.shouldShowInstructions?((0,a.uX)(),(0,a.Wv)(p,{key:1,title:m.previewTitle,"question-count":(d.previewExam.questions||[]).length,"time-cap-in-secs":d.previewExam.time_cap_in_secs||0,"instructions-html":d.previewExam.instructions_html,"logo-image-url":m.previewLogoImageUrl,"is-loading":d.isStartingExam,onClose:m.closeModal,onStart:m.startPreviewExam},null,8,["title","question-count","time-cap-in-secs","instructions-html","logo-image-url","is-loading","onClose","onStart"])):d.attempt&&d.certification?((0,a.uX)(),(0,a.Wv)(h,(0,a.v6)({key:2},{certification:d.certification,attempt:d.attempt,title:m.previewTitle,context:m.context,voucherId:d.previewVoucherId,examLayoutV2:!0,isICCA:!1,isPreview:!0},{onCloseModal:m.closeModal,onExamError:m.closeModal,onUpdatePreviewQuestion:m.updatePreviewQuestion,onPreviewScored:m.applyPreviewResult}),null,16,["onCloseModal","onExamError","onUpdatePreviewQuestion","onPreviewScored"])):(0,a.Q3)("",!0)]))])}var d=i(51449),m=i(52059),_=i(55584),p=i(5320),h=i(99340),w=i(58482);const v=i(71152);var b={name:"ExamPreview",metaInfo(){return{title:this.previewTitle||"Exam Preview"}},components:{ActionLoader:m.A,ExamModal:_.A,ExamInstructions:p.A},data(){return{isLoading:!0,previewExam:null,attempt:null,certification:null,previewVoucherId:"preview",isStartingExam:!1}},computed:{...(0,d.aH)({currentLab:e=>e.labs.currentLab,currentLabSession:e=>e.labs.currentLabSession}),isMobile(){return window.innerWidth<=768},previewTitle(){if(!this.previewExam)return"";const e=this.previewExam.certification_name;return`(Preview) ${e}`},context(){return h.A.PARENT_CONTENT_TYPES_KEYS.CERTIFICATION},isLabRunning(){var e;return(null===(e=this.currentLabSession)||void 0===e?void 0:e.status)===h.A.LABS.SESSION_STATUS.STARTED},shouldShowInstructions(){var e,t;return!this.attempt&&!(null===(e=this.previewExam)||void 0===e||null===(t=e.instructions_html)||void 0===t||!t.trim())},previewLogoImageUrl(){var e,t;return null!==(e=this.previewExam)&&void 0!==e&&e.logo_image_url?this.previewExam.logo_image_url:null!==(t=this.previewExam)&&void 0!==t&&t.certification_short_name?`https://assets.ine.com/certifications/badges/${this.previewExam.certification_short_name}.png`:""}},async created(){this.isMobile?this.isLoading=!1:await this.loadPreviewExam()},beforeUnmount(){this.resetPreviewState()},methods:{...(0,d.i0)({clearCurrentCertification:"certifications/clearCurrentCertification",loadExamPreview:"certifications/loadExamPreview",updateCurrentCertification:"certifications/updateCurrentCertification",getLabById:"labs/getLabById",partialUpdateLabSession:"labs/partialUpdateLabSession"}),renderMarkdown(e){return v(e||"")},normalizeQuestionType(e){const t={input:"text",radio:"radio",checkbox:"checkbox"};return t[e.widget]||e.type},buildCertification(e){var t;const i=h.A.CERTIFICATIONS.IDS[e.certification_short_name]||h.A.CERTIFICATIONS.IDS[null===(t=e.certification_short_name)||void 0===t?void 0:t.slice(1)]||"";return{id:i,exam_id:e.exam_id,short_name:e.short_name,name:this.previewTitle,latest_version:e.minor_version,logo_image_url:e.logo_image_url||"",exam_inner_instructions_html:e.exam_inner_instructions_html||"",lab_inner_instructions_html:e.lab_inner_instructions_html||"",is_beta:!1,user_status:{active_vouchers:[]}}},buildAttempt(e,t){var i;const a=new Date,s=new Date(a.getTime()+1e3*(e.time_cap_in_secs||0)),r=(e.questions||[]).map(e=>{const t=e.answers?e.answers.map(e=>({uuid:e.uuid,answer_id:e.uuid,answer_md:e.answer_md,answer_html:this.renderMarkdown(e.answer_md),is_correct:e.is_correct,is_selected:!1})):null;return{uuid:e.uuid,question_id:e.uuid,type:this.normalizeQuestionType(e),widget:e.widget,category:e.category,domain:e.domain,question_md:e.question_md,question_html:this.renderMarkdown(e.question_md),answered_at:e.answered_at,feedback:e.feedback,correct_answer:e.correct_answer,passed:e.passed,answers:t,is_flagged:!1,answered:!1,user_answer:"",is_dynamic:e.is_dynamic||!1,is_lab_related:e.is_lab_related||!1}});return(0,w.dQ)({id:`preview-${e.exam_id}`,exam_id:e.exam_id,certification:t,min_global_score_to_pass:e.min_global_score_to_pass||0,time_cap_in_secs:e.time_cap_in_secs,expiration_date:s.toISOString(),created:a.toISOString(),status:h.A.CERTIFICATIONS.ATTEMPT_STATUS.IN_PROGRESS,questions:r,score:0,score_per_domain:{},score_per_objective:{},has_passed_questions:!1,has_passed:!1,practice_lab:e.practice_lab_id||null,questions_lab:e.questions_lab_id||null,question_grouping:(null===(i=e.config)||void 0===i?void 0:i.question_grouping)||e.question_grouping})},async loadPreviewLab(e){const t=e.practice_lab_id||e.questions_lab_id;t&&await this.getLabById({id:t})},async loadPreviewExam(){this.isLoading=!0;const{id:e}=this.$route.params,t=!0===this.$route.query.full||"true"===this.$route.query.full;try{var i;const a=await this.loadExamPreview({examId:e,full:t});this.previewExam=a,this.certification=this.buildCertification(a),this.updateCurrentCertification(this.certification),null!==(i=a.instructions_html)&&void 0!==i&&i.trim()||await this.startPreviewExam()}catch(a){await this.resetPreviewState(),this.$router.push({name:"home"})}finally{this.isLoading=!1}}
1,async startPreviewExam(){if(!this.previewExam||this.isStartingExam||this.attempt)return;this.isStartingExam=!0;const e=this.buildAttempt(this.previewExam,this.certification);try{await this.loadPreviewLab(this.previewExam),this.attempt=e}catch(t){await this.resetPreviewState(),this.$router.push({name:"home"})}finally{this.isStartingExam=!1}},updatePreviewQuestion({uuid:e,answered:t,answered_at:i,selectedAnswerIds:a,textAnswer:s}){const r=this.attempt.questions.find(t=>t.uuid===e);r&&(r.answered=t,r.answered_at=t?i:void 0,"text"!==r.type?void 0!==a&&(r.user_answer=a.length?a.join(","):""):r.user_answer=null!==s&&void 0!==s?s:"")},applyPreviewResult(e){e&&(this.attempt.score=e.score,this.attempt.score_per_domain=e.score_per_domain||{},this.attempt.score_per_objective=e.score_per_objective||{},this.attempt.has_passed_questions=e.has_passed_questions,this.attempt.has_passed=e.has_passed,this.attempt.finished_at=(new Date).toISOString(),this.stopLabIfRunning().catch(()=>{}))},async stopLabIfRunning(){var e,t;this.isLabRunning&&null!==(e=this.currentLab)&&void 0!==e&&e.id&&null!==(t=this.currentLabSession)&&void 0!==t&&t.id&&await this.partialUpdateLabSession({labId:this.currentLab.id,sessionId:this.currentLabSession.id,status:h.A.LABS.SESSION_STATUS.TERMINATED})},async closeModal(){await this.stopLabIfRunning().catch(()=>{}),await this.resetPreviewState(),this.$router.push({name:"home"})},async resetPreviewState(){this.previewExam=null,this.attempt=null,this.certification=null,this.isStartingExam=!1,await this.clearCurrentCertification()}}},x=i(1169);const g=(0,x.A)(b,[["render",u],["__scopeId","data-v-aad615c0"]]);var E=g}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.