<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(this.webpackJsonp=this.webpackJsonp||[]).push([[139],{609:function(e,t,s){},610:function(e,t,s){},617:function(e,t,s){},655:function(e,t,s){"use strict";s.r(t);var i=s(2),c=s(8),l=s(10),o=s.n(l),n=s(13),r=s(1);const a=({item:e,className:t,primaryColor:s})=&gt;{var i,c;if(e)return Object(r.jsxs)("div",{className:`${t}-brief-news__container`,style:{borderLeft:`12px solid ${s}`},children:[Object(r.jsx)(n.Typography,{fontSize:"sm",fontWeight:"semibold",as:"div",children:Object(r.jsx)("h3",{className:`${t}-brief-news__title`,style:{color:s},children:null===(i=e.config)||void 0===i?void 0:i.textTitle})}),Object(r.jsx)("ul",{className:`${t}-brief-news__list`,children:null==e||null===(c=e.config)||void 0===c?void 0:c.textList.map(((t,s)=&gt;Object(r.jsx)("li",{children:Object(r.jsx)(n.Typography,{fontSize:"xxs",as:"span",children:t})},`${e.id}${s}`)))})]})};var u=s(23),d=s(43),j=s(68);function m(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&amp;&amp;(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function b(e,t,s){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var i=s.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const p=({customFields:e,item:t,className:s})=&gt;{var i,c,l,o,n,a,p,h;const O={width:"100%"};var x;"full-width"!==(null===(i=t.config)||void 0===i?void 0:i.imageFormat)&amp;&amp;d.a[null===(c=t.config)||void 0===c?void 0:c.imageFormat]&amp;&amp;(O.width=d.a[null===(x=t.config)||void 0===x?void 0:x.imageFormat].width);const g=Object(u.useContent)({source:"photo-api",query:{_id:null===(l=t.config)||void 0===l?void 0:l.imageId}}),v=function(e){for(var t=1;t&lt;arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?m(Object(s),!0).forEach((function(t){b(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):m(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({},g,{caption:null!==(o=null===(n=t.config)||void 0===n?void 0:n.caption)&amp;&amp;void 0!==o?o:null==g?void 0:g.caption,creditIPTC:null!==(a=null===(p=t.config)||void 0===p?void 0:p.creditIPTC)&amp;&amp;void 0!==a?a:null==g?void 0:g.creditIPTC});return g?"full-width"!==(null===(h=t.config)||void 0===h?void 0:h.imageFormat)?Object(r.jsx)(j.a,{item:v,customFields:e,className:`${s}__image promo-image ${(null===(f=d.a[null===(_=t.config)||void 0===_?void 0:_.imageFormat])||void 0===f?void 0:f.floated)?"floated":"centered"} image-${null===(w=t.config)||void 0===w?void 0:w.imageFormat}`,width:O.width}):Object(r.jsx)(j.a,{item:v,customFields:e,className:`${s}__image promo-image`}):null;var f,_,w};var h=s(26);function O(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&amp;&amp;(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function x(e,t,s){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var i=s.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const g=(e,t)=&gt;{const s=JSON.parse(localStorage.getItem("selectedOption"));s?localStorage.setItem("selectedOption",JSON.stringify(function(e){for(var t=1;t&lt;arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?O(Object(s),!0).forEach((function(t){x(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):O(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({},s,{[e]:t}))):localStorage.setItem("selectedOption",JSON.stringify({[e]:t}))},v="voted-polls",f=()=&gt;JSON.parse(localStorage.getItem(v))||[];const _=({voted:e,className:t,isClosed:s,partialResult:i})=&gt;Object(r.jsx)("h4",{className:t,children:s?Object(r.jsxs)("p",{children:[Object(r.jsx)("svg",{width:"27",height:"27",fill:"#5aad01",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Object(r.jsx)("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"})}),Object(r.jsx)("span",{children:"VotaÃ§Ã£o encerrada"})]}):Object(r.jsx)(r.Fragment,{children:e&amp;&amp;!i?Object(r.jsxs)("p",{children:[Object(r.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 28C22.6274 28 28 22.6274 28 16C28 9.37256 22.6274 4 16 4C9.37256 4 4 9.37256 4 16C4 22.6274 9.37256 28 16 28ZM23.5152 13.4507L14.6119 22.3539C14.3096 22.6562 13.8194 22.6562 13.517 22.3538L8.48478 17.3216C8.18246 17.0193 8.18246 16.5291 8.48478 16.2267L9.57964 15.1319C9.88201 14.8296 10.3722 14.8296 10.6745 15.1319L14.0645 18.5218L21.3254 11.261C21.6278 10.9586 22.118 10.9586 22.4203 11.261L23.5152 12.3558C23.8175 12.6581 23.8175 13.1483 23.5152 13.4507Z",fill:"#43A047"})}),Object(r.jsx)("span",{children:"Voto computado"})]}):Object(r.jsx)("p",{children:"Resultado Parcial"})})}),w=({className:e,optionText:t,optionVotesPercentage:s,optionVotesAbsolute:i})=&gt;Object(r.jsx)("li",{className:e,children:s?Object(r.jsxs)(r.Fragment,{children:[Object(r.jsxs)("div",{className:`${e}-top`,children:[Object(r.jsx)("p",{children:t}),Object(r.jsx)("span",{children:`${s}%`})]}),Object(r.jsx)("div",{className:`${e}-bar`,children:Object(r.jsx)("span",{style:{width:`${s}%`}})})]}):Object(r.jsxs)(r.Fragment,{children:[Object(r.jsxs)("div",{className:`${e}-top`,children:[Object(r.jsx)("p",{children:t}),Object(r.jsx)("span",{children:`${i}`})]}),Object(r.jsx)("div",{className:`${e}-bar`,children:Object(r.jsx)("span",{style:{width:`${i}%`}})})]})});var N=s(17),y=s(21),$=s(20);const S=({className:e,voted:t,options:s,setShowResults:i,partialResult:l,setPartialResult:n})=&gt;{const{arcSite:a,globalContent:u,metaValue:d}=Object(c.useFusionContext)(),{websiteDomain:j}=o()(a),m=encodeURI(`${j}${u.website_url}`),b=s.answers.reduce(((e,t)=&gt;e+t.votes),0),{headlines:p}=u,h=({socialName:e})=&gt;{Object(y.a)("share",{method:e,tipo_de_conteudo:d("page-type"),titulo_share:null==p?void 0:p.basic})};return Object(r.jsxs)("div",{className:`${e}-content-results`,children:[Object(r.jsxs)("div",{className:`${e}-content-results-just-test`,children:[Object(r.jsx)(_,{voted:t,isClosed:s["closed?"],className:`${e}-content-results-title`,partialResult:l}),Object(r.jsx)("div",{className:`${e}-content-results-share`,children:Object(r.jsx)(N.SocialShare,{children:Object(r.jsxs)(N.SocialShare.List,{children:[Object(r.jsx)(N.SocialShare.Item,{name:"googleNews",link:m,title:"google-news",position:"poll",onClick:()=&gt;h({socialName:"googleNews"})}),Object(r.jsx)(N.SocialShare.Item,{name:"facebook",link:m,title:"facebook",position:"poll",onClick:()=&gt;h({socialName:"facebook"})}),Object(r.jsx)(N.SocialShare.Item,{name:"twitter",link:m,title:"twitter",position:"poll",onClick:()=&gt;h({socialName:"twitter"})}),Object(r.jsx)(N.SocialShare.Item,{name:"whatsapp",link:m,title:"whatsapp",position:"poll",onClick:()=&gt;h({socialName:"whatsapp"})}),Object(r.jsx)(N.SocialShare.Item,{name:"share",link:m,title:"share",position:"poll",onClick:()=&gt;h({socialName:"share"})})]})})})]}),s.show_result?Object(r.jsxs)(r.Fragment,{children:["percent"===s.vote_format?Object(r.jsx)("ul",{className:`${e}-content-results-options`,children:s.answers.map((t=&gt;Object(r.jsx)(w,{className:`${e}-content-results-option`,optionText:t.text,optionVotesPercentage:0===t.votes?"0":(t.votes/b*100).toFixed(2)},`results-${t._id}`)))}):Object(r.jsx)("ul",{className:`${e}-content-results-options`,children:s.answers.map((t=&gt;Object(r.jsx)(w,{className:`${e}-content-results-option`,optionText:t.text,optionVotesAbsolute:t.votes},`results-${t._id}`)))}),Object(r.jsxs)("p",{className:`${e}-content-results-total`,children:["Total de ",b," votos"]}),s.coupon.show?Object(r.jsx)("div",{className:`${e}-content-results-show-coupon`,children:Object(r.jsx)($.Coupon,{linkUrl:s.coupon.link,children:Object(r.jsxs)($.Coupon.Box,{children:[Object(r.jsx)($.Coupon.Image,{logo:s.coupon.image_url}),Object(r.jsx)($.Coupon.Divider,{}),Object(r.jsxs)($.Coupon.Content,{children:[Object(r.jsx)($.Coupon.Title,{children:s.coupon.title}),Object(r.jsx)($.Coupon.Text,{children:s.coupon.text})]})]})})}):null]}):Object(r.jsxs)(r.Fragment,{children:[Object(r.jsxs)("p",{className:`${e}-content-results-hidden-result`,children:["Obrigado por participar da nossa enquete.",Object(r.jsx)("br",{className:`${e}-content-results-break-line`})," Em breve, iremos divulgar os resultados finais."]}),s.coupon.show?Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)("hr",{className:`${e}-content-results-line-coupon`}),Object(r.jsx)("div",{className:`${e}-content-results-show-coupon`,children:Object(r.jsx)($.Coupon,{linkUrl:s.coupon.link,children:Object(r.jsxs)($.Coupon.Box,{children:[Object(r.jsx)($.Coupon.Image,{logo:s.coupon.image_url}),Object(r.jsx)($.Coupon.Divider,{}),Object(r.jsxs)($.Coupon.Content,{children:[Object(r.jsx)($.Coupon.Title,{children:s.coupon.title}),Object(r.jsx)($.Coupon.Text,{children:s.coupon.text})]})]})})})]}):null]}),!s["closed?"]&amp;&amp;s.multiple_votes?Object(r.jsx)("div",{className:`${e}-content-results-btns`,children:Object(r.jsx)("button",{onClick:()=&gt;{i(!1),n(!1)},children:t?"Votar Novamente":"Voltar para as alternativas"})}):null]})},C=({option:e,className:t,selectedOptionId:s,handleRadioSubmit:i})=&gt;{const{image_url:c,image_title:l,_id:o,text:n}=e;return Object(r.jsxs)("li",{className:`${t} ${c?"with-image":""}`,children:[c?Object(r.jsx)("img",{src:c,alt:l,loading:"lazy"}):null,Object(r.jsx)("input",{type:"radio",id:o,value:o,checked:s===o,onChange:i}),Object(r.jsx)("label",{htmlFor:o,children:n})]})},P=({className:e,options:t,setShowResults:s,handleSubmit:c,vote:l,title:o,setPartialResult:n,showResultsEnable:a})=&gt;{const[u,d]=Object(i.useState)(l),j=e=&gt;{d(e.target.value)};return Object(r.jsxs)("form",{onSubmit:e=&gt;{e.preventDefault(),c(u)},className:`${e}-content-form`,children:[Object(r.jsx)("ul",{className:`${e}-content-form-options`,children:t.map((t=&gt;Object(r.jsx)(C,{option:t,className:`${e}-content-form-option`,selectedOptionId:u,handleRadioSubmit:j},`form-${t._id}`)))}),Object(r.jsxs)("div",{className:`${e}-content-form-btns`,children:[a&amp;&amp;Object(r.jsx)("button",{onClick:()=&gt;{s(!0),Object(y.a)("click_materia",{content_type:"enquete:resultado-parcial",enquete_pergunta:o}),n(!0)},children:"Resultado Parcial"}),Object(r.jsx)("button",{type:"submit",disabled:!u,onClick:()=&gt;{const e=u&amp;&amp;(null==t?void 0:t.find((e=&gt;(null==e?void 0:e._id)===u)));Object(y.a)("click_materia",{content_type:"enquete:votar",enquete_pergunta:o,enquete_opcao:null==e?void 0:e.text})},children:"Votar"})]})]})},k=({item:e,className:t})=&gt;Object(r.jsx)("div",{className:`${t}-media`,children:"image"===e.main_media&amp;&amp;e.default_image_url?Object(r.jsx)("figure",{className:`${t}-media-image`,children:Object(r.jsx)("img",{src:e.default_image_url,alt:e.title,loading:"lazy"})}):Object(r.jsx)("div",{className:`${t}-media-video`,dangerouslySetInnerHTML:{__html:e.default_embed}})}),q=({className:e})=&gt;Object(r.jsxs)("div",{className:`${e}-grecaptcha-container`,children:[Object(r.jsxs)("div",{className:`${e}-grecaptcha`,children:[Object(r.jsxs)("div",{className:`${e}-grecaptcha__left`,children:[Object(r.jsx)("div",{className:`${e}-grecaptcha__left-image`}),Object(r.jsxs)("p",{className:`${e}-grecaptcha__left-links`,children:[Object(r.jsx)("a",{href:"https://www.google.com/intl/en/policies/privacy/",target:"_blank",rel:"noreferrer",children:"Privacy"}),Object(r.jsx)("span",{children:" - "}),Object(r.jsx)("a",{href:"https://www.google.com/intl/en/policies/terms/",target:"_blank",rel:"noreferrer",children:"Terms"})]})]}),Object(r.jsxs)("div",{className:`${e}-grecaptcha__right`,children:[Object(r.jsxs)("p",{className:`${e}-grecaptcha__right-title`,children:["protected by ",Object(r.jsx)("strong",{children:"reCAPTCHA"})]}),Object(r.jsxs)("p",{className:`${e}-grecaptcha__right-links`,children:[Object(r.jsx)("a",{href:"https://www.google.com/intl/en/policies/privacy/",target:"_blank",rel:"noreferrer",children:"Privacy"}),Object(r.jsx)("span",{children:" - "}),Object(r.jsx)("a",{href:"https://www.google.com/intl/en/policies/terms/",target:"_blank",rel:"noreferrer",children:"Terms"})]})]})]}),Object(r.jsx)("div",{id:"grecaptcha-container"})]});s(609);const I=({className:e,item:t})=&gt;{const[s,c]=Object(i.useState)(!1),[l,o]=Object(i.useState)(null),[n,a]=Object(i.useState)(null),[u,d]=Object(i.useState)(!1),j=Object(i.useCallback)((async e=&gt;{var t;t=async t=&gt;{await(async(e,t,s)=&gt;{const i=new FormData;i.append("poll_id",e),i.append("answer_id",t),i.append("g-recaptcha-response",s);try{return await fetch(h.POST_POLL_ANSWER_API,{method:"POST",body:i}),!0}catch(e){return console.error("Form submission - Error:",e),null}})(l._id,e,t)&amp;&amp;(!l.multiple_votes&amp;&amp;function(e){const t=f(),s=JSON.stringify([...new Set([...t,e])]);localStorage.setItem(v,s)}(l._id),c(!0),a(e),g(l._id,e))},grecaptcha.ready((function(){grecaptcha.execute(h.GOOGLE_RECAPTCHA_APIKEY,{action:"submit"}).then(t)}))}),[l]);return Object(i.useEffect)((()=&gt;{(async e=&gt;{const s=JSON.parse(localStorage.getItem("selectedOption")),i=await(c=null===(e=t.config)||void 0===e?void 0:e.pollId,fetch(`${h.GET_POLL_DATA_API}${c}`,{method:"GET"}).then((e=&gt;e.json())).catch((e=&gt;(console.error("Error while fetching poll data",e),null))));var c;i&amp;&amp;(o(i),a(null==s?void 0:s[i._id]))})()}),[]),l?Object(r.jsx)("div",{className:`${e}__poll`,children:Object(r.jsxs)("div",{className:`${e}__poll-container`,children:[Object(r.jsx)("h3",{className:`${e}__poll-title`,children:l.question}),l["closed?"]||!l.multiple_votes&amp;&amp;(m=l._id,f().some((e=&gt;e===m)))?Object(r.jsx)(S,{className:`${e}__poll`,setShowResults:c,voted:n,options:l,partialResult:u,setPartialResult:d}):Object(r.jsx)(r.Fragment,{children:s?Object(r.jsx)(S,{className:`${e}__poll`,setShowResults:c,voted:n,options:l,partialResult:u,setPartialResult:d}):Object(r.jsxs)(r.Fragment,{children:[l.main_media?Object(r.jsx)(k,{className:`${e}__poll`,item:l}):null,Object(r.jsx)(P,{className:`${e}__poll`,options:l.answers,handleSubmit:j,setShowResults:c,vote:n,title:null==l?void 0:l.question,setPartialResult:d,showResultsEnable:l.show_result})]})}),Object(r.jsx)(q,{className:`${e}__poll`})]})}):null;var m};var z=s(71),A=s(67);const F=(e,t)=&gt;{var s,i,c,l;const o=null===(s=Object.values(e))||void 0===s?void 0:s.some((e=&gt;null==e?void 0:e.correct)),n=null===(i=Object.values(e))||void 0===i||null===(c=i.filter((e=&gt;null==e?void 0:e.correct)))||void 0===c?void 0:c.length,r=null===(l=Object.values(e))||void 0===l?void 0:l.reduce(((e,t)=&gt;e+Number(null==t?void 0:t.points)),0),a=o?n:r;return t.find((e=&gt;e.from&lt;=a&amp;&amp;e.to&gt;=a))},T=Object(i.createContext)({});function R(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&amp;&amp;(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function E(e,t,s){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var i=s.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const D=({option:e,className:t,showAnswer:s,questionId:c})=&gt;{var l;const{disabled:o,selectedAnswers:n,setSelectedAnswers:a}=Object(i.useContext)(T);let u="";return(null==n||null===(l=n[c])||void 0===l?void 0:l._id)===e._id&amp;&amp;(u=s?n[c].correct?"correct":"incorrect":"selected"),Object(r.jsxs)("li",{className:`${t}-option ${u}`,onClick:()=&gt;{o||n[c]&amp;&amp;s||a((t=&gt;function(e){for(var t=1;t&lt;arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?R(Object(s),!0).forEach((function(t){E(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):R(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({},t,{[c]:e})))},children:[Object(r.jsx)("span",{className:`${t}-option-radio`}),Object(r.jsx)("span",{className:`${t}-option-text`,children:e.text})]})},L=({item:e,className:t})=&gt;{const{text:s,image_url:i,image_title:c,image_author:l}=e;return i&amp;&amp;i.length?Object(r.jsxs)("figure",{className:`${t}-image`,children:[Object(r.jsx)("img",{src:i,alt:s,loading:"lazy"}),c&amp;&amp;l?Object(r.jsxs)("figcaption",{className:`${t}-image-content`,children:[Object(r.jsx)("p",{children:c}),Object(r.jsx)("p",{children:l})]}):null]}):null},V=({className:e,isCorrect:t,summary:s})=&gt;{const{primaryColor:c}=Object(i.useContext)(T);return Object(r.jsxs)("div",{className:`${e}-answer`,style:{borderLeft:`12px solid ${c}`},children:[Object(r.jsxs)("h5",{className:`${e}-answer-title ${t?"correct":"incorrect"}`,children:[Object(r.jsx)("span",{}),t?"Muito bom vocÃª acertou!":"VocÃª nÃ£o acertou :("]}),Object(r.jsx)("p",{className:`${e}-answer-text`,children:s})]})},J=({className:e,item:t,order:s,showAnswer:c})=&gt;{const{text:l,answers:o,register_summary:n,_id:a}=t,{selectedAnswers:u}=Object(i.useContext)(T);return Object(r.jsxs)("li",{className:e,children:[Object(r.jsx)("p",{className:`${e}-order`,children:s}),Object(r.jsx)("h4",{className:`${e}-heading`,children:l}),Object(r.jsx)(L,{className:e,item:t}),Object(r.jsx)("ul",{className:`${e}-options`,children:o.map((t=&gt;Object(r.jsx)(D,{className:e,option:t,questionId:a,showAnswer:c},t._id)))}),u[a]&amp;&amp;c&amp;&amp;Object(r.jsx)(V,{className:e,isCorrect:u[a].correct,summary:n})]})},G=({className:e,primaryColor:t,result:s,reset:i,urlForShare:l})=&gt;{const{metaValue:o,globalContent:n}=Object(c.useFusionContext)(),{headlines:a}=n,{title:u,text:d,image_url:j}=s,m=({socialName:e})=&gt;{Object(y.a)("share",{method:e,tipo_de_conteudo:o("page-type"),titulo_share:u||(null==a?void 0:a.basic)})};return Object(r.jsxs)("div",{className:e,style:{borderLeft:`12px solid ${t}`},children:[j?Object(r.jsx)("img",{className:`${e}-image`,src:j,alt:u,loading:"lazy"}):null,Object(r.jsx)("h3",{className:`${e}-title`,children:u}),Object(r.jsx)("div",{className:`${e}-share`,children:Object(r.jsx)(N.SocialShare,{children:Object(r.jsxs)(N.SocialShare.List,{children:[Object(r.jsx)(N.SocialShare.Item,{name:"googleNews",link:l,title:"google-news",position:"quiz",onClick:()=&gt;m({socialName:"googleNews"})}),Object(r.jsx)(N.SocialShare.Item,{name:"facebook",link:l,title:"facebook",position:"quiz",onClick:()=&gt;m({socialName:"facebook"})}),Object(r.jsx)(N.SocialShare.Item,{name:"twitter",link:l,title:"twitter",position:"quiz",onClick:()=&gt;m({socialName:"twitter"})}),Object(r.jsx)(N.SocialShare.Item,{name:"whatsapp",link:l,title:"whatsapp",position:"quiz",onClick:()=&gt;m({socialName:"whatsapp"})}),Object(r.jsx)(N.SocialShare.Item,{name:"share",link:l,title:"share",position:"quiz",onClick:()=&gt;m({socialName:"share"})})]})})}),Object(r.jsx)("p",{className:`${e}-descr`,children:d}),Object(r.jsx)("button",{className:`${e}-btn`,style:{backgroundColor:t},onClick:i,children:"Refazer o Quiz"})]})},M=({className:e,primaryColor:t,counter:s})=&gt;Object(r.jsxs)("div",{className:e,style:{borderLeft:`12px solid ${t}`},children:["Ainda restam ",s," perguntas a serem respondidas, nÃ£o desista vocÃª consegue!"]});var H=s(65),U=s(27);s(610);const B=({className:e,item:t})=&gt;{var s,l;const{arcSite:a,globalContent:u,isAdmin:d}=Object(c.useFusionContext)(),{primaryColor:j,websiteDomain:m}=o()(a),[b,p]=Object(i.useState)(null),[O,x]=Object(i.useState)({}),[g,v]=Object(i.useState)(!1),f=(null==b?void 0:b.questions.length)-Object.keys(O).length,_=JSON.parse((null===(s=Object(U.b)())||void 0===s||null===(l=s.publicidade)||void 0===l?void 0:l.disable_adv)||!1);return Object(i.useEffect)((()=&gt;{(async e=&gt;{const s=await(i=null===(e=t.config)||void 0===e?void 0:e.quizId,fetch(`${h.GET_QUIZ_DATA_API}${i}`,{method:"GET"}).then((e=&gt;e.json())).catch((e=&gt;(console.error("Error while fetching quiz data",e),null))));var i,c;p((c=s)?{id:c._id,result_ranges:c.result_ranges,showAnswer:"RightAnswer"===c.settings_type.split("::").pop(),questions:c.questions,published:"published"===c.state}:null)})()}),[]),Object(i.useEffect)((()=&gt;{0===f&amp;&amp;v(!0)}),[O]),b&amp;&amp;(null==b?void 0:b.published)&amp;&amp;(null==b?void 0:b.questions.length)?Object(r.jsx)("div",{className:`${e}__quiz`,children:Object(r.jsxs)(T.Provider,{value:{disabled:g,selectedAnswers:O,setSelectedAnswers:x,primaryColor:j},children:[Object(r.jsx)("ul",{className:`${e}__quiz-items`,children:b.questions.map(((t,s)=&gt;Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(J,{className:`${e}__quiz-item`,item:t,order:`${s+1} / ${b.questions.length}`,showAnswer:b.showAnswer},t._id),!_&amp;&amp;Object(r.jsx)(r.Fragment,{children:(s+1)%3==0&amp;&amp;Object(r.jsxs)("div",{className:`${e}__quiz-ads`,children:[Object(r.jsxs)("div",{className:`${e}__quiz-ads-wrapper`,children:[Object(r.jsx)("span",{className:`${e}__quiz-ads-line`}),Object(r.jsx)("span",{className:`${e}__quiz-ads-text`,children:"continua apÃ³s a publicidade"}),Object(r.jsx)("span",{className:`${e}__quiz-ads-line`})]}),Object(r.jsx)("div",{className:`${e}__quiz-ads-content`,children:d?Object(r.jsx)(n.AdPlaceholder,{}):Object(r.jsx)(H.a,{id:`quiz-ads-${t._id}`,pos:"Quiz",context:"Quiz",dimensions:[[[728,90],[300,250]],[[660,470],[300,250]],[300,250]]})})]})})]})))}),0!==f?Object(r.jsx)(M,{className:`${e}__quiz-counter`,primaryColor:j,counter:f}):Object(r.jsx)(G,{className:`${e}__quiz-summary`,primaryColor:j,result:F(O,b.result_ranges),reset:()=&gt;{v(!1),x({})},urlForShare:encodeURI(`${m}${u.website_url}`)})]})}):null};var Q=s(527);s(617);t.default=({element:e,classPrefix:t,customFields:s})=&gt;{const{arcSite:i}=Object(c.useFusionContext)(),{primaryColor:l}=o()(i),{embed:n,subtype:u}=e,d=`${t}-custom-embed`;switch(u){case"brief_news":return n.config?Object(r.jsx)(a,{className:d,primaryColor:l,item:n}):null;case"formatted_image":return n.config?Object(r.jsx)(p,{className:t,customFields:s,item:n}):null;case"legacy_video":return n.config?Object(r.jsx)(z.a,{item:Object(A.a)(n)}):null;case"poll":return n.config?Object(r.jsx)(I,{className:d,item:n}):null;case"quiz":return n.config?Object(r.jsx)(B,{className:d,item:n}):null;case"jarvics_quiz":return n.config?Object(r.jsx)(Q.a,{item:n}):null;default:return null}}}}]);</pre></body></html>