PageSourceSearch

https://www.botb.com/my-app/dist/4944.fee5379ea1622eb7b2cc.js

js botb.com collected 2026-10-02 08:10:03 UTC 11,328 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkbotb_nextjs_app=self.webpackChunkbotb_nextjs_app||[]).push([[4944],{847:(e,t,i)=>{i.d(t,{L:()=>o});var s=i(6540);const o=(e,t,i,o="second")=>{const[r,n]=(0,s.useState)({days:"00",formattedHours:"00",hours:"00",minutes:"00",seconds:"00",milliseconds:0,isPastADay:!1,finished:!1,totalMilliseconds:0}),a=(0,s.useRef)(),l=(0,s.useRef)(),d=(0,s.useRef)(!1);(0,s.useEffect)((()=>{d.current=!1}),[t]);const c=(0,s.useCallback)((()=>{d.current||(d.current=!0,(null==i?void 0:i.Finish)&&i.Finish())}),[null==i?void 0:i.Finish]),u=e=>e<10?`0${e}`:e.toString(),m=e=>{const t=new Date(e),i=Date.now(),s=t.getTime();if(!t||isNaN(s))return{days:"00",formattedHours:"00",hours:"00",minutes:"00",seconds:"00",milliseconds:0,isPastADay:!1,finished:!0,totalMilliseconds:0};const o=s-i;if(o<=0)return{days:"00",formattedHours:"00",hours:"00",minutes:"00",seconds:"00",milliseconds:0,isPastADay:!1,finished:!0,totalMilliseconds:0};const r=Math.floor(o/864e5),n=Math.floor(o/36e5),a=Math.floor(o%864e5/36e5),l=Math.floor(o%36e5/6e4),d=Math.floor(o%6e4/1e3),c=o%1e3;return{days:u(r),hours:u(n),formattedHours:u(a),minutes:u(l),seconds:u(d),milliseconds:c,isPastADay:r>0,finished:!1,totalMilliseconds:o}},p=(0,s.useCallback)((()=>{const e=m(t);if(e.finished)return n(e),void c();n((t=>{const i=Math.floor(t.milliseconds/10),s=Math.floor(e.milliseconds/10);return t.days!==e.days||t.hours!==e.hours||t.minutes!==e.minutes||t.seconds!==e.seconds||i!==s?e:t})),a.current=requestAnimationFrame(p)}),[t,c]),x=(0,s.useCallback)((()=>{const e=m(t);n(e),e.finished&&c()}),[t,c]);return(0,s.useEffect)((()=>{if(!t)return void n({days:"00",formattedHours:"00",hours:"00",minutes:"00",seconds:"00",milliseconds:0,isPastADay:!1,finished:!0,totalMilliseconds:0});const e=m(t);if(n(e),!e.finished)return"millisecond"===o?p():l.current=setInterval(x,1e3),()=>{a.current&&cancelAnimationFrame(a.current),l.current&&clearInterval(l.current)};c()}),[t,o]),r}},4606:(e,t,i)=>{i.d(t,{a:()=>o});var s=i(1397);const o=()=>(0,s.GV)((e=>e.device.isMobile))},5986:(e,t,i)=>{i.r(t),i.d(t,{default:()=>x});var s=i(4848),o=i(4606),r=i(6176),n=i(847),a=i(9954),l=i(3298),d=i(1397),c=i(5790);const u=["/assets/images/winners/gameHost1.webp","/assets/images/winners/gameHost2.webp","/assets/images/winners/gameHost3.webp","/assets/images/winners/gameHost4.webp"];function m({className:e}){return(0,s.jsx)("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M6 6l6 6-6 6M13 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function p({className:e}){return(0,s.jsx)("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:"21",height:"22",viewBox:"0 0 21 22",fill:"none","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M5.69792 14.8542C6.13995 14.8542 6.56387 15.0298 6.87643 15.3423C7.18899 15.6549 7.36459 16.0788 7.36459 16.5208C7.36459 16.9629 7.18899 17.3868 6.87643 17.6993C6.56387 18.0119 6.13995 18.1875 5.69792 18.1875C5.25589 18.1875 4.83197 18.0119 4.51941 17.6993C4.20685 17.3868 4.03125 16.9629 4.03125 16.5208C4.03125 16.0788 4.20685 15.6549 4.51941 15.3423C4.83197 15.0298 5.25589 14.8542 5.69792 14.8542ZM5.69792 14.8542H14.8646M5.69792 14.8542V3.1875H4.03125M14.8646 14.8542C15.3066 14.8542 15.7306 15.0298 16.0431 15.3423C16.3557 15.6549 16.5313 16.0788 16.5313 16.5208C16.5313 16.9629 16.3557 17.3868 16.0431 17.6993C15.7306 18.0119 15.3066 18.1875 14.8646 18.1875C14.4226 18.1875 13.9987 18.0119 13.6861 17.6993C13.3735 17.3868 13.198 16.9629 13.198 16.5208C13.198 16.0788 13.3735 15.6549 13.6861 15.3423C13.9987 15.0298 14.4226 14.8542 14.8646 14.8542ZM5.69792 4.85417L17.3646 5.6875L16.5313 11.5208H5.69792",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}const x=function({sliceData:e}){const t=(0,d.jL)(),i=(0,o.a)(),x=(0,r.xB)({CompetitionId:e.data.widgetCompetitionId}),{isPastADay:h,days:f,formattedHours:y,minutes:C,seconds:g}=(0,n.L)("competition-chance",null==x?void 0:x.EndDate),b=h?`${f}d : ${y}h : ${C}m`:`${y}h : ${C}m : ${g}s`,v=()=>{t((0,a.d)({modalData:(0,s.jsx)(l.A,{prizeId:x.FeaturedPrizeId,addToCartMethodId:c.I})})),t((0,a.B5)({classNames:"md:rounded-2xl xs:absolute xs:bottom-0 xs:w-full xs:rounded-b-none xs:rounded-t-2xl z-10"})),t((0,a.fz)({isOpen:!0}))};return i?(0,s.jsxs)("div",{className:"relative overflow-hidden w-full mb-6 rounded-lg bg-gray-4 [box-shadow:0_1.5px_8px_0_rgba(0,0,0,0.20)]",children:[(0,s.jsxs)("div",{className:"flex items-center justify-center w-full px-2.5 py-1 text-sm font-medium font-jost text-white bg-gradient-botb",children:["ENDS IN ",b]}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2 px-2 pt-4 pb-3",children:[(0,s.jsx)("img",{src:null==x?void 0:x.FeaturedPrizeThumbnail,className:"shrink-0 w-[129px] h-20 object-cover rounded-lg",alt:"Featured prize"}),(0,s.jsx)("div",{className:"flex items-end shrink-0",children:u.map(((e,t)=>(0,s.jsx)("img",{src:e,className:"h-20 w-auto shrink-0 "+(t>0?"-ml-[5px] -scale-x-100":""),alt:"","aria-hidden":"true"},e)))})]}),(0,s.jsx)("div",{className:"px-4 pb-6 text-center text-xl font-medium font-jost leading-[26px] text-dark-1 normal-case !mb-0",children:"Your chance to win cars, watches, tech, cash and so much more!"}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 pb-4",children:[(0,s.jsxs)("a",{href:null==x?void 0:x.PageUrl,className:"theme-btn theme-btn-xs theme-btn-primary-outline min-w-[110px] !text-primary font-jost uppercase",children:["Enter now",(0,s.jsx)(m,{className:"size-3"})]}),x.IsSinglePrizeMode&&0!==x.FeaturedPrizeId&&(0,s.jsx)("button",{onClick:v,"aria-label":"Select tickets",className:"theme-btn theme-btn-primary flex items-center justify-center shrink-0 p-0 size-8 min-h-0 rounded",children:(0,s.jsx)(p,{className:"size-4 text-white"})})]})]}):(0,s.jsxs)("div",{className:"relative flex items-start max-w-[1360px] min-h-[232px] mx-auto my-10 p-5 gap-10 rounded-lg bg-gray-4",children:[(0,s.jsx)("img",{src:null==x?void 0:x.FeaturedPrizeThumbnail,className:"shrink-0 w-[310px] h-[192px] object-cover rounded-lg",alt:"Featured prize"}),(0,s.jsxs)("div",{className:"flex flex-col justify-between items-start gap-10 min-h-[192px] max-w-[498px] grow",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"self-start px-2.5 py-1 rounded text-sm font-medium font-jost text-white bg-gradient-botb",children:["ENDS IN ",b]}),(0,s.jsx)("div",{className:"text-left text-3xl font-semibold font-jost leading-8 text-dark-1 normal-case !mb-0",children:"Your chance to win cars, watches, tech, cash and so much more!"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("a",{href:null==x?void 0:x.PageUrl,className:"theme-btn theme-btn-lg theme-btn-primary-outline min-w-[181px] !text-primary font-jost uppercase",children:["Enter now",(0,s.jsx)(m,{className:"size-5"})]}),x.IsSinglePrizeMode&&0!==x.FeaturedPrizeId&&(0,s.jsx)("button",{onClick:v,"aria-label":"Select tickets",className:"theme-btn theme-btn-primary flex items-center justify-center shrink-0 p-0 size-12 min-h-0 rounded",children:(0,s.jsx)(p,{className:"size-6 text-white"})})]})]}),(0,s.jsx)("div",{className:"absolute right-5 -top-[11px] flex items-end pointer-events-none",children:u.map(((e,t)=>(0,s.jsx)("img",{src:e,className:"h-[212px] w-auto shrink-0 "+(t>0?"-ml-4 -scale-x-100":""),alt:"","aria-hidden":"true"},e)))})]})}},6176:(e,t,i)=>{i.d(t,{Iz:()=>y,a$:()=>f,cD:()=>w,ip:()=>C,p1:()=>x,xB:()=>b});var s=i(1397),o=Object.defineProperty,r=Object.defineProperties,n=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,c=(e,t,i)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,u=(e,t)=>
1{for(var i in t||(t={}))l.call(t,i)&&c(e,i,t[i]);if(a)for(var i of a(t))d.call(t,i)&&c(e,i,t[i]);return e},m=(e,t)=>r(e,n(t));const p=(0,s.Dr)([(e,t)=>e.competitionsCategories,(e,t)=>t],((e,t)=>((null==t?void 0:t.excludeCategories)?e.categories.filter((e=>!(null==t?void 0:t.excludeCategories.includes(e.type)))):e.categories).map((t=>m(u({},t),{competitions:t.competitionIds.map((t=>e.activeCompetitions.find((e=>e.CompetitionId===t))||{AdditionalCashText:"",CompetitionId:0,CompetitionPictureTypeId:0,CtaAddToBasketPrizeId:0,CtaText:"",CtaTextValidated:"",CtaTicketValue:"",CurrencySymbol:"",EndDate:"",FormattedOriginalPrice:"",FormattedPrice:"",FormattedPriceWithoutCurrency:"",HasInstantWin:!1,ImageDoubleUrl:"",ImageUrl:"",IsRewardCompetition:!1,IsSinglePrizeMode:!1,MultiBuyLowerPercent:0,MultiBuyLowerQuantity:0,MultiBuyUpperPercent:0,MultiBuyUpperQuantity:0,NavigationColour:"",OverrideDiscountValue:0,PageUrl:"",PercentOffValue:0,PostalEntryText:"",SupportsMultibuy:!1,TicketText:"",Title:"",UseDailyPopupForCompetitionId:0}))}))))),x=e=>(0,s.GV)((t=>p(t,e))),h=(0,s.Dr)([(e,t)=>e.competitionsCategories,(e,t)=>t],((e,t)=>{const i=e.categories.find((e=>e.type===t));return i?m(u({},i),{competitions:i.competitionIds.map((t=>e.activeCompetitions.find((e=>e.CompetitionId===t))||{AdditionalCashText:"",CompetitionId:0,CompetitionPictureTypeId:0,CtaAddToBasketPrizeId:0,CtaText:"",CtaTextValidated:"",CtaTicketValue:"",CurrencySymbol:"",EndDate:"",FormattedOriginalPrice:"",FormattedPrice:"",FormattedPriceWithoutCurrency:"",HasInstantWin:!1,ImageDoubleUrl:"",ImageUrl:"",IsRewardCompetition:!1,IsSinglePrizeMode:!1,MultiBuyLowerPercent:0,MultiBuyLowerQuantity:0,MultiBuyUpperPercent:0,MultiBuyUpperQuantity:0,NavigationColour:"",OverrideDiscountValue:0,PageUrl:"",PercentOffValue:0,PostalEntryText:"",SupportsMultibuy:!1,TicketText:"",Title:"",UseDailyPopupForCompetitionId:0}))}):{competitions:[],type:t,imageUrl:"",subtitle:"",title:""}})),f=e=>(0,s.GV)((t=>h(t,e))),y=()=>(0,s.GV)((e=>e.competitionsCategories.loading)),C=()=>(0,s.GV)((e=>e.competitionsCategories.activeCompetitions)),g=(0,s.Dr)([(e,t)=>e.competitionsCategories.activeCompetitions,(e,t)=>t],((e,t)=>e.find((e=>e.CompetitionId===(null==t?void 0:t.CompetitionId)||e.CompetitionTypePrefix===(null==t?void 0:t.CompetitionTypePrefix)))||{AdditionalCashText:"",CompetitionId:0,CompetitionPictureTypeId:0,CompetitionTypePrefix:"",CtaAddToBasketPrizeId:0,CtaText:"",CtaTextValidated:"",CtaTicketValue:"",CurrencySymbol:"",EndDate:"",FormattedOriginalPrice:"",FormattedPrice:"",FormattedPriceWithoutCurrency:"",HasInstantWin:!1,ImageDoubleUrl:"",ImageUrl:"",IsMobileAppOnly:!1,IsMobileOnlyCompetition:!1,IsMultibuyEnabled:!1,IsRewardCompetition:!1,IsSinglePrizeMode:!1,MultiBuyLowerPercent:0,MultiBuyLowerQuantity:0,MultiBuyUpperPercent:0,MultiBuyUpperQuantity:0,NavigationColour:"",OverrideCompetitionTypeId:void 0,OverrideDiscountValue:0,PageUrl:"",PercentOffValue:0,PostalEntryText:"",SubtitleText:"",SubtitleTextValidated:"",SupportsMultibuy:!1,TicketText:"",Title:"",UseDailyPopupForCompetitionId:0})),b=e=>(0,s.GV)((t=>g(t,e))),v=(0,s.Dr)([(e,t)=>e.competitionsCategories.activeCompetitions,(e,t)=>t],((e,t)=>t&&0!==t.length?e.filter((e=>-1!==t.findIndex((t=>e.CompetitionId===(null==t?void 0:t.CompetitionId)||e.CompetitionTypePrefix===(null==t?void 0:t.CompetitionTypePrefix))))):[])),w=e=>(0,s.GV)((t=>v(t,e)))}}]);
2//# sourceMappingURL=4944.fee5379ea1622eb7b2cc.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.