1import{b as u}from"./chunk-3OX7SSB4.js";import{a as tt,c as it,d as J}from"./chunk-GOHTRUJ2.js";import{a as W,c as et}from"./chunk-XHEHBBIB.js";import{a as We,b as Ke}from"./chunk-JL5JJMSL.js";import{a as He}from"./chunk-MCU24RQK.js";import{a as Xe,b as Je}from"./chunk-V2ZNI7PU.js";import"./chunk-HSJ2CSTO.js";import"./chunk-MSSEBO72.js";import"./chunk-FP3J5B6H.js";import"./chunk-BQRBWX66.js";import{a as se}from"./chunk-L5ZOOU2J.js";import"./chunk-KOPGZV6B.js";import"./chunk-BTQPKA7U.js";import{a as X}from"./chunk-RESNPHP2.js";import{b as Qe,c as Ze}from"./chunk-STA2MRHZ.js";import"./chunk-AF6G7XUW.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-ADMKBOBN.js";import"./chunk-LCPPMNQ3.js";import"./chunk-RF4ESXXV.js";import"./chunk-IN6JNWJL.js";import"./chunk-GT2RX7V4.js";import"./chunk-WZTRTKC4.js";import"./chunk-NTPMZIRS.js";import{b as ze}from"./chunk-64WGMCQL.js";import"./chunk-DBNHDKST.js";import"./chunk-CHFQMRFX.js";import"./chunk-4CVZBQNN.js";import"./chunk-N5PZSBUY.js";import"./chunk-4T73AMAL.js";import"./chunk-G2OHGTWE.js";import"./chunk-NAW6KKAQ.js";import"./chunk-GNX3F6NH.js";import{d as re}from"./chunk-QQKJHWTF.js";import{Sb as Q,a as Ye,c as $e}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 qe}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-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 H}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{$b as Pe,$c as Ne,Ca as Ee,Ce as Be,Ed as Oe,Eg as Ue,Gd as Le,Hd as Me,Mb as ye,Ob as Fe,Ug as ke,Wc as Re,Zb as z,_b as De,d as xe,jf as Ge,k as Ce,kd as we,kh as je,ve as Ve,xa as B,za as oe}from"./chunk-X5J6QTCG.js";import{$ as j,$a as T,Ad as te,Db as M,E as U,Fa as m,Fb as $,H as P,Ib as e,Jb as _,Ka as F,Kb as Se,Ma as ge,Na as Y,Ni as ae,Sa as E,Sc as _e,Th as be,U as R,W as N,_ as de,ba as ce,bb as v,d as me,di as Ae,fa as x,ga as C,gb as h,hb as o,ib as s,jb as c,k as y,nb as ue,ob as he,pb as w,pj as q,qb as D,qc as V,rf as ie,sb as I,ta as pe,tb as g,th as ne,u as ee,vd as Te,xb as fe,xd as ve,yb as O,yd as Ie,zb as L}from"./chunk-SMW7PHYX.js";import{a as f,b as k}from"./chunk-BMIYOSOG.js";var mt=["basicInfo"],dt=["purchaseOptionsForm"],ct=["registrationForm"],pt=["eligibilityForm"],gt=["emailSettingsForm"],ut=["confirmationTextForm"];function ht(a,l){a&1&&w(0)}function ft(a,l){if(a&1&&(e(0,` 2 `),o(1,"h2"),e(2,"Set up your Sessions Program"),s(),e(3,` 3 `),E(4,ht,1,0,"ng-container",24),e(5,` 4 `)),a&2){g();let r=M(45);m(4),h("ngTemplateOutlet",r)}}function St(a,l){a&1&&w(0)}function _t(a,l){if(a&1&&(e(0,` 5 `),E(1,St,1,0,"ng-container",24),e(2,` 6 `)),a&2){g();let r=M(48);m(),h("ngTemplateOutlet",r)}}function xt(a,l){a&1&&w(0)}function Ct(a,l){if(a&1&&(e(0,` 7 `),E(1,xt,1,0,"ng-container",24),e(2,` 8 `)),a&2){g();let r=M(52);m(),h("ngTemplateOutlet",r)}}function Tt(a,l){a&1&&w(0)}function vt(a,l){if(a&1&&(e(0,` 9 `),E(1,Tt,1,0,"ng-container",24),e(2,` 10 `)),a&2){g();let r=M(56);m(),h("ngTemplateOutlet",r)}}function It(a,l){a&1&&w(0)}function bt(a,l){if(a&1&&(e(0,` 11 `),E(1,It,1,0,"ng-container",24),e(2,` 12 `)),a&2){g();let r=M(60);m(),h("ngTemplateOutlet",r)}}function At(a,l){a&1&&w(0)}function Et(a,l){if(a&1&&(e(0,` 13 `),E(1,At,1,0,"ng-container",24),e(2,` 14 `)),a&2){g();let r=M(63);m(),h("ngTemplateOutlet",r)}}function yt(a,l){if(a&1){let r=D();e(0,` 15 `),o(1,"button",25),I("click",function(){x(r);let n=g();return C(n.previous())}),e(2,` 16 Previous 17 `),s(),e(3,` 18 `)}if(a&2){let r=g();m(),$("btn-disabled",r.submitting||r.loadingStep||r.loading),h("disabled",r.submitting||r.loadingStep||r.loading)}}function Ft(a,l){a&1&&(e(0,` 19 `),c(1,"app-button-loader"),e(2,` 20 Saving... 21 `))}function Dt(a,l){if(a&1&&e(0),a&2){let r=g();Se(` 22 `,r.onLastStep?"Save":"Next",` 23 `)}}function Pt(a,l){if(a&1){let r=D();e(0,` 24 `),o(1,"div",27),e(2,` 25 `),o(3,"h4",28),e(4,"Financial Reporting"),s(),e(5,` 26 `),o(6,"app-dynamic-form-field",41),I("onChange",function(n){x(r);let i=g(3);return C(i.changeClubAccountingClass(n))}),s(),e(7,` 27 `),c(8,"app-dynamic-form-field",42),e(9,` 28 `),s(),e(10,` 29 `)}a&2&&(m(6),h("enableFilter",!0))}function Rt(a,l){if(a&1){let r=D();e(0,` 30 `),o(1,"app-dynamic-form",26,6),e(3,` 31 `),o(4,"div",27),e(5,` 32 `),o(6,"h4",28),e(7,"Basic Info"),s(),e(8,` 33 `),c(9,"app-dynamic-form-field",29),e(10,` 34 `),c(11,"app-dynamic-form-field",30),e(12,` 35 `),c(13,"app-dynamic-form-field",31),e(14,` 36 `),c(15,"app-dynamic-form-field",32),e(16,` 37 `),s(),e(17,` 38 39 `),o(18,"div",27),e(19,` 40 `),o(20,"h4",28),e(21,"Program Dates"),s(),e(22,` 41 `),o(23,"div",33),e(24),s(),e(25,` 42 `),c(26,"app-dynamic-form-field",34),e(27,` 43 `),c(28,"app-dynamic-form-field",35),e(29,` 44 `),c(30,"app-dynamic-form-field",36),e(31,` 45 `),s(),e(32,` 46 `),o(33,"div",27),e(34,` 47 `),o(35,"h4",28),e(36),s(),e(37,` 48 `),o(38,"div",33),e(39),s(),e(40,` 49 `),o(41,"app-dynamic-form-field",37),e(42,` 50 `),ue(43,38),e(44,` 51 `),o(45,"button",39),I("click",function(){x(r);let n=g(2);return C(n.showAddProgramCategory=!0)}),e(46,` 52 Add Program Category 53 `),s(),e(47,` 54 `),he(),e(48,` 55 `),s(),e(49,` 56 `),o(50,"app-dynamic-form-field",40),e(51,` 57 `),s(),e(52,` 58 `),s(),e(53,` 59 `),T(54,Pt,11,1),s(),e(55,` 60 `)}if(a&2){let r=g(2);m(),h("fields",r.basicInfoFields)("entity",r.program)("horizontalForm",!0)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showSubmitButton",!1)("showCancelButton",!1),m(23),_(r.programService.programDatesText),m(12),_(r.copy.visibility.heading),m(3),_(r.copy.visibility.description),m(2),h("enableFilter",!0),m(4),h("hidden",!r.user[r.Permission.ProgramCategories]),m(9),v(r.showFinancialReporting?54:-1)}}function Nt(a,l){a&1&&(e(0,` 61 `),c(1,"app-skeleton-template",43),e(2,` 62 `))}function wt(a,l){if(a&1&&(e(0,` 63 `),T(1,Rt,56,13)(2,Nt,3,0)),a&2){let r=g();m(),v(!r.loadingStep&&r.basicInfoFields?1:2)}}function Ot(a,l){if(a&1&&(e(0,` 64 `),o(1,"div",27),e(2,` 65 `),o(3,"h4",28),e(4),s(),e(5,` 66 `),o(6,"app-dynamic-form",26,8),e(8,` 67 `),c(9,"app-dynamic-form-field",49),e(10,` 68 `),c(11,"app-dynamic-form-field",50),e(12,` 69 `),s(),e(13,` 70 `),s(),e(14,` 71 `)),a&2){let r=g(3);m(4),_(r.copy.singleSessionPurchaseOptions.heading),m(2),h("fields",r.variableRegistrationFields)("entity",r.variablePricedRegistration)("horizontalForm",!0)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showSubmitButton",!1)("showCancelButton",!1)}}function Lt(a,l){if(a&1){let r=D();e(0,` 72 `),e(1,` 73 `),o(2,"app-dynamic-form",26,7),e(4,` 74 `),o(5,"div",27),e(6,` 75 `),o(7,"h4",28),e(8),s(),e(9,` 76 `),c(10,"app-dynamic-form-field",44),e(11,` 77 `),c(12,"hr",45),e(13,` 78 `),o(14,"app-dynamic-form-field",46),I("onChange",function(n){x(r);let i=g(2);return C(i.changePurchaseModel(n))}),s(),e(15,` 79 `),s(),e(16,` 80 81 `),o(17,"div",27),e(18,` 82 `),o(19,"h4",28),e(20),s(),e(21,` 83 `),c(22,"app-dynamic-form-field",47),e(23,` 84 `),c(24,"app-dynamic-form-field",48),e(25,` 85 `),s(),e(26,` 86 `),s(),e(27,` 87 `),T(28,Ot,15,8)}if(a&2){let r=g(2);m(2),h("fields",r.purchaseOptionsFields)("entity",r.purchaseOptions)("horizontalForm",!0)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showSubmitButton",!1)("showCancelButton",!1),m(6),_(r.copy.structureAndPurchase.heading),m(12),_(r.copy.otherPurchaseOptions.heading),m(8),v(r.showSingleSessionOptions?28:-1)}}function Mt(a,l){a&1&&(e(0,` 88 `),c(1,"app-skeleton-template",43),e(2,` 89 `))}function Vt(a,l){if(a&1&&(e(0,` 90 `),T(1,Lt,29,10)(2,Mt,3,0)),a&2){let r=g();m(),v(!r.loadingStep&&r.purchaseOptionsFields?1:2)}}function Bt(a,l){if(a&1){let r=D();e(0,` 91 `),o(1,"app-dynamic-form",26,9),e(3,`
92 `),o(4,"div",27),e(5,` 93 `),o(6,"h4",28),e(7),s(),e(8,` 94 `),o(9,"div",33),e(10),s(),e(11,` 95 `),c(12,"app-dynamic-form-field",51),e(13,` 96 `),c(14,"app-dynamic-form-field",52),e(15,` 97 `),c(16,"app-dynamic-form-field",53),e(17,` 98 `),c(18,"app-dynamic-form-field",54),e(19,` 99 `),o(20,"app-dynamic-form-field",55),I("onChange",function(n){x(r);let i=g(2);return C(i.genderChange(n))}),s(),e(21,` 100 `),c(22,"app-dynamic-form-field",56),e(23,` 101 `),c(24,"app-dynamic-form-field",57),e(25,` 102 `),c(26,"app-dynamic-form-field",58),e(27,` 103 `),c(28,"app-dynamic-form-field",59),e(29,` 104 `),c(30,"app-dynamic-form-field",60),e(31,` 105 `),s(),e(32,` 106 107 `),o(33,"div",27),e(34,` 108 `),o(35,"h4",28),e(36),s(),e(37,` 109 `),o(38,"div",33),e(39),s(),e(40,` 110 `),o(41,"app-dynamic-form-field",61),I("onChange",function(n){x(r);let i=g(2);return C(i.programChange(n.value))}),s(),e(42,` 111 `),c(43,"app-dynamic-form-field",62),e(44,` 112 `),c(45,"app-dynamic-form-field",63),e(46,` 113 `),s(),e(47,` 114 `),s(),e(48,` 115 `)}if(a&2){let r=g(2);m(),h("fields",r.aLaCarteEligibilityFields)("entity",r.variablePricedRegistration)("horizontalForm",!0)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showSubmitButton",!1)("showCancelButton",!1),m(6),_(r.copy.aLaCarteEligibility.heading),m(3),_(r.copy.aLaCarteEligibility.description),m(2),h("showTime",!0)("defaultTime","00:00"),m(2),h("showTime",!0)("defaultTime","23:59"),m(22),_(r.copy.aLaCartePreConditions.heading),m(3),_(r.copy.aLaCartePreConditions.description)}}function Gt(a,l){a&1&&(e(0,` 116 `),c(1,"app-skeleton-template",43),e(2,` 117 `))}function Ut(a,l){if(a&1&&(e(0,` 118 `),T(1,Bt,49,15)(2,Gt,3,0)),a&2){let r=g();m(),v(!r.loadingStep&&r.aLaCarteEligibilityFields?1:2)}}function kt(a,l){if(a&1){let r=D();e(0,` 119 `),o(1,"app-registration-template-settings",65),I("clone",function(n){x(r);let i=g(3);return C(i.registrationTemplateCloned(n))}),e(2,` 120 `),s(),e(3,` 121 `)}if(a&2){let r=g(3);m(),h("registrationTemplateID",r.variablePricedRegistration.registrationTemplateID)}}function jt(a,l){if(a&1){let r=D();e(0,` 122 `),o(1,"div",27),e(2,` 123 `),o(3,"h4",28),e(4),s(),e(5,` 124 `),o(6,"div",33),e(7),s(),e(8,` 125 `),o(9,"app-registration-template-change",64),I("change",function(n){x(r);let i=g(2);return C(i.registrationTemplateChanged(n))}),s(),e(10,` 126 `),s(),e(11,` 127 128 `),T(12,kt,4,1)}if(a&2){let r=g(2);m(4),_(r.copy.registrationForm.heading),m(3),_(r.copy.registrationForm.description),m(2),h("registrationTemplateID",r.variablePricedRegistration.registrationTemplateID),m(3),v(r.variablePricedRegistration.registrationTemplateID?12:-1)}}function Yt(a,l){a&1&&(e(0,` 129 `),c(1,"app-skeleton-template",43),e(2,` 130 `))}function $t(a,l){if(a&1&&(e(0,` 131 `),T(1,jt,13,4)(2,Yt,3,0)),a&2){let r=g();m(),v(r.loadingStep?2:1)}}function qt(a,l){if(a&1){let r=D();e(0,` 132 `),o(1,"app-dynamic-form",66,10),e(3,` 133 `),o(4,"div",27),e(5,` 134 `),o(6,"h4",28),e(7),s(),e(8,` 135 `),o(9,"div",33),e(10),s(),e(11,` 136 `),o(12,"div",67),e(13,` 137 `),o(14,"label"),e(15,` 138 `),o(16,"h5",68),e(17,"Player Registration Receipt Email Settings"),s(),e(18,` 139 `),s(),e(19,` 140 `),o(20,"div",69),e(21,` 141 `),o(22,"p-toggleswitch",70),I("ngModelChange",function(n){x(r);let i=g(2);return C(i.toggleOverride(i.receipt,n,i.currentStep))}),s(),e(23,` 142 `),o(24,"label",71),e(25,"Override Form Settings"),s(),e(26,` 143 `),s(),e(27,` 144 `),s(),e(28,` 145 `),c(29,"app-dynamic-form-field",72),e(30,` 146 `),c(31,"app-dynamic-form-field",73),e(32,` 147 `),c(33,"app-dynamic-form-field",74),e(34,`
148 `),c(35,"app-dynamic-form-field",75),e(36,` 149 `),c(37,"app-dynamic-form-field",76),e(38,` 150 `),s(),e(39,` 151 152 `),o(40,"div",27),e(41,` 153 `),o(42,"div",67),e(43,` 154 `),o(44,"label"),e(45,` 155 `),o(46,"h5",68),e(47,"Incomplete Registration Reminder Email Settings"),s(),e(48,` 156 `),s(),e(49,` 157 `),o(50,"div",69),e(51,` 158 `),o(52,"p-toggleswitch",70),I("ngModelChange",function(n){x(r);let i=g(2);return C(i.toggleOverride(i.incomplete,n,i.currentStep))}),s(),e(53,` 159 `),o(54,"label",77),e(55,"Override Form Settings"),s(),e(56,` 160 `),s(),e(57,` 161 `),s(),e(58,` 162 `),c(59,"app-dynamic-form-field",78),e(60,` 163 `),c(61,"app-dynamic-form-field",79),e(62,` 164 `),c(63,"app-dynamic-form-field",80),e(64,` 165 `),s(),e(65,` 166 `),s(),e(66,` 167 `)}if(a&2){let r=g(2);m(),h("fields",r.emailSettingsFields)("entity",r.variablePricedRegistration)("horizontalForm",!0)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showSubmitButton",!1)("showCancelButton",!1)("saveBlankFields",!0),m(6),_(r.copy.emailSettings.heading),m(3),_(r.copy.emailSettings.description),m(12),h("ngModel",r.receipt.enabled)("inputId","addReceiptOverrideToggle"),m(30),h("ngModel",r.incomplete.enabled)("inputId","addIncompleteOverrideToggle")}}function zt(a,l){a&1&&(e(0,` 168 `),c(1,"app-skeleton-template",43),e(2,` 169 `))}function Ht(a,l){if(a&1&&(e(0,` 170 `),T(1,qt,67,14)(2,zt,3,0)),a&2){let r=g();m(),v(!r.loadingStep&&(r.emailSettingsFields!=null&&r.emailSettingsFields.length)?1:2)}}function Qt(a,l){if(a&1){let r=D();e(0,` 171 `),o(1,"app-dynamic-form",66,11),e(3,` 172 `),o(4,"div",27),e(5,` 173 `),o(6,"h4",28),e(7),s(),e(8,` 174 `),o(9,"div",33),e(10),s(),e(11,` 175 `),o(12,"div",67),e(13,` 176 `),o(14,"div",69),e(15,` 177 `),o(16,"p-toggleswitch",70),I("ngModelChange",function(n){x(r);let i=g(2);return C(i.toggleOverride(i.confirmation,n,i.currentStep))}),s(),e(17,` 178 `),o(18,"label",81),e(19,"Override Form Settings"),s(),e(20,` 179 `),s(),e(21,` 180 `),s(),e(22,` 181 `),c(23,"app-dynamic-form-field",82),e(24,` 182 `),s(),e(25,` 183 `),s(),e(26,` 184 `)}if(a&2){let r=g(2);m(),h("fields",r.confirmationTextFields)("entity",r.variablePricedRegistration)("horizontalForm",!0)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showSubmitButton",!1)("showCancelButton",!1)("saveBlankFields",!0),m(6),_(r.copy.confirmationText.heading),m(3),_(r.copy.confirmationText.description),m(6),h("ngModel",r.confirmation.enabled)("inputId","addConfirmationOverrideToggle")}}function Xt(a,l){a&1&&(e(0,` 185 `),c(1,"app-skeleton-template",43),e(2,` 186 `))}function Wt(a,l){if(a&1&&(e(0,` 187 `),T(1,Qt,27,12)(2,Xt,3,0)),a&2){let r=g();m(),v(!r.loadingStep&&(r.confirmationTextFields!=null&&r.confirmationTextFields.length)?1:2)}}function Jt(a,l){if(a&1){let r=D();e(0,` 188 `),o(1,"app-program-category-add-dialog",83),I("onSave",function(n){x(r);let i=g();return C(i.addedNewProgramCategory(n))})("onCancel",function(){x(r);let n=g();return C(n.showAddProgramCategory=!1)}),s(),e(2,` 189`)}}function Kt(a,l){if(a&1){let r=D();e(0,` 190 `),o(1,"app-yes-no-modal",84),I("onYesSelect",function(){x(r);let n=g();return C(n.canDeactivate(!0))})("onNoSelect",function(){x(r);let n=g();return C(n.canDeactivate(!1))}),e(2,` 191 `),o(3,"div",85),e(4,` 192 `),o(5,"app-inline-alert",86),e(6,` 193 This program has not been created yet. By leaving this page, all your changes will be lost. Are you 194 sure you want to proceed? 195 `),s(),e(7,` 196 `),s(),e(8,` 197 `),s(),e(9,` 198`)}a&2&&(m(),h("showModalText",!1),m(4),h("isInline",!0))}var Zt=200,G=(function(a){return a[a.PROGRAM=0]="PROGRAM",a[a.A_LA_CARTE_REGISTRATION=1]="A_LA_CARTE_REGISTRATION",a[a.SIGN_UP=2]="SIGN_UP",a})(G||{}),ei={[G.PROGRAM]:"There was a problem saving this program",[G.A_LA_CARTE_REGISTRATION]:"The program was created, but there was a problem setting up its single session purchase options. Please try again.",[G.SIGN_UP]:"The program was created, but there was a problem creating its sign up. Please try again."},nt=(()=>{let l=class l{constructor(t,n,i,d,p,b,S,A,rt,ot,st){this.siteDataService=t,this.programService=n,this.authorizeService=i,this.router=d,this.route=p,this.formService=b,this.registrationService=S,this.registrationTemplateService=A,this.scheduleSignUpService=rt,this.adminProgramService=ot,this.hostElement=st,this.ProgramType=B,this.Steps=u,this.Permission=be,this.TrainingSessionPurchaseModel=W,this.showAddProgramCategory=!1,this.allSteps=[{stepID:u.BASIC_INFO,item:{id:u.BASIC_INFO.toString(),label:"Basic Info"}},{stepID:u.PURCHASE_OPTIONS,item:{id:u.PURCHASE_OPTIONS.toString(),label:"Structure & Purchase"}},{stepID:u.A_LA_CARTE_ELIGIBILITY,item:{id:u.A_LA_CARTE_ELIGIBILITY.toString(),label:"Single Time Slot Eligibility"}},{stepID:u.REGISTRATION,item:{id:u.REGISTRATION.toString(),label:"Registration Form"}},{stepID:u.A_LA_CARTE_EMAIL_SETTINGS,item:{id:u.A_LA_CARTE_EMAIL_SETTINGS.toString(),label:"Email Settings"}},{stepID:u.A_LA_CARTE_CONFIRMATION_TEXT,item:{id:u.A_LA_CARTE_CONFIRMATION_TEXT.toString(),label:"Confirmation Text"}}],this.singleSessionSteps=[u.A_LA_CARTE_ELIGIBILITY,u.REGISTRATION,u.A_LA_CARTE_EMAIL_SETTINGS,u.A_LA_CARTE_CONFIRMATION_TEXT],this.copy=it,this.currentSteps=[],this.activeIndex=0,this.currentStep=u.BASIC_INFO,this.onLastStep=!1,this.submitting=!1,this.loading=!0,this.loadingStep=!0,this.saved=!1,this.showCanDeactivate=!1,this.isAccrualClub=!1,this.surchargesOptionEnabled=!1,this.show
198FinancialReporting=!1,this.paidV2Enabled=!1,this.showSingleSessionOptions=!1,this.receipt=J.receiptEmail(),this.incomplete=J.incompleteEmail(),this.confirmation=J.confirmationText(),this.unsubscribe$=new me,this.originalDefaultConnectedAccountID=null,this.originalDefaultFeeStructureID=null;let Z=this.router.getCurrentNavigation()??this.router.lastSuccessfulNavigation();Z?.extras?.state&&(this.selectedParentProgramID=Z.extras.state.selectedParentProgramID,this.selectedSignUpIDs=Z.extras.state.selectedSignUpIDs)}ngOnInit(){this.authorizeService.getUser().pipe(P(1)).subscribe(n=>{this.user=n}),this.refreshSteps(),this.siteDataService.hideSiteLoader();let t=this.registrationService.getRegistrationBasicInfoMetadata(B.TRAINING_SESSIONS,re.VARIABLE);ee({metadata:this.programService.getProgramBasicInfoMetadata(),accountingClasses:this.programService.getClubAccountingClasses(),displaySettings:this.programService.getProgramDisplaySettingsMetadata(),purchaseOptions:this.programService.getTrainingSessionsProgramPurchaseOptionsMetadata(),stripeAccountFeeAssignments:this.programService.getClubStripeAccountFeeAssignments(),registrationBasicInfoFields:t,paidV2Enabled:this.siteDataService.isPaidSignupsV2Enabled$(),clubOptions:this.siteDataService.getClubOptions([ae.ENABLE_SURCHARGES])}).pipe(R(this.unsubscribe$)).subscribe({next:n=>{this.paidV2Enabled=n.paidV2Enabled,this.defaultBasicInfoFields=n.metadata.fields,this.displaySettingsFields=n.displaySettings.fields,this.initVariablePricedRegistration(),this.setVariableRegistrationFields(n.registrationBasicInfoFields.fields),this.isAccrualClub=this.defaultBasicInfoFields.some(i=>i.controlName==="accrualStartDate"),this.purchaseOptionsFields=n.purchaseOptions.fields,this.purchaseOptions=new et,this.updateSingleSessionOptionsVisibility(this.purchaseOptions.purchaseModelID),this.program=new Ee,this.program.availableOnPageBuilderPages=!0,this.program.programTypeID=B.TRAINING_SESSIONS,this.program.programInvitationTypeID=oe.OPEN,this.selectedParentProgramID&&(this.program.parentProgramID=this.selectedParentProgramID),this.selectedSignUpIDs?.length&&(this.program.signUpIDs=this.selectedSignUpIDs),this.stripeAccountFeeAssignments=n.stripeAccountFeeAssignments,this.clubAccountingClasses=n.accountingClasses,this.surchargesOptionEnabled=n.clubOptions.find(i=>i.optionID===ae.ENABLE_SURCHARGES)?.boolValue===!0,this.clubAccountingClasses.length>0&&(this.defaultBasicInfoFields.find(i=>i.controlName==="clubAccountingClassID").options=this.clubAccountingClasses.map(i=>({label:i.accountingClassName,value:i.clubAccountingClassID}))),this.defaultBasicInfoFields.find(i=>i.controlName==="programTypeID").viewOnly=!0,this.defaultBasicInfoFields.find(i=>i.controlName==="signUpIDs").hidden=!0,this.setBasicInfoFields(),this.loading=!1,this.loadingStep=!1},error:()=>{this.loading=!1,this.loadingStep=!1,this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}changePurchaseModel(t){this.updateSingleSessionOptionsVisibility(t)}updateSingleSessionOptionsVisibility(t){this.showSingleSessionOptions=t!==W.BUNDLES_ONLY,this.refreshSteps()}refreshSteps(){this.currentSteps=this.allSteps.filter(n=>!this.singleSessionSteps.includes(n.stepID)||this.showSingleSessionOptions).map(n=>n.item);let t=this.currentSteps.findIndex(n=>n.id===this.currentStep.toString());this.activeIndex=t>=0?t:0,this.onLastStep=this.activeIndex===this.currentSteps.length-1}initVariablePricedRegistration(){this.variablePricedRegistration=new Ge,this.variablePricedRegistration.registrationCostTypeID=re.VARIABLE}setVariableRegistrationFields(t){this.variableRegistrationFields=t||[];let n=this.variableRegistrationFields.find(i=>i.controlName==="registrationTemplateID");n&&(n.hidden=!0,z(n)),this.aLaCarteEligibilityFields=tt.map(i=>this.variableRegistrationFields.find(d=>d.controlName===i)).filter(i=>!!i),this.genderChange(this.variablePricedRegistration?.genderID)}genderChange(t){let n=this.aLaCarteEligibilityFields?.find(d=>d.controlName==="includeOtherGender");if(!n)return;let i=t!==se.FEMALE&&t!==se.MALE;!!n.hidden!==i&&(n.hidden=i,this.rebuildEligibilityFields({genderID:t}))}programChange(t){let n=this.aLaCarteEligibilityFields?.find(p=>p.controlName==="registrationContingencies"),i=this.aLaCarteEligibilityFields?.find(p=>p.controlName==="teamContingencies");if(!n||!i)return;let d=t||[];(d.length?this.programService.getRegistrations(d):y([])).pipe(P(1),R(this.unsubscribe$)).subscribe({next:p=>{n.options=p||[],i.options=this.teamOptionsForPrograms(d);let b=this.eligibilityForm?.validFieldsValue??{};this.rebuildEligibilityFields({programContingencies:d,registrationContingencies:(b.registrationContingencies||[]).filter(S=>n.options.some(A=>A.value===S)),teamContingencies:(b.teamContingencies||[]).filter(S=>i.options.some(A=>A.value===S))})},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting the registrations to require.")}})}teamOptionsForPrograms(t){let n=new Map;return(this.programs||[]).filter(i=>
198t.includes(i.programID)).forEach(i=>(i.teams||[]).forEach(d=>n.set(d.teamID,{value:d.teamID,label:d.name}))),Array.from(n.values())}rebuildEligibilityFields(t){this.variablePricedRegistration=f(f(f({},this.variablePricedRegistration),this.eligibilityForm?.validFieldsValue??{}),t),this.aLaCarteEligibilityFields=[...this.aLaCarteEligibilityFields]}loadContingencyPrograms(){this.programs||(this.loadingStep=!0,this.adminProgramService.getPrograms({includeTeams:!0}).pipe(P(1),R(this.unsubscribe$)).subscribe({next:t=>{this.programs=t||[],this.loadingStep=!1},error:()=>{this.programs=[],this.loadingStep=!1,this.siteDataService.showSiteErrorAlert("There was a problem getting the programs to require.")}}))}loadRegistrationTemplate(){this.variablePricedRegistration?.registrationTemplateID||(this.loadingStep=!0,this.cloneDefaultRegistrationTemplateIfNeeded().pipe(P(1),R(this.unsubscribe$)).subscribe({next:()=>{this.loadingStep=!1},error:()=>{this.loadingStep=!1,this.siteDataService.showSiteErrorAlert("There was a problem getting the default registration form. Choose a form to continue.")}}))}registrationTemplateChanged(t){this.variablePricedRegistration=k(f({},this.variablePricedRegistration),{registrationTemplateID:t}),this.registrationTemplate=null}loadOverrideStep(t){let n=this.variablePricedRegistration?.registrationTemplateID;if(!(t===u.A_LA_CARTE_EMAIL_SETTINGS?!this.emailSettingsFields:!this.confirmationTextFields)&&this.registrationTemplate?.registrationTemplateID===n){this.seedOverrideState(t);return}this.loadingStep=!0,ee({metadata:t===u.A_LA_CARTE_EMAIL_SETTINGS?this.registrationService.getRegistrationEmailSettingsMetadata():this.registrationService.getRegistrationConfirmationTextMetadata(),template:this.registrationTemplate?.registrationTemplateID===n?y(this.registrationTemplate):n?this.registrationTemplateService.getRegistrationTemplate(n):y(null)}).pipe(P(1),R(this.unsubscribe$)).subscribe({next:d=>{this.registrationTemplate=d.template,t===u.A_LA_CARTE_EMAIL_SETTINGS?this.emailSettingsFields=d.metadata.fields??[]:this.confirmationTextFields=d.metadata.fields??[],this.seedOverrideState(t),this.loadingStep=!1},error:()=>{this.loadingStep=!1,this.siteDataService.showSiteErrorAlert("There was a problem getting the registration form's settings.")}})}seedOverrideState(t){this.groupsFor(t).forEach(n=>n.initFrom(this.variablePricedRegistration,this.registrationTemplate)),this.refreshOverrideStep(t)}toggleOverride(t,n,i){t.enabled=n,this.refreshOverrideStep(i)}refreshOverrideStep(t){let n=t===u.A_LA_CARTE_EMAIL_SETTINGS,i=this.groupsFor(t),d=(n?this.emailSettingsForm?.value:this.confirmationTextForm?.value)??{};this.variablePricedRegistration=i.reduce((S,A)=>f(f({},S),A.displayValues(this.variablePricedRegistration,this.registrationTemplate,d)),f(f({},this.variablePricedRegistration),d));let p=n?this.emailSettingsFields:this.confirmationTextFields,b=i.reduce((S,A)=>A.applyToFields(S),p||[]);n?this.emailSettingsFields=b:this.confirmationTextFields=b}groupsFor(t){return t===u.A_LA_CARTE_EMAIL_SETTINGS?[this.receipt,this.incomplete]:[this.confirmation]}registrationTemplateCloned(t){this.registrationTemplateChanged(t.registrationTemplateID)}setBasicInfoFields(){this.basicInfoFields=this.defaultBasicInfoFields.filter(p=>p.controlName!=="parentProgramID"&&p.controlName!=="inviteOnly"&&p.controlName!=="isAdultProgram"&&p.controlName!=="programInvitationTypeID"&&p.controlName!=="programGroupID"&&p.controlName!=="programGroupYear"&&p.controlName!=="previousProgramID");let t=this.basicInfoFields.find(p=>p.controlName==="accrualStartDate"),n=this.basicInfoFields.find(p=>p.controlName==="accrualEndDate");t&&z(t),n&&z(n),this.updatePaymentSettingFieldNotes(B.TRAINING_SESSIONS);let i=this.displaySettingsFields?.find(p=>p.controlName==="clubProgramCategoryID"),d=this.displaySettingsFields?.find(p=>p.controlName==="availableOnPageBuilderPages");i&&this.basicInfoFields.push(i),d&&this.basicInfoFields.push(d),this.basicInfoFields=[...this.basicInfoFields],this.refreshFinancialReportingVisibility()}
198refreshFinancialReportingVisibility(){this.showFinancialReporting=De(this.basicInfoFields,"clubAccountingClassID","clubSurchargeID")}changeClubAccountingClass(t){let n=this.basicInfoFields.find(p=>p.controlName==="clubSurchargeID");if(!n)return;let i=!!t&&this.clubAccountingClasses.some(p=>p.clubAccountingClassID===t&&p.assignments.some(b=>b.isSurchargeRequired)),d=this.surchargesOptionEnabled||i;if(n.hidden=!d,i){if(n.validators.push({validatorType:Fe.REQUIRED}),n.required=!0,n.options?.length===1){let p=n.options[0].value;this.program.clubSurchargeID=p,this.basicInfoForm?.form.patchValue({clubSurchargeID:p})}}else n.validators=[],n.required=!1;d||(this.program.clubSurchargeID=null,this.basicInfoForm?.form.patchValue({clubSurchargeID:null})),this.basicInfoFields=[...this.basicInfoFields],this.refreshFinancialReportingVisibility()}addedNewProgramCategory(t){let n=this.basicInfoFields.find(i=>i.controlName==="clubProgramCategoryID");n&&(n.options.push({label:t.categoryName,value:t.clubProgramCategoryID}),n.value=t.clubProgramCategoryID),this.program=k(f(f({},this.program),this.basicInfoForm.validFieldsValue),{clubProgramCategoryID:t.clubProgramCategoryID}),this.basicInfoFields=[...this.basicInfoFields],this.showAddProgramCategory=!1}previous(){this.goToPreviousStep()}next(){this.formService.clearFormErrorMessage(),this.validateCurrentStep()&&(this.onLastStep?this.save():this.goToNextStep())}validateCurrentStep(){switch(this.currentStep){case u.BASIC_INFO:return this.basicInfoForm.isValid&&this.basicInfoForm.value.startDate<=(this.basicInfoForm.value.endDate||new Date(9999,11,31))&&(!this.isAccrualClub||!this.basicInfoForm.value.accrualStartDate||!this.basicInfoForm.value.accrualEndDate||this.basicInfoForm.value.accrualStartDate<=this.basicInfoForm.value.accrualEndDate)?!0:(this.basicInfoForm.isValid?this.basicInfoForm.value.startDate>(this.basicInfoForm.value.endDate||new Date(9999,11,31))?this.formService.showFormErrorMessage("End Date cannot be before Start Date"):this.isAccrualClub&&this.basicInfoForm.value.accrualStartDate&&this.basicInfoForm.value.accrualEndDate&&this.basicInfoForm.value.accrualStartDate>this.basicInfoForm.value.accrualEndDate&&this.formService.showFormErrorMessage("Accrual End Date cannot be before Accrual Start Date"):this.basicInfoForm.submitForm(),!1);case u.PURCHASE_OPTIONS:return this.purchaseOptionsForm.isValid?!0:(this.purchaseOptionsForm.submitForm(),!1);case u.A_LA_CARTE_ELIGIBILITY:return this.validateALaCarteEligibilityStep();case u.A_LA_CARTE_EMAIL_SETTINGS:return this.validateOverrideStep(this.emailSettingsForm);case u.A_LA_CARTE_CONFIRMATION_TEXT:return this.validateOverrideStep(this.confirmationTextForm);default:return!0}}validateOverrideStep(t){return!t||t.form?.disabled||t.isValid?!0:(t.submitForm(),!1)}validateALaCarteEligibilityStep(){if(!this.eligibilityForm.isValid)return this.eligibilityForm.submitForm(),!1;let t=this.eligibilityForm.value??{};return t.startDate&&t.endDate&&new Date(t.startDate)>new Date(t.endDate)?(this.formService.showFormErrorMessage("End Date cannot be before Start Date"),!1):t.birthDateFrom&&t.birthDateTo&&new Date(t.birthDateFrom)>new Date(t.birthDateTo)?(this.formService.showFormErrorMessage("Birthdate To cannot be before Birthdate From"),!1):t.graduationYearFrom&&t.graduationYearTo&&new Date(t.graduationYearFrom)>new Date(t.graduationYearTo)?(this.formService.showFormErrorMessage("Graduation Date To cannot be before Graduation Date From"),!1):!0}storeCurrentStepData(){switch(this.currentStep){case u.BASIC_INFO:this.program=f(f({},this.program),this.basicInfoForm.validFieldsValue),this.program.programTypeID=B.TRAINING_SESSIONS,this.program.programInvitationTypeID=oe.OPEN;break;case u.PURCHASE_OPTIONS:this.purchaseOptions=f(f({},this.purchaseOptions),this.purchaseOptionsForm.validFieldsValue),this.updateSingleSessionOptionsVisibility(this.purchaseOptions.purchaseModelID),this.showSingleSessionOptions&&this.registrationForm&&(this.variablePricedRegistration=f(f({},this.variablePricedRegistration),this.registrationForm.validFieldsValue));break;case u.A_LA_CARTE_ELIGIBILITY:this.eligibilityForm&&(this.variablePricedRegistration=f(f({},this.variablePricedRegistration),this.eligibilityForm.validFieldsValue));break;case u.A_LA_CARTE_EMAIL_SETTINGS:this.emailSettingsForm&&(this.variablePricedRegistration=f(f({},this.variablePricedRegistration),this.emailSettingsForm.validFieldsValue),this.clearOverridesMatchingTemplate(this.currentStep));break;case u.A_LA_CARTE_CONFIRMATION_TEXT:this.confirmationTextForm&&(this.variablePricedRegistration=f(f({},this.variablePricedRegistration),this.confirmationTextForm.validFieldsValue),this.clearOverridesMatchingTemplate(this.currentStep));break}}clearOverridesMatchingTemplate(t){this.groupsFor(t).forEach(n=>n.clearMatching(this.variablePricedRegistration,this.registrationTemplate))}save(){this.storeCurrentStepData(),this.submitting=!0,this.createProgram()}confirmDeactivate(){this.showCanDeactivate=!0}canDeactivate(t){this.siteDataService.canDeactivateConfirmed.next(t),t||(this.showCanDeactivate=!1)}createProgram(){this.program.trainingSessionsPreferences=this.purchaseOptions;let t=G.PROGRAM;(this.programID?y(k(f({},this.program),{programID:this.programID})):this.programService.createProgram(this.program)).pipe(U(i=>(this.programID=i.programID,t=G.A_LA_CARTE_REGISTRATION,this.createALaCarteRegistrationIfNeeded().pipe(N(()=>{t=G.SIGN_UP}),U(()=>this.createSingleSignUpIfNeeded()),U(()=>y(i))))),P(1),R(this.unsubscribe$)).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert("Program saved successfully"),this.saved=!0,this.router.navigate(["/admin/programs","training-sessions",this.programID,"splash"])},error:()=>{this.submitting=!1,this.siteDataService.showSiteErrorAlert(ei[t])}})}createSingleSignUpIfNeeded(){return this.purchaseOptions?.usesMultipleSignUpGroups||this.singleSignUpID?y(null):this.scheduleSignUpService.createScheduleSignUp(this.singleSignUpPayload(),!1).pipe(N(t=>
198{t?.scheduleSignUpID&&(this.singleSignUpID=t.scheduleSignUpID)}))}singleSignUpPayload(){let t=new Ye($e.PAID);return t.scheduleSignUpName=(this.program.name||"Sign Up").substring(0,Zt),t.defaultCapacity=this.purchaseOptions.defaultSessionCapacity,t.coachesCanSubmitAvailability=this.purchaseOptions.staffAcceptSessions,t.scheduleSignUpProgramAssignments=[{scheduleSignUpProgramAssignmentID:void 0,scheduleSignUpID:0,programID:this.programID,program:null}],t}allowsSingleSessionPurchase(){return this.purchaseOptions?.purchaseModelID!==W.BUNDLES_ONLY}createALaCarteRegistrationIfNeeded(){return this.allowsSingleSessionPurchase()?this.variablePricedRegistration.registrationID?y(this.variablePricedRegistration):(this.variablePricedRegistration.programID=this.programID,this.variablePricedRegistration.name=this.program.name?`${this.program.name} - Single Time Slot registration`:"Single Time Slot registration",this.cloneDefaultRegistrationTemplateIfNeeded().pipe(U(()=>this.registrationService.createRegistration(this.programID,this.aLaCarteRegistrationPayload())),N(t=>{t?.registrationID&&(this.variablePricedRegistration.registrationID=t.registrationID)}
198))):y(null)}aLaCarteRegistrationPayload(){let t=f({},this.variablePricedRegistration);return t.startDate&&(t.startDate=ie(t.startDate)),t.endDate&&(t.endDate=ie(t.endDate)),t}cloneDefaultRegistrationTemplateIfNeeded(){return this.variablePricedRegistration.registrationTemplateID?y(this.variablePricedRegistration.registrationTemplateID):this.registrationService.cloneDefaultRegistrationTemplate(B.TRAINING_SESSIONS).pipe(N(t=>{this.variablePricedRegistration.registrationTemplateID=t}))}goToNextStep(){this.storeCurrentStepData();let t=this.currentSteps.findIndex(n=>n.id===this.currentStep.toString());t>=0&&t+1<this.currentSteps.length&&(this.currentStep=Number(this.currentSteps[t+1].id),this.activeIndex=t+1,this.onLastStep=this.activeIndex===this.currentSteps.length-1,this.currentStep===u.A_LA_CARTE_ELIGIBILITY&&this.loadContingencyPrograms(),this.currentStep===u.REGISTRATION&&this.loadRegistrationTemplate(),(this.currentStep===u.A_LA_CARTE_EMAIL_SETTINGS||this.currentStep===u.A_LA_CARTE_CONFIRMATION_TEXT)&&this.loadOverrideStep(this.currentStep),ne(this.hostElement.nativeElement))}goToPreviousStep(){this.storeCurrentStepData();let t=this.currentSteps.findIndex(n=>n.id===this.currentStep.toString());t>0&&(this.currentStep=Number(this.currentSteps[t-1].id),this.activeIndex=t-1,this.onLastStep=!1,ne(this.hostElement.nativeElement))}storeOriginalDefaultValues(){let t=this.defaultBasicInfoFields.find(i=>i.controlName==="clubStripeConnectedAccountID"),n=this.defaultBasicInfoFields.find(i=>i.controlName==="clubPaymentFeeStructureID");if(t){let i=t.options?.find(d=>d.icon);this.originalDefaultConnectedAccountID=i?.value??null}if(n){let i=n.options?.find(d=>d.icon);this.originalDefaultFeeStructureID=i?.value??null}}updatePaymentSettingFieldNotes(t){if(this.storeOriginalDefaultValues(),!this.stripeAccountFeeAssignments||this.stripeAccountFeeAssignments.length===0)return;let n=this.stripeAccountFeeAssignments.find(i=>i.programTypeID===t);this.updateFieldNoteWithOverride("clubStripeConnectedAccountID",n?.clubStripeConnectedAccountID,this.originalDefaultConnectedAccountID,"connected account"),this.updateFieldNoteWithOverride("clubPaymentFeeStructureID",n?.clubPaymentFeeStructureID,this.originalDefaultFeeStructureID,"fee structure")}updateFieldNoteWithOverride(t,n,i,d){let p=this.defaultBasicInfoFields.find(S=>S.controlName===t);if(!p||!p.options)return;p.options.forEach(S=>{S.icon&&delete S.icon});let b=null;if(n){let S=p.options.find(A=>A.value===n);b=S?.label??null,S&&(S.icon="fa fa-star text-warn")}else if(i){let S=p.options.find(A=>A.value===i);b=S?.label??null,S&&(S.icon="fa fa-star text-warn")}p.note=b?`Leave blank to use the default ${d} - ${b}`:""}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(n){return new(n||l)(F(q),F(qe),F(Ae),F(ve),F(Te),F(Pe),F(He),F(X),F(Q),F(H),F(pe))},l.\u0275cmp=ge({type:l,selectors:[["app-training-sessions-program-add"]],viewQuery:function(n,i){if(n&1&&fe(mt,5)(dt,5)(ct,5)(pt,5)(gt,5)(ut,5),n&2){let d;O(d=L())&&(i.basicInfoForm=d.first),O(d=L())&&(i.purchaseOptionsForm=d.first),O(d=L())&&(i.registrationForm=d.first),O(d=L())&&(i.eligibilityForm=d.first),O(d=L())&&(i.emailSettingsForm=d.first),O(d=L())&&(i.confirmationTextForm=d.first)}},standalone:!1,decls:69,vars:17,consts:[["basicInfoTemplate",""],["purchaseOptionsTemplate",""],["aLaCarteEligibilityTemplate",""],["registrationFormTemplate",""],["aLaCarteEmailSettingsTemplate",""],["aLaCarteConfirmationTextTemplate",""],["basicInfo",""],["purchaseOptionsForm",""],["registrationForm",""],["eligibilityForm",""],["emailSettingsForm",""],["confirmationTextForm",""],["role","main"],["pageTitle","New Sessions Program","parentLinkUrl","../","parentLinkText","Programs",3,"showBackButton"],[1,"col-lg-9"],[1,"row","mb-3","mt-3"],[1,"col-md-12"],[3,"model","readonly","activeIndex"],[1,"program-content","mb-3"],["appStickyFormButtons","",1,"row","border-top","no-gutters","d-flex","align-items-center"],[1,"col-md-3","d-flex","justify-content-start"],["type","button","routerLink","../",1,"btn","btn-lg","btn-naked",3,"click"],[1,"col-md-9","d-flex","justify-content-end"],["type","button",1,"btn","btn-lg","btn-primary",3,"click","disabled"],[4,"ngTemplateOutlet"],["type","button",1,"btn","btn-lg","btn-icon-chevron-left",3,"click","disabled"],[3,"fields","entity","horizontalForm","contentFieldsMode","showSaveAndAddButton","showSubmitButton","showCancelButton"],[1,"card","mb-4"],[1,"card-title"],["fieldName","name"],["fieldName","programTypeID"],["fieldName","clubStripeConnectedAccountID"],["fieldName","clubPaymentFeeStructureID"],[1,"mb-3","text-medium"],["fieldName","startDate"],["fieldName","endDate"],["fieldName","effectiveDate"],["fieldName","clubProgramCategoryID",3,"enableFilter"],["afterInputContent",""],["type","button",1,"btn","btn-sm","btn-naked","btn-icon-plus","btn-add-program-category",3,"click","hidden"],["fieldName","availableOnPageBuilderPages"],["fieldName","clubAccountingClassID",3,"onChange","enableFilter"],["fieldName","clubSurchargeID"],["skeletonType","form-no-buttons"],["fieldName","usesMultipleSignUpGroups"],[1,"form-section"],["fieldName","purchaseModelID",3,"onChange"],["fieldName","defaultSessionCapacity"],["fieldName","staffAcceptSessions"],["fieldName","enablePromoCodes"],["fieldName","enablePayOffline"],["fieldName","startDate",3,"showTime","defaultTime"],["fieldName","endDate",3,"showTime","defaultTime"],["fieldName","birthDateFrom"],["fieldName","birthDateTo"],["fieldName","genderID",3,"onChange"],["fieldName","includeOtherGender"],["fieldName","gradeID"],["fieldName","ageClass"],["fieldName","graduationYearFrom"],["fieldName","graduationYearTo"],["fieldName","programContingencies",3,"onChange"],["fieldName","registrationContingencies"],["fieldName","teamContingencies"],["messageText","Want to use a different registration form?",3,"change","registrationTemplateID"],[3,"clone","registrationTemplateID"],[3,"fields","entity","horizontalForm","contentFieldsMode","showSaveAndAddButton","showSubmitButton","showCancelButton","saveBlankFields"],[1,"form-group"],[1,"mb-0","mr-3"],[1,"d-flex","align-items-center"],[3,"ngModelChange","ngModel","inputId"],["for","addReceiptOverrideToggle",1,"mb-0","ml-2","cursor-pointer","text-medium","nowrap"],["fieldName","emailSubject"],["fieldName","emailHeader"],["fieldName","emailText"],["fieldName","emailIncludeReceipt"],["fieldName","bccEmail"],["for","addIncompleteOverrideToggle",1,"mb-0","ml-2","cursor-pointer","text-medium","nowrap"],["fieldName","incompleteRegistrationEmailSubject"],["fieldName","incompleteRegistrationEmailHeader"],["fieldName","incompleteRegistrationEmailText"],["for","addConfirmationOverrideToggle",1,"mb-0","ml-2","cursor-pointer","text-medium","nowrap"],["fieldName","confirmationText"],[3,"onSave","onCancel"],["headerText","Are you sure you want to leave this page?","dialogClass","standardWidthDialog","yesButtonText","Yes","noButtonText","No, Cancel",3,"onYesSelect","onNoSelect","showModalText"],[1,"text-medium","fw-600"],["alertType","warning",3,"isInline"]],template:function(n,i){if
198(n&1&&(o(0,"main",12),e(1,` 199 `),c(2,"app-admin-header",13),e(3,` 200 201 `),o(4,"div",14),e(5,` 202 `),o(6,"div",15),e(7,` 203 `),o(8,"div",16),e(9,` 204 `),c(10,"p-steps",17),e(11,` 205 `),s(),e(12,` 206 `),s(),e(13,` 207 208 `),o(14,"div",18),e(15,` 209 `),T(16,ft,6,1)(17,_t,3,1)(18,Ct,3,1)(19,vt,3,1)(20,bt,3,1)(21,Et,3,1),e(22,` 210 `),s(),e(23,` 211 212 `),o(24,"div",19),e(25,` 213 `),o(26,"div",20),e(27,` 214 `),o(28,"a",21),I("click",function(p){return i.submitting||i.loadingStep||i.loading?p.preventDefault():""}),e(29,` 215 Cancel 216 `),s(),e(30,` 217 `),s(),e(31,` 218 `),o(32,"div",22),e(33,` 219 `),T(34,yt,4,3),o(35,"button",23),I("click",function(){return i.next()}),e(36,` 220 `),T(37,Ft,3,0),T(38,Dt,1,1),s(),e(39,` 221 `),s(),e(40,` 222 `),s(),e(41,` 223 `),s(),e(42,` 224`),s(),e(43,` 225 226`),E(44,wt,3,1,"ng-template",null,0,V),e(46,` 227 228`),E(47,Vt,3,1,"ng-template",null,1,V),e(49,` 229 230`),e(50,` 231`),E(51,Ut,3,1,"ng-template",null,2,V),e(53,` 232 233`),e(54,` 234`),E(55,$t,3,1,"ng-template",null,3,V),e(57,` 235 236`),e(58,` 237`),E(59,Ht,3,1,"ng-template",null,4,V),e(61,` 238 239`),E(62,Wt,3,1,"ng-template",null,5,V),e(64,` 240 241`),e(65,` 242`),e(66,` 243 244`),T(67,Jt,3,0),T(68,Kt,10,2)),n&2){let d;m(2),h("showBackButton",!0),m(8),h("model",i.currentSteps)("readonly",!0)("activeIndex",i.activeIndex),m(6),v((d=i.currentStep)===i.Steps.BASIC_INFO?16:d===i.Steps.PURCHASE_OPTIONS?17:d===i.Steps.A_LA_CARTE_ELIGIBILITY?18:d===i.Steps.REGISTRATION?19:d===i.Steps.A_LA_CARTE_EMAIL_SETTINGS?20:d===i.Steps.A_LA_CARTE_CONFIRMATION_TEXT?21:-1),m(12),$("btn-disabled",i.submitting||i.loadingStep||i.loading),m(6),v(i.currentStep!==i.Steps.BASIC_INFO&&!i.saved?34:-1),m(),$("btn-icon-chevron-right-after",!i.onLastStep)("btn-disabled",i.submitting||i.loadingStep||i.loading),h("disabled",i.submitting||i.loadingStep||i.loading),m(2),v(i.submitting?37:-1),m(),v(i.submitting?-1:38),m(29),v(i.showAddProgramCategory?67:-1),m(),v(i.showCanDeactivate?68:-1)}},dependencies:[Ie,_e,Me,we,xe,Ce,Re,ye,Ve,Le,Be,Oe,ke,Ne,Qe,We,Xe],encapsulation:2});let a=l;return a})();var K=(()=>{let l=class l{constructor(t){this.siteDataService=t}canDeactivate(t){return t.saved?(this.siteDataService.showSiteLoader(),y(!0)):(t.confirmDeactivate(),this.siteDataService.canDeactivateConfirmed$.pipe(N(n=>{n&&this.siteDataService.showSiteLoader()})))}};l.\u0275fac=function(n){return new(n||l)(ce(q))},l.\u0275prov=de({token:l,factory:l.\u0275fac});let a=l;return a})();var at=(()=>{let l=class l{};l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=Y({type:l}),l.\u0275inj=j({imports:[te.forChild([{path:"",canDeactivate:[K],component:nt}]),te]});let a=l;return a})();var Dn=(()=>{let l=class l{};l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=Y({type:l}),l.\u0275inj=j({providers:[H,Q,X,K],imports:[at,je,Ue,ze,Ze,Ke,Je]});let a=l;return a})();export{Dn as TrainingSessionsProgramAddModule};
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.