1import{j as e,a as s}from"./react-vendor-DJtAp8P_.js";import{s as l1}from"./tableColumnsActions-C5ZE-Z6V.js";import{e as A,a0 as ut,u as Se,I as me,a3 as ve,a4 as d1,d as J1,a5 as F1,a6 as ft,a7 as mt,a8 as bt,a9 as jt,aa as yt,g as wt,F as Lt,c as kt,T as Dt,f as Et,t as Pt}from"./app-DT7WuczB.js";import{p as Ht,S as Mt,M as St}from"./Bar-DCvpPblB.js";import{S as vt}from"./SessionPlannerMobile-85wkJ1ZS.js";import{n as Vt,o as M,I as Tt,p as Ft,B as _t,r as Zt}from"./swiper-react-DcF17yCe.js";import{B as ze}from"./Button-C4goEOKP.js";import{C as ge}from"./CardTable-Dt1Jggjv.js";import{p as _1,q as At,P as Rt,r as Wt,s as zt,t as It,u as Z1,e as $t,v as Bt}from"./query-CcmDMjHA.js";import{bC as we,bi as Gt,a$ as Ee}from"./index-CyS3LFy6.js";import{z as Nt}from"./mutation--iSLlBrt.js";import"./dayjs-CFxoC4n5.js";import"./moment-Bj79pgB5.js";import"./index.esm-CWqXbt53.js";import{I as je}from"./InfoCard-zt450lEo.js";import{S as Ot}from"./SecondaryHeader-CQ32PoR-.js";import{y as q1,aj as Kt}from"./mui-styles-C9F12l22.js";import{ao as F,ap as Ut,aq as _,z as r,E as V,T as d,an as Q1,J as Ie,a8 as Le,aE as c1,aF as S,aG as X1,aH as Yt,aI as Jt,j as qt,a3 as Qt,u as Xt,aJ as e5,C as Pe,aK as t5}from"./mui-DvP2hOwX.js";import{T as a5}from"./Search-BEYvHCFs.js";import{M as s5}from"./Modal-BzPnYVEi.js";import{L as n5,C as o5,a as r5,b as i5,P as l5,c as d5,i as c5,p as h5}from"./index-bEsv4Yks.js";import{I as x5}from"./InlineHint-BwtPd7HF.js";import{n as C5,e as ee,g as g5}from"./apollo-DL0KWP0Y.js";import"./babel-helpers-D2wBBc1I.js";import"./_basePickBy-jHhPNsuZ.js";import"./_baseClone-DByvJCmO.js";import"./_baseAssignValue-CjtYt4eh.js";import"./omit-BaIHraq0.js";import"./imageOptimization-zUL1CBPb.js";import"./lodash-icp7yO-G.js";import"./merge-TfBrBrIh.js";import"./isArrayLikeObject-CcVCHQro.js";import"./map-BI8CQ8np.js";import"./browser-B3fhYDhb.js";import"./_arrayIncludes-DFQcso6E.js";import"./_baseIndexOf-DqPIyCu4.js";import"./hello-pangea-dnd-1bhs5THC.js";import"./some-YFJAbcVi.js";import"./values-DeBIqcD0.js";import"./index-B79atc36.js";import"./_baseDifference-BHjDay7E.js";import"./mui-x-DMY3qA32.js";import"./s3FileHandler-Bp64keCt.js";import"./compact-DZdspzxW.js";import"./cloneDeep-mVQ3twB2.js";import"./isNil-R7kYXCYw.js";try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new a.Error().stack;l&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[l]="e6c8bfbb-d1be-4fd7-bbc6-5661edcc1f48",a._sentryDebugIdIdentifier="sentry-dbid-e6c8bfbb-d1be-4fd7-bbc6-5661edcc1f48")}catch{}const ye={card:{height:"100%",borderRadius:"16px",boxShadow:"0px 12px 24px -4px rgba(145, 158, 171, 0.12) , 0px 0px 2px 0px rgba(145, 158, 171, 0.20)"},footer:{borderTop:a=>`1px solid ${a.palette.divider}`,paddingY:"24px"},cardHeading:{padding:"24px",borderBottom:a=>`1px solid ${a.palette.divider}`,"& .MuiCardHeader-title":{fontSize:"18px",fontWeight:700,lineHeight:"28px"}},doughnut:{height:"calc(100% - 226px)",padding:"40px 48px"},footerText:{fontSize:"13px",fontWeight:600},colorIndicator:{height:"12px",width:"12px",borderRadius:"50%"}},p5=({loading:a=!1,doughnutText:l="12",doughnutData:n={loss:3,won:7,draw:2}})=>{const c=q1(),{t}=A("dugout"),p=[{key:"won",text:t("dashboard.win"),color:c.palette.primary.main},{key:"draw",text:t("dashboard.draw"),color:c.palette.primary.dark},{key:"loss",text:t("dashboard.loss"),color:c.primary.lighter}];return e.jsxs(F,{sx:ye.card,children:[e.jsx(Ut,{title:t("dashboard.winVsLostVsDraw"),sx:ye.cardHeading}),e.jsx(_,{sx:ye.doughnut,children:a?e.jsx(ut,{}):e.jsx(Vt,{text:l,textHeading:t("dashboard.totalGames"),labels:p.map(x=>x.text),backgroundColor:p.map(x=>x.color),dataValues:p.map(x=>n[x.key])})}),e.jsx(r,{container:!0,sx:ye.footer,children:e.jsx(r,{container:!0,justifyContent:"center",alignItems:"center",gap:2.5,width:"100%",children:p.map(x=>e.jsx(r,{children:e.jsxs(r,{container:!0,alignItems:"center",gap:1,children:[e.jsx(V,{sx:{...ye.colorIndicator,backgroundColor:x.color}}),e.jsx(d,{sx:ye.footerText,children:x.text})]})},x.key))})})]})},A1={emptyContentContainer:{justifyContent:"center",alignItems:"center",gap:2,height:"calc(100% - 58px)"},actionLink:{fontSize:"13px",fontWeight:600,color:"primary.main",cursor:"pointer","&:hover":{textDecoration:"underline"}}},pe=({icon:a,primaryText:l,secondaryText:n,actionText:c,onAction:t})=>e.jsxs(r,{container:!0,direction:"column",sx:A1.emptyContentContainer,children:[a&&e.jsx(a,{}),e.jsxs(r,{container:!0,direction:"column",gap:1,textAlign:"center",children:[l&&e.jsx(d,{fontWeight:600,lineHeight:"24px",color:"text.secondary",children:l}),n&&e.jsx(d,{fontSize:"14px",lineHeight:"22px",color:"text.secondary",children:n}),c&&t&&e.jsx(d,{sx:A1.actionLink,onClick:t,children:c})]})]}),u5=a=>s.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("path",{d:"M3.49385 24.0409L3.42242 23.9635C3.70069 21.6942 4.66495 19.5646 6.18427 17.8564L6.65451 17.91L7.24974 22.1066L3.49385 24.0409Z",fill:"#68A2F0"}),s.createElement("path",{d:"M9.46406 32.4983L10.6545 35.9328C8.79295 35.2274 7.15012 34.0429 5.8927 32.4983H9.46406Z",fill:"#68A2F0"}),s.createElement("path",{d:"M9.59494 31.3088H5.0297C3.91959 29.5216 3.33183 27.4604 3.33332 25.3564C3.42855 25.3549 3.5223 25.3326 3.60712 25.2909L7.85123 23.1123L9.96429 24.5349L11.5416 28.7551L9.59494 31.3088Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.27338 16.785C8.05908 16.1019 8.93705 15.5335 9.88049 15.0945C9.83585 15.3207 9.92662 15.5528 10.1126 15.6897L14.047 18.5171V20.8981L10.4757 23.4517L8.47571 22.1064L7.77931 17.2969C7.74508 17.032 7.53825 16.8222 7.27338 16.785Z",fill:"#68A2F0"}),s.createElement("path",{d:"M14.6427 21.9224L18.0891 24.3867L16.6129 28.333H12.6725L11.1963 24.3867L14.6427 21.9224Z",fill:"#68A2F0"}),s.createElement("path",{d:"M16.6601 16.0399L14.6422 17.4804L11.1959 15.016L11.3804 14.528
1C11.9979 14.3405 12.6319 14.2065 13.2732 14.1292L16.6601 16.0399Z",fill:"#68A2F0"}),s.createElement("path",{d:"M18.7318 32.0175L17.2378 36.3627C15.531 36.7674 13.7543 36.7674 12.0474 36.3627L10.5534 32.0175L12.4879 29.5234H16.7853L18.7318 32.0175Z",fill:"#68A2F0"}),s.createElement("path",{d:"M21.3149 18.6655L20.8208 22.0941L18.8209 23.4393L15.2376 20.8858V18.5167L17.803 16.6833L21.3149 18.6655Z",fill:"#68A2F0"}),s.createElement("path",{d:"M19.8206 32.4983H23.392C22.1346 34.0429 20.4918 35.2275 18.6302 35.9328L19.8206 32.4983Z",fill:"#68A2F0"}),s.createElement("path",{d:"M25.8625 23.9633L25.791 24.0407L22.0233 22.1062L22.428 19.2966L24.9518 20.7193C25.4175 21.749 25.7241 22.8428 25.8625 23.9633Z",fill:"#68A2F0"}),s.createElement("path",{d:"M25.9514 25.3562C25.9529 27.4603 25.3651 29.5215 24.255 31.3086H19.6898L17.7136 28.7788L19.2969 24.5525L21.41 23.1299L25.6541 25.3085C25.7478 25.3487 25.8502 25.3636 25.9514 25.3562Z",fill:"#68A2F0"}),s.createElement("path",{d:"M31.0108 21.1024L32.975 22.2453C32.7042 22.4685 32.4155 22.6664 32.1119 22.8405C31.8649 22.9745 31.5881 23.0414 31.3084 23.037C31.0256 23.037 30.7474 22.9655 30.4989 22.8286L12.5468 12.7097C11.9397 12.369 11.4933 11.8005 11.3073 11.1309C11.1228 10.4597 11.212 9.74249 11.5588 9.13829C11.7775 8.75734 12.0885 8.43741 12.4635 8.20972C12.0632 9.39426 12.5632 10.6948 13.654 11.305L27.4571 19.1027L28.5285 19.698L31.0108 21.1024Z",fill:"#68A2F0"}),s.createElement("path",{d:"M34.1777 20.8806C34.072 21.0473 33.9559 21.208 33.8324 21.3628L31.6063 20.0711L29.6122 18.9461C30.0423 18.7571 30.5066 18.6604 30.9753 18.6604C32.4009 18.6619 33.6762 19.5458 34.1777 20.8806Z",fill:"#68A2F0"}),s.createElement("path",{d:"M35.4277 14.6431C35.0795 14.3782 34.6003 14.3633 34.2372 14.6074C33.3176 15.1252 32.1822 15.0672 31.3206 14.4585L28.8504 12.6728C28.4487 12.3901 28.1332 12.0002 27.9398 11.5478L25.3565 12.4228C25.297 12.4407 25.2345 12.4511 25.172 12.4526C24.9056 12.466 24.6616 12.3008 24.5767 12.0478C24.5261 11.8975 24.5366 11.7339 24.6065 11.5925C24.6779 11.4496 24.8014 11.3425 24.9517 11.2919L27.7374 10.3812C27.7344 10.3633 27.7344 10.3455 27.7374 10.3276C27.7627 9.93775 27.5871 9.56125 27.2731 9.32761C26.9546 9.09546 26.5424 9.03445 26.1719 9.16689C24.4979 9.72046 22.7211 9.90202 20.9698 9.69665C18.8537 9.42284 16.7855 8.86034 14.8209 8.02403C14.5873 7.93028 14.3403 7.86927 14.0888 7.84546L13.69 8.38116C13.3284 9.05971 13.5739 9.902 14.2435 10.28L28.3922 18.2621C29.4056 17.5761 30.6511 17.3216 31.8519 17.5553C33.0543 17.7889 34.1138 18.4898 34.7968 19.5062L34.8325 19.3871L35.8325 15.7799C35.9531 15.3528 35.7908 14.8975 35.4277 14.6431ZM21.666 13.9288C21.4518 13.9288 21.2539 13.8127 21.1482 13.6252C20.9875 13.3395 21.0887 12.9764 21.3744 12.8157L22.9339 11.9347C23.2196 11.771 23.5856 11.8692 23.7493 12.155C23.913 12.4407 23.8148 12.8067 23.5291 12.9704L21.9696 13.8514C21.8773 13.9035 21.7717 13.9303 21.666 13.9288ZM23.4517 14.9526C23.2374 14.9526 23.0395 14.8365 22.9339 14.649C22.855 14.5106 22.8342 14.3469 22.8773 14.1937C22.919 14.0404 23.0217 13.9109 23.1601 13.8335L24.7196 12.9585C25.0053 12.7948 25.3713 12.8931 25.535 13.1788C25.6987 13.4645 25.6005 13.8305 25.3148 13.9942L23.7493 14.8752C23.6496 14.9303 23.5365 14.957 23.422 14.9526L23.4517 14.9526ZM27.0648 15.0121L25.4755 15.8931C25.3862 15.9437 25.2865 15.9705 25.1838 15.9705C24.9666 15.9719 24.7657 15.8559 24.66 15.6669C24.4993 15.3812 24.6005 15.0181 24.8862 14.8574L26.4517 13.9764C26.7374 13.8127 27.1034 13.9109 27.2671 14.1966C27.4308 14.4823 27.3326 14.8484 27.0469 15.0121L27.0648 15.0121Z",fill:"#68A2F0"}),s.createElement("path",{d:"M36.6661 3.9286V12.8574C36.6661 12.9601 36.6393 13.0598 36.5888 13.1491L36.0709 14.0479C36.0292 14.0018 35.9801 13.9616 35.928 13.9288C35.2911 13.463 34.434 13.4333 33.7674 13.8574C33.1543 14.1863 32.4088 14.1431 31.8388 13.7443L29.3686 11.9586C28.8582 11.6 28.5725 11.0032 28.6127 10.3812C28.6335 10.0479 28.5695 9.71306 28.4282 9.41096L33.8269 3.52408C33.9445 3.39759 34.1126 3.32765 34.2852 3.3336H36.0709C36.2286 3.3336 36.3804 3.3961 36.492 3.50771C36.6037 3.61932 36.6661 3.77085 36.6661 3.9286Z",fill:"#68A2F0"})),R1=a=>s.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("path",{d:"M36.6666 13.6036V13.7253C36.6666 15.1586 36.6666 15.877 36.3216 16.4636C35.9766 17.0503 35.3483 17.3986 34.095 18.097L32.7733 18.8303C33.6833 15.7503 33.9883 12.4403 34.1 9.61031L34.1166 9.24198L34.12 9.15531C35.205 9.53198 35.815 9.81364 36.195 10.3403C36.6666 10.9953 36.6666 11.8653 36.6666 13.6036ZM3.33331 13.6036V13.7253C3.33331 15.1586 3.33331 15.877 3.67831 16.4636C4.02331 17.0503 4.65165 17.3986 5.90498 18.097L7.22831 18.8303C6.31665 15.7503 6.01165 12.4403 5.89998 9.61031L5.88331 9.24198L5.88165 9.15531C4.79498 9.53198 4.18498 9.81364 3.80498 10.3403C3.33331 10.9953 3.33331 11.867 3.33331 13.6036Z",fill:"#68A2F0"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 3.33364C22.9733 3.33364 25.4216 3.59531 27.295 3.91198C29.1933 4.23198 30.1416 4.39198 30.935 5.36864C31.7283 6.34531 31.685 7.40031 31.6016 9.51031C31.315 16.7586 29.7516 25.8103 21.25 26.6103V32.5003H23.6333C24.0185 32.5005 24.3917 32.6342 24.6894 32.8785C24.9872 33.1227 25.1912 33.4626 25.2666 33.8403L25.5833 35.417H30C30.3315 35.417 30.6494 35.5487 30.8839 35.7831C31.1183 36.01
175 31.25 36.3355 31.25 36.667C31.25 36.9985 31.1183 37.3164 30.8839 37.5509C30.6494 37.7853 30.3315 37.917 30 37.917H9.99998C9.66846 37.917 9.35052 37.7853 9.1161 37.5509C8.88168 37.3164 8.74998 36.9985 8.74998 36.667C8.74998 36.3355 8.88168 36.0175 9.1161 35.7831C9.35052 35.5487 9.66846 35.417 9.99998 35.417H14.4166L14.7333 33.8403C14.8088 33.4626 15.0128 33.1227 15.3105 32.8785C15.6083 32.6342 15.9815 32.5005 16.3666 32.5003H18.75V26.6103C10.25 25.8103 8.68665 16.757 8.39998 9.51031C8.31498 7.40031 8.27331 6.34364 9.06665 5.36864C9.85831 4.39198 10.8066 4.23198 12.705 3.91198C15.1163 3.51677 17.5565 3.32332 20 3.33364ZM21.5866 10.332L21.4233 10.0386C20.79 8.90031 20.4733 8.33364 20 8.33364C19.5266 8.33364 19.21 8.90031 18.5766 10.0386L18.4133 10.332C18.2333 10.6553 18.1433 10.8153 18.0033 10.922C17.8616 11.0286 17.6866 11.0686 17.3366 11.147L17.02 11.2203C15.79 11.4986 15.175 11.637 15.0283 12.107C14.8816 12.5786 15.3016 13.0686 16.14 14.0486L16.3566 14.302C16.595 14.5803 16.715 14.7186 16.7683 14.892C16.8216 15.0653 16.8033 15.2503 16.7683 15.622L16.735 15.9603C16.6083 17.2686 16.545 17.9236 16.9266 18.2136C17.31 18.5036 17.8866 18.2386 19.0383 17.7086L19.335 17.572C19.6633 17.422 19.8266 17.347 20 17.347C20.1733 17.347 20.3366 17.422 20.665 17.572L20.9616 17.7086C22.1133 18.2403 22.69 18.5036 23.0733 18.2136C23.4566 17.9236 23.3916 17.2686 23.265 15.9603L23.2316 15.622C23.1966 15.2503 23.1783 15.0653 23.2316 14.892C23.285 14.7203 23.405 14.5803 23.6433 14.302L23.86 14.0486C24.6983 13.0686 25.1183 12.5786 24.9716 12.107C24.825 11.637 24.21 11.4986 22.98 11.2203L22.6633 11.147C22.3133 11.0686 22.1383 11.0303 21.9966 10.922C21.8566 10.8153 21.7666 10.6553 21.5866 10.332Z",fill:"#68A2F0"})),f5=a=>s.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.2761 8.7862C34.2572 8.75717 34.234 8.72959 34.2107 8.70346C30.9098 4.61576 25.8581 2 20.2 2C10.2654 2 2.19995 10.065 2.19995 20C2.19995 29.935 10.265 38 20.2 38C30.1349 38 38.2 29.935 38.2 20C38.2 15.7614 36.7309 11.8624 34.2761 8.7862ZM24.3745 36.3157C23.039 36.6569 21.6397 36.8383 20.1999 36.8383C18.76 36.8383 17.3606 36.6568 16.0252 36.3157L13.3732 30.4309L15.8235 27.5481H24.5767L27.027 30.4309L24.3745 36.3157ZM37.0048 21.0653C36.8233 23.9772 35.8986 26.6903 34.4195 29.017L27.9498 29.7239L25.4893 26.8279L27.658 19.233L32.2596 16.7565L37.0048 21.0653ZM5.97839 29.0159C4.50065 26.6904 3.57746 23.9802 3.39456 21.0682L8.14 16.7568L12.7416 19.2333L14.9103 26.8282L12.4499 29.7242L5.97839 29.0159ZM13.9899 4.34584L19.619 7.56256V12.7606L13.1623 18.1415L8.56665 15.668L7.23409 9.26074C9.02391 7.10221 11.3422 5.39675 13.9899 4.34547L13.9899 4.34584ZM26.4128 4.34584C29.0605 5.39969 31.3771 7.10389 33.1672 9.26223L31.8332 15.668L27.2375 18.1415L20.7808 12.7606V7.56256L26.4128 4.34584Z",fill:"#68A2F0"})),m5=a=>s.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("path",{d:"M4.11505 3.61638V22.6804C4.11505 22.9716 4.35084 23.2059 4.64061 23.2059H5.32952C5.62071 23.2059 5.85508 22.9702 5.85508 22.6804V4.83238H34.1434V22.6804C34.1434 22.9716 34.3792 23.2059 34.669 23.2059H35.3579C35.6491 23.2059 35.8835 22.9702 35.8835 22.6804L35.8849 3.61638C35.8849 3.32519 35.6491 3.09082 35.3593 3.09082H4.64043C4.34924 3.09082 4.11505 3.32662 4.11505 3.61638Z",fill:"#68A2F0"}),s.createElement("path",{d:"M20.5229 6.57397H23.7786V9.54983H20.5229V6.57397Z",fill:"#68A2F0"}),s.createElement("path",{d:"M16.2214 6.57397H19.4771V9.54983H16.2214V6.57397Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.5968 10.5938H10.8752V13.5511H7.5968V10.5938Z",fill:"#68A2F0"}),s.createElement("path",{d:"M11.9204 10.5938H15.1761V13.5511H11.9204V10.5938Z",fill:"#68A2F0"}),s.createElement("path",{d:"M24.8241 6.57397H28.0798V9.54983H24.8241V6.57397Z",fill:"#68A2F0"}),s.createElement("path",{d:"M11.9204 6.57397H15.1761V9.54983H11.9204V6.57397Z",fill:"#68A2F0"}),s.createElement("path",{d:"M29.1251 6.57397H32.4021V9.54983H29.1251V6.57397Z",fill:"#68A2F0"}),s.createElement("path",{d:"M16.2216 14.5947H19.4772V17.5521H16.2216V14.5947Z",fill:"#68A2F0"}),s.createElement("path",{d:"M24.8241 10.5938H28.0798V13.5511H24.8241V10.5938Z",fill:"#68A2F0"}),s.createElement("path",{d:"M16.2214 10.5938H19.4771V13.5511H16.2214V10.5938Z",fill:"#68A2F0"}),s.createElement("path",{d:"M20.5228 14.5947H23.7785V17.5521H20.5228V14.5947Z",fill:"#68A2F0"}),s.createElement("path",{d:"M20.5229 10.5938H23.7786V13.5511H20.5229V10.5938Z",fill:"#68A2F0"}),s.createElement("path",{d:"M29.1251 10.5938H32.4021V13.5511H29.1251V10.5938Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.5968 6.57397H10.8752V9.54983H7.5968V6.57397Z",fill:"#68A2F0"}
1),s.createElement("path",{d:"M29.1251 14.5947H32.4021V17.5521H29.1251V14.5947Z",fill:"#68A2F0"}),s.createElement("path",{d:"M24.8242 14.5947H28.0799V17.5521H24.8242V14.5947Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.5968 18.5969H10.8752V21.5728H7.5968V18.5969Z",fill:"#68A2F0"}),s.createElement("path",{d:"M29.1251 18.5969H32.4021V21.5728H29.1251V18.5969Z",fill:"#68A2F0"}),s.createElement("path",{d:"M24.8242 18.9992C25.8399 19.6768 26.7021 20.5489 27.3484 21.5745H28.0771V18.5986H24.8242V18.9992Z",fill:"#68A2F0"}),s.createElement("path",{d:"M11.9202 14.5947H15.1758V17.5521H11.9202V14.5947Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.5968 14.5947H10.8752V17.5521H7.5968V14.5947Z",fill:"#68A2F0"}),s.createElement("path",{d:"M11.9165 21.5731H12.6552C13.3014 20.5475 14.1637 19.6753 15.1793 18.9978V18.5986H11.9165V21.5745L11.9165 21.5731Z",fill:"#68A2F0"}),s.createElement("path",{d:"M20 18.5725C15.7444 18.5725 12.2811 22.0341 12.2811 26.29C12.2811 30.5458 15.7428 34.0089 20 34.0089C24.2557 34.0089 27.7175 30.5472 27.7175 26.29C27.7175 22.0343 24.2559 18.5725 20 18.5725ZM20.5952 21.831C20.5952 21.831 22.3651 20.5427 22.3736 20.5341C23.2884 20.912 24.1037 21.5029 24.7415 22.2501C24.7372 22.2614 24.0554 24.3467 24.0554 24.3467L22.1492 24.9645L20.5952 23.8353V21.8282V21.831ZM17.6264 20.5341C17.635 20.5427 19.4063 21.831 19.4063 21.831V23.8381L17.8466 24.9674L15.9403 24.3481C15.9403 24.3481 15.2656 22.2614 15.2599 22.2501C15.8977 21.5029 16.7131 20.9134 17.6278 20.5341H17.6264ZM14.6975 29.5498C14.1804 28.7131 13.8708 27.7543 13.794 26.7685C13.8026 26.7629 15.5739 25.4745 15.5739 25.4745L17.4446 26.0881L18.0525 27.9589L16.8991 29.5484C16.8991 29.5484 14.7088 29.5484 14.6974 29.5512L14.6975 29.5498ZM21.4618 32.341C20.4732 32.581 19.5272 32.581 18.5399 32.341C18.5371 32.331 17.8595 30.2458 17.8595 30.2458L19.0072 28.6748H20.9959L22.1422 30.2458C22.1422 30.2458 21.4632 32.3296 21.4618 32.341ZM25.3025 29.5498C25.2912 29.5484 23.1023 29.5469 23.1023 29.5469L21.9432 27.9574L22.5511 26.0867L24.4276 25.4731C24.4276 25.4731 26.1975 26.76 26.206 26.7657C26.1307 27.7529 25.8196 28.7103 25.3025 29.5484V29.5498Z",fill:"#68A2F0"}),s.createElement("path",{d:"M13.351 32.9403C13.118 32.7074 12.7388 32.7074 12.5058 32.9403L10.2615 35.1847C10.0286 35.4176 10.0286 35.7955 10.2615 36.0284C10.378 36.1449 10.5314 36.2031 10.6834 36.2031C10.8368 36.2031 10.9888 36.1449 11.1053 36.0284L13.3496 33.7855C13.5826 33.5526 13.5826 33.1733 13.3496 32.9403H13.351Z",fill:"#68A2F0"}),s.createElement("path",{d:"M11.9174 30.7721C11.6844 30.5392 11.3066 30.5392 11.0722 30.7721L8.82791 33.015C8.59496 33.248 8.59496 33.6258 8.82791 33.8602C8.94439 33.9767 9.0978 34.0349 9.2498 34.0349C9.40321 34.0349 9.5552 33.9767 9.67169 33.8602L11.916 31.6159C12.149 31.3829 12.149 31.0051 11.916 30.7721H11.9174Z",fill:"#68A2F0"}),s.createElement("path",{d:"M14.6734 34.3722L12.4291 36.6166C12.1962 36.8495 12.1962 37.2274 12.4291 37.4603C12.5456 37.5768 12.699 37.635 12.851 37.635C13.0044 37.635 13.1564 37.5768 13.2729 37.4603L15.5172 35.2174C15.7502 34.9844 15.7502 34.6066 15.5172 34.3722C15.2843 34.1393 14.905 34.1393 14.6721 34.3722H14.6734Z",fill:"#68A2F0"})),b5=a=>s.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("path",{d:"M23.2983 5.4541H25.4475V7.95268H23.2983V5.4541Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.91345 11.6357H10.412V13.7892H7.91345V11.6357Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.91345 14.5525H10.412V16.7017H7.91345V14.5525Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.91345 17.4658H10.412V19.6192H7.91345V17.4658Z",fill:"#68A2F0"}),s.createElement("path",{d:"M29.5895 26.2109H32.0881V28.3644H29.5895V26.2109Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.91345 9.4473V10.8735H10.4191C10.4475 10.2413 10.6776 9.65898 11.0342 9.18596L8.70749 7.06665C8.21033 7.72716 7.91345 8.5524 7.91345 9.4473Z",fill:"#68A2F0"}),s.createElement("path",{d:"M29.5895 17.4658H32.0881V19.6192H29.5895V17.4658Z",fill:"#68A2F0"}),s.createElement("path",{d:"M9.22574 6.49388L11.5681 8.62883C12.095 8.20694 12.7612 7.95268 13.4842 7.95268H13.7854V5.4541H11.9019C10.8692 5.4541 9.93454 5.84614 9.22574 6.49388Z",fill:"#68A2F0"}),s.createElement("path",{d:"M29.5895 20.3821H32.0881V22.5355H29.5895V20.3821Z",fill:"#68A2F0"}),s.createElement("path",{d:"M29.5895 23.2976H32.0881V25.4468H29.5895V23.2976Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.91345 26.2109H10.412V28.3644H7.91345V26.2109Z",fill:"#68A2F0"}),s.createElement("path",{d:"M20.3821 32.0476H22.5355V34.5462H20.3821V32.0476Z",fill:"#68A2F0"}),s.createElement("path",{d:"M23.2983 32.0476H25.4475V34.5462H23.2983V32.0476Z",fill:"#68A2F0"}),s.createElement("path",{d:"M26.5172 32.047H26.216L26.2146 34.5456H28.0981C29.1308 34.5456 30.0697 34.1535 30.7785 33.5058L28.4362 31.3708C27.905 31.7899 27.2401 32.047 26.5172 32.047Z",fill:"#68A2F0"}),s.createElement("path",{d:"M28.9628 30.8178L31.2895 32.9371C31.788 32.2723 32.0863 31.4499 32.0863 30.552
11V29.126H29.5807C29.5494 29.7595 29.3236 30.3419 28.9628 30.8178Z",fill:"#68A2F0"}),s.createElement("path",{d:"M17.4658 32.0476H19.6192V34.5462H17.4658V32.0476Z",fill:"#68A2F0"}),s.createElement("path",{d:"M28.4291 8.62883L30.7743 6.49814C30.0655 5.84614 29.1308 5.4541 28.0953 5.4541H26.2118V7.95268H26.5129C27.2402 7.95268 27.905 8.20978 28.4291 8.62883Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.91345 23.2976H10.412V25.4468H7.91345V23.2976Z",fill:"#68A2F0"}),s.createElement("path",{d:"M11.5668 31.3672L9.22449 33.5021C9.93329 34.1498 10.8722 34.5419 11.9049 34.5419H13.7884V32.0433H13.4873C12.76 32.0462 12.0952 31.7891 11.5668 31.3672Z",fill:"#68A2F0"}),s.createElement("path",{d:"M7.91345 20.3821H10.412V22.5355H7.91345V20.3821Z",fill:"#68A2F0"}),s.createElement("path",{d:"M14.5529 32.0476H16.702V34.5462H14.5529V32.0476Z",fill:"#68A2F0"}),s.createElement("path",{d:"M17.4658 5.4541H19.6192V7.95268H17.4658V5.4541Z",fill:"#68A2F0"}),s.createElement("path",{d:"M14.5529 5.4541H16.702V7.95268H14.5529V5.4541Z",fill:"#68A2F0"}),s.createElement("path",{d:"M18.4403 28.9209H21.5639V29.972H18.4403V28.9209Z",fill:"#68A2F0"}),s.createElement("path",{d:"M16.895 29.971H17.6734V28.5349C17.6734 28.3247 17.8438 28.1528 18.0555 28.1528H21.9431C22.1533 28.1528 22.3252 28.3232 22.3252 28.5349V29.971H23.1036V27.1059L16.8949 27.1045L16.895 29.971Z",fill:"#68A2F0"}),s.createElement("path",{d:"M28.9628 9.17814C29.3221 9.65399 29.548 10.2364 29.5778 10.8685H32.0835V9.44232C32.0835 8.54745 31.7852 7.72214 31.2866 7.05737L28.9628 9.17814Z",fill:"#68A2F0"}),s.createElement("path",{d:"M20 25.3093C19.3523 25.3093 18.8139 25.7454 18.6434 26.3377H21.3522C21.186 25.7454 20.6477 25.3093 20 25.3093Z",fill:"#68A2F0"}),s.createElement("path",{d:"M29.5895 11.6357H32.0881V13.7892H29.5895V11.6357Z",fill:"#68A2F0"}),s.createElement("path",{d:"M10.4174 29.1306H7.91174V30.5568C7.91174 31.4516 8.21004 32.2769 8.70862 32.9417L11.0353 30.8224C10.6759 30.3423 10.4501 29.7599 10.4174 29.1306Z",fill:"#68A2F0"}),s.createElement("path",{d:"M20.3821 5.4541H22.5355V7.95268H20.3821V5.4541Z",fill:"#68A2F0"}),s.createElement("path",{d:"M20.0001 18.2764C19.1819 18.2764 18.4987 18.8502 18.324 19.6144H21.6763C21.5016 18.8502 20.8183 18.2764 20.0001 18.2764Z",fill:"#68A2F0"}),s.createElement("path",{d:"M23.1052 10.0276H22.3268V11.4637C22.3268 11.6739 22.1564 11.8458 21.9447 11.8458H18.0542C17.844 11.8458 17.6721 11.6753 17.6721 11.4637V10.0276H16.8937V12.8926H23.1009L23.1024 10.0276H23.1052Z",fill:"#68A2F0"}),s.createElement("path",{d:"M11.1777 11.0332V28.9707C11.1777 30.2476 12.2146 31.2832 13.4874 31.2832H26.5157C27.7842 31.2832 28.8254 30.2462 28.8254 28.9707V11.0332C28.8254 9.75623 27.7885 8.7207 26.5157 8.7207H13.483C12.2145 8.7207 11.1777 9.75623 11.1777 11.0332ZM26.7388 9.2619C27.5939 9.2619 28.2842 9.95652 28.2842 10.8031V29.1922C28.2842 30.043 27.5896 30.7334 26.7388 30.7334L13.2617 30.7348C12.4066 30.7348 11.7162 30.0402 11.7162 29.1936V10.8074C11.7162 9.9566 12.4108 9.26623 13.2617 9.26623H26.7388V9.2619Z",fill:"#68A2F0"}),s.createElement("path",{d:"M18.4403 10.0276H21.5639V11.0787H18.4403V10.0276Z",fill:"#68A2F0"}),s.createElement("path",{d:"M20 14.6903C20.6477 14.6903 21.186 14.2542 21.3565 13.6619H18.6477C18.8139 14.2542 19.3522 14.6903 20 14.6903Z",fill:"#68A2F0"}),s.createElement("path",{d:"M13.2613 10.0276C12.8281 10.0276 12.4801 10.377 12.4801 10.806V19.6169H17.5456C17.7316 18.428 18.76 17.5118 20.0001 17.5118C21.2402 17.5118 22.2686 18.428 22.4546 19.6169H27.5201V10.806C27.5201 10.377 27.1707 10.0276 26.7389 10.0276H23.8738V13.279C23.8738 13.4935 23.7062 13.6611 23.4917 13.6611H22.1494C21.9718 14.6796 21.0769 15.458 20.0073 15.458C18.9377 15.458 18.0443 14.6796 17.8653 13.6611H16.523C16.3085 13.6611 16.1409 13.4935 16.1409 13.279V10.0276H13.2613Z",fill:"#68A2F0"}),s.createElement("path",{d:"M20.0001 21.7238C20.8183 21.7238 21.5015 21.15 21.6763 20.3857H18.324C18.4987 21.15 19.1819 21.7238 20.0001 21.7238Z",fill:"#68A2F0"}),s.createElement("path",{d:"M29.5895 14.5525H32.0881V16.7017H29.5895V14.5525Z",fill:"#68A2F0"}),s.createElement("path",{d:"M20 22.4872C18.7599 22.4872 17.7315 21.571 17.5455 20.3821H12.4829V29.193C12.4829 29.622 12.8323 29.9714 13.2641 29.9714H16.1292V26.72C16.1292 26.5055 16.2968 26.3379 16.5113 26.3379H17.8536C18.0312 25.3194 18.9261 24.541 19.9957 24.541C21.0653 24.541 21.9587 25.3194 22.1377 26.3379H23.48C23.6945 26.3379 23.8621 26.5055 23.8621 26.72V29.9714H26.7272C27.1604 29.9714 27.5084 29.622 27.5084 29.193V20.3821H22.4546C22.2685 21.5738 21.2401 22.4872 20 22.4872Z",fill:"#68A2F0"})),j5=a=>s.createElement("svg",{width:160,height:110,viewBox:"0 0 160 110",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("ellipse",{opacity:.1,cx:80,cy:105.2,rx:80,ry:4.8,fill:"#C4CDD5"}),s.createElement("path",{d:"M53.3335 40.5173C53.3335 36.6513 56.4675 33.5173 60.3335 33.5173H100.333C104.199 33.5173 107.333 36.6513 107.333 40.5173V82.6208C107.333 86.4868 104.199 89.6208 100.333 89.6208H60.3335C56.4675 89.6208 53.3335 86.4868 53.3335 82.6208V40.5173Z",fill:"white",stroke:"#C4CDD5",strokeWidth:2}),s.createElement("path",{d:"M51.8295 22.4806C51.4136 21.6793 50.4269 21.3669 49.6256 21.7828C48.8244 22.1987 48.512 23.1854 48.9279 23.9867L51.4248 28.7971C51.8407 29.5983 52.8274 29.9107 53.6286 29.4948C54.4299 29.0789 54.7422 28.0922 54.3263 27.291L51.8295 22.4806Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M43.338 29.5941C42.5305 29.1904 41.5487 29.5176 41.1449 30.325C40.7411 31.1324 41.0684 32.1143 41.8758 32.5181L46.7233 34.9422C47.5307 35.3459 48.5126 35.0187 48.9164 34.2113C49.3201 33.4038 48.9929 32.422 48.1855 32.0182L43.338 29.5941Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}
1),s.createElement("path",{d:"M65.437 33.5172H74.2818V33.0517C74.2818 29.7094 76.9913 27 80.3336 27C83.6758 27 86.3853 29.7094 86.3853 33.0517V33.5172H95.2301V35.0345C95.2301 37.7959 92.9915 40.0345 90.2301 40.0345H70.437C67.6756 40.0345 65.437 37.7959 65.437 35.0345V33.5172Z",fill:"#C4CDD5"}),s.createElement("rect",{x:75.6782,y:52.1375,width:20,height:3,rx:1.5,fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("rect",{x:75.6782,y:63.8445,width:20,height:3,rx:1.5,stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("rect",{x:75.6782,y:76.0857,width:20,height:3,rx:1.5,stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("rect",{x:64.5054,y:50.741,width:5.58621,height:5.58621,rx:2,fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("rect",{x:64.5054,y:62.448,width:5.58621,height:5.58621,rx:2,stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("rect",{x:64.5054,y:74.6892,width:5.58621,height:5.58621,rx:2,stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("circle",{cx:107.333,cy:63,r:13,fill:"white",stroke:"#C4CDD5",strokeWidth:2}),s.createElement("path",{d:"M105.833 56.5C105.833 55.6716 106.505 55 107.333 55C108.162 55 108.833 55.6716 108.833 56.5V62.5C108.833 63.3284 108.162 64 107.333 64C106.505 64 105.833 63.3284 105.833 62.5V56.5Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M105.833 69.5C105.833 70.3284 106.505 71 107.333 71C108.162 71 108.833 70.3284 108.833 69.5C108.833 68.6716 108.162 68 107.333 68C106.505 68 105.833 68.6716 105.833 69.5Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"})),y5=a=>s.createElement("svg",{width:160,height:110,viewBox:"0 0 160 110",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("ellipse",{opacity:.1,cx:80,cy:105.2,rx:80,ry:4.8,fill:"#C4CDD5"}),s.createElement("circle",{cx:77.9741,cy:47.2429,r:24.1919,fill:"white",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M89.0894 43.3206L81.2434 47.2436L89.0894 51.1666",stroke:"#C4CDD5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M66.8583 43.3206L74.7043 47.2436L66.8583 51.1666",stroke:"#C4CDD5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("circle",{cx:77.9731,cy:47.2427,r:17.6535,stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M90.6738 67.8105L96.6161 73.7529M96.0858 62.3986L102.028 68.3409",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M95.2565 76.2282C93.3039 74.2755 93.3039 71.1097 95.2565 69.1571L97.432 66.9815C99.3847 65.0289 102.55 65.0289 104.503 66.9815L114.593 77.0712C116.545 79.0238 116.545 82.1896 114.593 84.1422L112.417 86.3178C110.465 88.2704 107.299 88.2704 105.346 86.3178L95.2565 76.2282Z",fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M103.099 21.955C103.634 21.2275 104.657 21.071 105.384 21.6054C106.112 22.1399 106.268 23.163 105.734 23.8905L102.525 28.2584C101.991 28.9859 100.967 29.1424 100.24 28.608C99.5124 28.0735 99.3559 27.0504 99.8904 26.3229L103.099 21.955Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M110.393 30.2918C111.253 30.0174 112.172 30.4921 112.447 31.3521C112.721 32.2122 112.247 33.1319 111.387 33.4063L106.223 35.0539C105.363 35.3283 104.444 34.8536 104.169 33.9936C103.895 33.1335 104.369 32.2139 105.229 31.9394L110.393 30.2918Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M46.2407 63.0849C45.374 63.3375 44.8761 64.2448 45.1287 65.1116C45.3812 65.9783 46.2886 66.4761 47.1553 66.2236L52.3587 64.7073C53.2254 64.4547 53.7233 63.5474 53.4707 62.6807C53.2182 61.814 52.3108 61.3161 51.4441 61.5687L46.2407 63.0849Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M51.5719 72.795C51.0191 73.5088 51.1497 74.5355 51.8634 75.0882C52.5772 75.6409 53.6039 75.5104 54.1566 74.7966L57.475 70.5115C58.0277 69.7977 57.8972 68.771 57.1834 68.2183C56.4697 67.6655 55.443 67.7961 54.8902 68.5098L51.5719 72.795Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"})),w5=a=>s.createElement("svg",{width:160,height:110,viewBox:"0 0 160 110",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("ellipse",{opacity:.1,cx:80,cy:105.2,rx:80,ry:4.8,fill:"#C4CDD5"}),s.createElement("path",{d:"M117.86 25.269H62.3115C58.4455 25.269 55.3115 28.4031 55.3115 32.269V77.2264C55.3115 80.5401 57.9978 83.2264 61.3115 83.2264H118.86C122.174 83.2264 124.86 80.5401 124.86 77.2264V32.269C124.86 28.4031 121.726 25.269 117.86 25.269Z",
1stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M55.3115 33.3229C55.3115 29.4569 58.4455 26.3229 62.3115 26.3229H117.86C121.726 26.3229 124.86 29.4569 124.86 33.3229V37.9143H55.3115V33.3229Z",fill:"#C4CDD5"}),s.createElement("path",{d:"M70.0642 22.1078C70.0642 20.9438 71.0078 20.0002 72.1717 20.0002C73.3357 20.0002 74.2793 20.9438 74.2793 22.1078V28.4304C74.2793 29.5944 73.3357 30.5379 72.1717 30.5379C71.0078 30.5379 70.0642 29.5944 70.0642 28.4304V22.1078Z",fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M65.3223 48.3445C65.3223 47.2399 66.2177 46.3445 67.3223 46.3445H70.6987C71.8032 46.3445 72.6987 47.2399 72.6987 48.3445V51.7209C72.6987 52.8254 71.8032 53.7209 70.6987 53.7209H67.3223C66.2177 53.7209 65.3223 52.8254 65.3223 51.7209V48.3445Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M93.7739 48.3446C93.7739 47.24 94.6694 46.3446 95.7739 46.3446H99.1503C100.255 46.3446 101.15 47.24 101.15 48.3446V51.721C101.15 52.8256 100.255 53.721 99.1503 53.721H95.7739C94.6694 53.721 93.7739 52.8256 93.7739 51.721V48.3446Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M107.473 48.3446C107.473 47.24 108.368 46.3446 109.473 46.3446H112.849C113.954 46.3446 114.849 47.24 114.849 48.3446V51.721C114.849 52.8256 113.954 53.721 112.849 53.721H109.473C108.368 53.721 107.473 52.8256 107.473 51.721V48.3446Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M93.7739 64.1511C93.7739 63.0466 94.6694 62.1511 95.7739 62.1511H99.1503C100.255 62.1511 101.15 63.0466 101.15 64.1511V67.5275C101.15 68.6321 100.255 69.5275 99.1503 69.5275H95.7739C94.6694 69.5275 93.7739 68.6321 93.7739 67.5275V64.1511Z",fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M79.0212 48.3446C79.0212 47.24 79.9167 46.3446 81.0212 46.3446H84.3976C85.5022 46.3446 86.3976 47.24 86.3976 48.3446V51.721C86.3976 52.8256 85.5022 53.721 84.3976 53.721H81.0212C79.9167 53.721 79.0212 52.8256 79.0212 51.721V48.3446Z",fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M79.0212 64.1511C79.0212 63.0466 79.9167 62.1511 81.0212 62.1511H84.3976C85.5022 62.1511 86.3976 63.0466 86.3976 64.1511V67.5275C86.3976 68.6321 85.5022 69.5275 84.3976 69.5275H81.0212C79.9167 69.5275 79.0212 68.6321 79.0212 67.5275V64.1511Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M105.892 22.1078C105.892 20.9438 106.836 20.0002 108 20.0002C109.164 20.0002 110.107 20.9438 110.107 22.1078V28.4304C110.107 29.5944 109.164 30.5379 108 30.5379C106.836 30.5379 105.892 29.5944 105.892 28.4304V22.1078Z",fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("circle",{cx:123.807,cy:76.9036,r:13.699,fill:"white",stroke:"#C4CDD5",strokeWidth:2}),s.createElement("path",{d:"M122.226 70.0542C122.226 69.1812 122.934 68.4735 123.807 68.4735C124.68 68.4735 125.387 69.1812 125.387 70.0542V76.3768C125.387 77.2498 124.68 77.9574 123.807 77.9574C122.934 77.9574 122.226 77.2498 122.226 76.3768V70.0542Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M122.226 83.7532C122.226 84.6262 122.934 85.3339 123.807 85.3339C124.68 85.3339 125.387 84.6262 125.387 83.7532C125.387 82.8802 124.68 82.1726 123.807 82.1726C122.934 82.1726 122.226 82.8802 122.226 83.7532Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M50.1005 85.6179C51.0518 85.6179 51.823 84.8467 51.823 83.8954C51.823 82.9441 51.0518 82.173 50.1005 82.173L44.3893 82.173C43.438 82.173 42.6668 82.9441 42.6668 83.8954C42.6668 84.8467 43.438 85.6179 44.3893 85.6179L50.1005 85.6179Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M57.8647 95.3397C57.8647 96.291 57.0936 97.0621 56.1423 97.0621C55.191 97.0621 54.4198 96.291 54.4198 95.3397L54.4198 89.6284C54.4198 88.6771 55.191 87.9059 56.1423 87.9059C57.0936 87.9059 57.8647 88.6771 57.8647 89.6284L57.8647 95.3397Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"})),L5=a=>s.createElement("svg",{width:160,height:110,viewBox:"0 0 160 110",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("ellipse",{opacity:.1,cx:80,cy:105.2,rx:80,ry:4.8,fill:"#C4CDD5"}),s.createElement("path",{d:"M48.4998 34.0001C48.4998 30.6864 51.186 28.0001 54.4998 28.0001H99.0712C102.385 28.0001 105.071 30.6864 105.071 34.0001V71.9716C105.071 75.2853 102.385 77.9716 99.0712 77.9716H54.4998C51.186 77.9716 48.4998 75.2853 48.4998 71.9716V34.0001Z",fill:"white",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M57.928 43.4282C57.928 40.1145 60.6143 37.4282 63.928 37.4282H108.499C111.813 37.4282 114.499 40.1145 114.499 43.4282V81.3997C114.499 84.7134 111.813 87.3997 108.499 87.3997H63.928C60.6143 87.3997 57.928 84.7134 57.928 81.3997V43.4282Z",fill:"white",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("mask",{id:"path-4-inside-1_27238_40747",fill:"white"},s.createElement("path",{d:"M100.162 67.2765C104.028 67.2765 107.163 70.4111 107.163 74.2775C107.163 75.4373 106.222 76.3771 105.062 76.3771H85.6003C84.4405 76.3771 83.4999 75.4373 83.4998 74.2775C83.4998 70.4111 86.6343 67.2765 90.5007 67.2765H100.162ZM95.2693 53.4562C98.2851 53.4562 100.73 55.9013 100.73 58.9171C100.73 61.9327 98.2849 64.3771 95.2693 64.3771C92.2538 64.3769 89.8095 61.9326 89.8093 58.9171C89.8093 55.9014 92.2536 53.4563 95.2693 53.4562Z"})),s.createElement("path",{d:"M100.162 67.2765L100.162 65.2765H100.162V67.2765ZM107.163 74.2775L109.163 74.2777V74.2775H107.163ZM105.062 76.3771V78.3771H105.062L105.062 76.3771ZM83.4998 74.2775H81.4998V74.2777L83.4998 74.2775ZM95.2693 53.4562V51.4562H95.2692L95.2693 53.4562ZM100.73 58.9171L102.73 58.9173V58.9171H100.73ZM95.2693 64.3771L95.2692 66.3771H95.2693V64.3771ZM89.8093 58.9171H87.8093V58.9173L89.8093 58.9171ZM100.162 67.2765L100.162 69.2765C102.924 69.2765 105.163 71.5157 105.163 74.2775H107.163H109.163C109.163 69.3
1065 105.133 65.2765 100.162 65.2765L100.162 67.2765ZM107.163 74.2775L105.163 74.2772C105.163 74.3316 105.119 74.3771 105.062 74.3771L105.062 76.3771L105.062 78.3771C107.326 78.3771 109.163 76.5429 109.163 74.2777L107.163 74.2775ZM105.062 76.3771V74.3771H85.6003V76.3771V78.3771H105.062V76.3771ZM85.6003 76.3771V74.3771C85.5441 74.3771 85.4998 74.3317 85.4998 74.2772L83.4998 74.2775L81.4998 74.2777C81.5 76.5429 83.3369 78.3771 85.6003 78.3771V76.3771ZM83.4998 74.2775H85.4998C85.4998 71.5156 87.7389 69.2765 90.5007 69.2765V67.2765V65.2765C85.5298 65.2765 81.4998 69.3065 81.4998 74.2775H83.4998ZM90.5007 67.2765V69.2765H100.162V67.2765V65.2765H90.5007V67.2765ZM95.2693 53.4562V55.4562C97.1805 55.4562 98.7302 57.0059 98.7302 58.9171H100.73H102.73C102.73 54.7968 99.3896 51.4562 95.2693 51.4562V53.4562ZM100.73 58.9171L98.7302 58.917C98.7301 60.8278 97.1807 62.3771 95.2693 62.3771V64.3771V66.3771C99.3892 66.3771 102.73 63.0376 102.73 58.9173L100.73 58.9171ZM95.2693 64.3771L95.2694 62.3771C93.3584 62.377 91.8095 60.828 91.8093 58.917L89.8093 58.9171L87.8093 58.9173C87.8096 63.0372 91.1492 66.3768 95.2692 66.3771L95.2693 64.3771ZM89.8093 58.9171H91.8093C91.8093 57.0057 93.3586 55.4563 95.2694 55.4562L95.2693 53.4562L95.2692 51.4562C91.1487 51.4564 87.8093 54.7972 87.8093 58.9171H89.8093Z",fill:"#C4CDD5",mask:"url(#path-4-inside-1_27238_40747)"}),s.createElement("path",{d:"M86.8289 65.422C91.7586 65.4221 95.7546 69.419 95.7546 74.3488C95.7545 75.8276 94.5558 77.0265 93.0769 77.0265H68.2615C66.7827 77.0264 65.5839 75.8275 65.5837 74.3488C65.5837 69.4189 69.5806 65.422 74.5105 65.422H86.8289ZM80.5925 47.798C84.4378 47.798 87.5554 50.9155 87.5554 54.7609C87.5552 58.606 84.4377 61.7228 80.5925 61.7228C76.7475 61.7226 73.6308 58.6059 73.6306 54.7609C73.6306 50.9157 76.7474 47.7982 80.5925 47.798Z",fill:"#C4CDD5"}),s.createElement("path",{d:"M46.1346 87.2697C45.2318 87.2697 44.5 86.5378 44.5 85.6351C44.5 84.7323 45.2318 84.0005 46.1346 84.0005L51.5544 84.0005C52.4572 84.0005 53.189 84.7323 53.189 85.6351C53.189 86.5378 52.4572 87.2697 51.5544 87.2697L46.1346 87.2697Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M115.91 26.7345C116.813 26.7345 117.545 27.4663 117.545 28.3691C117.545 29.2718 116.813 30.0037 115.91 30.0037L110.491 30.0037C109.588 30.0037 108.856 29.2718 108.856 28.3691C108.856 27.4663 109.588 26.7345 110.491 26.7345L115.91 26.7345Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("circle",{cx:54.5,cy:35.0001,r:13,fill:"white",stroke:"#C4CDD5",strokeWidth:2}),s.createElement("path",{d:"M53 28.5001C53 27.6717 53.6716 27.0001 54.5 27.0001C55.3284 27.0001 56 27.6717 56 28.5001V34.5001C56 35.3285 55.3284 36.0001 54.5 36.0001C53.6716 36.0001 53 35.3285 53 34.5001V28.5001Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M53 41.5001C53 42.3285 53.6716 43.0001 54.5 43.0001C55.3284 43.0001 56 42.3285 56 41.5001C56 40.6717 55.3284 40.0001 54.5 40.0001C53.6716 40.0001 53 40.6717 53 41.5001Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"})),k5=a=>s.createElement("svg",{width:160,height:110,viewBox:"0 0 160 110",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("ellipse",{opacity:.1,cx:80,cy:105.2,rx:80,ry:4.8,fill:"#C4CDD5"}),s.createElement("rect",{x:45.5002,y:22.0001,width:66.0462,height:53,rx:7,fill:"white",stroke:"#C4CDD5",strokeWidth:2}),s.createElement("circle",{cx:113.5,cy:53.0001,r:13,fill:"white",stroke:"#C4CDD5",strokeWidth:2}),s.createElement("path",{d:"M112 46.5001C112 45.6717 112.672 45.0001 113.5 45.0001C114.329 45.0001 115 45.6717 115 46.5001V52.5001C115 53.3285 114.329 54.0001 113.5 54.0001C112.672 54.0001 112 53.3285 112 52.5001V46.5001Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M112 59.5001C112 60.3285 112.672 61.0001 113.5 61.0001C114.329 61.0001 115 60.3285 115 59.5001C115 58.6717 114.329 58.0001 113.5 58.0001C112.672 58.0001 112 58.6717 112 59.5001Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M45.9082 34.2312H111.139",stroke:"#C4CDD5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("circle",{cx:54.0002,cy:28.5001,r:1.5,fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2}),s.createElement("circle",{cx:61.0002,cy:28.5001,r:1.5,fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2}),s.createElement("path",{d:"M79.0002 44.5001C80.9824 44.5001 82.8846 44.838 84.6526 45.4591L79.6057 51.0187C79.4053 51.0073 79.2034 51.0001 79.0002 51.0001C73.5392 51.0001 69.0505 55.1577 68.5354 60.4777C68.5054 60.7874 68.2617 61.0001 68.009 61.0001H62.4514C62.1802 61.0001 61.9886 60.7853 62.0012 60.5529C62.4933 51.6056 69.9152 44.5001 79.0002 44.5001ZM89.1321 44.8068C89.4566 44.4494 90.0006 44.3975 90.387 44.6876C90.7669 44.973 90.861 45.5028 90.6038 45.9015L89.5305 47.5656L85.425 53.9288L81.2043 60.4708C81.1577 60.5431 81.1066 60.6124 81.052 60.6788C80.2642 61.6374 78.8472 61.7772 77.887 60.9904C77.8561 60.965 77.8257 60.939 77.7961 60.9122C76.7997 60.0101 76.7249 58.4725 77.6282 57.4777L89.1321 44.8068ZM91.4456 49.9015C94.0854 52.7243 95.7733 56.4439 95.9993 60.5529C96.0119 60.7853 95.8203 61.0001 95.5491 61.0001H89.9915C89.7388 61.0001 89.4951 60.7874 89.4651 60.4777C89.2933 58.7035 88.6789 57.0588 87.7346 55.6544L91.4456 49.9015Z",fill:"#C4CDD5",stroke:"#C4CDD5"}),s.createElement("path",{d:"M44.0734 86.2351C43.586 86.995 42.5749 87.2159 41.815 86.7285C41.0551 86.2411 40.8342 85.23 41.3216 84.4701L44.2477 79.908C44.7351 79.1481 45.7462 78.9272 46.5061 79.4146C47.266 79.902 47.4869 80.9131 46.9995 81.673L44.0734 86.2351Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M36.2671 78.3761C35.4261 78.7043 34.4783 78.2887 34.15 77.4478C33.8217 76.6068 34.2373 75.659 35.0782 75.3307L40.127 73.3598C40.968 73.0315 41.9158 73.4471 42.2441 74.2881C42.5724 75.129 42.1568 76.0769 41.3158 76.4052L36.2671 78.3761Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"})),D5=a=>s.createElement("svg",{width:160,height:110,viewBox:"0 0 160 110",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("ellipse",{opacity:.1,cx:80,cy:105.2,rx:80,ry:4.8,fill:"#C4CDD5"}),s.createElement("path",{d:"M117.5 53.0002C117.5 49.6865 114.814 47.0002 111.5 47.0002H70.5002C67.1865 47.0002 64.5002 49.6865 64.5002 53.0002V77.8003C64.5002 81.114 67.1865 83.8002 70.5002 83.8002H97.9565L104.535 89.8908C105.816 91.0762 107.894 90.1681 107.894 88.4232V83.8002H111.5C114.814 83.8002 117.5 81.114 117.5 77.8002V53.0002Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M40.5 38.0001C40.5 33.5818 44.0817 30.0001 48.5 30.0001H94.5C98.9183 30.0001 102.5 33.5818 102.5 38.0001V65.4001C102.5 69.8184 98.9183 73.4001 94.5 73.4001H63.3625L55.1021 81.1098C53.8237 82.303 51.7375 81.3964 51.7375 79.6477V73.4001H48.5C44.0817 73.4001 40.5 69.8184 40.5 65.4001V38.0001Z",fill:"white",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("circle",{cx:56.7752,cy:51.7003,r:3.65,fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2}),s.createElement("circle",{cx:71.4999,cy:51.7003,r:3.65,fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2}),s.createElement("circle",{cx:86.2252,cy:51.7003,r:3.65,fill:"#C4CDD5",stroke:"#C4CDD5",strokeWidth:2}),s.createElement("path",{d:"M104.934 19.1668C104.934 18.2641 104.202 17.5322 103.299 17.5322C102.396 17.5322 101.665 18.2641 101.665 19.1668V24.5866C101.665 25.4894 102.396 26.2212 103.299 26.2212C104.202 26.2212 104.934 25.4894 104.934 24.5866V19.1668Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M108.479 31.9863C107.576 31.9863 106.844 31.2545 106.844 30.3517C106.844 29.449 107.576 28.7172 108.479 28.7172L113.898 28.7172C114.801 28.7172 115.533 29.449 115.533 30.3517C115.533 31.2545 114.801 31.9863 113.898 31.9863L108.479 31.9863Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"})),E5=a=>s.createElement("svg",{width:84,height:73,viewBox:"0 0 84 73",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 16.2331C16.2368 21.3342 17.0165 26.29 18.2788 31.0438C28.1744 25.7589 39.0275 23.1157 49.8778 23.1157C60.8066 23.1157 71.7374 25.7968 81.6907 31.1582C82.9703 26.3693 83.7611 21.3749 84 16.2331C63.018 3.92231 36.9848 3.92231 16 16.2331ZM58.8187 37.622C58.3924 37.2697 57.914 36.9659 57.3891 36.7091L57.312 36.754L57.2446 36.7933
1C57.2301 37.0873 57.2134 37.3631 57.1981 37.6248C57.0363 40.3507 56.9725 41.4327 60.8711 42.5806L60.967 42.5042L61.0572 42.4319C61.0392 41.839 60.96 41.2741 60.8184 40.743C60.6552 40.1332 60.4073 39.56 60.0692 39.0302C59.7276 38.4955 59.3082 38.0268 58.8187 37.622ZM50.1701 32.0164H50.1743H50.1757H50.1784C50.2277 32.0171 50.2763 32.0178 50.3249 32.0192L50.3874 32.0206L50.4388 32.022L50.468 32.0227C54.0111 32.1455 57.2078 33.6576 59.5498 36.0411C61.9939 38.5292 63.5054 41.9667 63.5054 45.7634C63.5054 46.7892 63.395 47.7884 63.1853 48.7504C62.6202 51.348 61.3329 53.6698 59.5491 55.4857C57.1231 57.9556 53.7779 59.4901 50.0805 59.5126C50.0562 59.5126 50.0326 59.5133 50.0083 59.5133H49.9986H49.9889C49.9646 59.5133 49.941 59.5133 49.9174 59.5126C46.2201 59.4901 42.8748 57.9563 40.4488 55.4857C38.0047 52.9976 36.4932 49.5601 36.4932 45.7634C36.4932 41.9667 38.0047 38.5292 40.4488 36.0411C42.7567 33.6919 45.8965 32.189 49.3793 32.0283L49.405 32.0269L49.4306 32.0255L49.5133 32.022C49.5528 32.0206 49.5924 32.0192 49.632 32.0185L49.6612 32.0178C49.7736 32.0149 49.8854 32.0135 49.9986 32.0135C50.0569 32.0156 50.1139 32.0156 50.1701 32.0164ZM56.6461 35.4833C55.7845 34.9051 54.8464 34.4357 53.8501 34.0954C53.5952 34.5318 53.2717 34.9493 52.8398 35.3829C52.3128 35.9113 51.6275 36.4586 50.704 37.0908V40.8805C51.5206 40.9998 52.3246 41.3022 53.3814 41.6994C53.5911 41.7779 53.8105 41.8607 54.0341 41.9435L55.8921 40.851C55.6428 39.9866 55.7053 38.925 55.7879 37.5336C55.8102 37.1575 55.8345 36.754 55.8518 36.3344C55.8629 36.0664 56.0164 35.839 56.2351 35.7247C56.5934 35.5142 56.5066 35.564 56.6093 35.5043L56.6461 35.4833ZM56.6079 42.0909C57.3294 42.8361 58.5972 43.4332 60.7802 44.0471C61.0038 44.1306 61.2627 44.0976 61.4634 43.937C62.1494 43.3869 61.4808 43.9194 61.8383 43.6338L61.9001 43.5847C62.0244 44.2927 62.089 45.021 62.089 45.7655C62.089 46.4328 62.0369 47.0875 61.9362 47.726C60.5691 47.526 59.5436 47.8544 57.9529 48.3638C57.7404 48.4318 57.5161 48.5034 57.2689 48.5813L53.9945 46.6566C54.3458 45.8223 54.5854 44.7467 54.7652 43.1743L56.6079 42.0909ZM52.4121 33.7032C51.6324 33.5425 50.8262 33.4583 50 33.4583C49.9611 33.4583 49.9215 33.4583 49.8827 33.459C49.8438 33.4597 49.8049 33.4597 49.766 33.4604C49.7271 33.4611 49.6882 33.4618 49.6494 33.4632C49.0856 33.4793 48.5308 33.5355 47.9892 33.6281C48.401 34.2322 48.9675 34.7613 49.7216 35.465C49.832 35.5682 49.9465 35.6748 50.0687 35.7899C50.8457 35.251 51.4199 34.79 51.8504 34.3578C52.0712 34.1347 52.2559 33.9186 52.4121 33.7032ZM46.5297 33.9726C45.3396 34.3354 44.2266 34.8792 43.2212 35.5731L43.2233 35.5745C43.626 35.7892 42.8741 35.3879 43.649 35.7976C43.8753 35.9176 44.0114 36.145 44.0288 36.3863C44.3606 38.5587 44.3634 39.9529 44.0419 40.924L45.9264 41.9358C47.3601 41.3043 48.3989 40.9752 49.2869 40.8665V37.0157C49.1099 36.8487 48.9321 36.6824 48.7627 36.5246C47.7559 35.5836 47.0435 34.9184 46.5297 33.9726ZM39.8607 39.0597L39.8274 39.1116C39.4892 39.6477 39.242 40.2287 39.0816 40.8482C38.9414 41.3885 38.8657 41.9576 38.8518 42.5505L38.924 42.6038L38.9865 42.6501C39.2559 42.5428 39.5093 42.4445 39.7503 42.3519C42.2582 41.3815 43.2525 40.9956 42.6776 36.9056L42.5707 36.8473L42.4693 36.7933C41.9458 37.0536 41.4729 37.3595 41.0549 37.7097C40.5911 38.0991 40.1905 38.5489 39.8607 39.0597ZM38.0714 43.7524C37.9659 44.4071 37.9103 45.0793 37.9103 45.7648C37.9103 46.2861 37.9422 46.7998 38.004 47.3043C39.7142 47.126 41.2959 47.806 42.797 48.5532L46.0208 46.658C45.7139 45.8778 45.5688 45.0161 45.3778 43.8843C45.3396 43.6556 45.2994 43.4163 45.2626 43.2058L43.2803 42.1414C42.6075 42.7841 41.5958 43.1757 40.2481 43.697C39.9023 43.831 39.5316 43.9742 39.1483 44.1306C38.9039 44.2303 38.6373 44.1811 38.4449 44.0254C38.1089 43.7798 38.1894 43.8394 38.0936 43.7693L38.0714 43.7524ZM38.263 48.7265C38.7011 50.5305 39.5295 52.178 40.6529 53.5701C41.5222 52.444 41.7118 51.1157 42.0089 49.7622C40.8425 49.1903 39.5892 48.6255 38.263 48.7265ZM41.6229 54.6381C42.6672 55.6604 43.892 56.4933 45.2438 57.082L45.2431 57.075C45.2348 56.9774 45.2216 56.8336 45.1994 56.5908C45.1786 56.3551 45.2716 56.1354 45.4327 55.9895L45.4313 55.9881C47.1109 54.4662 48.2906 53.6972 49.2911 53.4649V50.3299C48.0441 49.3861 47.2491 48.6374 46.7144 47.9105L43.4407 49.8345C43.0331 51.6357 42.8692 53.1849 41.6229 54.6381ZM49.9326 58.0713L49.9889 58.072H50H50.0132H50.0625C50.6707 58.0657 51.2651 57.9633 51.8428 57.7731C52.3628 57.6019 52.8731 57.3584 53.3717 57.049L53.3765 56.9599L53.3807 56.8806C53.1516 56.7115 52.9315 56.5459 52.7211 56.388C51.7726 55.6744 51.0755 55.151 50.3312 55.01
177C50.2319 55.071 50.1194 55.1019 49.9993 55.1019C49.8722 55.1019 49.7521 55.0675 49.6494 55.0079C48.8682 55.1208 47.9573 55.6646 46.6374 56.8287L46.6485 56.9522L46.6589 57.0666C47.1553 57.3725 47.6636 57.6125 48.1802 57.7809C48.7474 57.9647 49.3327 58.0643 49.9326 58.0713ZM54.786 57.0694C55.9914 56.5396 57.0961 55.8162 58.0605 54.937C57.6432 54.4185 57.321 53.8684 57.0731 53.1618C56.7794 52.324 56.6003 51.2764 56.501 49.7903L53.2758 47.8944C52.7655 48.5546 52.1059 49.1132 51.2387 49.8464C51.0845 49.9769 50.9228 50.1137 50.7089 50.2976V53.4951C51.5789 53.74 52.4343 54.3834 53.5633 55.2324C53.8542 55.4513 54.1667 55.6864 54.5173 55.9404C54.7214 56.0884 54.8249 56.3256 54.8131 56.5628C54.8034 56.7515 54.795 56.9073 54.7874 57.0378L54.786 57.0694ZM59.0645 53.9083C60.2407 52.5527 61.128 50.9312 61.628 49.1433C60.5872 49.029 59.7088 49.3103 58.3729 49.7383C58.2271 49.7847 58.0771 49.8331 57.9237 49.8822C58.0154 51.122 58.1674 51.9963 58.4063 52.6776C58.5743 53.1555 58.7902 53.5435 59.0645 53.9083ZM49.9729 49.05C50.0923 48.949 50.2159 48.8444 50.3361 48.7427C52.1719 47.1899 52.9259 46.5514 53.3369 43.2171C53.1814 43.1595 53.0356 43.1041 52.894 43.0508C50.6527 42.2081 49.7313 41.8621 46.6915 43.1658C46.7228 43.3476 46.7484 43.4977 46.7727 43.6416C47.1762 46.0371 47.3421 47.0215 49.9729 49.05ZM18.9127 33.2815C18.9815 33.2604 19.0488 33.2323 19.1148 33.1973C28.734 28.0147 39.3045 25.4235 49.8778 25.4235C60.4511 25.4235 71.0209 28.0147 80.6408 33.1973C80.7797 33.2716 80.9262 33.3137 81.0734 33.3264C75.9763 50.1958 64.7316 64.3232 50 73C35.2552 64.3155 24.0042 50.1706 18.9127 33.2815Z",fill:"#C4CDD5"}),s.createElement("path",{d:"M8.43377 12.4442C9.38507 12.4442 10.1563 13.2154 10.1563 14.1667C10.1563 15.118 9.38507 15.8892 8.43377 15.8892L2.72253 15.8892C1.77123 15.8892 1.00005 15.118 1.00005 14.1667C1.00005 13.2154 1.77123 12.4442 2.72253 12.4442L8.43377 12.4442Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"}),s.createElement("path",{d:"M16.198 2.72248C16.198 1.77118 15.4268 1 14.4755 1C13.5242 1 12.753 1.77118 12.753 2.72248L12.753 8.43372C12.753 9.38502 13.5242 10.1562 14.4755 10.1562C15.4268 10.1562 16.198 9.38502 16.198 8.43372L16.198 2.72248Z",stroke:"#C4CDD5",strokeWidth:2,strokeLinejoin:"round"})),P5=a=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2ZM13 16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V11C11 10.4477 11.4477 10 12 10C12.5523 10 13 10.4477 13 11V16ZM11 8C11 8.55228 11.4477 9 12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8Z",fill:"#F4F6F8"})),H5=a=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9912 3.26524C17.3252 2.48824 18.9992 3.44924 18.9992 4.99324V8.25224C19.3932 8.25224 19.7833 8.32983 20.1472 8.4806C20.5112 8.63136 20.8419 8.85234 21.1205 9.13092C21.3991 9.40949 21.6201 9.74021 21.7708 10.1042C21.9216 10.4682 21.9992 10.8583 21.9992 11.2522C21.9992 11.6462 21.9216 12.0363 21.7708 12.4003C21.6201 12.7643 21.3991 13.095 21.1205 13.3736C20.8419 13.6521 20.5112 13.8731 20.1472 14.0239C19.7833 14.1746 19.3932 14.2522 18.9992 14.2522V17.2522C18.9992 18.9002 17.1182 19.8412 15.7992 18.8522L13.7392 17.3062C12.6381 16.4806 11.356 15.9294 9.9992 15.6982V18.5422C9.99931 19.196 9.76309 19.8277 9.3341 20.321C8.9051 20.8143 8.31225 21.1359 7.66481 21.2265C7.01738 21.3171 6.35902 21.1707 5.81108 20.8141C5.26314 20.4575 4.86257 19.9149 4.6832 19.2862L3.1132 13.7902C2.54822 13.123 2.18054 12.3115 2.05149 11.4467C1.92244 10.582 2.03713 9.69847 2.38268 8.89537C2.72823 8.09228 3.29094 7.40148 4.00755 6.90063C4.72416 6.39979 5.56626 6.10875 6.4392 6.06024L9.4572 5.89224C10.9338 5.81007 12.3698 5.37857 13.6472 4.63324L15.9912 3.26524ZM5.6332 15.3302L6.6062 18.7372C6.65302 18.9022 6.75794 19.0446 6.90157 19.1382C7.0452 19.2317 7.21785 19.2702 7.38763 19.2464
1C7.55741 19.2227 7.71286 19.1383 7.82527 19.0089C7.93768 18.8794 7.99946 18.7137 7.9992 18.5422V15.5322L6.4392 15.4452C6.16772 15.4302 5.89805 15.3917 5.6332 15.3302ZM19.9992 11.2522C19.9992 10.987 19.8938 10.7327 19.7063 10.5451C19.5188 10.3576 19.2644 10.2522 18.9992 10.2522V12.2522C19.2644 12.2522 19.5188 12.1469 19.7063 11.9593C19.8938 11.7718 19.9992 11.5175 19.9992 11.2522Z",fill:"#2F80ED"})),He={paper:{justifyContent:"space-between",alignItems:{xs:"flex-start",md:"center"},padding:{xs:"8px 8px 8px 12px",md:"8px 8px 8px 16px"},backgroundColor:a=>a.backgroundColor.ticker,color:a=>a.palette.common.white,borderRadius:"8px",minHeight:"50px"},messageText:{overflow:"hidden",textOverflow:"ellipsis",color:a=>a.palette.common.white},customButton:{height:"30px",fontSize:"13px",backgroundColor:a=>a.palette.background.default,color:a=>a.palette.text.primary,"&:hover":{backgroundColor:"#f5f5f5"}},removeButton:{height:{xs:"26px",md:"30px"},fontSize:{xs:"11px",md:"13px"},padding:{xs:"4px 8px",md:"4px 12px"},borderColor:"#215AA6",color:a=>a.palette.text.tertiary,"&:hover":{borderColor:"#215AA6",backgroundColor:"#215AA614"}},changeButton:{height:{xs:"26px",md:"30px"},fontSize:{xs:"11px",md:"13px"},padding:{xs:"4px 8px",md:"4px 12px"}}},M5=({updateAdminMessage:a,isAdmin:l=!1,loading:n})=>{const{t:c}=A("common"),{t}=A("dugout"),p=Se(C=>C==null?void 0:C.club),[x,E]=s.useState(!1),[g,y]=s.useState(p.notification?p.notification:""),u=()=>{E(!1)},m=()=>{a(g),u()},D=()=>{y(""),a("")};return e.jsxs(e.Fragment,{children:[e.jsxs(Q1,{container:!0,elevation:1,sx:[He.paper,p.notification&&{backgroundColor:"#ACCCF8"}],wrap:"nowrap",direction:p.notification?{xs:"column",md:"row"}:{xs:"row",md:"row"},children:[e.jsx(r,{flex:1,overflow:"hidden",sx:p.notification?{}:{display:{xs:"none",md:"block"}},children:e.jsxs(r,{container:!0,alignItems:{xs:"flex-center",md:"center"},spacing:"12px",children:[e.jsx(r,{mt:"6px",children:p.notification?e.jsx(H5,{}):e.jsx(P5,{})}),e.jsx(r,{container:!0,alignItems:"center",flex:1,overflow:"hidden",children:e.jsx(Ie,{title:p.notification,placement:"top",children:e.jsx(d,{sx:[He.messageText,p.notification&&{color:"text.tertiary"}],children:p.notification?p.notification:c("adminMessage")})})})]})}),e.jsx(r,{sx:{width:{xs:"100%",md:"auto"}},children:e.jsx(r,{container:!0,spacing:1,justifyContent:{xs:"flex-end",md:"flex-start"},children:p.notification?l&&e.jsxs(e.Fragment,{children:[e.jsx(r,{children:e.jsx(ze,{variant:"outlined",text:t("dashboard.adminMessage.removeMessage"),customStyles:He.removeButton,onClick:D})}),e.jsx(r,{children:e.jsx(ze,{text:t("dashboard.adminMessage.changeMessage"),customStyles:He.changeButton,onClick:()=>E(!0)})})]}):l&&e.jsx(r,{container:!0,justifyContent:{xs:"center",md:"flex-start"},sx:{width:"100%"},children:e.jsx(ze,{text:t("dashboard.adminMessage.shareMessage"),customStyles:He.customButton,onClick:()=>E(!0)})})})})]}),e.jsx(s5,{loading:n,open:x,handleClose:u,title:t("dashboard.adminMessage.modalTitle"),actionBtnTitle:t("dashboard.adminMessage.saveChanges"),actionHandler:m,children:e.jsx(r,{size:12,children:e.jsx(a5,{name:"message",label:t("dashboard.adminMessage.messageLabel"),value:g,multiline:!0,rows:3,handleChange:C=>y(C.target.value)})})})]})},ue=(a,l)=>a>l?"W":a<l?"L":"D",W1=a=>{switch(a){case"W":return{bg:"#22C55E",text:"#fff"};case"L":return{bg:"#EF4444",text:"#fff"};case"D":return{bg:"#F59E0B",text:"#fff"};default:return{bg:"#94A3B8",text:"#fff"}}},S5=a=>{switch(a){case"W":return 3;case"D":return 1;default:return 0}},U={card:{borderRadius:"16px",border:a=>`1px solid ${a.palette.divider}`,height:"100%"},title:{fontSize:"16px",fontWeight:700,color:"text.primary"},subtitle:{fontSize:"13px",color:"text.secondary"},resultDot:{width:36,height:36,borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"default"},resultLetter:{fontWeight:700,fontSize:"14px",lineHeight:1},pointsText:{fontSize:"24px",fontWeight:700,color:"primary.dark"},pointsLabel:{fontSize:"12px",color:"text.secondary"},formLabel:{fontSize:"12px",fontWeight:600,color:"text.secondary",letterSpacing:"0.5px"}},v5=({fixtures:a=[],loading:l})=>{var m,D;if(l)return null;if(!a.length)return e.jsx(F,{elevation:0,sx:U.card,children:e.jsxs(_,{sx:{py:2.5,px:3},children:[e.jsx(d,{sx:U.title,children:"Form Guide"}),e.jsx(V,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:80,color:"text.secondary",fontSize:"14px"},children:"No recent results"})]})});const c=[...a].sort((C,j)=>j.fixture_date_time-C.fixture_date_time).slice(0,10),t=[...c].reverse(),p=t.reduce((C,j)=>{const o=ue(j.teamScore,j.oppTeamScore);return C+S5(o)},0),x=t.filter(C=>ue(C.teamScore,C.oppTeamScore)==="W").length,E=Math.round(x/t.length*100),y=(()=>
1{if(!c.length)return null;const C=ue(c[0].teamScore,c[0].oppTeamScore);let j=1;for(let f=1;f<c.length&&ue(c[f].teamScore,c[f].oppTeamScore)===C;f++)j++;let o=0;for(let f=0;f<c.length;f++){const k=ue(c[f].teamScore,c[f].oppTeamScore);if(k==="W"||k==="D")o++;else break}return o>j&&o>=3?{type:"unbeaten",count:o}:j>=2?{type:C==="W"?"win":C==="L"?"loss":"draw",count:j}:null})(),u={win:{bg:"#22C55E",text:"#fff"},unbeaten:{bg:"#3B82F6",text:"#fff"},loss:{bg:"#EF4444",text:"#fff"},draw:{bg:"#F59E0B",text:"#fff"}};return e.jsx(F,{elevation:0,sx:U.card,children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:2,sx:{height:"100%"},children:[e.jsxs(r,{container:!0,justifyContent:"space-between",alignItems:"center",children:[e.jsxs(V,{children:[e.jsxs(r,{container:!0,alignItems:"center",gap:1,children:[e.jsx(d,{sx:U.title,children:"Form Guide"}),y&&e.jsx(V,{sx:{backgroundColor:(m=u[y.type])==null?void 0:m.bg,color:(D=u[y.type])==null?void 0:D.text,borderRadius:"6px",px:1,py:.25,fontSize:"11px",fontWeight:700,lineHeight:1.4},children:y.type==="unbeaten"?`${y.count} unbeaten`:`${y.count} ${y.type}${y.count>1?"s":""}`})]}),e.jsxs(d,{sx:U.subtitle,children:["Last ",t.length," results"]})]}),e.jsxs(r,{container:!0,direction:"column",alignItems:"center",width:"auto",children:[e.jsx(d,{sx:U.pointsText,children:p}),e.jsxs(d,{sx:U.pointsLabel,children:["pts from ",t.length," · ",E,"% win rate"]})]})]}),e.jsx(r,{container:!0,gap:1,alignItems:"center",justifyContent:"center",sx:{flex:1,alignContent:"center"},children:t.map((C,j)=>{const o=ue(C.teamScore,C.oppTeamScore),f=W1(o),k=C.fixture_date_time?me(C.fixture_date_time):"";return e.jsx(Ie,{title:e.jsxs(V,{sx:{textAlign:"center"},children:[e.jsxs(d,{fontSize:"12px",fontWeight:600,children:[C.team_name," ",C.teamScore," - ",C.oppTeamScore," ",C.opposition]}),k&&e.jsx(d,{fontSize:"11px",sx:{opacity:.8},children:k})]}),arrow:!0,slotProps:{tooltip:{sx:{borderRadius:"8px",px:1.5,py:1}}},children:e.jsx(V,{sx:{...U.resultDot,backgroundColor:f.bg,...C.oppTeamScore===0&&{borderBottom:"3px solid #22C55E"}},children:e.jsx(d,{sx:{...U.resultLetter,color:f.text},children:o})})},C.id||j)})}),e.jsxs(r,{container:!0,justifyContent:"center",gap:3,children:[["W","D","L"].map(C=>{const j=t.filter(k=>ue(k.teamScore,k.oppTeamScore)===C).length,o=W1(C),f=C==="W"?"Won":C==="D"?"Drawn":"Lost";return e.jsxs(r,{container:!0,alignItems:"center",gap:.5,width:"auto",children:[e.jsx(V,{sx:{width:10,height:10,borderRadius:"50%",backgroundColor:o.bg}}),e.jsxs(d,{sx:U.formLabel,children:[j," ",f]})]},C)}),t.some(C=>C.oppTeamScore===0)&&e.jsxs(r,{container:!0,alignItems:"center",gap:.5,width:"auto",children:[e.jsx(V,{sx:{width:10,height:10,borderRadius:"50%",backgroundColor:"transparent",borderBottom:"3px solid #22C55E"}}),e.jsx(d,{sx:U.formLabel,children:"Clean sheet"})]})]})]})})})};o5.register(r5,i5,l5,d5,c5,h5);const V5="#2F80ED",T5="#EF4444",F5=(a,l)=>{const n=a.replace("#",""),c=parseInt(n.substring(0,2),16),t=parseInt(n.substring(2,4),16),p=parseInt(n.substring(4,6),16);return`rgba(${c}, ${t}, ${p}, ${l})`},_5=a=>{const l=new Date(Number(a));if(isNaN(l.getTime()))return"";const n=l.getDate(),c=l.toLocaleString("en-GB",{month:"short"});return`${n} ${c}`},Me={card:{borderRadius:"16px",border:a=>`1px solid ${a.palette.divider}`,height:"100%"},title:{fontSize:"16px",fontWeight:700,color:"text.primary"},subtitle:{fontSize:"13px",color:"text.secondary"},toggleBtn:{fontSize:"12px",fontWeight:600,cursor:"pointer",px:1.5,py:.5,borderRadius:"6px",transition:"all 0.15s ease"}},Z5=({sessions:a=[],height:l=260})=>{const n=Se(u=>u.club),c=(n==null?void 0:n.color)||V5,[t,p]=s.useState(!0),x=s.useMemo(()=>[...a].filter(u=>u.session_date_time&&u.player_count!=null).sort((u,m)=>Number(u.session_date_time)-Number(m.session_date_time)),[a]),{chartData:E,chartOptions:g,avgValue:y}=s.useMemo(()=>{if(x.length<2)return{chartData:null,chartOptions:null,avgValue:0};const u=x.map(o=>_5(o.session_date_time)),m=x.map(o=>{var f;if(t){const k=((f=o.Training_session_players)==null?void 0:f.length)||0;return k===0?0:Math.round(o.player_count/k*100)}return o.player_count}),D=Math.round(m.reduce((o,f)=>o+f,0)/m.length),C=D*.7,j=m.map(o=>o<C?T5:c);return{avgValue:D,chartData:{labels:u,datasets:[{label:t?"Attendance %":"Players",data:m,borderColor:c,backgroundColor:F5(c,.08),fill:!0,tension:.3,borderWidth:2,pointBackgroun
1dColor:j,pointBorderColor:j,pointRadius:4,pointHoverRadius:6}]},chartOptions:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#1A222F",titleFont:{size:12,weight:600},bodyFont:{size:12},padding:10,cornerRadius:8,callbacks:{title:o=>{var P,R;const f=(P=o[0])==null?void 0:P.dataIndex,k=x[f];return(k==null?void 0:k.session_name)||((R=o[0])==null?void 0:R.label)},label:o=>{const f=o.raw,k=f<C;return t?`${f}% attendance${k?" (low)":""}`:`${f} players${k?" (low)":""}`},afterLabel:o=>{const f=o.dataIndex,k=x[f];return(k==null?void 0:k.team_name)||""}}}},scales:{x:{grid:{display:!1},ticks:{color:"#919EAB",font:{size:10},maxRotation:45,maxTicksLimit:12}},y:{min:0,max:t?100:void 0,grid:{color:"#919EAB1a"},ticks:{color:"#919EAB",font:{size:11},callback:o=>t?`${o}%`:o,stepSize:t?20:Math.max(1,Math.ceil(Math.max(...m)/6))}}}}}},[x,c,t]);return E?e.jsx(F,{elevation:0,sx:Me.card,children:e.jsxs(_,{sx:{py:2.5,px:3},children:[e.jsxs(r,{container:!0,justifyContent:"space-between",alignItems:"flex-start",mb:2,children:[e.jsxs(V,{children:[e.jsx(d,{sx:Me.title,children:"Squad Attendance Trend"}),e.jsxs(d,{sx:Me.subtitle,children:["Avg ",y,t?"%":" players"," · red = low attendance"]})]}),e.jsxs(r,{container:!0,gap:.5,width:"auto",children:[e.jsx(d,{onClick:()=>p(!0),sx:{...Me.toggleBtn,backgroundColor:t?"primary.main":"action.hover",color:t?"common.white":"text.secondary","&:hover":{backgroundColor:t?"primary.dark":"action.selected"}},children:"%"}),e.jsx(d,{onClick:()=>p(!1),sx:{...Me.toggleBtn,backgroundColor:t?"action.hover":"primary.main",color:t?"text.secondary":"common.white","&:hover":{backgroundColor:t?"action.selected":"primary.dark"}},children:"#"})]})]}),e.jsx(V,{sx:{height:l},children:e.jsx(n5,{data:E,options:g})})]})}):null},Y={card:{borderRadius:"16px",border:a=>`1px solid ${a.palette.divider}`,height:"100%"},title:{fontSize:"11px",fontWeight:600,color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.5px"},playerName:{fontSize:"16px",fontWeight:700,color:"text.primary",lineHeight:1.3},teamName:{fontSize:"13px",color:"text.secondary"},rating:{fontSize:"28px",fontWeight:800,color:"#FFAB00",lineHeight:1},ratingLabel:{fontSize:"11px",fontWeight:600,color:"text.secondary"},avatar:{width:48,height:48,fontSize:"16px",borderRadius:"14px"},badge:{backgroundColor:"#FFF5CC",borderRadius:"8px",px:1,py:.5,display:"flex",alignItems:"center",gap:.5}},A5=()=>e.jsx(F,{elevation:0,sx:Y.card,children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:1.5,children:[e.jsx(S,{width:100,height:16}),e.jsxs(r,{container:!0,alignItems:"center",gap:2,children:[e.jsx(S,{variant:"rounded",width:48,height:48,sx:{borderRadius:"14px"}}),e.jsxs(V,{sx:{flex:1},children:[e.jsx(S,{width:"70%",height:20}),e.jsx(S,{width:"40%",height:16})]}),e.jsx(S,{variant:"rounded",width:60,height:40,sx:{borderRadius:"8px"}})]}),e.jsx(S,{width:"50%",height:14})]})})}),R5=()=>{const{t:a}=A("dugout");return e.jsx(F,{elevation:0,sx:Y.card,children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:1.5,children:[e.jsx(d,{sx:Y.title,children:a("dashboard.topPerformer")}),e.jsx(r,{container:!0,alignItems:"center",justifyContent:"center",sx:{py:3},children:e.jsx(d,{sx:{fontSize:"13px",color:"text.secondary"},children:a("dashboard.noPlayerRatings")})})]})})})},W5=({playersRatingList:a=[],loading:l=!1,onClick:n})=>{const{t:c}=A("dugout");if(l)return e.jsx(A5,{});if(!a.length)return e.jsx(R5,{});const t=a[0],p=parseFloat(t.average_rating).toFixed(1),x=ve(t==null?void 0:t.position),E=d1(`${t.player_name} ${t.player_surname}`);return e.jsx(F,{elevation:0,sx:{...Y.card,...n&&{cursor:"pointer","&:hover":{boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}},onClick:()=>n==null?void 0:n(t==null?void 0:t.player_id),children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:1.5,children:[e.jsx(d,{sx:Y.title,children:c("dashboard.topPerformer")}),e.jsxs(r,{container:!0,alignItems:"center",gap:2,children:[e.jsx(Le,{alt:t.player_name,src:`${we}/${t.player_Image}`,sx:[Y.avatar,x?{color:g=>{var y;return(y=g.playerCategories[x])==null?void 0:y.color},backgroundColor:g=>{var y;return(y=g.playerCategories[x])==null?void 0:y.backgroundColor}}:{}],variant:"rounded",slotProps:{img:{loading:"lazy",decoding:"async"}},children:E}),e.jsxs(V,{sx:{flex:1,minWidth:0},children:[e.jsxs(d,{sx:Y.playerName,children:[t.player_name," ",t.player_surname]}),e.jsx(d,{sx:Y.teamName,children:t.teamName})]}),e.jsxs(r,{container:!0,direction:"column",alignItems:"center",width:"auto",children:[e.jsxs(V,{sx:Y.badge,children:[e.jsx(c1,{sx:{color:"#FFAB00",fontSize:20}}),e.jsx(d,{sx:Y.rating,children:p})]}),e.jsx(d,{sx:Y.ratingLabel,children:c("dashboard.avgRating")})]})]}),t.opposition&&e.jsxs(d,{sx:{fontSize:"12px",color:"text.secondary"},children:[c("dashboard.lastRated")," ",t.opposition]})]})})})},N={card:{borderRadius:"16px",border:a=>`1px solid ${a.palette.divider}`,height:"100%"},title:{fontSize:"11px",fontWeight:600,color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.5px"},playerName:{fontSize:"16px",fontWeight:700,color:"text.primary",lineHeight:1.3},teamName:{fontSize:"13px",color:"text.secondary"},goalCount:{fontSize:"28px",fontWeight:800,color:"#2E7D32",lineHeight:1}
1,goalDetail:{fontSize:"11px",fontWeight:600,color:"text.secondary",textAlign:"center",lineHeight:1.3},avatar:{width:48,height:48,fontSize:"16px",borderRadius:"14px"},badge:{backgroundColor:"#E8F5E9",borderRadius:"8px",px:1,py:.5,display:"flex",alignItems:"center",gap:.5}},z5=()=>e.jsx(F,{elevation:0,sx:N.card,children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:1.5,children:[e.jsx(S,{width:110,height:16}),e.jsxs(r,{container:!0,alignItems:"center",gap:2,children:[e.jsx(S,{variant:"rounded",width:48,height:48,sx:{borderRadius:"14px"}}),e.jsxs(V,{sx:{flex:1},children:[e.jsx(S,{width:"70%",height:20}),e.jsx(S,{width:"40%",height:16})]}),e.jsx(S,{variant:"rounded",width:60,height:40,sx:{borderRadius:"8px"}})]}),e.jsx(S,{width:"60%",height:14})]})})}),z1=()=>{const{t:a}=A("dugout");return e.jsx(F,{elevation:0,sx:N.card,children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:1.5,children:[e.jsx(d,{sx:N.title,children:a("dashboard.topGoalScorer")}),e.jsx(r,{container:!0,alignItems:"center",justifyContent:"center",sx:{py:3},children:e.jsx(d,{sx:{fontSize:"13px",color:"text.secondary"},children:a("dashboard.noGoalsRecorded")})})]})})})},I5=({playerStatList:a=[],selectedTeams:l=[],loading:n=!1,onClick:c})=>{const{t}=A("dugout");if(n)return e.jsx(z5,{});if(!(a!=null&&a.length))return e.jsx(z1,{});let p=null,x=0,E=0;if(a.forEach(D=>{const C=D==null?void 0:D.playerPerformance;if(!(C!=null&&C.playerStats))return;let j=0,o=0;(l!=null&&l.length?l:Object.keys(C.playerStats)).forEach(k=>{var R;const P=(R=C.playerStats)==null?void 0:R[k];P&&(j+=Number(P.goals)||0,o+=Number(P.totalFixtures)||0)}),j>x&&(x=j,E=o,p=D)}),!p||x===0)return e.jsx(z1,{});const g=p.playerDetails,y=ve(g==null?void 0:g.firstPosition),u=d1(`${g==null?void 0:g.name} ${g==null?void 0:g.surname}`),m=E>0?(x/E).toFixed(2):"0.00";return e.jsx(F,{elevation:0,sx:{...N.card,...c&&{cursor:"pointer","&:hover":{boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}},onClick:()=>{var D;return c==null?void 0:c((D=p==null?void 0:p.playerDetails)==null?void 0:D.id)},children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:1.5,children:[e.jsx(d,{sx:N.title,children:t("dashboard.topGoalScorer")}),e.jsxs(r,{container:!0,alignItems:"center",gap:2,children:[e.jsx(Le,{alt:g==null?void 0:g.name,src:`${we}/${g==null?void 0:g.image}`,sx:[N.avatar,y?{color:D=>{var C;return(C=D.playerCategories[y])==null?void 0:C.color},backgroundColor:D=>{var C;return(C=D.playerCategories[y])==null?void 0:C.backgroundColor}}:{}],variant:"rounded",slotProps:{img:{loading:"lazy",decoding:"async"}},children:u}),e.jsxs(V,{sx:{flex:1,minWidth:0},children:[e.jsxs(d,{sx:N.playerName,children:[g==null?void 0:g.name," ",g==null?void 0:g.surname]}),e.jsx(d,{sx:N.teamName,children:p==null?void 0:p.team_name})]}),e.jsxs(r,{container:!0,direction:"column",alignItems:"center",width:"auto",children:[e.jsxs(V,{sx:N.badge,children:[e.jsx(X1,{sx:{color:"#2E7D32",fontSize:20}}),e.jsx(d,{sx:N.goalCount,children:x})]}),e.jsx(d,{sx:N.goalDetail,children:t("dashboard.goalsSummary",{goals:x,games:E})}),e.jsxs(d,{sx:N.goalDetail,children:[m," ",t("dashboard.goalsPerGame")]})]})]})]})})})},J={card:{borderRadius:"16px",border:a=>`1px solid ${a.palette.divider}`,height:"100%"},title:{fontSize:"11px",fontWeight:600,color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.5px"},seasonName:{fontSize:"14px",fontWeight:700,color:"text.primary"},percentage:{fontSize:"24px",fontWeight:800,color:"text.primary",lineHeight:1},dateLabel:{fontSize:"11px",color:"text.secondary"},progressBar:{height:8,borderRadius:4,"&.MuiLinearProgress-root":{backgroundColor:a=>`${a.palette.primary.main}15`},"& .MuiLinearProgress-bar":{borderRadius:4,backgroundColor:a=>a.palette.primary.main}},weeksLeft:{fontSize:"13px",fontWeight:600,color:"text.secondary"}},I1=a=>{if(!a)return"";const l=new Date(typeof a=="string"?a:Number(a));return isNaN(l.getTime())?"":l.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})},$5=()=>e.jsx(F,{elevation:0,sx:J.card,children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:1.5,children:[e.jsxs(r,{container:!0,justifyContent:"space-between",alignItems:"center",children:[e.jsxs(V,{children:[e.jsx(S,{width:100,height:16}),e.jsx(S,{width:140,height:20})]}),e.jsx(S,{width:50,height:30})]}),e.jsx(S,{variant:"rounded",width:"100%",height:8,sx:{borderRadius:4}}),e.jsxs(r,{container:!0,justifyContent:"space-between",children:[e.jsx(S,{width:80,height:14}),e.jsx(S,{width:80,height:14}),e.jsx(S,{width:80,height:14})]})]})})}),$1=()=>{const{t:a}=A("dugout");return e.jsx(F,{elevation:0,sx:J.card,children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:1.5,children:[e.jsx(d,{sx:J.title,children:a("dashboard.seasonProgress")}),e.jsx(r,{container:!0,alignItems:"center",justifyContent:"center",sx:{py:3},children:e.jsx(d,{sx:{fontSize:"13px",color:"text.secondary"},children:a("dashboard.noActiveSeason")})})]})})})},B5=({currentSeason:a,loading:l=!1})=>{const{t:n}=A("dugout");if(l)return e.jsx($5,{});if(!(a!=null&&a.start_date)||!(a!=null&&a.end_date))return e.jsx($1,{});const c=new Date,t=new Date(a.start_date),p=new Date(a.end_date),x=p-t,E=c-t;if(x<=0)return e.jsx($1,{});const g=Math.min(100,Math.max(0,Math.round(E/x*100))),y=Math.max(0,p-c),u=
1Math.ceil(y/(1e3*60*60*24*7));return e.jsx(F,{elevation:0,sx:J.card,children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:1.5,children:[e.jsxs(r,{container:!0,justifyContent:"space-between",alignItems:"center",children:[e.jsxs(V,{children:[e.jsx(d,{sx:J.title,children:n("dashboard.seasonProgress")}),a.name&&e.jsx(d,{sx:J.seasonName,children:a.name})]}),e.jsxs(d,{sx:J.percentage,children:[g,"%"]})]}),e.jsx(Yt,{variant:"determinate",value:g,sx:J.progressBar}),e.jsxs(r,{container:!0,justifyContent:"space-between",alignItems:"center",children:[e.jsx(d,{sx:J.dateLabel,children:I1(a.start_date)}),e.jsx(d,{sx:J.weeksLeft,children:u>0?n("dashboard.weeksLeft",{count:u}):n("dashboard.seasonEnded")}),e.jsx(d,{sx:J.dateLabel,children:I1(a.end_date)})]})]})})})},G5=a=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("path",{d:"M18 4H17V3C17 2.73478 16.8946 2.48043 16.7071 2.29289C16.5196 2.10536 16.2652 2 16 2C15.7348 2 15.4804 2.10536 15.2929 2.29289C15.1054 2.48043 15 2.73478 15 3V4H9V3C9 2.73478 8.89464 2.48043 8.70711 2.29289C8.51957 2.10536 8.26522 2 8 2C7.73478 2 7.48043 2.10536 7.29289 2.29289C7.10536 2.48043 7 2.73478 7 3V4H6C5.20435 4 4.44129 4.31607 3.87868 4.87868C3.31607 5.44129 3 6.20435 3 7V19C3 19.7956 3.31607 20.5587 3.87868 21.1213C4.44129 21.6839 5.20435 22 6 22H18C18.7956 22 19.5587 21.6839 20.1213 21.1213C20.6839 20.5587 21 19.7956 21 19V7C21 6.20435 20.6839 5.44129 20.1213 4.87868C19.5587 4.31607 18.7956 4 18 4ZM8 17C7.80222 17 7.60888 16.9414 7.44443 16.8315C7.27998 16.7216 7.15181 16.5654 7.07612 16.3827C7.00043 16.2 6.98063 15.9989 7.01921 15.8049C7.0578 15.6109 7.15304 15.4327 7.29289 15.2929C7.43275 15.153 7.61093 15.0578 7.80491 15.0192C7.99889 14.9806 8.19996 15.0004 8.38268 15.0761C8.56541 15.1518 8.72159 15.28 8.83147 15.4444C8.94135 15.6089 9 15.8022 9 16C9 16.2652 8.89464 16.5196 8.70711 16.7071C8.51957 16.8946 8.26522 17 8 17ZM16 17H12C11.7348 17 11.4804 16.8946 11.2929 16.7071C11.1054 16.5196 11 16.2652 11 16C11 15.7348 11.1054 15.4804 11.2929 15.2929C11.4804 15.1054 11.7348 15 12 15H16C16.2652 15 16.5196 15.1054 16.7071 15.2929C16.8946 15.4804 17 15.7348 17 16C17 16.2652 16.8946 16.5196 16.7071 16.7071C16.5196 16.8946 16.2652 17 16 17ZM19 11H5V7C5 6.73478 5.10536 6.48043 5.29289 6.29289C5.48043 6.10536 5.73478 6 6 6H7V7C7 7.26522 7.10536 7.51957 7.29289 7.70711C7.48043 7.89464 7.73478 8 8 8C8.26522 8 8.51957 7.89464 8.70711 7.70711C8.89464 7.51957 9 7.26522 9 7V6H15V7C15 7.26522 15.1054 7.51957 15.2929 7.70711C15.4804 7.89464 15.7348 8 16 8C16.2652 8 16.5196 7.89464 16.7071 7.70711C16.8946 7.51957 17 7.26522 17 7V6H18C18.2652 6 18.5196 6.10536 18.7071 6.29289C18.8946 6.48043 19 6.73478 19 7V11Z"})),fe={card:{borderRadius:"16px",border:a=>`1px solid ${a.palette.divider}`,height:"100%",background:"linear-gradient(135deg, #1a2332 0%, #0f1724 100%)"},title:{fontSize:"11px",fontWeight:600,color:"#94A3B8",textTransform:"uppercase",letterSpacing:"0.5px"},teams:{fontSize:"16px",fontWeight:700,color:"#fff",lineHeight:1.3},countdown:{fontSize:"32px",fontWeight:800,color:"#fff",lineHeight:1},countdownLabel:{fontSize:"12px",fontWeight:600,color:"#94A3B8"},date:{fontSize:"12px",color:"#64748B"}},N5=a=>{const l=new Date,c=new Date(Number(a))-l;if(c<0)return null;const t=Math.floor(c/(1e3*60*60*24)),p=Math.floor(c%(1e3*60*60*24)/(1e3*60*60));return t===0?{value:p,type:"hours"}:{value:t,type:"days"}},O5=a=>{const l=new Date(Number(a));return isNaN(l.getTime())?"":l.toLocaleDateString("en-GB",{weekday:"short",day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"})},K5=()=>e.jsx(F,{elevation:0,sx:fe.card,children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:1.5,children:[e.jsx(S,{width:90,height:16,sx:{bgcolor:"rgba(255,255,255,0.1)"}}),e.jsx(S,{width:"70%",height:22,sx:{bgcolor:"rgba(255,255,255,0.1)"}}),e.jsx(S,{width:80,height:36,sx:{bgcolor:"rgba(255,255,255,0.1)"}}),e.jsx(S,{width:140,height:14,sx:{bgcolor:"rgba(255,255,255,0.1)"}})]})})}),U5=({fixtures:a=[],loading:l=!1,onClick:n})=>{const{t:c}=A("dugout");if(l)return e.jsx(K5,{});if(!a.length)return null;const t=a[0],p=N5(t.fixture_date_time);return p?e.jsx(F,{elevation:0,sx:{...fe.card,...n&&{cursor:"pointer","&:hover":{boxShadow:"0px 4px 12px rgba(0,0,0,0.15)"}}},onClick:()=>n==null?void 0:n(t.id),children:e.jsx(_,{sx:{py:2.5,px:3},children:e.jsxs(r,{container:!0,direction:"column",gap:1.5,children:[e.jsxs(r,{container:!0,justifyContent:"space-between",alignItems:"center",children:[e.jsx(d,{sx:fe.title,children:c("dashboard.nextFixture")}),e.jsx(G5,{style:{width:18,height:18,opacity:.5}})]}),e.jsxs(d,{sx:fe.teams,children:[t.team_name," vs ",t.opposition]}),e.jsxs(r,{container:!0,alignItems:"baseline",gap:1,children:[e.jsx(d,{sx:fe.countdown,children:p.value}),e.jsx(d,{sx:fe.countdownLabel,children:c(`dashboard.${p.type}Away`,{count:p.value})})]}),e.jsx(d,{sx:fe.date,children:O5(t.fixture_date_time)})]})})}):null},Y5=a=>[{id:"game",label:a("dashboard.columns.game")},{id:"result",label:a("dashboard.columns.result")}],J5=a=>[{id:"teams",label:a("dashboard.columns.teams")},{id:"date",label:a("dashboard.columns.dateTime")}],q5=a=>[{id:"name",label:a("dashboard.columns.name")},{id:"date",label:a("dashboard.columns.date")},{id:"duration",label:a("dashboard.columns.duration")},{id:"avg_player_rating",label:a("dashboard.columns.avgPlayerRating")},{id:"session_rating",label:a("dashboard.columns.sessionRating")}],B1=a=>[{id:"ranking",label:a("dashboard.columns.ranking")},{id:"name",label:a("dashboard.columns.name")},{id:"stats",label:a("dashboard.columns.minutesPlayed"),itemStyles:{flex:1,textAlign:"center"}}],Q5=a=>[{id:"rating",label:a("dashboard.columns.rating")},{id:"name",label:a("dashboard.columns.name")},{id:"fixture",label:a("dashboard.columns.fixture")}],X5=a=>[{id:"name",label:a("dashboard.columns.name")},{id:"review",label:a("dashboard.columns.reviewType")},{id:"date",label:a("dashboard.columns.date")}],G1=a=>[{id:"team",label:a("dashboard.columns.team"),icon:!1,sort:!1,draggable:!1},{id:"gamesPlayed",label:a("dashboard.columns.gamesPlayed"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"wins",label:a("dashboard.columns.wins"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"draws",label:a("dashboard.columns.draws"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"losses",label:a("dashboard.columns.losses"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"scored",label:a("dashboard.columns.scored"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"conceded",label:a("dashboard.columns.conceded"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"difference",label:a("dashboard.columns.difference"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"biggestWin",label:a("dashboard.columns.biggestWin"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"biggestLoss",label:a("dashboard.columns.biggestLoss"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"topScorer",label:a("dashboard.columns.topScorer"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"starPlayer",label:a("dashboard.columns.starPlayer"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"possession",label:a("dashboard.columns.possession"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"totalShots",label:a("dashboard.columns.totalShots"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"onTarget",label:a("dashboard.columns.onTarget"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"offTarget",label:a("dashboard.columns.offTarget"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"blocked",label:a("dashboard.columns.blocked"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"passing",label:a("dashboard.columns.passing"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"clearCutChances",label:a("dashboard.columns.clearCutChances"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"corners",label:a("dashboard.columns.corners"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"offSide",label:a("dashboard.columns.offSide"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"tackle",label:a("dashboard.columns.tackle"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"aerialDuels",label:a("dashboard.columns.aerialDuels"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"foulsCommitted",label:a("dashboard.columns.foulsCommitted"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"foulsWon",label:a("dashboard.columns.foulsWon"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"yellowCards",label:a("dashboard.columns.yellowCards"),icon:e.jsx(M,{}),sort:!1,draggable:!0},{id:"redCards",label:a("dashboard.columns.redCards"),icon:e.jsx(M,{}),sort:!1,draggable:!0}],e3=({playersCount:a=0,upcomingFixturesCount:l=0,pastFixturesCount:n=0,upcomingSessionsCount:c=0,sessionsCount:t=0,objectivesCount:p=0,ratingsCount:x=0,reviewsCount:E=0,navigate:g})=>{const{currentSeason:y}=J1(),{t:u}=A("dugout"),D=s.useMemo(()=>{const C=localStorage.getItem("visited-session-planner")==="true",j=localStorage.getItem("visited-calendar")==="true";let o=0;if(y!=null&&y.start_date&&(y!=null&&y.end_date)){const k=new Date(y.start_date).getTime(),P=new Date(y.end_date).getTime(),R=Date.now();P>k&&(o=Math.min(1,Math.max(0,(R-k)/(P-k))))}const f=[];if(a===0&&f.push({id:"nudge-add-players",message:u("dashboard.nudges.addPlayersText"),actionText:u("dashboard.nudges.addPlayersAction"),onAction:()=>g("/dugout/players")}),a>0&&l===0&&f.push({id:"nudge-schedule-fixture",message:u("dashboard.nudges.noFixturesText"),actionText:u("dashboard.nudges.noFixturesAction"),onAction:()=>g("/dugout/fixtures")}),(l>0||n>0)&&t===0&&f.push({id:"nudge-plan-session",message:u("dashboard.nudges.prepareText"),actionText:u("dashboard.nudges.prepareAction"),onAction:()=>g("/dugout/sessions")}),y!=null&&y.start_date){const k=new Date(y.start_date).getTime(),P=336*60*60*1e3;Date.now()-k>P&&n===0&&f.push({id:"nudge-record-results",message:u("dashboard.nudges.recordResultsText"),actionText:u("dashboard.nudges.recordResultsAction"),onAction:()=>g("/dugout/fixtures")})}return a>0&&p===0&&f.push({id:"nudge-set-objectives",message:u("dashboard.nudges.objectivesText"),actionText:u("dashboard.nudges.objectivesAction"),onAction:()=>g("/dugout/players")}),n>=3&&x===0&&f.push({id:"nudge-rate-players",message:u("dashboard.nudges.ratePlayersText"),actionText:u("dashboard.nudges.ratePlayersAction"),onAction:()=>g("/dugout/fixtures")}),a>=5&&E===0&&f.push({id:"nudge-write-reviews",message:u("dashboard.nudges.writeReviewsText"),actionText:u("dashboard.nudges.writeReviewsAction"),onAction:()=>g("/dugout/players")}),t>0&&!C&&a>0&&(l>0||n>0)&&f.push({id:"nudge-explore-session-planner",message:u("dashboard.nudges.sessionPlannerText"),actionText:u("dashboard.nudges.sessionPlannerAction"),onAction:()=>g("/session-planner")}),(l>0||n>0)&&!j&&a>0&&f.push({id:"nudge-view-calendar",message:u("dashboard.nudges.calendarText"),actionText:u("dashboard.nudges.calendarAction"),onAction:()=>g("/dugout/calendar")}),o>.45&&o<.55&&f.push({id:"nudge-mid-season-review",message:u("dashboard.nudges.halfwayText"),actionText:u("dashboard.nudges.halfwayAction"),onAction:()=>g("/dugout/players")}),n>=5&&f.push({id:"nudge-check-form",message:u("dashboard.nudges.formGuideText")}),o>.85&&f.push({id:"nudge-plan-next-season",message:u("dashboard.nudges.endSeasonText"),actionText:u("dashboard.nudges.endSeasonAction"),onAction:()=>g("/dugout/teams")}),f},[a,l,n,t,c,p,x,E,y,g,u]).find(C=>{try{return localStorage.getItem(`hint-dismissed-${C.id}`)!=="true"}catch{return!0}});return D?e.jsx(x5,{id:D.id,message:D.message,actionText:D.actionText,onAction:D.onAction,variant:"info"}):null},N1=[{id:"first-player",check:a=>a.players>=1,messageKey:"dashboard.milestones.firstPlayer"},{id:"first-fixture",check:a=>a.upcomingFixtures>=1||a.pastFixtures>=1,messageKey:"dashboard.milestones.firstFixture"},{id:"first-result",check:a=>a.pastFixtures>=1,messageKey:"dashboard.milestones.firstResult"},{id:"first-session",check:a=>a.sessions>=1,messageKey:"dashboard.milestones.firstSession"},{id:"first-rating",check:a=>a.ratings>=1,messageKey:"dashboard.milestones.firstRating"},{id:"first-review",check:a=>a.reviews>=1,messageKey:"dashboard.milestones.firstReview"},{id:"10-players",check:a=>a.players>=10,messageKey:"dashboard.milestones.tenPlayers"},{id:"5-sessions",check:a=>a.sessions>=5,messageKey:"dashboard.milestones.fiveSessions"},{id:"10-fixtures",check:a=>a.pastFixtures>=10,messageKey:"dashboard.milestones.tenFixtures"},{id:"25-fixtures",check:a=>a.pastFixtures>=25,messageKey:"dashboard.milestones.twentyFiveFixtures"}],O1="milestone-",K1="milestones-initialised",t3=({players:a=0,upcomingFixtures:l=0,pastFixtures:n=0,sessions:c=0,ratings:t=0,reviews:p=0})=>{const[x,E]=s.useState(!1),{t:g}=A("dugout"),y=s.useMemo(()=>
1{if(a===0&&n===0&&l===0&&c===0&&t===0&&p===0)return null;const u={players:a,upcomingFixtures:l,pastFixtures:n,sessions:c,ratings:t,reviews:p};try{if(localStorage.getItem(K1)!=="true"){for(const m of N1)m.check(u)&&localStorage.setItem(`${O1}${m.id}`,"true");return localStorage.setItem(K1,"true"),null}}catch{return null}for(const m of N1){const D=`${O1}${m.id}`;try{if(localStorage.getItem(D)==="true")continue;if(m.check(u))return localStorage.setItem(D,"true"),m}catch{}}return null},[a,l,n,c,t,p]);return!y||x?null:e.jsx(r,{size:12,children:e.jsxs(V,{sx:{display:"flex",alignItems:"center",gap:1.5,px:2.5,py:1.5,background:"linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%)",border:"1px solid #FFD54F",borderRadius:"12px",transition:"box-shadow 0.2s","&:hover":{boxShadow:"0 2px 8px rgba(255, 193, 7, 0.25)"}},children:[e.jsx(Jt,{sx:{fontSize:24,color:"#F9A825",flexShrink:0}}),e.jsxs(V,{sx:{flex:1},children:[e.jsx(d,{sx:{fontSize:"11px",fontWeight:700,color:"#F57F17",textTransform:"uppercase",letterSpacing:"0.5px",lineHeight:1},children:g("dashboard.milestones.label")}),e.jsx(d,{sx:{fontSize:"14px",fontWeight:600,color:"#5D4037",mt:.25},children:g(y.messageKey)})]}),e.jsx(qt,{size:"small",onClick:()=>E(!0),sx:{color:"#F9A825",opacity:.6,"&:hover":{opacity:1}},children:e.jsx(Qt,{sx:{fontSize:16}})})]})})},Re=4,a3=({upcomingFixtures:a=[],upcomingSessions:l=[],fixturesLoading:n,sessionsLoading:c,onFixtureClick:t,onSessionClick:p})=>{const x=n||c,E=Xt(H=>H.breakpoints.down("sm")),[g,y]=s.useState(!1),{t:u,i18n:m}=A("dugout"),{fixturesThisWeek:D,sessionsThisWeek:C}=s.useMemo(()=>{const H=new Date,Z=new Date(H);Z.setDate(H.getDate()+7);const q=a.filter(W=>{const te=new Date(Number(W.fixture_date_time)||W.fixture_date_time);return te>=H&&te<=Z}),de=l.filter(W=>{const te=new Date(Number(W.session_date_time)||W.session_date_time);return te>=H&&te<=Z});return{fixturesThisWeek:q,sessionsThisWeek:de}},[a,l]),j=D.length+C.length;if(x)return e.jsx(F,{sx:{borderRadius:"16px",boxShadow:"0px 12px 24px -4px rgba(145, 158, 171, 0.12)"},children:e.jsxs(_,{sx:{py:2,px:3},children:[e.jsx(S,{width:200,height:28}),e.jsxs(V,{sx:{display:"flex",gap:2,mt:1},children:[e.jsx(S,{width:120,height:32}),e.jsx(S,{width:120,height:32})]})]})});if(j===0)return null;const o=H=>new Date(Number(H)||H).toLocaleDateString(m.language,{weekday:"short",day:"numeric",month:"numeric"}),f=[...D.map((H,Z)=>({type:"fixture",data:H,key:`f-${Z}`})),...C.map((H,Z)=>({type:"session",data:H,key:`s-${Z}`}))],k=E&&!g&&f.length>Re,P=k?f.slice(0,Re):f,R=f.length-Re;return e.jsx(F,{sx:{borderRadius:"16px",boxShadow:"0px 12px 24px -4px rgba(145, 158, 171, 0.12), 0px 0px 2px 0px rgba(145, 158, 171, 0.20)"},children:e.jsxs(_,{sx:{py:2,px:3,"&:last-child":{pb:2}},children:[e.jsxs(V,{sx:{display:"flex",alignItems:"center",gap:1,mb:1.5},children:[e.jsx(e5,{sx:{fontSize:18,color:"primary.main"}}),e.jsx(d,{sx:{fontSize:"14px",fontWeight:700,color:"text.primary"},children:u("dashboard.thisWeek")}),e.jsx(Pe,{size:"small",label:u("dashboard.events",{count:j}),sx:{fontSize:"11px",fontWeight:600,height:22}})]}),e.jsxs(V,{sx:{display:"flex",flexWrap:"wrap",gap:{xs:.5,sm:1}},children:[P.map(H=>H.type==="fixture"?e.jsx(Pe,{size:"small",icon:e.jsx(X1,{sx:{fontSize:"14px !important"}}),label:`${H.data.opposition||u("dashboard.fixtureLabel")} â ${o(H.data.fixture_date_time)}`,onClick:()=>t==null?void 0:t(H.data.id),sx:{fontSize:"12px",fontWeight:500,backgroundColor:"#E3F2FD",color:"#1565C0","& .MuiChip-icon":{color:"#1565C0"},cursor:t?"pointer":"default"}},H.key):e.jsx(Pe,{size:"small",icon:e.jsx(t5,{sx:{fontSize:"14px !important"}}),label:`${H.data.session_name||H.data.title||u("dashboard.sessionLabel")} â ${o(H.data.session_date_time)}`,onClick:()=>p==null?void 0:p(H.data.id),sx:{fontSize:"12px",fontWeight:500,backgroundColor:"#E8F5E9",color:"#2E7D32","& .MuiChip-icon":{color:"#2E7D32"},cursor:p?"pointer":"default"}},H.key)),k&&e.jsx(Pe,{size:"small",label:u("dashboard.moreEvents",{count:R}),onClick:()=>y(!0),sx:{fontSize:"12px",fontWeight:600,cursor:"pointer",backgroundColor:"#F5F5F5",color:"text.secondary"}}),E&&g&&f.length>Re&&e.jsx(Pe,{size:"small",label:u("dashboard.showLess"),onClick:()=>y(!1),sx:{fontSize:"12px",fontWeight:600,cursor:"pointer",backgroundColor:"#F5F5F5",color:"text.secondary"}})]})]})})},s3=a=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...a},s.createElement("path",{d:"M22 8.16211V8.23511C22 9.09511 22 9.52611 21.793 9.87811C21.586 10.2301 21.209 10.4391 20.457 10.8581L19.664 11.2981C20.21 9.45011 20.393 7.46411 20.46 5.76611L20.47 5.54511L20.472 5.49311C21.123 5.71911 21.489 5.88811 21.717 6.20411C22 6.59711 22 7.11911 22 8.16211ZM2 8.16211V8.23511C2 9.09511 2 9.52611 2.207 9.87811C2.414 10.2301 2.791 10.4391 3.543 10.8581L4.337 11.2981C3.79 9.45011 3.607 7.46411 3.54 5.76611L3.53 5.54511L3.529 5.49311C2.877 5.71911 2.511 5.88811 2.283 6.20411C2 6.59711 2 7.12011 2 8.16211Z"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.00011C13.784 2.00011 15.253 2.15711 16.377 2.34711C17.516 2.53911 18.085 2.63511 18.561 3.22111C19.037 3.80711 19.011 4.44011 18.961 5.70611C18.789 10.0551 17.851 15.4861 12.75 15.9661V19.5001H14.18C14.4111 19.5003 14.635 19.5804 14.8137 19.727C14.9923 19.8736 15.1147 20.0775 15.16 20.3041L15.35 21.2501H18C18.1989 21.2501 18.3897 21.3291 18.5303 21.4698C18.671 21.6104 18.75 21.8012 18.75 22.0001C18.75 22.199 18.671 22.3898 18.5303 22.5304C18.3897 22.6711 18.1989 22.7501 18 22.7501H6C5.80109 22.7501 5.61032 22.6711 5.46967 22.5304C5.32902 22.3898 5.25 22.199 5.25 22.0001C5.25 21.8012 5.32902 21.6104 5.46967 21.4698C5.61032 21.3291 5.80109 21.2501 6 21.2501H8.65L8.84 20.3041C8.88529 20.0775 9.00768 19.8736 9.18634 19.727C9.365 19.5804 9.58891 19.5003 9.82 19.5001H11.25V15.9661C6.15 15.4861 5.212 10.0541 5.04 5.70611C4.989 4.44011 4.964 3.80611 5.44 3.22111C5.915 2.63511 6.484 2.53911 7.623 2.34711C9.06982 2.10999 10.5339 1.99392 12 2.00011ZM12.952 6.19911L12.854 6.02311C12.474 5.34011 12.284 5.00011 12 5.00011C11.716 5.00011 11.526 5.34011 11.146 6.02311L11.048 6.19911C10.94 6.39311 10.886 6.48911 10.802 6.55311C10.717 6.61711 10.612 6.64111 10.402 6.68811L10.212 6.73211C9.474 6.89911 9.105 6.98211 9.017 7.26411C8.929 7.54711 9.181 7.84111 9.684 8.42911L9.814 8.58111C9.957 8.74811 10.029 8.83111 10.061 8.93511C10.093 9.03911 10.082 9.15011 10.061 9.37311L10.041 9.57611C9.965 10.3611 9.927 10.7541 10.156 10.9281C10.386 11.1021 10.732 10.9431 11.423 10.6251L11.601 10.5431C11.798 10.4531 11.896 10.4081 12 10.4081C12.104 10.4081 12.202 10.4531 12.399 10.5431L12.577 10.6251C13.268
110.9441 13.614 11.1021 13.844 10.9281C14.074 10.7541 14.035 10.3611 13.959 9.57611L13.939 9.37311C13.918 9.15011 13.907 9.03911 13.939 8.93511C13.971 8.83211 14.043 8.74811 14.186 8.58111L14.316 8.42911C14.819 7.84111 15.071 7.54711 14.983 7.26411C14.895 6.98211 14.526 6.89911 13.788 6.73211L13.598 6.68811C13.388 6.64111 13.283 6.61811 13.198 6.55311C13.114 6.48911 13.06 6.39311 12.952 6.19911Z"})),w={tablePrimaryText:{fontSize:"14px",fontWeight:400,lineHeight:"22px",color:"text.primary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},tableSecondaryText:{fontSize:"14px",fontWeight:400,lineHeight:"22px",color:"text.secondary"},avatar:{fontSize:"14px",borderRadius:"12px"}},n3=(a,l)=>a==null?void 0:a.map(n=>({id:n.id,game:e.jsxs(r,{container:!0,flexDirection:"column",children:[e.jsx(d,{sx:w.tablePrimaryText,children:`${n.team_name} vs ${n.opposition}`}),e.jsx(d,{sx:w.tableSecondaryText,children:me(n.fixture_date_time)})]}),result:e.jsxs(r,{container:!0,gap:1.5,children:[e.jsx(d,{sx:w.tablePrimaryText,children:`${n.teamScore}-${n.oppTeamScore??0}`}),e.jsx(Tt,{label:(()=>{const c=(n==null?void 0:n.teamScore)-(n==null?void 0:n.oppTeamScore);return c>0?l("dashboard.win"):c<0?l("dashboard.loss"):l("dashboard.draw")})(),customStyles:{color:c=>F1(c.chip,n.teamScore,n.oppTeamScore,"color"),backgroundColor:c=>F1(c.chip,n.teamScore,n.oppTeamScore,"backgroundColor")}})]})})),o3=a=>a==null?void 0:a.map(l=>({id:l.id,teams:e.jsx(d,{sx:w.tablePrimaryText,children:`${l.team_name} vs ${l.opposition}`}),date:e.jsxs(r,{container:!0,flexDirection:"column",children:[e.jsx(d,{sx:w.tablePrimaryText,children:me(l.fixture_date_time)}),e.jsx(d,{sx:w.tableSecondaryText,children:ft(l.fixture_date_time)})]})})),U1=a=>a?e.jsxs(r,{container:!0,alignItems:"center",justifyContent:"center",gap:.5,sx:{backgroundColor:"#FFF5CC",p:"2px 6px",borderRadius:"8px",width:"fit-content"},children:[e.jsx(c1,{fontSize:"small",sx:{color:"#FFAB00"}}),e.jsx(d,{sx:{fontSize:"12px",fontWeight:700},children:a})]}):e.jsx(d,{sx:w.tableSecondaryText,children:"-"}),r3=(a,l)=>a==null?void 0:a.map(n=>{const c=(n==null?void 0:n.session_rating)!=null&&n.session_rating!==""?Number(n.session_rating).toFixed(1):null;return{id:n.id,name:e.jsxs(r,{container:!0,flexDirection:"column",children:[e.jsx(d,{sx:w.tablePrimaryText,children:n.session_name}),e.jsx(d,{sx:w.tableSecondaryText,children:n.team.name})]}),date:e.jsx(d,{sx:w.tablePrimaryText,children:me(n.session_date_time)}),duration:e.jsx(d,{sx:w.tablePrimaryText,children:l("dashboard.minutes",{count:n.duration})}),avg_player_rating:U1(c),session_rating:U1(mt(n))}}),i3=(a,l,n,c,t,p)=>a==null?void 0:a.map((x,E)=>{var m,D,C,j,o,f,k,P,R,H,Z,q;const g=ve(x==null?void 0:x.playerDetails.firstPosition),y=bt([x==null?void 0:x.playerPerformance],x==null?void 0:x.playerDetails.id,n),u=E+1;return{id:(m=x.playerDetails)==null?void 0:m.id,ranking:e.jsx(r,{container:!0,justifyContent:"center",alignItems:"center",sx:{width:"40px",height:"40px",borderRadius:"50%",backgroundColor:u>3?(D=c.default)==null?void 0:D.backgroundColor:(C=c[u])==null?void 0:C.backgroundColor},children:u>3?e.jsx(d,{sx:{...w.tablePrimaryText,color:(j=c.default)==null?void 0:j.color},children:u}):e.jsx(s3,{style:{fill:(o=c[u])==null?void 0:o.color}})}),name:e.jsxs(r,{container:!0,alignItems:"center",gap:2,wrap:"nowrap",minWidth:{xs:"180px",sm:"250px"},children:[e.jsx(r,{children:e.jsx(Le,{alt:(f=x==null?void 0:x.playerDetails)==null?void 0:f.name,src:`${we}/${(k=x==null?void 0:x.playerDetails)==null?void 0:k.image}`,sx:[w.avatar,g?{color:de=>{var W;return(W=de.playerCategories[g])==null?void 0:W.color},backgroundColor:de=>{var W;return(W=de.playerCategories[g])==null?void 0:W.backgroundColor}}:{}],variant:"rounded",slotProps:{img:{loading:"lazy",decoding:"async"}},children:e.jsx(d,{sx:{fontSize:"11px"},children:d1(`${(P=x==null?void 0:x.playerDetails)==null?void 0:P.name} ${(R=x==null?void 0:x.playerDetails)==null?void 0:R.surname}`)})})}),e.jsxs(r,{container:!0,direction:"column",children:[e.jsx(d,{sx:{...w.tablePrimaryText,fontWeight:600},children:`${(H=x==null?void 0:x.playerDetails)==null?void 0:H.name} ${(Z=x==null?void 0:x.playerDetails)==null?void 0:Z.surname}`}),e.jsx(d,{sx:w.tableSecondaryText,children:x==null?void 0:x.team_name})]})]}),stats:e.jsxs(d,{sx:{...w.tablePrimaryText,minWidth:"125px",textAlign:"center"}
1,children:[((q=y[jt(l)])==null?void 0:q.value)||0," ",t==="minutes"&&(p?p("dashboard.mins"):"mins")]})}}),l3=a=>a==null?void 0:a.map(l=>{const n=ve(l==null?void 0:l.position);return{id:l.fp_id,rating:e.jsxs(r,{container:!0,alignItems:"center",justifyContent:"center",gap:.5,sx:{backgroundColor:"#FFF5CC",p:"2px 2px 2px 0",height:"22px",borderRadius:"8px",width:"60px"},children:[e.jsx(c1,{fontSize:"small",sx:{color:"#FFAB00"}}),e.jsx(d,{fontSize:12,children:parseFloat(l.average_rating).toFixed(2)})]}),name:e.jsxs(r,{container:!0,alignItems:"center",gap:2,wrap:"nowrap",children:[e.jsx(r,{children:e.jsxs(Le,{alt:l.player_name,src:`${we}/${l.player_Image}`,sx:[w.avatar,n?{color:c=>{var t;return(t=c.playerCategories[n])==null?void 0:t.color},backgroundColor:c=>{var t;return(t=c.playerCategories[n])==null?void 0:t.backgroundColor}}:{}],slotProps:{img:{loading:"lazy",decoding:"async"}},children:[l.player_name.split(" ").splice(0,1).map(c=>c[0]).join("").toUpperCase(),l.player_surname.split(" ").splice(0,1).map(c=>c[0]).join("").toUpperCase()]})}),e.jsxs(r,{container:!0,direction:"column",children:[e.jsx(d,{sx:{...w.tablePrimaryText,fontWeight:600},children:`${l.player_name} ${l.player_surname}`}),e.jsx(d,{fontSize:12,color:"text.secondary",children:l.opposition})]})]}),placement:e.jsx(d,{sx:w.tablePrimaryText,children:`${l.teamName} vs ${l.opposition}`})}}),d3=a=>a==null?void 0:a.map(l=>{const n=ve(l==null?void 0:l.position);return{id:l.fp_id,name:e.jsxs(r,{container:!0,alignItems:"center",gap:2,wrap:"nowrap",children:[e.jsx(r,{children:e.jsxs(Le,{alt:l.player_name,src:`${we}/${l.player_Image}`,sx:[w.avatar,n?{color:c=>{var t;return(t=c.playerCategories[n])==null?void 0:t.color},backgroundColor:c=>{var t;return(t=c.playerCategories[n])==null?void 0:t.backgroundColor}}:{}],slotProps:{img:{loading:"lazy",decoding:"async"}},children:[l.player_name.split(" ").splice(0,1).map(c=>c[0]).join("").toUpperCase(),l.player_surname.split(" ").splice(0,1).map(c=>c[0]).join("").toUpperCase()]})}),e.jsxs(Q1,{container:!0,direction:"column",children:[e.jsx(d,{sx:{...w.tablePrimaryText,fontWeight:600},children:`${l.player_name} ${l.player_surname}`}),e.jsx(d,{sx:w.tableSecondaryText,children:l.team_name})]})]}),review:e.jsx(r,{container:!0,children:e.jsx(d,{sx:w.tablePrimaryText,children:yt(l.review_type)})}),date:e.jsx(d,{sx:w.tablePrimaryText,children:me(l.review_date_time)})}}),c3=(a,l,n)=>{const c=a==null?void 0:a.map((t,p)=>{var x,E;return{id:p,team:e.jsxs(r,{container:!0,alignItems:"center",gap:2,wrap:"nowrap",width:"180px",children:[e.jsx(r,{children:e.jsx(Le,{alt:t==null?void 0:t.name.split(" ").map(g=>g[0]).join(""),src:t!=null&&t.logo?`${we}/${t==null?void 0:t.logo}`:"",sx:[w.avatar,{borderRadius:"50%"}],slotProps:{img:{loading:"lazy",decoding:"async"}},children:t==null?void 0:t.name.split(" ").splice(0,2).map(g=>g[0]).join("").toUpperCase()})}),e.jsx(r,{flex:1,children:e.jsx(d,{sx:w.tablePrimaryText,children:t==null?void 0:t.name})})]}),gamesPlayed:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.total?t==null?void 0:t.total:0})}),wins:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.winCount?t==null?void 0:t.winCount:0})}),losses:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.lossCount?t==null?void 0:t.lossCount:0})}),draws:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.drawCount?t==null?void 0:t.drawCount:0})}),scored:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.teamScore?t==null?void 0:t.teamScore:0})}),conceded:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.oppTeamScore?t==null?void 0:t.oppTeamScore:0})}),difference:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:+(t==null?void 0:t.teamScore)-+(t==null?void 0:t.oppTeamScore)})}),biggestWin:e.jsx(r,{container:!0,justifyContent:"center",width:"200px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.biggestWin?t==null?void 0:t.biggestWin:"0"})}),biggestLoss:e.jsx(r,{container:!0,justifyContent:"center",width:"200px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.biggestLoss?t==null?void 0:t.biggestLoss:"0"})}),topScorer:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:(x=t==null?void 0:t.topScorer)!=null&&x.length?(t==null?void 0:t.topScorer.length)===1?t==null?void 0:t.topScorer:e.jsx(Ie,{title:t==null?void 0:t.topScorer.map((g,y)=>e.jsx(d,{children:g},y)),children:e.jsx(d,{variant:"button",sx:{cursor:"pointer"},children:"1+"})}):n("dashboard.none")})}),starPlayer:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:(E=t==null?void 0:t.starPlayer)!=null&&E.length?(t==null?void 0:t.starPlayer.length)===1?t==null?void 0:t.starPlayer:e.jsx(Ie,{title:t==null?void 0:t.starPlayer.map((g,y)=>e.jsx(d,{children:g},y)),children:e.jsx(d,{variant:"button",sx:{cursor:"pointer"},children:"1+"})}):n("dashboard.none")})}),possession:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.possessions?t==null?void 0:t.possessions:0})}),totalShots:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.totalshots?t==null?void 0:t.totalshots:0})}),onTarget:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.ontarget?t==null?void 0:t.ontarget:0})}),offTarget:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.offTarget?t==null?void 0:t.offTarget:0})}),blocked:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.blocked?t==null?void 0:t.blocked:0})}),passing:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.passing?t==null?void 0:t.passing:0})}),clearCutChances:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.clearCutChances?t==null?void 0:t.clearCutChances:0})}
1),corners:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.corners?t==null?void 0:t.corners:0})}),offSide:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.offsides?t==null?void 0:t.offsides:0})}),tackle:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.tackle?t==null?void 0:t.tackle:0})}),aerialDuels:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.arealDuels?t==null?void 0:t.arealDuels:0})}),foulsCommitted:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.foulsCommitted?t==null?void 0:t.foulsCommitted:0})}),foulsWon:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.foulsWon?t==null?void 0:t.foulsWon:0})}),yellowCards:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.yellowCards?t==null?void 0:t.yellowCards:0})}),redCards:e.jsx(r,{container:!0,justifyContent:"center",width:"120px",children:e.jsx(d,{sx:w.tablePrimaryText,children:t!=null&&t.redCards?t==null?void 0:t.redCards:0})})}});return l.length?c.map(t=>Ht(t,l.map(p=>p.id))):c},ae={tableHeight:{xs:"350px",md:"400px",lg:"462px"},clubStatsBtn:{display:{xs:"none",md:"inline-flex"},height:"48px",fontWeight:700,fontSize:"15px",lineHeight:"26px",color:"text.primary",border:a=>`1px solid ${a.border}`,backgroundColor:a=>a.palette.common.white,"&:hover":{backgroundColor:a=>a.palette.common.white,backgroundColor:"#f5f5f5"}},buttonSelect:{"&:hover":{backgroundColor:a=>`${a.legend}40`}}};function Y1(a,l){const n=(a==null?void 0:a.start_date)||(l==null?void 0:l.season_start_date),c=(a==null?void 0:a.end_date)||(l==null?void 0:l.season_end_date);return!n||!c?{startDate:"",endDate:""}:{startDate:me(Pt(n)),endDate:me(Et(c))}}const We=(a,l)=>{if(!l||l===0)return a>0?"+100":null;const n=(a-l)/l*100;return n>0?`+${n.toFixed(0)}`:n.toFixed(0)};function sa({setActiveTab:a}){var H1,M1,S1,v1,V1,T1;const{t:l}=A("common"),{t:n}=A("dugout"),c=wt(),t=Gt();q1();const p=Y5(n),x=J5(n),E=q5(n),g=Q5(n),y=X5(n),u=G1(n),m=Se(i=>{var h;return(h=i==null?void 0:i.teams)==null?void 0:h.team}),[D]=Lt(),C=Se(i=>i==null?void 0:i.club),j=kt(),{currentSeason:o,isAllSeasonSelected:f,allSeasons:k}=J1(),P=Se(i=>(i==null?void 0:i.tableColumns.dashboardClubStats)||[]),[R]=C5(Nt),[H,Z]=s.useState(!1),[q,de]=s.useState([]),[W,te]=s.useState(0),[$e,e2]=s.useState(0),[Be,t2]=s.useState(10),[h1,Ge]=s.useState(0),[ce,a2]=s.useState([]),[Ne,s2]=s.useState(0),[Oe,n2]=s.useState(10),[se,o2]=s.useState([]),[x1,Ve]=s.useState(0),[Te,r2]=s.useState(0),[Ke,i2]=s.useState(10),[ne,l2]=s.useState([]),[C1,Fe]=s.useState(0),[Ue,d2]=s.useState(0),[Ye,c2]=s.useState(10),[oe,h2]=s.useState([]),[Je,qe]=s.useState(0),[Qe,x2]=s.useState(0),[_e,C2]=s.useState(10),[he,g2]=s.useState("minutes"),[xe,p2]=s.useState([]),[g1,Xe]=s.useState(0),[e1,u2]=s.useState(0),[t1,f2]=s.useState(10),[v,m2]=s.useState(null),[re,a1]=s.useState(null),[ke,b2]=s.useState([]),[p1,u1]=s.useState(0),[j2,y2]=s.useState(0),[s1,w2]=s.useState(10),[L2,k2]=s.useState(()=>B1(n)),[f1,D2]=s.useState([]),[Ce,E2]=s.useState({totalMatches:0,totalWins:0,totalLosses:0,totalDraws:0}),[T,m1]=s.useState(()=>Y1(o,C)),[P2,H2]=s.useState("Default Range"),[M2,b1]=s.useState(!1),[z,j1]=s.useState([]),S2={1:{color:"#FFAB00",backgroundColor:"#FFF5CC"},2:{color:Kt[500],backgroundColor:"#F4F6F8"},3:{color:"#FFA500",backgroundColor:"#FFE9D5"},default:{color:"#00367F",backgroundColor:"#D0E4FF"}},y1=s.useCallback(async()=>{const i=window.location.href;a(i)},[window.location.href]),{data:$,refetch:v2,loading:V2}=ee(_1,{variables:{club_id:j==null?void 0:j.club_id,offset:W*Be,limit:Be,team_ids:m.join(),start_date:new Date(T.startDate).getTime()||0,end_date:new Date(T.endDate).getTime()||0,...f?{}:{season_id:o==null?void 0:o.id}},fetchPolicy:"no-cache",skip:!m.length||!(o!=null&&o.id)}),{data:Q,refetch:T2,loading:n1}=ee(_1,{variables:{club_id:j==null?void 0:j.club_id,team_ids:m.join(),start_date:new Date(T.startDate).getTime()||0,end_date:new Date(T.endDate).getTime()||0,...f?{}:{season_id:o==null?void 0:o.id}},fetchPolicy:"no-cache",skip:!m.length||!(o!=null&&o.id)}),{data:O,refetch:F2,loading:o1}=ee(At,{variables:{club_id:j==null?void 0:j.club_id,offset:h1*Oe,limit:Oe,team_ids:m.join(),start_date:new Date(T.startDate).getTime()||0,end_date:new Date(T.endDate).getTime()||0,...f?{}:{season_id:o==null?void 0:o.id}},skip:!m.length||!(o!=null&&o.id),fetchPolicy:"no-cache"}),{data:B,refetch:_2,loading:w1}=ee(Rt,{variables:{club_id:j==null?void 0:j.club_id,offset:C1*Ye,limit:Ye,team_ids:(m==null?void 0:m.join())||"",...f?{}:{season_id:o==null?void 0:o.id}},skip:!m.length||!(o!=null&&o.id),fetchPolicy:"no-cache"}),{data:I,refetch:L1,loading:k1}=ee(Wt,{variables:{playersListWithDetailsInput:{teamIds:m!=null&&m.length?m:[],sortBy:he,offset:Je*_e,limit:_e,startDate:new Date(T.startDate).getTime().toString(),endDate:new Date(T.endDate).getTime().toString(),...f?{}:{season_id:o==null?void 0:o.id}}},skip:!m.length||!(o!=null&&o.id),fetchPolicy:"no-cache"}),{data:G,refetch:Z2,loading:A2}=ee(zt,{variables:{club_id:j==null?void 0:j.club_id,start_date:new Date(T.startDate).getTime()||0,end_date:new Date(T.endDate).getTime()||0,offset:g1*t1,limit:t1,team_ids:(m==null?void 0:m.join())||"",...f?{}:{season_id:o==null?void 0:o.id}},skip:!m.length||!(o!=null&&o.id),fetchPolicy:"no-cache"}),{data:r1,refetch:R2}=ee(It,{variables:{clubPlayerAttendanceInput:{teamIds:m,startDate:new Date(T.startDate).getTime().toString(),endDate:new Date(T.endDate).getTime().toString(),...f?{}:{season_id:o==null?void 0:o.id}}},skip:!m.length||!(o!=null&&o.id),fetchPolicy:"no-cache"}),{data:ie,loading:be,refetch:W2}=ee(Z1,{variables:{clubStatsInput:{limit:s1,offset:p1*s1,teamIds:m,startDate:new Date(T.startDate).getTime().toString(),endDate:new Date(T.endDate).getTime().toString(),...f?{}:{season_id:o==null?void 0:o.id}}},skip:!m.length||!(o!=null&&o.id),fetchPolicy:"no-cache"}),[z2]=g5(Z1,{fetchPolicy:"no-cache"}),{data:Ze,loading:I2}=ee($t,{variables:{club_id:j==null?void 0:j.club_id,offset:0,limit:50,team_ids:m,status:"past",startDate:T.startDate,endD
1ate:T.endDate,includePlayerObjectives:!1,...f?{}:{season_id:o==null?void 0:o.id}},skip:!m.length||!(o!=null&&o.id),fetchPolicy:"no-cache"}),{data:K,refetch:$2,loading:D1}=ee(Bt,{variables:{sessionInput:{team_ids:m,start_date:new Date(T.startDate).getTime()||0,end_date:new Date(T.endDate).getTime()||0,offset:x1*Ke,limit:Ke,...f?{}:{season_id:o==null?void 0:o.id}}},skip:!m.length||!(o!=null&&o.id),fetchPolicy:"no-cache"});s.useEffect(()=>{$2(),W2(),R2(),Z2(),L1(),_2(),F2(),v2(),T2()},[m,T,o==null?void 0:o.id]),s.useEffect(()=>{o&&(m1(Y1(o,C)),qe(0),te(0),Ge(0),Ve(0),Fe(0),Xe(0),Fe(0),Ve(0))},[o==null?void 0:o.id,o==null?void 0:o.start_date,o==null?void 0:o.end_date]),s.useEffect(()=>{if(ke){const i=ke.reduce((h,{total:b,winCount:L,teamScore:X,oppTeamScore:De})=>(h.totalGamePlayed+=b,h.totalGameWon+=L,h.totalGoalsScored+=X,h.totalGoalsConceded+=De,h),{totalGamePlayed:0,totalGameWon:0,totalGoalsScored:0,totalGoalsConceded:0});m2(i)}},[ke]),s.useEffect(()=>{if(!(o!=null&&o.id)||!m.length||f){a1(null);return}const i=k.filter(L=>L.id!=="all"),h=i.findIndex(L=>L.id===o.id),b=h>=0&&h<i.length-1?i[h+1]:null;if(!b){a1(null);return}z2({variables:{clubStatsInput:{limit:100,offset:0,teamIds:m,startDate:new Date(b.start_date).getTime().toString(),endDate:new Date(b.end_date).getTime().toString(),season_id:b.id}}}).then(({data:L})=>{var X;if((X=L==null?void 0:L.getClubStats)!=null&&X.data){const De=L.getClubStats.data.reduce((le,{total:Ae,winCount:Ct,teamScore:gt,oppTeamScore:pt})=>(le.totalGamePlayed+=Ae,le.totalGameWon+=Ct,le.totalGoalsScored+=gt,le.totalGoalsConceded+=pt,le),{totalGamePlayed:0,totalGameWon:0,totalGoalsScored:0,totalGoalsConceded:0});a1(De)}})},[o==null?void 0:o.id,m,f,k]),s.useEffect(()=>{z!=null&&z.length&&z.length!==(P==null?void 0:P.length)?c(l1(z.map(i=>i.id))):P!=null&&P.length||c(l1(u.map(i=>i.id)))},[z,P]),s.useEffect(()=>{if(P!=null&&P.length&&!(z!=null&&z.length)){const i=P.map(h=>u.find(b=>b.id===h)).filter(Boolean);j1(i)}},[P]),s.useEffect(()=>{y1()},[y1]),s.useEffect(()=>{var i,h;if($!=null&&$.pastFixturesList){const{success:b}=$==null?void 0:$.pastFixturesList;if(b){const L=JSON.parse((i=$==null?void 0:$.pastFixturesList)==null?void 0:i.data);L&&(e2((h=$==null?void 0:$.pastFixturesList)==null?void 0:h.totalRecords),de(L))}}},[$]),s.useEffect(()=>{var i;if(Q!=null&&Q.pastFixturesList){const{success:h}=Q==null?void 0:Q.pastFixturesList;if(h){const b=JSON.parse((i=Q==null?void 0:Q.pastFixturesList)==null?void 0:i.data);if(b){const L=ot(b);E2(L),D2(b)}}}},[Q]),s.useEffect(()=>{var h,b;if(O){var{success:i}=O==null?void 0:O.upcomingFixturesList;if(i){const L=JSON.parse((h=O==null?void 0:O.upcomingFixturesList)==null?void 0:h.data);s2((b=O==null?void 0:O.upcomingFixturesList)==null?void 0:b.totalRecords),a2(L)}}},[O]),s.useEffect(()=>{var i,h;if(B!=null&&B.playersRatingList){const{success:b}=B==null?void 0:B.playersRatingList;if(b){const L=JSON.parse((i=B==null?void 0:B.playersRatingList)==null?void 0:i.data),X=(L==null?void 0:L.length)>0;d2(X?(h=B==null?void 0:B.playersRatingList)==null?void 0:h.totalRecords:0),l2(X?L:[])}}},[B]),s.useEffect(()=>{he&&L1()},[he,Je,_e]),s.useEffect(()=>{var i,h,b,L;I&&(i=I==null?void 0:I.playersListWithDetails)!=null&&i.success&&(h=I==null?void 0:I.playersListWithDetails)!=null&&h.data&&(h2((b=I==null?void 0:I.playersListWithDetails)==null?void 0:b.data),x2((L=I==null?void 0:I.playersListWithDetails)==null?void 0:L.metadata.totalPlayers))},[I]),s.useEffect(()=>{var i,h;if(G!=null&&G.playerReviewsList){let b=[];const{success:L}=G==null?void 0:G.playerReviewsList;L&&(b=JSON.parse((i=G==null?void 0:G.playerReviewsList)==null?void 0:i.data),b&&(u2((h=G==null?void 0:G.playerReviewsList)==null?void 0:h.totalRecords),p2(b)))}},[G]),s.useEffect(()=>{var i,h;if(K){let b=[];const{success:L}=K==null?void 0:K.dashboardSessionList;L&&(b=(i=K==null?void 0:K.dashboardSessionList)==null?void 0:i.sessions,b&&(r2((h=K==null?void 0:K.dashboardSessionList)==null?void 0:h.totalRecords),o2(b)))}},[K]),s.useEffect(()=>{var i,h;ie&&(b2((i=ie==null?void 0:ie.getClubStats)==null?void 0:i.data),y2((h=ie==null?void 0:ie.getClubStats)==null?void 0:h.data.length))},[ie]);const B2=(i,h)=>{qe(h)},G2=(i,h)=>{te(h)},N2=(i,h)=>{Ve(h)},O2=(i,h)=>{Ge(h)},K2=(i,h)=>{Fe(h)},U2=()=>{b1(!0)},E1=()=>{b1(!1)},Y2=(i,h)=>{Xe(h)},J2=i=>{const[h,b]=i;m1({startDate:h,endDate:b})},q2=async i=>{var h;try{if(i!==(C==null?void 0:C.notification)){Z(!0);const b=await R({variables:{id:C==null?void 0:C.id,field:"notification",value:i}}),{success:L}=(h=b==null?void 0:b.data)==null?void 0:h.updateClub;L&&(c(Dt({...C,notification:i})),D({msg:n("dashboard.adminMessage.updatedSuccessfully"),variant:"success"})),Z(!1)}}catch{D({msg:l("exception"),variant:"error"}),Z(!1)}},Q2=i=>{t2(+i.target.value),te(0)},X2=i=>{n2(+i.target.value),Ge(0)},et=i=>{i2(+i.target.value),Ve(0)},tt=i=>{C2(+i.target.value),qe(0)},at=i=>{c2(+i.target.value),Fe(0)},st=i=>{f2(+i.target.value),Xe(0)},nt=i=>{w2(+i.target.value),u1(0)},ot=i=>{let h=0,b=0,L=0,X=0;for(const De of i){h++;const{teamScore:le,oppTeamScore:Ae}=De;le>Ae?b++:le<Ae?L++:X++}return{totalMatches:h,totalWins:b,totalLosses:L,totalDraws:X}},rt=(i,h)=>{u1(h)},i1=(i=[...G1(n)])=>{const h=[...i];return Zt(h,b=>b.draggable===!0)},it=i=>
1{const h=u.find(L=>L.draggable===!1),b=[...i];b.unshift(h),j1(b),c(l1([...b.map(L=>L.id)])),E1()},lt=i=>{let h=[...B1(n)];g2(i);const b=h.map(L=>L.id==="stats"?{...L,label:Ee[i].label}:L);k2(b)},P1=(i,h)=>{const b=h==null?void 0:h[i];b!=null&&b.id&&t(`/dugout/fixture/${b.id}`)},dt=i=>{const h=se==null?void 0:se[i];h!=null&&h.id&&t(`/dugout/session/${h.id}`)},ct=i=>{var b;const h=oe==null?void 0:oe[i];(b=h==null?void 0:h.playerDetails)!=null&&b.id&&t(`/dugout/player/${h.playerDetails.id}`)},ht=i=>{const h=ne==null?void 0:ne[i];h!=null&&h.player_id&&t(`/dugout/player/${h.player_id}`)},xt=i=>{const h=xe==null?void 0:xe[i];h!=null&&h.player_id&&t(`/dugout/player/${h.player_id}`)};return e.jsxs(V,{children:[e.jsx(Ot,{title:n("dashboard.welcome",{username:j==null?void 0:j.username}),showSecondaryBtn:!1,showPrimaryBtn:!1,rightCustomElement:e.jsx(r,{container:!0,children:e.jsx(r,{flex:1,children:e.jsx(Ft,{onChange:J2,value:[T.startDate,T.endDate],selectedRange:P2,setSelectedRange:H2})})})}),e.jsxs(r,{container:!0,p:{xs:"16px",sm:"24px"},height:"calc(100% - 99px)",gap:3,children:[e.jsx(r,{size:12,children:e.jsx(M5,{loading:H,updateAdminMessage:q2,isAdmin:(j==null?void 0:j.isSuperAdmin)||(j==null?void 0:j.isAdmin)})}),e.jsx(r,{size:12,children:e.jsx(e3,{playersCount:Qe,upcomingFixturesCount:Ne,pastFixturesCount:$e,upcomingSessionsCount:Te,sessionsCount:Te,objectivesCount:0,ratingsCount:Ue,reviewsCount:e1,navigate:t})}),e.jsx(t3,{players:Qe,upcomingFixtures:Ne,pastFixtures:$e,sessions:Te,ratings:Ue,reviews:e1}),e.jsx(r,{size:12,children:e.jsx(a3,{upcomingFixtures:ce,upcomingSessions:se,fixturesLoading:o1,sessionsLoading:D1,onFixtureClick:i=>i&&t(`/dugout/fixture/${i}`),onSessionClick:i=>i&&t(`/dugout/session/${i}`)})}),e.jsx(r,{size:12,children:e.jsxs(r,{container:!0,spacing:{xs:2,sm:3},justifyContent:"space-between",children:[e.jsx(r,{size:{xs:6,md:6,lg:2},children:e.jsx(je,{count:(v==null?void 0:v.totalGamePlayed)||0,title:n("dashboard.gamesPlayed"),loading:be,icon:e.jsx(u5,{}),rate:re?We((v==null?void 0:v.totalGamePlayed)||0,re.totalGamePlayed):void 0})}),e.jsx(r,{size:{xs:6,md:6,lg:2},children:e.jsx(je,{count:(v==null?void 0:v.totalGameWon)||0,title:n("dashboard.gamesWon"),loading:be,icon:e.jsx(R1,{}),rate:re?We((v==null?void 0:v.totalGameWon)||0,re.totalGameWon):void 0})}),e.jsx(r,{size:{xs:6,md:6,lg:2},children:e.jsx(je,{count:Ce.totalMatches>0?Math.round(Ce.totalWins/Ce.totalMatches*100):0,percentage:!0,title:n("dashboard.winRate"),loading:n1,icon:e.jsx(R1,{})})}),e.jsx(r,{size:{xs:6,md:6,lg:2},children:e.jsx(je,{count:(v==null?void 0:v.totalGoalsScored)||0,title:n("dashboard.goalsScored"),loading:be,icon:e.jsx(f5,{}),rate:re?We((v==null?void 0:v.totalGoalsScored)||0,re.totalGoalsScored):void 0})}),e.jsx(r,{size:{xs:6,md:6,lg:2},children:e.jsx(je,{count:(v==null?void 0:v.totalGoalsConceded)||0,title:n("dashboard.goalsConceded"),loading:be,icon:e.jsx(m5,{}),rate:re?We((v==null?void 0:v.totalGoalsConceded)||0,re.totalGoalsConceded):void 0})}),e.jsx(r,{size:{xs:12,md:12,lg:2},children:e.jsx(je,{count:Number((v1=(S1=(M1=(H1=r1==null?void 0:r1.getClubSessionPlayerAttendance)==null?void 0:H1.data)==null?void 0:M1.filter(i=>i.sessionsCount>0))==null?void 0:S1.reduce((i,h,b,L)=>i+h.attendancePercentage/L.length,0))==null?void 0:v1.toFixed(2))||0,percentage:!0,title:n("dashboard.playerAttendance"),loading:be,icon:e.jsx(b5,{})})})]})}),e.jsxs(r,{container:!0,spacing:3,size:12,children:[e.jsx(r,{size:{xs:12,md:4},children:e.jsx(I5,{playerStatList:oe,selectedTeams:m,loading:k1,onClick:i=>i&&t(`/dugout/player/${i}`)})}),e.jsx(r,{size:{xs:12,md:4},children:e.jsx(W5,{playersRatingList:ne,loading:w1,onClick:i=>i&&t(`/dugout/player/${i}`)})}),e.jsx(r,{size:{xs:12,md:4},children:e.jsx(B5,{currentSeason:o})})]}),e.jsx(r,{size:12,children:e.jsx(U5,{fixtures:ce,loading:o1,onClick:i=>i&&t(`/dugout/fixture/${i}`)})}),e.jsxs(r,{container:!0,spacing:3,size:12,children:[f1.length>0&&e.jsx(r,{size:{xs:12,lg:6},children:e.jsx(v5,{fixtures:f1,loading:n1})}),((T1=(V1=Ze==null?void 0:Ze.sessionListing)==null?void 0:V1.data)==null?void 0:T1.length)>=2&&e.jsx(r,{size:{xs:12,lg:6},children:e.jsx(Z5,{sessions:Ze.sessionListing.data,loading:I2})})]}),e.jsxs(r,{container:!0,spacing:3,size:12,children:[e.jsx(r,{height:ae.tableHeight,size:{xs:12,md:6,lg:4},children:e.jsx(ge,{title:n("dashboard.results"),loading:V2,count:$e,rowsPerPage:Be,page:W,headCells:p,tableData:n3(q!=null&&q.length?q:[],n),handleChangePage:G2,handleChangeRowsPerPage:Q2,isRowClickable:!0,handleRowClick:i=>P1(i,q),emptyStatElement:e.jsx(pe,{icon:y5,primaryText:n("dashboard.noGames"),secondaryText:n("dashboard.noGamesList"),actionText:n("dashboard.scheduleFixture"),onAction:()=>t("/dugout/fixtures")})})}),e.jsx(r,{height:ae.tableHeight,size:{xs:12,md:6,lg:4},children:e.jsx(p5,{loading:n1,doughnutText:Ce.totalMatches,doughnutData:{won:Ce.totalWins,loss:Ce.totalLosses,draw:Ce.totalDraws}})}),e.jsx(r,{height:ae.tableHeight,size:{xs:12,md:6,lg:4},children:e.jsx(ge,{title:n("dashboard.upcomingFixtures"),rowsPerPage:Oe,page:h1,count:Ne,loading:o1,headCells:x,tableData:o3(ce!=null&&ce.length?ce:[]),handleChangePage:O2,handleChangeRowsPerPage:X2,isRowClickable:!0,handleRowClick:i=>P1(i,ce),emptyStatElement:e.jsx(pe,{icon:j5,primaryText:n("dashboard.noUpcomingFixtures"),secondaryText:n("dashboard.noUpcomingFixturesList"),actionText:n("dashboard.scheduleFixture"),onAction:()=>t("/dugout/fixtures")})})}),e.jsx(r,{height:ae.tableHeight,size:{xs:12,md:6},children:e.jsx(ge,{title:n("dashboard.upcomingSessions"),page:x1,count:Te,rowsPerPage:Ke,loading:D1,headCells:E,tableData:r3(se!=null&&se.length?se:[],n),handleChangePage:N2,handleChangeRowsPerPage:et,isRowClickable:!0,handleRowClick:dt,emptyStatElement:e.jsx(pe,{icon:w5,primaryText:n("dashboard.noSessionsScheduled"),secondaryText:n("dashboard.noSessionsHint"),actionText:n("dashboard.planSession"),onAction:()=>t("/dugout/sessions")})})}),e.jsx(r,{height:ae.tableHeight,size:{xs:12,md:6},children:e.jsx(ge,{page:Je,title:n("dashboard.playerStats"),count:Qe,loading:k1,rowsPerPage:_e,headCells:L2,headerPadding:"24px 24px 14px 24px",handleChangePage:B2,handleChangeRowsPerPage:tt,isRowClickable:!0,handleRowClick:ct,tableData:i3(oe!=null&&oe.length?oe:[],Ee[he].label,m,S2,he,n),rightElement:e.jsx(e.Fragment,{children:e.jsx(_t,{showIcon:!0,text:Ee[he].label,buttonIcon:e.jsx(vt,{}),selectedMenuItemId:he,menuItems:Object.keys(Ee).map(i=>({id:i,name:Ee[i].label,icon:!0,onClick:()=>lt(i)})),buttonCustomStyles:ae.buttonSelect})}),emptyStatElement:e.jsx(pe,{icon:L5,primaryText:n("dashboard.noPlayerStats"),secondaryText:n("dashboard.noPlayerStatsHint"),actionText:n("dashboard.addPlayers"),onAction:()=>t("/dugout/players")})})}),e.jsx(r,{height:ae.tableHeight,size:{xs:12,md:6},children:e.jsx(ge,{title:n("dashboard.avgPlayerRatings"),page:C1,loading:w1,count:Ue,rowsPerPage:Ye,headCells:g,tableData:l3(ne!=null&&ne.length?ne:[]),handleChangePage:K2,handleChangeRowsPerPage:at,isRowClickable:!0,handleRowClick:ht,emptyStatElement:e.jsx(pe,{icon:k5,primaryText:n("dashboard.noRatingsYet"),secondaryText:n("dashboard.ratePlayersHint")})})}),e.jsx(r,{height:ae.tableHeight,size:{xs:12,md:6},children:e.jsx(ge,{title:n("dashboard.playerReviews"),page:g1,count:e1,loading:A2,headCells:y,rowsPerPage:t1,tableData:d3(xe!=null&&xe.length?xe:[]),handleChangePage:Y2,handleChangeRowsPerPage:st,isRowClickable:!0,handleRowClick:xt,emptyStatElement:e.jsx(pe,{icon:D5,primaryText:n("dashboard.noReviews"),secondaryText:n("dashboard.writeReviewsHint"),actionText:n("dashboard.viewPlayers"),onAction:()=>t("/dugout/players")})})}),e.jsx(r,{height:{xs:"450px",md:"600px",lg:"800px"},size:12,children:e.jsx(ge,{count:j2,page:p1,tableStickyColumn:!0,title:n("dashboard.clubStats"),loading:be,tableStickyPagination:!0,rowsPerPage:s1,headCells:z.length?z:u,handleChangePage:rt,handleChangeRowsPerPage:nt,tableData:c3(ke||null,z,n),rightElement:e.jsx(ze,{text:n("dashboard.manageColumns"),startIcon:e.jsx(Mt,{}),customStyles:ae.clubStatsBtn,onClick:U2}),emptyStatElement:e.jsx(pe,{icon:E5,primaryText:n("dashboard.clubStatistics"),secondaryText:n("dashboard.clubStatsHint")})})})]})]}),e.jsx(St,{isModalOpen:M2,tableColumns:i1(),handleSaveChanges:it,handleCloseModal:E1,selectedTableColumns:z.length?
1i1(z):i1()})]})}export{sa as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.