1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f54b89e8-f48d-42dd-b93a-e7c174d96520",e._sentryDebugIdIdentifier="sentry-dbid-f54b89e8-f48d-42dd-b93a-e7c174d96520")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5839],{65839:function(e,t,a){a.r(t);var i=a(35944),n=a(60044),l=a(67294),r=a(7490),o=a(4289),s=a(37337),d=a(61456),u=a(82493);t.default=e=>{let{question:t,onClick:a}=e,{quiz_answers:s}=(0,r.LM)(),u=null==s?void 0:s.gender,m="imagesMale"in t&&"male"===u?t.imagesMale:t.images,b=e=>!!w[e],[y,v]=(0,l.useState)(0),[w,Z]=(0,l.useState)({}),[x,z]=(0,l.useState)("default"),[S,k]=(0,l.useState)(null),I=e=>{let i=null==t?void 0:t.texts[y];z("love"===e.value?"right":"hate"===e.value?"left":"neutral"),k(y),v(e=>e+1),setTimeout(()=>{k(null),z("default")},200),Z(t=>({...t,[i]:e.value})),y+1===(null==t?void 0:t.texts.length)&&a({...w,[i]:e.value})},_=e=>{switch(e.value){case"hate":return(0,i.tZ)(o.KMU,{theme:d.rS,dataTestId:"button-quiz-option-single",variant:"tertiary",onClick:()=>I(e),children:e.label},e.value);case"neutral":return(0,i.tZ)(o.KMU,{theme:d.rS,dataTestId:"button-quiz-option-single",variant:"secondary",onClick:()=>I(e),children:e.label},e.value);case"love":return(0,i.tZ)(o.KMU,{theme:d.rS,dataTestId:"button-quiz-option-single",onClick:()=>I(e),children:e.label},e.value);default:return null}};return(0,i.BX)(o.xn2,{children:[(0,i.tZ)(o.h4i,{label:t.label,optionsLabel:null==t?void 0:t.optionsLabel,theme:d.rS}),(0,i.BX)(c,{children:[(0,i.tZ)(h,{theme:d.rS,children:t.texts[y]}),(0,i.tZ)(g,{children:m.map((e,a)=>{let l=t.texts[a],r=S===a,o=b(l);if(!(a>=y&&a<y+3)&&!r)return null;let s=1-(a-y)*.1,d="scale(".concat(s,") translateY(").concat(-16*(a-y),"px)"),u=o&&!r;return(0,i.tZ)(p,{children:(0,i.tZ)(f,{style:{zIndex:100-a,transform:r?"left"===x?"translateX(-120%) scale(".concat(s,")"):"right"===x?"translateX(120%) scale(".concat(s,")"):"translateY(10%) scale(".concat(.98*s,")"):d,opacity:u?0:"neutral"===x&&r?.3:1,visibility:u?"hidden":"visible",transition:"neutral"===x?"transform 0.4s ease, opacity 0.3s ease":"transform 0.25s ease-in-out, opacity 0.25s ease-in-out, visibility 0.25s ease-in-out",position:"absolute",willChange:"transform, opacity"},children:(0,i.tZ)(n.Z,{src:e,alt:""})})},"".concat(e,"-").concat(a))})})]}),(0,i.tZ)(o.Ps0,{theme:d.rS,position:"row",children:t.options.map(e=>_(e))})]},t.key)};let c=(0,s.Z)("div",{target:"e1awozt60"})("width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;padding-top:2rem;@media ",u.Mq,"{padding:1.5rem 0 4rem;}"),h=(0,s.Z)("p",{target:"e1awozt61"})("color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.bl700.fontSize},";line-height:",e=>{let{theme:t}=e;return t.typography.bl700.lineHeight},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl700.fontWeight},";height:1.25rem;width:100%;text-transform:capitalize;"),g=(0,s.Z)("div",{target:"e1awozt62"})("max-width:15rem;height:20rem;width:100%;position:relative;margin-top:2rem;"),p=(0,s.Z)("div",{target:"e1awozt63"})("position:relative;"),f=(0,s.Z)("div",{target:"e1awozt64"})("position:absolute;border-radius:0.75rem;width:15rem;height:17.5rem;z-index:100;transform-origin:center top;transition:transform 0.3s ease-in-out,opacity 0.3s ease-in-out,visibility 0.3s ease-in-out;")}}]);
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.