1 |
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Roboto'); |
= |
1 |
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Roboto'); |
2 |
|
|
2 |
|
3 |
body { |
|
3 |
body { |
4 |
font-family: 'Roboto', sans-serif; |
|
4 |
font-family: 'Roboto', sans-serif; |
5 |
} |
|
5 |
} |
6 |
|
|
6 |
|
7 |
/*These are CSS classes for the headers*/ |
|
7 |
/*These are CSS classes for the headers*/ |
8 |
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 { |
|
8 |
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 { |
9 |
font-family: 'Open Sans', sans-serif; |
|
9 |
font-family: 'Open Sans', sans-serif; |
10 |
} |
|
10 |
} |
11 |
|
|
11 |
|
12 |
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{ |
|
12 |
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{ |
13 |
color:#08415c; |
|
13 |
color:#08415c; |
14 |
} |
|
14 |
} |
15 |
|
|
15 |
|
16 |
h1 { |
|
16 |
h1 { |
17 |
font-size: 48px; |
|
17 |
font-size: 48px; |
18 |
padding: 10px; |
|
18 |
padding: 10px; |
19 |
text-align: center; |
|
19 |
text-align: center; |
20 |
} |
|
20 |
} |
21 |
|
|
21 |
|
22 |
h2 { |
|
22 |
h2 { |
23 |
font-size: 30px; |
|
23 |
font-size: 30px; |
24 |
padding: 10px 0 8px; |
|
24 |
padding: 10px 0 8px; |
25 |
} |
|
25 |
} |
26 |
|
|
26 |
|
27 |
.header-special, .header-detailed { |
|
27 |
.header-special, .header-detailed { |
28 |
font-size: 26px; |
|
28 |
font-size: 26px; |
29 |
padding: 15px 0 0; |
|
29 |
padding: 15px 0 0; |
30 |
} |
|
30 |
} |
31 |
|
|
31 |
|
32 |
.section-header { |
|
32 |
.section-header { |
33 |
font-size: 24px; |
|
33 |
font-size: 24px; |
34 |
padding: 0 0 10px; |
|
34 |
padding: 0 0 10px; |
35 |
} |
|
35 |
} |
36 |
|
|
36 |
|
37 |
.card-title { |
|
37 |
.card-title { |
38 |
color: #08415c; |
|
38 |
color: #08415c; |
39 |
font-size: 22px; |
|
39 |
font-size: 22px; |
40 |
padding: 10px 0 0; |
|
40 |
padding: 10px 0 0; |
41 |
} |
|
41 |
} |
42 |
|
|
42 |
|
43 |
label { |
|
43 |
label { |
44 |
font: bold 16px; |
|
44 |
font: bold 16px; |
45 |
} |
|
45 |
} |
46 |
|
|
46 |
|
47 |
p { |
|
47 |
p { |
48 |
color: #5f5e5e; |
|
48 |
color: #5f5e5e; |
49 |
font-size: 16px; |
|
49 |
font-size: 16px; |
50 |
padding: 10px; |
|
50 |
padding: 10px; |
51 |
|
|
51 |
|
52 |
} |
|
52 |
} |
53 |
|
|
53 |
|
|
|
-+ |
54 |
/*Caution: Removing or altering focus style might affect accessibility. |
|
|
|
55 |
For more information, see WCAG 1.4.11 and 2.4.7*/ |
|
|
|
56 |
button:focus, |
|
|
|
57 |
.btn:focus, |
|
|
|
58 |
.btn:not(:disabled):not(.disabled).active:focus, |
|
|
|
59 |
.btn:not(:disabled):not(.disabled):active:focus, |
|
|
|
60 |
.show>.btn.dropdown-toggle:focus, |
|
|
|
61 |
.form-control:focus, |
|
|
|
62 |
.custom-select:focus, |
|
|
|
63 |
.custom-control-input:focus~.custom-control-label::before { |
|
|
|
64 |
box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; |
|
|
|
65 |
outline: 2px transparent solid; |
|
|
|
66 |
} |
|
|
= |
67 |
|
|
|
-+ |
68 |
/*For Safari compatibility, which does not support box-shadows on |
|
|
|
69 |
unstyled form controls. A black colored outline has |
|
|
|
70 |
sufficient contrast against our white and grey backgrounds.*/ |
|
|
|
71 |
input:not(.form-control, .custom-select, .custom-control-input, .btn):focus { |
|
|
|
72 |
box-shadow: none; |
|
|
|
73 |
outline: 2px #000 solid; |
|
|
|
74 |
outline-offset: 2px; |
|
|
|
75 |
} |
|
|
= |
76 |
|
|
|
-+ |
77 |
/*Caution: Hyperlinks have underlines by default. |
|
|
|
78 |
Removing the underline can affect accessibility. |
|
|
|
79 |
For more information, see WCAG 1.4.1*/ |
54 |
a { |
= |
80 |
a { |
55 |
color: #08415c; |
|
81 |
color: #08415c; |
|
|
-+ |
82 |
text-decoration: underline; |
|
|
|
83 |
} |
|
|
= |
84 |
|
|
|
-+ |
85 |
a.btn { |
56 |
text-decoration: none; |
= |
86 |
text-decoration: none; |
|
|
-+ |
87 |
} |
|
|
= |
88 |
|
|
|
-+ |
89 |
a:hover { |
|
|
|
90 |
text-decoration: none; |
|
|
|
91 |
} |
|
|
= |
92 |
|
|
|
-+ |
93 |
/*Caution: Removing hyperlink focus style will |
|
|
|
94 |
result in using browser defaults, which might affect accessibility. |
|
|
|
95 |
For more information, see WCAG 1.4.11 and 2.4.7*/ |
|
|
|
96 |
a:focus, a:focus-visible { |
|
|
|
97 |
box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; |
|
|
|
98 |
outline: 2px transparent solid; |
57 |
} |
= |
99 |
} |
58 |
|
|
100 |
|
59 |
ul { |
|
101 |
ul { |
60 |
color: #5f5e5e; |
|
102 |
color: #5f5e5e; |
61 |
font-size: 16px; |
|
103 |
font-size: 16px; |
62 |
padding: 0 0 0 25px; |
|
104 |
padding: 0 0 0 25px; |
63 |
word-wrap: normal; |
|
105 |
word-wrap: normal; |
64 |
} |
|
106 |
} |
65 |
|
|
107 |
|
66 |
.small-notes { |
|
108 |
.small-notes { |
67 |
color: #5f5e5e; |
|
109 |
color: #5f5e5e; |
68 |
font-size: 14px; |
|
110 |
font-size: 14px; |
69 |
padding: 4px 0 0; |
|
111 |
padding: 4px 0 0; |
70 |
} |
|
112 |
} |
71 |
|
|
113 |
|
72 |
.common-note { |
|
114 |
.common-note { |
73 |
color: #5f5e5e; |
|
115 |
color: #5f5e5e; |
74 |
font-size: 16px; |
|
116 |
font-size: 16px; |
75 |
padding: 6px 0px; |
|
117 |
padding: 6px 0px; |
76 |
} |
|
118 |
} |
77 |
|
|
119 |
|
78 |
.req { |
|
120 |
.req { |
79 |
color: #b81f18; |
|
121 |
color: #b81f18; |
80 |
font-size: 12px; |
|
122 |
font-size: 12px; |
81 |
padding:0 0 0 6px; |
|
123 |
padding:0 0 0 6px; |
82 |
text-align: right; |
|
124 |
text-align: right; |
83 |
} |
|
125 |
} |
84 |
|
|
126 |
|
85 |
.fas { |
|
127 |
.fas { |
86 |
font-size: 16px; |
|
128 |
font-size: 16px; |
87 |
} |
|
129 |
} |
88 |
|
|
130 |
|
89 |
form section { |
|
131 |
form section { |
90 |
background-color: #e2e3e5; |
|
132 |
background-color: #e2e3e5; |
91 |
margin-bottom: 40px; |
|
133 |
margin-bottom: 40px; |
92 |
padding: 15px; |
|
134 |
padding: 15px; |
93 |
} |
|
135 |
} |
94 |
|
|
136 |
|
95 |
/*These are the CSS classes for the header and footer */ |
|
137 |
/*These are the CSS classes for the header and footer */ |
96 |
.head { |
|
138 |
.head { |
97 |
background-color: #fff; |
|
139 |
background-color: #fff; |
98 |
height: auto; |
|
140 |
height: auto; |
99 |
padding: 10px; |
|
141 |
padding: 10px; |
100 |
text-align: center; |
|
142 |
text-align: center; |
101 |
width: 100%; |
|
143 |
width: 100%; |
102 |
} |
|
144 |
} |
103 |
|
|
145 |
|
104 |
.foot { |
|
146 |
.foot { |
105 |
border-top: 1px solid #0000001a; |
|
147 |
border-top: 1px solid #0000001a; |
106 |
font-size: 14px; |
|
148 |
font-size: 14px; |
107 |
margin-top: 1rem; |
|
149 |
margin-top: 1rem; |
108 |
padding: 1rem 0; |
|
150 |
padding: 1rem 0; |
109 |
} |
|
151 |
} |
110 |
|
|
152 |
|
111 |
#status br { |
|
153 |
#status br { |
112 |
display: none; |
|
154 |
display: none; |
113 |
} |
|
155 |
} |
114 |
|
|
156 |
|
115 |
.info-block { |
|
157 |
.info-block { |
116 |
border-bottom: 1px solid #0000001a; |
|
158 |
border-bottom: 1px solid #0000001a; |
117 |
margin-bottom: 1rem; |
|
159 |
margin-bottom: 1rem; |
118 |
padding: 1rem 0; |
|
160 |
padding: 1rem 0; |
119 |
} |
|
161 |
} |
120 |
|
|
162 |
|
121 |
.bold { |
|
163 |
.bold { |
122 |
font-weight: bold; |
|
164 |
font-weight: bold; |
123 |
} |
|
165 |
} |
124 |
|
|
166 |
|
125 |
.navbar-dark .navbar-nav .nav-link:hover, a:hover, .dropdown-item:focus, .dropdown-item:hover { |
<> |
167 |
.navbar-dark .navbar-nav .nav-link:hover, .dropdown-item:focus, .dropdown-item:hover { |
126 |
text-decoration: underline; |
= |
168 |
text-decoration: underline; |
127 |
} |
|
169 |
} |
128 |
|
|
170 |
|
129 |
/* Theses are CSS styling classes for logon/logout pages*/ |
|
171 |
/* Theses are CSS styling classes for logon/logout pages*/ |
130 |
.logon-directions { |
|
172 |
.logon-directions { |
131 |
border-bottom: 1px solid #0000001a; |
|
173 |
border-bottom: 1px solid #0000001a; |
132 |
font-size: 18px; |
|
174 |
font-size: 18px; |
133 |
margin-bottom: 1rem; |
|
175 |
margin-bottom: 1rem; |
134 |
padding: 1rem 0; |
|
176 |
padding: 1rem 0; |
135 |
} |
|
177 |
} |
136 |
|
|
178 |
|
137 |
.logout-message { |
|
179 |
.logout-message { |
138 |
font-size: 16px; |
|
180 |
font-size: 16px; |
139 |
} |
|
181 |
} |
140 |
|
|
182 |
|
141 |
.logon-field { |
|
183 |
.logon-field { |
142 |
padding: 0 15px 0 0; |
|
184 |
padding: 0 15px 0 0; |
143 |
} |
|
185 |
} |
144 |
|
|
186 |
|
145 |
.forgot-password-link, .first-time-link{ |
|
187 |
.forgot-password-link, .first-time-link{ |
146 |
padding: 10px 0 0; |
|
188 |
padding: 10px 0 0; |
147 |
} |
|
189 |
} |
148 |
|
|
190 |
|
149 |
/*These are CSS classes for the buttons*/ |
|
191 |
/*These are CSS classes for the buttons*/ |
150 |
.btn-primary, .btn-secondary, .btn-light { |
|
192 |
.btn-primary, .btn-secondary, .btn-light { |
151 |
border: none; |
+- |
|
|
152 |
margin: 10px 0; |
= |
193 |
margin: 10px 0; |
|
|
-+ |
194 |
} |
|
|
= |
195 |
|
|
|
-+ |
196 |
/*Caution: Altering button borders might affect accessibility. |
|
|
|
197 |
For more information, see WCAG 1.4.11*/ |
|
|
|
198 |
.btn-primary, .btn-secondary, .btn-light, .btn.disabled, .btn:disabled, |
|
|
|
199 |
.btn-primary:hover, .btn-secondary:hover, .btn-light:hover, |
|
|
|
200 |
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle, |
|
|
|
201 |
.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show>.btn-secondary.dropdown-toggle, |
|
|
|
202 |
.btn-light:not(:disabled):not(.disabled):not(.dropdown-item).active, .btn-light:not(:disabled):not(.disabled):not(.dropdown-item):active, .show>.btn-light.dropdown-toggle { |
|
|
|
203 |
border: 1px solid #6C757D; |
|
|
|
204 |
} |
|
|
= |
205 |
|
|
|
-+ |
206 |
.btn-link, .btn-link.disabled, .btn-link:disabled, .dropdown-menu > .dropdown-item.btn-light { |
|
|
|
207 |
border: none; |
153 |
} |
= |
208 |
} |
154 |
|
|
209 |
|
155 |
.btn-primary { |
|
210 |
.btn-primary { |
156 |
background-color: #08415c; |
|
211 |
background-color: #08415c; |
157 |
color: #fff; |
|
212 |
color: #fff; |
158 |
margin: 10px 5px 10px 0; |
|
213 |
margin: 10px 5px 10px 0; |
159 |
} |
|
214 |
} |
160 |
|
|
215 |
|
161 |
.btn-primary:disabled { |
|
216 |
.btn-primary:disabled { |
162 |
background-color: #08415c; |
|
217 |
background-color: #08415c; |
163 |
} |
|
218 |
} |
164 |
|
|
219 |
|
165 |
.btn-secondary { |
|
220 |
.btn-secondary { |
166 |
background-color: #e2e3e5; |
|
221 |
background-color: #e2e3e5; |
167 |
color: #08415c; |
|
222 |
color: #08415c; |
168 |
margin: 10px 5px 10px 0; |
|
223 |
margin: 10px 5px 10px 0; |
169 |
} |
|
224 |
} |
170 |
|
|
225 |
|
171 |
.btn-primary:hover { |
|
226 |
.btn-primary:hover { |
172 |
background-color: #52b3d9; |
|
227 |
background-color: #52b3d9; |
173 |
color: #05171f; |
|
228 |
color: #05171f; |
174 |
text-decoration: underline; |
|
229 |
text-decoration: underline; |
175 |
} |
|
230 |
} |
176 |
|
|
231 |
|
177 |
.btn-secondary:hover, .dropdown-item:focus, .dropdown-item:not(.disabled):hover { |
|
232 |
.btn-secondary:hover, .dropdown-item:focus, .dropdown-item:not(.disabled):hover { |
178 |
background-color: #a4a5a5; |
|
233 |
background-color: #a4a5a5; |
179 |
color: #05171f; |
|
234 |
color: #05171f; |
180 |
text-decoration: underline; |
|
235 |
text-decoration: underline; |
181 |
} |
|
236 |
} |
182 |
|
|
237 |
|
183 |
.badge-primary { |
|
238 |
.badge-primary { |
184 |
background-color: #08415c; |
|
239 |
background-color: #08415c; |
185 |
} |
|
240 |
} |
186 |
|
|
241 |
|
187 |
.selectOptions { |
|
242 |
.selectOptions { |
188 |
color: #08415c; |
|
243 |
color: #08415c; |
189 |
padding: 20px 12px 6px; |
|
244 |
padding: 20px 12px 6px; |
190 |
} |
|
245 |
} |
191 |
|
|
246 |
|
192 |
/*These are CSS alert styling classes*/ |
|
247 |
/*These are CSS alert styling classes*/ |
193 |
.btn-alert { |
|
248 |
.btn-alert { |
194 |
color: #b81f18; |
|
249 |
color: #b81f18; |
195 |
font-size: 14px; |
|
250 |
font-size: 14px; |
196 |
padding: 4px 12px 6px; |
|
251 |
padding: 4px 12px 6px; |
197 |
} |
|
252 |
} |
198 |
|
|
253 |
|
199 |
.btn-alert:hover { |
|
254 |
.btn-alert:hover { |
200 |
color: #08415c; |
|
255 |
color: #08415c; |
201 |
} |
|
256 |
} |
202 |
|
|
257 |
|
203 |
.alerts-bar{ |
|
258 |
.alerts-bar{ |
204 |
background-color: #f1f4f7; |
|
259 |
background-color: #f1f4f7; |
205 |
margin: 0 0 20px; |
|
260 |
margin: 0 0 20px; |
206 |
text-align: center; |
|
261 |
text-align: center; |
207 |
} |
|
262 |
} |
208 |
|
|
263 |
|
209 |
/*These are CSS styling classes for the navigation bar*/ |
|
264 |
/*These are CSS styling classes for the navigation bar*/ |
210 |
.main-navbar { |
|
265 |
.main-navbar { |
211 |
background-color: #08415c; |
|
266 |
background-color: #08415c; |
212 |
color: #000; |
|
267 |
color: #000; |
213 |
padding: 5px; |
|
268 |
padding: 5px; |
214 |
font: bold 26px 'Open Sans', sans-serif; |
|
269 |
font: bold 26px 'Open Sans', sans-serif; |
215 |
font-kerning: auto; |
|
270 |
font-kerning: auto; |
216 |
} |
|
271 |
} |
217 |
|
|
272 |
|
218 |
nav li { |
|
273 |
nav li { |
219 |
margin: 0px 0px 0px 12px; |
|
274 |
margin: 0px 0px 0px 12px; |
220 |
} |
|
275 |
} |
221 |
|
|
276 |
|
222 |
nav li a { |
|
277 |
nav li a { |
223 |
font: bolder 18px 'Open Sans', sans-serif; |
|
278 |
font: bolder 18px 'Open Sans', sans-serif; |
224 |
text-decoration: none; |
|
279 |
text-decoration: none; |
225 |
} |
|
280 |
} |
226 |
|
|
281 |
|
227 |
.navbar-dark .navbar-nav .nav-link { |
|
282 |
.navbar-dark .navbar-nav .nav-link { |
228 |
color: #e0e0e0; |
|
283 |
color: #e0e0e0; |
229 |
} |
|
284 |
} |
230 |
|
|
285 |
|
231 |
.dropdown-item { |
|
286 |
.dropdown-item { |
232 |
font-size: 14px; |
|
287 |
font-size: 14px; |
233 |
} |
|
288 |
} |
234 |
|
|
289 |
|
235 |
/*These are the CSS Styling classes for search*/ |
|
290 |
/*These are the CSS Styling classes for search*/ |
236 |
#no-results-message { |
|
291 |
#no-results-message { |
237 |
color: #5f5e5e; |
|
292 |
color: #5f5e5e; |
238 |
font-size: 16px; |
|
293 |
font-size: 16px; |
239 |
padding: 4px 0 0; |
|
294 |
padding: 4px 0 0; |
240 |
} |
|
295 |
} |
241 |
|
|
296 |
|
242 |
.ui-datepicker-trigger { |
|
297 |
.ui-datepicker-trigger { |
243 |
width: 35px; |
|
298 |
width: 35px; |
244 |
} |
|
299 |
} |
245 |
|
|
300 |
|
246 |
.visit-date { |
|
301 |
.visit-date { |
247 |
padding-left: 0px; |
|
302 |
padding-left: 0px; |
248 |
} |
|
303 |
} |
249 |
|
|
304 |
|
250 |
.researcher-tag-count { |
|
305 |
.researcher-tag-count { |
251 |
padding: 0 5px 0 0; |
|
306 |
padding: 0 5px 0 0; |
252 |
} |
|
307 |
} |
253 |
|
|
308 |
|
254 |
.checkbox { |
|
309 |
.checkbox { |
255 |
padding-top: 20px; |
|
310 |
padding-top: 20px; |
256 |
} |
|
311 |
} |
257 |
|
|
312 |
|
258 |
.form-checkbox { |
|
313 |
.form-checkbox { |
259 |
padding: 10px 16px; |
|
314 |
padding: 10px 16px; |
260 |
} |
|
315 |
} |
261 |
|
|
316 |
|
262 |
section[name='order-info'] .form-check, form[name='ChangeUserInformation'] .form-check { |
|
317 |
section[name='order-info'] .form-check, form[name='ChangeUserInformation'] .form-check { |
263 |
padding-left: 2.25rem; |
|
318 |
padding-left: 2.25rem; |
264 |
} |
|
319 |
} |
265 |
|
|
320 |
|
|
|
-+ |
321 |
/*Caution: Changing form field border color can affect accessibility |
|
|
|
322 |
For more information see WCAG 1.4.11*/ |
|
|
|
323 |
.form-control, |
|
|
|
324 |
.form-control:focus, |
|
|
|
325 |
.custom-select, |
|
|
|
326 |
.custom-select:focus, |
|
|
|
327 |
.custom-control .custom-control-label::before, |
|
|
|
328 |
.custom-control-input:focus:not(:checked)~.custom-control-label::before { |
|
|
|
329 |
border-color: #757575; |
|
|
|
330 |
} |
|
|
= |
331 |
|
|
|
-+ |
332 |
.custom-switch .custom-control-label::after { |
|
|
|
333 |
background-color: #757575; |
|
|
|
334 |
} |
|
|
= |
335 |
|
266 |
.transaction-label { |
|
336 |
.transaction-label { |
267 |
width: 33%; |
|
337 |
width: 33%; |
268 |
} |
|
338 |
} |
269 |
|
|
339 |
|
270 |
#researcher-tags-input { |
|
340 |
#researcher-tags-input { |
271 |
width: 100%; |
|
341 |
width: 100%; |
272 |
} |
|
342 |
} |
273 |
a.offscreen{ |
|
343 |
a.offscreen{ |
274 |
clip-path: inset(100%); |
|
344 |
clip-path: inset(100%); |
275 |
clip: rect(1px 1px 1px 1px); /* IE 6/7 */ |
|
345 |
clip: rect(1px 1px 1px 1px); /* IE 6/7 */ |
276 |
clip: rect(1px, 1px, 1px, 1px); |
|
346 |
clip: rect(1px, 1px, 1px, 1px); |
277 |
height: 1px; |
|
347 |
height: 1px; |
278 |
overflow: hidden; |
|
348 |
overflow: hidden; |
279 |
position: absolute; |
|
349 |
position: absolute; |
280 |
white-space: nowrap; /* added line */ |
|
350 |
white-space: nowrap; /* added line */ |
281 |
width: 1px; |
|
351 |
width: 1px; |
282 |
} |
|
352 |
} |
283 |
|
|
353 |
|
284 |
a.offscreen:focus{ |
|
354 |
a.offscreen:focus{ |
285 |
position:relative; |
|
355 |
position:relative; |
286 |
clip:auto; |
|
356 |
clip:auto; |
287 |
width:auto; |
|
357 |
width:auto; |
288 |
height:auto; |
|
358 |
height:auto; |
289 |
overflow:auto; |
|
359 |
overflow:auto; |
|
|
-+ |
360 |
clip-path: none; |
290 |
} |
= |
361 |
} |
291 |
|
|
362 |
|
292 |
/* EAD Styling */ |
|
363 |
/* EAD Styling */ |
293 |
|
|
364 |
|
294 |
.EADCommon { |
|
365 |
.EADCommon { |
295 |
margin-bottom: 20px |
|
366 |
margin-bottom: 20px |
296 |
} |
|
367 |
} |
297 |
|
|
368 |
|
298 |
.EADSection { |
|
369 |
.EADSection { |
299 |
margin-top: 5px; |
|
370 |
margin-top: 5px; |
300 |
margin-bottom: 5px; |
|
371 |
margin-bottom: 5px; |
301 |
padding: 5px; |
|
372 |
padding: 5px; |
302 |
border-style: solid; |
|
373 |
border-style: solid; |
303 |
border-width: 1px; |
|
374 |
border-width: 1px; |
304 |
border-color: #666666 |
|
375 |
border-color: #666666 |
305 |
} |
|
376 |
} |
306 |
|
|
377 |
|
307 |
.EADGroup { |
|
378 |
.EADGroup { |
308 |
margin: 5px; |
|
379 |
margin: 5px; |
309 |
padding: 5px; |
|
380 |
padding: 5px; |
310 |
} |
|
381 |
} |
311 |
|
|
382 |
|
312 |
.EADContainer { |
|
383 |
.EADContainer { |
313 |
margin-left: 20px; |
|
384 |
margin-left: 20px; |
314 |
padding: 0px; |
|
385 |
padding: 0px; |
315 |
} |
|
386 |
} |
316 |
|
|
387 |
|
317 |
.EADRequest { |
|
388 |
.EADRequest { |
318 |
display: block |
|
389 |
display: block |
319 |
} |
|
390 |
} |
320 |
|
|
391 |
|
321 |
.c01 { |
|
392 |
.c01 { |
322 |
padding-left: 5px; |
|
393 |
padding-left: 5px; |
323 |
font-weight: bold |
|
394 |
font-weight: bold |
324 |
} |
|
395 |
} |
325 |
|
|
396 |
|
326 |
.c02 { |
|
397 |
.c02 { |
327 |
padding-left: 15px |
|
398 |
padding-left: 15px |
328 |
} |
|
399 |
} |
329 |
|
|
400 |
|
330 |
.c03 { |
|
401 |
.c03 { |
331 |
padding-left: 30px |
|
402 |
padding-left: 30px |
332 |
} |
|
403 |
} |
333 |
|
|
404 |
|
334 |
.c04 { |
|
405 |
.c04 { |
335 |
padding-left: 45px |
|
406 |
padding-left: 45px |
336 |
} |
|
407 |
} |
337 |
|
|
408 |
|
338 |
.c05 { |
|
409 |
.c05 { |
339 |
padding-left: 60px |
|
410 |
padding-left: 60px |
340 |
} |
|
411 |
} |
341 |
|
|
412 |
|
342 |
.c06 { |
|
413 |
.c06 { |
343 |
padding-left: 75px |
|
414 |
padding-left: 75px |
344 |
} |
|
415 |
} |
345 |
|
|
416 |
|
346 |
.c07 { |
|
417 |
.c07 { |
347 |
padding-left: 90px |
|
418 |
padding-left: 90px |
348 |
} |
|
419 |
} |
349 |
|
|
420 |
|
350 |
.c08 { |
|
421 |
.c08 { |
351 |
padding-left: 105px |
|
422 |
padding-left: 105px |
352 |
} |
|
423 |
} |
353 |
|
|
424 |
|
354 |
.c09 { |
|
425 |
.c09 { |
355 |
padding-left: 120px |
|
426 |
padding-left: 120px |
356 |
} |
|
427 |
} |
357 |
|
|
428 |
|
358 |
.c10 { |
|
429 |
.c10 { |
359 |
padding-left: 135px |
|
430 |
padding-left: 135px |
360 |
} |
|
431 |
} |
361 |
|
|
432 |
|
362 |
.c11 { |
|
433 |
.c11 { |
363 |
padding-left: 150px |
|
434 |
padding-left: 150px |
364 |
} |
|
435 |
} |
365 |
|
|
436 |
|
366 |
.c12 { |
|
437 |
.c12 { |
367 |
padding-left: 165px |
|
438 |
padding-left: 165px |
368 |
} |
|
439 |
} |
|
|
|
440 |
|
|
|
-+ |
441 |
/* Cookie Consent Styling */ |
|
|
= |
442 |
|
|
|
-+ |
443 |
.theme_atlas{ |
|
|
|
444 |
--cc-bg: #333333; |
|
|
|
445 |
--cc-text: #fff; |
|
|
|
446 |
--cc-btn-primary-bg: #08415c; |
|
|
|
447 |
--cc-btn-primary-text: #fff; |
|
|
|
448 |
} |
|
|
= |
449 |
|
|
|
-+ |
450 |
.theme_atlas .cc_div a{ |
|
|
|
451 |
color: var(--cc-btn-primary-bg); |
|
|
|
452 |
} |
|
|
= |
453 |
|
|
|
-+ |
454 |
.theme_atlas .cc_div #c-txt{ |
|
|
|
455 |
color: var(--cc-text); |
|
|
|
456 |
} |
|
|
= |
457 |
|
|
|
-+ |
458 |
.theme_atlas .c-bn, .theme_atlas .c-bn:hover { |
|
|
|
459 |
border: 1px solid #79818B; |
|
|
|
460 |
} |
1 |
$(document).ready(function () { |
= |
1 |
$(document).ready(function () { |
2 |
|
|
2 |
|
3 |
|
|
3 |
|
4 |
$('.field-value:empty').closest('.field:not(.showEmptyValue)').hide(); |
|
4 |
$('.field-value:empty').closest('.field:not(.showEmptyValue)').hide(); |
5 |
|
|
5 |
|
6 |
|
|
6 |
|
7 |
$(document).find("[data-toggle='collapse']").each(function() { |
|
7 |
$(document).find("[data-toggle='collapse']").each(function() { |
8 |
var _this = $(this); |
|
8 |
var _this = $(this); |
9 |
|
|
9 |
|
10 |
//If any of this element's targets have the collapse class, then we should use the expand-control class. Otherwise, use the collapse-control class |
|
10 |
//If any of this element's targets have the collapse class, then we should use the expand-control class. Otherwise, use the collapse-control class |
11 |
if ($(_this.data("target")).filter(".collapse").length > 0) { |
|
11 |
if ($(_this.data("target")).filter(".collapse").length > 0) { |
12 |
_this.addClass("collapse-control-expand"); |
|
12 |
_this.addClass("collapse-control-expand"); |
13 |
} else { |
|
13 |
} else { |
14 |
_this.addClass("collapse-control-collapse"); |
|
14 |
_this.addClass("collapse-control-collapse"); |
15 |
} |
|
15 |
} |
16 |
|
|
16 |
|
17 |
_this.click(function() { |
|
17 |
_this.click(function() { |
18 |
$(_this.data("target")).toggle(); |
|
18 |
$(_this.data("target")).toggle(); |
19 |
_this.toggleClass("collapse-control-expand collapse-control-collapse"); |
|
19 |
_this.toggleClass("collapse-control-expand collapse-control-collapse"); |
20 |
}) |
|
20 |
}) |
21 |
}); |
|
21 |
}); |
22 |
|
|
22 |
|
23 |
$('.statusNormal').addClass('alert alert-secondary d-block').attr('role','alert'); |
|
23 |
$('.statusNormal').addClass('alert alert-secondary d-block').attr('role','alert'); |
24 |
$('.statusError').addClass('alert alert-danger d-block').attr('role','alert'); |
|
24 |
$('.statusError').addClass('alert alert-danger d-block').attr('role','alert'); |
25 |
$('.statusInformation').addClass('alert alert-info d-block').attr('role','alert'); |
|
25 |
$('.statusInformation').addClass('alert alert-info d-block').attr('role','alert'); |
26 |
|
|
26 |
|
27 |
$('.validationError').addClass('text-danger'); |
|
27 |
$('.validationError').addClass('text-danger'); |
28 |
|
|
28 |
|
29 |
|
|
29 |
|
30 |
|
|
30 |
|
31 |
$('[data-iso8601], [data-formatOnly]').each(function(index) { |
|
31 |
$('[data-iso8601], [data-formatOnly]').each(function(index) { |
32 |
$time = $(this).attr('data-iso8601'); |
|
32 |
$time = $(this).attr('data-iso8601'); |
33 |
|
|
33 |
|
34 |
|
|
34 |
|
35 |
|
|
35 |
|
36 |
let serverTime = false; |
|
36 |
let serverTime = false; |
37 |
if ($(this).attr('data-servertime') != undefined) { |
|
37 |
if ($(this).attr('data-servertime') != undefined) { |
38 |
serverTime = moment($(this).attr('data-servertime'), 'MM/DD/YYYY hh:mm:ss a'); |
|
38 |
serverTime = moment($(this).attr('data-servertime'), 'MM/DD/YYYY hh:mm:ss a'); |
39 |
}; |
|
39 |
}; |
40 |
|
|
40 |
|
41 |
let formatString = 'LLL'; |
|
41 |
let formatString = 'LLL'; |
42 |
if ($(this).attr('data-formatString') != undefined) { |
|
42 |
if ($(this).attr('data-formatString') != undefined) { |
43 |
formatString = $(this).attr('data-formatString') || formatString; |
|
43 |
formatString = $(this).attr('data-formatString') || formatString; |
44 |
} |
|
44 |
} |
45 |
|
|
45 |
|
46 |
let utcTime = false; |
|
46 |
let utcTime = false; |
47 |
let localTime = false; |
|
47 |
let localTime = false; |
48 |
if ($time != undefined) { |
|
48 |
if ($time != undefined) { |
49 |
utcTime = moment.utc($time); |
|
49 |
utcTime = moment.utc($time); |
50 |
localTime = moment(utcTime).local(); |
|
50 |
localTime = moment(utcTime).local(); |
51 |
} |
|
51 |
} |
52 |
|
|
52 |
|
53 |
|
|
53 |
|
54 |
//If a specific element should show the full time regardless, the element should include |
|
54 |
//If a specific element should show the full time regardless, the element should include |
55 |
|
|
55 |
|
56 |
let showDateOnly = true; |
|
56 |
let showDateOnly = true; |
57 |
if ($(this).attr('data-dateOnly') != undefined) { |
|
57 |
if ($(this).attr('data-dateOnly') != undefined) { |
58 |
showDateOnly = $(this).attr('data-dateOnly') === "true"; |
|
58 |
showDateOnly = $(this).attr('data-dateOnly') === "true"; |
59 |
} |
|
59 |
} |
60 |
|
|
60 |
|
61 |
|
|
61 |
|
62 |
|
|
62 |
|
63 |
if (showDateOnly && formatString === 'LLL' && localTime && ((localTime.hour() == 0 && localTime.minute() == 0 && localTime.second() == 0) || |
|
63 |
if (showDateOnly && formatString === 'LLL' && localTime && ((localTime.hour() == 0 && localTime.minute() == 0 && localTime.second() == 0) || |
64 |
(serverTime != false && serverTime.hour() == 0 && serverTime.minute() == 0 && serverTime.second() == 0))) |
|
64 |
(serverTime != false && serverTime.hour() == 0 && serverTime.minute() == 0 && serverTime.second() == 0))) |
65 |
{ |
|
65 |
{ |
66 |
formatString = 'LL'; |
|
66 |
formatString = 'LL'; |
67 |
} |
|
67 |
} |
68 |
|
|
68 |
|
69 |
if (($(this).attr('data-formatOnly') != undefined) && $(this).attr('data-formatOnly') === 'true') { |
|
69 |
if (($(this).attr('data-formatOnly') != undefined) && $(this).attr('data-formatOnly') === 'true') { |
70 |
$(this).html(serverTime.format(formatString)); |
|
70 |
$(this).html(serverTime.format(formatString)); |
71 |
} else { |
|
71 |
} else { |
72 |
$(this).html(localTime.format(formatString)); |
|
72 |
$(this).html(localTime.format(formatString)); |
73 |
} |
|
73 |
} |
74 |
}); |
|
74 |
}); |
75 |
|
|
75 |
|
76 |
|
|
76 |
|
77 |
|
|
77 |
|
78 |
//e.g. <input checked name="SearchType" type="radio" id="SearchTypeActive" value="Active" data-persisted-value="<#PARAM name='SearchType'>"></input> |
|
78 |
//e.g. <input checked name="SearchType" type="radio" id="SearchTypeActive" value="Active" data-persisted-value="<#PARAM name='SearchType'>"></input> |
79 |
$("select[data-persisted-value]").each(function(idx, el) { SelectPersistedValue(el) }); |
|
79 |
$("select[data-persisted-value]").each(function(idx, el) { SelectPersistedValue(el) }); |
80 |
$("input[type=radio][data-persisted-value],input[type=checkbox][data-persisted-value]").each(function(idx, el) { SelectPersistedValue(el) }); |
|
80 |
$("input[type=radio][data-persisted-value],input[type=checkbox][data-persisted-value]").each(function(idx, el) { SelectPersistedValue(el) }); |
81 |
|
|
81 |
|
82 |
$("select[data-persistedValue]").each(function(idx, el) { SelectPersistedValue(el, $(el).attr('data-persistedValue')) }); |
|
82 |
$("select[data-persistedValue]").each(function(idx, el) { SelectPersistedValue(el, $(el).attr('data-persistedValue')) }); |
83 |
|
|
83 |
|
84 |
|
|
|
|
85 |
$('[data-toggle="tooltip"]').tooltip({ |
+- |
|
|
86 |
|
= |
|
|
87 |
//If title is not provided, we provide an alternate option here to |
+- |
|
|
88 |
|
= |
|
|
89 |
title: function() { |
+- |
|
|
90 |
var helpAttribute = $(this).attr('data-titleElement'); |
|
|
|
91 |
if ((helpAttribute != null) && ($(helpAttribute).length > 0)) |
|
|
|
92 |
{ |
|
|
|
93 |
return $(helpAttribute).text().trim(); |
|
|
|
94 |
} |
|
|
|
95 |
} |
|
|
|
96 |
}); |
|
|
|
97 |
|
= |
|
|
98 |
$('button.checkAll').click(function (event) { |
|
84 |
$('button.checkAll').click(function (event) { |
99 |
event.preventDefault(); |
|
85 |
event.preventDefault(); |
100 |
|
|
86 |
|
101 |
$('#' + $(this).attr('data-form') + ' input:checkbox').prop('checked', true); |
|
87 |
$('#' + $(this).attr('data-form') + ' input:checkbox').prop('checked', true); |
102 |
}); |
|
88 |
}); |
103 |
$('button.checkNone').click(function (event) { |
|
89 |
$('button.checkNone').click(function (event) { |
104 |
event.preventDefault(); |
|
90 |
event.preventDefault(); |
105 |
|
|
91 |
|
106 |
$('#' + $(this).attr('data-form') + ' input:checkbox').prop('checked', false); |
|
92 |
$('#' + $(this).attr('data-form') + ' input:checkbox').prop('checked', false); |
107 |
}); |
|
93 |
}); |
108 |
|
|
94 |
|
109 |
HandleBoolCheckboxes(); |
|
95 |
HandleBoolCheckboxes(); |
110 |
HandleDisableSubmitOnSubmit(); |
|
96 |
HandleDisableSubmitOnSubmit(); |
111 |
HandleOtherCheckboxes(); |
|
97 |
HandleOtherCheckboxes(); |
112 |
HandleOtherDropdowns(); |
|
98 |
HandleOtherDropdowns(); |
113 |
DisableEmptyActionMenus(); |
|
99 |
DisableEmptyActionMenus(); |
114 |
|
|
100 |
|
115 |
//Used for any elements that should trigger a datePicker to be focused and opened |
|
101 |
//Used for any elements that should trigger a datePicker to be focused and opened |
116 |
$('[data-triggerDatePicker]').click(function (event) { |
|
102 |
$('[data-triggerDatePicker]').click(function (event) { |
117 |
event.preventDefault(); |
|
103 |
event.preventDefault(); |
118 |
var datePickerElement = $(this).attr('data-triggerDatePicker'); |
|
104 |
var datePickerElement = $(this).attr('data-triggerDatePicker'); |
119 |
if ($(datePickerElement) != null) { |
|
105 |
if ($(datePickerElement) != null) { |
120 |
$(datePickerElement).focus(); |
|
106 |
$(datePickerElement).focus(); |
121 |
} |
|
107 |
} |
122 |
}); |
|
108 |
}); |
123 |
}); |
|
109 |
}); |
124 |
|
|
110 |
|
125 |
function SelectPersistedValue(el, persistedValue) { |
|
111 |
function SelectPersistedValue(el, persistedValue) { |
126 |
var formType = $(el).prop("type").toLowerCase(); |
|
112 |
var formType = $(el).prop("type").toLowerCase(); |
127 |
|
|
113 |
|
128 |
if (persistedValue === null || persistedValue === undefined || persistedValue === "") { |
|
114 |
if (persistedValue === null || persistedValue === undefined || persistedValue === "") { |
129 |
persistedValue = $(el).attr("data-persisted-value"); |
|
115 |
persistedValue = $(el).attr("data-persisted-value"); |
130 |
} |
|
116 |
} |
131 |
|
|
117 |
|
132 |
//If a persisted value is set and is a SELECT element |
|
118 |
//If a persisted value is set and is a SELECT element |
133 |
if ((persistedValue) && |
|
119 |
if ((persistedValue) && |
134 |
((formType == "select-one") || (formType == "select-multiple"))) { |
|
120 |
((formType == "select-one") || (formType == "select-multiple"))) { |
135 |
$(el).find("option[value='" + persistedValue.replace("'","\\'") + "']").attr("selected", true); |
|
121 |
$(el).find("option[value='" + persistedValue.replace("'","\\'") + "']").attr("selected", true); |
136 |
} |
|
122 |
} |
137 |
else if ((formType == "radio") || (formType == "checkbox")) { |
|
123 |
else if ((formType == "radio") || (formType == "checkbox")) { |
138 |
var isChecked = $(this).val() == persistedValue; |
|
124 |
var isChecked = $(this).val() == persistedValue; |
139 |
|
|
125 |
|
140 |
|
|
126 |
|
141 |
if (isChecked || (formType == "checkbox")) { |
|
127 |
if (isChecked || (formType == "checkbox")) { |
142 |
$(el).prop("checked", isChecked); |
|
128 |
$(el).prop("checked", isChecked); |
143 |
} |
|
129 |
} |
144 |
} |
|
130 |
} |
145 |
} |
|
131 |
} |
146 |
|
|
132 |
|
147 |
function HandleDisableSubmitOnSubmit() { |
|
133 |
function HandleDisableSubmitOnSubmit() { |
148 |
$("form").submit(function(event) { |
|
134 |
$("form").submit(function(event) { |
149 |
var form = $(this); |
|
135 |
var form = $(this); |
150 |
var submitButtons = form.find("button[name='SubmitButton'][type='submit']:not([data-button-nodisable])"); |
|
136 |
var submitButtons = form.find("button[name='SubmitButton'][type='submit']:not([data-button-nodisable])"); |
151 |
if (submitButtons.length == 0) |
|
137 |
if (submitButtons.length == 0) |
152 |
return; |
|
138 |
return; |
153 |
|
|
139 |
|
154 |
if (event.originalEvent != undefined) { |
|
140 |
if (event.originalEvent != undefined) { |
155 |
var submitButtonValue = event.originalEvent.submitter.value; |
|
141 |
var submitButtonValue = event.originalEvent.submitter.value; |
156 |
$(this).append(`<input type="hidden" name="SubmitButton" value="${submitButtonValue}">`); |
|
142 |
$(this).append(`<input type="hidden" name="SubmitButton" value="${submitButtonValue}">`); |
157 |
} |
|
143 |
} |
158 |
submitButtons.prop("disabled", true); |
|
144 |
submitButtons.prop("disabled", true); |
159 |
}); |
|
145 |
}); |
160 |
} |
|
146 |
} |
161 |
|
|
147 |
|
162 |
function ToggleCheckBoxes(formName, check) { |
|
148 |
function ToggleCheckBoxes(formName, check) { |
163 |
form = document.forms[formName]; |
|
149 |
form = document.forms[formName]; |
164 |
|
|
150 |
|
165 |
if(!form) |
|
151 |
if(!form) |
166 |
return; |
|
152 |
return; |
167 |
|
|
153 |
|
168 |
for (var i=0;i<form.elements.length;i++) { |
|
154 |
for (var i=0;i<form.elements.length;i++) { |
169 |
var e = form.elements[i]; |
|
155 |
var e = form.elements[i]; |
170 |
if ((e.type=='checkbox') && (!e.disabled)) { |
|
156 |
if ((e.type=='checkbox') && (!e.disabled)) { |
171 |
|
|
157 |
|
172 |
e.checked = check; |
|
158 |
e.checked = check; |
173 |
} |
|
159 |
} |
174 |
} |
|
160 |
} |
175 |
} |
|
161 |
} |
176 |
|
|
162 |
|
177 |
function InitializeSiteDefault(siteDefault) { |
|
163 |
function InitializeSiteDefault(siteDefault) { |
178 |
if (siteDefault) { |
|
164 |
if (siteDefault) { |
179 |
$(document).ready(function () { |
|
165 |
$(document).ready(function () { |
180 |
$("select[name='Site']").find("option[value != '" + siteDefault + "']").remove().val(siteDefault); |
|
166 |
$("select[name='Site']").find("option[value != '" + siteDefault + "']").remove().val(siteDefault); |
181 |
}); |
|
167 |
}); |
182 |
} |
|
168 |
} |
183 |
} |
|
169 |
} |
184 |
|
|
170 |
|
185 |
//Usage Instructions |
|
171 |
//Usage Instructions |
186 |
|
|
172 |
|
187 |
|
|
173 |
|
188 |
function HandleBoolCheckboxes() { |
|
174 |
function HandleBoolCheckboxes() { |
189 |
$('.checkbox-as-bool').each(function(i, e) { |
|
175 |
$('.checkbox-as-bool').each(function(i, e) { |
190 |
var checkboxInput = $(e); |
|
176 |
var checkboxInput = $(e); |
191 |
|
|
177 |
|
192 |
if (!checkboxInput) return; |
|
178 |
if (!checkboxInput) return; |
193 |
var hiddenInputName = checkboxInput.attr('data-bool-fieldname'); |
|
179 |
var hiddenInputName = checkboxInput.attr('data-bool-fieldname'); |
194 |
|
|
180 |
|
195 |
if (!hiddenInputName) return; |
|
181 |
if (!hiddenInputName) return; |
196 |
if (!$("input[name='" + hiddenInputName + "']").length){ |
|
182 |
if (!$("input[name='" + hiddenInputName + "']").length){ |
197 |
checkboxInput.before("<input type='hidden' name='" + hiddenInputName + "' value=0>"); |
|
183 |
checkboxInput.before("<input type='hidden' name='" + hiddenInputName + "' value=0>"); |
198 |
} |
|
184 |
} |
199 |
var hiddenInput = $("input[name='" + hiddenInputName + "']"); |
|
185 |
var hiddenInput = $("input[name='" + hiddenInputName + "']"); |
200 |
|
|
186 |
|
201 |
if (!hiddenInput) return; |
|
187 |
if (!hiddenInput) return; |
202 |
checkboxInput.click(function() { |
|
188 |
checkboxInput.click(function() { |
203 |
if (checkboxInput.prop('checked')) { |
|
189 |
if (checkboxInput.prop('checked')) { |
204 |
hiddenInput.val(1); |
|
190 |
hiddenInput.val(1); |
205 |
} else { |
|
191 |
} else { |
206 |
hiddenInput.val(0); |
|
192 |
hiddenInput.val(0); |
207 |
} |
|
193 |
} |
208 |
}); |
|
194 |
}); |
209 |
}); |
|
195 |
}); |
210 |
} |
|
196 |
} |
211 |
|
|
197 |
|
212 |
function HandleOtherCheckboxes() { |
|
198 |
function HandleOtherCheckboxes() { |
213 |
|
|
199 |
|
214 |
$('.checkbox-with-other').each(function(i, e) { |
|
200 |
$('.checkbox-with-other').each(function(i, e) { |
215 |
var hiddenInputId = $(e).attr('data-hidden-field'); |
|
201 |
var hiddenInputId = $(e).attr('data-hidden-field'); |
216 |
var hiddenInput = $("#" + hiddenInputId); |
<> |
202 |
var hiddenInput = document.getElementById(hiddenInputId); |
217 |
var delimiter = $(e).attr('data-delimiter'); |
= |
203 |
var delimiter = $(e).attr('data-delimiter'); |
218 |
var otherFieldId = $(e).attr('data-other-field'); |
|
204 |
var otherFieldId = $(e).attr('data-other-field'); |
219 |
var otherField = $("#" + otherFieldId); |
<> |
205 |
var otherField = document.getElementById(otherFieldId); |
220 |
var values = $(hiddenInput).val().split(delimiter); |
= |
206 |
var values = $(hiddenInput).val().split(delimiter); |
221 |
|
|
207 |
|
222 |
|
|
208 |
|
223 |
$(e).find('input[type="checkbox"]').each(function(ie, check) { |
|
209 |
$(e).find('input[type="checkbox"]').each(function(ie, check) { |
224 |
|
|
210 |
|
225 |
$(check).change(function() { |
|
211 |
$(check).change(function() { |
226 |
if ($(check).is(':checked')) { |
|
212 |
if ($(check).is(':checked')) { |
227 |
|
|
213 |
|
228 |
values = $(hiddenInput).val().split(delimiter); |
|
214 |
values = $(hiddenInput).val().split(delimiter); |
229 |
values.push($(check).val()); |
|
215 |
values.push($(check).val()); |
230 |
} |
|
216 |
} |
231 |
else { |
|
217 |
else { |
232 |
|
|
218 |
|
233 |
values = $(hiddenInput).val().split(delimiter); |
|
219 |
values = $(hiddenInput).val().split(delimiter); |
234 |
var removeIndex = values.indexOf($(check).val()); |
|
220 |
var removeIndex = values.indexOf($(check).val()); |
235 |
if (removeIndex > -1) { |
|
221 |
if (removeIndex > -1) { |
236 |
values.splice(removeIndex, 1); |
|
222 |
values.splice(removeIndex, 1); |
237 |
} |
|
223 |
} |
238 |
} |
|
224 |
} |
239 |
//Update the hidden input again after checking or unchecking |
|
225 |
//Update the hidden input again after checking or unchecking |
240 |
$(hiddenInput).val(values.join(delimiter)); |
|
226 |
$(hiddenInput).val(values.join(delimiter)); |
241 |
}); |
|
227 |
}); |
242 |
|
|
228 |
|
243 |
if (values.indexOf($(check).val()) != -1) { |
|
229 |
if (values.indexOf($(check).val()) != -1) { |
244 |
$(check).prop('checked', true); |
|
230 |
$(check).prop('checked', true); |
245 |
} |
|
231 |
} |
246 |
}); |
|
232 |
}); |
247 |
|
|
233 |
|
248 |
//Get all of the checked checkboxes |
|
234 |
//Get all of the checked checkboxes |
249 |
var comma_separated_list = $(e).find('input[type="checkbox"]:checked').map(function() { |
|
235 |
var comma_separated_list = $(e).find('input[type="checkbox"]:checked').map(function() { |
250 |
return $(this).val(); |
|
236 |
return $(this).val(); |
251 |
}).get().join(delimiter); |
|
237 |
}).get().join(delimiter); |
252 |
//Get the difference to determine what's in the other textbox |
|
238 |
//Get the difference to determine what's in the other textbox |
253 |
var difference = values.filter(x => !comma_separated_list.includes(x)); |
|
239 |
var difference = values.filter(x => !comma_separated_list.includes(x)); |
254 |
|
|
240 |
|
255 |
$(otherField).val(difference); |
|
241 |
$(otherField).val(difference); |
256 |
|
|
242 |
|
257 |
|
|
243 |
|
258 |
$(otherField).on('input propertychange paste', function() { |
|
244 |
$(otherField).on('input propertychange paste', function() { |
259 |
|
|
245 |
|
260 |
//Get all of the checked boxes as a delimited string |
|
246 |
//Get all of the checked boxes as a delimited string |
261 |
var currentCheckedValuesString = $(e).find('input[type="checkbox"]:checked').map(function() { |
|
247 |
var currentCheckedValuesString = $(e).find('input[type="checkbox"]:checked').map(function() { |
262 |
return $(this).val(); |
|
248 |
return $(this).val(); |
263 |
}).get().join(delimiter); |
|
249 |
}).get().join(delimiter); |
264 |
|
|
250 |
|
265 |
|
|
251 |
|
266 |
var currentCheckedValues = []; |
|
252 |
var currentCheckedValues = []; |
267 |
if (currentCheckedValuesString != '') { |
|
253 |
if (currentCheckedValuesString != '') { |
268 |
currentCheckedValues = currentCheckedValues.concat(currentCheckedValuesString.split(delimiter)); |
|
254 |
currentCheckedValues = currentCheckedValues.concat(currentCheckedValuesString.split(delimiter)); |
269 |
} |
|
255 |
} |
270 |
|
|
256 |
|
271 |
currentCheckedValues.push($(otherField).val()); |
|
257 |
currentCheckedValues.push($(otherField).val()); |
272 |
|
|
258 |
|
273 |
$(hiddenInput).val(currentCheckedValues.join(delimiter)); |
|
259 |
$(hiddenInput).val(currentCheckedValues.join(delimiter)); |
274 |
}); |
|
260 |
}); |
275 |
|
|
261 |
|
276 |
}); |
|
262 |
}); |
277 |
} |
|
263 |
} |
278 |
|
|
264 |
|
279 |
|
|
265 |
|
280 |
|
|
266 |
|
281 |
|
|
267 |
|
282 |
|
|
268 |
|
283 |
|
|
269 |
|
284 |
|
|
270 |
|
285 |
function HandleOtherDropdowns() { |
|
271 |
function HandleOtherDropdowns() { |
286 |
$("select.dropdown-with-other").each(function() { |
|
272 |
$("select.dropdown-with-other").each(function() { |
287 |
|
|
273 |
|
288 |
$(this).change(function() { |
|
274 |
$(this).change(function() { |
289 |
let input = $("input[data-field-name='"+ $(this).attr("data-field-name") +"']"); |
|
275 |
let input = $("input[data-field-name='"+ $(this).attr("data-field-name") +"']"); |
290 |
|
|
276 |
|
291 |
if (this.value == $(this).attr("data-other-value")) { |
|
277 |
if (this.value == $(this).attr("data-other-value")) { |
292 |
input.closest(".form-group").show(); |
|
278 |
input.closest(".form-group").show(); |
293 |
$(input).val(null); |
|
279 |
$(input).val(null); |
294 |
input.focus(); |
|
280 |
input.focus(); |
295 |
} |
|
281 |
} |
296 |
|
|
282 |
|
297 |
else { |
|
283 |
else { |
298 |
$(input).val(this.value); |
|
284 |
$(input).val(this.value); |
299 |
input.closest(".form-group").hide(); |
|
285 |
input.closest(".form-group").hide(); |
300 |
} |
|
286 |
} |
301 |
}); |
|
287 |
}); |
302 |
|
|
288 |
|
303 |
|
|
289 |
|
304 |
let input = $("input[data-field-name='"+ $(this).attr("data-field-name") +"']"); |
|
290 |
let input = $("input[data-field-name='"+ $(this).attr("data-field-name") +"']"); |
305 |
|
|
291 |
|
306 |
|
|
292 |
|
307 |
if (input.val() != null) { |
|
293 |
if (input.val() != null) { |
308 |
if ($(this).find("option[value='" + input.val() + "']").length > 0) { |
|
294 |
if ($(this).find("option[value='" + input.val() + "']").length > 0) { |
309 |
$(this).val(input.val()); |
|
295 |
$(this).val(input.val()); |
310 |
$(this).trigger("change"); |
|
296 |
$(this).trigger("change"); |
311 |
} |
|
297 |
} |
312 |
|
|
298 |
|
313 |
else { |
|
299 |
else { |
314 |
$(this).val($(this).attr("data-other-value")); |
|
300 |
$(this).val($(this).attr("data-other-value")); |
315 |
} |
|
301 |
} |
316 |
|
|
302 |
|
317 |
} else { |
|
303 |
} else { |
318 |
$(this).trigger("change"); |
|
304 |
$(this).trigger("change"); |
319 |
} |
|
305 |
} |
320 |
}) |
|
306 |
}) |
321 |
} |
|
307 |
} |
322 |
|
|
308 |
|
323 |
function DisableEmptyActionMenus() { |
|
309 |
function DisableEmptyActionMenus() { |
324 |
var menus = $(".dropdown-menu"); |
|
310 |
var menus = $(".dropdown-menu"); |
325 |
var buttons = $(".dropdown-toggle") |
|
311 |
var buttons = $(".dropdown-toggle") |
326 |
menus.each(function(i) { |
|
312 |
menus.each(function(i) { |
327 |
var menu = $(menus[i]); |
|
313 |
var menu = $(menus[i]); |
328 |
var disabledOptions = 0; |
|
314 |
var disabledOptions = 0; |
329 |
var options = menu.children(".dropdown-item"); |
|
315 |
var options = menu.children(".dropdown-item"); |
330 |
options.each(function(j) { |
|
316 |
options.each(function(j) { |
331 |
var option = $(options[j]); |
|
317 |
var option = $(options[j]); |
332 |
if ((option.hasClass("d-none")) || (option.disabled)) { |
|
318 |
if ((option.hasClass("d-none")) || (option.disabled)) { |
333 |
disabledOptions++; |
|
319 |
disabledOptions++; |
334 |
} |
|
320 |
} |
335 |
}); |
|
321 |
}); |
336 |
|
|
322 |
|
337 |
if (disabledOptions == options.length) { |
|
323 |
if (disabledOptions == options.length) { |
338 |
let message = menu.attr("data-noaction-message"); |
|
324 |
let message = menu.attr("data-noaction-message"); |
339 |
$(buttons[i]).addClass("disabled"); |
|
325 |
$(buttons[i]).addClass("disabled"); |
340 |
$(buttons[i]).prop("title", message??"You are not able to perform any actions for this item. Please contact staff for assistance."); |
|
326 |
$(buttons[i]).prop("title", message??"You are not able to perform any actions for this item. Please contact staff for assistance."); |
341 |
} |
|
327 |
} |
342 |
}); |
|
328 |
}); |
343 |
} |
|
329 |
} |
|
|
= |
1 |
|
|
|
|
2 |
|
|
|
|
3 |
|
|
|
|
4 |
|
|
|
|
5 |
|
|
|
|
6 |
|
1 |
!function(e){if(!e.hasInitialised){var t={escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(e,t){var i=" ";return 1===e.nodeType&&(i+e.className+i).replace(/[\n\t]/g,i).indexOf(i+t+i)>=0},addClass:function(e,t){e.className+=" "+t},removeClass:function(e,t){var i=new RegExp("\\b"+this.escapeRegExp(t)+"\\b");e.className=e.className.replace(i,"")},interpolateString:function(e,t){return e.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(e){return t(arguments[1])||""})},getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"=");return t.length<2?void 0:t.pop().split(";").shift()},setCookie:function(e,t,i,n,o,s){var r=new Date;r.setHours(r.getHours()+24*(i||365));var a=[e+"="+t,"expires="+r.toUTCString(),"path="+(o||"/")];n&&a.push("domain="+n),s&&a.push("secure"),document.cookie=a.join(";")},deepExtend:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(i in e&&this.isPlainObject(e[i])&&this.isPlainObject(t[i])?this.deepExtend(e[i],t[i]):e[i]=t[i]);return e},throttle:function(e,t){var i=!1;return function(){i||(e.apply(this,arguments),i=!0,setTimeout(function(){i=!1},t))}},hash:function(e){var t,i,n=0;if(0===e.length)return n;for(t=0,i=e.length;t<i;++t)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},normaliseHex:function(e){return"#"==e[0]&&(e=e.substr(1)),3==e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e},getContrast:function(e){return e=this.normaliseHex(e),(299*parseInt(e.substr(0,2),16)+587*parseInt(e.substr(2,2),16)+114*parseInt(e.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(e){var t=parseInt(this.normaliseHex(e),16),i=38+(t>>16),n=38+(t>>8&255),o=38+(255&t);return"#"+(16777216+65536*(i<255?i<1?0:i:255)+256*(n<255?n<1?0:n:255)+(o<255?o<1?0:o:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(e){return"object"==typeof e&&null!==e&&e.constructor==Object},traverseDOMPath:function(e,i){return e&&e.parentNode?t.hasClass(e,i)?e:this.traverseDOMPath(e.parentNode,i):null}};e.status={deny:"deny",allow:"allow",dismiss:"dismiss"},e.transitionEnd=function(){var e=document.createElement("div"),t={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var i in t)if(t.hasOwnProperty(i)&&void 0!==e.style[i+"ransition"])return t[i];return""}(),e.hasTransition=!!e.transitionEnd;var i=Object.keys(e.status).map(t.escapeRegExp);e.customStyles={},e.Popup=function(){var n={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(e){},onStatusChange:function(e,t){},onRevokeChoice:function(){},onNoCookieLaw:function(e,t){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span> ',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{ |
<> |
7 |
!function(){"use strict";var e="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[e]&&(window[e]=function(e){var t,n,o,i,a,c,r,s,l,d,u,p,f,g,h,_,v,m,b,y,k,C,A,w,S,x,N,T,O,L,E,j,I={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,page_scripts:!0,hide_from_bots:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:window.location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},M={},D={},H=null,G=!0,J=!1,U=!1,P=!1,q=!1,F=!1,R=!0,z=[],K=!1,B=[],V=[],Q=[],W=!1,X=[],Y=[],Z=[],$=[],ee=[],te=document.documentElement,ne=function(e){le("CookieConsent [CONFIG]: received_config_settings ",t=e),"number"==typeof t.cookie_expiration&&(I.cookie_expiration=t.cookie_expiration),"number"==typeof t.cookie_necessary_only_expiration&&(I.cookie_necessary_only_expiration=t.cookie_necessary_only_expiration),"boolean"==typeof t.autorun&&(I.autorun=t.autorun),"string"==typeof t.cookie_domain&&(I.cookie_domain=t.cookie_domain),"string"==typeof t.cookie_same_site&&(I.cookie_same_site=t.cookie_same_site),"string"==typeof t.cookie_path&&(I.cookie_path=t.cookie_path),"string"==typeof t.cookie_name&&(I.cookie_name=t.cookie_name),"function"==typeof t.onAccept&&(s=t.onAccept),"function"==typeof t.onFirstAction&&(d=t.onFirstAction),"function"==typeof t.onChange&&(l=t.onChange),"opt-out"===t.mode&&(I.mode="opt-out"),"number"==typeof t.revision&&(t.revision>-1&&(I.revision=t.revision),F=!0),"boolean"==typeof t.autoclear_cookies&&(I.autoclear_cookies=t.autoclear_cookies),!0===t.use_rfc_cookie&&(I.use_rfc_cookie=!0),"boolean"==typeof t.hide_from_bots&&(I.hide_from_bots=t.hide_from_bots),I.hide_from_bots&&(W=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),I.page_scripts=!0===t.page_scripts,"browser"===t.auto_language||!0===t.auto_language?I.auto_language="browser":"document"===t.auto_language&&(I.auto_language="document"),le("CookieConsent [LANG]: auto_language strategy is '"+I.auto_language+"'"),I.current_lang=pe(t.languages,t.current_lang)},oe=function(e){for(var t="accept-",n=r("c-settings"),o=r(t+"all"),i=r(t+"necessary"),a=r(t+"custom"),c=0;c<n.length;c++)n[c].setAttribute("aria-haspopup","dialog"),ye(n[c],"click",(function(e){e.preventDefault(),M.showSettings(0)}));for(c=0;c<o.length;c++)ye(o[c],"click",(function(e){s(e,"all")}));for(c=0;c<a.length;c++)ye(a[c],"click",(function(e){s(e)}));for(c=0;c<i.length;c++)ye(i[c],"click",(function(e){s(e,[])}));function r(t){return(e||document).querySelectorAll('a[data-cc="'+t+'"], button[data-cc="'+t+'"]')}function s(e,t){e.preventDefault(),M.accept(t),M.hideSettings(),M.hide()}},ie=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)?e:ke(t).length>0?Object.prototype.hasOwnProperty.call(t,I.current_lang)?I.current_lang:ke(t)[0]:void 0},ae=function(e){if(!0===t.force_consent&&Ce(te,"force--consent"),!_){_=de("div");var n=de("div"),o=de("div");_.id="cm",n.id="c-inr-i",o.id="cm-ov",_.setAttribute("role","dialog"),_.setAttribute("aria-modal","true"),_.setAttribute("aria-hidden","false"),_.setAttribute("aria-labelledby","c-ttl"),_.setAttribute("aria-describedby","c-txt"),h.appendChild(_),h.appendChild(o),_.style.visibility=o.style.visibility="hidden",o.style.opacity=0}var i=t.languages[e].consent_modal.title;i&&(v||((v=de("div")).id="c-ttl",v.setAttribute("role","heading"),v.setAttribute("aria-level","2"),n.appendChild(v)),v.innerHTML=i);var a=t.languages[e].consent_modal.description;F&&(a=R?a.replace("{{revision_message}}",""):a.replace("{{revision_message}}",t.languages[e].consent_modal.revision_message||"")),m||((m=de("div")).id="c-txt",n.appendChild(m)),m.innerHTML=a;var c,r=t.languages[e].consent_modal.primary_btn,s=t.languages[e].consent_modal.secondary_btn;r&&(b||((b=de("button")).id="c-p-bn",b.className="c-bn","accept_all"===r.role&&(c="all"),ye(b,"click",(function(){M.hide(),le("CookieConsent [ACCEPT]: cookie_consent was accepted!"),M.accept(c)}))),b.innerHTML=t.languages[e].consent_modal.primary_btn.tex |
2 |
close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function o(){this.initialise.apply(this,arguments)}function s(e){this.openingTimeout=null,t.removeClass(e,"cc-invisible")}function r(t){t.style.display="none",t.removeEventListener(e.transitionEnd,this.afterTransition),this.afterTransition=null}function a(){var e=this.options.position.split("-"),t=[];return e.forEach(function(e){t.push("cc-"+e)}),t}function c(n){var o=this.options,s=document.createElement("div"),r=o.container&&1===o.container.nodeType?o.container:document.body;s.innerHTML=n;var a=s.children[0];return a.style.display="none",t.hasClass(a,"cc-window")&&e.hasTransition&&t.addClass(a,"cc-invisible"),this.onButtonClick=function(n){var o=t.traverseDOMPath(n.target,"cc-btn")||n.target;if(t.hasClass(o,"cc-btn")){var s=o.className.match(new RegExp("\\bcc-("+i.join("|")+")\\b")),r=s&&s[1]||!1;r&&(this.setStatus(r),this.close(!0))}t.hasClass(o,"cc-close")&&(this.setStatus(e.status.dismiss),this.close(!0));t.hasClass(o,"cc-revoke")&&this.revokeChoice()}.bind(this),a.addEventListener("click",this.onButtonClick),o.autoAttach&&(r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a)),a}function l(e){return"000000"==(e=t.normaliseHex(e))?"#222":t.getLuminance(e)}function u(e,t){for(var i=0,n=e.length;i<n;++i){var o=e[i];if(o instanceof RegExp&&o.test(t)||"string"==typeof o&&o.length&&o===t)return!0}return!1}return o.prototype.initialise=function(i){this.options&&this.destroy(),t.deepExtend(this.options={},n),t.isPlainObject(i)&&t.deepExtend(this.options,i),function(){var t=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return t(e.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return t(e.status.allow),!0;var i=Object.keys(e.status),n=this.getStatus(),o=i.indexOf(n)>=0;o&&t(n);return o}.call(this)&&(this.options.enabled=!1),u(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),u(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var o=this.options.window.replace("{{classes}}",function(){var i=this.options,n="top"==i.position||"bottom"==i.position?"banner":"floating";t.isMobile()&&(n="floating");var o=["cc-"+n,"cc-type-"+i.type,"cc-theme-"+i.theme];i.static&&o.push("cc-static");o.push.apply(o,a.call(this));(function(i){var n=t.hash(JSON.stringify(i)),o="cc-color-override-"+n,s=t.isPlainObject(i);this.customStyleSelector=s?o:null,s&&function(i,n,o){if(e.customStyles[i])return void++e.customStyles[i].references;var s={},r=n.popup,a=n.button,c=n.highlight;r&&(r.text=r.text?r.text:t.getContrast(r.background),r.link=r.link?r.link:r.text,s[o+".cc-window"]=["color: "+r.text,"background-color: "+r.background],s[o+".cc-revoke"]=["color: "+r.text,"background-color: "+r.background],s[o+" .cc-link,"+o+" .cc-link:active,"+o+" .cc-link:visited"]=["color: "+r.link],a&&(a.text=a.text?a.text:t.getContrast(a.background),a.border=a.border?a.border:"transparent",s[o+" .cc-btn"]=["color: "+a.text,"border-color: "+a.border,"background-color: "+a.background],a.padding&&s[o+" .cc-btn"].push("padding: "+a.padding),"transparent"!=a.background&&(s[o+" .cc-btn:hover, "+o+" .cc-btn:focus"]=["backgro |
|
8 |
t);s&&(y||((y=de("button")).id="c-s-bn",y.className="c-bn c_link","accept_necessary"===s.role?ye(y,"click",(function(){M.hide(),M.accept([])})):ye(y,"click",(function(){M.showSettings(0)}))),y.innerHTML=t.languages[e].consent_modal.secondary_btn.text);var l=t.gui_options;C||((C=de("div")).id="c-inr",C.appendChild(n)),k||((k=de("div")).id="c-bns",l&&l.consent_modal&&!0===l.consent_modal.swap_buttons?(s&&k.appendChild(y),r&&k.appendChild(b),k.className="swap"):(r&&k.appendChild(b),s&&k.appendChild(y)),(r||s)&&C.appendChild(k),_.appendChild(C)),J=!0},ce=function(e){if(A)(T=de("div")).id="s-bl";else{A=de("div");var n=de("div"),o=de("div"),i=de("div");w=de("div"),S=de("div");var a=de("div");x=de("button");var s=de("div");N=de("div");var l=de("div");A.id="s-cnt",n.id="c-vln",i.id="c-s-in",o.id="cs",S.id="s-ttl",w.id="s-inr",a.id="s-hdr",N.id="s-bl",x.id="s-c-bn",l.id="cs-ov",s.id="s-c-bnc",x.className="c-bn",A.setAttribute("role","dialog"),A.setAttribute("aria-modal","true"),A.setAttribute("aria-hidden","true"),A.setAttribute("aria-labelledby","s-ttl"),S.setAttribute("role","heading"),A.style.visibility=l.style.visibility="hidden",l.style.opacity=0,s.appendChild(x),ye(n,"keydown",(function(e){27===(e=e||window.event).keyCode&&M.hideSettings(0)}),!0),ye(x,"click",(function(){M.hideSettings(0)}))}x.setAttribute("aria-label",t.languages[e].settings_modal.close_btn_label||"Close"),r=t.languages[e].settings_modal.blocks,c=t.languages[e].settings_modal.cookie_table_headers;var d=r.length;S.innerHTML=t.languages[e].settings_modal.title;for(var u=0;u<d;++u){var p=r[u].title,f=r[u].description,g=r[u].toggle,_=r[u].cookie_table,v=!0===t.remove_cookie_tables,m=(f||!v&&_)&&"truthy",b=de("div"),y=de("div");if(f){var k=de("div");k.className="p",k.insertAdjacentHTML("beforeend",f)}var C=de("div");if(C.className="title",b.className="c-bl",y.className="desc",void 0!==g){var I="c-ac-"+u,H=de(m?"button":"div"),J=de("label"),U=de("input"),P=de("span"),q=de("span"),F=de("span"),R=de("span");H.className=m?"b-tl exp":"b-tl",J.className="b-tg",U.className="c-tgl",F.className="on-i",R.className="off-i",P.className="c-tg",q.className="t-lb",m&&(H.setAttribute("aria-expanded","false"),H.setAttribute("aria-controls",I)),U.type="checkbox",P.setAttribute("aria-hidden","true");var z=g.value;U.value=z,q.textContent=p,H.insertAdjacentHTML("beforeend",p),C.appendChild(H),P.appendChild(F),P.appendChild(R),G?g.enabled?(U.checked=!0,!T&&Z.push(!0),g.enabled&&!T&&Q.push(z)):!T&&Z.push(!1):se(D.categories,z)>-1?(U.checked=!0,!T&&Z.push(!0)):!T&&Z.push(!1),!T&&$.push(z),g.readonly?(U.disabled=!0,Ce(P,"c-ro"),!T&&ee.push(!0)):!T&&ee.push(!1),Ce(y,"b-acc"),Ce(C,"b-bn"),Ce(b,"b-ex"),y.id=I,y.setAttribute("aria-hidden","true"),J.appendChild(U),J.appendChild(P),J.appendChild(q),C.appendChild(J),m&&function(e,t,n){ye(H,"click",(function(){we(t,"act")?(Ae(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(Ce(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))}),!1)}(y,b,H)}else if(p){var K=de("div");K.className="b-tl",K.setAttribute("role","heading"),K.setAttribute("aria-level","3"),K.insertAdjacentHTML("beforeend",p),C.appendChild(K)}if(p&&b.appendChild(C),f&&y.appendChild(k),!v&&void 0!==_){for(var B=document.createDocumentFragment(),V=0;V<c.length;++V){var W=de("th"),X=c[V];if(W.setAttribute("scope","col"),X){var Y=X&&ke(X)[0];W.textContent=c[V][Y],B.appendChild(W)}}var te=de("tr");te.appendChild(B);var ne=de("thead");ne.appendChild(te);var oe=de("table");oe.appendChild(ne);for(var ie=document.createDocumentFragment(),ae=0;ae<_.length;ae++){for(var ce=de("tr"),re=0;re<c.length;++re)if(X=c[re]){Y=ke(X)[0];var le=de("td");le.insertAdjacentHTML("beforeend",_[ae][Y]),le.setAttribute("data-column",X[Y]),ce.appendChild(le)}ie.appendChild(ce)}var ue=de("tbody");ue.appendChild(ie),oe.appendChild(ue),y.appendChild(oe)}(g&&p||!g&&(p||f))&&(b.appendChild(y),T?T.appendChild(b):N.appendChild(b))}O||((O=de("div")).id="s-bns"),E||((E=de("button")).id="s-all-bn",E.className="c-bn",O.appendChild(E),ye(E,"click",(fun |
3 |
und-color: "+(a.hover||l(a.background))]),c?(c.text=c.text?c.text:t.getContrast(c.background),c.border=c.border?c.border:"transparent",s[o+" .cc-highlight .cc-btn:first-child"]=["color: "+c.text,"border-color: "+c.border,"background-color: "+c.background]):s[o+" .cc-highlight .cc-btn:first-child"]=["color: "+r.text]));var u=document.createElement("style");document.head.appendChild(u),e.customStyles[i]={references:1,element:u.sheet};var h=-1;for(var p in s)s.hasOwnProperty(p)&&u.sheet.insertRule(p+"{"+s[p].join(";")+"}",++h)}(n,i,"."+o);return s}).call(this,this.options.palette);this.customStyleSelector&&o.push(this.customStyleSelector);return o}.call(this).join(" ")).replace("{{children}}",function(){var e={},i=this.options;i.showLink||(i.elements.link="",i.elements.messagelink=i.elements.message);Object.keys(i.elements).forEach(function(n){e[n]=t.interpolateString(i.elements[n],function(e){var t=i.content[e];return e&&"string"==typeof t&&t.length?t:""})});var n=i.compliance[i.type];n||(n=i.compliance.info);e.compliance=t.interpolateString(n,function(t){return e[t]});var o=i.layouts[i.layout];o||(o=i.layouts.basic);return t.interpolateString(o,function(t){return e[t]})}.call(this)),s=this.options.overrideHTML;if("string"==typeof s&&s.length&&(o=s),this.options.static){var r=c.call(this,'<div class="cc-grower">'+o+"</div>");r.style.display="",this.element=r.firstChild,this.element.style.display="none",t.addClass(this.element,"cc-invisible")}else this.element=c.call(this,o);(function(){var i=this.setStatus.bind(this),n=this.close.bind(this),o=this.options.dismissOnTimeout;"number"==typeof o&&o>=0&&(this.dismissTimeout=window.setTimeout(function(){i(e.status.dismiss),n(!0)},Math.floor(o)));var s=this.options.dismissOnScroll;if("number"==typeof s&&s>=0){var r=function(t){window.pageYOffset>Math.floor(s)&&(i(e.status.dismiss),n(!0),window.removeEventListener("scroll",r,{passive:!0}),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=r,window.addEventListener("scroll",r,{passive:!0}))}var a=this.options.dismissOnWindowClick,c=this.options.ignoreClicksFrom;if(a){var l=function(o){for(var s=!1,r=o.path.length,a=c.length,u=0;u<r;u++)if(!s)for(var h=0;h<a;h++)s||(s=t.hasClass(o.path[u],c[h]));s||(i(e.status.dismiss),n(!0),window.removeEventListener("click",l),window.removeEventListener("touchend",l),this.onWindowClick=null)}.bind(this);this.options.enabled&&(this.onWindowClick=l,window.addEventListener("click",l),window.addEventListener("touchend",l))}}).call(this),function(){"info"!=this.options.type&&(this.options.revokable=!0);t.isMobile()&&(this.options.animateRevokable=!1);if(this.options.revokable){var e=a.call(this);this.options.animateRevokable&&e.push("cc-animate"),this.customStyleSelector&&e.push(this.customStyleSelector);var i=this.options.revokeBtn.replace("{{classes}}",e.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=c.call(this,i);var n=this.revokeBtn;if(this.options.animateRevokable){var o=t.throttle(function(e){var i=!1,o=window.innerHeight-20;t.hasClass(n,"cc-top")&&e.clientY<20&&(i=!0),t.hasClass(n,"cc-bottom")&&e.clientY>o&&(i=!0),i?t.hasClass(n,"cc-active")||t.addClass(n,"cc-active"):t.hasClass(n,"cc-active")&&t.removeClass(n,"cc-active")},200);this.onMouseMove=o,window.addEventListener("mousemove",o)}}}.call(this),this.options.autoOpen&&this.autoOpen()},o.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeCh |
|
9 |
ction(){M.hideSettings(),M.hide(),M.accept("all")}))),E.innerHTML=t.languages[e].settings_modal.accept_all_btn;var pe=t.languages[e].settings_modal.reject_all_btn;if(pe&&(j||((j=de("button")).id="s-rall-bn",j.className="c-bn",ye(j,"click",(function(){M.hideSettings(),M.hide(),M.accept([])})),w.className="bns-t",O.appendChild(j)),j.innerHTML=pe),L||((L=de("button")).id="s-sv-bn",L.className="c-bn",O.appendChild(L),ye(L,"click",(function(){M.hideSettings(),M.hide(),M.accept()}))),L.innerHTML=t.languages[e].settings_modal.save_settings_btn,T)return w.replaceChild(T,N),void(N=T);a.appendChild(S),a.appendChild(s),w.appendChild(a),w.appendChild(N),w.appendChild(O),i.appendChild(w),o.appendChild(i),n.appendChild(o),A.appendChild(n),h.appendChild(A),h.appendChild(l)};M.updateLanguage=function(e,n){if("string"==typeof e){var o=ie(e,t.languages);return(o!==I.current_lang||!0===n)&&(I.current_lang=o,J&&(ae(o),oe(C)),ce(o),le("CookieConsent [LANGUAGE]: curr_lang: '"+o+"'"),!0)}};var re=function(e){var t=r.length,n=-1;K=!1;var o=me("","all"),i=[I.cookie_domain,"."+I.cookie_domain];if("www."===I.cookie_domain.slice(0,4)){var a=I.cookie_domain.substr(4);i.push(a),i.push("."+a)}for(var s=0;s<t;s++){var l=r[s];if(Object.prototype.hasOwnProperty.call(l,"toggle")){var d=se(z,l.toggle.value)>-1;if(!Z[++n]&&Object.prototype.hasOwnProperty.call(l,"cookie_table")&&(e||d)){var u=l.cookie_table,p=ke(c[0])[0],f=u.length;"on_disable"===l.toggle.reload&&d&&(K=!0);for(var g=0;g<f;g++){var h=u[g],_=[],v=h[p],m=h.is_regex||!1,b=h.domain||null,y=h.path||!1;if(b&&(i=[b,"."+b]),m)for(var k=0;k<o.length;k++)o[k].match(v)&&_.push(o[k]);else{var C=se(o,v);C>-1&&_.push(o[C])}le("CookieConsent [AUTOCLEAR]: search cookie: '"+v+"', found:",_),_.length>0&&(be(_,y,i),"on_clear"===l.toggle.reload&&(K=!0))}}}}},se=function(e,t){return e.indexOf(t)},le=function(e,t,n){n?console.error(e,t||""):console.log(e,void 0!==t?t:" ")},de=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t},ue=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){try{return(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}catch(e){return""}}))},pe=function(e,t){return"browser"===I.auto_language?ie(fe(),e):"document"===I.auto_language?ie(document.documentElement.lang,e):"string"==typeof t?I.current_lang=ie(t,e):(le("CookieConsent [LANG]: setting current_lang = '"+I.current_lang+"'"),I.current_lang)},fe=function(){var e=navigator.language||navigator.browserLanguage;return e.length>2&&(e=e[0]+e[1]),le("CookieConsent [LANG]: detected_browser_lang = '"+e+"'"),e.toLowerCase()};M.allowedCategory=function(e){if(G&&"opt-in"!==I.mode)t=Q;else var t=JSON.parse(me(I.cookie_name,"one",!0)||"{}").categories||[];return se(t,e)>-1},M.run=function(t){if(document.getElementById("cc_div"))le("CookieConsent [NOTICE]: cookie consent already attached to body!");else{if(ne(t),W)return;D=JSON.parse(me(I.cookie_name,"one",!0)||"{}");var c=void 0!==(i=D.consent_uuid);if((n=D.consent_date)&&(n=new Date(n)),(o=D.last_consent_update)&&(o=new Date(o)),H=void 0!==D.data?D.data:null,F&&D.revision!==I.revision&&(R=!1),J=G=!(c&&R&&n&&o&&i),function(){(g=de("div")).id="cc--main",g.style.position="fixed",g.style.zIndex="1000000",g.innerHTML='\x3c!--[if lt IE 9 ]><div id="cc_div" class="cc_div ie"></div><![endif]--\x3e\x3c!--[if (gt IE 8)|!(IE)]>\x3c!--\x3e<div id="cc_div" class="cc_div"></div>\x3c!--<![endif]--\x3e',h=g.children[0];var t=I.current_lang;J&&ae(t),ce(t),(e||document.body).appendChild(g)}(),function(){var e=["[href]","button","input","details",'[tabindex="0"]'];function t(t,n){var o=!1,i=!1;try{for(var a,c=t.querySelectorAll(e.join(':not([tabindex="-1"]), ')),r=c.length,s=0;s<r;)a=c[s].getAttribute("data-focus"),i||"1"!==a?"0"===a&&(o=c[s],i||"0"===c[s+1].getAttribute("data-focus")||(i=c[s+1])):i=c[s],s++}catch(n){return t.querySelectorAll(e.join(", "))}n[0]=c[0],n[1]=c[c.length-1],n[2]=o,n[3]=i}t(w,Y),J&&t(_,X)}(),function(e,t){if("object"==typeof e){var n=e.consent_modal,o=e.settings_modal;J&&n&&i(_,["box","b |
4 |
ild(this.revokeBtn),this.revokeBtn=null,function(i){if(t.isPlainObject(i)){var n=t.hash(JSON.stringify(i)),o=e.customStyles[n];if(o&&!--o.references){var s=o.element.ownerNode;s&&s.parentNode&&s.parentNode.removeChild(s),e.customStyles[n]=null}}}(this.options.palette),this.options=null},o.prototype.open=function(t){if(this.element)return this.isOpen()||(e.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},o.prototype.close=function(t){if(this.element)return this.isOpen()&&(e.hasTransition?this.fadeOut():this.element.style.display="none",t&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},o.prototype.fadeIn=function(){var i=this.element;if(e.hasTransition&&i&&(this.afterTransition&&r.call(this,i),t.hasClass(i,"cc-invisible"))){if(i.style.display="",this.options.static){var n=this.element.clientHeight;this.element.parentNode.style.maxHeight=n+"px"}this.openingTimeout=setTimeout(s.bind(this,i),20)}},o.prototype.fadeOut=function(){var i=this.element;e.hasTransition&&i&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),s.bind(this,i)),t.hasClass(i,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=r.bind(this,i),i.addEventListener(e.transitionEnd,this.afterTransition),t.addClass(i,"cc-invisible")))},o.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!e.hasTransition||!t.hasClass(this.element,"cc-invisible"))},o.prototype.toggleRevokeButton=function(e){this.revokeBtn&&(this.revokeBtn.style.display=e?"":"none")},o.prototype.revokeChoice=function(e){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),e||this.autoOpen()},o.prototype.hasAnswered=function(t){return Object.keys(e.status).indexOf(this.getStatus())>=0},o.prototype.hasConsented=function(t){var i=this.getStatus();return i==e.status.allow||i==e.status.dismiss},o.prototype.autoOpen=function(e){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},o.prototype.setStatus=function(i){var n=this.options.cookie,o=t.getCookie(n.name),s=Object.keys(e.status).indexOf(o)>=0;Object.keys(e.status).indexOf(i)>=0?(t.setCookie(n.name,i,n.expiryDays,n.domain,n.path,n.secure),this.options.onStatusChange.call(this,i,s)):this.clearStatus()},o.prototype.getStatus=function(){return t.getCookie(this.options.cookie.name)},o.prototype.clearStatus=function(){var e=this.options.cookie;t.setCookie(e.name,"",-1,e.domain,e.path)},o}(),e.Location=function(){var e={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(e,t){try{var i=JSON.parse(t);return i.error?s(i):{code:i.country}}catch(e){return s({error:"Invalid response ("+e+")"})}}}},ipinfodb:function(e){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(e,t){try{var i=JSON.parse(t);return"ERROR"==i.statusCode?s({error:i.statusMessage}):{code:i.countryCode}}catch(e){return s({error:"Invalid response ("+e+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(e){window.geoip2?geoip2.country(function(t){try{e({code:t.country.iso_code})}catch(t){e(s(t))}},function(t){e(s(t))}):e(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function i(i){t.deepExtend(this.options={},e),t.isPlainObject(i)&&t.deepExtend(this.options,i),this.currentServiceIndex=-1}function n(e,t,i){var n,o=document.createElement("script");o.type="text/"+(e.type||"javascript"),o.src=e.src||e,o.async=!1,o.onreadystatechange=o.onload=function(){var e=o.readyState;clearTimeout(n),t.done||e&&!/loaded|complete/.test(e)||(t.done=!0,t(),o.onreadystatechange=o.onload=null)},document.body.appendChild(o),n=setTimeout(function(){t.done=!0,t(),o.onreadystatechan |
|
10 |
ar","cloud"],["top","middle","bottom"],["zoom","slide"],n.layout,n.position,n.transition),!t&&o&&i(A,["bar"],["left","right"],["zoom","slide"],o.layout,o.position,o.transition)}function i(e,t,n,o,i,a,c){if(a=a&&a.split(" ")||[],se(t,i)>-1&&(Ce(e,i),("bar"!==i||"middle"!==a[0])&&se(n,a[0])>-1))for(var r=0;r<a.length;r++)Ce(e,a[r]);se(o,c)>-1&&Ce(e,c)}}(t.gui_options),oe(),I.autorun&&J&&M.show(t.delay||0),setTimeout((function(){Ce(g,"c--anim")}),30),setTimeout((function(){var e,t;e=!1,t=!1,ye(document,"keydown",(function(n){"Tab"===(n=n||window.event).key&&(a&&(n.shiftKey?document.activeElement===a[0]&&(a[1].focus(),n.preventDefault()):document.activeElement===a[1]&&(a[0].focus(),n.preventDefault()),t||q||(t=!0,!e&&n.preventDefault(),n.shiftKey?a[3]?a[2]?a[2].focus():a[0].focus():a[1].focus():a[3]?a[3].focus():a[0].focus())),!t&&(e=!0))})),document.contains&&ye(g,"click",(function(e){e=e||window.event,P?w.contains(e.target)?q=!0:(M.hideSettings(0),q=!1):U&&_.contains(e.target)&&(q=!0)}),!0)}),100),G)"opt-out"===I.mode&&(le("CookieConsent [CONFIG] mode='"+I.mode+"', default enabled categories:",Q),ge(Q)),le("CookieConsent [NOTICE]: ask for consent!");else{var r="boolean"==typeof D.rfc_cookie;(!r||r&&D.rfc_cookie!==I.use_rfc_cookie)&&(D.rfc_cookie=I.use_rfc_cookie,ve(I.cookie_name,JSON.stringify(D))),u=_e(he()),ge(),"function"==typeof s&&s(D),le("CookieConsent [NOTICE]: consent already given!",D)}}},M.showSettings=function(e){setTimeout((function(){Ce(te,"show--settings"),A.setAttribute("aria-hidden","false"),P=!0,setTimeout((function(){U?f=document.activeElement:p=document.activeElement,0!==Y.length&&(Y[3]?Y[3].focus():Y[0].focus(),a=Y)}),200),le("CookieConsent [SETTINGS]: show settings_modal")}),e>0?e:0)};var ge=function(e){if(I.page_scripts){var t=document.querySelectorAll("script["+I.script_selector+"]"),n=e||D.categories||[],o=function(e,t){if(t<e.length){var i=e[t],a=i.getAttribute(I.script_selector);if(se(n,a)>-1){i.type="text/javascript",i.removeAttribute(I.script_selector);var c=i.getAttribute("data-src");c&&i.removeAttribute("data-src");var r=de("script");if(r.textContent=i.innerHTML,function(e,t){for(var n=t.attributes,o=n.length,i=0;i<o;i++){var a=n[i].nodeName;e.setAttribute(a,t[a]||t.getAttribute(a))}}(r,i),c?r.src=c:c=i.src,c&&(r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,o(e,++t))}:r.onload=function(){r.onload=null,o(e,++t)}),i.parentNode.replaceChild(r,i),c)return}o(e,++t)}};o(t,0)}};M.set=function(e,t){return"data"===e&&function(e,t){var n=!1;if("update"===t){var o=typeof(H=M.get("data"))==typeof e;if(o&&"object"==typeof H)for(var i in!H&&(H={}),e)H[i]!==e[i]&&(H[i]=e[i],n=!0);else!o&&H||H===e||(H=e,n=!0)}else H=e,n=!0;return n&&(D.data=H,ve(I.cookie_name,JSON.stringify(D))),n}(t.value,t.mode)},M.get=function(e,t){return JSON.parse(me(t||I.cookie_name,"one",!0)||"{}")[e]},M.getConfig=function(e){return I[e]||t[e]};var he=function(){return B=D.categories||[],V=$.filter((function(e){return-1===se(B,e)})),{accepted:B,rejected:V}},_e=function(e){var t="custom",n=ee.filter((function(e){return!0===e})).length;return e.accepted.length===$.length?t="all":e.accepted.length===n&&(t="necessary"),t};M.getUserPreferences=function(){var e=he();return{accept_type:_e(e),accepted_categories:e.accepted,rejected_categories:e.rejected}},M.loadScript=function(e,t,n){var o="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))o&&t();else{var i=de("script");if(n&&n.length>0)for(var a=0;a<n.length;++a)n[a]&&i.setAttribute(n[a].name,n[a].value);o&&(i.onload=t),i.src=e,document.head.appendChild(i)}},M.updateScripts=function(){ge()},M.show=function(e,t){!0===t&&ae(I.current_lang),J&&setTimeout((function(){Ce(te,"show--consent"),_.setAttribute("aria-hidden","false"),U=!0,setTimeout((function(){p=document.activeElement,a=X}),200),le("CookieConsent [MODAL]: show consent_modal")}),e>0?e:t?30:0)},M.hide=function(){J&&(Ae(te,"show--consent"),_.setAttribute("aria-hidden","true"),U=!1,setTimeout((function(){p.focus(),a=null}),200),le("CookieConsent |
5 |
ge=o.onload=null},i)}function o(e,t,i,n,o){var s=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(s.open(n?"POST":"GET",e,1),s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(o))for(var r=0,a=o.length;r<a;++r){var c=o[r].split(":",2);s.setRequestHeader(c[0].replace(/^\s+|\s+$/g,""),c[1].replace(/^\s+|\s+$/g,""))}"function"==typeof t&&(s.onreadystatechange=function(){s.readyState>3&&t(s)}),s.send(n)}function s(e){return new Error("Error ["+(e.code||"UNKNOWN")+"]: "+e.error)}return i.prototype.getNextService=function(){var e;do{e=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex<this.options.services.length&&!e);return e},i.prototype.getServiceByIdx=function(e){var i=this.options.services[e];if("function"==typeof i){var n=i();return n.name&&t.deepExtend(n,this.options.serviceDefinitions[n.name](n)),n}return"string"==typeof i?this.options.serviceDefinitions[i]():t.isPlainObject(i)?this.options.serviceDefinitions[i.name](i):null},i.prototype.locate=function(e,t){var i=this.getNextService();i?(this.callbackComplete=e,this.callbackError=t,this.runService(i,this.runNextServiceOnError.bind(this))):t(new Error("No services to run"))},i.prototype.setupUrl=function(e){var t=this.getCurrentServiceOpts();return e.url.replace(/\{(.*?)\}/g,function(i,n){if("callback"===n){var o="callback"+Date.now();return window[o]=function(t){e.__JSONP_DATA=JSON.stringify(t)},o}if(n in t.interpolateUrl)return t.interpolateUrl[n]})},i.prototype.runService=function(e,t){var i=this;e&&e.url&&e.callback&&(e.isScript?n:o)(this.setupUrl(e),function(n){var o=n?n.responseText:"";e.__JSONP_DATA&&(o=e.__JSONP_DATA,delete e.__JSONP_DATA),i.runServiceCallback.call(i,t,e,o)},this.options.timeout,e.data,e.headers)},i.prototype.runServiceCallback=function(e,t,i){var n=this,o=t.callback(function(t){o||n.onServiceResult.call(n,e,t)},i);o&&this.onServiceResult.call(this,e,o)},i.prototype.onServiceResult=function(e,t){t instanceof Error||t&&t.error?e.call(this,t,null):e.call(this,null,t)},i.prototype.runNextServiceOnError=function(e,t){if(e){this.logError(e);var i=this.getNextService();i?this.runService(i,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,t)},i.prototype.getCurrentServiceOpts=function(){var e=this.options.services[this.currentServiceIndex];return"string"==typeof e?{name:e}:"function"==typeof e?e():t.isPlainObject(e)?e:{}},i.prototype.completeService=function(e,t){this.currentServiceIndex=-1,e&&e(t)},i.prototype.logError=function(e){var t=this.currentServiceIndex,i=this.getServiceByIdx(t);console.warn("The service["+t+"] ("+i.url+") responded with the following error",e)},i}(),e.Law=function(){var e={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","NO","PL","PT","SK","ES","SE","GB","UK","GR","EU","RO"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","NO","PT","ES"],explicitAction:["HR","IT","ES","NO"]};function i(e){this.initialise.apply(this,arguments)}return i.prototype.initialise=function(i){t.deepExtend(this.options={},e),t.isPlainObject(i)&&t.deepExtend(this.options,i)},i.prototype.get=function(e){var t=this.options;return{hasLaw:t.hasLaw.indexOf(e)>=0,revokable:t.revokable.indexOf(e)>=0,explicitAction:t.explicitAction.indexOf(e)>=0}},i.prototype.applyLaw=function(e,t){var i=this.get(t);return i.hasLaw||(e.enabled=!1,"function"==typeof e.onNoCookieLaw&&e.onNoCookieLaw(t,i)),this.options.regionalLaw&&(i.revokable&&(e.revokable=!0),i.explicitAction&&(e.dismissOnScroll=!1,e.dismissOnTimeout=!1)),e},i}(),e.initialise=function(i,n,o){var s=new e.Law(i.law);n||(n=function(){}),o||(o=function(){});var r=Object.keys(e.status),a=t.getCookie("cookieconsent_status");r.indexOf(a)>=0?n(new e.Popup(i)):e.getCountryCode(i,function(t){delete i.law,delete i.location,t.code&&(i=s.applyLaw(i,t.code)),n(new e.Popup(i))},function(t){delete i.law,delete i.location,o(t,new |
|
11 |
[MODAL]: hide"))},M.hideSettings=function(){Ae(te,"show--settings"),P=!1,A.setAttribute("aria-hidden","true"),setTimeout((function(){U?(f&&f.focus(),a=X):(p&&p.focus(),a=null),q=!1}),200),le("CookieConsent [SETTINGS]: hide settings_modal")},M.accept=function(e,t){var a=e||void 0,c=t||[],r=[];if(a)if("object"==typeof a&&"number"==typeof a.length)for(var p=0;p<a.length;p++)-1!==se($,a[p])&&r.push(a[p]);else"string"==typeof a&&("all"===a?r=$.slice():-1!==se($,a)&&r.push(a));else r=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],n=0;n<e.length;n++)e[n].checked&&t.push(e[n].value);return t}();if(c.length>=1)for(p=0;p<c.length;p++)r=r.filter((function(e){return e!==c[p]}));for(p=0;p<$.length;p++)!0===ee[p]&&-1===se(r,$[p])&&r.push($[p]);!function(e){z=[];var t=document.querySelectorAll(".c-tgl")||[];if(t.length>0)for(var a=0;a<t.length;a++)-1!==se(e,$[a])?(t[a].checked=!0,Z[a]||(z.push($[a]),Z[a]=!0)):(t[a].checked=!1,Z[a]&&(z.push($[a]),Z[a]=!1));!G&&I.autoclear_cookies&&z.length>0&&re(),n||(n=new Date),i||(i=ue()),D={categories:e,revision:I.revision,data:H,rfc_cookie:I.use_rfc_cookie,consent_date:n.toISOString(),consent_uuid:i},(G||z.length>0)&&(R=!0,o=o?new Date:n,D.last_consent_update=o.toISOString(),u=_e(he()),ve(I.cookie_name,JSON.stringify(D)),ge()),G&&(I.autoclear_cookies&&re(!0),"function"==typeof d&&d(M.getUserPreferences(),D),"function"==typeof s&&s(D),G=!1,"opt-in"===I.mode)||("function"==typeof l&&z.length>0&&l(D,z),K&&window.location.reload())}(r)},M.eraseCookies=function(e,t,n){var o=[],i=n?[n,"."+n]:[I.cookie_domain,"."+I.cookie_domain];if("object"==typeof e&&e.length>0)for(var a=0;a<e.length;a++)this.validCookie(e[a])&&o.push(e[a]);else this.validCookie(e)&&o.push(e);be(o,t,i)};var ve=function(e,t){var n=I.cookie_expiration;"number"==typeof I.cookie_necessary_only_expiration&&"necessary"===u&&(n=I.cookie_necessary_only_expiration),t=I.use_rfc_cookie?encodeURIComponent(t):t;var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);var i=e+"="+(t||"")+"; expires="+o.toUTCString()+"; Path="+I.cookie_path+";";i+=" SameSite="+I.cookie_same_site+";",window.location.hostname.indexOf(".")>-1&&(i+=" Domain="+I.cookie_domain+";"),"https:"===window.location.protocol&&(i+=" Secure;"),document.cookie=i,le("CookieConsent [SET_COOKIE]: '"+e+"' expires after "+n+" day(s)")},me=function(e,t,n){var o;if("one"===t){if((o=(o=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?o.pop():e:"")&&e===I.cookie_name){try{o=JSON.parse(o)}catch(e){try{o=JSON.parse(decodeURIComponent(o))}catch(e){o={}}}o=JSON.stringify(o)}}else if("all"===t){var i=document.cookie.split(/;\s*/);o=[];for(var a=0;a<i.length;a++)o.push(i[a].split("=")[0])}return o},be=function(e,t,n){for(var o=t||"/",i=0;i<e.length;i++){for(var a=0;a<n.length;a++)document.cookie=e[i]+"=; path="+o+(n[a].indexOf(".")>-1?"; domain="+n[a]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";le("CookieConsent [AUTOCLEAR]: deleting cookie: '"+e[i]+"' path: '"+o+"' domain:",n)}};M.validCookie=function(e){return""!==me(e,"one",!0)};var ye=function(e,t,n,o){e.addEventListener(t,n,!0===o&&{passive:!0})},ke=function(e){if("object"==typeof e)return Object.keys(e)},Ce=function(e,t){e.classList.add(t)},Ae=function(e,t){e.classList.remove(t)},we=function(e,t){return e.classList.contains(t)};return M})}(); |
6 |
e.Popup(i))})},e.getCountryCode=function(t,i,n){t.law&&t.law.countryCode?i({code:t.law.countryCode}):t.location?new e.Location(t.location).locate(function(e){i(e||{})},n):i({})},e.utils=t,e.hasInitialised=!0,window.cookieconsent=e}}(window.cookieconsent||{}); |
|
|
|