Give – Donation Plugin and Fundraising Platform - Version 2.0.0

Version Description

Give version 1.8 is a major update. Please make sure you make a backup of your database before updating.

Download this release

Release Info

Developer dlocc
Plugin Icon 128x128 Give – Donation Plugin and Fundraising Platform
Version 2.0.0
Comparing to
See all releases

Code changes from version 1.8.19 to 2.0.0

Files changed (38) hide show
  1. assets/css/give-admin-rtl.css +655 -665
  2. assets/css/give-admin-rtl.min.css +3 -1
  3. assets/css/give-admin.css +655 -665
  4. assets/css/give-admin.min.css +3 -1
  5. assets/css/jquery.qtip.css +0 -617
  6. assets/css/jquery.qtip.min.css +0 -1
  7. assets/js/admin/admin-forms.js +29 -0
  8. assets/js/admin/admin-forms.min.js +1 -1
  9. assets/js/admin/admin-scripts.js +826 -423
  10. assets/js/admin/admin-scripts.min.js +2 -2
  11. assets/js/admin/admin-settings.js +87 -0
  12. assets/js/admin/admin-settings.min.js +1 -1
  13. assets/js/admin/admin-widgets.js +0 -17
  14. assets/js/admin/admin-widgets.min.js +1 -1
  15. assets/js/frontend/give-ajax.js +6 -31
  16. assets/js/frontend/give-ajax.min.js +1 -1
  17. assets/js/frontend/give-donations.js +61 -2
  18. assets/js/frontend/give-donations.min.js +1 -1
  19. assets/js/frontend/give.all.min.js +5 -6
  20. assets/js/frontend/give.js +7 -0
  21. assets/js/frontend/give.min.js +1 -1
  22. assets/js/plugins/chosen.jquery.js +250 -222
  23. assets/js/plugins/chosen.jquery.min.js +1 -1
  24. assets/js/plugins/float-labels.js +26 -11
  25. assets/js/plugins/float-labels.min.js +1 -1
  26. assets/js/plugins/give-ajaxify-fields.js +120 -0
  27. assets/js/plugins/give-ajaxify-fields.min.js +1 -0
  28. assets/js/plugins/give-hint.css.js +92 -0
  29. assets/js/plugins/give-hint.css.min.js +1 -0
  30. assets/js/plugins/jquery.qtip.js +0 -3451
  31. assets/js/plugins/jquery.qtip.min.js +0 -2
  32. assets/scss/admin/donors.scss +292 -239
  33. assets/scss/admin/forms.scss +2 -1
  34. assets/scss/admin/give-admin.scss +1 -1
  35. assets/scss/admin/settings.scss +459 -340
  36. assets/scss/admin/util.scss +35 -0
  37. assets/scss/frontend/float-labels.scss +39 -38
  38. assets/scss/frontend/forms.scss +121 -155
assets/css/give-admin-rtl.css CHANGED
@@ -60,512 +60,389 @@
60
  /**
61
  * Give CSS Variables
62
  */
63
- /*
64
- * qTip2 - Pretty powerful tooltips - v2.2.1
65
- * http://qtip2.com
66
- *
67
- * Copyright (c) 2014
68
- * Released under the MIT licenses
69
- * http://jquery.org/license
70
- *
71
- * Date: Sun Sep 7 2014 12:09 GMT+0100+0100
72
- * Plugins: tips modal viewport svg imagemap ie6
73
- * Styles: core basic css3
74
- */
75
- .qtip {
76
  position: absolute;
77
- right: -28000px;
78
- top: -28000px;
79
- display: none;
80
- max-width: 280px;
81
- min-width: 50px;
82
- font-size: 10.5px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  line-height: 12px;
84
- direction: rtl;
85
- box-shadow: none;
86
- padding: 0; }
87
 
88
- .qtip-content {
89
- position: relative;
90
- padding: 5px 9px;
91
- overflow: hidden;
92
- text-align: right;
93
- word-wrap: break-word; }
94
 
95
- .qtip-titlebar {
96
- position: relative;
97
- padding: 5px 10px 5px 35px;
98
- overflow: hidden;
99
- border-width: 0 0 1px;
100
- font-weight: bold; }
101
 
102
- .qtip-titlebar + .qtip-content {
103
- border-top-width: 0 !important; }
104
 
105
- /* Default close button class */
106
- .qtip-close {
107
- position: absolute;
108
- left: -9px;
109
- top: -9px;
110
- z-index: 11;
111
- /* Overlap .qtip-tip */
112
- cursor: pointer;
113
- outline: medium none;
114
- border: 1px solid transparent; }
115
 
116
- .qtip-titlebar .qtip-close {
117
- left: 4px;
118
- top: 50%;
119
- margin-top: -9px; }
120
 
121
- * html .qtip-titlebar .qtip-close {
122
- top: 16px; }
 
123
 
124
- /* IE fix */
125
- .qtip-titlebar .ui-icon,
126
- .qtip-icon .ui-icon {
127
- display: block;
128
- text-indent: -1000em;
129
- direction: rtl; }
130
 
131
- .qtip-icon, .qtip-icon .ui-icon {
132
- -moz-border-radius: 3px;
133
- -webkit-border-radius: 3px;
134
- border-radius: 3px;
135
- text-decoration: none; }
136
 
137
- .qtip-icon .ui-icon {
138
- width: 18px;
139
- height: 14px;
140
- line-height: 14px;
141
- text-align: center;
142
- text-indent: 0;
143
- font: normal bold 10px/13px Tahoma,sans-serif;
144
- color: inherit;
145
- background: transparent none no-repeat -100em -100em; }
146
-
147
- /* Applied to 'focused' tooltips e.g. most recently displayed/interacted with */
148
- /* Applied on hover of tooltips i.e. added/removed on mouseenter/mouseleave respectively */
149
- /* Default tooltip style */
150
- .qtip-default {
151
- border: 1px solid #F1D031;
152
- background-color: #FFFFA3;
153
- color: #555; }
154
-
155
- .qtip-default .qtip-titlebar {
156
- background-color: #FFEF93; }
157
-
158
- .qtip-default .qtip-icon {
159
- border-color: #CCC;
160
- background: #F1F1F1;
161
- color: #777; }
162
 
163
- .qtip-default .qtip-titlebar .qtip-close {
164
- border-color: #AAA;
165
- color: #111; }
166
-
167
- /*! Light tooltip style */
168
- .qtip-light {
169
- background-color: white;
170
- border-color: #E2E2E2;
171
- color: #454545; }
172
-
173
- .qtip-light .qtip-titlebar {
174
- background-color: #f1f1f1; }
175
-
176
- /*! Dark tooltip style */
177
- .qtip-dark {
178
- background-color: #505050;
179
- border-color: #303030;
180
- color: #f3f3f3; }
181
-
182
- .qtip-dark .qtip-titlebar {
183
- background-color: #404040; }
184
-
185
- .qtip-dark .qtip-icon {
186
- border-color: #444; }
187
-
188
- .qtip-dark .qtip-titlebar .ui-state-hover {
189
- border-color: #303030; }
190
-
191
- /*! Cream tooltip style */
192
- .qtip-cream {
193
- background-color: #FBF7AA;
194
- border-color: #F9E98E;
195
- color: #A27D35; }
196
-
197
- .qtip-cream .qtip-titlebar {
198
- background-color: #F0DE7D; }
199
-
200
- .qtip-cream .qtip-close .qtip-icon {
201
- background-position: -82px 0; }
202
-
203
- /*! Red tooltip style */
204
- .qtip-red {
205
- background-color: #F78B83;
206
- border-color: #D95252;
207
- color: #912323; }
208
-
209
- .qtip-red .qtip-titlebar {
210
- background-color: #F06D65; }
211
-
212
- .qtip-red .qtip-close .qtip-icon {
213
- background-position: -102px 0; }
214
-
215
- .qtip-red .qtip-icon {
216
- border-color: #D95252; }
217
-
218
- .qtip-red .qtip-titlebar .ui-state-hover {
219
- border-color: #D95252; }
220
-
221
- /*! Green tooltip style */
222
- .qtip-green {
223
- background-color: #CAED9E;
224
- border-color: #90D93F;
225
- color: #3F6219; }
226
-
227
- .qtip-green .qtip-titlebar {
228
- background-color: #B0DE78; }
229
-
230
- .qtip-green .qtip-close .qtip-icon {
231
- background-position: -42px 0; }
232
-
233
- /*! Blue tooltip style */
234
- .qtip-blue {
235
- background-color: #E5F6FE;
236
- border-color: #ADD9ED;
237
- color: #5E99BD; }
238
-
239
- .qtip-blue .qtip-titlebar {
240
- background-color: #D0E9F5; }
241
-
242
- .qtip-blue .qtip-close .qtip-icon {
243
- background-position: -2px 0; }
244
-
245
- .qtip-shadow {
246
- -webkit-box-shadow: -1px 1px 3px 1px rgba(0, 0, 0, 0.15);
247
- -moz-box-shadow: -1px 1px 3px 1px rgba(0, 0, 0, 0.15);
248
- box-shadow: -1px 1px 3px 1px rgba(0, 0, 0, 0.15); }
249
-
250
- /* Add rounded corners to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE9+, Safari 2+ */
251
- .qtip-rounded,
252
- .qtip-tipsy,
253
- .qtip-bootstrap {
254
- -moz-border-radius: 5px;
255
- -webkit-border-radius: 5px;
256
- border-radius: 5px; }
257
-
258
- .qtip-rounded .qtip-titlebar {
259
- -moz-border-radius: 4px 4px 0 0;
260
- -webkit-border-radius: 4px 4px 0 0;
261
- border-radius: 4px 4px 0 0; }
262
-
263
- /* Youtube tooltip style */
264
- .qtip-youtube {
265
- -moz-border-radius: 2px;
266
- -webkit-border-radius: 2px;
267
- border-radius: 2px;
268
- -webkit-box-shadow: 0 0 3px #333;
269
- -moz-box-shadow: 0 0 3px #333;
270
- box-shadow: 0 0 3px #333;
271
- color: white;
272
- border: 0 solid transparent;
273
- background: #4A4A4A;
274
- background-image: -webkit-gradient(linear, right top, right bottom, color-stop(0, #4A4A4A), color-stop(100%, black));
275
- background-image: -webkit-linear-gradient(top, #4A4A4A 0, black 100%);
276
- background-image: -moz-linear-gradient(top, #4A4A4A 0, black 100%);
277
- background-image: -ms-linear-gradient(top, #4A4A4A 0, black 100%);
278
- background-image: -o-linear-gradient(top, #4A4A4A 0, black 100%); }
279
-
280
- .qtip-youtube .qtip-titlebar {
281
- background-color: #4A4A4A;
282
- background-color: transparent; }
283
-
284
- .qtip-youtube .qtip-content {
285
- padding: .75em;
286
- font: 12px arial,sans-serif;
287
- filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);
288
- -ms-filter: "progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);"; }
289
-
290
- .qtip-youtube .qtip-icon {
291
- border-color: #222; }
292
-
293
- .qtip-youtube .qtip-titlebar .ui-state-hover {
294
- border-color: #303030; }
295
-
296
- /* jQuery TOOLS Tooltip style */
297
- .qtip-jtools {
298
- background: #232323;
299
- background: rgba(0, 0, 0, 0.7);
300
- background-image: -webkit-gradient(linear, right top, right bottom, from(#717171), to(#232323));
301
- background-image: -moz-linear-gradient(top, #717171, #232323);
302
- background-image: -webkit-linear-gradient(top, #717171, #232323);
303
- background-image: -ms-linear-gradient(top, #717171, #232323);
304
- background-image: -o-linear-gradient(top, #717171, #232323);
305
- border: 2px solid #ddd;
306
- border: 2px solid #f1f1f1;
307
- -moz-border-radius: 2px;
308
- -webkit-border-radius: 2px;
309
- border-radius: 2px;
310
- -webkit-box-shadow: 0 0 12px #333;
311
- -moz-box-shadow: 0 0 12px #333;
312
- box-shadow: 0 0 12px #333; }
313
-
314
- /* IE Specific */
315
- .qtip-jtools .qtip-titlebar {
316
- background-color: transparent;
317
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A);
318
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)"; }
319
-
320
- .qtip-jtools .qtip-content {
321
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323);
322
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)"; }
323
-
324
- .qtip-jtools .qtip-titlebar,
325
- .qtip-jtools .qtip-content {
326
- background: transparent;
327
- color: white;
328
- border: 0 dashed transparent; }
329
 
330
- .qtip-jtools .qtip-icon {
331
- border-color: #555; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
332
 
333
- .qtip-jtools .qtip-titlebar .ui-state-hover {
334
- border-color: #333; }
 
335
 
336
- /* Cluetip style */
337
- .qtip-cluetip {
338
- -webkit-box-shadow: -4px 4px 5px rgba(0, 0, 0, 0.4);
339
- -moz-box-shadow: -4px 4px 5px rgba(0, 0, 0, 0.4);
340
- box-shadow: -4px 4px 5px rgba(0, 0, 0, 0.4);
341
- background-color: #D9D9C2;
342
- color: #111;
343
- border: 0 dashed transparent; }
344
 
345
- .qtip-cluetip .qtip-titlebar {
346
- background-color: #87876A;
347
- color: white;
348
- border: 0 dashed transparent; }
349
 
350
- .qtip-cluetip .qtip-icon {
351
- border-color: #808064; }
 
 
352
 
353
- .qtip-cluetip .qtip-titlebar .ui-state-hover {
354
- border-color: #696952;
355
- color: #696952; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
 
357
- /* Tipsy style */
358
- .qtip-tipsy {
359
- background: black;
360
- background: rgba(0, 0, 0, 0.87);
361
- color: white;
362
- border: 0 solid transparent;
363
- font-size: 11px;
364
- font-family: 'Lucida Grande', sans-serif;
365
- font-weight: bold;
366
- line-height: 16px;
367
- text-shadow: 0 1px black; }
368
-
369
- .qtip-tipsy .qtip-titlebar {
370
- padding: 6px 10px 0 35px;
371
- background-color: transparent; }
372
-
373
- .qtip-tipsy .qtip-content {
374
- padding: 6px 10px; }
375
-
376
- .qtip-tipsy .qtip-icon {
377
- border-color: #222;
378
- text-shadow: none; }
379
-
380
- .qtip-tipsy .qtip-titlebar .ui-state-hover {
381
- border-color: #303030; }
382
-
383
- /* Tipped style */
384
- .qtip-tipped {
385
- border: 3px solid #959FA9;
386
- -moz-border-radius: 3px;
387
- -webkit-border-radius: 3px;
388
- border-radius: 3px;
389
- background-color: #F9F9F9;
390
- color: #454545;
391
- font-weight: normal;
392
- font-family: serif; }
393
 
394
- .qtip-tipped .qtip-titlebar {
395
- border-bottom-width: 0;
396
- color: white;
397
- background: #3A79B8;
398
- background-image: -webkit-gradient(linear, right top, right bottom, from(#3A79B8), to(#2E629D));
399
- background-image: -webkit-linear-gradient(top, #3A79B8, #2E629D);
400
- background-image: -moz-linear-gradient(top, #3A79B8, #2E629D);
401
- background-image: -ms-linear-gradient(top, #3A79B8, #2E629D);
402
- background-image: -o-linear-gradient(top, #3A79B8, #2E629D);
403
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D);
404
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)"; }
405
-
406
- .qtip-tipped .qtip-icon {
407
- border: 2px solid #285589;
408
- background: #285589; }
409
-
410
- .qtip-tipped .qtip-icon .ui-icon {
411
- background-color: #FBFBFB;
412
- color: #555; }
413
 
414
- /**
415
- * Twitter Bootstrap style.
416
- *
417
- * Tested with IE 8, IE 9, Chrome 18, Firefox 9, Opera 11.
418
- * Does not work with IE 7.
419
- */
420
- .qtip-bootstrap {
421
- /** Taken from Bootstrap body */
422
- font-size: 14px;
423
- line-height: 20px;
424
- color: #333333;
425
- /** Taken from Bootstrap .popover */
426
- padding: 1px;
427
- background-color: #ffffff;
428
- border: 1px solid #ccc;
429
- border: 1px solid rgba(0, 0, 0, 0.2);
430
- -webkit-border-radius: 6px;
431
- -moz-border-radius: 6px;
432
- border-radius: 6px;
433
- -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
434
- -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
435
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
436
- -webkit-background-clip: padding-box;
437
- -moz-background-clip: padding;
438
- background-clip: padding-box; }
439
-
440
- .qtip-bootstrap .qtip-titlebar {
441
- /** Taken from Bootstrap .popover-title */
442
- padding: 8px 14px;
443
- margin: 0;
444
- font-size: 14px;
445
- font-weight: normal;
446
- line-height: 18px;
447
- background-color: #f7f7f7;
448
- border-bottom: 1px solid #ebebeb;
449
- -webkit-border-radius: 5px 5px 0 0;
450
- -moz-border-radius: 5px 5px 0 0;
451
- border-radius: 5px 5px 0 0; }
452
-
453
- .qtip-bootstrap .qtip-titlebar .qtip-close {
454
- /**
455
- * Overrides qTip2:
456
- * .qtip-titlebar .qtip-close{
457
- * [...]
458
- * right: 4px;
459
- * top: 50%;
460
- * [...]
461
- * border-style: solid;
462
- * }
463
- */
464
- left: 11px;
465
- top: 45%;
466
- border-style: none; }
467
-
468
- .qtip-bootstrap .qtip-content {
469
- /** Taken from Bootstrap .popover-content */
470
- padding: 9px 14px; }
471
-
472
- .qtip-bootstrap .qtip-icon {
473
- /**
474
- * Overrides qTip2:
475
- * .qtip-default .qtip-icon {
476
- * border-color: #CCC;
477
- * background: #F1F1F1;
478
- * color: #777;
479
- * }
480
- */
481
- background: transparent; }
482
-
483
- .qtip-bootstrap .qtip-icon .ui-icon {
484
- /**
485
- * Overrides qTip2:
486
- * .qtip-icon .ui-icon{
487
- * width: 18px;
488
- * height: 14px;
489
- * }
490
- */
491
- width: auto;
492
- height: auto;
493
- /* Taken from Bootstrap .close */
494
- float: left;
495
- font-size: 20px;
496
- font-weight: bold;
497
- line-height: 18px;
498
- color: #000000;
499
- text-shadow: 0 1px 0 #ffffff;
500
- opacity: 0.2;
501
- filter: alpha(opacity=20); }
502
-
503
- .qtip-bootstrap .qtip-icon .ui-icon:hover {
504
- /* Taken from Bootstrap .close:hover */
505
- color: #000000;
506
- text-decoration: none;
507
- cursor: pointer;
508
- opacity: 0.4;
509
- filter: alpha(opacity=40); }
510
 
511
- /* IE9 fix - removes all filters */
512
- .qtip:not(.ie9haxors) div.qtip-content,
513
- .qtip:not(.ie9haxors) div.qtip-titlebar {
514
- filter: none;
515
- -ms-filter: none; }
516
 
517
- .qtip .qtip-tip {
518
- margin: 0 auto;
519
- overflow: hidden;
520
- z-index: 10; }
521
 
522
- /* Opera bug #357 - Incorrect tip position
523
- https://github.com/Craga89/qTip2/issues/367 */
524
- x:-o-prefocus, .qtip .qtip-tip {
525
- visibility: hidden; }
526
 
527
- .qtip .qtip-tip,
528
- .qtip .qtip-tip .qtip-vml,
529
- .qtip .qtip-tip canvas {
530
- position: absolute;
531
- color: #123456;
532
- background: transparent;
533
- border: 0 dashed transparent; }
534
 
535
- .qtip .qtip-tip canvas {
536
- top: 0;
537
- right: 0; }
538
 
539
- .qtip .qtip-tip .qtip-vml {
540
- behavior: url(#default#VML);
541
- display: inline-block;
542
- visibility: visible; }
543
 
544
- #qtip-overlay {
545
- position: fixed;
546
- right: 0;
547
- top: 0;
548
- width: 100%;
549
- height: 100%; }
550
 
551
- /* Applied to modals with show.modal.blur set to true */
552
- #qtip-overlay.blurs {
553
- cursor: pointer; }
554
 
555
- /* Change opacity of overlay here */
556
- #qtip-overlay div {
557
- position: absolute;
558
- right: 0;
559
- top: 0;
560
- width: 100%;
561
- height: 100%;
562
- background-color: black;
563
- opacity: 0.7;
564
- filter: alpha(opacity=70);
565
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
566
 
567
- .qtipmodal-ie6fix {
568
- position: absolute !important; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
569
 
570
  /**
571
  * Give Frontend Fonts SCSS
@@ -865,7 +742,8 @@ div.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {
865
  .give-money-symbol-after {
866
  margin-right: -5px; }
867
 
868
- .give_options_panel input[type="text"] {
 
869
  padding: 5px;
870
  width: 100%; }
871
 
@@ -1664,12 +1542,46 @@ table.give-table td.row-title p {
1664
  .give-settings-page table table input[type="text"] {
1665
  width: 15em; }
1666
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1667
  .give-setting-tab-header {
1668
  clear: both;
1669
  overflow: hidden;
1670
  margin: 30px 0; }
1671
  .give-setting-tab-header h2 {
1672
  margin-top: 8px; }
 
 
1673
 
1674
  .give-radio-inline ul {
1675
  margin-top: 0; }
@@ -1757,6 +1669,56 @@ p.give-field-description, .cmb2-metabox-description {
1757
  .give-email-tags-wrap .give_price_tag {
1758
  display: none; }
1759
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1760
  #system-info-textarea {
1761
  width: 800px;
1762
  height: 600px;
@@ -1942,10 +1904,10 @@ h2.give-nav-tab-wrapper {
1942
  border-bottom: 0;
1943
  position: absolute;
1944
  top: 35px;
1945
- right: 0; }
1946
  .give-sub-nav-tab-wrapper nav.give-sub-nav-tab a {
1947
  float: right;
1948
- background: #e5e5e5;
1949
  padding: 6px 10px;
1950
  clear: both;
1951
  text-decoration: none;
@@ -2488,196 +2450,199 @@ input.give-price-field {
2488
  * @copyright Copyright (c) 2016, WordImpress
2489
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
2490
  */
2491
- .give_forms_page_give-donors .wrap > h2 {
2492
- margin-bottom: 15px; }
2493
-
2494
- .give_forms_page_give-donors .nav-tab-wrapper .dashicons {
2495
- position: relative;
2496
- top: 2px;
2497
- margin: 0 0 0 3px; }
2498
-
2499
- .give_forms_page_give-donors #give-donors-filter {
2500
- position: relative; }
2501
- .give_forms_page_give-donors #give-donors-filter p.search-box {
2502
- margin: 0; }
2503
-
2504
- .give_forms_page_give-donors #give-donors-search-filter {
2505
- display: block;
2506
- overflow: hidden; }
2507
-
2508
- #give-donor-card-wrapper {
2509
- margin-right: -1px;
2510
- z-index: 2;
2511
- min-height: 200px; }
2512
- #give-donor-card-wrapper input {
2513
- font-weight: normal; }
2514
- #give-donor-card-wrapper .donor-section {
2515
- border-bottom: 1px solid #eee;
2516
- margin-bottom: 10px; }
2517
- #give-donor-card-wrapper .donor-section table {
2518
- margin-bottom: 0; }
2519
- #give-donor-card-wrapper > div:first-child {
2520
- padding-top: 20px; }
2521
- #give-donor-card-wrapper > div:last-child {
2522
- padding-bottom: 20px;
2523
- border: none; }
2524
- #give-donor-card-wrapper .avatar-wrap {
2525
- padding: 0 0 15px 15px;
2526
- text-align: center;
2527
- float: right; }
2528
- #give-donor-card-wrapper .avatar-wrap img {
2529
- border-radius: 3px; }
2530
- #give-donor-card-wrapper a.delete {
2531
- text-decoration: none;
2532
- color: #ff0000;
2533
- margin-left: 5px; }
2534
- #give-donor-card-wrapper .donor-bio-header .donor-since {
2535
- margin: 10px 0;
2536
- font-size: 16px; }
2537
- #give-donor-card-wrapper .donor-bio-header .donor-id {
2538
- display: inline-block;
2539
- font-size: 24px;
2540
- font-weight: 600;
2541
- margin-left: 10px; }
2542
- #give-donor-card-wrapper .donor-bio-header .donor-name-wrap {
2543
- display: inline-block; }
2544
- #give-donor-card-wrapper .donor-bio-header .donor-edit-link {
2545
  margin-bottom: 15px; }
2546
-
2547
- .donor-main-wrapper {
2548
- clear: both;
2549
- margin: 0 0 20px; }
2550
- @media (max-width: 655px) {
2551
- .donor-main-wrapper {
2552
- width: 100%; } }
2553
- .donor-main-wrapper table {
2554
- margin: 0; }
2555
- .donor-main-wrapper input {
2556
- width: 200px; }
2557
-
2558
- #donor-summary {
2559
- padding: 0 20px; }
2560
- #donor-summary:after {
2561
- font-family: "dashicons";
2562
- content: "\f110";
2563
- position: absolute;
2564
- top: 10px;
2565
- left: 10px;
2566
- font-size: 100px;
2567
- color: #F0F0F0;
2568
- z-index: 0; }
2569
-
2570
- #give-donor-card-wrapper .donor-address-wrapper {
2571
- width: 202px; }
2572
- #give-donor-card-wrapper .donor-address-wrapper span[data-key="line2"] {
2573
- display: table;
2574
- clear: both; }
2575
-
2576
- #give-donor-card-wrapper .donor-address-wrapper select {
2577
- width: 200px; }
2578
-
2579
- #give-donor-card-wrapper .donor-info {
2580
- min-height: 185px; }
2581
-
2582
- #give-donor-card-wrapper .info-wrapper {
2583
- min-height: 125px; }
2584
-
2585
- .donor-info .donor-name {
2586
- font-size: 24px;
2587
- font-weight: 600; }
2588
-
2589
- #disconnect-donor, #view-user-profile {
2590
- font-size: 12px;
2591
- font-weight: normal;
2592
- text-decoration: none; }
2593
-
2594
- #donor-edit-actions {
2595
- text-align: center;
2596
- margin-bottom: 20px;
2597
- line-height: 28px; }
2598
-
2599
- #donor-edit-actions .button-secondary {
2600
- margin-left: 10px; }
2601
-
2602
- #give-donor-card-wrapper .edit-item {
2603
- display: none; }
2604
-
2605
- #give-donor-card-wrapper .give_user_search_results {
2606
- right: 1px;
2607
- top: 16px; }
2608
-
2609
- #give-donor-card-wrapper .give_user_search_results ul {
2610
- width: 200px; }
2611
-
2612
- #donor-stats-wrapper {
2613
- margin: 0 auto;
2614
- text-align: center;
2615
- padding: 15px; }
2616
- #donor-stats-wrapper ul {
2617
- margin: 0;
2618
- padding: 0;
2619
  overflow: hidden; }
2620
- #donor-stats-wrapper ul li {
2621
- width: 50%;
2622
- float: right;
2623
- line-height: 22px;
2624
- font-size: 14px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2625
  margin: 0; }
2626
- #donor-stats-wrapper a {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2627
  text-decoration: none; }
2628
-
2629
- #donor-stats-wrapper .dashicons {
2630
- color: #888; }
2631
-
2632
- #donor-tables-wrapper table {
2633
- width: 100%;
2634
- text-align: center; }
2635
-
2636
- #donor-tables-wrapper th {
2637
- text-align: center; }
2638
-
2639
- #donor-tables-wrapper .donations tr > th:first-child,
2640
- #donor-tables-wrapper .donations tr > td:first-child,
2641
- #donor-tables-wrapper .emails tr > th:first-child,
2642
- #donor-tables-wrapper .emails tr > td:first-child {
2643
- text-align: right; }
2644
-
2645
- #donor-tables-wrapper .donations tr > td:only-child {
2646
- text-align: center; }
2647
-
2648
- #donor-notes-wrapper {
2649
- min-height: 50px; }
2650
-
2651
- .donor-notes-header span, .donor-notes-header img {
2652
- font-weight: 600;
2653
- line-height: 30px;
2654
- vertical-align: middle; }
2655
-
2656
- .donor-note-input {
2657
- width: 100%;
2658
- margin-bottom: 5px; }
2659
-
2660
- #give-donor-notes div:nth-of-type(even) {
2661
- background-color: #f9f9f9; }
2662
-
2663
- #give-donor-notes .donor-note-wrapper {
2664
- border-bottom: 1px solid #f9f9f9;
2665
- min-height: 38px;
2666
- padding: 0; }
2667
- #give-donor-notes .donor-note-wrapper .note-content-wrap {
2668
- padding: 10px 12px;
2669
- line-height: 20px;
2670
- font-size: 14px; }
2671
-
2672
- #give-donor-notes .give-no-donor-notes {
2673
- text-align: center;
2674
- padding: 20px; }
2675
-
2676
- .donor-note-wrapper span {
2677
- display: block; }
2678
-
2679
- .delete-donor {
2680
- text-align: center; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2681
 
2682
  /**
2683
  * Give Admin Buttons SCSS
@@ -2904,7 +2869,8 @@ div.sc-shortcode {
2904
  height: 15px;
2905
  width: 95%;
2906
  border-radius: 4px;
2907
- overflow: hidden; }
 
2908
  .give-progress > div {
2909
  height: 100%;
2910
  width: 0; }
@@ -2930,6 +2896,30 @@ div.sc-shortcode {
2930
  .admin-color-sunrise .give-progress div {
2931
  background: #dd823b; }
2932
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2933
  /**
2934
  * Give Updates Panel SCSS
2935
  *
60
  /**
61
  * Give CSS Variables
62
  */
63
+ /*! Hint.css - v2.5.0 - 2017-04-23
64
+ * http://kushagragour.in/lab/hint/
65
+ * Copyright (c) 2017 Kushagra Gour */
66
+ [class*=hint--] {
67
+ position: relative;
68
+ display: inline-block; }
69
+
70
+ [class*=hint--]:after, [class*=hint--]:before {
 
 
 
 
 
71
  position: absolute;
72
+ -webkit-transform: translate3d(0, 0, 0);
73
+ -moz-transform: translate3d(0, 0, 0);
74
+ transform: translate3d(0, 0, 0);
75
+ visibility: hidden;
76
+ opacity: 0;
77
+ z-index: 1000000;
78
+ pointer-events: none;
79
+ -webkit-transition: .3s ease;
80
+ -moz-transition: .3s ease;
81
+ transition: .3s ease;
82
+ -webkit-transition-delay: 0s;
83
+ -moz-transition-delay: 0s;
84
+ transition-delay: 0s; }
85
+
86
+ [class*=hint--]:hover:after, [class*=hint--]:hover:before {
87
+ visibility: visible;
88
+ opacity: 1;
89
+ -webkit-transition-delay: .1s;
90
+ -moz-transition-delay: .1s;
91
+ transition-delay: .1s; }
92
+
93
+ [class*=hint--]:before {
94
+ content: '';
95
+ position: absolute;
96
+ background: 100% 0;
97
+ border: 6px solid transparent;
98
+ z-index: 1000001; }
99
+
100
+ [class*=hint--]:after {
101
+ background: #383838;
102
+ color: #fff;
103
+ padding: 8px 10px;
104
+ font-size: 12px;
105
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
106
  line-height: 12px;
107
+ white-space: nowrap;
108
+ text-shadow: 0 -1px 0 #000;
109
+ box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.3); }
110
 
111
+ [class*=hint--][aria-label]:after {
112
+ content: attr(aria-label); }
 
 
 
 
113
 
114
+ [class*=hint--][data-hint]:after {
115
+ content: attr(data-hint); }
 
 
 
 
116
 
117
+ [aria-label='']:after, [aria-label='']:before, [data-hint='']:after, [data-hint='']:before {
118
+ display: none !important; }
119
 
120
+ .hint--top-left:before, .hint--top-right:before, .hint--top:before {
121
+ border-top-color: #383838; }
 
 
 
 
 
 
 
 
122
 
123
+ .hint--bottom-left:before, .hint--bottom-right:before, .hint--bottom:before {
124
+ border-bottom-color: #383838; }
 
 
125
 
126
+ .hint--top:after, .hint--top:before {
127
+ bottom: 100%;
128
+ right: 50%; }
129
 
130
+ .hint--top:before {
131
+ margin-bottom: -11px;
132
+ right: calc(50% - 6px); }
 
 
 
133
 
134
+ .hint--top:after {
135
+ -webkit-transform: translateX(50%);
136
+ -moz-transform: translateX(50%);
137
+ transform: translateX(50%); }
 
138
 
139
+ .hint--top:hover:before {
140
+ -webkit-transform: translateY(-8px);
141
+ -moz-transform: translateY(-8px);
142
+ transform: translateY(-8px); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
+ .hint--top:hover:after {
145
+ -webkit-transform: translateX(50%) translateY(-8px);
146
+ -moz-transform: translateX(50%) translateY(-8px);
147
+ transform: translateX(50%) translateY(-8px); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
 
149
+ .hint--bottom:after, .hint--bottom:before {
150
+ top: 100%;
151
+ right: 50%; }
152
+
153
+ .hint--bottom:before {
154
+ margin-top: -11px;
155
+ right: calc(50% - 6px); }
156
+
157
+ .hint--bottom:after {
158
+ -webkit-transform: translateX(50%);
159
+ -moz-transform: translateX(50%);
160
+ transform: translateX(50%); }
161
+
162
+ .hint--bottom:hover:before {
163
+ -webkit-transform: translateY(8px);
164
+ -moz-transform: translateY(8px);
165
+ transform: translateY(8px); }
166
+
167
+ .hint--bottom:hover:after {
168
+ -webkit-transform: translateX(50%) translateY(8px);
169
+ -moz-transform: translateX(50%) translateY(8px);
170
+ transform: translateX(50%) translateY(8px); }
171
+
172
+ .hint--right:before {
173
+ border-left-color: #383838;
174
+ margin-right: -11px;
175
+ margin-bottom: -6px; }
176
+
177
+ .hint--right:after {
178
+ margin-bottom: -14px; }
179
+
180
+ .hint--right:after, .hint--right:before {
181
+ right: 100%;
182
+ bottom: 50%; }
183
+
184
+ .hint--right:hover:after, .hint--right:hover:before {
185
+ -webkit-transform: translateX(-8px);
186
+ -moz-transform: translateX(-8px);
187
+ transform: translateX(-8px); }
188
+
189
+ .hint--left:before {
190
+ border-right-color: #383838;
191
+ margin-left: -11px;
192
+ margin-bottom: -6px; }
193
+
194
+ .hint--left:after {
195
+ margin-bottom: -14px; }
196
+
197
+ .hint--left:after, .hint--left:before {
198
+ left: 100%;
199
+ bottom: 50%; }
200
+
201
+ .hint--left:hover:after, .hint--left:hover:before {
202
+ -webkit-transform: translateX(8px);
203
+ -moz-transform: translateX(8px);
204
+ transform: translateX(8px); }
205
+
206
+ .hint--top-left:after, .hint--top-left:before {
207
+ bottom: 100%;
208
+ right: 50%; }
209
+
210
+ .hint--top-left:before {
211
+ margin-bottom: -11px;
212
+ right: calc(50% - 6px); }
213
+
214
+ .hint--top-left:after {
215
+ -webkit-transform: translateX(100%);
216
+ -moz-transform: translateX(100%);
217
+ transform: translateX(100%);
218
+ margin-right: 12px; }
219
+
220
+ .hint--top-left:hover:before {
221
+ -webkit-transform: translateY(-8px);
222
+ -moz-transform: translateY(-8px);
223
+ transform: translateY(-8px); }
224
+
225
+ .hint--top-left:hover:after {
226
+ -webkit-transform: translateX(100%) translateY(-8px);
227
+ -moz-transform: translateX(100%) translateY(-8px);
228
+ transform: translateX(100%) translateY(-8px); }
229
+
230
+ .hint--top-right:after, .hint--top-right:before {
231
+ bottom: 100%;
232
+ right: 50%; }
233
+
234
+ .hint--top-right:before {
235
+ margin-bottom: -11px;
236
+ right: calc(50% - 6px); }
237
+
238
+ .hint--top-right:after {
239
+ -webkit-transform: translateX(0);
240
+ -moz-transform: translateX(0);
241
+ transform: translateX(0);
242
+ margin-right: -12px; }
243
+
244
+ .hint--top-right:hover:after, .hint--top-right:hover:before {
245
+ -webkit-transform: translateY(-8px);
246
+ -moz-transform: translateY(-8px);
247
+ transform: translateY(-8px); }
248
+
249
+ .hint--bottom-left:after, .hint--bottom-left:before {
250
+ top: 100%;
251
+ right: 50%; }
252
 
253
+ .hint--bottom-left:before {
254
+ margin-top: -11px;
255
+ right: calc(50% - 6px); }
256
 
257
+ .hint--bottom-left:after {
258
+ -webkit-transform: translateX(100%);
259
+ -moz-transform: translateX(100%);
260
+ transform: translateX(100%);
261
+ margin-right: 12px; }
 
 
 
262
 
263
+ .hint--bottom-left:hover:before {
264
+ -webkit-transform: translateY(8px);
265
+ -moz-transform: translateY(8px);
266
+ transform: translateY(8px); }
267
 
268
+ .hint--bottom-left:hover:after {
269
+ -webkit-transform: translateX(100%) translateY(8px);
270
+ -moz-transform: translateX(100%) translateY(8px);
271
+ transform: translateX(100%) translateY(8px); }
272
 
273
+ .hint--bottom-right:after, .hint--bottom-right:before {
274
+ top: 100%;
275
+ right: 50%; }
276
+
277
+ .hint--bottom-right:before {
278
+ margin-top: -11px;
279
+ right: calc(50% - 6px); }
280
+
281
+ .hint--bottom-right:after {
282
+ -webkit-transform: translateX(0);
283
+ -moz-transform: translateX(0);
284
+ transform: translateX(0);
285
+ margin-right: -12px; }
286
+
287
+ .hint--bottom-right:hover:after, .hint--bottom-right:hover:before {
288
+ -webkit-transform: translateY(8px);
289
+ -moz-transform: translateY(8px);
290
+ transform: translateY(8px); }
291
+
292
+ .hint--large:after, .hint--medium:after, .hint--small:after {
293
+ white-space: normal;
294
+ line-height: 1.4em;
295
+ word-wrap: break-word; }
296
 
297
+ .hint--small:after {
298
+ width: 80px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
 
300
+ .hint--medium:after {
301
+ width: 150px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
 
303
+ .hint--large:after {
304
+ width: 300px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
 
306
+ .hint--error:after {
307
+ background-color: #b34e4d;
308
+ text-shadow: 0 -1px 0 #592726; }
 
 
309
 
310
+ .hint--error.hint--top-left:before, .hint--error.hint--top-right:before, .hint--error.hint--top:before {
311
+ border-top-color: #b34e4d; }
 
 
312
 
313
+ .hint--error.hint--bottom-left:before, .hint--error.hint--bottom-right:before, .hint--error.hint--bottom:before {
314
+ border-bottom-color: #b34e4d; }
 
 
315
 
316
+ .hint--error.hint--left:before {
317
+ border-right-color: #b34e4d; }
 
 
 
 
 
318
 
319
+ .hint--error.hint--right:before {
320
+ border-left-color: #b34e4d; }
 
321
 
322
+ .hint--warning:after {
323
+ background-color: #c09854;
324
+ text-shadow: 0 -1px 0 #6c5328; }
 
325
 
326
+ .hint--warning.hint--top-left:before, .hint--warning.hint--top-right:before, .hint--warning.hint--top:before {
327
+ border-top-color: #c09854; }
 
 
 
 
328
 
329
+ .hint--warning.hint--bottom-left:before, .hint--warning.hint--bottom-right:before, .hint--warning.hint--bottom:before {
330
+ border-bottom-color: #c09854; }
 
331
 
332
+ .hint--warning.hint--left:before {
333
+ border-right-color: #c09854; }
334
+
335
+ .hint--warning.hint--right:before {
336
+ border-left-color: #c09854; }
337
+
338
+ .hint--info:after {
339
+ background-color: #3986ac;
340
+ text-shadow: 0 -1px 0 #1a3c4d; }
341
+
342
+ .hint--info.hint--top-left:before, .hint--info.hint--top-right:before, .hint--info.hint--top:before {
343
+ border-top-color: #3986ac; }
344
+
345
+ .hint--info.hint--bottom-left:before, .hint--info.hint--bottom-right:before, .hint--info.hint--bottom:before {
346
+ border-bottom-color: #3986ac; }
347
+
348
+ .hint--info.hint--left:before {
349
+ border-right-color: #3986ac; }
350
+
351
+ .hint--info.hint--right:before {
352
+ border-left-color: #3986ac; }
353
+
354
+ .hint--success:after {
355
+ background-color: #458746;
356
+ text-shadow: 0 -1px 0 #1a321a; }
357
+
358
+ .hint--success.hint--top-left:before, .hint--success.hint--top-right:before, .hint--success.hint--top:before {
359
+ border-top-color: #458746; }
360
+
361
+ .hint--success.hint--bottom-left:before, .hint--success.hint--bottom-right:before, .hint--success.hint--bottom:before {
362
+ border-bottom-color: #458746; }
363
+
364
+ .hint--success.hint--left:before {
365
+ border-right-color: #458746; }
366
+
367
+ .hint--success.hint--right:before {
368
+ border-left-color: #458746; }
369
+
370
+ .hint--always:after, .hint--always:before {
371
+ opacity: 1;
372
+ visibility: visible; }
373
 
374
+ .hint--always.hint--top:before {
375
+ -webkit-transform: translateY(-8px);
376
+ -moz-transform: translateY(-8px);
377
+ transform: translateY(-8px); }
378
+
379
+ .hint--always.hint--top:after {
380
+ -webkit-transform: translateX(50%) translateY(-8px);
381
+ -moz-transform: translateX(50%) translateY(-8px);
382
+ transform: translateX(50%) translateY(-8px); }
383
+
384
+ .hint--always.hint--top-left:before {
385
+ -webkit-transform: translateY(-8px);
386
+ -moz-transform: translateY(-8px);
387
+ transform: translateY(-8px); }
388
+
389
+ .hint--always.hint--top-left:after {
390
+ -webkit-transform: translateX(100%) translateY(-8px);
391
+ -moz-transform: translateX(100%) translateY(-8px);
392
+ transform: translateX(100%) translateY(-8px); }
393
+
394
+ .hint--always.hint--top-right:after, .hint--always.hint--top-right:before {
395
+ -webkit-transform: translateY(-8px);
396
+ -moz-transform: translateY(-8px);
397
+ transform: translateY(-8px); }
398
+
399
+ .hint--always.hint--bottom:before {
400
+ -webkit-transform: translateY(8px);
401
+ -moz-transform: translateY(8px);
402
+ transform: translateY(8px); }
403
+
404
+ .hint--always.hint--bottom:after {
405
+ -webkit-transform: translateX(50%) translateY(8px);
406
+ -moz-transform: translateX(50%) translateY(8px);
407
+ transform: translateX(50%) translateY(8px); }
408
+
409
+ .hint--always.hint--bottom-left:before {
410
+ -webkit-transform: translateY(8px);
411
+ -moz-transform: translateY(8px);
412
+ transform: translateY(8px); }
413
+
414
+ .hint--always.hint--bottom-left:after {
415
+ -webkit-transform: translateX(100%) translateY(8px);
416
+ -moz-transform: translateX(100%) translateY(8px);
417
+ transform: translateX(100%) translateY(8px); }
418
+
419
+ .hint--always.hint--bottom-right:after, .hint--always.hint--bottom-right:before {
420
+ -webkit-transform: translateY(8px);
421
+ -moz-transform: translateY(8px);
422
+ transform: translateY(8px); }
423
+
424
+ .hint--always.hint--left:after, .hint--always.hint--left:before {
425
+ -webkit-transform: translateX(8px);
426
+ -moz-transform: translateX(8px);
427
+ transform: translateX(8px); }
428
+
429
+ .hint--always.hint--right:after, .hint--always.hint--right:before {
430
+ -webkit-transform: translateX(-8px);
431
+ -moz-transform: translateX(-8px);
432
+ transform: translateX(-8px); }
433
+
434
+ .hint--rounded:after {
435
+ border-radius: 4px; }
436
+
437
+ .hint--no-animate:after, .hint--no-animate:before {
438
+ -webkit-transition-duration: 0s;
439
+ -moz-transition-duration: 0s;
440
+ transition-duration: 0s; }
441
+
442
+ .hint--bounce:after, .hint--bounce:before {
443
+ -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, -webkit-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
444
+ -moz-transition: opacity 0.3s ease, visibility 0.3s ease, -moz-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
445
+ transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24); }
446
 
447
  /**
448
  * Give Frontend Fonts SCSS
742
  .give-money-symbol-after {
743
  margin-right: -5px; }
744
 
745
+ .give_options_panel input[type="text"],
746
+ .give_options_panel input[type="email"] {
747
  padding: 5px;
748
  width: 100%; }
749
 
1542
  .give-settings-page table table input[type="text"] {
1543
  width: 15em; }
1544
 
1545
+ .give-settings-page .give-repeat-setting-field {
1546
+ margin: 10px 0; }
1547
+
1548
+ .give-settings-page .give-remove-setting-field {
1549
+ width: 25px;
1550
+ height: 25px;
1551
+ padding: 0;
1552
+ text-align: center;
1553
+ line-height: 22px;
1554
+ font-size: 21px;
1555
+ font-weight: 300;
1556
+ cursor: pointer;
1557
+ margin-right: 20px;
1558
+ display: inline-block; }
1559
+
1560
+ .give-settings-page .give-remove-setting-field:hover {
1561
+ background-color: red;
1562
+ color: white;
1563
+ border-radius: 30px; }
1564
+
1565
+ .give-settings-page .give-forminp p:first-child .give-remove-setting-field {
1566
+ display: none; }
1567
+
1568
+ .give-settings-page .export-options-table tr.give-import-option:nth-child(odd) {
1569
+ background: #f4f3f3; }
1570
+ .give-settings-page .export-options-table tr.give-import-option:nth-child(odd) th {
1571
+ vertical-align: middle; }
1572
+
1573
+ .give-settings-page .export-options-table .give-import-dropdown:nth-child(2),
1574
+ .give-settings-page .export-options-table tr.give-import-option th:first-child {
1575
+ width: 250px; }
1576
+
1577
  .give-setting-tab-header {
1578
  clear: both;
1579
  overflow: hidden;
1580
  margin: 30px 0; }
1581
  .give-setting-tab-header h2 {
1582
  margin-top: 8px; }
1583
+ .give-setting-tab-header p {
1584
+ margin-bottom: 0; }
1585
 
1586
  .give-radio-inline ul {
1587
  margin-top: 0; }
1669
  .give-email-tags-wrap .give_price_tag {
1670
  display: none; }
1671
 
1672
+ .give-settings-email-settings-section .tablenav {
1673
+ display: none; }
1674
+
1675
+ .give-settings-email-settings-section .give-setting-tab-header-emails {
1676
+ margin: 0 0 20px; }
1677
+ .give-settings-email-settings-section .give-setting-tab-header-emails hr {
1678
+ display: none; }
1679
+
1680
+ .give-settings-email-settings-section .tablenav.bottom + .give-setting-tab-header-emails {
1681
+ margin: 20px 0; }
1682
+ .give-settings-email-settings-section .tablenav.bottom + .give-setting-tab-header-emails hr {
1683
+ display: block; }
1684
+
1685
+ .giveemailnotifications .check-column {
1686
+ padding: 13px 20px 0 10px !important; }
1687
+
1688
+ .giveemailnotifications td.check-column input {
1689
+ display: none; }
1690
+
1691
+ .giveemailnotifications th.check-column .give-email-notification-status {
1692
+ color: white;
1693
+ cursor: pointer; }
1694
+ .giveemailnotifications th.check-column .give-email-notification-status[data-edit="1"] i.dashicons {
1695
+ border-radius: 1em;
1696
+ padding: 2px; }
1697
+
1698
+ .giveemailnotifications th.check-column .give-email-notification-enabled .dashicons-yes,
1699
+ .giveemailnotifications th.check-column .give-email-notification-disabled:hover .dashicons-no-alt {
1700
+ background: #46b450; }
1701
+
1702
+ .giveemailnotifications th.check-column .give-email-notification-enabled .dashicons-lock {
1703
+ color: #46b450; }
1704
+
1705
+ .giveemailnotifications th.check-column .give-email-notification-disabled .dashicons-no-alt,
1706
+ .giveemailnotifications th.check-column .give-email-notification-enabled:hover .dashicons-yes {
1707
+ background: #bbbbbb; }
1708
+
1709
+ .giveemailnotifications th.check-column .give-email-notification-disabled .dashicons-lock {
1710
+ color: #bbbbbb; }
1711
+
1712
+ .giveemailnotifications th.check-column .dashicons-no-alt:hover:before {
1713
+ content: "\f147" !important; }
1714
+
1715
+ .giveemailnotifications th.check-column .dashicons-yes:hover:before {
1716
+ content: "\f335" !important; }
1717
+
1718
+ .giveemailnotifications .spinner.is-active {
1719
+ margin: 0 2px 0 0;
1720
+ float: none; }
1721
+
1722
  #system-info-textarea {
1723
  width: 800px;
1724
  height: 600px;
1904
  border-bottom: 0;
1905
  position: absolute;
1906
  top: 35px;
1907
+ left: 0; }
1908
  .give-sub-nav-tab-wrapper nav.give-sub-nav-tab a {
1909
  float: right;
1910
+ background: white;
1911
  padding: 6px 10px;
1912
  clear: both;
1913
  text-decoration: none;
2450
  * @copyright Copyright (c) 2016, WordImpress
2451
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
2452
  */
2453
+ .give_forms_page_give-donors {
2454
+ /*
2455
+ * Donor address metabox
2456
+ */ }
2457
+ .give_forms_page_give-donors .wrap > h2 {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2458
  margin-bottom: 15px; }
2459
+ .give_forms_page_give-donors .nav-tab-wrapper .dashicons {
2460
+ position: relative;
2461
+ top: 2px;
2462
+ margin: 0 0 0 3px; }
2463
+ .give_forms_page_give-donors #give-donors-filter {
2464
+ position: relative; }
2465
+ .give_forms_page_give-donors #give-donors-filter p.search-box {
2466
+ margin: 0; }
2467
+ .give_forms_page_give-donors #give-donors-search-filter {
2468
+ display: block;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2469
  overflow: hidden; }
2470
+ .give_forms_page_give-donors #give-donor-card-wrapper {
2471
+ margin-right: -1px;
2472
+ z-index: 2;
2473
+ min-height: 200px; }
2474
+ .give_forms_page_give-donors #give-donor-card-wrapper input {
2475
+ font-weight: normal; }
2476
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-section {
2477
+ border-bottom: 1px solid #eee;
2478
+ margin-bottom: 10px; }
2479
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-section table {
2480
+ margin-bottom: 0; }
2481
+ .give_forms_page_give-donors #give-donor-card-wrapper > div:first-child {
2482
+ padding-top: 20px; }
2483
+ .give_forms_page_give-donors #give-donor-card-wrapper > div:last-child {
2484
+ padding-bottom: 20px;
2485
+ border: none; }
2486
+ .give_forms_page_give-donors #give-donor-card-wrapper .avatar-wrap {
2487
+ padding: 0 0 15px 15px;
2488
+ text-align: center;
2489
+ float: right; }
2490
+ .give_forms_page_give-donors #give-donor-card-wrapper .avatar-wrap img {
2491
+ border-radius: 3px; }
2492
+ .give_forms_page_give-donors #give-donor-card-wrapper a.delete {
2493
+ text-decoration: none;
2494
+ color: #ff0000;
2495
+ margin-left: 5px; }
2496
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-since {
2497
+ margin: 10px 0;
2498
+ font-size: 16px; }
2499
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-id {
2500
+ display: inline-block;
2501
+ font-size: 24px;
2502
+ font-weight: 600;
2503
+ margin-left: 10px; }
2504
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-name-wrap {
2505
+ display: inline-block; }
2506
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-edit-link {
2507
+ margin-bottom: 15px; }
2508
+ .give_forms_page_give-donors .donor-main-wrapper {
2509
+ clear: both;
2510
+ margin: 0 0 20px; }
2511
+ @media (max-width: 655px) {
2512
+ .give_forms_page_give-donors .donor-main-wrapper {
2513
+ width: 100%; } }
2514
+ .give_forms_page_give-donors .donor-main-wrapper table {
2515
  margin: 0; }
2516
+ .give_forms_page_give-donors .donor-main-wrapper input {
2517
+ width: 200px; }
2518
+ .give_forms_page_give-donors #donor-summary {
2519
+ padding: 0 20px; }
2520
+ .give_forms_page_give-donors #donor-summary:after {
2521
+ font-family: "dashicons";
2522
+ content: "\f110";
2523
+ position: absolute;
2524
+ top: 10px;
2525
+ left: 10px;
2526
+ font-size: 100px;
2527
+ color: #F0F0F0;
2528
+ z-index: 0; }
2529
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper {
2530
+ width: 202px; }
2531
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper span[data-key="line2"] {
2532
+ display: table;
2533
+ clear: both; }
2534
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper select {
2535
+ width: 200px; }
2536
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-info {
2537
+ min-height: 185px; }
2538
+ .give_forms_page_give-donors #give-donor-card-wrapper .info-wrapper {
2539
+ min-height: 125px; }
2540
+ .give_forms_page_give-donors .donor-info .donor-name {
2541
+ font-size: 24px;
2542
+ font-weight: 600; }
2543
+ .give_forms_page_give-donors #disconnect-donor, .give_forms_page_give-donors #view-user-profile {
2544
+ font-size: 12px;
2545
+ font-weight: normal;
2546
  text-decoration: none; }
2547
+ .give_forms_page_give-donors #donor-edit-actions {
2548
+ text-align: center;
2549
+ margin-bottom: 20px;
2550
+ line-height: 28px; }
2551
+ .give_forms_page_give-donors #donor-edit-actions .button-secondary {
2552
+ margin-left: 10px; }
2553
+ .give_forms_page_give-donors #give-donor-card-wrapper .edit-item {
2554
+ display: none; }
2555
+ .give_forms_page_give-donors #give-donor-card-wrapper .give_user_search_results {
2556
+ right: 1px;
2557
+ top: 16px; }
2558
+ .give_forms_page_give-donors #give-donor-card-wrapper .give_user_search_results ul {
2559
+ width: 200px; }
2560
+ .give_forms_page_give-donors #donor-stats-wrapper {
2561
+ margin: 0 auto;
2562
+ text-align: center;
2563
+ padding: 15px; }
2564
+ .give_forms_page_give-donors #donor-stats-wrapper ul {
2565
+ margin: 0;
2566
+ padding: 0;
2567
+ overflow: hidden; }
2568
+ .give_forms_page_give-donors #donor-stats-wrapper ul li {
2569
+ width: 50%;
2570
+ float: right;
2571
+ line-height: 22px;
2572
+ font-size: 14px;
2573
+ margin: 0; }
2574
+ .give_forms_page_give-donors #donor-stats-wrapper a {
2575
+ text-decoration: none; }
2576
+ .give_forms_page_give-donors #donor-stats-wrapper .dashicons {
2577
+ color: #888; }
2578
+ .give_forms_page_give-donors #donor-tables-wrapper table {
2579
+ width: 100%;
2580
+ text-align: center; }
2581
+ .give_forms_page_give-donors #donor-tables-wrapper th {
2582
+ text-align: center; }
2583
+ .give_forms_page_give-donors #donor-tables-wrapper .donations tr > th:first-child,
2584
+ .give_forms_page_give-donors #donor-tables-wrapper .donations tr > td:first-child,
2585
+ .give_forms_page_give-donors #donor-tables-wrapper .emails tr > th:first-child,
2586
+ .give_forms_page_give-donors #donor-tables-wrapper .emails tr > td:first-child {
2587
+ text-align: right; }
2588
+ .give_forms_page_give-donors #donor-tables-wrapper .donations tr > td:only-child {
2589
+ text-align: center; }
2590
+ .give_forms_page_give-donors #donor-notes-wrapper {
2591
+ min-height: 50px; }
2592
+ .give_forms_page_give-donors .donor-notes-header span, .give_forms_page_give-donors .donor-notes-header img {
2593
+ font-weight: 600;
2594
+ line-height: 30px;
2595
+ vertical-align: middle; }
2596
+ .give_forms_page_give-donors .donor-note-input {
2597
+ width: 100%;
2598
+ margin-bottom: 5px; }
2599
+ .give_forms_page_give-donors #give-donor-notes div:nth-of-type(even) {
2600
+ background-color: #f9f9f9; }
2601
+ .give_forms_page_give-donors #give-donor-notes .donor-note-wrapper {
2602
+ border-bottom: 1px solid #f9f9f9;
2603
+ min-height: 38px;
2604
+ padding: 0; }
2605
+ .give_forms_page_give-donors #give-donor-notes .donor-note-wrapper .note-content-wrap {
2606
+ padding: 10px 12px;
2607
+ line-height: 20px;
2608
+ font-size: 14px; }
2609
+ .give_forms_page_give-donors #give-donor-notes .give-no-donor-notes {
2610
+ text-align: center;
2611
+ padding: 20px; }
2612
+ .give_forms_page_give-donors .donor-note-wrapper span {
2613
+ display: block; }
2614
+ .give_forms_page_give-donors .delete-donor {
2615
+ text-align: center; }
2616
+ .give_forms_page_give-donors .give-lock-block {
2617
+ margin-right: -25px;
2618
+ text-decoration: none;
2619
+ font-size: 14px;
2620
+ margin-left: 3px; }
2621
+ .give_forms_page_give-donors .give-lock-block i {
2622
+ color: #000000;
2623
+ font-size: 14px; }
2624
+ .give_forms_page_give-donors #donor-address-wrapper .give-no-address-message {
2625
+ margin: 0.5rem 1%;
2626
+ line-height: 3.4em; }
2627
+ .give_forms_page_give-donors #donor-address-wrapper .add-new-address {
2628
+ margin: 0.5rem 1% !important; }
2629
+ .give_forms_page_give-donors #donor-address-wrapper .add-new-address-form-hidden {
2630
+ position: absolute;
2631
+ left: 13px;
2632
+ right: 13px;
2633
+ top: 0;
2634
+ visibility: hidden; }
2635
+ .give_forms_page_give-donors #donor-address-wrapper .all-address .address {
2636
+ min-height: 146px;
2637
+ border: 1px solid #dad9d9;
2638
+ padding: 9px;
2639
+ border-radius: 5px;
2640
+ background-color: white; }
2641
+ .give_forms_page_give-donors #donor-address-wrapper .all-address .address .address-number-label {
2642
+ color: gray;
2643
+ cursor: default; }
2644
+ .give_forms_page_give-donors #donor-address-wrapper .all-address .address a {
2645
+ text-decoration: none; }
2646
 
2647
  /**
2648
  * Give Admin Buttons SCSS
2869
  height: 15px;
2870
  width: 95%;
2871
  border-radius: 4px;
2872
+ overflow: hidden;
2873
+ background-color: whitesmoke; }
2874
  .give-progress > div {
2875
  height: 100%;
2876
  width: 0; }
2896
  .admin-color-sunrise .give-progress div {
2897
  background: #dd823b; }
2898
 
2899
+ /**
2900
+ * Spinner
2901
+ */
2902
+ .give-spinner-wrapper {
2903
+ position: absolute;
2904
+ right: 0;
2905
+ left: 0;
2906
+ bottom: 0;
2907
+ top: 0;
2908
+ background: rgba(245, 245, 245, 0.57);
2909
+ z-index: 1;
2910
+ display: none; }
2911
+ .give-spinner-wrapper.is-active {
2912
+ display: inline-block; }
2913
+ .give-spinner-wrapper .aligncenter {
2914
+ position: absolute;
2915
+ top: 50%;
2916
+ right: 50%;
2917
+ margin: 10px 0 0 10px; }
2918
+
2919
+ .give-spinner.spinner.is-active {
2920
+ margin: 0 2px 0 0;
2921
+ float: none; }
2922
+
2923
  /**
2924
  * Give Updates Panel SCSS
2925
  *
assets/css/give-admin-rtl.min.css CHANGED
@@ -6,4 +6,6 @@
6
  * @subpackage: SCSS/Admin
7
  * @copyright: Copyright (c) 2016, WordImpress
8
  * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
- */#qtip-overlay.blurs,.qtip-close{cursor:pointer}.give-clearfix:after,.type-download .addon-content:after{clear:both}.give-clearfix:after,.give-clearfix:before{content:" ";display:table}#give-payments-filter .give-payment-id,.give-item-label-gray{background-color:#929292}.give-item-label-orange{background-color:#ffba00}.give-item-label{padding:.2em .4em .3em;font-size:11px;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.give-item-label:hover{color:#fff;text-decoration:none}.qtip{position:absolute;right:-28000px;top:-28000px;display:none;max-width:280px;min-width:50px;font-size:10.5px;line-height:12px;direction:rtl;box-shadow:none;padding:0}.qtip-content,.qtip-titlebar{position:relative;overflow:hidden}.qtip-content{padding:5px 9px;text-align:right;word-wrap:break-word}.qtip-titlebar{padding:5px 10px 5px 35px;border-width:0 0 1px;font-weight:700}.qtip-titlebar+.qtip-content{border-top-width:0!important}.qtip-close{position:absolute;left:-9px;top:-9px;z-index:11;outline:0;border:1px solid transparent}.qtip-titlebar .qtip-close{left:4px;top:50%;margin-top:-9px}* html .qtip-titlebar .qtip-close{top:16px}.qtip-icon .ui-icon,.qtip-titlebar .ui-icon{display:block;text-indent:-1000em;direction:rtl}.qtip-icon,.qtip-icon .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-decoration:none}.qtip-icon .ui-icon{width:18px;height:14px;line-height:14px;text-align:center;text-indent:0;font:normal 700 10px/13px Tahoma,sans-serif;color:inherit;background:-100em -100em no-repeat}.qtip-default{border:1px solid #F1D031;background-color:#FFFFA3;color:#555}.qtip-default .qtip-titlebar{background-color:#FFEF93}.qtip-default .qtip-icon{border-color:#CCC;background:#F1F1F1;color:#777}.qtip-default .qtip-titlebar .qtip-close{border-color:#AAA;color:#111}/*! Light tooltip style */.qtip-light{background-color:#fff;border-color:#E2E2E2;color:#454545}.qtip-light .qtip-titlebar{background-color:#f1f1f1}/*! Dark tooltip style */.qtip-dark{background-color:#505050;border-color:#303030;color:#f3f3f3}.qtip-dark .qtip-titlebar{background-color:#404040}.qtip-dark .qtip-icon{border-color:#444}.qtip-dark .qtip-titlebar .ui-state-hover{border-color:#303030}/*! Cream tooltip style */.qtip-cream{background-color:#FBF7AA;border-color:#F9E98E;color:#A27D35}.qtip-red,.qtip-red .qtip-icon,.qtip-red .qtip-titlebar .ui-state-hover{border-color:#D95252}.qtip-cream .qtip-titlebar{background-color:#F0DE7D}.qtip-cream .qtip-close .qtip-icon{background-position:-82px 0}/*! Red tooltip style */.qtip-red{background-color:#F78B83;color:#912323}.qtip-red .qtip-titlebar{background-color:#F06D65}.qtip-red .qtip-close .qtip-icon{background-position:-102px 0}/*! Green tooltip style */.qtip-green{background-color:#CAED9E;border-color:#90D93F;color:#3F6219}.qtip-green .qtip-titlebar{background-color:#B0DE78}.qtip-green .qtip-close .qtip-icon{background-position:-42px 0}/*! Blue tooltip style */.qtip-blue{background-color:#E5F6FE;border-color:#ADD9ED;color:#5E99BD}.qtip-blue .qtip-titlebar{background-color:#D0E9F5}.qtip-blue .qtip-close .qtip-icon{background-position:-2px 0}.qtip-shadow{-webkit-box-shadow:-1px 1px 3px 1px rgba(0,0,0,.15);-moz-box-shadow:-1px 1px 3px 1px rgba(0,0,0,.15);box-shadow:-1px 1px 3px 1px rgba(0,0,0,.15)}.qtip-bootstrap,.qtip-rounded,.qtip-tipsy{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.qtip-rounded .qtip-titlebar{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.qtip-youtube{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 3px #333;-moz-box-shadow:0 0 3px #333;box-shadow:0 0 3px #333;color:#fff;border:0 solid transparent;background:#4A4A4A;background-image:-webkit-gradient(linear,right top,right bottom,color-stop(0,#4A4A4A),color-stop(100%,#000));background-image:-webkit-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-moz-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-ms-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-o-linear-gradient(top,#4A4A4A 0,#000 100%)}.qtip-youtube .qtip-titlebar{background-color:transparent}.qtip-youtube .qtip-content{padding:.75em;font:12px arial,sans-serif;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#4a4a4a, EndColorStr=#000000);-ms-filter:"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);"}.qtip-youtube .qtip-icon{border-color:#222}.qtip-youtube .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-jtools{background:#232323;background:rgba(0,0,0,.7);background-image:-webkit-gradient(linear,right top,right bottom,from(#717171),to(#232323));background-image:-moz-linear-gradient(top,#717171,#232323);background-image:-webkit-linear-gradient(top,#717171,#232323);background-image:-ms-linear-gradient(top,#717171,#232323);background-image:-o-linear-gradient(top,#717171,#232323);border:2px solid #f1f1f1;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 12px #333;-moz-box-shadow:0 0 12px #333;box-shadow:0 0 12px #333}.qtip-jtools .qtip-titlebar{background-color:transparent;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171, endColorstr=#4A4A4A);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)"}.qtip-jtools .qtip-content{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A, endColorstr=#232323);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)"}.qtip-jtools .qtip-content,.qtip-jtools .qtip-titlebar{background:0 0;color:#fff;border:0 dashed transparent}.qtip-jtools .qtip-icon{border-color:#555}.qtip-jtools .qtip-titlebar .ui-state-hover{border-color:#333}.qtip-cluetip{-webkit-box-shadow:-4px 4px 5px rgba(0,0,0,.4);-moz-box-shadow:-4px 4px 5px rgba(0,0,0,.4);box-shadow:-4px 4px 5px rgba(0,0,0,.4);background-color:#D9D9C2;color:#111;border:0 dashed transparent}.qtip-cluetip .qtip-titlebar{background-color:#87876A;color:#fff;border:0 dashed transparent}.qtip-cluetip .qtip-icon{border-color:#808064}.qtip-cluetip .qtip-titlebar .ui-state-hover{border-color:#696952;color:#696952}.qtip-tipsy{background:#000;background:rgba(0,0,0,.87);color:#fff;border:0 solid transparent;font-size:11px;font-family:'Lucida Grande',sans-serif;font-weight:700;line-height:16px;text-shadow:0 1px #000}.qtip-tipsy .qtip-titlebar{padding:6px 10px 0 35px;background-color:transparent}.qtip-tipsy .qtip-content{padding:6px 10px}.qtip-tipsy .qtip-icon{border-color:#222;text-shadow:none}.qtip-tipsy .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-tipped{border:3px solid #959FA9;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-color:#F9F9F9;color:#454545;font-weight:400;font-family:serif}.qtip-tipped .qtip-titlebar{border-bottom-width:0;color:#fff;background:#3A79B8;background-image:-webkit-gradient(linear,right top,right bottom,from(#3A79B8),to(#2E629D));background-image:-webkit-linear-gradient(top,#3A79B8,#2E629D);background-image:-moz-linear-gradient(top,#3A79B8,#2E629D);background-image:-ms-linear-gradient(top,#3A79B8,#2E629D);background-image:-o-linear-gradient(top,#3A79B8,#2E629D);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8, endColorstr=#2E629D);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)"}.qtip-tipped .qtip-icon{border:2px solid #285589;background:#285589}.qtip-tipped .qtip-icon .ui-icon{background-color:#FBFBFB;color:#555}.qtip-bootstrap{font-size:14px;line-height:20px;color:#333;padding:1px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.qtip-bootstrap .qtip-titlebar{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.qtip-bootstrap .qtip-titlebar .qtip-close{left:11px;top:45%;border-style:none}.qtip-bootstrap .qtip-content{padding:9px 14px}.qtip-bootstrap .qtip-icon{background:0 0}.qtip-bootstrap .qtip-icon .ui-icon{width:auto;height:auto;float:left;font-size:20px;font-weight:700;line-height:18px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}#qtip-overlay,#qtip-overlay div{top:0;width:100%;height:100%;right:0}.dashicons-give:before,[class*=" give-icon-"],[class^=give-icon-]{line-height:1;font-family:give-icomoon;font-style:normal;font-weight:400}.qtip-bootstrap .qtip-icon .ui-icon:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}.qtip:not(.ie9haxors) div.qtip-content,.qtip:not(.ie9haxors) div.qtip-titlebar{filter:none;-ms-filter:none}.qtip .qtip-tip{margin:0 auto;overflow:hidden;z-index:10}.qtip .qtip-tip,x:-o-prefocus{visibility:hidden}.qtip .qtip-tip,.qtip .qtip-tip .qtip-vml,.qtip .qtip-tip canvas{position:absolute;color:#123456;background:0 0;border:0 dashed transparent}.qtip .qtip-tip canvas{top:0;right:0}.qtip .qtip-tip .qtip-vml{behavior:url(#default#VML);display:inline-block;visibility:visible}#qtip-overlay{position:fixed}#qtip-overlay div{position:absolute;background-color:#000;opacity:.7;filter:alpha(opacity=70);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"}.qtipmodal-ie6fix{position:absolute!important}@font-face{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");font-weight:400;font-style:normal}[class*=" give-icon-"],[class^=give-icon-]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-icon-lamp:before{content:"\e603"}.give-icon-heart:before{content:"\e604"}.give-icon-question:before{content:"\e602"}.give-icon-info:before{content:"\e601"}.give-icon-new-tab:before{content:"\ea7e"}.give-icon-alert:before{content:"\f02d"}.give-icon-help:before{content:"\e606"}.give-icon-spinner:before{content:"\e605"}.give-icon-spinner2:before{content:"\e607"}.give-icon-plus:before{content:"\e040"}.give-icon-minus:before{content:"\e041"}.give-icon-locked:before{content:"\e600"}#dashboard_right_now .give-forms-count:before,.dashicons-give:before{font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;content:"\e800";speak:none;-moz-osx-font-smoothing:grayscale}.fa-spin{-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}@font-face{font-family:give-icomoon;font-weight:400;font-style:normal}.give-metabox-tabs li .give-icon:before{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:12px;vertical-align:top;line-height:20px;margin:0 0 0 5px}.give-metabox-tabs li .give-icon-default:before{content:"\e903"}.give-metabox-tabs li .give-icon-heart:before{content:"\e604"}.give-metabox-tabs li .give-icon-target:before{content:"\e901"}.give-metabox-tabs li .give-icon-display:before{content:"\e90c"}.give-metabox-tabs li .give-icon-edit:before{content:"\e902"}.give-metabox-tabs li .give-icon-checklist:before{position:relative;top:1px;content:"\e900"}.give-metabox-tabs li .give-icon-purse:before{content:"\e8df"}.give-metabox-tabs li .dashicons{font-size:14px;width:14px;line-height:20px}.give-grid-row{position:relative;width:100%}.give-grid-row [class^=give-grid-col]{float:right;margin:.5rem 1%;min-height:.125rem}.give-grid-row::after{content:"";display:table;clear:both}.give-grid-col-1{width:6.33333%}.give-grid-col-2{width:14.66667%}.give-grid-col-3{width:23%}.give-grid-col-4{width:31.33333%}.give-grid-col-5{width:39.66667%}.give-grid-col-6{width:48%}.give-grid-col-7{width:56.33333%}.give-grid-col-8{width:64.66667%}.give-grid-col-9{width:73%}.give-grid-col-10{width:81.33333%}.give-grid-col-11{width:89.66667%}.give-grid-col-12{width:98%}@media only screen and (max-width:33.75em){.give-grid-row [class^=give-grid-col]{width:98%}}#_give_donation_levels_repeat .cmb-group-title,#_give_donation_levels_repeat .cmb-row>.cmb-remove-group-row,#_give_donation_levels_repeat .cmb-row>.handlediv,.cmb-type-levels-id,.cmb2-id--give-custom-amount-minimum,.cmb2-id--give-custom-amount-text,.cmb2-id--give-display-style,.cmb2-id--give-form-content,.cmb2-id--give-levels-header,.cmb2-id--give-levels-header+.cmb-repeat-group-wrap,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-reveal-label,.cmb2-id--give-set-price,.give-hidden,.post-type-give_forms .tablenav #post-query-submit{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row .cmb2-radio-list label{font-size:12px}div.cmb-type-levels-repeater-header+div.cmb-repeat-group-wrap{padding:0!important;margin:0!important;min-width:100%;max-width:0}.cmb2-id--give-levels-header{padding:10px 12px 0!important;margin:0!important;background:#F7F7F7;border-bottom:none!important}.cmb2-id--give-levels-header .table-container{display:table;width:100%;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-right:1px solid #e9e9e9}.cmb2-id--give-levels-header .table-container>.table-row{display:table-row;background:#FCFCFC}.cmb2-id--give-levels-header .table-container>.table-row>.table-cell{display:table-cell;vertical-align:middle;padding:10px 15px;border-left:1px solid #e9e9e9}#_give_donation_levels_repeat .cmbhandle,.cmb2-id--give-levels-header .table-container>.table-row>.table-cell.col-id{display:none}#_give_donation_levels_repeat{background:#F7F7F7;padding:0 12px 20px 1px;box-sizing:border-box}#_give_donation_levels_repeat .cmb-row,#_give_donation_levels_repeat .inside{margin:0}#_give_donation_levels_repeat .cmb-remove-field-row{margin:3px 0 0}#_give_donation_levels_repeat .cmb-remove-field-row .button{height:25px;padding:0 3px}#_give_donation_levels_repeat .cmb-remove-field-row span.dashicons-no{line-height:1.15em}#_give_donation_levels_repeat .cmb-add-row{margin:12px 0 0}.give-time-field{width:65px}.give-money-field{width:75px;margin-left:0;margin-right:0}.give-money-symbol{border:1px solid #DDD;background:#FCFCFC;margin:0;font-size:14px;padding:5px 8px}.give-money-symbol-before{border-left:0;margin-left:-4px}.give-money-symbol-after{margin-right:-5px}.give_options_panel input[type=text]{padding:5px;width:100%}input.give-text-small,input.give-text_small{width:100px!important}input.give-text-medium,input.give-text_medium{width:200px!important}.give-underline{text-decoration:underline}.postbox-container .cmb-row{margin:0}.postbox-container .cmb-row .cmb-th label{padding-right:8px}#give-bulk-donors div[id^=give-donor-]{display:block;overflow:hidden}@media only screen and (min-width:851px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{float:right;border-bottom:none;padding-left:10px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-th{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-td{float:right;width:100%}.cmb-type-give-default-radio-inline .cmb-td{margin-top:5px}}@media only screen and (min-width:851px) and (max-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{width:100%;padding-top:0}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-type-text-money{width:105px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list input.cmb2-text-money{width:65px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .give-multilevel-text-field{width:160px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .cmb-type-radio-inline{margin-right:20px}.col-amount{width:70px}.col-text{width:140px}.col-sort{display:none!important}.give-money-field{width:55px}}@media only screen and (min-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{float:left}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{padding-left:20px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row.cmb-row{padding-left:0}.col-amount{width:93px}.col-text{width:195px}.col-sort{width:100px}.give-multilevel-text-field{width:205px}}@media only screen and (max-width:850px){div.cmb-type-levels-repeater-header{display:none!important}}.shortcode-wrap{margin:1px 11px 12px 14px}.shortcode-wrap label{margin:0 0 3px;display:block;cursor:default}.shortcode-wrap .shortcode-input{margin:0;width:100%}.cmb2-id--give-content-option,.cmb2-id--give-customize-offline-donations,.cmb2-id--give-goal-option,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-terms-option{border-bottom:none!important;margin:0!important}.cmb2-id--give-agree-label,.cmb2-id--give-form-content,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-set-goal{border-top:1px solid #e9e9e9!important}.cmb2-id--give-agree-label,.cmb2-id--give-agree-text{display:none}input.shortcode-input{width:100%}.price .give_price_range_high,.price .give_price_range_low,.price .give_price_range_sep{display:inline-block}#side-sortables .cmb-th label:after{display:none}#side-sortables .cmb2-id--give-show-register-form{padding:10px 0 0!important}#side-sortables .cmb2-wrap>.cmb-field-list>.cmb-row{padding-top:10px}#side-sortables .cmb-row .cmb2-metabox-description{padding-bottom:0}.cmb2-metabox-description{line-height:1.5;display:block}.give-tooltip{margin:0 3px;padding:0;font-size:14px;-moz-transition:.2s all linear;-o-transition:.2s all linear;transition:.2s all linear;color:rgba(51,51,51,.5);position:relative;top:1px}.give-tooltip:hover{color:#333}#give-metabox-form-data .inside{margin:0;padding:0}#give-metabox-form-data .give-metabox-panel-wrap{background:#fff;overflow:hidden}#give-metabox-form-data .give_options_panel{display:none;padding-right:170px}#give-metabox-form-data .give_options_panel.active,.no-js #give-metabox-form-data .give_options_panel{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:1em 162px 1em 20px;margin:0;border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-field-wrap>label,#give-metabox-form-data .give_options_panel .give-field-wrap>span.give-field-label{float:right;width:135px;padding:0;margin:2px -150px 0 0;line-height:18px;font-size:12px;font-weight:400}#give-metabox-form-data .give_options_panel .give-field-wrap .give-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-top:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-field-wrap ul{margin:0}#give-metabox-form-data .give_options_panel .give-field-wrap .mce-container iframe,#give-metabox-form-data .give_options_panel .give-field-wrap textarea{min-height:250px!important}#give-metabox-form-data .give_options_panel .give-field-wrap .wp-editor-wrap{display:inline-block;width:100%}#give-metabox-form-data .give_options_panel textarea.give-field{width:100%}#give-metabox-form-data .give_options_panel .give-field-wrap:hover .give-field-row-actions{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap:last-child{border-bottom:0}#give-metabox-form-data .give_options_panel .give-inline-radio-fields li{display:inline-block;margin-left:15px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section{padding:10px;background:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeatable-fields-section-wrapper{width:100%;background-color:#fff;border-collapse:collapse}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row{border-bottom:15px solid #f5f5f5;background-color:#fff}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-template{display:none}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row:last-child{border-bottom:10px solid #f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-column{padding:0}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove{float:left;width:22px;height:36px;padding:0;display:block;text-align:center;line-height:34px;font-size:21px;font-weight:300;cursor:pointer}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove:hover{background-color:red;color:#fff;width:22px;height:22px;border-radius:30px;margin-top:8px;line-height:19px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head{border-bottom:1px solid #eee;cursor:move}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head h2{text-align:right!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.closed .toggle-indicator:before{content:"\f140"}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row .give-move .toggle-indicator:before{margin-right:7px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row-wrap{background-color:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row{margin:5px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-field-wrap:last-child{border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-ui-placeholder-state-highlight{background-color:#68bb6c}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-name{border:0!important;padding:0!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-bottom:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .ui-sortable-helper{display:table!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.ui-sortable-helper{border-bottom:0}#_give_donation_levels_field .give-row:nth-of-type(2) .give-remove{display:none!important}#give-metabox-form-data .give-metabox-tabs{margin:0;max-width:170px;float:right;line-height:1em;padding:0 0 10px;position:relative;background-color:#fafafa;border-left:1px solid #eee;box-sizing:border-box}#give-metabox-form-data .give-metabox-tabs:after{content:"";display:block;width:100%;height:9999em;position:absolute;bottom:-9999em;right:0;background-color:#fafafa;border-left:1px solid #eee}#give-metabox-form-data .give-metabox-tabs li{margin:0;padding:0;display:block;position:relative}#give-metabox-form-data .give-metabox-tabs li a{margin:0;padding:10px;display:block;box-shadow:none;text-decoration:none;line-height:20px!important;border-bottom:1px solid #eee;overflow:hidden}#give-metabox-form-data .give-metabox-tabs li a span.give-label{width:122px;display:inline-block}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li{background-color:#f1f1f1}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li a{border-bottom-color:#e5e5e5}#give-export-payments div.chosen-container ul.chosen-choices,#give-export-payments select,.type-download{border:1px solid #ddd}#give-metabox-form-data .give-metabox-tabs li.active>a{color:#555;position:relative;background-color:#eee}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields.active>a{background-color:#ddd}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields:not(.active):hover ul.give-metabox-sub-tabs{display:block;position:absolute;bottom:0;right:166px;width:170px;max-height:250px}@media only screen and (min-width:851px) and (max-width:1025px),(max-width:550px){#give-metabox-form-data ul.give-metabox-tabs{min-width:40px}#give-metabox-form-data ul.give-metabox-tabs li>a{text-align:center}#give-metabox-form-data ul.give-metabox-tabs li>a:before{margin-left:0;font-size:15px}#give-metabox-form-data ul.give-metabox-tabs li>a span.give-label{display:none}#give-metabox-form-data ul.give-metabox-tabs li>a span.give-icon:before{margin:0}#give-metabox-form-data .give_options_panel{padding-right:40px}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:10px}#give-metabox-form-data .give_options_panel .give-field-wrap label,#give-metabox-form-data .give_options_panel .give-field-wrap span.give-field-label{display:block;float:none;margin:0 0 10px;font-size:14px;width:100%}}#give-export-payments .give_forms_categories,#give-export-payments .give_forms_tags{min-width:250px;margin:0 0 10px;display:block}#give-export-payments .give_forms_categories input,#give-export-payments .give_forms_tags input{color:#999}#give-export-payments div.chosen-container:first-of-type{margin-top:10px}#give-export-payments div.chosen-container ul.chosen-choices input.chosen-search-input{border:1px solid #ddd;height:20px}#give-export-payments select{vertical-align:inherit;margin:0;height:26px;line-height:26px}.give-docs-link{text-align:left;margin-left:15px}.give-docs-link a{color:#999;text-decoration:none;font-style:italic}.give-docs-link a:hover{color:#0073aa}.give-docs-link a span{font-style:normal}.type-download{float:right;margin:0 0 1em 1em!important;padding:0;vertical-align:top;width:280px;text-decoration:none;color:inherit;display:block;min-height:365px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;position:relative}.type-download:hover{border:1px solid #d1d1d1}.type-download>.featured-img img{border-bottom:1px solid #ddd}.type-download .addon-content{padding:15px 20px}.type-download .addon-content:after,.type-download .addon-content:before{content:" ";display:table}.give-filter:after,.give-filters:after{content:""}.type-download .addon-content .addon-heading{margin:0 0 10px}.type-download .addon-content .addon-heading a{outline:0;text-decoration:none}.type-download .addon-footer-wrap{border-top:1px solid #ddd;position:absolute;bottom:2px;right:0;width:100%;background-color:#FFF;padding:15px 20px}.give-view-addons-all span.dashicons,.type-download span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.give-view-addons-all span.dashicons{margin-right:3px}#give-dashboard-widgets-wrap .inside{padding-top:0;padding-bottom:0}.give_forms_page_give-reports #give-dashboard-widgets-wrap .inside{padding-right:0}#give-dashboard-widgets-wrap .inside #give-graphs-filter{float:none}#give-dashboard-widgets-wrap .postbox{margin-bottom:10px}#give-dashboard-widgets-wrap table.reports-table{clear:none}#give-dashboard-widgets-wrap #give-date-range-options{float:right}#give-dashboard-widgets-wrap #give-date-range-options>span{float:right;line-height:30px;font-style:italic;padding:0 0 0 5px}#give-graphs-filter,body.give_forms_page_give-payment-history .tablenav-right .tablenav-pages,body.give_forms_page_give-reports .tablenav-right .tablenav-pages{float:left}#give-graphs-filter .tablenav{margin:0 17px 0 0}#give-graphs-filter .tablenav .actions{padding:0}.give-graph .y1Axis{color:#66bb6a!important}.give-graph .y2Axis{color:#546e7a!important}body.give_forms_page_give-payment-history h1.nav-tab-wrapper,body.give_forms_page_give-payment-history h2.nav-tab-wrapper,body.give_forms_page_give-reports h1.nav-tab-wrapper,body.give_forms_page_give-reports h2.nav-tab-wrapper{margin-bottom:10px}body.give_forms_page_give-payment-history .actions,body.give_forms_page_give-reports .actions{padding-top:0}body.give_forms_page_give-payment-history .pagination-links,body.give_forms_page_give-reports .pagination-links{margin-right:10px}body.give_forms_page_give-payment-history p.donor-search,body.give_forms_page_give-reports p.donor-search{margin-left:10px}body.give_forms_page_give-payment-history .tablenav-right #give-reports-view,body.give_forms_page_give-reports .tablenav-right #give-reports-view{margin-top:0}body.give_forms_page_give-payment-history .tablenav-right .actions,body.give_forms_page_give-payment-history p.search-box,body.give_forms_page_give-reports .tablenav-right .actions,body.give_forms_page_give-reports p.search-box{float:right}body.give_forms_page_give-payment-history .reports-table-nav.tablenav.top,body.give_forms_page_give-reports .reports-table-nav.tablenav.top{width:100%;float:none;margin:0 0 10px}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top,body.give_forms_page_give-reports .reports-forms-details-wrap.top{float:left;overflow:hidden}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top #give-reports-filter,body.give_forms_page_give-reports .reports-forms-details-wrap.top #give-reports-filter{float:right}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top>.actions,body.give_forms_page_give-reports .reports-forms-details-wrap.top>.actions{padding-left:0}body.give_forms_page_give-payment-history .tablenav.bottom,body.give_forms_page_give-reports .tablenav.bottom{margin-top:10px}body.give_forms_page_give-payment-history h2.reports-earnings-title,body.give_forms_page_give-reports h2.reports-earnings-title{margin:7px 0 0}body.give_forms_page_give-payment-history .reports-views-wrap,body.give_forms_page_give-reports .reports-views-wrap{padding:3px 0 0}body.give_forms_page_give-payment-history .wrap.give-reports-donors-wrap,body.give_forms_page_give-reports .wrap.give-reports-donors-wrap{margin-left:0;margin-bottom:10px}body.give_forms_page_give-payment-history .widefat tbody td,body.give_forms_page_give-payment-history .widefat tbody th,body.give_forms_page_give-reports .widefat tbody td,body.give_forms_page_give-reports .widefat tbody th{padding-top:12px;padding-bottom:12px}body.give_forms_page_give-reports table.export-options-table tbody td{padding:20px 12px;vertical-align:top}#test-payment-label,.give-mobile-link,table.give-table td{vertical-align:middle}body.give_forms_page_give-reports table.export-options-table .give-export-form{position:relative}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap{background-color:transparent;padding:12px 12px 4px;margin:2px -11px -16px 0;overflow:auto}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap .spinner{margin:-2px 0 8px -12px}body.give_forms_page_give-reports table.export-options-table span#give-end-wrap input,body.give_forms_page_give-reports table.export-options-table span#give-start-wrap input{width:100px}#export-donor-options-wrap p{padding:20px 0 0;margin:0;font-weight:700}#export-donor-options-wrap ul{max-width:900px;overflow:hidden}#export-donor-options-wrap ul li{margin:0;padding:0 0 5px 5px;box-sizing:border-box;float:right;width:33%}#give-tools-recount-form .notice-wrap{position:relative;min-height:25px;margin:10px -12px -12px;background:#EFEFEF;padding:10px 12px 12px;border-top:1px solid #E5E5E5}#give-tools-recount-form .notice-wrap .give-progress{position:absolute;top:15px}#give-tools-recount-form .notice-wrap .spinner{position:absolute;left:14px;top:13px;margin:0}#give-tools-recount-form .notice-wrap #give-batch-success{margin-bottom:6px}.recount-stats-controls form{display:inline}.give-recount-stats-descriptions{margin:8px 0 0;display:block}.give-recount-stats-descriptions span{line-height:24px;font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0;display:none}.social-items-wrap,.social-items-wrap>div,.welcome-h1{display:inline-block}.gateways-report-tablenav .actions.bulkactions{padding-left:0}table.give-table td.row-title h3{margin:0 0 .4em;font-size:1.2em}table.give-table td.row-title p{font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0}#give-graphs-filter>.tablenav{height:auto}#give-logs-filter .search-box{float:left}#give-logs-filter .tablenav.top{float:right;clear:none;margin-top:0}.welcome-h1{margin-left:15px!important}.about-wrap h3{margin:1.5em 0 .6em}.about-wrap img{border:none}.give-badge{padding-top:150px;height:52px;width:185px;color:#FFF;font-weight:700;font-size:14px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.8);margin:0 -5px;position:absolute;top:0;left:0}.introduction{padding:0 0 20px;margin:0 0 20px}.feature-section{margin-top:40px}.feature-section span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.feature-section .feature-section-item{width:48%;float:right}.feature-section div.last-feature{margin-left:0;margin-right:4%}[class*=dashboard_page_give-] .about-text,[class^=dashboard_page_give-] .about-text{min-height:0}.social-items-wrap .twitter-item-wrap{margin:0 0 10px 20px}.wp-person img{border-radius:50%}.wp-person a.web{margin:17px 0 0;font-weight:700;font-style:italic}.newsletter-intro{font-size:13px;font-style:italic;color:#777}.give-newsletter-form-wrap{margin:10px -5px 20px 0;max-width:700px}.give-newsletter-form-wrap td{padding:3px}.give-newsletter-form-wrap div.give-newsletter-confirmation{background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 5px 4px 10px;padding:1px 12px;border-right:4px solid #7ad03a;display:none}.give-newsletter-form-wrap div.give-newsletter-confirmation>p{margin:.5em 0;padding:2px}#give_donor_export_form{margin:0 0 5px}.column-status .give-donation-status,.column-status .give-test-mode-transactions-label{display:inline-block}.column-status .give-test-mode-transactions-label{margin:0 5px;vertical-align:middle}.give-settings-page .give-settings-heading-sep{font-size:14px;line-height:32px;width:15px}.give-settings-page .nav-tab-wrapper{margin-bottom:5px;overflow:visible}.give-settings-page .cmb2-wrap .cmb-type-checkbox input[type=checkbox]{display:block;margin-bottom:5px}.give-settings-page div.give-submit-wrap{margin:20px 0}.give-settings-page .give_forms_page_give-payment-history .postbox .hndle{cursor:default}.give-settings-page .give-input-field{width:25em}.give-settings-page table table input[type=text]{width:15em}.give-setting-tab-header{clear:both;overflow:hidden;margin:30px 0}.give-setting-tab-header h2{margin-top:8px}.give-radio-inline ul{margin-top:0}.give-radio-inline li{display:inline-block;margin:0 15px 0 0}.give-radio-inline li:first-child{margin-right:0}.give-tools-setting-page .bulkactions{overflow:visible}.form-table td.give-radio-inline fieldset li>label{margin:5px 0 0!important}.cmb2-metabox-description,p.give-field-description{color:#aaa;font-style:italic;font-size:13px!important}.cmb-type-give-title label,.give-setting-tab-header h2{float:right;display:inline-block;width:220px;font-style:italic;color:#AAA;margin:0;font-size:14px}.postbox-container #_give_donation_levels_repeat>.cmb-repeatable-grouping:not(:last-of-type){border-bottom:1px solid #e9e9e9;border-top:none}.cmb-type-enabled-gateways .cmb-td>p:first-of-type{display:none}.cmb-type-checkbox .cmb-td{width:80%}.cmb-type-checkbox .cmb-td label{font-size:13px}.give_settings .cmb2-wrap .cmb-row{display:table-row}.give_settings .cmb2-wrap .cmb-row>.cmb-td,.give_settings .cmb2-wrap .cmb-row>.cmb-th{display:table-cell;float:none}.cmb2-id-give-title label{font-style:italic;color:#AAA;cursor:default}.cmb2-id-give-title>div.cmb-th{padding-bottom:10px}.cmb2-id-give-title>div.cmb-td{padding-bottom:5px}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle{padding:3px 0 0 4px;font-size:15px;font-weight:400;color:#bdbdbd;cursor:move}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle:hover{color:#333}.give-email-tags-wrap{margin:5px 0 0}.give-email-tags-wrap code{font-style:normal;padding:1px 2px;font-size:12px}.give-email-tags-wrap span{display:block;color:#AAA;font-style:italic;margin:0 0 2px;font-size:13px}.give-email-tags-wrap .give_price_tag{display:none}#system-info-textarea{width:800px;height:600px;font-family:Menlo,Monaco,monospace;background:#FFF;white-space:pre;overflow:auto;display:block;direction:ltr}#give-download-sysinfo{margin:0}#api .tablenav .actions{overflow:visible}a.give-delete{color:#a00}.give-settings-wrap-licenses .give-license-deactivate{margin:1px 10px 0 0;height:30px}.give-settings-wrap-licenses .give-license-field{background:url(../images/close.png) 1.5% center no-repeat #FFF;background-size:18px}.give-settings-wrap-licenses .give-license-active,.give-settings-wrap-licenses .give-license-active:focus{background-image:url(../images/tick.png);background-color:#FFF;background-repeat:no-repeat;background-position:1.5% center;outline:0;background-size:16px;width:100%}.give-settings-page .give-settings-wrap-licenses{display:block;position:relative;float:right;width:30.5%;min-height:180px;margin:20px 0 20px 1%}.give-settings-page .give-license-key label{margin:0 10px 0 0;padding:10px 0;display:block;font-size:14px;font-weight:600;cursor:default}.give-settings-page .give-license-block{margin:0 10px}.give-settings-page input[type=text].give-license-field,.give-settings-page input[type=password].give-license-field{width:100%}.give-settings-page .give-license-block input[type=submit]{position:absolute;top:3px;left:10px;height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.give-settings-page .give-license-status-notice{background:#fff;border-right:4px solid #fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:1px 12px}.give-settings-page .give-license-status-notice p{padding:10px 0;margin:0}.give-settings-page .give-license-status-notice a{color:#444;cursor:pointer}.give-settings-page .give-license-status-notice a:hover{text-decoration:none}.give-settings-page .give-license-status-notice.give-license-expires-soon{border-color:#00a0d2}.give-settings-page .give-license-status-notice.give-inactive,.give-settings-page .give-license-status-notice.give-license-expired{border-color:#e24e4e}.give-settings-page .give-license-status-notice.give-license-error,.give-settings-page .give-license-status-notice.give-license-invalid,.give-settings-page .give-license-status-notice.give-license-item_name_mismatch,.give-settings-page .give-license-status-notice.give-license-missing,.give-settings-page .give-license-status-notice.give-license-no_activations_left,.give-settings-page .give-license-status-notice.give-license-site_inactive{border-color:orange}.give-settings-page .give-license-status-notice.give-license-expiration-date,.give-settings-page .give-license-status-notice.give-license-lifetime-notice{border-color:#46b450}.give-settings-page .give-license-status-notice.give-license-expired a:hover,.give-settings-page .give-license-status-notice.give-license-expires-soon a:hover{text-decoration:none}@media screen and (max-width:1100px){.give-settings-page .give-settings-wrap-licenses{width:45%;min-height:150px}}.give-table thead th{padding:8px 10px!important}.give_settings .cmb-td hr+hr{display:none}.post-type-give_forms .mce-container iframe,.post-type-give_forms .wp-editor-area{min-height:400px}.give-field-description{color:#aaa;font-style:italic;margin:0;padding-top:.5em}h2.give-nav-tab-wrapper{overflow:hidden;height:35px}@media screen and (max-width:600px){.give-settings-page .give-settings-wrap-licenses{width:100%;max-width:320px}.give-nav-tab-wrapper{position:relative;padding-top:0!important}.give-nav-tab-wrapper>a{width:100%;box-sizing:border-box;margin:0;background-color:#fff;border:1px solid #ccc}.give-nav-tab-wrapper>a:hover{border-bottom:1px solid #ccc}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper{position:absolute;top:0;left:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav{height:28px;width:30px;border-radius:0;margin:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav>span.dashicons{margin:6px auto 0;display:block}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{top:35px;left:0;right:auto}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{background:#fff}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#e5e5e5}.give-mobile-hidden{display:none}}.give-sub-nav-tab-wrapper{position:relative;z-index:9999;float:right;display:none}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{border:1px solid #ccc;border-bottom:0;position:absolute;top:35px;right:0}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{float:right;background:#e5e5e5;padding:6px 10px;clear:both;text-decoration:none;border-bottom:1px solid #ccc;min-width:170px;color:#555;font-size:14px}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#fff}#give-show-sub-nav{text-decoration:none;padding:3px 4px;border-bottom:1px solid #ccc;line-height:0;background:#fff;border-radius:4px;margin-top:5px}#give-show-sub-nav>span.dashicons{font-size:16px;height:16px;width:16px}#give-show-sub-nav:active,#give-show-sub-nav:hover{outline:0;box-shadow:inset 0 0 4px #ddd}.give-image-thumb{position:relative;margin-top:14px}.give-image-thumb span.give-delete-image-thumb{position:absolute;background:red;color:#fff;border-radius:30px;right:-10px;top:-10px;cursor:pointer}.give-image-thumb img{max-width:250px;border:4px solid #fff}.give-filters,.give-submit-wrap{border:1px solid #dfdfdf;clear:both}.give-filters{background:#f5f5f5;padding:12px 12px 0}.give-filters .give-donation-forms-filter .chosen-single{height:28px;line-height:28px}.give-filters .chosen-container-single .chosen-single div b{background-position:100% 4px}.give-filters .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 6px}.give-filters #give-payment-form-filter,.give-filters #give_donation_forms_filter{display:inline-block;width:300px}@media screen and (max-width:782px){.give-filters #give-payment-form-filter,.give-filters #give_donation_forms_filter{width:100%}}.give-filters #give_donation_forms_filter{width:255px}.give-filter input[type=text],.give-filter select{width:100%}@media screen and (max-width:782px){.give-filters #give_donation_forms_filter{width:100%;max-width:100%}}.give-filters:after{display:table;clear:both}.give-filter{display:block;margin-bottom:12px;width:100%}.give-filter:after{display:table;clear:both}.give-filter label{display:block;margin-left:4px}.give-filter input{margin:0}.give-filter input[type=text],.give-filter input[type=search]{height:28px}.give-filter .button{height:28px;line-height:26px;margin:0;padding:0 10px 1px}@media screen and (min-width:783px){.give-filter{float:right;margin-left:18px;width:auto}.give-filter label{display:inline-block}.give-filter input[type=text]{display:inline-block;width:144px}}.give-filter-search input[type=search]{display:block;float:right;width:68%}.give-filter-search input[type=submit]{display:block;float:left;width:30%}@media screen and (min-width:783px){.give-filter-search input[type=search]{display:inline-block;margin-left:4px;width:144px}.give-filter-search input[type=submit]{display:inline-block;width:auto}}@media screen and (min-width:600px){.give-filter-half{float:right;width:49%}.give-filter-half:last-child{float:left}}@media screen and (min-width:783px){.give-filter-half{width:auto}.give-filter-half:last-child{float:right}.give-filter-half input[type=text]{width:96px}}.give-clear-filters-button{margin-right:8px}.give-submit-wrap{background:#f5f5f5;margin:8px 0;padding:12px;font-size:13px;line-height:2.1em}#give-payment-filters ul.subsubsub{margin-bottom:8px}#give-payments-advanced-filter ul.subsubsub{margin-bottom:12px}#give-payments-filter .tablenav.top{float:none}#give-payments-filter .tablenav.top .bulkactions{margin-top:1px;padding-top:0}#give-payments-filter .give-email-column-value{font-size:14px;font-weight:700}#give-payments-filter #the-list .check-column input{margin-top:1px}#give-payments-filter .column-details{width:50px}#give-payments-filter .column-amount{width:120px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.forms th#date{width:140px}.give-mobile-link{line-height:32px}.give-mobile-link img{max-width:80%;height:auto;float:right}.give-donation-status>span{display:inline-block;width:12px;height:12px;position:relative;top:1px;margin:0;padding:0;border-radius:50%;background:#888;line-height:16px}#give-payments-filter .give-payment-id,#test-payment-label{padding:.2em .4em .3em;font-size:11px;text-align:center;border-radius:.25em;white-space:nowrap;color:#fff}.give-donation-status.status-pending>span{background-color:#ffba00}.give-donation-status.status-complete>span,.give-donation-status.status-publish>span{background-color:#7ad03a}.give-donation-status.status-refunded>span{background-color:#777}.give-donation-status.status-failed>span{background-color:#a00}.give-donation-status.status-abandoned>span{background-color:#333}.give-donation-status.status-revoked>span{background-color:#d9534f}.give-donation-status.status-give_subscription>span,.give-donation-status.status-renewal>span,.give-donation-status.status-subscription>span{background-color:#5bc0de}#test-payment-label{line-height:1;background-color:#ffba00;margin:0 15px}#test-payment-label:hover{color:#fff;text-decoration:none}#give-payments-filter .give-payment-id{line-height:1;vertical-align:baseline;font-weight:400}.give-admin-box .label,.give-admin-box-inside .strong{font-weight:600}#give-payments-filter .give-payment-id:hover{color:#fff;text-decoration:none}#give-payments-filter .column-details{padding-left:30px}#give-payments-filter .give-donation-status{display:inline-block}#give-order-update .give-donation-status{display:inline-block;float:none;margin:0 10px;position:relative;top:3px}.column-donation_form .donation-level-text-wrap{font-style:italic;display:block}@media handheld,only screen and (max-width:640px){.wp-list-table.forms th{width:auto!important}}.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-right:-8px;margin-top:-8px}.give-admin-box-inside{margin:0;padding:3px 10px;clear:both;border-bottom:1px solid #eee}.give-admin-box .right{float:left}#give-order-details .inside,#give-order-update .inside{margin:0;padding:0}#give-order-update input.give_datepicker{width:180px}#give-order-update input[type=number].give-payment-time-hour,#give-order-update input[type=number].give-payment-time-min{width:50px}.give-admin-box-inside:last-child{border-bottom:0}#give-edit-order-form .data-payment-key{word-break:break-all}.give-order-update-box #major-publishing-actions .button-secondary{margin-left:10px}#give-donation-overview th{text-align:right}#give-donation-overview .give-select-chosen{width:97%}#give-edit-order-form .row{margin-top:10px}#give-donation-overview ul,#give-donor-details .order-data-address input,#give-donor-details .order-data-column p.data input,#give-edit-order-form .column input,#give-order-address-country-wrap select{clear:both;display:block}.give-order-data input.small-text{margin:0}#give-order-update span.label{display:inline;width:50px}.give-order-update-box .button-primary{margin-left:0}#give-edit-order-form .column .description{padding-left:10px}#give-donation-overview .inside>ul>li,#give-donation-overview .row>ul>li,#give-edit-order-form .column{display:inline-block;position:relative;vertical-align:top}#give-donation-overview ul{font-size:0}#give-donation-overview ul li{font-size:13px}#give-donation-overview ul li.actions{text-align:left;min-width:200px}#give-donation-overview ul li.remove{text-align:left}#give-donation-overview ul .row{padding:12px;border-bottom:1px solid #eee}#give-order-data .data span{color:#666;font-weight:600}input.give-price-field{width:80px;padding:3px 5px}.give_forms_page_give-payment-history.js .postbox .hndle{cursor:default}#give-payment-notes textarea{min-height:150px}#give-payment-notes #give-add-payment-note{margin:6px 0 15px}#give-billing-details .column>div{margin:0 0 10px}#give-billing-details label{display:block;margin-bottom:5px}#give-billing-details .column-container{padding:5px 0 10px}#give-billing-details input[type=text]{width:98%}#give-billing-details .chosen-container{width:98%!important}@media screen and (min-width:1200px){#give-edit-order-form .column{width:33%}#give-order-address .column{width:49%}#give-donation-overview.columns-4 li.actions{width:25%;margin-top:0;margin-left:0}}@media screen and (max-width:1199px){#give-edit-order-form .column{width:49%}}@media screen and (max-width:782px){.order-data-column input[type=email]{padding:6px 10px}}#give-donation-overview .inside,#give-donor-details .inside{margin-top:0}.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables{padding-top:0}.give-select-chosen .spinner{position:absolute;left:5px;top:2px;z-index:999}.give-select-chosen-ajax .spinner{visibility:visible}.give-select-chosen-ajax .chosen-search input[type=text],.give-select-chosen-ajax.chosen-container-single .chosen-search input[type=text]{background-image:none!important}.give-dashboard-widget .give-dashboard-today{text-align:center}.give-dashboard-widget .give-dashboard-today .give-dashboard-date-today{margin:10px 0 0;padding:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-happy-day{padding:3px;margin:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-today-earnings{font-size:42px;color:#4ead61;font-weight:700;margin:15px 0 0;line-height:1}.give-dashboard-widget .give-dashboard-today .give-donations-today{font-size:18px;font-weight:700;margin:0 0 30px;padding:4px 0 1px}.give-dashboard-widget .give-dashboard-today .give-last-seven{font-size:14px;font-weight:700;padding:0;margin:0 0 30px}.give-dashboard-widget .give-table-stats{width:100%;text-align:center;margin:0;table-layout:fixed;border-top:1px solid #ececec;border-spacing:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total,.give-dashboard-widget .give-table-stats .give-dashboard-stat-total-label{padding:0;margin:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total{color:#4ead61;font-weight:700;font-size:16px}#give_dashboard_sales>.inside{padding:0}#give_dashboard_sales .give-table-stats td{padding:10px 0}#give_dashboard_sales .give-table-stats td:first-of-type{border-left:1px solid #ececec}#give_dashboard_sales .give-table-stats tr#give-table-stats-tr-1 td{border-bottom:1px solid #ececec}#dashboard_right_now .give-forms-count:before{font-family:give-icomoon;font-style:normal;font-weight:400;line-height:1;font-size:18px;width:18px;height:18px}.give_forms_page_give-donors .wrap>h2{margin-bottom:15px}.give_forms_page_give-donors .nav-tab-wrapper .dashicons{position:relative;top:2px;margin:0 0 0 3px}.give_forms_page_give-donors #give-donors-filter{position:relative}.give_forms_page_give-donors #give-donors-filter p.search-box{margin:0}.give_forms_page_give-donors #give-donors-search-filter{display:block;overflow:hidden}#give-donor-card-wrapper{margin-right:-1px;z-index:2;min-height:200px}#give-donor-card-wrapper input{font-weight:400}#give-donor-card-wrapper .donor-section{border-bottom:1px solid #eee;margin-bottom:10px}#give-donor-card-wrapper .donor-section table{margin-bottom:0}#give-donor-card-wrapper>div:first-child{padding-top:20px}#give-donor-card-wrapper>div:last-child{padding-bottom:20px;border:none}#give-donor-card-wrapper .avatar-wrap{padding:0 0 15px 15px;text-align:center;float:right}#give-donor-card-wrapper .avatar-wrap img{border-radius:3px}#give-donor-card-wrapper a.delete{text-decoration:none;color:red;margin-left:5px}#give-donor-card-wrapper .donor-bio-header .donor-since{margin:10px 0;font-size:16px}#give-donor-card-wrapper .donor-bio-header .donor-id{display:inline-block;font-size:24px;font-weight:600;margin-left:10px}#give-donor-card-wrapper .donor-bio-header .donor-name-wrap{display:inline-block}#give-donor-card-wrapper .donor-bio-header .donor-edit-link{margin-bottom:15px}.donor-main-wrapper{clear:both;margin:0 0 20px}@media (max-width:655px){.donor-main-wrapper{width:100%}}.donor-main-wrapper table{margin:0}.donor-main-wrapper input{width:200px}#donor-summary{padding:0 20px}#donor-summary:after{font-family:dashicons;content:"\f110";position:absolute;top:10px;left:10px;font-size:100px;color:#F0F0F0;z-index:0}.sc-wrap,button.sc-button:after{position:relative;display:inline-block}#give-donor-card-wrapper .donor-address-wrapper{width:202px}#give-donor-card-wrapper .donor-address-wrapper select,#give-donor-card-wrapper .give_user_search_results ul{width:200px}#give-donor-card-wrapper .donor-address-wrapper span[data-key=line2]{display:table;clear:both}#give-donor-card-wrapper .donor-info{min-height:185px}#give-donor-card-wrapper .info-wrapper{min-height:125px}.donor-info .donor-name{font-size:24px;font-weight:600}#disconnect-donor,#view-user-profile{font-size:12px;font-weight:400;text-decoration:none}#donor-edit-actions{text-align:center;margin-bottom:20px;line-height:28px}#donor-edit-actions .button-secondary{margin-left:10px}#give-donor-card-wrapper .edit-item{display:none}#give-donor-card-wrapper .give_user_search_results{right:1px;top:16px}#donor-stats-wrapper{margin:0 auto;text-align:center;padding:15px}#donor-stats-wrapper ul{margin:0;padding:0;overflow:hidden}#donor-stats-wrapper ul li{width:50%;float:right;line-height:22px;font-size:14px;margin:0}#donor-stats-wrapper a{text-decoration:none}.give-blank-slate__help a,.mce-sc-popup a{text-decoration:underline}#donor-stats-wrapper .dashicons{color:#888}#donor-tables-wrapper table{width:100%;text-align:center}#donor-tables-wrapper th{text-align:center}#donor-tables-wrapper .donations tr>td:first-child,#donor-tables-wrapper .donations tr>th:first-child,#donor-tables-wrapper .emails tr>td:first-child,#donor-tables-wrapper .emails tr>th:first-child{text-align:right}#donor-tables-wrapper .donations tr>td:only-child{text-align:center}#donor-notes-wrapper{min-height:50px}.donor-notes-header img,.donor-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.donor-note-input{width:100%;margin-bottom:5px}#give-donor-notes div:nth-of-type(even){background-color:#f9f9f9}#give-donor-notes .donor-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:0}#give-donor-notes .donor-note-wrapper .note-content-wrap{padding:10px 12px;line-height:20px;font-size:14px}#give-donor-notes .give-no-donor-notes{text-align:center;padding:20px}.donor-note-wrapper span{display:block}.delete-donor{text-align:center}@media screen and (max-width:782px){#wp-content-media-buttons a.give-thickbox{padding:6px 14px;line-height:normal;font-size:14px;height:auto}.wp-media-buttons span#give-media-button{margin-top:0!important;margin-right:2px!important}}.mce-primary.mce-give-primary button{padding-left:10px;padding-right:10px}.wp-core-ui .give-admin-button{padding-right:7px;padding-left:7px}.give-admin-button-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}.give-admin-button-icon:before{font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-admin-button-icon-update:before{content:"\f463"}.mce-primary.mce-sc-primary button{padding-left:10px;padding-right:10px}.mce-sc-popup p{margin-bottom:1em}.mce-sc-popup p.strong{font-weight:600}.mce-sc-popup p.no-margin{margin-bottom:0}.mce-sc-popup p.margin-top{margin-top:1em}.mce-sc-popup .mce-listbox button{text-overflow:ellipsis;overflow:hidden!important}@media screen and (max-width:782px){.wp-media-buttons button.sc-button span{width:18px!important}}.wp-media-buttons button.sc-button{outline:0;padding-right:5px;margin-left:0}.wp-media-buttons button.sc-button:active{margin-bottom:5px}button.sc-button:after{top:-1px;content:'';width:0;height:0;border-top:6px solid #777;border-left:4px solid transparent;border-right:4px solid transparent;margin:0 6px 0 3px}button.sc-button.active:after{top:-2px;border-top:0;border-bottom:6px solid #32373c}.sc-wrap{margin-left:5px}div.sc-menu{display:none;position:absolute;top:100%;right:0;min-width:100%;max-height:410px;font-size:14px;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#fff;border:1px solid rgba(0,0,0,.15);overflow:auto;overflow-x:hidden;padding:5px 0;margin:-2px 0 0;z-index:1002}div.sc-shortcode{display:block;white-space:nowrap;cursor:pointer;padding:6px 12px;margin-bottom:2px}div.sc-shortcode:hover{color:#fff}#mce-modal-block.mce-reset.mce-fade.mce-in{opacity:.7;filter:alpha(opacity=70)}.give-status-table{margin-bottom:1em}.give-status-table h2{font-size:14px;margin:0}.give-status-table tr:nth-child(2n) td,.give-status-table tr:nth-child(2n) th{background:#fcfcfc}.give-status-table th{font-weight:700;padding:9px}.give-status-table td:first-child{width:33%}.give-status-table td.help{width:1em}.give-status-table td{padding:9px;font-size:1.1em}.give-status-table td mark{background:0 0}.give-status-table td mark.yes{color:#7ad03a}.give-status-table td mark.no{color:#999}.give-status-table td mark.error{color:#a00}.give-status-table td ul{margin:0}.wrap div.give-debug-report-wrapper{margin-bottom:5px}.wrap div.give-debug-report-wrapper p{font-size:18px;margin:1em 0 .7em;padding:0}.wrap div.give-debug-report-wrapper .give-debug-report-actions{margin:0 0 1.7em}.wrap div.give-debug-report-wrapper .give-debug-report-actions .js-give-debug-report-button{margin-left:10px}.wrap div.give-debug-report-wrapper .give-debug-report-actions .dashicons{font-size:16px;position:relative;top:4px;right:-2px}.give-debug-report{display:none;margin:10px 0;padding:0;position:relative}.give-debug-report textarea{font-family:monospace;width:100%;margin:0;height:300px;padding:20px;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;resize:none;font-size:12px;line-height:20px;outline:0}.give-progress{height:15px;width:95%;border-radius:4px;overflow:hidden}.give-progress>div{height:100%;width:0}.admin-color-fresh .give-progress div,.give-progress div{background:#0073aa}.admin-color-light .give-progress div{background:#888}.admin-color-blue .give-progress div{background:#096484}.admin-color-coffee .give-progress div{background:#c7a589}.admin-color-ectoplasm .give-progress div{background:#a3b745}.admin-color-midnight .give-progress div{background:#e14d43}.admin-color-sunrise .give-progress div{background:#dd823b}#give-updates-h1{padding-top:0}.give-update-panel-content p{font-size:16px}#give-updates .dashicons-no-alt{color:red}#give-updates .dashicons-yes{color:green}#give-db-updates .spinner{margin-top:0}body.give_forms_page_give-updates .give-run-update-containt .give-run-update-button{margin-left:10px}.give-blank-slate{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:0 auto;padding:40px;text-align:center}.give-blank-slate :last-child{margin-bottom:0}.give-blank-slate__cta,.give-blank-slate__heading,.give-blank-slate__help,.give-blank-slate__message{margin:0 0 10px}.give-blank-slate__image{display:block;height:80px;margin:0 auto 10px;width:auto}.give-blank-slate__help{color:#666;font-style:italic}.give-blank-slate__help a{display:inline-block}.give-blank-slate a.give-blank-slate__cta{display:inline-block;font-size:1.2em;height:auto;margin:0 0 10px;padding:.75em 1.5em}.give-tools-setting-page-import h1.handle{padding:15px 0 0}.give-tools-setting-page-import .give-progress-steps{width:100%;padding:0 0 24px;margin-right:0;list-style:none;overflow:hidden;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}.give-tools-setting-page-import .give-progress-steps li{width:25%;float:right;padding:0 0 1.2em;margin:0;text-align:center;position:relative;border-bottom:4px solid #ccc;line-height:1.4em}.give-tools-setting-page-import .give-progress-steps li.active{border-color:#4ead61;color:#4ead61}.give-tools-setting-page-import .give-progress-steps li.active:before{border-color:#4ead61;color:#4ead61;background:#4ead61}.give-tools-setting-page-import .give-progress-steps li::before{content:'';border:4px solid #ccc;border-radius:100%;width:10px;height:10px;position:absolute;bottom:0;right:50%;margin-right:-6px;margin-bottom:-10px;background:#fff}.give-tools-setting-page-import .step-4 h2{text-align:center;font-size:20px!important}.give-tools-setting-page-import .step-4 p{text-align:center}.give-tools-setting-page-import .button-secondary.step-4,.give-tools-setting-page-import .give-image-thumb{display:none}.give-tools-setting-page-import h2#give-import-title{background:#f3f3f3;font-size:15px;font-weight:600;margin:-8px -22px 11px;padding:12px 22px}.give-import-core-settings .give-progress-steps li{width:33.33%}.give-import-core-settings .step-3 h2{text-align:center;font-size:20px!important}.give-import-core-settings .step-3 p{text-align:center}form.give-import-form table.widefat{border:none}.wrap .give-importer-h1{margin:0;padding:20px 0}
 
 
6
  * @subpackage: SCSS/Admin
7
  * @copyright: Copyright (c) 2016, WordImpress
8
  * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+ */.give-clearfix:after,.type-download .addon-content:after{clear:both}.give-clearfix:after,.give-clearfix:before{content:" ";display:table}#give-payments-filter .give-payment-id,.give-item-label-gray{background-color:#929292}.give-item-label-orange{background-color:#ffba00}.give-item-label{padding:.2em .4em .3em;font-size:11px;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.give-item-label:hover{color:#fff;text-decoration:none}/*! Hint.css - v2.5.0 - 2017-04-23
10
+ * http://kushagragour.in/lab/hint/
11
+ * Copyright (c) 2017 Kushagra Gour */[class*=hint--]{position:relative;display:inline-block}[class*=hint--]:after,[class*=hint--]:before{position:absolute;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);transform:translate3d(0,0,0);visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;-webkit-transition:.3s ease;-moz-transition:.3s ease;transition:.3s ease;-webkit-transition-delay:0s;-moz-transition-delay:0s;transition-delay:0s}[class*=hint--]:hover:after,[class*=hint--]:hover:before{visibility:visible;opacity:1;-webkit-transition-delay:.1s;-moz-transition-delay:.1s;transition-delay:.1s}[class*=hint--]:before{content:'';position:absolute;background:100% 0;border:6px solid transparent;z-index:1000001}[class*=hint--]:after{background:#383838;color:#fff;padding:8px 10px;font-size:12px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;line-height:12px;white-space:nowrap;text-shadow:0 -1px 0 #000;box-shadow:-4px 4px 8px rgba(0,0,0,.3)}[class*=hint--][aria-label]:after{content:attr(aria-label)}[class*=hint--][data-hint]:after{content:attr(data-hint)}[aria-label='']:after,[aria-label='']:before,[data-hint='']:after,[data-hint='']:before{display:none!important}.hint--top-left:before,.hint--top-right:before,.hint--top:before{border-top-color:#383838}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#383838}.hint--top:after,.hint--top:before{bottom:100%;right:50%}.hint--top:before{margin-bottom:-11px;right:calc(50% - 6px)}.hint--top:after{-webkit-transform:translateX(50%);-moz-transform:translateX(50%);transform:translateX(50%)}.hint--top:hover:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--top:hover:after{-webkit-transform:translateX(50%) translateY(-8px);-moz-transform:translateX(50%) translateY(-8px);transform:translateX(50%) translateY(-8px)}.hint--bottom:after,.hint--bottom:before{top:100%;right:50%}.hint--bottom:before{margin-top:-11px;right:calc(50% - 6px)}.hint--bottom:after{-webkit-transform:translateX(50%);-moz-transform:translateX(50%);transform:translateX(50%)}.hint--bottom:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--bottom:hover:after{-webkit-transform:translateX(50%) translateY(8px);-moz-transform:translateX(50%) translateY(8px);transform:translateX(50%) translateY(8px)}.hint--right:before{border-left-color:#383838;margin-right:-11px;margin-bottom:-6px}.hint--right:after{margin-bottom:-14px}.hint--right:after,.hint--right:before{right:100%;bottom:50%}.hint--right:hover:after,.hint--right:hover:before{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--left:before{border-right-color:#383838;margin-left:-11px;margin-bottom:-6px}.hint--left:after{margin-bottom:-14px}.hint--left:after,.hint--left:before{left:100%;bottom:50%}.hint--left:hover:after,.hint--left:hover:before{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)}.hint--top-left:after,.hint--top-left:before{bottom:100%;right:50%}.hint--top-left:before{margin-bottom:-11px;right:calc(50% - 6px)}.hint--top-left:after{-webkit-transform:translateX(100%);-moz-transform:translateX(100%);transform:translateX(100%);margin-right:12px}.hint--top-left:hover:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--top-left:hover:after{-webkit-transform:translateX(100%) translateY(-8px);-moz-transform:translateX(100%) translateY(-8px);transform:translateX(100%) translateY(-8px)}.hint--top-right:after,.hint--top-right:before{bottom:100%;right:50%}.hint--top-right:before{margin-bottom:-11px;right:calc(50% - 6px)}.hint--top-right:after{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0);margin-right:-12px}.hint--top-right:hover:after,.hint--top-right:hover:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--bottom-left:after,.hint--bottom-left:before{top:100%;right:50%}.hint--bottom-left:before{margin-top:-11px;right:calc(50% - 6px)}.hint--bottom-left:after{-webkit-transform:translateX(100%);-moz-transform:translateX(100%);transform:translateX(100%);margin-right:12px}.hint--bottom-left:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--bottom-left:hover:after{-webkit-transform:translateX(100%) translateY(8px);-moz-transform:translateX(100%) translateY(8px);transform:translateX(100%) translateY(8px)}.hint--bottom-right:after,.hint--bottom-right:before{top:100%;right:50%}.hint--bottom-right:before{margin-top:-11px;right:calc(50% - 6px)}.hint--bottom-right:after{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0);margin-right:-12px}.hint--bottom-right:hover:after,.hint--bottom-right:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--large:after,.hint--medium:after,.hint--small:after{white-space:normal;line-height:1.4em;word-wrap:break-word}.dashicons-give:before,[class*=" give-icon-"],[class^=give-icon-]{line-height:1;font-family:give-icomoon;font-style:normal;font-weight:400}.hint--small:after{width:80px}.hint--medium:after{width:150px}.hint--large:after{width:300px}.hint--error:after{background-color:#b34e4d;text-shadow:0 -1px 0 #592726}.hint--error.hint--top-left:before,.hint--error.hint--top-right:before,.hint--error.hint--top:before{border-top-color:#b34e4d}.hint--error.hint--bottom-left:before,.hint--error.hint--bottom-right:before,.hint--error.hint--bottom:before{border-bottom-color:#b34e4d}.hint--error.hint--left:before{border-right-color:#b34e4d}.hint--error.hint--right:before{border-left-color:#b34e4d}.hint--warning:after{background-color:#c09854;text-shadow:0 -1px 0 #6c5328}.hint--warning.hint--top-left:before,.hint--warning.hint--top-right:before,.hint--warning.hint--top:before{border-top-color:#c09854}.hint--warning.hint--bottom-left:before,.hint--warning.hint--bottom-right:before,.hint--warning.hint--bottom:before{border-bottom-color:#c09854}.hint--warning.hint--left:before{border-right-color:#c09854}.hint--warning.hint--right:before{border-left-color:#c09854}.hint--info:after{background-color:#3986ac;text-shadow:0 -1px 0 #1a3c4d}.hint--info.hint--top-left:before,.hint--info.hint--top-right:before,.hint--info.hint--top:before{border-top-color:#3986ac}.hint--info.hint--bottom-left:before,.hint--info.hint--bottom-right:before,.hint--info.hint--bottom:before{border-bottom-color:#3986ac}.hint--info.hint--left:before{border-right-color:#3986ac}.hint--info.hint--right:before{border-left-color:#3986ac}.hint--success:after{background-color:#458746;text-shadow:0 -1px 0 #1a321a}.hint--success.hint--top-left:before,.hint--success.hint--top-right:before,.hint--success.hint--top:before{border-top-color:#458746}.hint--success.hint--bottom-left:before,.hint--success.hint--bottom-right:before,.hint--success.hint--bottom:before{border-bottom-color:#458746}.hint--success.hint--left:before{border-right-color:#458746}.hint--success.hint--right:before{border-left-color:#458746}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--top:after{-webkit-transform:translateX(50%) translateY(-8px);-moz-transform:translateX(50%) translateY(-8px);transform:translateX(50%) translateY(-8px)}.hint--always.hint--top-left:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--top-left:after{-webkit-transform:translateX(100%) translateY(-8px);-moz-transform:translateX(100%) translateY(-8px);transform:translateX(100%) translateY(-8px)}.hint--always.hint--top-right:after,.hint--always.hint--top-right:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--bottom:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--bottom:after{-webkit-transform:translateX(50%) translateY(8px);-moz-transform:translateX(50%) translateY(8px);transform:translateX(50%) translateY(8px)}.hint--always.hint--bottom-left:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--bottom-left:after{-webkit-transform:translateX(100%) translateY(8px);-moz-transform:translateX(100%) translateY(8px);transform:translateX(100%) translateY(8px)}.hint--always.hint--bottom-right:after,.hint--always.hint--bottom-right:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--left:after,.hint--always.hint--left:before{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)}.hint--always.hint--right:after,.hint--always.hint--right:before{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--rounded:after{border-radius:4px}.hint--no-animate:after,.hint--no-animate:before{-webkit-transition-duration:0s;-moz-transition-duration:0s;transition-duration:0s}.hint--bounce:after,.hint--bounce:before{-webkit-transition:opacity .3s ease,visibility .3s ease,-webkit-transform .3s cubic-bezier(.71,1.7,.77,1.24);-moz-transition:opacity .3s ease,visibility .3s ease,-moz-transform .3s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .3s ease,visibility .3s ease,transform .3s cubic-bezier(.71,1.7,.77,1.24)}@font-face{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");font-weight:400;font-style:normal}[class*=" give-icon-"],[class^=give-icon-]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-icon-lamp:before{content:"\e603"}.give-icon-heart:before{content:"\e604"}.give-icon-question:before{content:"\e602"}.give-icon-info:before{content:"\e601"}.give-icon-new-tab:before{content:"\ea7e"}.give-icon-alert:before{content:"\f02d"}.give-icon-help:before{content:"\e606"}.give-icon-spinner:before{content:"\e605"}.give-icon-spinner2:before{content:"\e607"}.give-icon-plus:before{content:"\e040"}.give-icon-minus:before{content:"\e041"}.give-icon-locked:before{content:"\e600"}#dashboard_right_now .give-forms-count:before,.dashicons-give:before{font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;content:"\e800";speak:none;-moz-osx-font-smoothing:grayscale}.fa-spin{-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}@font-face{font-family:give-icomoon;font-weight:400;font-style:normal}.give-metabox-tabs li .give-icon:before{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:12px;vertical-align:top;line-height:20px;margin:0 0 0 5px}.give-metabox-tabs li .give-icon-default:before{content:"\e903"}.give-metabox-tabs li .give-icon-heart:before{content:"\e604"}.give-metabox-tabs li .give-icon-target:before{content:"\e901"}.give-metabox-tabs li .give-icon-display:before{content:"\e90c"}.give-metabox-tabs li .give-icon-edit:before{content:"\e902"}.give-metabox-tabs li .give-icon-checklist:before{position:relative;top:1px;content:"\e900"}.give-metabox-tabs li .give-icon-purse:before{content:"\e8df"}.give-metabox-tabs li .dashicons{font-size:14px;width:14px;line-height:20px}.give-grid-row{position:relative;width:100%}.give-grid-row [class^=give-grid-col]{float:right;margin:.5rem 1%;min-height:.125rem}.give-grid-row::after{content:"";display:table;clear:both}.give-grid-col-1{width:6.33333%}.give-grid-col-2{width:14.66667%}.give-grid-col-3{width:23%}.give-grid-col-4{width:31.33333%}.give-grid-col-5{width:39.66667%}.give-grid-col-6{width:48%}.give-grid-col-7{width:56.33333%}.give-grid-col-8{width:64.66667%}.give-grid-col-9{width:73%}.give-grid-col-10{width:81.33333%}.give-grid-col-11{width:89.66667%}.give-grid-col-12{width:98%}@media only screen and (max-width:33.75em){.give-grid-row [class^=give-grid-col]{width:98%}}#_give_donation_levels_repeat .cmb-group-title,#_give_donation_levels_repeat .cmb-row>.cmb-remove-group-row,#_give_donation_levels_repeat .cmb-row>.handlediv,.cmb-type-levels-id,.cmb2-id--give-custom-amount-minimum,.cmb2-id--give-custom-amount-text,.cmb2-id--give-display-style,.cmb2-id--give-form-content,.cmb2-id--give-levels-header,.cmb2-id--give-levels-header+.cmb-repeat-group-wrap,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-reveal-label,.cmb2-id--give-set-price,.give-hidden,.post-type-give_forms .tablenav #post-query-submit{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row .cmb2-radio-list label{font-size:12px}div.cmb-type-levels-repeater-header+div.cmb-repeat-group-wrap{padding:0!important;margin:0!important;min-width:100%;max-width:0}.cmb2-id--give-levels-header{padding:10px 12px 0!important;margin:0!important;background:#F7F7F7;border-bottom:none!important}.cmb2-id--give-levels-header .table-container{display:table;width:100%;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-right:1px solid #e9e9e9}.cmb2-id--give-levels-header .table-container>.table-row{display:table-row;background:#FCFCFC}.cmb2-id--give-levels-header .table-container>.table-row>.table-cell{display:table-cell;vertical-align:middle;padding:10px 15px;border-left:1px solid #e9e9e9}#_give_donation_levels_repeat .cmbhandle,.cmb2-id--give-levels-header .table-container>.table-row>.table-cell.col-id{display:none}#_give_donation_levels_repeat{background:#F7F7F7;padding:0 12px 20px 1px;box-sizing:border-box}#_give_donation_levels_repeat .cmb-row,#_give_donation_levels_repeat .inside{margin:0}#_give_donation_levels_repeat .cmb-remove-field-row{margin:3px 0 0}#_give_donation_levels_repeat .cmb-remove-field-row .button{height:25px;padding:0 3px}#_give_donation_levels_repeat .cmb-remove-field-row span.dashicons-no{line-height:1.15em}#_give_donation_levels_repeat .cmb-add-row{margin:12px 0 0}.give-time-field{width:65px}.give-money-field{width:75px;margin-left:0;margin-right:0}.give-money-symbol{border:1px solid #DDD;background:#FCFCFC;margin:0;font-size:14px;padding:5px 8px}.give-money-symbol-before{border-left:0;margin-left:-4px}.give-money-symbol-after{margin-right:-5px}.give_options_panel input[type=text],.give_options_panel input[type=email]{padding:5px;width:100%}input.give-text-small,input.give-text_small{width:100px!important}input.give-text-medium,input.give-text_medium{width:200px!important}.give-underline{text-decoration:underline}.postbox-container .cmb-row{margin:0}.postbox-container .cmb-row .cmb-th label{padding-right:8px}#give-bulk-donors div[id^=give-donor-]{display:block;overflow:hidden}@media only screen and (min-width:851px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{float:right;border-bottom:none;padding-left:10px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-th{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-td{float:right;width:100%}.cmb-type-give-default-radio-inline .cmb-td{margin-top:5px}}@media only screen and (min-width:851px) and (max-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{width:100%;padding-top:0}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-type-text-money{width:105px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list input.cmb2-text-money{width:65px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .give-multilevel-text-field{width:160px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .cmb-type-radio-inline{margin-right:20px}.col-amount{width:70px}.col-text{width:140px}.col-sort{display:none!important}.give-money-field{width:55px}}@media only screen and (min-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{float:left}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{padding-left:20px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row.cmb-row{padding-left:0}.col-amount{width:93px}.col-text{width:195px}.col-sort{width:100px}.give-multilevel-text-field{width:205px}}@media only screen and (max-width:850px){div.cmb-type-levels-repeater-header{display:none!important}}.shortcode-wrap{margin:1px 11px 12px 14px}.shortcode-wrap label{margin:0 0 3px;display:block;cursor:default}.shortcode-wrap .shortcode-input{margin:0;width:100%}.cmb2-id--give-content-option,.cmb2-id--give-customize-offline-donations,.cmb2-id--give-goal-option,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-terms-option{border-bottom:none!important;margin:0!important}.cmb2-id--give-agree-label,.cmb2-id--give-form-content,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-set-goal{border-top:1px solid #e9e9e9!important}.cmb2-id--give-agree-label,.cmb2-id--give-agree-text{display:none}input.shortcode-input{width:100%}.price .give_price_range_high,.price .give_price_range_low,.price .give_price_range_sep{display:inline-block}#side-sortables .cmb-th label:after{display:none}#side-sortables .cmb2-id--give-show-register-form{padding:10px 0 0!important}#side-sortables .cmb2-wrap>.cmb-field-list>.cmb-row{padding-top:10px}#side-sortables .cmb-row .cmb2-metabox-description{padding-bottom:0}.cmb2-metabox-description{line-height:1.5;display:block}.give-tooltip{margin:0 3px;padding:0;font-size:14px;-moz-transition:.2s all linear;-o-transition:.2s all linear;transition:.2s all linear;color:rgba(51,51,51,.5);position:relative;top:1px}.give-tooltip:hover{color:#333}#give-metabox-form-data .inside{margin:0;padding:0}#give-metabox-form-data .give-metabox-panel-wrap{background:#fff;overflow:hidden}#give-metabox-form-data .give_options_panel{display:none;padding-right:170px}#give-metabox-form-data .give_options_panel.active,.no-js #give-metabox-form-data .give_options_panel{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:1em 162px 1em 20px;margin:0;border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-field-wrap>label,#give-metabox-form-data .give_options_panel .give-field-wrap>span.give-field-label{float:right;width:135px;padding:0;margin:2px -150px 0 0;line-height:18px;font-size:12px;font-weight:400}#give-metabox-form-data .give_options_panel .give-field-wrap .give-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-top:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-field-wrap ul{margin:0}#give-metabox-form-data .give_options_panel .give-field-wrap .mce-container iframe,#give-metabox-form-data .give_options_panel .give-field-wrap textarea{min-height:250px!important}#give-metabox-form-data .give_options_panel .give-field-wrap .wp-editor-wrap{display:inline-block;width:100%}#give-metabox-form-data .give_options_panel textarea.give-field{width:100%}#give-metabox-form-data .give_options_panel .give-field-wrap:hover .give-field-row-actions{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap:last-child{border-bottom:0}#give-metabox-form-data .give_options_panel .give-inline-radio-fields li{display:inline-block;margin-left:15px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section{padding:10px;background:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeatable-fields-section-wrapper{width:100%;background-color:#fff;border-collapse:collapse}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row{border-bottom:15px solid #f5f5f5;background-color:#fff}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-template{display:none}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row:last-child{border-bottom:10px solid #f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-column{padding:0}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove{float:left;width:22px;height:36px;padding:0;display:block;text-align:center;line-height:34px;font-size:21px;font-weight:300;cursor:pointer}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove:hover{background-color:red;color:#fff;width:22px;height:22px;border-radius:30px;margin-top:8px;line-height:19px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head{border-bottom:1px solid #eee;cursor:move}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head h2{text-align:right!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.closed .toggle-indicator:before{content:"\f140"}.give-filter:after,.give-filters:after{content:""}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row .give-move .toggle-indicator:before{margin-right:7px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row-wrap{background-color:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row{margin:5px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-field-wrap:last-child{border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-ui-placeholder-state-highlight{background-color:#68bb6c}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-name{border:0!important;padding:0!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-bottom:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .ui-sortable-helper{display:table!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.ui-sortable-helper{border-bottom:0}#_give_donation_levels_field .give-row:nth-of-type(2) .give-remove{display:none!important}#give-metabox-form-data .give-metabox-tabs{margin:0;max-width:170px;float:right;line-height:1em;padding:0 0 10px;position:relative;background-color:#fafafa;border-left:1px solid #eee;box-sizing:border-box}#give-metabox-form-data .give-metabox-tabs:after{content:"";display:block;width:100%;height:9999em;position:absolute;bottom:-9999em;right:0;background-color:#fafafa;border-left:1px solid #eee}#give-metabox-form-data .give-metabox-tabs li{margin:0;padding:0;display:block;position:relative}#give-metabox-form-data .give-metabox-tabs li a{margin:0;padding:10px;display:block;box-shadow:none;text-decoration:none;line-height:20px!important;border-bottom:1px solid #eee;overflow:hidden}#give-metabox-form-data .give-metabox-tabs li a span.give-label{width:122px;display:inline-block}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li{background-color:#f1f1f1}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li a{border-bottom-color:#e5e5e5}#give-export-payments div.chosen-container ul.chosen-choices,#give-export-payments select,.type-download{border:1px solid #ddd}#give-metabox-form-data .give-metabox-tabs li.active>a{color:#555;position:relative;background-color:#eee}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields.active>a{background-color:#ddd}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields:not(.active):hover ul.give-metabox-sub-tabs{display:block;position:absolute;bottom:0;right:166px;width:170px;max-height:250px}@media only screen and (min-width:851px) and (max-width:1025px),(max-width:550px){#give-metabox-form-data ul.give-metabox-tabs{min-width:40px}#give-metabox-form-data ul.give-metabox-tabs li>a{text-align:center}#give-metabox-form-data ul.give-metabox-tabs li>a:before{margin-left:0;font-size:15px}#give-metabox-form-data ul.give-metabox-tabs li>a span.give-label{display:none}#give-metabox-form-data ul.give-metabox-tabs li>a span.give-icon:before{margin:0}#give-metabox-form-data .give_options_panel{padding-right:40px}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:10px}#give-metabox-form-data .give_options_panel .give-field-wrap label,#give-metabox-form-data .give_options_panel .give-field-wrap span.give-field-label{display:block;float:none;margin:0 0 10px;font-size:14px;width:100%}}#give-export-payments .give_forms_categories,#give-export-payments .give_forms_tags{min-width:250px;margin:0 0 10px;display:block}#give-export-payments .give_forms_categories input,#give-export-payments .give_forms_tags input{color:#999}#give-export-payments div.chosen-container:first-of-type{margin-top:10px}#give-export-payments div.chosen-container ul.chosen-choices input.chosen-search-input{border:1px solid #ddd;height:20px}#give-export-payments select{vertical-align:inherit;margin:0;height:26px;line-height:26px}.give-docs-link{text-align:left;margin-left:15px}.give-docs-link a{color:#999;text-decoration:none;font-style:italic}.give-docs-link a:hover{color:#0073aa}.give-docs-link a span{font-style:normal}.type-download{float:right;margin:0 0 1em 1em!important;padding:0;vertical-align:top;width:280px;text-decoration:none;color:inherit;display:block;min-height:365px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;position:relative}.type-download:hover{border:1px solid #d1d1d1}.type-download>.featured-img img{border-bottom:1px solid #ddd}.type-download .addon-content{padding:15px 20px}.type-download .addon-content:after,.type-download .addon-content:before{content:" ";display:table}.type-download .addon-content .addon-heading{margin:0 0 10px}.type-download .addon-content .addon-heading a{outline:0;text-decoration:none}.type-download .addon-footer-wrap{border-top:1px solid #ddd;position:absolute;bottom:2px;right:0;width:100%;background-color:#FFF;padding:15px 20px}.give-view-addons-all span.dashicons,.type-download span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.give-view-addons-all span.dashicons{margin-right:3px}#give-dashboard-widgets-wrap .inside{padding-top:0;padding-bottom:0}.give_forms_page_give-reports #give-dashboard-widgets-wrap .inside{padding-right:0}#give-dashboard-widgets-wrap .inside #give-graphs-filter{float:none}#give-dashboard-widgets-wrap .postbox{margin-bottom:10px}#give-dashboard-widgets-wrap table.reports-table{clear:none}#give-dashboard-widgets-wrap #give-date-range-options{float:right}#give-dashboard-widgets-wrap #give-date-range-options>span{float:right;line-height:30px;font-style:italic;padding:0 0 0 5px}#give-graphs-filter,body.give_forms_page_give-payment-history .tablenav-right .tablenav-pages,body.give_forms_page_give-reports .tablenav-right .tablenav-pages{float:left}#give-graphs-filter .tablenav{margin:0 17px 0 0}#give-graphs-filter .tablenav .actions{padding:0}.give-graph .y1Axis{color:#66bb6a!important}.give-graph .y2Axis{color:#546e7a!important}body.give_forms_page_give-payment-history h1.nav-tab-wrapper,body.give_forms_page_give-payment-history h2.nav-tab-wrapper,body.give_forms_page_give-reports h1.nav-tab-wrapper,body.give_forms_page_give-reports h2.nav-tab-wrapper{margin-bottom:10px}body.give_forms_page_give-payment-history .actions,body.give_forms_page_give-reports .actions{padding-top:0}body.give_forms_page_give-payment-history .pagination-links,body.give_forms_page_give-reports .pagination-links{margin-right:10px}body.give_forms_page_give-payment-history p.donor-search,body.give_forms_page_give-reports p.donor-search{margin-left:10px}body.give_forms_page_give-payment-history .tablenav-right #give-reports-view,body.give_forms_page_give-reports .tablenav-right #give-reports-view{margin-top:0}body.give_forms_page_give-payment-history .tablenav-right .actions,body.give_forms_page_give-payment-history p.search-box,body.give_forms_page_give-reports .tablenav-right .actions,body.give_forms_page_give-reports p.search-box{float:right}body.give_forms_page_give-payment-history .reports-table-nav.tablenav.top,body.give_forms_page_give-reports .reports-table-nav.tablenav.top{width:100%;float:none;margin:0 0 10px}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top,body.give_forms_page_give-reports .reports-forms-details-wrap.top{float:left;overflow:hidden}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top #give-reports-filter,body.give_forms_page_give-reports .reports-forms-details-wrap.top #give-reports-filter{float:right}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top>.actions,body.give_forms_page_give-reports .reports-forms-details-wrap.top>.actions{padding-left:0}body.give_forms_page_give-payment-history .tablenav.bottom,body.give_forms_page_give-reports .tablenav.bottom{margin-top:10px}body.give_forms_page_give-payment-history h2.reports-earnings-title,body.give_forms_page_give-reports h2.reports-earnings-title{margin:7px 0 0}body.give_forms_page_give-payment-history .reports-views-wrap,body.give_forms_page_give-reports .reports-views-wrap{padding:3px 0 0}body.give_forms_page_give-payment-history .wrap.give-reports-donors-wrap,body.give_forms_page_give-reports .wrap.give-reports-donors-wrap{margin-left:0;margin-bottom:10px}body.give_forms_page_give-payment-history .widefat tbody td,body.give_forms_page_give-payment-history .widefat tbody th,body.give_forms_page_give-reports .widefat tbody td,body.give_forms_page_give-reports .widefat tbody th{padding-top:12px;padding-bottom:12px}body.give_forms_page_give-reports table.export-options-table tbody td{padding:20px 12px;vertical-align:top}#test-payment-label,.give-mobile-link,.give-settings-page .export-options-table tr.give-import-option:nth-child(odd) th,table.give-table td{vertical-align:middle}body.give_forms_page_give-reports table.export-options-table .give-export-form{position:relative}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap{background-color:transparent;padding:12px 12px 4px;margin:2px -11px -16px 0;overflow:auto}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap .spinner{margin:-2px 0 8px -12px}body.give_forms_page_give-reports table.export-options-table span#give-end-wrap input,body.give_forms_page_give-reports table.export-options-table span#give-start-wrap input{width:100px}#export-donor-options-wrap p{padding:20px 0 0;margin:0;font-weight:700}#export-donor-options-wrap ul{max-width:900px;overflow:hidden}#export-donor-options-wrap ul li{margin:0;padding:0 0 5px 5px;box-sizing:border-box;float:right;width:33%}#give-tools-recount-form .notice-wrap{position:relative;min-height:25px;margin:10px -12px -12px;background:#EFEFEF;padding:10px 12px 12px;border-top:1px solid #E5E5E5}#give-tools-recount-form .notice-wrap .give-progress{position:absolute;top:15px}#give-tools-recount-form .notice-wrap .spinner{position:absolute;left:14px;top:13px;margin:0}#give-tools-recount-form .notice-wrap #give-batch-success{margin-bottom:6px}.recount-stats-controls form{display:inline}.give-recount-stats-descriptions{margin:8px 0 0;display:block}.give-recount-stats-descriptions span{line-height:24px;font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0;display:none}.social-items-wrap,.social-items-wrap>div,.welcome-h1{display:inline-block}.gateways-report-tablenav .actions.bulkactions{padding-left:0}table.give-table td.row-title h3{margin:0 0 .4em;font-size:1.2em}table.give-table td.row-title p{font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0}#give-graphs-filter>.tablenav{height:auto}#give-logs-filter .search-box{float:left}#give-logs-filter .tablenav.top{float:right;clear:none;margin-top:0}.welcome-h1{margin-left:15px!important}.about-wrap h3{margin:1.5em 0 .6em}.about-wrap img{border:none}.give-badge{padding-top:150px;height:52px;width:185px;color:#FFF;font-weight:700;font-size:14px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.8);margin:0 -5px;position:absolute;top:0;left:0}.introduction{padding:0 0 20px;margin:0 0 20px}.feature-section{margin-top:40px}.feature-section span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.feature-section .feature-section-item{width:48%;float:right}.feature-section div.last-feature{margin-left:0;margin-right:4%}[class*=dashboard_page_give-] .about-text,[class^=dashboard_page_give-] .about-text{min-height:0}.social-items-wrap .twitter-item-wrap{margin:0 0 10px 20px}.wp-person img{border-radius:50%}.wp-person a.web{margin:17px 0 0;font-weight:700;font-style:italic}.newsletter-intro{font-size:13px;font-style:italic;color:#777}.give-newsletter-form-wrap{margin:10px -5px 20px 0;max-width:700px}.give-newsletter-form-wrap td{padding:3px}.give-newsletter-form-wrap div.give-newsletter-confirmation{background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 5px 4px 10px;padding:1px 12px;border-right:4px solid #7ad03a;display:none}.give-newsletter-form-wrap div.give-newsletter-confirmation>p{margin:.5em 0;padding:2px}#give_donor_export_form{margin:0 0 5px}.column-status .give-donation-status,.column-status .give-test-mode-transactions-label{display:inline-block}.column-status .give-test-mode-transactions-label{margin:0 5px;vertical-align:middle}.give-settings-page .give-settings-heading-sep{font-size:14px;line-height:32px;width:15px}.give-settings-page .nav-tab-wrapper{margin-bottom:5px;overflow:visible}.give-settings-page .cmb2-wrap .cmb-type-checkbox input[type=checkbox]{display:block;margin-bottom:5px}.give-settings-page div.give-submit-wrap{margin:20px 0}.give-settings-page .give_forms_page_give-payment-history .postbox .hndle{cursor:default}.give-settings-page .give-input-field{width:25em}.give-settings-page table table input[type=text]{width:15em}.give-settings-page .give-repeat-setting-field{margin:10px 0}.give-settings-page .give-remove-setting-field{width:25px;height:25px;padding:0;text-align:center;line-height:22px;font-size:21px;font-weight:300;cursor:pointer;margin-right:20px;display:inline-block}.give-settings-page .give-remove-setting-field:hover{background-color:red;color:#fff;border-radius:30px}.give-settings-page .give-forminp p:first-child .give-remove-setting-field{display:none}.give-settings-page .export-options-table tr.give-import-option:nth-child(odd){background:#f4f3f3}.give-settings-page .export-options-table .give-import-dropdown:nth-child(2),.give-settings-page .export-options-table tr.give-import-option th:first-child{width:250px}.give-setting-tab-header{clear:both;overflow:hidden;margin:30px 0}.give-setting-tab-header h2{margin-top:8px}.give-setting-tab-header p{margin-bottom:0}.give-radio-inline ul{margin-top:0}.give-radio-inline li{display:inline-block;margin:0 15px 0 0}.give-radio-inline li:first-child{margin-right:0}.give-tools-setting-page .bulkactions{overflow:visible}.form-table td.give-radio-inline fieldset li>label{margin:5px 0 0!important}.cmb2-metabox-description,p.give-field-description{color:#aaa;font-style:italic;font-size:13px!important}.cmb-type-give-title label,.give-setting-tab-header h2{float:right;display:inline-block;width:220px;font-style:italic;color:#AAA;margin:0;font-size:14px}.postbox-container #_give_donation_levels_repeat>.cmb-repeatable-grouping:not(:last-of-type){border-bottom:1px solid #e9e9e9;border-top:none}.cmb-type-enabled-gateways .cmb-td>p:first-of-type{display:none}.cmb-type-checkbox .cmb-td{width:80%}.cmb-type-checkbox .cmb-td label{font-size:13px}.give_settings .cmb2-wrap .cmb-row{display:table-row}.give_settings .cmb2-wrap .cmb-row>.cmb-td,.give_settings .cmb2-wrap .cmb-row>.cmb-th{display:table-cell;float:none}.cmb2-id-give-title label{font-style:italic;color:#AAA;cursor:default}.cmb2-id-give-title>div.cmb-th{padding-bottom:10px}.cmb2-id-give-title>div.cmb-td{padding-bottom:5px}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle{padding:3px 0 0 4px;font-size:15px;font-weight:400;color:#bdbdbd;cursor:move}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle:hover{color:#333}.give-email-tags-wrap{margin:5px 0 0}.give-email-tags-wrap code{font-style:normal;padding:1px 2px;font-size:12px}.give-email-tags-wrap span{display:block;color:#AAA;font-style:italic;margin:0 0 2px;font-size:13px}.give-email-tags-wrap .give_price_tag,.give-settings-email-settings-section .give-setting-tab-header-emails hr,.give-settings-email-settings-section .tablenav{display:none}.give-settings-email-settings-section .give-setting-tab-header-emails{margin:0 0 20px}.give-settings-email-settings-section .tablenav.bottom+.give-setting-tab-header-emails{margin:20px 0}.give-settings-email-settings-section .tablenav.bottom+.give-setting-tab-header-emails hr{display:block}.giveemailnotifications .check-column{padding:13px 20px 0 10px!important}.giveemailnotifications td.check-column input{display:none}.giveemailnotifications th.check-column .give-email-notification-status{color:#fff;cursor:pointer}.giveemailnotifications th.check-column .give-email-notification-status[data-edit="1"] i.dashicons{border-radius:1em;padding:2px}.giveemailnotifications th.check-column .give-email-notification-disabled:hover .dashicons-no-alt,.giveemailnotifications th.check-column .give-email-notification-enabled .dashicons-yes{background:#46b450}.giveemailnotifications th.check-column .give-email-notification-enabled .dashicons-lock{color:#46b450}.giveemailnotifications th.check-column .give-email-notification-disabled .dashicons-no-alt,.giveemailnotifications th.check-column .give-email-notification-enabled:hover .dashicons-yes{background:#bbb}.giveemailnotifications th.check-column .give-email-notification-disabled .dashicons-lock{color:#bbb}.giveemailnotifications th.check-column .dashicons-no-alt:hover:before{content:"\f147"!important}.giveemailnotifications th.check-column .dashicons-yes:hover:before{content:"\f335"!important}.giveemailnotifications .spinner.is-active{margin:0 2px 0 0;float:none}#system-info-textarea{width:800px;height:600px;font-family:Menlo,Monaco,monospace;background:#FFF;white-space:pre;overflow:auto;display:block;direction:ltr}#give-download-sysinfo{margin:0}#api .tablenav .actions{overflow:visible}a.give-delete{color:#a00}.give-settings-wrap-licenses .give-license-deactivate{margin:1px 10px 0 0;height:30px}.give-settings-wrap-licenses .give-license-field{background:url(../images/close.png) 1.5% center no-repeat #FFF;background-size:18px}.give-settings-wrap-licenses .give-license-active,.give-settings-wrap-licenses .give-license-active:focus{background-image:url(../images/tick.png);background-color:#FFF;background-repeat:no-repeat;background-position:1.5% center;outline:0;background-size:16px;width:100%}.give-settings-page .give-settings-wrap-licenses{display:block;position:relative;float:right;width:30.5%;min-height:180px;margin:20px 0 20px 1%}.give-settings-page .give-license-key label{margin:0 10px 0 0;padding:10px 0;display:block;font-size:14px;font-weight:600;cursor:default}.give-settings-page .give-license-block{margin:0 10px}.give-settings-page input[type=text].give-license-field,.give-settings-page input[type=password].give-license-field{width:100%}.give-settings-page .give-license-block input[type=submit]{position:absolute;top:3px;left:10px;height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.give-settings-page .give-license-status-notice{background:#fff;border-right:4px solid #fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:1px 12px}.give-settings-page .give-license-status-notice p{padding:10px 0;margin:0}.give-settings-page .give-license-status-notice a{color:#444;cursor:pointer}.give-settings-page .give-license-status-notice a:hover{text-decoration:none}.give-settings-page .give-license-status-notice.give-license-expires-soon{border-color:#00a0d2}.give-settings-page .give-license-status-notice.give-inactive,.give-settings-page .give-license-status-notice.give-license-expired{border-color:#e24e4e}.give-settings-page .give-license-status-notice.give-license-error,.give-settings-page .give-license-status-notice.give-license-invalid,.give-settings-page .give-license-status-notice.give-license-item_name_mismatch,.give-settings-page .give-license-status-notice.give-license-missing,.give-settings-page .give-license-status-notice.give-license-no_activations_left,.give-settings-page .give-license-status-notice.give-license-site_inactive{border-color:orange}.give-settings-page .give-license-status-notice.give-license-expiration-date,.give-settings-page .give-license-status-notice.give-license-lifetime-notice{border-color:#46b450}.give-settings-page .give-license-status-notice.give-license-expired a:hover,.give-settings-page .give-license-status-notice.give-license-expires-soon a:hover{text-decoration:none}@media screen and (max-width:1100px){.give-settings-page .give-settings-wrap-licenses{width:45%;min-height:150px}}.give-table thead th{padding:8px 10px!important}.give_settings .cmb-td hr+hr{display:none}.post-type-give_forms .mce-container iframe,.post-type-give_forms .wp-editor-area{min-height:400px}.give-field-description{color:#aaa;font-style:italic;margin:0;padding-top:.5em}h2.give-nav-tab-wrapper{overflow:hidden;height:35px}@media screen and (max-width:600px){.give-settings-page .give-settings-wrap-licenses{width:100%;max-width:320px}.give-nav-tab-wrapper{position:relative;padding-top:0!important}.give-nav-tab-wrapper>a{width:100%;box-sizing:border-box;margin:0;background-color:#fff;border:1px solid #ccc}.give-nav-tab-wrapper>a:hover{border-bottom:1px solid #ccc}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper{position:absolute;top:0;left:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav{height:28px;width:30px;border-radius:0;margin:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav>span.dashicons{margin:6px auto 0;display:block}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{top:35px;left:0;right:auto}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{background:#fff}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#e5e5e5}.give-mobile-hidden{display:none}}.give-sub-nav-tab-wrapper{position:relative;z-index:9999;float:right;display:none}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{border:1px solid #ccc;border-bottom:0;position:absolute;top:35px;left:0}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{float:right;background:#fff;padding:6px 10px;clear:both;text-decoration:none;border-bottom:1px solid #ccc;min-width:170px;color:#555;font-size:14px}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#fff}#give-show-sub-nav{text-decoration:none;padding:3px 4px;border-bottom:1px solid #ccc;line-height:0;background:#fff;border-radius:4px;margin-top:5px}#give-show-sub-nav>span.dashicons{font-size:16px;height:16px;width:16px}#give-show-sub-nav:active,#give-show-sub-nav:hover{outline:0;box-shadow:inset 0 0 4px #ddd}.give-image-thumb{position:relative;margin-top:14px}.give-image-thumb span.give-delete-image-thumb{position:absolute;background:red;color:#fff;border-radius:30px;right:-10px;top:-10px;cursor:pointer}.give-image-thumb img{max-width:250px;border:4px solid #fff}.give-filters,.give-submit-wrap{border:1px solid #dfdfdf;clear:both}.give-filters{background:#f5f5f5;padding:12px 12px 0}.give-filters .give-donation-forms-filter .chosen-single{height:28px;line-height:28px}.give-filters .chosen-container-single .chosen-single div b{background-position:100% 4px}.give-filters .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 6px}.give-filters #give-payment-form-filter,.give-filters #give_donation_forms_filter{display:inline-block;width:300px}@media screen and (max-width:782px){.give-filters #give-payment-form-filter,.give-filters #give_donation_forms_filter{width:100%}}.give-filters #give_donation_forms_filter{width:255px}.give-filter input[type=text],.give-filter select{width:100%}@media screen and (max-width:782px){.give-filters #give_donation_forms_filter{width:100%;max-width:100%}}.give-filters:after{display:table;clear:both}.give-filter{display:block;margin-bottom:12px;width:100%}.give-filter:after{display:table;clear:both}.give-filter label{display:block;margin-left:4px}.give-filter input{margin:0}.give-filter input[type=text],.give-filter input[type=search]{height:28px}.give-filter .button{height:28px;line-height:26px;margin:0;padding:0 10px 1px}@media screen and (min-width:783px){.give-filter{float:right;margin-left:18px;width:auto}.give-filter label{display:inline-block}.give-filter input[type=text]{display:inline-block;width:144px}}.give-filter-search input[type=search]{display:block;float:right;width:68%}.give-filter-search input[type=submit]{display:block;float:left;width:30%}@media screen and (min-width:783px){.give-filter-search input[type=search]{display:inline-block;margin-left:4px;width:144px}.give-filter-search input[type=submit]{display:inline-block;width:auto}}@media screen and (min-width:600px){.give-filter-half{float:right;width:49%}.give-filter-half:last-child{float:left}}@media screen and (min-width:783px){.give-filter-half{width:auto}.give-filter-half:last-child{float:right}.give-filter-half input[type=text]{width:96px}}.give-clear-filters-button{margin-right:8px}.give-submit-wrap{background:#f5f5f5;margin:8px 0;padding:12px;font-size:13px;line-height:2.1em}#give-payment-filters ul.subsubsub{margin-bottom:8px}#give-payments-advanced-filter ul.subsubsub{margin-bottom:12px}#give-payments-filter .tablenav.top{float:none}#give-payments-filter .tablenav.top .bulkactions{margin-top:1px;padding-top:0}#give-payments-filter .give-email-column-value{font-size:14px;font-weight:700}#give-payments-filter #the-list .check-column input{margin-top:1px}#give-payments-filter .column-details{width:50px}#give-payments-filter .column-amount{width:120px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.forms th#date{width:140px}.give-mobile-link{line-height:32px}.give-mobile-link img{max-width:80%;height:auto;float:right}.give-donation-status>span{display:inline-block;width:12px;height:12px;position:relative;top:1px;margin:0;padding:0;border-radius:50%;background:#888;line-height:16px}#give-payments-filter .give-payment-id,#test-payment-label{padding:.2em .4em .3em;font-size:11px;text-align:center;border-radius:.25em;color:#fff;white-space:nowrap}.give-donation-status.status-pending>span{background-color:#ffba00}.give-donation-status.status-complete>span,.give-donation-status.status-publish>span{background-color:#7ad03a}.give-donation-status.status-refunded>span{background-color:#777}.give-donation-status.status-failed>span{background-color:#a00}.give-donation-status.status-abandoned>span{background-color:#333}.give-donation-status.status-revoked>span{background-color:#d9534f}.give-donation-status.status-give_subscription>span,.give-donation-status.status-renewal>span,.give-donation-status.status-subscription>span{background-color:#5bc0de}#test-payment-label{line-height:1;background-color:#ffba00;margin:0 15px}#test-payment-label:hover{color:#fff;text-decoration:none}#give-payments-filter .give-payment-id{line-height:1;vertical-align:baseline;font-weight:400}.give-admin-box .label,.give-admin-box-inside .strong{font-weight:600}#give-payments-filter .give-payment-id:hover{color:#fff;text-decoration:none}#give-payments-filter .column-details{padding-left:30px}#give-payments-filter .give-donation-status{display:inline-block}#give-order-update .give-donation-status{display:inline-block;float:none;margin:0 10px;position:relative;top:3px}.column-donation_form .donation-level-text-wrap{font-style:italic;display:block}@media handheld,only screen and (max-width:640px){.wp-list-table.forms th{width:auto!important}}.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-right:-8px;margin-top:-8px}.give-admin-box-inside{margin:0;padding:3px 10px;clear:both;border-bottom:1px solid #eee}.give-admin-box .right{float:left}#give-order-details .inside,#give-order-update .inside{margin:0;padding:0}#give-order-update input.give_datepicker{width:180px}#give-order-update input[type=number].give-payment-time-hour,#give-order-update input[type=number].give-payment-time-min{width:50px}.give-admin-box-inside:last-child{border-bottom:0}#give-edit-order-form .data-payment-key{word-break:break-all}.give-order-update-box #major-publishing-actions .button-secondary{margin-left:10px}#give-donation-overview th{text-align:right}#give-donation-overview .give-select-chosen{width:97%}#give-edit-order-form .row{margin-top:10px}#give-donation-overview ul,#give-donor-details .order-data-address input,#give-donor-details .order-data-column p.data input,#give-edit-order-form .column input,#give-order-address-country-wrap select{clear:both;display:block}.give-order-data input.small-text{margin:0}#give-order-update span.label{display:inline;width:50px}.give-order-update-box .button-primary{margin-left:0}#give-edit-order-form .column .description{padding-left:10px}#give-donation-overview .inside>ul>li,#give-donation-overview .row>ul>li,#give-edit-order-form .column{display:inline-block;position:relative;vertical-align:top}#give-donation-overview ul{font-size:0}#give-donation-overview ul li{font-size:13px}#give-donation-overview ul li.actions{text-align:left;min-width:200px}#give-donation-overview ul li.remove{text-align:left}#give-donation-overview ul .row{padding:12px;border-bottom:1px solid #eee}#give-order-data .data span{color:#666;font-weight:600}input.give-price-field{width:80px;padding:3px 5px}.give_forms_page_give-payment-history.js .postbox .hndle{cursor:default}#give-payment-notes textarea{min-height:150px}#give-payment-notes #give-add-payment-note{margin:6px 0 15px}#give-billing-details .column>div{margin:0 0 10px}#give-billing-details label{display:block;margin-bottom:5px}#give-billing-details .column-container{padding:5px 0 10px}#give-billing-details input[type=text]{width:98%}#give-billing-details .chosen-container{width:98%!important}@media screen and (min-width:1200px){#give-edit-order-form .column{width:33%}#give-order-address .column{width:49%}#give-donation-overview.columns-4 li.actions{width:25%;margin-top:0;margin-left:0}}@media screen and (max-width:1199px){#give-edit-order-form .column{width:49%}}@media screen and (max-width:782px){.order-data-column input[type=email]{padding:6px 10px}}#give-donation-overview .inside,#give-donor-details .inside{margin-top:0}.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables{padding-top:0}.give-select-chosen .spinner{position:absolute;left:5px;top:2px;z-index:999}.give-select-chosen-ajax .spinner{visibility:visible}.give-select-chosen-ajax .chosen-search input[type=text],.give-select-chosen-ajax.chosen-container-single .chosen-search input[type=text]{background-image:none!important}.give-dashboard-widget .give-dashboard-today{text-align:center}.give-dashboard-widget .give-dashboard-today .give-dashboard-date-today{margin:10px 0 0;padding:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-happy-day{padding:3px;margin:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-today-earnings{font-size:42px;color:#4ead61;font-weight:700;margin:15px 0 0;line-height:1}.give-dashboard-widget .give-dashboard-today .give-donations-today{font-size:18px;font-weight:700;margin:0 0 30px;padding:4px 0 1px}.give-dashboard-widget .give-dashboard-today .give-last-seven{font-size:14px;font-weight:700;padding:0;margin:0 0 30px}.give-dashboard-widget .give-table-stats{width:100%;text-align:center;margin:0;table-layout:fixed;border-top:1px solid #ececec;border-spacing:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total,.give-dashboard-widget .give-table-stats .give-dashboard-stat-total-label{padding:0;margin:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total{color:#4ead61;font-weight:700;font-size:16px}#give_dashboard_sales>.inside{padding:0}#give_dashboard_sales .give-table-stats td{padding:10px 0}#give_dashboard_sales .give-table-stats td:first-of-type{border-left:1px solid #ececec}#give_dashboard_sales .give-table-stats tr#give-table-stats-tr-1 td{border-bottom:1px solid #ececec}#dashboard_right_now .give-forms-count:before{font-family:give-icomoon;font-style:normal;font-weight:400;line-height:1;font-size:18px;width:18px;height:18px}.give_forms_page_give-donors .wrap>h2{margin-bottom:15px}.give_forms_page_give-donors .nav-tab-wrapper .dashicons{position:relative;top:2px;margin:0 0 0 3px}.give_forms_page_give-donors #give-donors-filter{position:relative}.give_forms_page_give-donors #give-donors-filter p.search-box{margin:0}.give_forms_page_give-donors #give-donors-search-filter{display:block;overflow:hidden}.give_forms_page_give-donors #give-donor-card-wrapper{margin-right:-1px;z-index:2;min-height:200px}.give_forms_page_give-donors #give-donor-card-wrapper input{font-weight:400}.give_forms_page_give-donors #give-donor-card-wrapper .donor-section{border-bottom:1px solid #eee;margin-bottom:10px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-section table{margin-bottom:0}.give_forms_page_give-donors #give-donor-card-wrapper>div:first-child{padding-top:20px}.give_forms_page_give-donors #give-donor-card-wrapper>div:last-child{padding-bottom:20px;border:none}.give_forms_page_give-donors #give-donor-card-wrapper .avatar-wrap{padding:0 0 15px 15px;text-align:center;float:right}.give_forms_page_give-donors #give-donor-card-wrapper .avatar-wrap img{border-radius:3px}.give_forms_page_give-donors #give-donor-card-wrapper a.delete{text-decoration:none;color:red;margin-left:5px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-since{margin:10px 0;font-size:16px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-id{display:inline-block;font-size:24px;font-weight:600;margin-left:10px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-name-wrap{display:inline-block}.give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-edit-link{margin-bottom:15px}.give_forms_page_give-donors .donor-main-wrapper{clear:both;margin:0 0 20px}@media (max-width:655px){.give_forms_page_give-donors .donor-main-wrapper{width:100%}}.give_forms_page_give-donors .donor-main-wrapper table{margin:0}.give_forms_page_give-donors .donor-main-wrapper input{width:200px}.give_forms_page_give-donors #donor-summary{padding:0 20px}.give_forms_page_give-donors #donor-summary:after{font-family:dashicons;content:"\f110";position:absolute;top:10px;left:10px;font-size:100px;color:#F0F0F0;z-index:0}.give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper{width:202px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper select,.give_forms_page_give-donors #give-donor-card-wrapper .give_user_search_results ul{width:200px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper span[data-key=line2]{display:table;clear:both}.give_forms_page_give-donors #give-donor-card-wrapper .donor-info{min-height:185px}.give_forms_page_give-donors #give-donor-card-wrapper .info-wrapper{min-height:125px}.give_forms_page_give-donors .donor-info .donor-name{font-size:24px;font-weight:600}.give_forms_page_give-donors #disconnect-donor,.give_forms_page_give-donors #view-user-profile{font-size:12px;font-weight:400;text-decoration:none}.give_forms_page_give-donors #donor-edit-actions{text-align:center;margin-bottom:20px;line-height:28px}.give_forms_page_give-donors #donor-edit-actions .button-secondary{margin-left:10px}.give_forms_page_give-donors #give-donor-card-wrapper .edit-item{display:none}.give_forms_page_give-donors #give-donor-card-wrapper .give_user_search_results{right:1px;top:16px}.give_forms_page_give-donors #donor-stats-wrapper{margin:0 auto;text-align:center;padding:15px}.give_forms_page_give-donors #donor-stats-wrapper ul{margin:0;padding:0;overflow:hidden}.give_forms_page_give-donors #donor-stats-wrapper ul li{width:50%;float:right;line-height:22px;font-size:14px;margin:0}.give_forms_page_give-donors #donor-stats-wrapper a{text-decoration:none}.give_forms_page_give-donors #donor-stats-wrapper .dashicons{color:#888}.give_forms_page_give-donors #donor-tables-wrapper table{width:100%;text-align:center}.give_forms_page_give-donors #donor-tables-wrapper th{text-align:center}.give_forms_page_give-donors #donor-tables-wrapper .donations tr>td:first-child,.give_forms_page_give-donors #donor-tables-wrapper .donations tr>th:first-child,.give_forms_page_give-donors #donor-tables-wrapper .emails tr>td:first-child,.give_forms_page_give-donors #donor-tables-wrapper .emails tr>th:first-child{text-align:right}.give_forms_page_give-donors #donor-tables-wrapper .donations tr>td:only-child{text-align:center}.give_forms_page_give-donors #donor-notes-wrapper{min-height:50px}.give_forms_page_give-donors .donor-notes-header img,.give_forms_page_give-donors .donor-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.give_forms_page_give-donors .donor-note-input{width:100%;margin-bottom:5px}.give_forms_page_give-donors #give-donor-notes div:nth-of-type(even){background-color:#f9f9f9}.give_forms_page_give-donors #give-donor-notes .donor-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:0}.give_forms_page_give-donors #give-donor-notes .donor-note-wrapper .note-content-wrap{padding:10px 12px;line-height:20px;font-size:14px}.give_forms_page_give-donors #give-donor-notes .give-no-donor-notes{text-align:center;padding:20px}.give_forms_page_give-donors .donor-note-wrapper span{display:block}.give_forms_page_give-donors .delete-donor{text-align:center}.give_forms_page_give-donors .give-lock-block{margin-right:-25px;text-decoration:none;font-size:14px;margin-left:3px}.give_forms_page_give-donors .give-lock-block i{color:#000;font-size:14px}.give_forms_page_give-donors #donor-address-wrapper .give-no-address-message{margin:.5rem 1%;line-height:3.4em}.give_forms_page_give-donors #donor-address-wrapper .add-new-address{margin:.5rem 1%!important}.give_forms_page_give-donors #donor-address-wrapper .add-new-address-form-hidden{position:absolute;left:13px;right:13px;top:0;visibility:hidden}.sc-wrap,button.sc-button:after{position:relative;display:inline-block}.give_forms_page_give-donors #donor-address-wrapper .all-address .address{min-height:146px;border:1px solid #dad9d9;padding:9px;border-radius:5px;background-color:#fff}.give_forms_page_give-donors #donor-address-wrapper .all-address .address .address-number-label{color:gray;cursor:default}.give_forms_page_give-donors #donor-address-wrapper .all-address .address a{text-decoration:none}.give-blank-slate__help a,.mce-sc-popup a{text-decoration:underline}@media screen and (max-width:782px){#wp-content-media-buttons a.give-thickbox{padding:6px 14px;line-height:normal;font-size:14px;height:auto}.wp-media-buttons span#give-media-button{margin-top:0!important;margin-right:2px!important}}.mce-primary.mce-give-primary button{padding-left:10px;padding-right:10px}.wp-core-ui .give-admin-button{padding-right:7px;padding-left:7px}.give-admin-button-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}.give-admin-button-icon:before{font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-admin-button-icon-update:before{content:"\f463"}.mce-primary.mce-sc-primary button{padding-left:10px;padding-right:10px}.mce-sc-popup p{margin-bottom:1em}.mce-sc-popup p.strong{font-weight:600}.mce-sc-popup p.no-margin{margin-bottom:0}.mce-sc-popup p.margin-top{margin-top:1em}.mce-sc-popup .mce-listbox button{text-overflow:ellipsis;overflow:hidden!important}@media screen and (max-width:782px){.wp-media-buttons button.sc-button span{width:18px!important}}.wp-media-buttons button.sc-button{outline:0;padding-right:5px;margin-left:0}.wp-media-buttons button.sc-button:active{margin-bottom:5px}button.sc-button:after{top:-1px;content:'';width:0;height:0;border-top:6px solid #777;border-left:4px solid transparent;border-right:4px solid transparent;margin:0 6px 0 3px}button.sc-button.active:after{top:-2px;border-top:0;border-bottom:6px solid #32373c}.sc-wrap{margin-left:5px}div.sc-menu{display:none;position:absolute;top:100%;right:0;min-width:100%;max-height:410px;font-size:14px;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#fff;border:1px solid rgba(0,0,0,.15);overflow:auto;overflow-x:hidden;padding:5px 0;margin:-2px 0 0;z-index:1002}div.sc-shortcode{display:block;white-space:nowrap;cursor:pointer;padding:6px 12px;margin-bottom:2px}div.sc-shortcode:hover{color:#fff}#mce-modal-block.mce-reset.mce-fade.mce-in{opacity:.7;filter:alpha(opacity=70)}.give-status-table{margin-bottom:1em}.give-status-table h2{font-size:14px;margin:0}.give-status-table tr:nth-child(2n) td,.give-status-table tr:nth-child(2n) th{background:#fcfcfc}.give-status-table th{font-weight:700;padding:9px}.give-status-table td:first-child{width:33%}.give-status-table td.help{width:1em}.give-status-table td{padding:9px;font-size:1.1em}.give-status-table td mark{background:0 0}.give-status-table td mark.yes{color:#7ad03a}.give-status-table td mark.no{color:#999}.give-status-table td mark.error{color:#a00}.give-status-table td ul{margin:0}.wrap div.give-debug-report-wrapper{margin-bottom:5px}.wrap div.give-debug-report-wrapper p{font-size:18px;margin:1em 0 .7em;padding:0}.wrap div.give-debug-report-wrapper .give-debug-report-actions{margin:0 0 1.7em}.wrap div.give-debug-report-wrapper .give-debug-report-actions .js-give-debug-report-button{margin-left:10px}.wrap div.give-debug-report-wrapper .give-debug-report-actions .dashicons{font-size:16px;position:relative;top:4px;right:-2px}.give-debug-report{display:none;margin:10px 0;padding:0;position:relative}.give-debug-report textarea{font-family:monospace;width:100%;margin:0;height:300px;padding:20px;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;resize:none;font-size:12px;line-height:20px;outline:0}.give-progress{height:15px;width:95%;border-radius:4px;overflow:hidden;background-color:#f5f5f5}.give-progress>div{height:100%;width:0}.admin-color-fresh .give-progress div,.give-progress div{background:#0073aa}.admin-color-light .give-progress div{background:#888}.admin-color-blue .give-progress div{background:#096484}.admin-color-coffee .give-progress div{background:#c7a589}.admin-color-ectoplasm .give-progress div{background:#a3b745}.admin-color-midnight .give-progress div{background:#e14d43}.admin-color-sunrise .give-progress div{background:#dd823b}.give-spinner-wrapper{position:absolute;right:0;left:0;bottom:0;top:0;background:rgba(245,245,245,.57);z-index:1;display:none}.give-spinner-wrapper.is-active{display:inline-block}.give-spinner-wrapper .aligncenter{position:absolute;top:50%;right:50%;margin:10px 0 0 10px}.give-spinner.spinner.is-active{margin:0 2px 0 0;float:none}#give-updates-h1{padding-top:0}.give-update-panel-content p{font-size:16px}#give-updates .dashicons-no-alt{color:red}#give-updates .dashicons-yes{color:green}#give-db-updates .spinner{margin-top:0}body.give_forms_page_give-updates .give-run-update-containt .give-run-update-button{margin-left:10px}.give-blank-slate{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:0 auto;padding:40px;text-align:center}.give-blank-slate :last-child{margin-bottom:0}.give-blank-slate__cta,.give-blank-slate__heading,.give-blank-slate__help,.give-blank-slate__message{margin:0 0 10px}.give-blank-slate__image{display:block;height:80px;margin:0 auto 10px;width:auto}.give-blank-slate__help{color:#666;font-style:italic}.give-blank-slate__help a{display:inline-block}.give-blank-slate a.give-blank-slate__cta{display:inline-block;font-size:1.2em;height:auto;margin:0 0 10px;padding:.75em 1.5em}.give-tools-setting-page-import h1.handle{padding:15px 0 0}.give-tools-setting-page-import .give-progress-steps{width:100%;padding:0 0 24px;margin-right:0;list-style:none;overflow:hidden;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}.give-tools-setting-page-import .give-progress-steps li{width:25%;float:right;padding:0 0 1.2em;margin:0;text-align:center;position:relative;border-bottom:4px solid #ccc;line-height:1.4em}.give-tools-setting-page-import .give-progress-steps li.active{border-color:#4ead61;color:#4ead61}.give-tools-setting-page-import .give-progress-steps li.active:before{border-color:#4ead61;color:#4ead61;background:#4ead61}.give-tools-setting-page-import .give-progress-steps li::before{content:'';border:4px solid #ccc;border-radius:100%;width:10px;height:10px;position:absolute;bottom:0;right:50%;margin-right:-6px;margin-bottom:-10px;background:#fff}.give-tools-setting-page-import .step-4 h2{text-align:center;font-size:20px!important}.give-tools-setting-page-import .step-4 p{text-align:center}.give-tools-setting-page-import .button-secondary.step-4,.give-tools-setting-page-import .give-image-thumb{display:none}.give-tools-setting-page-import h2#give-import-title{background:#f3f3f3;font-size:15px;font-weight:600;margin:-8px -22px 11px;padding:12px 22px}.give-import-core-settings .give-progress-steps li{width:33.33%}.give-import-core-settings .step-3 h2{text-align:center;font-size:20px!important}.give-import-core-settings .step-3 p{text-align:center}form.give-import-form table.widefat{border:none}.wrap .give-importer-h1{margin:0;padding:20px 0}
assets/css/give-admin.css CHANGED
@@ -60,512 +60,389 @@
60
  /**
61
  * Give CSS Variables
62
  */
63
- /*
64
- * qTip2 - Pretty powerful tooltips - v2.2.1
65
- * http://qtip2.com
66
- *
67
- * Copyright (c) 2014
68
- * Released under the MIT licenses
69
- * http://jquery.org/license
70
- *
71
- * Date: Sun Sep 7 2014 12:09 GMT+0100+0100
72
- * Plugins: tips modal viewport svg imagemap ie6
73
- * Styles: core basic css3
74
- */
75
- .qtip {
76
  position: absolute;
77
- left: -28000px;
78
- top: -28000px;
79
- display: none;
80
- max-width: 280px;
81
- min-width: 50px;
82
- font-size: 10.5px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  line-height: 12px;
84
- direction: ltr;
85
- box-shadow: none;
86
- padding: 0; }
87
 
88
- .qtip-content {
89
- position: relative;
90
- padding: 5px 9px;
91
- overflow: hidden;
92
- text-align: left;
93
- word-wrap: break-word; }
94
 
95
- .qtip-titlebar {
96
- position: relative;
97
- padding: 5px 35px 5px 10px;
98
- overflow: hidden;
99
- border-width: 0 0 1px;
100
- font-weight: bold; }
101
 
102
- .qtip-titlebar + .qtip-content {
103
- border-top-width: 0 !important; }
104
 
105
- /* Default close button class */
106
- .qtip-close {
107
- position: absolute;
108
- right: -9px;
109
- top: -9px;
110
- z-index: 11;
111
- /* Overlap .qtip-tip */
112
- cursor: pointer;
113
- outline: medium none;
114
- border: 1px solid transparent; }
115
 
116
- .qtip-titlebar .qtip-close {
117
- right: 4px;
118
- top: 50%;
119
- margin-top: -9px; }
120
 
121
- * html .qtip-titlebar .qtip-close {
122
- top: 16px; }
 
123
 
124
- /* IE fix */
125
- .qtip-titlebar .ui-icon,
126
- .qtip-icon .ui-icon {
127
- display: block;
128
- text-indent: -1000em;
129
- direction: ltr; }
130
 
131
- .qtip-icon, .qtip-icon .ui-icon {
132
- -moz-border-radius: 3px;
133
- -webkit-border-radius: 3px;
134
- border-radius: 3px;
135
- text-decoration: none; }
136
 
137
- .qtip-icon .ui-icon {
138
- width: 18px;
139
- height: 14px;
140
- line-height: 14px;
141
- text-align: center;
142
- text-indent: 0;
143
- font: normal bold 10px/13px Tahoma,sans-serif;
144
- color: inherit;
145
- background: transparent none no-repeat -100em -100em; }
146
-
147
- /* Applied to 'focused' tooltips e.g. most recently displayed/interacted with */
148
- /* Applied on hover of tooltips i.e. added/removed on mouseenter/mouseleave respectively */
149
- /* Default tooltip style */
150
- .qtip-default {
151
- border: 1px solid #F1D031;
152
- background-color: #FFFFA3;
153
- color: #555; }
154
-
155
- .qtip-default .qtip-titlebar {
156
- background-color: #FFEF93; }
157
-
158
- .qtip-default .qtip-icon {
159
- border-color: #CCC;
160
- background: #F1F1F1;
161
- color: #777; }
162
 
163
- .qtip-default .qtip-titlebar .qtip-close {
164
- border-color: #AAA;
165
- color: #111; }
166
-
167
- /*! Light tooltip style */
168
- .qtip-light {
169
- background-color: white;
170
- border-color: #E2E2E2;
171
- color: #454545; }
172
-
173
- .qtip-light .qtip-titlebar {
174
- background-color: #f1f1f1; }
175
-
176
- /*! Dark tooltip style */
177
- .qtip-dark {
178
- background-color: #505050;
179
- border-color: #303030;
180
- color: #f3f3f3; }
181
-
182
- .qtip-dark .qtip-titlebar {
183
- background-color: #404040; }
184
-
185
- .qtip-dark .qtip-icon {
186
- border-color: #444; }
187
-
188
- .qtip-dark .qtip-titlebar .ui-state-hover {
189
- border-color: #303030; }
190
-
191
- /*! Cream tooltip style */
192
- .qtip-cream {
193
- background-color: #FBF7AA;
194
- border-color: #F9E98E;
195
- color: #A27D35; }
196
-
197
- .qtip-cream .qtip-titlebar {
198
- background-color: #F0DE7D; }
199
-
200
- .qtip-cream .qtip-close .qtip-icon {
201
- background-position: -82px 0; }
202
-
203
- /*! Red tooltip style */
204
- .qtip-red {
205
- background-color: #F78B83;
206
- border-color: #D95252;
207
- color: #912323; }
208
-
209
- .qtip-red .qtip-titlebar {
210
- background-color: #F06D65; }
211
-
212
- .qtip-red .qtip-close .qtip-icon {
213
- background-position: -102px 0; }
214
-
215
- .qtip-red .qtip-icon {
216
- border-color: #D95252; }
217
-
218
- .qtip-red .qtip-titlebar .ui-state-hover {
219
- border-color: #D95252; }
220
-
221
- /*! Green tooltip style */
222
- .qtip-green {
223
- background-color: #CAED9E;
224
- border-color: #90D93F;
225
- color: #3F6219; }
226
-
227
- .qtip-green .qtip-titlebar {
228
- background-color: #B0DE78; }
229
-
230
- .qtip-green .qtip-close .qtip-icon {
231
- background-position: -42px 0; }
232
-
233
- /*! Blue tooltip style */
234
- .qtip-blue {
235
- background-color: #E5F6FE;
236
- border-color: #ADD9ED;
237
- color: #5E99BD; }
238
-
239
- .qtip-blue .qtip-titlebar {
240
- background-color: #D0E9F5; }
241
-
242
- .qtip-blue .qtip-close .qtip-icon {
243
- background-position: -2px 0; }
244
-
245
- .qtip-shadow {
246
- -webkit-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);
247
- -moz-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);
248
- box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15); }
249
-
250
- /* Add rounded corners to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE9+, Safari 2+ */
251
- .qtip-rounded,
252
- .qtip-tipsy,
253
- .qtip-bootstrap {
254
- -moz-border-radius: 5px;
255
- -webkit-border-radius: 5px;
256
- border-radius: 5px; }
257
-
258
- .qtip-rounded .qtip-titlebar {
259
- -moz-border-radius: 4px 4px 0 0;
260
- -webkit-border-radius: 4px 4px 0 0;
261
- border-radius: 4px 4px 0 0; }
262
-
263
- /* Youtube tooltip style */
264
- .qtip-youtube {
265
- -moz-border-radius: 2px;
266
- -webkit-border-radius: 2px;
267
- border-radius: 2px;
268
- -webkit-box-shadow: 0 0 3px #333;
269
- -moz-box-shadow: 0 0 3px #333;
270
- box-shadow: 0 0 3px #333;
271
- color: white;
272
- border: 0 solid transparent;
273
- background: #4A4A4A;
274
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #4A4A4A), color-stop(100%, black));
275
- background-image: -webkit-linear-gradient(top, #4A4A4A 0, black 100%);
276
- background-image: -moz-linear-gradient(top, #4A4A4A 0, black 100%);
277
- background-image: -ms-linear-gradient(top, #4A4A4A 0, black 100%);
278
- background-image: -o-linear-gradient(top, #4A4A4A 0, black 100%); }
279
-
280
- .qtip-youtube .qtip-titlebar {
281
- background-color: #4A4A4A;
282
- background-color: transparent; }
283
-
284
- .qtip-youtube .qtip-content {
285
- padding: .75em;
286
- font: 12px arial,sans-serif;
287
- filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);
288
- -ms-filter: "progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);"; }
289
-
290
- .qtip-youtube .qtip-icon {
291
- border-color: #222; }
292
-
293
- .qtip-youtube .qtip-titlebar .ui-state-hover {
294
- border-color: #303030; }
295
-
296
- /* jQuery TOOLS Tooltip style */
297
- .qtip-jtools {
298
- background: #232323;
299
- background: rgba(0, 0, 0, 0.7);
300
- background-image: -webkit-gradient(linear, left top, left bottom, from(#717171), to(#232323));
301
- background-image: -moz-linear-gradient(top, #717171, #232323);
302
- background-image: -webkit-linear-gradient(top, #717171, #232323);
303
- background-image: -ms-linear-gradient(top, #717171, #232323);
304
- background-image: -o-linear-gradient(top, #717171, #232323);
305
- border: 2px solid #ddd;
306
- border: 2px solid #f1f1f1;
307
- -moz-border-radius: 2px;
308
- -webkit-border-radius: 2px;
309
- border-radius: 2px;
310
- -webkit-box-shadow: 0 0 12px #333;
311
- -moz-box-shadow: 0 0 12px #333;
312
- box-shadow: 0 0 12px #333; }
313
-
314
- /* IE Specific */
315
- .qtip-jtools .qtip-titlebar {
316
- background-color: transparent;
317
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A);
318
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)"; }
319
-
320
- .qtip-jtools .qtip-content {
321
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323);
322
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)"; }
323
-
324
- .qtip-jtools .qtip-titlebar,
325
- .qtip-jtools .qtip-content {
326
- background: transparent;
327
- color: white;
328
- border: 0 dashed transparent; }
329
 
330
- .qtip-jtools .qtip-icon {
331
- border-color: #555; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
332
 
333
- .qtip-jtools .qtip-titlebar .ui-state-hover {
334
- border-color: #333; }
 
335
 
336
- /* Cluetip style */
337
- .qtip-cluetip {
338
- -webkit-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);
339
- -moz-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);
340
- box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);
341
- background-color: #D9D9C2;
342
- color: #111;
343
- border: 0 dashed transparent; }
344
 
345
- .qtip-cluetip .qtip-titlebar {
346
- background-color: #87876A;
347
- color: white;
348
- border: 0 dashed transparent; }
349
 
350
- .qtip-cluetip .qtip-icon {
351
- border-color: #808064; }
 
 
352
 
353
- .qtip-cluetip .qtip-titlebar .ui-state-hover {
354
- border-color: #696952;
355
- color: #696952; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
 
357
- /* Tipsy style */
358
- .qtip-tipsy {
359
- background: black;
360
- background: rgba(0, 0, 0, 0.87);
361
- color: white;
362
- border: 0 solid transparent;
363
- font-size: 11px;
364
- font-family: 'Lucida Grande', sans-serif;
365
- font-weight: bold;
366
- line-height: 16px;
367
- text-shadow: 0 1px black; }
368
-
369
- .qtip-tipsy .qtip-titlebar {
370
- padding: 6px 35px 0 10px;
371
- background-color: transparent; }
372
-
373
- .qtip-tipsy .qtip-content {
374
- padding: 6px 10px; }
375
-
376
- .qtip-tipsy .qtip-icon {
377
- border-color: #222;
378
- text-shadow: none; }
379
-
380
- .qtip-tipsy .qtip-titlebar .ui-state-hover {
381
- border-color: #303030; }
382
-
383
- /* Tipped style */
384
- .qtip-tipped {
385
- border: 3px solid #959FA9;
386
- -moz-border-radius: 3px;
387
- -webkit-border-radius: 3px;
388
- border-radius: 3px;
389
- background-color: #F9F9F9;
390
- color: #454545;
391
- font-weight: normal;
392
- font-family: serif; }
393
 
394
- .qtip-tipped .qtip-titlebar {
395
- border-bottom-width: 0;
396
- color: white;
397
- background: #3A79B8;
398
- background-image: -webkit-gradient(linear, left top, left bottom, from(#3A79B8), to(#2E629D));
399
- background-image: -webkit-linear-gradient(top, #3A79B8, #2E629D);
400
- background-image: -moz-linear-gradient(top, #3A79B8, #2E629D);
401
- background-image: -ms-linear-gradient(top, #3A79B8, #2E629D);
402
- background-image: -o-linear-gradient(top, #3A79B8, #2E629D);
403
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D);
404
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)"; }
405
-
406
- .qtip-tipped .qtip-icon {
407
- border: 2px solid #285589;
408
- background: #285589; }
409
-
410
- .qtip-tipped .qtip-icon .ui-icon {
411
- background-color: #FBFBFB;
412
- color: #555; }
413
 
414
- /**
415
- * Twitter Bootstrap style.
416
- *
417
- * Tested with IE 8, IE 9, Chrome 18, Firefox 9, Opera 11.
418
- * Does not work with IE 7.
419
- */
420
- .qtip-bootstrap {
421
- /** Taken from Bootstrap body */
422
- font-size: 14px;
423
- line-height: 20px;
424
- color: #333333;
425
- /** Taken from Bootstrap .popover */
426
- padding: 1px;
427
- background-color: #ffffff;
428
- border: 1px solid #ccc;
429
- border: 1px solid rgba(0, 0, 0, 0.2);
430
- -webkit-border-radius: 6px;
431
- -moz-border-radius: 6px;
432
- border-radius: 6px;
433
- -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
434
- -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
435
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
436
- -webkit-background-clip: padding-box;
437
- -moz-background-clip: padding;
438
- background-clip: padding-box; }
439
-
440
- .qtip-bootstrap .qtip-titlebar {
441
- /** Taken from Bootstrap .popover-title */
442
- padding: 8px 14px;
443
- margin: 0;
444
- font-size: 14px;
445
- font-weight: normal;
446
- line-height: 18px;
447
- background-color: #f7f7f7;
448
- border-bottom: 1px solid #ebebeb;
449
- -webkit-border-radius: 5px 5px 0 0;
450
- -moz-border-radius: 5px 5px 0 0;
451
- border-radius: 5px 5px 0 0; }
452
-
453
- .qtip-bootstrap .qtip-titlebar .qtip-close {
454
- /**
455
- * Overrides qTip2:
456
- * .qtip-titlebar .qtip-close{
457
- * [...]
458
- * right: 4px;
459
- * top: 50%;
460
- * [...]
461
- * border-style: solid;
462
- * }
463
- */
464
- right: 11px;
465
- top: 45%;
466
- border-style: none; }
467
-
468
- .qtip-bootstrap .qtip-content {
469
- /** Taken from Bootstrap .popover-content */
470
- padding: 9px 14px; }
471
-
472
- .qtip-bootstrap .qtip-icon {
473
- /**
474
- * Overrides qTip2:
475
- * .qtip-default .qtip-icon {
476
- * border-color: #CCC;
477
- * background: #F1F1F1;
478
- * color: #777;
479
- * }
480
- */
481
- background: transparent; }
482
-
483
- .qtip-bootstrap .qtip-icon .ui-icon {
484
- /**
485
- * Overrides qTip2:
486
- * .qtip-icon .ui-icon{
487
- * width: 18px;
488
- * height: 14px;
489
- * }
490
- */
491
- width: auto;
492
- height: auto;
493
- /* Taken from Bootstrap .close */
494
- float: right;
495
- font-size: 20px;
496
- font-weight: bold;
497
- line-height: 18px;
498
- color: #000000;
499
- text-shadow: 0 1px 0 #ffffff;
500
- opacity: 0.2;
501
- filter: alpha(opacity=20); }
502
-
503
- .qtip-bootstrap .qtip-icon .ui-icon:hover {
504
- /* Taken from Bootstrap .close:hover */
505
- color: #000000;
506
- text-decoration: none;
507
- cursor: pointer;
508
- opacity: 0.4;
509
- filter: alpha(opacity=40); }
510
 
511
- /* IE9 fix - removes all filters */
512
- .qtip:not(.ie9haxors) div.qtip-content,
513
- .qtip:not(.ie9haxors) div.qtip-titlebar {
514
- filter: none;
515
- -ms-filter: none; }
516
 
517
- .qtip .qtip-tip {
518
- margin: 0 auto;
519
- overflow: hidden;
520
- z-index: 10; }
521
 
522
- /* Opera bug #357 - Incorrect tip position
523
- https://github.com/Craga89/qTip2/issues/367 */
524
- x:-o-prefocus, .qtip .qtip-tip {
525
- visibility: hidden; }
526
 
527
- .qtip .qtip-tip,
528
- .qtip .qtip-tip .qtip-vml,
529
- .qtip .qtip-tip canvas {
530
- position: absolute;
531
- color: #123456;
532
- background: transparent;
533
- border: 0 dashed transparent; }
534
 
535
- .qtip .qtip-tip canvas {
536
- top: 0;
537
- left: 0; }
538
 
539
- .qtip .qtip-tip .qtip-vml {
540
- behavior: url(#default#VML);
541
- display: inline-block;
542
- visibility: visible; }
543
 
544
- #qtip-overlay {
545
- position: fixed;
546
- left: 0;
547
- top: 0;
548
- width: 100%;
549
- height: 100%; }
550
 
551
- /* Applied to modals with show.modal.blur set to true */
552
- #qtip-overlay.blurs {
553
- cursor: pointer; }
554
 
555
- /* Change opacity of overlay here */
556
- #qtip-overlay div {
557
- position: absolute;
558
- left: 0;
559
- top: 0;
560
- width: 100%;
561
- height: 100%;
562
- background-color: black;
563
- opacity: 0.7;
564
- filter: alpha(opacity=70);
565
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
566
 
567
- .qtipmodal-ie6fix {
568
- position: absolute !important; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
569
 
570
  /**
571
  * Give Frontend Fonts SCSS
@@ -865,7 +742,8 @@ div.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {
865
  .give-money-symbol-after {
866
  margin-left: -5px; }
867
 
868
- .give_options_panel input[type="text"] {
 
869
  padding: 5px;
870
  width: 100%; }
871
 
@@ -1664,12 +1542,46 @@ table.give-table td.row-title p {
1664
  .give-settings-page table table input[type="text"] {
1665
  width: 15em; }
1666
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1667
  .give-setting-tab-header {
1668
  clear: both;
1669
  overflow: hidden;
1670
  margin: 30px 0; }
1671
  .give-setting-tab-header h2 {
1672
  margin-top: 8px; }
 
 
1673
 
1674
  .give-radio-inline ul {
1675
  margin-top: 0; }
@@ -1757,6 +1669,56 @@ p.give-field-description, .cmb2-metabox-description {
1757
  .give-email-tags-wrap .give_price_tag {
1758
  display: none; }
1759
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1760
  #system-info-textarea {
1761
  width: 800px;
1762
  height: 600px;
@@ -1943,10 +1905,10 @@ h2.give-nav-tab-wrapper {
1943
  border-bottom: 0;
1944
  position: absolute;
1945
  top: 35px;
1946
- left: 0; }
1947
  .give-sub-nav-tab-wrapper nav.give-sub-nav-tab a {
1948
  float: left;
1949
- background: #e5e5e5;
1950
  padding: 6px 10px;
1951
  clear: both;
1952
  text-decoration: none;
@@ -2489,196 +2451,199 @@ input.give-price-field {
2489
  * @copyright Copyright (c) 2016, WordImpress
2490
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
2491
  */
2492
- .give_forms_page_give-donors .wrap > h2 {
2493
- margin-bottom: 15px; }
2494
-
2495
- .give_forms_page_give-donors .nav-tab-wrapper .dashicons {
2496
- position: relative;
2497
- top: 2px;
2498
- margin: 0 3px 0 0; }
2499
-
2500
- .give_forms_page_give-donors #give-donors-filter {
2501
- position: relative; }
2502
- .give_forms_page_give-donors #give-donors-filter p.search-box {
2503
- margin: 0; }
2504
-
2505
- .give_forms_page_give-donors #give-donors-search-filter {
2506
- display: block;
2507
- overflow: hidden; }
2508
-
2509
- #give-donor-card-wrapper {
2510
- margin-left: -1px;
2511
- z-index: 2;
2512
- min-height: 200px; }
2513
- #give-donor-card-wrapper input {
2514
- font-weight: normal; }
2515
- #give-donor-card-wrapper .donor-section {
2516
- border-bottom: 1px solid #eee;
2517
- margin-bottom: 10px; }
2518
- #give-donor-card-wrapper .donor-section table {
2519
- margin-bottom: 0; }
2520
- #give-donor-card-wrapper > div:first-child {
2521
- padding-top: 20px; }
2522
- #give-donor-card-wrapper > div:last-child {
2523
- padding-bottom: 20px;
2524
- border: none; }
2525
- #give-donor-card-wrapper .avatar-wrap {
2526
- padding: 0 15px 15px 0;
2527
- text-align: center;
2528
- float: left; }
2529
- #give-donor-card-wrapper .avatar-wrap img {
2530
- border-radius: 3px; }
2531
- #give-donor-card-wrapper a.delete {
2532
- text-decoration: none;
2533
- color: #ff0000;
2534
- margin-right: 5px; }
2535
- #give-donor-card-wrapper .donor-bio-header .donor-since {
2536
- margin: 10px 0;
2537
- font-size: 16px; }
2538
- #give-donor-card-wrapper .donor-bio-header .donor-id {
2539
- display: inline-block;
2540
- font-size: 24px;
2541
- font-weight: 600;
2542
- margin-right: 10px; }
2543
- #give-donor-card-wrapper .donor-bio-header .donor-name-wrap {
2544
- display: inline-block; }
2545
- #give-donor-card-wrapper .donor-bio-header .donor-edit-link {
2546
  margin-bottom: 15px; }
2547
-
2548
- .donor-main-wrapper {
2549
- clear: both;
2550
- margin: 0 0 20px; }
2551
- @media (max-width: 655px) {
2552
- .donor-main-wrapper {
2553
- width: 100%; } }
2554
- .donor-main-wrapper table {
2555
- margin: 0; }
2556
- .donor-main-wrapper input {
2557
- width: 200px; }
2558
-
2559
- #donor-summary {
2560
- padding: 0 20px; }
2561
- #donor-summary:after {
2562
- font-family: "dashicons";
2563
- content: "\f110";
2564
- position: absolute;
2565
- top: 10px;
2566
- right: 10px;
2567
- font-size: 100px;
2568
- color: #F0F0F0;
2569
- z-index: 0; }
2570
-
2571
- #give-donor-card-wrapper .donor-address-wrapper {
2572
- width: 202px; }
2573
- #give-donor-card-wrapper .donor-address-wrapper span[data-key="line2"] {
2574
- display: table;
2575
- clear: both; }
2576
-
2577
- #give-donor-card-wrapper .donor-address-wrapper select {
2578
- width: 200px; }
2579
-
2580
- #give-donor-card-wrapper .donor-info {
2581
- min-height: 185px; }
2582
-
2583
- #give-donor-card-wrapper .info-wrapper {
2584
- min-height: 125px; }
2585
-
2586
- .donor-info .donor-name {
2587
- font-size: 24px;
2588
- font-weight: 600; }
2589
-
2590
- #disconnect-donor, #view-user-profile {
2591
- font-size: 12px;
2592
- font-weight: normal;
2593
- text-decoration: none; }
2594
-
2595
- #donor-edit-actions {
2596
- text-align: center;
2597
- margin-bottom: 20px;
2598
- line-height: 28px; }
2599
-
2600
- #donor-edit-actions .button-secondary {
2601
- margin-right: 10px; }
2602
-
2603
- #give-donor-card-wrapper .edit-item {
2604
- display: none; }
2605
-
2606
- #give-donor-card-wrapper .give_user_search_results {
2607
- left: 1px;
2608
- top: 16px; }
2609
-
2610
- #give-donor-card-wrapper .give_user_search_results ul {
2611
- width: 200px; }
2612
-
2613
- #donor-stats-wrapper {
2614
- margin: 0 auto;
2615
- text-align: center;
2616
- padding: 15px; }
2617
- #donor-stats-wrapper ul {
2618
- margin: 0;
2619
- padding: 0;
2620
  overflow: hidden; }
2621
- #donor-stats-wrapper ul li {
2622
- width: 50%;
2623
- float: left;
2624
- line-height: 22px;
2625
- font-size: 14px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2626
  margin: 0; }
2627
- #donor-stats-wrapper a {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2628
  text-decoration: none; }
2629
-
2630
- #donor-stats-wrapper .dashicons {
2631
- color: #888; }
2632
-
2633
- #donor-tables-wrapper table {
2634
- width: 100%;
2635
- text-align: center; }
2636
-
2637
- #donor-tables-wrapper th {
2638
- text-align: center; }
2639
-
2640
- #donor-tables-wrapper .donations tr > th:first-child,
2641
- #donor-tables-wrapper .donations tr > td:first-child,
2642
- #donor-tables-wrapper .emails tr > th:first-child,
2643
- #donor-tables-wrapper .emails tr > td:first-child {
2644
- text-align: left; }
2645
-
2646
- #donor-tables-wrapper .donations tr > td:only-child {
2647
- text-align: center; }
2648
-
2649
- #donor-notes-wrapper {
2650
- min-height: 50px; }
2651
-
2652
- .donor-notes-header span, .donor-notes-header img {
2653
- font-weight: 600;
2654
- line-height: 30px;
2655
- vertical-align: middle; }
2656
-
2657
- .donor-note-input {
2658
- width: 100%;
2659
- margin-bottom: 5px; }
2660
-
2661
- #give-donor-notes div:nth-of-type(even) {
2662
- background-color: #f9f9f9; }
2663
-
2664
- #give-donor-notes .donor-note-wrapper {
2665
- border-bottom: 1px solid #f9f9f9;
2666
- min-height: 38px;
2667
- padding: 0; }
2668
- #give-donor-notes .donor-note-wrapper .note-content-wrap {
2669
- padding: 10px 12px;
2670
- line-height: 20px;
2671
- font-size: 14px; }
2672
-
2673
- #give-donor-notes .give-no-donor-notes {
2674
- text-align: center;
2675
- padding: 20px; }
2676
-
2677
- .donor-note-wrapper span {
2678
- display: block; }
2679
-
2680
- .delete-donor {
2681
- text-align: center; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2682
 
2683
  /**
2684
  * Give Admin Buttons SCSS
@@ -2905,7 +2870,8 @@ div.sc-shortcode {
2905
  height: 15px;
2906
  width: 95%;
2907
  border-radius: 4px;
2908
- overflow: hidden; }
 
2909
  .give-progress > div {
2910
  height: 100%;
2911
  width: 0; }
@@ -2931,6 +2897,30 @@ div.sc-shortcode {
2931
  .admin-color-sunrise .give-progress div {
2932
  background: #dd823b; }
2933
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2934
  /**
2935
  * Give Updates Panel SCSS
2936
  *
60
  /**
61
  * Give CSS Variables
62
  */
63
+ /*! Hint.css - v2.5.0 - 2017-04-23
64
+ * http://kushagragour.in/lab/hint/
65
+ * Copyright (c) 2017 Kushagra Gour */
66
+ [class*=hint--] {
67
+ position: relative;
68
+ display: inline-block; }
69
+
70
+ [class*=hint--]:after, [class*=hint--]:before {
 
 
 
 
 
71
  position: absolute;
72
+ -webkit-transform: translate3d(0, 0, 0);
73
+ -moz-transform: translate3d(0, 0, 0);
74
+ transform: translate3d(0, 0, 0);
75
+ visibility: hidden;
76
+ opacity: 0;
77
+ z-index: 1000000;
78
+ pointer-events: none;
79
+ -webkit-transition: .3s ease;
80
+ -moz-transition: .3s ease;
81
+ transition: .3s ease;
82
+ -webkit-transition-delay: 0s;
83
+ -moz-transition-delay: 0s;
84
+ transition-delay: 0s; }
85
+
86
+ [class*=hint--]:hover:after, [class*=hint--]:hover:before {
87
+ visibility: visible;
88
+ opacity: 1;
89
+ -webkit-transition-delay: .1s;
90
+ -moz-transition-delay: .1s;
91
+ transition-delay: .1s; }
92
+
93
+ [class*=hint--]:before {
94
+ content: '';
95
+ position: absolute;
96
+ background: 0 0;
97
+ border: 6px solid transparent;
98
+ z-index: 1000001; }
99
+
100
+ [class*=hint--]:after {
101
+ background: #383838;
102
+ color: #fff;
103
+ padding: 8px 10px;
104
+ font-size: 12px;
105
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
106
  line-height: 12px;
107
+ white-space: nowrap;
108
+ text-shadow: 0 -1px 0 #000;
109
+ box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3); }
110
 
111
+ [class*=hint--][aria-label]:after {
112
+ content: attr(aria-label); }
 
 
 
 
113
 
114
+ [class*=hint--][data-hint]:after {
115
+ content: attr(data-hint); }
 
 
 
 
116
 
117
+ [aria-label='']:after, [aria-label='']:before, [data-hint='']:after, [data-hint='']:before {
118
+ display: none !important; }
119
 
120
+ .hint--top-left:before, .hint--top-right:before, .hint--top:before {
121
+ border-top-color: #383838; }
 
 
 
 
 
 
 
 
122
 
123
+ .hint--bottom-left:before, .hint--bottom-right:before, .hint--bottom:before {
124
+ border-bottom-color: #383838; }
 
 
125
 
126
+ .hint--top:after, .hint--top:before {
127
+ bottom: 100%;
128
+ left: 50%; }
129
 
130
+ .hint--top:before {
131
+ margin-bottom: -11px;
132
+ left: calc(50% - 6px); }
 
 
 
133
 
134
+ .hint--top:after {
135
+ -webkit-transform: translateX(-50%);
136
+ -moz-transform: translateX(-50%);
137
+ transform: translateX(-50%); }
 
138
 
139
+ .hint--top:hover:before {
140
+ -webkit-transform: translateY(-8px);
141
+ -moz-transform: translateY(-8px);
142
+ transform: translateY(-8px); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
+ .hint--top:hover:after {
145
+ -webkit-transform: translateX(-50%) translateY(-8px);
146
+ -moz-transform: translateX(-50%) translateY(-8px);
147
+ transform: translateX(-50%) translateY(-8px); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
 
149
+ .hint--bottom:after, .hint--bottom:before {
150
+ top: 100%;
151
+ left: 50%; }
152
+
153
+ .hint--bottom:before {
154
+ margin-top: -11px;
155
+ left: calc(50% - 6px); }
156
+
157
+ .hint--bottom:after {
158
+ -webkit-transform: translateX(-50%);
159
+ -moz-transform: translateX(-50%);
160
+ transform: translateX(-50%); }
161
+
162
+ .hint--bottom:hover:before {
163
+ -webkit-transform: translateY(8px);
164
+ -moz-transform: translateY(8px);
165
+ transform: translateY(8px); }
166
+
167
+ .hint--bottom:hover:after {
168
+ -webkit-transform: translateX(-50%) translateY(8px);
169
+ -moz-transform: translateX(-50%) translateY(8px);
170
+ transform: translateX(-50%) translateY(8px); }
171
+
172
+ .hint--right:before {
173
+ border-right-color: #383838;
174
+ margin-left: -11px;
175
+ margin-bottom: -6px; }
176
+
177
+ .hint--right:after {
178
+ margin-bottom: -14px; }
179
+
180
+ .hint--right:after, .hint--right:before {
181
+ left: 100%;
182
+ bottom: 50%; }
183
+
184
+ .hint--right:hover:after, .hint--right:hover:before {
185
+ -webkit-transform: translateX(8px);
186
+ -moz-transform: translateX(8px);
187
+ transform: translateX(8px); }
188
+
189
+ .hint--left:before {
190
+ border-left-color: #383838;
191
+ margin-right: -11px;
192
+ margin-bottom: -6px; }
193
+
194
+ .hint--left:after {
195
+ margin-bottom: -14px; }
196
+
197
+ .hint--left:after, .hint--left:before {
198
+ right: 100%;
199
+ bottom: 50%; }
200
+
201
+ .hint--left:hover:after, .hint--left:hover:before {
202
+ -webkit-transform: translateX(-8px);
203
+ -moz-transform: translateX(-8px);
204
+ transform: translateX(-8px); }
205
+
206
+ .hint--top-left:after, .hint--top-left:before {
207
+ bottom: 100%;
208
+ left: 50%; }
209
+
210
+ .hint--top-left:before {
211
+ margin-bottom: -11px;
212
+ left: calc(50% - 6px); }
213
+
214
+ .hint--top-left:after {
215
+ -webkit-transform: translateX(-100%);
216
+ -moz-transform: translateX(-100%);
217
+ transform: translateX(-100%);
218
+ margin-left: 12px; }
219
+
220
+ .hint--top-left:hover:before {
221
+ -webkit-transform: translateY(-8px);
222
+ -moz-transform: translateY(-8px);
223
+ transform: translateY(-8px); }
224
+
225
+ .hint--top-left:hover:after {
226
+ -webkit-transform: translateX(-100%) translateY(-8px);
227
+ -moz-transform: translateX(-100%) translateY(-8px);
228
+ transform: translateX(-100%) translateY(-8px); }
229
+
230
+ .hint--top-right:after, .hint--top-right:before {
231
+ bottom: 100%;
232
+ left: 50%; }
233
+
234
+ .hint--top-right:before {
235
+ margin-bottom: -11px;
236
+ left: calc(50% - 6px); }
237
+
238
+ .hint--top-right:after {
239
+ -webkit-transform: translateX(0);
240
+ -moz-transform: translateX(0);
241
+ transform: translateX(0);
242
+ margin-left: -12px; }
243
+
244
+ .hint--top-right:hover:after, .hint--top-right:hover:before {
245
+ -webkit-transform: translateY(-8px);
246
+ -moz-transform: translateY(-8px);
247
+ transform: translateY(-8px); }
248
+
249
+ .hint--bottom-left:after, .hint--bottom-left:before {
250
+ top: 100%;
251
+ left: 50%; }
252
 
253
+ .hint--bottom-left:before {
254
+ margin-top: -11px;
255
+ left: calc(50% - 6px); }
256
 
257
+ .hint--bottom-left:after {
258
+ -webkit-transform: translateX(-100%);
259
+ -moz-transform: translateX(-100%);
260
+ transform: translateX(-100%);
261
+ margin-left: 12px; }
 
 
 
262
 
263
+ .hint--bottom-left:hover:before {
264
+ -webkit-transform: translateY(8px);
265
+ -moz-transform: translateY(8px);
266
+ transform: translateY(8px); }
267
 
268
+ .hint--bottom-left:hover:after {
269
+ -webkit-transform: translateX(-100%) translateY(8px);
270
+ -moz-transform: translateX(-100%) translateY(8px);
271
+ transform: translateX(-100%) translateY(8px); }
272
 
273
+ .hint--bottom-right:after, .hint--bottom-right:before {
274
+ top: 100%;
275
+ left: 50%; }
276
+
277
+ .hint--bottom-right:before {
278
+ margin-top: -11px;
279
+ left: calc(50% - 6px); }
280
+
281
+ .hint--bottom-right:after {
282
+ -webkit-transform: translateX(0);
283
+ -moz-transform: translateX(0);
284
+ transform: translateX(0);
285
+ margin-left: -12px; }
286
+
287
+ .hint--bottom-right:hover:after, .hint--bottom-right:hover:before {
288
+ -webkit-transform: translateY(8px);
289
+ -moz-transform: translateY(8px);
290
+ transform: translateY(8px); }
291
+
292
+ .hint--large:after, .hint--medium:after, .hint--small:after {
293
+ white-space: normal;
294
+ line-height: 1.4em;
295
+ word-wrap: break-word; }
296
 
297
+ .hint--small:after {
298
+ width: 80px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
 
300
+ .hint--medium:after {
301
+ width: 150px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
 
303
+ .hint--large:after {
304
+ width: 300px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
 
306
+ .hint--error:after {
307
+ background-color: #b34e4d;
308
+ text-shadow: 0 -1px 0 #592726; }
 
 
309
 
310
+ .hint--error.hint--top-left:before, .hint--error.hint--top-right:before, .hint--error.hint--top:before {
311
+ border-top-color: #b34e4d; }
 
 
312
 
313
+ .hint--error.hint--bottom-left:before, .hint--error.hint--bottom-right:before, .hint--error.hint--bottom:before {
314
+ border-bottom-color: #b34e4d; }
 
 
315
 
316
+ .hint--error.hint--left:before {
317
+ border-left-color: #b34e4d; }
 
 
 
 
 
318
 
319
+ .hint--error.hint--right:before {
320
+ border-right-color: #b34e4d; }
 
321
 
322
+ .hint--warning:after {
323
+ background-color: #c09854;
324
+ text-shadow: 0 -1px 0 #6c5328; }
 
325
 
326
+ .hint--warning.hint--top-left:before, .hint--warning.hint--top-right:before, .hint--warning.hint--top:before {
327
+ border-top-color: #c09854; }
 
 
 
 
328
 
329
+ .hint--warning.hint--bottom-left:before, .hint--warning.hint--bottom-right:before, .hint--warning.hint--bottom:before {
330
+ border-bottom-color: #c09854; }
 
331
 
332
+ .hint--warning.hint--left:before {
333
+ border-left-color: #c09854; }
334
+
335
+ .hint--warning.hint--right:before {
336
+ border-right-color: #c09854; }
337
+
338
+ .hint--info:after {
339
+ background-color: #3986ac;
340
+ text-shadow: 0 -1px 0 #1a3c4d; }
341
+
342
+ .hint--info.hint--top-left:before, .hint--info.hint--top-right:before, .hint--info.hint--top:before {
343
+ border-top-color: #3986ac; }
344
+
345
+ .hint--info.hint--bottom-left:before, .hint--info.hint--bottom-right:before, .hint--info.hint--bottom:before {
346
+ border-bottom-color: #3986ac; }
347
+
348
+ .hint--info.hint--left:before {
349
+ border-left-color: #3986ac; }
350
+
351
+ .hint--info.hint--right:before {
352
+ border-right-color: #3986ac; }
353
+
354
+ .hint--success:after {
355
+ background-color: #458746;
356
+ text-shadow: 0 -1px 0 #1a321a; }
357
+
358
+ .hint--success.hint--top-left:before, .hint--success.hint--top-right:before, .hint--success.hint--top:before {
359
+ border-top-color: #458746; }
360
+
361
+ .hint--success.hint--bottom-left:before, .hint--success.hint--bottom-right:before, .hint--success.hint--bottom:before {
362
+ border-bottom-color: #458746; }
363
+
364
+ .hint--success.hint--left:before {
365
+ border-left-color: #458746; }
366
+
367
+ .hint--success.hint--right:before {
368
+ border-right-color: #458746; }
369
 
370
+ .hint--always:after, .hint--always:before {
371
+ opacity: 1;
372
+ visibility: visible; }
373
+
374
+ .hint--always.hint--top:before {
375
+ -webkit-transform: translateY(-8px);
376
+ -moz-transform: translateY(-8px);
377
+ transform: translateY(-8px); }
378
+
379
+ .hint--always.hint--top:after {
380
+ -webkit-transform: translateX(-50%) translateY(-8px);
381
+ -moz-transform: translateX(-50%) translateY(-8px);
382
+ transform: translateX(-50%) translateY(-8px); }
383
+
384
+ .hint--always.hint--top-left:before {
385
+ -webkit-transform: translateY(-8px);
386
+ -moz-transform: translateY(-8px);
387
+ transform: translateY(-8px); }
388
+
389
+ .hint--always.hint--top-left:after {
390
+ -webkit-transform: translateX(-100%) translateY(-8px);
391
+ -moz-transform: translateX(-100%) translateY(-8px);
392
+ transform: translateX(-100%) translateY(-8px); }
393
+
394
+ .hint--always.hint--top-right:after, .hint--always.hint--top-right:before {
395
+ -webkit-transform: translateY(-8px);
396
+ -moz-transform: translateY(-8px);
397
+ transform: translateY(-8px); }
398
+
399
+ .hint--always.hint--bottom:before {
400
+ -webkit-transform: translateY(8px);
401
+ -moz-transform: translateY(8px);
402
+ transform: translateY(8px); }
403
+
404
+ .hint--always.hint--bottom:after {
405
+ -webkit-transform: translateX(-50%) translateY(8px);
406
+ -moz-transform: translateX(-50%) translateY(8px);
407
+ transform: translateX(-50%) translateY(8px); }
408
+
409
+ .hint--always.hint--bottom-left:before {
410
+ -webkit-transform: translateY(8px);
411
+ -moz-transform: translateY(8px);
412
+ transform: translateY(8px); }
413
+
414
+ .hint--always.hint--bottom-left:after {
415
+ -webkit-transform: translateX(-100%) translateY(8px);
416
+ -moz-transform: translateX(-100%) translateY(8px);
417
+ transform: translateX(-100%) translateY(8px); }
418
+
419
+ .hint--always.hint--bottom-right:after, .hint--always.hint--bottom-right:before {
420
+ -webkit-transform: translateY(8px);
421
+ -moz-transform: translateY(8px);
422
+ transform: translateY(8px); }
423
+
424
+ .hint--always.hint--left:after, .hint--always.hint--left:before {
425
+ -webkit-transform: translateX(-8px);
426
+ -moz-transform: translateX(-8px);
427
+ transform: translateX(-8px); }
428
+
429
+ .hint--always.hint--right:after, .hint--always.hint--right:before {
430
+ -webkit-transform: translateX(8px);
431
+ -moz-transform: translateX(8px);
432
+ transform: translateX(8px); }
433
+
434
+ .hint--rounded:after {
435
+ border-radius: 4px; }
436
+
437
+ .hint--no-animate:after, .hint--no-animate:before {
438
+ -webkit-transition-duration: 0s;
439
+ -moz-transition-duration: 0s;
440
+ transition-duration: 0s; }
441
+
442
+ .hint--bounce:after, .hint--bounce:before {
443
+ -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, -webkit-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
444
+ -moz-transition: opacity 0.3s ease, visibility 0.3s ease, -moz-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
445
+ transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24); }
446
 
447
  /**
448
  * Give Frontend Fonts SCSS
742
  .give-money-symbol-after {
743
  margin-left: -5px; }
744
 
745
+ .give_options_panel input[type="text"],
746
+ .give_options_panel input[type="email"] {
747
  padding: 5px;
748
  width: 100%; }
749
 
1542
  .give-settings-page table table input[type="text"] {
1543
  width: 15em; }
1544
 
1545
+ .give-settings-page .give-repeat-setting-field {
1546
+ margin: 10px 0; }
1547
+
1548
+ .give-settings-page .give-remove-setting-field {
1549
+ width: 25px;
1550
+ height: 25px;
1551
+ padding: 0;
1552
+ text-align: center;
1553
+ line-height: 22px;
1554
+ font-size: 21px;
1555
+ font-weight: 300;
1556
+ cursor: pointer;
1557
+ margin-left: 20px;
1558
+ display: inline-block; }
1559
+
1560
+ .give-settings-page .give-remove-setting-field:hover {
1561
+ background-color: red;
1562
+ color: white;
1563
+ border-radius: 30px; }
1564
+
1565
+ .give-settings-page .give-forminp p:first-child .give-remove-setting-field {
1566
+ display: none; }
1567
+
1568
+ .give-settings-page .export-options-table tr.give-import-option:nth-child(odd) {
1569
+ background: #f4f3f3; }
1570
+ .give-settings-page .export-options-table tr.give-import-option:nth-child(odd) th {
1571
+ vertical-align: middle; }
1572
+
1573
+ .give-settings-page .export-options-table .give-import-dropdown:nth-child(2),
1574
+ .give-settings-page .export-options-table tr.give-import-option th:first-child {
1575
+ width: 250px; }
1576
+
1577
  .give-setting-tab-header {
1578
  clear: both;
1579
  overflow: hidden;
1580
  margin: 30px 0; }
1581
  .give-setting-tab-header h2 {
1582
  margin-top: 8px; }
1583
+ .give-setting-tab-header p {
1584
+ margin-bottom: 0; }
1585
 
1586
  .give-radio-inline ul {
1587
  margin-top: 0; }
1669
  .give-email-tags-wrap .give_price_tag {
1670
  display: none; }
1671
 
1672
+ .give-settings-email-settings-section .tablenav {
1673
+ display: none; }
1674
+
1675
+ .give-settings-email-settings-section .give-setting-tab-header-emails {
1676
+ margin: 0 0 20px; }
1677
+ .give-settings-email-settings-section .give-setting-tab-header-emails hr {
1678
+ display: none; }
1679
+
1680
+ .give-settings-email-settings-section .tablenav.bottom + .give-setting-tab-header-emails {
1681
+ margin: 20px 0; }
1682
+ .give-settings-email-settings-section .tablenav.bottom + .give-setting-tab-header-emails hr {
1683
+ display: block; }
1684
+
1685
+ .giveemailnotifications .check-column {
1686
+ padding: 13px 10px 0 20px !important; }
1687
+
1688
+ .giveemailnotifications td.check-column input {
1689
+ display: none; }
1690
+
1691
+ .giveemailnotifications th.check-column .give-email-notification-status {
1692
+ color: white;
1693
+ cursor: pointer; }
1694
+ .giveemailnotifications th.check-column .give-email-notification-status[data-edit="1"] i.dashicons {
1695
+ border-radius: 1em;
1696
+ padding: 2px; }
1697
+
1698
+ .giveemailnotifications th.check-column .give-email-notification-enabled .dashicons-yes,
1699
+ .giveemailnotifications th.check-column .give-email-notification-disabled:hover .dashicons-no-alt {
1700
+ background: #46b450; }
1701
+
1702
+ .giveemailnotifications th.check-column .give-email-notification-enabled .dashicons-lock {
1703
+ color: #46b450; }
1704
+
1705
+ .giveemailnotifications th.check-column .give-email-notification-disabled .dashicons-no-alt,
1706
+ .giveemailnotifications th.check-column .give-email-notification-enabled:hover .dashicons-yes {
1707
+ background: #bbbbbb; }
1708
+
1709
+ .giveemailnotifications th.check-column .give-email-notification-disabled .dashicons-lock {
1710
+ color: #bbbbbb; }
1711
+
1712
+ .giveemailnotifications th.check-column .dashicons-no-alt:hover:before {
1713
+ content: "\f147" !important; }
1714
+
1715
+ .giveemailnotifications th.check-column .dashicons-yes:hover:before {
1716
+ content: "\f335" !important; }
1717
+
1718
+ .giveemailnotifications .spinner.is-active {
1719
+ margin: 0 0 0 2px;
1720
+ float: none; }
1721
+
1722
  #system-info-textarea {
1723
  width: 800px;
1724
  height: 600px;
1905
  border-bottom: 0;
1906
  position: absolute;
1907
  top: 35px;
1908
+ right: 0; }
1909
  .give-sub-nav-tab-wrapper nav.give-sub-nav-tab a {
1910
  float: left;
1911
+ background: white;
1912
  padding: 6px 10px;
1913
  clear: both;
1914
  text-decoration: none;
2451
  * @copyright Copyright (c) 2016, WordImpress
2452
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
2453
  */
2454
+ .give_forms_page_give-donors {
2455
+ /*
2456
+ * Donor address metabox
2457
+ */ }
2458
+ .give_forms_page_give-donors .wrap > h2 {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2459
  margin-bottom: 15px; }
2460
+ .give_forms_page_give-donors .nav-tab-wrapper .dashicons {
2461
+ position: relative;
2462
+ top: 2px;
2463
+ margin: 0 3px 0 0; }
2464
+ .give_forms_page_give-donors #give-donors-filter {
2465
+ position: relative; }
2466
+ .give_forms_page_give-donors #give-donors-filter p.search-box {
2467
+ margin: 0; }
2468
+ .give_forms_page_give-donors #give-donors-search-filter {
2469
+ display: block;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2470
  overflow: hidden; }
2471
+ .give_forms_page_give-donors #give-donor-card-wrapper {
2472
+ margin-left: -1px;
2473
+ z-index: 2;
2474
+ min-height: 200px; }
2475
+ .give_forms_page_give-donors #give-donor-card-wrapper input {
2476
+ font-weight: normal; }
2477
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-section {
2478
+ border-bottom: 1px solid #eee;
2479
+ margin-bottom: 10px; }
2480
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-section table {
2481
+ margin-bottom: 0; }
2482
+ .give_forms_page_give-donors #give-donor-card-wrapper > div:first-child {
2483
+ padding-top: 20px; }
2484
+ .give_forms_page_give-donors #give-donor-card-wrapper > div:last-child {
2485
+ padding-bottom: 20px;
2486
+ border: none; }
2487
+ .give_forms_page_give-donors #give-donor-card-wrapper .avatar-wrap {
2488
+ padding: 0 15px 15px 0;
2489
+ text-align: center;
2490
+ float: left; }
2491
+ .give_forms_page_give-donors #give-donor-card-wrapper .avatar-wrap img {
2492
+ border-radius: 3px; }
2493
+ .give_forms_page_give-donors #give-donor-card-wrapper a.delete {
2494
+ text-decoration: none;
2495
+ color: #ff0000;
2496
+ margin-right: 5px; }
2497
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-since {
2498
+ margin: 10px 0;
2499
+ font-size: 16px; }
2500
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-id {
2501
+ display: inline-block;
2502
+ font-size: 24px;
2503
+ font-weight: 600;
2504
+ margin-right: 10px; }
2505
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-name-wrap {
2506
+ display: inline-block; }
2507
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-edit-link {
2508
+ margin-bottom: 15px; }
2509
+ .give_forms_page_give-donors .donor-main-wrapper {
2510
+ clear: both;
2511
+ margin: 0 0 20px; }
2512
+ @media (max-width: 655px) {
2513
+ .give_forms_page_give-donors .donor-main-wrapper {
2514
+ width: 100%; } }
2515
+ .give_forms_page_give-donors .donor-main-wrapper table {
2516
  margin: 0; }
2517
+ .give_forms_page_give-donors .donor-main-wrapper input {
2518
+ width: 200px; }
2519
+ .give_forms_page_give-donors #donor-summary {
2520
+ padding: 0 20px; }
2521
+ .give_forms_page_give-donors #donor-summary:after {
2522
+ font-family: "dashicons";
2523
+ content: "\f110";
2524
+ position: absolute;
2525
+ top: 10px;
2526
+ right: 10px;
2527
+ font-size: 100px;
2528
+ color: #F0F0F0;
2529
+ z-index: 0; }
2530
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper {
2531
+ width: 202px; }
2532
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper span[data-key="line2"] {
2533
+ display: table;
2534
+ clear: both; }
2535
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper select {
2536
+ width: 200px; }
2537
+ .give_forms_page_give-donors #give-donor-card-wrapper .donor-info {
2538
+ min-height: 185px; }
2539
+ .give_forms_page_give-donors #give-donor-card-wrapper .info-wrapper {
2540
+ min-height: 125px; }
2541
+ .give_forms_page_give-donors .donor-info .donor-name {
2542
+ font-size: 24px;
2543
+ font-weight: 600; }
2544
+ .give_forms_page_give-donors #disconnect-donor, .give_forms_page_give-donors #view-user-profile {
2545
+ font-size: 12px;
2546
+ font-weight: normal;
2547
  text-decoration: none; }
2548
+ .give_forms_page_give-donors #donor-edit-actions {
2549
+ text-align: center;
2550
+ margin-bottom: 20px;
2551
+ line-height: 28px; }
2552
+ .give_forms_page_give-donors #donor-edit-actions .button-secondary {
2553
+ margin-right: 10px; }
2554
+ .give_forms_page_give-donors #give-donor-card-wrapper .edit-item {
2555
+ display: none; }
2556
+ .give_forms_page_give-donors #give-donor-card-wrapper .give_user_search_results {
2557
+ left: 1px;
2558
+ top: 16px; }
2559
+ .give_forms_page_give-donors #give-donor-card-wrapper .give_user_search_results ul {
2560
+ width: 200px; }
2561
+ .give_forms_page_give-donors #donor-stats-wrapper {
2562
+ margin: 0 auto;
2563
+ text-align: center;
2564
+ padding: 15px; }
2565
+ .give_forms_page_give-donors #donor-stats-wrapper ul {
2566
+ margin: 0;
2567
+ padding: 0;
2568
+ overflow: hidden; }
2569
+ .give_forms_page_give-donors #donor-stats-wrapper ul li {
2570
+ width: 50%;
2571
+ float: left;
2572
+ line-height: 22px;
2573
+ font-size: 14px;
2574
+ margin: 0; }
2575
+ .give_forms_page_give-donors #donor-stats-wrapper a {
2576
+ text-decoration: none; }
2577
+ .give_forms_page_give-donors #donor-stats-wrapper .dashicons {
2578
+ color: #888; }
2579
+ .give_forms_page_give-donors #donor-tables-wrapper table {
2580
+ width: 100%;
2581
+ text-align: center; }
2582
+ .give_forms_page_give-donors #donor-tables-wrapper th {
2583
+ text-align: center; }
2584
+ .give_forms_page_give-donors #donor-tables-wrapper .donations tr > th:first-child,
2585
+ .give_forms_page_give-donors #donor-tables-wrapper .donations tr > td:first-child,
2586
+ .give_forms_page_give-donors #donor-tables-wrapper .emails tr > th:first-child,
2587
+ .give_forms_page_give-donors #donor-tables-wrapper .emails tr > td:first-child {
2588
+ text-align: left; }
2589
+ .give_forms_page_give-donors #donor-tables-wrapper .donations tr > td:only-child {
2590
+ text-align: center; }
2591
+ .give_forms_page_give-donors #donor-notes-wrapper {
2592
+ min-height: 50px; }
2593
+ .give_forms_page_give-donors .donor-notes-header span, .give_forms_page_give-donors .donor-notes-header img {
2594
+ font-weight: 600;
2595
+ line-height: 30px;
2596
+ vertical-align: middle; }
2597
+ .give_forms_page_give-donors .donor-note-input {
2598
+ width: 100%;
2599
+ margin-bottom: 5px; }
2600
+ .give_forms_page_give-donors #give-donor-notes div:nth-of-type(even) {
2601
+ background-color: #f9f9f9; }
2602
+ .give_forms_page_give-donors #give-donor-notes .donor-note-wrapper {
2603
+ border-bottom: 1px solid #f9f9f9;
2604
+ min-height: 38px;
2605
+ padding: 0; }
2606
+ .give_forms_page_give-donors #give-donor-notes .donor-note-wrapper .note-content-wrap {
2607
+ padding: 10px 12px;
2608
+ line-height: 20px;
2609
+ font-size: 14px; }
2610
+ .give_forms_page_give-donors #give-donor-notes .give-no-donor-notes {
2611
+ text-align: center;
2612
+ padding: 20px; }
2613
+ .give_forms_page_give-donors .donor-note-wrapper span {
2614
+ display: block; }
2615
+ .give_forms_page_give-donors .delete-donor {
2616
+ text-align: center; }
2617
+ .give_forms_page_give-donors .give-lock-block {
2618
+ margin-left: -25px;
2619
+ text-decoration: none;
2620
+ font-size: 14px;
2621
+ margin-right: 3px; }
2622
+ .give_forms_page_give-donors .give-lock-block i {
2623
+ color: #000000;
2624
+ font-size: 14px; }
2625
+ .give_forms_page_give-donors #donor-address-wrapper .give-no-address-message {
2626
+ margin: 0.5rem 1%;
2627
+ line-height: 3.4em; }
2628
+ .give_forms_page_give-donors #donor-address-wrapper .add-new-address {
2629
+ margin: 0.5rem 1% !important; }
2630
+ .give_forms_page_give-donors #donor-address-wrapper .add-new-address-form-hidden {
2631
+ position: absolute;
2632
+ right: 13px;
2633
+ left: 13px;
2634
+ top: 0;
2635
+ visibility: hidden; }
2636
+ .give_forms_page_give-donors #donor-address-wrapper .all-address .address {
2637
+ min-height: 146px;
2638
+ border: 1px solid #dad9d9;
2639
+ padding: 9px;
2640
+ border-radius: 5px;
2641
+ background-color: white; }
2642
+ .give_forms_page_give-donors #donor-address-wrapper .all-address .address .address-number-label {
2643
+ color: gray;
2644
+ cursor: default; }
2645
+ .give_forms_page_give-donors #donor-address-wrapper .all-address .address a {
2646
+ text-decoration: none; }
2647
 
2648
  /**
2649
  * Give Admin Buttons SCSS
2870
  height: 15px;
2871
  width: 95%;
2872
  border-radius: 4px;
2873
+ overflow: hidden;
2874
+ background-color: whitesmoke; }
2875
  .give-progress > div {
2876
  height: 100%;
2877
  width: 0; }
2897
  .admin-color-sunrise .give-progress div {
2898
  background: #dd823b; }
2899
 
2900
+ /**
2901
+ * Spinner
2902
+ */
2903
+ .give-spinner-wrapper {
2904
+ position: absolute;
2905
+ left: 0;
2906
+ right: 0;
2907
+ bottom: 0;
2908
+ top: 0;
2909
+ background: rgba(245, 245, 245, 0.57);
2910
+ z-index: 1;
2911
+ display: none; }
2912
+ .give-spinner-wrapper.is-active {
2913
+ display: inline-block; }
2914
+ .give-spinner-wrapper .aligncenter {
2915
+ position: absolute;
2916
+ top: 50%;
2917
+ left: 50%;
2918
+ margin: 10px 10px 0 0; }
2919
+
2920
+ .give-spinner.spinner.is-active {
2921
+ margin: 0 0 0 2px;
2922
+ float: none; }
2923
+
2924
  /**
2925
  * Give Updates Panel SCSS
2926
  *
assets/css/give-admin.min.css CHANGED
@@ -6,4 +6,6 @@
6
  * @subpackage: SCSS/Admin
7
  * @copyright: Copyright (c) 2016, WordImpress
8
  * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
- */#qtip-overlay.blurs,.qtip-close{cursor:pointer}.give-clearfix:after,.type-download .addon-content:after{clear:both}.give-clearfix:after,.give-clearfix:before{content:" ";display:table}#give-payments-filter .give-payment-id,.give-item-label-gray{background-color:#929292}.give-item-label-orange{background-color:#ffba00}.give-item-label{padding:.2em .4em .3em;font-size:11px;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.give-item-label:hover{color:#fff;text-decoration:none}.qtip{position:absolute;left:-28000px;top:-28000px;display:none;max-width:280px;min-width:50px;font-size:10.5px;line-height:12px;direction:ltr;box-shadow:none;padding:0}.qtip-content,.qtip-titlebar{position:relative;overflow:hidden}.qtip-content{padding:5px 9px;text-align:left;word-wrap:break-word}.qtip-titlebar{padding:5px 35px 5px 10px;border-width:0 0 1px;font-weight:700}.qtip-titlebar+.qtip-content{border-top-width:0!important}.qtip-close{position:absolute;right:-9px;top:-9px;z-index:11;outline:0;border:1px solid transparent}.qtip-titlebar .qtip-close{right:4px;top:50%;margin-top:-9px}* html .qtip-titlebar .qtip-close{top:16px}.qtip-icon .ui-icon,.qtip-titlebar .ui-icon{display:block;text-indent:-1000em;direction:ltr}.qtip-icon,.qtip-icon .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-decoration:none}.qtip-icon .ui-icon{width:18px;height:14px;line-height:14px;text-align:center;text-indent:0;font:normal 700 10px/13px Tahoma,sans-serif;color:inherit;background:-100em -100em no-repeat}.qtip-default{border:1px solid #F1D031;background-color:#FFFFA3;color:#555}.qtip-default .qtip-titlebar{background-color:#FFEF93}.qtip-default .qtip-icon{border-color:#CCC;background:#F1F1F1;color:#777}.qtip-default .qtip-titlebar .qtip-close{border-color:#AAA;color:#111}/*! Light tooltip style */.qtip-light{background-color:#fff;border-color:#E2E2E2;color:#454545}.qtip-light .qtip-titlebar{background-color:#f1f1f1}/*! Dark tooltip style */.qtip-dark{background-color:#505050;border-color:#303030;color:#f3f3f3}.qtip-dark .qtip-titlebar{background-color:#404040}.qtip-dark .qtip-icon{border-color:#444}.qtip-dark .qtip-titlebar .ui-state-hover{border-color:#303030}/*! Cream tooltip style */.qtip-cream{background-color:#FBF7AA;border-color:#F9E98E;color:#A27D35}.qtip-red,.qtip-red .qtip-icon,.qtip-red .qtip-titlebar .ui-state-hover{border-color:#D95252}.qtip-cream .qtip-titlebar{background-color:#F0DE7D}.qtip-cream .qtip-close .qtip-icon{background-position:-82px 0}/*! Red tooltip style */.qtip-red{background-color:#F78B83;color:#912323}.qtip-red .qtip-titlebar{background-color:#F06D65}.qtip-red .qtip-close .qtip-icon{background-position:-102px 0}/*! Green tooltip style */.qtip-green{background-color:#CAED9E;border-color:#90D93F;color:#3F6219}.qtip-green .qtip-titlebar{background-color:#B0DE78}.qtip-green .qtip-close .qtip-icon{background-position:-42px 0}/*! Blue tooltip style */.qtip-blue{background-color:#E5F6FE;border-color:#ADD9ED;color:#5E99BD}.qtip-blue .qtip-titlebar{background-color:#D0E9F5}.qtip-blue .qtip-close .qtip-icon{background-position:-2px 0}.qtip-shadow{-webkit-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);-moz-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);box-shadow:1px 1px 3px 1px rgba(0,0,0,.15)}.qtip-bootstrap,.qtip-rounded,.qtip-tipsy{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.qtip-rounded .qtip-titlebar{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.qtip-youtube{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 3px #333;-moz-box-shadow:0 0 3px #333;box-shadow:0 0 3px #333;color:#fff;border:0 solid transparent;background:#4A4A4A;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4A4A4A),color-stop(100%,#000));background-image:-webkit-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-moz-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-ms-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-o-linear-gradient(top,#4A4A4A 0,#000 100%)}.qtip-youtube .qtip-titlebar{background-color:transparent}.qtip-youtube .qtip-content{padding:.75em;font:12px arial,sans-serif;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#4a4a4a, EndColorStr=#000000);-ms-filter:"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);"}.qtip-youtube .qtip-icon{border-color:#222}.qtip-youtube .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-jtools{background:#232323;background:rgba(0,0,0,.7);background-image:-webkit-gradient(linear,left top,left bottom,from(#717171),to(#232323));background-image:-moz-linear-gradient(top,#717171,#232323);background-image:-webkit-linear-gradient(top,#717171,#232323);background-image:-ms-linear-gradient(top,#717171,#232323);background-image:-o-linear-gradient(top,#717171,#232323);border:2px solid #f1f1f1;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 12px #333;-moz-box-shadow:0 0 12px #333;box-shadow:0 0 12px #333}.qtip-jtools .qtip-titlebar{background-color:transparent;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171, endColorstr=#4A4A4A);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)"}.qtip-jtools .qtip-content{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A, endColorstr=#232323);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)"}.qtip-jtools .qtip-content,.qtip-jtools .qtip-titlebar{background:0 0;color:#fff;border:0 dashed transparent}.qtip-jtools .qtip-icon{border-color:#555}.qtip-jtools .qtip-titlebar .ui-state-hover{border-color:#333}.qtip-cluetip{-webkit-box-shadow:4px 4px 5px rgba(0,0,0,.4);-moz-box-shadow:4px 4px 5px rgba(0,0,0,.4);box-shadow:4px 4px 5px rgba(0,0,0,.4);background-color:#D9D9C2;color:#111;border:0 dashed transparent}.qtip-cluetip .qtip-titlebar{background-color:#87876A;color:#fff;border:0 dashed transparent}.qtip-cluetip .qtip-icon{border-color:#808064}.qtip-cluetip .qtip-titlebar .ui-state-hover{border-color:#696952;color:#696952}.qtip-tipsy{background:#000;background:rgba(0,0,0,.87);color:#fff;border:0 solid transparent;font-size:11px;font-family:'Lucida Grande',sans-serif;font-weight:700;line-height:16px;text-shadow:0 1px #000}.qtip-tipsy .qtip-titlebar{padding:6px 35px 0 10px;background-color:transparent}.qtip-tipsy .qtip-content{padding:6px 10px}.qtip-tipsy .qtip-icon{border-color:#222;text-shadow:none}.qtip-tipsy .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-tipped{border:3px solid #959FA9;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-color:#F9F9F9;color:#454545;font-weight:400;font-family:serif}.qtip-tipped .qtip-titlebar{border-bottom-width:0;color:#fff;background:#3A79B8;background-image:-webkit-gradient(linear,left top,left bottom,from(#3A79B8),to(#2E629D));background-image:-webkit-linear-gradient(top,#3A79B8,#2E629D);background-image:-moz-linear-gradient(top,#3A79B8,#2E629D);background-image:-ms-linear-gradient(top,#3A79B8,#2E629D);background-image:-o-linear-gradient(top,#3A79B8,#2E629D);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8, endColorstr=#2E629D);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)"}.qtip-tipped .qtip-icon{border:2px solid #285589;background:#285589}.qtip-tipped .qtip-icon .ui-icon{background-color:#FBFBFB;color:#555}.qtip-bootstrap{font-size:14px;line-height:20px;color:#333;padding:1px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.qtip-bootstrap .qtip-titlebar{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.qtip-bootstrap .qtip-titlebar .qtip-close{right:11px;top:45%;border-style:none}.qtip-bootstrap .qtip-content{padding:9px 14px}.qtip-bootstrap .qtip-icon{background:0 0}.qtip-bootstrap .qtip-icon .ui-icon{width:auto;height:auto;float:right;font-size:20px;font-weight:700;line-height:18px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}#qtip-overlay,#qtip-overlay div{top:0;width:100%;height:100%;left:0}.dashicons-give:before,[class*=" give-icon-"],[class^=give-icon-]{line-height:1;font-family:give-icomoon;font-style:normal;font-weight:400}.qtip-bootstrap .qtip-icon .ui-icon:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}.qtip:not(.ie9haxors) div.qtip-content,.qtip:not(.ie9haxors) div.qtip-titlebar{filter:none;-ms-filter:none}.qtip .qtip-tip{margin:0 auto;overflow:hidden;z-index:10}.qtip .qtip-tip,x:-o-prefocus{visibility:hidden}.qtip .qtip-tip,.qtip .qtip-tip .qtip-vml,.qtip .qtip-tip canvas{position:absolute;color:#123456;background:0 0;border:0 dashed transparent}.qtip .qtip-tip canvas{top:0;left:0}.qtip .qtip-tip .qtip-vml{behavior:url(#default#VML);display:inline-block;visibility:visible}#qtip-overlay{position:fixed}#qtip-overlay div{position:absolute;background-color:#000;opacity:.7;filter:alpha(opacity=70);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"}.qtipmodal-ie6fix{position:absolute!important}@font-face{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");font-weight:400;font-style:normal}[class*=" give-icon-"],[class^=give-icon-]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-icon-lamp:before{content:"\e603"}.give-icon-heart:before{content:"\e604"}.give-icon-question:before{content:"\e602"}.give-icon-info:before{content:"\e601"}.give-icon-new-tab:before{content:"\ea7e"}.give-icon-alert:before{content:"\f02d"}.give-icon-help:before{content:"\e606"}.give-icon-spinner:before{content:"\e605"}.give-icon-spinner2:before{content:"\e607"}.give-icon-plus:before{content:"\e040"}.give-icon-minus:before{content:"\e041"}.give-icon-locked:before{content:"\e600"}#dashboard_right_now .give-forms-count:before,.dashicons-give:before{font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;content:"\e800";speak:none;-moz-osx-font-smoothing:grayscale}.fa-spin{-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@font-face{font-family:give-icomoon;font-weight:400;font-style:normal}.give-metabox-tabs li .give-icon:before{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:12px;vertical-align:top;line-height:20px;margin:0 5px 0 0}.give-metabox-tabs li .give-icon-default:before{content:"\e903"}.give-metabox-tabs li .give-icon-heart:before{content:"\e604"}.give-metabox-tabs li .give-icon-target:before{content:"\e901"}.give-metabox-tabs li .give-icon-display:before{content:"\e90c"}.give-metabox-tabs li .give-icon-edit:before{content:"\e902"}.give-metabox-tabs li .give-icon-checklist:before{position:relative;top:1px;content:"\e900"}.give-metabox-tabs li .give-icon-purse:before{content:"\e8df"}.give-metabox-tabs li .dashicons{font-size:14px;width:14px;line-height:20px}.give-grid-row{position:relative;width:100%}.give-grid-row [class^=give-grid-col]{float:left;margin:.5rem 1%;min-height:.125rem}.give-grid-row::after{content:"";display:table;clear:both}.give-grid-col-1{width:6.33333%}.give-grid-col-2{width:14.66667%}.give-grid-col-3{width:23%}.give-grid-col-4{width:31.33333%}.give-grid-col-5{width:39.66667%}.give-grid-col-6{width:48%}.give-grid-col-7{width:56.33333%}.give-grid-col-8{width:64.66667%}.give-grid-col-9{width:73%}.give-grid-col-10{width:81.33333%}.give-grid-col-11{width:89.66667%}.give-grid-col-12{width:98%}@media only screen and (max-width:33.75em){.give-grid-row [class^=give-grid-col]{width:98%}}#_give_donation_levels_repeat .cmb-group-title,#_give_donation_levels_repeat .cmb-row>.cmb-remove-group-row,#_give_donation_levels_repeat .cmb-row>.handlediv,.cmb-type-levels-id,.cmb2-id--give-custom-amount-minimum,.cmb2-id--give-custom-amount-text,.cmb2-id--give-display-style,.cmb2-id--give-form-content,.cmb2-id--give-levels-header,.cmb2-id--give-levels-header+.cmb-repeat-group-wrap,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-reveal-label,.cmb2-id--give-set-price,.give-hidden,.post-type-give_forms .tablenav #post-query-submit{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row .cmb2-radio-list label{font-size:12px}div.cmb-type-levels-repeater-header+div.cmb-repeat-group-wrap{padding:0!important;margin:0!important;min-width:100%;max-width:0}.cmb2-id--give-levels-header{padding:10px 12px 0!important;margin:0!important;background:#F7F7F7;border-bottom:none!important}.cmb2-id--give-levels-header .table-container{display:table;width:100%;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-left:1px solid #e9e9e9}.cmb2-id--give-levels-header .table-container>.table-row{display:table-row;background:#FCFCFC}.cmb2-id--give-levels-header .table-container>.table-row>.table-cell{display:table-cell;vertical-align:middle;padding:10px 15px;border-right:1px solid #e9e9e9}#_give_donation_levels_repeat .cmbhandle,.cmb2-id--give-levels-header .table-container>.table-row>.table-cell.col-id{display:none}#_give_donation_levels_repeat{background:#F7F7F7;padding:0 1px 20px 12px;box-sizing:border-box}#_give_donation_levels_repeat .cmb-row,#_give_donation_levels_repeat .inside{margin:0}#_give_donation_levels_repeat .cmb-remove-field-row{margin:3px 0 0}#_give_donation_levels_repeat .cmb-remove-field-row .button{height:25px;padding:0 3px}#_give_donation_levels_repeat .cmb-remove-field-row span.dashicons-no{line-height:1.15em}#_give_donation_levels_repeat .cmb-add-row{margin:12px 0 0}.give-time-field{width:65px}.give-money-field{width:75px;margin-right:0;margin-left:0}.give-money-symbol{border:1px solid #DDD;background:#FCFCFC;margin:0;font-size:14px;padding:5px 8px}.give-money-symbol-before{border-right:0;margin-right:-4px}.give-money-symbol-after{margin-left:-5px}.give_options_panel input[type=text]{padding:5px;width:100%}input.give-text-small,input.give-text_small{width:100px!important}input.give-text-medium,input.give-text_medium{width:200px!important}.give-underline{text-decoration:underline}.postbox-container .cmb-row{margin:0}.postbox-container .cmb-row .cmb-th label{padding-left:8px}#give-bulk-donors div[id^=give-donor-]{display:block;overflow:hidden}@media only screen and (min-width:851px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{float:left;border-bottom:none;padding-right:10px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-th{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-td{float:left;width:100%}.cmb-type-give-default-radio-inline .cmb-td{margin-top:5px}}@media only screen and (min-width:851px) and (max-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{width:100%;padding-top:0}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-type-text-money{width:105px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list input.cmb2-text-money{width:65px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .give-multilevel-text-field{width:160px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .cmb-type-radio-inline{margin-left:20px}.col-amount{width:70px}.col-text{width:140px}.col-sort{display:none!important}.give-money-field{width:55px}}@media only screen and (min-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{float:right}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{padding-right:20px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row.cmb-row{padding-right:0}.col-amount{width:93px}.col-text{width:195px}.col-sort{width:100px}.give-multilevel-text-field{width:205px}}@media only screen and (max-width:850px){div.cmb-type-levels-repeater-header{display:none!important}}.shortcode-wrap{margin:1px 14px 12px 11px}.shortcode-wrap label{margin:0 0 3px;display:block;cursor:default}.shortcode-wrap .shortcode-input{margin:0;width:100%}.cmb2-id--give-content-option,.cmb2-id--give-customize-offline-donations,.cmb2-id--give-goal-option,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-terms-option{border-bottom:none!important;margin:0!important}.cmb2-id--give-agree-label,.cmb2-id--give-form-content,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-set-goal{border-top:1px solid #e9e9e9!important}.cmb2-id--give-agree-label,.cmb2-id--give-agree-text{display:none}input.shortcode-input{width:100%}.price .give_price_range_high,.price .give_price_range_low,.price .give_price_range_sep{display:inline-block}#side-sortables .cmb-th label:after{display:none}#side-sortables .cmb2-id--give-show-register-form{padding:10px 0 0!important}#side-sortables .cmb2-wrap>.cmb-field-list>.cmb-row{padding-top:10px}#side-sortables .cmb-row .cmb2-metabox-description{padding-bottom:0}.cmb2-metabox-description{line-height:1.5;display:block}.give-tooltip{margin:0 3px;padding:0;font-size:14px;-moz-transition:.2s all linear;-o-transition:.2s all linear;transition:.2s all linear;color:rgba(51,51,51,.5);position:relative;top:1px}.give-tooltip:hover{color:#333}#give-metabox-form-data .inside{margin:0;padding:0}#give-metabox-form-data .give-metabox-panel-wrap{background:#fff;overflow:hidden}#give-metabox-form-data .give_options_panel{display:none;padding-left:170px}#give-metabox-form-data .give_options_panel.active,.no-js #give-metabox-form-data .give_options_panel{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:1em 20px 1em 162px;margin:0;border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-field-wrap>label,#give-metabox-form-data .give_options_panel .give-field-wrap>span.give-field-label{float:left;width:135px;padding:0;margin:2px 0 0 -150px;line-height:18px;font-size:12px;font-weight:400}#give-metabox-form-data .give_options_panel .give-field-wrap .give-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-top:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-field-wrap ul{margin:0}#give-metabox-form-data .give_options_panel .give-field-wrap .mce-container iframe,#give-metabox-form-data .give_options_panel .give-field-wrap textarea{min-height:250px!important}#give-metabox-form-data .give_options_panel .give-field-wrap .wp-editor-wrap{display:inline-block;width:100%}#give-metabox-form-data .give_options_panel textarea.give-field{width:100%}#give-metabox-form-data .give_options_panel .give-field-wrap:hover .give-field-row-actions{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap:last-child{border-bottom:0}#give-metabox-form-data .give_options_panel .give-inline-radio-fields li{display:inline-block;margin-right:15px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section{padding:10px;background:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeatable-fields-section-wrapper{width:100%;background-color:#fff;border-collapse:collapse}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row{border-bottom:15px solid #f5f5f5;background-color:#fff}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-template{display:none}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row:last-child{border-bottom:10px solid #f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-column{padding:0}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove{float:right;width:22px;height:36px;padding:0;display:block;text-align:center;line-height:34px;font-size:21px;font-weight:300;cursor:pointer}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove:hover{background-color:red;color:#fff;width:22px;height:22px;border-radius:30px;margin-top:8px;line-height:19px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head{border-bottom:1px solid #eee;cursor:move}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head h2{text-align:left!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.closed .toggle-indicator:before{content:"\f140"}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row .give-move .toggle-indicator:before{margin-left:7px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row-wrap{background-color:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row{margin:5px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-field-wrap:last-child{border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-ui-placeholder-state-highlight{background-color:#68bb6c}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-name{border:0!important;padding:0!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-bottom:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .ui-sortable-helper{display:table!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.ui-sortable-helper{border-bottom:0}#_give_donation_levels_field .give-row:nth-of-type(2) .give-remove{display:none!important}#give-metabox-form-data .give-metabox-tabs{margin:0;max-width:170px;float:left;line-height:1em;padding:0 0 10px;position:relative;background-color:#fafafa;border-right:1px solid #eee;box-sizing:border-box}#give-metabox-form-data .give-metabox-tabs:after{content:"";display:block;width:100%;height:9999em;position:absolute;bottom:-9999em;left:0;background-color:#fafafa;border-right:1px solid #eee}#give-metabox-form-data .give-metabox-tabs li{margin:0;padding:0;display:block;position:relative}#give-metabox-form-data .give-metabox-tabs li a{margin:0;padding:10px;display:block;box-shadow:none;text-decoration:none;line-height:20px!important;border-bottom:1px solid #eee;overflow:hidden}#give-metabox-form-data .give-metabox-tabs li a span.give-label{width:122px;display:inline-block}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li{background-color:#f1f1f1}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li a{border-bottom-color:#e5e5e5}#give-export-payments div.chosen-container ul.chosen-choices,#give-export-payments select,.type-download{border:1px solid #ddd}#give-metabox-form-data .give-metabox-tabs li.active>a{color:#555;position:relative;background-color:#eee}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields.active>a{background-color:#ddd}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields:not(.active):hover ul.give-metabox-sub-tabs{display:block;position:absolute;bottom:0;left:166px;width:170px;max-height:250px}@media only screen and (min-width:851px) and (max-width:1025px),(max-width:550px){#give-metabox-form-data ul.give-metabox-tabs{min-width:40px}#give-metabox-form-data ul.give-metabox-tabs li>a{text-align:center}#give-metabox-form-data ul.give-metabox-tabs li>a:before{margin-right:0;font-size:15px}#give-metabox-form-data ul.give-metabox-tabs li>a span.give-label{display:none}#give-metabox-form-data ul.give-metabox-tabs li>a span.give-icon:before{margin:0}#give-metabox-form-data .give_options_panel{padding-left:40px}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:10px}#give-metabox-form-data .give_options_panel .give-field-wrap label,#give-metabox-form-data .give_options_panel .give-field-wrap span.give-field-label{display:block;float:none;margin:0 0 10px;font-size:14px;width:100%}}#give-export-payments .give_forms_categories,#give-export-payments .give_forms_tags{min-width:250px;margin:0 0 10px;display:block}#give-export-payments .give_forms_categories input,#give-export-payments .give_forms_tags input{color:#999}#give-export-payments div.chosen-container:first-of-type{margin-top:10px}#give-export-payments div.chosen-container ul.chosen-choices input.chosen-search-input{border:1px solid #ddd;height:20px}#give-export-payments select{vertical-align:inherit;margin:0;height:26px;line-height:26px}.give-docs-link{text-align:right;margin-right:15px}.give-docs-link a{color:#999;text-decoration:none;font-style:italic}.give-docs-link a:hover{color:#0073aa}.give-docs-link a span{font-style:normal}.type-download{float:left;margin:0 1em 1em 0!important;padding:0;vertical-align:top;width:280px;text-decoration:none;color:inherit;display:block;min-height:365px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;position:relative}.type-download:hover{border:1px solid #d1d1d1}.type-download>.featured-img img{border-bottom:1px solid #ddd}.type-download .addon-content{padding:15px 20px}.type-download .addon-content:after,.type-download .addon-content:before{content:" ";display:table}.give-filter:after,.give-filters:after{content:""}.type-download .addon-content .addon-heading{margin:0 0 10px}.type-download .addon-content .addon-heading a{outline:0;text-decoration:none}.type-download .addon-footer-wrap{border-top:1px solid #ddd;position:absolute;bottom:2px;left:0;width:100%;background-color:#FFF;padding:15px 20px}.give-view-addons-all span.dashicons,.type-download span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.give-view-addons-all span.dashicons{margin-left:3px}#give-dashboard-widgets-wrap .inside{padding-top:0;padding-bottom:0}.give_forms_page_give-reports #give-dashboard-widgets-wrap .inside{padding-left:0}#give-dashboard-widgets-wrap .inside #give-graphs-filter{float:none}#give-dashboard-widgets-wrap .postbox{margin-bottom:10px}#give-dashboard-widgets-wrap table.reports-table{clear:none}#give-dashboard-widgets-wrap #give-date-range-options{float:left}#give-dashboard-widgets-wrap #give-date-range-options>span{float:left;line-height:30px;font-style:italic;padding:0 5px 0 0}#give-graphs-filter,body.give_forms_page_give-payment-history .tablenav-right .tablenav-pages,body.give_forms_page_give-reports .tablenav-right .tablenav-pages{float:right}#give-graphs-filter .tablenav{margin:0 0 0 17px}#give-graphs-filter .tablenav .actions{padding:0}.give-graph .y1Axis{color:#66bb6a!important}.give-graph .y2Axis{color:#546e7a!important}body.give_forms_page_give-payment-history h1.nav-tab-wrapper,body.give_forms_page_give-payment-history h2.nav-tab-wrapper,body.give_forms_page_give-reports h1.nav-tab-wrapper,body.give_forms_page_give-reports h2.nav-tab-wrapper{margin-bottom:10px}body.give_forms_page_give-payment-history .actions,body.give_forms_page_give-reports .actions{padding-top:0}body.give_forms_page_give-payment-history .pagination-links,body.give_forms_page_give-reports .pagination-links{margin-left:10px}body.give_forms_page_give-payment-history p.donor-search,body.give_forms_page_give-reports p.donor-search{margin-right:10px}body.give_forms_page_give-payment-history .tablenav-right #give-reports-view,body.give_forms_page_give-reports .tablenav-right #give-reports-view{margin-top:0}body.give_forms_page_give-payment-history .tablenav-right .actions,body.give_forms_page_give-payment-history p.search-box,body.give_forms_page_give-reports .tablenav-right .actions,body.give_forms_page_give-reports p.search-box{float:left}body.give_forms_page_give-payment-history .reports-table-nav.tablenav.top,body.give_forms_page_give-reports .reports-table-nav.tablenav.top{width:100%;float:none;margin:0 0 10px}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top,body.give_forms_page_give-reports .reports-forms-details-wrap.top{float:right;overflow:hidden}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top #give-reports-filter,body.give_forms_page_give-reports .reports-forms-details-wrap.top #give-reports-filter{float:left}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top>.actions,body.give_forms_page_give-reports .reports-forms-details-wrap.top>.actions{padding-right:0}body.give_forms_page_give-payment-history .tablenav.bottom,body.give_forms_page_give-reports .tablenav.bottom{margin-top:10px}body.give_forms_page_give-payment-history h2.reports-earnings-title,body.give_forms_page_give-reports h2.reports-earnings-title{margin:7px 0 0}body.give_forms_page_give-payment-history .reports-views-wrap,body.give_forms_page_give-reports .reports-views-wrap{padding:3px 0 0}body.give_forms_page_give-payment-history .wrap.give-reports-donors-wrap,body.give_forms_page_give-reports .wrap.give-reports-donors-wrap{margin-right:0;margin-bottom:10px}body.give_forms_page_give-payment-history .widefat tbody td,body.give_forms_page_give-payment-history .widefat tbody th,body.give_forms_page_give-reports .widefat tbody td,body.give_forms_page_give-reports .widefat tbody th{padding-top:12px;padding-bottom:12px}body.give_forms_page_give-reports table.export-options-table tbody td{padding:20px 12px;vertical-align:top}#test-payment-label,.give-mobile-link,table.give-table td{vertical-align:middle}body.give_forms_page_give-reports table.export-options-table .give-export-form{position:relative}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap{background-color:transparent;padding:12px 12px 4px;margin:2px 0 -16px -11px;overflow:auto}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap .spinner{margin:-2px -12px 8px 0}body.give_forms_page_give-reports table.export-options-table span#give-end-wrap input,body.give_forms_page_give-reports table.export-options-table span#give-start-wrap input{width:100px}#export-donor-options-wrap p{padding:20px 0 0;margin:0;font-weight:700}#export-donor-options-wrap ul{max-width:900px;overflow:hidden}#export-donor-options-wrap ul li{margin:0;padding:0 5px 5px 0;box-sizing:border-box;float:left;width:33%}#give-tools-recount-form .notice-wrap{position:relative;min-height:25px;margin:10px -12px -12px;background:#EFEFEF;padding:10px 12px 12px;border-top:1px solid #E5E5E5}#give-tools-recount-form .notice-wrap .give-progress{position:absolute;top:15px}#give-tools-recount-form .notice-wrap .spinner{position:absolute;right:14px;top:13px;margin:0}#give-tools-recount-form .notice-wrap #give-batch-success{margin-bottom:6px}.recount-stats-controls form{display:inline}.give-recount-stats-descriptions{margin:8px 0 0;display:block}.give-recount-stats-descriptions span{line-height:24px;font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0;display:none}.social-items-wrap,.social-items-wrap>div,.welcome-h1{display:inline-block}.gateways-report-tablenav .actions.bulkactions{padding-right:0}table.give-table td.row-title h3{margin:0 0 .4em;font-size:1.2em}table.give-table td.row-title p{font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0}#give-graphs-filter>.tablenav{height:auto}#give-logs-filter .search-box{float:right}#give-logs-filter .tablenav.top{float:left;clear:none;margin-top:0}.welcome-h1{margin-right:15px!important}.about-wrap h3{margin:1.5em 0 .6em}.about-wrap img{border:none}.give-badge{padding-top:150px;height:52px;width:185px;color:#FFF;font-weight:700;font-size:14px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.8);margin:0 -5px;position:absolute;top:0;right:0}.introduction{padding:0 0 20px;margin:0 0 20px}.feature-section{margin-top:40px}.feature-section span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.feature-section .feature-section-item{width:48%;float:left}.feature-section div.last-feature{margin-right:0;margin-left:4%}[class*=dashboard_page_give-] .about-text,[class^=dashboard_page_give-] .about-text{min-height:0}.social-items-wrap .twitter-item-wrap{margin:0 20px 10px 0}.wp-person img{border-radius:50%}.wp-person a.web{margin:17px 0 0;font-weight:700;font-style:italic}.newsletter-intro{font-size:13px;font-style:italic;color:#777}.give-newsletter-form-wrap{margin:10px 0 20px -5px;max-width:700px}.give-newsletter-form-wrap td{padding:3px}.give-newsletter-form-wrap div.give-newsletter-confirmation{background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 10px 4px 5px;padding:1px 12px;border-left:4px solid #7ad03a;display:none}.give-newsletter-form-wrap div.give-newsletter-confirmation>p{margin:.5em 0;padding:2px}#give_donor_export_form{margin:0 0 5px}.column-status .give-donation-status,.column-status .give-test-mode-transactions-label{display:inline-block}.column-status .give-test-mode-transactions-label{margin:0 5px;vertical-align:middle}.give-settings-page .give-settings-heading-sep{font-size:14px;line-height:32px;width:15px}.give-settings-page .nav-tab-wrapper{margin-bottom:5px;overflow:visible}.give-settings-page .cmb2-wrap .cmb-type-checkbox input[type=checkbox]{display:block;margin-bottom:5px}.give-settings-page div.give-submit-wrap{margin:20px 0}.give-settings-page .give_forms_page_give-payment-history .postbox .hndle{cursor:default}.give-settings-page .give-input-field{width:25em}.give-settings-page table table input[type=text]{width:15em}.give-setting-tab-header{clear:both;overflow:hidden;margin:30px 0}.give-setting-tab-header h2{margin-top:8px}.give-radio-inline ul{margin-top:0}.give-radio-inline li{display:inline-block;margin:0 0 0 15px}.give-radio-inline li:first-child{margin-left:0}.give-tools-setting-page .bulkactions{overflow:visible}.form-table td.give-radio-inline fieldset li>label{margin:5px 0 0!important}.cmb2-metabox-description,p.give-field-description{color:#aaa;font-style:italic;font-size:13px!important}.cmb-type-give-title label,.give-setting-tab-header h2{float:left;display:inline-block;width:220px;font-style:italic;color:#AAA;margin:0;font-size:14px}.postbox-container #_give_donation_levels_repeat>.cmb-repeatable-grouping:not(:last-of-type){border-bottom:1px solid #e9e9e9;border-top:none}.cmb-type-enabled-gateways .cmb-td>p:first-of-type{display:none}.cmb-type-checkbox .cmb-td{width:80%}.cmb-type-checkbox .cmb-td label{font-size:13px}.give_settings .cmb2-wrap .cmb-row{display:table-row}.give_settings .cmb2-wrap .cmb-row>.cmb-td,.give_settings .cmb2-wrap .cmb-row>.cmb-th{display:table-cell;float:none}.cmb2-id-give-title label{font-style:italic;color:#AAA;cursor:default}.cmb2-id-give-title>div.cmb-th{padding-bottom:10px}.cmb2-id-give-title>div.cmb-td{padding-bottom:5px}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle{padding:3px 4px 0 0;font-size:15px;font-weight:400;color:#bdbdbd;cursor:move}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle:hover{color:#333}.give-email-tags-wrap{margin:5px 0 0}.give-email-tags-wrap code{font-style:normal;padding:1px 2px;font-size:12px}.give-email-tags-wrap span{display:block;color:#AAA;font-style:italic;margin:0 0 2px;font-size:13px}.give-email-tags-wrap .give_price_tag{display:none}#system-info-textarea{width:800px;height:600px;font-family:Menlo,Monaco,monospace;background:#FFF;white-space:pre;overflow:auto;display:block;direction:ltr}#give-download-sysinfo{margin:0}#api .tablenav .actions{overflow:visible}a.give-delete{color:#a00}.give-settings-wrap-licenses .give-license-deactivate{margin:1px 0 0 10px;height:30px}.give-settings-wrap-licenses .give-license-field{background:url(../images/close.png) 98.5% center no-repeat #FFF;background-size:18px}.give-settings-wrap-licenses .give-license-active,.give-settings-wrap-licenses .give-license-active:focus{background-image:url(../images/tick.png);background-color:#FFF;background-repeat:no-repeat;background-position:98.5% center;outline:0;background-size:16px;width:100%}.give-settings-page .give-settings-wrap-licenses{display:block;position:relative;float:left;width:30.5%;min-height:180px;margin:20px 1% 20px 0}.give-settings-page .give-license-key label{margin:0 0 0 10px;padding:10px 0;display:block;font-size:14px;font-weight:600;cursor:default}.give-settings-page .give-license-block{margin:0 10px}.give-settings-page input[type=text].give-license-field,.give-settings-page input[type=password].give-license-field{width:100%}.give-settings-page .give-license-block input[type=submit]{position:absolute;top:3px;right:10px;height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.give-settings-page .give-license-status-notice{background:#fff;border-left:4px solid #fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:1px 12px}.give-settings-page .give-license-status-notice p{padding:10px 0;margin:0}.give-settings-page .give-license-status-notice a{color:#444;cursor:pointer}.give-settings-page .give-license-status-notice a:hover{text-decoration:none}.give-settings-page .give-license-status-notice.give-license-expires-soon{border-color:#00a0d2}.give-settings-page .give-license-status-notice.give-inactive,.give-settings-page .give-license-status-notice.give-license-expired{border-color:#e24e4e}.give-settings-page .give-license-status-notice.give-license-error,.give-settings-page .give-license-status-notice.give-license-invalid,.give-settings-page .give-license-status-notice.give-license-item_name_mismatch,.give-settings-page .give-license-status-notice.give-license-missing,.give-settings-page .give-license-status-notice.give-license-no_activations_left,.give-settings-page .give-license-status-notice.give-license-site_inactive{border-color:orange}.give-settings-page .give-license-status-notice.give-license-expiration-date,.give-settings-page .give-license-status-notice.give-license-lifetime-notice{border-color:#46b450}.give-settings-page .give-license-status-notice.give-license-expired a:hover,.give-settings-page .give-license-status-notice.give-license-expires-soon a:hover{text-decoration:none}@media screen and (max-width:1100px){.give-settings-page .give-settings-wrap-licenses{width:45%;min-height:150px}}.give-table thead th{padding:8px 10px!important}.give_settings .cmb-td hr+hr{display:none}.post-type-give_forms .mce-container iframe,.post-type-give_forms .wp-editor-area{min-height:400px}.give-field-description{color:#aaa;font-style:italic;margin:0;padding-top:.5em}h2.give-nav-tab-wrapper{overflow:hidden;height:35px}@media screen and (max-width:600px){.give-settings-page .give-settings-wrap-licenses{width:100%;max-width:320px}.give-nav-tab-wrapper{position:relative;padding-top:0!important}.give-nav-tab-wrapper>a{width:100%;box-sizing:border-box;margin:0;background-color:#fff;border:1px solid #ccc}.give-nav-tab-wrapper>a:hover{border-bottom:1px solid #ccc}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper{position:absolute;top:0;right:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav{height:28px;width:30px;border-radius:0;margin:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav>span.dashicons{margin:6px auto 0;display:block}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{top:35px;right:0;left:auto}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{background:#fff}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#e5e5e5}.give-mobile-hidden{display:none}}.give-sub-nav-tab-wrapper{position:relative;z-index:9999;float:left;display:none}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{border:1px solid #ccc;border-bottom:0;position:absolute;top:35px;left:0}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{float:left;background:#e5e5e5;padding:6px 10px;clear:both;text-decoration:none;border-bottom:1px solid #ccc;min-width:170px;color:#555;font-size:14px}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#fff}#give-show-sub-nav{text-decoration:none;padding:3px 4px;border-bottom:1px solid #ccc;line-height:0;background:#fff;border-radius:4px;margin-top:5px}#give-show-sub-nav>span.dashicons{font-size:16px;height:16px;width:16px}#give-show-sub-nav:active,#give-show-sub-nav:hover{outline:0;box-shadow:inset 0 0 4px #ddd}.give-image-thumb{position:relative;margin-top:14px}.give-image-thumb span.give-delete-image-thumb{position:absolute;background:red;color:#fff;border-radius:30px;left:-10px;top:-10px;cursor:pointer}.give-image-thumb img{max-width:250px;border:4px solid #fff}.give-filters,.give-submit-wrap{border:1px solid #dfdfdf;clear:both}.give-filters{background:#f5f5f5;padding:12px 12px 0}.give-filters .give-donation-forms-filter .chosen-single{height:28px;line-height:28px}.give-filters .chosen-container-single .chosen-single div b{background-position:0 4px}.give-filters .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 6px}.give-filters #give-payment-form-filter,.give-filters #give_donation_forms_filter{display:inline-block;width:300px}@media screen and (max-width:782px){.give-filters #give-payment-form-filter,.give-filters #give_donation_forms_filter{width:100%}}.give-filters #give_donation_forms_filter{width:255px}.give-filter input[type=text],.give-filter select{width:100%}@media screen and (max-width:782px){.give-filters #give_donation_forms_filter{width:100%;max-width:100%}}.give-filters:after{display:table;clear:both}.give-filter{display:block;margin-bottom:12px;width:100%}.give-filter:after{display:table;clear:both}.give-filter label{display:block;margin-right:4px}.give-filter input{margin:0}.give-filter input[type=text],.give-filter input[type=search]{height:28px}.give-filter .button{height:28px;line-height:26px;margin:0;padding:0 10px 1px}@media screen and (min-width:783px){.give-filter{float:left;margin-right:18px;width:auto}.give-filter label{display:inline-block}.give-filter input[type=text]{display:inline-block;width:144px}}.give-filter-search input[type=search]{display:block;float:left;width:68%}.give-filter-search input[type=submit]{display:block;float:right;width:30%}@media screen and (min-width:783px){.give-filter-search input[type=search]{display:inline-block;margin-right:4px;width:144px}.give-filter-search input[type=submit]{display:inline-block;width:auto}}@media screen and (min-width:600px){.give-filter-half{float:left;width:49%}.give-filter-half:last-child{float:right}}@media screen and (min-width:783px){.give-filter-half{width:auto}.give-filter-half:last-child{float:left}.give-filter-half input[type=text]{width:96px}}.give-clear-filters-button{margin-left:8px}.give-submit-wrap{background:#f5f5f5;margin:8px 0;padding:12px;font-size:13px;line-height:2.1em}#give-payment-filters ul.subsubsub{margin-bottom:8px}#give-payments-advanced-filter ul.subsubsub{margin-bottom:12px}#give-payments-filter .tablenav.top{float:none}#give-payments-filter .tablenav.top .bulkactions{margin-top:1px;padding-top:0}#give-payments-filter .give-email-column-value{font-size:14px;font-weight:700}#give-payments-filter #the-list .check-column input{margin-top:1px}#give-payments-filter .column-details{width:50px}#give-payments-filter .column-amount{width:120px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.forms th#date{width:140px}.give-mobile-link{line-height:32px}.give-mobile-link img{max-width:80%;height:auto;float:left}.give-donation-status>span{display:inline-block;width:12px;height:12px;position:relative;top:1px;margin:0;padding:0;border-radius:50%;background:#888;line-height:16px}#give-payments-filter .give-payment-id,#test-payment-label{padding:.2em .4em .3em;font-size:11px;text-align:center;border-radius:.25em;white-space:nowrap;color:#fff}.give-donation-status.status-pending>span{background-color:#ffba00}.give-donation-status.status-complete>span,.give-donation-status.status-publish>span{background-color:#7ad03a}.give-donation-status.status-refunded>span{background-color:#777}.give-donation-status.status-failed>span{background-color:#a00}.give-donation-status.status-abandoned>span{background-color:#333}.give-donation-status.status-revoked>span{background-color:#d9534f}.give-donation-status.status-give_subscription>span,.give-donation-status.status-renewal>span,.give-donation-status.status-subscription>span{background-color:#5bc0de}#test-payment-label{line-height:1;background-color:#ffba00;margin:0 15px}#test-payment-label:hover{color:#fff;text-decoration:none}#give-payments-filter .give-payment-id{line-height:1;vertical-align:baseline;font-weight:400}.give-admin-box .label,.give-admin-box-inside .strong{font-weight:600}#give-payments-filter .give-payment-id:hover{color:#fff;text-decoration:none}#give-payments-filter .column-details{padding-right:30px}#give-payments-filter .give-donation-status{display:inline-block}#give-order-update .give-donation-status{display:inline-block;float:none;margin:0 10px;position:relative;top:3px}.column-donation_form .donation-level-text-wrap{font-style:italic;display:block}@media handheld,only screen and (max-width:640px){.wp-list-table.forms th{width:auto!important}}.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-left:-8px;margin-top:-8px}.give-admin-box-inside{margin:0;padding:3px 10px;clear:both;border-bottom:1px solid #eee}.give-admin-box .right{float:right}#give-order-details .inside,#give-order-update .inside{margin:0;padding:0}#give-order-update input.give_datepicker{width:180px}#give-order-update input[type=number].give-payment-time-hour,#give-order-update input[type=number].give-payment-time-min{width:50px}.give-admin-box-inside:last-child{border-bottom:0}#give-edit-order-form .data-payment-key{word-break:break-all}.give-order-update-box #major-publishing-actions .button-secondary{margin-right:10px}#give-donation-overview th{text-align:left}#give-donation-overview .give-select-chosen{width:97%}#give-edit-order-form .row{margin-top:10px}#give-donation-overview ul,#give-donor-details .order-data-address input,#give-donor-details .order-data-column p.data input,#give-edit-order-form .column input,#give-order-address-country-wrap select{clear:both;display:block}.give-order-data input.small-text{margin:0}#give-order-update span.label{display:inline;width:50px}.give-order-update-box .button-primary{margin-right:0}#give-edit-order-form .column .description{padding-right:10px}#give-donation-overview .inside>ul>li,#give-donation-overview .row>ul>li,#give-edit-order-form .column{display:inline-block;position:relative;vertical-align:top}#give-donation-overview ul{font-size:0}#give-donation-overview ul li{font-size:13px}#give-donation-overview ul li.actions{text-align:right;min-width:200px}#give-donation-overview ul li.remove{text-align:right}#give-donation-overview ul .row{padding:12px;border-bottom:1px solid #eee}#give-order-data .data span{color:#666;font-weight:600}input.give-price-field{width:80px;padding:3px 5px}.give_forms_page_give-payment-history.js .postbox .hndle{cursor:default}#give-payment-notes textarea{min-height:150px}#give-payment-notes #give-add-payment-note{margin:6px 0 15px}#give-billing-details .column>div{margin:0 0 10px}#give-billing-details label{display:block;margin-bottom:5px}#give-billing-details .column-container{padding:5px 0 10px}#give-billing-details input[type=text]{width:98%}#give-billing-details .chosen-container{width:98%!important}@media screen and (min-width:1200px){#give-edit-order-form .column{width:33%}#give-order-address .column{width:49%}#give-donation-overview.columns-4 li.actions{width:25%;margin-top:0;margin-right:0}}@media screen and (max-width:1199px){#give-edit-order-form .column{width:49%}}@media screen and (max-width:782px){.order-data-column input[type=email]{padding:6px 10px}}#give-donation-overview .inside,#give-donor-details .inside{margin-top:0}.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables{padding-top:0}.give-select-chosen .spinner{position:absolute;right:5px;top:2px;z-index:999}.give-select-chosen-ajax .spinner{visibility:visible}.give-select-chosen-ajax .chosen-search input[type=text],.give-select-chosen-ajax.chosen-container-single .chosen-search input[type=text]{background-image:none!important}.give-dashboard-widget .give-dashboard-today{text-align:center}.give-dashboard-widget .give-dashboard-today .give-dashboard-date-today{margin:10px 0 0;padding:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-happy-day{padding:3px;margin:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-today-earnings{font-size:42px;color:#4ead61;font-weight:700;margin:15px 0 0;line-height:1}.give-dashboard-widget .give-dashboard-today .give-donations-today{font-size:18px;font-weight:700;margin:0 0 30px;padding:4px 0 1px}.give-dashboard-widget .give-dashboard-today .give-last-seven{font-size:14px;font-weight:700;padding:0;margin:0 0 30px}.give-dashboard-widget .give-table-stats{width:100%;text-align:center;margin:0;table-layout:fixed;border-top:1px solid #ececec;border-spacing:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total,.give-dashboard-widget .give-table-stats .give-dashboard-stat-total-label{padding:0;margin:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total{color:#4ead61;font-weight:700;font-size:16px}#give_dashboard_sales>.inside{padding:0}#give_dashboard_sales .give-table-stats td{padding:10px 0}#give_dashboard_sales .give-table-stats td:first-of-type{border-right:1px solid #ececec}#give_dashboard_sales .give-table-stats tr#give-table-stats-tr-1 td{border-bottom:1px solid #ececec}#dashboard_right_now .give-forms-count:before{font-family:give-icomoon;font-style:normal;font-weight:400;line-height:1;font-size:18px;width:18px;height:18px}.give_forms_page_give-donors .wrap>h2{margin-bottom:15px}.give_forms_page_give-donors .nav-tab-wrapper .dashicons{position:relative;top:2px;margin:0 3px 0 0}.give_forms_page_give-donors #give-donors-filter{position:relative}.give_forms_page_give-donors #give-donors-filter p.search-box{margin:0}.give_forms_page_give-donors #give-donors-search-filter{display:block;overflow:hidden}#give-donor-card-wrapper{margin-left:-1px;z-index:2;min-height:200px}#give-donor-card-wrapper input{font-weight:400}#give-donor-card-wrapper .donor-section{border-bottom:1px solid #eee;margin-bottom:10px}#give-donor-card-wrapper .donor-section table{margin-bottom:0}#give-donor-card-wrapper>div:first-child{padding-top:20px}#give-donor-card-wrapper>div:last-child{padding-bottom:20px;border:none}#give-donor-card-wrapper .avatar-wrap{padding:0 15px 15px 0;text-align:center;float:left}#give-donor-card-wrapper .avatar-wrap img{border-radius:3px}#give-donor-card-wrapper a.delete{text-decoration:none;color:red;margin-right:5px}#give-donor-card-wrapper .donor-bio-header .donor-since{margin:10px 0;font-size:16px}#give-donor-card-wrapper .donor-bio-header .donor-id{display:inline-block;font-size:24px;font-weight:600;margin-right:10px}#give-donor-card-wrapper .donor-bio-header .donor-name-wrap{display:inline-block}#give-donor-card-wrapper .donor-bio-header .donor-edit-link{margin-bottom:15px}.donor-main-wrapper{clear:both;margin:0 0 20px}@media (max-width:655px){.donor-main-wrapper{width:100%}}.donor-main-wrapper table{margin:0}.donor-main-wrapper input{width:200px}#donor-summary{padding:0 20px}#donor-summary:after{font-family:dashicons;content:"\f110";position:absolute;top:10px;right:10px;font-size:100px;color:#F0F0F0;z-index:0}.sc-wrap,button.sc-button:after{position:relative;display:inline-block}#give-donor-card-wrapper .donor-address-wrapper{width:202px}#give-donor-card-wrapper .donor-address-wrapper select,#give-donor-card-wrapper .give_user_search_results ul{width:200px}#give-donor-card-wrapper .donor-address-wrapper span[data-key=line2]{display:table;clear:both}#give-donor-card-wrapper .donor-info{min-height:185px}#give-donor-card-wrapper .info-wrapper{min-height:125px}.donor-info .donor-name{font-size:24px;font-weight:600}#disconnect-donor,#view-user-profile{font-size:12px;font-weight:400;text-decoration:none}#donor-edit-actions{text-align:center;margin-bottom:20px;line-height:28px}#donor-edit-actions .button-secondary{margin-right:10px}#give-donor-card-wrapper .edit-item{display:none}#give-donor-card-wrapper .give_user_search_results{left:1px;top:16px}#donor-stats-wrapper{margin:0 auto;text-align:center;padding:15px}#donor-stats-wrapper ul{margin:0;padding:0;overflow:hidden}#donor-stats-wrapper ul li{width:50%;float:left;line-height:22px;font-size:14px;margin:0}#donor-stats-wrapper a{text-decoration:none}.give-blank-slate__help a,.mce-sc-popup a{text-decoration:underline}#donor-stats-wrapper .dashicons{color:#888}#donor-tables-wrapper table{width:100%;text-align:center}#donor-tables-wrapper th{text-align:center}#donor-tables-wrapper .donations tr>td:first-child,#donor-tables-wrapper .donations tr>th:first-child,#donor-tables-wrapper .emails tr>td:first-child,#donor-tables-wrapper .emails tr>th:first-child{text-align:left}#donor-tables-wrapper .donations tr>td:only-child{text-align:center}#donor-notes-wrapper{min-height:50px}.donor-notes-header img,.donor-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.donor-note-input{width:100%;margin-bottom:5px}#give-donor-notes div:nth-of-type(even){background-color:#f9f9f9}#give-donor-notes .donor-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:0}#give-donor-notes .donor-note-wrapper .note-content-wrap{padding:10px 12px;line-height:20px;font-size:14px}#give-donor-notes .give-no-donor-notes{text-align:center;padding:20px}.donor-note-wrapper span{display:block}.delete-donor{text-align:center}@media screen and (max-width:782px){#wp-content-media-buttons a.give-thickbox{padding:6px 14px;line-height:normal;font-size:14px;height:auto}.wp-media-buttons span#give-media-button{margin-top:0!important;margin-left:2px!important}}.mce-primary.mce-give-primary button{padding-right:10px;padding-left:10px}.wp-core-ui .give-admin-button{padding-left:7px;padding-right:7px}.give-admin-button-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}.give-admin-button-icon:before{font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-admin-button-icon-update:before{content:"\f463"}.mce-primary.mce-sc-primary button{padding-right:10px;padding-left:10px}.mce-sc-popup p{margin-bottom:1em}.mce-sc-popup p.strong{font-weight:600}.mce-sc-popup p.no-margin{margin-bottom:0}.mce-sc-popup p.margin-top{margin-top:1em}.mce-sc-popup .mce-listbox button{text-overflow:ellipsis;overflow:hidden!important}@media screen and (max-width:782px){.wp-media-buttons button.sc-button span{width:18px!important}}.wp-media-buttons button.sc-button{outline:0;padding-left:5px;margin-right:0}.wp-media-buttons button.sc-button:active{margin-bottom:5px}button.sc-button:after{top:-1px;content:'';width:0;height:0;border-top:6px solid #777;border-right:4px solid transparent;border-left:4px solid transparent;margin:0 3px 0 6px}button.sc-button.active:after{top:-2px;border-top:0;border-bottom:6px solid #32373c}.sc-wrap{margin-right:5px}div.sc-menu{display:none;position:absolute;top:100%;left:0;min-width:100%;max-height:410px;font-size:14px;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#fff;border:1px solid rgba(0,0,0,.15);overflow:auto;overflow-x:hidden;padding:5px 0;margin:-2px 0 0;z-index:1002}div.sc-shortcode{display:block;white-space:nowrap;cursor:pointer;padding:6px 12px;margin-bottom:2px}div.sc-shortcode:hover{color:#fff}#mce-modal-block.mce-reset.mce-fade.mce-in{opacity:.7;filter:alpha(opacity=70)}.give-status-table{margin-bottom:1em}.give-status-table h2{font-size:14px;margin:0}.give-status-table tr:nth-child(2n) td,.give-status-table tr:nth-child(2n) th{background:#fcfcfc}.give-status-table th{font-weight:700;padding:9px}.give-status-table td:first-child{width:33%}.give-status-table td.help{width:1em}.give-status-table td{padding:9px;font-size:1.1em}.give-status-table td mark{background:0 0}.give-status-table td mark.yes{color:#7ad03a}.give-status-table td mark.no{color:#999}.give-status-table td mark.error{color:#a00}.give-status-table td ul{margin:0}.wrap div.give-debug-report-wrapper{margin-bottom:5px}.wrap div.give-debug-report-wrapper p{font-size:18px;margin:1em 0 .7em;padding:0}.wrap div.give-debug-report-wrapper .give-debug-report-actions{margin:0 0 1.7em}.wrap div.give-debug-report-wrapper .give-debug-report-actions .js-give-debug-report-button{margin-right:10px}.wrap div.give-debug-report-wrapper .give-debug-report-actions .dashicons{font-size:16px;position:relative;top:4px;left:-2px}.give-debug-report{display:none;margin:10px 0;padding:0;position:relative}.give-debug-report textarea{font-family:monospace;width:100%;margin:0;height:300px;padding:20px;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;resize:none;font-size:12px;line-height:20px;outline:0}.give-progress{height:15px;width:95%;border-radius:4px;overflow:hidden}.give-progress>div{height:100%;width:0}.admin-color-fresh .give-progress div,.give-progress div{background:#0073aa}.admin-color-light .give-progress div{background:#888}.admin-color-blue .give-progress div{background:#096484}.admin-color-coffee .give-progress div{background:#c7a589}.admin-color-ectoplasm .give-progress div{background:#a3b745}.admin-color-midnight .give-progress div{background:#e14d43}.admin-color-sunrise .give-progress div{background:#dd823b}#give-updates-h1{padding-top:0}.give-update-panel-content p{font-size:16px}#give-updates .dashicons-no-alt{color:red}#give-updates .dashicons-yes{color:green}#give-db-updates .spinner{margin-top:0}body.give_forms_page_give-updates .give-run-update-containt .give-run-update-button{margin-right:10px}.give-blank-slate{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:0 auto;padding:40px;text-align:center}.give-blank-slate :last-child{margin-bottom:0}.give-blank-slate__cta,.give-blank-slate__heading,.give-blank-slate__help,.give-blank-slate__message{margin:0 0 10px}.give-blank-slate__image{display:block;height:80px;margin:0 auto 10px;width:auto}.give-blank-slate__help{color:#666;font-style:italic}.give-blank-slate__help a{display:inline-block}.give-blank-slate a.give-blank-slate__cta{display:inline-block;font-size:1.2em;height:auto;margin:0 0 10px;padding:.75em 1.5em}.give-tools-setting-page-import h1.handle{padding:15px 0 0}.give-tools-setting-page-import .give-progress-steps{width:100%;padding:0 0 24px;margin-left:0;list-style:none;overflow:hidden;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}.give-tools-setting-page-import .give-progress-steps li{width:25%;float:left;padding:0 0 1.2em;margin:0;text-align:center;position:relative;border-bottom:4px solid #ccc;line-height:1.4em}.give-tools-setting-page-import .give-progress-steps li.active{border-color:#4ead61;color:#4ead61}.give-tools-setting-page-import .give-progress-steps li.active:before{border-color:#4ead61;color:#4ead61;background:#4ead61}.give-tools-setting-page-import .give-progress-steps li::before{content:'';border:4px solid #ccc;border-radius:100%;width:10px;height:10px;position:absolute;bottom:0;left:50%;margin-left:-6px;margin-bottom:-10px;background:#fff}.give-tools-setting-page-import .step-4 h2{text-align:center;font-size:20px!important}.give-tools-setting-page-import .step-4 p{text-align:center}.give-tools-setting-page-import .button-secondary.step-4,.give-tools-setting-page-import .give-image-thumb{display:none}.give-tools-setting-page-import h2#give-import-title{background:#f3f3f3;font-size:15px;font-weight:600;margin:-8px -22px 11px;padding:12px 22px}.give-import-core-settings .give-progress-steps li{width:33.33%}.give-import-core-settings .step-3 h2{text-align:center;font-size:20px!important}.give-import-core-settings .step-3 p{text-align:center}form.give-import-form table.widefat{border:none}.wrap .give-importer-h1{margin:0;padding:20px 0}
 
 
6
  * @subpackage: SCSS/Admin
7
  * @copyright: Copyright (c) 2016, WordImpress
8
  * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+ */.give-clearfix:after,.type-download .addon-content:after{clear:both}.give-clearfix:after,.give-clearfix:before{content:" ";display:table}#give-payments-filter .give-payment-id,.give-item-label-gray{background-color:#929292}.give-item-label-orange{background-color:#ffba00}.give-item-label{padding:.2em .4em .3em;font-size:11px;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.give-item-label:hover{color:#fff;text-decoration:none}/*! Hint.css - v2.5.0 - 2017-04-23
10
+ * http://kushagragour.in/lab/hint/
11
+ * Copyright (c) 2017 Kushagra Gour */[class*=hint--]{position:relative;display:inline-block}[class*=hint--]:after,[class*=hint--]:before{position:absolute;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);transform:translate3d(0,0,0);visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;-webkit-transition:.3s ease;-moz-transition:.3s ease;transition:.3s ease;-webkit-transition-delay:0s;-moz-transition-delay:0s;transition-delay:0s}[class*=hint--]:hover:after,[class*=hint--]:hover:before{visibility:visible;opacity:1;-webkit-transition-delay:.1s;-moz-transition-delay:.1s;transition-delay:.1s}[class*=hint--]:before{content:'';position:absolute;background:0 0;border:6px solid transparent;z-index:1000001}[class*=hint--]:after{background:#383838;color:#fff;padding:8px 10px;font-size:12px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;line-height:12px;white-space:nowrap;text-shadow:0 -1px 0 #000;box-shadow:4px 4px 8px rgba(0,0,0,.3)}[class*=hint--][aria-label]:after{content:attr(aria-label)}[class*=hint--][data-hint]:after{content:attr(data-hint)}[aria-label='']:after,[aria-label='']:before,[data-hint='']:after,[data-hint='']:before{display:none!important}.hint--top-left:before,.hint--top-right:before,.hint--top:before{border-top-color:#383838}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#383838}.hint--top:after,.hint--top:before{bottom:100%;left:50%}.hint--top:before{margin-bottom:-11px;left:calc(50% - 6px)}.hint--top:after{-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);transform:translateX(-50%)}.hint--top:hover:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--top:hover:after{-webkit-transform:translateX(-50%) translateY(-8px);-moz-transform:translateX(-50%) translateY(-8px);transform:translateX(-50%) translateY(-8px)}.hint--bottom:after,.hint--bottom:before{top:100%;left:50%}.hint--bottom:before{margin-top:-11px;left:calc(50% - 6px)}.hint--bottom:after{-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);transform:translateX(-50%)}.hint--bottom:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--bottom:hover:after{-webkit-transform:translateX(-50%) translateY(8px);-moz-transform:translateX(-50%) translateY(8px);transform:translateX(-50%) translateY(8px)}.hint--right:before{border-right-color:#383838;margin-left:-11px;margin-bottom:-6px}.hint--right:after{margin-bottom:-14px}.hint--right:after,.hint--right:before{left:100%;bottom:50%}.hint--right:hover:after,.hint--right:hover:before{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)}.hint--left:before{border-left-color:#383838;margin-right:-11px;margin-bottom:-6px}.hint--left:after{margin-bottom:-14px}.hint--left:after,.hint--left:before{right:100%;bottom:50%}.hint--left:hover:after,.hint--left:hover:before{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--top-left:after,.hint--top-left:before{bottom:100%;left:50%}.hint--top-left:before{margin-bottom:-11px;left:calc(50% - 6px)}.hint--top-left:after{-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);transform:translateX(-100%);margin-left:12px}.hint--top-left:hover:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--top-left:hover:after{-webkit-transform:translateX(-100%) translateY(-8px);-moz-transform:translateX(-100%) translateY(-8px);transform:translateX(-100%) translateY(-8px)}.hint--top-right:after,.hint--top-right:before{bottom:100%;left:50%}.hint--top-right:before{margin-bottom:-11px;left:calc(50% - 6px)}.hint--top-right:after{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0);margin-left:-12px}.hint--top-right:hover:after,.hint--top-right:hover:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--bottom-left:after,.hint--bottom-left:before{top:100%;left:50%}.hint--bottom-left:before{margin-top:-11px;left:calc(50% - 6px)}.hint--bottom-left:after{-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);transform:translateX(-100%);margin-left:12px}.hint--bottom-left:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--bottom-left:hover:after{-webkit-transform:translateX(-100%) translateY(8px);-moz-transform:translateX(-100%) translateY(8px);transform:translateX(-100%) translateY(8px)}.hint--bottom-right:after,.hint--bottom-right:before{top:100%;left:50%}.hint--bottom-right:before{margin-top:-11px;left:calc(50% - 6px)}.hint--bottom-right:after{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0);margin-left:-12px}.hint--bottom-right:hover:after,.hint--bottom-right:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--large:after,.hint--medium:after,.hint--small:after{white-space:normal;line-height:1.4em;word-wrap:break-word}.dashicons-give:before,[class*=" give-icon-"],[class^=give-icon-]{line-height:1;font-family:give-icomoon;font-style:normal;font-weight:400}.hint--small:after{width:80px}.hint--medium:after{width:150px}.hint--large:after{width:300px}.hint--error:after{background-color:#b34e4d;text-shadow:0 -1px 0 #592726}.hint--error.hint--top-left:before,.hint--error.hint--top-right:before,.hint--error.hint--top:before{border-top-color:#b34e4d}.hint--error.hint--bottom-left:before,.hint--error.hint--bottom-right:before,.hint--error.hint--bottom:before{border-bottom-color:#b34e4d}.hint--error.hint--left:before{border-left-color:#b34e4d}.hint--error.hint--right:before{border-right-color:#b34e4d}.hint--warning:after{background-color:#c09854;text-shadow:0 -1px 0 #6c5328}.hint--warning.hint--top-left:before,.hint--warning.hint--top-right:before,.hint--warning.hint--top:before{border-top-color:#c09854}.hint--warning.hint--bottom-left:before,.hint--warning.hint--bottom-right:before,.hint--warning.hint--bottom:before{border-bottom-color:#c09854}.hint--warning.hint--left:before{border-left-color:#c09854}.hint--warning.hint--right:before{border-right-color:#c09854}.hint--info:after{background-color:#3986ac;text-shadow:0 -1px 0 #1a3c4d}.hint--info.hint--top-left:before,.hint--info.hint--top-right:before,.hint--info.hint--top:before{border-top-color:#3986ac}.hint--info.hint--bottom-left:before,.hint--info.hint--bottom-right:before,.hint--info.hint--bottom:before{border-bottom-color:#3986ac}.hint--info.hint--left:before{border-left-color:#3986ac}.hint--info.hint--right:before{border-right-color:#3986ac}.hint--success:after{background-color:#458746;text-shadow:0 -1px 0 #1a321a}.hint--success.hint--top-left:before,.hint--success.hint--top-right:before,.hint--success.hint--top:before{border-top-color:#458746}.hint--success.hint--bottom-left:before,.hint--success.hint--bottom-right:before,.hint--success.hint--bottom:before{border-bottom-color:#458746}.hint--success.hint--left:before{border-left-color:#458746}.hint--success.hint--right:before{border-right-color:#458746}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--top:after{-webkit-transform:translateX(-50%) translateY(-8px);-moz-transform:translateX(-50%) translateY(-8px);transform:translateX(-50%) translateY(-8px)}.hint--always.hint--top-left:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--top-left:after{-webkit-transform:translateX(-100%) translateY(-8px);-moz-transform:translateX(-100%) translateY(-8px);transform:translateX(-100%) translateY(-8px)}.hint--always.hint--top-right:after,.hint--always.hint--top-right:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--bottom:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--bottom:after{-webkit-transform:translateX(-50%) translateY(8px);-moz-transform:translateX(-50%) translateY(8px);transform:translateX(-50%) translateY(8px)}.hint--always.hint--bottom-left:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--bottom-left:after{-webkit-transform:translateX(-100%) translateY(8px);-moz-transform:translateX(-100%) translateY(8px);transform:translateX(-100%) translateY(8px)}.hint--always.hint--bottom-right:after,.hint--always.hint--bottom-right:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--left:after,.hint--always.hint--left:before{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--always.hint--right:after,.hint--always.hint--right:before{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)}.hint--rounded:after{border-radius:4px}.hint--no-animate:after,.hint--no-animate:before{-webkit-transition-duration:0s;-moz-transition-duration:0s;transition-duration:0s}.hint--bounce:after,.hint--bounce:before{-webkit-transition:opacity .3s ease,visibility .3s ease,-webkit-transform .3s cubic-bezier(.71,1.7,.77,1.24);-moz-transition:opacity .3s ease,visibility .3s ease,-moz-transform .3s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .3s ease,visibility .3s ease,transform .3s cubic-bezier(.71,1.7,.77,1.24)}@font-face{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");font-weight:400;font-style:normal}[class*=" give-icon-"],[class^=give-icon-]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-icon-lamp:before{content:"\e603"}.give-icon-heart:before{content:"\e604"}.give-icon-question:before{content:"\e602"}.give-icon-info:before{content:"\e601"}.give-icon-new-tab:before{content:"\ea7e"}.give-icon-alert:before{content:"\f02d"}.give-icon-help:before{content:"\e606"}.give-icon-spinner:before{content:"\e605"}.give-icon-spinner2:before{content:"\e607"}.give-icon-plus:before{content:"\e040"}.give-icon-minus:before{content:"\e041"}.give-icon-locked:before{content:"\e600"}#dashboard_right_now .give-forms-count:before,.dashicons-give:before{font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;content:"\e800";speak:none;-moz-osx-font-smoothing:grayscale}.fa-spin{-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@font-face{font-family:give-icomoon;font-weight:400;font-style:normal}.give-metabox-tabs li .give-icon:before{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:12px;vertical-align:top;line-height:20px;margin:0 5px 0 0}.give-metabox-tabs li .give-icon-default:before{content:"\e903"}.give-metabox-tabs li .give-icon-heart:before{content:"\e604"}.give-metabox-tabs li .give-icon-target:before{content:"\e901"}.give-metabox-tabs li .give-icon-display:before{content:"\e90c"}.give-metabox-tabs li .give-icon-edit:before{content:"\e902"}.give-metabox-tabs li .give-icon-checklist:before{position:relative;top:1px;content:"\e900"}.give-metabox-tabs li .give-icon-purse:before{content:"\e8df"}.give-metabox-tabs li .dashicons{font-size:14px;width:14px;line-height:20px}.give-grid-row{position:relative;width:100%}.give-grid-row [class^=give-grid-col]{float:left;margin:.5rem 1%;min-height:.125rem}.give-grid-row::after{content:"";display:table;clear:both}.give-grid-col-1{width:6.33333%}.give-grid-col-2{width:14.66667%}.give-grid-col-3{width:23%}.give-grid-col-4{width:31.33333%}.give-grid-col-5{width:39.66667%}.give-grid-col-6{width:48%}.give-grid-col-7{width:56.33333%}.give-grid-col-8{width:64.66667%}.give-grid-col-9{width:73%}.give-grid-col-10{width:81.33333%}.give-grid-col-11{width:89.66667%}.give-grid-col-12{width:98%}@media only screen and (max-width:33.75em){.give-grid-row [class^=give-grid-col]{width:98%}}#_give_donation_levels_repeat .cmb-group-title,#_give_donation_levels_repeat .cmb-row>.cmb-remove-group-row,#_give_donation_levels_repeat .cmb-row>.handlediv,.cmb-type-levels-id,.cmb2-id--give-custom-amount-minimum,.cmb2-id--give-custom-amount-text,.cmb2-id--give-display-style,.cmb2-id--give-form-content,.cmb2-id--give-levels-header,.cmb2-id--give-levels-header+.cmb-repeat-group-wrap,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-reveal-label,.cmb2-id--give-set-price,.give-hidden,.post-type-give_forms .tablenav #post-query-submit{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row .cmb2-radio-list label{font-size:12px}div.cmb-type-levels-repeater-header+div.cmb-repeat-group-wrap{padding:0!important;margin:0!important;min-width:100%;max-width:0}.cmb2-id--give-levels-header{padding:10px 12px 0!important;margin:0!important;background:#F7F7F7;border-bottom:none!important}.cmb2-id--give-levels-header .table-container{display:table;width:100%;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-left:1px solid #e9e9e9}.cmb2-id--give-levels-header .table-container>.table-row{display:table-row;background:#FCFCFC}.cmb2-id--give-levels-header .table-container>.table-row>.table-cell{display:table-cell;vertical-align:middle;padding:10px 15px;border-right:1px solid #e9e9e9}#_give_donation_levels_repeat .cmbhandle,.cmb2-id--give-levels-header .table-container>.table-row>.table-cell.col-id{display:none}#_give_donation_levels_repeat{background:#F7F7F7;padding:0 1px 20px 12px;box-sizing:border-box}#_give_donation_levels_repeat .cmb-row,#_give_donation_levels_repeat .inside{margin:0}#_give_donation_levels_repeat .cmb-remove-field-row{margin:3px 0 0}#_give_donation_levels_repeat .cmb-remove-field-row .button{height:25px;padding:0 3px}#_give_donation_levels_repeat .cmb-remove-field-row span.dashicons-no{line-height:1.15em}#_give_donation_levels_repeat .cmb-add-row{margin:12px 0 0}.give-time-field{width:65px}.give-money-field{width:75px;margin-right:0;margin-left:0}.give-money-symbol{border:1px solid #DDD;background:#FCFCFC;margin:0;font-size:14px;padding:5px 8px}.give-money-symbol-before{border-right:0;margin-right:-4px}.give-money-symbol-after{margin-left:-5px}.give_options_panel input[type=text],.give_options_panel input[type=email]{padding:5px;width:100%}input.give-text-small,input.give-text_small{width:100px!important}input.give-text-medium,input.give-text_medium{width:200px!important}.give-underline{text-decoration:underline}.postbox-container .cmb-row{margin:0}.postbox-container .cmb-row .cmb-th label{padding-left:8px}#give-bulk-donors div[id^=give-donor-]{display:block;overflow:hidden}@media only screen and (min-width:851px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{float:left;border-bottom:none;padding-right:10px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-th{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-td{float:left;width:100%}.cmb-type-give-default-radio-inline .cmb-td{margin-top:5px}}@media only screen and (min-width:851px) and (max-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{width:100%;padding-top:0}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-type-text-money{width:105px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list input.cmb2-text-money{width:65px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .give-multilevel-text-field{width:160px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .cmb-type-radio-inline{margin-left:20px}.col-amount{width:70px}.col-text{width:140px}.col-sort{display:none!important}.give-money-field{width:55px}}@media only screen and (min-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{float:right}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{padding-right:20px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row.cmb-row{padding-right:0}.col-amount{width:93px}.col-text{width:195px}.col-sort{width:100px}.give-multilevel-text-field{width:205px}}@media only screen and (max-width:850px){div.cmb-type-levels-repeater-header{display:none!important}}.shortcode-wrap{margin:1px 14px 12px 11px}.shortcode-wrap label{margin:0 0 3px;display:block;cursor:default}.shortcode-wrap .shortcode-input{margin:0;width:100%}.cmb2-id--give-content-option,.cmb2-id--give-customize-offline-donations,.cmb2-id--give-goal-option,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-terms-option{border-bottom:none!important;margin:0!important}.cmb2-id--give-agree-label,.cmb2-id--give-form-content,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-set-goal{border-top:1px solid #e9e9e9!important}.cmb2-id--give-agree-label,.cmb2-id--give-agree-text{display:none}input.shortcode-input{width:100%}.price .give_price_range_high,.price .give_price_range_low,.price .give_price_range_sep{display:inline-block}#side-sortables .cmb-th label:after{display:none}#side-sortables .cmb2-id--give-show-register-form{padding:10px 0 0!important}#side-sortables .cmb2-wrap>.cmb-field-list>.cmb-row{padding-top:10px}#side-sortables .cmb-row .cmb2-metabox-description{padding-bottom:0}.cmb2-metabox-description{line-height:1.5;display:block}.give-tooltip{margin:0 3px;padding:0;font-size:14px;-moz-transition:.2s all linear;-o-transition:.2s all linear;transition:.2s all linear;color:rgba(51,51,51,.5);position:relative;top:1px}.give-tooltip:hover{color:#333}#give-metabox-form-data .inside{margin:0;padding:0}#give-metabox-form-data .give-metabox-panel-wrap{background:#fff;overflow:hidden}#give-metabox-form-data .give_options_panel{display:none;padding-left:170px}#give-metabox-form-data .give_options_panel.active,.no-js #give-metabox-form-data .give_options_panel{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:1em 20px 1em 162px;margin:0;border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-field-wrap>label,#give-metabox-form-data .give_options_panel .give-field-wrap>span.give-field-label{float:left;width:135px;padding:0;margin:2px 0 0 -150px;line-height:18px;font-size:12px;font-weight:400}#give-metabox-form-data .give_options_panel .give-field-wrap .give-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-top:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-field-wrap ul{margin:0}#give-metabox-form-data .give_options_panel .give-field-wrap .mce-container iframe,#give-metabox-form-data .give_options_panel .give-field-wrap textarea{min-height:250px!important}#give-metabox-form-data .give_options_panel .give-field-wrap .wp-editor-wrap{display:inline-block;width:100%}#give-metabox-form-data .give_options_panel textarea.give-field{width:100%}#give-metabox-form-data .give_options_panel .give-field-wrap:hover .give-field-row-actions{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap:last-child{border-bottom:0}#give-metabox-form-data .give_options_panel .give-inline-radio-fields li{display:inline-block;margin-right:15px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section{padding:10px;background:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeatable-fields-section-wrapper{width:100%;background-color:#fff;border-collapse:collapse}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row{border-bottom:15px solid #f5f5f5;background-color:#fff}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-template{display:none}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row:last-child{border-bottom:10px solid #f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-column{padding:0}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove{float:right;width:22px;height:36px;padding:0;display:block;text-align:center;line-height:34px;font-size:21px;font-weight:300;cursor:pointer}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove:hover{background-color:red;color:#fff;width:22px;height:22px;border-radius:30px;margin-top:8px;line-height:19px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head{border-bottom:1px solid #eee;cursor:move}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head h2{text-align:left!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.closed .toggle-indicator:before{content:"\f140"}.give-filter:after,.give-filters:after{content:""}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row .give-move .toggle-indicator:before{margin-left:7px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row-wrap{background-color:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row{margin:5px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-field-wrap:last-child{border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-ui-placeholder-state-highlight{background-color:#68bb6c}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-name{border:0!important;padding:0!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-bottom:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .ui-sortable-helper{display:table!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.ui-sortable-helper{border-bottom:0}#_give_donation_levels_field .give-row:nth-of-type(2) .give-remove{display:none!important}#give-metabox-form-data .give-metabox-tabs{margin:0;max-width:170px;float:left;line-height:1em;padding:0 0 10px;position:relative;background-color:#fafafa;border-right:1px solid #eee;box-sizing:border-box}#give-metabox-form-data .give-metabox-tabs:after{content:"";display:block;width:100%;height:9999em;position:absolute;bottom:-9999em;left:0;background-color:#fafafa;border-right:1px solid #eee}#give-metabox-form-data .give-metabox-tabs li{margin:0;padding:0;display:block;position:relative}#give-metabox-form-data .give-metabox-tabs li a{margin:0;padding:10px;display:block;box-shadow:none;text-decoration:none;line-height:20px!important;border-bottom:1px solid #eee;overflow:hidden}#give-metabox-form-data .give-metabox-tabs li a span.give-label{width:122px;display:inline-block}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li{background-color:#f1f1f1}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li a{border-bottom-color:#e5e5e5}#give-export-payments div.chosen-container ul.chosen-choices,#give-export-payments select,.type-download{border:1px solid #ddd}#give-metabox-form-data .give-metabox-tabs li.active>a{color:#555;position:relative;background-color:#eee}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields.active>a{background-color:#ddd}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields:not(.active):hover ul.give-metabox-sub-tabs{display:block;position:absolute;bottom:0;left:166px;width:170px;max-height:250px}@media only screen and (min-width:851px) and (max-width:1025px),(max-width:550px){#give-metabox-form-data ul.give-metabox-tabs{min-width:40px}#give-metabox-form-data ul.give-metabox-tabs li>a{text-align:center}#give-metabox-form-data ul.give-metabox-tabs li>a:before{margin-right:0;font-size:15px}#give-metabox-form-data ul.give-metabox-tabs li>a span.give-label{display:none}#give-metabox-form-data ul.give-metabox-tabs li>a span.give-icon:before{margin:0}#give-metabox-form-data .give_options_panel{padding-left:40px}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:10px}#give-metabox-form-data .give_options_panel .give-field-wrap label,#give-metabox-form-data .give_options_panel .give-field-wrap span.give-field-label{display:block;float:none;margin:0 0 10px;font-size:14px;width:100%}}#give-export-payments .give_forms_categories,#give-export-payments .give_forms_tags{min-width:250px;margin:0 0 10px;display:block}#give-export-payments .give_forms_categories input,#give-export-payments .give_forms_tags input{color:#999}#give-export-payments div.chosen-container:first-of-type{margin-top:10px}#give-export-payments div.chosen-container ul.chosen-choices input.chosen-search-input{border:1px solid #ddd;height:20px}#give-export-payments select{vertical-align:inherit;margin:0;height:26px;line-height:26px}.give-docs-link{text-align:right;margin-right:15px}.give-docs-link a{color:#999;text-decoration:none;font-style:italic}.give-docs-link a:hover{color:#0073aa}.give-docs-link a span{font-style:normal}.type-download{float:left;margin:0 1em 1em 0!important;padding:0;vertical-align:top;width:280px;text-decoration:none;color:inherit;display:block;min-height:365px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;position:relative}.type-download:hover{border:1px solid #d1d1d1}.type-download>.featured-img img{border-bottom:1px solid #ddd}.type-download .addon-content{padding:15px 20px}.type-download .addon-content:after,.type-download .addon-content:before{content:" ";display:table}.type-download .addon-content .addon-heading{margin:0 0 10px}.type-download .addon-content .addon-heading a{outline:0;text-decoration:none}.type-download .addon-footer-wrap{border-top:1px solid #ddd;position:absolute;bottom:2px;left:0;width:100%;background-color:#FFF;padding:15px 20px}.give-view-addons-all span.dashicons,.type-download span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.give-view-addons-all span.dashicons{margin-left:3px}#give-dashboard-widgets-wrap .inside{padding-top:0;padding-bottom:0}.give_forms_page_give-reports #give-dashboard-widgets-wrap .inside{padding-left:0}#give-dashboard-widgets-wrap .inside #give-graphs-filter{float:none}#give-dashboard-widgets-wrap .postbox{margin-bottom:10px}#give-dashboard-widgets-wrap table.reports-table{clear:none}#give-dashboard-widgets-wrap #give-date-range-options{float:left}#give-dashboard-widgets-wrap #give-date-range-options>span{float:left;line-height:30px;font-style:italic;padding:0 5px 0 0}#give-graphs-filter,body.give_forms_page_give-payment-history .tablenav-right .tablenav-pages,body.give_forms_page_give-reports .tablenav-right .tablenav-pages{float:right}#give-graphs-filter .tablenav{margin:0 0 0 17px}#give-graphs-filter .tablenav .actions{padding:0}.give-graph .y1Axis{color:#66bb6a!important}.give-graph .y2Axis{color:#546e7a!important}body.give_forms_page_give-payment-history h1.nav-tab-wrapper,body.give_forms_page_give-payment-history h2.nav-tab-wrapper,body.give_forms_page_give-reports h1.nav-tab-wrapper,body.give_forms_page_give-reports h2.nav-tab-wrapper{margin-bottom:10px}body.give_forms_page_give-payment-history .actions,body.give_forms_page_give-reports .actions{padding-top:0}body.give_forms_page_give-payment-history .pagination-links,body.give_forms_page_give-reports .pagination-links{margin-left:10px}body.give_forms_page_give-payment-history p.donor-search,body.give_forms_page_give-reports p.donor-search{margin-right:10px}body.give_forms_page_give-payment-history .tablenav-right #give-reports-view,body.give_forms_page_give-reports .tablenav-right #give-reports-view{margin-top:0}body.give_forms_page_give-payment-history .tablenav-right .actions,body.give_forms_page_give-payment-history p.search-box,body.give_forms_page_give-reports .tablenav-right .actions,body.give_forms_page_give-reports p.search-box{float:left}body.give_forms_page_give-payment-history .reports-table-nav.tablenav.top,body.give_forms_page_give-reports .reports-table-nav.tablenav.top{width:100%;float:none;margin:0 0 10px}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top,body.give_forms_page_give-reports .reports-forms-details-wrap.top{float:right;overflow:hidden}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top #give-reports-filter,body.give_forms_page_give-reports .reports-forms-details-wrap.top #give-reports-filter{float:left}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top>.actions,body.give_forms_page_give-reports .reports-forms-details-wrap.top>.actions{padding-right:0}body.give_forms_page_give-payment-history .tablenav.bottom,body.give_forms_page_give-reports .tablenav.bottom{margin-top:10px}body.give_forms_page_give-payment-history h2.reports-earnings-title,body.give_forms_page_give-reports h2.reports-earnings-title{margin:7px 0 0}body.give_forms_page_give-payment-history .reports-views-wrap,body.give_forms_page_give-reports .reports-views-wrap{padding:3px 0 0}body.give_forms_page_give-payment-history .wrap.give-reports-donors-wrap,body.give_forms_page_give-reports .wrap.give-reports-donors-wrap{margin-right:0;margin-bottom:10px}body.give_forms_page_give-payment-history .widefat tbody td,body.give_forms_page_give-payment-history .widefat tbody th,body.give_forms_page_give-reports .widefat tbody td,body.give_forms_page_give-reports .widefat tbody th{padding-top:12px;padding-bottom:12px}body.give_forms_page_give-reports table.export-options-table tbody td{padding:20px 12px;vertical-align:top}#test-payment-label,.give-mobile-link,.give-settings-page .export-options-table tr.give-import-option:nth-child(odd) th,table.give-table td{vertical-align:middle}body.give_forms_page_give-reports table.export-options-table .give-export-form{position:relative}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap{background-color:transparent;padding:12px 12px 4px;margin:2px 0 -16px -11px;overflow:auto}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap .spinner{margin:-2px -12px 8px 0}body.give_forms_page_give-reports table.export-options-table span#give-end-wrap input,body.give_forms_page_give-reports table.export-options-table span#give-start-wrap input{width:100px}#export-donor-options-wrap p{padding:20px 0 0;margin:0;font-weight:700}#export-donor-options-wrap ul{max-width:900px;overflow:hidden}#export-donor-options-wrap ul li{margin:0;padding:0 5px 5px 0;box-sizing:border-box;float:left;width:33%}#give-tools-recount-form .notice-wrap{position:relative;min-height:25px;margin:10px -12px -12px;background:#EFEFEF;padding:10px 12px 12px;border-top:1px solid #E5E5E5}#give-tools-recount-form .notice-wrap .give-progress{position:absolute;top:15px}#give-tools-recount-form .notice-wrap .spinner{position:absolute;right:14px;top:13px;margin:0}#give-tools-recount-form .notice-wrap #give-batch-success{margin-bottom:6px}.recount-stats-controls form{display:inline}.give-recount-stats-descriptions{margin:8px 0 0;display:block}.give-recount-stats-descriptions span{line-height:24px;font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0;display:none}.social-items-wrap,.social-items-wrap>div,.welcome-h1{display:inline-block}.gateways-report-tablenav .actions.bulkactions{padding-right:0}table.give-table td.row-title h3{margin:0 0 .4em;font-size:1.2em}table.give-table td.row-title p{font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0}#give-graphs-filter>.tablenav{height:auto}#give-logs-filter .search-box{float:right}#give-logs-filter .tablenav.top{float:left;clear:none;margin-top:0}.welcome-h1{margin-right:15px!important}.about-wrap h3{margin:1.5em 0 .6em}.about-wrap img{border:none}.give-badge{padding-top:150px;height:52px;width:185px;color:#FFF;font-weight:700;font-size:14px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.8);margin:0 -5px;position:absolute;top:0;right:0}.introduction{padding:0 0 20px;margin:0 0 20px}.feature-section{margin-top:40px}.feature-section span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.feature-section .feature-section-item{width:48%;float:left}.feature-section div.last-feature{margin-right:0;margin-left:4%}[class*=dashboard_page_give-] .about-text,[class^=dashboard_page_give-] .about-text{min-height:0}.social-items-wrap .twitter-item-wrap{margin:0 20px 10px 0}.wp-person img{border-radius:50%}.wp-person a.web{margin:17px 0 0;font-weight:700;font-style:italic}.newsletter-intro{font-size:13px;font-style:italic;color:#777}.give-newsletter-form-wrap{margin:10px 0 20px -5px;max-width:700px}.give-newsletter-form-wrap td{padding:3px}.give-newsletter-form-wrap div.give-newsletter-confirmation{background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 10px 4px 5px;padding:1px 12px;border-left:4px solid #7ad03a;display:none}.give-newsletter-form-wrap div.give-newsletter-confirmation>p{margin:.5em 0;padding:2px}#give_donor_export_form{margin:0 0 5px}.column-status .give-donation-status,.column-status .give-test-mode-transactions-label{display:inline-block}.column-status .give-test-mode-transactions-label{margin:0 5px;vertical-align:middle}.give-settings-page .give-settings-heading-sep{font-size:14px;line-height:32px;width:15px}.give-settings-page .nav-tab-wrapper{margin-bottom:5px;overflow:visible}.give-settings-page .cmb2-wrap .cmb-type-checkbox input[type=checkbox]{display:block;margin-bottom:5px}.give-settings-page div.give-submit-wrap{margin:20px 0}.give-settings-page .give_forms_page_give-payment-history .postbox .hndle{cursor:default}.give-settings-page .give-input-field{width:25em}.give-settings-page table table input[type=text]{width:15em}.give-settings-page .give-repeat-setting-field{margin:10px 0}.give-settings-page .give-remove-setting-field{width:25px;height:25px;padding:0;text-align:center;line-height:22px;font-size:21px;font-weight:300;cursor:pointer;margin-left:20px;display:inline-block}.give-settings-page .give-remove-setting-field:hover{background-color:red;color:#fff;border-radius:30px}.give-settings-page .give-forminp p:first-child .give-remove-setting-field{display:none}.give-settings-page .export-options-table tr.give-import-option:nth-child(odd){background:#f4f3f3}.give-settings-page .export-options-table .give-import-dropdown:nth-child(2),.give-settings-page .export-options-table tr.give-import-option th:first-child{width:250px}.give-setting-tab-header{clear:both;overflow:hidden;margin:30px 0}.give-setting-tab-header h2{margin-top:8px}.give-setting-tab-header p{margin-bottom:0}.give-radio-inline ul{margin-top:0}.give-radio-inline li{display:inline-block;margin:0 0 0 15px}.give-radio-inline li:first-child{margin-left:0}.give-tools-setting-page .bulkactions{overflow:visible}.form-table td.give-radio-inline fieldset li>label{margin:5px 0 0!important}.cmb2-metabox-description,p.give-field-description{color:#aaa;font-style:italic;font-size:13px!important}.cmb-type-give-title label,.give-setting-tab-header h2{float:left;display:inline-block;width:220px;font-style:italic;color:#AAA;margin:0;font-size:14px}.postbox-container #_give_donation_levels_repeat>.cmb-repeatable-grouping:not(:last-of-type){border-bottom:1px solid #e9e9e9;border-top:none}.cmb-type-enabled-gateways .cmb-td>p:first-of-type{display:none}.cmb-type-checkbox .cmb-td{width:80%}.cmb-type-checkbox .cmb-td label{font-size:13px}.give_settings .cmb2-wrap .cmb-row{display:table-row}.give_settings .cmb2-wrap .cmb-row>.cmb-td,.give_settings .cmb2-wrap .cmb-row>.cmb-th{display:table-cell;float:none}.cmb2-id-give-title label{font-style:italic;color:#AAA;cursor:default}.cmb2-id-give-title>div.cmb-th{padding-bottom:10px}.cmb2-id-give-title>div.cmb-td{padding-bottom:5px}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle{padding:3px 4px 0 0;font-size:15px;font-weight:400;color:#bdbdbd;cursor:move}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle:hover{color:#333}.give-email-tags-wrap{margin:5px 0 0}.give-email-tags-wrap code{font-style:normal;padding:1px 2px;font-size:12px}.give-email-tags-wrap span{display:block;color:#AAA;font-style:italic;margin:0 0 2px;font-size:13px}.give-email-tags-wrap .give_price_tag,.give-settings-email-settings-section .give-setting-tab-header-emails hr,.give-settings-email-settings-section .tablenav{display:none}.give-settings-email-settings-section .give-setting-tab-header-emails{margin:0 0 20px}.give-settings-email-settings-section .tablenav.bottom+.give-setting-tab-header-emails{margin:20px 0}.give-settings-email-settings-section .tablenav.bottom+.give-setting-tab-header-emails hr{display:block}.giveemailnotifications .check-column{padding:13px 10px 0 20px!important}.giveemailnotifications td.check-column input{display:none}.giveemailnotifications th.check-column .give-email-notification-status{color:#fff;cursor:pointer}.giveemailnotifications th.check-column .give-email-notification-status[data-edit="1"] i.dashicons{border-radius:1em;padding:2px}.giveemailnotifications th.check-column .give-email-notification-disabled:hover .dashicons-no-alt,.giveemailnotifications th.check-column .give-email-notification-enabled .dashicons-yes{background:#46b450}.giveemailnotifications th.check-column .give-email-notification-enabled .dashicons-lock{color:#46b450}.giveemailnotifications th.check-column .give-email-notification-disabled .dashicons-no-alt,.giveemailnotifications th.check-column .give-email-notification-enabled:hover .dashicons-yes{background:#bbb}.giveemailnotifications th.check-column .give-email-notification-disabled .dashicons-lock{color:#bbb}.giveemailnotifications th.check-column .dashicons-no-alt:hover:before{content:"\f147"!important}.giveemailnotifications th.check-column .dashicons-yes:hover:before{content:"\f335"!important}.giveemailnotifications .spinner.is-active{margin:0 0 0 2px;float:none}#system-info-textarea{width:800px;height:600px;font-family:Menlo,Monaco,monospace;background:#FFF;white-space:pre;overflow:auto;display:block;direction:ltr}#give-download-sysinfo{margin:0}#api .tablenav .actions{overflow:visible}a.give-delete{color:#a00}.give-settings-wrap-licenses .give-license-deactivate{margin:1px 0 0 10px;height:30px}.give-settings-wrap-licenses .give-license-field{background:url(../images/close.png) 98.5% center no-repeat #FFF;background-size:18px}.give-settings-wrap-licenses .give-license-active,.give-settings-wrap-licenses .give-license-active:focus{background-image:url(../images/tick.png);background-color:#FFF;background-repeat:no-repeat;background-position:98.5% center;outline:0;background-size:16px;width:100%}.give-settings-page .give-settings-wrap-licenses{display:block;position:relative;float:left;width:30.5%;min-height:180px;margin:20px 1% 20px 0}.give-settings-page .give-license-key label{margin:0 0 0 10px;padding:10px 0;display:block;font-size:14px;font-weight:600;cursor:default}.give-settings-page .give-license-block{margin:0 10px}.give-settings-page input[type=text].give-license-field,.give-settings-page input[type=password].give-license-field{width:100%}.give-settings-page .give-license-block input[type=submit]{position:absolute;top:3px;right:10px;height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.give-settings-page .give-license-status-notice{background:#fff;border-left:4px solid #fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:1px 12px}.give-settings-page .give-license-status-notice p{padding:10px 0;margin:0}.give-settings-page .give-license-status-notice a{color:#444;cursor:pointer}.give-settings-page .give-license-status-notice a:hover{text-decoration:none}.give-settings-page .give-license-status-notice.give-license-expires-soon{border-color:#00a0d2}.give-settings-page .give-license-status-notice.give-inactive,.give-settings-page .give-license-status-notice.give-license-expired{border-color:#e24e4e}.give-settings-page .give-license-status-notice.give-license-error,.give-settings-page .give-license-status-notice.give-license-invalid,.give-settings-page .give-license-status-notice.give-license-item_name_mismatch,.give-settings-page .give-license-status-notice.give-license-missing,.give-settings-page .give-license-status-notice.give-license-no_activations_left,.give-settings-page .give-license-status-notice.give-license-site_inactive{border-color:orange}.give-settings-page .give-license-status-notice.give-license-expiration-date,.give-settings-page .give-license-status-notice.give-license-lifetime-notice{border-color:#46b450}.give-settings-page .give-license-status-notice.give-license-expired a:hover,.give-settings-page .give-license-status-notice.give-license-expires-soon a:hover{text-decoration:none}@media screen and (max-width:1100px){.give-settings-page .give-settings-wrap-licenses{width:45%;min-height:150px}}.give-table thead th{padding:8px 10px!important}.give_settings .cmb-td hr+hr{display:none}.post-type-give_forms .mce-container iframe,.post-type-give_forms .wp-editor-area{min-height:400px}.give-field-description{color:#aaa;font-style:italic;margin:0;padding-top:.5em}h2.give-nav-tab-wrapper{overflow:hidden;height:35px}@media screen and (max-width:600px){.give-settings-page .give-settings-wrap-licenses{width:100%;max-width:320px}.give-nav-tab-wrapper{position:relative;padding-top:0!important}.give-nav-tab-wrapper>a{width:100%;box-sizing:border-box;margin:0;background-color:#fff;border:1px solid #ccc}.give-nav-tab-wrapper>a:hover{border-bottom:1px solid #ccc}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper{position:absolute;top:0;right:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav{height:28px;width:30px;border-radius:0;margin:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav>span.dashicons{margin:6px auto 0;display:block}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{top:35px;right:0;left:auto}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{background:#fff}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#e5e5e5}.give-mobile-hidden{display:none}}.give-sub-nav-tab-wrapper{position:relative;z-index:9999;float:left;display:none}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{border:1px solid #ccc;border-bottom:0;position:absolute;top:35px;right:0}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{float:left;background:#fff;padding:6px 10px;clear:both;text-decoration:none;border-bottom:1px solid #ccc;min-width:170px;color:#555;font-size:14px}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#fff}#give-show-sub-nav{text-decoration:none;padding:3px 4px;border-bottom:1px solid #ccc;line-height:0;background:#fff;border-radius:4px;margin-top:5px}#give-show-sub-nav>span.dashicons{font-size:16px;height:16px;width:16px}#give-show-sub-nav:active,#give-show-sub-nav:hover{outline:0;box-shadow:inset 0 0 4px #ddd}.give-image-thumb{position:relative;margin-top:14px}.give-image-thumb span.give-delete-image-thumb{position:absolute;background:red;color:#fff;border-radius:30px;left:-10px;top:-10px;cursor:pointer}.give-image-thumb img{max-width:250px;border:4px solid #fff}.give-filters,.give-submit-wrap{border:1px solid #dfdfdf;clear:both}.give-filters{background:#f5f5f5;padding:12px 12px 0}.give-filters .give-donation-forms-filter .chosen-single{height:28px;line-height:28px}.give-filters .chosen-container-single .chosen-single div b{background-position:0 4px}.give-filters .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 6px}.give-filters #give-payment-form-filter,.give-filters #give_donation_forms_filter{display:inline-block;width:300px}@media screen and (max-width:782px){.give-filters #give-payment-form-filter,.give-filters #give_donation_forms_filter{width:100%}}.give-filters #give_donation_forms_filter{width:255px}.give-filter input[type=text],.give-filter select{width:100%}@media screen and (max-width:782px){.give-filters #give_donation_forms_filter{width:100%;max-width:100%}}.give-filters:after{display:table;clear:both}.give-filter{display:block;margin-bottom:12px;width:100%}.give-filter:after{display:table;clear:both}.give-filter label{display:block;margin-right:4px}.give-filter input{margin:0}.give-filter input[type=text],.give-filter input[type=search]{height:28px}.give-filter .button{height:28px;line-height:26px;margin:0;padding:0 10px 1px}@media screen and (min-width:783px){.give-filter{float:left;margin-right:18px;width:auto}.give-filter label{display:inline-block}.give-filter input[type=text]{display:inline-block;width:144px}}.give-filter-search input[type=search]{display:block;float:left;width:68%}.give-filter-search input[type=submit]{display:block;float:right;width:30%}@media screen and (min-width:783px){.give-filter-search input[type=search]{display:inline-block;margin-right:4px;width:144px}.give-filter-search input[type=submit]{display:inline-block;width:auto}}@media screen and (min-width:600px){.give-filter-half{float:left;width:49%}.give-filter-half:last-child{float:right}}@media screen and (min-width:783px){.give-filter-half{width:auto}.give-filter-half:last-child{float:left}.give-filter-half input[type=text]{width:96px}}.give-clear-filters-button{margin-left:8px}.give-submit-wrap{background:#f5f5f5;margin:8px 0;padding:12px;font-size:13px;line-height:2.1em}#give-payment-filters ul.subsubsub{margin-bottom:8px}#give-payments-advanced-filter ul.subsubsub{margin-bottom:12px}#give-payments-filter .tablenav.top{float:none}#give-payments-filter .tablenav.top .bulkactions{margin-top:1px;padding-top:0}#give-payments-filter .give-email-column-value{font-size:14px;font-weight:700}#give-payments-filter #the-list .check-column input{margin-top:1px}#give-payments-filter .column-details{width:50px}#give-payments-filter .column-amount{width:120px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.forms th#date{width:140px}.give-mobile-link{line-height:32px}.give-mobile-link img{max-width:80%;height:auto;float:left}.give-donation-status>span{display:inline-block;width:12px;height:12px;position:relative;top:1px;margin:0;padding:0;border-radius:50%;background:#888;line-height:16px}#give-payments-filter .give-payment-id,#test-payment-label{padding:.2em .4em .3em;font-size:11px;text-align:center;border-radius:.25em;color:#fff;white-space:nowrap}.give-donation-status.status-pending>span{background-color:#ffba00}.give-donation-status.status-complete>span,.give-donation-status.status-publish>span{background-color:#7ad03a}.give-donation-status.status-refunded>span{background-color:#777}.give-donation-status.status-failed>span{background-color:#a00}.give-donation-status.status-abandoned>span{background-color:#333}.give-donation-status.status-revoked>span{background-color:#d9534f}.give-donation-status.status-give_subscription>span,.give-donation-status.status-renewal>span,.give-donation-status.status-subscription>span{background-color:#5bc0de}#test-payment-label{line-height:1;background-color:#ffba00;margin:0 15px}#test-payment-label:hover{color:#fff;text-decoration:none}#give-payments-filter .give-payment-id{line-height:1;vertical-align:baseline;font-weight:400}.give-admin-box .label,.give-admin-box-inside .strong{font-weight:600}#give-payments-filter .give-payment-id:hover{color:#fff;text-decoration:none}#give-payments-filter .column-details{padding-right:30px}#give-payments-filter .give-donation-status{display:inline-block}#give-order-update .give-donation-status{display:inline-block;float:none;margin:0 10px;position:relative;top:3px}.column-donation_form .donation-level-text-wrap{font-style:italic;display:block}@media handheld,only screen and (max-width:640px){.wp-list-table.forms th{width:auto!important}}.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-left:-8px;margin-top:-8px}.give-admin-box-inside{margin:0;padding:3px 10px;clear:both;border-bottom:1px solid #eee}.give-admin-box .right{float:right}#give-order-details .inside,#give-order-update .inside{margin:0;padding:0}#give-order-update input.give_datepicker{width:180px}#give-order-update input[type=number].give-payment-time-hour,#give-order-update input[type=number].give-payment-time-min{width:50px}.give-admin-box-inside:last-child{border-bottom:0}#give-edit-order-form .data-payment-key{word-break:break-all}.give-order-update-box #major-publishing-actions .button-secondary{margin-right:10px}#give-donation-overview th{text-align:left}#give-donation-overview .give-select-chosen{width:97%}#give-edit-order-form .row{margin-top:10px}#give-donation-overview ul,#give-donor-details .order-data-address input,#give-donor-details .order-data-column p.data input,#give-edit-order-form .column input,#give-order-address-country-wrap select{clear:both;display:block}.give-order-data input.small-text{margin:0}#give-order-update span.label{display:inline;width:50px}.give-order-update-box .button-primary{margin-right:0}#give-edit-order-form .column .description{padding-right:10px}#give-donation-overview .inside>ul>li,#give-donation-overview .row>ul>li,#give-edit-order-form .column{display:inline-block;position:relative;vertical-align:top}#give-donation-overview ul{font-size:0}#give-donation-overview ul li{font-size:13px}#give-donation-overview ul li.actions{text-align:right;min-width:200px}#give-donation-overview ul li.remove{text-align:right}#give-donation-overview ul .row{padding:12px;border-bottom:1px solid #eee}#give-order-data .data span{color:#666;font-weight:600}input.give-price-field{width:80px;padding:3px 5px}.give_forms_page_give-payment-history.js .postbox .hndle{cursor:default}#give-payment-notes textarea{min-height:150px}#give-payment-notes #give-add-payment-note{margin:6px 0 15px}#give-billing-details .column>div{margin:0 0 10px}#give-billing-details label{display:block;margin-bottom:5px}#give-billing-details .column-container{padding:5px 0 10px}#give-billing-details input[type=text]{width:98%}#give-billing-details .chosen-container{width:98%!important}@media screen and (min-width:1200px){#give-edit-order-form .column{width:33%}#give-order-address .column{width:49%}#give-donation-overview.columns-4 li.actions{width:25%;margin-top:0;margin-right:0}}@media screen and (max-width:1199px){#give-edit-order-form .column{width:49%}}@media screen and (max-width:782px){.order-data-column input[type=email]{padding:6px 10px}}#give-donation-overview .inside,#give-donor-details .inside{margin-top:0}.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables{padding-top:0}.give-select-chosen .spinner{position:absolute;right:5px;top:2px;z-index:999}.give-select-chosen-ajax .spinner{visibility:visible}.give-select-chosen-ajax .chosen-search input[type=text],.give-select-chosen-ajax.chosen-container-single .chosen-search input[type=text]{background-image:none!important}.give-dashboard-widget .give-dashboard-today{text-align:center}.give-dashboard-widget .give-dashboard-today .give-dashboard-date-today{margin:10px 0 0;padding:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-happy-day{padding:3px;margin:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-today-earnings{font-size:42px;color:#4ead61;font-weight:700;margin:15px 0 0;line-height:1}.give-dashboard-widget .give-dashboard-today .give-donations-today{font-size:18px;font-weight:700;margin:0 0 30px;padding:4px 0 1px}.give-dashboard-widget .give-dashboard-today .give-last-seven{font-size:14px;font-weight:700;padding:0;margin:0 0 30px}.give-dashboard-widget .give-table-stats{width:100%;text-align:center;margin:0;table-layout:fixed;border-top:1px solid #ececec;border-spacing:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total,.give-dashboard-widget .give-table-stats .give-dashboard-stat-total-label{padding:0;margin:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total{color:#4ead61;font-weight:700;font-size:16px}#give_dashboard_sales>.inside{padding:0}#give_dashboard_sales .give-table-stats td{padding:10px 0}#give_dashboard_sales .give-table-stats td:first-of-type{border-right:1px solid #ececec}#give_dashboard_sales .give-table-stats tr#give-table-stats-tr-1 td{border-bottom:1px solid #ececec}#dashboard_right_now .give-forms-count:before{font-family:give-icomoon;font-style:normal;font-weight:400;line-height:1;font-size:18px;width:18px;height:18px}.give_forms_page_give-donors .wrap>h2{margin-bottom:15px}.give_forms_page_give-donors .nav-tab-wrapper .dashicons{position:relative;top:2px;margin:0 3px 0 0}.give_forms_page_give-donors #give-donors-filter{position:relative}.give_forms_page_give-donors #give-donors-filter p.search-box{margin:0}.give_forms_page_give-donors #give-donors-search-filter{display:block;overflow:hidden}.give_forms_page_give-donors #give-donor-card-wrapper{margin-left:-1px;z-index:2;min-height:200px}.give_forms_page_give-donors #give-donor-card-wrapper input{font-weight:400}.give_forms_page_give-donors #give-donor-card-wrapper .donor-section{border-bottom:1px solid #eee;margin-bottom:10px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-section table{margin-bottom:0}.give_forms_page_give-donors #give-donor-card-wrapper>div:first-child{padding-top:20px}.give_forms_page_give-donors #give-donor-card-wrapper>div:last-child{padding-bottom:20px;border:none}.give_forms_page_give-donors #give-donor-card-wrapper .avatar-wrap{padding:0 15px 15px 0;text-align:center;float:left}.give_forms_page_give-donors #give-donor-card-wrapper .avatar-wrap img{border-radius:3px}.give_forms_page_give-donors #give-donor-card-wrapper a.delete{text-decoration:none;color:red;margin-right:5px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-since{margin:10px 0;font-size:16px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-id{display:inline-block;font-size:24px;font-weight:600;margin-right:10px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-name-wrap{display:inline-block}.give_forms_page_give-donors #give-donor-card-wrapper .donor-bio-header .donor-edit-link{margin-bottom:15px}.give_forms_page_give-donors .donor-main-wrapper{clear:both;margin:0 0 20px}@media (max-width:655px){.give_forms_page_give-donors .donor-main-wrapper{width:100%}}.give_forms_page_give-donors .donor-main-wrapper table{margin:0}.give_forms_page_give-donors .donor-main-wrapper input{width:200px}.give_forms_page_give-donors #donor-summary{padding:0 20px}.give_forms_page_give-donors #donor-summary:after{font-family:dashicons;content:"\f110";position:absolute;top:10px;right:10px;font-size:100px;color:#F0F0F0;z-index:0}.give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper{width:202px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper select,.give_forms_page_give-donors #give-donor-card-wrapper .give_user_search_results ul{width:200px}.give_forms_page_give-donors #give-donor-card-wrapper .donor-address-wrapper span[data-key=line2]{display:table;clear:both}.give_forms_page_give-donors #give-donor-card-wrapper .donor-info{min-height:185px}.give_forms_page_give-donors #give-donor-card-wrapper .info-wrapper{min-height:125px}.give_forms_page_give-donors .donor-info .donor-name{font-size:24px;font-weight:600}.give_forms_page_give-donors #disconnect-donor,.give_forms_page_give-donors #view-user-profile{font-size:12px;font-weight:400;text-decoration:none}.give_forms_page_give-donors #donor-edit-actions{text-align:center;margin-bottom:20px;line-height:28px}.give_forms_page_give-donors #donor-edit-actions .button-secondary{margin-right:10px}.give_forms_page_give-donors #give-donor-card-wrapper .edit-item{display:none}.give_forms_page_give-donors #give-donor-card-wrapper .give_user_search_results{left:1px;top:16px}.give_forms_page_give-donors #donor-stats-wrapper{margin:0 auto;text-align:center;padding:15px}.give_forms_page_give-donors #donor-stats-wrapper ul{margin:0;padding:0;overflow:hidden}.give_forms_page_give-donors #donor-stats-wrapper ul li{width:50%;float:left;line-height:22px;font-size:14px;margin:0}.give_forms_page_give-donors #donor-stats-wrapper a{text-decoration:none}.give_forms_page_give-donors #donor-stats-wrapper .dashicons{color:#888}.give_forms_page_give-donors #donor-tables-wrapper table{width:100%;text-align:center}.give_forms_page_give-donors #donor-tables-wrapper th{text-align:center}.give_forms_page_give-donors #donor-tables-wrapper .donations tr>td:first-child,.give_forms_page_give-donors #donor-tables-wrapper .donations tr>th:first-child,.give_forms_page_give-donors #donor-tables-wrapper .emails tr>td:first-child,.give_forms_page_give-donors #donor-tables-wrapper .emails tr>th:first-child{text-align:left}.give_forms_page_give-donors #donor-tables-wrapper .donations tr>td:only-child{text-align:center}.give_forms_page_give-donors #donor-notes-wrapper{min-height:50px}.give_forms_page_give-donors .donor-notes-header img,.give_forms_page_give-donors .donor-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.give_forms_page_give-donors .donor-note-input{width:100%;margin-bottom:5px}.give_forms_page_give-donors #give-donor-notes div:nth-of-type(even){background-color:#f9f9f9}.give_forms_page_give-donors #give-donor-notes .donor-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:0}.give_forms_page_give-donors #give-donor-notes .donor-note-wrapper .note-content-wrap{padding:10px 12px;line-height:20px;font-size:14px}.give_forms_page_give-donors #give-donor-notes .give-no-donor-notes{text-align:center;padding:20px}.give_forms_page_give-donors .donor-note-wrapper span{display:block}.give_forms_page_give-donors .delete-donor{text-align:center}.give_forms_page_give-donors .give-lock-block{margin-left:-25px;text-decoration:none;font-size:14px;margin-right:3px}.give_forms_page_give-donors .give-lock-block i{color:#000;font-size:14px}.give_forms_page_give-donors #donor-address-wrapper .give-no-address-message{margin:.5rem 1%;line-height:3.4em}.give_forms_page_give-donors #donor-address-wrapper .add-new-address{margin:.5rem 1%!important}.give_forms_page_give-donors #donor-address-wrapper .add-new-address-form-hidden{position:absolute;right:13px;left:13px;top:0;visibility:hidden}.sc-wrap,button.sc-button:after{position:relative;display:inline-block}.give_forms_page_give-donors #donor-address-wrapper .all-address .address{min-height:146px;border:1px solid #dad9d9;padding:9px;border-radius:5px;background-color:#fff}.give_forms_page_give-donors #donor-address-wrapper .all-address .address .address-number-label{color:gray;cursor:default}.give_forms_page_give-donors #donor-address-wrapper .all-address .address a{text-decoration:none}.give-blank-slate__help a,.mce-sc-popup a{text-decoration:underline}@media screen and (max-width:782px){#wp-content-media-buttons a.give-thickbox{padding:6px 14px;line-height:normal;font-size:14px;height:auto}.wp-media-buttons span#give-media-button{margin-top:0!important;margin-left:2px!important}}.mce-primary.mce-give-primary button{padding-right:10px;padding-left:10px}.wp-core-ui .give-admin-button{padding-left:7px;padding-right:7px}.give-admin-button-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}.give-admin-button-icon:before{font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-admin-button-icon-update:before{content:"\f463"}.mce-primary.mce-sc-primary button{padding-right:10px;padding-left:10px}.mce-sc-popup p{margin-bottom:1em}.mce-sc-popup p.strong{font-weight:600}.mce-sc-popup p.no-margin{margin-bottom:0}.mce-sc-popup p.margin-top{margin-top:1em}.mce-sc-popup .mce-listbox button{text-overflow:ellipsis;overflow:hidden!important}@media screen and (max-width:782px){.wp-media-buttons button.sc-button span{width:18px!important}}.wp-media-buttons button.sc-button{outline:0;padding-left:5px;margin-right:0}.wp-media-buttons button.sc-button:active{margin-bottom:5px}button.sc-button:after{top:-1px;content:'';width:0;height:0;border-top:6px solid #777;border-right:4px solid transparent;border-left:4px solid transparent;margin:0 3px 0 6px}button.sc-button.active:after{top:-2px;border-top:0;border-bottom:6px solid #32373c}.sc-wrap{margin-right:5px}div.sc-menu{display:none;position:absolute;top:100%;left:0;min-width:100%;max-height:410px;font-size:14px;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#fff;border:1px solid rgba(0,0,0,.15);overflow:auto;overflow-x:hidden;padding:5px 0;margin:-2px 0 0;z-index:1002}div.sc-shortcode{display:block;white-space:nowrap;cursor:pointer;padding:6px 12px;margin-bottom:2px}div.sc-shortcode:hover{color:#fff}#mce-modal-block.mce-reset.mce-fade.mce-in{opacity:.7;filter:alpha(opacity=70)}.give-status-table{margin-bottom:1em}.give-status-table h2{font-size:14px;margin:0}.give-status-table tr:nth-child(2n) td,.give-status-table tr:nth-child(2n) th{background:#fcfcfc}.give-status-table th{font-weight:700;padding:9px}.give-status-table td:first-child{width:33%}.give-status-table td.help{width:1em}.give-status-table td{padding:9px;font-size:1.1em}.give-status-table td mark{background:0 0}.give-status-table td mark.yes{color:#7ad03a}.give-status-table td mark.no{color:#999}.give-status-table td mark.error{color:#a00}.give-status-table td ul{margin:0}.wrap div.give-debug-report-wrapper{margin-bottom:5px}.wrap div.give-debug-report-wrapper p{font-size:18px;margin:1em 0 .7em;padding:0}.wrap div.give-debug-report-wrapper .give-debug-report-actions{margin:0 0 1.7em}.wrap div.give-debug-report-wrapper .give-debug-report-actions .js-give-debug-report-button{margin-right:10px}.wrap div.give-debug-report-wrapper .give-debug-report-actions .dashicons{font-size:16px;position:relative;top:4px;left:-2px}.give-debug-report{display:none;margin:10px 0;padding:0;position:relative}.give-debug-report textarea{font-family:monospace;width:100%;margin:0;height:300px;padding:20px;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;resize:none;font-size:12px;line-height:20px;outline:0}.give-progress{height:15px;width:95%;border-radius:4px;overflow:hidden;background-color:#f5f5f5}.give-progress>div{height:100%;width:0}.admin-color-fresh .give-progress div,.give-progress div{background:#0073aa}.admin-color-light .give-progress div{background:#888}.admin-color-blue .give-progress div{background:#096484}.admin-color-coffee .give-progress div{background:#c7a589}.admin-color-ectoplasm .give-progress div{background:#a3b745}.admin-color-midnight .give-progress div{background:#e14d43}.admin-color-sunrise .give-progress div{background:#dd823b}.give-spinner-wrapper{position:absolute;left:0;right:0;bottom:0;top:0;background:rgba(245,245,245,.57);z-index:1;display:none}.give-spinner-wrapper.is-active{display:inline-block}.give-spinner-wrapper .aligncenter{position:absolute;top:50%;left:50%;margin:10px 10px 0 0}.give-spinner.spinner.is-active{margin:0 0 0 2px;float:none}#give-updates-h1{padding-top:0}.give-update-panel-content p{font-size:16px}#give-updates .dashicons-no-alt{color:red}#give-updates .dashicons-yes{color:green}#give-db-updates .spinner{margin-top:0}body.give_forms_page_give-updates .give-run-update-containt .give-run-update-button{margin-right:10px}.give-blank-slate{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:0 auto;padding:40px;text-align:center}.give-blank-slate :last-child{margin-bottom:0}.give-blank-slate__cta,.give-blank-slate__heading,.give-blank-slate__help,.give-blank-slate__message{margin:0 0 10px}.give-blank-slate__image{display:block;height:80px;margin:0 auto 10px;width:auto}.give-blank-slate__help{color:#666;font-style:italic}.give-blank-slate__help a{display:inline-block}.give-blank-slate a.give-blank-slate__cta{display:inline-block;font-size:1.2em;height:auto;margin:0 0 10px;padding:.75em 1.5em}.give-tools-setting-page-import h1.handle{padding:15px 0 0}.give-tools-setting-page-import .give-progress-steps{width:100%;padding:0 0 24px;margin-left:0;list-style:none;overflow:hidden;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}.give-tools-setting-page-import .give-progress-steps li{width:25%;float:left;padding:0 0 1.2em;margin:0;text-align:center;position:relative;border-bottom:4px solid #ccc;line-height:1.4em}.give-tools-setting-page-import .give-progress-steps li.active{border-color:#4ead61;color:#4ead61}.give-tools-setting-page-import .give-progress-steps li.active:before{border-color:#4ead61;color:#4ead61;background:#4ead61}.give-tools-setting-page-import .give-progress-steps li::before{content:'';border:4px solid #ccc;border-radius:100%;width:10px;height:10px;position:absolute;bottom:0;left:50%;margin-left:-6px;margin-bottom:-10px;background:#fff}.give-tools-setting-page-import .step-4 h2{text-align:center;font-size:20px!important}.give-tools-setting-page-import .step-4 p{text-align:center}.give-tools-setting-page-import .button-secondary.step-4,.give-tools-setting-page-import .give-image-thumb{display:none}.give-tools-setting-page-import h2#give-import-title{background:#f3f3f3;font-size:15px;font-weight:600;margin:-8px -22px 11px;padding:12px 22px}.give-import-core-settings .give-progress-steps li{width:33.33%}.give-import-core-settings .step-3 h2{text-align:center;font-size:20px!important}.give-import-core-settings .step-3 p{text-align:center}form.give-import-form table.widefat{border:none}.wrap .give-importer-h1{margin:0;padding:20px 0}
assets/css/jquery.qtip.css DELETED
@@ -1,617 +0,0 @@
1
- /*
2
- * qTip2 - Pretty powerful tooltips - v2.2.1
3
- * http://qtip2.com
4
- *
5
- * Copyright (c) 2014
6
- * Released under the MIT licenses
7
- * http://jquery.org/license
8
- *
9
- * Date: Sat Sep 6 2014 06:25 EDT-0400
10
- * Plugins: tips viewport imagemap svg modal ie6
11
- * Styles: core basic css3
12
- */
13
- .qtip{
14
- position: absolute;
15
- left: -28000px;
16
- top: -28000px;
17
- display: none;
18
-
19
- max-width: 280px;
20
- min-width: 50px;
21
-
22
- font-size: 10.5px;
23
- line-height: 12px;
24
-
25
- direction: ltr;
26
-
27
- box-shadow: none;
28
- padding: 0;
29
- }
30
-
31
- .qtip-content{
32
- position: relative;
33
- padding: 5px 9px;
34
- overflow: hidden;
35
-
36
- text-align: left;
37
- word-wrap: break-word;
38
- }
39
-
40
- .qtip-titlebar{
41
- position: relative;
42
- padding: 5px 35px 5px 10px;
43
- overflow: hidden;
44
-
45
- border-width: 0 0 1px;
46
- font-weight: bold;
47
- }
48
-
49
- .qtip-titlebar + .qtip-content{ border-top-width: 0 !important; }
50
-
51
- /* Default close button class */
52
- .qtip-close{
53
- position: absolute;
54
- right: -9px; top: -9px;
55
- z-index: 11; /* Overlap .qtip-tip */
56
-
57
- cursor: pointer;
58
- outline: medium none;
59
-
60
- border: 1px solid transparent;
61
- }
62
-
63
- .qtip-titlebar .qtip-close{
64
- right: 4px; top: 50%;
65
- margin-top: -9px;
66
- }
67
-
68
- * html .qtip-titlebar .qtip-close{ top: 16px; } /* IE fix */
69
-
70
- .qtip-titlebar .ui-icon,
71
- .qtip-icon .ui-icon{
72
- display: block;
73
- text-indent: -1000em;
74
- direction: ltr;
75
- }
76
-
77
- .qtip-icon, .qtip-icon .ui-icon{
78
- -moz-border-radius: 3px;
79
- -webkit-border-radius: 3px;
80
- border-radius: 3px;
81
- text-decoration: none;
82
- }
83
-
84
- .qtip-icon .ui-icon{
85
- width: 18px;
86
- height: 14px;
87
-
88
- line-height: 14px;
89
- text-align: center;
90
- text-indent: 0;
91
- font: normal bold 10px/13px Tahoma,sans-serif;
92
-
93
- color: inherit;
94
- background: transparent none no-repeat -100em -100em;
95
- }
96
-
97
- /* Applied to 'focused' tooltips e.g. most recently displayed/interacted with */
98
- .qtip-focus{}
99
-
100
- /* Applied on hover of tooltips i.e. added/removed on mouseenter/mouseleave respectively */
101
- .qtip-hover{}
102
-
103
- /* Default tooltip style */
104
- .qtip-default{
105
- border: 1px solid #F1D031;
106
-
107
- background-color: #FFFFA3;
108
- color: #555;
109
- }
110
-
111
- .qtip-default .qtip-titlebar{
112
- background-color: #FFEF93;
113
- }
114
-
115
- .qtip-default .qtip-icon{
116
- border-color: #CCC;
117
- background: #F1F1F1;
118
- color: #777;
119
- }
120
-
121
- .qtip-default .qtip-titlebar .qtip-close{
122
- border-color: #AAA;
123
- color: #111;
124
- }
125
-
126
-
127
- /*! Light tooltip style */
128
- .qtip-light{
129
- background-color: white;
130
- border-color: #E2E2E2;
131
- color: #454545;
132
- }
133
-
134
- .qtip-light .qtip-titlebar{
135
- background-color: #f1f1f1;
136
- }
137
-
138
-
139
- /*! Dark tooltip style */
140
- .qtip-dark{
141
- background-color: #505050;
142
- border-color: #303030;
143
- color: #f3f3f3;
144
- }
145
-
146
- .qtip-dark .qtip-titlebar{
147
- background-color: #404040;
148
- }
149
-
150
- .qtip-dark .qtip-icon{
151
- border-color: #444;
152
- }
153
-
154
- .qtip-dark .qtip-titlebar .ui-state-hover{
155
- border-color: #303030;
156
- }
157
-
158
-
159
- /*! Cream tooltip style */
160
- .qtip-cream{
161
- background-color: #FBF7AA;
162
- border-color: #F9E98E;
163
- color: #A27D35;
164
- }
165
-
166
- .qtip-cream .qtip-titlebar{
167
- background-color: #F0DE7D;
168
- }
169
-
170
- .qtip-cream .qtip-close .qtip-icon{
171
- background-position: -82px 0;
172
- }
173
-
174
-
175
- /*! Red tooltip style */
176
- .qtip-red{
177
- background-color: #F78B83;
178
- border-color: #D95252;
179
- color: #912323;
180
- }
181
-
182
- .qtip-red .qtip-titlebar{
183
- background-color: #F06D65;
184
- }
185
-
186
- .qtip-red .qtip-close .qtip-icon{
187
- background-position: -102px 0;
188
- }
189
-
190
- .qtip-red .qtip-icon{
191
- border-color: #D95252;
192
- }
193
-
194
- .qtip-red .qtip-titlebar .ui-state-hover{
195
- border-color: #D95252;
196
- }
197
-
198
-
199
- /*! Green tooltip style */
200
- .qtip-green{
201
- background-color: #CAED9E;
202
- border-color: #90D93F;
203
- color: #3F6219;
204
- }
205
-
206
- .qtip-green .qtip-titlebar{
207
- background-color: #B0DE78;
208
- }
209
-
210
- .qtip-green .qtip-close .qtip-icon{
211
- background-position: -42px 0;
212
- }
213
-
214
-
215
- /*! Blue tooltip style */
216
- .qtip-blue{
217
- background-color: #E5F6FE;
218
- border-color: #ADD9ED;
219
- color: #5E99BD;
220
- }
221
-
222
- .qtip-blue .qtip-titlebar{
223
- background-color: #D0E9F5;
224
- }
225
-
226
- .qtip-blue .qtip-close .qtip-icon{
227
- background-position: -2px 0;
228
- }
229
-
230
-
231
- .qtip-shadow{
232
- -webkit-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);
233
- -moz-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);
234
- box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);
235
- }
236
-
237
- /* Add rounded corners to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE9+, Safari 2+ */
238
- .qtip-rounded,
239
- .qtip-tipsy,
240
- .qtip-bootstrap{
241
- -moz-border-radius: 5px;
242
- -webkit-border-radius: 5px;
243
- border-radius: 5px;
244
- }
245
-
246
- .qtip-rounded .qtip-titlebar{
247
- -moz-border-radius: 4px 4px 0 0;
248
- -webkit-border-radius: 4px 4px 0 0;
249
- border-radius: 4px 4px 0 0;
250
- }
251
-
252
- /* Youtube tooltip style */
253
- .qtip-youtube{
254
- -moz-border-radius: 2px;
255
- -webkit-border-radius: 2px;
256
- border-radius: 2px;
257
-
258
- -webkit-box-shadow: 0 0 3px #333;
259
- -moz-box-shadow: 0 0 3px #333;
260
- box-shadow: 0 0 3px #333;
261
-
262
- color: white;
263
- border: 0 solid transparent;
264
-
265
- background: #4A4A4A;
266
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#4A4A4A),color-stop(100%,black));
267
- background-image: -webkit-linear-gradient(top,#4A4A4A 0,black 100%);
268
- background-image: -moz-linear-gradient(top,#4A4A4A 0,black 100%);
269
- background-image: -ms-linear-gradient(top,#4A4A4A 0,black 100%);
270
- background-image: -o-linear-gradient(top,#4A4A4A 0,black 100%);
271
- }
272
-
273
- .qtip-youtube .qtip-titlebar{
274
- background-color: #4A4A4A;
275
- background-color: rgba(0,0,0,0);
276
- }
277
-
278
- .qtip-youtube .qtip-content{
279
- padding: .75em;
280
- font: 12px arial,sans-serif;
281
-
282
- filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);
283
- -ms-filter: "progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);";
284
- }
285
-
286
- .qtip-youtube .qtip-icon{
287
- border-color: #222;
288
- }
289
-
290
- .qtip-youtube .qtip-titlebar .ui-state-hover{
291
- border-color: #303030;
292
- }
293
-
294
-
295
- /* jQuery TOOLS Tooltip style */
296
- .qtip-jtools{
297
- background: #232323;
298
- background: rgba(0, 0, 0, 0.7);
299
- background-image: -webkit-gradient(linear, left top, left bottom, from(#717171), to(#232323));
300
- background-image: -moz-linear-gradient(top, #717171, #232323);
301
- background-image: -webkit-linear-gradient(top, #717171, #232323);
302
- background-image: -ms-linear-gradient(top, #717171, #232323);
303
- background-image: -o-linear-gradient(top, #717171, #232323);
304
-
305
- border: 2px solid #ddd;
306
- border: 2px solid rgba(241,241,241,1);
307
-
308
- -moz-border-radius: 2px;
309
- -webkit-border-radius: 2px;
310
- border-radius: 2px;
311
-
312
- -webkit-box-shadow: 0 0 12px #333;
313
- -moz-box-shadow: 0 0 12px #333;
314
- box-shadow: 0 0 12px #333;
315
- }
316
-
317
- /* IE Specific */
318
- .qtip-jtools .qtip-titlebar{
319
- background-color: transparent;
320
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A);
321
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)";
322
- }
323
- .qtip-jtools .qtip-content{
324
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323);
325
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)";
326
- }
327
-
328
- .qtip-jtools .qtip-titlebar,
329
- .qtip-jtools .qtip-content{
330
- background: transparent;
331
- color: white;
332
- border: 0 dashed transparent;
333
- }
334
-
335
- .qtip-jtools .qtip-icon{
336
- border-color: #555;
337
- }
338
-
339
- .qtip-jtools .qtip-titlebar .ui-state-hover{
340
- border-color: #333;
341
- }
342
-
343
-
344
- /* Cluetip style */
345
- .qtip-cluetip{
346
- -webkit-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);
347
- -moz-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);
348
- box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);
349
-
350
- background-color: #D9D9C2;
351
- color: #111;
352
- border: 0 dashed transparent;
353
- }
354
-
355
- .qtip-cluetip .qtip-titlebar{
356
- background-color: #87876A;
357
- color: white;
358
- border: 0 dashed transparent;
359
- }
360
-
361
- .qtip-cluetip .qtip-icon{
362
- border-color: #808064;
363
- }
364
-
365
- .qtip-cluetip .qtip-titlebar .ui-state-hover{
366
- border-color: #696952;
367
- color: #696952;
368
- }
369
-
370
-
371
- /* Tipsy style */
372
- .qtip-tipsy{
373
- background: black;
374
- background: rgba(0, 0, 0, .87);
375
-
376
- color: white;
377
- border: 0 solid transparent;
378
-
379
- font-size: 11px;
380
- font-family: 'Lucida Grande', sans-serif;
381
- font-weight: bold;
382
- line-height: 16px;
383
- text-shadow: 0 1px black;
384
- }
385
-
386
- .qtip-tipsy .qtip-titlebar{
387
- padding: 6px 35px 0 10px;
388
- background-color: transparent;
389
- }
390
-
391
- .qtip-tipsy .qtip-content{
392
- padding: 6px 10px;
393
- }
394
-
395
- .qtip-tipsy .qtip-icon{
396
- border-color: #222;
397
- text-shadow: none;
398
- }
399
-
400
- .qtip-tipsy .qtip-titlebar .ui-state-hover{
401
- border-color: #303030;
402
- }
403
-
404
-
405
- /* Tipped style */
406
- .qtip-tipped{
407
- border: 3px solid #959FA9;
408
-
409
- -moz-border-radius: 3px;
410
- -webkit-border-radius: 3px;
411
- border-radius: 3px;
412
-
413
- background-color: #F9F9F9;
414
- color: #454545;
415
-
416
- font-weight: normal;
417
- font-family: serif;
418
- }
419
-
420
- .qtip-tipped .qtip-titlebar{
421
- border-bottom-width: 0;
422
-
423
- color: white;
424
- background: #3A79B8;
425
- background-image: -webkit-gradient(linear, left top, left bottom, from(#3A79B8), to(#2E629D));
426
- background-image: -webkit-linear-gradient(top, #3A79B8, #2E629D);
427
- background-image: -moz-linear-gradient(top, #3A79B8, #2E629D);
428
- background-image: -ms-linear-gradient(top, #3A79B8, #2E629D);
429
- background-image: -o-linear-gradient(top, #3A79B8, #2E629D);
430
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D);
431
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)";
432
- }
433
-
434
- .qtip-tipped .qtip-icon{
435
- border: 2px solid #285589;
436
- background: #285589;
437
- }
438
-
439
- .qtip-tipped .qtip-icon .ui-icon{
440
- background-color: #FBFBFB;
441
- color: #555;
442
- }
443
-
444
-
445
- /**
446
- * Twitter Bootstrap style.
447
- *
448
- * Tested with IE 8, IE 9, Chrome 18, Firefox 9, Opera 11.
449
- * Does not work with IE 7.
450
- */
451
- .qtip-bootstrap{
452
- /** Taken from Bootstrap body */
453
- font-size: 14px;
454
- line-height: 20px;
455
- color: #333333;
456
-
457
- /** Taken from Bootstrap .popover */
458
- padding: 1px;
459
- background-color: #ffffff;
460
- border: 1px solid #ccc;
461
- border: 1px solid rgba(0, 0, 0, 0.2);
462
- -webkit-border-radius: 6px;
463
- -moz-border-radius: 6px;
464
- border-radius: 6px;
465
- -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
466
- -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
467
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
468
- -webkit-background-clip: padding-box;
469
- -moz-background-clip: padding;
470
- background-clip: padding-box;
471
- }
472
-
473
- .qtip-bootstrap .qtip-titlebar{
474
- /** Taken from Bootstrap .popover-title */
475
- padding: 8px 14px;
476
- margin: 0;
477
- font-size: 14px;
478
- font-weight: normal;
479
- line-height: 18px;
480
- background-color: #f7f7f7;
481
- border-bottom: 1px solid #ebebeb;
482
- -webkit-border-radius: 5px 5px 0 0;
483
- -moz-border-radius: 5px 5px 0 0;
484
- border-radius: 5px 5px 0 0;
485
- }
486
-
487
- .qtip-bootstrap .qtip-titlebar .qtip-close{
488
- /**
489
- * Overrides qTip2:
490
- * .qtip-titlebar .qtip-close{
491
- * [...]
492
- * right: 4px;
493
- * top: 50%;
494
- * [...]
495
- * border-style: solid;
496
- * }
497
- */
498
- right: 11px;
499
- top: 45%;
500
- border-style: none;
501
- }
502
-
503
- .qtip-bootstrap .qtip-content{
504
- /** Taken from Bootstrap .popover-content */
505
- padding: 9px 14px;
506
- }
507
-
508
- .qtip-bootstrap .qtip-icon{
509
- /**
510
- * Overrides qTip2:
511
- * .qtip-default .qtip-icon {
512
- * border-color: #CCC;
513
- * background: #F1F1F1;
514
- * color: #777;
515
- * }
516
- */
517
- background: transparent;
518
- }
519
-
520
- .qtip-bootstrap .qtip-icon .ui-icon{
521
- /**
522
- * Overrides qTip2:
523
- * .qtip-icon .ui-icon{
524
- * width: 18px;
525
- * height: 14px;
526
- * }
527
- */
528
- width: auto;
529
- height: auto;
530
-
531
- /* Taken from Bootstrap .close */
532
- float: right;
533
- font-size: 20px;
534
- font-weight: bold;
535
- line-height: 18px;
536
- color: #000000;
537
- text-shadow: 0 1px 0 #ffffff;
538
- opacity: 0.2;
539
- filter: alpha(opacity=20);
540
- }
541
-
542
- .qtip-bootstrap .qtip-icon .ui-icon:hover{
543
- /* Taken from Bootstrap .close:hover */
544
- color: #000000;
545
- text-decoration: none;
546
- cursor: pointer;
547
- opacity: 0.4;
548
- filter: alpha(opacity=40);
549
- }
550
-
551
-
552
- /* IE9 fix - removes all filters */
553
- .qtip:not(.ie9haxors) div.qtip-content,
554
- .qtip:not(.ie9haxors) div.qtip-titlebar{
555
- filter: none;
556
- -ms-filter: none;
557
- }
558
-
559
-
560
- .qtip .qtip-tip{
561
- margin: 0 auto;
562
- overflow: hidden;
563
- z-index: 10;
564
-
565
- }
566
-
567
- /* Opera bug #357 - Incorrect tip position
568
- https://github.com/Craga89/qTip2/issues/367 */
569
- x:-o-prefocus, .qtip .qtip-tip{
570
- visibility: hidden;
571
- }
572
-
573
- .qtip .qtip-tip,
574
- .qtip .qtip-tip .qtip-vml,
575
- .qtip .qtip-tip canvas{
576
- position: absolute;
577
-
578
- color: #123456;
579
- background: transparent;
580
- border: 0 dashed transparent;
581
- }
582
-
583
- .qtip .qtip-tip canvas{ top: 0; left: 0; }
584
-
585
- .qtip .qtip-tip .qtip-vml{
586
- behavior: url(#default#VML);
587
- display: inline-block;
588
- visibility: visible;
589
- }
590
-
591
-
592
- #qtip-overlay{
593
- position: fixed;
594
- left: 0; top: 0;
595
- width: 100%; height: 100%;
596
- }
597
-
598
- /* Applied to modals with show.modal.blur set to true */
599
- #qtip-overlay.blurs{ cursor: pointer; }
600
-
601
- /* Change opacity of overlay here */
602
- #qtip-overlay div{
603
- position: absolute;
604
- left: 0; top: 0;
605
- width: 100%; height: 100%;
606
-
607
- background-color: black;
608
-
609
- opacity: 0.7;
610
- filter:alpha(opacity=70);
611
- -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
612
- }
613
-
614
-
615
- .qtipmodal-ie6fix{
616
- position: absolute !important;
617
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/jquery.qtip.min.css DELETED
@@ -1 +0,0 @@
1
- #qtip-overlay.blurs,.qtip-close{cursor:pointer}.qtip{position:absolute;left:-28000px;top:-28000px;display:none;max-width:280px;min-width:50px;font-size:10.5px;line-height:12px;direction:ltr;box-shadow:none;padding:0}.qtip-content,.qtip-titlebar{overflow:hidden;position:relative}.qtip-content{padding:5px 9px;text-align:left;word-wrap:break-word}.qtip-titlebar{padding:5px 35px 5px 10px;border-width:0 0 1px;font-weight:700}.qtip-titlebar+.qtip-content{border-top-width:0!important}.qtip-close{position:absolute;right:-9px;top:-9px;z-index:11;outline:0;border:1px solid transparent}.qtip-titlebar .qtip-close{right:4px;top:50%;margin-top:-9px}* html .qtip-titlebar .qtip-close{top:16px}.qtip-icon .ui-icon,.qtip-titlebar .ui-icon{display:block;text-indent:-1000em;direction:ltr}.qtip-icon,.qtip-icon .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-decoration:none}.qtip-icon .ui-icon{width:18px;height:14px;line-height:14px;text-align:center;text-indent:0;font:normal 700 10px/13px Tahoma,sans-serif;color:inherit;background:-100em -100em no-repeat}.qtip-default{border:1px solid #F1D031;background-color:#FFFFA3;color:#555}.qtip-default .qtip-titlebar{background-color:#FFEF93}.qtip-default .qtip-icon{border-color:#CCC;background:#F1F1F1;color:#777}.qtip-default .qtip-titlebar .qtip-close{border-color:#AAA;color:#111}/*! Light tooltip style */.qtip-light{background-color:#fff;border-color:#E2E2E2;color:#454545}.qtip-light .qtip-titlebar{background-color:#f1f1f1}/*! Dark tooltip style */.qtip-dark{background-color:#505050;border-color:#303030;color:#f3f3f3}.qtip-dark .qtip-titlebar{background-color:#404040}.qtip-dark .qtip-icon{border-color:#444}.qtip-dark .qtip-titlebar .ui-state-hover{border-color:#303030}/*! Cream tooltip style */.qtip-cream{background-color:#FBF7AA;border-color:#F9E98E;color:#A27D35}.qtip-red,.qtip-red .qtip-icon,.qtip-red .qtip-titlebar .ui-state-hover{border-color:#D95252}.qtip-cream .qtip-titlebar{background-color:#F0DE7D}.qtip-cream .qtip-close .qtip-icon{background-position:-82px 0}/*! Red tooltip style */.qtip-red{background-color:#F78B83;color:#912323}.qtip-red .qtip-titlebar{background-color:#F06D65}.qtip-red .qtip-close .qtip-icon{background-position:-102px 0}/*! Green tooltip style */.qtip-green{background-color:#CAED9E;border-color:#90D93F;color:#3F6219}.qtip-green .qtip-titlebar{background-color:#B0DE78}.qtip-green .qtip-close .qtip-icon{background-position:-42px 0}/*! Blue tooltip style */.qtip-blue{background-color:#E5F6FE;border-color:#ADD9ED;color:#5E99BD}.qtip-blue .qtip-titlebar{background-color:#D0E9F5}.qtip-blue .qtip-close .qtip-icon{background-position:-2px 0}.qtip-shadow{-webkit-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);-moz-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);box-shadow:1px 1px 3px 1px rgba(0,0,0,.15)}.qtip-bootstrap,.qtip-rounded,.qtip-tipsy{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.qtip-rounded .qtip-titlebar{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.qtip-youtube{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 3px #333;-moz-box-shadow:0 0 3px #333;box-shadow:0 0 3px #333;color:#fff;border:0 solid transparent;background:#4A4A4A;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4A4A4A),color-stop(100%,#000));background-image:-webkit-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-moz-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-ms-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-o-linear-gradient(top,#4A4A4A 0,#000 100%)}.qtip-youtube .qtip-titlebar{background-color:transparent}.qtip-youtube .qtip-content{padding:.75em;font:12px arial,sans-serif;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#4a4a4a, EndColorStr=#000000);-ms-filter:"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);"}.qtip-youtube .qtip-icon{border-color:#222}.qtip-youtube .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-jtools{background:#232323;background:rgba(0,0,0,.7);background-image:-webkit-gradient(linear,left top,left bottom,from(#717171),to(#232323));background-image:-moz-linear-gradient(top,#717171,#232323);background-image:-webkit-linear-gradient(top,#717171,#232323);background-image:-ms-linear-gradient(top,#717171,#232323);background-image:-o-linear-gradient(top,#717171,#232323);border:2px solid #ddd;border:2px solid rgba(241,241,241,1);-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 12px #333;-moz-box-shadow:0 0 12px #333;box-shadow:0 0 12px #333}.qtip-jtools .qtip-titlebar{background-color:transparent;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171, endColorstr=#4A4A4A);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)"}.qtip-jtools .qtip-content{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A, endColorstr=#232323);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)"}.qtip-jtools .qtip-content,.qtip-jtools .qtip-titlebar{background:0 0;color:#fff;border:0 dashed transparent}.qtip-jtools .qtip-icon{border-color:#555}.qtip-jtools .qtip-titlebar .ui-state-hover{border-color:#333}.qtip-cluetip{-webkit-box-shadow:4px 4px 5px rgba(0,0,0,.4);-moz-box-shadow:4px 4px 5px rgba(0,0,0,.4);box-shadow:4px 4px 5px rgba(0,0,0,.4);background-color:#D9D9C2;color:#111;border:0 dashed transparent}.qtip-cluetip .qtip-titlebar{background-color:#87876A;color:#fff;border:0 dashed transparent}.qtip-cluetip .qtip-icon{border-color:#808064}.qtip-cluetip .qtip-titlebar .ui-state-hover{border-color:#696952;color:#696952}.qtip-tipsy{background:#000;background:rgba(0,0,0,.87);color:#fff;border:0 solid transparent;font-size:11px;font-family:'Lucida Grande',sans-serif;font-weight:700;line-height:16px;text-shadow:0 1px #000}.qtip-tipsy .qtip-titlebar{padding:6px 35px 0 10px;background-color:transparent}.qtip-tipsy .qtip-content{padding:6px 10px}.qtip-tipsy .qtip-icon{border-color:#222;text-shadow:none}.qtip-tipsy .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-tipped{border:3px solid #959FA9;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-color:#F9F9F9;color:#454545;font-weight:400;font-family:serif}.qtip-tipped .qtip-titlebar{border-bottom-width:0;color:#fff;background:#3A79B8;background-image:-webkit-gradient(linear,left top,left bottom,from(#3A79B8),to(#2E629D));background-image:-webkit-linear-gradient(top,#3A79B8,#2E629D);background-image:-moz-linear-gradient(top,#3A79B8,#2E629D);background-image:-ms-linear-gradient(top,#3A79B8,#2E629D);background-image:-o-linear-gradient(top,#3A79B8,#2E629D);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8, endColorstr=#2E629D);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)"}.qtip-tipped .qtip-icon{border:2px solid #285589;background:#285589}.qtip-tipped .qtip-icon .ui-icon{background-color:#FBFBFB;color:#555}.qtip-bootstrap{font-size:14px;line-height:20px;color:#333;padding:1px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.qtip-bootstrap .qtip-titlebar{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.qtip-bootstrap .qtip-titlebar .qtip-close{right:11px;top:45%;border-style:none}.qtip-bootstrap .qtip-content{padding:9px 14px}.qtip-bootstrap .qtip-icon{background:0 0}.qtip-bootstrap .qtip-icon .ui-icon{width:auto;height:auto;float:right;font-size:20px;font-weight:700;line-height:18px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}#qtip-overlay,#qtip-overlay div{left:0;top:0;width:100%;height:100%}.qtip-bootstrap .qtip-icon .ui-icon:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}.qtip:not(.ie9haxors) div.qtip-content,.qtip:not(.ie9haxors) div.qtip-titlebar{filter:none;-ms-filter:none}.qtip .qtip-tip{margin:0 auto;overflow:hidden;z-index:10}.qtip .qtip-tip,x:-o-prefocus{visibility:hidden}.qtip .qtip-tip,.qtip .qtip-tip .qtip-vml,.qtip .qtip-tip canvas{position:absolute;color:#123456;background:0 0;border:0 dashed transparent}.qtip .qtip-tip canvas{top:0;left:0}.qtip .qtip-tip .qtip-vml{behavior:url(#default#VML);display:inline-block;visibility:visible}#qtip-overlay{position:fixed}#qtip-overlay div{position:absolute;background-color:#000;opacity:.7;filter:alpha(opacity=70);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"}.qtipmodal-ie6fix{position:absolute!important}
 
assets/js/admin/admin-forms.js CHANGED
@@ -137,6 +137,7 @@ jQuery.noConflict();
137
  $('._give_goal_color_field').hide();
138
  $('._give_close_form_when_goal_achieved_field').hide();
139
  $('._give_form_goal_achieved_message_field').hide();
 
140
  } else {
141
  $('._give_set_goal_field').show();
142
  $('._give_goal_format_field').show();
@@ -148,6 +149,21 @@ jQuery.noConflict();
148
  if (close_form_when_goal_achieved_option_val === 'enabled') {
149
  $('._give_form_goal_achieved_message_field').show();
150
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  }
152
  }).change();
153
 
@@ -167,6 +183,19 @@ jQuery.noConflict();
167
  $('._give_offline_donation_email_field').hide();
168
  }
169
  }).change();
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  };
171
 
172
  //Handle Repeatable Row ID
137
  $('._give_goal_color_field').hide();
138
  $('._give_close_form_when_goal_achieved_field').hide();
139
  $('._give_form_goal_achieved_message_field').hide();
140
+ $('._give_number_of_donation_goal_field').hide();
141
  } else {
142
  $('._give_set_goal_field').show();
143
  $('._give_goal_format_field').show();
149
  if (close_form_when_goal_achieved_option_val === 'enabled') {
150
  $('._give_form_goal_achieved_message_field').show();
151
  }
152
+
153
+ }
154
+ }).change();
155
+
156
+ var goal_format = $('._give_goal_format_field input:radio');
157
+ goal_format.on('change', function() {
158
+ var goal_format_val = $('._give_goal_format_field input:radio:checked').val();
159
+ var goal_option_val = $('._give_goal_option_field input:radio:checked').val();
160
+
161
+ if( 'donation' === goal_format_val ) {
162
+ $('._give_set_goal_field').hide();
163
+ $('._give_number_of_donation_goal_field').show();
164
+ } else {
165
+ ( 'disabled' === goal_option_val ) ? $('._give_set_goal_field').hide() : $('._give_set_goal_field').show();
166
+ $('._give_number_of_donation_goal_field').hide();
167
  }
168
  }).change();
169
 
183
  $('._give_offline_donation_email_field').hide();
184
  }
185
  }).change();
186
+
187
+ //Email options.
188
+ var email_options = $('._give_email_options_field input:radio');
189
+ email_options.on('change', function () {
190
+ // Get checked radio button value.
191
+ var email_options_val = $('._give_email_options_field input:radio:checked').val();
192
+
193
+ if ( email_options_val === 'enabled') {
194
+ $('#email_notification_options .give-field-wrap:not(._give_email_options_field)').show();
195
+ } else {
196
+ $('#email_notification_options .give-field-wrap:not(._give_email_options_field)').hide();
197
+ }
198
+ }).change();
199
  };
200
 
201
  //Handle Repeatable Row ID
assets/js/admin/admin-forms.min.js CHANGED
@@ -1 +1 @@
1
- jQuery.noConflict(),function(e){function i(){e(".cmb2-text-money").each(function(i,_){var n=parseInt(e(_).val());n||e(_).removeAttr("value")})}var _=function(){e("body").on("change",".give-give_default_radio_inline",function(){e(".give-give_default_radio_inline").prop("checked",!1),e(this).prop("checked",!0)})},n=function(){var i=e("._give_price_option_field input:radio");i.on("change",function(){var i=e("._give_price_option_field input:radio:checked").val();"set"===i?(e("._give_set_price_field").show(),e("#_give_donation_levels_field").hide(),e("._give_display_style_field").hide()):(e("._give_set_price_field").hide(),e("#_give_donation_levels_field").show(),e("._give_display_style_field").show())}).change();var _=e("._give_display_content_field input:radio");_.on("change",function(){var i=e("._give_display_content_field input:radio:checked").val();"enabled"===i?(e("._give_content_placement_field").show(),e("._give_form_content_field").show()):(e("._give_content_placement_field").hide(),e("._give_form_content_field").hide())}).change();var n=e("._give_terms_option_field input:radio");n.on("change",function(){var i=e("._give_terms_option_field input:radio:checked").val();"enabled"===i?(e("._give_agree_label_field").show(),e("._give_agree_text_field").show()):(e("._give_agree_label_field").hide(),e("._give_agree_text_field").hide())}).change();var o=e("._give_payment_display_field input:radio");o.on("change",function(){var i=e("._give_payment_display_field input:radio:checked").val();"onpage"===i?e("._give_reveal_label_field").hide():e("._give_reveal_label_field").show()}).change();var l=e("._give_custom_amount_field input:radio");l.on("change",function(){var i=e("._give_custom_amount_field input:radio:checked").val();"disabled"===i?(e("._give_custom_amount_minimum_field").hide(),e("._give_custom_amount_text_field").hide()):(e("._give_custom_amount_minimum_field").show(),e("._give_custom_amount_text_field").show())}).change();var a=e("._give_goal_option_field"),d=e("._give_close_form_when_goal_achieved_field input:radio");d.on("change",function(){var i=e("._give_close_form_when_goal_achieved_field input:radio:checked").val();"disabled"===i?e("._give_form_goal_achieved_message_field").hide():e("._give_form_goal_achieved_message_field").show()}).change(),a.on("change",function(){var i=e("._give_goal_option_field input:radio:checked").val();if("disabled"===i)e("._give_set_goal_field").hide(),e("._give_goal_format_field").hide(),e("._give_goal_color_field").hide(),e("._give_close_form_when_goal_achieved_field").hide(),e("._give_form_goal_achieved_message_field").hide();else{e("._give_set_goal_field").show(),e("._give_goal_format_field").show(),e("._give_goal_color_field").show(),e("._give_close_form_when_goal_achieved_field").show();var _=e("._give_close_form_when_goal_achieved_field input:radio:checked").val();"enabled"===_&&e("._give_form_goal_achieved_message_field").show()}}).change();var t=e("._give_customize_offline_donations_field input:radio");t.on("change",function(){var i=e("._give_customize_offline_donations_field input:radio:checked").val();"enabled"===i?(e("._give_offline_checkout_notes_field").show(),e("._give_offline_donation_enable_billing_fields_single_field").show(),e("._give_offline_donation_subject_field").show(),e("._give_offline_donation_email_field").show()):(e("._give_offline_checkout_notes_field").hide(),e("._give_offline_donation_enable_billing_fields_single_field").hide(),e("._give_offline_donation_subject_field").hide(),e("._give_offline_donation_email_field").hide())}).change()},o=function(){function i(i){var n=_();e(i).find("input.give-level-id-input").val(n),e(i).find(".give-level-id").text(n)}function _(){var i=0,_=0,n=0;return e("#_give_donation_levels_repeat > .cmb-repeatable-grouping").each(function(o,l){n=e(this).find("input.give-level-id-input").val(),n>_&&(_=n),i++}),"undefined"!=typeof _&&_>=i?parseInt(_)+1:i}if(""===e(".give-level-id").text()){var n=e(".cmb-repeatable-grouping");n.each(function(i,_){var n=e(_).data("iterator")+1;e(_).find(".give-level-id").text(n),e(_).find(".give-level-id-input").val(n)})}e("body").on("cmb2_add_row",function(e,_){i(_)}),e("body").on("cmb2_shift_rows_complete",function(i,_){var n=e(".cmb-repeatable-grouping");n.each(function(i,_){var n=e(_).find("input.give-level-id-input").val();e(_).find(".give-level-id").text(n)})})};e(function(){_(),n(),o(),i()})}(jQuery);
1
+ jQuery.noConflict(),function(e){function i(){e(".cmb2-text-money").each(function(i,_){var o=parseInt(e(_).val());o||e(_).removeAttr("value")})}var _=function(){e("body").on("change",".give-give_default_radio_inline",function(){e(".give-give_default_radio_inline").prop("checked",!1),e(this).prop("checked",!0)})},o=function(){var i=e("._give_price_option_field input:radio");i.on("change",function(){var i=e("._give_price_option_field input:radio:checked").val();"set"===i?(e("._give_set_price_field").show(),e("#_give_donation_levels_field").hide(),e("._give_display_style_field").hide()):(e("._give_set_price_field").hide(),e("#_give_donation_levels_field").show(),e("._give_display_style_field").show())}).change();var _=e("._give_display_content_field input:radio");_.on("change",function(){var i=e("._give_display_content_field input:radio:checked").val();"enabled"===i?(e("._give_content_placement_field").show(),e("._give_form_content_field").show()):(e("._give_content_placement_field").hide(),e("._give_form_content_field").hide())}).change();var o=e("._give_terms_option_field input:radio");o.on("change",function(){var i=e("._give_terms_option_field input:radio:checked").val();"enabled"===i?(e("._give_agree_label_field").show(),e("._give_agree_text_field").show()):(e("._give_agree_label_field").hide(),e("._give_agree_text_field").hide())}).change();var n=e("._give_payment_display_field input:radio");n.on("change",function(){var i=e("._give_payment_display_field input:radio:checked").val();"onpage"===i?e("._give_reveal_label_field").hide():e("._give_reveal_label_field").show()}).change();var a=e("._give_custom_amount_field input:radio");a.on("change",function(){var i=e("._give_custom_amount_field input:radio:checked").val();"disabled"===i?(e("._give_custom_amount_minimum_field").hide(),e("._give_custom_amount_text_field").hide()):(e("._give_custom_amount_minimum_field").show(),e("._give_custom_amount_text_field").show())}).change();var l=e("._give_goal_option_field"),d=e("._give_close_form_when_goal_achieved_field input:radio");d.on("change",function(){var i=e("._give_close_form_when_goal_achieved_field input:radio:checked").val();"disabled"===i?e("._give_form_goal_achieved_message_field").hide():e("._give_form_goal_achieved_message_field").show()}).change(),l.on("change",function(){var i=e("._give_goal_option_field input:radio:checked").val();if("disabled"===i)e("._give_set_goal_field").hide(),e("._give_goal_format_field").hide(),e("._give_goal_color_field").hide(),e("._give_close_form_when_goal_achieved_field").hide(),e("._give_form_goal_achieved_message_field").hide(),e("._give_number_of_donation_goal_field").hide();else{e("._give_set_goal_field").show(),e("._give_goal_format_field").show(),e("._give_goal_color_field").show(),e("._give_close_form_when_goal_achieved_field").show();var _=e("._give_close_form_when_goal_achieved_field input:radio:checked").val();"enabled"===_&&e("._give_form_goal_achieved_message_field").show()}}).change();var t=e("._give_goal_format_field input:radio");t.on("change",function(){var i=e("._give_goal_format_field input:radio:checked").val(),_=e("._give_goal_option_field input:radio:checked").val();"donation"===i?(e("._give_set_goal_field").hide(),e("._give_number_of_donation_goal_field").show()):("disabled"===_?e("._give_set_goal_field").hide():e("._give_set_goal_field").show(),e("._give_number_of_donation_goal_field").hide())}).change();var f=e("._give_customize_offline_donations_field input:radio");f.on("change",function(){var i=e("._give_customize_offline_donations_field input:radio:checked").val();"enabled"===i?(e("._give_offline_checkout_notes_field").show(),e("._give_offline_donation_enable_billing_fields_single_field").show(),e("._give_offline_donation_subject_field").show(),e("._give_offline_donation_email_field").show()):(e("._give_offline_checkout_notes_field").hide(),e("._give_offline_donation_enable_billing_fields_single_field").hide(),e("._give_offline_donation_subject_field").hide(),e("._give_offline_donation_email_field").hide())}).change();var v=e("._give_email_options_field input:radio");v.on("change",function(){var i=e("._give_email_options_field input:radio:checked").val();"enabled"===i?e("#email_notification_options .give-field-wrap:not(._give_email_options_field)").show():e("#email_notification_options .give-field-wrap:not(._give_email_options_field)").hide()}).change()},n=function(){function i(i){var o=_();e(i).find("input.give-level-id-input").val(o),e(i).find(".give-level-id").text(o)}function _(){var i=0,_=0,o=0;return e("#_give_donation_levels_repeat > .cmb-repeatable-grouping").each(function(n,a){o=e(this).find("input.give-level-id-input").val(),o>_&&(_=o),i++}),"undefined"!=typeof _&&_>=i?parseInt(_)+1:i}if(""===e(".give-level-id").text()){var o=e(".cmb-repeatable-grouping");o.each(function(i,_){var o=e(_).data("iterator")+1;e(_).find(".give-level-id").text(o),e(_).find(".give-level-id-input").val(o)})}e("body").on("cmb2_add_row",function(e,_){i(_)}),e("body").on("cmb2_shift_rows_complete",function(i,_){var o=e(".cmb-repeatable-grouping");o.each(function(i,_){var o=e(_).find("input.give-level-id-input").val();e(_).find(".give-level-id").text(o)})})};e(function(){_(),o(),n(),i()})}(jQuery);
assets/js/admin/admin-scripts.js CHANGED
@@ -9,21 +9,58 @@
9
  */
10
 
11
  jQuery.noConflict();
12
- // Provided access to global level
13
  var give_setting_edit = false;
14
- ( function( $ ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
  /**
17
  * Onclick remove give-message parameter from url
18
  *
19
- * @ since 1.8.14
20
  */
21
- var give_dismiss_notice = function(){
22
- $( 'body' ).on( 'click', 'button.notice-dismiss', function () {
23
- if ( 'give-invalid-license' !== jQuery( this ).closest( 'div.give-notice' ).data( 'notice-id' ) ) {
24
  give_remove_give_message();
25
  }
26
- } );
27
  };
28
 
29
  /**
@@ -34,21 +71,21 @@ var give_setting_edit = false;
34
  var give_remove_give_message = function () {
35
  var parameter = 'give-message',
36
  url = document.location.href,
37
- urlparts = url.split( '?' );
38
 
39
- if ( urlparts.length >= 2 ) {
40
  var urlBase = urlparts.shift();
41
- var queryString = urlparts.join( "?" );
42
 
43
- var prefix = encodeURIComponent( parameter ) + '=';
44
- var pars = queryString.split( /[&;]/g );
45
- for ( var i = pars.length; i-- > 0; ) {
46
- if ( pars[ i ].lastIndexOf( prefix, 0 ) !== -1 ) {
47
- pars.splice( i, 1 );
48
  }
49
  }
50
- url = urlBase + '?' + pars.join( '&' );
51
- window.history.pushState( '', document.title, url ); // added this line to push the new url directly to url bar .
52
  }
53
  return url;
54
  };
@@ -57,12 +94,12 @@ var give_setting_edit = false;
57
  * Setup Admin Datepicker
58
  * @since: 1.0
59
  */
60
- var enable_admin_datepicker = function() {
61
 
62
  // Date picker.
63
- if ( $( '.give_datepicker' ).length > 0 ) {
64
  var dateFormat = 'mm/dd/yy';
65
- $( '.give_datepicker' ).datepicker({
66
  dateFormat: dateFormat
67
  });
68
  }
@@ -71,31 +108,31 @@ var give_setting_edit = false;
71
  /**
72
  * Setup Pretty Chosen Select Fields
73
  */
74
- var setup_chosen_give_selects = function() {
75
 
76
  // Setup Chosen Selects.
77
- var $give_chosen_containers = $( '.give-select-chosen' );
78
 
79
  // Add loader with each input field.
80
- $give_chosen_containers.on( 'chosen:ready', function() {
81
- $( this ).next( '.chosen-container' )
82
- .find( 'input.chosen-search-input' )
83
- .after( '<span class="spinner"></span>' );
84
  });
85
 
86
  // No results returned from search trigger.
87
- $give_chosen_containers.on( 'chosen:no_results', function() {
88
- var $container = $( this ).next( '.chosen-container' ),
89
- $no_results_li = $container.find( 'li.no-results' ),
90
  error_string = '';
91
 
92
- if ($container.hasClass( 'give-select-chosen-ajax' ) && $no_results_li.length ) {
93
- error_string = give_vars.chosen.ajax_search_msg.replace( '{search_term}', '"' + $( 'input', $container ).val() + '"' );
94
  } else {
95
- error_string = give_vars.chosen.no_results_msg.replace( '{search_term}', '"' + $( 'input', $container ).val() + '"' );
96
  }
97
 
98
- $no_results_li.html( error_string );
99
 
100
  });
101
 
@@ -103,78 +140,86 @@ var give_setting_edit = false;
103
  $give_chosen_containers.chosen({
104
  inherit_select_classes: true,
105
  placeholder_text_single: give_vars.one_option,
106
- placeholder_text_multiple: give_vars.one_or_more_option,
107
  });
108
 
109
- // This fixes the Chosen box being 0px wide when the thickbox is opened
 
 
 
 
 
 
 
 
110
  $( '#post' ).on( 'click', '.give-thickbox', function() {
111
  $( '.give-select-chosen', '#choose-give-form' ).css( 'width', '100%' );
112
  });
113
 
114
  // Variables for setting up the typing timer.
115
- var typingTimer; // Timer identifier
116
- var doneTypingInterval = 342; // Time in ms, Slow - 521ms, Moderate - 342ms, Fast - 300ms
117
 
118
- // Replace options with search results
119
- $( document.body ).on( 'keyup', '.give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input', function( e ) {
120
 
121
- var val = $( this ).val(),
122
- $container = $( this ).closest( '.give-select-chosen' ),
123
  select = $container.prev(),
124
- $search_field = $container.find( 'input[type="text"]' ),
125
- variations = $container.hasClass( 'variations' ),
126
  lastKey = e.which,
127
  search_type = 'give_forms_search';
128
 
129
  // Detect if we have a defined search type, otherwise default to donation forms.
130
- if ( $container.prev().data( 'search-type' ) ) {
131
 
132
  // Don't trigger AJAX if this select has all options loaded.
133
- if ( 'no_ajax' === select.data( 'search-type' ) ) {
134
  return;
135
  }
136
 
137
- search_type = 'give_' + select.data( 'search-type' ) + '_search';
138
  }
139
 
140
  // Don't fire if short or is a modifier key (shift, ctrl, apple command key, or arrow keys).
141
  if (
142
  val.length <= 3 ||
143
- ! search_type.length ||
144
  (
145
- ( 9 === lastKey ) || // Tab
146
- ( 13 === lastKey ) || // Enter
147
- ( 16 === lastKey ) || // Shift
148
- ( 17 === lastKey ) || // Ctrl
149
- ( 18 === lastKey ) || // Alt
150
- ( 19 === lastKey ) || // Pause, Break
151
- ( 20 === lastKey ) || // CapsLock
152
- ( 27 === lastKey ) || // Esc
153
- ( 33 === lastKey ) || // Page Up
154
- ( 34 === lastKey ) || // Page Down
155
- ( 35 === lastKey ) || // End
156
- ( 36 === lastKey ) || // Home
157
- ( 37 === lastKey ) || // Left arrow
158
- ( 38 === lastKey ) || // Up arrow
159
- ( 39 === lastKey ) || // Right arrow
160
- ( 40 === lastKey ) || // Down arrow
161
- ( 44 === lastKey ) || // PrntScrn
162
- ( 45 === lastKey ) || // Insert
163
- ( 144 === lastKey ) || // NumLock
164
- ( 145 === lastKey ) || // ScrollLock
165
- ( 91 === lastKey ) || // WIN Key (Start)
166
- ( 93 === lastKey ) || // WIN Menu
167
- ( 224 === lastKey ) || // command key
168
- ( 112 <= lastKey && 123 >= lastKey ) // F1 to F12lastKey
169
  )
170
  ) {
171
  return;
172
  }
173
- clearTimeout( typingTimer );
174
- $container.addClass( 'give-select-chosen-ajax' );
175
 
176
  typingTimer = setTimeout(
177
- function() {
178
  $.ajax({
179
  type: 'GET',
180
  url: ajaxurl,
@@ -183,65 +228,65 @@ var give_setting_edit = false;
183
  s: val
184
  },
185
  dataType: 'json',
186
- beforeSend: function() {
187
- select.closest( 'ul.chosen-results' ).empty();
188
- $search_field.prop( 'disabled', true );
189
  },
190
- success: function( data ) {
191
 
192
- $container.removeClass( 'give-select-chosen-ajax' );
193
 
194
  // Remove all options but those that are selected.
195
- $( 'option:not(:selected)', select ).remove();
196
 
197
- if ( data.length ) {
198
- $.each( data, function( key, item ) {
199
 
200
  // Add any option that doesn't already exist.
201
- if ( ! $( 'option[value="' + item.id + '"]', select ).length ) {
202
- select.prepend( '<option value="' + item.id + '">' + item.name + '</option>' );
203
  }
204
  });
205
 
206
  // Trigger update event.
207
- $container.prev( 'select.give-select-chosen' ).trigger( 'chosen:updated' );
208
 
209
  } else {
210
 
211
  // Trigger no result message event.
212
- $container.prev( 'select.give-select-chosen' ).trigger( 'chosen:no_results' );
213
  }
214
 
215
  // Ensure the original query is retained within the search input.
216
- $search_field.prop( 'disabled', false );
217
- $search_field.val( val ).focus();
218
 
219
  }
220
- }).fail( function( response ) {
221
- if ( window.console && window.console.log ) {
222
- console.log( response );
223
  }
224
- }).done( function( response ) {
225
- $search_field.prop( 'disabled', false );
226
  });
227
  },
228
  doneTypingInterval
229
  );
230
  });
231
 
232
- $( '.give-select-chosen .chosen-search input' ).each( function() {
233
- var type = $( this ).parent().parent().parent().prev( 'select.give-select-chosen' ).data( 'search-type' );
234
  var placeholder = '';
235
 
236
- if ( 'form' === type ) {
237
  placeholder = give_vars.search_placeholder;
238
  } else {
239
  type = 'search_placeholder_' + type;
240
- if ( give_vars[type] ) {
241
  placeholder = give_vars[type];
242
  }
243
  }
244
- $( this ).attr( 'placeholder', placeholder );
245
 
246
  });
247
 
@@ -257,17 +302,17 @@ var give_setting_edit = false;
257
  *
258
  * @returns {string}
259
  */
260
- function give_unformat_currency( price, dp ) {
261
- price = accounting.unformat( price, give_vars.decimal_separator ).toString();
262
  dp = ( 'undefined' === dp ? false : dp );
263
 
264
  // Set default value for number of decimals.
265
- if ( false !== dp ) {
266
- price = parseFloat( price ).toFixed( dp );
267
  } else {
268
 
269
  // If price do not have decimal value then set default number of decimals.
270
- price = parseFloat( price ).toFixed( give_vars.currency_decimals );
271
  }
272
 
273
  return price;
@@ -279,20 +324,20 @@ var give_setting_edit = false;
279
 
280
  var GiveListDonation = {
281
 
282
- init: function() {
283
  this.deleteSingleDonation();
284
  this.resendSingleDonationReceipt();
285
  },
286
 
287
- deleteSingleDonation: function() {
288
- $( 'body' ).on( 'click', '.delete-single-donation', function() {
289
- return confirm( give_vars.delete_payment );
290
  });
291
  },
292
 
293
- resendSingleDonationReceipt: function() {
294
- $( 'body' ).on( 'click', '.resend-single-donation-receipt', function() {
295
- return confirm( give_vars.resend_receipt );
296
  });
297
  }
298
 
@@ -314,7 +359,7 @@ var give_setting_edit = false;
314
 
315
  edit_address: function () {
316
 
317
- // Update base state field based on selected base country
318
  $('select[name="give-payment-address[0][country]"]').change(function () {
319
  var $this = $(this);
320
 
@@ -325,8 +370,8 @@ var give_setting_edit = false;
325
  };
326
  $.post(ajaxurl, data, function (response) {
327
 
328
- // Show the states dropdown menu
329
- $this.closest( '.column-container' ).find( '#give-order-address-state-wrap' ).removeClass( 'give-hidden' );
330
 
331
  // Add support to zip fields.
332
  $this.closest( '.column-container' ).find( '.give-column' ).removeClass( 'column-full' );
@@ -341,7 +386,7 @@ var give_setting_edit = false;
341
  state_wrap.append( '<input type="text" name="give-payment-address[0][state]" value="' + response.default_state + '" class="give-edit-toggles medium-text"/>' );
342
 
343
  if ( typeof ( response.show_field ) !== undefined && false === response.show_field ) {
344
- // Hide the states dropdown menu
345
  $this.closest( '.column-container' ).find( '#give-order-address-state-wrap' ).addClass( 'give-hidden' );
346
 
347
  // Add support to zip fields.
@@ -530,7 +575,7 @@ var give_setting_edit = false;
530
  this.main_setting_update_notice();
531
  this.verify_settings();
532
  this.saveButtonTriggered();
533
- this.changeSettingsUnload();
534
  this.detectSettingsChange();
535
  },
536
 
@@ -549,14 +594,14 @@ var give_setting_edit = false;
549
  };
550
 
551
  $.post(ajaxurl, data, function (response) {
552
- // Show the states dropdown menu
553
- $this.closest( 'tr' ).next().show()
554
  if (typeof ( response.states_found ) != undefined && true == response.states_found) {
555
- $(':input[name="base_state"]').replaceWith( response.data );
556
  } else {
557
- if (typeof ( response.show_field ) != undefined && false == response.show_field ) {
558
- // Hide the states dropdown menu
559
- $this.closest( 'tr' ).next().hide();
560
  }
561
  $(':input[name="base_state"]').replaceWith('<input type="text" name="' + data.field_name + '" value="' + response.default_state + '" class="give-edit-toggles medium-text"/>');
562
  }
@@ -685,19 +730,17 @@ var give_setting_edit = false;
685
  *
686
  * @since 1.8.14
687
  */
688
- changeSettingsUnload: function() {
689
- if ( $( '.give-settings-setting-page' ).length > 0 ) {
690
 
691
- $( window ).bind( 'beforeunload', function( e ) {
692
 
693
- var confirmationMessage = give_vars.setting_not_save_message;
694
 
695
- if ( give_setting_edit ) {
696
- ( e || window.event ).returnValue = confirmationMessage; //Gecko + IE.
697
- return confirmationMessage; //Webkit, Safari, Chrome.
698
- }
699
- });
700
- }
701
  },
702
 
703
  /**
@@ -746,7 +789,7 @@ var give_setting_edit = false;
746
 
747
  date_options: function () {
748
 
749
- // Show hide extended date options
750
  $('#give-graphs-date-options').change(function () {
751
  var $this = $(this);
752
  if ('other' === $this.val()) {
@@ -760,7 +803,7 @@ var give_setting_edit = false;
760
 
761
  donors_export: function () {
762
 
763
- // Show / hide Donation Form option when exporting donors
764
  $('#give_donor_export_form').change(function () {
765
 
766
  var $this = $(this),
@@ -775,7 +818,7 @@ var give_setting_edit = false;
775
 
776
  var price_options_select = $('.give_price_options_select');
777
 
778
- // On Form Select, Check if Variable Prices Exist
779
  if (parseInt(form_id) != 0) {
780
  var data = {
781
  action: 'give_check_for_form_price_variations',
@@ -834,7 +877,7 @@ var give_setting_edit = false;
834
  forms.val(0);
835
  }
836
 
837
- current_forms = $( '.tools-form-dropdown-' + selected_type );
838
  current_forms.show();
839
  current_forms.find('.give-select-chosen').css({
840
  'width': 'auto',
@@ -873,7 +916,7 @@ var give_setting_edit = false;
873
  var has_errors = false;
874
 
875
  if (null === selection || 0 === selection) {
876
- // Needs to pick a method give_vars.batch_export_no_class
877
  notice_wrap.html('<div class="updated error"><p>' + give_vars.batch_export_no_class + '</p></div>');
878
  has_errors = true;
879
  }
@@ -882,7 +925,7 @@ var give_setting_edit = false;
882
 
883
  var selected_form = $('select[name="form_id"]').val();
884
  if (selected_form == 0) {
885
- // Needs to pick give_vars.batch_export_no_reqs
886
  notice_wrap.html('<div class="updated error"><p>' + give_vars.batch_export_no_reqs + '</p></div>');
887
  has_errors = true;
888
  }
@@ -922,6 +965,7 @@ var give_setting_edit = false;
922
  var data = $(this).serialize();
923
 
924
  submitButton.addClass('button-disabled');
 
925
  $(this).find('.notice-wrap').remove();
926
  $(this).append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>');
927
 
@@ -968,6 +1012,7 @@ var give_setting_edit = false;
968
  var export_form = $('.give-export-form').find('.give-progress').parent().parent();
969
  var notice_wrap = export_form.find('.notice-wrap');
970
  export_form.find('.button-disabled').removeClass('button-disabled');
 
971
  if (response.error) {
972
  var error_message = response.message;
973
  notice_wrap.html('<div class="updated error"><p>' + error_message + '</p></div>');
@@ -1029,28 +1074,34 @@ var give_setting_edit = false;
1029
  },
1030
 
1031
  submit: function () {
1032
- var self = this, step = 1, resume_update_step = 0;
1033
-
1034
- self.el.main_container = Give_Selector_Cache.get('#give-db-updates');
1035
- self.el.update_link = Give_Selector_Cache.get('.give-update-button a', self.el.main_container);
1036
- self.el.run_upload_container = Give_Selector_Cache.get('.give-run-database-update', self.el.progress_main_container);
1037
- self.el.progress_main_container = Give_Selector_Cache.get('.progress-container', self.el.main_container);
1038
- self.el.heading = Give_Selector_Cache.get('.update-message', self.el.progress_main_container);
1039
- self.el.progress_container = Give_Selector_Cache.get('.progress-content', self.el.progress_main_container);
 
 
 
 
 
 
1040
 
1041
- // Bailout
1042
- if (self.el.update_link.hasClass('active')) {
1043
  return;
1044
  }
1045
 
1046
- self.el.update_link.on('click', '', function (e) {
1047
  e.preventDefault();
1048
 
1049
- self.el.run_upload_container.find('.notice').remove();
1050
- self.el.run_upload_container.append('<div class="notice notice-error non-dismissible give-run-update-containt"><p> <a href="#" class="give-run-update-button button">'+ give_vars.db_update_confirmation_msg_button +'</a> ' + give_vars.db_update_confirmation_msg + '</p></div>');
1051
  });
1052
 
1053
- $( '#give-db-updates' ).on('click', 'a.give-run-update-button' ,function (e) {
1054
  e.preventDefault();
1055
 
1056
  if ($(this).hasClass('active')) {
@@ -1058,25 +1109,104 @@ var give_setting_edit = false;
1058
  }
1059
 
1060
  $(this).addClass('active').fadeOut();
1061
- self.el.update_link.addClass('active').fadeOut();
1062
- $( '#give-db-updates .give-run-update-containt' ).slideUp();
1063
 
1064
- self.el.progress_container.find('.notice-wrap').remove();
1065
- self.el.progress_container.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>');
1066
- self.el.progress_main_container.removeClass('give-hidden');
1067
 
1068
- resume_update_step = parseInt(self.el.heading.data('resume-update'));
1069
- if (resume_update_step) {
1070
- step = resume_update_step;
1071
- }
 
 
 
 
 
 
 
 
 
 
1072
 
1073
- // Start the process from first step of first update.
1074
- self.process_step(step, 1, self);
1075
  return false;
1076
  });
1077
  },
1078
 
1079
- process_step: function (step, update, self) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1080
 
1081
  give_setting_edit = true;
1082
 
@@ -1092,46 +1222,55 @@ var give_setting_edit = false;
1092
  success: function (response) {
1093
  give_setting_edit = false;
1094
 
1095
- // We need to get the actual in progress form, not all forms on the page
1096
- var notice_wrap = Give_Selector_Cache.get('.notice-wrap', self.el.progress_container, true);
1097
 
1098
  if (-1 !== $.inArray('success', Object.keys(response))) {
1099
  if (response.success) {
1100
- // Update steps info
1101
  if (-1 !== $.inArray('heading', Object.keys(response.data))) {
1102
- self.el.heading.html('<strong>' + response.data.heading + '</strong>');
1103
  }
1104
 
1105
- self.el.update_link.closest('p').remove();
1106
  notice_wrap.html('<div class="notice notice-success is-dismissible"><p>' + response.data.message + '</p><button type="button" class="notice-dismiss"></button></div>');
1107
 
1108
  } else {
1109
- // Update steps info
1110
  if (-1 !== $.inArray('heading', Object.keys(response.data))) {
1111
- self.el.heading.html('<strong>' + response.data.heading + '</strong>');
1112
  }
1113
 
1114
  notice_wrap.html('<div class="notice notice-error"><p>' + response.data.message + '</p></div>');
1115
 
1116
  setTimeout(function () {
1117
- self.el.update_link.removeClass('active').show();
1118
- self.el.progress_main_container.addClass('give-hidden');
1119
  }, 5000);
1120
  }
1121
  } else {
1122
- // Update progress.
1123
- $('.give-progress div', '#give-db-updates').animate({
1124
- width: response.data.percentage + '%',
1125
- }, 50, function () {
1126
- // Animation complete.
1127
- });
 
 
 
 
 
 
1128
 
1129
- // Update steps info
1130
- if (-1 !== $.inArray('heading', Object.keys(response.data))) {
1131
- self.el.heading.html('<strong>' + response.data.heading.replace('{update_count}', self.el.heading.data('update-count')) + '</strong>');
1132
- }
1133
 
1134
- self.process_step(parseInt(response.data.step), response.data.update, self);
 
 
 
 
1135
  }
1136
 
1137
  }
@@ -1166,7 +1305,6 @@ var give_setting_edit = false;
1166
  */
1167
  var handle_status_change = function () {
1168
 
1169
- //When sta
1170
  $('select[name="give-payment-status"]').on('change', function () {
1171
 
1172
  var status = $(this).val();
@@ -1182,39 +1320,49 @@ var give_setting_edit = false;
1182
  /**
1183
  * Donor management screen JS
1184
  */
1185
- var Give_Donor = {
1186
 
1187
  init: function () {
1188
- this.edit_donor();
1189
  this.add_email();
1190
- this.remove_user();
1191
- this.cancel_edit();
1192
- this.change_country();
1193
  this.add_note();
1194
  this.delete_checked();
 
 
1195
  this.bulkDeleteDonor();
1196
- $( 'body' ).on( 'click', '#give-donors-filter .bulkactions input[type="submit"]', this.handleBulkActions ) ;
 
 
 
 
 
 
 
1197
  },
1198
- edit_donor: function () {
 
1199
  $('body').on('click', '#edit-donor', function (e) {
1200
  e.preventDefault();
1201
  $('#give-donor-card-wrapper .editable').hide();
1202
  $('#give-donor-card-wrapper .edit-item').fadeIn().css('display', 'block');
1203
- $('.give-select-chosen').css('width', '100%');
1204
  });
1205
  },
1206
- remove_user: function () {
 
1207
  $('body').on('click', '#disconnect-donor', function (e) {
1208
  e.preventDefault();
1209
 
1210
  if (!confirm(give_vars.disconnect_user)) {
1211
  return false;
1212
  }
1213
- var customer_id = $('input[name="customerinfo[id]"]').val();
 
1214
 
1215
  var postData = {
1216
  give_action: 'disconnect-userid',
1217
- customer_id: customer_id,
1218
  _wpnonce: $('#edit-donor-info #_wpnonce').val()
1219
  };
1220
 
@@ -1224,7 +1372,8 @@ var give_setting_edit = false;
1224
 
1225
  });
1226
  },
1227
- cancel_edit: function () {
 
1228
  $('body').on('click', '#give-edit-donor-cancel', function (e) {
1229
  e.preventDefault();
1230
  $('#give-donor-card-wrapper .edit-item').hide();
@@ -1232,34 +1381,7 @@ var give_setting_edit = false;
1232
  $('.give_user_search_results').html('');
1233
  });
1234
  },
1235
- change_country: function () {
1236
- $('select[name="customerinfo[country]"]').change(function () {
1237
- var $this = $(this);
1238
- var data = {
1239
- action: 'give_get_states',
1240
- country: $this.val(),
1241
- field_name: 'customerinfo[state]'
1242
- };
1243
-
1244
- $.post(ajaxurl, data, function (response) {
1245
- // Show the states dropdown menu
1246
- $this.closest( '.donor-address' ).find( '[name="customerinfo[state]"]' ).removeClass( 'give-hidden' );
1247
-
1248
- if (typeof ( response.states_found ) != undefined && true == response.states_found) {
1249
- $(':input[name="customerinfo[state]"]').replaceWith(response.data);
1250
- } else {
1251
- $(':input[name="customerinfo[state]"]').replaceWith('<input type="text" name="' + data.field_name + '" value="' + response.default_state + '" class="give-edit-toggles medium-text"/>');
1252
-
1253
- if (typeof ( response.show_field ) != undefined && false == response.show_field ) {
1254
- // Hide the states dropdown menu
1255
- $this.closest( '.donor-address' ).find( '[name="customerinfo[state]"]' ).addClass( 'give-hidden' );
1256
- }
1257
- }
1258
- });
1259
 
1260
- return false;
1261
- });
1262
- },
1263
  add_note: function () {
1264
  $('body').on('click', '#add-donor-note', function (e) {
1265
  e.preventDefault();
@@ -1353,26 +1475,261 @@ var give_setting_edit = false;
1353
  });
1354
  },
1355
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1356
  bulkDeleteDonor: function() {
1357
- var $body = $( 'body' );
1358
 
1359
  // Cancel button click event for donor.
1360
- $body.on( 'click', '#give-bulk-delete-cancel', function( e ) {
1361
- $( this ).closest( 'tr' ).hide();
1362
- $( '.give-skip-donor' ).trigger( 'click' );
1363
  e.preventDefault();
1364
  });
1365
 
1366
  // Select All checkbox.
1367
- $body.on( 'click', '#cb-select-all-1, #cb-select-all-2', function() {
1368
 
1369
- var selectAll = $( this );
1370
 
1371
  // Loop through donor selector checkbox.
1372
- $.each( $( '.donor-selector' ), function() {
1373
 
1374
- var donorId = $( this ).val(),
1375
- donorName = $( this ).data( 'name' ),
1376
  donorHtml = '<div id="give-donor-' + donorId + '" data-id="' + donorId + '">' +
1377
  '<a class="give-skip-donor" title="' + give_vars.remove_from_bulk_delete + '">X</a>' +
1378
  donorName + '</div>';
@@ -1386,43 +1743,43 @@ var give_setting_edit = false;
1386
  });
1387
 
1388
  // On checking checkbox, add to bulk delete donor.
1389
- $body.on( 'click', '.donor-selector', function() {
1390
- var donorId = $( this ).val(),
1391
- donorName = $( this ).data( 'name' ),
1392
  donorHtml = '<div id="give-donor-' + donorId + '" data-id="' + donorId + '">' +
1393
  '<a class="give-skip-donor" title="' + give_vars.remove_from_bulk_delete + '">X</a>' +
1394
  donorName + '</div>';
1395
 
1396
- if( $( this ).is( ':checked' ) ) {
1397
- $( '#give-bulk-donors' ).prepend( donorHtml );
1398
  } else {
1399
- $( '#give-bulk-donors' ).find( '#give-donor-' + donorId ).remove();
1400
  }
1401
  });
1402
 
1403
  // CheckBox click event to confirm deletion of donor.
1404
- $body.on( 'click', '#give-delete-donor-confirm', function() {
1405
- if( $( this ).is( ':checked' ) ) {
1406
- $( '#give-bulk-delete-button' ).removeAttr( 'disabled' );
1407
  } else {
1408
- $( '#give-bulk-delete-button' ).attr( 'disabled', true );
1409
- $( '#give-delete-donor-records' ).removeAttr( 'checked' );
1410
  }
1411
  });
1412
 
1413
  // CheckBox click event to delete records with donor.
1414
- $body.on( 'click', '#give-delete-donor-records', function() {
1415
- if( $( this ).is(':checked') ) {
1416
- $( '#give-delete-donor-confirm' ).attr( 'checked', 'checked' );
1417
- $( '#give-bulk-delete-button' ).removeAttr( 'disabled' );
1418
  }
1419
  });
1420
 
1421
  // Skip Donor from Bulk Delete List.
1422
- $body.on( 'click', '.give-skip-donor', function() {
1423
- var donorId = $( this ).closest( 'div' ).data( 'id' );
1424
- $( '#give-donor-' + donorId ).remove();
1425
- $( '#donor-' + donorId ).find( 'input[type="checkbox"]' ).removeAttr( 'checked' );
1426
  });
1427
 
1428
  // Clicking Event to Delete Single Donor.
@@ -1486,7 +1843,6 @@ var give_setting_edit = false;
1486
  }
1487
 
1488
  e.preventDefault();
1489
-
1490
  }
1491
  };
1492
 
@@ -1658,13 +2014,13 @@ var give_setting_edit = false;
1658
  // Cache input field.
1659
  $give_upload_button = $(this);
1660
 
1661
- // Set modal config
1662
  switch ($(this).data('field-type')) {
1663
  case 'media':
1664
  $media_modal_config = {
1665
  title: give_vars.metabox_fields.media.button_title,
1666
  button: {text: give_vars.metabox_fields.media.button_title},
1667
- multiple: false, // Set to true to allow multiple files to be selected
1668
  library: {type: 'image'}
1669
  };
1670
  break;
@@ -1678,19 +2034,19 @@ var give_setting_edit = false;
1678
  }
1679
 
1680
  var editing = jQuery(this).closest('.give-field-wrap').find('.give-input-field').attr('editing');
1681
- if ( 'undefined' !== typeof( editing ) ) {
1682
  wp.media.controller.Library.prototype.defaults.contentUserSetting = false;
1683
  }
1684
 
1685
- var $library = jQuery( this ).closest('.give-field-wrap').find('.give-input-field').attr('library');
1686
  if ('undefined' !== typeof( $library ) && '' !== $library) {
1687
  $media_modal_config.library = {type: $library};
1688
  }
1689
 
1690
- // Extend the wp.media object
1691
  give_media_uploader = wp.media($media_modal_config);
1692
 
1693
- // When a file is selected, grab the URL and set it as the text field's value
1694
  give_media_uploader.on('select', function () {
1695
  var attachment = give_media_uploader.state().get('selection').first().toJSON(),
1696
  $input_field = $give_upload_button.prev(),
@@ -1702,17 +2058,17 @@ var give_setting_edit = false;
1702
  $input_field.val(fvalue);
1703
 
1704
  // Update attachment id field value if fvalue is not set to id.
1705
- if( 'id' !== $give_upload_button.data('fvalue') ) {
1706
  var attachment_id_field_name = 'input[name="' + $input_field.attr('name') + '_id"]',
1707
- id_field = $input_field.closest('tr').next('tr').find( attachment_id_field_name );
1708
 
1709
- if( id_field.length ){
1710
- $input_field.closest('tr').next('tr').find( attachment_id_field_name ).val( attachment.id );
1711
  }
1712
  }
1713
  });
1714
 
1715
- // Open the uploader dialog
1716
  give_media_uploader.open();
1717
  });
1718
 
@@ -1738,7 +2094,7 @@ var give_setting_edit = false;
1738
  // Set the attachment URL to our custom image input field.
1739
  $image_container.find('img').attr('src', attachment.url);
1740
 
1741
- // Hide the add image link
1742
  $image_container.removeClass('give-hidden');
1743
  });
1744
 
@@ -1753,13 +2109,13 @@ var give_setting_edit = false;
1753
  $image_container = $(this).parent(),
1754
  $image_input_field = $('input[type="text"]', $parent);
1755
 
1756
- // Clear out the preview image
1757
  $image_container.addClass('give-hidden');
1758
 
1759
  // Remove image link from input field.
1760
  $image_input_field.val('');
1761
 
1762
- // Hide the add image link
1763
  $('img', $image_container).attr('src', '');
1764
  });
1765
  },
@@ -1947,7 +2303,7 @@ var give_setting_edit = false;
1947
  $item.wpColorPicker();
1948
  });
1949
 
1950
- // Load WordPress editor by ajax..
1951
  var wysiwyg_editor_container = $('div[data-wp-editor]', new_row);
1952
 
1953
  if (wysiwyg_editor_container.length) {
@@ -2125,83 +2481,64 @@ var give_setting_edit = false;
2125
  /**
2126
  * Handle row count and field count for repeatable field.
2127
  */
2128
- var handle_metabox_repeater_field_row_count = function( container, new_row ) {
2129
- var row_count = $( container ).attr( 'data-rf-row-count' ),
2130
- $container = $( container ),
2131
- $parent = $container.parents( '.give-repeatable-field-section' );
2132
 
2133
  row_count++;
2134
 
2135
  // Set name for fields.
2136
- $( '*', new_row ).each( function() {
2137
- $.each( this.attributes, function( index, element ) {
2138
- this.value = this.value.replace( '{{row-count-placeholder}}', row_count - 1 );
2139
  });
2140
  });
2141
 
2142
  // Set row counter.
2143
- $( container ).attr( 'data-rf-row-count', row_count );
2144
 
2145
  // Fire event: Row added.
2146
- $parent.trigger( 'repeater_field_new_row_added', [container, new_row] );
2147
  };
2148
 
2149
  /**
2150
  * Handle row remove for repeatable field.
2151
  */
2152
  var handle_metabox_repeater_field_row_remove = function (container) {
2153
- var $container = $( container ),
2154
- $parent = $container.parents( '.give-repeatable-field-section' ),
2155
- row_count = $( container ).attr( 'data-rf-row-count' );
2156
 
2157
  // Reduce row count.
2158
- $container.attr( 'data-rf-row-count', --row_count );
2159
 
2160
  // Fire event: Row deleted.
2161
- $parent.trigger( 'repeater_field_row_deleted' );
2162
  };
2163
 
2164
  /**
2165
  * Add number suffix to repeater group.
2166
  */
2167
- var handle_repeater_group_add_number_suffix = function( $parent ) {
2168
 
2169
  // Bailout: check if auto group numbering is on or not.
2170
- if ( ! parseInt( $parent.data( 'group-numbering' ) ) ) {
2171
  return;
2172
  }
2173
 
2174
- var $header_title_container = $( '.give-row-head h2 span', $parent ),
2175
- header_text_prefix = $header_title_container.data( 'header-title' );
2176
 
2177
- $header_title_container.each( function( index, item ) {
2178
- var $item = $( item );
2179
 
2180
  // Bailout: do not rename header title in fields template.
2181
- if ( $item.parents( '.give-template' ).length ) {
2182
  return;
2183
  }
2184
 
2185
- $item.html( header_text_prefix + ': ' + index );
2186
- });
2187
- };
2188
-
2189
- /**
2190
- * Initialize qTips
2191
- */
2192
- var InitializeQtips = function() {
2193
- jQuery( '[data-tooltip!=""]' ).qtip({ // Grab all elements with a non-blank data-tooltip attr.
2194
- content: {
2195
- attr: 'data-tooltip' // Tell qTip2 to look inside this attr for its content.
2196
- },
2197
- style: {classes: 'qtip-rounded qtip-tipsy'},
2198
- events: {
2199
- show: function( event, api ) {
2200
- var $el = $( api.elements.target[0]);
2201
- $el.qtip( 'option', 'position.my', ( $el.data( 'tooltip-my-position' ) === undefined ) ? 'bottom center' : $el.data( 'tooltip-my-position' ) );
2202
- $el.qtip( 'option', 'position.at', ( $el.data( 'tooltip-target-position' ) === undefined ) ? 'top center' : $el.data( 'tooltip-target-position' ) );
2203
- }
2204
- }
2205
  });
2206
  };
2207
 
@@ -2209,15 +2546,15 @@ var give_setting_edit = false;
2209
  * Payment history listing page js
2210
  */
2211
  var GivePaymentHistory = {
2212
- init: function() {
2213
- $( 'body' ).on( 'click', '#give-payments-filter input[type="submit"]', this.handleBulkActions ) ;
2214
  },
2215
 
2216
- handleBulkActions: function() {
2217
- var currentAction = $( this ).closest( '.tablenav' ).find( 'select' ).val(),
2218
- currentActionLabel = $( this ).closest( '.tablenav' ).find( 'option[value="' + currentAction + '"]' ).text(),
2219
- $payments = $( 'input[name="payment[]"]:checked' ).length,
2220
- isStatusTypeAction = ( -1 !== currentAction.indexOf( 'set-status-' ) ),
2221
  confirmActionNotice = '',
2222
  status = '';
2223
 
@@ -2226,18 +2563,18 @@ var give_setting_edit = false;
2226
  'set-to-status' :
2227
  currentAction;
2228
 
2229
- if ( Object.keys( give_vars.donations_bulk_action ).length ) {
2230
- for ( status in give_vars.donations_bulk_action ) {
2231
- if ( status === currentAction ) {
2232
 
2233
  // Get status text if current action types is status.
2234
  confirmActionNotice = isStatusTypeAction ?
2235
- give_vars.donations_bulk_action[currentAction].zero.replace( '{status}', currentActionLabel.replace( 'Set To ', '' ) ) :
2236
  give_vars.donations_bulk_action[currentAction].zero;
2237
 
2238
  // Check if admin selected any donations or not.
2239
- if ( ! parseInt( $payments ) ) {
2240
- alert( confirmActionNotice );
2241
  return false;
2242
  }
2243
 
@@ -2247,9 +2584,9 @@ var give_setting_edit = false;
2247
  give_vars.donations_bulk_action[currentAction].single;
2248
 
2249
  // Trigger Admin Confirmation PopUp.
2250
- return window.confirm( confirmActionNotice
2251
- .replace( '{payment_count}', $payments )
2252
- .replace( '{status}', currentActionLabel.replace( 'Set To ', '' ) )
2253
  );
2254
  }
2255
  }
@@ -2260,36 +2597,80 @@ var give_setting_edit = false;
2260
  };
2261
 
2262
  // On DOM Ready.
2263
- $( function() {
2264
 
2265
  give_dismiss_notice();
2266
  enable_admin_datepicker();
2267
  handle_status_change();
2268
  setup_chosen_give_selects();
 
2269
  GiveListDonation.init();
2270
  Give_Edit_Donation.init();
2271
  Give_Settings.init();
2272
  Give_Reports.init();
2273
- Give_Donor.init();
2274
  API_Screen.init();
2275
  Give_Export.init();
2276
  Give_Updates.init();
2277
  Edit_Form_Screen.init();
2278
  GivePaymentHistory.init();
2279
 
2280
- InitializeQtips();
2281
 
2282
  // Footer.
2283
- $( 'a.give-rating-link' ).click( function() {
2284
- jQuery( this ).parent().text( jQuery( this ).data( 'rated' ) );
2285
  });
2286
 
2287
- /**
2288
- * Amount format validation form price field setting
2289
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2290
 
2291
  // This function uses for adding qtip to money/price field.
2292
- function give_add_qtip( $fields ) {
2293
 
2294
  // Add qtip to all existing money input fields.
2295
  $fields.each(function () {
@@ -2307,54 +2688,34 @@ var give_setting_edit = false;
2307
  });
2308
  }
2309
 
2310
- var $give_money_fields = $('input.give-money-field, input.give-price-field');
2311
- var thousand_separator = give_vars.thousands_separator,
2312
- decimal_separator = give_vars.decimal_separator,
2313
  thousand_separator_count = '',
2314
- alphabet_count = '',
2315
- price_string = '',
2316
 
2317
  // Thousand separation limit in price depends upon decimal separator symbol.
2318
  // If thousand separator is equal to decimal separator then price does not have more then 1 thousand separator otherwise limit is zero.
2319
  thousand_separator_limit = ( decimal_separator === thousand_separator ? 1 : 0 );
2320
 
2321
- // Add qtip to all existing money input fields.
2322
- give_add_qtip($give_money_fields);
2323
-
2324
- // Add qtip to new created money/price input field.
2325
- $('#_give_donation_levels_repeat').on('click', 'button.cmb-add-group-row', function () {
2326
- window.setTimeout(
2327
- function () {
2328
-
2329
- // Update input filed selector.
2330
- $give_money_fields = $('input.give-money-field, input.give-price-field');
2331
-
2332
- // Add qtip to all existing money input fields.
2333
- give_add_qtip($give_money_fields);
2334
- },
2335
- 100
2336
- );
2337
- });
2338
-
2339
  // Check & show message on keyup event.
2340
- $('#poststuff').on('keyup', 'input.give-money-field, input.give-price-field', function () {
 
 
 
2341
 
2342
  // Count thousand separator in price string.
2343
  thousand_separator_count = ( $(this).val().match(new RegExp(thousand_separator, 'g')) || [] ).length;
2344
  alphabet_count = ( $(this).val().match(new RegExp('[a-z]', 'g')) || [] ).length;
2345
 
2346
  // Show qtip conditionally if thousand separator detected on price string.
2347
- if (
2348
- ( -1 !== $(this).val().indexOf(thousand_separator) )
2349
- && ( thousand_separator_limit < thousand_separator_count )
2350
- ) {
2351
- $(this).qtip('show');
2352
  } else if (alphabet_count) {
2353
-
2354
- // Show qtip if user entered a number with alphabet letter.
2355
- $(this).qtip('show');
2356
  } else {
2357
- $(this).qtip('hide');
2358
  }
2359
 
2360
  // Reset thousand separator count.
@@ -2362,7 +2723,7 @@ var give_setting_edit = false;
2362
  });
2363
 
2364
  // Format price sting of input field on focusout.
2365
- $('#poststuff').on('focusout', 'input.give-money-field, input.give-price-field', function () {
2366
  price_string = give_unformat_currency($(this).val(), false);
2367
 
2368
  // Back out.
@@ -2387,6 +2748,13 @@ var give_setting_edit = false;
2387
  $(this).val(price_string);
2388
  });
2389
 
 
 
 
 
 
 
 
2390
  /**
2391
  * Responsive setting tab features.
2392
  */
@@ -2410,6 +2778,37 @@ var give_setting_edit = false;
2410
  }
2411
  });
2412
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2413
  // Render setting tab.
2414
  give_render_responsive_tabs();
2415
  });
@@ -2426,22 +2825,22 @@ jQuery(window).resize(function () {
2426
  * Render responsive tabs
2427
  */
2428
  function give_render_responsive_tabs() {
2429
- var $setting_page_form = jQuery('.give-settings-page'),
2430
- $main_tab_nav = jQuery('.give-nav-tab-wrapper'),
2431
  setting_page_form_width = $setting_page_form.width(),
2432
- $sub_tab_nav_wrapper = jQuery('.give-sub-nav-tab-wrapper'),
2433
- $sub_tab_nav = jQuery('nav', $sub_tab_nav_wrapper),
2434
- $setting_tab_links = jQuery('.give-nav-tab-wrapper>a:not(give-not-tab)'),
2435
- $show_tabs = [],
2436
- $hide_tabs = [],
2437
- tab_width = 0;
2438
-
2439
- if (600 < jQuery(window).outerWidth()) {
2440
  tab_width = 200;
2441
  }
2442
 
2443
  // Bailout.
2444
- if (!$setting_page_form.length) {
2445
  return false;
2446
  }
2447
 
@@ -2452,78 +2851,82 @@ function give_render_responsive_tabs() {
2452
  });
2453
 
2454
  // Show all tab if anyone hidden to calculate correct tab width.
2455
- $setting_tab_links.removeClass('give-hidden');
2456
 
2457
  var refactor_tabs = new Promise(
2458
- function (resolve, reject) {
 
2459
  // Collect tabs to show or hide.
2460
- jQuery.each($setting_tab_links, function (index, $tab_link) {
2461
- $tab_link = jQuery($tab_link);
2462
- tab_width = tab_width + parseInt($tab_link.outerWidth());
2463
 
2464
- if (tab_width < setting_page_form_width) {
2465
- $show_tabs.push($tab_link);
2466
  } else {
2467
- $hide_tabs.push($tab_link);
2468
  }
2469
  });
2470
 
2471
- resolve(true);
2472
  }
2473
  );
2474
 
2475
- refactor_tabs.then(function (is_refactor_tabs) {
 
2476
  // Remove current tab from sub menu and add this to main menu if exist and get last tab from main menu and add this to sub menu.
2477
- if ($hide_tabs.length && ( -1 != window.location.search.indexOf('&tab=') )) {
2478
  var $current_tab_nav = {},
2479
- query_params = get_url_params();
2480
 
2481
- $hide_tabs = $hide_tabs.filter(function ($tab_link) {
2482
- var is_current_nav_item = ( -1 != parseInt($tab_link.attr('href').indexOf('&tab=' + query_params['tab'])) );
2483
 
2484
- if (is_current_nav_item) {
2485
  $current_tab_nav = $tab_link;
2486
  }
2487
 
2488
- return ( !is_current_nav_item );
2489
  });
2490
 
2491
- if ($current_tab_nav.length) {
2492
- $hide_tabs.unshift($show_tabs.pop());
2493
- $show_tabs.push($current_tab_nav);
2494
  }
2495
  }
2496
 
2497
- var show_tabs = new Promise(function (resolve, reject) {
 
2498
  // Show main menu tabs.
2499
- if ($show_tabs.length) {
2500
- jQuery.each($show_tabs, function (index, $tab_link) {
2501
- $tab_link = jQuery($tab_link);
2502
 
2503
- if ($tab_link.hasClass('give-hidden')) {
2504
- $tab_link.removeClass('give-hidden');
2505
  }
2506
  });
2507
  }
2508
 
2509
- resolve(true);
2510
  });
2511
 
2512
- show_tabs.then(function (is_show_tabs) {
 
2513
  // Hide sub menu tabs.
2514
- if ($hide_tabs.length) {
2515
- $sub_tab_nav.html('');
2516
 
2517
- jQuery.each($hide_tabs, function (index, $tab_link) {
2518
- $tab_link = jQuery($tab_link);
2519
- if( ! $tab_link.hasClass( 'nav-tab-active' ) ) {
2520
- $tab_link.addClass('give-hidden');
2521
  }
2522
- $tab_link.clone().removeClass().appendTo($sub_tab_nav);
2523
  });
2524
 
2525
- if (!jQuery('.give-sub-nav-tab-wrapper', $main_tab_nav).length) {
2526
- $main_tab_nav.append($sub_tab_nav_wrapper);
2527
  }
2528
 
2529
  $sub_tab_nav_wrapper.show();
@@ -2555,12 +2958,12 @@ function get_url_params() {
2555
  * @since 1.8.17
2556
  */
2557
  function give_on_core_settings_import_start() {
2558
- var $form = jQuery( 'form.tools-setting-page-import' );
2559
- var progress = $form.find( '.give-progress' );
2560
 
2561
  give_setting_edit = true;
2562
 
2563
- jQuery.ajax( {
2564
  type: 'POST',
2565
  url: ajaxurl,
2566
  data: {
@@ -2568,20 +2971,20 @@ function give_on_core_settings_import_start() {
2568
  fields: $form.serialize()
2569
  },
2570
  dataType: 'json',
2571
- success: function ( response ) {
2572
  give_setting_edit = false;
2573
- if ( true === response.success ) {
2574
- jQuery( progress ).find( 'div' ).width( response.percentage + '%' );
2575
  } else {
2576
- alert( give_vars.error_message );
2577
  }
2578
  window.location = response.url;
2579
  },
2580
  error: function () {
2581
  give_setting_edit = false;
2582
- alert( give_vars.error_message );
2583
  }
2584
- } );
2585
  }
2586
 
2587
  /**
9
  */
10
 
11
  jQuery.noConflict();
12
+ // Provided access to global level.
13
  var give_setting_edit = false;
14
+ (function ($) {
15
+ /**
16
+ * Show/Hide ajax loader.
17
+ *
18
+ * @since 2.0
19
+ *
20
+ * @param $parent
21
+ * @param args
22
+ */
23
+ var giveAjaxLoader = function ($parent, args) {
24
+ args = jQuery.extend(
25
+ {
26
+ wrapper: true,
27
+ show: false
28
+ },
29
+ args
30
+ );
31
+
32
+ var $loaderParent = args.wrapper ? $('.give-spinner-wrapper', $parent) : {},
33
+ $loader = $('.give-spinner', $parent);
34
+
35
+ // Show loader.
36
+ if (args.show) {
37
+ if ($loaderParent.length) {
38
+ $loaderParent.addClass('is-active');
39
+ }
40
+
41
+ $loader.addClass('is-active');
42
+ return;
43
+ }
44
+
45
+ // Hide loader.
46
+ if ($loaderParent.length) {
47
+ $loaderParent.removeClass('is-active');
48
+ }
49
+
50
+ $loader.removeClass('is-active');
51
+ };
52
 
53
  /**
54
  * Onclick remove give-message parameter from url
55
  *
56
+ * @since 1.8.14
57
  */
58
+ var give_dismiss_notice = function () {
59
+ $('body').on('click', 'button.notice-dismiss', function () {
60
+ if ('give-invalid-license' !== jQuery(this).closest('div.give-notice').data('notice-id')) {
61
  give_remove_give_message();
62
  }
63
+ });
64
  };
65
 
66
  /**
71
  var give_remove_give_message = function () {
72
  var parameter = 'give-message',
73
  url = document.location.href,
74
+ urlparts = url.split('?');
75
 
76
+ if (urlparts.length >= 2) {
77
  var urlBase = urlparts.shift();
78
+ var queryString = urlparts.join("?");
79
 
80
+ var prefix = encodeURIComponent(parameter) + '=';
81
+ var pars = queryString.split(/[&;]/g);
82
+ for (var i = pars.length; i-- > 0;) {
83
+ if (pars[i].lastIndexOf(prefix, 0) !== -1) {
84
+ pars.splice(i, 1);
85
  }
86
  }
87
+ url = urlBase + '?' + pars.join('&');
88
+ window.history.pushState('', document.title, url); // added this line to push the new url directly to url bar .
89
  }
90
  return url;
91
  };
94
  * Setup Admin Datepicker
95
  * @since: 1.0
96
  */
97
+ var enable_admin_datepicker = function () {
98
 
99
  // Date picker.
100
+ if ($('.give_datepicker').length > 0) {
101
  var dateFormat = 'mm/dd/yy';
102
+ $('.give_datepicker').datepicker({
103
  dateFormat: dateFormat
104
  });
105
  }
108
  /**
109
  * Setup Pretty Chosen Select Fields
110
  */
111
+ var setup_chosen_give_selects = function () {
112
 
113
  // Setup Chosen Selects.
114
+ var $give_chosen_containers = $('.give-select-chosen');
115
 
116
  // Add loader with each input field.
117
+ $give_chosen_containers.on('chosen:ready', function () {
118
+ $(this).next('.chosen-container')
119
+ .find('input.chosen-search-input')
120
+ .after('<span class="spinner"></span>');
121
  });
122
 
123
  // No results returned from search trigger.
124
+ $give_chosen_containers.on('chosen:no_results', function () {
125
+ var $container = $(this).next('.chosen-container'),
126
+ $no_results_li = $container.find('li.no-results'),
127
  error_string = '';
128
 
129
+ if ($container.hasClass('give-select-chosen-ajax') && $no_results_li.length) {
130
+ error_string = give_vars.chosen.ajax_search_msg.replace('{search_term}', '"' + $('input', $container).val() + '"');
131
  } else {
132
+ error_string = give_vars.chosen.no_results_msg.replace('{search_term}', '"' + $('input', $container).val() + '"');
133
  }
134
 
135
+ $no_results_li.html(error_string);
136
 
137
  });
138
 
140
  $give_chosen_containers.chosen({
141
  inherit_select_classes: true,
142
  placeholder_text_single: give_vars.one_option,
143
+ placeholder_text_multiple: give_vars.one_or_more_option
144
  });
145
 
146
+ // Fix: Chosen JS - Zero Width Issue.
147
+ // @see https://github.com/harvesthq/chosen/issues/472#issuecomment-344414059
148
+ $( '.chosen-container' ).each( function() {
149
+ if ( 0 === $( this ).width() ) {
150
+ $( this ).css( 'width', '100%' );
151
+ }
152
+ });
153
+
154
+ // This fixes the Chosen box being 0px wide when the thickbox is opened.
155
  $( '#post' ).on( 'click', '.give-thickbox', function() {
156
  $( '.give-select-chosen', '#choose-give-form' ).css( 'width', '100%' );
157
  });
158
 
159
  // Variables for setting up the typing timer.
160
+ var typingTimer; // Timer identifier.
161
+ var doneTypingInterval = 342; // Time in ms, Slow - 521ms, Moderate - 342ms, Fast - 300ms.
162
 
163
+ // Replace options with search results.
164
+ $(document.body).on('keyup', '.give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input', function (e) {
165
 
166
+ var val = $(this).val(),
167
+ $container = $(this).closest('.give-select-chosen'),
168
  select = $container.prev(),
169
+ $search_field = $container.find('input[type="text"]'),
170
+ variations = $container.hasClass('variations'),
171
  lastKey = e.which,
172
  search_type = 'give_forms_search';
173
 
174
  // Detect if we have a defined search type, otherwise default to donation forms.
175
+ if ($container.prev().data('search-type')) {
176
 
177
  // Don't trigger AJAX if this select has all options loaded.
178
+ if ('no_ajax' === select.data('search-type')) {
179
  return;
180
  }
181
 
182
+ search_type = 'give_' + select.data('search-type') + '_search';
183
  }
184
 
185
  // Don't fire if short or is a modifier key (shift, ctrl, apple command key, or arrow keys).
186
  if (
187
  val.length <= 3 ||
188
+ !search_type.length ||
189
  (
190
+ ( 9 === lastKey ) || // Tab.
191
+ ( 13 === lastKey ) || // Enter.
192
+ ( 16 === lastKey ) || // Shift.
193
+ ( 17 === lastKey ) || // Ctrl.
194
+ ( 18 === lastKey ) || // Alt.
195
+ ( 19 === lastKey ) || // Pause, Break.
196
+ ( 20 === lastKey ) || // CapsLock.
197
+ ( 27 === lastKey ) || // Esc.
198
+ ( 33 === lastKey ) || // Page Up.
199
+ ( 34 === lastKey ) || // Page Down.
200
+ ( 35 === lastKey ) || // End.
201
+ ( 36 === lastKey ) || // Home.
202
+ ( 37 === lastKey ) || // Left arrow.
203
+ ( 38 === lastKey ) || // Up arrow.
204
+ ( 39 === lastKey ) || // Right arrow.
205
+ ( 40 === lastKey ) || // Down arrow.
206
+ ( 44 === lastKey ) || // PrntScrn.
207
+ ( 45 === lastKey ) || // Insert.
208
+ ( 144 === lastKey ) || // NumLock.
209
+ ( 145 === lastKey ) || // ScrollLock.
210
+ ( 91 === lastKey ) || // WIN Key (Start).
211
+ ( 93 === lastKey ) || // WIN Menu.
212
+ ( 224 === lastKey ) || // Command key.
213
+ ( 112 <= lastKey && 123 >= lastKey ) // F1 to F12 lastKey.
214
  )
215
  ) {
216
  return;
217
  }
218
+ clearTimeout(typingTimer);
219
+ $container.addClass('give-select-chosen-ajax');
220
 
221
  typingTimer = setTimeout(
222
+ function () {
223
  $.ajax({
224
  type: 'GET',
225
  url: ajaxurl,
228
  s: val
229
  },
230
  dataType: 'json',
231
+ beforeSend: function () {
232
+ select.closest('ul.chosen-results').empty();
233
+ $search_field.prop('disabled', true);
234
  },
235
+ success: function (data) {
236
 
237
+ $container.removeClass('give-select-chosen-ajax');
238
 
239
  // Remove all options but those that are selected.
240
+ $('option:not(:selected)', select).remove();
241
 
242
+ if (data.length) {
243
+ $.each(data, function (key, item) {
244
 
245
  // Add any option that doesn't already exist.
246
+ if (!$('option[value="' + item.id + '"]', select).length) {
247
+ select.prepend('<option value="' + item.id + '">' + item.name + '</option>');
248
  }
249
  });
250
 
251
  // Trigger update event.
252
+ $container.prev('select.give-select-chosen').trigger('chosen:updated');
253
 
254
  } else {
255
 
256
  // Trigger no result message event.
257
+ $container.prev('select.give-select-chosen').trigger('chosen:no_results');
258
  }
259
 
260
  // Ensure the original query is retained within the search input.
261
+ $search_field.prop('disabled', false);
262
+ $search_field.val(val).focus();
263
 
264
  }
265
+ }).fail(function (response) {
266
+ if (window.console && window.console.log) {
267
+ console.log(response);
268
  }
269
+ }).done(function (response) {
270
+ $search_field.prop('disabled', false);
271
  });
272
  },
273
  doneTypingInterval
274
  );
275
  });
276
 
277
+ $('.give-select-chosen .chosen-search input').each(function () {
278
+ var type = $(this).parent().parent().parent().prev('select.give-select-chosen').data('search-type');
279
  var placeholder = '';
280
 
281
+ if ('form' === type) {
282
  placeholder = give_vars.search_placeholder;
283
  } else {
284
  type = 'search_placeholder_' + type;
285
+ if (give_vars[type]) {
286
  placeholder = give_vars[type];
287
  }
288
  }
289
+ $(this).attr('placeholder', placeholder);
290
 
291
  });
292
 
302
  *
303
  * @returns {string}
304
  */
305
+ function give_unformat_currency(price, dp) {
306
+ price = accounting.unformat(price, give_vars.decimal_separator).toString();
307
  dp = ( 'undefined' === dp ? false : dp );
308
 
309
  // Set default value for number of decimals.
310
+ if (false !== dp) {
311
+ price = parseFloat(price).toFixed(dp);
312
  } else {
313
 
314
  // If price do not have decimal value then set default number of decimals.
315
+ price = parseFloat(price).toFixed(give_vars.currency_decimals);
316
  }
317
 
318
  return price;
324
 
325
  var GiveListDonation = {
326
 
327
+ init: function () {
328
  this.deleteSingleDonation();
329
  this.resendSingleDonationReceipt();
330
  },
331
 
332
+ deleteSingleDonation: function () {
333
+ $('body').on('click', '.delete-single-donation', function () {
334
+ return confirm(give_vars.delete_payment);
335
  });
336
  },
337
 
338
+ resendSingleDonationReceipt: function () {
339
+ $('body').on('click', '.resend-single-donation-receipt', function () {
340
+ return confirm(give_vars.resend_receipt);
341
  });
342
  }
343
 
359
 
360
  edit_address: function () {
361
 
362
+ // Update base state field based on selected base country.
363
  $('select[name="give-payment-address[0][country]"]').change(function () {
364
  var $this = $(this);
365
 
370
  };
371
  $.post(ajaxurl, data, function (response) {
372
 
373
+ // Show the states dropdown menu.
374
+ $this.closest('.column-container').find('#give-order-address-state-wrap').removeClass('give-hidden');
375
 
376
  // Add support to zip fields.
377
  $this.closest( '.column-container' ).find( '.give-column' ).removeClass( 'column-full' );
386
  state_wrap.append( '<input type="text" name="give-payment-address[0][state]" value="' + response.default_state + '" class="give-edit-toggles medium-text"/>' );
387
 
388
  if ( typeof ( response.show_field ) !== undefined && false === response.show_field ) {
389
+ // Hide the states dropdown menu.
390
  $this.closest( '.column-container' ).find( '#give-order-address-state-wrap' ).addClass( 'give-hidden' );
391
 
392
  // Add support to zip fields.
575
  this.main_setting_update_notice();
576
  this.verify_settings();
577
  this.saveButtonTriggered();
578
+ this.changeAlert();
579
  this.detectSettingsChange();
580
  },
581
 
594
  };
595
 
596
  $.post(ajaxurl, data, function (response) {
597
+ // Show the states dropdown menu.
598
+ $this.closest('tr').next().show()
599
  if (typeof ( response.states_found ) != undefined && true == response.states_found) {
600
+ $(':input[name="base_state"]').replaceWith(response.data);
601
  } else {
602
+ if (typeof ( response.show_field ) != undefined && false == response.show_field) {
603
+ // Hide the states dropdown menu.
604
+ $this.closest('tr').next().hide();
605
  }
606
  $(':input[name="base_state"]').replaceWith('<input type="text" name="' + data.field_name + '" value="' + response.default_state + '" class="give-edit-toggles medium-text"/>');
607
  }
730
  *
731
  * @since 1.8.14
732
  */
733
+ changeAlert: function () {
 
734
 
735
+ $( window ).bind( 'beforeunload', function ( e ) {
736
 
737
+ var confirmationMessage = give_vars.setting_not_save_message;
738
 
739
+ if ( give_setting_edit ) {
740
+ ( e || window.event ).returnValue = confirmationMessage; //Gecko + IE.
741
+ return confirmationMessage; //Webkit, Safari, Chrome.
742
+ }
743
+ });
 
744
  },
745
 
746
  /**
789
 
790
  date_options: function () {
791
 
792
+ // Show hide extended date options.
793
  $('#give-graphs-date-options').change(function () {
794
  var $this = $(this);
795
  if ('other' === $this.val()) {
803
 
804
  donors_export: function () {
805
 
806
+ // Show / hide Donation Form option when exporting donors.
807
  $('#give_donor_export_form').change(function () {
808
 
809
  var $this = $(this),
818
 
819
  var price_options_select = $('.give_price_options_select');
820
 
821
+ // On Form Select, Check if Variable Prices Exist.
822
  if (parseInt(form_id) != 0) {
823
  var data = {
824
  action: 'give_check_for_form_price_variations',
877
  forms.val(0);
878
  }
879
 
880
+ current_forms = $('.tools-form-dropdown-' + selected_type);
881
  current_forms.show();
882
  current_forms.find('.give-select-chosen').css({
883
  'width': 'auto',
916
  var has_errors = false;
917
 
918
  if (null === selection || 0 === selection) {
919
+ // Needs to pick a method give_vars.batch_export_no_class.
920
  notice_wrap.html('<div class="updated error"><p>' + give_vars.batch_export_no_class + '</p></div>');
921
  has_errors = true;
922
  }
925
 
926
  var selected_form = $('select[name="form_id"]').val();
927
  if (selected_form == 0) {
928
+ // Needs to pick give_vars.batch_export_no_reqs.
929
  notice_wrap.html('<div class="updated error"><p>' + give_vars.batch_export_no_reqs + '</p></div>');
930
  has_errors = true;
931
  }
965
  var data = $(this).serialize();
966
 
967
  submitButton.addClass('button-disabled');
968
+ $( 'form.give-export-form select' ).attr( 'disabled', true ).trigger("chosen:updated");
969
  $(this).find('.notice-wrap').remove();
970
  $(this).append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>');
971
 
1012
  var export_form = $('.give-export-form').find('.give-progress').parent().parent();
1013
  var notice_wrap = export_form.find('.notice-wrap');
1014
  export_form.find('.button-disabled').removeClass('button-disabled');
1015
+ $( 'form.give-export-form select' ).attr( 'disabled', false ).trigger("chosen:updated");
1016
  if (response.error) {
1017
  var error_message = response.message;
1018
  notice_wrap.html('<div class="updated error"><p>' + error_message + '</p></div>');
1074
  },
1075
 
1076
  submit: function () {
1077
+ var $self = this, step = 1, resume_update_step = 0;
1078
+
1079
+ $self.el.main_container = Give_Selector_Cache.get('#give-db-updates');
1080
+ $self.el.update_link = Give_Selector_Cache.get('.give-update-button a', $self.el.main_container);
1081
+ $self.el.run_upload_container = Give_Selector_Cache.get('.give-run-database-update', $self.el.progress_main_container);
1082
+ $self.el.progress_main_container = Give_Selector_Cache.get('.progress-container', $self.el.main_container);
1083
+ $self.el.heading = Give_Selector_Cache.get('.update-message', $self.el.progress_main_container);
1084
+ $self.el.progress_container = Give_Selector_Cache.get('.progress-content', $self.el.progress_main_container);
1085
+ $self.el.update_progress_counter = Give_Selector_Cache.get( $( '.give-update-progress-count') );
1086
+
1087
+ if( $self.el.main_container.data('resume-update') ) {
1088
+ $self.el.update_link.addClass('active').hide().removeClass('give-hidden');
1089
+ window.setTimeout(Give_Updates.get_db_updates_info, 1000, $self );
1090
+ }
1091
 
1092
+ // Bailout.
1093
+ if ($self.el.update_link.hasClass('active')) {
1094
  return;
1095
  }
1096
 
1097
+ $self.el.update_link.on('click', '', function (e) {
1098
  e.preventDefault();
1099
 
1100
+ $self.el.run_upload_container.find('.notice').remove();
1101
+ $self.el.run_upload_container.append('<div class="notice notice-error non-dismissible give-run-update-containt"><p> <a href="#" class="give-run-update-button button">' + give_vars.db_update_confirmation_msg_button + '</a> ' + give_vars.db_update_confirmation_msg + '</p></div>');
1102
  });
1103
 
1104
+ $('#give-db-updates').on('click', 'a.give-run-update-button', function (e) {
1105
  e.preventDefault();
1106
 
1107
  if ($(this).hasClass('active')) {
1109
  }
1110
 
1111
  $(this).addClass('active').fadeOut();
1112
+ $self.el.update_link.addClass('active').fadeOut();
1113
+ $('#give-db-updates .give-run-update-containt').slideUp();
1114
 
1115
+ $self.el.progress_container.find('.notice-wrap').remove();
1116
+ $self.el.progress_container.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>');
1117
+ $self.el.progress_main_container.removeClass('give-hidden');
1118
 
1119
+ $.ajax({
1120
+ type: 'POST',
1121
+ url: ajaxurl,
1122
+ data: {
1123
+ action: 'give_run_db_updates',
1124
+ run_db_update: 1
1125
+ },
1126
+ dataType: 'json',
1127
+ success: function (response) {
1128
+
1129
+ }
1130
+ });
1131
+
1132
+ window.setTimeout(Give_Updates.get_db_updates_info, 500, $self );
1133
 
 
 
1134
  return false;
1135
  });
1136
  },
1137
 
1138
+ get_db_updates_info: function( $self ){
1139
+ $.ajax({
1140
+ type: 'POST',
1141
+ url: ajaxurl,
1142
+ data: {
1143
+ action: 'give_db_updates_info',
1144
+ },
1145
+ dataType: 'json',
1146
+ success: function (response) {
1147
+ // We need to get the actual in progress form, not all forms on the page.
1148
+ var notice_wrap = Give_Selector_Cache.get('.notice-wrap', $self.el.progress_container, true);
1149
+
1150
+ if (-1 !== $.inArray('success', Object.keys(response))) {
1151
+ if (response.success) {
1152
+ if ($self.el.update_progress_counter.length) {
1153
+ $self.el.update_progress_counter.text('100%');
1154
+ }
1155
+
1156
+ // Update steps info.
1157
+ if (-1 !== $.inArray('heading', Object.keys(response.data))) {
1158
+ $self.el.heading.html('<strong>' + response.data.heading + '</strong>');
1159
+ }
1160
+
1161
+ $self.el.update_link.closest('p').remove();
1162
+ notice_wrap.html('<div class="notice notice-success is-dismissible"><p>' + response.data.message + '</p><button type="button" class="notice-dismiss"></button></div>');
1163
+
1164
+ } else {
1165
+ // Update steps info.
1166
+ if (-1 !== $.inArray('heading', Object.keys(response.data))) {
1167
+ $self.el.heading.html('<strong>' + response.data.heading + '</strong>');
1168
+ }
1169
+
1170
+ notice_wrap.html('<div class="notice notice-error"><p>' + response.data.message + '</p></div>');
1171
+
1172
+ setTimeout(function () {
1173
+ $self.el.update_link.removeClass('active').show();
1174
+ $self.el.progress_main_container.addClass('give-hidden');
1175
+ }, 1000);
1176
+ }
1177
+ } else {
1178
+ if (response && -1 !== $.inArray('percentage', Object.keys(response.data))) {
1179
+ if ($self.el.update_progress_counter.length) {
1180
+ $self.el.update_progress_counter.text(response.data.total_percentage + '%');
1181
+ }
1182
+
1183
+ // Update steps info.
1184
+ if (-1 !== $.inArray('heading', Object.keys(response.data))) {
1185
+ $self.el.heading.html('<strong>' + response.data.heading + '</strong>');
1186
+ }
1187
+
1188
+ // Update progress.
1189
+ $('.give-progress div', '#give-db-updates').animate({
1190
+ width: response.data.percentage + '%',
1191
+ }, 50, function () {
1192
+ // Animation complete.
1193
+ });
1194
+
1195
+ window.setTimeout(Give_Updates.get_db_updates_info, 1000, $self );
1196
+ } else {
1197
+ notice_wrap.html('<div class="notice notice-error"><p>' + give_vars.updates.ajax_error + '</p></div>');
1198
+
1199
+ setTimeout(function () {
1200
+ $self.el.update_link.removeClass('active').show();
1201
+ $self.el.progress_main_container.addClass('give-hidden');
1202
+ }, 1000);
1203
+ }
1204
+ }
1205
+ }
1206
+ });
1207
+ },
1208
+
1209
+ process_step: function (step, update, $self) {
1210
 
1211
  give_setting_edit = true;
1212
 
1222
  success: function (response) {
1223
  give_setting_edit = false;
1224
 
1225
+ // We need to get the actual in progress form, not all forms on the page.
1226
+ var notice_wrap = Give_Selector_Cache.get('.notice-wrap', $self.el.progress_container, true);
1227
 
1228
  if (-1 !== $.inArray('success', Object.keys(response))) {
1229
  if (response.success) {
1230
+ // Update steps info.
1231
  if (-1 !== $.inArray('heading', Object.keys(response.data))) {
1232
+ $self.el.heading.html('<strong>' + response.data.heading + '</strong>');
1233
  }
1234
 
1235
+ $self.el.update_link.closest('p').remove();
1236
  notice_wrap.html('<div class="notice notice-success is-dismissible"><p>' + response.data.message + '</p><button type="button" class="notice-dismiss"></button></div>');
1237
 
1238
  } else {
1239
+ // Update steps info.
1240
  if (-1 !== $.inArray('heading', Object.keys(response.data))) {
1241
+ $self.el.heading.html('<strong>' + response.data.heading + '</strong>');
1242
  }
1243
 
1244
  notice_wrap.html('<div class="notice notice-error"><p>' + response.data.message + '</p></div>');
1245
 
1246
  setTimeout(function () {
1247
+ $self.el.update_link.removeClass('active').show();
1248
+ $self.el.progress_main_container.addClass('give-hidden');
1249
  }, 5000);
1250
  }
1251
  } else {
1252
+ if (response && -1 !== $.inArray('percentage', Object.keys(response.data))) {
1253
+ // Update progress.
1254
+ $('.give-progress div', '#give-db-updates').animate({
1255
+ width: response.data.percentage + '%',
1256
+ }, 50, function () {
1257
+ // Animation complete.
1258
+ });
1259
+
1260
+ // Update steps info.
1261
+ if (-1 !== $.inArray('heading', Object.keys(response.data))) {
1262
+ $self.el.heading.html('<strong>' + response.data.heading.replace('{update_count}', $self.el.heading.data('update-count')) + '</strong>');
1263
+ }
1264
 
1265
+ $self.process_step(parseInt(response.data.step), response.data.update, $self);
1266
+ } else {
1267
+ notice_wrap.html('<div class="notice notice-error"><p>' + give_vars.updates.ajax_error + '</p></div>');
 
1268
 
1269
+ setTimeout(function () {
1270
+ $self.el.update_link.removeClass('active').show();
1271
+ $self.el.progress_main_container.addClass('give-hidden');
1272
+ }, 5000);
1273
+ }
1274
  }
1275
 
1276
  }
1305
  */
1306
  var handle_status_change = function () {
1307
 
 
1308
  $('select[name="give-payment-status"]').on('change', function () {
1309
 
1310
  var status = $(this).val();
1320
  /**
1321
  * Donor management screen JS
1322
  */
1323
+ var GiveDonor = {
1324
 
1325
  init: function () {
1326
+ this.editDonor();
1327
  this.add_email();
1328
+ this.removeUser();
1329
+ this.cancelEdit();
 
1330
  this.add_note();
1331
  this.delete_checked();
1332
+ this.addressesAction();
1333
+ this.unlockDonorFields();
1334
  this.bulkDeleteDonor();
1335
+ $( 'body' ).on( 'click', '#give-donors-filter .bulkactions input[type="submit"]', this.handleBulkActions );
1336
+ },
1337
+
1338
+ unlockDonorFields: function (e) {
1339
+ $('body').on('click', '.give-lock-block', function (e) {
1340
+ alert(give_vars.unlock_donor_fields);
1341
+ e.preventDefault();
1342
+ });
1343
  },
1344
+
1345
+ editDonor: function () {
1346
  $('body').on('click', '#edit-donor', function (e) {
1347
  e.preventDefault();
1348
  $('#give-donor-card-wrapper .editable').hide();
1349
  $('#give-donor-card-wrapper .edit-item').fadeIn().css('display', 'block');
 
1350
  });
1351
  },
1352
+
1353
+ removeUser: function () {
1354
  $('body').on('click', '#disconnect-donor', function (e) {
1355
  e.preventDefault();
1356
 
1357
  if (!confirm(give_vars.disconnect_user)) {
1358
  return false;
1359
  }
1360
+
1361
+ var donorID = $('input[name="customerinfo[id]"]').val();
1362
 
1363
  var postData = {
1364
  give_action: 'disconnect-userid',
1365
+ customer_id: donorID,
1366
  _wpnonce: $('#edit-donor-info #_wpnonce').val()
1367
  };
1368
 
1372
 
1373
  });
1374
  },
1375
+
1376
+ cancelEdit: function () {
1377
  $('body').on('click', '#give-edit-donor-cancel', function (e) {
1378
  e.preventDefault();
1379
  $('#give-donor-card-wrapper .edit-item').hide();
1381
  $('.give_user_search_results').html('');
1382
  });
1383
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1384
 
 
 
 
1385
  add_note: function () {
1386
  $('body').on('click', '#add-donor-note', function (e) {
1387
  e.preventDefault();
1475
  });
1476
  },
1477
 
1478
+ addressesAction: function () {
1479
+ var $obj = this,
1480
+ $addressWrapper = $('#donor-address-wrapper'),
1481
+ $allAddress = $('.all-address', $addressWrapper),
1482
+ $noAddressMessageWrapper = $('.give-no-address-message', $addressWrapper),
1483
+ $allAddressParent = $($allAddress).parent(),
1484
+ $addressForm = $('.address-form', $addressWrapper),
1485
+ $addressFormCancelBtn = $('.js-cancel', $addressForm),
1486
+ $addressFormCountryField = $('select[name="country"]', $addressForm),
1487
+ $addNewAddressBtn = $('.add-new-address', $addressWrapper),
1488
+ donorID = parseInt($('input[name="donor-id"]').val());
1489
+
1490
+ $addressFormCountryField.on('change', function () {
1491
+ $(this).trigger('chosen:updated');
1492
+ });
1493
+
1494
+ // Edit current address button event.
1495
+ $allAddress.on('click', '.js-edit', function (e) {
1496
+ var $parent = $(this).closest('.address');
1497
+
1498
+ e.preventDefault();
1499
+
1500
+ // Remove notice.
1501
+ $('.notice', $allAddressParent).remove();
1502
+
1503
+ $obj.__set_address_form_val($parent);
1504
+ $obj.__set_address_form_action('update', $parent.data('address-id'));
1505
+
1506
+ $addNewAddressBtn.hide();
1507
+ $allAddress.addClass('give-hidden');
1508
+ $addressForm.removeClass('add-new-address-form-hidden');
1509
+ $addressForm.data('process', 'update');
1510
+ });
1511
+
1512
+ // Remove address button event.
1513
+ $allAddress.on('click', '.js-remove', function (e) {
1514
+ e.preventDefault();
1515
+
1516
+ var $parent = $(this).closest('.address');
1517
+
1518
+ // Remove notice.
1519
+ $('.notice', $allAddressParent).remove();
1520
+
1521
+ $addressForm.data('changed', true);
1522
+ $obj.__set_address_form_val($parent);
1523
+ $obj.__set_address_form_action('remove', $parent.data('address-id'));
1524
+
1525
+ $addressForm.trigger('submit');
1526
+ });
1527
+
1528
+ // Add new address button event.
1529
+ $addNewAddressBtn.on('click', function (e) {
1530
+ e.preventDefault();
1531
+
1532
+ // Remove notice.
1533
+ $('.notice', $allAddressParent).remove();
1534
+
1535
+ $(this).hide();
1536
+ $allAddress.addClass('give-hidden');
1537
+ $addressForm.removeClass('add-new-address-form-hidden');
1538
+ $obj.__set_address_form_action('add');
1539
+
1540
+
1541
+ $obj.__set_address_form_action();
1542
+ });
1543
+
1544
+ // Cancel add new address form button event.
1545
+ $addressFormCancelBtn.on('click', function (e) {
1546
+ e.preventDefault();
1547
+
1548
+ // Reset form.
1549
+ $addressForm.find('input[type="text"]').val('');
1550
+
1551
+ $addNewAddressBtn.show();
1552
+ $allAddress.removeClass('give-hidden');
1553
+ $addressForm.addClass('add-new-address-form-hidden');
1554
+ });
1555
+
1556
+ // Save address.
1557
+ $addressForm
1558
+ .on('change', function () {
1559
+ $(this).data('changed', true);
1560
+ })
1561
+ .on('submit', function (e) {
1562
+ e.preventDefault();
1563
+
1564
+ var $this = $(this);
1565
+
1566
+ // Remove notice.
1567
+ $('.notice', $allAddressParent).remove();
1568
+
1569
+ // Do not send ajax if form does not change.
1570
+ if (!$(this).data('changed')) {
1571
+ $addNewAddressBtn.show();
1572
+ $allAddress.removeClass('give-hidden');
1573
+ $addressForm.addClass('add-new-address-form-hidden');
1574
+
1575
+ return false;
1576
+ }
1577
+
1578
+ $.ajax({
1579
+ type: 'POST',
1580
+ url: ajaxurl,
1581
+ data: {
1582
+ action: 'donor_manage_addresses',
1583
+ donorID: donorID,
1584
+ form: $('form', $addressForm).serialize()
1585
+ },
1586
+ beforeSend: function () {
1587
+ giveAjaxLoader($addressWrapper, {show: true});
1588
+ },
1589
+ success: function (response) {
1590
+ giveAjaxLoader($addressWrapper);
1591
+
1592
+ if (response.success) {
1593
+ var parent;
1594
+
1595
+ switch (response.data.action) {
1596
+ case 'add':
1597
+ $('.give-grid-row', $allAddress).append(response.data.address_html);
1598
+
1599
+ if (!$noAddressMessageWrapper.hasClass('give-hidden') && $('div.give-grid-col-4', $allAddress).length) {
1600
+ $noAddressMessageWrapper.addClass('give-hidden');
1601
+ }
1602
+ break;
1603
+
1604
+ case 'remove':
1605
+ parent = $allAddress
1606
+ .find('div[data-address-id*="' + response.data.id + '"]').parent();
1607
+
1608
+ if (parent.length) {
1609
+ parent.animate(
1610
+ {'margin-left': '-999'},
1611
+ 1000,
1612
+ function () {
1613
+ parent.remove();
1614
+
1615
+ if (
1616
+ $noAddressMessageWrapper.hasClass('give-hidden') &&
1617
+ !$('div.give-grid-col-4', $allAddress).length
1618
+ ) {
1619
+ $noAddressMessageWrapper.removeClass('give-hidden');
1620
+ }
1621
+ }
1622
+ );
1623
+ }
1624
+
1625
+ break;
1626
+
1627
+ case 'update':
1628
+ parent = $allAddress
1629
+ .find('div[data-address-id*="' + response.data.id + '"]').parent();
1630
+ var $prevParent = parent.prev(),
1631
+ $nextParent = {},
1632
+ is_address_added = false;
1633
+
1634
+ if (parseInt($('.give-grid-row>div', $allAddress).length) < 2) {
1635
+ $('.give-grid-row', $allAddress).append(response.data.address_html);
1636
+ } else {
1637
+ if ($prevParent.length) {
1638
+ $prevParent.after(response.data.address_html);
1639
+ is_address_added = true;
1640
+ }
1641
+
1642
+ if (!is_address_added) {
1643
+ $nextParent = parent.next();
1644
+
1645
+ if ($nextParent.length) {
1646
+ $nextParent.before(response.data.address_html);
1647
+ }
1648
+ }
1649
+ }
1650
+
1651
+ parent.remove();
1652
+
1653
+ break;
1654
+ }
1655
+
1656
+ $allAddressParent.prepend(response.data.success_msg);
1657
+
1658
+ } else {
1659
+ $allAddressParent.prepend(response.data.error_msg);
1660
+ }
1661
+ },
1662
+ dataType: 'json'
1663
+ }).always(function () {
1664
+ $this.data('changed', false);
1665
+
1666
+ // Reset form.
1667
+ $addressForm.find('input[type="text"]').val('');
1668
+
1669
+ $addNewAddressBtn.show();
1670
+ $allAddress.removeClass('give-hidden');
1671
+ $addressForm.addClass('add-new-address-form-hidden');
1672
+ });
1673
+
1674
+ return false;
1675
+ });
1676
+ },
1677
+
1678
+ __set_address_form_action: function (addressAction, addressID) {
1679
+ var $addressWrapper = $('#donor-address-wrapper'),
1680
+ $addressForm = $('.address-form', $addressWrapper),
1681
+ $addressActionField = $('input[name="address-action"]', $addressForm),
1682
+ $addressIDField = $('input[name="address-id"]', $addressForm);
1683
+
1684
+ addressAction = addressAction || 'add';
1685
+ addressID = addressID || 'billing';
1686
+
1687
+ $addressActionField.val(addressAction);
1688
+ $addressIDField.val(addressID);
1689
+ },
1690
+
1691
+ __set_address_form_val: function ($form) {
1692
+ var $addressWrapper = $('#donor-address-wrapper'),
1693
+ $addressForm = $('.address-form', $addressWrapper),
1694
+ state = $('[data-address-type="state"]', $form).text().substr(2).trim(); // State will be like ", HR".
1695
+
1696
+ if ($('select[name="country"]', $addressForm).val().trim() !== $('[data-address-type="country"]', $form).text().trim()) {
1697
+ $('select[name="country"]', $addressForm).val($('[data-address-type="country"]', $form).text().trim()).trigger('chosen:updated').change();
1698
+
1699
+ // Update state after some time because state load by ajax for each country.
1700
+ window.setTimeout(function () {
1701
+ $('[name="state"]', $addressForm).val(state).trigger('chosen:updated');
1702
+ }, 500);
1703
+ } else {
1704
+ $('[name="state"]', $addressForm).val(state).trigger('chosen:updated');
1705
+ }
1706
+
1707
+ $('input[name="line1"]', $addressForm).val($('[data-address-type="line1"]', $form).text().trim());
1708
+ $('input[name="line2"]', $addressForm).val($('[data-address-type="line2"]', $form).text().trim());
1709
+ $('input[name="city"]', $addressForm).val($('[data-address-type="city"]', $form).text().trim());
1710
+ $('input[name="zip"]', $addressForm).val($('[data-address-type="zip"]', $form).text().trim());
1711
+ },
1712
+
1713
  bulkDeleteDonor: function() {
1714
+ var $body = $('body');
1715
 
1716
  // Cancel button click event for donor.
1717
+ $body.on('click', '#give-bulk-delete-cancel', function (e) {
1718
+ $(this).closest('tr').hide();
1719
+ $('.give-skip-donor').trigger('click');
1720
  e.preventDefault();
1721
  });
1722
 
1723
  // Select All checkbox.
1724
+ $body.on('click', '#cb-select-all-1, #cb-select-all-2', function () {
1725
 
1726
+ var selectAll = $(this);
1727
 
1728
  // Loop through donor selector checkbox.
1729
+ $.each($('.donor-selector'), function () {
1730
 
1731
+ var donorId = $(this).val(),
1732
+ donorName = $(this).data('name'),
1733
  donorHtml = '<div id="give-donor-' + donorId + '" data-id="' + donorId + '">' +
1734
  '<a class="give-skip-donor" title="' + give_vars.remove_from_bulk_delete + '">X</a>' +
1735
  donorName + '</div>';
1743
  });
1744
 
1745
  // On checking checkbox, add to bulk delete donor.
1746
+ $body.on('click', '.donor-selector', function () {
1747
+ var donorId = $(this).val(),
1748
+ donorName = $(this).data('name'),
1749
  donorHtml = '<div id="give-donor-' + donorId + '" data-id="' + donorId + '">' +
1750
  '<a class="give-skip-donor" title="' + give_vars.remove_from_bulk_delete + '">X</a>' +
1751
  donorName + '</div>';
1752
 
1753
+ if ($(this).is(':checked')) {
1754
+ $('#give-bulk-donors').prepend(donorHtml);
1755
  } else {
1756
+ $('#give-bulk-donors').find('#give-donor-' + donorId).remove();
1757
  }
1758
  });
1759
 
1760
  // CheckBox click event to confirm deletion of donor.
1761
+ $body.on('click', '#give-delete-donor-confirm', function () {
1762
+ if ($(this).is(':checked')) {
1763
+ $('#give-bulk-delete-button').removeAttr('disabled');
1764
  } else {
1765
+ $('#give-bulk-delete-button').attr('disabled', true);
1766
+ $('#give-delete-donor-records').removeAttr('checked');
1767
  }
1768
  });
1769
 
1770
  // CheckBox click event to delete records with donor.
1771
+ $body.on('click', '#give-delete-donor-records', function () {
1772
+ if ($(this).is(':checked')) {
1773
+ $('#give-delete-donor-confirm').attr('checked', 'checked');
1774
+ $('#give-bulk-delete-button').removeAttr('disabled');
1775
  }
1776
  });
1777
 
1778
  // Skip Donor from Bulk Delete List.
1779
+ $body.on('click', '.give-skip-donor', function () {
1780
+ var donorId = $(this).closest('div').data('id');
1781
+ $('#give-donor-' + donorId).remove();
1782
+ $('#donor-' + donorId).find('input[type="checkbox"]').removeAttr('checked');
1783
  });
1784
 
1785
  // Clicking Event to Delete Single Donor.
1843
  }
1844
 
1845
  e.preventDefault();
 
1846
  }
1847
  };
1848
 
2014
  // Cache input field.
2015
  $give_upload_button = $(this);
2016
 
2017
+ // Set modal config.
2018
  switch ($(this).data('field-type')) {
2019
  case 'media':
2020
  $media_modal_config = {
2021
  title: give_vars.metabox_fields.media.button_title,
2022
  button: {text: give_vars.metabox_fields.media.button_title},
2023
+ multiple: false, // Set to true to allow multiple files to be selected.
2024
  library: {type: 'image'}
2025
  };
2026
  break;
2034
  }
2035
 
2036
  var editing = jQuery(this).closest('.give-field-wrap').find('.give-input-field').attr('editing');
2037
+ if ('undefined' !== typeof( editing )) {
2038
  wp.media.controller.Library.prototype.defaults.contentUserSetting = false;
2039
  }
2040
 
2041
+ var $library = jQuery(this).closest('.give-field-wrap').find('.give-input-field').attr('library');
2042
  if ('undefined' !== typeof( $library ) && '' !== $library) {
2043
  $media_modal_config.library = {type: $library};
2044
  }
2045
 
2046
+ // Extend the wp.media object.
2047
  give_media_uploader = wp.media($media_modal_config);
2048
 
2049
+ // When a file is selected, grab the URL and set it as the text field's value.
2050
  give_media_uploader.on('select', function () {
2051
  var attachment = give_media_uploader.state().get('selection').first().toJSON(),
2052
  $input_field = $give_upload_button.prev(),
2058
  $input_field.val(fvalue);
2059
 
2060
  // Update attachment id field value if fvalue is not set to id.
2061
+ if ('id' !== $give_upload_button.data('fvalue')) {
2062
  var attachment_id_field_name = 'input[name="' + $input_field.attr('name') + '_id"]',
2063
+ id_field = $input_field.closest('tr').next('tr').find(attachment_id_field_name);
2064
 
2065
+ if (id_field.length) {
2066
+ $input_field.closest('tr').next('tr').find(attachment_id_field_name).val(attachment.id);
2067
  }
2068
  }
2069
  });
2070
 
2071
+ // Open the uploader dialog.
2072
  give_media_uploader.open();
2073
  });
2074
 
2094
  // Set the attachment URL to our custom image input field.
2095
  $image_container.find('img').attr('src', attachment.url);
2096
 
2097
+ // Hide the add image link.
2098
  $image_container.removeClass('give-hidden');
2099
  });
2100
 
2109
  $image_container = $(this).parent(),
2110
  $image_input_field = $('input[type="text"]', $parent);
2111
 
2112
+ // Clear out the preview image.
2113
  $image_container.addClass('give-hidden');
2114
 
2115
  // Remove image link from input field.
2116
  $image_input_field.val('');
2117
 
2118
+ // Hide the add image link.
2119
  $('img', $image_container).attr('src', '');
2120
  });
2121
  },
2303
  $item.wpColorPicker();
2304
  });
2305
 
2306
+ // Load WordPress editor by ajax.
2307
  var wysiwyg_editor_container = $('div[data-wp-editor]', new_row);
2308
 
2309
  if (wysiwyg_editor_container.length) {
2481
  /**
2482
  * Handle row count and field count for repeatable field.
2483
  */
2484
+ var handle_metabox_repeater_field_row_count = function (container, new_row) {
2485
+ var row_count = $(container).attr('data-rf-row-count'),
2486
+ $container = $(container),
2487
+ $parent = $container.parents('.give-repeatable-field-section');
2488
 
2489
  row_count++;
2490
 
2491
  // Set name for fields.
2492
+ $('*', new_row).each(function () {
2493
+ $.each(this.attributes, function (index, element) {
2494
+ this.value = this.value.replace('{{row-count-placeholder}}', row_count - 1);
2495
  });
2496
  });
2497
 
2498
  // Set row counter.
2499
+ $(container).attr('data-rf-row-count', row_count);
2500
 
2501
  // Fire event: Row added.
2502
+ $parent.trigger('repeater_field_new_row_added', [container, new_row]);
2503
  };
2504
 
2505
  /**
2506
  * Handle row remove for repeatable field.
2507
  */
2508
  var handle_metabox_repeater_field_row_remove = function (container) {
2509
+ var $container = $(container),
2510
+ $parent = $container.parents('.give-repeatable-field-section'),
2511
+ row_count = $(container).attr('data-rf-row-count');
2512
 
2513
  // Reduce row count.
2514
+ $container.attr('data-rf-row-count', --row_count);
2515
 
2516
  // Fire event: Row deleted.
2517
+ $parent.trigger('repeater_field_row_deleted');
2518
  };
2519
 
2520
  /**
2521
  * Add number suffix to repeater group.
2522
  */
2523
+ var handle_repeater_group_add_number_suffix = function ($parent) {
2524
 
2525
  // Bailout: check if auto group numbering is on or not.
2526
+ if (!parseInt($parent.data('group-numbering'))) {
2527
  return;
2528
  }
2529
 
2530
+ var $header_title_container = $('.give-row-head h2 span', $parent),
2531
+ header_text_prefix = $header_title_container.data('header-title');
2532
 
2533
+ $header_title_container.each(function (index, item) {
2534
+ var $item = $(item);
2535
 
2536
  // Bailout: do not rename header title in fields template.
2537
+ if ($item.parents('.give-template').length) {
2538
  return;
2539
  }
2540
 
2541
+ $item.html(header_text_prefix + ': ' + index);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2542
  });
2543
  };
2544
 
2546
  * Payment history listing page js
2547
  */
2548
  var GivePaymentHistory = {
2549
+ init: function () {
2550
+ $('body').on('click', '#give-payments-filter input[type="submit"]', this.handleBulkActions);
2551
  },
2552
 
2553
+ handleBulkActions: function () {
2554
+ var currentAction = $(this).closest('.tablenav').find('select').val(),
2555
+ currentActionLabel = $(this).closest('.tablenav').find('option[value="' + currentAction + '"]').text(),
2556
+ $payments = $('input[name="payment[]"]:checked').length,
2557
+ isStatusTypeAction = ( -1 !== currentAction.indexOf('set-status-') ),
2558
  confirmActionNotice = '',
2559
  status = '';
2560
 
2563
  'set-to-status' :
2564
  currentAction;
2565
 
2566
+ if (Object.keys(give_vars.donations_bulk_action).length) {
2567
+ for (status in give_vars.donations_bulk_action) {
2568
+ if (status === currentAction) {
2569
 
2570
  // Get status text if current action types is status.
2571
  confirmActionNotice = isStatusTypeAction ?
2572
+ give_vars.donations_bulk_action[currentAction].zero.replace('{status}', currentActionLabel.replace('Set To ', '')) :
2573
  give_vars.donations_bulk_action[currentAction].zero;
2574
 
2575
  // Check if admin selected any donations or not.
2576
+ if (!parseInt($payments)) {
2577
+ alert(confirmActionNotice);
2578
  return false;
2579
  }
2580
 
2584
  give_vars.donations_bulk_action[currentAction].single;
2585
 
2586
  // Trigger Admin Confirmation PopUp.
2587
+ return window.confirm(confirmActionNotice
2588
+ .replace('{payment_count}', $payments)
2589
+ .replace('{status}', currentActionLabel.replace('Set To ', ''))
2590
  );
2591
  }
2592
  }
2597
  };
2598
 
2599
  // On DOM Ready.
2600
+ $(function () {
2601
 
2602
  give_dismiss_notice();
2603
  enable_admin_datepicker();
2604
  handle_status_change();
2605
  setup_chosen_give_selects();
2606
+ $.giveAjaxifyFields({type: 'country_state', debug: true});
2607
  GiveListDonation.init();
2608
  Give_Edit_Donation.init();
2609
  Give_Settings.init();
2610
  Give_Reports.init();
2611
+ GiveDonor.init();
2612
  API_Screen.init();
2613
  Give_Export.init();
2614
  Give_Updates.init();
2615
  Edit_Form_Screen.init();
2616
  GivePaymentHistory.init();
2617
 
 
2618
 
2619
  // Footer.
2620
+ $('a.give-rating-link').click(function () {
2621
+ jQuery(this).parent().text(jQuery(this).data('rated'));
2622
  });
2623
 
2624
+ // Ajax user search.
2625
+ $('.give-ajax-user-search').on('keyup', function () {
2626
+ var user_search = $(this).val();
2627
+ var exclude = '';
2628
+
2629
+ if ($(this).data('exclude')) {
2630
+ exclude = $(this).data('exclude');
2631
+ }
2632
+
2633
+ $('.give-ajax').show();
2634
+ data = {
2635
+ action: 'give_search_users',
2636
+ user_name: user_search,
2637
+ exclude: exclude
2638
+ };
2639
+
2640
+ document.body.style.cursor = 'wait';
2641
+
2642
+ $.ajax({
2643
+ type: 'POST',
2644
+ data: data,
2645
+ dataType: 'json',
2646
+ url: ajaxurl,
2647
+ success: function (search_response) {
2648
+ $('.give-ajax').hide();
2649
+ $('.give_user_search_results').removeClass('hidden');
2650
+ $('.give_user_search_results span').html('');
2651
+ $(search_response.results).appendTo('.give_user_search_results span');
2652
+ document.body.style.cursor = 'default';
2653
+ }
2654
+ });
2655
+ });
2656
+
2657
+ $('body').on('click.giveSelectUser', '.give_user_search_results span a', function (e) {
2658
+ e.preventDefault();
2659
+ var login = $(this).data('login');
2660
+ $('.give-ajax-user-search').val(login);
2661
+ $('.give_user_search_results').addClass('hidden');
2662
+ $('.give_user_search_results span').html('');
2663
+ });
2664
+
2665
+ $('body').on('click.giveCancelUserSearch', '.give_user_search_results a.give-ajax-user-cancel', function (e) {
2666
+ e.preventDefault();
2667
+ $('.give-ajax-user-search').val('');
2668
+ $('.give_user_search_results').addClass('hidden');
2669
+ $('.give_user_search_results span').html('');
2670
+ });
2671
 
2672
  // This function uses for adding qtip to money/price field.
2673
+ function give_add_qtip($fields) {
2674
 
2675
  // Add qtip to all existing money input fields.
2676
  $fields.each(function () {
2688
  });
2689
  }
2690
 
2691
+ var $poststuff = $( '#poststuff' ),
2692
+ thousand_separator = give_vars.thousands_separator,
2693
+ decimal_separator = give_vars.decimal_separator,
2694
  thousand_separator_count = '',
2695
+ alphabet_count = '',
2696
+ price_string = '',
2697
 
2698
  // Thousand separation limit in price depends upon decimal separator symbol.
2699
  // If thousand separator is equal to decimal separator then price does not have more then 1 thousand separator otherwise limit is zero.
2700
  thousand_separator_limit = ( decimal_separator === thousand_separator ? 1 : 0 );
2701
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2702
  // Check & show message on keyup event.
2703
+ $poststuff.on('keyup', 'input.give-money-field, input.give-price-field', function () {
2704
+ var tootltip_setting = {
2705
+ label: give_vars.price_format_guide.trim()
2706
+ };
2707
 
2708
  // Count thousand separator in price string.
2709
  thousand_separator_count = ( $(this).val().match(new RegExp(thousand_separator, 'g')) || [] ).length;
2710
  alphabet_count = ( $(this).val().match(new RegExp('[a-z]', 'g')) || [] ).length;
2711
 
2712
  // Show qtip conditionally if thousand separator detected on price string.
2713
+ if (( -1 !== $(this).val().indexOf(thousand_separator) ) && ( thousand_separator_limit < thousand_separator_count )) {
2714
+ $(this).giveHintCss('show', tootltip_setting);
 
 
 
2715
  } else if (alphabet_count) {
2716
+ $(this).giveHintCss('show', tootltip_setting);
 
 
2717
  } else {
2718
+ $(this).giveHintCss('hide', tootltip_setting);
2719
  }
2720
 
2721
  // Reset thousand separator count.
2723
  });
2724
 
2725
  // Format price sting of input field on focusout.
2726
+ $poststuff.on('focusout', 'input.give-money-field, input.give-price-field', function () {
2727
  price_string = give_unformat_currency($(this).val(), false);
2728
 
2729
  // Back out.
2748
  $(this).val(price_string);
2749
  });
2750
 
2751
+ // Set default value to 1 even if user inputs empty or negative number of donations.
2752
+ $poststuff.on( 'focusout', '#_give_number_of_donation_goal', function() {
2753
+ if ( 1 > $( this ).val() ) {
2754
+ $( this ).val( 1 );
2755
+ }
2756
+ });
2757
+
2758
  /**
2759
  * Responsive setting tab features.
2760
  */
2778
  }
2779
  });
2780
 
2781
+ /**
2782
+ * Automatically show/hide email setting fields.
2783
+ */
2784
+ $('.give_email_api_notification_status_setting input').change(function () {
2785
+ // Bailout.
2786
+ var value = $(this).val(),
2787
+ is_enabled = ( 'enabled' === value ),
2788
+ $setting_fields = {};
2789
+
2790
+ // Get setting fields.
2791
+ if ($(this).closest('.give_options_panel').length) {
2792
+ $setting_fields = $(this).closest('.give_options_panel').children('.give-field-wrap:not(.give_email_api_notification_status_setting), .give-repeatable-field-section' );
2793
+ } else if ($(this).closest('table').length) {
2794
+ $setting_fields = $(this).closest('table').find('tr:not(.give_email_api_notification_status_setting)');
2795
+ }
2796
+
2797
+ if (-1 === jQuery.inArray(value, ['enabled', 'disabled', 'global'])) {
2798
+ return false;
2799
+ }
2800
+
2801
+ // Bailout.
2802
+ if (!$setting_fields.length) {
2803
+ return false;
2804
+ }
2805
+
2806
+ // Show hide setting fields.
2807
+ is_enabled ? $setting_fields.show() : $setting_fields.hide();
2808
+ });
2809
+
2810
+ $('.give_email_api_notification_status_setting input:checked').change();
2811
+
2812
  // Render setting tab.
2813
  give_render_responsive_tabs();
2814
  });
2825
  * Render responsive tabs
2826
  */
2827
  function give_render_responsive_tabs() {
2828
+ var $setting_page_form = jQuery( '.give-settings-page' ),
2829
+ $main_tab_nav = jQuery( 'h2.give-nav-tab-wrapper' ),
2830
  setting_page_form_width = $setting_page_form.width(),
2831
+ $sub_tab_nav_wrapper = jQuery( '.give-sub-nav-tab-wrapper' ),
2832
+ $sub_tab_nav = jQuery( 'nav', $sub_tab_nav_wrapper ),
2833
+ $setting_tab_links = jQuery( 'div.give-nav-tab-wrapper > a:not(give-not-tab)' ),
2834
+ $show_tabs = [],
2835
+ $hide_tabs = [],
2836
+ tab_width = 0;
2837
+
2838
+ if ( 600 < jQuery( window ).outerWidth() ) {
2839
  tab_width = 200;
2840
  }
2841
 
2842
  // Bailout.
2843
+ if ( ! $setting_page_form.length ) {
2844
  return false;
2845
  }
2846
 
2851
  });
2852
 
2853
  // Show all tab if anyone hidden to calculate correct tab width.
2854
+ $setting_tab_links.removeClass( 'give-hidden' );
2855
 
2856
  var refactor_tabs = new Promise(
2857
+ function( resolve, reject ) {
2858
+
2859
  // Collect tabs to show or hide.
2860
+ jQuery.each( $setting_tab_links, function( index, $tab_link ) {
2861
+ $tab_link = jQuery( $tab_link );
2862
+ tab_width = tab_width + parseInt( $tab_link.outerWidth() );
2863
 
2864
+ if ( tab_width < setting_page_form_width ) {
2865
+ $show_tabs.push( $tab_link );
2866
  } else {
2867
+ $hide_tabs.push( $tab_link );
2868
  }
2869
  });
2870
 
2871
+ resolve( true );
2872
  }
2873
  );
2874
 
2875
+ refactor_tabs.then( function( is_refactor_tabs ) {
2876
+
2877
  // Remove current tab from sub menu and add this to main menu if exist and get last tab from main menu and add this to sub menu.
2878
+ if ( $hide_tabs.length && ( -1 !== window.location.search.indexOf( '&tab=' ) ) ) {
2879
  var $current_tab_nav = {},
2880
+ query_params = get_url_params();
2881
 
2882
+ $hide_tabs = $hide_tabs.filter( function( $tab_link ) {
2883
+ var is_current_nav_item = ( -1 !== parseInt( $tab_link.attr( 'href' ).indexOf( '&tab=' + query_params['tab'] ) ) );
2884
 
2885
+ if ( is_current_nav_item ) {
2886
  $current_tab_nav = $tab_link;
2887
  }
2888
 
2889
+ return ( ! is_current_nav_item );
2890
  });
2891
 
2892
+ if ( $current_tab_nav.length ) {
2893
+ $hide_tabs.unshift( $show_tabs.pop() );
2894
+ $show_tabs.push( $current_tab_nav );
2895
  }
2896
  }
2897
 
2898
+ var show_tabs = new Promise( function( resolve, reject ) {
2899
+
2900
  // Show main menu tabs.
2901
+ if ( $show_tabs.length ) {
2902
+ jQuery.each( $show_tabs, function( index, $tab_link ) {
2903
+ $tab_link = jQuery( $tab_link );
2904
 
2905
+ if ( $tab_link.hasClass( 'give-hidden' ) ) {
2906
+ $tab_link.removeClass( 'give-hidden' );
2907
  }
2908
  });
2909
  }
2910
 
2911
+ resolve( true );
2912
  });
2913
 
2914
+ show_tabs.then( function( is_show_tabs ) {
2915
+
2916
  // Hide sub menu tabs.
2917
+ if ( $hide_tabs.length ) {
2918
+ $sub_tab_nav.html( '' );
2919
 
2920
+ jQuery.each( $hide_tabs, function( index, $tab_link ) {
2921
+ $tab_link = jQuery( $tab_link );
2922
+ if ( ! $tab_link.hasClass( 'nav-tab-active' ) ) {
2923
+ $tab_link.addClass( 'give-hidden' );
2924
  }
2925
+ $tab_link.clone().removeClass().appendTo( $sub_tab_nav );
2926
  });
2927
 
2928
+ if ( ! jQuery( '.give-sub-nav-tab-wrapper', $main_tab_nav ).length ) {
2929
+ $main_tab_nav.append( $sub_tab_nav_wrapper );
2930
  }
2931
 
2932
  $sub_tab_nav_wrapper.show();
2958
  * @since 1.8.17
2959
  */
2960
  function give_on_core_settings_import_start() {
2961
+ var $form = jQuery('form.tools-setting-page-import');
2962
+ var progress = $form.find('.give-progress');
2963
 
2964
  give_setting_edit = true;
2965
 
2966
+ jQuery.ajax({
2967
  type: 'POST',
2968
  url: ajaxurl,
2969
  data: {
2971
  fields: $form.serialize()
2972
  },
2973
  dataType: 'json',
2974
+ success: function (response) {
2975
  give_setting_edit = false;
2976
+ if (true === response.success) {
2977
+ jQuery(progress).find('div').width(response.percentage + '%');
2978
  } else {
2979
+ alert(give_vars.error_message);
2980
  }
2981
  window.location = response.url;
2982
  },
2983
  error: function () {
2984
  give_setting_edit = false;
2985
+ alert(give_vars.error_message);
2986
  }
2987
+ });
2988
  }
2989
 
2990
  /**
assets/js/admin/admin-scripts.min.js CHANGED
@@ -1,2 +1,2 @@
1
- function give_render_responsive_tabs(){var e=jQuery(".give-settings-page"),t=jQuery(".give-nav-tab-wrapper"),i=e.width(),n=jQuery(".give-sub-nav-tab-wrapper"),a=jQuery("nav",n),o=jQuery(".give-nav-tab-wrapper>a:not(give-not-tab)"),s=[],r=[],d=0;if(600<jQuery(window).outerWidth()&&(d=200),!e.length)return!1;t.css({height:"auto",overflow:"visible"}),o.removeClass("give-hidden");var c=new Promise(function(e,t){jQuery.each(o,function(e,t){t=jQuery(t),d+=parseInt(t.outerWidth()),d<i?s.push(t):r.push(t)}),e(!0)});c.then(function(e){if(r.length&&-1!=window.location.search.indexOf("&tab=")){var i={},o=get_url_params();r=r.filter(function(e){var t=-1!=parseInt(e.attr("href").indexOf("&tab="+o.tab));return t&&(i=e),!t}),i.length&&(r.unshift(s.pop()),s.push(i))}var d=new Promise(function(e,t){s.length&&jQuery.each(s,function(e,t){t=jQuery(t),t.hasClass("give-hidden")&&t.removeClass("give-hidden")}),e(!0)});d.then(function(e){r.length?(a.html(""),jQuery.each(r,function(e,t){t=jQuery(t),t.hasClass("nav-tab-active")||t.addClass("give-hidden"),t.clone().removeClass().appendTo(a)}),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(n),n.show()):n.hide()})})}function get_url_params(){for(var e,t=[],i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)e=i[n].split("="),t[e[0]]=e[1];return t}function give_on_core_settings_import_start(){var e=jQuery("form.tools-setting-page-import"),t=e.find(".give-progress");give_setting_edit=!0,jQuery.ajax({type:"POST",url:ajaxurl,data:{action:give_vars.core_settings_import,fields:e.serialize()},dataType:"json",success:function(e){give_setting_edit=!1,!0===e.success?jQuery(t).find("div").width(e.percentage+"%"):alert(give_vars.error_message),window.location=e.url},error:function(){give_setting_edit=!1,alert(give_vars.error_message)}})}function give_on_donation_import_start(){give_on_donation_import_ajax()}function give_on_donation_import_ajax(){var e=jQuery("form.tools-setting-page-import");give_setting_edit=!0;var t=e.find(".give-progress"),i=jQuery(t).data("total_ajax"),n=jQuery(t).data("current"),a=jQuery(t).data("start"),o=jQuery(t).data("end"),s=jQuery(t).data("next"),r=jQuery(t).data("total"),d=jQuery(t).data("per_page");jQuery.ajax({type:"POST",url:ajaxurl,data:{action:give_vars.give_donation_import,total_ajax:i,current:n,start:a,end:o,next:s,total:r,per_page:d,fields:e.serialize()},dataType:"json",success:function(e){jQuery(t).data("current",e.current),jQuery(t).find("div").width(e.percentage+"%"),1==e.next?(jQuery(t).data("start",e.start),jQuery(t).data("end",e.end),1==e.last&&jQuery(t).data("next",!1),give_on_donation_import_ajax()):(give_setting_edit=!1,window.location=e.url)},error:function(){give_setting_edit=!1,alert(give_vars.error_message)}})}jQuery.noConflict();var give_setting_edit=!1;!function(e){function t(e,t){return e=accounting.unformat(e,give_vars.decimal_separator).toString(),t="undefined"!==t&&t,e=!1!==t?parseFloat(e).toFixed(t):parseFloat(e).toFixed(give_vars.currency_decimals)}var i=function(){e("body").on("click","button.notice-dismiss",function(){"give-invalid-license"!==jQuery(this).closest("div.give-notice").data("notice-id")&&n()})},n=function(){var e="give-message",t=document.location.href,i=t.split("?");if(i.length>=2){for(var n=i.shift(),a=i.join("?"),o=encodeURIComponent(e)+"=",s=a.split(/[&;]/g),r=s.length;r-- >0;)s[r].lastIndexOf(o,0)!==-1&&s.splice(r,1);t=n+"?"+s.join("&"),window.history.pushState("",document.title,t)}return t},a=function(){if(e(".give_datepicker").length>0){var t="mm/dd/yy";e(".give_datepicker").datepicker({dateFormat:t})}},o=function(){var t=e(".give-select-chosen");t.on("chosen:ready",function(){e(this).next(".chosen-container").find("input.chosen-search-input").after('<span class="spinner"></span>')}),t.on("chosen:no_results",function(){var t=e(this).next(".chosen-container"),i=t.find("li.no-results"),n="";n=t.hasClass("give-select-chosen-ajax")&&i.length?give_vars.chosen.ajax_search_msg.replace("{search_term}",'"'+e("input",t).val()+'"'):give_vars.chosen.no_results_msg.replace("{search_term}",'"'+e("input",t).val()+'"'),i.html(n)}),t.chosen({inherit_select_classes:!0,placeholder_text_single:give_vars.one_option,placeholder_text_multiple:give_vars.one_or_more_option}),e("#post").on("click",".give-thickbox",function(){e(".give-select-chosen","#choose-give-form").css("width","100%")});var i,n=342;e(document.body).on("keyup",".give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input",function(t){var a=e(this).val(),o=e(this).closest(".give-select-chosen"),s=o.prev(),r=o.find('input[type="text"]'),d=(o.hasClass("variations"),t.which),c="give_forms_search";if(o.prev().data("search-type")){if("no_ajax"===s.data("search-type"))return;c="give_"+s.data("search-type")+"_search"}a.length<=3||!c.length||9===d||13===d||16===d||17===d||18===d||19===d||20===d||27===d||33===d||34===d||35===d||36===d||37===d||38===d||39===d||40===d||44===d||45===d||144===d||145===d||91===d||93===d||224===d||112<=d&&123>=d||(clearTimeout(i),o.addClass("give-select-chosen-ajax"),i=setTimeout(function(){e.ajax({type:"GET",url:ajaxurl,data:{action:c,s:a},dataType:"json",beforeSend:function(){s.closest("ul.chosen-results").empty(),r.prop("disabled",!0)},success:function(t){o.removeClass("give-select-chosen-ajax"),e("option:not(:selected)",s).remove(),t.length?(e.each(t,function(t,i){e('option[value="'+i.id+'"]',s).length||s.prepend('<option value="'+i.id+'">'+i.name+"</option>")}),o.prev("select.give-select-chosen").trigger("chosen:updated")):o.prev("select.give-select-chosen").trigger("chosen:no_results"),r.prop("disabled",!1),r.val(a).focus()}}).fail(function(e){window.console&&window.console.log&&console.log(e)}).done(function(e){r.prop("disabled",!1)})},n))}),e(".give-select-chosen .chosen-search input").each(function(){var t=e(this).parent().parent().parent().prev("select.give-select-chosen").data("search-type"),i="";"form"===t?i=give_vars.search_placeholder:(t="search_placeholder_"+t,give_vars[t]&&(i=give_vars[t])),e(this).attr("placeholder",i)})},s={init:function(){this.deleteSingleDonation(),this.resendSingleDonationReceipt()},deleteSingleDonation:function(){e("body").on("click",".delete-single-donation",function(){return confirm(give_vars.delete_payment)})},resendSingleDonationReceipt:function(){e("body").on("click",".resend-single-donation-receipt",function(){return confirm(give_vars.resend_receipt)})}},r={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change(function(){var t=e(this);return data={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"},e.post(ajaxurl,data,function(i){t.closest(".column-container").find("#give-order-address-state-wrap").removeClass("give-hidden"),t.closest(".column-container").find(".give-column").removeClass("column-full"),t.closest(".column-container").find(".give-column").addClass("column");var n=e("#give-order-address-state-wrap");n.find("*").not(".order-data-address-line").remove(),void 0!==typeof i.states_found&&!0===i.states_found?(n.append(i.data),n.find("select").chosen()):(n.append('<input type="text" name="give-payment-address[0][state]" value="'+i.default_state+'" class="give-edit-toggles medium-text"/>'),void 0!==typeof i.show_field&&!1===i.show_field&&(t.closest(".column-container").find("#give-order-address-state-wrap").addClass("give-hidden"),t.closest(".column-container").find(".give-column").addClass("column-full"),t.closest(".column-container").find(".give-column").removeClass("column")))}),!1})},add_note:function(){e("#give-add-payment-note").on("click",function(t){t.preventDefault();var i={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:e("#give-payment-note").val()};if(i.note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#give-payment-note").css("border-color");e("#give-payment-note").css("border-color","red"),setTimeout(function(){e("#give-payment-note").css("border-color",n)},500)}})},remove_note:function(){e("body").on("click",".give-delete-payment-note",function(t){if(t.preventDefault(),confirm(give_vars.delete_payment_note)){var i={action:"give_delete_payment_note",payment_id:e(this).data("payment-id"),note_id:e(this).data("note-id")};return e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){return e("#give-payment-note-"+i.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!0}})},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-donor, .give-payment-new-donor-cancel",function(t){t.preventDefault(),e(".donor-info").toggle(),e(".new-donor").toggle(),e(".new-donor").is(":visible")?e("#give-new-donor").val(1):e("#give-new-donor").val(0)})},resend_receipt:function(){e("body").on("click","#give-resend-receipt",function(e){return confirm(give_vars.resend_receipt)})},variable_price_list:function(){e("#give_payment_form_select").chosen().change(function(){var t,i=e(".give-donation-level");return!!(t=e(this).val())&&(!!i.length&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){t=t.trim(),t?(i.html(t),e('select[name="give-variable-price"]').chosen().change()):i.html("")}}))}),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',function(){var t=jQuery(this).data("prices"),i=e("#give-payment-total");""!==t&&e(this).val()in t&&(i.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout(function(){i.css("background-color","white")},1e3))})}},d={init:function(){this.setting_change_country(),this.toggle_options(),this.main_setting_update_notice(),this.verify_settings(),this.saveButtonTriggered(),this.changeSettingsUnload(),this.detectSettingsChange()},setting_change_country:function(){e('select[name="base_country"]').change(function(){var t=e(this),i={action:"give_get_states",country:t.val(),field_name:"base_state"};return e.post(ajaxurl,i,function(n){t.closest("tr").next().show(),void 0!=typeof n.states_found&&1==n.states_found?e(':input[name="base_state"]').replaceWith(n.data):(void 0!=typeof n.show_field&&0==n.show_field&&t.closest("tr").next().hide(),e(':input[name="base_state"]').replaceWith('<input type="text" name="'+i.field_name+'" value="'+n.default_state+'" class="give-edit-toggles medium-text"/>'))}),!1})},toggle_options:function(){var t=e('input[name="email_access"]',".give-setting-tab-body-general");t.on("change",function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())}).change();var i=e('input[name="form_featured_img"]',".give-setting-tab-body-display");i.on("change",function(){var t=e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val();"enabled"===t?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()}).change();var n=e('input[name="terms"]',".give-setting-tab-body-display");n.on("change",function(){var t=e('input[name="terms"]:checked',".give-setting-tab-body-display").val();"enabled"===t?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())}).change();var a=e('input[name="admin_notices"]',".give-setting-tab-body-emails");a.on("change",function(){var t=e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val();"enabled"===t?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())}).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout(function(){t.slideUp()},5e3)},verify_settings:function(){var t=e("#success_page"),i=e("#failure_page");t.add(i).change(function(){if(t.val()===i.val()){var n='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+give_vars.matched_success_failure_page+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+give_vars.dismiss_notice_text+"</span></button> </div>",a=e("#setting-error-give-matched-success-failure-page");if(e(this).val(""),a.length)return!1;e("h1","#give-mainform").after(n),a=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",a).click(function(){a.remove()})}}).change()},saveButtonTriggered:function(){e(".give-settings-setting-page").on("click",".give-save-button",function(){e(window).unbind("beforeunload")})},changeSettingsUnload:function(){e(".give-settings-setting-page").length>0&&e(window).bind("beforeunload",function(e){var t=give_vars.setting_not_save_message;if(give_setting_edit)return(e||window.event).returnValue=t,t})},detectSettingsChange:function(){var t=e(".give-settings-setting-page");if(t.length>0){var i=e("#give-mainform").serialize();t.on("change keyup blur","form",function(){var t=e("#give-mainform").serialize();give_setting_edit=i!==t})}}},c={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change(function(){var t=e(this);"other"===t.val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()})},donors_export:function(){e("#give_donor_export_form").change(function(){var t=e(this),i=e("option:selected",t).val(),n=e("#give_customer_export_option");"0"===t.val()?n.show():n.hide();var a=e(".give_price_options_select");if(0!=parseInt(i)){var o={action:"give_check_for_form_price_variations",form_id:i,all_prices:!0};e.post(ajaxurl,o,function(t){a.remove(),e("#give_donor_export_form_chosen").after(t)})}else a.remove()})},recount_stats:function(){e("body").on("change","#recount-stats-type",function(){var t=e("#give-tools-recount-form"),i=e("option:selected",this).data("type"),n=e("#recount-stats-submit"),a=e(".tools-form-dropdown");if(t.find(".notice-wrap").remove(),n.removeClass("button-disabled").attr("disabled",!1),a.hide(),e(".give-recount-stats-descriptions span").hide(),"reset-stats"===i){t.append('<div class="notice-wrap"></div>');var o=t.find(".notice-wrap");o.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+give_vars.reset_stats_warn+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else if("delete-test-donors"===i){t.append('<div class="notice-wrap"></div>');var o=t.find(".notice-wrap");o.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+give_vars.delete_test_donor+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else if("delete-import-donors"===i){t.append('<div class="notice-wrap"></div>');var o=t.find(".notice-wrap");o.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+give_vars.delete_import_donor+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else a.hide(),a.val(0);current_forms=e(".tools-form-dropdown-"+i),current_forms.show(),current_forms.find(".give-select-chosen").css({width:"auto","min-width":"250px"}),e("#"+i).show()}),e("body").on("change","#confirm-reset",function(){var t=e(this).is(":checked");t?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#give-tools-recount-form").submit(function(t){var i=e("#recount-stats-type").val(),n=e(this),a=e("option:selected",this).data("type");if("reset-stats"===a){var o=e("#confirm-reset").is(":checked");if(o)return!0;r=!0}n.find(".notice-wrap").remove(),n.append('<div class="notice-wrap"></div>');var s=n.find(".notice-wrap"),r=!1;if(null!==i&&0!==i||(s.html('<div class="updated error"><p>'+give_vars.batch_export_no_class+"</p></div>"),r=!0),"recount-form"===a){var d=e('select[name="form_id"]').val();0==d&&(s.html('<div class="updated error"><p>'+give_vars.batch_export_no_reqs+"</p></div>"),r=!0)}if(r)return n.find(".button-disabled").removeClass("button-disabled"),!1})}},l={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",function(i){i.preventDefault();var n=e(this).find('input[type="submit"]');if(!n.hasClass("button-disabled")){var a=e(this).serialize();n.addClass("button-disabled"),e(this).find(".notice-wrap").remove(),e(this).append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,a,t)}})},process_step:function(t,i,n){give_setting_edit=!0;var a=!1;e.ajax({type:"POST",url:ajaxurl,data:{form:i,action:"give_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){give_setting_edit=!1,a=!0;var o=e(".give-export-form").find(".give-progress").parent().parent(),s=o.find(".notice-wrap");if(o.find(".button-disabled").removeClass("button-disabled"),t.error){var r=t.message;s.html('<div class="updated error"><p>'+r+"</p></div>")}else if(t.success){var d=t.message;s.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+d+'<span class="notice-dismiss"></span></p></div>')}else s.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,function(){}),n.process_step(parseInt(t.step),i,n);!0===a&&(e("#give-tools-recount-form")[0].reset(),e("#give-tools-recount-form .tools-form-dropdown").hide(),e("#give-tools-recount-form .tools-form-dropdown-recount-form-select").val("0").trigger("chosen:updated"))}}).fail(function(t){give_setting_edit=!1,window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)})},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",function(){e("#give-batch-success").parent().slideUp("fast")})}},v={el:{},init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this,i=1,n=0;t.el.main_container=Give_Selector_Cache.get("#give-db-updates"),t.el.update_link=Give_Selector_Cache.get(".give-update-button a",t.el.main_container),t.el.run_upload_container=Give_Selector_Cache.get(".give-run-database-update",t.el.progress_main_container),t.el.progress_main_container=Give_Selector_Cache.get(".progress-container",t.el.main_container),t.el.heading=Give_Selector_Cache.get(".update-message",t.el.progress_main_container),t.el.progress_container=Give_Selector_Cache.get(".progress-content",t.el.progress_main_container),t.el.update_link.hasClass("active")||(t.el.update_link.on("click","",function(e){e.preventDefault(),t.el.run_upload_container.find(".notice").remove(),t.el.run_upload_container.append('<div class="notice notice-error non-dismissible give-run-update-containt"><p> <a href="#" class="give-run-update-button button">'+give_vars.db_update_confirmation_msg_button+"</a> "+give_vars.db_update_confirmation_msg+"</p></div>")}),e("#give-db-updates").on("click","a.give-run-update-button",function(a){return a.preventDefault(),!e(this).hasClass("active")&&(e(this).addClass("active").fadeOut(),t.el.update_link.addClass("active").fadeOut(),e("#give-db-updates .give-run-update-containt").slideUp(),t.el.progress_container.find(".notice-wrap").remove(),t.el.progress_container.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.el.progress_main_container.removeClass("give-hidden"),n=parseInt(t.el.heading.data("resume-update")),n&&(i=n),t.process_step(i,1,t),!1)}))},process_step:function(t,i,n){give_setting_edit=!0,e.ajax({type:"POST",url:ajaxurl,data:{action:"give_do_ajax_updates",step:parseInt(t),update:parseInt(i)},dataType:"json",success:function(t){give_setting_edit=!1;var i=Give_Selector_Cache.get(".notice-wrap",n.el.progress_container,!0);-1!==e.inArray("success",Object.keys(t))?t.success?(-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading+"</strong>"),n.el.update_link.closest("p").remove(),i.html('<div class="notice notice-success is-dismissible"><p>'+t.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading+"</strong>"),i.html('<div class="notice notice-error"><p>'+t.data.message+"</p></div>"),setTimeout(function(){n.el.update_link.removeClass("active").show(),n.el.progress_main_container.addClass("give-hidden")},5e3)):(e(".give-progress div","#give-db-updates").animate({width:t.data.percentage+"%"},50,function(){}),-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading.replace("{update_count}",n.el.heading.data("update-count"))+"</strong>"),n.process_step(parseInt(t.data.step),t.data.update,n))}}).fail(function(e){give_setting_edit=!1,window.console&&window.console.log&&console.log(e),Give_Selector_Cache.get(".notice-wrap",n.el.progress_container).append(e.responseText)}).always(function(){})},dismiss_message:function(){e("body").on("click","#poststuff .notice-dismiss",function(){e(this).parent().slideUp("fast")})}},u=function(){e('select[name="give-payment-status"]').on("change",function(){var t=e(this).val();e(".give-donation-status").removeClass(function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")}).addClass("status-"+t)})},p={init:function(){this.edit_donor(),this.add_email(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked(),this.bulkDeleteDonor(),e("body").on("click",'#give-donors-filter .bulkactions input[type="submit"]',this.handleBulkActions)},edit_donor:function(){e("body").on("click","#edit-donor",function(t){t.preventDefault(),e("#give-donor-card-wrapper .editable").hide(),e("#give-donor-card-wrapper .edit-item").fadeIn().css("display","block"),e(".give-select-chosen").css("width","100%")})},remove_user:function(){e("body").on("click","#disconnect-donor",function(t){if(t.preventDefault(),!confirm(give_vars.disconnect_user))return!1;var i=e('input[name="customerinfo[id]"]').val(),n={give_action:"disconnect-userid",customer_id:i,_wpnonce:e("#edit-donor-info #_wpnonce").val()};e.post(ajaxurl,n,function(e){window.location.href=e.redirect},"json")})},cancel_edit:function(){e("body").on("click","#give-edit-donor-cancel",function(t){t.preventDefault(),e("#give-donor-card-wrapper .edit-item").hide(),e("#give-donor-card-wrapper .editable").show(),e(".give_user_search_results").html("")})},change_country:function(){e('select[name="customerinfo[country]"]').change(function(){var t=e(this),i={action:"give_get_states",country:t.val(),field_name:"customerinfo[state]"};return e.post(ajaxurl,i,function(n){t.closest(".donor-address").find('[name="customerinfo[state]"]').removeClass("give-hidden"),void 0!=typeof n.states_found&&1==n.states_found?e(':input[name="customerinfo[state]"]').replaceWith(n.data):(e(':input[name="customerinfo[state]"]').replaceWith('<input type="text" name="'+i.field_name+'" value="'+n.default_state+'" class="give-edit-toggles medium-text"/>'),void 0!=typeof n.show_field&&0==n.show_field&&t.closest(".donor-address").find('[name="customerinfo[state]"]').addClass("give-hidden"))}),!1})},add_note:function(){e("body").on("click","#add-donor-note",function(t){t.preventDefault();var i={give_action:"add-donor-note",customer_id:e("#donor-id").val(),donor_note:e("#donor-note").val(),add_donor_note_nonce:e("#add_donor_note_nonce").val()};if(i.donor_note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-donor-notes").prepend(t),e(".give-no-donor-notes").hide(),e("#donor-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#donor-note").css("border-color");e("#donor-note").css("border-color","red"),setTimeout(function(){e("#donor-note").css("border-color",n)},500)}})},delete_checked:function(){e("#give-donor-delete-confirm").change(function(){var t=e("#give-donor-delete-records"),i=e("#give-delete-donor");e(this).prop("checked")?(t.attr("disabled",!1),i.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),i.attr("disabled",!0))})},add_email:function(){e("#add-donor-email").length&&e(document.body).on("click","#add-donor-email",function(t){t.preventDefault();var i=e(this),n=i.parent();n.parent().find(".notice-wrap").remove(),n.find(".spinner").css("visibility","visible"),i.attr("disabled",!0);var a=n.find('input[name="donor-id"]').val(),o=n.find('input[name="additional-email"]').val(),s=n.find('input[name="make-additional-primary"]').is(":checked"),r=n.find('input[name="add_email_nonce"]').val(),d={give_action:"add_donor_email",customer_id:a,email:o,primary:s,_wpnonce:r};e.post(ajaxurl,d,function(e){!0===e.success?window.location.href=e.redirect:(i.attr("disabled",!1),n.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),n.find(".spinner").css("visibility","hidden"))},"json")})},bulkDeleteDonor:function(){var t=e("body");t.on("click","#give-bulk-delete-cancel",function(t){e(this).closest("tr").hide(),e(".give-skip-donor").trigger("click"),t.preventDefault()}),t.on("click","#cb-select-all-1, #cb-select-all-2",function(){var t=e(this);e.each(e(".donor-selector"),function(){var i=e(this).val(),n=e(this).data("name"),a='<div id="give-donor-'+i+'" data-id="'+i+'"><a class="give-skip-donor" title="'+give_vars.remove_from_bulk_delete+'">X</a>'+n+"</div>";t.is(":checked")&&!e(this).is(":checked")?e("#give-bulk-donors").append(a):t.is(":checked")||e("#give-bulk-donors").find("#give-donor-"+i).remove()})}),t.on("click",".donor-selector",function(){var t=e(this).val(),i=e(this).data("name"),n='<div id="give-donor-'+t+'" data-id="'+t+'"><a class="give-skip-donor" title="'+give_vars.remove_from_bulk_delete+'">X</a>'+i+"</div>";e(this).is(":checked")?e("#give-bulk-donors").prepend(n):e("#give-bulk-donors").find("#give-donor-"+t).remove()}),t.on("click","#give-delete-donor-confirm",function(){e(this).is(":checked")?e("#give-bulk-delete-button").removeAttr("disabled"):(e("#give-bulk-delete-button").attr("disabled",!0),e("#give-delete-donor-records").removeAttr("checked"))}),t.on("click","#give-delete-donor-records",function(){e(this).is(":checked")&&(e("#give-delete-donor-confirm").attr("checked","checked"),e("#give-bulk-delete-button").removeAttr("disabled"))}),t.on("click",".give-skip-donor",function(){var t=e(this).closest("div").data("id");e("#give-donor-"+t).remove(),e("#donor-"+t).find('input[type="checkbox"]').removeAttr("checked")}),t.on("click",".give-single-donor-delete",function(t){var i=e(this).data("id"),n=e("tr#donor-"+i).find(".donor-selector"),a=e('[id^="cb-select-all-"]'),o=e("#give-bulk-donors"),s=n.data("name"),r='<div id="give-donor-'+i+'" data-id="'+i+'"><a class="give-skip-donor" title="'+give_vars.remove_from_bulk_delete+'">X</a>'+s+"</div>";o.html(""),a.is(":checked")&&a.removeAttr("checked"),e(".donor-selector").removeAttr("checked"),n.attr("checked","checked"),0===e("#give-donor-"+i).length&&(o.prepend(r),e("#give-bulk-delete").slideDown()),t.preventDefault()})},handleBulkActions:function(t){var i=e(this).closest(".tablenav").find("select").val(),n=[],a=give_vars.donors_bulk_action.no_action_selected,o=give_vars.donors_bulk_action.no_donor_selected;return e.each(e(".donor-selector:checked"),function(){n.push(e(this).val())}),"-1"===i?(alert(a),!1):parseInt(n)?("delete"===i&&e("#give-bulk-delete").slideDown(),void t.preventDefault()):(alert(o),!1)}},g={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",function(e){return confirm(give_vars.revoke_api_key)})},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",function(e){return confirm(give_vars.regenerate_api_key)})}},_={init:function(){var t=e.query.get("give_tab").length?e.query.get("give_tab"):"form_field_options";this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events(),this.activate_tab(e('a[href="#'+t+'"]'))},handle_metabox_tab_click:function(){var t=this,i=e(".give-metabox-tabs a");i.on("click",function(i){i.preventDefault(),$this=e(this),t.activate_tab($this),t.update_query($this)})},activate_tab:function(t){var i=t.data("tab-id"),n=t.parent(),a=e("ul.give-metabox-sub-tabs",n),o=a.length,s=e(".give-metabox-tabs a"),r=s.parents("li"),d=e("ul.give-metabox-sub-tabs"),c=t.parents("ul.give-metabox-sub-tabs").length;if(e("#give_form_active_tab").val(i),o){n.toggleClass("active"),a.removeClass("give-hidden");var l=e("li.active","ul.give-metabox-sub-tabs");d.not(a).addClass("give-hidden"),r.not(n).removeClass("active"),l.addClass("active")}else c?c&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),r.removeClass("active"),t.parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),t.parents("li.has-sub-fields").addClass("active")):r.each(function(t,i){i=e(i),i.removeClass("active"),i.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",i).addClass("give-hidden")});t.parent().addClass("active"),e(".give_options_panel").removeClass("active"),e(t.attr("href")).addClass("active")},update_query:function(t){var i=t.data("tab-id"),n=e.query.set("give_tab",i).remove("message").toString();history.replaceState&&history.replaceState(null,null,n)},setup_colorpicker_fields:function(){e(document).ready(function(){var t=e(".give-colorpicker");t.length&&t.each(function(t,i){var n=e(i);n.parents(".give-template").length||n.wpColorPicker()})})},setup_media_fields:function(){var t,i,n=e("body");n.on("click",".give-upload-button",function(a){a.preventDefault();var o={};switch(i=e(this),e(this).data("field-type")){case"media":o={title:give_vars.metabox_fields.media.button_title,button:{text:give_vars.metabox_fields.media.button_title},multiple:!1,library:{type:"image"}};break;default:o={title:give_vars.metabox_fields.file.button_title,button:{text:give_vars.metabox_fields.file.button_title},multiple:!1}}var s=jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("editing");"undefined"!=typeof s&&(wp.media.controller.Library.prototype.defaults.contentUserSetting=!1);var r=jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("library");"undefined"!=typeof r&&""!==r&&(o.library={type:r}),t=wp.media(o),t.on("select",function(){var e=t.state().get("selection").first().toJSON(),a=i.prev(),o="id"===i.data("fvalue")?e.id:e.url;if(n.trigger("give_media_inserted",[e,a]),a.val(o),"id"!==i.data("fvalue")){var s='input[name="'+a.attr("name")+'_id"]',r=a.closest("tr").next("tr").find(s);r.length&&a.closest("tr").next("tr").find(s).val(e.id)}}),t.open()}),n.on("give_media_inserted",function(t,n){var a=i.parents(".give-field-wrap"),o=e(".give-image-thumb",a);
2
- return!!o.length&&("image"!==n.type?(o.addClass("give-hidden"),e("img",o).attr("src",""),!1):(o.find("img").attr("src",n.url),void o.removeClass("give-hidden")))}),e("span.give-delete-image-thumb",".give-image-thumb").on("click",function(t){t.preventDefault();var i=e(this).parents(".give-field-wrap"),n=e(this).parent(),a=e('input[type="text"]',i);n.addClass("give-hidden"),a.val(""),e("img",n).attr("src","")})},setup_repeatable_fields:function(){jQuery(function(){jQuery(".give-repeatable-field-section").each(function(){var t=e(this),i={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:give_vars.confirm_before_remove_row_text,is_sortable:!0,before_add:null,after_add:f,before_remove:null,after_remove:h,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(t,i){e("body").trigger("repeater_field_sorting_start",[i.item])},stop:function(t,i){e("body").trigger("repeater_field_sorting_stop",[i.item])},update:function(i,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item);var a=e(".give-row",t).not(".give-template");if(a.length){var o=1;a.each(function(t,i){var n=e(".give-field, label",e(i));n.length&&n.each(function(){var t=e(this).parents(".give-field-wrap"),i=e(this);e.each(this.attributes,function(e,n){var a=this.value.replace(/\[/g,"_").replace(/]/g,""),s=a+"_field",r="",d="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(o-1)+"]"),d=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(s)&&(r=d+"_field",t.removeClass(s).addClass(r)),a==i.attr("id")&&i.attr("id",d))})}),o++}),t.trigger("repeater_field_row_reordered",[n.item])}}}};jQuery(this).repeatable_fields(i)})})},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),i=e("body");i.on("click",".give-row-head button",function(){var t=e(this).closest("tr");t.toggleClass("closed"),e(".give-row-body",t).toggle()}),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",function(){m(e(this))}),i.on("repeater_field_sorting_start",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(i).attr("id"))},300)})}),i.on("repeater_field_sorting_stop",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){var t=e(i).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout(function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")},100)},300)})}),t.each(function(t,i){var n=e(i);m(n),parseInt(n.data("close-tabs"))&&(e(".give-row-head button",n).trigger("click"),e(".give-template",n).removeClass("closed"),e(".give-template .give-row-body",n).show())}),t.on("repeater_field_new_row_added",function(t,i,n){e(".give-colorpicker",e(this)).each(function(t,i){var n=e(i);n.parents(".wp-picker-container").length||n.parents(".give-template").length||n.wpColorPicker()});var a=e("div[data-wp-editor]",n);a.length&&a.each(function(t,i){var n=e(i),a=e(".wp-editor-wrap",n),o=e("textarea",n),s="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),r=a.prev();o.attr("id",s),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:n.data("wp-editor"),wp_editor_id:s,textarea_name:e("textarea",n).attr("name")},function(t){a.remove(),r.after(t),tinyMCEPreInit.qtInit[o.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:s}),tinyMCEPreInit.mceInit[s]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:s+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+s}),tinymce.init(tinyMCEPreInit.mceInit[s]),quicktags(tinyMCEPreInit.qtInit[s]),QTags._buttonsInit(),window.setTimeout(function(){switchEditors.go(s,"html"),e("#"+s+"-tmce").trigger("click")},100),window.wpActiveEditor||(window.wpActiveEditor=s)})})})},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",function(){var t=e(this).closest("tr"),i=e(".give-row-head h2 span",t),n=i.data("header-title");return(!e(this).val()||e(this).val()!==i.html())&&void(e(this).val()?i.html(n+": "+e(this).val()):i.html(n))}),e(".give-multilevel-text-field").each(function(t,i){if(t){var n=e(i),a=n.closest("tr"),o=e(".give-row-head h2 span",a),s=o.data("header-title");return(!n.val()||n.val()!==o.html())&&void(n.val()?o.html(s+": "+n.val()):o.html(s))}}),t.on("repeater_field_row_deleted",function(){var t=e(this);window.setTimeout(function(){var i=t,n=e(".give-row",i).not(".give-template"),a=e(".give-give_default_radio_inline",n),o=n.length;1===o&&a.prop("checked",!0)},200)}),t.on("repeater_field_new_row_added",function(t,i,n){var a=e(this),o=0;window.setTimeout(function(){e(".give-give_default_radio_inline",a).is(":checked")===!1&&e(".give-row",a).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)},200),e('input[type="hidden"].give-levels_id',a).each(function(t,i){var n=e(i),a=parseInt(n.val());o<a&&(o=a)}),e('input[type="hidden"].give-levels_id',n).val(++o)})}},f=function(t,i){var n=e(t).attr("data-rf-row-count"),a=e(t),o=a.parents(".give-repeatable-field-section");n++,e("*",i).each(function(){e.each(this.attributes,function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",n-1)})}),e(t).attr("data-rf-row-count",n),o.trigger("repeater_field_new_row_added",[t,i])},h=function(t){var i=e(t),n=i.parents(".give-repeatable-field-section"),a=e(t).attr("data-rf-row-count");i.attr("data-rf-row-count",--a),n.trigger("repeater_field_row_deleted")},m=function(t){if(parseInt(t.data("group-numbering"))){var i=e(".give-row-head h2 span",t),n=i.data("header-title");i.each(function(t,i){var a=e(i);a.parents(".give-template").length||a.html(n+": "+t)})}},b=function(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},events:{show:function(t,i){var n=e(i.elements.target[0]);n.qtip("option","position.my",void 0===n.data("tooltip-my-position")?"bottom center":n.data("tooltip-my-position")),n.qtip("option","position.at",void 0===n.data("tooltip-target-position")?"top center":n.data("tooltip-target-position"))}}})},y={init:function(){e("body").on("click",'#give-payments-filter input[type="submit"]',this.handleBulkActions)},handleBulkActions:function(){var t=e(this).closest(".tablenav").find("select").val(),i=e(this).closest(".tablenav").find('option[value="'+t+'"]').text(),n=e('input[name="payment[]"]:checked').length,a=-1!==t.indexOf("set-status-"),o="",s="";if(t=a?"set-to-status":t,Object.keys(give_vars.donations_bulk_action).length)for(s in give_vars.donations_bulk_action)if(s===t)return o=a?give_vars.donations_bulk_action[t].zero.replace("{status}",i.replace("Set To ","")):give_vars.donations_bulk_action[t].zero,parseInt(n)?(o=1<n?give_vars.donations_bulk_action[t].multiple:give_vars.donations_bulk_action[t].single,window.confirm(o.replace("{payment_count}",n).replace("{status}",i.replace("Set To ","")))):(alert(o),!1);return!0}};e(function(){function n(t){t.each(function(){e(this).qtip({style:"qtip-dark qtip-tipsy",content:{text:give_vars.price_format_guide.trim()},show:"",position:{my:"bottom center",at:"top center"}})})}i(),a(),u(),o(),s.init(),r.init(),d.init(),c.init(),p.init(),g.init(),l.init(),v.init(),_.init(),y.init(),b(),e("a.give-rating-link").click(function(){jQuery(this).parent().text(jQuery(this).data("rated"))});var f=e("input.give-money-field, input.give-price-field"),h=give_vars.thousands_separator,m=give_vars.decimal_separator,w="",k="",x="",j=m===h?1:0;n(f),e("#_give_donation_levels_repeat").on("click","button.cmb-add-group-row",function(){window.setTimeout(function(){f=e("input.give-money-field, input.give-price-field"),n(f)},100)}),e("#poststuff").on("keyup","input.give-money-field, input.give-price-field",function(){w=(e(this).val().match(new RegExp(h,"g"))||[]).length,k=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(h)&&j<w?e(this).qtip("show"):k?e(this).qtip("show"):e(this).qtip("hide"),w=k=""}),e("#poststuff").on("focusout","input.give-money-field, input.give-price-field",function(){if(x=t(e(this).val(),!1),t("0",!1)===t(e(this).val(),!1)){var i=e(this).attr("placeholder");return i=i?i:"0",e(this).val(i),!1}x=x.replace(".",m),-1!==x.indexOf("-")&&(x=x.replace("-","")),e(this).val(x)}),e(".give-settings-page").on("click","#give-show-sub-nav",function(t){t.preventDefault();var i=e(this).next();return i.is(":hover")||i.toggleClass("give-hidden"),!1}).on("blur","#give-show-sub-nav",function(){var t=e(this).next();t.is(":hover")||t.addClass("give-hidden")}),give_render_responsive_tabs()})}(jQuery),jQuery(window).resize(function(){give_render_responsive_tabs()});
1
+ function give_render_responsive_tabs(){var e=jQuery(".give-settings-page"),t=jQuery("h2.give-nav-tab-wrapper"),i=e.width(),n=jQuery(".give-sub-nav-tab-wrapper"),a=jQuery("nav",n),s=jQuery("div.give-nav-tab-wrapper > a:not(give-not-tab)"),o=[],r=[],d=0;if(600<jQuery(window).outerWidth()&&(d=200),!e.length)return!1;t.css({height:"auto",overflow:"visible"}),s.removeClass("give-hidden");var c=new Promise(function(e,t){jQuery.each(s,function(e,t){t=jQuery(t),d+=parseInt(t.outerWidth()),d<i?o.push(t):r.push(t)}),e(!0)});c.then(function(e){if(r.length&&-1!==window.location.search.indexOf("&tab=")){var i={},s=get_url_params();r=r.filter(function(e){var t=-1!==parseInt(e.attr("href").indexOf("&tab="+s.tab));return t&&(i=e),!t}),i.length&&(r.unshift(o.pop()),o.push(i))}var d=new Promise(function(e,t){o.length&&jQuery.each(o,function(e,t){t=jQuery(t),t.hasClass("give-hidden")&&t.removeClass("give-hidden")}),e(!0)});d.then(function(e){r.length?(a.html(""),jQuery.each(r,function(e,t){t=jQuery(t),t.hasClass("nav-tab-active")||t.addClass("give-hidden"),t.clone().removeClass().appendTo(a)}),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(n),n.show()):n.hide()})})}function get_url_params(){for(var e,t=[],i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)e=i[n].split("="),t[e[0]]=e[1];return t}function give_on_core_settings_import_start(){var e=jQuery("form.tools-setting-page-import"),t=e.find(".give-progress");give_setting_edit=!0,jQuery.ajax({type:"POST",url:ajaxurl,data:{action:give_vars.core_settings_import,fields:e.serialize()},dataType:"json",success:function(e){give_setting_edit=!1,!0===e.success?jQuery(t).find("div").width(e.percentage+"%"):alert(give_vars.error_message),window.location=e.url},error:function(){give_setting_edit=!1,alert(give_vars.error_message)}})}function give_on_donation_import_start(){give_on_donation_import_ajax()}function give_on_donation_import_ajax(){var e=jQuery("form.tools-setting-page-import");give_setting_edit=!0;var t=e.find(".give-progress"),i=jQuery(t).data("total_ajax"),n=jQuery(t).data("current"),a=jQuery(t).data("start"),s=jQuery(t).data("end"),o=jQuery(t).data("next"),r=jQuery(t).data("total"),d=jQuery(t).data("per_page");jQuery.ajax({type:"POST",url:ajaxurl,data:{action:give_vars.give_donation_import,total_ajax:i,current:n,start:a,end:s,next:o,total:r,per_page:d,fields:e.serialize()},dataType:"json",success:function(e){jQuery(t).data("current",e.current),jQuery(t).find("div").width(e.percentage+"%"),1==e.next?(jQuery(t).data("start",e.start),jQuery(t).data("end",e.end),1==e.last&&jQuery(t).data("next",!1),give_on_donation_import_ajax()):(give_setting_edit=!1,window.location=e.url)},error:function(){give_setting_edit=!1,alert(give_vars.error_message)}})}jQuery.noConflict();var give_setting_edit=!1;!function(e){function t(e,t){return e=accounting.unformat(e,give_vars.decimal_separator).toString(),t="undefined"!==t&&t,e=!1!==t?parseFloat(e).toFixed(t):parseFloat(e).toFixed(give_vars.currency_decimals)}var i=function(t,i){i=jQuery.extend({wrapper:!0,show:!1},i);var n=i.wrapper?e(".give-spinner-wrapper",t):{},a=e(".give-spinner",t);return i.show?(n.length&&n.addClass("is-active"),void a.addClass("is-active")):(n.length&&n.removeClass("is-active"),void a.removeClass("is-active"))},n=function(){e("body").on("click","button.notice-dismiss",function(){"give-invalid-license"!==jQuery(this).closest("div.give-notice").data("notice-id")&&a()})},a=function(){var e="give-message",t=document.location.href,i=t.split("?");if(i.length>=2){for(var n=i.shift(),a=i.join("?"),s=encodeURIComponent(e)+"=",o=a.split(/[&;]/g),r=o.length;r-- >0;)o[r].lastIndexOf(s,0)!==-1&&o.splice(r,1);t=n+"?"+o.join("&"),window.history.pushState("",document.title,t)}return t},s=function(){if(e(".give_datepicker").length>0){var t="mm/dd/yy";e(".give_datepicker").datepicker({dateFormat:t})}},o=function(){var t=e(".give-select-chosen");t.on("chosen:ready",function(){e(this).next(".chosen-container").find("input.chosen-search-input").after('<span class="spinner"></span>')}),t.on("chosen:no_results",function(){var t=e(this).next(".chosen-container"),i=t.find("li.no-results"),n="";n=t.hasClass("give-select-chosen-ajax")&&i.length?give_vars.chosen.ajax_search_msg.replace("{search_term}",'"'+e("input",t).val()+'"'):give_vars.chosen.no_results_msg.replace("{search_term}",'"'+e("input",t).val()+'"'),i.html(n)}),t.chosen({inherit_select_classes:!0,placeholder_text_single:give_vars.one_option,placeholder_text_multiple:give_vars.one_or_more_option}),e(".chosen-container").each(function(){0===e(this).width()&&e(this).css("width","100%")}),e("#post").on("click",".give-thickbox",function(){e(".give-select-chosen","#choose-give-form").css("width","100%")});var i,n=342;e(document.body).on("keyup",".give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input",function(t){var a=e(this).val(),s=e(this).closest(".give-select-chosen"),o=s.prev(),r=s.find('input[type="text"]'),d=(s.hasClass("variations"),t.which),c="give_forms_search";if(s.prev().data("search-type")){if("no_ajax"===o.data("search-type"))return;c="give_"+o.data("search-type")+"_search"}a.length<=3||!c.length||9===d||13===d||16===d||17===d||18===d||19===d||20===d||27===d||33===d||34===d||35===d||36===d||37===d||38===d||39===d||40===d||44===d||45===d||144===d||145===d||91===d||93===d||224===d||112<=d&&123>=d||(clearTimeout(i),s.addClass("give-select-chosen-ajax"),i=setTimeout(function(){e.ajax({type:"GET",url:ajaxurl,data:{action:c,s:a},dataType:"json",beforeSend:function(){o.closest("ul.chosen-results").empty(),r.prop("disabled",!0)},success:function(t){s.removeClass("give-select-chosen-ajax"),e("option:not(:selected)",o).remove(),t.length?(e.each(t,function(t,i){e('option[value="'+i.id+'"]',o).length||o.prepend('<option value="'+i.id+'">'+i.name+"</option>")}),s.prev("select.give-select-chosen").trigger("chosen:updated")):s.prev("select.give-select-chosen").trigger("chosen:no_results"),r.prop("disabled",!1),r.val(a).focus()}}).fail(function(e){window.console&&window.console.log&&console.log(e)}).done(function(e){r.prop("disabled",!1)})},n))}),e(".give-select-chosen .chosen-search input").each(function(){var t=e(this).parent().parent().parent().prev("select.give-select-chosen").data("search-type"),i="";"form"===t?i=give_vars.search_placeholder:(t="search_placeholder_"+t,give_vars[t]&&(i=give_vars[t])),e(this).attr("placeholder",i)})},r={init:function(){this.deleteSingleDonation(),this.resendSingleDonationReceipt()},deleteSingleDonation:function(){e("body").on("click",".delete-single-donation",function(){return confirm(give_vars.delete_payment)})},resendSingleDonationReceipt:function(){e("body").on("click",".resend-single-donation-receipt",function(){return confirm(give_vars.resend_receipt)})}},d={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change(function(){var t=e(this);return data={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"},e.post(ajaxurl,data,function(i){t.closest(".column-container").find("#give-order-address-state-wrap").removeClass("give-hidden"),t.closest(".column-container").find(".give-column").removeClass("column-full"),t.closest(".column-container").find(".give-column").addClass("column");var n=e("#give-order-address-state-wrap");n.find("*").not(".order-data-address-line").remove(),void 0!==typeof i.states_found&&!0===i.states_found?(n.append(i.data),n.find("select").chosen()):(n.append('<input type="text" name="give-payment-address[0][state]" value="'+i.default_state+'" class="give-edit-toggles medium-text"/>'),void 0!==typeof i.show_field&&!1===i.show_field&&(t.closest(".column-container").find("#give-order-address-state-wrap").addClass("give-hidden"),t.closest(".column-container").find(".give-column").addClass("column-full"),t.closest(".column-container").find(".give-column").removeClass("column")))}),!1})},add_note:function(){e("#give-add-payment-note").on("click",function(t){t.preventDefault();var i={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:e("#give-payment-note").val()};if(i.note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#give-payment-note").css("border-color");e("#give-payment-note").css("border-color","red"),setTimeout(function(){e("#give-payment-note").css("border-color",n)},500)}})},remove_note:function(){e("body").on("click",".give-delete-payment-note",function(t){if(t.preventDefault(),confirm(give_vars.delete_payment_note)){var i={action:"give_delete_payment_note",payment_id:e(this).data("payment-id"),note_id:e(this).data("note-id")};return e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){return e("#give-payment-note-"+i.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!0}})},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-donor, .give-payment-new-donor-cancel",function(t){t.preventDefault(),e(".donor-info").toggle(),e(".new-donor").toggle(),e(".new-donor").is(":visible")?e("#give-new-donor").val(1):e("#give-new-donor").val(0)})},resend_receipt:function(){e("body").on("click","#give-resend-receipt",function(e){return confirm(give_vars.resend_receipt)})},variable_price_list:function(){e("#give_payment_form_select").chosen().change(function(){var t,i=e(".give-donation-level");return!!(t=e(this).val())&&(!!i.length&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){t=t.trim(),t?(i.html(t),e('select[name="give-variable-price"]').chosen().change()):i.html("")}}))}),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',function(){var t=jQuery(this).data("prices"),i=e("#give-payment-total");""!==t&&e(this).val()in t&&(i.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout(function(){i.css("background-color","white")},1e3))})}},c={init:function(){this.setting_change_country(),this.toggle_options(),this.main_setting_update_notice(),this.verify_settings(),this.saveButtonTriggered(),this.changeAlert(),this.detectSettingsChange()},setting_change_country:function(){e('select[name="base_country"]').change(function(){var t=e(this),i={action:"give_get_states",country:t.val(),field_name:"base_state"};return e.post(ajaxurl,i,function(n){t.closest("tr").next().show(),void 0!=typeof n.states_found&&1==n.states_found?e(':input[name="base_state"]').replaceWith(n.data):(void 0!=typeof n.show_field&&0==n.show_field&&t.closest("tr").next().hide(),e(':input[name="base_state"]').replaceWith('<input type="text" name="'+i.field_name+'" value="'+n.default_state+'" class="give-edit-toggles medium-text"/>'))}),!1})},toggle_options:function(){var t=e('input[name="email_access"]',".give-setting-tab-body-general");t.on("change",function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())}).change();var i=e('input[name="form_featured_img"]',".give-setting-tab-body-display");i.on("change",function(){var t=e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val();"enabled"===t?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()}).change();var n=e('input[name="terms"]',".give-setting-tab-body-display");n.on("change",function(){var t=e('input[name="terms"]:checked',".give-setting-tab-body-display").val();"enabled"===t?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())}).change();var a=e('input[name="admin_notices"]',".give-setting-tab-body-emails");a.on("change",function(){var t=e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val();"enabled"===t?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())}).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout(function(){t.slideUp()},5e3)},verify_settings:function(){var t=e("#success_page"),i=e("#failure_page");t.add(i).change(function(){if(t.val()===i.val()){var n='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+give_vars.matched_success_failure_page+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+give_vars.dismiss_notice_text+"</span></button> </div>",a=e("#setting-error-give-matched-success-failure-page");if(e(this).val(""),a.length)return!1;e("h1","#give-mainform").after(n),a=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",a).click(function(){a.remove()})}}).change()},saveButtonTriggered:function(){e(".give-settings-setting-page").on("click",".give-save-button",function(){e(window).unbind("beforeunload")})},changeAlert:function(){e(window).bind("beforeunload",function(e){var t=give_vars.setting_not_save_message;if(give_setting_edit)return(e||window.event).returnValue=t,t})},detectSettingsChange:function(){var t=e(".give-settings-setting-page");if(t.length>0){var i=e("#give-mainform").serialize();t.on("change keyup blur","form",function(){var t=e("#give-mainform").serialize();give_setting_edit=i!==t})}}},l={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change(function(){var t=e(this);"other"===t.val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()})},donors_export:function(){e("#give_donor_export_form").change(function(){var t=e(this),i=e("option:selected",t).val(),n=e("#give_customer_export_option");"0"===t.val()?n.show():n.hide();var a=e(".give_price_options_select");if(0!=parseInt(i)){var s={action:"give_check_for_form_price_variations",form_id:i,all_prices:!0};e.post(ajaxurl,s,function(t){a.remove(),e("#give_donor_export_form_chosen").after(t)})}else a.remove()})},recount_stats:function(){e("body").on("change","#recount-stats-type",function(){var t=e("#give-tools-recount-form"),i=e("option:selected",this).data("type"),n=e("#recount-stats-submit"),a=e(".tools-form-dropdown");if(t.find(".notice-wrap").remove(),n.removeClass("button-disabled").attr("disabled",!1),a.hide(),e(".give-recount-stats-descriptions span").hide(),"reset-stats"===i){t.append('<div class="notice-wrap"></div>');var s=t.find(".notice-wrap");s.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+give_vars.reset_stats_warn+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else if("delete-test-donors"===i){t.append('<div class="notice-wrap"></div>');var s=t.find(".notice-wrap");s.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+give_vars.delete_test_donor+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else if("delete-import-donors"===i){t.append('<div class="notice-wrap"></div>');var s=t.find(".notice-wrap");s.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+give_vars.delete_import_donor+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else a.hide(),a.val(0);current_forms=e(".tools-form-dropdown-"+i),current_forms.show(),current_forms.find(".give-select-chosen").css({width:"auto","min-width":"250px"}),e("#"+i).show()}),e("body").on("change","#confirm-reset",function(){var t=e(this).is(":checked");t?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#give-tools-recount-form").submit(function(t){var i=e("#recount-stats-type").val(),n=e(this),a=e("option:selected",this).data("type");if("reset-stats"===a){var s=e("#confirm-reset").is(":checked");if(s)return!0;r=!0}n.find(".notice-wrap").remove(),n.append('<div class="notice-wrap"></div>');var o=n.find(".notice-wrap"),r=!1;if(null!==i&&0!==i||(o.html('<div class="updated error"><p>'+give_vars.batch_export_no_class+"</p></div>"),r=!0),"recount-form"===a){var d=e('select[name="form_id"]').val();0==d&&(o.html('<div class="updated error"><p>'+give_vars.batch_export_no_reqs+"</p></div>"),r=!0)}if(r)return n.find(".button-disabled").removeClass("button-disabled"),!1})}},v={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",function(i){i.preventDefault();var n=e(this).find('input[type="submit"]');if(!n.hasClass("button-disabled")){var a=e(this).serialize();n.addClass("button-disabled"),e("form.give-export-form select").attr("disabled",!0).trigger("chosen:updated"),e(this).find(".notice-wrap").remove(),e(this).append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,a,t)}})},process_step:function(t,i,n){give_setting_edit=!0;var a=!1;e.ajax({type:"POST",url:ajaxurl,data:{form:i,action:"give_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){give_setting_edit=!1,a=!0;var s=e(".give-export-form").find(".give-progress").parent().parent(),o=s.find(".notice-wrap");if(s.find(".button-disabled").removeClass("button-disabled"),e("form.give-export-form select").attr("disabled",!1).trigger("chosen:updated"),t.error){var r=t.message;o.html('<div class="updated error"><p>'+r+"</p></div>")}else if(t.success){var d=t.message;o.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+d+'<span class="notice-dismiss"></span></p></div>')}else o.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,function(){}),n.process_step(parseInt(t.step),i,n);!0===a&&(e("#give-tools-recount-form")[0].reset(),e("#give-tools-recount-form .tools-form-dropdown").hide(),e("#give-tools-recount-form .tools-form-dropdown-recount-form-select").val("0").trigger("chosen:updated"))}}).fail(function(t){give_setting_edit=!1,window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)})},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",function(){e("#give-batch-success").parent().slideUp("fast")})}},u={el:{},init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;t.el.main_container=Give_Selector_Cache.get("#give-db-updates"),t.el.update_link=Give_Selector_Cache.get(".give-update-button a",t.el.main_container),t.el.run_upload_container=Give_Selector_Cache.get(".give-run-database-update",t.el.progress_main_container),t.el.progress_main_container=Give_Selector_Cache.get(".progress-container",t.el.main_container),t.el.heading=Give_Selector_Cache.get(".update-message",t.el.progress_main_container),t.el.progress_container=Give_Selector_Cache.get(".progress-content",t.el.progress_main_container),t.el.update_progress_counter=Give_Selector_Cache.get(e(".give-update-progress-count")),t.el.main_container.data("resume-update")&&(t.el.update_link.addClass("active").hide().removeClass("give-hidden"),window.setTimeout(u.get_db_updates_info,1e3,t)),t.el.update_link.hasClass("active")||(t.el.update_link.on("click","",function(e){e.preventDefault(),t.el.run_upload_container.find(".notice").remove(),t.el.run_upload_container.append('<div class="notice notice-error non-dismissible give-run-update-containt"><p> <a href="#" class="give-run-update-button button">'+give_vars.db_update_confirmation_msg_button+"</a> "+give_vars.db_update_confirmation_msg+"</p></div>")}),e("#give-db-updates").on("click","a.give-run-update-button",function(i){return i.preventDefault(),!e(this).hasClass("active")&&(e(this).addClass("active").fadeOut(),t.el.update_link.addClass("active").fadeOut(),e("#give-db-updates .give-run-update-containt").slideUp(),t.el.progress_container.find(".notice-wrap").remove(),t.el.progress_container.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.el.progress_main_container.removeClass("give-hidden"),e.ajax({type:"POST",url:ajaxurl,data:{action:"give_run_db_updates",run_db_update:1},dataType:"json",success:function(e){}}),window.setTimeout(u.get_db_updates_info,500,t),!1)}))},get_db_updates_info:function(t){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_db_updates_info"},dataType:"json",success:function(i){var n=Give_Selector_Cache.get(".notice-wrap",t.el.progress_container,!0);-1!==e.inArray("success",Object.keys(i))?i.success?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text("100%"),-1!==e.inArray("heading",Object.keys(i.data))&&t.el.heading.html("<strong>"+i.data.heading+"</strong>"),t.el.update_link.closest("p").remove(),n.html('<div class="notice notice-success is-dismissible"><p>'+i.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(i.data))&&t.el.heading.html("<strong>"+i.data.heading+"</strong>"),n.html('<div class="notice notice-error"><p>'+i.data.message+"</p></div>"),setTimeout(function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")},1e3)):i&&-1!==e.inArray("percentage",Object.keys(i.data))?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text(i.data.total_percentage+"%"),-1!==e.inArray("heading",Object.keys(i.data))&&t.el.heading.html("<strong>"+i.data.heading+"</strong>"),e(".give-progress div","#give-db-updates").animate({width:i.data.percentage+"%"},50,function(){}),window.setTimeout(u.get_db_updates_info,1e3,t)):(n.html('<div class="notice notice-error"><p>'+give_vars.updates.ajax_error+"</p></div>"),setTimeout(function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")},1e3))}})},process_step:function(t,i,n){give_setting_edit=!0,e.ajax({type:"POST",url:ajaxurl,data:{action:"give_do_ajax_updates",step:parseInt(t),update:parseInt(i)},dataType:"json",success:function(t){give_setting_edit=!1;var i=Give_Selector_Cache.get(".notice-wrap",n.el.progress_container,!0);-1!==e.inArray("success",Object.keys(t))?t.success?(-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading+"</strong>"),n.el.update_link.closest("p").remove(),i.html('<div class="notice notice-success is-dismissible"><p>'+t.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading+"</strong>"),i.html('<div class="notice notice-error"><p>'+t.data.message+"</p></div>"),setTimeout(function(){n.el.update_link.removeClass("active").show(),n.el.progress_main_container.addClass("give-hidden")},5e3)):t&&-1!==e.inArray("percentage",Object.keys(t.data))?(e(".give-progress div","#give-db-updates").animate({width:t.data.percentage+"%"},50,function(){}),-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading.replace("{update_count}",n.el.heading.data("update-count"))+"</strong>"),n.process_step(parseInt(t.data.step),t.data.update,n)):(i.html('<div class="notice notice-error"><p>'+give_vars.updates.ajax_error+"</p></div>"),setTimeout(function(){n.el.update_link.removeClass("active").show(),n.el.progress_main_container.addClass("give-hidden")},5e3))}}).fail(function(e){give_setting_edit=!1,window.console&&window.console.log&&console.log(e),Give_Selector_Cache.get(".notice-wrap",self.el.progress_container).append(e.responseText)}).always(function(){})},dismiss_message:function(){e("body").on("click","#poststuff .notice-dismiss",function(){e(this).parent().slideUp("fast")})}},g=function(){e('select[name="give-payment-status"]').on("change",function(){var t=e(this).val();e(".give-donation-status").removeClass(function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")}).addClass("status-"+t)})},p={init:function(){this.editDonor(),this.add_email(),this.removeUser(),this.cancelEdit(),this.add_note(),this.delete_checked(),this.addressesAction(),this.unlockDonorFields(),this.bulkDeleteDonor(),e("body").on("click",'#give-donors-filter .bulkactions input[type="submit"]',this.handleBulkActions)},unlockDonorFields:function(t){e("body").on("click",".give-lock-block",function(e){alert(give_vars.unlock_donor_fields),e.preventDefault()})},editDonor:function(){e("body").on("click","#edit-donor",function(t){t.preventDefault(),e("#give-donor-card-wrapper .editable").hide(),e("#give-donor-card-wrapper .edit-item").fadeIn().css("display","block")})},removeUser:function(){e("body").on("click","#disconnect-donor",function(t){if(t.preventDefault(),!confirm(give_vars.disconnect_user))return!1;var i=e('input[name="customerinfo[id]"]').val(),n={give_action:"disconnect-userid",customer_id:i,_wpnonce:e("#edit-donor-info #_wpnonce").val()};e.post(ajaxurl,n,function(e){window.location.href=e.redirect},"json")})},cancelEdit:function(){e("body").on("click","#give-edit-donor-cancel",function(t){t.preventDefault(),e("#give-donor-card-wrapper .edit-item").hide(),e("#give-donor-card-wrapper .editable").show(),e(".give_user_search_results").html("")})},add_note:function(){e("body").on("click","#add-donor-note",function(t){t.preventDefault();var i={give_action:"add-donor-note",customer_id:e("#donor-id").val(),donor_note:e("#donor-note").val(),add_donor_note_nonce:e("#add_donor_note_nonce").val()};if(i.donor_note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-donor-notes").prepend(t),e(".give-no-donor-notes").hide(),e("#donor-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#donor-note").css("border-color");e("#donor-note").css("border-color","red"),setTimeout(function(){e("#donor-note").css("border-color",n)},500)}})},delete_checked:function(){e("#give-donor-delete-confirm").change(function(){var t=e("#give-donor-delete-records"),i=e("#give-delete-donor");e(this).prop("checked")?(t.attr("disabled",!1),i.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),i.attr("disabled",!0))})},add_email:function(){e("#add-donor-email").length&&e(document.body).on("click","#add-donor-email",function(t){t.preventDefault();var i=e(this),n=i.parent();n.parent().find(".notice-wrap").remove(),n.find(".spinner").css("visibility","visible"),i.attr("disabled",!0);var a=n.find('input[name="donor-id"]').val(),s=n.find('input[name="additional-email"]').val(),o=n.find('input[name="make-additional-primary"]').is(":checked"),r=n.find('input[name="add_email_nonce"]').val(),d={give_action:"add_donor_email",customer_id:a,email:s,primary:o,_wpnonce:r};e.post(ajaxurl,d,function(e){!0===e.success?window.location.href=e.redirect:(i.attr("disabled",!1),n.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),n.find(".spinner").css("visibility","hidden"))},"json")})},addressesAction:function(){var t=this,n=e("#donor-address-wrapper"),a=e(".all-address",n),s=e(".give-no-address-message",n),o=e(a).parent(),r=e(".address-form",n),d=e(".js-cancel",r),c=e('select[name="country"]',r),l=e(".add-new-address",n),v=parseInt(e('input[name="donor-id"]').val());c.on("change",function(){e(this).trigger("chosen:updated")}),a.on("click",".js-edit",function(i){var n=e(this).closest(".address");i.preventDefault(),e(".notice",o).remove(),t.__set_address_form_val(n),t.__set_address_form_action("update",n.data("address-id")),l.hide(),a.addClass("give-hidden"),r.removeClass("add-new-address-form-hidden"),r.data("process","update")}),a.on("click",".js-remove",function(i){i.preventDefault();var n=e(this).closest(".address");e(".notice",o).remove(),r.data("changed",!0),t.__set_address_form_val(n),t.__set_address_form_action("remove",n.data("address-id")),r.trigger("submit")}),l.on("click",function(i){i.preventDefault(),e(".notice",o).remove(),e(this).hide(),a.addClass("give-hidden"),r.removeClass("add-new-address-form-hidden"),t.__set_address_form_action("add"),t.__set_address_form_action()}),d.on("click",function(e){e.preventDefault(),r.find('input[type="text"]').val(""),l.show(),a.removeClass("give-hidden"),r.addClass("add-new-address-form-hidden")}),r.on("change",function(){e(this).data("changed",!0)}).on("submit",function(t){t.preventDefault();var d=e(this);return e(".notice",o).remove(),e(this).data("changed")?(e.ajax({type:"POST",url:ajaxurl,data:{action:"donor_manage_addresses",donorID:v,form:e("form",r).serialize()},beforeSend:function(){i(n,{show:!0})},success:function(t){if(i(n),t.success){var r;switch(t.data.action){case"add":e(".give-grid-row",a).append(t.data.address_html),!s.hasClass("give-hidden")&&e("div.give-grid-col-4",a).length&&s.addClass("give-hidden");break;case"remove":r=a.find('div[data-address-id*="'+t.data.id+'"]').parent(),r.length&&r.animate({"margin-left":"-999"},1e3,function(){r.remove(),s.hasClass("give-hidden")&&!e("div.give-grid-col-4",a).length&&s.removeClass("give-hidden")});break;case"update":r=a.find('div[data-address-id*="'+t.data.id+'"]').parent();var d=r.prev(),c={},l=!1;parseInt(e(".give-grid-row>div",a).length)<2?e(".give-grid-row",a).append(t.data.address_html):(d.length&&(d.after(t.data.address_html),l=!0),l||(c=r.next(),c.length&&c.before(t.data.address_html))),r.remove()}o.prepend(t.data.success_msg)}else o.prepend(t.data.error_msg)},dataType:"json"}).always(function(){d.data("changed",!1),r.find('input[type="text"]').val(""),l.show(),a.removeClass("give-hidden"),r.addClass("add-new-address-form-hidden")}),!1):(l.show(),a.removeClass("give-hidden"),r.addClass("add-new-address-form-hidden"),!1)})},__set_address_form_action:function(t,i){var n=e("#donor-address-wrapper"),a=e(".address-form",n),s=e('input[name="address-action"]',a),o=e('input[name="address-id"]',a);t=t||"add",i=i||"billing",s.val(t),o.val(i)},__set_address_form_val:function(t){var i=e("#donor-address-wrapper"),n=e(".address-form",i),a=e('[data-address-type="state"]',t).text().substr(2).trim();e('select[name="country"]',n).val().trim()!==e('[data-address-type="country"]',t).text().trim()?(e('select[name="country"]',n).val(e('[data-address-type="country"]',t).text().trim()).trigger("chosen:updated").change(),window.setTimeout(function(){e('[name="state"]',n).val(a).trigger("chosen:updated")},500)):e('[name="state"]',n).val(a).trigger("chosen:updated"),e('input[name="line1"]',n).val(e('[data-address-type="line1"]',t).text().trim()),e('input[name="line2"]',n).val(e('[data-address-type="line2"]',t).text().trim()),e('input[name="city"]',n).val(e('[data-address-type="city"]',t).text().trim()),e('input[name="zip"]',n).val(e('[data-address-type="zip"]',t).text().trim())},bulkDeleteDonor:function(){var t=e("body");t.on("click","#give-bulk-delete-cancel",function(t){e(this).closest("tr").hide(),
2
+ e(".give-skip-donor").trigger("click"),t.preventDefault()}),t.on("click","#cb-select-all-1, #cb-select-all-2",function(){var t=e(this);e.each(e(".donor-selector"),function(){var i=e(this).val(),n=e(this).data("name"),a='<div id="give-donor-'+i+'" data-id="'+i+'"><a class="give-skip-donor" title="'+give_vars.remove_from_bulk_delete+'">X</a>'+n+"</div>";t.is(":checked")&&!e(this).is(":checked")?e("#give-bulk-donors").append(a):t.is(":checked")||e("#give-bulk-donors").find("#give-donor-"+i).remove()})}),t.on("click",".donor-selector",function(){var t=e(this).val(),i=e(this).data("name"),n='<div id="give-donor-'+t+'" data-id="'+t+'"><a class="give-skip-donor" title="'+give_vars.remove_from_bulk_delete+'">X</a>'+i+"</div>";e(this).is(":checked")?e("#give-bulk-donors").prepend(n):e("#give-bulk-donors").find("#give-donor-"+t).remove()}),t.on("click","#give-delete-donor-confirm",function(){e(this).is(":checked")?e("#give-bulk-delete-button").removeAttr("disabled"):(e("#give-bulk-delete-button").attr("disabled",!0),e("#give-delete-donor-records").removeAttr("checked"))}),t.on("click","#give-delete-donor-records",function(){e(this).is(":checked")&&(e("#give-delete-donor-confirm").attr("checked","checked"),e("#give-bulk-delete-button").removeAttr("disabled"))}),t.on("click",".give-skip-donor",function(){var t=e(this).closest("div").data("id");e("#give-donor-"+t).remove(),e("#donor-"+t).find('input[type="checkbox"]').removeAttr("checked")}),t.on("click",".give-single-donor-delete",function(t){var i=e(this).data("id"),n=e("tr#donor-"+i).find(".donor-selector"),a=e('[id^="cb-select-all-"]'),s=e("#give-bulk-donors"),o=n.data("name"),r='<div id="give-donor-'+i+'" data-id="'+i+'"><a class="give-skip-donor" title="'+give_vars.remove_from_bulk_delete+'">X</a>'+o+"</div>";s.html(""),a.is(":checked")&&a.removeAttr("checked"),e(".donor-selector").removeAttr("checked"),n.attr("checked","checked"),0===e("#give-donor-"+i).length&&(s.prepend(r),e("#give-bulk-delete").slideDown()),t.preventDefault()})},handleBulkActions:function(t){var i=e(this).closest(".tablenav").find("select").val(),n=[],a=give_vars.donors_bulk_action.no_action_selected,s=give_vars.donors_bulk_action.no_donor_selected;return e.each(e(".donor-selector:checked"),function(){n.push(e(this).val())}),"-1"===i?(alert(a),!1):parseInt(n)?("delete"===i&&e("#give-bulk-delete").slideDown(),void t.preventDefault()):(alert(s),!1)}},_={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",function(e){return confirm(give_vars.revoke_api_key)})},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",function(e){return confirm(give_vars.regenerate_api_key)})}},h={init:function(){var t=e.query.get("give_tab").length?e.query.get("give_tab"):"form_field_options";this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events(),this.activate_tab(e('a[href="#'+t+'"]'))},handle_metabox_tab_click:function(){var t=this,i=e(".give-metabox-tabs a");i.on("click",function(i){i.preventDefault(),$this=e(this),t.activate_tab($this),t.update_query($this)})},activate_tab:function(t){var i=t.data("tab-id"),n=t.parent(),a=e("ul.give-metabox-sub-tabs",n),s=a.length,o=e(".give-metabox-tabs a"),r=o.parents("li"),d=e("ul.give-metabox-sub-tabs"),c=t.parents("ul.give-metabox-sub-tabs").length;if(e("#give_form_active_tab").val(i),s){n.toggleClass("active"),a.removeClass("give-hidden");var l=e("li.active","ul.give-metabox-sub-tabs");d.not(a).addClass("give-hidden"),r.not(n).removeClass("active"),l.addClass("active")}else c?c&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),r.removeClass("active"),t.parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),t.parents("li.has-sub-fields").addClass("active")):r.each(function(t,i){i=e(i),i.removeClass("active"),i.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",i).addClass("give-hidden")});t.parent().addClass("active"),e(".give_options_panel").removeClass("active"),e(t.attr("href")).addClass("active")},update_query:function(t){var i=t.data("tab-id"),n=e.query.set("give_tab",i).remove("message").toString();history.replaceState&&history.replaceState(null,null,n)},setup_colorpicker_fields:function(){e(document).ready(function(){var t=e(".give-colorpicker");t.length&&t.each(function(t,i){var n=e(i);n.parents(".give-template").length||n.wpColorPicker()})})},setup_media_fields:function(){var t,i,n=e("body");n.on("click",".give-upload-button",function(a){a.preventDefault();var s={};switch(i=e(this),e(this).data("field-type")){case"media":s={title:give_vars.metabox_fields.media.button_title,button:{text:give_vars.metabox_fields.media.button_title},multiple:!1,library:{type:"image"}};break;default:s={title:give_vars.metabox_fields.file.button_title,button:{text:give_vars.metabox_fields.file.button_title},multiple:!1}}var o=jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("editing");"undefined"!=typeof o&&(wp.media.controller.Library.prototype.defaults.contentUserSetting=!1);var r=jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("library");"undefined"!=typeof r&&""!==r&&(s.library={type:r}),t=wp.media(s),t.on("select",function(){var e=t.state().get("selection").first().toJSON(),a=i.prev(),s="id"===i.data("fvalue")?e.id:e.url;if(n.trigger("give_media_inserted",[e,a]),a.val(s),"id"!==i.data("fvalue")){var o='input[name="'+a.attr("name")+'_id"]',r=a.closest("tr").next("tr").find(o);r.length&&a.closest("tr").next("tr").find(o).val(e.id)}}),t.open()}),n.on("give_media_inserted",function(t,n){var a=i.parents(".give-field-wrap"),s=e(".give-image-thumb",a);return!!s.length&&("image"!==n.type?(s.addClass("give-hidden"),e("img",s).attr("src",""),!1):(s.find("img").attr("src",n.url),void s.removeClass("give-hidden")))}),e("span.give-delete-image-thumb",".give-image-thumb").on("click",function(t){t.preventDefault();var i=e(this).parents(".give-field-wrap"),n=e(this).parent(),a=e('input[type="text"]',i);n.addClass("give-hidden"),a.val(""),e("img",n).attr("src","")})},setup_repeatable_fields:function(){jQuery(function(){jQuery(".give-repeatable-field-section").each(function(){var t=e(this),i={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:give_vars.confirm_before_remove_row_text,is_sortable:!0,before_add:null,after_add:f,before_remove:null,after_remove:m,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(t,i){e("body").trigger("repeater_field_sorting_start",[i.item])},stop:function(t,i){e("body").trigger("repeater_field_sorting_stop",[i.item])},update:function(i,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item);var a=e(".give-row",t).not(".give-template");if(a.length){var s=1;a.each(function(t,i){var n=e(".give-field, label",e(i));n.length&&n.each(function(){var t=e(this).parents(".give-field-wrap"),i=e(this);e.each(this.attributes,function(e,n){var a=this.value.replace(/\[/g,"_").replace(/]/g,""),o=a+"_field",r="",d="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(s-1)+"]"),d=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(o)&&(r=d+"_field",t.removeClass(o).addClass(r)),a==i.attr("id")&&i.attr("id",d))})}),s++}),t.trigger("repeater_field_row_reordered",[n.item])}}}};jQuery(this).repeatable_fields(i)})})},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),i=e("body");i.on("click",".give-row-head button",function(){var t=e(this).closest("tr");t.toggleClass("closed"),e(".give-row-body",t).toggle()}),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",function(){b(e(this))}),i.on("repeater_field_sorting_start",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(i).attr("id"))},300)})}),i.on("repeater_field_sorting_stop",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){var t=e(i).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout(function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")},100)},300)})}),t.each(function(t,i){var n=e(i);b(n),parseInt(n.data("close-tabs"))&&(e(".give-row-head button",n).trigger("click"),e(".give-template",n).removeClass("closed"),e(".give-template .give-row-body",n).show())}),t.on("repeater_field_new_row_added",function(t,i,n){e(".give-colorpicker",e(this)).each(function(t,i){var n=e(i);n.parents(".wp-picker-container").length||n.parents(".give-template").length||n.wpColorPicker()});var a=e("div[data-wp-editor]",n);a.length&&a.each(function(t,i){var n=e(i),a=e(".wp-editor-wrap",n),s=e("textarea",n),o="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),r=a.prev();s.attr("id",o),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:n.data("wp-editor"),wp_editor_id:o,textarea_name:e("textarea",n).attr("name")},function(t){a.remove(),r.after(t),tinyMCEPreInit.qtInit[s.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:o}),tinyMCEPreInit.mceInit[o]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:o+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+o}),tinymce.init(tinyMCEPreInit.mceInit[o]),quicktags(tinyMCEPreInit.qtInit[o]),QTags._buttonsInit(),window.setTimeout(function(){switchEditors.go(o,"html"),e("#"+o+"-tmce").trigger("click")},100),window.wpActiveEditor||(window.wpActiveEditor=o)})})})},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",function(){var t=e(this).closest("tr"),i=e(".give-row-head h2 span",t),n=i.data("header-title");return(!e(this).val()||e(this).val()!==i.html())&&void(e(this).val()?i.html(n+": "+e(this).val()):i.html(n))}),e(".give-multilevel-text-field").each(function(t,i){if(t){var n=e(i),a=n.closest("tr"),s=e(".give-row-head h2 span",a),o=s.data("header-title");return(!n.val()||n.val()!==s.html())&&void(n.val()?s.html(o+": "+n.val()):s.html(o))}}),t.on("repeater_field_row_deleted",function(){var t=e(this);window.setTimeout(function(){var i=t,n=e(".give-row",i).not(".give-template"),a=e(".give-give_default_radio_inline",n),s=n.length;1===s&&a.prop("checked",!0)},200)}),t.on("repeater_field_new_row_added",function(t,i,n){var a=e(this),s=0;window.setTimeout(function(){e(".give-give_default_radio_inline",a).is(":checked")===!1&&e(".give-row",a).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)},200),e('input[type="hidden"].give-levels_id',a).each(function(t,i){var n=e(i),a=parseInt(n.val());s<a&&(s=a)}),e('input[type="hidden"].give-levels_id',n).val(++s)})}},f=function(t,i){var n=e(t).attr("data-rf-row-count"),a=e(t),s=a.parents(".give-repeatable-field-section");n++,e("*",i).each(function(){e.each(this.attributes,function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",n-1)})}),e(t).attr("data-rf-row-count",n),s.trigger("repeater_field_new_row_added",[t,i])},m=function(t){var i=e(t),n=i.parents(".give-repeatable-field-section"),a=e(t).attr("data-rf-row-count");i.attr("data-rf-row-count",--a),n.trigger("repeater_field_row_deleted")},b=function(t){if(parseInt(t.data("group-numbering"))){var i=e(".give-row-head h2 span",t),n=i.data("header-title");i.each(function(t,i){var a=e(i);a.parents(".give-template").length||a.html(n+": "+t)})}},y={init:function(){e("body").on("click",'#give-payments-filter input[type="submit"]',this.handleBulkActions)},handleBulkActions:function(){var t=e(this).closest(".tablenav").find("select").val(),i=e(this).closest(".tablenav").find('option[value="'+t+'"]').text(),n=e('input[name="payment[]"]:checked').length,a=-1!==t.indexOf("set-status-"),s="",o="";if(t=a?"set-to-status":t,Object.keys(give_vars.donations_bulk_action).length)for(o in give_vars.donations_bulk_action)if(o===t)return s=a?give_vars.donations_bulk_action[t].zero.replace("{status}",i.replace("Set To ","")):give_vars.donations_bulk_action[t].zero,parseInt(n)?(s=1<n?give_vars.donations_bulk_action[t].multiple:give_vars.donations_bulk_action[t].single,window.confirm(s.replace("{payment_count}",n).replace("{status}",i.replace("Set To ","")))):(alert(s),!1);return!0}};e(function(){n(),s(),g(),o(),e.giveAjaxifyFields({type:"country_state",debug:!0}),r.init(),d.init(),c.init(),l.init(),p.init(),_.init(),v.init(),u.init(),h.init(),y.init(),e("a.give-rating-link").click(function(){jQuery(this).parent().text(jQuery(this).data("rated"))}),e(".give-ajax-user-search").on("keyup",function(){var t=e(this).val(),i="";e(this).data("exclude")&&(i=e(this).data("exclude")),e(".give-ajax").show(),data={action:"give_search_users",user_name:t,exclude:i},document.body.style.cursor="wait",e.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(t){e(".give-ajax").hide(),e(".give_user_search_results").removeClass("hidden"),e(".give_user_search_results span").html(""),e(t.results).appendTo(".give_user_search_results span"),document.body.style.cursor="default"}})}),e("body").on("click.giveSelectUser",".give_user_search_results span a",function(t){t.preventDefault();var i=e(this).data("login");e(".give-ajax-user-search").val(i),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")}),e("body").on("click.giveCancelUserSearch",".give_user_search_results a.give-ajax-user-cancel",function(t){t.preventDefault(),e(".give-ajax-user-search").val(""),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")});var i=e("#poststuff"),a=give_vars.thousands_separator,f=give_vars.decimal_separator,m="",b="",w="",k=f===a?1:0;i.on("keyup","input.give-money-field, input.give-price-field",function(){var t={label:give_vars.price_format_guide.trim()};m=(e(this).val().match(new RegExp(a,"g"))||[]).length,b=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(a)&&k<m?e(this).giveHintCss("show",t):b?e(this).giveHintCss("show",t):e(this).giveHintCss("hide",t),m=b=""}),i.on("focusout","input.give-money-field, input.give-price-field",function(){if(w=t(e(this).val(),!1),t("0",!1)===t(e(this).val(),!1)){var i=e(this).attr("placeholder");return i=i?i:"0",e(this).val(i),!1}w=w.replace(".",f),-1!==w.indexOf("-")&&(w=w.replace("-","")),e(this).val(w)}),i.on("focusout","#_give_number_of_donation_goal",function(){1>e(this).val()&&e(this).val(1)}),e(".give-settings-page").on("click","#give-show-sub-nav",function(t){t.preventDefault();var i=e(this).next();return i.is(":hover")||i.toggleClass("give-hidden"),!1}).on("blur","#give-show-sub-nav",function(){var t=e(this).next();t.is(":hover")||t.addClass("give-hidden")}),e(".give_email_api_notification_status_setting input").change(function(){var t=e(this).val(),i="enabled"===t,n={};return e(this).closest(".give_options_panel").length?n=e(this).closest(".give_options_panel").children(".give-field-wrap:not(.give_email_api_notification_status_setting), .give-repeatable-field-section"):e(this).closest("table").length&&(n=e(this).closest("table").find("tr:not(.give_email_api_notification_status_setting)")),-1!==jQuery.inArray(t,["enabled","disabled","global"])&&(!!n.length&&void(i?n.show():n.hide()))}),e(".give_email_api_notification_status_setting input:checked").change(),give_render_responsive_tabs()})}(jQuery),jQuery(window).resize(function(){give_render_responsive_tabs()});
assets/js/admin/admin-settings.js CHANGED
@@ -61,4 +61,91 @@ jQuery(document).ready(function ($) {
61
  // Update select html.
62
  $default_gateway.html(active_payment_option_html);
63
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  });
61
  // Update select html.
62
  $default_gateway.html(active_payment_option_html);
63
  });
64
+
65
+ /**
66
+ * Repeater setting field event.
67
+ */
68
+ $( 'a.give-repeat-setting-field' ).on( 'click', function(e){
69
+ e.preventDefault();
70
+ var $parent = $(this).parents('td'),
71
+ $first_setting_field_group = $( 'p:first-child', $parent ),
72
+ $new_setting_field_group = $first_setting_field_group.clone(),
73
+ setting_field_count = $( 'p', $parent ).not('.give-field-description').length,
74
+ fieldID = $(this).data('id') + '_' + (++setting_field_count),
75
+ $prev_field = $(this).prev();
76
+
77
+ // Create new field only if previous is non empty.
78
+ if( $( 'input', $prev_field ).val() ) {
79
+ // Add setting field html to dom.
80
+ $(this).before( $new_setting_field_group );
81
+ $prev_field = $(this).prev();
82
+
83
+ // Set id and value for setting field.
84
+ $( 'input', $prev_field ).attr( 'id', fieldID );
85
+ $( 'input', $prev_field ).val( '' );
86
+ }
87
+
88
+ return false;
89
+ });
90
+
91
+ $( '.give-settings-page' ).on( 'click', 'span.give-remove-setting-field', function(e){
92
+ $(this).parents('p').remove();
93
+ });
94
+
95
+ /**
96
+ * Enabled & disable email notification event.
97
+ */
98
+ $( '.give-email-notification-status', 'table.giveemailnotifications' ).on( 'click', function(){
99
+ var $this = $(this),
100
+ $icon_container = $('i', $this),
101
+ $loader = $(this).next(),
102
+ set_notification_status = $(this).hasClass( 'give-email-notification-enabled' ) ? 'disabled' : 'enabled',
103
+ notification_id = $(this).data('id');
104
+
105
+ // Bailout if admin can not edit notification status setting.
106
+ if( ! parseInt( $this.data('edit') ) ) {
107
+ // Remove all notice.
108
+ $('div.give-email-notification-status-notice').remove();
109
+
110
+ // Add notice.
111
+ $('hr.wp-header-end').after('<div class="updated error give-email-notification-status-notice"><p>' + $(this).closest('.give-email-notification-status').data('notice') + '</p></div>');
112
+
113
+ // Scroll to notice.
114
+ $('html, body').animate({scrollTop:$('div.give-email-notification-status-notice').position().top}, 'slow');
115
+
116
+ return false;
117
+ }
118
+
119
+ $.ajax({
120
+ url: ajaxurl,
121
+ method: 'POST',
122
+ data: {
123
+ action: 'give_set_notification_status',
124
+ status: set_notification_status,
125
+ notification_id: notification_id
126
+ },
127
+ beforeSend: function(){
128
+ $this.hide();
129
+ $loader.addClass('is-active');
130
+ },
131
+ success: function(res) {
132
+ if( res.success ) {
133
+ $this.removeClass( 'give-email-notification-' + $this.data('status') );
134
+ $this.addClass( 'give-email-notification-' + set_notification_status );
135
+ $this.data( 'status', set_notification_status );
136
+
137
+ if( 'enabled' === set_notification_status ) {
138
+ $icon_container.removeClass('dashicons-no-alt');
139
+ $icon_container.addClass('dashicons-yes');
140
+ } else{
141
+ $icon_container.removeClass('dashicons-yes');
142
+ $icon_container.addClass('dashicons-no-alt');
143
+ }
144
+
145
+ $loader.removeClass('is-active');
146
+ $this.show();
147
+ }
148
+ }
149
+ });
150
+ });
151
  });
assets/js/admin/admin-settings.min.js CHANGED
@@ -1 +1 @@
1
- jQuery.noConflict(),jQuery(document).ready(function(e){var t=jQuery("ul.give-payment-gatways-list");t.length&&t.sortable();var n=e("input",t),a=e("#default_gateway");n.on("click",function(){if(e(this)[0].hasAttribute("readonly"))return!1;var n=a.val(),r="",l=e("input:checked",t);1===l.length?l.prop("readonly",!0):e("input[readonly]:checked",t).removeAttr("readonly"),l.each(function(t,a){a=e(a);var l=a.attr("name").match(/\[(.*?)\]/)[1];r+='<option value="'+l+'"',n===l&&(r+=' selected="selected"'),r+=">"+a.next("label").text()+"</option>"}),a.html(r)})});
1
+ jQuery.noConflict(),jQuery(document).ready(function(t){var i=jQuery("ul.give-payment-gatways-list");i.length&&i.sortable();var e=t("input",i),a=t("#default_gateway");e.on("click",function(){if(t(this)[0].hasAttribute("readonly"))return!1;var e=a.val(),n="",s=t("input:checked",i);1===s.length?s.prop("readonly",!0):t("input[readonly]:checked",i).removeAttr("readonly"),s.each(function(i,a){a=t(a);var s=a.attr("name").match(/\[(.*?)\]/)[1];n+='<option value="'+s+'"',e===s&&(n+=' selected="selected"'),n+=">"+a.next("label").text()+"</option>"}),a.html(n)}),t("a.give-repeat-setting-field").on("click",function(i){i.preventDefault();var e=t(this).parents("td"),a=t("p:first-child",e),n=a.clone(),s=t("p",e).not(".give-field-description").length,o=t(this).data("id")+"_"+ ++s,l=t(this).prev();return t("input",l).val()&&(t(this).before(n),l=t(this).prev(),t("input",l).attr("id",o),t("input",l).val("")),!1}),t(".give-settings-page").on("click","span.give-remove-setting-field",function(i){t(this).parents("p").remove()}),t(".give-email-notification-status","table.giveemailnotifications").on("click",function(){var i=t(this),e=t("i",i),a=t(this).next(),n=t(this).hasClass("give-email-notification-enabled")?"disabled":"enabled",s=t(this).data("id");return parseInt(i.data("edit"))?void t.ajax({url:ajaxurl,method:"POST",data:{action:"give_set_notification_status",status:n,notification_id:s},beforeSend:function(){i.hide(),a.addClass("is-active")},success:function(t){t.success&&(i.removeClass("give-email-notification-"+i.data("status")),i.addClass("give-email-notification-"+n),i.data("status",n),"enabled"===n?(e.removeClass("dashicons-no-alt"),e.addClass("dashicons-yes")):(e.removeClass("dashicons-yes"),e.addClass("dashicons-no-alt")),a.removeClass("is-active"),i.show())}}):(t("div.give-email-notification-status-notice").remove(),t("hr.wp-header-end").after('<div class="updated error give-email-notification-status-notice"><p>'+t(this).closest(".give-email-notification-status").data("notice")+"</p></div>"),t("html, body").animate({scrollTop:t("div.give-email-notification-status-notice").position().top},"slow"),!1)})});
assets/js/admin/admin-widgets.js CHANGED
@@ -11,19 +11,6 @@
11
  jQuery.noConflict();
12
  (function ( $ ) {
13
 
14
- var initialize_qtips = function () {
15
- jQuery( '[data-tooltip!=""]' ).qtip( { // Grab all elements with a non-blank data-tooltip attr.
16
- content : {
17
- attr: 'data-tooltip' // Tell qTip2 to look inside this attr for its content
18
- },
19
- style : {classes: 'qtip-rounded qtip-tipsy'},
20
- position: {
21
- my: 'bottom center', // Position my top left...
22
- at: 'top center' // at the bottom right of...
23
- }
24
- } )
25
- };
26
-
27
  /**
28
  * Show/Hide continue button tile setting on basis of display setting for Give Form widget.
29
  */
@@ -43,16 +30,12 @@ jQuery.noConflict();
43
 
44
  //On DOM Ready
45
  $( function () {
46
- initialize_qtips();
47
-
48
  continue_button_setting_js();
49
  $( '.give_forms_display_style_setting_row input', '.widget-liquid-right' ).trigger('change');
50
  } );
51
 
52
  //Function to Refresh jQuery toggles for Yelp Widget Pro upon saving specific widget
53
  $( document ).ajaxSuccess( function ( e, xhr, settings ) {
54
- initialize_qtips();
55
-
56
  continue_button_setting_js();
57
  $( '.give_forms_display_style_setting_row input', '.widget-liquid-right' ).trigger('change');
58
  } );
11
  jQuery.noConflict();
12
  (function ( $ ) {
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  /**
15
  * Show/Hide continue button tile setting on basis of display setting for Give Form widget.
16
  */
30
 
31
  //On DOM Ready
32
  $( function () {
 
 
33
  continue_button_setting_js();
34
  $( '.give_forms_display_style_setting_row input', '.widget-liquid-right' ).trigger('change');
35
  } );
36
 
37
  //Function to Refresh jQuery toggles for Yelp Widget Pro upon saving specific widget
38
  $( document ).ajaxSuccess( function ( e, xhr, settings ) {
 
 
39
  continue_button_setting_js();
40
  $( '.give_forms_display_style_setting_row input', '.widget-liquid-right' ).trigger('change');
41
  } );
assets/js/admin/admin-widgets.min.js CHANGED
@@ -1 +1 @@
1
- jQuery.noConflict(),function(t){var i=function(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},position:{my:"bottom center",at:"top center"}})},e=function(){t(".widget-liquid-right").on("change",".give_forms_display_style_setting_row input",function(){var i=t(this).parents("p"),e=i.next();"onpage"===t("input:checked",i).val()?e.hide():e.show()})};t(function(){i(),e(),t(".give_forms_display_style_setting_row input",".widget-liquid-right").trigger("change")}),t(document).ajaxSuccess(function(n,o,r){i(),e(),t(".give_forms_display_style_setting_row input",".widget-liquid-right").trigger("change")})}(jQuery);
1
+ jQuery.noConflict(),function(i){var t=function(){i(".widget-liquid-right").on("change",".give_forms_display_style_setting_row input",function(){var t=i(this).parents("p"),e=t.next();"onpage"===i("input:checked",t).val()?e.hide():e.show()})};i(function(){t(),i(".give_forms_display_style_setting_row input",".widget-liquid-right").trigger("change")}),i(document).ajaxSuccess(function(e,n,g){t(),i(".give_forms_display_style_setting_row input",".widget-liquid-right").trigger("change")})}(jQuery);
assets/js/frontend/give-ajax.js CHANGED
@@ -12,9 +12,6 @@
12
  var give_scripts, give_global_vars;
13
  jQuery(document).ready(function ($) {
14
 
15
- //Run tooltips setup
16
- setup_give_tooltips();
17
-
18
  //Hide loading elements
19
  $('.give-loading-text').hide();
20
 
@@ -42,8 +39,6 @@ jQuery(document).ready(function ($) {
42
  loading_animation.hide();
43
  // Trigger float-labels
44
  give_fl_trigger();
45
- //Setup tooltips again
46
- setup_give_tooltips();
47
  });
48
  return false;
49
  });
@@ -66,8 +61,6 @@ jQuery(document).ready(function ($) {
66
  }).done(function () {
67
  // Trigger float-labels
68
  give_fl_trigger();
69
- //Setup tooltips again
70
- setup_give_tooltips();
71
  });
72
  });
73
 
@@ -87,7 +80,8 @@ jQuery(document).ready(function ($) {
87
  action: 'give_process_donation_login',
88
  give_ajax: 1,
89
  give_user_login: this_form.find('[name=give_user_login]').val(),
90
- give_user_pass: this_form.find('[name=give_user_pass]').val()
 
91
  };
92
 
93
  $.post(give_global_vars.ajaxurl, data, function (response) {
@@ -101,6 +95,9 @@ jQuery(document).ready(function ($) {
101
  this_form.find('#give-payment-mode-select').after(response.data);
102
  this_form.find('.give_notices.give_errors').delay(5000).slideUp();
103
 
 
 
 
104
  //reload the selected gateway so it contains their logged in information
105
  give_load_gateway(this_form, this_form.find('.give-gateway-option-selected input').val());
106
  } else {
@@ -224,7 +221,7 @@ jQuery(document).ready(function ($) {
224
  this_form.find('input[type="submit"].give-submit').val(complete_purchase_val);
225
  loading_animation.fadeOut();
226
  this_form.find('.give_errors').remove();
227
- this_form.find('input[type="submit"].give-submit').before(data);
228
 
229
  // Enable the form donation button.
230
  Give.form.fn.disable(this_form, false);
@@ -276,31 +273,9 @@ function give_load_gateway(form_object, payment_mode) {
276
  jQuery(form_object).find('#give_purchase_form_wrap').html(response);
277
  jQuery('.give-no-js').hide();
278
  jQuery(form_object).find('#give-payment-mode-select .give-loading-text').fadeOut();
279
- setup_give_tooltips();
280
 
281
  // trigger an event on success for hooks
282
  jQuery(document).trigger('give_gateway_loaded', [response, jQuery(form_object).attr('id')]);
283
  }
284
  );
285
-
286
  }
287
-
288
- /**
289
- * Load Tooltips
290
- *
291
- * @description Give tooltips use qTip2
292
- * @since 1.0
293
- */
294
- function setup_give_tooltips() {
295
- jQuery('[data-tooltip!=""]').qtip({ // Grab all elements with a non-blank data-tooltip attr.
296
- content: {
297
- attr: 'data-tooltip' // Tell qTip2 to look inside this attr for its content
298
- },
299
- style: {classes: 'qtip-rounded qtip-tipsy'},
300
- position: {
301
- my: 'bottom center', // Position my top left...
302
- at: 'top center' // at the bottom right of...
303
- }
304
- });
305
- jQuery.fn.qtip.zindex = 2147483641; // Higher z-index than Give's magnific modal
306
- }
12
  var give_scripts, give_global_vars;
13
  jQuery(document).ready(function ($) {
14
 
 
 
 
15
  //Hide loading elements
16
  $('.give-loading-text').hide();
17
 
39
  loading_animation.hide();
40
  // Trigger float-labels
41
  give_fl_trigger();
 
 
42
  });
43
  return false;
44
  });
61
  }).done(function () {
62
  // Trigger float-labels
63
  give_fl_trigger();
 
 
64
  });
65
  });
66
 
80
  action: 'give_process_donation_login',
81
  give_ajax: 1,
82
  give_user_login: this_form.find('[name=give_user_login]').val(),
83
+ give_user_pass: this_form.find('[name=give_user_pass]').val(),
84
+ give_form_id: this_form.find('[name=give-form-id]').val()
85
  };
86
 
87
  $.post(give_global_vars.ajaxurl, data, function (response) {
95
  this_form.find('#give-payment-mode-select').after(response.data);
96
  this_form.find('.give_notices.give_errors').delay(5000).slideUp();
97
 
98
+ // Create and update nonce.
99
+ Give.form.fn.resetNonce( this_form );
100
+
101
  //reload the selected gateway so it contains their logged in information
102
  give_load_gateway(this_form, this_form.find('.give-gateway-option-selected input').val());
103
  } else {
221
  this_form.find('input[type="submit"].give-submit').val(complete_purchase_val);
222
  loading_animation.fadeOut();
223
  this_form.find('.give_errors').remove();
224
+ this_form.find('#give_purchase_submit input[type="submit"].give-submit').before(data);
225
 
226
  // Enable the form donation button.
227
  Give.form.fn.disable(this_form, false);
273
  jQuery(form_object).find('#give_purchase_form_wrap').html(response);
274
  jQuery('.give-no-js').hide();
275
  jQuery(form_object).find('#give-payment-mode-select .give-loading-text').fadeOut();
 
276
 
277
  // trigger an event on success for hooks
278
  jQuery(document).trigger('give_gateway_loaded', [response, jQuery(form_object).attr('id')]);
279
  }
280
  );
 
281
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/frontend/give-ajax.min.js CHANGED
@@ -1 +1 @@
1
- function give_load_gateway(e,i){var t=jQuery(e).find("#give-payment-mode-select .give-loading-text"),a=jQuery(e).find("#give-amount").val(),o=jQuery(e).find('input[name="give-form-id"]').val();t.fadeIn();var n=jQuery(e).data();1!=n["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),jQuery.post(give_scripts.ajaxurl+"?payment-mode="+i,{action:"give_load_gateway",give_total:a,give_form_id:o,give_payment_mode:i},function(i){jQuery(e).unblock(),jQuery(e).find("#give_purchase_form_wrap").html(i),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),setup_give_tooltips(),jQuery(document).trigger("give_gateway_loaded",[i,jQuery(e).attr("id")])})}function setup_give_tooltips(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},position:{my:"bottom center",at:"top center"}}),jQuery.fn.qtip.zindex=2147483641}var give_scripts,give_global_vars;jQuery(document).ready(function(e){setup_give_tooltips(),e(".give-loading-text").hide(),e(document).on("click",".give-checkout-login",function(i){var t=e(this),a=e(this).parents("form"),o=e(a).find('[id^="give-checkout-login-register"] .give-loading-text'),n={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};return o.show(),e.post(give_scripts.ajaxurl,n,function(i){e(a).find("[id^=give-checkout-login-register]").html(i),e(a).find(".give-submit-button-wrap").hide()}).done(function(){o.hide(),give_fl_trigger(),setup_give_tooltips()}),!1}),e(document).on("click",".give-checkout-register-cancel",function(i){i.preventDefault();var t=e(this),a=e(this).parents("form"),o={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};e.post(give_scripts.ajaxurl,o,function(i){e(a).find("[id^=give-checkout-login-register]").html(e.parseJSON(i.fields)),e(a).find(".give-submit-button-wrap").show()}).done(function(){give_fl_trigger(),setup_give_tooltips()})}),e(document).on("click","[id^=give-login-fields] input[type=submit]",function(i){i.preventDefault();var t=e(this).val(),a=e(this).parents("form");e(this).val(give_global_vars.purchase_loading),a.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var o={action:"give_process_donation_login",give_ajax:1,give_user_login:a.find("[name=give_user_login]").val(),give_user_pass:a.find("[name=give_user_pass]").val()};e.post(give_global_vars.ajaxurl,o,function(i){void 0!=e.trim(typeof i.success)&&1==i.success&&void 0!=typeof i.data?(a.find(".give_errors").remove(),a.find("#give-payment-mode-select").after(i.data),a.find(".give_notices.give_errors").delay(5e3).slideUp(),give_load_gateway(a,a.find(".give-gateway-option-selected input").val())):(a.find("[id^=give-login-fields] input[type=submit]").val(t),a.find(".give-loading-animation").fadeOut(),a.find(".give_errors").remove(),a.find("[id^=give-user-login-submit]").before(i.data))})}),e("select#give-gateway, input.give-gateway").on("change",function(i){i.preventDefault();var t=e(this).val();return"0"==t?(console.log("There was a problem loading the selected gateway"),!1):(give_load_gateway(e(this).parents("form"),t),!1)}),e("body").on("click","#give-confirm-email-btn",function(i){var t=e(this),a={action:"give_confirm_email_for_donations_access",email:t.data("email"),nonce:give_scripts.ajaxNonce};return t.text(give_global_vars.loading),t.attr("disabled","disabled"),e.post(give_global_vars.ajaxurl,a,function(e){e=JSON.parse(e),"error"===e.status?(t.closest("#give_user_history tfoot").hide(),t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),t.hide(),t.closest(".give-security-button-wrap").find("span").show())}),!1}),e("body").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',function(i){var t=e(this).parents("form.give-form"),a=t.find('input[type="submit"].give-submit + .give-loading-animation');a.fadeIn();var o=t.get(0);if("function"!=typeof o.checkValidity||o.checkValidity()!==!1||(a.fadeOut(),(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1)!=!1)){i.preventDefault();var n=e(this).val();e(this).val(give_global_vars.purchase_loading),Give.form.fn.disable(t,!0),e.post(give_global_vars.ajaxurl,t.serialize()+"&action=give_process_donation&give_ajax=true",function(i){"success"==e.trim(i)?(t.find(".give_errors").remove(),e(o).submit(),t.trigger("give_form_validation_passed")):(t.find('input[type="submit"].give-submit').val(n),a.fadeOut(),t.find(".give_errors").remove(),t.find('input[type="submit"].give-submit').before(i),Give.form.fn.disable(t,!1))})}})});
1
+ function give_load_gateway(e,i){var t=jQuery(e).find("#give-payment-mode-select .give-loading-text"),a=jQuery(e).find("#give-amount").val(),n=jQuery(e).find('input[name="give-form-id"]').val();t.fadeIn();var o=jQuery(e).data();1!=o["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),jQuery.post(give_scripts.ajaxurl+"?payment-mode="+i,{action:"give_load_gateway",give_total:a,give_form_id:n,give_payment_mode:i},function(i){jQuery(e).unblock(),jQuery(e).find("#give_purchase_form_wrap").html(i),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),jQuery(document).trigger("give_gateway_loaded",[i,jQuery(e).attr("id")])})}var give_scripts,give_global_vars;jQuery(document).ready(function(e){e(".give-loading-text").hide(),e(document).on("click",".give-checkout-login",function(i){var t=e(this),a=e(this).parents("form"),n=e(a).find('[id^="give-checkout-login-register"] .give-loading-text'),o={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};return n.show(),e.post(give_scripts.ajaxurl,o,function(i){e(a).find("[id^=give-checkout-login-register]").html(i),e(a).find(".give-submit-button-wrap").hide()}).done(function(){n.hide(),give_fl_trigger()}),!1}),e(document).on("click",".give-checkout-register-cancel",function(i){i.preventDefault();var t=e(this),a=e(this).parents("form"),n={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};e.post(give_scripts.ajaxurl,n,function(i){e(a).find("[id^=give-checkout-login-register]").html(e.parseJSON(i.fields)),e(a).find(".give-submit-button-wrap").show()}).done(function(){give_fl_trigger()})}),e(document).on("click","[id^=give-login-fields] input[type=submit]",function(i){i.preventDefault();var t=e(this).val(),a=e(this).parents("form");e(this).val(give_global_vars.purchase_loading),a.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var n={action:"give_process_donation_login",give_ajax:1,give_user_login:a.find("[name=give_user_login]").val(),give_user_pass:a.find("[name=give_user_pass]").val(),give_form_id:a.find("[name=give-form-id]").val()};e.post(give_global_vars.ajaxurl,n,function(i){void 0!=e.trim(typeof i.success)&&1==i.success&&void 0!=typeof i.data?(a.find(".give_errors").remove(),a.find("#give-payment-mode-select").after(i.data),a.find(".give_notices.give_errors").delay(5e3).slideUp(),Give.form.fn.resetNonce(a),give_load_gateway(a,a.find(".give-gateway-option-selected input").val())):(a.find("[id^=give-login-fields] input[type=submit]").val(t),a.find(".give-loading-animation").fadeOut(),a.find(".give_errors").remove(),a.find("[id^=give-user-login-submit]").before(i.data))})}),e("select#give-gateway, input.give-gateway").on("change",function(i){i.preventDefault();var t=e(this).val();return"0"==t?(console.log("There was a problem loading the selected gateway"),!1):(give_load_gateway(e(this).parents("form"),t),!1)}),e("body").on("click","#give-confirm-email-btn",function(i){var t=e(this),a={action:"give_confirm_email_for_donations_access",email:t.data("email"),nonce:give_scripts.ajaxNonce};return t.text(give_global_vars.loading),t.attr("disabled","disabled"),e.post(give_global_vars.ajaxurl,a,function(e){e=JSON.parse(e),"error"===e.status?(t.closest("#give_user_history tfoot").hide(),t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),t.hide(),t.closest(".give-security-button-wrap").find("span").show())}),!1}),e("body").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',function(i){var t=e(this).parents("form.give-form"),a=t.find('input[type="submit"].give-submit + .give-loading-animation');a.fadeIn();var n=t.get(0);if("function"!=typeof n.checkValidity||n.checkValidity()!==!1||(a.fadeOut(),(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1)!=!1)){i.preventDefault();var o=e(this).val();e(this).val(give_global_vars.purchase_loading),Give.form.fn.disable(t,!0),e.post(give_global_vars.ajaxurl,t.serialize()+"&action=give_process_donation&give_ajax=true",function(i){"success"==e.trim(i)?(t.find(".give_errors").remove(),e(n).submit(),t.trigger("give_form_validation_passed")):(t.find('input[type="submit"].give-submit').val(o),a.fadeOut(),t.find(".give_errors").remove(),t.find('#give_purchase_submit input[type="submit"].give-submit').before(i),Give.form.fn.disable(t,!1))})}})});
assets/js/frontend/give-donations.js CHANGED
@@ -365,14 +365,25 @@ Give.form = {
365
  *
366
  * @return {string|boolean}
367
  */
368
- setInfo: function (str, val, $form, type) {
369
  // Bailout.
370
- if (!str.length || !$form.length) {
371
  return false;
372
  }
373
 
374
  type = 'undefined' === typeof type ? 'data' : type;
375
 
 
 
 
 
 
 
 
 
 
 
 
376
  switch (type) {
377
  case 'attr':
378
  $form.attr(str, val);
@@ -536,6 +547,54 @@ Give.form = {
536
  return Give.fn.unFormatCurrency(amount, this.getInfo('decimal_separator', $form));
537
  },
538
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
539
  /**
540
  * Auto select donation level
541
  *
365
  *
366
  * @return {string|boolean}
367
  */
368
+ setInfo: function (type, val, $form, str ) {
369
  // Bailout.
370
+ if ( !$form.length) {
371
  return false;
372
  }
373
 
374
  type = 'undefined' === typeof type ? 'data' : type;
375
 
376
+ switch (type){
377
+ case 'nonce':
378
+ $form.find('input[name="_wpnonce"]').val( val );
379
+ break;
380
+ }
381
+
382
+ // Bailout.
383
+ if( 'undefined' !== typeof str && ! str.length ) {
384
+ return false;
385
+ }
386
+
387
  switch (type) {
388
  case 'attr':
389
  $form.attr(str, val);
547
  return Give.fn.unFormatCurrency(amount, this.getInfo('decimal_separator', $form));
548
  },
549
 
550
+ /**
551
+ * Get form security nonce
552
+ *
553
+ * @since 1.8.17
554
+ * @param {object} $form
555
+ * @return {string}
556
+ */
557
+ getNonce: function ($form) {
558
+ // Bailout
559
+ if (!$form.length) {
560
+ return '';
561
+ }
562
+
563
+ var nonce = $form.find('input[name="_wpnonce"]').val();
564
+
565
+ if ('undefined' === typeof nonce || !nonce) {
566
+ nonce = '';
567
+ }
568
+
569
+ return nonce;
570
+ },
571
+
572
+ /**
573
+ * Reset form noce.
574
+ *
575
+ * @since 2.0
576
+ *
577
+ * @param {object} $form Donation form object.
578
+ * @returns {boolean}
579
+ */
580
+ resetNonce: function ($form) {
581
+ // Return false, if form is missing.
582
+ if ( ! $form.length ) {
583
+ return false;
584
+ }
585
+
586
+ //Post via AJAX to Give
587
+ jQuery.post(give_scripts.ajaxurl, {
588
+ action: 'give_donation_form_nonce',
589
+ give_form_id: Give.form.fn.getInfo('form-id', $form )
590
+ },
591
+ function (response) {
592
+ // Update nonce field.
593
+ Give.form.fn.setInfo( 'nonce', response.data, $form, '' );
594
+ }
595
+ );
596
+ },
597
+
598
  /**
599
  * Auto select donation level
600
  *
assets/js/frontend/give-donations.min.js CHANGED
@@ -1 +1 @@
1
- var give_scripts,give_global_vars,Give="undefined"!=typeof Give?Give:{};Give={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit"),this.fn.__initialize_cache();t<e.length;)Give[e[t]].init&&Give[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,i){var n={symbol:"",decimal:parseInt(give_global_vars.decimal_separator),thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals,currency:give_global_vars.currency};if(e=e.toString().trim(),i="undefined"==typeof i?{}:i,i.length&&(n={symbol:"",decimal:Give.form.fn.getInfo("decimal_separator",i),thousand:Give.form.fn.getInfo("thousands_separator",i),precision:Give.form.fn.getInfo("number_decimals",i),currency:Give.form.fn.getInfo("currency_code",i)}),t=jQuery.extend(n,t),t.precision=parseInt(t.precision),"INR"===t.currency){var a,r,o=accounting.unformat(e,".").toString(),d="",l=o.indexOf(".");for(-1!==l&&t.precision?(d=Number(o.substr(parseInt(l))).toFixed(t.precision).toString().substr(1),o=o.substr(0,parseInt(l)),d.length?t.precision+1>d.length&&(d=(d+"000000000").substr(0,t.precision+1)):d=".0000000000".substr(0,parseInt(l)+1)):d=".000000000".substr(0,t.precision+1),a=o.substr(-3),r=o.substr(0,parseInt(o.length)-3);r.length>0;)a=r.substr(-2)+t.thousand+a,r=r.substr(0,parseInt(r.length)-2);d.length&&(a+=d),e=a,void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=i.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){return"undefined"==typeof give_global_vars[e]?"":give_global_vars[e]},setCache:function(e,t,i){i.length?Give.cache["form_"+Give.form.fn.getInfo("form-id",i)][e]=t:Give.cache[e]=t},getCache:function(e,t){var i;return i=t.length?Give.cache["form_"+Give.form.fn.getInfo("form-id",t)][e]:Give.cache[e],i="undefined"==typeof i?"":i},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]})}},cache:{}},Give.form={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),window.onload=function(){Give.form.fn.__sendBackToForm()}},fn:{disable:function(e,t){return!!e.length&&void e.find(".give-submit").prop("disabled",t)},formatAmount:function(e,t,i){return t.length?Give.fn.formatCurrency(e,i,t):e},getInfo:function(e,t){var i="";if(t="undefined"!=typeof t?t:{},!e.length||!t.length)return i;switch(e){case"gateways":i=[],jQuery.each(t.find('input[name="payment-mode"]'),function(e,t){t=t instanceof jQuery?t:jQuery(t),i.push(t.val().trim())});break;case"form-type":t.hasClass("give-form-type-set")?i="set":t.hasClass("give-form-type-multi")&&(i="multi");break;case"form-id":i=t.find('input[name="give-form-id"]').val();break;default:i=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e),"undefined"!=typeof i?i.trim():i}return i},setInfo:function(e,t,i,n){if(!e.length||!i.length)return!1;switch(n="undefined"==typeof n?"data":n){case"attr":i.attr(e,t);break;default:i.data(e,t)}return!0},getGateway:function(e){var t="";return e.length?(t=e.find('input[name="payment-mode"]:checked').val().trim(),"undefined"!=typeof t?t:""):t},getVariablePrices:function(e){var t,i=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,function(t,n){n=n instanceof jQuery?n:jQuery(n);var a=Give.form.fn.getInfo("decimal_separator",e);i.push({price_id:n.data("price-id"),amount:Give.fn.unFormatCurrency(n.val(),a)})}),i):i},getPriceID:function(e,t){var i=this.getVariablePrices(e),n=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),a=Give.fn.getCache("amount_"+n,e)?Give.fn.getCache("amount_"+n,e):-1;return t="undefined"==typeof t||t,i.length&&-1===a&&(t?(jQuery.each(i,function(e,t){if(t.amount===n)return a=t.price_id,!1}),-1===a&&this.getMinimumAmount(e)<=n&&(a="custom")):a=jQuery('input[name="give-price-id"]',e).val()),a},getMinimumAmount:function(e){return Give.fn.unFormatCurrency(e.find('input[name="give-form-minimum"]').val(),Give.form.fn.getInfo("decimal_separator",e))},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return"undefined"!=typeof t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t="undefined"==typeof t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').focus().addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),i=e.val(),n=e.data("price-id");if("undefined"==typeof n&&(n=e.find("option:selected").data("price-id")),"custom"===i)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(i),t.find("span.give-amount-top").text(i);var a=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).data("amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").data("total"),a)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,i,n]),jQuery(document).trigger("give_donation_value_updated",[t,i,n])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var i=jQuery("body").find("#give-form-"+e+"-wrap"),n=i.find("form.give-form"),a=i.hasClass("give-display-modal"),r=i.hasClass("give-display-reveal");n.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),n.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var o=Give.fn.getParameterByName("level-id"),d=n.find('*[data-price-id="'+o+'"]');d.length>0&&this.autoSetMultiLevel(d),a?give_open_form_modal(i,n):r&&(n.find(".give-btn-reveal").hide(),n.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){var t=this.getMinimumAmount(e),i=this.getAmount(e),n=this.getPriceID(e,!0);return-1<i&&i>=t||-1!==n},field:{formatCreditCard:function(e){e.each(function(e,t){t=jQuery(t);var i=t.find(".card-number"),n=t.find(".card-cvc"),a=t.find(".card-expiry");i.length&&(i.payment("formatCardNumber"),n.payment("formatCardCVC"),a.payment("formatCardExpiry"))})}}}},Give.notice={fn:{renderNotice:function(e,t){var i,n="";switch(t="undefined"!=typeof t?t:{},e){case"bad_minimum":i=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>")}return t.length?void i.insertBefore(t.find(".give-total-wrap")).show():n},getNotice:function(e,t){if(!e.length)return null;var i="";switch(e){case"bad_minimum":t.length&&(i=Give.fn.getGlobalVar("bad_minimum")+" "+Give.fn.formatCurrency(Give.form.fn.getMinimumAmount(t),{symbol:Give.form.fn.getInfo("currency_symbol",t)},t))}return i}}},jQuery(function(e){function t(){var t=e(this),i=t.parents("form");if("card_state"!==t.attr("id")){i.find("#card_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var a={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:a,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){var t="",a=e.states_label;t=void 0!=typeof e.states_found&&1==e.states_found?e.data:'<input type="text" id="card_state" name="card_state" class="cart-state give-input required" placeholder="'+a+'" value="'+e.default_state+'"/>',!1===i.hasClass("float-labels-enabled")?"undefined"!=typeof e.states_require&&1==e.states_require?i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").removeClass("give-hidden"):i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").addClass("give-hidden"):i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label").text(a),i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .state-label-text").text(a),i.find('input[name="card_state"], select[name="card_state"]').replaceWith(t),void 0!=typeof e.show_field&&1==e.show_field?(i.find("p#give-card-state-wrap").removeClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-last"),i.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(i.find("p#give-card-state-wrap").addClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-wide"),i.find("p#give-card-zip-wrap").removeClass("form-row-last")),n.trigger("give_checkout_billing_address_updated",[e,i.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}var i=jQuery("form.give-form"),n=e(document);e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("change","#give_cc_address input.card_state, #give_cc_address select",t),n.on("give_gateway_loaded",function(){Give.form.fn.field.formatCreditCard(i)}),n.on("submit","#give_payment_mode",function(){var t=Give.form.fn.getGateway(e(this).closest("form"));if(!t.length)return alert(Give.fn.getGlobalVar("no_gateway")),!1}),n.on("click","#give-payment-mode-select input",function(){var t,i=e(this).parents("form"),n=i.find("#give-payment-mode-select li"),a=i.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();n.removeClass("give-gateway-option-selected"),n.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),t=Give.form.fn.getGateway(i),i.attr("action",i.attr("action").replace("payment-mode="+a,"payment-mode="+t))}),n.on("focus",".give-donation-amount .give-text-input",function(t){var i=e(this).parents("form");e(this).removeClass("invalid-amount");var n=i.find(".give-final-total-amount").data("total"),a=Give.form.fn.getInfo("decimal_separator",i);e(this).data("amount",Give.fn.unFormatCurrency(n,a)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),i.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),i.find(".give-btn-level-custom").addClass("give-default-level"),i.find(".give-radio-input").prop("checked",!1),i.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),i.find(".give-select-level").prop("selected",!1),i.find(".give-select-level .give-donation-level-custom").prop("selected",!0)}),n.on("blur",".give-donation-amount .give-text-input",function(t,i,n,a){var r="undefined"!=typeof i?i:e(this).closest("form"),o=e(this).data("amount"),d="undefined"!=typeof n?n:e(this).val(),l=Give.form.fn.getInfo("decimal_separator",r),f=Give.form.fn.getMinimumAmount(r),s=0===d?f:Give.fn.unFormatCurrency(d,l),u=Give.form.fn.formatAmount(s,r,{});if(a="undefined"==typeof a?Give.form.fn.getPriceID(r,!0):a,Give.fn.setCache("amount_"+s,a,r),e(this).val(u),Give.form.fn.isValidDonationAmount(r))e(this).removeClass("give-invalid-amount"),r.find(".give-invalid-minimum").slideUp(300,function(){e(this).remove()}),Give.form.fn.disable(r,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(r,!0);var c=r.find(".give-invalid-minimum");0===c.length&&Give.notice.fn.renderNotice("bad_minimum",r)}o!==s&&r.find(".give-final-total-amount").data("total",s).text(Give.fn.formatCurrency(s,{symbol:Give.form.fn.getInfo("currency_symbol",r),position:Give.form.fn.getInfo("currency_position",r)},r)),-1!==a&&(e('input[name="give-price-id"]',r).val(a),r.find(".give-amount-hidden").val(Give.form.fn.formatAmount(s,r,{})),r.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(r,a)),e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in")}),n.on("click touchend",".give-donation-level-btn",function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click touchend",".give-radio-input-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("change",".give-select-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click",".give_terms_links",function(t){t.preventDefault();var i=e(this).closest("fieldset");return e("[class^=give_terms-]",i).slideToggle(),e("a.give_terms_links",i).toggle(),!1}),e('label[for^="give-radio-level"]').on("click",function(t){var i=e(this).closest("form"),n=i.find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())})}),jQuery(window).load(function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(e){var t=jQuery(this),i=t.parents("form.give-form"),n=t.attr("id"),a=i.find(".card-number"),r=i.find(".card-cvc"),o=i.find(".card-expiry"),d=jQuery.payment.cardType(a.val()),l=!1;switch(e.type){case"focusout":n.indexOf("card_number")>-1?(l=!jQuery.payment.validateCardNumber(a.val()),a.toggleError(l)):n.indexOf("card_cvc")>-1?(l=!jQuery.payment.validateCardCVC(r.val(),d),r.toggleError(l)):n.indexOf("card_expiry")>-1&&(l=!jQuery.payment.validateCardExpiry(o.payment("cardExpiryVal")),o.toggleError(l)),Give.form.fn.disable(t.parents("form"),l);break;default:if(t.hasClass("error")&&t.removeClass("error"),n.indexOf("card_number")>-1){var f=i.find(".card-type");null===d?(f.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):f.removeClass().addClass("card-type "+d)}else if(n.indexOf("card_expiry")>-1){var s=o.payment("cardExpiryVal");i.find(".card-expiry-month").val(s.month),i.find(".card-expiry-year").val(s.year)}}})});
1
+ var give_scripts,give_global_vars,Give="undefined"!=typeof Give?Give:{};Give={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit"),this.fn.__initialize_cache();t<e.length;)Give[e[t]].init&&Give[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,i){var n={symbol:"",decimal:parseInt(give_global_vars.decimal_separator),thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals,currency:give_global_vars.currency};if(e=e.toString().trim(),i="undefined"==typeof i?{}:i,i.length&&(n={symbol:"",decimal:Give.form.fn.getInfo("decimal_separator",i),thousand:Give.form.fn.getInfo("thousands_separator",i),precision:Give.form.fn.getInfo("number_decimals",i),currency:Give.form.fn.getInfo("currency_code",i)}),t=jQuery.extend(n,t),t.precision=parseInt(t.precision),"INR"===t.currency){var a,r,o=accounting.unformat(e,".").toString(),d="",f=o.indexOf(".");for(-1!==f&&t.precision?(d=Number(o.substr(parseInt(f))).toFixed(t.precision).toString().substr(1),o=o.substr(0,parseInt(f)),d.length?t.precision+1>d.length&&(d=(d+"000000000").substr(0,t.precision+1)):d=".0000000000".substr(0,parseInt(f)+1)):d=".000000000".substr(0,t.precision+1),a=o.substr(-3),r=o.substr(0,parseInt(o.length)-3);r.length>0;)a=r.substr(-2)+t.thousand+a,r=r.substr(0,parseInt(r.length)-2);d.length&&(a+=d),e=a,void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=i.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){return"undefined"==typeof give_global_vars[e]?"":give_global_vars[e]},setCache:function(e,t,i){i.length?Give.cache["form_"+Give.form.fn.getInfo("form-id",i)][e]=t:Give.cache[e]=t},getCache:function(e,t){var i;return i=t.length?Give.cache["form_"+Give.form.fn.getInfo("form-id",t)][e]:Give.cache[e],i="undefined"==typeof i?"":i},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]})}},cache:{}},Give.form={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),window.onload=function(){Give.form.fn.__sendBackToForm()}},fn:{disable:function(e,t){return!!e.length&&void e.find(".give-submit").prop("disabled",t)},formatAmount:function(e,t,i){return t.length?Give.fn.formatCurrency(e,i,t):e},getInfo:function(e,t){var i="";if(t="undefined"!=typeof t?t:{},!e.length||!t.length)return i;switch(e){case"gateways":i=[],jQuery.each(t.find('input[name="payment-mode"]'),function(e,t){t=t instanceof jQuery?t:jQuery(t),i.push(t.val().trim())});break;case"form-type":t.hasClass("give-form-type-set")?i="set":t.hasClass("give-form-type-multi")&&(i="multi");break;case"form-id":i=t.find('input[name="give-form-id"]').val();break;default:i=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e),"undefined"!=typeof i?i.trim():i}return i},setInfo:function(e,t,i,n){if(!i.length)return!1;switch(e="undefined"==typeof e?"data":e){case"nonce":i.find('input[name="_wpnonce"]').val(t)}if("undefined"!=typeof n&&!n.length)return!1;switch(e){case"attr":i.attr(n,t);break;default:i.data(n,t)}return!0},getGateway:function(e){var t="";return e.length?(t=e.find('input[name="payment-mode"]:checked').val().trim(),"undefined"!=typeof t?t:""):t},getVariablePrices:function(e){var t,i=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,function(t,n){n=n instanceof jQuery?n:jQuery(n);var a=Give.form.fn.getInfo("decimal_separator",e);i.push({price_id:n.data("price-id"),amount:Give.fn.unFormatCurrency(n.val(),a)})}),i):i},getPriceID:function(e,t){var i=this.getVariablePrices(e),n=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),a=Give.fn.getCache("amount_"+n,e)?Give.fn.getCache("amount_"+n,e):-1;return t="undefined"==typeof t||t,i.length&&-1===a&&(t?(jQuery.each(i,function(e,t){if(t.amount===n)return a=t.price_id,!1}),-1===a&&this.getMinimumAmount(e)<=n&&(a="custom")):a=jQuery('input[name="give-price-id"]',e).val()),a},getMinimumAmount:function(e){return Give.fn.unFormatCurrency(e.find('input[name="give-form-minimum"]').val(),Give.form.fn.getInfo("decimal_separator",e))},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return"undefined"!=typeof t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="_wpnonce"]').val();return"undefined"!=typeof t&&t||(t=""),t},resetNonce:function(e){return!!e.length&&void jQuery.post(give_scripts.ajaxurl,{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(t){Give.form.fn.setInfo("nonce",t.data,e,"")})},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t="undefined"==typeof t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').focus().addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),i=e.val(),n=e.data("price-id");if("undefined"==typeof n&&(n=e.find("option:selected").data("price-id")),"custom"===i)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(i),t.find("span.give-amount-top").text(i);var a=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).data("amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").data("total"),a)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,i,n]),jQuery(document).trigger("give_donation_value_updated",[t,i,n])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var i=jQuery("body").find("#give-form-"+e+"-wrap"),n=i.find("form.give-form"),a=i.hasClass("give-display-modal"),r=i.hasClass("give-display-reveal");n.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),n.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var o=Give.fn.getParameterByName("level-id"),d=n.find('*[data-price-id="'+o+'"]');d.length>0&&this.autoSetMultiLevel(d),a?give_open_form_modal(i,n):r&&(n.find(".give-btn-reveal").hide(),n.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){var t=this.getMinimumAmount(e),i=this.getAmount(e),n=this.getPriceID(e,!0);return-1<i&&i>=t||-1!==n},field:{formatCreditCard:function(e){e.each(function(e,t){t=jQuery(t);var i=t.find(".card-number"),n=t.find(".card-cvc"),a=t.find(".card-expiry");i.length&&(i.payment("formatCardNumber"),n.payment("formatCardCVC"),a.payment("formatCardExpiry"))})}}}},Give.notice={fn:{renderNotice:function(e,t){var i,n="";switch(t="undefined"!=typeof t?t:{},e){case"bad_minimum":i=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>")}return t.length?void i.insertBefore(t.find(".give-total-wrap")).show():n},getNotice:function(e,t){if(!e.length)return null;var i="";switch(e){case"bad_minimum":t.length&&(i=Give.fn.getGlobalVar("bad_minimum")+" "+Give.fn.formatCurrency(Give.form.fn.getMinimumAmount(t),{symbol:Give.form.fn.getInfo("currency_symbol",t)},t))}return i}}},jQuery(function(e){function t(){var t=e(this),i=t.parents("form");if("card_state"!==t.attr("id")){i.find("#card_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var a={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:a,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){var t="",a=e.states_label;t=void 0!=typeof e.states_found&&1==e.states_found?e.data:'<input type="text" id="card_state" name="card_state" class="cart-state give-input required" placeholder="'+a+'" value="'+e.default_state+'"/>',!1===i.hasClass("float-labels-enabled")?"undefined"!=typeof e.states_require&&1==e.states_require?i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").removeClass("give-hidden"):i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").addClass("give-hidden"):i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label").text(a),i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .state-label-text").text(a),i.find('input[name="card_state"], select[name="card_state"]').replaceWith(t),void 0!=typeof e.show_field&&1==e.show_field?(i.find("p#give-card-state-wrap").removeClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-last"),i.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(i.find("p#give-card-state-wrap").addClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-wide"),i.find("p#give-card-zip-wrap").removeClass("form-row-last")),n.trigger("give_checkout_billing_address_updated",[e,i.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}var i=jQuery("form.give-form"),n=e(document);e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("change","#give_cc_address input.card_state, #give_cc_address select",t),n.on("give_gateway_loaded",function(){Give.form.fn.field.formatCreditCard(i)}),n.on("submit","#give_payment_mode",function(){var t=Give.form.fn.getGateway(e(this).closest("form"));if(!t.length)return alert(Give.fn.getGlobalVar("no_gateway")),!1}),n.on("click","#give-payment-mode-select input",function(){var t,i=e(this).parents("form"),n=i.find("#give-payment-mode-select li"),a=i.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();n.removeClass("give-gateway-option-selected"),n.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),t=Give.form.fn.getGateway(i),i.attr("action",i.attr("action").replace("payment-mode="+a,"payment-mode="+t))}),n.on("focus",".give-donation-amount .give-text-input",function(t){var i=e(this).parents("form");e(this).removeClass("invalid-amount");var n=i.find(".give-final-total-amount").data("total"),a=Give.form.fn.getInfo("decimal_separator",i);e(this).data("amount",Give.fn.unFormatCurrency(n,a)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),i.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),i.find(".give-btn-level-custom").addClass("give-default-level"),i.find(".give-radio-input").prop("checked",!1),i.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),i.find(".give-select-level").prop("selected",!1),i.find(".give-select-level .give-donation-level-custom").prop("selected",!0)}),n.on("blur",".give-donation-amount .give-text-input",function(t,i,n,a){var r="undefined"!=typeof i?i:e(this).closest("form"),o=e(this).data("amount"),d="undefined"!=typeof n?n:e(this).val(),f=Give.form.fn.getInfo("decimal_separator",r),l=Give.form.fn.getMinimumAmount(r),s=0===d?l:Give.fn.unFormatCurrency(d,f),u=Give.form.fn.formatAmount(s,r,{});if(a="undefined"==typeof a?Give.form.fn.getPriceID(r,!0):a,Give.fn.setCache("amount_"+s,a,r),e(this).val(u),Give.form.fn.isValidDonationAmount(r))e(this).removeClass("give-invalid-amount"),r.find(".give-invalid-minimum").slideUp(300,function(){e(this).remove()}),Give.form.fn.disable(r,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(r,!0);var c=r.find(".give-invalid-minimum");0===c.length&&Give.notice.fn.renderNotice("bad_minimum",r)}o!==s&&r.find(".give-final-total-amount").data("total",s).text(Give.fn.formatCurrency(s,{symbol:Give.form.fn.getInfo("currency_symbol",r),position:Give.form.fn.getInfo("currency_position",r)},r)),-1!==a&&(e('input[name="give-price-id"]',r).val(a),r.find(".give-amount-hidden").val(Give.form.fn.formatAmount(s,r,{})),r.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(r,a)),e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in")}),n.on("click touchend",".give-donation-level-btn",function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click touchend",".give-radio-input-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("change",".give-select-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click",".give_terms_links",function(t){t.preventDefault();var i=e(this).closest("fieldset");return e("[class^=give_terms-]",i).slideToggle(),e("a.give_terms_links",i).toggle(),!1}),e('label[for^="give-radio-level"]').on("click",function(t){var i=e(this).closest("form"),n=i.find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())})}),jQuery(window).load(function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(e){var t=jQuery(this),i=t.parents("form.give-form"),n=t.attr("id"),a=i.find(".card-number"),r=i.find(".card-cvc"),o=i.find(".card-expiry"),d=jQuery.payment.cardType(a.val()),f=!1;switch(e.type){case"focusout":n.indexOf("card_number")>-1?(f=!jQuery.payment.validateCardNumber(a.val()),a.toggleError(f)):n.indexOf("card_cvc")>-1?(f=!jQuery.payment.validateCardCVC(r.val(),d),r.toggleError(f)):n.indexOf("card_expiry")>-1&&(f=!jQuery.payment.validateCardExpiry(o.payment("cardExpiryVal")),o.toggleError(f)),Give.form.fn.disable(t.parents("form"),f);break;default:if(t.hasClass("error")&&t.removeClass("error"),n.indexOf("card_number")>-1){var l=i.find(".card-type");null===d?(l.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):l.removeClass().addClass("card-type "+d)}else if(n.indexOf("card_expiry")>-1){var s=o.payment("cardExpiryVal");i.find(".card-expiry-month").val(s.month),i.find(".card-expiry-year").val(s.year)}}})});
assets/js/frontend/give.all.min.js CHANGED
@@ -1,10 +1,9 @@
1
  !function(n,r){function e(n){return!!(""===n||n&&n.charCodeAt&&n.substr)}function t(n){return p?p(n):"[object Array]"===l.call(n)}function o(n){return n&&"[object Object]"===l.call(n)}function a(n,r){var e;n=n||{},r=r||{};for(e in r)r.hasOwnProperty(e)&&null==n[e]&&(n[e]=r[e]);return n}function i(n,r,e){var t,o,a=[];if(!n)return a;if(f&&n.map===f)return n.map(r,e);for(t=0,o=n.length;t<o;t++)a[t]=r.call(e,n[t],t,n);return a}function u(n,r){return n=Math.round(Math.abs(n)),isNaN(n)?r:n}function c(n){var r=s.settings.currency.format;return"function"==typeof n&&(n=n()),e(n)&&n.match("%v")?{pos:n,neg:n.replace("-","").replace("%v","-%v"),zero:n}:n&&n.pos&&n.pos.match("%v")?n:e(r)?s.settings.currency.format={pos:r,neg:r.replace("%v","-%v"),zero:r}:r}var s={};s.version="0.4.1",s.settings={currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}};var f=Array.prototype.map,p=Array.isArray,l=Object.prototype.toString,m=s.unformat=s.parse=function(n,r){if(t(n))return i(n,function(n){return m(n,r)});if(n=n||0,"number"==typeof n)return n;r=r||s.settings.number.decimal;var e=new RegExp("[^0-9-"+r+"]",["g"]),o=parseFloat((""+n).replace(/\((.*)\)/,"-$1").replace(e,"").replace(r,"."));return isNaN(o)?0:o},d=s.toFixed=function(n,r){r=u(r,s.settings.number.precision);var e=Math.pow(10,r);return(Math.round(s.unformat(n)*e)/e).toFixed(r)},g=s.formatNumber=s.format=function(n,r,e,c){if(t(n))return i(n,function(n){return g(n,r,e,c)});n=m(n);var f=a(o(r)?r:{precision:r,thousand:e,decimal:c},s.settings.number),p=u(f.precision),l=n<0?"-":"",h=parseInt(d(Math.abs(n||0),p),10)+"",y=h.length>3?h.length%3:0;return l+(y?h.substr(0,y)+f.thousand:"")+h.substr(y).replace(/(\d{3})(?=\d)/g,"$1"+f.thousand)+(p?f.decimal+d(Math.abs(n),p).split(".")[1]:"")},h=s.formatMoney=function(n,r,e,f,p,l){if(t(n))return i(n,function(n){return h(n,r,e,f,p,l)});n=m(n);var d=a(o(r)?r:{symbol:r,precision:e,thousand:f,decimal:p,format:l},s.settings.currency),y=c(d.format),b=n>0?y.pos:n<0?y.neg:y.zero;return b.replace("%s",d.symbol).replace("%v",g(Math.abs(n),u(d.precision),d.thousand,d.decimal))};s.formatColumn=function(n,r,f,p,l,d){if(!n)return[];var h=a(o(r)?r:{symbol:r,precision:f,thousand:p,decimal:l,format:d},s.settings.currency),y=c(h.format),b=y.pos.indexOf("%s")<y.pos.indexOf("%v"),v=0,x=i(n,function(n,r){if(t(n))return s.formatColumn(n,h);n=m(n);var e=n>0?y.pos:n<0?y.neg:y.zero,o=e.replace("%s",h.symbol).replace("%v",g(Math.abs(n),u(h.precision),h.thousand,h.decimal));return o.length>v&&(v=o.length),o});return i(x,function(n,r){return e(n)&&n.length<v?b?n.replace(h.symbol,h.symbol+new Array(v-n.length+1).join(" ")):new Array(v-n.length+1).join(" ")+n:n})},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=s),exports.accounting=s):"function"==typeof define&&define.amd?define([],function(){return s}):(s.noConflict=function(e){return function(){return n.accounting=e,s.noConflict=r,s}}(n.accounting),n.accounting=s)}(this);
2
- !function(t,e,i){"use strict";var s=function(t,i){this.el=this.isString(t)?e.querySelectorAll(t):t,NodeList.prototype.isPrototypeOf(this.el)&&(this.config=[],this.options=i,this.selectors=[],this.init(),this.destroy=function(){this.loop(function(t){t.removeEventListener("reset",this.events.reset),this.removeClasses(t)},function(t){this.reset(t)})},this.rebuild=function(){this.loop(null,function(t){this.floatLabel(t,!0)})})};s.prototype={defaults:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init:function(){this.initEvents(),this.loop(function(t,e){var i=this.config[e].style;t.addEventListener("reset",this.events.reset),t.classList.add(this.prefixed("form")),i&&t.classList.add(this.prefixed("style-"+i))},function(t){this.floatLabel(t)})},initEvents:function(){this.events={blur:this.onBlur.bind(this),change:this.onInput.bind(this),focus:this.onFocus.bind(this),input:this.onInput.bind(this),reset:this.onReset.bind(this)}},build:function(t){var e=this.getLabel(t);e&&(t.classList.add(this.prefixed(t.tagName.toLowerCase())),this.setLabel(e,t),this.setPlaceholder(e,t),this.wrapLabel(e,t),this.handleEvents(t,"add"),"function"==typeof this.config[this.current].customEvent&&this.config[this.current].customEvent.call(this,t))},createEl:function(t,i){var s="string"==typeof t?e.createElement(t):t;i=i||{};for(var r in i)i.hasOwnProperty(r)&&s.setAttribute(r,i[r]);return s},extend:function(){var t=[].slice.call(arguments),e=t[0],i=t.slice(1);return Object.keys(i).forEach(function(t){for(var s in i[t])i[t].hasOwnProperty(s)&&(e[s]=i[t][s])}),e},floatLabel:function(t,e){if(t.getAttribute("id")&&("INPUT"!==t.tagName||this.config[this.current].inputRegex.test(t.getAttribute("type")))){if(this.hasParent(t)){if(e!==!0)return;this.reset(t)}this.build(t)}},getLabel:function(t){var e='label[for="'+t.getAttribute("id")+'"]',i=this.el[this.current].querySelectorAll(e);return i.length>1&&(i=t.parentNode.querySelectorAll(e)),1===i.length&&i[0]},getLabelText:function(t,e){var i=t.textContent.replace(/[*:]/g,"").trim(),s=e.getAttribute("placeholder");return(!i||i&&s&&"placeholder"===this.config[this.current].prioritize)&&(i=s),i},handleEvents:function(t,e){var i=this.events;["blur","input","focus"].forEach(function(s){"file"===t.type&&"input"===s&&(s="change"),t[e+"EventListener"](s,i[s])})},hasParent:function(t){return t.parentNode.classList.contains(this.prefixed("wrap"))},isString:function(t){return"[object String]"===Object.prototype.toString.call(t)},loop:function(t,e){for(var i=0;i<this.el.length;++i){if("undefined"==typeof this.selectors[i]){var s=this.extend({},this.defaults,this.options,this.el[i].getAttribute("data-options")),r=":not("+s.exclude.split(/[\s,]+/).join("):not(")+")";this.selectors[i]=s.transform.replace(/,/g,r+",")+r,this.config[i]=s}var n=this.el[i].querySelectorAll(this.selectors[i]);this.current=i,"function"==typeof t&&t.call(this,this.el[i],i);for(var o=0;o<n.length;++o)"function"==typeof e&&e.call(this,n[o],i)}},onBlur:function(t){t.target.parentNode.classList.remove(this.prefixed("has-focus"))},onInput:function(t){var e=t.target.value.length?"add":"remove";t.target.parentNode.classList[e](this.prefixed("is-active"))},onFocus:function(t){t.target.parentNode.classList.add(this.prefixed("has-focus"))},onReset:function(){for(var t=this.el[this.current].querySelectorAll(this.selectors[this.current]),e=0;e<t.length;++e)t[e].parentNode.classList.remove(this.prefixed("is-active"))},prefixed:function(t){return this.config[this.current].prefix+t},removeClasses:function(t){var e=this.config[this.current].prefix,i=t.className.split(" ").filter(function(t){return 0!==t.lastIndexOf(e,0)});t.className=i.join(" ").trim()},reset:function(t){var i=t.parentNode;if(this.hasParent(t)){for(var s=e.createDocumentFragment();i.firstElementChild;){var r=i.firstElementChild;this.removeClasses(r),s.appendChild(r)}i.parentNode.replaceChild(s,i),this.resetPlaceholder(t),this.handleEvents(t,"remove")}},resetPlaceholder:function(t){var e="data-placeholder",i=t.getAttribute(e);null!==i&&(t.removeAttribute(e),t.setAttribute("placeholder",i))},setLabel:function(t,e){t.classList.add(this.prefixed("label")),t.textContent=this.getLabelText(t,e),"function"==typeof this.config[this.current].customLabel&&(t.textContent=this.config[this.current].customLabel.call(this,t,e))},setPlaceholder:function(t,e){var i=e.getAttribute("placeholder");"label"!==this.config[this.current].prioritize&&i||(i&&e.setAttribute("data-placeholder",i),i=this.getLabelText(t,e)),"function"==typeof this.config[this.current].customPlaceholder&&(i=this.config[this.current].customPlaceholder.call(this,i,e,t)),"SELECT"===e.tagName?this.setSelectPlaceholder(e,i):e.setAttribute("placeholder",i)},setSelectPlaceholder:function(t,e){var i=t.firstElementChild;i.hasAttribute("value")&&i.value?t.insertBefore(new Option(e,"",(!0),(!0)),i):i.setAttribute("value",""),""===i.textContent&&(i.textContent=e)},wrapLabel:function(t,e){var i=this.createEl("div",{"class":this.prefixed("wrap")+" "+this.prefixed("wrap-"+e.tagName.toLowerCase())});e.hasAttribute("value")&&e.value.length&&i.classList.add(this.prefixed("is-active")),(null!==e.getAttribute("required")||e.classList.contains(this.config[this.current].requiredClass))&&i.classList.add(this.prefixed("is-required")),e.parentNode.insertBefore(i,e),i.appendChild(t),i.appendChild(e)}},t.FloatLabels=s}(window,document);
3
  !function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&void 0!==n.message?n.message:void 0;if(n=e.extend({},e.blockUI.defaults,n||{}),!n.ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=void 0===y?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,v={};e(t).data("blockUI.history",v),v.el=m,v.parent=m.parentNode,v.display=m.style.display,v.position=m.style.position,v.parent&&v.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var g,I,w,U,x=n.baseZ;g=e(r||n.forceIframe?'<iframe class="blockUI" style="z-index:'+x++ +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+n.iframeSrc+'"></iframe>':'<div class="blockUI" style="display:none"></div>'),I=e(n.theme?'<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x++ +';display:none"></div>':'<div class="blockUI blockOverlay" style="z-index:'+x++ +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),n.theme&&k?(U='<div class="blockUI '+n.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',n.title&&(U+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(n.title||"&nbsp;")+"</div>"),U+='<div class="ui-widget-content ui-dialog-content"></div>',U+="</div>"):n.theme?(U='<div class="blockUI '+n.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',n.title&&(U+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(n.title||"&nbsp;")+"</div>"),U+='<div class="ui-widget-content ui-dialog-content"></div>',U+="</div>"):U=k?'<div class="blockUI '+n.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+n.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&g.css("opacity",0);var C=[g,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=d(t,"borderTopWidth"),T=d(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i=n.css&&n.css.top?parseInt(n.css.top,10):0,s="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+i+') + "px"';o.setExpression("top",s)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&g.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):a(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,a=e(t),d=a.data("blockUI.history"),c=a.data("blockUI.timeout");c&&(clearTimeout(c),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock"));var r;r=l?e("body").children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0===--s&&n(r,d,o,t)})):n(r,d,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),a=l.width(),d=l[0].style.width;l.width(a-1).width(a),l[0].style.width=d}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var a="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(a,n,s):e(document).unbind(a,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),a.parents("div."+s.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[e===!0?b.length-1:0];t&&t.focus()}}function a(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-d(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-d(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function d(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode||0,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),void 0===n&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();
4
  !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,o,r,a,s="Close",l="BeforeClose",c="AfterClose",d="BeforeAppend",u="MarkupParse",p="Open",f="Change",m="mfp",g="."+m,v="mfp-ready",h="mfp-removing",y="mfp-prevent-close",C=function(){},w=!!window.jQuery,b=e(window),I=function(e,n){t.ev.on(m+e+g,n)},x=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},k=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},T=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},_=function(){e.magnificPopup.instance||(t=new C,t.init(),e.magnificPopup.instance=t)},P=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};C.prototype={constructor:C,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=P(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(o=0;o<s.length;o++)if(a=s[o],a.parsed&&(a=a.el[0]),a===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=x("bg").on("click"+g,function(){t.close()}),t.wrap=x("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=x("container",t.wrap)),t.contentContainer=x("content"),t.st.preloader&&(t.preloader=x("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var c=l[o];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}k("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(I(u,function(e,t,n,i){n.close_replaceWith=T(i.type)}),r+=" mfp-close-btn-in"):t.wrap.append(T())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:b.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),b.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var d=t.wH=b.height(),f={};if(t.fixedContentPos&&t._hasScrollBar(d)){var m=t._getScrollbarSize();m&&(f.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):f.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),k("BuildControls"),e("html").css(f),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),i.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),k(p),n},close:function(){t.isOpen&&(k(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){k(s);var n=h+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,k(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),k("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(k("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;k("FirstMarkupParse",r),r?t.currTemplate[i]=e(r):t.currTemplate[i]=!0}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,k(f,n),o=n.type,t.container.prepend(t.contentContainer),k("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(T()):t.content=e:t.content="",k(d),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,k("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){var r=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(r||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(b.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};k("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(y)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),k(u,[t,n,i]),e.each(n,function(n,i){if(void 0===i||i===!1)return!0;if(o=n.split("_"),o.length>1){var r=t.find(g+"-"+o[0]);if(r.length>0){var a=o[1];"replaceWith"===a?r[0]!==i[0]&&r.replaceWith(i):"img"===a?r.is("img")?r.attr("src",i):r.replaceWith(e("<img>").attr("src",i).attr("class",r.attr("class"))):r.attr(o[1],i)}}else t.find(g+"-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:C.prototype,modules:[],open:function(t,n){return _(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){_();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=w?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),w?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var S,E,z,O="inline",M=function(){z&&(E.after(z.addClass(S)).detach(),z=null)};e.magnificPopup.registerModule(O,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(O),I(s+"."+O,function(){M()})},getInline:function(n,i){if(M(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(E||(S=o.hiddenClass,E=x(S),S="mfp-"+S),z=r.after(E).detach().removeClass(S)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var B,L="ajax",H=function(){B&&e(document.body).removeClass(B)},A=function(){H(),t.req&&t.req.abort()};e.magnificPopup.registerModule(L,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(L),B=t.st.ajax.cursor,I(s+"."+L,A),I("BeforeChange."+L,A)},getAjax:function(n){B&&e(document.body).addClass(B),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};k("ParseAjax",a),t.appendContent(e(a.data),L),n.finished=!0,H(),t._setFocus(),setTimeout(function(){t.wrap.addClass(v)},16),t.updateStatus("ready"),k("AjaxContentAdded")},error:function(){H(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var F,j=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),I(p+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),I(s+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),b.off("resize"+g)}),I("Resize"+i,t.resizeImage),t.isLowIE&&I("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,F&&clearInterval(F),e.isCheckingImgSize=!1,k("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){F&&clearInterval(F),F=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(n>200&&clearInterval(F),n++,void(3===n?o(10):40===n?o(50):100===n&&o(500)))},r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,k("ImageLoadComplete")):(o++,o<200?setTimeout(r,100):a()))},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:j(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(F&&clearInterval(F),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var N,W=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},d=function(){t.content.css("visibility","visible")};I("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void d();r=c(e),r.css(t._getOffset()),t.wrap.append(r),o=setTimeout(function(){r.css(t._getOffset(!0)),o=setTimeout(function(){d(),setTimeout(function(){r.remove(),e=r=null,k("ZoomAnimationEnded")},16)},a)},16)}}),I(l+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(e=t._getItemToZoom(),!e)return;r=c(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),I(s+i,function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(w?i.innerHeight():i[0].offsetHeight)-a-r};return W()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var Z="iframe",q="//about:blank",R=function(e){if(t.currTemplate[Z]){var n=t.currTemplate[Z].find("iframe");n.length&&(e||(n[0].src=q),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(Z,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(Z),I("BeforeChange",function(e,t,n){t!==n&&(t===Z?R():n===Z&&R(!0))}),I(s+"."+Z,function(){R()})},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var K=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},D=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";return t.direction=!0,!(!n||!n.enabled)&&(r+=" mfp-gallery",I(p+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),I("UpdateStatus"+o,function(e,n){n.text&&(n.text=D(n.text,t.currItem.index,t.items.length))}),I(u+o,function(e,i,o,r){var a=t.items.length;o.counter=a>1?D(n.tCounter,r.index,a):""}),I("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y);o.click(function(){t.prev()}),r.click(function(){t.next()}),t.container.append(o.add(r))}}),I(f+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void I(s+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=K(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=K(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=K(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),k("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,k("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var U="retina";e.magnificPopup.registerModule(U,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(I("ImageHasSize."+U,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),I("ElementParse."+U,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),_()});
5
  (function(){var t,e,n,r,a,i,o,l,u,s,c,h,p,f,g,v,d,m,y,C,T,w,$,D,S=[].slice,k=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1};t=window.jQuery||window.Zepto||window.$,t.payment={},t.payment.fn={},t.fn.payment=function(){var e,n;return n=arguments[0],e=2<=arguments.length?S.call(arguments,1):[],t.payment.fn[n].apply(this,e)},a=/(\d{1,4})/g,t.payment.cards=r=[{type:"maestro",patterns:[5018,502,503,506,56,58,639,6220,67],format:a,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"forbrugsforeningen",patterns:[600],format:a,length:[16],cvcLength:[3],luhn:!0},{type:"dankort",patterns:[5019],format:a,length:[16],cvcLength:[3],luhn:!0},{type:"visa",patterns:[4],format:a,length:[13,16],cvcLength:[3],luhn:!0},{type:"mastercard",patterns:[51,52,53,54,55,22,23,24,25,26,27],format:a,length:[16],cvcLength:[3],luhn:!0},{type:"amex",patterns:[34,37],format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"dinersclub",patterns:[30,36,38,39],format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",patterns:[60,64,65,622],format:a,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",patterns:[62,88],format:a,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"jcb",patterns:[35],format:a,length:[16],cvcLength:[3],luhn:!0}],e=function(t){var e,n,a,i,o,l,u,s;for(t=(t+"").replace(/\D/g,""),i=0,l=r.length;i<l;i++)for(e=r[i],s=e.patterns,o=0,u=s.length;o<u;o++)if(a=s[o],n=a+"",t.substr(0,n.length)===n)return e},n=function(t){var e,n,a;for(n=0,a=r.length;n<a;n++)if(e=r[n],e.type===t)return e},p=function(t){var e,n,r,a,i,o;for(r=!0,a=0,n=(t+"").split("").reverse(),i=0,o=n.length;i<o;i++)e=n[i],e=parseInt(e,10),(r=!r)&&(e*=2),e>9&&(e-=9),a+=e;return a%10===0},h=function(t){var e;return null!=t.prop("selectionStart")&&t.prop("selectionStart")!==t.prop("selectionEnd")||!(null==("undefined"!=typeof document&&null!==document&&null!=(e=document.selection)?e.createRange:void 0)||!document.selection.createRange().text)},$=function(t,e){var n,r,a,i,o,l;try{r=e.prop("selectionStart")}catch(u){i=u,r=null}if(o=e.val(),e.val(t),null!==r&&e.is(":focus"))return r===o.length&&(r=t.length),o!==t&&(l=o.slice(r-1,+r+1||9e9),n=t.slice(r-1,+r+1||9e9),a=t[r],/\d/.test(a)&&l===""+a+" "&&n===" "+a&&(r+=1)),e.prop("selectionStart",r),e.prop("selectionEnd",r)},m=function(t){var e,n,r,a,i,o,l,u;for(null==t&&(t=""),r="0123456789",a="0123456789",o="",e=t.split(""),l=0,u=e.length;l<u;l++)n=e[l],i=r.indexOf(n),i>-1&&(n=a[i]),o+=n;return o},d=function(e){var n;return n=t(e.currentTarget),setTimeout(function(){var t;return t=n.val(),t=m(t),t=t.replace(/\D/g,""),$(t,n)})},g=function(e){var n;return n=t(e.currentTarget),setTimeout(function(){var e;return e=n.val(),e=m(e),e=t.payment.formatCardNumber(e),$(e,n)})},l=function(n){var r,a,i,o,l,u,s;if(i=String.fromCharCode(n.which),/^\d+$/.test(i)&&(r=t(n.currentTarget),s=r.val(),a=e(s+i),o=(s.replace(/\D/g,"")+i).length,u=16,a&&(u=a.length[a.length.length-1]),!(o>=u||null!=r.prop("selectionStart")&&r.prop("selectionStart")!==s.length)))return l=a&&"amex"===a.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/,l.test(s)?(n.preventDefault(),setTimeout(function(){return r.val(s+" "+i)})):l.test(s+i)?(n.preventDefault(),setTimeout(function(){return r.val(s+i+" ")})):void 0},i=function(e){var n,r;if(n=t(e.currentTarget),r=n.val(),8===e.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s$/.test(r)?(e.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d\s$/,""))})):/\s\d?$/.test(r)?(e.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d$/,""))})):void 0},v=function(e){var n;return n=t(e.currentTarget),setTimeout(function(){var e;return e=n.val(),e=m(e),e=t.payment.formatExpiry(e),$(e,n)})},u=function(e){var n,r,a;if(r=String.fromCharCode(e.which),/^\d+$/.test(r))return n=t(e.currentTarget),a=n.val()+r,/^\d$/.test(a)&&"0"!==a&&"1"!==a?(e.preventDefault(),setTimeout(function(){return n.val("0"+a+" / ")})):/^\d\d$/.test(a)?(e.preventDefault(),setTimeout(function(){var t,e;return t=parseInt(a[0],10),e=parseInt(a[1],10),e>2&&0!==t?n.val("0"+t+" / "+e):n.val(""+a+" / ")})):void 0},s=function(e){var n,r,a;if(r=String.fromCharCode(e.which),/^\d+$/.test(r))return n=t(e.currentTarget),a=n.val(),/^\d\d$/.test(a)?n.val(""+a+" / "):void 0},c=function(e){var n,r,a;if(a=String.fromCharCode(e.which),"/"===a||" "===a)return n=t(e.currentTarget),r=n.val(),/^\d$/.test(r)&&"0"!==r?n.val("0"+r+" / "):void 0},o=function(e){var n,r;if(n=t(e.currentTarget),r=n.val(),8===e.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s\/\s$/.test(r)?(e.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d\s\/\s$/,""))})):void 0},f=function(e){var n;return n=t(e.currentTarget),setTimeout(function(){var t;return t=n.val(),t=m(t),t=t.replace(/\D/g,"").slice(0,4),$(t,n)})},w=function(t){var e;return!(!t.metaKey&&!t.ctrlKey)||32!==t.which&&(0===t.which||(t.which<33||(e=String.fromCharCode(t.which),!!/[\d\s]/.test(e))))},C=function(n){var r,a,i,o;if(r=t(n.currentTarget),i=String.fromCharCode(n.which),/^\d+$/.test(i)&&!h(r))return o=(r.val()+i).replace(/\D/g,""),a=e(o),a?o.length<=a.length[a.length.length-1]:o.length<=16},T=function(e){var n,r,a;if(n=t(e.currentTarget),r=String.fromCharCode(e.which),/^\d+$/.test(r)&&!h(n))return a=n.val()+r,a=a.replace(/\D/g,""),!(a.length>6)&&void 0},y=function(e){var n,r,a;if(n=t(e.currentTarget),r=String.fromCharCode(e.which),/^\d+$/.test(r)&&!h(n))return a=n.val()+r,a.length<=4},D=function(e){var n,a,i,o,l;if(n=t(e.currentTarget),l=n.val(),o=t.payment.cardType(l)||"unknown",!n.hasClass(o))return a=function(){var t,e,n;for(n=[],t=0,e=r.length;t<e;t++)i=r[t],n.push(i.type);return n}(),n.removeClass("unknown"),n.removeClass(a.join(" ")),n.addClass(o),n.toggleClass("identified","unknown"!==o),n.trigger("payment.cardType",o)},t.payment.fn.formatCardCVC=function(){return this.on("keypress",w),this.on("keypress",y),this.on("paste",f),this.on("change",f),this.on("input",f),this},t.payment.fn.formatCardExpiry=function(){return this.on("keypress",w),this.on("keypress",T),this.on("keypress",u),this.on("keypress",c),this.on("keypress",s),this.on("keydown",o),this.on("change",v),this.on("input",v),this},t.payment.fn.formatCardNumber=function(){return this.on("keypress",w),this.on("keypress",C),this.on("keypress",l),this.on("keydown",i),this.on("keyup",D),this.on("paste",g),this.on("change",g),this.on("input",g),this.on("input",D),this},t.payment.fn.restrictNumeric=function(){return this.on("keypress",w),this.on("paste",d),this.on("change",d),this.on("input",d),this},t.payment.fn.cardExpiryVal=function(){return t.payment.cardExpiryVal(t(this).val())},t.payment.cardExpiryVal=function(t){var e,n,r,a;return a=t.split(/[\s\/]+/,2),e=a[0],r=a[1],2===(null!=r?r.length:void 0)&&/^\d+$/.test(r)&&(n=(new Date).getFullYear(),n=n.toString().slice(0,2),r=n+r),e=parseInt(e,10),r=parseInt(r,10),{month:e,year:r}},t.payment.validateCardNumber=function(t){var n,r;return t=(t+"").replace(/\s+|-/g,""),!!/^\d+$/.test(t)&&(n=e(t),!!n&&(r=t.length,k.call(n.length,r)>=0&&(n.luhn===!1||p(t))))},t.payment.validateCardExpiry=function(e,n){var r,a,i;return"object"==typeof e&&"month"in e&&(i=e,e=i.month,n=i.year),!(!e||!n)&&(e=t.trim(e),n=t.trim(n),!!/^\d+$/.test(e)&&(!!/^\d+$/.test(n)&&(1<=e&&e<=12&&(2===n.length&&(n=n<70?"20"+n:"19"+n),4===n.length&&(a=new Date(n,e),r=new Date,a.setMonth(a.getMonth()-1),a.setMonth(a.getMonth()+1,1),a>r)))))},t.payment.validateCardCVC=function(e,r){var a,i;return e=t.trim(e),!!/^\d+$/.test(e)&&(a=n(r),null!=a?(i=e.length,k.call(a.cvcLength,i)>=0):e.length>=3&&e.length<=4)},t.payment.cardType=function(t){var n;return t?(null!=(n=e(t))?n.type:void 0)||null:null},t.payment.formatCardNumber=function(n){var r,a,i,o;return n=n.replace(/\D/g,""),(r=e(n))?(i=r.length[r.length.length-1],n=n.slice(0,i),r.format.global?null!=(o=n.match(r.format))?o.join(" "):void 0:(a=r.format.exec(n),null!=a?(a.shift(),a=t.grep(a,function(t){return t}),a.join(" ")):void 0)):n},t.payment.formatExpiry=function(t){var e,n,r,a;return(n=t.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(e=n[1]||"",r=n[2]||"",a=n[3]||"",a.length>0?r=" / ":" /"===r?(e=e.substring(0,1),r=""):2===e.length||r.length>0?r=" / ":1===e.length&&"0"!==e&&"1"!==e&&(e="0"+e,r=" / "),e+r+a):""}}).call(this);
6
- !function(t,e,i){!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.qtip&&t(jQuery)}(function(s){"use strict";function o(t,e,i,o){this.id=i,this.target=t,this.tooltip=k,this.elements={target:t},this._id=R+"-"+i,this.timers={img:{}},this.options=e,this.plugins={},this.cache={event:{},target:s(),disabled:I,attr:o,onTooltip:I,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=I}function n(t){return t===k||"object"!==s.type(t)}function r(t){return!(s.isFunction(t)||t&&t.attr||t.length||"object"===s.type(t)&&(t.jquery||t.then))}function a(t){var e,i,o,a;return n(t)?I:(n(t.metadata)&&(t.metadata={type:t.metadata}),"content"in t&&(e=t.content,n(e)||e.jquery||e.done?e=t.content={text:i=r(e)?I:e}:i=e.text,"ajax"in e&&(o=e.ajax,a=o&&o.once!==I,delete e.ajax,e.text=function(t,e){var n=i||s(this).attr(e.options.content.attr)||"Loading...",r=s.ajax(s.extend({},o,{context:e})).then(o.success,k,o.error).then(function(t){return t&&a&&e.set("content.text",t),t},function(t,i,s){e.destroyed||0===t.status||e.set("content.text",i+": "+s)});return a?n:(e.set("content.text",n),r)}),"title"in e&&(s.isPlainObject(e.title)&&(e.button=e.title.button,e.title=e.title.text),r(e.title||I)&&(e.title=I))),"position"in t&&n(t.position)&&(t.position={my:t.position,at:t.position}),"show"in t&&n(t.show)&&(t.show=t.show.jquery?{target:t.show}:t.show===W?{ready:W}:{event:t.show}),"hide"in t&&n(t.hide)&&(t.hide=t.hide.jquery?{target:t.hide}:{event:t.hide}),"style"in t&&n(t.style)&&(t.style={classes:t.style}),s.each(V,function(){this.sanitize&&this.sanitize(t)}),t)}function h(t,e){for(var i,s=0,o=t,n=e.split(".");o=o[n[s++]];)s<n.length&&(i=o);return[i||t,n.pop()]}function l(t,e){var i,s,o;for(i in this.checks)for(s in this.checks[i])(o=new RegExp(s,"i").exec(t))&&(e.push(o),("builtin"===i||this.plugins[i])&&this.checks[i][s].apply(this.plugins[i]||this,e))}function c(t){return Y.concat("").join(t?"-"+t+" ":" ")}function d(t,e){return e>0?setTimeout(s.proxy(t,this),e):void t.call(this)}function p(t){this.tooltip.hasClass(tt)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=d.call(this,function(){this.toggle(W,t)},this.options.show.delay))}function u(t){if(!this.tooltip.hasClass(tt)&&!this.destroyed){var e=s(t.relatedTarget),i=e.closest(G)[0]===this.tooltip[0],o=e[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==e[0]&&"mouse"===this.options.position.target&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(i||o))try{t.preventDefault(),t.stopImmediatePropagation()}catch(n){}else this.timers.hide=d.call(this,function(){this.toggle(I,t)},this.options.hide.delay,this)}}function f(t){!this.tooltip.hasClass(tt)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=d.call(this,function(){this.hide(t)},this.options.hide.inactive))}function g(t){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(t)}function m(t,i,o){s(e.body).delegate(t,(i.split?i:i.join("."+R+" "))+"."+R,function(){var t=q.api[s.attr(this,X)];t&&!t.disabled&&o.apply(t,arguments)})}function v(t,i,n){var r,h,l,c,d,p=s(e.body),u=t[0]===e?p:t,f=t.metadata?t.metadata(n.metadata):k,g="html5"===n.metadata.type&&f?f[n.metadata.name]:k,m=t.data(n.metadata.name||"qtipopts");try{m="string"==typeof m?s.parseJSON(m):m}catch(v){}if(c=s.extend(W,{},q.defaults,n,"object"==typeof m?a(m):k,a(g||f)),h=c.position,c.id=i,"boolean"==typeof c.content.text){if(l=t.attr(c.content.attr),c.content.attr===I||!l)return I;c.content.text=l}if(h.container.length||(h.container=p),h.target===I&&(h.target=u),c.show.target===I&&(c.show.target=u),c.show.solo===W&&(c.show.solo=h.container.closest("body")),c.hide.target===I&&(c.hide.target=u),c.position.viewport===W&&(c.position.viewport=h.container),h.container=h.container.eq(0),h.at=new j(h.at,W),h.my=new j(h.my),t.data(R))if(c.overwrite)t.qtip("destroy",!0);else if(c.overwrite===I)return I;return t.attr(H,i),c.suppress&&(d=t.attr("title"))&&t.removeAttr("title").attr(it,d).attr("title",""),r=new o(t,c,i,(!!l)),t.data(R,r),r}function y(t){return t.charAt(0).toUpperCase()+t.slice(1)}function b(t,e){var s,o,n=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+vt.join(n+" ")+n).split(" "),a=0;if(mt[e])return t.css(mt[e]);for(;s=r[a++];)if((o=t.css(s))!==i)return mt[e]=s,o}function w(t,e){return Math.ceil(parseFloat(b(t,e)))}function _(t,e){this._ns="tip",this.options=e,this.offset=e.offset,this.size=[e.width,e.height],this.init(this.qtip=t)}function x(t,e){this.options=e,this._ns="-modal",this.init(this.qtip=t)}function C(t,e){this._ns="ie6",this.init(this.qtip=t)}var q,T,j,z,M,W=!0,I=!1,k=null,E="x",S="y",A="width",L="height",P="top",D="left",B="bottom",F="right",N="center",O="flipinvert",$="shift",V={},R="qtip",H="data-hasqtip",X="data-qtip-id",Y=["ui-widget","ui-tooltip"],G="."+R,U="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),Q=R+"-fixed",J=R+"-default",K=R+"-focus",Z=R+"-hover",tt=R+"-disabled",et="_replacedByqTip",it="oldtitle",st={ie:function(){for(var t=4,i=e.createElement("div");(i.innerHTML="<!--[if gt IE "+t+"]><i></i><![endif]-->")&&i.getElementsByTagName("i")[0];t+=1);return t>4?t:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||I};T=o.prototype,T._when=function(t){return s.when.apply(s,t)},T.render=function(t){if(this.rendered||this.destroyed)return this;var e,i=this,o=this.options,n=this.cache,r=this.elements,a=o.content.text,h=o.content.title,l=o.content.button,c=o.position,d=("."+this._id+" ",[]);return s.attr(this.target[0],"aria-describedby",this._id),n.posClass=this._createPosClass((this.position={my:c.my,at:c.at}).my),this.tooltip=r.tooltip=e=s("<div/>",{id:this._id,"class":[R,J,o.style.classes,n.posClass].join(" "),width:o.style.width||"",height:o.style.height||"",tracking:"mouse"===c.target&&c.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":I,"aria-describedby":this._id+"-content","aria-hidden":W}).toggleClass(tt,this.disabled).attr(X,this.id).data(R,this).appendTo(c.container).append(r.content=s("<div />",{"class":R+"-content",id:this._id+"-content","aria-atomic":W})),this.rendered=-1,this.positioning=W,h&&(this._createTitle(),s.isFunction(h)||d.push(this._updateTitle(h,I))),l&&this._createButton(),s.isFunction(a)||d.push(this._updateContent(a,I)),this.rendered=W,this._setWidget(),s.each(V,function(t){var e;"render"===this.initialize&&(e=this(i))&&(i.plugins[t]=e)}),this._unassignEvents(),this._assignEvents(),this._when(d).then(function(){i._trigger("render"),i.positioning=I,i.hiddenDuringWait||!o.show.ready&&!t||i.toggle(W,n.event,I),i.hiddenDuringWait=I}),q.api[this.id]=this,this},T.destroy=function(t){function e(){if(!this.destroyed){this.destroyed=W;var t,e=this.target,i=e.attr(it);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),s.each(this.plugins,function(t){this.destroy&&this.destroy()});for(t in this.timers)clearTimeout(this.timers[t]);e.removeData(R).removeAttr(X).removeAttr(H).removeAttr("aria-describedby"),this.options.suppress&&i&&e.attr("title",i).removeAttr(it),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=k,delete q.api[this.id]}}return this.destroyed?this.target:(t===W&&"hide"!==this.triggering||!this.rendered?e.call(this):(this.tooltip.one("tooltiphidden",s.proxy(e,this)),!this.triggering&&this.hide()),this.target)},z=T.checks={builtin:{"^id$":function(t,e,i,o){var n=i===W?q.nextid:i,r=R+"-"+n;n!==I&&n.length>0&&!s("#"+r).length?(this._id=r,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):t[e]=o},"^prerender":function(t,e,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(t,e,i){this._updateContent(i)},"^content.attr$":function(t,e,i,s){this.options.content.text===this.target.attr(s)&&this._updateContent(this.target.attr(i))},"^content.title$":function(t,e,i){return i?(i&&!this.elements.title&&this._createTitle(),void this._updateTitle(i)):this._removeTitle()},"^content.button$":function(t,e,i){this._updateButton(i)},"^content.title.(text|button)$":function(t,e,i){this.set("content."+e,i)},"^position.(my|at)$":function(t,e,i){"string"==typeof i&&(this.position[e]=t[e]=new j(i,"at"===e))},"^position.container$":function(t,e,i){this.rendered&&this.tooltip.appendTo(i)},"^show.ready$":function(t,e,i){i&&(!this.rendered&&this.render(W)||this.toggle(W))},"^style.classes$":function(t,e,i,s){this.rendered&&this.tooltip.removeClass(s).addClass(i)},"^style.(width|height)":function(t,e,i){this.rendered&&this.tooltip.css(e,i)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(t,e,i){this.rendered&&this.tooltip.toggleClass(J,!!i)},"^events.(render|show|move|hide|focus|blur)$":function(t,e,i){this.rendered&&this.tooltip[(s.isFunction(i)?"":"un")+"bind"]("tooltip"+e,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var t=this.options.position;this.tooltip.attr("tracking","mouse"===t.target&&t.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},T.get=function(t){if(this.destroyed)return this;var e=h(this.options,t.toLowerCase()),i=e[0][e[1]];return i.precedance?i.string():i};var ot=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,nt=/^prerender|show\.ready/i;T.set=function(t,e){if(this.destroyed)return this;var i,o=this.rendered,n=I,r=this.options;this.checks;return"string"==typeof t?(i=t,t={},t[i]=e):t=s.extend({},t),s.each(t,function(e,i){if(o&&nt.test(e))return void delete t[e];var a,l=h(r,e.toLowerCase());a=l[0][l[1]],l[0][l[1]]=i&&i.nodeType?s(i):i,n=ot.test(e)||n,t[e]=[l[0],l[1],i,a]}),a(r),this.positioning=W,s.each(t,s.proxy(l,this)),this.positioning=I,this.rendered&&this.tooltip[0].offsetWidth>0&&n&&this.reposition("mouse"===r.position.target?k:this.cache.event),this},T._update=function(t,e,i){var o=this,n=this.cache;return this.rendered&&t?(s.isFunction(t)&&(t=t.call(this.elements.target,n.event,this)||""),s.isFunction(t.then)?(n.waiting=W,t.then(function(t){return n.waiting=I,o._update(t,e)},k,function(t){return o._update(t,e)})):t===I||!t&&""!==t?I:(t.jquery&&t.length>0?e.empty().append(t.css({display:"block",visibility:"visible"})):e.html(t),this._waitForContent(e).then(function(t){o.rendered&&o.tooltip[0].offsetWidth>0&&o.reposition(n.event,!t.length)}))):I},T._waitForContent=function(t){var e=this.cache;return e.waiting=W,(s.fn.imagesLoaded?t.imagesLoaded():s.Deferred().resolve([])).done(function(){e.waiting=I}).promise()},T._updateContent=function(t,e){this._update(t,this.elements.content,e)},T._updateTitle=function(t,e){this._update(t,this.elements.title,e)===I&&this._removeTitle(I)},T._createTitle=function(){var t=this.elements,e=this._id+"-title";t.titlebar&&this._removeTitle(),t.titlebar=s("<div />",{"class":R+"-titlebar "+(this.options.style.widget?c("header"):"")}).append(t.title=s("<div />",{id:e,"class":R+"-title","aria-atomic":W})).insertBefore(t.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(t){s(this).toggleClass("ui-state-active ui-state-focus","down"===t.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(t){s(this).toggleClass("ui-state-hover","mouseover"===t.type)}),this.options.content.button&&this._createButton()},T._removeTitle=function(t){var e=this.elements;e.title&&(e.titlebar.remove(),e.titlebar=e.title=e.button=k,t!==I&&this.reposition())},T._createPosClass=function(t){return R+"-pos-"+(t||this.options.position.my).abbrev()},T.reposition=function(i,o){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=W;var n,r,a,h,l=this.cache,c=this.tooltip,d=this.options.position,p=d.target,u=d.my,f=d.at,g=d.viewport,m=d.container,v=d.adjust,y=v.method.split(" "),b=c.outerWidth(I),w=c.outerHeight(I),_=0,x=0,C=c.css("position"),q={left:0,top:0},T=c[0].offsetWidth>0,j=i&&"scroll"===i.type,z=s(t),M=m[0].ownerDocument,k=this.mouse;if(s.isArray(p)&&2===p.length)f={x:D,y:P},q={left:p[0],top:p[1]};else if("mouse"===p)f={x:D,y:P},(!v.mouse||this.options.hide.distance)&&l.origin&&l.origin.pageX?i=l.origin:!i||i&&("resize"===i.type||"scroll"===i.type)?i=l.event:k&&k.pageX&&(i=k),"static"!==C&&(q=m.offset()),M.body.offsetWidth!==(t.innerWidth||M.documentElement.clientWidth)&&(r=s(e.body).offset()),q={left:i.pageX-q.left+(r&&r.left||0),top:i.pageY-q.top+(r&&r.top||0)},v.mouse&&j&&k&&(q.left-=(k.scrollX||0)-z.scrollLeft(),q.top-=(k.scrollY||0)-z.scrollTop());else{if("event"===p?i&&i.target&&"scroll"!==i.type&&"resize"!==i.type?l.target=s(i.target):i.target||(l.target=this.elements.target):"event"!==p&&(l.target=s(p.jquery?p:this.elements.target)),p=l.target,p=s(p).eq(0),0===p.length)return this;p[0]===e||p[0]===t?(_=st.iOS?t.innerWidth:p.width(),x=st.iOS?t.innerHeight:p.height(),p[0]===t&&(q={top:(g||p).scrollTop(),left:(g||p).scrollLeft()})):V.imagemap&&p.is("area")?n=V.imagemap(this,p,f,V.viewport?y:I):V.svg&&p&&p[0].ownerSVGElement?n=V.svg(this,p,f,V.viewport?y:I):(_=p.outerWidth(I),x=p.outerHeight(I),q=p.offset()),n&&(_=n.width,x=n.height,r=n.offset,q=n.position),q=this.reposition.offset(p,q,m),(st.iOS>3.1&&st.iOS<4.1||st.iOS>=4.3&&st.iOS<4.33||!st.iOS&&"fixed"===C)&&(q.left-=z.scrollLeft(),q.top-=z.scrollTop()),(!n||n&&n.adjustable!==I)&&(q.left+=f.x===F?_:f.x===N?_/2:0,q.top+=f.y===B?x:f.y===N?x/2:0)}return q.left+=v.x+(u.x===F?-b:u.x===N?-b/2:0),q.top+=v.y+(u.y===B?-w:u.y===N?-w/2:0),V.viewport?(a=q.adjusted=V.viewport(this,q,d,_,x,b,w),r&&a.left&&(q.left+=r.left),r&&a.top&&(q.top+=r.top),a.my&&(this.position.my=a.my)):q.adjusted={left:0,top:0},l.posClass!==(h=this._createPosClass(this.position.my))&&c.removeClass(l.posClass).addClass(l.posClass=h),this._trigger("move",[q,g.elem||g],i)?(delete q.adjusted,o===I||!T||isNaN(q.left)||isNaN(q.top)||"mouse"===p||!s.isFunction(d.effect)?c.css(q):s.isFunction(d.effect)&&(d.effect.call(c,this,s.extend({},q)),c.queue(function(t){s(this).css({opacity:"",height:""}),st.ie&&this.style.removeAttribute("filter"),t()})),this.positioning=I,this):this},T.reposition.offset=function(t,i,o){function n(t,e){i.left+=e*t.scrollLeft(),i.top+=e*t.scrollTop()}if(!o[0])return i;var r,a,h,l,c=s(t[0].ownerDocument),d=!!st.ie&&"CSS1Compat"!==e.compatMode,p=o[0];do"static"!==(a=s.css(p,"position"))&&("fixed"===a?(h=p.getBoundingClientRect(),n(c,-1)):(h=s(p).position(),h.left+=parseFloat(s.css(p,"borderLeftWidth"))||0,h.top+=parseFloat(s.css(p,"borderTopWidth"))||0),i.left-=h.left+(parseFloat(s.css(p,"marginLeft"))||0),i.top-=h.top+(parseFloat(s.css(p,"marginTop"))||0),r||"hidden"===(l=s.css(p,"overflow"))||"visible"===l||(r=s(p)));while(p=p.offsetParent);return r&&(r[0]!==c[0]||d)&&n(r,1),i};var rt=(j=T.reposition.Corner=function(t,e){t=(""+t).replace(/([A-Z])/," $1").replace(/middle/gi,N).toLowerCase(),this.x=(t.match(/left|right/i)||t.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(t.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!e;var i=t.charAt(0);this.precedance="t"===i||"b"===i?S:E}).prototype;rt.invert=function(t,e){this[t]=this[t]===D?F:this[t]===F?D:e||this[t]},rt.string=function(t){var e=this.x,i=this.y,s=e!==i?"center"===e||"center"!==i&&(this.precedance===S||this.forceY)?[i,e]:[e,i]:[e];return t!==!1?s.join(" "):s},rt.abbrev=function(){var t=this.string(!1);return t[0].charAt(0)+(t[1]&&t[1].charAt(0)||"")},rt.clone=function(){return new j(this.string(),this.forceY)},T.toggle=function(t,i){var o=this.cache,n=this.options,r=this.tooltip;if(i){if(/over|enter/.test(i.type)&&o.event&&/out|leave/.test(o.event.type)&&n.show.target.add(i.target).length===n.show.target.length&&r.has(i.relatedTarget).length)return this;o.event=s.event.fix(i)}if(this.waiting&&!t&&(this.hiddenDuringWait=W),!this.rendered)return t?this.render(1):this;if(this.destroyed||this.disabled)return this;var a,h,l,c=t?"show":"hide",d=this.options[c],p=(this.options[t?"hide":"show"],this.options.position),u=this.options.content,f=this.tooltip.css("width"),g=this.tooltip.is(":visible"),m=t||1===d.target.length,v=!i||d.target.length<2||o.target[0]===i.target;return(typeof t).search("boolean|number")&&(t=!g),a=!r.is(":animated")&&g===t&&v,h=a?k:!!this._trigger(c,[90]),this.destroyed?this:(h!==I&&t&&this.focus(i),!h||a?this:(s.attr(r[0],"aria-hidden",!t),t?(this.mouse&&(o.origin=s.event.fix(this.mouse)),s.isFunction(u.text)&&this._updateContent(u.text,I),s.isFunction(u.title)&&this._updateTitle(u.title,I),!M&&"mouse"===p.target&&p.adjust.mouse&&(s(e).bind("mousemove."+R,this._storeMouse),M=W),f||r.css("width",r.outerWidth(I)),this.reposition(i,arguments[2]),f||r.css("width",""),d.solo&&("string"==typeof d.solo?s(d.solo):s(G,d.solo)).not(r).not(d.target).qtip("hide",s.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete o.origin,M&&!s(G+'[tracking="true"]:visible',d.solo).not(r).length&&(s(e).unbind("mousemove."+R),M=I),this.blur(i)),l=s.proxy(function(){t?(st.ie&&r[0].style.removeAttribute("filter"),r.css("overflow",""),"string"==typeof d.autofocus&&s(this.options.show.autofocus,r).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):r.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(t?"visible":"hidden")},this),d.effect===I||m===I?(r[c](),l()):s.isFunction(d.effect)?(r.stop(1,1),d.effect.call(r,this),r.queue("fx",function(t){l(),t()})):r.fadeTo(90,t?1:0,l),t&&d.target.trigger("qtip-"+this.id+"-inactive"),this))},T.show=function(t){return this.toggle(W,t)},T.hide=function(t){return this.toggle(I,t)},T.focus=function(t){if(!this.rendered||this.destroyed)return this;var e=s(G),i=this.tooltip,o=parseInt(i[0].style.zIndex,10),n=q.zindex+e.length;return i.hasClass(K)||this._trigger("focus",[n],t)&&(o!==n&&(e.each(function(){this.style.zIndex>o&&(this.style.zIndex=this.style.zIndex-1)}),e.filter("."+K).qtip("blur",t)),i.addClass(K)[0].style.zIndex=n),this},T.blur=function(t){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(K),this._trigger("blur",[this.tooltip.css("zIndex")],t),this)},T.disable=function(t){return this.destroyed?this:("toggle"===t?t=!(this.rendered?this.tooltip.hasClass(tt):this.disabled):"boolean"!=typeof t&&(t=W),this.rendered&&this.tooltip.toggleClass(tt,t).attr("aria-disabled",t),this.disabled=!!t,this)},T.enable=function(){return this.disable(I)},T._createButton=function(){var t=this,e=this.elements,i=e.tooltip,o=this.options.content.button,n="string"==typeof o,r=n?o:"Close tooltip";e.button&&e.button.remove(),o.jquery?e.button=o:e.button=s("<a />",{"class":"qtip-close "+(this.options.style.widget?"":R+"-icon"),title:r,"aria-label":r}).prepend(s("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"})),e.button.appendTo(e.titlebar||i).attr("role","button").click(function(e){return i.hasClass(tt)||t.hide(e),I})},T._updateButton=function(t){if(!this.rendered)return I;var e=this.elements.button;t?this._createButton():e.remove()},T._setWidget=function(){var t=this.options.style.widget,e=this.elements,i=e.tooltip,s=i.hasClass(tt);i.removeClass(tt),tt=t?"ui-state-disabled":"qtip-disabled",i.toggleClass(tt,s),i.toggleClass("ui-helper-reset "+c(),t).toggleClass(J,this.options.style.def&&!t),e.content&&e.content.toggleClass(c("content"),t),e.titlebar&&e.titlebar.toggleClass(c("header"),t),e.button&&e.button.toggleClass(R+"-icon",!t)},T._storeMouse=function(t){return(this.mouse=s.event.fix(t)).type="mousemove",this},T._bind=function(t,e,i,o,n){if(t&&i&&e.length){var r="."+this._id+(o?"-"+o:"");return s(t).bind((e.split?e:e.join(r+" "))+r,s.proxy(i,n||this)),this}},T._unbind=function(t,e){return t&&s(t).unbind("."+this._id+(e?"-"+e:"")),this},T._trigger=function(t,e,i){var o=s.Event("tooltip"+t);return o.originalEvent=i&&s.extend({},i)||this.cache.event||k,this.triggering=t,this.tooltip.trigger(o,[this].concat(e||[])),this.triggering=I,!o.isDefaultPrevented()},T._bindEvents=function(t,e,i,o,n,r){var a=i.filter(o).add(o.filter(i)),h=[];a.length&&(s.each(e,function(e,i){var o=s.inArray(i,t);o>-1&&h.push(t.splice(o,1)[0])}),h.length&&(this._bind(a,h,function(t){var e=!!this.rendered&&this.tooltip[0].offsetWidth>0;(e?r:n).call(this,t)}),i=i.not(a),o=o.not(a))),this._bind(i,t,n),this._bind(o,e,r)},T._assignInitialEvents=function(t){function e(t){return this.disabled||this.destroyed?I:(this.cache.event=t&&s.event.fix(t),this.cache.target=t&&s(t.target),clearTimeout(this.timers.show),void(this.timers.show=d.call(this,function(){this.render("object"==typeof t||i.show.ready)},i.prerender?0:i.show.delay)))}var i=this.options,o=i.show.target,n=i.hide.target,r=i.show.event?s.trim(""+i.show.event).split(" "):[],a=i.hide.event?s.trim(""+i.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(t){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(i.show.event)&&!/mouse(out|leave)/i.test(i.hide.event)&&a.push("mouseleave"),this._bind(o,"mousemove",function(t){this._storeMouse(t),this.cache.onTarget=W}),this._bindEvents(r,a,o,n,e,function(){return this.timers?void clearTimeout(this.timers.show):I}),(i.show.ready||i.prerender)&&e.call(this,t)},T._assignEvents=function(){var i=this,o=this.options,n=o.position,r=this.tooltip,a=o.show.target,h=o.hide.target,l=n.container,c=n.viewport,d=s(e),m=(s(e.body),s(t)),v=o.show.event?s.trim(""+o.show.event).split(" "):[],y=o.hide.event?s.trim(""+o.hide.event).split(" "):[];s.each(o.events,function(t,e){i._bind(r,"toggle"===t?["tooltipshow","tooltiphide"]:["tooltip"+t],e,null,r)}),/mouse(out|leave)/i.test(o.hide.event)&&"window"===o.hide.leave&&this._bind(d,["mouseout","blur"],function(t){/select|option/.test(t.target.nodeName)||t.relatedTarget||this.hide(t)}),o.hide.fixed?h=h.add(r.addClass(Q)):/mouse(over|enter)/i.test(o.show.event)&&this._bind(h,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+o.hide.event).indexOf("unfocus")>-1&&this._bind(l.closest("html"),["mousedown","touchstart"],function(t){var e=s(t.target),i=this.rendered&&!this.tooltip.hasClass(tt)&&this.tooltip[0].offsetWidth>0,o=e.parents(G).filter(this.tooltip[0]).length>0;e[0]===this.target[0]||e[0]===this.tooltip[0]||o||this.target.has(e[0]).length||!i||this.hide(t)}),"number"==typeof o.hide.inactive&&(this._bind(a,"qtip-"+this.id+"-inactive",f,"inactive"),this._bind(h.add(r),q.inactiveEvents,f)),this._bindEvents(v,y,a,h,p,u),this._bind(a.add(r),"mousemove",function(t){if("number"==typeof o.hide.distance){var e=this.cache.origin||{},i=this.options.hide.distance,s=Math.abs;(s(t.pageX-e.pageX)>=i||s(t.pageY-e.pageY)>=i)&&this.hide(t)}this._storeMouse(t)}),"mouse"===n.target&&n.adjust.mouse&&(o.hide.event&&this._bind(a,["mouseenter","mouseleave"],function(t){return this.cache?void(this.cache.onTarget="mouseenter"===t.type):I}),this._bind(d,"mousemove",function(t){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(tt)&&this.tooltip[0].offsetWidth>0&&this.reposition(t)})),(n.adjust.resize||c.length)&&this._bind(s.event.special.resize?c:m,"resize",g),n.adjust.scroll&&this._bind(m.add(n.container),"scroll",g)},T._unassignEvents=function(){var i=this.options,o=i.show.target,n=i.hide.target,r=s.grep([this.elements.target[0],this.rendered&&this.tooltip[0],i.position.container[0],i.position.viewport[0],i.position.container.closest("html")[0],t,e],function(t){return"object"==typeof t});o&&o.toArray&&(r=r.concat(o.toArray())),n&&n.toArray&&(r=r.concat(n.toArray())),this._unbind(r)._unbind(r,"destroy")._unbind(r,"inactive")},s(function(){m(G,["mouseenter","mouseleave"],function(t){var e="mouseenter"===t.type,i=s(t.currentTarget),o=s(t.relatedTarget||t.target),n=this.options;e?(this.focus(t),i.hasClass(Q)&&!i.hasClass(tt)&&clearTimeout(this.timers.hide)):"mouse"===n.position.target&&n.position.adjust.mouse&&n.hide.event&&n.show.target&&!o.closest(n.show.target[0]).length&&this.hide(t),i.toggleClass(Z,e)}),m("["+X+"]",U,f)}),q=s.fn.qtip=function(t,e,o){var n=(""+t).toLowerCase(),r=k,h=s.makeArray(arguments).slice(1),l=h[h.length-1],c=this[0]?s.data(this[0],R):k;return!arguments.length&&c||"api"===n?c:"string"==typeof t?(this.each(function(){var t=s.data(this,R);if(!t)return W;if(l&&l.timeStamp&&(t.cache.event=l),!e||"option"!==n&&"options"!==n)t[n]&&t[n].apply(t,h);else{if(o===i&&!s.isPlainObject(e))return r=t.get(e),I;t.set(e,o)}}),r!==k?r:this):"object"!=typeof t&&arguments.length?void 0:(c=a(s.extend(W,{},t)),this.each(function(t){var e,i;return i=s.isArray(c.id)?c.id[t]:c.id,i=!i||i===I||i.length<1||q.api[i]?q.nextid++:i,e=v(s(this),i,c),e===I?W:(q.api[i]=e,s.each(V,function(){"initialize"===this.initialize&&this(e)}),void e._assignInitialEvents(l))}))},s.qtip=o,q.api={},s.each({attr:function(t,e){if(this.length){var i=this[0],o="title",n=s.data(i,"qtip");if(t===o&&n&&"object"==typeof n&&n.options.suppress)return arguments.length<2?s.attr(i,it):(n&&n.options.content.attr===o&&n.cache.attr&&n.set("content.text",e),this.attr(it,e))}return s.fn["attr"+et].apply(this,arguments)},clone:function(t){var e=(s([]),s.fn["clone"+et].apply(this,arguments));return t||e.filter("["+it+"]").attr("title",function(){return s.attr(this,it)}).removeAttr(it),e}},function(t,e){if(!e||s.fn[t+et])return W;var i=s.fn[t+et]=s.fn[t];s.fn[t]=function(){return e.apply(this,arguments)||i.apply(this,arguments)}}),s.ui||(s["cleanData"+et]=s.cleanData,s.cleanData=function(t){for(var e,i=0;(e=s(t[i])).length;i++)if(e.attr(H))try{e.triggerHandler("removeqtip")}catch(o){}s["cleanData"+et].apply(this,arguments)}),q.version="2.2.1",q.nextid=0,q.inactiveEvents=U,q.zindex=15e3,q.defaults={prerender:I,id:I,overwrite:W,suppress:W,content:{text:W,attr:"title",title:I,button:I},position:{my:"top left",at:"bottom right",target:I,container:I,viewport:I,adjust:{x:0,y:0,mouse:W,scroll:W,resize:W,method:"flipinvert flipinvert"},effect:function(t,e,i){s(this).animate(e,{duration:200,queue:I})}},show:{target:I,event:"mouseenter",effect:W,delay:90,solo:I,ready:I,autofocus:I},hide:{target:I,event:"mouseleave",effect:W,delay:0,fixed:I,inactive:I,leave:"window",distance:I},style:{classes:"",widget:I,width:I,height:I,def:W},events:{render:k,move:k,show:k,hide:k,toggle:k,visible:k,hidden:k,focus:k,blur:k}};var at,ht="margin",lt="border",ct="color",dt="background-color",pt="transparent",ut=" !important",ft=!!e.createElement("canvas").getContext,gt=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,mt={},vt=["Webkit","O","Moz","ms"];if(ft)var yt=t.devicePixelRatio||1,bt=function(){var t=e.createElement("canvas").getContext("2d");return t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||1}(),wt=yt/bt;else var _t=function(t,e,i){return"<qtipvml:"+t+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(e||"")+' style="behavior: url(#default#VML); '+(i||"")+'" />'};s.extend(_.prototype,{init:function(t){var e,i;i=this.element=t.elements.tip=s("<div />",{"class":R+"-tip"}).prependTo(t.tooltip),ft?(e=s("<canvas />").appendTo(this.element)[0].getContext("2d"),e.lineJoin="miter",e.miterLimit=1e5,e.save()):(e=_t("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(e+e),t._bind(s("*",i).add(i),["click","mousedown"],function(t){t.stopPropagation()},this._ns)),t._bind(t.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(t){var e=this.qtip.elements.titlebar;return e&&(t.y===P||t.y===N&&this.element.position().top+this.size[1]/2+this.options.offset<e.outerHeight(W))},_parseCorner:function(t){var e=this.qtip.options.position.my;return t===I||e===I?t=I:t===W?t=new j(e.string()):t.string||(t=new j(t),t.fixed=W),t},_parseWidth:function(t,e,i){var s=this.qtip.elements,o=lt+y(e)+"Width";return(i?w(i,o):w(s.content,o)||w(this._useTitle(t)&&s.titlebar||s.content,o)||w(s.tooltip,o))||0},_parseRadius:function(t){var e=this.qtip.elements,i=lt+y(t.y)+y(t.x)+"Radius";return st.ie<9?0:w(this._useTitle(t)&&e.titlebar||e.content,i)||w(e.tooltip,i)||0},_invalidColour:function(t,e,i){var s=t.css(e);return!s||i&&s===t.css(i)||gt.test(s)?I:s},_parseColours:function(t){var e=this.qtip.elements,i=this.element.css("cssText",""),o=lt+y(t[t.precedance])+y(ct),n=this._useTitle(t)&&e.titlebar||e.content,r=this._invalidColour,a=[];return a[0]=r(i,dt)||r(n,dt)||r(e.content,dt)||r(e.tooltip,dt)||i.css(dt),a[1]=r(i,o,ct)||r(n,o,ct)||r(e.content,o,ct)||r(e.tooltip,o,ct)||e.tooltip.css(o),s("*",i).add(i).css("cssText",dt+":"+pt+ut+";"+lt+":0"+ut+";"),a},_calculateSize:function(t){var e,i,s,o=t.precedance===S,n=this.options.width,r=this.options.height,a="c"===t.abbrev(),h=(o?n:r)*(a?.5:1),l=Math.pow,c=Math.round,d=Math.sqrt(l(h,2)+l(r,2)),p=[this.border/h*d,this.border/r*d];return p[2]=Math.sqrt(l(p[0],2)-l(this.border,2)),p[3]=Math.sqrt(l(p[1],2)-l(this.border,2)),e=d+p[2]+p[3]+(a?0:p[0]),i=e/d,s=[c(i*n),c(i*r)],o?s:s.reverse()},_calculateTip:function(t,e,i){i=i||1,e=e||this.size;var s=e[0]*i,o=e[1]*i,n=Math.ceil(s/2),r=Math.ceil(o/2),a={br:[0,0,s,o,s,0],bl:[0,0,s,0,0,o],tr:[0,o,s,0,s,o],tl:[0,0,0,o,s,o],tc:[0,o,n,0,s,o],bc:[0,0,s,0,n,o],rc:[0,0,s,r,0,o],lc:[s,0,s,o,0,r]};return a.lt=a.br,a.rt=a.bl,a.lb=a.tr,a.rb=a.tl,a[t.abbrev()]},_drawCoords:function(t,e){t.beginPath(),t.moveTo(e[0],e[1]),t.lineTo(e[2],e[3]),t.lineTo(e[4],e[5]),t.closePath()},create:function(){var t=this.corner=(ft||st.ie)&&this._parseCorner(this.options.corner);return(this.enabled=!!this.corner&&"c"!==this.corner.abbrev())&&(this.qtip.cache.corner=t.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(e,i){if(!this.enabled)return this;var o,n,r,a,h,l,c,d,p=this.qtip.elements,u=this.element,f=u.children(),g=this.options,m=this.size,v=g.mimic,y=Math.round;e||(e=this.qtip.cache.corner||this.corner),v===I?v=e:(v=new j(v),v.precedance=e.precedance,"inherit"===v.x?v.x=e.x:"inherit"===v.y?v.y=e.y:v.x===v.y&&(v[e.precedance]=e[e.precedance])),n=v.precedance,e.precedance===E?this._swapDimensions():this._resetDimensions(),o=this.color=this._parseColours(e),o[1]!==pt?(d=this.border=this._parseWidth(e,e[e.precedance]),g.border&&d<1&&!gt.test(o[1])&&(o[0]=o[1]),this.border=d=g.border!==W?g.border:d):this.border=d=0,c=this.size=this._calculateSize(e),u.css({width:c[0],height:c[1],lineHeight:c[1]+"px"}),l=e.precedance===S?[y(v.x===D?d:v.x===F?c[0]-m[0]-d:(c[0]-m[0])/2),y(v.y===P?c[1]-m[1]:0)]:[y(v.x===D?c[0]-m[0]:0),y(v.y===P?d:v.y===B?c[1]-m[1]-d:(c[1]-m[1])/2)],ft?(r=f[0].getContext("2d"),r.restore(),r.save(),r.clearRect(0,0,6e3,6e3),a=this._calculateTip(v,m,wt),h=this._calculateTip(v,this.size,wt),f.attr(A,c[0]*wt).attr(L,c[1]*wt),f.css(A,c[0]).css(L,c[1]),this._drawCoords(r,h),r.fillStyle=o[1],r.fill(),r.translate(l[0]*wt,l[1]*wt),this._drawCoords(r,a),r.fillStyle=o[0],r.fill()):(a=this._calculateTip(v),a="m"+a[0]+","+a[1]+" l"+a[2]+","+a[3]+" "+a[4]+","+a[5]+" xe",l[2]=d&&/^(r|b)/i.test(e.string())?8===st.ie?2:1:0,f.css({coordsize:c[0]+d+" "+(c[1]+d),antialias:""+(v.string().indexOf(N)>-1),left:l[0]-l[2]*Number(n===E),top:l[1]-l[2]*Number(n===S),width:c[0]+d,height:c[1]+d}).each(function(t){var e=s(this);e[e.prop?"prop":"attr"]({coordsize:c[0]+d+" "+(c[1]+d),path:a,fillcolor:o[0],filled:!!t,stroked:!t}).toggle(!(!d&&!t)),!t&&e.html(_t("stroke",'weight="'+2*d+'px" color="'+o[1]+'" miterlimit="1000" joinstyle="miter"'))})),t.opera&&setTimeout(function(){p.tip.css({display:"inline-block",visibility:"visible"})},1),i!==I&&this.calculate(e,c)},calculate:function(t,e){if(!this.enabled)return I;var i,o,n=this,r=this.qtip.elements,a=this.element,h=this.options.offset,l=(r.tooltip.hasClass("ui-widget"),
7
- {});return t=t||this.corner,i=t.precedance,e=e||this._calculateSize(t),o=[t.x,t.y],i===E&&o.reverse(),s.each(o,function(s,o){var a,c,d;o===N?(a=i===S?D:P,l[a]="50%",l[ht+"-"+a]=-Math.round(e[i===S?0:1]/2)+h):(a=n._parseWidth(t,o,r.tooltip),c=n._parseWidth(t,o,r.content),d=n._parseRadius(t),l[o]=Math.max(-n.border,s?c:h+(d>a?d:-a)))}),l[t[i]]-=e[i===E?0:1],a.css({margin:"",top:"",bottom:"",left:"",right:""}).css(l),l},reposition:function(t,e,s,o){function n(t,e,i,s,o){t===$&&c.precedance===e&&d[s]&&c[i]!==N?c.precedance=c.precedance===E?S:E:t!==$&&d[s]&&(c[e]=c[e]===N?d[s]>0?s:o:c[e]===s?o:s)}function r(t,e,o){c[t]===N?m[ht+"-"+e]=g[t]=a[ht+"-"+e]-d[e]:(h=a[o]!==i?[d[e],-a[e]]:[-d[e],a[e]],(g[t]=Math.max(h[0],h[1]))>h[0]&&(s[e]-=d[e],g[e]=I),m[a[o]!==i?o:e]=g[t])}if(this.enabled){var a,h,l=e.cache,c=this.corner.clone(),d=s.adjusted,p=e.options.position.adjust.method.split(" "),u=p[0],f=p[1]||p[0],g={left:I,top:I,x:0,y:0},m={};this.corner.fixed!==W&&(n(u,E,S,D,F),n(f,S,E,P,B),c.string()===l.corner.string()&&l.cornerTop===d.top&&l.cornerLeft===d.left||this.update(c,I)),a=this.calculate(c),a.right!==i&&(a.left=-a.right),a.bottom!==i&&(a.top=-a.bottom),a.user=this.offset,(g.left=u===$&&!!d.left)&&r(E,D,F),(g.top=f===$&&!!d.top)&&r(S,P,B),this.element.css(m).toggle(!(g.x&&g.y||c.x===N&&g.y||c.y===N&&g.x)),s.left-=a.left.charAt?a.user:u!==$||g.top||!g.left&&!g.top?a.left+this.border:0,s.top-=a.top.charAt?a.user:f!==$||g.left||!g.left&&!g.top?a.top+this.border:0,l.cornerLeft=d.left,l.cornerTop=d.top,l.corner=c.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),at=V.tip=function(t){return new _(t,t.options.style.tip)},at.initialize="render",at.sanitize=function(t){if(t.style&&"tip"in t.style){var e=t.style.tip;"object"!=typeof e&&(e=t.style.tip={corner:e}),/string|boolean/i.test(typeof e.corner)||(e.corner=W)}},z.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(t){this.size=[t.width,t.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},s.extend(W,q.defaults,{style:{tip:{corner:W,mimic:I,width:6,height:6,border:W,offset:0}}});var xt,Ct,qt="qtip-modal",Tt="."+qt;Ct=function(){function t(t){if(s.expr[":"].focusable)return s.expr[":"].focusable;var e,i,o,n=!isNaN(s.attr(t,"tabindex")),r=t.nodeName&&t.nodeName.toLowerCase();return"area"===r?(e=t.parentNode,i=e.name,!(!t.href||!i||"map"!==e.nodeName.toLowerCase())&&(o=s("img[usemap=#"+i+"]")[0],!!o&&o.is(":visible"))):/input|select|textarea|button|object/.test(r)?!t.disabled:"a"===r?t.href||n:n}function i(t){c.length<1&&t.length?t.not("body").blur():c.first().focus()}function o(t){if(h.is(":visible")){var e,o=s(t.target),a=n.tooltip,l=o.closest(G);e=l.length<1?I:parseInt(l[0].style.zIndex,10)>parseInt(a[0].style.zIndex,10),e||o.closest(G)[0]===a[0]||i(o),r=t.target===c[c.length-1]}}var n,r,a,h,l=this,c={};s.extend(l,{init:function(){return h=l.elem=s("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return I}}).hide(),s(e.body).bind("focusin"+Tt,o),s(e).bind("keydown"+Tt,function(t){n&&n.options.show.modal.escape&&27===t.keyCode&&n.hide(t)}),h.bind("click"+Tt,function(t){n&&n.options.show.modal.blur&&n.hide(t)}),l},update:function(e){n=e,c=e.options.show.modal.stealfocus!==I?e.tooltip.find("*").filter(function(){return t(this)}):[]},toggle:function(t,o,r){var c=(s(e.body),t.tooltip),d=t.options.show.modal,p=d.effect,u=o?"show":"hide",f=h.is(":visible"),g=s(Tt).filter(":visible:not(:animated)").not(c);return l.update(t),o&&d.stealfocus!==I&&i(s(":focus")),h.toggleClass("blurs",d.blur),o&&h.appendTo(e.body),h.is(":animated")&&f===o&&a!==I||!o&&g.length?l:(h.stop(W,I),s.isFunction(p)?p.call(h,o):p===I?h[u]():h.fadeTo(parseInt(r,10)||90,o?1:0,function(){o||h.hide()}),o||h.queue(function(t){h.css({left:"",top:""}),s(Tt).length||h.detach(),t()}),a=o,n.destroyed&&(n=k),l)}}),l.init()},Ct=new Ct,s.extend(x.prototype,{init:function(t){var e=t.tooltip;return this.options.on?(t.elements.overlay=Ct.elem,e.addClass(qt).css("z-index",q.modal_zindex+s(Tt).length),t._bind(e,["tooltipshow","tooltiphide"],function(t,i,o){var n=t.originalEvent;if(t.target===e[0])if(n&&"tooltiphide"===t.type&&/mouse(leave|enter)/.test(n.type)&&s(n.relatedTarget).closest(Ct.elem[0]).length)try{t.preventDefault()}catch(r){}else(!n||n&&"tooltipsolo"!==n.type)&&this.toggle(t,"tooltipshow"===t.type,o)},this._ns,this),t._bind(e,"tooltipfocus",function(t,i){if(!t.isDefaultPrevented()&&t.target===e[0]){var o=s(Tt),n=q.modal_zindex+o.length,r=parseInt(e[0].style.zIndex,10);Ct.elem[0].style.zIndex=n-1,o.each(function(){this.style.zIndex>r&&(this.style.zIndex-=1)}),o.filter("."+K).qtip("blur",t.originalEvent),e.addClass(K)[0].style.zIndex=n,Ct.update(i);try{t.preventDefault()}catch(a){}}},this._ns,this),void t._bind(e,"tooltiphide",function(t){t.target===e[0]&&s(Tt).filter(":visible").not(e).last().qtip("focus",t)},this._ns,this)):this},toggle:function(t,e,i){return t&&t.isDefaultPrevented()?this:void Ct.toggle(this.qtip,!!e,i)},destroy:function(){this.qtip.tooltip.removeClass(qt),this.qtip._unbind(this.qtip.tooltip,this._ns),Ct.toggle(this.qtip,I),delete this.qtip.elements.overlay}}),xt=V.modal=function(t){return new x(t,t.options.show.modal)},xt.sanitize=function(t){t.show&&("object"!=typeof t.show.modal?t.show.modal={on:!!t.show.modal}:"undefined"==typeof t.show.modal.on&&(t.show.modal.on=W))},q.modal_zindex=q.zindex-200,xt.initialize="render",z.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},s.extend(W,q.defaults,{show:{modal:{on:I,effect:W,blur:W,stealfocus:W,escape:W}}}),V.viewport=function(i,s,o,n,r,a,h){function l(t,e,i,o,n,r,a,h,l){var c=s[n],y=w[t],b=_[t],x=i===$,C=y===n?l:y===r?-l:-l/2,q=b===n?h:b===r?-h:-h/2,T=m[n]+v[n]-(u?0:p[n]),j=T-c,z=c+l-(a===A?f:g)-T,M=C-(w.precedance===t||y===w[e]?q:0)-(b===N?h/2:0);return x?(M=(y===n?1:-1)*C,s[n]+=j>0?j:z>0?-z:0,s[n]=Math.max(-p[n]+v[n],c-M,Math.min(Math.max(-p[n]+v[n]+(a===A?f:g),c+M),s[n],"center"===y?c-C:1e9))):(o*=i===O?2:0,j>0&&(y!==n||z>0)?(s[n]-=M+o,d.invert(t,n)):z>0&&(y!==r||j>0)&&(s[n]-=(y===N?-M:M)+o,d.invert(t,r)),s[n]<m&&-s[n]>z&&(s[n]=c,d=w.clone())),s[n]-c}var c,d,p,u,f,g,m,v,y=o.target,b=i.elements.tooltip,w=o.my,_=o.at,x=o.adjust,C=x.method.split(" "),q=C[0],T=C[1]||C[0],j=o.viewport,z=o.container,M=(i.cache,{left:0,top:0});return j.jquery&&y[0]!==t&&y[0]!==e.body&&"none"!==x.method?(p=z.offset()||M,u="static"===z.css("position"),c="fixed"===b.css("position"),f=j[0]===t?j.width():j.outerWidth(I),g=j[0]===t?j.height():j.outerHeight(I),m={left:c?0:j.scrollLeft(),top:c?0:j.scrollTop()},v=j.offset()||M,"shift"===q&&"shift"===T||(d=w.clone()),M={left:"none"!==q?l(E,S,q,x.x,D,F,A,n,a):0,top:"none"!==T?l(S,E,T,x.y,P,B,L,r,h):0,my:d}):M},V.polys={polygon:function(t,e){var i,s,o,n={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:I},r=0,a=[],h=1,l=1,c=0,d=0;for(r=t.length;r--;)i=[parseInt(t[--r],10),parseInt(t[r+1],10)],i[0]>n.position.right&&(n.position.right=i[0]),i[0]<n.position.left&&(n.position.left=i[0]),i[1]>n.position.bottom&&(n.position.bottom=i[1]),i[1]<n.position.top&&(n.position.top=i[1]),a.push(i);if(s=n.width=Math.abs(n.position.right-n.position.left),o=n.height=Math.abs(n.position.bottom-n.position.top),"c"===e.abbrev())n.position={left:n.position.left+n.width/2,top:n.position.top+n.height/2};else{for(;s>0&&o>0&&h>0&&l>0;)for(s=Math.floor(s/2),o=Math.floor(o/2),e.x===D?h=s:e.x===F?h=n.width-s:h+=Math.floor(s/2),e.y===P?l=o:e.y===B?l=n.height-o:l+=Math.floor(o/2),r=a.length;r--&&!(a.length<2);)c=a[r][0]-n.position.left,d=a[r][1]-n.position.top,(e.x===D&&c>=h||e.x===F&&c<=h||e.x===N&&(c<h||c>n.width-h)||e.y===P&&d>=l||e.y===B&&d<=l||e.y===N&&(d<l||d>n.height-l))&&a.splice(r,1);n.position={left:a[0][0],top:a[0][1]}}return n},rect:function(t,e,i,s){return{width:Math.abs(i-t),height:Math.abs(s-e),position:{left:Math.min(t,i),top:Math.min(e,s)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(t,e,i,s,o){var n=V.polys._angles[o.abbrev()],r=0===n?0:i*Math.cos(n*Math.PI),a=s*Math.sin(n*Math.PI);return{width:2*i-Math.abs(r),height:2*s-Math.abs(a),position:{left:t+r,top:e+a},adjustable:I}},circle:function(t,e,i,s){return V.polys.ellipse(t,e,i,i,s)}},V.svg=function(t,i,o){for(var n,r,a,h,l,c,d,p,u,f=(s(e),i[0]),g=s(f.ownerSVGElement),m=f.ownerDocument,v=(parseInt(i.css("stroke-width"),10)||0)/2;!f.getBBox;)f=f.parentNode;if(!f.getBBox||!f.parentNode)return I;switch(f.nodeName){case"ellipse":case"circle":p=V.polys.ellipse(f.cx.baseVal.value,f.cy.baseVal.value,(f.rx||f.r).baseVal.value+v,(f.ry||f.r).baseVal.value+v,o);break;case"line":case"polygon":case"polyline":for(d=f.points||[{x:f.x1.baseVal.value,y:f.y1.baseVal.value},{x:f.x2.baseVal.value,y:f.y2.baseVal.value}],p=[],c=-1,h=d.numberOfItems||d.length;++c<h;)l=d.getItem?d.getItem(c):d[c],p.push.apply(p,[l.x,l.y]);p=V.polys.polygon(p,o);break;default:p=f.getBBox(),p={width:p.width,height:p.height,position:{left:p.x,top:p.y}}}return u=p.position,g=g[0],g.createSVGPoint&&(r=f.getScreenCTM(),d=g.createSVGPoint(),d.x=u.left,d.y=u.top,a=d.matrixTransform(r),u.left=a.x,u.top=a.y),m!==e&&"mouse"!==t.position.target&&(n=s((m.defaultView||m.parentWindow).frameElement).offset(),n&&(u.left+=n.left,u.top+=n.top)),m=s(m),u.left+=m.scrollLeft(),u.top+=m.scrollTop(),p},V.imagemap=function(t,e,i,o){e.jquery||(e=s(e));var n,r,a,h,l,c=(e.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),d=s('img[usemap="#'+e.parent("map").attr("name")+'"]'),p=s.trim(e.attr("coords")),u=p.replace(/,$/,"").split(",");if(!d.length)return I;if("polygon"===c)h=V.polys.polygon(u,i);else{if(!V.polys[c])return I;for(a=-1,l=u.length,r=[];++a<l;)r.push(parseInt(u[a],10));h=V.polys[c].apply(this,r.concat(i))}return n=d.offset(),n.left+=Math.ceil((d.outerWidth(I)-d.width())/2),n.top+=Math.ceil((d.outerHeight(I)-d.height())/2),h.position.left+=n.left,h.position.top+=n.top,h};var jt,zt='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>';s.extend(C.prototype,{_scroll:function(){var e=this.qtip.elements.overlay;e&&(e[0].style.top=s(t).scrollTop()+"px")},init:function(i){var o=i.tooltip;s("select, object").length<1&&(this.bgiframe=i.elements.bgiframe=s(zt).appendTo(o),i._bind(o,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=s("<div/>",{id:R+"-rcontainer"}).appendTo(e.body),i.elements.overlay&&i.elements.overlay.addClass("qtipmodal-ie6fix")&&(i._bind(t,["scroll","resize"],this._scroll,this._ns,this),i._bind(o,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var t,e,i=this.qtip.tooltip,s={height:i.outerHeight(I),width:i.outerWidth(I)},o=this.qtip.plugins.tip,n=this.qtip.elements.tip;e=parseInt(i.css("borderLeftWidth"),10)||0,e={left:-e,top:-e},o&&n&&(t="x"===o.corner.precedance?[A,D]:[L,P],e[t[1]]-=n[t[0]]()),this.bgiframe.css(e).css(s)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var t,e,i,s,o=this.qtip.tooltip,n=this.qtip.options.style,r=this.qtip.options.position.container;return this.qtip.drawing=1,n.height&&o.css(L,n.height),n.width?o.css(A,n.width):(o.css(A,"").appendTo(this.redrawContainer),e=o.width(),e%2<1&&(e+=1),i=o.css("maxWidth")||"",s=o.css("minWidth")||"",t=(i+s).indexOf("%")>-1?r.width()/100:0,i=(i.indexOf("%")>-1?t:1)*parseInt(i,10)||e,s=(s.indexOf("%")>-1?t:1)*parseInt(s,10)||0,e=i+s?Math.min(Math.max(e,s),i):e,o.css(A,Math.round(e)).appendTo(r)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([t,this.qtip.tooltip],this._ns)}}),jt=V.ie6=function(t){return 6===st.ie?new C(t):I},jt.initialize="render",z.ie6={"^content|style$":function(){this.redraw()}}})}(window,document);
8
- function give_load_gateway(e,i){var t=jQuery(e).find("#give-payment-mode-select .give-loading-text"),a=jQuery(e).find("#give-amount").val(),o=jQuery(e).find('input[name="give-form-id"]').val();t.fadeIn();var n=jQuery(e).data();1!=n["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),jQuery.post(give_scripts.ajaxurl+"?payment-mode="+i,{action:"give_load_gateway",give_total:a,give_form_id:o,give_payment_mode:i},function(i){jQuery(e).unblock(),jQuery(e).find("#give_purchase_form_wrap").html(i),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),setup_give_tooltips(),jQuery(document).trigger("give_gateway_loaded",[i,jQuery(e).attr("id")])})}function setup_give_tooltips(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},position:{my:"bottom center",at:"top center"}}),jQuery.fn.qtip.zindex=2147483641}var give_scripts,give_global_vars;jQuery(document).ready(function(e){setup_give_tooltips(),e(".give-loading-text").hide(),e(document).on("click",".give-checkout-login",function(i){var t=e(this),a=e(this).parents("form"),o=e(a).find('[id^="give-checkout-login-register"] .give-loading-text'),n={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};return o.show(),e.post(give_scripts.ajaxurl,n,function(i){e(a).find("[id^=give-checkout-login-register]").html(i),e(a).find(".give-submit-button-wrap").hide()}).done(function(){o.hide(),give_fl_trigger(),setup_give_tooltips()}),!1}),e(document).on("click",".give-checkout-register-cancel",function(i){i.preventDefault();var t=e(this),a=e(this).parents("form"),o={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};e.post(give_scripts.ajaxurl,o,function(i){e(a).find("[id^=give-checkout-login-register]").html(e.parseJSON(i.fields)),e(a).find(".give-submit-button-wrap").show()}).done(function(){give_fl_trigger(),setup_give_tooltips()})}),e(document).on("click","[id^=give-login-fields] input[type=submit]",function(i){i.preventDefault();var t=e(this).val(),a=e(this).parents("form");e(this).val(give_global_vars.purchase_loading),a.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var o={action:"give_process_donation_login",give_ajax:1,give_user_login:a.find("[name=give_user_login]").val(),give_user_pass:a.find("[name=give_user_pass]").val()};e.post(give_global_vars.ajaxurl,o,function(i){void 0!=e.trim(typeof i.success)&&1==i.success&&void 0!=typeof i.data?(a.find(".give_errors").remove(),a.find("#give-payment-mode-select").after(i.data),a.find(".give_notices.give_errors").delay(5e3).slideUp(),give_load_gateway(a,a.find(".give-gateway-option-selected input").val())):(a.find("[id^=give-login-fields] input[type=submit]").val(t),a.find(".give-loading-animation").fadeOut(),a.find(".give_errors").remove(),a.find("[id^=give-user-login-submit]").before(i.data))})}),e("select#give-gateway, input.give-gateway").on("change",function(i){i.preventDefault();var t=e(this).val();return"0"==t?(console.log("There was a problem loading the selected gateway"),!1):(give_load_gateway(e(this).parents("form"),t),!1)}),e("body").on("click","#give-confirm-email-btn",function(i){var t=e(this),a={action:"give_confirm_email_for_donations_access",email:t.data("email"),nonce:give_scripts.ajaxNonce};return t.text(give_global_vars.loading),t.attr("disabled","disabled"),e.post(give_global_vars.ajaxurl,a,function(e){e=JSON.parse(e),"error"===e.status?(t.closest("#give_user_history tfoot").hide(),t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),t.hide(),t.closest(".give-security-button-wrap").find("span").show())}),!1}),e("body").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',function(i){var t=e(this).parents("form.give-form"),a=t.find('input[type="submit"].give-submit + .give-loading-animation');a.fadeIn();var o=t.get(0);if("function"!=typeof o.checkValidity||o.checkValidity()!==!1||(a.fadeOut(),(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1)!=!1)){i.preventDefault();var n=e(this).val();e(this).val(give_global_vars.purchase_loading),Give.form.fn.disable(t,!0),e.post(give_global_vars.ajaxurl,t.serialize()+"&action=give_process_donation&give_ajax=true",function(i){"success"==e.trim(i)?(t.find(".give_errors").remove(),e(o).submit(),t.trigger("give_form_validation_passed")):(t.find('input[type="submit"].give-submit').val(n),a.fadeOut(),t.find(".give_errors").remove(),t.find('input[type="submit"].give-submit').before(i),Give.form.fn.disable(t,!1))})}})});
9
- var give_scripts,give_global_vars,Give="undefined"!=typeof Give?Give:{};Give={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit"),this.fn.__initialize_cache();t<e.length;)Give[e[t]].init&&Give[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,i){var n={symbol:"",decimal:parseInt(give_global_vars.decimal_separator),thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals,currency:give_global_vars.currency};if(e=e.toString().trim(),i="undefined"==typeof i?{}:i,i.length&&(n={symbol:"",decimal:Give.form.fn.getInfo("decimal_separator",i),thousand:Give.form.fn.getInfo("thousands_separator",i),precision:Give.form.fn.getInfo("number_decimals",i),currency:Give.form.fn.getInfo("currency_code",i)}),t=jQuery.extend(n,t),t.precision=parseInt(t.precision),"INR"===t.currency){var a,r,o=accounting.unformat(e,".").toString(),d="",l=o.indexOf(".");for(-1!==l&&t.precision?(d=Number(o.substr(parseInt(l))).toFixed(t.precision).toString().substr(1),o=o.substr(0,parseInt(l)),d.length?t.precision+1>d.length&&(d=(d+"000000000").substr(0,t.precision+1)):d=".0000000000".substr(0,parseInt(l)+1)):d=".000000000".substr(0,t.precision+1),a=o.substr(-3),r=o.substr(0,parseInt(o.length)-3);r.length>0;)a=r.substr(-2)+t.thousand+a,r=r.substr(0,parseInt(r.length)-2);d.length&&(a+=d),e=a,void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=i.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){return"undefined"==typeof give_global_vars[e]?"":give_global_vars[e]},setCache:function(e,t,i){i.length?Give.cache["form_"+Give.form.fn.getInfo("form-id",i)][e]=t:Give.cache[e]=t},getCache:function(e,t){var i;return i=t.length?Give.cache["form_"+Give.form.fn.getInfo("form-id",t)][e]:Give.cache[e],i="undefined"==typeof i?"":i},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]})}},cache:{}},Give.form={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),window.onload=function(){Give.form.fn.__sendBackToForm()}},fn:{disable:function(e,t){return!!e.length&&void e.find(".give-submit").prop("disabled",t)},formatAmount:function(e,t,i){return t.length?Give.fn.formatCurrency(e,i,t):e},getInfo:function(e,t){var i="";if(t="undefined"!=typeof t?t:{},!e.length||!t.length)return i;switch(e){case"gateways":i=[],jQuery.each(t.find('input[name="payment-mode"]'),function(e,t){t=t instanceof jQuery?t:jQuery(t),i.push(t.val().trim())});break;case"form-type":t.hasClass("give-form-type-set")?i="set":t.hasClass("give-form-type-multi")&&(i="multi");break;case"form-id":i=t.find('input[name="give-form-id"]').val();break;default:i=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e),"undefined"!=typeof i?i.trim():i}return i},setInfo:function(e,t,i,n){if(!e.length||!i.length)return!1;switch(n="undefined"==typeof n?"data":n){case"attr":i.attr(e,t);break;default:i.data(e,t)}return!0},getGateway:function(e){var t="";return e.length?(t=e.find('input[name="payment-mode"]:checked').val().trim(),"undefined"!=typeof t?t:""):t},getVariablePrices:function(e){var t,i=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,function(t,n){n=n instanceof jQuery?n:jQuery(n);var a=Give.form.fn.getInfo("decimal_separator",e);i.push({price_id:n.data("price-id"),amount:Give.fn.unFormatCurrency(n.val(),a)})}),i):i},getPriceID:function(e,t){var i=this.getVariablePrices(e),n=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),a=Give.fn.getCache("amount_"+n,e)?Give.fn.getCache("amount_"+n,e):-1;return t="undefined"==typeof t||t,i.length&&-1===a&&(t?(jQuery.each(i,function(e,t){if(t.amount===n)return a=t.price_id,!1}),-1===a&&this.getMinimumAmount(e)<=n&&(a="custom")):a=jQuery('input[name="give-price-id"]',e).val()),a},getMinimumAmount:function(e){return Give.fn.unFormatCurrency(e.find('input[name="give-form-minimum"]').val(),Give.form.fn.getInfo("decimal_separator",e))},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return"undefined"!=typeof t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t="undefined"==typeof t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').focus().addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),i=e.val(),n=e.data("price-id");if("undefined"==typeof n&&(n=e.find("option:selected").data("price-id")),"custom"===i)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(i),t.find("span.give-amount-top").text(i);var a=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).data("amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").data("total"),a)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,i,n]),jQuery(document).trigger("give_donation_value_updated",[t,i,n])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var i=jQuery("body").find("#give-form-"+e+"-wrap"),n=i.find("form.give-form"),a=i.hasClass("give-display-modal"),r=i.hasClass("give-display-reveal");n.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),n.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var o=Give.fn.getParameterByName("level-id"),d=n.find('*[data-price-id="'+o+'"]');d.length>0&&this.autoSetMultiLevel(d),a?give_open_form_modal(i,n):r&&(n.find(".give-btn-reveal").hide(),n.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){var t=this.getMinimumAmount(e),i=this.getAmount(e),n=this.getPriceID(e,!0);return-1<i&&i>=t||-1!==n},field:{formatCreditCard:function(e){e.each(function(e,t){t=jQuery(t);var i=t.find(".card-number"),n=t.find(".card-cvc"),a=t.find(".card-expiry");i.length&&(i.payment("formatCardNumber"),n.payment("formatCardCVC"),a.payment("formatCardExpiry"))})}}}},Give.notice={fn:{renderNotice:function(e,t){var i,n="";switch(t="undefined"!=typeof t?t:{},e){case"bad_minimum":i=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>")}return t.length?void i.insertBefore(t.find(".give-total-wrap")).show():n},getNotice:function(e,t){if(!e.length)return null;var i="";switch(e){case"bad_minimum":t.length&&(i=Give.fn.getGlobalVar("bad_minimum")+" "+Give.fn.formatCurrency(Give.form.fn.getMinimumAmount(t),{symbol:Give.form.fn.getInfo("currency_symbol",t)},t))}return i}}},jQuery(function(e){function t(){var t=e(this),i=t.parents("form");if("card_state"!==t.attr("id")){i.find("#card_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var a={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:a,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){var t="",a=e.states_label;t=void 0!=typeof e.states_found&&1==e.states_found?e.data:'<input type="text" id="card_state" name="card_state" class="cart-state give-input required" placeholder="'+a+'" value="'+e.default_state+'"/>',!1===i.hasClass("float-labels-enabled")?"undefined"!=typeof e.states_require&&1==e.states_require?i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").removeClass("give-hidden"):i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").addClass("give-hidden"):i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label").text(a),i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .state-label-text").text(a),i.find('input[name="card_state"], select[name="card_state"]').replaceWith(t),void 0!=typeof e.show_field&&1==e.show_field?(i.find("p#give-card-state-wrap").removeClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-last"),i.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(i.find("p#give-card-state-wrap").addClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-wide"),i.find("p#give-card-zip-wrap").removeClass("form-row-last")),n.trigger("give_checkout_billing_address_updated",[e,i.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}var i=jQuery("form.give-form"),n=e(document);e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("change","#give_cc_address input.card_state, #give_cc_address select",t),n.on("give_gateway_loaded",function(){Give.form.fn.field.formatCreditCard(i)}),n.on("submit","#give_payment_mode",function(){var t=Give.form.fn.getGateway(e(this).closest("form"));if(!t.length)return alert(Give.fn.getGlobalVar("no_gateway")),!1}),n.on("click","#give-payment-mode-select input",function(){var t,i=e(this).parents("form"),n=i.find("#give-payment-mode-select li"),a=i.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();n.removeClass("give-gateway-option-selected"),n.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),t=Give.form.fn.getGateway(i),i.attr("action",i.attr("action").replace("payment-mode="+a,"payment-mode="+t))}),n.on("focus",".give-donation-amount .give-text-input",function(t){var i=e(this).parents("form");e(this).removeClass("invalid-amount");var n=i.find(".give-final-total-amount").data("total"),a=Give.form.fn.getInfo("decimal_separator",i);e(this).data("amount",Give.fn.unFormatCurrency(n,a)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),i.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),i.find(".give-btn-level-custom").addClass("give-default-level"),i.find(".give-radio-input").prop("checked",!1),i.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),i.find(".give-select-level").prop("selected",!1),i.find(".give-select-level .give-donation-level-custom").prop("selected",!0)}),n.on("blur",".give-donation-amount .give-text-input",function(t,i,n,a){var r="undefined"!=typeof i?i:e(this).closest("form"),o=e(this).data("amount"),d="undefined"!=typeof n?n:e(this).val(),l=Give.form.fn.getInfo("decimal_separator",r),f=Give.form.fn.getMinimumAmount(r),s=0===d?f:Give.fn.unFormatCurrency(d,l),u=Give.form.fn.formatAmount(s,r,{});if(a="undefined"==typeof a?Give.form.fn.getPriceID(r,!0):a,Give.fn.setCache("amount_"+s,a,r),e(this).val(u),Give.form.fn.isValidDonationAmount(r))e(this).removeClass("give-invalid-amount"),r.find(".give-invalid-minimum").slideUp(300,function(){e(this).remove()}),Give.form.fn.disable(r,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(r,!0);var c=r.find(".give-invalid-minimum");0===c.length&&Give.notice.fn.renderNotice("bad_minimum",r)}o!==s&&r.find(".give-final-total-amount").data("total",s).text(Give.fn.formatCurrency(s,{symbol:Give.form.fn.getInfo("currency_symbol",r),position:Give.form.fn.getInfo("currency_position",r)},r)),-1!==a&&(e('input[name="give-price-id"]',r).val(a),r.find(".give-amount-hidden").val(Give.form.fn.formatAmount(s,r,{})),r.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(r,a)),e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in")}),n.on("click touchend",".give-donation-level-btn",function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click touchend",".give-radio-input-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("change",".give-select-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click",".give_terms_links",function(t){t.preventDefault();var i=e(this).closest("fieldset");return e("[class^=give_terms-]",i).slideToggle(),e("a.give_terms_links",i).toggle(),!1}),e('label[for^="give-radio-level"]').on("click",function(t){var i=e(this).closest("form"),n=i.find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())})}),jQuery(window).load(function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(e){var t=jQuery(this),i=t.parents("form.give-form"),n=t.attr("id"),a=i.find(".card-number"),r=i.find(".card-cvc"),o=i.find(".card-expiry"),d=jQuery.payment.cardType(a.val()),l=!1;switch(e.type){case"focusout":n.indexOf("card_number")>-1?(l=!jQuery.payment.validateCardNumber(a.val()),a.toggleError(l)):n.indexOf("card_cvc")>-1?(l=!jQuery.payment.validateCardCVC(r.val(),d),r.toggleError(l)):n.indexOf("card_expiry")>-1&&(l=!jQuery.payment.validateCardExpiry(o.payment("cardExpiryVal")),o.toggleError(l)),Give.form.fn.disable(t.parents("form"),l);break;default:if(t.hasClass("error")&&t.removeClass("error"),n.indexOf("card_number")>-1){var f=i.find(".card-type");null===d?(f.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):f.removeClass().addClass("card-type "+d)}else if(n.indexOf("card_expiry")>-1){var s=o.payment("cardExpiryVal");i.find(".card-expiry-month").val(s.month),i.find(".card-expiry-year").val(s.year)}}})});
10
- function give_open_form_modal(e,i){var a="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden";jQuery.magnificPopup.open({mainClass:give_global_vars.magnific_options.main_class,closeOnBgClick:give_global_vars.magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:i,type:"inline"},callbacks:{beforeOpen:function(){if(jQuery("body").addClass("give-modal-open"),e.hasClass("give-display-button-only")&&!i.data("content")){var a=jQuery(".give-form-content-wrap",e),t=jQuery(".give-form-title",e),n=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),r=jQuery(".give_errors",e);a.length&&!jQuery(".give-form-content-wrap",i).length&&(a.hasClass("give_post_form-content")?i.append(a):i.prepend(a)),r.length&&!jQuery(".give_errors",i).length&&r.each(function(e,a){i.prepend(jQuery(a))}),o.length&&!jQuery(">.give_error",i).length&&o.each(function(e,a){i.prepend(jQuery(a))}),n.length&&!jQuery(".give-goal-progress",i).length&&i.prepend(n),t.length&&!jQuery(".give-form-title",i).length&&i.prepend(t),i.data("content","loaded")}},open:function(){var t=jQuery(".mfp-content");t.outerWidth()>=500&&t.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(a=i.children().not(".give-hidden, .give-btn-modal")),i.children().not(a).hide()},close:function(){i.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),i.children().not(a).show()}}})}function give_fl_trigger(){give_float_labels instanceof FloatLabels?give_float_labels.rebuild():give_float_labels=new FloatLabels(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple]",prioritize:"placeholder",style:"give"})}function give_change_html5_form_field_validation_message(){var e,i=jQuery(".give-form");i.length&&jQuery.each(i,function(i,a){e=jQuery("input",a),e.length&&jQuery.each(e,function(e,i){i=jQuery(i).get(0),give_global_vars.form_translation.hasOwnProperty(i.name)&&(i.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(give_global_vars.form_translation[i.name])})})})}function update_profile_state_field(){var e=jQuery(this),i=e.parents("form");if("give_address_country"===e.attr("id")){i.find("#give_address_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var a={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:a,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){var a="",t=e.states_label;a=void 0!=typeof e.states_found&&1==e.states_found?e.data:'<input type="text" id="give_address_state" name="give_address_state" class="text give-input" placeholder="'+t+'" value="'+e.default_state+'"/>',i.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(a),void 0!=typeof e.show_field&&1==e.show_field?(i.find("p#give-card-state-wrap").removeClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-last"),i.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(i.find("p#give-card-state-wrap").addClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-wide"),i.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}var give_scripts,give_float_labels;jQuery(function(e){var i=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),i.on("give_gateway_loaded",function(e,i,a){give_fl_trigger()}),i.on("give_checkout_billing_address_updated",function(i,a,t){e("form#"+t).hasClass("float-labels-enabled")&&give_fl_trigger()}),i.on("click",".give-btn-reveal",function(i){i.preventDefault();var a=e(this),t=e(this).parents("form"),n="#give-payment-mode-select",o=e(n),r="";return a.hide(),e("li",o).length>1&&(r=n+", "),t.find(r+"#give_purchase_form_wrap").slideDown(),!1}),i.on("click",".give-btn-modal",function(i){i.preventDefault();var a=e(this).parents("div.give-form-wrap"),t=a.find("form.give-form"),n=t.find("#give-amount"),o=n.val();return!o||o<=0?(n.focus(),!1):void give_open_form_modal(a,t)});var a=jQuery('.give_notice[data-dismissible="auto"]');a.length&&a.each(function(i,a){a=e(a),window.setTimeout(function(){a.slideUp()},a.data("dismiss-interval"))}),i.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field)});
1
  !function(n,r){function e(n){return!!(""===n||n&&n.charCodeAt&&n.substr)}function t(n){return p?p(n):"[object Array]"===l.call(n)}function o(n){return n&&"[object Object]"===l.call(n)}function a(n,r){var e;n=n||{},r=r||{};for(e in r)r.hasOwnProperty(e)&&null==n[e]&&(n[e]=r[e]);return n}function i(n,r,e){var t,o,a=[];if(!n)return a;if(f&&n.map===f)return n.map(r,e);for(t=0,o=n.length;t<o;t++)a[t]=r.call(e,n[t],t,n);return a}function u(n,r){return n=Math.round(Math.abs(n)),isNaN(n)?r:n}function c(n){var r=s.settings.currency.format;return"function"==typeof n&&(n=n()),e(n)&&n.match("%v")?{pos:n,neg:n.replace("-","").replace("%v","-%v"),zero:n}:n&&n.pos&&n.pos.match("%v")?n:e(r)?s.settings.currency.format={pos:r,neg:r.replace("%v","-%v"),zero:r}:r}var s={};s.version="0.4.1",s.settings={currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}};var f=Array.prototype.map,p=Array.isArray,l=Object.prototype.toString,m=s.unformat=s.parse=function(n,r){if(t(n))return i(n,function(n){return m(n,r)});if(n=n||0,"number"==typeof n)return n;r=r||s.settings.number.decimal;var e=new RegExp("[^0-9-"+r+"]",["g"]),o=parseFloat((""+n).replace(/\((.*)\)/,"-$1").replace(e,"").replace(r,"."));return isNaN(o)?0:o},d=s.toFixed=function(n,r){r=u(r,s.settings.number.precision);var e=Math.pow(10,r);return(Math.round(s.unformat(n)*e)/e).toFixed(r)},g=s.formatNumber=s.format=function(n,r,e,c){if(t(n))return i(n,function(n){return g(n,r,e,c)});n=m(n);var f=a(o(r)?r:{precision:r,thousand:e,decimal:c},s.settings.number),p=u(f.precision),l=n<0?"-":"",h=parseInt(d(Math.abs(n||0),p),10)+"",y=h.length>3?h.length%3:0;return l+(y?h.substr(0,y)+f.thousand:"")+h.substr(y).replace(/(\d{3})(?=\d)/g,"$1"+f.thousand)+(p?f.decimal+d(Math.abs(n),p).split(".")[1]:"")},h=s.formatMoney=function(n,r,e,f,p,l){if(t(n))return i(n,function(n){return h(n,r,e,f,p,l)});n=m(n);var d=a(o(r)?r:{symbol:r,precision:e,thousand:f,decimal:p,format:l},s.settings.currency),y=c(d.format),b=n>0?y.pos:n<0?y.neg:y.zero;return b.replace("%s",d.symbol).replace("%v",g(Math.abs(n),u(d.precision),d.thousand,d.decimal))};s.formatColumn=function(n,r,f,p,l,d){if(!n)return[];var h=a(o(r)?r:{symbol:r,precision:f,thousand:p,decimal:l,format:d},s.settings.currency),y=c(h.format),b=y.pos.indexOf("%s")<y.pos.indexOf("%v"),v=0,x=i(n,function(n,r){if(t(n))return s.formatColumn(n,h);n=m(n);var e=n>0?y.pos:n<0?y.neg:y.zero,o=e.replace("%s",h.symbol).replace("%v",g(Math.abs(n),u(h.precision),h.thousand,h.decimal));return o.length>v&&(v=o.length),o});return i(x,function(n,r){return e(n)&&n.length<v?b?n.replace(h.symbol,h.symbol+new Array(v-n.length+1).join(" ")):new Array(v-n.length+1).join(" ")+n:n})},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=s),exports.accounting=s):"function"==typeof define&&define.amd?define([],function(){return s}):(s.noConflict=function(e){return function(){return n.accounting=e,s.noConflict=r,s}}(n.accounting),n.accounting=s)}(this);
2
+ !function(t,e,i){"use strict";var s=function(t,i){this.el=this.isString(t)?e.querySelectorAll(t):[t],this.config=[],this.options=i,this.selectors=[],this.init(),this.destroy=function(){this.loop(function(t){t.removeEventListener("reset",this.events.reset),this.removeClasses(t)},function(t){this.reset(t)})},this.rebuild=function(){this.loop(null,function(t){this.floatLabel(t,!0)})}};s.prototype={defaults:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init:function(){this.initEvents(),this.loop(function(t,e){var i=this.config[e].style;t.addEventListener("reset",this.events.reset),t.classList.add(this.prefixed("form")),i&&t.classList.add(this.prefixed("style-"+i))},function(t){this.floatLabel(t)})},initEvents:function(){this.events={blur:this.onBlur.bind(this),change:this.onInput.bind(this),focus:this.onFocus.bind(this),input:this.onInput.bind(this),reset:this.onReset.bind(this)}},addRemove:function(t){return t?"add":"remove"},build:function(t){var e=this.getLabel(t);e&&(t.classList.add(this.prefixed(t.tagName.toLowerCase())),this.setLabel(e,t),this.setPlaceholder(e,t),this.wrapLabel(e,t),this.handleEvents(t,"add"),"function"==typeof this.config[this.current].customEvent&&this.config[this.current].customEvent.call(this,t))},createEl:function(t,i){var s="string"==typeof t?e.createElement(t):t;i=i||{};for(var n in i)i.hasOwnProperty(n)&&s.setAttribute(n,i[n]);return s},extend:function(){var t=[].slice.call(arguments),e=t[0],i=t.slice(1);return Object.keys(i).forEach(function(t){for(var s in i[t])i[t].hasOwnProperty(s)&&(e[s]=i[t][s])}),e},floatLabel:function(t,e){if(t.getAttribute("id")&&("INPUT"!==t.tagName||this.config[this.current].inputRegex.test(t.getAttribute("type")))){if(this.hasParent(t)){if(e!==!0)return;this.reset(t)}this.build(t)}},getLabel:function(t){var e='label[for="'+t.getAttribute("id")+'"]',i=this.el[this.current].querySelectorAll(e);return i.length>1&&(i=t.parentNode.querySelectorAll(e)),1===i.length&&i[0]},getLabelText:function(t,e){var i=t.textContent.replace(/[*:]/g,"").trim(),s=e.getAttribute("placeholder");return(!i||i&&s&&"placeholder"===this.config[this.current].prioritize)&&(i=s),i},handleEvents:function(t,e){var i=this.events;["blur","input","focus"].forEach(function(s){"file"===t.type&&"input"===s&&(s="change"),t[e+"EventListener"](s,i[s])})},hasParent:function(t){return t.parentNode.classList.contains(this.prefixed("wrap"))},isString:function(t){return"[object String]"===Object.prototype.toString.call(t)},loop:function(t,e){for(var i=0;i<this.el.length;++i){if("undefined"==typeof this.selectors[i]){var s=this.extend({},this.defaults,this.options,this.el[i].getAttribute("data-options")),n=":not("+s.exclude.split(/[\s,]+/).join("):not(")+")";this.selectors[i]=s.transform.replace(/,/g,n+",")+n,this.config[i]=s}var r=this.el[i].querySelectorAll(this.selectors[i]);this.current=i,"function"==typeof t&&t.call(this,this.el[i],i);for(var l=0;l<r.length;++l)"function"==typeof e&&e.call(this,r[l],i)}},onBlur:function(t){t.target.parentNode.classList.remove(this.prefixed("has-focus"))},onInput:function(t){t.target.parentNode.classList[this.addRemove(t.target.value.length)](this.prefixed("is-active"))},onFocus:function(t){t.target.parentNode.classList.add(this.prefixed("has-focus"))},onReset:function(){setTimeout(this.resetFields.bind(this))},prefixed:function(t){return this.config[this.current].prefix+t},removeClasses:function(t){var e=this.config[this.current].prefix,i=t.className.split(" ").filter(function(t){return 0!==t.lastIndexOf(e,0)});t.className=i.join(" ").trim()},reset:function(t){var i=t.parentNode;if(this.hasParent(t)){for(var s=e.createDocumentFragment();i.firstElementChild;){var n=i.firstElementChild;this.removeClasses(n),s.appendChild(n)}i.parentNode.replaceChild(s,i),this.resetPlaceholder(t),this.handleEvents(t,"remove")}},resetFields:function(){for(var t=this.el[this.current].querySelectorAll(this.selectors[this.current]),e=0;e<t.length;++e)t[e].parentNode.classList[this.addRemove("SELECT"===t[e].tagName&&""!==t[e].value)](this.prefixed("is-active"))},resetPlaceholder:function(t){var e="data-placeholder",i=t.getAttribute(e);null!==i&&(t.removeAttribute(e),t.setAttribute("placeholder",i))},setLabel:function(t,e){t.classList.add(this.prefixed("label")),t.textContent=this.getLabelText(t,e),"function"==typeof this.config[this.current].customLabel&&(t.textContent=this.config[this.current].customLabel.call(this,t,e))},setPlaceholder:function(t,e){var i=e.getAttribute("placeholder");"label"!==this.config[this.current].prioritize&&i||(i&&e.setAttribute("data-placeholder",i),i=this.getLabelText(t,e)),"function"==typeof this.config[this.current].customPlaceholder&&(i=this.config[this.current].customPlaceholder.call(this,i,e,t)),"SELECT"===e.tagName?this.setSelectPlaceholder(e,i):e.setAttribute("placeholder",i)},setSelectPlaceholder:function(t,e){var i=t.firstElementChild;if(i.hasAttribute("value")&&i.value){var s=t.options[t.selectedIndex].defaultSelected!==!0;t.insertBefore(new Option(e,"",s,s),i)}else i.setAttribute("value","");""===i.textContent&&(i.textContent=e)},wrapLabel:function(t,e){var s=this.createEl("div",{"class":this.prefixed("wrap")+" "+this.prefixed("wrap-"+e.tagName.toLowerCase())});e.value!==i&&e.value.length&&s.classList.add(this.prefixed("is-active")),(null!==e.getAttribute("required")||e.classList.contains(this.config[this.current].requiredClass))&&s.classList.add(this.prefixed("is-required")),e.parentNode.insertBefore(s,e),s.appendChild(t),s.appendChild(e)}},t.FloatLabels=s}(window,document);
3
  !function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&void 0!==n.message?n.message:void 0;if(n=e.extend({},e.blockUI.defaults,n||{}),!n.ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=void 0===y?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,v={};e(t).data("blockUI.history",v),v.el=m,v.parent=m.parentNode,v.display=m.style.display,v.position=m.style.position,v.parent&&v.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var g,I,w,U,x=n.baseZ;g=e(r||n.forceIframe?'<iframe class="blockUI" style="z-index:'+x++ +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+n.iframeSrc+'"></iframe>':'<div class="blockUI" style="display:none"></div>'),I=e(n.theme?'<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x++ +';display:none"></div>':'<div class="blockUI blockOverlay" style="z-index:'+x++ +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),n.theme&&k?(U='<div class="blockUI '+n.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',n.title&&(U+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(n.title||"&nbsp;")+"</div>"),U+='<div class="ui-widget-content ui-dialog-content"></div>',U+="</div>"):n.theme?(U='<div class="blockUI '+n.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',n.title&&(U+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(n.title||"&nbsp;")+"</div>"),U+='<div class="ui-widget-content ui-dialog-content"></div>',U+="</div>"):U=k?'<div class="blockUI '+n.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+n.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&g.css("opacity",0);var C=[g,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=d(t,"borderTopWidth"),T=d(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i=n.css&&n.css.top?parseInt(n.css.top,10):0,s="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+i+') + "px"';o.setExpression("top",s)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&g.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):a(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,a=e(t),d=a.data("blockUI.history"),c=a.data("blockUI.timeout");c&&(clearTimeout(c),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock"));var r;r=l?e("body").children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0===--s&&n(r,d,o,t)})):n(r,d,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),a=l.width(),d=l[0].style.width;l.width(a-1).width(a),l[0].style.width=d}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var a="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(a,n,s):e(document).unbind(a,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),a.parents("div."+s.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[e===!0?b.length-1:0];t&&t.focus()}}function a(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-d(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-d(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function d(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode||0,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),void 0===n&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();
4
  !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,o,r,a,s="Close",l="BeforeClose",c="AfterClose",d="BeforeAppend",u="MarkupParse",p="Open",f="Change",m="mfp",g="."+m,v="mfp-ready",h="mfp-removing",y="mfp-prevent-close",C=function(){},w=!!window.jQuery,b=e(window),I=function(e,n){t.ev.on(m+e+g,n)},x=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},k=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},T=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},_=function(){e.magnificPopup.instance||(t=new C,t.init(),e.magnificPopup.instance=t)},P=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};C.prototype={constructor:C,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=P(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(o=0;o<s.length;o++)if(a=s[o],a.parsed&&(a=a.el[0]),a===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=x("bg").on("click"+g,function(){t.close()}),t.wrap=x("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=x("container",t.wrap)),t.contentContainer=x("content"),t.st.preloader&&(t.preloader=x("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var c=l[o];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}k("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(I(u,function(e,t,n,i){n.close_replaceWith=T(i.type)}),r+=" mfp-close-btn-in"):t.wrap.append(T())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:b.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),b.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var d=t.wH=b.height(),f={};if(t.fixedContentPos&&t._hasScrollBar(d)){var m=t._getScrollbarSize();m&&(f.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):f.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),k("BuildControls"),e("html").css(f),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),i.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),k(p),n},close:function(){t.isOpen&&(k(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){k(s);var n=h+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,k(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),k("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(k("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;k("FirstMarkupParse",r),r?t.currTemplate[i]=e(r):t.currTemplate[i]=!0}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,k(f,n),o=n.type,t.container.prepend(t.contentContainer),k("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(T()):t.content=e:t.content="",k(d),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,k("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){var r=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(r||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(b.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};k("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(y)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),k(u,[t,n,i]),e.each(n,function(n,i){if(void 0===i||i===!1)return!0;if(o=n.split("_"),o.length>1){var r=t.find(g+"-"+o[0]);if(r.length>0){var a=o[1];"replaceWith"===a?r[0]!==i[0]&&r.replaceWith(i):"img"===a?r.is("img")?r.attr("src",i):r.replaceWith(e("<img>").attr("src",i).attr("class",r.attr("class"))):r.attr(o[1],i)}}else t.find(g+"-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:C.prototype,modules:[],open:function(t,n){return _(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){_();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=w?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),w?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var S,E,z,O="inline",M=function(){z&&(E.after(z.addClass(S)).detach(),z=null)};e.magnificPopup.registerModule(O,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(O),I(s+"."+O,function(){M()})},getInline:function(n,i){if(M(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(E||(S=o.hiddenClass,E=x(S),S="mfp-"+S),z=r.after(E).detach().removeClass(S)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var B,L="ajax",H=function(){B&&e(document.body).removeClass(B)},A=function(){H(),t.req&&t.req.abort()};e.magnificPopup.registerModule(L,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(L),B=t.st.ajax.cursor,I(s+"."+L,A),I("BeforeChange."+L,A)},getAjax:function(n){B&&e(document.body).addClass(B),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};k("ParseAjax",a),t.appendContent(e(a.data),L),n.finished=!0,H(),t._setFocus(),setTimeout(function(){t.wrap.addClass(v)},16),t.updateStatus("ready"),k("AjaxContentAdded")},error:function(){H(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var F,j=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),I(p+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),I(s+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),b.off("resize"+g)}),I("Resize"+i,t.resizeImage),t.isLowIE&&I("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,F&&clearInterval(F),e.isCheckingImgSize=!1,k("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){F&&clearInterval(F),F=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(n>200&&clearInterval(F),n++,void(3===n?o(10):40===n?o(50):100===n&&o(500)))},r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,k("ImageLoadComplete")):(o++,o<200?setTimeout(r,100):a()))},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:j(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(F&&clearInterval(F),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var N,W=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},d=function(){t.content.css("visibility","visible")};I("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void d();r=c(e),r.css(t._getOffset()),t.wrap.append(r),o=setTimeout(function(){r.css(t._getOffset(!0)),o=setTimeout(function(){d(),setTimeout(function(){r.remove(),e=r=null,k("ZoomAnimationEnded")},16)},a)},16)}}),I(l+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(e=t._getItemToZoom(),!e)return;r=c(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),I(s+i,function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(w?i.innerHeight():i[0].offsetHeight)-a-r};return W()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var Z="iframe",q="//about:blank",R=function(e){if(t.currTemplate[Z]){var n=t.currTemplate[Z].find("iframe");n.length&&(e||(n[0].src=q),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(Z,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(Z),I("BeforeChange",function(e,t,n){t!==n&&(t===Z?R():n===Z&&R(!0))}),I(s+"."+Z,function(){R()})},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var K=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},D=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";return t.direction=!0,!(!n||!n.enabled)&&(r+=" mfp-gallery",I(p+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),I("UpdateStatus"+o,function(e,n){n.text&&(n.text=D(n.text,t.currItem.index,t.items.length))}),I(u+o,function(e,i,o,r){var a=t.items.length;o.counter=a>1?D(n.tCounter,r.index,a):""}),I("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y);o.click(function(){t.prev()}),r.click(function(){t.next()}),t.container.append(o.add(r))}}),I(f+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void I(s+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=K(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=K(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=K(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),k("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,k("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var U="retina";e.magnificPopup.registerModule(U,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(I("ImageHasSize."+U,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),I("ElementParse."+U,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),_()});
5
  (function(){var t,e,n,r,a,i,o,l,u,s,c,h,p,f,g,v,d,m,y,C,T,w,$,D,S=[].slice,k=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1};t=window.jQuery||window.Zepto||window.$,t.payment={},t.payment.fn={},t.fn.payment=function(){var e,n;return n=arguments[0],e=2<=arguments.length?S.call(arguments,1):[],t.payment.fn[n].apply(this,e)},a=/(\d{1,4})/g,t.payment.cards=r=[{type:"maestro",patterns:[5018,502,503,506,56,58,639,6220,67],format:a,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"forbrugsforeningen",patterns:[600],format:a,length:[16],cvcLength:[3],luhn:!0},{type:"dankort",patterns:[5019],format:a,length:[16],cvcLength:[3],luhn:!0},{type:"visa",patterns:[4],format:a,length:[13,16],cvcLength:[3],luhn:!0},{type:"mastercard",patterns:[51,52,53,54,55,22,23,24,25,26,27],format:a,length:[16],cvcLength:[3],luhn:!0},{type:"amex",patterns:[34,37],format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"dinersclub",patterns:[30,36,38,39],format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",patterns:[60,64,65,622],format:a,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",patterns:[62,88],format:a,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"jcb",patterns:[35],format:a,length:[16],cvcLength:[3],luhn:!0}],e=function(t){var e,n,a,i,o,l,u,s;for(t=(t+"").replace(/\D/g,""),i=0,l=r.length;i<l;i++)for(e=r[i],s=e.patterns,o=0,u=s.length;o<u;o++)if(a=s[o],n=a+"",t.substr(0,n.length)===n)return e},n=function(t){var e,n,a;for(n=0,a=r.length;n<a;n++)if(e=r[n],e.type===t)return e},p=function(t){var e,n,r,a,i,o;for(r=!0,a=0,n=(t+"").split("").reverse(),i=0,o=n.length;i<o;i++)e=n[i],e=parseInt(e,10),(r=!r)&&(e*=2),e>9&&(e-=9),a+=e;return a%10===0},h=function(t){var e;return null!=t.prop("selectionStart")&&t.prop("selectionStart")!==t.prop("selectionEnd")||!(null==("undefined"!=typeof document&&null!==document&&null!=(e=document.selection)?e.createRange:void 0)||!document.selection.createRange().text)},$=function(t,e){var n,r,a,i,o,l;try{r=e.prop("selectionStart")}catch(u){i=u,r=null}if(o=e.val(),e.val(t),null!==r&&e.is(":focus"))return r===o.length&&(r=t.length),o!==t&&(l=o.slice(r-1,+r+1||9e9),n=t.slice(r-1,+r+1||9e9),a=t[r],/\d/.test(a)&&l===""+a+" "&&n===" "+a&&(r+=1)),e.prop("selectionStart",r),e.prop("selectionEnd",r)},m=function(t){var e,n,r,a,i,o,l,u;for(null==t&&(t=""),r="0123456789",a="0123456789",o="",e=t.split(""),l=0,u=e.length;l<u;l++)n=e[l],i=r.indexOf(n),i>-1&&(n=a[i]),o+=n;return o},d=function(e){var n;return n=t(e.currentTarget),setTimeout(function(){var t;return t=n.val(),t=m(t),t=t.replace(/\D/g,""),$(t,n)})},g=function(e){var n;return n=t(e.currentTarget),setTimeout(function(){var e;return e=n.val(),e=m(e),e=t.payment.formatCardNumber(e),$(e,n)})},l=function(n){var r,a,i,o,l,u,s;if(i=String.fromCharCode(n.which),/^\d+$/.test(i)&&(r=t(n.currentTarget),s=r.val(),a=e(s+i),o=(s.replace(/\D/g,"")+i).length,u=16,a&&(u=a.length[a.length.length-1]),!(o>=u||null!=r.prop("selectionStart")&&r.prop("selectionStart")!==s.length)))return l=a&&"amex"===a.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/,l.test(s)?(n.preventDefault(),setTimeout(function(){return r.val(s+" "+i)})):l.test(s+i)?(n.preventDefault(),setTimeout(function(){return r.val(s+i+" ")})):void 0},i=function(e){var n,r;if(n=t(e.currentTarget),r=n.val(),8===e.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s$/.test(r)?(e.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d\s$/,""))})):/\s\d?$/.test(r)?(e.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d$/,""))})):void 0},v=function(e){var n;return n=t(e.currentTarget),setTimeout(function(){var e;return e=n.val(),e=m(e),e=t.payment.formatExpiry(e),$(e,n)})},u=function(e){var n,r,a;if(r=String.fromCharCode(e.which),/^\d+$/.test(r))return n=t(e.currentTarget),a=n.val()+r,/^\d$/.test(a)&&"0"!==a&&"1"!==a?(e.preventDefault(),setTimeout(function(){return n.val("0"+a+" / ")})):/^\d\d$/.test(a)?(e.preventDefault(),setTimeout(function(){var t,e;return t=parseInt(a[0],10),e=parseInt(a[1],10),e>2&&0!==t?n.val("0"+t+" / "+e):n.val(""+a+" / ")})):void 0},s=function(e){var n,r,a;if(r=String.fromCharCode(e.which),/^\d+$/.test(r))return n=t(e.currentTarget),a=n.val(),/^\d\d$/.test(a)?n.val(""+a+" / "):void 0},c=function(e){var n,r,a;if(a=String.fromCharCode(e.which),"/"===a||" "===a)return n=t(e.currentTarget),r=n.val(),/^\d$/.test(r)&&"0"!==r?n.val("0"+r+" / "):void 0},o=function(e){var n,r;if(n=t(e.currentTarget),r=n.val(),8===e.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s\/\s$/.test(r)?(e.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d\s\/\s$/,""))})):void 0},f=function(e){var n;return n=t(e.currentTarget),setTimeout(function(){var t;return t=n.val(),t=m(t),t=t.replace(/\D/g,"").slice(0,4),$(t,n)})},w=function(t){var e;return!(!t.metaKey&&!t.ctrlKey)||32!==t.which&&(0===t.which||(t.which<33||(e=String.fromCharCode(t.which),!!/[\d\s]/.test(e))))},C=function(n){var r,a,i,o;if(r=t(n.currentTarget),i=String.fromCharCode(n.which),/^\d+$/.test(i)&&!h(r))return o=(r.val()+i).replace(/\D/g,""),a=e(o),a?o.length<=a.length[a.length.length-1]:o.length<=16},T=function(e){var n,r,a;if(n=t(e.currentTarget),r=String.fromCharCode(e.which),/^\d+$/.test(r)&&!h(n))return a=n.val()+r,a=a.replace(/\D/g,""),!(a.length>6)&&void 0},y=function(e){var n,r,a;if(n=t(e.currentTarget),r=String.fromCharCode(e.which),/^\d+$/.test(r)&&!h(n))return a=n.val()+r,a.length<=4},D=function(e){var n,a,i,o,l;if(n=t(e.currentTarget),l=n.val(),o=t.payment.cardType(l)||"unknown",!n.hasClass(o))return a=function(){var t,e,n;for(n=[],t=0,e=r.length;t<e;t++)i=r[t],n.push(i.type);return n}(),n.removeClass("unknown"),n.removeClass(a.join(" ")),n.addClass(o),n.toggleClass("identified","unknown"!==o),n.trigger("payment.cardType",o)},t.payment.fn.formatCardCVC=function(){return this.on("keypress",w),this.on("keypress",y),this.on("paste",f),this.on("change",f),this.on("input",f),this},t.payment.fn.formatCardExpiry=function(){return this.on("keypress",w),this.on("keypress",T),this.on("keypress",u),this.on("keypress",c),this.on("keypress",s),this.on("keydown",o),this.on("change",v),this.on("input",v),this},t.payment.fn.formatCardNumber=function(){return this.on("keypress",w),this.on("keypress",C),this.on("keypress",l),this.on("keydown",i),this.on("keyup",D),this.on("paste",g),this.on("change",g),this.on("input",g),this.on("input",D),this},t.payment.fn.restrictNumeric=function(){return this.on("keypress",w),this.on("paste",d),this.on("change",d),this.on("input",d),this},t.payment.fn.cardExpiryVal=function(){return t.payment.cardExpiryVal(t(this).val())},t.payment.cardExpiryVal=function(t){var e,n,r,a;return a=t.split(/[\s\/]+/,2),e=a[0],r=a[1],2===(null!=r?r.length:void 0)&&/^\d+$/.test(r)&&(n=(new Date).getFullYear(),n=n.toString().slice(0,2),r=n+r),e=parseInt(e,10),r=parseInt(r,10),{month:e,year:r}},t.payment.validateCardNumber=function(t){var n,r;return t=(t+"").replace(/\s+|-/g,""),!!/^\d+$/.test(t)&&(n=e(t),!!n&&(r=t.length,k.call(n.length,r)>=0&&(n.luhn===!1||p(t))))},t.payment.validateCardExpiry=function(e,n){var r,a,i;return"object"==typeof e&&"month"in e&&(i=e,e=i.month,n=i.year),!(!e||!n)&&(e=t.trim(e),n=t.trim(n),!!/^\d+$/.test(e)&&(!!/^\d+$/.test(n)&&(1<=e&&e<=12&&(2===n.length&&(n=n<70?"20"+n:"19"+n),4===n.length&&(a=new Date(n,e),r=new Date,a.setMonth(a.getMonth()-1),a.setMonth(a.getMonth()+1,1),a>r)))))},t.payment.validateCardCVC=function(e,r){var a,i;return e=t.trim(e),!!/^\d+$/.test(e)&&(a=n(r),null!=a?(i=e.length,k.call(a.cvcLength,i)>=0):e.length>=3&&e.length<=4)},t.payment.cardType=function(t){var n;return t?(null!=(n=e(t))?n.type:void 0)||null:null},t.payment.formatCardNumber=function(n){var r,a,i,o;return n=n.replace(/\D/g,""),(r=e(n))?(i=r.length[r.length.length-1],n=n.slice(0,i),r.format.global?null!=(o=n.match(r.format))?o.join(" "):void 0:(a=r.format.exec(n),null!=a?(a.shift(),a=t.grep(a,function(t){return t}),a.join(" ")):void 0)):n},t.payment.formatExpiry=function(t){var e,n,r,a;return(n=t.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(e=n[1]||"",r=n[2]||"",a=n[3]||"",a.length>0?r=" / ":" /"===r?(e=e.substring(0,1),r=""):2===e.length||r.length>0?r=" / ":1===e.length&&"0"!==e&&"1"!==e&&(e="0"+e,r=" / "),e+r+a):""}}).call(this);
6
+ jQuery.fn.giveHintCss=function(t,a){return this.each(function(){var i=jQuery(this);a=jQuery.extend({label:""},a);var e=i.next("span.give-hint-tooltip-js");if(!e.length){var n=a.label.length?a.label:i.data("hint-aria-label");if(!n.length)return;i.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+n+'"></span>'),e=i.next(),e.css({top:-i.outerHeight(),left:-(i.outerWidth()/2)})}"show"===t?e.addClass("hint--always"):"hide"===t&&e.removeClass("hint--always")})},jQuery(document).ready(function(t){function a(a){if(!a.is('[class*="hint"]')){var i=a.attr("class"),e=[],n=a.data("tooltip").split(" ").length;i&&(i=i.split(" "),e=t.grep(i,function(t){return-1!==t.indexOf("give-icon")}),e.length&&(e=e.join(" "),a.removeClass(e),a.append('<i class="'+e+'"></i>'))),a.addClass("hint--top"),15<n?a.addClass("hint--large"):7<n&&a.addClass("hint--medium"),a.attr("aria-label",a.data("tooltip"))}}var i=t("[data-tooltip]");i.length&&i.each(function(i,e){e=e instanceof jQuery?e:t(e),a(e)}),t("body").on("hover","[data-tooltip]",function(){a(t(this))})});
7
+ function give_load_gateway(e,i){var t=jQuery(e).find("#give-payment-mode-select .give-loading-text"),a=jQuery(e).find("#give-amount").val(),n=jQuery(e).find('input[name="give-form-id"]').val();t.fadeIn();var o=jQuery(e).data();1!=o["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),jQuery.post(give_scripts.ajaxurl+"?payment-mode="+i,{action:"give_load_gateway",give_total:a,give_form_id:n,give_payment_mode:i},function(i){jQuery(e).unblock(),jQuery(e).find("#give_purchase_form_wrap").html(i),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),jQuery(document).trigger("give_gateway_loaded",[i,jQuery(e).attr("id")])})}var give_scripts,give_global_vars;jQuery(document).ready(function(e){e(".give-loading-text").hide(),e(document).on("click",".give-checkout-login",function(i){var t=e(this),a=e(this).parents("form"),n=e(a).find('[id^="give-checkout-login-register"] .give-loading-text'),o={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};return n.show(),e.post(give_scripts.ajaxurl,o,function(i){e(a).find("[id^=give-checkout-login-register]").html(i),e(a).find(".give-submit-button-wrap").hide()}).done(function(){n.hide(),give_fl_trigger()}),!1}),e(document).on("click",".give-checkout-register-cancel",function(i){i.preventDefault();var t=e(this),a=e(this).parents("form"),n={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};e.post(give_scripts.ajaxurl,n,function(i){e(a).find("[id^=give-checkout-login-register]").html(e.parseJSON(i.fields)),e(a).find(".give-submit-button-wrap").show()}).done(function(){give_fl_trigger()})}),e(document).on("click","[id^=give-login-fields] input[type=submit]",function(i){i.preventDefault();var t=e(this).val(),a=e(this).parents("form");e(this).val(give_global_vars.purchase_loading),a.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var n={action:"give_process_donation_login",give_ajax:1,give_user_login:a.find("[name=give_user_login]").val(),give_user_pass:a.find("[name=give_user_pass]").val(),give_form_id:a.find("[name=give-form-id]").val()};e.post(give_global_vars.ajaxurl,n,function(i){void 0!=e.trim(typeof i.success)&&1==i.success&&void 0!=typeof i.data?(a.find(".give_errors").remove(),a.find("#give-payment-mode-select").after(i.data),a.find(".give_notices.give_errors").delay(5e3).slideUp(),Give.form.fn.resetNonce(a),give_load_gateway(a,a.find(".give-gateway-option-selected input").val())):(a.find("[id^=give-login-fields] input[type=submit]").val(t),a.find(".give-loading-animation").fadeOut(),a.find(".give_errors").remove(),a.find("[id^=give-user-login-submit]").before(i.data))})}),e("select#give-gateway, input.give-gateway").on("change",function(i){i.preventDefault();var t=e(this).val();return"0"==t?(console.log("There was a problem loading the selected gateway"),!1):(give_load_gateway(e(this).parents("form"),t),!1)}),e("body").on("click","#give-confirm-email-btn",function(i){var t=e(this),a={action:"give_confirm_email_for_donations_access",email:t.data("email"),nonce:give_scripts.ajaxNonce};return t.text(give_global_vars.loading),t.attr("disabled","disabled"),e.post(give_global_vars.ajaxurl,a,function(e){e=JSON.parse(e),"error"===e.status?(t.closest("#give_user_history tfoot").hide(),t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),t.hide(),t.closest(".give-security-button-wrap").find("span").show())}),!1}),e("body").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',function(i){var t=e(this).parents("form.give-form"),a=t.find('input[type="submit"].give-submit + .give-loading-animation');a.fadeIn();var n=t.get(0);if("function"!=typeof n.checkValidity||n.checkValidity()!==!1||(a.fadeOut(),(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1)!=!1)){i.preventDefault();var o=e(this).val();e(this).val(give_global_vars.purchase_loading),Give.form.fn.disable(t,!0),e.post(give_global_vars.ajaxurl,t.serialize()+"&action=give_process_donation&give_ajax=true",function(i){"success"==e.trim(i)?(t.find(".give_errors").remove(),e(n).submit(),t.trigger("give_form_validation_passed")):(t.find('input[type="submit"].give-submit').val(o),a.fadeOut(),t.find(".give_errors").remove(),t.find('#give_purchase_submit input[type="submit"].give-submit').before(i),Give.form.fn.disable(t,!1))})}})});
8
+ var give_scripts,give_global_vars,Give="undefined"!=typeof Give?Give:{};Give={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit"),this.fn.__initialize_cache();t<e.length;)Give[e[t]].init&&Give[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,i){var n={symbol:"",decimal:parseInt(give_global_vars.decimal_separator),thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals,currency:give_global_vars.currency};if(e=e.toString().trim(),i="undefined"==typeof i?{}:i,i.length&&(n={symbol:"",decimal:Give.form.fn.getInfo("decimal_separator",i),thousand:Give.form.fn.getInfo("thousands_separator",i),precision:Give.form.fn.getInfo("number_decimals",i),currency:Give.form.fn.getInfo("currency_code",i)}),t=jQuery.extend(n,t),t.precision=parseInt(t.precision),"INR"===t.currency){var a,r,o=accounting.unformat(e,".").toString(),d="",f=o.indexOf(".");for(-1!==f&&t.precision?(d=Number(o.substr(parseInt(f))).toFixed(t.precision).toString().substr(1),o=o.substr(0,parseInt(f)),d.length?t.precision+1>d.length&&(d=(d+"000000000").substr(0,t.precision+1)):d=".0000000000".substr(0,parseInt(f)+1)):d=".000000000".substr(0,t.precision+1),a=o.substr(-3),r=o.substr(0,parseInt(o.length)-3);r.length>0;)a=r.substr(-2)+t.thousand+a,r=r.substr(0,parseInt(r.length)-2);d.length&&(a+=d),e=a,void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=i.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){return"undefined"==typeof give_global_vars[e]?"":give_global_vars[e]},setCache:function(e,t,i){i.length?Give.cache["form_"+Give.form.fn.getInfo("form-id",i)][e]=t:Give.cache[e]=t},getCache:function(e,t){var i;return i=t.length?Give.cache["form_"+Give.form.fn.getInfo("form-id",t)][e]:Give.cache[e],i="undefined"==typeof i?"":i},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]})}},cache:{}},Give.form={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),window.onload=function(){Give.form.fn.__sendBackToForm()}},fn:{disable:function(e,t){return!!e.length&&void e.find(".give-submit").prop("disabled",t)},formatAmount:function(e,t,i){return t.length?Give.fn.formatCurrency(e,i,t):e},getInfo:function(e,t){var i="";if(t="undefined"!=typeof t?t:{},!e.length||!t.length)return i;switch(e){case"gateways":i=[],jQuery.each(t.find('input[name="payment-mode"]'),function(e,t){t=t instanceof jQuery?t:jQuery(t),i.push(t.val().trim())});break;case"form-type":t.hasClass("give-form-type-set")?i="set":t.hasClass("give-form-type-multi")&&(i="multi");break;case"form-id":i=t.find('input[name="give-form-id"]').val();break;default:i=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e),"undefined"!=typeof i?i.trim():i}return i},setInfo:function(e,t,i,n){if(!i.length)return!1;switch(e="undefined"==typeof e?"data":e){case"nonce":i.find('input[name="_wpnonce"]').val(t)}if("undefined"!=typeof n&&!n.length)return!1;switch(e){case"attr":i.attr(n,t);break;default:i.data(n,t)}return!0},getGateway:function(e){var t="";return e.length?(t=e.find('input[name="payment-mode"]:checked').val().trim(),"undefined"!=typeof t?t:""):t},getVariablePrices:function(e){var t,i=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,function(t,n){n=n instanceof jQuery?n:jQuery(n);var a=Give.form.fn.getInfo("decimal_separator",e);i.push({price_id:n.data("price-id"),amount:Give.fn.unFormatCurrency(n.val(),a)})}),i):i},getPriceID:function(e,t){var i=this.getVariablePrices(e),n=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),a=Give.fn.getCache("amount_"+n,e)?Give.fn.getCache("amount_"+n,e):-1;return t="undefined"==typeof t||t,i.length&&-1===a&&(t?(jQuery.each(i,function(e,t){if(t.amount===n)return a=t.price_id,!1}),-1===a&&this.getMinimumAmount(e)<=n&&(a="custom")):a=jQuery('input[name="give-price-id"]',e).val()),a},getMinimumAmount:function(e){return Give.fn.unFormatCurrency(e.find('input[name="give-form-minimum"]').val(),Give.form.fn.getInfo("decimal_separator",e))},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return"undefined"!=typeof t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="_wpnonce"]').val();return"undefined"!=typeof t&&t||(t=""),t},resetNonce:function(e){return!!e.length&&void jQuery.post(give_scripts.ajaxurl,{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(t){Give.form.fn.setInfo("nonce",t.data,e,"")})},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t="undefined"==typeof t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').focus().addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),i=e.val(),n=e.data("price-id");if("undefined"==typeof n&&(n=e.find("option:selected").data("price-id")),"custom"===i)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(i),t.find("span.give-amount-top").text(i);var a=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).data("amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").data("total"),a)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,i,n]),jQuery(document).trigger("give_donation_value_updated",[t,i,n])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var i=jQuery("body").find("#give-form-"+e+"-wrap"),n=i.find("form.give-form"),a=i.hasClass("give-display-modal"),r=i.hasClass("give-display-reveal");n.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),n.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var o=Give.fn.getParameterByName("level-id"),d=n.find('*[data-price-id="'+o+'"]');d.length>0&&this.autoSetMultiLevel(d),a?give_open_form_modal(i,n):r&&(n.find(".give-btn-reveal").hide(),n.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){var t=this.getMinimumAmount(e),i=this.getAmount(e),n=this.getPriceID(e,!0);return-1<i&&i>=t||-1!==n},field:{formatCreditCard:function(e){e.each(function(e,t){t=jQuery(t);var i=t.find(".card-number"),n=t.find(".card-cvc"),a=t.find(".card-expiry");i.length&&(i.payment("formatCardNumber"),n.payment("formatCardCVC"),a.payment("formatCardExpiry"))})}}}},Give.notice={fn:{renderNotice:function(e,t){var i,n="";switch(t="undefined"!=typeof t?t:{},e){case"bad_minimum":i=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>")}return t.length?void i.insertBefore(t.find(".give-total-wrap")).show():n},getNotice:function(e,t){if(!e.length)return null;var i="";switch(e){case"bad_minimum":t.length&&(i=Give.fn.getGlobalVar("bad_minimum")+" "+Give.fn.formatCurrency(Give.form.fn.getMinimumAmount(t),{symbol:Give.form.fn.getInfo("currency_symbol",t)},t))}return i}}},jQuery(function(e){function t(){var t=e(this),i=t.parents("form");if("card_state"!==t.attr("id")){i.find("#card_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var a={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:a,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){var t="",a=e.states_label;t=void 0!=typeof e.states_found&&1==e.states_found?e.data:'<input type="text" id="card_state" name="card_state" class="cart-state give-input required" placeholder="'+a+'" value="'+e.default_state+'"/>',!1===i.hasClass("float-labels-enabled")?"undefined"!=typeof e.states_require&&1==e.states_require?i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").removeClass("give-hidden"):i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").addClass("give-hidden"):i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label").text(a),i.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .state-label-text").text(a),i.find('input[name="card_state"], select[name="card_state"]').replaceWith(t),void 0!=typeof e.show_field&&1==e.show_field?(i.find("p#give-card-state-wrap").removeClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-last"),i.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(i.find("p#give-card-state-wrap").addClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-wide"),i.find("p#give-card-zip-wrap").removeClass("form-row-last")),n.trigger("give_checkout_billing_address_updated",[e,i.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}var i=jQuery("form.give-form"),n=e(document);e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("change","#give_cc_address input.card_state, #give_cc_address select",t),n.on("give_gateway_loaded",function(){Give.form.fn.field.formatCreditCard(i)}),n.on("submit","#give_payment_mode",function(){var t=Give.form.fn.getGateway(e(this).closest("form"));if(!t.length)return alert(Give.fn.getGlobalVar("no_gateway")),!1}),n.on("click","#give-payment-mode-select input",function(){var t,i=e(this).parents("form"),n=i.find("#give-payment-mode-select li"),a=i.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();n.removeClass("give-gateway-option-selected"),n.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),t=Give.form.fn.getGateway(i),i.attr("action",i.attr("action").replace("payment-mode="+a,"payment-mode="+t))}),n.on("focus",".give-donation-amount .give-text-input",function(t){var i=e(this).parents("form");e(this).removeClass("invalid-amount");var n=i.find(".give-final-total-amount").data("total"),a=Give.form.fn.getInfo("decimal_separator",i);e(this).data("amount",Give.fn.unFormatCurrency(n,a)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),i.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),i.find(".give-btn-level-custom").addClass("give-default-level"),i.find(".give-radio-input").prop("checked",!1),i.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),i.find(".give-select-level").prop("selected",!1),i.find(".give-select-level .give-donation-level-custom").prop("selected",!0)}),n.on("blur",".give-donation-amount .give-text-input",function(t,i,n,a){var r="undefined"!=typeof i?i:e(this).closest("form"),o=e(this).data("amount"),d="undefined"!=typeof n?n:e(this).val(),f=Give.form.fn.getInfo("decimal_separator",r),l=Give.form.fn.getMinimumAmount(r),s=0===d?l:Give.fn.unFormatCurrency(d,f),u=Give.form.fn.formatAmount(s,r,{});if(a="undefined"==typeof a?Give.form.fn.getPriceID(r,!0):a,Give.fn.setCache("amount_"+s,a,r),e(this).val(u),Give.form.fn.isValidDonationAmount(r))e(this).removeClass("give-invalid-amount"),r.find(".give-invalid-minimum").slideUp(300,function(){e(this).remove()}),Give.form.fn.disable(r,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(r,!0);var c=r.find(".give-invalid-minimum");0===c.length&&Give.notice.fn.renderNotice("bad_minimum",r)}o!==s&&r.find(".give-final-total-amount").data("total",s).text(Give.fn.formatCurrency(s,{symbol:Give.form.fn.getInfo("currency_symbol",r),position:Give.form.fn.getInfo("currency_position",r)},r)),-1!==a&&(e('input[name="give-price-id"]',r).val(a),r.find(".give-amount-hidden").val(Give.form.fn.formatAmount(s,r,{})),r.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(r,a)),e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in")}),n.on("click touchend",".give-donation-level-btn",function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click touchend",".give-radio-input-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("change",".give-select-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click",".give_terms_links",function(t){t.preventDefault();var i=e(this).closest("fieldset");return e("[class^=give_terms-]",i).slideToggle(),e("a.give_terms_links",i).toggle(),!1}),e('label[for^="give-radio-level"]').on("click",function(t){var i=e(this).closest("form"),n=i.find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())})}),jQuery(window).load(function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(e){var t=jQuery(this),i=t.parents("form.give-form"),n=t.attr("id"),a=i.find(".card-number"),r=i.find(".card-cvc"),o=i.find(".card-expiry"),d=jQuery.payment.cardType(a.val()),f=!1;switch(e.type){case"focusout":n.indexOf("card_number")>-1?(f=!jQuery.payment.validateCardNumber(a.val()),a.toggleError(f)):n.indexOf("card_cvc")>-1?(f=!jQuery.payment.validateCardCVC(r.val(),d),r.toggleError(f)):n.indexOf("card_expiry")>-1&&(f=!jQuery.payment.validateCardExpiry(o.payment("cardExpiryVal")),o.toggleError(f)),Give.form.fn.disable(t.parents("form"),f);break;default:if(t.hasClass("error")&&t.removeClass("error"),n.indexOf("card_number")>-1){var l=i.find(".card-type");null===d?(l.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):l.removeClass().addClass("card-type "+d)}else if(n.indexOf("card_expiry")>-1){var s=o.payment("cardExpiryVal");i.find(".card-expiry-month").val(s.month),i.find(".card-expiry-year").val(s.year)}}})});
9
+ function give_open_form_modal(e,i){var a="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden";jQuery.magnificPopup.open({mainClass:give_global_vars.magnific_options.main_class,closeOnBgClick:give_global_vars.magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:i,type:"inline"},callbacks:{beforeOpen:function(){if(jQuery("body").addClass("give-modal-open"),e.hasClass("give-display-button-only")&&!i.data("content")){var a=jQuery(".give-form-content-wrap",e),t=jQuery(".give-form-title",e),n=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),r=jQuery(".give_errors",e);a.length&&!jQuery(".give-form-content-wrap",i).length&&(a.hasClass("give_post_form-content")?i.append(a):i.prepend(a)),r.length&&!jQuery(".give_errors",i).length&&r.each(function(e,a){i.prepend(jQuery(a))}),o.length&&!jQuery(">.give_error",i).length&&o.each(function(e,a){i.prepend(jQuery(a))}),n.length&&!jQuery(".give-goal-progress",i).length&&i.prepend(n),t.length&&!jQuery(".give-form-title",i).length&&i.prepend(t),i.data("content","loaded")}},open:function(){var t=jQuery(".mfp-content");t.outerWidth()>=500&&t.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(a=i.children().not(".give-hidden, .give-btn-modal")),i.children().not(a).hide()},close:function(){i.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),i.children().not(a).show()}}})}function give_fl_trigger(){give_float_labels instanceof FloatLabels?give_float_labels.rebuild():give_float_labels=new FloatLabels(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple]",prioritize:"placeholder",prefix:"give-fl-",style:"give"})}function give_change_html5_form_field_validation_message(){var e,i=jQuery(".give-form");i.length&&jQuery.each(i,function(i,a){e=jQuery("input",a),e.length&&jQuery.each(e,function(e,i){i=jQuery(i).get(0),give_global_vars.form_translation.hasOwnProperty(i.name)&&(i.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(give_global_vars.form_translation[i.name])})})})}function update_profile_state_field(){var e=jQuery(this),i=e.parents("form");if("give_address_country"===e.attr("id")){i.find("#give_address_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var a={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:a,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){var a="",t=e.states_label;a=void 0!=typeof e.states_found&&1==e.states_found?e.data:'<input type="text" id="give_address_state" name="give_address_state" class="text give-input" placeholder="'+t+'" value="'+e.default_state+'"/>',i.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(a),void 0!=typeof e.show_field&&1==e.show_field?(i.find("p#give-card-state-wrap").removeClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-last"),i.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(i.find("p#give-card-state-wrap").addClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-wide"),i.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}var give_scripts,give_float_labels;jQuery(function(e){var i=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),i.on("click touchend",".give-disabled",function(e){return e.preventDefault(),!1}),i.on("give_gateway_loaded",function(e,i,a){give_fl_trigger()}),i.on("give_checkout_billing_address_updated",function(i,a,t){e("form#"+t).hasClass("float-labels-enabled")&&give_fl_trigger()}),i.on("click",".give-btn-reveal",function(i){i.preventDefault();var a=e(this),t=e(this).parents("form"),n="#give-payment-mode-select",o=e(n),r="";return a.hide(),e("li",o).length>1&&(r=n+", "),t.find(r+"#give_purchase_form_wrap").slideDown(),!1}),i.on("click",".give-btn-modal",function(i){i.preventDefault();var a=e(this).parents("div.give-form-wrap"),t=a.find("form.give-form"),n=t.find("#give-amount"),o=n.val();return!o||o<=0?(n.focus(),!1):void give_open_form_modal(a,t)});var a=jQuery('.give_notice[data-dismissible="auto"]');a.length&&a.each(function(i,a){a=e(a),window.setTimeout(function(){a.slideUp()},a.data("dismiss-interval"))}),i.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field)});
 
assets/js/frontend/give.js CHANGED
@@ -21,6 +21,12 @@ jQuery( function( $ ) {
21
  // Set custom validation message.
22
  give_change_html5_form_field_validation_message();
23
 
 
 
 
 
 
 
24
  doc.on( 'give_gateway_loaded', function( ev, response, form_id ) {
25
  // Trigger float-labels
26
  give_fl_trigger();
@@ -202,6 +208,7 @@ function give_fl_trigger() {
202
  give_float_labels = new FloatLabels( '.float-labels-enabled', {
203
  exclude: '#give-amount, .give-select-level, [multiple]',
204
  prioritize: 'placeholder',
 
205
  style: 'give',
206
  } );
207
  }
21
  // Set custom validation message.
22
  give_change_html5_form_field_validation_message();
23
 
24
+ // Disable button if it have give-disabled class init.
25
+ doc.on( 'click touchend', '.give-disabled', function ( e ) {
26
+ e.preventDefault();
27
+ return false;
28
+ } );
29
+
30
  doc.on( 'give_gateway_loaded', function( ev, response, form_id ) {
31
  // Trigger float-labels
32
  give_fl_trigger();
208
  give_float_labels = new FloatLabels( '.float-labels-enabled', {
209
  exclude: '#give-amount, .give-select-level, [multiple]',
210
  prioritize: 'placeholder',
211
+ prefix: 'give-fl-',
212
  style: 'give',
213
  } );
214
  }
assets/js/frontend/give.min.js CHANGED
@@ -1 +1 @@
1
- function give_open_form_modal(e,i){var a="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden";jQuery.magnificPopup.open({mainClass:give_global_vars.magnific_options.main_class,closeOnBgClick:give_global_vars.magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:i,type:"inline"},callbacks:{beforeOpen:function(){if(jQuery("body").addClass("give-modal-open"),e.hasClass("give-display-button-only")&&!i.data("content")){var a=jQuery(".give-form-content-wrap",e),t=jQuery(".give-form-title",e),n=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),r=jQuery(".give_errors",e);a.length&&!jQuery(".give-form-content-wrap",i).length&&(a.hasClass("give_post_form-content")?i.append(a):i.prepend(a)),r.length&&!jQuery(".give_errors",i).length&&r.each(function(e,a){i.prepend(jQuery(a))}),o.length&&!jQuery(">.give_error",i).length&&o.each(function(e,a){i.prepend(jQuery(a))}),n.length&&!jQuery(".give-goal-progress",i).length&&i.prepend(n),t.length&&!jQuery(".give-form-title",i).length&&i.prepend(t),i.data("content","loaded")}},open:function(){var t=jQuery(".mfp-content");t.outerWidth()>=500&&t.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(a=i.children().not(".give-hidden, .give-btn-modal")),i.children().not(a).hide()},close:function(){i.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),i.children().not(a).show()}}})}function give_fl_trigger(){give_float_labels instanceof FloatLabels?give_float_labels.rebuild():give_float_labels=new FloatLabels(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple]",prioritize:"placeholder",style:"give"})}function give_change_html5_form_field_validation_message(){var e,i=jQuery(".give-form");i.length&&jQuery.each(i,function(i,a){e=jQuery("input",a),e.length&&jQuery.each(e,function(e,i){i=jQuery(i).get(0),give_global_vars.form_translation.hasOwnProperty(i.name)&&(i.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(give_global_vars.form_translation[i.name])})})})}function update_profile_state_field(){var e=jQuery(this),i=e.parents("form");if("give_address_country"===e.attr("id")){i.find("#give_address_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var a={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:a,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){var a="",t=e.states_label;a=void 0!=typeof e.states_found&&1==e.states_found?e.data:'<input type="text" id="give_address_state" name="give_address_state" class="text give-input" placeholder="'+t+'" value="'+e.default_state+'"/>',i.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(a),void 0!=typeof e.show_field&&1==e.show_field?(i.find("p#give-card-state-wrap").removeClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-last"),i.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(i.find("p#give-card-state-wrap").addClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-wide"),i.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}var give_scripts,give_float_labels;jQuery(function(e){var i=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),i.on("give_gateway_loaded",function(e,i,a){give_fl_trigger()}),i.on("give_checkout_billing_address_updated",function(i,a,t){e("form#"+t).hasClass("float-labels-enabled")&&give_fl_trigger()}),i.on("click",".give-btn-reveal",function(i){i.preventDefault();var a=e(this),t=e(this).parents("form"),n="#give-payment-mode-select",o=e(n),r="";return a.hide(),e("li",o).length>1&&(r=n+", "),t.find(r+"#give_purchase_form_wrap").slideDown(),!1}),i.on("click",".give-btn-modal",function(i){i.preventDefault();var a=e(this).parents("div.give-form-wrap"),t=a.find("form.give-form"),n=t.find("#give-amount"),o=n.val();return!o||o<=0?(n.focus(),!1):void give_open_form_modal(a,t)});var a=jQuery('.give_notice[data-dismissible="auto"]');a.length&&a.each(function(i,a){a=e(a),window.setTimeout(function(){a.slideUp()},a.data("dismiss-interval"))}),i.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field)});
1
+ function give_open_form_modal(e,i){var a="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden";jQuery.magnificPopup.open({mainClass:give_global_vars.magnific_options.main_class,closeOnBgClick:give_global_vars.magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:i,type:"inline"},callbacks:{beforeOpen:function(){if(jQuery("body").addClass("give-modal-open"),e.hasClass("give-display-button-only")&&!i.data("content")){var a=jQuery(".give-form-content-wrap",e),t=jQuery(".give-form-title",e),n=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),r=jQuery(".give_errors",e);a.length&&!jQuery(".give-form-content-wrap",i).length&&(a.hasClass("give_post_form-content")?i.append(a):i.prepend(a)),r.length&&!jQuery(".give_errors",i).length&&r.each(function(e,a){i.prepend(jQuery(a))}),o.length&&!jQuery(">.give_error",i).length&&o.each(function(e,a){i.prepend(jQuery(a))}),n.length&&!jQuery(".give-goal-progress",i).length&&i.prepend(n),t.length&&!jQuery(".give-form-title",i).length&&i.prepend(t),i.data("content","loaded")}},open:function(){var t=jQuery(".mfp-content");t.outerWidth()>=500&&t.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(a=i.children().not(".give-hidden, .give-btn-modal")),i.children().not(a).hide()},close:function(){i.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),i.children().not(a).show()}}})}function give_fl_trigger(){give_float_labels instanceof FloatLabels?give_float_labels.rebuild():give_float_labels=new FloatLabels(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple]",prioritize:"placeholder",prefix:"give-fl-",style:"give"})}function give_change_html5_form_field_validation_message(){var e,i=jQuery(".give-form");i.length&&jQuery.each(i,function(i,a){e=jQuery("input",a),e.length&&jQuery.each(e,function(e,i){i=jQuery(i).get(0),give_global_vars.form_translation.hasOwnProperty(i.name)&&(i.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(give_global_vars.form_translation[i.name])})})})}function update_profile_state_field(){var e=jQuery(this),i=e.parents("form");if("give_address_country"===e.attr("id")){i.find("#give_address_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var a={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:a,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){var a="",t=e.states_label;a=void 0!=typeof e.states_found&&1==e.states_found?e.data:'<input type="text" id="give_address_state" name="give_address_state" class="text give-input" placeholder="'+t+'" value="'+e.default_state+'"/>',i.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(a),void 0!=typeof e.show_field&&1==e.show_field?(i.find("p#give-card-state-wrap").removeClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-last"),i.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(i.find("p#give-card-state-wrap").addClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-wide"),i.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}var give_scripts,give_float_labels;jQuery(function(e){var i=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),i.on("click touchend",".give-disabled",function(e){return e.preventDefault(),!1}),i.on("give_gateway_loaded",function(e,i,a){give_fl_trigger()}),i.on("give_checkout_billing_address_updated",function(i,a,t){e("form#"+t).hasClass("float-labels-enabled")&&give_fl_trigger()}),i.on("click",".give-btn-reveal",function(i){i.preventDefault();var a=e(this),t=e(this).parents("form"),n="#give-payment-mode-select",o=e(n),r="";return a.hide(),e("li",o).length>1&&(r=n+", "),t.find(r+"#give_purchase_form_wrap").slideDown(),!1}),i.on("click",".give-btn-modal",function(i){i.preventDefault();var a=e(this).parents("div.give-form-wrap"),t=a.find("form.give-form"),n=t.find("#give-amount"),o=n.val();return!o||o<=0?(n.focus(),!1):void give_open_form_modal(a,t)});var a=jQuery('.give_notice[data-dismissible="auto"]');a.length&&a.each(function(i,a){a=e(a),window.setTimeout(function(){a.slideUp()},a.data("dismiss-interval"))}),i.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field)});
assets/js/plugins/chosen.jquery.js CHANGED
@@ -1,8 +1,8 @@
1
  (function() {
2
- var $, AbstractChosen, Chosen, SelectParser, _ref,
3
- __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
4
- __hasProp = {}.hasOwnProperty,
5
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
6
 
7
  SelectParser = (function() {
8
  function SelectParser() {
@@ -19,24 +19,24 @@
19
  };
20
 
21
  SelectParser.prototype.add_group = function(group) {
22
- var group_position, option, _i, _len, _ref, _results;
23
  group_position = this.parsed.length;
24
  this.parsed.push({
25
  array_index: group_position,
26
  group: true,
27
- label: this.escapeExpression(group.label),
28
  title: group.title ? group.title : void 0,
29
  children: 0,
30
  disabled: group.disabled,
31
  classes: group.className
32
  });
33
- _ref = group.childNodes;
34
- _results = [];
35
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
36
- option = _ref[_i];
37
- _results.push(this.add_option(option, group_position, group.disabled));
38
  }
39
- return _results;
40
  };
41
 
42
  SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
@@ -70,47 +70,26 @@
70
  }
71
  };
72
 
73
- SelectParser.prototype.escapeExpression = function(text) {
74
- var map, unsafe_chars;
75
- if ((text == null) || text === false) {
76
- return "";
77
- }
78
- if (!/[\&\<\>\"\'\`]/.test(text)) {
79
- return text;
80
- }
81
- map = {
82
- "<": "&lt;",
83
- ">": "&gt;",
84
- '"': "&quot;",
85
- "'": "&#x27;",
86
- "`": "&#x60;"
87
- };
88
- unsafe_chars = /&(?!\w+;)|[\<\>\"\'\`]/g;
89
- return text.replace(unsafe_chars, function(chr) {
90
- return map[chr] || "&amp;";
91
- });
92
- };
93
-
94
  return SelectParser;
95
 
96
  })();
97
 
98
  SelectParser.select_to_array = function(select) {
99
- var child, parser, _i, _len, _ref;
100
  parser = new SelectParser();
101
- _ref = select.childNodes;
102
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
103
- child = _ref[_i];
104
  parser.add_node(child);
105
  }
106
  return parser.parsed;
107
  };
108
 
109
  AbstractChosen = (function() {
110
- function AbstractChosen(form_field, options) {
111
  this.form_field = form_field;
112
- this.options = options != null ? options : {};
113
- this.label_click_handler = __bind(this.label_click_handler, this);
114
  if (!AbstractChosen.browser_is_supported()) {
115
  return;
116
  }
@@ -124,13 +103,16 @@
124
  }
125
 
126
  AbstractChosen.prototype.set_default_values = function() {
127
- var _this = this;
128
- this.click_test_action = function(evt) {
129
- return _this.test_active_click(evt);
130
- };
131
- this.activate_action = function(evt) {
132
- return _this.activate_field(evt);
133
- };
 
 
 
134
  this.active_field = false;
135
  this.mouse_on_container = false;
136
  this.results_showing = false;
@@ -182,12 +164,13 @@
182
  };
183
 
184
  AbstractChosen.prototype.input_focus = function(evt) {
185
- var _this = this;
186
  if (this.is_multiple) {
187
  if (!this.active_field) {
188
- return setTimeout((function() {
189
- return _this.container_mousedown();
190
- }), 50);
 
 
191
  }
192
  } else {
193
  if (!this.active_field) {
@@ -197,12 +180,13 @@
197
  };
198
 
199
  AbstractChosen.prototype.input_blur = function(evt) {
200
- var _this = this;
201
  if (!this.mouse_on_container) {
202
  this.active_field = false;
203
- return setTimeout((function() {
204
- return _this.blur_test();
205
- }), 100);
 
 
206
  }
207
  };
208
 
@@ -215,12 +199,12 @@
215
  };
216
 
217
  AbstractChosen.prototype.results_option_build = function(options) {
218
- var content, data, data_content, shown_results, _i, _len, _ref;
219
  content = '';
220
  shown_results = 0;
221
- _ref = this.results_data;
222
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
223
- data = _ref[_i];
224
  data_content = '';
225
  if (data.group) {
226
  data_content = this.result_add_group(data);
@@ -273,7 +257,7 @@
273
  option_el.className = classes.join(" ");
274
  option_el.style.cssText = option.style;
275
  option_el.setAttribute("data-option-array-index", option.array_index);
276
- option_el.innerHTML = option.search_text;
277
  if (option.title) {
278
  option_el.title = option.title;
279
  }
@@ -295,7 +279,7 @@
295
  }
296
  group_el = document.createElement("li");
297
  group_el.className = classes.join(" ");
298
- group_el.innerHTML = group.search_text;
299
  if (group.title) {
300
  group_el.title = group.title;
301
  }
@@ -315,18 +299,18 @@
315
  };
316
 
317
  AbstractChosen.prototype.reset_single_select_options = function() {
318
- var result, _i, _len, _ref, _results;
319
- _ref = this.results_data;
320
- _results = [];
321
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
322
- result = _ref[_i];
323
  if (result.selected) {
324
- _results.push(result.selected = false);
325
  } else {
326
- _results.push(void 0);
327
  }
328
  }
329
- return _results;
330
  };
331
 
332
  AbstractChosen.prototype.results_toggle = function() {
@@ -346,18 +330,19 @@
346
  };
347
 
348
  AbstractChosen.prototype.winnow_results = function() {
349
- var escapedSearchText, highlightRegex, option, regex, results, results_group, searchText, startpos, text, _i, _len, _ref;
350
  this.no_results_clear();
351
  results = 0;
352
- searchText = this.get_search_text();
353
- escapedSearchText = searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
354
- regex = this.get_search_regex(escapedSearchText);
355
- highlightRegex = this.get_highlight_regex(escapedSearchText);
356
- _ref = this.results_data;
357
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
358
- option = _ref[_i];
359
  option.search_match = false;
360
  results_group = null;
 
 
361
  if (this.include_option_in_results(option)) {
362
  if (option.group) {
363
  option.group_match = false;
@@ -370,17 +355,20 @@
370
  }
371
  results_group.active_options += 1;
372
  }
373
- option.search_text = option.group ? option.label : option.html;
374
  if (!(option.group && !this.group_search)) {
375
- option.search_match = this.search_string_match(option.search_text, regex);
 
376
  if (option.search_match && !option.group) {
377
  results += 1;
378
  }
379
  if (option.search_match) {
380
- if (searchText.length) {
381
- startpos = option.search_text.search(highlightRegex);
382
- text = option.search_text.substr(0, startpos + searchText.length) + '</em>' + option.search_text.substr(startpos + searchText.length);
383
- option.search_text = text.substr(0, startpos) + '<em>' + text.substr(startpos);
 
 
384
  }
385
  if (results_group != null) {
386
  results_group.group_match = true;
@@ -392,9 +380,9 @@
392
  }
393
  }
394
  this.result_clear_highlight();
395
- if (results < 1 && searchText.length) {
396
  this.update_results_content("");
397
- return this.no_results(searchText);
398
  } else {
399
  this.update_results_content(this.results_option_build());
400
  return this.winnow_results_set_highlight();
@@ -402,45 +390,33 @@
402
  };
403
 
404
  AbstractChosen.prototype.get_search_regex = function(escaped_search_string) {
405
- var regex_anchor, regex_flag;
406
- regex_anchor = this.search_contains ? "" : "^";
407
- regex_flag = this.case_sensitive_search ? "" : "i";
408
- return new RegExp(regex_anchor + escaped_search_string, regex_flag);
409
- };
410
-
411
- AbstractChosen.prototype.get_highlight_regex = function(escaped_search_string) {
412
- var regex_anchor, regex_flag;
413
- regex_anchor = this.search_contains ? "" : "\\b";
414
  regex_flag = this.case_sensitive_search ? "" : "i";
415
- return new RegExp(regex_anchor + escaped_search_string, regex_flag);
416
  };
417
 
418
  AbstractChosen.prototype.search_string_match = function(search_string, regex) {
419
- var part, parts, _i, _len;
420
- if (regex.test(search_string)) {
421
- return true;
422
- } else if (this.enable_split_word_search && (search_string.indexOf(" ") >= 0 || search_string.indexOf("[") === 0)) {
423
- parts = search_string.replace(/\[|\]/g, "").split(" ");
424
- if (parts.length) {
425
- for (_i = 0, _len = parts.length; _i < _len; _i++) {
426
- part = parts[_i];
427
- if (regex.test(part)) {
428
- return true;
429
- }
430
- }
431
- }
432
  }
 
433
  };
434
 
435
  AbstractChosen.prototype.choices_count = function() {
436
- var option, _i, _len, _ref;
437
  if (this.selected_option_count != null) {
438
  return this.selected_option_count;
439
  }
440
  this.selected_option_count = 0;
441
- _ref = this.form_field.options;
442
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
443
- option = _ref[_i];
444
  if (option.selected) {
445
  this.selected_option_count += 1;
446
  }
@@ -457,8 +433,8 @@
457
  };
458
 
459
  AbstractChosen.prototype.keydown_checker = function(evt) {
460
- var stroke, _ref;
461
- stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
462
  this.search_field_scale();
463
  if (stroke !== 8 && this.pending_backstroke) {
464
  this.clear_backstroke();
@@ -500,8 +476,8 @@
500
  };
501
 
502
  AbstractChosen.prototype.keyup_checker = function(evt) {
503
- var stroke, _ref;
504
- stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
505
  this.search_field_scale();
506
  switch (stroke) {
507
  case 8:
@@ -538,20 +514,21 @@
538
  };
539
 
540
  AbstractChosen.prototype.clipboard_event_checker = function(evt) {
541
- var _this = this;
542
  if (this.is_disabled) {
543
  return;
544
  }
545
- return setTimeout((function() {
546
- return _this.results_search();
547
- }), 50);
 
 
548
  };
549
 
550
  AbstractChosen.prototype.container_width = function() {
551
  if (this.options.width != null) {
552
  return this.options.width;
553
  } else {
554
- return "" + this.form_field.offsetWidth + "px";
555
  }
556
  };
557
 
@@ -603,7 +580,7 @@
603
  };
604
 
605
  AbstractChosen.prototype.get_no_results_html = function(terms) {
606
- return "<li class=\"no-results\">\n " + this.results_none_found + " <span>" + terms + "</span>\n</li>";
607
  };
608
 
609
  AbstractChosen.browser_is_supported = function() {
@@ -650,12 +627,11 @@
650
  }
651
  });
652
 
653
- Chosen = (function(_super) {
654
- __extends(Chosen, _super);
655
 
656
  function Chosen() {
657
- _ref = Chosen.__super__.constructor.apply(this, arguments);
658
- return _ref;
659
  }
660
 
661
  Chosen.prototype.setup = function() {
@@ -712,91 +688,138 @@
712
  };
713
 
714
  Chosen.prototype.register_observers = function() {
715
- var _this = this;
716
- this.container.bind('touchstart.chosen', function(evt) {
717
- _this.container_mousedown(evt);
718
- });
719
- this.container.bind('touchend.chosen', function(evt) {
720
- _this.container_mouseup(evt);
721
- });
722
- this.container.bind('mousedown.chosen', function(evt) {
723
- _this.container_mousedown(evt);
724
- });
725
- this.container.bind('mouseup.chosen', function(evt) {
726
- _this.container_mouseup(evt);
727
- });
728
- this.container.bind('mouseenter.chosen', function(evt) {
729
- _this.mouse_enter(evt);
730
- });
731
- this.container.bind('mouseleave.chosen', function(evt) {
732
- _this.mouse_leave(evt);
733
- });
734
- this.search_results.bind('mouseup.chosen', function(evt) {
735
- _this.search_results_mouseup(evt);
736
- });
737
- this.search_results.bind('mouseover.chosen', function(evt) {
738
- _this.search_results_mouseover(evt);
739
- });
740
- this.search_results.bind('mouseout.chosen', function(evt) {
741
- _this.search_results_mouseout(evt);
742
- });
743
- this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen', function(evt) {
744
- _this.search_results_mousewheel(evt);
745
- });
746
- this.search_results.bind('touchstart.chosen', function(evt) {
747
- _this.search_results_touchstart(evt);
748
- });
749
- this.search_results.bind('touchmove.chosen', function(evt) {
750
- _this.search_results_touchmove(evt);
751
- });
752
- this.search_results.bind('touchend.chosen', function(evt) {
753
- _this.search_results_touchend(evt);
754
- });
755
- this.form_field_jq.bind("chosen:updated.chosen", function(evt) {
756
- _this.results_update_field(evt);
757
- });
758
- this.form_field_jq.bind("chosen:activate.chosen", function(evt) {
759
- _this.activate_field(evt);
760
- });
761
- this.form_field_jq.bind("chosen:open.chosen", function(evt) {
762
- _this.container_mousedown(evt);
763
- });
764
- this.form_field_jq.bind("chosen:close.chosen", function(evt) {
765
- _this.close_field(evt);
766
- });
767
- this.search_field.bind('blur.chosen', function(evt) {
768
- _this.input_blur(evt);
769
- });
770
- this.search_field.bind('keyup.chosen', function(evt) {
771
- _this.keyup_checker(evt);
772
- });
773
- this.search_field.bind('keydown.chosen', function(evt) {
774
- _this.keydown_checker(evt);
775
- });
776
- this.search_field.bind('focus.chosen', function(evt) {
777
- _this.input_focus(evt);
778
- });
779
- this.search_field.bind('cut.chosen', function(evt) {
780
- _this.clipboard_event_checker(evt);
781
- });
782
- this.search_field.bind('paste.chosen', function(evt) {
783
- _this.clipboard_event_checker(evt);
784
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
785
  if (this.is_multiple) {
786
- return this.search_choices.bind('click.chosen', function(evt) {
787
- _this.choices_click(evt);
788
- });
 
 
789
  } else {
790
- return this.container.bind('click.chosen', function(evt) {
791
  evt.preventDefault();
792
  });
793
  }
794
  };
795
 
796
  Chosen.prototype.destroy = function() {
797
- $(this.container[0].ownerDocument).unbind('click.chosen', this.click_test_action);
798
  if (this.form_field_label.length > 0) {
799
- this.form_field_label.unbind('click.chosen');
800
  }
801
  if (this.search_field[0].tabIndex) {
802
  this.form_field_jq[0].tabIndex = this.search_field[0].tabIndex;
@@ -811,21 +834,21 @@
811
  this.container.toggleClass('chosen-disabled', this.is_disabled);
812
  this.search_field[0].disabled = this.is_disabled;
813
  if (!this.is_multiple) {
814
- this.selected_item.unbind('focus.chosen', this.activate_field);
815
  }
816
  if (this.is_disabled) {
817
  return this.close_field();
818
  } else if (!this.is_multiple) {
819
- return this.selected_item.bind('focus.chosen', this.activate_field);
820
  }
821
  };
822
 
823
  Chosen.prototype.container_mousedown = function(evt) {
824
- var _ref1;
825
  if (this.is_disabled) {
826
  return;
827
  }
828
- if (evt && ((_ref1 = evt.type) === 'mousedown' || _ref1 === 'touchstart') && !this.results_showing) {
829
  evt.preventDefault();
830
  }
831
  if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
@@ -833,7 +856,7 @@
833
  if (this.is_multiple) {
834
  this.search_field.val("");
835
  }
836
- $(this.container[0].ownerDocument).bind('click.chosen', this.click_test_action);
837
  this.results_show();
838
  } else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chosen-single").length)) {
839
  evt.preventDefault();
@@ -870,7 +893,7 @@
870
  };
871
 
872
  Chosen.prototype.close_field = function() {
873
- $(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
874
  this.active_field = false;
875
  this.results_hide();
876
  this.container.removeClass("chosen-container-active");
@@ -998,7 +1021,7 @@
998
  this.form_field_label = $("label[for='" + this.form_field.id + "']");
999
  }
1000
  if (this.form_field_label.length > 0) {
1001
- return this.form_field_label.bind('click.chosen', this.label_click_handler);
1002
  }
1003
  };
1004
 
@@ -1031,14 +1054,13 @@
1031
  };
1032
 
1033
  Chosen.prototype.search_results_mouseout = function(evt) {
1034
- if ($(evt.target).hasClass("active-result" || $(evt.target).parents('.active-result').first())) {
1035
  return this.result_clear_highlight();
1036
  }
1037
  };
1038
 
1039
  Chosen.prototype.choice_build = function(item) {
1040
- var choice, close_link,
1041
- _this = this;
1042
  choice = $('<li />', {
1043
  "class": "search-choice"
1044
  }).html("<span>" + (this.choice_label(item)) + "</span>");
@@ -1049,9 +1071,11 @@
1049
  "class": 'search-choice-close',
1050
  'data-option-array-index': item.array_index
1051
  });
1052
- close_link.bind('click.chosen', function(evt) {
1053
- return _this.choice_destroy_link_click(evt);
1054
- });
 
 
1055
  choice.append(close_link);
1056
  }
1057
  return this.search_container.before(choice);
@@ -1118,12 +1142,15 @@
1118
  item.selected = true;
1119
  this.form_field.options[item.options_index].selected = true;
1120
  this.selected_option_count = null;
 
1121
  if (this.is_multiple) {
1122
  this.choice_build(item);
1123
  } else {
1124
  this.single_set_selected_text(this.choice_label(item));
1125
  }
1126
- if (!(this.is_multiple && (!this.hide_results_on_select || (evt.metaKey || evt.ctrlKey)))) {
 
 
1127
  this.results_hide();
1128
  this.show_search_field_default();
1129
  }
@@ -1187,7 +1214,7 @@
1187
  };
1188
 
1189
  Chosen.prototype.get_search_text = function() {
1190
- return this.escape_html($.trim(this.get_search_field_value()));
1191
  };
1192
 
1193
  Chosen.prototype.escape_html = function(text) {
@@ -1271,7 +1298,7 @@
1271
  };
1272
 
1273
  Chosen.prototype.search_field_scale = function() {
1274
- var container_width, div, style, style_block, styles, width, _i, _len;
1275
  if (!this.is_multiple) {
1276
  return;
1277
  }
@@ -1283,8 +1310,8 @@
1283
  whiteSpace: 'pre'
1284
  };
1285
  styles = ['fontSize', 'fontStyle', 'fontWeight', 'fontFamily', 'lineHeight', 'textTransform', 'letterSpacing'];
1286
- for (_i = 0, _len = styles.length; _i < _len; _i++) {
1287
- style = styles[_i];
1288
  style_block[style] = this.search_field.css(style);
1289
  }
1290
  div = $('<div />').css(style_block);
@@ -1292,8 +1319,9 @@
1292
  $('body').append(div);
1293
  width = div.width() + 25;
1294
  div.remove();
1295
- container_width = this.container.outerWidth();
1296
- width = Math.min(container_width - 10, width);
 
1297
  return this.search_field.width(width);
1298
  };
1299
 
1
  (function() {
2
+ var $, AbstractChosen, Chosen, SelectParser,
3
+ bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
4
+ extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
5
+ hasProp = {}.hasOwnProperty;
6
 
7
  SelectParser = (function() {
8
  function SelectParser() {
19
  };
20
 
21
  SelectParser.prototype.add_group = function(group) {
22
+ var group_position, i, len, option, ref, results1;
23
  group_position = this.parsed.length;
24
  this.parsed.push({
25
  array_index: group_position,
26
  group: true,
27
+ label: group.label,
28
  title: group.title ? group.title : void 0,
29
  children: 0,
30
  disabled: group.disabled,
31
  classes: group.className
32
  });
33
+ ref = group.childNodes;
34
+ results1 = [];
35
+ for (i = 0, len = ref.length; i < len; i++) {
36
+ option = ref[i];
37
+ results1.push(this.add_option(option, group_position, group.disabled));
38
  }
39
+ return results1;
40
  };
41
 
42
  SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
70
  }
71
  };
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  return SelectParser;
74
 
75
  })();
76
 
77
  SelectParser.select_to_array = function(select) {
78
+ var child, i, len, parser, ref;
79
  parser = new SelectParser();
80
+ ref = select.childNodes;
81
+ for (i = 0, len = ref.length; i < len; i++) {
82
+ child = ref[i];
83
  parser.add_node(child);
84
  }
85
  return parser.parsed;
86
  };
87
 
88
  AbstractChosen = (function() {
89
+ function AbstractChosen(form_field, options1) {
90
  this.form_field = form_field;
91
+ this.options = options1 != null ? options1 : {};
92
+ this.label_click_handler = bind(this.label_click_handler, this);
93
  if (!AbstractChosen.browser_is_supported()) {
94
  return;
95
  }
103
  }
104
 
105
  AbstractChosen.prototype.set_default_values = function() {
106
+ this.click_test_action = (function(_this) {
107
+ return function(evt) {
108
+ return _this.test_active_click(evt);
109
+ };
110
+ })(this);
111
+ this.activate_action = (function(_this) {
112
+ return function(evt) {
113
+ return _this.activate_field(evt);
114
+ };
115
+ })(this);
116
  this.active_field = false;
117
  this.mouse_on_container = false;
118
  this.results_showing = false;
164
  };
165
 
166
  AbstractChosen.prototype.input_focus = function(evt) {
 
167
  if (this.is_multiple) {
168
  if (!this.active_field) {
169
+ return setTimeout(((function(_this) {
170
+ return function() {
171
+ return _this.container_mousedown();
172
+ };
173
+ })(this)), 50);
174
  }
175
  } else {
176
  if (!this.active_field) {
180
  };
181
 
182
  AbstractChosen.prototype.input_blur = function(evt) {
 
183
  if (!this.mouse_on_container) {
184
  this.active_field = false;
185
+ return setTimeout(((function(_this) {
186
+ return function() {
187
+ return _this.blur_test();
188
+ };
189
+ })(this)), 100);
190
  }
191
  };
192
 
199
  };
200
 
201
  AbstractChosen.prototype.results_option_build = function(options) {
202
+ var content, data, data_content, i, len, ref, shown_results;
203
  content = '';
204
  shown_results = 0;
205
+ ref = this.results_data;
206
+ for (i = 0, len = ref.length; i < len; i++) {
207
+ data = ref[i];
208
  data_content = '';
209
  if (data.group) {
210
  data_content = this.result_add_group(data);
257
  option_el.className = classes.join(" ");
258
  option_el.style.cssText = option.style;
259
  option_el.setAttribute("data-option-array-index", option.array_index);
260
+ option_el.innerHTML = option.highlighted_html || option.html;
261
  if (option.title) {
262
  option_el.title = option.title;
263
  }
279
  }
280
  group_el = document.createElement("li");
281
  group_el.className = classes.join(" ");
282
+ group_el.innerHTML = group.highlighted_html || this.escape_html(group.label);
283
  if (group.title) {
284
  group_el.title = group.title;
285
  }
299
  };
300
 
301
  AbstractChosen.prototype.reset_single_select_options = function() {
302
+ var i, len, ref, result, results1;
303
+ ref = this.results_data;
304
+ results1 = [];
305
+ for (i = 0, len = ref.length; i < len; i++) {
306
+ result = ref[i];
307
  if (result.selected) {
308
+ results1.push(result.selected = false);
309
  } else {
310
+ results1.push(void 0);
311
  }
312
  }
313
+ return results1;
314
  };
315
 
316
  AbstractChosen.prototype.results_toggle = function() {
330
  };
331
 
332
  AbstractChosen.prototype.winnow_results = function() {
333
+ var escapedQuery, fix, i, len, option, prefix, query, ref, regex, results, results_group, search_match, startpos, suffix, text;
334
  this.no_results_clear();
335
  results = 0;
336
+ query = this.get_search_text();
337
+ escapedQuery = query.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
338
+ regex = this.get_search_regex(escapedQuery);
339
+ ref = this.results_data;
340
+ for (i = 0, len = ref.length; i < len; i++) {
341
+ option = ref[i];
 
342
  option.search_match = false;
343
  results_group = null;
344
+ search_match = null;
345
+ option.highlighted_html = '';
346
  if (this.include_option_in_results(option)) {
347
  if (option.group) {
348
  option.group_match = false;
355
  }
356
  results_group.active_options += 1;
357
  }
358
+ text = option.group ? option.label : option.text;
359
  if (!(option.group && !this.group_search)) {
360
+ search_match = this.search_string_match(text, regex);
361
+ option.search_match = search_match != null;
362
  if (option.search_match && !option.group) {
363
  results += 1;
364
  }
365
  if (option.search_match) {
366
+ if (query.length) {
367
+ startpos = search_match.index;
368
+ prefix = text.slice(0, startpos);
369
+ fix = text.slice(startpos, startpos + query.length);
370
+ suffix = text.slice(startpos + query.length);
371
+ option.highlighted_html = (this.escape_html(prefix)) + "<em>" + (this.escape_html(fix)) + "</em>" + (this.escape_html(suffix));
372
  }
373
  if (results_group != null) {
374
  results_group.group_match = true;
380
  }
381
  }
382
  this.result_clear_highlight();
383
+ if (results < 1 && query.length) {
384
  this.update_results_content("");
385
+ return this.no_results(query);
386
  } else {
387
  this.update_results_content(this.results_option_build());
388
  return this.winnow_results_set_highlight();
390
  };
391
 
392
  AbstractChosen.prototype.get_search_regex = function(escaped_search_string) {
393
+ var regex_flag, regex_string;
394
+ regex_string = this.search_contains ? escaped_search_string : "(^|\\s|\\b)" + escaped_search_string + "[^\\s]*";
395
+ if (!(this.enable_split_word_search || this.search_contains)) {
396
+ regex_string = "^" + regex_string;
397
+ }
 
 
 
 
398
  regex_flag = this.case_sensitive_search ? "" : "i";
399
+ return new RegExp(regex_string, regex_flag);
400
  };
401
 
402
  AbstractChosen.prototype.search_string_match = function(search_string, regex) {
403
+ var match;
404
+ match = regex.exec(search_string);
405
+ if (!this.search_contains && (match != null ? match[1] : void 0)) {
406
+ match.index += 1;
 
 
 
 
 
 
 
 
 
407
  }
408
+ return match;
409
  };
410
 
411
  AbstractChosen.prototype.choices_count = function() {
412
+ var i, len, option, ref;
413
  if (this.selected_option_count != null) {
414
  return this.selected_option_count;
415
  }
416
  this.selected_option_count = 0;
417
+ ref = this.form_field.options;
418
+ for (i = 0, len = ref.length; i < len; i++) {
419
+ option = ref[i];
420
  if (option.selected) {
421
  this.selected_option_count += 1;
422
  }
433
  };
434
 
435
  AbstractChosen.prototype.keydown_checker = function(evt) {
436
+ var ref, stroke;
437
+ stroke = (ref = evt.which) != null ? ref : evt.keyCode;
438
  this.search_field_scale();
439
  if (stroke !== 8 && this.pending_backstroke) {
440
  this.clear_backstroke();
476
  };
477
 
478
  AbstractChosen.prototype.keyup_checker = function(evt) {
479
+ var ref, stroke;
480
+ stroke = (ref = evt.which) != null ? ref : evt.keyCode;
481
  this.search_field_scale();
482
  switch (stroke) {
483
  case 8:
514
  };
515
 
516
  AbstractChosen.prototype.clipboard_event_checker = function(evt) {
 
517
  if (this.is_disabled) {
518
  return;
519
  }
520
+ return setTimeout(((function(_this) {
521
+ return function() {
522
+ return _this.results_search();
523
+ };
524
+ })(this)), 50);
525
  };
526
 
527
  AbstractChosen.prototype.container_width = function() {
528
  if (this.options.width != null) {
529
  return this.options.width;
530
  } else {
531
+ return this.form_field.offsetWidth + "px";
532
  }
533
  };
534
 
580
  };
581
 
582
  AbstractChosen.prototype.get_no_results_html = function(terms) {
583
+ return "<li class=\"no-results\">\n " + this.results_none_found + " <span>" + (this.escape_html(terms)) + "</span>\n</li>";
584
  };
585
 
586
  AbstractChosen.browser_is_supported = function() {
627
  }
628
  });
629
 
630
+ Chosen = (function(superClass) {
631
+ extend(Chosen, superClass);
632
 
633
  function Chosen() {
634
+ return Chosen.__super__.constructor.apply(this, arguments);
 
635
  }
636
 
637
  Chosen.prototype.setup = function() {
688
  };
689
 
690
  Chosen.prototype.register_observers = function() {
691
+ this.container.on('touchstart.chosen', (function(_this) {
692
+ return function(evt) {
693
+ _this.container_mousedown(evt);
694
+ };
695
+ })(this));
696
+ this.container.on('touchend.chosen', (function(_this) {
697
+ return function(evt) {
698
+ _this.container_mouseup(evt);
699
+ };
700
+ })(this));
701
+ this.container.on('mousedown.chosen', (function(_this) {
702
+ return function(evt) {
703
+ _this.container_mousedown(evt);
704
+ };
705
+ })(this));
706
+ this.container.on('mouseup.chosen', (function(_this) {
707
+ return function(evt) {
708
+ _this.container_mouseup(evt);
709
+ };
710
+ })(this));
711
+ this.container.on('mouseenter.chosen', (function(_this) {
712
+ return function(evt) {
713
+ _this.mouse_enter(evt);
714
+ };
715
+ })(this));
716
+ this.container.on('mouseleave.chosen', (function(_this) {
717
+ return function(evt) {
718
+ _this.mouse_leave(evt);
719
+ };
720
+ })(this));
721
+ this.search_results.on('mouseup.chosen', (function(_this) {
722
+ return function(evt) {
723
+ _this.search_results_mouseup(evt);
724
+ };
725
+ })(this));
726
+ this.search_results.on('mouseover.chosen', (function(_this) {
727
+ return function(evt) {
728
+ _this.search_results_mouseover(evt);
729
+ };
730
+ })(this));
731
+ this.search_results.on('mouseout.chosen', (function(_this) {
732
+ return function(evt) {
733
+ _this.search_results_mouseout(evt);
734
+ };
735
+ })(this));
736
+ this.search_results.on('mousewheel.chosen DOMMouseScroll.chosen', (function(_this) {
737
+ return function(evt) {
738
+ _this.search_results_mousewheel(evt);
739
+ };
740
+ })(this));
741
+ this.search_results.on('touchstart.chosen', (function(_this) {
742
+ return function(evt) {
743
+ _this.search_results_touchstart(evt);
744
+ };
745
+ })(this));
746
+ this.search_results.on('touchmove.chosen', (function(_this) {
747
+ return function(evt) {
748
+ _this.search_results_touchmove(evt);
749
+ };
750
+ })(this));
751
+ this.search_results.on('touchend.chosen', (function(_this) {
752
+ return function(evt) {
753
+ _this.search_results_touchend(evt);
754
+ };
755
+ })(this));
756
+ this.form_field_jq.on("chosen:updated.chosen", (function(_this) {
757
+ return function(evt) {
758
+ _this.results_update_field(evt);
759
+ };
760
+ })(this));
761
+ this.form_field_jq.on("chosen:activate.chosen", (function(_this) {
762
+ return function(evt) {
763
+ _this.activate_field(evt);
764
+ };
765
+ })(this));
766
+ this.form_field_jq.on("chosen:open.chosen", (function(_this) {
767
+ return function(evt) {
768
+ _this.container_mousedown(evt);
769
+ };
770
+ })(this));
771
+ this.form_field_jq.on("chosen:close.chosen", (function(_this) {
772
+ return function(evt) {
773
+ _this.close_field(evt);
774
+ };
775
+ })(this));
776
+ this.search_field.on('blur.chosen', (function(_this) {
777
+ return function(evt) {
778
+ _this.input_blur(evt);
779
+ };
780
+ })(this));
781
+ this.search_field.on('keyup.chosen', (function(_this) {
782
+ return function(evt) {
783
+ _this.keyup_checker(evt);
784
+ };
785
+ })(this));
786
+ this.search_field.on('keydown.chosen', (function(_this) {
787
+ return function(evt) {
788
+ _this.keydown_checker(evt);
789
+ };
790
+ })(this));
791
+ this.search_field.on('focus.chosen', (function(_this) {
792
+ return function(evt) {
793
+ _this.input_focus(evt);
794
+ };
795
+ })(this));
796
+ this.search_field.on('cut.chosen', (function(_this) {
797
+ return function(evt) {
798
+ _this.clipboard_event_checker(evt);
799
+ };
800
+ })(this));
801
+ this.search_field.on('paste.chosen', (function(_this) {
802
+ return function(evt) {
803
+ _this.clipboard_event_checker(evt);
804
+ };
805
+ })(this));
806
  if (this.is_multiple) {
807
+ return this.search_choices.on('click.chosen', (function(_this) {
808
+ return function(evt) {
809
+ _this.choices_click(evt);
810
+ };
811
+ })(this));
812
  } else {
813
+ return this.container.on('click.chosen', function(evt) {
814
  evt.preventDefault();
815
  });
816
  }
817
  };
818
 
819
  Chosen.prototype.destroy = function() {
820
+ $(this.container[0].ownerDocument).off('click.chosen', this.click_test_action);
821
  if (this.form_field_label.length > 0) {
822
+ this.form_field_label.off('click.chosen');
823
  }
824
  if (this.search_field[0].tabIndex) {
825
  this.form_field_jq[0].tabIndex = this.search_field[0].tabIndex;
834
  this.container.toggleClass('chosen-disabled', this.is_disabled);
835
  this.search_field[0].disabled = this.is_disabled;
836
  if (!this.is_multiple) {
837
+ this.selected_item.off('focus.chosen', this.activate_field);
838
  }
839
  if (this.is_disabled) {
840
  return this.close_field();
841
  } else if (!this.is_multiple) {
842
+ return this.selected_item.on('focus.chosen', this.activate_field);
843
  }
844
  };
845
 
846
  Chosen.prototype.container_mousedown = function(evt) {
847
+ var ref;
848
  if (this.is_disabled) {
849
  return;
850
  }
851
+ if (evt && ((ref = evt.type) === 'mousedown' || ref === 'touchstart') && !this.results_showing) {
852
  evt.preventDefault();
853
  }
854
  if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
856
  if (this.is_multiple) {
857
  this.search_field.val("");
858
  }
859
+ $(this.container[0].ownerDocument).on('click.chosen', this.click_test_action);
860
  this.results_show();
861
  } else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chosen-single").length)) {
862
  evt.preventDefault();
893
  };
894
 
895
  Chosen.prototype.close_field = function() {
896
+ $(this.container[0].ownerDocument).off("click.chosen", this.click_test_action);
897
  this.active_field = false;
898
  this.results_hide();
899
  this.container.removeClass("chosen-container-active");
1021
  this.form_field_label = $("label[for='" + this.form_field.id + "']");
1022
  }
1023
  if (this.form_field_label.length > 0) {
1024
+ return this.form_field_label.on('click.chosen', this.label_click_handler);
1025
  }
1026
  };
1027
 
1054
  };
1055
 
1056
  Chosen.prototype.search_results_mouseout = function(evt) {
1057
+ if ($(evt.target).hasClass("active-result") || $(evt.target).parents('.active-result').first()) {
1058
  return this.result_clear_highlight();
1059
  }
1060
  };
1061
 
1062
  Chosen.prototype.choice_build = function(item) {
1063
+ var choice, close_link;
 
1064
  choice = $('<li />', {
1065
  "class": "search-choice"
1066
  }).html("<span>" + (this.choice_label(item)) + "</span>");
1071
  "class": 'search-choice-close',
1072
  'data-option-array-index': item.array_index
1073
  });
1074
+ close_link.on('click.chosen', (function(_this) {
1075
+ return function(evt) {
1076
+ return _this.choice_destroy_link_click(evt);
1077
+ };
1078
+ })(this));
1079
  choice.append(close_link);
1080
  }
1081
  return this.search_container.before(choice);
1142
  item.selected = true;
1143
  this.form_field.options[item.options_index].selected = true;
1144
  this.selected_option_count = null;
1145
+ this.search_field.val("");
1146
  if (this.is_multiple) {
1147
  this.choice_build(item);
1148
  } else {
1149
  this.single_set_selected_text(this.choice_label(item));
1150
  }
1151
+ if (this.is_multiple && (!this.hide_results_on_select || (evt.metaKey || evt.ctrlKey))) {
1152
+ this.winnow_results();
1153
+ } else {
1154
  this.results_hide();
1155
  this.show_search_field_default();
1156
  }
1214
  };
1215
 
1216
  Chosen.prototype.get_search_text = function() {
1217
+ return $.trim(this.get_search_field_value());
1218
  };
1219
 
1220
  Chosen.prototype.escape_html = function(text) {
1298
  };
1299
 
1300
  Chosen.prototype.search_field_scale = function() {
1301
+ var div, i, len, style, style_block, styles, width;
1302
  if (!this.is_multiple) {
1303
  return;
1304
  }
1310
  whiteSpace: 'pre'
1311
  };
1312
  styles = ['fontSize', 'fontStyle', 'fontWeight', 'fontFamily', 'lineHeight', 'textTransform', 'letterSpacing'];
1313
+ for (i = 0, len = styles.length; i < len; i++) {
1314
+ style = styles[i];
1315
  style_block[style] = this.search_field.css(style);
1316
  }
1317
  div = $('<div />').css(style_block);
1319
  $('body').append(div);
1320
  width = div.width() + 25;
1321
  div.remove();
1322
+ if (this.container.is(':visible')) {
1323
+ width = Math.min(this.container.outerWidth() - 10, width);
1324
+ }
1325
  return this.search_field.width(width);
1326
  };
1327
 
assets/js/plugins/chosen.jquery.min.js CHANGED
@@ -1 +1 @@
1
- (function(){var t,e,s,i,r,n=function(t,e){return function(){return t.apply(e,arguments)}},o={}.hasOwnProperty,l=function(t,e){function s(){this.constructor=t}for(var i in e)o.call(e,i)&&(t[i]=e[i]);return s.prototype=e.prototype,t.prototype=new s,t.__super__=e.prototype,t};i=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,s,i,r,n,o;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:this.escapeExpression(t.label),title:t.title?t.title:void 0,children:0,disabled:t.disabled,classes:t.className}),n=t.childNodes,o=[],i=0,r=n.length;i<r;i++)s=n[i],o.push(this.add_option(s,e,t.disabled));return o},t.prototype.add_option=function(t,e,s){if("OPTION"===t.nodeName.toUpperCase())return""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,title:t.title?t.title:void 0,selected:t.selected,disabled:s===!0?s:t.disabled,group_array_index:e,group_label:null!=e?this.parsed[e].label:null,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},t.prototype.escapeExpression=function(t){var e,s;return null==t||t===!1?"":/[\&\<\>\"\'\`]/.test(t)?(e={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},s=/&(?!\w+;)|[\<\>\"\'\`]/g,t.replace(s,function(t){return e[t]||"&amp;"})):t},t}(),i.select_to_array=function(t){var e,s,r,n,o;for(s=new i,o=t.childNodes,r=0,n=o.length;r<n;r++)e=o[r],s.add_node(e);return s.parsed},e=function(){function t(e,s){this.form_field=e,this.options=null!=s?s:{},this.label_click_handler=n(this.label_click_handler,this),t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return t.prototype.set_default_values=function(){var t=this;return this.click_test_action=function(e){return t.test_active_click(e)},this.activate_action=function(e){return t.activate_field(e)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},t.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.choice_label=function(t){return this.include_group_label_in_selected&&null!=t.group_label?"<b class='group-name'>"+t.group_label+"</b>"+t.html:t.html},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(t){var e=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return e.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(t){var e=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return e.blur_test()},100)},t.prototype.label_click_handler=function(t){return this.is_multiple?this.container_mousedown(t):this.activate_field()},t.prototype.results_option_build=function(t){var e,s,i,r,n,o,l;for(e="",r=0,l=this.results_data,n=0,o=l.length;n<o&&(s=l[n],i="",i=s.group?this.result_add_group(s):this.result_add_option(s),""!==i&&(r++,e+=i),(null!=t?t.first:void 0)&&(s.selected&&this.is_multiple?this.choice_build(s):s.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(s))),!(r>=this.max_shown_results));n++);return e},t.prototype.result_add_option=function(t){var e,s;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),s=document.createElement("li"),s.className=e.join(" "),s.style.cssText=t.style,s.setAttribute("data-option-array-index",t.array_index),s.innerHTML=t.search_text,t.title&&(s.title=t.title),this.outerHTML(s)):""},t.prototype.result_add_group=function(t){var e,s;return(t.search_match||t.group_match)&&t.active_options>0?(e=[],e.push("group-result"),t.classes&&e.push(t.classes),s=document.createElement("li"),s.className=e.join(" "),s.innerHTML=t.search_text,t.title&&(s.title=t.title),this.outerHTML(s)):""},t.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},t.prototype.reset_single_select_options=function(){var t,e,s,i,r;for(i=this.results_data,r=[],e=0,s=i.length;e<s;e++)t=i[e],t.selected?r.push(t.selected=!1):r.push(void 0);return r},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(t){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(){var t,e,s,i,r,n,o,l,h,c,_,a;for(this.no_results_clear(),r=0,o=this.get_search_text(),t=o.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=this.get_search_regex(t),e=this.get_highlight_regex(t),a=this.results_data,c=0,_=a.length;c<_;c++)s=a[c],s.search_match=!1,n=null,this.include_option_in_results(s)&&(s.group&&(s.group_match=!1,s.active_options=0),null!=s.group_array_index&&this.results_data[s.group_array_index]&&(n=this.results_data[s.group_array_index],0===n.active_options&&n.search_match&&(r+=1),n.active_options+=1),s.search_text=s.group?s.label:s.html,s.group&&!this.group_search||(s.search_match=this.search_string_match(s.search_text,i),s.search_match&&!s.group&&(r+=1),s.search_match?(o.length&&(l=s.search_text.search(e),h=s.search_text.substr(0,l+o.length)+"</em>"+s.search_text.substr(l+o.length),s.search_text=h.substr(0,l)+"<em>"+h.substr(l)),null!=n&&(n.group_match=!0)):null!=s.group_array_index&&this.results_data[s.group_array_index].search_match&&(s.search_match=!0)));return this.result_clear_highlight(),r<1&&o.length?(this.update_results_content(""),this.no_results(o)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},t.prototype.get_search_regex=function(t){var e,s;return e=this.search_contains?"":"^",s=this.case_sensitive_search?"":"i",new RegExp(e+t,s)},t.prototype.get_highlight_regex=function(t){var e,s;return e=this.search_contains?"":"\\b",s=this.case_sensitive_search?"":"i",new RegExp(e+t,s)},t.prototype.search_string_match=function(t,e){var s,i,r,n;if(e.test(t))return!0;if(this.enable_split_word_search&&(t.indexOf(" ")>=0||0===t.indexOf("["))&&(i=t.replace(/\[|\]/g,"").split(" "),i.length))for(r=0,n=i.length;r<n;r++)if(s=i[r],e.test(s))return!0},t.prototype.choices_count=function(){var t,e,s,i;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,i=this.form_field.options,e=0,s=i.length;e<s;e++)t=i[e],t.selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(t){if(t.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},t.prototype.keydown_checker=function(t){var e,s;switch(e=null!=(s=t.which)?s:t.keyCode,this.search_field_scale(),8!==e&&this.pending_backstroke&&this.clear_backstroke(),e){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:this.results_showing&&t.preventDefault();break;case 27:this.results_showing&&t.preventDefault();break;case 32:this.disable_search&&t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},t.prototype.keyup_checker=function(t){var e,s;switch(e=null!=(s=t.which)?s:t.keyCode,this.search_field_scale(),e){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:t.preventDefault(),this.results_showing&&this.result_select(t);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},t.prototype.clipboard_event_checker=function(t){var e=this;if(!this.is_disabled)return setTimeout(function(){return e.results_search()},50)},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return!(this.is_multiple&&!this.display_selected_options&&t.selected)&&(!(!this.display_disabled_options&&t.disabled)&&!t.empty)},t.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},t.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},t.prototype.search_results_touchend=function(t){if(this.touch_started)return this.search_results_mouseup(t)},t.prototype.outerHTML=function(t){var e;return t.outerHTML?t.outerHTML:(e=document.createElement("div"),e.appendChild(t),e.innerHTML)},t.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n </div>\n <ul class="chosen-results"></ul>\n</div>'},t.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>'},t.prototype.get_no_results_html=function(t){return'<li class="no-results">\n '+this.results_none_found+" <span>"+t+"</span>\n</li>"},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),t=jQuery,t.fn.extend({chosen:function(i){return e.browser_is_supported()?this.each(function(e){var r,n;return r=t(this),n=r.data("chosen"),"destroy"===i?void(n instanceof s&&n.destroy()):void(n instanceof s||r.data("chosen",new s(this,i)))}):this}}),s=function(e){function s(){return r=s.__super__.constructor.apply(this,arguments)}return l(s,e),s.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},s.prototype.set_up_html=function(){var e,s;return e=["chosen-container"],e.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),s={"class":e.join(" "),title:this.form_field.title},this.form_field.id.length&&(s.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",s),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},s.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},s.prototype.register_observers=function(){var t=this;return this.container.bind("touchstart.chosen",function(e){t.container_mousedown(e)}),this.container.bind("touchend.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mousedown.chosen",function(e){t.container_mousedown(e)}),this.container.bind("mouseup.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mouseenter.chosen",function(e){t.mouse_enter(e)}),this.container.bind("mouseleave.chosen",function(e){t.mouse_leave(e)}),this.search_results.bind("mouseup.chosen",function(e){t.search_results_mouseup(e)}),this.search_results.bind("mouseover.chosen",function(e){t.search_results_mouseover(e)}),this.search_results.bind("mouseout.chosen",function(e){t.search_results_mouseout(e)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(e){t.search_results_mousewheel(e)}),this.search_results.bind("touchstart.chosen",function(e){t.search_results_touchstart(e)}),this.search_results.bind("touchmove.chosen",function(e){t.search_results_touchmove(e)}),this.search_results.bind("touchend.chosen",function(e){t.search_results_touchend(e)}),this.form_field_jq.bind("chosen:updated.chosen",function(e){t.results_update_field(e)}),this.form_field_jq.bind("chosen:activate.chosen",function(e){t.activate_field(e)}),this.form_field_jq.bind("chosen:open.chosen",function(e){t.container_mousedown(e)}),this.form_field_jq.bind("chosen:close.chosen",function(e){t.close_field(e)}),this.search_field.bind("blur.chosen",function(e){t.input_blur(e)}),this.search_field.bind("keyup.chosen",function(e){t.keyup_checker(e)}),this.search_field.bind("keydown.chosen",function(e){t.keydown_checker(e)}),this.search_field.bind("focus.chosen",function(e){t.input_focus(e)}),this.search_field.bind("cut.chosen",function(e){t.clipboard_event_checker(e)}),this.search_field.bind("paste.chosen",function(e){t.clipboard_event_checker(e)}),this.is_multiple?this.search_choices.bind("click.chosen",function(e){t.choices_click(e)}):this.container.bind("click.chosen",function(t){t.preventDefault()})},s.prototype.destroy=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.unbind("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},s.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_field)},s.prototype.container_mousedown=function(e){var s;if(!this.is_disabled)return!e||"mousedown"!==(s=e.type)&&"touchstart"!==s||this.results_showing||e.preventDefault(),null!=e&&t(e.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},s.prototype.container_mouseup=function(t){if("ABBR"===t.target.nodeName&&!this.is_disabled)return this.results_reset(t)},s.prototype.search_results_mousewheel=function(t){var e;if(t.originalEvent&&(e=t.originalEvent.deltaY||-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e)return t.preventDefault(),"DOMMouseScroll"===t.type&&(e=40*e),this.search_results.scrollTop(e+this.search_results.scrollTop())},s.prototype.blur_test=function(t){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},s.prototype.close_field=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},s.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},s.prototype.test_active_click=function(e){var s;return s=t(e.target).closest(".chosen-container"),s.length&&this.container[0]===s[0]?this.active_field=!0:this.close_field()},s.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},s.prototype.result_do_highlight=function(t){var e,s,i,r,n;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),i=parseInt(this.search_results.css("maxHeight"),10),n=this.search_results.scrollTop(),r=i+n,s=this.result_highlight.position().top+this.search_results.scrollTop(),e=s+this.result_highlight.outerHeight(),e>=r)return this.search_results.scrollTop(e-i>0?e-i:0);if(s<n)return this.search_results.scrollTop(s)}},s.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},s.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},s.prototype.update_results_content=function(t){return this.search_results.html(t)},s.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},s.prototype.set_tab_index=function(t){var e;if(this.form_field.tabIndex)return e=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=e},s.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.bind("click.chosen",this.label_click_handler)},s.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},s.prototype.search_results_mouseup=function(e){var s;if(s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first(),s.length)return this.result_highlight=s,this.result_select(e),this.search_field.focus()},s.prototype.search_results_mouseover=function(e){var s;if(s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first())return this.result_do_highlight(s)},s.prototype.search_results_mouseout=function(e){if(t(e.target).hasClass("active-result"))return this.result_clear_highlight()},s.prototype.choice_build=function(e){var s,i,r=this;return s=t("<li />",{"class":"search-choice"}).html("<span>"+this.choice_label(e)+"</span>"),e.disabled?s.addClass("search-choice-disabled"):(i=t("<a />",{"class":"search-choice-close","data-option-array-index":e.array_index}),i.bind("click.chosen",function(t){return r.choice_destroy_link_click(t)}),s.append(i)),this.search_container.before(s)},s.prototype.choice_destroy_link_click=function(e){if(e.preventDefault(),e.stopPropagation(),!this.is_disabled)return this.choice_destroy(t(e.target))},s.prototype.choice_destroy=function(t){if(this.result_deselect(t[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()},s.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},s.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},s.prototype.result_select=function(t){var e,s;if(this.result_highlight)return e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):this.reset_single_select_options(),e.addClass("result-selected"),s=this.results_data[e[0].getAttribute("data-option-array-index")],s.selected=!0,this.form_field.options[s.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(s):this.single_set_selected_text(this.choice_label(s)),this.is_multiple&&(!this.hide_results_on_select||t.metaKey||t.ctrlKey)||(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[s.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,t.preventDefault(),this.search_field_scale())},s.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(t)},s.prototype.result_deselect=function(t){var e;return e=this.results_data[t],!this.form_field.options[e.options_index].disabled&&(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},s.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},s.prototype.get_search_field_value=function(){return this.search_field.val()},s.prototype.get_search_text=function(){return this.escape_html(t.trim(this.get_search_field_value()))},s.prototype.escape_html=function(e){return t("<div/>").text(e).html()},s.prototype.winnow_results_set_highlight=function(){var t,e;if(e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),t=e.length?e.first():this.search_results.find(".active-result").first(),null!=t)return this.result_do_highlight(t)},s.prototype.no_results=function(t){var e;return e=this.get_no_results_html(t),this.search_results.append(e),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},s.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},s.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},s.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result"),t.length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},s.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last(),t.length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},s.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},s.prototype.search_field_scale=function(){var e,s,i,r,n,o,l,h;if(this.is_multiple){for(r={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},n=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"],l=0,h=n.length;l<h;l++)i=n[l],r[i]=this.search_field.css(i);return s=t("<div />").css(r),s.text(this.get_search_field_value()),t("body").append(s),o=s.width()+25,s.remove(),e=this.container.outerWidth(),o=Math.min(e-10,o),this.search_field.width(o)}},s.prototype.trigger_form_field_change=function(t){return this.form_field_jq.trigger("input",t),this.form_field_jq.trigger("change",t)},s}(e)}).call(this);
1
+ (function(){var t,e,s,i,n=function(t,e){return function(){return t.apply(e,arguments)}},r=function(t,e){function s(){this.constructor=t}for(var i in e)o.call(e,i)&&(t[i]=e[i]);return s.prototype=e.prototype,t.prototype=new s,t.__super__=e.prototype,t},o={}.hasOwnProperty;i=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,s,i,n,r,o;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:t.label,title:t.title?t.title:void 0,children:0,disabled:t.disabled,classes:t.className}),r=t.childNodes,o=[],s=0,i=r.length;s<i;s++)n=r[s],o.push(this.add_option(n,e,t.disabled));return o},t.prototype.add_option=function(t,e,s){if("OPTION"===t.nodeName.toUpperCase())return""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,title:t.title?t.title:void 0,selected:t.selected,disabled:s===!0?s:t.disabled,group_array_index:e,group_label:null!=e?this.parsed[e].label:null,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},t}(),i.select_to_array=function(t){var e,s,n,r,o;for(r=new i,o=t.childNodes,s=0,n=o.length;s<n;s++)e=o[s],r.add_node(e);return r.parsed},e=function(){function t(e,s){this.form_field=e,this.options=null!=s?s:{},this.label_click_handler=n(this.label_click_handler,this),t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return t.prototype.set_default_values=function(){return this.click_test_action=function(t){return function(e){return t.test_active_click(e)}}(this),this.activate_action=function(t){return function(e){return t.activate_field(e)}}(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},t.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.choice_label=function(t){return this.include_group_label_in_selected&&null!=t.group_label?"<b class='group-name'>"+t.group_label+"</b>"+t.html:t.html},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(t){if(this.is_multiple){if(!this.active_field)return setTimeout(function(t){return function(){return t.container_mousedown()}}(this),50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(t){if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(t){return function(){return t.blur_test()}}(this),100)},t.prototype.label_click_handler=function(t){return this.is_multiple?this.container_mousedown(t):this.activate_field()},t.prototype.results_option_build=function(t){var e,s,i,n,r,o,h;for(e="",h=0,o=this.results_data,n=0,r=o.length;n<r&&(s=o[n],i="",i=s.group?this.result_add_group(s):this.result_add_option(s),""!==i&&(h++,e+=i),(null!=t?t.first:void 0)&&(s.selected&&this.is_multiple?this.choice_build(s):s.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(s))),!(h>=this.max_shown_results));n++);return e},t.prototype.result_add_option=function(t){var e,s;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),s=document.createElement("li"),s.className=e.join(" "),s.style.cssText=t.style,s.setAttribute("data-option-array-index",t.array_index),s.innerHTML=t.highlighted_html||t.html,t.title&&(s.title=t.title),this.outerHTML(s)):""},t.prototype.result_add_group=function(t){var e,s;return(t.search_match||t.group_match)&&t.active_options>0?(e=[],e.push("group-result"),t.classes&&e.push(t.classes),s=document.createElement("li"),s.className=e.join(" "),s.innerHTML=t.highlighted_html||this.escape_html(t.label),t.title&&(s.title=t.title),this.outerHTML(s)):""},t.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},t.prototype.reset_single_select_options=function(){var t,e,s,i,n;for(s=this.results_data,n=[],t=0,e=s.length;t<e;t++)i=s[t],i.selected?n.push(i.selected=!1):n.push(void 0);return n},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(t){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(){var t,e,s,i,n,r,o,h,l,c,_,a,u,d,p;for(this.no_results_clear(),c=0,o=this.get_search_text(),t=o.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),l=this.get_search_regex(t),h=this.results_data,s=0,i=h.length;s<i;s++)n=h[s],n.search_match=!1,_=null,a=null,n.highlighted_html="",this.include_option_in_results(n)&&(n.group&&(n.group_match=!1,n.active_options=0),null!=n.group_array_index&&this.results_data[n.group_array_index]&&(_=this.results_data[n.group_array_index],0===_.active_options&&_.search_match&&(c+=1),_.active_options+=1),p=n.group?n.label:n.text,n.group&&!this.group_search||(a=this.search_string_match(p,l),n.search_match=null!=a,n.search_match&&!n.group&&(c+=1),n.search_match?(o.length&&(u=a.index,r=p.slice(0,u),e=p.slice(u,u+o.length),d=p.slice(u+o.length),n.highlighted_html=this.escape_html(r)+"<em>"+this.escape_html(e)+"</em>"+this.escape_html(d)),null!=_&&(_.group_match=!0)):null!=n.group_array_index&&this.results_data[n.group_array_index].search_match&&(n.search_match=!0)));return this.result_clear_highlight(),c<1&&o.length?(this.update_results_content(""),this.no_results(o)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},t.prototype.get_search_regex=function(t){var e,s;return s=this.search_contains?t:"(^|\\s|\\b)"+t+"[^\\s]*",this.enable_split_word_search||this.search_contains||(s="^"+s),e=this.case_sensitive_search?"":"i",new RegExp(s,e)},t.prototype.search_string_match=function(t,e){var s;return s=e.exec(t),!this.search_contains&&(null!=s?s[1]:void 0)&&(s.index+=1),s},t.prototype.choices_count=function(){var t,e,s,i;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,i=this.form_field.options,t=0,e=i.length;t<e;t++)s=i[t],s.selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(t){if(t.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},t.prototype.keydown_checker=function(t){var e,s;switch(s=null!=(e=t.which)?e:t.keyCode,this.search_field_scale(),8!==s&&this.pending_backstroke&&this.clear_backstroke(),s){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:this.results_showing&&t.preventDefault();break;case 27:this.results_showing&&t.preventDefault();break;case 32:this.disable_search&&t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},t.prototype.keyup_checker=function(t){var e,s;switch(s=null!=(e=t.which)?e:t.keyCode,this.search_field_scale(),s){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:t.preventDefault(),this.results_showing&&this.result_select(t);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},t.prototype.clipboard_event_checker=function(t){if(!this.is_disabled)return setTimeout(function(t){return function(){return t.results_search()}}(this),50)},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return!(this.is_multiple&&!this.display_selected_options&&t.selected)&&(!(!this.display_disabled_options&&t.disabled)&&!t.empty)},t.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},t.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},t.prototype.search_results_touchend=function(t){if(this.touch_started)return this.search_results_mouseup(t)},t.prototype.outerHTML=function(t){var e;return t.outerHTML?t.outerHTML:(e=document.createElement("div"),e.appendChild(t),e.innerHTML)},t.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n </div>\n <ul class="chosen-results"></ul>\n</div>'},t.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>'},t.prototype.get_no_results_html=function(t){return'<li class="no-results">\n '+this.results_none_found+" <span>"+this.escape_html(t)+"</span>\n</li>"},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),t=jQuery,t.fn.extend({chosen:function(i){return e.browser_is_supported()?this.each(function(e){var n,r;return n=t(this),r=n.data("chosen"),"destroy"===i?void(r instanceof s&&r.destroy()):void(r instanceof s||n.data("chosen",new s(this,i)))}):this}}),s=function(e){function s(){return s.__super__.constructor.apply(this,arguments)}return r(s,e),s.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},s.prototype.set_up_html=function(){var e,s;return e=["chosen-container"],e.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),s={"class":e.join(" "),title:this.form_field.title},this.form_field.id.length&&(s.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",s),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},s.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},s.prototype.register_observers=function(){return this.container.on("touchstart.chosen",function(t){return function(e){t.container_mousedown(e)}}(this)),this.container.on("touchend.chosen",function(t){return function(e){t.container_mouseup(e)}}(this)),this.container.on("mousedown.chosen",function(t){return function(e){t.container_mousedown(e)}}(this)),this.container.on("mouseup.chosen",function(t){return function(e){t.container_mouseup(e)}}(this)),this.container.on("mouseenter.chosen",function(t){return function(e){t.mouse_enter(e)}}(this)),this.container.on("mouseleave.chosen",function(t){return function(e){t.mouse_leave(e)}}(this)),this.search_results.on("mouseup.chosen",function(t){return function(e){t.search_results_mouseup(e)}}(this)),this.search_results.on("mouseover.chosen",function(t){return function(e){t.search_results_mouseover(e)}}(this)),this.search_results.on("mouseout.chosen",function(t){return function(e){t.search_results_mouseout(e)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(t){return function(e){t.search_results_mousewheel(e)}}(this)),this.search_results.on("touchstart.chosen",function(t){return function(e){t.search_results_touchstart(e)}}(this)),this.search_results.on("touchmove.chosen",function(t){return function(e){t.search_results_touchmove(e)}}(this)),this.search_results.on("touchend.chosen",function(t){return function(e){t.search_results_touchend(e)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(t){return function(e){t.results_update_field(e)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(t){return function(e){t.activate_field(e)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(t){return function(e){t.container_mousedown(e)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(t){return function(e){t.close_field(e)}}(this)),this.search_field.on("blur.chosen",function(t){return function(e){t.input_blur(e)}}(this)),this.search_field.on("keyup.chosen",function(t){return function(e){t.keyup_checker(e)}}(this)),this.search_field.on("keydown.chosen",function(t){return function(e){t.keydown_checker(e)}}(this)),this.search_field.on("focus.chosen",function(t){return function(e){t.input_focus(e)}}(this)),this.search_field.on("cut.chosen",function(t){return function(e){t.clipboard_event_checker(e)}}(this)),this.search_field.on("paste.chosen",function(t){return function(e){t.clipboard_event_checker(e)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(t){return function(e){t.choices_click(e)}}(this)):this.container.on("click.chosen",function(t){t.preventDefault()})},s.prototype.destroy=function(){return t(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},s.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},s.prototype.container_mousedown=function(e){var s;if(!this.is_disabled)return!e||"mousedown"!==(s=e.type)&&"touchstart"!==s||this.results_showing||e.preventDefault(),null!=e&&t(e.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},s.prototype.container_mouseup=function(t){if("ABBR"===t.target.nodeName&&!this.is_disabled)return this.results_reset(t)},s.prototype.search_results_mousewheel=function(t){var e;if(t.originalEvent&&(e=t.originalEvent.deltaY||-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e)return t.preventDefault(),"DOMMouseScroll"===t.type&&(e=40*e),this.search_results.scrollTop(e+this.search_results.scrollTop())},s.prototype.blur_test=function(t){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},s.prototype.close_field=function(){return t(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},s.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},s.prototype.test_active_click=function(e){var s;return s=t(e.target).closest(".chosen-container"),s.length&&this.container[0]===s[0]?this.active_field=!0:this.close_field()},s.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},s.prototype.result_do_highlight=function(t){var e,s,i,n,r;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),i=parseInt(this.search_results.css("maxHeight"),10),r=this.search_results.scrollTop(),n=i+r,s=this.result_highlight.position().top+this.search_results.scrollTop(),e=s+this.result_highlight.outerHeight(),e>=n)return this.search_results.scrollTop(e-i>0?e-i:0);if(s<r)return this.search_results.scrollTop(s)}},s.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},s.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},s.prototype.update_results_content=function(t){return this.search_results.html(t)},s.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},s.prototype.set_tab_index=function(t){var e;if(this.form_field.tabIndex)return e=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=e},s.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},s.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},s.prototype.search_results_mouseup=function(e){var s;if(s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first(),s.length)return this.result_highlight=s,this.result_select(e),this.search_field.focus()},s.prototype.search_results_mouseover=function(e){var s;if(s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first())return this.result_do_highlight(s)},s.prototype.search_results_mouseout=function(e){if(t(e.target).hasClass("active-result")||t(e.target).parents(".active-result").first())return this.result_clear_highlight()},s.prototype.choice_build=function(e){var s,i;return s=t("<li />",{"class":"search-choice"}).html("<span>"+this.choice_label(e)+"</span>"),e.disabled?s.addClass("search-choice-disabled"):(i=t("<a />",{"class":"search-choice-close","data-option-array-index":e.array_index}),i.on("click.chosen",function(t){return function(e){return t.choice_destroy_link_click(e)}}(this)),s.append(i)),this.search_container.before(s)},s.prototype.choice_destroy_link_click=function(e){if(e.preventDefault(),e.stopPropagation(),!this.is_disabled)return this.choice_destroy(t(e.target))},s.prototype.choice_destroy=function(t){if(this.result_deselect(t[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()},s.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},s.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},s.prototype.result_select=function(t){var e,s;if(this.result_highlight)return e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):this.reset_single_select_options(),e.addClass("result-selected"),s=this.results_data[e[0].getAttribute("data-option-array-index")],s.selected=!0,this.form_field.options[s.options_index].selected=!0,this.selected_option_count=null,this.search_field.val(""),this.is_multiple?this.choice_build(s):this.single_set_selected_text(this.choice_label(s)),this.is_multiple&&(!this.hide_results_on_select||t.metaKey||t.ctrlKey)?this.winnow_results():(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[s.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,t.preventDefault(),this.search_field_scale())},s.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(t)},s.prototype.result_deselect=function(t){var e;return e=this.results_data[t],!this.form_field.options[e.options_index].disabled&&(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},s.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},s.prototype.get_search_field_value=function(){return this.search_field.val()},s.prototype.get_search_text=function(){return t.trim(this.get_search_field_value())},s.prototype.escape_html=function(e){return t("<div/>").text(e).html()},s.prototype.winnow_results_set_highlight=function(){var t,e;if(e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),t=e.length?e.first():this.search_results.find(".active-result").first(),null!=t)return this.result_do_highlight(t)},s.prototype.no_results=function(t){var e;return e=this.get_no_results_html(t),this.search_results.append(e),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},s.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},s.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},s.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result"),t.length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},s.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last(),t.length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},s.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},s.prototype.search_field_scale=function(){var e,s,i,n,r,o,h;if(this.is_multiple){for(r={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},o=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"],s=0,i=o.length;s<i;s++)n=o[s],r[n]=this.search_field.css(n);return e=t("<div />").css(r),e.text(this.get_search_field_value()),t("body").append(e),h=e.width()+25,e.remove(),this.container.is(":visible")&&(h=Math.min(this.container.outerWidth()-10,h)),this.search_field.width(h)}},s.prototype.trigger_form_field_change=function(t){return this.form_field_jq.trigger("input",t),this.form_field_jq.trigger("change",t)},s}(e)}).call(this);
assets/js/plugins/float-labels.js CHANGED
@@ -1,7 +1,7 @@
1
  /*!
2
  * Float Labels
3
  *
4
- * @version: 3.2.0
5
  * @author: Paul Ryley (http://geminilabs.io)
6
  * @url: https://geminilabs.github.io/float-labels.js
7
  * @license: MIT
@@ -15,8 +15,7 @@
15
 
16
  var Plugin = function( el, options )
17
  {
18
- this.el = this.isString( el ) ? document.querySelectorAll( el ) : el;
19
- if( !NodeList.prototype.isPrototypeOf( this.el ))return;
20
  this.config = [];
21
  this.options = options;
22
  this.selectors = [];
@@ -79,6 +78,12 @@
79
  };
80
  },
81
 
 
 
 
 
 
 
82
  /** @return null|void */
83
  build: function( el )
84
  {
@@ -214,8 +219,9 @@
214
  /** @return void */
215
  onInput: function( ev )
216
  {
217
- var event = ev.target.value.length ? 'add' : 'remove';
218
- ev.target.parentNode.classList[event]( this.prefixed( 'is-active' ));
 
219
  },
220
 
221
  /** @return void */
@@ -227,10 +233,7 @@
227
  /** @return void */
228
  onReset: function()
229
  {
230
- var fields = this.el[this.current].querySelectorAll( this.selectors[this.current] );
231
- for( var i = 0; i < fields.length; ++i ) {
232
- fields[i].parentNode.classList.remove( this.prefixed( 'is-active' ));
233
- }
234
  },
235
 
236
  /** @return string */
@@ -265,6 +268,17 @@
265
  this.handleEvents( el, 'remove' );
266
  },
267
 
 
 
 
 
 
 
 
 
 
 
 
268
  /** @return void */
269
  resetPlaceholder: function( el )
270
  {
@@ -312,7 +326,8 @@
312
  {
313
  var childEl = el.firstElementChild;
314
  if( childEl.hasAttribute( 'value' ) && childEl.value ) {
315
- el.insertBefore( new Option( placeholderText, '', true, true ), childEl );
 
316
  }
317
  else {
318
  childEl.setAttribute( 'value', '' );
@@ -328,7 +343,7 @@
328
  var wrapper = this.createEl( 'div', {
329
  class: this.prefixed( 'wrap' ) + ' ' + this.prefixed( 'wrap-' + el.tagName.toLowerCase() ),
330
  });
331
- if( el.hasAttribute( 'value' ) && el.value.length ) {
332
  wrapper.classList.add( this.prefixed( 'is-active' ));
333
  }
334
  if( el.getAttribute( 'required' ) !== null || el.classList.contains( this.config[this.current].requiredClass )) {
1
  /*!
2
  * Float Labels
3
  *
4
+ * @version: 3.3.2
5
  * @author: Paul Ryley (http://geminilabs.io)
6
  * @url: https://geminilabs.github.io/float-labels.js
7
  * @license: MIT
15
 
16
  var Plugin = function( el, options )
17
  {
18
+ this.el = this.isString( el ) ? document.querySelectorAll( el ) : [el];
 
19
  this.config = [];
20
  this.options = options;
21
  this.selectors = [];
78
  };
79
  },
80
 
81
+ /** @return string */
82
+ addRemove: function( bool )
83
+ {
84
+ return bool ? 'add' : 'remove';
85
+ },
86
+
87
  /** @return null|void */
88
  build: function( el )
89
  {
219
  /** @return void */
220
  onInput: function( ev )
221
  {
222
+ ev.target.parentNode.classList[
223
+ this.addRemove( ev.target.value.length )
224
+ ]( this.prefixed( 'is-active' ));
225
  },
226
 
227
  /** @return void */
233
  /** @return void */
234
  onReset: function()
235
  {
236
+ setTimeout( this.resetFields.bind( this ));
 
 
 
237
  },
238
 
239
  /** @return string */
268
  this.handleEvents( el, 'remove' );
269
  },
270
 
271
+ /** @return void */
272
+ resetFields: function()
273
+ {
274
+ var fields = this.el[this.current].querySelectorAll( this.selectors[this.current] );
275
+ for( var i = 0; i < fields.length; ++i ) {
276
+ fields[i].parentNode.classList[
277
+ this.addRemove( fields[i].tagName === 'SELECT' && fields[i].value !== '' )
278
+ ]( this.prefixed( 'is-active' ));
279
+ }
280
+ },
281
+
282
  /** @return void */
283
  resetPlaceholder: function( el )
284
  {
326
  {
327
  var childEl = el.firstElementChild;
328
  if( childEl.hasAttribute( 'value' ) && childEl.value ) {
329
+ var selected = el.options[el.selectedIndex].defaultSelected !== true ? true : false;
330
+ el.insertBefore( new Option( placeholderText, '', selected, selected ), childEl );
331
  }
332
  else {
333
  childEl.setAttribute( 'value', '' );
343
  var wrapper = this.createEl( 'div', {
344
  class: this.prefixed( 'wrap' ) + ' ' + this.prefixed( 'wrap-' + el.tagName.toLowerCase() ),
345
  });
346
+ if( el.value !== undefined && el.value.length ) {
347
  wrapper.classList.add( this.prefixed( 'is-active' ));
348
  }
349
  if( el.getAttribute( 'required' ) !== null || el.classList.contains( this.config[this.current].requiredClass )) {
assets/js/plugins/float-labels.min.js CHANGED
@@ -1 +1 @@
1
- !function(t,e,i){"use strict";var s=function(t,i){this.el=this.isString(t)?e.querySelectorAll(t):t,NodeList.prototype.isPrototypeOf(this.el)&&(this.config=[],this.options=i,this.selectors=[],this.init(),this.destroy=function(){this.loop(function(t){t.removeEventListener("reset",this.events.reset),this.removeClasses(t)},function(t){this.reset(t)})},this.rebuild=function(){this.loop(null,function(t){this.floatLabel(t,!0)})})};s.prototype={defaults:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init:function(){this.initEvents(),this.loop(function(t,e){var i=this.config[e].style;t.addEventListener("reset",this.events.reset),t.classList.add(this.prefixed("form")),i&&t.classList.add(this.prefixed("style-"+i))},function(t){this.floatLabel(t)})},initEvents:function(){this.events={blur:this.onBlur.bind(this),change:this.onInput.bind(this),focus:this.onFocus.bind(this),input:this.onInput.bind(this),reset:this.onReset.bind(this)}},build:function(t){var e=this.getLabel(t);e&&(t.classList.add(this.prefixed(t.tagName.toLowerCase())),this.setLabel(e,t),this.setPlaceholder(e,t),this.wrapLabel(e,t),this.handleEvents(t,"add"),"function"==typeof this.config[this.current].customEvent&&this.config[this.current].customEvent.call(this,t))},createEl:function(t,i){var s="string"==typeof t?e.createElement(t):t;i=i||{};for(var r in i)i.hasOwnProperty(r)&&s.setAttribute(r,i[r]);return s},extend:function(){var t=[].slice.call(arguments),e=t[0],i=t.slice(1);return Object.keys(i).forEach(function(t){for(var s in i[t])i[t].hasOwnProperty(s)&&(e[s]=i[t][s])}),e},floatLabel:function(t,e){if(t.getAttribute("id")&&("INPUT"!==t.tagName||this.config[this.current].inputRegex.test(t.getAttribute("type")))){if(this.hasParent(t)){if(e!==!0)return;this.reset(t)}this.build(t)}},getLabel:function(t){var e='label[for="'+t.getAttribute("id")+'"]',i=this.el[this.current].querySelectorAll(e);return i.length>1&&(i=t.parentNode.querySelectorAll(e)),1===i.length&&i[0]},getLabelText:function(t,e){var i=t.textContent.replace(/[*:]/g,"").trim(),s=e.getAttribute("placeholder");return(!i||i&&s&&"placeholder"===this.config[this.current].prioritize)&&(i=s),i},handleEvents:function(t,e){var i=this.events;["blur","input","focus"].forEach(function(s){"file"===t.type&&"input"===s&&(s="change"),t[e+"EventListener"](s,i[s])})},hasParent:function(t){return t.parentNode.classList.contains(this.prefixed("wrap"))},isString:function(t){return"[object String]"===Object.prototype.toString.call(t)},loop:function(t,e){for(var i=0;i<this.el.length;++i){if("undefined"==typeof this.selectors[i]){var s=this.extend({},this.defaults,this.options,this.el[i].getAttribute("data-options")),r=":not("+s.exclude.split(/[\s,]+/).join("):not(")+")";this.selectors[i]=s.transform.replace(/,/g,r+",")+r,this.config[i]=s}var n=this.el[i].querySelectorAll(this.selectors[i]);this.current=i,"function"==typeof t&&t.call(this,this.el[i],i);for(var o=0;o<n.length;++o)"function"==typeof e&&e.call(this,n[o],i)}},onBlur:function(t){t.target.parentNode.classList.remove(this.prefixed("has-focus"))},onInput:function(t){var e=t.target.value.length?"add":"remove";t.target.parentNode.classList[e](this.prefixed("is-active"))},onFocus:function(t){t.target.parentNode.classList.add(this.prefixed("has-focus"))},onReset:function(){for(var t=this.el[this.current].querySelectorAll(this.selectors[this.current]),e=0;e<t.length;++e)t[e].parentNode.classList.remove(this.prefixed("is-active"))},prefixed:function(t){return this.config[this.current].prefix+t},removeClasses:function(t){var e=this.config[this.current].prefix,i=t.className.split(" ").filter(function(t){return 0!==t.lastIndexOf(e,0)});t.className=i.join(" ").trim()},reset:function(t){var i=t.parentNode;if(this.hasParent(t)){for(var s=e.createDocumentFragment();i.firstElementChild;){var r=i.firstElementChild;this.removeClasses(r),s.appendChild(r)}i.parentNode.replaceChild(s,i),this.resetPlaceholder(t),this.handleEvents(t,"remove")}},resetPlaceholder:function(t){var e="data-placeholder",i=t.getAttribute(e);null!==i&&(t.removeAttribute(e),t.setAttribute("placeholder",i))},setLabel:function(t,e){t.classList.add(this.prefixed("label")),t.textContent=this.getLabelText(t,e),"function"==typeof this.config[this.current].customLabel&&(t.textContent=this.config[this.current].customLabel.call(this,t,e))},setPlaceholder:function(t,e){var i=e.getAttribute("placeholder");"label"!==this.config[this.current].prioritize&&i||(i&&e.setAttribute("data-placeholder",i),i=this.getLabelText(t,e)),"function"==typeof this.config[this.current].customPlaceholder&&(i=this.config[this.current].customPlaceholder.call(this,i,e,t)),"SELECT"===e.tagName?this.setSelectPlaceholder(e,i):e.setAttribute("placeholder",i)},setSelectPlaceholder:function(t,e){var i=t.firstElementChild;i.hasAttribute("value")&&i.value?t.insertBefore(new Option(e,"",(!0),(!0)),i):i.setAttribute("value",""),""===i.textContent&&(i.textContent=e)},wrapLabel:function(t,e){var i=this.createEl("div",{"class":this.prefixed("wrap")+" "+this.prefixed("wrap-"+e.tagName.toLowerCase())});e.hasAttribute("value")&&e.value.length&&i.classList.add(this.prefixed("is-active")),(null!==e.getAttribute("required")||e.classList.contains(this.config[this.current].requiredClass))&&i.classList.add(this.prefixed("is-required")),e.parentNode.insertBefore(i,e),i.appendChild(t),i.appendChild(e)}},t.FloatLabels=s}(window,document);
1
+ !function(t,e,i){"use strict";var s=function(t,i){this.el=this.isString(t)?e.querySelectorAll(t):[t],this.config=[],this.options=i,this.selectors=[],this.init(),this.destroy=function(){this.loop(function(t){t.removeEventListener("reset",this.events.reset),this.removeClasses(t)},function(t){this.reset(t)})},this.rebuild=function(){this.loop(null,function(t){this.floatLabel(t,!0)})}};s.prototype={defaults:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init:function(){this.initEvents(),this.loop(function(t,e){var i=this.config[e].style;t.addEventListener("reset",this.events.reset),t.classList.add(this.prefixed("form")),i&&t.classList.add(this.prefixed("style-"+i))},function(t){this.floatLabel(t)})},initEvents:function(){this.events={blur:this.onBlur.bind(this),change:this.onInput.bind(this),focus:this.onFocus.bind(this),input:this.onInput.bind(this),reset:this.onReset.bind(this)}},addRemove:function(t){return t?"add":"remove"},build:function(t){var e=this.getLabel(t);e&&(t.classList.add(this.prefixed(t.tagName.toLowerCase())),this.setLabel(e,t),this.setPlaceholder(e,t),this.wrapLabel(e,t),this.handleEvents(t,"add"),"function"==typeof this.config[this.current].customEvent&&this.config[this.current].customEvent.call(this,t))},createEl:function(t,i){var s="string"==typeof t?e.createElement(t):t;i=i||{};for(var n in i)i.hasOwnProperty(n)&&s.setAttribute(n,i[n]);return s},extend:function(){var t=[].slice.call(arguments),e=t[0],i=t.slice(1);return Object.keys(i).forEach(function(t){for(var s in i[t])i[t].hasOwnProperty(s)&&(e[s]=i[t][s])}),e},floatLabel:function(t,e){if(t.getAttribute("id")&&("INPUT"!==t.tagName||this.config[this.current].inputRegex.test(t.getAttribute("type")))){if(this.hasParent(t)){if(e!==!0)return;this.reset(t)}this.build(t)}},getLabel:function(t){var e='label[for="'+t.getAttribute("id")+'"]',i=this.el[this.current].querySelectorAll(e);return i.length>1&&(i=t.parentNode.querySelectorAll(e)),1===i.length&&i[0]},getLabelText:function(t,e){var i=t.textContent.replace(/[*:]/g,"").trim(),s=e.getAttribute("placeholder");return(!i||i&&s&&"placeholder"===this.config[this.current].prioritize)&&(i=s),i},handleEvents:function(t,e){var i=this.events;["blur","input","focus"].forEach(function(s){"file"===t.type&&"input"===s&&(s="change"),t[e+"EventListener"](s,i[s])})},hasParent:function(t){return t.parentNode.classList.contains(this.prefixed("wrap"))},isString:function(t){return"[object String]"===Object.prototype.toString.call(t)},loop:function(t,e){for(var i=0;i<this.el.length;++i){if("undefined"==typeof this.selectors[i]){var s=this.extend({},this.defaults,this.options,this.el[i].getAttribute("data-options")),n=":not("+s.exclude.split(/[\s,]+/).join("):not(")+")";this.selectors[i]=s.transform.replace(/,/g,n+",")+n,this.config[i]=s}var r=this.el[i].querySelectorAll(this.selectors[i]);this.current=i,"function"==typeof t&&t.call(this,this.el[i],i);for(var l=0;l<r.length;++l)"function"==typeof e&&e.call(this,r[l],i)}},onBlur:function(t){t.target.parentNode.classList.remove(this.prefixed("has-focus"))},onInput:function(t){t.target.parentNode.classList[this.addRemove(t.target.value.length)](this.prefixed("is-active"))},onFocus:function(t){t.target.parentNode.classList.add(this.prefixed("has-focus"))},onReset:function(){setTimeout(this.resetFields.bind(this))},prefixed:function(t){return this.config[this.current].prefix+t},removeClasses:function(t){var e=this.config[this.current].prefix,i=t.className.split(" ").filter(function(t){return 0!==t.lastIndexOf(e,0)});t.className=i.join(" ").trim()},reset:function(t){var i=t.parentNode;if(this.hasParent(t)){for(var s=e.createDocumentFragment();i.firstElementChild;){var n=i.firstElementChild;this.removeClasses(n),s.appendChild(n)}i.parentNode.replaceChild(s,i),this.resetPlaceholder(t),this.handleEvents(t,"remove")}},resetFields:function(){for(var t=this.el[this.current].querySelectorAll(this.selectors[this.current]),e=0;e<t.length;++e)t[e].parentNode.classList[this.addRemove("SELECT"===t[e].tagName&&""!==t[e].value)](this.prefixed("is-active"))},resetPlaceholder:function(t){var e="data-placeholder",i=t.getAttribute(e);null!==i&&(t.removeAttribute(e),t.setAttribute("placeholder",i))},setLabel:function(t,e){t.classList.add(this.prefixed("label")),t.textContent=this.getLabelText(t,e),"function"==typeof this.config[this.current].customLabel&&(t.textContent=this.config[this.current].customLabel.call(this,t,e))},setPlaceholder:function(t,e){var i=e.getAttribute("placeholder");"label"!==this.config[this.current].prioritize&&i||(i&&e.setAttribute("data-placeholder",i),i=this.getLabelText(t,e)),"function"==typeof this.config[this.current].customPlaceholder&&(i=this.config[this.current].customPlaceholder.call(this,i,e,t)),"SELECT"===e.tagName?this.setSelectPlaceholder(e,i):e.setAttribute("placeholder",i)},setSelectPlaceholder:function(t,e){var i=t.firstElementChild;if(i.hasAttribute("value")&&i.value){var s=t.options[t.selectedIndex].defaultSelected!==!0;t.insertBefore(new Option(e,"",s,s),i)}else i.setAttribute("value","");""===i.textContent&&(i.textContent=e)},wrapLabel:function(t,e){var s=this.createEl("div",{"class":this.prefixed("wrap")+" "+this.prefixed("wrap-"+e.tagName.toLowerCase())});e.value!==i&&e.value.length&&s.classList.add(this.prefixed("is-active")),(null!==e.getAttribute("required")||e.classList.contains(this.config[this.current].requiredClass))&&s.classList.add(this.prefixed("is-required")),e.parentNode.insertBefore(s,e),s.appendChild(t),s.appendChild(e)}},t.FloatLabels=s}(window,document);
assets/js/plugins/give-ajaxify-fields.js ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*global $:false, jQuery:false */
2
+ /**
3
+ * Note: This script is under development. We are using this inside core only and can be update in future.
4
+ */
5
+ ( function( $ ) {
6
+ 'use strict';
7
+
8
+ $.extend({
9
+ giveAjaxifyFields: function( customSettings ) {
10
+ var $countryField,
11
+ $parentWrapper,
12
+ defaultSettings = {
13
+
14
+ // Supported types: country_state.
15
+ type: '',
16
+
17
+ // Define these setting only if type set to country_state.
18
+ parentWrapper: 'form',
19
+ countryFieldName: 'country',
20
+ stateFieldName: 'state',
21
+ stateFieldWrapper: '.give-field-wrap',
22
+ chosenState: true
23
+ };
24
+
25
+ var settings = $.extend( {}, defaultSettings, ( customSettings || {} ) );
26
+
27
+ switch ( settings.type ) {
28
+ case 'country_state':
29
+ $countryField = $( 'select[name="' + settings.countryFieldName + '"]' );
30
+ $parentWrapper = $countryField.closest( settings.parentWrapper );
31
+
32
+ // Bailout.
33
+ if(
34
+ ! $countryField.length ||
35
+ 'Country_state' === $countryField.data( 'give-ajaxify-field' )
36
+ ) {
37
+ return;
38
+ }
39
+
40
+ // Set data attribute.
41
+ $countryField.data( 'give-ajaxify-field', 'country_state' );
42
+
43
+ // Update base state field based on selected base country
44
+ $countryField.change( function() {
45
+ var $this = $(this),
46
+ $stateField = $this.closest( settings.parentWrapper )
47
+ .find( '[name="' + settings.stateFieldName + '"]' ),
48
+ $stateFieldWrapper = $stateField.closest(settings.stateFieldWrapper),
49
+ $stateFieldLabel = $( 'label', $stateFieldWrapper );
50
+
51
+ // If state does not has wrapper then find it's label
52
+ if( ! settings.stateFieldWrapper ) {
53
+ $stateFieldLabel = $( 'label[for="' + settings.stateFieldName + '"]', $parentWrapper );
54
+ $stateFieldWrapper = $stateField.parent();
55
+ }
56
+
57
+ var data = {
58
+ action: 'give_get_states',
59
+ country: $this.val(),
60
+ field_name: settings.stateFieldName
61
+ };
62
+
63
+ $.post( ajaxurl, data, function ( response ) {
64
+
65
+ // Bailout.
66
+ if ( ! response.show_field ) {
67
+ if( settings.stateFieldWrapper ) {
68
+ $stateFieldWrapper.addClass('give-hidden');
69
+ } else{
70
+ $stateField.addClass('give-hidden');
71
+ }
72
+ return;
73
+ }
74
+
75
+ if( $stateFieldLabel.length ){
76
+ $stateFieldLabel.text( response.states_label );
77
+ }
78
+
79
+ if( settings.chosenState ) {
80
+ $stateField.chosen( 'destroy' );
81
+ }
82
+
83
+ // Show field.
84
+ if( settings.stateFieldWrapper ) {
85
+ $stateFieldWrapper.removeClass('give-hidden');
86
+ } else{
87
+ $stateField.removeClass('give-hidden');
88
+ }
89
+
90
+ if (
91
+ typeof ( response.states_found ) !== undefined &&
92
+ true === response.states_found
93
+ ) {
94
+ // Update html.
95
+ $stateField.replaceWith(response.data);
96
+
97
+ // Update selector.
98
+ $stateField = $('[name="' + settings.stateFieldName + '"]', $stateFieldWrapper );
99
+
100
+ // Reset chosenState
101
+ if( settings.chosenState ) {
102
+ $stateField.chosen();
103
+ }
104
+
105
+ } else {
106
+ $stateField.replaceWith('<input type="text" name="' + settings.stateFieldName + '" value="' + response.default_state + '" class="medium-text"/>');
107
+
108
+ // Update selector.
109
+ $stateField = $('[name="' + settings.stateFieldName + '"]', $stateFieldWrapper );
110
+ }
111
+ });
112
+ });
113
+
114
+ break;
115
+ }
116
+
117
+ return this;
118
+ }
119
+ });
120
+ })( jQuery );
assets/js/plugins/give-ajaxify-fields.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e){"use strict";e.extend({giveAjaxifyFields:function(t){var a,s,i={type:"",parentWrapper:"form",countryFieldName:"country",stateFieldName:"state",stateFieldWrapper:".give-field-wrap",chosenState:!0},n=e.extend({},i,t||{});switch(n.type){case"country_state":if(a=e('select[name="'+n.countryFieldName+'"]'),s=a.closest(n.parentWrapper),!a.length||"Country_state"===a.data("give-ajaxify-field"))return;a.data("give-ajaxify-field","country_state"),a.change(function(){var t=e(this),a=t.closest(n.parentWrapper).find('[name="'+n.stateFieldName+'"]'),i=a.closest(n.stateFieldWrapper),r=e("label",i);n.stateFieldWrapper||(r=e('label[for="'+n.stateFieldName+'"]',s),i=a.parent());var d={action:"give_get_states",country:t.val(),field_name:n.stateFieldName};e.post(ajaxurl,d,function(t){return t.show_field?(r.length&&r.text(t.states_label),n.chosenState&&a.chosen("destroy"),n.stateFieldWrapper?i.removeClass("give-hidden"):a.removeClass("give-hidden"),void(void 0!==typeof t.states_found&&!0===t.states_found?(a.replaceWith(t.data),a=e('[name="'+n.stateFieldName+'"]',i),n.chosenState&&a.chosen()):(a.replaceWith('<input type="text" name="'+n.stateFieldName+'" value="'+t.default_state+'" class="medium-text"/>'),a=e('[name="'+n.stateFieldName+'"]',i)))):void(n.stateFieldWrapper?i.addClass("give-hidden"):a.addClass("give-hidden"))})})}return this}})}(jQuery);
assets/js/plugins/give-hint.css.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery.fn.giveHintCss = function(action, settings ) {
2
+ return this.each(function(){
3
+ var $this = jQuery(this);
4
+ settings = jQuery.extend({
5
+ label: ''
6
+ }, settings );
7
+
8
+ var $tooltip = $this.next('span.give-hint-tooltip-js');
9
+ if( ! $tooltip.length ){
10
+ var label = ! settings.label.length ? $this.data('hint-aria-label') : settings.label;
11
+
12
+ // bailout.
13
+ if( ! label.length ) {
14
+ return;
15
+ }
16
+
17
+ $this.after( '<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="' + label + '"></span>' );
18
+ $tooltip = $this.next();
19
+
20
+ $tooltip.css({
21
+ top:-( $this.outerHeight() ),
22
+ left: - ($this.outerWidth()/2 )
23
+ });
24
+ }
25
+
26
+
27
+ if ( action === 'show' ) {
28
+ $tooltip.addClass( 'hint--always' );
29
+ }else if ( action === 'hide' ) {
30
+ $tooltip.removeClass( 'hint--always' );
31
+ }
32
+ });
33
+ };
34
+
35
+ // Qtip2 backward compatibility.
36
+ jQuery(document).ready(function ($) {
37
+ var qtip_tooltips = $('[data-tooltip]');
38
+
39
+ // Add hintcss tooltip to existing qtip.
40
+ if (qtip_tooltips.length) {
41
+ qtip_tooltips.each(function (index, tooltip) {
42
+ tooltip = ( tooltip instanceof jQuery ) ? tooltip : $(tooltip);
43
+ reset_qtip(tooltip);
44
+ });
45
+ }
46
+
47
+ // Add hintcss tooltip to dynamically created qtip.
48
+ $('body').on('hover', '[data-tooltip]', function () {
49
+ reset_qtip($(this));
50
+ });
51
+
52
+ /**
53
+ * Reset qtip to hintcss
54
+ * @param tooltip
55
+ */
56
+ function reset_qtip(tooltip) {
57
+ if (!tooltip.is('[class*="hint"]')) {
58
+ var classes = tooltip.attr('class'),
59
+ icon_classes = [],
60
+ label_length = tooltip.data('tooltip').split( ' ' ).length;
61
+
62
+ if (classes) {
63
+ classes = classes.split(' ');
64
+ icon_classes = $.grep(classes, function (item) {
65
+ return ( -1 !== item.indexOf('give-icon') );
66
+ });
67
+
68
+ if (icon_classes.length) {
69
+ // Set icon classes string.
70
+ icon_classes = icon_classes.join(' ');
71
+
72
+ // Remove icon class.
73
+ tooltip.removeClass(icon_classes);
74
+
75
+ // Add icon.
76
+ tooltip.append('<i class="' + icon_classes + '"></i>');
77
+ }
78
+ }
79
+
80
+ // Add hint.css related classes.
81
+ tooltip.addClass('hint--top');
82
+
83
+ if( 15 < label_length ) {
84
+ tooltip.addClass('hint--large');
85
+ }else if( 7 < label_length ) {
86
+ tooltip.addClass('hint--medium');
87
+ }
88
+
89
+ tooltip.attr('aria-label', tooltip.data('tooltip') );
90
+ }
91
+ }
92
+ });
assets/js/plugins/give-hint.css.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery.fn.giveHintCss=function(t,a){return this.each(function(){var i=jQuery(this);a=jQuery.extend({label:""},a);var e=i.next("span.give-hint-tooltip-js");if(!e.length){var n=a.label.length?a.label:i.data("hint-aria-label");if(!n.length)return;i.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+n+'"></span>'),e=i.next(),e.css({top:-i.outerHeight(),left:-(i.outerWidth()/2)})}"show"===t?e.addClass("hint--always"):"hide"===t&&e.removeClass("hint--always")})},jQuery(document).ready(function(t){function a(a){if(!a.is('[class*="hint"]')){var i=a.attr("class"),e=[],n=a.data("tooltip").split(" ").length;i&&(i=i.split(" "),e=t.grep(i,function(t){return-1!==t.indexOf("give-icon")}),e.length&&(e=e.join(" "),a.removeClass(e),a.append('<i class="'+e+'"></i>'))),a.addClass("hint--top"),15<n?a.addClass("hint--large"):7<n&&a.addClass("hint--medium"),a.attr("aria-label",a.data("tooltip"))}}var i=t("[data-tooltip]");i.length&&i.each(function(i,e){e=e instanceof jQuery?e:t(e),a(e)}),t("body").on("hover","[data-tooltip]",function(){a(t(this))})});
assets/js/plugins/jquery.qtip.js DELETED
@@ -1,3451 +0,0 @@
1
- /*
2
- * qTip2 - Pretty powerful tooltips - v2.2.1
3
- * http://qtip2.com
4
- *
5
- * Copyright (c) 2014
6
- * Released under the MIT licenses
7
- * http://jquery.org/license
8
- *
9
- * Date: Sun Sep 7 2014 12:09 GMT+0100+0100
10
- * Plugins: tips modal viewport svg imagemap ie6
11
- * Styles: core basic css3
12
- */
13
- /*global window: false, jQuery: false, console: false, define: false */
14
-
15
- /* Cache window, document, undefined */
16
- (function( window, document, undefined ) {
17
-
18
- // Uses AMD or browser globals to create a jQuery plugin.
19
- (function( factory ) {
20
- "use strict";
21
- if(typeof define === 'function' && define.amd) {
22
- define(['jquery'], factory);
23
- }
24
- else if(jQuery && !jQuery.fn.qtip) {
25
- factory(jQuery);
26
- }
27
- }
28
- (function($) {
29
- "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
30
- ;// Munge the primitives - Paul Irish tip
31
- var TRUE = true,
32
- FALSE = false,
33
- NULL = null,
34
-
35
- // Common variables
36
- X = 'x', Y = 'y',
37
- WIDTH = 'width',
38
- HEIGHT = 'height',
39
-
40
- // Positioning sides
41
- TOP = 'top',
42
- LEFT = 'left',
43
- BOTTOM = 'bottom',
44
- RIGHT = 'right',
45
- CENTER = 'center',
46
-
47
- // Position adjustment types
48
- FLIP = 'flip',
49
- FLIPINVERT = 'flipinvert',
50
- SHIFT = 'shift',
51
-
52
- // Shortcut vars
53
- QTIP, PROTOTYPE, CORNER, CHECKS,
54
- PLUGINS = {},
55
- NAMESPACE = 'qtip',
56
- ATTR_HAS = 'data-hasqtip',
57
- ATTR_ID = 'data-qtip-id',
58
- WIDGET = ['ui-widget', 'ui-tooltip'],
59
- SELECTOR = '.'+NAMESPACE,
60
- INACTIVE_EVENTS = 'click dblclick mousedown mouseup mousemove mouseleave mouseenter'.split(' '),
61
-
62
- CLASS_FIXED = NAMESPACE+'-fixed',
63
- CLASS_DEFAULT = NAMESPACE + '-default',
64
- CLASS_FOCUS = NAMESPACE + '-focus',
65
- CLASS_HOVER = NAMESPACE + '-hover',
66
- CLASS_DISABLED = NAMESPACE+'-disabled',
67
-
68
- replaceSuffix = '_replacedByqTip',
69
- oldtitle = 'oldtitle',
70
- trackingBound,
71
-
72
- // Browser detection
73
- BROWSER = {
74
- /*
75
- * IE version detection
76
- *
77
- * Adapted from: http://ajaxian.com/archives/attack-of-the-ie-conditional-comment
78
- * Credit to James Padolsey for the original implemntation!
79
- */
80
- ie: (function(){
81
- for (
82
- var v = 4, i = document.createElement("div");
83
- (i.innerHTML = "<!--[if gt IE " + v + "]><i></i><![endif]-->") && i.getElementsByTagName("i")[0];
84
- v+=1
85
- ) {}
86
- return v > 4 ? v : NaN;
87
- }()),
88
-
89
- /*
90
- * iOS version detection
91
- */
92
- iOS: parseFloat(
93
- ('' + (/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent) || [0,''])[1])
94
- .replace('undefined', '3_2').replace('_', '.').replace('_', '')
95
- ) || FALSE
96
- };
97
- ;function QTip(target, options, id, attr) {
98
- // Elements and ID
99
- this.id = id;
100
- this.target = target;
101
- this.tooltip = NULL;
102
- this.elements = { target: target };
103
-
104
- // Internal constructs
105
- this._id = NAMESPACE + '-' + id;
106
- this.timers = { img: {} };
107
- this.options = options;
108
- this.plugins = {};
109
-
110
- // Cache object
111
- this.cache = {
112
- event: {},
113
- target: $(),
114
- disabled: FALSE,
115
- attr: attr,
116
- onTooltip: FALSE,
117
- lastClass: ''
118
- };
119
-
120
- // Set the initial flags
121
- this.rendered = this.destroyed = this.disabled = this.waiting =
122
- this.hiddenDuringWait = this.positioning = this.triggering = FALSE;
123
- }
124
- PROTOTYPE = QTip.prototype;
125
-
126
- PROTOTYPE._when = function(deferreds) {
127
- return $.when.apply($, deferreds);
128
- };
129
-
130
- PROTOTYPE.render = function(show) {
131
- if(this.rendered || this.destroyed) { return this; } // If tooltip has already been rendered, exit
132
-
133
- var self = this,
134
- options = this.options,
135
- cache = this.cache,
136
- elements = this.elements,
137
- text = options.content.text,
138
- title = options.content.title,
139
- button = options.content.button,
140
- posOptions = options.position,
141
- namespace = '.'+this._id+' ',
142
- deferreds = [],
143
- tooltip;
144
-
145
- // Add ARIA attributes to target
146
- $.attr(this.target[0], 'aria-describedby', this._id);
147
-
148
- // Create public position object that tracks current position corners
149
- cache.posClass = this._createPosClass(
150
- (this.position = { my: posOptions.my, at: posOptions.at }).my
151
- );
152
-
153
- // Create tooltip element
154
- this.tooltip = elements.tooltip = tooltip = $('<div/>', {
155
- 'id': this._id,
156
- 'class': [ NAMESPACE, CLASS_DEFAULT, options.style.classes, cache.posClass ].join(' '),
157
- 'width': options.style.width || '',
158
- 'height': options.style.height || '',
159
- 'tracking': posOptions.target === 'mouse' && posOptions.adjust.mouse,
160
-
161
- /* ARIA specific attributes */
162
- 'role': 'alert',
163
- 'aria-live': 'polite',
164
- 'aria-atomic': FALSE,
165
- 'aria-describedby': this._id + '-content',
166
- 'aria-hidden': TRUE
167
- })
168
- .toggleClass(CLASS_DISABLED, this.disabled)
169
- .attr(ATTR_ID, this.id)
170
- .data(NAMESPACE, this)
171
- .appendTo(posOptions.container)
172
- .append(
173
- // Create content element
174
- elements.content = $('<div />', {
175
- 'class': NAMESPACE + '-content',
176
- 'id': this._id + '-content',
177
- 'aria-atomic': TRUE
178
- })
179
- );
180
-
181
- // Set rendered flag and prevent redundant reposition calls for now
182
- this.rendered = -1;
183
- this.positioning = TRUE;
184
-
185
- // Create title...
186
- if(title) {
187
- this._createTitle();
188
-
189
- // Update title only if its not a callback (called in toggle if so)
190
- if(!$.isFunction(title)) {
191
- deferreds.push( this._updateTitle(title, FALSE) );
192
- }
193
- }
194
-
195
- // Create button
196
- if(button) { this._createButton(); }
197
-
198
- // Set proper rendered flag and update content if not a callback function (called in toggle)
199
- if(!$.isFunction(text)) {
200
- deferreds.push( this._updateContent(text, FALSE) );
201
- }
202
- this.rendered = TRUE;
203
-
204
- // Setup widget classes
205
- this._setWidget();
206
-
207
- // Initialize 'render' plugins
208
- $.each(PLUGINS, function(name) {
209
- var instance;
210
- if(this.initialize === 'render' && (instance = this(self))) {
211
- self.plugins[name] = instance;
212
- }
213
- });
214
-
215
- // Unassign initial events and assign proper events
216
- this._unassignEvents();
217
- this._assignEvents();
218
-
219
- // When deferreds have completed
220
- this._when(deferreds).then(function() {
221
- // tooltiprender event
222
- self._trigger('render');
223
-
224
- // Reset flags
225
- self.positioning = FALSE;
226
-
227
- // Show tooltip if not hidden during wait period
228
- if(!self.hiddenDuringWait && (options.show.ready || show)) {
229
- self.toggle(TRUE, cache.event, FALSE);
230
- }
231
- self.hiddenDuringWait = FALSE;
232
- });
233
-
234
- // Expose API
235
- QTIP.api[this.id] = this;
236
-
237
- return this;
238
- };
239
-
240
- PROTOTYPE.destroy = function(immediate) {
241
- // Set flag the signify destroy is taking place to plugins
242
- // and ensure it only gets destroyed once!
243
- if(this.destroyed) { return this.target; }
244
-
245
- function process() {
246
- if(this.destroyed) { return; }
247
- this.destroyed = TRUE;
248
-
249
- var target = this.target,
250
- title = target.attr(oldtitle),
251
- timer;
252
-
253
- // Destroy tooltip if rendered
254
- if(this.rendered) {
255
- this.tooltip.stop(1,0).find('*').remove().end().remove();
256
- }
257
-
258
- // Destroy all plugins
259
- $.each(this.plugins, function(name) {
260
- this.destroy && this.destroy();
261
- });
262
-
263
- // Clear timers
264
- for(timer in this.timers) {
265
- clearTimeout(this.timers[timer]);
266
- }
267
-
268
- // Remove api object and ARIA attributes
269
- target.removeData(NAMESPACE)
270
- .removeAttr(ATTR_ID)
271
- .removeAttr(ATTR_HAS)
272
- .removeAttr('aria-describedby');
273
-
274
- // Reset old title attribute if removed
275
- if(this.options.suppress && title) {
276
- target.attr('title', title).removeAttr(oldtitle);
277
- }
278
-
279
- // Remove qTip events associated with this API
280
- this._unassignEvents();
281
-
282
- // Remove ID from used id objects, and delete object references
283
- // for better garbage collection and leak protection
284
- this.options = this.elements = this.cache = this.timers =
285
- this.plugins = this.mouse = NULL;
286
-
287
- // Delete epoxsed API object
288
- delete QTIP.api[this.id];
289
- }
290
-
291
- // If an immediate destory is needed
292
- if((immediate !== TRUE || this.triggering === 'hide') && this.rendered) {
293
- this.tooltip.one('tooltiphidden', $.proxy(process, this));
294
- !this.triggering && this.hide();
295
- }
296
-
297
- // If we're not in the process of hiding... process
298
- else { process.call(this); }
299
-
300
- return this.target;
301
- };
302
- ;function invalidOpt(a) {
303
- return a === NULL || $.type(a) !== 'object';
304
- }
305
-
306
- function invalidContent(c) {
307
- return !( $.isFunction(c) || (c && c.attr) || c.length || ($.type(c) === 'object' && (c.jquery || c.then) ));
308
- }
309
-
310
- // Option object sanitizer
311
- function sanitizeOptions(opts) {
312
- var content, text, ajax, once;
313
-
314
- if(invalidOpt(opts)) { return FALSE; }
315
-
316
- if(invalidOpt(opts.metadata)) {
317
- opts.metadata = { type: opts.metadata };
318
- }
319
-
320
- if('content' in opts) {
321
- content = opts.content;
322
-
323
- if(invalidOpt(content) || content.jquery || content.done) {
324
- content = opts.content = {
325
- text: (text = invalidContent(content) ? FALSE : content)
326
- };
327
- }
328
- else { text = content.text; }
329
-
330
- // DEPRECATED - Old content.ajax plugin functionality
331
- // Converts it into the proper Deferred syntax
332
- if('ajax' in content) {
333
- ajax = content.ajax;
334
- once = ajax && ajax.once !== FALSE;
335
- delete content.ajax;
336
-
337
- content.text = function(event, api) {
338
- var loading = text || $(this).attr(api.options.content.attr) || 'Loading...',
339
-
340
- deferred = $.ajax(
341
- $.extend({}, ajax, { context: api })
342
- )
343
- .then(ajax.success, NULL, ajax.error)
344
- .then(function(content) {
345
- if(content && once) { api.set('content.text', content); }
346
- return content;
347
- },
348
- function(xhr, status, error) {
349
- if(api.destroyed || xhr.status === 0) { return; }
350
- api.set('content.text', status + ': ' + error);
351
- });
352
-
353
- return !once ? (api.set('content.text', loading), deferred) : loading;
354
- };
355
- }
356
-
357
- if('title' in content) {
358
- if($.isPlainObject(content.title)) {
359
- content.button = content.title.button;
360
- content.title = content.title.text;
361
- }
362
-
363
- if(invalidContent(content.title || FALSE)) {
364
- content.title = FALSE;
365
- }
366
- }
367
- }
368
-
369
- if('position' in opts && invalidOpt(opts.position)) {
370
- opts.position = { my: opts.position, at: opts.position };
371
- }
372
-
373
- if('show' in opts && invalidOpt(opts.show)) {
374
- opts.show = opts.show.jquery ? { target: opts.show } :
375
- opts.show === TRUE ? { ready: TRUE } : { event: opts.show };
376
- }
377
-
378
- if('hide' in opts && invalidOpt(opts.hide)) {
379
- opts.hide = opts.hide.jquery ? { target: opts.hide } : { event: opts.hide };
380
- }
381
-
382
- if('style' in opts && invalidOpt(opts.style)) {
383
- opts.style = { classes: opts.style };
384
- }
385
-
386
- // Sanitize plugin options
387
- $.each(PLUGINS, function() {
388
- this.sanitize && this.sanitize(opts);
389
- });
390
-
391
- return opts;
392
- }
393
-
394
- // Setup builtin .set() option checks
395
- CHECKS = PROTOTYPE.checks = {
396
- builtin: {
397
- // Core checks
398
- '^id$': function(obj, o, v, prev) {
399
- var id = v === TRUE ? QTIP.nextid : v,
400
- new_id = NAMESPACE + '-' + id;
401
-
402
- if(id !== FALSE && id.length > 0 && !$('#'+new_id).length) {
403
- this._id = new_id;
404
-
405
- if(this.rendered) {
406
- this.tooltip[0].id = this._id;
407
- this.elements.content[0].id = this._id + '-content';
408
- this.elements.title[0].id = this._id + '-title';
409
- }
410
- }
411
- else { obj[o] = prev; }
412
- },
413
- '^prerender': function(obj, o, v) {
414
- v && !this.rendered && this.render(this.options.show.ready);
415
- },
416
-
417
- // Content checks
418
- '^content.text$': function(obj, o, v) {
419
- this._updateContent(v);
420
- },
421
- '^content.attr$': function(obj, o, v, prev) {
422
- if(this.options.content.text === this.target.attr(prev)) {
423
- this._updateContent( this.target.attr(v) );
424
- }
425
- },
426
- '^content.title$': function(obj, o, v) {
427
- // Remove title if content is null
428
- if(!v) { return this._removeTitle(); }
429
-
430
- // If title isn't already created, create it now and update
431
- v && !this.elements.title && this._createTitle();
432
- this._updateTitle(v);
433
- },
434
- '^content.button$': function(obj, o, v) {
435
- this._updateButton(v);
436
- },
437
- '^content.title.(text|button)$': function(obj, o, v) {
438
- this.set('content.'+o, v); // Backwards title.text/button compat
439
- },
440
-
441
- // Position checks
442
- '^position.(my|at)$': function(obj, o, v){
443
- 'string' === typeof v && (this.position[o] = obj[o] = new CORNER(v, o === 'at'));
444
- },
445
- '^position.container$': function(obj, o, v){
446
- this.rendered && this.tooltip.appendTo(v);
447
- },
448
-
449
- // Show checks
450
- '^show.ready$': function(obj, o, v) {
451
- v && (!this.rendered && this.render(TRUE) || this.toggle(TRUE));
452
- },
453
-
454
- // Style checks
455
- '^style.classes$': function(obj, o, v, p) {
456
- this.rendered && this.tooltip.removeClass(p).addClass(v);
457
- },
458
- '^style.(width|height)': function(obj, o, v) {
459
- this.rendered && this.tooltip.css(o, v);
460
- },
461
- '^style.widget|content.title': function() {
462
- this.rendered && this._setWidget();
463
- },
464
- '^style.def': function(obj, o, v) {
465
- this.rendered && this.tooltip.toggleClass(CLASS_DEFAULT, !!v);
466
- },
467
-
468
- // Events check
469
- '^events.(render|show|move|hide|focus|blur)$': function(obj, o, v) {
470
- this.rendered && this.tooltip[($.isFunction(v) ? '' : 'un') + 'bind']('tooltip'+o, v);
471
- },
472
-
473
- // Properties which require event reassignment
474
- '^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)': function() {
475
- if(!this.rendered) { return; }
476
-
477
- // Set tracking flag
478
- var posOptions = this.options.position;
479
- this.tooltip.attr('tracking', posOptions.target === 'mouse' && posOptions.adjust.mouse);
480
-
481
- // Reassign events
482
- this._unassignEvents();
483
- this._assignEvents();
484
- }
485
- }
486
- };
487
-
488
- // Dot notation converter
489
- function convertNotation(options, notation) {
490
- var i = 0, obj, option = options,
491
-
492
- // Split notation into array
493
- levels = notation.split('.');
494
-
495
- // Loop through
496
- while( option = option[ levels[i++] ] ) {
497
- if(i < levels.length) { obj = option; }
498
- }
499
-
500
- return [obj || options, levels.pop()];
501
- }
502
-
503
- PROTOTYPE.get = function(notation) {
504
- if(this.destroyed) { return this; }
505
-
506
- var o = convertNotation(this.options, notation.toLowerCase()),
507
- result = o[0][ o[1] ];
508
-
509
- return result.precedance ? result.string() : result;
510
- };
511
-
512
- function setCallback(notation, args) {
513
- var category, rule, match;
514
-
515
- for(category in this.checks) {
516
- for(rule in this.checks[category]) {
517
- if(match = (new RegExp(rule, 'i')).exec(notation)) {
518
- args.push(match);
519
-
520
- if(category === 'builtin' || this.plugins[category]) {
521
- this.checks[category][rule].apply(
522
- this.plugins[category] || this, args
523
- );
524
- }
525
- }
526
- }
527
- }
528
- }
529
-
530
- var rmove = /^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,
531
- rrender = /^prerender|show\.ready/i;
532
-
533
- PROTOTYPE.set = function(option, value) {
534
- if(this.destroyed) { return this; }
535
-
536
- var rendered = this.rendered,
537
- reposition = FALSE,
538
- options = this.options,
539
- checks = this.checks,
540
- name;
541
-
542
- // Convert singular option/value pair into object form
543
- if('string' === typeof option) {
544
- name = option; option = {}; option[name] = value;
545
- }
546
- else { option = $.extend({}, option); }
547
-
548
- // Set all of the defined options to their new values
549
- $.each(option, function(notation, value) {
550
- if(rendered && rrender.test(notation)) {
551
- delete option[notation]; return;
552
- }
553
-
554
- // Set new obj value
555
- var obj = convertNotation(options, notation.toLowerCase()), previous;
556
- previous = obj[0][ obj[1] ];
557
- obj[0][ obj[1] ] = value && value.nodeType ? $(value) : value;
558
-
559
- // Also check if we need to reposition
560
- reposition = rmove.test(notation) || reposition;
561
-
562
- // Set the new params for the callback
563
- option[notation] = [obj[0], obj[1], value, previous];
564
- });
565
-
566
- // Re-sanitize options
567
- sanitizeOptions(options);
568
-
569
- /*
570
- * Execute any valid callbacks for the set options
571
- * Also set positioning flag so we don't get loads of redundant repositioning calls.
572
- */
573
- this.positioning = TRUE;
574
- $.each(option, $.proxy(setCallback, this));
575
- this.positioning = FALSE;
576
-
577
- // Update position if needed
578
- if(this.rendered && this.tooltip[0].offsetWidth > 0 && reposition) {
579
- this.reposition( options.position.target === 'mouse' ? NULL : this.cache.event );
580
- }
581
-
582
- return this;
583
- };
584
- ;PROTOTYPE._update = function(content, element, reposition) {
585
- var self = this,
586
- cache = this.cache;
587
-
588
- // Make sure tooltip is rendered and content is defined. If not return
589
- if(!this.rendered || !content) { return FALSE; }
590
-
591
- // Use function to parse content
592
- if($.isFunction(content)) {
593
- content = content.call(this.elements.target, cache.event, this) || '';
594
- }
595
-
596
- // Handle deferred content
597
- if($.isFunction(content.then)) {
598
- cache.waiting = TRUE;
599
- return content.then(function(c) {
600
- cache.waiting = FALSE;
601
- return self._update(c, element);
602
- }, NULL, function(e) {
603
- return self._update(e, element);
604
- });
605
- }
606
-
607
- // If content is null... return false
608
- if(content === FALSE || (!content && content !== '')) { return FALSE; }
609
-
610
- // Append new content if its a DOM array and show it if hidden
611
- if(content.jquery && content.length > 0) {
612
- element.empty().append(
613
- content.css({ display: 'block', visibility: 'visible' })
614
- );
615
- }
616
-
617
- // Content is a regular string, insert the new content
618
- else { element.html(content); }
619
-
620
- // Wait for content to be loaded, and reposition
621
- return this._waitForContent(element).then(function(images) {
622
- if(self.rendered && self.tooltip[0].offsetWidth > 0) {
623
- self.reposition(cache.event, !images.length);
624
- }
625
- });
626
- };
627
-
628
- PROTOTYPE._waitForContent = function(element) {
629
- var cache = this.cache;
630
-
631
- // Set flag
632
- cache.waiting = TRUE;
633
-
634
- // If imagesLoaded is included, ensure images have loaded and return promise
635
- return ( $.fn.imagesLoaded ? element.imagesLoaded() : $.Deferred().resolve([]) )
636
- .done(function() { cache.waiting = FALSE; })
637
- .promise();
638
- };
639
-
640
- PROTOTYPE._updateContent = function(content, reposition) {
641
- this._update(content, this.elements.content, reposition);
642
- };
643
-
644
- PROTOTYPE._updateTitle = function(content, reposition) {
645
- if(this._update(content, this.elements.title, reposition) === FALSE) {
646
- this._removeTitle(FALSE);
647
- }
648
- };
649
-
650
- PROTOTYPE._createTitle = function()
651
- {
652
- var elements = this.elements,
653
- id = this._id+'-title';
654
-
655
- // Destroy previous title element, if present
656
- if(elements.titlebar) { this._removeTitle(); }
657
-
658
- // Create title bar and title elements
659
- elements.titlebar = $('<div />', {
660
- 'class': NAMESPACE + '-titlebar ' + (this.options.style.widget ? createWidgetClass('header') : '')
661
- })
662
- .append(
663
- elements.title = $('<div />', {
664
- 'id': id,
665
- 'class': NAMESPACE + '-title',
666
- 'aria-atomic': TRUE
667
- })
668
- )
669
- .insertBefore(elements.content)
670
-
671
- // Button-specific events
672
- .delegate('.qtip-close', 'mousedown keydown mouseup keyup mouseout', function(event) {
673
- $(this).toggleClass('ui-state-active ui-state-focus', event.type.substr(-4) === 'down');
674
- })
675
- .delegate('.qtip-close', 'mouseover mouseout', function(event){
676
- $(this).toggleClass('ui-state-hover', event.type === 'mouseover');
677
- });
678
-
679
- // Create button if enabled
680
- if(this.options.content.button) { this._createButton(); }
681
- };
682
-
683
- PROTOTYPE._removeTitle = function(reposition)
684
- {
685
- var elements = this.elements;
686
-
687
- if(elements.title) {
688
- elements.titlebar.remove();
689
- elements.titlebar = elements.title = elements.button = NULL;
690
-
691
- // Reposition if enabled
692
- if(reposition !== FALSE) { this.reposition(); }
693
- }
694
- };
695
- ;PROTOTYPE._createPosClass = function(my) {
696
- return NAMESPACE + '-pos-' + (my || this.options.position.my).abbrev();
697
- };
698
-
699
- PROTOTYPE.reposition = function(event, effect) {
700
- if(!this.rendered || this.positioning || this.destroyed) { return this; }
701
-
702
- // Set positioning flag
703
- this.positioning = TRUE;
704
-
705
- var cache = this.cache,
706
- tooltip = this.tooltip,
707
- posOptions = this.options.position,
708
- target = posOptions.target,
709
- my = posOptions.my,
710
- at = posOptions.at,
711
- viewport = posOptions.viewport,
712
- container = posOptions.container,
713
- adjust = posOptions.adjust,
714
- method = adjust.method.split(' '),
715
- tooltipWidth = tooltip.outerWidth(FALSE),
716
- tooltipHeight = tooltip.outerHeight(FALSE),
717
- targetWidth = 0,
718
- targetHeight = 0,
719
- type = tooltip.css('position'),
720
- position = { left: 0, top: 0 },
721
- visible = tooltip[0].offsetWidth > 0,
722
- isScroll = event && event.type === 'scroll',
723
- win = $(window),
724
- doc = container[0].ownerDocument,
725
- mouse = this.mouse,
726
- pluginCalculations, offset, adjusted, newClass;
727
-
728
- // Check if absolute position was passed
729
- if($.isArray(target) && target.length === 2) {
730
- // Force left top and set position
731
- at = { x: LEFT, y: TOP };
732
- position = { left: target[0], top: target[1] };
733
- }
734
-
735
- // Check if mouse was the target
736
- else if(target === 'mouse') {
737
- // Force left top to allow flipping
738
- at = { x: LEFT, y: TOP };
739
-
740
- // Use the mouse origin that caused the show event, if distance hiding is enabled
741
- if((!adjust.mouse || this.options.hide.distance) && cache.origin && cache.origin.pageX) {
742
- event = cache.origin;
743
- }
744
-
745
- // Use cached event for resize/scroll events
746
- else if(!event || (event && (event.type === 'resize' || event.type === 'scroll'))) {
747
- event = cache.event;
748
- }
749
-
750
- // Otherwise, use the cached mouse coordinates if available
751
- else if(mouse && mouse.pageX) {
752
- event = mouse;
753
- }
754
-
755
- // Calculate body and container offset and take them into account below
756
- if(type !== 'static') { position = container.offset(); }
757
- if(doc.body.offsetWidth !== (window.innerWidth || doc.documentElement.clientWidth)) {
758
- offset = $(document.body).offset();
759
- }
760
-
761
- // Use event coordinates for position
762
- position = {
763
- left: event.pageX - position.left + (offset && offset.left || 0),
764
- top: event.pageY - position.top + (offset && offset.top || 0)
765
- };
766
-
767
- // Scroll events are a pain, some browsers
768
- if(adjust.mouse && isScroll && mouse) {
769
- position.left -= (mouse.scrollX || 0) - win.scrollLeft();
770
- position.top -= (mouse.scrollY || 0) - win.scrollTop();
771
- }
772
- }
773
-
774
- // Target wasn't mouse or absolute...
775
- else {
776
- // Check if event targetting is being used
777
- if(target === 'event') {
778
- if(event && event.target && event.type !== 'scroll' && event.type !== 'resize') {
779
- cache.target = $(event.target);
780
- }
781
- else if(!event.target) {
782
- cache.target = this.elements.target;
783
- }
784
- }
785
- else if(target !== 'event'){
786
- cache.target = $(target.jquery ? target : this.elements.target);
787
- }
788
- target = cache.target;
789
-
790
- // Parse the target into a jQuery object and make sure there's an element present
791
- target = $(target).eq(0);
792
- if(target.length === 0) { return this; }
793
-
794
- // Check if window or document is the target
795
- else if(target[0] === document || target[0] === window) {
796
- targetWidth = BROWSER.iOS ? window.innerWidth : target.width();
797
- targetHeight = BROWSER.iOS ? window.innerHeight : target.height();
798
-
799
- if(target[0] === window) {
800
- position = {
801
- top: (viewport || target).scrollTop(),
802
- left: (viewport || target).scrollLeft()
803
- };
804
- }
805
- }
806
-
807
- // Check if the target is an <AREA> element
808
- else if(PLUGINS.imagemap && target.is('area')) {
809
- pluginCalculations = PLUGINS.imagemap(this, target, at, PLUGINS.viewport ? method : FALSE);
810
- }
811
-
812
- // Check if the target is an SVG element
813
- else if(PLUGINS.svg && target && target[0].ownerSVGElement) {
814
- pluginCalculations = PLUGINS.svg(this, target, at, PLUGINS.viewport ? method : FALSE);
815
- }
816
-
817
- // Otherwise use regular jQuery methods
818
- else {
819
- targetWidth = target.outerWidth(FALSE);
820
- targetHeight = target.outerHeight(FALSE);
821
- position = target.offset();
822
- }
823
-
824
- // Parse returned plugin values into proper variables
825
- if(pluginCalculations) {
826
- targetWidth = pluginCalculations.width;
827
- targetHeight = pluginCalculations.height;
828
- offset = pluginCalculations.offset;
829
- position = pluginCalculations.position;
830
- }
831
-
832
- // Adjust position to take into account offset parents
833
- position = this.reposition.offset(target, position, container);
834
-
835
- // Adjust for position.fixed tooltips (and also iOS scroll bug in v3.2-4.0 & v4.3-4.3.2)
836
- if((BROWSER.iOS > 3.1 && BROWSER.iOS < 4.1) ||
837
- (BROWSER.iOS >= 4.3 && BROWSER.iOS < 4.33) ||
838
- (!BROWSER.iOS && type === 'fixed')
839
- ){
840
- position.left -= win.scrollLeft();
841
- position.top -= win.scrollTop();
842
- }
843
-
844
- // Adjust position relative to target
845
- if(!pluginCalculations || (pluginCalculations && pluginCalculations.adjustable !== FALSE)) {
846
- position.left += at.x === RIGHT ? targetWidth : at.x === CENTER ? targetWidth / 2 : 0;
847
- position.top += at.y === BOTTOM ? targetHeight : at.y === CENTER ? targetHeight / 2 : 0;
848
- }
849
- }
850
-
851
- // Adjust position relative to tooltip
852
- position.left += adjust.x + (my.x === RIGHT ? -tooltipWidth : my.x === CENTER ? -tooltipWidth / 2 : 0);
853
- position.top += adjust.y + (my.y === BOTTOM ? -tooltipHeight : my.y === CENTER ? -tooltipHeight / 2 : 0);
854
-
855
- // Use viewport adjustment plugin if enabled
856
- if(PLUGINS.viewport) {
857
- adjusted = position.adjusted = PLUGINS.viewport(
858
- this, position, posOptions, targetWidth, targetHeight, tooltipWidth, tooltipHeight
859
- );
860
-
861
- // Apply offsets supplied by positioning plugin (if used)
862
- if(offset && adjusted.left) { position.left += offset.left; }
863
- if(offset && adjusted.top) { position.top += offset.top; }
864
-
865
- // Apply any new 'my' position
866
- if(adjusted.my) { this.position.my = adjusted.my; }
867
- }
868
-
869
- // Viewport adjustment is disabled, set values to zero
870
- else { position.adjusted = { left: 0, top: 0 }; }
871
-
872
- // Set tooltip position class if it's changed
873
- if(cache.posClass !== (newClass = this._createPosClass(this.position.my))) {
874
- tooltip.removeClass(cache.posClass).addClass( (cache.posClass = newClass) );
875
- }
876
-
877
- // tooltipmove event
878
- if(!this._trigger('move', [position, viewport.elem || viewport], event)) { return this; }
879
- delete position.adjusted;
880
-
881
- // If effect is disabled, target it mouse, no animation is defined or positioning gives NaN out, set CSS directly
882
- if(effect === FALSE || !visible || isNaN(position.left) || isNaN(position.top) || target === 'mouse' || !$.isFunction(posOptions.effect)) {
883
- tooltip.css(position);
884
- }
885
-
886
- // Use custom function if provided
887
- else if($.isFunction(posOptions.effect)) {
888
- posOptions.effect.call(tooltip, this, $.extend({}, position));
889
- tooltip.queue(function(next) {
890
- // Reset attributes to avoid cross-browser rendering bugs
891
- $(this).css({ opacity: '', height: '' });
892
- if(BROWSER.ie) { this.style.removeAttribute('filter'); }
893
-
894
- next();
895
- });
896
- }
897
-
898
- // Set positioning flag
899
- this.positioning = FALSE;
900
-
901
- return this;
902
- };
903
-
904
- // Custom (more correct for qTip!) offset calculator
905
- PROTOTYPE.reposition.offset = function(elem, pos, container) {
906
- if(!container[0]) { return pos; }
907
-
908
- var ownerDocument = $(elem[0].ownerDocument),
909
- quirks = !!BROWSER.ie && document.compatMode !== 'CSS1Compat',
910
- parent = container[0],
911
- scrolled, position, parentOffset, overflow;
912
-
913
- function scroll(e, i) {
914
- pos.left += i * e.scrollLeft();
915
- pos.top += i * e.scrollTop();
916
- }
917
-
918
- // Compensate for non-static containers offset
919
- do {
920
- if((position = $.css(parent, 'position')) !== 'static') {
921
- if(position === 'fixed') {
922
- parentOffset = parent.getBoundingClientRect();
923
- scroll(ownerDocument, -1);
924
- }
925
- else {
926
- parentOffset = $(parent).position();
927
- parentOffset.left += (parseFloat($.css(parent, 'borderLeftWidth')) || 0);
928
- parentOffset.top += (parseFloat($.css(parent, 'borderTopWidth')) || 0);
929
- }
930
-
931
- pos.left -= parentOffset.left + (parseFloat($.css(parent, 'marginLeft')) || 0);
932
- pos.top -= parentOffset.top + (parseFloat($.css(parent, 'marginTop')) || 0);
933
-
934
- // If this is the first parent element with an overflow of "scroll" or "auto", store it
935
- if(!scrolled && (overflow = $.css(parent, 'overflow')) !== 'hidden' && overflow !== 'visible') { scrolled = $(parent); }
936
- }
937
- }
938
- while((parent = parent.offsetParent));
939
-
940
- // Compensate for containers scroll if it also has an offsetParent (or in IE quirks mode)
941
- if(scrolled && (scrolled[0] !== ownerDocument[0] || quirks)) {
942
- scroll(scrolled, 1);
943
- }
944
-
945
- return pos;
946
- };
947
-
948
- // Corner class
949
- var C = (CORNER = PROTOTYPE.reposition.Corner = function(corner, forceY) {
950
- corner = ('' + corner).replace(/([A-Z])/, ' $1').replace(/middle/gi, CENTER).toLowerCase();
951
- this.x = (corner.match(/left|right/i) || corner.match(/center/) || ['inherit'])[0].toLowerCase();
952
- this.y = (corner.match(/top|bottom|center/i) || ['inherit'])[0].toLowerCase();
953
- this.forceY = !!forceY;
954
-
955
- var f = corner.charAt(0);
956
- this.precedance = (f === 't' || f === 'b' ? Y : X);
957
- }).prototype;
958
-
959
- C.invert = function(z, center) {
960
- this[z] = this[z] === LEFT ? RIGHT : this[z] === RIGHT ? LEFT : center || this[z];
961
- };
962
-
963
- C.string = function(join) {
964
- var x = this.x, y = this.y;
965
-
966
- var result = x !== y ?
967
- (x === 'center' || y !== 'center' && (this.precedance === Y || this.forceY) ?
968
- [y,x] : [x,y]
969
- ) :
970
- [x];
971
-
972
- return join !== false ? result.join(' ') : result;
973
- };
974
-
975
- C.abbrev = function() {
976
- var result = this.string(false);
977
- return result[0].charAt(0) + (result[1] && result[1].charAt(0) || '');
978
- };
979
-
980
- C.clone = function() {
981
- return new CORNER( this.string(), this.forceY );
982
- };
983
-
984
- ;
985
- PROTOTYPE.toggle = function(state, event) {
986
- var cache = this.cache,
987
- options = this.options,
988
- tooltip = this.tooltip;
989
-
990
- // Try to prevent flickering when tooltip overlaps show element
991
- if(event) {
992
- if((/over|enter/).test(event.type) && cache.event && (/out|leave/).test(cache.event.type) &&
993
- options.show.target.add(event.target).length === options.show.target.length &&
994
- tooltip.has(event.relatedTarget).length) {
995
- return this;
996
- }
997
-
998
- // Cache event
999
- cache.event = $.event.fix(event);
1000
- }
1001
-
1002
- // If we're currently waiting and we've just hidden... stop it
1003
- this.waiting && !state && (this.hiddenDuringWait = TRUE);
1004
-
1005
- // Render the tooltip if showing and it isn't already
1006
- if(!this.rendered) { return state ? this.render(1) : this; }
1007
- else if(this.destroyed || this.disabled) { return this; }
1008
-
1009
- var type = state ? 'show' : 'hide',
1010
- opts = this.options[type],
1011
- otherOpts = this.options[ !state ? 'show' : 'hide' ],
1012
- posOptions = this.options.position,
1013
- contentOptions = this.options.content,
1014
- width = this.tooltip.css('width'),
1015
- visible = this.tooltip.is(':visible'),
1016
- animate = state || opts.target.length === 1,
1017
- sameTarget = !event || opts.target.length < 2 || cache.target[0] === event.target,
1018
- identicalState, allow, showEvent, delay, after;
1019
-
1020
- // Detect state if valid one isn't provided
1021
- if((typeof state).search('boolean|number')) { state = !visible; }
1022
-
1023
- // Check if the tooltip is in an identical state to the new would-be state
1024
- identicalState = !tooltip.is(':animated') && visible === state && sameTarget;
1025
-
1026
- // Fire tooltip(show/hide) event and check if destroyed
1027
- allow = !identicalState ? !!this._trigger(type, [90]) : NULL;
1028
-
1029
- // Check to make sure the tooltip wasn't destroyed in the callback
1030
- if(this.destroyed) { return this; }
1031
-
1032
- // If the user didn't stop the method prematurely and we're showing the tooltip, focus it
1033
- if(allow !== FALSE && state) { this.focus(event); }
1034
-
1035
- // If the state hasn't changed or the user stopped it, return early
1036
- if(!allow || identicalState) { return this; }
1037
-
1038
- // Set ARIA hidden attribute
1039
- $.attr(tooltip[0], 'aria-hidden', !!!state);
1040
-
1041
- // Execute state specific properties
1042
- if(state) {
1043
- // Store show origin coordinates
1044
- this.mouse && (cache.origin = $.event.fix(this.mouse));
1045
-
1046
- // Update tooltip content & title if it's a dynamic function
1047
- if($.isFunction(contentOptions.text)) { this._updateContent(contentOptions.text, FALSE); }
1048
- if($.isFunction(contentOptions.title)) { this._updateTitle(contentOptions.title, FALSE); }
1049
-
1050
- // Cache mousemove events for positioning purposes (if not already tracking)
1051
- if(!trackingBound && posOptions.target === 'mouse' && posOptions.adjust.mouse) {
1052
- $(document).bind('mousemove.'+NAMESPACE, this._storeMouse);
1053
- trackingBound = TRUE;
1054
- }
1055
-
1056
- // Update the tooltip position (set width first to prevent viewport/max-width issues)
1057
- if(!width) { tooltip.css('width', tooltip.outerWidth(FALSE)); }
1058
- this.reposition(event, arguments[2]);
1059
- if(!width) { tooltip.css('width', ''); }
1060
-
1061
- // Hide other tooltips if tooltip is solo
1062
- if(!!opts.solo) {
1063
- (typeof opts.solo === 'string' ? $(opts.solo) : $(SELECTOR, opts.solo))
1064
- .not(tooltip).not(opts.target).qtip('hide', $.Event('tooltipsolo'));
1065
- }
1066
- }
1067
- else {
1068
- // Clear show timer if we're hiding
1069
- clearTimeout(this.timers.show);
1070
-
1071
- // Remove cached origin on hide
1072
- delete cache.origin;
1073
-
1074
- // Remove mouse tracking event if not needed (all tracking qTips are hidden)
1075
- if(trackingBound && !$(SELECTOR+'[tracking="true"]:visible', opts.solo).not(tooltip).length) {
1076
- $(document).unbind('mousemove.'+NAMESPACE);
1077
- trackingBound = FALSE;
1078
- }
1079
-
1080
- // Blur the tooltip
1081
- this.blur(event);
1082
- }
1083
-
1084
- // Define post-animation, state specific properties
1085
- after = $.proxy(function() {
1086
- if(state) {
1087
- // Prevent antialias from disappearing in IE by removing filter
1088
- if(BROWSER.ie) { tooltip[0].style.removeAttribute('filter'); }
1089
-
1090
- // Remove overflow setting to prevent tip bugs
1091
- tooltip.css('overflow', '');
1092
-
1093
- // Autofocus elements if enabled
1094
- if('string' === typeof opts.autofocus) {
1095
- $(this.options.show.autofocus, tooltip).focus();
1096
- }
1097
-
1098
- // If set, hide tooltip when inactive for delay period
1099
- this.options.show.target.trigger('qtip-'+this.id+'-inactive');
1100
- }
1101
- else {
1102
- // Reset CSS states
1103
- tooltip.css({
1104
- display: '',
1105
- visibility: '',
1106
- opacity: '',
1107
- left: '',
1108
- top: ''
1109
- });
1110
- }
1111
-
1112
- // tooltipvisible/tooltiphidden events
1113
- this._trigger(state ? 'visible' : 'hidden');
1114
- }, this);
1115
-
1116
- // If no effect type is supplied, use a simple toggle
1117
- if(opts.effect === FALSE || animate === FALSE) {
1118
- tooltip[ type ]();
1119
- after();
1120
- }
1121
-
1122
- // Use custom function if provided
1123
- else if($.isFunction(opts.effect)) {
1124
- tooltip.stop(1, 1);
1125
- opts.effect.call(tooltip, this);
1126
- tooltip.queue('fx', function(n) {
1127
- after(); n();
1128
- });
1129
- }
1130
-
1131
- // Use basic fade function by default
1132
- else { tooltip.fadeTo(90, state ? 1 : 0, after); }
1133
-
1134
- // If inactive hide method is set, active it
1135
- if(state) { opts.target.trigger('qtip-'+this.id+'-inactive'); }
1136
-
1137
- return this;
1138
- };
1139
-
1140
- PROTOTYPE.show = function(event) { return this.toggle(TRUE, event); };
1141
-
1142
- PROTOTYPE.hide = function(event) { return this.toggle(FALSE, event); };
1143
- ;PROTOTYPE.focus = function(event) {
1144
- if(!this.rendered || this.destroyed) { return this; }
1145
-
1146
- var qtips = $(SELECTOR),
1147
- tooltip = this.tooltip,
1148
- curIndex = parseInt(tooltip[0].style.zIndex, 10),
1149
- newIndex = QTIP.zindex + qtips.length,
1150
- focusedElem;
1151
-
1152
- // Only update the z-index if it has changed and tooltip is not already focused
1153
- if(!tooltip.hasClass(CLASS_FOCUS)) {
1154
- // tooltipfocus event
1155
- if(this._trigger('focus', [newIndex], event)) {
1156
- // Only update z-index's if they've changed
1157
- if(curIndex !== newIndex) {
1158
- // Reduce our z-index's and keep them properly ordered
1159
- qtips.each(function() {
1160
- if(this.style.zIndex > curIndex) {
1161
- this.style.zIndex = this.style.zIndex - 1;
1162
- }
1163
- });
1164
-
1165
- // Fire blur event for focused tooltip
1166
- qtips.filter('.' + CLASS_FOCUS).qtip('blur', event);
1167
- }
1168
-
1169
- // Set the new z-index
1170
- tooltip.addClass(CLASS_FOCUS)[0].style.zIndex = newIndex;
1171
- }
1172
- }
1173
-
1174
- return this;
1175
- };
1176
-
1177
- PROTOTYPE.blur = function(event) {
1178
- if(!this.rendered || this.destroyed) { return this; }
1179
-
1180
- // Set focused status to FALSE
1181
- this.tooltip.removeClass(CLASS_FOCUS);
1182
-
1183
- // tooltipblur event
1184
- this._trigger('blur', [ this.tooltip.css('zIndex') ], event);
1185
-
1186
- return this;
1187
- };
1188
- ;PROTOTYPE.disable = function(state) {
1189
- if(this.destroyed) { return this; }
1190
-
1191
- // If 'toggle' is passed, toggle the current state
1192
- if(state === 'toggle') {
1193
- state = !(this.rendered ? this.tooltip.hasClass(CLASS_DISABLED) : this.disabled);
1194
- }
1195
-
1196
- // Disable if no state passed
1197
- else if('boolean' !== typeof state) {
1198
- state = TRUE;
1199
- }
1200
-
1201
- if(this.rendered) {
1202
- this.tooltip.toggleClass(CLASS_DISABLED, state)
1203
- .attr('aria-disabled', state);
1204
- }
1205
-
1206
- this.disabled = !!state;
1207
-
1208
- return this;
1209
- };
1210
-
1211
- PROTOTYPE.enable = function() { return this.disable(FALSE); };
1212
- ;PROTOTYPE._createButton = function()
1213
- {
1214
- var self = this,
1215
- elements = this.elements,
1216
- tooltip = elements.tooltip,
1217
- button = this.options.content.button,
1218
- isString = typeof button === 'string',
1219
- close = isString ? button : 'Close tooltip';
1220
-
1221
- if(elements.button) { elements.button.remove(); }
1222
-
1223
- // Use custom button if one was supplied by user, else use default
1224
- if(button.jquery) {
1225
- elements.button = button;
1226
- }
1227
- else {
1228
- elements.button = $('<a />', {
1229
- 'class': 'qtip-close ' + (this.options.style.widget ? '' : NAMESPACE+'-icon'),
1230
- 'title': close,
1231
- 'aria-label': close
1232
- })
1233
- .prepend(
1234
- $('<span />', {
1235
- 'class': 'ui-icon ui-icon-close',
1236
- 'html': '&times;'
1237
- })
1238
- );
1239
- }
1240
-
1241
- // Create button and setup attributes
1242
- elements.button.appendTo(elements.titlebar || tooltip)
1243
- .attr('role', 'button')
1244
- .click(function(event) {
1245
- if(!tooltip.hasClass(CLASS_DISABLED)) { self.hide(event); }
1246
- return FALSE;
1247
- });
1248
- };
1249
-
1250
- PROTOTYPE._updateButton = function(button)
1251
- {
1252
- // Make sure tooltip is rendered and if not, return
1253
- if(!this.rendered) { return FALSE; }
1254
-
1255
- var elem = this.elements.button;
1256
- if(button) { this._createButton(); }
1257
- else { elem.remove(); }
1258
- };
1259
- ;// Widget class creator
1260
- function createWidgetClass(cls) {
1261
- return WIDGET.concat('').join(cls ? '-'+cls+' ' : ' ');
1262
- }
1263
-
1264
- // Widget class setter method
1265
- PROTOTYPE._setWidget = function()
1266
- {
1267
- var on = this.options.style.widget,
1268
- elements = this.elements,
1269
- tooltip = elements.tooltip,
1270
- disabled = tooltip.hasClass(CLASS_DISABLED);
1271
-
1272
- tooltip.removeClass(CLASS_DISABLED);
1273
- CLASS_DISABLED = on ? 'ui-state-disabled' : 'qtip-disabled';
1274
- tooltip.toggleClass(CLASS_DISABLED, disabled);
1275
-
1276
- tooltip.toggleClass('ui-helper-reset '+createWidgetClass(), on).toggleClass(CLASS_DEFAULT, this.options.style.def && !on);
1277
-
1278
- if(elements.content) {
1279
- elements.content.toggleClass( createWidgetClass('content'), on);
1280
- }
1281
- if(elements.titlebar) {
1282
- elements.titlebar.toggleClass( createWidgetClass('header'), on);
1283
- }
1284
- if(elements.button) {
1285
- elements.button.toggleClass(NAMESPACE+'-icon', !on);
1286
- }
1287
- };
1288
- ;function delay(callback, duration) {
1289
- // If tooltip has displayed, start hide timer
1290
- if(duration > 0) {
1291
- return setTimeout(
1292
- $.proxy(callback, this), duration
1293
- );
1294
- }
1295
- else{ callback.call(this); }
1296
- }
1297
-
1298
- function showMethod(event) {
1299
- if(this.tooltip.hasClass(CLASS_DISABLED)) { return; }
1300
-
1301
- // Clear hide timers
1302
- clearTimeout(this.timers.show);
1303
- clearTimeout(this.timers.hide);
1304
-
1305
- // Start show timer
1306
- this.timers.show = delay.call(this,
1307
- function() { this.toggle(TRUE, event); },
1308
- this.options.show.delay
1309
- );
1310
- }
1311
-
1312
- function hideMethod(event) {
1313
- if(this.tooltip.hasClass(CLASS_DISABLED) || this.destroyed) { return; }
1314
-
1315
- // Check if new target was actually the tooltip element
1316
- var relatedTarget = $(event.relatedTarget),
1317
- ontoTooltip = relatedTarget.closest(SELECTOR)[0] === this.tooltip[0],
1318
- ontoTarget = relatedTarget[0] === this.options.show.target[0];
1319
-
1320
- // Clear timers and stop animation queue
1321
- clearTimeout(this.timers.show);
1322
- clearTimeout(this.timers.hide);
1323
-
1324
- // Prevent hiding if tooltip is fixed and event target is the tooltip.
1325
- // Or if mouse positioning is enabled and cursor momentarily overlaps
1326
- if(this !== relatedTarget[0] &&
1327
- (this.options.position.target === 'mouse' && ontoTooltip) ||
1328
- (this.options.hide.fixed && (
1329
- (/mouse(out|leave|move)/).test(event.type) && (ontoTooltip || ontoTarget))
1330
- ))
1331
- {
1332
- try {
1333
- event.preventDefault();
1334
- event.stopImmediatePropagation();
1335
- } catch(e) {}
1336
-
1337
- return;
1338
- }
1339
-
1340
- // If tooltip has displayed, start hide timer
1341
- this.timers.hide = delay.call(this,
1342
- function() { this.toggle(FALSE, event); },
1343
- this.options.hide.delay,
1344
- this
1345
- );
1346
- }
1347
-
1348
- function inactiveMethod(event) {
1349
- if(this.tooltip.hasClass(CLASS_DISABLED) || !this.options.hide.inactive) { return; }
1350
-
1351
- // Clear timer
1352
- clearTimeout(this.timers.inactive);
1353
-
1354
- this.timers.inactive = delay.call(this,
1355
- function(){ this.hide(event); },
1356
- this.options.hide.inactive
1357
- );
1358
- }
1359
-
1360
- function repositionMethod(event) {
1361
- if(this.rendered && this.tooltip[0].offsetWidth > 0) { this.reposition(event); }
1362
- }
1363
-
1364
- // Store mouse coordinates
1365
- PROTOTYPE._storeMouse = function(event) {
1366
- (this.mouse = $.event.fix(event)).type = 'mousemove';
1367
- return this;
1368
- };
1369
-
1370
- // Bind events
1371
- PROTOTYPE._bind = function(targets, events, method, suffix, context) {
1372
- if(!targets || !method || !events.length) { return; }
1373
- var ns = '.' + this._id + (suffix ? '-'+suffix : '');
1374
- $(targets).bind(
1375
- (events.split ? events : events.join(ns + ' ')) + ns,
1376
- $.proxy(method, context || this)
1377
- );
1378
- return this;
1379
- };
1380
- PROTOTYPE._unbind = function(targets, suffix) {
1381
- targets && $(targets).unbind('.' + this._id + (suffix ? '-'+suffix : ''));
1382
- return this;
1383
- };
1384
-
1385
- // Global delegation helper
1386
- function delegate(selector, events, method) {
1387
- $(document.body).delegate(selector,
1388
- (events.split ? events : events.join('.'+NAMESPACE + ' ')) + '.'+NAMESPACE,
1389
- function() {
1390
- var api = QTIP.api[ $.attr(this, ATTR_ID) ];
1391
- api && !api.disabled && method.apply(api, arguments);
1392
- }
1393
- );
1394
- }
1395
- // Event trigger
1396
- PROTOTYPE._trigger = function(type, args, event) {
1397
- var callback = $.Event('tooltip'+type);
1398
- callback.originalEvent = (event && $.extend({}, event)) || this.cache.event || NULL;
1399
-
1400
- this.triggering = type;
1401
- this.tooltip.trigger(callback, [this].concat(args || []));
1402
- this.triggering = FALSE;
1403
-
1404
- return !callback.isDefaultPrevented();
1405
- };
1406
-
1407
- PROTOTYPE._bindEvents = function(showEvents, hideEvents, showTargets, hideTargets, showMethod, hideMethod) {
1408
- // Get tasrgets that lye within both
1409
- var similarTargets = showTargets.filter( hideTargets ).add( hideTargets.filter(showTargets) ),
1410
- toggleEvents = [];
1411
-
1412
- // If hide and show targets are the same...
1413
- if(similarTargets.length) {
1414
-
1415
- // Filter identical show/hide events
1416
- $.each(hideEvents, function(i, type) {
1417
- var showIndex = $.inArray(type, showEvents);
1418
-
1419
- // Both events are identical, remove from both hide and show events
1420
- // and append to toggleEvents
1421
- showIndex > -1 && toggleEvents.push( showEvents.splice( showIndex, 1 )[0] );
1422
- });
1423
-
1424
- // Toggle events are special case of identical show/hide events, which happen in sequence
1425
- if(toggleEvents.length) {
1426
- // Bind toggle events to the similar targets
1427
- this._bind(similarTargets, toggleEvents, function(event) {
1428
- var state = this.rendered ? this.tooltip[0].offsetWidth > 0 : false;
1429
- (state ? hideMethod : showMethod).call(this, event);
1430
- });
1431
-
1432
- // Remove the similar targets from the regular show/hide bindings
1433
- showTargets = showTargets.not(similarTargets);
1434
- hideTargets = hideTargets.not(similarTargets);
1435
- }
1436
- }
1437
-
1438
- // Apply show/hide/toggle events
1439
- this._bind(showTargets, showEvents, showMethod);
1440
- this._bind(hideTargets, hideEvents, hideMethod);
1441
- };
1442
-
1443
- PROTOTYPE._assignInitialEvents = function(event) {
1444
- var options = this.options,
1445
- showTarget = options.show.target,
1446
- hideTarget = options.hide.target,
1447
- showEvents = options.show.event ? $.trim('' + options.show.event).split(' ') : [],
1448
- hideEvents = options.hide.event ? $.trim('' + options.hide.event).split(' ') : [];
1449
-
1450
- // Catch remove/removeqtip events on target element to destroy redundant tooltips
1451
- this._bind(this.elements.target, ['remove', 'removeqtip'], function(event) {
1452
- this.destroy(true);
1453
- }, 'destroy');
1454
-
1455
- /*
1456
- * Make sure hoverIntent functions properly by using mouseleave as a hide event if
1457
- * mouseenter/mouseout is used for show.event, even if it isn't in the users options.
1458
- */
1459
- if(/mouse(over|enter)/i.test(options.show.event) && !/mouse(out|leave)/i.test(options.hide.event)) {
1460
- hideEvents.push('mouseleave');
1461
- }
1462
-
1463
- /*
1464
- * Also make sure initial mouse targetting works correctly by caching mousemove coords
1465
- * on show targets before the tooltip has rendered. Also set onTarget when triggered to
1466
- * keep mouse tracking working.
1467
- */
1468
- this._bind(showTarget, 'mousemove', function(event) {
1469
- this._storeMouse(event);
1470
- this.cache.onTarget = TRUE;
1471
- });
1472
-
1473
- // Define hoverIntent function
1474
- function hoverIntent(event) {
1475
- // Only continue if tooltip isn't disabled
1476
- if(this.disabled || this.destroyed) { return FALSE; }
1477
-
1478
- // Cache the event data
1479
- this.cache.event = event && $.event.fix(event);
1480
- this.cache.target = event && $(event.target);
1481
-
1482
- // Start the event sequence
1483
- clearTimeout(this.timers.show);
1484
- this.timers.show = delay.call(this,
1485
- function() { this.render(typeof event === 'object' || options.show.ready); },
1486
- options.prerender ? 0 : options.show.delay
1487
- );
1488
- }
1489
-
1490
- // Filter and bind events
1491
- this._bindEvents(showEvents, hideEvents, showTarget, hideTarget, hoverIntent, function() {
1492
- if(!this.timers) { return FALSE; }
1493
- clearTimeout(this.timers.show);
1494
- });
1495
-
1496
- // Prerendering is enabled, create tooltip now
1497
- if(options.show.ready || options.prerender) { hoverIntent.call(this, event); }
1498
- };
1499
-
1500
- // Event assignment method
1501
- PROTOTYPE._assignEvents = function() {
1502
- var self = this,
1503
- options = this.options,
1504
- posOptions = options.position,
1505
-
1506
- tooltip = this.tooltip,
1507
- showTarget = options.show.target,
1508
- hideTarget = options.hide.target,
1509
- containerTarget = posOptions.container,
1510
- viewportTarget = posOptions.viewport,
1511
- documentTarget = $(document),
1512
- bodyTarget = $(document.body),
1513
- windowTarget = $(window),
1514
-
1515
- showEvents = options.show.event ? $.trim('' + options.show.event).split(' ') : [],
1516
- hideEvents = options.hide.event ? $.trim('' + options.hide.event).split(' ') : [];
1517
-
1518
-
1519
- // Assign passed event callbacks
1520
- $.each(options.events, function(name, callback) {
1521
- self._bind(tooltip, name === 'toggle' ? ['tooltipshow','tooltiphide'] : ['tooltip'+name], callback, null, tooltip);
1522
- });
1523
-
1524
- // Hide tooltips when leaving current window/frame (but not select/option elements)
1525
- if(/mouse(out|leave)/i.test(options.hide.event) && options.hide.leave === 'window') {
1526
- this._bind(documentTarget, ['mouseout', 'blur'], function(event) {
1527
- if(!/select|option/.test(event.target.nodeName) && !event.relatedTarget) {
1528
- this.hide(event);
1529
- }
1530
- });
1531
- }
1532
-
1533
- // Enable hide.fixed by adding appropriate class
1534
- if(options.hide.fixed) {
1535
- hideTarget = hideTarget.add( tooltip.addClass(CLASS_FIXED) );
1536
- }
1537
-
1538
- /*
1539
- * Make sure hoverIntent functions properly by using mouseleave to clear show timer if
1540
- * mouseenter/mouseout is used for show.event, even if it isn't in the users options.
1541
- */
1542
- else if(/mouse(over|enter)/i.test(options.show.event)) {
1543
- this._bind(hideTarget, 'mouseleave', function() {
1544
- clearTimeout(this.timers.show);
1545
- });
1546
- }
1547
-
1548
- // Hide tooltip on document mousedown if unfocus events are enabled
1549
- if(('' + options.hide.event).indexOf('unfocus') > -1) {
1550
- this._bind(containerTarget.closest('html'), ['mousedown', 'touchstart'], function(event) {
1551
- var elem = $(event.target),
1552
- enabled = this.rendered && !this.tooltip.hasClass(CLASS_DISABLED) && this.tooltip[0].offsetWidth > 0,
1553
- isAncestor = elem.parents(SELECTOR).filter(this.tooltip[0]).length > 0;
1554
-
1555
- if(elem[0] !== this.target[0] && elem[0] !== this.tooltip[0] && !isAncestor &&
1556
- !this.target.has(elem[0]).length && enabled
1557
- ) {
1558
- this.hide(event);
1559
- }
1560
- });
1561
- }
1562
-
1563
- // Check if the tooltip hides when inactive
1564
- if('number' === typeof options.hide.inactive) {
1565
- // Bind inactive method to show target(s) as a custom event
1566
- this._bind(showTarget, 'qtip-'+this.id+'-inactive', inactiveMethod, 'inactive');
1567
-
1568
- // Define events which reset the 'inactive' event handler
1569
- this._bind(hideTarget.add(tooltip), QTIP.inactiveEvents, inactiveMethod);
1570
- }
1571
-
1572
- // Filter and bind events
1573
- this._bindEvents(showEvents, hideEvents, showTarget, hideTarget, showMethod, hideMethod);
1574
-
1575
- // Mouse movement bindings
1576
- this._bind(showTarget.add(tooltip), 'mousemove', function(event) {
1577
- // Check if the tooltip hides when mouse is moved a certain distance
1578
- if('number' === typeof options.hide.distance) {
1579
- var origin = this.cache.origin || {},
1580
- limit = this.options.hide.distance,
1581
- abs = Math.abs;
1582
-
1583
- // Check if the movement has gone beyond the limit, and hide it if so
1584
- if(abs(event.pageX - origin.pageX) >= limit || abs(event.pageY - origin.pageY) >= limit) {
1585
- this.hide(event);
1586
- }
1587
- }
1588
-
1589
- // Cache mousemove coords on show targets
1590
- this._storeMouse(event);
1591
- });
1592
-
1593
- // Mouse positioning events
1594
- if(posOptions.target === 'mouse') {
1595
- // If mouse adjustment is on...
1596
- if(posOptions.adjust.mouse) {
1597
- // Apply a mouseleave event so we don't get problems with overlapping
1598
- if(options.hide.event) {
1599
- // Track if we're on the target or not
1600
- this._bind(showTarget, ['mouseenter', 'mouseleave'], function(event) {
1601
- if(!this.cache) {return FALSE; }
1602
- this.cache.onTarget = event.type === 'mouseenter';
1603
- });
1604
- }
1605
-
1606
- // Update tooltip position on mousemove
1607
- this._bind(documentTarget, 'mousemove', function(event) {
1608
- // Update the tooltip position only if the tooltip is visible and adjustment is enabled
1609
- if(this.rendered && this.cache.onTarget && !this.tooltip.hasClass(CLASS_DISABLED) && this.tooltip[0].offsetWidth > 0) {
1610
- this.reposition(event);
1611
- }
1612
- });
1613
- }
1614
- }
1615
-
1616
- // Adjust positions of the tooltip on window resize if enabled
1617
- if(posOptions.adjust.resize || viewportTarget.length) {
1618
- this._bind( $.event.special.resize ? viewportTarget : windowTarget, 'resize', repositionMethod );
1619
- }
1620
-
1621
- // Adjust tooltip position on scroll of the window or viewport element if present
1622
- if(posOptions.adjust.scroll) {
1623
- this._bind( windowTarget.add(posOptions.container), 'scroll', repositionMethod );
1624
- }
1625
- };
1626
-
1627
- // Un-assignment method
1628
- PROTOTYPE._unassignEvents = function() {
1629
- var options = this.options,
1630
- showTargets = options.show.target,
1631
- hideTargets = options.hide.target,
1632
- targets = $.grep([
1633
- this.elements.target[0],
1634
- this.rendered && this.tooltip[0],
1635
- options.position.container[0],
1636
- options.position.viewport[0],
1637
- options.position.container.closest('html')[0], // unfocus
1638
- window,
1639
- document
1640
- ], function(i) {
1641
- return typeof i === 'object';
1642
- });
1643
-
1644
- // Add show and hide targets if they're valid
1645
- if(showTargets && showTargets.toArray) {
1646
- targets = targets.concat(showTargets.toArray());
1647
- }
1648
- if(hideTargets && hideTargets.toArray) {
1649
- targets = targets.concat(hideTargets.toArray());
1650
- }
1651
-
1652
- // Unbind the events
1653
- this._unbind(targets)
1654
- ._unbind(targets, 'destroy')
1655
- ._unbind(targets, 'inactive');
1656
- };
1657
-
1658
- // Apply common event handlers using delegate (avoids excessive .bind calls!)
1659
- $(function() {
1660
- delegate(SELECTOR, ['mouseenter', 'mouseleave'], function(event) {
1661
- var state = event.type === 'mouseenter',
1662
- tooltip = $(event.currentTarget),
1663
- target = $(event.relatedTarget || event.target),
1664
- options = this.options;
1665
-
1666
- // On mouseenter...
1667
- if(state) {
1668
- // Focus the tooltip on mouseenter (z-index stacking)
1669
- this.focus(event);
1670
-
1671
- // Clear hide timer on tooltip hover to prevent it from closing
1672
- tooltip.hasClass(CLASS_FIXED) && !tooltip.hasClass(CLASS_DISABLED) && clearTimeout(this.timers.hide);
1673
- }
1674
-
1675
- // On mouseleave...
1676
- else {
1677
- // When mouse tracking is enabled, hide when we leave the tooltip and not onto the show target (if a hide event is set)
1678
- if(options.position.target === 'mouse' && options.position.adjust.mouse &&
1679
- options.hide.event && options.show.target && !target.closest(options.show.target[0]).length) {
1680
- this.hide(event);
1681
- }
1682
- }
1683
-
1684
- // Add hover class
1685
- tooltip.toggleClass(CLASS_HOVER, state);
1686
- });
1687
-
1688
- // Define events which reset the 'inactive' event handler
1689
- delegate('['+ATTR_ID+']', INACTIVE_EVENTS, inactiveMethod);
1690
- });
1691
- ;// Initialization method
1692
- function init(elem, id, opts) {
1693
- var obj, posOptions, attr, config, title,
1694
-
1695
- // Setup element references
1696
- docBody = $(document.body),
1697
-
1698
- // Use document body instead of document element if needed
1699
- newTarget = elem[0] === document ? docBody : elem,
1700
-
1701
- // Grab metadata from element if plugin is present
1702
- metadata = (elem.metadata) ? elem.metadata(opts.metadata) : NULL,
1703
-
1704
- // If metadata type if HTML5, grab 'name' from the object instead, or use the regular data object otherwise
1705
- metadata5 = opts.metadata.type === 'html5' && metadata ? metadata[opts.metadata.name] : NULL,
1706
-
1707
- // Grab data from metadata.name (or data-qtipopts as fallback) using .data() method,
1708
- html5 = elem.data(opts.metadata.name || 'qtipopts');
1709
-
1710
- // If we don't get an object returned attempt to parse it manualyl without parseJSON
1711
- try { html5 = typeof html5 === 'string' ? $.parseJSON(html5) : html5; } catch(e) {}
1712
-
1713
- // Merge in and sanitize metadata
1714
- config = $.extend(TRUE, {}, QTIP.defaults, opts,
1715
- typeof html5 === 'object' ? sanitizeOptions(html5) : NULL,
1716
- sanitizeOptions(metadata5 || metadata));
1717
-
1718
- // Re-grab our positioning options now we've merged our metadata and set id to passed value
1719
- posOptions = config.position;
1720
- config.id = id;
1721
-
1722
- // Setup missing content if none is detected
1723
- if('boolean' === typeof config.content.text) {
1724
- attr = elem.attr(config.content.attr);
1725
-
1726
- // Grab from supplied attribute if available
1727
- if(config.content.attr !== FALSE && attr) { config.content.text = attr; }
1728
-
1729
- // No valid content was found, abort render
1730
- else { return FALSE; }
1731
- }
1732
-
1733
- // Setup target options
1734
- if(!posOptions.container.length) { posOptions.container = docBody; }
1735
- if(posOptions.target === FALSE) { posOptions.target = newTarget; }
1736
- if(config.show.target === FALSE) { config.show.target = newTarget; }
1737
- if(config.show.solo === TRUE) { config.show.solo = posOptions.container.closest('body'); }
1738
- if(config.hide.target === FALSE) { config.hide.target = newTarget; }
1739
- if(config.position.viewport === TRUE) { config.position.viewport = posOptions.container; }
1740
-
1741
- // Ensure we only use a single container
1742
- posOptions.container = posOptions.container.eq(0);
1743
-
1744
- // Convert position corner values into x and y strings
1745
- posOptions.at = new CORNER(posOptions.at, TRUE);
1746
- posOptions.my = new CORNER(posOptions.my);
1747
-
1748
- // Destroy previous tooltip if overwrite is enabled, or skip element if not
1749
- if(elem.data(NAMESPACE)) {
1750
- if(config.overwrite) {
1751
- elem.qtip('destroy', true);
1752
- }
1753
- else if(config.overwrite === FALSE) {
1754
- return FALSE;
1755
- }
1756
- }
1757
-
1758
- // Add has-qtip attribute
1759
- elem.attr(ATTR_HAS, id);
1760
-
1761
- // Remove title attribute and store it if present
1762
- if(config.suppress && (title = elem.attr('title'))) {
1763
- // Final attr call fixes event delegatiom and IE default tooltip showing problem
1764
- elem.removeAttr('title').attr(oldtitle, title).attr('title', '');
1765
- }
1766
-
1767
- // Initialize the tooltip and add API reference
1768
- obj = new QTip(elem, config, id, !!attr);
1769
- elem.data(NAMESPACE, obj);
1770
-
1771
- return obj;
1772
- }
1773
-
1774
- // jQuery $.fn extension method
1775
- QTIP = $.fn.qtip = function(options, notation, newValue)
1776
- {
1777
- var command = ('' + options).toLowerCase(), // Parse command
1778
- returned = NULL,
1779
- args = $.makeArray(arguments).slice(1),
1780
- event = args[args.length - 1],
1781
- opts = this[0] ? $.data(this[0], NAMESPACE) : NULL;
1782
-
1783
- // Check for API request
1784
- if((!arguments.length && opts) || command === 'api') {
1785
- return opts;
1786
- }
1787
-
1788
- // Execute API command if present
1789
- else if('string' === typeof options) {
1790
- this.each(function() {
1791
- var api = $.data(this, NAMESPACE);
1792
- if(!api) { return TRUE; }
1793
-
1794
- // Cache the event if possible
1795
- if(event && event.timeStamp) { api.cache.event = event; }
1796
-
1797
- // Check for specific API commands
1798
- if(notation && (command === 'option' || command === 'options')) {
1799
- if(newValue !== undefined || $.isPlainObject(notation)) {
1800
- api.set(notation, newValue);
1801
- }
1802
- else {
1803
- returned = api.get(notation);
1804
- return FALSE;
1805
- }
1806
- }
1807
-
1808
- // Execute API command
1809
- else if(api[command]) {
1810
- api[command].apply(api, args);
1811
- }
1812
- });
1813
-
1814
- return returned !== NULL ? returned : this;
1815
- }
1816
-
1817
- // No API commands. validate provided options and setup qTips
1818
- else if('object' === typeof options || !arguments.length) {
1819
- // Sanitize options first
1820
- opts = sanitizeOptions($.extend(TRUE, {}, options));
1821
-
1822
- return this.each(function(i) {
1823
- var api, id;
1824
-
1825
- // Find next available ID, or use custom ID if provided
1826
- id = $.isArray(opts.id) ? opts.id[i] : opts.id;
1827
- id = !id || id === FALSE || id.length < 1 || QTIP.api[id] ? QTIP.nextid++ : id;
1828
-
1829
- // Initialize the qTip and re-grab newly sanitized options
1830
- api = init($(this), id, opts);
1831
- if(api === FALSE) { return TRUE; }
1832
- else { QTIP.api[id] = api; }
1833
-
1834
- // Initialize plugins
1835
- $.each(PLUGINS, function() {
1836
- if(this.initialize === 'initialize') { this(api); }
1837
- });
1838
-
1839
- // Assign initial pre-render events
1840
- api._assignInitialEvents(event);
1841
- });
1842
- }
1843
- };
1844
-
1845
- // Expose class
1846
- $.qtip = QTip;
1847
-
1848
- // Populated in render method
1849
- QTIP.api = {};
1850
- ;$.each({
1851
- /* Allow other plugins to successfully retrieve the title of an element with a qTip applied */
1852
- attr: function(attr, val) {
1853
- if(this.length) {
1854
- var self = this[0],
1855
- title = 'title',
1856
- api = $.data(self, 'qtip');
1857
-
1858
- if(attr === title && api && 'object' === typeof api && api.options.suppress) {
1859
- if(arguments.length < 2) {
1860
- return $.attr(self, oldtitle);
1861
- }
1862
-
1863
- // If qTip is rendered and title was originally used as content, update it
1864
- if(api && api.options.content.attr === title && api.cache.attr) {
1865
- api.set('content.text', val);
1866
- }
1867
-
1868
- // Use the regular attr method to set, then cache the result
1869
- return this.attr(oldtitle, val);
1870
- }
1871
- }
1872
-
1873
- return $.fn['attr'+replaceSuffix].apply(this, arguments);
1874
- },
1875
-
1876
- /* Allow clone to correctly retrieve cached title attributes */
1877
- clone: function(keepData) {
1878
- var titles = $([]), title = 'title',
1879
-
1880
- // Clone our element using the real clone method
1881
- elems = $.fn['clone'+replaceSuffix].apply(this, arguments);
1882
-
1883
- // Grab all elements with an oldtitle set, and change it to regular title attribute, if keepData is false
1884
- if(!keepData) {
1885
- elems.filter('['+oldtitle+']').attr('title', function() {
1886
- return $.attr(this, oldtitle);
1887
- })
1888
- .removeAttr(oldtitle);
1889
- }
1890
-
1891
- return elems;
1892
- }
1893
- }, function(name, func) {
1894
- if(!func || $.fn[name+replaceSuffix]) { return TRUE; }
1895
-
1896
- var old = $.fn[name+replaceSuffix] = $.fn[name];
1897
- $.fn[name] = function() {
1898
- return func.apply(this, arguments) || old.apply(this, arguments);
1899
- };
1900
- });
1901
-
1902
- /* Fire off 'removeqtip' handler in $.cleanData if jQuery UI not present (it already does similar).
1903
- * This snippet is taken directly from jQuery UI source code found here:
1904
- * http://code.jquery.com/ui/jquery-ui-git.js
1905
- */
1906
- if(!$.ui) {
1907
- $['cleanData'+replaceSuffix] = $.cleanData;
1908
- $.cleanData = function( elems ) {
1909
- for(var i = 0, elem; (elem = $( elems[i] )).length; i++) {
1910
- if(elem.attr(ATTR_HAS)) {
1911
- try { elem.triggerHandler('removeqtip'); }
1912
- catch( e ) {}
1913
- }
1914
- }
1915
- $['cleanData'+replaceSuffix].apply(this, arguments);
1916
- };
1917
- }
1918
- ;// qTip version
1919
- QTIP.version = '2.2.1';
1920
-
1921
- // Base ID for all qTips
1922
- QTIP.nextid = 0;
1923
-
1924
- // Inactive events array
1925
- QTIP.inactiveEvents = INACTIVE_EVENTS;
1926
-
1927
- // Base z-index for all qTips
1928
- QTIP.zindex = 15000;
1929
-
1930
- // Define configuration defaults
1931
- QTIP.defaults = {
1932
- prerender: FALSE,
1933
- id: FALSE,
1934
- overwrite: TRUE,
1935
- suppress: TRUE,
1936
- content: {
1937
- text: TRUE,
1938
- attr: 'title',
1939
- title: FALSE,
1940
- button: FALSE
1941
- },
1942
- position: {
1943
- my: 'top left',
1944
- at: 'bottom right',
1945
- target: FALSE,
1946
- container: FALSE,
1947
- viewport: FALSE,
1948
- adjust: {
1949
- x: 0, y: 0,
1950
- mouse: TRUE,
1951
- scroll: TRUE,
1952
- resize: TRUE,
1953
- method: 'flipinvert flipinvert'
1954
- },
1955
- effect: function(api, pos, viewport) {
1956
- $(this).animate(pos, {
1957
- duration: 200,
1958
- queue: FALSE
1959
- });
1960
- }
1961
- },
1962
- show: {
1963
- target: FALSE,
1964
- event: 'mouseenter',
1965
- effect: TRUE,
1966
- delay: 90,
1967
- solo: FALSE,
1968
- ready: FALSE,
1969
- autofocus: FALSE
1970
- },
1971
- hide: {
1972
- target: FALSE,
1973
- event: 'mouseleave',
1974
- effect: TRUE,
1975
- delay: 0,
1976
- fixed: FALSE,
1977
- inactive: FALSE,
1978
- leave: 'window',
1979
- distance: FALSE
1980
- },
1981
- style: {
1982
- classes: '',
1983
- widget: FALSE,
1984
- width: FALSE,
1985
- height: FALSE,
1986
- def: TRUE
1987
- },
1988
- events: {
1989
- render: NULL,
1990
- move: NULL,
1991
- show: NULL,
1992
- hide: NULL,
1993
- toggle: NULL,
1994
- visible: NULL,
1995
- hidden: NULL,
1996
- focus: NULL,
1997
- blur: NULL
1998
- }
1999
- };
2000
- ;var TIP,
2001
-
2002
- // .bind()/.on() namespace
2003
- TIPNS = '.qtip-tip',
2004
-
2005
- // Common CSS strings
2006
- MARGIN = 'margin',
2007
- BORDER = 'border',
2008
- COLOR = 'color',
2009
- BG_COLOR = 'background-color',
2010
- TRANSPARENT = 'transparent',
2011
- IMPORTANT = ' !important',
2012
-
2013
- // Check if the browser supports <canvas/> elements
2014
- HASCANVAS = !!document.createElement('canvas').getContext,
2015
-
2016
- // Invalid colour values used in parseColours()
2017
- INVALID = /rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i;
2018
-
2019
- // Camel-case method, taken from jQuery source
2020
- // http://code.jquery.com/jquery-1.8.0.js
2021
- function camel(s) { return s.charAt(0).toUpperCase() + s.slice(1); }
2022
-
2023
- /*
2024
- * Modified from Modernizr's testPropsAll()
2025
- * http://modernizr.com/downloads/modernizr-latest.js
2026
- */
2027
- var cssProps = {}, cssPrefixes = ["Webkit", "O", "Moz", "ms"];
2028
- function vendorCss(elem, prop) {
2029
- var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1),
2030
- props = (prop + ' ' + cssPrefixes.join(ucProp + ' ') + ucProp).split(' '),
2031
- cur, val, i = 0;
2032
-
2033
- // If the property has already been mapped...
2034
- if(cssProps[prop]) { return elem.css(cssProps[prop]); }
2035
-
2036
- while((cur = props[i++])) {
2037
- if((val = elem.css(cur)) !== undefined) {
2038
- return cssProps[prop] = cur, val;
2039
- }
2040
- }
2041
- }
2042
-
2043
- // Parse a given elements CSS property into an int
2044
- function intCss(elem, prop) {
2045
- return Math.ceil(parseFloat(vendorCss(elem, prop)));
2046
- }
2047
-
2048
-
2049
- // VML creation (for IE only)
2050
- if(!HASCANVAS) {
2051
- var createVML = function(tag, props, style) {
2052
- return '<qtipvml:'+tag+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(props||'')+
2053
- ' style="behavior: url(#default#VML); '+(style||'')+ '" />';
2054
- };
2055
- }
2056
-
2057
- // Canvas only definitions
2058
- else {
2059
- var PIXEL_RATIO = window.devicePixelRatio || 1,
2060
- BACKING_STORE_RATIO = (function() {
2061
- var context = document.createElement('canvas').getContext('2d');
2062
- return context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio ||
2063
- context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || 1;
2064
- }()),
2065
- SCALE = PIXEL_RATIO / BACKING_STORE_RATIO;
2066
- }
2067
-
2068
-
2069
- function Tip(qtip, options) {
2070
- this._ns = 'tip';
2071
- this.options = options;
2072
- this.offset = options.offset;
2073
- this.size = [ options.width, options.height ];
2074
-
2075
- // Initialize
2076
- this.init( (this.qtip = qtip) );
2077
- }
2078
-
2079
- $.extend(Tip.prototype, {
2080
- init: function(qtip) {
2081
- var context, tip;
2082
-
2083
- // Create tip element and prepend to the tooltip
2084
- tip = this.element = qtip.elements.tip = $('<div />', { 'class': NAMESPACE+'-tip' }).prependTo(qtip.tooltip);
2085
-
2086
- // Create tip drawing element(s)
2087
- if(HASCANVAS) {
2088
- // save() as soon as we create the canvas element so FF2 doesn't bork on our first restore()!
2089
- context = $('<canvas />').appendTo(this.element)[0].getContext('2d');
2090
-
2091
- // Setup constant parameters
2092
- context.lineJoin = 'miter';
2093
- context.miterLimit = 100000;
2094
- context.save();
2095
- }
2096
- else {
2097
- context = createVML('shape', 'coordorigin="0,0"', 'position:absolute;');
2098
- this.element.html(context + context);
2099
-
2100
- // Prevent mousing down on the tip since it causes problems with .live() handling in IE due to VML
2101
- qtip._bind( $('*', tip).add(tip), ['click', 'mousedown'], function(event) { event.stopPropagation(); }, this._ns);
2102
- }
2103
-
2104
- // Bind update events
2105
- qtip._bind(qtip.tooltip, 'tooltipmove', this.reposition, this._ns, this);
2106
-
2107
- // Create it
2108
- this.create();
2109
- },
2110
-
2111
- _swapDimensions: function() {
2112
- this.size[0] = this.options.height;
2113
- this.size[1] = this.options.width;
2114
- },
2115
- _resetDimensions: function() {
2116
- this.size[0] = this.options.width;
2117
- this.size[1] = this.options.height;
2118
- },
2119
-
2120
- _useTitle: function(corner) {
2121
- var titlebar = this.qtip.elements.titlebar;
2122
- return titlebar && (
2123
- corner.y === TOP || (corner.y === CENTER && this.element.position().top + (this.size[1] / 2) + this.options.offset < titlebar.outerHeight(TRUE))
2124
- );
2125
- },
2126
-
2127
- _parseCorner: function(corner) {
2128
- var my = this.qtip.options.position.my;
2129
-
2130
- // Detect corner and mimic properties
2131
- if(corner === FALSE || my === FALSE) {
2132
- corner = FALSE;
2133
- }
2134
- else if(corner === TRUE) {
2135
- corner = new CORNER( my.string() );
2136
- }
2137
- else if(!corner.string) {
2138
- corner = new CORNER(corner);
2139
- corner.fixed = TRUE;
2140
- }
2141
-
2142
- return corner;
2143
- },
2144
-
2145
- _parseWidth: function(corner, side, use) {
2146
- var elements = this.qtip.elements,
2147
- prop = BORDER + camel(side) + 'Width';
2148
-
2149
- return (use ? intCss(use, prop) : (
2150
- intCss(elements.content, prop) ||
2151
- intCss(this._useTitle(corner) && elements.titlebar || elements.content, prop) ||
2152
- intCss(elements.tooltip, prop)
2153
- )) || 0;
2154
- },
2155
-
2156
- _parseRadius: function(corner) {
2157
- var elements = this.qtip.elements,
2158
- prop = BORDER + camel(corner.y) + camel(corner.x) + 'Radius';
2159
-
2160
- return BROWSER.ie < 9 ? 0 :
2161
- intCss(this._useTitle(corner) && elements.titlebar || elements.content, prop) ||
2162
- intCss(elements.tooltip, prop) || 0;
2163
- },
2164
-
2165
- _invalidColour: function(elem, prop, compare) {
2166
- var val = elem.css(prop);
2167
- return !val || (compare && val === elem.css(compare)) || INVALID.test(val) ? FALSE : val;
2168
- },
2169
-
2170
- _parseColours: function(corner) {
2171
- var elements = this.qtip.elements,
2172
- tip = this.element.css('cssText', ''),
2173
- borderSide = BORDER + camel(corner[ corner.precedance ]) + camel(COLOR),
2174
- colorElem = this._useTitle(corner) && elements.titlebar || elements.content,
2175
- css = this._invalidColour, color = [];
2176
-
2177
- // Attempt to detect the background colour from various elements, left-to-right precedance
2178
- color[0] = css(tip, BG_COLOR) || css(colorElem, BG_COLOR) || css(elements.content, BG_COLOR) ||
2179
- css(elements.tooltip, BG_COLOR) || tip.css(BG_COLOR);
2180
-
2181
- // Attempt to detect the correct border side colour from various elements, left-to-right precedance
2182
- color[1] = css(tip, borderSide, COLOR) || css(colorElem, borderSide, COLOR) ||
2183
- css(elements.content, borderSide, COLOR) || css(elements.tooltip, borderSide, COLOR) || elements.tooltip.css(borderSide);
2184
-
2185
- // Reset background and border colours
2186
- $('*', tip).add(tip).css('cssText', BG_COLOR+':'+TRANSPARENT+IMPORTANT+';'+BORDER+':0'+IMPORTANT+';');
2187
-
2188
- return color;
2189
- },
2190
-
2191
- _calculateSize: function(corner) {
2192
- var y = corner.precedance === Y,
2193
- width = this.options['width'],
2194
- height = this.options['height'],
2195
- isCenter = corner.abbrev() === 'c',
2196
- base = (y ? width: height) * (isCenter ? 0.5 : 1),
2197
- pow = Math.pow,
2198
- round = Math.round,
2199
- bigHyp, ratio, result,
2200
-
2201
- smallHyp = Math.sqrt( pow(base, 2) + pow(height, 2) ),
2202
- hyp = [ (this.border / base) * smallHyp, (this.border / height) * smallHyp ];
2203
-
2204
- hyp[2] = Math.sqrt( pow(hyp[0], 2) - pow(this.border, 2) );
2205
- hyp[3] = Math.sqrt( pow(hyp[1], 2) - pow(this.border, 2) );
2206
-
2207
- bigHyp = smallHyp + hyp[2] + hyp[3] + (isCenter ? 0 : hyp[0]);
2208
- ratio = bigHyp / smallHyp;
2209
-
2210
- result = [ round(ratio * width), round(ratio * height) ];
2211
- return y ? result : result.reverse();
2212
- },
2213
-
2214
- // Tip coordinates calculator
2215
- _calculateTip: function(corner, size, scale) {
2216
- scale = scale || 1;
2217
- size = size || this.size;
2218
-
2219
- var width = size[0] * scale,
2220
- height = size[1] * scale,
2221
- width2 = Math.ceil(width / 2), height2 = Math.ceil(height / 2),
2222
-
2223
- // Define tip coordinates in terms of height and width values
2224
- tips = {
2225
- br: [0,0, width,height, width,0],
2226
- bl: [0,0, width,0, 0,height],
2227
- tr: [0,height, width,0, width,height],
2228
- tl: [0,0, 0,height, width,height],
2229
- tc: [0,height, width2,0, width,height],
2230
- bc: [0,0, width,0, width2,height],
2231
- rc: [0,0, width,height2, 0,height],
2232
- lc: [width,0, width,height, 0,height2]
2233
- };
2234
-
2235
- // Set common side shapes
2236
- tips.lt = tips.br; tips.rt = tips.bl;
2237
- tips.lb = tips.tr; tips.rb = tips.tl;
2238
-
2239
- return tips[ corner.abbrev() ];
2240
- },
2241
-
2242
- // Tip coordinates drawer (canvas)
2243
- _drawCoords: function(context, coords) {
2244
- context.beginPath();
2245
- context.moveTo(coords[0], coords[1]);
2246
- context.lineTo(coords[2], coords[3]);
2247
- context.lineTo(coords[4], coords[5]);
2248
- context.closePath();
2249
- },
2250
-
2251
- create: function() {
2252
- // Determine tip corner
2253
- var c = this.corner = (HASCANVAS || BROWSER.ie) && this._parseCorner(this.options.corner);
2254
-
2255
- // If we have a tip corner...
2256
- if( (this.enabled = !!this.corner && this.corner.abbrev() !== 'c') ) {
2257
- // Cache it
2258
- this.qtip.cache.corner = c.clone();
2259
-
2260
- // Create it
2261
- this.update();
2262
- }
2263
-
2264
- // Toggle tip element
2265
- this.element.toggle(this.enabled);
2266
-
2267
- return this.corner;
2268
- },
2269
-
2270
- update: function(corner, position) {
2271
- if(!this.enabled) { return this; }
2272
-
2273
- var elements = this.qtip.elements,
2274
- tip = this.element,
2275
- inner = tip.children(),
2276
- options = this.options,
2277
- curSize = this.size,
2278
- mimic = options.mimic,
2279
- round = Math.round,
2280
- color, precedance, context,
2281
- coords, bigCoords, translate, newSize, border, BACKING_STORE_RATIO;
2282
-
2283
- // Re-determine tip if not already set
2284
- if(!corner) { corner = this.qtip.cache.corner || this.corner; }
2285
-
2286
- // Use corner property if we detect an invalid mimic value
2287
- if(mimic === FALSE) { mimic = corner; }
2288
-
2289
- // Otherwise inherit mimic properties from the corner object as necessary
2290
- else {
2291
- mimic = new CORNER(mimic);
2292
- mimic.precedance = corner.precedance;
2293
-
2294
- if(mimic.x === 'inherit') { mimic.x = corner.x; }
2295
- else if(mimic.y === 'inherit') { mimic.y = corner.y; }
2296
- else if(mimic.x === mimic.y) {
2297
- mimic[ corner.precedance ] = corner[ corner.precedance ];
2298
- }
2299
- }
2300
- precedance = mimic.precedance;
2301
-
2302
- // Ensure the tip width.height are relative to the tip position
2303
- if(corner.precedance === X) { this._swapDimensions(); }
2304
- else { this._resetDimensions(); }
2305
-
2306
- // Update our colours
2307
- color = this.color = this._parseColours(corner);
2308
-
2309
- // Detect border width, taking into account colours
2310
- if(color[1] !== TRANSPARENT) {
2311
- // Grab border width
2312
- border = this.border = this._parseWidth(corner, corner[corner.precedance]);
2313
-
2314
- // If border width isn't zero, use border color as fill if it's not invalid (1.0 style tips)
2315
- if(options.border && border < 1 && !INVALID.test(color[1])) { color[0] = color[1]; }
2316
-
2317
- // Set border width (use detected border width if options.border is true)
2318
- this.border = border = options.border !== TRUE ? options.border : border;
2319
- }
2320
-
2321
- // Border colour was invalid, set border to zero
2322
- else { this.border = border = 0; }
2323
-
2324
- // Determine tip size
2325
- newSize = this.size = this._calculateSize(corner);
2326
- tip.css({
2327
- width: newSize[0],
2328
- height: newSize[1],
2329
- lineHeight: newSize[1]+'px'
2330
- });
2331
-
2332
- // Calculate tip translation
2333
- if(corner.precedance === Y) {
2334
- translate = [
2335
- round(mimic.x === LEFT ? border : mimic.x === RIGHT ? newSize[0] - curSize[0] - border : (newSize[0] - curSize[0]) / 2),
2336
- round(mimic.y === TOP ? newSize[1] - curSize[1] : 0)
2337
- ];
2338
- }
2339
- else {
2340
- translate = [
2341
- round(mimic.x === LEFT ? newSize[0] - curSize[0] : 0),
2342
- round(mimic.y === TOP ? border : mimic.y === BOTTOM ? newSize[1] - curSize[1] - border : (newSize[1] - curSize[1]) / 2)
2343
- ];
2344
- }
2345
-
2346
- // Canvas drawing implementation
2347
- if(HASCANVAS) {
2348
- // Grab canvas context and clear/save it
2349
- context = inner[0].getContext('2d');
2350
- context.restore(); context.save();
2351
- context.clearRect(0,0,6000,6000);
2352
-
2353
- // Calculate coordinates
2354
- coords = this._calculateTip(mimic, curSize, SCALE);
2355
- bigCoords = this._calculateTip(mimic, this.size, SCALE);
2356
-
2357
- // Set the canvas size using calculated size
2358
- inner.attr(WIDTH, newSize[0] * SCALE).attr(HEIGHT, newSize[1] * SCALE);
2359
- inner.css(WIDTH, newSize[0]).css(HEIGHT, newSize[1]);
2360
-
2361
- // Draw the outer-stroke tip
2362
- this._drawCoords(context, bigCoords);
2363
- context.fillStyle = color[1];
2364
- context.fill();
2365
-
2366
- // Draw the actual tip
2367
- context.translate(translate[0] * SCALE, translate[1] * SCALE);
2368
- this._drawCoords(context, coords);
2369
- context.fillStyle = color[0];
2370
- context.fill();
2371
- }
2372
-
2373
- // VML (IE Proprietary implementation)
2374
- else {
2375
- // Calculate coordinates
2376
- coords = this._calculateTip(mimic);
2377
-
2378
- // Setup coordinates string
2379
- coords = 'm' + coords[0] + ',' + coords[1] + ' l' + coords[2] +
2380
- ',' + coords[3] + ' ' + coords[4] + ',' + coords[5] + ' xe';
2381
-
2382
- // Setup VML-specific offset for pixel-perfection
2383
- translate[2] = border && /^(r|b)/i.test(corner.string()) ?
2384
- BROWSER.ie === 8 ? 2 : 1 : 0;
2385
-
2386
- // Set initial CSS
2387
- inner.css({
2388
- coordsize: (newSize[0]+border) + ' ' + (newSize[1]+border),
2389
- antialias: ''+(mimic.string().indexOf(CENTER) > -1),
2390
- left: translate[0] - (translate[2] * Number(precedance === X)),
2391
- top: translate[1] - (translate[2] * Number(precedance === Y)),
2392
- width: newSize[0] + border,
2393
- height: newSize[1] + border
2394
- })
2395
- .each(function(i) {
2396
- var $this = $(this);
2397
-
2398
- // Set shape specific attributes
2399
- $this[ $this.prop ? 'prop' : 'attr' ]({
2400
- coordsize: (newSize[0]+border) + ' ' + (newSize[1]+border),
2401
- path: coords,
2402
- fillcolor: color[0],
2403
- filled: !!i,
2404
- stroked: !i
2405
- })
2406
- .toggle(!!(border || i));
2407
-
2408
- // Check if border is enabled and add stroke element
2409
- !i && $this.html( createVML(
2410
- 'stroke', 'weight="'+(border*2)+'px" color="'+color[1]+'" miterlimit="1000" joinstyle="miter"'
2411
- ) );
2412
- });
2413
- }
2414
-
2415
- // Opera bug #357 - Incorrect tip position
2416
- // https://github.com/Craga89/qTip2/issues/367
2417
- window.opera && setTimeout(function() {
2418
- elements.tip.css({
2419
- display: 'inline-block',
2420
- visibility: 'visible'
2421
- });
2422
- }, 1);
2423
-
2424
- // Position if needed
2425
- if(position !== FALSE) { this.calculate(corner, newSize); }
2426
- },
2427
-
2428
- calculate: function(corner, size) {
2429
- if(!this.enabled) { return FALSE; }
2430
-
2431
- var self = this,
2432
- elements = this.qtip.elements,
2433
- tip = this.element,
2434
- userOffset = this.options.offset,
2435
- isWidget = elements.tooltip.hasClass('ui-widget'),
2436
- position = { },
2437
- precedance, corners;
2438
-
2439
- // Inherit corner if not provided
2440
- corner = corner || this.corner;
2441
- precedance = corner.precedance;
2442
-
2443
- // Determine which tip dimension to use for adjustment
2444
- size = size || this._calculateSize(corner);
2445
-
2446
- // Setup corners and offset array
2447
- corners = [ corner.x, corner.y ];
2448
- if(precedance === X) { corners.reverse(); }
2449
-
2450
- // Calculate tip position
2451
- $.each(corners, function(i, side) {
2452
- var b, bc, br;
2453
-
2454
- if(side === CENTER) {
2455
- b = precedance === Y ? LEFT : TOP;
2456
- position[ b ] = '50%';
2457
- position[MARGIN+'-' + b] = -Math.round(size[ precedance === Y ? 0 : 1 ] / 2) + userOffset;
2458
- }
2459
- else {
2460
- b = self._parseWidth(corner, side, elements.tooltip);
2461
- bc = self._parseWidth(corner, side, elements.content);
2462
- br = self._parseRadius(corner);
2463
-
2464
- position[ side ] = Math.max(-self.border, i ? bc : (userOffset + (br > b ? br : -b)));
2465
- }
2466
- });
2467
-
2468
- // Adjust for tip size
2469
- position[ corner[precedance] ] -= size[ precedance === X ? 0 : 1 ];
2470
-
2471
- // Set and return new position
2472
- tip.css({ margin: '', top: '', bottom: '', left: '', right: '' }).css(position);
2473
- return position;
2474
- },
2475
-
2476
- reposition: function(event, api, pos, viewport) {
2477
- if(!this.enabled) { return; }
2478
-
2479
- var cache = api.cache,
2480
- newCorner = this.corner.clone(),
2481
- adjust = pos.adjusted,
2482
- method = api.options.position.adjust.method.split(' '),
2483
- horizontal = method[0],
2484
- vertical = method[1] || method[0],
2485
- shift = { left: FALSE, top: FALSE, x: 0, y: 0 },
2486
- offset, css = {}, props;
2487
-
2488
- function shiftflip(direction, precedance, popposite, side, opposite) {
2489
- // Horizontal - Shift or flip method
2490
- if(direction === SHIFT && newCorner.precedance === precedance && adjust[side] && newCorner[popposite] !== CENTER) {
2491
- newCorner.precedance = newCorner.precedance === X ? Y : X;
2492
- }
2493
- else if(direction !== SHIFT && adjust[side]){
2494
- newCorner[precedance] = newCorner[precedance] === CENTER ?
2495
- (adjust[side] > 0 ? side : opposite) : (newCorner[precedance] === side ? opposite : side);
2496
- }
2497
- }
2498
-
2499
- function shiftonly(xy, side, opposite) {
2500
- if(newCorner[xy] === CENTER) {
2501
- css[MARGIN+'-'+side] = shift[xy] = offset[MARGIN+'-'+side] - adjust[side];
2502
- }
2503
- else {
2504
- props = offset[opposite] !== undefined ?
2505
- [ adjust[side], -offset[side] ] : [ -adjust[side], offset[side] ];
2506
-
2507
- if( (shift[xy] = Math.max(props[0], props[1])) > props[0] ) {
2508
- pos[side] -= adjust[side];
2509
- shift[side] = FALSE;
2510
- }
2511
-
2512
- css[ offset[opposite] !== undefined ? opposite : side ] = shift[xy];
2513
- }
2514
- }
2515
-
2516
- // If our tip position isn't fixed e.g. doesn't adjust with viewport...
2517
- if(this.corner.fixed !== TRUE) {
2518
- // Perform shift/flip adjustments
2519
- shiftflip(horizontal, X, Y, LEFT, RIGHT);
2520
- shiftflip(vertical, Y, X, TOP, BOTTOM);
2521
-
2522
- // Update and redraw the tip if needed (check cached details of last drawn tip)
2523
- if(newCorner.string() !== cache.corner.string() || cache.cornerTop !== adjust.top || cache.cornerLeft !== adjust.left) {
2524
- this.update(newCorner, FALSE);
2525
- }
2526
- }
2527
-
2528
- // Setup tip offset properties
2529
- offset = this.calculate(newCorner);
2530
-
2531
- // Readjust offset object to make it left/top
2532
- if(offset.right !== undefined) { offset.left = -offset.right; }
2533
- if(offset.bottom !== undefined) { offset.top = -offset.bottom; }
2534
- offset.user = this.offset;
2535
-
2536
- // Perform shift adjustments
2537
- if(shift.left = (horizontal === SHIFT && !!adjust.left)) { shiftonly(X, LEFT, RIGHT); }
2538
- if(shift.top = (vertical === SHIFT && !!adjust.top)) { shiftonly(Y, TOP, BOTTOM); }
2539
-
2540
- /*
2541
- * If the tip is adjusted in both dimensions, or in a
2542
- * direction that would cause it to be anywhere but the
2543
- * outer border, hide it!
2544
- */
2545
- this.element.css(css).toggle(
2546
- !((shift.x && shift.y) || (newCorner.x === CENTER && shift.y) || (newCorner.y === CENTER && shift.x))
2547
- );
2548
-
2549
- // Adjust position to accomodate tip dimensions
2550
- pos.left -= offset.left.charAt ? offset.user :
2551
- horizontal !== SHIFT || shift.top || !shift.left && !shift.top ? offset.left + this.border : 0;
2552
- pos.top -= offset.top.charAt ? offset.user :
2553
- vertical !== SHIFT || shift.left || !shift.left && !shift.top ? offset.top + this.border : 0;
2554
-
2555
- // Cache details
2556
- cache.cornerLeft = adjust.left; cache.cornerTop = adjust.top;
2557
- cache.corner = newCorner.clone();
2558
- },
2559
-
2560
- destroy: function() {
2561
- // Unbind events
2562
- this.qtip._unbind(this.qtip.tooltip, this._ns);
2563
-
2564
- // Remove the tip element(s)
2565
- if(this.qtip.elements.tip) {
2566
- this.qtip.elements.tip.find('*')
2567
- .remove().end().remove();
2568
- }
2569
- }
2570
- });
2571
-
2572
- TIP = PLUGINS.tip = function(api) {
2573
- return new Tip(api, api.options.style.tip);
2574
- };
2575
-
2576
- // Initialize tip on render
2577
- TIP.initialize = 'render';
2578
-
2579
- // Setup plugin sanitization options
2580
- TIP.sanitize = function(options) {
2581
- if(options.style && 'tip' in options.style) {
2582
- var opts = options.style.tip;
2583
- if(typeof opts !== 'object') { opts = options.style.tip = { corner: opts }; }
2584
- if(!(/string|boolean/i).test(typeof opts.corner)) { opts.corner = TRUE; }
2585
- }
2586
- };
2587
-
2588
- // Add new option checks for the plugin
2589
- CHECKS.tip = {
2590
- '^position.my|style.tip.(corner|mimic|border)$': function() {
2591
- // Make sure a tip can be drawn
2592
- this.create();
2593
-
2594
- // Reposition the tooltip
2595
- this.qtip.reposition();
2596
- },
2597
- '^style.tip.(height|width)$': function(obj) {
2598
- // Re-set dimensions and redraw the tip
2599
- this.size = [ obj.width, obj.height ];
2600
- this.update();
2601
-
2602
- // Reposition the tooltip
2603
- this.qtip.reposition();
2604
- },
2605
- '^content.title|style.(classes|widget)$': function() {
2606
- this.update();
2607
- }
2608
- };
2609
-
2610
- // Extend original qTip defaults
2611
- $.extend(TRUE, QTIP.defaults, {
2612
- style: {
2613
- tip: {
2614
- corner: TRUE,
2615
- mimic: FALSE,
2616
- width: 6,
2617
- height: 6,
2618
- border: TRUE,
2619
- offset: 0
2620
- }
2621
- }
2622
- });
2623
- ;var MODAL, OVERLAY,
2624
- MODALCLASS = 'qtip-modal',
2625
- MODALSELECTOR = '.'+MODALCLASS;
2626
-
2627
- OVERLAY = function()
2628
- {
2629
- var self = this,
2630
- focusableElems = {},
2631
- current, onLast,
2632
- prevState, elem;
2633
-
2634
- // Modified code from jQuery UI 1.10.0 source
2635
- // http://code.jquery.com/ui/1.10.0/jquery-ui.js
2636
- function focusable(element) {
2637
- // Use the defined focusable checker when possible
2638
- if($.expr[':'].focusable) { return $.expr[':'].focusable; }
2639
-
2640
- var isTabIndexNotNaN = !isNaN($.attr(element, 'tabindex')),
2641
- nodeName = element.nodeName && element.nodeName.toLowerCase(),
2642
- map, mapName, img;
2643
-
2644
- if('area' === nodeName) {
2645
- map = element.parentNode;
2646
- mapName = map.name;
2647
- if(!element.href || !mapName || map.nodeName.toLowerCase() !== 'map') {
2648
- return false;
2649
- }
2650
- img = $('img[usemap=#' + mapName + ']')[0];
2651
- return !!img && img.is(':visible');
2652
- }
2653
- return (/input|select|textarea|button|object/.test( nodeName ) ?
2654
- !element.disabled :
2655
- 'a' === nodeName ?
2656
- element.href || isTabIndexNotNaN :
2657
- isTabIndexNotNaN
2658
- );
2659
- }
2660
-
2661
- // Focus inputs using cached focusable elements (see update())
2662
- function focusInputs(blurElems) {
2663
- // Blurring body element in IE causes window.open windows to unfocus!
2664
- if(focusableElems.length < 1 && blurElems.length) { blurElems.not('body').blur(); }
2665
-
2666
- // Focus the inputs
2667
- else { focusableElems.first().focus(); }
2668
- }
2669
-
2670
- // Steal focus from elements outside tooltip
2671
- function stealFocus(event) {
2672
- if(!elem.is(':visible')) { return; }
2673
-
2674
- var target = $(event.target),
2675
- tooltip = current.tooltip,
2676
- container = target.closest(SELECTOR),
2677
- targetOnTop;
2678
-
2679
- // Determine if input container target is above this
2680
- targetOnTop = container.length < 1 ? FALSE :
2681
- (parseInt(container[0].style.zIndex, 10) > parseInt(tooltip[0].style.zIndex, 10));
2682
-
2683
- // If we're showing a modal, but focus has landed on an input below
2684
- // this modal, divert focus to the first visible input in this modal
2685
- // or if we can't find one... the tooltip itself
2686
- if(!targetOnTop && target.closest(SELECTOR)[0] !== tooltip[0]) {
2687
- focusInputs(target);
2688
- }
2689
-
2690
- // Detect when we leave the last focusable element...
2691
- onLast = event.target === focusableElems[focusableElems.length - 1];
2692
- }
2693
-
2694
- $.extend(self, {
2695
- init: function() {
2696
- // Create document overlay
2697
- elem = self.elem = $('<div />', {
2698
- id: 'qtip-overlay',
2699
- html: '<div></div>',
2700
- mousedown: function() { return FALSE; }
2701
- })
2702
- .hide();
2703
-
2704
- // Make sure we can't focus anything outside the tooltip
2705
- $(document.body).bind('focusin'+MODALSELECTOR, stealFocus);
2706
-
2707
- // Apply keyboard "Escape key" close handler
2708
- $(document).bind('keydown'+MODALSELECTOR, function(event) {
2709
- if(current && current.options.show.modal.escape && event.keyCode === 27) {
2710
- current.hide(event);
2711
- }
2712
- });
2713
-
2714
- // Apply click handler for blur option
2715
- elem.bind('click'+MODALSELECTOR, function(event) {
2716
- if(current && current.options.show.modal.blur) {
2717
- current.hide(event);
2718
- }
2719
- });
2720
-
2721
- return self;
2722
- },
2723
-
2724
- update: function(api) {
2725
- // Update current API reference
2726
- current = api;
2727
-
2728
- // Update focusable elements if enabled
2729
- if(api.options.show.modal.stealfocus !== FALSE) {
2730
- focusableElems = api.tooltip.find('*').filter(function() {
2731
- return focusable(this);
2732
- });
2733
- }
2734
- else { focusableElems = []; }
2735
- },
2736
-
2737
- toggle: function(api, state, duration) {
2738
- var docBody = $(document.body),
2739
- tooltip = api.tooltip,
2740
- options = api.options.show.modal,
2741
- effect = options.effect,
2742
- type = state ? 'show': 'hide',
2743
- visible = elem.is(':visible'),
2744
- visibleModals = $(MODALSELECTOR).filter(':visible:not(:animated)').not(tooltip),
2745
- zindex;
2746
-
2747
- // Set active tooltip API reference
2748
- self.update(api);
2749
-
2750
- // If the modal can steal the focus...
2751
- // Blur the current item and focus anything in the modal we an
2752
- if(state && options.stealfocus !== FALSE) {
2753
- focusInputs( $(':focus') );
2754
- }
2755
-
2756
- // Toggle backdrop cursor style on show
2757
- elem.toggleClass('blurs', options.blur);
2758
-
2759
- // Append to body on show
2760
- if(state) {
2761
- elem.appendTo(document.body);
2762
- }
2763
-
2764
- // Prevent modal from conflicting with show.solo, and don't hide backdrop is other modals are visible
2765
- if((elem.is(':animated') && visible === state && prevState !== FALSE) || (!state && visibleModals.length)) {
2766
- return self;
2767
- }
2768
-
2769
- // Stop all animations
2770
- elem.stop(TRUE, FALSE);
2771
-
2772
- // Use custom function if provided
2773
- if($.isFunction(effect)) {
2774
- effect.call(elem, state);
2775
- }
2776
-
2777
- // If no effect type is supplied, use a simple toggle
2778
- else if(effect === FALSE) {
2779
- elem[ type ]();
2780
- }
2781
-
2782
- // Use basic fade function
2783
- else {
2784
- elem.fadeTo( parseInt(duration, 10) || 90, state ? 1 : 0, function() {
2785
- if(!state) { elem.hide(); }
2786
- });
2787
- }
2788
-
2789
- // Reset position and detach from body on hide
2790
- if(!state) {
2791
- elem.queue(function(next) {
2792
- elem.css({ left: '', top: '' });
2793
- if(!$(MODALSELECTOR).length) { elem.detach(); }
2794
- next();
2795
- });
2796
- }
2797
-
2798
- // Cache the state
2799
- prevState = state;
2800
-
2801
- // If the tooltip is destroyed, set reference to null
2802
- if(current.destroyed) { current = NULL; }
2803
-
2804
- return self;
2805
- }
2806
- });
2807
-
2808
- self.init();
2809
- };
2810
- OVERLAY = new OVERLAY();
2811
-
2812
- function Modal(api, options) {
2813
- this.options = options;
2814
- this._ns = '-modal';
2815
-
2816
- this.init( (this.qtip = api) );
2817
- }
2818
-
2819
- $.extend(Modal.prototype, {
2820
- init: function(qtip) {
2821
- var tooltip = qtip.tooltip;
2822
-
2823
- // If modal is disabled... return
2824
- if(!this.options.on) { return this; }
2825
-
2826
- // Set overlay reference
2827
- qtip.elements.overlay = OVERLAY.elem;
2828
-
2829
- // Add unique attribute so we can grab modal tooltips easily via a SELECTOR, and set z-index
2830
- tooltip.addClass(MODALCLASS).css('z-index', QTIP.modal_zindex + $(MODALSELECTOR).length);
2831
-
2832
- // Apply our show/hide/focus modal events
2833
- qtip._bind(tooltip, ['tooltipshow', 'tooltiphide'], function(event, api, duration) {
2834
- var oEvent = event.originalEvent;
2835
-
2836
- // Make sure mouseout doesn't trigger a hide when showing the modal and mousing onto backdrop
2837
- if(event.target === tooltip[0]) {
2838
- if(oEvent && event.type === 'tooltiphide' && /mouse(leave|enter)/.test(oEvent.type) && $(oEvent.relatedTarget).closest(OVERLAY.elem[0]).length) {
2839
- try { event.preventDefault(); } catch(e) {}
2840
- }
2841
- else if(!oEvent || (oEvent && oEvent.type !== 'tooltipsolo')) {
2842
- this.toggle(event, event.type === 'tooltipshow', duration);
2843
- }
2844
- }
2845
- }, this._ns, this);
2846
-
2847
- // Adjust modal z-index on tooltip focus
2848
- qtip._bind(tooltip, 'tooltipfocus', function(event, api) {
2849
- // If focus was cancelled before it reached us, don't do anything
2850
- if(event.isDefaultPrevented() || event.target !== tooltip[0]) { return; }
2851
-
2852
- var qtips = $(MODALSELECTOR),
2853
-
2854
- // Keep the modal's lower than other, regular qtips
2855
- newIndex = QTIP.modal_zindex + qtips.length,
2856
- curIndex = parseInt(tooltip[0].style.zIndex, 10);
2857
-
2858
- // Set overlay z-index
2859
- OVERLAY.elem[0].style.zIndex = newIndex - 1;
2860
-
2861
- // Reduce modal z-index's and keep them properly ordered
2862
- qtips.each(function() {
2863
- if(this.style.zIndex > curIndex) {
2864
- this.style.zIndex -= 1;
2865
- }
2866
- });
2867
-
2868
- // Fire blur event for focused tooltip
2869
- qtips.filter('.' + CLASS_FOCUS).qtip('blur', event.originalEvent);
2870
-
2871
- // Set the new z-index
2872
- tooltip.addClass(CLASS_FOCUS)[0].style.zIndex = newIndex;
2873
-
2874
- // Set current
2875
- OVERLAY.update(api);
2876
-
2877
- // Prevent default handling
2878
- try { event.preventDefault(); } catch(e) {}
2879
- }, this._ns, this);
2880
-
2881
- // Focus any other visible modals when this one hides
2882
- qtip._bind(tooltip, 'tooltiphide', function(event) {
2883
- if(event.target === tooltip[0]) {
2884
- $(MODALSELECTOR).filter(':visible').not(tooltip).last().qtip('focus', event);
2885
- }
2886
- }, this._ns, this);
2887
- },
2888
-
2889
- toggle: function(event, state, duration) {
2890
- // Make sure default event hasn't been prevented
2891
- if(event && event.isDefaultPrevented()) { return this; }
2892
-
2893
- // Toggle it
2894
- OVERLAY.toggle(this.qtip, !!state, duration);
2895
- },
2896
-
2897
- destroy: function() {
2898
- // Remove modal class
2899
- this.qtip.tooltip.removeClass(MODALCLASS);
2900
-
2901
- // Remove bound events
2902
- this.qtip._unbind(this.qtip.tooltip, this._ns);
2903
-
2904
- // Delete element reference
2905
- OVERLAY.toggle(this.qtip, FALSE);
2906
- delete this.qtip.elements.overlay;
2907
- }
2908
- });
2909
-
2910
-
2911
- MODAL = PLUGINS.modal = function(api) {
2912
- return new Modal(api, api.options.show.modal);
2913
- };
2914
-
2915
- // Setup sanitiztion rules
2916
- MODAL.sanitize = function(opts) {
2917
- if(opts.show) {
2918
- if(typeof opts.show.modal !== 'object') { opts.show.modal = { on: !!opts.show.modal }; }
2919
- else if(typeof opts.show.modal.on === 'undefined') { opts.show.modal.on = TRUE; }
2920
- }
2921
- };
2922
-
2923
- // Base z-index for all modal tooltips (use qTip core z-index as a base)
2924
- QTIP.modal_zindex = QTIP.zindex - 200;
2925
-
2926
- // Plugin needs to be initialized on render
2927
- MODAL.initialize = 'render';
2928
-
2929
- // Setup option set checks
2930
- CHECKS.modal = {
2931
- '^show.modal.(on|blur)$': function() {
2932
- // Initialise
2933
- this.destroy();
2934
- this.init();
2935
-
2936
- // Show the modal if not visible already and tooltip is visible
2937
- this.qtip.elems.overlay.toggle(
2938
- this.qtip.tooltip[0].offsetWidth > 0
2939
- );
2940
- }
2941
- };
2942
-
2943
- // Extend original api defaults
2944
- $.extend(TRUE, QTIP.defaults, {
2945
- show: {
2946
- modal: {
2947
- on: FALSE,
2948
- effect: TRUE,
2949
- blur: TRUE,
2950
- stealfocus: TRUE,
2951
- escape: TRUE
2952
- }
2953
- }
2954
- });
2955
- ;PLUGINS.viewport = function(api, position, posOptions, targetWidth, targetHeight, elemWidth, elemHeight)
2956
- {
2957
- var target = posOptions.target,
2958
- tooltip = api.elements.tooltip,
2959
- my = posOptions.my,
2960
- at = posOptions.at,
2961
- adjust = posOptions.adjust,
2962
- method = adjust.method.split(' '),
2963
- methodX = method[0],
2964
- methodY = method[1] || method[0],
2965
- viewport = posOptions.viewport,
2966
- container = posOptions.container,
2967
- cache = api.cache,
2968
- adjusted = { left: 0, top: 0 },
2969
- fixed, newMy, containerOffset, containerStatic,
2970
- viewportWidth, viewportHeight, viewportScroll, viewportOffset;
2971
-
2972
- // If viewport is not a jQuery element, or it's the window/document, or no adjustment method is used... return
2973
- if(!viewport.jquery || target[0] === window || target[0] === document.body || adjust.method === 'none') {
2974
- return adjusted;
2975
- }
2976
-
2977
- // Cach container details
2978
- containerOffset = container.offset() || adjusted;
2979
- containerStatic = container.css('position') === 'static';
2980
-
2981
- // Cache our viewport details
2982
- fixed = tooltip.css('position') === 'fixed';
2983
- viewportWidth = viewport[0] === window ? viewport.width() : viewport.outerWidth(FALSE);
2984
- viewportHeight = viewport[0] === window ? viewport.height() : viewport.outerHeight(FALSE);
2985
- viewportScroll = { left: fixed ? 0 : viewport.scrollLeft(), top: fixed ? 0 : viewport.scrollTop() };
2986
- viewportOffset = viewport.offset() || adjusted;
2987
-
2988
- // Generic calculation method
2989
- function calculate(side, otherSide, type, adjust, side1, side2, lengthName, targetLength, elemLength) {
2990
- var initialPos = position[side1],
2991
- mySide = my[side],
2992
- atSide = at[side],
2993
- isShift = type === SHIFT,
2994
- myLength = mySide === side1 ? elemLength : mySide === side2 ? -elemLength : -elemLength / 2,
2995
- atLength = atSide === side1 ? targetLength : atSide === side2 ? -targetLength : -targetLength / 2,
2996
- sideOffset = viewportScroll[side1] + viewportOffset[side1] - (containerStatic ? 0 : containerOffset[side1]),
2997
- overflow1 = sideOffset - initialPos,
2998
- overflow2 = initialPos + elemLength - (lengthName === WIDTH ? viewportWidth : viewportHeight) - sideOffset,
2999
- offset = myLength - (my.precedance === side || mySide === my[otherSide] ? atLength : 0) - (atSide === CENTER ? targetLength / 2 : 0);
3000
-
3001
- // shift
3002
- if(isShift) {
3003
- offset = (mySide === side1 ? 1 : -1) * myLength;
3004
-
3005
- // Adjust position but keep it within viewport dimensions
3006
- position[side1] += overflow1 > 0 ? overflow1 : overflow2 > 0 ? -overflow2 : 0;
3007
- position[side1] = Math.max(
3008
- -containerOffset[side1] + viewportOffset[side1],
3009
- initialPos - offset,
3010
- Math.min(
3011
- Math.max(
3012
- -containerOffset[side1] + viewportOffset[side1] + (lengthName === WIDTH ? viewportWidth : viewportHeight),
3013
- initialPos + offset
3014
- ),
3015
- position[side1],
3016
-
3017
- // Make sure we don't adjust complete off the element when using 'center'
3018
- mySide === 'center' ? initialPos - myLength : 1E9
3019
- )
3020
- );
3021
-
3022
- }
3023
-
3024
- // flip/flipinvert
3025
- else {
3026
- // Update adjustment amount depending on if using flipinvert or flip
3027
- adjust *= (type === FLIPINVERT ? 2 : 0);
3028
-
3029
- // Check for overflow on the left/top
3030
- if(overflow1 > 0 && (mySide !== side1 || overflow2 > 0)) {
3031
- position[side1] -= offset + adjust;
3032
- newMy.invert(side, side1);
3033
- }
3034
-
3035
- // Check for overflow on the bottom/right
3036
- else if(overflow2 > 0 && (mySide !== side2 || overflow1 > 0) ) {
3037
- position[side1] -= (mySide === CENTER ? -offset : offset) + adjust;
3038
- newMy.invert(side, side2);
3039
- }
3040
-
3041
- // Make sure we haven't made things worse with the adjustment and reset if so
3042
- if(position[side1] < viewportScroll && -position[side1] > overflow2) {
3043
- position[side1] = initialPos; newMy = my.clone();
3044
- }
3045
- }
3046
-
3047
- return position[side1] - initialPos;
3048
- }
3049
-
3050
- // Set newMy if using flip or flipinvert methods
3051
- if(methodX !== 'shift' || methodY !== 'shift') { newMy = my.clone(); }
3052
-
3053
- // Adjust position based onviewport and adjustment options
3054
- adjusted = {
3055
- left: methodX !== 'none' ? calculate( X, Y, methodX, adjust.x, LEFT, RIGHT, WIDTH, targetWidth, elemWidth ) : 0,
3056
- top: methodY !== 'none' ? calculate( Y, X, methodY, adjust.y, TOP, BOTTOM, HEIGHT, targetHeight, elemHeight ) : 0,
3057
- my: newMy
3058
- };
3059
-
3060
- return adjusted;
3061
- };
3062
- ;PLUGINS.polys = {
3063
- // POLY area coordinate calculator
3064
- // Special thanks to Ed Cradock for helping out with this.
3065
- // Uses a binary search algorithm to find suitable coordinates.
3066
- polygon: function(baseCoords, corner) {
3067
- var result = {
3068
- width: 0, height: 0,
3069
- position: {
3070
- top: 1e10, right: 0,
3071
- bottom: 0, left: 1e10
3072
- },
3073
- adjustable: FALSE
3074
- },
3075
- i = 0, next,
3076
- coords = [],
3077
- compareX = 1, compareY = 1,
3078
- realX = 0, realY = 0,
3079
- newWidth, newHeight;
3080
-
3081
- // First pass, sanitize coords and determine outer edges
3082
- i = baseCoords.length; while(i--) {
3083
- next = [ parseInt(baseCoords[--i], 10), parseInt(baseCoords[i+1], 10) ];
3084
-
3085
- if(next[0] > result.position.right){ result.position.right = next[0]; }
3086
- if(next[0] < result.position.left){ result.position.left = next[0]; }
3087
- if(next[1] > result.position.bottom){ result.position.bottom = next[1]; }
3088
- if(next[1] < result.position.top){ result.position.top = next[1]; }
3089
-
3090
- coords.push(next);
3091
- }
3092
-
3093
- // Calculate height and width from outer edges
3094
- newWidth = result.width = Math.abs(result.position.right - result.position.left);
3095
- newHeight = result.height = Math.abs(result.position.bottom - result.position.top);
3096
-
3097
- // If it's the center corner...
3098
- if(corner.abbrev() === 'c') {
3099
- result.position = {
3100
- left: result.position.left + (result.width / 2),
3101
- top: result.position.top + (result.height / 2)
3102
- };
3103
- }
3104
- else {
3105
- // Second pass, use a binary search algorithm to locate most suitable coordinate
3106
- while(newWidth > 0 && newHeight > 0 && compareX > 0 && compareY > 0)
3107
- {
3108
- newWidth = Math.floor(newWidth / 2);
3109
- newHeight = Math.floor(newHeight / 2);
3110
-
3111
- if(corner.x === LEFT){ compareX = newWidth; }
3112
- else if(corner.x === RIGHT){ compareX = result.width - newWidth; }
3113
- else{ compareX += Math.floor(newWidth / 2); }
3114
-
3115
- if(corner.y === TOP){ compareY = newHeight; }
3116
- else if(corner.y === BOTTOM){ compareY = result.height - newHeight; }
3117
- else{ compareY += Math.floor(newHeight / 2); }
3118
-
3119
- i = coords.length; while(i--)
3120
- {
3121
- if(coords.length < 2){ break; }
3122
-
3123
- realX = coords[i][0] - result.position.left;
3124
- realY = coords[i][1] - result.position.top;
3125
-
3126
- if((corner.x === LEFT && realX >= compareX) ||
3127
- (corner.x === RIGHT && realX <= compareX) ||
3128
- (corner.x === CENTER && (realX < compareX || realX > (result.width - compareX))) ||
3129
- (corner.y === TOP && realY >= compareY) ||
3130
- (corner.y === BOTTOM && realY <= compareY) ||
3131
- (corner.y === CENTER && (realY < compareY || realY > (result.height - compareY)))) {
3132
- coords.splice(i, 1);
3133
- }
3134
- }
3135
- }
3136
- result.position = { left: coords[0][0], top: coords[0][1] };
3137
- }
3138
-
3139
- return result;
3140
- },
3141
-
3142
- rect: function(ax, ay, bx, by) {
3143
- return {
3144
- width: Math.abs(bx - ax),
3145
- height: Math.abs(by - ay),
3146
- position: {
3147
- left: Math.min(ax, bx),
3148
- top: Math.min(ay, by)
3149
- }
3150
- };
3151
- },
3152
-
3153
- _angles: {
3154
- tc: 3 / 2, tr: 7 / 4, tl: 5 / 4,
3155
- bc: 1 / 2, br: 1 / 4, bl: 3 / 4,
3156
- rc: 2, lc: 1, c: 0
3157
- },
3158
- ellipse: function(cx, cy, rx, ry, corner) {
3159
- var c = PLUGINS.polys._angles[ corner.abbrev() ],
3160
- rxc = c === 0 ? 0 : rx * Math.cos( c * Math.PI ),
3161
- rys = ry * Math.sin( c * Math.PI );
3162
-
3163
- return {
3164
- width: (rx * 2) - Math.abs(rxc),
3165
- height: (ry * 2) - Math.abs(rys),
3166
- position: {
3167
- left: cx + rxc,
3168
- top: cy + rys
3169
- },
3170
- adjustable: FALSE
3171
- };
3172
- },
3173
- circle: function(cx, cy, r, corner) {
3174
- return PLUGINS.polys.ellipse(cx, cy, r, r, corner);
3175
- }
3176
- };
3177
- ;PLUGINS.svg = function(api, svg, corner)
3178
- {
3179
- var doc = $(document),
3180
- elem = svg[0],
3181
- root = $(elem.ownerSVGElement),
3182
- ownerDocument = elem.ownerDocument,
3183
- strokeWidth2 = (parseInt(svg.css('stroke-width'), 10) || 0) / 2,
3184
- frameOffset, mtx, transformed, viewBox,
3185
- len, next, i, points,
3186
- result, position, dimensions;
3187
-
3188
- // Ascend the parentNode chain until we find an element with getBBox()
3189
- while(!elem.getBBox) { elem = elem.parentNode; }
3190
- if(!elem.getBBox || !elem.parentNode) { return FALSE; }
3191
-
3192
- // Determine which shape calculation to use
3193
- switch(elem.nodeName) {
3194
- case 'ellipse':
3195
- case 'circle':
3196
- result = PLUGINS.polys.ellipse(
3197
- elem.cx.baseVal.value,
3198
- elem.cy.baseVal.value,
3199
- (elem.rx || elem.r).baseVal.value + strokeWidth2,
3200
- (elem.ry || elem.r).baseVal.value + strokeWidth2,
3201
- corner
3202
- );
3203
- break;
3204
-
3205
- case 'line':
3206
- case 'polygon':
3207
- case 'polyline':
3208
- // Determine points object (line has none, so mimic using array)
3209
- points = elem.points || [
3210
- { x: elem.x1.baseVal.value, y: elem.y1.baseVal.value },
3211
- { x: elem.x2.baseVal.value, y: elem.y2.baseVal.value }
3212
- ];
3213
-
3214
- for(result = [], i = -1, len = points.numberOfItems || points.length; ++i < len;) {
3215
- next = points.getItem ? points.getItem(i) : points[i];
3216
- result.push.apply(result, [next.x, next.y]);
3217
- }
3218
-
3219
- result = PLUGINS.polys.polygon(result, corner);
3220
- break;
3221
-
3222
- // Unknown shape or rectangle? Use bounding box
3223
- default:
3224
- result = elem.getBBox();
3225
- result = {
3226
- width: result.width,
3227
- height: result.height,
3228
- position: {
3229
- left: result.x,
3230
- top: result.y
3231
- }
3232
- };
3233
- break;
3234
- }
3235
-
3236
- // Shortcut assignments
3237
- position = result.position;
3238
- root = root[0];
3239
-
3240
- // Convert position into a pixel value
3241
- if(root.createSVGPoint) {
3242
- mtx = elem.getScreenCTM();
3243
- points = root.createSVGPoint();
3244
-
3245
- points.x = position.left;
3246
- points.y = position.top;
3247
- transformed = points.matrixTransform( mtx );
3248
- position.left = transformed.x;
3249
- position.top = transformed.y;
3250
- }
3251
-
3252
- // Check the element is not in a child document, and if so, adjust for frame elements offset
3253
- if(ownerDocument !== document && api.position.target !== 'mouse') {
3254
- frameOffset = $((ownerDocument.defaultView || ownerDocument.parentWindow).frameElement).offset();
3255
- if(frameOffset) {
3256
- position.left += frameOffset.left;
3257
- position.top += frameOffset.top;
3258
- }
3259
- }
3260
-
3261
- // Adjust by scroll offset of owner document
3262
- ownerDocument = $(ownerDocument);
3263
- position.left += ownerDocument.scrollLeft();
3264
- position.top += ownerDocument.scrollTop();
3265
-
3266
- return result;
3267
- };
3268
- ;PLUGINS.imagemap = function(api, area, corner, adjustMethod)
3269
- {
3270
- if(!area.jquery) { area = $(area); }
3271
-
3272
- var shape = (area.attr('shape') || 'rect').toLowerCase().replace('poly', 'polygon'),
3273
- image = $('img[usemap="#'+area.parent('map').attr('name')+'"]'),
3274
- coordsString = $.trim(area.attr('coords')),
3275
- coordsArray = coordsString.replace(/,$/, '').split(','),
3276
- imageOffset, coords, i, next, result, len;
3277
-
3278
- // If we can't find the image using the map...
3279
- if(!image.length) { return FALSE; }
3280
-
3281
- // Pass coordinates string if polygon
3282
- if(shape === 'polygon') {
3283
- result = PLUGINS.polys.polygon(coordsArray, corner);
3284
- }
3285
-
3286
- // Otherwise parse the coordinates and pass them as arguments
3287
- else if(PLUGINS.polys[shape]) {
3288
- for(i = -1, len = coordsArray.length, coords = []; ++i < len;) {
3289
- coords.push( parseInt(coordsArray[i], 10) );
3290
- }
3291
-
3292
- result = PLUGINS.polys[shape].apply(
3293
- this, coords.concat(corner)
3294
- );
3295
- }
3296
-
3297
- // If no shapre calculation method was found, return false
3298
- else { return FALSE; }
3299
-
3300
- // Make sure we account for padding and borders on the image
3301
- imageOffset = image.offset();
3302
- imageOffset.left += Math.ceil((image.outerWidth(FALSE) - image.width()) / 2);
3303
- imageOffset.top += Math.ceil((image.outerHeight(FALSE) - image.height()) / 2);
3304
-
3305
- // Add image position to offset coordinates
3306
- result.position.left += imageOffset.left;
3307
- result.position.top += imageOffset.top;
3308
-
3309
- return result;
3310
- };
3311
- ;var IE6,
3312
-
3313
- /*
3314
- * BGIFrame adaption (http://plugins.jquery.com/project/bgiframe)
3315
- * Special thanks to Brandon Aaron
3316
- */
3317
- BGIFRAME = '<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" ' +
3318
- ' style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); ' +
3319
- '-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>';
3320
-
3321
- function Ie6(api, qtip) {
3322
- this._ns = 'ie6';
3323
- this.init( (this.qtip = api) );
3324
- }
3325
-
3326
- $.extend(Ie6.prototype, {
3327
- _scroll : function() {
3328
- var overlay = this.qtip.elements.overlay;
3329
- overlay && (overlay[0].style.top = $(window).scrollTop() + 'px');
3330
- },
3331
-
3332
- init: function(qtip) {
3333
- var tooltip = qtip.tooltip,
3334
- scroll;
3335
-
3336
- // Create the BGIFrame element if needed
3337
- if($('select, object').length < 1) {
3338
- this.bgiframe = qtip.elements.bgiframe = $(BGIFRAME).appendTo(tooltip);
3339
-
3340
- // Update BGIFrame on tooltip move
3341
- qtip._bind(tooltip, 'tooltipmove', this.adjustBGIFrame, this._ns, this);
3342
- }
3343
-
3344
- // redraw() container for width/height calculations
3345
- this.redrawContainer = $('<div/>', { id: NAMESPACE+'-rcontainer' })
3346
- .appendTo(document.body);
3347
-
3348
- // Fixup modal plugin if present too
3349
- if( qtip.elements.overlay && qtip.elements.overlay.addClass('qtipmodal-ie6fix') ) {
3350
- qtip._bind(window, ['scroll', 'resize'], this._scroll, this._ns, this);
3351
- qtip._bind(tooltip, ['tooltipshow'], this._scroll, this._ns, this);
3352
- }
3353
-
3354
- // Set dimensions
3355
- this.redraw();
3356
- },
3357
-
3358
- adjustBGIFrame: function() {
3359
- var tooltip = this.qtip.tooltip,
3360
- dimensions = {
3361
- height: tooltip.outerHeight(FALSE),
3362
- width: tooltip.outerWidth(FALSE)
3363
- },
3364
- plugin = this.qtip.plugins.tip,
3365
- tip = this.qtip.elements.tip,
3366
- tipAdjust, offset;
3367
-
3368
- // Adjust border offset
3369
- offset = parseInt(tooltip.css('borderLeftWidth'), 10) || 0;
3370
- offset = { left: -offset, top: -offset };
3371
-
3372
- // Adjust for tips plugin
3373
- if(plugin && tip) {
3374
- tipAdjust = (plugin.corner.precedance === 'x') ? [WIDTH, LEFT] : [HEIGHT, TOP];
3375
- offset[ tipAdjust[1] ] -= tip[ tipAdjust[0] ]();
3376
- }
3377
-
3378
- // Update bgiframe
3379
- this.bgiframe.css(offset).css(dimensions);
3380
- },
3381
-
3382
- // Max/min width simulator function
3383
- redraw: function() {
3384
- if(this.qtip.rendered < 1 || this.drawing) { return this; }
3385
-
3386
- var tooltip = this.qtip.tooltip,
3387
- style = this.qtip.options.style,
3388
- container = this.qtip.options.position.container,
3389
- perc, width, max, min;
3390
-
3391
- // Set drawing flag
3392
- this.qtip.drawing = 1;
3393
-
3394
- // If tooltip has a set height/width, just set it... like a boss!
3395
- if(style.height) { tooltip.css(HEIGHT, style.height); }
3396
- if(style.width) { tooltip.css(WIDTH, style.width); }
3397
-
3398
- // Simulate max/min width if not set width present...
3399
- else {
3400
- // Reset width and add fluid class
3401
- tooltip.css(WIDTH, '').appendTo(this.redrawContainer);
3402
-
3403
- // Grab our tooltip width (add 1 if odd so we don't get wrapping problems.. huzzah!)
3404
- width = tooltip.width();
3405
- if(width % 2 < 1) { width += 1; }
3406
-
3407
- // Grab our max/min properties
3408
- max = tooltip.css('maxWidth') || '';
3409
- min = tooltip.css('minWidth') || '';
3410
-
3411
- // Parse into proper pixel values
3412
- perc = (max + min).indexOf('%') > -1 ? container.width() / 100 : 0;
3413
- max = ((max.indexOf('%') > -1 ? perc : 1) * parseInt(max, 10)) || width;
3414
- min = ((min.indexOf('%') > -1 ? perc : 1) * parseInt(min, 10)) || 0;
3415
-
3416
- // Determine new dimension size based on max/min/current values
3417
- width = max + min ? Math.min(Math.max(width, min), max) : width;
3418
-
3419
- // Set the newly calculated width and remvoe fluid class
3420
- tooltip.css(WIDTH, Math.round(width)).appendTo(container);
3421
- }
3422
-
3423
- // Set drawing flag
3424
- this.drawing = 0;
3425
-
3426
- return this;
3427
- },
3428
-
3429
- destroy: function() {
3430
- // Remove iframe
3431
- this.bgiframe && this.bgiframe.remove();
3432
-
3433
- // Remove bound events
3434
- this.qtip._unbind([window, this.qtip.tooltip], this._ns);
3435
- }
3436
- });
3437
-
3438
- IE6 = PLUGINS.ie6 = function(api) {
3439
- // Proceed only if the browser is IE6
3440
- return BROWSER.ie === 6 ? new Ie6(api) : FALSE;
3441
- };
3442
-
3443
- IE6.initialize = 'render';
3444
-
3445
- CHECKS.ie6 = {
3446
- '^content|style$': function() {
3447
- this.redraw();
3448
- }
3449
- };
3450
- ;}));
3451
- }( window, document ));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/plugins/jquery.qtip.min.js DELETED
@@ -1,2 +0,0 @@
1
- !function(t,e,i){!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.qtip&&t(jQuery)}(function(s){"use strict";function o(t,e,i,o){this.id=i,this.target=t,this.tooltip=k,this.elements={target:t},this._id=R+"-"+i,this.timers={img:{}},this.options=e,this.plugins={},this.cache={event:{},target:s(),disabled:I,attr:o,onTooltip:I,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=I}function n(t){return t===k||"object"!==s.type(t)}function r(t){return!(s.isFunction(t)||t&&t.attr||t.length||"object"===s.type(t)&&(t.jquery||t.then))}function a(t){var e,i,o,a;return n(t)?I:(n(t.metadata)&&(t.metadata={type:t.metadata}),"content"in t&&(e=t.content,n(e)||e.jquery||e.done?e=t.content={text:i=r(e)?I:e}:i=e.text,"ajax"in e&&(o=e.ajax,a=o&&o.once!==I,delete e.ajax,e.text=function(t,e){var n=i||s(this).attr(e.options.content.attr)||"Loading...",r=s.ajax(s.extend({},o,{context:e})).then(o.success,k,o.error).then(function(t){return t&&a&&e.set("content.text",t),t},function(t,i,s){e.destroyed||0===t.status||e.set("content.text",i+": "+s)});return a?n:(e.set("content.text",n),r)}),"title"in e&&(s.isPlainObject(e.title)&&(e.button=e.title.button,e.title=e.title.text),r(e.title||I)&&(e.title=I))),"position"in t&&n(t.position)&&(t.position={my:t.position,at:t.position}),"show"in t&&n(t.show)&&(t.show=t.show.jquery?{target:t.show}:t.show===W?{ready:W}:{event:t.show}),"hide"in t&&n(t.hide)&&(t.hide=t.hide.jquery?{target:t.hide}:{event:t.hide}),"style"in t&&n(t.style)&&(t.style={classes:t.style}),s.each(V,function(){this.sanitize&&this.sanitize(t)}),t)}function h(t,e){for(var i,s=0,o=t,n=e.split(".");o=o[n[s++]];)s<n.length&&(i=o);return[i||t,n.pop()]}function l(t,e){var i,s,o;for(i in this.checks)for(s in this.checks[i])(o=new RegExp(s,"i").exec(t))&&(e.push(o),("builtin"===i||this.plugins[i])&&this.checks[i][s].apply(this.plugins[i]||this,e))}function c(t){return Y.concat("").join(t?"-"+t+" ":" ")}function d(t,e){return e>0?setTimeout(s.proxy(t,this),e):void t.call(this)}function p(t){this.tooltip.hasClass(tt)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=d.call(this,function(){this.toggle(W,t)},this.options.show.delay))}function u(t){if(!this.tooltip.hasClass(tt)&&!this.destroyed){var e=s(t.relatedTarget),i=e.closest(G)[0]===this.tooltip[0],o=e[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==e[0]&&"mouse"===this.options.position.target&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(i||o))try{t.preventDefault(),t.stopImmediatePropagation()}catch(n){}else this.timers.hide=d.call(this,function(){this.toggle(I,t)},this.options.hide.delay,this)}}function f(t){!this.tooltip.hasClass(tt)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=d.call(this,function(){this.hide(t)},this.options.hide.inactive))}function g(t){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(t)}function m(t,i,o){s(e.body).delegate(t,(i.split?i:i.join("."+R+" "))+"."+R,function(){var t=q.api[s.attr(this,X)];t&&!t.disabled&&o.apply(t,arguments)})}function v(t,i,n){var r,h,l,c,d,p=s(e.body),u=t[0]===e?p:t,f=t.metadata?t.metadata(n.metadata):k,g="html5"===n.metadata.type&&f?f[n.metadata.name]:k,m=t.data(n.metadata.name||"qtipopts");try{m="string"==typeof m?s.parseJSON(m):m}catch(v){}if(c=s.extend(W,{},q.defaults,n,"object"==typeof m?a(m):k,a(g||f)),h=c.position,c.id=i,"boolean"==typeof c.content.text){if(l=t.attr(c.content.attr),c.content.attr===I||!l)return I;c.content.text=l}if(h.container.length||(h.container=p),h.target===I&&(h.target=u),c.show.target===I&&(c.show.target=u),c.show.solo===W&&(c.show.solo=h.container.closest("body")),c.hide.target===I&&(c.hide.target=u),c.position.viewport===W&&(c.position.viewport=h.container),h.container=h.container.eq(0),h.at=new j(h.at,W),h.my=new j(h.my),t.data(R))if(c.overwrite)t.qtip("destroy",!0);else if(c.overwrite===I)return I;return t.attr(H,i),c.suppress&&(d=t.attr("title"))&&t.removeAttr("title").attr(it,d).attr("title",""),r=new o(t,c,i,(!!l)),t.data(R,r),r}function y(t){return t.charAt(0).toUpperCase()+t.slice(1)}function b(t,e){var s,o,n=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+vt.join(n+" ")+n).split(" "),a=0;if(mt[e])return t.css(mt[e]);for(;s=r[a++];)if((o=t.css(s))!==i)return mt[e]=s,o}function w(t,e){return Math.ceil(parseFloat(b(t,e)))}function _(t,e){this._ns="tip",this.options=e,this.offset=e.offset,this.size=[e.width,e.height],this.init(this.qtip=t)}function x(t,e){this.options=e,this._ns="-modal",this.init(this.qtip=t)}function C(t,e){this._ns="ie6",this.init(this.qtip=t)}var q,T,j,z,M,W=!0,I=!1,k=null,E="x",S="y",A="width",L="height",P="top",D="left",B="bottom",F="right",N="center",O="flipinvert",$="shift",V={},R="qtip",H="data-hasqtip",X="data-qtip-id",Y=["ui-widget","ui-tooltip"],G="."+R,U="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),Q=R+"-fixed",J=R+"-default",K=R+"-focus",Z=R+"-hover",tt=R+"-disabled",et="_replacedByqTip",it="oldtitle",st={ie:function(){for(var t=4,i=e.createElement("div");(i.innerHTML="<!--[if gt IE "+t+"]><i></i><![endif]-->")&&i.getElementsByTagName("i")[0];t+=1);return t>4?t:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||I};T=o.prototype,T._when=function(t){return s.when.apply(s,t)},T.render=function(t){if(this.rendered||this.destroyed)return this;var e,i=this,o=this.options,n=this.cache,r=this.elements,a=o.content.text,h=o.content.title,l=o.content.button,c=o.position,d=("."+this._id+" ",[]);return s.attr(this.target[0],"aria-describedby",this._id),n.posClass=this._createPosClass((this.position={my:c.my,at:c.at}).my),this.tooltip=r.tooltip=e=s("<div/>",{id:this._id,"class":[R,J,o.style.classes,n.posClass].join(" "),width:o.style.width||"",height:o.style.height||"",tracking:"mouse"===c.target&&c.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":I,"aria-describedby":this._id+"-content","aria-hidden":W}).toggleClass(tt,this.disabled).attr(X,this.id).data(R,this).appendTo(c.container).append(r.content=s("<div />",{"class":R+"-content",id:this._id+"-content","aria-atomic":W})),this.rendered=-1,this.positioning=W,h&&(this._createTitle(),s.isFunction(h)||d.push(this._updateTitle(h,I))),l&&this._createButton(),s.isFunction(a)||d.push(this._updateContent(a,I)),this.rendered=W,this._setWidget(),s.each(V,function(t){var e;"render"===this.initialize&&(e=this(i))&&(i.plugins[t]=e)}),this._unassignEvents(),this._assignEvents(),this._when(d).then(function(){i._trigger("render"),i.positioning=I,i.hiddenDuringWait||!o.show.ready&&!t||i.toggle(W,n.event,I),i.hiddenDuringWait=I}),q.api[this.id]=this,this},T.destroy=function(t){function e(){if(!this.destroyed){this.destroyed=W;var t,e=this.target,i=e.attr(it);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),s.each(this.plugins,function(t){this.destroy&&this.destroy()});for(t in this.timers)clearTimeout(this.timers[t]);e.removeData(R).removeAttr(X).removeAttr(H).removeAttr("aria-describedby"),this.options.suppress&&i&&e.attr("title",i).removeAttr(it),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=k,delete q.api[this.id]}}return this.destroyed?this.target:(t===W&&"hide"!==this.triggering||!this.rendered?e.call(this):(this.tooltip.one("tooltiphidden",s.proxy(e,this)),!this.triggering&&this.hide()),this.target)},z=T.checks={builtin:{"^id$":function(t,e,i,o){var n=i===W?q.nextid:i,r=R+"-"+n;n!==I&&n.length>0&&!s("#"+r).length?(this._id=r,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):t[e]=o},"^prerender":function(t,e,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(t,e,i){this._updateContent(i)},"^content.attr$":function(t,e,i,s){this.options.content.text===this.target.attr(s)&&this._updateContent(this.target.attr(i))},"^content.title$":function(t,e,i){return i?(i&&!this.elements.title&&this._createTitle(),void this._updateTitle(i)):this._removeTitle()},"^content.button$":function(t,e,i){this._updateButton(i)},"^content.title.(text|button)$":function(t,e,i){this.set("content."+e,i)},"^position.(my|at)$":function(t,e,i){"string"==typeof i&&(this.position[e]=t[e]=new j(i,"at"===e))},"^position.container$":function(t,e,i){this.rendered&&this.tooltip.appendTo(i)},"^show.ready$":function(t,e,i){i&&(!this.rendered&&this.render(W)||this.toggle(W))},"^style.classes$":function(t,e,i,s){this.rendered&&this.tooltip.removeClass(s).addClass(i)},"^style.(width|height)":function(t,e,i){this.rendered&&this.tooltip.css(e,i)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(t,e,i){this.rendered&&this.tooltip.toggleClass(J,!!i)},"^events.(render|show|move|hide|focus|blur)$":function(t,e,i){this.rendered&&this.tooltip[(s.isFunction(i)?"":"un")+"bind"]("tooltip"+e,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var t=this.options.position;this.tooltip.attr("tracking","mouse"===t.target&&t.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},T.get=function(t){if(this.destroyed)return this;var e=h(this.options,t.toLowerCase()),i=e[0][e[1]];return i.precedance?i.string():i};var ot=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,nt=/^prerender|show\.ready/i;T.set=function(t,e){if(this.destroyed)return this;var i,o=this.rendered,n=I,r=this.options;this.checks;return"string"==typeof t?(i=t,t={},t[i]=e):t=s.extend({},t),s.each(t,function(e,i){if(o&&nt.test(e))return void delete t[e];var a,l=h(r,e.toLowerCase());a=l[0][l[1]],l[0][l[1]]=i&&i.nodeType?s(i):i,n=ot.test(e)||n,t[e]=[l[0],l[1],i,a]}),a(r),this.positioning=W,s.each(t,s.proxy(l,this)),this.positioning=I,this.rendered&&this.tooltip[0].offsetWidth>0&&n&&this.reposition("mouse"===r.position.target?k:this.cache.event),this},T._update=function(t,e,i){var o=this,n=this.cache;return this.rendered&&t?(s.isFunction(t)&&(t=t.call(this.elements.target,n.event,this)||""),s.isFunction(t.then)?(n.waiting=W,t.then(function(t){return n.waiting=I,o._update(t,e)},k,function(t){return o._update(t,e)})):t===I||!t&&""!==t?I:(t.jquery&&t.length>0?e.empty().append(t.css({display:"block",visibility:"visible"})):e.html(t),this._waitForContent(e).then(function(t){o.rendered&&o.tooltip[0].offsetWidth>0&&o.reposition(n.event,!t.length)}))):I},T._waitForContent=function(t){var e=this.cache;return e.waiting=W,(s.fn.imagesLoaded?t.imagesLoaded():s.Deferred().resolve([])).done(function(){e.waiting=I}).promise()},T._updateContent=function(t,e){this._update(t,this.elements.content,e)},T._updateTitle=function(t,e){this._update(t,this.elements.title,e)===I&&this._removeTitle(I)},T._createTitle=function(){var t=this.elements,e=this._id+"-title";t.titlebar&&this._removeTitle(),t.titlebar=s("<div />",{"class":R+"-titlebar "+(this.options.style.widget?c("header"):"")}).append(t.title=s("<div />",{id:e,"class":R+"-title","aria-atomic":W})).insertBefore(t.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(t){s(this).toggleClass("ui-state-active ui-state-focus","down"===t.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(t){s(this).toggleClass("ui-state-hover","mouseover"===t.type)}),this.options.content.button&&this._createButton()},T._removeTitle=function(t){var e=this.elements;e.title&&(e.titlebar.remove(),e.titlebar=e.title=e.button=k,t!==I&&this.reposition())},T._createPosClass=function(t){return R+"-pos-"+(t||this.options.position.my).abbrev()},T.reposition=function(i,o){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=W;var n,r,a,h,l=this.cache,c=this.tooltip,d=this.options.position,p=d.target,u=d.my,f=d.at,g=d.viewport,m=d.container,v=d.adjust,y=v.method.split(" "),b=c.outerWidth(I),w=c.outerHeight(I),_=0,x=0,C=c.css("position"),q={left:0,top:0},T=c[0].offsetWidth>0,j=i&&"scroll"===i.type,z=s(t),M=m[0].ownerDocument,k=this.mouse;if(s.isArray(p)&&2===p.length)f={x:D,y:P},q={left:p[0],top:p[1]};else if("mouse"===p)f={x:D,y:P},(!v.mouse||this.options.hide.distance)&&l.origin&&l.origin.pageX?i=l.origin:!i||i&&("resize"===i.type||"scroll"===i.type)?i=l.event:k&&k.pageX&&(i=k),"static"!==C&&(q=m.offset()),M.body.offsetWidth!==(t.innerWidth||M.documentElement.clientWidth)&&(r=s(e.body).offset()),q={left:i.pageX-q.left+(r&&r.left||0),top:i.pageY-q.top+(r&&r.top||0)},v.mouse&&j&&k&&(q.left-=(k.scrollX||0)-z.scrollLeft(),q.top-=(k.scrollY||0)-z.scrollTop());else{if("event"===p?i&&i.target&&"scroll"!==i.type&&"resize"!==i.type?l.target=s(i.target):i.target||(l.target=this.elements.target):"event"!==p&&(l.target=s(p.jquery?p:this.elements.target)),p=l.target,p=s(p).eq(0),0===p.length)return this;p[0]===e||p[0]===t?(_=st.iOS?t.innerWidth:p.width(),x=st.iOS?t.innerHeight:p.height(),p[0]===t&&(q={top:(g||p).scrollTop(),left:(g||p).scrollLeft()})):V.imagemap&&p.is("area")?n=V.imagemap(this,p,f,V.viewport?y:I):V.svg&&p&&p[0].ownerSVGElement?n=V.svg(this,p,f,V.viewport?y:I):(_=p.outerWidth(I),x=p.outerHeight(I),q=p.offset()),n&&(_=n.width,x=n.height,r=n.offset,q=n.position),q=this.reposition.offset(p,q,m),(st.iOS>3.1&&st.iOS<4.1||st.iOS>=4.3&&st.iOS<4.33||!st.iOS&&"fixed"===C)&&(q.left-=z.scrollLeft(),q.top-=z.scrollTop()),(!n||n&&n.adjustable!==I)&&(q.left+=f.x===F?_:f.x===N?_/2:0,q.top+=f.y===B?x:f.y===N?x/2:0)}return q.left+=v.x+(u.x===F?-b:u.x===N?-b/2:0),q.top+=v.y+(u.y===B?-w:u.y===N?-w/2:0),V.viewport?(a=q.adjusted=V.viewport(this,q,d,_,x,b,w),r&&a.left&&(q.left+=r.left),r&&a.top&&(q.top+=r.top),a.my&&(this.position.my=a.my)):q.adjusted={left:0,top:0},l.posClass!==(h=this._createPosClass(this.position.my))&&c.removeClass(l.posClass).addClass(l.posClass=h),this._trigger("move",[q,g.elem||g],i)?(delete q.adjusted,o===I||!T||isNaN(q.left)||isNaN(q.top)||"mouse"===p||!s.isFunction(d.effect)?c.css(q):s.isFunction(d.effect)&&(d.effect.call(c,this,s.extend({},q)),c.queue(function(t){s(this).css({opacity:"",height:""}),st.ie&&this.style.removeAttribute("filter"),t()})),this.positioning=I,this):this},T.reposition.offset=function(t,i,o){function n(t,e){i.left+=e*t.scrollLeft(),i.top+=e*t.scrollTop()}if(!o[0])return i;var r,a,h,l,c=s(t[0].ownerDocument),d=!!st.ie&&"CSS1Compat"!==e.compatMode,p=o[0];do"static"!==(a=s.css(p,"position"))&&("fixed"===a?(h=p.getBoundingClientRect(),n(c,-1)):(h=s(p).position(),h.left+=parseFloat(s.css(p,"borderLeftWidth"))||0,h.top+=parseFloat(s.css(p,"borderTopWidth"))||0),i.left-=h.left+(parseFloat(s.css(p,"marginLeft"))||0),i.top-=h.top+(parseFloat(s.css(p,"marginTop"))||0),r||"hidden"===(l=s.css(p,"overflow"))||"visible"===l||(r=s(p)));while(p=p.offsetParent);return r&&(r[0]!==c[0]||d)&&n(r,1),i};var rt=(j=T.reposition.Corner=function(t,e){t=(""+t).replace(/([A-Z])/," $1").replace(/middle/gi,N).toLowerCase(),this.x=(t.match(/left|right/i)||t.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(t.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!e;var i=t.charAt(0);this.precedance="t"===i||"b"===i?S:E}).prototype;rt.invert=function(t,e){this[t]=this[t]===D?F:this[t]===F?D:e||this[t]},rt.string=function(t){var e=this.x,i=this.y,s=e!==i?"center"===e||"center"!==i&&(this.precedance===S||this.forceY)?[i,e]:[e,i]:[e];return t!==!1?s.join(" "):s},rt.abbrev=function(){var t=this.string(!1);return t[0].charAt(0)+(t[1]&&t[1].charAt(0)||"")},rt.clone=function(){return new j(this.string(),this.forceY)},T.toggle=function(t,i){var o=this.cache,n=this.options,r=this.tooltip;if(i){if(/over|enter/.test(i.type)&&o.event&&/out|leave/.test(o.event.type)&&n.show.target.add(i.target).length===n.show.target.length&&r.has(i.relatedTarget).length)return this;o.event=s.event.fix(i)}if(this.waiting&&!t&&(this.hiddenDuringWait=W),!this.rendered)return t?this.render(1):this;if(this.destroyed||this.disabled)return this;var a,h,l,c=t?"show":"hide",d=this.options[c],p=(this.options[t?"hide":"show"],this.options.position),u=this.options.content,f=this.tooltip.css("width"),g=this.tooltip.is(":visible"),m=t||1===d.target.length,v=!i||d.target.length<2||o.target[0]===i.target;return(typeof t).search("boolean|number")&&(t=!g),a=!r.is(":animated")&&g===t&&v,h=a?k:!!this._trigger(c,[90]),this.destroyed?this:(h!==I&&t&&this.focus(i),!h||a?this:(s.attr(r[0],"aria-hidden",!t),t?(this.mouse&&(o.origin=s.event.fix(this.mouse)),s.isFunction(u.text)&&this._updateContent(u.text,I),s.isFunction(u.title)&&this._updateTitle(u.title,I),!M&&"mouse"===p.target&&p.adjust.mouse&&(s(e).bind("mousemove."+R,this._storeMouse),M=W),f||r.css("width",r.outerWidth(I)),this.reposition(i,arguments[2]),f||r.css("width",""),d.solo&&("string"==typeof d.solo?s(d.solo):s(G,d.solo)).not(r).not(d.target).qtip("hide",s.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete o.origin,M&&!s(G+'[tracking="true"]:visible',d.solo).not(r).length&&(s(e).unbind("mousemove."+R),M=I),this.blur(i)),l=s.proxy(function(){t?(st.ie&&r[0].style.removeAttribute("filter"),r.css("overflow",""),"string"==typeof d.autofocus&&s(this.options.show.autofocus,r).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):r.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(t?"visible":"hidden")},this),d.effect===I||m===I?(r[c](),l()):s.isFunction(d.effect)?(r.stop(1,1),d.effect.call(r,this),r.queue("fx",function(t){l(),t()})):r.fadeTo(90,t?1:0,l),t&&d.target.trigger("qtip-"+this.id+"-inactive"),this))},T.show=function(t){return this.toggle(W,t)},T.hide=function(t){return this.toggle(I,t)},T.focus=function(t){if(!this.rendered||this.destroyed)return this;var e=s(G),i=this.tooltip,o=parseInt(i[0].style.zIndex,10),n=q.zindex+e.length;return i.hasClass(K)||this._trigger("focus",[n],t)&&(o!==n&&(e.each(function(){this.style.zIndex>o&&(this.style.zIndex=this.style.zIndex-1)}),e.filter("."+K).qtip("blur",t)),i.addClass(K)[0].style.zIndex=n),this},T.blur=function(t){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(K),this._trigger("blur",[this.tooltip.css("zIndex")],t),this)},T.disable=function(t){return this.destroyed?this:("toggle"===t?t=!(this.rendered?this.tooltip.hasClass(tt):this.disabled):"boolean"!=typeof t&&(t=W),this.rendered&&this.tooltip.toggleClass(tt,t).attr("aria-disabled",t),this.disabled=!!t,this)},T.enable=function(){return this.disable(I)},T._createButton=function(){var t=this,e=this.elements,i=e.tooltip,o=this.options.content.button,n="string"==typeof o,r=n?o:"Close tooltip";e.button&&e.button.remove(),o.jquery?e.button=o:e.button=s("<a />",{"class":"qtip-close "+(this.options.style.widget?"":R+"-icon"),title:r,"aria-label":r}).prepend(s("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"})),e.button.appendTo(e.titlebar||i).attr("role","button").click(function(e){return i.hasClass(tt)||t.hide(e),I})},T._updateButton=function(t){if(!this.rendered)return I;var e=this.elements.button;t?this._createButton():e.remove()},T._setWidget=function(){var t=this.options.style.widget,e=this.elements,i=e.tooltip,s=i.hasClass(tt);i.removeClass(tt),tt=t?"ui-state-disabled":"qtip-disabled",i.toggleClass(tt,s),i.toggleClass("ui-helper-reset "+c(),t).toggleClass(J,this.options.style.def&&!t),e.content&&e.content.toggleClass(c("content"),t),e.titlebar&&e.titlebar.toggleClass(c("header"),t),e.button&&e.button.toggleClass(R+"-icon",!t)},T._storeMouse=function(t){return(this.mouse=s.event.fix(t)).type="mousemove",this},T._bind=function(t,e,i,o,n){if(t&&i&&e.length){var r="."+this._id+(o?"-"+o:"");return s(t).bind((e.split?e:e.join(r+" "))+r,s.proxy(i,n||this)),this}},T._unbind=function(t,e){return t&&s(t).unbind("."+this._id+(e?"-"+e:"")),this},T._trigger=function(t,e,i){var o=s.Event("tooltip"+t);return o.originalEvent=i&&s.extend({},i)||this.cache.event||k,this.triggering=t,this.tooltip.trigger(o,[this].concat(e||[])),this.triggering=I,!o.isDefaultPrevented()},T._bindEvents=function(t,e,i,o,n,r){var a=i.filter(o).add(o.filter(i)),h=[];a.length&&(s.each(e,function(e,i){var o=s.inArray(i,t);o>-1&&h.push(t.splice(o,1)[0])}),h.length&&(this._bind(a,h,function(t){var e=!!this.rendered&&this.tooltip[0].offsetWidth>0;(e?r:n).call(this,t)}),i=i.not(a),o=o.not(a))),this._bind(i,t,n),this._bind(o,e,r)},T._assignInitialEvents=function(t){function e(t){return this.disabled||this.destroyed?I:(this.cache.event=t&&s.event.fix(t),this.cache.target=t&&s(t.target),clearTimeout(this.timers.show),void(this.timers.show=d.call(this,function(){this.render("object"==typeof t||i.show.ready)},i.prerender?0:i.show.delay)))}var i=this.options,o=i.show.target,n=i.hide.target,r=i.show.event?s.trim(""+i.show.event).split(" "):[],a=i.hide.event?s.trim(""+i.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(t){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(i.show.event)&&!/mouse(out|leave)/i.test(i.hide.event)&&a.push("mouseleave"),this._bind(o,"mousemove",function(t){this._storeMouse(t),this.cache.onTarget=W}),this._bindEvents(r,a,o,n,e,function(){return this.timers?void clearTimeout(this.timers.show):I}),(i.show.ready||i.prerender)&&e.call(this,t)},T._assignEvents=function(){var i=this,o=this.options,n=o.position,r=this.tooltip,a=o.show.target,h=o.hide.target,l=n.container,c=n.viewport,d=s(e),m=(s(e.body),s(t)),v=o.show.event?s.trim(""+o.show.event).split(" "):[],y=o.hide.event?s.trim(""+o.hide.event).split(" "):[];s.each(o.events,function(t,e){i._bind(r,"toggle"===t?["tooltipshow","tooltiphide"]:["tooltip"+t],e,null,r)}),/mouse(out|leave)/i.test(o.hide.event)&&"window"===o.hide.leave&&this._bind(d,["mouseout","blur"],function(t){/select|option/.test(t.target.nodeName)||t.relatedTarget||this.hide(t)}),o.hide.fixed?h=h.add(r.addClass(Q)):/mouse(over|enter)/i.test(o.show.event)&&this._bind(h,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+o.hide.event).indexOf("unfocus")>-1&&this._bind(l.closest("html"),["mousedown","touchstart"],function(t){var e=s(t.target),i=this.rendered&&!this.tooltip.hasClass(tt)&&this.tooltip[0].offsetWidth>0,o=e.parents(G).filter(this.tooltip[0]).length>0;e[0]===this.target[0]||e[0]===this.tooltip[0]||o||this.target.has(e[0]).length||!i||this.hide(t)}),"number"==typeof o.hide.inactive&&(this._bind(a,"qtip-"+this.id+"-inactive",f,"inactive"),this._bind(h.add(r),q.inactiveEvents,f)),this._bindEvents(v,y,a,h,p,u),this._bind(a.add(r),"mousemove",function(t){if("number"==typeof o.hide.distance){var e=this.cache.origin||{},i=this.options.hide.distance,s=Math.abs;(s(t.pageX-e.pageX)>=i||s(t.pageY-e.pageY)>=i)&&this.hide(t)}this._storeMouse(t)}),"mouse"===n.target&&n.adjust.mouse&&(o.hide.event&&this._bind(a,["mouseenter","mouseleave"],function(t){return this.cache?void(this.cache.onTarget="mouseenter"===t.type):I}),this._bind(d,"mousemove",function(t){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(tt)&&this.tooltip[0].offsetWidth>0&&this.reposition(t)})),(n.adjust.resize||c.length)&&this._bind(s.event.special.resize?c:m,"resize",g),n.adjust.scroll&&this._bind(m.add(n.container),"scroll",g)},T._unassignEvents=function(){var i=this.options,o=i.show.target,n=i.hide.target,r=s.grep([this.elements.target[0],this.rendered&&this.tooltip[0],i.position.container[0],i.position.viewport[0],i.position.container.closest("html")[0],t,e],function(t){return"object"==typeof t});o&&o.toArray&&(r=r.concat(o.toArray())),n&&n.toArray&&(r=r.concat(n.toArray())),this._unbind(r)._unbind(r,"destroy")._unbind(r,"inactive")},s(function(){m(G,["mouseenter","mouseleave"],function(t){var e="mouseenter"===t.type,i=s(t.currentTarget),o=s(t.relatedTarget||t.target),n=this.options;e?(this.focus(t),i.hasClass(Q)&&!i.hasClass(tt)&&clearTimeout(this.timers.hide)):"mouse"===n.position.target&&n.position.adjust.mouse&&n.hide.event&&n.show.target&&!o.closest(n.show.target[0]).length&&this.hide(t),i.toggleClass(Z,e)}),m("["+X+"]",U,f)}),q=s.fn.qtip=function(t,e,o){var n=(""+t).toLowerCase(),r=k,h=s.makeArray(arguments).slice(1),l=h[h.length-1],c=this[0]?s.data(this[0],R):k;return!arguments.length&&c||"api"===n?c:"string"==typeof t?(this.each(function(){var t=s.data(this,R);if(!t)return W;if(l&&l.timeStamp&&(t.cache.event=l),!e||"option"!==n&&"options"!==n)t[n]&&t[n].apply(t,h);else{if(o===i&&!s.isPlainObject(e))return r=t.get(e),I;t.set(e,o)}}),r!==k?r:this):"object"!=typeof t&&arguments.length?void 0:(c=a(s.extend(W,{},t)),this.each(function(t){var e,i;return i=s.isArray(c.id)?c.id[t]:c.id,i=!i||i===I||i.length<1||q.api[i]?q.nextid++:i,e=v(s(this),i,c),e===I?W:(q.api[i]=e,s.each(V,function(){"initialize"===this.initialize&&this(e)}),void e._assignInitialEvents(l))}))},s.qtip=o,q.api={},s.each({attr:function(t,e){if(this.length){var i=this[0],o="title",n=s.data(i,"qtip");if(t===o&&n&&"object"==typeof n&&n.options.suppress)return arguments.length<2?s.attr(i,it):(n&&n.options.content.attr===o&&n.cache.attr&&n.set("content.text",e),this.attr(it,e))}return s.fn["attr"+et].apply(this,arguments)},clone:function(t){var e=(s([]),s.fn["clone"+et].apply(this,arguments));return t||e.filter("["+it+"]").attr("title",function(){return s.attr(this,it)}).removeAttr(it),e}},function(t,e){if(!e||s.fn[t+et])return W;var i=s.fn[t+et]=s.fn[t];s.fn[t]=function(){return e.apply(this,arguments)||i.apply(this,arguments)}}),s.ui||(s["cleanData"+et]=s.cleanData,s.cleanData=function(t){for(var e,i=0;(e=s(t[i])).length;i++)if(e.attr(H))try{e.triggerHandler("removeqtip")}catch(o){}s["cleanData"+et].apply(this,arguments)}),q.version="2.2.1",q.nextid=0,q.inactiveEvents=U,q.zindex=15e3,q.defaults={prerender:I,id:I,overwrite:W,suppress:W,content:{text:W,attr:"title",title:I,button:I},position:{my:"top left",at:"bottom right",target:I,container:I,viewport:I,adjust:{x:0,y:0,mouse:W,scroll:W,resize:W,method:"flipinvert flipinvert"},effect:function(t,e,i){s(this).animate(e,{duration:200,queue:I})}},show:{target:I,event:"mouseenter",effect:W,delay:90,solo:I,ready:I,autofocus:I},hide:{target:I,event:"mouseleave",effect:W,delay:0,fixed:I,inactive:I,leave:"window",distance:I},style:{classes:"",widget:I,width:I,height:I,def:W},events:{render:k,move:k,show:k,hide:k,toggle:k,visible:k,hidden:k,focus:k,blur:k}};var at,ht="margin",lt="border",ct="color",dt="background-color",pt="transparent",ut=" !important",ft=!!e.createElement("canvas").getContext,gt=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,mt={},vt=["Webkit","O","Moz","ms"];if(ft)var yt=t.devicePixelRatio||1,bt=function(){var t=e.createElement("canvas").getContext("2d");return t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||1}(),wt=yt/bt;else var _t=function(t,e,i){return"<qtipvml:"+t+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(e||"")+' style="behavior: url(#default#VML); '+(i||"")+'" />'};s.extend(_.prototype,{init:function(t){var e,i;i=this.element=t.elements.tip=s("<div />",{"class":R+"-tip"}).prependTo(t.tooltip),ft?(e=s("<canvas />").appendTo(this.element)[0].getContext("2d"),e.lineJoin="miter",e.miterLimit=1e5,e.save()):(e=_t("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(e+e),t._bind(s("*",i).add(i),["click","mousedown"],function(t){t.stopPropagation()},this._ns)),t._bind(t.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(t){var e=this.qtip.elements.titlebar;return e&&(t.y===P||t.y===N&&this.element.position().top+this.size[1]/2+this.options.offset<e.outerHeight(W))},_parseCorner:function(t){var e=this.qtip.options.position.my;return t===I||e===I?t=I:t===W?t=new j(e.string()):t.string||(t=new j(t),t.fixed=W),t},_parseWidth:function(t,e,i){var s=this.qtip.elements,o=lt+y(e)+"Width";return(i?w(i,o):w(s.content,o)||w(this._useTitle(t)&&s.titlebar||s.content,o)||w(s.tooltip,o))||0},_parseRadius:function(t){var e=this.qtip.elements,i=lt+y(t.y)+y(t.x)+"Radius";return st.ie<9?0:w(this._useTitle(t)&&e.titlebar||e.content,i)||w(e.tooltip,i)||0},_invalidColour:function(t,e,i){var s=t.css(e);return!s||i&&s===t.css(i)||gt.test(s)?I:s},_parseColours:function(t){var e=this.qtip.elements,i=this.element.css("cssText",""),o=lt+y(t[t.precedance])+y(ct),n=this._useTitle(t)&&e.titlebar||e.content,r=this._invalidColour,a=[];return a[0]=r(i,dt)||r(n,dt)||r(e.content,dt)||r(e.tooltip,dt)||i.css(dt),a[1]=r(i,o,ct)||r(n,o,ct)||r(e.content,o,ct)||r(e.tooltip,o,ct)||e.tooltip.css(o),s("*",i).add(i).css("cssText",dt+":"+pt+ut+";"+lt+":0"+ut+";"),a},_calculateSize:function(t){var e,i,s,o=t.precedance===S,n=this.options.width,r=this.options.height,a="c"===t.abbrev(),h=(o?n:r)*(a?.5:1),l=Math.pow,c=Math.round,d=Math.sqrt(l(h,2)+l(r,2)),p=[this.border/h*d,this.border/r*d];return p[2]=Math.sqrt(l(p[0],2)-l(this.border,2)),p[3]=Math.sqrt(l(p[1],2)-l(this.border,2)),e=d+p[2]+p[3]+(a?0:p[0]),i=e/d,s=[c(i*n),c(i*r)],o?s:s.reverse()},_calculateTip:function(t,e,i){i=i||1,e=e||this.size;var s=e[0]*i,o=e[1]*i,n=Math.ceil(s/2),r=Math.ceil(o/2),a={br:[0,0,s,o,s,0],bl:[0,0,s,0,0,o],tr:[0,o,s,0,s,o],tl:[0,0,0,o,s,o],tc:[0,o,n,0,s,o],bc:[0,0,s,0,n,o],rc:[0,0,s,r,0,o],lc:[s,0,s,o,0,r]};return a.lt=a.br,a.rt=a.bl,a.lb=a.tr,a.rb=a.tl,a[t.abbrev()]},_drawCoords:function(t,e){t.beginPath(),t.moveTo(e[0],e[1]),t.lineTo(e[2],e[3]),t.lineTo(e[4],e[5]),t.closePath()},create:function(){var t=this.corner=(ft||st.ie)&&this._parseCorner(this.options.corner);return(this.enabled=!!this.corner&&"c"!==this.corner.abbrev())&&(this.qtip.cache.corner=t.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(e,i){if(!this.enabled)return this;var o,n,r,a,h,l,c,d,p=this.qtip.elements,u=this.element,f=u.children(),g=this.options,m=this.size,v=g.mimic,y=Math.round;e||(e=this.qtip.cache.corner||this.corner),v===I?v=e:(v=new j(v),v.precedance=e.precedance,"inherit"===v.x?v.x=e.x:"inherit"===v.y?v.y=e.y:v.x===v.y&&(v[e.precedance]=e[e.precedance])),n=v.precedance,e.precedance===E?this._swapDimensions():this._resetDimensions(),o=this.color=this._parseColours(e),o[1]!==pt?(d=this.border=this._parseWidth(e,e[e.precedance]),g.border&&d<1&&!gt.test(o[1])&&(o[0]=o[1]),this.border=d=g.border!==W?g.border:d):this.border=d=0,c=this.size=this._calculateSize(e),u.css({width:c[0],height:c[1],lineHeight:c[1]+"px"}),l=e.precedance===S?[y(v.x===D?d:v.x===F?c[0]-m[0]-d:(c[0]-m[0])/2),y(v.y===P?c[1]-m[1]:0)]:[y(v.x===D?c[0]-m[0]:0),y(v.y===P?d:v.y===B?c[1]-m[1]-d:(c[1]-m[1])/2)],ft?(r=f[0].getContext("2d"),r.restore(),r.save(),r.clearRect(0,0,6e3,6e3),a=this._calculateTip(v,m,wt),h=this._calculateTip(v,this.size,wt),f.attr(A,c[0]*wt).attr(L,c[1]*wt),f.css(A,c[0]).css(L,c[1]),this._drawCoords(r,h),r.fillStyle=o[1],r.fill(),r.translate(l[0]*wt,l[1]*wt),this._drawCoords(r,a),r.fillStyle=o[0],r.fill()):(a=this._calculateTip(v),a="m"+a[0]+","+a[1]+" l"+a[2]+","+a[3]+" "+a[4]+","+a[5]+" xe",l[2]=d&&/^(r|b)/i.test(e.string())?8===st.ie?2:1:0,f.css({coordsize:c[0]+d+" "+(c[1]+d),antialias:""+(v.string().indexOf(N)>-1),left:l[0]-l[2]*Number(n===E),top:l[1]-l[2]*Number(n===S),width:c[0]+d,height:c[1]+d}).each(function(t){var e=s(this);e[e.prop?"prop":"attr"]({coordsize:c[0]+d+" "+(c[1]+d),path:a,fillcolor:o[0],filled:!!t,stroked:!t}).toggle(!(!d&&!t)),!t&&e.html(_t("stroke",'weight="'+2*d+'px" color="'+o[1]+'" miterlimit="1000" joinstyle="miter"'))})),t.opera&&setTimeout(function(){p.tip.css({display:"inline-block",visibility:"visible"})},1),i!==I&&this.calculate(e,c)},calculate:function(t,e){if(!this.enabled)return I;var i,o,n=this,r=this.qtip.elements,a=this.element,h=this.options.offset,l=(r.tooltip.hasClass("ui-widget"),
2
- {});return t=t||this.corner,i=t.precedance,e=e||this._calculateSize(t),o=[t.x,t.y],i===E&&o.reverse(),s.each(o,function(s,o){var a,c,d;o===N?(a=i===S?D:P,l[a]="50%",l[ht+"-"+a]=-Math.round(e[i===S?0:1]/2)+h):(a=n._parseWidth(t,o,r.tooltip),c=n._parseWidth(t,o,r.content),d=n._parseRadius(t),l[o]=Math.max(-n.border,s?c:h+(d>a?d:-a)))}),l[t[i]]-=e[i===E?0:1],a.css({margin:"",top:"",bottom:"",left:"",right:""}).css(l),l},reposition:function(t,e,s,o){function n(t,e,i,s,o){t===$&&c.precedance===e&&d[s]&&c[i]!==N?c.precedance=c.precedance===E?S:E:t!==$&&d[s]&&(c[e]=c[e]===N?d[s]>0?s:o:c[e]===s?o:s)}function r(t,e,o){c[t]===N?m[ht+"-"+e]=g[t]=a[ht+"-"+e]-d[e]:(h=a[o]!==i?[d[e],-a[e]]:[-d[e],a[e]],(g[t]=Math.max(h[0],h[1]))>h[0]&&(s[e]-=d[e],g[e]=I),m[a[o]!==i?o:e]=g[t])}if(this.enabled){var a,h,l=e.cache,c=this.corner.clone(),d=s.adjusted,p=e.options.position.adjust.method.split(" "),u=p[0],f=p[1]||p[0],g={left:I,top:I,x:0,y:0},m={};this.corner.fixed!==W&&(n(u,E,S,D,F),n(f,S,E,P,B),c.string()===l.corner.string()&&l.cornerTop===d.top&&l.cornerLeft===d.left||this.update(c,I)),a=this.calculate(c),a.right!==i&&(a.left=-a.right),a.bottom!==i&&(a.top=-a.bottom),a.user=this.offset,(g.left=u===$&&!!d.left)&&r(E,D,F),(g.top=f===$&&!!d.top)&&r(S,P,B),this.element.css(m).toggle(!(g.x&&g.y||c.x===N&&g.y||c.y===N&&g.x)),s.left-=a.left.charAt?a.user:u!==$||g.top||!g.left&&!g.top?a.left+this.border:0,s.top-=a.top.charAt?a.user:f!==$||g.left||!g.left&&!g.top?a.top+this.border:0,l.cornerLeft=d.left,l.cornerTop=d.top,l.corner=c.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),at=V.tip=function(t){return new _(t,t.options.style.tip)},at.initialize="render",at.sanitize=function(t){if(t.style&&"tip"in t.style){var e=t.style.tip;"object"!=typeof e&&(e=t.style.tip={corner:e}),/string|boolean/i.test(typeof e.corner)||(e.corner=W)}},z.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(t){this.size=[t.width,t.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},s.extend(W,q.defaults,{style:{tip:{corner:W,mimic:I,width:6,height:6,border:W,offset:0}}});var xt,Ct,qt="qtip-modal",Tt="."+qt;Ct=function(){function t(t){if(s.expr[":"].focusable)return s.expr[":"].focusable;var e,i,o,n=!isNaN(s.attr(t,"tabindex")),r=t.nodeName&&t.nodeName.toLowerCase();return"area"===r?(e=t.parentNode,i=e.name,!(!t.href||!i||"map"!==e.nodeName.toLowerCase())&&(o=s("img[usemap=#"+i+"]")[0],!!o&&o.is(":visible"))):/input|select|textarea|button|object/.test(r)?!t.disabled:"a"===r?t.href||n:n}function i(t){c.length<1&&t.length?t.not("body").blur():c.first().focus()}function o(t){if(h.is(":visible")){var e,o=s(t.target),a=n.tooltip,l=o.closest(G);e=l.length<1?I:parseInt(l[0].style.zIndex,10)>parseInt(a[0].style.zIndex,10),e||o.closest(G)[0]===a[0]||i(o),r=t.target===c[c.length-1]}}var n,r,a,h,l=this,c={};s.extend(l,{init:function(){return h=l.elem=s("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return I}}).hide(),s(e.body).bind("focusin"+Tt,o),s(e).bind("keydown"+Tt,function(t){n&&n.options.show.modal.escape&&27===t.keyCode&&n.hide(t)}),h.bind("click"+Tt,function(t){n&&n.options.show.modal.blur&&n.hide(t)}),l},update:function(e){n=e,c=e.options.show.modal.stealfocus!==I?e.tooltip.find("*").filter(function(){return t(this)}):[]},toggle:function(t,o,r){var c=(s(e.body),t.tooltip),d=t.options.show.modal,p=d.effect,u=o?"show":"hide",f=h.is(":visible"),g=s(Tt).filter(":visible:not(:animated)").not(c);return l.update(t),o&&d.stealfocus!==I&&i(s(":focus")),h.toggleClass("blurs",d.blur),o&&h.appendTo(e.body),h.is(":animated")&&f===o&&a!==I||!o&&g.length?l:(h.stop(W,I),s.isFunction(p)?p.call(h,o):p===I?h[u]():h.fadeTo(parseInt(r,10)||90,o?1:0,function(){o||h.hide()}),o||h.queue(function(t){h.css({left:"",top:""}),s(Tt).length||h.detach(),t()}),a=o,n.destroyed&&(n=k),l)}}),l.init()},Ct=new Ct,s.extend(x.prototype,{init:function(t){var e=t.tooltip;return this.options.on?(t.elements.overlay=Ct.elem,e.addClass(qt).css("z-index",q.modal_zindex+s(Tt).length),t._bind(e,["tooltipshow","tooltiphide"],function(t,i,o){var n=t.originalEvent;if(t.target===e[0])if(n&&"tooltiphide"===t.type&&/mouse(leave|enter)/.test(n.type)&&s(n.relatedTarget).closest(Ct.elem[0]).length)try{t.preventDefault()}catch(r){}else(!n||n&&"tooltipsolo"!==n.type)&&this.toggle(t,"tooltipshow"===t.type,o)},this._ns,this),t._bind(e,"tooltipfocus",function(t,i){if(!t.isDefaultPrevented()&&t.target===e[0]){var o=s(Tt),n=q.modal_zindex+o.length,r=parseInt(e[0].style.zIndex,10);Ct.elem[0].style.zIndex=n-1,o.each(function(){this.style.zIndex>r&&(this.style.zIndex-=1)}),o.filter("."+K).qtip("blur",t.originalEvent),e.addClass(K)[0].style.zIndex=n,Ct.update(i);try{t.preventDefault()}catch(a){}}},this._ns,this),void t._bind(e,"tooltiphide",function(t){t.target===e[0]&&s(Tt).filter(":visible").not(e).last().qtip("focus",t)},this._ns,this)):this},toggle:function(t,e,i){return t&&t.isDefaultPrevented()?this:void Ct.toggle(this.qtip,!!e,i)},destroy:function(){this.qtip.tooltip.removeClass(qt),this.qtip._unbind(this.qtip.tooltip,this._ns),Ct.toggle(this.qtip,I),delete this.qtip.elements.overlay}}),xt=V.modal=function(t){return new x(t,t.options.show.modal)},xt.sanitize=function(t){t.show&&("object"!=typeof t.show.modal?t.show.modal={on:!!t.show.modal}:"undefined"==typeof t.show.modal.on&&(t.show.modal.on=W))},q.modal_zindex=q.zindex-200,xt.initialize="render",z.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},s.extend(W,q.defaults,{show:{modal:{on:I,effect:W,blur:W,stealfocus:W,escape:W}}}),V.viewport=function(i,s,o,n,r,a,h){function l(t,e,i,o,n,r,a,h,l){var c=s[n],y=w[t],b=_[t],x=i===$,C=y===n?l:y===r?-l:-l/2,q=b===n?h:b===r?-h:-h/2,T=m[n]+v[n]-(u?0:p[n]),j=T-c,z=c+l-(a===A?f:g)-T,M=C-(w.precedance===t||y===w[e]?q:0)-(b===N?h/2:0);return x?(M=(y===n?1:-1)*C,s[n]+=j>0?j:z>0?-z:0,s[n]=Math.max(-p[n]+v[n],c-M,Math.min(Math.max(-p[n]+v[n]+(a===A?f:g),c+M),s[n],"center"===y?c-C:1e9))):(o*=i===O?2:0,j>0&&(y!==n||z>0)?(s[n]-=M+o,d.invert(t,n)):z>0&&(y!==r||j>0)&&(s[n]-=(y===N?-M:M)+o,d.invert(t,r)),s[n]<m&&-s[n]>z&&(s[n]=c,d=w.clone())),s[n]-c}var c,d,p,u,f,g,m,v,y=o.target,b=i.elements.tooltip,w=o.my,_=o.at,x=o.adjust,C=x.method.split(" "),q=C[0],T=C[1]||C[0],j=o.viewport,z=o.container,M=(i.cache,{left:0,top:0});return j.jquery&&y[0]!==t&&y[0]!==e.body&&"none"!==x.method?(p=z.offset()||M,u="static"===z.css("position"),c="fixed"===b.css("position"),f=j[0]===t?j.width():j.outerWidth(I),g=j[0]===t?j.height():j.outerHeight(I),m={left:c?0:j.scrollLeft(),top:c?0:j.scrollTop()},v=j.offset()||M,"shift"===q&&"shift"===T||(d=w.clone()),M={left:"none"!==q?l(E,S,q,x.x,D,F,A,n,a):0,top:"none"!==T?l(S,E,T,x.y,P,B,L,r,h):0,my:d}):M},V.polys={polygon:function(t,e){var i,s,o,n={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:I},r=0,a=[],h=1,l=1,c=0,d=0;for(r=t.length;r--;)i=[parseInt(t[--r],10),parseInt(t[r+1],10)],i[0]>n.position.right&&(n.position.right=i[0]),i[0]<n.position.left&&(n.position.left=i[0]),i[1]>n.position.bottom&&(n.position.bottom=i[1]),i[1]<n.position.top&&(n.position.top=i[1]),a.push(i);if(s=n.width=Math.abs(n.position.right-n.position.left),o=n.height=Math.abs(n.position.bottom-n.position.top),"c"===e.abbrev())n.position={left:n.position.left+n.width/2,top:n.position.top+n.height/2};else{for(;s>0&&o>0&&h>0&&l>0;)for(s=Math.floor(s/2),o=Math.floor(o/2),e.x===D?h=s:e.x===F?h=n.width-s:h+=Math.floor(s/2),e.y===P?l=o:e.y===B?l=n.height-o:l+=Math.floor(o/2),r=a.length;r--&&!(a.length<2);)c=a[r][0]-n.position.left,d=a[r][1]-n.position.top,(e.x===D&&c>=h||e.x===F&&c<=h||e.x===N&&(c<h||c>n.width-h)||e.y===P&&d>=l||e.y===B&&d<=l||e.y===N&&(d<l||d>n.height-l))&&a.splice(r,1);n.position={left:a[0][0],top:a[0][1]}}return n},rect:function(t,e,i,s){return{width:Math.abs(i-t),height:Math.abs(s-e),position:{left:Math.min(t,i),top:Math.min(e,s)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(t,e,i,s,o){var n=V.polys._angles[o.abbrev()],r=0===n?0:i*Math.cos(n*Math.PI),a=s*Math.sin(n*Math.PI);return{width:2*i-Math.abs(r),height:2*s-Math.abs(a),position:{left:t+r,top:e+a},adjustable:I}},circle:function(t,e,i,s){return V.polys.ellipse(t,e,i,i,s)}},V.svg=function(t,i,o){for(var n,r,a,h,l,c,d,p,u,f=(s(e),i[0]),g=s(f.ownerSVGElement),m=f.ownerDocument,v=(parseInt(i.css("stroke-width"),10)||0)/2;!f.getBBox;)f=f.parentNode;if(!f.getBBox||!f.parentNode)return I;switch(f.nodeName){case"ellipse":case"circle":p=V.polys.ellipse(f.cx.baseVal.value,f.cy.baseVal.value,(f.rx||f.r).baseVal.value+v,(f.ry||f.r).baseVal.value+v,o);break;case"line":case"polygon":case"polyline":for(d=f.points||[{x:f.x1.baseVal.value,y:f.y1.baseVal.value},{x:f.x2.baseVal.value,y:f.y2.baseVal.value}],p=[],c=-1,h=d.numberOfItems||d.length;++c<h;)l=d.getItem?d.getItem(c):d[c],p.push.apply(p,[l.x,l.y]);p=V.polys.polygon(p,o);break;default:p=f.getBBox(),p={width:p.width,height:p.height,position:{left:p.x,top:p.y}}}return u=p.position,g=g[0],g.createSVGPoint&&(r=f.getScreenCTM(),d=g.createSVGPoint(),d.x=u.left,d.y=u.top,a=d.matrixTransform(r),u.left=a.x,u.top=a.y),m!==e&&"mouse"!==t.position.target&&(n=s((m.defaultView||m.parentWindow).frameElement).offset(),n&&(u.left+=n.left,u.top+=n.top)),m=s(m),u.left+=m.scrollLeft(),u.top+=m.scrollTop(),p},V.imagemap=function(t,e,i,o){e.jquery||(e=s(e));var n,r,a,h,l,c=(e.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),d=s('img[usemap="#'+e.parent("map").attr("name")+'"]'),p=s.trim(e.attr("coords")),u=p.replace(/,$/,"").split(",");if(!d.length)return I;if("polygon"===c)h=V.polys.polygon(u,i);else{if(!V.polys[c])return I;for(a=-1,l=u.length,r=[];++a<l;)r.push(parseInt(u[a],10));h=V.polys[c].apply(this,r.concat(i))}return n=d.offset(),n.left+=Math.ceil((d.outerWidth(I)-d.width())/2),n.top+=Math.ceil((d.outerHeight(I)-d.height())/2),h.position.left+=n.left,h.position.top+=n.top,h};var jt,zt='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>';s.extend(C.prototype,{_scroll:function(){var e=this.qtip.elements.overlay;e&&(e[0].style.top=s(t).scrollTop()+"px")},init:function(i){var o=i.tooltip;s("select, object").length<1&&(this.bgiframe=i.elements.bgiframe=s(zt).appendTo(o),i._bind(o,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=s("<div/>",{id:R+"-rcontainer"}).appendTo(e.body),i.elements.overlay&&i.elements.overlay.addClass("qtipmodal-ie6fix")&&(i._bind(t,["scroll","resize"],this._scroll,this._ns,this),i._bind(o,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var t,e,i=this.qtip.tooltip,s={height:i.outerHeight(I),width:i.outerWidth(I)},o=this.qtip.plugins.tip,n=this.qtip.elements.tip;e=parseInt(i.css("borderLeftWidth"),10)||0,e={left:-e,top:-e},o&&n&&(t="x"===o.corner.precedance?[A,D]:[L,P],e[t[1]]-=n[t[0]]()),this.bgiframe.css(e).css(s)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var t,e,i,s,o=this.qtip.tooltip,n=this.qtip.options.style,r=this.qtip.options.position.container;return this.qtip.drawing=1,n.height&&o.css(L,n.height),n.width?o.css(A,n.width):(o.css(A,"").appendTo(this.redrawContainer),e=o.width(),e%2<1&&(e+=1),i=o.css("maxWidth")||"",s=o.css("minWidth")||"",t=(i+s).indexOf("%")>-1?r.width()/100:0,i=(i.indexOf("%")>-1?t:1)*parseInt(i,10)||e,s=(s.indexOf("%")>-1?t:1)*parseInt(s,10)||0,e=i+s?Math.min(Math.max(e,s),i):e,o.css(A,Math.round(e)).appendTo(r)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([t,this.qtip.tooltip],this._ns)}}),jt=V.ie6=function(t){return 6===st.ie?new C(t):I},jt.initialize="render",z.ie6={"^content|style$":function(){this.redraw()}}})}(window,document);
 
 
assets/scss/admin/donors.scss CHANGED
@@ -11,290 +11,343 @@
11
  // Donors Listing Page Style
12
  //--------------------------------------------------------------
13
  .give_forms_page_give-donors {
14
- .wrap > h2 {
15
- margin-bottom: 15px;
16
- }
17
-
18
- .nav-tab-wrapper .dashicons {
19
- position: relative;
20
- top:2px;
21
- margin: 0 3px 0 0;
22
- }
23
-
24
- #give-donors-filter {
25
- position: relative;
26
- p.search-box {
27
- margin: 0;
28
- }
29
- }
30
-
31
- #give-donors-search-filter {
32
- display: block;
33
- overflow: hidden;
34
- }
35
- }
36
-
37
- //--------------------------------------------------------------
38
- // Donor Styles
39
- //--------------------------------------------------------------
40
- #give-donor-card-wrapper {
41
- margin-left: -1px;
42
- z-index: 2;
43
- min-height: 200px;
44
-
45
-
46
- input {
47
- font-weight: normal;
48
- }
49
-
50
- .donor-section {
51
- border-bottom: 1px solid #eee;
52
- margin-bottom: 10px;
53
- }
54
-
55
- .donor-section table {
56
- margin-bottom: 0;
57
- }
58
-
59
- > div:first-child {
60
- padding-top: 20px;
61
- }
62
-
63
- > div:last-child {
64
- padding-bottom: 20px;
65
- border: none;
66
- }
67
-
68
- //AVATAR
69
- .avatar-wrap {
70
- padding: 0 15px 15px 0;
71
- text-align: center;
72
- float: left;
73
-
74
- img {
75
- border-radius: 3px;
76
  }
77
 
78
- }
79
-
80
- a.delete {
81
- text-decoration: none;
82
- color: #ff0000;
83
- margin-right: 5px;
84
- }
85
-
86
- //Donor Header (non-avatar content)
87
- .donor-bio-header {
88
-
89
- .donor-since {
90
- margin: 10px 0;
91
- font-size: 16px;
92
  }
93
 
94
- .donor-id {
95
- display: inline-block;
96
- font-size: 24px;
97
- font-weight: 600;
98
- margin-right: 10px;
99
  }
100
 
101
- .donor-name-wrap {
102
- display: inline-block;
103
- }
104
-
105
- .donor-edit-link {
106
- margin-bottom: 15px;
107
  }
108
 
109
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
- }
 
 
112
 
113
- .donor-main-wrapper {
114
- clear: both;
115
- margin: 0 0 20px;
116
 
117
- @media(max-width: 655px) {
118
- width: 100%;
119
- }
120
 
121
- table {
122
- margin: 0;
123
- }
124
 
125
- input {
126
- width: 200px;
127
- }
128
 
129
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
130
 
131
- //Donor Summary
132
- #donor-summary {
133
- padding: 0 20px;
134
-
135
- &:after {
136
- font-family: "dashicons";
137
- content: "\f110";
138
- position: absolute;
139
- top: 10px;
140
- right: 10px;
141
- font-size: 100px;
142
- color: #F0F0F0;
143
- z-index: 0;
144
- }
145
 
146
- }
147
- #give-donor-card-wrapper .donor-address-wrapper {
148
- width: 202px;
149
 
150
- span[data-key="line2"] {
151
- display: table;
152
- clear: both;
 
153
  }
154
- }
155
 
156
- #give-donor-card-wrapper .donor-address-wrapper select {
157
- width: 200px;
158
- }
159
 
160
- #give-donor-card-wrapper .donor-info {
161
- min-height: 185px;
162
- }
163
 
164
- #give-donor-card-wrapper .info-wrapper {
165
- min-height: 125px;
166
- }
167
 
168
- .donor-info .donor-name {
169
- font-size: 24px;
170
- font-weight: 600;
171
- }
172
 
173
- #disconnect-donor {
174
- font-size: 12px;
175
- font-weight: normal;
176
- text-decoration: none;
177
- }
178
 
179
- #view-user-profile {
180
- @extend #disconnect-donor;
181
- }
182
 
183
- #donor-edit-actions {
184
- text-align: center;
185
- margin-bottom: 20px;
186
- line-height: 28px;
187
- }
188
 
189
- #donor-edit-actions .button-secondary {
190
- margin-right: 10px;
191
- }
192
 
193
- #give-donor-card-wrapper .edit-item {
194
- display: none;
195
- }
196
 
197
- #give-donor-card-wrapper .give_user_search_results {
198
- left: 1px;
199
- top: 16px;
200
- }
201
 
202
- #give-donor-card-wrapper .give_user_search_results ul {
203
- width: 200px
204
- }
205
 
206
- #donor-stats-wrapper {
207
- margin: 0 auto;
208
- text-align: center;
209
- padding: 15px;
210
- ul {
211
- margin: 0;
212
- padding: 0;
213
- overflow: hidden;
214
- li {
215
- width: 50%;
216
- float: left;
217
- line-height: 22px;
218
- font-size: 14px;
219
- margin: 0;
220
- }
221
-
222
- }
223
-
224
- a {
225
- text-decoration: none;
226
- }
227
- }
228
 
229
- #donor-stats-wrapper .dashicons {
230
- color: #888;
231
- }
232
 
233
- #donor-tables-wrapper table {
234
- width: 100%;
235
- text-align: center;
236
- }
237
 
238
- #donor-tables-wrapper th {
239
- text-align: center;
240
- }
241
 
242
- #donor-tables-wrapper .donations tr > th:first-child,
243
- #donor-tables-wrapper .donations tr > td:first-child,
244
- #donor-tables-wrapper .emails tr > th:first-child,
245
- #donor-tables-wrapper .emails tr > td:first-child {
246
- text-align: left;
247
- }
248
 
249
- #donor-tables-wrapper .donations tr > td:only-child {
250
- text-align: center;
251
- }
252
 
253
- #donor-notes-wrapper {
254
- min-height: 50px;
255
- }
256
 
257
- .donor-notes-header span, .donor-notes-header img {
258
- font-weight: 600;
259
- line-height: 30px;
260
- vertical-align: middle;
261
- }
262
 
263
- .donor-note-input {
264
- width: 100%;
265
- margin-bottom: 5px;
266
- }
267
 
268
- // Donor Notes
269
- #give-donor-notes {
270
- div:nth-of-type(even) {
271
- background-color: #f9f9f9;
272
- }
273
- .donor-note-wrapper {
274
- border-bottom: 1px solid #f9f9f9;
275
- min-height: 38px;
276
- padding: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
277
 
278
- .note-content-wrap {
279
- padding: 10px 12px;
280
- line-height: 20px;
281
- font-size: 14px;
282
  }
283
 
284
- }
 
 
285
 
286
- .give-no-donor-notes {
287
- text-align: center;
288
- padding: 20px;
289
- }
290
 
291
- }
 
 
 
 
292
 
293
- .donor-note-wrapper span {
294
- display: block;
295
- }
 
 
296
 
297
- .delete-donor {
298
- text-align: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  }
300
 
11
  // Donors Listing Page Style
12
  //--------------------------------------------------------------
13
  .give_forms_page_give-donors {
14
+ .wrap > h2 {
15
+ margin-bottom: 15px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  }
17
 
18
+ .nav-tab-wrapper .dashicons {
19
+ position: relative;
20
+ top: 2px;
21
+ margin: 0 3px 0 0;
 
 
 
 
 
 
 
 
 
 
22
  }
23
 
24
+ #give-donors-filter {
25
+ position: relative;
26
+ p.search-box {
27
+ margin: 0;
28
+ }
29
  }
30
 
31
+ #give-donors-search-filter {
32
+ display: block;
33
+ overflow: hidden;
 
 
 
34
  }
35
 
36
+ //--------------------------------------------------------------
37
+ // Donor Styles
38
+ //--------------------------------------------------------------
39
+ #give-donor-card-wrapper {
40
+ margin-left: -1px;
41
+ z-index: 2;
42
+ min-height: 200px;
43
+
44
+ input {
45
+ font-weight: normal;
46
+ }
47
+
48
+ .donor-section {
49
+ border-bottom: 1px solid #eee;
50
+ margin-bottom: 10px;
51
+ }
52
+
53
+ .donor-section table {
54
+ margin-bottom: 0;
55
+ }
56
+
57
+ > div:first-child {
58
+ padding-top: 20px;
59
+ }
60
+
61
+ > div:last-child {
62
+ padding-bottom: 20px;
63
+ border: none;
64
+ }
65
+
66
+ //AVATAR
67
+ .avatar-wrap {
68
+ padding: 0 15px 15px 0;
69
+ text-align: center;
70
+ float: left;
71
+
72
+ img {
73
+ border-radius: 3px;
74
+ }
75
+
76
+ }
77
+
78
+ a.delete {
79
+ text-decoration: none;
80
+ color: #ff0000;
81
+ margin-right: 5px;
82
+ }
83
+
84
+ //Donor Header (non-avatar content)
85
+ .donor-bio-header {
86
+
87
+ .donor-since {
88
+ margin: 10px 0;
89
+ font-size: 16px;
90
+ }
91
+
92
+ .donor-id {
93
+ display: inline-block;
94
+ font-size: 24px;
95
+ font-weight: 600;
96
+ margin-right: 10px;
97
+ }
98
+
99
+ .donor-name-wrap {
100
+ display: inline-block;
101
+ }
102
+
103
+ .donor-edit-link {
104
+ margin-bottom: 15px;
105
+ }
106
+
107
+ }
108
+ }
109
 
110
+ .donor-main-wrapper {
111
+ clear: both;
112
+ margin: 0 0 20px;
113
 
114
+ @media(max-width: 655px) {
115
+ width: 100%;
116
+ }
117
 
118
+ table {
119
+ margin: 0;
120
+ }
121
 
122
+ input {
123
+ width: 200px;
124
+ }
125
 
126
+ }
 
 
127
 
128
+ //Donor Summary
129
+ #donor-summary {
130
+ padding: 0 20px;
131
+
132
+ &:after {
133
+ font-family: "dashicons";
134
+ content: "\f110";
135
+ position: absolute;
136
+ top: 10px;
137
+ right: 10px;
138
+ font-size: 100px;
139
+ color: #F0F0F0;
140
+ z-index: 0;
141
+ }
142
 
143
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
144
 
145
+ #give-donor-card-wrapper .donor-address-wrapper {
146
+ width: 202px;
 
147
 
148
+ span[data-key="line2"] {
149
+ display: table;
150
+ clear: both;
151
+ }
152
  }
 
153
 
154
+ #give-donor-card-wrapper .donor-address-wrapper select {
155
+ width: 200px;
156
+ }
157
 
158
+ #give-donor-card-wrapper .donor-info {
159
+ min-height: 185px;
160
+ }
161
 
162
+ #give-donor-card-wrapper .info-wrapper {
163
+ min-height: 125px;
164
+ }
165
 
166
+ .donor-info .donor-name {
167
+ font-size: 24px;
168
+ font-weight: 600;
169
+ }
170
 
171
+ #disconnect-donor {
172
+ font-size: 12px;
173
+ font-weight: normal;
174
+ text-decoration: none;
175
+ }
176
 
177
+ #view-user-profile {
178
+ @extend #disconnect-donor;
179
+ }
180
 
181
+ #donor-edit-actions {
182
+ text-align: center;
183
+ margin-bottom: 20px;
184
+ line-height: 28px;
185
+ }
186
 
187
+ #donor-edit-actions .button-secondary {
188
+ margin-right: 10px;
189
+ }
190
 
191
+ #give-donor-card-wrapper .edit-item {
192
+ display: none;
193
+ }
194
 
195
+ #give-donor-card-wrapper .give_user_search_results {
196
+ left: 1px;
197
+ top: 16px;
198
+ }
199
 
200
+ #give-donor-card-wrapper .give_user_search_results ul {
201
+ width: 200px
202
+ }
203
 
204
+ #donor-stats-wrapper {
205
+ margin: 0 auto;
206
+ text-align: center;
207
+ padding: 15px;
208
+ ul {
209
+ margin: 0;
210
+ padding: 0;
211
+ overflow: hidden;
212
+ li {
213
+ width: 50%;
214
+ float: left;
215
+ line-height: 22px;
216
+ font-size: 14px;
217
+ margin: 0;
218
+ }
219
+
220
+ }
221
+
222
+ a {
223
+ text-decoration: none;
224
+ }
225
+ }
226
 
227
+ #donor-stats-wrapper .dashicons {
228
+ color: #888;
229
+ }
230
 
231
+ #donor-tables-wrapper table {
232
+ width: 100%;
233
+ text-align: center;
234
+ }
235
 
236
+ #donor-tables-wrapper th {
237
+ text-align: center;
238
+ }
239
 
240
+ #donor-tables-wrapper .donations tr > th:first-child,
241
+ #donor-tables-wrapper .donations tr > td:first-child,
242
+ #donor-tables-wrapper .emails tr > th:first-child,
243
+ #donor-tables-wrapper .emails tr > td:first-child {
244
+ text-align: left;
245
+ }
246
 
247
+ #donor-tables-wrapper .donations tr > td:only-child {
248
+ text-align: center;
249
+ }
250
 
251
+ #donor-notes-wrapper {
252
+ min-height: 50px;
253
+ }
254
 
255
+ .donor-notes-header span, .donor-notes-header img {
256
+ font-weight: 600;
257
+ line-height: 30px;
258
+ vertical-align: middle;
259
+ }
260
 
261
+ .donor-note-input {
262
+ width: 100%;
263
+ margin-bottom: 5px;
264
+ }
265
 
266
+ // Donor Notes
267
+ #give-donor-notes {
268
+ div:nth-of-type(even) {
269
+ background-color: #f9f9f9;
270
+ }
271
+ .donor-note-wrapper {
272
+ border-bottom: 1px solid #f9f9f9;
273
+ min-height: 38px;
274
+ padding: 0;
275
+
276
+ .note-content-wrap {
277
+ padding: 10px 12px;
278
+ line-height: 20px;
279
+ font-size: 14px;
280
+ }
281
+
282
+ }
283
+
284
+ .give-no-donor-notes {
285
+ text-align: center;
286
+ padding: 20px;
287
+ }
288
 
 
 
 
 
289
  }
290
 
291
+ .donor-note-wrapper span {
292
+ display: block;
293
+ }
294
 
295
+ .delete-donor {
296
+ text-align: center;
297
+ }
 
298
 
299
+ .give-lock-block {
300
+ margin-left: -25px;
301
+ text-decoration: none;
302
+ font-size: 14px;
303
+ margin-right: 3px;
304
 
305
+ i {
306
+ color: #000000;
307
+ font-size: 14px;
308
+ }
309
+ }
310
 
311
+ /*
312
+ * Donor address metabox
313
+ */
314
+ #donor-address-wrapper {
315
+ .give-no-address-message {
316
+ margin: 0.5rem 1%;
317
+ line-height: 3.4em;
318
+ }
319
+
320
+ .add-new-address {
321
+ margin: 0.5rem 1% !important;
322
+ }
323
+
324
+ .add-new-address-form-hidden {
325
+ position: absolute;
326
+ right: 13px;
327
+ left: 13px;
328
+ top: 0;
329
+ visibility: hidden;
330
+ }
331
+
332
+ // Address meta-box
333
+ .all-address {
334
+ .address {
335
+ min-height: 146px;
336
+ border: 1px solid #dad9d9;
337
+ padding: 9px;
338
+ border-radius: 5px;
339
+ background-color: white;
340
+
341
+ .address-number-label {
342
+ color: gray;
343
+ cursor: default;
344
+ }
345
+
346
+ a {
347
+ text-decoration: none;
348
+ }
349
+ }
350
+ }
351
+ }
352
  }
353
 
assets/scss/admin/forms.scss CHANGED
@@ -142,7 +142,8 @@ div.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {
142
  margin-left: -5px;
143
  }
144
 
145
- .give_options_panel input[ type="text"] {
 
146
  padding: 5px;
147
  width: 100%;
148
  }
142
  margin-left: -5px;
143
  }
144
 
145
+ .give_options_panel input[ type="text"],
146
+ .give_options_panel input[ type="email"]{
147
  padding: 5px;
148
  width: 100%;
149
  }
assets/scss/admin/give-admin.scss CHANGED
@@ -9,7 +9,7 @@
9
  */
10
  @import '../frontend/mixins';
11
  @import '../frontend/variables';
12
- @import '../plugins/qtip';
13
  @import '../frontend/fonts';
14
  @import 'fonts';
15
  @import 'grids';
9
  */
10
  @import '../frontend/mixins';
11
  @import '../frontend/variables';
12
+ @import '../plugins/hint.min';
13
  @import '../frontend/fonts';
14
  @import 'fonts';
15
  @import 'grids';
assets/scss/admin/settings.scss CHANGED
@@ -13,132 +13,176 @@
13
 
14
  .give-settings-page {
15
 
16
- .give-settings-heading-sep {
17
- font-size:14px;
18
- line-height: 32px;
19
- width:15px;
20
- }
21
 
22
- .nav-tab-wrapper {
23
- margin-bottom: 5px;
24
- overflow: visible;
25
- }
26
 
27
- .cmb2-wrap .cmb-type-checkbox input[type="checkbox"] {
28
- display: block;
29
- margin-bottom: 5px;
30
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
- div.give-submit-wrap {
33
- margin: 20px 0;
34
- }
 
 
35
 
36
- .give_forms_page_give-payment-history .postbox .hndle {
37
- cursor: default;
38
- }
39
 
40
- .give-input-field {
41
- width: 25em;
 
 
 
 
42
  }
43
-
44
- table table input[type="text"] {
45
- width: 15em;
46
  }
 
47
  }
48
 
49
  .give-setting-tab-header {
50
- clear: both;
51
- overflow: hidden;
52
- margin: 30px 0;
53
 
54
- h2 {
55
- margin-top: 8px;
56
- }
 
 
 
 
57
  }
58
 
59
  .give-radio-inline {
60
- ul {
61
- margin-top: 0;
62
- }
63
 
64
- li {
65
- display: inline-block;
66
- margin: 0 0 0 15px;
67
- }
68
 
69
- li:first-child {
70
- margin-left: 0;
71
- }
72
  }
73
 
74
  // Tools page: fix ajax search user list hide bug
75
  .give-tools-setting-page .bulkactions {
76
- overflow: visible;
77
  }
78
 
79
  //Ugly but necessary to override WP core styles.
80
  .form-table td.give-radio-inline fieldset li > label {
81
- margin: 5px 0 0 !important;
82
  }
83
 
84
  p.give-field-description, .cmb2-metabox-description {
85
- color: #aaaaaa;
86
- font-style: italic;
87
- font-size: 13px !important;
88
  }
89
 
90
  .cmb-type-give-title label,
91
  .give-setting-tab-header h2 {
92
- float: left;
93
- display: inline-block;
94
- width: 220px;
95
- font-style: italic;
96
- color: #AAA;
97
- margin: 0;
98
- font-size: 14px;
99
  }
100
 
101
  .postbox-container #_give_donation_levels_repeat > .cmb-repeatable-grouping:not(:last-of-type) {
102
- border-bottom: 1px solid #e9e9e9;
103
- border-top: none;
104
  }
105
 
106
  .cmb-type-enabled-gateways .cmb-td > p:first-of-type {
107
- display: none;
108
  }
109
 
110
  // CMB2 Checkbox Revised Styles
111
  .cmb-type-checkbox .cmb-td {
112
- width: 80%;
113
- label {
114
- font-size: 13px;
115
- }
116
  }
117
 
118
  /* Responsive Settings Rows */
119
  .give_settings {
120
- .cmb2-wrap .cmb-row {
121
- display: table-row;
122
- > .cmb-th, > .cmb-td {
123
- display: table-cell;
124
- float: none;
125
- }
126
  }
 
127
  }
128
 
129
  /* Custom Title Separators */
130
  .cmb2-id-give-title {
131
- label {
132
- font-style: italic;
133
- color: #AAA;
134
- cursor: default;
135
- }
136
- > div.cmb-th {
137
- padding-bottom: 10px;
138
- }
139
- > div.cmb-td {
140
- padding-bottom: 5px;
141
- }
142
  }
143
 
144
  //--------------------------------------------------------------
@@ -146,19 +190,19 @@ p.give-field-description, .cmb2-metabox-description {
146
  //--------------------------------------------------------------
147
  .give-payment-gatways-list li.ui-sortable-handle {
148
 
149
- span.give-drag-handle {
150
- padding: 3px 4px 0 0;
151
- font-size: 15px;
152
- font-weight: normal;
153
- color: #bdbdbd;
154
- cursor: move;
155
-
156
- &:hover {
157
- color: #333;
158
- }
159
 
 
 
160
  }
161
 
 
 
162
  }
163
 
164
  //--------------------------------------------------------------
@@ -166,22 +210,98 @@ p.give-field-description, .cmb2-metabox-description {
166
  //--------------------------------------------------------------
167
 
168
  .give-email-tags-wrap {
169
- margin: 5px 0 0;
170
- code {
171
- font-style: normal;
172
- padding: 1px 2px;
173
- font-size: 12px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  }
175
- span {
176
- display: block;
177
- color: #AAA;
178
- font-style: italic;
179
- margin: 0 0 2px;
180
- font-size: 13px;
181
  }
182
- .give_price_tag {
183
- display: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  }
186
 
187
  //--------------------------------------------------------------
@@ -189,19 +309,19 @@ p.give-field-description, .cmb2-metabox-description {
189
  //--------------------------------------------------------------
190
 
191
  #system-info-textarea {
192
- width: 800px;
193
- height: 600px;
194
- font-family: Menlo, Monaco, monospace;
195
- background: #FFF;
196
- white-space: pre;
197
- overflow: auto;
198
- display: block;
199
- /*rtl:ignore*/
200
- direction: ltr;
201
  }
202
 
203
  #give-download-sysinfo {
204
- margin: 0;
205
  }
206
 
207
  //--------------------------------------------------------------
@@ -209,319 +329,318 @@ p.give-field-description, .cmb2-metabox-description {
209
  //--------------------------------------------------------------
210
 
211
  #api {
212
- .tablenav .actions {
213
- overflow: visible;
214
- }
215
  }
216
 
217
  a.give-delete {
218
- color: #a00;
219
  }
220
 
221
  //--------------------------------------------------------------
222
  // License
223
  //--------------------------------------------------------------
224
  .give-settings-wrap-licenses {
225
- .give-license-deactivate {
226
- margin: 1px 0 0 10px;
227
- height: 30px;
228
- }
229
-
230
- .give-license-field {
231
- background: #FFF url('../images/close.png') no-repeat;
232
- background-position: 98.5% center;
233
- background-size: 18px;
234
- }
235
-
236
- .give-license-active, .give-license-active:focus {
237
- background-image: url('../images/tick.png');
238
- background-color: #FFF;
239
- background-repeat: no-repeat;
240
- background-position: 98.5% center;
241
- outline: none;
242
- background-size: 16px;
243
- width: 100%;
244
- }
245
 
246
  }
247
 
248
  /* Addon grid design */
249
  .give-settings-page {
250
- .give-settings-wrap-licenses {
251
- display: block;
252
- position: relative;
253
- float: left;
254
- width: 30.5%;
255
- min-height: 180px;
256
- margin: 20px 1% 20px 0;
257
- }
258
-
259
- .give-license-key {
260
- label {
261
- margin: 0 0 0 10px;
262
- padding: 10px 0;
263
- display: block;
264
- font-size: 14px;
265
- font-weight: 600;
266
- cursor: default;
267
- }
268
- }
269
-
270
- .give-license-block {
271
- margin: 0 10px;
272
- }
273
-
274
- input[type="text"].give-license-field,
275
- input[type="password"].give-license-field {
276
- width: 100%;
277
- }
278
 
279
- .give-license-block input[type="submit"] {
280
- position: absolute;
281
- top: 3px;
282
- right: 10px;
283
- height: 24px;
284
- line-height: 22px;
285
- padding: 0 8px 1px;
286
- font-size: 11px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
287
  }
288
 
289
- //License status notice.
290
- .give-license-status-notice {
291
- background: #fff;
292
- border-left: 4px solid #fff;
293
- -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
294
- box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
295
- margin: 5px 0 2px;
296
- padding: 1px 12px;
297
-
298
- p {
299
- padding: 10px 0;
300
- margin: 0;
301
- }
302
-
303
- a {
304
- color: #444;
305
- cursor: pointer;
306
- &:hover {
307
- text-decoration: none;
308
- }
309
- }
310
-
311
- }
312
 
313
- .give-license-status-notice.give-license-expires-soon {
314
- border-color: #00a0d2;
315
- }
316
 
317
- //Inactive or Expired.
318
- .give-license-status-notice.give-inactive,
319
- .give-license-status-notice.give-license-expired {
320
- border-color: #e24e4e;
321
- }
322
 
323
- .give-license-status-notice.give-license-error,
324
- .give-license-status-notice.give-license-no_activations_left,
325
- .give-license-status-notice.give-license-missing,
326
- .give-license-status-notice.give-license-invalid,
327
- .give-license-status-notice.give-license-site_inactive,
328
- .give-license-status-notice.give-license-item_name_mismatch {
329
- border-color: orange;
330
- }
331
 
332
- .give-license-status-notice.give-license-lifetime-notice,
333
- .give-license-status-notice.give-license-expiration-date {
334
- border-color: #46b450;
335
- }
336
 
337
- .give-license-status-notice.give-license-expires-soon a:hover,
338
- .give-license-status-notice.give-license-expired a:hover {
339
- text-decoration: none;
340
- }
341
  }
342
 
343
  /* Responsive fixes: Addon grid design */
344
  @media screen and (max-width: 1100px) {
345
- .give-settings-page .give-settings-wrap-licenses {
346
- width: 45%;
347
- min-height: 150px;
348
- }
349
  }
350
 
351
  @media screen and (max-width: 600px) {
352
- .give-settings-page .give-settings-wrap-licenses {
353
- width: 100%;
354
- max-width: 320px;
355
- }
356
  }
357
 
358
  /* Tables */
359
 
360
  .give-table {
361
 
362
- thead {
363
- th {
364
- padding: 8px 10px !important;
365
- }
366
  }
 
367
 
368
  }
369
 
370
  //Fix double <hr>s for change to `give_title` in 1.3.5
371
  .give_settings .cmb-td hr + hr {
372
- display: none;
373
  }
374
 
375
  //Set a min-height for TinyMCE so it's not too small when hidden in a tab and then revealed
376
  .post-type-give_forms .mce-container iframe, .post-type-give_forms .wp-editor-area {
377
- min-height: 400px;
378
  }
379
 
380
  // Widget Page
381
  .give-field-description {
382
- color: #aaaaaa;
383
- font-style: italic;
384
- margin: 0;
385
- padding-top: .5em;
386
  }
387
 
388
  // Setting page tab
389
  h2.give-nav-tab-wrapper {
390
- overflow: hidden;
391
- height: 35px;
392
  }
393
 
394
  @media screen and (max-width: 600px) {
395
- .give-nav-tab-wrapper {
396
- position: relative;
397
- padding-top: 0 !important;
398
-
399
- > a {
400
- width: 100%;
401
- box-sizing: border-box;
402
- margin: 0;
403
- background-color: #ffffff;
404
- border: 1px solid #cccccc;
405
- &:hover {
406
- border-bottom: 1px solid #ccc;
407
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  }
409
 
410
- div.give-sub-nav-tab-wrapper {
411
- position: absolute;
412
- top: 0;
413
- right: 0;
414
-
415
- #give-show-sub-nav {
416
- height: 28px;
417
- width: 30px;
418
- border-radius: 0;
419
- margin: 0;
420
- > span.dashicons {
421
- margin: 6px auto 0;
422
- display: block;
423
- }
424
-
425
- }
426
-
427
- nav.give-sub-nav-tab {
428
- top: 35px;
429
- right: 0;
430
- left: auto;
431
-
432
- a {
433
- background: #ffffff;
434
- &:hover {
435
- background: #e5e5e5;
436
- }
437
- }
438
-
439
- }
440
- }
441
 
442
- }
 
 
 
443
 
444
- .give-mobile-hidden {
445
- display: none;
 
 
 
 
 
446
  }
 
 
 
 
 
 
447
  }
448
 
449
  .give-sub-nav-tab-wrapper {
450
- position: relative;
451
- display: inline-block;
452
- z-index: 9999;
453
- float: left;
454
 
455
- nav.give-sub-nav-tab {
456
- border: 1px solid #ccc;
457
- border-bottom: 0;
458
- position: absolute;
459
- top: 35px;
460
- left: 0;
461
 
462
- a {
463
- float: left;
464
- background: #e5e5e5;
465
- padding: 6px 10px;
466
- clear: both;
467
- text-decoration: none;
468
- border-bottom: 1px solid #ccc;
469
- min-width: 170px;
470
- color: #555;
471
- font-size: 14px;
472
- }
473
 
474
- a:hover {
475
- background: #ffffff;
476
- }
477
  }
 
478
  }
479
 
480
  // By default hide setting tab wrapper.
481
  .give-sub-nav-tab-wrapper {
482
- display: none;
483
  }
484
 
485
  #give-show-sub-nav {
486
- text-decoration: none;
487
- padding: 3px 4px;
488
- border-bottom: 1px solid #ccc;
489
- line-height: 0;
490
- background: white;
491
- border-radius: 4px;
492
- margin-top: 5px;
493
-
494
- > span.dashicons {
495
- font-size: 16px;
496
- height: 16px;
497
- width: 16px;
498
- }
499
  }
500
 
501
  #give-show-sub-nav:hover, #give-show-sub-nav:active {
502
- outline: none;
503
- box-shadow: inset 0px 0px 4px #ddd;
504
  }
505
 
506
  //--------------------------------------------------------------
507
  // Image preview container
508
  //--------------------------------------------------------------
509
  .give-image-thumb {
510
- position: relative;
511
- margin-top: 14px;
512
-
513
- span.give-delete-image-thumb {
514
- position: absolute;
515
- background: red;
516
- color: white;
517
- border-radius: 30px;
518
- left: -10px;
519
- top: -10px;
520
- cursor: pointer;
521
- }
522
-
523
- img {
524
- max-width: 250px;
525
- border: 4px solid white;
526
- }
527
  }
13
 
14
  .give-settings-page {
15
 
16
+ .give-settings-heading-sep {
17
+ font-size: 14px;
18
+ line-height: 32px;
19
+ width: 15px;
20
+ }
21
 
22
+ .nav-tab-wrapper {
23
+ margin-bottom: 5px;
24
+ overflow: visible;
25
+ }
26
 
27
+ .cmb2-wrap .cmb-type-checkbox input[type="checkbox"] {
28
+ display: block;
29
+ margin-bottom: 5px;
30
+ }
31
+
32
+ div.give-submit-wrap {
33
+ margin: 20px 0;
34
+ }
35
+
36
+ .give_forms_page_give-payment-history .postbox .hndle {
37
+ cursor: default;
38
+ }
39
+
40
+ .give-input-field {
41
+ width: 25em;
42
+ }
43
+
44
+ table table input[type="text"] {
45
+ width: 15em;
46
+ }
47
+
48
+ .give-repeat-setting-field {
49
+ margin: 10px 0;
50
+ }
51
+
52
+ .give-remove-setting-field {
53
+ width: 25px;
54
+ height: 25px;
55
+ padding: 0;
56
+ text-align: center;
57
+ line-height: 22px;
58
+ font-size: 21px;
59
+ font-weight: 300;
60
+ cursor: pointer;
61
+ margin-left: 20px;
62
+ display: inline-block;
63
+ }
64
 
65
+ .give-remove-setting-field:hover {
66
+ background-color: red;
67
+ color: white;
68
+ border-radius: 30px;
69
+ }
70
 
71
+ .give-forminp p:first-child .give-remove-setting-field {
72
+ display: none;
73
+ }
74
 
75
+ .export-options-table {
76
+ tr.give-import-option:nth-child(odd) {
77
+ background: #f4f3f3;
78
+ th {
79
+ vertical-align: middle;
80
+ }
81
  }
82
+ .give-import-dropdown:nth-child(2),
83
+ tr.give-import-option th:first-child {
84
+ width: 250px;
85
  }
86
+ }
87
  }
88
 
89
  .give-setting-tab-header {
90
+ clear: both;
91
+ overflow: hidden;
92
+ margin: 30px 0;
93
 
94
+ h2 {
95
+ margin-top: 8px;
96
+ }
97
+
98
+ p {
99
+ margin-bottom: 0;
100
+ }
101
  }
102
 
103
  .give-radio-inline {
104
+ ul {
105
+ margin-top: 0;
106
+ }
107
 
108
+ li {
109
+ display: inline-block;
110
+ margin: 0 0 0 15px;
111
+ }
112
 
113
+ li:first-child {
114
+ margin-left: 0;
115
+ }
116
  }
117
 
118
  // Tools page: fix ajax search user list hide bug
119
  .give-tools-setting-page .bulkactions {
120
+ overflow: visible;
121
  }
122
 
123
  //Ugly but necessary to override WP core styles.
124
  .form-table td.give-radio-inline fieldset li > label {
125
+ margin: 5px 0 0 !important;
126
  }
127
 
128
  p.give-field-description, .cmb2-metabox-description {
129
+ color: #aaaaaa;
130
+ font-style: italic;
131
+ font-size: 13px !important;
132
  }
133
 
134
  .cmb-type-give-title label,
135
  .give-setting-tab-header h2 {
136
+ float: left;
137
+ display: inline-block;
138
+ width: 220px;
139
+ font-style: italic;
140
+ color: #AAA;
141
+ margin: 0;
142
+ font-size: 14px;
143
  }
144
 
145
  .postbox-container #_give_donation_levels_repeat > .cmb-repeatable-grouping:not(:last-of-type) {
146
+ border-bottom: 1px solid #e9e9e9;
147
+ border-top: none;
148
  }
149
 
150
  .cmb-type-enabled-gateways .cmb-td > p:first-of-type {
151
+ display: none;
152
  }
153
 
154
  // CMB2 Checkbox Revised Styles
155
  .cmb-type-checkbox .cmb-td {
156
+ width: 80%;
157
+ label {
158
+ font-size: 13px;
159
+ }
160
  }
161
 
162
  /* Responsive Settings Rows */
163
  .give_settings {
164
+ .cmb2-wrap .cmb-row {
165
+ display: table-row;
166
+ > .cmb-th, > .cmb-td {
167
+ display: table-cell;
168
+ float: none;
 
169
  }
170
+ }
171
  }
172
 
173
  /* Custom Title Separators */
174
  .cmb2-id-give-title {
175
+ label {
176
+ font-style: italic;
177
+ color: #AAA;
178
+ cursor: default;
179
+ }
180
+ > div.cmb-th {
181
+ padding-bottom: 10px;
182
+ }
183
+ > div.cmb-td {
184
+ padding-bottom: 5px;
185
+ }
186
  }
187
 
188
  //--------------------------------------------------------------
190
  //--------------------------------------------------------------
191
  .give-payment-gatways-list li.ui-sortable-handle {
192
 
193
+ span.give-drag-handle {
194
+ padding: 3px 4px 0 0;
195
+ font-size: 15px;
196
+ font-weight: normal;
197
+ color: #bdbdbd;
198
+ cursor: move;
 
 
 
 
199
 
200
+ &:hover {
201
+ color: #333;
202
  }
203
 
204
+ }
205
+
206
  }
207
 
208
  //--------------------------------------------------------------
210
  //--------------------------------------------------------------
211
 
212
  .give-email-tags-wrap {
213
+ margin: 5px 0 0;
214
+ code {
215
+ font-style: normal;
216
+ padding: 1px 2px;
217
+ font-size: 12px;
218
+ }
219
+ span {
220
+ display: block;
221
+ color: #AAA;
222
+ font-style: italic;
223
+ margin: 0 0 2px;
224
+ font-size: 13px;
225
+ }
226
+ .give_price_tag {
227
+ display: none;
228
+ }
229
+ }
230
+
231
+ .give-settings-email-settings-section {
232
+ // Nothing in table nav so hide it.
233
+ .tablenav {
234
+ display: none;
235
+ }
236
+ .give-setting-tab-header-emails {
237
+ margin: 0 0 20px;
238
+ hr {
239
+ display: none;
240
  }
241
+ }
242
+ .tablenav.bottom + .give-setting-tab-header-emails {
243
+ margin: 20px 0;
244
+ hr {
245
+ display: block;
 
246
  }
247
+ }
248
+
249
+ }
250
+
251
+ // Email notification list.
252
+ .giveemailnotifications {
253
+ .check-column {
254
+ padding: 13px 10px 0 20px !important;
255
+ }
256
+
257
+ td.check-column input {
258
+ //width: 1em;
259
+ display: none;
260
+ }
261
+
262
+ th.check-column {
263
+ .give-email-notification-status {
264
+ color: white;
265
+ cursor: pointer;
266
+
267
+ &[data-edit="1"] i.dashicons {
268
+ border-radius: 1em;
269
+ padding: 2px;
270
+ }
271
  }
272
+
273
+ .give-email-notification-enabled .dashicons-yes,
274
+ .give-email-notification-disabled:hover .dashicons-no-alt {
275
+ background: #46b450;
276
+ }
277
+
278
+ .give-email-notification-enabled .dashicons-lock {
279
+ color: #46b450;
280
+ }
281
+
282
+ .give-email-notification-disabled .dashicons-no-alt,
283
+ .give-email-notification-enabled:hover .dashicons-yes {
284
+ background: #bbbbbb;
285
+ }
286
+
287
+ .give-email-notification-disabled .dashicons-lock {
288
+ color: #bbbbbb;
289
+ }
290
+
291
+ .dashicons-no-alt:hover:before {
292
+ content: "\f147" !important;
293
+ }
294
+
295
+ .dashicons-yes:hover:before {
296
+ content: "\f335" !important;
297
+ }
298
+ }
299
+
300
+ .spinner.is-active {
301
+ margin: 0 0 0 2px;
302
+ float: none;
303
+ }
304
+
305
  }
306
 
307
  //--------------------------------------------------------------
309
  //--------------------------------------------------------------
310
 
311
  #system-info-textarea {
312
+ width: 800px;
313
+ height: 600px;
314
+ font-family: Menlo, Monaco, monospace;
315
+ background: #FFF;
316
+ white-space: pre;
317
+ overflow: auto;
318
+ display: block;
319
+ /*rtl:ignore*/
320
+ direction: ltr;
321
  }
322
 
323
  #give-download-sysinfo {
324
+ margin: 0;
325
  }
326
 
327
  //--------------------------------------------------------------
329
  //--------------------------------------------------------------
330
 
331
  #api {
332
+ .tablenav .actions {
333
+ overflow: visible;
334
+ }
335
  }
336
 
337
  a.give-delete {
338
+ color: #a00;
339
  }
340
 
341
  //--------------------------------------------------------------
342
  // License
343
  //--------------------------------------------------------------
344
  .give-settings-wrap-licenses {
345
+ .give-license-deactivate {
346
+ margin: 1px 0 0 10px;
347
+ height: 30px;
348
+ }
349
+
350
+ .give-license-field {
351
+ background: #FFF url('../images/close.png') no-repeat;
352
+ background-position: 98.5% center;
353
+ background-size: 18px;
354
+ }
355
+
356
+ .give-license-active, .give-license-active:focus {
357
+ background-image: url('../images/tick.png');
358
+ background-color: #FFF;
359
+ background-repeat: no-repeat;
360
+ background-position: 98.5% center;
361
+ outline: none;
362
+ background-size: 16px;
363
+ width: 100%;
364
+ }
365
 
366
  }
367
 
368
  /* Addon grid design */
369
  .give-settings-page {
370
+ .give-settings-wrap-licenses {
371
+ display: block;
372
+ position: relative;
373
+ float: left;
374
+ width: 30.5%;
375
+ min-height: 180px;
376
+ margin: 20px 1% 20px 0;
377
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
378
 
379
+ .give-license-key {
380
+ label {
381
+ margin: 0 0 0 10px;
382
+ padding: 10px 0;
383
+ display: block;
384
+ font-size: 14px;
385
+ font-weight: 600;
386
+ cursor: default;
387
+ }
388
+ }
389
+
390
+ .give-license-block {
391
+ margin: 0 10px;
392
+ }
393
+
394
+ input[type="text"].give-license-field,
395
+ input[type="password"].give-license-field {
396
+ width: 100%;
397
+ }
398
+
399
+ .give-license-block input[type="submit"] {
400
+ position: absolute;
401
+ top: 3px;
402
+ right: 10px;
403
+ height: 24px;
404
+ line-height: 22px;
405
+ padding: 0 8px 1px;
406
+ font-size: 11px;
407
+ }
408
+
409
+ //License status notice.
410
+ .give-license-status-notice {
411
+ background: #fff;
412
+ border-left: 4px solid #fff;
413
+ -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
414
+ box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
415
+ margin: 5px 0 2px;
416
+ padding: 1px 12px;
417
+
418
+ p {
419
+ padding: 10px 0;
420
+ margin: 0;
421
+ }
422
+
423
+ a {
424
+ color: #444;
425
+ cursor: pointer;
426
+ &:hover {
427
+ text-decoration: none;
428
+ }
429
  }
430
 
431
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
432
 
433
+ .give-license-status-notice.give-license-expires-soon {
434
+ border-color: #00a0d2;
435
+ }
436
 
437
+ //Inactive or Expired.
438
+ .give-license-status-notice.give-inactive,
439
+ .give-license-status-notice.give-license-expired {
440
+ border-color: #e24e4e;
441
+ }
442
 
443
+ .give-license-status-notice.give-license-error,
444
+ .give-license-status-notice.give-license-no_activations_left,
445
+ .give-license-status-notice.give-license-missing,
446
+ .give-license-status-notice.give-license-invalid,
447
+ .give-license-status-notice.give-license-site_inactive,
448
+ .give-license-status-notice.give-license-item_name_mismatch {
449
+ border-color: orange;
450
+ }
451
 
452
+ .give-license-status-notice.give-license-lifetime-notice,
453
+ .give-license-status-notice.give-license-expiration-date {
454
+ border-color: #46b450;
455
+ }
456
 
457
+ .give-license-status-notice.give-license-expires-soon a:hover,
458
+ .give-license-status-notice.give-license-expired a:hover {
459
+ text-decoration: none;
460
+ }
461
  }
462
 
463
  /* Responsive fixes: Addon grid design */
464
  @media screen and (max-width: 1100px) {
465
+ .give-settings-page .give-settings-wrap-licenses {
466
+ width: 45%;
467
+ min-height: 150px;
468
+ }
469
  }
470
 
471
  @media screen and (max-width: 600px) {
472
+ .give-settings-page .give-settings-wrap-licenses {
473
+ width: 100%;
474
+ max-width: 320px;
475
+ }
476
  }
477
 
478
  /* Tables */
479
 
480
  .give-table {
481
 
482
+ thead {
483
+ th {
484
+ padding: 8px 10px !important;
 
485
  }
486
+ }
487
 
488
  }
489
 
490
  //Fix double <hr>s for change to `give_title` in 1.3.5
491
  .give_settings .cmb-td hr + hr {
492
+ display: none;
493
  }
494
 
495
  //Set a min-height for TinyMCE so it's not too small when hidden in a tab and then revealed
496
  .post-type-give_forms .mce-container iframe, .post-type-give_forms .wp-editor-area {
497
+ min-height: 400px;
498
  }
499
 
500
  // Widget Page
501
  .give-field-description {
502
+ color: #aaaaaa;
503
+ font-style: italic;
504
+ margin: 0;
505
+ padding-top: .5em;
506
  }
507
 
508
  // Setting page tab
509
  h2.give-nav-tab-wrapper {
510
+ overflow: hidden;
511
+ height: 35px;
512
  }
513
 
514
  @media screen and (max-width: 600px) {
515
+ .give-nav-tab-wrapper {
516
+ position: relative;
517
+ padding-top: 0 !important;
518
+
519
+ > a {
520
+ width: 100%;
521
+ box-sizing: border-box;
522
+ margin: 0;
523
+ background-color: #ffffff;
524
+ border: 1px solid #cccccc;
525
+ &:hover {
526
+ border-bottom: 1px solid #ccc;
527
+ }
528
+ }
529
+
530
+ div.give-sub-nav-tab-wrapper {
531
+ position: absolute;
532
+ top: 0;
533
+ right: 0;
534
+
535
+ #give-show-sub-nav {
536
+ height: 28px;
537
+ width: 30px;
538
+ border-radius: 0;
539
+ margin: 0;
540
+ > span.dashicons {
541
+ margin: 6px auto 0;
542
+ display: block;
543
  }
544
 
545
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
546
 
547
+ nav.give-sub-nav-tab {
548
+ top: 35px;
549
+ right: 0;
550
+ left: auto;
551
 
552
+ a {
553
+ background: #ffffff;
554
+ &:hover {
555
+ background: #e5e5e5;
556
+ }
557
+ }
558
+ }
559
  }
560
+
561
+ }
562
+
563
+ .give-mobile-hidden {
564
+ display: none;
565
+ }
566
  }
567
 
568
  .give-sub-nav-tab-wrapper {
569
+ position: relative;
570
+ display: inline-block;
571
+ z-index: 9999;
572
+ float: left;
573
 
574
+ nav.give-sub-nav-tab {
575
+ border: 1px solid #ccc;
576
+ border-bottom: 0;
577
+ position: absolute;
578
+ top: 35px;
579
+ right: 0;
580
 
581
+ a {
582
+ float: left;
583
+ background: white;
584
+ padding: 6px 10px;
585
+ clear: both;
586
+ text-decoration: none;
587
+ border-bottom: 1px solid #ccc;
588
+ min-width: 170px;
589
+ color: #555;
590
+ font-size: 14px;
591
+ }
592
 
593
+ a:hover {
594
+ background: #ffffff;
 
595
  }
596
+ }
597
  }
598
 
599
  // By default hide setting tab wrapper.
600
  .give-sub-nav-tab-wrapper {
601
+ display: none;
602
  }
603
 
604
  #give-show-sub-nav {
605
+ text-decoration: none;
606
+ padding: 3px 4px;
607
+ border-bottom: 1px solid #ccc;
608
+ line-height: 0;
609
+ background: white;
610
+ border-radius: 4px;
611
+ margin-top: 5px;
612
+
613
+ > span.dashicons {
614
+ font-size: 16px;
615
+ height: 16px;
616
+ width: 16px;
617
+ }
618
  }
619
 
620
  #give-show-sub-nav:hover, #give-show-sub-nav:active {
621
+ outline: none;
622
+ box-shadow: inset 0px 0px 4px #ddd;
623
  }
624
 
625
  //--------------------------------------------------------------
626
  // Image preview container
627
  //--------------------------------------------------------------
628
  .give-image-thumb {
629
+ position: relative;
630
+ margin-top: 14px;
631
+
632
+ span.give-delete-image-thumb {
633
+ position: absolute;
634
+ background: red;
635
+ color: white;
636
+ border-radius: 30px;
637
+ left: -10px;
638
+ top: -10px;
639
+ cursor: pointer;
640
+ }
641
+
642
+ img {
643
+ max-width: 250px;
644
+ border: 4px solid white;
645
+ }
646
  }
assets/scss/admin/util.scss CHANGED
@@ -6,6 +6,8 @@
6
  width: 95%;
7
  border-radius: 4px;
8
  overflow: hidden;
 
 
9
  > div {
10
  height: 100%;
11
  width: 0;
@@ -39,4 +41,37 @@
39
 
40
  .admin-color-sunrise .give-progress div {
41
  background: #dd823b;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  }
6
  width: 95%;
7
  border-radius: 4px;
8
  overflow: hidden;
9
+ background-color: whitesmoke;
10
+
11
  > div {
12
  height: 100%;
13
  width: 0;
41
 
42
  .admin-color-sunrise .give-progress div {
43
  background: #dd823b;
44
+ }
45
+
46
+
47
+ /**
48
+ * Spinner
49
+ */
50
+ .give-spinner-wrapper{
51
+ position: absolute;
52
+ left: 0;
53
+ right: 0;
54
+ bottom: 0;
55
+ top: 0;
56
+ background: rgba(245, 245, 245, 0.57);
57
+ z-index: 1;
58
+ display: none;
59
+
60
+ &.is-active{
61
+ display: inline-block;
62
+ }
63
+
64
+ .aligncenter{
65
+ position: absolute;
66
+ top: 50%;
67
+ left: 50%;
68
+ margin: 10px 10px 0 0;
69
+ }
70
+ }
71
+
72
+ .give-spinner {
73
+ &.spinner.is-active{
74
+ margin: 0 0 0 2px;
75
+ float: none;
76
+ }
77
  }
assets/scss/frontend/float-labels.scss CHANGED
@@ -1,41 +1,42 @@
1
  #{fl(parent)}.#{fl(prefix)}form.#{fl(prefix)}style-give {
2
- input.#{fl(prefix)}input,
3
- select.#{fl(prefix)}select,
4
- textarea.#{fl(prefix)}textarea {
5
- line-height: inherit;
6
- padding: 12px;
7
- }
8
- select.#{fl(prefix)}select {
9
- line-height: inherit;
10
- }
11
- .#{fl(prefix)}is-active input.#{fl(prefix)}input,
12
- .#{fl(prefix)}is-active select.#{fl(prefix)}select,
13
- .#{fl(prefix)}is-active textarea.#{fl(prefix)}textarea {
14
- padding: 20px 12px 4px;
15
- transition: padding fl(transition-speed) fl(transition-easing),
16
- border fl(transition-speed) fl(transition-easing);
17
- }
18
- label.#{fl(prefix)}label {
19
- top: fl(border-width);
20
- left: 13px;
21
- right: 0;
22
- padding: 6px 0 0;
23
- }
24
- .#{fl(prefix)}is-required:before {
25
- padding-top: 12px;
26
- }
27
- label.#{fl(prefix)}label .give-required-indicator {
28
- display: none;
29
- }
30
- label.#{fl(prefix)}label .give-tooltip {
31
- position: absolute;
32
- top: 0;
33
- width: 100%;
34
- height: 100%;
35
- margin: 0;
36
- z-index: 1;
37
- &::before {
38
- content: unset;
39
- }
40
  }
 
41
  }
1
  #{fl(parent)}.#{fl(prefix)}form.#{fl(prefix)}style-give {
2
+ input.#{fl(prefix)}input,
3
+ select.#{fl(prefix)}select,
4
+ textarea.#{fl(prefix)}textarea {
5
+ line-height: inherit;
6
+ padding: 12px;
7
+ background-color: #FFF;
8
+ }
9
+ select.#{fl(prefix)}select {
10
+ line-height: inherit;
11
+ }
12
+ .#{fl(prefix)}is-active input.#{fl(prefix)}input,
13
+ .#{fl(prefix)}is-active select.#{fl(prefix)}select,
14
+ .#{fl(prefix)}is-active textarea.#{fl(prefix)}textarea {
15
+ padding: 20px 12px 4px;
16
+ transition: padding fl(transition-speed) fl(transition-easing),
17
+ border fl(transition-speed) fl(transition-easing);
18
+ }
19
+ label.#{fl(prefix)}label {
20
+ top: fl(border-width);
21
+ left: 13px;
22
+ right: 0;
23
+ padding: 6px 0 0;
24
+ }
25
+ .#{fl(prefix)}is-required:before {
26
+ padding-top: 12px;
27
+ }
28
+ label.#{fl(prefix)}label .give-required-indicator {
29
+ display: none;
30
+ }
31
+ label.#{fl(prefix)}label .give-tooltip {
32
+ position: absolute;
33
+ top: 0;
34
+ width: 100%;
35
+ height: 100%;
36
+ margin: 0;
37
+ z-index: 1;
38
+ &::before {
39
+ content: unset;
40
  }
41
+ }
42
  }
assets/scss/frontend/forms.scss CHANGED
@@ -11,81 +11,81 @@
11
  Layout
12
  --------------------------------------*/
13
  .give-clearfix {
14
- @include clearfix();
15
  }
16
 
17
  [id*='give-form'] {
18
 
19
- .give-hidden {
20
- display: none;
21
- }
22
 
23
- fieldset {
24
- border: none;
25
- padding: 0;
26
- margin: 0;
27
- border: 0;
28
- }
29
 
30
- .give-form-title {
31
- padding: 0;
32
- margin: 0 0 15px;
33
- }
34
 
35
- div#give-sidebar-left {
36
- width: 38%;
37
- float: left;
38
- }
39
 
40
- div.images {
41
- margin: 0 0 15px;
42
 
43
- img {
44
- display: block;
45
- width: 100%;
46
- height: auto;
47
- box-shadow: none;
 
48
  }
49
- }
50
 
51
- .give-custom-amount-text {
52
- clear: both;
53
- }
54
 
55
- div.summary {
56
- width: 58%;
57
- float: right;
58
 
59
- &.give-full-width {
60
- width: 100%;
61
- float: none;
 
62
  }
63
- }
64
 
65
- .give_form select.give-select.required {
66
- color: #000;
67
- }
68
-
69
- div.give-form-content-wrap {
70
- margin: 0 0 20px;
71
- }
72
 
73
- div.give-form-content-wrap.give_post_form-content {
74
- margin: 20px 0 0 0;
75
- }
76
 
77
- &.give-display-reveal, &.give-display-modal {
78
- .give-btn {
79
- margin: 0 0 15px;
80
  }
81
- #give-payment-mode-select, #give_purchase_form_wrap {
82
- display: none;
 
 
 
 
 
 
83
  }
84
- }
85
 
86
- .cc-address {
87
- margin-bottom: 15px;
88
- }
89
  }
90
 
91
  /*------------------------------------
@@ -94,13 +94,13 @@ Single Forms
94
 
95
  .single-give_forms {
96
 
97
- &.et_right_sidebar #main-content .container:before {
98
- display: none; //hide Divi sidebar sep on single give forms
99
- }
100
 
101
- .give_forms {
102
- @include clearfix;
103
- }
104
 
105
  }
106
 
@@ -109,23 +109,23 @@ Gravatar List
109
  --------------------------------------*/
110
  #give-purchase-gravatars {
111
 
112
- .give-gravatars-title {
113
- margin: 0 0 15px;
114
- }
115
 
116
- .give-purchase-gravatars-list {
117
- list-style: none;
118
- margin: 0;
119
- padding: 0;
120
 
121
- li {
122
- list-style-type: none;
123
- display: inline-block;
124
- margin: 0 5px 0 0;
125
- padding: 0;
126
- }
127
 
128
- }
129
  }
130
 
131
  /*------------------------------------
@@ -135,153 +135,154 @@ Base Form Styles
135
  form[id*='give-form'],
136
  #give-recurring-form,
137
  form.give-form {
138
- margin: 0 0 25px;
139
- padding: 0;
140
-
141
- .give-hidden {
142
- display: none;
143
- }
144
- .give-tooltip {
145
- margin: 0 3px;
146
  padding: 0;
147
- font-size: 14px;
148
- @include easing-transition();
149
- color: transparentize($dark, 0.5);
150
 
151
- &:hover {
152
- color: $dark;
153
  }
154
- }
155
 
156
- h3.give-section-break,
157
- h4.give-section-break,
158
- legend {
159
- font-size: 1.15em;
160
- font-weight: bold;
161
- margin: 10px 0 15px;
162
- padding: 0 0 5px;
163
- border-bottom: 1px solid rgba(0, 0, 0, .1);
164
- width: 100%;
165
 
166
- span.sub-text {
167
- font-style: italic;
168
- font-weight: normal;
169
  }
170
- }
171
 
172
- //Form Layout
173
- .form-row {
174
- @include clearfix();
175
- @include box-sizing(border-box);
176
- margin: 0 0 15px;
177
- overflow: visible;
178
- padding: 0;
 
 
179
 
180
- // Prevent some themes from removing margin on last-child.
181
- &:last-child {
182
- margin-bottom: 15px;
 
183
  }
184
 
185
- label {
186
- display: block;
187
- margin: 0 0 5px;
188
- position: relative;
189
- line-height: 1.7;
190
-
191
- &.checkbox {
192
- display: inline;
193
- }
194
-
195
- }
196
-
197
- select, textarea, input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="url"] {
198
- @include box-sizing(border-box);
199
- width: 100%;
200
- border-radius: 0;
201
- outline: none;
202
- color: $dark;
203
- background-color: #FDFDFD;
204
- border: 1px solid $borders;
205
- margin: 0;
206
- padding: .5em;
207
-
208
- &:focus {
209
- background-color: #fff;
210
- }
211
- &.required {
212
- color: $dark;
213
- }
214
 
215
- }
 
 
 
216
 
217
- }
 
 
 
 
218
 
219
- .form-row-first,
220
- .form-row-last {
221
- float: left;
222
- width: 48.5%;
223
- }
224
 
225
- .form-row-last {
226
- float: right;
227
- }
228
 
229
- .form-row-wide {
230
- @include clearfix();
231
- clear: both;
232
- }
11
  Layout
12
  --------------------------------------*/
13
  .give-clearfix {
14
+ @include clearfix();
15
  }
16
 
17
  [id*='give-form'] {
18
 
19
+ .give-hidden {
20
+ display: none;
21
+ }
22
 
23
+ fieldset {
24
+ border: none;
25
+ padding: 0;
26
+ margin: 0;
27
+ border: 0;
28
+ }
29
 
30
+ .give-form-title {
31
+ padding: 0;
32
+ margin: 0 0 15px;
33
+ }
34
 
35
+ div#give-sidebar-left {
36
+ width: 38%;
37
+ float: left;
38
+ }
39
 
40
+ div.images {
41
+ margin: 0 0 15px;
42
 
43
+ img {
44
+ display: block;
45
+ width: 100%;
46
+ height: auto;
47
+ box-shadow: none;
48
+ }
49
  }
 
50
 
51
+ .give-custom-amount-text {
52
+ clear: both;
53
+ }
54
 
55
+ div.summary {
56
+ width: 58%;
57
+ float: right;
58
 
59
+ &.give-full-width {
60
+ width: 100%;
61
+ float: none;
62
+ }
63
  }
 
64
 
65
+ .give_form select.give-select.required {
66
+ color: #000;
67
+ }
 
 
 
 
68
 
69
+ div.give-form-content-wrap {
70
+ margin: 0 0 20px;
71
+ }
72
 
73
+ div.give-form-content-wrap.give_post_form-content {
74
+ margin: 20px 0 0 0;
 
75
  }
76
+
77
+ &.give-display-reveal, &.give-display-modal {
78
+ .give-btn {
79
+ margin: 0 0 15px;
80
+ }
81
+ #give-payment-mode-select, #give_purchase_form_wrap {
82
+ display: none;
83
+ }
84
  }
 
85
 
86
+ .cc-address {
87
+ margin-bottom: 15px;
88
+ }
89
  }
90
 
91
  /*------------------------------------
94
 
95
  .single-give_forms {
96
 
97
+ &.et_right_sidebar #main-content .container:before {
98
+ display: none; //hide Divi sidebar sep on single give forms
99
+ }
100
 
101
+ .give_forms {
102
+ @include clearfix;
103
+ }
104
 
105
  }
106
 
109
  --------------------------------------*/
110
  #give-purchase-gravatars {
111
 
112
+ .give-gravatars-title {
113
+ margin: 0 0 15px;
114
+ }
115
 
116
+ .give-purchase-gravatars-list {
117
+ list-style: none;
118
+ margin: 0;
119
+ padding: 0;
120
 
121
+ li {
122
+ list-style-type: none;
123
+ display: inline-block;
124
+ margin: 0 5px 0 0;
125
+ padding: 0;
126
+ }
127
 
128
+ }
129
  }
130
 
131
  /*------------------------------------
135
  form[id*='give-form'],
136
  #give-recurring-form,
137
  form.give-form {
138
+ margin: 0 0 25px;
 
 
 
 
 
 
 
139
  padding: 0;
 
 
 
140
 
141
+ .give-hidden {
142
+ display: none;
143
  }
 
144
 
145
+ .give-tooltip {
146
+ margin: 0 3px;
147
+ padding: 0;
148
+ font-size: 14px;
149
+ @include easing-transition();
150
+ color: transparentize($dark, 0.5);
 
 
 
151
 
152
+ &:hover {
153
+ color: $dark;
154
+ }
155
  }
 
156
 
157
+ h3.give-section-break,
158
+ h4.give-section-break,
159
+ legend {
160
+ font-size: 1.15em;
161
+ font-weight: bold;
162
+ margin: 10px 0 15px;
163
+ padding: 0 0 5px;
164
+ border-bottom: 1px solid rgba(0, 0, 0, .1);
165
+ width: 100%;
166
 
167
+ span.sub-text {
168
+ font-style: italic;
169
+ font-weight: normal;
170
+ }
171
  }
172
 
173
+ //Form Layout
174
+ .form-row {
175
+ @include clearfix();
176
+ @include box-sizing(border-box);
177
+ margin: 0 0 15px;
178
+ overflow: visible;
179
+ padding: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
 
181
+ // Prevent some themes from removing margin on last-child.
182
+ &:last-child {
183
+ margin-bottom: 15px;
184
+ }
185
 
186
+ label {
187
+ display: block;
188
+ margin: 0 0 5px;
189
+ position: relative;
190
+ line-height: 1.7;
191
 
192
+ &.checkbox {
193
+ display: inline;
194
+ }
 
 
195
 
196
+ }
 
 
197
 
198
+ select, textarea, input[type="text"], input[type="tel"