1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18638],{35218:(e,t,i)=>{"use strict";i.d(t,{generateFootballTicketPDF:()=>D});var n=i(95155);i(12115);var l=i(4117),r=i(52769),o=i(78468),s=i(97565);let a=e=>"".concat(o.AY).concat(e),c="AFCDisplay",h="AFCText",d="AFCMatch",g="AFCRound",f="AFCCurrency",m=e=>[e,f];l.KQ.register({family:c,fonts:[{src:a("/fonts/football-ticket/SairaExtraCondensed-SemiBold.ttf"),fontWeight:600},{src:a("/fonts/football-ticket/SairaExtraCondensed-Bold.ttf"),fontWeight:700}]}),l.KQ.register({family:h,fonts:[{src:a("/fonts/football-ticket/SairaSemiCondensed-Regular.ttf"),fontWeight:400},{src:a("/fonts/football-ticket/SairaSemiCondensed-Medium.ttf"),fontWeight:500},{src:a("/fonts/football-ticket/SairaSemiCondensed-Bold.ttf"),fontWeight:700}]}),l.KQ.register({family:d,fonts:[{src:a("/fonts/football-ticket/BarlowCondensed-BlackItalic.ttf"),fontWeight:900,fontStyle:"italic"}]}),l.KQ.register({family:g,fonts:[{src:a("/fonts/football-ticket/Poppins-Bold.ttf"),fontWeight:700}]}),l.KQ.register({family:f,fonts:[{src:a("/fonts/football-ticket/NotoSansBengali-Taka.ttf"),fontWeight:700},{src:a("/fonts/football-ticket/NotoSansBengali-Taka.ttf"),fontWeight:900,fontStyle:"italic"}]}),l.KQ.registerHyphenationCallback(e=>[e]);let x=o._w,y=x.width,p=x.height,j=x.stub,u=x.center,b=x.borderInset,S={padLeft:x.centerPadLeft,divider:x.centerDivider,detailLeft:x.detailLeft,detailWidth:x.detailWidth,matchWidth:x.matchWidth,matchGutter:x.matchGutter},w=x.stubChipWidth,C=x.stubBoxWidth,T=l.vv.create({page:{flexDirection:"row",position:"relative"},trimRule:{position:"absolute",top:b,left:b,width:y-2*b,height:p-2*b,borderWidth:.5},centerFill:{position:"absolute",top:0,left:j,width:u,height:p}}),k=e=>{let{from:t,to:i}=e,r=e=>[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16)],[o,s,a]=r(t),[c,h,d]=r(i);return(0,n.jsx)(n.Fragment,{children:Array.from({length:64}).map((e,t)=>{let i=t/63,r=(e,t)=>Math.round(e+(t-e)*i);return(0,n.jsx)(l.Ss,{style:{position:"absolute",left:0,top:p/64*t,width:u,height:p/64+.5,backgroundColor:"rgb(".concat(r(o,c),", ").concat(r(s,h),", ").concat(r(a,d),")")}},t)})})},L=e=>{let{theme:t}=e;return"string"==typeof t.centerBg?(0,n.jsx)(l.Ss,{style:[T.centerFill,{backgroundColor:t.centerBg}]}):(0,n.jsx)(l.Ss,{style:T.centerFill,children:(0,n.jsx)(k,{from:t.centerBg.from,to:t.centerBg.to})})},F=e=>{let{color:t,length:i}=e;return(0,n.jsx)(l.Ss,{style:{flexDirection:"row",columnGap:o.F.gap,width:i,alignSelf:"center"},children:Array.from({length:(0,o.BR)(i)}).map((e,i)=>(0,n.jsx)(l.Ss,{style:{width:o.F.length,height:.7,backgroundColor:t}},i))})},z=e=>{let{view:t,height:i,labelSize:r,valueSize:o}=e,s=[["Section",t.section],["Row",t.row],["Seat",t.seat]];return(0,n.jsx)(l.Ss,{style:{flexDirection:"row",height:i,backgroundColor:t.theme.boxBg},children:s.map((e,i)=>{let[s,a]=e;return(0,n.jsxs)(l.Ss,{style:{flex:1,alignItems:"center",justifyContent:"center",paddingHorizontal:1,borderLeftWidth:.5*(0!==i),borderLeftColor:"#8C8C8C"},children:[(0,n.jsx)(l.EY,{style:{fontFamily:h,fontSize:r,color:t.theme.boxText,lineHeight:1.1},children:s}),(0,n.jsx)(l.EY,{style:{fontFamily:h,fontSize:o,color:t.theme.boxText,lineHeight:1.1,maxLines:1,textOverflow:"ellipsis"},children:a})]},s)})})},B=e=>{let{children:t,fontSize:i,color:r,top:o,letterSpacing:s}=e;return(0,n.jsx)(l.EY,{style:{position:"absolute",top:o,left:0,right:0,textAlign:"center",fontFamily:c,fontWeight:700,fontSize:i,lineHeight:1,color:r,letterSpacing:s},children:t})},W=e=>{let{view:t,width:i,variant:r}=e,s=x.chipHeight,a="stub"===r,{labelWidth:c,valueWidth:h,gap:d,labelSize:g,valueSize:f}=(0,o.lG)(t.categoryLabel,i,r),m={height:s,position:"relative"};return(0,n.jsxs)(l.Ss,{style:{flexDirection:"row",height:s},children:[(0,n.jsx)(l.Ss,{style:{...m,width:c,backgroundColor:t.theme.categoryChipBg},children:(0,n.jsx)(B,{fontSize:g,color:t.theme.categoryChipText,top:(0,o.Ze)("pdf",g,s),letterSpacing:x.chipLabelTracking,children:o.H9})}),(0,n.jsx)(l.Ss,{style:{width:d,height:s,backgroundColor:a?t.theme.frameBg:t.theme.categoryChipText}}),(0,n.jsx)(l.Ss,{style:{...m,width:h,backgroundColor:t.theme.categoryChipBg},children:(0,n.jsx)(B,{fontSize:f,color:t.theme.categoryChipText,top:(0,o.Ze)("pdf",f,s),children:t.categoryLabel})})]})},E=e=>{let{view:t}=e,i=t.theme,r={fontFamily:h,fontSize:6.4,color:i.frameText,textAlign:"center",lineHeight:1.25};return(0,n.jsxs)(l.Ss,{style:{width:j,height:p,paddingTop:13.6,paddingBottom:15.5,alignItems:"center"},children:[(0,n.jsx)(l.Ss,{style:{width:w,height:15.3,backgroundColor:i.stubNumberChipBg,alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(l.EY,{style:{fontFamily:h,fontSize:(0,o.Qn)(t.ticketNumberLabel,7,w-4,"text",4.4),color:i.stubNumberChipText},children:t.ticketNumberLabel})}),(0,n.jsxs)(l.Ss,{style:{width:C+18,flex:1,marginTop:3,marginBottom:5,alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsxs)(l.Ss,{style:{width:"100%",alignItems:"center"},children:[(0,n.jsx)(l.EY,{style:r,children:t.homeTeam}),t.awayTeam&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.EY,{style:[r,{fontSize:5.6}],children:"v"}),(0,n.jsx)(l.EY,{style:r,children:t.awayTeam})]}),(0,n.jsx)(l.Ss,{style:{width:"100%",marginTop:3},children:(0,n.jsx)(F,{color:i.frameRule,length:C+18})})]}),(0,n.jsxs)(l.Ss,{style:{width:"100%",alignItems:"center"},children:[(0,n.jsx)(l.EY,{style:r,children:t.dateLine}),(0,n.jsx)(l.EY,{style:r,children:t.kickOffLine}),(0,n.jsx)(l.Ss,{style:{width:"100%",marginTop:3},children:(0,n.jsx)(F,{color:i.frameRule,length:C+18})})]}),t.stadiumName&&(0,n.jsx)(l.EY,{style:r,children:t.stadiumName}),t.cityCountry&&(0,n.jsx)(l.EY,{style:r,children:t.cityCountry})]}),(0,n.jsxs)(l.Ss,{style:{width:C},children:[(0,n.jsx)(l.Ss,{style:{height:15.3,backgroundColor:i.boxBg,alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(l.EY,{style:{fontFamily:m(h),fontWeight:700,fontSize:(0,o.$Z)(t.priceLabel,8,C,"text"),color:i.boxText},children:t.priceLabel})}),(0,n.jsx)(l.Ss,{style:{marginTop:1.9},children:(0,n.jsx)(z,{view:t,height:15.3,labelSize:4.6,valueSize:5.4})}),(0,n.jsx)(l.Ss,{style:{marginTop:2},children:(0,n.jsx)(W,{view:t,width:C,variant:"stub"})})]})]})},v=e=>{let{view:t}=e,i=t.theme,r=a("white"===i.logo?"/images/football-ticket/afc-logo-white.png":"/images/football-ticket/afc-logo-dark.png"),s={fontFamily:h,fontSize:8.6,color:i.centerText,textAlign:"center",lineHeight:1.32};return(0,n.jsxs)(l.Ss,{style:{width:u,height:p,paddingTop:13,paddingBottom:16},children:[(0,n.jsxs)(l.Ss,{style:{flexDirection:"row",alignItems:"flex-start",height:26,paddingLeft:S.padLeft,paddingRight:4},children:[(0,n.jsx)(l.EY,{style:{fontFamily:c,fontWeight:700,fontSize:22.5,color:i.centerText,lineHeight:1,marginTop:-7.3},children:t.stageTitle}),(0,n.jsxs)(l.Ss,{style:{marginLeft:6,marginTop:2,flex:1},children:[(0,n.jsx)(l.EY,{style:{fontFamily:h,fontSize:7.6,color:i.centerText,lineHeight:1.2},children:t.competitionName}),(0,n.jsx)(l.EY,{style:{fontFamily:h,fontSize:7.6,color:i.centerText,lineHeight:1.2},children:t.season})]}),(0,n.jsx)(l._V,{src:r,style:{width:56.7,height:22.5,marginTop:-.9}})]}),(0,n.jsx)(l.EY,{style:{fontFamily:d,fontWeight:900,fontStyle:"italic",fontSize:(0,o.mq)(t.matchup,24.2),color:i.centerText,textAlign:"center",marginTop:9.7,lineHeight:1.1},children:t.matchup}),(0,n.jsxs)(l.Ss,{style:{flexDirection:"row",flex:1,marginTop:15.9},children:[(0,n.jsxs)(l.Ss,{style:{width:S.divider-S.padLeft,marginLeft:S.padLeft,paddingRight:10,borderRightWidth:.7,borderRightStyle:"dotted",borderRightColor:i.centerRule,alignItems:"center"},children:[(0,n.jsx)(l.EY,{style:[s,{marginTop:-3.4}],children:t.dateLineLong}),(0,n.jsx)(l.EY,{style:s,children:t.kickOffLine}),(0,n.jsx)(l.Ss,{style:{width:"72%",marginTop:4,marginBottom:4},children:(0,n.jsx)(F,{color:i.centerRule,length:(S.divider-S.padLeft)*.72})}),t.stadiumName&&(0,n.jsx)(l.EY,{style:s,children:t.stadiumName}),t.cityCountry&&(0,n.jsx)(l.EY,{style:[s,{marginTop:13.8}],children:t.cityCountry}),(0,n.jsx)(l.EY,{style:{fontFamily:g,fontWeight:700,fontSize:8.8,color:i.centerText,marginTop:"auto"},children:t.website})]}
1),(0,n.jsxs)(l.Ss,{style:{width:S.detailWidth,marginLeft:S.detailLeft-S.divider},children:[(0,n.jsx)(l.Ss,{style:{height:17.7,backgroundColor:i.centerNumberChipBg,alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(l.EY,{style:{fontFamily:h,fontSize:(0,o.Qn)(t.ticketNumberLabel,10,S.detailWidth-6,"text",6),color:i.centerNumberChipText},children:t.ticketNumberLabel})}),(0,n.jsxs)(l.Ss,{style:{flexDirection:"row",marginTop:5.6},children:[(0,n.jsxs)(l.Ss,{style:{width:S.matchWidth,height:x.matchHeight,backgroundColor:i.matchBoxBg,position:"relative"},children:[(0,n.jsx)(B,{fontSize:(0,o.nL)(x.matchLabelCap),color:i.matchBoxText,top:(0,o.PH)("pdf",(0,o.nL)(x.matchLabelCap),x.matchLabelTop),letterSpacing:.3,children:"MATCH"}),(0,n.jsx)(B,{fontSize:(0,o.nL)(x.matchNumberCap),color:i.matchBoxText,top:(0,o.PH)("pdf",(0,o.nL)(x.matchNumberCap),x.matchNumberTop),children:t.matchNumber})]}),(0,n.jsxs)(l.Ss,{style:{flex:1,marginLeft:S.matchGutter},children:[(0,n.jsx)(l.Ss,{style:{height:17.7,backgroundColor:i.boxBg,alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(l.EY,{style:{fontFamily:m(d),fontWeight:900,fontStyle:"italic",fontSize:(0,o.$Z)(t.priceLabel,11.5,S.detailWidth-S.matchWidth-S.matchGutter,"match"),color:i.boxText},children:t.priceLabel})}),(0,n.jsx)(l.Ss,{style:{marginTop:2.4},children:(0,n.jsx)(z,{view:t,height:17.7,labelSize:5.4,valueSize:6.4})})]})]}),(0,n.jsx)(l.Ss,{style:{marginTop:"auto"}
1,children:(0,n.jsx)(W,{view:t,width:S.detailWidth,variant:"center"})})]})]})]})},Y=e=>{let{view:t,children:i}=e;return(0,n.jsx)(l.Ss,{style:{width:j,height:p,alignItems:"center",justifyContent:"center",paddingHorizontal:12},children:null!=i?i:(0,n.jsxs)(n.Fragment,{children:[t.stageTitleLines.map(e=>(0,n.jsx)(l.EY,{style:{fontFamily:c,fontWeight:700,fontSize:17,color:t.theme.frameText,textAlign:"center",lineHeight:1.05},children:e},e)),(0,n.jsx)(l.EY,{style:{fontFamily:h,fontSize:6.6,color:t.theme.frameText,textAlign:"center",marginTop:4,lineHeight:1.2},children:t.competitionName}),(0,n.jsx)(l.EY,{style:{fontFamily:h,fontSize:6.6,color:t.theme.frameText,textAlign:"center",lineHeight:1.2},children:t.season})]})})},H=e=>{let{view:t}=e,i=t.theme;return(0,n.jsxs)(l.Ss,{style:{width:u,height:p,paddingTop:15,paddingBottom:12,paddingHorizontal:24},children:[(0,n.jsx)(l.EY,{style:{fontFamily:h,fontWeight:700,fontSize:6,color:i.centerText,lineHeight:1.2},children:t.termsHeading}),(0,n.jsx)(l.Ss,{style:{marginTop:6},children:t.terms.map((e,t)=>(0,n.jsxs)(l.Ss,{style:{flexDirection:"row",marginBottom:.8},children:[(0,n.jsxs)(l.EY,{style:{fontFamily:h,fontSize:5,color:i.centerText,width:11,textAlign:"right",lineHeight:1.22},children:[t+1,"."]}),(0,n.jsx)(l.EY,{style:{fontFamily:h,fontSize:5,color:i.centerText,flex:1,marginLeft:3,lineHeight:1.22},children:e})]},t))}),(0,n.jsx)(l.EY,{style:{fontFamily:g,fontWeight:700,fontSize:8.8,color:i.centerText,textAlign:"center",marginTop:"auto"},children:t.website})]})},N=43/259,A=e=>{let t,{view:i,qr:r}=e;return(0,n.jsxs)(Y,{view:i,children:[(0,n.jsx)(l.Ss,{style:{backgroundColor:"#FFFFFF",padding:3},children:(0,n.jsx)(l._V,{src:r,style:{width:62,height:62}})}),(0,n.jsx)(l.Ss,{style:{backgroundColor:i.theme.stubNumberChipBg,paddingVertical:2.5,paddingHorizontal:8,marginTop:6},children:(0,n.jsx)(l.EY,{style:{fontFamily:c,fontWeight:700,fontSize:7,color:i.theme.stubNumberChipText,textAlign:"center"},children:i.gateLabel})}
1),(0,n.jsx)(l._V,{src:(t=i.theme.stubLogo,a("/images/football-ticket/eventa-logo-".concat(t,".png"))),style:{width:44,height:44*N,marginTop:6}})]})},I=e=>{let{view:t,qr:i}=e,r=t.theme,o={width:y,height:p};return(0,n.jsxs)(l.yo,{title:"".concat(t.matchup," â ").concat(t.categoryLabel),author:t.competitionName,children:[(0,n.jsxs)(l.YW,{size:o,style:[T.page,{backgroundColor:r.frameBg}],children:[(0,n.jsx)(L,{theme:r}),(0,n.jsx)(E,{view:t}),(0,n.jsx)(v,{view:t}),(0,n.jsx)(E,{view:t}),(0,n.jsx)(l.Ss,{style:[T.trimRule,{borderColor:r.borderLine}]})]}),(0,n.jsxs)(l.YW,{size:o,style:[T.page,{backgroundColor:r.frameBg}],children:[(0,n.jsx)(L,{theme:r}),(0,n.jsx)(Y,{view:t}),(0,n.jsx)(H,{view:t}),i?(0,n.jsx)(A,{view:t,qr:i}):(0,n.jsx)(Y,{view:t,children:null}),(0,n.jsx)(l.Ss,{style:[T.trimRule,{borderColor:r.borderLine}]})]})]})};async function R(e){if(!o.z6||!e)return"";try{return await r.toDataURL(e,{width:320,margin:0,errorCorrectionLevel:"M",color:{dark:"#000000",light:"#ffffff"}})}catch(e){return""}}async function D(e){let t=(0,s.v2)(e),i=await R(t.ticketNumber);return(0,l.x8)((0,n.jsx)(I,{view:t,qr:i})).toBlob()}},50477:()=>{}}]);
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.