PageSourceSearch

https://midlandsoccerclub.com/chunk-3GZ6DXAP.js

js midlandsoccerclub.com collected 2026-10-09 22:39:36 UTC 78,506 bytes, 497 lines download raw bytes

1import{ja as mt,p as ct}from"./chunk-IWH6QETE.js";import{a as ge}from"./chunk-WR7JO7XW.js";import"./chunk-HEXCNDVV.js";import{a as fe}from"./chunk-MB6YAV2B.js";import"./chunk-4NM77DS2.js";import"./chunk-ADMKBOBN.js";import"./chunk-LCPPMNQ3.js";import"./chunk-BT6MT7GL.js";import{a as dt}from"./chunk-5D7LV4AS.js";import{c as st}from"./chunk-XPLYBCSC.js";import"./chunk-UD33NWAA.js";import"./chunk-7TB77G3Z.js";import{a as nt}from"./chunk-4CVZBQNN.js";import"./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"./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{a as Xe,f as Ze}from"./chunk-FUY7HSJY.js";import{d as et,e as $,f as S}from"./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-QH3IRCHN.js";import"./chunk-PLEH3NAH.js";import"./chunk-GXCJ5QS4.js";import"./chunk-22ACI5KU.js";import"./chunk-FXUQQQIE.js";import"./chunk-FSUBAQYH.js";import"./chunk-7CVCGK4Q.js";import"./chunk-FWW3IJT2.js";import"./chunk-B6LCWWQX.js";import"./chunk-HYGNXZJR.js";import"./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{Bb as Pe,Ce as me,Ec as W,Gb as z,Hd as J,Je as pe,Kb as tt,Le as ue,Mb as De,Ne as he,Ob as v,Oc as ot,Pe as xe,Qc as q,Rc as G,Wc as ce,We as rt,gc as ke,hc as it,kd as Q,kh as lt,ve as at}from"./chunk-X5J6QTCG.js";import{$ as te,$a as b,Aa as He,Ac as je,Ad as Me,Bf as se,E as Ne,Fa as d,Fb as oe,Ib as e,Jb as I,Jf as de,Ka as M,Kb as E,Ma as j,Na as ne,Qb as T,Rb as O,Rc as le,Sa as w,Sb as A,T as Re,U as P,Wc as $e,_ as F,ad as ze,ba as k,bb as _,be as Qe,d as V,db as ye,dc as ae,di as Ye,eb as K,ec as Ee,fa as g,fb as X,fg as Ie,fi as L,ga as f,gb as m,gi as B,hb as o,hi as Ke,ib as a,jb as p,lc as re,mc as Ue,md as We,nc as Ve,pj as U,q as Le,qb as y,qc as D,sb as C,sg as Je,tb as u,u as H,xb as ie,xd as qe,yb as Z,yd as Ge,zb as ee}from"./chunk-SMW7PHYX.js";import"./chunk-BMIYOSOG.js";var be=(()=>{let s=class s{constructor(t,i){this.webAPI=t,this.http=i}getMobileBannerItems(){return this.webAPI.getData("admin/mobile-banner")}getMobileSponsors(){return this.webAPI.getData("admin/club-sponsors/mobile-sponsors")}getMobileBannerItemMetadata(){return this.webAPI.getData("admin/mobile-banner/metadata")}getBannerSettings(){return this.webAPI.getData("admin/mobile-banner/banner-settings")}getBannerSettingMetaData(){return this.webAPI.getData("admin/mobile-banner/banner-settings-metadata")}saveMobileBannerSettings(t){return t.id?this.webAPI.putData(`admin/mobile-banner/banner-settings/${t.id}`,t):this.webAPI.postData("admin/mobile-banner/banner-settings",t)}getMobileBannerItem(t){return this.webAPI.getData(`admin/mobile-banner/${t}`)}saveMobileBannerContent(t){return t.id?this.webAPI.putData(`admin/mobile-banner/${t.id}`,t):this.webAPI.postData("admin/mobile-banner",t)}saveMobileBannerContentSortOrder(t){return this.webAPI.putData(`admin/mobile-banner/${t.Id}/sort-order`,t)}deleteMobileBannerItem(t){return this.webAPI.deleteData(`admin/mobile-banner/${t}`)}saveMobileBannerContentImage(t,i){return t?this.webAPI.postMultiPartContent(`admin/mobile-banner/${t}/file`,i,i.name):this.webAPI.postMultiPartContent("admin/mobile-banner/file",i,i.name)}getFileFromUrl(t,i){return this.http.get(t,{responseType:"blob"}).pipe(Le(l=>new File([l],i,{type:l.type})))}};s.\u0275fac=function(i){return new(i||s)(k(L),k(We))},s.\u0275prov=F({token:s,factory:s.\u0275fac});let r=s;return r})();var Oe=class extends Ke{},_e=class extends Oe{constructor(){super(),this.startDate=new Date,this.highlights="#ffffff0",this.shadow="#ffffff0",this.contentLinkOptionID=B.PAGE_BUILDER_PAGE}};function Ae(r,s){let n=[];
1if(s.title||s.descriptionText){let t=s.textBoxBackgroundOpacity?parseFloat(s.textBoxBackgroundOpacity)/100:0;n.push(t>0?`linear-gradient(rgba(0, 0, 0, ${t}), rgba(0, 0, 0, ${t}))`:"linear-gradient(to right, rgba(64, 64, 64, 0.9), rgba(64, 64, 64, 0.2))")}return s.file&&n.push("url("+s.file+")"),{"background-color":r,"background-image":n.join(", ")}}var Ce=(()=>{let s=class s{constructor(t){this.webAPI=t,this.baseURL="admin/sprocket-featured-content"}getItems(){return this.webAPI.getData(this.baseURL)}getItemMetadata(){return this.webAPI.getData(`${this.baseURL}/metadata`)}saveItem(t){return t.id?this.webAPI.putData(`${this.baseURL}/${t.id}`,t):this.webAPI.postData(this.baseURL,t)}uploadImage(t){return this.webAPI.postMultiPartContent(`${this.baseURL}/file`,t,t.name)}saveSortOrders(t){return this.webAPI.putData(`${this.baseURL}/sort-order`,t)}deleteItem(t){return this.webAPI.deleteData(`${this.baseURL}/${t}`)}};s.\u0275fac=function(i){return new(i||s)(k(L))},s.\u0275prov=F({token:s,factory:s.\u0275fac});let r=s;return r})();var ve=class{constructor(){this.startDate=new Date,this.excludedClubs=[]}};var Pt=["fileUploadField"],Dt=(r,s)=>s.id;function kt(r,s){if(r&1&&(e(0,`
2                                        `),o(1,"span",25),e(2),re(3,"date"),a(),e(4,`
3                                    `)),r&2){let n=u().$implicit;d(2),I(Ve(3,1,n.startDate,"MMMM d"))}}function Tt(r,s){if(r&1&&(e(0,`
4                    `),o(1,"swiper-slide"),e(2,`
5                        `),o(3,"div",20),e(4,`
6                            `),p(5,"div",21),e(6,`
7                            `),o(7,"div",22),e(8,`
8                                `),o(9,"div",23),e(10),a(),e(11,`
9                                `),o(12,"div",24),e(13,`
10                                    `),e(14,`
11                                    `),b(15,kt,5,4),a(),e(16,`
12                            `),a(),e(17,`
13                        `),a(),e(18,`
14                    `),a(),e(19,`
15                    `)),r&2){let n=s.$implicit,t=u(2);d(5),m("ngStyle",t.getPreviewImageStyle(n)),d(5),E(`
16                                    `,n.title?n.title:n.internalName),d(5),_(n.startDate?15:-1)}}function Ot(r,s){if(r&1&&(e(0,`
17                `),o(1,"swiper-container",19),e(2,`
18                    `),K(3,Tt,20,3,null,null,Dt),a(),e(5,`
19                `)),r&2){let n=u();d(),m("slidesPerView",2.2)("spaceBetween",8)("slidesOffsetBefore",8)("slidesOffsetAfter",8),d(2),X(n.items)}}function At(r,s){r&1&&(e(0,`
20                `),p(1,"app-skeleton-template",26),e(2,`
21                `)),r&2&&(d(),m("skeletonType","banner"))}function Bt(r,s){r&1&&(e(0,`
22                `),o(1,"tr"),e(2,`
23                    `),p(3,"th"),e(4,`
24                    `),o(5,"th"),e(6,"Name"),a(),e(7,`
25                    `),o(8,"th"),e(9,"Target"),a(),e(10,`
26                    `),o(11,"th"),e(12,`Active
27                        `),o(13,"app-tooltip",27),e(14,`
28                        `),a(),e(15,`
29                    `),a(),e(16,`
30                `),a(),e(17,`
31            `))}function Ft(r,s){if(r&1){let n=y();e(0,`
32                `),o(1,"tr",28),e(2,`
33                    `),o(3,"td"),e(4,`
34                        `),o(5,"span",29),e(6,`
35                            `),p(7,"i",30)(8,"i",30),e(9,`
36                        `),a(),e(10,`
37                    `),a(),e(11,`
38                    `),o(12,"td"),e(13,`
39                        `),o(14,"button",31),C("click",function(){let i=g(n).$implicit,l=u();return f(l.itemClick(i))}),e(15),a(),e(16,`
40                    `),a(),e(17,`
41                    `),o(18,"td"),e(19),a(),e(20,`
42                    `),o(21,"td"),e(22,`
43                        `),p(23,"app-status-indicator",32),e(24,`
44                    `),a(),e(25,`
45                `),a(),e(26,`
46            `)}if(r&2){let n=s.$implicit,t=u();d(),m("cdkDragData",n),d(14),I(n.title?n.title:n.internalName),d(4),E(`
47                        `,n.excludedClubs!=null&&n.excludedClubs.length?"All Except "+n.excludedClubs.length+" Club(s)":"All Clubs",`
48                    `),d(4),m("status",t.itemStatus(n))("text",t.itemText(n))("dots",!0)}}function Lt(r,s){r&1&&(e(0,`
49                `),o(1,"tr"),e(2,`
50                    `),o(3,"td",33),e(4,"No Parent Education Hub items yet."),a(),e(5,`
51                `),a(),e(6,`
52            `))}function Nt(r,s){if(r&1){let n=y();e(0,`
53    `),o(1,"app-dynamic-form",34),C("onCancel",function(){g(n);let i=u();return f(i.closeModal())})("onDelete",function(){g(n);let i=u();return f(i.confirmDelete(i.entity))})("onSubmit",function(i){g(n);let l=u();
53return f(l.saveItem(i))}),e(2,`
54        `),p(3,"app-dynamic-form-field",35),e(4,`
55        `),p(5,"app-dynamic-form-field",36),e(6,`
56        `),p(7,"app-dynamic-form-field",37),e(8,`
57        `),p(9,"app-dynamic-form-field",38),e(10,`
58        `),o(11,"app-dynamic-form-field",39,3),C("onChange",function(i){g(n);let l=u();return f(l.file=i?i.target?i.target.files[0]:i:void 0)}),e(13,`
59        `),a(),e(14,`
60        `),p(15,"app-dynamic-form-field",40),e(16,`
61        `),p(17,"app-dynamic-form-field",41),e(18,`
62    `),a(),e(19,`
63    `)}if(r&2){let n=u();d(),m("fields",n.activeFields)("entity",n.entity)("horizontalForm",!1)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showDeleteButton",!!(n.entity!=null&&n.entity.id)),d(10),m("acceptType",n.fileImageUploadAcceptTypes)("acceptedFileExtensions",n.acceptedFileTypes)("canRemoveFile",!0)("selectedFileName",n.entity.file?n.entity.file:null)("showFileUploadImagePreview",!0),d(4),m("enableFilter",!0),d(2),m("enableFilter",!0)("strikethroughSelectedTreeNodes",!0)}}function Rt(r,s){if(r&1){let n=y();e(0,`
64`),o(1,"app-yes-no-modal",42),C("onYesSelect",function(){g(n);let i=u();return f(i.deleteItem(i.deletingItem.id))})("onNoSelect",function(){g(n);let i=u();return f(i.deletingItem=void 0)}),a(),e(2,`
65`)}r&2&&(d(),m("headerText","Remove Item")("modalText","Remove this item from the Parent Education Hub carousel?"))}var bt=(()=>{let s=class s{constructor(t,i){this.parentEducationHubService=t,this.siteDataService=i,this.unsubscribe$=new V,this.loading=!0,this.showItemModal=!1,this.acceptedFileTypes=se,this.fileImageUploadAcceptTypes=de}ngOnInit(){H({items:this.parentEducationHubService.getItems(),metadata:this.parentEducationHubService.getItemMetadata()}).pipe(P(this.unsubscribe$)).subscribe({next:t=>{this.items=t.items,this.fields=t.metadata.fields,this.activeFields=this.fields,this.loading=!1},error:()=>{this.siteDataService.showSiteErrorAlert("Unable to load Parent Education Hub items."),this.loading=!1}})}reorderItem(t){if(t.previousIndex===t.currentIndex)return;pe(this.items,t.previousIndex,t.currentIndex);let i=this.items.map((l,h)=>(l.sortOrder=h,{id:l.id,sortOrder:h}));this.parentEducationHubService.saveSortOrders(i).pipe(P(this.unsubscribe$)).subscribe({next:()=>this.siteDataService.showSiteSuccessAlert("Updated"),error:()=>this.siteDataService.showSiteErrorAlert("Failed to update order")})}createNewItem(){this.entity=new ve,this.entity.sortOrder=this.items.length,this.activeFields.forEach(t=>t.value=null),this.collapseClubTree(),this.showItemModal=!0}itemClick(t){this.entity=t,this.collapseClubTree(),this.showItemModal=!0}collapseClubTree(){let t=i=>{i&&(i.expanded=!1,(i.children??[]).forEach(t))};t(this.activeFields?.find(i=>i.controlName==="excludedClubs")?.treeOptions)}closeModal(){this.showItemModal=!1,this.entity=void 0}saveItem(t){t.id=this.entity.id,t.sortOrder=this.entity.sortOrder,t.file=this.entity.file;let i=()=>{this.parentEducationHubService.saveItem(t).subscribe({next:l=>{t.id?this.items=this.items.map(h=>h.id!==t.id?h:t):this.items.push(l),this.siteDataService.showSiteSuccessAlert("Saved"),this.closeModal()},error:()=>this.siteDataService.showSiteErrorAlert("Failed to save")})};this.fileUploadField?.hasFileChanged&&this.file?this.parentEducationHubService.uploadImage(this.file).subscribe({next:l=>{t.file=l.location,i()},error:()=>this.siteDataService.showSiteErrorAlert("Failed to upload image")}):i()}confirmDelete(t){this.deletingItem=t}deleteItem(t){this.parentEducationHubService.deleteItem(t).subscribe({next:()=>{this.items=this.items.filter(i=>i.id!==t),this.deletingItem=void 0,this.closeModal()},error:()=>this.siteDataService.showSiteErrorAlert("Failed to delete")})}itemStatus(t){let i=new Date().setHours(0,0,0,0);return new Date(t.startDate).setHours(0,0,0,0)>i?"warning":!t.endDate||i<=new Date(t.endDate).setHours(23,59,59,999)?"active":"default"}getPreviewImageStyle(t){return{"background-image":t.file?"url("+t.file+")":null}}itemText(t){let i=new Date().setHours(0,0,0,0);return new Date(t.startDate).setHours(0,0,0,0)>i?"Scheduled":!t.endDate||i<=new Date(t.endDate).setHours(23,59,59,999)?"Live":"Expired"}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};s.\u0275fac=function(i){return new(i||s)(M(Ce),M(U))},s.\u0275cmp=j({type:s,selectors:[["app-parent-education-hub"]],viewQuery:function(i,l){if(i&1&&ie(Pt,5),i&2){let h;Z(h=ee())&&(l.fileUploadField=h.first)}},standalone:!1,decls:62,vars:9,consts:[["header",""],["body",""],["emptymessage",""],["fileUploadField",""],[1,"card","settings-card"],[1,"mb-3"],[1,"text-medium","text-grey"],[1,"preview-window"],[1,"ph
65one-top"],[1,"phone-body"],[1,"phone-left"],[1,"phone-screen"],[1,"toolbar"],[1,"toolbar-title--text"],[1,"phone-right"],["dataKey","id","cdkDropList","",3,"cdkDropListDropped","value","tableStyleClass","loading"],[1,"card-footer"],[1,"btn","btn-add","btn-naked",3,"click"],["header","Parent Education Hub","styleClass","standardWidthDialog",3,"visibleChange","modal","closable","visible"],[3,"slidesPerView","spaceBetween","slidesOffsetBefore","slidesOffsetAfter"],[1,"parent-education-tile"],[1,"media-card--hero",3,"ngStyle"],[1,"mx-2","my-2"],[1,"fw-600","line-height-2","mb-2","line-clamp-2","media-card--title","media-card--title--reserved"],[1,"d-flex","align-items-center","mt-3"],[1,"text-grey-lt","text-smallest"],[3,"skeletonType"],["tooltipText","Items will only appear if they are within the start and end dates (if configured)"],["cdkDrag","","cdkDragPreviewContainer","parent",3,"cdkDragData"],["cdkDragHandle","",1,"nowrap"],[1,"fal","fa-ellipsis-v","fa-width-auto","letter-spacing-xl"],["label","Edit",1,"btn","btn-naked","btn-icon-cog",3,"click"],[3,"status","text","dots"],["colspan","4"],["buttonsPosition","spread",3,"onCancel","onDelete","onSubmit","fields","entity","horizontalForm","contentFieldsMode","showSaveAndAddButton","showDeleteButton"],["fieldName","internalName"],["fieldName","title"],["fieldName","startDate"],["fieldName","endDate"],["fieldName","file",3,"onChange","acceptType","acceptedFileExtensions","canRemoveFile","selectedFileName","showFileUploadImagePreview"],["fieldName","pageBuilderPageID",3,"enableFilter"],["fieldName","excludedClubs",3,"enableFilter","strikethroughSelectedTreeNodes"],[3,"onYesSelect","onNoSelect","headerText","modalText"]],template:function(i,l){if(i&1){let h=y();o(0,"div",4),e(1,`
66    `),o(2,"h2")(3,"strong"),e(4,"Parent Education Hub"),a()(),e(5,`
67    `),o(6,"div",5),e(7,`
68        `),o(8,"span",6),e(9,`
69            Curates which Sprocket-authored pages appear in the mobile app's Parent Education Hub
70            carousel, in what order, and to which clubs. This panel is only visible to Super Admins
71            in the Sprocket club's own context.
72        `),a(),e(10,`
73    `),a(),e(11,`
74    `),o(12,"div",7),e(13,`
75        `),p(14,"div",8),e(15,`
76        `),o(16,"div",9),e(17,`
77            `),p(18,"div",10),e(19,`
78            `),o(20,"div",11),e(21,`
79                `),o(22,"div",12),e(23,`
80                    `),o(24,"span",13),e(25,"Parent Education Hub"),a(),e(26,`
81                `),a(),e(27,`
82                `),b(28,Ot,6,4)(29,At,3,1),a(),e(30,`
83            `),p(31,"div",14),e(32,`
84        `),a(),e(33,`
85    `),a(),e(34,`
86    `),o(35,"div"),e(36,`
87        `),o(37,"p-table",15),C("cdkDropListDropped",function(c){return l.reorderItem(c)}),e(38,`
88            `),w(39,Bt,18,0,"ng-template",null,0,D),e(41,`
89            `),w(42,Ft,27,6,"ng-template",null,1,D),e(44,`
90            `),w(45,Lt,7,0,"ng-template",null,2,D),e(47,`
91        `),a(),e(48,`
92        `),o(49,"div",16),e(50,`
93            `),o(51,"a",17),C("click",function(){return l.createNewItem()}),e(52,"Add Parent Education Hub Item"),a(),e(53,`
94        `),a(),e(54,`
95    `),a(),e(55,`
96`),a(),e(56,`
97
98`),o(57,"p-dialog",18),A("visibleChange",function(c){return g(h),O(l.showItemModal,c)||(l.showItemModal=c),f(c)}),e(58,`
99    `),b(59,Nt,20,14),a(),e(60,`
100
101`),b(61,Rt,3,2)}i&2&&(d(28),_(l.items&&l.items.length?28:29),d(9),m("value",l.items)("tableStyleClass","navigation-admin-table table-layout-auto")("loading",l.loading),d(20),m("modal",!0)("closable",!1),T("visible",l.showItemModal),d(2),_(l.showItemModal?59:-1),d(2),_(l.deletingItem?61:-1))},dependencies:[le,J,Q,G,q,ce,me,W,z,xe,he,ue,$e],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{width:100%;display:table;table-layout:auto}  swiper-container{padding-bottom:30px;margin-bottom:-24px}  .swiper-pagination-fraction,   .swiper-pagination-custom,   .swiper-container-horizontal>.swiper-pagination-bullets{bottom:0}.featured-banner-content[_ngcontent-%COMP%]{color:var(--color-white);padding:1rem;background-size:cover;background-position:center;margin:1rem .5rem 0rem;border-radius:8px;aspect-ratio:2.43/1;position:relative;overflow:hidden;box-sizing:border-box}.featured-banner-content.needs-contrast[_ngcontent-%COMP%]{color:var(--color-black-lt)}.featured-banner-content[_ngcontent-%COMP%]   .featured-banner-text[_ngcontent-%COMP%]{max-width:75%;max-height:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:5;line-clamp:5;-webkit-box-orient:vertical}.featured-banner-content[_ngcontent-%COMP%]   .featured-title[_ngcontent-%COMP%]{margin-bottom:.75rem;font-size:.77rem;line-height:1.2}.featured-banner-content[_ngcontent-%COMP%]   .featured-description[_ngcontent-%COMP%]{font-size:.65rem;line-height:1.2}.featured-banner-image[_ngcontent-%COMP%]{width:100%}.featured-banner-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:100%;margin:0 auto;display:block}.featured-banner-image[_ngcontent-%COMP%]   .sponsor-tag-label[_ngcontent-%COMP%]{margin-top:-.75rem;display:block;margin-bottom:.25rem;height:22px}.featured-banner-image[_ngcontent-%COMP%]   .featured-banner-image-inner[_ngcontent-%COMP%]{height:calc(100% - 11px)}.preview-window[_ngcontent-%COMP%]{background-color:var(--color-black);padding-top:1rem}.preview-window[_ngcontent-%COMP%]   .phone-top[_ngcontent-%COMP%]{background-color:var(--color-black);background-repeat:no-repeat;background-origin:top;height:62px;background-image:url(/assets/img/phone-preview/phone-preview_top.jpg);background-position:center}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]{display:flex}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]   .phone-left[_ngcontent-%COMP%]{background-color:var(--color-black);background-repeat:repeat-y;background-position:top right;background-image:url(/assets/img/phone-preview/phone-preview_left.jpg);flex-grow:1}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]   .phone-screen[_ngcontent-%COMP%]{width:307px;font-family:Roboto,Helvetica Neue,sans-serif;background-color:var(--color-white);-webkit-user-select:none;user-select:none;padding-bottom:.5rem}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]   .phone-right[_ngcontent-%COMP%]{background-color:var(--color-black);background-repeat:repeat-y;background-position:top left;background-image:url(/assets/img/phone-preview/phone-preview_right.jpg);flex-grow:1}.toolbar[_ngcontent-%COMP%]{height:46px;align-items:center;justify-content:space-between;display:flex;margin-top:-.75rem;width:100%}.toolbar-title--text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;font-size:var(--text-medium);white-space:break-spaces;-webkit-line-clamp:2;line-height:1.1rem;display:-webkit-box;-webkit-box-orient:vertical;font-weight:500;align-self:center}.parent-education-tile[_ngcontent-%COMP%]{margin-top:0;margin-bottom:.5rem;padding:0;box-shadow:0 4px 6px -1px #1414141a,0 2px 4px -2px #1414140f;overflow:hidden;border-radius:16px;border:.33px solid #cccccc}.parent-education-tile[_ngcontent-%COMP%]   .media-card--hero[_ngcontent-%COMP%]{position:relative;width:100%;height:auto;background-color:var(--grey-200);background-position:center;background-repeat:no-repeat;background-size:cover;aspect-ratio:16/9}.parent-education-tile[_ngcontent-%COMP%]   .media-card--title--reserved[_ngcontent-%COMP%]{height:3.588rem;overflow:hidden}",".toolbar[_ngcontent-%COMP%]{justify-content:center}"]});let r=s;return r})();var we=(()=>{let s=class s{constructor(t){this.webAPI=t,this.baseURL="admin/site-banner"}getItems(){return this.webAPI.getData(this.baseURL)}getItemMetadata(){return this.webAPI.getData(`${this.baseURL}
101/metadata`)}saveItem(t){return t.id?this.webAPI.putData(`${this.baseURL}/${t.id}`,t):this.webAPI.postData(this.baseURL,t)}deleteItem(t){return this.webAPI.deleteData(`${this.baseURL}/${t}`)}};s.\u0275fac=function(i){return new(i||s)(k(L))},s.\u0275prov=F({token:s,factory:s.\u0275fac});let r=s;return r})();var Se=class{constructor(){this.startDate=new Date,this.clubExclusions=[]}};function Vt(r,s){r&1&&(e(0,`
102                `),o(1,"tr"),e(2,`
103                    `),o(3,"th"),e(4,"Title"),a(),e(5,`
104                    `),o(6,"th"),e(7,"Display Option"),a(),e(8,`
105                    `),o(9,"th"),e(10,"Club Assignments"),a(),e(11,`
106                    `),o(12,"th"),e(13,`Active
107                        `),o(14,"app-tooltip",10),e(15,`
108                        `),a(),e(16,`
109                    `),a(),e(17,`
110                `),a(),e(18,`
111            `))}function jt(r,s){if(r&1){let n=y();e(0,`
112                `),o(1,"tr"),e(2,`
113                    `),o(3,"td"),e(4,`
114                        `),o(5,"button",11),C("click",function(){let i=g(n).$implicit,l=u();return f(l.itemClick(i))}),e(6),a(),e(7,`
115                    `),a(),e(8,`
116                    `),o(9,"td"),e(10),a(),e(11,`
117                    `),o(12,"td"),e(13),a(),e(14,`
118                    `),o(15,"td"),e(16,`
119                        `),p(17,"app-status-indicator",12),e(18,`
120                    `),a(),e(19,`
121                `),a(),e(20,`
122            `)}if(r&2){let n=s.$implicit,t=u();d(6),I(n.title),d(4),E(`
123                        `,t.displayOptionText(n),`
124                    `),d(3),E(`
125                        `,n.clubExclusions!=null&&n.clubExclusions.length?"All Except "+n.clubExclusions.length+" Club(s)":"All Clubs",`
126                    `),d(4),m("status",t.itemStatus(n))("text",t.itemText(n))("dots",!0)}}function $t(r,s){r&1&&(e(0,`
127                `),o(1,"tr"),e(2,`
128                    `),o(3,"td",13),e(4,"No Spotlight Banner Messaging items yet."),a(),e(5,`
129                `),a(),e(6,`
130            `))}function zt(r,s){if(r&1){let n=y();e(0,`
131    `),o(1,"app-dynamic-form",14),C("onCancel",function(){g(n);let i=u();return f(i.closeModal())})("onDelete",function(){g(n);let i=u();return f(i.confirmDelete(i.entity))})("onSubmit",function(i){g(n);let l=u();return f(l.saveItem(i))}),e(2,`
132        `),p(3,"app-dynamic-form-field",15),e(4,`
133        `),p(5,"app-dynamic-form-field",16),e(6,`
134        `),o(7,"div",17),e(8,`
135            Use the link button above to add a hyperlink. When prompted for the URL, paste the token
136            below anywhere you want this club's domain inserted automatically.
137            `),o(9,"div",18),e(10,`
138                `),o(11,"code"),e(12),a(),e(13,`
139                `),o(14,"button",19),C("click",function(){g(n);let i=u();return f(i.copyClubDomainToken())}),e(15,`
140                    `),p(16,"i",20),e(17,`
141                `),a(),e(18,`
142            `),a(),e(19,`
143        `),a(),e(20,`
144        `),p(21,"app-dynamic-form-field",21),e(22,`
145        `),p(23,"app-dynamic-form-field",22),e(24,`
146        `),p(25,"app-dynamic-form-field",23),e(26,`
147        `),p(27,"app-dynamic-form-field",24),e(28,`
148        `),p(29,"app-dynamic-form-field",25),e(30,`
149    `),a(),e(31,`
150    `)}if(r&2){let n=u();d(),m("fields",n.activeFields)("entity",n.entity)("horizontalForm",!1)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showDeleteButton",!!(n.entity!=null&&n.entity.id)),d(4),m("tinySettings",n.tinySettingsLinkOnly),d(7),I(n.clubDomainToken),d(17),m("enableFilter",!0)("strikethroughSelectedTreeNodes",!0)}}function Wt(r,s){if(r&1){let n=y();e(0,`
151`),o(1,"app-yes-no-modal",26),C("onYesSelect",function(){g(n);let i=u();return f(i.deleteItem(i.deletingItem.id))})("onNoSelect",function(){g(n);let i=u();return f(i.deletingItem=void 0)}),a(),e(2,`
152`)}r&2&&(d(),m("headerText","Remove Banner")("modalText","Remove this Spotlight Banner?"))}var _t=(()=>{let s=class s{constructor(t,i){this.siteBannerService=t,this.siteDataService=i,this.unsubscribe$=new V,this.loading=!0,this.showItemModal=!1,this.clubDomainToken="{{clubDomain}}",this.tinySettingsLinkOnly=Je}ngOnInit(){H({items:this.siteBannerService.getItems(),metadata:this.siteBannerService.getItemMetadata()}).pipe(P(this.unsubscribe$)).subscribe({next:t=>{this.items=t.items,this.fields=t.metadata.fields,this.activeFields=this.fields,this.loading=!1},error:()=>{this.siteDataService.showSiteErrorAlert("Unable to load Spotlight Banner Messaging items."),this.loading=!1}})}createNewItem(){this.entity=new Se,this.activeFields.forEach(t=>t.value=null),this.collapseClubTree(),this.showItemModal=!0}itemClick(t){this.entity=t,this.collapseClubTree(),this.showItemModal=!0}collapseClubTree(){let t=i=>
152{i&&(i.expanded=!1,(i.children??[]).forEach(t))};t(this.activeFields?.find(i=>i.controlName==="clubExclusions")?.treeOptions)}closeModal(){this.showItemModal=!1,this.entity=void 0}copyClubDomainToken(){this.siteDataService.copyToClipboard(this.clubDomainToken,"Token copied!")}saveItem(t){t.id=this.entity.id,this.siteBannerService.saveItem(t).subscribe({next:i=>{this.items=t.id?this.items.map(l=>l.id!==t.id?l:i):[...this.items,i],this.siteDataService.showSiteSuccessAlert("Saved"),this.closeModal()},error:()=>this.siteDataService.showSiteErrorAlert("Failed to save")})}confirmDelete(t){this.deletingItem=t}deleteItem(t){this.siteBannerService.deleteItem(t).subscribe({next:()=>{this.items=this.items.filter(i=>i.id!==t),this.deletingItem=void 0,this.closeModal()},error:()=>this.siteDataService.showSiteErrorAlert("Failed to delete")})}displayOptionText(t){return this.fields?.find(l=>l.controlName==="displayOption")?.options?.find(l=>l.value===t.displayOption)?.label??""}itemStatus(t){let i=new Date().setHours(0,0,0,0);return new Date(t.startDate).setHours(0,0,0,0)>i?"warning":!t.endDate||i<=new Date(t.endDate).setHours(23,59,59,999)?"active":"default"}itemText(t){let i=new Date().setHours(0,0,0,0);return new Date(t.startDate).setHours(0,0,0,0)>i?"Scheduled":!t.endDate||i<=new Date(t.endDate).setHours(23,59,59,999)?"Live":"Expired"}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};s.\u0275fac=function(i){return new(i||s)(M(we),M(U))},s.\u0275cmp=j({type:s,selectors:[["app-site-banner-messaging"]],standalone:!1,decls:39,vars:8,consts:[["header",""],["body",""],["emptymessage",""],[1,"card","settings-card"],[1,"mb-3"],[1,"text-medium","text-grey"],["dataKey","id",3,"value","tableStyleClass","loading"],[1,"card-footer"],[1,"btn","btn-add","btn-naked",3,"click"],["header","Spotlight Banner Messaging","styleClass","standardWidthDialog",3,"visibleChange","modal","closable","visible"],["tooltipText","Banners will only appear if they are within the start and end dates (if configured)"],["label","Edit",1,"btn","btn-naked","btn-icon-cog",3,"click"],[3,"status","text","dots"],["colspan","4"],["buttonsPosition","spread",3,"onCancel","onDelete","onSubmit","fields","entity","horizontalForm","contentFieldsMode","showSaveAndAddButton","showDeleteButton"],["fieldName","title"],["fieldName","text",3,"tinySettings"],[1,"mb-3","text-smallest","text-grey"],[1,"d-flex","align-items-center","gap-2","mt-1"],["type","button","aria-label","Copy club domain token",1,"btn","btn-sm","btn-tertiary",3,"click"],[1,"fa-regular","fa-copy"],["fieldName","startDate"],["fieldName","endDate"],["fieldName","displayOption"],["fieldName","excludeFromMobile"],["fieldName","clubExclusions",3,"enableFilter","strikethroughSelectedTreeNodes"],[3,"onYesSelect","onNoSelect","headerText","modalText"]],template:function(i,l){if(i&1){let h=y();o(0,"div",3),e(1,`
153    `),o(2,"h2")(3,"strong"),e(4,"Spotlight Banner Messaging"),a()(),e(5,`
154    `),o(6,"div",4),e(7,`
155        `),o(8,"span",5),e(9,`
156            Manages the banner shown on the public homepage and/or the logged-in dashboard. This
157            panel is only visible to Super Admins in the Sprocket club's own context.
158        `),a(),e(10,`
159    `),a(),e(11,`
160    `),o(12,"div"),e(13,`
161        `),o(14,"p-table",6),e(15,`
162            `),w(16,Vt,19,0,"ng-template",null,0,D),e(18,`
163            `),w(19,jt,21,6,"ng-template",null,1,D),e(21,`
164            `),w(22,$t,7,0,"ng-template",null,2,D),e(24,`
165        `),a(),e(25,`
166        `),o(26,"div",7),e(27,`
167            `),o(28,"a",8),C("click",function(){return l.createNewItem()}),e(29,"Add Spotlight Banner"),a(),e(30,`
168        `),a(),e(31,`
169    `),a(),e(32,`
170`),a(),e(33,`
171
172`),o(34,"p-dialog",9),A("visibleChange",function(c){return g(h),O(l.showItemModal,c)||(l.showItemModal=c),f(c)}),e(35,`
173    `),b(36,zt,32,10),a(),e(37,`
174
175`),b(38,Wt,3,2)}i&2&&(d(14),m("value",l.items)("tableStyleClass","navigation-admin-table table-layout-auto")("loading",l.loading),d(20),m("modal",!0)("closable",!1),T("visible",l.showItemModal),d(2),_(l.showItemModal?36:-1),d(2),_(l.deletingItem?38:-1))},dependencies:[J,Q,G,q,me,W,z],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{width:100%;display:table;table-layout:auto}  swiper-container{padding-bottom:30px;margin-bottom:-24px}  .swiper-pagination-fraction,   .swiper-pagination-custom,   .swiper-container-horizontal>.swiper-pagination-bullets{bottom:0}.featured-banner-content[_ngcontent-%COMP%]{color:var(--color-white);padding:1rem;background-size:cover;background-position:center;margin:1rem .5rem 0rem;border-radius:8px;aspect-ratio:2.43/1;position:relative;overflow:hidden;box-sizing:border-box}.featured-banner-content.needs-contrast[_ngcontent-%COMP%]{color:var(--color-black-lt)}.featured-banner-content[_ngcontent-%COMP%]   .featured-banner-text[_ngcontent-%COMP%]{max-width:75%;max-height:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:5;line-clamp:5;-webkit-box-orient:vertical}.featured-banner-content[_ngcontent-%COMP%]   .featured-title[_ngcontent-%COMP%]{margin-bottom:.75rem;font-size:.77rem;line-height:1.2}.featured-banner-content[_ngcontent-%COMP%]   .featured-description[_ngcontent-%COMP%]{font-size:.65rem;line-height:1.2}.featured-banner-image[_ngcontent-%COMP%]{width:100%}.featured-banner-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:100%;margin:0 auto;display:block}.featured-banner-image[_ngcontent-%COMP%]   .sponsor-tag-label[_ngcontent-%COMP%]{margin-top:-.75rem;display:block;margin-bottom:.25rem;height:22px}.featured-banner-image[_ngcontent-%COMP%]   .featured-banner-image-inner[_ngcontent-%COMP%]{height:calc(100% - 11px)}.preview-window[_ngcontent-%COMP%]{background-color:var(--color-black);padding-top:1rem}.preview-window[_ngcontent-%COMP%]   .phone-top[_ngcontent-%COMP%]{background-color:var(--color-black);background-repeat:no-repeat;background-origin:top;height:62px;background-image:url(/assets/img/phone-preview/phone-preview_top.jpg);background-position:center}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]{display:flex}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]   .phone-left[_ngcontent-%COMP%]{background-color:var(--color-black);background-repeat:repeat-y;background-position:top right;background-image:url(/assets/img/phone-preview/phone-preview_left.jpg);flex-grow:1}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]   .phone-screen[_ngcontent-%COMP%]{width:307px;font-family:Roboto,Helvetica Neue,sans-serif;background-color:var(--color-white);-webkit-user-select:none;user-select:none;padding-bottom:.5rem}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]   .phone-right[_ngcontent-%COMP%]{background-color:var(--color-black);background-repeat:repeat-y;background-position:top left;background-image:url(/assets/img/phone-preview/phone-preview_right.jpg);flex-grow:1}.toolbar[_ngcontent-%COMP%]{height:46px;align-items:center;justify-content:space-between;display:flex;margin-top:-.75rem;width:100%}.toolbar-title--text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;font-size:var(--text-medium);white-space:break-spaces;-webkit-line-clamp:2;line-height:1.1rem;display:-webkit-box;-webkit-box-orient:vertical;font-weight:500;align-self:center}.parent-education-tile[_ngcontent-%COMP%]{margin-top:0;margin-bottom:.5rem;padding:0;box-shadow:0 4px 6px -1px #1414141a,0 2px 4px -2px #1414140f;overflow:hidden;border-radius:16px;border:.33px solid #cccccc}.parent-education-tile[_ngcontent-%COMP%]   .media-card--hero[_ngcontent-%COMP%]{position:relative;width:100%;height:auto;background-color:var(--grey-200);background-position:center;background-repeat:no-repeat;background-size:cover;aspect-ratio:16/9}.parent-education-tile[_ngcontent-%COMP%]   .media-card--title--reserved[_ngcontent-%COMP%]{height:3.588rem;overflow:hidden}"]});let r=s;return r})();var Jt=["fileUploadField"],Yt=["swiperEl"],Kt=r=>["/admin/content/page-builder",r,"template"],Xt=r=>["/admin/content/library",r,"edit","new"],Zt=r=>["/admin/content/sponsors",r],en=(r,s)=>["/admin/content/library",r,"edit",s],tn=(r,s)=>["/admin/content/page-builder",r,"content",s];function nn(r,s){if(r&1&&(e(0,`
176                                    `),p(1,"img",45),re(2,"safeUrl"),e(3,`
177                                    `),o(4,"span",46),e(5),a(),e(6,`
178                                    `)),r&2){let n=u();d(),m("src",Ue(2,2,n.clubLogoURL),He),d(4),E(`
179                                        `,n.clubName,`
180                                    `)}}function on(r,s){if(r&1&&(e(0,`
181                                            `),o(1,"div",50),e(2),a(),e(3,`
182                                            `)),r&2){let n=u(2).$implicit;d(2),E(`
183                                                `,n.title)}}function an(r,s){if(r&1&&(e(0,`
184                                            `),o(1,"div",51),e(2),a(),e(3,`
185                                            `)),r&2){let n=u(2).$implicit;d(2),E(`
186                                                `,n.descriptionText)}}function rn(r,s){if(r&1&&(e(0,`
187                                        `),o(1,"div",49),e(2,`
188                                            `),b(3,on,4,1),b(4,an,4,1),a(),e(5,`
189                                        `)),r&2){let n=u().$implicit;d(3),_(n.title?3:-1),d(),_(n.descriptionText?4:-1)}}function ln(r,s){if(r&1&&(e(0,`
190                                `),o(1,"swiper-slide"),e(2,`
191                                    `),o(3,"div",48,2),e(5,`
192                                        `),b(6,rn,6,2),a(),e(7,`
193                                `),a(),e(8,`
194                                `)),r&2){let n=s.$implicit,t=u(3);d(3),oe("needs-contrast",t.needsContrast&&!n.file&&(n.title||n.descriptionText)),m("ngStyle",t.getBgStyles(t.bgColor,n)),d(3),_(n.title||n.descriptionText?6:-1)}}function sn(r,s){if(r&1&&(e(0,`
195                            `),o(1,"swiper-container",47,1),e(3,`
196                                `),K(4,ln,9,4,null,null,ye),a(),e(6,`
197                            `)),r&2){let n=u(2);d(),m("speed",400)("slidesPerView",1.05),d(3),X(n.mobileBannerItems)}}function dn(r,s){if(r&1&&(e(0,`
198                                            `),o(1,"div",50),e(2),a(),e(3,`
199                                            `)),r&2){let n=u(2).$implicit;d(2),E(`
200                                                `,n.title)}}function cn(r,s){if(r&1&&(e(0,`
201                                            `),o(1,"div",51),e(2),a(),e(3,`
202                                            `)),r&2){let n=u(2).$implicit;d(2),E(`
203                                                `,n.descriptionText)}}function mn(r,s){if(r&1&&(e(0,`
204                                        `),o(1,"div",49),e(2,`
205                                            `),b(3,dn,4,1),b(4,cn,4,1),a(),e(5,`
206                                        `)),r&2){let n=u().$implicit;d(3),_(n.title?3:-1),d(),_(n.descriptionText?4:-1)}}function pn(r,s){if(r&1&&(e(0,`
207                                `),o(1,"swiper-slide"),e(2,`
208                                    `),o(3,"div",48,2),e(5,`
209                                        `),b(6,mn,6,2),a(),e(7,`
210                                `),a(),e(8,`
211                                `)),r&2){let n=s.$implicit,t=u(3);d(3),oe("needs-contrast",t.needsContrast&&!n.file&&(n.title||n.descriptionText)),m("ngStyle",t.getBgStyles(t.bgColor,n)),d(3),_(n.title||n.descriptionText?6:-1)}}function un(r,s){if(r&1&&(e(0,`
212                            `),o(1,"swiper-container",52,1),e(3,`
213                                `),K(4,pn,9,4,null,null,ye),a(),e(6,`
214                            `)),r&2){let n=u(2);d(),m("pagination",!0)("speed",400)("slidesPerView",1.05),d(3),X(n.mobileBannerItems)}}function hn(r,s){if(r&1&&(e(0,`
215                            `),b(1,sn,7,2)(2,un,7,3)),r&2){let n=u();d(),_(n.bannerSettings!=null&&n.bannerSettings.isAutoAdvance?2:1)}}function xn(r,s){r&1&&(e(0,`
216                                `),p(1,"app-skeleton-template",53),e(2,`
217                            `)),r&2&&(d(),m("skeletonType","banner"))}function gn(r,s){r&1&&(e(0,`
218                            `),o(1,"tr"),e(2,`
219                                `),o(3,"th"),e(4,`
220                                `),a(),e(5,`
221                                `),o(6,"th"),e(7,"Name"),a(),e(8,`
222                                `),o(9,"th"),e(10,"Link Type"),a(),e(11,`
223                                `),o(12,"th"),e(13,"Scheduled"),a(),e(14,`
224                                `),o(15,"th"),e(16,`Active
225                                    `),o(17,"app-tooltip",54),e(18,`
226                                    `),a(),e(19,`
227                                `),a(),e(20,`
228                            `),a(),e(21,`
229                        `))}function fn(r,s){r&1&&(e(0,`
230                                    `),o(1,"span",59),e(2,`
231                                        `),p(3,"i",60)(4,"i",60),e(5,`
232                                    `),a(),e(6,`
233                                    `))}function bn(r,s){if(r&1){let n=y();e(0,`
234                            `),o(1,"tr",55),C("mouseenter",function(){let i=g(n).rowIndex,l=u();return f(l.hoverRow(i))}),e(2,`
235                                `),o(3,"td"),e(4,`
236                                    `),b(5,fn,7,0),a(),e(6,`
237                                `),o(7,"td"),e(8,`
238                                    `),o(9,"button",56),C("click",function(){let i=g(n).$implicit,l=u();return f(l.itemClick(i))}),e(10),a(),e(11,`
239                                `),a(),e(12,`
240                                `),o(13,"td"),e(14),a(),e(15,`
241                                `),o(16,"td"),e(17,`
242                                    `),p(18,"app-status-indicator",57),e(19,`
243                                `),a(),e(20,`
244                                `),o(21,"td"),e(22,`
245                                    `),p(23,"app-pill",58),e(24,`
246                                `),a(),e(25,`
247                            `),a(),e(26,`
248                        `)}if(r&2){let n=s.$implicit,t=s.rowIndex,i=u();d(),oe("bg-blue-lt",i.activeSlideIndex===t),m("pReorderableRow",t)("cdkDragData",n),d(4),_(n.isOwner!==!1?5:-1),d(5),I(n.title?n.title:n.internalName),d(4),E(`
249                                    `,i.itemType(n.contentLinkOptionID),`
250                                `),d(4),m("status",i.itemStatus(n))("text",i.itemText(n))("dots",!0),d(5),m("status",n.contentLinkOptionID&&n.contentLinkOptionID!==i.ContentLinkOption.INT
250ERNAL_LINK&&(n.title||n.descriptionText||n.file)?"success":"default")("text",n.contentLinkOptionID&&n.contentLinkOptionID!==i.ContentLinkOption.INTERNAL_LINK&&(n.title||n.descriptionText||n.file)?"Active":"Inactive")}}function _n(r,s){r&1&&(e(0,`
251            `),p(1,"app-parent-education-hub"),e(2,`
252            `))}function Cn(r,s){r&1&&(e(0,`
253                            `),o(1,"tr"),e(2,`
254                                `),e(3,`
255                                `),o(4,"th"),e(5,"Sponsor"),a(),e(6,`
256                                `),o(7,"th"),e(8,"Banner Sponsor"),a(),e(9,`
257                                `),o(10,"th"),e(11,"Calendar Sponsor"),a(),e(12,`
258                                `),o(13,"th"),e(14,"Order"),a(),e(15,`
259                            `),a(),e(16,`
260                        `))}function vn(r,s){if(r&1&&(e(0,`
261                            `),o(1,"tr"),e(2,`
262                                `),o(3,"td"),e(4,`
263                                    `),o(5,"button",62),e(6),a(),e(7,`
264                                `),a(),e(8,`
265                                `),o(9,"td"),e(10,`
266                                    `),p(11,"app-pill",63),e(12,`
267                                `),a(),e(13,`
268                                `),o(14,"td"),e(15,`
269                                    `),p(16,"app-pill",63),e(17,`
270                                `),a(),e(18,`
271                                `),o(19,"td"),e(20),a(),e(21,`
272                            `),a(),e(22,`
273                        `)),r&2){let n=s.$implicit;d(5),m("routerLink",ae(7,Zt,n.sponsorID)),d(),I(n.name),d(5),m("text",n.isMobileBannerAd?"Active":"Inactive")("status",n.isMobileBannerAd?"success":"warning"),d(5),m("text",n.isInterstitialAd?"Active":"Inactive")("status",n.isInterstitialAd?"success":"warning"),d(4),E(`
274                                    `,n.sortOrder,`
275                                `)}}function wn(r,s){if(r&1&&(e(0,`
276                    `),o(1,"p-table",61),e(2,`
277                        `),w(3,Cn,17,0,"ng-template",23),e(4,`
278                        `),w(5,vn,23,9,"ng-template",24),e(6,`
279                    `),a(),e(7,`
280                    `)),r&2){let n=u();d(),m("value",n.mobileSponsors)("tableStyleClass","navigation-admin-table table-layout-auto")("loading",n.loading)}}function Sn(r,s){r&1&&(e(0,`
281                            `),o(1,"tr"),e(2,`
282                                `),e(3,`
283                                `),o(4,"th"),e(5,"Title"),a(),e(6,`
284                                `),o(7,"th"),e(8,"Category"),a(),e(9,`
285                            `),a(),e(10,`
286                        `))}function yn(r,s){if(r&1&&(e(0,`
287                            `),o(1,"tr"),e(2,`
288                                `),e(3,`
289                                `),o(4,"td"),e(5,`
290                                    `),o(6,"button",62),e(7),a(),e(8,`
291                                `),a(),e(9,`
292                                `),o(10,"td"),e(11),a(),e(12,`
293                            `),a(),e(13,`
294                        `)),r&2){let n=s.$implicit;d(6),m("routerLink",Ee(3,en,n.libraryItemType,n.id)),d(),I(n.title),d(4),E(`
295                                    `,n.libraryItemCategoryDescription,`
296                                `)}}function En(r,s){if(r&1&&(e(0,`
297                    `),o(1,"p-table",61),e(2,`
298                        `),w(3,Sn,11,0,"ng-template",23),e(4,`
299                        `),w(5,yn,14,6,"ng-template",24),e(6,`
300                    `),a(),e(7,`
301                    `)),r&2){let n=u();d(),m("value",n.featuredContent.libraryItems)("tableStyleClass","navigation-admin-table table-layout-auto")("loading",n.loading)}}function Mn(r,s){r&1&&(e(0,`
302                            `),o(1,"tr"),e(2,`
303                                `),e(3,`
304                                `),o(4,"th"),e(5,"Title"),a(),e(6,`
305                                `),o(7,"th"),e(8,"Category"),a(),e(9,`
306                                `),o(10,"th"),e(11,"Status"),a(),e(12,`
307                            `),a(),e(13,`
308                        `))}function In(r,s){if(r&1&&(e(0,`
309                            `),o(1,"tr"),e(2,`
310                                `),e(3,`
311                                `),o(4,"td"),e(5,`
312                                    `),o(6,"button",62),e(7),a(),e(8,`
313                                `),a(),e(9,`
314                                `),o(10,"td"),e(11),a(),e(12,`
315                                `),o(13,"td"),e(14,`
316                                    `),p(15,"app-status-indicator",64),e(16,`
317                                `),a(),e(17,`
318                            `),a(),e(18,`
319                        `)),r&2){let n=s.$implicit,t=u(2);d(6),m("routerLink",Ee(5,tn,n.blogSettingID?t.pageType.BLOG:t.pageType.STANDARD,n.id)),d(),I(n.title),d(4),E(`
320                                    `,n.pageCategory,`
321                                `),d(4),m("status",n.pageStatusID===1?"active":"default")("dots",!0)}}function Pn(r,s){if(r&1&&(e(0,`
322                    `),o(1,"p-table",61),e(2,`
323                        `),w(3,Mn,14,0,"ng-template",23),e(4,`
324                        `),w(5,In,19,8,"ng-template",24),e(6,`
325                    `),a(),e(7,`
326                    `)),r&2){let n=u();d(),m("value",n.featuredContent.pages)("tableStyleClass","navigation-admin-table table-layout-auto")("loading",n.loading)}}function Dn(r,s){r&1&&(e(0,`
327            `),p(1,"app-site-banner-messaging"),e(2,`
328            `))}function kn(r,s){if(r&1){let n=y();e(0,`
329        `),o(1,"app-dynamic-form",65),C("onCancel",function(){g(n);let i=u();return f(i.showBannerSettings=!1)})("onSubmit",function(i){g(n);let l=u();return f(l.saveBannerSettings(i))}),e(2,`
330            `),p(3,"app-dynamic-form-field",66),e(4,`
331        `),a(),e(5,`
332        `)}if(r&2){let n=u();d(),m("fields",n.bannerSettingsFields)("entity",n.bannerSettings)("horizontalForm",!1)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showDeleteButton",!1)}}function Tn(r,s){r&1&&(e(0,`
333        `),o(1,"app-inline-alert",67),e(2,`This Spotlight Is Owned By A Parent Club
334        `),a(),e(3,`
335        `)),r&2&&(d(),m("isInline",!1))}function On(r,s){if(r&1){let n=y();e(0,`
336        `),o(1,"app-dynamic-form",68),C("onCancel",function(){g(n);let i=u();return f(i.closeModal())})("onDelete",function(){g(n);let i=u();return f(i.deleteMobileBannerItem(i.entity.id))})("onSubmit",function(i){g(n);let l=u();return f(l.saveMobileBannerItem(i))}),e(2,`
337            `),p(3,"app-dynamic-form-field",69),e(4,`
338            `),p(5,"app-dynamic-form-field",70),e(6,`
339            `),p(7,"app-dynamic-form-field",71),e(8,`
340            `),p(9,"app-dynamic-form-field",72),e(10,`
341            `),p(11,"app-dynamic-form-field",73),e(12,`
342            `),o(13,"app-dynamic-form-field",74),C("onChange",function(i){g(n);let l=u();return f(l.contentLinkOptionChange(i))}),e(14,`
343            `),a(),e(15,`
344            `),e(16,`
345            `),o(17,"app-dynamic-form-field",75,3),C("onChange",function(i){g(n);let l=u();return f(l.file=i?i.target?i.target.files[0]:i:void 0)})("extraButtonClick",function(){g(n);let i=u();return f(i.openModal())}),e(19,`
346            `),a(),e(20,`
347            `),p(21,"app-dynamic-form-field",76),e(22,`
348            `),o(23,"app-dynamic-form-field",77),e(24,`
349            `),a(),e(25,`
350            `),o(26,"app-dynamic-form-field",78),e(27,`
351            `),a(),e(28,`
352            `),o(29,"app-dynamic-form-field",79),e(30,`
353            `),a(),e(31,`
354            `),o(32,"app-dynamic-form-field",80),e(33,`
355            `),a(),e(34,`
356            `),o(35,"app-dynamic-form-field",81),e(36,`
357            `),a(),e(37,`
358            `),p(38,"app-dynamic-form-field",82),e(39,`
359            `),p(40,"app-dynamic-form-field",83),e(41,`
360        `),a(),e(42,`
361        `)}if(r&2){let n=u();d(),m("fields",n.activeFields)("entity",n.entity)("horizontalForm",!1)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showDeleteButton",(n.entity==null?null:n.entity.id)&&!n.viewOnlyBannerItem)("viewOnly",n.viewOnlyBannerItem),d(16),m("acceptType",n.fileImageUploadAcceptTypes)("acceptedFileExtensions",n.acceptedFileTypes)("canRemoveFile",!0)("selectedFileName",n.entity.file?n.entity.file:null)("extraButton",!0)("extraButtonLabel","Library")("extraButtonIcon","fa-bookmark")("enableCropper",!0)("cropperRatio",n.cropperRatio)("icMaintainAspectRatio",!0)("icNotes",n.icNotes)("showFileUploadImagePreview",!0)("inlineFileUploadButtons",!0),d(6),m("enableFilter",!0)("hidden",n.contentLinkOptionID===n.ContentLinkOption.EXTERNAL_LINK||n.contentLinkOptionID===n.ContentLinkOption.DOCUMENT||n.contentLinkOptionID===n.ContentLinkOption.CALENDAR_EVENT)("required",n.contentLinkOptionID===n.ContentLinkOption.PAGE_BUILDER_PAGE),d(3),m("enableFilter",!0)("hidden",n.contentLinkOptionID===n.ContentLinkOption.EXTERNAL_LINK||n.contentLinkOptionID===n.ContentLinkOption.PAGE_BUILDER_PAGE||n.contentLinkOptionID===n.ContentLinkOption.CALENDAR_EVENT)("required",n.contentLinkOptionID===n.ContentLinkOption.DOCUMENT),d(3),m("enableFilter",!0)("hidden",n.contentLinkOptionID===n.ContentLinkOption.EXTERNAL_LINK||n.contentLinkOptionID===n.ContentLinkOption.PAGE_BUILDER_PAGE||n.contentLinkOptionID===n.ContentLinkOption.DOCUMENT)("required",n.contentLinkOptionID===n.ContentLinkOption.DOCUMENT),d(3),m("hidden",n.contentLinkOptionID===n.ContentLinkOption.PAGE_BUILDER_PAGE||n.contentLinkOptionID===n.ContentLinkOption.DOCUMENT||n.contentLinkOptionID===n.ContentLinkOption.CALENDAR_EVENT)("required",n.contentLinkOptionID===n.ContentLinkOption.EXTERNAL_LINK),d(3),m("hidden",!n.contentLinkOptionID)}}function An(r,s){if(r&1){let n=y();e(0,`
362        `),o(1,"app-image-cropper",84),C("finalImage",function(i){g(n);let l=u();return f(l.fileChanged(i))}),e(2,`
363        `),a(),e(3,`
364        `)}if(r&2){let n=u();d(),m("fileChangedEvent",n.imageCropperLoadEvent)("loading",!1)("icMaintainAspectRatio",!0)("icAspectRatio",n.cropperRatio)("icNotes",n.icNotes)}}var Ct=(()=>{let s=class s{constructor(t,i,l,h,x,c,R,Y){this.contentService=t,this.contentDashboardService=i,this.pageBuilderService=l,this.router=h,this.siteDataService=x,this.libraryService=c,this.authorize=R,this.cdr=Y,this.unsubscribe$=new V,this.pageType=et,this.loading=!0,this.showMobileBannerItemModal=!1,this.ContentLinkOption=B,this.libraryType=$,this.mobileBannerPaginator=!1,this.loadingBanner=!0,this.needsContrast=!1,this.loadingTheme=!0,this.acceptedFileTypes=se,this.fileImageUploadAcceptTypes=de,this.showMegaModal=!1,this.showBannerSettings=!1,this.showCropperDialog=!1,this.viewOnlyB
364annerItem=!1,this.activeSlideIndex=0,this.showParentEducationHub=!1,this.showSiteBannerMessaging=!1,this.cropperRatio=2.43/1,this.icNotes="<p>Please ensure your photo meets the following requirements:</p><ul><li>File size: Less than 10MB</li><li>Formats accepted: <strong>.jpg</strong>, <strong>.jpeg</strong>, <strong>.png</strong>, <strong>.gif</strong></li><li>Aspect ratio: 2.43:1</li><li>Ideal dimensions: 1080 pixels wide by 444 pixels high</li></ul><p>We recommend using JPG for its smaller file size.</p>",this.swiperUnlisteners=[]}ngAfterViewInit(){this.swiperElements.changes.pipe(P(this.unsubscribe$)).subscribe(()=>{setTimeout(()=>this.bindSwiperEvents())})}ngOnInit(){this.authorize.getUser().pipe(P(this.unsubscribe$)).subscribe(t=>{this.showParentEducationHub=!!t&&this.authorize.isSuperAdmin(t.role)&&+t.clubID==0,this.showSiteBannerMessaging=this.showParentEducationHub,this.cdr.detectChanges()}),this.siteDataService.getClubSettings().pipe(P(this.unsubscribe$)).subscribe(t=>{this.clubName=t.club?.name,this.clubLogoURL=t.theme?.logoURL,this.clubTheme=t.theme,this.clubTheme?.colorPrimary&&(this.setBgColor(this.clubTheme.colorPrimary),this.clubTheme?.colorAccent?this.accentColor=this.clubTheme.colorAccent:this.accentColor=this.clubTheme.colorPrimary),this.loadingTheme=!1}),H({items:this.contentDashboardService.getMobileBannerItems(),itemMetaData:this.contentDashboardService.getMobileBannerItemMetadata(),mobileSponsors:this.contentDashboardService.getMobileSponsors(),featuredContent:this.contentService.getFeaturedContent(!0),bannerSettingsMetaData:this.contentDashboardService.getBannerSettingMetaData()}).subscribe({next:t=>{this.mobileSponsors=t.mobileSponsors,this.fields=t.itemMetaData.fields,this.activeFields=t.itemMetaData.fields,this.featuredContent=t.featuredContent,this.mobileBannerItems=t.items,this.mobileBannerPaginator=t.items.length>1,this.bannerSettingsFields=t.bannerSettingsMetaData.fields,this.loadingBanner=!1},complete:()=>{this.loading=!1,this.siteDataService.hideSiteLoader()}})}itemType(t){return this.fields&&t?this.fields.find(l=>l.controlName==="contentLinkOptionID").options.find(l=>l.value===t).label:"No Selection"}openModal(){this.showMegaModal=!0}closeLibraryModal(t){let i=t.file.split("/"),l=i[i.length-1],x=new URL(t.file).pathname;x.startsWith("/library/")?(x=x.substring(9),this.libraryService.downloadLibraryItem64(l).subscribe(c=>{let R=ke(c),Y=new File([R],l,{type:R.type});this.crop(Y)},c=>{this.siteDataService.showSiteErrorAlert("The requested file could not be found.")})):x.startsWith("/stock-library/")&&(x=x.substring(15),this.libraryService.downloadStockItem64(l).subscribe(c=>{let R=ke(c),Y=new File([R],l,{type:R.type});this.crop(Y)},c=>{this.siteDataService.showSiteErrorAlert("The requested file could not be found.")})),this.showMegaModal=!1}reorderItem(t){if(t.previousIndex!==t.currentIndex){pe(this.mobileBannerItems,t.previousIndex,t.currentIndex);let i=[];this.mobileBannerItems.forEach((l,h)=>{let x={sortOrder:h,Id:this.mobileBannerItems[h].id};l.sortOrder=h,i.push(this.contentDashboardService.saveMobileBannerContentSortOrder(x))}),i&&H(i).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert("Updated")}})}}createNewItem(){this.viewOnlyBannerItem=!1,this.entity=new _e,this.entity.sortOrder=this.mobileBannerItems.length+1,this.contentLinkOptionChange(this.entity.contentLinkOptionID),this.activeFields.forEach(t=>t.value=null),this.collapseClubTree(),this.showMobileBannerItemModal=!0}itemClick(t){this.viewOnlyBannerItem=t.isOwner===!1,this.entity=t,this.contentLinkOptionChange(t.contentLinkOptionID),this.collapseClubTree(),this.showMobileBannerItemModal=!0}collapseClubTree(){let t=i=>{i&&(i.expanded=!1,(i.children??[]).forEach(t))};t(this.activeFields?.find(i=>i.controlName==="mobileBannerItemClubAssignment")?.treeOptions)}closeModal(){this.showMobileBannerItemModal=!1,this.entity=void 0}crop(t){this.imageCropperLoadEvent=t,this.showCropperDialog=!0}deleteMobileBannerItem(t){this.contentDashboardService.deleteMobileBannerItem(t).subscribe({next:()=>{this.mobileBannerItems=this.mobileBannerItems.filter(i=>i.id!==t),this.closeModal()}})}openBannerModal(){this.contentDashboardService.getBannerSettings().subscribe({next:t=>{this.bannerSettings=t,this.showBannerSettings=!0}})}saveBannerSettings(t){this.bannerSettings&&(t.id=this.bannerSettings.id),this.contentDashboardService.saveMobileBannerSettings(t).subscribe({next:i=>{this.siteDataService.showSiteSuccessAlert("Saved"),this.showBannerSettings=!1},error:()=>this.siteDataService.showSiteErrorAlert("Failed To Save")})}saveMobileBannerItem(t){t.sortOrder=this.entity.sortOrder,t.id=this.entity.id,t.file=this.entity.file,this.fileUploadField.hasFileChanged&&this.file?this.contentDashboardService.saveMobileBannerContentImage(this.entity.id,this.file).pipe(Re(i=>(t.file=i.location,this.contentDashboardService.saveMobileBannerContent(t)))).subscribe({next:i=>
364{t.id?this.mobileBannerItems=this.mobileBannerItems.map(l=>l.id!==t.id?l:t):this.mobileBannerItems.push(i),this.siteDataService.showSiteSuccessAlert("Saved"),this.closeModal()},error:()=>this.siteDataService.showSiteErrorAlert("Failed To Save")}):this.contentDashboardService.saveMobileBannerContent(t).subscribe({next:i=>{t.id?this.mobileBannerItems=this.mobileBannerItems.map(l=>l.id!==t.id?l:t):this.mobileBannerItems.push(i),this.siteDataService.showSiteSuccessAlert("Saved"),this.closeModal()},error:()=>this.siteDataService.showSiteErrorAlert("Failed To Save")})}createNewBlog(){this.pageBuilderService.saveNewPage().pipe(Ne(t=>{let i=new Ze(t.id,Xe.BLOG);return this.pageBuilderService.generatePageContentFromTemplate(i)}),P(this.unsubscribe$)).subscribe({next:t=>{t&&this.router.navigate([`/admin/content/page-builder/{${this.pageType.BLOG}/content/${t.id}`])},error:()=>{this.siteDataService.hideSiteLoader()}})}contentLinkOptionChange(t){let i=this.fields.find(c=>c.controlName==="pageBuilderPageID"),l=this.fields.find(c=>c.controlName==="linkURL"),h=this.fields.find(c=>c.controlName==="libraryItemID"),x=this.fields.find(c=>c.controlName==="clubCalendarEventID");t===B.PAGE_BUILDER_PAGE?(i.hidden=!1,i.required=!0,i.validators=[{validatorType:v.REQUIRED},...i.validators],l.required=!1,l.hidden=!0,l.validators=l.validators.filter(c=>c.validatorType!==v.REQUIRED),h.required=!1,h.hidden=!0,h.validators=h.validators.filter(c=>c.validatorType!==v.REQUIRED),x.required=!1,x.hidden=!0,x.validators=h.validators.filter(c=>c.validatorType!==v.REQUIRED)):t===B.EXTERNAL_LINK?(i.hidden=!0,i.required=!1,i.validators=i.validators.filter(c=>c.validatorType!==v.REQUIRED),l.hidden=!1,l.required=!0,l.validators=[{validatorType:v.REQUIRED},...l.validators],h.required=!1,h.hidden=!0,h.validators=h.validators.filter(c=>c.validatorType!==v.REQUIRED),x.required=!1,x.hidden=!0,x.validators=h.validators.filter(c=>c.validatorType!==v.REQUIRED)):t===B.CALENDAR_EVENT?(x.required=!0,x.hidden=!1,x.validators=[{validatorType:v.REQUIRED},...i.validators],i.hidden=!0,i.required=!1,i.validators=i.validators.filter(c=>c.validatorType!==v.REQUIRED),l.required=!1,l.hidden=!0,l.validators=l.validators.filter(c=>c.validatorType!==v.REQUIRED),h.required=!1,h.hidden=!0,h.validators=h.validators.filter(c=>c.validatorType!==v.REQUIRED)):t===B.DOCUMENT||t===B.INTERNAL_LINK?(i.hidden=!0,i.required=!1,i.validators=i.validators.filter(c=>c.validatorType!==v.REQUIRED),l.required=!1,l.hidden=!0,l.validators=l.validators.filter(c=>c.validatorType!==v.REQUIRED),h.required=!0,h.hidden=!1,h.validators=[{validatorType:v.REQUIRED},...i.validators],x.required=!1,x.hidden=!0,x.validators=h.validators.filter(c=>c.validatorType!==v.REQUIRED)):(i.hidden=!0,i.required=!1,i.validators=i.validators.filter(c=>c.validatorType!==v.REQUIRED),i.value=void 0,l.required=!1,l.hidden=!0,l.validators=l.validators.filter(c=>c.validatorType!==v.REQUIRED),l.value=void 0,h.required=!1,h.hidden=!0,h.validators=h.validators.filter(c=>c.validatorType!==v.REQUIRED),h.value=void 0,x.required=!1,x.hidden=!0,x.validators=h.validators.filter(c=>c.validatorType!==v.REQUIRED),x.value=void 0),this.fields.find(c=>c.controlName==="linkText").hidden=!1,this.activeFields=Array.from(this.fields),this.handleViewOnlyChange(),this.contentLinkOptionID=t}handleViewOnlyChange(){this.viewOnlyBannerItem?this.activeFields.forEach(t=>t.viewOnly=!0):this.activeFields.forEach(t=>t.viewOnly=!1)}itemText(t){let i=new Date().setHours(0,0,0,0);return new Date(t.startDate).setHours(0,0,0,0)>i?"Scheduled":!t.endDate||i>=new Date(t.startDate).setHours(0,0,0,0)&&i<=new Date(t.endDate).setHours(23,59,59,999)?"Live":"Expired"}itemStatus(t){let i=new Date().setHours(0,0,0,0);return new Date(t.startDate).setHours(0,0,0,0)>i?"warning":!t.endDate||i>=new Date(t.startDate).setHours(0,0,0,0)&&i<=new Date(t.endDate).setHours(23,59,59,999)?"active":"default"}setBgColor(t){this.bgColor=t,this.needsContrast=!Ie("#ffffff",this.bgColor)}bindSwiperEvents(){this.swiperUnlisteners.forEach(t=>t()),this.swiperUnlisteners=[],this.swiperElements.forEach(t=>{let i=t.nativeElement.swiper;if(!i)return;let l=()=>{this.activeSlideIndex=i.realIndex,this.cdr.detectChanges()};i.on("slideChange",l),this.swiperUnlisteners.push(()=>i.off("slideChange",l))})}
364hoverRow(t){this.activeSlideIndex=t,this.swiperElements.forEach(i=>i.nativeElement.swiper?.slideTo(t))}getBgStyles(t,i){return Ae(t,i)}fileChanged(t){this.fileUploadField.fileUpload.fileChanged(t,!0),this.showCropperDialog=!1}ngOnDestroy(){this.swiperUnlisteners.forEach(t=>t()),this.unsubscribe$.next(),this.unsubscribe$.complete()}};s.\u0275fac=function(i){return new(i||s)(M(ge),M(be),M(fe),M(qe),M(U),M(dt),M(Ye),M(je))},s.\u0275cmp=j({type:s,selectors:[["ng-component"]],viewQuery:function(i,l){if(i&1&&ie(Jt,5)(Yt,5),i&2){let h;Z(h=ee())&&(l.fileUploadField=h.first),Z(h=ee())&&(l.swiperElements=h)}},standalone:!1,decls:205,vars:45,consts:[["bannerSkeleton",""],["swiperEl",""],["bannerItem",""],["fileUploadField",""],["role","main"],["pageTitle","Content Dashboard"],[1,"row","mt-4"],[1,"col-md-8"],[1,"card","settings-card"],[1,"mb-3"],[1,"text-medium","text-grey"],[1,"preview-window"],[1,"phone-top"],[1,"phone-body"],[1,"phone-left"],[1,"phone-screen"],[1,"toolbar"],[1,"spacer","ml-2"],[1,"d-flex","ion-align-items-center","ion-justify-content-center"],[1,""],["src","/assets/img/phone-preview/notification-bell.jpg","width","15",1,"mr-2"],[1,"phone-right"],["dataKey","id","cdkDropList","",3,"cdkDropListDropped","value","tableStyleClass","loading"],["pTemplate","header"],["pTemplate","body"],[1,"card-footer"],[1,"btn","btn-add","btn-naked",3,"click"],[1,"col-md-4"],[1,"card","admin-card","pb-2"],[1,"card-header"],[1,"text-header-3"],[1,"card-body"],[1,"row","no-gutters","full","width"],[1,"full-width",3,"routerLink"],[3,"showIcon","text"],[1,"full-width",3,"click"],[3,"showIcon","borderBottom","text"],[1,"row","no-gutters","full-width"],["routerLink","/admin/content/sponsors",1,"full-width"],["routerLink","/admin/content/testimonials",1,"full-width"],["header","Mobile App Banner","styleClass","standardWidthDialog",3,"visibleChange","modal","closable","visible"],["header","Mobile Spotlight","styleClass","standardWidthDialog",3,"visibleChange","modal","closable","visible"],["header","Select from library","styleClass","standardWidthDialog",3,"visibleChange","visible","modal"],[3,"selectedImage"],["header","Image Preview","styleClass","standardWidthDialog",3,"visibleChange","visible","closable","modal","appendTo","draggable"],["alt","","height","32",1,"club-logo-header",3,"src"],[1,"toolbar-title--text"],["autoplay","true","loop","true",1,"overview-swiper",3,"speed","slidesPerView"],[1,"featured-banner-content",3,"ngStyle"],[1,"featured-banner-text"],[1,"featured-title","text-default","fw-500"],[1,"featured-description","text-small"],[1,"overview-swiper",3,"pagination","speed","slidesPerView"],[3,"skeletonType"],["tooltipText","Slides will only appear if they have a link and are within the start and end dates (if configured)"],["cdkDrag","","cdkDragPreviewContainer","parent",3,"mouseenter","pReorderableRow","cdkDragData"],["label","Edit",1,"btn","btn-naked","btn-icon-cog",3,"click"],[3,"status","text","dots"],[3,"status","text"],["cdkDragHandle","",1,"nowrap"],[1,"fal","fa-ellipsis-v","fa-width-auto","letter-spacing-xl"],[3,"value","tableStyleClass","loading"],["label","Edit",1,"btn","btn-naked","btn-icon-cog","btn-wrap-ok",3,"routerLink"],[3,"text","status"],["text","Published",3,"status","dots"],["buttonsPosition","spread",3,"onCancel","onSubmit","fields","entity","horizontalForm","contentFieldsMode","showSaveAndAddButton","showDeleteButton"],["fieldName","isAutoAdvance"],["alertType","warning",3,"isInline"],["buttonsPosition","spread",3,"onCancel","onDelete","onSubmit","fields","entity","horizontalForm","contentFieldsMode","showSaveAndAddButton","showDeleteButton","viewOnly"],["fieldName","internalName"],["fieldName","title"],["fieldName","descriptionText"],["fieldName","startDate"],["fieldName","endDate"],["fieldName","contentLinkOptionID",3,"onChange"],["fieldName","file",3,"onChange","extraButtonClick","acceptType","acceptedFileExtensions","canRemoveFile","selectedFileName","extraButton","extraButtonLabel","extraButtonIcon","enableCropper","cropperRatio","icMaintainAspectRatio","icNotes","showFileUploadImagePreview","inlineFileUploadButtons"],["fieldName","textBoxBackgroun
364dOpacity"],["fieldName","pageBuilderPageID",3,"enableFilter","hidden","required"],["fieldName","libraryItemID",3,"enableFilter","hidden","required"],["fieldName","clubCalendarEventID",3,"enableFilter","hidden","required"],["fieldName","linkURL",3,"hidden","required"],["fieldName","linkText",3,"hidden"],["fieldName","hideFromClubContent"],["fieldName","mobileBannerItemClubAssignment"],["icFormat","png",3,"finalImage","fileChangedEvent","loading","icMaintainAspectRatio","icAspectRatio","icNotes"]],template:function(i,l){if(i&1){let h=y();o(0,"main",4),e(1,`
365    `),p(2,"app-admin-header",5),e(3,`
366
367    `),o(4,"div",6),e(5,`
368        `),o(6,"div",7),e(7,`
369            `),o(8,"div",8),e(9,`
370                `),o(10,"h2")(11,"strong"),e(12,"Mobile Spotlight"),a()(),e(13,`
371                `),o(14,"div",9),e(15,`
372                    `),o(16,"span",10),e(17,`
373                        The Mobile Spotlight panel is displayed on the mobile Home and Club tabs. The Home tab shows
374                        one slide at a time; slides that are higher on the list have a higher chance of being displayed.
375                        The Club tab lists all spotlighted items.
376                    `),a(),e(18,`
377                `),a(),e(19,`
378                `),o(20,"div",11),e(21,`
379                    `),p(22,"div",12),e(23,`
380                    `),o(24,"div",13),e(25,`
381                        `),p(26,"div",14),e(27,`
382                        `),o(28,"div",15),e(29,`
383                            `),o(30,"div",16),e(31,`
384                                `),o(32,"div",17),e(33,"\xA0\xA0"),a(),e(34,`
385                                `),o(35,"div",18),e(36,`
386                                    `),b(37,nn,7,4),a(),e(38,`
387                                `),o(39,"div",19),e(40,`
388                                    `),p(41,"img",20),e(42,`
389                                `),a(),e(43,`
390                            `),a(),e(44,`
391                            `),e(45,`
392                            `),b(46,hn,3,1),w(47,xn,3,1,"ng-template",null,0,D),e(49,`
393                        `),a(),e(50,`
394                        `),p(51,"div",21),e(52,`
395                    `),a(),e(53,`
396                `),a(),e(54,`
397                `),o(55,"div"),e(56,`
398                    `),o(57,"p-table",22),C("cdkDropListDropped",function(c){return l.reorderItem(c)}),e(58,`
399                        `),w(59,gn,22,0,"ng-template",23),e(60,`
400                        `),w(61,bn,27,12,"ng-template",24),e(62,`
401                    `),a(),e(63,`
402                    `),o(64,"div",25),e(65,`
403                        `),o(66,"a",26),C("click",function(){return l.createNewItem()}),e(67,"Add Spotlighted Item"),a(),e(68,`
404                        `),e(69,`
405                    `),a(),e(70,`
406                `),a(),e(71,`
407            `),a(),e(72,`
408            `),b(73,_n,3,0),o(74,"div",8),e(75,`
409                `),o(76,"div"),e(77,`
410                    `),o(78,"h2")(79,"strong"),e(80,"Mobile Sponsors"),a()(),e(81,`
411                    `),o(82,"div",9),e(83,`
412                        `),o(84,"span",10),e(85,`
413                            The Mobile Sponsors panel displays sponsors that are set to appear in the mobile banner. To
414                            enable or disable this setting, go to the sponsor's detail page, update the "Enable in
415                            mobile banner" flag, and save.
416                        `),a(),e(86,`
417                    `),a(),e(87,`
418                    `),b(88,wn,8,3),a(),e(89,`
419            `),a(),e(90,`
420            `),o(91,"div",8),e(92,`
421                `),o(93,"div"),e(94,`
422                    `),o(95,"h2")(96,"strong"),e(97,"Featured Resources"),a()(),e(98,`
423                    `),o(99,"div",9),e(100,`
424                        `),o(101,"span",10),e(102,`
425                            The Featured Resources widget displays files from the Document Library or links from the
426                            Asset Library that are marked with the Featured flag. To change a resource's status, open
427                            its detail page, update the Featured flag, and save.
428                        `),a(),e(103,`
429                    `),a(),e(104,`
430                    `),b(105,En,8,3),a(),e(106,`
431            `),a(),e(107,`
432            `),o(108,"div",8),e(109,`
433                `),o(110,"div"),e(111,`
434                    `),o(112,"h2")(113,"strong"),e(114,"Featured Pages"),a()(),e(115,`
435                    `),o(116,"div",9),e(117,`
436                        `),o(118,"span",10),e(119,`
437                            The Featured Pages widget displays Articles or Pages that have been marked with the
438                            Featured flag. To change a page's status, open its detail page, update the Featured flag,
439                            and save.
440                        `),a(),e(120,`
441                    `),a(),e(121,`
442                    `),b(122,Pn,8,3),a(),e(123,`
443
444            `),a(),e(124,`
445            `),b(125,Dn,3,0),a(),e(126,`
446        `),o(127,"div",27),e(128,`
447            `),o(129,"div",28),e(130,`
448                `),o(131,"div",29),e(132,`
449                    `),o(133,"h2",30),e(134,"Quick Add"),a(),e(135,`
450                `),a(),e(136,`
451                `),o(137,"div",31),e(138,`
452                    `),o(139,"div",32),e(140,`
453                        `),o(141,"a",33),e(142,`
454                            `),p(143,"app-title-link",34),e(144,`
455                        `),a(),e(145,`
456                        `),o(146,"a",35),C("click",function(){return l.createNewBlog()}),e(147,`
457                            `),p(148,"app-title-link",34),e(149,`
458                        `),a(),e(150,`
459                        `),o(151,"a",33),e(152,`
460                            `),p(153,"app-title-link",36),e(154,`
461                        `),a(),e(155,`
462                    `),a(),e(156,`
463                `),a(),e(157,`
464            `),a(),e(158,`
465            `),o(159,"div",28),e(160,`
466                `),o(161,"div",29),e(162,`
467                    `),o(163,"h2",30),e(164,"Additional Content"),a(),e(165,`
468                `),a(),e(166,`
469                `),o(167,"div",31),e(168,`
470                    `),o(169,"div",37),e(170,`
471                        `),o(171,"a",38),e(172,`
472                            `),p(173,"app-title-link",34),e(174,`
473                        `),a(),e(175,`
474                        `),o(176,"a",39),e(177,`
475                            `),p(178,"app-title-link",36),e(179,`
476                        `),a(),e(180,`
477                    `),a(),e(181,`
478                `),a(),e(182,`
479            `),a(),e(183,`
480            `),e(184,`
481        `),a(),e(185,`
482    `),a(),e(186,`
483
484    `),o(187,"p-dialog",40),A("visibleChange",function(c){return g(h),O(l.showBannerSettings,c)||(l.showBannerSettings=c),f(c)}),e(188,`
485        `),b(189,kn,6,6),a(),e(190,`
486
487
488    `),o(191,"p-dialog",41),A("visibleChange",function(c){return g(h),O(l.showMobileBannerItemModal,c)||(l.showMobileBannerItemModal=c),f(c)}),e(192,`
489        `),b(193,Tn,4,1),b(194,On,43,32),a(),e(195,`
490
491    `),o(196,"p-dialog",42),A("visibleChange",function(c){return g(h),O(l.showMegaModal,c)||(l.showMegaModal=c),f(c)}),e(197,`
492        `),o(198,"app-library-image-select",43),C("selectedImage",function(c){return l.closeLibraryModal(c)}),a(),e(199,`
493    `),a(),e(200,`
494
495    `),o(201,"p-dialog",44),A("visibleChange",function(c){return g(h),O(l.showCropperDialog,c)||(l.showCropperDialog=c),f(c)}),e(202,`
496        `),b(203,An,4,5),a(),e(204,`
497`),a()}i&2&&(d(37),_(l.clubName&&l.clubLogoURL?37:-1),d(9),_(l.mobileBannerItems&&(l.mobileBannerItems!=null&&l.mobileBannerItems.length)?46:-1),d(11),m("value",l.mobileBannerItems)("tableStyleClass","navigation-admin-table table-layout-auto")("loading",l.loading),d(16),_(l.showParentEducationHub?73:-1),d(15),_(l.mobileSponsors?88:-1),d(17),_(l.featuredContent?105:-1),d(17),_(l.featuredContent?122:-1),d(3),_(l.showSiteBannerMessaging?125:-1),d(16),m("routerLink",ae(41,Kt,l.pageType.STANDARD)),d(2),m("showIcon",!1)("text","New Page"),d(5),m("showIcon",!1)("text","New Article"),d(3),m("routerLink",ae(43,Xt,l.libraryType.DOCUMENT)),d(2),m("showIcon",!1)("borderBottom",!1)("text","New Resource"),d(20),m("showIcon",!1)("text","Sponsors"),d(5),m("showIcon",!1)("borderBottom",!1)("text","Testimonials"),d(9),m("modal",!0)("closable",!1),T("visible",l.showBannerSettings),d(2),_(l.showBannerSettings?189:-1),d(2),m("modal",!0)("closable",!1),T("visible",l.showMobileBannerItemModal),d(2),_(l.viewOnlyBannerItem?193:-1),d(),_(l.showMobileBannerItemModal?194:-1),d(2),T("visible",l.showMegaModal),m("modal",!0),d(5),T("visible",l.showCropperDialog),m("closable",!0)("modal",!0)("appendTo","body")("draggable",!1),d(2),_(l.showCropperDialog?203:-1))},dependencies:[le,Ge,J,Q,G,q,Qe,tt,it,ce,De,at,rt,W,ot,z,xe,he,ue,ct,bt,_t,Pe],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{width:100%;display:table;table-layout:auto}  swiper-container{padding-bottom:30px;margin-bottom:-24px}  .swiper-pagination-fraction,   .swiper-pagination-custom,   .swiper-container-horizontal>.swiper-pagination-bullets{bottom:0}.featured-banner-content[_ngcontent-%COMP%]{color:var(--color-white);padding:1rem;background-size:cover;background-position:center;margin:1rem .5rem 0rem;border-radius:8px;aspect-ratio:2.43/1;position:relative;overflow:hidden;box-sizing:border-box}.featured-banner-content.needs-contrast[_ngcontent-%COMP%]{color:var(--color-black-lt)}.featured-banner-content[_ngcontent-%COMP%]   .featured-banner-text[_ngcontent-%COMP%]{max-width:75%;max-height:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:5;line-clamp:5;-webkit-box-orient:vertical}.featured-banner-content[_ngcontent-%COMP%]   .featured-title[_ngcontent-%COMP%]{margin-bottom:.75rem;font-size:.77rem;line-height:1.2}.featured-banner-content[_ngcontent-%COMP%]   .featured-description[_ngcontent-%COMP%]{font-size:.65rem;line-height:1.2}.featured-banner-image[_ngcontent-%COMP%]{width:100%}.featured-banner-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:100%;margin:0 auto;display:block}.featured-banner-image[_ngcontent-%COMP%]   .sponsor-tag-label[_ngcontent-%COMP%]{margin-top:-.75rem;display:block;margin-bottom:.25rem;height:22px}.featured-banner-image[_ngcontent-%COMP%]   .featured-banner-image-inner[_ngcontent-%COMP%]{height:calc(100% - 11px)}.preview-window[_ngcontent-%COMP%]{background-color:var(--color-black);padding-top:1rem}.preview-window[_ngcontent-%COMP%]   .phone-top[_ngcontent-%COMP%]{background-color:var(--color-black);background-repeat:no-repeat;background-origin:top;height:62px;background-image:url(/assets/img/phone-preview/phone-preview_top.jpg);background-position:center}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]{display:flex}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]   .phone-left[_ngcontent-%COMP%]{background-color:var(--color-black);background-repeat:repeat-y;background-position:top right;background-image:url(/assets/img/phone-preview/phone-preview_left.jpg);flex-grow:1}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]   .phone-screen[_ngcontent-%COMP%]{width:307px;font-family:Roboto,Helvetica Neue,sans-serif;background-color:var(--color-white);-webkit-user-select:none;user-select:none;padding-bottom:.5rem}.preview-window[_ngcontent-%COMP%]   .phone-body[_ngcontent-%COMP%]   .phone-right[_ngcontent-%COMP%]{background-color:var(--color-black);background-repeat:repeat-y;background-position:top left;background-image:url(/assets/img/phone-preview/phone-preview_right.jpg);flex-grow:1}.toolbar[_ngcontent-%COMP%]{height:46px;align-items:center;justify-content:space-between;display:flex;margin-top:-.75rem;width:100%}.toolbar-title--text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;font-size:var(--text-medium);white-space:break-spaces;-webkit-line-clamp:2;line-height:1.1rem;display:-webkit-box;-webkit-box-orient:vertical;font-weight:500;align-self:center}.parent-education-tile[_ngcontent-%COMP%]{margin-top:0;margin-bottom:.5rem;padding:0;box-shadow:0 4px 6px -1px #1414141a,0 2px 4px -2px #1414140f;overflow:hidden;border-radius:16px;border:.33px solid #cccccc}.parent-education-tile[_ngcontent-%COMP%]   .media-card--hero[_ngcontent-%COMP%]{position:relative;width:100%;height:auto;background-color:var(--grey-200);background-position:center;background-repeat:no-repeat;background-size:cover;aspect-ratio:16/9}.parent-education-tile[_ngcontent-%COMP%]   .media-card--title--reserved[_ngcontent-%COMP%]{height:3.588rem;overflow:hidden}"]});let r=s;return r})();var vt=(()=>{let s=class s{};s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=ne({type:s}),s.\u0275inj=te({imports:[Me.forChild([{path:"",component:Ct,canActivate:[nt]}]),Me]});let r=s;return r})();var Fe=(()=>{let s=class s{constructor(t){this.webAPI=t}getSpotlightItems(){return this.webAPI.getData("private/mobile-home-page/banner-items")}getFeaturedSponsors(){return this.webAPI.getData("private/mobile-home-page/featured-sponsors")}getParentEducationItems(){return this.webAPI.getData("private/mobile-home-page/parent-education-items")}
497getGallerySponsors(){return this.webAPI.getData(`public/sponsors/mobile-type/${st.GALLERY}`)}};s.\u0275fac=function(i){return new(i||s)(k(L))},s.\u0275prov=F({token:s,factory:s.\u0275fac});let r=s;return r})();var co={[S.GENERAL]:"fa-solid fa-file-lines",[S.COACH_RESOURCES]:"fa-solid fa-whistle",[S.PARENT_RESOURCES]:"fa-solid fa-lightbulb",[S.POLICIES]:"fa-solid fa-gavel",[S.SAFETY]:"fa-solid fa-shield-plus",[S.DEVELOPMENT_ZONE]:"fa-solid fa-arrow-progress",[S.NEWS]:"fa-solid fa-newspaper",[S.TEAM_DETAILS]:"fa-solid fa-people-group",[S.CHANGING_THE_GAME_SERIES]:"fa-solid fa-lightbulb",[S.COLLEGES_RESOURCES]:"fa-solid fa-building-columns",[S.SPROCKET_RESOURCES]:"fa-solid fa-circle-s",[S.TEAM_MANAGER_RESOURCES]:"fa-solid fa-whistle",[S.TECHNICAL_RESOURCES]:"fa-solid fa-gear",[S.FIELD_MANAGEMENT]:"fa-solid fa-court-sport",[S.TOURNAMENT_RESOURCES]:"fa-solid fa-trophy",[S.SPROCKET_CONTENT]:"fa-solid fa-circle-s",[S.MOBILE_OPTIMIZED_ASSET]:"fa-solid fa-mobile-screen"},mo={[$.DOCUMENT]:"fa-solid fa-file-lines",[$.LINK]:"fa-solid fa-link",[$.VIDEO]:"fa-solid fa-video"};var To=(()=>{let s=class s{};s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=ne({type:s}),s.\u0275inj=te({providers:[fe,be,ge,Ce,we,Fe],imports:[ze,vt,lt,mt]});let r=s;return r})();export{To as ContentDashboardModule};

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.