1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2037,9661,9134],{96862:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(67294),s=n(83485);function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=i(a);function o(e){var t=e||c(),n=a.useState(t),r=n[0],s=n[1];return a.useEffect((function(){if("u">typeof window&&"matchMedia"in window){var t=function(){s(e||c())},n=window.matchMedia("screen and (resolution: "+r+"dppx)");return n.hasOwnProperty("addEventListener")?n.addEventListener("change",t):n.addListener(t),function(){n.hasOwnProperty("removeEventListener")?n.removeEventListener("change",t):n.removeListener(t)}}}),[r,e]),r}function c(){return Math.min(Math.max(1,"u">typeof window&&"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1),3)}var u=function(){function e(){}var t=e.prototype;return t.observe=function(){},t.unobserve=function(){},t.disconnect=function(){},e}();var d=globalThis.ResizeObserver||u,f=void 0!==globalThis.ResizeObserver,m=!f;function x(e,t){void 0===t&&(t=!0);var n=a.useState({width:0,height:0}),r=n[0],s=n[1];a.useEffect((function(){if("u">typeof window&&t){var e=function(){s({width:window.innerWidth,height:window.innerHeight})};return m&&(e(),window.addEventListener("resize",e)),function(){return window.removeEventListener("resize",e)}}}),[]);var i=a.useRef(new d(function(e,t){var n=0;return function(){for(var r=this,a=arguments.length,s=Array(a),i=0;i<a;i++)s[i]=arguments[i];clearTimeout(n),n=window.setTimeout((function(){return e.apply(r,s)}),t)}}((function(e){f&&s({width:e[e.length-1].contentRect.width,height:e[e.length-1].contentRect.height})}),0)));return a.useEffect((function(){var n=i.current;if(t){var r=e.current;return e.current&&f&&n.observe(e.current),function(){n.disconnect(),r&&f&&n.unobserve(r)}}n.disconnect()}),[e,i]),r}var h={useDevicePixelRatio:!0,fitCanvasToArtboardHeight:!1,useOffscreenRenderer:!0,shouldResizeCanvasToContainer:!0};function p(e){return Object.assign({},h,e)}function v(e){var t=e.riveLoaded,n=void 0!==t&&t,r=e.canvasElem,s=e.containerRef,i=e.options,l=e.onCanvasHasResized,c=e.artboardBounds,u=p(void 0===i?{}:i),d=a.useState({height:0,width:0}),f=d[0],m=f.height,h=f.width,v=d[1],g=a.useState({height:0,width:0}),b=g[0],j=b.height,w=b.width,y=g[1],N=a.useState(!0),C=N[0],k=N[1],E=u.fitCanvasToArtboardHeight,S=u.shouldResizeCanvasToContainer,P=u.useDevicePixelRatio,O=u.customDevicePixelRatio,A=x(s,S),R=o(O),D=null!=c?c:{},I=D.maxX,F=D.maxY,L=a.useCallback((function(){var e,t,n,r,a=null!=(e=null==(n=s.current)?void 0:n.clientWidth)?e:0,i=null!=(t=null==(r=s.current)?void 0:r.clientHeight)?t:0;return E&&c?{width:a,height:c.maxY/c.maxX*a}:{width:a,height:i}}),[s,E,I,F]);a.useEffect((function(){if(S&&s.current&&n){var e=L(),t=e.width,a=e.height,i=!1;if(r){var o=t!==h||a!==m;if(u.fitCanvasToArtboardHeight&&o&&(s.current.style.height=a+"px",i=!0),u.useDevicePixelRatio){if(o||(t*R!==w||a*R!==j)){var c=R*t,d=R*a;r.width=c,r.height=d,r.style.width=t+"px",r.style.height=a+"px",y({width:c,height:d}),i=!0}}else o&&(r.width=t,r.height=a,y({width:t,height:a}),i=!0);v({width:t,height:a})}l&&(C||i)&&l&&l(),C&&k(!1)}}),[r,s,A,R,L,C,k,j,w,m,h,l,S,E,P,n]),a.useEffect((function(){y({width:0,height:0})}),[r])}var g=function(){function e(){}var t=e.prototype;return t.observe=function(){},t.unobserve=function(){},t.disconnect=function(){},e}(),b=globalThis.IntersectionObserver||g,j=function(){function e(){var e=this;this.elementsMap=new Map,this.onObserved=function(t){t.forEach((function(t){var n=e.elementsMap.get(t.target);n&&n(t)}))},this.observer=new b(this.onObserved)}var t=e.prototype;return t.registerCallback=function(e,t){this.observer.observe(e),this.elementsMap.set(e,t)},t.removeCallback=function(e){this.observer.unobserve(e),this.elementsMap.delete(e)},e}(),w=function(){return r||(r=new j),r};function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function N(e,t){if(null==e)return{};var n,r,a={},s=Object.getOwnPropertyNames(e);for(r=0;r<s.length;r++)n=s[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}function C(e){var t=e.setContainerRef,n=e.setCanvasRef,r=e.className,a=void 0===r?"":r,s=e.style,i=e.children,o=N(e,["
1setContainerRef","setCanvasRef","className","style","children"]),c=y({width:"100%",height:"100%"},s);return l.default.createElement("div",y({ref:t,className:a},!a&&{style:c}),l.default.createElement("canvas",y({ref:n,style:{verticalAlign:"top",width:0,height:0}},o),i))}function k(e,t){void 0===t&&(t={});var n=a.useState(null),r=n[0],i=n[1],c=a.useRef(null),u=a.useRef(null),d=a.useState(null),f=d[0],m=d[1],x=!!e,h=p(t),g=o(),b=a.useCallback((function(){if(f){if(f.layout&&f.layout.fit===s.Fit.Layout&&r){var e=g*f.layout.layoutScaleFactor;f.devicePixelRatioUsed=g,f.artboardWidth=(null==r?void 0:r.width)/e,f.artboardHeight=(null==r?void 0:r.height)/e}f.startRendering(),f.resizeToCanvas()}}),[f,g]);v({riveLoaded:!!f,canvasElem:r,containerRef:c,options:h,onCanvasHasResized:b,artboardBounds:null==f?void 0:f.bounds});var j=a.useCallback((function(e){null===e&&r&&(r.height=0,r.width=0),i(e)}),[]);a.useEffect((function(){if(r&&e){var t,n=null!=f;if(null==f){var a=h.useOffscreenRenderer,i=e.onRiveReady,l=N(e,["onRiveReady"]);t=new s.Rive(y({useOffscreenRenderer:a},l,{canvas:r})),null!=u.current&&u.current.cleanup(),u.current=t,t.on(s.EventType.Load,(function(){n=!0,i&&i(t),r?m(t):t.cleanup()}))}return function(){n||null==t||t.cleanup()}}}),[r,x,f]);var k=a.useCallback((function(e){c.current=e}),[]),E={observe:a.useCallback((function(e,t){w().registerCallback(e,t)}),[]),unobserve:a.useCallback((function(e){w().removeCallback(e)}),[])},S=E.observe,P=E.unobserve;a.useEffect((function(){var e,t=!1,n=function(){if(r&&t){var e=r.getBoundingClientRect();e.width>0&&e.height>0&&e.top<(window.innerHeight||document.documentElement.clientHeight)&&e.bottom>0&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&e.right>0&&(null==f||f.startRendering(),t=!1)}};return r&&!1!==h.shouldUseIntersectionObserver&&S(r,(function(r){r.isIntersecting?f&&f.startRendering():f&&f.stopRendering(),t=!r.isIntersecting,clearTimeout(e),r.isIntersecting||0!==r.boundingClientRect.width||(e=setTimeout(n,10))})),function(){r&&P(r)}}),[S,P,f,r,h.shouldUseIntersectionObserver]),a.useEffect((function(){return function(){f&&(f.cleanup(),m(null))}}),[f,r]),a.useEffect((function(){return function(){null!=u.current&&u.current.cleanup()}}),[]);var O=null==e?void 0:e.animations;a.useEffect((function(){f&&O&&(f.isPlaying?(f.stop(f.animationNames),f.play(O)):f.isPaused&&(f.stop(f.animationNames),f.pause(O)))}),[O,f]);var A=a.useCallback((function(e){return l.default.createElement(C,y({setContainerRef:k,setCanvasRef:j}
1,e))}),[j,k]);return{canvas:r,container:c.current,setCanvasRef:j,setContainerRef:k,rive:f,RiveComponent:A}}function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function S(e,t,n){var r=a.useState(null),s=r[0],i=r[1],l=a.useState(n.defaultValue),o=l[0],c=l[1],u=a.useState(null),d=u[0],f=u[1],m=a.useRef(null),x=a.useRef(e),h=a.useRef(n);a.useEffect((function(){h.current=n}),[n]);var p=a.useCallback((function(){var e=m.current,t=x.current,n=h.current;if(!e||!t)return i(null),c(n.defaultValue),f(null),function(){};var r=n.getProperty(e,t);if(r){i(r),c(n.getValue(r)),n.getExtendedData&&f(n.getExtendedData(r));var a=function(){c(n.getValue(r)),n.getExtendedData&&f(n.getExtendedData(r)),n.onPropertyEvent&&n.onPropertyEvent()};return r.on(a),function(){r.off(a)}}return function(){}}),[]);a.useEffect((function(){return m.current=t,x.current=e,p()}),[t,e,p]);var v=a.useCallback((function(e){if(s&&m.current===t)try{return e(s),void(h.current.getExtendedData&&f(h.current.getExtendedData(s)))}catch(e){}if(m.current)try{var n=h.current.getProperty(m.current,x.current);n&&(i(n),e(n),h.current.getExtendedData&&f(h.current.getExtendedData(n)))}catch(e){}}),[s,t]),g=E({value:o},a.useMemo((function(){return h.current.buildPropertyOperations(v)}),[v]));return n.getExtendedData&&(g.extendedData=d),g}function P(e,t,n,r,a,s,i){try{var l=e[s](i),o=l.value}catch(e){return void n(e)}l.done?t(o):Promise.resolve(o).then(r,a)}t.default=function(e){var t=e.src,n=e.artboard,r=e.animations,a=e.stateMachines,s=e.layout,i=e.useOffscreenRenderer,o=e.shouldDisableRiveListeners,c=e.shouldResizeCanvasToContainer,u=e.automaticallyHandleEvents,d=e.children,f=function(e,t){if(null==e)return{};var n,r,a={},s=Object.getOwnPropertyNames(e);for(r=0;r<s.length;r++)n=s[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["src","artboard","animations","stateMachines","layout","useOffscreenRenderer","shouldDisableRiveListeners","shouldResizeCanvasToContainer","automaticallyHandleEvents","children"]),m=k({src:t,artboard:n,animations:r,layout:s,stateMachines:a,autoplay:!0,shouldDisableRiveListeners:void 0!==o&&o,automaticallyHandleEvents:void 0!==u&&u},{useOffscreenRenderer:void 0===i||i,shouldResizeCanvasToContainer:void 0===c||c}).RiveComponent;return l.default.createElement(m,f,d)},t.useResizeCanvas=v,t.useRive=k,t.useRiveFile=function(e){var t=a.useState(null),n=t[0],r=t[1],i=a.useState("idle"),l=i[0],o=i[1];return a.useEffect((function(){var t=null;return function(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var s=e.apply(t,n);function i(e){P(s,r,a,i,l,"next",e)}function l(e){P(s,r,a,i,l,"throw",e)}i(void 0)}))}}((function(){return function(e,t){var n,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:o(0)}),l(i,"throw",{value:o(1)}),l(i,"return",{value:o(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function o(l){return function(o){var c=[l,o];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){s.label=c[1];break}if(6===c[0]&&s.label<a[1]){s.label=a[1],a=c;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(c);break}a[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,(function(n){try{o("loading"),(t=new s.RiveFile(e)).init(),t.on(s.EventType.Load,(function(){null==t||t.getInstance(),r(t),o("success")})),t.on(s.EventType.LoadError,(function(){o("failed")})),r(t)}catch(e){console.error(e),o("failed")}return[2]}))}))(),function(){null==t||t.cleanup()}}),[e.src,e.buffer]),{riveFile:n,status:l}},t.useStateMachineInput=function(e,t,n,r){var i=a.useState(null),l=i[0],o=i[1];return a.useEffect((function(){var a=function(){if(e&&t&&n||o(null),e&&t&&n){var a=e.stateMachineInputs(t);if(a){var s=a.find((function(e){return e.name===n}));void 0!==r&&s&&(s.value=r),o(s||null)}}else o(null)};a(),e&&e.on(s.EventType.Load,(function(){a()}))}),[e]),l},t.useViewModel=function(e,t){var n=null!=t?t:{},r=n.name,i=n.useDefault,l=a.useState(null),o=l[0],c=l[1];return a.useEffect((function(){var t=function(){if(e){c(null!=r?(null==e.viewM
1odelByName?void 0:e.viewModelByName.call(e,r))||null:e.defaultViewModel()||null)}else c(null)};return t(),e&&e.on(s.EventType.Load,t),function(){e&&e.off(s.EventType.Load,t)}}),[e,r,void 0!==i&&i]),o},t.useViewModelInstance=function(e,t){var n=null!=t?t:{},r=n.name,s=n.useDefault,i=void 0!==s&&s,l=n.useNew,o=void 0!==l&&l,c=n.rive,u=a.useState(null),d=u[0],f=u[1];return a.useEffect((function(){if(e){var t;f(t=null!=r?e.instanceByName(r)||null:i?(null==e.defaultInstance?void 0:e.defaultInstance.call(e))||null:o?(null==e.instance?void 0:e.instance.call(e))||null:(null==e.defaultInstance?void 0:e.defaultInstance.call(e))||null),c&&t&&c.viewModelInstance!==t&&c.bindViewModelInstance(t)}else f(null)}),[e,r,i,o,c]),d},t.useViewModelInstanceArtboard=function(e,t){return{setValue:S(e,t,{getProperty:a.useCallback((function(e,t){return e.artboard(t)}),[]),getValue:a.useCallback((function(){}),[]),defaultValue:null,buildPropertyOperations:a.useCallback((function(e){return{setValue:function(t){e((function(e){e.value=t}))}}}),[])}).setValue}},t.useViewModelInstanceBoolean=function(e,t){var n=S(e,t,{getProperty:a.useCallback((function(e,t){return e.boolean(t)}),[]),getValue:a.useCallback((function(e){return e.value}),[]),defaultValue:null,buildPropertyOperations:a.useCallback((function(e){return{setValue:function(t){e((function(e){e.value=t}))}}}),[])});return{value:n.value,setValue:n.setValue}},t.useViewModelInstanceColor=function(e,t){var n=S(e,t,{getProperty:a.useCallback((function(e,t){return e.color(t)}),[]),getValue:a.useCallback((function(e){return e.value}),[]),defaultValue:null,buildPropertyOperations:a.useCallback((function(e){return{setValue:function(t){e((function(e){e.value=t}))},setRgb:function(t,n,r){e((function(e){e.rgb(t,n,r)}))},setRgba:function(t,n,r,a){e((function(e){e.rgba(t,n,r,a)}))},setAlpha:function(t){e((function(e){e.alpha(t)}))},setOpacity:function(t){e((function(e){e.opacity(t)}))}}}),[])});return{value:n.value,setValue:n.setValue,setRgb:n.setRgb,setRgba:n.setRgba,setAlpha:n.setAlpha,setOpacity:n.setOpacity}},t.useViewModelInstanceEnum=function(e,t){var n=S(e,t,{getProperty:a.useCallback((function(e,t){return e.enum(t)}),[]),getValue:a.useCallback((function(e){return e.value}),[]),defaultValue:null,getExtendedData:a.useCallback((function(e){return e.values}),[]),buildPropertyOperations:a.useCallback((function(e){return{setValue:function(t){e((function(e){e.value=t}))}}}),[])});return{value:n.value,values:n.extendedData||[],setValue:n.setValue}},t.useViewModelInstanceImage=function(e,t){return{setValue:S(e,t,{getProperty:a.useCallback((function(e,t){return e.image(t)}),[]),getValue:a.useCallback((function(){}),[]),defaultValue:null,buildPropertyOperations:a.useCallback((function(e){return{setValue:function(t){e((function(e){e.value=t}))}}}),[])}).setValue}},t.useViewModelInstanceList=function(e,t){var n,r=a.useState(0)[1],s=S(e,t,{getProperty:a.useCallback((function(e,t){return e.list(t)}),[]),getValue:a.useCallback((function(e){return e.length}),[]),defaultValue:null,onPropertyEvent:function(){r((function(e){return e+1}))},buildPropertyOperations:a.useCallback((function(e){return{addInstance:function(t){e((function(e){return e.addInstance(t)}))},addInstanceAt:function(t,n){var r=!1;return e((function(e){r=e.addInstanceAt(t,n)})),r},removeInstance:function(t){e((function(e){return e.removeInstance(t)}))},removeInstanceAt:function(t){e((function(e){return e.removeInstanceAt(t)}))},getInstanceAt:function(t){var n=null;return e((function(e){n=e.instanceAt(t)})),n},swap:function(t,n){e((function(e){return e.swap(t,n)}))}}}),[])});return{length:null!=(n=s.value)?n:0,addInstance:s.addInstance,addInstanceAt:s.addInstanceAt,removeInstance:s.removeInstance,removeInstanceAt:s.removeInstanceAt,getInstanceAt:s.getInstanceAt,swap:s.swap}},t.useViewModelInstanceNumber=function(e,t){var n=S(e,t,{getProperty:a.useCallback((function(e,t){return e.number(t)}),[]),getValue:a.useCallback((function(e){return e.value}),[]),defaultValue:null,buildPropertyOperations:a.useCallback((function(e){return{setValue:function(t){e((function(e){e.value=t}))}}}),[])});return{value:n.value,setValue:n.setValue}},t.useViewModelInstanceString=function(e,t){var n=S(e,t,{getProperty:a.useCallback((function(e,t){return e.string(t)}),[]),getValue:a.useCallback((function(e){return e.value}),[]),defaultValue:null,buildPropertyOperations:a.useCallback((function(e){return{setValue:function(t){e((function(e){e.value=t}))}}}),[])});return{value:n.value,setValue:n.setValue}},t.useViewModelInstanceTrigger=function(e,t,n){var r=(null!=n?n:{}).onTrigger;return{trigger:S(e,t,{getProperty:a.useCallback((function(e,t){return e.trigger(t)}),[]),getValue:a.useCallback((function(){}),[]),defaultValue:null,onPropertyEvent:r,buildPropertyOperations:a.useCallback((function(e){return{trigger:function(){e((function(e){e.trigger()}))}}}),[])}).trigger}}
1,Object.keys(s).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}))},29661:function(e,t,n){"use strict";n.r(t),n.d(t,{RiveAnimation:function(){return x}});var r=n(59499),a=n(16835),s=n(50029),i=n(87794),l=n.n(i),o=n(96862),c=n(67294),u=n(67078),d=n(85893);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e){var t=e.src,n=e.cdnUrl,r=e.cdnTimeout,i=void 0===r?4e3:r,f=e.artboard,x=e.stateMachines,p=e.autoplay,v=void 0===p||p,g=e.autoBind,b=e.repeat,j=void 0!==b&&b,w=e.fit,y=void 0===w?o.Fit.Contain:w,N=e.data,C=e.onEvents,k=e.onClick,E=e.fallbackSrc,S=e.width,P=e.height,O=e.aspectRatio,A=void 0===O?1.7777777777777777:O,R=e.className,D=e.pauseWhenOffscreen,I=void 0===D||D,F=(0,c.useRef)(null),L=(0,c.useState)(!1),T=L[0],_=L[1],Z=function(e,t,n){var r=(0,c.useState)(null),a=r[0],i=r[1];return(0,c.useEffect)((function(){var r=!1;if(!t)return i({kind:"src",src:e}),function(){r=!0};i(null);var a=new AbortController,o=setTimeout((function(){return a.abort()}),n);return(0,s.Z)(l().mark((function n(){var s,c;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,fetch(t,{signal:a.signal});case 3:if((s=n.sent).ok){n.next=6;break}throw new Error("CDN status ".concat(s.status));case 6:return n.next=8,s.arrayBuffer();case 8:c=n.sent,r||i({kind:"buffer",buffer:c}),n.next=16;break;case 12:n.prev=12,n.t0=n.catch(0),r||i({kind:"src",src:e});case 16:return n.prev=16,clearTimeout(o),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[0,12,16,19]])})))(),function(){r=!0,clearTimeout(o),a.abort()}}),[e,t,n]),a}(t,n,i),M=function(e,t){var n=(0,c.useState)(!t),r=n[0],s=n[1];return(0,c.useEffect)((function(){if(t){var n=e.current;if(n){var r=new IntersectionObserver((function(e){var t=(0,a.Z)(e,1)[0];s(t.isIntersecting)}));return r.observe(n),function(){return r.disconnect()}}}else s(!0)}),[e,t]),r}(F,I),V=m(m({},null!=S?{width:S}:null),null!=P?{height:P}:{aspectRatio:String(A)}),U=T;return(0,d.jsx)("div",{ref:F,className:(0,u.cn)("relative",R),style:V,onClick:k,children:U?E?(0,d.jsx)("img",{src:E,alt:"",style:{width:"100%",height:"100%",objectFit:"contain"}}):null:null==Z?null:(0,d.jsx)(h,{resolved:Z,artboard:f,stateMachines:x,autoplay:v,autoBind:g,repeat:j,fit:y,data:N,onEvents:C,isOnScreen:M,onHardError:function(){return _(!0)}})})}function h(e){var t=e.resolved,n=e.artboard,r=e.stateMachines,s=e.autoplay,i=e.autoBind,l=e.repeat,u=e.fit,f=e.data,x=e.onEvents,h=e.isOnScreen,p=e.onHardError,v=(0,o.useRive)(m(m({},"buffer"===t.kind?{buffer:t.buffer}:{src:t.src}),{},{artboard:n,stateMachines:r,autoplay:s,autoBind:null!==i&&void 0!==i?i:Boolean(f||x),layout:new o.Layout({fit:u,alignment:o.Alignment.Center}),onLoadError:function(e){p()}})),g=v.rive,b=v.RiveComponent;return(0,c.useEffect)((function(){if(g&&l){var e=!1,t=null,n=function(){e||null!=t||(t=window.requestAnimationFrame((function(){t=null,e||(g.stateMachineNames.length>0?g.reset({autoplay:!0,autoBind:null!==i&&void 0!==i?i:Boolean(f||x)}):g.play())})))};return g.on(o.EventType.Stop,n),function(){e=!0,null!=t&&window.cancelAnimationFrame(t),g.off(o.EventType.Stop,n)}}}),[g,l,i,f,x]),(0,c.useEffect)((function(){g&&(s&&h?g.play():g.pause())}),[g,h,s]),(0,c.useEffect)((function(){if(g&&f){var e=g.viewModelInstance;if(e)for(var t=0,n=Object.entries(f);t<n.length;t++){var r=(0,a.Z)(n[t],2),s=r[0],i=r[1];try{"string"===typeof i?e.string(s).value=i:"number"===typeof i?e.number(s).value=i:"boolean"===typeof i&&(e.boolean(s).value=i)}catch(l){0}}}}),[g,f]),(0,c.useEffect)((function(){if(g&&x){var e=g.viewModelInstance;if(e){for(var t=[],n=function(){var n=(0,a.Z)(s[r],2),i=n[0],l=n[1];try{var o=e.trigger(i);o&&"function"===typeof o.on&&(o.on(l),t.push((function(){var e;return null===(e=o.off)||void 0===e?void 0:e.call(o,l)})))}catch(c){0}},r=0,s=Object.entries(x);r<s.length;r++)n();return function(){return t.forEach((function(e){return e()}))}}}}),[g,x]),(0,d.jsx)(b,{style:{width:"100%",height:"100%"}})}},2918:function(e,t,n){"use strict";n.d(t,{mz:function(){return l}});var r=n(14642),a=n(15503),s=n(96257),i=(0,a.ZF)({apiKey:"AIzaSyCNLNhr-iJDUeSsJ4uq6PckbOO8og4EvjY",authDomain:"lumi-8b921.firebaseapp.com",databaseURL:"https://lumi-8b921-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"lumi-8b921",storageBucket:"lumi-8b921.appspot.com",messagingSenderId:"709065613676",appId:"1:709065613676:web:115f4043fa1177578fd349",measurementId:"G-YNGM7QHW5M"}),l=((0,r.N8)(i),(0,s.ad)(i))},96040:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return pn},default:function(){return vn}});var r=n(59499),a=n(16835),s=n(88073),i=n(2962),l=n(11163),o=n(83979),c=n(87904),u=n(69585),d=n(65425),f=n(67294),m=n(27812),x=n(31102),h=n.n(x),p=n(41664),v=n.n(p),g=n(61715),b=n(15111),j=n(16422),w=n(35590),y=n(61998),N=n(39462),C=n(85893);var k=function(e){var t=e.news,n=(0,l.useRouter)().locale,r=function(e){return Math.abs(e)>999?Math.sign(e)*+(Math.abs(e)/1e3).toFixed(1)+"k":Math.sign(e)*Math.abs(e)};return(0,C.jsxs)("div",{className:"flex flex-row items-center space-x-4",children:[(0,C.jsx)("a",{className:"cursor-pointer",onClick:function(e){!function(e,t){e.preventDefault(),(0,w.triggerDialog)(w.DialogName.share,{id:t.id,imageUrl:t.thumbnailUrl,title:t.title,publisherName:t.newsPublisher.name,url:"".concat(window.location.origin,"/").concat(n,"/news/").concat(t.id)})}(e,t)},children:(0,C.jsx)("div",{className:"font-sen text-xs font-light text-text-medium",id:"share-button",children:(0,C.jsxs)("div",{className:"mt-[1px] flex flex-row items-center space-x-2",children:[(0,C.jsx)(h(),{src:N.Z,width:22,height:22,alt:"share"}),(0,C.jsx)("div",{className:"w-6",children:t.shareCount>0&&(0,C.jsx)("p",{children:r(t.shareCount)})})]})})}),(0,C.jsx)(v(),{href:"/news/".concat(t.id),children:(0,C.jsx)("div",{className:"font-sen text-xs font-light text-text-medium",id:"comment-button",children:(0,C.jsxs)("div",{className:"flex flex-row items-center space-x-2",children:[(0,C.jsx)(y.Z,{className:"h-6 w-6 text-primary3"}),(0,C.jsx)("div",{className:"w-6",children:t.commentsCount>0&&(0,C.jsx)("p",{children:r(t.commentsCount)})})]})})})]})},E=function(e){var t=(0,g.Lm)()<=768,n=(0,b.Z)(),r=e.id,a=e.imageUrl,s=e.title,i=e.newsPublisher,l=e.good,o=e.pubDate;return(0,C.jsxs)("div",{className:"flex flex-row-reverse",children:[(0,C.jsxs)("div",{className:"flex flex-col items-end",children:[(0,C.jsx)("div",{className:"relative h-[80px] w-[75px] 2xs:h-[110px] 2xs:w-[105px] md:h-44 md:w-56",children:(0,C.jsx)(v(),{href:"/news/".concat(r),children:(0,C.jsx)("a",{children:(0,C.jsx)(h(),{className:"rounded-lg",src:a,alt:s,layout:"fill",objectFit:"cover",priority:!0})})})}),(0,C.jsx)(v(),{href:"/publishers/".concat(i.slug),children:(0,C.jsx)("a",{children:(0,C.jsx)("div",{className:"relative -mt-6 h-8 w-8 md:-mt-10 md:-mr-2 md:h-[48px] md:w-[76px]",style:{filter:"drop-shadow(1px 1px 8px rgba(147, 154, 188, 0.4)"},children:(0,C.jsx)(h(),{className:"rounded-lg",src:t?i.iconUrl:i.imageUrl,alt:i.name,layout:"fill",objectFit:"cover",priority:!0})})})})]}),(0,C.jsxs)("div",{className:"flex w-full flex-col justify-between",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)(v(),{href:"/news/".concat(r),children:(0,C.jsx)("a",{children:(0,C.jsx)("p",{className:"mt-1 flex-1 pr-6 font-poppins text-[14px] font-bold leading-5 text-text-darkest hover:text-text-dark 2xs:text-[16
1px] md:text-xl",children:s})})}),(0,C.jsx)(v(),{href:"/publishers/".concat(i.slug),passHref:!0,children:(0,C.jsx)("a",{children:(0,C.jsx)("p",{className:"mt-2 mb-2 font-sen text-[10px] font-bold text-text-lightest 2xs:text-xs lg:mt-4",children:i.name})})})]}),(0,C.jsxs)("div",{className:"mb-4 flex flex-row items-center",children:[(0,C.jsx)(k,{news:e}),(0,C.jsx)("p",{className:"ml-4 hidden font-sen text-xs font-light text-text-lightest lg:block",children:(0,j.Z)(new Date(o),{locale:n,addSuffix:!0})})]}),l&&(0,C.jsx)("div",{className:"my-1 flex",children:(0,C.jsx)(S,{})})]})]})},S=function(e){return(0,C.jsx)("div",{className:"flex items-center justify-center rounded-[4px] bg-green px-2 py-0.5",children:(0,C.jsx)("span",{className:"font-sen text-xs text-white",children:(0,C.jsx)(s.cC,{id:"Good News \ud83c\udf89"})})})},P={name:"news",inputNames:["news"],defaultProps:{news:[]},component:E},O=n(54208);var A=function(e){var t=e.externalId,n=e.title,r=e.newsPublisher,a=e.pubDate,s=(0,b.Z)();return(0,C.jsxs)("div",{className:"",children:[(0,C.jsx)(O.Z,{id:t,title:n}),(0,C.jsx)("div",{className:"mt-4",children:(0,C.jsx)(v(),{href:"/publishers/".concat(r.slug,"?view=videos"),passHref:!0,children:(0,C.jsx)("a",{children:(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsx)("div",{className:"relative h-6 w-6 drop-shadow-custom",children:(0,C.jsx)(h(),{className:"rounded-lg",src:r.iconUrl,alt:r.name,layout:"fill",objectFit:"cover"})}),(0,C.jsx)("p",{className:"ml-2 font-sen text-xs text-text-dark",children:r.name})]})})})}),(0,C.jsx)("p",{className:"mt-4 font-poppins font-bold text-text-darkest hover:text-text-dark md:text-2xl",children:n}),(0,C.jsx)("div",{className:"mt-4 flex flex-row",children:(0,C.jsx)("p",{className:"flex-1 font-sen text-xs text-disabled",children:(0,j.Z)(new Date(a),{locale:s,addSuffix:!0})})})]})},R={name:"video",inputNames:["video"],defaultProps:{video:[]},component:A};var D=function(e){var t=e.externalId,n=e.title,r=e.newsPublisher,a=e.pubDate,s=(0,b.Z)();return(0,C.jsxs)("div",{className:"",children:[(0,C.jsx)(O.Z,{id:t,title:n}),(0,C.jsx)("div",{className:"mt-4",children:(0,C.jsx)(v(),{href:"/publishers/".concat(r.slug,"?view=videos"),passHref:!0,children:(0,C.jsx)("a",{children:(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsx)("div",{className:"relative h-6 w-6 drop-shadow-custom",children:(0,C.jsx)(h(),{className:"rounded-lg",src:r.iconUrl,alt:r.name,layout:"fill",objectFit:"cover"})}),(0,C.jsx)("p",{className:"ml-2 font-sen text-xs text-text-dark",children:r.name})]})})})}),(0,C.jsx)("p",{className:"mt-4 font-poppins font-bold text-text-darkest hover:text-text-dark md:text-2xl",children:n}),(0,C.jsx)("div",{className:"mt-4 flex flex-row",children:(0,C.jsx)("p",{className:"flex-1 font-sen text-xs text-disabled",children:(0,j.Z)(new Date(a),{locale:s,addSuffix:!0})})})]})},I={name:"short",inputNames:["video"],defaultProps:{video:[]},component:D},F=n(17909),L=n(34515),T=n(69214),_=n(19312),Z=n(61451);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var U=function(e){var t=e.id,n=e.slug,r=e.exploreName,a=e.imageUrl,i=e.hot,l=e.updated,o=e.exclusive,c=e.description,u=e.updatedAt,d=e.likesCount,f=e.shareCount,m=e.author,x=(0,b.Z)();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"mb-2",children:o?(0,C.jsx)(T.Z,{labelName:"exclusive"}):l?(0,C.jsx)(T.Z,{labelName:"updated"}):i&&(0,C.jsx)(T.Z,{labelName:"hot"})}),(0,C.jsx)("div",{className:"mb-2 cursor-pointer font-poppins text-4xl font-bold text-text-darkest hover:text-text-dark",children:(0,C.jsx)(v(),{href:"/news-stack/".concat(n),children:(0,C.jsx)("a",{children:r})})}),(0,C.jsx)("div",{className:"mb-2 font-poppins text-text-medium",children:c}),m&&(0,C.jsxs)("div",{className:"mb-4 flex w-max items-center space-x-1",children:[(0,C.jsx)("div",{className:"relative h-12 w-12",children:(0,C.jsx)(v(),{href:"/news-stack/".concat(n),children:(0,C.jsx)("a",{children:(0,C.jsx)(h(),{className:"rounded-full",src:m.imageUrl,alt:m.name,layout:"fill",objectFit:"cover"})})})}),(0,C.jsxs)("div",{className:"flex-column items-center",children:[(0,C.jsx)("p",{className:"font-sen text-text-medium",children:(0,C.jsx)(s.cC,{id:"A News Stack by"})}),(0,C.jsxs)("p",{className:"flex font-sen font-bold text-text-dark",children:[m.name,m.verified&&(0,C.jsx)("img",{className:"ml-1",src:L.Z.src,alt:"author-name"})]})]})]}),(0,C.jsxs)("p",{className:"mb-2 font-sen text-xs text-text-lightest",children:[(0,C.jsx)(s.cC,{id:"Last updated at"})," ",(0,F.Z)(new Date(u),"PP",{locale:x})]}),(0,C.jsxs)("div",{className:"flex flex-row space-x-4",children:[(0,C.jsxs)("div",{onClick:function(){(0,w.triggerDialog)(w.DialogName.share,{id:t,imageUrl:a,title:r,publisherName:c,headerComp:(0,C.jsxs)("div",{className:"mt-3 flex items-center",children:[(0,C.jsx)("div",{className:"relative h-[100px] w-[100px]",children:(0,C.jsx)(h(),{className:"rounded-lg ",src:a||"",alt:r,layout:"fill",objectFit:"cover"})}),(0,C.jsxs)("div",{className:"ml-3 flex flex-1 flex-col",children:[(0,C.jsx)("div",{className:"mb-1",children:o?(0,C.jsx)(T.Z,{labelName:"exclusive"}):l?(0,C.jsx)(T.Z,{labelName:"updated"}):i&&(0,C.jsx)(T.Z,{labelName:"hot"})}),(0,C.jsx)("p",{className:"font-poppins font-bold",children:r}),m&&(0,C.jsx)("div",{className:"flex w-max items-center space-x-1",children:(0,C.jsx)("div",{className:"flex-column items-center",children:(0,C.jsxs)("p",{className:"flex font-sen text-sm text-text-dark",children:[m.name,m.verified&&(0,C.jsx)("img",{className:"ml-1",src:L.Z.src})]})})})]})]}
1),url:window.location.toLocaleString()})},className:"flex cursor-pointer items-center space-x-1",children:[(0,C.jsx)(h(),{src:_.Z,width:24,height:24,alt:"share"}),(0,C.jsx)("span",{className:"font-sen text-sm font-light text-text-medium",children:f})]}),(0,C.jsxs)("div",{onClick:function(){return(0,w.triggerDialog)(w.DialogName.download)},className:"flex cursor-pointer items-center space-x-1",children:[(0,C.jsx)(h(),{src:Z.Z,width:24,height:24,alt:"thumbs-up"}),(0,C.jsx)("span",{className:"font-sen text-sm font-light text-text-medium",children:d})]})]})]})},B={name:"news_stack",inputNames:["news_stack"],component:function(e){var t=e.imageUrl,n=e.slug;return(0,C.jsxs)("div",{className:"flex flex-col-reverse lg:flex-row lg:space-x-8",children:[(0,C.jsxs)("div",{className:"relative mb-4 h-[434px] w-full md:mb-6 md:w-2/5",children:[(0,C.jsx)(v(),{href:"/news-stack/".concat(n),children:(0,C.jsx)("a",{className:"absolute right-0 bottom-0 z-20 m-2 rounded-2xl border border-white bg-[#282D4280] p-4 font-sen text-white lg:hidden",children:(0,C.jsx)(s.cC,{id:"View News Stack"})})}),(0,C.jsx)(v(),{href:"/news-stack/".concat(n),children:(0,C.jsx)("a",{children:(0,C.jsx)(h(),{className:"cursor-pointer rounded-lg",src:t,alt:n,layout:"fill",objectFit:"cover"})})})]}),(0,C.jsx)("div",{className:"w-full md:w-3/5",children:(0,C.jsx)("div",{className:"mb-4 md:block",children:(0,C.jsx)(U,V({},e))})})]})}},W=n(61402),z=n(20013),H=n(17524);function Y(e){var t=e.children,n=e.disabled,r=e.onClick,a=e.className,s=void 0===a?"":a,i=e.style,l=void 0===i?{}:i;return(0,C.jsx)("button",{disabled:n,onClick:r,className:"".concat(s," right-1 flex cursor-pointer"),style:l,children:t})}var K=function(e){var t=e.showLeft,n=e.showRight;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"absolute ".concat(!t&&"hidden"," inset-y-[-1px] left-[-1px] bottom-10 z-10 w-2 bg-gradient-to-r to-white transition-opacity duration-300"),style:{background:"linear-gradient(90deg, #FFFFFF 15%, rgba(255, 255, 255, 0) 100%)"}}),(0,C.jsx)("div",{className:"absolute ".concat(!n&&"hidden"," inset-y-[-1px] right-[-1px] bottom-10 z-10 w-2 bg-gradient-to-r to-white transition-opacity duration-300"),style:{background:"linear-gradient(270deg, #FFFFFF 15%, rgba(255, 255, 255, 0) 100%)"}})]})},X={name:"news_stacks_carousel",inputNames:["news_stacks_carousel"],defaultProps:{video:[]},component:function(e){var t=e.items,n=(0,f.useRef)(null),r=(0,f.useState)(0),a=r[0],i=r[1],l="max"==a||a>0,o=t.length>2&&"max"!=a;return(0,C.jsxs)("div",{className:"relative w-[90vw] max-w-[800px]",children:[(0,C.jsx)(K,{showLeft:l,showRight:o}),(0,C.jsx)("div",{className:"w-[] no-scrollbar relative flex max-w-[800px] overflow-scroll",onScroll:function(e){var t=e.target,n=(t.innerWidth,t.scrollLeft);t.scrollWidth-n==e.target.getBoundingClientRect().width?i("max"):i(n)},ref:n,children:(0,m.Z)(t).map((function(e){var t=e.key,n=e.hot,r=e.updated,a=e.exclusive,i=e.description,l=e.imageUrl,o=e.exploreName,c=e.slug,u=e.author;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"mx-2 h-[200px] w-[150px] flex-none lg:hidden",children:(0,C.jsx)(v(),{href:"/news-stack/".concat(c),passHref:!0,children:(0,C.jsx)("a",{className:"",children:(0,C.jsx)("div",{className:"relative rounded-lg bg-off-white",children:(0,C.jsxs)("div",{className:"relative aspect-[0.8]",children:[(0,C.jsx)(h(),{className:"rounded-lg",src:l,alt:t,layout:"fill",objectFit:"cover"}),(0,C.jsx)("div",{className:"absolute mt-2 py-1 px-4",children:a?(0,C.jsx)(T.Z,{labelName:"exclusive"}):r?(0,C.jsx)(T.Z,{labelName:"updated"}):n&&(0,C.jsx)(T.Z,{labelName:"hot"})}),(0,C.jsxs)("div",{className:"absolute bottom-0 z-30 -mt-2 w-full rounded-lg bg-gradient-to-b from-transparent to-gray-400 px-4 pb-6",children:[(0,C.jsx)("div",{className:"w-28 break-words font-poppins font-bold leading-tight text-white",children:o}),u&&(0,C.jsxs)("div",{className:"mt-1 w-28 break-words font-sen text-[12px] text-white",children:[(0,C.jsx)("span",{children:(0,C.jsx)(s.cC,{id:"by"})})," ",(0,C.jsx)("span",{className:"mr-1",children:u.name}),u.verified&&(0,C.jsx)("div",{className:"-mb-1 inline-block",children:(0,C.jsx)("div",{className:"relative h-4 w-4",children:(0,C.jsx)(h(),{src:W.Z,alt:"blue-tick",layout:"fill",objectFit:"cover"})})})]})]})]})})})})}),(0,C.jsx)("div",{className:"mx-2 hidden w-72 shrink-0 rounded-lg bg-off-white lg:block",i
1d:"trending-news-stack-cards",children:(0,C.jsx)(v(),{href:"/news-stack/".concat(c),passHref:!0,children:(0,C.jsx)("a",{children:(0,C.jsxs)("div",{className:"flex flex-col rounded-lg bg-off-white",children:[(0,C.jsx)("div",{className:"relative aspect-[1.15] w-full",children:(0,C.jsx)(h(),{className:"rounded-t-lg",src:l,alt:t,layout:"fill",objectFit:"cover"})}),(0,C.jsxs)("div",{className:"px-6 pb-6",children:[(0,C.jsx)("div",{className:"mt-6",children:a?(0,C.jsx)(T.Z,{labelName:"exclusive"}):r?(0,C.jsx)(T.Z,{labelName:"updated"}):n&&(0,C.jsx)(T.Z,{labelName:"hot"})}),(0,C.jsx)("div",{className:"mt-2 font-poppins text-xl font-bold text-text-darkest hover:text-text-dark",children:o}),u&&(0,C.jsx)("div",{className:"mt-2",children:(0,C.jsxs)("p",{className:"inline-flex font-sen font-bold text-text-medium",children:[u.name,u.verified&&(0,C.jsx)("div",{className:"relative ml-1 mt-1 inline-flex h-4 w-4",children:(0,C.jsx)(h(),{src:L.Z,alt:"blue-tick",layout:"fill",objectFit:"cover"})})]})}),(0,C.jsx)("div",{className:"mt-2 font-sen text-text-medium",children:i})]})]})})})})]})}))}),(0,C.jsxs)("div",{className:"mt-2 mr-2 ".concat(t.length>2&&"lg:flex"," hidden justify-end space-x-2 "),children:[(0,C.jsx)("div",{className:" w-10 items-center rounded-lg border px-2 ease-linear\n ",id:"left-arrow",children:(0,C.jsx)(Y,{disabled:!l,onClick:function(){n.current.scrollBy({left:-200,behavior:"smooth"})},children:(0,C.jsx)(z.Z,{className:"h-10 w-6 transition-colors ".concat(l?"text-primary2":"text-text-lightest"),"aria-hidden":"true"})})}),(0,C.jsx)("div",{className:"relative w-10 items-center rounded-lg border px-2",id:"right-arrow",children:(0,C.jsx)(Y,{disabled:!o,onClick:function(){n.current.scrollBy({left:200,behavior:"smooth"})},children:(0,C.jsx)(H.Z,{className:"h-10 w-6 transition-colors ".concat(o?"text-primary2":"text-text-lightest"),"aria-hidden":"true"})})})]})]})}};function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e){var t=e.children,n=e.disabled,r=e.onClick,a=e.className,s=void 0===a?"":a,i=e.style,l=void 0===i?{}:i;return(0,C.jsx)("button",{disabled:n,onClick:r,className:"".concat(s," right-1 flex cursor-pointer"),style:l,children:t})}var Q=function(e){return(0,C.jsxs)("div",{className:"relative flex w-[200px] shrink-0 flex-col space-y-2",children:[(0,C.jsx)(O.Z,{iframeClass:"rounded-lg w-[200px] ",wrapperClass:"yt-lite shorts z-10 rounded-lg w-[200px] aspect-[9/16]",id:e.externalId,title:e.title,params:"autoplay=1"}),(0,C.jsx)("a",{href:"/shorts/".concat(e.id),rel:"noreferrer",target:"_blank",className:"leading-2 font-sen font-bold",children:(0,C.jsx)("span",{className:"cursor-pointer text-text-darkest hover:text-text-dark",children:e.title})})]})},$=function(e){var t=e.showLeft,n=e.showRight;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"absolute ".concat(!t&&"hidden"," inset-y-[-1px] left-[-1px] bottom-10 z-10 w-2 bg-gradient-to-r to-white transition-opacity duration-300"),style:{background:"linear-gradient(90deg, #FFFFFF 15%, rgba(255, 255, 255, 0) 100%)"}}),(0,C.jsx)("div",{className:"absolute ".concat(!n&&"hidden"," inset-y-[-1px] right-[-1px] bottom-10 z-10 w-2 bg-gradient-to-r to-white transition-opacity duration-300"),style:{background:"linear-gradient(270deg, #FFFFFF 15%, rgba(255, 255, 255, 0) 100%)"}})]})},ee={name:"shorts_carousel",inputNames:["shorts_carousel"],defaultProps:{video:[]},component:function(e){var t=(0,l.useRouter)(),n=t.locale||t.defaultLocale,r=(0,f.useState)(e.items||[]),s=r[0],i=r[1],c=(0,o.fun)({onCompleted:function(e){i(e.allShorts)}}),u=(0,a.Z)(c,2),d=u[0],x=u[1];x.data,x.loading,x.error;(0,f.useEffect)((function(){e.playlistId&&d({variables:{playlistId:e.playlistId,languageCode:n}})}),[e.playlistId,d,n]);var h=(0,f.useRef)(null),p=(0,f.useState)(0),v=p[0],g=p[1],b="max"==v||v>0,j=s.length>2&&"max"!=v;return(0,C.jsxs)("div",{className:"relative w-[90vw] max-w-[800px]",children:[(0,C.jsx)($,{showLeft:b,showRight:j}),(0,C.jsx)("div",{className:"w-[] no-scrollbar relative flex max-w-[800px] space-x-2 overflow-scroll",onScroll:function(e){var t=e.target,n=(t.innerWidth,t.scrollLeft);t.scrollWidth-n==e.target.getBoundingClientRect().width?g("max"):g(n)},ref:h,children:(0,m.Z)(s).map((function(e){return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(Q,G({},e))})}))}),(0,C.jsxs)("div",{className:"mt-2 mr-2 ".concat(s.length>2&&"lg:flex"," hidden justify-end space-x-2 "),children:[(0,C.jsx)("div",{className:" w-10 items-center rounded-lg border px-2 ease-linear\n ",id:"left-arrow",children:(0,C.jsx)(q,{disabled:!b,onClick:function(){h.current.scrollBy({left:-200,behavior:"smooth"})},children:(0,C.jsx)(z.Z,{className:"h-10 w-6 transition-colors ".concat(b?"text-primary2":"text-text-lightest"),"aria-hidden":"true"})})}),(0,C.jsx)("div",{className:"relative w-10 items-center rounded-lg border px-2",id:"right-arrow",children:(0,C.jsx)(q,{disabled:!j,onClick:function(){h.current.scrollBy({left:200,behavior:"smooth"})},children:(0,C.jsx)(H.Z,{className:"h-10 w-6 transition-colors ".concat(j?"text-primary2":"text-text-lightest"),"aria-hidden":"true"})})})]})]})}};function te(e){var t=e.children,n=e.disabled,r=e.onClick,a=e.className,s=void 0===a?"":a,i=e.style,l=void 0===i?{}:i;return(0,C.jsx)("button",{disabled:n,onClick:r,className:"".concat(s," right-1 flex cursor-pointer"),style:l,children:t})}var ne=function(e){e.showLeft,e.showRight;return(0,C.jsx)(C.Fragment,{})},re={name:"image_carousel",inputNames:["items"],defaultProps:{items:[]},component:function(e){var t=e.items,n=void 0===t?[]:t,r=((0,l.useRouter)().locale,n),a=(0,f.useRef)(null),s=(0,f.useState)(0),i=s[0],o=s[1],c="max"==i||i>0,u=r.length>2&&"max"!=i;return 0==n.length?(0,C.jsx)(C.Fragment,{}):(0,C.jsxs)("div",{className:"relative w-[90vw] max-w-[800px]",children:[(0,C.jsx)(ne,{showLeft:c,showRight:u}),(0,C.jsx)("div",{className:"w-[] no-scrollbar relative flex max-w-[800px] space-x-2 overflow-scroll",onScroll:function(e){var t=e.target,n=(t.innerWidth,t.scrollLeft);t.scrollWidth-n==e.target.getBoundingClientRect().width?o("max"):o(n)},ref:a,children:n.map((function(e){var t=e.imageUrl;return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("img",{src:t})})}))}),(0,C.jsxs)("div",{className:"mt-2 mr-2 ".concat(r.length>2&&"lg:flex"," hidden justify-end space-x-2 "),children:[(0,C.jsx)("div",{className:" w-10 items-center rounded-lg border px-2 ease-linear\n ",id:"left-arrow",children:(0,C.jsx)(te,{disabled:!c,onClick:function(){a.current.scrollBy({left:-808,behavior:"smooth"})},children:(0,C.jsx)(z.Z,{className:"h-10 w-6 transition-colors ".concat(c?"text-primary2":"text-text-lightest"),"aria-hidden":"true"})})}),(0,C.jsx)("div",{className:"relative w-10 items-center rounded-lg border px-2",id:"right-arrow",children:(0,C.jsx)(te,{disabled:!u,onClick:function(){a.current.scrollBy({left:808,behavior:"smooth"})},children:(0,C.jsx)(H.Z,{className:"h-10 w-6 transition-colors ".concat(u?"text-primary2":"text-text-lightest"),"aria-hidden":"true"})})})]})]})}},ae={name:"text",inputNames:["content"],defaultProps:{content:""},component:function(e){var t=e.content;return(0,C.jsx)("div",{className:"feed-block-text-container rich-news-stack-text font-poppins",dangerouslySetInnerHTML:{__html:t}})}},se=n(68835),ie=n(61646),le=n(68803),oe=function(e){var t=e.items,n=(0,f.useState)(0),r=n[0],a=n[1],s=((0,l.useRouter)(),t[r].data),i=function(){return"News"==s.__typename?"/news/".concat(s.id):"Video"==s.__typename?"/videos/".concat(s.id):"/"};return(0,C.jsxs)("div",{className:"hero-card-carousel-container no-scrollbar relative rounded-lg bg-black",children:[(0,C.jsx)("div",{className:"absolute bottom-0 z-30 w-full bg-gradient-to-b from-transparent to-black",children:(0,C.jsx)("p",{className:"m-8 font-poppins text-2xl font-bold text-white",children:(0,C.jsx)("a",{href:i(),rel:"noreferrer",target:"_blank",className:"cursor-pointer hover:text-gray-200",children:s.title})})}),(0,C.jsxs)("div",{onClick:function(){window.open(i())},className:"absolute top-0 bottom-0 z-20 flex w-full cursor-pointer items-stretch justify-between space-x-2 text-black",children:[(0,C.jsx)("button",{className:(0,le.Z)("pointer px-2 transition duration-300 ease-in-out hover:bg-gradient-to-r","from-gray-900 to-transparent",0===r?"invisible":"visible"),onClick:function(e){e.stopPropagation(),a((function(e){return(e-1+t.length)%t.length}))},disabled:0===r,children:(0,C.jsx)(se.Z,{className:"h-10 w-10 text-white"})}),(0,C.jsx)("button",{className:(0,le.Z)("pointer px-2 transition duration-300 ease-in-out hover:bg-gradient-to-r","from-transparent to-gray-900",r===t.length-1?"invisible":"visible"),onClick:function(e){e.stopPropagation(),a((function(e){return(e+1)%t.length}))},disabled:r===t.length-1,children:(0,C.jsx)(ie.Z,{className:"h-10 w-10 text-white"})})]}),(0,C.jsx)("div",{className:"hero-card-carousel no-scrollbar relative h-[500px] w-full rounded bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url(".concat(s.imageUrl,")")}})]})},ce={name:"hero_card",defaultProps:{content:""},component:function(e){var t=e.items;return(0,C.jsx)("div",{className:"feed-block-text-container",children:(0,C.jsx)(oe,{items:t})})}},ue={name:"image",inputNames:["webImageUrl","imageUrl","path"],defaultProps:{imageUrl:"",path:""},component:function(e){var t=e.webImageUrl,n=e.imageUrl,r=e.path,a=t||n,s=a?(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("img",{src:a,alt:"custom-image",className:"rounded-lg"})}):(0,C.jsx)(C.Fragment,{});return(0,C.jsx)("div",{className:"feed-block-image-container flex justify-center",children:r?(0,C.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",children:s}):s})}},de={name:"embed",defaultProps:{type:"",content:""},component:function(e){var t=e.type,n=e.content;return(0,f.useEffect)((function(){var e=document.getElementsByTagName("body")[0],t=document.getElementById("twitter");t&&t.remove();var n=document.createElement("script");
1if(n.id="twitter",n.src="https://platform.twitter.com/widgets.js",e.appendChild(n),window.instgrm)window.instgrm.Embeds.process();else{var r=document.createElement("script");r.src="//www.instagram.com/embed.js",r.onload=function(){window.instgrm.Embeds.process()},e.appendChild(r),window.instagram=!0}var a=document.getElementById("tiktok");a&&a.remove();var s=document.createElement("script");s.id="tiktok",s.src="https://www.tiktok.com/embed.js",e.appendChild(s)}),[]),(0,C.jsx)("div",{className:"mb-8",children:n.includes("youtube")?(0,C.jsx)("div",{className:"youtube-container w-full rounded",children:(0,C.jsx)("div",{dangerouslySetInnerHTML:{__html:n}})}):(0,C.jsx)("div",{className:"rich-news-stack-embed ".concat(t," mt-2"),children:(0,C.jsx)("div",{className:"mx-auto w-[200px] overflow-scroll 2xs:w-[280px] sm:overflow-hidden md:w-[500px]",children:(0,C.jsx)("div",{dangerouslySetInnerHTML:{__html:n}})})})})}},fe=n(77191),me={name:"featured_news_card",inputNames:[""],defaultProps:{},component:function(e){var t;(0,fe.Z)(e);var n=(0,l.useRouter)(),r=(0,o.fPd)({variables:{categoryId:n.query.slug,languageCode:"en"}}),a=r.data,s=r.loading,i=(r.error,(0,b.Z)());if(s)return(0,C.jsx)("p",{children:"Loading"});if(a&&null==(null===(t=a.featuredNews)||void 0===t?void 0:t.id))return(0,C.jsx)(C.Fragment,{});var c=a.featuredNews,u=c.id,d=c.title,f=c.description,m=c.imageUrl,x=c.newsPublisher,p=c.pubDate;return(0,C.jsxs)("div",{className:"",children:[(0,C.jsxs)("div",{className:"relative",children:[(0,C.jsx)(v(),{href:"/news/".concat(u),passHref:!0,children:(0,C.jsx)("a",{target:"_blank",rel:"noreferrer",children:(0,C.jsx)("img",{src:m,alt:"featured-news-image",className:"rounded-lg"})})}),(0,C.jsx)("span",{className:"absolute top-4 left-4 rounded-md bg-gray-800 px-3 py-1 font-sen text-sm font-bold text-white",children:"Featured"})]}),(0,C.jsx)("div",{className:"mt-4",children:(0,C.jsx)(v(),{href:"/news/".concat(u),passHref:!0,children:(0,C.jsx)("a",{target:"_blank",rel:"noreferrer",children:(0,C.jsx)("span",{className:"font-poppins font-bold text-text-darkest hover:text-text-dark md:text-2xl",children:d})})})}),(0,C.jsx)("div",{className:"mt-4",children:(0,C.jsx)("span",{className:"font-poppins text-text-darkest hover:text-text-dark",children:f})}),(0,C.jsx)("div",{className:"mt-4",children:(0,C.jsx)(v(),{href:"/publishers/".concat(x.slug,"?view=videos"),passHref:!0,children:(0,C.jsx)("a",{children:(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsx)("div",{className:"relative h-6 w-6 drop-shadow-custom",children:(0,C.jsx)(h(),{className:"rounded-lg",src:x.iconUrl,alt:x.name,layout:"fill",objectFit:"cover"})}),(0,C.jsx)("p",{className:"ml-2 font-sen text-xs text-text-dark",children:x.name})]})})})}),(0,C.jsx)("div",{className:"mt-4 flex flex-row",children:(0,C.jsx)("p",{className:"flex-1 font-sen text-xs text-disabled",children:(0,j.Z)(new Date(p),{locale:i,addSuffix:!0})})})]})}},xe=n(22779),he=function(e){return"IN_PLAY"===e||"PAUSED"===e||"EXTRA_TIME"===e},pe=function(e){return"PENALTY_SHOOTOUT"===e},ve=function(e){return"FINISHED"===e||"AWARDED"===e},ge=function(e){return"SUSPENDED"===e||"POSTPONED"===e||"CANCELLED"===e},be=function(e){return null==e.score.winningTeam||he(e.matchStatus)||pe(e.matchStatus)},je=function(e){return be(e)||ve(e.matchStatus)&&e.score.winningTeam===e.homeTeam.teamCode},we=function(e){return be(e)||ve(e.matchStatus)&&e.score.winningTeam===e.awayTeam.teamCode},ye=function(e){var t=function(e){var t=new Date(e);return isNaN(t.getTime())?null:{date:t.toLocaleDateString("en-MY",{day:"2-digit",month:"short"}),time:t.toLocaleTimeString("en-MY",{hour:"numeric",minute:"2-digit",hour12:!0})}}(e.matchDate);return t?(0,C.jsxs)("div",{className:"flex flex-col items-end",children:[(0,C.jsx)("span",{className:"text-md font-poppins text-text-dark",children:t.date}),(0,C.jsx)("span",{className:"text-md font-poppins font-bold text-text-darkest",children:t.time})]}):(0,C.jsx)("span",{className:"font-sen text-sm text-text-medium",children:(0,C.jsx)(s.cC,{id:"Scheduled"})})},Ne=function(e){var t=e.team,n=e.status,r=e.fulltimeScore,a=e.penaltiesScore,s=e.isWinner,i=(e.score,s?"text-text-darkest":"text-text-lightest"),l=he(n)||ve(n)||pe(n),o=s&&ve(n);return(0,C.jsxs)("div",{className:"flex items-center gap-1",children:[(0,C.jsx)("div",{className:"my-1 ml-4 shrink-0 items-center",children:t.imageUrl?(0,C.jsx)("div",{className:"mt-1",children:(0,C.jsx)(h(),{src:t.imageUrl,alt:t.teamName,width:24,height:24,className:"object-contain",unoptimized:!0})}):t.emoji?(0,C.jsx)("span",{className:"text-lg ".concat(i),children:t.emoji}):(0,C.jsx)("div",{className:"h-6 w-6"})}),(0,C.jsx)("span",{className:"flex-1 truncate font-poppins text-lg font-bold ".concat(i),children:t.teamName}),l&&(0,C.jsxs)("div",{className:"flex items-center gap-1",children:[(0,C.jsx)("span",{className:"font-poppins text-lg font-bold ".concat(i),children:r}),null!=a&&(0,C.jsxs)("span",{className:"font-poppins text-lg font-bold ".concat(i),children:["(",a,")"]}),(0,C.jsx)("div",{className:"flex w-4 items-center justify-end",children:o&&(0,C.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",className:"text-text-darkest",children:(0,C.jsx)("polygon",{points:"10,0 10,10 0,5"})})})]}),ge(n)&&(0,C.jsx)("span",{className:"mr-4 font-sen text-sm ".concat(i),children:"-"})]})},Ce=function(e){var t,n,r,a,s=e.fixture;return(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(Ne,{team:s.homeTeam,status:s.matchStatus,fulltimeScore:s.score.fulltimeScore.home,penaltiesScore:null!==(t=null===(n=s.score.penaltiesScore)||void 0===n?void 0:n.home)&&void 0!==t?t:null,isWinner:je(s),score:s.score}),(0,C.jsx)(Ne,{team:s.awayTeam,status:s.matchStatus,fulltimeScore:s.score.fulltimeScore.away,penaltiesScore:null!==(r=null===(a=s.score.penaltiesScore)||void 0===a?void 0:a.away)&&void 0!==r?r:null,isWinner:we(s),score:s.score})]})},ke=function(e){var t=e.stage;switch(t){case"FINAL":return(0,C.jsx)(s.cC,{id:"Final"});case"THIRD_PLACE":return(0,C.jsx)(s.cC,{id:"Third place"});
1case"SEMI_FINALS":return(0,C.jsx)(s.cC,{id:"Semi-finals"});case"QUARTER_FINALS":return(0,C.jsx)(s.cC,{id:"Quarter-finals"});case"LAST_16":return(0,C.jsx)(s.cC,{id:"Round of 16"});case"LAST_32":return(0,C.jsx)(s.cC,{id:"Round of 32"});case"LAST_64":return(0,C.jsx)(s.cC,{id:"Round of 64"});case"GROUP_STAGE":return(0,C.jsx)(s.cC,{id:"Group stage"});default:return(0,C.jsx)(C.Fragment,{children:t})}},Ee=function(e){var t=e.group,n=t.startsWith("GROUP_")?t.replace("GROUP_",""):t;return(0,C.jsx)(s.cC,{id:"Group {letter}",values:{letter:n}})},Se=function(e){switch(e.duration){case"EXTRA_TIME":return(0,C.jsx)(s.cC,{id:"AET"});case"PENALTY_SHOOTOUT":return(0,C.jsx)(s.cC,{id:"AET (P)"});default:return(0,C.jsx)(s.cC,{id:"Full Time"})}},Pe=function(e){var t=e.status;switch(t){case"CANCELLED":return(0,C.jsx)(s.cC,{id:"Cancelled"});case"SUSPENDED":return(0,C.jsx)(s.cC,{id:"Suspended"});case"POSTPONED":return(0,C.jsx)(s.cC,{id:"Postponed"});case"PAUSED":return(0,C.jsx)(s.cC,{id:"Paused"});default:return(0,C.jsx)(C.Fragment,{children:t})}},Oe=function(e){var t=e.fixture;return(0,C.jsx)("span",{className:"rounded bg-light-background px-1 py-0.5 font-sen text-xs font-bold text-text-medium",children:t.group?(0,C.jsx)(Ee,{group:t.group}):(0,C.jsx)(ke,{stage:t.stage})})},Ae=function(e){var t=e.status,n=e.score;if(ge(t)){var r=function(e){switch(e){case"CANCELLED":return{bg:"#FCEBEB",text:"#A32D2D"};case"SUSPENDED":return{bg:"#F7FADA",text:"#46492B"};case"POSTPONED":return{bg:"#DDDDDD",text:"#6D6868"};case"PAUSED":return{bg:"#FAEEDA",text:"#854F0B"};default:return{bg:"#E6F1FB",text:"#185FA5"}}}(t),a=r.bg,i=r.text;return(0,C.jsx)("span",{className:"rounded px-1 py-0.5 font-sen text-xs font-bold",style:{backgroundColor:a,color:i},children:(0,C.jsx)(Pe,{status:t})})}if(he(t)||pe(t)){var l=pe(t)&&null!=n.penaltiesScore;return(0,C.jsxs)("span",{className:"flex items-center gap-1 rounded px-1 py-0.5 font-sen text-xs font-bold text-[#166534]",style:{backgroundColor:"#DCFCE7"},children:[(0,C.jsx)("span",{children:(0,C.jsx)(s.cC,{id:"Ongoing"})}),l&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{children:"\u2022"}),(0,C.jsx)("span",{children:(0,C.jsx)(Se,{duration:n.duration})})]})]})}return ve(t)?(0,C.jsx)("span",{className:"rounded px-1 py-0.5 font-sen text-xs font-bold text-white",style:{backgroundColor:"#343744"},children:(0,C.jsx)(Se,{duration:n.duration})}):null},Re=function(e){var t,n=e.fixture,r=e.isLastItem,a=e.nextMatchStatus,s=he(n.matchStatus)||pe(n.matchStatus),i=null!=a&&(he(a)||pe(a)),l=!r&&s===i;return(0,C.jsxs)("div",{className:(0,le.Z)("flex flex-col",s?"bg-[#F0F4FF]":"bg-white"),children:[(0,C.jsx)("div",{className:"h-3"}),(0,C.jsxs)("div",{className:"flex items-center gap-1 px-4",children:[(0,C.jsx)(Oe,{fixture:n}),(0,C.jsx)(Ae,{status:n.matchStatus,score:n.score})]}),(0,C.jsx)("div",{className:"h-2"}),(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsx)("div",{className:"min-w-0 flex-[4]",children:(0,C.jsx)(Ce,{fixture:n})}),(t=n.matchStatus,("SCHEDULED"===t||"TIMED"===t)&&(0,C.jsx)("div",{className:"shrink-0 pr-4",children:(0,C.jsx)(ye,{matchDate:n.matchDate})}))]}),(0,C.jsx)("div",{className:"h-1"}),l?(0,C.jsx)("div",{className:"mx-4 border-t border-light-background"}):(0,C.jsx)("div",{className:"h-2"})]})},De=[{short:"FT",long:(0,C.jsx)(s.cC,{id:"Full Time"})},{short:"AET",long:(0,C.jsx)(s.cC,{id:"After Extra Time"})},{short:"AET(P)",long:(0,C.jsx)(s.cC,{id:"After Extra Time (Penalties)"})}],Ie=function(){return(0,C.jsxs)("div",{className:"flex items-center justify-between px-4 py-2",children:[(0,C.jsx)("div",{className:"flex flex-col",children:De.map((function(e){var t=e.short,n=e.long;return(0,C.jsxs)("span",{className:"font-sen text-[10px] text-text-lightest",children:[t,": ",n]},t)}))}),(0,C.jsx)(h(),{src:"/logo-black.png",alt:"Lumi",width:56,height:24,className:"object-contain"})]})},Fe=function(e){var t=e.tournamentInfo,n=e.matchCount;return(0,C.jsxs)("div",{className:"flex items-start justify-between gap-4 rounded-t-2xl px-4 py-2",style:{backgroundColor:"#111f3A"},children:[(0,C.jsxs)("div",{className:"mt-1 flex min-w-0 flex-1 flex-col",children:[(0,C.jsx)("span",{className:"font-poppins text-lg font-bold leading-tight",style:{color:"#e8c259"},children:t.title}),t.description&&(0,C.jsx)("span",{className:"text-md font-sen text-white",children:t.description})]}),(0,C.jsxs)("div",{className:"flex shrink-0 flex-col items-end",children:[n>0&&(0,C.jsxs)("span",{className:"font-sen text-lg font-bold text-white",children:[n," ",(0,C.jsx)(s.cC,{id:"{matchCount, plural, one {match} other {matches}}",values:{matchCount:n}})]}),t.stage&&(0,C.jsx)("span",{className:"text-md font-sen text-white",children:(0,C.jsx)(ke,{stage:t.stage})})]})]})},Le=function(e){var t=e.tournamentInfo,n=e.fixtures,r=e.includeDisclaimer,a=void 0===r||r;return(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"overflow-hidden rounded-2xl shadow-custom",children:[(0,C.jsx)(Fe,{tournamentInfo:t,matchCount:n.length}),(0,C.jsxs)("div",{className:"rounded-b-2xl bg-white",children:[n.map((function(e,t){return(0,C.jsx)(Re,{fixture:e,isLastItem:t===n.length-1,nextMatchStatus:t<n.length-1?n[t+1].matchStatus:void 0},e.matchId)})),(0,C.jsx)(Ie,{})]})]}),a&&t.footer&&(0,C.jsx)("p",{className:"mx-1 mt-2 font-sen text-xs text-text-lightest",children:t.footer})]})},Te={name:"scoreboard",inputNames:["competition_code"],component:function(e){var t,n,r=e.competition_code,a=(0,l.useRouter)(),i=(0,o.wLT)({variables:{languageCode:a.locale,competitionCode:r}}),c=i.data,u=i.loading,d=i.error;if(u)return(0,C.jsx)("p",{className:"text-center font-sen text-text-lightest",children:(0,C.jsx)(s.cC,{id:"Lo
1ading..."})});var f=null===c||void 0===c?void 0:c.scoreboard;return!(null===f||void 0===f||!f.tournamentInfo)&&!(null===(t=f.fixtures)||void 0===t||!t.length)&&null!==f&&void 0!==f&&f.tournamentInfo&&null!==(n=f.fixtures)&&void 0!==n&&n.length&&!d?(0,C.jsx)(Le,{tournamentInfo:f.tournamentInfo,fixtures:f.fixtures}):(0,C.jsx)(C.Fragment,{})}},_e=n(29795),Ze={ongoing:{bg:"#DCFCE7",text:"#166534"},unstarted:{bg:"#E6F1FB",text:"#185FA5"},ended:{bg:"#EEEEF2",text:"#626072"}},Me=function(e){switch(e.status){case"ongoing":return(0,C.jsx)(s.cC,{id:"Live"});case"ended":return(0,C.jsx)(s.cC,{id:"Ended"});default:return(0,C.jsx)(s.cC,{id:"Scheduled"})}},Ve=function(e){var t=e.status,n=Ze[t],r=n.bg,a=n.text;return(0,C.jsx)("span",{className:"shrink-0 self-start rounded px-1 py-0.5 font-sen text-xs font-bold",style:{backgroundColor:r,color:a},children:(0,C.jsx)(Me,{status:t})})},Ue=function(e){var t=e.title,n=e.pollStatus;return(0,C.jsxs)("div",{className:"flex flex-row items-start justify-between gap-4",children:[(0,C.jsx)("div",{className:"font-poppins text-xl font-bold",children:t}),(0,C.jsx)(Ve,{status:n})]})};var Be=f.forwardRef((function({title:e,titleId:t,...n},r){return f.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?f.createElement("title",{id:t},e):null,f.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"}))})),We=function(e){var t=e.selected,n=e.canTap;return(0,C.jsx)("span",{className:(0,le.Z)("flex h-4 w-4 shrink-0 items-center justify-center rounded-full border transition-colors duration-300",t?"border-primary bg-primary":n?"border-text-darkest":"border-disabled"),children:t&&(0,C.jsx)("span",{className:"h-2 w-2 rounded-full bg-white"})})},ze=function(){return(0,C.jsx)(Be,{className:"h-4 w-4 shrink-0 rounded-full bg-[#166534] p-[2px] text-white"})},He=function(e){var t=e.percent,n=e.color;return(0,C.jsxs)("span",{className:"shrink-0 font-sen text-sm text-".concat(n),children:[t.toFixed(),"%"]})},Ye=function(e){var t=e.pollOption,n=e.totalVotes,r=e.voteEnded,a=e.selected,s=e.canTap,i=e.onToggle,l=function(e){return a?"primary":r?t.isCorrectOption?"[#166534]":e?"transparent":"disabled":e?"transparent":s?"text-darkest":"disabled"},o=n>0?t.votes/n*100:0;return(0,C.jsxs)("button",{type:"button",disabled:!s,onClick:function(){return i(t.id)},className:(0,le.Z)("relative flex w-full flex-row items-center gap-2 overflow-hidden rounded-lg border-2 bg-white p-3 text-left transition-colors duration-300","border-".concat(l(!0)),s?"cursor-pointer":"cursor-default"),children:[r&&(0,C.jsx)("span",{className:(0,le.Z)("absolute inset-y-0 left-0 z-0 rounded-r-lg"),style:{width:"".concat(o,"%"),backgroundColor:t.isCorrectOption?"#DCFCE7":"#E9EDF7"}}),(0,C.jsxs)("div",{className:"relative z-10 flex w-full flex-row items-center gap-2",children:[r&&t.isCorrectOption?(0,C.jsx)(ze,{}):(0,C.jsx)(We,{selected:a,canTap:s}),(0,C.jsx)("span",{className:(0,le.Z)("flex-1 font-sen text-lg font-bold transition-colors duration-300","text-".concat(l(!1))),children:t.title}),r&&(0,C.jsx)(He,{percent:o,color:l(!1)})]})]})},Ke=function(e){var t=e.totalVotes,n=e.canVote,r=e.hasSelection,a=e.onSubmit,i=!n||!r;return(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("span",{className:"font-sen text-xs text-text-medium",children:[t," ",(0,C.jsx)(s.cC,{id:"{totalVotes, plural, one {vote} other {votes}}",values:{totalVotes:t}})]}),(0,C.jsx)("button",{type:"button",disabled:i,onClick:a,className:(0,le.Z)("rounded-xl px-4 py-1.5 font-sen text-sm text-white transition-colors duration-300",i?"cursor-not-allowed bg-disabled":"cursor-pointer bg-primary hover:bg-primary2"),children:(0,C.jsx)(s.cC,{id:"Submit"})})]})},Xe=function(e){var t=e.pollPayload,n=t.title,r=t.options,a=t.pollStatus,i=t.allowMultipleOptions,l=t.totalVotes,o=(0,f.useState)([]),c=o[0],u=o[1],d="ongoing"===a,x="ended"===a,h=function(e){d&&u((function(t){return i?t.includes(e)?t.filter((function(t){return t!==e})):[].concat((0,m.Z)(t),[e]):[e]}))};return(0,C.jsxs)("div",{className:"flex flex-col gap-3 rounded-2xl bg-off-white p-4",children:[(0,C.jsx)(Ue,{title:n,pollStatus:a}),d&&(0,C.jsx)("span",{className:"font-sen text-xs text-text-medium",children:i?(0,C.jsx)(s.cC,{id:"Select all that apply"}):(0,C.jsx)(s.cC,{id:"Pick an option"})}),(0,C.jsx)("div",{className:"flex flex-col gap-2",children:r.map((function(e){return(0,C.jsx)(Ye,{pollOption:e,totalVotes:l,voteEnded:x,selected:c.includes(e.id),canTap:d,onToggle:h},e.id)}))}),(0,C.jsx)(Ke,{totalVotes:l,canVote:d,hasSelection:c.length>0,onSubmit:function(e){var t=function(){if(!window.AF_SMART_SCRIPT)return"";var e="/news?topic=fifa_2026",t="https://luminews.onelink.me/ewC9",n="af_channel",r={defaultValue:"FIFA Banner"},a={keys:["fbclid","twclid","ttclid"]},s={defaultValue:"social_organic"},i={keys:["fifa_banner"],defaultValue:e},l={defaultValue:e},o={paramKey:"af_ss_ui",defaultValue:"true"};return window.AF_SMART_SCRIPT.generateOneLinkURL({oneLinkURL:t,webReferrer:n,afParameters:{mediaSource:r,afSub1:a,afSub2:s,campaign:i,deepLinkValue:l,afCustom:[o]}}).clickURL}();u([]),e.preventDefault(),(0,w.triggerDialog)(w.DialogName.pollVote,{deeplink:t,customCta:_e.ag._("Switch to the Lumi News app to cast your vote")})}})]})},Je={name:"poll",inputNames:["id"],component:function(e){var t=e.id,n=(0,l.useRouter)().locale,r=(0,o.pj$)({variables:{id:t,languageCode:n}}),a=r.data,i=r.loading,c=r.error;if(i)return(0,C.jsx)("p",{className:"text-center font-sen text-text-lightest",children:(0,C.jsx)(s.cC,{id:"Lo
1ading..."})});var u=null===a||void 0===a?void 0:a.poll;return!u||c?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(Xe,{pollPayload:u})}},Ge=n(96257),qe=n(2918),Qe=["disabled","unstarted","live","ongoing","tallying","completed"];function $e(e){return Qe.includes(e)?e:"disabled"}function et(e){var t=(0,f.useState)({data:[],loading:!0,error:null}),n=t[0],r=t[1];return(0,f.useEffect)((function(){var t=(0,Ge.hJ)(qe.mz,"prn2026/data/states"),n=e&&e.length>0?(0,Ge.IO)(t,(0,Ge.ar)("stateCode","==",e)):(0,Ge.IO)(t,(0,Ge.Xo)("order"));return(0,Ge.cf)(n,(function(e){return r({data:e.docs.map((function(e){return{stateCode:"string"===typeof(t=e.data()).stateCode?t.stateCode:"",stateName:"string"===typeof t.stateName?t.stateName:"",electionStatus:$e(t.electionStatus),totalSeats:"number"===typeof t.totalSeats?t.totalSeats:0,winningParty:"string"===typeof t.winningParty?t.winningParty:"",incumbentParty:"string"===typeof t.incumbentParty?t.incumbentParty:"",isOfficialResults:"boolean"===typeof t.isOfficialResults&&t.isOfficialResults,competingCoalitions:Array.isArray(t.competingCoalitions)?t.competingCoalitions.map((function(e){return String(e)})):[],order:"number"===typeof t.order?t.order:0};var t})),loading:!1,error:null})}),(function(e){return r({data:[],loading:!1,error:e})}))}),[e]),n}function tt(){var e=(0,f.useState)({data:[],loading:!0,error:null}),t=e[0],n=e[1];return(0,f.useEffect)((function(){var e=(0,Ge.IO)((0,Ge.hJ)(qe.mz,"prn2026/data/coalitions"),(0,Ge.Xo)("code"));return(0,Ge.cf)(e,(function(e){return n({data:e.docs.map((function(e){return{code:"string"===typeof(t=e.data()).code?t.code:"",color:"string"===typeof t.color?t.color:"",imageUrl:"string"===typeof t.imageUrl?t.imageUrl:"",partyName:"string"===typeof t.partyName?t.partyName:""};var t})),loading:!1,error:null})}),(function(e){return n({data:[],loading:!1,error:e})}))}),[]),t}function nt(e){var t=(0,f.useState)({data:[],loading:!0,error:null}),n=t[0],r=t[1];return(0,f.useEffect)((function(){var t=(0,Ge.IO)((0,Ge.hJ)(qe.mz,"prn2026/data/seats"),(0,Ge.ar)("stateCode","==",e));return(0,Ge.cf)(t,(function(e){return r({data:e.docs.map((function(e){return function(e){var t="string"===typeof e.unverifiedWinnerCoalitionCode?e.unverifiedWinnerCoalitionCode:"",n="string"===typeof e.verifiedWinnerCoalitionCode?e.verifiedWinnerCoalitionCode:"";return{stateCode:"string"===typeof e.stateCode?e.stateCode:"",stateSeatCode:"string"===typeof e.stateSeatCode?e.stateSeatCode:"",status:$e(e.status),unverifiedWinnerCoalitionCode:t,verifiedWinnerCoalitionCode:n,effectiveWinnerCoalitionCode:""!==n?n:t}}(e.data())})),loading:!1,error:null})}),(function(e){return r({data:[],loading:!1,error:e})}))}),[e]),n}var rt=n(67078);function at(e){var t,n=e.prnStatus,r=e.title,a=e.dateLabel,i=e.children,l="live"===n.electionStatus,o="unstarted"===n.electionStatus,c=r&&r.length>0?r:_e.ag._("PRN 2026"),u=null!==(t=null===a||void 0===a?void 0:a.trim())&&void 0!==t?t:"",d=l?_e.ag._("LIVE"):o&&u.length>0?u:null;return(0,C.jsxs)("div",{className:"overflow-hidden rounded-2xl border-[1px] bg-white shadow-sm",children:[(0,C.jsx)("div",{className:"bg-[#3D477A] px-4 py-3",children:(0,C.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,C.jsx)("p",{className:"font-poppins text-lg font-bold text-white transition-all duration-300 sm:text-2xl",children:c}),d&&(0,C.jsx)("span",{className:(0,rt.cn)("rounded-md px-2 py-1 font-sen text-xs font-bold text-white",l?"animate-pulse bg-alert duration-1000":"bg-warning"),children:d})]})}),(0,C.jsx)("div",{className:"px-4 py-4",children:i}),(0,C.jsx)("div",{className:"px-4 pb-3",children:(0,C.jsx)("p",{className:"font-sen text-xs text-text-lightest",children:(0,C.jsx)(s.cC,{id:"Results are from myundi.com and are real-time."})})})]})}var st=n(17857),it=n(10438);function lt(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=function(){var e=""!==t?t:n;return""===e?_e.ag._("Scheduled"):_e.ag._("{partyCode} is incumbent",{partyCode:e})};if(!r)return a();switch(e){case"unstarted":case"disabled":default:return a();case"live":case"ongoing":var s=t;return""===s?_e.ag._("Live"):_e.ag._("{partyCode} is leading",{partyCode:s});case"tallying":return _e.ag._("Tallying");case"completed":var i=t;return""===i?_e.ag._("Ended"):_e.ag._("{partyCode} won",{partyCode:i})}}function ot(e){switch(e){case"Johor":return _e.ag._("Johor");case"Kedah":return _e.ag._("Kedah");case"Kelantan":return _e.ag._("Kelantan");case"Melaka":return _e.ag._("Melaka");case"Negeri Sembilan":return _e.ag._("Negeri Sembilan");case"Pahang":return _e.ag._("Pahang");case"Perak":return _e.ag._("Perak");case"Perlis":return _e.ag._("Perlis");case"Penang":case"Pulau Pinang":return _e.ag._("Penang");case"Sabah":return _e.ag._("Sabah");case"Sarawak":return _e.ag._("Sarawak");case"Selangor":return _e.ag._("Selangor");case"Terengganu":return _e.ag._("Terengganu");case"W.P. Kuala Lumpur":return _e.ag._("KL");case"W.P. Labuan":return _e.ag._("Labuan");case"W.P. Putrajaya":return _e.ag._("Putrajaya");default:return e}}var ct=n(84633);function ut(e){var t=e.totalSeats,n=e.leadingSeats,r=e.coalitionColor,a=t<0?0:t,s=0===a?0:Math.min(Math.max(n,0),a),i=0===a?0:s/a,l=(0,ct.DY)(r,"#98AFFF");return(0,C.jsxs)("div",{className:"flex items-center gap-2",children:[(0,C.jsx)("div",{className:"relative h-1 flex-1 overflow-hidden rounded-full bg-secondary",children:(0,C.jsx)("div",{className:"absolute left-0 top-0 h-1 rounded-full",style:{width:"".concat(100*i,"%"),backgroundColor:l,transition:"width ".concat(1e3,"ms ease-out")}})}),(0,C.jsxs)("span",{className:"shrink-0 font-sen text-lg text-text-dark",children:[(0,C.jsx)(st.ZP,{end:s,duration:1,preserveValue:!0}),"/",a]})]})}var dt=15;function ft(e){var t=e.content,n=e.children,r=(0,f.useRef)(null),a=(0,f.useRef)({x:0,y:0}),s=(0,f.useState)({x:0,y:0}),i=s[0],l=s[1],o=(0,f.useState)(!1),c=o[0],u=o[1],d=function(e,t){var n=r.current;if(n){var a=n.getBoundingClientRect(),s=a.width,i=a.height,o=e+dt,c=t+dt;o+s>window.innerWidth-8&&(o=e-s-dt),c+i>window.innerHeight-8&&(c=t-i-dt),o=Math.max(8,Math.min(o,window.innerWidth-s-8)),c=Math.max(8,Math.min(c,window.innerHeight-i-8)),l({x:o,y:c})}else l({x:e+dt,y:t+dt})};(0,f.useLayoutEffect)((function(){if(c){var e=a.current,t=e.x,n=e.y;d(t,n)}}),[c,t]),(0,f.useEffect)((function(){if(c){var e=function(){return u(!1)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),function(){window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}}}),[c]);return t?(0,C.jsxs)("div",{onMouseMove:function(e){var t={x:e.clientX,y:e.clientY};a.current=t,d(t.x,t.y)},onMouseEnter:function(){return u(!0)},onMouseLeave:function(){return u(!1)},className:"relative inline-flex",children:[n,c&&(0,C.jsx)("div",{ref:r,className:"pointer-events-none fixed z-50 whitespace-nowrap rounded bg-slate-900 px-2 py-1 font-sen text-xs font-medium text-white shadow-md transition-transform duration-75 ease-out",style:{left:"".concat(i.x,"px"),top:"".concat(i.y,"px")},children:t})]}):(0,C.jsx)(C.Fragment,{children:n})}var mt="pointer-events-none absolute inset-y-0 z-10 w-6 via-white/85";
1function xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function ht(e){var t=e.children,n=e.className,r=e.contentClassName,a=e.fadeClassName,s=(0,f.useRef)(null),i=(0,f.useState)(!1),l=i[0],o=i[1],c=(0,f.useState)(!1),u=c[0],d=c[1],m=function(e){var t=e.scrollWidth-e.clientWidth;o(e.scrollLeft>1),d(t-e.scrollLeft>1)};(0,f.useEffect)((function(){var e=s.current;if(e){var t=function(){return m(e)};t();var n=new ResizeObserver(t);n.observe(e);var r=e.firstElementChild;return r instanceof HTMLElement&&n.observe(r),window.addEventListener("resize",t),function(){n.disconnect(),window.removeEventListener("resize",t)}}}),[t]);return(0,C.jsxs)("div",{className:xt("relative min-w-0",n),children:[l&&(0,C.jsx)("div",{className:xt(mt,"left-0 bg-gradient-to-r from-white to-transparent",a)}),u&&(0,C.jsx)("div",{className:xt(mt,"right-0 bg-gradient-to-l from-white to-transparent",a)}),(0,C.jsx)("div",{ref:s,onScroll:function(e){m(e.currentTarget)},className:"no-scrollbar min-w-0 overflow-x-auto",children:(0,C.jsx)("div",{className:xt("w-max min-w-full",r),children:t})})]})}function pt(e){var t,n,r=e.prnState,a=e.prnFeatureEnabled,s=e.coalitionsData,i=nt(r.stateCode),l=i.data,o=i.loading,c=i.error?[]:l,u=function(e,t,n){return e.map((function(e){return{coalitionCode:e,seatsWon:n?t.filter((function(t){return t.effectiveWinnerCoalitionCode===e})).length:0}})).sort((function(e,t){return t.seatsWon-e.seatsWon}))}(r.competingCoalitions,c,a),d=u.find((function(e){return e.seatsWon>0})),f=d?s.find((function(e){return e.code===d.coalitionCode})):void 0;return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,C.jsx)(vt,{prnState:r,prnFeatureEnabled:a}),(0,C.jsx)(gt,{prnState:r,coalitionsData:s,ranked:u,loading:o})]}),(0,C.jsx)(ut,{totalSeats:r.totalSeats,leadingSeats:null!==(t=null===d||void 0===d?void 0:d.seatsWon)&&void 0!==t?t:0,coalitionColor:null!==(n=null===f||void 0===f?void 0:f.color)&&void 0!==n?n:""})]})}function vt(e){var t=e.prnState,n=e.prnFeatureEnabled,r="live"===t.electionStatus||"ongoing"===t.electionStatus;return(0,C.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,C.jsx)("p",{className:"font-poppins text-base text-text-darkest transition-all duration-300 sm:text-lg",children:ot(t.stateName)}),(0,C.jsxs)("div",{className:"flex items-center gap-1",children:[r&&(0,C.jsx)("span",{className:"h-2 w-2 shrink-0 rounded-full bg-alert"}),(0,C.jsx)("p",{className:"truncate font-sen text-xs text-text-lightest transition-all duration-300 sm:text-base",children:lt(t.electionStatus,t.winningParty,t.incumbentParty,n)})]})]})}function gt(e){var t=e.prnState,n=e.coalitionsData,r=e.ranked;return e.loading?(0,C.jsx)("div",{className:"h-10 flex-[2] animate-pulse rounded bg-light-background"}):(0,C.jsx)(ht,{className:"flex-[2]",contentClassName:"flex justify-end gap-2",children:(0,C.jsx)(it.Z,{duration:700,className:"flex flex-nowrap justify-end gap-2 sm:gap-4",children:r.map((function(e){return(0,C.jsx)("div",{className:"shrink-0",children:(0,C.jsx)(bt,{coalitionCode:e.coalitionCode,seats:e.seatsWon,coalitionData:n.find((function(t){return t.code===e.coalitionCode})),isWinner:t.winningParty===e.coalitionCode,isCompleted:"completed"===t.electionStatus})},e.coalitionCode)}))})})}function bt(e){var t,n=e.coalitionCode,r=e.seats,a=e.coalitionData,s=e.isWinner,i=e.isCompleted,l=s&&i,o=(0,ct.DY)(null!==(t=null===a||void 0===a?void 0:a.color)&&void 0!==t?t:"","#BDBCCF"),c=null===a||void 0===a?void 0:a.imageUrl,u=null===a||void 0===a?void 0:a.partyName;return(0,C.jsxs)("div",{className:"flex shrink-0 flex-col items-center gap-1",children:[(0,C.jsx)(ft,{content:u,children:(0,C.jsx)("div",{children:c?(0,C.jsx)("img",{src:c,alt:n,width:48,height:48,className:"h-8 w-8 rounded-lg object-cover transition-all duration-300 sm:h-12 sm:w-12 sm:rounded-2xl"}):(0,C.jsx)("div",{className:"h-8 w-8 rounded-xl shadow sm:h-12 sm:w-12",style:{backgroundColor:o}})})},n),(0,C.jsx)("div",{className:"rounded px-1 py-0.5",style:l?{backgroundColor:o}:void 0,children:(0,C.jsx)("span",{className:l?"font-poppins text-lg font-bold text-white":"font-sen text-lg text-text-darkest",children:(0,C.jsx)(st.ZP,{end:r,duration:1,preserveValue:!0})})})]})}function jt(e){var t=e.stateCode,n=e.prnFeatureEnabled,r=et(t),a=r.data,i=r.loading,l=r.error,o=tt().data;if(i)return(0,C.jsx)("p",{className:"py-8 text-center font-sen text-text-lightest",children:(0,C.jsx)(s.cC,{id:"Lo
1ading..."})});if(l)return console.error("[PRN] PrnTableView.statesAsync failed",l),null;if(0===a.length)return(0,C.jsx)("p",{className:"pt-4 text-center font-poppins text-text-lightest",children:(0,C.jsx)(s.cC,{id:"Stay tuned for updates"})});var c=a.filter((function(e){return"disabled"!==e.electionStatus}));return(0,C.jsx)("div",{className:"flex flex-col gap-4",children:c.map((function(e){return(0,C.jsx)(pt,{prnState:e,prnFeatureEnabled:n,coalitionsData:o.filter((function(t){return e.competingCoalitions.includes(t.code)}))},e.stateCode)}))})}var wt=n(29661);function yt(e){var t,n=e.coalitionCode,r=e.coalitionData,a=e.seats,s=e.totalSeats,i=e.isWinner,l=e.animate,o=s<0?0:s,c=0===o?0:Math.min(Math.max(a,0),o),u=0===o?0:c/o*100,d=(0,ct.DY)(null!==(t=null===r||void 0===r?void 0:r.color)&&void 0!==t?t:"","#98AFFF"),f=(null===r||void 0===r?void 0:r.partyName)||n;return(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,C.jsx)("span",{className:"min-w-0 flex-1 font-poppins text-sm font-bold text-text-darkest",children:f}),(0,C.jsx)("span",{className:"font-poppins text-sm font-bold text-text-darkest",children:(0,C.jsx)(st.ZP,{end:a,duration:1,preserveValue:!0})})]}),(0,C.jsxs)("div",{className:"relative h-8 overflow-hidden rounded-md bg-light-background",children:[(0,C.jsx)("div",{className:"absolute inset-y-0 left-0 rounded-l-md",style:{width:"".concat(u,"%"),backgroundColor:d,transition:"width ".concat(1e3,"ms ease-out")}}),(0,C.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute top-1/2 z-10 select-none leading-none ".concat(i?"text-3xl":"pt-0.5 text-2xl"),style:{left:"clamp(".concat(16,"px, ").concat(u,"%, calc(100% - ").concat(16,"px))"),transform:"translate(-50%, -50%)",transition:"left ".concat(1e3,"ms ease-out")},children:i?(0,C.jsx)("div",{children:"\ud83c\udfc6"}):(0,C.jsx)(wt.RiveAnimation,{src:"/running_man.riv",autoplay:l,autoBind:!0,height:32,width:32,repeat:l})})]})]})}function Nt(e){var t=e.prnState,n=nt(t.stateCode),r=n.data,a=n.loading,s=n.error,i=tt().data,l=(0,C.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,C.jsx)("p",{className:"font-poppins text-2xl font-bold text-text-darkest",children:ot(t.stateName)}),(0,C.jsx)("p",{className:"font-sen text-sm text-text-dark",children:t.isOfficialResults?_e.ag._("Official"):_e.ag._("Unofficial")})]});if(a)return(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[l,[0,1,2,3].map((function(e){return(0,C.jsx)("div",{className:"h-8 animate-pulse rounded bg-secondary"},e)}))]});if(s)return console.error("[PRN] PrnRaceView.seatsAsync failed",s),(0,C.jsx)("div",{className:"flex flex-col gap-4",children:l});var o=t.competingCoalitions.map((function(e){return{coalitionCode:e,seats:r.filter((function(t){return t.effectiveWinnerCoalitionCode===e})).length}})).sort((function(e,t){return t.seats-e.seats}));return(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[l,(0,C.jsx)(it.Z,{duration:700,className:"flex flex-col gap-4",children:o.map((function(e){return(0,C.jsx)("div",{children:(0,C.jsx)(yt,{coalitionCode:e.coalitionCode,coalitionData:i.find((function(t){return t.code===e.coalitionCode})),seats:e.seats,totalSeats:t.totalSeats,isWinner:"completed"===t.electionStatus&&t.winningParty===e.coalitionCode,animate:"live"===t.electionStatus})},e.coalitionCode)}))})]})}function Ct(e){var t=e.stateCode,n=e.title,r=e.dateLabel,a=e.prnStatus;return"disabled"===a.electionStatus?null:(0,C.jsx)(at,{prnStatus:a,title:n,dateLabel:r,children:"unstarted"===a.electionStatus?(0,C.jsx)(jt,{stateCode:t,prnFeatureEnabled:!1}):(0,C.jsx)(kt,{stateCode:t})})}function kt(e){var t=e.stateCode,n=et(t),r=n.data,a=n.loading,i=n.error;return a?(0,C.jsx)("p",{className:"py-8 text-center font-sen text-text-lightest",children:(0,C.jsx)(s.cC,{id:"Lo
1ading..."})}):i?(console.error("[PRN] PrnBlock.statesAsync failed",i),null):0===r.length?null:r.length>1?(0,C.jsx)(jt,{stateCode:t,prnFeatureEnabled:!0}):(0,C.jsx)(Nt,{prnState:r[0]})}var Et={name:"prn2026",inputNames:["stateCode","title","dateLabel"],defaultProps:{stateCode:"",title:"",dateLabel:""},component:function(e){var t=e.stateCode,n=e.title,r=void 0===n?"":n,a=e.dateLabel,s=function(){var e=(0,f.useState)({data:null,loading:!0,error:null}),t=e[0],n=e[1];return(0,f.useEffect)((function(){return(0,Ge.cf)((0,Ge.JU)(qe.mz,"prn2026/ui/status/status"),(function(e){return n({data:(t=e.data(),t?{electionStatus:$e(t.electionStatus)}:null),loading:!1,error:null});var t}),(function(e){return n({data:null,loading:!1,error:e})}))}),[]),t}(),i=s.data,l=s.loading,o=s.error;return l?null:o||!i||"disabled"===i.electionStatus?(o&&console.error("[PRN] PrnBlockLoader.statusAsync failed",o),null):(0,C.jsx)(Ct,{stateCode:t,title:r,dateLabel:a,prnStatus:i})}},St=n(70655),Pt=n(49304),Ot=n(54735),At=n(58868);function Rt(){var e=(0,f.useRef)(!1);return(0,At.L)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var Dt=n(240),It=n(96681),Ft=n(76316),Lt=function(e){var t=e.children,n=e.initial,r=e.isPresent,a=e.onExitComplete,s=e.custom,i=e.presenceAffectsLayout,l=(0,It.h)(Tt),o=(0,Ft.M)(),c=(0,f.useMemo)((function(){return{id:o,initial:n,isPresent:r,custom:s,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=(0,St.XA)(l.values()),s=r.next();!s.done;s=r.next()){if(!s.value)return}}catch(i){t={error:i}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null===a||void 0===a||a()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),i?void 0:[r]);return(0,f.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[r]),f.useEffect((function(){!r&&!l.size&&(null===a||void 0===a||a())}),[r]),f.createElement(Dt.O.Provider,{value:c},t)};function Tt(){return new Map}var _t=n(25364),Zt=n(65411),Mt=function(e){return e.key||""};var Vt=function(e){var t=e.children,n=e.custom,r=e.initial,a=void 0===r||r,s=e.onExitComplete,i=e.exitBeforeEnter,l=e.presenceAffectsLayout,o=void 0===l||l,c=(0,St.CR)(function(){var e=Rt(),t=(0,St.CR)((0,f.useState)(0),2),n=t[0],r=t[1],a=(0,f.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,f.useCallback)((function(){return Ot.ZP.postRender(a)}),[a]),n]}(),1),u=c[0],d=(0,f.useContext)(_t.p).forceRender;d&&(u=d);var m=Rt(),x=function(e){var t=[];return f.Children.forEach(e,(function(e){(0,f.isValidElement)(e)&&t.push(e)})),t}(t),h=x,p=new Set,v=(0,f.useRef)(h),g=(0,f.useRef)(new Map).current,b=(0,f.useRef)(!0);if((0,At.L)((function(){b.current=!1,function(e,t){e.forEach((function(e){var n=Mt(e);t.set(n,e)}))}(x,g),v.current=h})),(0,Zt.z)((function(){b.current=!0,g.clear(),p.clear()}
1)),b.current)return f.createElement(f.Fragment,null,h.map((function(e){return f.createElement(Lt,{key:Mt(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:o},e)})));h=(0,St.ev)([],(0,St.CR)(h),!1);for(var j=v.current.map(Mt),w=x.map(Mt),y=j.length,N=0;N<y;N++){var C=j[N];-1===w.indexOf(C)&&p.add(C)}return i&&p.size&&(h=[]),p.forEach((function(e){if(-1===w.indexOf(e)){var t=g.get(e);if(t){var r=j.indexOf(e);h.splice(r,0,f.createElement(Lt,{key:Mt(t),isPresent:!1,onExitComplete:function(){g.delete(e),p.delete(e);var t=v.current.findIndex((function(t){return t.key===e}));if(v.current.splice(t,1),!p.size){if(v.current=x,!1===m.current)return;u(),s&&s()}},custom:n,presenceAffectsLayout:o},t))}}})),h=h.map((function(e){var t=e.key;return p.has(t)?e:f.createElement(Lt,{key:Mt(e),isPresent:!0,presenceAffectsLayout:o},e)})),"production"!==Pt.O&&i&&h.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),f.createElement(f.Fragment,null,p.size?h:h.map((function(e){return(0,f.cloneElement)(e)})))};function Ut(e){var t,n,r,a,s,i,l,o,c=e.contents;return{messageId:e.messageId,content:null!==(t=c.content)&&void 0!==t?t:"",username:null!==(n=c.username)&&void 0!==n?n:"",userUid:null!==(r=c.userUid)&&void 0!==r?r:"",timestamp:e.timestamp,imageUrl:null!==(a=c.imageUrl)&&void 0!==a?a:"https://images.luminews.my/profile+image+Basic+R.png",verified:null!==(s=c.verified)&&void 0!==s&&s,highlight:null!==(i=c.highlight)&&void 0!==i&&i,usernameColor:null!==(l=c.usernameColor)&&void 0!==l?l:"",messageStatus:null!==(o=c.messageStatus)&&void 0!==o?o:"success"}}var Bt=n(50029),Wt=n(87794),zt=n.n(Wt);function Ht(e,t){var n,r,a;return{messageId:e,type:null!==(n=t.type)&&void 0!==n?n:"",contents:null!==(r=t.contents)&&void 0!==r?r:{},timestamp:null!==(a=t.timestamp)&&void 0!==a?a:Ge.EK.now()}}new Ge.EK(1783306853,308e6);function Yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xt(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Jt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jt(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,s=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw s}}}}function Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gt(e,t){return 0===e.length?Ge.EK.now():t?e[e.length-1].timestamp:e[0].timestamp}function qt(e,t,n,r){var a=(0,m.Z)(e);return a.length>=r&&(n?a.pop():a.shift()),n?a.unshift(t):a.push(t),a}function Qt(e){var t,n=e.collectionPath,r=e.documentPath,s=e.descending,i=JSON.stringify(null!==(t=e.filters)&&void 0!==t?t:null),l=(0,f.useState)({messages:[],loading:!0,error:null}),o=l[0],c=l[1];return(0,f.useEffect)((function(){if(r){var t=!1,n=null,i=!1,l=(0,Ge.hJ)(qe.mz,function(e){return"".concat(e.collectionPath,"/").concat(e.documentPath,"/messages")}(e)),o=function(e){return e.filters?Object.entries(e.filters).map((function(e){var t=(0,a.Z)(e,2),n=t[0],r=t[1];return(0,Ge.ar)(n,"==",r)}
1)):[]}(e);return function(){u.apply(this,arguments)}(),function(){t=!0,n&&n()}}function u(){return(u=(0,Bt.Z)(zt().mark((function e(){var r,a,u,d;return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,Ge.PL)(Ge.IO.apply(void 0,[l].concat((0,m.Z)(o),[(0,Ge.Xo)("timestamp",s?"desc":"asc"),(0,Ge.b9)(5)])));case 3:if(r=e.sent,!t){e.next=6;break}return e.abrupt("return");case 6:a=r.docs.map((function(e){return Ht(e.id,e.data())})),c({messages:a,loading:!1,error:null}),u=Gt(a,s),d=Ge.IO.apply(void 0,[l].concat((0,m.Z)(o),[(0,Ge.ar)("timestamp",">=",u),(0,Ge.Xo)("timestamp",s?"desc":"asc")])),n=(0,Ge.cf)(d,(function(e){i?c((function(t){var n,r=t.messages,a=Xt(e.docChanges());try{var i=function(){var t=n.value,a=Ht(t.doc.id,t.doc.data());switch(t.type){case"added":if(r.some((function(e){return e.messageId===a.messageId})))break;r=qt(r,a,s,5);break;case"removed":r=0===e.size?[]:r.filter((function(e){return e.messageId!==a.messageId}));break;case"modified":r=r.map((function(e){return e.messageId===a.messageId?a:e}))}};for(a.s();!(n=a.n()).done;)i()}catch(l){a.e(l)}finally{a.f()}return r===t.messages?t:Kt(Kt({},t),{},{messages:r})})):i=!0}),(function(e){t||c((function(t){return Kt(Kt({},t),{},{error:e})}))})),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),t||c({messages:[],loading:!1,error:e.t0});case 16:case"end":return e.stop()}}),e,null,[[0,13]])})))).apply(this,arguments)}c({messages:[],loading:!1,error:null})}),[n,r,s,i]),o}var $t=n(18716),en=function(e){var t=e.children,n=e.shouldAnimate;return(0,C.jsx)($t.E.div,{layout:!1,initial:!!n&&{opacity:0,scale:.95,x:"-100%"},animate:!!n&&{opacity:1,scale:1,x:0},exit:n?{opacity:0,x:"-100%",transition:{duration:.2,ease:"easeIn"}}:void 0,transition:{duration:.3,type:"tween",ease:"easeOut"},children:t})},tn=n(86495),nn=function(){var e=(0,l.useRouter)().query.slug,t=(0,tn.Z)("https://link.luminews.my/ewC9/switchtoapp",!1,e?"/topics/".concat(e):void 0);return(0,C.jsx)("div",{className:"text-md text-center font-sen font-semibold text-primary",children:(0,C.jsx)("span",{className:"cursor-pointer",onClick:function(e){e.preventDefault(),(0,w.triggerDialog)(w.DialogName.pollVote,{deeplink:t,customCta:_e.ag._("Switch to the Lumi News to see more updates")})},children:"See more updates"})})};var rn=f.forwardRef((function({title:e,titleId:t,...n},r){return f.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?f.createElement("title",{id:t},e):null,f.createElement("path",{fillRule:"evenodd",d:"M16.403 12.652a3 3 0 000-5.304 3 3 0 00-3.75-3.751 3 3 0 00-5.305 0 3 3 0 00-3.751 3.75 3 3 0 000 5.305 3 3 0 003.75 3.751 3 3 0 005.305 0 3 3 0 003.751-3.75zm-2.546-4.46a.75.75 0 00-1.214-.883l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"}))})),an=function(e){var t=e.message,n=(0,ct.DY)(t.usernameColor,t.verified?"var(--color-text-dark, #3453DC)":"var(--color-text-dark, #626072)");return(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)("div",{className:"flex flex-wrap items-center gap-x-1 py-1",children:[(0,C.jsx)("div",{className:"relative h-[32px] w-[32px] shrink-0 rounded-full bg-secondary p-[6px]",children:(0,C.jsx)(h(),{src:t.imageUrl,alt:"",height:24,width:24})}),(0,C.jsx)("p",{className:(0,rt.cn)("gap-1 font-sen font-semibold"),style:{color:n},children:t.username}),t.verified&&(0,C.jsx)("div",{children:(0,C.jsx)(rn,{className:"h-4 w-4 items-center",style:{color:n}})}),(0,C.jsx)("p",{className:"ml-1 font-sen text-text-darkest",children:t.content})]})})};function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var on={};[P,R,I,B,X,ee,ae,ce,ue,de,me,Te,Je,Et,{name:"chat_window",inputNames:["collectionPath","documentPath","sharePath","isStaging","filters","descending","openChatOnTap","enableScroll","title","showLiveBadge"],defaultProps:{collectionPath:"chats",documentPath:"",sharePath:"",isStaging:!1,filters:null,descending:!1,openChatOnTap:!0,enableScroll:!1,title:"",showLiveBadge:!1},component:function(e){var t=function(e){var t,n,r,a,s,i,l,o=e.filters,c=o&&Object.keys(o).length>0?o:null;return{collectionPath:null!==(t=e.collectionPath)&&void 0!==t?t:"chats",documentPath:null!==(n=e.documentPath)&&void 0!==n?n:"",sharePath:null!==(r=e.sharePath)&&void 0!==r?r:"",isStaging:null!==(a=e.isStaging)&&void 0!==a&&a,filters:c,descending:null!==(s=e.descending)&&void 0!==s&&s,openChatOnTap:null===(i=e.openChatOnTap)||void 0===i||i,enableScroll:null!==(l=e.enableScroll)&&void 0!==l&&l}}(e),n=Qt(t),r=n.messages,a=n.loading,s=n.error;if(!t.documentPath)return null;if(a)return null;if(s)return console.error("[Chat] useChatWindow failed",s),null;var i=r.map(Ut),l=t.descending?0:i.length-1;return(0,C.jsxs)("div",{className:"flex h-64 flex-col rounded-2xl border border-gray-200 px-6 py-4",children:[(0,C.jsx)("div",{className:"flex flex-1 flex-col justify-start overflow-hidden",children:(0,C.jsx)(Vt,{initial:!1,children:i.map((function(e,t){return(0,C.jsx)(en,{shouldAnimate:t===l,children:(0,C.jsx)(an,{message:e})},e.messageId)}))})}),(0,C.jsxs)("div",{className:"relative",children:[(0,C.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-full z-10 h-8 bg-gradient-to-t from-white to-transparent"}),(0,C.jsx)(nn,{})]})]})}},re].forEach((function(e){on[e.name]=e.component}));var cn=function(){return(0,C.jsx)(s.cC,{id:"<0>Loading...</0>",components:{0:(0,C.jsx)("p",{className:"py-4 text-center font-sen text-text-lightest"})}})};var un=function(e){var t=e.type,n=e.data;if("undefined"!==typeof on[t]){var r=f.createElement(on[t],ln({},Array.isArray(n)?{items:n}:n));return(0,C.jsx)("div",{className:"feed-block-".concat(t),children:r})}return null},dn=1,fn=function(e){var t=e.feedParams,n=e.feed,r=e.blocks,s=(0,f.useState)((function(){var e=(0,m.Z)(n);return(0,m.Z)(r).sort((function(e,t){return e.position-t.position})).forEach((function(t){e[t.position]?(t.position<e.length-1||e[t.position].position==t.position)&&e.splice(t.position,0,t):e.push(t)})),e})),i=s[0],l=s[1],c=(0,o.Z4A)({onCompleted:function(e){l((function(t){return[].concat((0,m.Z)(t),(0,m.Z)(e.topic.feed))}))}}),u=(0,a.Z)(c,2),d=u[0],x=u[1].data;return(0,C.jsx)(xe.$r,{infiniteLoadingOption:{className:"no-scrollbar px-4",dataLength:i.length||0,hasMore:i.length>20&&!x,next:function(){return dn+=1,void d({variables:ln(ln({},t),{},{page:dn})})},loader:(0,C.jsx)(cn,{})},children:(0,C.jsx)("div",{className:"space-y-10",children:i.map((function(e,t){return(0,C.jsx)(un,{type:e.type,data:e.data},function(e,t){var n,r;return"".concat(null!==(n=e.type)&&void 0!==n?n:"generic","-").concat(null!==(r=e.position)&&void 0!==r?r:t)}(e,t))}))})})},mn=n(64780);function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pn=!0,vn=function(e){var t=(0,l.useRouter)(),n="/"+(t.locale||t.defaultLocale),r=e.data,m=e.seo,x=null===r||void 0===r?void 0:r.category,h=(0,o.rXp)(),p=(0,a.Z)(h,2),v=p[0],g=p[1],b=g.data;g.loading;(0,f.useEffect)((function(){v({variables:{slug:t.query.slug,languageCode:t.locale}})}),[v,t.query.slug,t.locale]);var j=(null===b||void 0===b?void 0:b.topic)||(null===r||void 0===r?void 0:r.topic),w=null===j||void 0===j?void 0:j.blocks,y=null===j||void 0===j?void 0:j.feed;return(0,f.useEffect)((function(){t.isReady&&(0,mn.$V)(t.asPath)&&r.category&&(0,mn.US)(r.category.exploreName)}),[t.isReady,t.asPath,r.category]),(0,C.jsxs)(c.Z,{showNewsStacks:!1,showCTA:!1,showFooter:!1,className:"!overflow-visible",retainWholePage:!1,
1children:[(0,C.jsx)("meta",{name:"viewport",content:"width=device-width"}),(0,C.jsx)(i.PB,{title:m.title,description:m.description,noindex:!1,nofollow:!1,openGraph:hn({url:"https://luminews.my".concat(n.includes("en")?"":n).concat(t.asPath),title:m.title,description:m.description},m.image?{images:[{url:m.image.url,alt:m.image.alt}]}:{})}),(0,C.jsxs)("div",{className:"mx-auto my-6 max-w-7xl px-4 2xs:px-6 lg:flex lg:flex-row lg:items-start lg:space-x-20",children:[j?(0,C.jsxs)("div",{className:"topic-feed-page",children:[(0,C.jsx)("h1",{className:"mb-10 font-poppins text-4xl font-bold text-text-darkest",children:x.name}),(0,C.jsx)("p",{className:"mb-2 font-poppins text-text-medium",children:x.description}),(0,C.jsx)("div",{className:"-mx-4",children:(0,C.jsx)(fn,{feedParams:{slug:t.query.slug,languageCode:t.locale},feed:y,blocks:w})})]}):(0,C.jsx)("p",{className:"flex-1 py-4 text-center font-sen text-text-lightest",children:(0,C.jsx)(s.cC,{id:"Loading..."})}),(0,C.jsx)(d.Z,{offsetTop:20,offsetBottom:20,children:(0,C.jsx)(u.Z,{})})]})]})}},41198:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/topics/[slug]",function(){return n(96040)}])},61451:function(e,t){"use strict";t.Z={src:"/_next/static/media/like.d2d98988.png",height:96,width:96,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEWarP+XsP+Zsf+YsP+Yr/+Yrf+Zrf+Xr/+Zsf+YsP8nEy2zAAAACnRSTlMBXZh9TCoVcarFEFzx/AAAAAlwSFlzAAAsSwAALEsBpT2WqQAAADFJREFUeJwlirkNADAMhDj/3n/hyAoNFABk8LHNU3pbJ8QO8glkDvhF31ZoR3KD0lE8FqMApW1WX28AAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},19312:function(e,t){"use strict";t.Z={src:"/_next/static/media/paper-plane-outline.beac85e6.png",height:94,width:94,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEVMaXGasf+asv+Zsf+Zrv+Xrv+ZuP+bs/+Uqf+ZsP+pwv9MKb5zAAAACnRSTlMAco5jKq8W4xxWv/PTmgAAAAlwSFlzAAAsSwAALEsBpT2WqQAAADRJREFUeJwli0ESACEIw1Iosu7/H+ygOTYNDJ8SWBn1C0fkrjLqdO0Yo/a9gDLWa3rMnQwHGYgAoWbKr6EAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},61402:function(e,t){"use strict";t.Z={src:"/_next/static/media/white-tick.7c3ac341.svg",height:16,width:16}},54208:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(67294),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},a.apply(this,arguments)};var s=r.forwardRef((function(e,t){var n=r.useState(!1),s=n[0],i=n[1],l=r.useState(!1),o=l[0],c=l[1],u=encodeURIComponent(e.id),d="string"===typeof e.playlistCoverId?encodeURIComponent(e.playlistCoverId):null,f=e.title,m=e.poster||"hqdefault",x="&".concat(e.params)||0,h=e.muted?"&mute=1":"",p=e.announce||"Watch",v=e.webp?"webp":"jpg",g=e.webp?"vi_webp":"vi",b=e.thumbnail||(e.playlist?"https://i.ytimg.com/".concat(g,"/").concat(d,"/").concat(m,".").concat(v):"https://i.ytimg.com/".concat(g,"/").concat(u,"/").concat(m,".").concat(v)),j=e.noCookie;j=e.cookie?"https://www.youtube.com":"https://www.youtube-nocookie.com";var w=e.playlist?"".concat(j,"/embed/videoseries?autoplay=1").concat(h,"&list=").concat(u).concat(x):"".concat(j,"/embed/").concat(u,"?autoplay=1&state=1").concat(h).concat(x),y=e.activatedClass||"lyt-activated",N=e.adNetwork||!1,C=e.aspectHeight||9,k=e.aspectWidth||16,E=e.iframeClass||"",S=e.playerClass||"lty-playbtn",P=e.wrapperClass||"yt-lite",O=e.onIframeAdded||function(){},A=e.rel?"prefetch":"preload",R=e.containerElement||"article";return r.useEffect((function(){o&&O()}),[o]),r.createElement(r.Fragment,null,r.createElement("link",{rel:A,href:b,as:"image"}),r.createElement(r.Fragment,null,s&&r.createElement(r.Fragment,null,r.createElement("link",{rel:"preconnect",href:j}),r.createElement("link",{rel:"preconnect",href:"https://www.google.com"}),N&&r.createElement(r.Fragment,null,r.createElement("link",{rel:"preconnect",href:"https://static.doubleclick.net"}),r.createElement("link",{rel:"preconnect",href:"https://googleads.g.doubleclick.net"})))),r.createElement(R,{onPointerOver:function(){s||i(!0)},onClick:function(){o||c(!0)},className:"".concat(P," ").concat(o?y:""),"data-title":f,style:a({backgroundImage:"url(".concat(b,")")},{"--aspect-ratio":"".concat(C/k*100,"%")})},r.createElement("button",{type:"button",className:S,"aria-label":"".concat(p," ").concat(f)}),o&&r.createElement("iframe",{ref:t,className:E,title:f,width:"560",height:"315",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,src:w})))}
1))},92110:function(e,t,n){"use strict";var r=n(67294);const a=r.forwardRef((function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M12.577 4.878a.75.75 0 01.919-.53l4.78 1.281a.75.75 0 01.531.919l-1.281 4.78a.75.75 0 01-1.449-.387l.81-3.022a19.407 19.407 0 00-5.594 5.203.75.75 0 01-1.139.093L7 10.06l-4.72 4.72a.75.75 0 01-1.06-1.061l5.25-5.25a.75.75 0 011.06 0l3.074 3.073a20.923 20.923 0 015.545-4.931l-3.042-.815a.75.75 0 01-.53-.919z",clipRule:"evenodd"}))}));t.Z=a}},function(e){e.O(0,[1778,5445,260,2016,1627,5115,6617,1652,7615,8836,3547,5425,7909,631,3612,7227,886,5590,4933,9585,9774,2888,179],(function(){return t=41198,e(e.s=t);var t}));var t=e.O();_N_E=t}]); 2//# sourceMappingURL=[slug]-d2ae014022071658.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.