1import{z as i,y as o,bN as p,V as P,w as J,r as d,bS as Q,ae as X,D as Z,Y as ee,c as F,a as H,j as e,K as se}from"./index-JgRY7mHr.js";import{u as ne,N as oe,T as r}from"./RootSwitch-B3B0o57V.js";const ie=o.div` 2 overflow: hidden; 3 @media ${i.mobileS} { 4 padding: 24px 24px 0 24px; 5 } 6`,te=o(p)` 7 @media ${i.mobileS} { 8 color: #000; 9 font-size: 14px; 10 font-style: normal; 11 font-weight: 400; 12 line-height: 127%; 13 } 14`,re=o.div` 15 @media ${i.mobileS} { 16 } 17`,le=o.div` 18 @media ${i.mobileS} { 19 height: 200px; 20 width: 100%; 21 margin-top: 20px; 22 background-image: ${g=>`url(${g==null?void 0:g.bkImage})`}; 23 background-position: center; 24 background-repeat: no-repeat; 25 background-size: contain; 26 cursor: pointer; 27 } 28`,ae=o(P)` 29 @media ${i.mobileS} { 30 color: #273135; 31 font-size: 62px; 32 font-style: normal; 33 font-weight: 500; 34 line-height: normal; 35 } 36`,ce=o.div` 37 display: flex; 38 justify-content: center; 39 gap: 20px; 40 align-items: center; 41 padding-top: 30px; 42`,de=o.div` 43 display: flex; 44 flex-direction: column; 45 align-items: center; 46 margin-top: 15px; 47`,pe=o(p)` 48 color: #273135; 49 font-size: 15px; 50 font-weight: 500; 51 line-height: normal; 52 opacity: 0.8; 53`,xe=o(p)` 54 color: #273135; 55 font-size: 18px; 56 font-weight: 500; 57 line-height: normal; 58 text-transform: capitalize; 59`,U=o(p)` 60 @media ${i.mobileS} { 61 color: #273135; 62 font-size: 18px; 63 font-weight: 500; 64 line-height: normal; 65 } 66`,ge=o.div` 67 @media ${i.mobileS} { 68 margin-top: 25px; 69 display: flex; 70 padding: 10px 24px; 71 flex-direction: column; 72 justify-content: center; 73 align-items: flex-start; 74 gap: 10px; 75 flex-shrink: 0; 76 border-radius: 8px; 77 background: rgba(84, 85, 85, 0.1); 78 min-height: 86px; 79 } 80`,T=o(p)` 81 @media ${i.mobileS} { 82 color: #000; 83 font-size: 14px; 84 font-style: normal; 85 font-weight: 400; 86 line-height: 127%; 87 } 88`,fe=o.div` 89 @media ${i.mobileS} { 90 margin-top: 40px; 91 } 92`,he=o(P)` 93 @media ${i.mobileS} { 94 color: #000; 95 font-size: 18px; 96 font-style: normal; 97 font-weight: 700; 98 line-height: 127%; 99 } 100`,me=o.img` 101 @media ${i.mobileS} { 102 display: flex; 103 justify-content: flex-start; 104 align-items: center; 105 flex-shrink: 0; 106 margin-top: 15px; 107 border-radius: 6px; 108 width: 100%; 109 border: 1.5px dashed #c99913; 110 } 111`,ue=o(p)` 112 @media ${i.mobileS} { 113 margin-top: 11px; 114 color: #000; 115 font-size: 14px; 116 font-style: normal; 117 font-weight: 400; 118 line-height: 127%; 119 } 120`,be=o.div` 121 margin-top: 25px; 122 display: flex; 123 justify-content: center; 124 overflow-x: auto; 125 justify-content: space-between; 126 gap: 10px; 127`,je=o.img` 128 @media ${i.mobileS} { 129 display: flex; 130 justify-content: flex-start; 131 align-items: center; 132 width: 100%; 133 margin-bottom: 15px; 134 border: 1.5px dashed #c99913; 135 border-radius: 6px; 136 } 137`,ye=o(p)` 138 padding-bottom: 20px; 139 @media ${i.mobileS} { 140 color: #000; 141 font-size: 14px; 142 font-style: normal; 143 font-weight: 400; 144 line-height: 127%; 145 margin-top: 11px; 146 } 147`;function ke(g){var u,b,j,y,w,_,v,k,R,I,N,S,L,$,z,E,C,A;J();const{pushHistory:G}=ne(),f=d.useContext(oe),m=d.useContext(Q),[x]=X(["gwLoginData"]),[W,M]=d.useState(!0),[s,K]=d.useState([]),[t,O]=d.useState([]);d.useEffect(()=>(f.hideFooterNavs(),f.showHeaderGoBack(),()=>{f.showFooterNavs(),f.hideHeaderGoBack()}),[]),d.useEffect(()=>{Z("RAFFLE_PROFILE_PAGE_ENABLED")&&ee.isMobile?Y():G("/travellers/profile")},[]);const V=async n=>{try{let l=F.api.getRaffles.replace("{{user_id}}",n),a=await H.get(l),c=await a.json();a.status===200&&(M(!1),O(c))}catch(l){console.log(l)}},Y=async()=>{var n,l;try{let a=F.api.pages.replace("{{pageId}}","raffle-profile-page"),c=await H.get(a),h=await c.json();c.status===200&&(K(h),(n=x==null?void 0:x.gwLoginData)!=null&&n.userId&&V(window.atob((l=x==null?void 0:x.gwLoginData)==null?void 0:l.userId)))}catch(a){console.log(a)}},q=n=>{window.open(n,"_blank")};return W?e.jsx(se,{}):e.jsx(ie,{children:t&&(t==null?void 0:t.length)>0?e.jsxs(e.Fragment,{children:[e.jsx(te,{children:e.jsx(r,{children:s==null?void 0:s.description})}),t&&(t==null?void 0:t.length)>0&&(t==null?void 0:t.map(n=>{var l,a,c,h,B,D;return e.jsxs(re,{index:n==null?void 0:n.regId,children:[e.jsxs(le,{bkImage:(a=(l=m==null?void 0:m.pages)==null?void 0:l.myRaffles)==null?void 0:a.raffle,onClick:we=>{q(n==null?void 0:n.raffleUrl)},children:[e.jsxs(ce,{children:[e.jsx(U,{children:e.jsx(r,{type:"bold",children:"Raffles"})}),e.jsx(ae,{children:e.jsx(r,{type:"bold",children:n==null?void 0:n.raffleCount})}),e.jsx(U,{children:e.jsx(r,{type:"bold",children:"Raffles"})})]}),e.jsxs(de,{children:[e.jsx(pe,{children:e.jsx(r,{children:s==null?void 0:s.name})}),e.jsx(xe,{children:e.jsx(r,{type:"bold",children:n==null?void 0:n.userName})})]})]}),e.jsxs(ge,{children:[e.jsx(T,{children:e.jsxs(r,{children:[(h=(c=s==null?void 0:s.sub_menus)==null?void 0:c[0])==null?void 0:h.group,n==null?void 0:n.regAmount]})}),e.jsx(T,{children:e.jsx(r,{children:(D=(B=s==null?void 0:s.sub_menus)==null?void 0:B[0])==null?void 0:D.description})})]})]})})),e.jsxs(fe,{children:[e.jsx(he,{children:e.jsx(r,{type:"extra-bold",children:(b=(u=s==null?void 0:s.content_blocks)==null?void 0:u[0])==null?void 0:b.link})}),e.jsx(me,{src:(_=(w=(y=(j=s==null?void 0:s.content_blocks)==null?void 0:j[0])==null?void 0:y.images)==null?void 0:w[0])==null?void 0:_.url}),e.jsx(ue,{children:e.jsx(r,{children:(k=(v=s==null?void 0:s.content_blocks)==null?void 0:v[0])==null?void 0:k.redirectLink})})]}),e.jsx("div",{className:"daily-prize-layout",children:e.jsx(be,{children:((I=(R=s==null?void 0:s.content_blocks)==null?void 0:R[1])==null?void 0:I.images)&&((L=(S=(N=s==null?void 0:s.content_blocks)==null?void 0:N[1])==null?void 0:S.images)==null?void 0:L.length)>0&&((E=(z=($=s==null?void 0:s.content_blocks)==null?void 0:$[1])==null?void 0:z.images)==null?void 0:E.map(n=>e.jsx(je,{src:n==null?void 0:n.url})))})}),e.jsx(ye,{children:e.jsx(r,{children:(A=(C=s==null?void 0:s.content_blocks)==null?void 0:C[1])==null?void 0:A.link})})]}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"no__results",style:{display:"block",padding:"20px",margin:"20px 30px 0 0"},children:[e.jsxs("div",{className:"error__heading",children:[e.jsx("div",{className:"error__image"}),e.jsxs("p",{className:"error__title",children:["Unfortunately, we do not have any raffles at this time for you"," "]})]}),e.jsxs("div",{className:"error__body",children:[e.jsx("p",{className:"error__subtitle"}),e.jsx("p",{className:"error__description"})]})]})})})}export{ke as default}; 148//# sourceMappingURL=myRaffles-BRLI8ssB.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.