1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4716,8540],{76250:function(e,t,r){Promise.resolve().then(r.bind(r,5424)),Promise.resolve().then(r.bind(r,82094)),Promise.resolve().then(r.bind(r,14984)),Promise.resolve().then(r.bind(r,29827)),Promise.resolve().then(r.bind(r,84147)),Promise.resolve().then(r.bind(r,2868)),Promise.resolve().then(r.bind(r,17026)),Promise.resolve().then(r.bind(r,21770)),Promise.resolve().then(r.bind(r,76451)),Promise.resolve().then(r.bind(r,8164)),Promise.resolve().then(r.bind(r,71632)),Promise.resolve().then(r.bind(r,83244)),Promise.resolve().then(r.bind(r,47985)),Promise.resolve().then(r.bind(r,97984)),Promise.resolve().then(r.bind(r,18307)),Promise.resolve().then(r.bind(r,99611)),Promise.resolve().then(r.bind(r,89521)),Promise.resolve().then(r.bind(r,37897)),Promise.resolve().then(r.bind(r,47026)),Promise.resolve().then(r.bind(r,96463)),Promise.resolve().then(r.bind(r,65335)),Promise.resolve().then(r.bind(r,46965)),Promise.resolve().then(r.bind(r,19835))},18307:function(e,t,r){"use strict";r.d(t,{default:function(){return G}});var n=r(57437),i=r(2265),o=r(76605),a=r(12699),s=r.n(a),l=r(31691),c=r(46387),d=r(63832),p=r(24021),x=r(58414),u=r(41904),h=r(52467),f=r(72910),g=r(33145),m=r(27648),b=r(29827),v=r(94715),y=r(35389),j=r(53392),w=r(77468),k=r(62069),C=r(59832),S=r(1712);function Z(e){let{color:t}=e,r=(0,l.Z)(),i="dark"===r.palette.mode,o=t||(i?r.palette.text.primary:"#000"),a=t||(i?r.palette.text.secondary:"#D4D4D4");return(0,n.jsxs)("svg",{width:"32",height:"34",viewBox:"0 0 32 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M16 3C7.71573 3 1 9.71573 1 18C1 26.2843 7.71573 33 16 33C24.2843 33 31 26.2843 31 18C31 14.6921 29.9292 11.6342 28.1154 9.15419",stroke:a}),(0,n.jsx)("path",{d:"M14.5 0L19 3L14.5 6V0Z",fill:a}),(0,n.jsx)("path",{d:"M13.6963 12.8145V23H12.4932V14.1133H12.4248L9.9502 15.7676V14.5098L12.4932 12.8145H13.6963ZM18.5088 23.1367C17.9255 23.1367 17.3991 23.0228 16.9297 22.7949C16.4648 22.5625 16.0911 22.2435 15.8086 21.8379C15.526 21.4323 15.3734 20.972 15.3506 20.457H16.54C16.5856 20.9128 16.793 21.291 17.1621 21.5918C17.5358 21.8926 17.9847 22.043 18.5088 22.043C18.9281 22.043 19.2995 21.945 19.623 21.749C19.9466 21.5531 20.2018 21.2842 20.3887 20.9424C20.5755 20.6006 20.6689 20.2109 20.6689 19.7734C20.6689 19.3314 20.571 18.9349 20.375 18.584C20.1836 18.2331 19.9193 17.9574 19.582 17.7568C19.2448 17.5518 18.8597 17.4492 18.4268 17.4492C18.1123 17.4492 17.791 17.4993 17.4629 17.5996C17.1393 17.6953 16.8727 17.8184 16.6631 17.9688L15.501 17.832L16.1162 12.8145H21.4072V13.9082H17.1553L16.7998 16.916H16.8545C17.0641 16.7474 17.3262 16.6107 17.6406 16.5059C17.9551 16.3965 18.2855 16.3418 18.6318 16.3418C19.2562 16.3418 19.8122 16.4899 20.2998 16.7861C20.7874 17.0824 21.1702 17.488 21.4482 18.0029C21.7308 18.5133 21.8721 19.099 21.8721 19.7598C21.8721 20.4069 21.7262 20.9857 21.4346 21.4961C21.1429 22.0065 20.7441 22.4076 20.2383 22.6992C19.7324 22.9909 19.1559 23.1367 18.5088 23.1367Z",fill:o})]})}function F(e){let{color:t}=e,r=(0,l.Z)(),i="dark"===r.palette.mode,o=t||(i?r.palette.text.primary:"#000"),a=t||(i?r.palette.text.secondary:"#D4D4D4");return(0,n.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"16",cy:"16",r:"15",stroke:a}),(0,n.jsx)("path",{d:"M19 16L11.5 10V22L19 16Z",fill:o}),(0,n.jsx)("rect",{x:"19",y:"10",width:"1.5",height:"12",fill:o})]})}function I(e){let{color:t}=e,r=(0,l.Z)(),i="dark"===r.palette.mode,o=t||(i?r.palette.text.primary:"#000");return(0,n.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36 18C36 27.9411 27.9411 36 18 36C8.05887 36 0 27.9411 0 18C0 8.05887 8.05887 0 18 0C27.9411 0 36 8.05887 36 18ZM12 11.0002H16V25H12V11.0002ZM24 11H20V24.9998H24V11Z",fill:o})})}function M(e){let{color:t}=e,r=(0,l.Z)(),i="dark"===r.palette.mode,o=t||(i?r.palette.text.primary:"#000");return(0,n.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 38 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M26 19L15 11V27L26 19Z",fill:o}),(0,n.jsx)("circle",{cx:"19",cy:"19",r:"18",stroke:o})]})}
1function T(e){let{color:t}=e,r=(0,l.Z)(),i="dark"===r.palette.mode,o=t||(i?r.palette.text.primary:"#000"),a=t||(i?r.palette.text.secondary:"#D4D4D4");return(0,n.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"16",cy:"16",r:"15",transform:"rotate(180 16 16)",stroke:a}),(0,n.jsx)("path",{d:"M13 16L20.5 22L20.5 10L13 16Z",fill:o}),(0,n.jsx)("rect",{x:"13",y:"22",width:"1.5",height:"12",transform:"rotate(180 13 22)",fill:o})]})}function R(e){let{color:t}=e,r=(0,l.Z)(),i="dark"===r.palette.mode,o=t||(i?r.palette.text.primary:"#000"),a=t||(i?r.palette.text.secondary:"#D4D4D4");return(0,n.jsxs)("svg",{width:"32",height:"34",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M11 2C16.5228 2 21 6.47715 21 12C21 17.5228 16.5228 22 11 22C5.47715 22 1 17.5228 1 12C1 9.79471 1.71385 7.75616 2.92308 6.10279",stroke:a}),(0,n.jsx)("path",{d:"M12 0L9 2L12 4V0Z",fill:a}),(0,n.jsx)("path",{d:"M9.38867 8.72461V16H8.30469V9.82812H8.25586L6.52734 10.9658V9.91113L8.33398 8.72461H9.38867ZM12.8652 16.0977C12.4193 16.0977 12.0189 16.013 11.6641 15.8438C11.3125 15.6712 11.0309 15.4352 10.8193 15.1357C10.6077 14.833 10.4954 14.4896 10.4824 14.1055H11.5469C11.5729 14.4147 11.7113 14.6702 11.9619 14.8721C12.2126 15.0739 12.5137 15.1748 12.8652 15.1748C13.1452 15.1748 13.3926 15.1097 13.6074 14.9795C13.8223 14.8493 13.9915 14.6719 14.1152 14.4473C14.2389 14.2194 14.3008 13.959 14.3008 13.666C14.3008 13.373 14.2373 13.111 14.1104 12.8799C13.9834 12.6455 13.8076 12.4616 13.583 12.3281C13.3617 12.1947 13.1061 12.1279 12.8164 12.1279C12.5951 12.1279 12.3737 12.167 12.1523 12.2451C11.931 12.32 11.752 12.4176 11.6152 12.5381L10.6045 12.3916L11.0146 8.72461H15.0137V9.66699H11.9326L11.7031 11.7031H11.7422C11.8822 11.5632 12.0693 11.4492 12.3037 11.3613C12.5413 11.2702 12.7969 11.2246 13.0703 11.2246C13.513 11.2246 13.9069 11.3304 14.252 11.542C14.6003 11.7503 14.8737 12.0368 15.0723 12.4014C15.2708 12.7627 15.3701 13.1777 15.3701 13.6465C15.3701 14.1185 15.2627 14.54 15.0479 14.9111C14.833 15.279 14.5368 15.5687 14.1592 15.7803C13.7848 15.9919 13.3535 16.0977 12.8652 16.0977Z",fill:o})]})}var E=r(5835),L=r.n(E),z=r(4344),D=r(31269),A=r(27760),P=r(30773),_=r(28036);let H=(0,i.forwardRef)((e,t)=>(0,n.jsx)("audio",{ref:t,...e,preload:"none",children:"Your browser does not support the audio tag."}));H.displayName="Player";var W=e=>{let{setIsMarketPlace:t}=e,r=(0,l.Z)(),a="dark"===r.palette.mode,p=r.palette.common.white,{user:x}=(0,i.useContext)(D.V),h=(0,i.useRef)(null),E=(0,i.useRef)(null),W=(0,i.useRef)(null),B=(0,u.U)(e=>e.object),O=(0,u.U)(e=>
1e.reset),V=(0,u.U)(e=>e.toggleIsPlaying),U=(0,u.U)(e=>e.updateSelectedIndex),N=(0,u.U)(e=>e.toggleLastPlayed),[q,X]=(0,i.useState)(!1),[Y,G]=(0,i.useState)(!1),[Q,J]=(0,i.useState)(B.selectedIndex),[K,$]=(0,i.useState)(B.isPlaying),[ee,et]=(0,i.useState)(B.playlist),[er,en]=(0,i.useState)(0),[ei,eo]=(0,i.useState)(!1),ea=(0,u.U)(e=>e.updateIsLoading),[es,el]=(0,i.useState)(0),[ec,ed]=(0,i.useState)(0),[ep,ex]=(0,i.useState)(null),eu=(0,b.useQueryClient)(),{podcastHistory:eh,setPodcastHistory:ef}=(0,i.useContext)(P.SessionContext),eg=(0,i.useRef)(0),em=(0,i.useRef)(null),eb=(0,i.useRef)(!1),ev=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=!1;return eu.ensureQueryData({queryKey:["showDetails"],queryFn:()=>(0,v.vD)()}).then(t=>{if(e)return;let r={};Array.isArray(t)&&t.forEach(e=>{e.show_name&&e.belt_name&&(r[e.show_name]=e.belt_name)}),ev.current=r}).catch(()=>{}),()=>{e=!0}},[eu]),(0,i.useEffect)(()=>{let e=W.current;if(!e)return;let t=()=>{$(!1),V(!1)};return e.addEventListener("pause",t),()=>{e.removeEventListener("pause",t)}},[W,$,V]);let ey=e=>{let t=Math.floor(e/60),r=Math.floor(e%60);return"".concat(t<10?"0".concat(t):"".concat(t),":").concat(r<10?"0".concat(r):"".concat(r))},ej=()=>{G(!0)},ew=()=>{G(!1)},ek=async()=>{W.current&&(W.current.muted=!0,X(!0))},eC=async()=>{W.current&&(W.current.muted=!1,X(!1))},eS=e=>{h.current&&(h.current.value=String(e)),E.current&&(E.current.value=String(e)),eF()},eZ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";W.current&&h.current&&("player"==e?W.current.currentTime=parseFloat(h.current.value):"dialog"==e&&E.current&&(W.current.currentTime=parseFloat(E.current.value)),eF())},eF=()=>{var e;h.current&&h.current.style.setProperty("--seek-before-width","".concat(parseFloat(h.current.value)/parseFloat(h.current.max)*100,"%")),E.current&&E.current.style.setProperty("--seek-before-width","".concat(parseFloat(E.current.value)/parseFloat(E.current.max)*100,"%")),el(parseFloat((null===(e=h.current)||void 0===e?void 0:e.value)||"0"))},eI=()=>{el(0),ed(0),V(!1),eo(!1),ea(!1),h.current&&(h.current.value="0",h.current.style.setProperty("--seek-before-width","0%")),E.current&&(E.current.value="0",E.current.style.setProperty("--seek-before-width","0%"))},eM=()=>{W.current&&V()},eT=e=>{W.current&&(W.current.volume=parseFloat(e.target.value)/100,en(parseFloat(e.target.value)))},eR=()=>{if(B.playlist.length>0){let e=B.selectedIndex+1;e<B.playlist.length&&(eI(),U(e),N(f.S9.PODCAST,e))}},eE=()=>{if(B.playlist.length>0){let e=B.selectedIndex-1;e>=0&&(eI(),U(e),N(f.S9.PODCAST,e))}},eL=()=>{ec>0&&(h.current&&(h.current.value=String(Number(h.current.value)+15)),E.current&&(E.current.value=String(Number(E.current.value)+15)),eZ())},ez=()=>{ec>0&&(h.current&&(h.current.value=String(Number(h.current.value)-15)),E.current&&(E.current.value=String(Number(E.current.value)-15)),eZ())},eD=()=>{W.current&&(1===W.current.playbackRate?W.current.playbackRate=1.5:1.5===W.current.playbackRate?W.current.playbackRate=2:2===W.current.playbackRate&&(W.current.playbackRate=1))},eA=async e=>x&&await (0,_.s1)(_.db,x.uid,e)||{};async function eP(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null,r=u.U.getState().object;if(x){if(x){let n=null;if(!1===e){let e=await eA(r.currentPodcastId||"");Object.keys(e).length>0?(n=e,em.current=e):(n=await (0,_.Ve)(_.db,x.uid,r.currentPodcastId||""),em.current=r.currentPodcastId||"")}else!0===e&&(n=em.current);t=n}}else t=eh.find(e=>e.id===r.currentPodcastId);return t}return(0,i.useEffect)(()=>{(async()=>{if(W.current&&ee.length>0){if(Q>=0&&Q<ee.length)try{eI()}catch(e){console.error("Error initializing PlayerJS:",e)}else console.warn("Current track is out of bounds")}})()},[W.current,ee,Q]),(0,i.useEffect)(()=>{if(!W.current)return;let e=!1;function t(){W.current&&eS(Math.floor(W.current.currentTime))}async function r(){var t,r,n,i,o;eg.current=0;let a=u.U.getState().object,s=null===(t=a.playlist[a.selectedIndex])||void 0===t?void 0:t.startTime,l=await eP();s&&s>0&&!e?(W.current&&(W.current.currentTime=s,eg.current=s),e=!0):l&&!e&&(eg.current=null!==(n=l.elapsed_time)&&void 0!==n?n:0,W.current&&(W.current.currentTime=eg.current),e=!0),ed((null===(r=W.current)||void 0===r?void 0:r.duration)||0),h.current&&(h.current.max=String((null===(i=W.current)||void 0===i?void 0:i.duration)||0)),E.current&&(E.current.max=String((null===(o=W.current)||void 0===o?void 0:o.duration)||0)),W.current&&(V(!0),eo(!1),ea(!1)),eb.current=!0}function n(){W.current&&(en(100*W.current.volume),r(),W.current.addEventListener("timeupdate",t),W.current.addEventListener("play",r))}function i(){eI()}function o(){e=!1}eo(!0),ea(!0);let a=W.current;return a.addEventListener("canplay",n),a.addEventListener("loadeddata",o),a.addEventListener("ended",i),()=>{a&&(a.removeEventListener("canplay",n),a.removeEventListener("timeupdate",t),a.removeEventListener("play",r),a.removeEventListener("loadeddata",o),a.removeEventListener("ended",i))}},[W.current]),(0,i.useEffect)(()=>{let e=u.U.subscribe((e,t)=>{J(e.object.selectedIndex),et(e.object.playlist),e.object.isPlaying!==t.object.isPlaying&&W.current&&(e.object.isPlaying?W.current.play():e.object.isPlaying||W.current.pause(),$(e.object.isPlaying))});return()=>e()},[W.current]),(0,i.useEffect)(()=>{W.current&&(eo(!0),ea(!0),W.current.load())},[W.current,ee]),(0,i.useEffect)(()=>{ex(ee[0].podcastId)},[ee]),(0,i.useEffect)(()=>{let e;return async function(){for(;!eb.current;)await new Promise(e=>setTimeout(e,100));e=window.setInterval(async()=>{var e,t,r,n,i;let o=Math.floor((null===(e=W.current)||void 0===e?void 0:e.currentTime)||0),a=Math.floor((null===(t=W.current)||void 0===t?void 0:t.duration)||0),s=u.U.getState().object;if(o!==eg.current){eg.current=o;let e=(eg.current/((null===(r=W.current)||void 0===r?void 0:r.duration)||0)*100).toFixed(2);try{let t=await eP(!0);if(t){t.elapsed_time=eg.current,t.completed=!1,o===a&&(t.completed=!0),x?x&&(0,_.Ts)(_.db,x.uid,t,s.currentPodcastId||"",eg.current):ef([...eh]);let r=null===(n=s.playlist)||void 0===n?void 0:n[s.selectedIndex],l=Array.isArray(null==r?void 0:r.beltName)?r.beltName[0]:null==r?void 0:r.beltName;window.gtag("event","podcast_consumption",{podcast_id:s.currentPodcastId,elapsed_time:eg.current,percentage:e,show_name:null==r?void 0:r.showTitle,belt_name:null!=l?l:null===(i=ev.current)||void 0===i?void 0:i[null==r?void 0:r.showTitle]})}}catch(e){console.error("Error fetching podcast item:",e)}}},5e3)}(),()=>window.clearInterval(e)},[]),(0,i.useEffect)(()=>{var e;(null===(e=ee[Q])||void 0===e?void 0:e.showTitle)&&t(ee[Q].showTitle)},[ee,Q,t]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(d.Z,{sx:{position:"relative",display:"flex",alignItems:"flex-start",maxWidth:"1440px",margin:"0 auto",padding:{xs:"0.5rem 0.75rem",custom1460:"0.5rem 0rem"},height:"52px"},children:[ee[Q].audioUrl&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(H,{ref:W,src:ee[Q].audioUrl})}),(0,n.jsxs)(k.ZP,{container:!0,spacing:0,children:[(0,n.jsx)(k.ZP,{item:!0,xs:11,md:4,lg:3,children:(0,n.jsxs)(S.Z,{direction:"row",alignItems:{xs:"center",md:"start"},spacing:0,children:[(0,n.jsx)(d.Z,{sx:{display:{xs:"block",md:"none",lg:"none"}},children:ei?(0,n.jsx)(d.Z,{sx:{padding:0,paddingRight:"9px"},children:(0,n.jsx)(y.Z,{size:32,thickness:1,sx:{color:a?p:"#000"}})}):(0,n.jsx)(C.Z,{sx:{padding:0,paddingRight:"5px"},disabled:!W.current,onClick:()=>eM(),children:K?(0,n.jsx)(I,{}):(0,n.jsx)(M,{})})}),(0,n.jsxs)(d.Z,{sx:{display:{xs:"none",custom768:"flex"},alignItems:"center"},children:[(0,n.jsx)(d.Z,{onClick:ej,children:(0,n.jsx)(g.default,{src:ee[Q].image,width:36,height:36,alt:"cover",style:{borderRadius:"3px",cursor:"pointer",objectFit:"cover"}})}),(0,n.jsxs)(d.Z,{display:"flex",pl:1,sx:{flexDirection:"column",justifyContent:"center",cursor:"pointer"},onClick:ej,children:[(0,n.jsx)(d.Z,{sx:{fontSize:"14px",color:a?p:"#000",lineHeight:1.2,fontWeight:600,overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,textOverflow:"ellipsis"},children:ee[Q].pageTitle}),(0,n.jsx)(c.Z,{style:{fontSize:"10px",color:a?r.palette.text.secondary:"#626262",textDecoration:"underline"},children:ee[Q].showTitle})]})]}),(0,n.jsxs)(d.Z,{pl:1,sx:{display:{xs:"flex",custom768:"none"},flexDirection:"column",justifyContent:"center"},onClick:ej,children:[(0,n.jsx)(d.Z,{sx:{fontSize:"14px",color:a?p:"#000",lineHeight:1.2,fontWeight:600,overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,textOverflow:"ellipsis",cursor:"pointer"},children:ee[Q].pageTitle}),(0,n.jsx)(c.Z,{style:{fontSize:"10px",color:a?r.palette.text.secondary:"#626262",textDecoration:"underline"},children:ee[Q].showTitle})]})]})}
1),(0,n.jsx)(k.ZP,{item:!0,xs:0,md:4,lg:3,sx:{display:{xs:"none",md:"block"}},children:(0,n.jsxs)(S.Z,{direction:"row",spacing:0,justifyContent:{md:"start",lg:"center"},alignItems:"center",height:"35px",sx:{paddingLeft:{custom768:0,md:1}},children:[(0,n.jsx)(C.Z,{disableRipple:!0,onClick:ez,disabled:!W.current,sx:{paddingTop:0,paddingBottom:0},children:(0,n.jsx)(R,{})}),(0,n.jsx)(C.Z,{disableRipple:!0,onClick:eR,disabled:0===ee.length,sx:{paddingTop:0,paddingBottom:0},children:(0,n.jsx)(T,{})}),ei?(0,n.jsx)(d.Z,{sx:{margin:"0rem 0.6rem"},children:(0,n.jsx)(y.Z,{size:32,thickness:1,sx:{color:a?p:"#000"}})}):(0,n.jsx)(C.Z,{disableRipple:!0,disabled:!W.current,onClick:()=>eM(),sx:{paddingTop:0,paddingBottom:0},children:K?(0,n.jsx)(I,{}):(0,n.jsx)(M,{})}),(0,n.jsx)(C.Z,{disableRipple:!0,onClick:eE,disabled:0===ee.length,sx:{paddingTop:0,paddingBottom:0},children:(0,n.jsx)(F,{})}),(0,n.jsx)(C.Z,{disableRipple:!0,onClick:eL,disabled:!W.current,sx:{paddingTop:0,paddingBottom:0},children:(0,n.jsx)(Z,{})}),(0,n.jsx)(d.Z,{onClick:eD,sx:{height:"20px",width:"20px",margin:"0 20px",color:a?p:void 0},children:W.current&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.default,{alt:"speed",width:20,height:20,priority:!0,src:"/speed1x.svg",style:{cursor:"pointer",display:1===W.current.playbackRate?"block":"none",filter:a?"invert(1) brightness(2)":void 0}}),(0,n.jsx)(g.default,{alt:"speed",width:20,height:20,priority:!0,src:"/speed15x.svg",style:{cursor:"pointer",display:1.5===W.current.playbackRate?"block":"none",filter:a?"invert(1) brightness(2)":void 0}}),(0,n.jsx)(g.default,{alt:"speed",width:20,height:20,priority:!0,src:"/speed2x.svg",style:{cursor:"pointer",display:2===W.current.playbackRate?"block":"none",filter:a?"invert(1) brightness(2)":void 0}})]})})]})}),(0,n.jsx)(k.ZP,{item:!0,xs:0,md:3,lg:4,sx:{display:{xs:"none",md:"block",paddingLeft:"20px"}},children:(0,n.jsxs)(S.Z,{direction:"row",spacing:1,justifyContent:"start",alignItems:"center",width:"100%",mt:.85,children:[(0,n.jsx)(c.Z,{variant:"caption",display:"block",color:a?r.palette.text.secondary:"#626262",sx:{width:"45px"},children:ey(es)}),(0,n.jsx)("input",{type:"range",ref:h,className:L().progressBar,defaultValue:"0",onChange:()=>eZ(),style:{...a?{filter:"invert(1) brightness(2)",background:"transparent"}:{}}}),(0,n.jsx)(c.Z,{variant:"caption",display:"block",color:a?r.palette.text.secondary:"#626262",sx:{width:"45px",marginRight:"8px !important"},children:ey(ec)})]})}),(0,n.jsxs)(k.ZP,{item:!0,xs:0,md:1,lg:2,sx:{display:{xs:"none",md:"block"}},children:[(0,n.jsxs)(S.Z,{direction:"row",display:{xs:"none",custom1250:"flex"},spacing:0,justifyContent:{custom768:"start",md:"end",lg:"end"},alignItems:"center",sx:{paddingLeft:{custom768:0,md:2}},children:[(0,n.jsx)(d.Z,{sx:{display:"flex",alignItems:"center",margin:"0rem 0.5rem 0rem 0rem"},children:(0,n.jsx)(A.p,{id:ep||"",size:"20",color:a?p:void 0})}),(0,n.jsx)(d.Z,{sx:{display:"flex",alignItems:"center",padding:0,margin:"0.15rem 0.5rem 0rem 0rem"},children:(0,n.jsx)(z.Z,{color:a?"white":"grey",placement:"top",shareLink:"".concat("https://www.bfm.my/","content/podcast/").concat(ee[Q].slug),contentType:"podcast",currentTime:es})}),(0,n.jsx)(d.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(C.Z,{disableRipple:!0,onClick:q?eC:ek,sx:{padding:0,margin:"0rem 0rem 0rem 0rem",":hover":{backgroundColor:a?"rgba(255,255,255,0.1)":"#fff"}},children:(0,n.jsx)(s(),{path:q?o.FR1:o.p_Q,size:.85,style:{color:a?p:"#000",caretColor:a?p:"#000"}})})}),(0,n.jsx)(d.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)("input",{type:"range",className:L().progressBar,max:100,value:er,onChange:eT,style:{width:"100px","--seek-before-width":"".concat(er,"%"),...a?{filter:"invert(1) brightness(2)",background:"transparent"}:{}}})}),(0,n.jsx)(d.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(C.Z,{disableRipple:!0,onClick:()=>O(),children:(0,n.jsx)(s(),{path:o.r5M,size:.75,style:{color:a?p:"#000",caretColor:a?p:"#000"}})})})]}),(0,n.jsx)(S.Z,{direction:"row",display:{xs:"flex",custom1250:"none"},spacing:0,justifyContent:{custom768:"start",md:"end",lg:"end"},alignItems:"center",sx:{paddingLeft:{custom768:0,md:2}},children:(0,n.jsx)(C.Z,{disableRipple:!0,onClick:()=>O(),children:(0,n.jsx)(s(),{path:o.r5M,size:.75,style:{color:a?p:"#000",caretColor:a?p:"#000"}})})})]}),(0,n.jsx)(k.ZP,{item:!0,xs:1,sx:{display:{xs:"flex",md:"none"}},children:(0,n.jsx)(S.Z,{direction:"row",spacing:0,justifyContent:{md:"start",lg:"end"},alignItems:"center",sx:{paddingLeft:{custom768:0,md:2}},children:(0,n.jsx)(C.Z,{disableRipple:!0,onClick:()=>O(),children:(0,n.jsx)(s(),{path:o.r5M,size:.75,style:{color:a?p:"#000",caretColor:a?p:"#000"}})})})})]})]}),(0,n.jsx)(j.Z,{open:Y,onClose:ew,sx:{marginTop:"90px"},children:(0,n.jsxs)(w.Z,{sx:{maxWidth:"350px",padding:"2rem 1.5rem 1.25rem 1.5rem",backgroundColor:a?r.palette.background.paper:"#fff",color:a?r.palette.text.primary:"#000"},children:[(0,n.jsx)(C.Z,{onClick:ew,sx:{position:"absolute",right:0,top:0,padding:"0.75rem"},children:(0,n.jsx)(s(),{path:o.r5M,size:.75,style:{color:a?p:"#000",caretColor:a?p:"#000"}})}),(0,n.jsxs)(S.Z,{justifyContent:"center",alignItems:"center",children:[(0,n.jsx)(g.default,{src:ee[Q].image,width:200,height:200,quality:100,alt:"cover",style:{borderRadius:"3px",objectFit:"cover"}}),(0,n.jsx)(m.default,{href:"/content/podcast/".concat(ee[Q].slug),children:(0,n.jsxs)(c.Z,{variant:"body1",gutterBottom:!0,display:"block",textAlign:"center",py:"0.35rem",sx:{lineHeight:"160%",color:a?p:"#000"},children:[(0,n.jsx)("span",{style:{fontSize:"1rem",color:a?p:"#626262",textDecoration:"underline"},children:ee[Q].showTitle}),(0,n.jsx)("br",{}),ee[Q].pageTitle]})})]}),(0,n.jsxs)(S.Z,{direction:"row",spacing:0,justifyContent:"center",alignItems:"center",children:[(0,n.jsx)(C.Z,{onClick:ez,disabled:!W.current,children:(0,n.jsx)(R,{})}),(0,n.jsx)(C.Z,{onClick:eR,disabled:0===ee.length,children:(0,n.jsx)(T,{})}),ei?(0,n.jsx)(d.Z,{sx:{margin:"0rem 0.6rem"},children:(0,n.jsx)(y.Z,{size:35,thickness:1,sx:{color:a?p:"#000"}})}):(0,n.jsx)(C.Z,{disabled:!W.current,onClick:()=>eM(),children:K?(0,n.jsx)(I,{}):(0,n.jsx)(M,{})}),(0,n.jsx)(C.Z,{onClick:eE,disabled:0===ee.length,children:(0,n.jsx)(F,{})}),(0,n.jsx)(C.Z,{onClick:eL,disabled:!W.current,children:(0,n.jsx)(Z,{})})]}),(0,n.jsx)("input",{type:"range",ref:E,className:L().progressBar,defaultValue:"0",max:ec,onChange:()=>eZ("dialog"),style:{...a?{filter:"invert(1) brightness(2)",background:"transparent"}:{}}}),(0,n.jsxs)(S.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",py:"0.5rem",children:[(0,n.jsx)(c.Z,{variant:"caption",display:"block",sx:{width:"35px"},children:ey(es)}),(0,n.jsx)(c.Z,{variant:"caption",display:"block",color:a?r.palette.text.secondary:"#626262",textAlign:"right",sx:{width:"35px"},children:ey(ec)})]}),(0,n.jsxs)(S.Z,{direction:"row",spacing:0,justifyContent:"space-between",alignItems:"center",children:[(0,n.jsxs)(d.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"start"},children:[(0,n.jsx)(d.Z,{sx:{margin:"0rem 0.5rem 0rem 0rem"},children:(0,n.jsx)(A.p,{id:ep||"",size:"20",color:a?p:void 0})}),(0,n.jsx)(z.Z,{color:a?"white":"black",marginTop:"10px",height:"20px",width:"20px",placement:"top",pointer:!1,shareLink:"".concat("https://www.bfm.my/","content/podcast/").concat(ee[Q].slug),contentType:"podcast",currentTime:es})]}),(0,n.jsxs)(S.Z,{direction:"row",spacing:0,justifyContent:"center",alignItems:"center",children:[(0,n.jsx)(d.Z,{onClick:eD,sx:{height:"20px",width:"30px",marginRight:"20px"},children:W.current&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.default,{alt:"speed",width:30,height:20,priority:!0,src:"/speed1x.svg",style:{cursor:"pointer",display:1===W.current.playbackRate?"block":"none",filter:a?"invert(1) brightness(2)":void 0}}),(0,n.jsx)(g.default,{alt:"speed",width:30,height:20,priority:!0,src:"/speed15x.svg",style:{cursor:"pointer",display:1.5===W.current.playbackRate?"block":"none",filter:a?"invert(1) brightness(2)":void 0}}),(0,n.jsx)(g.default,{alt:"speed",width:30,height:20,priority:!0,src:"/speed2x.svg",style:{cursor:"pointer",display:2===W.current.playbackRate?"block":"none",filter:a?"invert(1) brightness(2)":void 0}})]})}),(0,n.jsx)(C.Z,{onClick:q?eC:ek,sx:{padding:0,margin:"0rem 0rem 0rem 0rem",":hover":{backgroundColor:a?"rgba(255,255,255,0.1)":"#fff"}},children:(0,n.jsx)(s(),{path:q?o.FR1:o.p_Q,size:.85,style:{color:a?p:"#000",caretColor:a?p:"#000"}})}),(0,n.jsx)("input",{type:"range",className:L().progressBar,max:100,value:er,onCh
1ange:eT,style:{width:"100px","--seek-before-width":"".concat(er,"%"),...a?{filter:"invert(1) brightness(2)",background:"transparent"}:{}}})]})]})]})})]})};function B(e){let{color:t}=e,r=(0,l.Z)(),i="dark"===r.palette.mode,o=t||(i?r.palette.text.primary:"#000");return(0,n.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M20.4287 3.14286L14.9287 0V6.28571L20.4287 3.14286Z",fill:o}),(0,n.jsx)("path",{d:"M1.57129 4.71387H10.9999",stroke:o}),(0,n.jsx)("path",{d:"M1.57129 14.1426H20.4284",stroke:o}),(0,n.jsx)("path",{d:"M1.57129 9.42871H20.4284",stroke:o}),(0,n.jsx)("path",{d:"M1.57129 18.8574H20.4284",stroke:o})]})}var O=r(83464),V=r(40303);let U=r(25566).env.NEXT_PUBLIC_LIVE_STREAM_HLS_URL||null;var N=()=>{let e=(0,b.useQueryClient)(),t=(0,l.Z)(),r="dark"===t.palette.mode,a=(0,i.useRef)(null),p=(0,i.useRef)(null),x=(0,i.useRef)(0),h=(0,i.useRef)(0),f=(0,i.useRef)(null),Z=(0,i.useRef)(null),F=(0,i.useRef)(!1),T=(0,i.useRef)(0),R=(0,i.useRef)(null),E=(0,i.useRef)(()=>{}),D=(0,i.useRef)(()=>{}),[A,_]=(0,i.useState)(!1);!function(e,t){let r=(0,i.useRef)(null),n=(0,i.useRef)(!1),o=(0,i.useRef)(null),a=(0,i.useRef)(0);(0,i.useEffect)(()=>{let t=(e,t)=>{window.gtag&&window.gtag("event",e,{event_category:"live_stream",event_label:t||"web_player"})};return e?(r.current||(r.current=Date.now(),t("live_stream_session_start"),n.current=!1,a.current=0),o.current||(o.current=setInterval(()=>{let e=Date.now(),i=Math.floor(r.current?(e-r.current)/1e3:0);n.current||20!==i||(t("live_stream_play_verified"),n.current=!0),i>0&&i%60==0&&(a.current+=1,t("live_stream_listening (".concat(a.current,")"),"web_player"))},1e3))):(r.current&&t("live_stream_session_end"),r.current=null,n.current=!1,a.current=0,o.current&&(clearInterval(o.current),o.current=null)),()=>{o.current&&(clearInterval(o.current),o.current=null)}},[e,t])}(A,a);let[H,W]=(0,i.useState)(null),[N,q]=(0,i.useState)(null),X=(0,u.U
1)(e=>e.reset),Y=(0,u.U)(e=>e.toggleIsPlaying),[G,Q]=(0,i.useState)(!1),J=(0,u.U)(e=>e.updateIsLoading),{setPlayedLive:K}=(0,i.useContext)(P.SessionContext),[$,ee]=(0,i.useState)(!1),[et,er]=(0,i.useState)(!1),[en,ei]=(0,i.useState)(100),[eo,ea]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=a.current;if(!e)return;let t=()=>{_(!1),Y(!1)},r=()=>{f.current&&(clearTimeout(f.current),f.current=null),T.current=0,Q(!1),J(!1),ea(!1),_(!0),Y(!0)},n=()=>{eo||Q(!0)};return e.addEventListener("pause",t),e.addEventListener("playing",r),e.addEventListener("waiting",n),()=>{e.removeEventListener("pause",t),e.removeEventListener("playing",r),e.removeEventListener("waiting",n)}},[a,_,Y,J,eo]),(0,i.useEffect)(()=>()=>{var e;f.current&&clearTimeout(f.current),Z.current&&clearTimeout(Z.current),R.current&&clearTimeout(R.current),null===(e=p.current)||void 0===e||e.destroy(),p.current=null},[]);let es=()=>{er(!0)},el=()=>{er(!1)},ec=(0,i.useCallback)(()=>{let e=a.current;if(!e)return;let t=e.play();void 0!==t&&t.then(()=>{Q(!1),J(!1),_(!0),Y(!0)}).catch(e=>{Q(!1),J(!1),(null==e?void 0:e.name)!=="AbortError"&&console.warn("Live stream play() rejected:",e)})},[J,Y]),ed=(0,i.useCallback)(()=>{var e;let t=a.current;f.current&&(clearTimeout(f.current),f.current=null),null===(e=p.current)||void 0===e||e.destroy(),p.current=null,t&&(t.pause(),t.removeAttribute("src"),t.load()),Q(!1),J(!1),_(!1),Y(!1),ea(!0)},[J,Y]),ep=(0,i.useCallback)(()=>{if(R.current&&(clearTimeout(R.current),R.current=null),U&&!F.current){D.current();return}if(T.current>=4){ed();return}T.current+=1;let e=1500*T.current;Q(!0),J(!0),R.current=setTimeout(()=>{R.current=null,E.current()},e)},[ed,J]),ex=(0,i.useCallback)(()=>{var e,t;let r=a.current;if(!r)return;if(!U){F.current=!0,ep();return}if(F.current=!0,f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{f.current=null,ep()},25e3),V.default.isSupported()){null===(t=p.current)||void 0===t||t.destroy(),x.current=0,h.current=0;let e=new V.default;p.current=e,e.on(V.default.Events.MANIFEST_PARSED,()=>ec()),e.on(V.default.Events.FRAG_BUFFERED,()=>{f.current&&(clearTimeout(f.current),f.current=null),x.current=0,h.current=0}),e.on(V.default.Events.ERROR,(t,r)=>{if(r.fatal){if(r.type===V.default.ErrorTypes.NETWORK_ERROR&&x.current<6){x.current+=1,e.startLoad();return}if(r.type===V.default.ErrorTypes.MEDIA_ERROR&&h.current<2){h.current+=1,e.recoverMediaError();return}console.error("hls.js fatal error:",r.details),ep()}}),e.loadSource(U),e.attachMedia(r);return}null===(e=p.current)||void 0===e||e.destroy(),p.current=null,r.src=U;let n=()=>{r.removeEventListener("loadedmetadata",n),r.removeEventListener("error",i),ec()};r.addEventListener("loadedmetadata",n);let i=()=>{r.removeEventListener("error",i),r.removeEventListener("loadedmetadata",n),f.current&&(clearTimeout(f.current),f.current=null),ep()};r.addEventListener("error",i),r.load()},[ec,ep]),eu=(0,i.useCallback)(()=>{var e;let t=a.current;if(!t)return;F.current=!1,R.current&&(clearTimeout(R.current),R.current=null),null===(e=p.current)||void 0===e||e.destroy(),p.current=null,ea(!1),f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{f.current=null,t.pause(),t.removeAttribute("src"),t.load(),ep()},25e3),t.src="https://d2nva529xxo1me.cloudfront.net/stream";let r=()=>{t.removeEventListener("loadedmetadata",r),t.removeEventListener("error",n),ec()};t.addEventListener("loadedmetadata",r);let n=()=>{t.removeEventListener("error",n),t.removeEventListener("loadedmetadata",r),f.current&&(clearTimeout(f.current),f.current=null),ep()};t.addEventListener("error",n),t.load()},[ec,ep]);(0,i.useEffect)(()=>{E.current=eu,D.current=ex},[eu,ex]),(0,i.useEffect)(()=>{let e=a.current;if(!e)return;let t=()=>{eo||f.current||Z.current||(Z.current=setTimeout(()=>{Z.current=null,ep()},25e3))},r=()=>{Z.current&&(clearTimeout(Z.current),Z.current=null)};return e.addEventListener("waiting",t),e.addEventListener("playing",r),()=>{e.removeEventListener("waiting",t),e.removeEventListener("playing",r),Z.current&&(clearTimeout(Z.current),Z.current=null)}},[ep,eo]);let eh=()=>{a.current&&(A?(a.current.pause(),Y(!1),_(!1)):(Q(!0),J(!0),eu()))},ef=()=>{a.current&&(Q(!0),J(!0),a.current.pause(),eu())},eg=async()=>{a.current&&(a.current.muted=!0,ee(!0))},em=async()=>{a.current&&(a.current.muted=!1,ee(!1))},eb=e=>{let t=parseInt(e.target.value);a.current&&(a.current.volume=t/100,ei(t),"0"===e.target.value?(a.current.muted=!0,ee(!0)):(a.current.muted=!1,ee(!1)))},ev=async()=>await O.Z.get("https://www.bfm.my/api/currentLive").then(e=>{W(e.data)}).catch(e=>{e.response?(console.log("error.response: ",e.response.data),console.error(e.response.data.message||"The request was made and the server responded with a status code")):e.request?(console.log("error.request: ",e.request),console.error("The request was made but no response was received")):console.error("Something happened in setting up the request that triggered an Error")}),ey=async()=>{var t,r;let n=null!==(t=null==H?void 0:H.component.show_icon)&&void 0!==t?t:"/bfm-square-logo.webp";
1try{let t=await e.ensureQueryData({queryKey:["showDetails"],queryFn:()=>(0,v.vD)()}),i=null!==(r=null==H?void 0:H.component.title)&&void 0!==r?r:"BFM Show";if(t){let e=t.find(e=>e.show_name.toLowerCase()===i.toLowerCase());e&&(n=e.image)}}catch(e){console.warn("Show artwork lookup failed; using fallback:",e)}!n||n.startsWith("/")||n.startsWith("http")||(n="/bfm-square-logo.webp"),q(n)};return(0,i.useEffect)(()=>{let e=u.U.subscribe((e,t)=>{let r=a.current;if(r){if(e.object.isPlaying===t.object.isPlaying)return;e.object.isPlaying?r.paused&&r.play().catch(()=>{}):r.paused||r.pause(),_(e.object.isPlaying)}});return()=>e()},[a]),(0,i.useEffect)(()=>{H&&ey()},[H]),(0,i.useEffect)(()=>{ev(),eh(),K(!0)},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("audio",{ref:a,preload:"auto"}),(0,n.jsx)(d.Z,{sx:{position:"relative",display:"flex",alignItems:"center",maxWidth:"1440px",margin:"0 auto",padding:"0.5rem 0.75rem",height:"52px"},children:(0,n.jsxs)(k.ZP,{container:!0,spacing:0,sx:{width:"100%"},children:[(0,n.jsx)(k.ZP,{item:!0,xs:10,sm:10,children:(0,n.jsxs)(d.Z,{sx:{height:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,n.jsxs)(d.Z,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:1},children:[H&&N&&(0,n.jsx)(d.Z,{onClick:es,height:36,width:36,position:"relative",sx:{display:{xs:"none",custom768:"block"}},children:(0,n.jsx)(g.default,{src:N,fill:!0,sizes:"36px",alt:"cover",style:{borderRadius:"3px",cursor:"pointer",objectFit:"cover"}})}),(0,n.jsx)(d.Z,{children:G&&!eo?(0,n.jsx)(d.Z,{sx:{padding:{xs:"0 8px",custom768:"0 15px"}},children:(0,n.jsx)(y.Z,{size:35,thickness:1,sx:{color:r?t.palette.text.primary:"#000"}})}):(0,n.jsx)(C.Z,{disableRipple:!0,disabled:!a,onClick:()=>eh(),sx:{padding:{xs:"0 8px",custom768:"0 15px"}},children:A?(0,n.jsx)(I,{}):(0,n.jsx)(M,{})})}),eo?(0,n.jsx)(c.Z,{variant:"caption",sx:{color:"red",paddingLeft:"8px",whiteSpace:"nowrap"},children:"Stream unavailable"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(d.Z,{onClick:()=>ef(),sx:{cursor:"pointer",display:"flex",flexDirection:"row",gap:0,alignItems:"center",justifyContent:"start",flexShrink:0},children:[(0,n.jsx)(d.Z,{sx:{background:"red",width:"10px",height:"10px",borderRadius:"100px",margin:"0px 5px 0px 0px",animationName:"blink",animationDuration:"1.15s",animationIterationCount:"infinite","@keyframes blink":{"0%":{opacity:0},"50%":{opacity:1},"100%":{opacity:0}}}}),(0,n.jsx)(d.Z,{sx:{marginRight:"6px"},children:(0,n.jsx)("div",{style:{color:"red",whiteSpace:"nowrap"},children:"Live now: "})})]}),H?(0,n.jsx)(d.Z,{onClick:es,sx:{cursor:"pointer",minWidth:0,overflow:"hidden"},children:(0,n.jsx)(c.Z,{variant:"button",display:"block",pl:1,color:r?t.palette.text.primary:"#000",sx:{cursor:"pointer",paddingTop:"3px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:H.component.title})}):(0,n.jsx)(c.Z,{variant:"button",display:"block",pl:1,color:r?t.palette.text.primary:"#000",sx:{cursor:"pointer",paddingTop:"3px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:"BFM 89.9"})]}),(0,n.jsx)(d.Z,{sx:{display:"block",flexShrink:0},children:(0,n.jsx)(d.Z,{sx:{display:"flex",alignItems:"center",marginLeft:{xs:"12px",custom768:"50px"}},children:(0,n.jsx)(z.Z,{shareLink:"".concat("https://www.bfm.my/","live-schedule"),color:r?"white":"black",marginTop:"0px",height:"16px",width:"16px",placement:"top"})})})]}),(0,n.jsx)(d.Z,{sx:{display:{xs:"none",custom768:"block"}},children:(0,n.jsx)(m.default,{href:"/live-schedule",children:(0,n.jsxs)(d.Z,{sx:{display:"flex",alignItems:"center",gap:"15px",marginRight:"30px"},children:[(0,n.jsx)(B,{}),(0,n.jsx)(d.Z,{sx:{fontSize:"14px",color:r?t.palette.text.primary:"#000"},children:"See Full Schedule"})]})})})]})}),(0,n.jsxs)(k.ZP,{item:!0,xs:2,sm:2,children:[(0,n.jsx)(d.Z,{sx:{display:{xs:"none",custom768:"none",md:"flex"},alignItems:"center",height:"100%"},children:(0,n.jsxs)(S.Z,{direction:"row",spacing:0,justifyContent:"end",alignItems:"center",sx:{height:"100%",width:"100%"},children:[(0,n.jsx)(C.Z,{onClick:$?em:eg,sx:{padding:0,margin:"0rem 0rem 0rem 0rem",":hover":{backgroundColor:r?"rgba(255,255,255,0.1)":"#fff"}},children:(0,n.jsx)(s(),{path:$?o.FR1:o.p_Q,size:.85,style:{color:r?t.palette.text.primary:"#000",caretColor:r?t.palette.text.primary:"#000"}})}),(0,n.jsx)("input",{type:"range",className:L().progressBar,max:100,min:0,value:en,onChange:eb,style:{width:"100px","--seek-before-width":"".concat(en,"%")}
1}),(0,n.jsx)(C.Z,{onClick:()=>X(),children:(0,n.jsx)(s(),{path:o.r5M,size:.75,style:{color:r?t.palette.text.primary:"#000",caretColor:r?t.palette.text.primary:"#000"}})})]})}),(0,n.jsx)(d.Z,{sx:{display:{xs:"flex",custom768:"flex",md:"none"},alignItems:"center",height:"100%"},children:(0,n.jsx)(S.Z,{direction:"row",spacing:0,justifyContent:"end",alignItems:"center",sx:{height:"100%",width:"100%"},children:(0,n.jsx)(C.Z,{onClick:()=>X(),children:(0,n.jsx)(s(),{path:o.r5M,size:.75,style:{color:r?t.palette.text.primary:"#000",caretColor:r?t.palette.text.primary:"#000"}})})})})]})]})}),(0,n.jsx)(j.Z,{open:et,onClose:el,PaperProps:{style:{overflow:"visible"}},children:(0,n.jsxs)(w.Z,{sx:{maxWidth:"350px",padding:"2rem 1.5rem 1.25rem 1.5rem",backgroundColor:r?t.palette.background.paper:"#fff",color:r?t.palette.text.primary:"#000"},children:[(0,n.jsx)(C.Z,{onClick:el,sx:{position:"absolute",right:0,top:0,padding:"0.75rem"},children:(0,n.jsx)(s(),{path:o.r5M,size:.75,style:{color:r?t.palette.text.primary:"#000",caretColor:r?t.palette.text.primary:"#000"}})}),H&&N?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.Z,{justifyContent:"center",alignItems:"center",children:(0,n.jsx)(g.default,{src:N,width:200,height:200,quality:100,alt:"cover",style:{borderRadius:"3px",objectFit:"cover"}})}),(0,n.jsx)(c.Z,{variant:"h6",display:"block",gutterBottom:!0,textAlign:"center",my:"1rem",sx:{lineHeight:"130%"},children:H.component.title}),(0,n.jsx)(c.Z,{variant:"caption",display:"block",gutterBottom:!0,textAlign:"center",my:"1rem",sx:{lineHeight:"130%",color:r?t.palette.text.secondary:"#626262"},children:H.component.subtitle})]}):(0,n.jsx)(c.Z,{variant:"h6",display:"block",gutterBottom:!0,textAlign:"center",my:"1rem",sx:{lineHeight:"130%",color:r?t.palette.text.primary:"#000"},children:"BFM 89.9"}),(0,n.jsxs)(S.Z,{direction:"row",spacing:0,justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(z.Z,{shareLink:"".concat("https://www.bfm.my/","live-schedule"),color:r?"white":"black",marginTop:"0px",height:"16px",width:"16px",placement:"top",pointer:!1}),(0,n.jsxs)(S.Z,{direction:"row",spacing:0,justifyContent:"center",alignItems:"center",children:[(0,n.jsx)(C.Z,{onClick:$?em:eg,sx:{padding:0,margin:"0rem 0rem 0rem 0rem",":hover":{backgroundColor:r?"rgba(255,255,255,0.1)":"#fff"}},children:(0,n.jsx)(s(),{path:$?o.FR1:o.p_Q,size:.85,style:{color:r?t.palette.text.primary:"#000",caretColor:r?t.palette.text.primary:"#000"}})}),(0,n.jsx)("input",{type:"range",className:L().progressBar,max:100,value:en,onChange:eb,style:{width:"100px","--seek-before-width":"".concat(en,"%")}})]})]})]})})]})};let q=e=>'<ins data-revive-zoneid="'.concat(e,'" data-revive-id="c12d3e184972204f63163a0e8c71bd76"></ins><script async src="//ad.bfm.my/www/delivery/asyncjs.php"></script>'),X={desktopAd:q("44"),mobileAd:q("45"),brandAd:q("46"),brandAdMobile:q("46"),desktopAdMarketplace:q("59"),mobileAdMarketplace:q("60"),brandAdMarketplace:q("61"),brandAdMobileMarketplace:q("61")},Y=e=>{let{ad:t,altAd:r,screen:i,type:o,isMarketPlace:a,altAdsStyling:s}=e,c=(0,l.Z)(),p="dark"===c.palette.mode;return(0,n.jsx)(d.Z,{sx:{display:{xs:"mobile"===i?"block":"none",custom768:"desktop"===i?"block":"none"},position:"relative"},children:"The Marketplace"===a?(0,n.jsx)(d.Z,{sx:{...s,backgroundColor:p?c.palette.background.paper:"rgba(255, 255, 255, 1)",zIndex:1},children:(0,n.jsx)(h.Z,{screen:i,type:o,ad:r})}):(0,n.jsx)(h.Z,{screen:i,type:o,ad:t})})};var G=()=>{let e=(0,l.Z)(),t="dark"===e.palette.mode,[r,a]=(0,i.useState)(null),[h,g]=(0,i.useState)(!1),[m,b]=(0,i.useState)(!1),v={display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},y=(0,i.useCallback)(e=>a(e),[]),j=(0,u.U)(e=>e.object),[w,k]=(0,i.useState)(j.type),[C,S]=(0,i.useState)(j.playlist),Z=(0,u.U)(e=>e.toggleLastPlayed),F=(0,u.U)(e=>e.toggleIsPlaying),I=(0,u.U)(e=>e.updateIsPlaying),M=(0,u.U)(e=>e.updateType),T=(0,u.U)(e=>e.setPlayerHeight),R=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=R.current;if(!e)return;let t=()=>{let t=e.getBoundingClientRect().top;e.querySelectorAll("*").forEach(e=>{let r=e.getBoundingClientRect();r.height>0&&r.top<t&&(t=r.top)}),T(Math.max(0,window.innerHeight-t))};t();let r=new ResizeObserver(t);
1r.observe(e),e.querySelectorAll("*").forEach(e=>r.observe(e));let n=new MutationObserver(()=>{e.querySelectorAll("*").forEach(e=>r.observe(e)),t()});return n.observe(e,{childList:!0,subtree:!0}),window.addEventListener("resize",t),()=>{r.disconnect(),n.disconnect(),window.removeEventListener("resize",t)}},[w,h,T]),(0,i.useEffect)(()=>()=>T(0),[T]);let{user:E}=(0,i.useContext)(D.V),{podcastHistory:L,playedLive:z}=(0,i.useContext)(P.SessionContext);return(0,i.useEffect)(()=>{let e=u.U.subscribe(e=>{let t=e.object.playlist;0===t.length&&localStorage.getItem("playlist")&&(t=JSON.parse(localStorage.getItem("playlist")||"")),k(e.object.type),S(t)});return()=>e()},[]),(0,i.useEffect)(()=>{w===f.S9.LIVESTREAM&&!j.isPlaying&&m&&(Z(f.S9.PODCAST,0,C),k(f.S9.PODCAST),b(!1))},[m,j.isPlaying,C,w,Z]),(0,n.jsx)(x.Z,{direction:"up",in:w!==f.S9.CLOSE,mountOnEnter:!0,unmountOnExit:!0,children:(0,n.jsxs)(d.Z,{ref:R,sx:{position:"fixed",display:"block",width:"100%",bottom:0,left:0,zIndex:1299},children:[(0,n.jsxs)(d.Z,{sx:{maxWidth:1440,margin:"0 auto",display:"flex"},children:[h?(0,n.jsx)(d.Z,{sx:{width:"auto",height:{xs:"auto",custom768:"40px"},backgroundColor:t?e.palette.background.paper:"#FFF",position:"absolute",bottom:"53px",right:"0",borderTop:t?"1px solid #444":"1px solid #D4D4D4",borderLeft:t?"1px solid #444":"1px solid #D4D4D4",borderTopLeftRadius:"6px",zIndex:9999},children:(0,n.jsxs)(d.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:"100%",padding:"0 10px",cursor:"pointer"},onClick:()=>g(!1),children:[(0,n.jsx)(d.Z,{sx:{display:{xs:"none",custom768:"block"},paddingRight:"10px"},children:(0,n.jsx)(Y,{ad:X.brandAd,altAd:X.brandAdMarketplace,screen:"desktop",type:"branding",isMarketPlace:r,altAdsStyling:v})}),(0,n.jsx)(d.Z,{sx:{display:{xs:"block",custom768:"none"},paddingRight:"10px"},children:(0,n.jsx)(Y,{ad:X.brandAdMobile,altAd:X.brandAdMobileMarketplace,screen:"mobile",type:"branding",isMarketPlace:r,altAdsStyling:v})}),(0,n.jsx)(s(),{path:o.Waq,size:1,color:t?e.palette.text.primary:"000"})]})}):(0,n.jsx)(d.Z,{sx:{width:"100%",height:"auto",backgroundColor:t?e.palette.background.paper:"#FFF",position:"absolute",bottom:"52px",left:"0",borderTop:t?"1px solid #444":"1px solid #D4D4D4",borderLeft:t?"1px solid #444":"1px solid #D4D4D4",zIndex:1300},children:(0,n.jsxs)(d.Z,{sx:{width:"100%",height:"100%",padding:"30px 50px",position:"relative"},children:[(0,n.jsxs)(d.Z,{sx:{position:"absolute",top:"10px",right:{xs:"20px",custom768:"60px"},display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>g(!0),children:[(0,n.jsx)(c.Z,{sx:{fontSize:"14px",fontWeight:400,color:t?e.palette.text.primary:"#000",fontStyle:"italic"},children:"Close"}),(0,n.jsx)(s(),{path:o.CW,size:1,color:t?e.palette.text.primary:"000"})]}),(0,n.jsx)(Y,{ad:X.desktopAd,altAd:X.desktopAdMarketplace,screen:"desktop",type:"player_banner",isMarketPlace:r,altAdsStyling:v}),(0,n.jsx)(Y,{ad:X.mobileAd,altAd:X.mobileAdMarketplace,screen:"mobile",type:"player_banner",isMarketPlace:r,altAdsStyling:v})]})}),z&&(0,n.jsxs)(d.Z,{onClick:()=>{w!==f.S9.LIVESTREAM&&(M(f.S9.LIVESTREAM),k(f.S9.LIVESTREAM))},sx:{maxHeight:"22px",backgroundColor:w===f.S9.LIVESTREAM?t?e.palette.background.paper:"rgba(255, 255, 255, 1)":t?"rgba(100, 100, 100, 1)":"rgba(212, 212, 212, 1)",fontSize:"12px",lineHeight:"14.4px",padding:"4px 20px",borderTopLeftRadius:"6px",borderTopRightRadius:"6px",borderTop:t?"1px solid #444":"1px solid #D4D4D4",borderLeft:t?"1px solid #444":"1px solid #D4D4D4",zIndex:1002,display:"flex",alignItems:"center",justifyContent:"center",borderRight:t?"1px solid #444":"1px solid #D4D4D4",color:w===f.S9.LIVESTREAM?t?e.palette.text.primary:"#000000":t?e.palette.text.secondary:"#FFFFFF",cursor:"pointer"},children:[(0,n.jsx)(d.Z,{sx:{background:"red",width:"6px",height:"6px",borderRadius:"100px",margin:"-2px 6px 0px 0px",animationName:"blink",animationDuration:"1.15s",animationIterationCount:"infinite"}}),"Live player"]}),(0,n.jsx)(p.d,{onClickAway:()=>{},children:(0,n.jsx)(d.Z,{zIndex:1001,children:(w===f.S9.PODCAST||C.length>0)&&(0,n.jsx)(d.Z,{onClick:()=>{!E&&L.length>5?I(!1):w===f.S9.LIVESTREAM?(F(!1),b(!0)):(Z(f.S9.PODCAST,0,C),k(f.S9.PODCAST))},sx:{maxHeight:"22px",backgroundColor:w===f.S9.PODCAST?t?e.palette.background.paper:"rgba(255, 255, 255, 1)":t?"rgba(100, 100, 100, 1)":"rgba(212, 212, 212, 1)",fontSize:"12px",lineHeight:"14.4px",padding:"4px 20px 4px 30px",borderTopLeftRadius:"6px",borderTopRightRadius:"6px",marginLeft:"-10px",borderTop:w===f.S9.PODCAST?t?"1px solid #444":"1px solid #D4D4D4":"unset",borderLeft:w===f.S9.PODCAST?t?"1px solid #444":"1px solid #D4D4D4":"unset",borderRight:w===f.S9.PODCAST?t?"1px solid #444":"1px solid #D4D4D4":"unset",borderBottom:w===f.S9.PODCAST?t?"1px solid ".concat(e.palette.background.paper):"1px solid #FFFFFF":"unset",color:w===f.S9.PODCAST?t?e.palette.text.primary:"#000000":t?e.palette.text.secondary:"#FFFFFF",cursor:"pointer"},children:"Podcast player"})})})]}),(0,n.jsxs)(d.Z,{sx:{position:"relative",display:"block",borderTop:t?"1px solid #444":"1px solid #D4D4D4",backgroundColor:t?e.palette.background.paper:"#FFF",zIndex:1299},children:[w===f.S9.LIVESTREAM&&(0,n.jsx)(N,{}),w===f.S9.PODCAST&&(0,n.jsx)(W,{setIsMarketPlace:y})]})]})})}},99611:function(e,t,r){"use strict";var n=r(57437),i=r(2265),o=r(63832),a=r(46387),s=r(41904),l=r(72910);t.default=function(){let[e,t]=(0,i.useState)(!1),r=(0,s.U)(e=>e.object.type)!==l.S9.CLOSE,c=(0,s.U)(e=>
1e.playerHeight),d=r?Math.max(0,c+12-24):0,p=(e,t)=>"clamp(".concat(e,"px, ").concat(e+d,"px, calc(100dvh - ").concat(58+t,"px))");return((0,i.useEffect)(()=>{let e=()=>{window.scrollY>500?t(!0):t(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),e)?(0,n.jsx)(o.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:{xs:"56px",custom768:"64px",custom1100:"72px",custom1400:"80px"},width:{xs:"44px",custom768:"50px",custom1100:"55px",custom1400:"60px"},borderTopLeftRadius:"20px",borderBottomLeftRadius:"20px",border:"1px solid #fff",borderRight:"none",backgroundColor:"#000",position:"fixed",bottom:{xs:p(120,56),custom768:p(142,64),custom1100:p(184,72),custom1400:p(206,80)},transition:"bottom 0.25s ease",right:"0px",zIndex:1299,padding:"10px",paddingLeft:"5px",paddingRight:{xs:"6px",custom768:"8px",custom1100:"10px",custom1400:"10px"},cursor:"pointer","&:hover":{backgroundColor:"#ffc121",borderColor:"#000",".back-to-top-text":{color:"#000"}}},onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:(0,n.jsx)(a.Z,{className:"back-to-top-text",sx:{color:"#ffc121",fontSize:{xs:"11px",custom768:"13px",custom1100:"14px",custom1400:"16px"},fontWeight:600,lineHeight:"1.2",textAlign:"center"},children:"Back To Top"})}):null}},96449:function(e,t,r){"use strict";var n=r(57437),i=r(31691),o=r(63832),a=r(46387);t.Z=()=>{let e=(0,i.Z)();return(0,n.jsx)(o.Z,{sx:{width:"100%",textAlign:"center"},children:(0,n.jsx)(a.Z,{variant:"body2",sx:{fontSize:"0.7rem",color:"dark"===e.palette.mode?e.palette.text.secondary:"#cccccc",paddingY:2},children:"Copyright \xa9 2025 BFM Media Sdn. Bhd. 200601017962. All rights reserved"})})}},89521:function(e,t,r){"use strict";var n=r(57437),i=r(34293),o=r(76605),a=r(12699),s=r.n(a),l=r(31691),c=r(63832),d=r
1(46387),p=r(62069),x=r(27648),u=r(96449);t.default=e=>{let{staticPages:t}=e;(0,l.Z)();let r=null==t?void 0:t.find(e=>"careers"===e.page),{canInstall:a,promptInstall:h}=(0,i.a)();return(0,n.jsxs)(c.Z,{sx:{width:"100%",height:"100%",color:"#fff",margin:"0 auto",backgroundColor:"#000000",background:"black"},children:[(0,n.jsxs)(c.Z,{sx:{maxWidth:"1440px",margin:"0 auto"},children:[(0,n.jsxs)(c.Z,{sx:{padding:"80px 10px",display:"flex",gap:"20px"},children:[(0,n.jsx)(d.Z,{sx:{fontWeight:600,fontSize:{xs:"30px",custom768:"50px",md:"80px"},lineHeight:{xs:"30px",custom768:"50px",md:"80px"},letterSpacing:"-1%",whiteSpace:"nowrap",color:"#fff"},children:"BFM 89.9"}),(0,n.jsx)(d.Z,{sx:{fontWeight:600,fontSize:{xs:"30px",custom768:"50px",md:"80px"},lineHeight:{xs:"30px",custom768:"50px",md:"80px"},letterSpacing:"-1%",color:"#626262"},children:"The Business Station"})]}),(0,n.jsx)(c.Z,{sx:{borderTop:"1px solid #626262",padding:"60px 30px"},children:(0,n.jsxs)(p.ZP,{container:!0,spacing:2,children:[(0,n.jsx)(p.ZP,{item:!0,xs:4,sm:4,md:2,paddingTop:"20px !important",children:(0,n.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"column",gap:"40px"},children:[(0,n.jsx)(d.Z,{sx:{fontSize:"30px",lineHeight:"36px",letterSpacing:"-1%",fontWeight:600,color:"#626262"},children:"Clients"}),(0,n.jsx)(c.Z,{sx:{fontSize:"16px",fontWeight:600,lineHeight:"22.4px",color:"#fff",display:"flex",flexDirection:"column",gap:"6px","& a":{color:"#fff","&:hover":{textDecoration:"underline",textUnderlineOffset:"3px"}}},children:(0,n.jsx)(x.default,{href:"/advertise-with-us",children:"Advertise with us"})})]})}),(0,n.jsx)(p.ZP,{item:!0,xs:4,sm:4,md:2,paddingTop:"20px !important",children:(0,n.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"column",gap:"40px"},children:[(0,n.jsx)(d.Z,{sx:{fontSize:"30px",lineHeight:"36px",letterSpacing:"-1%",fontWeight:600,color:"#626262"},children:"Users"}),(0,n.jsxs)(c.Z,{sx:{fontSize:"16px",fontWeight:600,lineHeight:"22.4px",color:"#fff",display:"flex",flexDirection:"column",gap:"6px","& a":{color:"#fff","&:hover":{textDecoration:"underline",textUnderlineOffset:"3px"}}},children:[(0,n.jsx)(x.default,{href:(null==r?void 0:r.redirect)||"/carrers",target:"_blank",children:"Careers"}),(0,n.jsx)(x.default,{href:"/about-us",children:"About Us"}),(0,n.jsx)(x.default,{href:"/terms-and-conditions",children:"Terms & Conditions"}),(0,n.jsx)(x.default,{href:"/privacy-policy",children:"Privacy Policy"}),(0,n.jsx)(x.default,{href:"/contact-us",children:"Contact Us"}),(0,n.jsx)(x.default,{href:"/faq",children:"FAQ"}),a&&(0,n.jsx)(c.Z,{onClick:h,sx:{cursor:"pointer",fontWeight:600,fontSize:"16px",lineHeight:"22.4px","&:hover":{textDecoration:"underline",textUnderlineOffset:"3px"}},children:"Install BFM webapp"}),(0,n.jsx)(x.default,{href:"https://www.bfm.my/community",target:"_blank",children:(0,n.jsx)(c.Z,{sx:{color:"#FFC121","&:hover":{color:"#FFC121",textDecoration:"underline",textUnderlineOffset:"3px"}},children:"Join our community"})}),(0,n.jsx)(x.default,{href:"/download-app",children:(0,n.jsxs)(c.Z,{sx:{display:{xs:"flex",custom768:"flex",md:"none"},alignItems:"center",gap:"3px",color:"#FFC121","&:hover":{color:"#FFC121",textDecoration:"underline",textUnderlineOffset:"3px"}},children:["Download app",(0,n.jsx)(s(),{path:o.C7j,size:.6,color:"#FFC121"})]})})]})]})}),(0,n.jsx)(p.ZP,{item:!0,xs:4,sm:4,md:2,paddingTop:"20px !important",children:(0,n.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"column",gap:"40px"},children:[(0,n.jsx)(d.Z,{sx:{fontSize:"30px",lineHeight:"36px",letterSpacing:"-1%",fontWeight:600,color:"#626262"},children:"Platforms"}),(0,n.jsxs)(c.Z,{sx:{fontSize:"16px",fontWeight:600,lineHeight:"22.4px",color:"#fff",display:"flex",flexDirection:"column",gap:"6px","& a":{color:"#fff","&:hover":{textDecoration:"underline",textUnderlineOffset:"3px"}}},children:[(0,n.jsx)(x.default,{href:"https://www.facebook.com/BFMradio",target:"_blank",children:"Facebook"}),(0,n.jsx)(x.default,{href:"https://www.instagram.com/bfmradio",target:"_blank",children:"Instagram"}),(0,n.jsx)(x.default,{href:"https://x.com/bfmradio",target:"_blank",children:"X (Twitter)"}),(0,n.jsx)(x.default,{href:"https://www.tiktok.com/@bfmradio",target:"_blank",children:"Tiktok"}),(0,n.jsx)(x.default,{href:"https://www.linkedin.com/company/bfmmedia/",target:"_blank",children:"Linked In"}),(0,n.jsx)(x.default,{href:"https://www.threads.net/@bfmradio",target:"_blank",children:"Threads"})]})]})}),(0,n.jsx)(p.ZP,{item:!0,xs:6,sm:6,md:3,sx:{paddingTop:{xs:"80px !important",custom768:"80px !important",md:"20px !important"}}}
1),(0,n.jsx)(p.ZP,{item:!0,xs:6,sm:6,md:3,sx:{display:{xs:"none",custom768:"none",md:"block"},paddingTop:{md:"20px !important"}},children:(0,n.jsx)(x.default,{href:"/download-app",children:(0,n.jsxs)(c.Z,{sx:{display:"flex",gap:"5px"},children:[(0,n.jsx)(d.Z,{sx:{fontSize:"30px",lineHeight:"36px",letterSpacing:"-1%",fontWeight:600,color:"#FFC121",cursor:"pointer","&:hover":{textDecoration:"underline",textUnderlineOffset:"5px"}},children:"Download app"}),(0,n.jsx)(s(),{path:o.C7j,size:.8,color:"#FFC121"})]})})})]})})]}),(0,n.jsx)(u.Z,{})]})}},37897:function(e,t,r){"use strict";r.d(t,{default:function(){return I}});var n=r(57437),i=r(34293),o=r(76605),a=r(12699),s=r.n(a),l=r(63832),c=r(46387),d=r(27648),p=r(96449),x=r(59832),u=r(31691);function h(e){let{width:t,height:r,color:i}=e;return(0,n.jsxs)("svg",{fill:i||"#FFF",width:t,height:r,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"Facebook"}),(0,n.jsx)("path",{d:"M22.675 0H1.325C.593 0 0 .593 0 1.325v21.351C0 23.407.593 24 1.325 24H12.82v-9.294H9.692v-3.622h3.128V8.413c0-3.1 1.892-4.788 4.657-4.788 1.325 0 2.464.099 2.795.143v3.24h-1.918c-1.504 0-1.797.715-1.797 1.765v2.313h3.594l-.468 3.622h-3.126V24h6.127c.732 0 1.325-.593 1.325-1.324V1.325C24 .593 23.407 0 22.675 0z"})]})}var f=function(){let e=(0,u.Z)();return(0,n.jsx)(d.default,{href:"https://www.facebook.com/BFMradio",target:"_blank",children:(0,n.jsx)(x.Z,{sx:{backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"7px","& svg":{color:"dark"===e.palette.mode?e.palette.text.primary:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}},children:(0,n.jsx)(h,{width:"22px",height:"22px"})})})};function g(e){let{width:t,height:r,color:i}=e;return(0,n.jsxs)("svg",{fill:i||"#FFF",width:t,height:r,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"Instagram"}),(0,n.jsx)("path",{d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"})]})}var m=function(){let e=(0,u.Z)();return(0,n.jsx)(d.default,{href:"https://www.instagram.com/bfmradio/",target:"_blank",children:(0,n.jsx)(x.Z,{sx:{backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"7px","& svg":{color:"dark"===e.palette.mode?e.palette.text.primary:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}},children:(0,n.jsx)(g,{width:"22px",height:"22px"})})})};function b(e){let{width:t,height:r,color:i}=e;return(0,n.jsxs)("svg",{fill:i||"#FFF",width:t,height:r,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"LinkedIn"}),(0,n.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})]})}var v=function(){let e=(0,u.Z)();return(0,n.jsx)(d.default,{href:"https://www.linkedin.com/company/bfmmedia/",target:"_blank",children:(0,n.jsx)(x.Z,{sx:{backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"7px","& svg":{color:"dark"===e.palette.mode?e.palette.text.primary:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}},children:(0,n.jsx)(b,{width:"22px",height:"22px"})})})};function y(e){let{width:t,height:r,color:i}=e;return(0,n.jsx)("svg",{width:t,height:r,viewBox:"0 0 192 192",xmlns:"http://www.w3.org/2000/svg",fill:i||"#FFF","aria-label":"Threads",children:(0,n.jsx)("path",{d:"M141.537 88.9883C140.71 88.5919 139.87 88.2104 139.019 87.8451C137.537 60.5382 122.616 44.905 97.5619 44.745C97.4484 44.7443 97.3355 44.7443 97.222 44.7443C82.2364 44.7443 69.7731 51.1409
162.102 62.7807L75.881 72.2328C81.6116 63.5383 90.6052 61.6848 97.2286 61.6848C97.3051 61.6848 97.3819 61.6848 97.4576 61.6855C105.707 61.7381 111.932 64.1366 115.961 68.814C118.893 72.2193 120.854 76.925 121.825 82.8638C114.511 81.6207 106.601 81.2385 98.145 81.7233C74.3247 83.0954 59.0111 96.9879 60.0396 116.292C60.5615 126.084 65.4397 134.508 73.775 140.011C80.8224 144.663 89.899 146.938 99.3323 146.423C111.79 145.74 121.563 140.987 128.381 132.296C133.559 125.696 136.834 117.143 138.28 106.366C144.217 109.949 148.617 114.664 151.047 120.332C155.179 129.967 155.42 145.8 142.501 158.708C131.182 170.016 117.576 174.908 97.0135 175.059C74.2042 174.89 56.9538 167.575 45.7381 153.317C35.2355 139.966 29.8077 120.682 29.6052 96C29.8077 71.3178 35.2355 52.0336 45.7381 38.6827C56.9538 24.4249 74.2039 17.11 97.0132 16.9405C119.988 17.1113 137.539 24.4614 149.184 38.788C154.894 45.8136 159.199 54.6488 162.037 64.9503L178.184 60.6422C174.744 47.9622 169.331 37.0357 161.965 27.974C147.036 9.60668 125.202 0.195148 97.0695 0H96.9569C68.8816 0.19447 47.2921 9.6418 32.7883 28.0793C19.8819 44.4864 13.2244 67.3157 13.0007 95.9325L13 96L13.0007 96.0675C13.2244 124.684 19.8819 147.514 32.7883 163.921C47.2921 182.358 68.8816 191.806 96.9569 192H97.0695C122.03 191.827 139.624 185.292 154.118 170.811C173.081 151.866 172.51 128.119 166.26 113.541C161.776 103.087 153.227 94.5962 141.537 88.9883ZM98.4405 129.507C88.0005 130.095 77.1544 125.409 76.6196 115.372C76.2232 107.93 81.9158 99.626 99.0812 98.6368C101.047 98.5234 102.976 98.468 104.871 98.468C111.106 98.468 116.939 99.0737 122.242 100.233C120.264 124.935 108.662 128.946 98.4405 129.507Z"})})}var j=function(){let e=(0,u.Z)();return(0,n.jsx)(d.default,{href:"https://www.threads.net/@bfmradio",target:"_blank",children:(0,n.jsx)(x.Z,{sx:{backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"7px","& svg":{color:"dark"===e.palette.mode?e.palette.text.primary:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}},children:(0,n.jsx)(y,{width:"22px",height:"22px"})})})};function w(e){let{width:t,height:r,color:i}=e;return(0,n.jsxs)("svg",{fill:i||"#FFF",width:t,height:r,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"TikTok"}),(0,n.jsx)("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"})]})}var k=function(){let e=(0,u.Z)();return(0,n.jsx)(d.default,{href:"https://www.tiktok.com/@bfmradio",target:"_blank",children:(0,n.jsx)(x.Z,{sx:{backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"7px","& svg":{color:"dark"===e.palette.mode?e.palette.text.primary:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}},children:(0,n.jsx)(w,{width:"22px",height:"22px"})})})};function C(e){let{width:t,height:r,color:i}=e;return(0,n.jsxs)("svg",{fill:i||"#FFF",width:t,height:r,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"X"}),(0,n.jsx)("path",{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"})]})}var S=function(){let e=(0,u.Z)();return(0,n.jsx)(d.default,{href:"https://x.com/bfmradio",target:"_blank",children:(0,n.jsx)(x.Z,{sx:{backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"7px","& svg":{color:"dark"===e.palette.mode?e.palette.text.primary:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}},children:(0,n.jsx)(C,{width:"22px",height:"22px"})})})};function Z(e){let{width:t,height:r,color:i}=e;return(0,n.jsxs)("svg",{fill:i||"#FFF",width:t,height:r,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"YouTube"}),(0,n.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})]})}var F=function(){let e=(0,u.Z)();return(0,n.jsx)(d.default,{href:"https://www.youtube.com/BFMVDO/",target:"_blank",children:(0,n.jsx)(x.Z,{sx:{backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"7px","& svg":{color:"dark"===e.palette.mode?e.palette.text.primary:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}},children:(0,n.jsx)(Z,{width:"22px",height:"22px"})})})},I=e=>{let{staticPages:t}=e,r=t.find(e=>"careers"===e.page),{canInstall:a,promptInstall:x}=(0,i.a)();return(0,n.jsxs)(l.Z,{sx:{width:"100%",backgroundColor:"#000"},children:[(0,n.jsx)(l.Z,{sx:{width:"100%",height:"100%",color:"#fff"},children:(0,n.jsxs)(l.Z,{sx:{padding:"100px 11px",paddingTop:"50px"},children:[(0,n.jsxs)(l.Z,{sx:{display:"flex",gap:"10px",margin:"38px 0px"},children:[(0,n.jsxs)(l.Z,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",gap:"20px"},children:[(0,n.jsx)(c.Z,{sx:{fontSize:"28px",lineHeight:"36px",letterSpacing:"-1%",fontWeight:600,color:"#626262"},children:"Users"}),(0,n.jsxs)(l.Z,{sx:{fontSize:"16px",fontWeight:600,lineHeight:"22.4px",color:"#fff",display:"flex",flexDirection:"column",gap:"15p
1x","& a":{color:"#fff"}},children:[(0,n.jsx)(d.default,{href:(null==r?void 0:r.redirect)||"/careers",target:"_blank",children:"Careers"}),(0,n.jsx)(d.default,{href:"/about-us",children:"About Us"}),(0,n.jsx)(d.default,{href:"/terms-and-conditions",children:"Terms & Conditions"}),(0,n.jsx)(d.default,{href:"/privacy-policy",children:"Privacy Policy"}),(0,n.jsx)(d.default,{href:"/contact-us",children:"Contact Us"}),(0,n.jsx)(d.default,{href:"/faq",children:"FAQ"}),a&&(0,n.jsx)(l.Z,{onClick:x,sx:{cursor:"pointer",fontWeight:600,fontSize:"16px",lineHeight:"22.4px"},children:"Install BFM webapp"}),(0,n.jsx)(d.default,{href:"https://www.bfm.my/community",target:"_blank",children:(0,n.jsx)(l.Z,{sx:{color:"#FFC121"},children:"Join our community"})}),(0,n.jsx)(d.default,{href:"/download-app",children:(0,n.jsxs)(l.Z,{sx:{color:"#FFC121",position:"relative"},children:["Download app",(0,n.jsx)(s(),{path:o.C7j,size:"15px",color:"#FFC121",style:{width:"15px",height:"15px",position:"absolute",top:"-3px",marginLeft:"2px"}})]})})]})]}),(0,n.jsxs)(l.Z,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",gap:"20px"},children:[(0,n.jsx)(c.Z,{sx:{fontSize:"28px",lineHeight:"36px",letterSpacing:"-1%",fontWeight:600,color:"#626262"},children:"Clients"}),(0,n.jsx)(l.Z,{sx:{fontSize:"16px",fontWeight:600,lineHeight:"22.4px",color:"#fff",display:"flex",flexDirection:"column",gap:"15px","& a":{color:"#fff"}},children:(0,n.jsx)(d.default,{href:"/advertise-with-us",children:"Advertise with us"})})]})]}),(0,n.jsxs)(l.Z,{sx:{display:"flex",flexDirection:"column",gap:"10px",margin:"40px 0px",marginBottom:"0px"},children:[(0,n.jsx)(c.Z,{sx:{fontSize:"30px",lineHeight:"36px",letterSpacing:"-1%",fontWeight:600,color:"#626262",marginBottom:"20px"},children:"Follow us"}),(0,n.jsxs)(l.Z,{sx:{display:"flex",gap:"20px"},children:[(0,n.jsx)(m,{}),(0,n.jsx)(k,{}),(0,n.jsx)(F,{}),(0,n.jsx)(S,{})]}),(0,n.jsxs)(l.Z,{sx:{display:"flex",gap:"20px",paddingTop:"10px"},children:[(0,n.jsx)(v,{}),(0,n.jsx)(f,{}),(0,n.jsx)(j,{})]})]})]})}),(0,n.jsx)(p.Z,{})]})}},47026:function(e,t,r){"use strict";r.d(t,{default:function(){return K}});var n=r(57437),i=r(31269),o=r(71350),a=r(71495),s=r(63832),l=r(24021),c=r(90486),d=r(37065),p=r.n(d),x=r(33145),u=r(27648),h=r(2265),f=r(29501),g=r(31869),m=r(16210),b=r(12699),v=r.n(b),y=r(76605),j=r(59832);let w=(0,m.ZP)(e=>(0,n.jsx)(j.Z,{...e,children:(0,n.jsx)(v(),{path:y.$Qi,size:"24px"})}))(e=>{let{theme:t}=e;return{backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"5px","& svg":{color:"dark"===t.palette.mode?t.palette.text.primary:"#FFF"},"& span.MuiTouchRipple-root":{color:"dark"===t.palette.mode?t.palette.text.primary:"#000000"}}}),k=(0,m.ZP)(e=>(0,n.jsxs)(j.Z,{...e,children:[e.value&&(0,n.jsx)(v(),{path:y.aIO,size:"24px",style:{color:"#ffc121",caretColor:"#ffc121"}}),!e.value&&(0,n.jsx)(v(),{path:y.I0v,size:"24px"})]}))(e=>{let{theme:t}=e;return{backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"5px","& svg":{color:"dark"===t.palette.mode?t.palette.text.primary:"#FFF"},"& span.MuiTouchRipple-root":{color:"dark"===t.palette.mode?t.palette.text.primary:"#000000"}}});var C=r(60149),S=r(41327),Z=r(10020),F=r(39034);let I=(0,m.ZP)(e=>(0,n.jsx)(j.Z,{...e,children:(0,n.jsx)(v(),{path:y.r5M,size:"24px"})}))({backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"5px","& svg":{color:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}});var M=function(e){let{setHideSearchBar:t,...r}=e,i=(0,C.tv)(),o=(0,h.useRef)(null),a=()=>{r.value&&(t(e=>!e),i.push("/search?q=".concat(r.value)))};return(0,h.useEffect)(()=>{r.autoFocus&&o.current&&setTimeout(()=>{var e;null===(e=o.current)||void 0===e||e.focus()},0)},[r.autoFocus]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(S.Z,{sx:{minHeight:"30px",width:"100%","& label.MuiFormLabel-root":{"&.MuiInputLabel-root":{"&.Mui-focused":{color:"#FFFFFF","&.Mui-error":{color:"#ff5252"}},"&.Mui-error":{color:"#ff5252","& span.MuiFormLabel-asterisk":{color:"#ff5252"}}}},"& div.MuiInputBase-root":{marginTop:"0px","&.MuiInput-root::after":{borderBottom:"none"},"& input.MuiInputBase-input":{color:"#ffc121",padding:"4px 8px",fontSize:"14px"},"&.Mui-error":{"& fieldset.MuiOutlinedInput-notchedOutline":{border:"none"}}},"& div.MuiOutlinedInput-root":{"&.Mui-focused":{"& fieldset.MuiOutlinedInput-notchedOutline":{border:"none"}},"&.Mui-error":{"&.Mui-focused fieldset":{border:"none"}}}},fullWidth:!0,children:[(0,n.jsx)(Z.Z,{htmlFor:"search-input",shrink:!1,sx:{fontSize:"14px",color:"#FFFFFF",top:"4px",left:"8px",transform:"none"},children:r.value?"":r.label}),(0,n.jsx)(s.Z,{children:(0,n.jsx)(F.Z,{id:"search-input",inputRef:o,onChange:r.onChange,value:r.value,onKeyDown:e=>{"Enter"===e.key&&a()},fullWidth:!0,size:"small"})}),(0,n.jsx)(s.Z,{sx:{borderBottom:"1px solid #FFF",position:"absolute",width:"100%",bottom:"1px"}})]}),(0,n.jsxs)(s.Z,{sx:{display:"flex",flexGrow:"1 !important",alignItems:"end",justifyContent:"end"},children:[(0,n.jsx)(k,{onClick:a}),(0,n.jsx)(I,{onClick:()=>{t(e=>!e)}})]})]})};let T=(0,m.ZP)(e=>(0,n.jsx)(j.Z,{...e,disableRipple:!0,children:(0,n.jsx)(v(),{path:y.Waq,size:"24px"})}))({backgroundColor:"transparent !important",borderColor:"transparent !important",padding:"5px","& svg":{color:"#FFF"},"& span.MuiTouchRipple-root":{color:"#FFF"}}),R=(0,m.ZP)(e=>(0,n.jsx)(j.Z,{...e,disableRipple:!0,children:(0,n.jsx)(v(),{path:y.CW,size:"24px"})}))({backgroundColor:"transparent !important",borderColor:"transparent !important",padding:"5px","& svg":{color:"#FFF"},"& span.MuiTouchRipple-root":{color:"#FFF"}});var E=r(35389),L=r(41904);let z=(0,m.ZP)(e=>{let{play:t,...r}=e,i=(0,L.U)(e=>e.object),[o,a]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{!0==i.isLoading?a(!0):!1==i.isLoading&&a(!1)},[i.isLoading]),(0,n.jsx)(j.Z,{...r,disableRipple:!0,children:o?(0,n.jsx)(E.Z,{size:20,thickness:2,sx:{color:"#000"}}):(0,n.jsx)(n.Fragment,{children:t?(0,n.jsx)(v(),{path:y.Wa1,size:"20px",color:"#000"}):(0,n.jsx)(v(),{path:y._86,size:"20px",color:"#000"})})})})({backgroundColor:"#ffc121 !important",borderColor:"#ffc121 !important",padding:"6px","& svg":{color:"#000000"},"& span.MuiTouchRipple-root":{color:"#000000"}});var D=r(4344),A=r(72910),P=r(67122),_=r(85831),H=r(31691);
1function W(e){let{color:t}=e,r=(0,H.Z)(),i="dark"===r.palette.mode,o=t||(i?r.palette.text.primary:"#000");return(0,n.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M20.4287 3.14286L14.9287 0V6.28571L20.4287 3.14286Z",fill:o}),(0,n.jsx)("path",{d:"M1.57129 4.71387H10.9999",stroke:o}),(0,n.jsx)("path",{d:"M1.57129 14.1426H20.4284",stroke:o}),(0,n.jsx)("path",{d:"M1.57129 9.42871H20.4284",stroke:o}),(0,n.jsx)("path",{d:"M1.57129 18.8574H20.4284",stroke:o})]})}var B=r(17162),O=e=>{let{showDetails:t}=e,[r,i]=(0,h.useState)(!1),[o,a]=(0,h.useState)(!1),[c,d]=(0,h.useState)(!0),p=(0,L.U)(e=>e.updateType),f=(0,L.U)(e=>e.object),g=(0,L.U)(e=>e.toggleIsPlaying),[m,b]=(0,h.useState)(!1),[v,y]=(0,h.useState)("initial"),{ready:j,currentShow:w,nextShow:k,liveShowImage:C,nextShowImage:S}=(0,P.Y)(t);return(0,h.useEffect)(()=>{setTimeout(()=>{b(!0),y("initial"),setTimeout(()=>{y("changed")},4e3)},5e3)},[j]),(0,h.useEffect)(()=>{f.type===A.S9.LIVESTREAM?i(f.isPlaying):f.type===A.S9.PODCAST?i(!1):f.type===A.S9.CLOSE&&i(!1)},[f]),(0,n.jsx)(l.d,{onClickAway:()=>{a(!1),d(!0)},children:(0,n.jsxs)(s.Z,{children:[(0,n.jsx)(s.Z,{sx:{width:"100%",position:"absolute",zIndex:1200,backgroundColor:"#000000",borderColor:"#000000",borderBottom:"1px solid #1e1e1e",height:"60px",top:0,marginTop:"50px"},children:c&&j&&w&&(0,n.jsxs)(s.Z,{sx:{padding:"12px",display:"flex",alignItems:"center"},children:[(0,n.jsx)(z,{play:r,onClick:()=>{f.type===A.S9.LIVESTREAM?g():(p(A.S9.LIVESTREAM),g(!0)),i(e=>!e)}}),(0,n.jsxs)(s.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:[(0,n.jsxs)(s.Z,{sx:{display:"flex",gap:"15px",paddingLeft:"15px",width:"70%"},children:[(0,n.jsxs)(s.Z,{sx:{fontSize:"14px",color:"#ff3434",display:"flex",alignItems:"center",width:"52px",flex:"0 0 52px"},children:[(0,n.jsx)(s.Z,{sx:{background:"red",width:"8px",height:"8px",borderRadius:"100px",margin:"0px 5px -2px 8px",animationName:"blink",animationDuration:"1.15s",animationIterationCount:"infinite","@keyframes blink":{"0%":{opacity:0},"50%":{opacity:1},"100%":{opacity:0}}}}),(0,n.jsx)(s.Z,{sx:{marginRight:"6px"},children:"Live"})]}),(0,n.jsxs)(s.Z,{sx:{color:"#FFF",border:"1px solid black",borderRadius:"5px",overflow:"hidden",position:"relative",idth:"100%",flex:"1 1 100%",display:"flex",height:"22px"},children:[(0,n.jsx)(s.Z,{sx:{top:"0",right:"0",width:"50px",height:"100%",background:"linear-gradient(to right, rgba(255,255,255,0) 30%,rgba(0,0,0,1) 100%)",position:"absolute",zIndex:1}}),(0,n.jsx)(s.Z,{id:"animated-box",sx:{fontSize:"14px",animation:m?"initial"===v?"my-animation 4s linear infinite":"my-animation-changed 8s linear infinite":"none",whiteSpace:"nowrap",display:"inline-flex",width:"70%","@keyframes my-animation":{from:{transform:"translateX(0%)"},to:{transform:"translateX(-100%)"}},"@keyframes my-animation-changed":{from:{transform:"translateX(100%)"},to:{transform:"translateX(-100%)"}}},children:(0,n.jsx)(s.Z,{component:"span",sx:{flex:"1 1 100%"},children:w.title})})]})]}),(0,n.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,n.jsx)(s.Z,{sx:{zIndex:2001,marginTop:"5px",marginRight:"-8px"},children:(0,n.jsx)(D.Z,{shareLink:"".concat("https://www.bfm.my/","live-schedule"),color:"white",marginTop:"0px",height:"16px",width:"16px",placement:"top",pointer:!1})}),(0,n.jsx)(s.Z,{sx:{width:"34px",flex:"0 0 34px"},children:(0,n.jsx)(R,{onClick:()=>{a(!0),d(!1)}})})]})]})]})}),(0,n.jsx)(B.Z,{in:o,sx:{backgroundColor:"#000000",position:"absolute",zIndex:1200,marginTop:"50px",width:"100%"},children:(0,n.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column"},children:[k&&C&&(0,n.jsxs)(s.Z,{sx:{padding:"10px 12px",display:"flex",borderBottom:"1px solid #3c3c3c"},children:[(0,n.jsx)(x.default,{alt:"Live Show Image",src:C,width:110,height:110}),(0,n.jsxs)(s.Z,{sx:{marginLeft:"9px",marginRight:"12px",width:"100%"},children:[(0,n.jsxs)(s.Z,{sx:{fontSize:"14px",color:"#ff3434",display:"flex",alignItems:"center",flex:"0 0 52px",marginBottom:"4px"},children:[(0,n.jsx)(s.Z,{sx:{background:"red",width:"8px",height:"8px",borderRadius:"100px",margin:"0px 5px -1.5px 0px",animationName:"blink",animationDuration:"1.15s",animationIterationCount:"infinite","@keyframes blink":{"0%":{opacity:0}
1,"50%":{opacity:1},"100%":{opacity:0}}}}),(0,n.jsx)(s.Z,{sx:{marginRight:"6px"},children:"Live now"})]}),(0,n.jsx)(s.Z,{sx:{fontSize:"16px",LineHeight:"21.6px",fontWeight:500,color:"#FFF"},children:null==w?void 0:w.title}),(0,n.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",marginTop:"7px"},children:[(0,n.jsx)(z,{play:r,onClick:()=>p(A.S9.LIVESTREAM)}),(0,n.jsxs)(s.Z,{sx:{color:"#FFF",fontSize:"14px",lineHeight:"18.2px",fontStyle:"italic",marginLeft:"7px",width:"100%"},children:[(0,_.wj)(null==w?void 0:w.startTime)," ","-"," ",(0,_.wj)(null==w?void 0:w.endTime)]}),(0,n.jsx)(s.Z,{sx:{zIndex:2001,marginTop:"5px",marginLeft:"6px",marginRight:"-4px",display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%"},children:(0,n.jsx)(D.Z,{shareLink:"".concat("https://www.bfm.my/","live-schedule"),color:"white",marginTop:"0px",height:"16px",width:"16px",placement:"top",pointer:!1})})]})]})]}),k&&S&&(0,n.jsxs)(s.Z,{sx:{padding:"13px 11px",display:"flex"},children:[(0,n.jsx)(x.default,{alt:"Next Show Image",src:S,width:50,height:50}),(0,n.jsxs)(s.Z,{sx:{marginLeft:"9px"},children:[(0,n.jsx)(s.Z,{sx:{fontSize:"16px",LineHeight:"21.6px",fontWeight:500,color:"#FFF",marginBottom:"7px"},children:"Up next: ".concat(k.title)}),(0,n.jsxs)(s.Z,{sx:{color:"#FFF",fontSize:"14px",lineHeight:"18.2px",fontStyle:"italic"},children:[(0,_.wj)(k.startTime)," ","- ",(0,_.wj)(k.endTime)]})]})]}),(0,n.jsxs)(s.Z,{sx:{padding:"13px 11px",display:"flex",alignItems:"center"},children:[(0,n.jsx)(u.default,{href:"/live-schedule",children:(0,n.jsx)(W,{})}),(0,n.jsxs)(s.Z,{sx:{marginLeft:"9px",display:"flex",alignItems:"center",width:"100%"},children:[(0,n.jsx)(s.Z,{sx:{fontSize:"14px",LineHeight:"18.2px",fontWeight:400,color:"#FFF",flex:"1 1 100%"},children:(0,n.jsx)(u.default,{href:"/live-schedule",children:"See full schedule"})}),(0,n.jsx)(T,{onClick:()=>{a(!1),d(!0)},sx:{flex:"0 0 24px"}})]})]})]})})]})})},V=r(94013);let U=(0,m.ZP)(e=>{let t=(0,H.Z)(),r="dark"===t.palette.mode;return(0,n.jsx)(s.Z,{sx:{padding:"12px",lineHeight:"1.625rem",color:r?t.palette.text.secondary:"rgba(98, 98, 98, 1)",fontWeight:500,fontSize:"22px"},children:(0,n.jsx)(V.Z,{...e,size:"medium",variant:"contained",color:"navbar",disableElevation:!0,disableRipple:!0,children:"Logout"})})})({fontWeight:500,fontSize:"22px",textTransform:"none",padding:"0px",letterSpacing:"0",lineHeight:"1.625rem",borderRadius:"0px",minWidth:"unset","& span.MuiButton-endIcon":{marginLeft:"0px",marginRight:"0px"}}),N=(0,m.ZP)(e=>{let{children:t,...r}=e;return(0,n.jsx)(u.default,{href:"/content/categories/".concat(t.toLowerCase()),style:{lineHeight:"1.625rem"},children:(0,n.jsx)(V.Z,{...r,size:"medium",variant:"contained",color:"navbar",disableElevation:!0,disableRipple:!0,children:t})})})({fontWeight:500,fontSize:"22px",textTransform:"none",padding:"0px",letterSpacing:"0",lineHeight:"1.313rem",borderRadius:"0px",minWidth:"unset",textAlign:"left","& span.MuiButton-endIcon":{marginLeft:"0px",marginRight:"0px"}});var q=e=>{let{navItems:t,setShowMenu:r}=e;return(0,H.Z)().palette.mode,(0,n.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column",padding:"0px 12px"},children:[(0,n.jsx)(s.Z,{sx:{padding:"12px 0px",lineHeight:"1.625rem",color:"rgba(98, 98, 98, 1)",fontWeight:500,fontSize:"22px"},children:"Categories /"},"header"),Object.keys(t[0]).map((e,t)=>(0,n.jsx)(s.Z,{sx:{padding:"12px 0px"},children:(0,n.jsx)(N,{onClick:()=>{r(!1)},sx:{color:"#fff"},children:e})},t))]})};let X=(0,m.ZP)(e=>{let{children:t,...r}=e;return(0,n.jsx)(u.default,{href:function(e){switch(e){case"Latest":return"/content/latest-stories";case"Podcasts":return"/content/all-podcasts";case"Videos":return"/content/all-videos";case"Articles":return"/content/all-articles";case"Events":return"/events";case"Schedule":return"/live-schedule";case"Join our community":return"https://www.bfm.my/community";case"BFM Shop":return"http://shop.bfm.my";default:return"/"}}(t),style:{lineHeight:"1.625rem"},children:(0,n.jsx)(V.Z,{...r,size:"medium",variant:"contained",color:"navbar",disableElevation:!0,disableRipple:!0,children:t})})})({fontWeight:500,fontSize:"22px",textTransform:"none",padding:"0px",letterSpacing:"0",lineHeight:"1.313rem",borderRadius:"0px",minWidth:"unset",textAlign:"left","& span.MuiButton-endIcon":{marginLeft:"0px",marginRight:"0px"}});var Y=function(e){let{setShowMenu:t}=e;return(0,H.Z)().palette.mode,(0,n.jsxs)(s.Z,{sx:{padding:"0px 12px"},children:[(0,n.jsx)(s.Z,{sx:{padding:"12px 0px",lineHeight:"1.625rem",color:"rgba(98, 98, 98, 1)",fontWeight:500,fontSize:"22px"},children:"All content /"},"header"),["Latest","Podcasts","Videos","Events","Schedule","BFM Shop","Join our community"].map((e,r)=>(0,n.jsx)(s.Z,{sx:{padding:"12px 0px"},children:(0,n.jsx)(X,{onClick:()=>{t(!1)},sx:{color:"#fff"},children:e})},r))]})},G=function(e){let{navItems:t,setShowMenu:r}=e;return(0,n.jsxs)(s.Z,{sx:{display:"flex",marginTop:"10px"},children:[(0,n.jsx)(s.Z,{sx:{flex:"1 1 100%"},children:(0,n.jsx)(q,{navItems:t,setShowMenu:r})}),(0,n.jsx)(s.Z,{sx:{flex:"1 1 100%"},children:(0,n.jsx)(Y,{setShowMenu:r})})]})},Q=function(e){let{setShowMenu:t}=e,r=(0,H.Z)(),i="dark"===r.palette.mode;return(0,n.jsx)(s.Z,{sx:{padding:"12px",lineHeight:"1.625rem",color:i?r.palette.text.secondary:"rgba(98, 98, 98, 1)",fontWeight:500,fontSize:"22px"},children:(0,n.jsx)(u.default,{href:"/account",style:{lineHeight:"1.625rem"},children:(0,n.jsx)(V.Z,{sx:{fontWeight:500,fontSize:"22px",textTransform:"none",padding:"0px",letterSpacing:"0",lineHeight:"1.313rem",borderRadius:"0px",minWidth:"unset","& span.MuiButton-endIcon":{marginLeft:"0px",marginRight:"0px"}},size:"medium",variant:"contained",color:"navbar",disableElevation:!0,disableRipple:!0,onClick:()=>{t(!1)}
1,children:"My Account"})})})},J=e=>{let{setShowMenu:t}=e,r=(0,H.Z)(),i="dark"===r.palette.mode;return(0,n.jsx)(s.Z,{sx:{padding:"12px 12px",lineHeight:"1.625rem",color:i?r.palette.text.secondary:"rgba(98, 98, 98, 1)",fontWeight:500,fontSize:"22px"},children:(0,n.jsx)(u.default,{href:"/access",style:{lineHeight:"1.625rem"},children:(0,n.jsx)(V.Z,{sx:{fontWeight:500,fontSize:"22px",textTransform:"none",padding:"0px",letterSpacing:"0",lineHeight:"1.313rem",borderRadius:"0px",minWidth:"unset","& span.MuiButton-endIcon":{marginLeft:"0px",marginRight:"0px"}},size:"medium",variant:"contained",color:"navbar",disableElevation:!0,disableRipple:!0,onClick:()=>{t(!1)},children:"Signup / Login"})})})};function K(e){let{navItems:t,showDetails:r}=e,[d,m]=(0,h.useState)(!1),[b,v]=(0,h.useState)(!1),{user:y}=(0,h.useContext)(i.V),{logout:j,isLoggingOut:C}=(0,o.a)(),{control:S}=(0,f.cI)();(0,h.useEffect)(()=>(b&&(document.body.style.overflow="hidden"),function(){b&&(document.body.style.overflow="auto")}),[b]);let[Z,F]=(0,h.useState)(0),[I,T]=(0,h.useState)(!0);return(0,h.useEffect)(()=>{let e=p()(()=>{let e=window.scrollY;e>Z&&e>50?T(!1):T(!0),F(e)},200);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[Z]),(0,n.jsxs)(s.Z,{sx:{position:I?"fixed":"absolute",top:I?0:"-60px",zIndex:1299,width:"100vw",display:"flex",flexDirection:"column"},children:[(0,n.jsxs)(s.Z,{sx:{width:"100%",position:"absolute",zIndex:1299,backgroundColor:"#000000",borderColor:"#000000",borderBottom:"1px solid #1e1e1e",height:"50px",top:0},children:[(0,n.jsx)(l.d,{onClickAway:()=>{m(!1)},children:(0,n.jsxs)(s.Z,{sx:{margin:"0px auto",position:"relative"},children:[(0,n.jsx)(c.Z,{in:d,timeout:300,children:(0,n.jsx)(s.Z,{sx:{position:"absolute",left:"0px",backgroundColor:"#000",width:"100%",zIndex:1e4},children:(0,n.jsx)(a.Z,{component:"nav",elevation:0,sx:{position:"relative",backgroundColor:"#000",borderBottom:"1px solid #1e1e1e",height:"50px"},children:(0,n.jsx)(s.Z,{sx:{minHeight:"50px !important",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0px 12px"},children:(0,n.jsx)(f.Qr,{name:"keyword",control:S,defaultValue:"",render:e=>{let{field:{onChange:t,value:r}}=e;return(0,n.jsx)(M,{label:"Search by show, podcast, video or article",onChange:t,value:r,autoFocus:d,setHideSearchBar:m})}})})})})}),t&&(0,n.jsx)(a.Z,{component:"nav",elevation:0,sx:{position:"relative",backgroundColor:"#000",borderBottom:"1px solid #1e1e1e",height:"50px"},children:(0,n.jsxs)(s.Z,{sx:{minHeight:"50px !important",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0px 12px"},children:[(0,n.jsx)(u.default,{onClick:()=>{v(!1)},href:"/",children:(0,n.jsx)(x.default,{alt:"bfm-logo",priority:!0,src:"/logo.png",width:86,height:20})}),(0,n.jsxs)(s.Z,{sx:{display:"flex",flexGrow:"1 !important",alignItems:"center",justifyContent:"flex-end",gap:0},children:[(0,n.jsx)(k,{onClick:()=>{m(e=>!e)}}),(0,n.jsx)(s.Z,{sx:{display:{xs:"flex",custom1100:"none"},alignItems:"center"},children:(0,n.jsx)(g.Z,{})}),(0,n.jsx)(w,{onClick:()=>{v(e=>!e)}})]})]})})]})}),b&&(0,n.jsxs)(s.Z,{sx:{backgroundColor:"#000000",position:"fixed",bottom:"0",left:"0",right:"0",top:"0",padding:"0px",marginTop:"50px",zIndex:9999},children:[(0,n.jsx)(G,{navItems:t,setShowMenu:v}),(0,n.jsx)(s.Z,{sx:{padding:"12px 12px",lineHeight:"1.625rem",color:"rgba(98, 98, 98, 1)",fontWeight:500,fontSize:"22px"},children:" - "}),!y&&(0,n.jsx)(J,{setShowMenu:v}),y&&(0,n.jsx)(Q,{setShowMenu:v}),y&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(U,{onClick:()=>{v(!1),j()},disabled:C})})]})]}),(0,n.jsx)(O,{showDetails:r})]})}},96463:function(e,t,r){"use strict";r.d(t,{default:function(){return Y}});var n=r(57437),i=r(31869),o=r(31269),a=r(71350),s=r(76605),l=r(12699),c=r.n(l),d=r(71495),p=r(63832),x=r(24021),u=r(17162),h=r(90486),f=r(33145),g=r(27648),m=r(2265),b=r(29501),v=r(4344),y=r(48467),j=r(16210),w=r(35389),k=r(41904),C=r(72910),S=r(59832);let Z=(0,j.ZP)(e=>{let{play:t,...r}=e,i=(0,k.U)(e=>e.object),[o,a]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{i.type===C.S9.LIVESTREAM&&(!0==i.isLoading?a(!0):!1==i.isLoading&&a(!1))},[i.isLoading]),(0,n.jsx)(S.Z,{...r,disableRipple:!0,children:o?(0,n.jsx)(w.Z,{size:20,thickness:2,sx:{color:"#000"}}):(0,n.jsx)(n.Fragment,{children:t?(0,n.jsx)(c(),{path:s.Wa1,size:"20px",color:"#000"}):(0,n.jsx)(c(),{path:s._86,size:"20px",color:"#000"})})})})({backgroundColor:"#ffc121 !important",borderColor:"#ffc121 !important",padding:"5px","& svg":{color:"#000000"},"& span.MuiTouchRipple-root":{color:"#000000"}});var F=r(46387),I=e=>{let{showLiveAudioDetails:t,liveShowImage:r}=e;function i(e){let t=e.slice(0,4),r=e.slice(4,6),n=e.slice(6,8),i=e.slice(8,10).padStart(2,"0"),o=e.slice(10,12).padStart(2,"0");return new Date("".concat(t,"-").concat(r,"-").concat(n,"T").concat(i,":").concat(o)).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}return(0,n.jsxs)(p.Z,{sx:{display:"flex",gap:"5px"},children:[(0,n.jsx)(f.default,{alt:"Live Show Image",src:r,width:100,height:100,style:{borderRadius:"6px"}}),(0,n.jsxs)(p.Z,{sx:{display:"flex",flexDirection:"column",maxWidth:"315px",marginLeft:"8px"},children:[(0,n.jsx)(p.Z,{sx:{display:"flex",alignItems:"start"},children:(0,n.jsxs)(p.Z,{sx:{fontSize:"14px",color:"#ff3434",display:"flex",alignItems:"center"},children:[(0,n.jsx)(p.Z,{sx:{background:"red",width:"10px",height:"10px",borderRadius:"100px",margin:"0px 5px 0px 0px",animationName:"blink",animationDuration:"1.15s",animationIterationCount:"infinite","@keyframes blink":{"0%":{opacity:0}
1,"50%":{opacity:1},"100%":{opacity:0}}}}),(0,n.jsx)(p.Z,{sx:{marginRight:"6px"},children:"Live now"})]})}),(0,n.jsx)(F.Z,{sx:{color:"#000000",fontSize:"15px",fontWeight:600,marginBottom:"5px",paddingTop:"5px"},children:t.title}),(0,n.jsx)(F.Z,{sx:{fontSize:"13.5px",color:"#000000",lineHeight:"1.25rem"},children:t.subtitle}),(0,n.jsxs)(F.Z,{sx:{fontSize:"13.5px",color:"#000000",paddingTop:"5px"},children:[i(t.startTime)," -"," ",i(t.endTime)]}),(0,n.jsx)(g.default,{href:"/live-schedule",children:(0,n.jsxs)(p.Z,{sx:{display:"flex",alignItems:"center",gap:"5px",paddingTop:"5px",cursor:"pointer","&:hover":{"& .see-full-schedule":{textDecoration:"underline",textUnderlineOffset:"2px",textDecorationThickness:"1.5px"}}},children:[(0,n.jsx)(p.Z,{sx:{backgroundColor:"#000",display:"flex",alignItems:"center",borderRadius:"100px",padding:"2px"},children:(0,n.jsx)(c(),{path:s.aIO,size:.8,color:"#ffc121"})}),(0,n.jsx)(F.Z,{className:"see-full-schedule",sx:{fontSize:"13.5px",color:"#000000",fontWeight:600},children:"See Full Schedule"})]})})]})]})},M=r(67122),T=function(e){let{showDetails:t}=e,[r,i]=(0,m.useState)(!1),[o,a]=(0,m.useState)(!1),[s,l]=(0,m.useState)(null),[c,d]=(0,m.useState)(!1),x=(0,k.U)(e=>e.updateType),u=(0,k.U)(e=>e.object),f=(0,k.U)(e=>e.toggleIsPlaying),[g,b]=(0,m.useState)(!1),[j,w]=(0,m.useState)("initial"),{ready:S,currentShow:F,liveShowImage:T}=(0,M.Y)(t),R=o&&!!s;return(0,m.useEffect)(()=>{setTimeout(()=>{b(!0),w("initial"),setTimeout(()=>{w("changed")},4e3)},5e3)},[S]),(0,m.useEffect)(()=>{u.type===C.S9.LIVESTREAM?i(u.isPlaying):u.type===C.S9.PODCAST?i(!1):u.type===C.S9.CLOSE&&i(!1)},[u]),(0,n.jsx)(n.Fragment,{children:S&&F&&T&&(0,n.jsxs)(p.Z,{sx:{padding:"0px 0px 0px 18px",display:"flex",alignItems:"center",width:"320px"},children:[(0,n.jsx)(Z,{play:r,onClick:()=>{u.type===C.S9.LIVESTREAM?f():(x(C.S9.LIVESTREAM),f(!0)),i(e=>!e)}}),(0,n.jsxs)(p.Z,{sx:{display:"flex",alignItems:"center"},onMouseOver:e=>{l(e.currentTarget),a(!0)},onMouseOut:e=>{l(e.currentTarget),c||a(!1)},children:[(0,n.jsxs)(p.Z,{sx:{fontSize:"14px",color:"#ff3434",display:"flex",alignItems:"center"},children:[(0,n.jsx)(p.Z,{sx:{background:"red",width:"10px",height:"10px",borderRadius:"100px",margin:"0px 5px -2px 8px",animationName:"blink",animationDuration:"1.15s",animationIterationCount:"infinite","@keyframes blink":{"0%":{opacity:0},"50%":{opacity:1},"100%":{opacity:0}}}}),(0,n.jsx)(p.Z,{sx:{marginRight:"6px",cursor:"pointer"},children:"Live now: "})]}),(0,n.jsx)(p.Z,{sx:{border:"1px solid black",borderRadius:"5px",overflow:"hidden",position:"relative",width:"145px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"center"},children:(0,n.jsx)(p.Z,{id:"animated-box",sx:{fontSize:"14px",animation:g?"initial"===j?"my-animation 4s linear infinite":"my-animation-changed 8s linear infinite":"none",whiteSpace:"nowrap",display:"inline-flex","@keyframes my-animation":{from:{transform:"translateX(0%)"},to:{transform:"translateX(-100%)"}},"@keyframes my-animation-changed":{from:{transform:"translateX(100%)"},to:{transform:"translateX(-100%)"}}},children:(0,n.jsx)(p.Z,{component:"span",sx:{flex:"1 1 100%"},children:F.title})})}),(0,n.jsx)(p.Z,{sx:{zIndex:2001,paddingLeft:"10px",marginTop:"5px"},children:(0,n.jsx)(v.Z,{shareLink:"".concat("https://www.bfm.my/","live-schedule"),color:"white",marginTop:"0px",height:"16px",width:"16px",placement:"top",pointer:!1})})]}),(0,n.jsx)(y.Z,{id:R?"transition-popper":void 0,open:o,anchorEl:s,transition:!0,disablePortal:!0,popperOptions:{},modifiers:[{name:"offset",options:{offset:[120,10]}}],sx:{zIndex:2},onMouseOver:()=>{d(!0),a(!0)},onMouseOut:()=>{d(!1),a(!1)},children:e=>{let{TransitionProps:t}=e;return(0,n.jsx)(h.Z,{...t,timeout:150,children:(0,n.jsx)(p.Z,{sx:{background:"#ffc121",color:"#fff",borderRadius:"6px",fontSize:"14px",lineHeight:"22px",display:"inline-block",padding:"10px",width:"auto",opacity:.9},children:(0,n.jsx)(I,{showLiveAudioDetails:F,liveShowImage:T})})})}})]})})};let R=(0,j.ZP)(e=>(0,n.jsx)(S.Z,{...e,children:(0,n.jsx)(c(),{path:s.jiR,size:"24px"})}))(()=>({backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"5px",width:"34px",height:"34px","& svg":{color:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}})),E=(0,j.ZP)(e=>(0,n.jsx)(S.Z,{...e,children:(0,n.jsx)(c(),{path:s.GyE,size:"22px"})}))(()=>({backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"5px",width:"34px",height:"34px","& svg":{color:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}})),L=(0,j.ZP)(e=>(0,n.jsxs)(S.Z,{...e,children:[e.value&&(0,n.jsx)(c(),{path:s.aIO,size:"24px",style:{color:"#ffc121",caretColor:"#ffc121"}}),!e.value&&(0,n.jsx)(c(),{path:s.I0v,size:"24px"})]}))(()=>({backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"5px","& svg":{color:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}}));var z=r(94013),D=function(e){let{setShowSubMenu:t,setActiveMenuItemCoord:r,subMenuItemData:i,setSubMenuItems:o,isActive:a,setActiveButton:l,setActiveNavItem:d,navItem:x,index:u,...h}=e,f=(0,m.useRef)(null);return(0,n.jsxs)(z.Z,{sx:{fontWeight:400,fontSize:"14px",textTransform:"none",padding:"0px",letterSpacing:"0",lineHeight:"1.313rem",borderRadius:"0px",minWidth:"unset",color:"#FFF","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08)"},"& span.MuiButton-endIcon":{marginLeft:"0px",marginRight:"0px"}},ref:f,size:"medium",variant:"contained",color:"navbar",disableElevation:!0,disableRipple:!0,onClick:function(){if(a)t(!1),l(null),d(null);else{var e,n;t(!0),o(i),r({left:(null===(e=f.current)||void 0===e?void 0:e.getBoundingClientRect().left)||0,top:(null===(n=f.current)||void 0===n?void 0:n.getBoundingClientRect().top)||0}),l(u),d(x)}},endIcon:a?(0,n.jsx)(c(),{path:s.Waq,size:"16px"}):(0,n.jsx)(c(),{path:s.CW,size:"16px"}),children:[h.children,(0,n.jsx)(p.Z,{sx:{borderBottom:"1px solid #FFF",position:"absolute",width:"100%",bottom:"1px",visibility:a?"visible":"hidden",opacity:a?1:0,transition:a?"opacity 100ms linear":"visibility 0s 100ms, opacity 100ms linear"}})]})},A=r(31691),P=function(e){let t=(0,A.Z)();return(0,n.jsx)(z.Z,{sx:{fontWeight:400,fontSize:"14px",textTransform:"none",padding:"0px",letterSpacing:"0",lineHeight:"1.313rem",borderRadius:"0px",minWidth:"unset",justifyContent:"start !important",color:"dark"===t.palette.mode?t.palette.text.primary:"#FFF","&:hover":{backgroundColor:(t.palette.mode,"rgba(255, 255, 255, 0.08)"),"& .submenu-item":{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationThickness:"1px"}},"& span.MuiButton-endIcon":{marginLeft:"0px",marginRight:"0px"}},size:"medium",variant:"contained",color:"navbar",disableElevation:!0,disableRipple:!0,children:(0,n.jsx)(p.Z,{className:"submenu-item",component:"span",sx:{position:"relative"},children:e.children})})},_=function(e){let{setActiveMenuItemCoord:t,setShowSubMenu:r,setSubMenuItems:o,setA
1ctiveNavItem:a,canActive:s,...l}=e,[c,d]=(0,m.useState)(null);return(0,m.useEffect)(()=>{!1===s&&d(null)},[s]),(0,n.jsxs)(p.Z,{sx:{display:{xs:"none",custom768:"flex"},gap:{xs:"0px",custom768:"15px"}},children:[Object.keys(l.navItems[0]).map((e,i)=>{var s;return(0,n.jsx)(D,{index:i,setShowSubMenu:r,setActiveMenuItemCoord:t,subMenuItemData:[...l.navItems[0][e],...null!==(s=C.V[e])&&void 0!==s?s:[]],setSubMenuItems:o,setActiveNavItem:a,navItem:e,isActive:c===i,setActiveButton:d,children:e},i)}),(0,n.jsx)(D,{index:"events",setShowSubMenu:r,setActiveMenuItemCoord:t,subMenuItemData:["All Events"],setSubMenuItems:o,isActive:"events"===c,setActiveButton:d,setActiveNavItem:a,navItem:"Events",children:"Events"}),(0,n.jsx)(p.Z,{sx:{display:{xs:"none",xl:"flex"},alignItems:"stretch"},children:(0,n.jsx)(D,{index:"videos",setShowSubMenu:r,setActiveMenuItemCoord:t,subMenuItemData:["All Videos"],setSubMenuItems:o,isActive:"videos"===c,setActiveButton:d,setActiveNavItem:a,navItem:"Videos",children:"Videos"})}),(0,n.jsx)(D,{index:"more",setShowSubMenu:r,setActiveMenuItemCoord:t,subMenuItemData:["Latest","Podcasts",{type:"custom",render:()=>(0,n.jsx)(p.Z,{sx:{display:{xs:"block",xl:"none"},textAlign:"left",m:0,p:0},children:(0,n.jsx)(g.default,{href:"/content/all-videos",onClick:()=>{r(!1),d(null),a(null)},children:(0,n.jsx)(P,{children:"Videos"})})})},"Schedule","Join our community",{type:"custom",render:()=>(0,n.jsx)(p.Z,{sx:{display:{xs:"none",custom1100:"block",custom1200:"none"},textAlign:"left",m:0,p:0},children:(0,n.jsx)(i.Z,{})})}],setSubMenuItems:o,isActive:"more"===c,setActiveButton:d,setActiveNavItem:a,navItem:"More",children:"More"})]})},H=r(60149),W=r(41327),B=r(10020),O=r(39034);let V=(0,j.ZP)(e=>(0,n.jsx)(S.Z,{...e,children:(0,n.jsx)(c(),{path:s.r5M,size:"24px"})}))({backgroundColor:"transparent !important",borderColor:"#ffc121 !important",padding:"5px","& svg":{color:"#FFF"},"& span.MuiTouchRipple-root":{color:"#000000"}});var U=function(e){let{setHideSearchBar:t,...r}=e,i=(0,H.tv)(),o=()=>{r.value&&(t(e=>!e),i.push("/search?q=".concat(r.value)))};return(0,m.useEffect)(()=>{if(r.autoFocus){let e=document.getElementById("search-input");e&&e.focus()}},[r.autoFocus]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(W.Z,{sx:{minHeight:"30px",width:"100%","& label.MuiFormLabel-root":{"&.MuiInputLabel-root":{"&.Mui-focused":{color:"#FFFFFF","&.Mui-error":{color:"#ff5252"}},"&.Mui-error":{color:"#ff5252","& span.MuiFormLabel-asterisk":{color:"#ff5252"}}}},"& div.MuiInputBase-root":{marginTop:"0px","&.MuiInput-root::after":{borderBottom:"none"},"& input.MuiInputBase-input":{color:"#ffc121",padding:"4px 8px",fontSize:"14px"},"&.Mui-error":{"& fieldset.MuiOutlinedInput-notchedOutline":{border:"none"}}},"& div.MuiOutlinedInput-root":{"&.Mui-focused":{"& fieldset.MuiOutlinedInput-notchedOutline":{border:"none"}},"&.Mui-error":{"&.Mui-focused fieldset":{border:"none"}}}},fullWidth:!0,children:[(0,n.jsx)(B.Z,{htmlFor:"search-input",shrink:!1,sx:{fontSize:"14px",color:"#FFFFFF",top:"4px",left:"8px",transform:"none"},children:r.value?"":r.label}),(0,n.jsx)(O.Z,{id:"search-input",onChange:r.onChange,value:r.value,onKeyDown:e=>{"Enter"===e.key&&o()},fullWidth:!0,size:"small"}),(0,n.jsx)(p.Z,{sx:{borderBottom:"1px solid #FFF",position:"absolute",width:"100%",bottom:"1px"}})]}),(0,n.jsxs)(p.Z,{sx:{display:"flex",flexGrow:"1 !important",alignItems:"end",justifyContent:"end"},children:[(0,n.jsx)(L,{onClick:o}),(0,n.jsx)(V,{onClick:()=>{t(e=>!e)}})]})]})},N=r(1712),q=r(42563),X=function(e){let{subMenuItems:t,onClick:r}=e;function i(e){if(C.O9[e])return C.O9[e];switch(e){case"Latest":return"/content/latest-stories";case"Podcasts":return"/content/all-podcasts";case"Videos":case"All Videos":return"/content/all-videos";case"Articles":return"/content/all-articles";case"Schedule":return"/live-schedule";case"All Events":return"/events";case"Join our community":return"https://www.bfm.my/community";case"BFM Shop":return"http://shop.bfm.my";default:return"/content/shows/".concat(e,"?type=podcast")}}return(0,n.jsx)(p.Z,{sx:{display:"flex",gap:"15px"},children:(0,q.U_)(t,10).map((e,t)=>(0,n.jsx)(N.Z,{spacing:.25,sx:{minWidth:"140px"},children:e.map((e,t)=>e&&"object"==typeof e&&"function"==typeof e.render?(0,n.jsx)(p.Z,{children:e.render()},"custom-"+t):"Join our community"===e?(0,n.jsx)(g.default,{href:i(e),target:"_blank",onClick:r,children:(0,n.jsx)(P,{children:e})},t):"BFM Shop"===e?(0,n.jsx)(g.default,{href:i(e),target:"_blank",onClick:r,children:(0,n.jsx)(P,{children:e})},t):(0,n.jsx)(g.default,{href:i(e),onClick:r,children:(0,n.jsx)(P,{children:e})},t))},t))})};
1function Y(e){let{navItems:t,categoryDescriptions:r,showDetails:l}=e,[v,y]=(0,m.useState)(!1),[j,w]=(0,m.useState)([]),[k,C]=(0,m.useState)({left:0,top:0}),[S,Z]=(0,m.useState)(""),[F,I]=(0,m.useState)(!1),[M,z]=(0,m.useState)(!0),[D,A]=(0,m.useState)(!1),[P,H]=(0,m.useState)({}),{user:W}=(0,m.useContext)(o.V),{logout:B,isLoggingOut:O}=(0,a.a)(),{control:V}=(0,b.cI)();return(0,m.useEffect)(()=>{!1==M&&setTimeout(()=>{z(!0)},500)},[M]),(0,m.useEffect)(()=>{!0===D&&(y(!1),z(!1),A(!1))},[D]),(0,m.useEffect)(()=>{if(S){let e={};if("Events"==S)e.title="Events",e.description="",e.pageLink="/events";else if("Videos"==S)e.title="Videos",e.description="",e.pageLink="/content/all-videos";else if("More"==S)e.title="More",e.description="",e.pageLink=null;else{let t=S.toLowerCase();e.title=S,e.description=r[t],e.pageLink="/content/categories/"+t}H(e)}},[S]),(0,m.useEffect)(()=>{let e=()=>{window.scrollY>100&&v&&(y(!1),z(!1))};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[v]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.d,{onClickAway:()=>{y(!1),z(!1)},children:(0,n.jsxs)(p.Z,{sx:{width:"100%",zIndex:1299,backgroundColor:"#000000",borderColor:"#000000",borderBottom:"1px solid #1e1e1e",height:"50px"},children:[(0,n.jsx)(x.d,{onClickAway:()=>{I(!1)},children:(0,n.jsxs)(p.Z,{sx:{maxWidth:"1440px",margin:"0px auto",position:"relative"},children:[(0,n.jsx)(h.Z,{in:F,timeout:300,children:(0,n.jsx)(p.Z,{sx:{position:"absolute",left:"0px",backgroundColor:"#000",width:"100%",zIndex:1e4},children:(0,n.jsx)(d.Z,{elevation:0,sx:{position:"relative",backgroundColor:"#000",borderColor:"#000",height:"50px"},children:(0,n.jsx)(p.Z,{sx:{minHeight:"50px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,n.jsx)(b.Qr,{name:"keyword",control:V,defaultValue:"",render:e=>{let{field:{onChange:t,value:r}}=e;return(0,n.jsx)(U,{label:"Search by show, podcast, video or article",onChange:t,value:r,autoFocus:F,setHideSearchBar:I})}})})})})}),(0,n.jsx)(d.Z,{elevation:0,sx:{position:"relative",backgroundColor:"#000",borderColor:"#000",height:"50px"},children:(0,n.jsxs)(p.Z,{sx:{minHeight:"50px",padding:"0 16px !important",display:"flex",justifyContent:"space-between"},children:[(0,n.jsxs)(p.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(g.default,{href:"/",children:(0,n.jsx)(f.default,{alt:"bfm-logo",priority:!0,src:"/logo.png",width:86,height:20})}),(0,n.jsx)(T,{showDetails:l})]}),(0,n.jsxs)(p.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:{xs:"5px",lg:"50px",custom1250:"100px"}},children:[(0,n.jsx)(_,{navItems:t,setShowSubMenu:y,setSubMenuItems:w,setActiveMenuItemCoord:C,setActiveNavItem:Z,canActive:M}),(0,n.jsxs)(p.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",minHeight:"50px",height:"50px"},children:[(0,n.jsx)(L,{onClick:()=>{I(e=>!e)},sx:{width:34,height:34}}),(0,n.jsx)(p.Z,{sx:{display:{xs:"none",custom1200:"flex"},alignItems:"center",height:"100%"},children:(0,n.jsx)(i.Z,{})}),W?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.default,{href:"/account",children:(0,n.jsx)(R,{})}),(0,n.jsx)(E,{onClick:B,disabled:O})]}):(0,n.jsx)(g.default,{href:"/access",children:(0,n.jsx)(R,{})})]})]})]})})]})}),(0,n.jsx)(u.Z,{in:v,sx:{backgroundColor:"#000000"},children:(0,n.jsxs)(p.Z,{sx:{height:"298px",backgroundColor:"#000000",padding:"20px 0px",display:"flex",maxWidth:"1440px",margin:"0px auto"},children:[(0,n.jsxs)(p.Z,{sx:{color:"#FFF",maxWidth:"290px",marginLeft:"17px"},children:[P.pageLink?(0,n.jsx)(g.default,{href:P.pageLink,onClick:()=>A(!0),children:(0,n.jsxs)(p.Z,{component:"h2",sx:{fontWeight:"600",fontSize:"1.8rem",marginBottom:"15px",color:"#ffc121","&:hover":{textDecoration:"underline",textUnderlineOffset:"5px",textDecorationThickness:"1.5px"}},children:[P.title,"More"!==P.title&&(0,n.jsx)("span",{children:(0,n.jsx)(c(),{path:s.C7j,size:"16px",style:{marginBottom:"12px",fontWeight:600}})})]})}):(0,n.jsxs)(p.Z,{component:"h2",sx:{fontWeight:"400",fontSize:"1.8rem",marginBottom:"15px"},children:[P.title,"More"!==P.title&&(0,n.jsx)("span",{children:(0,n.jsx)(c(),{path:s.C7j,size:"16px",style:{marginBottom:"12px"}})})]}),(0,n.jsxs)(p.Z,{component:"p",sx:{fontSize:"0.95rem"},children:["â"," ",P.description]})]}),(0,n.jsx)(p.Z,{sx:{color:"#FFF",left:((null==k?void 0:k.left)||0)+"px",position:"sticky"},children:(0,n.jsx)(X,{subMenuItems:j,onClick:()=>A(!0)})})]})})]})}),(0,n.jsx)(u.Z,{in:v,timeout:0,children:(0,n.jsx)(p.Z,{sx:{backgroundColor:"transparent",height:"calc(100vh - 348px)",width:"100%",position:"absolute",top:"348px",left:"0px"}})})]})}},52467:function(e,t,r){"use strict";var n=r(57437),i=r(31691),o=r(63832),a=r(46387),s=r(99376),l=r(2265);t.Z=e=>{let{screen:t,type:r,ad:c,sponsorTagParam:d,className:p}=e,[x,u]=(0,l.useState)(!1),h=(0,i.Z)(),[f,g]=(0,l.useState)(null),[m,b]=(0,l.useState)(null),v=(0,s.usePathname)(),y=null,j=null,w=null,k=null,C=null,S=null;return d&&(y=d.program,j=d.podcast_id,w=d.tags,k=d.hide_sponsor,C=d.podcast_time,S=d.current_timestamp),(0,l.useEffect)(()=>{let e=new DOMParser().parseFromString(c,"text/html").querySelector("ins"),t=null==e?void 0:e.getAttribute("data-revive-zoneid"),r=null==e?void 0:e.getAttribute("data-revive-id");g(t||""),b(r||""),u(!0)},[]),(0,l.useEffect)(()=>
1{if(x){let e=document.querySelector('script[src="//ad.bfm.my/www/delivery/asyncjs.php"]');e&&e.remove();let t=document.createElement("script");t.src="//ad.bfm.my/www/delivery/asyncjs.php",t.async=!0,t.onload=()=>{if(window&&window.reviveAsync&&window.reviveAsync[m]){let e=window.reviveAsync[m];e&&"function"==typeof e.main&&e.main()}},document.body.appendChild(t)}},[v,x]),(0,n.jsxs)(n.Fragment,{children:[x&&"desktop"===t&&(0,n.jsxs)(n.Fragment,{children:["leaderboard"===r&&(0,n.jsx)(o.Z,{sx:{padding:"10px",width:"100%",backgroundColor:"dark"===h.palette.mode?h.palette.background.paper:"#F6F6F6",display:"flex",justifyContent:"center"},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m})}),"mrec"===r&&(0,n.jsxs)(o.Z,{sx:{padding:"10px",width:"100%",height:"auto",backgroundColor:"dark"===h.palette.mode?h.palette.background.paper:"#F1F1F1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",borderWidth:"0px 0px 0px 1px",borderStyle:"solid",borderColor:"dark"===h.palette.mode?h.palette.common.white:"#000"},children:[(0,n.jsx)(a.Z,{sx:{fontSize:"14px",lineHeight:"18.2px",fontWeight:400,color:"dark"===h.palette.mode?h.palette.common.white:"#626262",fontStyle:"italic"},children:"Advertisement"}),(0,n.jsx)(o.Z,{sx:{width:"100%",height:"auto",display:"flex",justifyContent:"center"},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m})})]}),"mrec_float"===r&&(0,n.jsxs)(o.Z,{sx:{padding:"10px",width:"100%",height:"auto",backgroundColor:"dark"===h.palette.mode?h.palette.background.paper:"#F1F1F1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",borderWidth:"0px 0px 0px 1px",borderStyle:"solid",borderColor:"dark"===h.palette.mode?h.palette.common.white:"#000",...p},children:[(0,n.jsx)(a.Z,{sx:{fontSize:"14px",lineHeight:"18.2px",fontWeight:400,color:"dark"===h.palette.mode?h.palette.common.white:"#626262",fontStyle:"italic",textAlign:"left",paddingLeft:"15px",paddingBottom:"5px",width:"100%"},children:"Advertisement"}),(0,n.jsx)(o.Z,{sx:{width:"100%",height:"auto",display:"flex",justifyContent:"center"},children:d?(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m,"data-revive-program":y,"data-revive-podcastid":j,"data-revive-podcasttags":w,"data-revive-hidesponsor":k,"data-revive-podcasttime":C,"data-revive-timestamp":S}):(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m})})]}),"player_banner"===r&&(0,n.jsx)(o.Z,{sx:{width:"100%",height:"100%",margin:"0 auto",display:"flex",justifyContent:"center"},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m})}),"branding"===r&&(0,n.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(a.Z,{sx:{fontSize:"16px",fontWeight:600,color:h.palette.text.primary,paddingRight:"6px"},children:"Powered By"}),(0,n.jsx)(o.Z,{sx:{width:"auto",height:"100%",display:"flex",alignItems:"center",..."dark"===h.palette.mode&&{filter:"invert(1) hue-rotate(180deg)"}},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m})})]}),"sponsor_tag"===r&&(0,n.jsx)(o.Z,{sx:{padding:"10px",width:"100%",height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,n.jsx)(o.Z,{sx:{width:"100%",height:"auto",display:"flex",justifyContent:"center"},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m,"data-revive-program":y,"data-revive-podcastid":j,"data-revive-podcasttags":w,"data-revive-hidesponsor":k,"data-revive-podcasttime":C,"data-revive-timestamp":S})})}),"latest_stories"===r&&(0,n.jsx)(o.Z,{sx:{width:"100%",height:"auto",display:"flex",justifyContent:"center"},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m})}),"hero_banner"===r&&(0,n.jsx)(o.Z,{sx:{width:"100%",height:"100%",margin:"0 auto",display:"flex",justifyContent:"center","& img":{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center"}},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m,style:{width:"100%"}})})]}),x&&"mobile"===t&&(0,n.jsxs)(n.Fragment,{children:["leaderboard"===r&&(0,n.jsxs)(o.Z,{sx:{padding:"10px",width:"100%",backgroundColor:"dark"===h.palette.mode?h.palette.background.paper:"#F6F6F6",textAlign:"center"},children:[(0,n.jsx)(a.Z,{sx:{fontSize:"14px",lineHeight:"18.2px",fontStyle:"italic",fontWeight:400,color:"dark"===h.palette.mode?h.palette.common.white:"#626262",paddingBottom:"5px"},children:"Advertisement"}),(0,n.jsx)(o.Z,{sx:{width:"100%",height:"auto",display:"flex",justifyContent:"center"},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m})})]}),"mrec"===r&&(0,n.jsxs)(o.Z,{sx:{padding:"10px",width:"100%",height:"auto",backgroundColor:"dark"===h.palette.mode?h.palette.background.paper:"#F1F1F1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",borderTop:"1px solid ".concat("dark"===h.palette.mode?h.palette.background.paper:"#D4D4D4"),borderBottom:"1px solid ".concat("dark"===h.palette.mode?h.palette.background.paper:"#D4D4D4")},children:[(0,n.jsx)(a.Z,{sx:{fontSize:"14px",lineHeight:"18.2px",fontWeight:400,color:"dark"===h.palette.mode?h.palette.common.white:"#626262",fontStyle:"italic"},children:"Advertisement"}),(0,n.jsx)(o.Z,{sx:{width:"100%",height:"auto",display:"flex",justifyContent:"center"},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m})})]}),"player_banner"===r&&(0,n.jsx)(o.Z,{sx:{width:"100%",height:"100%",margin:"0 auto",display:"flex",justifyContent:"center"},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m})}),"branding"===r&&(0,n.jsxs)(o.Z,{children:[(0,n.jsx)(a.Z,{sx:{fontSize:"16px",fontWeight:600,color:h.palette.text.primary,paddingTop:"5px"},children:"Powered By"}),(0,n.jsx)(o.Z,{sx:{width:"auto",height:"100%",display:"flex",alignItems:"center",paddingTop:"5px",paddingBottom:"5px",..."dark"===h.palette.mode&&{filter:"invert(1) hue-rotate(180deg)"}},children:(0,n.jsx)("ins",{"data-revive-zoneid":"46","data-revive-id":m})})]}),"sponsor_tag"===r&&(0,n.jsx)(o.Z,{sx:{padding:"10px",width:"225px",height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,n.jsx)(o.Z,{sx:{width:"100%",height:"auto",display:"flex",justifyContent:"center"},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m,"data-revive-program":y,"data-revive-podcastid":j,"data-revive-podcasttags":w,"data-revive-hidesponsor":k,"data-revive-podcasttime":C,"data-revive-timestamp":S})})}),"hero_banner"===r&&(0,n.jsx)(o.Z,{sx:{width:"100%",height:"100%",margin:"0 auto",display:"flex",justifyContent:"center","& img":{width:"100%",height:"100%"}},children:(0,n.jsx)("ins",{"data-revive-zoneid":f,"data-revive-id":m})})]})]})}},36863:function(e,t,r){"use strict";r.d(t,{O:function(){return b},I:function(){return m}});var n=r(57437),i=r(9066),o=r.n(i),a=r(25532),s=r.n(a),l=r(66808);let c=(0,l.Z)({typography:{fontFamily:s()},breakpoints:{values:{xs:0,custom350:350,custom430:430,custom500:500,sm:600,custom768:768,md:900,custom1000:1e3,custom1100:1100,lg:1200,custom1200:1200,custom1250:1250,
1custom1280:1280,custom1350:1350,custom1367:1367,custom1400:1400,custom1460:1460,xl:1536}},shadows:["none","0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)","0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)","0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)","0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)","0px 3px 5px -1px rgba(0,0,0,0.2),0px 5px 8px 0px rgba(0,0,0,0.14),0px 1px 14px 0px rgba(0,0,0,0.12)","0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)","0px 4px 5px -2px rgba(0,0,0,0.2),0px 7px 10px 1px rgba(0,0,0,0.14),0px 2px 16px 1px rgba(0,0,0,0.12)","0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)","0px 5px 6px -3px rgba(0,0,0,0.2),0px 9px 12px 1px rgba(0,0,0,0.14),0px 3px 16px 2px rgba(0,0,0,0.12)","0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12)","0px 6px 7px -4px rgba(0,0,0,0.2),0px 11px 15px 1px rgba(0,0,0,0.14),0px 4px 20px 3px rgba(0,0,0,0.12)","0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12)","0px 7px 8px -4px rgba(0,0,0,0.2),0px 13px 19px 2px rgba(0,0,0,0.14),0px 5px 24px 4px rgba(0,0,0,0.12)","0px 7px 9px -4px rgba(0,0,0,0.2),0px 14px 21px 2px rgba(0,0,0,0.14),0px 5px 26px 4px rgba(0,0,0,0.12)","0px 8px 9px -5px rgba(0,0,0,0.2),0px 15px 22px 2px rgba(0,0,0,0.14),0px 6px 28px 5px rgba(0,0,0,0.12)","0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)","0px 8px 11px -5px rgba(0,0,0,0.2),0px 17px 26px 2px rgba(0,0,0,0.14),0px 6px 32px 5px rgba(0,0,0,0.12)","0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)","0px 9px 12px -6px rgba(0,0,0,0.2),0px 19px 29px 2px rgba(0,0,0,0.14),0px 7px 36px 6px rgba(0,0,0,0.12)","0px 10px 13px -6px rgba(0,0,0,0.2),0px 20px 31px 3px rgba(0,0,0,0.14),0px 8px 38px 7px rgba(0,0,0,0.12)","0px 10px 13px -6px rgba(0,0,0,0.2),0px 21px 33px 3px rgba(0,0,0,0.14),0px 8px 40px 7px rgba(0,0,0,0.12)","0px 10px 14px -6px rgba(0,0,0,0.2),0px 22px 35px 3px rgba(0,0,0,0.14),0px 8px 42px 7px rgba(0,0,0,0.12)","0px 11px 14px -7px rgba(0,0,0,0.2),0px 23px 36px 3px rgba(0,0,0,0.14),0px 9px 44px 8px rgba(0,0,0,0.12)","0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12)"],palette:{primary:{light:"#ffc121",main:"#ffc121",dark:"#ffc121",contrastText:"#fff"},"primary-reverse":{light:"#000",main:"#000",dark:"#000",contrastText:"#fff"},secondary:{light:"#FFF",main:"#FFF",dark:"#FFF",contrastText:"#000"},navbar:{light:"rgba(255, 255, 255, 0)",main:"rgba(255, 255, 255, 0)",dark:"rgba(255, 255, 255, 0)",contrastText:"#fff"},darkblue:{main:"#1976d2",contrastText:"#fff"},orange:{main:"#fb8c00",contrastText:"#fff"},red:{light:"#f44336",main:"#f44336",dark:"#f44336",contrastText:"#fff"},"red-badge":{main:"#d50000",contrastText:"#fff"},green:{light:"#4caf50",main:"#4caf50",dark:"#4caf50",contrastText:"#fff"},teal:{light:"#4caf50",main:"#4caf50",dark:"#4caf50",contrastText:"#fff"},lightgrey:{light:"#eee",main:"#eee",dark:"#eee",contrastText:"rgba(0, 0, 0, .87)"},transparent:{light:"rgba(255, 255, 255, 0)",main:"rgba(255, 255, 255, 0)",dark:"rgba(255, 255, 255, 0)",contrastText:"#fff"},colorbutton:{light:"rgb(77, 194, 71)",main:"rgb(77, 194, 71)",dark:"rgb(77, 194, 71)",contrastText:"#fff"},custom:{light:"#ffa726",main:"#f57c00",dark:"#ef6c00",contrastText:"rgba(0, 0, 0, 0.87)"}},components:{MuiButton:{styleOverrides:{root:e=>{let{theme:t}=e;return{"&.MuiButton-containedPrimary:hover":{backgroundColor:t.palette.primary.light},"&.MuiButton-containedSecondary:hover":{backgroundColor:t.palette.secondary.light},"& .MuiTouchRipple-rippleVisible":{animationDuration:"300ms"}}},sizeSmall:{fontSize:".75rem",letterSpacing:".0892857143em"}}},MuiButtonGroup:{variants:[{props:{variant:"none"}
1,style:{"&.MuiButtonGroup-root":{borderRadius:"0px",backgroundColor:"transparent"},button:{"&.MuiButton-root":{height:"36px",minWidth:"78px",padding:"0 19.5555555556px",fontSize:".875rem",borderRadius:"0px",color:"rgba(0, 0, 0, 0.87)",fontWeight:500,letterSpacing:".0892857143em",textIndent:".0892857143em",textTransform:"uppercase",userSelect:"none",whiteSpace:"nowrap","&:hover":{backgroundColor:"transparent"},"&:before":{backgroundColor:"rgba(0, 0, 0, 0.87)",borderRadius:"inherit",bottom:"0",color:"rgba(0, 0, 0, 0.87)",content:'""',left:"0",opacity:0,pointerEvents:"none",position:"absolute",right:"0",top:"0",transition:"opacity .2s cubic-bezier(.4,0,.6,1)"},"&:hover:before":{opacity:.08},"&:focus:before":{opacity:.24,pointerEvents:"none"}},hover:{backgroundColor:"purple"}}}}]},MuiIconButton:{styleOverrides:{root:{"& .MuiTouchRipple-rippleVisible":{animationDuration:"300ms"}}}},MuiTouchRipple:{styleOverrides:{ripple:{animationDuration:"150ms"},rippleVisible:{animationDuration:"150ms"}}},MuiInputLabel:{styleOverri
1des:{root:{"&.Mui-error":{animation:"shake .6s cubic-bezier(.25,.8,.5,1)"},"@keyframes shake":{"59%":{marginLeft:"0"},"60%, 80%":{marginLeft:"2px"},"70%, 90%":{marginLeft:"-2px"}}}}},MuiFormControlLabel:{styleOverrides:{root:{width:"fit-content"}}},MuiSkeleton:{styleOverrides:{root:{bgcolor:"grey.300"}}},MuiSnackbar:{styleOverrides:{root:{maxWidth:"2000px",width:"100%","& .MuiPaper-root":{margin:"8px"}}},variants:[{props:{variant:"success"},style:{"& .MuiSnackbarContent-root":{background:"#4caf50"}}},{props:{variant:"error"},style:{"& .MuiSnackbarContent-root":{background:"#2e7d32"}}},{props:{variant:"warning"},style:{"& .MuiSnackbarContent-root":{background:"#fb8c00"}}},{props:{variant:"info"},style:{"& .MuiSnackbarContent-root":{background:"#0288d1"}}}]},MuiPickersLayout:{styleOverrides:{root:{minWidth:"unset !important","& div.MuiPickersLayout-toolbar":{backgroundColor:"rgb(70, 200, 150)",borderColor:"rgb(70, 200, 150)",borderRadius:"4px"}}}},MuiDatePickerToolbar:{styleOverrides:{root:{},title:{color:"#FFF",fontSize:"34px",textAlign:"left",fontWeight:600}}},MuiDateCalendar:{styleOverrides:{root:{width:"290px !important"}}},MuiYearCalendar:{styleOverrides:{root:{width:"290px !important"}}},MuiPickersToolbar:{styleOverrides:{root:{"& span.MuiTypography-root.MuiTypography-overline":{display:"none"},"& div.MuiPickersToolbar-content":{"& div.MuiTimePickerToolbar-hourMinuteLabel":{"& button.MuiPickersToolbar-root":{"& span.MuiPickersToolbarText-root":{fontSize:"70px",lineHeight:1,opacity:.6,color:"#FFF"},"& span.MuiPickersToolbarText-root.Mui-selected":{opacity:1,cursor:"pointer"}},"& span.MuiTimePickerToolbar-separator":{color:"#FFF",fontSize:"70px",lineHeight:1}},"& div.MuiTimePickerToolbar-ampmSelection":{"& button.MuiPickersToolbar-root":{"& span.MuiPickersToolbarText-root":{color:"#FFF",opacity:.6},"& span.MuiPickersToolbarText-root.Mui-selected":{opacity:1}}}}}}},MuiTimeClock:{styleOverrides:{root:{padding:"10px",alignItems:"center",width:"290px !important"}}},MuiClock:{styleOverrides:{root:{margin:1,height:"270px",width:"270px"},clock:{transform:"scale(1.22725)",fontSize:"16px"},pin:{backgroundColor:"rgb(70, 200, 150)",borderColor:"rgb(70, 200, 150)"}}},MuiClockPointer:{styleOverrides:{root:{backgroundColor:"rgb(70, 200, 150)",borderColor:"rgb(70, 200, 150)"},thumb:{backgroundColor:"rgb(70, 200, 150)",borderColor:"rgb(70, 200, 150)"}}},MuiClockNumber:{styleOverrides:{root:{color:"rgba(0, 0, 0, 0.55)"}}},MuiPickersYear:{styleOverrides:{root:{},yearButton:{"&.Mui-selected":{backgroundColor:"rgb(70, 200, 150) !important",borderColor:"rgb(70, 200, 150)"}}}},MuiPickersDay:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:"rgb(70, 200, 150) !important",borderColor:"rgb(70, 200, 150)"}}}},MuiOutlinedInput:{styleOverrides:{notchedOutline:{borderColor:"rgba(0,0,0,.38)"}}},MuiSwitch:{styleOverrides:{root:{padding:"5px"},track:{borderRadius:"14px",backgroundColor:"rgba(0,0,0,.38)",opacity:.38},thumb:{boxShadow:"none"}}},MuiAlert:{styleOverrides:{standardSuccess:{backgroundColor:"green",color:"white"},standardError:{backgroundColor:"red",color:"white"},standardWarning:{backgroundColor:"#fb8c00",borderColor:"#fb8c00",color:"white"},standardInfo:{backgroundColor:"#1976d2",borderColor:"#1976d2",color:"white"},icon:{padding:"0px",color:"white"},message:{padding:"0px"}}},MuiBackdrop:{styleOverrides:{root:{backgroundColor:"rgb(33, 33, 33, .46)"}}},MUIDataTableToolbar:{styleOverrides:{root:e=>{let{theme:t}=e;return{color:"#FFF",backgroundColor:"rgb(66, 66, 66)",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",[t.breakpoints.up("sm")]:{minHeight:"48px !important"}}},iconActive:{color:"#999"},icon:{color:"#FFF","&:hover":{color:"#999"}},filterPaper:e=>{let{theme:t}=e;return{minWidth:"450px",[t.breakpoints.down("sm")]:{minWidth:"90%"}}}}},MUIDataTableSearch:{styleOverrides:{searchIcon:{color:"#FFF"},clearIcon:{color:"#FFF"},searchText:{"& div.MuiInputBase-root":{color:"#FFF"},"& div.MuiInputBase-root:before":{borderBottom:"1px solid #FFF"}}}},MUIDataTable:{styleOverrides:{root:{borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px"}}},MUIDataTableSelectCell:{styleOverrides:{checkboxRoot:{color:"rgba(0, 0, 0, 0.3)"}}},MUIDataTableBodyCell:{styleOverrides:{root:{whiteSpace:"initial"}}},MUIDataTableFilter:{styleOverrides:{root:{"& div.MuiGrid-container":{marginLeft:"0px",width:"100%","& div.MuiGrid-item":{paddingLeft:"0px",minWidth:"100%"}}},gridListTile:{"& div.MuiFormControl-root":{"& div.MuiAutocomplete-root":{minHeight:"unset",paddingBottom:"20px"}}}}},MuiTableCell:{styleOverrides:{root:e=>{let{theme:t}=e;return{padding:"0 16px",height:"48px",whiteSpace:"nowrap",[t.breakpoints.down("xs")]:{padding:"12px",height:"auto"}}},head:{fontSize:".75rem",color:"rgba(0,0,0,.6)"}}},MuiTableSortLabel:{styleOverrides:{root:{"&:hover":{color:"rgba(0,0,0,.87)"}}}},MUIDataTableHeadCell:{styleOverrides:{data:{color:"rgba(0,0,0,.6)",userSelect:"none",fontSize:".75rem",textAlign:"left"},toolButton:{whiteSpace:"nowrap"}}},MuiDataGrid:{styleOverrides:{root:{fontWeight:300,border:"none","& div.MuiDataGrid-columnHeaders:hover":{"& div.MuiDataGrid-columnSeparator":{visibility:"hidden"}}},columnHeaders:{"div.MuiDataGrid-columnHeader--sorted":{color:"rgba(0,0,0,.87)"}},columnHeader:{fontSize:".75rem",padding:"0 16px",color:"rgba(0,0,0,.6)","&:focus":{outline:"none"},"&:focus-within":{outline:"none"},"&:hover":{color:"rgba(0,0,0,.87)"}},footerContainer:{minHeight:"59px"}}},MuiTablePagination:{styleOverrides:{root:{},selectLabel:{fontWeight:300,fontSize:".75rem"},displayedRows:{fontSize:".75rem"}}}}});var d=r(93587),p=r(93062),x=r(2265);let u="bfm-theme-preference",h=()=>{try{if(window.localStorage){let e=localStorage.getItem(u);if("dark"===e||"light"===e)return e}}catch(e){console.warn("Failed to load theme preference from localStorage:",e)}return"light"},f=e=>{try{window.localStorage&&localStorage.setItem(u,e)}catch(e){console.warn("Failed to save theme preference to localStorage:",e)}},g=(0,x.createContext)({mode:"light",toggleColorMode:()=>{}}),m=()=>(0,x.useContext)(g),b=e=>{let{children:t}=e,[r,i]=(0,x.useState)(()=>h()),[a,s]=(0,x.useState)(!1);(0,x.useEffect)(()=>{let e=h();e!==r&&i(e),"undefined"!=typeof document&&document.body.setAttribute("data-theme",e),s(!0)},[r]);let u=(0,x.useMemo)(()=>({mode:r,toggleColorMode:()=>{i(e=>{let t="light"===e?"dark":"light";return f(t),t})}}),[r]),m=(0,x.useMemo)(()=>(0,l.Z)({...c,palette:{...c.palette,mode:r,background:"dark"===r?{default:"#181818",paper:"#232323"}:{default:"#fff",paper:"#fff"},text:"dark"===r?{primary:"#fff",secondary:"#aaa"}:{primary:"#000",secondary:"#333"},divider:"dark"===r?"#424242":"#e0e0e0"},shadows:"dark"===r?["none","0px 2px 1px -1px rgba(255,255,255,0.05),0px 1px 1px 0px rgba(255,255,255,0.03),0px 1px 3px 0px rgba(255,255,255,0.02)","0px 3px 1px -2px rgba(255,255,255,0.05),0px 2px 2px 0px rgba(255,255,255,0.03),0px 1px 5px 0px rgba(255,255,255,0.02)","0px 3px 3px -2px rgba(255,255,255,0.05),0px 3px 4px 0px rgba(255,255,255,0.03),0px 1px 8px 0px rgba(255,255,255,0.02)","0px 2px 4px -1px rgba(255,255,255,0.05),0px 4px 5px 0px rgba(255,255,255,0.03),0px 1px 10px 0px rgba(255,255,255,0.02)","0px 3px 5px -1px rgba(255,255,255,0.05),0px 5px 8px 0px rgba(255,255,255,0.03),0px 1px 14px 0px rgba(255,255,255,0.02)","0px 3px 5px -1px rgba(255,255,255,0.05),0px 6px 10px 0px rgba(255,255,255,0.03),0px 1px 18px 0px rgba(255,255,255,0.02)","0px 4px 5px -2px rgba(255,255,255,0.05),0px 7px 10px 1px rgba(255,255,255,0.03),0px 2px 16px 1px rgba(255,255,255,0.02)","0px 5px 5px -3px rgba(255,255,255,0.05),0px 8px 10px 1px rgba(255,255,255,0.03),0px 3px 14px 2px rgba(255,255,255,0.02)","0px 5px 6px -3px rgba(255,255,255,0.05),0px 9px 12px 1px rgba(255,255,255,0.03),0px 3px 16px 2px rgba(255,255,255,0.02)","0px 6px 6px -3px rgba(255,255,255,0.05),0px 10px 14px 1px rgba(255,255,255,0.03),0px 4px 18px 3px rgba(255,255,255,0.02)","0px 6px 7px -4px rgba(255,255,255,0.05),0px 11px 15px 1px rgba(255,255,255,0.03),0px 4px 20px 3px rgba(255,255,255,0.02)","0px 7px 8px -4px rgba(255,255,255,0.05),0px 12px 17px 2px rgba(255,255,255,0.03),0px 5px 22px 4px rgba(255,255,255,0.02)","0px 7px 8px -4px rgba(255,255,255,0.05),0px 13px 19px 2px rgba(255,255,255,0.03),0px 5px 24px 4px rgba(255,255,255,0.02)","0px 7px 9px -4px rgba(255,255,255,0.05),0px 14px 21px 2px rgba(255,255,255,0.03),0px 5px 26px 4px rgba(255,255,255,0.02)","0px 8px 9px -5px rgba(255,255,255,0.05),0px 15px 22px 2px rgba(255,255,255,0.03),0px 6px 28px 5px rgba(255,255,255,0.02)","0px 8px 10px -5px rgba(255,255,255,0.05),0px 16px 24px 2px rgba(255,255,255,0.03),0px 6px 30px 5px rgba(255,255,255,0.02)","0px 8px 11px -5px rgba(255,255,255,0.05),0px 17px 26px 2px rgba(255,255,255,0.03),0px 6px 32px 5px rgba(255,255,255,0.02)","0px 9px 11px -5px rgba(255,255,255,0.05),0px 18px 28px 2px rgba(255,255,255,0.03),0px 7px 34px 6px rgba(255,255,255,0.02)","0px 9px 12px -6px rgba(255,255,255,0.05),0px 19px 29px 2px rgba(255,255,255,0.03),0px 7px 36px 6px rgba(255,255,255,0.02)","0px 10px 13px -6px rgba(255,255,255,0.05),0px 20px 31px 3px rgba(255,255,255,0.03),0px 8px 38px 7px rgba(255,255,255,0.02)","0px 10px 13px -6px rgba(255,255,255,0.05),0px 21px 33px 3px rgba(255,255,255,0.03),0px 8px 40px 7px rgba(255,255,255,0.02)","0px 10px 14px -6px rgba(255,255,255,0.05),0px 22px 35px 3px rgba(255,255,255,0.03),0px 8px 42px 7px rgba(255,255,255,0.02)","0px 11px 14px -7px rgba(255,255,255,0.05),0px 23px 36px 3px rgba(255,255,255,0.03),0px 9px 44px 8px rgba(255,255,255,0.02)","0px 11px 15px -7px rgba(255,255,255,0.08),0px 24px 38px 3px rgba(255,255,255,0.05),0px 9px 46px 8px rgba(255,255,255,0.03)"]:c.shadows,typography:{...c.typography,fontFamily:o().style.fontFamily},transitions:{...c.transitions,duration:{shortest:0,shorter:0,short:0,standard:0,complex:0,enteringScreen:0,leavingScreen:0}}}),[r]);return a?(0,n.jsx)(g.Provider,{value:u,children:(0,n.jsxs)(d.Z,{theme:m,children:[(0,n.jsx)(p.ZP,{}),t]})}):null}},31869:function(e,t,r){"use strict";
1var n=r(57437),i=r(25938),o=r(70057),a=r(59832),s=r(63832),l=r(36863);t.Z=()=>{let{mode:e,toggleColorMode:t}=(0,l.I)();return(0,n.jsxs)(a.Z,{onClick:t,color:"inherit","aria-label":"toggle theme mode",disableRipple:!0,disableFocusRipple:!0,sx:{width:"100%",justifyContent:"flex-start",alignItems:"flex-start",p:0,"@media (min-width:1100px) and (max-width:1199.95px)":{backgroundColor:"transparent !important",boxShadow:"none"}},children:[(0,n.jsx)(s.Z,{sx:{display:{xs:"none",custom1100:"flex",custom1200:"none"},alignItems:"center",fontWeight:400,fontSize:"14px",textTransform:"none",letterSpacing:"0",lineHeight:"1.313rem",borderRadius:"0px",minWidth:"unset",color:"#FFF",textAlign:"left",width:"100%",pl:0,gap:0,cursor:"pointer",position:"relative","&:hover .theme-toggle-underline":{visibility:"visible",opacity:1}},children:(0,n.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",position:"relative"},children:[(0,n.jsx)("span",{children:"dark"===e?"Light mode":"Dark mode"}),"dark"===e?(0,n.jsx)(o.Z,{sx:{fontSize:14,ml:1}}):(0,n.jsx)(i.Z,{sx:{fontSize:14,ml:1}}),(0,n.jsx)(s.Z,{className:"theme-toggle-underline",sx:{borderBottom:"1px solid #FFF",position:"absolute",width:"100%",bottom:0,left:0,visibility:"hidden",opacity:0,transition:"opacity 100ms linear"}})]})}),(0,n.jsx)(s.Z,{sx:{display:{xs:"inline-flex",custom1100:"none",custom1200:"inline-flex"}},children:"dark"===e?(0,n.jsx)(o.Z,{}):(0,n.jsx)(i.Z,{})})]})}},65335:function(e,t,r){"use strict";r.d(t,{default:function(){return C}});var n=r(57437),i=r(63832),o=r(59832),a=r(94865),s=r(17430),l=r(56499),c=r(2265),d=r(99376),p=r(20582),x=r(41904),u=r(72910),h=r(31480),f=r(24015);function g(e,t){window.gtag&&window.gtag("event",e,{event_category:"universal_video_ad",event_label:t||"web_player"})}let m=["/access","/account","/onboarding","/auth"],b={xs:24,custom768:32},v={xs:72,custom768:96},y="transform 0.32s cubic-bezier(0.4, 0, 0.2, 1)",j={mobile:{maxW:140,maxH:249},tablet:{maxW:170,maxH:300},desktop:{maxW:220,maxH:392},large:{maxW:250,maxH:445}},w={mobile:{width:140,height:79},tablet:{width:170,height:96},desktop:{width:220,height:124},large:{width:250,height:141}};function k(e,t,r,n){let i=r,o=r*t/e;return o>n&&(o=n,i=n*e/t),{width:Math.round(i),height:Math.round(o)}}function C(e){let{vastTag:t="https://ad.bfm.my/www/delivery/fc.php?script=apVideo:vast2&zoneid=75"}=e,{src:r,click:C,handlePlay:S,handleTimeUpdate:Z,fireClickTracking:F}=(0,p.S)(t),I=(0,c.useRef)(null),[M,T]=(0,c.useState)(!1),[R,E]=(0,c.useState)(!0),[L,z]=(0,c.useState)(!1),[D,A]=(0,c.useState)(!1),[P,_]=(0,c.useState)(!1),[H,W]=(0,c.useState)(null),[B,O]=(0,c.useState)({x:0,y:0}),V=(0,c.useRef)({x:0,y:0}),[U,N]=(0,c.useState)("left"),[q,X]=(0,c.useState)(!1),Y=(0,c.useRef)(null),G=(0,c.useRef)(null),Q=(0,x.U)(e=>e.object.type)!==u.S9.CLOSE,J=(0,x.U)(e=>e.playerHeight),K=(0,d.usePathname)(),$=(0,h.XZ)(C),ee=!!(0,h.Jy)(K),et=m.some(e=>K===e||K.startsWith("".concat(e,"/")));!function(e,t){let r=(0,c.useRef)(null),n=(0,c.useRef)(!1),i=(0,c.useRef)(null),o=(0,c.useRef)(0);(0,c.useEffect)(()=>{let a=e=>g(e,t);return e?(r.current||(r.current=Date.now(),a("universal_video_ad_session_start"),n.current=!1,o.current=0),i.current||(i.current=setInterval(()=>{let e=Date.now(),t=Math.floor(r.current?(e-r.current)/1e3:0);!n.current&&t>=5&&(a("universal_video_ad_viewed"),n.current=!0),t>0&&t%30==0&&(o.current+=1,a("universal_video_ad_interval (".concat(o.current,")")))},1e3))):(r.current&&a("universal_video_ad_session_end"),r.current=null,n.current=!1,o.current=0,i.current&&(clearInterval(i.current),i.current=null)),()=>{i.current&&(clearInterval(i.current),i.current=null)}},[e,t])}(P,null!=$?$:""),(0,c.useEffect)(()=>{z(!1),W(null),A(!1)},[r]);let er=(0,c.useCallback)(e=>{I.current=e,e&&(e.muted=!0,e.setAttribute("muted",""))},[]);if((0,c.useEffect)(()=>{let e=I.current;e&&(M?e.pause():e.paused&&e.play().catch(()=>{}))},[M]),(0,c.useEffect)(()=>{let e=I.current;e&&(e.muted=R,R?e.setAttribute("muted",""):e.removeAttribute("muted"))},[R,r]),!r||ee||et)return null;let en=Q?Math.max(24,J+12):24,ei=H?k(H.w,H.h,j.mobile.maxW,j.mobile.maxH):w.mobile,eo=H?k(H.w,H.h,j.tablet.maxW,j.tablet.maxH):w.tablet,ea=H?k(H.w,H.h,j.desktop.maxW,j.desktop.maxH):w.desktop,es=H?k(H.w,H.h,j.large.maxW,j.large.maxH):w.large,el={xs:ei.width,custom768:eo.width,custom1100:ea.width,custom1400:es.width},ec={xs:ei.height,custom768:eo.height,custom1100:ea.height,custom1400:es.height},ed={xs:ei.width+16,custom768:eo.width+16,custom1100:ea.width+16,custom1400:es.width+16},ep={xs:ei.height+32,custom768:eo.height+32,custom1100:ea.height+32,custom1400:es.height+32},ex=e=>"clamp(".concat(8,"px, ").concat(en-16,"px, calc(100dvh - ").concat(58+e,"px))"),eu=()=>{if(F(),(0,f.$V)(),C){var e;e=(0,f.tF)(C),window.location.href=e}},eh=()=>{V.current={x:0,y:0},O({x:0,y:0}),N("left"),X(!1)};return(0,n.jsxs)(i.Z,{style:{visibility:L?"visible":"hidden"},sx:{display:"block",position:"fixed",left:0,bottom:{xs:ex(ep.xs),custom768:ex(ep.custom768),custom1100:ex(ep.custom1100),custom1400:ex(ep.custom1400)},transform:"translate(".concat(B.x,"px, ").concat(B.y,"px)"),width:ed,height:ep,overflow:"hidden",pointerEvents:M?"none":"auto",zIndex:1298,transition:q?"".concat("transform 0.25s cubic-bezier(0.4, 0, 0.2, 1)",", bottom 0.25s ease"):"bottom 0.25s ease","&:hover .uva-drag-handle":{opacity:1}},children:[(0,n.jsxs)(i.Z,{ref:Y,sx:{position:"absolute",left:0,bottom:"".concat(16,"px"),width:el,height:ec,transform:M?"translateX(-100%)":"translateX(0)",transition:y,backgroundColor:"#000",boxShadow:3,overflow:"hidden",borderRadius:"right"===U?"12px 0 0 12px":"left"
1===U?"0 12px 12px 0":"12px",pointerEvents:"auto"},children:[!M&&(0,n.jsx)(i.Z,{"aria-label":"Drag advertisement",onPointerDown:e=>{if(!(e.button>0)){X(!1),G.current={startX:e.clientX,startY:e.clientY,baseX:V.current.x,baseY:V.current.y,moved:!1};try{e.currentTarget.setPointerCapture(e.pointerId)}catch(e){}}},onPointerMove:e=>{let t=G.current;if(!t)return;let r=e.clientX-t.startX,n=e.clientY-t.startY;if(!t.moved&&(Math.abs(r)>3||Math.abs(n)>3)&&(t.moved=!0,N(null)),t.moved){let e={x:t.baseX+r,y:t.baseY+n};V.current=e,O(e)}},onPointerUp:e=>{let t=G.current;G.current=null;try{e.currentTarget.releasePointerCapture(e.pointerId)}catch(e){}if(!t||!t.moved)return;g("universal_video_ad_drag",null!=$?$:"");let r=Y.current;if(!r)return;let n=r.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight,a=V.current,s=n.width,l=n.height,c=a.x,d=a.x,p=null;c<=20?(d=0,p="left"):i-(c+s)<=20&&(d=i-s,p="right");let x=o-Math.max(24,Math.min(en,o-58-l-16))+a.y,u=x-l,h=a.y;u<58?h=a.y+(58-u):x>o-8&&(h=a.y-(x-(o-8))),X(!0),N(p);let f={x:d,y:h};V.current=f,O(f)},className:"uva-drag-handle",sx:{position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",zIndex:1,height:18,px:1.25,display:"flex",alignItems:"center",justifyContent:"center",color:"rgba(255,255,255,0.9)",cursor:"grab",touchAction:"none",backgroundColor:"rgba(0,0,0,0.55)",borderRadius:"0 0 6px 6px",opacity:0,transition:"opacity 0.15s ease","&:active":{cursor:"grabbing"}},children:(0,n.jsx)(a.Z,{sx:{fontSize:15,transform:"rotate(90deg)"}})}),(0,n.jsx)(i.Z,{role:"link",tabIndex:M?-1:0,"aria-label":"Advertisement","aria-hidden":M,onClick:M?void 0:eu,onKeyDown:e=>{M||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),eu())},sx:{width:"100%",height:"100%",cursor:M?"default":"pointer",lineHeight:0},children:(0,n.jsx)("video",{ref:er,src:r,autoPlay:!0,loop:!0,playsInline:!0,preload:"auto",onPlay:S,onLoadedData:()=>{D||z(!0)},onPlaying:()=>{A(!1),z(!0),_(!0)},onPause:()=>_(!1),onError:()=>{console.error("UniversalVideoAd creative failed to load:",r),A(!0),z(!1)},onLoadedMetadata:e=>W({w:e.currentTarget.videoWidth,h:e.currentTarget.videoHeight}),onTimeUpdate:Z,disablePictureInPicture:!0,controlsList:"nodownload noplaybackrate",style:{width:"100%",height:"100%",objectFit:"cover",display:"block",pointerEvents:"none"}})}),!M&&(0,n.jsx)(o.Z,{"aria-label":R?"Unmute advertisement":"Mute advertisement",onClick:()=>{g(R?"universal_video_ad_unmute":"universal_video_ad_mute",null!=$?$:""),E(e=>!e)},size:"small",sx:{position:"absolute",top:0,left:0,zIndex:2,width:28,height:18,padding:0,lineHeight:1,color:"#fff",borderRadius:"0 0 6px 0",backgroundColor:"rgba(0,0,0,0.5)","&:hover":{backgroundColor:"rgba(0,0,0,0.7)"}},children:R?(0,n.jsx)(s.Z,{sx:{fontSize:14}}):(0,n.jsx)(l.Z,{sx:{fontSize:14}})}),!M&&(0,n.jsx)(o.Z,{"aria-label":"Minimize advertisement",onClick:()=>{g("universal_video_ad_minimize",null!=$?$:""),eh(),T(!0)},size:"small",sx:{position:"absolute",top:0,right:0,zIndex:2,width:28,height:18,padding:0,lineHeight:1,color:"#fff",borderRadius:"0 0 0 6px",backgroundColor:"rgba(0,0,0,0.5)","&:hover":{backgroundColor:"rgba(0,0,0,0.7)"}},children:"â"})]}),(0,n.jsx)(i.Z,{role:"button","aria-label":"Reopen advertisement","aria-hidden":!M,onClick:()=>{eh(),T(!1)},sx:{position:"absolute",left:0,top:"50%",width:b,height:v,transform:M?"translate(0, -50%)":"translate(-100%, -50%)",transition:y,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#000",color:"#fff",fontSize:{xs:16,custom768:20},cursor:"pointer",borderRadius:"0 8px 8px 0",boxShadow:3,pointerEvents:M?"auto":"none"},children:"âº"})]})}},67122:function(e,t,r){"use strict";r.d(t,{Y:function(){return s}});var n=r(2265),i=r(71632),o=r(94715),a=r(85831);function s(e){let{data:t,isSuccess:r}=(0,i.useQuery)({queryKey:["liveShows"],queryFn:()=>(0,o.xg)(),staleTime:3e5,refetchInterval:3e5}
1),[s,l]=(0,n.useState)(0);(0,n.useEffect)(()=>{let e=setInterval(()=>l(e=>e+1),3e4);return()=>clearInterval(e)},[]);let[c,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>d(!0),[]),(0,n.useMemo)(()=>{if(!(c&&r))return{ready:!1,currentShow:null,nextShow:null,liveShowImage:null,nextShowImage:null};let n=(0,a.bA)(t),i=(0,a.U9)(n),o=(0,a.RI)(n);return{ready:!0,currentShow:i,nextShow:o,liveShowImage:(0,a.Gq)(e,null==i?void 0:i.title),nextShowImage:(0,a.Gq)(e,null==o?void 0:o.title)}},[t,r,c,e,s])}},34293:function(e,t,r){"use strict";r.d(t,{a:function(){return i}});var n=r(2265);function i(){let[e,t]=(0,n.useState)(null);(0,n.useEffect)(()=>{let e=e=>{e.preventDefault(),t(e)};return window.addEventListener("beforeinstallprompt",e),()=>window.removeEventListener("beforeinstallprompt",e)},[]);let r=async()=>{if(!e)return;await e.prompt();let{outcome:r}=await e.userChoice;"accepted"===r&&t(null)};return{canInstall:!!e,promptInstall:r}}},20582:function(e,t,r){"use strict";r.d(t,{S:function(){return o}});var n=r(2265),i=r(31480);function o(e,t,r){let[o,a]=(0,n.useState)(null!=t?t:""),[s,l]=(0,n.use
1State)(null!=r?r:""),c=(0,n.useRef)([]),d=(0,n.useRef)({}),p=(0,n.useRef)([]),x=(0,n.useRef)(new Set);(0,n.useEffect)(()=>{if(!e)return;let r=!1;return x.current=new Set,(async()=>{try{let t=await fetch(e,{cache:"no-store"}),n=await t.text(),o=(0,i.ot)(n);if(r)return;c.current=o.impressions,p.current=o.clickTracking,d.current=o.tracking,a(o.src),o.click&&l(o.click)}catch(n){console.error("useVastCreative load failed for ".concat(e,":"),n),r||t||a("")}})(),()=>{r=!0}},[e]);let u=e=>{if(e)for(let t of e)new Image().src=t},h=(e,t)=>{!t||!t.length||x.current.has(e)||(x.current.add(e),u(t))};return{src:o,click:s,handlePlay:()=>{h("impression",c.current),h("start",d.current.start)},handleTimeUpdate:e=>{let{currentTime:t,duration:r}=e.currentTarget;if(!r||!Number.isFinite(r))return;let n=t/r;n>=.25&&h("firstQuartile",d.current.firstQuartile),n>=.5&&h("midpoint",d.current.midpoint),n>=.75&&h("thirdQuartile",d.current.thirdQuartile),n>=.99&&h("complete",d.current.complete)},fireClickTracking:()=>u(p.current)}}},69280:function(e,t,r){"use strict";r.r(t),r.d(t,{AuthContext:function(){return u},AuthProvider:function(){return h}});var n=r(57437),i=r(28036),o=r(87678),a=r(58979),s=r(43336),l=r(2265),c=r(99376),d=r(43301),p=r(30773),x=r(11614);let u=(0,l.createContext)({user:null,refreshUser:()=>Promise.resolve(),signUpWithEmailAndPassword:()=>Promise.resolve(),signInWithEmailAndPassword:()=>Promise.resolve(),signInWithApple:()=>Promise.resolve(!1),signInWithGoogle:()=>Promise.resolve(!1),signInWithFacebook:()=>Promise.resolve(!1),requestAccountDeletion:()=>Promise.resolve(),cancelAccountDeletion:()=>Promise.resolve(),signOut:()=>Promise.resolve()});function h(e){let{initialUser:t,children:r}=e,{setTimestamp:h,podcastHistory:f}=(0,l.useContext)(p.SessionContext),g=function(e){let t=(0,c.useRouter)(),[r,n]=(0,l.useState)(null!=e?e:null);return(0,l.useEffect)(()=>{n(null!=e?e:null)},[e]),(0,l.useEffect)(()=>(0,i.MX)(async r=>{if(r){let e=await r.getIdToken();(0,x.setCookie)("__session",e,{maxAge:3600,path:"/",sameSite:"lax"}),n(r)}else(0,x.deleteCookie)("__session",{path:"/"}),n(null);(null==e?void 0:e.uid)!==(null==r?void 0:r.uid)&&t.refresh()}),[e,t]),r}(t);async function m(e){if(Array.isArray(f)&&f.length>0){let t=f.map(e=>e.id);await (0,i.yP)(i.db,e,t)}}async function b(e){h(Date.now()),m(e.user.uid)}async function v(e,t){var r,n;let o=await (0,d.rh)(i.I8,e),a=null!==(n=null===(r=(0,d.gK)(o))||void 0===r?void 0:r.isNewUser)&&void 0!==n&&n;return(0,s.D)(t,a),await b(o),a}async function y(e,t){let r=await (0,d.Xb)(i.I8,e,t);(0,d.w$)(r.user,(0,a.jA)("https://www.bfm.my/")).catch(()=>{}),(0,s.D)("password",!0),await b(r)}async function j(e,t){let r=await (0,d.e5)(i.I8,e,t);(0,s.D)("password",!1),await b(r)}async function w(){return v(new d.O4("apple.com"),"apple")}async function k(){return v(new d._O,"facebook")}async function C(){return v(new d.hJ,"google")}async function S(){let e=i.I8.currentUser;e&&e.reload()}async function Z(){let e=i.I8.currentUser;if(!e)throw Error("You must be signed in to delete your account.");if(!1===await (0,i.VA)(i.db,"users/".concat(e.uid),{deletion:(0,o.a5)(new Date)}))throw Error("Could not schedule your account for deletion. Please try again.");await i.I8.signOut()}async function F(){let e=i.I8.currentUser;if(!e)throw Error("You must be signed in to reactivate your account.");if(!1===await (0,i.SR)(i.db,"users/".concat(e.uid,"/deletion")))throw Error("Could not reactivate your account. Please try again.")}async function I(){await i.I8.signOut(),(0,x.deleteCookie)("__session",{path:"/"})}return(0,n.jsx)(u.Provider,{value:{user:g,refreshUser:S,signUpWithEmailAndPassword:y,signInWithEmailAndPassword:j,signInWithApple:w,signInWithFacebook:k,signInWithGoogle:C,requestAccountDeletion:Z,cancelAccountDeletion:F,signOut:I},children:r})}},31269:function(e,t,r){"use strict";r.d(t,{V:function(){return n.AuthContext}});var n=r(69280)},71350:function(e,t,r){"use strict";r.d(t,{a:function(){return s}});var n=r(60149),i=r(99376),o=r(2265),a=r(69280);function s(){let e=(0,i.useRouter)(),{signOut:t,user:r}=(0,o.useContext)(a.AuthContext),[s,l]=(0,o.useState)(!1),c=(0,o.useRef)(!1),d=(0,o.useRef)(null);return(0,o.useEffect)(()=>{c.current=!1,l(!1)},[null==r?void 0:r.uid]),(0,o.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]),{logout:(0,o.useCallback)(async()=>
1{if(!c.current){c.current=!0,l(!0),(0,n.Lz)();try{await t(),e.replace("/",{scroll:!1}),e.refresh(),d.current=setTimeout(()=>(0,n.nC)(!0),2e3)}catch(e){console.error("Error signing out:",e),(0,n.nC)(!0),c.current=!1,l(!1),alert("Error signing out")}}},[e,t]),isLoggingOut:s}}},30773:function(e,t,r){"use strict";r.r(t),r.d(t,{SessionContext:function(){return s},SessionProvider:function(){return l}});var n=r(57437),i=r(2265);function o(e){let{key:t,initialValue:r}=e,[n,o]=(0,i.useState)(r),a=(0,i.useRef)(!0);return(0,i.useEffect)(()=>{if(a.current){let e=localStorage.getItem(t);e?o(JSON.parse(e)):o(r),a.current=!1;return}try{localStorage.setItem(t,JSON.stringify(n))}catch(e){console.error("Error: localStorage.setItem() failed")}},[n,t,r]),(0,i.useEffect)(()=>{function e(e){let{key:r,newValue:n}=e;r===t&&o(JSON.parse(n||""))}return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[n,o]}var a=r(31269);let s=(0,i.createContext)({timestamp:0,setTimestamp:()=>{},podcastHistory:[],setPodcastHistory:()=>{},playedLive:!1,setPlayedLive:()=>{}});function l(e){let{children:t}=e,[r,l]=o({key:"session_timestamp",initialValue:Date.now()}),[c,d]=o({key:"podcast_history",initialValue:[]}),[p,x]=o({key:"played_live",initialValue:!1}),{refreshUser:u}=(0,i.useContext)(a.V);return(0,i.useEffect)(()=>{u()},[r]),(0,n.jsx)(s.Provider,{value:{timestamp:r,setTimestamp:l,podcastHistory:c,setPodcastHistory:d,playedLive:p,setPlayedLive:x},children:t})}},46965:function(e,t,r){"use strict";r.d(t,{default:function(){return u}});var n=r(57437),i=r(2265),o=r(99376),a=r(82279),s=r(94013),l=r(43301),c=r(31269),d=r(28036),p=r(27923),x=r(58979);function u(){let{user:e}=(0,i.useContext)(c.V),t=(0,o.usePathname)(),[r,u]=(0,i.useState)(null),[h,f]=(0,i.useState)(!1),[g,m]=(0,i.useState)(null),[b,v]=(0,i.useState)(null),[,y]=(0,i.useState)(0);(0,i.useEffect)(()=>{var e,t;u(null!==(t=null===(e=d.I8.currentUser)||void 0===e?void 0:e.emailVerified)&&void 0!==t?t:null)},[e]),(0,i.useEffect)(()=>{function e(){var e;null===(e=d.I8.currentUser)||void 0===e||e.reload().then(()=>{var e,t;return u(null!==(t=null===(e=d.I8.currentUser)||void 0===e?void 0:e.emailVerified)&&void 0!==t?t:null)}).catch(()=>{})}return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[]),(0,i.useEffect)(()=>{if(null===g)return;let e=p.Sk-(Date.now()-g);if(e<=0)return;let t=setTimeout(()=>y(e=>e+1),e);return()=>clearTimeout(t)},[g]);let j="/onboarding"===t||t.startsWith("/auth/");if(!e||!1!==r||h||j)return null;let w=(0,p.RH)(g,Date.now());async function k(){if(d.I8.currentUser&&w)try{await (0,l.w$)(d.I8.currentUser,(0,x.jA)("https://www.bfm.my/")),m(Date.now()),v("Verification email sent.")}catch(e){v("Could not send. Please try again shortly.")}}return(0,n.jsxs)(a.Z,{severity:"info",sx:{borderRadius:0,alignItems:"center",py:1,px:{xs:2,custom768:3},"& .MuiAlert-icon":{alignItems:"center",mr:1.5,py:0},"& .MuiAlert-message":{py:0,display:"flex",alignItems:"center",minWidth:0},"& .MuiAlert-action":{alignItems:"center",py:0,mr:0}},onClose:()=>f(!0),action:(0,n.jsx)(s.Z,{color:"inherit",size:"small",onClick:k,disabled:!w,sx:{whiteSpace:"nowrap"},children:w?"Resend":"Sent"}),children:["Please verify your email".concat(e.email?" (".concat(e.email,")"):""," to secure your account."),b?" ".concat(b):""]})}},87678:function(e,t,r){"use strict";r.d(t,{Gj:function(){return l},Hn:function(){return i},Jx:function(){return s},a5:function(){return o},n3:function(){return n},s5:function(){return a}});let n=30,i="DELETE";function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=new Date(e.getTime());return r.setUTCDate(r.getUTCDate()+t),{status:"pending",requested_at:e.toISOString(),purge_after:r.toISOString()}}function a(e){return(null==e?void 0:e.status)==="pending"}function s(e){var t;let r=Date.parse(null!==(t=null==e?void 0:e.purge_after)&&void 0!==t?t:"");return Number.isNaN(r)?null:new Date(r)}function l(e){return e.trim()===i}},27923:function(e,t,r){"use strict";function n(e){var t;let r=Array.from(new Set((Array.isArray(e.interests)?e.interests:[]).filter(e=>"string"==typeof e)));return{displayName:(null!==(t=e.name)&&void 0!==t?t:"").trim(),interests:r,newsletter:!!e.newsletter}}r.d(t,{RH:function(){return o},SY:function(){return n},Sk:function(){return i}});let i=6e4;function o(e,t){return null===e||t-e>=i}},43336:function(e,t,r){"use strict";function n(e,t){var r;r=t?"sign_up":"login",window.gtag&&window.gtag("event",r,{method:e,platform:"web",event_category:"auth"})}r.d(t,{D:function(){return n}})},58979:function(e,t,r){"use strict";function n(e){if(!e)return;let t=e.endsWith("/")?e:"".concat(e,"/");return{url:"".concat(t).concat("auth/action"),handleCodeInApp:!1}}r.d(t,{Lt:function(){return a},jA:function(){return n},mY:function(){return o}});let i=new Set(["verifyEmail","recoverEmail"]);function o(e){let{mode:t,oobCode:r}=e;return r?"signIn"===t?"signIn":t&&i.has(t)?"apply":"delegate":"landing"}function a(e,t){if(!e)return null;let r=t.startsWith("?")?t:"?".concat(t);return"https://".concat(e,"/__/auth/action").concat(r)}},21906:function(e,t,r){"use strict";r.d(t,{I:function(){return l},db:function(){return c}});var n=r(43301),i=r(60532),o=r(738),a=r(17292);let s=(0,o.ZF)(i.q),l=(0,n.v0)(s),c=(0,a.N8)(s)},60532:function(e,t,r){"use strict";r.d(t,{q:function(){return n}});let n={apiKey:"AIzaSyAc7wPTPh6j35Hivjx_waQclT4JVdt3Dg0",authDomain:"www.bfm.my",databaseURL:"https://bfmiosapp.firebaseio.com",projectId:"bfmiosapp",storageBucket:"bfmiosapp.appspot.com",messagingSenderId:"687096395226",appId:"1:687096395226:web:c5c57bfca32173190c7ce3",measurementId:"G-JK9EB7TE47"}},19835:function(e,t,r){"use strict";r.r(t),r.d(t,{useRealtimeData:function(){return a}});var n=r(21906),i=r(2265),o=r(17292);function a(e){let[t,r]=(0,i.useState)(null),[a,s]=(0,i.useState)(null);return(0,i.useEffect)(()=>
1{if(e){let t=(0,o.iH)(n.db,e),i=(0,o.jM)(t,e=>{e.exists()?r(e.val()):r(null)},e=>{console.error("Error fetching data:",e),s(e)});return()=>i()}},[e]),{data:t,error:a}}},28036:function(e,t,r){"use strict";r.d(t,{Ve:function(){return u},SP:function(){return f},I8:function(){return n.I},yP:function(){return x},db:function(){return n.db},SR:function(){return a.SR},xt:function(){return h},tQ:function(){return g},s1:function(){return p},Wt:function(){return m},MX:function(){return o},QG:function(){return b},Ex:function(){return v},ic:function(){return y},VA:function(){return a.VA},Ts:function(){return c},Al:function(){return d},FM:function(){return j.useRealtimeData}}),r(60532);var n=r(21906);r(83079),(0,r(12119).$)("f3761e2ad0cb8dde6b887d9476f1b45750b66a59");var i=r(43301);function o(e){return(0,i.MX)(n.I,e)}var a=r(74135);let s=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,l=/^\d+$/;async function c(e,t,r,n,i){let o={...r,elapsed_time:i,date:new Date().toISOString().split("T")[0],created_at:new Date().valueOf()};await (0,a.VA)(e,"users/".concat(t,"/history_v3/").concat(n),o)}async function d(e,t,r){return await (0,a.VA)(e,"users/".concat(t),r)}async function p(e,t,r){return await (0,a.Yu)(e,"users/".concat(t,"/history_v3/").concat(r))}async function x(e,t,r){let n={};r.forEach(e=>{n[e]={elapsed_time:0,completed:!1,date:new Date().toISOString().split("T")[0],created_at:new Date().valueOf()}}),await (0,a.VA)(e,"users/".concat(t,"/history_v3"),n)}async function u(e,t,r){await x(e,t,[r])}async function h(e,t,r){await (0,a.SR)(e,"users/".concat(t,"/history_v3/").concat(r))}async function f(e,t,r){if(!function(e){if("string"!=typeof e)return!1;let t=e.trim();return s.test(t)||l.test(t)}(r))throw Error('Refusing to save "'.concat(r,'": not a content id. ')+"Pass the content's own id rather than the id of the component rendering it.");let n={[r]:{created_at:new Date().valueOf()}};await (0,a.VA)(e,"users/".concat(t,"/saved_content_v3"),n)}async function g(e,t,r){await (0,a.SR)(e,"users/".concat(t,"/saved_content_v3/").concat(r))}async function m(e,t){return await (0,a.Yu)(e,"users/".concat(t,"/interests_v3"))}async function b(e,t,r){return await (0,a.a_)(e,"users/".concat(t,"/interests_v3"),r)}async function v(e,t,r){return await (0,a.VA)(e,"users/".concat(t),{onboarding:{completedAt:r}})}async function y(e,t,r,n){return await (0,a.VA)(e,"users/".concat(t,"/terms"),{acceptedAt:r,version:n})}var j=r(19835)},74135:function(e,t,r){"use strict";r.d(t,{SR:function(){return s},VA:function(){return a},Yu:function(){return i},a_:function(){return o}});var n=r(17292);async function i(e,t){let r=await (0,n.U2)((0,n.iH)(e,t));return r.exists()?r.val():null}async function o(e,t,r){try{let i=(0,n.iH)(e,t);return await (0,n.t8)(i,r),(await (0,n.U2)(i)).val()}catch(e){return console.error("Error setting data in Firebase:",e),!1}}async function a(e,t,r){try{let i=(0,n.iH)(e,t);return await (0,n.Vx)(i,r),(await (0,n.U2)(i)).val()}catch(e){return console.error("Error updating data in Firebase:",e),!1}}async function s(e,t){try{let r=(0,n.iH)(e,t);return await (0,n.Od)(r),!0}catch(e){return console.error("Error deleting data in Firebase:",e),!1}}},85831:function(e,t,r){"use strict";r.d(t,{Gq:function(){return p},RI:function(){return d},U9:function(){return c},bA:function(){return a},wj:function(){return x}});let n="235959",i="9999999999";function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=e=>String(e).padStart(2,"0");return[e.getFullYear(),t(e.getMonth()+1),t(e.getDate()),t(e.getHours()),t(e.getMinutes())].join("")}function a(e){let t=null==e?void 0:e.components;return Array.isArray(t)?t.filter(e=>(null==e?void 0:e.type)==="scheduled_show"):[]}function s(e){var t,r;return null!==(r=String(null!==(t=null==e?void 0:e.id)&&void 0!==t?t:"").split("-")[1])&&void 0!==r?r:""}function l(e){return[...e].sort((e,t)=>s(e).localeCompare(s(t)))}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,r=o(t),a=l(e);for(let e=0;e<a.length;e++){let t=s(a[e]),o=a[e+1],l=o?s(o):i,c=l===i?n:l;if(r>=t&&r<c)return{...a[e],startTime:t,endTime:c}}return null}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,r=o(t),i=l(e);for(let e=0;e<i.length;e++){let t=s(i[e]),o=i[e+1],a=o?s(o):n;if(r<t)return{...i[e],startTime:t,endTime:a}}return null}function p(e,t){var r;let n=null!=t?t:"BFM Show",i=null==e?void 0:e.find(e=>(null==e?void 0:e.show_name)===n);return null!==(r=null==i?void 0:i.image)&&void 0!==r?r:"/bfm-square-logo.webp"}function x(e){if(!e)return"";let t=e.slice(0,4),r=e.slice(4,6),n=e.slice(6,8),i=e.slice(8,10).padStart(2,"0"),o=e.slice(10,12).padStart(2,"0");return new Date("".concat(t,"-").concat(r,"-").concat(n,"T").concat(i,":").concat(o)).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}},31480:function(e,t,r){"use strict";r.d(t,{Jy:function(){return a},XZ:function(){return o},ot:function(){return i}});let n=e=>e.replace(/^http:\/\//i,"https://");function i(e){var t;let r=new DOMParser().parseFromString(e,"text/xml"),i=[...r.querySelectorAll("MediaFile")].map(e=>({type:e.getAttribute("type")||"",url:(e.textContent||"").trim()})).filter(e=>e.url),o=i.find(e=>"video/mp4"===e.type)||i[0],a=n(((null===(t=r.querySelector("ClickThrough"))||void 0===t?void 0:t.textContent)||"").trim()),s=/^https:\/\//i.test(a)?a:"",l=[...r.querySelectorAll("Impression")].map(e=>
1(e.textContent||"").trim()).filter(Boolean).map(n),c=[...r.querySelectorAll("ClickTracking")].map(e=>(e.textContent||"").trim()).filter(Boolean).map(n),d={};for(let e of r.querySelectorAll("Tracking")){let t=e.getAttribute("event")||"",r=(e.textContent||"").trim();t&&r&&(d[t]||(d[t]=[])).push(n(r))}return{src:o?n(o.url):"",click:s,impressions:l,clickTracking:c,tracking:d}}function o(e){if(!e)return null;let t=e.match(/\/content\/video\/([^/?#]+)/);return t?t[1]:null}function a(e){if(!e)return null;let t=e.match(/^\/content\/video\/([^/?#]+)/);return t?t[1]:null}},5835:function(e){e.exports={progressBar:"styles_progressBar__qbENi"}}},function(e){e.O(0,[1693,7481,7465,4603,2404,3832,9079,3724,7600,2213,2972,418,9941,2225,2472,2069,5878,2025,188,4242,4010,1119,5784,7457,9501,149,8024,1656,739,2971,2117,1744],function(){return e(e.s=76250)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.