1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,148723,899058,e=>{"use strict";let t={nonPersonalizedAds:!1,restrictDataProcessing:!1};e.s(["ADS_CONSENT_UNRESTRICTED",0,t,"ALL_SIGNALS",0,["ad_storage","ad_user_data","ad_personalization","analytics_storage"]],899058);let n={nonPersonalizedAds:!0,restrictDataProcessing:!0},r=null,a=[],l=null,o=new Set;function s(e){r=e,l&&(clearTimeout(l),l=null);let t=a;for(let n of(a=[],t))n(e)}e.s(["awaitAdsConsent",0,function(){return!0!==window.__e80ConsentRequired?Promise.resolve(t):r?Promise.resolve(r):new Promise(e=>{a.push(e),l||(l=setTimeout(()=>{s(n)},8e3))})},"onConsentChange",0,function(e){return o.add(e),()=>o.delete(e)},"publishAdsConsent",0,function(e){if(r){for(let t of(r=e,o))t(e);return}s(e)}],148723)},556220,e=>{"use strict";var t=e.i(148723);let n=!1,r=null;function a(){let e=window.__e80ApsPubId;return(null==e?void 0:e.trim())||null}let l=[],o=new Map,s=!1,i=null,d=!1,u=!1,c=!1,p={},m=null,f=null,g=!1;function v(e){let t=window.googletag;(null==t?void 0:t.pubads)&&(e.nonPersonalizedAds||e.restrictDataProcessing||null!==f)&&(t.pubads().setPrivacySettings({nonPersonalizedAds:e.nonPersonalizedAds,restrictDataProcessing:e.restrictDataProcessing}),f=e)}function h(){let e=window.googletag;if(null==e?void 0:e.pubads)for(let[t,n]of Object.entries(p))null==n||Array.isArray(n)&&0===n.length||""===n||e.pubads().setTargeting(t,n)}let b={fetchMarginPercent:100,renderMarginPercent:50,mobileScaling:2},y=!0;function w(){window.googletag.cmd.push(()=>{let e=window.googletag;e.pubads().enableSingleRequest(),e.pubads().collapseEmptyDivs(!0,!0),y&&e.setConfig({lazyLoad:b})})}function x(){if(i=null,0===l.length)return;let e=l.splice(0);g||(g=!0,(0,t.onConsentChange)(e=>{var t,n,r,a;m=e,u&&d&&(null===(a=f)||a.nonPersonalizedAds!==e.nonPersonalizedAds||a.restrictDataProcessing!==e.restrictDataProcessing)&&(null==(r=window.googletag)||null==(n=r.cmd)||null==(t=n.push)||t.call(n,()=>{v(e),window.googletag.pubads().refresh()}))})),(0,t.awaitAdsConsent)().then(e=>(m=e,u?Promise.resolve():window.__e80GptStatic?(window.googletag=window.googletag||{cmd:[]},u=!0,w(),Promise.resolve()):c?new Promise(e=>{let t=setInterval(()=>{u&&(clearInterval(t),e())},50)}):(c=!0,new Promise((e,t)=>{window.googletag=window.googletag||{cmd:[]};let n=document.createElement("script");n.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",n.async=!0,n.onload=()=>{u=!0,c=!1,w(),e()},n.onerror=()=>{c=!1,t(Error("Failed to load GPT script"))},document.head.appendChild(n)})))).then(()=>S(e)).then(t=>{let n=new Map;return window.googletag.cmd.push(()=>{let t=window.googletag;for(let m of(s||(s=!0,window.googletag.pubads().addEventListener("slotRenderEnded",e=>{var t,n;let r=o.get(null==(n=e.slot)||null==(t=n.getSlotElementId)?void 0:t.call(n));if(!r)return;let a=!e.isEmpty&&Array.isArray(e.size)&&"number"==typeof e.size[0]?[e.size[0],e.size[1]]:null;r(!e.isEmpty,a)})),e))try{var r,a,l,i,d,u,c,p;let e=m.format??"in_page";if("in_page"===e||"oop_clasico"===e){let n=null==(d=t.pubads)||null==(i=d.call(t))||null==(l=i.getSlots)||null==(a=l.call(i))||null==(r=a.find)?void 0:r.call(a,e=>e.getSlotElementId()===m.divId);n&&(null==(u=t.destroySlots)||u.call(t,[n]));let o="oop_clasico"===e?t.defineOutOfPageSlot(m.adUnitPath,m.divId):t.defineSlot(m.adUnitPath,m.sizes,m.divId);if(!o){m.onError(`defineSlot null: ${m.adUnitPath}`);continue}"oop_clasico"===e&&(null==(c=o.setCollapseEmptyDiv)||c.call(o,!1)),o.addService(t.pubads())}else{let r="anchor"===e?t.enums.OutOfPageFormat.BOTTOM_ANCHOR:t.enums.OutOfPageFormat.INTERSTITIAL,a=t.defineOutOfPageSlot(m.adUnitPath,r);if(!a){m.onReady();continue}"interstitial"===e&&(null==(p=a.setConfig)||p.call(a,{interstitial:{triggers:{navBar:!0,unhideWindow:!0}}})),a.addService(t.pubads()),n.set(m.divId,a)}}catch(e){m.onError(e instanceof Error?e.message:String(e))}m&&v(m),h()}),(0===t.length||!window.apstag?Promise.resolve():new Promise(e=>{let n=!1,r=()=>{n||(n=!0,clearTimeout(a),e())},a=setTimeout(r,2e3);try{window.apstag.fetchBids({slots:t,timeout:1200},()=>{var e,t,n;null==(n=window.googletag)||null==(t=n.cmd)||null==(e=t.push)||e.call(t,()=>{try{window.apstag.setDisplayBids()}catch{}r()})})}catch{r()}})).then(()=>{window.googletag.cmd.push(()=>{let t=window.googletag;
1for(let r of(d||(t.enableServices(),d=!0),e))try{let e=r.format??"in_page";if("in_page"===e||"oop_clasico"===e)t.display(r.divId);else{let e=n.get(r.divId);if(!e)continue;t.display(e)}r.onReady()}catch(e){r.onError(e instanceof Error?e.message:String(e))}})})}).catch(t=>{for(let n of e)n.onError(t.message)})}async function S(e){if(!a()||(null==m?void 0:m.nonPersonalizedAds))return[];let t=e.filter(e=>(e.format??"in_page")==="in_page").map(e=>({slotID:e.divId,slotName:e.adUnitPath,sizes:e.sizes}));return 0===t.length?[]:await function(){if(r)return r;let e=a();return r=e?new Promise(t=>{try{(function(){var e;if(window.apstag)return;let t=[],n=(e,n)=>t.push([e,n]);window.apstag={init:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("i",t)},fetchBids:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("f",t)},setDisplayBids:()=>{},targetingKeys:()=>[],_Q:t};let r=document.createElement("script");r.async=!0,r.src="https://c.amazon-adsystem.com/aax2/apstag.js";let a=document.getElementsByTagName("script")[0];null==a||null==(e=a.parentNode)||e.insertBefore(r,a)})(),n||(window.apstag.init({pubID:e,adServer:"googletag",simplerGPT:!1}),n=!0),t(!0)}catch{t(!1)}}):Promise.resolve(!1)}()?t:[]}e.s(["destroySlot",0,function(e){var t,n,r;o.delete(e),u&&(null==(r=window.googletag)||null==(n=r.cmd)||null==(t=n.push)||t.call(n,()=>{var t,n,r,a,l,o;let s=window.googletag,i=null==(l=s.pubads)||null==(a=l.call(s))||null==(r=a.getSlots)||null==(n=r.call(a))||null==(t=n.find)?void 0:t.call(n,t=>t.getSlotElementId()===e);i&&(null==(o=s.destroySlots)||o.call(s,[i]))}))},"registerSlot",0,function(e){var t,n;("u"<typeof document||(null==(n=document.documentElement)||null==(t=n.dataset)?void 0:t.sandbox)!=="1")&&(!1===e.lazyLoad&&(y=!1),e.onRendered&&o.set(e.divId,e.onRendered),l.push(e),i||(i=setTimeout(x,50)))},"setPageTargeting",0,function(e){if(p={...p,...e},d&&u){var t,n,r;null==(r=window.googletag)||null==(n=r.cmd)||null==(t=n.push)||t.call(n,h)}}],556220)},251922,e=>{"use strict";var t=e.i(289704),n=e.i(280515),r=e.i(556220);e.s(["GptAdSlot",0,function(e){let{adUnitPath:a,sizes:l,slotId:o,lazyLoad:s=!0}=e,i=(0,n.useRef)(!1),d=(0,n.useId)().replace(/[^a-zA-Z0-9]/g,""),u=`${o}-${d}`;return(0,n.useEffect)(()=>{if(!i.current)return i.current=!0,(0,r.registerSlot)({adUnitPath:a,sizes:l,divId:u,lazyLoad:s,onReady:()=>{},onError:()=>{}}),()=>(0,r.destroySlot)(u)},[a,l,u,s]),(0,t.jsx)("div",{id:u,className:"w-full flex items-center justify-center",style:{contain:"layout"}})}])},802072,522290,732756,e=>{"use strict";e.s(["buildVideoAdTag",0,function(e,t){var n,r;let a;try{a=new URL(e)}catch{return e}let l=a.searchParams;l.set("plcmt","instream"===t.placement?"1":"2"),l.set("vpa",t.autoplay?"auto":"click"),l.set("vpmute",t.muted?"1":"0"),l.set("vpos",t.position);let o=null==(n=t.descriptionUrl)?void 0:n.trim();o&&l.set("description_url",o),!l.has("vid_d")&&t.contentDuration&&t.contentDuration>0&&l.set("vid_d",String(Math.round(t.contentDuration)));let s=null==(r=t.language)?void 0:r.trim().slice(0,2).toLowerCase();!l.has("hl")&&s&&/^[a-z]{2}$/.test(s)&&l.set("hl",s);let i=function(e,t){let n=new URLSearchParams(e??"");for(let[e,r]of Object.entries(t??{})){let t=Array.isArray(r)?r.filter(e=>"string"==typeof e&&e.trim()).join(","):(r??"").trim();!t||n.has(e)||n.set(e,t)}return n.toString()||null}(l.get("cust_params"),t.custParams);return i&&l.set("cust_params",i),a.toString()}],802072),e.s(["reportAdOutcome",0,function(e){try{let t=JSON.stringify({v:e.videoId,p:e.position,pl:e.placement,o:e.outcome,e:Math.round(e.errorCode??0),l:Math.round(e.loadMs??0),a:+!!e.autoplay,m:+!!e.muted,c:+!!e.completed,s:+!!e.skipped});if("function"==typeof navigator.sendBeacon)return void navigator.sendBeacon("/api/video-ad",t);fetch("/api/video-ad",{method:"POST",body:t,keepalive:!0}).catch(()=>{})}catch{}}],522290);let t=null;e.s(["loadImaSdk",0,function(){var e;return(null==(e=window.google)?void 0:e.ima)?Promise.resolve():(t||(t=new Promise((e,n)=>{let r=document.createElement("script");r.src="https://imasdk.googleapis.com/js/sdkloader/ima3.js",r.async=!0,r.onload=()=>e(),r.onerror=()=>{t=null,n(Error("IMA SDK failed to load"))},document.head.appendChild(r)})),t)}],732756)},480590,e=>{"use strict";var t=e.i(289704),n=e.i(280515),r=e.i(802072),a=e.i(522290),l=e.i(732756),o=e.i(322426),s=e.i(736264);let i=null,d={addBigPlayButton:!0,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"var(--primary, rgb(83, 84, 254))",adBreaks:"rgb(255, 204, 0)"},controlPanelElements:["play_pause","time_and_duration","spacer","mute","volume","captions","overflow_menu","fullscreen"],overflowMenuButtons:["quality","picture_in_picture","playback_rate","statistics"]};e.s(["VideoPlayer",0,function(u){let{cdnHostname:c,videoId:p,vastTagUrl:m,vastPostrollUrl:f,autoplay:g=!1,adsMuted:v=!1,title:h,orientation:b="landscape",className:y,poster:w,placement:x="instream",contentDuration:S,adCustParams:j}=u,P=(0,n.useRef)(null),N=(0,n.useRef)(null),k=(0,n.useRef)(null),E=(0,n.useRef)(!1),[_,R]=(0,n.use
1State)(!1),[A,C]=(0,n.useState)(!1),T=(0,s.useLocale)(),I=(0,o.isEnglish)(T),L=w??(c?`https://${c}/${p}/thumbnail.jpg`:null),O=(null==m?void 0:m.trim())||null,$=(null==f?void 0:f.trim())||null,z=!!(O||$),D=g||v,B="object-contain",M=JSON.stringify(j??null),U=(0,n.useRef)(!1);(0,n.useEffect)(()=>{let e=k.current;if(!e)return;let t=`vp:${p}`,n=()=>{if(!U.current&&!e.paused&&!e.muted){U.current=!0;try{if(sessionStorage.getItem(t))return;sessionStorage.setItem(t,"1")}catch{}try{let e=JSON.stringify({v:p});"function"==typeof navigator.sendBeacon?navigator.sendBeacon("/api/video-play",e):fetch("/api/video-play",{method:"POST",body:e,keepalive:!0})}catch{}}};return e.addEventListener("playing",n),e.addEventListener("volumechange",n),()=>{e.removeEventListener("playing",n),e.removeEventListener("volumechange",n)}},[p]),(0,n.useEffect)(()=>{if(!g||_)return;let e=P.current;if(!e)return;if("u"<typeof IntersectionObserver)return void R(!0);let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(R(!0),t.disconnect())},{threshold:.5});return t.observe(e),()=>t.disconnect()},[g,_]),(0,n.useEffect)(()=>{if(!_||A)return;let t=!1,n=null,o=null,s=null;return(async()=>{let u=k.current,m=N.current;if(!u||!m)return;let f=`https://${c}/${p}/playlist.m3u8`;try{var h,b,y,w;let c=await (!i&&(i=e.A(981498).then(e=>{let t=e.default??e;return t.polyfill.installAll(),t})),i);if(t)return;if(!c.Player.isBrowserSupported()){if(u.canPlayType("application/vnd.apple.mpegurl")){u.controls=!0,u.src=f,g?(u.muted=!0,u.play().catch(()=>{})):E.current&&u.play().catch(()=>{});return}throw Error("browser not supported by Shaka")}if(n=new c.Player,await n.attach(u),t)return void n.destroy();(o=new c.ui.Overlay(n,m,u)).configure(d),I&&(null==(b=o.getControls())||null==(h=b.getLocalization())||h.changeLocale(["en"])),n.addEventListener("error",()=>{t||C(!0)});let j=n.load(f);j.catch(()=>{});let P=!1,N=()=>{P||t||(P=!0,s&&(clearTimeout(s),s=null),j.then(()=>{!t&&(g?(u.muted=!0,u.play().catch(()=>{})):E.current&&u.play().catch(()=>{}))}).catch(()=>{}))},k=!1;if(z)try{if(await (0,l.loadImaSdk)(),!t){let e=n.getAdManager(),t=window.google;if(e&&(null==t?void 0:t.ima)){let l={placement:x,autoplay:g,muted:D,descriptionUrl:window.location.href,contentDuration:S??null,language:document.documentElement.lang||null,custParams:JSON.parse(M)??void 0},o=O?(0,r.buildVideoAdTag)(O,{...l,position:"preroll"}):null,i=$?(0,r.buildVideoAdTag)($,{...l,position:"postroll"}):null,d=new t.ima.AdsRequest;if(i){let e;e=(e,t,n)=>`<vmap:AdBreak timeOffset="${e}" breakType="linear" breakId="${t}"><vmap:AdSource id="${t}-src" allowMultipleAds="false" followRedirects="true"><vmap:AdTagURI templateType="vast3"><![CDATA[${n}]]></vmap:AdTagURI></vmap:AdSource></vmap:AdBreak>`,d.adsResponse='<?xml version="1.0" encoding="UTF-8"?><vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">'+(o?e("start","preroll",o):"")+(i?e("end","postroll",i):"")+"</vmap:VMAP>"}else d.adTagUrl=o;null==(y=d.setAdWillAutoPlay)||y.call(d,g),null==(w=d.setAdWillPlayMuted)||w.call(d,D),O&&n.configure({ads:{skipPlayDetection:!0}}),e.requestClientSideAds(d,null);let c=o?"preroll":"postroll",m=0,f=null,h=()=>f??(f={pos:c,loadMs:m,filled:!1,completed:!1,skipped:!1,done:!1}),b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=h();n.done||(n.done=!0,(0,a.reportAdOutcome)({videoId:p,position:n.pos,placement:x,outcome:e,errorCode:t,loadMs:n.loadMs,autoplay:g,muted:D,completed:n.completed,skipped:n.skipped}),(n.filled||"error"===e)&&(c="postroll"),f=null)};if(e.addEventListener("ads-loaded",e=>{m=Math.round(1e3*(Number(null==e?void 0:e.loadTime)||0))}),e.addEventListener("ad-started",()=>{h().filled=!0}),v&&!g){let t=!1;e.addEventListener("ad-started",()=>{u.muted||(u.muted=!0,t=!0)});let n=()=>{t&&(t=!1,u.muted=!1)};for(let t of["ad-stopped","ad-error","all-ads-completed"])e.addEventListener(t,n)}if(e.addEventListener("ad-complete",()=>{h().completed=!0}),e.addEventListener("ad-skipped",()=>{h().skipped=!0}),e.addEventListener("ad-error",e=>{let t=0;try{var n,r,a,l;t=Number(null==e||null==(l=e.originalEvent)||null==(a=l.getError)||null==(r=a.call(l))||null==(n=r.getErrorCode)?void 0:n.call(r))||0}catch{}b("error",t)}),e.addEventListener("ad-stopped",()=>{b((null==f?void 0:f.filled)?"filled":"error")}),o){k=!0,s=setTimeout(()=>{b("timeout"),N()},4e3);let t=()=>{s&&(clearTimeout(s),s=null)};for(let n of(e.addEventListener("ad-started",t),e.addEventListener("ad-content-pause-requested",t),["ad-error","ad-stopped","all-ads-completed"]))e.addEventListener(n,N)}}}}catch{}k||N()}catch{t||C(!0)}})(),()=>{t=!0,s&&clearTimeout(s),o?o.destroy().catch(()=>{}):n&&n.destroy().catch(()=>{})}},[_,A,z,O,$,g,v,c,p,x,S,M,I]);let V=(0,n.useCallback)(()=>{E.current=!0,R(!0)},[]);if(A){let e=`https://${c}/${p}/playlist.m3u8`;return(0,t.jsx)("div",{className:y??"absolute inset-0 h-full w-full",children:(0,t.jsx)("video",{src:e,poster:L??void 0,title:h,controls:!0,playsInl
1ine:!0,muted:g,autoPlay:g,className:"h-full w-full object-contain bg-black"})})}return(0,t.jsx)("div",{ref:P,className:y??"absolute inset-0 h-full w-full",children:(0,t.jsxs)("div",{className:"relative h-full w-full overflow-hidden bg-black",children:[(0,t.jsx)("div",{ref:N,className:"absolute inset-0 h-full w-full",children:(0,t.jsx)("video",{ref:k,playsInline:!0,poster:L??void 0,title:h,preload:"none",className:`h-full w-full ${B}`})}),!_&&(0,t.jsxs)("button",{type:"button",onClick:V,"aria-label":h?`${(0,o.t)(T,"Reproducir","Play")}: ${h}`:(0,o.t)(T,"Reproducir video","Play video"),className:"group absolute inset-0 z-10 flex items-center justify-center bg-black/10 transition-colors hover:bg-black/20",children:[L&&(0,t.jsx)("img",{src:L,alt:h??"",className:`absolute inset-0 h-full w-full ${B}`,loading:"lazy"}),(0,t.jsx)("span",{className:"relative flex size-16 items-center justify-center rounded-full bg-black/55 backdrop-blur-sm transition-transform group-hover:scale-105",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"ml-1 size-7 fill-white","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})})})]})]})})}])},859219,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={callServer:function(){return l.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let l=e.r(484841),o=e.r(790243),s=e.r(909433)},270673,e=>{"use strict";var t=e.i(289704),n=e.i(280515),r=e.i(859219);let a=(0,r.createServerReference)("408fdb232c4f184f0b61e71aad5de2374ee91b6a66",r.callServer,void 0,r.findSourceMapURL,"votarEncuesta");var l=e.i(297402),o=e.i(736264),s=e.i(322426);let i='"Inter", system-ui, -apple-system, Arial, sans-serif';e.s(["EncuestaWidget",0,function(e){let r,{encuesta:d,titulo:u,fondoUrl:c,colorFondo:p,bannerSlot:m}=e,[f,g]=(0,n.useState)({yaVoto:!1,votos:Object.fromEntries(d.respuestas.map(e=>[e.id,e.votos])),total:d.totalVotos}),[v,h]=(0,n.useState)(new Set),[b,y]=(0,n.useState)([]),[w,x]=(0,n.useState)(null),[S,j]=(0,n.useTransition)(),P=(0,l.useDialect)(),N=(0,o.useLocale)(),k=`e80_encuesta_voto_${d.id}`;(0,n.useEffect)(()=>{let e=[];try{let t=window.localStorage.getItem(k);t&&(e=JSON.parse(t).filter(e=>Number.isInteger(e)))}catch{}let t=document.cookie.match(RegExp(`(?:^|;\\s*)encuesta_${d.id}=1`));e.length>0&&y(e),(e.length>0||t)&&g(e=>({...e,yaVoto:!0}))},[d.id,k]),(0,n.useEffect)(()=>{let e=!1;return fetch(`/api/encuestas/${d.id}/resultados`).then(e=>e.ok?e.json():null).then(t=>{if(e||!(null==t?void 0:t.porRespuesta))return;let n={};for(let e of t.porRespuesta)n[e.id]=e.votos;g(e=>({...e,votos:n,total:t.total}))}).catch(()=>{}),()=>{e=!0}},[d.id]);let E="cerrada"===d.estado||!!(d.cierreProgramado&&new Date(d.cierreProgramado)<=new Date),_=f.yaVoto||E,R="unica"===d.modoSeleccion;function A(e){y(e),g(e=>({...e,yaVoto:!0})),x(null);try{window.localStorage.setItem(k,JSON.stringify(e))}catch{}j(async()=>{try{await a({encuestaId:d.id,respuestaIds:e})}catch{}})}let C=f.total+b.length,T=d.mostrarCantidadVotos&&C>0,I=c&&p?{backgroundColor:p,backgroundImage:`url("${c}")`}:c?{backgroundImage:`url("${c}")`}:p?{backgroundColor:p,backgroundImage:"none"}:void 0;return(0,t.jsxs)("div",{className:"encuesta-box relative overflow-hidden p-6 text-white",style:I,children:[(0,t.jsxs)("div",{className:"mb-[18px] flex flex-wrap items-center justify-between gap-x-4 gap-y-2",children:[(0,t.jsx)("h3",{className:"text-[21px] font-medium uppercase leading-none",children:u??(0,s.t)(P,"Encuesta","Poll")}),m&&(0,t.jsx)("div",{className:"shrink-0",children:m})]}),(0,t.jsx)("p",{className:`text-lg font-medium leading-tight text-white ${d.bajada?"mb-2":"mb-8"}`,children:d.pregunta}),d.bajada&&(0,t.jsx)("p",{className:"mb-8 text-sm font-medium leading-snug text-white/85",children:d.bajada}),(0,t.jsx)("div",{className:"space-y-4",style:{fontFamily:i},children:d.respuestas.map(e=>{let n,r=(n=e.id,(f.votos[n]??0)+ +!!b.includes(n)),a=0===C?0:r/C*100,l=`${Math.round(10*a)/10}%`,o=v.has(e.id);return(0,t.jsx)("button",{type:"button",onClick:()=>(function(e){if(!_){if(x(null),R)return void A([e]);h(t=>{let n=new Set(t);return n.has(e)?n.delete(e):(!d.maxSelecciones||n.size<d.maxSelecciones)&&n.add(e),n})}})(e.id),disabled:_||S,className:`relative min-h-[38px] w-full overflow-hidden rounded-[20px] border bg-white px-4 text-left text-xs text-black transition-colors md:px-5 ${_?"grid cursor-default border-white":`block py-3 md:py-4 ${o?"cursor-pointer border-black/30":"cursor-pointer border-white hover:border-black/15"}`}`,children:_?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,
1className:"absolute inset-y-px left-0 z-0 bg-[#DBDBDB] transition-[width] duration-500",style:{width:`${a}%`}}),(0,t.jsxs)("span",{"aria-hidden":!0,className:"invisible col-start-1 row-start-1 flex items-center gap-2 py-3 md:py-4",children:[d.conImagen&&e.imagenUrl&&(0,t.jsx)("span",{className:"h-8 w-8 shrink-0"}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block break-words",children:e.texto}),e.textoSecundario&&(0,t.jsx)("span",{className:"block text-xs",children:e.textoSecundario})]})]}),(0,t.jsxs)("span",{className:"relative z-10 col-start-1 row-start-1 self-center py-3 md:py-2",children:[(0,t.jsxs)("span",{className:"flex items-center justify-between gap-4",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2 md:max-w-[75%]",children:[d.conImagen&&e.imagenUrl&&(0,t.jsx)("img",{src:e.imagenUrl,alt:e.texto,className:"h-8 w-8 shrink-0 rounded object-cover"}),(0,t.jsx)("span",{className:"min-w-0 break-words",children:e.texto})]}),(0,t.jsx)("span",{className:"-mr-2 min-w-[2.8rem] shrink-0 text-right md:-mr-1 md:min-w-0",children:l})]}),e.textoSecundario&&(0,t.jsx)("span",{className:"mt-0.5 block text-xs text-black/60",children:e.textoSecundario})]})]}):(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[d.conImagen&&e.imagenUrl&&(0,t.jsx)("img",{src:e.imagenUrl,alt:e.texto,className:"h-8 w-8 shrink-0 rounded object-cover"}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block break-words",children:e.texto}),e.textoSecundario&&(0,t.jsx)("span",{className:"block text-xs text-black/60",children:e.textoSecundario})]}),!R&&(0,t.jsx)("span",{"aria-hidden":!0,className:`ml-auto h-4 w-4 shrink-0 rounded-[4px] border ${o?"border-black bg-black":"border-black/40"}`})]})},e.id)})}),w&&(0,t.jsx)("p",{className:"mt-3 text-sm font-medium text-white",children:w}),!_&&!R&&(0,t.jsx)("button",{type:"button",onClick:function(){0===v.size?x((0,s.dl)(P,{rioplatense:"Elegà al menos una opción",neutral:"Elige al menos una opción",en:"Choose at least one option"})):A([...v])},disabled:S||0===v.size,className:"mt-4 rounded-full bg-white px-5 py-2 text-sm font-semibold text-[color:var(--encuesta-accent)] transition-opacity disabled:opacity-60",style:{fontFamily:i},children:S?(0,s.t)(P,"Enviando...","Submitting..."):(0,s.t)(P,"Votar","Vote")}),(T||_&&!E)&&(0,t.jsxs)("div",{className:"flex items-end justify-between gap-3 pt-3 text-base text-white",style:{fontFamily:i},children:[(0,t.jsx)("span",{children:T?(r=C.toLocaleString(N),(0,s.isEnglish)(N)?1===C?"1 vote":`${r} votes`:`${r} votos`):""}),_&&!E&&(0,t.jsx)("span",{className:"text-xs text-white/90",children:(0,s.t)(P,"Gracias por participar!","Thank you for voting!")})]})]})}],270673)},715445,e=>{"use strict";let t=(0,e.i(895345).default)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],715445)},801647,e=>{"use strict";let t=(0,e.i(895345).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],801647)},297402,e=>{"use strict";var t=e.i(289704),n=e.i(280515);let r=(0,n.createContext)("rioplatense");e.s(["DialectProvider",0,function(e){let{variant:n,children:a}=e;return(0,t.jsx)(r.Provider,{value:n,children:a})},"useDialect",0,function(){return(0,n.useContext)(r)}])},819185,11558,294237,e=>{"use strict";var t=e.i(289704),n=e.i(280515),r=e.i(538422),a=Symbol.for("react.lazy"),l=n[" use ".trim().toString()];function o(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===a&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function s(e){var a;let s,i=(a=e,(s=n.forwardRef((e,t)=>{let{children:a,...s}=e;if(o(a)&&"function"==typeof l&&(a=l(a._payload)),n.isValidElement(a)){var i,d,u;let e,l,o=(l=(e=null==(d=Object.getOwnPropertyDescriptor((i=a).props,"ref"))?void 0:d.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(l=(e=null==(u=Object.getOwnPropertyDescriptor(i,"ref"))?void 0:u.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref,c=function(e,t){let n={...t};for(let r in t){let a=e[r],l=t[r];/^on[A-Z]/.test(r)?a&&l?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=l(...t);return a(...t),r}:a&&(n[r]=a):"style"===r?n[r]={...a,...l}
1:"className"===r&&(n[r]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}(s,a.props);return a.type!==n.Fragment&&(c.ref=t?(0,r.composeRefs)(t,o):o),n.cloneElement(a,c)}return n.Children.count(a)>1?n.Children.only(null):null})).displayName=`${a}.SlotClone`,s),d=n.forwardRef((e,r)=>{let{children:a,...s}=e;o(a)&&"function"==typeof l&&(a=l(a._payload));let d=n.Children.toArray(a),c=d.find(u);if(c){let e=c.props.children,a=d.map(t=>t!==c?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,t.jsx)(i,{...s,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,a):null})}return(0,t.jsx)(i,{...s,ref:r,children:a})});return d.displayName=`${e}.Slot`,d}var i=s("Slot"),d=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}e.s(["Slot",0,i,"createSlot",0,s],11558);var c=e.i(7284);let p=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,m=c.clsx,f=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return m(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:l}=t,o=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],r=null==l?void 0:l[e];if(null===t)return null;let o=p(t)||p(r);return a[e][o]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return m(e,o,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...s}[t]):({...l,...s})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)};e.s(["cva",0,f],294237);var g=e.i(864618);let v=f("inline-flex items-center justify-center whitespace-nowrap rounded-[4px] text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",success:"bg-success text-success-foreground shadow hover:bg-success/90",secondary:"bg-secondary text-secondary-foreground border border-input shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-[4px] px-3",lg:"h-11 rounded-[4px] px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),h=n.forwardRef((e,n)=>{let{className:r,variant:a,size:l,asChild:o=!1,...s}=e;return(0,t.jsx)(o?i:"button",{className:(0,g.cn)(v({variant:a,size:l,className:r})),ref:n,...s})});h.displayName="Button",e.s(["Button",0,h],819185)},337904,e=>{"use strict";var t=e.i(289704),n=e.i(280515),r=e.i(864618);let a=n.forwardRef((e,n)=>{let{className:a,type:l,...o}=e;return(0,t.jsx)("input",{type:l,className:(0,r.cn)("flex h-10 w-full rounded-[4px] border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:shadow-[0_0_0_1px_#0070f3] focus-visible:border-[#0070f3] disabled:cursor-not-allowed disabled:opacity-50",a),ref:n,...o})});a.displayName="Input",e.s(["Input",0,a])},118812,e=>{"use strict";var t=e.i(289704),n=e.i(280515);e.s(["Turnstile",0,function(e){let{siteKey:r,onVerify:a,onExpire:l}=e,o=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=!1;return(window.turnstile?Promise.resolve():(window.__turnstileScriptLoading||(window.__turnstileScriptLoading=new Promise((e,t)=>{let n=document.createElement("script");n.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",n.async=!0,n.defer=!0,n.onload=()=>e(),n.onerror=()=>t(Error("turnstile_load_failed")),document.head.appendChild(n)})),window.__turnstileScriptLoading)).then(()=>{!e&&o.current&&window.turnstile&&(s.current=window.turnstile.render(o.current,{sitekey:r,callback:a,"expired-callback":l,theme:"light",size:"normal"}))}).catch(()=>{}),()=>{if(e=!0,s.current&&window.turnstile)try{window.turnstile.remove(s.current)}catch{}}},[r]),(0,t.jsx)("div",{ref:o})}])},695219,e=>{"use strict";var t=e.i(289704),n=e.i(280515),r=e.i(819185),a=e.i(337904),l=e.i(864618),o=e.i(297402),s=e.i(322426),i=e.i(118812),d=e.i(859219);let u=(0,d.createServerReference)("00038bb551efbd83f7a82315f78b98450292d53855",d.callServer,void 0,d.findSourceMapURL,"getNewsletterFormToken"),c=(0,d.createServerReference)("40f53a18c1f21f4871aad192a7c4066350c15b845e",d.
1callServer,void 0,d.findSourceMapURL,"subscribeToList");e.s(["NewsletterSubscribeForm",0,function(e){let{listSlug:d,titulo:p,descripcion:m,source:f="modulo",layout:g="stacked",onSuccess:v,compact:h=!1}=e,b=(0,o.useDialect)(),[y,w]=(0,n.useState)(""),[x,S]=(0,n.useState)(""),[j,P]=(0,n.useState)(!1),[N,k]=(0,n.useState)(null),E=(0,n.useRef)(null),_=(0,n.useRef)(null),[R,A]=(0,n.useState)(null),[C,T]=(0,n.useState)(!1),[I,L]=(0,n.useState)(""),[O,$]=(0,n.useState)(0);function z(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_.current&&!e)return _.current;let t=u().then(e=>{let t={token:e.token,at:Date.now(),siteKey:e.turnstileSiteKey};return E.current=t,A(e.turnstileSiteKey),t}).catch(()=>(_.current=null,null));return _.current=t,t}let D=!!R&&!I;function B(){C||(T(!0),z())}let M=()=>(0,s.dl)(b,{rioplatense:"Esperá un momento a que termine la verificación y volvé a tocar «Suscribirme».",neutral:"Espera un momento a que termine la verificación y vuelve a pulsar «Suscribirme».",en:"Please wait a moment for the verification to finish, then tap âSubscribeâ again."});async function U(e){e.preventDefault();let t=y.trim();if(!t||j)return;if(D)return void k({kind:"error",message:M()});P(!0),k(null);let n=!1,r=!1;try{let e=E.current??await z();if((!e||Date.now()-e.at>66e5)&&(e=await z(!0)),(null==e?void 0:e.siteKey)&&!I){T(!0),k({kind:"error",message:M()});return}let a=e?3200-(Date.now()-e.at):0;a>0&&await new Promise(e=>setTimeout(e,a)),n=!0;let l=await c({listSlug:d,email:t,source:f,formToken:null==e?void 0:e.token,website:x,turnstileToken:I||null});l.ok?(r=!0,k({kind:"success",needsConfirm:!!l.needsConfirm,already:!!l.alreadySubscribed,email:t}),null==v||v()):(("form_vencido"===l.error||"reintentar"===l.error)&&z(!0),k({kind:"error",message:function(e,t){switch(e){case"email_invalido":return(0,s.dl)(t,{rioplatense:"Revisá que el correo esté bien escrito.",neutral:"Revisa que el correo esté bien escrito.",en:"Please check that your email address is correct."});case"lista_no_encontrada":return(0,s.t)(t,"Este newsletter ya no está disponible.","This newsletter is no longer available.");case"no_disponible":return(0,s.dl)(t,{rioplatense:"Por ahora no es posible suscribirse. Probá de nuevo más tarde.",neutral:"Por ahora no es posible suscribirse. Prueba de nuevo más tarde.",en:"Subscriptions aren't available right now. Please try again later."});case"form_vencido":return(0,s.dl)(t,{rioplatense:"El formulario estuvo abierto mucho tiempo. Recargá la página y volvé a intentarlo.",neutral:"El formulario estuvo abierto mucho tiempo. Recarga la página y vuelve a intentarlo.",en:"This form has been open for too long. Please reload the page and try again."});case"reintentar":return(0,s.dl)(t,{rioplatense:"No pudimos procesar la suscripción. Esperá unos segundos y probá de nuevo.",neutral:"No pudimos procesar la suscripción. Espera unos segundos y prueba de nuevo.",en:"We couldn't process your subscription. Wait a few seconds and try again."});case"captcha":return(0,s.dl)(t,{rioplatense:"No pudimos comprobar que no seas un robot. Probá otra vez.",neutral:"No pudimos comprobar que no eres un robot. Prueba otra vez.",en:"We couldn't verify that you're not a robot. Please try again."});case"demasiados_intentos":return(0,s.dl)(t,{rioplatense:"Recibimos demasiados intentos en poco tiempo. Probá de nuevo en un rato.",neutral:"Recibimos demasiados intentos en poco tiempo. Prueba de nuevo en un rato.",en:"We've received too many attempts in a short time. Please try again later."});case"envio_fallo":return(0,s.dl)(t,{rioplatense:"No pudimos mandarte el correo de confirmación. Revisá la dirección o probá en unos minutos.",neutral:"No pudimos enviarte el correo de confirmación. Revisa la dirección o prueba en unos minutos.",en:"We couldn't send you the confirmation email. Check the address or try again in a few minutes."});case"tenant_not_found":return console.error("[newsletter] suscripción sin tenant resuelto"),(0,s.dl)(t,{rioplatense:"No pudimos completar la suscripción en este momento. Probá de nuevo en unos minutos.",neutral:"No pudimos completar la suscripción en este momento. Prueba de nuevo en unos minutos.",en:"We couldn't complete your subscription right now. Please try again in a few minutes."});default:return(0,s.dl)(t,{rioplatense:"No pudimos completar la suscripción. Probá de nuevo.",neutral:"No pudimos completar la suscripción. Prueba de nuevo.",en:"We couldn't complete your subscription. Please try again."})}}(l.error,b)}))}catch{k({kind:"error",message:(0,s.dl)(b,{rioplatense:"Hubo un error de conexión. Probá de nuevo.",neutral:"Hubo un error de conexión. Prueba de nuevo.",en:"There was a connection error. Please try again."})})}finally{P(!1),n&&!r&&(L(""),$(e=>e+1))}}return(null==N?void 0:N.kind)==="success"?(0,t.jsx)("div",{role:"status",className:(0,l.cn)("rounded-lg border border-success/30 bg-success/10",h?"p-3":"p-4"),children:N.already?(0,t.jsx)("p",{className:"text-sm",children:(0,s.dl)(b,{rioplatense:"Ya estás suscripto a este newsletter. ¡Gracias!",neutral:"Ya estás suscrito a este newsletter. ¡Gracias!",en:"You're already subscribed to this newsletter. Thank y
1ou!"})}):N.needsConfirm?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-sm",children:[(0,s.dl)(b,{rioplatense:"¡Casi listo! Te mandamos un correo a ",neutral:"¡Casi listo! Te enviamos un correo a ",en:"Almost done! We sent an email to "}),(0,t.jsx)("strong",{className:"break-all",children:N.email}),(0,s.dl)(b,{rioplatense:". Abrilo y tocá el botón para confirmar la suscripción.",neutral:". Ãbrelo y pulsa el botón para confirmar la suscripción.",en:". Open it and tap the button to confirm your subscription."})]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:(0,s.dl)(b,{rioplatense:"Si no lo ves en unos minutos, revisá la carpeta de spam o correo no deseado.",neutral:"Si no lo ves en unos minutos, revisa la carpeta de spam o correo no deseado.",en:"If you don't see it in a few minutes, check your spam or junk folder."})})]}):(0,t.jsx)("p",{className:"text-sm",children:(0,s.dl)(b,{rioplatense:"Suscripción confirmada. Vas a recibir las próximas ediciones.",neutral:"Suscripción confirmada. Recibirás las próximas ediciones.",en:"Subscription confirmed. You'll receive upcoming editions."})})}):(0,t.jsxs)("div",{className:h?"space-y-2":"space-y-3",children:[p?(0,t.jsx)("h3",{className:(0,l.cn)("font-semibold",h?"text-base":"text-lg"),children:p}):null,m?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:m}):null,(0,t.jsxs)("form",{onSubmit:U,className:"relative space-y-2",children:[(0,t.jsxs)("div",{className:"inline"===g?"flex flex-wrap gap-2":"space-y-2",children:[(0,t.jsx)(a.Input,{type:"email",name:"email",required:!0,autoComplete:"email",inputMode:"email",maxLength:254,value:y,onFocus:B,onChange:e=>{B(),w(e.target.value)},placeholder:(0,s.t)(b,"[email protected]","[email protected]"),"aria-label":(0,s.t)(b,"Tu correo electrónico","Your email address"),disabled:j,className:"inline"===g?"min-w-[12rem] flex-1":"w-full"}),(0,t.jsx)(r.Button,{type:"submit",disabled:j||C&&D,className:"inline"===g?"shrink-0":"w-full sm:w-auto",children:j?(0,s.t)(b,"Enviandoâ¦","Submittingâ¦"):(0,s.t)(b,"Suscribirme","Subscribe")})]}),(0,t.jsx)("div",{className:"absolute left-[-9999px] top-auto h-px w-px overflow-hidden","aria-hidden":"true",children:(0,t.jsxs)("label",{children:["No completar",(0,t.jsx)("input",{type:"text",name:"website",value:x,onChange:e=>S(e.target.value),tabIndex:-1,autoComplete:"off"})]})}),R&&C?(0,t.jsx)(i.Turnstile,{siteKey:R,onVerify:L,onExpire:()=>L("")},O):null]}),(null==N?void 0:N.kind)==="error"?(0,t.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:N.message}):(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:(0,s.dl)(b,{rioplatense:"Podés darte de baja cuando quieras.",neutral:"Puedes darte de baja cuando quieras.",en:"You can unsubscribe at any time."})})]})}],695219)}]);
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.