1"use strict";(self.webpackChunkflalottery_web=self.webpackChunkflalottery_web||[]).push([[3546],{7150:function(e,t){t.A=class{constructor(e,t,n,a="",o=""){this.title=e,this.options=t,this.answer=n,this.responseCorrect=a,this.responseIncorrect=o}get answerTitle(){return this.options[this.answer]}isCorrect(e){return e===this.answer}response(e){return this.isCorrect(e)?this.responseCorrect:this.responseIncorrect}}},638:function(e,t,n){n.d(t,{A:function(){return o}});var a=n(1425);function o(e){const t=(0,a.ref)(0),n=(0,a.ref)([]),o=(0,a.ref)(!1),r=(0,a.computed)(()=>((t.value+1)/e.length).toFixed(2)),s=(0,a.computed)(()=>e[t.value]),l=()=>{t.value=0,n.value=[],o.value=!1},i=(t,n)=>t===e[n].answer,c=(0,a.computed)(()=>{if(0===e.length)return 0;const t=n.value.reduce((e,t,n)=>e+i(t,n),0);return Math.floor(t/e.length*100)});return{currentQuestion:(0,a.computed)(()=>t.value),responses:(0,a.computed)(()=>n.value),isFinished:(0,a.computed)(()=>o.value),restart:l,progress:r,question:s,nextQuestion:()=>{void 0!==e[t.value+1]?t.value+=1:o.value=!0},prevQuestion:()=>{t.value-1>=0?t.value-=1:l()},answerQuestion:e=>{const a=[...n.value];return a[t.value]=e,n.value=a,i(e,t.value)},percentCorrect:c}}},3546:function(e,t,n){n.r(t),n.d(t,{default:function(){return de}});var a=n(1425),o=n(7841),r=n(9951),s=n(5637),l=n(8043),i=n(7150),c={en:[new i.A("Special strategies will help you win more in certain games.",["True","False"],1,"Correct! There is no way to influence the outcome of a game. Winning tickets and winning numbers are completely random. There is no guarantee of a return on any ticket.","There is no way to influence the outcome of a game. Winning tickets and winning numbers are completely random. There is no guarantee of a return on any ticket."),new i.A("If you buy four non-winning tickets in a row, the next ticket is guaranteed to be a winner.",["True","False"],1,"Correct! The odds of winning do not guarantee any specific outcome. The odds do n
1ot change regardless of how many tickets you purchase. Rather, the odds serve as a reference to understand the approximate chance of winning.","The odds of winning do not guarantee any specific outcome. The odds do not change regardless of how many tickets you purchase. Rather, the odds serve as a reference to understand the approximate chance of winning."),new i.A("Playing the same numbers every time does not increase your chances of winning.",["True","False"],0,"Correct! Each draw is completely random, and your chances of winning are always constant. If you play the same numbers each game, they have the same chance of hitting or missing every time you play.","Each draw is completely random, and your chances of winning are always constant. If you play the same numbers each game, they have the same chance of hitting or missing every time you play."),new i.A("If there is a smaller jackpot, you have better odds of winning.",["True","False"],1,"Correct! The size of the jackpot and the number of players has no effect on the odds for most games, with the exception of raffle-style games.","The size of the jackpot and the number of players has no effect on the odds for most games, with the exception of raffle-style games."),new i.A("You donât have to gamble all the time to have a gambling problem. ",["True","False"],0,"Correct! Problem gambling is any time you play beyond your means or when it becomes more than a hobby. Remember to always plan to play for fun, within your means.","Problem gambling is any time you play beyond your means or when it becomes more than a hobby. Remember to always plan to play for fun, within your means.")],es:[new i.A("Estrategias especiales te ayudarán a ganar más en ciertos juegos.",["Verdadero","Falso"],1,"¡Correcto! No hay manera de influenciar el resultado de un juego. Los billetes ganadores y los números ganadores son completamente aleatorios. No hay garantÃa de ganancia en ningún billete.","No hay manera de influenciar el resultado de un juego. Los billetes ganadores y los números ganadores son completamente aleatorios. No hay garantÃa de ganancia en ningún billete."),new i.A("Si compras cuatro billetes no ganadores de manera consecutiva, el siguiente billete es garantizado a ser ganador.",["Verdadero","Falso"],1,"¡Correcto! Las probabilidades de ganar no garantizan ningún resultado en especifico. Las probabilidades no cambian, independientemente de cuantos billetes compres. Más bien, las probabilidades sirven como referencia para entender las oportunidades aproximadas de ganar.","Las probabilidades de ganar no garantizan ningún resultado en especifico. Las probabilidades no cambian, independientemente de cuantos billetes compres. Más bien, las probabilidades sirven como referencia para entender las oportunidades aproximadas de ganar."),new i.A("Jugar los mismos números siempre no incrementa tu posibilidad de ganar.",["Verdadero","Falso"],0,"¡Correcto! Cada sorteo es completamente aleatorio, y tus oportunidades de ganar son siempre constantes. Si juegas los mismos números cada juego, tienen la misma posibilidad de ganar o perder cada vez que juegues.","Cada sorteo es completamente aleatorio, y tus oportunidades de ganar son siempre constantes. Si juegas los mismos números cada juego, tienen la misma posibilidad de ganar o perder cada vez que juegues."),new i.A("Si hay un Premio Mayor pequeño, tienes mayores probabilidades de ganar.",["Verdadero","Falso"],1,"¡Correcto! El tamaño del Premio Mayor y el número de jugadores no afectan las probabilidades para la mayorÃa de los juegos, con excepción de los juegos de estilo rifa.","El tamaño del Premio Mayor y el número de jugadores no afectan las probabilidades para la mayorÃa de los juegos, con excepción de los juegos de estilo rifa."),new i.A("No tienes que apostar todo el tiempo para tener un problema de apuestas.",["Verdadero","Falso"],0,"¡Correcto! Se considera como problema de apuestas al momento que juegas más allá de tus posibilidades o cuando se convierte en algo más que un pasatiempo. Recuerda, siempre planea jugar por diversión y dentro de tus posibilidades.","Se considera como problema de apuestas al momento que juegas más allá de tus posibilidades o cuando se convierte en algo más que un pasatiempo. Recuerda, siempre planea jugar por diversión y dentro de tus posibilidades.")]};const u={class:"flex flex-col items-center justify-center quiz__inner quiz__inner--title"},d=["innerHTML"],m=["innerHTML"],p={class:"w-full text-center animated fade-in-up delay-250"};var f={__name:"TheTitle",emits:["start"],setup(e){return(e,t)=>{const n=(0,a.resolveDirective)("t");return(0,a.openBlock)(),(0,a.createElementBlock)("div",u,[(0,a.createElementVNode)("p",{class:"mb-2 text-3xl font-bold leading-none text-black uppercase font-condensed xs:text-4xl animated fade-in fast",innerHTML:e.$t("quiz.lotteryKnowledge.title"),"aria-hidden":"true"},null,8,d),(0,a.createElementVNode)("p",{class:"mb-6 text-sm text-green-500 uppercase xs:text-base animated fade-in-up",innerHTML:e.$t("quiz.lotteryKnowledge.subtitle")},null,8,m),(0,a.createElementVNode)("div",p,[(0,a.withDirectives)((0,a.createElementVNode)("button",{class:"w-full py-3 font-bold text-white bg-pink-500 rounded focus-pink xs:px-20 xs:w-auto grower",type:"button",onClick:t[0]||(t[0]=(0,a.withModifiers)(t=>e.$emit("start"),["prevent"]))},null,512),[[n,"quiz.lotteryKnowledge.start"]])])])}}},g=n(638);const y=["aria-labelledby"],b={class:"sr-only"},h={class:"w-full h-3 overflow-hidden rounded-full bg-beige-100"},v={class:"pb-1 ml-4 text-lg text-black whitespace-nowrap","aria-hidden":"true"},w={class:"flex flex-col items-center justify-center my-2 leading-tight quiz__question"},x={class:"block text-xs text-green-500 uppercase xs:text-sm animated fade-in font-condensed"},k=["innerHTML"],N={class:"flex flex-1"},V={key:0,class:"flex flex-col items-center justify-center flex-1 w-full max-w-xl mx-auto my-2 xs:flex-row quiz__in-out"},q=["id","name","value"],E=["for"],z=["innerHTML"],_={key:1,class:"flex flex-col items-center justify-center flex-1 w-full mx-auto my-2 quiz__in-out",role:"alert"},T={class:"text-2xl font-bold leading-none xs:text-3xl"},C=["innerHTML"],j={class:"flex flex-row-reverse justify-between mt-4 -mx-4 md:mt-6",role:"group","aria-label":"Pagination"},B={class:"w-1/2 px-4 text-left"},M=["disabled"],$={class:"w-1/2 px-4 text-right"},S=["disabled"],L={class:"absolute bottom-0 left-0"};var A={__name:"TheQuiz",props:{id:String,questions:Array},emits:["restart","finish"],setup(e,{emit:t}){const n="input",o="output",s=e,l=t,{questions:i}=(0,a.toRefs)(s),{currentQuestion:c,isFinished:u,restart:d,progress:m,question:p,nextQuestion:f,prevQuestion:A,answerQuestion:D,percentCorrect:F}=(0,g.A)(i.value),H=(0,a.ref)(null),K=(0,a.ref)(null),R=(0,a.ref)(n),P=(0,a.ref)(null),I=()=>{H.value=null,K.value=null,R.value=n,(0,a.nextTick)(()=>(0,r.A)(P.value))},O=()=>{d(),I()},Q=e=>{const t=`0${e}`;return t.substring(t.length-2)};return(0,a.onMounted)(O),(0,a.watch)(i,O),(0,a.watch)(c,I),(0,a.watch)(u,()=>{u.value&&l("finish",{results:F.value})}),(t,r)=>{const s=(0,a.resolveComponent)("font-awesome-icon"),l=(0,a.resolveComponent)("font-awesome-layers");return(0,a.openBlock)(),(0,a.createElementBlock)("form",{class:"flex flex-col quiz__inner quiz__inner--quiz","aria-labelledby":`${e.id}-title`,onSubmit:r[4]||(r[4]=(0,a.withModifiers)(()=>{},["prevent"]))},[(0,a.createElementVNode)("h3",{ref_key:"theProgressBar",ref:P,class:"flex items-center mb-2 outline-none md:mb-4 animated fade-in fast"},[(0,a.createElementVNode)("span",b,(0,a.toDisplayString)(t.$t("quiz.questionNofN",[(0,a.unref)(c)+1,(0,a.unref)(i).length])),1),(0,a.createElementVNode)("div",h,[(0,a.createElementVNode)("div",{class:"h-3 bg-green-500 quiz__progress-bar",style:(0,a.normalizeStyle)(`-webkit-transform: scaleX(${(0,a.unref)(m)}); -ms-transform: scaleX(${(0,a.unref)(m)}); transform: scaleX(${(0,a.unref)(m)})`)},null,4)]),(0,a.createElementVNode)("div",v,[(0,a.createElementVNode)("strong",null,(0,a.toDisplayString)(Q((0,a.unref)(c)+1)),1),(0,a.createTextVNode)(" / "+(0,a.toDisplayString)(Q((0,a.unref)(i).length)),1)])],512),(0,a.createElementVNode)("p",w,[(0,a.createElementVNode)("small",x,(0,a.toDisplayString)(t.$t("quiz.lotteryKnowledge.trueOrFalse"))+": ",1),(0,a.createElementVNode)("span",{class:"block font-bold mt-1 text-xl text-black xs:text-2xl animated fade-in fast",innerHTML:(0,a.unref)(p).title},null,8,k)]),(0,a.createVNode)(a.Transition,{name:"fade",mode:"out-in"},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",N,[R.value===n?((0,a.openBlock)(),(0,a.createElementBlock)("div",V,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)((0,a.unref)(p).options,
1(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t,class:(0,a.normalizeClass)("px-2 quiz__answer-btn animated fade-in-up faster delay-"+250*n)},[(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":r[0]||(r[0]=e=>H.value=e),id:`${e.id}-option-${n}`,name:`${e.id}-option`,type:"radio",value:n},null,8,q),[[a.vModelRadio,H.value]]),(0,a.createElementVNode)("label",{for:`${e.id}-option-${n}`},[(0,a.createVNode)(l,{class:"fa-fw"},{default:(0,a.withCtx)(()=>[(0,a.createVNode)(s,{icon:["far","circle"],transform:"grow-6",class:"text-beige-300"}),(0,a.createVNode)(s,{icon:["fas","circle"],transform:"grow-6",class:"text-pink-700 circle-bg"}),(0,a.createVNode)(s,{icon:["fas","check"],transform:"shrink-4",class:"text-white"})]),_:1}),(0,a.createElementVNode)("span",{innerHTML:t},null,8,z)],8,E)],2))),128))])):(0,a.createCommentVNode)("",!0),R.value===o?((0,a.openBlock)(),(0,a.createElementBlock)("div",_,[(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(["w-full max-w-xl px-4 xs:px-6 py-6 xs:py-8 rounded-lg animated zoom-in faster",K.value?"bg-green-50 text-green-800":"bg-error-light text-error-dark"])},[(0,a.createElementVNode)("p",T,[(0,a.createVNode)(s,{icon:["fas",K.value?"check-circle":"times-circle"],class:"mr-1"},null,8,["icon"]),(0,a.createTextVNode)(" "+(0,a.toDisplayString)((0,a.unref)(p).answerTitle),1)]),(0,a.createElementVNode)("p",{class:"mt-2 text-sm leading-tight xs:text-base",innerHTML:K.value?(0,a.unref)(p).responseCorrect:(0,a.unref)(p).responseIncorrect},null,8,C)],2)])):(0,a.createCommentVNode)("",!0)])]),_:1}),(0,a.createElementVNode)("div",j,[(0,a.createElementVNode)("div",B,[(0,a.createElementVNode)("button",{class:"quiz__nav-btn quiz__nav-btn--next grower focus-pink",type:"button",disabled:null===H.value,onClick:r[1]||(r[1]=(0,a.withModifiers)(e=>R.value===n?(K.value=D(H.value),void(R.value=o)):(0,a.unref)(f)(),["prevent"]))},[(0,a.createTextVNode)((0,a.toDisplayString)(t.$t("quiz.lotteryKnowledge.next"))+" ",1),(0,a.createVNode)(s,{icon:["fas","chevron-right"]})],8,M)]),(0,a.createElementVNode)("div",$,[(0,a.createElementVNode)("button",{class:"quiz__nav-btn quiz__nav-btn--prev grower focus-pink",type:"button",disabled:0===(0,a.unref)(c)&&R.value===n,onClick:r[2]||(r[2]=(0,a.withModifiers)(e=>R.value===n?(0,a.unref)(A)():I(),["prevent"]))},[(0,a.createVNode)(s,{icon:["fas","chevron-left"]}),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(t.$t("quiz.lotteryKnowledge.previous")),1)],8,S)])]),(0,a.createElementVNode)("div",L,[(0,a.createElementVNode)("button",{class:"text-xs text-gray-600 rounded hover:text-gray-800 focus:text-gray-800 focus-pink",type:"button",onClick:r[3]||(r[3]=(0,a.withModifiers)(e=>t.$emit("restart"),["prevent"]))},[(0,a.createVNode)(s,{icon:["fas","redo-alt"],class:"mr-1 opacity-75"}),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(t.$t("quiz.lotteryKnowledge.restart")),1)])])],40,y)}}};var D=A,F=n(9550);const H={class:"flex flex-col quiz__inner quiz__inner--results"},K={class:"sr-only"},R={class:"pb-1 ml-4 text-lg text-black whitespace-nowrap","aria-hidden":"true"},P={class:"flex flex-col justify-center flex-1 text-2xl leading-none animated fade-in fast"},I={class:"block -mt-3 font-bold leading-none font-condensed text-9xl"},O={class:"block text-5xl font-bold uppercase font-condensed"},Q={class:"text-center animated fade-in-up"};var X={__name:"TheResults",props:{id:String,questions:Array,percentCorrect:Number},emits:["restart"],setup(e){const t=e,{percentCorrect:n}=(0,a.toRefs)(t),{t:o}=(0,F.useI18n)(),s=(0,a.computed)(()=>o("quiz.lotteryKnowledge.resultTop"+(n.value<70?"Bad":"Good"))),l=(0,a.ref)(null),i=e=>{const t=`0${e}`;return t.substring(t.length-2)};return(0,a.onMounted)(()=>(0,r.A)(l.value)),(t,o)=>{const r=(0,a.resolveDirective)("t");return(0,a.openBlock)(),(0,a.createElementBlock)("div",H,[(0,a.createElementVNode)("h3",{ref_key:"theProgressBar",ref:l,class:"flex items-center mb-4 outline-none"},[(0,a.withDirectives)((0,a.createElementVNode)("span",K,null,512),[[r,"quiz.lotteryKnowledge.quizComplete"]]),o[1]||(o[1]=(0,a.createElementVNode)("div",{class:"w-full h-3 overflow-hidden rounded-full bg-beige-100"},[(0,a.createElementVNode)("div",{class:"w-full h-3 bg-green-500"})],-1)),(0,a.createElementVNode)("div",R,[(0,a.createElementVNode)("strong",null,(0,a.toDisplayString)(i(e.questions.length)),1),(0,a.createTextVNode)(" / "+(0,a.toDisplayString)(i(e.questions.length)),1)])],512),(0,a.createElementVNode)("div",P,[(0,a.createTextVNode)((0,a.toDisplayString)(s.value)+" ",1),(0,a.createElementVNode)("span",I,(0,a.toDisplayString)((0,a.unref)(n))+"% ",1),(0,a.withDirectives)((0,a.createElementVNode)("span",O,null,512),[[r,"quiz.lotteryKnowledge.resultBottom"]])]),(0,a.createElementVNode)("div",Q,[(0,a.withDirectives)((0,a.createElementVNode)("button",{class:"w-full py-3 font-bold text-white bg-pink-500 rounded focus-pink xs:px-20 xs:w-auto grower",type:"button",onClick:o[0]||(o[0]=(0,a.withModifiers)(e=>t.$emit("restart"),["prevent"]))},null,512),[[r,"quiz.lotteryKnowledge.takeAgain"]])])])}}},W=n(8549);const G={class:"quiz__fallback"},J={class:"prose prose-sm text-left md:prose"},U={style:{"margin-top":"-1rem"}},Y={class:"font-bold text-black"},Z=["innerHTML"],ee={class:"mt-1"},te=["innerHTML"];var ne={__name:"TheFallback",props:{id:String,questions:Array},setup(e){return(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)("div",G,[(0,a.createVNode)(W.A,{id:`${e.id}-popup`,"button-title":t.$t("quiz.lotteryKnowledge.summary"),"button-icon":"fas fa-file-alt","popup-title":t.$t("quiz.lotteryKnowledge.title").replace(/<br>/," ")},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",J,[(0,a.createElementVNode)("ol",U,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.questions,e=>((0,a.openBlock)(),(0,a.createElementBlock)("li",{key:e.title},[(0,a.createElementVNode)("div",Y,[(0,a.createTextVNode)((0,a.toDisplayString)(t.$t("quiz.lotteryKnowledge.trueOrFalse"))+": ",1),(0,a.createElementVNode)("span",{innerHTML:e.title},null,8,Z)]),(0,a.createElementVNode)("div",ee,[(0,a.createTextVNode)((0,a.toDisplayString)(t.$t("quiz.lotteryKnowledge."+(0===e.answer?"true":"false")))+". ",1),(0,a.createElementVNode)("span",{innerHTML:e.responseCorrect.slice(e.responseCorrect.indexOf(" "))},null,8,te)])]))),128))])])]),_:1},8,["id","button-title","popup-title"])]))}},ae=Object.defineProperty,oe=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,le=(e,t,n
1)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const ie=["id","aria-labelledby"],ce=["id","innerHTML"],ue={name:"quiz-lottery-knowledge"};var de=Object.assign(ue,{props:((e,t)=>{for(var n in t||(t={}))re.call(t,n)&&le(e,n,t[n]);if(oe)for(var n of oe(t))se.call(t,n)&&le(e,n,t[n]);return e})({},s.Ay),setup(e){const t="title",n="quiz",s="results",i=(0,l.A)(),u=(0,a.ref)(t),d=(0,a.ref)(0),m=(0,a.ref)(null),p=()=>{u.value=n,o.I4.push({event:"quiz_start",quiz_id:"myth_vs_fact"})},g=()=>{u.value=t,(0,r.A)(m.value)},y=({results:e})=>{d.value=e,u.value=s,o.I4.push({event:"quiz_end",quiz_id:"myth_vs_fact",quiz_results:e})};return(e,o)=>((0,a.openBlock)(),(0,a.createElementBlock)("section",{ref_key:"componentRef",ref:m,id:e.id,"aria-labelledby":`${e.id}-title`},[(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(`quiz quiz--lottery-knowledge quiz--${(0,a.unref)(i)}`)},[(0,a.createElementVNode)("h2",{id:`${e.id}-title`,class:"sr-only",innerHTML:e.$t("quiz.lotteryKnowledge.title")},null,8,ce),u.value===t?((0,a.openBlock)(),(0,a.createBlock)(f,{key:0,onStart:p})):(0,a.createCommentVNode)("",!0),u.value===n?((0,a.openBlock)(),(0,a.createBlock)(D,{key:1,id:e.id,questions:(0,a.unref)(c)[(0,a.unref)(i)],onRestart:g,onFinish:y},null,8,["id","questions"])):(0,a.createCommentVNode)("",!0),u.value===s?((0,a.openBlock)(),(0,a.createBlock)(X,{key:2,id:e.id,questions:(0,a.unref)(c)[(0,a.unref)(i)],"percent-correct":d.value,onRestart:g},null,8,["id","questions","percent-correct"])):(0,a.createCommentVNode)("",!0)],2),(0,a.createVNode)(ne,{id:e.id,questions:(0,a.unref)(c)[(0,a.unref)(i)]},null,8,["id","questions"])],8,ie))}})}}]);
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.