1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29259,65238,84051,87177],{51283:(e,t,a)=>{Promise.resolve().then(a.bind(a,89041))},89041:(e,t,a)=>{"use strict";a.d(t,{default:()=>x});var s=a(95155),r=a(12115),n=a(27988),l=a(53896),o=a(52619),c=a.n(o),i=a(38773),d=a(74174),m=a(49723);function x(e){let{locale:t="es"}=e,a=m.u[t],{session:o}=(0,d.A)(),[x,p]=(0,r.useState)(null);(0,r.useEffect)(()=>{let e=!0;return(async()=>{try{let t=await fetch("/api/studio/acceso",{cache:"no-store",headers:(null==o?void 0:o.access_token)?{Authorization:"Bearer ".concat(o.access_token)}:{}}),a=await t.json();e&&p(a)}catch(t){e&&p({puede:!1,motivo:"cerrado"})}})(),()=>{e=!1}},[null==o?void 0:o.access_token]);let[u,h]=(0,r.useState)(null),[g,b]=(0,r.useState)(null),[f,w]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=new URLSearchParams(window.location.search);if("1"!==e.get("momentos"))return;let t=new URLSearchParams;for(let a of["nba_player_id","espn_id","tipos"]){let s=e.get(a);s&&t.set(a,s)}if(e.has("claves")){var s;t.set("claves",null!=(s=e.get("claves"))?s:"")}else{for(let a of["desde","hasta","partido","periodos"]){let s=e.get(a);s&&t.set(a,s)}t.set("limite","200")}let r=!0;return(async()=>{try{var e,s;let n=await fetch("/api/momentos?".concat(t),{cache:"no-store"}),o=await n.json();if(!r)return;if(!n.ok||!(null==o||null==(e=o.momentos)?void 0:e.length))return void b(null!=(s=null==o?void 0:o.error)?s:a.noRecuperarMomentos);h(o);let c=o.seleccion;c&&c.confirmados<c.pedidos&&w(a.deNElegidos.replace("{p}",String(c.pedidos)).replace("{c}",String(c.confirmados)));try{sessionStorage.setItem(l.uL,JSON.stringify({v:1,guardado:Date.now(),identidad:o.identidad,ambito:o.ambito,cobertura:o.cobertura,tipos:[...new Set(o.momentos.map(e=>e.tipo))],momentos:o.momentos}))}catch(e){}}catch(e){r&&b(a.noRecuperarMomentos)}})(),()=>{r=!1}},[]),(0,s.jsx)("main",{className:"min-h-screen",style:{background:"var(--bg)"},children:(0,s.jsxs)("div",{className:"max-w-5xl mx-auto px-5 py-10",children:[(0,s.jsxs)("header",{className:"mb-8",children:[(0,s.jsx)("p",{className:"text-[11px] font-extrabold uppercase tracking-[.24em]",style:{color:"var(--accent)"},children:"Studio"}),(0,s.jsxs)("h1",{className:"sw-cond text-white mt-2",style:{fontSize:"clamp(2.2rem, 6vw, 4.2rem)",lineHeight:1.03},children:[a.promesa1,(0,s.jsx)("br",{}),a.promesa2]}),(0,s.jsx)("p",{className:"mt-4 text-white/60 max-w-2xl",style:{fontSize:"1.02rem",lineHeight:1.55},children:a.lead}),(null==x?void 0:x.puede)&&(0,s.jsxs)("div",{className:"mt-6 flex flex-wrap items-center gap-x-4 gap-y-2","data-studio-puerta":"arriba",children:[(0,s.jsxs)(c(),{href:"es"===t?"/redactor":"/redactor?lang=".concat(t),className:"inline-flex items-center gap-2 rounded-full px-5 py-2.5 text-[14px] font-bold text-white",style:{background:"var(--accent)"},children:[a.entrar," â"]}),(0,s.jsx)("p",{className:"text-white/70 text-[15px]",children:a.puedes})]})]}),(0,s.jsx)("img",{src:"/inventario-assets/objetos/studio.png",alt:"",className:"w-full rounded-2xl border border-white/10 mb-9",style:{boxShadow:"0 30px 70px rgba(0,0,0,.55)"}}),(0,s.jsx)("section",{className:"grid gap-4 sm:grid-cols-3 mb-9",children:a.pasos.map(e=>(0,s.jsxs)("div",{className:"rounded-2xl border border-white/10 p-5",style:{background:"rgba(255,255,255,.03)"},children:[(0,s.jsx)("h2",{className:"sw-cond text-white text-[1.3rem] leading-tight",children:e.titulo}),(0,s.jsx)("p",{className:"text-white/55 text-[14px] mt-2 leading-relaxed",children:e.texto})]},e.titulo))}),(u||g)&&(0,s.jsxs)("section",{className:"rounded-2xl border border-white/12 p-5 mb-6",style:{background:"rgba(255,255,255,.03)"},children:[(0,s.jsxs)("p",{className:"text-[11px] font-extrabold uppercase tracking-[.2em] mb-2",style:{color:"var(--accent)"},children:["\uD83C\uDFAC ",u?a.nMomentosAsistente.replace("{n}",String(u.momentos.length)):a.momentosAsistente]}),f&&(0,s.jsx)("p",{className:"text-white/55 text-[13px] mb-2",children:f}),g?(0,s.jsx)("p",{className:"text-white/60 text-[14px]",children:g}):(0,s.jsx)(n.Ay,{sobre:u,locale:t})]}),!(null==x?void 0:x.puede)&&(0,s.jsx)("section",{className:"rounded-2xl border border-white/12 p-6",style:{background:"linear-gradient(180deg, rgba(19,23,34,.9), rgba(9,12,18,.9))"},"data-studio-puerta":"abajo",children:null===x?(0,s.jsx)("p",{className:"text-white/40 text-sm animate-pulse",children:a.comprobando}):x.puede?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-white/70 text-[15px] mb-3",children:a.puedes}),(0,s.jsxs)(c(),{href:"es"===t?"/redactor":"/redactor?lang=".concat(t),className:"inline-flex items-center gap-2 rounded-full px-5 py-2.5 text-[14px] font-bold text-white",style:{background:"var(--accent)"},children:[a.entrar," â"]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-white/70 text-[15px]",children:"plus"===x.motivo?a.soloPlus:a.deLaCasa}),"sesion"===x.motivo&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-white/45 text-[13.5px] mt-2",children:a.entraConTuCuenta}),(0,s.jsx)(c(),{href:"".concat((0,i.SM)("/entrar",t),"?next=").concat(encodeURIComponent("es"===t?"/redactor":"/redactor?lang=".concat(t))),className:"inline-flex items-center gap-2 rounded-full px-5 py-2.5 mt-3 text-[14px] font-bold text-white",style:{background:"var(--accent)"},"data-studio-entrar-cuenta":"1",children:a.entraCuenta})]})]})})]})})}}},e=>{e.O(0,[25730,52619,70445,8836,66859,28441,31255,77358],()=>e(e.s=51283)),_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.