PageSourceSearch

https://spokaneyouthhockey.com/chunk-FSRY4DTU.js

js spokaneyouthhockey.com collected 2026-10-06 05:18:40 UTC 17,898 bytes, 75 lines download raw bytes

1import{b as Ae,d as Pe}from"./chunk-EDX4FAQU.js";import"./chunk-N7LXPUNV.js";import"./chunk-56A7BQAL.js";import"./chunk-S4KZFP6D.js";import"./chunk-QTPEYOBK.js";import{a as we}from"./chunk-XHEHBBIB.js";import{a as E}from"./chunk-J7GAYBOE.js";import"./chunk-QD4M6VLD.js";import"./chunk-OETXZY34.js";import"./chunk-MORY5OOD.js";import"./chunk-RCQFVG4N.js";import"./chunk-U4LHYVR2.js";import"./chunk-IJCOGGVP.js";import"./chunk-PHZJLURG.js";import"./chunk-ZLBN6FZV.js";import"./chunk-BGAAGYCA.js";import"./chunk-YESMKLGV.js";import"./chunk-RBGYAKJK.js";import"./chunk-3DS6GUXH.js";import"./chunk-34RB33U7.js";import"./chunk-PMGCU7IV.js";import"./chunk-5QYJ3SBW.js";import"./chunk-OVWSJLKC.js";import"./chunk-QLS2HGKB.js";import{a as Ue,b as Ie}from"./chunk-6TVESXYK.js";import{a as ve,b as ye}from"./chunk-S3Q2DAAY.js";import{b as De}from"./chunk-B73O2JXS.js";import"./chunk-IIL5ULVK.js";import"./chunk-HUAQNSI3.js";import"./chunk-3CBEWH77.js";import"./chunk-JL5JJMSL.js";import{a as Te}from"./chunk-MCU24RQK.js";import"./chunk-V2ZNI7PU.js";import"./chunk-HSJ2CSTO.js";import"./chunk-MSSEBO72.js";import"./chunk-FP3J5B6H.js";import"./chunk-BQRBWX66.js";import"./chunk-L5ZOOU2J.js";import"./chunk-KOPGZV6B.js";import"./chunk-BTQPKA7U.js";import"./chunk-RESNPHP2.js";import"./chunk-AF6G7XUW.js";import"./chunk-D5WNKLON.js";import"./chunk-FLFERWGO.js";import"./chunk-5MLCZDLN.js";import"./chunk-XTQNEHPV.js";import"./chunk-HETGIIFW.js";import"./chunk-QNNPLEYM.js";import"./chunk-VSK3DNK7.js";import"./chunk-6F4SDY22.js";import"./chunk-QUG4HHXZ.js";import"./chunk-I2Y7UB4V.js";import"./chunk-PSOULVZL.js";import"./chunk-XAXLMUF6.js";import"./chunk-RXHK7XE4.js";import"./chunk-O3BD2LYL.js";import"./chunk-6ORYOOUQ.js";import"./chunk-ZB44PIZA.js";import"./chunk-YBFQQSLW.js";import"./chunk-MB6YAV2B.js";import"./chunk-ADMKBOBN.js";import"./chunk-LCPPMNQ3.js";import"./chunk-BT6MT7GL.js";import"./chunk-RF4ESXXV.js";import"./chunk-IN6JNWJL.js";import"./chunk-GT2RX7V4.js";import"./chunk-OBZUIDEP.js";import"./chunk-WZTRTKC4.js";import"./chunk-NTPMZIRS.js";import"./chunk-AEK7Z5QZ.js";import{b as be}from"./chunk-64WGMCQL.js";import"./chunk-DBNHDKST.js";import"./chunk-CHFQMRFX.js";import"./chunk-4CVZBQNN.js";import"./chunk-IAGBH4HM.js";import"./chunk-MJKUV2I5.js";import"./chunk-N5PZSBUY.js";import"./chunk-4T73AMAL.js";import"./chunk-G2OHGTWE.js";import"./chunk-NAW6KKAQ.js";import"./chunk-GNX3F6NH.js";import"./chunk-VFXJ4ZBD.js";import{d as A}from"./chunk-QQKJHWTF.js";import{Sb as P,ac as xe,bc as Ce,c as fe}from"./chunk-PXZNPNHI.js";import"./chunk-KWNDGQWR.js";import"./chunk-2ZFY6MCW.js";import"./chunk-KQ7PEKEE.js";import"./chunk-KVMIYEBS.js";import"./chunk-DLHY2JKF.js";import"./chunk-WLMRFXCZ.js";import"./chunk-WN3UI2QV.js";import"./chunk-YVLOHBDK.js";import{a as _e}from"./chunk-Z3AXU4EF.js";import"./chunk-TP3A6IN2.js";import"./chunk-XNFXA3ZT.js";import"./chunk-QLTRNXEK.js";import"./chunk-TEFEWVO6.js";import"./chunk-ZB64W4XA.js";import"./chunk-SVABVB5X.js";import"./chunk-CMY6WAF3.js";import"./chunk-FUY7HSJY.js";import"./chunk-JTYXZXFU.js";import"./chunk-7MK6I7GJ.js";import"./chunk-3HFTO6XY.js";import"./chunk-XNSH6ILV.js";import"./chunk-IZKA562T.js";import"./chunk-BROSYERN.js";import"./chunk-Y2KCFOCP.js";import"./chunk-Z52L74DH.js";import"./chunk-CYDDDATF.js";import"./chunk-GWQPV7EH.js";import"./chunk-RQ74XYI3.js";import"./chunk-3IFGWXMA.js";import"./chunk-EME7BUOO.js";import"./chunk-JKMNVQUA.js";import"./chunk-QH3IRCHN.js";import"./chunk-PLEH3NAH.js";import"./chunk-GXCJ5QS4.js";import"./chunk-4D5SN44G.js";import"./chunk-22ACI5KU.js";import"./chunk-FXUQQQIE.js";import"./chunk-VVVN3YIZ.js";import"./chunk-FSUBAQYH.js";import"./chunk-7CVCGK4Q.js";import"./chunk-FWW3IJT2.js";import"./chunk-B6LCWWQX.js";import"./chunk-HYGNXZJR.js";import{a as he}from"./chunk-B6XXRKU5.js";import"./chunk-6Q5DDO7R.js";import"./chunk-RW2MVE4O.js";import"./chunk-3ZVRFUA4.js";import"./chunk-H4PCL6BZ.js";import"./chunk-NXTJBJRP.js";import"./chunk-U22BTVEZ.js";import{Eg as ue,Gb as pe,Ia as de,Kb as me,Mb as ce,Wc as ge,kh as Se,xa as le}from"./chunk-X5J6QTCG.js";import{$ as U,$a as g,Ad as F,C as L,Db as Z,E as Q,Fa as l,Fb as ee,H as q,Ib as i,Jb as R,Ka as f,Lc as te,Ma as J,Na as I,Qb as V,Rb as W,Sb as N,Th as re,U as y,_ as Y,bb as u,d as G,dc as ie,di as ae,eb as X,fa as m,fb as H,ga as c,gb as S,hb as a,ib as s,jb as _,k as T,pj as se,q as v,qb as C,rf as j,sb as b,tb as p,u as $,vd as ne,xb as K,yb as D,yd as oe,zb as w}from"./chunk-SMW7PHYX.js";import{a as M,b as z}from"./chunk-BMIYOSOG.js";var Me=["signUpWizard"],ze=["bundleWizard"],Le=["timeSlotAddDialog"],Re=o=>[o],Ve=(o,e)=>e.id;function We(o,e){o&1&&(i(0,`
2            `),a(1,"app-loader"),i(2,"Loading program preferences..."),s(),i(3,`
3        `))}function Ne(o,e){o&1&&(i(0,`
4            `),a(1,"app-inline-alert",10),i(2,`
5                Unable to load program preferences.
6            `),s(),i(3,`
7        `)),o&2&&(l(),S("isInline",!0))}function Fe(o,e){o&1&&(i(0,`
8                        `),_(1,"hr",18),i(2,`
9                    `))}function je(o,e){o&1&&(i(0,`
10                            `),a(1,"span",19),i(2,`
11                                `),_(3,"i",20),i(4,`
12                            `),s(),i(5,`
13                        `))}function Oe(o,e){if(o&1&&(i(0,`
14                            `),_(1,"i",21),i(2,`
15                        `)),o&2){let t=p().$implicit;l(),S("ngClass",t.icon)}}function Ge(o,e){if(o&1){let t=C();i(0,`
16                            `),a(1,"div",22),i(2,`
17                                `),a(3,"app-pill",23),i(4,"Completed"),s(),i(5,`
18                                `),a(6,"div",24),i(7,`
19                                    `),a(8,"button",25),b("click",function(){m(t);let r=p().$implicit,d=p(2);return c(d.goTo(r))}),i(9,`
20                                        Add `),_(10,"i",26),i(11,`
21                                    `),s(),i(12,`
22                                `),s(),i(13,`
23                            `),s(),i(14,`
24                        `)}}function $e(o,e){if(o&1){let t=C();i(0,`
25                            `),a(1,"button",27),b("click",function(){m(t);let r=p().$implicit,d=p(2);return c(d.goTo(r))}),i(2,`
26                                Go `),_(3,"i",28),i(4,`
27                            `),s(),i(5,`
28                        `)}}function Qe(o,e){if(o&1&&(i(0,`
29                    `),g(1,Fe,3,0),a(2,"div",14),i(3,`
30                        `),g(4,je,6,0)(5,Oe,3,1),a(6,"div",15),i(7,`
31                            `),a(8,"span",16),i(9),s(),i(10,`
32                            `),a(11,"span",17),i(12),s(),i(13,`
33                        `),s(),i(14,`
34                        `),g(15,Ge,15,0)(16,$e,6,0),s(),i(17,`
35                `)),o&2){let t=e.$implicit,n=e.$index;l(),u(n!==0?1:-1),l(3),u(t.completed?4:5),l(4),ee("text-grey",t.completed),l(),R(t.label),l(3),R(t.desc),l(3),u(t.completed?15:16)}}function qe(o,e){if(o&1&&(i(0,`
36            `),i(1,`
37            `),a(2,"div",11),i(3,`
38                `),X(4,Qe,18,7,null,null,Ve),s(),i(6,`
39            `),a(7,"div",12),i(8,`
40                `),a(9,"a",13),i(10,`
41                    Back to Program Overview
42                `),s(),i(11,`
43            `),s(),i(12,`
44        `)),o&2){let t=p();l(4),H(t.actionItems),l(5),S("routerLink",t.overviewLink)}}function Ye(o,e){if(o&1){let t=C();i(0,`
45    `),a(1,"app-add-registration-dialog",29),b("selectionMade",function(r){m(t);let d=p();return c(d.bundleTypeChosen(r))})("cancel",function(){m(t);let r=p();return c(r.bundleTypeCancelled())}),s(),i(2,`
46`)}if(o&2){let t=p();l(),S("programID",t.programID)("programTypeID",t.ProgramType.TRAINING_SESSIONS)("reportSelection",!0)}}function Je(o,e){o&1&&(i(0,`
47            `),_(1,"app-skeleton-template",31),i(2,`
48        `))}function Xe(o,e){if(o&1){let t=C();i(0,`
49        `),a(1,"app-registration-add",30,0),b("completed",function(){m(t);let r=p();return c(r.bundleAdded())})("cancelled",function(){m(t);let r=p();return c(r.bundleAddCancelled())}),i(3,`
50        `),s(),i(4,`
51        `),i(5,`
52        `),g(6,Je,3,0)}if(o&2){let t=Z(2),n=p();l(),S("dialogMode",!0)("preselectedCostType",n.bundleSetup==null?null:n.bundleSetup.registrationCostTypeID)("preselectRegistrationTemplateID",n.bundleSetup==null?null:n.bundleSetup.registrationTemplateID)("preselectRegistrationID",n.bundleSetup==null?null:n.bundleSetup.duplicateRegistrationID),l(5),u(t.loading?6:-1)}}function He(o,e){if(o&1){let t=C();i(0,`
53    `),a(1,"app-time-slot-add-dialog",32,1),b("confirmInitiated",function(r){m(t);let d=p();return c(d.addTimeSlots(r))}),i(3,`
54    `),s(),i(4,`
55`)}if(o&2){let t=p();l(),S("signUpTypeID",t.SignUpType.PAID)("selectableSignUps",ie(2,Re,t.singleSignUp))}}function Ke(o,e){if(o&1){let t=C();i(0,`
56        `),a(1,"app-paid-schedule-sign-up-add",33,2),b("completed",function(){m(t);let r=p();return c(r.signUpAdded())})("cancelled",function(){m(t);let r=p();return c(r.signUpAddCancelled())}),i(3,`
57        `),s(),i(4,`
58    `)}o&2&&(l(),S("dialogMode",!0))}
58var x=(function(o){return o[o.SIGN_UP=1]="SIGN_UP",o[o.BUNDLE=2]="BUNDLE",o[o.TIME_SLOTS=3]="TIME_SLOTS",o})(x||{}),h=class h{constructor(e,t,n,r,d,ke,Be){this.authorizeService=e,this.route=t,this.siteDataService=n,this.programService=r,this.scheduleSignUpService=d,this.registrationService=ke,this.store=Be,this.actionItems=[],this.addingSignUp=!1,this.canAddSignUp=!1,this.choosingBundleType=!1,this.addingBundle=!1,this.ProgramType=le,this.SignUpType=fe,this.TrainingSessionsProgramSplashStep=x,this.loading=!0,this.error=!1,this.singleSignUp=null,this.unsubscribe$=new G}ngOnInit(){this.authorizeService.getUser().pipe(q(1)).subscribe({next:e=>{this.user=e,this.canAddSignUp=!!e?.[re.SignUps]},error:()=>{this.canAddSignUp=!1}}),this.route.params.pipe(y(this.unsubscribe$)).subscribe({next:e=>{e.id&&(this.programID=+e.id,this.loadPreferences())},error:()=>{this.siteDataService.hideSiteLoader(),this.loading=!1,this.error=!0}})}goTo(e){if(e)switch(e.step){case x.SIGN_UP:this.openSignUpWizard();break;case x.BUNDLE:this.choosingBundleType=!0;break;case x.TIME_SLOTS:this.timeSlotAddDialog?.openDialog();break}}get overviewLink(){return["/admin/programs","training-sessions",this.programID,"overview"]}canLeave(){return this.addingSignUp&&this.signUpWizard?this.signUpWizard.requestClose():this.addingBundle&&this.bundleWizard?this.bundleWizard.requestClose():T(!0)}signUpAdded(){this.addingSignUp=!1,this.refreshSetUpState("The sign up was created")}signUpAddCancelled(){this.addingSignUp=!1}addTimeSlots(e){if(!e?.scheduleSignUp?.scheduleSignUpID||!e.timeSlots?.length){this.timeSlotAddDialog?.cancelSave();return}let t=e.timeSlots.map(n=>z(M({},n),{startDate:j(n.startDate),endDate:j(n.endDate)}));this.scheduleSignUpService.updateScheduleSignUpTimeSlots(z(M({},e.scheduleSignUp),{timeSlots:t})).pipe(y(this.unsubscribe$)).subscribe({next:()=>{this.timeSlotAddDialog?.saveComplete(),this.refreshSetUpState("The time slots were added")},error:()=>{this.timeSlotAddDialog?.cancelSave(),this.siteDataService.showSiteErrorAlert("There was a problem adding the time slots. Please try again.")}})}bundleTypeChosen(e){this.choosingBundleType=!1,this.bundleSetup=e,this.addingBundle=!0}bundleTypeCancelled(){this.choosingBundleType=!1}bundleAdded(){this.closeBundleWizard(),this.refreshSetUpState("The bundle was created")}bundleAddCancelled(){this.closeBundleWizard()}openSignUpWizard(){if(!this.canAddSignUp){this.siteDataService.showSiteInfoAlert("Creating a sign up needs Sign-Ups permission. Ask an administrator to grant it, or to create the sign up for you.");return}this.addingSignUp=!0}closeBundleWizard(){this.addingBundle=!1,this.bundleSetup=null}loadPreferences(){this.loading=!0,this.error=!1,this.programService.getTrainingSessionsProgramPreferences(this.programID).pipe(Q(e=>this.loadSetUpState(e).pipe(v(t=>({preferences:e,setUpState:t})))),y(this.unsubscribe$)).subscribe({next:({preferences:e,setUpState:t})=>{this.preferences=e,this.store.setTrainingSessionsPreferences(e),this.buildActionItems(t),this.siteDataService.hideSiteLoader(),this.loading=!1},error:()=>{this.loading=!1,this.error=!0,this.siteDataService.hideSiteLoader(),this.siteDataService.showSiteErrorAlert("Unable to load program preferences.")}})}refreshSetUpState(e){this.preferences&&this.loadSetUpState(this.preferences).pipe(y(this.unsubscribe$)).subscribe({next:t=>{this.buildActionItems(t)},error:()=>{this.siteDataService.showSiteErrorAlert(`${e}, but this page could not be refreshed. Please reload to see the change.`)}})}loadSetUpState(e){let t=new De;return t.rows=h.bundleSearchRows,t.getTotalCount=!1,$({signUps:this.scheduleSignUpService.getAdminProgramSignUps(this.programID).pipe(v(n=>n??[]),L(()=>T([]))),hasBundles:this.sellsBundles(e)?this.registrationService.searchRegistrations(this.programID,t).pipe(v(n=>(n?.results??[]).some(r=>h.bundleCostTypes.includes(r.registrationCostTypeID))),L(()=>T(!1))):T(!1)}).pipe(v(({signUps:n,hasBundles:r})=>this.toSetUpState(n,r)))}toSetUpState(e,t){let n=e.length===1?e[0]:null;return{hasSignUps:!!e.length,hasBundles:t,singleSignUp:n,hasTimeSlots:(n?.totalTimeSlotCount??0)>0}}
58sellsBundles(e){return e?.purchaseModelID!==we.SINGLE_SESSIONS_ONLY}buildActionItems(e){this.actionItems=[];let t=0,n=this.preferences.usesMultipleSignUpGroups;this.singleSignUp=n?null:e.singleSignUp,this.singleSignUp?this.actionItems.push({id:++t,label:"Add Time Slots",desc:"Add the time slots players can book in this program",icon:"fa-calendar-plus",step:x.TIME_SLOTS,completed:e.hasTimeSlots}):this.actionItems.push({id:++t,label:n?"Create Time Slot Groups":"Create Your Time Slot Groups",desc:n?"Create time slot groups for players to register into":"Set up the single time slot group that holds all of this program's time slots",icon:"fa-layer-group",step:x.SIGN_UP,completed:e.hasSignUps}),this.sellsBundles(this.preferences)&&this.actionItems.push({id:++t,label:"Create Bundles",desc:"Price a pack of time slots at a discount",icon:"fa-ticket-perforated",step:x.BUNDLE,completed:e.hasBundles})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};h.bundleCostTypes=[A.FIXED,A.SUBSCRIPTION,A.UNLIMITED],h.bundleSearchRows=100,h.\u0275fac=function(t){return new(t||h)(f(ae),f(ne),f(se),f(_e),f(P),f(Te),f(E))},h.\u0275cmp=J({type:h,selectors:[["app-training-sessions-program-splash"]],viewQuery:function(t,n){if(t&1&&K(Me,5)(ze,5)(Le,5),t&2){let r;D(r=w())&&(n.signUpWizard=r.first),D(r=w())&&(n.bundleWizard=r.first),D(r=w())&&(n.timeSlotAddDialog=r.first)}},standalone:!1,decls:29,vars:19,consts:[["bundleWizard",""],["timeSlotAddDialog",""],["signUpWizard",""],["role","main"],[1,"d-flex","flex-column","align-items-center","mb-5","mt-4"],[1,"text-green","text-jumbo","line-height-1"],[1,"fa","fa-check-circle"],[1,"text-largest","fw-600"],["header","New Bundle","styleClass","mediumWidthDialog",3,"visibleChange","visible","modal","draggable","resizable","closable","closeOnEscape","dismissableMask"],["header","New Time Slot Group","styleClass","mediumWidthDialog",3,"visibleChange","visible","modal","draggable","resizable","closable","closeOnEscape","dismissableMask"],["alertType","error",3,"isInline"],[1,"border-all","p-3","col-md-6","offset-md-3","mb-5"],[1,"full-width","text-center"],[1,"btn","btn-naked",3,"routerLink"],[1,"d-flex","align-items-center"],[1,"d-flex","flex-column","ml-2"],[1,"fw-600","text-large"],[1,"text-medium"],[1,"my-3"],[1,"text-large","mt-2","text-green"],[1,"fa-regular","fa-circle-check"],[1,"text-largest","text-grey-lt","fal",3,"ngClass"],[1,"d-flex","flex-column","ml-auto"],["status","success"],[1,"d-flex","flex-row","justify-content-center"],[1,"btn","btn-sm","btn-link","p-1","mt-1",3,"click"],[1,"fa","fa-plus","ml-1"],[1,"btn","btn-sm","btn-primary","ml-auto",3,"click"],[1,"fa","fa-arrow-right","ml-1"],[3,"selectionMade","cancel","programID","programTypeID","reportSelection"],[3,"completed","cancelled","dialogMode","preselectedCostType","preselectRegistrationTemplateID","preselectRegistrationID"],["skeletonType","form"],[3,"confirmInitiated","signUpTypeID","selectableSignUps"],[3,"completed","cancelled","dialogMode"]],template:function(t,n){t&1&&(a(0,"main",3),i(1,`
59        `),a(2,"div",4),i(3,`
60            `),a(4,"span",5),i(5,`
61                `),_(6,"i",6),i(7,`
62            `),s(),i(8,`
63            `),a(9,"div",7),i(10,"Your program has been created!"),s(),i(11,`
64        `),s(),i(12,`
65
66        `),g(13,We,4,0)(14,Ne,4,1)(15,qe,13,1),s(),i(16,`
67
68`),i(17,`
69`),g(18,Ye,3,3),a(19,"p-dialog",8),N("visibleChange",function(d){return W(n.addingBundle,d)||(n.addingBundle=d),d}),i(20,`
70    `),g(21,Xe,7,5),s(),i(22,`
71
72`),i(23,`
73`),g(24,He,5,4),a(25,"p-dialog",9),N("visibleChange",function(d){return W(n.addingSignUp,d)||(n.addingSignUp=d),d}),i(26,`
74    `),g(27,Ke,5,1),s(),i(28,`
75`)),t&2&&(l(13),u(n.loading?13:n.error?14:15),l(5),u(n.choosingBundleType&&n.programID?18:-1),l(),V("visible",n.addingBundle),S("modal",!0)("draggable",!1)("resizable",!1)("closable",!1)("closeOnEscape",!1)("dismissableMask",!1),l(2),u(n.addingBundle?21:-1),l(3),u(!n.loading&&n.singleSignUp?24:-1),l(),V("visible",n.addingSignUp),S("modal",!0)("draggable",!1)("resizable",!1)("closable",!1)("closeOnEscape",!1)("dismissableMask",!1),l(2),u(n.addingSignUp?27:-1))},dependencies:[oe,te,de,me,ge,ce,pe,ve,Ue,Ae,xe],encapsulation:2});var k=h;var B=(()=>{let e=class e{canDeactivate(n){return n.canLeave()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac});let o=e;return o}
75)();var Ee=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=I({type:e}),e.\u0275inj=U({imports:[F.forChild([{path:"",canDeactivate:[B],component:k,data:{hasCanDeactivate:!0}}]),F]});let o=e;return o})();var pt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=I({type:e}),e.\u0275inj=U({providers:[P,he,E,B],imports:[Ee,Se,ue,be,ye,Ie,Pe,Ce]});let o=e;return o})();export{pt as TrainingSessionsProgramSplashModule};

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.