PageSourceSearch

https://www.bengaluruairport.com/assets/myRaffles-CNnp2ktq.js

js bengaluruairport.com collected 2026-10-02 06:20:55 UTC 6,499 bytes, 147 lines download raw bytes

1import{f as e,h as i,b5 as l,W as n,b as o,u as t,r as s,N as a,y as r,w as d,a8 as c,c as x,a as u,j as p,L as h,T as m}from"./index-dqSqdwqf.js";const g=i.div`
2  overflow: hidden;
3  @media ${e.mobileS} {
4    padding: 24px 24px 0 24px;
5  }
6`,f=i(l)`
7  @media ${e.mobileS} {
8    color: #000;
9    font-size: 14px;
10    font-style: normal;
11    font-weight: 400;
12    line-height: 127%;
13  }
14`,v=i.div`
15  @media ${e.mobileS} {
16  }
17`,j=i.div`
18  @media ${e.mobileS} {
19    height: 200px;
20    width: 100%;
21    margin-top: 20px;
22    background-image: ${e=>`url(${null==e?void 0:e.bkImage})`};
23    background-position: center;
24    background-repeat: no-repeat;
25    background-size: contain;
26    cursor: pointer;
27  }
28`,b=i(n)`
29  @media ${e.mobileS} {
30    color: #273135;
31    font-size: 62px;
32    font-style: normal;
33    font-weight: 500;
34    line-height: normal;
35  }
36`,y=i.div`
37  display: flex;
38  justify-content: center;
39  gap: 20px;
40  align-items: center;
41  padding-top: 30px;
42`,w=i.div`
43  display: flex;
44  flex-direction: column;
45  align-items: center;
46  margin-top: 15px;
47`,_=i(l)`
48  color: #273135;
49  font-size: 15px;
50  font-weight: 500;
51  line-height: normal;
52  opacity: 0.8;
53`,k=i(l)`
54  color: #273135;
55  font-size: 18px;
56  font-weight: 500;
57  line-height: normal;
58  text-transform: capitalize;
59`,S=i(l)`
60  @media ${e.mobileS} {
61    color: #273135;
62    font-size: 18px;
63    font-weight: 500;
64    line-height: normal;
65  }
66`,$=i.div`
67  @media ${e.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`,N=i(l)`
81  @media ${e.mobileS} {
82    color: #000;
83    font-size: 14px;
84    font-style: normal;
85    font-weight: 400;
86    line-height: 127%;
87  }
88`,z=i.div`
89  @media ${e.mobileS} {
90    margin-top: 40px;
91  }
92`,L=i(n)`
93  @media ${e.mobileS} {
94    color: #000;
95    font-size: 18px;
96    font-style: normal;
97    font-weight: 700;
98    line-height: 127%;
99  }
100`,E=i.img`
101  @media ${e.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`,F=i(l)`
112  @media ${e.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`,I=i.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`,R=i.img`
128  @media ${e.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`,A=i(l)`
138  padding-bottom: 20px;
139  @media ${e.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 D(e){var i,l,n,D,B,C,G,H,P,U,M,O,T,W,q,J,K,Q;o();const{pushHistory:V}=t(),X=s.useContext(a),[Y]=r(["gwLoginData"]),[Z,ee]=s.useState(!0),[ie,le]=s.useState([]),[ne,oe]=s.useState([]);s.useEffect(()=>(X.hideFooterNavs(),X.showHeaderGoBack(),()=>{X.showFooterNavs(),X.hideHeaderGoBack()}),[]),s.useEffect(()=>{d("RAFFLE_PROFILE_PAGE_ENABLED")&&c.isMobile?te():V("/travellers/profile")},[]);const te=async()=>{var e,i;try{let l=x.api.pages.replace("{{pageId}}","raffle-profile-page"),n=await u.get(l),o=await n.json();200===n.status&&(le(o),(null==(e=null==Y?void 0:Y.gwLoginData)?void 0:e.userId)&&(async e=>{try{let i=x.api.getRaffles.replace("{{user_id}}",e),l=await u.get(i),n=await l.json();200===l.status&&(ee(!1),oe(n))}catch(i){console.log(i)}})(window.atob(null==(i=null==Y?void 0:Y.gwLoginData)?void 0:i.userId)))}catch(l){console.log(l)}};return Z?p.jsx(h,{}):p.jsx(g,{children:ne&&(null==ne?void 0:ne.length)>0?p.jsxs(p.Fragment,{children:[p.jsx(f,{children:p.jsx(m,{children:null==ie?void 0:ie.description})}),ne&&(null==ne?void 0:ne.length)>0&&(null==ne?void 0:ne.map(e=>{var i,l,n,o;return p.jsxs(v,{index:null==e?void 0:e.regId,children:[p.jsxs(j,{bkImage:"/assets/raffle-i9P024gr.svg",onClick:i=>{var l;l=null==e?void 0:e.raffleUrl,window.open(l,"_blank")},children:[p.jsxs(y,{children:[p.jsx(S,{children:p.jsx(m,{type:"bold",children:"Raffles"})}),p.jsx(b,{children:p.jsx(m,{type:"bold",children:null==e?void 0:e.raffleCount})}),p.jsx(S,{children:p.jsx(m,{type:"bold",children:"Raffles"})})]}),p.jsxs(w,{children:[p.jsx(_,{children:p.jsx(m,{children:null==ie?void 0:ie.name})}),p.jsx(k,{children:p.jsx(m,{type:"bold",children:null==e?void 0:e.userName})})]})]}),p.jsxs($,{children:[p.jsx(N,{children:p.jsxs(m,{children:[null==(l=null==(i=null==ie?void 0:ie.sub_menus)?void 0:i[0])?void 0:l.group,null==e?void 0:e.regAmount]})}),p.jsx(N,{children:p.jsx(m,{children:null==(o=null==(n=null==ie?void 0:ie.sub_menus)?void 0:n[0])?void 0:o.description})})]})]})})),p.jsxs(z,{children:[p.jsx(L,{children:p.jsx(m,{type:"extra-bold",children:null==(l=null==(i=null==ie?void 0:ie.content_blocks)?void 0:i[0])?void 0:l.link})}),p.jsx(E,{src:null==(C=null==(B=null==(D=null==(n=null==ie?void 0:ie.content_blocks)?void 0:n[0])?void 0:D.images)?void 0:B[0])?void 0:C.url}),p.jsx(F,{children:p.jsx(m,{children:null==(H=null==(G=null==ie?void 0:ie.content_blocks)?void 0:G[0])?void 0:H.redirectLink})})]}),p.jsx("div",{className:"daily-prize-layout",children:p.jsx(I,{children:(null==(U=null==(P=null==ie?void 0:ie.content_blocks)?void 0:P[1])?void 0:U.images)&&(null==(T=null==(O=null==(M=null==ie?void 0:ie.content_blocks)?void 0:M[1])?void 0:O.images)?void 0:T.length)>0&&(null==(J=null==(q=null==(W=null==ie?void 0:ie.content_blocks)?void 0:W[1])?void 0:q.images)?void 0:J.map(e=>p.jsx(R,{src:null==e?void 0:e.url})))})}),p.jsx(A,{children:p.jsx(m,{children:null==(Q=null==(K=null==ie?void 0:ie.content_blocks)?void 0:K[1])?void 0:Q.link})})]}):p.jsx(p.Fragment,{children:p.jsxs("div",{className:"no__results",style:{display:"block",padding:"20px",margin:"20px 30px 0 0"},children:[p.jsxs("div",{className:"error__heading",children:[p.jsx("div",{className:"error__image"}),p.jsxs("p",{className:"error__title",children:["Unfortunately, we do not have any raffles at this time for you"," "]})]}),p.jsxs("div",{className:"error__body",children:[p.jsx("p",{className:"error__subtitle"}),p.jsx("p",{className:"error__description"})]})]})})})}export{D 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.