1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1383],{7816:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/rbx-quiz/[product]",function(){return n(2373)}])},4281:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r=n(16);function l(e){try{var t,n;let r=null===(n=window.avConfig)||void 0===n?void 0:null===(t=n.slots)||void 0===t?void 0:t[e],l=Array.isArray(r)?r:[r];return l.length>0&&l.every(e=>(null==e?void 0:e.type)==="offerWall")}catch(e){return!1}}function i(){var e;let t=null===(e=window.av)||void 0===e?void 0:e.slots;if(!Array.isArray(t))return null;for(let e=0;e<t.length;e++){let n=t[e];if(n&&"rewarded"===n.type&&"ready"===n.lifecycle&&!l(e))return n}return null}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4e4;return new Promise(n=>{var r,l,i;let o=null===(i=window)||void 0===i?void 0:null===(l=i.googletag)||void 0===l?void 0:null===(r=l.pubads)||void 0===r?void 0:r.call(l);if(!o||!(null==e?void 0:e.definition)){setTimeout(n,t);return}let a=t=>{t.slot===e.definition&&(s(),n())},s=()=>{try{o.removeEventListener("rewardedSlotClosed",a)}catch(e){}};o.addEventListener("rewardedSlotClosed",a),setTimeout(()=>{s(),n()},t)})}function a(e){var t;let n=null!==(t=e.getRewardedSlot)&&void 0!==t?t:i,a={off:async()=>{},interstitial:async()=>{},rewarded:async()=>{var e,t,r,i,a,s;let d=null===(e=window)||void 0===e?void 0:e.av,c=null!==(a=null==d?void 0:d.slots)&&void 0!==a?a:[],u=c.map((e,t)=>({slot:e,index:t})).filter(e=>{let{slot:t}=e;return(null==t?void 0:t.type)==="rewarded"});console.log("[adActions:rewarded] av exists?",!!d),console.log("[adActions:rewarded] total slots:",c.length),console.log("[adActions:rewarded] rewarded slots:",u.map(e=>{let{slot:t,index:n}=e;return{name:t.name,lifecycle:t.lifecycle,unfilled:t.unfilled,hasDefinition:!!t.definition,placement:t.placement,isOfferWall:l(n)}})),console.log("[adActions:rewarded] av.timeline:",null==d?void 0:d.timeline),console.log("[adActions:rewarded] googletag.pubads ready?",!!(null===(i=window)||void 0===i?void 0:null===(r=i.googletag)||void 0===r?void 0:null===(t=r.pubads)||void 0===t?void 0:t.call(r)));let f=n();if(console.log("[adActions:rewarded] getSlot() result:",f?{lifecycle:f.lifecycle,name:f.name}:null),!f){console.warn("Rewarded slot n\xe3o encontrado/pronto");return}let g=o(f,4e4);try{null===(s=f.show)||void 0===s||s.call(f)}catch(e){console.error("[adActions:rewarded] slot.show threw:",e)}await g},rewardedLong:async()=>{let t=n();if(!t){if(a.activeOW(),e.settings.redirectUrl){let t=window.location.search,n=t?e.settings.redirectUrl+(e.settings.redirectUrl.includes("?")?"&":"?")+t.slice(1):e.settings.redirectUrl;return window.location.replace(n),new Promise(()=>{})}return}let r=o(t,4e4);try{var l;null===(l=t.show)||void 0===l||l.call(t)}catch(e){}await r},activeOW:async()=>{(0,r.d8)("loaderCopy",e.settings.loaderCopy,e.settings.domain),(0,r.d8)("rewardedReady","true",e.settings.domain)}};return{async run(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"off",n=null!==(e=a[t])&&void 0!==e?e:a.off;return n()}}}},2373:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return b},default:function(){return j}});var r=n(5893),l=n(8270),i=n(4730),o=n(8235),a=n(42),s=n(6803),d=n(3937),c=n(4281),u=n(6362);let f={2:"rewarded",3:"interstitial"};var g=n(4234),v=n(9135),w=n(9008),y=n.n(w),p=n(1163),h=n(4298),m=n.n(h),x=n(7294);let _=n(651).mda_params;var b=!0;function j(e){var t;let{data:n}=e,w=(0,p.useRouter)(),[h,b]=(0,x.useState)(1),{setIsLoaderOpen:j}=(0,v.x)(e=>e.actions),A=(0,x.useMemo)(()=>(0,c.G)({settings:{loaderCopy:"",domain:""}}),[]),T=n.steps.length,k=n.steps[h-1],S=h===T,N=function(e,t,n){var r;let l="result"===e.type?e.ctaAdType:e.adType,i=l&&"default"!==l?l:"result"===e.type?n.activeInterstitial?"interstitial":"off":null!==(r=f[t])&&void 0!==r?r:"off";return"interstitial"===i?{adType:"off",useAnchor:!0,showDisclaimer:!0}:"rewarded"===i?{adType:"rewarded",useAnchor:!1,showDisclaimer:!0}:{adType:"off",useAnchor:!1,showDisclaimer:!1}}(k,h,n.settings),E=n.settings.colors,C=(null==E?void 0:E.background)?{"--rbx-background":E.background}:void 0;async function L(e){if(!S){if("grid"===k.type||"list"===k.type){let t=k.options.find(t=>
1t.id===e);t&&(0,g.iJ)({stepIndex:h-1,id:t.id,label:t.label,image:t.image})}await A.run(N.adType),b(e=>e+1)}}(0,x.useEffect)(()=>{(0,g.eF)()},[]),(0,x.useEffect)(()=>{j(!0)},[h,j]),(0,x.useEffect)(()=>{(0,u.k)(_)},[]);let D=1===h,I=n.settings.gtag?{__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(n.settings.gtag,"', { page_path: window.location.pathname });\n ")}:null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y(),{children:(0,r.jsx)("title",{children:k.title})}),n.settings.gtag&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m(),{id:"rbx_ga_1",async:!0,src:"https://www.googletagmanager.com/gtag/js?id=".concat(n.settings.gtag)}),(0,r.jsx)(m(),{id:"rbx_ga_2",strategy:"lazyOnload",dangerouslySetInnerHTML:I})]}),_.ads_script&&(0,r.jsx)(m(),{src:"".concat(_.ads_script,"?v=").concat(encodeURIComponent(w.asPath)),strategy:"afterInteractive"},w.asPath),(0,r.jsx)(o.l,{colors:E}),(0,r.jsx)("div",{className:"rbx-quiz-bg min-h-screen",style:C,children:(0,r.jsxs)("div",{className:"rbx-quiz-inner max-w-sm mx-auto min-h-screen flex flex-col",children:[(0,r.jsx)(i.O,{title:k.title,backLabel:n.messages.backLabel,backHref:D?"/":void 0,onBack:D?void 0:function(){b(e=>e-1)},colors:E}),(0,r.jsx)(s.F,{currentStep:h,totalSteps:T,colors:E}),(0,r.jsx)("div",{id:"av-rewarded",className:"av-rewarded"}),N.showDisclaimer&&(0,r.jsx)("p",{style:{color:null==E?void 0:E.textSecondary},className:"px-4 py-2 text-xs text-center text-white/60",children:(null===(t=n.settings.adDisclaimer)||void 0===t?void 0:t.trim())||"An ad may appear before the next step."}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto py-2",children:(0,r.jsx)(d.W,{step:k,redirectUrl:n.settings.redirectUrl,activeInterstitial:N.useAnchor,forceInterstitialAnchor:N.useAnchor,colors:E,onSelect:L})}),(0,r.jsx)(l.W,{footerText:n.settings.footerText,colors:E}),(0,r.jsx)(a.T,{colors:E})]})})]})}}},function(e){e.O(0,[6362,1055,9774,2888,179],function(){return e(e.s=7816)}),_N_E=e.O()}]);
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.