{"version":3,"file":"CreatorSelection.CQZFfuDO.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/EODjuXtK2jwhwuikXQFA/mrB4QGZUdUYegmLYGKqU/CreatorSelection.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{forwardRef,useState}from\"react\";import{motion,AnimatePresence,useReducedMotion}from\"framer-motion\";const names=[\"Laura tula\",\"Mera pela\",\"Barny\",\"Rexito\"];const centers=[15.7,36.2,62.4,86.9];export function withCreatorSelection(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[active,setActive]=useState(null);const[confirmed,setConfirmed]=useState(false);const[hovered,setHovered]=useState(null);const shown=hovered??active;const choose=index=>{if(active!==index)setConfirmed(false);setActive(index);};return /*#__PURE__*/_jsxs(Component,{...props,ref:ref,\"data-creator-selector\":\"true\",style:{...props.style,width:\"min(100%, 100vw)\",maxWidth:\"100vw\",flexShrink:0,height:\"auto\",aspectRatio:\"1200 / 637\",minHeight:0,padding:0,isolation:\"isolate\"},children:[props.children,/*#__PURE__*/_jsx(\"style\",{children:\".creator-mobile{display:none}@media(max-width:809px){[data-creator-selector]{height:520px!important;aspect-ratio:auto!important;flex-shrink:0!important}[data-creator-selector]>:not(style):not(.creator-mobile){display:none!important}[data-creator-selector]>.creator-mobile{display:block!important}}\"}),/*#__PURE__*/_jsx(MobileCreatorCarousel,{}),/*#__PURE__*/_jsx(\"style\",{children:'body:has([data-creator-selector]) footer [data-framer-name=\"Overlap Detailing\"]{display:none!important}body:has([data-creator-selector]) footer{overflow:clip!important}'}),/*#__PURE__*/_jsx(\"style\",{children:'[data-creator-selector] [data-framer-name=\"Fondo\"]{width:100%!important;height:100%!important;position:absolute!important;inset:0!important;pointer-events:none!important}'+'[data-creator-selector] [data-framer-name=\"Laura tula\"]{width:78.083%!important;left:-23.333%!important;bottom:.628%!important;height:auto!important;pointer-events:none!important}'+'[data-creator-selector] [data-framer-name=\"Mera pela\"]{width:70.417%!important;left:1%!important;bottom:-4.396%!important;height:auto!important;pointer-events:none!important}'+'[data-creator-selector] [data-framer-name=\"Barny\"]{width:70.417%!important;left:27.167%!important;bottom:-2.826%!important;height:auto!important;pointer-events:none!important}'+'[data-creator-selector] [data-framer-name=\"Rexito\"]{width:79.75%!important;right:-24.75%!important;bottom:.628%!important;height:auto!important;pointer-events:none!important}'+\"[data-creator-selector] button:focus-visible{outline:2px solid white!important;outline-offset:-3px}\"+\"@media(prefers-reduced-motion:reduce){[data-creator-selector] *{transition:none!important}}\"}),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",zIndex:0,left:shown===null?\"50%\":centers[shown]+\"%\",top:\"23%\",width:\"34%\",height:\"68%\",transform:\"translateX(-50%)\",background:\"radial-gradient(ellipse,rgba(255,255,255,.20) 0%,rgba(255,255,255,.065) 38%,transparent 72%)\",opacity:shown===null?0:1,transition:\"left 240ms ease,opacity 240ms ease\",pointerEvents:\"none\"}}),names.map((name,index)=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":\"Elegir a \"+name,\"aria-pressed\":active===index,onClick:()=>choose(index),onMouseEnter:()=>setHovered(index),onMouseLeave:()=>setHovered(null),style:{position:\"absolute\",zIndex:3,left:index*25+\"%\",top:\"28%\",width:\"25%\",height:\"72%\",border:0,padding:0,background:\"transparent\",cursor:\"pointer\",WebkitTapHighlightColor:\"transparent\"}},name)),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",zIndex:4,left:shown===null?\"50%\":centers[shown]+\"%\",top:\"23%\",transform:\"translateX(-50%)\",width:0,height:0,borderLeft:\"7px solid transparent\",borderRight:\"7px solid transparent\",borderTop:\"9px solid #fff\",opacity:shown===null?0:1,transition:\"left 240ms ease,opacity 180ms ease\",pointerEvents:\"none\"}}),active!==null&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":(confirmed?\"Seleccionado: \":\"Seleccionar a \")+names[active],\"aria-pressed\":confirmed,onClick:()=>setConfirmed(true),style:{position:\"absolute\",zIndex:5,left:centers[active]+\"%\",bottom:\"26%\",transform:\"translateX(-50%)\",width:\"22%\",maxWidth:154,minHeight:36,padding:\"9px 3px\",border:\"1px solid rgba(255,255,255,.65)\",borderRadius:5,background:confirmed?\"#fff\":\"rgba(10,10,12,.82)\",color:confirmed?\"#111\":\"#fff\",fontFamily:\"Inter,Arial,sans-serif\",fontSize:\"clamp(10px,1.2vw,14px)\",fontWeight:600,cursor:\"pointer\",transition:\"background 180ms ease,color 180ms ease\",boxShadow:confirmed?\"0 0 18px rgba(255,255,255,.1)\":\"none\"},children:confirmed?\"Seleccionado\":\"Seleccionar\"}),/*#__PURE__*/_jsx(\"span\",{role:\"status\",\"aria-live\":\"polite\",style:{position:\"absolute\",width:1,height:1,padding:0,overflow:\"hidden\",clipPath:\"inset(50%)\",whiteSpace:\"nowrap\"},children:active===null?\"\":names[active]+(confirmed?\" seleccionado\":\": pulsa Seleccionar para confirmar\")})]});});}const portraits=[\"https://framerusercontent.com/images/vIehTAlewDpwpF3HdLCm1vYrTw.png\",\"https://framerusercontent.com/images/DtByrmqa5ytCCQsUp2Jgnr1vBWU.png\",\"https://framerusercontent.com/images/Lypd0KTVlVG3SBwMKzIURTm44.png\",\"https://framerusercontent.com/images/DtByrmqa5ytCCQsUp2Jgnr1vBWU.png\"];function MobileCreatorCarousel(){const[index,setIndex]=useState(0);const[direction,setDirection]=useState(1);const[selected,setSelected]=useState(null);const[revision,setRevision]=useState(0);const reduce=useReducedMotion();const move=d=>{setDirection(d);setIndex(i=>(i+d+4)%4);};const confirm=()=>{setSelected(index);setRevision(v=>v+1);};return /*#__PURE__*/_jsxs(\"section\",{className:\"creator-mobile\",\"aria-label\":\"Selector de creadores\",\"aria-roledescription\":\"carrusel\",style:{position:\"relative\",width:\"100%\",height:520,overflow:\"hidden\",background:\"#09080d url(https://framerusercontent.com/images/vy4ieUw9K0bN4cKY4TNVW0qNeE.jpg) center/cover\",color:\"white\",fontFamily:\"Inter,Arial,sans-serif\"},children:[/*#__PURE__*/_jsx(\"h3\",{style:{position:\"absolute\",top:28,left:12,right:12,margin:0,textAlign:\"center\",fontSize:25,fontWeight:800,lineHeight:1.15,letterSpacing:\"-.6px\",zIndex:4},children:\"ESCOGE TU STREAMER\"}),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",left:\"10%\",top:98,width:\"80%\",height:325,background:\"radial-gradient(ellipse,rgba(255,255,255,.18),rgba(255,255,255,.055) 42%,transparent 70%)\",opacity:selected===index?1:.65,transition:\"opacity .3s\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:96,left:0,right:0,height:320,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(AnimatePresence,{initial:false,mode:\"wait\",custom:direction,children:/*#__PURE__*/_jsx(motion.div,{custom:direction,variants:{enter:d=>({x:reduce?0:d*330,opacity:0}),center:{x:0,opacity:1},exit:d=>({x:reduce?0:-d*330,opacity:0})},initial:\"enter\",animate:\"center\",exit:\"exit\",transition:{duration:reduce?0:.24,ease:\"easeInOut\"},style:{position:\"absolute\",inset:0},children:/*#__PURE__*/_jsx(\"img\",{src:portraits[index],alt:names[index],draggable:false,style:{position:\"absolute\",left:\"50%\",bottom:-10,transform:\"translateX(-50%)\",width:index===0?740:index===2?600:260,maxWidth:\"none\",height:index===0?416:index===2?337:333,objectFit:\"contain\",pointerEvents:\"none\"}})},index+\":\"+revision)})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":\"Creador anterior\",onClick:()=>move(-1),style:{position:\"absolute\",left:8,top:225,width:48,height:64,zIndex:5,border:0,borderRadius:8,background:\"rgba(0,0,0,.22)\",color:\"#fff\",fontSize:42,lineHeight:1,cursor:\"pointer\"},children:\"‹\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":\"Creador siguiente\",onClick:()=>move(1),style:{position:\"absolute\",right:8,top:225,width:48,height:64,zIndex:5,border:0,borderRadius:8,background:\"rgba(0,0,0,.22)\",color:\"#fff\",fontSize:42,lineHeight:1,cursor:\"pointer\"},children:\"›\"}),/*#__PURE__*/_jsx(\"p\",{\"aria-live\":\"polite\",style:{position:\"absolute\",top:398,left:0,right:0,textAlign:\"center\",fontSize:14,fontWeight:600,margin:0,zIndex:4},children:names[index]}),/*#__PURE__*/_jsx(motion.button,{type:\"button\",\"aria-pressed\":selected===index,onClick:confirm,whileTap:reduce?{}:{scale:.96},style:{position:\"absolute\",top:436,left:\"50%\",translateX:\"-50%\",width:170,height:44,zIndex:5,border:\"1px solid #fff\",borderRadius:5,background:selected===index?\"white\":\"rgba(9,8,13,.85)\",color:selected===index?\"#111\":\"white\",fontSize:14,fontWeight:700,cursor:\"pointer\"},children:selected===index?\"Seleccionado\":\"Seleccionar\"}),/*#__PURE__*/_jsxs(\"span\",{style:{position:\"absolute\",top:491,left:0,right:0,textAlign:\"center\",fontSize:10,letterSpacing:3,opacity:.55},children:[index+1,\" / 4\"]})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"withCreatorSelection\":{\"type\":\"reactHoc\",\"name\":\"withCreatorSelection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CreatorSelection.map"],"mappings":"+LAA+P,SAAgB,EAAqB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAO,GAAWA,EAAS,IAAI,EAAO,CAAC,EAAU,GAAcA,EAAS,EAAK,EAAO,CAAC,EAAQ,GAAYA,EAAS,IAAI,EAAQ,EAAM,GAAS,EAAa,EAAO,GAAO,CAAI,IAAS,GAAM,EAAa,EAAK,EAAE,EAAU,CAAK,CAAE,EAAE,OAAoB,EAAM,EAAU,CAAC,GAAG,EAAU,MAAI,wBAAwB,OAAO,MAAM,CAAC,GAAG,EAAM,MAAM,MAAM,mBAAmB,SAAS,QAAQ,WAAW,EAAE,OAAO,OAAO,YAA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