!function(){try{var o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new o.Error).stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="e1536feb-c506-4e80-929f-7fcddaf80a76",o._sentryDebugIdIdentifier="sentry-dbid-e1536feb-c506-4e80-929f-7fcddaf80a76")}catch(o){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6924],{54917:(o,r,e)=>{e.d(r,{F:()=>d});var t=e(6029),s=e(21377),i=e(55729),n=e(90248),l=e(62859);let h=JSON.parse('{"football":{"Dlong":"football_defender","DLlong":"defenderLeft","DClong":"defenderCenter","DRlong":"defenderRight","DMlong":"defensiveMidfielder","Mlong":"football_midfielder","MLlong":"midfielderLeft","MRlong":"midfielderRight","MClong":"midfielderCenter","AMlong":"attackingMidfielder","Flong":"football_forward","LWlong":"leftWinger","RWlong":"rightWinger","STlong":"striker","Glong":"goalkeeper","GKlong":"goalkeeper","Dshort":"position.defender.short","DLshort":"position.defenderLeft.short","DCshort":"position.defenderCenter.short","DRshort":"position.defenderRight.short","DMshort":"position.defensiveMidfielder.short","Mshort":"position.midfielder.short","MLshort":"position.midfielderLeft.short","MRshort":"position.midfielderRight.short","MCshort":"position.midfielderCenter.short","AMshort":"position.attackingMidfielder.short","Fshort":"position.forward.short","LWshort":"position.leftWinger.short","RWshort":"position.rightWinger.short","STshort":"position.striker.short","Gshort":"position.goalkeeper.short","GfantasyShort":"position.goalkeeper.fantasyShort","DfantasyShort":"position.defender.fantasyShort","MfantasyShort":"position.midfielder.fantasyShort","FfantasyShort":"position.forward.fantasyShort"},"basketball":{"Clong":"basketball.center","CFlong":"centerForward","Flong":"basketball.forward","FClong":"forwardCenter","FGlong":"forwardGuard","Glong":"guard","GFlong":"guardForward","Cshort":"position.basketball.center.short","CFshort":"position.centerForward.short","Fshort":"position.basketball.forward.short","FCshort":"position.forwardCenter.short","FGshort":"position.forwardGuard.short","Gshort":"position.guard.short","GFshort":"position.guardForward.short"},"ice-hockey":{"Dlong":"defenseman","Glong":"goalie","Clong":"hockey.center","Llong":"leftWing","Rlong":"rightWing","Flong":"football_forward","Dshort":"position.defenseman.short","Gshort":"position.goalie.short","Cshort":"position.hockey.short.center","Lshort":"position.leftWing.short","Rshort":"position.rightWing.short","Fshort":"position.forward.short"},"baseball":{"Plong":"pitcher","Clong":"catcher","1Blong":"1stBase","2Blong":"2ndBase","3Blong":"3rdBase","SSlong":"shortstop","LFlong":"leftField","CFlong":"centerField","RFlong":"rightField","DHlong":"designatedHitter","SPlong":"startingPitcher","CPlong":"closer","PHlong":"pinchHitter","PRlong":"pinchRunner","BRlong":"baseRunner","OFlong":"outfield","IFlong":"infield","RPlong":"reliefPitcher","UTlong":"util","UIlong":"utilInfielder","UOlong":"utilOutfielder","RHPlong":"rhPitcher","LHPlong":"lhPitcher","RHSlong":"rhStarted","LHSlong":"lhStarter","LHRlong":"lhReliever","RHRlong":"rhReliever","Blong":"batter","Pshort":"position.pitcher.short","Cshort":"position.catcher.short","1Bshort":"position.1stBase.short","2Bshort":"position.2ndBase.short","3Bshort":"position.3rdBase.short","SSshort":"position.shortstop.short","LFshort":"position.leftField.short","CFshort":"position.centerField.short","RFshort":"position.rightField.short","DHshort":"position.designatedHitter.short","SPshort":"position.startingPitcher.short","CPshort":"position.closer.short","PHshort":"position.pinchHitter.short","PRshort":"position.pinchRunner.short","BRshort":"position.baseRunner.short","OFshort":"position.outfield.short","IFshort":"position.infield.short","RPshort":"position.reliefPitcher.short","UTshort":"position.util.short","UIshort":"position.utilInfielder.short","UOshort":"position.utilOutfielder.short","RHPshort":"position.rhPitcher.short","LHPshort":"position.lhPitcher.short","RHSshort":"position.rhStarted.short","LHSshort":"position.lhStarter.short","LHRshort":"position.lhReliever.short","RHRshort":"position.rhReliever.short","Bshort":"position.batter.short"},"american-football":{"Plong":"punter","PRlong":"puntReturner","LSlong":"longSnapper","Klong":"kicker","Tlong":"tackle","OTlong":"offensiveTackle","OLlong":"offensiveLineman","OGlong":"offensiveGuard","Glong":"amf.guard","Clong":"amf.center","QBlong":"quarterback","RBlong":"runningBack","FBlong":"fullback","TElong":"tightEnd","WRlong":"wideReceiver","SSlong":"strongSafety","SAFlong":"safety","FSlong":"freeSafety","DLlong":"defensiveLineman","DBlong":"defensiveBack","CBlong":"cornerBack","NTlong":"noseTackle","DTlong":"defensiveTackle","DElong":"defensiveEnd","OLBlong":"outsideLinebacker","MLBlong":"middleLinebacker","LBlong":"linebacker","ILBlong":"insideLinebacker","Pshort":"position.punter.short","PRshort":"position.puntReturner.short","LSshort":"position.longSnapper.short","Kshort":"position.kicker.short","Tshort":"position.tackle.short","OTshort":"position.offensiveTackle.short","OLshort":"position.offensiveLineman.short","OGshort":"position.offensiveGuard.short","Gshort":"position.amf.guard.short","Cshort":"position.amf.center.short","QBshort":"position.quarterback.short","RBshort":"position.runningBack.short","FBshort":"position.fullback.short","TEshort":"position.tightEnd.short","WRshort":"position.wideReceiver.short","SSshort":"position.strongSafety.short","SAFshort":"position.safety.short","FSshort":"position.freeSafety.short","DLshort":"position.defensiveLineman.short","DBshort":"position.defensiveBack.short","CBshort":"position.cornerBack.short","NTshort":"position.noseTackle.short","DTshort":"position.defensiveTackle.short","DEshort":"position.defensiveEnd.short","OLBshort":"position.outsideLinebacker.short","MLBshort":"position.middleLinebacker.short","LBshort":"position.linebacker.short","ILBshort":"position.insideLinebacker.short"},"handball":{"Glong":"goalkeeper","Gshort":"position.goalkeeper.short","RWlong":"rightWing","RWshort":"position.rightWinger.short","LWlong":"leftWing","LWshort":"position.leftWinger.short","RBlong":"rightBack","RBshort":"position.rightBack.short","LBlong":"leftBack","LBshort":"position.leftBack.short","CBlong":"centralBack","CBshort":"position.centralBack.short","Plong":"pivot","Pshort":"position.pivot.short"},"cricket":{"BMlong":"position.batter","ARlong":"position.all.rounder","WKlong":"position.wicket.keeper","Blong":"position.bowler","BMshort":"position.batter","ARshort":"position.all.rounder","WKshort":"position.wicket.keeper","Bshort":"position.bowler"},"minifootball":{"Glong":"goalkeeper","Gshort":"position.goalkeeper.short","OFshort":"minifootball_outfield_player_short","OFlong":"minifootball_outfield_player"}}');var a=e(27892);let d=o=>{let{id:r,fantasyShort:e,short:d,sport:c}=o,p=(0,i.useContext)(l.Ws),f=c||p,g=e&&f===s.QCR.Football?"fantasyShort":d||e?"short":"long",u=(0,a.O)(h,r+g,f,r);return(0,t.jsx)(n.A,{id:u})}},67324:(o,r,e)=>{e.d(r,{W:()=>v});var t=e(6029),s=e(95083),i=e(41249),n=e(54409),l=e(47550),h=e(42948),a=e(55729),d=e(90248),c=e(494),p=e(70591),f=e(33731),g=e(88339),u=e(70679),m=e(25862),x=e(21377),b=e(81278),y=e(57258),k=e(19168);let j=async(o,r,e)=>{if(o)try{await (0,x.$bn)(x.lVT.deleteSquad(r),{headers:(0,x.MXE)(o)}),null==e||e()}catch(o){console.error(o)}};function B(o){let{competitionId:r,isOpen:e,setIsOpen:s}=o,h=(0,b.useRouter)(),a=(0,c.d4)(g.Cd);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.so,{dir:document.dir,px:"lg",py:"md",align:"center",hoverBg:"surface.s2",cursor:"pointer",onClick:()=>s(!0),children:[(0,t.jsx)(n.xV8,{fill:"error.default",mr:"lg"}),(0,t.jsx)(i.EY,{font:"body.medium",color:"error.default",children:(0,t.jsx)(d.A,{id:"delete_team"})})]}),(0,t.jsx)(l.JM,{isOpen:e,onClose:()=>s(!1),titleId:"delete_your_fantasy_team",firstParagraphId:"delete_your_fantasy_team_text",submitButtonTextId:"delete_team",onSubmit:()=>{j(a,r,()=>h.push("/fantasy").then(()=>window.location.reload())),(0,k.sN)(y.Wb)},submitColorScheme:"error"})]})}function L(o){let{competitionId:r}=o,e=(0,c.d4)(g.$F),[l,h]=(0,a.useState)(!1),[x,b]=(0,a.useState)(!1),y=(0,c.wA)();return(0,t.jsx)(i.az,{py:"md",children:(0,t.jsx)(i.AM,{trigger:(0,t.jsx)(i.AM.TriggerWrapper,{mr:[0,"md"],children:(0,t.jsx)(n.Ni9,{w:24,h:24,fill:"onColor.primary"})}),controls:[l,h],closeOnOutsideClick:!x,children:(0,t.jsx)(i.AM.Content,{mt:"sm",right:0,minW:264,p:0,py:"sm",children:l&&(0,t.jsxs)(s.Ee,{maxH:"[calc(100vh - 220px)]",children:[(0,t.jsx)(i.EY,{p:"lg",pb:"sm",font:"display.small",color:"onSurface.nLv1",as:"div",children:(0,t.jsx)(d.A,{id:"general"})}),(0,t.jsx)(f.H,{hideOdds:!0,hideUnits:!0,hideFirstDayOfTheWeek:!0,children:(0,t.jsxs)(i.az,{pb:"xs",mt:"sm",borderTop:"onSurface.nLv4",children:[r&&(0,t.jsxs)(i.az,{borderBottom:"onSurface.nLv4",pb:"sm",children:[(0,t.jsx)(i.EY,{p:"lg",pb:"sm",font:"display.small",color:"onSurface.nLv1",as:"div",children:(0,t.jsx)(d.A,{id:"team"})}),(0,t.jsx)(B,{competitionId:r,isOpen:x,setIsOpen:b})]}),(null==e?void 0:e.id)&&(0,t.jsxs)(i.az,{borderBottom:"onSurface.nLv4",pb:"sm",children:[(0,t.jsx)(i.EY,{p:"lg",pb:"sm",font:"display.small",color:"onSurface.nLv1",as:"div",children:(0,t.jsx)(d.A,{id:"basic.profile"})}),(0,t.jsx)(p.N_,{routeKey:"user",children:(0,t.jsxs)(i.so,{dir:document.dir,px:"md",py:"sm",align:"center",hoverBg:"surface.s2",cursor:"pointer",children:[(0,t.jsx)(u.A,{size:32,src:e.imageURL}),(0,t.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",ml:"md",children:e.nickname})]})}),(0,t.jsxs)(i.so,{dir:document.dir,px:"lg",py:"md",align:"center",hoverBg:"surface.s2",cursor:"pointer",onClick:()=>y((0,m.aS)()),children:[(0,t.jsx)(n.EwR,{w:24,h:24,fill:"onSurface.nLv3",mr:"lg"}),(0,t.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,t.jsx)(d.A,{id:"controls.signout"})})]})]}),(0,t.jsx)(i.EY,{p:"lg",pb:"sm",font:"display.small",color:"onSurface.nLv1",as:"div",children:(0,t.jsx)(d.A,{id:"other"})}),(0,t.jsx)(p.N_,{routeKey:"privacyPolicy",children:(0,t.jsxs)(i.so,{dir:document.dir,px:"lg",py:"md",align:"center",hoverBg:"surface.s2",cursor:"pointer",children:[(0,t.jsx)(n.HW5,{w:24,h:24,fill:"onSurface.nLv3",mr:"lg"}),(0,t.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,t.jsx)(d.A,{id:"footer.privacyPolicy"})})]})}),(0,t.jsx)(p.N_,{routeKey:"fantasyRules",children:(0,t.jsxs)(i.so,{dir:document.dir,px:"lg",py:"md",align:"center",hoverBg:"surface.s2",cursor:"pointer",children:[(0,t.jsx)(n.HW5,{w:24,h:24,fill:"onSurface.nLv3",mr:"lg"}),(0,t.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,t.jsx)(d.A,{id:"rules"})})]})}),(0,t.jsx)(p.N_,{routeKey:"fantasyEliteFaceoffRules",children:(0,t.jsxs)(i.so,{dir:document.dir,px:"lg",py:"md",align:"center",hoverBg:"surface.s2",cursor:"pointer",children:[(0,t.jsx)(n.HW5,{w:24,h:24,fill:"onSurface.nLv3",mr:"lg"}),(0,t.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,t.jsx)(d.A,{id:"fantasy_elite_faceoff_rules"})})]})})]})})]})})})})}function S(o){let{routeKey:r,params:e,onClick:l,messageId:h,noTranslation:a,subtitle:c}=o,{isMobile:f}=(0,s.$c)(),g=(0,t.jsxs)(i.so,{h:[48,36],align:"center",cursor:"pointer",onClick:l,children:[(0,t.jsx)(n.CP6,{fill:f?"onColor.primary":"primary.default"}),(0,t.jsxs)(i.az,{ml:"lg",children:[(0,t.jsx)(i.EY,{font:"display.medium",c:["onColor.primary","primary.default"],block:!0,children:a?h:(0,t.jsx)(d.A,{id:h})}),!!c&&(0,t.jsx)(i.EY,{font:"assistive.default",c:["onColor.primary","primary.default"],block:!0,children:c})]})]});return r?(0,t.jsx)(p.N_,{routeKey:r,params:e,children:g}):g}function v(o){let{hideSettings:r,competitionId:e,backButtonProps:a,onResetClick:d,onSearchClick:c,openComparison:p}=o,{isMobile:f,isDesktop:g}=(0,s.$c)(),u=!!d||!!c;return(0,t.jsx)(i.az,{bg:"header.default",px:"md",children:(0,t.jsx)(l.aC,{children:(0,t.jsxs)(i.so,{align:"center",justify:"space-between",children:[(0,t.jsx)(h.G,{}),a?(0,t.jsx)(i.az,{display:["block","none"],children:(0,t.jsx)(S,{...a})}):(0,t.jsx)(h.a,{}),(0,t.jsxs)(i.so,{align:"center",gap:"md",children:[f&&d&&(0,t.jsx)(i.$n,{variant:"unshielded",p:"xs",onClick:d,children:(0,t.jsx)(n.H42,{w:24,h:24,fill:"onColor.primary"})}),f&&c&&(0,t.jsx)(i.$n,{variant:"unshielded",p:"xs",onClick:c,children:(0,t.jsx)(n.zQC,{icon:"search",w:24,h:24,fill:"onColor.primary"})}),f&&p&&(0,t.jsx)(i.$n,{variant:"unshielded",p:"xs",onClick:()=>p(),children:(0,t.jsx)(n.cSg,{w:24,h:24,fill:"onColor.primary"})}),(g||!u)&&!r&&(0,t.jsx)(L,{competitionId:e})]})]})})})}}}]);