PageSourceSearch

https://www.anglersatlas.com/chunk-NI2Z7BVK.js

js anglersatlas.com collected 2026-09-24 09:49:03 UTC 228,446 bytes, 31 lines download raw bytes

1import{a as Bi}from"./chunk-67QAIPUI.js";import{a as it,c as Ui,e as ot}from"./chunk-NJDIA2IK.js";import{a as kt}from"./chunk-P2YML4GG.js";import{a as Vi,b as Li,c as Ai,d as Tt,e as nt,f as Ni,g as $e,h as $i}from"./chunk-PUYRJ4SY.js";import{a as Ri,b as Fi}from"./chunk-P6Y5LLMX.js";import{k as Di,m as Zt,n as Ne,o as ji}from"./chunk-AIPTT6E6.js";import{c as Si}from"./chunk-3NWUNUBD.js";import{a as Ei,b as Ii,c as zi}from"./chunk-2OPGQJHJ.js";import{a as wt,i as ki,j as yt}from"./chunk-K7TINWZE.js";import{c as yi}from"./chunk-7JB6T3I6.js";import{a as wi,b as et}from"./chunk-WHLGMNKA.js";import{a as tt}from"./chunk-N5V2C4SQ.js";import{a as Ln,b as Pi,c as Mi}from"./chunk-ONZVM4XP.js";import{b as di,c as mi,d as gi}from"./chunk-2AN4ZCNO.js";import{b as bi}from"./chunk-JEMONHQM.js";import"./chunk-SWR7JL7V.js";import"./chunk-IAZDB6VL.js";import{m as ci,n as li,o as Oi}from"./chunk-KAKO52GE.js";import{c as Ye,d as Le,g as ve,h as Ke,i as Ae}from"./chunk-AWUUL44R.js";import{c as pi}from"./chunk-DRMCPI7M.js";import{i as J,k as vi,t as Oe}from"./chunk-Q3PFVVZX.js";import{c as z}from"./chunk-3RPMSBUF.js";import"./chunk-FGXOOZZF.js";import"./chunk-FNANIXVY.js";import{b as Ut}from"./chunk-EKLQHDWR.js";import{a as _i,b as le,c as pe,d as Q,e as K}from"./chunk-KTHZLA5Q.js";import{a as de,c as H,d as j}from"./chunk-YETJTUOB.js";import{c as Mt,d as Ht}from"./chunk-ZNIBB2F6.js";import{a as Ti}from"./chunk-TCG5YMVU.js";import{a as Wt,b as Ie,c as Je}from"./chunk-NHANKJWH.js";import{Ba as Xe,Ea as Ci,Sa as fi,Ua as me,j as ai,k as ui}from"./chunk-T6Y44UPB.js";import"./chunk-7QBUNFP7.js";import"./chunk-QIA2WY3K.js";import{Bb as xi,b as Ot,f as Ve,g as An,h as Nn,i as $n,j as Bt,ub as Bn,xb as qt,zb as hi}from"./chunk-WBC5IVJU.js";import{Q as ae,T as Un,V as ce,W as si}from"./chunk-D3WE4SYR.js";import{v as xe,x as X}from"./chunk-TWCL2ESP.js";import{A as Xn,B as Jn,C as ei,D as ti,G as ni,I as ii,K as oi,L as ri,c as Hn,d as qn,h as Wn,i as Zn,k as Qn,p as Gn,q as Yn,z as Kn}from"./chunk-7D74GDEE.js";import{$a as y,$c as Sn,$d as Ee,Ab as xn,Ac as Tn,B as st,Ba as dn,Bb as vn,Bd as Pt,C as pt,Cb as Z,Cc as oe,Db as O,E as Te,Ed as Nt,F as dt,Ga as De,Gb as C,Ha as T,Ia as mn,Ib as p,Ic as ue,J as rn,Ja as gn,Jc as kn,La as r,Ld as Fn,Mb as te,Md as jn,N as mt,Nb as $,Nd as Vn,O as an,Ob as B,Pa as _n,Qa as k,Qb as bn,Rb as Pn,Sb as R,T as gt,Ta as ht,Tb as ge,Ub as D,Va as I,Vb as On,W as be,Wa as xt,Wb as Mn,Xa as vt,Xb as l,Ya as un,Yb as v,Z as cn,Zb as x,Zd as je,_b as Y,ae as he,b as W,ba as ln,bd as En,ca as _t,cd as In,db as Cn,de as $t,ed as re,fa as P,fd as Ce,h as en,hb as fn,hd as fe,ia as f,ic as wn,id as zn,ja as h,jc as Se,k as tn,ka as se,l as nn,la as Ge,mb as m,mc as Re,md as Fe,n as lt,na as ut,nb as hn,nc as yn,nd as bt,ob as g,oc as Pe,pa as Ct,pc as ee,pd as Dn,q as L,qa as ft,qb as G,r as ke,rb as S,rd as Rn,sa as F,sb as E,ta as sn,tb as d,tc as b,ub as o,uc as w,vb as a,vc as _e,wa as ze,wb as _,xc as Lt,ya as pn,yc as U,z as on,zc as At}from"./chunk-ODKVSH6Q.js";import{a as ye,b as Qe,f as Vt}from"./chunk-SE5JAREP.js";var _o=(t,c)=>c.id;function uo(t,c){if(t&1&&(l(0),b(1,"fullnameOrUsername")),t&2){let e=c.$implicit,n=c.$index,i=c.$count;Y(" ",w(1,2,e),"",n===i-1?"":", "," ")}}function Co(t,c){if(t&1&&(o(0,"span",6),l(1),S(2,uo,2,4,null,null,_o),a()),t&2){let e=p();r(),x(" ",e.division.captains.length>1?"Captains":"Captain",": "),r(),E(e.division.captains)}}var Hi=(()=>{class t{constructor(){this.index=0}ngOnChanges(e){if(e.division){let n=e.division.currentValue,i=n.members==1?"member":"members",s=n.catches==1?"catch":"catches";this.subtitle=`${n.members} ${i} \u2022 ${n.catches} ${s}`}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-division-item"]],hostAttrs:[1,"tailwind"],inputs:{division:"division",index:"index"},features:[ze],decls:10,vars:6,consts:[[3,"noMargin"],["appCardContent","",3,"cardPaddingHorizontal","cardPaddingVertical"],[1,"flex","justify-between","items-center"],[1,"grow","flex","flex-col"],[1,"text-text-icon-default","md:line-clamp-2","md:h-[48px]"],[1,"text-text-icon-tertiary"],[1,"text-sm","text-text-icon-tertiary","mt-2"],["name","arrow-right",1,"shrink-0"]],template:function(n,i){n&1&&(o(0,"app-card",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),l(5),a(),o(6,"span",5),l(7),a(),m(8,Co,4,1,"span",6),a(),_(9,"svg-icon",7),a()()()),n&2&&(d("noMargin",!0),r(),d("cardPaddingHorizontal",20)("cardPaddingVertical",20),r(4),v(i.division.name),r(2),v(i.subtitle),r(),g(i.division.captains.length?8:-1))},dependencies:[j,H,ce,J],encapsulation:2})}}return t})();var fo=(t,c)=>c.id;function ho(t,c){if(t&1){let e=O();o(0,"app-tournament-division-item",4),C("click",function(){let i=f(e).$implicit,s=p();return h(s.onClick(i))}),a()}if(t&2){let e=c.$implicit,n=c.$index;d("division",e)("index",n)}}function xo(t,c){t&1&&_(0,"app-spinner",3),t&2&&d("size",24)}var St=(()=>{class t{constructor(e,n,i){this.tournamentService=e,this.overlay=n,this.dialogService=i,this.loading=F(!0)}ngOnChanges(e){"tournament"in e&&this.loadDivisions()}loadDivisions(){this.title=qt(this.tournament.division_type_pluralized),this.loading.set(!0),this.tournamentService.getDivisions({tournament_id:this.tournament.id}).pipe(L(e=>e.body)).subscribe({next:e=>{this.loading.set(!1),this.divisions=e},error:e=>{this.loading.set(!1),console.dir(e)}})}onClick(e){let n=this.tournament,i=new K;i.closeOnNavigation=!0,i.closeable=!0,i.overlayConfig={panelClass:["scrollable","full-size"],hasBackdrop:!0,positionStrategy:this.overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:this.overlay.scrollStrategies.block()},i.data={tournament:n,division_name:e.name,division_id:e.id},this.dialogService.open(Tt,i,!0)}static{this.\u0275fac=function(n){return new(n||t)(k(z),k(ae),k(Q))}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-divisions"]],hostAttrs:[1,"tailwind"],inputs:{tournament:"tournament"},features:[ze],decls:7,vars:2,consts:[[1,"mt-4","grid","gap-2","md:grid-cols-2"],[3,"division","index"],[1,"col-span-2","h-6","flex","items-center","justify-center"],[3,"size"],[3,"click","division","index"]],template:function(n,i){n&1&&(o(0,"h3"),l(1),a(),o(2,"div",0),S(3,ho,1,2,"app-tournament-division-item",1,fo),o(5,"div",2),m(6,xo,1,1,"app-spinner",3),a()()),n&2&&(r(),v(i.title),r(2),E(i.divisions),r(3),g(i.loading()?6:-1))},dependencies:[X,Hi],encapsulation:2})}}return t})();function Gt(t,c=100){return t({"per-page":c}).pipe(mt(e=>{let n=parseInt(e.headers.get("X-Pagination-Page-Count"),10),i=parseInt(e.headers.get("X-Pagination-Current-Page"),10);return i<n?t({page:`${i+1}`,"per-page":c}):tn}),L(e=>e.body),dt((e,n)=>e.concat(n)))}var Et=(()=>
1{class t{constructor(){this.intervalSubject=new en,this.intervalSubscription=W.EMPTY,this.tournamentApiService=P(z),this.appRef=P(Cn),this.zone=P(ft)}static urlTo(e){return["/event",e.id,e.slug]}ngOnDestroy(){this.intervalSubscription.unsubscribe(),this.intervalSubject.complete()}initializeFrom(e){this.intervalSubject.next(-1),this.intervalSubscription=this.appRef.isStable.pipe(an(s=>s),be(()=>on(6e4))).subscribe(()=>this.zone.run(()=>this.intervalSubject.next(1)));let i=e.data.pipe(L(({tournament:s})=>s));this.tournament$=ke([this.intervalSubject,i]).pipe(be(([s,u])=>s<0?lt(u):this.tournamentApiService.getTournament(u.id)),st(s=>s!=null),L(s=>ki(s)),gt(1)),this.liveStatus$=this.tournament$.pipe(L(yt),L(s=>s?.status),gt(1)),this.joinButton$=ke([this.tournament$,this.liveStatus$]).pipe(L(([s,u])=>t.buildTournamentJoinButton(s,u)),gt(1))}triggerRefresh(){this.intervalSubject.next(1)}static buildTournamentJoinButton(e,n){switch(e.join_status){case"ACCEPTED":{let s,u=e.show_share_button;return n==="ACTIVE"?s=`Registered as ${e.join_entry.title}`:n==="BEFORE"?s="Waiting for event to start":(s="Event is over",u=!1),{buttonText:"Register for event",statusText:s,disabled:!0,showShare:u}}case"REJECTED":return{buttonText:"Register for event",statusText:"Application rejected",disabled:!0,showShare:!1};case"PENDING_APPROVAL":return{buttonText:"Register for event",statusText:"Application pending approval",disabled:!0,showShare:!1}}if(!e.joinable||e.is_entry_hidden)return null;if(e.registrations_accepted_until){let s=Bt(e.registrations_accepted_until,e.iana_timezone);if(Ve.now()>=s)return{buttonText:"Register for Event",statusText:"Closed",disabled:!0,showShare:!1}}return n==="ACTIVE"&&!e.can_join_when_live||n==="AFTER"?null:e.max_paid_entrants!==null&&e.max_paid_entrants>0&&e.max_paid_entrants<=e.current_paid_entrants?{buttonText:"Register for Event",statusText:"Event is full",disabled:!0,showShare:!1}:{buttonText:"Register for Event"}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=ln({token:t,factory:t.\u0275fac})}}return t})();var yo=["input"],To=(t,c)=>c.name;function ko(t,c){if(t&1&&(o(0,"a",6),_(1,"img",10),l(2),a()),t&2){let e=c.$implicit,n=p();d("href",e.linkBuilder(n.data.data),T),r(),d("src",Se("/assets/share/",e.icon,".svg"),T),r(),x(" ",e.name," ")}}var So=[{name:"Facebook",icon:"facebook",linkBuilder:t=>`https://www.facebook.com/share_channel/?link=${encodeURIComponent(t.url)}&app_id=253715262338962&source_surface=external_reshare&display=popup&hashtag`},{name:"X",icon:"x",linkBuilder:t=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(t.url)}&text=${encodeURIComponent(t.title)}`},{name:"Email",icon:"email",linkBuilder:t=>`mailto:?subject=${encodeURIComponent(t.title)}&body=${encodeURIComponent(t.url)} ${encodeURIComponent(t.text)}`},{name:"Gmail",icon:"gmail",linkBuilder:t=>`https://mail.google.com/mail/?view=cm&su=${encodeURIComponent(t.title)}&body=${encodeURIComponent(t.url)}`}],Zi=(()=>{class t{static open(e,n,i,s){let u=new K;u.overlayConfig={panelClass:["scrollable","full-size-small"],hasBackdrop:!0,positionStrategy:s.position().global().centerHorizontally().centerVertically(),scrollStrategy:s.scrollStrategies.block()},u.data={data:n,tournament:e},i.open(t,u)}constructor(e,n){this.data=e,this.dialogRef=n,this.shareList=So}ngOnInit(){}onClickClose(){this.dialogRef.close()}onClickCopy(){this.input.nativeElement.select(),this.input.nativeElement.setSelectionRange(0,99999),navigator.clipboard.writeText(this.input.nativeElement.value),Materialize.toast("Link copied to clipboard!",3e3)}static{this.\u0275fac=function(n){return new(n||t)(k(pe),k(le))}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-share-overlay"]],viewQuery:function(n,i){if(n&1&&te(yo,5),n&2){let s;$(s=B())&&(i.input=s.first)}},standalone:!1,decls:14,vars:3,consts:[["input",""],[1,"content-container"],[3,"title"],["title","Close",1,"material-icons",3,"click"],["appCardContent","",1,"card-content"],[1,"socials"],["target","_blank",1,"social",3,"href"],[1,"share-section"],[1,"browser-default",3,"value","readonly"],[1,"btn","primary-btn","copy-btn",3,"click"],[3,"src"]],template:function(n,i){n&1&&(o(0,"div",1)(1,"app-card")(2,"app-card-header",2)(3,"i",3),C("click",function(){return i.onClickClose()}),l(4,"close"),a()(),o(5,"div",4)(6,"div",5),S(7,ko,3,4,"a",6,To),a(),o(9,"div",7),_(10,"input",8,0),o(12,"button",9),C("click",function(){return i.onClickCopy()}),l(13,"Copy"),a()()()()()),n&2&&(r(2),d("title",i.data.tournament.share_button_text),r(5),E(i.shareList),r(3),d("value",i.data.data.url)("readonly",!0))},dependencies:[j,H,de],styles:[`app-card-header[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:hover{cursor:pointer}.card-content[_ngcontent-%COMP%]{width:100%;max-width:400px;background:#f8f8f8}input.browser-default[_ngcontent-%COMP%]{appearance:none;height:40px;border:1px solid #e2e5ed;box-sizing:border-box;box-shadow:none;border-radius:4px;font-size:16px;line-height:20px;padding:0 15px;background:#fff;width:100%}.share-section[_ngcontent-%COMP%]{display:flex;gap:4px}.socials[_ngcontent-%COMP%]{display:flex;gap:2px;margin-bottom:8px}.social[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;align-items:center;color:#414966;padding:8px}.social[_ngcontent-%COMP%]:hover{background:#eaedf3;border-radius:4px}
2/*# sourceMappingURL=share-overlay.component-P7FAEA6A.css.map */`]})}}return t})();var Eo=t=>({"bg-text-icon-tertiary/20 rounded h-6 animate-pulse":t}),Io=t=>({"bg-text-icon-tertiary/20 rounded h-6 animate-pulse max-w-[50%]":t});function zo(t,c){t&1&&_(0,"svg-icon",4)}function Do(t,c){if(t&1){let e=O();o(0,"button",16),C("click",function(){f(e);let i=p();return h(i.onClickNextPrevMedia(-1))}),_(1,"svg-icon",17),a(),o(2,"button",18),C("click",function(){f(e);let i=p();return h(i.onClickNextPrevMedia(1))}),_(3,"svg-icon",19),a()}}function Ro(t,c){if(t&1&&_(0,"aa-event-post-media-badge",22),t&2){let e=p(2);d("type",e.media().type)("isVideo",e.media().isVideo)("showLabel",!1)("background",!1)}}function Fo(t,c){if(t&1&&(o(0,"div",5),_(1,"img",20),o(2,"span",21),l(3),a(),m(4,Ro,1,4,"aa-event-post-media-badge",22),a()),t&2){let e,n=p();
2r(),D("rounded-sm",n.item().isEvent)("rounded-full",!n.item().isEvent),d("src",n.item().headerImgSrc,T),r(2),v(n.item().headerName),r(),g((e=n.media())!=null&&e.type?4:-1)}}function jo(t,c){t&1&&(o(0,"div",6),_(1,"svg-icon",23),l(2," Pinned "),a())}function Vo(t,c){if(t&1&&(o(0,"div",9)(1,"div",24),_(2,"svg-icon",25),a(),o(3,"span",26),l(4),a()()),t&2){let e=p();d("title",e.item().species),r(4),v(e.item().species)}}function Lo(t,c){if(t&1&&(o(0,"div",10)(1,"div",24),_(2,"svg-icon",25),a(),o(3,"span",26),l(4),b(5,"number"),a()()),t&2){let e=p();d("title",e.catchLength()),r(4),Y("",_e(5,3,e.catchLength(),"1.0-1"),"\xA0",e.lengthUnitPretty())}}function Ao(t,c){t&1&&(o(0,"div",11)(1,"div",27),_(2,"svg-icon",28),a(),o(3,"span",26),l(4,"User Post"),a()())}function No(t,c){t&1&&(o(0,"div",11)(1,"div",27),_(2,"svg-icon",29),a(),o(3,"span",26),l(4,"Organizer Post"),a()())}function $o(t,c){t&1&&(o(0,"div",11)(1,"div",27),_(2,"svg-icon",29),a(),o(3,"span",26),l(4,"Event Post"),a()())}function Bo(t,c){if(t&1&&(l(0),b(1,"toDateTime"),b(2,"dateTime")),t&2){let e=p();x(" ",_e(2,4,_e(1,1,e.item().catchCaughtAt??e.item().createdAt,e.timezone()),e.dateTimeFormat)," ")}}var It=(()=>{class t{constructor(){this.item=ue.required(),this.timezone=ue(Ve.now().zone),this.lengthUnit=ue("CM"),this.clickMedia=new Ct,this.mediaIndex=F(null),this.media=oe(()=>{let e=this.item(),n=this.mediaIndex();return n!=null?e.media[n]:null}),this.catchLength=oe(()=>{let e=this.item(),n=this.lengthUnit(),i;if(e.catchLength!=null){let s=n=="IN"?.3937:1;i=e.catchLength*s}return i}),this.lengthUnitPretty=oe(()=>this.lengthUnit()=="IN"?"in.":"cm"),this.dateTimeFormat="MMM d, yyyy",sn(()=>{let n=this.item().media?.length?0:null;this.mediaIndex.set(n)})}onClickNextPrevMedia(e){let n=this.item(),s=this.mediaIndex()+e;s>=n.media.length?s=0:s<0&&(s=n.media.length-1),this.mediaIndex.set(s)}onClickMedia(){let e=this.mediaIndex();e!=null&&this.clickMedia.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["aa-event-feed-item"]],hostAttrs:[1,"tailwind"],inputs:{item:[1,"item"],timezone:[1,"timezone"],lengthUnit:[1,"lengthUnit"]},outputs:{clickMedia:"clickMedia"},decls:20,vars:15,consts:[[1,"tw-card"],[1,"relative","aspect-square","overflow-hidden","rounded-t-md","hover:cursor-pointer"],[1,"group","absolute","inset-0","bg-neutral-400/20",3,"click"],["onload","this.style.opacity = 1",1,"size-full","object-cover","object-center","opacity-0","transition-opacity",3,"src"],["name","play","svgClass","size-12 fill-white/50 group-hover:fill-white transition-colors pointer-events-none",1,"absolute","inset-0","flex","items-center","justify-center","pointer-events-none"],[1,"absolute","inset-x-0","bottom-0","h-[60px]","px-4","flex","items-center","overflow-hidden","bg-gradient-to-t","to-green-600/0","from-neutral-1000"],[1,"absolute","right-2","top-2","px-2","py-1","flex","items-center","gap-1","text-white","bg-neutral-1000/30","rounded-full"],[1,"w-full","shrink-0","p-4","flex","flex-col","gap-y-2"],[1,"h-6","flex","items-center","gap-x-2",3,"ngClass"],[1,"grow","flex","gap-x-1","items-center",3,"title"],[1,"grow","flex","gap-x-1","items-center","overflow-x-hidden",3,"title"],[1,"grow","flex","gap-x-1","items-center"],[1,"h-6","flex","gap-x-1","items-center","flex-nowrap"],["name","clock","svgClass","shrink-0 size-6 fill-text-icon-tertiary"],[1,"grow"],[1,"w-full","truncate","text-text-icon-tertiary",3,"ngClass"],["type","button",1,"absolute","tw-btn","tw-btn-icon","left-4","inset-y-0","my-auto","bg-neutral-600/50","hover:bg-neutral-600/80",3,"click"],["name","arrow-left","svgClass","size-6 fill-white"],["type","button",1,"absolute","tw-btn","tw-btn-icon","right-4","inset-y-0","my-auto","bg-neutral-600/50","hover:bg-neutral-600/80",3,"click"],["name","arrow-right","svgClass","size-6 fill-white"],[1,"shrink-0","size-8","mr-2","pointer-events-none",3,"src"],[1,"grow","text-white","truncate","pointer-events-none"],[3,"type","isVideo","showLabel","background"],["name","thumb-tack","svgClass","size-6 fill-white"],[1,"rounded-full","size-5","bg-green-600","flex","items-center","justify-center"],["name","checkmark","svgClass","size-5 fill-white"],[1,"truncate"],[1,"rounded-full","size-5","bg-neutral-400","flex","items-center","justify-center"],["name","profile","svgClass","size-4 fill-white"],["name","trophy","svgClass","size-4 fill-white"]],template:function(n,i){if
2(n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),C("click",function(){return i.onClickMedia()}),_(3,"img",3),m(4,zo,1,0,"svg-icon",4),a(),m(5,Do,4,0),m(6,Fo,5,7,"div",5),m(7,jo,3,0,"div",6),a(),o(8,"div",7)(9,"div",8),m(10,Vo,5,2,"div",9),m(11,Lo,6,6,"div",10),m(12,Ao,5,0,"div",11)(13,No,5,0,"div",11)(14,$o,5,0,"div",11),a(),o(15,"div",12),_(16,"svg-icon",13),o(17,"div",14)(18,"span",15),m(19,Bo,3,7),a()()()()()),n&2){let s,u=i.item().isPlaceholder,M=(s=i.media())!=null&&s.previewSrc?i.media().previewSrc+":300":"";r(3),d("src",M,T),r(),g(i.media()&&i.media().isVideo?4:-1),r(),g(i.item().media&&i.item().media.length>1?5:-1),r(),g(!i.item().isEvent&&i.item().kind!="EVENT_ORGANIZER"&&!u?6:-1),r(),g(i.item().is_pinned?7:-1),r(2),d("ngClass",ee(11,Eo,u)),r(),g(i.item().species?10:-1),r(),g(i.catchLength()?11:-1),r(),g(i.item().kind=="EVENT_USER"?12:i.item().kind=="EVENT_ORGANIZER"?13:i.item().isEvent?14:-1),r(6),d("ngClass",ee(13,Io,u)),r(),g(u?-1:19)}},dependencies:[ce,wi,Sn,Nn,$n,Fe],encapsulation:2})}}return t})();var Uo=(t,c)=>c.id;function Ho(t,c){if(t&1&&l(0),t&2){let e=p();x(" (",e.provider.totalCount,") ")}}function qo(t,c){if(t&1){let e=O();o(0,"aa-event-feed-item",8),C("clickMedia",function(i){let s=f(e).$implicit,u=p();return h(u.onClickMedia(s,i))}),a()}if(t&2){let e=c.$implicit,n=p();d("item",e)("timezone",n.data.timezone)("lengthUnit",n.data.units)}}function Wo(t,c){if(t&1&&_(0,"aa-event-feed-item",10)(1,"aa-event-feed-item",10)(2,"aa-event-feed-item",10)(3,"aa-event-feed-item",10)(4,"aa-event-feed-item",10)(5,"aa-event-feed-item",10),t&2){let e=p(2);d("item",e.loadingItem),r(),d("item",e.loadingItem),r(),d("item",e.loadingItem),r(),d("item",e.loadingItem),r(),d("item",e.loadingItem),r(),d("item",e.loadingItem)}}function Zo(t,c){if(t&1&&(_(0,"aa-event-feed-item",9)(1,"aa-event-feed-item",9)(2,"aa-event-feed-item",9),m(3,Wo,6,6)),t&2){let e=p();d("item",e.loadingItem),r(),d("item",e.loadingItem),r(),d("item",e.loadingItem),r(),g(e.provider.isEmpty?3:-1)}}function Qo(t,c){if(t&1){let e=O();o(0,"button",11),C("click",function(){f(e);let i=p();return h(i.provider.loadNextPage())}),l(1,"Load More"),a()}}var Qi=(()=>{class t{constructor(){this.data=P(pe),this.provider=new Ui({id:e=>e.id,request:e=>e.has("max_id")?this.service.indexPosts(e):pt(this.service.indexPosts(e.append("is_pinned",1)),this.service.indexPosts(e.append("is_pinned",0))).pipe(L(([n,i])=>{let s="X-Total-Count";return n.clone({body:[...n.body,...i.body],headers:n.headers.set(s,`${parseInt(n.headers.get(s))+parseInt(i.headers.get(s))}`)})})),local:e=>it(e),params:new Pt({fromObject:{tournament_id:this.data.eventId,expand:"kind",has_media:"1",count:24}})}),this.loadingItem={id:0,isEvent:!1,kind:"",headerImgSrc:"",headerName:"",createdAt:"",is_pinned:!1,isPlaceholder:!0},this.ref=P(le),this.service=P(z),this.dialogService=P(Q),this.subscription=W.EMPTY}static open(e,n,i,s){let u=new K;u.overlayConfig=e.maxSizeOverlayConfig,u.data={eventId:n,timezone:i,units:s},e.open(t,u)}ngOnInit(){this.provider.load(!1)}ngOnDestroy(){this.subscription.unsubscribe()}onClickClose(){this.ref.close()}onClickMedia(e,n){let i=e.media.map(s=>({url:s.src,thumbnailUrl:s.previewSrc?`${s.previewSrc}:300`:null,mediaType:s.type,type:s.isVideo?"video":"photo"}));et.open(this.dialogService,{index:n,media:i})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["aa-event-feed-overlay"]],hostAttrs:[1,"tailwind",2,"display","block","width","100%"],decls:13,vars:3,consts:[[1,"content-container","md:p-4"],[1,"tw-card","rounded-none","size-full","max-h-screen","md:rounded-lg","md:size-auto","flex","flex-col"],[1,"px-6","py-5","flex","items-center","justify-between","border-b","border-border-default"],["type","button","title","Close",1,"tw-btn","tw-btn-icon","tw-btn-text","tw-btn-neutral-1000",3,"click"],["name","close"],[1,"p-6","grid","grid-cols-1","lg:grid-cols-3","md:grid-cols-2","gap-5","grow","overflow-y-auto"],[3,"item","timezone","lengthUnit"],["type","button",1,"lg:col-span-3","md:col-span-2","tw-btn","tw-btn-filled","tw-btn-accent"],[3,"clickMedia","item","timezone","lengthUnit"],[3,"item"],[1,"hidden","md:block",3,"item"],["type","button",1,"lg:col-span-3","md:col-span-2","tw-btn","tw-btn-filled","tw-btn-accent",3,"click"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),l(4," Feed "),m(5,Ho,1,1),a(),o(6,"button",3),C("click",function(){return i.onClickClose()}),_(7,"svg-icon",4),a()(),o(8,"div",5),S(9,qo,1,3,"aa-event-feed-item",6,Uo),m(11,Zo,4,4),m(12,Qo,2,0,"button",7),a()()()),n&2&&(r(5),g(i.provider.totalCount?5:-1),r(4),E(i.provider.data),r(2),g(i.provider.isLoading?11:-1),r(),g(i.provider.canLoadMore&&!i.provider.isLoading?12:-1))},dependencies:[ce,It],encapsulation:2})}}return t})();function Go(t,c){if(t&1){let e=O();o(0,"button",4),C("click",function(){f(e);let i=p();return h(i.onClickViewAllPosts())}),l(1,"View All"),a()}}function Yo(t,c){t&1&&_(0,"app-spinner",5)}function Ko(t,c){if(t&1){let e=O();o(0,"aa-event-feed-item",10),C("clickMedia",function(i){let s=f(e).$implicit,u=p(2);return h(u.onClickMedia(s,i))}),a()}if(t&2){let e=c.$implicit,n=p(2);d("item",e)("timezone",n.tournamentTimeZone())("lengthUnit",n.lengthUnit())}}function Xo(t,c){if(t&1){let e=O();o(0,"button",11),C("click",function(){f(e);let i=p(2);return h(i.onClickViewAllPosts())}),l(1,"View All Posts"),a()}}function Jo(t,c){t&1&&(o(0,"div",9)(1,"p",12),l(2,"No posts yet"),a()())}function er(t,c){if(t&1&&(m(0,Yo,1,0,"app-spinner",5),o(1,"div",6),S(2,Ko,1,3,"aa-event-feed-item",7,G),a(),m(4,Xo,2,0,"button",8),m(5,Jo,3,0,"div",9)),t&2){let e=p();g(e.loading()?0:-1),r(),On(e.listStyle()),r(),E(e.posts()),r(2),g(!e.loading()&&e.postsTotalCount()>e.posts().length?4:-1),r(),g(!e.loading()&&e.posts().length==0?5:-1)}}function tr(t,c){if(t&1){let e=O();o(0,"div",3)(1,"button",13),C("click",function(){f(e);let i=p();return h(i.onClickLogIn())}),l(2,"Log in to see posts"),a()()}}var qe=(()=>{class t{constructor(){this.tournamentApiService=P(z),this.authenticationService=P(xe),this.dialogService=P(Q),this.breakpoint=P(ai),this.tournament=ue.required(),this.tournamentTimeZone=ue(null),this.division=ue(null),this.maxDisplay=ue(3),this.marginOffset=ue(null),this.isSmAndDown=pi(this.breakpoint.observe("(max-width: 640px)").pipe(L(e=>e.matches))),this.isLoggedIn$=this.authenticationService.isLoggedIn$,this.loading=F(!1),this.posts=F([]),this.postsTotalCount=F(0),this.timezone=oe(()=>this.tournamentTimeZone()??Ve.now().zone),this.lengthUnit=oe(()=>this.tournament().default_leaderboard_units??"CM"),this.listStyle=oe(()=>{let e={},n=this.maxDisplay(),s=this.isSmAndDown()?"80%":"1fr";if(e["grid-template-columns"]=`repeat(${n}, ${s})`,this.marginOffset()){let u=this.marginOffset();e["margin-left"]=`-${u}`,e["margin-right"]=`-${u}`,e["padding-right"]=u,e["padding-left"]=u}return e}),this.subscription=W.EMPTY}ngOnInit(){this.subscription=this.authenticationService.isLoggedIn$.pipe(cn(()=>{this.loading.set(!0)}),be(e=>{let n=this.tournament().id,i=this.division()?.id;return e?pt(this.tournamentApiService.indexPosts(ye({tournament_id:n,count:this.maxDisplay(),expand:"kind",has_media:"1",is_pinned:1},i&&{division_id:i})),this.tournamentApiService.indexPosts(ye({tournament_id:n,count:this.maxDisplay(),expand:"kind",has_media:"1",is_pinned:0},i&&{division_id:i}))):lt([new Nt({body:[]}),new Nt({body:[]})])})).subscribe({next:([e,n])=>{let i=parseInt(e.headers.get("X-Total-Count"))+parseInt(n.headers.get("X-Total-Count")),s=i&&i!=Number.NaN?i:0,u=[...e.body.map(M=>it(M)),...n.body.map(M=>it(M))].slice(0,this.maxDisplay());this.posts.set(u),this.postsTotalCount.set(s),this.loading.set(!1)},error:e=>{console.error(e),this.loading.set(!1)}})}ngOnDestroy(){this.subscription.unsubscribe()}onClickLogIn(){this.authenticationService.requestLogin()}
2onClickMedia(e,n){let i=e.media.map(s=>({url:s.src,thumbnailUrl:s.previewSrc?`${s.previewSrc}:300`:null,mediaType:s.type,type:s.isVideo?"video":"photo"}));et.open(this.dialogService,{index:n,media:i})}onClickViewAllPosts(){Qi.open(this.dialogService,this.tournament().id,this.tournamentTimeZone(),this.lengthUnit())}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["aa-event-feed"]],hostAttrs:[1,"tailwind"],inputs:{tournament:[1,"tournament"],tournamentTimeZone:[1,"tournamentTimeZone"],division:[1,"division"],maxDisplay:[1,"maxDisplay"],marginOffset:[1,"marginOffset"]},decls:8,vars:5,consts:[[1,"flex","gap-2","items-center","mb-4"],[1,"grow"],["type","button",1,"tw-btn","tw-btn-outlined","tw-btn-accent","hidden","sm:block"],[1,"flex","flex-col","items-center"],["type","button",1,"tw-btn","tw-btn-outlined","tw-btn-accent","hidden","sm:block",3,"click"],["size","small"],[1,"grid","gap-2","max-w-screen-sm","sm:max-w-none","overflow-auto"],[3,"item","timezone","lengthUnit"],["type","button",1,"mt-4","w-full","tw-btn","tw-btn-outlined","tw-btn-accent","sm:hidden"],[1,"w-full","flex","items-center","justify-center"],[3,"clickMedia","item","timezone","lengthUnit"],["type","button",1,"mt-4","w-full","tw-btn","tw-btn-outlined","tw-btn-accent","sm:hidden",3,"click"],[1,""],["type","button",1,"mt-4","w-full","tw-btn","tw-btn-outlined","tw-btn-accent",3,"click"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"h3"),l(2),a(),_(3,"div",1),m(4,Go,2,0,"button",2),a(),m(5,er,6,5),b(6,"async"),hn(7,tr,3,0,"div",3)),n&2&&(r(2),x("Feed ",i.postsTotalCount()?`(${i.postsTotalCount()})`:""),r(2),g(!i.loading()&&i.postsTotalCount()>i.posts().length?4:-1),r(),g(w(6,3,i.isLoggedIn$)?5:7))},dependencies:[X,It,Ce],encapsulation:2})}}return t})();var ir=["onboardingContent"];function or(t,c){}function rr(t,c){t&1&&y(0,or,0,0,"ng-template")}function ar(t,c){}function cr(t,c){t&1&&y(0,ar,0,0,"ng-template")}function lr(t,c){}function sr(t,c){t&1&&y(0,lr,0,0,"ng-template")}function pr(t,c){if(t&1){let e=O();o(0,"div",19),C("@onboardingTransition.start",function(){f(e);let i=p();return h(i.onStartOnboardingTransition())})("@onboardingTransition.done",function(){f(e);let i=p();return h(i.onDoneOnboardingTransition())}),y(1,cr,1,0,null,18)(2,sr,1,0,null,18),a()}if(t&2){let e=p(),n=R(24);d("@onboardingTransition",e.animating),r(),d("ngTemplateOutlet",n)("ngTemplateOutletContext",e.animatingPageLeft),r(),d("ngTemplateOutlet",n)("ngTemplateOutletContext",e.animatingPageRight)}}function dr(t,c){t&1&&Z(0)}function mr(t,c){if(t&1&&y(0,dr,1,0,"ng-container",18),t&2){let e=p().$implicit;p(2);let n=R(30);d("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}function gr(t,c){t&1&&Z(0)}function _r(t,c){if(t&1&&y(0,gr,1,0,"ng-container",18),t&2){let e=p().$implicit;p(2);let n=R(26);d("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}function ur(t,c){t&1&&Z(0)}function Cr(t,c){if(t&1&&y(0,ur,1,0,"ng-container",18),t&2){let e=p().$implicit;p(2);let n=R(28);d("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}function fr(t,c){t&1&&Z(0)}function hr(t,c){if(t&1&&y(0,fr,1,0,"ng-container",18),t&2){let e=p().$implicit;p(2);let n=R(32);d("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}function xr(t,c){if(t&1&&m(0,mr,1,2,"ng-container")(1,_r,1,2,"ng-container")(2,Cr,1,2,"ng-container")(3,hr,1,2,"ng-container"),t&2){let e,n=c.$implicit;g((e=n.type)==="text"?0:e==="image"?1:e==="video"?2:e==="list"?3:-1)}}function vr(t,c){if(t&1&&(o(0,"div",20),b(1,"async"),S(2,xr,4,1,null,null,G),a()),t&2){let e=c.grid,n=c.sections,i=p();ge("grid-template-columns",e),D("grid-page",w(1,4,i.responsive.s)!==!0&&!!e),r(2),E(n)}}function br(t,c){if(t&1&&(o(0,"span",23),l(1),a()),t&2){let e=p().subtitle;r(),v(e)}}function Pr(t,c){if(t&1&&(o(0,"div",21),_(1,"img",22),m(2,br,2,1,"span",23),a()),t&2){let e=c.src,n=c.subtitle,i=c.outline,s=c.rowStart,u=c.rowEnd,M=c.columnStart,V=c.columnEnd;ge("grid-row-start",s)("grid-row-end",u)("grid-column-start",M)("grid-column-end",V),r(),D("outline",i),d("src",e,T),r(),g(n?2:-1)}}function Or(t,c){if(t&1&&(o(0,"a",24),_(1,"img",25),a()),t&2){let e=c.src,n=c.href,i=c.rowStart,s=c.rowEnd,u=c.columnStart,M=c.columnEnd;ge("grid-row-start",i)("grid-row-end",s)("grid-column-start",u)("grid-column-end",M),d("href",n,T),r(),d("src",e,T)}}function Mr(t,c){if(t&1&&(o(0,"p",26),l(1),a()),t&2){let e=c.text,n=c.rowStart,i=c.rowEnd,s=c.columnStart,u=c.columnEnd;ge("grid-row-start",n)("grid-row-end",i)("grid-column-start",s)("grid-column-end",u),r(),x(" ",e)}}function wr(t,c){if(t&1&&(o(0,"li",29),l(1),a()),t&2){let e=c.$implicit;r(),v(e)}}function yr(t,c){if(t&1&&(o(0,"div",27)(1,"h3"),l(2),a(),o(3,"ul",28),S(4,wr,2,1,"li",29,G),a()()),t&2){let e=c.title,n=c.items,i=c.rowStart,s=c.rowEnd,u=c.columnStart,M=c.columnEnd;ge("grid-row-start",i)("grid-row-end",s)("grid-column-start",u)("grid-column-end",M),r(2),v(e),r(2),E(n)}}var Tr=[{title:"Sign in to MyCatch",grid:"1fr",sections:[{type:"image",src:"assets/tournament/onboarding_0_0.png",rowStart:2},{type:"text",text:"Ensure you're logged into MyCatch with the same account you used to sign up to the event. Your catches will not count if you are logged into the wrong account. Once you're logged in, make sure that the green event bar is visible. When you see this bar, the event is active and 
2you can start fishing right away.",rowStart:1}]},{title:"Starting your Trip",grid:"1fr 1fr",sections:[{type:"text",text:"When you get out on the water, press \u201CStart Trip\u201D to create a new trip and begin the timer. You will see a confirmation that the trip has started.",rowStart:1,columnStart:1,columnEnd:3},{type:"image",src:"assets/tournament/onboarding_start_0.png",rowStart:2},{type:"text",text:"You will see a confirmation that the trip has started.",rowStart:3,columnStart:1,columnEnd:3},{type:"image",src:"assets/tournament/onboarding_start_1.png",rowStart:4}]},{title:"Measuring your catches",grid:"1fr 1fr",sections:[{type:"image",src:"assets/tournament/onboarding_1_0.png",rowStart:2},{type:"list",title:"Measuring/Bump Boards",items:["Nose touching bump","Fish on top of board","No hands in mouth or gills"],rowStart:2,columnStart:2},{type:"image",src:"assets/tournament/onboarding_1_1.png",rowStart:3},{type:"list",title:"Measuring Tapes",items:["Nose lines up with Zero","Tape is fully visible","No hands in mouth or gills"],rowStart:3,columnStart:2},{type:"text",text:"To ensure that your catches are approved, please use an approved measuring device and always make sure that the fish is placed right side down.",rowStart:1,columnStart:1,columnEnd:3}]},{title:"Logging a Catch",grid:"1fr 1fr 1fr",sections:[{type:"text",text:"Follow the steps below to log your catch and submit it to the event for review.",columnStart:1,columnEnd:4},{type:"image",src:"assets/tournament/onboarding_2_0.png",subtitle:'1) Tap on the "Add Catch" button',outline:!0,rowStart:2},{type:"image",src:"assets/tournament/onboarding_2_1.png",subtitle:"2) Find the species you caught",outline:!0,rowStart:2,columnStart:2},{type:"image",src:"assets/tournament/onboarding_2_2.png",subtitle:"3) Add a measurement photo",outline:!0,rowStart:2,columnStart:3},{type:"image",src:"assets/tournament/onboarding_2_3.png",subtitle:"4) Add a release video",outline:!0,rowStart:3},{type:"image",src:"assets/tournament/onboarding_2_4.png",subtitle:"5) Scroll down and enter length",outline:!0,rowStart:3,columnStart:2},{type:"image",src:"assets/tournament/onboarding_2_5.png",subtitle:"6) Tap save to submit your entry",outline:!0,rowStart:3,columnStart:3}]},{title:"Syncing your Catches",grid:"1fr",sections:[{type:"image",src:"assets/tournament/onboarding_3_0.png",rowStart:2},{type:"list",title:"To sync your entry",items:["Be connected to WiFi or mobile data","Tap and hold the orange bar and select 'Sync'","If the bar changes colour the sync was successful"],rowStart:3},{type:"text",text:"After you log your catches, the data will need to be synced to the event. This will usually happen automatically once your phone is connected with any network. You can also follow the steps below to manually sync your catches.",rowStart:1}]},{title:"Ending your Trip",grid:"1fr 1fr",sections:[{type:"text",text:`When you're off the water, tap on "End Trip"`,rowStart:1,columnStart:1,columnEnd:3},{type:"image",src:"assets/tournament/onboarding_end_0.png",rowStart:2},{type:"text",text:'Double check the "Hours Spent" is accurate and then tap "Confirm and End Trip".',rowStart:3,columnStart:1,columnEnd:3},{type:"image",src:"assets/tournament/onboarding_end_1.png",rowStart:4},{type:"text",text:"Measuring the time you spent on the water provides important data for fisheries research and conservation efforts. Even if you didn't catch anything, the data is still valuable!",rowStart:5,columnStart:1,columnEnd:3}]},{title:"Helpful Videos",grid:"1fr",sections:[{type:"text",text:"This video will show you how to properly record a catch for a MyCatch event."},{type:"video",src:"assets/tournament/onboarding_video_0.png",href:"https://youtu.be/fS65wMakQHA"}]}],Gi=(()=>{class t{constructor(e){this.responsive=e,this.pages=Tr,this.pageIndex=0,this.animating=null,this.activePage=this.pages[0],this.animatingPageLeft=null,this.animatingPageRight=null,this.onboardingContentHeight=null}onClickNextPage(){this.pageIndex=(this.pageIndex+1)%this.pages.length;let e=()=>{this.animatingPageLeft=this.activePage,this.animatingPageRight=this.pages[this.pageIndex],this.animating="next"};this.animating?(this.activePage=this.animatingPageRight??this.pages[this.pageIndex],this.onDoneOnboardingTransition(),setTimeout(()=>e())):e()}onClickPrevPage(){this.pageIndex==0?this.pageIndex=this.pages.length-1:this.pageIndex=this.pageIndex-1;let e=()=>{this.animatingPageLeft=this.pages[this.pageIndex],this.animatingPageRight=this.activePage,this.animating="prev"};this.animating?(this.activePage=this.animatingPageLeft??this.pages[this.pageIndex],this.onDoneOnboardingTransition(),setTimeout(()=>e())):e()}onStartOnboardingTransition(){if(!this.animating)return;
2let e=this.onboardingContentRef?.nativeElement;e!=null&&(this.onboardingContentHeight=e.offsetHeight),this.activePage=this.animating==="next"?this.animatingPageRight:this.animatingPageLeft}onDoneOnboardingTransition(){this.onboardingContentHeight=null,this.animatingPageLeft=null,this.animatingPageRight=null,this.animating=null}static{this.\u0275fac=function(n){return new(n||t)(k(me))}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-onboarding"]],viewQuery:function(n,i){if(n&1&&te(ir,5),n&2){let s;$(s=B())&&(i.onboardingContentRef=s.first)}},standalone:!1,decls:33,vars:13,consts:[["onboardingContent",""],["page",""],["imageSection",""],["videoSection",""],["textSection",""],["listSection",""],[1,"header"],[3,"noMargin"],["appCardContent","",3,"cardPaddingHorizontal","cardPaddingVertical"],[1,"onboarding-header"],[1,"title-count-container"],[1,"title"],[1,"count"],[1,"controls"],[1,"btn","btn-floating","btn-prev",3,"click"],[1,"material-icons"],[1,"btn","btn-floating","btn-next",3,"click"],[1,"onboarding-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"animating-content"],[1,"page-content"],[1,"page-section","image-section"],[1,"content",3,"src"],[1,"subtitle"],["target","_blank",1,"page-section","video-section",3,"href"],[3,"src"],[1,"page-section","text-section"],[1,"page-section","list-section"],[1,"browser-default"],[1,"h5"]],template:function(n,i){if(n&1&&(o(0,"div",6)(1,"h3"),l(2,"Event Readiness Checklist"),a()(),o(3,"app-card",7)(4,"div",8)(5,"div",9)(6,"div",10)(7,"h4",11),l(8),a(),o(9,"span",12),l(10),a()(),o(11,"div",13)(12,"button",14),C("click",function(){return i.onClickPrevPage()}),o(13,"i",15),l(14,"arrow_back"),a()(),o(15,"button",16),C("click",function(){return i.onClickNextPage()}),o(16,"i",15),l(17,"arrow_forward"),a()()()(),o(18,"div",17,0)(20,"div"),y(21,rr,1,0,null,18),a(),m(22,pr,3,5,"div",19),a()()(),y(23,vr,4,6,"ng-template",null,1,U)(25,Pr,3,12,"ng-template",null,2,U)(27,Or,2,10,"ng-template",null,3,U)(29,Mr,2,9,"ng-template",null,4,U)(31,yr,6,9,"ng-template",null,5,U)),n&2){let s=R(24);r(3),d("noMargin",!0),r(),d("cardPaddingHorizontal",16)("cardPaddingVertical",16),r(4),v(i.pages[i.pageIndex].title),r(2),Y("",i.pageIndex+1," of ",i.pages.length),r(8),ge("height",i.onboardingContentHeight,"px"),r(2),ge("op
2acity",i.animating!==null?0:1),r(),d("ngTemplateOutlet",s)("ngTemplateOutletContext",i.activePage),r(),g(i.animating?22:-1)}},dependencies:[re,j,H,Ce],styles:[`.header[_ngcontent-%COMP%]{margin-bottom:15px}.onboarding-header[_ngcontent-%COMP%]{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #EAEDF3;display:flex;align-items:center}.onboarding-header[_ngcontent-%COMP%]   .title-count-container[_ngcontent-%COMP%]{flex-grow:1;margin-right:16px;display:flex;flex-direction:row;align-items:center}.onboarding-header[_ngcontent-%COMP%]   .title-count-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex-grow:1}.onboarding-header[_ngcontent-%COMP%]   .title-count-container[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{flex-shrink:0;font-family:Cabin,sans-serif;font-size:18px;font-weight:600;letter-spacing:0;line-height:130%;text-transform:unset;color:#979aa3}.onboarding-header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]{flex-shrink:0}.onboarding-header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{background-color:#fff;outline:1px solid #EAEDF3;box-shadow:none}.onboarding-header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#3d4248;font-size:24px}.onboarding-header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-left:8px}.onboarding-content[_ngcontent-%COMP%]{position:relative}.animating-content[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;width:calc(200% + 16px)}.animating-content[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]{position:absolute;top:0;width:50%;left:0}.animating-content[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%] + .page-content[_ngcontent-%COMP%]{left:calc(50% + 16px)}.list-section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#1c8753}.list-section[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{color:#747c99;padding-inline-start:24px}.image-section[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .video-section[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.image-section[_ngcontent-%COMP%]   img.outline[_ngcontent-%COMP%], .video-section[_ngcontent-%COMP%]   img.outline[_ngcontent-%COMP%]{border-radius:4px;border:1px solid #EAEDF3}.image-section[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%], .video-section[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{display:block;font-family:Cabin,sans-serif;font-size:14px;font-weight:400;letter-spacing:0;line-height:150%;color:#747c99;width:100%;text-align:center;margin-top:16px}.page-content[_ngcontent-%COMP%]:not(.grid-page)   .page-section[_ngcontent-%COMP%] + .page-section[_ngcontent-%COMP%]{margin-top:16px}@media only screen and (min-width:993px){.grid-page[_ngcontent-%COMP%]{display:grid;column-gap:32px;row-gap:32px;align-items:center}}.card-content[_ngcontent-%COMP%]{overflow:hidden}
3/*# sourceMappingURL=tournament-onboarding.component-YCYMYNY4.css.map */`],data:{animation:[Ye("onboardingTransition",[Ae("* => next",[ve({left:0}),Le("200ms ease-out",ve({left:"calc(-100% - 16px)"}))]),Ae("* => prev",[ve({right:0}),Le("200ms ease-out",ve({right:"calc(-100% + 16px)"}))])])]}})}}return t})();var Sr=["markerMapContainer"],Yi=(t,c)=>c.id;function Er(t,c){if(t&1&&(o(0,"span",17),l(1),a()),t&2){let e=p();r(),Y(" ",e.tournament.location_text,"",e.places.length>0?",":""," ")}}function Ir(t,c){if(t&1&&(o(0,"a",29),l(1),a(),l(2)),t&2){let e=c.$implicit,n=c.$index,i=c.$count,s=p();d("routerLink",s.placeUrlTo(e)),r(),v(e.name),r(),x("",n!==i-1?",":""," ")}}function zr(t,c){if(t&1&&(l(0),b(1,"currency")),t&2){let e=p().$implicit,n=p();x(" ",Lt(1,1,e.fee,n.tournament.currency,"symbol-narrow","1.0-0")," ")}}function Dr(t,c){t&1&&l(0," Free ")}function Rr(t,c){if(t&1&&(o(0,"span",22),l(1),a()),t&2){let e=p(2);r(),v(e.tournament.currency)}}function Fr(t,c){t&1&&(o(0,"span",22),l(1,"+taxes"),a())}function jr(t,c){if(t&1&&(o(0,"span",25)(1,"span",30),l(2),a(),o(3,"span",31),l(4,"-"),a(),o(5,"span",32),m(6,zr,2,6)(7,Dr,1,0),a(),m(8,Rr,2,1,"span",22),m(9,Fr,2,0,"span",22),a()),t&2){let e=c.$implicit;d("title",e.title),r(2),v(e.title),r(4),g(e.variant_id?6:7),r(2),g(e.variant_id?8:-1),r(),g(e.indicate_taxes?9:-1)}}function Vr(t,c){if(t&1&&(o(0,"span",38),l(1),a()),t&2){let e=p().$implicit;
3d("title",e.aliases.join(",")),r(),x("(",e.aliases[0],")")}}function Lr(t,c){if(t&1&&(o(0,"app-card",28)(1,"div",33)(2,"div",34),_(3,"img",35),a(),o(4,"div",36)(5,"span",37),l(6),a(),m(7,Vr,2,2,"span",38),a()()()),t&2){let e=c.$implicit;d("noMargin",!0),r(3),d("src",e.image_url+":300",T),r(3),v(e.name),r(),g(e.aliases!=null&&e.aliases.length?7:-1)}}function Ar(t,c){if(t&1&&S(0,Lr,8,4,"app-card",28,Yi),t&2){let e=p();E(e.tournament.species)}}function Nr(t,c){t&1&&_(0,"img",39)}function $r(t,c){t&1&&_(0,"img",40)}function Br(t,c){t&1&&l(0," All Species ")}function Ur(t,c){t&1&&l(0," Only Freshwater Species ")}function Hr(t,c){t&1&&l(0," Only Saltwater Species ")}function qr(t,c){if(t&1&&(o(0,"app-card",28)(1,"div",33)(2,"div",34),m(3,Nr,1,0,"img",39)(4,$r,1,0,"img",40),a(),o(5,"span"),m(6,Br,1,0)(7,Ur,1,0)(8,Hr,1,0),a()()()),t&2){let e,n,i=p();d("noMargin",!0),r(3),g((e=i.tournament.eligible_species)==="SALT"?3:4),r(3),g((n=i.tournament.eligible_species)==="ALL"?6:n==="FRESH"?7:n==="SALT"?8:-1)}}var Ki=(()=>{class t{constructor(e,n,i,s){this.placeService=e,this.tournamentService=n,this.renderer=i,this.document=s,this.mapComponent=kn(Xe),this.boundary=F(null),this.isMapFullScreen=!1,this.subscription=W.EMPTY}ngOnInit(){this.placeUrlTo=this.placeService.urlTo,this.places=[].concat(this.tournament.logical_boundaries).concat(this.tournament.waterbodies),this.subscription=this.tournamentService.getTournamentBoundary(this.tournament.id).subscribe(e=>{this.boundary.set(e)})}ngOnDestroy(){this.setMapDefault(),this.subscription.unsubscribe()}toggleMapFullscreen(){this.isMapFullScreen?this.setMapDefault():this.setMapFullscreen(),setTimeout(()=>{this.mapComponent()?.fitExtent()},0)}setMapFullscreen(){ui("map_made_fullscreen");let e=this.markerMapContainerElement;if(e&&e.nativeElement){let n=e.nativeElement;this.renderer.setStyle(n,"position","fixed"),this.renderer.setStyle(n,"width","100%"),this.renderer.setStyle(n,"height","100%"),this.renderer.setStyle(n,"top",0),this.renderer.setStyle(n,"left",0),this.renderer.setStyle(n,"z-index",999),this.renderer.setStyle(n,"background","white"),this.renderer.setStyle(this.document.body,"overflow","hidden"),this.isMapFullScreen=!0}}setMapDefault(){let e=this.markerMapContainerElement;if(e&&e.nativeElement){let n=e.nativeElement;this.renderer.setStyle(n,"position","relative"),this.renderer.setStyle(n,"width",null),this.renderer.setStyle(n,"height",null),this.renderer.setStyle(n,"top",null),this.renderer.setStyle(n,"left",null),this.renderer.setStyle(n,"z-index",null),this.renderer.setStyle(n,"max-width",null),this.renderer.setStyle(n,"background",null),this.renderer.setStyle(this.document.body,"overflow",null),this.isMapFullScreen=!1}}static{this.\u0275fac=function(n){return new(n||t)(k(Bn),k(z),k(_n),k(ut))}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-overview"]],viewQuery:function(n,i){if(n&1&&(bn(i.mapComponent,Xe,5),te(Sr,5)),n&2){Pn();let s;$(s=B())&&(i.markerMapContainerElement=s.first)}},inputs:{tournament:"tournament"},standalone:!1,decls:67,vars:29,consts:[["markerMapContainer",""],[3,"noMargin"],["appCardContent","",3,"cardPaddingVertical","cardPaddingHorizontal"],[1,"details"],[1,"map","hide-on-print"],[3,"interactionRestrictionsEnabled"],[3,"boundary"],[1,"btn","primary-btn","hide-on-small-and-down",3,"click"],[1,"material-icons"],[1,"message",3,"noMargin"],["appCardContent","",3,"cardPaddingHorizontal","cardPaddingVertical"],[1,"detail"],[1,"icon"],["width","24","height","24"],[0,"xlink","href","#icon-marker"],[1,"label-value"],[1,"label"],[1,"value"],[0,"xlink","href","#icon-calendar"],[1,"value","hide-on-print"],[0,"xlink","href","#icon-prize"],[1,"value","value-with-subtitle"],[1,"subtitle"],[1,"detail-row"],[0,"xlink","href","#icon-dollar"],[1,"value","value-with-subtitle",3,"title"],[1,"divider"],[1,"species"],[1,"specie",3,"noMargin"],[1,"value",3,"routerLink"],[1,"title","truncate"],[1,"dash"],[1,"fee"],["appCardContent",""],[1,"image-wrapper"],[3,"src"],[1,"name-alias"],[1,"name"],[1,"alias","dotdotdot",3,"title"],["src","assets/all-saltwater-species.png"],["src","assets/all-species.png"]],template:function(n,i){n&1&&(o(0,"h3"),l(1,"Overview"),a(),o(2,"app-card",1)(3,"div",2)(4,"div",3)(5,"div",4,0)(7,"app-empty-map",5),_(8,"app-map-boundary",6),a(),o(9,"a",7),C("click",function(){return i.toggleMapFullscreen()}),o(10,"i",8),l(11),a()(),o(12,"app-card",9)(13,"div",10),l(14,"Event Boundary"),a()()(),o(15,"div",11)(16,"div",12),se(),o(17,"svg",13),_(18,"use",14),a()(),Ge(),o(19,"div",15)(20,"span",16),l(21),a(),o(22,"div"),m(23,Er,2,2,"span",17),S(24,Ir,3,3,null,null,G),a()()(),o(26,"div",11)(27,"div",12),se(),o(28,"svg",13),_(29,"use",18),a()(),Ge(),o(30,"div",15)(31,"span",16),l(32,"Time Period"),a(),o(33,"span",19),l(34),b(35,"toDate"),b(36,"date"),b(37,"toDate"),b(38,"date"),a()()(),o(39,"div",11)(40,"div",12),se(),o(41,"svg",13),_(42,"use",20),a()(),Ge(),o(43,"div",15)(44,"span",16),l(45,"Total Prize Value"),a(),o(4
36,"span",21),l(47),b(48,"currency"),o(49,"span",22),l(50),a()()()(),o(51,"div",23)(52,"div",11)(53,"div",12),se(),o(54,"svg",13),_(55,"use",24),a()(),Ge(),o(56,"div",15)(57,"span",16),l(58,"Entry Fee"),a(),S(59,jr,10,5,"span",25,Yi),a()()()(),_(61,"div",26),o(62,"h4"),l(63,"Eligible Species"),a(),o(64,"div",27),m(65,Ar,2,0)(66,qr,9,3,"app-card",28),a()()()),n&2&&(r(2),d("noMargin",!0),r(),d("cardPaddingVertical",20)("cardPaddingHorizontal",20),r(4),d("interactionRestrictionsEnabled",!i.isMapFullScreen),r(),d("boundary",i.boundary()),r(3),v(i.isMapFullScreen?"close_fullscreen":"open_in_full"),r(),d("noMargin",!0),r(),d("cardPaddingHorizontal",8)("cardPaddingVertical",4),r(8),x("Location",i.places.length>1?"s":""),r(2),g(i.tournament.location_text?23:-1),r(),E(i.places),r(10),Y(" ",w(36,18,w(35,16,i.tournament.starts_at))," - ",w(38,22,w(37,20,i.tournament.ends_at))," "),r(13),x(" ",Lt(48,24,i.tournament.prize_value,i.tournament.currency,"symbol-narrow","1.0-0")," "),r(3),x("\xA0 ",i.tournament.currency),r(9),E(i.tournament.entry_types),r(6),g(i.tournament.eligible_species==="CUSTOM"?65:66))},dependencies:[he,Xe,Ci,j,H,bt,zn,An],styles:[`.details[_ngcontent-%COMP%]{display:grid;row-gap:10px}.details[_ngcontent-%COMP%]   .map[_ngcontent-%COMP%]{position:relative;height:240px}.details[_ngcontent-%COMP%]   .map[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{position:absolute;right:8px;bottom:24px;padding:0;width:38px;height:38px;line-height:38px}.details[_ngcontent-%COMP%]   .map[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{position:absolute;left:4px;top:4px;font-weight:600}.details[_ngcontent-%COMP%]   .map.fullscreen[_ngcontent-%COMP%]{position:fixed;z-index:999;inset:0;background:#fff}@media only screen and (min-width:601px){.details[_ngcontent-%COMP%]{grid-template-columns:minmax(0,50%) minmax(0,50%);column-gap:20px;row-gap:20px}.details[_ngcontent-%COMP%]   .map[_ngcontent-%COMP%]{grid-row-start:1;grid-row-end:span 4;height:auto}}.details[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;align-items:center}.details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{flex-shrink:0;width:36px;height:36px;border-radius:50%;background-color:#f0f1fd;display:flex;align-items:center;justify-content:center;margin-right:10px}.details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:#6073eb}.details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .label-value[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow-x:hidden}.details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .label-value[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-weight:700;font-size:12px;color:#979aa3;text-transform:uppercase}.details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .label-value[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-weight:600;font-size:18px}.details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .label-value[_ngcontent-%COMP%]   .value-with-subtitle[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:4px}.details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .label-value[_ngcontent-%COMP%]   .value-with-subtitle[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:14px;color:#979aa3;flex-shrink:0}.details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .label-value[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]   .dash[_ngcontent-%COMP%], .details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .label-value[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]   .fee[_ngcontent-%COMP%]{flex-shrink:0}.details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .label-value[_ngcontent-%COMP%]   a.value[_ngcontent-%COMP%]{color:#6073eb}.details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .label-value[_ngcontent-%COMP%]   a.value[_ngcontent-%COMP%]:hover{text-decoration:underline}.divider[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}
3app-card[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin-bottom:10px}.species[_ngcontent-%COMP%]{display:grid;row-gap:10px}@media only screen and (min-width:601px)and (max-width:992px){.species[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media only screen and (min-width:993px){.species[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr}}@media only screen and (min-width:601px){.species[_ngcontent-%COMP%]{column-gap:25px;row-gap:15px}}.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:60px;padding-left:8px;padding-right:8px}@media only screen and (min-width:601px){.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{flex-direction:column;align-items:center;justify-content:center;height:144px;padding:16px 8px!important}}.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   .image-wrapper[_ngcontent-%COMP%]{flex-shrink:0;position:relative}@media only screen and (max-width:600px){.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   .image-wrapper[_ngcontent-%COMP%]{width:96px;height:36px}}@media only screen and (min-width:601px){.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   .image-wrapper[_ngcontent-%COMP%]{flex-grow:1;width:100%}}.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   .image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:scale-down;width:100%;height:100%;max-width:100%;max-height:100%;position:absolute}.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   .name-alias[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:4px;margin-left:15px}@media only screen and (min-width:601px){.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   .name-alias[_ngcontent-%COMP%]{margin-left:0;margin-top:15px;justify-content:center}}.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   .name-alias[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{flex-shrink:0}@media only screen and (min-width:601px){.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   .name-alias[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{text-align:end}}@media only screen and (min-width:601px){.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   .name-alias[_ngcontent-%COMP%]   .alias[_ngcontent-%COMP%]{text-align:start}}.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   span.name[_ngcontent-%COMP%]{font-weight:400;font-size:16px}@media only screen and (min-width:601px){.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   span.name[_ngcontent-%COMP%]{font-weight:600}}.species[_ngcontent-%COMP%]   .specie[_ngcontent-%COMP%]   span.alias[_ngcontent-%COMP%]{font-weight:400;font-size:16px}
4/*# sourceMappingURL=overview.component-JQNQTHSI.css.map */`,`.breadcrumbs[_ngcontent-%COMP%]{position:fixed;background:#fff;max-width:1420px;width:100%;height:40px;z-index:2;top:60px;display:flex;padding:0 25px;align-items:center;border-bottom:1px solid #EAEDF3}.breadcrumbs[_ngcontent-%COMP%]   .crumb[_ngcontent-%COMP%]{display:flex;align-items:center}.sticky-nav[_ngcontent-%COMP%], .mobile-sticky[_ngcontent-%COMP%]{position:fixed;background:#fff;border-bottom:1px solid #EAEDF3;height:62px;top:100px;z-index:2;max-width:1420px;width:100%}.sticky-footer[_ngcontent-%COMP%]{position:sticky;background:#fff;border-top:1px solid #EAEDF3;padding:10px 20px;bottom:0;z-index:2;max-width:1420px;width:100%;display:flex;flex-wrap:wrap}.sticky-footer[_ngcontent-%COMP%]   .status-label[_ngcontent-%COMP%]{flex-grow:1;flex-basis:100%;margin-bottom:4px;justify-content:center}.sticky-footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{flex-grow:1}.sticky-footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-left:4px}.join-btn[_ngcontent-%COMP%]{text-transform:none;white-space:nowrap;overflow:hidden;position:relative}.join-btn[_ngcontent-%COMP%]:not(.disabled):before{animation:_ngcontent-%COMP%_shine 5s ease-in-out infinite}.join-btn[_ngcontent-%COMP%]:not(.disabled):before{content:"";position:absolute;top:0;width:100%;height:100%;background:linear-gradient(120deg,transparent,rgba(255,255,255,.8),transparent)}@keyframes _ngcontent-%COMP%_shine{0%{left:-100%;transition-property:left}11.5044247788%,to{left:100%;transition-property:left}}.participant-list[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]{display:grid;column-gap:15px;row-gap:20px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]{background-color:#fff;overflow:hidden;display:flex;align-items:center}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:40px;width:40px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:0 16px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;font-size:18px;font-weight:600}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#979aa3}.page-wrapper[_ngcontent-%COMP%]   .sponsor.major-header[_ngcontent-%COMP%]{padding-bottom:20px;margin-bottom:20px}.page-wrapper[_ngcontent-%COMP%]   .sponsor.major-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.mobile-sticky[_ngcontent-%COMP%]{position:sticky;height:48px;overflow:auto;top:40px}@media only screen and (min-width:601px)and (max-width:992px){.mobile-sticky[_ngcontent-%COMP%]{top:96px}}.mobile-sticky[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}.mobile-sticky[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]{display:flex}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .padding[_ngcontent-%COMP%]{padding:0 8px}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:12px 15px;font-size:16px}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{padding-bottom:8px}.mobile-header[_ngcontent-%COMP%]{padding:20px 20px 0;background:#fff}@media only screen and (min-width:993px){.page-wrapper[_ngcontent-%COMP%]{margin-top:40px}}@media only screen and (min-width:601px)and (max-width:992px){.breadcrumbs[_ngcontent-%COMP%]{top:56px}.page-wrapper[_ngcontent-%COMP%]{margin-top:40px}.sticky-nav[_ngcontent-%COMP%]{top:96px}}@media only screen and (max-width:600px){.breadcrumbs[_ngcontent-%COMP%]{position:sticky;top:0}.sticky-nav[_ngcontent-%COMP%]{position:sticky;top:40px}.page-wrapper[_ngcontent-%COMP%]{transform:translateZ(0)}}.nav-tabs[_ngcontent-%COMP%]{display:flex;align-items:center}.nav-tabs[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{padding:19px 20px;font-size:18px;font-weight:600;line-height:23px;display:inline-block;color:#979aa3;cursor:pointer;white-space:nowrap}.nav-tabs[_ngcontent-%COMP%]   .link.active[_ngcontent-%COMP%]{color:#6073eb;border-bottom:4px solid #6073eb;padding-bottom:15px}.nav-tabs[_ngcontent-%COMP%]   .join[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-shrink:0;justify-content:flex-end}.nav-tabs[_ngcontent-%COMP%]   .join[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:4px}.page-wrapper[_ngcontent-%COMP%]{background-color:#f8f8f8;font-family:Cabin}.page-wrapper[_ngcontent-%COMP%]   .major-header[_ngcontent-%COMP%]{background:#fff;border:1px solid #EAEDF3;box-shadow:0 1px 3px #0000000a;border-radius:5px;padding:20px 20px 0}.page-wrapper[_ngcontent-%COMP%]   .major-header[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]{padding:0}.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{margin-bottom:30px}@media not print{.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{padding-top:30px}}@media only screen and (max-width:992px){.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{padding:8px 15px 0}}.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{width:100%;height:1px;background-color:#eaedf3;margin-top:10px;margin-bottom:10px}app-card-footer[_ngcontent-%COMP%]  a, app-card-footer[_ngcontent-%COMP%]  button{margin:0!important;width:100%;text-transform:unset}app-tabs[_ngcontent-%COMP%]  div:first-child{padding-left:0;padding-right:0}app-tab-link[_ngcontent-%COMP%]:first-of-type  a{margin-left:0!important}.live-tab-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.live-indicator[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background:#f24d33;margin-right:10px}app-ad[_ngcontent-%COMP%]  .card{margin:0!important}.dropdown-button[_ngcontent-%COMP%]{color:#3d4248;display:flex;align-items:center;background:#fff;border:1px solid #EAEDF3;box-sizing:border-box;border-radius:4px;padding:10px!important}.dropdown-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex-grow:1;text-align:left}#dropdown-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:left}#dropdown-list[_ngcontent-%COMP%]   .live-indicator[_ngcontent-%COMP%]{display:inline-block}@media not print{article[_ngcontent-%COMP%] + article[_ngcontent-%COMP%]{margin-top:40px}}h3[_ngcontent-%COMP%]{font-weight:700;font-size:24px;margin:0 0 15px}h4[_ngcontent-%COMP%]{font-weight:600;font-size:18px;margin:0}.flex-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.flex-container.center-align[_ngcontent-%COMP%]{padding:11px 0}.flex-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{color:#6073eb;font-weight:600;cursor:pointer}.weak[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:22px;color:#979aa3}.faint-btn[_ngcontent-%COMP%]{background:#f0f1fd;color:#6073eb;box-shadow:none;text-transform:none}.status-label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.status-label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:4px}@media print{.major-header[_ngcontent-%COMP%]{background:none!important;border:none!important;box-shadow:none!important;padding:0!important}}.video-card[_ngcontent-%COMP%]{position:relative}.video-card[_ngcontent-%COMP%]:before{content:"";display:block;padding-bottom:56.25%}.video-card[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%], .video-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}.video-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;object-position:center}.video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]{background-color:#00000080;display:flex;justify-content:center;align-items:center;color:#fff}.video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]:hover{cursor:pointer}.video-container[_ngcontent-%COMP%]{margin-top:20px}.join-controls[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;
4gap:4px}.join-controls[_ngcontent-%COMP%]   .code-btn[_ngcontent-%COMP%]{order:2}.how[_ngcontent-%COMP%]{overflow:auto}.how[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:inline}.how-wrap[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #eaedf3;box-sizing:border-box;border-radius:4px;padding:20px;margin:0 20px 10px}.how-wrap[_ngcontent-%COMP%]:first-child{margin-top:20px}.how-wrap[_ngcontent-%COMP%]:last-child{margin-bottom:20px}.how-wrap[_ngcontent-%COMP%]{text-align:center}.how-wrap[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:20px 0 10px;font-size:21px;font-weight:700}.how-wrap[_ngcontent-%COMP%]   .weak[_ngcontent-%COMP%]{font-size:16px;font-weight:400;text-transform:none}@media only screen and (min-width:601px){app-modal[_ngcontent-%COMP%]  .modal-container{max-width:480px}}
5/*# sourceMappingURL=tournament.component-7LCOQPBN.css.map */`]})}}return t})();var Zr=["prizeContent"],Qr=t=>["/member",t];function Gr(t,c){if(t&1){let e=O();o(0,"div",13),C("click",function(){f(e);let i=p();return h(i.onClickPrizeHeader())}),_(1,"img",14),a()}if(t&2){let e=p();ge("width",e.contentHeight(),"px")("height",e.contentHeight(),"px"),r(),d("src",e.prize.prize_image_url,T)}}function Yr(t,c){if(t&1&&(o(0,"div",10)(1,"a",15),l(2),a(),se(),o(3,"svg",16),_(4,"use",17),a()()),t&2){let e=p();r(),d("href",e.prize.sponsor==null?null:e.prize.sponsor.site_url,T),r(),v(e.prize.sponsor==null?null:e.prize.sponsor.name)}}function Kr(t,c){if(t&1&&(o(0,"span",11),l(1),a()),t&2){let e=p();r(),v(e.prize.sponsor==null?null:e.prize.sponsor.name)}}function Xr(t,c){if(t&1&&(o(0,"a",12),l(1),b(2,"fullnameOrUsername"),a()),t&2){let e=p();d("routerLink",ee(4,Qr,e.prize.winner.id)),r(),x(" ",w(2,2,e.prize.winner)," ")}}function Jr(t,c){t&1&&(o(0,"span",11),l(1,"-"),a())}function ea(t,c){if(t&1&&l(0),t&2){let e=p(2);x(" ",e.prize.division.name," ")}}function ta(t,c){t&1&&l(0," Whole Event ")}function na(t,c){if(t&1&&(o(0,"span",9),l(1),b(2,"titlecase"),a(),o(3,"span",11),m(4,ea,1,1)(5,ta,1,0),a()),t&2){let e=p();r(),x("",w(2,2,e.divisionType),": "),r(3),g(e.prize.division!=null&&e.prize.division.name?4:5)}}var Xi=144,zt=(()=>{class t{constructor(e){this.zone=e,this.showDivision=!1,this.clickHeader=new Ct,this.contentHeight=F(Xi),this.obs=null,this.isBrowser=Rn(P(dn))}ngAfterViewInit(){!this.isBrowser||typeof ResizeObserver>"u"||(this.obs=new ResizeObserver(()=>{this.zone.run(()=>{this.contentHeight.set(this.prizeContentElement?.nativeElement?.offsetHeight??Xi)})}),this.obs.observe(this.prizeContentElement.nativeElement))}ngOnDestroy(){this.obs?.disconnect()}onClickPrizeHeader(){this.clickHeader.emit()}static{this.\u0275fac=function(n){return new(n||t)(k(ft))}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-prize-item"]],viewQuery:function(n,i){if(n&1&&te(Zr,5),n&2){let s;$(s=B())&&(i.prizeContentElement=s.first)}},inputs:{prize:"prize",showDivision:"showDivision",divisionType:"divisionType"},outputs:{clickHeader:"clickHeader"},standalone:!1,decls:19,vars:10,consts:[["prizeContent",""],[3,"noMargin"],["appCardContent","",3,"cardPaddingHorizontal","cardPaddingVertical"],[1,"prize-image",3,"width","height"],[1,"prize-content"],[1,"prize-header",3,"click"],[1,"prize-header_title",3,"title"],[1,"divider"],[1,"prize-details"],[1,"prize-label"],[1,"prize-value","link"],[1,"prize-value"],[1,"prize-value",3,"routerLink"],[1,"prize-image",3,"click"],[3,"src"],["target","_blank",3,"href"],["width","20","height","20"],[0,"xlink","href","#icon-outbound-link"]],template:function(n,i){n&1&&(o(0,"app-card",1)(1,"div",2),m(2,Gr,2,5,"div",3),o(3,"div",4,0)(5,"div",5),C("click",function(){return i.onClickPrizeHeader()}),o(6,"span",6),l(7),a()(),_(8,"div",7),o(9,"div",8)(10,"span",9),l(11,"Sponsor: "),a(),m(12,Yr,5,2,"div",10)(13,Kr,2,1,"span",11),o(14,"span",9),l(15,"Winner: "),a(),m(16,Xr,3,6,"a",12)(17,Jr,2,0,"span",11),m(18,na,6,4),a()()()()),n&2&&(d("noMargin",!0),r(),d("cardPaddingHorizontal",0)("cardPaddingVertical",0),r(),g(i.prize.prize_image_url?2:-1),r(4),d("title",wn(i.prize.prize_text)),r(),x(" ",i.prize.prize_text," "),r(5),g(i.prize.sponsor!=null&&i.prize.sponsor.site_url?12:13),r(4),g(i.prize.winner?16:17),r(2),g(i.showDivision?18:-1))},dependencies:[he,j,H,fe,J],styles:[`.card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media only screen and (min-width:601px){.card-content[_ngcontent-%COMP%]{flex-direction:row}}.card-content[_ngcontent-%COMP%]{align-items:center}.card-content[_ngcontent-%COMP%]   .prize-image[_ngcontent-%COMP%]{flex-shrink:0}.card-content[_ngcontent-%COMP%]   .prize-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain;object-position:center;padding-top:8px}@media only screen and (min-width:601px){.card-content[_ngcontent-%COMP%]   .prize-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{padding-bottom:8px;padding-left:8px}}.card-content[_ngcontent-%COMP%]   .prize-image[_ngcontent-%COMP%]:hover{cursor:pointer}.card-content[_ngcontent-%COMP%]   .prize-content[_ngcontent-%COMP%]{width:100%;overflow:hidden;padding:16px}.prize-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;flex-grow:1}.prize-header_title[_ngcontent-%COMP%]{font-weight:600;font-size:18px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.prize-header[_ngcontent-%COMP%]:hover{cursor:pointer}.prize-details[_ngcontent-%COMP%]{display:grid;column-gap:8px;grid-template-columns:auto 4fr;grid-template-rows:1fr 1fr;row-gap:4px;font-weight:500;font-size:16px}.prize-details[_ngcontent-%COMP%]   .prize-label[_ngcontent-%COMP%]{color:#979aa3}.prize-details[_ngcontent-%COMP%]   .prize-value[_ngcontent-%COMP%], .prize-details[_ngcontent-%COMP%]   .prize-value[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#6073eb;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.prize-details[_ngcontent-%COMP%]   .prize-value.link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.prize-details[_ngcontent-%COMP%]   .prize-value.link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.prize-details[_ngcontent-%COMP%]   .prize-value.link[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-left:6px;fill:#6073eb}.divider[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px}
6/*# sourceMappingURL=tournament-prize-item.component-2X6DO4FE.css.map */`]})}}return t})();var oa=(t,c)=>c.category,ra=(t,c)=>c.id;function aa(t,c){if(t&1&&l(0),t&2){let e=p();x(" \xA0(",e.totalPrizeCount(),") ")}}function ca(t,c){t&1&&_(0,"app-spinner",2)}function la(t,c){if(t&1){let e=O();o(0,"app-select-option",6),C("click",function(){let i=f(e).$implicit,s=p(2);return h(s.onClickDivision(i))}),l(1),a()}if(t&2){let e=c.$implicit;d("multipleSelect",!1),r(),x(" ",e.name," ")}}function sa(t,c){if(t&1){let e=O();m(0,ca,1,0,"app-spinner",2),o(1,"div",3)(2,"span"),l(3,"Prizes for: "),a(),o(4,"app-select",4)(5,"div",5),l(6),a(),o(7,"app-select-option",6),C("click",function(){f(e);let i=p();return h(i.onClickDivision(null))}),l(8," Everyone "),a(),S(9,la,2,2,"app-select-option",4,G),a()()}if(t&2){let e=p();g(e.loadingDivisions()?0:-1),r(4),d("multipleSelect",!1),r(2),v(e.divisionFilterTitle),r(),d("multipleSelect",!1),r(2),E(e.divisions)}}function pa(t,c){if(t&1){let e=O();o(0,"app-tournament-prize-item",8),C("clickHeader",function(){let i=f(e).$implicit,s=p(2);return h(s.onClickPrize(i))}),a()}if(t&2){let e=c.$implicit,n=p(2);d("prize",e)("showDivision",n.tournament.has_divisions&&!n.tournament.cfn_style)("divisionType",n.tournament.division_type)}}function da(t,c){if(t&1&&(o(0,"h4"),l(1),a(),S(2,pa,1,3,"app-tournament-prize-item",7,ra)),t&2){let e=c.$implicit;r(),v(e.category),r(),E(e.prizes)}}function ma(t,c){t&1&&_(0,"app-spinner",2)}function ga(t,c){if(t&1){let e=O();o(0,"button",11),C("click",function(){f(e);let i=p(2);return h(i.onClickViewAllPrizes())}),l(1,"View All Prizes"),a()}}function _a(t,c){if(t&1&&l(0),t&2){let e=p(3);x(" for ",e.divisionFilterTitle," ")}}function ua(t,c){if(t&1&&(o(0,"div",10)(1,"div"),_(2,"img",12),o(3,"div",13),l(4," No Prizes Registered "),m(5,_a,1,1),l(6," Yet "),a(),o(7,"div",14),l(8,"Prizes will be displayed here."),a()()()),t&2){let e=p(2);r(5),g(e.divisionFilterTitle?5:-1)}}function Ca(t,c){if(t&1&&(m(0,ga,2,0,"button",9),m(1,ua,9,1,"div",10)),t&2){let e=p();g(e.canLoadMore?0:-1),r(),g(e.prizeCategories!=null&&e.prizeCategories.length?-1:1)}}var Ji=(()=>{class t{constructor(e,n,i){this.tournamentService=e,this.overlay=n,this.dialogService=i,this.loading=F(!0),this.canLoadMore=!1,this.prizeCategories=null,this.totalPrizeCount=F(null),this.loadingDivisions=F(!1),this.divisionFilterTitle="Everyone",this.divisions=null,this.selectedDivisionId=null,this.prizesSubscription=W.EMPTY,this.divisionsSubscription=W.EMPTY}ngOnInit(){this.loadPrizes(),this.maybeLoadDivisions()}ngOnDestroy(){this.prizesSubscription.unsubscribe(),this.divisionsSubscription.unsubscribe()}onClickDivision(e){this.selectedDivisionId=e?.id??null,this.divisionFilterTitle=e===null?"Everyone":e.name,this.divisionSelectComponent?.close(),this.loadPrizes()}onClickPrize(e){let n=this.tournament.has_divisions?this.tournament.division_type:null;Ai.open(this.dialogService,this.overlay,e,n)}onClickViewAllPrizes(){this.loading()||(this.loading.set(!0),this.prizesSubscription.unsubscribe(),this.prizesSubscription=Gt(e=>this.tournamentService.getPrizes(this.tournament.id,e)).subscribe({next:e=>{this.groupPrizesByCategory(e),this.loading.set(!1),this.canLoadMore=!1},error:e=>{this.loading.set(!1),console.error(e)}}))}groupPrizesByCategory(e){let n=new Map;for(let s of e){let u=n.get(s.category)??{category:s.category,prizes:[]};u.prizes.push(s),n.set(s.category,u)}let i=[];for(let s of n.values())i.push(s);this.prizeCategories=i}loadPrizes(){let e=this.getParams();this.prizesSubscription.unsubscribe(),this.loading.set(!0),this.prizesSubscription=this.tournamentService.getPrizes(this.tournament.id,e).pipe(L(n=>{let i=n.headers,s=+i.get("X-Pagination-Current-Page"),u=+i.get("X-Pagination-Page-Count"),M=s<u;return this.totalPrizeCount.set(+i.get("X-Pagination-Total-Count")),{prizes:n.body,canLoadMore:M}})).subscribe({next:n=>{this.groupPrizesByCategory(n.prizes),this.loading.set(!1),this.canLoadMore=n.canLoadMore},error:n=>{this.loading.set(!1),console.error(n)}})}maybeLoadDivisions(){this.tournament.has_divisions&&!this.loadingDivisions()&&(this.loadingDivisions.set(!0),this.divisionsSubscription=this.tournamentService.getDivisions({tournament_id:this.tournament.id}).pipe(mt(e=>{let n=parseInt(e.headers.get("X-Pagination-Page-Count"),10),i=parseInt(e.headers.get("X-Pagination-Current-Page"),10);return i<n?this.tournamentService.getDivisions({tournament_id:this.tournament.id,page:`${i+1}`}):nn()}),L(e=>e.body),dt((e,n)=>e.concat(n))).subscribe(e=>{this.divisions=e,this.loadingDivisions.set(!1)},e=>{console.error(e)}))}getParams(){let e=[];e.push("per-page=6");let n=this.selectedDivisionId?.toString()??"null";return e.push(`division_ids[]=${n}`),new Pt({fromString:e.join("&")})}static{this.\u0275fac=function(n){return new(n||t)(k(z),k(ae),k(Q))}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-prizes"]],viewQuery:function(n,i){if
6(n&1&&te(Ie,5),n&2){let s;$(s=B())&&(i.divisionSelectComponent=s.first)}},inputs:{tournament:"tournament"},standalone:!1,decls:10,vars:3,consts:[[1,"header"],[1,"prizes"],["size","small"],[1,"select-wrapper"],[3,"multipleSelect"],["appSelectTitle",""],[3,"click","multipleSelect"],[3,"prize","showDivision","divisionType"],[3,"clickHeader","prize","showDivision","divisionType"],[1,"btn","primary-light-btn"],[1,"empty","valign-wrapper","center-align"],[1,"btn","primary-light-btn",3,"click"],["src","/assets/icons/prizes-circle.svg"],[1,"title"],[1,"description"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"h3"),l(2," Prizes "),m(3,aa,1,1),a(),m(4,sa,11,4),a(),o(5,"div",1),S(6,da,4,1,null,null,oa),a(),m(8,ma,1,0,"app-spinner",2)(9,Ca,2,2)),n&2&&(r(3),g(i.totalPrizeCount()?3:-1),r(),g(i.tournament.has_divisions&&!i.tournament.cfn_style?4:-1),r(2),E(i.prizeCategories),r(2),g(i.loading()?8:9))},dependencies:[X,Ie,Wt,Je,zt],styles:[`.header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px}.header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{flex-grow:1;margin-bottom:0}.header[_ngcontent-%COMP%]   .select-wrapper[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.header[_ngcontent-%COMP%]   .select-wrapper[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:10px}.prizes[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.prizes[_ngcontent-%COMP%]   app-tournament-prize-item[_ngcontent-%COMP%] + h4[_ngcontent-%COMP%]{margin-top:8px}app-spinner[_ngcontent-%COMP%], button[_ngcontent-%COMP%]{margin-top:16px}button[_ngcontent-%COMP%]{width:100%}.empty[_ngcontent-%COMP%]{height:100%}.empty[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}.empty[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:18px;font-weight:600}.empty[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{color:#979aa3}
7/*# sourceMappingURL=prizes.component-NZYGVNO6.css.map */`,`.breadcrumbs[_ngcontent-%COMP%]{position:fixed;background:#fff;max-width:1420px;width:100%;height:40px;z-index:2;top:60px;display:flex;padding:0 25px;align-items:center;border-bottom:1px solid #EAEDF3}.breadcrumbs[_ngcontent-%COMP%]   .crumb[_ngcontent-%COMP%]{display:flex;align-items:center}.sticky-nav[_ngcontent-%COMP%], .mobile-sticky[_ngcontent-%COMP%]{position:fixed;background:#fff;border-bottom:1px solid #EAEDF3;height:62px;top:100px;z-index:2;max-width:1420px;width:100%}.sticky-footer[_ngcontent-%COMP%]{position:sticky;background:#fff;border-top:1px solid #EAEDF3;padding:10px 20px;bottom:0;z-index:2;max-width:1420px;width:100%;display:flex;flex-wrap:wrap}.sticky-footer[_ngcontent-%COMP%]   .status-label[_ngcontent-%COMP%]{flex-grow:1;flex-basis:100%;margin-bottom:4px;justify-content:center}.sticky-footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{flex-grow:1}.sticky-footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-left:4px}.join-btn[_ngcontent-%COMP%]{text-transform:none;white-space:nowrap;overflow:hidden;position:relative}.join-btn[_ngcontent-%COMP%]:not(.disabled):before{animation:_ngcontent-%COMP%_shine 5s ease-in-out infinite}.join-btn[_ngcontent-%COMP%]:not(.disabled):before{content:"";position:absolute;top:0;width:100%;height:100%;background:linear-gradient(120deg,transparent,rgba(255,255,255,.8),transparent)}@keyframes _ngcontent-%COMP%_shine{0%{left:-100%;transition-property:left}11.5044247788%,to{left:100%;transition-property:left}}.participant-list[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]{display:grid;column-gap:15px;row-gap:20px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]{background-color:#fff;overflow:hidden;display:flex;align-items:center}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:40px;width:40px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:0 16px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;font-size:18px;font-weight:600}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#979aa3}.page-wrapper[_ngcontent-%COMP%]   .sponsor.major-header[_ngcontent-%COMP%]{padding-bottom:20px;margin-bottom:20px}.page-wrapper[_ngcontent-%COMP%]   .sponsor.major-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.mobile-sticky[_ngcontent-%COMP%]{position:sticky;height:48px;overflow:auto;top:40px}@media only screen and (min-width:601px)and (max-width:992px){.mobile-sticky[_ngcontent-%COMP%]{top:96px}}.mobile-sticky[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}.mobile-sticky[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]{display:flex}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .padding[_ngcontent-%COMP%]{padding:0 8px}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:12px 15px;font-size:16px}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{padding-bottom:8px}.mobile-header[_ngcontent-%COMP%]{padding:20px 20px 0;background:#fff}@media only screen and (min-width:993px){.page-wrapper[_ngcontent-%COMP%]{margin-top:40px}}@media only screen and (min-width:601px)and (max-width:992px){.breadcrumbs[_ngcontent-%COMP%]{top:56px}.page-wrapper[_ngcontent-%COMP%]{margin-top:40px}.sticky-nav[_ngcontent-%COMP%]{top:96px}}@media only screen and (max-width:600px){.breadcrumbs[_ngcontent-%COMP%]{position:sticky;top:0}.sticky-nav[_ngcontent-%COMP%]{position:sticky;top:40px}.page-wrapper[_ngcontent-%COMP%]{transform:translateZ(0)}}.nav-tabs[_ngcontent-%COMP%]{display:flex;align-items:center}.nav-tabs[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{padding:19px 20px;font-size:18px;font-weight:600;line-height:23px;display:inline-block;color:#979aa3;cursor:pointer;white-space:nowrap}.nav-tabs[_ngcontent-%COMP%]   .link.active[_ngcontent-%COMP%]{color:#6073eb;border-bottom:4px solid #6073eb;padding-bottom:15px}.nav-tabs[_ngcontent-%COMP%]   .join[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-shrink:0;justify-content:flex-end}.nav-tabs[_ngcontent-%COMP%]   .join[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:4px}.page-wrapper[_ngcontent-%COMP%]{background-color:#f8f8f8;font-family:Cabin}.page-wrapper[_ngcontent-%COMP%]   .major-header[_ngcontent-%COMP%]{background:#fff;border:1px solid #EAEDF3;box-shadow:0 1px 3px #0000000a;border-radius:5px;padding:20px 20px 0}.page-wrapper[_ngcontent-%COMP%]   .major-header[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]{padding:0}.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{margin-bottom:30px}@media not print{.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{padding-top:30px}}@media only screen and (max-width:992px){.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{padding:8px 15px 0}}.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{width:100%;height:1px;background-color:#eaedf3;margin-top:10px;margin-bottom:10px}app-card-footer[_ngcontent-%COMP%]  a, app-card-footer[_ngcontent-%COMP%]  button{margin:0!important;width:100%;text-transform:unset}app-tabs[_ngcontent-%COMP%]  div:first-child{padding-left:0;padding-right:0}app-tab-link[_ngcontent-%COMP%]:first-of-type  a{margin-left:0!important}.live-tab-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.live-indicator[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background:#f24d33;margin-right:10px}app-ad[_ngcontent-%COMP%]  .card{margin:0!important}.dropdown-button[_ngcontent-%COMP%]{color:#3d4248;display:flex;align-items:center;background:#fff;border:1px solid #EAEDF3;box-sizing:border-box;border-radius:4px;padding:10px!important}.dropdown-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex-grow:1;text-align:left}#dropdown-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:left}#dropdown-list[_ngcontent-%COMP%]   .live-indicator[_ngcontent-%COMP%]{display:inline-block}@media not print{article[_ngcontent-%COMP%] + article[_ngcontent-%COMP%]{margin-top:40px}}h3[_ngcontent-%COMP%]{font-weight:700;font-size:24px;margin:0 0 15px}h4[_ngcontent-%COMP%]{font-weight:600;font-size:18px;margin:0}.flex-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.flex-container.center-align[_ngcontent-%COMP%]{padding:11px 0}.flex-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{color:#6073eb;font-weight:600;cursor:pointer}.weak[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:22px;color:#979aa3}.faint-btn[_ngcontent-%COMP%]{background:#f0f1fd;color:#6073eb;box-shadow:none;text-transform:none}.status-label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.status-label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:4px}@media print{.major-header[_ngcontent-%COMP%]{background:none!important;border:none!important;box-shadow:none!important;padding:0!important}}.video-card[_ngcontent-%COMP%]{position:relative}.video-card[_ngcontent-%COMP%]:before{content:"";display:block;padding-bottom:56.25%}.video-card[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%], .video-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}.video-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;object-position:center}.video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]{background-color:#00000080;display:flex;justify-content:center;align-items:center;color:#fff}.video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]:hover{cursor:pointer}.video-container[_ngcontent-%COMP%]{margin-top:20px}.join-controls[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;
7gap:4px}.join-controls[_ngcontent-%COMP%]   .code-btn[_ngcontent-%COMP%]{order:2}.how[_ngcontent-%COMP%]{overflow:auto}.how[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:inline}.how-wrap[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #eaedf3;box-sizing:border-box;border-radius:4px;padding:20px;margin:0 20px 10px}.how-wrap[_ngcontent-%COMP%]:first-child{margin-top:20px}.how-wrap[_ngcontent-%COMP%]:last-child{margin-bottom:20px}.how-wrap[_ngcontent-%COMP%]{text-align:center}.how-wrap[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:20px 0 10px;font-size:21px;font-weight:700}.how-wrap[_ngcontent-%COMP%]   .weak[_ngcontent-%COMP%]{font-size:16px;font-weight:400;text-transform:none}@media only screen and (min-width:601px){app-modal[_ngcontent-%COMP%]  .modal-container{max-width:480px}}
8/*# sourceMappingURL=tournament.component-7LCOQPBN.css.map */`]})}}return t})();var ha="aa:tournament:show_recruit_overlay";function Kt(t){return`${ha}:${t}`}var We=(()=>{class t{constructor(){this.ref=P(Ei),this.data=P(Ii),this.toast=P(Ti)}static requestShow(e){if(e.show_referral_prompts){let n=Kt(e.id);mi(n,!0)}}static shouldShow(e){let n=!1;if(e.show_referral_prompts){let i=Kt(e.id);n=gi(i,!1)}return n}static open(e,n,i,s,u,M){let V=`https://anglersatlas.com/event/${n}/${s}`,q={userId:e,eventId:n,eventName:i,eventUrl:V};return u.open(t,{positionStrategy:M.position().global().centerHorizontally().centerVertically(),scrollStrategy:M.scrollStrategies.block(),closeOnDestroy:!0,closeOnNavigation:!0,closeOnOverlayDetachments:!0,hasBackdrop:!0,width:"100%",data:q})}ngOnInit(){this.name=this.data.eventName,this.link=`${this.data.eventUrl}?refuid=${this.data.userId}`;let e=Kt(this.data.eventId);di(e)}onClickClose(){this.ref.close()}onClickCopyLink(){return Vt(this,null,function*(){let e="Link copied!";try{yield navigator.clipboard.writeText(this.link)}catch(n){console.error(n),e="Failed to copy link"}this.toast.present({message:e})})}onClickShareLink(){return Vt(this,null,function*(){let e={title:this.name,text:`Join ${this.name}`,url:this.link};if(navigator.canShare(e))try{yield navigator.share(e)}catch(n){console.error(n)}else console.error("no share :(")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["aa-tournament-recruit-dialog"]],hostAttrs:[1,"tailwind"],decls:19,vars:2,consts:[[1,"mx-auto","w-full","max-w-lg","bg-white","rounded","p-5","flex","flex-col","gap-y-5"],[1,"flex","items-center","gap-x-2"],[1,"grow"],[1,"tw-btn","tw-btn-icon",3,"click"],["name","close"],["disabled","","type","text",1,"browser-default","grow","border","border-gray-100","rounded",3,"value"],[1,"shrink-0","tw-btn","tw-btn-filled","tw-btn-accent",3,"click"],[1,"w-full","h-px","bg-gray-100"],[1,"tw-btn","tw-btn-filled","tw-btn-accent",3,"click"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"div",1)(2,"h3",2),l(3,"Recruit Friends, Win Prizes"),a(),o(4,"button",3),C("click",function(){return i.onClickClose()}),_(5,"svg-icon",4),a()(),o(6,"p"),l(7,"Refer your friends to sign up for "),o(8,"b"),l(9),a(),l(10," using the link below and you could win cash prizes and gift cards!"),a(),o(11,"div",1),_(12,"input",5),o(13,"button",6),C("click",function(){return i.onClickCopyLink()}),l(14,"Copy Link"),a()(),_(15,"div",7),o(16,"div",1)(17,"button",8),C("click",function(){return i.onClickShareLink()}),l(18,"Share"),a()()()),n&2&&(r(9),v(i.name),r(3),d("value",i.link))},dependencies:[ce],encapsulation:2})}}return t})();var xa=(t,c)=>c.url;function va(t,c){if(t&1){let e=O();o(0,"h3",1),l(1," Rules "),o(2,"button",4),C("click",function(){f(e);let i=p();return h(i.onClickPrintRules())}),l(3,"Print Rules"),a()()}}function ba(t,c){if(t&1&&(o(0,"div",8)(1,"span",9),l(2,"PHONE NUMBER"),a(),o(3,"span",10),l(4),a()()),t&2){let e=p(2);r(4),v(e.tournament.contact_phone)}}function Pa(t,c){if(t&1&&(o(0,"div",8)(1,"span",9),l(2,"EMAIL"),a(),o(3,"div",11)(4,"a",12),l(5),a(),se(),o(6,"svg",13),_(7,"use",14),a()()()),t&2){let e=p(2);r(4),d("href",Se("mailto:",e.tournament.contact_email),T),r(),v(e.tournament.contact_email)}}function Oa(t,c){if(t&1&&(o(0,"div",8)(1,"span",9),l(2,"WEBSITE"),a(),o(3,"div",11)(4,"a",15),l(5),a(),se(),o(6,"svg",13),_(7,"use",14),a()()()),t&2){let e=p(2);r(4),d("href",e.tournament.contact_site,T),r(),v(e.tournament.contact_site)}}function Ma(t,c){if(t&1&&(o(0,"div",11)(1,"a",15),l(2),a(),se(),o(3,"svg",13),_(4,"use",14),a()()),t&2){let e=c.$implicit;r(),d("href",e.url,T),r(),v(e.name)}
8}function wa(t,c){if(t&1&&(o(0,"div",8)(1,"span",9),l(2,"SOCIAL MEDIA"),a(),S(3,Ma,5,2,"div",11,xa),a()),t&2){let e=p(2);r(3),E(e.tournament.social_links)}}function ya(t,c){if(t&1&&(o(0,"app-card",2)(1,"div",5)(2,"h4"),l(3,"Event Contact Info"),a(),_(4,"div",6),o(5,"div",7),m(6,ba,5,1,"div",8),m(7,Pa,8,3,"div",8),m(8,Oa,8,2,"div",8),m(9,wa,5,0,"div",8),a()()()),t&2){let e=p();d("noMargin",!0),r(),d("cardPaddingHorizontal",20)("cardPaddingVertical",20),r(5),g(e.tournament.contact_phone?6:-1),r(),g(e.tournament.contact_email?7:-1),r(),g(e.tournament.contact_site?8:-1),r(),g(e.tournament.social_links&&e.tournament.social_links.length!=0?9:-1)}}function Ta(t,c){}function ka(t,c){t&1&&y(0,Ta,0,0,"ng-template")}function Sa(t,c){if(t&1){let e=O();o(0,"button",19),C("click",function(){f(e);let i=p(2);return h(i.onClickExpandButton())}),l(1),a()}if(t&2){let e=p(2);r(),x(" ",e.expanded?"View Less":"View More"," ")}}function Ea(t,c){if(t&1&&(o(0,"app-card",2)(1,"div",16),y(2,ka,1,0,null,17),a()(),m(3,Sa,2,1,"button",18)),t&2){let e=p(),n=R(5);D("expandable",e.expandable)("expanded",e.expanded),d("noMargin",!0),r(),d("cardPaddingHorizontal",20)("cardPaddingVertical",20),r(),d("ngTemplateOutlet",n),r(),g(e.expandable&&e.showExpandButton?3:-1)}}function Ia(t,c){if(t&1&&(o(0,"h4"),l(1),a(),_(2,"div",20),b(3,"sanitizeHtml")),t&2){let e=p(2);r(),x("",e.tournament.year," Changes and Updates"),r(),d("innerHTML",w(3,2,e.tournament.changes_for_current_year),De)}}function za(t,c){if(t&1&&(m(0,Ia,4,4),_(1,"div",20),b(2,"sanitizeHtml"),_(3,"div",21)),t&2){let e=p();g(e.tournament.changes_for_current_year?0:-1),r(),d("innerHTML",w(2,2,e.details),De)}}function Da(t,c){if(t&1&&(o(0,"h4"),l(1),a(),_(2,"div",20),b(3,"sanitizeHtml")),t&2){let e=p(2);r(),x("",e.tournament.year," Changes and Updates"),r(),d("innerHTML",w(3,2,e.tournament.changes_for_current_year),De)}}function Ra(t,c){if(t&1&&(m(0,Da,4,4),_(1,"div",20),b(2,"sanitizeHtml"),_(3,"div",21)),t&2){let e=p();g(e.tournament.changes_for_current_year?0:-1),r(),d("innerHTML",w(2,2,e.details),De)}}var Dt=(()=>{class t{constructor(){this.full=!0,this.expanded=!1,this.showExpandButton=!0,this.hasContactInfo=!1,this.expandable=!1}ngOnChanges(e){e.tournament&&(this.hasContactInfo=!!this.tournament.contact_phone||!!this.tournament.contact_email||!!this.tournament.contact_site||this.tournament.social_links!=null&&this.tournament.social_links.length!=0,this.details=this.tournament.details,this.expandable=!!this.tournament.details||!!this.tournament.changes_for_current_year)}onClickExpandButton(){this.expanded=!this.expanded}onClickPrintRules(){window.print()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-rules"]],inputs:{tournament:"tournament",full:"full",expanded:"expanded",showExpandButton:"showExpandButton"},standalone:!1,features:[ze],decls:8,vars:6,consts:[["rulesContent",""],[1,"hide-on-print"],[1,"hide-on-print",3,"noMargin"],[1,"html","show-only-on-print",3,"innerHTML"],[1,"btn","flat-btn",3,"click"],["appCardContent","",1,"contact-info",3,"cardPaddingHorizontal","cardPaddingVertical"],[1,"divider"],[1,"contact-info_details"],[1,"detail"],[1,"label"],[1,"value"],[1,"value","link"],[3,"href"],["width","20","height","20"],[0,"xlink","href","#icon-outbound-link"],["target","_blank",3,"href"],["appCardContent","",3,"cardPaddingHorizontal","cardPaddingVertical"],[4,"ngTemplateOutlet"],[1,"btn","primary-light-btn","hide-on-print"],[1,"btn","primary-light-btn","hide-on-print",3,"click"],[1,"html",3,"innerHTML"],[1,"scrim","hide-on-print"]],template:function(n,i){n&1&&(m(0,va,4,0,"h3",1),m(1,ya,10,7,"app-card",2),m(2,Ea,4,9)(3,za,4,4),y(4,Ra,4,4,"ng-template",null,0,U),_(6,"div",3),b(7,"sanitizeHtml")),n&2&&(g(i.full?0:-1),r(),g(i.hasContactInfo&&i.full?1:-1),r(),g(i.full?2:3),r(4),d("innerHTML",w(7,4,i.details),De))},dependencies:[re,j,H,Bi],styles:[`h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}h3[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{width:100px;padding:0;margin:0}app-card[_ngcontent-%COMP%] + app-card[_ngcontent-%COMP%]{display:block;margin-top:15px}.contact-info[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:15px}.contact-info_details[_ngcontent-%COMP%]{display:grid;column-gap:20px;row-gap:20px}@media only screen and (min-width:601px){.contact-info_details[_ngcontent-%COMP%]{grid-template-columns:50% 50%}}.contact-info_details[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{display:flex;flex-direction:column}.contact-info_details[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-weight:600;font-size:12px;line-height:15px;color:#979aa3}.contact-info_details[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-weight:400;font-size:16px}.contact-info_details[_ngcontent-%COMP%]   .value.link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.contact-info_details[_ngcontent-%COMP%]   .value.link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#6073eb}.contact-info_details[_ngcontent-%COMP%]   .value.link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.contact-info_details[_ngcontent-%COMP%]   .value.link[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-left:6px;fill:#6073eb}button[_ngcontent-%COMP%]{width:100%;margin-top:15px}.expandable[_ngcontent-%COMP%]:not(.expanded)   .card-content[_ngcontent-%COMP%]{max-height:280px;overflow:hidden;position:relative}.expandable[_ngcontent-%COMP%]:not(.expanded)   .card-content[_ngcontent-%COMP%]   .scrim[_ngcontent-%COMP%]{display:block;background:linear-gradient(180deg,#fff0,#fff)}.expandable[_ngcontent-%COMP%]   .scrim[_ngcontent-%COMP%]{display:none;position:absolute;
8left:0;right:0;bottom:0;height:40px}.html[_ngcontent-%COMP%]{word-break:break-word}.html[_ngcontent-%COMP%]  img{max-width:100%;object-fit:contain}.html[_ngcontent-%COMP%]  a{color:#16a05d}.html[_ngcontent-%COMP%]  a:hover{text-decoration:underline}@media print{.expandable[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{max-height:unset!important}}
9/*# sourceMappingURL=rules.component-75B7ZZVH.css.map */`,`.breadcrumbs[_ngcontent-%COMP%]{position:fixed;background:#fff;max-width:1420px;width:100%;height:40px;z-index:2;top:60px;display:flex;padding:0 25px;align-items:center;border-bottom:1px solid #EAEDF3}.breadcrumbs[_ngcontent-%COMP%]   .crumb[_ngcontent-%COMP%]{display:flex;align-items:center}.sticky-nav[_ngcontent-%COMP%], .mobile-sticky[_ngcontent-%COMP%]{position:fixed;background:#fff;border-bottom:1px solid #EAEDF3;height:62px;top:100px;z-index:2;max-width:1420px;width:100%}.sticky-footer[_ngcontent-%COMP%]{position:sticky;background:#fff;border-top:1px solid #EAEDF3;padding:10px 20px;bottom:0;z-index:2;max-width:1420px;width:100%;display:flex;flex-wrap:wrap}.sticky-footer[_ngcontent-%COMP%]   .status-label[_ngcontent-%COMP%]{flex-grow:1;flex-basis:100%;margin-bottom:4px;justify-content:center}.sticky-footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{flex-grow:1}.sticky-footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-left:4px}.join-btn[_ngcontent-%COMP%]{text-transform:none;white-space:nowrap;overflow:hidden;position:relative}.join-btn[_ngcontent-%COMP%]:not(.disabled):before{animation:_ngcontent-%COMP%_shine 5s ease-in-out infinite}.join-btn[_ngcontent-%COMP%]:not(.disabled):before{content:"";position:absolute;top:0;width:100%;height:100%;background:linear-gradient(120deg,transparent,rgba(255,255,255,.8),transparent)}@keyframes _ngcontent-%COMP%_shine{0%{left:-100%;transition-property:left}11.5044247788%,to{left:100%;transition-property:left}}.participant-list[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]{display:grid;column-gap:15px;row-gap:20px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]{background-color:#fff;overflow:hidden;display:flex;align-items:center}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:40px;width:40px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:0 16px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;font-size:18px;font-weight:600}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#979aa3}.page-wrapper[_ngcontent-%COMP%]   .sponsor.major-header[_ngcontent-%COMP%]{padding-bottom:20px;margin-bottom:20px}.page-wrapper[_ngcontent-%COMP%]   .sponsor.major-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.mobile-sticky[_ngcontent-%COMP%]{position:sticky;height:48px;overflow:auto;top:40px}@media only screen and (min-width:601px)and (max-width:992px){.mobile-sticky[_ngcontent-%COMP%]{top:96px}}.mobile-sticky[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}.mobile-sticky[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]{display:flex}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .padding[_ngcontent-%COMP%]{padding:0 8px}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:12px 15px;font-size:16px}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{padding-bottom:8px}.mobile-header[_ngcontent-%COMP%]{padding:20px 20px 0;background:#fff}@media only screen and (min-width:993px){.page-wrapper[_ngcontent-%COMP%]{margin-top:40px}}@media only screen and (min-width:601px)and (max-width:992px){.breadcrumbs[_ngcontent-%COMP%]{top:56px}.page-wrapper[_ngcontent-%COMP%]{margin-top:40px}.sticky-nav[_ngcontent-%COMP%]{top:96px}}@media only screen and (max-width:600px){.breadcrumbs[_ngcontent-%COMP%]{position:sticky;top:0}.sticky-nav[_ngcontent-%COMP%]{position:sticky;top:40px}.page-wrapper[_ngcontent-%COMP%]{transform:translateZ(0)}}.nav-tabs[_ngcontent-%COMP%]{display:flex;align-items:center}.nav-tabs[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{padding:19px 20px;font-size:18px;font-weight:600;line-height:23px;display:inline-block;color:#979aa3;cursor:pointer;white-space:nowrap}.nav-tabs[_ngcontent-%COMP%]   .link.active[_ngcontent-%COMP%]{color:#6073eb;border-bottom:4px solid #6073eb;padding-bottom:15px}.nav-tabs[_ngcontent-%COMP%]   .join[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-shrink:0;justify-content:flex-end}.nav-tabs[_ngcontent-%COMP%]   .join[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:4px}.page-wrapper[_ngcontent-%COMP%]{background-color:#f8f8f8;font-family:Cabin}.page-wrapper[_ngcontent-%COMP%]   .major-header[_ngcontent-%COMP%]{background:#fff;border:1px solid #EAEDF3;box-shadow:0 1px 3px #0000000a;border-radius:5px;padding:20px 20px 0}.page-wrapper[_ngcontent-%COMP%]   .major-header[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]{padding:0}.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{margin-bottom:30px}@media not print{.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{padding-top:30px}}@media only screen and (max-width:992px){.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{padding:8px 15px 0}}.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{width:100%;height:1px;background-color:#eaedf3;margin-top:10px;margin-bottom:10px}app-card-footer[_ngcontent-%COMP%]  a, app-card-footer[_ngcontent-%COMP%]  button{margin:0!important;width:100%;text-transform:unset}app-tabs[_ngcontent-%COMP%]  div:first-child{padding-left:0;padding-right:0}app-tab-link[_ngcontent-%COMP%]:first-of-type  a{margin-left:0!important}.live-tab-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.live-indicator[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background:#f24d33;margin-right:10px}app-ad[_ngcontent-%COMP%]  .card{margin:0!important}.dropdown-button[_ngcontent-%COMP%]{color:#3d4248;display:flex;align-items:center;background:#fff;border:1px solid #EAEDF3;box-sizing:border-box;border-radius:4px;padding:10px!important}.dropdown-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex-grow:1;text-align:left}#dropdown-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:left}#dropdown-list[_ngcontent-%COMP%]   .live-indicator[_ngcontent-%COMP%]{display:inline-block}@media not print{article[_ngcontent-%COMP%] + article[_ngcontent-%COMP%]{margin-top:40px}}h3[_ngcontent-%COMP%]{font-weight:700;font-size:24px;margin:0 0 15px}h4[_ngcontent-%COMP%]{font-weight:600;font-size:18px;margin:0}.flex-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.flex-container.center-align[_ngcontent-%COMP%]{padding:11px 0}.flex-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{color:#6073eb;font-weight:600;cursor:pointer}.weak[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:22px;color:#979aa3}.faint-btn[_ngcontent-%COMP%]{background:#f0f1fd;color:#6073eb;box-shadow:none;text-transform:none}.status-label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.status-label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:4px}@media print{.major-header[_ngcontent-%COMP%]{background:none!important;border:none!important;box-shadow:none!important;padding:0!important}}.video-card[_ngcontent-%COMP%]{position:relative}.video-card[_ngcontent-%COMP%]:before{content:"";display:block;padding-bottom:56.25%}.video-card[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%], .video-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}.video-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;object-position:center}.video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]{background-color:#00000080;display:flex;justify-content:center;align-items:center;color:#fff}.video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]:hover{cursor:pointer}.video-container[_ngcontent-%COMP%]{margin-top:20px}.join-controls[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;
9gap:4px}.join-controls[_ngcontent-%COMP%]   .code-btn[_ngcontent-%COMP%]{order:2}.how[_ngcontent-%COMP%]{overflow:auto}.how[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:inline}.how-wrap[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #eaedf3;box-sizing:border-box;border-radius:4px;padding:20px;margin:0 20px 10px}.how-wrap[_ngcontent-%COMP%]:first-child{margin-top:20px}.how-wrap[_ngcontent-%COMP%]:last-child{margin-bottom:20px}.how-wrap[_ngcontent-%COMP%]{text-align:center}.how-wrap[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:20px 0 10px;font-size:21px;font-weight:700}.how-wrap[_ngcontent-%COMP%]   .weak[_ngcontent-%COMP%]{font-size:16px;font-weight:400;text-transform:none}@media only screen and (min-width:601px){app-modal[_ngcontent-%COMP%]  .modal-container{max-width:480px}}
10/*# sourceMappingURL=tournament.component-7LCOQPBN.css.map */`]})}}return t})();var Fa=["rulesTemplate"],ja=["codeContinue"],Va=["codeInput"],La=()=>[],Aa=(t,c)=>c.id;function Na(t,c){if(t&1&&_(0,"img",9),t&2){let e=p();d("src",e.logoUrl,T)}}function $a(t,c){}function Ba(t,c){t&1&&y(0,$a,0,0,"ng-template")}function Ua(t,c){if(t&1&&y(0,Ba,1,0,null,16),t&2){p(2);let e=R(8);d("ngTemplateOutlet",e)}}function Ha(t,c){}function qa(t,c){t&1&&y(0,Ha,0,0,"ng-template")}function Wa(t,c){if(t&1&&y(0,qa,1,0,null,16),t&2){p(2);let e=R(10);d("ngTemplateOutlet",e)}}function Za(t,c){t&1&&(o(0,"div",12),l(1,"Payment form will open in new window, please make sure popups are enabled."),a())}function Qa(t,c){t&1&&_(0,"app-spinner",18),t&2&&d("size",16)}function Ga(t,c){if(t&1&&l(0),t&2){let e=p(3);x(" ",e.nextButtonLabelMap[e.screen]," ")}}function Ya(t,c){if(t&1){let e=O();o(0,"button",17),C("click",function(){f(e);let i=p(2);return h(i.onClickNext(i.screen))}),m(1,Qa,1,1,"app-spinner",18)(2,Ga,1,1),a()}if(t&2){let e=p(2);d("disabled",e.nextButtonDisabled),r(),g(e.loadingCheckout||e.acceptingTerms?1:2)}}function Ka(t,c){if(t&1){let e=O();m(0,Ua,1,1)(1,Wa,1,1),o(2,"div",11),m(3,Za,2,0,"div",12),o(4,"div",13)(5,"button",14),C("click",function(){f(e);let i=p();return h(i.onClickBack(i.screen))}),l(6),a(),m(7,Ya,3,2,"button",15),a()()}if(t&2){let e,n=p();g((e=n.screen)==="REGISTER"?0:e==="TERMS"?1:-1),r(3),g(n.isEntryFree?-1:3),r(2),d("disabled",n.loadingCheckout),r(),x(" ",n.backButtonLabelMap[n.screen]," "),r(),g(n.screen!="REGISTER"?7:-1)}}function Xa(t,c){t&1&&_(0,"app-spinner")}function Ja(t,c){t&1&&(o(0,"span"),l(1,"-"),a())}function ec(t,c){if(t&1){let e=O();o(0,"input",30,5),C("input",function(i){f(e);let s=p(2);return h(s.handleCodeInput(i))})("keydown",function(i){f(e);let s=p(2);return h(s.handleCodeKeyDown(i))})("keyup",function(i){f(e);let s=p(2);return h(s.handleCodeKeyUp(i))})("focus",function(i){f(e);let s=p(2);return h(s.handleCodeFocus(i))})("paste",function(i){f(e);let s=p(2);return h(s.handleCodePaste(i))}),a(),m(2,Ja,2,0,"span")}if(t&2){let e=c.$index;d("id",e===0?"code":null),r(2),g(e===3?2:-1)}}function tc(t,c){if(t&1&&(o(0,"p",27),l(1),a()),t&2){let e=p(2);d("@fadeInExpand",void 0),r(),x(" ",e.registrationCodeError," ")}}function nc(t,c){t&1&&_(0,"app-spinner",18),t&2&&d("size",16)}function ic(t,c){t&1&&l(0," Continue ")}function oc(t,c){if(t&1){let e=O();o(0,"h3",19),l(1,"Activate Registration"),a(),o(2,"app-card",20),_(3,"app-card-header",21),o(4,"div",22)(5,"div",23)(6,"label",24),l(7,"Registration Code\xA0"),o(8,"span",25),l(9,"*"),a()(),o(10,"div",26),S(11,ec,3,2,null,null,G),a(),m(13,tc,2,2,"p",27),a(),o(14,"div",28)(15,"button",29,4),C("click",function(){f(e);let i=p();return h(i.onClickNext("REGISTER"))}),m(17,nc,1,1,"app-spinner",18)(18,ic,1,0),a()()()()}if(t&2){let e=p();r(2),d("noMargin",!0),r(2),d("cardPaddingHorizontal",16)("cardPaddingVertical",16),r(),D("invalid",!!e.registrationCodeError),r(6),E(Pe(8,La).constructor(8)),r(2),g(e.registrationCodeError?13:-1),r(2),d("disabled",e.registrationCodeLoading),r(2),g(e.registrationCodeLoading?17:18)}}function rc(t,c){}function ac(t,c){t&1&&y(0,rc,0,0,"ng-template")}function cc(t,c){if(t&1&&(o(0,"option",37),l(1),a()),t&2){let e=c.$implicit;d("value",e.id),r(),v(e.title)}}function lc(t,c){t&1&&l(0," Phone number is required ")}function sc(t,c){if(t&1&&l(0),t&2){let e=p(3);x(" ",(e.acceptTermsPhoneNumber.errors==null?null:e.acceptTermsPhoneNumber.errors.invalid)??"Phone number is invali
10d"," ")}}function pc(t,c){if(t&1&&(o(0,"p",27),m(1,lc,1,0)(2,sc,1,1),a()),t&2){let e=p(2);r(),g(e.acceptTermsPhoneNumber.errors!=null&&e.acceptTermsPhoneNumber.errors.required?1:2)}}function dc(t,c){t&1&&l(0," Teammate Name is required ")}function mc(t,c){if(t&1&&l(0),t&2){let e=p(4);x(" ",e.acceptTermsTeammateName.errors.invalid??"Teammate Name is invalid"," ")}}function gc(t,c){if(t&1&&(o(0,"p",27),m(1,dc,1,0)(2,mc,1,1),a()),t&2){let e=p(3);r(),g(e.acceptTermsTeammateName.errors!=null&&e.acceptTermsTeammateName.errors.required?1:2)}}function _c(t,c){if(t&1){let e=O();o(0,"div",33)(1,"label",46),l(2,"Teammate Name\xA0"),o(3,"span",25),l(4,"*"),a()(),o(5,"input",47),C("keyup",function(i){f(e);let s=p(2);return h(s.onAcceptTermsKeyup(i))}),a(),m(6,gc,3,1,"p",27),o(7,"p",42),l(8,"Enter your teammate's name for the leaderboard"),a()()}if(t&2){let e=p(2);D("invalid",e.acceptTermsTeammateNameInvalid),r(6),g(e.acceptTermsTeammateNameInvalid?6:-1)}}function uc(t,c){t&1&&l(0," Postal Code is required ")}function Cc(t,c){if(t&1&&l(0),t&2){let e=p(4);x(" ",e.acceptTermsPostalCode.errors.invalid??"Postal Code is invalid"," ")}}function fc(t,c){if(t&1&&(o(0,"p",27),m(1,uc,1,0)(2,Cc,1,1),a()),t&2){let e=p(3);r(),g(e.acceptTermsPostalCode.errors!=null&&e.acceptTermsPostalCode.errors.required?1:2)}}function hc(t,c){if(t&1){let e=O();o(0,"div",33)(1,"label",48),l(2,"Postal Code\xA0"),o(3,"span",25),l(4,"*"),a()(),o(5,"input",49),C("keyup",function(i){f(e);let s=p(2);return h(s.onAcceptTermsKeyup(i))}),a(),m(6,fc,3,1,"p",27),o(7,"p",42),l(8,"You'll be placed in towns based on your location. Please make sure your postal code is up to date."),a()()}if(t&2){let e=p(2);D("invalid",e.acceptTermsPostalCodeInvalid),r(6),g(e.acceptTermsPostalCodeInvalid?6:-1)}}function xc(t,c){t&1&&(o(0,"span",25),l(1,"*"),a())}function vc(t,c){if(t&1&&(o(0,"option",37),l(1),a()),t&2){let e=c.$implicit;d("value",e.id),r(),x(" ",e.name," ")}}function bc(t,c){if(t&1&&l(0),t&2){let e=p(4);x(" ",e.divisionTitle," is required ")}}function Pc(t,c){if(t&1&&l(0),t&2){let e=p(4);x(" ",e.acceptTermsDivision.errors.invalid??e.divisionTitle+" is invalid"," ")}}function Oc(t,c){if(t&1&&(o(0,"p",27),m(1,bc,1,1)(2,Pc,1,1),a()),t&2){let e=p(3);r(),g(e.acceptTermsDivision.errors!=null&&e.acceptTermsDivision.errors.required?1:2)}}function Mc(t,c){t&1&&_(0,"p",42)}function wc(t,c){if(t&1&&(xn(0),l(1),vn()),t&2){let e=p(4);r(),x(" ",e.divisionTitle," is required")}}function yc(t,c){if(t&1&&l(0),t&2){let e=p(4);x(" ",e.acceptTermsDivision.errors.invalid??e.divisionTitle+" is invalid"," ")}}function Tc(t,c){if(t&1&&(o(0,"p",27),y(1,wc,2,1,"ng-container",54)(2,yc,1,1,"ng-template",null,6,U),a()),t&2){let e=R(3),n=p(3);r(),d("ngIf",n.acceptTermsDivision.errors==null?null:n.acceptTermsDivision.errors.required)("ngIfElse",e)}}function kc(t,c){if(t&1){let e=O();o(0,"div",33)(1,"label",50),l(2),m(3,xc,2,0,"span",25),a(),o(4,"div",35)(5,"select",51),C("keyup",function(i){f(e);let s=p(2);return h(s.onAcceptTermsKeyup(i))}),o(6,"option",37),l(7),a(),y(8,vc,2,2,"option",52),a(),o(9,"div",38)(10,"i",39),l(11,"arrow_drop_down"),a()(),m(12,Oc,3,1,"p",27),a(),m(13,Mc,1,0,"p",42),y(14,Tc,4,2,"p",53),a()}if(t&2){let e=p(2);D("invalid",e.acceptTermsDivisionInvalid),r(2),x("",e.divisionTitle," "),r(),g(e.tournament.division_required_before_entry?3:-1),r(2),d("required",e.tournament.division_required_before_entry),r(),d("value",null),r(),v(e.tournament.division_picker_empty_text),r(),d("ngForOf",e.tournament.divisions),r(4),g(e.acceptTermsDivisionInvalid?12:-1),r(),g(e.tournament.division_picker_empty_text?13:-1),r(),d("ngIf",e.acceptTermsDivisionInvalid)}}function Sc(t,c){t&1&&(l(0," \xA0"),o(1,"span",25),l(2,"*"),a())}function Ec(t,c){if(t&1&&l(0),t&2){let e=p(2).$implicit;x(" ",e.title," is required ")}}function Ic(t,c){if(t&1&&l(0),t&2){let e=p(2).$implicit,n=p(2);x(" ",n.acceptTermsForm.get(e.key).errors.invalid," ")}}function zc(t,c){if(t&1&&l(0),t&2){let e=p(2).$implicit;x(" ",e.title," is invalid ")}}function Dc(t,c){if(t&1&&(o(0,"p",27),m(1,Ec,1,1)(2,Ic,1,1)(3,zc,1,1),a()),t&2){let e,n=p().$implicit,i=p(2);r(),g((e=i.acceptTermsForm.get(n.key).errors)!=null&&e.required?1:i.acceptTermsForm.get(n.key).errors.invalid?2:3)}}function Rc(t,c){if(t&1&&(o(0,"p",42),l(1),a()),t&2){let e=p().$implicit;r(),x(" ",e.hint," ")}}function Fc(t,c){if(t&1){let e=O();
10o(0,"div",33)(1,"label",55),l(2),m(3,Sc,3,0),a(),o(4,"input",56),C("keyup",function(i){f(e);let s=p(2);return h(s.onAcceptTermsKeyup(i))}),a(),m(5,Dc,4,1,"p",27),m(6,Rc,2,1,"p",42),a()}if(t&2){let e=c.$implicit,n=p(2);D("invalid",n.isInvalid(n.acceptTermsForm.get(e.key))),r(),d("for",e.key),r(),x(" ",e.title," "),r(),g(e.is_required?3:-1),r(),d("id",e.key)("name",e.key)("formControlName",e.key)("type",e.type=="integer"?"number":"text")("required",e.is_required),r(),g(n.isInvalid(n.acceptTermsForm.get(e.key))?5:-1),r(),g(e.hint?6:-1)}}function jc(t,c){if(t&1){let e=O();o(0,"h3",19),l(1,"Confirm Info"),a(),o(2,"app-card",20),_(3,"app-card-header",31),o(4,"div",22)(5,"form",32),y(6,ac,1,0,null,16),o(7,"div",33)(8,"label",34),l(9,"Ticket Type"),a(),o(10,"div",35)(11,"select",36),C("keyup",function(i){f(e);let s=p();return h(s.onAcceptTermsKeyup(i))}),l(12," > "),S(13,cc,2,2,"option",37,G),a(),o(15,"div",38)(16,"i",39),l(17,"arrow_drop_down"),a()()()(),o(18,"div",33)(19,"label",40),l(20,"Phone Number\xA0"),o(21,"span",25),l(22,"*"),a()(),o(23,"input",41),C("keyup",function(i){f(e);let s=p();return h(s.onAcceptTermsKeyup(i))}),a(),m(24,pc,3,1,"p",27),o(25,"p",42),l(26,"Please enter your mobile phone number in case we need to reach you during the event."),a()(),m(27,_c,9,3,"div",43),m(28,hc,9,3,"div",43),y(29,kc,15,11,"div",44),S(30,Fc,7,12,"div",43,Aa),o(32,"div",28)(33,"button",45),C("click",function(){f(e);let i=p();return h(i.onClickViewRules())}),l(34,"View Rules"),a()(),_(35,"br"),o(36,"p",42),l(37," As a participant in the event, you are bound by the organizer's rules. Images you submit for the event may be shared on the event page. Your location data will be kept secret. "),a()()()()}if(t&2){let e=p(),n=R(14);r(2),d("noMargin",!0),r(2),d("cardPaddingHorizontal",16)("cardPaddingVertical",16),r(),d("formGroup",e.acceptTermsForm),r(),d("ngTemplateOutlet",n),r(7),E(e.ticketTypes),r(5),D("invalid",e.acceptTermsPhoneNumberInvalid),r(6),g(e.acceptTermsPhoneNumberInvalid?24:-1),r(3),g(e.tournament.teammate_name_required?27:-1),r(),g(e.tournament.postal_code_required?28:-1),r(),d("ngIf",e.tournament.allow_users_to_pick_division),r(),E(e.tournament.custom_registration_fields)}}function Vc(t,c){if(t&1){let e=O();o(0,"app-card",57),b(1,"async"),o(2,"app-card-header",58)(3,"i",59),C("click",function(){f(e);let i=p();return h(i.onClickCloseRulesOverlay())}),l(4,"close"),a()(),o(5,"div",60),_(6,"app-tournament-rules",61),a()()}if(t&2){let e=p();d("shouldFillContainer",!0)("noMargin",!0)("square",w(1,8,e.responsive.s)===!0),r(2),d("title",e.tournament.name),r(4),d("tournament",e.tournament)("full",!1)("showExpandButton",!1)("expanded",!0)}}function Lc(t,c){if(t&1&&(l(0," using "),o(1,"strong"),l(2),b(3,"titlecase"),a()),t&2){let e=p(2);r(2),v(w(3,1,e.loginType))}}function Ac(t,c){if(t&1&&(o(0,"div",62)(1,"div",63)(2,"i",39),l(3,"warning"),a(),o(4,"span"),l(5,"Important Note:"),a()(),o(6,"div"),l(7," You are currently logged in as "),o(8,"strong"),l(9),a(),l(10,"\xA0 "),m(11,Lc,4,3),l(12,". "),_(13,"br"),l(14,"Make sure to use the same login method when logging into the app. "),a()()),t&2){let e=p();r(9),v(e.user==null?null:e.user.email),r(2),g(e.loginType?11:-1)}}var Xt=(()=>{class t{get registrationCode(){return this.codeInputs?.map(e=>e.nativeElement.value)?.join("")??""}get acceptTermsPhoneNumber(){return this.acceptTermsForm.get("phone_number")}get acceptTermsPostalCode(){return this.acceptTermsForm.get("postal_code")}get acceptTermsCode(){return this.acceptTermsForm.get("code")}get acceptTermsDivision(){return this.acceptTermsForm.get("division")}get acceptTermsTeammateName(){return this.acceptTermsForm.get("teammate_name")}get acceptTermsEntryId(){return this.acceptTermsForm.get("entry_id")}get acceptTermsPhoneNumberInvalid(){return Ze(this.acceptTermsPhoneNumber,!0)}get acceptTermsPostalCodeInvalid(){return Ze(this.acceptTermsPostalCode)}get acceptTermsCodeInvalid(){return Ze(this.acceptTermsCode)}get acceptTermsDivisionInvalid(){return Ze(this.acceptTermsDivision)}get acceptTermsTeammateNameInvalid(){return Ze(this.acceptTermsTeammateName)}get nextButtonDisabled(){let e=!0;
10return this.screen==="TERMS"&&this.acceptTermsForm.invalid&&(e=!1),!e}get isEntryFree(){let e=this.acceptTermsEntryId.getRawValue();return!this.tournament.entry_types.find(i=>i.id==e)?.variant_id}constructor(e,n,i,s,u,M,V,q,N,ne,we,jt){this.responsive=e,this.route=n,this.router=i,this.apiTournamentService=s,this.authService=u,this.locale=M,this.cookieService=V,this.ref=q,this.fb=N,this.overlay=ne,this.dialog=we,this.dialogStack=jt,this.isInvalid=Ze,this.user=null,this.code=null,this.isEnterCodeFlow=!1,this.codeEntryMethod=null,this.ticketTypes=[],this.registrationCodeError=null,this.registrationCodeLoading=!1,this.pendingPurchase=null,this.nextButtonLabelMap={REGISTER:"",TERMS:"I Agree"},this.backButtonLabelMap={REGISTER:"Exit",TERMS:"Exit"},this.loadingCheckout=!1,this.screen=null,this.acceptingTerms=!1,this.subscription=W.EMPTY,this.previousLastChar=new Map,this.rulesOverlay=null,this.rulesOverlayBackdropClickSubscription=W.EMPTY}ngOnInit(){this.loginType=this.cookieService.read(Mi);let e=this.route.queryParamMap.pipe(L(s=>s.get("code"))),n=this.route.data.pipe(L(({tournament:s,codeOnly:u})=>[s,u??!1])),i=this.authService.loggedInUser$;this.subscription=ke([i,n,e]).subscribe({next:([s,[u,M],V])=>{this.code=V,this.isEnterCodeFlow=!!V||M,this.bindTournamentAndUser(s,u,V)},error:s=>{console.error(s)}})}ngOnDestroy(){this.subscription.unsubscribe()}bindTournamentAndUser(e,n,i){if(!this.canRegister(n)){this.router.navigate(z.urlTo(n),{replaceUrl:!0});return}let s=this.tournament!=null,u=this.tournament?.id!=n.id,M=this.user?.id!=e?.id;if(this.tournament=n,this.user=e,u||M){if(u){if(this.tournamentRouterLink=z.urlTo(n),this.name=n.name,n.logo_url?this.logoUrl=`${n.logo_url}:100`:this.logoUrl=null,n.division_type?this.divisionTitle=new fe().transform(n.division_type):this.divisionTitle=null,n.entry_types.length){let V=new bt(this.locale);for(let q of n.entry_types){let N;q.variant_id?q.fee&&(N=`${V.transform(q.fee,n.currency,"symbol-narrow","1.0-0")} ${n.currency}`,q.indicate_taxes&&(N=`${N} + tax`)):N="Free";let ne;N?ne=`${q.title} - ${N}`:ne=q.title,this.ticketTypes.push({id:q.id,title:ne})}}this.buildAcceptTermsForm(n,i)}e?(this.autoFillTerms(),this.isEnterCodeFlow?(this.backButtonLabelMap.TERMS="Back",this.screen="REGISTER",this.code&&setTimeout(()=>{this.codeEntryMethod="link",this.pasteCode(this.code,this.codeInputs.first.
10nativeElement),s&&this.onClickContinueRegistration()})):n.join_status==="PENDING_PAYMENT"&&n.pending_checkout_url?this.continueCheckoutOrRestart(n.pending_checkout_url):n.join_status==="PENDING_PAYMENT"&&!n.pending_checkout_url||n.join_status&&this.showAlreadyRegisteredOverlay()):this.requestLogin(),this.screen="TERMS"}}buildAcceptTermsForm(e,n){let i={phone_number:this.fb.control("",[this.stringRequired]),entry_id:this.fb.nonNullable.control(e.entry_types[0].id)};e.teammate_name_required&&(i.teammate_name=this.fb.control("",[this.stringRequired])),e.postal_code_required&&(i.postal_code=this.fb.control("",[this.stringRequired])),e.allow_users_to_pick_division&&(i.division=this.fb.control(null)),this.isEnterCodeFlow&&(i.code=this.fb.control(n));for(let s of e.custom_registration_fields){let u=[];switch(s.is_required&&u.push(this.stringRequired),s.type){case"string":case"email":i[s.key]=this.fb.control(null,u);break;case"integer":i[s.key]=this.fb.control(null,u);break}}this.acceptTermsForm=new Qn(i)}autoFillTerms(){let e=this.user,n=this.acceptTermsForm.getRawValue(),i={phone_number:e?.phone_number?.toString()?.trim()};this.ticketTypes.length&&(i.entry_id=this.ticketTypes[0].id),"postal_code"in n&&(i.postal_code=e?.postal_code?.toString()?.trim()),this.acceptTermsForm.patchValue(i)}requestLogin(){Oe.open(this.dialog,{title:"Please log in or sign up",message:"An account is required to register for this event.<br>Please login or sign up for a new account.",positiveButton:"Log In or Sign Up",negativeButton:"Cancel"}).afterClosed().subscribe(n=>{n?this.showLoginOverlay():this.exit()})}onClickNext(e){if(!this.dialogStack.length&&!this.loadingCheckout)switch(e){case"REGISTER":{this.onClickContinueRegistration();break}case"TERMS":{this.acceptTermsForm.valid&&(this.isEnterCodeFlow?this.acceptTermsAndComplete():this.checkoutAndAcceptTermsAndComplete());break}default:{console.error(`Unhandled screen: ${e}`);break}}}onClickBack(e){switch(e){case"REGISTER":{this.exit();break}case"TERMS":{this.code?(this.screen="REGISTER",setTimeout(()=>this.pasteCode(this.acceptTermsCode.value,this.codeInputs.first.
10nativeElement))):this.exit();break}default:{console.error(`Unsupported screen: ${e}`);break}}}continueRegistration(e){this.authService.authenticationRequired(()=>{this.registrationCodeLoading=!0,this.apiTournamentService.viewPendingPurchase(e).subscribe({next:n=>{let i=n;if(i.tournament.id!==this.tournament.id){let u={title:"Activate Registration",message:`
11                          <div style="display:flex;align-items:center;">
12                              <img src="${i.tournament.logo_url}" style="width:96px;height:96px;object-fit:contain;object-position:center;" />
13                              <span style="flex-grow:1;margin-left:16px;">
14                                  This code is for <b>${i.tournament.name}</b><br>
15                                  Do you want to register for that event?
16                              </span>
17                          </div>
18                          `,positiveButton:`Register for ${i.tournament.name}`,negativeButton:"Use a different code"};Oe.open(this.dialog,u).afterClosed().subscribe(V=>{V&&this.router.navigate(["/event",i.tournament.id,"register"],{queryParams:{code:e},replaceUrl:!0})})}else if(i.email&&i.email!=this.user?.email){let u={title:"Warning",message:`
19                            This code was sent to <b>${i.email}</b> but you're logged in with <b>${this.user?.email}</b>.
20                            <br><br>
21                            If you continue, make sure you log into the MyCatch app using <b>${this.loginType}</b> with <b>${this.user?.email}</b>.
22                            `,positiveButton:"Continue",negativeButton:"Logout"};Oe.open(this.dialog,u).afterClosed().pipe(rn(1)).subscribe(V=>{V?this.continueToTermsFromRegister(i):(this.authService.requestLogout(),this.continueRegistration(e))})}else this.continueToTermsFromRegister(i);this.registrationCodeLoading=!1},error:n=>{console.error(n);let i=Mt(n),s=i.length?i[0]??"Failed to load":"Failed to load";this.registrationCodeError=s,this.registrationCodeLoading=!1}})})}continueToTermsFromRegister(e){this.pendingPurchase=e,this.acceptTermsForm.patchValue({phone_number:this.user?.phone_number??e.phone_number,postal_code:this.user?.postal_code,code:e.code}),this.screen="TERMS"}onClickContinueRegistration(){if(this.registrationCodeLoading)return;let e=this.registrationCode.toString().trim().toUpperCase();if(e.length!==8){this.registrationCodeError=e.length<8?"Code is incomplete":"Code is invalid";return}this.registrationCodeLoading=!0,this.user?this.continueRegistration(e):Oe.open(this.dialog,{title:"Please log in or sign up",message:"An account is required to register for this event.<br>Please login or sign up for a new account.",positiveButton:"Log In or Sign Up",negativeButton:"Cancel"}).afterClosed().subscribe(i=>{i&&this.continueRegistration(e),this.registrationCodeLoading=!1})}onAcceptTermsKeyup(e){e instanceof KeyboardEvent&&e.key==="Enter"&&this.dialogStack.length==0&&setTimeout(()=>this.onClickNext("TERMS"))}handleCodeInput(e){if(!(e instanceof InputEvent))return;let n=e.target,i=e.data?.trim(),s=null;i?.length&&(s=i.charAt(i.length-1).toUpperCase());let u="";if(s){let M=s.charCodeAt(0),N=M>=48&&M<=57,jt=M>=65&&M<=90;N||jt?(u=s,this.moveNext(n)):u=this.previousLastChar.get(n.id)}this.previousLastChar.set(n.id,u),n.value=u,this.codeEntryMethod="typed"}handleCodeKeyDown(e){let n=e.target;e.key==="Backspace"?n.value.length||this.movePrev(n):e.key==="ArrowRight"?this.moveNext(n):e.key==="ArrowLeft"&&this.movePrev(n)}isInput(e){let n=!1;return e&&(n=e.select!==void 0),n}moveNext(e){let n=e.nextElementSibling;n?.tagName==="SPAN"&&(n=n.nextElementSibling),setTimeout(()=>{n&&this.isInput(n)&&(n.focus(),n.select())})}movePrev(e){let n=e.previousElementSibling;n?.tagName==="SPAN"&&(n=n.previousElementSibling),setTimeout(()=>{n&&this.isInput(n)&&(n.focus(),n.select())})}handleCodeKeyUp(e){e.key==="Enter"&&this.dialogStack.length==0&&setTimeout(()=>this.onClickContinueRegistration())}handleCodeFocus(e){e.target.select()}handleCodePaste(e){e.preventDefault();let n=e.clipboardData.getData("Text");this.codeEntryMethod="paste",this.pasteCode(n,e.target)}pasteCode(e,n){let i=new RegExp("^[A-Z0-9]$");for(let s of e.split("")){if(s=s.toUpperCase(),i.test(s))n.value=s;else continue;if(n=n.nextElementSibling,n==null)return;
22n?.tagName==="SPAN"&&(n=n.nextElementSibling),n?.focus()}}onClickViewRules(){let e=new K;e.overlayConfig={positionStrategy:this.overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:this.overlay.scrollStrategies.noop(),hasBackdrop:!0},this.rulesOverlay=this.dialog.open(this.rulesTemplateRef,e,!0,this.ref),this.rulesOverlayBackdropClickSubscription=this.rulesOverlay.overlayRef.backdropClick().subscribe(()=>this.onClickCloseRulesOverlay())}onClickCloseRulesOverlay(){this.rulesOverlayBackdropClickSubscription.unsubscribe(),this.rulesOverlay?.close(),this.rulesOverlay=null}showLoginOverlay(){this.authService.requireUser().subscribe(e=>{e?this.apiTournamentService.getTournament(this.tournament.id).subscribe({next:n=>{this.bindTournamentAndUser(e,n,this.code)},error:console.error}):this.exit()})}showAlreadyRegisteredOverlay(){Oe.open(this.dialog,{title:"Already Registered",message:"You are already registered for this event.",neutralButton:"Go Back"}).afterClosed().subscribe(()=>this.exit())}checkoutAndAcceptTermsAndComplete(){this.acceptingTerms||this.loadingCheckout||(this.acceptingTerms=!0,this.loadingCheckout=!0,this.acceptTerms().pipe(Te(e=>{throw{title:"Accept Terms Failed",message:this.handleAcceptTermsError(e)}}),be(e=>{if(e.status==201)return this.checkout().pipe(Te(n=>{throw{title:"Checkout Failed",message:this.handleCheckoutError(n)}}),L(n=>n.url));throw{title:"Accept Terms Failed",message:"Failed for an unknown reason."}})).subscribe({next:e=>{this.loadingCheckout=!1,this.acceptingTerms=!1,We.requestShow(this.tournament),e&&window.open(e,"_blank"),this.router.navigate(z.urlTo(this.tournament),{replaceUrl:!0})},error:e=>{console.error(e),this.loadingCheckout=!1,this.acceptingTerms=!1;let n="Error",i="Failed for an unknown reason.";"message"in e&&(n=e.title,i=e.message);let s={title:n,message:i,neutralButton:"Ok"};Oe.open(this.dialog,s)}}))}acceptTermsAndComplete(){this.acceptingTerms||(this.acceptingTerms=!0,this.acceptTerms().subscribe({next:e=>{this.acceptingTerms=!1,e.status==201&&We.requestShow(this.tournament)},error:e=>{this.acceptingTerms=!1;let i={title:"Error",message:this.handleAcceptTermsError(e),neutralButton:"Ok"};Oe.open(this.dialog,i)}}))}acceptTerms(){let e=this.acceptTermsForm.value,n={phone_number:e.phone_number?.toString()?.trim(),postal_code:e.postal_code?.toString()?.trim(),entry_id:e.entry_id};e.code!==void 0&&(n.code=e.code?.toString()?.trim()),e.division!==void 0&&(n.division=e.division),e.teammate_name!==void 0&&(n.teammate_name=e.teammate_name?.toString()?.trim());let i={};for(let s of this.tournament.custom_registration_fields)i[s.key]=e[s.key];return n.custom_fields=i,this.apiTournamentService.acceptTerms(this.tournament.id,n,this.codeEntryMethod)}checkout(){let e=[],n=this.acceptTermsForm.value;return e.push({name:this.user.first_name+" "+this.user.last_name,email:this.user.email,phone_number:n.phone_number?.toString()?.trim(),entry_id:n.entry_id}),this.apiTournamentService.checkout(this.tournament.id,e)}handleAcceptTermsError(e){console.error(e);let n="Failed for an unknown reason.",i=Ht(e);if(i&&Object.keys(i).length){let s=!1;for(let u in i){let M=i[u];if(u.startsWith("custom_fields")){let V=u.slice(14,-1);if(!s){let q=this.tournament.custom_registration_fields.filter(N=>N.key==V);q.length>=1?n=`${q[0].title}: ${M}`:n=`${V}: ${M}`}this.acceptTermsForm.get(V).setErrors({invalid:M})}else switch(u){case"phone_number":case"postal_code":case"code":case"entry_id":case"division":case"teammate_name":{s||(n=`${u.charAt(0).toUpperCase()+u.replaceAll("_"," ").slice(1)}: ${M}`),this.acceptTermsForm.get(u).setErrors({invalid:M});break}default:{console.error(`Unexpected error. ${u}: ${M}`);break}}}}else{let s=Mt(e);s&&s.length&&(n=s[0])}return n}handleCheckoutError(e){console.error(e);let n="Failed for an unknown reason.",i=Ht(e);if(i&&i.length){let s=!1;for(let u in i){let M=i[u];s||(n=`${u}: ${M}`),console.error(`Unexpected error. ${u}: ${M}`)}}else{let s=Mt(e);s&&s.length&&(n=s[0])}return n}continueCheckoutOrRestart(e){Oe.open(this.dialog,{title:"Continue to Checkout",message:"You have already entered your information to register for the event, but have not paid yet. Do you want to go to the checkout?",positiveButton:"Continue to Checkout",negativeButton:"Restart"}).afterClosed().subscribe(s=>{s&&(window.open(e,"_blank"),this.router.navigate(z.urlTo(this.tournament),{replaceUrl:!0}))})}exit(){this.router.navigate(z.urlTo(this.tournament))}stringRequired(e){let n=null,i=e.value?.toString();return(!i||i.trim().length==0)&&(n={required:"This field is required"}),n}canRegister(e){if(!e.joinable||e.join_status=="ACCEPTED"||e.join_status=="REJECTED"||e.join_status=="PENDING_APPROVAL")return!1;let{status:n}=yt(e);if(n=="AFTER"||n=="ACTIVE"&&!e.can_join_when_live)return!1;let i=e.max_paid_entrants??0;return!(i>0&&e.current_paid_entrants>=i)}static{this.\u0275fac=function(n){return new(n||t)(k(me),k(je),k(Ee),k(z),k(xe),k(Tn),k(Ln),
22k(ht),k(ii),k(ae),k(Q),k(_i))}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-register"]],viewQuery:function(n,i){if(n&1&&te(Fa,5)(ja,5)(Gn,5)(Va,5),n&2){let s;$(s=B())&&(i.rulesTemplateRef=s.first),$(s=B())&&(i.codeContinueButton=s.first),$(s=B())&&(i.formModels=s),$(s=B())&&(i.codeInputs=s)}},standalone:!1,decls:15,vars:3,consts:[["screenRegister",""],["screenTerms",""],["rulesTemplate",""],["accountNote",""],["codeContinue",""],["codeInput",""],["acceptTermsDivisionInvalid",""],[1,"header"],[1,"dotdotdot"],[3,"src"],[1,"screen-content"],[1,"footer"],[1,"popup-warning"],[1,"buttons"],[1,"btn","outlined-btn",3,"click","disabled"],[1,"btn","primary-btn","next-button",3,"disabled"],[4,"ngTemplateOutlet"],[1,"btn","primary-btn","next-button",3,"click","disabled"],["color","white",3,"size"],[1,"screen-header"],[3,"noMargin"],["title","Enter Registration Code"],["appCardContent","",3,"cardPaddingHorizontal","cardPaddingVertical"],[1,"input-row","registration-input"],["for","code"],[1,"required"],[1,"code-inputs"],[1,"error-message"],[1,"btn-row"],[1,"btn","primary-btn",3,"click","disabled"],["type","text","required","",1,"browser-default",3,"input","keydown","keyup","focus","paste","id"],["title","Accept Terms"],[3,"formGroup"],[1,"input-row"],["for","type"],[1,"select-wrapper"],["id","type","name","type","formControlName","entry_id",1,"browser-default",3,"keyup"],[3,"value"],[1,"icon-wrapper"],[1,"material-icons"],["for","phone_number"],["id","phone_number","name","phone_number","formControlName","phone_number","type","text","inputmode","numeric","appStringRequired","","autocomplete","tel",1,"browser-default",3,"keyup"],[1,"body-small","gray-400-text"],[1,"input-row",3,"invalid"],["class","input-row",3,"invalid",4,"ngIf"],["type","button",1,"btn","outlined-btn",3,"click"],["for","teammate_name"],["id","teammate_name","name","teammate_name","formControlName","teammate_name","type","text","required","",1,"browser-default",3,"keyup"],["for","postal_code"],["id","postal_code","name","postal_code","formControlName","postal_code","type","text","appStringRequired","",1,"browser-default",3,"keyup"],["for","division"],["id","division","name","division","formControlName","division",1,"browser-default",3,"keyup","required"],[3,"value",4,"ngFor","ngForOf"],["class","error-message",4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"for"],[1,"browser-default",3,"keyup","id","name","formControlName","type","required"],[1,"rules-card",3,"shouldFillContainer","noMargin","square"],[3,"title"],[1,"material-icons",3,"click"],["appCardContent",""],[3,"tournament","full","showExpandButton","expanded"],[1,"purple-faint","well"],[1,"title","h4","primary-color-text"]],template:function(n,i){n&1&&(o(0,"div",7)(1,"h3",8),l(2),a(),m(3,Na,1,1,"img",9),a(),o(4,"div",10),m(5,Ka,8,5)(6,Xa,1,0,"app-spinner"),a(),y(7,oc,19,9,"ng-template",null,0,U)(9,jc,38,11,"ng-template",null,1,U)(11,Vc,7,10,"ng-template",null,2,U)(13,Ac,15,2,"ng-template",null,3,U)),n&2&&(r(2),v(i.name),r(),g(i.logoUrl?3:-1),r(2),g(i.screen?5:6))},dependencies:()=>[En,In,re,Yn,ei,ti,Hn,Jn,Wn,Zn,ni,Xn,Kn,X,j,H,de,Dt,Nc,Ce,fe],styles:[`[_nghost-%COMP%]{max-width:992px;width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;overflow:hidden}@media only screen and (min-width:601px){[_nghost-%COMP%]{padding:16px 8px}}.header[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;padding-bottom:16px;border-bottom:1px solid #e2e5ed}.header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{flex-grow:1}.header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{flex-shrink:0;height:48px;margin-left:8px}@media only screen and (min-width:601px){.header[_ngcontent-%COMP%]{margin-bottom:24px}}@media only screen and (max-width:600px){.header[_ngcontent-%COMP%]{padding:4px 8px;background-color:#fff}}.screen-content[_ngcontent-%COMP%]{max-height:100%;overflow-y:auto}@media only screen and (max-width:600px){.screen-content[_ngcontent-%COMP%]{flex-grow:1;padding:16px 8px}}.footer[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}.footer[_ngcontent-%COMP%]   .popup-warning[_ngcontent-%COMP%]{color:#747c99;font-size:14px;text-align:right}.footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:4px}@media only screen and (min-width:601px){.footer[_ngcontent-%COMP%]{margin-top:16px}}@media only screen and (max-width:600px){.footer[_ngcontent-%COMP%]{padding:4px 8px;background-color:#fff;box-shadow:0 1px 3px #0000000a;flex-direction:column}.footer[_ngcontent-%COMP%]   .popup-warning[_ngcontent-%COMP%]{text-align:center;padding:8px}}.screen-header[_ngcontent-%COMP%]{margin-bottom:16px}.btn[_ngcontent-%COMP%]{min-width:144px}.checks[_ngcontent-%COMP%]{padding:16px 0}.check[_ngcontent-%COMP%]{display:flex;align-items:center}.check[_ngcontent-%COMP%]:hover{cursor:pointer}.check[_ngcontent-%COMP%]:hover   .mark[_ngcontent-%COMP%]:not(.active){background-color:#f0f1fd}.check[_ngcontent-%COMP%]   .mark[_ngcontent-%COMP%]{transition-property:background-color,opacity;transition-duration:.1s;margin-right:8px;width:24px;height:24px;border:1px solid #b4b9cc;border-radius:50%;display:flex;align-items:center;justify-content:center}.check[_ngcontent-%COMP%]   .mark[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{display:none;color:#fff;font-size:16px}.check[_ngcontent-%COMP%]   .mark.active[_ngcontent-%COMP%]{background-color:#6073eb;border:1px solid #6073EB}.check[_ngcontent-%COMP%]   .mark.active[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{display:unset}.check[_ngcontent-%COMP%] + .check[_ngcontent-%COMP%]{margin-top:16px}.input-row.invalid[_ngcontent-%COMP%]:not(.registration-input)   input[_ngcontent-%COMP%], .input-row.invalid[_ngcontent-%COMP%]:not(.registration-input)   select[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}.input-row.invalid[_ngcontent-%COMP%]:not(.registration-input)   .error-message[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.input-row.invalid.registration-input[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{margin-top:8px}.btn-row[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-left:16px}.input-row[_ngcontent-%COMP%] + .input-row[_ngcontent-%COMP%]{margin-top:4px}.input-row[_ngcontent-%COMP%] + .btn-row[_ngcontent-%COMP%], .well[_ngcontent-%COMP%] + .btn-row[_ngcontent-%COMP%]{margin-top:16px}.screen-who[_ngcontent-%COMP%]   .enter-event-code-card[_ngcontent-%COMP%]{display:block;margin-top:8px}.screen-who[_ngcontent-%COMP%]   .enter-event-code-button[_ngcontent-%COMP%]{margin-top:8px}@media only screen and (min-width:601px){.screen-who[_ngcontent-%COMP%]{display:flex}.screen-who[_ngcontent-%COMP%]   app-card[_ngcontent-%COMP%]:first-of-type{flex-grow:2}.screen-who[_ngcontent-%COMP%]   .enter-event-code-card[_ngcontent-%COMP%]{flex-grow:1;align-self:stretch;margin-top:unset;margin-left:8px}}.confirm-email-item[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #e2e5ed;border-radius:4px;box-shadow:0 1px 3px #0000000a;display:flex;flex-direction:row;align-items:center;padding:8px 16px}@media only screen and (min-width:601px){.confirm-email-item[_ngcontent-%COMP%]{padding:16px}}.confirm-email-item[_ngcontent-%COMP%]   .name-email[_ngcontent-%COMP%]{flex-grow:1;display:flex;flex-direction:column}.registration[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%], .confirm-email-item[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.registration[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .confirm-email-item[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{padding:4px}.registration[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:not(.disabled), .confirm-email-item[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:not(.disabled){color:#747c99}.registration[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:not(.disabled).remove-btn, .confirm-email-item[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:not(.disabled).remove-btn{color:#f24d33}.registration[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:not(.disabled):hover, .confirm-email-item[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:not(.disabled):hover{cursor:pointer;background:#ebedf2;border-radius:50%}.registration[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i.disabled[_ngcontent-%COMP%], .confirm-email-item[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i.disabled[_ngcontent-%COMP%]{color:#b4b9cc}.registration[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i.disabled[_ngcontent-%COMP%]:hover, .confirm-email-item[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i.disabled[_ngcontent-%COMP%]:hover{cursor:not-allowed}.registration[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] + i[_ngcontent-%COMP%], .confirm-email-item[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] + i[_ngcontent-%COMP%]{margin-left:4px}.registration[_ngcontent-%COMP%]{position:relative;background-color:#fff;border:1px solid #e2e5ed;border-radius:4px;box-shadow:0 1px 3px #0000000a;display:flex;flex-direction:row;align-items:center;height:56px;padding:0 16px}.registration[_ngcontent-%COMP%]   .title-subtitle[_ngcontent-%COMP%]{flex-grow:1}.registration[_ngcontent-%COMP%]   .title-subtitle[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] + .subtitle[_ngcontent-%COMP%]{margin-left:8px}.registration[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{width:16px}.registration[_ngcontent-%COMP%]   .undo[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;background:#ffffff80;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;padding:0 16px}.registration[_ngcontent-%COMP%]   .undo-progress[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;background-color:#6073eb80;animation-duration:3s;animation-timing-function:linear;animation-name:_ngcontent-%COMP%_undo-progress-anim}@keyframes _ngcontent-%COMP%_undo-progress-anim{0%{width:0}90%{width:100%}to{width:100%}}.add-angler-btn[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #e2e5ed;border-radius:4px;box-shadow:0 1px 3px #0000000a;
22height:56px;padding:0 16px;display:flex;flex-direction:row;align-items:center}.add-angler-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#6073eb}.add-angler-btn[_ngcontent-%COMP%]:hover{background-color:#f0f1fd;cursor:pointer}.registration[_ngcontent-%COMP%] + .registration[_ngcontent-%COMP%], .registration[_ngcontent-%COMP%] + .add-angler-btn[_ngcontent-%COMP%], .confirm-email-item[_ngcontent-%COMP%] + .confirm-email-item[_ngcontent-%COMP%]{margin-top:8px}.next-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.select-wrapper[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]{position:absolute;right:8px;top:0;bottom:0;pointer-events:none;display:flex;align-items:center;justify-content:center}.select-wrapper[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#3d4248}.well[_ngcontent-%COMP%]{border-radius:4px;padding:16px}.well[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:flex;align-items:center}.well[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:8px}app-card.rules-card[_ngcontent-%COMP%]{width:100%;max-width:992px}@media only screen and (min-width:601px){app-card.rules-card[_ngcontent-%COMP%]{margin:16px}}app-card.rules-card[_ngcontent-%COMP%]   app-card-header[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:hover{cursor:pointer}app-card.registration-success[_ngcontent-%COMP%]{width:100%;max-width:600px}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .logo-checkmark[_ngcontent-%COMP%]{position:relative}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .logo-checkmark[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:96px;height:96px;object-fit:contain;object-position:center}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .logo-checkmark[_ngcontent-%COMP%]   img.loading[_ngcontent-%COMP%]{background-color:#ebedf2;border-radius:4px}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .logo-checkmark[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#fff;background-color:#08b2e3;border-radius:50%}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:16px}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:16px;text-align:center}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#6073eb}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{margin-top:16px;width:100%}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .btn-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-top:4px}app-card.registration-success[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .btn-row[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{width:16px}.input-row-phone-number[_ngcontent-%COMP%]{display:flex}.input-row-phone-number[_ngcontent-%COMP%]   #country_code[_ngcontent-%COMP%]{width:80px;border-top-right-radius:0;border-bottom-right-radius:0}.input-row-phone-number[_ngcontent-%COMP%]   #phoneNumber[_ngcontent-%COMP%], .input-row-phone-number[_ngcontent-%COMP%]   #phone_number[_ngcontent-%COMP%]{flex-grow:1;border-top-left-radius:0;border-bottom-left-radius:0}.code-inputs[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.code-inputs[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:0;text-align:center;text-transform:uppercase;max-width:40px}.code-inputs[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700;font-size:24px}.important-note-container[_ngcontent-%COMP%]{margin-top:8px;display:grid;grid-template-rows:auto;grid-template-columns:1fr;grid-auto-rows:auto;grid-auto-columns:auto}.important-note[_ngcontent-%COMP%]{grid-row:1;grid-column:1;color:#979aa3;display:flex;align-items:center;flex-wrap:wrap}@media only screen and (min-width:601px){.important-note[_ngcontent-%COMP%]{flex-wrap:nowrap}}.important-note[_ngcontent-%COMP%]   svg-icon[_ngcontent-%COMP%]{margin-right:8px;width:24px;height:24px}.important-note[_ngcontent-%COMP%]   svg-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:#979aa3;width:24px;height:24px}
23/*# sourceMappingURL=tournament-register.component-7ZOCKSPI.css.map */`,`strong[_ngcontent-%COMP%]{font-weight:700}label[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:12px;line-height:35px;color:#3d4248;opacity:.7}p.description[_ngcontent-%COMP%]{color:#3d4248;font-size:14px;margin:0 0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%], select[_ngcontent-%COMP%], .input-wrapper[_ngcontent-%COMP%], .fake-input[_ngcontent-%COMP%]{appearance:none;height:40px;border:1px solid #e2e5ed;box-sizing:border-box;box-shadow:none;border-radius:4px;font-size:16px;line-height:20px;padding:0 15px;background:#fff;width:100%}input[disabled][_ngcontent-%COMP%], textarea[disabled][_ngcontent-%COMP%], select[disabled][_ngcontent-%COMP%], .input-wrapper[disabled][_ngcontent-%COMP%], .fake-input[disabled][_ngcontent-%COMP%]{background:#eaedf3;color:#979aa3}input.inline[_ngcontent-%COMP%], input[type=checkbox][_ngcontent-%COMP%], textarea.inline[_ngcontent-%COMP%], textarea[type=checkbox][_ngcontent-%COMP%], select.inline[_ngcontent-%COMP%], select[type=checkbox][_ngcontent-%COMP%], .input-wrapper.inline[_ngcontent-%COMP%], .input-wrapper[type=checkbox][_ngcontent-%COMP%], .fake-input.inline[_ngcontent-%COMP%], .fake-input[type=checkbox][_ngcontent-%COMP%]{width:auto}input[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus, select[_ngcontent-%COMP%]:focus, .input-wrapper[_ngcontent-%COMP%]:focus, .fake-input[_ngcontent-%COMP%]:focus{outline:none}.fake-input[_ngcontent-%COMP%]{line-height:40px}.fake-input[_ngcontent-%COMP%]:hover{cursor:pointer}.fake-input[_ngcontent-%COMP%]   .placeholder[_ngcontent-%COMP%]{color:#979aa3}textarea[_ngcontent-%COMP%]{padding:15px}.input-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center}.input-wrapper[_ngcontent-%COMP%] > i[_ngcontent-%COMP%], .input-wrapper[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%], .input-wrapper[_ngcontent-%COMP%] > svg-icon[_ngcontent-%COMP%]{margin-right:10px}.input-wrapper[_ngcontent-%COMP%] > svg-icon[_ngcontent-%COMP%]{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.input-wrapper[_ngcontent-%COMP%] > svg-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:24px;height:24px}.input-wrapper[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{border:none;box-shadow:none;border-radius:0;padding:0;background:none}.input-wrapper[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus, .input-wrapper[_ngcontent-%COMP%] > textarea[_ngcontent-%COMP%]:focus{outline:none}.error[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#f24d33}.error[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]{box-shadow:inset 0 1px 2px #c4321b36;border:1px solid #f24d33}textarea[_ngcontent-%COMP%]{height:auto;resize:none}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{color:#3d4248;opacity:.5}.switch[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + .lever[_ngcontent-%COMP%]{background-color:#eaedf3}.switch[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + .lever[_ngcontent-%COMP%]:after{background-color:#6073eb}.equal-height[_ngcontent-%COMP%]{display:flex}.equal-height[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;flex-direction:column}.error-container[_ngcontent-%COMP%]{margin-top:16px}.error-message[_ngcontent-%COMP%]{background:#f9a69a;margin:10px 10px 0;padding:10px;vertical-align:baseline;display:flex;align-items:center;border-radius:4px}.error-message[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{margin-right:10px;margin-top:-3px}form[_ngcontent-%COMP%]   .photo-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:4px;border:1px dashed #EAEDF3;color:#979aa3;background:#fff;height:100%;min-height:200px;max-height:500px}form[_ngcontent-%COMP%]   .photo-container.error[_ngcontent-%COMP%]{border-color:#f9a69a}form[_ngcontent-%COMP%]   .photo-container.readonly[_ngcontent-%COMP%]:hover{cursor:default}form[_ngcontent-%COMP%]   .photo-container[_ngcontent-%COMP%]:hover{cursor:pointer}form[_ngcontent-%COMP%]   .photo-container.has-photo[_ngcontent-%COMP%]   .remove-btn[_ngcontent-%COMP%]{position:absolute;right:5px;top:5px;width:24px;height:24px;border-radius:50%;background-color:#6073eb;color:#fff}form[_ngcontent-%COMP%]   .photo-container.has-photo[_ngcontent-%COMP%]   .remove-btn[_ngcontent-%COMP%]:hover{cursor:pointer}form[_ngcontent-%COMP%]   .photo-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:22px}
23form[_ngcontent-%COMP%]   .photo-container.in-progress[_ngcontent-%COMP%]   .thumbnail[_ngcontent-%COMP%]{opacity:.3}form[_ngcontent-%COMP%]   .photo-container[_ngcontent-%COMP%]   .thumbnail[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;object-fit:contain;object-position:center}form[_ngcontent-%COMP%]   .photo-container[_ngcontent-%COMP%]   .progress[_ngcontent-%COMP%]{position:absolute;left:10px;right:10px;margin:0;width:auto;height:8px;border-radius:4px;background-color:#fff;border:1px solid #EAEDF3}form[_ngcontent-%COMP%]   .photo-container[_ngcontent-%COMP%]   .progress[_ngcontent-%COMP%]   .determinate[_ngcontent-%COMP%]{border-radius:4px;background-color:#3d4248}.search-row[_ngcontent-%COMP%]{position:relative}.search-row[_ngcontent-%COMP%] > .col[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{position:absolute;right:20px;bottom:10px;color:#979aa3}.search-row[_ngcontent-%COMP%] > .col[_ngcontent-%COMP%]   .search-icon.clearable[_ngcontent-%COMP%]:hover{color:#3d4248;cursor:pointer}.search-row[_ngcontent-%COMP%]   .search-results-container[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:75px;max-height:150px;overflow-y:auto;z-index:1}.search-row[_ngcontent-%COMP%]   .search-results-container[_ngcontent-%COMP%]   app-spinner[_ngcontent-%COMP%]{padding:10px}.search-row[_ngcontent-%COMP%]   .search-results-container[_ngcontent-%COMP%]   .search-results-table[_ngcontent-%COMP%]{display:table;width:100%}.search-row[_ngcontent-%COMP%]   .search-results-container[_ngcontent-%COMP%]   .search-results-table[_ngcontent-%COMP%]   .species[_ngcontent-%COMP%]{display:table-row}.search-row[_ngcontent-%COMP%]   .search-results-container[_ngcontent-%COMP%]   .search-results-table[_ngcontent-%COMP%]   .species[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:30px;width:auto;display:table-cell;vertical-align:middle;margin:5px 15px}.search-row[_ngcontent-%COMP%]   .search-results-container[_ngcontent-%COMP%]   .search-results-table[_ngcontent-%COMP%]   .species[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:14px;color:#3d4248;display:table-cell;vertical-align:middle;width:100%}.search-row[_ngcontent-%COMP%]   .search-results-container[_ngcontent-%COMP%]   .search-results-table[_ngcontent-%COMP%]   .species[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#eaedf3}.search-row[_ngcontent-%COMP%]   .search-results-container[_ngcontent-%COMP%]   .empty-message[_ngcontent-%COMP%]{height:100px;display:flex;flex-direction:column;justify-content:center}.search-row[_ngcontent-%COMP%]   .search-results-container[_ngcontent-%COMP%]   .empty-message[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center}button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{margin-left:10px}.hint[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#979aa3}.search-container[_ngcontent-%COMP%]{margin-top:1rem}.results-container[_ngcontent-%COMP%]{overflow:auto;max-height:500px;margin:0;padding-bottom:1rem}.required[_ngcontent-%COMP%]{color:#f24d33}.checkbox-group[_ngcontent-%COMP%]{margin:0;height:40px;display:flex;justify-content:flex-start;align-items:center}@media only screen and (max-width:992px){.checkbox-group[_ngcontent-%COMP%]{margin:0;padding-left:9px}}.checkbox-group.disabled[_ngcontent-%COMP%]{opacity:.5}.checkbox-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-family:Cabin,sans-serif;font-size:16px;font-weight:400;letter-spacing:0;line-height:150%;color:#3d4248;opacity:unset;height:20px;padding-left:28px}.search-results-container[_ngcontent-%COMP%]{height:240px;overflow-y:auto;border:1px solid #EAEDF3;border-top:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.list[_ngcontent-%COMP%]{margin-top:16px;display:flex;flex-wrap:wrap;gap:8px;width:100%}.result-chip[_ngcontent-%COMP%]{height:32px;border:1px solid #747C99;border-radius:8px;overflow:clip;padding-right:8px;display:flex;gap:8px;align-items:center}.result-chip[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{flex-shrink:0;width:24px;height:24px;object-fit:contain;object-position:center;margin-left:8px}.result-chip[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex-shrink:0;flex-grow:1;color:#747c99;font-family:Cabin,sans-serif;font-size:16px;font-weight:600;letter-spacing:0;line-height:130%}.result-chip[_ngcontent-%COMP%]   .title.extra-space[_ngcontent-%COMP%]{margin-left:12px}.result-chip[_ngcontent-%COMP%]   svg-icon[_ngcontent-%COMP%], .result-chip[_ngcontent-%COMP%]   svg-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:18px;height:18px}.result-chip[_ngcontent-%COMP%]   svg-icon[_ngcontent-%COMP%]{flex-shrink:0}.result-chip[_ngcontent-%COMP%]   svg-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:#747c99}.result-chip[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f0f1fd}input.showing-results[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}
24/*# sourceMappingURL=forms-AKCMNKUS.css.map */`],data:{animation:[Ye("fadeInExpand",[Ke("void",ve({height:"0px",opacity:"0"})),Ke("*",ve({height:"*",opacity:"1"})),Ae("void => *",Le("300ms cubic-bezier(0.2, 0.0, 0, 1.0)"))]),Ye("fadeInExpandDelayed",[Ke("void",ve({height:"0px",opacity:"0"})),Ke("*",ve({height:"*",opacity:"1"})),Ae("void => *",Le("300ms 200ms cubic-bezier(0.2, 0.0, 0, 1.0)"))])]}})}}return t})();var Nc=(()=>{class t{validate(e){let n=null;return(e.value?.toString()?.trim()??"").length===0&&(n={required:"This field is required"}),n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=vt({type:t,selectors:[["","appStringRequired",""]],standalone:!1,features:[Re([{provide:qn,useExisting:t,multi:!0}])]})}}return t})();function Ze(t,c=!1){return t.invalid&&(t.dirty||t.touched)&&(!c||t.hasError("invalid"))}var $c=t=>({model:t,isTitle:!0}),Jt=t=>({model:t,isTitle:!1});function Bc(t,c){t&1&&Z(0)}function Uc(t,c){if(t&1&&(o(0,"h4"),l(1,"Title Sponsor"),a(),y(2,Bc,1,0,"ng-container",8)),t&2){let e=p(2),n=R(13);r(2),d("ngTemplateOutlet",n)("ngTemplateOutletContext",ee(2,$c,e.titleSponsor))}}function Hc(t,c){t&1&&Z(0)}function qc(t,c){if(t&1&&y(0,Hc,1,0,"ng-container",8),t&2){let e=c.$implicit;p(3);let n=R(13);d("ngTemplateOutlet",n)("ngTemplateOutletContext",ee(2,Jt,e))}}function Wc(t,c){if(t&1&&(o(0,"h4"),l(1),b(2,"titlecase"),a(),S(3,qc,1,4,"ng-container",null,G)),t&2){let e=p(2);r(),x("",w(2,1,e.divisionType)," Sponsors"),r(2),E(e.divisionSponsors)}}function Zc(t,c){t&1&&Z(0)}function Qc(t,c){if(t&1&&y(0,Zc,1,0,"ng-container",8),t&2){let e=c.$implicit;p(3);let n=R(13);d("ngTemplateOutlet",n)("ngTemplateOutletContext",ee(2,Jt,e))}}function Gc(t,c){if(t&1&&(o(0,"h4"),l(1,"Leaderboard Sponsors"),a(),S(2,Qc,1,4,"ng-container",null,G)),t&2){let e=p(2);r(2),E(e.leaderboardSponsors)}}function Yc(t,c){t&1&&Z(0)}function Kc(t,c){if(t&1&&y(0,Yc,1,0,"ng-container",8),t&2){let e=c.$implicit;p(3);let n=R(13);d("ngTemplateOutlet",n)("ngTemplateOutletContext",ee(2,Jt,e))}}function Xc(t,c){if(t&1&&(o(0,"h4"),l(1,"Prize Sponsors"),a(),S(2,Kc,1,4,"ng-container",null,G)),t&2){let e=p(2);r(2),E(e.prizeSponsors)}}
24function Jc(t,c){t&1&&(o(0,"div")(1,"em"),l(2,"No Sponsors"),a()())}function el(t,c){if(t&1&&(o(0,"div",7),m(1,Uc,3,4),m(2,Wc,5,3),m(3,Gc,4,0),m(4,Xc,4,0),m(5,Jc,3,0,"div"),a()),t&2){let e=p();r(),g(e.titleSponsor?1:-1),r(),g(e.divisionSponsors.length?2:-1),r(),g(e.leaderboardSponsors.length?3:-1),r(),g(e.prizeSponsors.length?4:-1),r(),g(!e.leaderboardSponsors.length&&!e.divisionSponsors.length&&!e.titleSponsor&&!e.prizeSponsors.length?5:-1)}}function tl(t,c){t&1&&_(0,"app-spinner")}function nl(t,c){t&1&&Z(0)}function il(t,c){if(t&1&&(o(0,"a",9),y(1,nl,1,0,"ng-container",11),a()),t&2){let e=p().model,n=R(4);d("href",e.site_url,T),r(),d("ngTemplateOutlet",n)}}function ol(t,c){if(t&1&&(o(0,"div",10),_(1,"img",12),a()),t&2){let e=p().model;r(),d("src",e.image_url,T)}}function rl(t,c){if(t&1&&(o(0,"div",10),_(1,"img",12),a()),t&2){let e=p().model;r(),d("src",e.image_url,T)}}function al(t,c){if(t&1&&(o(0,"div"),m(1,il,2,2,"a",9)(2,ol,2,1,"div",10),y(3,rl,2,1,"ng-template",null,1,U),a()),t&2){let e=c.model,n=c.isTitle;D("title-sponsor",n),r(),g(e.site_url?1:2)}}var to=(()=>{class t{constructor(e,n,i){this.data=e,this.dialogRef=n,this.tournamentService=i,this.divisionType=null,this.isLoading=!0,this.subscription=W.EMPTY,this.divisionType=this.data.divisionType}ngOnInit(){this.subscription=this.tournamentService.getSponsors(this.data.tournamentId).subscribe(e=>{e.title_sponsor_image_url&&(this.titleSponsor={id:null,name:e.title_sponsor_name,image_url:e.title_sponsor_image_url,site_url:e.title_sponsor_site_url}),this.divisionSponsors=e.divisions.map(n=>(n.image_url=n.image_url??wt,n)),this.leaderboardSponsors=e.leaderboards.map(n=>(n.image_url=n.image_url??wt,n)),this.prizeSponsors=e.prizes.map(n=>(n.image_url=n.image_url??wt,n)),this.isLoading=!1})}ngOnDestroy(){this.subscription.unsubscribe()}onClickClose(){this.dialogRef.close()}static{this.\u0275fac=function(n){return new(n||t)(k(pe),k(le),k(z))}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-sponsors-overlay"]],standalone:!1,decls:14,vars:1,consts:[["sponsorTemplate",""],["sponsorImg",""],[1,"container"],[1,"flex"],[1,"font-color-text",3,"click"],[1,"material-icons"],[1,"grid-wrapper"],[1,"grid"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"href"],[1,"sponsor"],[4,"ngTemplateOutlet"],[3,"src"]],template:function(n,i){n&1&&(o(0,"div",2)(1,"app-card")(2,"app-card-header")(3,"div",3)(4,"h3"),l(5,"All Sponsors"),a(),o(6,"a",4),C("click",function(){return i.onClickClose()}),o(7,"i",5),l(8,"close"),a()()()(),o(9,"div",6),m(10,el,6,5,"div",7)(11,tl,1,0,"app-spinner"),a()()(),y(12,al,5,3,"ng-template",null,0,U)),n&2&&(r(10),g(i.isLoading?11:10))},dependencies:[re,X,j,de,fe],styles:[`.container[_ngcontent-%COMP%]{width:100%;max-width:640px;padding:15px;margin:0 auto}.grid-wrapper[_ngcontent-%COMP%]{height:532px;overflow:auto}.flex[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.flex[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer}h3[_ngcontent-%COMP%]{font-weight:700;font-size:24px;line-height:130%;margin:0}.grid[_ngcontent-%COMP%]{padding:10px 20px 20px;display:grid;column-gap:10px;row-gap:10px}@media only screen and (min-width:993px){.grid[_ngcontent-%COMP%]{grid-template-columns:50% 50%}.grid[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], .grid[_ngcontent-%COMP%]   .title-sponsor[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:span 2}}.grid[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:18px;font-weight:600;line-height:125%;margin:10px 0 0}.grid[_ngcontent-%COMP%]   .sponsor[_ngcontent-%COMP%]{border:1px solid #EAEDF3;box-shadow:0 1px 3px #0000000a;border-radius:5px;padding:20px;height:132px;display:flex;justify-content:center;align-items:center}.grid[_ngcontent-%COMP%]   .sponsor[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;max-height:100%}
25/*# sourceMappingURL=sponsors-overlay.component-346EJBFM.css.map */`]})}}return t})();var Rt=(()=>{class t{constructor(e){this.elementRef=e}static{this.\u0275fac=function(n){return new(n||t)(k(pn))}}static{this.\u0275dir=vt({type:t,selectors:[["","appTournamentTab",""]],inputs:{name:[0,"appTournamentTab","name"]}})}}return t})();var no=(()=>{class t{constructor(){this.winner=P(pe),this.dialogRef=P(le)}static open(e,n,i){let s=new K;return s.data=i,s.overlayConfig={hasBackdrop:!0,backdropClass:"cdk-overlay-black-backdrop",positionStrategy:n.position().global(),scrollStrategy:n.scrollStrategies.block()}
25,e.open(t,s,!0)}onClickClose(){this.dialogRef.close()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-winner-overlay"]],standalone:!1,decls:12,vars:7,consts:[[1,"winner-image",3,"src"],[1,"user"],[1,"avatar",3,"src"],[1,"name-total"],[1,"name"],[1,"total"],[1,"btn-floating","white","close-btn",3,"click"],[1,"material-icons","black-text"]],template:function(n,i){n&1&&(_(0,"img",0),o(1,"div",1),_(2,"img",2),o(3,"div",3)(4,"span",4),l(5),b(6,"fullnameOrUsername"),a(),o(7,"span",5),l(8),a()()(),o(9,"button",6),C("click",function(){return i.onClickClose()}),o(10,"i",7),l(11,"close"),a()()),n&2&&(d("src",i.winner.imgSrc,T),r(2),d("src",i.winner.user.avatar_url,T),r(3),v(w(6,5,i.winner.user)),r(3),Y(" ",i.winner.total," ",i.winner.unit," "))},dependencies:[J],styles:[`[_nghost-%COMP%]{position:relative;display:block;width:100vw;height:100vh}.winner-image[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center}.user[_ngcontent-%COMP%]{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:center;background-color:#000000b3;padding:20px}.user[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:50%}.user[_ngcontent-%COMP%]   .name-total[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:0 10px}.user[_ngcontent-%COMP%]   .name-total[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{color:#fff;font-weight:600;font-size:18px}.user[_ngcontent-%COMP%]   .name-total[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]{color:#b4b9cc;font-size:16px}.close-btn[_ngcontent-%COMP%]{position:absolute;right:20px;top:20px}
26/*# sourceMappingURL=tournament-winner-overlay.component-R4CEJ3CQ.css.map */`]})}}return t})();function ll(t,c){if(t&1&&_(0,"img",8),t&2){let e=p();d("src",e.item.user==null?null:e.item.user.avatar_url,T)}}function sl(t,c){t&1&&_(0,"span",9)}function pl(t,c){if(t&1&&(o(0,"a",11),l(1),b(2,"fullnameOrUsername"),b(3,"ifNull"),a()),t&2){let e=p();d("routerLink",e.item.urlToUser),r(),x(" ",_e(3,4,w(2,2,e.item.user),"Angler")," ")}}function dl(t,c){if(t&1&&(o(0,"span",12),l(1),b(2,"fullnameOrUsername"),b(3,"ifNull"),a()),t&2){let e=p();r(),v(_e(3,3,w(2,1,e.item.user),"Angler"))}}function ml(t,c){if(t&1&&(l(0),b(1,"number")),t&2){let e=p();Y(" ",_e(1,2,e.item.total,"1.0-2")," ",e.item.unit," ")}}function gl(t,c){t&1&&l(0," --- ")}function io(t,c){let e=t.image_url.includes("media/profiles/default")?t.image_url:`${t.image_url}:300`,n=t.user?Ut.urlTo(t.user):null,i=null;switch(t.rank){case 1:i="assets/medal-ribbon-gold.png";break;case 2:i="assets/medal-ribbon-silver.png";break;case 3:i="assets/medal-ribbon-bronze.png";break}let s=c==="in"?ji(parseFloat(t.total),2).toString():t.total;return{imgSrc:t.image_url,imgSrcThumbnail:e,urlToUser:n,medalImageSrc:i,total:s,unit:c,user:t.user}}var oo=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-winner-item"]],inputs:{item:"item",square:"square"},standalone:!1,decls:16,vars:10,consts:[[3,"noMargin"],["appCardContent","",3,"cardPaddingHorizontal","cardPaddingVertical"],[1,"content-wrapper"],[1,"content"],[1,"image-wrapper"],[1,"image",3,"src"],[1,"medal",3,"src"],[1,"details"],[1,"avatar","circle",3,"src"],[1,"avatar","circle"],[1,"user-total","dotdotdot"],[1,"user","dotdotdot",3,"routerLink"],[1,"user","dotdotdot"],[1,"total"]],template:function(n,i){n&1&&(o(0,"app-card",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),_(5,"img",5)(6,"img",6),a(),o(7,"div",7),m(8,ll,1,1,"img",8)(9,sl,1,0,"span",9),o(10,"div",10),m(11,pl,4,7,"a",11)(12,dl,4,6,"span",12),o(13,"span",13),m(14,ml,2,5)(15,gl,1,0),a()()()()()()()),n&2&&(d("noMargin",!0),r(),d("cardPaddingHorizontal",0)("cardPaddingVertical",0),r(),D("square",i.square),r(3),d("src",i.item.imgSrcThumbnail,T),r(),d("src",i.item.medalImageSrc,T),r(2),g(i.item.user!=null&&i.item.user.avatar_url?8:9),r(3),g(i.item.user&&i.item.urlToUser?11:12),r(3),g(i.item.total?14:15))},dependencies:[he,j,H,Fe,J,Zt],styles:[`.content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.image-wrapper[_ngcontent-%COMP%]{flex-grow:1;background-color:#eaedf3;overflow:hidden}@media only screen and (max-width:600px){.image-wrapper[_ngcontent-%COMP%]{height:100px}}.image-wrapper[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;object-position:center}.image-wrapper[_ngcontent-%COMP%]   .medal[_ngcontent-%COMP%]{position:absolute;top:0;right:8px}.details[_ngcontent-%COMP%]{flex-shrink:0;display:flex;flex-direction:row;align-items:center;padding:16px}
26.details[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{flex-shrink:0;width:36px;height:36px;margin-right:16px;background-color:#eaedf3}.details[_ngcontent-%COMP%]   .user-total[_ngcontent-%COMP%]{flex-grow:1;display:flex;flex-direction:column}.details[_ngcontent-%COMP%]   .user-total[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{font-weight:600;font-size:18px}.details[_ngcontent-%COMP%]   .user-total[_ngcontent-%COMP%]   a.user[_ngcontent-%COMP%]{color:#6073eb}.details[_ngcontent-%COMP%]   .user-total[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]{color:#979aa3;font-size:16px}
27/*# sourceMappingURL=tournament-winner-item.component-LOM3W7SG.css.map */`]})}}return t})();var ul=(t,c)=>c.title;function Cl(t,c){if(t&1){let e=O();o(0,"app-tournament-winner-item",8),b(1,"async"),C("click",function(){let i=f(e).$implicit,s=p(3);return h(s.onClickWinner(i))}),a()}if(t&2){let e=c.$implicit,n=p(3);d("item",e)("square",w(1,2,n.responsive.s)!==!0)}}function fl(t,c){if(t&1&&(o(0,"div",5)(1,"h3"),l(2),a(),o(3,"div",6),S(4,Cl,2,4,"app-tournament-winner-item",7,G),a()()),t&2){let e=c.$implicit;r(2),v(e.title),r(2),E(e.winners)}}function hl(t,c){if(t&1&&(o(0,"app-card",0)(1,"div",2)(2,"div",3)(3,"h2"),l(4,"Event Winners"),a(),_(5,"img",4),a(),S(6,fl,6,1,"div",5,ul),a()()),t&2){let e=p();d("noMargin",!0),r(),d("cardPaddingHorizontal",20)("cardPaddingVertical",20),r(5),E(e.groups)}}function xl(t,c){t&1&&_(0,"app-spinner",1)}var ro=(()=>{class t{constructor(e,n,i){this.responsive=e,this.dialogService=n,this.overlay=i,this.loading=!0,this.groups=[],this.rankToMedalsImageSrc=[null,"assets/medal-ribbon-gold.png","assets/medal-ribbon-silver.png","assets/medal-ribbon-bronze.png"]}ngOnInit(){let e=this.tournament.default_leaderboard_units==="IN",n=[];for(let i of this.tournament.leaderboards){if(!i.winners.length)continue;let s=i.unit==="cm"?e?"in":"cm":i.unit,u=i.winners.map(q=>io(q,s)),M=i.rank===null?Number.POSITIVE_INFINITY:i.rank,V={title:i.title,winners:u};n.push({rank:M,group:V})}n.sort((i,s)=>i.rank>s.rank?1:-1),this.groups=n.map(({group:i})=>i),this.loading=!1}onClickWinner(e){no.open(this.dialogService,this.overlay,e)}static{this.\u0275fac=function(n){return new(n||t)(k(me),k(Q),k(ae))}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-winners"]],inputs:{tournament:"tournament"},standalone:!1,decls:2,vars:2,consts:[[3,"noMargin"],["size","small"],["appCardContent","",1,"winners-container",3,"cardPaddingHorizontal","cardPaddingVertical"],[1,"header"],["src","/assets/trophy.png"],[1,"winners-group"],[1,"winners"],[3,"item","square"],[3,"click","item","square"]],template:function(n,i){n&1&&(m(0,hl,8,3,"app-card",0),m(1,xl,1,0,"app-spinner",1)),n&2&&(g(!i.loading&&i.groups.length&&i.tournament.winners_announced?0:-1),r(),g(i.loading?1:-1))},dependencies:[X,j,H,oo,Ce],styles:[`.header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:20px}.header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{line-height:42px;color:#ea8c55}.header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:12px}.winners-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch}.winners-group[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:24px;margin-bottom:20px}.winners-group[_ngcontent-%COMP%]   .winners[_ngcontent-%COMP%]{display:grid;column-gap:16px;row-gap:20px;grid-template-columns:1fr}@media only screen and (min-width:601px){.winners-group[_ngcontent-%COMP%]   .winners[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(100px,1fr))}}.winners-group[_ngcontent-%COMP%]   .winners[_ngcontent-%COMP%]   app-tournament-winner-item[_ngcontent-%COMP%]{display:block;flex-basis:30%;flex-grow:30%}.winners-group[_ngcontent-%COMP%]   .winners[_ngcontent-%COMP%]   app-tournament-winner-item[_ngcontent-%COMP%]:hover{cursor:pointer}.winners-group[_ngcontent-%COMP%] + .winners-group[_ngcontent-%COMP%]{margin-top:48px}
28/*# sourceMappingURL=tournament-winners.component-KMTGLHAU.css.map */`,`.breadcrumbs[_ngcontent-%COMP%]{position:fixed;background:#fff;max-width:1420px;width:100%;height:40px;z-index:2;top:60px;display:flex;padding:0 25px;align-items:center;border-bottom:1px solid #EAEDF3}.breadcrumbs[_ngcontent-%COMP%]   .crumb[_ngcontent-%COMP%]{display:flex;align-items:center}.sticky-nav[_ngcontent-%COMP%], .mobile-sticky[_ngcontent-%COMP%]{position:fixed;background:#fff;border-bottom:1px solid #EAEDF3;height:62px;top:100px;z-index:2;max-width:1420px;width:100%}.sticky-footer[_ngcontent-%COMP%]{position:sticky;background:#fff;border-top:1px solid #EAEDF3;padding:10px 20px;bottom:0;z-index:2;max-width:1420px;width:100%;display:flex;flex-wrap:wrap}.sticky-footer[_ngcontent-%COMP%]   .status-label[_ngcontent-%COMP%]{flex-grow:1;flex-basis:100%;margin-bottom:4px;justify-content:center}.sticky-footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{flex-grow:1}.sticky-footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-left:4px}.join-btn[_ngcontent-%COMP%]{text-transform:none;white-space:nowrap;overflow:hidden;position:relative}.join-btn[_ngcontent-%COMP%]:not(.disabled):before{animation:_ngcontent-%COMP%_shine 5s ease-in-out infinite}.join-btn[_ngcontent-%COMP%]:not(.disabled):before{content:"";position:absolute;top:0;width:100%;height:100%;background:linear-gradient(120deg,transparent,rgba(255,255,255,.8),transparent)}@keyframes _ngcontent-%COMP%_shine{0%{left:-100%;transition-property:left}11.5044247788%,to{left:100%;transition-property:left}}.participant-list[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]{display:grid;column-gap:15px;row-gap:20px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]{background-color:#fff;overflow:hidden;display:flex;align-items:center}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:40px;width:40px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:0 16px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;font-size:18px;font-weight:600}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#979aa3}.page-wrapper[_ngcontent-%COMP%]   .sponsor.major-header[_ngcontent-%COMP%]{padding-bottom:20px;margin-bottom:20px}.page-wrapper[_ngcontent-%COMP%]   .sponsor.major-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.mobile-sticky[_ngcontent-%COMP%]{position:sticky;height:48px;overflow:auto;top:40px}@media only screen and (min-width:601px)and (max-width:992px){.mobile-sticky[_ngcontent-%COMP%]{top:96px}}.mobile-sticky[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}.mobile-sticky[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]{display:flex}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .padding[_ngcontent-%COMP%]{padding:0 8px}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:12px 15px;font-size:16px}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{padding-bottom:8px}.mobile-header[_ngcontent-%COMP%]{padding:20px 20px 0;background:#fff}@media only screen and (min-width:993px){.page-wrapper[_ngcontent-%COMP%]{margin-top:40px}}@media only screen and (min-width:601px)and (max-width:992px){.breadcrumbs[_ngcontent-%COMP%]{top:56px}.page-wrapper[_ngcontent-%COMP%]{margin-top:40px}.sticky-nav[_ngcontent-%COMP%]{top:96px}}@media only screen and (max-width:600px){.breadcrumbs[_ngcontent-%COMP%]{position:sticky;top:0}.sticky-nav[_ngcontent-%COMP%]{position:sticky;top:40px}.page-wrapper[_ngcontent-%COMP%]{transform:translateZ(0)}}.nav-tabs[_ngcontent-%COMP%]{display:flex;align-items:center}.nav-tabs[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{padding:19px 20px;font-size:18px;font-weight:600;line-height:23px;display:inline-block;color:#979aa3;cursor:pointer;white-space:nowrap}.nav-tabs[_ngcontent-%COMP%]   .link.active[_ngcontent-%COMP%]{color:#6073eb;border-bottom:4px solid #6073eb;padding-bottom:15px}.nav-tabs[_ngcontent-%COMP%]   .join[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-shrink:0;justify-content:flex-end}.nav-tabs[_ngcontent-%COMP%]   .join[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:4px}.page-wrapper[_ngcontent-%COMP%]{background-color:#f8f8f8;font-family:Cabin}.page-wrapper[_ngcontent-%COMP%]   .major-header[_ngcontent-%COMP%]{background:#fff;border:1px solid #EAEDF3;box-shadow:0 1px 3px #0000000a;border-radius:5px;padding:20px 20px 0}.page-wrapper[_ngcontent-%COMP%]   .major-header[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]{padding:0}.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{margin-bottom:30px}@media not print{.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{padding-top:30px}}@media only screen and (max-width:992px){.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{padding:8px 15px 0}}.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{width:100%;height:1px;background-color:#eaedf3;margin-top:10px;margin-bottom:10px}app-card-footer[_ngcontent-%COMP%]  a, app-card-footer[_ngcontent-%COMP%]  button{margin:0!important;width:100%;text-transform:unset}app-tabs[_ngcontent-%COMP%]  div:first-child{padding-left:0;padding-right:0}app-tab-link[_ngcontent-%COMP%]:first-of-type  a{margin-left:0!important}.live-tab-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.live-indicator[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background:#f24d33;margin-right:10px}app-ad[_ngcontent-%COMP%]  .card{margin:0!important}.dropdown-button[_ngcontent-%COMP%]{color:#3d4248;display:flex;align-items:center;background:#fff;border:1px solid #EAEDF3;box-sizing:border-box;border-radius:4px;padding:10px!important}.dropdown-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex-grow:1;text-align:left}#dropdown-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:left}#dropdown-list[_ngcontent-%COMP%]   .live-indicator[_ngcontent-%COMP%]{display:inline-block}@media not print{article[_ngcontent-%COMP%] + article[_ngcontent-%COMP%]{margin-top:40px}}h3[_ngcontent-%COMP%]{font-weight:700;font-size:24px;margin:0 0 15px}h4[_ngcontent-%COMP%]{font-weight:600;font-size:18px;margin:0}.flex-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.flex-container.center-align[_ngcontent-%COMP%]{padding:11px 0}.flex-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{color:#6073eb;font-weight:600;cursor:pointer}.weak[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:22px;color:#979aa3}.faint-btn[_ngcontent-%COMP%]{background:#f0f1fd;color:#6073eb;box-shadow:none;text-transform:none}.status-label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.status-label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:4px}@media print{.major-header[_ngcontent-%COMP%]{background:none!important;border:none!important;box-shadow:none!important;padding:0!important}}.video-card[_ngcontent-%COMP%]{position:relative}.video-card[_ngcontent-%COMP%]:before{content:"";display:block;padding-bottom:56.25%}.video-card[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%], .video-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}.video-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;object-position:center}.video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]{background-color:#00000080;display:flex;justify-content:center;align-items:center;color:#fff}.video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]:hover{cursor:pointer}.video-container[_ngcontent-%COMP%]{margin-top:20px}.join-controls[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;
28gap:4px}.join-controls[_ngcontent-%COMP%]   .code-btn[_ngcontent-%COMP%]{order:2}.how[_ngcontent-%COMP%]{overflow:auto}.how[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:inline}.how-wrap[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #eaedf3;box-sizing:border-box;border-radius:4px;padding:20px;margin:0 20px 10px}.how-wrap[_ngcontent-%COMP%]:first-child{margin-top:20px}.how-wrap[_ngcontent-%COMP%]:last-child{margin-bottom:20px}.how-wrap[_ngcontent-%COMP%]{text-align:center}.how-wrap[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:20px 0 10px;font-size:21px;font-weight:700}.how-wrap[_ngcontent-%COMP%]   .weak[_ngcontent-%COMP%]{font-size:16px;font-weight:400;text-transform:none}@media only screen and (min-width:601px){app-modal[_ngcontent-%COMP%]  .modal-container{max-width:480px}}
29/*# sourceMappingURL=tournament.component-7LCOQPBN.css.map */`]})}}return t})();var Ol=["breadcrumbs"],Ml=["navSwitchMark"],wl=["mobileNav"],yl=["howPointsWork"],Tl=["link"],kl=()=>({showEnter:!0}),ao=()=>({showText:!0}),Sl=t=>["/member",t],El=t=>["/admin","tournament",t],Il=()=>({showText:!1}),zl=t=>["/event",t,"code"],Dl=t=>["/event",t,"register"],Rl=(t,c)=>c.species_id,Fl=(t,c)=>c.user.id;function jl(t,c){t&1&&Z(0)}function Vl(t,c){if(t&1&&(o(0,"div",12),y(1,jl,1,0,"ng-container",40),a()),t&2){p();let e=R(44);r(),d("ngTemplateOutlet",e)("ngTemplateOutletContext",Pe(2,kl))}}function Ll(t,c){t&1&&Z(0)}function Al(t,c){t&1&&Z(0)}function Nl(t,c){if(t&1&&(o(0,"div",22),y(1,Al,1,0,"ng-container",40),a()),t&2){p();let e=R(46);r(),d("ngTemplateOutlet",e)("ngTemplateOutletContext",Pe(2,ao))}}function $l(t,c){t&1&&Z(0)}function Bl(t,c){if(t&1&&(o(0,"article",41),_(1,"app-tournament-winners",32),a()),t&2){let e=p(2);r(),d("tournament",e.tournament)}}function Ul(t,c){if(t&1&&(o(0,"div",25),m(1,Bl,2,1,"article",41),b(2,"async"),a()),t&2){let e=p();r(),g(w(2,1,e.tournamentStatus$)==="AFTER"?1:-1)}}function Hl(t,c){if(t&1&&(o(0,"a",44),_(1,"img",45),a()),t&2){let e=p(2);d("href",e.tournament.sponsor.site_url,T),r(),d("src",e.tournament.sponsor.image_url,T)}}function ql(t,c){if(t&1&&_(0,"img",45),t&2){let e=p(2);d("src",e.tournament.sponsor.image_url,T)}}function Wl(t,c){if(t&1){let e=O();o(0,"div",21)(1,"h3"),l(2,"Sponsored By"),a(),o(3,"a",42),C("click",function(){f(e);let i=p();return h(i.openAllSponsors())}),l(4,"See All Sponsors"),a()(),o(5,"div",43),m(6,Hl,2,2,"a",44)(7,ql,1,1,"img",45),a()}if(t&2){let e=p();r(6),g(e.tournament.sponsor!=null&&e.tournament.sponsor.site_url?6:7)}}function Zl(t,c){if(t&1){let e=O();o(0,"div",27)(1,"a",46),C("click",function(){f(e);let i=p();return h(i.openAllSponsors())}),l(2,"See All Sponsors"),a()()}}function Ql(t,c){if(t&1){let e=O();o(0,"button",50),C("click",function(){f(e),p(3);let i=R(1),s=p();return h(s.openLeaderboardDialog(i))}),l(1,"View Full Leaderboard"),a()}}function Gl(t,c){if(t&1){let e=O();o(0,"button",51),C("click",function(){f(e);let i=p(4);return h(i.openPointsInfoDialog())}),l(1,"How Points Work"),a()}}function Yl(t,c){if(t&1&&(m(0,Ql,2,0,"button",48),m(1,Gl,2,0,"button",49)),t&2){let e;p(2);let n=R(1),i=p();g(n.hasEntries()?0:-1),r(),g((e=n.datasource.leaderboard())!=null&&e.is_points_leaderboard&&!i.tournament.cfn_style?1:-1)}}function Kl(t,c){t&1&&y(0,Yl,2,2,"ng-template",47)}function Xl(t,c){if(t&1&&(o(0,"app-tournament-leaderboard",28,7),m(2,Kl,1,0,null,47),a()),t&2){let e,n=R(1),i=p();d("tournament",i.tournament)("startingLeaderboard",i.startingLeaderboard),r(2),g(n.hasEntries()||(e=n.datasource.leaderboard())!=null&&e.is_points_leaderboard&&!i.tournament.cfn_style?2:-1)}}function Jl(t,c){if(t&1){let e=O();o(0,"div")(1,"a",54),C("click",function(){let i=f(e).$implicit,s=p(2);return h(s.openCfnLeaderboard(i))}),l(2),a()()}if(t&2){let e=c.$implicit;r(2),x(" ",e.species_name," ")}}function es(t,c){if(t&1&&(o(0,"app-card"),_(1,"app-card-header",52),o(2,"div",53),S(3,Jl,3,1,"div",null,Rl),a()()),t&2){let e=p();r(3),E(e.cfnSpeciesList)}}function ts(t,c){if(t&1&&l(0),t&2){let e=p(2);x(" \xA0(",e.participants.length,") ")}}function ns(t,c){if(t&1&&(o(0,"span"),l(1),a()),t&2){let e=p().$implicit;r(),v(e.division.name)}}function is(t,c){if(t&1&&(o(0,"a",57),_(1,"img",58),o(2,"div")(3,"span",59),l(4),b(5,"fullnameOrUsername"),a(),m(6,ns,2,1,"span"),a()()),t&2){let e=c.$implicit;d("routerLink",ee(6,Sl,e.user.id)),r(),d("src",e.user.avatar_url,T),r(3),v(w(5,4,e.user)),r(2),g(e.division?6:-1)}}function os(t,c){if(t&1&&(o(0,"app-card")(1,"app-card-header")(2,"h4"),l(3," Participants "),m(4,ts,1,1),a()(),o(5,"div",55)(6,"div",56),S(7,is,7,8,"a",57,Fl),a()()()),t&2){let e=p();r(4),g(e.tournament!=null&&e.tournament.show_participants_count?4:-1),r(3),E(e.participants)}}function rs(t,c){t&1&&Z(0)}function as(t,c){if(t&1&&(o(0,"article",29),y(1,rs,1,0,"ng-container",17),a()),t&2){p();let e=R(48);r(),d("ngTemplateOutlet",e)}}function cs(t,c){t&1&&Z(0)}function ls(t,c){if(t&1&&(o(0,"article"),y(1,cs,1,0,"ng-container",17),a()),t&2){p();let e=R(48);r(),d("ngTemplateOutlet",e)}}function ss(t,c){if(t&1&&(o(0,"article",35),_(1,"app-tournament-divisions",32),a()),t&2){let e=p();r(),d("tournament",e.tournament)}}function ps(t,c){if(t&1&&(o(0,"article",36),_(1,"app-tournament-prizes",32),a()),t&2){let e=p();r(),d("tournament",e.tournament)}}function ds(t,c){t&1&&(o(0,"article",38),_(1,"app-tournament-onboarding"),a())}function ms(t,c){t&1&&Z(0)}function gs(t,c){if(t&1&&(o(0,"div",39),y(1,ms,1,0,"ng-container",40),a()),t&2){p();let e=R(46);r(),d("ngTemplateOutlet",e)("ngTemplateOutletContext",Pe(2,ao))}}function _s(t,c){if(t&1){let e=O();o(0,"a",42,8),C("click",function(){f(e);let i=p(2);return h(i.scrollTo("winners"))}),l(2," Winners "),a()}if(t&2){let e=p(2);D("active",e.activeSection==="winners")}}function us(t,c){if(t&1){let e=O();o(0,"a",42,8),C("click",function(){f(e);let i=p(2);return h(i.scrollTo("divisions"))}),l(2),b(3,"titlecase"),a()}if(t&2){let e=p(2);D("active",e.activeSection==="divisions"),r(2),x(" ",w(3,3,e.tournament.division_type_pluralized||"Divisions")," ")}}function Cs(t,c){if(t&1){let e=O();o(0,"a",42,8),C("click",function(){f(e);let i=p(2);return h(i.scrollTo("prizes"))}),l(2," Prizes "),a()}if(t&2){let e=p(2);D("active",e.activeSection==="prizes")}}function fs(t,c){if(t&1){let e=O();o(0,"a",42,8),C("click",function(){f(e);let i=p(2);return h(i.scrollTo("onboarding"))}),l(2," Checklist "),a()}if(t&2){let e=p(2);D("active",e.activeSection==="onboarding")}}function hs(t,c){if(t&1&&(o(0,"a",63),l(1," Organizer "),a()),t&2){let e=p(2);d("routerLink",e.organizerLink)}}function xs(t,c){if(t&1&&(o(0,"a",63),l(1," Edit "),a()),t&2){let e=p(2);d("routerLink",ee(1,El,e.tournament.id))}}function vs(t,c){if(t&1&&(o(0,"a",63),l(1," Captain "),a()),t&2){let e=p(2);d("routerLink",e.captainLink)}}function bs(t,c){t&1&&Z(0)}function Ps(t,c){if(t&1&&(o(0,"div",64),y(1,bs,1,0,"ng-container",40),a()),t&2){p(2);let e=R(46);r(),d("ngTemplateOutlet",e)("ngTemplateOutletContext",Pe(2,Il))}}function Os(t,c){if(t&1){let e=O();o(0,"div",60),_(1,"div",61),m(2,_s,3,2,"a",62),o(3,"a",42,8),C("click",function(){f(e);let i=p();return h(i.scrollTo("overview"))}),l(5,"Overview"),a(),o(6,"a",42,8),C("click",function(){f(e);let i=p();return h(i.scrollTo("entries"))}),l(8,"Feed"),a(),m(9,us,4,5,"a",62),m(10,Cs,3,2,"a",62),o(11,"a",42,8),C("click",function(){f(e);let i=p();return h(i.scrollTo("rules"))}),l(13," Rules "),a(),m(14,fs,3,2,"a",62),m(15,hs,2,1,"a",63),m(16,xs,2,3,"a",63),m(17,vs,2,1,"a",63),_(18,"div",61),m(19,Ps,2,3,"div",64),a()}if(t&2){let e=c.showEnter,n=p();r(2),g(n.hasWinners?2:-1),r(),D("active",n.activeSection==="overview"),r(3),D("active",n.activeSection==="entr
29ies"),r(3),g(n.tournament.has_divisions&&!n.tournament.cfn_style?9:-1),r(),g(n.tournament.has_prizes?10:-1),r(),D("active",n.activeSection==="rules"),r(3),g(n.tournament.hide_event_checklist?-1:14),r(),g(n.organizerLink?15:-1),r(),g(n.canEditTournament?16:-1),r(),g(n.captainLink?17:-1),r(2),g(e&&n.joinButton?19:-1)}}function Ms(t,c){t&1&&(o(0,"i",70),l(1,"check"),a())}function ws(t,c){if(t&1&&(o(0,"div",69),m(1,Ms,2,0,"i",70),l(2),a()),t&2){let e=p(2);D("weak",e.tournament.join_status!=="ACCEPTED")("mycatch-blue-text",e.tournament.join_status==="ACCEPTED"),r(),g(e.tournament.join_status==="ACCEPTED"?1:-1),r(),x(" ",e.joinButton.statusText," ")}}function ys(t,c){if(t&1&&(o(0,"a",66),l(1,"Enter Event Code"),a()),t&2){let e=p(2);d("routerLink",ee(1,zl,e.tournament.id))}}function Ts(t,c){if(t&1&&(o(0,"a",71),l(1),a()),t&2){let e=p(2);D("primary-btn",!e.joinButton.disabled)("disabled",e.joinButton.disabled),d("routerLink",ee(6,Dl,e.tournament.id)),r(),x(" ",e.joinButton.buttonText," ")}}function ks(t,c){if(t&1){let e=O();o(0,"button",72),C("click",function(){f(e);let i=p(2);return h(i.handleShareClicked())}),l(1),a()}if(t&2){let e=p(2);r(),x(" ",e.tournament.share_button_text??"Share Event"," ")}}function Ss(t,c){if(t&1&&(m(0,ws,3,6,"div",65),m(1,ys,2,3,"a",66),m(2,Ts,2,8,"a",67),m(3,ks,2,1,"button",68)),t&2){let e=c.showText,n=p();g(e&&n.joinButton.statusText?0:-1),r(),g(n.tournament.show_enter_code_button&&!n.entryIsFree&&n.tournament.joinable&&(n.tournament.join_status==null||n.tournament.join_status==="PENDING_PAYMENT")?1:-1),r(),g(!n.tournament.join_status||n.tournament.join_status=="PENDING_PAYMENT"?2:-1),r(),g(n.joinButton.showShare?3:-1)}}function Es(t,c){if(t&1){let e=O();_(0,"img",45),o(1,"div",75),C("click",function(){f(e);let i=p(3);return h(i.clickYoutubeVideoPreview())}),o(2,"i",76),l(3,"play_arrow"),a()()}if(t&2){let e=p(3);d("src",e.youtube.thumbnailUrl,T)}}function Is(t,c){if(t&1&&_(0,"iframe",74),t&2){let e=p(3);fn("src",e.youtube.embedUrl,mn)}}function zs(t,c){if(t&1&&(o(0,"div",73),m(1,Es,4,1)(2,Is,1,1,"iframe",74),a()),t&2){let e=p(2);r(),g(e.youtube.showVideo?2:1)}}function Ds(t,c){if(t&1&&m(0,zs,3,1,"div",73),t&2){let e=p();g(e.youtube?0:-1)}}function Rs(t,c){if(t&1){let e=O();o(0,"app-modal",77),C("modalClose",function(){f(e);let i=p();return h(i.closePointsInfoDialog())}),o(1,"div",78)(2,"div",79),_(3,"img",80),o(4,"div",81),l(5,"Points are relative to your position on the leaderboard"),a(),o(6,"div",82),l(7," Let\u2019s say there is a leaderboard of 50 people. The first, second, and third people on the leaderboard are each awarded 50, 49, and 48 points, respectively. This pattern continues until the last person on the leaderboard is awarded 1 point. "),a()(),o(8,"div",79),_(9,"img",83),o(10,"div",81),l(11,"No points are given to participants who didn\u2019t catch"),a(),o(12,"div",82),l(13," For example, if participants haven't caught Rainbow Trout, they won't be listed and result in no points for that particular leaderboard. "),a()()()()}}var Ft=(()=>{class t{constructor(){this.responsive=P(me),this.tournamentService=P(Et),this.cfnLeaderboardService=P(bi),this.dialog=P(zi),this.meta=P(Fn),this.route=P(je),this.title=P(jn),this.overlay=P(ae),this.dialogService=P(Q),this.viewContainerRef=P(ht),this.document=P(ut),this.sanitizer=P(Vn),this.authService=P(xe),this.sharedTournamentService=P(z),this.breadcrumbData=[],this.isStickyNavVisible=!1,this.tournament=null,this.tournamentTimeZone=null,this.organizerLink=null,this.captainLink=null,this.hasWinners=!1,this.canEditTournament=!1,this.headerMapIsFullscreen=!1,this.youtube=null,this.entryIsFree=!1,this.pointsInfoDialogRef=null,this.userId=null,this.recruitDialogRef=null,this.recruitDialogRefClosedSubscription=W.EMPTY,this.subscriptions=[]}ngOnInit(){this.tournamentService.initializeFrom(this.route),this.tournamentStatus$=this.tournamentService.liveStatus$,this.subscriptions.push(this.tournamentService.tournament$.subscribe({next:e=>{if(this.setMetaData(e),this.maybeShowRecruitDialog(),e.youtube_url){let n=hi(e.youtube_url);if(n.length){let i=n[0];this.youtube={embedUrl:this.sanitizer.bypassSecurityTrustResourceUrl(`https://www.youtube.com/embed/${i}`),thumbnailUrl:`https://i.ytimg.com/vi/${i}/hqdefault.jpg`,showVideo:!1}}}this.entryIsFree=(e.entry_types??[]).reduce((n,i)=>n&&!!i.variant_id,!0),this.tournament=e,this.tournamentTimeZone=e.iana_timezone?new Ot(e.iana_timezone):null,e.is_organizer&&(this.organizerLink=["/tourn
29ament-admin",e.id,"organizer"]),this.hasLeaderboards=!!e.leaderboards.length||e.cfn_style,this.hasLeaderboards&&(i=>{if(!this.hasWinners)for(let s of i){if(this.hasWinners)break;let u=s.winners??[];this.hasWinners=u.length>0}})(e.leaderboards),e.cfn_style&&this.subscriptions.push(this.cfnLeaderboardService.list(e.id).subscribe(n=>this.cfnSpeciesList=n))},error:console.error}),ke([this.tournamentService.tournament$,this.tournamentStatus$]).pipe(st(([e,n])=>n=="BEFORE"),be(([e,n])=>this.sharedTournamentService.getParticipants(e.id))).subscribe(e=>{this.participants=e.body}),this.tournamentService.joinButton$.subscribe(e=>{this.joinButton=e}),this.route.data.subscribe(e=>{this.startingLeaderboard=e.startingLeaderboard}),this.authService.loggedInUser$.subscribe({next:e=>{this.userId=e?.id;let n=this.tournament.divisions.find(s=>s.captains.some(u=>u.id===this.userId));n&&(this.captainLink=["/event",this.tournament.id,"captain",n.id]);let i=e?.account_type;this.canEditTournament=i==="ADMIN"||i==="TRIP_VIEWER"||i==="FRONTEND_ADMIN",this.maybeShowRecruitDialog()},error:console.error}))}maybeShowRecruitDialog(){let e=this.userId,n=this.tournament;e&&n&&this.recruitDialogRef==null&&We.shouldShow(n)&&(this.recruitDialogRef=We.open(e,n.id,n.name,n.slug,this.dialog,this.overlay),this.recruitDialogRefClosedSubscription=this.recruitDialogRef.closed.subscribe(()=>{this.recruitDialogRef=null,this.tournamentService.triggerRefresh()}))}ngAfterViewInit(){setTimeout(()=>{this.activeSection=this.sections.first.name})}ngOnDestroy(){this.recruitDialogRefClosedSubscription.unsubscribe(),this.subscriptions.forEach(e=>e.unsubscribe())}openAllSponsors(){let e=new K;e.closeOnNavigation=!0,e.closeable=!0,e.data={tournamentId:this.tournament.id,divisionType:this.tournament.division_type},e.overlayConfig={width:"100%",hasBackdrop:!0,panelClass:"scrollable",positionStrategy:this.overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:this.overlay.scrollStrategies.block()},this.dialogService.open(to,e,!1,this.viewContainerRef)}scrollTo(e){let n=this.sections.find(i=>i.name===e).elementRef.nativeElement;window.scrollTo({top:this.calcScrollAmount()+n.getBoundingClientRect().top-this.calcHeaderOffset()-19,behavior:"smooth"})}onScroll(e){let n=this.navSwitchMark.nativeElement.offsetTop-this.breadcrumbs.nativeElement.offsetHeight-this.breadcrumbs.nativeElement.offsetTop;this.isStickyNavVisible=this.calcScrollAmount()>n;let i=this.sections.toArray(),s=this.links.toArray(),u=this.calcHeaderOffset();for(let M=0;M<i.length;M++){let V=i[M].elementRef.nativeElement;if(u<V.getBoundingClientRect().bottom+20){this.activeSection=i[M].name;for(let q=M;q<s.length;q+=i.length){let N=s[q].nativeElement,ne=N.parentNode.parentNode,we=35;N.offsetLeft-we<ne.scrollLeft?ne.scrollTo({left:N.offsetLeft-we,behavior:"smooth"}):N.offsetLeft+N.offsetWidth-ne.offsetWidth+we>ne.scrollLeft&&ne.scrollTo({left:N.offsetLeft+N.offsetWidth-ne.offsetWidth+we,behavior:"smooth"})}break}}}handleShareClicked(){let e={url:`${window.location.href.split(/[?#]/)[0]}?refuid=${this.authService.userSnapshot.id}`};this.tournament.share_out_title&&(e.title=this.tournament.share_out_title),this.tournament.share_out_text&&(e.text=this.tournament.share_out_text),navigator.canShare&&xi()?navigator.share(e):Zi.open(this.tournament,e,this.dialogService,this.overlay)}clickYoutubeVideoPreview(){this.youtube.showVideo=!0}openLeaderboardDialog(e){let n=e.datasource.entries().length,i={tournament:this.tournament,maxVisible:n,isFull:!0};$i.open(this.dialogService,this.overlay,i,e.datasource)}openPointsInfoDialog(){let e=new K;e.closeOnNavigation=!0,e.closeable=!0,e.overlayConfig={width:"100%",height:"100%",hasBackdrop:!0,positionStrategy:this.overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:this.overlay.scrollStrategies.block()},this.pointsInfoDialogRef=this.dialogService.open(this.howPointsWork,e,!1,this.viewContainerRef)}closePointsInfoDialog(){this.pointsInfoDialogRef?.close(),this.pointsInfoDialogRef=null}openCfnLeaderboard(e){let n=new K;n.closeOnNavigation=!0,n.closeable=!0,n.data=Qe(ye({},e),{tournament:this.tournament}),n.overlayConfig={width:"100%",hasBackdrop:!0,panelClass:"scrollable",positionStrategy:this.overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:this.overlay.scrollStrategies.block()},this.dialogService.open(Li,n,!1,this.viewContainerRef)}setMetaData(e){this.title.setTitle(`${e.name} | Angler's Atlas`),this.meta.updateTag({name:"description",content:e.meta_description}),this.breadcrumbData=[{title:"Event Directory",urlParts:["/events"]},{title:e.name}]}calcScrollAmount(){return typeof window>"u"?0:window.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0}calcWidth(){return typeof window>"u"||typeof document>"u"?0:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}calcHeaderOffset(){return this.calcWidth()>600?this.navSwitchMark.nativeElement.offsetHeight+this.breadcrumbs.nativeElement.offsetHeight+this.breadcrumbs.nativeElement.offsetTop:this.mobileNav.nativeElement.clientHeight+this.breadcrumbs.nativeElement.clientHeight}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament"]],viewQuery:function(n,i){if
29(n&1&&te(Ol,5)(Ml,5)(wl,5)(yl,7)(Rt,5)(Tl,5),n&2){let s;$(s=B())&&(i.breadcrumbs=s.first),$(s=B())&&(i.navSwitchMark=s.first),$(s=B())&&(i.mobileNav=s.first),$(s=B())&&(i.howPointsWork=s.first),$(s=B())&&(i.sections=s),$(s=B())&&(i.links=s)}},hostBindings:function(n,i){n&1&&C("scroll",function(u){return i.onScroll(u)},gn)},standalone:!1,features:[Re([Et,nt])],decls:51,vars:28,consts:[["breadcrumbs",""],["mobileNav",""],["navSwitchMark",""],["headerLinks",""],["joinButtonTemplate",""],["videoContainer",""],["howPointsWork",""],["leaderboard",""],["link",""],[1,"breadcrumbs","hide-on-print"],[1,"crumb"],[3,"items"],[1,"sticky-nav","hide-on-med-and-down","hide-on-print"],[1,"page-wrapper","container-max-width"],[1,"mobile-header","hide-on-large-only","hide-on-print"],[3,"tournament","tournamentTimeZone"],[1,"mobile-sticky","hide-on-large-only","hide-on-print"],[4,"ngTemplateOutlet"],[1,"row"],[1,"col","s12","hide-on-med-and-down","hide-on-print"],[1,"major-header"],[1,"flex-container"],[1,"hide-on-print","join-controls"],[1,"divider","hide-on-print"],[1,"hide-on-print"],[1,"col","s12","hide-on-print"],[1,"col","s12","l4","push-l8","hide-on-print"],[1,"flex-container","center-align"],[3,"tournament","startingLeaderboard"],[1,"video-container"],[1,"col","s12","l8","pull-l4"],["appTournamentTab","overview",1,"hide-on-print"],[3,"tournament"],["appTournamentTab","entries",1,"hide-on-print"],["marginOffset","16px",3,"tournament","tournamentTimeZone"],["appTournamentTab","divisions",1,"hide-on-print"],["appTournamentTab","prizes",1,"hide-on-print"],["appTournamentTab","rules"],["appTournamentTab","onboarding",1,"hide-on-print"],[1,"sticky-footer","hide-on-large-only","hide-on-print"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["appTournamentTab","winners"],[1,"link",3,"click"],[1,"major-header","sponsor"],[3,"href"],[3,"src"],[1,"full-width","link",3,"click"],["appTournamentLeaderboardFooter",""],[1,"btn","primary-btn"],[1,"btn","faint-btn"],[1,"btn","primary-btn",3,"click"],[1,"btn","faint-btn",3,"click"],["title","Leaderboards by Species"],["appCardContent",""],[1,"btn","flat-btn",3,"click"],["appCardContent","",1,"participant-list"],[1,"grid"],[1,"member",3,"routerLink"],[1,"circle",3,"src"],[1,"font-color-text"],[1,"container-max-width","nav-tabs"],[1,"padding","show-on-small"],[1,"link",3,"active"],["target","_blank",1,"link",3,"routerLink"],[1,"join"],[1,"status-label",3,"weak","mycatch-blue-text"],[1,"btn","outlined-btn","code-btn",3,"routerLink"],[1,"btn","join-btn",3,"primary-btn","disabled","routerLink"],[1,"btn","share-btn","primary-btn"],[1,"status-label"],[1,"material-icons","mycatch-blue-text"],[1,"btn","join-btn",3,"routerLink"],[1,"btn","share-btn","primary-btn",3,"click"],[1,"video-card"],["width","560","height","315","title","YouTube video player","frameborder","0","allow","autoplay; encrypted-media; picture-in-picture","allowfullscreen",""],[1,"video-play-button",3,"click"],[1,"large","material-icons"],["title","How Points Work",3,"modalClose"],[1,"how"],[1,"how-wrap"],["src","/assets/how-to-points-podium.png"],[1,"title"],[1,"weak"],["src","/assets/how-to-points-no-points.png"]],template:function(n,i){if(n&1&&(o(0,"div",9,0)(2,"div",10),_(3,"app-breadcrumbs",11),a()(),m(4,Vl,2,3,"div",12),o(5,"div",13)(6,"div",14),_(7,"app-tournament-header",15),a(),o(8,"div",16,1),y(10,Ll,1,0,"ng-container",17),a(),o(11,"div",18)(12,"div",19)(13,"div",20)(14,"div",21),_(15,"app-tournament-header",15),m(16,Nl,2,3,"div",22),a(),_(17,"div",23),o(18,"div",24,2),y(20,$l,1,0,"ng-container",17),a()()(),m(21,Ul,3,3,"div",25),o(22,"div",26),m(23,Wl,8,1)(24,Zl,3,0,"div",27),m(25,Xl,3,3,"app-tournament-leaderboard",28),m(26,es,5,0,"app-card"),m(27,os,9,1,"app-card"),m(28,as,2,1,"article",29),b(29,"async"),a(),o(30,"div",30)(31,"article",31),_(32,"app-tournament-overview",32),a(),m(33,ls,2,1,"article"),b(34,"async"),o(35,"article",33),_(36,"aa-event-feed",34),a(),m(37,ss,2,1,"article",35),m(38,ps,2,1,"article",36),o(39,"article",37),_(40,"app-tournament-rules",32),a(),m(41,ds,2,0,"article",38),a()()(),m(42,gs,2,3,"div",39),y(43,Os,20,14,"
29ng-template",null,3,U)(45,Ss,4,4,"ng-template",null,4,U)(47,Ds,1,1,"ng-template",null,5,U)(49,Rs,14,0,"ng-template",null,6,U)),n&2){let s=R(44);r(3),d("items",i.breadcrumbData),r(),g(i.isStickyNavVisible?4:-1),r(3),d("tournament",i.tournament)("tournamentTimeZone",i.tournamentTimeZone),r(3),d("ngTemplateOutlet",s),r(5),d("tournament",i.tournament)("tournamentTimeZone",i.tournamentTimeZone),r(),g(i.joinButton?16:-1),r(4),d("ngTemplateOutlet",s),r(),g(i.hasWinners?21:-1),r(2),g(!(i.tournament==null||i.tournament.sponsor==null)&&i.tournament.sponsor.name?23:24),r(2),g(i.hasLeaderboards?25:-1),r(),g(i.tournament!=null&&i.tournament.cfn_style&&(i.cfnSpeciesList!=null&&i.cfnSpeciesList.length)?26:-1),r(),g((i.participants==null?null:i.participants.length)>=5&&(i.tournament!=null&&i.tournament.show_participants)?27:-1),r(),g(w(29,24,i.responsive.l)===!0?28:-1),r(4),d("tournament",i.tournament),r(),g(w(34,26,i.responsive.l)!==!0?33:-1),r(3),d("tournament",i.tournament)("tournamentTimeZone",i.tournamentTimeZone),r(),g(i.tournament!=null&&i.tournament.has_divisions&&!i.tournament.cfn_style?37:-1),r(),g(i.tournament!=null&&i.tournament.has_prizes?38:-1),r(2),d("tournament",i.tournament),r(),g(i.tournament!=null&&i.tournament.hide_event_checklist?-1:41),r(),g(i.joinButton?42:-1)}},dependencies:[re,he,Ri,j,H,de,$e,Ni,Rt,Ne,kt,qe,St,Ki,Dt,Ji,ro,Gi,Ce,fe,J],styles:[`.breadcrumbs[_ngcontent-%COMP%]{position:fixed;background:#fff;max-width:1420px;width:100%;height:40px;z-index:2;top:60px;display:flex;padding:0 25px;align-items:center;border-bottom:1px solid #EAEDF3}.breadcrumbs[_ngcontent-%COMP%]   .crumb[_ngcontent-%COMP%]{display:flex;align-items:center}.sticky-nav[_ngcontent-%COMP%], .mobile-sticky[_ngcontent-%COMP%]{position:fixed;background:#fff;border-bottom:1px solid #EAEDF3;height:62px;top:100px;z-index:2;max-width:1420px;width:100%}.sticky-footer[_ngcontent-%COMP%]{position:sticky;background:#fff;border-top:1px solid #EAEDF3;padding:10px 20px;bottom:0;z-index:2;max-width:1420px;width:100%;display:flex;flex-wrap:wrap}.sticky-footer[_ngcontent-%COMP%]   .status-label[_ngcontent-%COMP%]{flex-grow:1;flex-basis:100%;margin-bottom:4px;justify-content:center}.sticky-footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{flex-grow:1}.sticky-footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-left:4px}.join-btn[_ngcontent-%COMP%]{text-transform:none;white-space:nowrap;overflow:hidden;position:relative}.join-btn[_ngcontent-%COMP%]:not(.disabled):before{animation:_ngcontent-%COMP%_shine 5s ease-in-out infinite}.join-btn[_ngcontent-%COMP%]:not(.disabled):before{content:"";position:absolute;top:0;width:100%;height:100%;background:linear-gradient(120deg,transparent,rgba(255,255,255,.8),transparent)}@keyframes _ngcontent-%COMP%_shine{0%{left:-100%;transition-property:left}11.5044247788%,to{left:100%;transition-property:left}}.participant-list[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]{display:grid;column-gap:15px;row-gap:20px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]{background-color:#fff;overflow:hidden;display:flex;align-items:center}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:40px;width:40px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:0 16px}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;font-size:18px;font-weight:600}.participant-list[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#979aa3}.page-wrapper[_ngcontent-%COMP%]   .sponsor.major-header[_ngcontent-%COMP%]{padding-bottom:20px;margin-bottom:20px}.page-wrapper[_ngcontent-%COMP%]   .sponsor.major-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.mobile-sticky[_ngcontent-%COMP%]{position:sticky;height:48px;overflow:auto;top:40px}@media only screen and (min-width:601px)and (max-width:992px){.mobile-sticky[_ngcontent-%COMP%]{top:96px}}.mobile-sticky[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}.mobile-sticky[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]{display:flex}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .padding[_ngcontent-%COMP%]{padding:0 8px}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:12px 15px;font-size:16px}.mobile-sticky[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{padding-bottom:8px}.mobile-header[_ngcontent-%COMP%]{padding:20px 20px 0;background:#fff}@media only screen and (min-width:993px){.page-wrapper[_ngcontent-%COMP%]{margin-top:40px}}@media only screen and (min-width:601px)and (max-width:992px){.breadcrumbs[_ngcontent-%COMP%]{top:56px}.page-wrapper[_ngcontent-%COMP%]{margin-top:40px}.sticky-nav[_ngcontent-%COMP%]{top:96px}}@media only screen and (max-width:600px){.breadcrumbs[_ngcontent-%COMP%]{position:sticky;top:0}.sticky-nav[_ngcontent-%COMP%]{position:sticky;top:40px}.page-wrapper[_ngcontent-%COMP%]{transform:translateZ(0)}}.nav-tabs[_ngcontent-%COMP%]{display:flex;align-items:center}.nav-tabs[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{padding:19px 20px;font-size:18px;font-weight:600;line-height:23px;display:inline-block;color:#979aa3;cursor:pointer;white-space:nowrap}.nav-tabs[_ngcontent-%COMP%]   .link.active[_ngcontent-%COMP%]{color:#6073eb;border-bottom:4px solid #6073eb;padding-bottom:15px}.nav-tabs[_ngcontent-%COMP%]   .join[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-shrink:0;justify-content:flex-end}.nav-tabs[_ngcontent-%COMP%]   .join[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:4px}.page-wrapper[_ngcontent-%COMP%]{background-color:#f8f8f8;font-family:Cabin}.page-wrapper[_ngcontent-%COMP%]   .major-header[_ngcontent-%COMP%]{background:#fff;border:1px solid #EAEDF3;box-shadow:0 1px 3px #0000000a;border-radius:5px;padding:20px 20px 0}.page-wrapper[_ngcontent-%COMP%]   .major-header[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]{padding:0}.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{margin-bottom:30px}@media not print{.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{padding-top:30px}}@media only screen and (max-width:992px){.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{padding:8px 15px 0}}.page-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{width:100%;height:1px;background-color:#eaedf3;margin-top:10px;margin-bottom:10px}app-card-footer[_ngcontent-%COMP%]  a, app-card-footer[_ngcontent-%COMP%]  button{margin:0!important;width:100%;text-transform:unset}app-tabs[_ngcontent-%COMP%]  div:first-child{padding-left:0;padding-right:0}app-tab-link[_ngcontent-%COMP%]:first-of-type  a{margin-left:0!important}.live-tab-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.live-indicator[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background:#f24d33;margin-right:10px}app-ad[_ngcontent-%COMP%]  .card{margin:0!important}.dropdown-button[_ngcontent-%COMP%]{color:#3d4248;display:flex;align-items:center;background:#fff;border:1px solid #EAEDF3;box-sizing:border-box;border-radius:4px;padding:10px!important}.dropdown-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex-grow:1;text-align:left}#dropdown-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:left}#dropdown-list[_ngcontent-%COMP%]   .live-indicator[_ngcontent-%COMP%]{display:inline-block}@media not print{article[_ngcontent-%COMP%] + article[_ngcontent-%COMP%]{margin-top:40px}}h3[_ngcontent-%COMP%]{font-weight:700;font-size:24px;margin:0 0 15px}h4[_ngcontent-%COMP%]{font-weight:600;font-size:18px;margin:0}.flex-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.flex-container.center-align[_ngcontent-%COMP%]{padding:11px 0}.flex-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{color:#6073eb;font-weight:600;cursor:pointer}.weak[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:22px;color:#979aa3}.faint-btn[_ngcontent-%COMP%]{background:#f0f1fd;color:#6073eb;box-shadow:none;text-transform:none}.status-label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.status-label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:4px}@media print{.major-header[_ngcontent-%COMP%]{background:none!important;border:none!important;box-shadow:none!important;padding:0!important}}.video-card[_ngcontent-%COMP%]{position:relative}.video-card[_ngcontent-%COMP%]:before{content:"";display:block;padding-bottom:56.25%}.video-card[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%], .video-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}.video-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;object-position:center}.video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]{background-color:#00000080;display:flex;justify-content:center;align-items:center;color:#fff}.video-card[_ngcontent-%COMP%]   .video-play-button[_ngcontent-%COMP%]:hover{cursor:pointer}.video-container[_ngcontent-%COMP%]{margin-top:20px}.join-controls[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;
29gap:4px}.join-controls[_ngcontent-%COMP%]   .code-btn[_ngcontent-%COMP%]{order:2}.how[_ngcontent-%COMP%]{overflow:auto}.how[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:inline}.how-wrap[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #eaedf3;box-sizing:border-box;border-radius:4px;padding:20px;margin:0 20px 10px}.how-wrap[_ngcontent-%COMP%]:first-child{margin-top:20px}.how-wrap[_ngcontent-%COMP%]:last-child{margin-bottom:20px}.how-wrap[_ngcontent-%COMP%]{text-align:center}.how-wrap[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:20px 0 10px;font-size:21px;font-weight:700}.how-wrap[_ngcontent-%COMP%]   .weak[_ngcontent-%COMP%]{font-size:16px;font-weight:400;text-transform:none}@media only screen and (min-width:601px){app-modal[_ngcontent-%COMP%]  .modal-container{max-width:480px}}
30/*# sourceMappingURL=tournament.component-7LCOQPBN.css.map */`]})}}return t})();function Fs(t,c){t&1&&(o(0,"div"),l(1,"Copied!"),a())}var co=(()=>{class t{constructor(){this.dialogRef=P(le),this.data=P(pe),this.authService=P(xe),this.link=F(""),this.showCopiedText=F(!1)}static open(e,n,i){let s=new K;s.overlayConfig={panelClass:["scrollable","full-size-small"],hasBackdrop:!0,positionStrategy:i.position().global().centerHorizontally().centerVertically(),scrollStrategy:i.scrollStrategies.block()},s.data=e,n.open(t,s)}ngOnInit(){let e=this.data.tournament;this.link.set(`${location.origin}/event/${e.id}/${e.slug}?refuid=${this.authService.userSnapshot.id}`)}close(){this.dialogRef.close()}copy(){navigator.clipboard.writeText(this.link()),this.showCopiedText.set(!0),setTimeout(()=>{this.showCopiedText.set(!1)},1e4)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-tournament-invite-overlay"]],hostAttrs:[1,"tailwind"],decls:20,vars:2,consts:[[1,"tw-card","m-4"],[1,"p-4","flex","gap-4","items-center","border-b","border-border-default"],[1,"grow"],["name","close",1,"cursor-pointer",3,"click"],[1,"p-4","flex","flex-col","gap-5"],[1,"text-text-icon-secondary"],[1,"flex","flex-col","gap-2"],["type","text","readonly","","onfocus","this.select()",1,"tw-text-field","browser-default",3,"value"],[1,"p-4","border-t","border-border-default","flex","gap-4","items-center"],[1,"tw-btn","tw-btn-outlined","tw-btn-accent",3,"click"],[1,"tw-btn","tw-btn-filled","tw-btn-green",3,"click"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"div",1)(2,"h3"),l(3,"Invite Team Member"),a(),_(4,"div",2),o(5,"svg-icon",3),C("click",function(){return i.close()}),a()(),o(6,"div",4)(7,"div",5),l(8,"Send the following link to another angler to invite them to join your team."),a(),o(9,"div",6)(10,"label"),l(11," Invite Link "),a(),_(12,"input",7),a()(),o(13,"div",8)(14,"button",9),C("click",function(){return i.close()}),l(15,"Close"),a(),_(16,"div",2),m(17,Fs,2,0,"div"),o(18,"button",10),C("click",function(){return i.copy()}),l(19,"Copy Link"),a()()()),n&2&&(r(12),d("value",i.link()),r(5),g(i.showCopiedText()?17:-1))},dependencies:[ce],encapsulation:2})}}return t})();var lo=(()=>{class t{transform(e){if(!e&&e!==0)return"";let n=e%10,i=e%100;if(i>=11&&i<=13)return e+"th";switch(n){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=un({name:"ordinal",type:t,pure:!0})}}return t})();var js=()=>[],Vs=(t,c)=>c.user.id,Ls=(t,c)=>c.species.id,As=(t,c)=>c.id;function Ns(t,c){if(t&1&&(l(0),b(1,"number"),b(2,"ordinal")),t&2){let e,n=p(2);Y(" ",w(1,2,((e=n.points())==null?null:e.total)||0)," (",w(2,4,n.points().rank),") ")}}function $s(t,c){t&1&&l(0," -- ")}function Bs(t,c){if(t&1&&(l(0),b(1,"number"),b(2,"ordinal")),t&2){let e,n=p(2);Y(" ",w(1,2,((e=n.points())==null?null:e.total)||0)," (",w(2,4,n.points().rank),") ")}}function Us(t,c){t&1&&l(0," -- ")}function Hs(t,c){t&1&&l(0," Loading... ")}function qs(t,c){t&1&&(_(0,"svg-icon",50),l(1," Export "))}function Ws(t,c){if(t&1&&(o(0,"tr",40)(1,"td",59)(2,"div",60)(3,"div"),l(4,"Phone:"),a(),o(5,"div",61),l(6),a(),o(7,"div"),l(8,"Email:"),a(),o(9,"div",61),l(10),a()()()()),t&2){let e=p().$implicit;r(6),v(e.phone_number||"--"),r(4),v(e.email||"--")}}function Zs(t,c){if(t&1){let e=O();o(0,"tr",51),C("click",function(){let i=f(e).$implicit,s=p(2);return h(s.toggleParticipant(i))}),o(1,"td",52)(2,"div",53),_(3,"img",54),l(4),a()(),o(5,"td",55),l(6),a(),o(7,"td",52)(8,"div",56),l(9),_(10,"svg-icon",57),a()(),o(11,"td",58),l(12),a(),o(13,"td",58),l(14),a()(),m(15,Ws,11,2,"tr",40)}if(t&2){let e=c.$implicit;r(),D("border-b",!e.details_open),r(2),d("src",e.user.avatar_url,T),r(),x(" ",e.name," "),r(),D("border-b",!e.details_open),r(),x(" ",e.catches||"--"," "),r(),D("border-b",!e.details_open),r(2),x(" ",e.points||"--"," "),r(),d("name",e.details_open?"chevron-up":"chevron-down"),r(2),v(e.phone_number||"--"),r(2),v(e.email||"--"),r(),g(e.details_open?15:-1)}}function Qs(t,c){t&1&&(o(0,"div",42),_(1,"app-loading-indicator"),a())}function Gs(t,c){if(t&1&&(o(0,"div"),_(1,"img",63),o(2,"div"),l(3),a(),_(4,"div",28),o(5,"div",64),l(6),a()()),t&2){let e=c.$implicit,n=c.$index,i=c.$count;Mn(Se("flex gap-3 items-center mx-4 py-4 ",n!==i-1&&"border-b"," border-border-default")),r(),d("src",Se("",e.species.image_url,":100"),T),r(2),v(e.species.name),r(3),v(e.count)}}function Ys(t,c){if(t&1&&S(0,Gs,7,7,"div",62,Ls),t&2){let e=p(2);E(e.speciesCaught())}}function Ks(t,c){t&1&&(o(0,"div",42),_(1,"app-loading-indicator"),a())}function Xs(t,c){t&1&&l(0," Loading... ")}function Js(t,c){if(t&1&&(o(0,"h5"),l(1),a()),t&2){let e,n=p(2);r(),v(((e=n.leaderboardDatasource.leaderboard())==null?null:e.name)??"No Leaderboards")}}function ep(t,c){if(t&1){let e=O();o(0,"a",65),C("click",function(){f(e);let i=p(2);return h(i.leaderboardDatasource.prevLeaderboard())}),_(1,"svg-icon",66),a(),o(2,"a",65),C("click",function(){f(e);let i=p(2);return h(i.leaderboardDatasource.nextLeaderboard())}),_(3,"svg-icon",67),a()}}function tp(t,c){if(t&1&&(o(0,"div",5),l(1),a(),o(2,"div",53),_(3,"img",69),l(4),b(5,"fullnameOrUsername"),a(),o(6,"div",64),l(7),b(8,"number"),a()),t&2){let e,n=c.$implicit,i=p(4);r(),v(n.rank),r(2),d("src",n.user.avatar_url,T),r(),x(" ",w(5,5,n.user)," "),r(3),Y("",_e(8,7,n.total,"1.0-2"),"\xA0",(e=i.leaderboardDatasource.leaderboard())==null?null:e.unit)}}function np(t,c){if(t&1&&(o(0,"div",18),S(1,tp,9,10,null,null,As),a()),t&2){let e=p(3);r(),E(e.leaderboardDatasource.entries())}}function ip(t,c){t&1&&(o(0,"div",68),l(1,"No one has placed on this leaderboard yet"),a())}function op(t,c){if(t&1&&m(0,np,3,0,"div",18)(1,ip,2,0,"div",68),t&2){let e=p(2);g(e.leaderboardDatasource.entries().length?0:1)}}function rp(t,c){if(t&1){let e=O();o(0,"div",2),_(1,"img",3),o(2,"div",4)(3,"h5",5),l(4,"Captain Dashboard"),a(),o(5,"h3",6),l(6),a()()(),o(7,"div",7)(8,"div",8)(9,"h3"),l(10,"Overview"),a(),o(11,"div",9)(12,"div",10)(13,"div",11),_(14,"svg-icon",12),a(),o(15,"div",8)(16,"h5",5),l(17,"Team Members"),a(),o(18,"h2"),l(19),b(20,"number"),a()()(),o(21,"div",10)(22,"div",13),_(23,"svg-icon",14),a(),o(24,"div",8)(25,"h5",5),l(26,"Total Catches"),a(),o(27,"h2"),l(28),b(29,"number"),a()()(),o(30,"div",10)(31,"div",15),_(32,"svg-icon",16),a(),o(33,"div",8)(34,"h5",5),l(35,"Total Points"),a(),o(36,"h2"),m(37,Ns,3,6)(38,$s,1,0),a()()()(),o(39,"div",17)(40,"div",18)(41,"div",19),_(42,"svg-icon",20),a(),o(43,"div",21),l(44,"Team Members"),a(),o(45,"div",22),l(46),b(47,"number"),a(),o(48,"div",23),_(49,"svg-icon",24),a(),o(50,"div",21),l(51,"Total Catches"),a(),o(52,"div",22),l(53),b(54,"number"),a(),o(55,"div",25),_(56,"svg-icon",26),a(),o(57,"div",21),l(58,"Total Points"),a(),o(59,"div",22),m(60,Bs,3,6)(61,Us,1,0),a()()()(),o(62,"div",8)(63,"div",27)(64,"h3"),l(65,"Team Members"),a(),_(66,"div",28),o(67,"button",29),C("click",function(){f(e);let i=p();return h(i.downloadParticipants())}),m(68,Hs,1,0)(69,qs,2,0),a(),o(70,"button",30),C("click",function(){f(e);let i=p();return h(i.openInviteDialog())}),l(71,"Invite Team Member"),a()(),o(72,"div",31)(73,"div",32)(74,"table",33)(75,"thead")(76,"tr",34)(77,"th",35),C("click",function(){f(e);let i=p();return h(i.toggleSort("name"))}),o(78,"div",36),l(79,"Angler "),_(80,"svg-icon",37),a()(),o(81,"th",35),C("click",function(){f(e);let i=p();return h(i.toggleSort("catches"))}),o(82,"div",38),l(83," Catches "),_(84,"svg-icon",37),a()(),o(85,"th",35),C("click",function(){f(e);let i=p();return h(i.toggleSort("points"))}),o(86,"div",38)(87,"span",39),l(88,"Points"),a(),o(89,"span",40),l(90,"PTS"),a(),_(91,"svg-icon",37),a()(),o(92,"th",41),l(93,"Phone"),a(),o(94,"th",41),l(95,"Email"),a()()(),o(96,"tbody"),S(97,Zs,16,14,null,null,Vs),a()(),m(99,Qs,2,0,"div",42),a()(),o(100,"button",43),C("click",function(){f(e);let i=p();return h(i.openInviteDialog())}),l(101,"Invite Team Member"),a()(),o(102,"div",8),_(103,"aa-event-feed",44),a(),o(104,"div",45)(105,"div",8)(106,"h3"),l(107,"Most Caught Species"),a(),o(108,"div",46)(109,"div",47),m(110,Ys,2,0)(111,Ks,2,0,"div",42),a()()(),o(112,"div",8)(113,"h3"),l(114,"Leaderboards"),a(),o(115,"div",31)(116,"div",48)(117,"div",49),m(118,Xs,1,0)(119,Js,2,1,"h5"),_(120,"div",28),m(121,ep,4,0),a(),m(122,op,2,1),a()()()()()}if(t&2){let e,n=p();r(),d("src",n.tournament().logo_url,T),r(5),v(n.division().name),r(13),v(w(20,22,n.division().members)),r(9),v(w(29,24,n.division().catches)),r(9),g(n.points()?37:38),r(9),v(w(47,26,n.division().members)),r(7),v(w(54,28,n.division().catches)),r(7),g(n.points()?60:61),r(7),d("disabled",n.participantDownloadState()!="ready"),r(),g(n.participantDownloadState()==="pending"?68:69),r(12),d("name",n.sortIcons().name),r(4),d("name",n.sortIcons().catches),r(7),d("name",n.sortIcons().points),r(6),E(n.sortedParticipants()||Pe(30,js)),r(2),g(n.participants()?-1:99),r(4),d("tournament",n.tournament())("division",n.division())("tournamentTimeZone",n.tournamentTimeZone())("maxDisplay",4),r(7),g(n.speciesCaught()?110:111),r(8),g(n.leaderboardDatasource.isLoading()?118:119),r(3),g(((e=n.leaderboardDatasource.leaderboards())==null?null:e.length)>1?121:-1),r(),g(n.leaderboardDatasource.isLoading()?-1:122)}}function ap(t,c){t&1&&_(0,"app-loading-indicator")}var so={title:"Event Directory",urlParts:["/events"]},po=(()=>{class t{constructor(){this.breadcrumbs=F([so]),this.division=F(null),this.tournament=F(null),this.points=F(null),this.participants=F(null),this.speciesCaught=F(null),this.participantDownloadState=F("pending"),this.sort=F({key:"name",ascending:!0}),this.sortIcons=oe(()=>({name:this.sort().key==="name"?this.sort().ascending?"sort-asc":"sort-desc":"up-down",catches:this.sort().key==="catches"?this.sort().ascending?"sort-asc":"sort-desc":"up-down",points:this.sort().key==="points"?this.sort().ascending?"sort-asc":"sort-desc":"up-down"})),this.tournamentTimeZone=oe(()=>this.tournament()?.iana_timezone?new Ot(this.tournament().iana_timezone):null),this.sortedParticipants=oe(()=>{if(!this.participants())return this.participants();let e=this.sort().key==="name"?(n,i)=>n.name.localeCompare(i.name):(n,i)=>n[this.sort().key]-i[this.sort().key];return[...this.participants()].sort((n,i)=>this.sort().ascending?e(n,i):e(i,n))}),this.leaderboardDatasource=P(nt),this.route=P(je),this.tournamentService=P(z),this.tournamentCaptainService=P(Pi),this.overlay=P(ae),this.dialogService=P(Q),this.subscriptions=[],this.participantSubscription=W.EMPTY}ngOnInit(){this.subscriptions.push(this.route.data.subscribe({next:({division:e,tournament:n})=>{this.breadcrumbs.set([so,{title:n.name,urlParts:["/event",n.id]},{title:e.name}]),this.tournament.set(n),this.division.set(e),this.participantDownloadState.set("ready"),this.leaderboardDatasource.load(n,e.id),this.loadParticipants(),this.subscriptions.push(this.tournamentService.getPointsByDivisionLeaderboard(n.id,!1).subscribe({next:i=>{this.points.set(i.body.find(s=>s.division_id===e.id))}}
30),this.tournamentCaptainService.getCatches(n.id,e.id).subscribe({next:i=>{this.speciesCaught.set(i.body)}}))}}))}loadParticipants(){let e={};this.sort()&&(e.sort=`${this.sort().ascending?"":"-"}${this.sort().key}`),this.participantSubscription=this.tournamentCaptainService.getParticipants(this.tournament().id,this.division().id,e).subscribe({next:n=>{this.participants.set(n.body.map(i=>Qe(ye({},i),{details_open:!1,name:vi(i.user)})))}})}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.leaderboardDatasource.onDestroy(),this.participantSubscription.unsubscribe()}downloadParticipants(){this.participantDownloadState.set("pending"),this.tournamentCaptainService.downloadParticipants(this.tournament().id,this.division().id).subscribe({next:e=>{let n=window.URL.createObjectURL(e),i=document.createElement("a");i.href=n,i.download=`${this.division().name} participants (${new Date().toISOString().split("T")[0]}).csv`,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n),this.participantDownloadState.set("blocked"),setTimeout(()=>{this.participantDownloadState.set("ready")},5e3)}})}openInviteDialog(){co.open({tournament:this.tournament(),division:this.division()},this.dialogService,this.overlay)}toggleParticipant(e){this.participants.set(this.participants().map(n=>n.user.id===e.user.id?Qe(ye({},n),{details_open:!n.details_open}):n))}toggleSort(e){let n=this.sort()?.key===e&&this.sort().ascending;this.sort.set({key:e,ascending:!n})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-captain-dashboard"]],hostAttrs:[1,"tailwind"],features:[Re([nt])],decls:4,vars:2,consts:[[1,"flex","py-2","px-4","bg-background-surface","border-b","border-border-default","max-w-7xl"],[3,"items"],[1,"flex","gap-4","items-center","p-4","bg-background-surface","border-b","border-border-default","max-w-7xl"],[1,"size-16",3,"src"],[1,"flex","flex-col","gap-1","overflow-hidden"],[1,"text-text-icon-tertiary"],[1,"sm:h2","truncate"],[1,"flex","flex-col","gap-8","sm:gap-12","max-w-7xl","px-4","py-8","sm:py-12"],[1,"flex","flex-col","gap-2"],[1,"lg:grid","gap-4","grid-cols-3","hidden"],[1,"tw-card","flex","gap-4","px-4","py-5"],[1,"rounded-full","size-16","bg-background-info-subtle","flex","justify-center","items-center"],["name","profile","svgClass","size-8 fill-text-icon-info-default"],[1,"rounded-full","size-16","bg-background-accent-subtle","flex","justify-center","items-center"],["name","fish","svgClass","size-8 fill-text-icon-accent-default"],[1,"rounded-full","size-16","bg-background-warning-subtle","flex","justify-center","items-center"],["name","trophy","svgClass","size-8 fill-text-icon-warning-default"],[1,"tw-card","lg:hidden"],[1,"grid","grid-cols-[24px_1fr_max-content]","gap-4","p-4","items-center"],[1,"rounded-full","size-8","bg-background-info-subtle","flex","justify-center","items-center"],["name","profile","svgClass","size-4 fill-text-icon-info-default"],[1,"text-text-icon-secondary"],[1,"font-bold","text-right"],[1,"rounded-full","size-8","bg-background-accent-subtle","flex","justify-center","items-center"],["name","fish","svgClass","size-4 fill-text-icon-accent-default"],[1,"rounded-full","size-8","bg-background-warning-subtle","flex","justify-center","items-center"],["name","trophy","svgClass","size-4 fill-text-icon-warning-default"],[1,"flex","gap-4","items-center"],[1,"grow"],[1,"tw-btn","tw-btn-outlined","tw-btn-accent","flex","gap-2","items-center",3,"click","disabled"],[1,"tw-btn","tw-btn-outlined","tw-btn-accent","hidden","sm:block",3,"click"],[1,"tw-card","overflow-hidden"],[1,"overflow-auto","h-80","sm:h-[440px]"],[1,"table-auto","border-separate"],[1,"sticky","top-0","bg-background-subtle","z-10","text-sm","text-text-icon-tertiary","uppercase"],[1,"p-4","border-b","border-border-default","cursor-pointer",3,"click"],[1,"flex","gap-1","items-center"],["svgClass","fill-text-icon-tertiary",3,"name"],[1,"flex","gap-1","items-center","justify-end","sm:justify-start"],[1,"hidden","sm:block"],[1,"sm:hidden"],[1,"p-4","border-b","border-border-default","sm:table-cell","hidden"],[1,"flex","items-center","justify-center","pt-16"],[1,"tw-btn","tw-btn-outlined","tw-btn-accent","w-full","sm:hidden",3,"click"],["marginOffset","16px",3,"tournament","division","tournamentTimeZone","maxDisplay"],[1,"grid","sm:grid-cols-2","gap-4"],[1,"tw-card"],[1,"overflow-auto","h-80"],[1,"h-80","overflow-auto"],[1,"h-16","flex","gap-2","border-b","border-border-default","px-4","items-center","sticky","top-0","bg-background-surface"],["name","download","svgClass","size-4",1,"size-4"],[1,"curs
30or-pointer","sm:cursor-auto",3,"click"],[1,"sm:border-b","border-border-default","align-middle","px-4","py-3"],[1,"flex","gap-2","items-center"],[1,"rounded-full","size-10","sm:block","hidden",3,"src"],[1,"sm:border-b","border-border-default","align-middle","px-4","py-3","text-right","sm:text-left"],[1,"flex","gap-2","items-center","justify-end","sm:justify-start"],["svgClass","size-5 fill-text-icon-tertiary",1,"sm:hidden",3,"name"],[1,"border-b","border-border-default","align-middle","px-4","py-3","sm:table-cell","hidden"],["colspan","3",1,"border-b","border-border-default"],[1,"bg-background-subtle","rounded-lg","mx-4","mb-4","p-3","grid","grid-cols-[1fr_1fr]","gap-2.5","text-text-icon-secondary"],[1,"text-right"],[3,"class"],[1,"w-20",3,"src"],[1,"font-bold"],[1,"tw-btn","tw-btn-icon","tw-btn-outlined","tw-btn-tertiary",3,"click"],["name","chevron-left"],["name","chevron-right"],[1,"w-full","italic","text-center","p-6"],[1,"rounded-full","size-8",3,"src"]],template:function(n,i){n&1&&(o(0,"div",0),_(1,"app-breadcrumbs",1),a(),m(2,rp,123,31)(3,ap,1,0,"app-loading-indicator")),n&2&&(r(),d("items",i.breadcrumbs()),r(),g(i.tournament()&&i.division()?2:3))},dependencies:[Ne,Oi,ce,qe,J,Fe,lo],encapsulation:2})}}return t})();var mo=t=>{let c=P(Ee),e=P(z),n=t.params.id,i=t.params.division_id;return e.getDivision(n,i).pipe(Te(tt(c,t)))};var cp=t=>{let c=null,e=t.queryParams.d;if(e)try{c=JSON.parse(atob(e))}catch(n){console.log("caught and ignored")}return c},lp=t=>{let c=P(z),e=P(Ee),n=+t.params.id;return c.getTournament(n).pipe(L(i=>e.createUrlTree(["./event",i.id,i.slug],{queryParams:t.queryParams,fragment:t.fragment})),Te(tt(e,t)))},sp=t=>{let c=P(Ee),e=P(z),n=t.params.variantId;return e.getTournamentByVariantId(n).pipe(L(i=>c.createUrlTree(z.urlTo(i),{queryParams:t.queryParams,fragment:t.fragment})),Te(tt(c,t)))},go=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=xt({type:t})}static{this.\u0275inj=_t({imports:[$t.forChild([{path:"entry-form",children:[{path:"complete/:variantId",component:At,canActivate:[sp]},{path:":id",redirectTo:"/event/:id/register"}]},{path:":id/code",component:Xt,resolve:{tournament:ot},data:{shouldHideFooter:!0,codeOnly:!0}},{path:":id/register",component:Xt,resolve:{tournament:ot},data:{shouldHideFooter:!0}},{path:":id/captain/:division_id",children:[{path:"",component:po,resolve:{division:mo,tournament:ot}}]},{path:":id/:slug",component:Ft,resolve:{tournament:ot,startingLeaderboard:cp}},{path:":id",component:At,canActivate:[lp]},{path:"",pathMatch:"full",redirectTo:"/events"}]),$t]})}}return t})();var gu=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=xt({type:t,bootstrap:[Ft]})}static{this.\u0275inj=_t({providers:[Q],imports:[Dn,go,Si,fi,Un,Fi,Di,ri,oi,ci,li,yi,si,de,$e,Vi,Ne,Ie,Je,qe,St]})}}return t})();yn(Tt,[re,he,X,j,$e,kt,zt],[J]);export{gu as TournamentModule};
31//# sourceMappingURL=chunk-NI2Z7BVK.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.