PageSourceSearch

https://www.lekkerbets.co.za/_next/static/chunks/66.e380af958f20be7a.js

js lekkerbets.co.za collected 2026-10-07 00:19:33 UTC 6,833 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66],{21166:function(e,o,t){var n,l,r,i,a,d,s;(e=t.nmd(e))&&e.exports,(l="object"==typeof t.g&&t.g).global===l||l.window,(r=function(e){this.message=e}).prototype=Error(),r.prototype.name="InvalidCharacterError",i=function(e){throw new r(e)},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=/[\t\n\f\r ]/g,s={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&i("The string to be encoded contains characters outside of the Latin1 range.");for(var o,t,n,l=e.length%3,r="",d=-1,s=e.length-l;++d<s;)n=(o=e.charCodeAt(d)<<16)+(e.charCodeAt(++d)<<8)+e.charCodeAt(++d),r+=a.charAt(n>>18&63)+a.charAt(n>>12&63)+a.charAt(n>>6&63)+a.charAt(63&n);return 2==l?(n=(o=e.charCodeAt(d)<<8)+e.charCodeAt(++d),r+=a.charAt(n>>10)+a.charAt(n>>4&63)+a.charAt(n<<2&63)+"="):1==l&&(n=e.charCodeAt(d),r+=a.charAt(n>>2)+a.charAt(n<<4&63)+"=="),r},decode:function(e){var o,t,n=(e=String(e).replace(d,"")).length;n%4==0&&(n=(e=e.replace(/==?$/,"")).length),(n%4==1||/[^+a-zA-Z0-9/]/.test(e))&&i("Invalid character: the string to be decoded is not correctly encoded.");for(var l=0,r="",s=-1;++s<n;)t=a.indexOf(e.charAt(s)),o=l%4?64*o+t:t,l++%4&&(r+=String.fromCharCode(255&o>>(-2*l&6)));return r},version:"1.0.0"},void 0!==(n=(function(){return s}).call(o,t,o,e))&&(e.exports=n)},66:function(e,o,t){"use strict";t.r(o),t.d(o,{SPORTSBOOK_PROVIDER_ID:function(){return y},default:function(){return C}});var n=t(52322),l=t(2784),r=t(5632),i=t(97125),a=t(51286),d=t(21723),s=t(21166),c=t.n(s),u=t(86275),v=t(37289),p=t(64622),g=t(65573),h=t(35599),f=t(16184),b=t(1131);let m={DELASPORT:"13",BETCONSTRUCT:"5"},k=(e,o,t)=>{var n;let r=(0,l.useMemo)(()=>{var n,l;let r=(null==e?void 0:e.SportProviderID)===m.DELASPORT;if(!r)return!1;let i=null!==(l=null==o?void 0:null===(n=o.Country)||void 0===n?void 0:n.JurisdictionId)&&void 0!==l?l:null==t?void 0:t.jurisdictionId;return 721!==i},[null==e?void 0:e.SportProviderID,null==o?void 0:null===(n=o.Country)||void 0===n?void 0:n.JurisdictionId,null==t?void 0:t.jurisdictionId]);return r},y={DELASPORT:"13",BETCONSTRUCT:"5"},S=e=>{let{publicConfigUrl:o}=e,{player:t,isLoading:s,isValidating:m}=(0,i.A)({}),{ua:y}=(0,d.e)(),{config:S,defaultData:C}=(0,p.useBrandConfig)(),{playMode:w,setPlayMode:I}=(0,g.usePlayModeContext)(),{showAuth:P}=(0,u.useAuthContext)(),T=(0,r.useRouter)(),{event:A}=T.query,D=(0,l.useRef)(null),[M,E]=(0,l.useState)(!1),L=!M,O=k(S,t,C),R=(null==y?void 0:y.isDesktop)?900:800,[x,_]=(0,l.useState)(!1);(0,l.useEffect)(()=>{s||m||E(!0)},[s,m]),(0,l.useEffect)(()=>{(null==w?void 0:w.value)!=="sports"&&(console.log("[Sportbet] Setting play mode to sports."),(0,h.tg)(f.v,g.PlaySportsMode),I(g.PlaySportsMode))},[]);let j=(0,l.useMemo)(()=>{let e=!O||(null==y?void 0:y.isMobile)?"100%":"105%",o=(null==y?void 0:y.isDesktop)?"900":"800",t=O&&(null==y?void 0:y.isMobile)?"-2rem":"0";return{iframeWidth:e,iframeHeight:o,iframeMarginLeft:t}},[O,null==y?void 0:y.isMobile,null==y?void 0:y.isDesktop]),F=(0,l.useMemo)(()=>{var e;let o="eng";switch(null==C?void 0:null===(e=C.languageCode)||void 0===e?void 0:e.toLowerCase()){case"de-de":o="ger";break;case"sv-sv":o="swe";break;case"ar-ar":o="arb";break;case"ja-jp":o="jpn"}return console.log("[Sportbet] Derived lang: ".concat(o)),o},[null==C?void 0:C.languageCode]),B=e=>{J(null==e?void 0:e.data)};(0,l.useEffect)(()=>(window.addEventListener("message",B),()=>{window.removeEventListener("message",B)}),[]);let N=(0,l.useMemo)(()=>{if(A)try{let e=c().decode(A),o=e.startsWith("/")?e:"/".concat(e);return console.log("Sportbet: Derived event path: ".concat(o)),o}catch(e){console.error("Sportbet: Failed to decode event query parameter:",e)}return""},[A]),q=(0,l.useMemo)(()=>{if(y&&!(0,b.n)(o)&&!(0,b.n)(S)){let e=(null==y?void 0:y.isDesktop)||(null==y?void 0:y.isMac),t=null,n=null;return O?o[t=e?"delaSportDesktop":"delaSportMobile"]&&(n="//".concat(o[t])):n="//sportsbook".concat((null==y?void 0:y.isDesktop)?"web":"mobile","new.casino-pp.net"),n}},[y,o,S,O]),J=(0,l.useCallback)(e=>{switch((null==e?void 0:e.type)==="toggle_event"&&(null==e?void 0:e.value.eventId)&&(null==e?void 0:e.value.gameId)&&(null==e?void 0:e.value.marketId)&&(null==e?void 0:e.value.sportAlias)&&function(){let e=document.querySelector(".sportbet-iframe");
1if(e){let o=e.getBoundingClientRect();window.scrollBy({top:o.bottom-590,behavior:"smooth"})}}(),null==e?void 0:e.type){case"applicationReady":case"guest":break;case"login":P(v.PopupKeys.login);break;case"register":P(v.PopupKeys.registration);break;case"deposit":T.push("/deposit").catch();break;case"balance":(0,a.JG)(["/api/player/getPlayerBalance",{PlayerId:null==t?void 0:t.PlayerId,Token:null==t?void 0:t.Token,ProviderID:null==S?void 0:S.SportProviderID}]).catch()}},[null==t?void 0:t.PlayerId,null==t?void 0:t.Token,null==S?void 0:S.SportProviderID]),K=(0,l.useCallback)(()=>{var e;let o=null===(e=D.current)||void 0===e?void 0:e.contentWindow;if(o){let e={site_id:1077,lang:F,oddType:0,showTeamLogos:!0,showCompetitionLogos:!1,authData:{auth_token:(null==t?void 0:t.Token)?null==t?void 0:t.Token:"anonymous",user_id:(null==t?void 0:t.PlayerId)?null==t?void 0:t.PlayerId:""}};console.info("[Sportbet] Partner Initial Config: ",e),o.postMessage({action:"initialConfig",data:e},"*")}},[F,null==t?void 0:t.Token,null==t?void 0:t.PlayerId]),U=(0,l.useCallback)(()=>{var e;let o=null===(e=D.current)||void 0===e?void 0:e.contentWindow;o&&F&&(console.info("[Sportbet] Sending preferences: ",{lang:F,OddsFormat:0,timeFormat:"12h"}),o.postMessage({action:"setPreferences",data:{lang:F,OddsFormat:0,timeFormat:"12h"}},"*"))},[F]),W=(0,l.useCallback)(()=>{setTimeout(()=>{K(),U()},100)},[K,U]),V=(0,l.useMemo)(()=>{if(L||!q)return null;let e="";return(O?(e="".concat(q,"?sb=").concat((null==t?void 0:t.Token)?null==t?void 0:t.Token:"logout"),A&&(e+="".concat(A?c().decode(A):""))):e="".concat(q).concat(N||"","?integrationMode=1&AuthToken=").concat(null==t?void 0:t.Token,"&UserId=").concat(null==t?void 0:t.PlayerId,"&OddType=0"),e)?(console.log("[Sportbet] Rendering Final Src: ".concat(e)),(0,n.jsx)("iframe",{src:e,ref:D,title:"Sportsbook",width:"100%",height:R,name:"sportbet-iframe",className:"sportbet-iframe",style:{display:"block",border:"none",opacity:x?1:0,transition:"opacity .3s ease"},onLoad:()=>{W(),_(!0)}})):(console.warn("[Sportbet] Final iframe src Error"),null)},[L,null==t?void 0:t.Token,null==t?void 0:t.PlayerId,q,O,N,null==y?void 0:y.isDesktop,null==y?void 0:y.isMobile,W,x]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{id:"sportsbookcontainer",className:"pp-sportsbook__Sportbet--component",style:{width:"100%",height:"".concat(R,"px"),marginLeft:null==j?void 0:j.iframeMarginLeft,position:"relative",overflow:"hidden"},children:[(!x||L)&&(0,n.jsx)("div",{className:"iframe-skeleton"}),q&&V]})})};var C=S}}]);

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.