import{r as s,h as t,H as i}from"./p-ee1e0eb4.js";const e=class{constructor(t){s(this,t),this.showInstantResult=!1,this.submitted=!1,this.answers={}}pageDidLoadHandler(s){s&&(this.pageInfo=s.detail.pageInfo,console.log("pageInfo",this.pageInfo))}updateQuizAnswerModelHandler(s){s.detail.question&&(this.answers[s.detail.question.questionId]={question:s.detail.question,answer:s.detail.answer}),console.log(this.answers)}submitQuiz(){this.submitted=!0,console.log({pageInfo:this.pageInfo,quiz:this.answers})}render(){return t(i,null,this.questionIds&&this.questionIds.split(",").map((s=>t("sparkle-quiz",{questionId:+s,submitted:this.submitted,showInstantResult:this.showInstantResult}))),t("ion-button",{slot:"end",onClick:()=>this.submitQuiz()},"Submit"))}};e.style=":host{display:block}";export{e as sparkle_quiz_container}