PageSourceSearch

https://slicetoken.io/_next/static/chunks/pages/player-application/[uuid]-6f1d7705fdd2e615.js

js slicetoken.io collected 2026-10-05 09:48:26 UTC 30,424 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8966],{90490:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/player-application/[uuid]",function(){return n(86770)}])},94877:function(e,t,n){"use strict";var a=n(85893),r=n(99553),o=n(39478);t.Z=e=>{let{placeholder:t,options:n,formatOptionLabel:l,controlWidth:s,menuListWidth:i,...c}=e,d=(0,o.S)({base:"12px"});return(0,a.jsx)(r.Ph,{style:{"--focus-color":"#9627BB"},cursor:"pointer",options:n,placeholder:t,chakraStyles:{control:(e,t)=>({...e,borderColor:t.isFocused?"#9627BB":e.borderColor,"&:focus":{borderColor:"#9627BB"},fontSize:d,fontWeight:"400",color:"#39405D",cursor:"pointer",bgColor:"#FFFFFF",width:s}),singleValue:e=>({...e,fontWeight:"400",fontSize:d}),option:(e,t)=>({...e,backgroundColor:t.isFocused?"#ECEAF7":"#FFFFFF",color:"#39405D",fontSize:d,fontWeight:"400",padding:"10px",borderBottom:"1px solid #8D9EB2"}),menu:e=>({...e,focusBorderColor:"#9627BB",borderRadius:"1px",boxShadow:"lg",width:i}),menuList:e=>({...e,focusBorderColor:"#9627BB",padding:"0px",width:i,borderColor:"#8D9EB2","&::-webkit-scrollbar":{width:"2px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#171923",height:"34px"}}),dropdownIndicator:e=>({...e,backgroundColor:"#FFFFFF",padding:"8px",color:"#8D9EB2"}),indicatorSeparator:e=>({...e,display:"none"})},formatOptionLabel:l,...c})}},61794:function(e,t,n){"use strict";n.d(t,{F:function(){return p},J:function(){return d}});var a=n(9669),r=n.n(a),o=n(18975),l=n(6655),s=n(41086);o.registerLocale(l),o.registerLocale(s);let i="".concat("https://api.slicetoken.io/api","/")+"countries",c=async(e,t)=>{let n;try{n={data:(await r().get(e,{params:t})).data}}catch(e){e.response?(console.log(e.response),n={error:"Error "+e.response.status,message:e.response.statusText}):e.request?(console.log(e.request),n={error:e.request}):(console.log("Error",e.message),n={error:e.message})}return n},d=async()=>c(i),p=(e,t)=>o.getName(null==e?void 0:e.toUpperCase(),t)||"-"},65912:function(e,t,n){"use strict";n.d(t,{LA:function(){return p},P4:function(){return c},Pq:function(){return h},Tj:function(){return s},WU:function(){return i},gn:function(){return x},iG:function(){return d},r9:function(){return u},wR:function(){return l},y3:function(){return o}});var a=n(5068),r=n(76677);function o(e,t,n,a,o,l){let s=new URLSearchParams({});null!=n&&""!==n&&s.append("country",n),null!=t&&s.append("sport",t),null!=l&&s.append("extra",l),null!=a&&s.append("ordering",a),null!=o&&s.append("name",o),s.sort();let i=s.toString(),c="".concat("https://api.slicetoken.io/api","/players/").concat(i?"?".concat(i):""),d=(0,r.Z)(e,c,50);return{players:d.items,playersLoading:d.isLoading,playersLoadingMore:d.isLoadingMore,playersError:d.error,playersHasMore:d.hasMore,loadMorePlayers:d.loadMore}}function l(e,t,n,r,o,l){let s=new URLSearchParams({});null!=n&&""!==n&&s.append("country",n),null!=t&&s.append("sport",t),null!=l&&s.append("extra",l),null!=r&&s.append("ordering",r),null!=o&&s.append("name",o),s.sort();let i=s.toString(),{data:c,error:d,isLoading:p}=(0,a.ZP)("".concat("https://api.slicetoken.io/api","/players/?").concat(i),e);return{players:null==c?void 0:c.data,playersLoading:p,playersError:d}}function s(e){var t;let{data:n,error:r,isLoading:o}=(0,a.ZP)("".concat("https://api.slicetoken.io/api","/players/featured/"),e);return{players:null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.results,playersLoading:o,playersError:r}}function i(e,t,n,r){let o=new URLSearchParams({});null!=n&&o.append("ordering",n),null!=r&&o.append("name",r),o.sort();let l=o.toString(),{data:s,error:i,isLoading:c}=(0,a.ZP)("".concat("https://api.slicetoken.io/api","/funds/?").concat(l),e);return{funds:t?null==s?void 0:s.data.filter(e=>e.outstanding_player):null==s?void 0:s.data,fundsLoading:c,fundsError:i}}function c(e,t){let n=new URLSearchParams({});null!=t&&n.append("name",t),n.sort();let r=n.toString(),{data:o,error:l,isLoading:s,mutate:i}=(0,a.ZP)("".concat("https://api.slicetoken.io/api","/community-funds/?").concat(r),e);return{fundsList:null==o?void 0:o.data,fundsLoading:s,fundsError:l,mutate:i}}function d(e,t){let n=new URLSearchParams({});null!=t&&n.append("name",t),n.sort();let r=n.toString(),{data:o,error:l,isLoading:s,mutate:i}=(0,a.ZP)("".concat("https://api.slicetoken.io/api","/community-players/?").concat(r),e);return{playersList:null==o?void 0:o.data,playersLoading:s,playersError:l,mutate:i}}function p(e,t){let{data:n,error:r,isLoading:o}=(0,a.ZP)("".concat("https://api.slicetoken.io/api","/tournaments/").concat(t,"/participations"),e);return{latestResults:null==n?void 0:n.data,latestResultsLoading:o,latestResultsError:r}}function u(e,t){let{data:n,error:r,isLoading:o}=(0,a.ZP)("".concat("https://api.slicetoken.io/api","/funds/").concat(t,"/latest-returns"),e);return{latestReturns:null==n?void 0:n.data,latestReturnsLoading:o,latestReturnsError:r}}function h(e,t,n,r){let o=new URLSearchParams({});o.append("status","0"),null!=n&&o.append("search",n),null!=t&&o.append("name",t),null!=r&&o.append("best",r),o.sort(),o.toString();let{data:l,error:s,isLoading:i}=(0,a.ZP)("".concat("https://api.slicetoken.io/api","/secondary-market/orders/?").concat(o),e);return{orders:null==l?void 0:l.data,ordersLoading:i,ordersError:s}}function x(e,t){let{data:n,error:r,isLoading:o}=(0,a.ZP)(t?"".concat("https://api.slicetoken.io/api","/tokens/player
1-applications/").concat(t,"/"):null,e);return{playerApplication:null==n?void 0:n.data,playerApplicationLoading:o,playerApplicationError:r}}},86770:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var a=n(85893),r=n(12562),o=n(13526),l=n(19486),s=n(32761),i=n(49246),c=n(22297),d=n(96863),p=n(58987),u=n(92578),h=n(94910),x=n(56369),m=n(67421),f=n(67294),g=n(99808),j=n(11163),y=n(9410),b=n(63239),v=n(98559),S=n(9134),_=n(61794),C=n(94877);let z={"--focus-color":"#9627BB"},k=e=>{let{title:t,data:n,setData:r,isPlayer:o=!1}=e,{t:l}=(0,m.$G)("player-application"),[i,d]=(0,f.useState)(null),p={style:z,fontSize:"12px",_placeholder:{color:"#8D9EB2",fontSize:"12px"}};(0,f.useEffect)(()=>{(0,_.J)().then(e=>{e.error||d(e.data)})},[]);let h=i?i.map(e=>({label:e.name,value:e.id})):[],x=[{label:l("personal.playingHandOptions.right"),value:"right"},{label:l("personal.playingHandOptions.left"),value:"left"}],g=[{label:l("personal.backhandOptions.twoHanded"),value:"two_handed"},{label:l("personal.backhandOptions.oneHanded"),value:"one_handed"}],j=e=>t=>r({...n,[e]:t.target.value}),k=e=>t=>{var a;return r({...n,[e]:null!==(a=null==t?void 0:t.value)&&void 0!==a?a:null})};return(0,a.jsxs)(s.x,{mb:8,p:5,borderWidth:"1px",borderRadius:"lg",borderColor:"gray.200",children:[(0,a.jsx)(c.X,{size:"sm",mb:5,color:"brand.Jacarta",textTransform:"uppercase",letterSpacing:"wider",children:t}),(0,a.jsxs)(y.r,{templateColumns:{base:"1fr",md:"1fr 1fr"},gap:4,children:[(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.lastName")}),(0,a.jsx)(v.I,{value:n.lastName||"",onChange:j("lastName"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.firstName")}),(0,a.jsx)(v.I,{value:n.firstName||"",onChange:j("firstName"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.nationality")}),(0,a.jsx)(C.Z,{options:h,value:h.find(e=>String(e.value)===String(n.nationality))||null,onChange:k("nationality"),placeholder:"",formatOptionLabel:null,controlWidth:"100%",menuListWidth:"100%"})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l(o?"personal.idPassport":"personal.idNumber")}),(0,a.jsx)(v.I,{value:n.idNumber||"",onChange:j("idNumber"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.email")}),(0,a.jsx)(v.I,{type:"email",value:n.email||"",onChange:j("email"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.phoneNumber")}),(0,a.jsx)(v.I,{type:"tel",value:n.phoneNumber||"",onChange:j("phoneNumber"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.dateOfBirth")}),(0,a.jsx)(v.I,{type:"date",value:n.dateOfBirth||"",onChange:j("dateOfBirth"),...p})]})]}),(0,a.jsx)(u.Z,{my:4}),(0,a.jsx)(S.x,{fontSize:"13px",fontWeight:"700",mb:4,color:"gray.600",children:l("personal.address")}),(0,a.jsxs)(y.r,{templateColumns:{base:"1fr",md:"1fr 1fr"},gap:4,children:[(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.streetAddress")}),(0,a.jsx)(v.I,{value:n.streetAddress||"",onChange:j("streetAddress"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.city")}),(0,a.jsx)(v.I,{value:n.city||"",onChange:j("city"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.stateProvince")}),(0,a.jsx)(v.I,{value:n.stateProvince||"",onChange:j("stateProvince"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.country")}),(0,a.jsx)(C.Z,{options:h,value:h.find(e=>String(e.value)===String(n.country))||null,onChange:k("country"),placeholder:"",formatOptionLabel:null,controlWidth:"100%",menuListWidth:"100%"})]})]}),o&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.Z,{my:4}),(0,a.jsx)(S.x,{fontSize:"13px",fontWeight:"700",mb:4,color:"gray.600",children:l("personal.playerDetails")}),(0,a.jsxs)(y.r,{templateColumns:{base:"1fr",md:"1fr 1fr"},gap:4,children:[(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.tourProfileLink")}),(0,a.jsx)(v.I,{type:"url",value:n.tourProfileLink||"",onChange:j("tourProfileLink"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.height")}),(0,a.jsx)(v.I,{value:n.height||"",onChange:j("height"),placeholder:l("personal.heightPlaceholder"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.playingHand")}),(0,a.jsx)(C.Z,{options:x,value:x.find(e=>e.value===n.playingHand)||null,onChange:k("playingHand"),placeholder:"",formatOptionLabel:null,controlWidth:"100%",menuListWidth:"100%"})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.backhand")}),(0,a.jsx)(C.Z,{options:g,value:g.find(e=>e.value===n.backhand)||null,onChange:k("backhand"),placeholder:"",formatOptionLabel:null,controlWidth:"100%",menuListWidth:"100%"})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.shoeSize")}),(0,a.jsx)(v.I,{value:n.shoeSize||"",onChange:j("shoeSize"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.shirtSize")}),(0,a.jsx)(v.I,{value:n.shirtSize||"",onChange:j("shirtSize"),placeholder:l("personal.shirtSizePlaceholder"),...p})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"13px",children:l("personal.pantsSize")}),(0,a.jsx)(v.I,{value:n.pantsSize||"",onChange:j("pantsSize"),...p})]})]})]})]})};function B(e){let{playerData:t,setPlayerData:n,fatherData:r,setFatherData:o,motherData:l,setMotherData:s}=e,{t:c}=(0,m.$G)("player-application"),d=(e=>{if(!e)return null;let t=new Date(e);if(isNaN(t.getTime()))return null;let n=new Date,a=n.getFullYear()-t.getFullYear(),r=n.getMonth()-t.getMonth();return(r<0||0===r&&n.getDate()<t.getDate())&&a--,a})(t.dateOfBirth);return(0,a.jsxs)(i.K,{gap:0,children:[(0,a.jsx)(k,{title:c("personal.player"),data:t,setData:n,isPlayer:!0}),null!==d&&d<18&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k,{title:c("personal.father"),data:r,setData:o}),(0,a.jsx)(k,{title:c("personal.mother"),data:l,setData:s})]})]})}var N=n(11802),w=n(29615),E=n(21409);let T={"--focus-color":"#9627BB"},O=e=>{let{value:t,onChange:n}=e,{t:r}=(0,m.$G)("player-application");return(0,a.jsx)(N.ZY,{value:t,onValueChange:e=>n(e.value),size:"sm",children:(0,a.jsxs)(w.U,{gap:4,children:[(0,a.jsxs)(N.mJ,{value:"YES",children:[(0,a.jsx)(N.$z,{}),(0,a.jsx)(N.Xu,{_checked:{bgColor:"#9627BB",borderColor:"#9627BB"}}),(0,a.jsx)(N.xZ,{children:(0,a.jsx)(S.x,{fontSize:"13px",children:r("supportTeam.yes")})})]}),(0,a.jsxs)(N.mJ,{value:"NO",children:[(0,a.jsx)(N.$z,{}),(0,a.jsx)(N.Xu,{_checked:{bgColor:"#9627BB",borderColor:"#9627BB"}}),(0,a.jsx)(N.xZ,{children:(0,a.jsx)(S.x,{fontSize:"13px",children:r("supportTeam.no")})})]})]})})},P=e=>{let{label:t,file:n,onChange:r}=e,o=(0,f.useRef)(null);return(0,a.jsxs)(s.x,{border:"1px dashed",borderColor:"gray.300",borderRadius:"md",p:3,cursor:"pointer",onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.click()},_hover:{borderColor:"#9627BB"},children:[(0,a.jsx)("input",{ref:o,type:"file",accept:".pdf, image/*",style:{display:"none"},onChange:e=>{var t,n;return r(null!==(n=null===(t=e.target.files)||void 0===t?void 0:t[0])&&void 0!==n?n:null)}}),(0,a.jsxs)(w.U,{gap:2,children:[(0,a.jsx)(E.DUB,{size:"14px",color:"#8D9EB2"}),(0,a.jsx)(S.x,{fontSize:"12px",color:n?"green.500":"#8D9EB2",children:n?n.name:t})]})]})},L=e=>{let{label:t,data:n,onChange:r,hasPhone:o=!1,hasContact:l=!1,hasRole:i=!1,role:c="",onRoleChange:d,optional:p=!1}=e,{t:u}=(0,m.$G)("player-application"),h={style:T,fontSize:"12px",_placeholder:{color:"#8D9EB2",fontSize:"12px"}};return(0,a.jsx)(s.x,{py:3,borderBottomWidth:"1px",borderColor:"gray.100",children:(0,a.jsxs)(y.r,{templateColumns:{base:"1fr",md:"1.2fr 1.5fr 1.5fr 1fr 1fr"},gap:3,alignItems:"end",children:[(0,a.jsx)(s.x,{children:i?(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"12px",children:u("supportTeam.role")}),(0,a.jsx)(v.I,{value:c,onChange:e=>null==d?void 0:d(e.target.value),...h})]}):(0,a.jsx)(S.x,{fontSize:"13px",fontWeight:"600",color:"brand.Jacarta",pt:2,children:t})}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"12px",children:u("supportTeam.name")}),(0,a.jsx)(v.I,{value:n.name,placeholder:p?u("supportTeam.optional"):"",onCh
1ange:e=>r({...n,name:e.target.value}),...h})]}),(o||l)&&(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"12px",children:u("supportTeam.contact")}),(0,a.jsx)(v.I,{value:o?n.phone||"":n.contact||"",onChange:e=>r({...n,[o?"phone":"contact"]:e.target.value}),...h})]}),!o&&!l&&(0,a.jsx)(s.x,{}),(0,a.jsxs)(s.x,{children:[(0,a.jsx)(S.x,{fontSize:"12px",mb:1,color:"gray.500",children:u("supportTeam.contract")}),(0,a.jsx)(O,{value:n.contract,onChange:e=>r({...n,contract:e})})]}),"YES"===n.contract?(0,a.jsx)(s.x,{children:(0,a.jsx)(P,{label:u("supportTeam.contractFile"),file:n.file,onChange:e=>r({...n,file:e})})}):(0,a.jsx)(s.x,{})]})})};function D(e){let{data:t,setData:n}=e,{t:r}=(0,m.$G)("player-application"),o=(e,a)=>n({...t,[e]:a}),l=(e,n)=>{let a=[...t.others];a[e]=n,o("others",a)};return(0,a.jsxs)(i.K,{gap:0,children:[(0,a.jsx)(c.X,{size:"sm",mb:5,color:"brand.Jacarta",textTransform:"uppercase",letterSpacing:"wider",children:r("supportTeam.title")}),(0,a.jsxs)(s.x,{borderWidth:"1px",borderRadius:"lg",borderColor:"gray.200",px:5,pt:3,pb:5,children:[(0,a.jsx)(L,{label:r("supportTeam.coach"),data:t.coach,hasPhone:!0,onChange:e=>o("coach",e)}),(0,a.jsx)(L,{label:r("supportTeam.scCoach"),data:t.scCoach,onChange:e=>o("scCoach",e)}),(0,a.jsx)(L,{label:r("supportTeam.club"),data:t.club,onChange:e=>o("club",e)}),(0,a.jsx)(L,{label:r("supportTeam.manager"),data:t.manager,hasContact:!0,onChange:e=>o("manager",e)}),(0,a.jsx)(L,{label:r("supportTeam.financialSponsor"),data:t.financialSponsor,hasContact:!0,onChange:e=>o("financialSponsor",e)}),(0,a.jsx)(u.Z,{my:4}),(0,a.jsx)(S.x,{fontSize:"13px",fontWeight:"700",color:"gray.500",mb:2,children:r("supportTeam.otherRoles")}),t.others.map((e,t)=>(0,a.jsx)(L,{label:"",data:e,hasRole:!0,role:e.role,onRoleChange:n=>l(t,{...e,role:n}),onChange:e=>l(t,e),optional:!0},t))]})]})}var Z=n(40025);let W={style:{"--focus-color":"#9627BB"},fontSize:"12px",_placeholder:{color:"#8D9EB2",fontSize:"12px"}},F=e=>{let{value:t,onChange:n}=e,{t:r}=(0,m.$G)("player-application");return(0,a.jsx)(N.ZY,{value:t,onValueChange:e=>n(e.value),size:"sm",children:(0,a.jsxs)(w.U,{gap:4,children:[(0,a.jsxs)(N.mJ,{value:"YES",children:[(0,a.jsx)(N.$z,{}),(0,a.jsx)(N.Xu,{_checked:{bgColor:"#9627BB",borderColor:"#9627BB"}}),(0,a.jsx)(N.xZ,{children:(0,a.jsx)(S.x,{fontSize:"13px",children:r("supportTeam.yes")})})]}),(0,a.jsxs)(N.mJ,{value:"NO",children:[(0,a.jsx)(N.$z,{}),(0,a.jsx)(N.Xu,{_checked:{bgColor:"#9627BB",borderColor:"#9627BB"}}),(0,a.jsx)(N.xZ,{children:(0,a.jsx)(S.x,{fontSize:"13px",children:r("supportTeam.no")})})]})]})})},R=e=>{let{label:t,file:n,onChange:r}=e,o=(0,f.useRef)(null);return(0,a.jsxs)(s.x,{border:"1px dashed",borderColor:"gray.300",borderRadius:"md",p:3,cursor:"pointer",onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.click()},_hover:{borderColor:"#9627BB"},children:[(0,a.jsx)("input",{ref:o,type:"file",accept:".pdf, image/*",style:{display:"none"},onChange:e=>{var t,n;return r(null!==(n=null===(t=e.target.files)||void 0===t?void 0:t[0])&&void 0!==n?n:null)}}),(0,a.jsxs)(w.U,{gap:2,children:[(0,a.jsx)(E.DUB,{size:"14px",color:"#8D9EB2"}),(0,a.jsx)(S.x,{fontSize:"12px",color:n?"green.500":"#8D9EB2",children:n?n.name:t})]})]})},Y=e=>{let{data:t,onChange:n}=e,{t:r}=(0,m.$G)("player-application");return(0,a.jsx)(s.x,{py:4,borderBottomWidth:"1px",borderColor:"gray.100",children:(0,a.jsxs)(y.r,{templateColumns:{base:"1fr",md:"1fr 1fr 0.8fr 1fr"},gap:4,alignItems:"end",children:[(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"12px",children:r("sponsors.company")}),(0,a.jsx)(v.I,{value:t.company,onChange:e=>n({...t,company:e.target.value}),...W})]}),(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"12px",children:r("sponsors.scope")}),(0,a.jsx)(v.I,{value:t.scope,placeholder:r("sponsors.scopePlaceholder"),onChange:e=>n({...t,scope:e.target.value}),...W})]}),(0,a.jsxs)(s.x,{children:[(0,a.jsx)(S.x,{fontSize:"12px",mb:1,color:"gray.500",children:r("sponsors.formalContract")}),(0,a.jsx)(F,{value:t.contract,onChange:e=>n({...t,contract:e})})]}),(0,a.jsx)(s.x,{children:"YES"===t.contract&&(0,a.jsx)(R,{label:r("sponsors.uploadContract"),file:t.attachment,onChange:e=>n({...t,attachment:e})})})]})})};function A(e){let{data:t,setData:n}=e,{t:r}=(0,m.$G)("player-application"),o=(e,a)=>{let r=[...t];r[e]=a,n(r)};return(0,a.jsxs)(i.K,{gap:0,mt:0,children:[(0,a.jsx)(c.X,{size:"sm",mb:5,color:"brand.Jacarta",textTransform:"uppercase",letterSpacing:"wider",children:r("sponsors.title")}),(0,a.jsxs)(s.x,{borderWidth:"1px",borderRadius:"lg",borderColor:"gray.200",px:5,pb:5,children:[t.map((e,t)=>(0,a.jsx)(Y,{data:e,onChange:e=>o(t,e)},t)),(0,a.jsx)(Z.z,{mt:4,size:"sm",variant:"ghost",color:"#9627BB",onClick:()=>n([...t,{company:"",scope:"",contract:"NO",attachment:null}]),_hover:{bg:"purple.50"},children:(0,a.jsxs)(w.U,{gap:2,children:[(0,a.jsx)(E.wEH,{size:"12px"}),(0,a.jsx)(S.x,{fontSize:"13px",fontWeight:"600",children:r("sponsors.addSp
1onsor")})]})})]})]})}let I={"--focus-color":"#9627BB"},Q=e=>{let{label:t,data:n,onChange:r}=e,{t:o}=(0,m.$G)("player-application");return(0,a.jsx)(s.x,{py:4,borderBottomWidth:"1px",borderColor:"gray.100",children:(0,a.jsxs)(i.K,{gap:4,children:[(0,a.jsxs)(w.U,{justify:"space-between",children:[(0,a.jsx)(S.x,{fontSize:"13px",fontWeight:"600",color:"brand.Jacarta",children:t}),(0,a.jsxs)(w.U,{gap:6,children:[(0,a.jsx)(S.x,{fontSize:"12px",color:"gray.500",children:o("socialMedia.haveAccount")}),(0,a.jsx)(N.ZY,{value:n.has,onValueChange:e=>r({...n,has:e.value}),size:"sm",children:(0,a.jsxs)(w.U,{gap:4,children:[(0,a.jsxs)(N.mJ,{value:"YES",children:[(0,a.jsx)(N.$z,{}),(0,a.jsx)(N.Xu,{_checked:{bgColor:"#9627BB",borderColor:"#9627BB"}}),(0,a.jsx)(N.xZ,{children:(0,a.jsx)(S.x,{fontSize:"13px",children:o("supportTeam.yes")})})]}),(0,a.jsxs)(N.mJ,{value:"NO",children:[(0,a.jsx)(N.$z,{}),(0,a.jsx)(N.Xu,{_checked:{bgColor:"#9627BB",borderColor:"#9627BB"}}),(0,a.jsx)(N.xZ,{children:(0,a.jsx)(S.x,{fontSize:"13px",children:o("supportTeam.no")})})]})]})})]})]}),"YES"===n.has&&(0,a.jsxs)(b.Tn,{children:[(0,a.jsx)(b.Qy,{fontSize:"12px",children:o("socialMedia.profileUrl")}),(0,a.jsx)(v.I,{value:n.value,onChange:e=>r({...n,value:e.target.value}),style:I,fontSize:"12px",_placeholder:{color:"#8D9EB2",fontSize:"12px"}})]})]})})};function H(e){let{data:t,setData:n}=e,{t:r}=(0,m.$G)("player-application"),o=(e,a)=>n({...t,[e]:a});return(0,a.jsxs)(i.K,{gap:0,children:[(0,a.jsx)(c.X,{size:"sm",mb:5,color:"brand.Jacarta",textTransform:"uppercase",letterSpacing:"wider",children:r("socialMedia.title")}),(0,a.jsxs)(s.x,{borderWidth:"1px",borderRadius:"lg",borderColor:"gray.200",px:5,pb:5,children:[(0,a.jsx)(Q,{label:r("socialMedia.instagram"),data:t.instagram,onChange:e=>o("instagram",e)}),(0,a.jsx)(Q,{label:r("socialMedia.twitter"),data:t.twitter,onChange:e=>o("twitter",e)}),(0,a.jsx)(Q,{label:r("socialMedia.tiktok"),data:t.tiktok,onChange:e=>o("tiktok",e)})]})]})}var U=n(33210),$=n(65912),X=n(53715),J=n(55418);function M(){let{uuid:e}=(0,j.useRouter)().query,t=(0,X.Z)(),{playerApplication:n,playerApplicationLoading:y}=(0,$.gn)(t,e),{t:b,i18n:v}=(0,m.$G)("auth"),{t:S}=(0,m.$G)("player-application"),[_,C]=(0,f.useState)(!1),[z,k]=(0,f.useState)(!1),[N,w]=(0,f.useState)(!0),[E,T]=(0,f.useState)(!1),[O,P]=(0,f.useState)({lastName:"",firstName:"",nationality:"",idNumber:"",dateOfBirth:"",streetAddress:"",city:"",stateProvince:"",country:"",email:"",phoneNumber:"",tourProfileLink:"",height:"",playingHand:"",backhand:"",shoeSize:"",shirtSize:"",pantsSize:""}),[L,Z]=(0,f.useState)({lastName:"",firstName:"",nationality:"",idNumber:"",dateOfBirth:"",streetAddress:"",city:"",stateProvince:"",country:"",email:"",phoneNumber:""}),[W,F]=(0,f.useState)({lastName:"",firstName:"",nationality:"",idNumber:"",dateOfBirth:"",streetAddress:"",city:"",stateProvince:"",country:"",email:"",phoneNumber:""}),[R,Y]=(0,f.useState)({coach:{name:"",phone:"",contract:"NO",file:null},scCoach:{name:"",contract:"NO",file:null},club:{name:"",contract:"NO",file:null}
1,manager:{name:"",contact:"",contract:"NO",file:null},financialSponsor:{name:"",contact:"",contract:"NO",file:null},others:[{role:"",name:"",contract:"NO",file:null},{role:"",name:"",contract:"NO",file:null},{role:"",name:"",contract:"NO",file:null}]}),[I,Q]=(0,f.useState)({instagram:{has:"YES",value:""},twitter:{has:"YES",value:""},tiktok:{has:"YES",value:""}}),[M,G]=(0,f.useState)([{company:"",scope:"",contract:"NO",attachment:null}]),[K,q]=(0,f.useState)(!1),V=[{title:S("steps.personal")},{title:S("steps.supportTeam")},{title:S("steps.otherInformation")}],ee=(0,r.h)({defaultStep:0,count:V.length}),et=ee.value,en=e=>Array.isArray(e)?e[0]:e||"";(0,f.useEffect)(()=>{if(n){var e,t,a;n.language&&v.changeLanguage(n.language),P({lastName:n.last_name||"",firstName:n.first_name||"",nationality:en(n.nationality),idNumber:n.id_number||"",dateOfBirth:n.date_of_birth||"",streetAddress:n.street_address||"",city:n.city||"",stateProvince:n.state_province||"",country:en(n.country),email:n.email||"",phoneNumber:n.phone_number||"",tourProfileLink:n.tour_profile_link||"",height:n.height?String(n.height):"",playingHand:n.playing_hand||"",backhand:n.backhand||"",shoeSize:n.shoe_size||"",shirtSize:n.shirt_size||"",pantsSize:n.pants_size||""});let r=null===(e=n.parents)||void 0===e?void 0:e.find(e=>"father"===e.role);r&&Z({lastName:r.last_name||"",firstName:r.first_name||"",nationality:en(r.nationality),idNumber:r.id_number||"",dateOfBirth:r.date_of_birth||"",streetAddress:r.street_address||"",city:r.city||"",stateProvince:r.state_province||"",country:en(r.country),email:r.email||"",phoneNumber:r.phone_number||""});let o=null===(t=n.parents)||void 0===t?void 0:t.find(e=>"mother"===e.role);o&&F({lastName:o.last_name||"",firstName:o.first_name||"",nationality:en(o.nationality),idNumber:o.id_number||"",dateOfBirth:o.date_of_birth||"",streetAddress:o.street_address||"",city:o.city||"",stateProvince:o.state_province||"",country:en(o.country),email:o.email||"",phoneNumber:o.phone_number||""}),Q({instagram:{has:n.instagram?"YES":"NO",value:n.instagram||""},twitter:{has:n.twitter_x?"YES":"NO",value:n.twitter_x||""},tiktok:{has:n.tiktok?"YES":"NO",value:n.tiktok||""}});let l={coach:{name:"",phone:"",contract:"NO",file:null},scCoach:{name:"",contract:"NO",file:null},club:{name:"",contract:"NO",file:null}
1,manager:{name:"",contact:"",contract:"NO",file:null},financialSponsor:{name:"",contact:"",contract:"NO",file:null},others:[]};for(null===(a=n.support_members)||void 0===a||a.forEach(e=>{let t=e.contact||"",n={name:e.name||"",contract:e.has_contract?"YES":"NO",file:null};switch(e.role){case"coach":l.coach={...n,phone:t};break;case"sc_coach":l.scCoach=n;break;case"club_academy":l.club=n;break;case"manager":l.manager={...n,contact:t};break;case"financial_sponsor":l.financialSponsor={...n,contact:t};break;default:l.others.push({role:e.role_custom||e.role||"",name:e.name||"",contract:e.has_contract?"YES":"NO",file:null})}});l.others.length<3;)l.others.push({role:"",name:"",contract:"NO",file:null});Y(l),n.sponsors&&n.sponsors.length>0&&G(n.sponsors.map(e=>({company:e.company_name||"",scope:e.sponsorship_scope||"",contract:e.has_formal_contract?"YES":"NO",attachment:null})))}},[n]),(0,f.useEffect)(()=>{2===et?w(K):w(!0)},[et,K]);let ea=e=>{switch(e){case 0:return{first_name:O.firstName,last_name:O.lastName,nationality:O.nationality||null,id_number:O.idNumber,date_of_birth:O.dateOfBirth||null,street_address:O.streetAddress,city:O.city,state_province:O.stateProvince,country:O.country||null,email:O.email,phone_number:O.phoneNumber,tour_profile_link:O.tourProfileLink,height:O.height?parseInt(O.height):null,playing_hand:O.playingHand||null,backhand:O.backhand||null,shoe_size:O.shoeSize,shirt_size:O.shirtSize,pants_size:O.pantsSize,parents:[{role:"father",first_name:L.firstName,last_name:L.lastName,nationality:L.nationality||null,id_number:L.idNumber,date_of_birth:L.dateOfBirth||null,street_address:L.streetAddress,city:L.city,state_province:L.stateProvince,country:L.country||null,email:L.email,phone_number:L.phoneNumber},{role:"mother",first_name:W.firstName,last_name:W.lastName,nationality:W.nationality||null,id_number:W.idNumber,date_of_birth:W.dateOfBirth||null,street_address:W.streetAddress,city:W.city,state_province:W.stateProvince,country:W.country||null,email:W.email,phone_number:W.phoneNumber}]};case 1:let t=[{role:"coach",name:R.coach.name,contact:R.coach.phone,has_contract:"YES"===R.coach.contract},{role:"sc_coach",name:R.scCoach.name,has_contract:"YES"===R.scCoach.contract},{role:"club_academy",name:R.club.name,has_contract:"YES"===R.club.contract},{role:"manager",name:R.manager.name,contact:R.manager.contact,has_contract:"YES"===R.manager.contract},{role:"financial_sponsor",name:R.financialSponsor.name,contact:R.financialSponsor.contact,has_contract:"YES"===R.financialSponsor.contract}];return R.others.forEach(e=>{(e.name||e.role)&&t.push({role:"other",role_custom:e.role,name:e.name,has_contract:"YES"===e.contract,contact:""})}),{support_members:t};case 2:return{instagram:I.instagram.value,twitter_x:I.twitter.value,tiktok:I.tiktok.value,sponsors:M.map(e=>({company_name:e.company,sponsorship_scope:e.scope,has_formal_contract:"YES"===e.contract}))};default:return{}}},er=async(n,a)=>{k(!0);try{let r={...ea(n),...a?{status:a}:{}};await t.patch("".concat("https://api.slicetoken.io/api","/tokens/player-applications/").concat(e,"/"),r)}catch(e){throw console.error("Saving error:",e),J.m.create({title:S("error.title")||"Error",description:S("error.description")||"There was an error saving your progress.",type:"error"}),e}finally{k(!1)}},eo=async()=>{try{await er(et),ee.setStep(et+1)}catch(e){}},el=async()=>{C(!0);try{await er(et,1),T(!0)}catch(e){console.error("Submission error:",e)}C(!1)};return(0,a.jsx)(U.default,{title:S("title"),minH:"100vh",showAgent:!1,children:(0,a.jsx)(o.k,{minH:"100vh",align:"flex-start",justify:"center",bg:(0,x.ff)("gray.50","gray.800"),py:12,children:E||n&&n.status&&0!==n.status?(0,a.jsxs)(l.xE,{status:"success",rounded:"md",mb:2,w:"full",maxW:"xl",mt:8,children:[(0,a.jsx)(l.xX,{}),(0,a.jsxs)(s.x,{children:[(0,a.jsx)(l.Cd,{children:E||(null==n?void 0:n.status)!==0?S("submitted.title")||"Application sent":S("title")}),(0,a.jsx)(l.X,{children:E||(null==n?void 0:n.status)!==0?S("submitted.description")||"The form was already sent, we will contact you.":S("description")})]})]}):(0,a.jsxs)(i.K,{gap:10,w:"full",maxW:"5xl",bg:(0,x.ff)("white","gray.700"),rounded:"xl",boxShadow:"lg",p:8,children:[(0,a.jsx)(c.X,{color:"brand.Jacarta",lineHeight:"normal",fontWeight:600,fontSize:{base:"18px",lg:"22px"},textAlign:"center",children:S("title")}),(0,a.jsx)(s.x,{children:(0,a.jsxs)(d.D3,{value:ee,children:[(0,a.jsx)(d.YH,{mb:8,overflowX:"auto",pb:2,children:V.map((e,t)=>(0,a.jsxs)(d.l7,{index:t,minW:"80px",children:[(0,a.jsx)(d.kh,{}),(0,a.jsx)(s.x,{flexShrink:"0",children:(0,a.jsx)(d.WH,{fontSize:"11px",children:e.title})}),(0,a.jsx)(d.rL,{})]},t))}),(0,a.jsxs)(s.x,{minH:"400px",children:[0===et&&(0,a.jsx)(B,{playerData:O,setPlayerData:P,fatherData:L,setFatherData:Z,motherData:W,setMotherData:F}),1===et&&(0,a.jsx)(D,{data:R,setData:Y}),2===et&&(0,a.jsxs)(i.K,{gap:10,children:[(0,a.jsx)(A,{data:M,setData:G}),(0,a.jsx)(H,{data:I,setData:Q}),(0,a.jsx)(s.x,{pt:4,children:(0,a.jsxs)(p.wx,{checked:K,onCheckedChange:e=>q(!!e.checked),children:[(0,a.jsx)(p.HC,{}),(0,a.jsx)(p.Z8,{_checked:{bgColor:"#9627BB",borderColor:"#9627BB"}}),(0,a.jsx)(p.ke,{fontSize:"sm",fontWeight:"500",children:S("declaration")})]})})]})]}),(0,a.jsx)(u.Z,{my:6}),(0,a.jsxs)(h.h,{size:"sm",variant:"outline",gap:4,justifyContent:"center",width:"full",children:[0!==et&&(0,a.jsx)(g.Z,{variant:"outline",size:"md",onClick:()=>ee.setStep(et-1),children:b("back")}),et!==V.length-1?(0,a.jsx)(g.Z,{variant:"outline",size:"md",loading:z,disabled:!N,onClick:eo,children:b("next")}):(0,a.jsx)(g.Z,{size:"md",variant:"violetFilled",onClick:el,loading:_,disabled:_||!N,children:b("send")})]})]})})]})})})}},9410:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var a=n(85893),r=n(67294),o=n(83317);let l=(0,r.forwardRef)(function(e,t){let{templateAreas:n,column:r,row:l,autoFlow:s,autoRows:i,templateRows:c,autoColumns:d,templateColumns:p,inline:u,...h}=e;return(0,a.jsx)(o.m.div,{...h,ref:t,css:[{display:u?"inline-grid":"grid",gridTemplateAreas:n,gridAutoColumns:d,gridColumn:r,gridRow:l,gridAutoFlow:s,gridAutoRows:i,gridTemplateRows:c,gridTemplateColumns:p},e.css]})});l.displayName="Grid"}},function(e){e.O(0,[1778,2933,9553,5953,2888,9774,179],function(){return e(e.s=90490)}),_N_E=e.O()}]);

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.