1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5681],{16069:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/go-live",function(){return t(40840)}])},40840:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>f});var l=t(37876),r=t(63065),i=t(89099);function a(){let e=(0,i.useRouter)();return(0,l.jsxs)("div",{className:"relative w-full bg-white border border-dividerGrey rounded-2xl overflow-hidden px-6 sm:px-10 py-12 sm:py-10 flex flex-col sm:flex-row items-center gap-20 sm:gap-6 sm:gap-10 mb-8",children:[(0,l.jsxs)("div",{className:"flex-1 text-center sm:text-left",children:[(0,l.jsxs)("span",{className:"inline-flex items-center gap-1.5 bg-red/10 text-red text-xs font-bold px-3 py-1 rounded-full mb-4",children:[(0,l.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red animate-pulse"}),"LIVE"]}),(0,l.jsxs)("h1",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-black leading-tight mb-3",children:["Go Live and Grow ",(0,l.jsx)("br",{className:"hidden sm:block"}),"Your Audience"]}),(0,l.jsx)("p",{className:"text-grey text-sm sm:text-base leading-relaxed mb-6 max-w-sm",children:"Share your knowledge, connect with people and build your community in real-time."}),(0,l.jsxs)("button",{onClick:()=>e.push("/go-live/setup"),className:"inline-flex items-center gap-2 bg-primary text-white font-semibold text-sm px-6 py-3 rounded-xl hover:bg-primary/90 active:scale-95 transition-all duration-200",children:[(0,l.jsx)(r.A,{size:18}),"Go Live Now"]})]}),(0,l.jsxs)("div",{className:"relative flex-shrink-0 w-40 h-40 sm:w-52 sm:h-52 lg:w-60 lg:h-60",children:[(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/10 to-purple-100 rounded-full"}),(0,l.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center",children:[(0,l.jsx)("div",{className:"absolute -top-4 -right-4 bg-red text-white text-[10px] font-bold px-2.5 py-1 rounded-full shadow-lg animate-bounce",children:"LIVE"}),(0,l.jsx)("div",{className:"w-20 h-20 sm:w-24 sm:h-24 bg-primary/20 rounded-full flex items-center justify-center mb-2",children:(0,l.jsx)(r.A,{size:44,className:"text-primary"})}),(0,l.jsx)("div",{className:"absolute -bottom-2 -left-6 w-8 h-8 bg-white rounded-full shadow-md flex items-center justify-center text-base",children:"\uD83D\uDC4D"})]})})]})]})}var n=t(48230),d=t.n(n),c=t(54587),o=t.n(c),m=t(14232),x=t(98109),u=t(81220);function h(e){let{title:s="Live Streams You May Like",showViewAll:t=!0,viewAllHref:r="/explore",limit:i=6,className:a=""}=e,[n,c]=(0,m.useState)([]),[o,h]=(0,m.useState)(0),[f,p]=(0,m.useState)(!1),[b,g]=(0,m.useState)(!0),j=(0,m.useRef)(null),v=(0,m.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!f){p(!0);try{var s;let t=new FormData;t.append("limit",String(i)),t.append("offset",String(e?0:o));let l=await (0,u.sI)(t),r=(null==l||null==(s=l.content)?void 0:s.streams)||[];e?(c(r),h(r.length)):(c(e=>[...e,...r]),h(e=>e+i)),g(r.length===i)}catch(e){console.error("Error loading live streams",e),g(!1)}finally{p(!1)}}},[o,i,f]);return((0,m.useEffect)(()=>{v(!0)},[]),(0,m.useEffect)(()=>{if(!b||f)return;let e=new IntersectionObserver(e=>{e[0].isIntersecting&&v(!1)},{threshold:.1});return j.current&&e.observe(j.current),()=>{j.current&&e.unobserve(j.current)}},[b,f,v]),f||0!==n.length)?(0,l.jsxs)("section",{className:a,children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,l.jsx)("h2",{className:"text-base font-bold text-black",children:s}),t&&(0,l.jsx)(d(),{href:r,className:"text-sm font-semibold text-primary hover:underline",children:"View all"})]}),(0,l.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-5",children:n.map(e=>(0,l.jsx)(x.A,{stream:e},e.id))}),f&&(0,l.jsx)("div",{className:"text-center py-6 text-sm text-gray-500",children:"Loading..."}),(0,l.jsx)("div",{ref:j,className:"h-4"})]}):(0,l.jsxs)("section",{className:a,children:[(0,l.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,l.jsx)("h2",{className:"text-base font-bold text-black",children:s})}),(0,l.jsx)("p",{className:"text-sm text-gray-500 py-8 text-center",children:"No one is live right now."})]})}function f(){return(0,l.jsxs)("div",{className:"min-h-screen bg-offWHite font-sans",children:[(0,l.jsx)("div",{className:"fixed top-0 left-0 w-full h-[61px] bg-white shadow-md z-50 py-3 flex justify-center md:hidden",children:(0,l.jsx)(d(),{href:"/",children:(0,l.jsx)(o(),{width:300,height:300,src:"/images/headerLogo.jpg",alt:"
1Velaflow",className:"h-8 w-auto"})})}),(0,l.jsxs)("main",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 pt-20 md:pt-6 pb-20 md:pb-8",children:[(0,l.jsx)(a,{}),(0,l.jsx)(h,{title:"Live Streams You May Like",limit:6})]})]})}},63065:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var l=t(51935);let r={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};r.node;let i=(0,l.A)(r)}},e=>{e.O(0,[8109,636,6593,8792],()=>e(e.s=16069)),_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.