PageSourceSearch

https://midlandsoccerclub.com/chunk-UUYW24WN.js

js midlandsoccerclub.com collected 2026-10-09 22:39:39 UTC 58,119 bytes, 382 lines download raw bytes

1import{ja as Se}from"./chunk-IWH6QETE.js";import"./chunk-WR7JO7XW.js";import"./chunk-HEXCNDVV.js";import"./chunk-MB6YAV2B.js";import"./chunk-4NM77DS2.js";import"./chunk-ADMKBOBN.js";import"./chunk-LCPPMNQ3.js";import"./chunk-BT6MT7GL.js";import"./chunk-5D7LV4AS.js";import"./chunk-XPLYBCSC.js";import"./chunk-UD33NWAA.js";import"./chunk-7TB77G3Z.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{a as P}from"./chunk-SVABVB5X.js";import"./chunk-CMY6WAF3.js";import"./chunk-FUY7HSJY.js";import"./chunk-JTYXZXFU.js";import"./chunk-7MK6I7GJ.js";import"./chunk-3HFTO6XY.js";import"./chunk-XNSH6ILV.js";import"./chunk-IZKA562T.js";import"./chunk-BROSYERN.js";import"./chunk-Y2KCFOCP.js";import"./chunk-Z52L74DH.js";import"./chunk-QH3IRCHN.js";import"./chunk-PLEH3NAH.js";import"./chunk-GXCJ5QS4.js";import{b as ue}from"./chunk-4D5SN44G.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{$b as he,Hd as Ce,Mb as ge,Qc as fe,Wc as ve,jb as pe,kd as ye,kh as be,ve as xe}from"./chunk-X5J6QTCG.js";import{$ as E,$a as b,Ac as Z,Ad as M,Bf as ie,E as w,Fa as s,Fb as C,Ib as e,Jf as ne,Ka as _,Kb as R,Ma as H,Na as N,U as f,Vi as me,W as z,Xa as U,bb as S,cc as Y,d as L,db as W,eb as Q,fa as v,fb as q,ga as y,gb as c,hb as i,ib as n,jb as l,ji as V,k as D,kg as A,lg as ae,li as de,mg as oe,nb as J,ng as re,ob as K,og as le,pg as se,pj as ce,qb as k,sb as h,ta as G,tb as g,u as F,vd as ee,xb as X,xd as te,yb as B,za as j,zb as I}from"./chunk-SMW7PHYX.js";import{a as u,b as O}from"./chunk-BMIYOSOG.js";var Ne=["logoFileUploadField"],Ue=["bannerFileUploadField"],Pe=["banner2FileUploadField"],Re=["bodyBackgroundImageFileUploadField"],Me=["faviconUploadField"],Ae=["themeForm"],Ve=["buttonBgColorField"],$e=["colorForm"],Le=["settingsForm"],ze=()=>["png"];function Ge(m,p){m&1&&(e(0,`
2    `),l(1,"app-admin-header",16),e(2,`
3    `))}function je(m,p){m&1&&(e(0,`
4    `),l(1,"app-admin-header",17),e(2,`
5    `))}function He(m,p){m&1&&(e(0,`
6                        `),i(1,"div",21),e(2,`
7                            `),i(3,"div",87),e(4,`
8                                `),l(5,"label",88),e(6,`
9                                `),i(7,"div",89),e(8,`
10                                    `),i(9,"app-inline-alert",90),e(10,`
11                                        The selected button background color does not meet accessibility contrast
12                                        requirements, please choose a darker color.
13                                    `),n(),e(11,`
14                                `),n(),e(12,`
15                            `),n(),e(13,`
16                        `),n(),e(14,`
17                        `)),m&2&&(s(9),c("isInline",!0)("alertType","error"))}function We(m,p){if(m&1){let o=k();e(0,`
18            `),i(1,"app-dynamic-form",18,1),h("onSubmit",function(a){v(o);let r=g();return y(r.saveThemeSettings(a))}),e(3,`
19                `),i(4,"div",19),e(5,`
20                    `),i(6,"div",20),e(7,`
21                        `),i(8,"h4"),e(9,"Fonts"),n(),e(10,`
22                        `),i(11,"div",21),e(12,`
23                            `),l(13,"app-dynamic-form-field",22),e(14,`
24                        `),n(),e(15,`
25                        `),i(16,"div",21),e(17,`
26                            `),l(18,"app-dynamic-form-field",23),e(19,`
27                        `),n(),e(20,`
28                    `),n(),e(21,`
29                    `),i(22,"div",24),e(23,`
30                        `),l(24,"img",25),e(25,`
31                    `),n(),e(26,`
32                `),n(),e(27,`
33                `),l(28,"hr"),e(29,`
34                `),i(30,"div",19),e(31,`
35                    `),i(32,"div",20),e(33,`
36                        `),i(34,"h4"),e(35,"Top Navigation"),n(),e(36,`
37                        `),i(37,"div",21),e(38,`
38                            `),l(39,"app-dynamic-form-field",26),e(40,`
39                        `),n(),e(41,`
40                        `),i(42,"div",21),e(43,`
41                            `),l(44,"app-dynamic-form-field",27),e(45,`
42                        `),n(),e(46,`
43                        `),i(47,"div",21),e(48,`
44                            `),l(49,"app-dynamic-form-field",28),e(50,`
45                        `),n(),e(51,`
46                        `),i(52,"div",21),e(53,`
47                            `),l(54,"app-dynamic-form-field",29),e(55,`
48                            `),e(56,`
49                        `),n(),e(57,`
50                        `),i(58,"div",21),e(59,`
51                            `),l(60,"app-dynamic-form-field",30),e(61,`
52                            `),e(62,`
53                        `),n(),e(63,`
54                    `),n(),e(64,`
55                    `),i(65,"div",24),e(66,`
56                        `),l(67,"img",31),e(68,`
57                    `),n(),e(69,`
58                `),n(),e(70,`
59                `),l(71,"hr"),e(72,`
60                `),i(73,"div",19),e(74,`
61                    `),i(75,"div",20),e(76,`
62                        `),i(77,"h4"),e(78,"Footer Navigation"),n(),e(79,`
63                        `),i(80,"div",21),e(81,`
64                            `),l(82,"app-dynamic-form-field",32),e(83,`
65                        `),n(),e(84,`
66                        `),i(85,"div",21),e(86,`
67                            `),l(87,"app-dynamic-form-field",33),e(88,`
68                            `),e(89,`
69                        `),n(),e(90,`
70                        `),i(91,"div",21),e(92,`
71                            `),l(93,"app-dynamic-form-field",34),e(94,`
72                            `),e(95,`
73                        `),n(),e(96,`
74                        `),i(97,"div",21),e(98,`
75                            `),l(99,"app-dynamic-form-field",35),e(100,`
76                            `),e(101,`
77                        `),n(),e(102,`
78                    `),n(),e(103,`
79                    `),i(104,"div",24),e(105,`
80                        `),l(106,"img",36),e(107,`
81                    `),n(),e(108,`
82                `),n(),e(109,`
83                `),l(110,"hr"),e(111,`
84                `),i(112,"div",19),e(113,`
85                    `),i(114,"div",20),e(115,`
86                        `),i(116,"h4"),e(117,"Page Titles (Banners)"),n(),e(118,`
87                        `),i(119,"p"),e(120,`These options will be the default settings added to page header banners. They can be changed
88                            on a per page basis by editing the page`),n(),e(121,`
89                        `),i(122,"div",37),e(123,`
90                            `),i(124,"div",38),e(125,`
91                                `),i(126,"label"),e(127,`
92                                    `),i(128,"span"),e(129,"Type Styles"),n(),e(130,`
93                                `),n(),e(131,`
94                                `),i(132,"div"),e(133,`
95                                    `),i(134,"div",39),e(135,`
96                                        `),i(136,"div",40),e(137,`
97                                            `),l(138,"app-dynamic-form-field",41),e(139,`
98                                        `),n(),e(140,`
99                                        `),i(141,"div",40),e(142,`
100                                            `),l(143,"app-dynamic-form-field",42),e(144,`
101                                        `),n(),e(145,`
102                                        `),i(146,"div",40),e(147,`
103                                            `),l(148,"app-dynamic-form-field",43),e(149,`
104                                        `),n(),e(150,`
105                                    `),n(),e(151,`
106                                    `),i(152,"div",39),e(153,`
107                                        `),i(154,"div",40),e(155,`
108                                            `),l(156,"app-dynamic-form-field",44),e(157,`
109                                        `),n(),e(158,`
110                                        `),i(159,"div",40),e(160,`
111                                            `),l(161,"app-dynamic-form-field",45),e(162,`
112                                        `),n(),e(163,`
113                                    `),n(),e(164,`
114                                `),n(),e(165,`
115                            `),n(),e(166,`
116                        `),n(),e(167,`
117                        `),i(168,"div",21),e(169,`
118                            `),l(170,"app-dynamic-form-field",46),e(171,`
119                            `),e(172,`
120                        `),n(),e(173,`
121                        `),i(174,"div",21),e(175,`
122                            `),l(176,"app-dynamic-form-field",47),e(177,`
123                            `),e(178,`
124                        `),n(),e(179,`
125                        `),i(180,"button",48),h("click",function(){v(o);let a=g();return y(a.showAdvancedBannerOptions=!a.showAdvancedBannerOptions)}),e(181,`
126                            `),l(182,"i",49),e(183),n(),e(184,`
127                        `),i(185,"div",50),e(186,`
128                            `),i(187,"div",21),e(188,`
129                                `),e(189,`
130                                `),i(190,"app-dynamic-form-field",51,2),h("onChange",function(a){v(o);let r=g();return y(r.bannerFile=a?a.target?a.target.files[0]:a:void 0)}),n(),e(192,`
131                            `),n(),e(193,`
132                            `),i(194,"div",21),e(195,`
133                                `),l(196,"app-dynamic-form-field",52),e(197,`
134                            `),n(),e(198,`
135                            `),i(199,"div",21),e(200,`
136                                `),l(201,"app-dynamic-form-field",53),e(202,`
137                            `),n(),e(203,`
138                            `),i(204,"div",21),e(205,`
139                                `),e(206,`
140                                `),i(207,"app-dynamic-form-field",54,3),h("onChange",function(a){v(o);let r=g();return y(r.banner2File=a?a.target?a.target.files[0]:a:void 0)}),n(),e(209,`
141                            `),n(),e(210,`
142                            `),i(211,"div",21),e(212,`
143                                `),l(213,"app-dynamic-form-field",55),e(214,`
144                            `),n(),e(215,`
145                            `),i(216,"div",21),e(217,`
146                                `),l(218,"app-dynamic-form-field",56),e(219,`
147                            `),n(),e(220,`
148                        `),n(),e(221,`
149                    `),n(),e(222,`
150                    `),i(223,"div",24),e(224,`
151                        `),l(225,"img",57),e(226,`
152                    `),n(),e(227,`
153                `),n(),e(228,`
154                `),l(229,"hr"),e(230,`
155                `),i(231,"div",19),e(232,`
156                    `),i(233,"div",20),e(234,`
157                        `),i(235,"h4"),e(236,"Column Titles"),n(),e(237,`
158                        `),i(238,"div",37),e(239,`
159                            `),i(240,"div",38),e(241,`
160                                `),i(242,"label"),e(243,`
161                                    `),i(244,"span"),e(245,"Type Styles"),n(),e(246,`
162                                `),n(),e(247,`
163                                `),i(248,"div",39),e(249,`
164                                    `),i(250,"div",40),e(251,`
165                                        `),l(252,"app-dynamic-form-field",58),e(253,`
166                                    `),n(),e(254,`
167                                    `),i(255,"div",40),e(256,`
168                                        `),l(257,"app-dynamic-form-field",59),e(258,`
169                                    `),n(),e(259,`
170                                    `),i(260,"div",40),e(261,`
171                                        `),l(262,"app-dynamic-form-field",60),e(263,`
172                                    `),n(),e(264,`
173                                `),n(),e(265,`
174                            `),n(),e(266,`
175                        `),n(),e(267,`
176                        `),i(268,"div",21),e(269,`
177                            `),l(270,"app-dynamic-form-field",61),e(271,`
178                            `),e(272,`
179                        `),n(),e(273,`
180                    `),n(),e(274,`
181                    `),i(275,"div",24),e(276,`
182                        `),l(277,"img",62),e(278,`
183                    `),n(),e(279,`
184                `),n(),e(280,`
185                `),l(281,"hr"),e(282,`
186                `),i(283,"div",19),e(284,`
187                    `),i(285,"div",20),e(286,`
188                        `),i(287,"h4"),e(288,"Buttons"),n(),e(289,`
189                        `),i(290,"div",21),e(291,`
190                            `),i(292,"app-dynamic-form-field",63,4),h("onChange",function(a){v(o);let r=g();return y(r.checkButtonContrast(a))}),n(),e(294,`
191                            `),e(295,`
192                        `),n(),e(296,`
193                        `),b(297,He,15,2),i(298,"div",21),e(299,`
194                            `),l(300,"app-dynamic-form-field",64),e(301,`
195                        `),n(),e(302,`
196                    `),n(),e(303,`
197                    `),i(304,"div",24),e(305,`
198                        `),l(306,"img",65),e(307,`
199                    `),n(),e(308,`
200                `),n(),e(309,`
201                `),l(310,"hr"),e(311,`
202                `),i(312,"div",19),e(313,`
203                    `),i(314,"div",20),e(315,`
204                        `),i(316,"h4"),e(317,"Card Corners + Shadows"),n(),e(318,`
205                        `),i(319,"div",21),e(320,`
206                            `),l(321,"app-dynamic-form-field",66),e(322,`
207                        `),n(),e(323,`
208                        `),i(324,"div",21),e(325,`
209                            `),l(326,"app-dynamic-form-field",67),e(327,`
210                        `),n(),e(328,`
211                    `),n(),e(329,`
212                    `),i(330,"div",24),e(331,`
213                        `),l(332,"img",68),e(333,`
214                    `),n(),e(334,`
215                `),n(),e(335,`
216                `),l(336,"hr"),e(337,`
217                `),i(338,"div",19),e(339,`
218                    `),i(340,"div",20),e(341,`
219                        `),i(342,"h4"),e(343,"Page Background"),n(),e(344,`
220                        `),i(345,"div",21),e(346,`
221                            `),l(347,"app-dynamic-form-field",69),e(348,`
222                        `),n(),e(349,`
223                        `),i(350,"div",21),e(351,`
224                            `),i(352,"app-dynamic-form-field",70,5),h("onChange",function(a){v(o);let r=g();return y(r.onBodyBackgroundImageChange(a))}),n(),e(354,`
225                        `),n(),e(355,`
226                        `),l(356,"hr"),e(357,`
227                        `),i(358,"div",71),e(359,`
228                            `),i(360,"button",48),h("click",function(){v(o);let a=g();
228return y(a.showAdvancedBackgroundOptions=!a.showAdvancedBackgroundOptions)}),e(361,`
229                                `),l(362,"i",49),e(363),n(),e(364,`
230                            `),i(365,"div"),e(366,`
231                                `),i(367,"div",21),e(368,`
232                                    `),l(369,"app-dynamic-form-field",72),e(370,`
233                                `),n(),e(371,`
234                                `),i(372,"div",21),e(373,`
235                                    `),l(374,"app-dynamic-form-field",73),e(375,`
236                                `),n(),e(376,`
237                                `),i(377,"div",21),e(378,`
238                                    `),l(379,"app-dynamic-form-field",74),e(380,`
239                                `),n(),e(381,`
240                                `),i(382,"div",21),e(383,`
241                                    `),l(384,"app-dynamic-form-field",75),e(385,`
242                                `),n(),e(386,`
243                                `),i(387,"div",71),e(388,`
244                                    `),i(389,"div",21),e(390,`
245                                        `),l(391,"app-dynamic-form-field",76),e(392,`
246                                    `),n(),e(393,`
247                                `),n(),e(394,`
248                                `),i(395,"div",71),e(396,`
249                                    `),l(397,"hr"),e(398,`
250                                    `),i(399,"div",21),e(400,`
251                                        `),l(401,"app-dynamic-form-field",77),e(402,`
252                                    `),n(),e(403,`
253                                    `),i(404,"div",78),e(405,`
254                                        `),l(406,"app-dynamic-form-field",79),e(407,`
255                                    `),n(),e(408,`
256                                    `),i(409,"div",21),e(410,`
257                                        `),l(411,"app-dynamic-form-field",80),e(412,`
258                                    `),n(),e(413,`
259                                    `),i(414,"div",21),e(415,`
260                                        `),l(416,"app-dynamic-form-field",81),e(417,`
261                                    `),n(),e(418,`
262                                    `),i(419,"div",78),e(420,`
263                                        `),l(421,"app-dynamic-form-field",82),e(422,`
264                                    `),n(),e(423,`
265                                    `),i(424,"div",78),e(425,`
266                                        `),l(426,"app-dynamic-form-field",83),e(427,`
267                                    `),n(),e(428,`
268                                    `),i(429,"div",21),e(430,`
269                                        `),i(431,"div",84),e(432,`
270                                            `),l(433,"div",85),e(434,`
271                                        `),n(),e(435,`
272                                    `),n(),e(436,`
273                                `),n(),e(437,`
274                            `),n(),e(438,`
275                        `),n(),e(439,`
276                    `),n(),e(440,`
277                    `),i(441,"div",24),e(442,`
278                        `),l(443,"img",86),e(444,`
279                    `),n(),e(445,`
280                `),n(),e(446,`
281            `),n(),e(447,`
282            `)}if(m&2){let o=g();s(),c("fields",o.themeFields)("entity",o.theme)("horizontalForm",!0)("contentFieldsMode",!0)("showCancelButton",!1)("buttonsSticky",!0),s(48),c("overrideColors",!0)("clubTheme",o.settings),s(5),c("overrideColors",!0)("clubTheme",o.settings)("defaultImageColor","#ffffff"),s(6),c("overrideColors",!0)("clubTheme",o.settings)("defaultImageColor","#2e3032"),s(22),c("overrideColors",!0)("clubTheme",o.settings),s(3),C("d-none",o.isFooterNavigationTransparent),s(2),c("overrideColors",!0)("clubTheme",o.settings)("defaultImageColor","#ffffff"),s(6),c("overrideColors",!0)("clubTheme",o.settings)("defaultImageColor","#2e3032"),s(6),c("overrideColors",!0)("clubTheme",o.settings)("defaultImageColor","#2e3032"),s(71),c("overrideColors",!0)("clubTheme",o.settings)("defaultImageColor","#2e3032"),s(6),c("overrideColors",!0)("clubTheme",o.settings)("defaultImageColor","#00040f"),s(6),C("fa-rotate-180",o.showAdvancedBannerOptions),s(),R(`
283                            `,o.showAdvancedBannerOptions?"Hide":"Show",` Advanced Options
284                        `),s(2),C("options-hide",!o.showAdvancedBannerOptions)("options-show",o.showAdvancedBannerOptions),s(5),c("acceptType",o.acceptedTypes)("acceptedFileExtensions",o.acceptedFileExtensions)("canRemoveFile",!0)("selectedFileName",o.theme.primaryBannerImage?o.theme.primaryBannerImage:null)("enableCropper",!0)("cropperRatio",o.cropperRatioPrimary)("icMaintainAspectRatio",!0)("icNotes",o.icNotes)("icAllowSkip",!0)("showFileUploadImagePreview",!0),s(6),c("overrideColors",!0)("clubTheme",o.settings),s(5),c("overrideColors",!0)("clubTheme",o.settings),s(6),c("acceptType",o.acceptedTypes)("acceptedFileExtensions",o.acceptedFileExtensions)("canDownload",!1)("canRemoveFile",!0)("selectedFileName",o.theme&&o.theme.secondaryBannerImage?o.theme.secondaryBannerImage:null)("enableCropper",!0)("cropperRatio",o.cropperRatioSecondary)("icMaintainAspectRatio",!0)("icNotes",o.icNotes)("icAllowSkip",!0)("showFileUploadImagePreview",!0),s(6),c("overrideColors",!0)("clubTheme",o.settings),s(5),c("overrideColors",!0)("clubTheme",o.settings),s(52),c("overrideColors",!0)("clubTheme",o.settings)("defaultImageColor","#2e3032"),s(22),c("overrideColors",!0)("clubTheme",o.settings)("defaultImageColor","#1d6ae5"),s(5),S(o.showButtonContrastWarning?297:-1),s(3),c("overrideColors",!0)("clubTheme",o.settings),s(47),c("overrideColors",!0)("clubTheme",o.settings),s(5),c("acceptType",o.acceptedTypes)("acceptedFileExtensions",o.acceptedFileExtensions)("canRemoveFile",!0)("selectedFileName",o.theme.pageBackgroun
284dImageUrl?o.theme.pageBackgroundImageUrl:null)("icNotes",o.icNotes)("showFileUploadImagePreview",!0),s(6),c("hidden",!o.hasPageBackgroundImage),s(4),C("fa-rotate-180",o.showAdvancedBackgroundOptions),s(),R(`
285                                `,o.showAdvancedBackgroundOptions?"Hide":"Show",` Advanced Options
286                            `),s(2),C("options-hide",!o.showAdvancedBackgroundOptions)("options-show",o.showAdvancedBackgroundOptions),s(22),C("options-hide",!o.hasPageBackgroundImage)("options-show",o.showAdvancedBackgroundOptions),c("hidden",!o.hasPageBackgroundImage),s(8),c("hidden",!o.hasPageBackgroundImage||o.pageBackgroundOverlayType==1),s(9),c("hidden",!o.hasPageBackgroundImage||o.pageBackgroundOverlayType!==3),s(7),c("overrideColors",!0)("clubTheme",o.settings),s(8),c("hidden",o.pageBackgroundOverlayType!==3),s(2),c("overrideColors",!0)("clubTheme",o.settings),s(3),c("hidden",o.pageBackgroundOverlayType!==3),s(9),U("style",o.overlayStyle,j)}}function Qe(m,p){m&1&&(e(0,`
287            `),l(1,"app-skeleton-template",91),e(2,`
288            `))}function qe(m,p){if(m&1){let o=k();e(0,`
289            `),i(1,"app-dynamic-form",92,6),e(3,`
290                `),i(4,"h4"),e(5,"Club Logo"),n(),e(6,`
291                `),i(7,"div",21),e(8,`
292                    `),i(9,"app-dynamic-form-field",93,7),h("onChange",function(a){v(o);let r=g();return y(r.logoFile=a.target.files[0])}),n(),e(11,`
293                `),n(),e(12,`
294                `),i(13,"div",21),e(14,`
295                    `),i(15,"app-dynamic-form-field",94,8),h("onChange",function(a){v(o);let r=g();return y(r.favicon=a?a.target.files[0]:void 0)}),n(),e(17,`
296                `),n(),e(18,`
297                `),l(19,"hr"),e(20,`
298                `),i(21,"h4"),e(22,"Color Settings"),n(),e(23,`
299                `),i(24,"div",21),e(25,`
300                    `),l(26,"app-dynamic-form-field",95),e(27,`
301                `),n(),e(28,`
302                `),i(29,"div",21),e(30,`
303                    `),l(31,"app-dynamic-form-field",96),e(32,`
304                `),n(),e(33,`
305                `),i(34,"div",21),e(35,`
306                    `),l(36,"app-dynamic-form-field",97),e(37,`
307                `),n(),e(38,`
308            `),n(),e(39,`
309            `)}if(m&2){let o=g();s(),c("fields",o.settingFields)("entity",o.settings)("horizontalForm",!0)("showSubmitButton",!1)("contentFieldsMode",!0)("showCancelButton",!1),s(8),c("canDownload",!1)("selectedFileName",o.settings&&o.settings.logoURL?o.settings.logoURL:null)("showFileUploadImagePreview",!0),s(6),c("canDownload",!1)("canRemoveFile",!0)("acceptedFileExtensions",Y(14,ze))("selectedFileName",o.settings&&o.settings.favicon?o.settings.favicon:null)("showFileUploadImagePreview",!0)}}function Je(m,p){m&1&&(e(0,`
310                                    `),l(1,"app-tooltip",110),e(2,`
311                                    `)),m&2&&(s(),c("tooltipText","Unsaved changes")("iconClass","fa fa-exclamation-triangle")("status","warn"))}function Ke(m,p){m&1&&(e(0,`
312                                    `),i(1,"span",111),e(2,`
313                                        `),l(3,"i",112),e(4,`
314                                    `),n(),e(5,`
315                                    `))}function Xe(m,p){if(m&1){let o=k();e(0,`
316                    `),i(1,"app-dynamic-form",101,9),e(3,`
317                        `),i(4,"div",102),e(5,`
318                            `),i(6,"div",103),e(7,`
319                                `),i(8,"app-dynamic-form-field",104),h("onChange",function(){v(o);let a=g().$implicit;return y(a.isUnsaved=!0)}),n(),e(9,`
320                            `),n(),e(10,`
321                            `),i(11,"div",105),e(12,`
322                                `),i(13,"div",19),e(14,`
323                                    `),i(15,"app-dynamic-form-field",106),h("onChange",function(){v(o);let a=g().$implicit;return y(a.isUnsaved=!0)}),n(),e(16,`
324                                    `),e(17,`
325                                    `),i(18,"button",107),h("click",function(){v(o);let a=g().$index,r=g(2);return y(r.deleteCustomColor(a))}),e(19,`
326                                        `),l(20,"i",108),e(21,`
327                                        `),i(22,"div",109),e(23,"Delete"),n(),e(24,`
328                                    `),n(),e(25,`
329                                    `),b(26,Je,3,3),b(27,Ke,6,0),n(),e(28,`
330                            `),n(),e(29,`
331                        `),n(),e(30,`
332                    `),n(),e(31,`
333                    `)}if(m&2){let o=g(),t=o.$implicit,a=o.$index,r=g(2);s(),c("fields",r.colorFields)("entity",t)("horizontalForm",!1)("showCancelButton",!1)("contentFieldsMode",!0)("showSubmitButton",!1)("formID","color-"+a),s(7),c("hideLabel",!0)("formID","color-"+a),s(7),c("hideLabel",!0)("formID","color-"+a),s(3),c("pTooltip","Delete")("disabled",t.isSaving),s(8),S(t.isUnsaved?26:-1),s(),S(t.isUnsaved?-1:27)}}
333function Ye(m,p){if(m&1&&(e(0,`
334                `),i(1,"div"),e(2,`
335                    `),b(3,Xe,32,15),n(),e(4,`
336                `)),m&2){let o=p.$implicit,t=p.$index,a=p.$count,r=g(2);s(),C("pb-3",t!==a-1),s(2),S(o&&r.colorFields&&!r.loadingColors?3:-1)}}function Ze(m,p){if(m&1){let o=k();e(0,`
337            `),J(1,98),e(2,`
338                `),l(3,"hr"),e(4,`
339                `),i(5,"h4"),e(6,"Custom Colors"),n(),e(7,`
340                `),Q(8,Ye,5,3,null,null,W),i(10,"div",21),e(11,`
341                    `),i(12,"button",99),h("click",function(){v(o);let a=g();return y(a.addCustomColor())}),e(13,`
342                        `),l(14,"i",100),e(15,`
343                        Add Custom Color
344                    `),n(),e(16,`
345                `),n(),e(17,`
346                `),l(18,"hr"),e(19,`
347            `),K(),e(20,`
348            `)}if(m&2){let o=g();s(8),q(o.customColors),s(4),C("btn-disabled",o.loading||o.maxCustomColorsReached),c("disabled",o.loading||o.maxCustomColorsReached)("pTooltip",o.maxCustomColorsReached?"Maximum number of custom colors reached":"")}}function et(m,p){m&1&&(e(0,`
349            `),i(1,"div",113),e(2,`
350                `),l(3,"app-skeleton-template",91),e(4,`
351            `),n(),e(5,`
352            `))}function tt(m,p){if(m&1){let o=k();e(0,`
353            `),i(1,"app-dynamic-form",114,6),h("onSubmit",function(){v(o);let a=g();return y(a.saveBasicSettings())}),e(3,`
354                `),i(4,"h4"),e(5,"Public Player Settings"),n(),e(6,`
355                `),i(7,"p"),e(8,`These public player settings determine what information we display for a player on public website
356                    pages`),n(),e(9,`
357                `),i(10,"div",21),e(11,`
358                    `),l(12,"app-dynamic-form-field",115),e(13,`
359                `),n(),e(14,`
360            `),n(),e(15,`
361            `)}if(m&2){let o=g();s(),c("fields",o.settingFields)("entity",o.settings)("horizontalForm",!0)("buttonsSticky",!0)("contentFieldsMode",!0)("showCancelButton",!1)}}function it(m,p){m&1&&(e(0,`
362            `),l(1,"app-skeleton-template",91),e(2,`
363            `))}var Ie=(()=>{let p=class p{constructor(t,a,r,d,x,T){this.clubService=t,this.siteDataService=a,this.formService=r,this.route=d,this.router=x,this.cdRef=T,this.activeTab=V.BasicSettings,this.ThemeTabs=V,this.loading=!0,this.showAdvancedBannerOptions=!1,this.showAdvancedBackgroundOptions=!1,this.colorPickerItems=[],this.acceptedFileExtensions=ie,this.acceptedTypes=ne,this.cropperRatioPrimary=60/11,this.cropperRatioSecondary=2/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></ul><p>We recommend using JPG for its smaller file size.</p>",this.maxCustomColorsReached=!1,this.customColors=[],this.showButtonContrastWarning=!1,this.saving=!1,this.loadingColors=!0,this.overlayStyle="",this.pageBackgroun
363dOverlayType=null,this.pageOverlayColor=null,this.pageOverlayOpacity=null,this.pageBackgroundOverlayTypeID=null,this.pageBackgroundColor=null,this.pageBackgroundImageUrl=null,this.pageBackgroundImageAttachmentID=null,this.pageBackgroundImageFitID=null,this.pageBackgroundPositionID=null,this.pageBackgroundRepeatID=null,this.pageBackgroundBlendModeID=null,this.pageBackgroundGradientDirectionID=null,this.pageSecondaryOverlayOpacity=null,this.pageSecondaryOverlayColor=null,this.backgroundNaturalWidth=300,this.footerNavigationDisplayID=null,this.unsubscribe$=new L}get hasPageBackgroundImage(){return this.themeForm?.form&&this.themeForm.form.get("pageBackgroundImageUrl")?.value?!0:!!this.theme?.pageBackgroundImageUrl}get isFooterNavigationTransparent(){if(!this.themeFields||!this.footerNavigationDisplayID)return!1;let t=this.themeFields.find(a=>a.controlName==="footerNavigationDisplayID");return t&&t.options?t.options.find(r=>r.value===this.footerNavigationDisplayID)?.label?.toLowerCase().includes("transparent")??!1:!1}ngOnInit(){F({metaData:this.clubService.getClubThemeMetadata(),settings:this.siteDataService.getClubSettings(!1),colorMetadata:this.clubService.getClubCustomColorMetadata()}).subscribe(t=>{this.settingFields=t.metaData.settingsMetaData.fields,this.themeFields=t.metaData.themeMetaData.fields,this.colorFields=t.colorMetadata.fields,this.customColors=t.settings.theme.customColors,this.maxCustomColorsReached=this.customColors?.length>=5,this.theme=u(u({},de()),Object.fromEntries(Object.entries(t.settings.theme).filter(([,a])=>a!=null))),this.settings=t.settings.theme,this.loading=!1,this.loadingColors=!1,this.siteDataService.hideSiteLoader(),this.pageBackgroun
363dOverlayType=this.theme.pageBackgroundOverlayTypeID,this.pageBackgroundOverlayTypeID=this.theme.pageBackgroundOverlayTypeID,this.pageOverlayColor=this.theme.pageOverlayColor,this.pageOverlayOpacity=this.theme.pageOverlayOpacity,this.pageBackgroundColor=this.theme.pageBackgroundColor,this.pageBackgroundImageUrl=this.theme.pageBackgroundImageUrl,this.pageBackgroundImageAttachmentID=this.theme.pageBackgroundImageAttachmentID,this.pageBackgroundImageFitID=this.theme.pageBackgroundImageFitID,this.pageBackgroundPositionID=this.theme.pageBackgroundPositionID,this.pageBackgroundRepeatID=this.theme.pageBackgroundRepeatID,this.pageBackgroundBlendModeID=this.theme.pageBackgroundBlendModeID,this.pageBackgroundGradientDirectionID=this.theme.pageBackgroundGradientDirectionID,this.pageSecondaryOverlayOpacity=this.theme.pageSecondaryOverlayOpacity,this.pageSecondaryOverlayColor=this.theme.pageSecondaryOverlayColor,this.updateOverlayStyle(),this.pageBackgroundImageUrl&&this.loadBackgroundImageFromUrl(this.pageBackgroundImageUrl),this.formUpdateTimeoutId&&clearTimeout(this.formUpdateTimeoutId),this.formUpdateTimeoutId=setTimeout(()=>{this.setupFormFieldListeners(),this.formUpdateTimeoutId=null},0)})}setupFormFieldListeners(){if(this.themeForm&&this.themeForm.form){this.themeForm.form.get("pageBackgroun
363dImageUrl")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageBackgroundImageUrl=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageBackgroundOverlayTypeID")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageBackgroundOverlayType=a,this.pageBackgroundOverlayTypeID=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageOverlayColor")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageOverlayColor=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageOverlayOpacity")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageOverlayOpacity=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageBackgroundColor")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageBackgroundColor=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageBackgroundImageAttachmentID")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageBackgroundImageAttachmentID=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageBackgroundImageFitID")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>
363{this.pageBackgroundImageFitID=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageBackgroundPositionID")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageBackgroundPositionID=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageBackgroundRepeatID")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageBackgroundRepeatID=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageBackgroundBlendModeID")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageBackgroundBlendModeID=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageBackgroundGradientDirectionID")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageBackgroundGradientDirectionID=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageSecondaryOverlayOpacity")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageSecondaryOverlayOpacity=a,this.updateOverlayStyle()}),this.themeForm.form.get("pageSecondaryOverlayColor")?.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.pageSecondaryOverlayColor=a,this.updateOverlayStyle()});let t=this.themeForm.form.get("footerNavigationDisplayID");t&&(this.footerNavigationDisplayID=t.value,t.valueChanges.pipe(f(this.unsubscribe$)).subscribe(a=>{this.footerNavigationDisplayID=a}))}}updateOverlayStyle(){this.overlayStyle=this.getOverlayStyle(),this.cdRef.markForCheck()}saveThemeSettings(t){let a=[D(void 0),D(void 0),D(void 0)];this.bannerFileUploadField.hasFileChanged?this.bannerFile?a[0]=this.clubService.savePrimaryBanner(this.bannerFile):t.primaryBannerImage=void 0:t.primaryBannerImage=this.theme.primaryBannerImage,this.banner2FileUploadField.hasFileChanged?this.banner2File?a[1]=this.clubService.saveSecondaryBanner(this.banner2File):t.secondaryBannerImage=void 0:t.secondaryBannerImage=this.theme.secondaryBannerImage,this.bodyBackgroundImageFileUploadField.hasFileChanged?this.bodyBackgroundImageFile?a[2]=this.clubService.savePrimaryBanner(this.bodyBackgroundImageFile):t.pageBackgroun
363dImageUrl=void 0:t.pageBackgroundImageUrl=this.theme.pageBackgroundImageUrl,t.pageBackgroundColor=this.getValidColorValue(t.pageBackgroundColor,this.theme.pageBackgroundColor),t.pageBackgroundPositionID=t.pageBackgroundPositionID!==void 0?t.pageBackgroundPositionID:this.theme.pageBackgroundPositionID,t.pageBackgroundImageFitID=t.pageBackgroundImageFitID!==void 0?t.pageBackgroundImageFitID:this.theme.pageBackgroundImageFitID,t.pageBackgroundRepeatID=t.pageBackgroundRepeatID!==void 0?t.pageBackgroundRepeatID:this.theme.pageBackgroundRepeatID,t.pageBackgroundImageAttachmentID=t.pageBackgroundImageAttachmentID!==void 0?t.pageBackgroundImageAttachmentID:this.theme.pageBackgroundImageAttachmentID,t.pageBackgroundOverlayTypeID=t.pageBackgroundOverlayTypeID!==void 0?t.pageBackgroundOverlayTypeID:this.theme.pageBackgroundOverlayTypeID,t.pageOverlayColor=this.getValidColorValue(t.pageOverlayColor,this.theme.pageOverlayColor),t.pageOverlayOpacity=t.pageOverlayOpacity!==void 0?t.pageOverlayOpacity:this.theme.pageOverlayOpacity,t.pageBackgroun
363dGradientDirectionID=t.pageBackgroundGradientDirectionID!==void 0?t.pageBackgroundGradientDirectionID:this.theme.pageBackgroundGradientDirectionID,t.pageSecondaryOverlayColor=this.getValidColorValue(t.pageSecondaryOverlayColor,this.theme.pageSecondaryOverlayColor),t.pageSecondaryOverlayOpacity=t.pageSecondaryOverlayOpacity!==void 0?t.pageSecondaryOverlayOpacity:this.theme.pageSecondaryOverlayOpacity,t.topNavigationBackground=this.getValidColorValue(t.topNavigationBackground,this.theme.topNavigationBackground),t.topNavigationScrollBehaviorID=t.topNavigationScrollBehaviorID!==void 0?t.topNavigationScrollBehaviorID:this.theme.topNavigationScrollBehaviorID,t.footerNavigationDisplayID=t.footerNavigationDisplayID!==void 0?t.footerNavigationDisplayID:this.theme.footerNavigationDisplayID,t.footerNavigationBackground=this.getValidColorValue(t.footerNavigationBackground,this.theme.footerNavigationBackground),t.footerNavigationHeaderColor=this.getValidColorValue(t.footerNavigationHeaderColor,this.theme.footerNavigationHeaderColor),t.footerNavigationLinkColor=this.getValidColorValue(t.footerNavigationLinkColor,this.theme.footerNavigationLinkColor),t.primaryBannerShadow=t.primaryBannerShadow!==void 0?t.primaryBannerShadow:this.theme.primaryBannerShadow,t.primaryBannerHighlights=t.primaryBannerHighlights!==void 0?t.primaryBannerHighlights:this.theme.primaryBannerHighlights,t.secondaryBannerShadow=t.secondaryBannerShadow!==void 0?t.secondaryBannerShadow:this.theme.secondaryBannerShadow,t.secondaryBannerHighlights=t.secondaryBannerHighlights!==void 0?t.secondaryBannerHighlights:this.theme.secondaryBannerHighlights,t.bannerColor=this.getValidColorValue(t.bannerColor,this.theme.bannerColor),t.textColor=this.getValidColorValue(t.textColor,this.theme.textColor),t.columnTextColor=this.getValidColorValue(t.columnTextColor,this.theme.columnTextColor),t.buttonRadius=t.buttonRadius!==void 0?t.buttonRadius:this.theme.buttonRadius,t.buttonTextColor=this.getValidColorValue(t.buttonTextColor,this.theme.buttonTextColor),t.buttonBackgroundColor=this.getValidColorValue(t.buttonBackgroundColor,this.theme.buttonBackgroundColor),t.cardCornerRoundingScale=t.cardCornerRoundingScale!==void 0?t.cardCornerRoundingScale:this.theme.cardCornerRoundingScale,t.cardDropShadowScale=t.cardDropShadowScale!==void 0?t.cardDropShadowScale:this.theme.cardDropShadowScale,this.formService.clearFormErrorMessage(),F(a).pipe(w(r=>(r[0]&&(t.primaryBannerImage=r[0].location),r[1]&&(t.secondaryBannerImage=r[1].location),r[2]&&(t.pageBackgroun
363dImageUrl=r[2].location),this.clubService.updateClubTheme(t)))).subscribe({next:()=>{this.bodyBackgroundImageFileUploadField.hasFileChanged&&t.pageBackgroundImageUrl&&(this.pageBackgroundImageUrl=t.pageBackgroundImageUrl,this.bodyBackgroundImageFile=null),this.bannerFileUploadField.hasFileChanged=!1,this.banner2FileUploadField.hasFileChanged=!1,this.bodyBackgroundImageFileUploadField.hasFileChanged=!1,this.logoFileUploadField.hasFileChanged=!1,this.faviconUploadField.hasFileChanged=!1,this.bannerFile=null,this.banner2File=null,this.bodyBackgroundImageFile=null,this.logoFile=null,this.favicon=null;let r=this.themeForm?.form?.get("bannerVerticalTextAlign")?.value??null,d=this.themeForm?.form?.get("bannerSize")?.value??null;this.siteDataService.clubSettings.theme=O(u(u({},this.siteDataService.clubSettings.theme),t),{bannerVerticalTextAlign:r,bannerSize:d}),this.siteDataService.clubSettingsChanged(),this.formService.hideFormLoader(),this.siteDataService.showSiteSuccessAlert("Theme information saved successfully"),this.settings=u(u({},this.settings),t),this.theme=O(u(u({},this.theme),t),{bannerVerticalTextAlign:r,bannerSize:d}),this.themeForm&&this.themeForm.form&&this.themeForm.form.patchValue({pageBackgroun
363dImageUrl:t.pageBackgroundImageUrl,pageBackgroundImageFitID:t.pageBackgroundImageFitID,pageBackgroundPositionID:t.pageBackgroundPositionID,pageBackgroundRepeatID:t.pageBackgroundRepeatID,pageBackgroundImageAttachmentID:t.pageBackgroundImageAttachmentID,pageBackgroundBlendModeID:t.pageBackgroundBlendModeID,pageBackgroundOverlayTypeID:t.pageBackgroundOverlayTypeID,pageOverlayColor:t.pageOverlayColor,pageOverlayOpacity:t.pageOverlayOpacity,pageBackgroundGradientDirectionID:t.pageBackgroundGradientDirectionID,pageSecondaryOverlayColor:t.pageSecondaryOverlayColor,pageSecondaryOverlayOpacity:t.pageSecondaryOverlayOpacity,pageBackgroundColor:t.pageBackgroundColor},{emitEvent:!1}),this.formUpdateTimeoutId&&clearTimeout(this.formUpdateTimeoutId),this.formUpdateTimeoutId=setTimeout(()=>{this.syncBackgroundImageFormValues(),this.setupFormFieldListeners(),this.updateOverlayStyle(),this.formUpdateTimeoutId=null},100)},error:()=>{this.formService.hideFormLoader(),this.siteDataService.showSiteErrorAlert("There was a problem saving theme information.")}})}saveBasicSettings(){let t={updateThemeSettings:D(void 0)},a=!1;if(this.settingsForms.toArray().find(d=>!d.isValid)){this.formService.clearFormErrorMessage(),this.settingsForms.toArray().forEach(d=>d.submitForm());return}let r=O(u(u({},this.settings),this.settingsForms.toArray()[0].validFieldsValue),{nameDisplayOptionID:this.settingsForms.toArray()[1].validFieldsValue.nameDisplayOptionID});if(this.logoFileUploadField.hasFileChanged&&this.logoFile?t.logo=this.clubService.saveLogo(this.logoFile):r.logoURL=this.settings.logoURL,this.faviconUploadField.hasFileChanged?this.favicon?t.favicon=this.clubService.saveFavicon(this.favicon):r.favicon=void 0:r.favicon=this.settings.favicon,this.colorForms?.length&&this.colorForms.toArray().find(d=>!d.isValid)){this.formService.clearFormErrorMessage(),this.colorForms.toArray().forEach(d=>d.submitForm());return}else this.colorForms?.length&&this.colorForms.toArray().forEach((d,x)=>{a=!0;let T=u(u({},this.customColors[x]),d.validFieldsValue);t["color-"+x]=this.clubService.saveClubCustomColor(T),this.customColors[x].isUnsaved=!1});F(t).pipe(w(d=>(d.logo?.location&&(r.logoURL=d.logo.location),d.favicon?.location&&(r.favicon=d.favicon.location),a?this.clubService.updateClubThemeSettings(r).pipe(w(()=>this.clubService.getClubCustomColors().pipe(z(x=>{this.customColors=x,r.customColors=x})))):this.clubService.updateClubThemeSettings(r)))).subscribe({next:()=>{this.siteDataService.clubSettings.theme=u(u({},this.siteDataService.clubSettings.theme),r),this.siteDataService.clubSettingsChanged(),this.formService.hideFormLoader(),this.siteDataService.showSiteSuccessAlert("Theme information saved successfully"),this.settings=this.siteDataService.clubSettings.theme,this.settings.colorAccent=this.siteDataService.clubSettings.theme?.colorAccent||"#ffffff",this.settings.colorPrimary=this.siteDataService.clubSettings.theme?.colorPrimary||"#ffffff",this.settings.colorCTAButtons=this.siteDataService.clubSettings.theme?.colorCTAButtons||"#ffffff"},error:d=>{console.log(d),this.formService.hideFormLoader(),this.siteDataService.showSiteErrorAlert("There was a problem saving theme information.")}})}tabChanged(t){this.activeTab=t,this.loadingColors=!0,this.settings=u({},this.settings),this.formUpdateTimeoutId&&clearTimeout(this.formUpdateTimeoutId),this.formUpdateTimeoutId=setTimeout(()=>{this.loadingColors=!1,this.formUpdateTimeoutId=null},0)}addCustomColor(){this.maxCustomColorsReached||(this.customColors.push(new me),this.customColors.length>=5&&(this.maxCustomColorsReached=!0))}saveCustomColor(t){let a=this.colorForms.toArray()[t];if(a){if(!a.isValid){a.submitForm();return}this.formService.clearFormErrorMessage();let r=u(u({},this.customColors[t]),a.validFieldsValue);this.customColors[t].isSaving=!0,this.clubService.saveClubCustomColor(r).pipe(f(this.unsubscribe$)).subscribe({next:d=>{d?this.customColors[t]=d:this.customColors[t]=r,this.customColors[t].isSaving=!1,this.customColors[t].isUnsaved=!1,this.siteDataService.showSiteSuccessAlert("Custom Color saved successfully")},error:()=>{this.siteDataService.showSiteErrorAlert("Error saving custom color")}})}}deleteCustomColor(t){if(!this.customColors[t].clubCustomColorID){this.customColors.splice(t,1),this.maxCustomColorsReached=!1;return}this.clubService.deleteClubCustomColor(this.customColors[t].clubCustomColorID).subscribe({next:()=>{this.customColors.splice(t,1),this.maxCustomColorsReached=!1,this.siteDataService.showSiteSuccessAlert("Custom Color deleted successfully")},error:()=>{this.siteDataService.showSiteErrorAlert("Error deleting custom color")}})}cancel(){this.router.navigate(["../.."],{relativeTo:this.route})}checkButtonContrast(t){}
363onBodyBackgroundImageChange(t){let a=t?t.target?t.target.files[0]:t:void 0;this.bodyBackgroundImageFile=a,a?(this.pageBackgroundImageUrl=URL.createObjectURL(a),this.loadBackgroundImageFromUrl(this.pageBackgroundImageUrl),this.syncBackgroundImageFormValues(),this.updateOverlayStyle()):(this.pageBackgroundImageUrl=null,this.backgroundNaturalWidth=0,this.theme&&(this.theme.pageBackgroundImageUrl=null),this.updateOverlayStyle())}loadBackgroundImageFromUrl(t){if(!t)return;let a=new Image;a.onload=()=>{this.backgroundNaturalWidth=a.naturalWidth,this.syncBackgroundImageFormValues(),this.updateOverlayStyle(),this.cdRef.markForCheck()},a.onerror=()=>{this.cdRef.markForCheck()},a.src=t}getValidColorValue(t,a){return t&&typeof t=="string"&&t.trim()!==""?t:a&&typeof a=="string"&&a.trim()!==""?a:"#ffffff"}syncBackgroundImageFormValues(){!this.themeForm||!this.themeForm.form||(this.pageBackgroundImageFitID=this.themeForm.form.get("pageBackgroundImageFitID")?.value,this.pageBackgroundPositionID=this.themeForm.form.get("pageBackgroundPositionID")?.value,this.pageBackgroun
363dRepeatID=this.themeForm.form.get("pageBackgroundRepeatID")?.value,this.pageBackgroundImageAttachmentID=this.themeForm.form.get("pageBackgroundImageAttachmentID")?.value,this.pageBackgroundBlendModeID=this.themeForm.form.get("pageBackgroundBlendModeID")?.value,this.pageBackgroundOverlayType=this.themeForm.form.get("pageBackgroundOverlayTypeID")?.value,this.pageBackgroundOverlayTypeID=this.themeForm.form.get("pageBackgroundOverlayTypeID")?.value,this.pageOverlayColor=this.themeForm.form.get("pageOverlayColor")?.value,this.pageOverlayOpacity=this.themeForm.form.get("pageOverlayOpacity")?.value,this.pageBackgroundGradientDirectionID=this.themeForm.form.get("pageBackgroundGradientDirectionID")?.value,this.pageSecondaryOverlayColor=this.themeForm.form.get("pageSecondaryOverlayColor")?.value,this.pageSecondaryOverlayOpacity=this.themeForm.form.get("pageSecondaryOverlayOpacity")?.value)}getBgProportions(){let t=window.innerWidth,d=this.backgroundNaturalWidth/t*300;return Math.round(d)+"px"}getOverlayStyle(){let t=this.pageBackgroun
363dOverlayTypeID||1,a=this.pageBackgroundColor!=null&&this.pageBackgroundColor!="#ffffff"?this.pageBackgroundColor:"transparent",r=this.pageBackgroundImageUrl?`url(${this.pageBackgroundImageUrl})`:"none",d=oe(this.pageBackgroundImageFitID)||"contain",x=d,T=ae(this.pageBackgroundPositionID)||"center",ke=re(this.pageBackgroundRepeatID)||"no-repeat",Te=le(this.pageBackgroundBlendModeID)||"normal",De=se(this.pageBackgroundGradientDirectionID)||"0deg",Oe=parseFloat(this.pageOverlayOpacity||"0"),Fe=parseFloat(this.pageSecondaryOverlayOpacity||"0"),$=this.pageOverlayColor&&t!=1?A(this.pageOverlayColor,Oe):"transparent",we=this.pageSecondaryOverlayColor&&t==3?A(this.pageSecondaryOverlayColor,Fe):$,Ee=`linear-gradient(${De}, ${we} 0%, ${$} 100%)`;return d=="auto"&&(x=this.getBgProportions()),`background-color: ${a}; background-image: ${Ee}, ${r}; background-position: 0 0, ${T};background-size: cover, ${x}; background-repeat: ${ke}; background-blend-mode: ${Te}, normal;`}ngOnDestroy(){this.formUpdateTimeoutId&&clearTimeout(this.formUpdateTimeoutId),this.unsubscribe$.next(null),this.unsubscribe$.complete()}};p.\u0275fac=function(a){return new(a||p)(_(P),_(ce),_(he),_(ee),_(te),_(Z))},p.\u0275cmp=H({type:p,selectors:[["ng-component"]],viewQuery:function(a,r){if(a&1&&X(Ne,5)(Ue,5)(Pe,5)(Re,5)(Me,5)(Ae,5)(Ve,5,G)($e,5)(Le,5),a&2){let d;B(d=I())&&(r.logoFileUploadField=d.first),B(d=I())&&(r.bannerFileUploadField=d.first),B(d=I())&&(r.banner2FileUploadField=d.first),B(d=I())&&(r.bodyBackgroundImageFileUploadField=d.first),B(d=I())&&(r.faviconUploadField=d.first),B(d=I())&&(r.themeForm=d.first),B(d=I())&&(r.buttonBgColorFieldRef=d.first),B(d=I())&&(r.colorForms=d),B(d=I())&&(r.settingsForms=d)}},standalone:!1,decls:39,vars:16,consts:[["basicSettings",""],["themeForm",""],["bannerFileUploadField",""],["banner2FileUploadField",""],["buttonBgColorField",""],["bodyBackgroundImageFileUploadField",""],["settingsForm",""],["logoFileUploadField",""],["faviconUploadField",""],["colorForm",""],["role","main"],[1,"theme-form-wrapper"],[1,"tabs"],["role","tablist",1,"tab-nav","no-bullets","inline-list"],[1,"nav-item"],["href","javascript:void(0);","role","tab","aria-controls","home",1,"nav-link",3,"click"],["pageTitle","Basic Settings"],["pageTitle","Theme"],["formID","club-form","submitButtonText","Save","buttonsPosition","left",3,"onSubmit","fields","entity","horizontalForm","contentFieldsMode","showCancelButton","buttonsSticky"],[1,"d-flex"],[1,"full-width"],[1,"form-row"],["fieldName","headingFont"],["fieldName","bodyFont"],[1,"ml-3"],["src","/assets/img/theme-thumbnails/fonts.svg"],["fieldName","topNavigationScrollBehaviorID"],["fieldName","topNavigationFormat"],["fieldName","topNavigationTransparencyID",3,"overrideColors","clubTheme"],["fieldName","topNavigationBackground",3,"overrideColors","clubTheme","defaultImageColor"],["fieldName","topNavigationTextColor",3,"overrideColors","clubTheme","defaultImageColor"],["src","/assets/img/theme-thumbnails/navigation.svg"],["fieldName","footerNavigationDisplayID",3,"overrideColors","clubTheme"],["fieldName","footerNavigationBackground",3,"overrideColors","clubTheme","defaultImageColor"],["fieldName","footerNavigationHeaderColor",3,"overrideColors","clubTheme","defaultImageColor"],["fieldName","footerNavigationLinkColor",3,"overrideColors","clubTheme","defaultImageColor"],["src","/assets/img/theme-thumbnails/footer.svg"],[1,"form-row","custom-form-row"],[1,"form-group","mb-3"],[1,"custom-form-field-wrapper"],[1,"custom-form-field"],["fieldName","bannerFontWeight"],["fieldName","bannerFontSize"],["fieldName","bannerTextAlign"],["fieldName","bannerVerticalTextAlign"],["fieldName","bannerSize"],["fieldName","textColor",3,"overrideColors","clubTheme","defaultImageColor"],["fieldName","bannerColor",3,"overrideColors","clubTheme","defaultImageColor"],["type","button",1,"btn","btn-naked",3,"click"],[1,"fa-solid","fa-chevron-down"],[1,"form-row-advanced-options"],["fieldName","primaryBannerImage",3,"onChange","acceptType","acceptedFileExtensions","canRemoveFile","selectedFileName","enableCropper","cropperRatio","icMaintainAspectRatio","icNotes","icAllowSkip","showFileUploadImagePreview"],["fieldName","primaryBannerShadow",3,"overrideColors","clubTheme"],["fieldName","primaryBannerHighlights",3,"overrideColors","clubTheme"],["fieldName","secondaryBannerImage",3,"onChange","acceptType","acceptedFileExtensions","canDownload","canRemoveFile","selectedFileName","enableCropper","cropperRatio","icMaintainAspectRatio","icNotes","icAllowSkip","showFileUploadImagePreview"],["fieldName","secondaryBannerShadow",3,"overrideColors","clubTheme"],["fieldName","secondaryBannerHighlights",3,"overrideColors","clubTheme"],["src","/assets/img/theme-thumbnails/titles.svg"],["fieldName","columnFontWeight"],["fieldName","columnFontSize"],["fieldName","columnTextAlign"],["fieldName","columnTextColor",3,"overrideColors","clubTheme","defaultImageColor"],["src","/assets/img/theme-thumbnails/column-titles.svg"],["fieldName","buttonBackgroun
363dColor",3,"onChange","overrideColors","clubTheme","defaultImageColor"],["fieldName","buttonRadiusID",3,"overrideColors","clubTheme"],["src","/assets/img/theme-thumbnails/buttons.svg"],["fieldName","cardCornerRoundingScale"],["fieldName","cardDropShadowScale"],["src","/assets/img/theme-thumbnails/corners-shadows.svg"],["fieldName","pageBackgroundColor",3,"overrideColors","clubTheme"],["fieldName","pageBackgroundImageUrl",3,"onChange","acceptType","acceptedFileExtensions","canRemoveFile","selectedFileName","icNotes","showFileUploadImagePreview"],[3,"hidden"],["fieldName","pageBackgroundImageAttachmentID"],["fieldName","pageBackgroundImageFitID"],["fieldName","pageBackgroundRepeatID"],["fieldName","pageBackgroundPositionID"],["fieldName","pageBackgroundOverlayTypeID"],["fieldName","pageBackgroundBlendModeID"],[1,"form-row",3,"hidden"],["fieldName","pageBackgroundGradientDirectionID"],["fieldName","pageOverlayColor",3,"overrideColors","clubTheme"],["fieldName","pageOverlayOpacity"],["fieldName","pageSecondaryOverlayColor",3,"overrideColors","clubTheme"],["fieldName","pageSecondaryOverlayOpacity"],[1,"theme-preview"],[1,"theme-preview-overlay"],["src","/assets/img/theme-thumbnails/page-backgrounds.svg"],[1,"form-group"],["for","","aria-hidden","true"],[1,"col-md-7"],[3,"isInline","alertType"],["skeletonType","form"],["formID","club-form-before-custom-colors","buttonsPosition","left",3,"fields","entity","horizontalForm","showSubmitButton","contentFieldsMode","showCancelButton"],["fieldName","logoURL",3,"onChange","canDownload","selectedFileName","showFileUploadImagePreview"],["fieldName","favicon","acceptType","image/png",3,"onChange","canDownload","canRemoveFile","acceptedFileExtensions","selectedFileName","showFileUploadImagePreview"],["fieldName","colorPrimary"],["fieldName","colorAccent"],["fieldName","colorCTAButtons"],[1,""],["type","button",1,"btn","btn-naked","btn-sm",3,"click","disabled","pTooltip"],["aria-hidden","true",1,"fa","fa-plus"],["submitButtonText","Save","buttonsPosition","left",3,"fields","entity","horizontalForm","showCancelButton","contentFieldsMode","showSubmitButton","formID"],[1,"custom-form"],[1,"custom-form-label","pr-5"],["fieldName","name","styleClass","mb-1",3,"onChange","hideLabel","formID"],[1,"custom-form-input"],["fieldName","color","styleClass","mb-1",1,"flex-grow-1",3,"onChange","hideLabel","formID"],["type","button",1,"btn","btn-sm","btn-tertiary","text-medium",3,"click","pTooltip","disabled"],[1,"fa-solid","fa-trash"],[1,"sr-only"],[3,"tooltipText","iconClass","status"],[1,"tooltip-placeholder",2,"margin-left","5px"],[1,"fa","fa-exclamation-triangle",2,"visibility","hidden"],[1,"d-flex","justify-content-center","align-items-center","mt-3"],["formID","club-form-after-colors","submitButtonText","Save","buttonsPosition","left",3,"onSubmit","fields","entity","horizontalForm","buttonsSticky","contentFieldsMode","showCancelButton"],["fieldName","nameDisplayOptionID"]],template:function(a,r){a&1&&(i(0,"main",10),e(1,`
364    `),b(2,Ge,3,0)(3,je,3,0),i(4,"section",11),e(5,`
365        `),i(6,"div",12),e(7,`
366            `),i(8,"ul",13),e(9,`
367                `),i(10,"li",14),e(11,`
368                    `),i(12,"a",15),h("click",function(){return r.tabChanged(r.ThemeTabs.BasicSettings)}),e(13,`
369                        Basic Settings
370                    `),n(),e(14,`
371                `),n(),e(15,`
372                `),i(16,"li",14),e(17,`
373                    `),i(18,"a",15),h("click",function(){return r.tabChanged(r.ThemeTabs.Theme)}),e(19,"Theme"),n(),e(20,`
374                `),n(),e(21,`
375            `),n(),e(22,`
376        `),n(),e(23,`
377        `),i(24,"div"),e(25,`
378            `),b(26,We,448,108)(27,Qe,3,0),n(),e(28,`
379        `),i(29,"div",null,0),e(31,`
380            `),b(32,qe,40,15),b(33,Ze,21,4),b(34,et,6,0),b(35,tt,16,6)(36,it,3,0),n(),e(37,`
381    `),n(),e(38,`
382`),n()),a&2&&(s(2),S(r.activeTab===r.ThemeTabs.BasicSettings?2:3),s(8),C("active",r.activeTab===r.ThemeTabs.BasicSettings),s(2),U("aria-selected",r.activeTab===r.ThemeTabs.BasicSettings),s(4),C("active",r.activeTab===r.ThemeTabs.Theme),s(2),U("aria-selected",r.activeTab===r.ThemeTabs.Theme),s(6),C("d-none",r.activeTab!==r.ThemeTabs.Theme),s(2),S(r.loading?27:26),s(3),C("d-none",r.activeTab!==r.ThemeTabs.BasicSettings),s(3),S(r.loading?-1:32),s(),S(r.colorFields&&!r.loadingColors&&!r.loading?33:-1),s(),S(r.loadingColors?34:-1),s(),S(r.loading?36:35))},dependencies:[Ce,ye,fe,ve,ge,xe,pe],styles:[".hidden[_ngcontent-%COMP%]{display:none}.background-selector[_ngcontent-%COMP%]   .pickerLabel[_ngcontent-%COMP%]{width:545px}.background-selector[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:260px}.advanced[_ngcontent-%COMP%]{background-color:var(--grey-75)}.custom-form-row[_ngcontent-%COMP%]   .custom-form-field-wrapper[_ngcontent-%COMP%]{display:flex}.custom-form-row[_ngcontent-%COMP%]   .custom-form-field[_ngcontent-%COMP%]     .form-group{dis
382play:block}.custom-form-row[_ngcontent-%COMP%]   .custom-form-field[_ngcontent-%COMP%]     .form-group label{max-width:100%}.custom-form-row[_ngcontent-%COMP%]   .custom-form-field[_ngcontent-%COMP%]     .form-group .form-dropdown{width:100%}.options-show[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_show .75s forwards;overflow-x:hidden}.options-hide[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_hide .75s forwards;overflow:hidden;padding:0;border-bottom:none}.theme-form-wrapper[_ngcontent-%COMP%]     .form-action{padding:1rem 0 .5rem!important}.theme-preview[_ngcontent-%COMP%]{display:grid;width:300px;height:226px;grid-template-columns:1fr;grid-template-rows:1fr;margin-left:30%}.theme-preview[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{grid-area:1/1}.theme-preview[_ngcontent-%COMP%]   .theme-preview-image[_ngcontent-%COMP%]{background-size:100%;background-position:center}.theme-preview[_ngcontent-%COMP%]   .theme-preview-overlay[_ngcontent-%COMP%]{background:red}@keyframes _ngcontent-%COMP%_show{0%{max-height:0}to{max-height:2000px}}@keyframes _ngcontent-%COMP%_hide{0%{max-height:2000px}to{max-height:0}}@media(max-width:768px){.theme-preview[_ngcontent-%COMP%]{margin-left:0}}"]});let m=p;return m})();var _e=(()=>{let p=class p{};p.\u0275fac=function(a){return new(a||p)},p.\u0275mod=N({type:p}),p.\u0275inj=E({imports:[M.forChild([{path:"",component:Ie,canActivate:[ue],data:{metaTitle:"Club Theme Settings"}}]),M]});let m=p;return m})();var Qt=(()=>{let p=class p{};p.\u0275fac=function(a){return new(a||p)},p.\u0275mod=N({type:p}),p.\u0275inj=E({providers:[P],imports:[be,_e,Se]});let m=p;return m})();export{Qt as ContentThemeModule};

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.