1import{a as ie}from"./chunk-HHSM57B4.js";import"./chunk-MX4W3OL3.js";import{c as Z,d as ee,e as te}from"./chunk-UR5J6BCV.js";import{b as K}from"./chunk-H3ZOHFO7.js";import"./chunk-CIKJJUSN.js";import"./chunk-RRZRS5BZ.js";import"./chunk-LY7WOQZN.js";import"./chunk-T3PLPHIG.js";import"./chunk-2JW6ZMWV.js";import"./chunk-NIP74ZKI.js";import"./chunk-QNUNLKYK.js";import"./chunk-RE4JJFV5.js";import"./chunk-COEKBYWO.js";import"./chunk-E2K2LIS4.js";import"./chunk-KJKRX6VS.js";import"./chunk-2CRWMDGS.js";import{a as q,b as X}from"./chunk-4WMDX4SQ.js";import"./chunk-IQLKO45Z.js";import"./chunk-V6KBZVCY.js";import"./chunk-6FQQM4CE.js";import{a as O,d as J,i as z,j as Y}from"./chunk-VTTO24NQ.js";import"./chunk-Y5VOXWTF.js";import{n as B,q as D}from"./chunk-YWHNFDXQ.js";import"./chunk-FCTHY2PU.js";import"./chunk-DPVJW3LI.js";import{f as H,h as U}from"./chunk-GW33KQPR.js";import{T as $,U as W}from"./chunk-TUEKBDZZ.js";import"./chunk-RLPOKPIS.js";import{a as w}from"./chunk-TPES7EAS.js";import{G as Q,c as G,h as j,m as N}from"./chunk-QXJM3TTT.js";import"./chunk-TMOIAHHX.js";import{$a as b,Fb as I,Ib as c,Jb as A,Rb as L,Sb as R,Tb as k,Wa as g,Xa as f,_a as _,ab as v,bb as r,cb as s,db as S,ga as l,kb as T,o as m,p as h,qb as C,sa as x,tb as d,za as F}from"./chunk-DJNWGYMM.js";import{ea as M,f as E}from"./chunk-VOZAGDK7.js";import{j as P}from"./chunk-E5QWB6YB.js";var le="https://regplay.nyc3.cdn.digitaloceanspaces.com/RPVideoPoster.png",ce="https://regplay.nyc3.cdn.digitaloceanspaces.com/",de=/^https?:\/\//i;function pe(n,a){return de.test(n)?n:`${a}${n}`}function me(n){return n.toLowerCase().includes(".m3u8")?"application/x-mpegURL":"video/mp4"}function he(n){return(a,t,i,o={})=>{let e=pe(i,n);return{id:a,title:t,poster:o.poster??le,sources:[{src:e,type:o.type??me(e)}],keywords:o.keywords}}}function ne(n){let a=(n.siteName||"").toLowerCase(),t=(n.association||"").toLowerCase(),i=n.persona||{},o=n.videoStorageUrl||ce,e=he(o),u=i.siteAdmin===!0||i.director===!0||i.tinc===!0||i.hq===!0||i.hasSupportTools===!0||i.clubStaff===!0,V=i.siteAdmin===!0||i.tinc===!0||i.hq===!0||i.hasSupportTools===!0,p=[],ae=a==="myas"?[e("create-myas-account","Create a MYAS Account","help/myas/createAccount.mp4"),e("add-child","Add Child","help/myas/addChild.mp4"),e("join-league-roster-password","Joining the League with Roster Password","help/myas/joiningTheLeagueWithRosterPassword.mp4"),e("join-league-free-agent","Joining the League as a Free Agent","help/myas/joinALeagueAsAFreeAgent.mp4"),e("join-league-invited-player","Joining the League as an Invited Player","help/myas/joiningTheLeagueAsAnInvitedPlayer.mp4")]:[e("register","Register","help/registerVerify.mp4"),e("add-child","Add Child","help/guardian/v1AddChild.mp4"),e("accept-roster-invitation-child","Accepting a roster invitation for a child","help/guardian/v3AcceptInvitationForAChild.mp4"),e("join-team-individual-registration-child","Joining a Team that selected Individual Registration for a Child","help/guardian/v4JoinTeamWithIndvRegistrationForAChild.mp4"),e("join-team-roster-password-child","Join a Team for a Child Coach provides a Roster Password","help/guardian/v5JoinATeamForChildTeamUsesARosterPassword.mp4"),e("compliance-document-upload","Compliance Document Upload","help/guardian/ComplianceUpload.mp4")];p.push({id:"guardian",label:"Guardian",videos:ae});let re=a==="myas"?[e("create-myas-account","Create a MYAS Account","help/myas/createAccount.mp4"),e("create-team","How to Create a Team","https://regplay.nyc3.cdn.digitaloceanspaces.com/help/myas/creatingATeamII.mp4"),e("get-team-roster-password","Getting Your Team's Roster Password","https://regplay.nyc3.cdn.digitaloceanspaces.com/help/myas/gettingYourTeamsRostePassword.mp4"),e("invite-player-to-my-team","Inviting a Player to My Team","https://regplay.nyc3.cdn.digitaloceanspaces.com/help/myas/invitingAPlayerToMyTeam.mp4"),e("enter-event","Entering an Event","help/coach/v7EnterAnEvent.mp4"),e("enter-game-scores","Entering Game Scores","help/coach/coachScoreEntry.mp4")]:[e("register","Register","help/registerVerify.mp4"),e("create-team","How to Create a Team","help/coach/vCreatingATeam.mp4"),e("roster-invite-existing-player","Roster - Invite Existing Player","help/coach/v2InviteExistingPlayer.mp4"),e("print-team-roster","Printing a Team Roster","help/coach/v6RosterPrint.mp4"),e("enter-event","Entering an Event","help/coach/v7EnterAnEvent.mp4"),e("assign-fields-travel-league","Coaches Assigning Fields for Travel/League Play","help/coach/FieldAssignmentForLeagueGames.mp4"),e("compliance-document-upload","Compliance Document Upload","help/guardian/ComplianceUpload.mp4"),e("ace-compliance-course-enrollment","ACE Compliance & Course Enrollment","help/coach/ace-enrollment.mp4")];if(p.push({id:"coach",label:"Coach",videos:re}),p.push({id:"association",label:"Association",videos:[e("register-myba","How to Register for MYBA","help/club/MYBA-Registration.mp4"),e("add-team-association","How to Add a Team to the Association","help/club/addTeam.mp4"),e("invite-coaches-team","How to Invite Coaches to the Team","help/club/addCoaches.mp4"),e("add-games-team","How to Add Games for the Team","help/club/addGames.mp4"),e("invite-staff-association","How to Invite Staff Members to the Association","help/club/addStaff.mp4"),e("assignors-access-schedules","Giving Assignors Access to Association Schedules","help/director/GivingAssignorsAccesstoA
1ssociationSchedules.mp4")]}),p.push({id:"umpire",label:"Umpire",videos:[e("umpire-registration","Officials Registration","help/umpire/umpireRegistration.mp4"),e("umpire-exam","Umpire Exam","help/umpire/umpire-exam.mp4")]}),u&&p.push({id:"director",label:"Director",videos:[e("create-event","Creating an Event","help/director/v8CreateEvent.mp4"),e("add-teams-event","Add Teams to an Event","help/director/v9AddTeamsToYourEvent.mp4"),e("import-teams","Importing Teams","help/director/vBtc.mp4"),e("event-schedule","Event Schedule","help/director/v10EventSchedule.mp4"),e("change-game-times","Changing Game Times","help/director/vChangeGameTimesSimple.mp4"),e("shorten-game-times","Shortening Game Times","help/director/vReducingTimeBetweenGames.mp4"),e("mark-fields-unavailable","Marking Fields Unavailable","help/director/vSettingFieldsUnavailable.mp4"),e("recalculate-schedule-block-fields-no-lights","ReCalculating schedule, mark fields unavailable, fields with no lights","help/director/v11CalcScheduleBlockFieldsNoLights.mp4"),e("communication","Communication","help/director/v12Communication.mp4"),e("announcement","Announcement","help/director/v13Announcement.mp4"),e("add-staff-event","Add Staff to an Event","help/director/v14AddStaff2Event.mp4"),e("enter-scores-game-number","Enter Scores via Game Number","help/director/v15EnterScoresViaGameNumber.mp4"),e("clear-scores-team-advancement","Clearing/Backing out Scores and Team Advancement","help/director/vClearingScores.mp4"),e("final-standings-simple","Assigning Final Standing - Simple","help/director/vFinalStandingsSimple.mp4"),e("final-standings-advanced","Assigning Final Standings - Advanced","help/director/v16ComplicatedFinalStandings.mp4"),e("final-standings-qualified-teams","Final Standings - Marking and Emailing Qualified Teams","help/director/v17QualifierTools.mp4")]}),V&&p.push({id:"site-admin",label:"Site Admin",videos:[e("add-subdirector","Adding a SubDirector","help/director/v18SubDirectorSetup.mp4"),e("facility-creation","Facility Creation","help/director/v19FacilityCreation.mp4"),e("support-tools-site-owner","Support tools for site owner","help/director/vSiteOwnerSupportTools.mp4"),e("team-transfer-tools","Team Transfer Tools","help/admin/team-transfer.mp4"),e("approval-ace","Approval of ACE","help/admin/ApprovalofACE.mp4"),e("approval-birth-certificate","Approval of Birth Certificate","help/admin/ApprovalofBirthCertificate.mp4"),e("edit-menu-names","Editing Menu Names","help/admin/EditMenuNames.mp4"),e("bulk-individual-registration-upload","Uploading Individual Registrations with Excel Files","help/admin/site-admin-bulk-indv-registration.mp4")]}),t==="usasb"&&(V||i.director===!0)&&(p.unshift({id:"usasb-training",label:"USA Softball Training Videos",videos:[e("usasb-training-session-2","USA Softball Training Session 2","https://rp-video.nyc3.cdn.digitaloceanspaces.com/usasb/training2/index.m3u8",{type:"application/x-mpegURL",poster:"https://rp-video.nyc3.cdn.digitaloceanspaces.com/usasb/usasb-video-cover.jpg"}),e("usasb-training-session-3","USA Softball Training Session 3","https://rp-video.nyc3.cdn.digitaloceanspaces.com/usasb/training3/index.m3u8",{type:"application/x-mpegURL",poster:"https://rp-video.nyc3.cdn.digitaloceanspaces.com/usasb/usasb-video-cover.jpg"})]}),a==="usasb-oh")){let y=p.find(se=>se.id==="director");y&&y.videos.unshift(e("ohio-softball-district-meeting","Ohio Softball District Meeting","https://rp-video.nyc3.cdn.digitaloceanspaces.com/usasb-oh/district-meeting/index.m3u8",{type:"application/x-mpegURL",poster:"https://nyc3.digitaloceanspaces.com/rp-video/usasb-oh/district-meeting/usasb-oh-district.jpg"}))}return p.filter(y=>y.videos.length>0)}var oe=(n,a)=>a.id;function ue(n,a){if(n&1&&S(0,"mat-tab",5),n&2){let t=a.$implicit;v("label",t.label)}}function ge(n,a){if(n&1&&(r(0,"div",13),S(1,"video-player",14),s(),r(2,"div",15),c(3),s()),n&2){let t=d(2);l(),v("options",t.playerOptions),l(2),A(t.selectedVideo.title)}}function fe(n,a){n&1&&(r(0,"div",3),c(1,"No video is currently selected."),s())}function ve(n,a){n&1&&(r(0,"span",21),c(1,"Copied"),s())}function Ce(n,a){if(n&1){let t=T();r(0,"div",17),C("click",function(){let o=m(t).$implicit,e=d(3);return h(e.onSelectVideo(o))}),r(1,"div",18),c(2),s(),r(3,"div",19)(4,"button",20),C("click",function(o){let e=m(t).$implicit,u=d(3);return h(u.copyVideoLink(e,o))}),r(5,"mat-icon"),c(6,"link"),s(),c(7," Copy link "),s(),g(8,ve,2,0,"span",21),s()()}if(n&2){let t=a.$implicit,i=d(3);I("selected",(i.selectedVideo==null?null:i.selectedVideo.id)===t.id),l(2),A(t.title),l(6),f(i.copiedVideoId===t.id?8:-1)}}function ye(n,a){if(n&1&&_(0,Ce,9,4,"div",16,oe),n&2){let t=d(2);b(t.filteredVideos)}}function Se(n,a){n&1&&(r(0,"div",3),c(1,"No videos match your search."),s())}function xe(n,a){if(n&1){let t=T();r(0,"mat-tab-group",4),C("selectedIndexChange",function(o){m(t);let e=d();return h(e.onSectionChange(o))}),_(1,ue,1,1,"mat-tab",5,oe),s(),r(3,"div",6)(4,"mat-form-field",7)(5,"mat-label"),c(6,"Search videos in this category"),s(),r(7,"mat-icon",8),c(8,"search"),s(),r(9,"input",9),k("ngModelChange",function(o){m(t);let e=d();return R(e.searchTerm,o)||(e.searchTerm=o),h(o)}),C("ngModelChange",function(){m(t);let o=d();return h(o.onSearchChange())}),s()()(),r(10,"div",10)(11,"div",11),g(12,ge,4,2)(13,fe,2,0,"div",3),s(),r(14,"div",12),g(15,ye,2,0)(16,Se,2,0,"div",3),s()()}if(n&2){let t=d();v("selectedIndex",t.activeSectionIndex),l(),b(t.sections),l(8),L("ngModel",t.searchTerm),l(3),f(t.selectedVideo?12:13),l(3),f(t.filteredVideos.length>0?15:16)}}function _e(n,a){n&1&&(r(0,"div",3),c(1,"No help videos are available for your current access level."),s())}var Oe=(()=>{class n{route;router;sections=[];activeSection=null;activeSectionIndex=0;selectedVideo=null;filteredVideos=[];searchTerm="";copiedVideoId=null;playerOptions={sources:[],playListAutoadvance:-1,aspectRatio:"16:9"};_unsubscribeAll=new E;isApplyingQueryState=!1;copiedMessageTimeout=null;constructor(t,i){this.route=t,this.router=i}ngOnInit(){let t=this.readPersonaFlags();this.sections=ne({siteName:w.siteName,association:w.association,persona:t}),this.sections.length!==0&&this.route.queryParamMap.pipe(M(this._unsubscribeAll)).subscribe(i=>{let o={persona:i.get("persona"),video:i.get("video")};this.applyQueryState(o)})}onSectionChange(t){this.isApplyingQueryState||t<0||t>=this.sections.length||t===this.activeSectionIndex&&this.activeSection?.id===this.sections[t]?.id||(this.activeSectionIndex=t,this.activeSection=this.sections[t],this.searchTerm="",this.refreshFilteredVideos(),this.filteredVideos.length>0&&this.setSelectedVideo(this.filteredVideos[0],!1),this.syncQueryParams())}onSearchChange(){if(this.refreshFilteredVideos(),!this.selectedVideo||this.filteredVideos.length===0)return;this.filteredVideos.some(i=>i.id===this.selectedVideo?.id)||(this.setSelectedVideo(this.filteredVideos[0],!1),this.syncQueryParams())}onSelectVideo(t){this.setSelectedVideo(t,!0)}copyVideoLink(t,i){return P(this,null,function*(){if(i.stopPropagation(),!this.activeSection)return;this.setSelectedVideo(t,!0);let o=this.buildShareLink(this.activeSection.id,t.id),e=!1;if(navigator.clipboard?.writeText)try{yield navigator.clipboard.writeText(o),e=!0}catch{e=this.copyTextLegacy(o)}else e=this.copyTextLegacy(o);e&&(this.copiedVideoId=t.id,this.resetCopiedMessage())})}ngOnDestroy(){this.copiedMessageTimeout&&clearTimeout(this.copiedMessageTimeout),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}applyQueryState(t){if(this.sections.length===0)return;this.isApplyingQueryState=!0;let i=this.resolveSelectionFromQuery(t);this.activeSectionIndex=i.sectionIndex,this.activeSection=this.sections[this.activeSectionIndex],this.searchTerm="",this.refreshFilteredVideos(),this.setSelectedVideo(i.video,!1),this.syncQueryParams(),this.isApplyingQueryState=!1}resolveSelectionFromQuery(t){if(t.persona&&t.video){let i=this.sections.findIndex(o=>o.id===t.persona);if(i>-1){let o=this.sections[i].videos.find(e=>e.id===t.video);if(o)return{sectionIndex:i,video:o}}}return{sectionIndex:0,video:this.sections[0].videos[0]}}refreshFilteredVideos(){if(!this.activeSection){this.filteredVideos=[];return}let t=this.searchTerm.trim().toLowerCase();if(!t){this.filteredVideos=[...this.activeSection.videos];return}this.filteredVideos=this.activeSection.videos.filter(i=>{let o=i.title.toLowerCase().includes(t),e=(i.keywords??[]).some(u=>u.toLowerCase().includes(t));return o||e})}setSelectedVideo(t,i){this.selectedVideo=t,this.playerOptions={sources:t.sources,poster:t.poster,playListAutoadvance:-1,aspectRatio:"16:9"},i&&this.syncQueryParams()}
1syncQueryParams(){if(!this.activeSection||!this.selectedVideo)return;let t=this.activeSection.id,i=this.selectedVideo.id,o=this.route.snapshot.queryParamMap.get("persona"),e=this.route.snapshot.queryParamMap.get("video");o===t&&e===i||this.router.navigate([],{relativeTo:this.route,queryParams:{persona:t,video:i},replaceUrl:!0})}buildShareLink(t,i){let o=new URLSearchParams({persona:t,video:i});return`${window.location.origin}/pages/help/videos?${o.toString()}`}copyTextLegacy(t){let i=document.createElement("textarea");i.value=t,i.setAttribute("readonly",""),i.style.position="absolute",i.style.left="-9999px",document.body.appendChild(i),i.select();let o=document.execCommand("copy");return document.body.removeChild(i),o}resetCopiedMessage(){this.copiedMessageTimeout&&clearTimeout(this.copiedMessageTimeout),this.copiedMessageTimeout=setTimeout(()=>{this.copiedVideoId=null},2e3)}readPersonaFlags(){let t=localStorage.getItem("person");if(!t)return{};try{return JSON.parse(t)?.persona??{}}catch{return{}}}static \u0275fac=function(i){return new(i||n)(x(H),x(U))};static \u0275cmp=F({type:n,selectors:[["app-help-center"]],decls:5,vars:2,consts:[["id","helpCenterPage",1,"page-layout","simple","fullwidth"],["title","Support Portal \u2014 Help Center","icon","help",3,"hideBanner"],[1,"content","p-24","mx-auto","help-center-content"],[1,"empty-state"],[3,"selectedIndexChange","selectedIndex"],[3,"label"],[1,"help-center-toolbar","mt-16"],["appearance","outline","subscriptSizing","dynamic",1,"search-field"],["matPrefix",""],["matInput","","placeholder","Try: registration, roster, compliance",3,"ngModelChange","ngModel"],[1,"help-center-layout"],[1,"player-panel"],[1,"list-panel"],[1,"player-shell"],[3,"options"],[1,"selected-video-title","mt-12"],[1,"video-item",3,"selected"],[1,"video-item",3,"click"],[1,"video-title"],[1,"video-actions"],["mat-stroked-button","","color","primary",3,"click"],[1,"copied-label"]],template:function(i,o){i&1&&(r(0,"div",0),S(1,"page-header",1),r(2,"div",2),g(3,xe,17,4)(4,_e,2,0,"div",3),s()()),i&2&&(l(),v("hideBanner",!0),l(2),f(o.sections.length>0?3:4))},dependencies:[Q,G,j,N,K,te,Z,ee,Y,z,O,J,X,q,W,$,D,B,ie],styles:[`#helpCenterPage{width:90%}#helpCenterPage .help-center-content{max-width:1400px;width:100%}#helpCenterPage .help-center-toolbar{display:flex;align-items:center}#helpCenterPage .search-field{width:min(560px,100%)}#helpCenterPage .help-center-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:16px;align-items:start}#helpCenterPage .player-panel,#helpCenterPage .list-panel{background:#fff;border-radius:8px;box-shadow:0 1px 3px #0f172a1f;overflow:hidden}#helpCenterPage .player-shell{padding:12px}#helpCenterPage .selected-video-title{padding:0 16px 16px;font-weight:600;font-size:16px}#helpCenterPage .list-panel{max-height:900px;overflow-y:auto}#helpCenterPage .video-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e2e8f0;cursor:pointer;background:#fff;transition:background-color .12s ease}#helpCenterPage .video-item:hover{background:#f8fafc}#helpCenterPage .video-item.selected{background:#eff6ff}#helpCenterPage .video-title{font-weight:500;line-height:1.3}#helpCenterPage .video-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}#helpCenterPage .copied-label{font-size:12px;font-weight:600;color:#059669}#helpCenterPage .empty-state{padding:24px;color:#475569;font-size:14px}@media(max-width:1080px){#helpCenterPage .help-center-layout{grid-template-columns:1fr}#helpCenterPage .list-panel{max-height:none}}@media(max-width:720px){#helpCenterPage .video-item{flex-direction:column;align-items:flex-start}#helpCenterPage .video-actions{width:100%;justify-content:flex-start}} 2`],encapsulation:2})}return n})();export{Oe as HelpCenterComponent};
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.