PageSourceSearch

https://emprendeaprendiendo.com/_next/static/immutable/chunks/41m-r1o_3ixpo.js

js emprendeaprendiendo.com collected 2026-10-02 03:58:01 UTC 27,850 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,397005,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(632781),s=e.i(689664);e.s(["ContactoForm",0,function({labels:e}){let[n,l]=(0,a.useState)(""),[i,o]=(0,a.useState)(""),[c,d]=(0,a.useState)(""),[u,x]=(0,a.useState)("idle");async function m(e){if(e.preventDefault(),"sending"!==u){x("sending");try{if(!(await fetch("/api/hosted/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:n,email:i,message:c})})).ok)throw Error("send_failed");x("sent")}catch{x("error")}}}if("sent"===u)return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col items-center gap-3 rounded-[var(--radius-lg)] border border-[var(--border)] bg-[var(--surface)] px-6 py-10 text-center [overflow-wrap:anywhere]",children:[(0,t.jsx)("span",{className:"grid h-11 w-11 place-items-center rounded-full bg-[var(--accent-soft)] text-[var(--accent-soft-fg)]",children:(0,t.jsx)(s.Check,{size:20})}),(0,t.jsx)("p",{className:"text-base font-semibold text-[var(--fg)]",children:e.sent}),(0,t.jsx)("p",{className:"max-w-sm text-sm leading-relaxed text-[var(--fg-muted)]",children:e.sentBody})]});let f="w-full rounded-[var(--radius)] border border-[var(--border)] bg-[var(--surface)] px-3.5 py-2.5 text-sm text-[var(--fg)] outline-none focus:border-[var(--accent)] transition-colors";return(0,t.jsxs)("form",{onSubmit:m,className:"flex min-w-0 flex-col gap-4 [overflow-wrap:anywhere]",children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-[var(--fg)]",children:e.name}),(0,t.jsx)("input",{value:n,onChange:e=>l(e.target.value),className:f,maxLength:120})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-[var(--fg)]",children:e.email}),(0,t.jsx)("input",{type:"email",required:!0,value:i,onChange:e=>o(e.target.value),className:f})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-[var(--fg)]",children:e.message}),(0,t.jsx)("textarea",{required:!0,value:c,onChange:e=>d(e.target.value),rows:6,maxLength:4e3,className:`${f} resize-y`})]}),"error"===u?(0,t.jsx)("p",{className:"text-sm text-[var(--danger,#dc2626)]",children:e.error}):null,(0,t.jsxs)("button",{type:"submit",disabled:"sending"===u,className:"inline-flex w-fit items-center gap-2 rounded-[var(--radius)] bg-[var(--accent)] px-5 py-2.5 text-sm font-semibold text-[var(--accent-fg)] transition-colors hover:opacity-90 disabled:opacity-50",children:["sending"===u?(0,t.jsx)(r.Loa
1der2,{size:15,className:"animate-spin"}):null,e.send]})]})}])},831615,e=>{"use strict";var t=e.i(843476),a=e.i(948148),r=e.i(292204);e.s(["PreviewHtmlSurface",0,function({html:e,localePrefix:s,destinations:n,brandName:l,brandLogoUrl:i=null,siteBackground:o=null}){let c=(0,a.useTranslations)("Sitio");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sticky top-0 z-[60] flex items-center justify-center gap-2 bg-[#0a0a0c] px-4 py-2 text-center text-xs font-semibold text-white sm:text-sm",children:[(0,t.jsx)("span",{className:"inline-block h-2 w-2 shrink-0 rounded-full bg-[#C5FF3D]"}),c("previewBanner")]}),(0,t.jsx)(r.IndexableHtmlSurface,{html:e,executeScripts:!0,dryRun:!0,localePrefix:s,destinations:n,brandName:l,brandLogoUrl:i,siteBackground:o,adminAssetPreview:!0})]})}])},370347,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148),s=e.i(477183),n=e.i(76590),l=e.i(807311),i=e.i(772382),o=e.i(580860),c=e.i(428359),d=e.i(889890),u=e.i(676525),x=e.i(880809),m=e.i(553335);function f({item:e,labels:a,hidden:s,disabled:x,onToggleHidden:p}){let g=(0,r.useTranslations)("MiWeb"),{attributes:b,listeners:h,setNodeRef:v,transform:w,transition:j,isDragging:y}=(0,n.useSortable)({id:e.id,disabled:x}),N=g("storeDragItem",{title:e.title}),S=g(s?"storeShow":"storeHide");return(0,t.jsxs)("div",{ref:v,style:{transform:l.CSS.Transform.toString(w),transition:j},className:`relative min-w-0 ${y?"z-20 opacity-80 shadow-xl":""}`,children:[(0,t.jsx)("div",{className:s?"h-full opacity-50":"h-full",children:(0,t.jsx)(m.StoreCardView,{item:e,labels:a})}),(0,t.jsxs)("div",{className:"absolute left-2.5 top-2.5 z-10 flex items-center gap-1.5",children:[(0,t.jsx)(u.Button,{type:"button",variant:"secondary",iconOnly:!0,pill:!0,disabled:x,"aria-label":N,className:"h-11 w-11 cursor-grab touch-none bg-[var(--surface)] shadow-sm active:cursor-grabbing",...b,...h,children:(0,t.jsx)(c.GripVertical,{size:17,"aria-hidden":!0})}),(0,t.jsx)(u.Button,{type:"button",variant:"secondary",iconOnly:!0,pill:!0,disabled:x,onClick:p,"aria-label":S,"aria-pressed":s,className:"h-11 w-11 bg-[var(--surface)] shadow-sm",children:s?(0,t.jsx)(o.EyeOff,{size:17,"aria-hidden":!0}):(0,t.jsx)(i.Eye,{size:17,"aria-hidden":!0})}),s?(0,t.jsx)(d.Badge,{className:"bg-[var(--surface)] shadow-sm",children:g("storeHiddenBadge")}):null]})]})}e.s(["StoreGridEditable",0,function({items:e,hiddenIds:l}){let i=(0,r.useTranslations)("Sitio"),o=(0,r.useTranslations)("MiWeb"),c=(0,a.useId)(),d={lessons:e=>i("store.lessons",{count:e}),badgeOwned:i("store.badgeOwned"),badgeStudentOffer:i("store.badgeStudentOffer"),badgeSubscribed:i("store.badgeSubscribed"),ctaOwned:i("store.ctaOwned"),view:i("store.view"),onRequest:i("store.onRequest")},u=(0,a.useMemo)(()=>new Map(e.map(e=>[e.id,e])),[e]),[p,g]=(0,a.useState)(()=>e.map(e=>e.id)),[b,h]=(0,a.useState)(()=>new Set(l)),[v,w]=(0,a.useState)(!1),j=(0,s.useSensors)((0,s.useSensor)(s.PointerSensor,{activationConstraint:{distance:5}}),(0,s.useSensor)(s.KeyboardSensor,{coordinateGetter:n.sortableKeyboardCoordinates}));async function y(e,t,a){g(e),h(t),w(!0);try{let r=await fetch("/api/hosted/store-order",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({order:e,hidden:[...t]})});if(!r.ok)throw Error(String(r.status));x.toast.show({tone:"success",message:a})}catch{g(p),h(b),x.toast.show({tone:"error",message:o("storeEditError")})}finally{w(!1)}}return(0,t.jsx)(s.DndContext,{id:c,sensors:j,collisionDetection:s.closestCenter,onDragEnd:function({active:e,over:t}){if(v||!t||e.id===t.id)return;let a=p.indexOf(Number(e.id)),r=p.indexOf(Number(t.id));a<0||r<0||y((0,n.arrayMove)(p,a,r),b,o("storeOrderSaved"))},children:(0,t.jsx)(n.SortableContext,{items:p,strategy:n.rectSortingStrategy,children:(0,t.jsx)("div",{className:m.STORE_GRID_CLASS,children:p.map(e=>{let a=u.get(e);return a?(0,t.jsx)(f,{item:a,labels:d,hidden:b.has(e),disabled:v,onToggleHidden:()=>(function(e){if(v)return;let t=new Set(b),a=!t.has(e);a?t.add(e):t.delete(e),y(p,t,o(a?"storeHiddenSaved":"storeShownSaved"))})(e)},e):null})})})})}])},553335,e=>{"use strict";var t=e.i(843476),a=e.i(867927);let r="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3";function s({item:e,labels:r}){let n=47*e.id%360,l="owned"===e.state,i="subscribed"===e.state,o=l||i,c=[e.lessonsCount>0?r.lessons(e.lessonsCount):"",function(e){if(e<=0)return"";let t=Math.floor(e/60),a=e%60;return t>0?a>0?`${t}h ${a}min`:`${t}h`:`${a}min`}
1(e.durationMinutes)].filter(Boolean).join(" · ");return(0,t.jsxs)("a",{href:e.href,...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},className:"group flex h-full min-w-0 flex-col overflow-hidden rounded-[var(--radius-lg)] border border-[var(--border)] bg-[var(--surface)] transition-colors hover:border-[var(--accent)]/50",children:[(0,t.jsxs)("div",{className:"relative aspect-[16/10] overflow-hidden",style:e.coverUrl?void 0:{background:`linear-gradient(135deg, hsl(${n} 55% 32%), hsl(${(n+40)%360} 45% 18%))`},children:[e.coverUrl?(0,t.jsx)("img",{src:e.coverUrl,alt:e.title,className:"absolute inset-0 h-full w-full bg-white object-contain"}):null,!o&&e.studentOffer&&r.badgeStudentOffer?(0,t.jsx)("span",{className:"absolute right-2.5 top-2.5 rounded-full bg-[var(--accent)] px-2.5 py-1 text-xs font-semibold text-[var(--accent-fg)]",children:r.badgeStudentOffer}):null,o?(0,t.jsx)("span",{className:"absolute right-2.5 top-2.5 max-w-[calc(100%-1.25rem)] break-words rounded-full bg-[var(--accent)] px-2.5 py-1 text-[11px] font-semibold text-[var(--accent-fg)] [overflow-wrap:anywhere]",children:l?r.badgeOwned:r.badgeSubscribed}):null]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col p-4",children:[(0,t.jsx)("h3",{className:"break-words font-semibold leading-tight [overflow-wrap:anywhere]",children:e.title}),e.instructor?(0,t.jsx)("p",{className:"mt-0.5 break-words text-sm text-[var(--fg-muted)] [overflow-wrap:anywhere]",children:e.instructor}):null,c?(0,t.jsx)("p",{className:"mt-1 flex-1 break-words text-xs text-[var(--fg-faint)] [overflow-wrap:anywhere]",children:c}):(0,t.jsx)("span",{className:"flex-1"}),(0,t.jsx)("div",{className:"mt-3 min-w-0",children:o?(0,t.jsxs)("span",{className:"inline-flex max-w-full items-center gap-1 break-words text-sm font-medium text-[var(--accent)] [overflow-wrap:anywhere]",children:[r.ctaOwned,(0,t.jsx)(a.ChevronRight,{size:15,className:"flex-shrink-0 transition-transform group-hover:translate-x-0.5"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"block break-words text-lg font-bold tracking-tight [overflow-wrap:anywhere]",children:e.offerPriceLabel?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("s",{className:"mr-1.5 text-sm font-normal text-[var(--fg-faint)]",children:e.priceLabel}),e.offerPriceLabel]}):e.priceLabel??r.onRequest}),(0,t.jsx)("span",{className:"mt-2 block w-full rounded-[var(--radius)] bg-[var(--accent)] py-2 text-center text-sm font-medium text-[var(--accent-fg)]",children:r.view})]})})]})]})}e.s(["STORE_GRID_CLASS",0,r,"StoreCardView",0,s,"StoreGridView",0,function({items:e,labels:a}){return(0,t.jsx)("div",{className:r,children:e.map(e=>(0,t.jsx)(s,{item:e,labels:a},e.id))})}])},381486,e=>{"use strict";var t=e.i(843476),a=e.i(378683),r=e.i(81971);let s={"--bg-subtle":"#18181b","--surface":"#141416","--field":"#141416","--fg":"#fafafa","--fg-muted":"#a1a1aa","--fg-faint":"#84848c","--border":"#2a2a2e","--border-strong":"#3f3f46"},n={"--bg-subtle":"rgba(10, 10, 12, 0.05)","--surface":"#ffffff","--field":"#ffffff","--fg":"#0a0a0c","--fg-muted":"#4b4b52","--fg-faint":"#6b6b73","--border":"rgba(10, 10, 12, 0.14)","--border-strong":"rgba(10, 10, 12, 0.28)"};e.s(["BlockSection",0,function({background:e,className:l,children:i}){return(0,t.jsx)("section",{style:function(e){if((0,a.isCustomCtaColor)(e)){let t="#ffffff"===(0,r.textOn)(e)?s:n;return{backgroundColor:e,"--bg":e,...t}}if((0,a.isBlockBackground)(e)&&"light"!==e)return"soft"===e?{backgroundColor:"var(--bg-subtle)"}:"brand"===e?{backgroundColor:"var(--accent-soft)"}:{backgroundColor:"#0a0a0c","--bg":"#0a0a0c",...s}}(e),children:(0,t.jsx)("div",{className:l,children:i})})}],381486)},901830,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148),s=e.i(984678),n=e.i(381486);e.s(["CapturaView",0,function({heading:e,subtitle:l,tag:i,buttonLabel:o,thanksMessage:c,ctaColor:d="accent",background:u}){let x=(0,s.ctaButtonPresentation)(d),m=(0,r.useTranslations)("Sitio"),[f,p]=(0,a.useState)(""),[g,b]=(0,a.useState)("idle"),h=(0,a.useRef)(null);async function v(e){if(e.preventDefault(),"sending"!==g&&f.trim()){b("sending");try{if(!(await fetch("/api/hosted/contacts/lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:f.trim(),tag:i.trim()||void 0,website:h.current?.value||void 0})})).ok)throw Error("lead_failed");b("done")}catch{b("error")}}}return(0,t.jsx)(n.BlockSection,{background:u,className:"px-4 sm:px-6 py-12 sm:py-16",children:(0,t.jsxs)("div",{className:"mx-auto max-w-md rounded-[var(--radius-lg)] border border-[var(--border)] bg-[var(--surface)] px-6 py-8 text-center shadow-[var(--shadow-lg)]",children:[e?(0,t.jsx)("h2",{className:"text-xl sm:text-2xl font-semibold tracking-tight text-[var(--fg)]",children:e}):null,l?(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-[var(--fg-muted)]",children:l}):null,"done"===g?(0,t.jsx)("p",{className:"mt-5 text-sm font-medium text-[var(--accent)]",children:c}):(0,t.jsxs)("form",{onSubmit:v,className:"mt-5 flex flex-col gap-2",children:[(0,t.jsx)("input",{ref:h,type:"text",name:"website",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"pointer-events-none absolute -left-[9999px] h-px w-px overflow-hidden opacity-0"}),(0,t.jsx)("input",{type:"email",required:!0,value:f,onChange:e=>
1p(e.target.value),placeholder:m("capturaEmailPlaceholder"),className:"w-full rounded-[var(--radius)] border border-[var(--border)] bg-[var(--field)] px-3 py-2.5 text-sm text-[var(--fg)] outline-none focus:border-[var(--accent)]"}),(0,t.jsx)("button",{type:"submit",disabled:"sending"===g,className:`inline-flex w-full items-center justify-center rounded-[var(--radius)] px-4 py-2.5 text-sm font-semibold transition-opacity disabled:opacity-60 ${x.className}`,style:x.style,children:o}),"error"===g?(0,t.jsx)("p",{className:"text-xs text-[var(--danger)]",children:m("capturaError")}):null]})]})})}])},668596,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148),s=e.i(381486),n=e.i(87632);e.s(["ContadorView",0,function({heading:e,targetDate:l,endedMessage:i,background:o,simulateFromNowMinutes:c=null,unitsLeft:d=null,clockProductId:u=null,embedded:x=!1}){let m,f,p=(0,r.useTranslations)("Sitio"),g=null!==u&&null===d,b=(0,n.useOfferClock)(g?u:null),h=g&&"none"===b.status,v=l?new Date(l).getTime():NaN,[w,j]=(0,a.useState)(null),y=!g&&null!==c&&null===d,N=null!==d||g||y||!Number.isNaN(v),[S,k]=(0,a.useState)(null);if((0,a.useEffect)(()=>{if(!N||null!==d||h)return;let e=()=>k(Date.now()),t=requestAnimationFrame(()=>{y&&null!==c&&j(Date.now()+6e4*c),e()}),a=setInterval(e,1e3);return()=>{cancelAnimationFrame(t),clearInterval(a)}},[N,y,c,d,h]),!N||h)return null;if(null!==d)return x?(0,t.jsxs)("div",{className:"inline-flex items-baseline gap-2 rounded-[var(--radius)] border border-[var(--border)] bg-[var(--bg)] px-4 py-2.5",children:[(0,t.jsx)("span",{className:"text-xl font-semibold tabular-nums text-[var(--fg)]",children:d}),(0,t.jsx)("span",{className:"text-xs uppercase tracking-wide text-[var(--fg-muted)]",children:p("contadorUnitsLeft",{n:d})})]}):(0,t.jsxs)(s.BlockSection,{background:o,className:"px-4 sm:px-6 py-12 sm:py-14 text-center",children:[e?(0,t.jsx)("h2",{className:"mb-6 text-2xl sm:text-3xl font-semibold tracking-tight text-[var(--fg)]",children:e}):null,(0,t.jsxs)("div",{className:"inline-flex items-baseline gap-2 rounded-[var(--radius-lg)] border border-[var(--border)] bg-[var(--surface)] px-6 py-4",children:[(0,t.jsx)("span",{className:"text-3xl font-semibold tabular-nums text-[var(--fg)]",children:d}),(0,t.jsx)("span",{className:"text-sm uppercase tracking-wide text-[var(--fg-muted)]",children:p("contadorUnitsLeft",{n:d})})]})]});let C=g?"ready"===b.status?new Date(b.clock.deadlineIso).getTime():null:y?w:v,O=null===S||null===C||Number.isNaN(C)?null:{d:Math.floor((f=Math.floor((m=Math.max(0,C-S))/1e3))/86400),h:Math.floor(f%86400/3600),m:Math.floor(f%3600/60),s:f%60,done:m<=0};return x?O?.done?(0,t.jsx)("p",{className:"text-sm font-medium text-[var(--accent)]",children:i}):(0,t.jsx)("div",{className:"flex items-stretch justify-center gap-1.5",children:[{v:O?.d,label:p("contadorDays")},{v:O?.h,label:p("contadorHours")},{v:O?.m,label:p("contadorMin")},{v:O?.s,label:p("contadorSec")}].map((e,a)=>(0,t.jsxs)("div",{className:"min-w-[52px] rounded-[var(--radius)] border border-[var(--border)] bg-[var(--bg)] px-2 py-2",children:[(0,t.jsx)("div",{className:"text-lg font-semibold tabular-nums text-[var(--fg)]",children:null===O?"--":String(e.v).padStart(2,"0")}),(0,t.jsx)("div",{className:"mt-0.5 text-[10px] uppercase tracking-wide text-[var(--fg-muted)]",children:e.label})]},a))}):(0,t.jsxs)(s.BlockSection,{background:o,className:"px-4 sm:px-6 py-12 sm:py-14 text-center",children:[e?(0,t.jsx)("h2",{className:"mb-6 text-2xl sm:text-3xl font-semibold tracking-tight text-[var(--fg)]",children:e}):null,O?.done?(0,t.jsx)("p",{className:"text-lg font-medium text-[var(--accent)]",children:i}):(0,t.jsx)("div",{className:"flex items-stretch justify-center gap-2 sm:gap-3",children:[{v:O?.d,label:p("contadorDays")},{v:O?.h,label:p("contadorHours")},{v:O?.m,label:p("contadorMin")},{v:O?.s,label:p("contadorSec")}].map((e,a)=>(0,t.jsxs)("div",{className:"min-w-[64px] rounded-[var(--radius-lg)] border border-[var(--border)] bg-[var(--surface)] px-3 py-3",children:[(0,t.jsx)("div",{className:"text-2xl sm:text-3xl font-semibold tabular-nums text-[var(--fg)]",children:null===O?"--":String(e.v).padStart(2,"0")}),(0,t.jsx)("div",{className:"mt-1 text-[11px] uppercase tracking-wide text-[var(--fg-muted)]",children:e.label})]},a))})]})}])},385993,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(427038),s=e.i(381486);e.s(["FormularioView",0,function({formId:e,heading:n,background:l}){let[i,o]=(0,a.useState)({formId:e,status:"loading"}),c=i.formId===e?i.status:"loading",d=(0,a.useCallback)(t=>o({formId:e,status:t}),[e]);return"unavailable"===c?null:(0,t.jsx)(s.BlockSection,{background:l,className:`px-4 sm:px-6 py-12 sm:py-16 ${"loading"===c?"hidden":""}`,children:(0,t.jsxs)("div",{className:"mx-auto max-w-md",children:[n?(0,t.jsx)("h2",{className:"mb-4 text-center text-xl sm:text-2xl font-semibold tracking-tight text-[var(--fg)] [overflow-wrap:anywhere]",children:n}):null,(0,t.jsx)(r.FormBlock,{formId:e,site:!0,conversationId:null,onStatusChange:d})]})})}])},507592,e=>{"use strict";var t=e.i(843476),a=e.i(87632);e.s(["OfferClockGate",0,function({productId:e,live:r,expired:s}){let n=(0,a.useOfferClock)(e);return"ready"===n.status&&n.clock.expired?(0,t.jsx)(t.Fragment,{children:s}):(0,t.jsx)(t.Fragment,{children:r})}])},576399,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148),s=e.i(632781),n=e.i(689664),l=e.i(693170),i=e.i(524639),o=e.i(984678),c=e.i(381486);function d(e,t){return e("full"===t?"webinarSignupFull":"already_registered"===t?"webinarSignupAlready":"closed"===t?"webinarSignupClosed":"webinarSignupError")}let u="w-full px-3 py-2 text-sm rounded-[var(--radius)] border border-[var(--border)] bg-[var(--field)] text-[var(--fg)] placeholder:text-[var(--fg-placeholder)] focus:outline-none focus:border-[var(--accent)] transition-colors";e.s(["WebinarSignupView",0,function({slug:e,headline:x,subtitle:m,whenLabel:f,durationMinutes:p,learn:g,presenter:b,registrantCount:h,capacity:v,startIso:w,showCountdown:j,showCount:y,showSeats:N,countdownSeconds:S,hasEnded:k,isLive:C,nextHref:O,ctaColor:T="accent",background:B}){var E;let M=(0,r.useTranslations)("Sitio"),P=(0,o.ctaButtonPresentation)(T),D=`w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 rounded-[var(--radius)] text-sm font-semibold transition-opacity ${P.className}`,[L,z]=(0,a.useState)(""),[F,I]=(0,a.useState)(""),[$,R]=(0,a.useState)("idle"),[q,H]=(0,a.useState)(null),[U,_]=(0,a.useState)(null),A=null!=v&&null!=h&&h>=v;async function V(t){if(t.preventDefault(),L.trim()&&F.trim()){R("submitting");try{let t=await fetch("/api/public/webinars/register",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({slug:e,name:L.trim(),email:F.trim()})});if(t.ok){let e=await t.json().catch(()=>({}));_("string"==typeof e.joinUrl?e.joinUrl:null),R("done");return}let a=await t.json().catch(()=>({}));H("string"==typeof a.error?a.error:"error"),R("error")}catch{H("error"),R("error")}}}async function G(t){if(t.preventDefault(),F.trim()){R("submitting");try{let t=await fetch("/api/public/webinars/waitlist",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({slug:e,email:F.trim()})});R(t.ok?"done":"error")}catch{R("error")}}}return(0,t.jsx)(c.BlockSection,{background:B,className:"mx-auto max-w-md w-full px-4 sm:px-6 py-14",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 roun
1ded-[var(--radius-lg)] border border-[var(--border)] bg-[var(--surface)] p-6 shadow-[var(--shadow-lg)]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 text-center",children:[(0,t.jsx)("h2",{className:"text-2xl font-semibold tracking-tight leading-tight",children:x}),m?(0,t.jsx)("p",{className:"text-sm text-[var(--fg-muted)] leading-relaxed",children:m}):null,b?(0,t.jsx)("p",{className:"text-xs font-medium text-[var(--fg)]",children:M("webinarWith",{name:b})}):null]}),k?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 py-2 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-[var(--fg-muted)] leading-relaxed",children:M("webinarEnded")}),O?(0,t.jsx)("a",{href:O,className:D,style:P.style,children:M("webinarEndedNextCta")}):"done"===$?(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-[var(--radius)] bg-[var(--accent)]/10 text-[var(--accent)] px-3 py-2.5 text-sm",children:[(0,t.jsx)(n.Check,{size:16}),M("webinarWaitlistSuccess")]}):(0,t.jsxs)("form",{onSubmit:G,className:"w-full flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"text-sm text-[var(--fg)]",children:M("webinarWaitlistPrompt")}),(0,t.jsx)("input",{type:"email",value:F,onChange:e=>I(e.target.value),placeholder:M("webinarSignupEmailPlaceholder"),required:!0,className:u}),"error"===$?(0,t.jsx)("p",{className:"text-xs text-[var(--danger)]",children:M("webinarSignupError")}):null,(0,t.jsxs)("button",{type:"submit",disabled:"submitting"===$,className:`${D} disabled:opacity-60`,style:P.style,children:["submitting"===$?(0,t.jsx)(s.Loader2,{size:15,className:"animate-spin"}):null,M("webinarWaitlistButton")]})]})]}):(0,t.jsxs)(t.Fragment,{children:[f?(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 rounded-[var(--radius)] bg-[var(--bg-subtle)] px-3 py-2.5 text-sm font-medium text-[var(--fg)]",children:[(0,t.jsx)(l.Calendar,{size:15,className:"text-[var(--accent)] flex-shrink-0"}),(0,t.jsxs)("span",{className:"capitalize",children:[f,p?` \xb7 ${p} min`:""]})]}):null,C?(0,t.jsx)("div",{className:"flex items-center justify-center py-1",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-[var(--danger)]/15 text-[var(--danger)] text-xs font-bold uppercase tracking-wide",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--danger)] animate-pulse"}),M("webinarLiveNowBadge")]})}):!1!==j&&w?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5 py-1",children:[(0,t.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-[var(--fg-muted)]",children:M("webinarStartsIn")}),(0,t.jsx)(i.Countdown,{targetIso:w,showSeconds:!0===S,labels:{days:M("cdDays"),hours:M("cdHours"),minutes:M("cdMinutes"),seconds:M("cdSeconds")}})]}):null,!1!==y&&h&&h>0||!1!==N&&null!=v&&null!=h&&v-h>0?(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[!1!==y&&h&&h>0?(0,t.jsx)("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-[11px] font-medium bg-[var(--bg-subtle)] border border-[var(--border)] text-[var(--fg-muted)]",children:M("webinarRegisteredCount",{count:h})}):null,!1!==N&&null!=v&&null!=h&&v-h>0?(0,t.jsx)("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-[11px] font-medium bg-[var(--accent)]/10 border border-[var(--accent)]/30 text-[var(--accent)]",children:M("webinarSeatsLeft",{count:v-h})}):null]}):null,g&&g.length>0?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-[var(--fg-muted)]",children:M("webinarLearnTitle")}),(0,t.jsx)("ul",{className:"flex flex-col gap-1.5",children:g.map((e,a)=>(0,t.jsxs)("li",{className:"flex items-start gap-2 text-sm text-[var(--fg)]",children:[(0,t.jsx)(n.Check,{size:15,className:"text-[var(--accent)] flex-shrink-0 mt-0.5"}),(0,t.jsx)("span",{className:"leading-snug",children:e})]},a))})]}):null,A?(0,t.jsx)("div",{className:"flex items-center justify-center gap-2 rounded-[var(--radius)] bg-[var(--bg-subtle)] text-[var(--fg-muted)] px-3 py-2.5 text-sm text-center",children:M("webinarSignupFull")}):"done"===$&&U?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-[var(--radius)] bg-[var(--accent)]/10 text-[var(--accent)] px-3 py-2.5 text-sm",children:[(0,t.jsx)(n.Check,{size:16}),M("webinarSignupSuccessLive")]}),(0,t.jsx)("a",{href:U,className:D,style:P.style,children:M("webinarSignupJoinLive")})]}):"done"===$?(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-[var(--radius)] bg-[var(--accent)]/10 text-[var(--accent)] px-3 py-2.5 text-sm",children:[(0,t.jsx)(n.Check,{size:16}),M("webinarSignupSuccess")]}):"error"===$&&("full"===(E=q)||"already_registered"===E||"closed"===E)?(0,t.jsx)("div",{className:"flex items-center justify-center gap-2 rounded-[var(--radius)] bg-[var(--bg-subtle)] text-[var(--fg)] px-3 py-2.5 text-sm text-center",children:d(M,q)}):(0,t.jsxs)("form",{onSubmit:V,className:"flex flex-col gap-2",children:[(0,t.jsx)("input",{type:"text",value:L,onChange:e=>z(e.target.value),placeholder:M("webinarSignupNamePlaceholder"),required:!0,className:u}),(0,t.jsx)("input",{type:"email",value:F,onChange:e=>I(e.target.value),placeholder:M("webinarSignupEmailPlaceholder"),required:!0,className:u}),"error"===$?(0,t.jsx)("p",{className:"text-xs text-[var(--danger)]",children:d(M,q)}):null,(0,t.jsxs)("button",{type:"submit",disabled:"submitting"===$,className:`${D} disabled:opacity-60`,style:P.style,children:["submitting"===$?(0,t.jsx)(s.Loader2,{size:15,className:"animate-spin"}):null,M("webinarSignupButton")]})]}),(0,t.jsx)("p",{className:"text-[11px] text-[var(--fg-muted)] leading-relaxed text-center",children:M("webinarSignupFootnote")})]})]})})}])},87632,e=>{"use strict";var t=e.i(271645);let a=new Map;e.s(["useOfferClock",0,function(e){let[r,s]=(0,t.useState)(null!==e?{status:"loading"}:{status:"idle"});return(0,t.useEffect)(()=>
1{if(null===e)return;let t=!1;return(async()=>{try{let r=await function(e){let t=a.get(e);if(t)return t;let r=(async()=>{let t=await fetch("/api/hosted/offer-clock",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productId:e})});if(!t.ok)throw Error("clock_failed");return(await t.json()).clock??null})();return a.set(e,r),r.then(()=>setTimeout(()=>a.delete(e),5e3),()=>a.delete(e)),r}(e);if(t)return;s(r?{status:"ready",clock:r}:{status:"none"})}catch{t||s({status:"none"})}})(),()=>{t=!0}},[e]),r}])},524639,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.s(["Countdown",0,function({targetIso:e,showSeconds:r=!1,labels:s}){let[n,l]=(0,a.useState)(null);if((0,a.useEffect)(()=>{let e=()=>l(Date.now()),t=window.setTimeout(e,0),a=window.setInterval(e,r?1e3:3e4);return()=>{window.clearTimeout(t),window.clearInterval(a)}},[r]),null===n)return null;let i=new Date(e).getTime()-n;if(i<=0)return null;let o=Math.floor(i/1e3),c=Math.floor(o/86400),d=Math.floor(o%86400/3600),u=Math.floor(o%3600/60),x=[];return c>0&&x.push({label:s.days,value:c}),x.push({label:s.hours,value:d}),x.push({label:s.minutes,value:u}),r&&x.push({label:s.seconds,value:o%60}),(0,t.jsx)("div",{className:"flex items-center gap-2",children:x.map(e=>(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,t.jsx)("div",{className:"min-w-[2.75rem] px-2 py-1.5 rounded-[var(--radius)] border border-[var(--border)] bg-[var(--surface)] text-[var(--fg)] text-lg font-semibold tabular-nums text-center",children:String(e.value).padStart(2,"0")}),(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-wide text-[var(--fg-muted)]",children:e.label})]},e.label))})}])},693170,e=>{"use strict";let t=(0,e.i(456420).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["Calendar",0,t],693170)}]);

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.