1import{b as J}from"./chunk-4D5SN44G.js";import{a as Dt,b as ft,c as St,d as xt}from"./chunk-VVVN3YIZ.js";import"./chunk-6Q5DDO7R.js";import{$b as L,Ec as U,Gb as mt,Hd as W,Nc as j,Oc as z,Qd as bt,Wc as ut,kd as H,kh as ht,ve as q}from"./chunk-X5J6QTCG.js";import{$ as A,$a as u,Ad as G,E as $,Fa as d,Ib as t,Jb as Q,Ka as S,Kb as E,Ma as O,Na as R,Qb as X,Rb as Z,Sa as g,Sb as tt,U as h,Xa as F,_ as Y,_c as rt,ba as K,bb as b,be as N,cc as et,d as T,dc as it,ec as nt,fa as D,fi as ct,ga as f,gb as m,hb as l,ib as s,jb as c,lc as P,mc as ot,nb as M,nc as at,ob as k,pj as B,qb as C,sb as x,tb as p,u as v,vd as lt,wd as st,xd as dt,yd as pt}from"./chunk-SMW7PHYX.js";import{a as w}from"./chunk-BMIYOSOG.js";var gt=(()=>{let o=class o{};o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=O({type:o,selectors:[["ng-component"]],standalone:!1,decls:1,vars:0,template:function(e,r){e&1&&c(0,"router-outlet")},dependencies:[st],encapsulation:2});let n=o;return n})();var I=(()=>{let o=class o{constructor(i){this.webAPI=i,this.baseUrl="admin/donation-settings"}getDonationSettings(){return this.webAPI.getData(this.baseUrl)}getDonationSettingsMetadata(){return this.webAPI.getData(`${this.baseUrl}/metadata`)}saveDonationSettings(i){return i.clubDonationSettingsID?this.webAPI.putData(`${this.baseUrl}/${i.clubDonationSettingsID}`,i):this.webAPI.postData(`${this.baseUrl}`,i)}updateDonationOptionSortOrder(i,e,r){return this.webAPI.putData(`${this.baseUrl}/${i}/options/${e}/sort-order`,{sortOrder:r})}saveDonationOption(i,e){return e.clubDonationOptionID?this.webAPI.putData(`${this.baseUrl}/${i}/options/${e.clubDonationOptionID}`,e):this.webAPI.postData(`${this.baseUrl}/${i}/options`,e)}getDonationOptions(i){return this.webAPI.getData(`${this.baseUrl}/${i}/options`)}getDonationOption(i,e){return this.webAPI.getData(`${this.baseUrl}/${i}/options/${e}`)}getDonationOptionMetadata(i){return this.webAPI.getData(`${this.baseUrl}/${i}/options/metadata`)}updateDonationOptionValueSortOrder(i,e,r,_){return this.webAPI.putData(`${this.baseUrl}/${i}/options/${e}/values/${r}/sort-order`,{sortOrder:_})}saveDonationOptionValue(i,e,r){return r.clubDonationOptionValueID?this.webAPI.putData(`${this.baseUrl}/${i}/options/${e}/values/${r.clubDonationOptionValueID}`,r):this.webAPI.postData(`${this.baseUrl}/${i}/options/${e}/values`,r)}deleteDonationOptionValue(i,e,r){return this.webAPI.deleteData(`${this.baseUrl}/${i}/options/${e}/values/${r}`)}getDonationOptionValues(i,e){return this.webAPI.getData(`${this.baseUrl}/${i}/options/${e}/values`)}getDonationOptionValue(i,e,r){return this.webAPI.getData(`${this.baseUrl}/${i}/options/${e}/values/${r}`)}getDonationOptionValueMetadata(){return this.webAPI.getData(`${this.baseUrl}/options/values/metadata`)}};o.\u0275fac=function(e){return new(e||o)(K(ct))},o.\u0275prov=Y({token:o,factory:o.\u0275fac});let n=o;return n})();var Rt=()=>["/donate"],Ft=n=>[n,"options","new"],Mt=(n,o)=>[n,"options",o];function kt(n,o){n&1&&(t(0,` 2 `),l(1,"a",11),t(2,"Preview"),s(),t(3,` 3 `)),n&2&&(d(),m("routerLink",et(1,Rt)))}function Pt(n,o){if(n&1){let a=C();t(0,` 4 `),l(1,"app-dynamic-form",4),x("onSubmit",function(e){D(a);let r=p();return f(r.save(e))}),t(2,` 5 `),c(3,"app-dynamic-form-field",5),t(4,` 6 `),c(5,"app-dynamic-form-field",6),t(6,` 7 `),l(7,"app-dynamic-form-field",7),x("onChange",function(e){D(a);let r=p();return f(r.includeCommentsChange(e))}),t(8,` 8 `),s(),t(9,` 9 `),c(10,"app-dynamic-form-field",8),t(11,` 10 `),c(12,"app-dynamic-form-field",9),t(13,` 11 `),M(14,10),u(15,kt,4,2),k(),t(16,` 12 `),s(),t(17,` 13 `)}if(n&2){let a=p();d(),m("fields",a.fields)("entity",a.donationSettings)("horizontalForm",!0)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showCancelButton",!1)("showDeleteButton",!1),d(14),b(a.donationSettings&&a.donationSettings.clubDonationSettingsID&&(a.donationSettings.clubDonationOptions!=null&&a.donationSettings.clubDonationOptions.length)?15:-1)}}function Nt(n,o){n&1&&(t(0,` 14 `),l(1,"th"),t(2,` 15 `),s(),t(3,` 16 `))}function Bt(n,o){if(n&1&&(t(0,` 17 `),l(1,"tr"),t(2,` 18 `),u(3,Nt,4,0),l(4,"th"),t(5,"Title"),s(),t(6,` 19 `),l(7,"th"),t(8,"Enabled"),s(),t(9,` 20 `),l(10,"th"),t(11,"Sort Order"),s(),t(12,` 21 `),s(),t(13,` 22 `)),n&2){let a=p(2);d(3),b((a.donationSettings.clubDonationOptions==null?null:a.donationSettings.clubDonationOptions.length)>1?3:-1)}}function Lt(n,o){n&1&&(t(0,` 23 `),l(1,"td"),t(2,` 24 `),c(3,"i",21),t(4,` 25 `),s(),t(5,` 26 `))}function Ut(n,o){if(n&1&&(t(0,` 27 `),l(1,"tr",19),t(2,`
28 `),u(3,Lt,6,0),l(4,"td"),t(5,` 29 `),l(6,"a",20),t(7),P(8,"ellipsis"),s(),t(9,` 30 `),s(),t(10,` 31 `),l(11,"td"),t(12),s(),t(13,` 32 `),l(14,"td"),t(15),s(),t(16,` 33 `),s(),t(17,` 34 `)),n&2){let a=o.$implicit,i=o.rowIndex,e=p(2);d(),m("pReorderableRow",i)("pReorderableRowDisabled",!e.donationSettings.clubDonationOptions||e.donationSettings.clubDonationOptions.length<2),d(2),b((e.donationSettings.clubDonationOptions==null?null:e.donationSettings.clubDonationOptions.length)>1?3:-1),d(3),m("routerLink",nt(10,Mt,e.clubDonationSettingsID,a.clubDonationOptionID)),d(),E(` 35 `,at(8,7,a.title,100),` 36 `),d(5),Q(a.enabled?"YES":"NO"),d(3),E(` 37 `,a.sortOrder||1,` 38 `)}}function jt(n,o){if(n&1&&(t(0,` 39 `),l(1,"tr"),t(2,` 40 `),l(3,"td",22),t(4,` 41 No options have been created 42 `),s(),t(5,` 43 `),s(),t(6,` 44 `)),n&2){let a=p(2);d(3),F("colspan",(a.donationSettings.clubDonationOptions==null?null:a.donationSettings.clubDonationOptions.length)>1?5:4)}}function zt(n,o){if(n&1){let a=C();t(0,` 45 `),l(1,"section",12),t(2,` 46 `),l(3,"h3"),t(4,"Donation Options"),s(),t(5,` 47 `),l(6,"p-table",13,0),x("onRowReorder",function(e){D(a);let r=p();return f(r.onRowReorder(e))}),t(8,` 48 `),g(9,Bt,14,1,"ng-template",14),t(10,` 49 `),g(11,Ut,18,13,"ng-template",15),t(12,` 50 `),g(13,jt,7,1,"ng-template",16),t(14,` 51 `),s(),t(15,` 52 `),l(16,"div",17),t(17,` 53 `),l(18,"a",18),t(19,` 54 Add Donation Option 55 `),s(),t(20,` 56 `),s(),t(21,` 57 `),s(),t(22,` 58 `)}if(n&2){let a=p();d(6),m("value",a.donationSettings.clubDonationOptions)("lazy",!1)("paginator",!1)("loading",!1)("rows",100),d(12),m("routerLink",it(6,Ft,a.clubDonationSettingsID))}}var vt=(()=>{let o=class o{constructor(i,e,r){this.siteDataService=i,this.donationService=e,this.formService=r,this.unsubscribe$=new T}ngOnInit(){v([this.donationService.getDonationSettingsMetadata(),this.donationService.getDonationSettings()]).pipe(h(this.unsubscribe$)).subscribe(i=>{this.donationSettings=i[1]||new Dt,this.clubDonationSettingsID=this.donationSettings.clubDonationSettingsID,this.fields=i[0].fields,this.includeCommentsChange(this.donationSettings.includeCommentsSection),this.siteDataService.hideSiteLoader()})}save(i){i.clubDonationSettingsID=this.donationSettings.clubDonationSettingsID,this.donationService.saveDonationSettings(i).subscribe(e=>{this.siteDataService.showSiteSuccessAlert("Donation settings saved successfully"),this.formService.hideFormLoader(),e?(this.donationSettings=e,this.clubDonationSettingsID=this.donationSettings.clubDonationSettingsID):this.donationSettings=w(w({},this.donationSettings),i)},()=>{this.formService.hideFormLoader(),this.siteDataService.showSiteErrorAlert("There was a problem saving the donation settings")})}includeCommentsChange(i){i?this.fields.find(e=>e.controlName==="commentsSectionLabel").hidden=!1:this.fields.find(e=>e.controlName==="commentsSectionLabel").hidden=!0}onRowReorder(i){let e=[];this.donationSettings.clubDonationOptions.forEach((r,_)=>{e.push(this.donationService.updateDonationOptionSortOrder(this.donationSettings.clubDonationSettingsID,r.clubDonationOptionID,_+1))}),v(e).pipe($(()=>this.donationService.getDonationOptions(this.donationSettings.clubDonationSettingsID)),h(this.unsubscribe$)).subscribe(r=>{this.donationSettings.clubDonationOptions=r,this.siteDataService.showSiteSuccessAlert("Donation/volunteer options reordered successfully")},r=>{this.siteDataService.showSiteErrorAlert("There was an error reordering the donation/volunteer options."),this.refreshOptionsTable()})}refreshOptionsTable(){this.donationService.getDonationOptions(this.donationSettings.clubDonationSettingsID).pipe(h(this.unsubscribe$)).subscribe(i=>{this.donationSettings.clubDonationOptions=i},i=>{this.siteDataService.showSiteErrorAlert("There was an error fetching data")})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};o.\u0275fac=function(e){return new(e||o)(S(B),S(I),S(L))},o.\u0275cmp=O({type:o,selectors:[["app-donation-settings"]],standalone:!1,decls:9,vars:2,consts:[["pTable",""],["role","main"],["pageTitle","Donation Settings"],[1,""],["buttonsPosition","left",3,"onSubmit","fields","entity","horizontalForm","contentFieldsMode","showSaveAndAddButton","showCancelButton","showDeleteButton"],["fieldName","pageTitle"],["fieldName","descriptionText"],["fieldName","includeCommentsSection",3,"onChange"],["fieldName","commentsSectionLabel"],["fieldName","allowCreditDonationsAfterRegistration"],["afterSubmitButtonsContent",""],["target","_blank","rel","noopener noreferrer",1,"btn","btn-lg","btn-icon-external-link-alt-after",3,"routerLink"],[1,"mt-5","horizontal-form"],[1,"table","table-striped","table-sm",3,"onRowReorder","value","lazy","paginator","loading","rows"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"row","form-action","no-gutters"],[1,"btn","btn-primary","btn-add",3,"routerLink"],[3,"pReorderableRow","pReorderableRowDisabled"],[1,"btn","btn-naked",3,"routerLink"],["pReorderableRowHandle","",1,"fa","fa-arrows-alt"],[2,"text-align","left"]],template:function(e,r){e&1&&(l(0,"main",1),t(1,` 59 `),c(2,"app-admin-header",2),t(3,` 60 `),l(4,"section",3),t(5,` 61 `),u(6,Pt,18,8),s(),t(7,` 62 `),u(8,zt,23,8),s()),e&2&&(d(6),b(r.fields?6:-1),d(2),b(r.donationSettings&&r.donationSettings.clubDonationSettingsID?8:-1))},dependencies:[W,H,pt,N,q,U,j,z,bt],encapsulation:2});let n=o;return n})();function Ht(n,o){if(n&1){let a=C();t(0,` 63 `),l(1,"app-dynamic-form",6),x("onSubmit",function(e){D(a);let r=p();return f(r.save(e))})("onCancel",function(){D(a);let e=p();return f(e.cancel())}),t(2,` 64 `),c(3,"app-dynamic-form-field",7),t(4,` 65 `),c(5,"app-dynamic-form-field",8),t(6,` 66 `),c(7,"app-dynamic-form-field",9),t(8,` 67 `),c(9,"app-dynamic-form-field",10),t(10,` 68 `),c(11,"app-dynamic-form-field",11),t(12,` 69 `),c(13,"app-dynamic-form-field",12),t(14,` 70 `),c(15,"app-dynamic-form-field",13),t(16,` 71 `),s(),t(17,` 72 `)}if(n&2){let a=p();d(),m("fields",a.activeFields)("entity",a.option)("horizontalForm",!0)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showCancelButton",!0)("showDeleteButton",!1),d(4),m("enableFilter",!0)}}function Wt(n,o){n&1&&(t(0,` 73 `),l(1,"th"),t(2,` 74 `),s(),t(3,` 75 `))}function qt(n,o){if(n&1&&(t(0,` 76 `),l(1,"tr"),t(2,` 77 `),u(3,Wt,4,0),l(4,"th"),t(5,"Value"),s(),t(6,`
78 `),l(7,"th"),t(8,"Sort Order"),s(),t(9,` 79 `),s(),t(10,` 80 `)),n&2){let a=p(2);d(3),b((a.option.clubDonationOptionValues==null?null:a.option.clubDonationOptionValues.length)>1?3:-1)}}function Gt(n,o){n&1&&(t(0,` 81 `),l(1,"td"),t(2,` 82 `),c(3,"i",23),t(4,` 83 `),s(),t(5,` 84 `))}function Jt(n,o){if(n&1){let a=C();t(0,` 85 `),l(1,"tr",21),t(2,` 86 `),u(3,Gt,6,0),l(4,"td"),t(5,` 87 `),l(6,"button",22),x("click",function(){let e=D(a).$implicit,r=p(2);return f(r.openValueEditModal(e.clubDonationOptionValueID))}),t(7),P(8,"currency"),s(),t(9,` 88 `),s(),t(10,` 89 `),l(11,"td"),t(12),s(),t(13,` 90 `),s(),t(14,` 91 `)}if(n&2){let a=o.$implicit,i=o.rowIndex,e=p(2);d(),m("pReorderableRow",i)("pReorderableRowDisabled",!e.option.clubDonationOptionValues||e.option.clubDonationOptionValues.length<2),d(2),b((e.option.clubDonationOptionValues==null?null:e.option.clubDonationOptionValues.length)>1?3:-1),d(4),E(` 92 `,a.label||ot(8,5,a.amount),` 93 `),d(5),E(` 94 `,a.sortOrder||1,` 95 `)}}function Yt(n,o){if(n&1&&(t(0,` 96 `),l(1,"tr"),t(2,` 97 `),l(3,"td",24),t(4,` 98 No values have been created 99 `),s(),t(5,` 100 `),s(),t(6,` 101 `)),n&2){let a=p(2);d(3),F("colspan",(a.option.clubDonationOptionValues==null?null:a.option.clubDonationOptionValues.length)>1?3:2)}}function Kt(n,o){if(n&1){let a=C();t(0,` 102 `),l(1,"section",14),t(2,` 103 `),l(3,"h3"),t(4,"Values"),s(),t(5,` 104 `),l(6,"p-table",15,0),x("onRowReorder",function(e){D(a);let r=p();return f(r.onRowReorder(e))}),t(8,` 105 `),g(9,qt,11,1,"ng-template",16),t(10,` 106 `),g(11,Jt,15,7,"ng-template",17),t(12,` 107 `),g(13,Yt,7,1,"ng-template",18),t(14,` 108 `),s(),t(15,` 109 `),l(16,"div",19),t(17,` 110 `),l(18,"button",20),x("click",function(){D(a);let e=p();return f(e.openValueEditModal())}),t(19,` 111 Add a Value 112 `),s(),t(20,` 113 `),s(),t(21,` 114 `),s(),t(22,` 115 `)}if(n&2){let a=p();d(6),m("value",a.option.clubDonationOptionValues)("lazy",!1)("paginator",!1)("loading",!1)("rows",100)}}function Qt(n,o){n&1&&(t(0,` 116 `),l(1,"span",29),t(2,"$"),s(),t(3,` 117 `))}function Xt(n,o){if(n&1){let a=C();t(0,` 118 `),l(1,"app-dynamic-form",25),x("onCancel",function(){D(a);let e=p();return f(e.closeValueEditModal())})("onSubmit",function(e){D(a);let r=p();return f(r.saveValue(e))})("onDelete",function(){D(a);let e=p();return f(e.deleteValue())}),t(2,` 119 `),l(3,"app-dynamic-form-field",26),t(4,` 120 `),M(5,1,1),u(7,Qt,4,0),k(),t(8,` 121 `),s(),t(9,` 122 `),c(10,"app-dynamic-form-field",27),t(11,` 123 `),c(12,"app-dynamic-form-field",28),t(13,` 124 `),s(),t(14,` 125 `)}if(n&2){let a=p();d(),m("fields",a.valueFields)("entity",a.clubDonationOptionValue)("horizontalForm",!1)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showDeleteButton",!0),d(6),b((a.option==null?null:a.option.clubDonationOptionTypeID)===a.ClubDonationOptionType.DONATION?7:-1)}}function Zt(n,o){n&1&&(t(0,` 126 `),c(1,"app-skeleton-template",30),t(2,` 127 `))}var wt=(()=>{let o=class o{constructor(i,e,r,_,V){this.siteDataService=i,this.donationService=e,this.formService=r,this.route=_,this.router=V,this.unsubscribe$=new T,this.showValueDialog=!1,this.loadingValue=!1,this.ClubDonationOptionType=xt}ngOnInit(){this.route.params.subscribe(i=>{i.id&&i.donationOptionID&&(this.clubDonationSettingsID=+i.id,i.donationOptionID==="new"?this.donationService.getDonationOptionMetadata(this.clubDonationSettingsID).pipe(h(this.unsubscribe$)).subscribe(e=>{this.fields=e.fields,this.activeFields=this.fields,this.option=new ft,this.siteDataService.hideSiteLoader()}):(this.clubDonationOptionID=+i.donationOptionID,v([this.donationService.getDonationOptionMetadata(this.clubDonationSettingsID),this.donationService.getDonationOption(this.clubDonationSettingsID,this.clubDonationOptionID)]).pipe(h(this.unsubscribe$)).subscribe(e=>{this.fields=e[0].fields,this.option=e[1],this.activeFields=this.fields,this.siteDataService.hide
127SiteLoader()})))})}save(i){i.clubDonationOptionID=this.clubDonationOptionID,this.option&&this.option.clubDonationOptionTypeID&&(i.clubDonationOptionTypeID=this.option.clubDonationOptionTypeID),this.donationService.saveDonationOption(this.clubDonationSettingsID,i).subscribe(e=>{this.siteDataService.showSiteSuccessAlert("Donation settings saved successfully"),this.formService.hideFormLoader(),e?(this.option=e,this.router.navigate(["..",this.option.clubDonationOptionID],{relativeTo:this.route})):this.option=w(w({},this.option),i)},()=>{this.formService.hideFormLoader(),this.siteDataService.showSiteErrorAlert("There was a problem saving the donation settings")})}onRowReorder(i){let e=[];this.option.clubDonationOptionValues.forEach((r,_)=>{e.push(this.donationService.updateDonationOptionValueSortOrder(this.clubDonationSettingsID,this.clubDonationOptionID,r.clubDonationOptionValueID,_+1))}),v(e).pipe($(()=>this.donationService.getDonationOptionValues(this.clubDonationSettingsID,this.clubDonationOptionID)),h(this.unsubscribe$)).subscribe(r=>{this.option.clubDonationOptionValues=r,this.siteDataService.showSiteSuccessAlert("Values reordered successfully")},r=>{this.siteDataService.showSiteErrorAlert("There was an error reordering the values."),this.refreshOptionsTable()})}refreshOptionsTable(){this.donationService.getDonationOptionValues(this.clubDonationSettingsID,this.clubDonationOptionID).pipe(h(this.unsubscribe$)).subscribe(i=>{this.option.clubDonationOptionValues=i},i=>{this.siteDataService.showSiteErrorAlert("There was an error fetching data")})}openValueEditModal(i){this.loadingValue=!0,this.showValueDialog=!0,this.clubDonationOptionValueID=i,this.clubDonationOptionValueID?v([this.donationService.getDonationOptionValueMetadata(),this.donationService.getDonationOptionValue(this.clubDonationSettingsID,this.clubDonationOptionID,this.clubDonationOptionValueID)]).pipe(h(this.unsubscribe$)).subscribe(e=>{this.valueFields=e[0].fields,this.clubDonationOptionValue=e[1],this.loadingValue=!1},e=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}):this.donationService.getDonationOptionValueMetadata().pipe(h(this.unsubscribe$)).subscribe(e=>{this.valueFields=e.fields,this.clubDonationOptionValue=new St,this.loadingValue=!1},e=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")})}closeValueEditModal(){this.showValueDialog=!1,this.clubDonationOptionValueID=void 0}saveValue(i){i.clubDonationOptionValueID=this.clubDonationOptionValueID,this.donationService.saveDonationOptionValue(this.clubDonationSettingsID,this.clubDonationOptionID,i).pipe(h(this.unsubscribe$)).subscribe(e=>{this.refreshOptionsTable(),this.closeValueEditModal(),this.formService.hideFormLoader()},e=>{this.siteDataService.showSiteErrorAlert("There was a problem saving this value.")})}deleteValue(){this.donationService.deleteDonationOptionValue(this.clubDonationSettingsID,this.clubDonationOptionID,this.clubDonationOptionValueID).pipe(h(this.unsubscribe$)).subscribe({next:()=>{this.refreshOptionsTable(),this.closeValueEditModal(),this.formService.hideFormLoader()},error:i=>{this.siteDataService.showSiteErrorAlert("There was a problem deleting this value. "+i.error)}})}cancel(){this.router.navigate(["../../.."],{relativeTo:this.route})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};o.\u0275fac=function(e){return new(e||o)(S(B),S(I),S(L),S(lt),S(dt))},o.\u0275cmp=O({type:o,selectors:[["app-donation-option"]],standalone:!1,decls:14,vars:10,consts:[["pTable",""],["inputGroupStart",""],["role","main"],["parentLinkUrl","../../..","parentLinkText","Donation Settings",3,"pageTitle","showBackButton"],[1,""],["styleClass","standardWidthDialog",3,"visibleChange","modal","closable","visible","header"],["buttonsPosition","left",3,"onSubmit","onCancel","fields","entity","horizontalForm","contentFieldsMode","showSaveAndAddButton","showCancelButton","showDeleteButton"],["fieldName","title"],["fieldName","clubAccountingClassID",3,"enableFilter"],["fieldName","descriptionText"],["fieldName","enabled"],["fieldName","allowUserSpecifiedValue"],["fieldName","isDefault"],["fieldName","sortOrder"],[1,"mt-5","horizontal-form"],[1,"table","table-striped","table-sm",3,"onRowReorder","value","lazy","paginator","loading","rows"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"row","form-action","no-gutters"],[1,"btn","btn-primary","btn-lg","btn-icon-fal-plus-circle",3,"click"],[3,"pReorderableRow","pReorderableRowDisabled"],[1,"btn","btn-naked",3,"click"],["pReorderableRowHandle","",1,"fa","fa-arrows-alt"],[2,"text-align","left"],["buttonsPosition","left","formID","value-form",3,"onCancel","onSubmit","onDelete","fields","entity","horizontalForm","contentFieldsMode","showSaveAndAddButton","showDeleteButton"],["fieldName","amount","formID","value-form"],["fieldName","label","formID","value-form"],["fieldName","sortOrder","formID","value-form"],[1,"text-medium"],["skeletonType","form"]],template:function(e,r){e&1&&(l(0,"main",2),t(1,` 128 `),c(2,"app-admin-header",3),t(3,` 129 `),l(4,"section",4),t(5,` 130 `),u(6,Ht,18,8),s(),t(7,` 131 `),u(8,Kt,23,5),s(),t(9,` 132 133`),l(10,"p-dialog",5),tt("visibleChange",function(V){return Z(r.showValueDialog,V)||(r.showValueDialog=V),V}),t(11,` 134 `),u(12,Xt,15,7),u(13,Zt,3,0),s()),e&2&&(d(2),m("pageTitle",r.clubDonationOptionID?"Edit Donation Option":"New Donation Option")("showBackButton",!0),d(4),b(r.activeFields&&r.option?6:-1),d(2),b(r.o
134ption&&r.option.clubDonationOptionID?8:-1),d(2),m("modal",!0)("closable",!0),X("visible",r.showValueDialog),m("header",r.clubDonationOptionValueID?"Edit Value":"Add Value"),d(2),b(!r.loadingValue&&r.valueFields?12:-1),d(),b(r.loadingValue?13:-1))},dependencies:[W,H,N,ut,q,U,j,z,mt,rt],encapsulation:2});let n=o;return n})();var Ot=(()=>{let o=class o{};o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=R({type:o}),o.\u0275inj=A({imports:[G.forChild([{path:"",component:gt,children:[{path:"",component:vt,canActivate:[J],data:{metaTitle:"Club Donation Settings"}},{path:":id/options/:donationOptionID",component:wt,canActivate:[J],data:{metaTitle:"Club Donation Option Edit"}}]}]),G]});let n=o;return n})();var We=(()=>{let o=class o{};o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=R({type:o}),o.\u0275inj=A({providers:[I],imports:[ht,Ot]});let n=o;return n})();export{We as ClubDonationSettingsModule};
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.