PageSourceSearch

https://streamyard.com/next-static/_next/static/chunks/5285-7443730b7b1d5dbf.js

js streamyard.com collected 2026-09-24 08:24:50 UTC 185,896 bytes, 2 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="20c3c34b-948b-43c8-9b27-51a75126938e",e._sentryDebugIdIdentifier="sentry-dbid-20c3c34b-948b-43c8-9b27-51a75126938e")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5285],{1572:(e,t,o)=>{"use strict";o.d(t,{e:()=>r});var i=o(21805),n=o(16750);let r=()=>{let{webinar:e,isStartingSoon:t,hasFinishedRecently:o,isPreview:r}=(0,n.TW)();return!!(e&&e.isChatEnabled&&(r||t||e.status===i.in.LIVE||o))}},2907:(e,t,o)=>{"use strict";o.d(t,{A:()=>R});var i=o(94458),n=o(68658),r=o(1651),a=o(7912),s=o(7963),d=o(67922),l=o(16750),c=o(44005),m=o(70720),u=o(89495),h=o(22987),p=o(64992),g=o(36136),x=o(43583),b=o(21805),f=o(22343);let A=u.Ay.div.withConfig({componentId:"sc-42fa9078-0"})(["position:absolute;z-index:var(--z-index-status);width:100%;height:100%;align-items:center;justify-content:center;display:flex;flex-direction:column;"]),j=(0,u.Ay)(f.Ay).attrs({variant:"h2"}).withConfig({componentId:"sc-42fa9078-1"})(["font-size:2.4rem;font-weight:",";line-height:3rem;text-align:center;align-items:center;justify-content:center;display:flex;flex-direction:column;"],e=>{let{theme:t}=e;return t.text.fontWeightBold}),y=(0,u.Ay)(f.Ay).attrs({variant:"body2"}).withConfig({componentId:"sc-42fa9078-2"})(["margin-top:var(--gutter);"]),w=(0,u.Ay)(f.Ay).attrs({variant:"body3"}).withConfig({componentId:"sc-42fa9078-3"})(["margin-left:8px;padding:2px 6px;text-transform:uppercase;font-weight:",";background-color:",";border-radius:",";"],e=>{let{theme:t}=e;return t.text.fontWeightSemiBold},e=>{let{theme:t}=e;return t.colors.error.main},e=>{let{theme:t}=e;return t.shape.borderRadius}),v=(0,u.Ay)("div").withConfig({componentId:"sc-42fa9078-4"})(["display:flex;margin-bottom:16px;svg{position:relative;top:auto;left:auto;width:24px;height:24px;margin-left:8px;transform:none;path{stroke:",";}}"],e=>{let{color:t}=e;return t}),C=(0,u.Ay)(y).attrs({component:"div"}).withConfig({componentId:"sc-42fa9078-5"})(["display:flex;flex-direction:column;align-items:center;text-align:center;color:",";"],e=>{let{textColor:t}=e;return t}),I=(0,u.Ay)(f.Ay).attrs({component:"div",variant:"body"}).withConfig({componentId:"sc-42fa9078-6"})(["display:flex;align-items:baseline;font-weight:",";color:inherit;"],e=>{let{theme:t}=e;return t.text.fontWeightSemiBold}),E=()=>{let{isLive:e,webinar:{title:t,status:o,scheduledAt:n,coverImageUrl:r}}=(0,l.TW)(),a=(0,u.DP)(),s=o===b.in.CREATED&&n,d=r?"white":"default",c=r?a.colors.grey[300]:a.colors.grey[800];return(0,i.jsxs)(A,{children:[(0,i.jsxs)(v,{color:c,children:[(0,i.jsx)(j,{color:d,children:(0,i.jsx)(p.wD,{tid:"broadcasts.onAir.registration.status.success.title"})}),(0,i.jsx)(h.A,{})]}),(0,i.jsxs)(C,{textColor:c,children:[(0,i.jsxs)(I,{children:[t,e&&(0,i.jsx)(w,{color:d,children:(0,i.jsx)(p.wD,{tid:"broadcasts.onAir.viewerPage.status.live.label",values:{duration:""}})})]}),s&&(0,i.jsxs)("time",{dateTime:new Date(n).toISOString(),children:[(0,i.jsx)(g.A,{date:new Date(n),day:"numeric",month:"long"}),", ",(0,i.jsx)(x.A,{date:new Date(n),hour:"2-digit",minute:"2-digit"})]})]})]})},T=u.Ay.div.withConfig({componentId:"sc-1c7e1bff-0"})(["width:90vw;max-width:640px;margin:auto auto;@media screen and (max-height:","px){margin:16px auto;}@media ","{width:100vw;margin:8px auto;}"],b.ZM,a.HP.belowSmall),S=u.Ay.div.withConfig({componentId:"sc-1c7e1bff-1"})(["position:fixed;width:100%;height:100%;background:white;z-index:-1;"]),R=()=>{let e=(0,r.Ub)(a.HP.belowSmall),[t,o]=(0,n.useState)(!1),{setSessionRegistrationId:u}=(0,c.wV)(),{webinar:{coverImageUrl:h,isRegistrationEnabled:p,isUserRegistered:g},refetchWebinar:x,isPreview:b}=(0,l.TW)(),f=p&&!g;return((0,r.Su)(()=>{s.Ay.track(s.Ay.events.ONAIR_REGISTRATION_PAGE_VISITED)},()=>f&&!b),t)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.A,{backgroundImageUrl:h||void 0}),(0,i.jsx)(E,{})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.A,{backgroundImageUrl:h||void 0}),e&&(0,i.jsx)(S,{}),(0,i.jsx)(T,{children:(0,i.jsx)(m.A,{onSuccess:e=>{u(e.id),o(!0),setTimeout(()=>{x()},3e3)}})})]})}},7322:(e,t,o)=>{"use strict";o.d(t,{A:()=>eM});var i=o(94458),n=o(68658),r=o(89495),a=o(16975),s=o(95268),d=o.n(s);let l=r.Ay.div.withConfig({componentId:"sc-999a7d8c-0"}
1)(["height:",";"],e=>a.ySu?"".concat(e.height,"px"):"100vh");function c(){return Math.max(window.innerHeight,document.documentElement.clientHeight)}class m extends n.Component{componentDidMount(){a.ySu&&(window.addEventListener("resize",this.onResize),this.onResize())}componentWillUnmount(){window.removeEventListener("resize",this.onResize),clearTimeout(this.debounceTimeout)}componentDidUpdate(e,t){t.height!==this.state.height&&window.scrollTo(0,0)}onResize(){a.pz6&&"safari"===a.h5M?(clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.setState({height:c()})},500)):this.setState({height:c()})}render(){return(0,i.jsx)(l,{height:this.state.height,...this.props,children:this.props.children})}constructor(e){super(e),this.state={height:c()},this.onResize=this.onResize.bind(this)}}m.propTypes={children:d().node};var u=o(24695),h=o(77325),p=o(21805),g=o(7912),x=o(10536),b=o(27294),f=o(1651),A=o(21717);let j=r.Ay.header.withConfig({componentId:"sc-5106285c-0"})(["flex:0;position:relative;border-bottom:1px solid ",";padding-left:16px;"],e=>e.theme.colors.line),y=r.Ay.div.withConfig({componentId:"sc-5106285c-1"})(["width:100%;height:","px;display:flex;align-items:center;justify-content:flex-end;"],p.uF),w=r.Ay.div.withConfig({componentId:"sc-5106285c-2"})(["display:flex;margin-right:auto;"]),v=r.Ay.img.withConfig({componentId:"sc-5106285c-3"})(["height:34px;"]),C=(0,r.Ay)(A.A).withConfig({componentId:"sc-5106285c-4"})(["height:34px;"]),I=e=>{let{customizedLogoUrl:t,isCustomThemeApplied:o=!1}=e,r=(0,n.useMemo)(()=>o?t?(0,i.jsx)(w,{children:(0,i.jsx)(v,{src:t,alt:"StreamYard On-Air"})}):null:(0,i.jsx)(w,{children:(0,i.jsx)(C,{variant:"icon"})}),[o,t]);return(0,i.jsx)(j,{role:"banner",children:(0,i.jsx)(y,{children:r})})};var E=o(16750),T=o(70892),S=o(1572),R=o(22343);let k=(0,r.AH)(["--media-ratio:calc(9 / 16);--gutter:16px;--z-index-background:1;--z-index-status:2;"]),L=r.Ay.div.withConfig({componentId:"sc-bf8ed530-0"})(["",";flex:1;overflow-y:auto;@media ","{flex:0 0 auto;overflow:visible;}"],k,[g.HP.belowLarge,g.HP.portrait].join(" and ")),D=r.Ay.div.withConfig({componentId:"sc-bf8ed530-1"})(["position:relative;"]);r.Ay.div.withConfig({componentId:"sc-bf8ed530-2"})(["position:relative;aspect-ratio:16 / 9;&&&{max-height:calc(100vh - 97px);","}",""],a.ySu&&(0,r.AH)(["min-height:200px;"]),!a.ySu&&(0,r.AH)(["min-width:400px;"]));let M=r.Ay.div.withConfig({componentId:"sc-bf8ed530-3"})(["margin-right:12px;"]),N=(0,r.Ay)(R.Ay).attrs({variant:"h2"}).withConfig({componentId:"sc-bf8ed530-4"})(["margin-bottom:4px;font-size:2.4rem;font-weight:",";line-height:3rem;@media ","{font-size:2rem;line-height:2.5rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}"],e=>{let{theme:t}=e;return t.text.fontWeightBold},[g.HP.belowLarge,g.HP.portrait].join(" and ")),O=r.Ay.div.withConfig({componentId:"sc-bf8ed530-5"})(["display:flex;justify-content:space-between;@media ","{word-wrap:break-word;}svg{min-width:24px;}"],[g.HP.belowLarge,g.HP.portrait].join(" and ")),_=(0,r.Ay)(R.Ay).attrs({variant:"body2"}).withConfig({componentId:"sc-bf8ed530-6"})(["line-height:2.1rem;white-space:pre-wrap;padding:0px 16px;@media ","{padding:8px var(--gutter);}"],[g.HP.belowLarge,g.HP.portrait].join(" and ")),P=(0,r.Ay)("div").withConfig({componentId:"sc-bf8ed530-7"})(["padding-top:8px;padding-bottom:16px;@media ","{display:",";}"],[g.HP.belowLarge,g.HP.portrait].join(" and "),e=>e.isChatVisible&&"none"),B=(0,r.Ay)(R.Ay).attrs({variant:"body2",component:"div"}).withConfig({componentId:"sc-bf8ed530-8"})(["overflow:auto;display:none;position:absolute;z-index:1;top:100%;left:0;width:100%;line-height:2.1rem;background-color:",";border-bottom:1px solid ",";@media ","{display:",";","{display:block;}}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.line},[g.HP.belowLarge,g.HP.portrait].join(" and "),e=>{let{isExpanded:t}=e;return t?"block":"none"},_),z=r.Ay.div.withConfig({componentId:"sc-bf8ed530-9"})(["display:none;@media ","{display:block;position:absolute;top:50%;transform:translateY(-50%);right:16px;}"],[g.HP.belowLarge,g.HP.portrait].join(" and ")),H=r.Ay.div.withConfig({componentId:"sc-bf8ed530-10"})(["pointer-events:none;width:100%;flex-grow:1;> *{pointer-events:auto;}@media ","{cursor:pointer;pointer-events:auto;}"],[g.HP.belowLarge,g.HP.portrait].join(" and ")),U=r.Ay.div.withConfig({componentId:"sc-bf8ed530-11"})(["width:100%;display:flex;flex-direction:column;"]),V=(0,r.Ay)("div").withConfig({componentId:"sc-bf8ed530-12"})(["flex:1;padding:16px;padding-top:",";"],e=>{let{flattenPadding:t}=e;return t?"2px":"16px"}),F=r.Ay.div.withConfig({componentId:"sc-bf8ed530-13"})(["word-wrap:break-word;@media ","{padding:0;min-height:0;}"],[g.HP.belowLarge,g.HP.portrait].join(" and ")),W=r.Ay.div.withConfig({componentId:"sc-bf8ed530-14"})(["display:flex;flex-direction:column;padding-right:32px;flex:1;"]),K=(0,r.Ay)(R.Ay).attrs({variant:"body2"}).withConfig({componentId:"sc-bf8ed530-15"})(["display:flex;align-items:center;"]);var G=o(84995),Y=o(61712),q=o(65519),Z=o(92576),J=o.n(Z);let Q=e=>{let{setPlayerStatus:t}=e,{setPlayerActions:o,webinar:{id:n,watchUrl:r}}=(0,E.TW)();return(0,q.A)(p.mI,{autoplay:!0,live:{playlistRequests:40},media:{live:{auto:r}},poster:J(),id:n},{setPlayerStatus:t,setPlayerActions:o}),(0,i.jsx)("div",{id:p.mI})};Q.propTypes={setPlayerStatus:d().func};let $=e=>{let{setPlayerStatus:t}=e,{setPlayerActions:o,webinar:{vodPosterUrl:r,vodUrl:a,id:s}}=(0,E.TW)(),d=(0,n.useMemo)(()=>({autoplay:!1,features:{autoplay:!1,options:!1},live:!1,media:a,poster:r,id:s}),[s,r,a]);return(0,q.A)(p.mI,d,{setPlayerActions:o,setPlayerStatus:t}),(0,i.jsx)("div",{id:p.mI})};$.propTypes={setPlayerStatus:d().func};let X={[G.F.Live]:Q,[G.F.Vod]:$,[G.F.Status]:Y.A},ee=()=>{let{scene:e,setPlayerStatus:t}=(0,G.A)(),o=X[e];return(0,i.jsx)(o,{setPlayerStatus:t})};
1var et=o(77346),eo=o(14802);let ei=r.Ay.span.withConfig({componentId:"sc-13b25961-0"})(["svg{display:block;}"]),en=e=>{let{isExpanded:t,size:o}=e;return(0,i.jsx)(ei,{children:t?(0,i.jsx)(et.A,{size:o}):(0,i.jsx)(eo.A,{size:o})})};en.propTypes={isExpanded:d().bool,size:d().oneOfType([d().string,d().number])};var er=o(65049),ea=o(55301),es=o.n(ea),ed=o(64992),el=o(36136),ec=o(43583);let em=()=>(0,i.jsx)(ed.wD,{tid:"broadcasts.onAir.viewerPage.status.created.subtitle"}),eu={[p.in.CREATED]:e=>e.scheduledAt?(0,i.jsx)(ed.wD,{tid:"broadcasts.onAir.viewerPage.status.createdDateTime.subtitle",components:{date:(0,i.jsx)(el.A,{date:new Date(e.scheduledAt),day:"numeric",month:"short"}),time:(0,i.jsx)(ec.A,{date:new Date(e.scheduledAt),hour:"2-digit",minute:"2-digit"})}}):(0,i.jsx)(ed.wD,{tid:"broadcasts.onAir.viewerPage.status.created.subtitle"}),[p.in.COMPLETE]:()=>"",[p.in.LIVE]:e=>(e=>{var t;return null==(t=null==e?void 0:e.isViewerCountEnabled)||t})(e)?(0,i.jsx)(ed.wD,{tid:"broadcasts.onAir.viewerPage.watching",values:{count:(e.viewerCount||1).toLocaleString("en-US")}}):"",[p.in.DISABLED]:()=>""},eh=()=>{let{webinar:e,isPreview:t}=(0,E.TW)(),o=e;t&&(o={...e,status:p.in.LIVE,viewerCount:120});let n=(e=>e.isViewerLimitExceeded?"":es()(eu,e.status,em)(e))(o);return(0,i.jsx)(K,{children:n})};var ep=o(81198);let eg=r.Ay.div.withConfig({componentId:"sc-46b7cf0e-0"})(["display:flex;justify-content:flex-end;padding-top:2px;padding-right:4px;"]),ex=(0,r.Ay)(R.Ay).withConfig({componentId:"sc-46b7cf0e-1"})(["",""],e=>{let{isSmall:t}=e;return t&&"font-size: 11px;"}),eb=e=>{let{webinarId:t}=e,o=(0,f.Ub)(g.HP.belowMedium),n=new URLSearchParams({utm_source:"streamyard",utm_campaign:"webinar",utm_content:t}),r="https://streamyard.com/contact?".concat(n.toString());return(0,i.jsx)(eg,{children:(0,i.jsx)(ex,{isSmall:o,variant:"body2",color:"main",children:(0,i.jsx)(ep.A,{href:r,newTab:!0,children:(0,i.jsx)(ed.wD,{tid:"broadcasts.onAir.supportChatButton.label"})})})})};eb.propTypes={playerWidth:d().number,webinarId:d().string};let ef=(0,n.forwardRef)((e,t)=>{let{availableHeight:o,isChatVisible:r,isPreview:a,webinarId:s}=e,{webinar:{description:d,title:l,customization:c}}=(0,E.TW)(),[m,u]=(0,n.useState)(!1),h=(0,n.useMemo)(()=>(null==c?void 0:c.logoUrl)?c.logoUrl:er.DEFAULT_LOGO_URL,[c]),p=(0,f.Ub)(g.HP.belowMedium),x=(0,n.useCallback)(()=>{r&&u(e=>!e)},[r,u]),b=!!d,A=b&&r,j=!a;return(0,i.jsxs)(U,{ref:t,children:[j&&(0,i.jsx)(eb,{webinarId:s}),(0,i.jsxs)(V,{flattenPadding:j,children:[(0,i.jsx)(H,{onClick:x,children:l&&(0,i.jsxs)(O,{children:[p&&(0,i.jsx)(M,{children:(0,i.jsx)("img",{style:{maxWidth:32},src:h,alt:"logo"})}),(0,i.jsxs)(W,{children:[(0,i.jsx)(N,{children:l}),(0,i.jsx)(eh,{})]}),r&&b&&(0,i.jsx)(z,{children:(0,i.jsx)(en,{isExpanded:m})})]})}),A&&b&&(0,i.jsx)(B,{style:{maxHeight:"".concat(o,"px")},isExpanded:m,children:(0,i.jsx)(_,{children:d})})]})]})});ef.displayName="OnAirMediaInfo";var eA=o(27210);let ej=16/9,ey=a.B_?{belowLarge:window.matchMedia(g.HP.belowLarge),landscape:window.matchMedia(g.HP.landscape)}:{belowLarge:{matches:!1},landscape:{matches:!1}},ew=function(e){let{isChatVisible:t,parentRef:o,mediaInfoRef:i,streamHasDescription:r}=e,[a,s]=(0,n.useState)({isLoaded:!1,availableSize:{height:0},videoSize:{width:0,height:0}}
1),d=(0,f.gK)(e=>{let{width:o}=e,n=ey.landscape.matches,d=ey.belowLarge.matches,l=i.current?i.current.getBoundingClientRect().height:85,c=Math.max(window.innerHeight,document.documentElement.clientHeight)-(p.uF+1),m=o-((!d||n)&&t?p.j:0),u=m/ej,h=c-65*!!r-l,g=u>h?h:u,x=c-g-l;(m!==a.videoSize.width||g!==a.videoSize.height||x!==a.availableSize.height)&&s({isLoaded:!0,availableSize:{height:x},videoSize:{width:m,height:g}})});return(0,n.useEffect)(()=>{d(o.current.getBoundingClientRect())},[t,o,d]),(0,f.JO)(()=>{let e,t=null,i=!1,n=new eA.A(o=>{let[{contentRect:n}]=o;e=n,i||(i=!0,d(e)),null===t&&(t=setTimeout(()=>{t=null,d(e)},350))});return n.observe(o.current),()=>{n.disconnect(),clearTimeout(t)}}),a},ev=(0,r.DU)(["body{overflow:hidden;}"]),eC=r.Ay.div.withConfig({componentId:"sc-ee781d9c-0"})(["display:flex;flex-direction:column;height:100vh;overflow:hidden;"]),eI=(0,r.Ay)(m).withConfig({componentId:"sc-ee781d9c-1"})(["display:flex;flex-direction:column;overflow:hidden;"]),eE=a.ySu?eI:eC,eT=(0,r.Ay)("div").withConfig({componentId:"sc-ee781d9c-2"})(["flex:1;display:flex;flex-direction:row;overflow:hidden;@media ","{overflow:auto;flex-direction:column;","}"],[g.HP.belowLarge,g.HP.portrait].join(" and "),e=>{let{isChatVisible:t}=e;return t&&(0,r.AH)(["overflow:hidden;"])}),eS=r.Ay.div.withConfig({componentId:"sc-ee781d9c-3"})(["flex:1;justify-content:center;align-items:center;"]),eR=r.Ay.div.withConfig({componentId:"sc-ee781d9c-4"})(["display:flex;overflow-y:auto;overflow-x:hidden;width:","px;border-left:1px solid ",";@media ","{flex:1;width:100%;border-left:none;border-top:1px solid ",";}"],p.j,e=>e.theme.colors.line,[g.HP.belowLarge,g.HP.portrait].join(" and "),e=>e.theme.colors.line),ek=r.Ay.div.withConfig({componentId:"sc-ee781d9c-5"})(["display:flex;justify-content:space-between;@media ","{padding:0;min-height:0;position:relative;}"],[g.HP.belowLarge,g.HP.portrait].join(" and ")),eL=r.Ay.div.withConfig({componentId:"sc-ee781d9c-6"})(["position:relative;@media ","{margin:0;}"],[g.HP.belowLarge,g.HP.portrait].join(" and ")),eD={rel:"noopener noreferrer",target:"_blank"},eM=()=>{let{playerActions:e,webinar:{id:t,description:o,customization:r},invitation:s,isPreview:d}=(0,E.TW)(),l=(0,S.e)(),c=(0,f.Ub)(g.HP.belowMedium),m=!!o,p=(0,n.useRef)(null),A=(0,n.useRef)(null),{availableSize:j,isLoaded:y,videoSize:w}=ew({isChatVisible:l,parentRef:p,mediaInfoRef:A,streamHasDescription:m}),{onAirTheme:v}=(0,T.e)();return(0,i.jsxs)(eE,{children:[a.ySu&&(0,i.jsx)(ev,{}),!c&&(0,i.jsx)(I,{customizedLogoUrl:null==r?void 0:r.logoUrl,isCustomThemeApplied:v.isCustomThemeApplied}),(0,i.jsxs)(eT,{ref:p,isChatVisible:l,children:[(0,i.jsxs)(L,{style:{visibility:y?"visible":"hidden"},children:[(0,i.jsx)(D,{children:(0,i.jsxs)(eS,{children:[s&&(0,i.jsx)(b.A,{invitationLink:s.link,invitationDate:s.date,onJoin:()=>{null==e||e.pause()}}),(0,i.jsx)(eL,{style:{width:w.width,height:w.height},children:(0,i.jsx)(ee,{})})]})}),(0,i.jsx)(D,{children:(0,i.jsxs)(F,{children:[(0,i.jsx)(ek,{children:(0,i.jsx)(ef,{availableHeight:j.height,isChatVisible:l,ref:A,isPreview:d,webinarId:t})}),o&&(0,i.jsx)(P,{isChatVisible:l,children:(0,i.jsx)(D,{children:(0,i.jsx)(_,{children:(0,i.jsx)(x.A,{options:eD,children:o})})})})]})})]}),l&&(0,i.jsx)(eR,{children:d?(0,i.jsx)(h.A,{}):(0,i.jsx)(u.A,{})})]})]})}},7372:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMGSURBVHgB7ZhbSBRRGMf/Z3d2Xddd17RcL6mZEkGKZBj1YHajh8Cge9RDhBhBSCW9dLEgEPPBJ31QiAopCqF6DKXEsKAolQKR6OKWS973orveZ6ZzdmNRcd3LTDoP+4Nhd2e+HX7zfec75zAEEMneKtd1CKQMgBkrxIjTjmF6+MEKonrQX59zi+yrdN8RIVZghQkg6IWIN1WiKJZAqYikTAWCFCgXswoKJyIolYigVLhggvLS1cjLUENO3ANd9GgOGBecIJU7W6iBnAi9XRB+NgSMi4xBqQRVYn/02QW4pgWkxqkRqyP4H4Ql+MU6h9KHDlgdvO/ciYJoVB0xQqdZKPpjiMeFRw58o5+Wu4kIlZAF++w8TtbbMDYloiBTC1M0wdf+OTR9nMSoS0BjSZwv9l77BGqaXZ7YcAlZ0GrjkRavxtYMLaqPGn3Su6pH0dozDZtbRHwMwZWnTjR9moIhSlrpQ26SnVlatJQn4HaxwXcubY2alpbujuj3Wd6brYy1HHJTOby6mgAphN0keq03M6x8DW8mMDYpYnMSB3Os95kv74/Bxd16aDhpGZTUxTsqRzzlZWxJ4XD/XNyC61LlGJLmwaxEDtlm7zN2/2GNMgW5kZTBx6XejPXRxjlUa0NNi4uOUY1nnMpFWBl0LJo2WFcfp/Mg4933WchJyII3no8jt2IIr+mUMp8Bp+C9ocwLSsgl3rhODYEm8NITJ84XGegyp8KH3lk865j0XD+2TQc5CVmwpFCPoXEBda1uVL8c951n0w6bG9MT5N03htUk1w4acGq7Di86p+lmQUSySYXiPB2STEuPmLrTJoRL2F2cSVeK8gPB/f1wfvhlj2xYpcIN840Bg9oHozHTrYec5HT/Rm5P0rIxRMdbuGEhGEEjPvOxkJMzHU5kdyb7DxCJhRdUe5RZ4n9yyW3vLcoTnCfHfipLcJEcQzmCS8gxlCHoR47B3rAOYjVZRo5B31GjFqtFADmG2t1mfWsoWk89ySZCYFwqKEof5TnkZIN9zpL/a2ZZOcZf4zsa4ZqiECMAAAAASUVORK5CYII="},16750:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>m,TW:()=>c});var i=o(94458),n=o(68658),r=o(1651),a=o(21805),s=o(62833),d=o(70892);let l=(0,n.createContext)(void 0),c=()=>{let e=(0,n.useContext)(l);if(void 0===e)throw Error("useOnAir must be used within a OnAirProvider");return e},m=e=>{let{children:t,getSubscribeSocket:o=()=>null,invitation:c,isEmbedded:m=!1,isPreview:u=!1,refetchWebinar:h=()=>{},webinar:p}
1=e,[g,x]=(0,n.useState)(null),[b,f]=(0,n.useState)(!1),{isStartingSoon:A,hasFinishedRecently:j,isPastScheduledTime:y}=(0,s.kN)(p),w=(0,s.tH)(p);!b&&w&&f(!0);let v=(0,n.useMemo)(()=>y?null:A&&(null==p?void 0:p.scheduledAt)?new Date(p.scheduledAt).getTime()-Date.now():null,[null==p?void 0:p.scheduledAt,A,y]);(0,r.Z3)(()=>h(),v);let C=(0,n.useMemo)(()=>j&&(null==p?void 0:p.completedAt)?new Date(new Date(p.completedAt).getTime()+a.oS).getTime()-Date.now():null,[null==p?void 0:p.completedAt,j]);return(0,r.Z3)(()=>h(),C),(0,i.jsx)(l.Provider,{value:{getSubscribeSocket:o,hasFinishedRecently:j,invitation:c,isEmbedded:m,isLive:w,isPastScheduledTime:y,isPreview:u,isStartingSoon:A,playerActions:g,refetchWebinar:h,setPlayerActions:x,watchedLiveInSession:b,webinar:p},children:(0,i.jsx)(d.A,{isEmbedded:m,webinarCustomization:null==p?void 0:p.customization,children:t})})}},18267:(e,t,o)=>{"use strict";o.d(t,{A:()=>ee});var i=o(12584),n=o(94458),r=o(68658),a=o(89495),s=o(7912),d=o(24695),l=o(77325),c=o(27294),m=o(16750),u=o(99415),h=o(64992),p=o(30186),g=o(22343);let x=a.Ay.div.withConfig({componentId:"sc-5bab1f75-0"})(["width:100%;flex:0 0 48px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid ",";background:#fff;"],e=>e.theme.colors.line),b=a.Ay.div.withConfig({componentId:"sc-5bab1f75-1"})(["display:flex;align-items:center;gap:8px;min-width:0;"]),f=a.Ay.img.withConfig({componentId:"sc-5bab1f75-2"})(["max-width:60px;max-height:30px;"]),A=(0,a.Ay)(g.Ay).attrs({variant:"h2"}).withConfig({componentId:"sc-5bab1f75-3"})(["font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"]),j=(0,a.Ay)(p.A).withConfig({componentId:"sc-5bab1f75-4"})([""]),y=e=>{let{logoUrl:t,onRequestClose:o=()=>{},title:i}=e,r=(0,h.Bd)("common.onair.watch.chat.closeAriaLabel");return(0,n.jsxs)(x,{children:[(0,n.jsxs)(b,{children:[t&&(0,n.jsx)(f,{src:t,alt:"StreamYard On-Air"}),!!i&&(0,n.jsx)(A,{children:i})]}),(0,n.jsx)(j,{"aria-label":r,onClick:o,size:"small",children:(0,n.jsx)(u.A,{})})]})};var w=o(84995),v=o(61712),C=o(95268),I=o.n(C),E=o(21805);let T=(0,a.AH)(["--media-ratio:calc(9 / 16);--gutter:16px;--z-index-background:1;--z-index-status:2;"]),S=a.Ay.div.withConfig({componentId:"sc-65775820-0"})(["",";background-color:",";width:100%;margin:0;padding:0;height:auto;display:flex;justify-content:center;align-items:center;"],T,e=>{let{theme:t}=e;return t.colors.black}),R=a.Ay.div.withConfig({componentId:"sc-65775820-1"})(["position:relative;background-color:",";aspect-ratio:16 / 9;&&&{max-height:100vh;}video{position:absolute;top:0;left:0;min-width:100%;height:100%;max-height:calc(var(--media-ratio) * 100%);}"],e=>{let{theme:t}=e;return t.colors.black});var k=o(65519),L=o(92576),D=o.n(L);let M=e=>{let{onCustomControlsVisible:t,setPlayerStatus:o,setIsPlayerFullScreen:i}=e,{setPlayerActions:a,webinar:{coverImageUrl:s,id:d,watchUrl:l}}=(0,m.TW)(),c=(0,r.useMemo)(()=>({autoplay:!0,customElements:{"chat-button":!0},embed:!0,live:{playlistRequests:40},media:{live:{auto:l}},poster:s||D(),id:d}),[s,d,l]);return(0,k.A)(E.mI,c,{onCustomControlsVisible:t,setIsPlayerFullScreen:i,setPlayerActions:a,setPlayerStatus:o}),(0,n.jsx)(R,{id:E.mI})};M.propTypes={onCustomControlsVisible:I().func,setPlayerStatus:I().func,setIsPlayerFullScreen:I().func};let N=e=>{let{onCustomControlsVisible:t,setPlayerStatus:o,setIsPlayerFullScreen:i}=e,{setPlayerActions:a,webinar:{coverImageUrl:s,vodPosterUrl:d,vodUrl:l,id:c}}=(0,m.TW)(),u=(0,r.useMemo)(()=>({autoplay:!1,customElements:{"chat-button":!0},embed:!0,features:{autoplay:!1,options:!1},live:!1,media:l,poster:d||s,id:c}),[c,s,d,l]);return(0,k.A)(E.mI,u,{onCustomControlsVisible:t,setIsPlayerFullScreen:i,setPlayerActions:a,setPlayerStatus:o}),(0,n.jsx)(R,{id:E.mI})};N.propTypes={onCustomControlsVisible:I().func,setPlayerStatus:I().func,setIsPlayerFullScreen:I().func};var O=o(98617),_=o(77704),P=o(50388),B=o(72416),z=o(45453);let H=(0,a.Ay)(B.A).attrs({color:"white",size:"small",textVariant:"label2",variant:"text"}).withConfig({componentId:"sc-72f0d095-0"})([""," text-shadow:0px 0px 2px rgba(0,0,0,0.75);&:hover{background:none;color:",";span{transform:scale(1.05);}}"],e=>{let{isPlayer:t,isMobile:o,theme:i}=e;switch(!0){case t&&o:return(0,a.AH)(["margin-top:1px;padding:0;width:100%;height:100%;"]);case t&&!o:return(0,a.AH)(["width:calc(100% - 2px);height:calc(100% - 2px);padding:16px;margin:1px;border-radius:0;"]);default:return(0,a.AH)(["position:absolute;top:0px;right:0px;padding:16px;height:auto;z-index:",";margin:1px;border-radius:0;&:focus{box-shadow:0 0 0 0;}&:focus-visible{box-shadow:0 0 0 1px;}"],i.zIndex.playerCustomControl)}},e=>{let{theme:t}=e;return t.colors.white}),U=(0,a.Ay)(z.A).attrs(e=>{let{isMobile:t}=e;return{size:t?"24":"18"}}).withConfig({componentId:"sc-72f0d095-1"})(["&&&{filter:drop-shadow(0px 0px 1px rgba(0,0,0,0.75));fill:",";}"],e=>{let{theme:t}=e;return t.colors.white}),V=a.Ay.span.withConfig({componentId:"sc-72f0d095-2"})(["&&&{margin-right:10px;}"]),F=e=>{let{isMobile:t,onClick:o,visible:i,renderIn:r}=e,s=(0,a.DP)(),d=(0,h.Bd)("common.onair.watch.chat.view");if(!i)return null;let l=(0,n.jsxs)(H,{"aria-label":d,isMobile:t,onClick:e=>{e.stopPropagation(),e.preventDefault(),o()},onTouchStart:e=>{e.stopPropagation(),o()},isPlayer:!!r,children:[!t&&(0,n.jsx)(V,{children:d}),(0,n.jsx)(U,{isMobile:t,children:(0,n.jsx)(_.PlJ,{})})]});return r?(0,O.createPortal)((0,n.jsx)(P.NP,{themeOverride:s,children:l}),r):l}
1,W={[w.F.Live]:M,[w.F.Vod]:N,[w.F.Status]:v.A},K=e=>{let{openChat:t,isChatEnabled:o,isChatOpened:i}=e,[a,s]=(0,r.useState)(!1),[d,l]=(0,r.useState)(),[c,m]=(0,r.useState)(!1),{scene:u,setPlayerStatus:h}=(0,w.A)(),p=!!d||u===w.F.Status,g=u===w.F.Live||u===w.F.Vod?d:void 0,x=(0,r.useCallback)(e=>{let{element:t,isMobile:o}=e;s(o),l(t)},[]),b=W[u];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F,{isMobile:a,onClick:t,visible:p&&o&&!i&&!c,renderIn:g}),(0,n.jsx)(b,{onCustomControlsVisible:x,setPlayerStatus:h,setIsPlayerFullScreen:m})]})};var G=o(1572),Y=o(1651),q=o(62833);function Z(){let e=(0,i._)(["\n		flex: 0 0 240px;\n		margin-right: ",";\n	"]);return Z=function(){return e},e}let J=a.Ay.div.withConfig({componentId:"sc-27699c8e-0"})(["flex:1;display:flex;flex-direction:row;overflow:hidden;height:100vh;@media ","{flex-direction:column;}"],q.qK),Q=a.Ay.div.withConfig({componentId:"sc-27699c8e-1"})(["position:relative;flex:1;display:flex;overflow:hidden;"]),$=(0,a.Ay)("div").withConfig({componentId:"sc-27699c8e-2"})(["display:flex;flex-direction:column;flex:0 0 320px;overflow:hidden;visibility:",";margin-right:",";transition-timing-function:ease-in-out;transition-duration:300ms;transition-property:",";",";@media ","{",";}@media ","{","}"],e=>e.isChatOpened?"visible":"hidden",e=>e.isChatOpened?"0":"-320px",e=>e.isChatOpened?"margin-right":"margin-right, visibility",s.$_.belowMedium(Z(),e=>e.isChatOpened?"0":"-240px"),q.qK,e=>{let{isChatOpened:t}=e;return(0,a.AH)(["flex:1;margin-right:0;margin-bottom:",";transition-property:",";"],t?"0":"-100vh",t?"margin-bottom":"margin-bottom, visibility")},q.cX,e=>{let{isChatOpened:t}=e;return(0,a.AH)(["position:fixed;left:",";top:0;width:100vw;height:100vh;z-index:10;margin:0;transition-property:",";"],t?"0":"100vw",t?"left":"left, visibility")}),X=a.Ay.div.withConfig({componentId:"sc-27699c8e-3"})(["display:flex;overflow-y:auto;overflow-x:hidden;width:100%;flex:1;"]),ee=()=>{let{playerActions:e,webinar:{title:t,customization:o},invitation:i,isPreview:a}=(0,m.TW)(),{isChatEnabled:u,isChatOpened:h,openChat:p,closeChat:g}=(()=>{let e=(0,Y.Ub)(s.HP.medium),[t,o]=(0,r.useState)(e),i=(0,G.e)(),n=(0,r.useCallback)(()=>{o(!0)},[o]);return{closeChat:(0,r.useCallback)(()=>{o(!1)},[o]),isChatOpened:t,isChatEnabled:i,openChat:n}})();return(0,n.jsxs)(J,{children:[(0,n.jsxs)(Q,{children:[i&&(0,n.jsx)(c.A,{invitationLink:i.link,invitationDate:i.date,onJoin:()=>{null==e||e.pause()}}),(0,n.jsx)(S,{children:(0,n.jsx)(K,{openChat:p,isChatEnabled:u,isChatOpened:h})})]}),u&&(0,n.jsxs)($,{isChatOpened:h,hidden:!h,children:[(0,n.jsx)(y,{logoUrl:null==o?void 0:o.logoUrl,onRequestClose:g,title:t}),(0,n.jsx)(X,{children:a?(0,n.jsx)(l.A,{}):(0,n.jsx)(d.A,{})})]})]})}},20270:(e,t,o)=>{"use strict";o.d(t,{A:()=>v});var i=o(94458),n=o(68658),r=o(70892),a=o(77704),s=o(1651),d=o(64992),l=o(16750),c=o(21805),m=o(36136),u=o(43583);let h=e=>{let{date:t}=e;return(0,i.jsxs)("time",{dateTime:t.toISOString(),children:[(0,i.jsx)(m.A,{date:t,day:"numeric",month:"long",year:"numeric"})," ",(0,i.jsx)(u.A,{date:t,hour:"2-digit",minute:"2-digit"})]})};var p=o(10536),g=o(89495),x=o(22343);let b=g.Ay.div.withConfig({componentId:"sc-6f7e5b0a-0"})(["display:table;margin-bottom:24px;"]),f=(0,g.Ay)(x.Ay).attrs({variant:"body2",component:"div"}).withConfig({componentId:"sc-6f7e5b0a-1"})(["word-break:break-word;white-space:pre-wrap;display:table-cell;"]),A=g.Ay.div.withConfig({componentId:"sc-6f7e5b0a-2"})(["display:table-row;padding-bottom:24px;"]),j={rel:"noopener noreferrer",target:"_blank"},y=()=>{let{webinar:{description:e}}=(0,l.TW)();return(0,i.jsx)(b,{children:e&&(0,i.jsx)(A,{children:(0,i.jsx)(f,{children:(0,i.jsx)(p.A,{options:j,children:e})})})})};var w=o(31194);let v=function(){let{showDescription:e=!0,showTitle:t=!0,showTime:o=!0,isFirstPage:m}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isEmbedded:u,webinar:{scheduledAt:p,status:g,title:x,description:b}}=(0,l.TW)(),{colors:f,onAirTheme:A}=(0,r.e)(),j=(0,s.Ub)("(max-height: ".concat(c.ZM,"px)")),v=(0,n.useRef)(null),C=function(e){let[t,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let t=()=>{if(!e.current)return;let{scrollHeight:t,clientHeight:i}=e.current;o(t-1>i)};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e]),t}
1(v)||!!b,[I,E]=(0,n.useState)(!1),T=g===c.in.CREATED||g===c.in.LIVE,S=!u&&A.logoUrl;return j&&!m?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(w.mO,{children:[S&&(0,i.jsx)(w.z8,{src:S,alt:"StreamYard On-Air"}),t&&x&&(0,i.jsx)(w.hE,{innerRef:v,truncate:!I&&u,variant:"h2",children:x}),o&&T&&p&&(0,i.jsxs)(w.Pd,{variant:"body",children:[(0,i.jsx)(a.GCc,{fill:f.grey[800],size:24}),(0,i.jsx)(h,{date:new Date(p)})]}),u&&(0,i.jsxs)(i.Fragment,{children:[e&&b&&I&&(0,i.jsx)(w.yO,{children:b}),t&&e&&C&&(0,i.jsx)(w.dy,{onClick:()=>E(e=>!e),children:I?(0,i.jsx)(d.wD,{tid:"common.showLess"}):(0,i.jsx)(d.wD,{tid:"common.showMore"})})]})]}),e&&!u&&(0,i.jsx)(y,{})]})}},21805:(e,t,o)=>{"use strict";o.d(t,{CQ:()=>a,QB:()=>c,XN:()=>s,ZM:()=>b,id:()=>d,in:()=>l,j:()=>g,je:()=>r,mI:()=>n,oS:()=>p,qq:()=>u,uF:()=>x,w$:()=>m,wZ:()=>h});var i=o(16975);let n="player-id",r={"dev.streamyard.com":"https://dev.streamyard.com:14443/api/public","streamyard.com":"https://oa-api.streamyard.com/api/public","beta.streamyard.com":"https://oa-apibeta.streamyard.com/api/public","staging.streamyard.com":"https://oa-apistaging.streamyard.com/api/public"},a={"dev.streamyard.com":"wss://dev.streamyard.com:15443","streamyard.com":"wss://oa-subscribe.streamyard.com","beta.streamyard.com":"wss://oa-subscribebeta.streamyard.com","staging.streamyard.com":"wss://oa-subscribestaging.streamyard.com"},s={"dev.streamyard.com":"https://dev.streamyard.com:15443/api","streamyard.com":"https://oa-subscribe.streamyard.com/api","beta.streamyard.com":"https://oa-subscribebeta.streamyard.com/api","staging.streamyard.com":"https://oa-subscribestaging.streamyard.com/api"},d={autoplay:!0,config:{},debug:i.Oig,features:{autoplay:!0,options:!0,pip:!0},id:"player-".concat(new Date().getTime()),live:!0,media:{},poster:"https://cdn.pixabay.com/photo/2016/10/22/17/46/mountains-1761292_960_720.jpg"},l={CREATED:"created",COMPLETE:"complete",LIVE:"live",DISABLED:"disabled"},c={EMBED_PRESCREEN:"embed_prescreen",EMBED_WATCH:"embed_watch",PRESCREEN:"prescreen",WATCH:"watch"},m={UNDEFINED:0,CREATED:1,STARTED:2,ENDED:3,ERROR:4},u={PUBLIC:"public",DOMAINS:"domains",PRIVATE:"private"},h={HEARTBEAT_COMMAND:e=>JSON.stringify({command:"heartbeat",data:e}),MAXIMUM_BACKOFF_MILLISECONDS:12e4,CHAT_CHANNEL:JSON.stringify({command:"subscribe",data:"chat"}),VIEWERS_COUNT_CHANNEL:JSON.stringify({command:"subscribe",data:"viewerCount"}),WEBINAR_STATUS_CHANNEL:JSON.stringify({command:"subscribe",data:"status"}),WEBINAR_INVITATION_CHANNEL:JSON.stringify({command:"subscribe",data:"invitation"}),CHAT_CHANNEL_UNSUBSCRIBE:JSON.stringify({command:"unsubscribe",data:"chat"}),VIEWERS_COUNT_CHANNEL_UNSUBSCRIBE:JSON.stringify({command:"unsubscribe",data:"viewerCount"}),WEBINAR_STATUS_CHANNEL_UNSUBSCRIBE:JSON.stringify({command:"unsubscribe",data:"status"}),WEBINAR_INVITATION_CHANNEL_UNSUBSCRIBE:JSON.stringify({command:"unsubscribe",data:"invitation"}),WEBINAR_ANALYTICS:e=>JSON.stringify({command:"trackAnalytics",data:e})},p=6e5,g=360,x=56;["png","jpeg","jpg","gif"].map(e=>".".concat(e)).join(",");let b=360},22987:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var i=o(68658),n=o(89495),r=o(33585);let a=(0,n.Ay)(r.A).attrs(e=>{let{id:t}=e;return{id:t}}).withConfig({componentId:"sc-3b3d79dd-0"})(["position:absolute;width:30px;height:30px;left:50%;top:50%;transform:translateX(-50%) translateY(-50%);"]),s=i.memo(a)},23279:(e,t,o)=>{"use strict";o.d(t,{A:()=>q});var i=o(94458),n=o(68658),r=o(1651),a=o(7963),s=o(70892),d=o(16750),l=o(44005),c=o(32571),m=o(89495),u=o(65049),h=o(34735),p=o.n(h),g=o(61141);let x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=6e4*new Date(e).getTimezoneOffset();return new Date(e.getTime()-t).toISOString().replace(/-|:|\.\d\d\d|Z/g,"")},b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\r\n/gm,"\n").replace(/\n/gm,"\\n").replace(/(\\n)[\s\t]+/gm,"\\n")};var f=o(77704),A=o(64992),j=o(67180),y=o(81183),w=o(19776),v=o(48167),C=o(72719),I=o(93268),E=o(22343),T=o(72416),S=o(44682),R=o(7372),k=o.n(R);let L=m.Ay.div.withConfig({componentId:"sc-4972a7ca-0"})(["padding:24px;text-align:center;background-color:",";border:1px solid ",";border-radius:",";svg{margin-left:10px;}svg:first-child{margin-left:0;margin-right:10px;}"],e=>{let{theme:t}=e;return t.colors.grey[100]},e=>{let{theme:t}=e;return t.misc.borderTransparentBlack},e=>{let{theme:t}=e;return t.shape.borderRadius}),D=(0,m.Ay)(E.Ay).attrs({variant:"body"}).withConfig({componentId:"sc-4972a7ca-1"})(["margin-bottom:8px;color:",";font-weight:",";line-height:16px;"],e=>{let{theme:t}=e;return t.colors.grey[900]},e=>{let{theme:t}=e;return t.text.fontWeightSemiBold}),M=(0,m.Ay)(E.Ay).attrs({variant:"body3",color:"main"}).withConfig({componentId:"sc-4972a7ca-2"})(["line-height:16px;margin-bottom:24px;"]);m.Ay.div.withConfig({componentId:"sc-4972a7ca-3"})(["position:relative;display:inline-block;"]);let N=(0,m.Ay)(T.A).withConfig({componentId:"sc-4972a7ca-4"})(["overflow:visible;padding:16px;background-color:",";color:",";svg{fill:",";}&:hover{background-color:",";}"],e=>{let{theme:t}=e;return t.onAirTheme.button.backgroundColor},e=>{let{theme:t}=e;return t.onAirTheme.button.textColor},e=>{let{theme:t}=e;return t.onAirTheme.button.textColor},e=>{let{theme:t}=e;return t.onAirTheme.button.hoverColor}),O=m.Ay.div.withConfig({componentId:"sc-4972a7ca-5"})(["margin:8px 0;height:1px;background-color:",";"],e=>{let{theme:t}=e;return t.colors.grey[200]}),_=m.Ay.figure.withConfig({componentId:"sc-4972a7ca-6"})(["width:20px;height:20px;margin:0 10px 0 0;background-image:url(",");background-size:cover;"],k()),P=(0,m.Ay)(S.A).withConfig({componentId:"sc-4972a7ca-7"})(["font-weight:",";"],e=>{let{theme:t}=e;return t.text.fontWeightSemiBold}),B=m.Ay.div.withConfig({componentId:"sc-4972a7ca-8"})(["background-color:",";width:48px;height:48px;margin:0 auto;margin-bottom:16px;border-radius:50%;position:relative;svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}"],e=>e.theme.colors.grey[120]);var z=o(66147);let H=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{origin:o,...i}=t,{webinarId:n}=e;return(0,z.A)({...i,method:"GET",uri:"".concat(o,"/webinars/").concat(n,"/link-token"),withCredentials:!0,maxAttempts:2})},U=e=>{var t;let{addToCalendarBtnIconColor:o="white"}=e,{colors:r}
1=(0,m.DP)(),[s,h]=(0,n.useState)(!1),E=(0,n.useRef)(null),T=e=>{a.Ay.track(a.Ay.events.ONAIR_ADD_TO_CALENDAR_CLICKED,{calendarType:e})},{downloadCalendar:S,googleCalendarLink:R}=(()=>{let{webinar:e}=(0,d.TW)(),{requestOptions:t}=(0,l.wV)(),{origin:o}=window.location,{data:i}=(0,c.useQuery)({queryFn:async()=>H({webinarId:e.id},t),refetchOnWindowFocus:!1,onError:e=>{C.Ay.error("Fetch calendar token",e)}}),r=(0,u.getWebinarUrl)({id:e.id,origin:o,token:null==i?void 0:i.token}),{google:a}=(0,u.getCalendarLinks)({...e,url:r}),{download:s}=(e=>{let{description:t,id:o=(0,g.N8)(8),origin:i,plannedDuration:r,scheduledAt:a,title:s,url:d}=e,l=(0,n.useMemo)(()=>(e=>{let{id:t,description:o,origin:i,plannedDuration:n,scheduledAt:r,title:a,url:s}=e,d=new Date,{startDate:l,endDate:c}=(0,u.getWebinarDates)({scheduledAt:r,plannedDuration:n});return["BEGIN:VCALENDAR\nVERSION:2.0","PRODID:".concat(i,"/StreamYard"),"BEGIN:VEVENT","UID:".concat(t,"@").concat(i),"CLASS:PUBLIC","DESCRIPTION:".concat(b(o)),"DTSTAMP;VALUE=DATE-TIME:".concat(x(d)),"DTSTART;VALUE=DATE-TIME:".concat(x(l)),"DTEND;VALUE=DATE-TIME:".concat(x(c)),"LOCATION:".concat(s),"URL:".concat(s),"SUMMARY;LANGUAGE=en-us:".concat(b(a)),"TRANSP:TRANSPARENT\nEND:VEVENT\nEND:VCALENDAR"].join("\n")})({description:t,id:o,origin:i,plannedDuration:r,scheduledAt:a,title:s,url:d}),[t,o,i,r,a,s,d]);return{download:(0,n.useCallback)(()=>{let e=p()(s);((e,t)=>{let o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=t,document.body.appendChild(i),i.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),document.body.removeChild(i)})(new Blob([l]),"".concat(e,".ics"))},[l,s])}})({...e,origin:o,url:r});return{downloadCalendar:s,googleCalendarLink:a}})(),k="".concat((0,A.Bd)("broadcasts.onAir.registration.button.addToCalendar.googleCalendar")," ").concat((0,A.Bd)("common.link.opensInNewTabText")),z=(0,n.useMemo)(()=>[{icon:(0,i.jsx)(_,{}),key:"google",label:(0,i.jsx)(A.wD,{tid:"broadcasts.onAir.registration.button.addToCalendar.googleCalendar"}),onClick:()=>(T("google"),window.open(R,"_blank"))},{icon:(0,i.jsx)(j.QO4,{}),key:"apple",label:(0,i.jsx)(A.wD,{tid:"broadcasts.onAir.registration.button.addToCalendar.appleCalendar"}),onClick:()=>{T("apple"),S()}},{icon:(0,i.jsx)(j.lbq,{}),key:"outlook",label:(0,i.jsx)(A.wD,{tid:"broadcasts.onAir.registration.button.addToCalendar.outlookCalendar"}),onClick:()=>{T("outlook"),S()}},{},{icon:(0,i.jsx)(f.z7U,{fill:r.grey[900]}),key:"download",label:(0,i.jsx)(A.wD,{tid:"broadcasts.onAir.registration.button.addToCalendar.downloadIcs"}),onClick:()=>{T("download"),S()}}],[r.grey,S,R]);return(0,i.jsxs)(L,{children:[(0,i.jsx)(B,{children:(0,i.jsx)(f.Jlk,{size:24,fill:r.green.dark})}),(0,i.jsx)(D,{children:(0,i.jsx)(A.wD,{tid:"broadcasts.onAir.registration.confirmation.title"})}),(0,i.jsx)(M,{children:(0,i.jsx)(A.wD,{tid:"broadcasts.onAir.registration.confirmation.body"})}),(0,i.jsx)(y.A,{tooltipProps:{hasArrow:!1,onVisibleWouldChange:()=>{a.Ay.track(a.Ay.events.ONAIR_ADD_TO_CALENDAR_DROPDOWN_OPENED),h(e=>!e)},offset:[0,4],placement:"bottom",visible:s},overlay:(0,i.jsx)(v.A,{style:{width:null==(t=E.current)?void 0:t.clientWidth},children:z.map((e,t)=>(0,g.Im)(e)?(0,i.jsx)(O,{},"divider-".concat(t)):(0,i.jsxs)(w.A,{"aria-label":"google"===e.key?k:void 0,onClick:e.onClick,thickness:"thin",children:[(0,i.jsx)(I.A,{children:e.icon}),(0,i.jsx)(P,{children:e.label})]},e.key))}),children:(0,i.jsxs)(N,{ref:E,children:[(0,i.jsx)(f.mlI,{fill:o}),(0,i.jsx)(A.wD,{tid:"broadcasts.onAir.registration.button.addToCalendar"}),s?(0,i.jsx)(f.gb2,{}):(0,i.jsx)(f.COR,{})]})})]})};var V=o(20270),F=o(67922),W=o(70720),K=o(90220);let G=m.Ay.div.withConfig({componentId:"sc-6ac1289-0"})(["width:90vw;max-width:640px;margin:0 auto;padding-top:64px;"]),Y=()=>{let{onAirTheme:e}=(0,s.e)();return(0,i.jsxs)(K.Ay,{children:[(0,i.jsx)(V.A,{}),(0,i.jsx)(U,{addToCalendarBtnIconColor:e.button.textColor})]})},q=()=>{let{setSessionRegistrationId:e}=(0,l.wV)(),{webinar:{isRegistrationEnabled:t,isUserRegistered:o},refetchWebinar:n,isPreview:s}=(0,d.TW)(),c=t&&!o;return(0,r.Su)(()=>{a.Ay.track(a.Ay.events.ONAIR_REGISTRATION_PAGE_VISITED)},()=>c&&!s),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(F.A,{}),(0,i.jsx)(G,{children:c?(0,i.jsx)(W.A,{onSuccess:t=>{e(t.id),n()}}):(0,i.jsx)(Y,{})})]})}},23988:(e,t,o)=>{"use strict";o.d(t,{A:()=>m});var i=o(94458),n=o(10536),r=o(55301),a=o.n(r);o(68658);var s=o(89495),d=o(22343);let l=(0,s.Ay)(d.Ay).attrs({variant:"body2"}).withConfig({componentId:"sc-22ec689c-0"})(["word-break:break-word;"]),c={rel:"noopener",target:"_blank"},m=e=>{let{className:t,message:o,innerRef:r,forceLinkify:s=!1}=e,d="moderator"===a()(o,"user.channelRole");return(0,i.jsx)(l,{className:t,innerRef:r,children:s||d?(0,i.jsx)(n.A,{options:c,children:o.text}):o.text})}},24695:(e,t,o)=>{"use strict";o.d(t,{A:()=>tA});var i={};o.r(i),o.d(i,{lx:()=>D,dC:()=>M,MG:()=>N});var n=o(94458),r=o(68658),a=o(89495),s=o(72416),d=o(45453),l=o(79832),c=o(67180),m=o(22343),u=o(64992),h=o(7963),p=o(35957),g=o(16750),x=o(72719),b=o(44005),f=o(66147);let A=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{origin:o,...i}=t,{userName:n}=e;return(0,f.A)({...i,body:{username:n},method:"POST",uri:"".concat(o,"/webinars/chat/username")})};var j=o(68550);
1let y={EditName:"EditName",JoinChat:"JoinChat",MessageList:"MessageList"},w={EditName:"EditName",JoinChat:"JoinChat"},v=function(){let{isEmbedded:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,o]=(0,r.useState)(y.MessageList),[i,n]=(0,r.useState)(),a=(0,r.useCallback)(()=>{e?o(y.JoinChat):n(w.JoinChat)},[e]);return{scene:t,modalScene:i,openJoinChatScene:a,openEditChatNameScene:(0,r.useCallback)(()=>{e?o(y.EditName):n(w.EditName)},[e]),closeScene:(0,r.useCallback)(()=>{o(y.MessageList),n(void 0)},[])}},C=(0,r.createContext)(void 0),I=()=>{let e=(0,r.useContext)(C);if(void 0===e)throw Error("useOnAir must be used within a OnAirProvider");return e},E=e=>{let{children:t}=e,{isEmbedded:o,webinar:{registeredUser:i}}=(0,g.TW)(),a=(()=>{let{requestOptions:e,setUserId:t}=(0,b.wV)(),o=(0,r.useRef)(!1),[i,n]=(()=>{let[e,t]=(0,r.useState)(()=>j.A.getItem("userName"));return(0,r.useEffect)(()=>{e?j.A.setItem("userName",e):j.A.removeItem("userName")},[e]),[e,t]})(),[a,s]=(0,r.useState)(null),[d,l]=(0,r.useState)(!1),[c,m]=(0,r.useState)(null),u=(0,r.useCallback)(async i=>{if(!(o.current||a===i)){o.current=!0,l(!0),m(null);try{let o=await A({userName:i},e);o.sessionId&&(t(o.sessionId),n(i),s(i))}catch(t){let e=(0,x.d0)(t);x.Ay.captureException({error:e,message:"onair_chat_redis_setup_error",tags:{onair:!0}}),m(e)}finally{o.current=!1,l(!1)}}},[e,t,n,a]),h=(0,r.useCallback)(e=>{let t=(e=>e&&e.firstName&&e.lastName?[e.firstName,e.lastName].join(" "):null)(e)||i;t&&u(t)},[u,i]);return{error:c,isLoading:d,retry:(0,r.useCallback)(()=>{i&&u(i)},[u,i]),setupClient:h,userName:i}})(),s=v({isEmbedded:o}),{setupClient:d}=a,l=(0,r.useRef)(d);return(0,r.useEffect)(()=>{l.current=d},[d]),(0,r.useEffect)(()=>{l.current(i)},[i]),(0,n.jsx)(C.Provider,{value:{...a,...s},children:t})},T=()=>{let{getSubscribeSocket:e}=(0,g.TW)(),t=(0,r.useCallback)(t=>{let o=e();o&&o.send(JSON.stringify({command:"message",data:{text:t}}))},[e]);return{sendMessage:t,addReaction:(0,r.useCallback)((t,o)=>{let i=e();i&&i.send(JSON.stringify({command:"reaction",data:{action:"add",messageRef:t,reaction:o}}))},[e]),removeReaction:(0,r.useCallback)((t,o)=>{let i=e();i&&i.send(JSON.stringify({command:"reaction",data:{action:"remove",messageRef:t,reaction:o}}))},[e])}};var S=o(67350),R=o(7912),k=o(21805);let L=e=>null==e||"string"==typeof e&&""===e.trim(),D=e=>L(e)&&(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.input.firstName.error.empty"}),M=e=>L(e)&&(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.input.lastName.error.empty"}),N=e=>Object.values(e).map(e=>e.validate&&!e.validate()).every(e=>!e),O=function(){let{name:e="",initialValue:t="",maxLength:o,validators:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[n,a]=(0,r.useState)(t),[s,d]=(0,r.useState)(null),l=(0,r.useCallback)(e=>{let{target:t}=e;a(t.value.slice(0,o))},[o]),c=(0,r.useCallback)(()=>(d(null),!Array.isArray(i)||i.every(e=>{let t=e(n);return d(t),!t})),[i,n]);return{name:e,error:s,maxLength:o,onChange:l,setError:d,validate:c,value:n}};var _=o(58828);let{lx:P,dC:B,MG:z}=i,H=e=>{let{currentName:t="",onSuccess:o,updateRegistrant:i=!1}=e,{setupClient:n}=I(),[a,s]=(0,r.useState)(),[d,l]=(0,r.useState)(!1),c=(0,_.Qc)(),[m,...u]=t?t.split(" "):["",""],h=O({name:"firstName",initialValue:m,validators:[P]}),p=O({name:"lastName",initialValue:u.join(" "),validators:[B]}),g=(0,r.useMemo)(()=>({firstName:h,lastName:p}),[h,p]),x=(0,r.useCallback)(async e=>{if(e&&e.preventDefault&&e.preventDefault(),!z(g))return;let[t,r]=[g.firstName.value,g.lastName.value];i&&await c.mutateAsync({firstName:t,lastName:r});try{l(!0),await n({firstName:t,lastName:r}),o&&o()}catch(e){s(e)}finally{l(!1)}},[g,o,n,c,i]);return{error:a,fields:g,isLoading:d||c.isLoading,onSubmit:x}};var U=o(2736);let V=e=>{let{firstName:t,lastName:o}=e,i=(0,u.Bd)("broadcasts.onAir.chat.message.modal.input.firstName"),r=(0,u.Bd)("broadcasts.onAir.chat.message.modal.input.lastName");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U.A,{autoComplete:"given-name",error:t.error,fullWidth:!0,gutterBottom:!0,label:i,onChange:t.onChange,size:"medium",value:t.value}),(0,n.jsx)(U.A,{autoComplete:"family-name",error:o.error,fullWidth:!0,gutterBottom:!0,label:r,onChange:o.onChange,size:"medium",value:o.value})]})},F=()=>(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.edit.title"}),W=a.Ay.div.withConfig({componentId:"sc-d62bd8de-0"})(["padding:24px;"]),K=a.Ay.div.withConfig({componentId:"sc-d62bd8de-1"})(["display:flex;align-content:center;flex-direction:column;"]),G=(0,a.Ay)(s.A).withConfig({componentId:"sc-d62bd8de-2"})(["margin-bottom:8px;"]),Y=(0,a.Ay)(m.Ay).attrs({gutterBottom:!0,variant:"h3",component:"h2"}).withConfig({componentId:"sc-d62bd8de-3"})(["text-align:center;"]),q=e=>{let{currentName:t,onRequestClose:o,onSuccess:i}=e,{webinar:r}=(0,g.TW)(),{fields:{firstName:a,lastName:d},isLoading:l,onSubmit:c}=H({currentName:t,onSuccess:i,updateRegistrant:r.isRegistrationEnabled});return(0,n.jsxs)(W,{children:[(0,n.jsx)(Y,{children:(0,n.jsx)(F,{})}),(0,n.jsxs)("form",{onSubmit:c,children:[(0,n.jsx)(V,{firstName:a,lastName:d}),(0,n.jsxs)(K,{children:[(0,n.jsx)(G,{loading:l,onClick:c,size:"medium",children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.edit.confirm"})}),(0,n.jsx)(s.A,{color:"grey",onClick:o,size:"medium",variant:"text",children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.cancel"})})]})]})]})};var Z=o(73904),J=o(7533),Q=o(85073);let $=a.Ay.div.withConfig({componentId:"sc-1996ef0a-0"})(["display:flex;justify-content:flex-end;align-items:center;column-gap:12px;"]),X=e=>{let{currentName:t,isOpen:o=!1,onRequestClose:i,onSuccess:r}=e,{webinar:a}=(0,g.TW)(),{fields:{firstName:d,lastName:l},isLoading:c,onSubmit:m}=H({currentName:t,onSuccess:r,updateRegistrant:a.isRegistrationEnabled}),h={label:(0,u.Bd)("broadcasts.onAir.chat.message.modal.edit.title")};return(0,n.jsx)(Q.A,{aria:h,isOpen:o,onRequestClose:i,children:(0,n.jsxs)(Z.A,{children:[(0,n.jsx)(J.A,{gutterBottom:!0,children:(0,n.jsx)(F,{})}),(0,n.jsxs)("form",{onSubmit:m,children:[(0,n.jsx)(V,{firstName:d,lastName:l}),(0,n.jsxs)($,{children:[(0,n.jsx)(s.A,{color:"grey",onClick:i,size:"medium",variant:"text",type:"button",children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.cancel"})}),(0,n.jsx)(s.A,{loading:c,onClick:m,size:"medium",type:"submit",children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.edit.confirm"})})]})]})]})})},ee=e=>{let{firstName:t,lastName:o}=e,i=(0,u.Bd)("broadcasts.onAir.chat.message.modal.input.firstName"),r=(0,u.Bd)("broadcasts.onAir.chat.message.modal.input.lastName");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U.A,{autoComplete:"given-name",error:t.error,fullWidth:!0,gutterBottom:!0,label:i,onChange:t.onChange,size:"medium",value:t.value}),(0,n.jsx)(U.A,{autoComplete:"family-name",error:o.error,fullWidth:!0,gutterBottom:!0,label:r,onChange:o.onChange,size:"medium",value:o.value})]})},et=()=>(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.title"}),eo=a.Ay.div.withConfig({componentId:"sc-8e615895-0"})(["padding:24px;"]),ei=a.Ay.div.withConfig({componentId:"sc-8e615895-1"})(["display:flex;align-content:center;flex-direction:column;"]),en=(0,a.Ay)(s.A).withConfig({componentId:"sc-8e615895-2"})(["margin-bottom:8px;"]),er=(0,a.Ay)(m.Ay).attrs({gutterBottom:!0,variant:"h3",component:"h2"}).withConfig({componentId:"sc-8e615895-3"})(["text-align:center;"]),ea=e=>{let{onRequestClose:t,onSuccess:o}=e,{fields:{firstName:i,lastName:r},isLoading:a,onSubmit:d}=H({onSuccess:o});return(0,n.jsxs)(eo,{children:[(0,n.jsx)(er,{children:(0,n.jsx)(et,{})}),(0,n.jsx)(ee,{firstName:i,lastName:r}),(0,n.jsxs)(ei,{children:[(0,n.jsx)(en,{loading:a,onClick:d,size:"medium",children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.confirm"})}),(0,n.jsx)(s.A,{color:"grey",onClick:t,size:"medium",variant:"text",children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.cancel"})})]})]})},es=a.Ay.div.withConfig({componentId:"sc-7e09ec20-0"})(["display:flex;justify-content:flex-end;align-items:center;column-gap:12px;"]),ed=e=>{let{isOpen:t=!1,onRequestClose:o,onSuccess:i}=e,{fields:{firstName:r,lastName:a},isLoading:d,onSubmit:l}=H({onSuccess:i}),c={label:(0,u.Bd)("broadcasts.onAir.chat.message.modal.title")};return(0,n.jsx)(Q.A,{aria:c,isOpen:t,onRequestClose:o,children:(0,n.jsxs)(Z.A,{children:[(0,n.jsx)(J.A,{gutterBottom:!0,children:(0,n.jsx)(et,{})}),(0,n.jsx)(ee,{firstName:r,lastName:a}),(0,n.jsxs)(es,{children:[(0,n.jsx)(s.A,{color:"grey",onClick:o,size:"medium",variant:"text",children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.cancel"})}),(0,n.jsx)(s.A,{loading:d,onClick:l,size:"medium",children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.confirm"})})]})]})})};var el=o(30186),ec=o(50959),em=o(72631);let eu=(0,a.Ay)(U.A).attrs(e=>{let{maxRows:t=4,padding:o="8px 12px"}=e;return{autoFocus:!0,autoGrow:!0,fullWidth:!0,maxRows:t,minRows:1,multiline:!0,resize:"none",size:"medium",padding:o}}).withConfig({componentId:"sc-74fbdd87-0"})(["& textarea{display:block;padding:",";}"],e=>e.padding);var eh=o(51940),ep=o(44682),eg=o(48167);let ex=a.Ay.div.withConfig({componentId:"sc-ddeafd8-0"})(["margin-right:16px;"]),eb=e=>{let{children:t,...o}=e;return(0,n.jsx)(ex,{children:r.cloneElement(t,{size:"medium",...o})})};var ef=o(19776);let eA=(0,a.Ay)(m.Ay).withConfig({componentId:"sc-b82903cc-0"})(["background-color:",";border-radius:",";color:",";font-size:13px;margin-left:",";margin-top:2px;padding:8px 12px;"],e=>e.theme.colors.black,e=>e.theme.shape.borderRadius,e=>e.theme.colors.white,e=>"-".concat(e.theme.text.body2.fontSize));var ej=o(81183),ey=o(14802),ew=o(12461),ev=o(92321),eC=o(62833),eI=o(98938);let eE=a.Ay.div.withConfig({componentId:"sc-f7ca50a0-0"})(["width:260px;max-height:70vh;overflow-y:auto;"]),eT=(0,a.Ay)(ey.A).attrs({size:18}).withConfig({componentId:"sc-f7ca50a0-1"})(["margin:0 4px;vertical-align:middle;fill:",";"],e=>e.theme.colors.black),eS=(0,a.Ay)(ev.A).withConfig({componentId:"sc-f7ca50a0-2"})(["border-radius:4px;margin-right:4px;padding:4px;"," &:hover{background-color:",";}&:active{outline:3px solid #c0d2fb;}"],e=>{let{isEmbedded:t,inputFocused:o}=e;return t&&o&&eC.Nz},e=>{let{theme:t}=e;return t.colors.grey[100]}),eR="chat-options-selection-menu",ek=e=>{let{isFocused:t}=e,{isEmbedded:o}=(0,g.TW)(),{userId:i}=(0,b.wV)(),{openEditChatNameScene:a,userName:s}=I(),[d,l]=(0,r.useState)(!1),c=(0,r.useCallback)(()=>l(e=>!e),[]),m=(0,r.useCallback)(()=>l(!1),[]);return(0,n.jsx)(ej.A,{id:eR,tooltipProps:{placement:"top",visible:d,onVisibleWouldChange:c,hasArrow:!1}
1,overlay:(0,n.jsx)(eE,{onClick:m,children:(0,n.jsx)(eg.A,{children:(0,n.jsxs)(ef.A,{onClick:a,children:[(0,n.jsx)(eb,{size:"16",children:(0,n.jsx)(ew.A,{})}),(0,n.jsx)(ep.A,{children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.input.editName"})})]})})}),children:(0,n.jsxs)(eS,{"aria-controls":eR,inputFocused:t,isEmbedded:o,tabIndex:0,children:[(0,n.jsx)(eh.A,{hasArrow:!1,overlay:(0,n.jsx)(eA,{variant:"body2",children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.input.icon.tooltip",values:{name:s}})}),placement:d?"left":"top",trigger:"hover",children:(0,n.jsx)(eI.Ay,{id:i||void 0,text:s||void 0,size:"large"})}),(0,n.jsx)(eT,{})]})})},eL=a.Ay.div.withConfig({componentId:"sc-3fee3e6a-0"})(["display:flex;align-items:start;background-color:",";padding:12px;"],e=>e.theme.colors.white),eD=a.Ay.div.withConfig({componentId:"sc-3fee3e6a-1"})(["flex:1;"]),eM=(0,a.Ay)("div").withConfig({componentId:"sc-3fee3e6a-2"})(["display:flex;flex-wrap:nowrap;position:relative;flex:1;&&&{textarea{border:1px solid ",";border-radius:",";box-shadow:none;display:flex;font-size:",";line-height:normal;max-height:129px;min-height:53px;overflow-y:auto;padding-right:40px;width:100%;}textarea::placeholder{font-size:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"],e=>e.isError?e.theme.colors.error.dark:e.isFocused?e.theme.colors.primary.main:e.theme.colors.inputBorder,e=>e.theme.shape.borderRadius,e=>e.theme.text.body2.fontSize,e=>e.theme.text.body2.fontSize),eN=(0,a.Ay)(el.A).withConfig({componentId:"sc-3fee3e6a-3"})(["position:absolute;right:0;bottom:0;margin:8px;"]),eO=()=>{let{sendMessage:e}=T(),[t,o]=(0,r.useState)(""),[i,a]=(0,r.useState)(!1),s=t.length>500,d=!t.trim()||s,l=()=>{e(t),o("")};return(0,n.jsxs)(eL,{children:[(0,n.jsx)(ek,{isFocused:i}),(0,n.jsxs)(eD,{children:[(0,n.jsxs)(eM,{isFocused:i,isError:s,children:[(0,n.jsx)(eu,{maxRows:6,onBlur:()=>a(!1),onKeyDown:e=>{!e.nativeEvent.isComposing&&229!==e.nativeEvent.keyCode&&("Enter"!==e.key||e.shiftKey||(e.preventDefault(),l()))},onChange:e=>o(e.target.value),onFocus:()=>a(!0),padding:"16px",placeholder:(0,u.Bd)("broadcasts.onAir.chat.message.input.placeholder"),resize:"none",value:t}),(0,n.jsx)(eN,{color:d?"grey":"primary",disableBackground:!0,disabled:d,disableFocusShadow:!0,onClick:l,children:(0,n.jsx)(ec.A,{})})]}),s&&(0,n.jsx)(em.A,{children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.input.error.long",values:{maxLen:500}})})]})]})};var e_=o(10461),eP=o(43583),eB=o(77704),ez=o(44918),eH=o(23988),eU=o(1651),eV=o(81198);let eF=e=>{let{onHide:t,onUndo:o}=e,i=(0,a.DP)();return(0,eU.Z3)(t,5e3),(0,n.jsx)(l.A,{icon:(0,n.jsx)(eB.DT4,{fill:i.tokens.COLOR_TOKENS_ICON_INVERTIBLE_PRIMARY_PRIMARY_MODERATE,size:20}),size:"medium",variant:"primary",fullWidth:!0,children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.pinnedMessage.hide.confirmation",components:{link:(0,n.jsx)(eV.A,{onClick:o,underline:!1})}})})},eW=a.Ay.div.withConfig({componentId:"sc-ab7e0ad4-0"})(["position:absolute;top:0;z-index:10;width:100%;display:flex;flex-direction:column;padding:8px;@media ","{padding:4px;}"],R.HP.belowSmall),eK=(0,a.Ay)("div").withConfig({componentId:"sc-ab7e0ad4-1"})(["display:flex;flex-direction:column;flex:1;background-color:",";padding:12px 16px;border-radius:",";box-shadow:",";width:100%;"],e=>e.theme.onAirTheme.backgroundColor,e=>e.theme.shape.borderRadius,e=>e.theme.shadows.subtle),eG=a.Ay.div.withConfig({componentId:"sc-ab7e0ad4-2"})(["display:flex;align-items:start;"]),eY=(0,a.Ay)(eH.A).withConfig({componentId:"sc-ab7e0ad4-3"})(["flex:1;",""],e=>!e.isExpanded&&(0,a.AH)(["overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;"])),eq=a.Ay.div.withConfig({componentId:"sc-ab7e0ad4-4"})(["display:flex;align-items:center;gap:8px;width:100%;margin-top:6px;"]),eZ=(0,a.Ay)(m.Ay).attrs({color:"semiLight",variant:"body3"}).withConfig({componentId:"sc-ab7e0ad4-5"})(["text-overflow:ellipsis;overflow:hidden;white-space:nowrap;min-width:0;"]),eJ=(0,a.Ay)(m.Ay).attrs({color:"semiLight",variant:"body3"}).withConfig({componentId:"sc-ab7e0ad4-6"})(["white-space:nowrap;"]),eQ=a.Ay.div.withConfig({componentId:"sc-ab7e0ad4-7"})(["display:flex;align-items:center;"]),e$=e=>{var t;let{message:o,onHide:i}=e,[a,s]=(0,r.useState)(!1),[d,l]=(0,r.useState)(!1),c=(0,r.useRef)(null);(0,r.useEffect)(()=>{s(!!(c.current&&(e=>e.offsetHeight<e.scrollHeight)(c.current))),l(!1)},[o]);let m=(0,u.Bd)("common.showLess"),h=(0,u.Bd)("common.showMore"),p=(0,u.Bd)("broadcasts.onAir.chat.pinnedMessage.hide.tip");return(0,n.jsxs)(eK,{children:[(0,n.jsxs)(eG,{children:[(0,n.jsx)(eY,{isExpanded:d,forceLinkify:!0,message:o,innerRef:c}),(0,n.jsxs)(eQ,{children:[(0,n.jsx)(ez.A,{hasArrow:!1,text:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.pinnedMessage.hide.tip"}),children:(0,n.jsx)(el.A,{"aria-label":p,size:"small-plus",onClick:()=>{i()},children:(0,n.jsx)(eB.EZF,{})})}),a&&(0,n.jsx)(ez.A,{hasArrow:!1,text:d?(0,n.jsx)(u.wD,{tid:"common.showLess"}):(0,n.jsx)(u.wD,{tid:"common.showMore"}),children:(0,n.jsx)(el.A,{"aria-label":d?m:h,size:"small-plus",onClick:()=>{l(!d)},children:d?(0,n.jsx)(eB.rXn,{}):(0,n.jsx)(eB.yQN,{})})})]})]}),(0,n.jsxs)(eq,{children:[(0,n.jsx)(eZ,{children:null==o||null==(t=o.user)?void 0:t.name}),(0,n.jsx)(eJ,{children:(0,n.jsx)(eP.A,{date:new Date(parseInt(o.timestamp,10)),hour:"numeric",minute:"2-digit"})})]})]})},eX=e=>{let{message:t,onHide:o}=e,[i,a]=(0,r.useState)(!1);return i?(0,n.jsx)(eF,{onHide:o,onUndo:()=>{a(!1)}}):(0,n.jsx)(e$,{message:t,onHide:()=>{a(!0)}})},e0=e=>{var t;let{message:o,onHide:i}=e,a=(0,r.useRef)(),s=(null==(t=a.current)?void 0:t.offsetHeight)||100;return(0,e_.useTransition)(o?[o]:[],{from:{opacity:0,marginTop:-1*s},enter:{delay:300,opacity:1,marginTop:0},leave:{opacity:0,marginTop:-1*s},config:{duration:300}})((e,t)=>(0,n.jsx)(e_.animated.div,{ref:a,style:e,children:(0,n.jsx)(eX,{message:t,onHide:i})},t.id))},e1=e=>{let{messages:t}=e,[o,i]=(0,r.useState)(!1),a=(null==t?void 0:t.find(e=>e.pinned))||void 0,s=o?void 0:a;return(0,r.useEffect)(()=>{i(!1)},[null==a?void 0:a.user.id,null==a?void 0:a.timestamp]),(0,n.jsx)(eW,{children:(0,n.jsx)(e0,{message:s,onHide:()=>{i(!0)}})})};var e2=o(61141);let e5=function(e){let{onPaused:t=e2.lQ,onResumed:o=e2.lQ,onScrollBottom:i=e2.lQ,onScrollTop:n=e2.lQ,scrollRef:a,threshold:s=20}=e,[d,l]=(0,r.useState)(!1),c=(0,r.useRef)(!1),m=(0,r.useRef)(!0),u=(0,r.useCallback)(()=>{!d&&a.current&&(a.current.scrollTop=a.current.scrollHeight)},[d,a]),h=(0,r.useCallback)(()=>
1{if(!a.current)return;let{scrollHeight:e,scrollTop:r,clientHeight:u}=a.current;0===r&&e>u?(n(),c.current=!0):c.current=!1,e-(r+u)>s?(m.current=!1,d||(l(!0),t())):(m.current=!0,d&&(l(!1),o()),i())},[d,t,o,i,n,a,s]);return(0,eU.wY)(a.current,u),{isPaused:d,scrollDown:u,onScroll:h,isAtTopRef:c,isAtBottomRef:m}};var e4=o(61941);let e8=a.Ay.div.withConfig({componentId:"sc-eafc8d4a-0"})(["background-color:",";display:flex;justify-content:center;align-items:center;width:60px;height:60px;border-radius:50%;"],e=>e.theme.colors.grey[120]),e6=(0,a.Ay)(e4.A).attrs(e=>{let{theme:t}=e;return{fill:t.colors.grey[400]}}).withConfig({componentId:"sc-eafc8d4a-1"})([""]),e3=a.Ay.div.withConfig({componentId:"sc-eafc8d4a-2"})(["overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;"]),e7=(0,a.Ay)(m.Ay).attrs({variant:"body2"}).withConfig({componentId:"sc-eafc8d4a-3"})([""]),e9=()=>(0,n.jsxs)(e3,{children:[(0,n.jsx)(e8,{children:(0,n.jsx)(e6,{})}),(0,n.jsx)(e7,{children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.empty.firstComment"})})]});e9.propTypes={},e9.defaultProps={};var te=o(83106);let tt=a.Ay.div.withConfig({componentId:"sc-e92e45ce-0"})(["display:flex;flex-direction:column;overflow-y:auto;flex:1;"]),to=e=>{let{messages:t,onAddReaction:o,onPausedStateChange:i}=e,a=(0,r.useRef)(null),s=(0,eU.ZC)(t),[d,l]=(0,r.useState)(0),{onScroll:c,scrollDown:m,isPaused:u}=e5({scrollRef:a,onPaused:()=>l(0),onResumed:()=>l(0)}),h=()=>{a.current&&(a.current.scrollTop=a.current.scrollHeight,l(0))};return(0,r.useEffect)(()=>{s&&(t.length>s.length||function(e,t){return!e||!t||e.timestamp!==t.timestamp||e.user.id!==t.user.id}(t.slice(-1)[0],s.slice(-1)[0]))&&(u?l(e=>e+1):m())},[t,s,m,u]),(0,r.useEffect)(()=>{null==i||i(u,d,h)},[u,d,i]),(0,n.jsx)(tt,{ref:a,onScroll:c,children:0===t.length?e9():t.map(e=>(0,n.jsx)(te.A,{message:e,onAddReaction:o},"".concat(e.timestamp,"-").concat(e.user.id)))})};var ti=o(18517);let tn=a.Ay.div.withConfig({componentId:"sc-f7ac01c6-0"})(["position:absolute;bottom:72px;left:50%;transform:translateX(-50%);z-index:10;"]),tr=a.Ay.button.withConfig({componentId:"sc-f7ac01c6-1"})(["display:flex;align-items:center;gap:8px;padding:8px 16px;background:#1976d2;color:white;border:none;border-radius:20px;font-size:14px;font-weight:500;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,0.15);transition:all 0.2s ease;&:hover{background:#1565c0;box-shadow:0 4px 12px rgba(0,0,0,0.2);}&:active{transform:scale(0.98);}@media ","{padding:6px 12px;font-size:13px;}"],R.HP.belowSmall),ta=a.Ay.span.withConfig({componentId:"sc-f7ac01c6-2"})(["display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;background:rgba(255,255,255,0.3);border-radius:10px;font-size:12px;font-weight:600;"]),ts=e=>{let{count:t,onClick:o}=e;return 0===t?null:(0,n.jsx)(tn,{children:(0,n.jsxs)(tr,{onClick:o,children:[(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.newMessages"}),(0,n.jsx)(ta,{children:t})]})})},td=a.Ay.div.withConfig({componentId:"sc-e76b188d-0"})(["display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden;background-color:rgb(255,255,255);"]),tl=a.Ay.div.withConfig({componentId:"sc-e76b188d-1"})(["position:relative;display:flex;flex-direction:column;flex:1;overflow-y:auto;"]),tc=(0,a.Ay)(e=>{let{className:t,countdownDate:o}=e,{tokens:i}=(0,a.DP)(),[s,d]=(0,r.useState)(!1),c=o.getTime(),m=(0,eU.cB)({delay:1e3,paused:s});(0,r.useEffect)(()=>{m>=c&&d(!0)},[c,m]);let h=c-m,p=(0,e2.l5)(h>0?h:0);return(0,n.jsx)("div",{className:t,children:(0,n.jsx)(l.A,{icon:(0,n.jsx)(ti.A,{fill:i.COLOR_TOKENS_ICON_INVERTIBLE_PRIMARY_PRIMARY_MODERATE,size:20}),size:"medium",variant:"primary",children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.countdown",values:{timerText:p}})})})}).withConfig({componentId:"sc-e76b188d-2"})(["margin:8px;@media ","{margin:4px;}"],R.HP.belowSmall),tm=(0,a.Ay)(s.A).withConfig({componentId:"sc-e76b188d-3"})(["margin:12px;border-color:",";color:",";&:hover{border-color:",";color:",";}"],e=>{let{theme:t}=e;return t.onAirTheme.chatButton.borderColor},e=>{let{theme:t}=e;return t.onAirTheme.chatButton.textColor},e=>{let{theme:t}=e;return t.onAirTheme.chatButton.borderHoverColor},e=>{let{theme:t}=e;return t.onAirTheme.chatButton.textHoverColor}),tu=a.Ay.div.withConfig({componentId:"sc-e76b188d-4"})(["overflow:auto;"]),th=()=>{let{messages:e}=(0,S.u)(),{webinar:{completedAt:t}}=(0,g.TW)(),{addReaction:o,removeReaction:i}=T(),{closeScene:a,modalScene:s,openJoinChatScene:d,scene:l,userName:c}=I(),[m,h]=(0,r.useState)(!1),[p,x]=(0,r.useState)(0),[b,f]=(0,r.useState)(null),A=(0,r.useCallback)((e,t,o)=>{h(e&&t>0),x(t),f(()=>o)},[]),j=(0,r.useCallback)(()=>{null==b||b()},[b]);return(0,n.jsxs)(td,{children:[t&&(0,n.jsx)(tc,{countdownDate:new Date(new Date(t).valueOf()+k.oS)}
1),l===y.JoinChat&&(0,n.jsx)(tu,{children:(0,n.jsx)(ea,{onRequestClose:a,onSuccess:a})}),l===y.EditName&&(0,n.jsx)(tu,{children:(0,n.jsx)(q,{currentName:c||"",onRequestClose:a,onSuccess:a})}),l===y.MessageList&&(0,n.jsxs)(tl,{children:[(0,n.jsx)(e1,{messages:e||[]}),(0,n.jsx)(to,{messages:e||[],onAddReaction:(e,t,n,r)=>{if(!c)return void d();n?i(e,t):o(e,t)},onPausedStateChange:A}),m&&(0,n.jsx)(ts,{count:p,onClick:j}),c?(0,n.jsx)(eO,{}):(0,n.jsx)(tm,{onClick:d,size:"medium",variant:"outlined",children:(0,n.jsx)(u.wD,{tid:"broadcasts.onAir.chat.message.modal.button"})})]}),s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(X,{currentName:c||"",isOpen:s===y.EditName,onRequestClose:a,onSuccess:a}),(0,n.jsx)(ed,{isOpen:s===y.JoinChat,onRequestClose:a,onSuccess:a})]})]})},tp="onair-chat-feedback-block-text-wrapper",tg=a.Ay.div.withConfig({componentId:"sc-eb9dc2b1-0"})(["display:flex;flex:1;width:100%;"]),tx=(0,a.Ay)(l.A).withConfig({componentId:"sc-eb9dc2b1-1"})([".","{text-align:center;}"],tp),tb=(0,a.Ay)(c.PaH).withConfig({componentId:"sc-eb9dc2b1-2"})(["width:30px;height:30px;margin-bottom:",";"],p.A.text.body.marginBottom),tf=()=>{let{colors:e}=(0,a.DP)(),{userId:t}=(0,b.wV)(),{error:o,retry:i,isLoading:l}=I(),p=(0,u.Bd)("common.onair.watch.chat.refresh.button");return o||l?(0,n.jsx)(tg,{children:(0,n.jsxs)(tx,{variant:"neutral",textWrapClassName:tp,withBorder:!1,isText:!1,fullWidth:!0,children:[l&&(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(tb,{}),(0,n.jsx)(m.Ay,{variant:"body",children:(0,n.jsx)(u.wD,{tid:"common.onair.watch.chat.loading"})})]}),!!(!l&&o)&&(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(m.Ay,{variant:"body",children:(0,n.jsx)(u.wD,{tid:"common.onair.watch.chat.error"})}),(0,n.jsx)(m.Ay,{variant:"body",gutterBottom:!0,children:(0,n.jsx)(u.wD,{tid:"common.onair.watch.chat.refresh"})}),(0,n.jsxs)(s.A,{onClick:()=>{h.Ay.track(h.Ay.events.ONAIR_CHAT_REFRESHED,{chatUserId:t}),null==i||i()},size:"large",variant:"outlined",loading:l,"aria-label":p,children:[p,(0,n.jsx)(d.A,{side:"right",size:24,children:(0,n.jsx)(c.C42,{fill:e.icon,size:"24"})})]})]})]})}):(0,n.jsx)(tg,{children:(0,n.jsx)(th,{})})},tA=()=>(0,n.jsx)(E,{children:(0,n.jsx)(tf,{})})},27294:(e,t,o)=>{"use strict";o.d(t,{A:()=>S});var i=o(94458),n=o(68658),r=o(89495),a=o(72416),s=o(79832),d=o(30186),l=o(77704),c=o(99415),m=o(22343),u=o(64992),h=o(7963),p=o(72719),g=o(7912),x=o(70892);let b=(0,r.i7)(["from{width:100%;}to{width:0%;}"]),f=r.Ay.div.withConfig({componentId:"sc-263621f7-0"})(["width:100%;position:absolute;bottom:0;left:0;"]),A=(0,r.Ay)("div").withConfig({componentId:"sc-263621f7-1"})(["height:5px;background-color:",";width:0%;position:absolute;bottom:0;animation:"," linear ","s forwards;border-bottom-left-radius:4px;border-bottom-right-radius:1px;border-top-right-radius:1px;"],e=>e.theme.colors.inputBorder,b,e=>e.duration),j=e=>{let{duration:t}=e;return(0,i.jsx)(f,{children:(0,i.jsx)(A,{duration:t})})},y=(0,r.Ay)(s.A).withConfig({componentId:"sc-6b1a0012-0"})(["position:fixed;z-index:1000;width:600px;margin-left:16px;margin-right:16px;max-width:calc(100% - 32px);@media ","{width:auto;margin-left:8px;margin-top:8px;max-width:calc(100% - 16px);}"],[g.HP.belowLarge,g.HP.portrait].join(" and ")),w=r.Ay.div.withConfig({componentId:"sc-6b1a0012-1"})(["display:flex;flex-direction:column;flex-grow:1;"]),v=r.Ay.div.withConfig({componentId:"sc-6b1a0012-2"})(["display:flex;flex-grow:1;flex-direction:column;margin-right:24px;gap:2px;"]),C=(0,r.Ay)(d.A).withConfig({componentId:"sc-6b1a0012-3"})(["position:absolute;top:2px;right:2px;"]),I=r.Ay.div.withConfig({componentId:"sc-6b1a0012-4"})(["position:absolute;top:10px;left:8px;"]),E=r.Ay.div.withConfig({componentId:"sc-6b1a0012-5"})(["display:flex;justify-content:flex-end;align-items:center;margin-top:16px;gap:8px;margin-right:32px;padding-bottom:8px;"]),T=async()=>{if(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement)try{let e=document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.mozExitFullScreen;e&&await e.apply(document)}catch(e){p.Ay.error("Error while trying to exit fullscreen",e)}},S=e=>{let{invitationLink:t,invitationDate:o,onJoin:r}
1=e,[s,d]=(0,n.useState)(),{colors:p}=(0,x.e)(),g=(0,u.Bd)("common.modal.button.closeAriaLabel"),b=(0,n.useCallback)(()=>{d(null)},[d]),f=(0,n.useCallback)(()=>{h.Ay.track(h.Ay.events.ONAIR_USER_REJECTED_TO_JOIN_STUDIO,{link:s}),b()},[b,s]),A=(0,n.useCallback)(()=>{s&&(h.Ay.track(h.Ay.events.ONAIR_USER_ACCEPTED_TO_JOIN_STUDIO,{link:s}),r(),b())},[s,r,b]);return((0,n.useEffect)(()=>{s||(T(),d(t))},[o,t,d]),(0,n.useEffect)(()=>{if(!s)return;let e=setTimeout(()=>{d(null)},3e4);return()=>clearTimeout(e)},[s]),s)?(0,i.jsx)(y,{variant:"primary",gutterTop:!0,isText:!1,action:(0,i.jsx)(C,{onClick:f,"aria-label":g,children:(0,i.jsx)(c.A,{})}),icon:(0,i.jsx)(I,{children:(0,i.jsx)(l.DT4,{fill:p.blue.main,size:void 0})}),children:(0,i.jsxs)(w,{children:[(0,i.jsxs)(v,{children:[(0,i.jsx)(m.Ay,{variant:"h5",component:"h5",children:(0,i.jsx)(u.wD,{tid:"broadcasts.onAir.viewerPage.host.invitation.title"})}),(0,i.jsx)(m.Ay,{variant:"body2",component:"span",children:(0,i.jsx)(u.wD,{tid:"broadcasts.onAir.viewerPage.host.invitation.body"})})]}),(0,i.jsxs)(E,{children:[(0,i.jsx)(a.A,{size:"medium",onClick:A,to:s,newTab:!0,children:(0,i.jsx)(u.wD,{tid:"broadcasts.onAir.viewerPage.host.invitation.join"})}),(0,i.jsx)(a.A,{size:"medium",onClick:f,color:"error",variant:"outlined",colorOverride:{outlined:{error:{background:"transparent",border:p.error.main,text:p.error.main}}},children:(0,i.jsx)(u.wD,{tid:"broadcasts.onAir.viewerPage.host.invitation.decline"})})]}),(0,i.jsx)(j,{duration:30})]})}):null}},29322:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var i=o(89495),n=o(72416),r=o(35471);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.xb.CONTAINED;return({[r.xb.CONTAINED]:(0,i.AH)(["background-color:",";color:",";border:1px solid ",";&:hover:enabled{background-color:",";}"],e.onAirTheme.button.backgroundColor,e.onAirTheme.button.textColor,e.onAirTheme.button.borderColor,e.onAirTheme.button.hoverColor),[r.xb.OUTLINED]:(0,i.AH)(["border-color:",";color:",";&:hover{border-color:",";color:",";}"],e.onAirTheme.chatButton.borderColor,e.onAirTheme.chatButton.textColor,e.onAirTheme.chatButton.borderHoverColor,e.onAirTheme.chatButton.textHoverColor)})[t]},s=(0,i.Ay)(n.A).withConfig({componentId:"sc-99df04a1-0"})(["",""],e=>{let{theme:t,variant:o}=e;return a(t,o)})},31194:(e,t,o)=>{"use strict";o.d(t,{Pd:()=>c,dy:()=>m,hE:()=>l,mO:()=>d,yO:()=>u,z8:()=>s});var i=o(89495),n=o(72416),r=o(22343),a=o(21805);let s=i.Ay.img.withConfig({componentId:"sc-95e07474-0"})(["height:48px;margin-bottom:12px;"]),d=i.Ay.div.withConfig({componentId:"sc-95e07474-1"})(["margin-bottom:16px;text-align:center;@media screen and (max-height:","px){margin-bottom:4px;}"],a.ZM),l=(0,i.Ay)(r.Ay).attrs({color:"dark"}).withConfig({componentId:"sc-95e07474-2"})(["word-break:break-word;margin-bottom:8px;font-size:",";font-weight:",";line-height:3rem;"," @media screen and (max-height:","px){font-size:16px;margin-bottom:2px;line-height:normal;}"],e=>{let{variant:t}=e;return"h4"===t?"1.6rem":"2.4rem"},e=>{let{theme:t}=e;return t.text.fontWeightBold},e=>{let{truncate:t}=e;return t&&(0,i.AH)(["display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;"])},a.ZM),c=(0,i.Ay)(r.Ay).attrs({color:"main"}).withConfig({componentId:"sc-95e07474-3"})(["svg{display:inline-block;vertical-align:middle;padding-right:8px;padding-bottom:4px;}@media screen and (max-height:","px){font-size:",";}"],a.ZM,e=>{let{theme:t}=e;return t.text.body2.fontSize}),m=(0,i.Ay)(n.A).attrs({variant:"text"}).withConfig({componentId:"sc-95e07474-4"})(["padding:0;height:max-content;span{font-size:",";font-weight:normal;color:",";}"],e=>{let{theme:t}=e;return t.text.body2.fontSize},e=>{let{theme:t}=e;return t.colors.primary.main}),u=(0,i.Ay)(r.Ay).attrs({variant:"body2"}).withConfig({componentId:"sc-95e07474-5"})(["margin:4px 0;text-align:left;line-height:normal;font-size:",";"],e=>{let{theme:t}=e;return t.text.body2.fontSize})},36136:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var i=o(94458),n=o(68658),r=o(64992),a=o(74762);let s=(0,n.memo)(e=>{let{$language:t,...o}=e;return(0,i.jsx)(r.gE,{...o})},(e,t)=>e.$language===t.$language&&e.date.getTime()===t.date.getTime()&&!!(0,a.h)(e,t)&&e.formatter===t.formatter),d=e=>{let t=(0,r.f4)();return(0,i.jsx)(s,{...e,$language:t})}},37943:(e,t,o)=>{"use strict";var i=Object.create?function(e,t,o,i){void 0===i&&(i=o);var n=Object.getOwnPropertyDescriptor(t,o);
1(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,i,n)}:function(e,t,o,i){void 0===i&&(i=o),e[i]=t[o]};Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||i(t,e,o)}(o(91483),t)},39807:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCustomizationColors=t.isValidColor=void 0;let i=o(2923),n=o(85353);Object.defineProperty(t,"isValidColor",{enumerable:!0,get:function(){return n.isValidColor}});let r="#FFFFFF";t.getCustomizationColors=e=>{let{color:t}=e;return{backgroundColor:(e=>{let{color:t}=e,o=t,{saturation:n}=(0,i.parseToHsl)(t);return n>.64&&(o=(0,i.setSaturation)(.64,o)),o=(0,i.setLightness)(.91,o)})({color:t}),button:(e=>({...e,hoverColor:(0,i.darken)(.1,e.backgroundColor)}))((e=>{let{color:t}=e;return(0,n.getContrast)(t,r)>=3?{backgroundColor:t,textColor:r,borderColor:t}:{backgroundColor:t,textColor:(0,i.darken)(.7,t),borderColor:(0,i.darken)(.1,t)}})({color:t})),chatButton:(e=>({...e,borderHoverColor:(0,i.darken)(.1,e.borderColor),textHoverColor:(0,i.darken)(.1,e.textColor)}))((e=>{let{color:t}=e,o=(0,n.getContrast)(t,r);return o>=4.5?{backgroundColor:r,textColor:t,borderColor:t}:o>=3?{backgroundColor:r,textColor:(0,i.darken)(.3,t),borderColor:(0,i.darken)(.1,t)}:{backgroundColor:r,textColor:(0,i.darken)(.7,t),borderColor:(0,i.darken)(.1,t)}})({color:t}))}}},43583:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var i=o(94458),n=o(68658),r=o(59272),a=o(64992),s=o(17861),d=o(74762);let l=(0,n.memo)(e=>{let{$language:t,$timeFormat:o,...n}=e;return(0,i.jsx)(a.n_,{...n})},(e,t)=>e.$language===t.$language&&e.$timeFormat===t.$timeFormat&&e.date.getTime()===t.date.getTime()&&!!(0,d.h)(e,t)&&e.formatter===t.formatter),c=e=>{let t=(0,a.f4)(),o=(0,r.d4)(s.Ax.getUserTimeFormat);return(0,i.jsx)(l,{...e,$language:t,$timeFormat:o})}},44005:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>d,wV:()=>s});var i=o(94458),n=o(68658),r=o(99405);let a=(0,n.createContext)(void 0),s=()=>{let e=(0,n.useContext)(a);if(void 0===e)throw Error("useSession must be used within a OnAirSessionProvider");return e},d=e=>{let{children:t,isEmbedded:o=!1,jwt:s={},sessionRegistrationId:d="",sessionCountryCode:l}
1=e,[c,m]=(0,n.useState)(""),[u,h]=(0,n.useState)(d),{requestOptions:p,hasCookies:g}=(e=>{let{isEmbedded:t,jwt:o,sessionRegistrationId:i}=e,{publicOrigin:a}=(0,r.L)(),[s,d]=(0,n.useState)(!o),l=(0,n.useMemo)(()=>{var e;return{origin:a,withCredentials:!0,skipCsrfInBody:!0,headers:{Authorization:"Bearer ".concat(null!=(e=o.jwtOnAir)?e:""),"x-registration-id":i,"x-csrf-protection":"true"}}},[o.jwtOnAir,a,i]),c=(0,n.useMemo)(()=>({origin:a,skipCsrfInBody:!0,withCredentials:!0,headers:{"x-csrf-protection":"true"}}),[a]);return(0,n.useEffect)(()=>{d(!o)},[o]),{requestOptions:t&&!s?l:c,hasCookies:s}})({isEmbedded:o,jwt:s,sessionRegistrationId:u}),x=(e=>{let{hasCookies:t,isEmbedded:o,jwt:i,sessionRegistrationId:n}=e;return o&&!t?"?jwt=".concat(i.jwtOnAir,"&registrationId=").concat(n):""})({hasCookies:g,isEmbedded:o,jwt:s,sessionRegistrationId:u});return(0,i.jsx)(a.Provider,{value:{hasCookies:g,query:x,requestOptions:p,sessionCountryCode:l,sessionRegistrationId:u,setSessionRegistrationId:h,setUserId:m,userId:c},children:t})}},45453:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var i=o(94458),n=o(68658);let r=(0,o(89495).Ay)("span").withConfig({componentId:"sc-55d77382-0"})(["width:","px;height:","px;position:relative;left:",";right:",";margin-right:",";margin-left:",";display:flex;align-items:center;justify-content:center;> img{width:auto;height:auto;max-width:100%;max-height:100%;}svg.lucide{fill:none;}"],e=>e.size,e=>e.size,e=>"left"===e.side&&"-3px",e=>"right"===e.side&&"-3px",e=>"left"===e.side&&"3px",e=>"right"===e.side&&"3px"),a=e=>{let{children:t,side:o,size:a,...s}=e;return(0,i.jsx)(r,{side:o,size:a,children:n.cloneElement(t,{size:a,...s})})};a.defaultProps={side:"left",size:18};let s=a},58828:(e,t,o)=>{"use strict";o.d(t,{oc:()=>m,ns:()=>u,yh:()=>p,CR:()=>h,m3:()=>b,Qc:()=>x,mb:()=>f,qt:()=>g});var i=o(32571),n=o(72719),r=o(16750),a=o(88271),s=o(44005),d=o(66147);let l=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{origin:o,...i}=t,{otp:n,registrationId:r,webinarId:a}=e;return(0,d.A)({...i,maxAttempts:1,method:"POST",body:{otp:n},uri:"".concat(o,"/webinars/").concat(a,"/registrations/").concat(r,"/verify-otp")})},c=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{origin:o,...i}=t,{registrationId:n,webinarId:r}=e;return(0,d.A)({...i,maxAttempts:1,method:"POST",uri:"".concat(o,"/webinars/").concat(r,"/registrations/").concat(n,"/request-otp")})},m=e=>{var t;return(null==e||null==(t=e.body)?void 0:t.code)==="invalid_email"},u=e=>{var t;return(null==e||null==(t=e.body)?void 0:t.code)==="registration_limit_reached"},h=()=>{let{requestOptions:e}=(0,s.wV)(),{webinar:{id:t}}=(0,r.TW)(),o=(0,i.useMutation)({mutationFn:o=>(0,a.DY)({webinarId:t,user:o},e),onError:e=>{m(e)||u(e)||n.Ay.captureException({error:(0,n.d0)(e),message:"onair_registration_error",tags:{onair:!0}})}});return{mutate:o.mutate,mutateAsync:o.mutateAsync,error:o.error,isLoading:o.isLoading,data:o.data,reset:o.reset}},p=()=>{let{requestOptions:e}=(0,s.wV)(),{webinar:{id:t}}=(0,r.TW)(),o=(0,i.useMutation)({mutationFn:o=>(0,a.Lx)({webinarId:t,...o},e),onError:e=>{n.Ay.error("onair_login_error",{error:e,webinarId:t})}});return{mutate:o.mutate,mutateAsync:o.mutateAsync,error:o.error,isLoading:o.isLoading,data:o.data}},g=()=>{let{requestOptions:e}=(0,s.wV)(),{webinar:{id:t}}=(0,r.TW)(),o=(0,i.useMutation)({mutationFn:async o=>{let{email:i}=o,n=await (0,a.FH)({webinarId:t,email:i},e);if(n.isRegistered){let o=await (0,a.Lx)({webinarId:t,email:i},e);return{...n,id:o.id}}return{...n,isRegistered:!1}},onError:e=>{n.Ay.error("onair_verify_error",{error:e,webinarId:t})}});return{mutate:o.mutate,mutateAsync:o.mutateAsync,error:o.error,isLoading:o.isLoading,data:o.data}},x=()=>{let{requestOptions:e}=(0,s.wV)(),{webinar:{id:t}}=(0,r.TW)(),o=(0,i.useMutation)({mutationFn:o=>(0,a.TK)({webinarId:t,user:o},e)});return{mutateAsync:o.mutateAsync,error:o.error,isLoading:o.isLoading,data:o.data}},b=()=>{let{requestOptions:e}=(0,s.wV)(),{webinar:{id:t}}=(0,r.TW)(),o=(0,i.useMutation)({mutationFn:o=>{let{registrationId:i}=o;return c({webinarId:t,registrationId:i},e)}});
1return{mutateAsync:o.mutateAsync,error:o.error,isLoading:o.isLoading,data:o.data}},f=()=>{let{requestOptions:e}=(0,s.wV)(),{webinar:{id:t}}=(0,r.TW)(),o=(0,i.useMutation)({mutationFn:o=>{let{registrationId:i,otp:n}=o;return l({otp:n,registrationId:i,webinarId:t},e)}});return{mutate:o.mutate,mutateAsync:o.mutateAsync,error:o.error,isLoading:o.isLoading,data:o.data,reset:o.reset}}},61712:(e,t,o)=>{"use strict";o.d(t,{A:()=>D});var i=o(94458);o(68658);var n=o(21805),r=o(16750),a=o(89495),s=o(22343),d=o(92576),l=o.n(d);let c=a.Ay.div.withConfig({componentId:"sc-87d20f93-0"})(["position:absolute;z-index:var(--z-index-status);display:flex;flex-direction:column;gap:var(--gutter);"]),m=(0,a.Ay)(c).withConfig({componentId:"sc-87d20f93-1"})(["top:var(--gutter);left:var(--gutter);max-width:calc(100% - var(--gutter) * 2);padding:12px;color:",";background-color:",";border-radius:",";opacity:0.85;text-align:left;"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.black},e=>{let{theme:t}=e;return t.shape.borderRadius}),u=(0,a.Ay)(c).withConfig({componentId:"sc-87d20f93-2"})(["top:50%;left:50%;transform:translate(-50%,-50%);"]),h=(0,a.Ay)(s.Ay).attrs({color:"white"}).withConfig({componentId:"sc-87d20f93-3"})([""]),p=(0,a.Ay)(h).attrs({variant:"h2"}).withConfig({componentId:"sc-87d20f93-4"})(["font-size:2.4rem;font-weight:",";line-height:3rem;"],e=>{let{theme:t}=e;return t.text.fontWeightBold}),g=(0,a.Ay)(h).attrs({variant:"body2"}).withConfig({componentId:"sc-87d20f93-5"})([""]),x=(0,a.Ay)(h).attrs({variant:"body"}).withConfig({componentId:"sc-87d20f93-6"})([""]),b=(0,a.Ay)("div").withConfig({componentId:"sc-87d20f93-7"})(["position:absolute;width:100%;height:100%;display:block;text-align:center;background-color:",";background-image:url(",");"," ",""],e=>{let{theme:t}=e;return t.colors.black},l(),e=>{let{backgroundImageUrl:t}=e;return t&&(0,a.AH)(["background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url(",");"],t)},e=>{let{withOverlay:t}=e;return t&&(0,a.AH)(["&::before{content:'';pointer-events:none;position:absolute;z-index:var(--z-index-background);top:0;left:0;width:100%;height:100%;background:linear-gradient( 0deg,rgba(0,0,0,0.7),rgba(0,0,0,0.7) );}"])}),f=a.Ay.div.withConfig({componentId:"sc-87d20f93-8"})(["height:55px;position:relative;"]);var A=o(77704),j=o(64992),y=o(36136),w=o(43583);let v=a.Ay.div.withConfig({componentId:"sc-9002f47c-0"})(["display:flex;gap:8px;align-items:start;"]),C=(0,a.Ay)(g).withConfig({componentId:"sc-9002f47c-1"})(["font-weight:",";display:flex;flex-wrap:wrap;gap:0.25em;"],e=>{let{theme:t}=e;return t.text.fontWeightSemiBold}),I=(0,a.Ay)(x).withConfig({componentId:"sc-9002f47c-2"})(["font-weight:",";"],e=>{let{theme:t}=e;return t.text.fontWeightSemiBold}),E=a.Ay.div.withConfig({componentId:"sc-9002f47c-3"})(["padding-top:2px;flex:0 0 20px;"]),T={vodEnabled:{Title:()=>(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.status.complete.title"}),Body:()=>(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.status.complete.body"})},vodDisabled:{Title:()=>(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.status.complete.vodDisabled.title"}),Body:()=>(0,i.jsx)(i.Fragment,{})},vodRemoved:{Title:()=>(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.status.complete.vodRemoved.title"}),Body:()=>(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.status.complete.vodRemoved.body"})}};var S=o(81198);let R=()=>(0,i.jsxs)(u,{children:[(0,i.jsx)(p,{children:(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.viewershipLimit.title"})}),(0,i.jsx)(g,{children:(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.viewershipLimit.body"})})]});var k=o(22987);let L={[n.in.CREATED]:e=>{let{isEmbedded:t,isPastScheduledTime:o,isStartingSoon:n,webinar:{isRegistrationEnabled:r,isUserRegistered:a,scheduledAt:s}}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(m,{children:[t&&!n&&r&&a&&(0,i.jsx)(I,{children:(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.registration.confirmation.title"})}),(0,i.jsxs)(v,{children:[(0,i.jsx)(E,{children:(0,i.jsx)(A.K4d,{fill:"currentColor",size:20})}),(0,i.jsx)(C,{children:s?(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.status.createdDateTime.label.text",components:{datetime:(0,i.jsx)("span",{children:(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.datetime",components:{date:(0,i.jsx)(y.A,{date:new Date(s),day:"numeric",month:"short"}),time:(0,i.jsx)(w.A,{date:new Date(s),hour:"2-digit",minute:"2-digit"})}})})}}):(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.status.created.label"})})]})]}),o&&(0,i.jsx)(u,{children:(0,i.jsx)(p,{children:(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.status.created.atScheduled.title"})})})]})},[n.in.COMPLETE]:e=>{let{Title:t,Body:o}=(e=>{let{webinar:{isVodEnabled:t,isVodMediaDeleted:o},watchedLiveInSession:i}=e;return o?T.vodRemoved:t?T.vodEnabled:i?T.vodDisabled:T.vodRemoved})(e);return(0,i.jsxs)(u,{children:[(0,i.jsx)(p,{children:(0,i.jsx)(t,{})}),(0,i.jsx)(g,{children:(0,i.jsx)(o,{})})]})},[n.in.DISABLED]:()=>(0,i.jsxs)(u,{children:[(0,i.jsx)(p,{children:(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.disabled.generic.title"})}),(0,i.jsx)(g,{children:(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.disabled.generic.body",components:{link:(0,i.jsx)(S.A,{color:"white",href:"https://support.streamyard.com/hc/en-us/articles/18797080070676-Community-Guidelines",newTab:!0})}})})]}),[n.in.LIVE]:()=>(0,i.jsxs)(u,{children:[(0,i.jsx)(p,{children:(0,i.jsx)(j.wD,{tid:"broadcasts.onAir.viewerPage.status.live.title"})}),(0,i.jsx)(f,{children:(0,i.jsx)(k.A,{})})]})},D=()=>{let{isEmbedded:e,isStartingSoon:t,isPastScheduledTime:o,watchedLiveInSession:a,webinar:s}=(0,r.TW)(),d=(e=>e.isViewerLimitExceeded?R:L[e.status])(s),l=s.status===n.in.CREATED&&!o;return(0,i.jsx)(b,{backgroundImageUrl:s.coverImageUrl||void 0,withOverlay:!!(s.coverImageUrl&&!l),children:(0,i.jsx)(d,{isEmbedded:e,isPastScheduledTime:o,isStartingSoon:t,watchedLiveInSession:a,webinar:s})})}},62833:(e,t,o)=>{"use strict";o.d(t,{WE:()=>s,sW:()=>l,kN:()=>r,Nz:()=>u,tH:()=>d,cX:()=>m,qK:()=>c});var i=o(89495),n=o(21805);let r=e=>{let t=Date.now(),o=!1;
1(null==e?void 0:e.scheduledAt)&&e.status===n.in.CREATED&&(o=t+n.oS>=new Date(e.scheduledAt).getTime());let i=!1;(null==e?void 0:e.scheduledAt)&&(i=t>=new Date(e.scheduledAt).getTime());let r=!1;return(null==e?void 0:e.completedAt)&&(r=t-n.oS<=new Date(e.completedAt).getTime()),{isStartingSoon:o,hasFinishedRecently:r,isPastScheduledTime:i}},a=[n.QB.WATCH,n.QB.EMBED_WATCH],s=e=>{let{isStartingSoon:t,isEmbedded:o,webinar:i}=e;if(o)return(null==i?void 0:i.isUserRegistered)?n.QB.EMBED_WATCH:n.QB.EMBED_PRESCREEN;let r=(null==i?void 0:i.status)==="created"&&!t;return(null==i?void 0:i.isUserRegistered)&&!r?n.QB.WATCH:n.QB.PRESCREEN},d=e=>(null==e?void 0:e.status)===n.in.LIVE,l=e=>{let{hasFinishedRecently:t,isStartingSoon:o,page:i,webinar:n}=e,r=a.includes(i),s=o||d(n)||t;return r&&s&&!(null==n?void 0:n.isViewerLimitExceeded)},c="(max-width: 639px)",m=["".concat(c),"(max-height: 499px)"].join(" and "),u=(0,i.AH)(["@media ","{display:none;}"],m)},63113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkIsChatClosed=t.CHAT_BUFFER_TIME=void 0,t.CHAT_BUFFER_TIME=6e5,t.checkIsChatClosed=e=>{let{status:o,completedAt:i}=e;return"complete"===o&&i&&new Date(i).getTime()+t.CHAT_BUFFER_TIME<Date.now()||!1}},65049:(e,t,o)=>{"use strict";var i=Object.create?function(e,t,o,i){void 0===i&&(i=o);var n=Object.getOwnPropertyDescriptor(t,o);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,i,n)}:function(e,t,o,i){void 0===i&&(i=o),e[i]=t[o]},n=function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||i(t,e,o)};Object.defineProperty(t,"__esModule",{value:!0}),n(o(90941),t),n(o(63113),t),n(o(39807),t),n(o(86656),t),n(o(98773),t),n(o(37943),t)},65519:(e,t,o)=>{"use strict";o.d(t,{A:()=>b});var i=o(68658),n=o(72719),r=o(7963),a=o(21805),s=o(16975),d=o(52603);let l=function(){let{autoplay:e,config:t={},customElements:o,duration:n,embed:r,features:l,id:c,live:m,media:u,poster:h}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=(0,d.A)(),g=(0,i.useMemo)(()=>window.innerWidth<768,[]);return(0,i.useMemo)(()=>{let{location:i}=s.B_?window:{location:{}},d=Object.assign(a.id,{...t,embed:!!r,customElements:o,media:u,poster:h,...void 0!==e&&{autoplay:e},...void 0!==m&&{live:m},lang:p,allowMutedAutoplay:!0});if(d.features=Object.assign(d.features,{...l}),"number"==typeof n&&(d.duration=n/1e3),d.live&&(d.live.qualityCap=g?360:720),c){let e="".concat(i.origin,"/watch/").concat(c);d.customData3=r?"".concat(e,"?embed=true"):e,d.reportUrl=(e=>{let{webinarId:t,watchUrl:o}=e;return(e=>{let{contentId:t,contentUrl:o,reporteeId:i}=e,n=new URLSearchParams({"content.content_id":t,"content.url":o,"content.type.id":"VIDEO_STATIC","reporter.id":"-1","reportee.id":i||"-1"});return"".concat("https://streamyard-prod.nima.tremau.net/user-reports/","?").concat(n)})({contentId:"".concat("onair-").concat(t),contentUrl:o})})({webinarId:c,watchUrl:e})}return d},[e,t,o,n,r,l,c,m,u,h,p,g])};var c=o(16750),m=o(66147);let u=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{origin:o,...i}=t,{webinarId:n,status:r}=e;return(0,m.A)({...i,maxAttempts:3,body:{status:r},method:"POST",uri:"".concat(o,"/webinars/").concat(n,"/registrations/status"),includeAttempt:!0})};var h=o(44005);let p=["live","on-demand"],g={},x=(e,t)=>{let o=(0,i.useRef)(t);o.current=t;let[n,r]=(0,i.useState)(()=>{var o;return!e||(null==t?void 0:t.shouldPreventLoad)?"idle":null!=(o=g[e])?o:"loading"});return(0,i.useEffect)(()=>{if(!e||(null==t?void 0:t.shouldPreventLoad))return;let i=g[e];if("ready"===i||"error"===i)return void r(i);let n=function(e){let t=document.querySelector('script[src="'.concat(e,'"]')),o=null==t?void 0:t.getAttribute("data-status");return{node:t,status:o}}(e),a=n.node;if(a){var s,d;r(null!=(d=null!=(s=n.status)?s:i)?d:"loading")}else{(a=document.createElement("script")).src=e,a.async=!0,a.setAttribute("data-status","loading"),document.body.appendChild(a);let t=e=>{let t="load"===e.type?"ready":"error";null==a||a.setAttribute("data-status",t)};a.addEventListener("load",t),a.addEventListener("error",t)}let l=t=>{let o="load"===t.type?"ready":"error";r(o),g[e]=o},c=e=>{var t,i;null==(i=o.current)||null==(t=i.onError)||t.call(i,e),l(e)};return a.addEventListener("load",l),a.addEventListener("error",c),()=>{a&&(a.removeEventListener("load",l),a.removeEventListener("error",c)),a&&(null==t?void 0:t.removeOnUnmount)&&a.remove()}},[e,null==t?void 0:t.shouldPreventLoad,null==t?void 0:t.removeOnUnmount]),n},b=(e,t,o)=>{let{autoplay:d,config:m,customElements:g,duration:b,embed:f,features:A,id:j,live:y,media:w,poster:v}=t,{onCustomControlsVisible:C,setPlayerStatus:I,setIsPlayerFullScreen:E,setPlayerActions:T}=o,S=(0,i.useRef)(),R=(0,i.useRef)(),{updateWatchStatus:k}=(()=>{let{requestOptions:e}=(0,h.wV)(),{webinar:t}=(0,c.TW)();return{updateWatchStatus:(0,i.useCallback)(async o=>{(null==t?void 0:t.id)&&(null==t?void 0:t.isRegistrationEnabled)&&p.includes(o)&&await u({webinarId:null==t?void 0:t.id,status:o},e)},[e,null==t?void 0:t.id,null==t?void 0:t.isRegistrationEnabled])}})(),L=l({autoplay:d,config:m,customElements:g,duration:b,embed:f,features:A,id:j,live:y,media:w,poster:v}),D="7169B8C7-00AF-4B42-A1BE-76E55025037E",{Player:M,status:N}=(()=>{var e;return{status:x("".concat(s.jwu,"/player/live.v").concat("1.2.2",".min.js"),{onError:()=>{n.Ay.error("Player Error: Player script failed to load")}}),Player:null==(e=window)?void 0:e.SVP}})(),{Bitmovin:O,status:_}=(()=>{var e,t;return{status:x("https://cdn.bitmovin.com/analytics/web/2/bitmovinanalytics.min.js",{onError:()=>{n.Ay.error("Player Error: Bitmovin script failed to load")}}),Bitmovin:null==(t=window)||null==(e=t.bitmovin)?void 0:e.analytics}})();return(0,i.useEffect)(()=>{let t="autoplayOff",o=(e,t)=>{if(O)return e?new O.HlsAdapter({key:D,videoId:L.id,customData1:"live",customData2:L.embed?"embed":"watch",customData3:L.customData3},t):new O.adapters.HTMLVideoElementAdapter({key:D,videoId:L.id,customData1:L.live?"live":"vod",customData2:L.embed?"embed":"watch",customData3:L.customData3},t)},i=async()=>
1{try{S.current=new M(e,L,{"player.ready":()=>{r.Ay.track(r.Ay.events.PLAYER_LOADED)},"bitmovin.hls":e=>{if(!R.current)try{R.current=o(!0,e.player)}catch(e){n.Ay.error("Player Error: Bitmovin initialization",e)}},"bitmovin.html5":e=>{if(!R.current)try{R.current=o(!1,e.player)}catch(e){n.Ay.error("Player Error: Bitmovin initialization",e)}},"player.error":e=>{L.media&&(["","Unknown media error",null,void 0].includes(e.message)||(n.Ay.error("Player Error: On-Air ".concat(L.live?"Live":"VOD"," ").concat(L.embed?"Embed":"Watch"),{media:L.media,message:e.message,webinarId:L.id}),r.Ay.track(r.Ay.events.PLAYER_ERROR,{error:e.message}),"Requested source is not accessible"===e.message&&n.Ay.error("Player Error: On-Air initial playlist connection failed",{media:L.media,webinarId:L.id}))),I(a.w$.ERROR)},"playback.autoplay":e=>{t=e.autoplay?e.muted?"autoplayMuted":"autoplayUnmuted":"autoplayFailed"},"playback.started":()=>{I(a.w$.STARTED),L.live?r.Ay.track(r.Ay.events.ONAIR_STARTED_PLAYING,{embedded:window.location!==window.parent.location}):r.Ay.track(r.Ay.events.ONAIR_STARTED_PLAYING_VOD,{embedded:window.location!==window.parent.location}),R.current&&setTimeout(()=>{R.current.analytics.setCustomData({customData4:t})},1e3)},"track.watched":()=>{let e=L.live?"live":"on-demand";k(e)},"context.copyVideoUrl":()=>{r.Ay.track(r.Ay.events.PLAYER_COPY_VIDEO_URL)},"context.copyEmbed":()=>{r.Ay.track(r.Ay.events.PLAYER_COPY_EMBED_CODE)},"context.copyDebugInfo":()=>{r.Ay.track(r.Ay.events.PLAYER_COPY_DEBUG_INFO)},"context.report":()=>{r.Ay.track(r.Ay.events.PLAYER_REPORT)},"pip.toggle":()=>{r.Ay.track(r.Ay.events.PLAYER_PIP)},"speed.set":e=>{r.Ay.track(r.Ay.events.PLAYER_PLAYBACK_SPEED,{speed:e})},"fullscreen.changed":e=>{!0===e.fullscreen&&r.Ay.track(r.Ay.events.PLAYER_FULLSCREEN),null==E||E(e.fullscreen)},"keyboard.pressed":e=>{r.Ay.track(r.Ay.events.PLAYER_KEYBOARD,{keyboard:e.action})},"playback.seekButton":()=>{r.Ay.track(r.Ay.events.PLAYER_SEEKBUTTONS)},"player.stream.ended":()=>{I(a.w$.ENDED)},"playback.ended":()=>{I(a.w$.ENDED)},"custom.el.created":e=>{"function"==typeof C&&C(e)}}),S.current.focus(),T({pause:()=>{var e;return null==(e=S.current)?void 0:e.pause()}}),I(a.w$.CREATED)}catch(e){n.Ay.error("Player Error: Player initialization",e)}};return e&&M&&"ready"===N&&"loading"!==_&&i(),()=>{S.current&&(T(null),S.current.destroy(),I(a.w$.UNDEFINED))}},[R,_,S,N,e,C,T,I,L,k,E,M,O]),S.current}},67350:(e,t,o)=>{"use strict";o.d(t,{A:()=>m,u:()=>c});var i=o(94458),n=o(68658),r=o(47477),a=o(9014),s=o.n(a);class d{static createKey(e,t){return"".concat(e,"_").concat(t)}static sortReactions(e){return e.filter(e=>e.count>0).sort((e,t)=>t.count-e.count)}async updateMessagesState(){if(s()(this.mutex.isLocked()),this.sortedKeys.length>100){let e=this.sortedKeys.length-100;this.sortedKeys.splice(0,e).forEach(e=>this.messagesMap.delete(e))}this.setMessages(this.sortedKeys.map(e=>this.messagesMap.get(e)))}insertKeySorted(e,t){s()(this.mutex.isLocked());let o=this.sortedKeys.findIndex(e=>t<e.split("_")[0]);-1===o?this.sortedKeys.push(e):this.sortedKeys.splice(o,0,e)}async addMessage(e,t,o){let i=d.createKey(t,o.id);this.messagesMap.has(i)||await this.mutex.runExclusive(async()=>{this.messagesMap.set(i,{pinned:!1,reactions:[],text:e,timestamp:t,user:o}),this.insertKeySorted(i,t),await this.updateMessagesState()})}async bulkAddMessages(e){await this.mutex.runExclusive(async()=>{e.forEach(e=>{let t=d.createKey(e.timestamp,e.user.id);this.messagesMap.has(t)||(this.messagesMap.set(t,e),this.sortedKeys.push(t))}),this.sortedKeys.sort(),await this.updateMessagesState()})}async deleteMessage(e,t){await this.mutex.runExclusive(async()=>{let o=d.createKey(e,t);this.messagesMap.delete(o),this.sortedKeys=this.sortedKeys.filter(e=>e!==o),await this.updateMessagesState()})}async pinMessage(e,t){await this.mutex.runExclusive(async()=>{let o=d.createKey(e,t),i=this.messagesMap.get(o);i&&(this.messagesMap.forEach((e,t)=>{e.pinned&&this.messagesMap.set(t,{...e,pinned:!1})}),this.messagesMap.set(o,{...i,pinned:!0}),await this.updateMessagesState())})}async unpinMessage(e,t){await this.mutex.runExclusive(async()=>{let o=d.createKey(e,t),i=this.messagesMap.get(o);i&&(this.messagesMap.set(o,{...i,pinned:!1}
1),await this.updateMessagesState())})}async addReaction(e,t,o,i){await this.mutex.runExclusive(async()=>{let{timestamp:n,userId:r}=e,a=d.createKey(n,r),s=this.messagesMap.get(a);if(!s)return;let l=s.reactions.find(e=>e.type===t);l?(l.count+=1,o===i&&(l.userReacted=!0)):s.reactions.push({type:t,count:1,userReacted:o===i}),s.reactions=d.sortReactions(s.reactions),await this.updateMessagesState()})}async removeReaction(e,t,o,i){await this.mutex.runExclusive(async()=>{let{timestamp:n,userId:r}=e,a=d.createKey(n,r),s=this.messagesMap.get(a);if(!s)return;let l=s.reactions.find(e=>e.type===t);l&&l.count>0&&(l.count-=1,o===i&&(l.userReacted=!1)),s.reactions=d.sortReactions(s.reactions),await this.updateMessagesState()})}constructor(e){this.messagesMap=new Map,this.sortedKeys=[],this.mutex=new r.eu,this.setMessages=e}}let l=(0,n.createContext)(null),c=()=>{let e=(0,n.useContext)(l);if(!e)throw Error("useMessageManager must be used within a MessageManagerProvider");return e},m=e=>{let{children:t}=e,[o,r]=(0,n.useState)([]),a=(0,n.useMemo)(()=>new d(r),[r]);return(0,i.jsx)(l.Provider,{value:{messageManager:a,messages:o},children:t})}},67922:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var i=o(94458),n=o(68658),r=o(89495),a=o(84593),s=o.n(a);let d=(0,r.DU)(["",""],e=>{let{backgroundImageUrl:t,showBackground:o=!1,theme:i}=e;return o&&(0,r.AH)(["body{position:relative;"," &::before{content:'';pointer-events:none;position:absolute;z-index:-1;top:0;left:0;width:100%;height:100%;background-image:",";background-position:50% 17%;background-size:100% auto;}}"],t?(0,r.AH)(["background:linear-gradient( 0deg,rgba(0,0,0,0.7),rgba(0,0,0,0.7) ),url(",") no-repeat center / cover;background-color:",";"],t,i.colors.black):(0,r.AH)(["position:relative;background-color:",";"],i.onAirTheme.backgroundColor),t?"":"url(".concat(s(),")"))}),l=e=>{let{backgroundImageUrl:t}=e,[o,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{r(!0)},[]),(0,i.jsx)(d,{showBackground:o,backgroundImageUrl:t})}},68864:(e,t,o)=>{var i={"./af.json":23415,"./am.json":31370,"./ar.json":515,"./az.json":4731,"./be.json":63217,"./bg.json":80591,"./bn.json":61336,"./br.json":94572,"./bs.json":61499,"./ca.json":80256,"./cs.json":20330,"./cy.json":52920,"./da.json":68031,"./de.json":86267,"./dv.json":50678,"./el.json":47061,"./en.json":51667,"./es.json":89312,"./et.json":73994,"./eu.json":33830,"./fa.json":63497,"./fi.json":193,"./fr.json":47384,"./gl.json":48215,"./ha.json":74824,"./he.json":20127,"./hi.json":15331,"./hr.json":28278,"./hu.json":71535,"./hy.json":41971,"./id.json":27537,"./is.json":72300,"./it.json":61473,"./ja.json":80197,"./ka.json":60696,"./kk.json":28106,"./km.json":700,"./ko.json":36694,"./ku.json":40884,"./ky.json":88032,"./lt.json":56852,"./lv.json":28238,"./mk.json":54176,"./ml.json":30141,"./mn.json":8008,"./mr.json":39159,"./ms.json":51736,"./nb.json":14624,"./nl.json":56174,"./nn.json":6196,"./no.json":58947,"./pl.json":89200,"./ps.json":83237,"./pt.json":25160,"./ro.json":67815,"./ru.json":13105,"./sd.json":82123,"./sk.json":29298,"./sl.json":42547,"./so.json":95230,"./sq.json":69888,"./sr.json":9889,"./sv.json":50109,"./sw.json":31654,"./ta.json":23087,"./tg.json":10669,"./th.json":78232,"./tr.json":65978,"./tt.json":83276,"./ug.json":74860,"./uk.json":72200,"./ur.json":14671,"./uz.json":16791,"./vi.json":73553,"./zh.json":84886};function n(e){return o(r(e))}function r(e){if(!o.o(i,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}n.keys=function(){return Object.keys(i)},n.resolve=r,e.exports=n,n.id=68864},70720:(e,t,o)=>{"use strict";o.d(t,{A:()=>oj});var i=o(94458),n=o(68658),r=o(16750),a=o(64992);let s={FIRST_NAME:"firstName",LAST_NAME:"lastName",EMAIL:"email",PHONE:"phone",COUNTRY:"country",TEXT:"text",CHECKBOX:"checkbox",SELECT:"select"},d=e=>{let{label:t,preventLinkClick:o}=e;return(0,i.jsx)("span",{onClick:e=>{o&&e.target instanceof HTMLAnchorElement&&e.preventDefault()},dangerouslySetInnerHTML:{__html:t}})},l={firstName:()=>(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.label.firstName"}),lastName:()=>(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.label.lastName"}),email:()=>(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.label.emailAddress"}),phone:()=>(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.label.phone"}),country:()=>(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.label.country"}),text:d,checkbox:d,select:d},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l[e.type]({...e,...t})},m={[s.FIRST_NAME]:!0,[s.LAST_NAME]:!0,[s.EMAIL]:!0};var u=o(21805);let h="LEGACY_REGISTRATION_ID",p={id:h,createdAt:"",version:1,fields:{data:[{id:"firstName",isRequired:!0,type:"firstName"},{id:"lastName",isRequired:!0,type:"lastName"},{id:"email",isRequired:!0,type:"email"}]}},g=(e,t)=>e.reduce((e,o)=>(e=>e.type in m&&!0===m[e.type])(o)?{...e,[o.type]:t[o.id]}:e,{});var x=o(90220),b=o(89495);let f=(0,b.Ay)("div").withConfig({componentId:"sc-87eb5c89-0"})(["",""],e=>{let{hidden:t}=e;return t&&(0,b.AH)(["display:none;"])});var A=o(72416),j=o(45453),y=o(77704),w=o(81198),v=o(20270),C=o(58828),I=o(29322),E=o(2736);let T=e=>(0,i.jsx)(E.A,{...e,onKeyPress:e=>{Number.isNaN(parseFloat(e.key))&&"Enter"!==e.key&&e.preventDefault()}});var S=o(92321),R=o(22343);let k=b.Ay.div.withConfig({componentId:"sc-4b380517-0"})(["padding-top:8px;border-bottom-right-radius:",";border-bottom-left-radius:",";overflow:hidden;"],e=>{let{theme:t}=e;return t.shape.largeBorderRadius},e=>{let{theme:t}=e;return t.shape.largeBorderRadius}),L=(0,b.Ay)(S.A).withConfig({componentId:"sc-4b380517-1"})(["background:",";color:",";font-size:14px;display:inline-flex;justify-content:space-between;align-items:center;width:100%;padding:16px 24px;"],e=>{let{theme:t}=e;return t.colors.grey[100]},e=>{let{theme:t}=e;return t.colors.text.light}),D=b.Ay.ol.withConfig({componentId:"sc-4b380517-2"})(["background:",";margin:0;padding:10px 24px 24px 44px;"],e=>{let{theme:t}=e;return t.colors.grey[100]}),M=(0,b.Ay)(R.Ay).attrs({variant:"body2",component:"li"}).withConfig({componentId:"sc-4b380517-3"})(["margin-bottom:8px;:last-child{margin-bottom:0px;}"]),N=e=>{let{onLogin:t}
1=e,[o,r]=(0,n.useState)(!1),s=o?y.rXn:y.yQN;return(0,i.jsxs)(k,{children:[(0,i.jsxs)(L,{onClick:()=>{r(!o)},type:"button",children:[(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.code.troubleshooting.title"}),(0,i.jsx)(s,{size:20})]}),!!o&&(0,i.jsxs)(D,{children:[(0,i.jsx)(M,{children:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.code.troubleshooting.list.spam"})}),(0,i.jsx)(M,{children:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.code.troubleshooting.list.contactList",values:{email:"[email protected]"},components:{link:(0,i.jsx)(w.A,{onClick:t})}})}),(0,i.jsx)(M,{children:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.code.troubleshooting.list.support",components:{link:(0,i.jsx)(w.A,{to:"/contact"})}})})]})]})};var O=o(31194);let _=e=>{let{email:t,isAlreadyRegistered:o,privacy:n,resetOtp:r}=e,s={components:{link:(0,i.jsx)(w.A,{onClick:r})},values:{email:t}};return(0,i.jsxs)(O.mO,{children:[(0,i.jsx)(O.hE,{variant:"h4",children:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.code.title"})}),(0,i.jsx)(O.Pd,{variant:"body2",children:o&&n!==u.qq.PRIVATE?(0,i.jsx)(a.wD,{...s,tid:"broadcasts.onAir.registration.code.subtitle.alreadyRegistered"}):(0,i.jsx)(a.wD,{...s,tid:"broadcasts.onAir.registration.code.subtitle"})})]})},P=b.Ay.div.withConfig({componentId:"sc-95e8e451-0"})(["display:flex;align-items:center;flex-direction:column;"]),B=b.Ay.form.withConfig({componentId:"sc-95e8e451-1"})(["display:flex;flex-direction:column;gap:24px;width:100%;padding-top:24px;"]),z=e=>{let{email:t,isAlreadyRegistered:o,onBack:r,onLogin:s,onSuccess:d,privacy:l,registrationId:c}=e,m=(0,C.mb)(),u=(0,C.m3)(),h=(0,a.Bd)("common.go.back"),[p,g]=(0,n.useState)(""),b=()=>{m.reset(),u.mutateAsync({registrationId:c})};return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(x.$v,{children:[(0,i.jsxs)(x.lr,{children:[(0,i.jsxs)(A.A,{"aria-label":h,onClick:r,size:"medium",type:"button",variant:"text",children:[(0,i.jsx)(j.A,{side:"left",size:24,children:(0,i.jsx)(y.JGc,{})}),h]}),(0,i.jsx)(v.A,{showDescription:!1,showTitle:!1,showTime:!1}),(0,i.jsxs)(P,{children:[(0,i.jsx)(_,{email:t,isAlreadyRegistered:o,privacy:l,resetOtp:b}),(0,i.jsxs)(B,{onSubmit:e=>{e.preventDefault(),m.mutate({registrationId:c,otp:p},{onSuccess:d})},children:[(0,i.jsx)(T,{error:!!m.error&&(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.code.input.error.serverInvalid",components:{link:(0,i.jsx)(w.A,{onClick:b,type:"button"})}}),fullWidth:!0,label:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.code.input.label"}),minLength:6,maxLength:6,onChange:e=>{g(e.target.value)},size:"medium",type:"text",value:p}),(0,i.jsx)(I.A,{type:"submit",disabled:m.isLoading,fullWidth:!0,children:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.button.join"})})]})]})]}),(0,i.jsx)(N,{onLogin:s})]})})},H=()=>(0,i.jsxs)(O.mO,{children:[(0,i.jsx)(O.hE,{variant:"h4",children:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.link.alreadyRegistered"})}),(0,i.jsx)(O.Pd,{variant:"body2",children:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.alreadyRegistered.description"})})]});var U=o(7912),V=o(1651),F=o(61141);let W=e=>{let t=null==e?void 0:e.split(" ");return Array.isArray(t)&&""!==e?t:[]},K=e=>({name:"maxLength",event:"change",Message:t=>{let{value:o}=t;return(0,i.jsx)(a.wD,{tid:"common.error.maxLength",values:{maxLength:e,amountOver:e-o.length}})},validate:t=>!t||t.length<=e}),G={[s.EMAIL]:[{name:"emailAtSymbol",Message:()=>(0,i.jsx)(a.wD,{tid:"common.email.error.noAtSymbol"}),validate:e=>!e||e.trim().indexOf("@")>-1},{name:"email",Message:()=>(0,i.jsx)(a.wD,{tid:"common.email.error.invalid"}),validate:e=>!e||/^[^\s@]+@[^\s@]+\.\S{2,}$/.test(e.trim())},K(256)],[s.TEXT]:[K(256)],[s.FIRST_NAME]:[K(256)],[s.LAST_NAME]:[K(256)],[s.PHONE]:[{name:"maxLength",Message:()=>(0,i.jsx)(a.wD,{tid:"common.error.phoneNumberMinMaxLength",values:{maxLength:16,minLength:5}}),validate:e=>{let[,t]=W(e);return!t||((e,t)=>({name:"minMaxLengthRule",Message:()=>(0,i.jsx)(a.wD,{tid:"common.error.minMaxLength",values:{maxLength:t,minLength:e}}),validate:o=>!o||o.length>=e&&o.length<=t}
1))(5,16).validate(t)}},{name:"maxLength",Message:()=>(0,i.jsx)(a.wD,{tid:"common.error.phoneNumberFormat"}),validate:e=>{let[,t]=W(e);return!t||null!==t.match(/^[0-9]+$/)}}]};var Y=o(9761),q=o(72631),Z=o(65175);let J=b.Ay.div.withConfig({componentId:"sc-7335ad67-0"})(["text-align:left;width:100%;word-break:break-word;"]),Q=(0,b.Ay)(Z.A).withConfig({componentId:"sc-7335ad67-1"})(["@media screen and (max-height:","px){max-height:60px;overflow-y:scroll;align-items:flex-start;}"],u.ZM),$=b.Ay.span.withConfig({componentId:"sc-7335ad67-2"})(["color:",";"],e=>{let{theme:t}=e;return t.colors.red.dark}),X=(0,b.Ay)("span").withConfig({componentId:"sc-7335ad67-3"})(["font-weight:",";cursor:",";"],e=>{let{readOnly:t}=e;return t?"600":"400"},e=>{let{readOnly:t}=e;return t?"default":"pointer"}),ee=(0,b.Ay)("div").withConfig({componentId:"sc-7335ad67-4"})(["",""],e=>{let{disableInteraction:t}=e;return t&&(0,b.AH)(["pointer-events:none;"])}),et=()=>(0,i.jsx)($,{children:" *"}),eo=e=>{let{className:t,children:o,disableInteraction:n,disabled:r,error:a,field:{id:s,isRequired:d},label:l,readOnly:c}=e;return(0,i.jsxs)(J,{className:t,children:[(0,i.jsxs)("div",{children:[l&&(0,i.jsxs)(Q,{disabled:r,gutterBottom:!0,htmlFor:n?void 0:s,size:"medium",children:[(0,i.jsx)(X,{readOnly:c,children:l}),!!d&&(0,i.jsx)(et,{})]}),(0,i.jsx)(ee,{disableInteraction:n,children:o})]}),a&&(0,i.jsx)(q.A,{children:a})]})},ei=function(e){let{showLabel:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o=>(0,i.jsx)(eo,{...o,label:t&&o.label,children:(0,i.jsx)(e,{...o})})},en=e=>{let{value:t}=e;return(0,i.jsx)(R.Ay,{variant:"body2",children:t||"-"})},er=(0,b.Ay)(Y.A).withConfig({componentId:"sc-5b3c1a79-0"})(["color:",";"],e=>{let{theme:t}=e;return t.tokens.COLOR_TOKENS_TEXT_INVERTIBLE_PRIMARY_PRIMARY}),ea=ei(e=>{let{field:{id:t},error:o,onBlur:n,onChange:r,value:a="",readOnly:s,inputProps:d}=e;return s?(0,i.jsx)(en,{value:a}):(0,i.jsx)(E.A,{id:t,error:o,hideErrorText:!0,value:a,onChange:e=>r(e.target.value),onBlur:n,size:"medium",fullWidth:!0,...d})}),es=ei(e=>{let{value:t}=e;return(0,i.jsx)(en,{value:t&&(0,i.jsx)(er,{href:"mailto:".concat(t),target:"_blank",children:t})})});var ed=o(91290);let el=(0,b.Ay)(R.Ay).withConfig({componentId:"sc-254d5383-0"})(["display:inline-block;padding:0 5px;overflow:hidden;font-size:1.1rem;font-weight:",";border-radius:",";line-height:1.7;color:",";background-color:",";white-space:normal;word-wrap:break-word;overflow-wrap:break-word;max-width:100%;"],e=>e.theme.text.fontWeightSemiBold,e=>e.theme.shape.borderRadius,e=>e.theme.tokens.COLOR_TOKENS_TEXT_INVERTIBLE_NEUTRAL_ON_SURFACE_ON_PRIMARY,e=>e.backgroundColor||e.theme.tokens.COLOR_TOKENS_FILL_INVERTIBLE_STATUS_HIGHLIGHT_MODERATE);el.defaultProps={variant:"body2",component:"span"};var ec=o(16975);let em={[ec.t92.Beta]:(0,i.jsx)(a.wD,{tid:"common.beta"}),[ec.t92.New]:(0,i.jsx)(a.wD,{tid:"common.newFeature"})},eu={fill:"#000",size:20},eh=e=>{let{fill:t=eu.fill,size:o=eu.size,...n}=e,{tokens:r}=(0,b.DP)();return(0,i.jsxs)("svg",{focusable:"false","aria-hidden":"true","data-testid":"checkbox-checked",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 20 20",fill:"none",...n,children:[(0,i.jsx)("rect",{x:"0",y:"0",width:"20",height:"20",rx:"3.5",fill:t}),(0,i.jsx)("path",{d:"M16.667 5L7.5 14.167L3.333 10",stroke:r.COLOR_TOKENS_ICON_INVERTIBLE_NEUTRAL_ON_SURFACE_ON_PRIMARY,strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})]})};eh.defaultProps=eu;let ep=n.memo(eh),eg={fill:"#000",size:20},ex=e=>{let{fill:t=eg.fill,size:o=eg.size,...n}=e,{tokens:r}=(0,b.DP)();return(0,i.jsxs)("svg",{focusable:"false","aria-hidden":"true","data-testid":"checkbox-indeterminate",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 20 20",fill:"none",...n,children:[(0,i.jsx)("rect",{x:"0",y:"0",width:"20",height:"20",rx:"3.5",fill:t}),(0,i.jsx)("path",{d:"M5 10H15",stroke:r.COLOR_TOKENS_ICON_INVERTIBLE_NEUTRAL_ON_SURFACE_ON_PRIMARY,strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})]})};ex.defaultProps=eg;let eb=n.memo(ex),ef={fill:"#000",size:20,stroke:void 0},eA=e=>{let{fill:t=ef.fill,size:o=ef.size,stroke:n=ef.stroke,...r}=e;return(0,i.jsx)("svg",{focusable:"false","aria-hidden":"true","data-testid":"checkbox-unchecked",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 20 20",stroke:n||t,...r,fill:"none",children:(0,i.jsx)("path",{fill:"none",strokeWidth:"1.5",d:"M 16.00,0.50 C 17.93,0.50 19.50,2.07 19.50,4.00 19.50,4.00 19.50,16.00 19.50,16.00 19.50,17.93 17.93,19.50 16.00,19.50 16.00,19.50 4.00,19.50 4.00,19.50 2.07,19.50 0.50,17.93 0.50,16.00 0.50,16.00 0.50,4.00 0.50,4.00 0.50,2.07 2.07,0.50 4.00,0.50 4.00,0.50 16.00,0.50 16.00,0.50 Z"})})};eA.defaultProps=ef;let ej=n.memo(eA);var ey=o(61704);let ew=(0,b.Ay)("div").withConfig({componentId:"sc-220febb5-0"})(["display:inline-block;",";",";",";"],e=>e.fullWidth&&"width: 100%",e=>e.gutterBottom&&"margin-bottom: ".concat(2*e.theme.unit,"px"),e=>e.hideTextOverflow&&"max-width: 100%"),ev=b.Ay.div.withConfig({componentId:"sc-220febb5-1"})(["padding:4px;"]),eC=b.Ay.input.withConfig({componentId:"sc-220febb5-2"})(["position:absolute;width:calc(100% + 8px);height:calc(100% + 8px);left:-4px;top:-4px;margin:0;opacity:0;cursor:inherit;"]),eI=(0,b.AH)(["width:100%;height:100%;"]),eE=(0,b.Ay)(ej).withConfig({componentId:"sc-220febb5-3"})(["",""],eI),eT=(0,b.Ay)(ep).withConfig({componentId:"sc-220febb5-4"})(["",""],eI),eS=(0,b.Ay)(eb).withConfig({componentId:"sc-220febb5-5"})(["",""],eI),eR=(0,b.Ay)(ey.A).withConfig({componentId:"sc-220febb5-6"})([""]),ek=(0,b.Ay)("div").withConfig({componentId:"sc-220febb5-7"})(["margin:0;position:relative;display:flex;align-items:center;text-align:left;width:",";color:",";",""],e=>e.fullWidth&&"100%",e=>{let{disabled:t,theme:o}=e;return t?o.tokens.COLOR_TOKENS_STROKE_INVERTIBLE_NEUTRAL_DIVIDER_MODERATE:o.tokens.COLOR_TOKENS_TEXT_INVERTIBLE_NEUTRAL_NEUTRAL_VERY_STRONG},e=>{let{disabled:t,theme:o}=e;return!t&&(0,b.AH)(["&:hover{","{stroke:",";}}"],eE,o.tokens.COLOR_TOKENS_STROKE_INVERTIBLE_NEUTRAL_DIVIDER_VERY_STRONG)}),eL=(0,b.Ay)("div").withConfig({componentId:"sc-220febb5-8"})(["width:20px;height:20px;position:relative;border-radius:4px;cursor:",";&:focus-within{box-shadow:",";}",""],e=>!e.disabled&&"pointer",e=>{let{theme:t}=e;return"0 0 0 3px ".concat(t.tokens.COLOR_TOKENS_STROKE_INVERTIBLE_PRIMARY_FOCUS)},e=>{let{error:t,theme:o}=e;return t&&"box-shadow: 0 0 0 3px ".concat(o.tokens.COLOR_TOKENS_STROKE_INVERTIBLE_STATUS_CRITICAL)}),eD=(0,b.Ay)(Z.A).withConfig({componentId:"sc-220febb5-9"})(["user-select:none;label{padding-left:8px;}"]),eM=b.Ay.div.withConfig({componentId:"sc-220febb5-10"})(["margin-top:5px;
1display:flex;align-items:center;"]),eN=(0,b.Ay)(ed.A).attrs(e=>{let{theme:t}=e;return{fill:t.tokens.COLOR_TOKENS_TEXT_INVERTIBLE_STATUS_CRITICAL}}).withConfig({componentId:"sc-220febb5-11"})(["flex:0 0 auto;margin-right:8px;"]),eO=b.Ay.div.withConfig({componentId:"sc-220febb5-12"})(["margin-left:38px;display:flex;"]),e_=(0,b.Ay)(e=>{let{tag:t=ec.t92.New,releaseDate:o=new Date,...n}=e;return(0,i.jsx)(i.Fragment,{children:o.getTime()+3888e6>Date.now()&&(0,i.jsx)(el,{variant:"body2",component:"span",...n,children:em[t]})})}).withConfig({componentId:"sc-220febb5-13"})(["margin-left:8px;flex-shrink:0;"]),eP=e=>{let{borderColor:t,checked:o,color:n,disabled:r,indeterminate:a,isLoading:s}=e,d=(0,b.DP)(),l={fill:d.tokens.COLOR_TOKENS_STROKE_INVERTIBLE_NEUTRAL_DIVIDER_MODERATE,...s&&{percent:35,size:22,spin:!0}};switch((o||a||s)&&(l.fill=n||d.colors.primary.main),r&&(l.fill=d.tokens.COLOR_TOKENS_STROKE_INVERTIBLE_NEUTRAL_DIVIDER_ULTRA_SUBTLE),!0){case s:return(0,i.jsx)(eR,{...l});case a:return(0,i.jsx)(eS,{...l});case o:return(0,i.jsx)(eT,{...l});default:return(0,i.jsx)(eE,{stroke:t,...l})}},eB=n.memo(e=>{let{borderColor:t,checked:o,className:r,color:a,describedby:s,disabled:d,error:l,errorProps:c,featureTag:m,fullWidth:u,gutterBottom:h,hideTextOverflow:p,label:g,labelExtras:x,labelTip:b,inputRef:f,onChange:A,size:j="large",subLabel:y,subLabelProps:w,id:v,indeterminate:C,isLoading:I,tipPlacement:E="top",labelProps:T,...S}=e,[k]=(0,n.useState)(()=>v||"checkbox_".concat((0,F.N8)(12))),L=d||I;return(0,i.jsxs)(ew,{className:r,fullWidth:u,gutterBottom:h,hideTextOverflow:p,children:[(0,i.jsxs)(ek,{disabled:d,fullWidth:u,children:[(0,i.jsx)(ev,{children:(0,i.jsxs)(eL,{disabled:L,error:!!l,children:[!I&&(0,i.jsx)(eC,{"aria-describedby":s,"data-testid":"checkbox-".concat(k),checked:o,disabled:d,id:k,onChange:A,ref:f,type:"checkbox",...S}),(0,i.jsx)(eP,{borderColor:t,color:a,disabled:d,checked:o,indeterminate:C,isLoading:I})]})}),g&&(0,i.jsx)(eD,{color:"inherit",disabled:L,extras:x,hideTextOverflow:p,htmlFor:k,labelTip:b,tipPlacement:E,size:j,...T,children:g}),m&&(0,i.jsx)(e_,{tag:m})]}),y&&(0,i.jsx)(eO,{children:(0,i.jsx)(R.Ay,{id:s,variant:"body2",color:"light",...w,children:y})}),l&&(0,i.jsxs)(eM,{children:[(0,i.jsx)(eN,{}),(0,i.jsx)(R.Ay,{color:"error",variant:"body2",...c,children:l})]})]})}),ez=b.Ay.div.withConfig({componentId:"sc-150b440d-0"})(["display:flex;align-items:center;gap:8px;"]),eH=(0,b.Ay)(eB).withConfig({componentId:"sc-150b440d-1"})(["",""],e=>{let{disableInteraction:t}=e;return t&&(0,b.AH)(["input{pointer-events:none;}"])}),eU=b.Ay.div.withConfig({componentId:"sc-150b440d-2"})(["display:flex;gap:8px;"]),eV=(0,b.Ay)(Z.A).withConfig({componentId:"sc-150b440d-3"})(["user-select:none;"]);var eF=o(76223),eW=o(12584),eK=o(2923),eG=o(46937),eY=o(85005),eq=o(82605);function eZ(){let e=(0,eW._)(["\n		&:focus,\n		&:hover {\n			border-color: var(--border-color-hover);\n		}\n	"]);return eZ=function(){return e},e}function eJ(){let e=(0,eW._)(["\n		&:focus,\n		&:hover {\n			color: ",";\n		}\n	"]);return eJ=function(){return e},e}function eQ(){let e=(0,eW._)(["\n					&:hover {\n						background-color: ",";\n					}\n				"]);return eQ=function(){return e},e}let e$="192px",eX="180ms",e0="80ms",e1=(0,b.Ay)(R.Ay).attrs(e=>{let{isOpen:t}=e;return{"aria-haspopup":"listbox","aria-expanded":t,component:"button",variant:"body2"}}).withConfig({componentId:"sc-5fc5215c-0"})(["--border-color:",";--border-color-hover:",";cursor:pointer;display:flex;align-items:center;width:auto;max-width:",";height:36px;padding:0 12px;color:",";background-color:",";border-radius:",";transition:border-color 120ms linear 0s;border:1px solid transparent;",";",""],e=>{let{error:t,theme:o}=e;return t?o.colors.error.main:o.colors.grey[400]},e=>{let{error:t,theme:o}=e;return t?o.colors.error.main:o.colors.primary.main},e$,e=>{let{theme:t}=e;return t.colors.dark},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.shape.borderRadius},e=>{let{border:t}=e;return t&&(0,b.AH)(["border-color:var(--border-color);"])},U.$_.hover(eZ())),e2=(0,b.Ay)("div").withConfig({componentId:"sc-5fc5215c-1"})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - ",");",""],"20px",e=>{let{isPlaceholder:t}=e;return t&&(0,b.AH)(["color:",";"],e=>{let{theme:t}=e;return t.colors.grey[400]})}),e5=(0,b.Ay)(eG.A).attrs({color:"currentColor",size:16}).withConfig({componentId:"sc-5fc5215c-2"})(["display:flex;margin-left:4px;transform-origin:50% 50%;transition:transform "," ease-out 0s;width:22px;height:22px;pointer-events:none;color:",";"],e0,e=>e.theme.text.inputPlaceholder.color);(0,b.Ay)(eY.A).attrs({color:"currentColor",size:16}).withConfig({componentId:"sc-5fc5215c-3"})(["display:flex;margin-left:4px;transform-origin:50% 50%;transition:transform "," ease-out 0s;"],e0),b.Ay.div.withConfig({componentId:"sc-5fc5215c-4"})(["overflow:hidden;position:relative;"]);let e4=b.Ay.ul.attrs({role:"listbox",tabIndex:-1}).withConfig({componentId:"sc-5fc5215c-5"})(["list-style:none;pointer-events:none;position:absolute;z-index:1;top:100%;width:",";max-height:176px;margin:4px 0 0;padding:8px 0;color:",";background-color:",";border-radius:",";border:1px solid ",";box-shadow:0px 3px 12px -4px rgba(0,0,0,0.15);transition:transform "," ease-out 0s,opacity "," linear 0s;transform:translateY(-16px);opacity:0;display:flex;flex-direction:column;",""],e$,e=>{let{theme:t}=e;return t.colors.dark},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.shape.borderRadius},e=>{let{theme:t}=e;return t.colors.grey[200]},e0,e0,e=>{let{align:t}=e;return"right"===t&&(0,b.AH)(["right:0;"])}),e8=(0,b.Ay)(e4).withConfig({componentId:"sc-5fc5215c-6"})(["padding-top:0;max-height:276px;",""],e=>{let{dropdownMinWidth:t}=e;return t&&"min-width: ".concat(t,"px;")}),e6=(0,b.Ay)(eq.A).attrs({color:"currentColor",size:16}).withConfig({componentId:"sc-5fc5215c-7"})(["visibility:hidden;"]),e3=(0,b.Ay)(R.Ay).attrs(e=>{let{component:t,isDisabled:o,isSelected:i}=e;return{"aria-selected":i,component:t||"button",disabled:o,role:"option",variant:"body2"}}).withConfig({componentId:"sc-5fc5215c-8"})(["appearance:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;width:100%;padding:0 12px;line-height:32px;color:",";background-color:transparent;border:none;transition:color 120ms linear 0s;pointer-events:auto;&:disabled{pointer-events:none;color:",";}"," ",""],e=>{let{theme:t}=e;return t.colors.dark},e=>{let{theme:t}=e;return t.colors.text.disabled},e=>{let{isSelected:t}=e;return t&&(0,b.AH)(["color:",";","{visibility:visible;}"],e=>{let{theme:t}=e;return t.colors.primary.main},e6)},U.$_.hover(eJ(),e=>{let{theme:t}=e;return t.colors.primary.main}));(0,b.Ay)(e2).withConfig({componentId:"sc-5fc5215c-9"})([""]);let e7=(0,b.Ay)(e2).withConfig({componentId:"sc-5fc5215c-10"})([""]);(0,b.Ay)(e2).withConfig({componentId:"sc-5fc5215c-11"})(["font-size:13px;text-align:right;"]);let e9=(0,b.Ay)("div").withConfig({componentId:"sc-5fc5215c-12"})(["display:inline-block;position:relative;max-width:",";color:",";"," "," ",""],e$,e=>{let{theme:t}=e;return t.colors.text.dark},e=>{let{dark:t,theme:o}=e;return t&&(0,b.AH)(["","{border:1px solid ",";}","{color:",";background-color:transparent;&:focus{background-color:",";}","}"],e4,o.colors.grey[900],e1,o.colors.white,(0,eK.rgba)(o.colors.white,.04),U.$_.hover(eQ(),(0,eK.rgba)(o.colors.white,.04)))},e=>{let{fullWidth:t}=e;return t&&(0,b.AH)(["&,",",","{width:100%;max-width:none;}","{margin-left:auto;}"],e1,e4,e5)},e=>{let{isOpen:t}=e;return t&&(0,b.AH)(["","{border-color:",";}","{transform:rotate(-180deg);transition:transform "," ease-out 0s;}","{pointer-events:auto;transition:transform "," ease-out 0s,opacity "," linear 0s;transform:translateY(0);opacity:1;}"],e1,e=>{let{theme:t}=e;return t.colors.primary.main},e5,eX,e4,eX,eX)}),te=b.Ay.div.withConfig({componentId:"sc-5fc5215c-13"})(["overflow:auto;flex:1;"]),tt=(0,b.Ay)(E.A).withConfig({componentId:"sc-5fc5215c-14"})(["width:100%;border-bottom:1px solid ",";margin-bottom:4px;"],e=>{let{theme:t}=e;return t.colors.grey[200]}),to=(0,b.Ay)(E.A).withConfig({componentId:"sc-5fc5215c-15"})(["cursor:pointer;"]),ti=b.Ay.label.withConfig({componentId:"sc-5fc5215c-16"})(["font-size:14px;display:flex;flex-direction:column;gap:12px;width:100%;"]),tn=(0,b.Ay)(e7).attrs({component:"div"}).withConfig({componentId:"sc-5fc5215c-17"})(["color:",";"],e=>{let{theme:t}=e;return t.colors.blue.main}),tr=(0,b.Ay)(e3).attrs({component:"div"}).withConfig({componentId:"sc-5fc5215c-18"})(["background-color:",";"],e=>{let{theme:t}=e;return t.colors.blue.extraLight}),ta=(0,b.Ay)(e3).attrs({component:"div"}).withConfig({componentId:"sc-5fc5215c-19"})(["",""],e=>{let{isActive:t}=e;return t&&(0,b.AH)(["background-color:",";"],e=>{let{theme:t}=e;return t.colors.grey[100]})}),ts=e=>{let{align:t,dark:o,disabled:r,fullWidth:s,options:d,placeholder:l,searchValue:c,onSearch:m,onOptionSelect:u,label:h,selectedOption:p,id:g,error:x,dropdownMinWidth:f,selectedLabelModifier:A=e=>e.label}=e,j=(0,b.DP)(),y=(0,n.useRef)(null),w=(0,n.useRef)(null),v=(0,n.useRef)(null),C=(0,n.useRef)(null),I=(0,n.useRef)(null),[E,T]=(0,n.use
1State)(!1),[S,R]=(0,n.useState)(),k=(0,n.useRef)(!1),L=(0,a.Bd)("broadcasts.onAir.customize.modal.search"),D=(0,n.useMemo)(()=>p?A(p):"",[p,A]),M=(0,n.useCallback)(()=>{T(!0)},[]),N=(0,n.useCallback)(()=>{var e;T(!1),R(void 0),null==(e=I.current)||e.focus()},[T]),O=(0,n.useCallback)(e=>{u(e),N()},[N,u]),_=e=>{var t,o;(null==(o=w.current)||null==(t=o.children)?void 0:t[e])&&((e,t)=>{let o=e.scrollTop,i=o+e.clientHeight,n=t.offsetTop-e.offsetTop,r=n+t.clientHeight;n<o&&t.scrollIntoView({block:"start"}),r>i&&t.scrollIntoView({block:"end"})})(w.current,w.current.children[e]),R(e)},P=(0,n.useCallback)(()=>{E?N():M()},[E,N,M]),B=(0,n.useCallback)(e=>{["Enter","Space","ArrowDown"].includes(e.code)&&(e.preventDefault(),M())},[M]);return(0,n.useEffect)(()=>{let e=e=>{var t;!E||(null==(t=v.current)?void 0:t.contains(e.target))||T(!1)},t=e=>{E&&"Escape"===e.code&&N()};return window.addEventListener("mousedown",e),window.addEventListener("keydown",t),()=>{window.removeEventListener("mousedown",e),window.removeEventListener("keydown",t)}}),(0,n.useEffect)(()=>{E&&R(void 0)},[E,d]),(0,n.useEffect)(()=>{if(E){var e;null==(e=C.current)||e.focus()}},[E]),(0,i.jsxs)(e9,{dark:o,fullWidth:s,isOpen:E,ref:v,onKeyDown:e=>{"Escape"===e.code?N():"Enter"===e.code||"Space"===e.code&&E&&void 0!==S?(e.preventDefault(),void 0!==S&&O(d[S])):"ArrowDown"===e.code?(e.preventDefault(),k.current=!0,_(void 0===S||S>=d.length-1?0:S+1)):"ArrowUp"===e.code&&(e.preventDefault(),k.current=!0,_(void 0===S||S<=0?d.length-1:S-1))},onMouseMove:()=>{k.current=!1},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||T(!1)},children:[(0,i.jsxs)(ti,{htmlFor:g,children:[h,(0,i.jsx)(to,{disabled:r,onClick:P,onKeyDown:B,value:D,placeholder:l,readOnly:!0,icon:(0,i.jsx)(e5,{}),iconPosition:"right",fullWidth:!0,error:x,hideErrorText:!0,size:"medium",inputRef:I})]}),E&&(0,i.jsxs)(e8,{align:t,ref:y,dropdownMinWidth:f,children:[(0,i.jsx)(tt,{iconPosition:"left",icon:(0,i.jsx)(eF.A,{size:"24",color:j.colors.grey[700]}),onChange:e=>m(e.target.value),onKeyDown:e=>{"Enter"===e.code&&e.preventDefault()},placeholder:L,size:"medium",value:c,hideBorder:!0,inputRef:C}),(null==p?void 0:p.label)&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(tr,{disabled:!0,children:(0,i.jsx)(tn,{children:p.label})})}),(0,i.jsx)(te,{ref:w,children:d.map((e,t)=>(0,i.jsx)(ta,{isActive:t===S,onClick:()=>{O(e)},onMouseEnter:()=>{k.current||R(t)},children:(0,i.jsx)(e7,{children:e.label})},e.value))})]})]})};
1function td(e){let{disabled:t,error:o,id:r,inputLabel:a,options:s,placeholder:d,suggestedOptionValue:l,dropdownMinWidth:c,selectedOption:m,onOptionSelect:u=()=>{},selectedLabelModifier:h=e=>e.label}=e,[p,g]=(0,n.useState)(""),x=(0,n.useMemo)(()=>{if(!Array.isArray(s))return[];if(!l)return s;let e=s.find(e=>e.value.toLowerCase()===l.toLowerCase());if(!e)return s;let t=s.filter(t=>t.value!==e.value);return[e,...t]},[s,l]),b=(0,n.useMemo)(()=>p?x.filter(e=>(e.searchLabel||e.label).toLowerCase().includes(p.toLowerCase())):x,[x,p]);return(0,i.jsx)(ts,{disabled:t,options:b,selectedLabelModifier:h,searchValue:p,selectedOption:m,onSearch:e=>{g(e)},onOptionSelect:e=>{u(e),g("")},label:a,placeholder:null!=d?d:"",id:r,fullWidth:!0,error:o,dropdownMinWidth:c})}var tl=o(1108),tc=o(66488);let tm=e=>(tl.registerLocale(o(68864)("./".concat(e,".json"))),Object.fromEntries(Object.entries(tl.getNames(e,{select:"all"})).map(e=>{let[t,o]=e,[i,...n]=o;return[t,{name:i,aliases:n}]})));function tu(){let{i18n:{language:e}}=(0,tc.B)(),[t,o]=(0,n.useState)({});return(0,n.useEffect)(()=>{try{o(tm(e))}catch(e){o(tm("en"))}},[e]),{countries:t}}let th=JSON.parse('{"AD":{"emoji":"\uD83C\uDDE6\uD83C\uDDE9","phoneCode":"+376"},"AE":{"emoji":"\uD83C\uDDE6\uD83C\uDDEA","phoneCode":"+971"},"AF":{"emoji":"\uD83C\uDDE6\uD83C\uDDEB","phoneCode":"+93"},"AG":{"emoji":"\uD83C\uDDE6\uD83C\uDDEC","phoneCode":"+1268"},"AI":{"emoji":"\uD83C\uDDE6\uD83C\uDDEE","phoneCode":"+1264"},"AL":{"emoji":"\uD83C\uDDE6\uD83C\uDDF1","phoneCode":"+355"},"AM":{"emoji":"\uD83C\uDDE6\uD83C\uDDF2","phoneCode":"+374"},"AO":{"emoji":"\uD83C\uDDE6\uD83C\uDDF4","phoneCode":"+244"},"AQ":{"emoji":"\uD83C\uDDE6\uD83C\uDDF6","phoneCode":"+672"},"AR":{"emoji":"\uD83C\uDDE6\uD83C\uDDF7","phoneCode":"+54"},"AS":{"emoji":"\uD83C\uDDE6\uD83C\uDDF8","phoneCode":"+1684"},"AT":{"emoji":"\uD83C\uDDE6\uD83C\uDDF9","phoneCode":"+43"},"AU":{"emoji":"\uD83C\uDDE6\uD83C\uDDFA","phoneCode":"+61"},"AW":{"emoji":"\uD83C\uDDE6\uD83C\uDDFC","phoneCode":"+297"},"AX":{"emoji":"\uD83C\uDDE6\uD83C\uDDFD","phoneCode":"+358"},"AZ":{"emoji":"\uD83C\uDDE6\uD83C\uDDFF","phoneCode":"+994"},"BA":{"emoji":"\uD83C\uDDE7\uD83C\uDDE6","phoneCode":"+387"},"BB":{"emoji":"\uD83C\uDDE7\uD83C\uDDE7","phoneCode":"+1246"},"BD":{"emoji":"\uD83C\uDDE7\uD83C\uDDE9","phoneCode":"+880"},"BE":{"emoji":"\uD83C\uDDE7\uD83C\uDDEA","phoneCode":"+32"},"BF":{"emoji":"\uD83C\uDDE7\uD83C\uDDEB","phoneCode":"+226"},"BG":{"emoji":"\uD83C\uDDE7\uD83C\uDDEC","phoneCode":"+359"},"BH":{"emoji":"\uD83C\uDDE7\uD83C\uDDED","phoneCode":"+973"},"BI":{"emoji":"\uD83C\uDDE7\uD83C\uDDEE","phoneCode":"+257"},"BJ":{"emoji":"\uD83C\uDDE7\uD83C\uDDEF","phoneCode":"+229"},"BL":{"emoji":"\uD83C\uDDE7\uD83C\uDDF1","phoneCode":"+590"},"BM":{"emoji":"\uD83C\uDDE7\uD83C\uDDF2","phoneCode":"+1441"},"BN":{"emoji":"\uD83C\uDDE7\uD83C\uDDF3","phoneCode":"+673"},"BO":{"emoji":"\uD83C\uDDE7\uD83C\uDDF4","phoneCode":"+591"},"BQ":{"emoji":"\uD83C\uDDE7\uD83C\uDDF6","phoneCode":"+599"},"BR":{"emoji":"\uD83C\uDDE7\uD83C\uDDF7","phoneCode":"+55"},"BS":{"emoji":"\uD83C\uDDE7\uD83C\uDDF8","phoneCode":"+1242"},"BT":{"emoji":"\uD83C\uDDE7\uD83C\uDDF9","phoneCode":"+975"},"BV":{"emoji":"\uD83C\uDDE7\uD83C\uDDFB","phoneCode":"+47"},"BW":{"emoji":"\uD83C\uDDE7\uD83C\uDDFC","phoneCode":"+267"},"BY":{"emoji":"\uD83C\uDDE7\uD83C\uDDFE","phoneCode":"+375"},"BZ":{"emoji":"\uD83C\uDDE7\uD83C\uDDFF","phoneCode":"+501"},"CA":{"emoji":"\uD83C\uDDE8\uD83C\uDDE6","phoneCode":"+1"},"CC":{"emoji":"\uD83C\uDDE8\uD83C\uDDE8","phoneCode":"+61"},"CD":{"emoji":"\uD83C\uDDE8\uD83C\uDDE9","phoneCode":"+243"},"CF":{"emoji":"\uD83C\uDDE8\uD83C\uDDEB","phoneCode":"+236"},"CG":{"emoji":"\uD83C\uDDE8\uD83C\uDDEC","phoneCode":"+242"},"CH":{"emoji":"\uD83C\uDDE8\uD83C\uDDED","phoneCode":"+41"},"CI":{"emoji":"\uD83C\uDDE8\uD83C\uDDEE","phoneCode":"+225"},"CK":{"emoji":"\uD83C\uDDE8\uD83C\uDDF0","phoneCode":"+682"},"CL":{"emoji":"\uD83C\uDDE8\uD83C\uDDF1","phoneCode":"+56"},"CM":{"emoji":"\uD83C\uDDE8\uD83C\uDDF2","phoneCode":"+237"},"CN":{"emoji":"\uD83C\uDDE8\uD83C\uDDF3","phoneCode":"+86"},"CO":{"emoji":"\uD83C\uDDE8\uD83C\uDDF4","phoneCode":"+57"},"CR":{"emoji":"\uD83C\uDDE8\uD83C\uDDF7","phoneCode":"+506"},"CU":{"emoji":"\uD83C\uDDE8\uD83C\uDDFA","phoneCode":"+53"},"CV":{"emoji":"\uD83C\uDDE8\uD83C\uDDFB","phoneCode":"+238"},"CW":{"emoji":"\uD83C\uDDE8\uD83C\uDDFC","phoneCode":"+599"},"CX":{"emoji":"\uD83C\uDDE8\uD83C\uDDFD","phoneCode":"+61"},"CY":{"emoji":"\uD83C\uDDE8\uD83C\uDDFE","phoneCode":"+357"},"CZ":{"emoji":"\uD83C\uDDE8\uD83C\uDDFF","phoneCode":"+420"},"DE":{"emoji":"\uD83C\uDDE9\uD83C\uDDEA","phoneCode":"+49"},"DJ":{"emoji":"\uD83C\uDDE9\uD83C\uDDEF","phoneCode":"+253"},"DK":{"emoji":"\uD83C\uDDE9\uD83C\uDDF0","phoneCode":"+45"},"DM":{"emoji":"\uD83C\uDDE9\uD83C\uDDF2","phoneCode":"+1767"},"DO":{"emoji":"\uD83C\uDDE9\uD83C\uDDF4","phoneCode":"+1849"},"DZ":{"emoji":"\uD83C\uDDE9\uD83C\uDDFF","phoneCode":"+213"},"EC":{"emoji":"\uD83C\uDDEA\uD83C\uDDE8","phoneCode":"+593"},"EE":{"emoji":"\uD83C\uDDEA\uD83C\uDDEA","phoneCode":"+372"},"EG":{"emoji":"\uD83C\uDDEA\uD83C\uDDEC","phoneCode":"+20"},"EH":{"emoji":"\uD83C\uDDEA\uD83C\uDDED","phoneCode":"+212"},"ER":{"emoji":"\uD83C\uDDEA\uD83C\uDDF7","phoneCode":"+291"},"ES":{"emoji":"\uD83C\uDDEA\uD83C\uDDF8","phoneCode":"+34"},"ET":{"emoji":"\uD83C\uDDEA\uD83C\uDDF9","phoneCode":"+251"},"FI":{"emoji":"\uD83C\uDDEB\uD83C\uDDEE","phoneCode":"+358"},"FJ":{"emoji":"\uD83C\uDDEB\uD83C\uDDEF","phoneCode":"+679"},"FK":{"emoji":"\uD83C\uDDEB\uD83C\uDDF0","phoneCode":"+500"},"FM":{"emoji":"\uD83C\uDDEB\uD83C\uDDF2","phoneCode":"+691"},"FO":{"emoji":"\uD83C\uDDEB\uD83C\uDDF4","phoneCode":"+298"},"FR":{"emoji":"\uD83C\uDDEB\uD83C\uDDF7","phoneCode":"+33"},"GA":{"emoji":"\uD83C\uDDEC\uD83C\uDDE6","phoneCode":"+241"},"GB":{"emoji":"\uD83C\uDDEC\uD83C\uDDE7","phoneCode":"+44"},"GD":{"emoji":"\uD83C\uDDEC\uD83C\uDDE9","phoneCode":"+1473"},"GE":{"emoji":"\uD83C\uDDEC\uD83C\uDDEA","phoneCode":"+995"},"GF":{"emoji":"\uD83C\uDDEC\uD83C\uDDEB","phoneCode":"+594"},"GG":{"emoji":"\uD83C\uDDEC\uD83C\uDDEC","phoneCode":"+44"},"GH":{"emoji":"\uD83C\uDDEC\uD83C\uDDED","phoneCode":"+233"},"GI":{"emoji":"\uD83C\uDDEC\uD83C\uDDEE","phoneCode":"+350"},"GL":{"emoji":"\uD83C\uDDEC\uD83C\uDDF1","phoneCode":"+299"},"GM":{"emoji":"\uD83C\uDDEC\uD83C\uDDF2","phoneCode":"+220"},"GN":{"emoji":"\uD83C\uDDEC\uD83C\uDDF3","phoneCode":"+224"},"GP":{"emoji":"\uD83C\uDDEC\uD83C\uDDF5","phoneCode":"+590"},"GQ":{"emoji":"\uD83C\uDDEC\uD83C\uDDF6","phoneCode":"+240"},"GR":{"emoji":"\uD83C\uDDEC\uD83C\uDDF7","phoneCode":"+30"},"GS":{"emoji":"\uD83C\uDDEC\uD83C\uDDF8","phoneCode":"+500"},"GT":{"emoji":"\uD83C\uDDEC\uD83C\uDDF9","phoneCode":"+502"},"GU":{"emoji":"\uD83C\uDDEC\uD83C\uDDFA","phoneCode":"+1671"},"GW":{"emoji":"\uD83C\uDDEC\uD83C\uDDFC","phoneCode":"+245"},"GY":{"emoji":"\uD83C\uDDEC\uD83C\uDDFE","phoneCode":"+595"},"HK":{"emoji":"\uD83C\uDDED\uD83C\uDDF0","phoneCode":"+852"},"HM":{"emoji":"\uD83C\uDDED\uD83C\uDDF2","phoneCode":"+672"},"HN":{"emoji":"\uD83C\uDDED\uD83C\uDDF3","phoneCode":"+504"},"HR":{"emoji":"\uD83C\uDDED\uD83C\uDDF7","phoneCode":"+385"}
1,"HT":{"emoji":"\uD83C\uDDED\uD83C\uDDF9","phoneCode":"+509"},"HU":{"emoji":"\uD83C\uDDED\uD83C\uDDFA","phoneCode":"+36"},"ID":{"emoji":"\uD83C\uDDEE\uD83C\uDDE9","phoneCode":"+62"},"IE":{"emoji":"\uD83C\uDDEE\uD83C\uDDEA","phoneCode":"+353"},"IL":{"emoji":"\uD83C\uDDEE\uD83C\uDDF1","phoneCode":"+972"},"IM":{"emoji":"\uD83C\uDDEE\uD83C\uDDF2","phoneCode":"+44"},"IN":{"emoji":"\uD83C\uDDEE\uD83C\uDDF3","phoneCode":"+91"},"IO":{"emoji":"\uD83C\uDDEE\uD83C\uDDF4","phoneCode":"+246"},"IQ":{"emoji":"\uD83C\uDDEE\uD83C\uDDF6","phoneCode":"+964"},"IR":{"emoji":"\uD83C\uDDEE\uD83C\uDDF7","phoneCode":"+98"},"IS":{"emoji":"\uD83C\uDDEE\uD83C\uDDF8","phoneCode":"+354"},"IT":{"emoji":"\uD83C\uDDEE\uD83C\uDDF9","phoneCode":"+39"},"JE":{"emoji":"\uD83C\uDDEF\uD83C\uDDEA","phoneCode":"+44"},"JM":{"emoji":"\uD83C\uDDEF\uD83C\uDDF2","phoneCode":"+1876"},"JO":{"emoji":"\uD83C\uDDEF\uD83C\uDDF4","phoneCode":"+962"},"JP":{"emoji":"\uD83C\uDDEF\uD83C\uDDF5","phoneCode":"+81"},"KE":{"emoji":"\uD83C\uDDF0\uD83C\uDDEA","phoneCode":"+254"},"KG":{"emoji":"\uD83C\uDDF0\uD83C\uDDEC","phoneCode":"+996"},"KH":{"emoji":"\uD83C\uDDF0\uD83C\uDDED","phoneCode":"+855"},"KI":{"emoji":"\uD83C\uDDF0\uD83C\uDDEE","phoneCode":"+686"},"KM":{"emoji":"\uD83C\uDDF0\uD83C\uDDF2","phoneCode":"+269"},"KN":{"emoji":"\uD83C\uDDF0\uD83C\uDDF3","phoneCode":"+1869"},"KP":{"emoji":"\uD83C\uDDF0\uD83C\uDDF5","phoneCode":"+850"},"KR":{"emoji":"\uD83C\uDDF0\uD83C\uDDF7","phoneCode":"+82"},"KW":{"emoji":"\uD83C\uDDF0\uD83C\uDDFC","phoneCode":"+965"},"KY":{"emoji":"\uD83C\uDDF0\uD83C\uDDFE","phoneCode":"+345"},"KZ":{"emoji":"\uD83C\uDDF0\uD83C\uDDFF","phoneCode":"+77"},"LA":{"emoji":"\uD83C\uDDF1\uD83C\uDDE6","phoneCode":"+856"},"LB":{"emoji":"\uD83C\uDDF1\uD83C\uDDE7","phoneCode":"+961"},"LC":{"emoji":"\uD83C\uDDF1\uD83C\uDDE8","phoneCode":"+1758"},"LI":{"emoji":"\uD83C\uDDF1\uD83C\uDDEE","phoneCode":"+423"},"LK":{"emoji":"\uD83C\uDDF1\uD83C\uDDF0","phoneCode":"+94"},"LR":{"emoji":"\uD83C\uDDF1\uD83C\uDDF7","phoneCode":"+231"},"LS":{"emoji":"\uD83C\uDDF1\uD83C\uDDF8","phoneCode":"+266"},"LT":{"emoji":"\uD83C\uDDF1\uD83C\uDDF9","phoneCode":"+370"},"LU":{"emoji":"\uD83C\uDDF1\uD83C\uDDFA","phoneCode":"+352"},"LV":{"emoji":"\uD83C\uDDF1\uD83C\uDDFB","phoneCode":"+371"},"LY":{"emoji":"\uD83C\uDDF1\uD83C\uDDFE","phoneCode":"+218"},"MA":{"emoji":"\uD83C\uDDF2\uD83C\uDDE6","phoneCode":"+212"},"MC":{"emoji":"\uD83C\uDDF2\uD83C\uDDE8","phoneCode":"+377"},"MD":{"emoji":"\uD83C\uDDF2\uD83C\uDDE9","phoneCode":"+373"},"ME":{"emoji":"\uD83C\uDDF2\uD83C\uDDEA","phoneCode":"+382"},"MF":{"emoji":"\uD83C\uDDF2\uD83C\uDDEB","phoneCode":"+590"},"MG":{"emoji":"\uD83C\uDDF2\uD83C\uDDEC","phoneCode":"+261"},"MH":{"emoji":"\uD83C\uDDF2\uD83C\uDDED","phoneCode":"+692"},"MK":{"emoji":"\uD83C\uDDF2\uD83C\uDDF0","phoneCode":"+389"},"ML":{"emoji":"\uD83C\uDDF2\uD83C\uDDF1","phoneCode":"+223"},"MM":{"emoji":"\uD83C\uDDF2\uD83C\uDDF2","phoneCode":"+95"},"MN":{"emoji":"\uD83C\uDDF2\uD83C\uDDF3","phoneCode":"+976"},"MO":{"emoji":"\uD83C\uDDF2\uD83C\uDDF4","phoneCode":"+853"},"MP":{"emoji":"\uD83C\uDDF2\uD83C\uDDF5","phoneCode":"+1670"},"MQ":{"emoji":"\uD83C\uDDF2\uD83C\uDDF6","phoneCode":"+596"},"MR":{"emoji":"\uD83C\uDDF2\uD83C\uDDF7","phoneCode":"+222"},"MS":{"emoji":"\uD83C\uDDF2\uD83C\uDDF8","phoneCode":"+1664"},"MT":{"emoji":"\uD83C\uDDF2\uD83C\uDDF9","phoneCode":"+356"},"MU":{"emoji":"\uD83C\uDDF2\uD83C\uDDFA","phoneCode":"+230"},"MV":{"emoji":"\uD83C\uDDF2\uD83C\uDDFB","phoneCode":"+960"},"MW":{"emoji":"\uD83C\uDDF2\uD83C\uDDFC","phoneCode":"+265"},"MX":{"emoji":"\uD83C\uDDF2\uD83C\uDDFD","phoneCode":"+52"},"MY":{"emoji":"\uD83C\uDDF2\uD83C\uDDFE","phoneCode":"+60"},"MZ":{"emoji":"\uD83C\uDDF2\uD83C\uDDFF","phoneCode":"+258"},"NA":{"emoji":"\uD83C\uDDF3\uD83C\uDDE6","phoneCode":"+264"},"NC":{"emoji":"\uD83C\uDDF3\uD83C\uDDE8","phoneCode":"+687"},"NE":{"emoji":"\uD83C\uDDF3\uD83C\uDDEA","phoneCode":"+227"},"NF":{"emoji":"\uD83C\uDDF3\uD83C\uDDEB","phoneCode":"+672"},"NG":{"emoji":"\uD83C\uDDF3\uD83C\uDDEC","phoneCode":"+234"},"NI":{"emoji":"\uD83C\uDDF3\uD83C\uDDEE","phoneCode":"+505"},"NL":{"emoji":"\uD83C\uDDF3\uD83C\uDDF1","phoneCode":"+31"},"NO":{"emoji":"\uD83C\uDDF3\uD83C\uDDF4","phoneCode":"+47"},"NP":{"emoji":"\uD83C\uDDF3\uD83C\uDDF5","phoneCode":"+977"},"NR":{"emoji":"\uD83C\uDDF3\uD83C\uDDF7","phoneCode":"+674"},"NU":{"emoji":"\uD83C\uDDF3\uD83C\uDDFA","phoneCode":"+683"},"NZ":{"emoji":"\uD83C\uDDF3\uD83C\uDDFF","phoneCode":"+64"},"OM":{"emoji":"\uD83C\uDDF4\uD83C\uDDF2","phoneCode":"+968"},"PA":{"emoji":"\uD83C\uDDF5\uD83C\uDDE6","phoneCode":"+507"},"PE":{"emoji":"\uD83C\uDDF5\uD83C\uDDEA","phoneCode":"+51"},"PF":{"emoji":"\uD83C\uDDF5\uD83C\uDDEB","phoneCode":"+689"},"PG":{"emoji":"\uD83C\uDDF5\uD83C\uDDEC","phoneCode":"+675"},"PH":{"emoji":"\uD83C\uDDF5\uD83C\uDDED","phoneCode":"+63"},"PK":{"emoji":"\uD83C\uDDF5\uD83C\uDDF0","phoneCode":"+92"},"PL":{"emoji":"\uD83C\uDDF5\uD83C\uDDF1","phoneCode":"+48"},"PM":{"emoji":"\uD83C\uDDF5\uD83C\uDDF2","phoneCode":"+508"},"PN":{"emoji":"\uD83C\uDDF5\uD83C\uDDF3","phoneCode":"+872"},"PR":{"emoji":"\uD83C\uDDF5\uD83C\uDDF7","phoneCode":"+1939"},"PS":{"emoji":"\uD83C\uDDF5\uD83C\uDDF8","phoneCode":"+970"},"PT":{"emoji":"\uD83C\uDDF5\uD83C\uDDF9","phoneCode":"+351"},"PW":{"emoji":"\uD83C\uDDF5\uD83C\uDDFC","phoneCode":"+680"},"PY":{"emoji":"\uD83C\uDDF5\uD83C\uDDFE","phoneCode":"+595"},"QA":{"emoji":"\uD83C\uDDF6\uD83C\uDDE6","phoneCode":"+974"},"RE":{"emoji":"\uD83C\uDDF7\uD83C\uDDEA","phoneCode":"+262"},"RO":{"emoji":"\uD83C\uDDF7\uD83C\uDDF4","phoneCode":"+40"},"RS":{"emoji":"\uD83C\uDDF7\uD83C\uDDF8","phoneCode":"+381"},"RU":{"emoji":"\uD83C\uDDF7\uD83C\uDDFA","phoneCode":"+7"},"RW":{"emoji":"\uD83C\uDDF7\uD83C\uDDFC","phoneCode":"+250"},"SA":{"emoji":"\uD83C\uDDF8\uD83C\uDDE6","phoneCode":"+966"},"SB":{"emoji":"\uD83C\uDDF8\uD83C\uDDE7","phoneCode":"+677"},"SC":{"emoji":"\uD83C\uDDF8\uD83C\uDDE8","phoneCode":"+248"},"SD":{"emoji":"\uD83C\uDDF8\uD83C\uDDE9","phoneCode":"+249"},"SE":{"emoji":"\uD83C\uDDF8\uD83C\uDDEA","phoneCode":"+46"},"SG":{"emoji":"\uD83C\uDDF8\uD83C\uDDEC","phoneCode":"+65"},"SH":{"emoji":"\uD83C\uDDF8\uD83C\uDDED","phoneCode":"+290"},"SI":{"emoji":"\uD83C\uDDF8\uD83C\uDDEE","phoneCode":"+386"},"SJ":{"emoji":"\uD83C\uDDF8\uD83C\uDDEF","phoneCode":"+47"},"SK":{"emoji":"\uD83C\uDDF8\uD83C\uDDF0","phoneCode":"+421"},"SL":{"emoji":"\uD83C\uDDF8\uD83C\uDDF1","phoneCode":"+232"},"SM":{"emoji":"\uD83C\uDDF8\uD83C\uDDF2","phoneCode":"+378"},"SN":{"emoji":"\uD83C\uDDF8\uD83C\uDDF3","phoneCode":"+221"},"SO":{"emoji":"\uD83C\uDDF8\uD83C\uDDF4","phoneCode":"+252"},"SR":{"emoji":"\uD83C\uDDF8\uD83C\uDDF7","phoneCode":"+597"},"SS":{"emoji":"\uD83C\uDDF8\uD83C\uDDF8","phoneCode":"+211"},"ST":{"emoji":"\uD83C\uDDF8\uD83C\uDDF9","phoneCode":"+239"},"SV":{"emoji":"\uD83C\uDDF8\uD83C\uDDFB","phoneCode":"+503"},"SX":{"emoji":"\uD83C\uDDF8\uD83C\uDDFD","phoneCode":"+721"},"SY":{"emoji":"\uD83C\uDDF8\uD83C\uDDFE","phoneCode":"+963"},"SZ":{"emoji":"\uD83C\uDDF8\uD83C\uDDFF","phoneCode":"+268"},"TC":{"emoji":"\uD83C\uDDF9\uD83C\uDDE8","phoneCode":"+1649"},"TD":{"emoji":"\uD83C\uDDF9\uD83C\uDDE9","phoneCode":"+235"},"TF":{"emoji":"\uD83C\uDDF9\uD83C\uDDEB","phoneCode":"+33"},"TG":{"emoji":"\uD83C\uDDF9\uD83C\uDDEC","phoneCode":"+228"},"TH":{"emoji":"\uD83C\uDDF9\uD83C\uDDED","phoneCode":"+66"},"TJ":{"emoji":"\uD83C\uDDF9\uD83C\uDDEF","phoneCode":"+992"},"TK":{"emoji":"\uD83C\uDDF9\uD83C\uDDF0","phoneCode":"+690"},"TL":{"emoji":"\uD83C\uDDF9\uD83C\uDDF1","phoneCode":"+670"},"TM":{"emoji":"\uD83C\uDDF9\uD83C\uDDF2","phoneCode":"+993"},"TN":{"emoji":"\uD83C\uDDF9\uD83C\uDDF3","phoneCode":"+216"},"TO":{"emoji":"\uD83C\uDDF9\uD83C\uDDF4","phoneCode":"+676"},"TR":{"emoji":"\uD83C\uDDF9\uD83C\uDDF7","phoneCode":"+90"},"TT":{"emoji":"\uD83C\uDDF9\uD83C\uDDF9","phoneCode":"+1868"},"TV":{"emoji":"\uD83C\uDDF9\uD83C\uDDFB","phoneCode":"+688"},"TW":{"emoji":"\uD83C\uDDF9\uD83C\uDDFC","phoneCode":"+886"},"TZ":{"emoji":"\uD83C\uDDF9\uD83C\uDDFF","phoneCode":"+255"}
1,"UA":{"emoji":"\uD83C\uDDFA\uD83C\uDDE6","phoneCode":"+380"},"UG":{"emoji":"\uD83C\uDDFA\uD83C\uDDEC","phoneCode":"+256"},"UM":{"emoji":"\uD83C\uDDFA\uD83C\uDDF2","phoneCode":"+1"},"US":{"emoji":"\uD83C\uDDFA\uD83C\uDDF8","phoneCode":"+1"},"UY":{"emoji":"\uD83C\uDDFA\uD83C\uDDFE","phoneCode":"+598"},"UZ":{"emoji":"\uD83C\uDDFA\uD83C\uDDFF","phoneCode":"+998"},"VA":{"emoji":"\uD83C\uDDFB\uD83C\uDDE6","phoneCode":"+379"},"VC":{"emoji":"\uD83C\uDDFB\uD83C\uDDE8","phoneCode":"+1784"},"VE":{"emoji":"\uD83C\uDDFB\uD83C\uDDEA","phoneCode":"+58"},"VG":{"emoji":"\uD83C\uDDFB\uD83C\uDDEC","phoneCode":"+1284"},"VI":{"emoji":"\uD83C\uDDFB\uD83C\uDDEE","phoneCode":"+1340"},"VN":{"emoji":"\uD83C\uDDFB\uD83C\uDDF3","phoneCode":"+84"},"VU":{"emoji":"\uD83C\uDDFB\uD83C\uDDFA","phoneCode":"+678"},"WF":{"emoji":"\uD83C\uDDFC\uD83C\uDDEB","phoneCode":"+681"},"WS":{"emoji":"\uD83C\uDDFC\uD83C\uDDF8","phoneCode":"+685"},"XK":{"emoji":"\uD83C\uDDFD\uD83C\uDDF0","phoneCode":"+383"},"YE":{"emoji":"\uD83C\uDDFE\uD83C\uDDEA","phoneCode":"+967"},"YT":{"emoji":"\uD83C\uDDFE\uD83C\uDDF9","phoneCode":"+262"},"ZA":{"emoji":"\uD83C\uDDFF\uD83C\uDDE6","phoneCode":"+27"},"ZM":{"emoji":"\uD83C\uDDFF\uD83C\uDDF2","phoneCode":"+260"},"ZW":{"emoji":"\uD83C\uDDFF\uD83C\uDDFC","phoneCode":"+263"}}'),tp=(e,t)=>{let{name:o,aliases:i}=t;return{value:e,label:"".concat(th[e].emoji," ").concat(o),icon:th[e].emoji,searchLabel:"".concat(o," ").concat(i.join(" "))}},tg=ei(e=>{let{onChange:t,error:o,readOnly:r,value:s}=e,{countries:d}=tu(),l=(0,a.Bd)("broadcasts.onAir.registration.country.placeholder"),c=(0,n.useMemo)(()=>Object.entries(d).map(e=>{let[t,o]=e;return tp(t,o)}).sort((e,t)=>e.searchLabel.localeCompare(t.searchLabel)),[d]),m=(0,n.useMemo)(()=>{if(d[s])return tp(s,d[s])},[d,s]);return r?(0,i.jsx)(en,{value:null==m?void 0:m.label}):(0,i.jsx)(td,{placeholder:l,options:c,onOptionSelect:e=>{t(e.value)},error:o,selectedOption:m})});var tx=o(33585);let tb={small:"small",large:"large"},tf=(0,b.Ay)("div").withConfig({componentId:"sc-355a1afe-0"})(["display:inline-block;margin:0;margin-bottom:",";margin-right:",";text-align:left;",";",";"],e=>e.gutterBottom&&"".concat(3*e.theme.unit,"px"),e=>e.rightGutter&&"8px",e=>e.fullWidth&&(0,b.AH)(["width:100%;select{width:100%;}"]),e=>{let{flex:t}=e;return t&&(0,b.AH)(["flex:",";"],t)}),tA=b.Ay.div.withConfig({componentId:"sc-355a1afe-1"})(["position:relative;"]),tj=(0,b.Ay)(eG.A).withConfig({componentId:"sc-355a1afe-2"})(["position:absolute;width:22px;height:22px;top:50%;transform:translateY(-50%);right:",";pointer-events:none;color:",";"],e=>e.$size===tb.small?"4px":"14px",e=>e.theme.text.inputPlaceholder.color),ty=(0,b.Ay)(tx.A).withConfig({componentId:"sc-355a1afe-3"})(["position:absolute;top:50%;transform:translateY(-50%);right:12px;pointer-events:none;opacity:",";"],e=>e.$isSelectDisabled&&.7),tw=(0,b.Ay)("select").withConfig({componentId:"sc-355a1afe-4"})(["height:",";max-width:100%;",";padding:0 "," 0 ",";appearance:none;background:",";border:"," solid ",";border:",";border-radius:",";line-height:",";text-overflow:",";white-space:",";",";&:disabled{color:",";border-color:",";&::placeholder{color:",";}}&:focus{border-color:",";}"],e=>e.theme.shape.input[e.$size].height,e=>{let{$flex:t}=e;return t&&(0,b.AH)(["width:100%;"])},e=>e.$size===tb.small?"26px":"40px",e=>e.theme.shape.input[e.$size].sidePadding,e=>{let{theme:t}=e;return t.tokens.COLOR_TOKENS_SURFACE_BACKGROUND_LVL_0},e=>e.theme.shape.input.borderThickness,e=>e.$error?e.theme.tokens.COLOR_TOKENS_STROKE_INVERTIBLE_STATUS_CRITICAL:e.theme.tokens.COLOR_TOKENS_STROKE_INVERTIBLE_NEUTRAL_DIVIDER_MODERATE,e=>e.$hideBorder&&"none",e=>e.theme.shape.borderRadius,e=>{let{$size:t}=e;return t===tb.small&&"1em"},e=>{let{$ellipsis:t}=e;return t&&"ellipsis"},e=>{let{$ellipsis:t}=e;
1return t&&"nowrap"},e=>{let t=e.$size===tb.large,o=t?e.theme.text.input:e.theme.text.input2,i=t?e.theme.text.inputPlaceholder:e.theme.text.inputPlaceholder2;return(0,b.AH)(["font-family:",";font-size:",";font-weight:",";color:",";&::placeholder{font-weight:",";font-size:",";color:",";}"],o.fontFamily,o.fontSize,o.fontWeight,o.color,i.fontWeight,i.fontSize,i.color)},e=>e.theme.colors.text.disabled,e=>!e.$error&&e.theme.colors.inputBorderDisabled,e=>e.theme.colors.text.disabled,e=>!e.$error&&e.theme.colors.primary.main),tv=b.Ay.span.withConfig({componentId:"sc-355a1afe-5"})(["color:#ff0000;"]),tC={size:tb.large},tI=e=>{let{ariaLabel:t,className:o,disabled:r,error:a,ellipsis:s,flex:d,fullWidth:l,gutterBottom:c,hideBorder:m,hideErrorText:u,id:h,inputRef:p,label:g,labelTextColor:x,labelTip:b,loading:f,mandatory:A,rightGutter:j,size:y=tC.size,...w}=e,[v]=(0,n.useState)(()=>h||"select_".concat((0,F.N8)(12))),C=(0,n.useRef)(null);return C=p||C,(0,i.jsxs)(tf,{className:o,flex:d,fullWidth:l,gutterBottom:c,rightGutter:j,children:[(0,i.jsxs)("div",{children:[g&&(0,i.jsxs)(Z.A,{disabled:r,gutterBottom:!0,htmlFor:v,labelTip:b,size:y,textColor:x,children:[g,A&&(0,i.jsx)(tv,{children:" *"})]}),(0,i.jsxs)(tA,{children:[(0,i.jsx)(tw,{"aria-label":t,disabled:r,$error:!!a,$ellipsis:s,$flex:d,$hideBorder:m,id:v,ref:C,$size:y,...w}),f?(0,i.jsx)(ty,{$isSelectDisabled:r,size:24}):(0,i.jsx)(tj,{$size:y})]})]}),a&&!u&&(0,i.jsx)(q.A,{children:a})]})};tI.defaultProps=tC;let tE=n.memo(tI),tT=ei(e=>{let{field:t,onChange:o,readOnly:n,value:r}=e,{id:s,options:d}=t,l=(0,a.Bd)("broadcasts.onAir.registration.select.placeholder");return n?(0,i.jsx)(en,{value:r}):(0,i.jsxs)(tE,{id:s,fullWidth:!0,size:"medium",value:r||"",onChange:e=>{o(null==e?void 0:e.target.value)},children:[(0,i.jsx)("option",{value:"",disabled:!0,children:l}),d.map((e,t)=>(0,i.jsx)("option",{value:e,children:e},"".concat(e,"-").concat(t)))]})}),tS=b.Ay.div.withConfig({componentId:"sc-837d2847-0"})(["display:flex;gap:8px;"]),tR=b.Ay.div.withConfig({componentId:"sc-837d2847-1"})(["max-width:80px;"]),tk=(0,b.Ay)("div").withConfig({componentId:"sc-837d2847-2"})(["flex:1;border:1px solid ",";border-radius:4px;display:flex;padding-left:8px;&:focus-within{border-color:",";}"],e=>{let{theme:t,error:o}=e;return o?t.colors.error.main:t.colors.inputBorder},e=>{let{theme:t,error:o}=e;return!o&&t.colors.primary.main}),tL=b.Ay.div.withConfig({componentId:"sc-837d2847-3"})(["font-size:14px;color:",";margin:auto;display:flex;"],e=>{let{theme:t}=e;return t.text.input2}),tD=b.Ay.div.withConfig({componentId:"sc-837d2847-4"})(["flex:1;&&&{input{height:41px;}}"]);var tM=o(44005);let tN=(e,t)=>"".concat(t," ").concat(e),tO=Object.keys(th).reduce((e,t)=>{let o=th[t];return e[o.phoneCode]=e[o.phoneCode]||[],e[o.phoneCode].push(t),e},{}),t_=ei(e=>{let{error:t,onBlur:o,onChange:r,readOnly:a,value:s}=e,{countries:d,selectedCountry:l,setCountry:c,setNumber:m,phoneCode:u,phoneNumber:h}=(e=>{var t;let{onChange:o,value:i}=e,{countries:r}=tu(),{sessionCountryCode:a}=(0,tM.wV)(),s=(0,n.useMemo)(()=>Object.entries(r).map(e=>{let[t,{name:o,aliases:i}]=e;return{value:t,label:"".concat(th[t].emoji," ").concat(o," ").concat(th[t].phoneCode),icon:th[t].emoji,searchLabel:"".concat(o," ").concat(i.join(" ")," ").concat(th[t].phoneCode)}}),[r]),d=(0,n.useMemo)(()=>Object.fromEntries(s.map(e=>[e.value,e])),[s]),l=(null==a?void 0:a.toUpperCase())||(null==(t=s[0])?void 0:t.value)||"",c=(0,n.useRef)(l),{countryCode:m,phoneCode:u,phoneNumber:h}=((e,t,o)=>{var i;let[n="",r=""]=W(e),a=o;if(n&&tO[n]){let e=tO[n];a=(null==e?void 0:e.find(e=>e===t))||(null==e?void 0:e[0])}return{countryCode:a,phoneCode:(null==(i=th[a])?void 0:i.phoneCode)||"",phoneNumber:r}})(i,c.current,l);return{countries:s,selectedCountry:(0,n.useMemo)(()=>d[m],[m,d]),setCountry:e=>{let t=th[e.value];c.current=e.value,o(tN(h,t.phoneCode))},setNumber:e=>o(tN(e,u)),phoneCode:u,phoneNumber:h}})({onChange:r,value:s});return a?(0,i.jsx)(en,{value:s&&(0,i.jsx)(Y.A,{href:"tel:".concat(s),children:s})}):(0,i.jsxs)(tS,{children:[(0,i.jsx)(tR,{children:(0,i.jsx)(td,{options:d,onOptionSelect:e=>{c(e)},selectedLabelModifier:e=>"".concat(e.icon),placeholder:u,dropdownMinWidth:250,selectedOption:l})}),(0,i.jsxs)(tk,{error:!!t,children:[(0,i.jsx)(tL,{children:u}),(0,i.jsx)(tD,{children:(0,i.jsx)(E.A,{size:"medium",fullWidth:!0,onChange:e=>{m(e.target.value)},onBlur:o,onKeyPress:e=>{Number.isNaN(parseFloat(e.key))&&e.preventDefault()},value:h,hideBorder:!0,placeholder:"555 555-1234"})})]})]})}),tP={[s.FIRST_NAME]:e=>(0,i.jsx)(ea,{...e,inputProps:{name:"firstName"}}),[s.LAST_NAME]:e=>(0,i.jsx)(ea,{...e,inputProps:{name:"lastName"}}),[s.EMAIL]:e=>e.readOnly?(0,i.jsx)(es,{...e}):(0,i.jsx)(ea,{...e,inputProps:{type:"email",name:"email"}}),[s.PHONE]:t_,[s.COUNTRY]:tg,[s.TEXT]:ea,[s.CHECKBOX]:e=>{let{field:{id:t,isRequired:o},onChange:n,label:r,readOnly:s,value:d}=e;return s?(0,i.jsx)(eo,{...e,children:(0,i.jsxs)(ez,{children:[d?(0,i.jsx)(y.QWn,{}):(0,i.jsx)(y._OJ,{}),(0,i.jsxs)(R.Ay,{variant:"body2",children:["(",d?(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.configuration.registration.field.type.boolean.checked.label"}):(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.configuration.registration.field.type.boolean.not.checked.label"}),")"]})]})}):(0,i.jsx)(eo,{...e,label:null,disableInteraction:!1,children:(0,i.jsxs)(eU,{children:[(0,i.jsx)(eH,{disableInteraction:e.disableInteraction,checked:!!d,onChange:()=>{n(!d)},id:t,size:"medium"}),(0,i.jsxs)(eV,{htmlFor:e.disableInteraction?void 0:t,size:"medium",children:[r,!!o&&(0,i.jsx)(et,{})]})]})})},[s.SELECT]:tT}
1,tB=e=>{let{field:t,...o}=e,n=c(t),r=tP[t.type];return(0,i.jsx)(r,{...o,field:t,label:n})};var tz=o(35957);let tH=b.Ay.div.withConfig({componentId:"sc-73801f15-0"})(["display:flex;align-items:center;justify-content:center;gap:6px;"]),tU=(0,b.AH)(["width:4px;height:4px;background:",";"],tz.A.colors.grey[200]),tV=(0,b.AH)(["width:6px;height:6px;background:",";"],tz.A.colors.grey[800]),tF=(0,b.AH)(["background:",";"],tz.A.colors.red.main),tW=(0,b.Ay)("div").withConfig({componentId:"sc-73801f15-1"})([""," "," transition:all 300ms ease-in-out;border-radius:50%;"],e=>e.active?tV:tU,e=>e.hasError&&tF),tK=e=>{let{className:t,pageCount:o,pageErrors:n,activePage:r}=e;return(0,i.jsx)(tH,{className:t,children:[...Array(o).keys()].map(e=>(0,i.jsx)(tW,{active:r===e,hasError:null==n?void 0:n.includes(e)},e))})},tG=b.Ay.form.withConfig({componentId:"sc-cfc8b03b-0"})(["display:flex;flex-direction:column;gap:24px;"]),tY=b.Ay.div.withConfig({componentId:"sc-cfc8b03b-1"})(["display:flex;gap:24px;@media ","{flex-direction:column;}"],U.HP.belowSmall),tq=b.Ay.div.withConfig({componentId:"sc-cfc8b03b-2"})(["display:flex;width:100%;gap:8px;> *{flex:1;}"]),tZ=(0,b.Ay)(tK).withConfig({componentId:"sc-cfc8b03b-3"})(["margin-top:-8px;margin-bottom:16px;"]),tJ=(e,t,o)=>((e,t)=>{for(let o=0;o<t.length;o+=1){let{Message:n,validate:r}=t[o];if(!r(e))return(0,i.jsx)(n,{value:e})}return!1})(t,((e,t)=>{let o=G[e.type]||[];return e.isRequired&&(o=["checkbox"===e.type?{name:"required",Message:()=>(0,i.jsx)(a.wD,{tid:"common.error.requiredField"}),validate:e=>!0===e}:{name:"required",Message:()=>(0,i.jsx)(a.wD,{tid:"common.error.requiredField"}),validate:e=>!(e=>null==e||"string"==typeof e&&""===e.trim())(e)},...o]),t&&(o=o.filter(e=>e.event===t)),o})(e,o)),tQ=()=>(0,i.jsx)(a.wD,{tid:"common.next"}),t$=()=>(0,i.jsx)(a.wD,{tid:"common.go.back"}),tX=()=>(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.button.register"}),t0=e=>{let{disableInteraction:t,errors:o,items:n,formValue:r,handleBlur:a,handleChange:s,onSubmit:d,footer:l,readOnly:c}=e,m=e=>{let n=r[e.id],d=o[e.id];return(0,i.jsx)(tB,{disableInteraction:t,error:d,field:e,onBlur:a(e.id),onChange:s(e.id),readOnly:c,value:n},e.id)};return(0,i.jsxs)(tG,{onSubmit:e=>{e.preventDefault(),d()},children:[n.map((e,t)=>Array.isArray(e)?(0,i.jsx)(tY,{children:e.map(m)},t):m(e)),l]})},t1=e=>{let{fields:t,readOnly:o,sessionCountryCode:i}=e;return o?{}:Object.fromEntries(t.map(e=>
1"checkbox"===e.type?[e.id,!1]:"country"===e.type?[e.id,null!=i?i:"US"]:void 0).filter(e=>Array.isArray(e)))},t2=e=>{let t=[],o={};return e.forEach(e=>{e.forEach(e=>{(Array.isArray(e)?e:[e]).forEach(e=>{t.push(e),o[e.id]=e})})}),{fields:t,fieldLookup:o}},t5=e=>{let{customFooter:t,disableInteraction:o,disableValidation:r,error:a,errors:s={},isLoading:d,page:l=0,pages:c,onChange:m,onFieldChange:u,onPageChange:h,onSubmit:p,readOnly:g=!1,value:x,submitLabel:b}=e,{sessionCountryCode:f}=(0,tM.wV)(),{fields:A,fieldLookup:j}=(0,n.useMemo)(()=>t2(c),[c]),[y,w]=(0,n.useState)(x||t1({fields:A,readOnly:g,sessionCountryCode:f})),[v,C]=(0,n.useState)({}),[E,T]=(0,n.useState)({}),S=0===l,R=l===c.length-1,k=c.length>1,L=(0,V.ZC)(j);(0,n.useEffect)(()=>{if(!L)return;let e=A.filter(e=>!L[e.id]),t=Object.keys(L).filter(e=>!j[e]);(e.length||t.length)&&w(o=>({...(0,F.cJ)(o,t),...t1({fields:e,readOnly:g,sessionCountryCode:f})}))},[A]),(0,n.useEffect)(()=>{x&&w(x)},[x]),(0,n.useEffect)(()=>{null==m||m(y)},[y]);let D=(e,t,o)=>{let i=tJ(e,t,o);C(t=>({...t,[e.id]:i}))};return(0,i.jsx)(t0,{disableInteraction:o,errors:{...v,...s},items:c[l],formValue:y,handleChange:e=>t=>{null==u||u(e,t),w(o=>({...o,[e]:t}));let o=j[e],i=E[o.id]?void 0:"change";D(o,t,i)},handleBlur:e=>()=>{let t=j[e];T(e=>({...e,[t.id]:!0})),D(t,y[e])},onSubmit:()=>{let{fields:e}=t2([c[l]]);if(!(r||!e.some(e=>tJ(e,y[e.id])))&&!g){C(t=>({...t,...((e,t)=>{let o=e.map(e=>[e.id,tJ(e,t[e.id])]).filter(e=>{let[t,o]=e;return!!o});return o.length?Object.fromEntries(o):void 0})(e,y)}
1)),T(t=>({...t,...Object.fromEntries(e.map(e=>[e.id,!0]))}));return}R?null==p||p(y):null==h||h(l+1)},footer:t||(0,i.jsxs)("div",{children:[k&&(0,i.jsx)(tZ,{pageCount:c.length,activePage:l}),a,(0,i.jsxs)(tq,{children:[!S&&(0,i.jsx)(I.A,{disabled:d,onClick:()=>{null==h||h(l-1)},type:"button",variant:"outlined",children:(0,i.jsx)(t$,{})}),R&&!g&&(0,i.jsx)(I.A,{disabled:d,type:"submit",children:b||(0,i.jsx)(tX,{})}),!R&&(0,i.jsx)(I.A,{disabled:d,type:"submit",children:(0,i.jsx)(tQ,{})})]})]}),readOnly:g})};var t4=o(79832);let t8=e=>{let{error:t}=e;return t?(0,i.jsx)(t4.A,{variant:"error",gutterBottom:!0,size:"small",children:(0,i.jsx)(a.wD,{tid:(e=>(0,C.oc)(e)?"common.email.error.invalid":(0,C.ns)(e)?"broadcasts.onAir.registration.error.limitReached":"broadcasts.onAir.registration.login.error.unknown")(t)})}):null},t6=e=>{var t;let{email:o="",onBack:s,onSuccess:d}=e,[l,c]=(0,n.useState)(0),{isPreview:m}=(0,r.TW)(),{error:u,isLoading:h,mutate:p}=(0,C.yh)(),g=(0,a.Bd)("common.go.back"),x=null,b={};(null==u||null==(t=u.body)?void 0:t.message)==="registration_not_found"?b.email=(0,i.jsx)(R.Ay,{variant:"body2",color:"error",component:"span",children:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.alreadyRegistered.error",components:{link:(0,i.jsx)(w.A,{onClick:s})}})}):x=u;let f=(0,n.useMemo)(()=>({email:o}),[o]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(A.A,{"aria-label":g,onClick:s,size:"medium",type:"button",variant:"text",children:[(0,i.jsx)(j.A,{side:"left",size:24,children:(0,i.jsx)(y.JGc,{})}),g]}),(0,i.jsx)(H,{}),(0,i.jsx)(t8,{error:x}),(0,i.jsx)(t5,{disableInteraction:m,disableValidation:m,errors:b,isLoading:h,onSubmit:e=>{m||p(e,{onSuccess:d})},page:l,onPageChange:c,pages:[[{id:"email",type:"email",isRequired:!0}]],submitLabel:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.button.join"}),value:f})]})},t3=(0,b.Ay)(R.Ay).withConfig({componentId:"sc-bb60de78-0"})(["display:flex;justify-content:center;align-items:center;padding-top:",";gap:4px;"],e=>{let{isEmbedded:t}=e;return t?"8px":"16px"}),t7=e=>{let{className:t,onClick:o}=e,{isEmbedded:n}=(0,r.TW)();return(0,i.jsxs)(t3,{className:t,isEmbedded:n,variant:"body2",children:[(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.link.alreadyRegistered"}),(0,i.jsx)(w.A,{onClick:o,color:"default",type:"button",children:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.link.alreadyRegistered.joinHere"})})]})},t9=b.Ay.div.withConfig({componentId:"sc-729d784b-0"})(["display:flex;width:100%;gap:8px;> *{flex:1;}"]),oe=(0,b.Ay)(tK).withConfig({componentId:"sc-729d784b-1"})(["margin-top:-8px;margin-bottom:16px;"]),ot=e=>{let{children:t,error:o,pageCount:n,pageErrors:r,page:a}=e;return(0,i.jsxs)("div",{children:[n>1&&(0,i.jsx)(oe,{pageCount:n,activePage:a,pageErrors:r}),o,(0,i.jsx)(t9,{children:t})]})},oo=(e,t)=>{if(Array.isArray(e)){for(let o of e)if(t(o))return o}else if(t(e))return e;return!1},oi=e=>{let{error:t,pages:o}=e,r=o.length>1,{field:s,pageIndex:d}=(0,n.useMemo)(()=>((e,t)=>{for(let[o,i]of e.entries())for(let e of i){let i=oo(e,t);if(i)return{pageIndex:o,field:i}}return!1})(o,e=>"email"===e.type)||{field:void 0,pageIndex:void 0},[o]);return(0,C.oc)(t)&&s?{error:r?t:null,field:s,formErrors:{[s.id]:(0,i.jsx)(a.wD,{tid:"common.email.error.invalid"})},pageErrors:void 0===d?[]:[d]}:{error:t,field:s,pageErrors:[]}},on=[[{id:"email",type:"email",isRequired:!0}]],or=e=>{let{onChange:t,onSuccess:o,onAlreadyRegistered:n,pageCount:s,privacy:d}=e,{isPreview:l}=(0,r.TW)(),{isLoading:c,mutateAsync:m,error:h}=(0,C.qt)(),{error:p,formErrors:g}=oi({pages:on,error:h});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.A,{}),(0,i.jsx)(t5,{customFooter:(0,i.jsx)(ot,{pageCount:s,page:0,error:!!p&&(0,i.jsx)(t8,{error:p}),children:(0,i.jsx)(I.A,{disabled:c,type:"submit",children:d===u.qq.PRIVATE?(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.link.alreadyRegistered.getAccessCode"}):(0,i.jsx)(a.wD,{tid:"common.next"})})}),disableInteraction:l,disableValidation:l,errors:g,isLoading:c,onChange:e=>{t(e)},onSubmit:e=>{l?d!==u.qq.PRIVATE&&o({isAllowedToRegister:!0,isRegistered:!1,requiresEmailVerification:!0}
1):m(e,{onSuccess:o})},pages:on}),d!==u.qq.PRIVATE&&(0,i.jsx)(t7,{onClick:n})]})};var oa=o(661);let os=e=>{let{color:t="default"}=e,{termsOfService:o,privacyNotice:n}=oa.A.orion.legalPages;return(0,i.jsxs)("p",{children:[(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.legal.terms",components:{tosLink:(0,i.jsx)(w.A,{newTab:!0,color:t,to:o.link}),privacyLink:(0,i.jsx)(w.A,{newTab:!0,color:t,to:n.link})}})," ",(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.legal.hostUpdated"})]})},od=(0,b.Ay)(R.Ay).attrs({variant:"body3",component:"footer"}).withConfig({componentId:"sc-d5501142-0"})(["text-align:center;font-size:1.1rem;",""],e=>{let{isEmbedded:t}=e;return t&&(0,b.AH)(["font-size:1.2rem;padding:8px 16px;"])}),ol=e=>{let{showTerms:t=!0}=e,{isEmbedded:o,webinar:{coverImageUrl:n}}=(0,r.TW)(),a=(0,V.Ub)(U.HP.belowSmall),s=o&&!a&&n?"white":"default";return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(od,{isEmbedded:o,children:(0,i.jsx)(od,{color:s,children:t&&(0,i.jsx)(os,{color:s})})})})},oc=()=>(0,i.jsx)(a.wD,{tid:"common.next"}),om=()=>(0,i.jsx)(a.wD,{tid:"common.go.back"}),ou=()=>(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.button.register"}),oh=e=>{let{hasEmailVerification:t,onBack:o,onChange:s,onSuccess:d,onAlreadyRegistered:l,pages:c,preSubmit:m}=e,{isPreview:u,isEmbedded:h}=(0,r.TW)(),{error:p,isLoading:g,mutate:b,reset:f}=(0,C.CR)(),[w,E]=(0,n.useState)(0),T=0===w,S=w===c.length-1,R=T&&!t,k=+!!t,L=(0,a.Bd)("common.go.back"),{error:D,formErrors:M,pageErrors:N}=oi({pages:c,error:p});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(x.Ay,{children:[!h&&t&&(0,i.jsxs)(A.A,{"aria-label":L,onClick:o,size:"medium",type:"button",variant:"text",children:[(0,i.jsx)(j.A,{side:"left",size:24,children:(0,i.jsx)(y.JGc,{})}),L]}),(0,i.jsx)(v.A,{isFirstPage:T}),(0,i.jsx)(t5,{customFooter:(0,i.jsxs)(ot,{pageCount:c.length+k,page:w+k,pageErrors:N.map(e=>e+k),error:!!D&&(0,i.jsx)(t8,{error:D}),children:[!T&&(0,i.jsx)(I.A,{disabled:g,onClick:()=>{E(w-1)},type:"button",variant:"outlined",children:(0,i.jsx)(om,{})}),h&&T&&t&&(0,i.jsx)(I.A,{disabled:g,onClick:o,type:"button",variant:"outlined",children:(0,i.jsx)(om,{})}),S&&(0,i.jsx)(I.A,{disabled:g,type:"submit",children:(0,i.jsx)(ou,{})}),!S&&(0,i.jsx)(I.A,{disabled:g,type:"submit",children:(0,i.jsx)(oc,{})})]}),disableInteraction:u,disableValidation:u,errors:M,isLoading:g,onChange:s,onFieldChange:e=>{(null==M?void 0:M[e])&&f()},onPageChange:E,onSubmit:e=>{u||b(m(e),{onSuccess:d})},page:w,pages:c}),R&&(0,i.jsx)(t7,{onClick:l})]}),(0,i.jsx)(ol,{showTerms:S})]})},op=b.Ay.div.withConfig({componentId:"sc-14d13577-0"})(["display:flex;align-items:center;flex-direction:column;background:",";border:1px solid ",";border-radius:",";padding:24px;"],e=>{let{theme:t}=e;return t.colors.grey[100]},e=>{let{theme:t}=e;return t.colors.grey[200]},e=>{let{theme:t}=e;return t.shape.borderRadius}),og=b.Ay.div.withConfig({componentId:"sc-14d13577-1"})(["display:flex;align-items:center;justify-content:center;background:",";padding:12px;border-radius:50%;"],e=>{let{theme:t}=e;return t.colors.grey[120]}),ox=b.Ay.div.withConfig({componentId:"sc-14d13577-2"})(["padding:16px 0;display:flex;align-items:center;flex-direction:column;gap:8px;text-align:center;"]),ob=e=>{let{email:t,onBack:o}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.A,{}),(0,i.jsxs)(op,{children:[(0,i.jsx)(og,{children:(0,i.jsx)(y.Qhf,{})}),(0,i.jsxs)(ox,{children:[(0,i.jsx)(R.Ay,{variant:"h4",children:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.restricted.title"})}),(0,i.jsx)(R.Ay,{variant:"body2",children:(0,i.jsx)(a.wD,{tid:"broadcasts.onAir.registration.restricted.subtitle",values:{email:t}})})]}),(0,i.jsx)(R.Ay,{variant:"body2",children:(0,i.jsx)(w.A,{underline:!1,onClick:o,children:(0,i.jsx)(a.wD,{tid:"common.go.back"})})})]})]})},of={alreadyRegistered:"alreadyRegistered",emailAccess:"emailAccess",emailVerificationCode:"emailVerificationCode",registration:"registration",restrictedAccess:"restrictedAccess"},oA=e=>{let{isEmbedded:t,onSuccess:o,privacy:r,registrationFieldDefinition:a,requiresEmailVerification:d}=e,{email:l,preSubmit:c,registrationFormPages:m,requiresEmailVerification:p,setEmail:b}=(e=>{let{requiresEmailVerification:t,isEmbedded:o,privacy:i,registrationFieldDefinition:r}=e,a=null!=t?t:(e=>
1e===u.qq.DOMAINS||e===u.qq.PRIVATE)(i),[d,l]=(0,n.useState)(""),{fields:c,emailField:m}=(0,n.useMemo)(()=>{let e=r.fields.data.find(e=>"email"===e.type),{data:t}=r.fields;return{emailField:e,fields:a?t.filter(t=>t.id!==(null==e?void 0:e.id)):t}},[r,a]);return{email:d,registrationFormPages:(e=>{let{fields:t,fieldsPerPage:o}=e;return(0,n.useMemo)(()=>{var e;if(!Array.isArray(t))return[];let i=t,n=t.findIndex(e=>e.type===s.FIRST_NAME);if(n>-1&&(null==(e=t[n+1])?void 0:e.type)===s.LAST_NAME&&window.innerHeight>u.ZM&&(i=[...t.slice(0,n),[t[n],t[n+1]],...t.slice(n+2)]),o&&o>0){let e=[];for(let t=0;t<i.length;t+=o){let n=i.slice(t,t+o);e.push(n)}return e}return[i]},[t,o])})({fields:c,fieldsPerPage:(0,n.useMemo)(()=>{if(o)return Math.max(Math.floor((window.innerHeight-250)/100),1)},[o])}),requiresEmailVerification:a,setEmail:l,preSubmit:e=>((e,t)=>{let{id:o,fields:{data:i}}=e,n=g(i,t);return o===h?n:{...n,fields:{definitionId:o,values:t}}})(r,a&&m?{...e,[m.id]:d}:e)}})({isEmbedded:t,privacy:r,registrationFieldDefinition:a,requiresEmailVerification:d}),A=r!==u.qq.PRIVATE,j=p?of.emailAccess:of.registration,[y,w]=(0,n.useState)(j),[v,C]=(0,n.useState)(""),[I,E]=(0,n.useState)(!1),T=e=>{if(C(e.id),p)return void w(of.emailVerificationCode);o(e)};return(0,i.jsxs)(i.Fragment,{children:[y===of.alreadyRegistered&&(0,i.jsx)(x.Ay,{children:(0,i.jsx)(t6,{email:l,onBack:()=>{w(j)},onSuccess:e=>{E(!0),T(e)}})}),p&&(0,i.jsx)(f,{hidden:y!==of.emailAccess,children:(0,i.jsx)(x.Ay,{children:(0,i.jsx)(or,{onAlreadyRegistered:()=>{w(of.alreadyRegistered)},onChange:e=>{b(e.email)},onSuccess:e=>{E(e.isRegistered),e.isRegistered?(C(e.id),w(of.emailVerificationCode)):e.isAllowedToRegister?w(of.registration):w(of.restrictedAccess)},pageCount:A?m.length+1:1,privacy:r})})}),y===of.restrictedAccess&&(0,i.jsx)(x.Ay,{children:(0,i.jsx)(ob,{email:l,onBack:()=>{w(of.emailAccess)}})}),(0,i.jsx)(f,{hidden:y!==of.registration,children:(0,i.jsx)(oh,{hasEmailVerification:p,onAlreadyRegistered:()=>{w(of.alreadyRegistered)},onBack:()=>{w(j)},onChange:e=>{let t=g(a.fields.data,e);void 0!==t.email&&b(t.email)},onSuccess:e=>{E(!1),T(e)},preSubmit:c,pages:m})}),y===of.emailVerificationCode&&(0,i.jsx)(z,{isAlreadyRegistered:I,registrationId:v,email:l,onBack:()=>{w(of.emailAccess)},onLogin:()=>{w(j)},onSuccess:o,privacy:r})]})},oj=e=>{let{isEmbedded:t,webinar:{privacy:o,registrationFieldDefinitions:i,requiresEmailVerification:a}}=(0,r.TW)(),s=(null==i?void 0:i[0])||p;return(0,n.createElement)(oA,{...e,isEmbedded:t,key:o,privacy:o,registrationFieldDefinition:s,requiresEmailVerification:a})}},70892:(e,t,o)=>{"use strict";o.d(t,{A:()=>l,e:()=>d});var i=o(94458),n=o(68658),r=o(65049),a=o(89495),s=o(50388);let d=()=>(0,a.DP)(),l=e=>{let t=(0,a.DP)(),{isEmbedded:o,webinarCustomization:d,children:l}=e,c=(0,n.useMemo)(()=>(e=>{let t=(null==e?void 0:e.primaryColor)||r.DEFAULT_PRIMARY_COLOR,o=!!e;return{...(0,r.getCustomizationColors)({color:t}),logoUrl:o?null==e?void 0:e.logoUrl:r.DEFAULT_LOGO_URL,isCustomThemeApplied:o}})(d),[d]),m={...t,isEmbedded:o,onAirTheme:c};return(0,i.jsx)(s.NP,{themeOverride:m,children:(0,i.jsx)(i.Fragment,{children:l})})}},71122:(e,t,o)=>{"use strict";o.d(t,{A:()=>p});var i=o(94458),n=o(68658),r=o(89495);let a={CIRCLE:"circle",SQUARE:"square"},s={[a.CIRCLE]:"50%",[a.SQUARE]:"5%"},d=(0,r.Ay)("div").withConfig({componentId:"sc-e8b3be55-0"})(["width:","px;height:","px;position:relative;border-radius:",";color:",";background-color:",";font-weight:",";font-size:20px;",""],e=>e.size,e=>e.size,e=>s[e.shape]||"50%",e=>e.theme.colors.text.main,e=>!e.hasImage&&e.theme.colors.grey[200],e=>e.theme.text.fontWeightSemiBold,e=>{let{bgColor:t}=e;return t&&(0,r.AH)(["background-color:",";"],t)}),l=(0,r.Ay)("div").withConfig({componentId:"sc-e8b3be55-1"})(["width:100%;height:100%;border-radius:",";overflow:hidden;text-align:center;display:flex;justify-content:center;align-items:center;"],e=>s[e.shape]||"50%"),c=(0,r.Ay)("img").withConfig({componentId:"sc-e8b3be55-2"})(["width:100%;height:100%;position:absolute;top:0;left:0;object-fit:",";padding:",";border-radius:",";filter:",";"],e=>e.imageScaleDown?"scale-down":"cover",e=>e.imageScaleDown&&e.imagePadding,e=>e.disableImageShape?"0%":s[e.shape]||"50%",e=>e.brightness&&"brightness(".concat(e.brightness,")")),m=(0,r.Ay)("div").withConfig({componentId:"sc-e8b3be55-3"})(["width:","px;height:","px;position:relative;border-radius:50%;overflow:hidden;"],e=>{let{size:t}=e;return t},e=>{let{size:t}=e;return t}),u={alt:"avatar",shape:a.CIRCLE,size:42},h=e=>{let{alt:t=u.alt,bgColor:o,brightness:r,children:a,className:s,icon:h,imageScaleDown:p,imageDataTestId:g,onClick:x,shape:b=u.shape,size:f=u.size,src:A,text:j,NextImage:y,imagePadding:w}=e,v=(0,n.useMemo)(()=>A?y?(0,i.jsx)(m,{size:f,children:(0,i.jsx)(y,{src:A,objectFit:"cover",sizes:"".concat(2*f,"px"),layout:"fill"})}):(0,i.jsx)(c,{alt:t,brightness:r,"data-testid":g,disableImageShape:!!w,imagePadding:w?"".concat(w,"px"):"5px",imageScaleDown:p,shape:b,src:A}):h||j,[y,t,r,h,g,p,b,f,A,j,w]);return(0,i.jsxs)(d,{bgColor:o,className:s,hasImage:!!A,onClick:x,shape:b,size:f,children:[(0,i.jsx)(l,{shape:b,children:v}),a]})};h.propTypes={brightness:(e,t,o)=>(function(e){let{props:t,propName:o,componentName:i,isRequired:n,rangeStart:r,rangeEnd:a}=e;if("number"!=typeof r||"number"!=typeof a||r>=a)return Error("Invalid rangeStart or rangeEnd is passed to ".concat(i," ").concat(o," prop validator"));let s=t&&t[o];return n&&!s&&0!==s?Error("Invalid prop ".concat(o," is supplied to ").concat(i,". ").concat(o," is required")):s&&"number"!=typeof s?Error("Invalid prop ".concat(o," is supplied to ").concat(i,". ").concat(o," should be a number")):s<r||s>a?Error("Invalid prop ".concat(o," is supplied to ").concat(i,". ").concat(o," is not in ").concat(r," to ").concat(a," range")):null})({props:e,propName:t,componentName:o,isRequired:!1,rangeStart:0,rangeEnd:1})},h.defaultProps=u;let p=h},74762:(e,t,o)=>{"use strict";o.d(t,{h:()=>n});let i=["day","month","year","weekday","era","hour","minute","second","timeZoneName","hour12","timeZone","formatMatcher","localeMatcher"],n=(e,t)=>{for(let o=0;o<i.length;o+=1){let n=i[o];if(e[n]!==t[n])return!1}return!0}},77325:(e,t,o)=>{"use strict";o.d(t,{A:()=>b});var i=o(94458);o(68658);var n=o(89495),r=o(64992),a=o(29322),s=o(83106);let d=n.Ay.div.withConfig({componentId:"sc-2388e3c9-0"})(["display:flex;width:100%;padding:12px;border-radius:4px;position:relative;&:hover{background-color:",";}pointer-events:none;"],e=>e.theme.colors.grey[100]),l=(0,n.Ay)(a.A).withConfig({componentId:"sc-2388e3c9-1"})(["margin:12px;pointer-events:none;"]),c=()=>{},m=Date.now(),u=new Date(m-3e5),h=new Date(m-12e4),p=[{pinned:!1,reactions:[],text:"Hello \uD83D\uDC4B",timestamp:u.getTime().toString(),user:{id:"jane",name:"Jane"}},{pinned:!1,reactions:[{type:"+1",count:2,userReacted:!0},{type:"wave",count:1,userReacted:!1}],text:"Hi!",timestamp:h.getTime().toString(),user:{id:"john",name:"John"}}],g=n.Ay.div.withConfig({componentId:"sc-2388e3c9-2"})(["height:100%;width:100%;display:flex;flex-direction:column;"]),x=n.Ay.div.withConfig({componentId:"sc-2388e3c9-3"})(["position:relative;padding:0 8px;flex:1;overflow-x:hidden;overflow-y:auto;"]),b=()=>(0,i.jsxs)(g,{children:[(0,i.jsx)(x,{children:p.map((e,t)=>(0,i.jsx)(d,{children:(0,i.jsx)(s.A,{message:e,onAddReaction:c})},t))}),(0,i.jsx)(l,{onClick:()=>{},size:"medium",variant:"outlined",children:(0,i.jsx)(r.wD,{tid:"broadcasts.onAir.chat.message.modal.button"})})]})},79250:(e,t,o)=>{"use strict";o.d(t,{P:()=>n});var i=o(10461);let n=(0,o(89495).Ay)(i.animated.div).withConfig({componentId:"sc-5aa38f28-0"})(["display:flex;flex-direction:column;min-height:100vh;height:100vh;flex:1;justify-content:space-between;overflow-x:hidden;"])},83106:(e,t,o)=>{"use strict";o.d(t,{A:()=>et});var i=o(94458),n=o(68658),r=o(89495),a=o(95268),s=o.n(a),d=o(22526),l=o(1651),c=o(7912);let m=e=>{let{children:t,contentStyles:o,theme:n,...r}=e,a=(0,l.Ub)(c.HP.landscape);return(0,i.jsx)(d.A,{contentLabel:"modal",shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,style:{content:{padding:0,backgroundColor:n.colors.white,width:"100%",maxWidth:"100%",maxHeight:a?"75%":"65%",top:"auto",left:0,bottom:0,right:0,border:"none",borderRadius:"4px 4px 0 0",...o}
1,overlay:{padding:0,backgroundColor:n.colors.modalBackground,zIndex:n.zIndex.modal}},...r,children:t})};m.propTypes={children:s().any.isRequired,contentStyles:s().shape({}),theme:s().shape({zIndex:s().shape({}).isRequired}).isRequired};let u=(0,r.SL)(m);var h=o(16975),p=o(30186),g=o(65049),x=o(64992);let b=Object.fromEntries(g.REACTIONS.map(e=>[e.id,e])),f=Object.fromEntries([["+1",()=>(0,x.Bd)("broadcasts.onAir.chat.reaction.+1")],["wave",()=>(0,x.Bd)("broadcasts.onAir.chat.reaction.wave")],["raised_hands",()=>(0,x.Bd)("broadcasts.onAir.chat.reaction.raised_hands")],["tada",()=>(0,x.Bd)("broadcasts.onAir.chat.reaction.tada")],["heart_eyes",()=>(0,x.Bd)("broadcasts.onAir.chat.reaction.heart_eyes")],["joy",()=>(0,x.Bd)("broadcasts.onAir.chat.reaction.joy")],["astonished",()=>(0,x.Bd)("broadcasts.onAir.chat.reaction.astonished")],["cry",()=>(0,x.Bd)("broadcasts.onAir.chat.reaction.cry")]]),A=e=>({...b[e],translatedText:f[e]()}),j=e=>{let{className:t,reactionType:o,size:n=24}=e,{symbol:r}=A(o);return(0,i.jsx)("span",{className:t,role:"img",style:{fontSize:n},children:r})},y=(0,r.Ay)("div").withConfig({componentId:"sc-706640db-0"})(["padding:4px;background-color:",";border-radius:",";box-shadow:",";display:grid;grid-template-columns:repeat(4,1fr);place-items:center;"],e=>e.theme.tokens.COLOR_TOKENS_FILL_INVERTIBLE_NEUTRAL_NEUTRAL_SUBTLEST,e=>e.theme.shape.borderRadius,e=>"popup"===e.variant?e.theme.shadows.medium:"none"),w=(0,r.Ay)(p.A).withConfig({componentId:"sc-706640db-1"})(["width:","px;height:","px;"],e=>e.$iconSize,e=>e.$iconSize),v=e=>{let{onClick:t,reactionType:o,size:n,padding:r}=e,{translatedText:a}=A(o);return(0,i.jsx)(w,{"aria-label":a||"",$iconSize:n,onClick:e=>{t(o,e)},children:(0,i.jsx)(j,{reactionType:o,size:n-r})})},C=e=>{let{onClick:t=()=>{},size:o=28,padding:n=8,variant:r="popup"}=e;return(0,i.jsx)(y,{variant:r,children:g.REACTION_TYPES.map(e=>(0,i.jsx)(v,{reactionType:e,onClick:t,size:o,padding:n},e))})};var I=o(98938),E=o(62833),T=o(16750);let S=(0,r.Ay)("div").withConfig({componentId:"sc-af4a0f88-0"})(["margin-right:8px;",""],e=>{let{isEmbedded:t}=e;return t&&(0,r.AH)(["height:24px;display:flex;align-items:center;",""],E.Nz)}),R=e=>{let{user:t,size:o,textSize:n}=e,{isEmbedded:r}=(0,T.TW)(),a=o||r?I.SK.small:I.SK.medium;return(0,i.jsx)(S,{isEmbedded:r,children:(0,i.jsx)(I.Ay,{id:null==t?void 0:t.id,text:(null==t?void 0:t.name)||"",size:a,textSize:n})})};var k=o(23988),L=o(61141);let D=e=>{let{fill:t,size:o=24,...n}=e,a=(0,r.DP)();return(0,i.jsxs)("svg",{focusable:"false","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:t||a.colors.icon,...(0,L.O4)(n),children:[(0,i.jsx)("rect",{fill:"none",height:"24",width:"24"}),(0,i.jsx)("path",{d:"M7,9.5C7,8.67,7.67,8,8.5,8S10,8.67,10,9.5c0,0.83-0.67,1.5-1.5,1.5S7,10.33,7,9.5z M12,17.5c2.33,0,4.31-1.46,5.11-3.5 H6.89C7.69,16.04,9.67,17.5,12,17.5z M15.5,11c0.83,0,1.5-0.67,1.5-1.5C17,8.67,16.33,8,15.5,8S14,8.67,14,9.5 C14,10.33,14.67,11,15.5,11z M22,1h-2v2h-2v2h2v2h2V5h2V3h-2V1z M20,12c0,4.42-3.58,8-8,8s-8-3.58-8-8c0-4.42,3.58-8,8-8 c1.46,0,2.82,0.4,4,1.08V2.84C14.77,2.3,13.42,2,11.99,2C6.47,2,2,6.48,2,12c0,5.52,4.47,10,9.99,10C17.52,22,22,17.52,22,12 c0-1.05-0.17-2.05-0.47-3h-2.13C19.78,9.93,20,10.94,20,12z"})]})};var M=o(44918),N=o(51940);let O=r.Ay.div.withConfig({componentId:"sc-fd131a1a-0"})(["position:absolute;top:4px;right:4px;background-color:#fff;border-radius:",";border:1px solid ",";"],e=>e.theme.shape.borderRadius,e=>e.theme.colors.line),_=r.Ay.div.withConfig({componentId:"sc-e7313462-0"})(["display:flex;align-items:center;gap:8px;padding-top:8px;flex-wrap:wrap;"]),P=(0,r.Ay)(j).withConfig({componentId:"sc-e7313462-1"})(["padding:","px;"],2),B=(0,r.Ay)("button").withConfig({componentId:"sc-e7313462-2"})(["display:flex;align-items:center;justify-content:center;gap:4px;padding:",";width:",";height:32px;font-size:",";border-radius:500px;border:none;cursor:pointer;line-height:14px;&:focus{box-shadow:0 0 0 1px #c0d2fb;}"," ",""],e=>e.round?"0":"0 8px",e=>e.round?"32px":"",e=>e.theme.text.body2.fontSize,e=>{let{isActive:t,theme:o}=e;return t&&"\n		background-color: ".concat(o.onAirTheme.button.backgroundColor,";\n		color: ").concat(o.onAirTheme.button.textColor,";\n		border: 1px solid ").concat(o.onAirTheme.button.borderColor,";\n\n		").concat(P," {\n			text-shadow: 0 -1px 4px ").concat(o.onAirTheme.button.backgroundColor,", 0 1px 2px rgb(0 0 0 / 20%);\n		}\n\n		&:hover {\n			background-color: ").concat(o.onAirTheme.button.hoverColor,";\n\n			").concat(P," {\n				text-shadow: 0 -1px 4px ").concat(o.onAirTheme.button.hoverColor,", 0 1px 2px rgb(0 0 0 / 20%);\n			}\n		}\n	")},e=>{let{isActive:t,theme:o}=e;return!t&&"\n		background-color: ".concat(o.colors.grey[120],";\n		color: ").concat(o.colors.text.dark,";\n		border: 1px solid ").concat(o.colors.grey[120],";\n\n		&:hover{\n			background-color: ").concat(o.colors.grey[200],";\n		}\n	")}),z=e=>{let{count:t,isActive:o,onClick:n,reactionType:r}=e,{translatedText:a}=A(r);return t&&a?(0,i.jsx)(M.A,{text:a,textAlign:"center",offset:[0,2],hasArrow:!1,children:(0,i.jsxs)(B,{"aria-label":a,onClick:e=>{e.stopPropagation(),n(e)},onTouchStart:e=>{e.stopPropagation()},isActive:o,children:[(0,i.jsx)(P,{reactionType:r,size:14}),t]})}):null},H=e=>{let{showAddReactionPopup:t,onClick:o,handleReaction:r,message:a}=e,s=(0,x.Bd)("broadcasts.onAir.chat.reaction.add.tooltip"),[d,l]=(0,n.use
1State)(!1),[c,m]=(0,n.useState)(!1),u=(0,n.useRef)(null);return t?(0,i.jsx)("div",{ref:u,children:(0,i.jsx)(N.A,{hasArrow:!1,onVisibleWouldChange:m,overlay:(0,i.jsx)(C,{onClick:(e,t)=>{let o=a.reactions.find(t=>t.type===e),i=!!o&&o.userReacted;r({timestamp:a.timestamp,userId:a.user.id},e,i,t),m(!1)}}),trigger:"click",visible:c,renderInEl:u.current,children:(0,i.jsx)(M.A,{hasArrow:!1,offset:[0,2],text:s,textAlign:"center",visible:d&&!c,onVisibleChange:l,children:(0,i.jsx)(B,{"data-testid":"add-reaction-item","aria-label":s,round:!0,onClick:o,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:(0,i.jsx)(D,{size:16})})})})}):(0,i.jsx)(B,{"data-testid":"add-reaction-item","aria-label":s,round:!0,onClick:o,onTouchStart:e=>{e.stopPropagation()},children:(0,i.jsx)(D,{size:16})})},U=e=>{let{message:t,showAddReactionPopup:o=!0,onShowAddReactionPopup:n=()=>{},onAddReaction:r}=e;return(0,i.jsxs)(_,{children:[t.reactions.map(e=>{let{count:o,type:n,userReacted:a}=e;return(0,i.jsx)(z,{count:o,isActive:a,onClick:e=>{r({timestamp:t.timestamp,userId:t.user.id},n,a,e)},reactionType:n},n)}),(0,i.jsx)(H,{showAddReactionPopup:o,onClick:n,handleReaction:r,message:t})]})};var V=o(22343),F=o(43583);let W=(0,r.Ay)(V.Ay).withConfig({componentId:"sc-360b5acf-0"})(["font-weight:",";"],e=>e.theme.text.fontWeightSemiBold),K=(0,r.Ay)(V.Ay).withConfig({componentId:"sc-360b5acf-1"})(["white-space:nowrap;"]),G=r.Ay.div.withConfig({componentId:"sc-360b5acf-2"})(["margin-bottom:4px;overflow-wrap:anywhere;> span:not(:last-child){margin-right:8px;}"]),Y=e=>{var t;let{message:o}=e;return(0,i.jsxs)(G,{children:[(0,i.jsx)(W,{variant:"body2",component:"span",children:null==o||null==(t=o.user)?void 0:t.name}),(0,i.jsx)(K,{color:"light",variant:"body2",component:"span",children:(0,i.jsx)(F.A,{date:new Date(parseInt(o.timestamp,10)),hour:"numeric",minute:"2-digit"})})]})},q=e=>e.reactions&&e.reactions.length>0,Z=(0,r.Ay)(e=>{let{className:t,message:o,isVisible:r,setIsVisible:a,onAddReaction:s}
1=e,[d,l]=(0,n.useState)(!1),c=(0,n.useRef)(null),m=(0,x.Bd)("broadcasts.onAir.chat.reaction.add.tooltip");return(0,i.jsx)(O,{ref:c,className:t,children:(0,i.jsx)(N.A,{visible:r,onVisibleWouldChange:a,trigger:"click",overlay:(0,i.jsx)(C,{onClick:(e,t)=>{let i=o.reactions.find(t=>t.type===e),n=!!i&&i.userReacted;s({timestamp:o.timestamp,userId:o.user.id},e,n,t),a(!1)}}),hasArrow:!1,placement:"top-end",renderInEl:c.current,children:(0,i.jsx)(M.A,{hasArrow:!1,offset:[0,4],onVisibleChange:l,text:m,textAlign:"center",visible:d&&!r,children:(0,i.jsx)(p.A,{"data-testid":"add-reaction-option",size:"small-plus",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:(0,i.jsx)(D,{size:20})})})})})}).withConfig({componentId:"sc-ed00bb86-0"})([""]),J=r.Ay.div.withConfig({componentId:"sc-ed00bb86-1"})(["display:flex;width:100%;padding:12px;border-radius:4px;position:relative;","{display:none;}&:hover,&:focus,&:focus-within{background-color:",";","{display:block;}}"],Z,e=>e.theme.colors.grey[100],Z),Q=r.Ay.div.withConfig({componentId:"sc-ed00bb8
16-2"})(["display:flex;flex-direction:column;flex:1;"]),$=r.Ay.div.withConfig({componentId:"sc-ed00bb86-3"})(["padding:16px 0;"]),X=e=>{let{message:t,onAddReaction:o}=e,[r,a]=(0,n.useState)(!1),s=()=>a(!0),d=()=>a(!1),c=(0,l.HZ)({onLongPress:s});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(J,{...c,"data-testid":"chat-message",children:[(0,i.jsx)(R,{user:t.user}),(0,i.jsxs)(Q,{children:[(0,i.jsx)(Y,{message:t}),(0,i.jsx)(k.A,{message:t}),q(t)&&(0,i.jsx)(U,{message:t,onAddReaction:o,onShowAddReactionPopup:s,showAddReactionPopup:!1})]})]}),(0,i.jsx)(u,{isOpen:r,onRequestClose:d,children:(0,i.jsx)($,{children:(0,i.jsx)(C,{onClick:(e,i)=>{let n=t.reactions.find(t=>t.type===e),r=!!n&&n.userReacted;o({timestamp:t.timestamp,userId:t.user.id},e,r,i),d()},size:60,padding:24,variant:"none"})})})]})},ee=e=>{let{message:t,onAddReaction:o}=e,[r,a]=(0,n.useState)(!1);return(0,i.jsxs)(J,{"data-testid":"chat-message",tabIndex:0,children:[(0,i.jsx)(R,{user:t.user}),(0,i.jsxs)(Q,{children:[(0,i.jsx)(Y,{message:t}),(0,i.jsx)(k.A,{message:t}),(0,i.jsx)(Z,{message:t,isVisible:r,setIsVisible:a,onAddReaction:o}),q(t)&&(0,i.jsx)(U,{message:t,onAddReaction:o})]})]})},et=e=>h.ySu?(0,i.jsx)(X,{...e}):(0,i.jsx)(ee,{...e})},84593:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIxNCIgaGVpZ2h0PSI5MDAiIHZpZXdCb3g9IjAgMCAxMjE0IDkwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggb3BhY2l0eT0iMC41IiBkPSJNMTM1OS41NCAtMjQ2LjQ4NEMxMTgwLjY4IC03Mi4yMDQxIDYzNi40ODkgLTI0OC4xNDYgNTEwLjk0NSAtMzcuOTQ2NEMzODUuNDAxIDE3Mi4yNTMgMTA4Mi4wNSAzNzAuMTU5IDEwMjcuODMgNTY3LjM2MUM5NzMuNjAyIDc2NC41NjQgMTA3LjgyOCA3MjMuNzMgMjEuODk3NSA1MjQuODc4Qy02NC4wMzI4IDMyNi4wMjcgMjMxLjc2NiAzOTguNTQyIDMxMi44ODggNTg2LjI2OEMzOTQuMDExIDc3My45OTQgMjY5LjIzIDExMzcuNTMgMC45MDA4MDggOTk1LjA2MiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIzIi8+Cjwvc3ZnPgo="},84995:(e,t,o)=>{"use strict";o.d(t,{A:()=>s,F:()=>a});var i=o(68658),n=o(16750),r=o(21805);let a={Live:"Live",Vod:"Vod",Status:"Status"},s=()=>{let[e,t]=(0,i.useState)(r.w$.UNDEFINED),{isLive:o,webinar:{isVodEnabled:s,isVodMediaDeleted:d,status:l,vodUrl:c,watchUrl:m}}=(0,n.TW)(),u=a.Status;return!c&&(o&&m||!o&&e===r.w$.STARTED)?u=a.Live:s&&c&&!d&&l===r.in.COMPLETE&&(u=a.Vod),{scene:u,playerStatus:e,setPlayerStatus:t}}},85353:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidColor=t.getContrast=t.getLuminance=void 0;let i=o(2923);t.getLuminance=e=>{let[t,o,i]=[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16)].map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*o+.0722*i},t.getContrast=(e,o)=>{let i=(0,t.getLuminance)(e),n=(0,t.getLuminance)(o);return Math.round(1/((Math.min(i,n)+.05)/(Math.max(i,n)+.05))*100)/100},t.isValidColor=e=>{try{return(0,i.parseToRgb)(e),!0}catch(e){return!1}}},86656:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REACTION_TYPES=t.REACTIONS=t.DEFAULT_REGISTRATION_FIELDS=t.DEFAULT_SETTINGS=t.isDefaultLogoUrl=t.DEFAULT_LOGO_URL=t.DEFAULT_LOGO_URL_OLD=t.DEFAULT_PRIMARY_COLOR=void 0,t.DEFAULT_PRIMARY_COLOR="#1565EA",t.DEFAULT_LOGO_URL_OLD="https://streamyard.com/images/v1/onair/streamyard_logo.png",t.DEFAULT_LOGO_URL="https://streamyard.com/images/v2/onair/streamyard_logo.png",t.isDefaultLogoUrl=e=>e===t.DEFAULT_LOGO_URL||e===t.DEFAULT_LOGO_URL_OLD,t.DEFAULT_SETTINGS={isChatEnabled:!0,isEmailEnabled:!0,isRegistrationEnabled:!1,isVodEnabled:!0,isViewerCountEnabled:!0,keepPreviousRegistrants:!0,privacy:"public"},t.DEFAULT_REGISTRATION_FIELDS=[{type:"email",isRequired:!0},{type:"firstName",isRequired:!0},{type:"lastName",isRequired:!0}],t.REACTIONS=[{id:"+1",symbol:"\uD83D\uDC4D"},{id:"wave",symbol:"\uD83D\uDC4B"},{id:"raised_hands",symbol:"\uD83D\uDE4C"},{id:"tada",symbol:"\uD83C\uDF89"},{id:"heart_eyes",symbol:"\uD83D\uDE0D"},{id:"joy",symbol:"\uD83D\uDE02"},{id:"astonished",symbol:"\uD83D\uDE32"},{id:"cry",symbol:"\uD83D\uDE22"}],t.REACTION_TYPES=t.REACTIONS.map(e=>e.id)},88271:(e,t,o)=>{"use strict";o.d(t,{dh:()=>n,Lx:()=>r,DY:()=>a,TK:()=>s,FH:()=>d});var i=o(66147);let n=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{origin:o,...n}=t,{id:r}=e;return(0,i.A)({...n,method:"GET",uri:"".concat(o,"/webinars/").concat(r)})},r=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{origin:o,...n}=t,{webinarId:r,...a}=e;return(0,i.A)({...n,maxAttempts:1,body:a,method:"POST",uri:"".concat(o,"/webinars/").concat(r,"/registrations/verify")})},a=async function(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{origin:n,...r}=o,{webinarId:a,user:s}=e;return(0,i.A)({...r,maxAttempts:3,body:{...s,email:null==(t=s.email)?void 0:t.trim(),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone||""},method:"POST",uri:"".concat(n,"/webinars/").concat(a,"/registrations")})},s=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{origin:o,...n}=t,{webinarId:r,user:a}=e;return(0,i.A)({...n,body:a,method:"PUT",uri:"".concat(o,"/webinars/").concat(r,"/registrations")})},d=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{origin:o,...n}=t,{webinarId:r,email:a}=e;return(0,i.A)({...n,maxAttempts:1,method:"GET",uri:"".concat(o,"/webinars/").concat(r,"/registrations/verify?email=").concat(encodeURIComponent(a))})}},90220:(e,t,o)=>{"use strict";o.d(t,{$v:()=>a,Ay:()=>d,lr:()=>s});var i=o(94458);o(68658);var n=o(89495),r=o(7912);let a=(0,n.Ay)("div").withConfig({componentId:"sc-b2463965-0"})(["margin-bottom:32px;background-color:",";border:1px solid ",";border-radius:",";box-shadow:0px 6px 50px 1px rgba(0,0,0,0.05);",""],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.misc.borderTransparentBlack},e=>{let{theme:t}=e;return t.shape.largeBorderRadius},e=>{let{theme:{isEmbedded:t}}=e;return t&&(0,n.AH)(["margin-bottom:0;@media ","{border-radius:0;border:none;box-shadow:none;}"],r.HP.belowSmall)}),s=(0,n.Ay)("div").withConfig({componentId:"sc-b2463965-1"})(["padding:24px;",""],e=>{let{theme:{isEmbedded:t}}=e;return t&&(0,n.AH)(["padding:16px;@media ","{padding:0 16px;}"],r.HP.belowSmall)}),d=e=>{let{children:t,className:o}=e;return(0,i.jsx)(a,{className:o,children:(0,i.jsx)(s,{children:t})})}},90941:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.getCalendarLinks=t.getCalendarOptions=t.getWebinarUrl=t.getWebinarDates=void 0;let o=(e,t)=>{let o=new URLSearchParams(t),i=Array.from(o.keys()).length>0?"?".concat(o.toString()):"";return"".concat(e).concat(i)};t.getWebinarDates=e=>{let{scheduledAt:t,plannedDuration:o=60}=e,i=new Date(t);return{startDate:i,endDate:new Date(i.getTime()+6e4*o)}},t.getWebinarUrl=e=>{let{id:t,origin:i,token:n}=e;return o("".concat(i,"/watch/").concat(t),{...n&&{token:n}})},t.getCalendarOptions=e=>{let{title:o,description:i,plannedDuration:n,scheduledAt:r,url:a}=e,s=(e=>{let{url:t,description:o}=e;return t||o?t&&!o?t:!t&&o?o:"".concat(o,"\n\n").concat(t):""})({url:a,description:i}),{startDate:d,endDate:l}=(0,t.getWebinarDates)({scheduledAt:r,plannedDuration:n});return{details:s,endDate:l,location:a,startDate:d,text:o}};let i=e=>e.toISOString().replace(/-|:|\.\d\d\d/g,"");t.getCalendarLinks=e=>({google:(e=>{let{details:t,endDate:n,location:r,startDate:a,text:s}=e;return o("https://www.google.com/calendar/render",{action:"TEMPLATE",dates:"".concat(i(a),"/").concat(i(n)),...t&&{details:t},...r&&{location:r},...s&&{text:s}})})((0,t.getCalendarOptions)(e))})},91483:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStreamKey=void 0,t.parseStreamKey=e=>{try{if(!e)return"";return new URL(e).pathname.split("/").pop()||""}catch(e){return""}}},92576:e=>{e.exports="/next-static/_next/static/images/bubbles_dark_bg-a0b9a6847a13007371951267273ef0fc.jpg"},98773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInlineVariable=t.getEmailVariables=t.EMAIL_VARIABLE_TYPES=t.EMAIL_VARIABLES=t.EMAIL_SECTIONS=t.EMAIL_TEMPLATES=void 0,t.EMAIL_TEMPLATES={welcome:"welcome",reminder:"reminder",completed:"completed"},t.EMAIL_SECTIONS={subject:"subject",body:"body"},t.EMAIL_VARIABLES={firstName:"registrationFirstName",lastName:"registrationLastName",title:"webinarTitle",description:"webinarDescription",reminderTime:"reminderTime",startTime:"webinarStartTime"},t.EMAIL_VARIABLE_TYPES={inline:"inline-variable",block:"block-variable"};let o=[t.EMAIL_VARIABLES.description],i=[t.EMAIL_VARIABLES.firstName,t.EMAIL_VARIABLES.lastName,t.EMAIL_VARIABLES.title],n={[t.EMAIL_TEMPLATES.welcome]:{[t.EMAIL_SECTIONS.subject]:i,[t.EMAIL_SECTIONS.body]:[...i,t.EMAIL_VARIABLES.description,t.EMAIL_VARIABLES.startTime]},[t.EMAIL_TEMPLATES.reminder]:{subject:[...i,t.EMAIL_VARIABLES.reminderTime],body:[...i,t.EMAIL_VARIABLES.description,t.EMAIL_VARIABLES.startTime,t.EMAIL_VARIABLES.reminderTime]},[t.EMAIL_TEMPLATES.completed]:{subject:[...i],body:[...i,t.EMAIL_VARIABLES.description]}};t.getEmailVariables=e=>{let{template:t,section:o}=e;return n[t][o]},t.isInlineVariable=e=>!o.includes(e)},98938:(e,t,o)=>{"use strict";o.d(t,{SK:()=>c,Ay:()=>g});var i=o(94458);o(68658);var n=o(89495),r=o(71122),a=o(22343),s=o(35957);let d={LARGE:"large",MEDIUM:"medium",SMALL:"small"};d.LARGE,d.MEDIUM,d.SMALL;var l=o(61141);let c={large:"large",medium:"medium",small:"small"},m={[c.small]:"11px"},u={[c.large]:42,[c.medium]:35,[c.small]:20},h=(0,n.Ay)(a.Ay).attrs({variant:"body2"}).withConfig({componentId:"sc-3a361174-0"})(["font-weight:",";"],e=>e.theme.text.fontWeightSemiBold),p=(0,n.Ay)(r.A).withConfig({componentId:"sc-3a361174-1"})(["","{font-size:",";}"],h,e=>{let{textSize:t}=e;return t}),g=e=>{let{className:t,id:o,text:n,size:r=c.medium,textSize:a}=e;return(0,i.jsx)(p,{className:t,bgColor:(e=>"number"==typeof e?"hsl(".concat(e,", 45%, 91%)"):s.A.colors.grey[200])((e=>Array.from(e).reduce((t,o,i)=>e.charCodeAt(i)+(32*t-t),0)%360)(o||n)),size:u[r],text:(0,i.jsx)(h,{children:(0,l.fv)(n)}),textSize:a||m[r]})}},99405:(e,t,o)=>{"use strict";o.d(t,{L:()=>r});var i=o(34652),n=o(21805);let r=()=>{let e=(0,i.zy)(),t=null==e?void 0:e.host;return{publicOrigin:n.je[t],subscribeWs:n.CQ[t],subscribeHttps:n.XN[t]}}}}]);
2//# sourceMappingURL=5285-7443730b7b1d5dbf.js.map

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.