PageSourceSearch

https://b4betph.com/_next/static/chunks/3fc862dbb4589e38.js

js b4betph.com collected 2026-10-07 22:20:12 UTC 52,155 bytes, 18 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77476,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=e.r(71645);function n(e){return Array.prototype.slice.call(e)}function o(e,t){var a=Math.floor(e);return a===t||a+1===t?e:t}function s(){return Date.now()}function r(e,t,a){if(t="data-keen-slider-"+t,null===a)return e.removeAttribute(t);e.setAttribute(t,a||"")}function l(e,t){return t=t||document,"function"==typeof e&&(e=e(t)),Array.isArray(e)?e:"string"==typeof e?n(t.querySelectorAll(e)):e instanceof HTMLElement?[e]:e instanceof NodeList?n(e):[]}function m(e){e.raw&&(e=e.raw),e.cancelable&&!e.defaultPrevented&&e.preventDefault()}function d(e){e.raw&&(e=e.raw),e.stopPropagation&&e.stopPropagation()}function c(){var e=[];return{add:function(t,a,i,n){t.addListener?t.addListener(i):t.addEventListener(a,i,n),e.push([t,a,i,n])},input:function(e,t,a,i){this.add(e,t,function(e){e.nativeEvent&&(e=e.nativeEvent);var t=e.changedTouches||[],i=e.targetTouches||[],n=e.detail&&e.detail.x?e.detail:null;return a({id:n?n.identifier?n.identifier:"i":i[0]?i[0]?i[0].identifier:"e":"d",idChanged:n?n.identifier?n.identifier:"i":t[0]?t[0]?t[0].identifier:"e":"d",raw:e,x:n&&n.x?n.x:i[0]?i[0].screenX:n?n.x:e.pageX,y:n&&n.y?n.y:i[0]?i[0].screenY:n?n.y:e.pageY})},i)},purge:function(){e.forEach(function(e){e[0].removeListener?e[0].removeListener(e[2]):e[0].removeEventListener(e[1],e[2],e[3])}),e=[]}}}function g(e,t,a){return Math.min(Math.max(e,t),a)}function p(e){return(e>0)-(e<0)||+e}function u(e){var t=e.getBoundingClientRect();return{height:o(t.height,e.offsetHeight),width:o(t.width,e.offsetWidth)}}function h(e,t,a,i){var n=e&&e[t];return null==n?a:i&&"function"==typeof n?n():n}function f(e){return Math.round(1e6*e)/1e6}var x=function(){return(x=Object.assign||function(e){for(var t,a=1,i=arguments.length;a<i;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function w(e,t,a){if(a||2==arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function b(e){var t,a,i,n,o,s,r,l;function m(e){return 1-Math.pow(1-e,3)}function d(){return i?e.track.velocity():0}function c(e,t){void 0===t&&(t=1e3);var a=147e-9+(e=Math.abs(e))/t;return{dist:Math.pow(e,2)/a,dur:e/a}}function u(){var t=e.track.details;t&&(o=t.min,s=t.max,r=t.minIdx,l=t.maxIdx)}function h(){e.animator.stop()}e.on("updated",u),e.on("optionsChanged",u),e.on("created",u),e.on("dragStarted",function(){i=!1,h(),t=a=e.track.details.abs}),e.on("dragChecked",function(){i=!0}),e.on("dragEnded",function(){var i,u,f,x,w,b,v=e.options.mode;"snap"===v&&(i=e.track,f=(u=e.track.details).position,x=p(d()),(f>s||f<o)&&(x=0),w=t+x,0===u.slides[i.absToRel(w)].portion&&(w-=x),t!==a&&(w=a),p(i.idxToDist(w,!0))!==x&&(w+=x),w=g(w,r,l),b=i.idxToDist(w,!0),e.animator.start([{distance:b,duration:500,easing:function(e){return 1+--e*e*e*e*e}}])),"free"!==v&&"free-snap"!==v||function(){h();var t="free-snap"===e.options.mode,a=e.track,i=d();n=p(i);var u=e.track.details,f=[];if(i||!t){var x=c(i),w=x.dist,b=x.dur;if(b*=2,w*=n,t){var v=a.idxToDist(a.distToIdx(w),!0);v&&(w=v)}f.push({distance:w,duration:b,easing:m});var y=u.position,j=y+w;if(j<o||j>s){var N=j<o?o-y:s-y,k=0,I=i;if(p(N)===n){var E=Math.min(Math.abs(N)/Math.abs(w),1),T=(1-Math.pow(1-E,1/3))*b;f[0].earlyExit=T,I=i*(1-E)}else f[0].earlyExit=0,k+=N;var C=c(I,100),B=C.dist*n;e.options.rubberband&&(f.push({distance:B,duration:2*C.dur,easing:m}),f.push({distance:-B+k,duration:500,easing:m}))}e.animator.start(f)}else e.moveToIdx(g(u.abs,r,l),!0,{duration:500,easing:function(e){return 1+--e*e*e*e*e}})}()}),e.on("dragged",function(){a=e.track.details.abs})}function v(e){var t,a,i,n,o,s,r,u,h,f,x,w,b,v,y,j,N,k,I=c();function E(t){if(s&&u===t.id){var l=L(t);if(h){if(!B(t))return C(t);f=l,h=!1,e.emit("dragChecked")}if(j)return f=l;m(t);var c=function(t){if(N===-1/0&&k===1/0)return t;var i=e.track.details,s=i.length,r=i.position,l=g(t,N-r,k-r);if(0===s)return 0;if(!e.options.rubberband)return l;if(r<=k&&r>=N||r<N&&a>0||r>k&&a<0)return t;var m=Math.max(0,1-Math.abs((r<N?r-N:r-k)/s*(n*s))/o*2);return m*m*t}(r(f-l)/n*i);a=p(c);var b=e.track.details.position;(b>N&&b<k||b===N&&a>0||b===k&&a<0)&&d(t),x+=c,!w&&Math.abs(x*n)>5&&(w=!0),e.track.add(c),f=l,e.emit("dragged")}}function T(t){!s&&e.track.details&&e.track.details.length&&(x=0,s=!0,w=!1,h=!0,u=t.id,B(t),f=L(t),e.emit("dragStarted"))}function C(t){s&&u===t.idChanged&&(s=!1,e.emit("dragEnded"))}function B(e){var t=F(),a=t?e.y:e.x,i=t?e.x:e.y,n=void 0!==b&&void 0!==v&&Math.abs(v-i)<=Math.abs(b-a);return b=a,v=i,n}function L(e){return F()?e.y:e.x}function F(){return e.options.vertical}function S(){n=e.size,o=F()?window.innerHeight:window.innerWidth;var t=e.track.details;t&&(N=t.min,k=t.max)}function D(e){w&&(d(e),m(e))}function M(){if(I.purge(),e.options.drag&&!e.options.disabled){r="function"==typeof(a=e.options.dragSpeed||1)?a:function(e){return e*a},i=e.options.rtl?-1:1,S(),t=e.container,l("[".concat("data-keen-slider-clickable","]:not([").concat("data-keen-slider-clickable","=false])"),t).map(function(e){I.add(e,"dragstart",d),I.add(e,"mousedown",d),I.add(e,"touchstart",d)}),I.add(t,"dragstart",function(e){m(e)}),I.add(t,"click",D,{capture:!0}),I.input(t,"ksDragStart",T),I.input(t,"ksDrag",E),I.input(t,"ksDragEnd",C),I.input(t,"mousedown",T),I.input(t,"mousemove",E),I.input(t,"mouseleave",C),I.input(t,"mouseup",C),I.input(t,"touchstart",T,{passive:!0}),I.input(t,"touchmove",E,{passive:!1}),I.input(t,"touchend",C),I.input(t,"touchcancel",C),I.add(window,"wheel",function(e){s&&m(e)});var a,n="data-keen-slider-scrollable";l("[".concat(n,"]:not([").concat(n,"=false])"),e.container).map(function(e){var t;I.input(e,"touchstart",function(e){t=L(e),j=!0,y=!0},{passive:!0}),I.input(e,"touchmove",function(a){var i=F(),n=i?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth,o=t-L(a),s=i?e.scrollTop:e.scrollLeft,r=i&&"scroll"===e.style.overflowY||!i&&"scroll"===e.style.overflowX;if(t=L(a),(o<0&&s>0||o>0&&s<n)&&y&&r)return j=!0;y=!1,m(a),j=!1}),I.input(e,"touchend",function(){j=!1})})}}e.on("updated",S),e.on("optionsChanged",M),e.on("created",M),e.on("destroyed",I.purge)}function y(e){var t,a,i=null;function n(t,a,i){e.animator.active?s(t,a,i):requestAnimationFrame(function(){return s(t,a,i)})}function o(){n(!1,!1,a)}function s(a,n,o){var s=0,r=e.size,d=e.track.details;if(d&&t){var c=d.slides;t.forEach(function(e,t){if(a)!i&&n&&l(e,null,o),m(e,null,o);else{if(!c[t])return;var d=c[t].size*r;!i&&n&&l(e,d,o),m(e,c[t].distance*r-s,o),s+=d}})}}function r(t){return"performance"===e.options.renderMode?Math.round(t):t}function l(e,t,a){var i=a?"height":"width";
1null!==t&&(t=r(t)+"px"),e.style["min-"+i]=t,e.style["max-"+i]=t}function m(e,t,a){if(null!==t){t=r(t);var i=a?t:0;t="translate3d(".concat(a?0:t,"px, ").concat(i,"px, 0)")}e.style.transform=t,e.style["-webkit-transform"]=t}function d(){t&&(s(!0,!0,a),t=null),e.on("detailsChanged",o,!0)}function c(){n(!1,!0,a)}function g(){d(),a=e.options.vertical,e.options.disabled||"custom"===e.options.renderMode||(i="auto"===h(e.options.slides,"perView",null),e.on("detailsChanged",o),(t=e.slides).length&&c())}e.on("created",g),e.on("optionsChanged",g),e.on("beforeOptionsChanged",function(){d()}),e.on("updated",c),e.on("destroyed",d)}var j=function(e,t,a){try{var i,n,o,m;return n=w([(i={drag:!0,mode:"snap",renderMode:"precision",rubberband:!0,selector:".keen-slider__slide"},function(t){var a,n,o,s,m,d,g=c();function p(e){var a;r(t.container,"reverse","rtl"!==(a=t.container,window.getComputedStyle(a,null).getPropertyValue("direction"))||e?null:""),r(t.container,"v",t.options.vertical&&!e?"":null),r(t.container,"disabled",t.options.disabled&&!e?"":null)}function f(){w()&&j()}function w(){var e=null;if(s.forEach(function(t){t.matches&&(e=t.__media)}),e===a)return!1;a||t.emit("beforeOptionsChanged"),a=e;var i=e?o.breakpoints[e]:o;return t.options=x(x({},o),i),p(),T(),C(),k(),!0}function b(){return t.options.trackConfig.length}function v(e){for(var r in a=!1,o=x(x({},i),e),g.purge(),n=t.size,s=[],o.breakpoints||[]){var l=window.matchMedia(r);l.__media=r,s.push(l),g.add(l,"change",f)}g.add(window,"orientationchange",E),g.add(window,"resize",I),w()}function y(e){t.animator.stop();var a=t.track.details;t.track.init(null!=e?e:a?a.abs:0)}function j(e){y(e),t.emit("optionsChanged")}function N(e,a){if(e)return v(e),void j(a);T(),C();var i=b();k(),b()!==i?j(a):y(a),t.emit("updated")}function k(){var e=t.options.slides;if("function"==typeof e)return t.options.trackConfig=e(t.size,t.slides);for(var a=t.slides,i=a.length,n="number"==typeof e?e:h(e,"number",i,!0),o=[],s=h(e,"perView",1,!0),r=h(e,"spacing",0,!0)/t.size||0,l="auto"===s?r:r/s,m=h(e,"origin","auto"),d=0,c=0;c<n;c++){var g="auto"===s?function(e){var a=u(e);return(t.options.vertical?a.height:a.width)/t.size||1}(a[c]):1/s-r+l,p="center"===m?.5-g/2:"auto"===m?0:m;o.push({origin:p,size:g,spacing:r}),d+=g}if(d+=r*(n-1),"auto"===m&&!t.options.loop&&1!==s){var f=0;o.map(function(e){var t=d-f;return f+=e.size+r,t>=1||(e.origin=1-t-(d>1?0:1-d)),e})}t.options.trackConfig=o}function I(){T();var e=t.size;t.options.disabled||e===n||(n=e,N())}function E(){I(),setTimeout(I,500),setTimeout(I,2e3)}function T(){var e=u(t.container);t.size=(t.options.vertical?e.height:e.width)||1}function C(){t.slides=l(t.options.selector,t.container)}t.container=(d=l(e,m||document)).length?d[0]:null,t.destroy=function(){g.purge(),t.emit("destroyed"),p(!0)},t.prev=function(){t.moveToIdx(t.track.details.abs-1,!0)},t.next=function(){t.moveToIdx(t.track.details.abs+1,!0)},t.update=N,v(t.options)}),y,v,b],a||[],!0),m={},o={emit:function(e){m[e]&&m[e].forEach(function(e){e(o)});var t=o.options&&o.options[e];t&&t(o)},moveToIdx:function(e,t,a){var i=o.track.idxToDist(e,t);if(i){var n=o.options.defaultAnimation;o.animator.start([{distance:i,duration:h(a||n,"duration",500),easing:h(a||n,"easing",function(e){return 1+--e*e*e*e*e})}])}},on:function(e,t,a){void 0===a&&(a=!1),m[e]||(m[e]=[]);var i=m[e].indexOf(t);i>-1?a&&delete m[e][i]:a||m[e].push(t)},options:t},function(){if(o.track=function(e){var t,a,i,n,o,r,l,m,d,c,u,x,b,v,y=1/0,j=[],N=null,k=0;function I(e){S(k+e)}function E(e){var t,a=T(k+e).abs;return(t=a,L(t)===t)?a:null}function T(e){var t=Math.floor(Math.abs(f(e/a))),i=f((e%a+a)%a);i===a&&(i=0);var n=p(e),o=l.indexOf(w([],l,!0).reduce(function(e,t){return Math.abs(t-i)<Math.abs(e-i)?t:e})),s=o;return n<0&&t++,o===r&&(s=0,t+=n>0?1:-1),{abs:s+t*r*n,origin:o,rel:s}}function C(e,t,a){if(t||!n.loop)return B(e,a);if(i=e,L(i)!==i)return null;var i,o,s=T(null!=a?a:k),l=s.abs,m=e-s.rel,d=l+m;o=B(d);var c=B(d-r*p(m));return(null!==c&&Math.abs(c)<Math.abs(o)||null===o)&&(o=c),f(o)}function B(e,t){if(null==t&&(t=f(k)),i=e,L(i)!==i||null===e)return null;e=Math.round(e);var i,n=T(t),o=n.abs,s=n.rel,m=n.origin,d=F(e),c=(t%a+a)%a,g=l[m],p=Math.floor((e-(o-s))/r)*a;return f(g-c-g+l[d]+p+(m===r?a:0))}function L(e){return g(e,d,c)}function F(e){return(e%r+r)%r}function S(t){a=t-k,j.push({distance:a,timestamp:s()}),j.length>6&&(j=j.slice(-6)),k=f(t);var a,i=D().abs;if(i!==N){var n=null!==N;N=i,n&&e.emit("slideChanged")}}function D(s){var l=s?null:function(){if(r){var e=n.loop,t=e?(k%a+a)%a:k,s=(e?k%a:k)-o[0][2],l=0-(s<0&&e?a-Math.abs(s):s),m=0,g=T(k),h=g.abs,f=g.rel,w=o[f][2],y=o.map(function(t,i){var o=l+m;(o<0-t[0]||o>1)&&(o+=(Math.abs(o)>a-1&&e?a:0)*p(-o));var s=i-f,d=p(s),c=s+h;e&&(-1===d&&o>w&&(c+=r),1===d&&o<w&&(c-=r),null!==u&&c<u&&(o+=a),null!==x&&c>x&&(o-=a));var g=o+t[0]+t[1],b=Math.max(o>=0&&g<=1?1:g<0||o>1?0:o<0?Math.min(1,(t[0]+o)/t[0]):(1-o)/t[0],0);return m+=t[0]+t[1],{abs:c,distance:n.rtl?-1*o+1-t[0]:o,portion:b,size:t[0]}});return f=F(h=L(h)),{abs:L(h),length:i,max:v,maxIdx:c,min:b,minIdx:d,position:k,progress:e?t/a:k/i,rel:f,slides:y,slidesLength:a}}}();return t.details=l,e.emit("detailsChanged"),l}return t={absToRel:F,add:I,details:null,distToIdx:E,idxToDist:C,init:function(t){var s,g,p,w;if(function(){if(r=(o=((n=e.options).trackConfig||[]).map(function(e){return[h(e,"size",1),h(e,"spacing",0),h(e,"origin",0)]}
1)).length){a=f(o.reduce(function(e,t){return e+t[0]+t[1]},0));var t,s=r-1;i=f(a+o[0][2]-o[s][0]-o[s][2]-o[s][1]),l=o.reduce(function(e,a){if(!e)return[0];var i=o[e.length-1],n=e[e.length-1]+(i[0]+i[2])+i[1];return n-=a[2],e[e.length-1]>n&&(n=e[e.length-1]),n=f(n),e.push(n),(!t||t<n)&&(m=e.length-1),t=n,e},null),0===i&&(m=0),l.push(f(a))}}(),!r)return D(!0);s=e.options.range,u=d=(g=e.options.loop)?h(g,"min",-1/0):0,x=c=g?h(g,"max",y):m,p=h(s,"min",null),w=h(s,"max",null),null!==p&&(d=p),null!==w&&(c=w),b=d===-1/0?d:e.track.idxToDist(d||0,!0,0),v=c===y?c:C(c,!0,0),null===w&&(x=c),h(s,"align",!1)&&c!==y&&0===o[F(c)][2]&&(v-=1-o[F(c)][0],c=E(v-k)),b=f(b),v=f(v),Number(t)===t?I(B(L(t))):D()},to:S,velocity:function(){var e=s(),t=j.reduce(function(t,a){var i=a.distance,n=a.timestamp;return e-n>200||(p(i)!==p(t.distance)&&t.distance&&(t={distance:0,lastTimestamp:0,time:0}),t.time&&(t.distance+=i),t.lastTimestamp&&(t.time+=n-t.lastTimestamp),t.lastTimestamp=n),t},{distance:0,lastTimestamp:0,time:0});return t.distance/t.time||0}}}(o),o.animator=function(e){var t,a,i,n,o,s;function r(e){t.active=e}function l(e){t.targetIdx=e}function m(){var t;t=o,window.cancelAnimationFrame(t),r(!1),l(null),s&&e.emit("animationStopped"),s=null}return t={active:!1,start:function(t){if(m(),e.track.details){var d=0,c=e.track.details.position;a=0,i=0,n=t.map(function(e){var t,a=Number(c),n=null!=(t=e.earlyExit)?t:e.duration,o=e.easing,s=e.distance*o(n/e.duration)||0;c+=s;var r=i;return i+=n,d+=s,[a,e.distance,r,i,e.duration,o]}),l(e.track.distToIdx(d)),function t(){o=window.requestAnimationFrame(function o(m){s||(s=m),r(!0);var d=m-s;d>i&&(d=i);var c=n[a];if(c[3]<d)return a++,o(m);var g=c[2],p=c[4],u=c[0],h=c[1]*(0,c[5])(0===p?1:(d-g)/p);if(h&&e.track.to(u+h),d<i)return t();s=null,r(!1),l(null),e.emit("animationEnded")})}(),e.emit("animationStarted")}},stop:m,targetIdx:null}}(o),n)for(var e=0;e<n.length;e++)(0,n[e])(o);o.track.init(o.options.initial||0),o.emit("created")}(),o}catch(e){console.error(e)}};a.useKeenSlider=function(e,t){var a=i.useRef(null),n=i.useRef(!1),o=i.useRef(e),s=i.useCallback(function(i){i?(o.current=e,a.current=new j(i,e,t),n.current=!1):(a.current&&a.current.destroy&&a.current.destroy(),a.current=null)},[]);return i.useEffect(function(){(function e(t,a){if(t===a)return!0;var i=typeof t;if(i!==typeof a)return!1;if("object"!==i||null===t||null===a)return"function"===i&&t.toString()===a.toString();if(t.length!==a.length||Object.getOwnPropertyNames(t).length!==Object.getOwnPropertyNames(a).length)return!1;for(var n in t)if(!e(t[n],a[n]))return!1;return!0})(o.current,e)||(o.current=e,a.current&&a.current.update(o.current))},[e]),[s,a]}},88008,e=>{"use strict";var t=e.i(43476),a=e.i(77476),i=e.i(57688),n=e.i(71645);function o({promos:e}){let o=(0,n.useRef)(null),s=(0,n.useRef)(null),[r,l]=(0,n.useState)(!1),[m]=(0,a.useKeenSlider)({loop:!0,initial:1,slides:{perView:1}});return(0,n.useEffect)(()=>{let e=o.current;if(!e)return;let t=()=>{l(!0)};return e.addEventListener("touchstart",t,{once:!0}),e.addEventListener("mousedown",t,{once:!0}),()=>{e.removeEventListener("touchstart",t),e.removeEventListener("mousedown",t)}},[]),(0,t.jsxs)("section",{className:"relative w-full h-[29vh] md:h-[56vh] lg:h-[74vh] xl:h-[88vh] 2xl:h-[93vh] overflow-hidden",children:[(0,t.jsxs)("div",{ref:o,className:`absolute inset-0 z-10 transition-opacity duration-300 ${r?"opacity-0 pointer-events-none":"opacity-100"}`,children:[(0,t.jsx)(i.default,{src:e[0].img,alt:e[0].alt,fill:!0,loading:"eager",fetchPriority:"high",sizes:"100vw",className:"object-cover md:hidden"}),(0,t.jsx)("div",{onClick:()=>window.location.href=e[0].link,className:"cursor-pointer",children:(0,t.jsx)(i.default,{src:e[0].imgDesktop,alt:e[0].alt,width:1920,height:980,loading:"eager",fetchPriority:"high",sizes:"1920px",className:"object-contain hidden md:block"})})]}),(0,t.jsx)("div",{ref:s,className:`absolute inset-0 transition-opacity duration-300 ${r?"opacity-100":"opacity-0"}`,children:(0,t.jsx)("div",{ref:m,className:"keen-slider w-full h-full",children:e.map((e,a)=>(0,t.jsxs)("div",{className:"keen-slider__slide relative w-full h-full",children:[(0,t.jsx)("div",{onClick:()=>window.location.href=e.link,className:"cursor-pointer",children:(0,t.jsx)(i.default,{src:e.img,alt:e.alt,fill:!0,loading:0===a?"eager":"lazy",sizes:"100vw",className:"object-cover md:hidden"})}),(0,t.jsx)(i.default,{src:e.imgDesktop,alt:e.alt,width:1920,height:980,loading:0===a?"eager":"lazy",sizes:"1920px",className:"object-contain hidden md:block"})]},a))})})]})}
1function s(){let[e,a]=(0,n.useState)("");return(0,n.useEffect)(()=>{let e=()=>{let e=new Date,t=new Intl.DateTimeFormat("en-GB",{timeZone:"Asia/Kuala_Lumpur",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e);a(`${t.replace(",","")} (GMT+8)`)};e();let t=setInterval(e,1e3);return()=>clearInterval(t)},[]),(0,t.jsx)("div",{className:"md:text-[9px] lg:text-xs xl:text-base text-[#ffffff] whitespace-nowrap",children:e})}var r=e.i(48148);function l(){let[e,a]=(0,n.useState)(!1),o=(0,r.useTranslations)("noticeBar");return(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)("div",{className:"flex justify-start items-center bg-[#0D62BC] rounded-3xl w-[90%] m-auto px-1 py-[1.2vw] md:p-2 md:h-auto",children:[(0,t.jsx)(i.default,{src:"/images/homepage/news.webp",alt:"News",width:40,height:40,className:"mr-3 flex-shrink-0 w-[20px] h-[20px] md:w-[32px] md:h-[32px]"}),(0,t.jsx)("div",{className:"flex-1 overflow-hidden text-[10px] md:text-[9px] lg:text-xs xl:text-base cursor-pointer text-[#ffffff]",onClick:()=>a(!0),children:(0,t.jsxs)("div",{className:"px-8 marquee-track whitespace-nowrap",children:[(0,t.jsx)("span",{className:"marquee-text",children:o("notice")}),(0,t.jsx)("span",{className:"marquee-text",children:o("notice")})]})}),(0,t.jsx)("div",{className:"hidden md:flex md:ml-auto md:mr-4",children:(0,t.jsx)(s,{})})]})})}let m=[{img:"/images/homepage/event/bannerEventHome.webp",imgDesktop:"/images/homepage/event/bannerEventHomeDesktop.webp",alt:"B4bet Philippines 300% Welcome Bonus",link:"https://b4bet1.com/Promotions/index"},{img:"/images/homepage/event/bannerEventHome1.webp",imgDesktop:"/images/homepage/event/bannerEventHomeDesktop1.webp",alt:"B4bet Philippines 30% Deposit Bonus",link:"https://b4bet1.com/Promotions/index"},{img:"/images/homepage/event/bannerEventHome2.webp",imgDesktop:"/images/homepage/event/bannerEventHomeDesktop2.webp",alt:"B4bet Philippines 2026 Lucky Wheel",link:"https://b4bet1.com/Promotions/index"},{img:"/images/homepage/event/bannerEventHome3.webp",imgDesktop:"/images/homepage/event/bannerEventHomeDesktop3.webp",alt:"B4bet Philippines 5% Daily Bonus Unlimited",link:"https://b4bet1.com/Promotions/index"}];function d(){return(0,t.jsxs)("section",{className:"relative w-full flex flex-col items-center",children:[(0,t.jsx)("div",{className:"absolute z-[99] w-full md:w-[80%] pt-1",children:(0,t.jsx)(l,{})}),(0,t.jsx)("div",{className:"w-full relative",children:(0,t.jsx)(o,{promos:m})})]})}function c(){let e=(0,r.useTranslations)("home"),a=[{name:"Jili",logo:"/images/homepage/vendor/jili.webp"},{name:"BGaming",logo:"/images/homepage/vendor/bgaming.webp"},{name:"WM",logo:"/images/homepage/vendor/wmCasino.webp"},{name:"JDB",logo:"/images/homepage/vendor/jdb.webp"},{name:"SA Gaming",logo:"/images/homepage/vendor/saGaming.webp"},{name:"CQ9",logo:"/images/homepage/vendor/cq9.webp"},{name:"Panda",logo:"/images/homepage/vendor/gamingPanda.webp"},{name:"Simple Play",logo:"/images/homepage/vendor/simpleplay.webp"},{name:"PG Soft",logo:"/images/homepage/vendor/pgsoft.webp"},{name:"Microgaming",logo:"/images/homepage/vendor/microgaming.webp"}];return(0,t.jsx)("section",{className:"relative bg-[#fff] text-white py-6  overflow-hidden ",children:(0,t.jsxs)("div",{className:"relative  px-4 md:w-[86%] mx-auto",children:[(0,t.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,t.jsxs)("h2",{className:"text-xl font-semibold text-[#0476EE] md:text-[2rem]",children:[e("our"),(0,t.jsx)("span",{className:"text-[#DA5959]",children:e("partners")})]})}),(0,t.jsx)("div",{className:"overflow-hidden bg-[#f8f9fa] p-4 rounded-2xl shadow-md border-2 border-gray-200  ",children:(0,t.jsx)("div",{className:"flex animate-scroll gap-6 md:gap-12 px-6 ]",children:a.concat(a).map((e,a)=>(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(i.default,{src:e.logo,alt:e.name,width:100,height:72,className:"h-[10vw] md:h-[4rem] object-contain"})},a))})})]})})}function g(){let e=["super-ace-deluxe","super-ace","golden-empire","sugar-bang-bang-2","super-element","fortune-gems"],[a,o]=(0,n.use
1State)(!1),[s,r]=(0,n.useState)([]),l=(0,n.useRef)(null),m=()=>{let t=e[Math.floor(Math.random()*e.length)],a=Math.floor(10002+17141*Math.random()),i=Math.floor(1e3+199e3*Math.random());return{id:Math.random().toString(36).slice(2,10),user:a,game:t,amount:i.toLocaleString(),icon:`/images/homepage/gameImage/hot/${t}.webp`}},d=()=>Array.from({length:Math.floor(6*Math.random())+10},m);(0,n.useEffect)(()=>{r(d());let e=setInterval(()=>r(d()),18e5);return()=>clearInterval(e)},[]),(0,n.useEffect)(()=>{let e=l.current;if(!e)return;let t=0,i=0,n=window.innerWidth<768?30:70,o=s=>{t||(t=s);let r=s-t;if(t=s,window.innerWidth>=768&&a){i=requestAnimationFrame(o);return}e.scrollTop+=n*r/1e3,e.scrollTop>=e.scrollHeight/2&&(e.scrollTop=0),i=requestAnimationFrame(o)};return i=requestAnimationFrame(o),()=>cancelAnimationFrame(i)},[a]);let c=[...s,...s];return(0,t.jsx)("section",{className:"relative flex justify-center items-center w-full pt-4",children:(0,t.jsxs)("div",{className:"relative w-full flex justify-center",children:[(0,t.jsxs)("picture",{className:"w-full",children:[(0,t.jsx)("source",{media:"(min-width: 768px)",srcSet:"/images/homepage/jackport/jackportBannerDesktop.webp"}),(0,t.jsx)(i.default,{src:"/images/homepage/jackport/jackportBanner.webp",alt:"Jackpot Banner",width:800,height:500,sizes:"100vw",className:"w-full h-auto select-none pointer-events-none"})]}),(0,t.jsx)("div",{className:"absolute top-[46.6%] w-[86%] h-[48vw] max-h-[480px] md:max-h-[47.6%] md:w-[66%] overflow-hidden rounded-xl",children:(0,t.jsx)("div",{ref:l,className:"absolute inset-0 overflow-y-auto overflow-x-hidden scrollbar-hide",onMouseEnter:()=>window.innerWidth>=768&&o(!0),onMouseLeave:()=>window.innerWidth>=768&&o(!1),children:c.map((e,a)=>(0,t.jsx)("div",{className:"relative gap-6 w-full flex mt-1 bg-[url('/images/homepage/jackport/jackportBannerRow.webp')] bg-cover bg-center",children:(0,t.jsxs)("div",{className:"relative flex items-center w-[90%] md:w-[80%] px-4 left-4 md:left-12 md:h-20 2xl:left-28 2xl:w-[74%]",children:[(0,t.jsx)(i.default,{src:e.icon,alt:e.game,width:100,height:100,className:"rounded-md shrink-0 w-[30] h-[30] md:w-[3vw] md:h-[3vw]"}),(0,t.jsxs)("div",{className:"ml-3 leading-tight",children:[(0,t.jsxs)("p",{className:"text-[2vw] text-white opacity-80 md:text-[0.8rem]",children:["User ",e.user]}),(0,t.jsx)("p",{className:"text-[2.4vw] text-white font-semibold capitalize md:text-[0.8rem]",children:e.game.replace(/-/g," ")}),(0,t.jsxs)("p",{className:"text-[2.8vw] font-bold text-yellow-300 md:text-[1rem]",children:["Won ",e.amount]})]}),(0,t.jsx)("button",{className:"absolute right-4 p-0 cursor-pointer",onClick:()=>window.open("https://b4bet1.com/welcome","_blank","noopener,noreferrer"),children:(0,t.jsx)(i.default,{src:"/images/homepage/jackport/playBtn.webp",alt:"Play Now",width:80,height:32,className:"object-contain md:w-[10vw] 2xl:w-[8vw]"})})]})},e.id+"-"+a))})})]})})}function p({title:e,games:a,handlePlayNow:o,activeTab:s}){let[r,l]=(0,n.useState)(!1);return(0,n.useEffect)(()=>
1{l(!1),requestAnimationFrame(()=>{l(!0)})},[]),(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsx)("div",{className:"slots"===s&&a.length>10?"h-[70vh] md:h-[70vh] 2xl:h-[64vh] overflow-y-auto scrollbar-hide":"",children:(0,t.jsx)("div",{className:`grid gap-3
2    ${"hot"===s?"grid-cols-3 md:grid-cols-6 2xl:grid-cols-6":"grid-cols-2 md:grid-cols-4 2xl:grid-cols-6"}
3  `,children:a.map((e,a)=>(0,t.jsxs)("div",{className:`
4                transition-all duration-700
5                ${r?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}
6              `,style:{transitionDelay:`${80*a}ms`},children:[(0,t.jsxs)("div",{className:`relative ${"hot"===s?"h-[28vw] md:h-[22vh] 2xl:h-[16vh]":"h-[32vw] md:h-[24vh] 2xl:h-[18vh]"}`,children:[(0,t.jsx)(i.default,{src:e.image,alt:e.title,width:340,height:340,sizes:" (max-width: 768px) 33vw, (max-width: 1024px) 25vw, 340px ",className:"object-cover transition-transform duration-300 group-hover:scale-105 rounded-2xl drop-shadow-[0_2px_4px_rgba(0,0,0,0.25)] md:w-full md:h-[22vh] 2xl:h-[16vh]"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-white/80 opacity-0 group-hover:opacity-100 flex items-center justify-center transition",children:(0,t.jsxs)("button",{onClick:o,className:"bg-[#004225] text-xs text-white px-4 py-1 rounded-full font-semibold hover:scale-105 transition",children:["Play ",(0,t.jsx)("span",{className:"text-[#F1C40F] ml-1",children:"Now"})]})})]}),"hot"===s&&(0,t.jsx)("p",{className:"text-center text-[2.3vw] mt-2 text-[#444] font-bold md:text-[0.8rem]",children:e.title})]},s+"-"+a))})})})}var u=e.i(61745);function h(){return(0,t.jsx)(i.default,{src:"/images/homepage/footballPlayer/event_bg.webp",alt:"Football player background",priority:!0,fetchPriority:"high",loading:"eager",width:1200,height:100,className:"object-cover object-center z-10 absolute h-[100%]"})}function f(){let[e,o]=(0,n.useState)([]),[s,r]=(0,n.useState)(!0),[l,m]=(0,n.useState)("4328"),[d,c]=(0,n.useState)(0),[g,p]=(0,n.useState)("fbsport"),[f,x]=(0,n.useState)(0),[w,b]=(0,n.useState)(!1),v=n.default.useRef(0);n.default.useRef(0);let y=(0,u.useTranslations)("home");(0,n.useEffect)(()=>{let e=()=>{b(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let[j,N]=(0,a.useKeenSlider)(void 0);(0,n.useEffect)(()=>{1},[N,!1]),y("fbsportText"),y("digitainText");let k={[y("engLeague")]:{id:"4328",logo:"/images/homepage/footballEvent/english_Premier_League.webp"},[y("frenchLeague")]:{id:"4334",logo:"/images/homepage/footballEvent/french_Ligue_1.webp"},[y("germanLeague")]:{id:"4331",logo:"/images/homepage/footballEvent/german_Bundesliga.webp"},[y("italianLeague")]:{id:"4332",logo:"/images/homepage/footballEvent/Italian_Serie_A.webp"},[y("spanishLeague")]:{id:"4335",logo:"/images/homepage/footballEvent/spanish_La_Liga.webp"}};return(0,n.useEffect)(()=>{(async()=>{r(!0),c(0);try{let e=await fetch(`/api/livescore?league=${l}`),t=await e.json(),a=await fetch(`/api/matchApi?league=${l}`),i=await a.json(),n=[];n=t&&t.livescore&&t.livescore.length>0?[...t.livescore,...i?.schedule||[]]:i?.schedule||[],o(n)}catch(e){o([])}finally{r(!1)}})()},[l]),(0,t.jsxs)("section",{className:"text-white relative",children:[(0,t.jsx)(h,{}),(0,t.jsx)("div",{className:" md:w-[86%] mx-auto relative flex flex-col",children:(0,t.jsx)("div",{className:"flex flex-col md:flex-row items-center md:items-center justify-center w-full md:w-[95%] mx-auto p-4 ",children:(0,t.jsxs)("div",{className:"w-[100%] md:w-[40%] lg:w-[46%] max-w-[100%] md:mt-0 z-10 ",children:[(0,t.jsxs)("h2",{className:"text-xl font-bold mb-2 text-left md:pl-6 text-[#0476EE]",children:[y("upcoming"),(0,t.jsx)("span",{className:"text-[#DA5959]",children:y("events")})]}),(0,t.jsxs)("div",{className:"relative rounded-2xl p-4 shadow-lg border border-white overflow-hidden",children:[(0,t.jsx)("div",{className:" absolute inset-0  bg-gradient-to-t from-[#0476EE] to-[#6ECEA4]  opacity-50 "}),(0,t.jsxs)("div",{className:"relative z-10",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold mb-4 text-[#AA2B2B] text-center ",children:Object.keys(k).find(e=>k[e].id===l)||y("selectLeague")}),(0,t.jsx)("div",{className:"flex justify-around mb-6 bg-[rgba(255,255,255,0.66)] p-2 rounded-2xl",children:Object.entries(k).map(([e,{id:a,logo:n}])=>(0,t.jsx)(i.default,{src:n,alt:e,width:58,height:58,className:`md:w-12 md:h-8 w-[14vw] h-[10vw] object-contain rounded-md cursor-pointer p-1  ${l===a?"ring-2 ring-[#F1C40F] bg-gradient-to-b from-[#4752AB] to-[#0D144D]":""}`,onClick:()=>m(a)},a))}),(0,t.jsx)("div",{className:"rounded-xl md:h-[50%] flex flex-col justify-center h-[40vw] md:w-[100%] lg:w-[100%]",children:s||0===e.length?(0,t.jsxs)("div",{className:"grid grid-cols-3 items-center text-center gap-2 opacity-50",children:[(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"w-12 h-12 mx-auto rounded-full mb-2 bg-gray-700 animate-pulse"}),(0,t.jsx)("p",{className:"font-bold text-sm",children:"--"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs text-[#4F4F4F]",children:y(s?"loading":"noMatch")}),(0,t.jsx)("p",{className:"font-bold text-lg",children:"--:--"})]}),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"w-12 h-12 mx-auto rounded-full mb-2 bg-gray-700 animate-pulse"}),(0,t.jsx)("p",{className:"font-bold text-sm",children:"--"})]})]}):(0,t.jsxs)("div",{className:"fade-image",onTouchStart:e=>v.current=e.touches[0].clientX,onTouchEnd:t=>{let a=t.changedTouches[0].clientX-v.current;a>50&&d>
60?c(d-1):a<-50&&d<e.length-1&&c(d+1)},children:[(0,t.jsxs)("div",{className:"grid grid-cols-3 items-center text-center gap-2 ",children:[(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("p",{className:"font-bold text-[3.5vw] md:text-[0.7rem] lg:text-[0.8rem] text-[#0D144D] md:h-[3rem] h-[12vw]",children:e[d].strHomeTeam}),(0,t.jsx)("img",{src:e[d].strHomeTeamBadge||"/placeholder.png",alt:e[d].strHomeTeam,className:"md:w-10 md:h-10 lg:w-10 lg:h-10 mx-auto rounded-full mb-2 w-[10vw] h-[10vw]"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs text-[#4F4F4F]",children:(0,t.jsx)("span",{className:"font-bold text-[0.9rem] md:text-[0.8rem] text-[#0D144D]",children:new Date(e[d].dateEvent).toLocaleDateString("en-US",{month:"short",day:"numeric"})})}),(0,t.jsx)("p",{className:"font-bold text-lg text-[#133D69]",children:e[d].strTime?e[d].strTime.slice(0,5):"--:--"})]}),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("p",{className:"font-bold text-[3.5vw] md:text-[0.7rem] lg:text-[0.8rem] text-[#0D144D] md:h-[3rem] h-[12vw]",children:e[d].strAwayTeam}),(0,t.jsx)("img",{src:e[d].strAwayTeamBadge||"/placeholder.png",alt:e[d].strAwayTeam,className:"md:w-10 md:h-10 lg:w-10 lg:h-10 mx-auto rounded-full mb-2 w-[10vw] h-[10vw]"})]})]}),(0,t.jsxs)("div",{className:"flex justify-center items-center mt-4 text-[3vw] md:text-[0.8rem] lg:text-[0.9rem] font-semibold md:gap-3 gap-2 mx-auto",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center bg-[#DEEEFF] border border-[#D0E0F7] rounded-md overflow-hidden h-[30px] w-[30vw] md:w-[7rem] lg:w-[8rem]",children:[(0,t.jsx)("div",{className:"text-[#454545] flex-1 py-2 text-center border-r border-[#D0E0F7]",children:"2.50"}),(0,t.jsx)("div",{className:"text-[#FF0000] flex-1 py-2 text-center",children:"-2.0"})]}),(0,t.jsx)("div",{className:"bg-[#DEEEFF] text-[#133D69] border border-[#D0E0F7] rounded-md flex justify-center items-center text-center h-[30px] w-[20vw] md:w-[3.5rem] lg:w-[4rem]",children:"3.50"}),(0,t.jsx)("div",{onClick:()=>window.open("https://b4bet1.com/","_blank","noopener,noreferrer"),className:"bg-[#0D144D] text-[#FFD700] font-bold rounded-md flex justify-center items-center text-center h-[30px] w-[20vw] md:w-[4.5rem] lg:w-[5rem] hover:scale-[1.03] transition-transform cursor-pointer",children:y("betNow")})]})]},d)}),e.length>0&&(0,t.jsx)("div",{className:"flex justify-center md:gap-2 gap-[2vw] mt-4",children:e.map((e,a)=>(0,t.jsx)("div",{className:`md:w-2 md:h-2 w-[1.5vw] h-[1.5vw] rounded-full cursor-pointer ${a===d?"bg-[#F1C40F]":"bg-gray-600 hover:bg-gray-400"}`,onClick:()=>c(a)},`match-dot-${a}`))})]})]})]})})})]})}function x(){return(0,t.jsx)("section",{className:"relative w-full border-amber-600",children:(0,t.jsx)(f,{})})}function w(){let[e,a]=(0,n.useState)("hot"),o=()=>window.open("https://b4bet1.com?tab=fishing","_blank","noopener,noreferrer"),s=[{title:"CQ9",provider:"",image:"/images/homepage/gameImage/slot/cq9.webp"},{title:"Gaming Panda",provider:"",image:"/images/homepage/gameImage/slot/gaming-panda.webp"},{title:"Jili",provider:"JILI",image:"/images/homepage/gameImage/slot/jili.webp"},{title:"JDB",provider:"",image:"/images/homepage/gameImage/slot/jdb.webp"},{title:"Red Tiger",provider:"",image:"/images/homepage/gameImage/slot/red-tiger.webp"},{title:"Pocket Games Soft",provider:"",image:"/images/homepage/gameImage/slot/pocket-games-soft.webp"},{title:"Pragmatic Play",provider:"",image:"/images/homepage/gameImage/slot/pragmatic-play.webp"},{title:"Micro Gaming",provider:"",image:"/images/homepage/gameImage/slot/micro-gaming.webp"},{title:"FC",provider:"",image:"/images/homepage/gameImage/slot/fc.webp"},{title:"BTG",provider:"",image:"/images/homepage/gameImage/slot/btg.webp"},{title:"Yellow Bat",provider:"",image:"/images/homepage/gameImage/slot/yellow-bat.webp"},{title:"YGR",provider:"",image:"/images/homepage/gameImage/slot/ygr.webp"},{title:"Simple Play",provider:"",image:"/images/homepage/gameImage/slot/simple-play.webp"},{title:"Playstar",provider:"",image:"/images/homepage/gameImage/slot/play-star.webp"},{title:"UU slot",provider:"",image:"/images/homepage/gameImage/slot/uu-gaming.webp"},{title:"NETENT",provider:"",image:"/images/homepage/gameImage/slot/netent.webp"},{title:"Nolimit City",provider:"",image:"/images/homepage/gameImage/slot/nolimit-city.webp"},{title:"Hacksaw Gaming",provider:"",image:"/images/homepage/gameImage/slot/hacksaw-gaming.webp"},{title:"Rich88",provider:"",image:"/images/homepage/gameImage/slot/rich88.webp"},{title:"BGaming",provider:"",image:"/images/homepage/gameImage/slot/bgaming.webp"},{title:"Epic Win",provider:"",image:"/images/homepage/gameImage/slot/epic-win.webp"},{title:"Live22",provider:"",image:"/images/homepage/gameImage/slot/live-22.webp"},{title:"Wow Gaming",provider:"",image:"/images/homepage/gameImage/slot/wow-gaming.webp"},{title:"Smart Soft Gaming",provider:"",image:"/images/homepage/gameImage/slot/smartsoft-gaming.webp"},{title:"Booming Games",provider:"",image:"/images/homepage/gameImage/slot/booming-games.webp"},{title:"Bigpot Gaming",provider:"",image:"/images/homepage/gameImage/slot/big-pot-gaming.webp"},{title:"rsg",provider:"",image:"/images/homepage/gameImage/slot/rsg.webp"}],r=[{title:"Pragmatic Play",provider:"",image:"/images/homepage/gameImage/casino/pragmatic-play.webp"},{title:"Ace Sexy",provider:"",image:"/images/homepage/gameImage/casino/ace-sexy.webp"},{title:"WM Casino",provider:"",image:"/images/homepage/gameImage/casino/wm-casino.webp"},{title:"Evolution Gaming",provider:"",image:"/images/homepage/gameImage/casino/evolution-gaming.webp"}
6,{title:"Sa Gaming",provider:"",image:"/images/homepage/gameImage/casino/sa-gaming.webp"},{title:"Yeebet Gaming",provider:"",image:"/images/homepage/gameImage/casino/yeebet-gaming.webp"}],l=[{title:"Chicken Road 2.0",provider:"",image:"/images/homepage/gameImage/hot/chicken-road-2.webp"},{title:"Super Element",provider:"",image:"/images/homepage/gameImage/hot/super-element.webp"},{title:"Super Ace",provider:"JILI",image:"/images/homepage/gameImage/hot/super-ace.webp"},{title:"Wild Bounty Showdown",provider:"JILI",image:"/images/homepage/gameImage/hot/wild-bounty-showdown.webp"},{title:"Pinata Wins",provider:"JILI",image:"/images/homepage/gameImage/hot/pinata-wins.webp"},{title:"Super Ace Deluxe",provider:"JILI",image:"/images/homepage/gameImage/hot/super-ace-deluxe.webp"},{title:"Golden Empire",provider:"JILI",image:"/images/homepage/gameImage/hot/golden-empire.webp"},{title:"Fourtune Game 2",provider:"JILI",image:"/images/homepage/gameImage/hot/fortune-gems-2.webp"},{title:"Fortune Game 3",provider:"JILI",image:"/images/homepage/gameImage/hot/fortune-gems-3.webp"},{title:"Sugar Bang Bang 2",provider:"JILI",image:"/images/homepage/gameImage/hot/sugar-bang-bang-2.webp"},{title:"Wild Ape #3258",provider:"JILI",image:"/images/homepage/gameImage/hot/wild-ape-3258.webp"},{title:"Fortune Gems",provider:"JILI",image:"/images/homepage/gameImage/hot/fortune-gems.webp"},{title:"Mines",provider:"JILI",image:"/images/homepage/gameImage/hot/mines.webp"},{title:"Money Coming",provider:"JILI",image:"/images/homepage/gameImage/hot/money-coming.webp"},{title:"Sweet Bonanza 1000",provider:"JILI",image:"/images/homepage/gameImage/hot/sweet-bonanza-1000.webp"}],m=[{title:"Gaming Panda",provider:"",image:"/images/homepage/gameImage/arcade/gaming-panda.webp"},{title:"JDB",provider:"",image:"/images/homepage/gameImage/arcade/jdb.webp"},{title:"JILI",provider:"JILI",image:"/images/homepage/gameImage/arcade/jili.webp"},{title:"Micro Gaming",provider:"",image:"/images/homepage/gameImage/arcade/micro-gaming.webp"},{title:"Yellow Bat",provider:"",image:"/images/homepage/gameImage/arcade/yellow-bat.webp"},{title:"Spribe",provider:"",image:"/images/homepage/gameImage/arcade/spribe.webp"},{title:"T1",provider:"",image:"/images/homepage/gameImage/arcade/t1-gaming.webp"},{title:"Wheel Hacksaw gaming",provider:"JILI",image:"/images/homepage/gameImage/arcade/hacksaw-gaming.webp"},{title:"YGR",provider:"JILI",image:"/images/homepage/gameImage/arcade/ygr.webp"}],d=[{title:"JDB ",provider:"JILI",image:"/images/homepage/gameImage/lotto/jdb.webp"},{title:"JILI",provider:"JILI",image:"/images/homepage/gameImage/lotto/jili.webp"},{title:"Gaming Panda",provider:"JILI",image:"/images/homepage/gameImage/lotto/gaming-panda.webp"},{title:"Micro Gaming",provider:"JILI",image:"/images/homepage/gameImage/lotto/microgaming.webp"}],c=[{title:"Cq9",provider:"",image:"/images/homepage/gameImage/fishing/cq9.webp"},{title:"Fc",provider:"",image:"/images/homepage/gameImage/fishing/fc.webp"},{title:"Jdb",provider:"",image:"/images/homepage/gameImage/fishing/jdb.webp"},{title:"Jili",provider:"JILI",image:"/images/homepage/gameImage/fishing/jili.webp"},{title:"Yellow Bat",provider:"",image:"/images/homepage/gameImage/fishing/yellow-bat.webp"},{title:"Simple Play",provider:"",image:"/images/homepage/gameImage/fishing/simple-play.webp"}],g=[{title:"Fb-sport",provider:"",image:"/images/homepage/gameImage/sport/fb-sports.webp"},{title:"W-bet",provider:"",image:"/images/homepage/gameImage/sport/w-bet.webp"}],u=(()=>{switch(e){case"slots":return[{title:"🎰 SLOT GAMES",games:s}];case"lotto":return[{title:"🎲 LOTTORY",games:d}];case"casino":return[{title:"🎲LIVE CASINO",games:r}];case"sport":return[{title:"🎲Sport",games:g}];case"arcade":return[{title:"🎲 ARCADE LOTTO",games:m}];case"fishing":return[{title:"🎲 FISHING",games:c}];default:return[{title:"🔥 HOT GAMES",games:l}]}})();return(0,t.jsxs)("section",{className:"pt-6 px-4 relative ",children:[(0,t.jsxs)("div",{className:"text-[#0476EE] text-xl font-bold md:left-[10%] relative md:mb-10 2xl:left-[18%] mb-4",children:["Highlight ",(0,t.jsx)("span",{className:"text-[#DA5959]",children:"Games"})]}),(0,t.jsxs)("div",{className:"md:w-[90%] 2xl:w-[70%] mx-auto flex flex-col md:flex-row md:justify-between md:items-start",children:[(0,t.jsx)("div",{className:" flex w-full mb-8  justify-between  /* mobile: horizontal */ flex-row  /* desktop: vertical left */ md:flex-col md:w-[180px] md:justify-start md:space-y-4 ",children:[{id:"hot",label:"/images/homepage/iconGame/fire.webp"},{id:"slots",label:"/images/homepage/iconGame/slot.webp"},{id:"casino",label:"/images/homepage/iconGame/casino.webp"},{id:"lotto",label:"/images/homepage/iconGame/lotto.webp"}
6,{id:"arcade",label:"/images/homepage/iconGame/arcade.webp"},{id:"fishing",label:"/images/homepage/iconGame/fish.webp"},{id:"sport",label:"/images/homepage/iconGame/sport.webp"}].map(n=>(0,t.jsxs)("button",{onClick:()=>a(n.id),className:"flex flex-col items-center ",children:[(0,t.jsx)("div",{className:" w-[10vw] h-[30px] md:w-[40px] md:h-[40px] 2xl:h-[50px]  flex items-center justify-center ",children:(0,t.jsx)(i.default,{src:n.label,alt:n.id,width:200,height:40,sizes:"(max-width: 768px) 100px, 200px",className:"w-full h-full object-contain md:w-[200px] md:h-[40px]"})}),(0,t.jsx)("span",{className:`
7                      text-xs md:text-base mt-1
8              ${e===n.id?"text-[#d30000]":"text-[#777]"}
9            `,children:n.id.charAt(0).toUpperCase()+n.id.slice(1)}),e===n.id&&(0,t.jsx)("div",{className:"md:block w-8 h-[4px] bg-[#FFD200] rounded-full mt-1"})]},n.id))}),(0,t.jsxs)("div",{className:"w-full md:flex-1",children:[u.map(a=>(0,t.jsx)(p,{title:a.title,games:a.games,handlePlayNow:o,activeTab:e},e)),"sport"===e&&(0,t.jsx)("div",{className:"hidden md:block mt-0",children:(0,t.jsx)(x,{})})]})]}),(0,t.jsx)("div",{className:"md:hidden flex",children:"sport"===e&&(0,t.jsx)("div",{className:"w-full relative",children:(0,t.jsx)(x,{})})})]})}function b({videoUrl:e,thumbnail:a}){let[o,s]=(0,n.useState)(!1);return(0,t.jsx)("div",{className:"relative w-full pb-[56.25%] bg-black rounded-xl overflow-hidden cursor-pointer",children:o?(0,t.jsx)("iframe",{src:`${e}&autoplay=1`,title:"YouTube video",className:"absolute top-0 left-0 w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):(0,t.jsxs)("div",{onClick:()=>s(!0),children:[(0,t.jsx)(i.default,{src:a,alt:"Tutorial thumbnail",fill:!0,loading:"lazy",sizes:"(max-width: 768px) 100vw, 700px",className:"object-cover"}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:(0,t.jsx)("div",{className:"w-16 h-16 bg-white/60 rounded-full flex items-center justify-center text-3xl",children:"▶"})})]})})}var v=e.i(56904);function y(){let[e,a]=(0,n.useState)("deposit"),i={deposit:"Deposit",withdrawal:"Withdrawal",promotion:"Promotion",register:"Register",download:"Download App"},o={deposit:{title:"Deposit - Fund Your Account Instantly",desc1:"Making a deposit on B4bet Philippines is quick and easy for every player. Whether you are new or experienced, the platform supports GCash, Maya, and local bank transfers - so your funds reach your account within minutes. B4bet is a trusted Online Casino Philippines Gcash platform that lets you fund your account without any transaction fees.",desc2:"Once your deposit is confirmed, you can instantly access all B4bet Casino Games, including Slot Games, Live Casino, and Sports Betting PH. The platform is fully licensed, so your money is always safe. Filipino players looking for a reliable Online Casino Philippines can count on B4bet for fast, secure, and hassle-free deposits every time.",video:"https://www.youtube.com/embed/H4AwUJV9KIM?si=29TC6Ycu0Q5PcKmS",image:"/images/homepage/howToDeposit/how-to-deposit.webp"},withdrawal:{title:"Withdrawal - Get Your Winnings Fast ",desc1:"Withdrawing your winnings on B4bet is straightforward and fast for all verified accounts. The platform processes same-day payouts through GCash and Maya, making it the top choice for Online Casino Philippines Gcash users who want their money quickly. No hidden fees, no long waiting - just instant access to your earnings.",desc2:"B4bet is built for players who value speed and trust. Whether you won from Slot Games Online, Live Casino, or Sports Betting PH, your withdrawal request is handled professionally. As a PAGCOR-licensed Online na Casino, B4bet ensures every payout is processed securely and on time - giving you full confidence in every transaction.",video:"https://www.youtube.com/embed/NtfJE1sGOqs?si=rBZEAE08NYk7aAkM",image:"/images/homepage/howToDeposit/how-to-withdraw.webp"},promotion:{title:"Promotion - Bonuses Built for Filipino Players",desc1:"B4bet offers exciting promotions for both new and returning players across the Philippines. From a generous Welcome Bonus to Araw-araw na Bonus (daily bonus) offers, the platform rewards loyal players regularly. Casino Free Bonu
9s deals and Casino Bonus packages are updated frequently in the Promotions section of the website.",desc2:(0,t.jsxs)(t.Fragment,{children:["Players can claim"," "," ",(0,t.jsx)(v.Link,{href:"/promotion",className:"text-[#0476EE] underline",children:"Free Bonus credits"})," "," ","for Slot Games, Live Casino tables, and Ph Casino sports events. B4bet's Bonus sa Pagbati (welcome bonus) gives first-time users a strong start. Always read the bonus terms carefully to maximize your rewards - and visit the Promotions page regularly so you never miss a new Casino Free Bonus offer."]}),video:"https://www.youtube.com/embed/-D8UxnSr0E4?si=5nRcbEN1nYzuQhYO",image:"/images/homepage/howToDeposit/how-to-promo.webp"},register:{title:"Register - Join in Under 5 Minutes",desc1:(0,t.jsxs)(t.Fragment,{children:["Creating your B4bet account takes less than five minutes. Simply visit b4betph.com, click the ",(0,t.jsx)(v.Link,{href:"/register",className:"text-[#0476EE] underline",children:"Register B4bet"})," button, fill in your basic details, and verify your email. The B4bet Register process is completely free with no hidden charges - making it the easiest way to join a trusted Online Casino Philippines platform today."]}),desc2:"Once you complete B4bet Philippines Magparehistro (registration), you gain full access to Slot Games Online, Live Casino, Lottery Results, and Sports Betting PH. New players also unlock exclusive Casino Bonus and Free Bonus offers right after signing up. Whether you play on mobile or desktop, Register B4bet now and start your online gaming journey on a fully PAGCOR-licensed platform.",video:"https://www.youtube.com/embed/IteOUQfcfhE?si=3d_cs5tOkcgd8tbM",image:"/images/homepage/howToDeposit/how-to-register.webp"},download:{title:"Download App - Play Instantly on Any Device",desc1:"B4bet is a fully mobile-optimized Online na Casino that works smoothly on any smartphone browser - no separate app download required. Filipino players can enjoy Mobile na Casino gaming instantly by simply opening their browser and logging in. This means faster access, no storage issues, and automatic updates without any manual steps.",desc2:(0,t.jsxs)(t.Fragment,{children:["While there is no ",(0,t.jsx)(v.Link,{href:"/download",className:"text-[#0476EE] underline",children:"B4bet Download"})," needed from an app store, the platform performs like a native Mobile na Casino app on both Android and iOS. From Slot Games to Live Casino and Ph Casino sports betting, everything runs seamlessly on your phone. B4bet Official is designed for the modern Filipino player who wants fast, convenient, and reliable Online Gambling from any device, anywhere in the Philippines."]}),video:"https://www.youtube.com/embed/3E5y2lTb8LM?si=P4sPBDeoew40T7X0",image:"/images/homepage/howToDeposit/how-to-download.webp"}};return(0,t.jsx)("section",{className:"flex justify-center items-center w-full py-6",children:(0,t.jsxs)("div",{className:"bg-white w-[95%] md:w-[100%] rounded-3xl p-2 md:p-10 shadow-md",children:[(0,t.jsxs)("h2",{className:"text-center text-2xl md:text-4xl font-bold mb-6 text-[#0476EE] mt-2",children:["How To ",(0,t.jsx)("span",{className:"text-red-500",children:i[e]})]}),(0,t.jsx)("div",{className:"flex overflow-x-auto no-scrollbar bg-gray-200 rounded-[10px] px-2 py-2 mb-8 gap-2 shadow-md flex-nowrap",children:Object.keys(i).map(n=>(0,t.jsx)("button",{onClick:()=>a(n),className:`
10                flex-shrink-0 w-[33%] md:max-w-[19%]
11                text-center py-2 rounded-[10px] text-sm font-semibold
12                transition-all duration-200
13                ${e===n?"text-white shadow-md bg-[linear-gradient(180deg,#83BFFF_0%,#0476EE_100%)]":"text-black"}
14              `,children:i[n]},n))}),(0,t.jsx)("h2",{className:"text-center text-blue-600 font-bold text-lg mb-3",children:o[e].title}),(0,t.jsx)("p",{className:"text-center text-gray-500 mb-8 leading-relaxed text-sm md:text-base",children:o[e].desc1}),(0,t.jsx)("p",{className:"text-center text-gray-500 mb-8 leading-relaxed text-sm md:text-base",children:o[e].desc2}),(0,t.jsx)("div",{className:"w-full bg-gradient-to-b from-[#2d3748] to-[#0a1a2f] rounded-2xl overflow-hidden shadow-lg",children:(0,t.jsx)(b,{videoUrl:o[e].video,thumbnail:o[e].image})})]})})}function j({params:e}){let a=(0,r.useTranslations)("home");return(0,t.jsxs)("div",{className:"flex flex-col items-center w-full bg-[#EEE] overflow-hidden",children:[(0,t.jsx)(d,{}),(0,t.jsx)("section",{className:"w-[90%] mx-auto mt-4 md:hidden h-7",children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2 h-full",children:[(0,t.jsx)(v.Link,{href:"/register",className:"font-semibold text-[#FFFFFF] text-center cursor-pointer h-full text-xs whitespace-nowrap w-full justify-center flex items-center",style:{background:"linear-gradient(180deg, #14b445 0%, #0e5d06 100%)",borderRadius:"10px"},children:a("registerBtn")}),(0,t.jsx)(v.Link,{href:"/login",className:"font-semibold text-[#FFFFFF] text-center cursor-pointer h-full text-xs whitespace-nowrap w-full justify-center flex items-center",style:{background:"linear-gradient(180deg, #f50101 0%, #aa0100 100%)",borderRadius:"10px"},children:a("loginBtn")})]})}),(0,t.jsxs)("section",{className:"w-[90%] mx-auto mb-8 mt-4",children:[(0,t.jsx)("h1",{className:"text-center text-2xl md:text-3xl font-bold mb-5 text-[#0476EE]",children:a("theme_h1")}),(0,t.jsx)("p",{className:"text-black text-sm md:text-base text-center",children:a.rich("theme_p1",{link:e=>(0,t.jsx)(v.Link,{href:"/",className:"text-[#0476EE] underline",children:e})})}),(0,t.jsx)("p",{className:"text-black text-sm md:text-base text-center mt-2",children:a("theme_p2")}),(0,t.jsx)("p",{className:"text-black text-sm md:text-base text-center mt-2",children:a("theme_p3")})]}),(0,t.jsxs)("div",{className:"flex justify-center gap-6 py-6 px-2 relative w-[95%] md:hidden",children:[(0,t.jsx)("div",{className:" absolute w-full h-20 top-16 md:top-20 md:h-40 md:w-[90%] rounded-2xl z-0 bg-[rgba(219,219,219,0.66)] shadow-[inset_0_1px_1px_rgba(13,20,77,0.20)] "}),[{label:"Referral",icon:"/images/homepage/info/icon_refer.webp",link:"https://b4bet1.com/rec
14ommendedIntroduction"},{label:"Deposit",icon:"/images/homepage/info/icon_deposit.webp",link:"https://b4bet1.com/recommendedIntroduction"},{label:"Withdrawal",icon:"/images/homepage/info/icon_withdrawal.webp",link:"https://b4bet1.com/recommendedIntroduction"}].map(e=>(0,t.jsxs)("div",{className:"flex flex-col items-center z-10",children:[(0,t.jsx)("div",{className:`
15              w-[24vw] h-[80px]
16              rounded-2xl
17              flex items-center justify-center
18            `,children:(0,t.jsx)("div",{onClick:()=>window.location.href=e.link,className:"cursor-pointer",children:(0,t.jsx)(i.default,{src:e.icon,alt:e.label,width:96,height:96,className:"object-contain md:w-[190px]"})})}),(0,t.jsx)("p",{className:"mt-2 md:mt-12 text-[#616161] text-[14px] md:text-[2rem] font-medium",children:e.label})]},e.label))]}),(0,t.jsxs)("main",{className:"flex flex-col w-full relative",children:[(0,t.jsx)(w,{}),(0,t.jsxs)("section",{className:"w-[90%] mx-auto mb-8 mt-4",children:[(0,t.jsx)("h2",{className:"text-center text-xl md:text-2xl font-bold mb-5 text-[#0476EE]",children:a("game_h2")}),(0,t.jsxs)("div",{className:"text-black text-sm md:text-base text-center space-y-2",children:[(0,t.jsx)("p",{children:a("game_p1")}),(0,t.jsx)("p",{children:a("game_p2")}),(0,t.jsx)("p",{children:a.rich("game_p3",{link:e=>(0,t.jsx)(v.Link,{href:"/slot",className:"text-[#0476EE] underline",children:e})})}),(0,t.jsx)("p",{children:a.rich("game_p4",{link:e=>(0,t.jsx)(v.Link,{href:"/casino",className:"text-[#0476EE] underline",children:e})})}),(0,t.jsx)("p",{children:a.rich("game_p5",{link:e=>(0,t.jsx)(v.Link,{href:"/sport",className:"text-[#0476EE] underline",children:e})})})]})]}),(0,t.jsxs)("div",{className:"2xl:w-[60%] 2xl:m-auto md:w-[60%] md:m-auto",children:[(0,t.jsx)(g,{}),(0,t.jsx)(y,{})]}),(0,t.jsx)(c,{})]})]})}e.s(["default",()=>j],88008)}]);

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.