PageSourceSearch

https://www.betway.co.za/_nuxt/index.DoK0diBA.d6fa1844-c9f4-46d9-a6c6-08f75ac85cfc.js

js betway.co.za collected 2026-09-24 18:24:36 UTC 6,064 bytes, 1 lines download raw bytes

1import{d as e,g as a,o as t,l,h as n,c as r,a5 as o,w as i,J as s,t as u,m as d,i as c,j as v,k as g,b as p,F as f,r as m,n as h,G as C,D as w,a6 as x,a7 as b,a8 as y,p as k,a as L,z as _,A as j}from"./entry.9359e195-2951-4572-8cf4-3b1277d53f18.js";import{_ as I}from"./FeedsAvatarPickerModal.CN5jC8nO.abe217ee-e834-4ddc-9fa8-37702d5a7011.js";import{H as M}from"./hammer.BjT5yiop.0f7302b3-a861-4725-afee-7b4842dd47a6.js";const P={class:"w-full text-light-50"},H={key:0},q=["innerHTML"],A=e({__name:"OnboardingCard",props:{relativeUrl:{},tutorialId:{}},setup(e){const p=e,f=g(()=>p.tutorialId),{data:m,isLoading:h,refetch:C}=a({queryKey:["tutorialId",f],queryFn:()=>v({url:`?host={kenticoHost}&route=${p.relativeUrl}&lang={locale}`,type:"content"})});return(e,a)=>{var v,g;const p=o;return t(),l("div",P,[n(h)?c("",!0):(t(),l("div",H,[(null==(v=n(m))?void 0:v.content)?(t(),l("div",{key:0,innerHTML:null==(g=n(m))?void 0:g.content},null,8,q)):(t(),r(p,{key:1,severity:"warning"},{default:i(()=>[s(u(n(d)("tutorial-content-not-available")),1)]),_:1}))]))])}}}),F={class:"mt-[10px]"},S={class:"flex justify-center gap-1"},T=["onClick"],Z=e({__name:"Pagination",props:{currentPage:{default:1},totalPages:{}},emits:["handle-pagination"],setup(e,{emit:a}){const n=a;return(a,r)=>(t(),l("div",F,[p("div",S,[(t(!0),l(f,null,m(e.totalPages,a=>(t(),l("button",{key:a,class:h(["w-[8px] h-[8px] rounded-full",a===e.currentPage&&"w-[29px]",a===e.currentPage?"bg-light-200":"bg-dark-400"]),onClick:e=>n("handle-pagination",a)},null,10,T))),128))])]))}}),B={class:"text-xs pl-4 text-light-50"},E={class:"w-full flex items-end flex-col"},K={key:0,class:"flex flex-col items-center justify-center p-2 text-center"},U={class:"flex justify-center items-center w-full",id:"onboarding-card"},G=e({__name:"index",setup(e){const o=k(!1),s=k(),m=k(!1),h=C();w(()=>{const e=x("onboarding"),a=localStorage.getItem("onboarding-completed");void 0!==e.value||a?e.value&&!a?(localStorage.setItem("onboarding-completed","true"),m.value=!0):m.value=!(!e.value||!a):(b("onboarding",!0,7),localStorage.setItem("onboarding-completed","true"),m.value=!0)});const{data:P,isLoading:H}=a({queryKey:["onboarding-cards"],queryFn:()=>v({url:"/Tutorial/active/filtered?regionCode={brand}",type:"api",options:{method:"GET"}}),enabled:g(()=>h.loggedIn)}),q=k(1),F=e=>{"swipeleft"===e&&P.value&&q.value===P.value.length||"swiperight"===e&&1===q.value||(q.value="swipeleft"===e?q.value+1:q.value-1)};return(e,a)=>{var v;const g=j,C=I;return t(),l(f,null,[m.value&&n(P)&&n(P).length>0?(t(),l("div",{key:0,onClick:a[0]||(a[0]=e=>o.value=!0),class:"my-2 flex items-center gap-2 bg-dark-700 rounded-[50px]"},[p("div",B,u(n(d)("welcome-to-betway")),1),a[5]||(a[5]=p("div",{class:"bg-identity rounded-full w-10 h-10 flex justify-center items-center shadow-[0_4px_8px_0_rgba(0,0,0,0.15)]"},[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p("path",{d:"M14.8036 2.10742L13.1938 2.42749C13.1938 2.42749 14.0804 6.25789 16.7196 8.29639L17.5165 7.80127C15.1319 5.09602 14.8036 2.10742 14.8036 2.10742ZM17.4733 2.35425L16.289 2.46338C16.289 2.46338 16.5295 4.75492 17.7824 5.9043L18.6005 5.58203C17.4744 3.98416 17.4733 2.35425 17.4733 2.35425ZM9.73454 3.22656C9.59306 3.23895 9.46011 3.28591 9.36027 3.35327C9.09402 3.5329 8.76026 3.931 9.01676 4.42188C9.27326 4.91275 11.6354 9.38652 11.7509 9.68652C11.8664 9.98652 11.5827 10.1175 11.4323 9.96484C11.2819 9.81222 6.70513 5.31892 6.45988 5.09204C6.12988 4.78717 5.61861 4.88072 5.27848 5.22534C4.93836 5.56997 4.84877 6.0175 5.23014 6.4375C5.61152 6.8575 9.80781 11.232 10.0253 11.5103C10.2428 11.7885 9.90417 11.9936 9.65104 11.7937C9.39792 11.5938 4.63339 7.97395 4.42301 7.79395C4.08514 7.50482 3.49846 7.69435 3.25846 8.05322C3.01809 8.41172 2.98283 8.91944 3.33683 9.22656C3.59446 9.45006 8.39937 13.5167 8.77287 13.8599C9.14637 14.203 8.86376 14.5641 8.40739 14.3916C7.95101 14.2191 4.44486 12.5765 4.15348 12.4441C3.80061 12.284 3.40219 12.4615 3.23869 12.8594C3.07519 13.2572 3.17705 13.5643 3.4943 13.7852C3.81118 14.0064 8.89738 17.2122 8.89738 17.2122C8.89738 17.2122 10.8297 18.7939 11.9142 19.7288C13.0591 20.7154 14.8732 20.9739 14.8732 20.9739L19.6823 17.2253C20.2568 13.2473 19.5309 11.6427 21.4745 8.47803C21.4745 8.47803 20.2779 7.27882 18.8341 8.53882C17.8876 9.36494 16.9518 11.6047 16.9518 11.6047L14.3473 9.42358C14.3473 9.42358 10.6628 3.89328 10.4018 3.52466C10.2302 3.28231 9.97033 3.20591 9.73454 3.22656ZM3.7675 16.7786L3.32585 18.3599C3.32585 18.3599 5.88445 19.1688 8.79557 21.4998L9.4152 20.7461C8.03708 18.8328 3.7675 16.7786 3.7675 16.7786Z",fill:"white"})])],-1))])):c("",!0),(o.value||n(h).modals.tutorial)&&(null==(v=n(P))?void 0:v.length)?(t(),r(C,{key:1,active:o.value||n(h).modals.tutorial,contentBackgroun
1dClass:"bg-dark-800 rounded-t-2xl rounded-b-none p-3 md:w-[345px]",anchor:n(y)?"bottom":"top","content-class":"m-auto",transparent:!0,"content-padding":!1,onKeyPress:a[3]||(a[3]=e=>(e=>{switch(e){case"ArrowLeft":if(1===q.value)return;q.value=q.value-1;break;case"ArrowRight":if(P.value&&q.value===P.value.length)return;q.value=q.value+1}})(e)),onModalMounted:a[4]||(a[4]=e=>(()=>{try{const e=document.getElementById("onboarding-card");s.value=new M(e),s.value.on("swipeleft",()=>F("swipeleft")),s.value.on("swiperight",()=>F("swiperight"))}catch(e){console.log("Swipe Error",e)}})())},{default:i(()=>[p("div",null,[p("div",E,[p("div",{class:"flex items-center justify-center w-[28px] h-[28px] rounded-md bg-dark-600 float-right",onClick:a[1]||(a[1]=e=>(o.value=!1,void(h.modals.tutorial=!1)))},[L(g,{path:n(_),class:"w-[24px] h-[24px] fill-light-50 cursor-pointer"},null,8,["path"])])]),n(P)?(t(),l("div",K,[p("div",U,[L(A,{"relative-url":n(P)[q.value-1].relativeUrl,"tutorial-id":n(P)[q.value-1].tutorialId},null,8,["relative-url","tutorial-id"])]),L(Z,{"current-page":q.value,"total-pages":n(P).length,onHandlePagination:a[2]||(a[2]=e=>q.value=e)},null,8,["current-page","total-pages"])])):c("",!0)])]),_:1},8,["active","anchor"])):c("",!0)],64)}}});export{G as default};

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.