1import{aa as s,M as a,ab as e,I as G,C as h,O as m,aD as S,aE as U,aG as M,aU as l,aJ as f,$ as o,aN as P}from"./vendor.B9elh-7E.js";import{u as T,j,w as N,a as A,$ as D,a0 as I,D as H,g8 as $,cr as z,W as E,a2 as O,g9 as F,R as J}from"./common.CkQ_lQJm.js";const L=""+new URL("gift-close.Dk_Ae7sU.svg",import.meta.url).href,Y={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function q(g,n){return s(),a("svg",Y,n[0]||(n[0]=[e("path",{fill:"currentColor",d:"M15.79 2.75H5.684C4.758 2.75 4 3.506 4 4.431v11.774h1.684V4.43H15.79zm2.526 3.364H9.053c-.927 0-1.684.756-1.684 1.681V19.57c0 .925.757 1.681 1.684 1.681h9.263c.927 0 1.684-.756 1.684-1.681V7.795c0-.925-.758-1.681-1.684-1.681m0 13.453H9.053V7.797h9.263V19.57z"},null,-1)]))}const K={render:q},Q={key:0,class:"h-full bg-surface-header text-sm"},X={key:1},Z={class:"relative"},ee=["src"],te={key:1,class:"h-44 w-full bg-surface-secondary"},oe=["src"],se={class:"p-5 text-center text-absolute-light"},re={class:"mt-5 flex h-14 items-center justify-between rounded-lg border-2 border-sub-header bg-surface-secondary px-3 py-3"},le={class:"flex items-center gap-2 text-base font-medium leading-5"},ae=["src"],ie=G({__name:"index",emits:["close","back"],setup(g,{emit:n}){const v=n,{isMobile:u}=T(),x=j(),y=N(),{$faroPushEvent:w}=A(),i=h(!0),r=h("form"),d=()=>{i.value=!1,v("close")},C=c=>{w({eventName:"sporty_com__wc_2026_redeem_gift_code_copy_click",attributes:{giftCode:c,utm_content:"redeem_wcp_gift_code_button"}}),F(c)},_=D(),k=m(()=>I(_.value,x.userProfileData)),{worldCupPlan:B}=H(),p=m(()=>$(B.value,u)),R=()=>{d(),y.push({name:J.HOME})},V=()=>{window.open(k.value,"_blank","noopener,noreferrer")},W=m(()=>u?r.value==="pass_bought"?"absolute bottom-0 h-[70vh] w-full overflow-y-auto rounded-t-lg bg-surface-header":r.value==="redirecting_sportybet"||r.value==="voucher_redeemed"?"absolute bottom-0 h-[40vh] w-full overflow-y-auto rounded-t-lg bg-surface-header":"absolute bottom-0 w-full max-h-[60vh] min-h-[40vh] overflow-y-auto rounded-t-lg bg-surface-header":"mx-auto w-full max-w-lg overflow-y-auto rounded-2xl bg-surface-header");return(c,t)=>(s(),S(o(P),{modelValue:i.value,"onUpdate:modelValue":t[1]||(t[1]=b=>i.value=b),"content-class":W.value,"content-transition":o(u)?"vfm-slide-down":"vfm-fade","overlay-transition":"vfm-fade",class:"fixed inset-0 z-50 flex items-end px-0 sm:items-center sm:justify-center sm:px-4","click-to-close":!0,onClosed:d},{default:U(()=>[e("div",{class:M(["h-full w-full text-primary",r.value==="pass_bought"?"bg-footer":"bg-surface-header"])},[r.value==="redirecting_sportybet"?(s(),a("div",Q,t[2]||(t[2]=[e("div",{class:"flex items-center border-b border-type2 bg-surface-footer px-5 py-4"},[e("h3",{class:"font-bold text-primary"},"Re-directing to SportyBet")],-1),e("div",{class:"flex h-[calc(100%-57px)] flex-col items-center justify-between px-5 pb-6 pt-10"},[e("div",{class:"mx-auto h-14 w-14 animate-spin rounded-full border-[6px] border-button-active border-t-transparent"}),e("p",{class:"mx-auto mt-8 max-w-[320px] text-sm leading-4 text-primary"},[l(" Get your World Cup Pass on SportyBet "),e("br"),l(" to unblock access to all 104 live matches ")]),e("p",{class:"font-medium text-secondary"},"Redirecting...")],-1)]))):(s(),a("div",X,[e("div",Z,[p.value?(s(),a("img",{key:0,src:p.value,alt:"World Cup Pass Activated",class:"h-44 w-full object-cover"},null,8,ee)):(s(),a("div",te)),t[3]||(t[3]=e("div",{class:"pointer-events-none absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-container-snackbar to-transparent"},null,-1)),e("button",{class:"absolute right-4 top-4 flex h-8 w-8 items-center justify-center rounded text-absolute-light hover:bg-container-type3-mask2",onClick:d},[f(o(z),{class:"h-5 w-5 fill-absolute-light"})]),e("img",{src:o(E),alt:"World Cup Pass",class:"absolute bottom-2 left-1/2 h-16 w-auto -translate-x-1/2"},null,8,oe)]),e("div",se,[t[7]||(t[7]=e("p",{class:"text-xl font-bold"},"World Cup Pass Activated ð",-1)),t[8]||(t[8]=e("p",{class:"mt-4 text-base leading-8 text-secondary"},[l(" You now have full access to every "),e("br"),l(" FIFA World Cup 2026 match on SportyTV. ")],-1)),t[9]||(t[9]=e("p",{class:"mt-5 text-sm text-secondary"},"R 25 Free Bet Gift Unlocked!",-1)),e("div",re,[e("div",le,[e("img",{src:o(L),alt:"",class:"h-5 w-5","aria-hidden":"true"},null,8,ae),t[4]||(t[4]=e("span",{class:"text-secondary"},"Gift Code:",-1)),t[5]||(t[5]=e("span",{class:"text-absolute-light"},"SG2T43J",-1))]),e("button",{class:"h-8 w-8 rounded p-1 text-highlight hover:bg-sub-header","aria-label":"Copy gift code",onClick:t[0]||(t[0]=b=>C("SG2T43J"))},[f(o(K),{class:"h-5 w-5 fill-highlight"})])]),t[10]||(t[10]=e("p",{class:"mt-4 text-sm text-secondary"},"Redeem the code on Gift Page of SportyBet.",-1)),e("button",{class:"mt-5 w-full rounded-sm bg-button-active py-3 text-sm font-medium leading-5 text-absolute-light",onClick:R}," Browse World Cup Matches "),e("button",{class:"mt-4 flex w-full items-center justify-center rounded-sm border border-button-active bg-transparent py-3 text-sm font-medium leading-5 text-highlight",onClick:V},[t[6]||(t[6]=l(" Redeem Gift Code in SportyBet ")),f(o(O),{class:"ml-2 h-5 w-5 text-highlight"})])])]))],2)]),_:1},8,["modelValue","content-class","content-transition"]))}});
1export{ie 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.