PageSourceSearch

https://club.touchtight.com/assets/index-DCRPU9BN.js

js touchtight.com collected 2026-09-24 13:35:48 UTC 35,788 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ViewFileModal-JGFLeYO7.js","assets/react-vendor-DJtAp8P_.js","assets/index-Cfld5zQI.js","assets/index-D7JOLfRZ.js","assets/apollo-WxVwhmyD.js","assets/mui-styles-Cs1eTw1A.js","assets/babel-helpers-GYAhpWPp.js","assets/dayjs-CeefjyDY.js","assets/index-mcL-U2OS.css","assets/index-Qwitn9cN.css","assets/mui-DM4FB6Od.js"])))=>i.map(i=>d[i]);
2import{a as t,j as e}from"./react-vendor-DJtAp8P_.js";import{D as Ea}from"./hello-pangea-dnd-V9uYMV7h.js";import{s as ha}from"./drawer-CKgR88Nl.js";import{S as Ya}from"./SessionPlannerGraphic-DlW27AdK.js";import{S as Pa}from"./Manage-BVQNLVR9.js";import{S as qa}from"./Copy-DqEA19_p.js";import{S as Ia}from"./DeleteGray-Dm8DTCln.js";import{S as Ka}from"./PDFGray-BaZzDG79.js";import{cb as Qa,cP as Ja,aH as Xa,l as Ee,d as Pe,I as Ne,q as ye,T as Oa,u as ge,ab as Xe,am as Ze,h as Ma,an as Za,$ as Fa,_ as et,v as he,j as at,g as tt,w as nt,B as st,S as it,bE as ot,eD as fa,bw as rt,bV as lt,eE as ct,P as ga}from"./index-D7JOLfRZ.js";import{S as dt}from"./Share-DzCO4UmV.js";import{B as mt}from"./index-tUOrZ0hD.js";import{S as ut}from"./AddToGlobalLibrary-DmPqut8h.js";import{b as Ta,A as Ra,c as Sa,h as pt,g as Ge,d as ht,F as ft,f as gt,j as St,k as xt,s as Aa,l as bt,T as yt,m as _t,W as vt,R as Ct,aF as xa}from"./swiper-react-BdHqbMUq.js";import{o as jt,n as Dt}from"./query-C7Xvvnmk.js";import{t as wt,u as ka,v as Et,R as Pt,x as It,s as Ot,as as Mt,aq as Tt}from"./mutation-CBAS9dQ5.js";import"./dayjs-CeefjyDY.js";import{D as Fe}from"./DeleteModal-DGIY4vv1.js";import"./moment-Bj79pgB5.js";import{c as Rt,d as At,u as kt}from"./index.esm-M6qXUo6E.js";import{M as La}from"./SessionPlannerMobile-btstsT3g.js";import{T as Lt}from"./Tabs-DlA0lKPi.js";import{U as Nt}from"./UpgradePlanModal-ByG-mUKQ.js";import{A as Bt}from"./AlertModal-CX5pWvCn.js";import{A as Gt}from"./AddPracticeToSessionModalGate--0wLgJxK.js";import{S as ba}from"./SideDrawer-CDF_YnkN.js";import{B as _e}from"./Button-C12sdXE_.js";import{C as Ut,S as ya,a as $t,b as zt,c as Ht,d as Wt}from"./ppt-DDIlC0Vu.js";import{S as Vt}from"./SearchHeader-C61GLxal.js";import{S as Yt}from"./Add-CtyK-8wd.js";import{S as qt}from"./AddBlack-DHq8Mf9n.js";import{S as Kt}from"./Pdf-Dr9vIl0t.js";import{S as Qt}from"./Download-YWdOpMw6.js";import{T as Jt,S as Xt}from"./Search-DtNbnsKK.js";import{M as Na}from"./Modal-BMf2ZRZ1.js";import{z as g,a8 as Zt,T as N,aC as Ft,an as en,E as re,u as Ba,j as an,aW as tn,P as nn,a0 as sn,bU as on,aE as _a,cu as rn,cv as ln,w as cn}from"./mui-DM4FB6Od.js";import{d as dn}from"./differenceWith-S2BfgEwZ.js";import{n as le,e as va}from"./apollo-WxVwhmyD.js";import{u as mn}from"./auth-CD706yVH.js";import{u as un}from"./s3FileHandler-C17YuASz.js";import{o as Ca}from"./orderBy-GyB7tKUk.js";import{r as pn}from"./reverse-DAxmyBuF.js";import{G as hn}from"./GeneratePdfModal-eMri7X_a.js";import{f as fn}from"./findIndex-5S0T5r6i.js";import"./index-ROyDSZr8.js";import{s as gn}from"./imageOptimization-zUL1CBPb.js";import{D as Sn}from"./DroppableWrapper-Du0-D3mt.js";import{D as xn}from"./DraggableWrapper-D3Pb7M3F.js";import{P as bn}from"./PracticeCard-B0zvEgd3.js";import{c as ja}from"./compact-DZdspzxW.js";import{g as yn}from"./groupBy-CiADzcY3.js";import{m as _n}from"./mapKeys-P4MUpvzu.js";import"./babel-helpers-GYAhpWPp.js";import"./mui-styles-Cs1eTw1A.js";import"./lodash-CKgJFN-2.js";import"./merge-BSbDH-s2.js";import"./_baseAssignValue-DA5RZPFC.js";import"./_baseClone-CI_UATaE.js";import"./isArrayLikeObject-BWZNxdtJ.js";import"./map-DazS0jXn.js";import"./browser-CbB-A17s.js";import"./some-DWTvIxlZ.js";import"./_baseIndexOf-DqPIyCu4.js";import"./values-KC-0YRfW.js";import"./index-DCj5Y0Ve.js";import"./_baseDifference-DAp4QVb4.js";import"./_arrayIncludes-Ck-iFXGO.js";import"./omit-BVrVjzv1.js";import"./index-DH6i3Hvs.js";import"./mui-x-YwRs-dk2.js";import"./_baseUniq-CmchZ_xr.js";import"./cloneDeep-DBd8ERDR.js";import"./ArrowRightUp-Dfl04kWl.js";import"./Graphic-BzX0DM42.js";import"./seededSessionFill-BljGszd4.js";import"./popover-B8lrz72k.js";import"./index-DpjMp3wN.js";import"./floating-ui.dom-CpqR1Q5s.js";import"./index-JeILjm9G.js";import"./subMonths-CpZP7vPB.js";import"./chevron-left-9Y5dS79z.js";import"./chevron-right-Kzd-kxi5.js";import"./sessionSections-a-lprBoU.js";import"./index-rc50KUs-.js";import"./check-Dll7thOD.js";import"./index-Bbo9K1pG.js";import"./checkbox-DJN1JlYm.js";
2import"./input-BTg4yeH5.js";import"./editable-input-DmMIPilJ.js";import"./chevron-down-mjJIujzU.js";import"./label-CeQs4oBw.js";import"./plus-BUgo-MEI.js";import"./arrow-right-CYjy97dt.js";import"./funnel-Cdv4ACT7.js";import"./UnChecked-H0fgCINi.js";import"./Filter-D0LZmDHe.js";import"./SearchBlue-L5ACR53r.js";import"./omitBy-BCozY_Ti.js";import"./_basePickBy-Dc16HIWF.js";import"./FileSaver.min-Dv2PT3Wa.js";import"./FullDescriptionHorizontal-C1f9QssB.js";import"./sessionSaveCopy-DCCAq8-L.js";import"./select-CRxMSPg6.js";import"./index-qowwVYgv.js";import"./index-BmL5Ss9K.js";import"./chevron-up-DG37VEG_.js";import"./Checkbox-D0otwlyf.js";import"./TextareaAutosize-CxNFIGzY.js";try{let s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new s.Error().stack;m&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[m]="33b170ed-762b-4465-aa2f-db87dd21e908",s._sentryDebugIdIdentifier="sentry-dbid-33b170ed-762b-4465-aa2f-db87dd21e908")}catch{}function vn(s){return function(m,o,n){var _=Object(m);if(!Qa(m)){var p=Ja(o);m=Xa(m),o=function(I){return p(_[I],I,_)}}var v=s(m,o,n);return v>-1?_[p?m[v]:v]:void 0}}var Da=vn(fn);const Cn=({open:s,handleClose:m,handleSubmitFolder:o,selectedFolder:n,loading:_,coaches:p,documents:v,setSelectedTreeItem:I,selectedTreeItem:w,fileListRefetch:V})=>{var M;const{id:Y}=Ee(),D=Pe(),[$]=le(wt),[q]=le(ka),[z]=le(Et),[K]=le(Pt),[k,T]=t.useState([]),[B,Q]=t.useState(""),J=Rt({name:At().required("Folder name is required")}),ae={name:(n==null?void 0:n.name)||"",coaches:(M=n==null?void 0:n.sharedWith)!=null&&M.length?n.sharedWith.map(i=>({...i,username:`${i.username} ${i.lastname}`,avatar:`${Ne}/${i==null?void 0:i.profile_image}`})):[]},x=kt({initialValues:ae,enableReinitialize:!0,validationSchema:J,onSubmit:(i,{resetForm:h})=>{o(i,h)}}),G=async()=>{var y,r,R;const i=await $({variables:{createFolder:{name:typeof x.values.name=="string"?Sa(x.values.name):x.values.name,clubId:(D==null?void 0:D.club_id)??0,parentId:w||1,session_planner_session_id:+Y}}}),h=(R=(r=(y=i==null?void 0:i.data)==null?void 0:y.createFolder)==null?void 0:r.data)==null?void 0:R.id;
2for(const H of x.values.coaches)await q({variables:{sharedInput:{fileId:h,toUser:[{clubId:H.club_id,userId:H.id}]}}});V(),l()},a=async i=>{await z({variables:{unShareFileInput:{fileId:(n==null?void 0:n.id)||1,fromUser:[{userId:i.id,clubId:i.club_id}]}}})},U=async()=>{var y;let i=x.values.name;if(n&&(n==null?void 0:n.type)=="2"&&(pt(x.values.name)||`${x.values.name}${Ge(n==null?void 0:n.name)}`,!ht(Ge(x.values.name)))){x.setFieldError("name","Please add a valid extension");return}await K({variables:{renameFolder:{id:(n==null?void 0:n.id)||1,name:Sa(i||"")}}});const h=dn(n==null?void 0:n.sharedWith,x.values.coaches,(r,R)=>(r==null?void 0:r.id)===(R==null?void 0:R.id));for(const r of x.values.coaches)((y=n==null?void 0:n.sharedWith)==null?void 0:y.find(H=>H.id==r.id))||await q({variables:{sharedInput:{fileId:(n==null?void 0:n.id)||1,toUser:[{clubId:r.club_id,userId:r.id}]}}});for(const r of h)await a(r);V(),l()},l=()=>{m(),Q(""),x.resetForm()},b=i=>{const{value:h}=i.target;Q(h),I(h)},S=(i=v,h=[])=>(i==null||i.forEach(y=>{(y==null?void 0:y.type)=="1"&&!y.isShared&&(h==null||h.push(y)),S(y==null?void 0:y.items,h)}),h);return t.useEffect(()=>{let i=S();T(i)},[s]),e.jsx(Na,{open:s,title:n&&(n==null?void 0:n.type)=="2"?"Manage File":"Manage Folder",actionBtnTitle:ye(n)?"Save":"Update",handleClose:l,actionHandler:ye(n)?G:U,disabledBtn:!x.values.name||x.errors.name,loading:_,children:e.jsxs(g,{container:!0,spacing:3,children:[e.jsx(g,{size:12,children:e.jsx(Jt,{label:n&&(n==null?void 0:n.type)=="2"?"File Name":"Folder Name",name:"name",value:x.values.name||"",handleChange:x.handleChange,error:x.errors.name,helperText:x.errors.name})}),!n&&e.jsx(g,{size:12,children:e.jsx(Ta,{optionKey:"name",label:"Select Parent Folder",name:"Select Parent Folder",value:B||"",onChange:b,options:k})}),!(n!=null&&n.isShared)&&e.jsx(g,{size:12,children:e.jsx(Ra,{optionKey:"username",label:"Coaches, Comma Separated",name:"coaches",value:x.values.coaches,onChange:x.handleChange,options:p.map(i=>({...i,username:`${i==null?void 0:i.username} ${i==null?void 0:i.lastname}`,avatar:`${Ne}/${i==null?void 0:i.profile_image}`}))})}),e.jsx(g,{size:12,children:e.jsxs(g,{container:!0,alignItems:"center",children:[e.jsx(g,{size:9,children:e.jsxs(g,{container:!0,spacing:2,alignItems:"center",children:[e.jsx(g,{children:e.jsx(Zt,{src:`${Ne}/${n?n==null?void 0:n.owner.profile_image:D.profile_image}`})}),e.jsx(g,{children:e.jsx(N,{variant:"body2",children:n?n==null?void 0:n.owner.username:D.username})})]})}),e.jsx(g,{size:3,children:e.jsx(N,{variant:"body1",children:"Owner"})})]})})]})})},jn=({open:s,handleClose:m,actionBtnTitle:o,coaches:n,selectedTreeItem:_,fileListRefetch:p,documents:v,setSelectedTreeItem:I})=>{const{id:w}=Ee(),[V]=Oa(),Y=ge(u=>u.club),D=Pe(),$=ge(u=>u.user.userPermission),[q]=le(ka),[z]=le(It),{getClubDetails:K}=mn(),[k,T]=t.useState([]),[B,Q]=t.useState(""),[J,ae]=t.useState([]),[x,G]=t.useState(!1),{selectedFiles:a,setSelectedFiles:U,startUploadOnS3:l,handleRemoveFiles:b}=un(),S=$.planId===1?$.permission.documents-Y.documentsCount:5,M=`${Xe.CLOUDFRONT_DOMAIN}/${Ze.DOCUMENTS.SESSION_PLANNER.SESSION}`,i=u=>{const{value:O}=u.target;Q(O),I(O)},h=u=>{T(u.target.value)},y=(u=v,O=[])=>(u==null||u.forEach(L=>{(L==null?void 0:L.type)=="1"&&!L.isShared&&(O==null||O.push(L)),y(L==null?void 0:L.items,O)}),O);t.useEffect(()=>{let u=y();ae(u)},[s]);const r=()=>{m(),T([]),p(),U([])},R=async()=>{G(!0),await l(Ze.DOCUMENTS.SESSION_PLANNER.SESSION,Xe.S3_MEDIA_BUCKET)?await H():V({msg:"Error in uploading the documents",variant:"error"}),G(!1),r()},H=async()=>{var u,O,L;if(a!=null&&a.length)for(const W of a){const ne=await z({variables:{uploadDocument:{name:W.name,size:W==null?void 0:W.size,url:W.url,docType:Ge(W==null?void 0:W.name),parentId:_||1,clubId:(D==null?void 0:D.club_id)??0,session_planner_session_id:+w}}}),ce=(L=(O=(u=ne==null?void 0:ne.data)==null?void 0:u.uploadDocument)==null?void 0:O.data)==null?void 0:L.id;if(k!=null&&k.length)for(const te of k)await q({variables:{sharedInput
2:{fileId:ce||1,toUser:[{clubId:te.club_id,userId:te.id}]}}})}K(D.club_id)},ve=(u,O,L)=>{L==="clear"&&b(a)},Se=(u,O,L)=>{if(L==="removeOption"){const W=a.map((ce,te)=>({id:te,name:ce.name})),ne=St(W,O,"id");b(ne)}};return e.jsx(Na,{open:s,title:"Upload Document",actionBtnTitle:o,handleClose:r,actionHandler:R,disabledBtn:!(a!=null&&a.length)||x,loading:x,disableBackdropClick:!0,children:e.jsx(g,{container:!0,spacing:3,children:e.jsxs(g,{size:12,children:[e.jsxs(g,{container:!0,size:12,children:[e.jsx(ft,{fileUrl:M,limit:S,selectedFiles:a,setSelectedFiles:U}),e.jsx(g,{pt:2,size:12,children:e.jsx(gt,{name:"selectedFiles",label:"Selected Files",value:a.map((u,O)=>({id:O,name:u.name})),options:a.map((u,O)=>({id:O,name:u.name})),onInputChange:ve,onChange:Se})})]}),e.jsxs(g,{container:!0,spacing:2,children:[e.jsx(g,{size:12,children:e.jsx(N,{variant:"h5",fontSize:"16px",fontWeight:"600",children:"Settings"})}),e.jsx(g,{size:12,children:e.jsx(Ta,{optionKey:"name",label:"Folder",name:"Folder",value:B,onChange:i,options:J})}),e.jsx(g,{size:12,children:e.jsx(Ra,{optionKey:"username",label:"Association to coaches",name:"coaches",value:k||[],onChange:h,options:n.map(u=>({...u,username:`${u==null?void 0:u.username} ${u==null?void 0:u.lastname}`,avatar:`${Ne}/${u==null?void 0:u.profile_image}`}))})})]})]})})})},Dn=t.lazy(()=>et(()=>import("./ViewFileModal-JGFLeYO7.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),fe={tablePrimaryText:{fontSize:"14px",fontWeight:400,lineHeight:"22px",color:"text.primary"},secondaryBtn:{height:{height:"40px"},color:s=>s.palette.text.primary,borderColor:s=>s.border,"&:hover":{borderColor:s=>s.border}}},wn=[{id:"0",label:"",width:"20px"},{id:"1",label:"Name",sort:!1,width:"100px"},{id:"2",label:"Coaches",sort:!1,width:"100px"},{id:"3",label:"Media Type",sort:!0,width:"100px"},{id:"4",label:"File Size",sort:!0,width:"100px"},{id:"5",label:"Date Created",sort:!0,width:"100px"},{id:"6",label:"",width:"20px"}],En=s=>{let m=null;switch(s){case"Folder":m=e.jsx(Wt,{});break;case"pdf":m=e.jsx(Kt,{});break;case"png":m=e.jsx(ya,{});break;case"doc":case"docx":m=e.jsx(Ht,{});break;case"ppt":case"pptx":m=e.jsx(zt,{});break;case"xls":case"xlsx":m=e.jsx($t,{});break;default:m=e.jsx(ya,{});break}return m},Be=(s,m)=>s==null?void 0:s.map(o=>{var _,p,v,I,w,V;const n=o.type=="1"?"Folder":Ge(o.name);return{id:o.id,name:e.jsxs(g,{sx:{display:"flex",alignItems:"center",width:{xs:"150px",md:"unset"}},children:[e.jsxs(re,{sx:{height:"20px",width:"20px"},children:[" ",En(n)]}),e.jsx(N,{sx:[fe.tablePrimaryText,{pl:1,textOverflow:"ellipsis",wordBreak:"break-all"}],children:_t(o.path)})]}),coaches:(_=o==null?void 0:o.sharedWith)!=null&&_.length?e.jsx(yt,{data:(p=o==null?void 0:o.sharedWith)==null?void 0:p.map(Y=>({logo:Y.profile_image,name:Y.username})),children:e.jsxs(N,{sx:[fe.tablePrimaryText,{ml:3}],children:[" ",(v=o.sharedWith)==null?void 0:v.length]})}):e.jsxs(N,{sx:[fe.tablePrimaryText,{ml:3}],children:[" ",(I=o.sharedWith)==null?void 0:I.length]}),mediaType:e.jsx(N,{sx:{...fe.tablePrimaryText,width:{xs:"100px",md:"unset"}},children:n==="Folder"?"-":n==null?void 0:n.toUpperCase()}),fileSize:e.jsx(N,{sx:{...fe.tablePrimaryText,width:{xs:"100px",md:"unset"}},children:bt(o.size)}),handleRowClick:m,type:(o==null?void 0:o.type)||"1",date:e.jsx(en,{container:!0,flexDirection:"column",children:e.jsx(N,{sx:{...fe.tablePrimaryText,width:{xs:"130px",md:"unset"}},children:Fa(o.dateCreated)})}),isSelectable:((w=o.path)==null?void 0:w.split("/")[1])!=="Shared",...((V=o==null?void 0:o.items)==null?void 0:V.length)&&{subData:Be((o==null?void 0:o.items)??[],m)}}}),wa={name:!1,coaches:!1,mediaType:!1,fileSize:!1,date:!1},Pn=({pdfAddedAsDocument:s,setPdfAddedAsDocument:m,canManage:o=!0})=>{var ke;const n=Ma(),{id:_}=Ee(),p=Pe(),v=ge(c=>c.user.userPermission),I=ge(c=>c.club),[w,V]=t.useState([]),[Y,D]=t.useState([]),[$,q]=t.useState({}),[z,K]=t.useState(!1),[k,T]=t.useState(null),[B,Q]=t.useState(!1),[J,ae]=t.useState(!1),[x,G]=t.useState(!1),[a,U]=t.useState(null),[l,b]=t.useState(null),[S,M]=t.useState(""),[i,h]=t.useState([]),[y,r]=t.useState(25),[R,H]=t.useState(0),[ve,Se]=t.useState(0),[u,O]=t.useState([]),[L,W]=t.useState(wa),[ne,ce]=t.useState("asc"),[te,se]=t.useState(null),[Ie]=le(Ot),[Ue,xe]=t.useState(!1),Oe=[{name:"View",icon:Ft,iconCustomStyles:{width:"20px",height:"20px"},onClick:()=>G(!0)},{name:"Manage",icon:Pa,onClick:()=>{Q(!0)}},{name:"Delete",icon:Ia,onClick:()=>{K(!0)}},{name:"Download",icon:Qt,onClick:()=>We()}],Ce=(c,E=[])=>
2(c==null||c.forEach(P=>{E==null||E.push(P),Ce(P==null?void 0:P.items,E)}),E);t.useEffect(()=>{if(M(S),!l)return;const c=l.filter(E=>E.name.toLowerCase().indexOf(S.toLowerCase())>-1);O(Be(c,Z))},[S,l]),t.useEffect(()=>{O(Be(w!=null&&w.length?w:[],Z)),b(Ce(w))},[w,w==null?void 0:w.length]),t.useEffect(()=>{var c,E,P;if(te&&a){D(Oe);const C=(c=a==null?void 0:a.sharedWith)==null?void 0:c.find(F=>F.id==p.id),A=ye(C)?a==null?void 0:a.permissions:typeof(C==null?void 0:C.permissions)=="string"?JSON.parse(C==null?void 0:C.permissions):C==null?void 0:C.permissions;if(((E=a==null?void 0:a.owner)==null?void 0:E.id)==p.id&&a.type=="1"&&D(F=>{const ee=F.filter(je=>je.name!="View");return ee.length===0&&se(null),ee}),p!=null&&p.isAdmin)return;((P=a==null?void 0:a.owner)==null?void 0:P.id)!=p.id&&(D(F=>F.filter(ee=>ee.name!="Delete")),A!=null&&A.edit||D(F=>F.filter(ee=>ee.name!="Manage")),A!=null&&A.download||D(F=>F.filter(ee=>ee.name!="Download")),(!(A!=null&&A.view)||a.type=="1")&&D(F=>{const ee=F.filter(je=>je.name!="View");return ee.length===0&&se(null),ee}))}},[a,te]);const{data:de}=va(jt,{variables:{coachListInput:{club_id:p!=null&&p.club_id?p==null?void 0:p.club_id:I!=null&&I.club_id?I==null?void 0:I.club_id:0}}});t.useEffect(()=>{var c;if(de){const{success:E}=de.coachListNew;if(E){const P=(c=de.coachListNew)==null?void 0:c.data;h(P.filter(({id:C})=>C!=p.id))}}},[de]);const[,$e]=t.useState({id:0,create:!1,message:"",permission:!1,coach:!1}),{data:X,refetch:ue,loading:ze}=va(Dt,{variables:{folderInput:{clubId:(p==null?void 0:p.club_id)??0,offset:0,limit:y,pOffset:R*y,session_planner_session_id:+_}},skip:!(p!=null&&p.club_id),fetchPolicy:"no-cache"});t.useEffect(()=>{var c;if(X!=null&&X.filesListing){const{success:E,totalRecords:P}=X==null?void 0:X.filesListing;if(E){Se(P);const C=(c=X==null?void 0:X.filesListing)==null?void 0:c.data;V(xt(C.items,""))}}},[X]);const Z=c=>{T(c)},ie=()=>{Q(!1),ae(!1),G(!1),T(null),U(null),$e({create:!1,message:"",permission:!1,coach:!1})},Me=()=>{v.planId===1&&I.documentsCount>=v.permission.documents?n("/billing"):ae(!0)},Te=({target:{value:c}})=>{r(c),H(0)},Re=(c,E)=>{H(E)},He=c=>{const P=L[c]&&ne==="asc"?"desc":"asc";ce(P),W({...wa,[c]:!0});let C="";switch(c){case"1":C="name";break;case"2":C="coaches";break;case"3":C="type";break;case"4":C="size";break;case"5":C="dateCreated";break}const A=P==="asc"?Ca(w,C):pn(Ca(w,C));O(Be(A,Z))},be=async c=>{const P=await(await fetch(c==null?void 0:c.url)).blob(),C=URL.createObjectURL(P),A=document.createElement("a");A.href=C,A.download=c==null?void 0:c.name,document.body.appendChild(A),A.click(),document.body.removeChild(A)},We=async()=>{var c;a.type=="1"&&((c=a==null?void 0:a.items)!=null&&c.length)?a==null||a.items.forEach(async E=>{be(E)}):a.type!="1"&&be(a)},Ae=()=>{K(!1),q({}),U(null)},Ve=async()=>{xe(!0);const c=Object.keys($);if(c==null?void 0:c.length)for(const P of c)await Ie({variables:{folderDelete:{id:+P}}});else T(a==null?void 0:a.id),await Ie({variables:{folderDelete:{id:(a==null?void 0:a.id)??0}}});Ae(),ue(),xe(!1)};if(t.useEffect(()=>{s&&(ue(),m(!1))},[s]),ze)return e.jsx(Za,{});const Ye=c=>{const E=l.find(P=>P.id===c);U(E),G(!0)};return e.jsxs(e.Fragment,{children:[e.jsx(Vt,{onChangeParentCallback:M,showFilterBtn:!1,showSortBtn:!1,removeTopBorder:!0,canManage:o,customElements:o&&e.jsx(g,{children:e.jsxs(g,{container:!0,gap:2,children:[e.jsx(_e,{text:"Upload Document",onClick:Me,variant:"outlined",customStyles:fe.secondaryBtn,startIcon:e.jsx(qt,{})}),e.jsx(_e,{text:"Create Folder",onClick:()=>Q(!0),startIcon:e.jsx(Yt,{}),customStyles:{height:"40px"}})]})})}),((ke=Object.keys($))==null?void 0:ke.length)>0&&e.jsx(g,{container:!0,children:e.jsx(Aa,{items:Object.keys($),handleDeleteMultiple:()=>K(!0),title:"Files",deleteBtnText:"Files"})}),e.jsx(Ut,{canManage:o,anchorEl:te,data:u,headCells:wn,count:ve,handleRowClick:Z,sortOrder:ne,sort:L,page:R,selected:$,setSelected:q,rowsPerPage:y,sortHandler:He,handleChangePage:Re,handleChangeRowsPerPage:Te,flatDocs:l,setAnchorEl:(c,E,P)=>{se(c);const C=l.find(A=>A.id==P);U(C)},handleOpenFile:Ye}
2),e.jsx(Cn,{documents:w,coaches:i,selectedFolder:a,open:B,handleClose:ie,setSelectedTreeItem:T,selectedTreeItem:k,fileListRefetch:ue}),e.jsx(jn,{documents:w,coaches:i,selectedTreeItem:k,fileListRefetch:ue,setSelectedTreeItem:T,open:J,handleClose:ie}),e.jsx(Dn,{selectedFile:a,open:x,handleClose:ie}),e.jsx(Fe,{title:a&&(a==null?void 0:a.type)=="2"?"Delete File":"Delete Folder",actionBtnTitle:a&&(a==null?void 0:a.type)=="2"?"Delete File":"Delete Folder",open:z,loading:Ue,handleClose:Ae,handleDelete:Ve,entityName:a==null?void 0:a.name}),e.jsx(La,{items:Y,anchorEl:te,handleClose:()=>{se(null)},enableDividers:!1,itemHeight:"54px",itemPadding:"22px 24px"})]})},oe={container:{backgroundColor:s=>s.palette.common.white},likeButton:{height:{xs:"unset",md:"36px"},color:s=>s.palette.text.primary,borderColor:s=>s.border},iconButton:{height:"40px",width:"40px"},heading:{fontSize:{xs:"20px",md:"32px"},fontWeight:700,lineHeight:"48px"},secondaryText:{color:"text.secondary",fontSize:"14px",lineHeight:"22px"},expandBtn:{fontSize:"13px",fontWeight:700,lineHeight:"22px",color:"text.primary",backgroundColor:"unset","&:hover":{backgroundColor:"unset"}},paper:{background:s=>s.backgroundColor.body,borderRadius:"8px"}},In=({setAnchorEl:s,handleSetContainerHeight:m,session:o,canManage:n=!0,rating:_={},videoLikesCount:p,isLikeLoading:v,isLikedByUser:I,setIsLikedByUser:w,handleChangeRating:V})=>{var x,G;const Y=Pe(),[D,$]=t.useState(!1),q=(x=Da(vt,{id:o==null?void 0:o.duration}))==null?void 0:x.name,z=Ba(a=>a.breakpoints.down("md")),K=Y.id===(o==null?void 0:o.user_id),k=t.useCallback(a=>{a!==null&&m(a.offsetHeight)},[m]),[T,B]=t.useState(!1),[Q,J]=t.useState(!1),ae=()=>{I||(B(!0),setTimeout(()=>B(!1),400)),w(a=>!a)};return e.jsxs(g,{container:!0,direction:"column",p:3,gap:2,sx:oe.container,ref:k,children:[e.jsxs(g,{container:!0,gap:1,direction:"column",children:[e.jsxs(g,{container:!0,alignItems:"center",flex:1,children:[e.jsx(g,{flex:1,children:e.jsx(N,{sx:oe.heading,children:o==null?void 0:o.sessionName})}),n&&e.jsx(an,{sx:oe.iconButton,onClick:a=>{a.stopPropagation(),s(a.currentTarget)},children:e.jsx(tn,{})})]}),e.jsxs(g,{container:!0,alignItems:"center",gap:1,display:{xs:"none",sm:"flex"},children:[e.jsxs(N,{sx:oe.secondaryText,children:["Session Type: ",(G=Da(Ct,{id:o==null?void 0:o.sessionType}))==null?void 0:G.name]}),q?e.jsxs(e.Fragment,{children:[e.jsx(N,{sx:oe.secondaryText,children:"•"}),e.jsxs(N,{sx:oe.secondaryText,children:[q," min"]})]}):e.jsx(e.Fragment,{})]})]}),e.jsx(g,{children:e.jsx(nn,{sx:oe.paper,elevation:0,children:e.jsx(g,{container:!0,direction:"column",p:1,children:o!=null&&o.sessionObjective?e.jsxs(e.Fragment,{children:[e.jsx(sn,{in:D,timeout:"auto",sx:[{visibility:"unset"},z?{minHeight:0}:{minHeight:"24px !important"}],children:e.jsx(N,{children:o==null?void 0:o.sessionObjective})}),e.jsx(g,{children:e.jsx(_e,{disableRipple:!0,customStyles:oe.expandBtn,text:`${D?"Show Less":"Show More"}`,onClick:()=>$(!D)})})]}):e.jsx(N,{color:a=>a.palette.text.secondary,children:"No session description added"})})})}),e.jsxs(g,{container:!0,gap:1,alignItems:"center",justifyContent:"space-between",children:[e.jsxs(g,{container:!0,gap:1,children:[!!_.avgRating&&e.jsx(N,{fontSize:"18px",fontWeight:700,children:_.avgRating}),e.jsx(on,{emptyIcon:e.jsx(_a,{sx:{width:"24px",height:"24px"}}),icon:e.jsx(_a,{sx:{width:"24px",height:"24px"}}),value:_.userRating,disabled:K,onChange:(a,U)=>{J(!0),setTimeout(()=>J(!1),400),V(U)},sx:{...Q&&{animation:"starPulse 0.35s ease-in-out","@keyframes starPulse":{"0%":{transform:"scale(1)"},"25%":{transform:"scale(1.2)"},"50%":{transform:"scale(0.95)"},"100%":{transform:"scale(1)"}}}}}),e.jsxs(N,{color:"text.secondary",children:[_.totalRatings," Ratings"]})]}),e.jsx(g,{children:e.jsx(_e,{disabled:v,text:p,startIcon:I?e.jsx(rn,{sx:{color:"red",...T&&{animation:"heartBounce 0.35s ease-in-out","@keyframes heartBounce":{"0%":{transform:"scale(1)"},"25%":{transform:"scale(1.35)"},"50%":{transform:"scale(0.9)"},"100%":{transform:"scale(1)"}}}}}):e.jsx(ln,{}),variant:"outlined",customStyles:{...oe.likeButton,"& .MuiButton-startIcon":{marginRight:"6px"}},onClick:ae})})]})]})},On={format_warm_up:"Warm Up",format_cool_down:"Cool Down",format_rondo:"Rondo",format_opposed_skill:"Opposed Skill",format_small_sided_game:"Small Sided Game",format_medium_sided_game:"Medium Sided Game",format_11v11:"11 v 11 Game",format_pattern_of_play:"Pattern of Play",format_phase_of_play:"Phase of Play",format_function:"Function",format_wave_of_play:"Wave of Play",format_individual:"Individual",format_fitness_conditioning:"Fitness and Conditioning",format_lead_practice:"Lead Practice","warm-up":"Warm Up",tactical:"Tactical",technical:"Technical",physical:"Physical","set-piece":"Set Piece","cool-down":"Cool Down","small-sided":"Small Sided Game","match-prep":"Match Preparation",warm_ups:"Warm Ups",main_activities:"Main Activities",final_activities:"Final Activities",additional_activities:"Additional Activities",uncategorised:"Uncategorised"},we={playersSearch:{padding:"24px",backgroundColor:s=>s.palette.common.white},deleteBtn:{height:"36px",borderColor:s=>s.availability.unavailable,color:s=>s.availability.unavailable,"&:hover":{borderColor:s=>s.availability.unavailable}},btn:{height:"36px",color:"text.primary",borderColor:s=>s.border,"&:hover":{borderColor:s=>s.border}},divider:{color:s=>s.divider},searchCustomStyles:{"& .MuiInputBase-root":{padding:"8px 14px",height:{xs:"48px",md:"unset"},maxWidth:{xs:"100%",sm:"320px"}}}},Mn=({practices:s,getSession:m,canManage:o=!0})=>{const{id:n}=Ee(),[_,p]=t.useState(""),v=Ba(b=>b.breakpoints.down("md")),I=t.useRef(null),[w,V]=t.useState(!1),[Y,D
2]=t.useState(!1),[$,q]=t.useState({type:"",id:""}),[z,K]=t.useState([]),[k,T]=t.useState([]),B=`${Xe.CLOUDFRONT_DOMAIN}/${Ze.IMAGES.SESSION_PLANNER.THUMBNAILS}`,Q=({target:{value:b}})=>{p(b)},J=()=>{K([])},ae=(b,S,M)=>{const i=[...k[M]||[]],[h]=i.splice(b,1);return i.splice(S,0,h),i},x=b=>{const{destination:S,source:M}=b;if(!S||S.droppableId!==M.droppableId)return;const i=S==null?void 0:S.droppableId.split("-")[1],h=ae(M.index,S.index,i),y={...k,[i]:h};T(y),U(y)},G=()=>{D(!0)},a=()=>{D(!1),K([])};t.useEffect(()=>{ye(s)||T(s)},[s]);const U=async b=>{const S={id:+n,practices:b},{data:{success:M}}=await he({url:"/update-session",method:"POST",data:S});M&&m()},l=()=>{const b=z.length?z:[$],S={...k};b.forEach(({id:M,type:i})=>{!i||!M||(S[i]=(S[i]||[]).filter(h=>h.id!==M))}),T(S),U(S),a()};return t.useEffect(()=>{T(_?s.filter(b=>b.work_title.toLowerCase().includes(_.toLowerCase())):s)},[_]),e.jsxs(e.Fragment,{children:[e.jsx(g,{container:!0,gap:2,alignItems:"center",sx:we.playersSearch,children:e.jsx(g,{flex:1,children:e.jsx(Xt,{onChange:Q,value:_,customStyles:we.searchCustomStyles})})}),!!z.length&&e.jsx(Aa,{items:z,deleteBtnText:"Practices",handleDeleteMultiple:()=>{},rightElement:e.jsxs(g,{container:!0,gap:2,children:[e.jsx(_e,{onClick:J,text:"Deselect All",variant:"outlined",customStyles:we.btn}),e.jsx(cn,{flexItem:!0,sx:we.divider,orientation:"vertical"}),e.jsx(_e,{onClick:G,text:"Delete Practices",variant:"outlined",customStyles:we.deleteBtn})]})}),e.jsx(re,{height:`calc(100% - ${z.length?"173":"104"}px)`,overflow:v?"unset":"auto",children:e.jsx(Ea,{onDragEnd:x,children:!ye(k)&&Object.entries(k).filter(([,b])=>Array.isArray(b)&&b.length>0).flatMap(([b,S])=>{const M=S.reduce((i,h)=>{const y=(h==null?void 0:h.practice_type_id)||b||"uncategorised";return(i[y]=i[y]||[]).push(h),i},{});return Object.entries(M).map(([i,h])=>[i,h,b])}).map(([b,S,M],i)=>{const h=M,y=On[b]||String(b).replace(/[-_]+/g," ").replace(/\b\w/g,r=>r.toUpperCase());return e.jsxs(g,{container:!0,flexDirection:"column",mb:2,children:[e.jsx(g,{container:!0,px:3,py:3,children:e.jsx(N,{fontSize:18,fontWeight:600,children:y})}),e.jsx(Sn,{droppableId:`droppable-${h}`,children:e.jsxs(re,{px:3,children:[S.length?S==null?void 0:S.map((r,R)=>e.jsx(xn,{draggableId:`${r==null?void 0:r.id}-${R}`,index:R,children:e.jsx(re,{mb:2,children:e.jsx(bn,{index:R,id:r==null?void 0:r.id,practice:r,isSelectable:o,showRemoveIcon:o,title:r==null?void 0:r.work_title,description:r==null?void 0:r.work_description,imageUrl:r.thumbnail_signed_url||gn(B,r.thumbnail),checked:z.some(H=>H.id===r.id&&H.type===h),setSelectedPractices:K,handleRemovePractice:()=>{q({type:h,id:r==null?void 0:r.id}),G()},mediaType:r==null?void 0:r.media_type,practiceSource:"SESSION_PLANNER",showPracticeSourceIcon:!1,type:h})},R)},`${r==null?void 0:r.id}-${R}`)):e.jsx(N,{color:"text.secondary",textAlign:"center",children:"No practices added yet..."}),e.jsx(re,{ref:I})]})})]},`${h}-${b}-${i}`)})})}),e.jsx(Fe,{title:"Delete Practice",actionBtnTitle:"Delete Practice",open:Y,handleClose:a,handleDelete:l})]})},Je={container:{height:"100%"},menuIcon:{color:"#454F5B",height:"20px",width:"20px"}},Mi=()=>{var aa,ta,na,sa,ia,oa,ra,la,ca,da,ma,ua,pa;const s=at(),{id:m}=Ee(),o=tt(),[n]=Oa(),_=((aa=o.state)==null?void 0:aa.currentLibrary)||"club-library",p=ge(f=>f.club),v=Pe(),I=ge(f=>{var j;return(j=f==null?void 0:f.user)==null?void 0:j.userPermission}),[w,V]=t.useState(0),[Y,D]=t.useState(null),[$,q]=t.useState(0),[z,K]=t.useState(!1),[k,T]=t.useState(!1),{createSession:B=!1}=ge(f=>f.drawer.sessionPlanner),[Q,J]=t.useState(!1),[ae,x]=t.useState(!1),[G,a]=t.useState(!1),U=Ma(),[l,b]=t.useState({}),[S,M]=t.useState(!1),[i,h]=t.useState(!1),[y,r]=t.useState(!1),[R,H]=t.useState(!1),[ve,Se]=t.useState(0),[u,O]=t.useState(null),[L,W]=t.useState(!1),[ne,ce]=t.useState(!1),[te,se]=t.useState(!1),[Ie]=le(Mt),[Ue]=le(Tt),[xe,Oe]=t.useState(!1),[Ce,de]=t.useState({}),[$e,X]=t.useState({avgRating:0,userRating:0,totalRatings:0}),ue=nt(),ze=I.planId>=4||ue,Z={...(sa=(na=(ta=v==null?void 0:v.userRolesPermissions)==null?void 0:ta.permissions)==null?void 0:na.sessionPlanner)==null?void 0:sa[st(_)],share:(la=(ra=(oa=(ia=v==null?void 0:v.userRolesPermissions)==null?void 0:ia.permissions)==null?void 0:oa.sessionPlanner)==null?void 0:ra.mediaSharing)==null?void 0:la.share,...I.planId===4&&!ue?{addToGlobalLibrary:(ua=(ma=(da=(ca=v==null?void 0:v.userRolesPermissions)==null?void 0:ca.permissions)==null?void 0:da.globalLibrary)==null?void 0:ma.general)==null?void 0:ua.add}:{}},ie=v.id===(l==null?void 0:l.user_id),Me=(Z==null?void 0:Z.manage)===ga.YES||(Z==null?void 0:Z.manage)===ga.LIMITED&&ie||ie,Te=()=>{Oe(!0),s(ha(!1))},Re=()=>{Oe(!1)},He=()=>{H(!0)},be=()=>{H(!1)},We=()=>{s(ha(!1))},Ae=f=>{V(f)},Ve=(f,j)=>{D(f)},Ye=()=>{D(null)},ke=(f,j)=>{q(j)},c=()=>{M(!0),Te()},E=()=>{T(!0)},P=()=>{T(!1)},C=()=>{a(!0)},A=()=>{a(!1)},F=async()=>{const{data:{success:f}}=await he({url:"/delete-session",method:"DELETE",data:{ids:[l==null?void 0:l.id]}});f&&U(-1),P()},ee=()=>{h(!0)},je=()=>{h(!1)},Ga=()=>{r(!0)};t.useEffect(()=>{r(!1)},[]);const Ua=async()=>{const{data:{createSaveForLaterEntry:{success:f,message:j,status:d}}}=await Ue({variables:{createSaveForLaterItemInput:{type:rt.SESSION_PLANNER_SESSION,item_id:+m}}});f?n({msg:j||"Item saved successfully.",variant:"success"}):!f&&d===409&&n({msg:j||"This item has already been added to your saved content list.",variant:"success"})},ea=[...(p==null?void 0:p.id)===(l==null?void 0:l.club_id)?[{name:"Manage",icon:Pa,onClick:Te}]:[],{name:"Add to Dugout Session",icon:it,onClick:()=>{ze?C():Ga()}},..._==="my-library"||_==="club-library"||_==="shared"?[{name:"Add to Global Library",icon:ut,onClick:()=>se(!0)}]:[],{name:"Duplicate",icon:qa,onClick:c},{name:"Export PDF",icon:Ka,onClick:()=>ee()},{name:"Save for Later",icon:mt,iconCustomStyles:Je.menuIcon,onClick:()=>{Ua()}},{name:"Share",icon:dt,onClick:()=>He()},...(p==null?void 0:p.id)===(l==null?void 0:l.club_id)?[{name:"Delete",icon:Ia,onClick:()=>E()}]:[]],qe=async()=>{var me,pe;const f=await he({url:`/single-session/${+m}`,method:"GET"}),j=(me=f==null?void 0:f.data)==null?void 0:me.success,d=(pe=f==null?void 0:f.data)==null?void 0:pe.data;if(j){const Ke=yn(d.session_planner_works,"session_planner_session_work.practice_type"),Qe=_n(Ke,(De,Le)=>lt[Le]||Le);b({...d,sessionName:d.session_name,visibility:d.type,sessionType:d.session_type_id,difficultyAgeGroup:d.age_group_id,noOfPlayers:d.no_of_players,language:d.language,sessionObjective:d.session_objective,technical:d.technical_id,tactical:d.tactical_id,physical:d.physical,social:d.social,psychological:d.psychological,unitRelationShip:d.unit_relationship,durationMins:d.duration,coachNotes:d.coach_notes,practices:{...Object.values(ct).reduce((De,Le)=>(De[Le]=[],De),{}),...Qe}}),O((d==null?void 0:d.isLikedByUser)===1),Se(d==null?void 0:d.likes),X({avgRating:d.average_rating,totalRatings:d.totalRatings,userRating:d.userRating||0})}},$a=async(f,j)=>{x(!0);const{data:d}=await he({url:"/share-session",method:"POST",data:f});d!=null&&d.success&&(n({msg:(d==null?void 0:d.message)||"Session successfully shared",variant:"success"}),be(),j()),x(!1)},za=async f=>{const j=f===null,{data:d}=await he({url:j?"/clear-session-planner-session-rating":"/rate-session-planner-session",method:"POST",data:j?{id:+m}:{id:+m,rating:f}}),{success:me,data:pe}=d||{};if(me){const{averageRating:Ke,totalRatingsCount:Qe}=pe;X(De=>({...De,avgRating:Ke,totalRatings:Qe,userRating:j?0:f}))}},Ha=async()=>
2{if(!ie){const{data:f}=await he({url:"/view-session-planner-session",method:"POST",data:{id:+m}})}};t.useEffect(()=>{if(u===null)return;(async()=>{var d;W(!0);const{data:j}=await he({url:"/like-session-planner-session",method:"POST",data:{id:+m,status:u}});Se((d=j.data)==null?void 0:d.likesCount),W(!1)})()},[u]),t.useEffect(()=>{qe()},[m]),t.useEffect(()=>{l!=null&&l.user_id&&Ha()},[l==null?void 0:l.user_id]);const Wa=async()=>{var d,me,pe;if(((d=l==null?void 0:l.session_planner_works)==null?void 0:d.length)>6){n({msg:"You can only add sessions that contain up to 6 practices.",variant:"error"}),se(!1);return}ce(!0);const f={type:"SESSION_PLANNER_SESSION",item_ids:[l.id]},{data:j}=await Ie({variables:{createGlobalLibraryItemInput:f}});(me=j==null?void 0:j.createGlobalLibraryEntry)!=null&&me.success?n({msg:"Practice added to Global Library successfully",variant:"success"}):n({msg:((pe=j==null?void 0:j.createGlobalLibraryEntry)==null?void 0:pe.message)||"Failed to add practice to Global Library",variant:"error"}),ce(!1),se(!1)},Va=f=>{const{destination:j,source:d,draggableId:me}=f;if(j&&d.droppableId===j.droppableId){de(f);return}};return t.useEffect(()=>{B&&Re()},[B]),e.jsxs(Ea,{onDragEnd:Va,children:[e.jsxs(re,{width:B||xe?`calc(100% - ${ot})`:"100%",height:"100%",children:[e.jsx(In,{handleSetContainerHeight:Ae,setAnchorEl:Ve,session:l,canManage:fa(ja(ea),Z,ie).length>0,rating:$e,videoLikesCount:ve,isLikeLoading:L,isLikedByUser:u,setIsLikedByUser:O,handleChangeRating:za}),e.jsx(re,{height:`calc(100% - ${w+10}px)`,children:e.jsx(Lt,{tabHeaderPadding:"unset",padding:0,labels:["Practices","Documents"],selectedTab:$,handleTabChange:ke,tabZIndex:999999,components:[e.jsx(re,{sx:Je.container,children:e.jsx(Mn,{practices:l.practices,getSession:qe,canManage:Me})},"Practices"),e.jsx(re,{sx:Je.container,children:e.jsx(Pn,{pdfAddedAsDocument:Q,setPdfAddedAsDocument:J,canManage:Me})},"Documents")]})}),e.jsx(La,{items:fa(ja(ea),Z,ie),width:"220px",enableDividers:!1,anchorEl:Y,handleClose:Ye}),e.jsx(Gt,{open:G,handleClose:A,videoIds:ye(l)?[]:[...(pa=l==null?void 0:l.session_planner_works)==null?void 0:pa.map(f=>f.id)],workflow:"SESSION_PLANNER",importedAsSession:!0}),e.jsx(Fe,{title:"Delete Session",actionBtnTitle:"Delete Session",entityName:l==null?void 0:l.sessionName,open:k,handleClose:P,handleDelete:F})]}),B&&e.jsx(ba,{open:B,handleCloseDrawer:We,sideDrawerDraggedResult:Ce,setSideDrawerDraggedResult:de}),(S||xe)&&e.jsx(ba,{open:xe,handleCloseDrawer:Re,session:l,isDuplicate:S,refetchData:qe,sideDrawerDraggedResult:Ce,setSideDrawerDraggedResult:de}),e.jsx(hn,{open:i,handleCloseModal:je,session:l,setPdfAddedAsDocument:J}),e.jsx(Nt,{modalBackgroundImage:Ya,open:y,handleClose:()=>r(!1),heading:"Unlock the session planner with Coach Bundle Max",mainHeading:"Create Animated Sessions and Build Session Plans",description:"The time has come to integrate our Touchtight Animation tool with our Session Planner, making coaches lives that little bit easier."}),e.jsx(xa,{open:R,title:"Share Practice(s)",currentLibrary:_,handleClose:be}),e.jsx(xa,{loading:ae,open:R,mediaType:"session",media_ids:[m],title:"Share Sessions(s)",currentLibrary:_,handleSubmit:$a,handleClose:be}),e.jsx(Bt,{title:"Add to Global Library",loading:ne,description:"Are you sure you want to add the selected content in the Global Library?",open:te,handleClose:()=>se(!1),actionHandler:Wa})]})};export{Mi 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.