Give – Donation Plugin and Fundraising Platform - Version 1.8

Version Description

  • New: Enhanced admin UI provides easier donation form creation and settings organization overview. #281, #668
  • New: Display "Donate Now" buttons that open donation forms with the click of a button with the new button display mode. #520
  • New: Additional "Tools" menu added to WP-admin. #1046
  • New: Improved System Info page now provides more helpful server and WordPress information which will help support more quickly identify potential issues. #826
  • New: Improved UX/UI for Reports pages. #1114
  • New: Improved UX for admin settings screens that have many tabs to prevent them from bumping to two lines. [#1466](https://github.com/WordImpress/Give/issues/1466
  • New: Added support to create links to donation forms with a pre-selected donation level. [#1422](https://github.com/WordImpress/Give/issues/1422
  • Tweak: Give's donation form widget now includes the "Display Option" functionality. #1269
  • Tweak: CMB2 has now been deprecated in favor for Give's settings API. #991
  • Tweak: Only show Add-on activation banner for user who activated the plugin. #1036
  • Tweak: Added backend and frontend validation to prevent the admin from saving the same success and failure page. #724
  • Tweak: Responsive and general CSS improvements for frontend donation forms. #1453, #1258, #1441
  • Tweak: Plugin incompatibility with PHP version 7.1. #1453, #1258, #1441
  • Tweak: Linked the donor's name to their donor profile within donor's report listing screen. #1448
  • Tweak: Field descriptions updated for better user understanding and clarity. #1488
  • Tweak: Bulk deleting transactions does not display a notification enhancement. #850
  • Tweak: Auto fill total donation amount when admin user changes the donation level on the payment edit screen. #884
  • Tweak: If only one payment gateway is enabled the "Select Payment Method" fieldset is now hidden. #1122
  • Tweak: Links to shortcodes are now using offsite shortlinks that can be updated without a plugin update to prevent 404s due to doc structure changes. #1405
  • Fix: "Export Donors" creating multiple instances of the same donor. #1426
  • Fix: Show "untitled donation form" as the default title for untitled forms in the admin. #1276
  • Fix: Show correct donor count on donor listing page. #1497
Download this release

Release Info

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

Version 1.8

Files changed (84) hide show
  1. assets/css/adminbar-style.css +9 -0
  2. assets/css/chosen-sprite.png +0 -0
  3. assets/css/chosen-sprite@2x.png +0 -0
  4. assets/css/chosen.css +430 -0
  5. assets/css/chosen.min.css +3 -0
  6. assets/css/give-admin-rtl.css +2692 -0
  7. assets/css/give-admin-rtl.min.css +9 -0
  8. assets/css/give-admin.css +2695 -0
  9. assets/css/give-admin.css.map +1 -0
  10. assets/css/give-admin.min.css +9 -0
  11. assets/css/give-dashicon.css +0 -0
  12. assets/css/jquery-ui-fresh.css +204 -0
  13. assets/css/jquery-ui-fresh.min.css +1 -0
  14. assets/css/jquery.qtip.css +617 -0
  15. assets/css/jquery.qtip.min.css +1 -0
  16. assets/fonts/icomoon.eot +0 -0
  17. assets/fonts/icomoon.svg +29 -0
  18. assets/fonts/icomoon.woff +0 -0
  19. assets/fonts/selection.json +590 -0
  20. assets/images/ach.png +0 -0
  21. assets/images/admin/getting-started-add-content.png +0 -0
  22. assets/images/admin/getting-started-add-new-form.png +0 -0
  23. assets/images/admin/getting-started-display-options.png +0 -0
  24. assets/images/admin/getting-started-new-form-multi-level.gif +0 -0
  25. assets/images/amex.png +0 -0
  26. assets/images/cash.png +0 -0
  27. assets/images/close.png +0 -0
  28. assets/images/credit.png +0 -0
  29. assets/images/dankort.png +0 -0
  30. assets/images/debit.png +0 -0
  31. assets/images/diners-club.png +0 -0
  32. assets/images/discover.png +0 -0
  33. assets/images/give-ascii-logo.txt +16 -0
  34. assets/images/give-badge.png +0 -0
  35. assets/images/give-form-mockup.png +0 -0
  36. assets/images/give-logo-large-no-tagline.png +0 -0
  37. assets/images/give-logo-large.png +0 -0
  38. assets/images/give-logo-photo-mashup.png +0 -0
  39. assets/images/give-logo-small.png +0 -0
  40. assets/images/give-logo.png +0 -0
  41. assets/images/jcb.png +0 -0
  42. assets/images/maestro.png +0 -0
  43. assets/images/mastercard.png +0 -0
  44. assets/images/paypal.png +0 -0
  45. assets/images/spinner-2x.gif +0 -0
  46. assets/images/spinner.gif +0 -0
  47. assets/images/svg/give-icon-full-circle-grey.svg +219 -0
  48. assets/images/svg/give-icon-full-circle-white.svg +220 -0
  49. assets/images/svg/give-icon-full-circle.svg +45 -0
  50. assets/images/tick-alt.png +0 -0
  51. assets/images/tick.png +0 -0
  52. assets/images/ui-icons_21759b_256x240.png +0 -0
  53. assets/images/ui-icons_333333_256x240.png +0 -0
  54. assets/images/ui-icons_999999_256x240.png +0 -0
  55. assets/images/unionpay.png +0 -0
  56. assets/images/visa.png +0 -0
  57. assets/js/admin/admin-forms.js +290 -0
  58. assets/js/admin/admin-forms.min.js +1 -0
  59. assets/js/admin/admin-scripts.js +1839 -0
  60. assets/js/admin/admin-scripts.min.js +1 -0
  61. assets/js/admin/admin-settings.js +167 -0
  62. assets/js/admin/admin-settings.min.js +1 -0
  63. assets/js/admin/admin-shortcodes.js +207 -0
  64. assets/js/admin/admin-shortcodes.min.js +1 -0
  65. assets/js/admin/admin-widgets.js +41 -0
  66. assets/js/admin/admin-widgets.min.js +1 -0
  67. assets/js/admin/tinymce/mce-plugin.js +13 -0
  68. assets/js/admin/tinymce/mce-plugin.min.js +1 -0
  69. assets/js/frontend/give-ajax.js +263 -0
  70. assets/js/frontend/give-ajax.min.js +1 -0
  71. assets/js/frontend/give-checkout-global.js +595 -0
  72. assets/js/frontend/give-checkout-global.min.js +1 -0
  73. assets/js/frontend/give.all.min.js +10 -0
  74. assets/js/frontend/give.js +245 -0
  75. assets/js/frontend/give.min.js +1 -0
  76. assets/js/plugins/accounting.js +413 -0
  77. assets/js/plugins/accounting.min.js +1 -0
  78. assets/js/plugins/chosen.jquery.js +1272 -0
  79. assets/js/plugins/chosen.jquery.min.js +1 -0
  80. assets/js/plugins/float-labels.js +239 -0
  81. assets/js/plugins/float-labels.min.js +1 -0
  82. assets/js/plugins/jquery.blockUI.js +620 -0
  83. assets/js/plugins/jquery.blockUI.min.js +1 -0
  84. assets/js/plugins/jquery.flot.js +2097 -0
assets/css/adminbar-style.css ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ #wpadminbar .give-test-mode-active > .ab-item{
2
+ color:#fff;
3
+ background-color: #ffba00;
4
+ }
5
+
6
+ #wpadminbar .give-test-mode-active:hover > .ab-item, #wpadminbar .give-test-mode-active:hover > .ab-item{
7
+ background-color: rgba(203, 144, 0, 1) !important;
8
+ color: #fff !important;
9
+ }
assets/css/chosen-sprite.png ADDED
Binary file
assets/css/chosen-sprite@2x.png ADDED
Binary file
assets/css/chosen.css ADDED
@@ -0,0 +1,430 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* @group Base */
2
+ .chosen-container {
3
+ position: relative;
4
+ display: inline-block;
5
+ vertical-align: middle;
6
+ font-size: 13px;
7
+ zoom: 1;
8
+ *display: inline;
9
+ -webkit-user-select: none;
10
+ -moz-user-select: none;
11
+ user-select: none;
12
+ }
13
+ .chosen-container .chosen-drop {
14
+ position: absolute;
15
+ top: 100%;
16
+ left: -9999px;
17
+ z-index: 1010;
18
+ -webkit-box-sizing: border-box;
19
+ -moz-box-sizing: border-box;
20
+ box-sizing: border-box;
21
+ width: 100%;
22
+ border: 1px solid #aaa;
23
+ border-top: 0;
24
+ background: #fff;
25
+ box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
26
+ }
27
+ .chosen-container.chosen-with-drop .chosen-drop {
28
+ left: 0;
29
+ }
30
+ .chosen-container a {
31
+ cursor: pointer;
32
+ }
33
+
34
+ /* @end */
35
+ /* @group Single Chosen */
36
+ .chosen-container-single .chosen-single {
37
+ position: relative;
38
+ display: block;
39
+ overflow: hidden;
40
+ padding: 0 0 0 8px;
41
+ height: 23px;
42
+ border: 1px solid #aaa;
43
+ border-radius: 5px;
44
+ background-color: #fff;
45
+ background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
46
+ background: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
47
+ background: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
48
+ background: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
49
+ background: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
50
+ background-clip: padding-box;
51
+ box-shadow: 0 0 3px white inset, 0 1px 1px rgba(0, 0, 0, 0.1);
52
+ color: #444;
53
+ text-decoration: none;
54
+ white-space: nowrap;
55
+ line-height: 24px;
56
+ }
57
+ .chosen-container-single .chosen-default {
58
+ color: #999;
59
+ }
60
+ .chosen-container-single .chosen-single span {
61
+ display: block;
62
+ overflow: hidden;
63
+ margin-right: 26px;
64
+ text-overflow: ellipsis;
65
+ white-space: nowrap;
66
+ }
67
+ .chosen-container-single .chosen-single-with-deselect span {
68
+ margin-right: 38px;
69
+ }
70
+ .chosen-container-single .chosen-single abbr {
71
+ position: absolute;
72
+ top: 6px;
73
+ right: 26px;
74
+ display: block;
75
+ width: 12px;
76
+ height: 12px;
77
+ background: url('chosen-sprite.png') -42px 1px no-repeat;
78
+ font-size: 1px;
79
+ }
80
+ .chosen-container-single .chosen-single abbr:hover {
81
+ background-position: -42px -10px;
82
+ }
83
+ .chosen-container-single.chosen-disabled .chosen-single abbr:hover {
84
+ background-position: -42px -10px;
85
+ }
86
+ .chosen-container-single .chosen-single div {
87
+ position: absolute;
88
+ top: 0;
89
+ right: 0;
90
+ display: block;
91
+ width: 18px;
92
+ height: 100%;
93
+ }
94
+ .chosen-container-single .chosen-single div b {
95
+ display: block;
96
+ width: 100%;
97
+ height: 100%;
98
+ background: url('chosen-sprite.png') no-repeat 0px 2px;
99
+ }
100
+ .chosen-container-single .chosen-search {
101
+ position: relative;
102
+ z-index: 1010;
103
+ margin: 0;
104
+ padding: 3px 4px;
105
+ white-space: nowrap;
106
+ }
107
+ .chosen-container-single .chosen-search input[type="text"] {
108
+ -webkit-box-sizing: border-box;
109
+ -moz-box-sizing: border-box;
110
+ box-sizing: border-box;
111
+ margin: 1px 0;
112
+ padding: 4px 20px 4px 5px;
113
+ width: 100%;
114
+ height: auto;
115
+ outline: 0;
116
+ border: 1px solid #aaa;
117
+ background: white url('chosen-sprite.png') no-repeat 100% -20px;
118
+ background: url('chosen-sprite.png') no-repeat 100% -20px, -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
119
+ background: url('chosen-sprite.png') no-repeat 100% -20px, -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
120
+ background: url('chosen-sprite.png') no-repeat 100% -20px, -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
121
+ background: url('chosen-sprite.png') no-repeat 100% -20px, -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
122
+ background: url('chosen-sprite.png') no-repeat 100% -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
123
+ font-size: 1em;
124
+ font-family: sans-serif;
125
+ line-height: normal;
126
+ border-radius: 0;
127
+ }
128
+ .chosen-container-single .chosen-drop {
129
+ margin-top: -1px;
130
+ border-radius: 0 0 4px 4px;
131
+ background-clip: padding-box;
132
+ }
133
+ .chosen-container-single.chosen-container-single-nosearch .chosen-search {
134
+ position: absolute;
135
+ left: -9999px;
136
+ }
137
+
138
+ /* @end */
139
+ /* @group Results */
140
+ .chosen-container .chosen-results {
141
+ position: relative;
142
+ overflow-x: hidden;
143
+ overflow-y: auto;
144
+ margin: 0 4px 4px 0;
145
+ padding: 0 0 0 4px;
146
+ max-height: 240px;
147
+ -webkit-overflow-scrolling: touch;
148
+ }
149
+ .chosen-container .chosen-results li {
150
+ display: none;
151
+ margin: 0;
152
+ padding: 5px 6px;
153
+ list-style: none;
154
+ line-height: 15px;
155
+ }
156
+ .chosen-container .chosen-results li.active-result {
157
+ display: list-item;
158
+ cursor: pointer;
159
+ }
160
+ .chosen-container .chosen-results li.disabled-result {
161
+ display: list-item;
162
+ color: #ccc;
163
+ cursor: default;
164
+ }
165
+ .chosen-container .chosen-results li.highlighted {
166
+ background-color: #3875d7;
167
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
168
+ background-image: -webkit-linear-gradient(#3875d7 20%, #2a62bc 90%);
169
+ background-image: -moz-linear-gradient(#3875d7 20%, #2a62bc 90%);
170
+ background-image: -o-linear-gradient(#3875d7 20%, #2a62bc 90%);
171
+ background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
172
+ color: #fff;
173
+ }
174
+ .chosen-container .chosen-results li.no-results {
175
+ display: list-item;
176
+ background: #f4f4f4;
177
+ }
178
+ .chosen-container .chosen-results li.group-result {
179
+ display: list-item;
180
+ font-weight: bold;
181
+ cursor: default;
182
+ }
183
+ .chosen-container .chosen-results li.group-option {
184
+ padding-left: 15px;
185
+ }
186
+ .chosen-container .chosen-results li em {
187
+ font-style: normal;
188
+ text-decoration: underline;
189
+ }
190
+
191
+ /* @end */
192
+ /* @group Multi Chosen */
193
+ .chosen-container-multi .chosen-choices {
194
+ position: relative;
195
+ overflow: hidden;
196
+ -webkit-box-sizing: border-box;
197
+ -moz-box-sizing: border-box;
198
+ box-sizing: border-box;
199
+ margin: 0;
200
+ padding: 0;
201
+ width: 100%;
202
+ height: auto !important;
203
+ height: 1%;
204
+ border: 1px solid #aaa;
205
+ background-color: #fff;
206
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
207
+ background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
208
+ background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
209
+ background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
210
+ background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
211
+ cursor: text;
212
+ }
213
+ .chosen-container-multi .chosen-choices li {
214
+ float: left;
215
+ list-style: none;
216
+ }
217
+ .chosen-container-multi .chosen-choices li.search-field {
218
+ margin: 0;
219
+ padding: 0;
220
+ white-space: nowrap;
221
+ }
222
+ .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
223
+ margin: 1px 0;
224
+ padding: 5px;
225
+ height: 15px;
226
+ outline: 0;
227
+ border: 0 !important;
228
+ background: transparent !important;
229
+ box-shadow: none;
230
+ color: #666;
231
+ font-size: 100%;
232
+ font-family: sans-serif;
233
+ line-height: normal;
234
+ border-radius: 0;
235
+ }
236
+ .chosen-container-multi .chosen-choices li.search-field .default {
237
+ color: #999;
238
+ }
239
+ .chosen-container-multi .chosen-choices li.search-choice {
240
+ position: relative;
241
+ margin: 3px 0 3px 5px;
242
+ padding: 3px 20px 3px 5px;
243
+ border: 1px solid #aaa;
244
+ border-radius: 3px;
245
+ background-color: #e4e4e4;
246
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
247
+ background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
248
+ background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
249
+ background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
250
+ background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
251
+ background-clip: padding-box;
252
+ box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
253
+ color: #333;
254
+ line-height: 13px;
255
+ cursor: default;
256
+ }
257
+ .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
258
+ position: absolute;
259
+ top: 4px;
260
+ right: 3px;
261
+ display: block;
262
+ width: 12px;
263
+ height: 12px;
264
+ background: url('chosen-sprite.png') -42px 1px no-repeat;
265
+ font-size: 1px;
266
+ }
267
+ .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
268
+ background-position: -42px -10px;
269
+ }
270
+ .chosen-container-multi .chosen-choices li.search-choice-disabled {
271
+ padding-right: 5px;
272
+ border: 1px solid #ccc;
273
+ background-color: #e4e4e4;
274
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
275
+ background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
276
+ background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
277
+ background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
278
+ background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
279
+ color: #666;
280
+ }
281
+ .chosen-container-multi .chosen-choices li.search-choice-focus {
282
+ background: #d4d4d4;
283
+ }
284
+ .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
285
+ background-position: -42px -10px;
286
+ }
287
+ .chosen-container-multi .chosen-results {
288
+ margin: 0;
289
+ padding: 0;
290
+ }
291
+ .chosen-container-multi .chosen-drop .result-selected {
292
+ display: list-item;
293
+ color: #ccc;
294
+ cursor: default;
295
+ }
296
+
297
+ /* @end */
298
+ /* @group Active */
299
+ .chosen-container-active .chosen-single {
300
+ border: 1px solid #5897fb;
301
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
302
+ }
303
+ .chosen-container-active.chosen-with-drop .chosen-single {
304
+ border: 1px solid #aaa;
305
+ -moz-border-radius-bottomright: 0;
306
+ border-bottom-right-radius: 0;
307
+ -moz-border-radius-bottomleft: 0;
308
+ border-bottom-left-radius: 0;
309
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
310
+ background-image: -webkit-linear-gradient(#eeeeee 20%, #ffffff 80%);
311
+ background-image: -moz-linear-gradient(#eeeeee 20%, #ffffff 80%);
312
+ background-image: -o-linear-gradient(#eeeeee 20%, #ffffff 80%);
313
+ background-image: linear-gradient(#eeeeee 20%, #ffffff 80%);
314
+ box-shadow: 0 1px 0 #fff inset;
315
+ }
316
+ .chosen-container-active.chosen-with-drop .chosen-single div {
317
+ border-left: none;
318
+ background: transparent;
319
+ }
320
+ .chosen-container-active.chosen-with-drop .chosen-single div b {
321
+ background-position: -18px 2px;
322
+ }
323
+ .chosen-container-active .chosen-choices {
324
+ border: 1px solid #5897fb;
325
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
326
+ }
327
+ .chosen-container-active .chosen-choices li.search-field input[type="text"] {
328
+ color: #111 !important;
329
+ }
330
+
331
+ /* @end */
332
+ /* @group Disabled Support */
333
+ .chosen-disabled {
334
+ opacity: 0.5 !important;
335
+ cursor: default;
336
+ }
337
+ .chosen-disabled .chosen-single {
338
+ cursor: default;
339
+ }
340
+ .chosen-disabled .chosen-choices .search-choice .search-choice-close {
341
+ cursor: default;
342
+ }
343
+
344
+ /* @end */
345
+ /* @group Right to Left */
346
+ .chosen-rtl {
347
+ text-align: right;
348
+ }
349
+ .chosen-rtl .chosen-single {
350
+ overflow: visible;
351
+ padding: 0 8px 0 0;
352
+ }
353
+ .chosen-rtl .chosen-single span {
354
+ margin-right: 0;
355
+ margin-left: 26px;
356
+ direction: rtl;
357
+ }
358
+ .chosen-rtl .chosen-single-with-deselect span {
359
+ margin-left: 38px;
360
+ }
361
+ .chosen-rtl .chosen-single div {
362
+ right: auto;
363
+ left: 3px;
364
+ }
365
+ .chosen-rtl .chosen-single abbr {
366
+ right: auto;
367
+ left: 26px;
368
+ }
369
+ .chosen-rtl .chosen-choices li {
370
+ float: right;
371
+ }
372
+ .chosen-rtl .chosen-choices li.search-field input[type="text"] {
373
+ direction: rtl;
374
+ }
375
+ .chosen-rtl .chosen-choices li.search-choice {
376
+ margin: 3px 5px 3px 0;
377
+ padding: 3px 5px 3px 19px;
378
+ }
379
+ .chosen-rtl .chosen-choices li.search-choice .search-choice-close {
380
+ right: auto;
381
+ left: 4px;
382
+ }
383
+ .chosen-rtl.chosen-container-single-nosearch .chosen-search,
384
+ .chosen-rtl .chosen-drop {
385
+ left: 9999px;
386
+ }
387
+ .chosen-rtl.chosen-container-single .chosen-results {
388
+ margin: 0 0 4px 4px;
389
+ padding: 0 4px 0 0;
390
+ }
391
+ .chosen-rtl .chosen-results li.group-option {
392
+ padding-right: 15px;
393
+ padding-left: 0;
394
+ }
395
+ .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
396
+ border-right: none;
397
+ }
398
+ .chosen-rtl .chosen-search input[type="text"] {
399
+ padding: 4px 5px 4px 20px;
400
+ background: white url('chosen-sprite.png') no-repeat -30px -20px;
401
+ background: url('chosen-sprite.png') no-repeat -30px -20px, -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
402
+ background: url('chosen-sprite.png') no-repeat -30px -20px, -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
403
+ background: url('chosen-sprite.png') no-repeat -30px -20px, -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
404
+ background: url('chosen-sprite.png') no-repeat -30px -20px, -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
405
+ background: url('chosen-sprite.png') no-repeat -30px -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
406
+ direction: rtl;
407
+ }
408
+ .chosen-rtl.chosen-container-single .chosen-single div b {
409
+ background-position: 6px 2px;
410
+ }
411
+ .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
412
+ background-position: -12px 2px;
413
+ }
414
+
415
+ /* @end */
416
+ /* @group Retina compatibility */
417
+ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
418
+ .chosen-rtl .chosen-search input[type="text"],
419
+ .chosen-container-single .chosen-single abbr,
420
+ .chosen-container-single .chosen-single div b,
421
+ .chosen-container-single .chosen-search input[type="text"],
422
+ .chosen-container-multi .chosen-choices .search-choice .search-choice-close,
423
+ .chosen-container .chosen-results-scroll-down span,
424
+ .chosen-container .chosen-results-scroll-up span {
425
+ background-image: url('chosen-sprite@2x.png') !important;
426
+ background-size: 52px 37px !important;
427
+ background-repeat: no-repeat !important;
428
+ }
429
+ }
430
+ /* @end */
assets/css/chosen.min.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ /* Chosen v1.0.0 | (c) 2011-2013 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
2
+
3
+ .chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;zoom:1;*display:inline;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15)}.chosen-container.chosen-with-drop .chosen-drop{left:0}.chosen-container a{cursor:pointer}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:23px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#fff),color-stop(50%,#f6f6f6),color-stop(52%,#eee),color-stop(100%,#f4f4f4));background:-webkit-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-moz-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-o-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,.1);color:#444;text-decoration:none;white-space:nowrap;line-height:24px}.chosen-container-single .chosen-default{color:#999}.chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;background:url(chosen-sprite.png) -42px 1px no-repeat;font-size:1px}.chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.chosen-container-single .chosen-single div{position:absolute;top:0;right:0;display:block;width:18px;height:100%}.chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;background:url(chosen-sprite.png) no-repeat 0 2px}.chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chosen-container-single .chosen-search input[type=text]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;background:#fff url(chosen-sprite.png) no-repeat 100% -20px;background:url(chosen-sprite.png) no-repeat 100% -20px,-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background:url(chosen-sprite.png) no-repeat 100% -20px,-webkit-linear-gradient(#eee 1%,#fff 15%);background:url(chosen-sprite.png) no-repeat 100% -20px,-moz-linear-gradient(#eee 1%,#fff 15%);background:url(chosen-sprite.png) no-repeat 100% -20px,-o-linear-gradient(#eee 1%,#fff 15%);background:url(chosen-sprite.png) no-repeat 100% -20px,linear-gradient(#eee 1%,#fff 15%);font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 4px 4px;background-clip:padding-box}.chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.chosen-container .chosen-results{position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px}.chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.chosen-container .chosen-results li.highlighted{background-color:#3875d7;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#3875d7),color-stop(90%,#2a62bc));background-image:-webkit-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-moz-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-o-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{display:list-item;background:#f4f4f4}.chosen-container .chosen-results li.group-result{display:list-item;font-weight:700;cursor:default}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.chosen-container-multi .chosen-choices{position:relative;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;width:100%;height:auto!important;height:1%;border:1px solid #aaa;background-color:#fff;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background-image:-webkit-linear-gradient(#eee 1%,#fff 15%);background-image:-moz-linear-gradient(#eee 1%,#fff 15%);background-image:-o-linear-gradient(#eee 1%,#fff 15%);background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:5px;height:15px;outline:0;border:0!important;background:transparent!important;box-shadow:none;color:#666;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-multi .chosen-choices li.search-field .default{color:#999}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 0 3px 5px;padding:3px 20px 3px 5px;border:1px solid #aaa;border-radius:3px;background-color:#e4e4e4;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url(chosen-sprite.png) -42px 1px no-repeat;font-size:1px}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ccc;background-color:#e4e4e4;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);color:#666}.chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.chosen-container-active .chosen-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#eee),color-stop(80%,#fff));background-image:-webkit-linear-gradient(#eee 20%,#fff 80%);background-image:-moz-linear-gradient(#eee 20%,#fff 80%);background-image:-o-linear-gradient(#eee 20%,#fff 80%);background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:0;background:transparent}.chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active .chosen-choices li.search-field input[type=text]{color:#111!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.chosen-rtl .chosen-single div{right:auto;left:3px}.chosen-rtl .chosen-single abbr{right:auto;left:26px}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.chosen-rtl.chosen-container-single-nosearch .chosen-search,.chosen-rtl .chosen-drop{left:9999px}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:0}.chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:#fff url(chosen-sprite.png) no-repeat -30px -20px;background:url(chosen-sprite.png) no-repeat -30px -20px,-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background:url(chosen-sprite.png) no-repeat -30px -20px,-webkit-linear-gradient(#eee 1%,#fff 15%);background:url(chosen-sprite.png) no-repeat -30px -20px,-moz-linear-gradient(#eee 1%,#fff 15%);background:url(chosen-sprite.png) no-repeat -30px -20px,-o-linear-gradient(#eee 1%,#fff 15%);background:url(chosen-sprite.png) no-repeat -30px -20px,linear-gradient(#eee 1%,#fff 15%);direction:rtl}.chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-resolution:144dpi){.chosen-rtl .chosen-search input[type=text],.chosen-container-single .chosen-single abbr,.chosen-container-single .chosen-single div b,.chosen-container-single .chosen-search input[type=text],.chosen-container-multi .chosen-choices .search-choice .search-choice-close,.chosen-container .chosen-results-scroll-down span,.chosen-container .chosen-results-scroll-up span{background-image:url(chosen-sprite@2x.png)!important;background-size:52px 37px!important;background-repeat:no-repeat!important}}
assets/css/give-admin-rtl.css ADDED
@@ -0,0 +1,2692 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give Admin SCSS/CSS
3
+ *
4
+ * @description: The Main SCSS file for ADMIN styles which is compiled and minified via Gulp taskrunner
5
+ * @package: Give
6
+ * @subpackage: SCSS/Admin
7
+ * @copyright: Copyright (c) 2016, WordImpress
8
+ * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+ */
10
+ /**
11
+ * Clearfix
12
+ */
13
+ .give-clearfix {
14
+ *zoom: 1; }
15
+ .give-clearfix:before, .give-clearfix:after {
16
+ content: " ";
17
+ display: table; }
18
+ .give-clearfix:after {
19
+ clear: both; }
20
+
21
+ /**
22
+ * Box Sizing
23
+ * https://github.com/timrogers/sass-box-sizing-mixin
24
+ */
25
+ /**
26
+ * CSS3 Easing
27
+ */
28
+ .give-item-label {
29
+ padding: .2em .4em .3em;
30
+ font-size: 11px;
31
+ line-height: 1;
32
+ color: #fff;
33
+ text-align: center;
34
+ white-space: nowrap;
35
+ vertical-align: baseline;
36
+ border-radius: .25em; }
37
+ .give-item-label:hover {
38
+ color: #fff;
39
+ text-decoration: none; }
40
+
41
+ .give-item-label-gray, #give-payments-filter .give-payment-id {
42
+ background-color: #929292; }
43
+
44
+ .give-item-label-orange {
45
+ background-color: #ffba00; }
46
+
47
+ .give-item-label {
48
+ padding: .2em .4em .3em;
49
+ font-size: 11px;
50
+ line-height: 1;
51
+ color: #fff;
52
+ text-align: center;
53
+ white-space: nowrap;
54
+ vertical-align: baseline;
55
+ border-radius: .25em; }
56
+ .give-item-label:hover {
57
+ color: #fff;
58
+ text-decoration: none; }
59
+
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
572
+ *
573
+ * Fonts are from icomoon and the src paths need to be relative to template directory.
574
+ * @package Give
575
+ * @subpackage SCSS/Frontend
576
+ * @copyright Copyright (c) 2016, WordImpress
577
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
578
+ */
579
+ @font-face {
580
+ font-family: 'give-icomoon';
581
+ src: url("../assets/fonts/icomoon.eot?kdnr3d");
582
+ 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");
583
+ font-weight: normal;
584
+ font-style: normal; }
585
+
586
+ [class^="give-icon-"], [class*=" give-icon-"] {
587
+ font-family: 'give-icomoon';
588
+ speak: none;
589
+ font-style: normal;
590
+ font-weight: normal;
591
+ font-variant: normal;
592
+ text-transform: none;
593
+ line-height: 1;
594
+ -webkit-font-smoothing: antialiased;
595
+ -moz-osx-font-smoothing: grayscale; }
596
+
597
+ .give-icon-lamp:before {
598
+ content: "\e603"; }
599
+
600
+ .give-icon-heart:before {
601
+ content: "\e604"; }
602
+
603
+ .give-icon-question:before {
604
+ content: "\e602"; }
605
+
606
+ .give-icon-info:before {
607
+ content: "\e601"; }
608
+
609
+ .give-icon-new-tab:before {
610
+ content: "\ea7e"; }
611
+
612
+ .give-icon-alert:before {
613
+ content: "\f02d"; }
614
+
615
+ .give-icon-help:before {
616
+ content: "\e606"; }
617
+
618
+ .give-icon-spinner:before {
619
+ content: "\e605"; }
620
+
621
+ .give-icon-spinner2:before {
622
+ content: "\e607"; }
623
+
624
+ .give-icon-plus:before {
625
+ content: "\e040"; }
626
+
627
+ .give-icon-minus:before {
628
+ content: "\e041"; }
629
+
630
+ .give-icon-locked:before {
631
+ content: "\e600"; }
632
+
633
+ .dashicons-give:before {
634
+ font-family: 'give-icomoon';
635
+ speak: none;
636
+ font-style: normal;
637
+ font-weight: normal;
638
+ font-variant: normal;
639
+ text-transform: none;
640
+ line-height: 1;
641
+ -webkit-font-smoothing: antialiased;
642
+ -moz-osx-font-smoothing: grayscale;
643
+ content: "\e800"; }
644
+
645
+ .fa-spin {
646
+ -webkit-animation: spin 1000ms infinite linear;
647
+ animation: spin 1000ms infinite linear; }
648
+
649
+ @-webkit-keyframes spin {
650
+ 0% {
651
+ -webkit-transform: rotate(0deg);
652
+ transform: rotate(0deg); }
653
+ 100% {
654
+ -webkit-transform: rotate(-359deg);
655
+ transform: rotate(-359deg); } }
656
+
657
+ @keyframes spin {
658
+ 0% {
659
+ -webkit-transform: rotate(0deg);
660
+ transform: rotate(0deg); }
661
+ 100% {
662
+ -webkit-transform: rotate(-359deg);
663
+ transform: rotate(-359deg); } }
664
+
665
+ @font-face {
666
+ font-family: 'give-icomoon';
667
+ font-weight: normal;
668
+ font-style: normal; }
669
+
670
+ .give-metabox-tabs li a:before {
671
+ font-family: 'give-icomoon';
672
+ src: url("../assets/fonts/icomoon.eot?kdnr3d");
673
+ 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");
674
+ speak: none;
675
+ font-style: normal;
676
+ font-weight: normal;
677
+ font-variant: normal;
678
+ text-transform: none;
679
+ line-height: 1;
680
+ -webkit-font-smoothing: antialiased;
681
+ -moz-osx-font-smoothing: grayscale;
682
+ font-size: 12px;
683
+ vertical-align: top;
684
+ line-height: 20px;
685
+ margin: 0 0 0 5px;
686
+ content: "\e903"; }
687
+
688
+ .give-metabox-tabs li.form_field_options_tab > a:before {
689
+ content: "\e604"; }
690
+
691
+ .give-metabox-tabs li.donation_goal_options_tab > a:before {
692
+ content: "\e901"; }
693
+
694
+ .give-metabox-tabs li.form_display_options_tab > a:before {
695
+ content: "\e90c"; }
696
+
697
+ .give-metabox-tabs li.form_content_options_tab > a:before {
698
+ content: "\e902"; }
699
+
700
+ .give-metabox-tabs li.form_terms_options_tab > a:before {
701
+ position: relative;
702
+ top: 1px;
703
+ content: "\e900"; }
704
+
705
+ .give-metabox-tabs li.offline_donations_options_tab > a:before {
706
+ content: "\e8df"; }
707
+
708
+ /**
709
+ * Give Forms SCSS
710
+ *
711
+ * @package Give
712
+ * @subpackage SCSS/Admin
713
+ * @copyright Copyright (c) 2016, WordImpress
714
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
715
+ */
716
+ /*------------------------------------
717
+ Forms CPT
718
+ --------------------------------------*/
719
+ /* Hide conditional fields */
720
+ .cmb2-id--give-set-price,
721
+ .cmb2-id--give-levels-header,
722
+ .cmb2-id--give-levels-header + .cmb-repeat-group-wrap,
723
+ .cmb2-id--give-display-style,
724
+ .post-type-give_forms .tablenav #post-query-submit,
725
+ .give-hidden,
726
+ .cmb2-id--give-form-content,
727
+ .cmb2-id--give-reveal-label,
728
+ .cmb2-id--give-custom-amount-minimum,
729
+ .cmb2-id--give-custom-amount-text,
730
+ .cmb2-id--give-offline-checkout-notes,
731
+ .cmb-type-levels-id,
732
+ #_give_donation_levels_repeat .cmb-group-title,
733
+ #_give_donation_levels_repeat .cmb-row > .cmb-remove-group-row,
734
+ #_give_donation_levels_repeat .cmb-row > .handlediv {
735
+ display: none; }
736
+
737
+ /* Donation Levels Repeating Field */
738
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row .cmb2-radio-list label {
739
+ font-size: 12px; }
740
+
741
+ div.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {
742
+ padding: 0 !important;
743
+ margin: 0 !important;
744
+ min-width: 100%;
745
+ max-width: 0; }
746
+
747
+ .cmb2-id--give-levels-header {
748
+ padding: 10px 12px 0 !important;
749
+ margin: 0 !important;
750
+ background: #F7F7F7;
751
+ border-bottom: none !important; }
752
+ .cmb2-id--give-levels-header .table-container {
753
+ display: table;
754
+ width: 100%;
755
+ border-top: 1px solid #e9e9e9;
756
+ border-bottom: 1px solid #e9e9e9;
757
+ border-right: 1px solid #e9e9e9; }
758
+ .cmb2-id--give-levels-header .table-container > .table-row {
759
+ display: table-row;
760
+ background: #FCFCFC; }
761
+ .cmb2-id--give-levels-header .table-container > .table-row > .table-cell {
762
+ display: table-cell;
763
+ vertical-align: middle;
764
+ padding: 10px 15px;
765
+ border-left: 1px solid #e9e9e9; }
766
+ .cmb2-id--give-levels-header .table-container > .table-row > .table-cell.col-id {
767
+ display: none; }
768
+
769
+ #_give_donation_levels_repeat {
770
+ background: #F7F7F7;
771
+ padding: 0 12px 20px 1px;
772
+ box-sizing: border-box; }
773
+ #_give_donation_levels_repeat .cmb-row, #_give_donation_levels_repeat .inside {
774
+ margin: 0; }
775
+ #_give_donation_levels_repeat .cmb-remove-field-row {
776
+ margin: 3px 0 0; }
777
+ #_give_donation_levels_repeat .cmb-remove-field-row .button {
778
+ height: 25px;
779
+ padding: 0 3px; }
780
+ #_give_donation_levels_repeat .cmb-remove-field-row span.dashicons-no {
781
+ line-height: 1.15em; }
782
+ #_give_donation_levels_repeat .cmbhandle {
783
+ display: none; }
784
+ #_give_donation_levels_repeat .cmb-add-row {
785
+ margin: 12px 0 0; }
786
+
787
+ .give-time-field {
788
+ width: 65px; }
789
+
790
+ .give-money-field {
791
+ width: 75px;
792
+ margin-left: 0;
793
+ margin-right: 0; }
794
+
795
+ .give-money-symbol {
796
+ border: 1px solid #DDD;
797
+ background: #FCFCFC;
798
+ margin: 0;
799
+ font-size: 14px;
800
+ padding: 5px 8px; }
801
+
802
+ .give-money-symbol-before {
803
+ border-left: 0;
804
+ margin-left: -4px; }
805
+
806
+ .give-money-symbol-after {
807
+ margin-right: -1px; }
808
+
809
+ .give_options_panel input[type="text"] {
810
+ padding: 5px;
811
+ width: 100%; }
812
+
813
+ input.give-text_small,
814
+ input.give-text-small {
815
+ width: 100px !important; }
816
+
817
+ input.give-text-medium,
818
+ input.give-text_medium {
819
+ width: 200px !important; }
820
+
821
+ .give-underline {
822
+ text-decoration: underline; }
823
+
824
+ .postbox-container .cmb-row {
825
+ margin: 0; }
826
+ .postbox-container .cmb-row .cmb-th label {
827
+ padding-right: 8px; }
828
+
829
+ @media only screen and (min-width: 851px) {
830
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row {
831
+ float: right;
832
+ border-bottom: none;
833
+ padding-left: 10px; }
834
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row > .cmb-th {
835
+ display: none; }
836
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row > .cmb-td {
837
+ float: right;
838
+ width: 100%; }
839
+ .cmb-type-give-default-radio-inline .cmb-td {
840
+ margin-top: 5px; } }
841
+
842
+ /* Smaller Resolution Desktops */
843
+ @media only screen and (min-width: 851px) and (max-width: 1201px) {
844
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-remove-field-row {
845
+ width: 100%;
846
+ padding-top: 0; }
847
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-type-text-money {
848
+ width: 105px; }
849
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list input.cmb2-text-money {
850
+ width: 65px; }
851
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list .give-multilevel-text-field {
852
+ width: 160px; }
853
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list .cmb-type-radio-inline {
854
+ margin-right: 20px; }
855
+ .col-amount {
856
+ width: 70px; }
857
+ .col-text {
858
+ width: 140px; }
859
+ .col-sort {
860
+ display: none !important; }
861
+ .give-money-field {
862
+ width: 55px; } }
863
+
864
+ @media only screen and (min-width: 1201px) {
865
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-remove-field-row {
866
+ float: left; }
867
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row {
868
+ padding-left: 20px; }
869
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-remove-field-row.cmb-row {
870
+ padding-left: 0; }
871
+ .col-amount {
872
+ width: 93px; }
873
+ .col-text {
874
+ width: 195px; }
875
+ .col-sort {
876
+ width: 100px; }
877
+ .give-multilevel-text-field {
878
+ width: 205px; } }
879
+
880
+ @media only screen and (max-width: 850px) {
881
+ div.cmb-type-levels-repeater-header {
882
+ display: none !important; } }
883
+
884
+ /*Shortcode Input */
885
+ .shortcode-wrap {
886
+ margin: 1px 11px 12px 14px; }
887
+ .shortcode-wrap label {
888
+ margin: 0 0 3px;
889
+ display: block;
890
+ cursor: default; }
891
+ .shortcode-wrap .shortcode-input {
892
+ margin: 0;
893
+ width: 100%; }
894
+
895
+ .cmb2-id--give-content-option,
896
+ .cmb2-id--give-terms-option,
897
+ .cmb2-id--give-offline-donation-enable-billing-fields-single,
898
+ .cmb2-id--give-goal-option,
899
+ .cmb2-id--give-customize-offline-donations {
900
+ border-bottom: none !important;
901
+ margin: 0 !important; }
902
+
903
+ .cmb2-id--give-form-content,
904
+ .cmb2-id--give-agree-label,
905
+ .cmb2-id--give-offline-checkout-notes,
906
+ .cmb2-id--give-set-goal,
907
+ .cmb2-id--give-offline-donation-enable-billing-fields-single {
908
+ border-top: 1px solid #e9e9e9 !important; }
909
+
910
+ /*-------------------------------------
911
+ Terms and Conditions Metabox
912
+ ---------------------------------------*/
913
+ .cmb2-id--give-agree-label,
914
+ .cmb2-id--give-agree-text {
915
+ display: none; }
916
+
917
+ /*-------------------------------------
918
+ Dashboard Columns
919
+ -------------------------------------*/
920
+ input.shortcode-input {
921
+ width: 100%; }
922
+
923
+ /*-------------------------------------
924
+ ASIDE
925
+ -------------------------------------*/
926
+ #side-sortables .cmb-th label:after {
927
+ display: none; }
928
+
929
+ #side-sortables .cmb2-id--give-show-register-form {
930
+ padding: 10px 0 0 !important; }
931
+
932
+ #side-sortables .cmb2-wrap > .cmb-field-list > .cmb-row {
933
+ padding-top: 10px; }
934
+
935
+ #side-sortables .cmb-row .cmb2-metabox-description {
936
+ padding-bottom: 0; }
937
+
938
+ .cmb2-metabox-description {
939
+ font-size: 13px;
940
+ line-height: 1.5;
941
+ display: block; }
942
+
943
+ .give-tooltip {
944
+ margin: 0 3px;
945
+ padding: 0;
946
+ font-size: 14px;
947
+ -moz-transition: 0.2s all linear;
948
+ -o-transition: 0.2s all linear;
949
+ transition: 0.2s all linear;
950
+ color: rgba(51, 51, 51, 0.5);
951
+ position: relative;
952
+ top: 1px; }
953
+ .give-tooltip:hover {
954
+ color: #333; }
955
+
956
+ #give-metabox-form-data .inside {
957
+ margin: 0;
958
+ padding: 0; }
959
+
960
+ #give-metabox-form-data .give-metabox-panel-wrap {
961
+ background: #fff;
962
+ overflow: hidden; }
963
+
964
+ #give-metabox-form-data .give_options_panel {
965
+ padding-right: 170px; }
966
+ #give-metabox-form-data .give_options_panel .give-field-wrap {
967
+ padding: 1em 162px 1em 20px !important;
968
+ margin: 0;
969
+ border-bottom: 1px solid #eee; }
970
+ #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 {
971
+ float: right;
972
+ width: 135px;
973
+ padding: 0;
974
+ margin: 2px -150px 0 0;
975
+ line-height: 18px;
976
+ font-size: 12px;
977
+ font-weight: 400; }
978
+ #give-metabox-form-data .give_options_panel .give-field-wrap .give-field-description {
979
+ color: #aaaaaa;
980
+ font-size: 12px;
981
+ line-height: 18px;
982
+ display: block;
983
+ padding-top: 10px;
984
+ font-style: italic; }
985
+ #give-metabox-form-data .give_options_panel .give-field-wrap ul {
986
+ margin: 0; }
987
+ #give-metabox-form-data .give_options_panel .give-field-wrap .mce-container iframe, #give-metabox-form-data .give_options_panel .give-field-wrap textarea {
988
+ min-height: 250px !important; }
989
+ #give-metabox-form-data .give_options_panel .give-field-wrap:last-child {
990
+ border-bottom: 0; }
991
+ #give-metabox-form-data .give_options_panel textarea.give-field {
992
+ width: 100%; }
993
+ #give-metabox-form-data .give_options_panel .give-field-wrap:hover .give-field-row-actions {
994
+ display: block; }
995
+ #give-metabox-form-data .give_options_panel .give-field-wrap:last-child {
996
+ border-bottom: 0; }
997
+ #give-metabox-form-data .give_options_panel .give-inline-radio-fields li {
998
+ display: inline-block;
999
+ margin-left: 15px; }
1000
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section {
1001
+ padding: 10px;
1002
+ background: #f5f5f5; }
1003
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeatable-fields-section-wrapper {
1004
+ width: 100%;
1005
+ background-color: white;
1006
+ border-collapse: collapse; }
1007
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row {
1008
+ border-bottom: 15px solid #f5f5f5;
1009
+ background-color: white; }
1010
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-template {
1011
+ display: none; }
1012
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row:last-child {
1013
+ border-bottom: 10px solid #f5f5f5; }
1014
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-column {
1015
+ padding: 0; }
1016
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove {
1017
+ float: left;
1018
+ width: 36px;
1019
+ height: 36px;
1020
+ padding: 0;
1021
+ display: block;
1022
+ text-align: center;
1023
+ line-height: 34px;
1024
+ font-size: 21px;
1025
+ font-weight: 300;
1026
+ cursor: pointer; }
1027
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove:hover {
1028
+ background-color: red;
1029
+ color: white;
1030
+ width: 30px;
1031
+ height: 30px;
1032
+ border-radius: 30px;
1033
+ margin-top: 3px;
1034
+ line-height: 28px; }
1035
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head {
1036
+ border-bottom: 1px solid #eee;
1037
+ cursor: move; }
1038
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head h2 {
1039
+ text-align: right !important; }
1040
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.closed .toggle-indicator:before {
1041
+ content: "\f140"; }
1042
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row-wrap {
1043
+ background-color: #f5f5f5; }
1044
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row {
1045
+ margin: 5px 5px; }
1046
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-field-wrap:last-child {
1047
+ border-bottom: 1px solid #eee; }
1048
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-ui-placeholder-state-highlight {
1049
+ background-color: #68bb6c; }
1050
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-name {
1051
+ border: 0 !important;
1052
+ padding: 0 !important; }
1053
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-description {
1054
+ color: #aaaaaa;
1055
+ font-size: 12px;
1056
+ line-height: 18px;
1057
+ display: block;
1058
+ padding-bottom: 10px;
1059
+ font-style: italic; }
1060
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .ui-sortable-helper {
1061
+ display: table !important; }
1062
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.ui-sortable-helper {
1063
+ border-bottom: 0; }
1064
+
1065
+ #give-metabox-form-data .give-metabox-tabs {
1066
+ margin: 0;
1067
+ min-width: 170px;
1068
+ float: right;
1069
+ line-height: 1em;
1070
+ padding: 0 0 10px;
1071
+ position: relative;
1072
+ background-color: #fafafa;
1073
+ border-left: 1px solid #eee;
1074
+ box-sizing: border-box; }
1075
+ #give-metabox-form-data .give-metabox-tabs:after {
1076
+ content: "";
1077
+ display: block;
1078
+ width: 100%;
1079
+ height: 9999em;
1080
+ position: absolute;
1081
+ bottom: -9999em;
1082
+ right: 0;
1083
+ background-color: #fafafa;
1084
+ border-left: 1px solid #eee; }
1085
+ #give-metabox-form-data .give-metabox-tabs li {
1086
+ margin: 0;
1087
+ padding: 0;
1088
+ display: block;
1089
+ position: relative; }
1090
+ #give-metabox-form-data .give-metabox-tabs li a {
1091
+ margin: 0;
1092
+ padding: 10px;
1093
+ display: block;
1094
+ box-shadow: none;
1095
+ text-decoration: none;
1096
+ line-height: 20px !important;
1097
+ border-bottom: 1px solid #eee;
1098
+ overflow: hidden; }
1099
+ #give-metabox-form-data .give-metabox-tabs li a span {
1100
+ width: 122px;
1101
+ display: inline-block; }
1102
+ #give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li {
1103
+ background-color: #f1f1f1; }
1104
+ #give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li a {
1105
+ border-bottom-color: #e5e5e5; }
1106
+ #give-metabox-form-data .give-metabox-tabs li.active > a {
1107
+ color: #555;
1108
+ position: relative;
1109
+ background-color: #eee; }
1110
+ #give-metabox-form-data .give-metabox-tabs li.has-sub-fields.active > a {
1111
+ background-color: #ddd; }
1112
+ #give-metabox-form-data .give-metabox-tabs li.has-sub-fields:not(.active):hover ul.give-metabox-sub-tabs {
1113
+ display: block;
1114
+ position: absolute;
1115
+ bottom: 0;
1116
+ right: 170px;
1117
+ width: 170px;
1118
+ max-height: 250px;
1119
+ overflow-y: scroll; }
1120
+
1121
+ @media only screen and (min-width: 851px) and (max-width: 1025px), (max-width: 550px) {
1122
+ #give-metabox-form-data ul.give-metabox-tabs {
1123
+ min-width: 40px; }
1124
+ #give-metabox-form-data ul.give-metabox-tabs li > a {
1125
+ text-align: center; }
1126
+ #give-metabox-form-data ul.give-metabox-tabs li > a:before {
1127
+ margin-left: 0;
1128
+ font-size: 15px; }
1129
+ #give-metabox-form-data ul.give-metabox-tabs li > a span {
1130
+ display: none; }
1131
+ #give-metabox-form-data .give_options_panel {
1132
+ padding-right: 40px; } }
1133
+
1134
+ #give-export-payments .give_forms_categories,
1135
+ #give-export-payments .give_forms_tags {
1136
+ min-width: 250px;
1137
+ margin: 0 0 10px 0;
1138
+ display: block; }
1139
+ #give-export-payments .give_forms_categories input,
1140
+ #give-export-payments .give_forms_tags input {
1141
+ color: #999; }
1142
+
1143
+ #give-export-payments div.chosen-container:first-of-type {
1144
+ margin-top: 10px; }
1145
+
1146
+ /*-------------------------------------
1147
+ Doc Links
1148
+ -------------------------------------*/
1149
+ .give-docs-link {
1150
+ text-align: left;
1151
+ margin-left: 15px; }
1152
+ .give-docs-link a {
1153
+ color: #999;
1154
+ text-decoration: none;
1155
+ font-style: italic; }
1156
+ .give-docs-link a:hover {
1157
+ color: #0073aa; }
1158
+ .give-docs-link a span {
1159
+ font-style: normal; }
1160
+
1161
+ /**
1162
+ * Give Add-ons SCSS
1163
+ *
1164
+ * @description Add-on Styles
1165
+ * @package Give
1166
+ * @subpackage SCSS/Admin
1167
+ * @copyright Copyright (c) 2016, WordImpress
1168
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1169
+ */
1170
+ .type-download {
1171
+ float: right;
1172
+ margin: 0 0 1em 1em !important;
1173
+ padding: 0;
1174
+ vertical-align: top;
1175
+ width: 280px;
1176
+ text-decoration: none;
1177
+ color: inherit;
1178
+ border: 1px solid #ddd;
1179
+ display: block;
1180
+ min-height: 365px;
1181
+ overflow: hidden;
1182
+ background: #f5f5f5;
1183
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
1184
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
1185
+ -webkit-transition-property: border, background, color;
1186
+ transition-property: border, background, color;
1187
+ -webkit-transition-duration: .05s;
1188
+ transition-duration: .05s;
1189
+ -webkit-transition-timing-function: ease-in-out;
1190
+ transition-timing-function: ease-in-out;
1191
+ position: relative; }
1192
+ .type-download:hover {
1193
+ border: 1px solid #d1d1d1; }
1194
+ .type-download > .featured-img img {
1195
+ border-bottom: 1px solid #ddd; }
1196
+ .type-download .addon-content {
1197
+ *zoom: 1;
1198
+ padding: 15px 20px; }
1199
+ .type-download .addon-content:before, .type-download .addon-content:after {
1200
+ content: " ";
1201
+ display: table; }
1202
+ .type-download .addon-content:after {
1203
+ clear: both; }
1204
+ .type-download .addon-content .addon-heading {
1205
+ margin: 0 0 10px; }
1206
+ .type-download .addon-content .addon-heading a {
1207
+ outline: none;
1208
+ text-decoration: none; }
1209
+ .type-download .addon-footer-wrap {
1210
+ border-top: 1px solid #ddd;
1211
+ position: absolute;
1212
+ bottom: 2px;
1213
+ right: 0;
1214
+ width: 100%;
1215
+ background-color: #FFF;
1216
+ padding: 15px 20px; }
1217
+
1218
+ .give-view-addons-all span.dashicons, .type-download span.dashicons {
1219
+ width: 16px;
1220
+ height: 16px;
1221
+ font-size: 14px;
1222
+ margin: 6px 0 0 0; }
1223
+
1224
+ .give-view-addons-all span.dashicons {
1225
+ margin-right: 3px; }
1226
+
1227
+ /**
1228
+ * Give Reports SCSS
1229
+ *
1230
+ * @description Payment History Styles
1231
+ * @package Give
1232
+ * @subpackage SCSS/Admin
1233
+ * @copyright Copyright (c) 2016, WordImpress
1234
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1235
+ */
1236
+ #give-dashboard-widgets-wrap .inside {
1237
+ padding-top: 0;
1238
+ padding-bottom: 0;
1239
+ /* counteract extra padding in Income Report graph */ }
1240
+ .give_forms_page_give-reports #give-dashboard-widgets-wrap .inside {
1241
+ padding-right: 0; }
1242
+ #give-dashboard-widgets-wrap .inside #give-graphs-filter {
1243
+ float: none; }
1244
+
1245
+ #give-dashboard-widgets-wrap .postbox {
1246
+ margin-bottom: 10px; }
1247
+
1248
+ #give-dashboard-widgets-wrap table.reports-table {
1249
+ clear: none; }
1250
+
1251
+ #give-dashboard-widgets-wrap #give-date-range-options {
1252
+ float: right; }
1253
+ #give-dashboard-widgets-wrap #give-date-range-options > span {
1254
+ float: right;
1255
+ line-height: 30px;
1256
+ font-style: italic;
1257
+ padding: 0 0 0 5px; }
1258
+
1259
+ #give-graphs-filter {
1260
+ float: left; }
1261
+ #give-graphs-filter .tablenav {
1262
+ margin: 0 17px 0 0; }
1263
+ #give-graphs-filter .tablenav .actions {
1264
+ padding: 0; }
1265
+
1266
+ .give-graph .y1Axis {
1267
+ color: #66bb6a !important; }
1268
+
1269
+ .give-graph .y2Axis {
1270
+ color: #546e7a !important; }
1271
+
1272
+ body.give_forms_page_give-reports h1.nav-tab-wrapper, body.give_forms_page_give-reports h2.nav-tab-wrapper, body.give_forms_page_give-payment-history h1.nav-tab-wrapper, body.give_forms_page_give-payment-history h2.nav-tab-wrapper {
1273
+ margin-bottom: 10px; }
1274
+
1275
+ body.give_forms_page_give-reports .actions, body.give_forms_page_give-payment-history .actions {
1276
+ padding-top: 0; }
1277
+
1278
+ body.give_forms_page_give-reports .pagination-links, body.give_forms_page_give-payment-history .pagination-links {
1279
+ margin-right: 10px; }
1280
+
1281
+ body.give_forms_page_give-reports p.donor-search, body.give_forms_page_give-payment-history p.donor-search {
1282
+ margin-left: 10px; }
1283
+
1284
+ body.give_forms_page_give-reports .tablenav-right .tablenav-pages, body.give_forms_page_give-payment-history .tablenav-right .tablenav-pages {
1285
+ float: left; }
1286
+
1287
+ body.give_forms_page_give-reports .tablenav-right #give-reports-view, body.give_forms_page_give-payment-history .tablenav-right #give-reports-view {
1288
+ margin-top: 0; }
1289
+
1290
+ body.give_forms_page_give-reports .tablenav-right .actions, body.give_forms_page_give-payment-history .tablenav-right .actions {
1291
+ float: right; }
1292
+
1293
+ body.give_forms_page_give-reports p.search-box, body.give_forms_page_give-payment-history p.search-box {
1294
+ float: right; }
1295
+
1296
+ body.give_forms_page_give-reports .reports-table-nav.tablenav.top, body.give_forms_page_give-payment-history .reports-table-nav.tablenav.top {
1297
+ width: 100%;
1298
+ float: none;
1299
+ margin: 0 0 10px; }
1300
+
1301
+ body.give_forms_page_give-reports .reports-forms-details-wrap.top, body.give_forms_page_give-payment-history .reports-forms-details-wrap.top {
1302
+ float: left;
1303
+ overflow: hidden; }
1304
+ body.give_forms_page_give-reports .reports-forms-details-wrap.top #give-reports-filter, body.give_forms_page_give-payment-history .reports-forms-details-wrap.top #give-reports-filter {
1305
+ float: right; }
1306
+ body.give_forms_page_give-reports .reports-forms-details-wrap.top > .actions, body.give_forms_page_give-payment-history .reports-forms-details-wrap.top > .actions {
1307
+ padding-left: 0; }
1308
+
1309
+ body.give_forms_page_give-reports .tablenav.bottom, body.give_forms_page_give-payment-history .tablenav.bottom {
1310
+ margin-top: 10px; }
1311
+
1312
+ body.give_forms_page_give-reports h3.reports-earnings-title, body.give_forms_page_give-payment-history h3.reports-earnings-title {
1313
+ margin: 7px 0 0; }
1314
+
1315
+ body.give_forms_page_give-reports .reports-views-wrap, body.give_forms_page_give-payment-history .reports-views-wrap {
1316
+ padding: 3px 0 0; }
1317
+
1318
+ body.give_forms_page_give-reports .wrap.give-reports-donors-wrap, body.give_forms_page_give-payment-history .wrap.give-reports-donors-wrap {
1319
+ margin-left: 0;
1320
+ margin-bottom: 10px; }
1321
+
1322
+ body.give_forms_page_give-reports .widefat tbody td, body.give_forms_page_give-reports .widefat tbody th, body.give_forms_page_give-payment-history .widefat tbody td, body.give_forms_page_give-payment-history .widefat tbody th {
1323
+ padding-top: 12px;
1324
+ padding-bottom: 12px; }
1325
+
1326
+ body.give_forms_page_give-reports table.export-options-table tbody td {
1327
+ padding: 20px 12px;
1328
+ vertical-align: top; }
1329
+
1330
+ body.give_forms_page_give-reports table.export-options-table .give-export-form {
1331
+ position: relative; }
1332
+ body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap {
1333
+ background-color: transparent;
1334
+ padding: 12px 12px 4px;
1335
+ margin: 2px -11px -16px 0;
1336
+ overflow: auto; }
1337
+ body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap .spinner {
1338
+ margin: -2px 0 8px -12px; }
1339
+
1340
+ body.give_forms_page_give-reports table.export-options-table span#give-start-wrap input, body.give_forms_page_give-reports table.export-options-table span#give-end-wrap input {
1341
+ width: 100px; }
1342
+
1343
+ #export-donor-options-wrap p {
1344
+ padding: 20px 0 0;
1345
+ margin: 0;
1346
+ font-weight: bold; }
1347
+
1348
+ #export-donor-options-wrap ul {
1349
+ max-width: 900px;
1350
+ overflow: hidden; }
1351
+ #export-donor-options-wrap ul li {
1352
+ margin: 0;
1353
+ padding: 0 0 5px 5px;
1354
+ box-sizing: border-box;
1355
+ float: right;
1356
+ width: 33%; }
1357
+
1358
+ #give-tools-recount-form .notice-wrap {
1359
+ position: relative;
1360
+ min-height: 25px;
1361
+ margin: 10px -12px -12px;
1362
+ background: #EFEFEF;
1363
+ padding: 10px 12px 12px;
1364
+ border-top: 1px solid #E5E5E5; }
1365
+ #give-tools-recount-form .notice-wrap .give-progress {
1366
+ position: absolute;
1367
+ top: 15px; }
1368
+ #give-tools-recount-form .notice-wrap .spinner {
1369
+ position: absolute;
1370
+ left: 14px;
1371
+ top: 13px;
1372
+ margin: 0; }
1373
+ #give-tools-recount-form .notice-wrap #give-batch-success {
1374
+ margin-bottom: 6px; }
1375
+
1376
+ .give-progress {
1377
+ height: 15px;
1378
+ width: 95%;
1379
+ border-radius: 4px;
1380
+ overflow: hidden; }
1381
+ .give-progress > div {
1382
+ height: 100%;
1383
+ width: 0; }
1384
+
1385
+ .admin-color-fresh .give-export-form .give-progress div, .give-export-form .give-progress div {
1386
+ background: #0073aa; }
1387
+
1388
+ .admin-color-light .give-export-form .give-progress div {
1389
+ background: #888; }
1390
+
1391
+ .admin-color-blue .give-export-form .give-progress div {
1392
+ background: #096484; }
1393
+
1394
+ .admin-color-coffee .give-export-form .give-progress div {
1395
+ background: #c7a589; }
1396
+
1397
+ .admin-color-ectoplasm .give-export-form .give-progress div {
1398
+ background: #a3b745; }
1399
+
1400
+ .admin-color-midnight .give-export-form .give-progress div {
1401
+ background: #e14d43; }
1402
+
1403
+ .admin-color-sunrise .give-export-form .give-progress div {
1404
+ background: #dd823b; }
1405
+
1406
+ .recount-stats-controls form {
1407
+ display: inline; }
1408
+
1409
+ .give-recount-stats-descriptions {
1410
+ margin: 8px 0 0;
1411
+ display: block; }
1412
+ .give-recount-stats-descriptions span {
1413
+ line-height: 24px;
1414
+ font-size: 13px;
1415
+ font-style: italic;
1416
+ font-weight: normal;
1417
+ color: #aaa;
1418
+ margin: 0;
1419
+ display: none; }
1420
+
1421
+ .gateways-report-tablenav .actions.bulkactions {
1422
+ padding-left: 0; }
1423
+
1424
+ table.give-table td {
1425
+ vertical-align: middle; }
1426
+
1427
+ table.give-table td.row-title h3 {
1428
+ margin: 0 0 0.4em;
1429
+ font-size: 1.2em; }
1430
+
1431
+ table.give-table td.row-title p {
1432
+ font-size: 13px;
1433
+ font-style: italic;
1434
+ font-weight: normal;
1435
+ color: #aaa;
1436
+ margin: 0; }
1437
+
1438
+ #give-graphs-filter > .tablenav {
1439
+ height: auto; }
1440
+
1441
+ #give-logs-filter .search-box {
1442
+ float: left; }
1443
+
1444
+ #give-logs-filter .tablenav.top {
1445
+ float: right;
1446
+ clear: none;
1447
+ margin-top: 0; }
1448
+
1449
+ /**
1450
+ * Give Admin Welcome SCSS
1451
+ *
1452
+ * @description Displays when user activates the plugin
1453
+ * @package Give
1454
+ * @subpackage SCSS/Admin
1455
+ * @copyright Copyright (c) 2016, WordImpress
1456
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1457
+ */
1458
+ .welcome-h1 {
1459
+ display: inline-block;
1460
+ margin-left: 15px !important; }
1461
+
1462
+ .about-wrap h3 {
1463
+ margin: 1.5em 0 .6em; }
1464
+
1465
+ .about-wrap img {
1466
+ border: none; }
1467
+
1468
+ .give-badge {
1469
+ padding-top: 150px;
1470
+ height: 52px;
1471
+ width: 185px;
1472
+ color: #FFF;
1473
+ font-weight: bold;
1474
+ font-size: 14px;
1475
+ text-align: center;
1476
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
1477
+ margin: 0 -5px;
1478
+ position: absolute;
1479
+ top: 0;
1480
+ left: 0; }
1481
+
1482
+ .introduction {
1483
+ padding: 0 0 20px;
1484
+ margin: 0 0 20px; }
1485
+
1486
+ .feature-section {
1487
+ margin-top: 40px; }
1488
+ .feature-section span.dashicons {
1489
+ width: 16px;
1490
+ height: 16px;
1491
+ font-size: 14px;
1492
+ margin: 6px 0 0 0; }
1493
+ .feature-section .feature-section-item {
1494
+ width: 48%;
1495
+ float: right; }
1496
+ .feature-section div.last-feature {
1497
+ margin-left: 0;
1498
+ margin-right: 4%; }
1499
+
1500
+ [class^="dashboard_page_give-"] .about-text, [class*="dashboard_page_give-"] .about-text {
1501
+ min-height: 0; }
1502
+
1503
+ .social-items-wrap {
1504
+ display: inline-block; }
1505
+ .social-items-wrap > div {
1506
+ display: inline-block; }
1507
+ .social-items-wrap .twitter-item-wrap {
1508
+ margin: 0 0 10px 20px; }
1509
+
1510
+ .wp-person img {
1511
+ border-radius: 50%; }
1512
+
1513
+ .wp-person a.web {
1514
+ margin: 17px 0 0;
1515
+ font-weight: bold;
1516
+ font-style: italic; }
1517
+
1518
+ .newsletter-intro {
1519
+ font-size: 13px;
1520
+ font-style: italic;
1521
+ color: #777; }
1522
+
1523
+ .give-newsletter-form-wrap {
1524
+ margin: 10px -5px 20px 0;
1525
+ max-width: 700px; }
1526
+ .give-newsletter-form-wrap td {
1527
+ padding: 3px; }
1528
+ .give-newsletter-form-wrap div.give-newsletter-confirmation {
1529
+ background: #fff;
1530
+ -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
1531
+ box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
1532
+ margin: 5px 5px 4px 10px;
1533
+ padding: 1px 12px;
1534
+ border-right: 4px solid #7ad03a;
1535
+ display: none; }
1536
+ .give-newsletter-form-wrap div.give-newsletter-confirmation > p {
1537
+ margin: 0.5em 0;
1538
+ padding: 2px; }
1539
+
1540
+ /**
1541
+ * Give Logs SCSS
1542
+ *
1543
+ * @description Payment History Styles
1544
+ * @package Give
1545
+ * @subpackage SCSS/Admin
1546
+ * @copyright Copyright (c) 2016, WordImpress
1547
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1548
+ */
1549
+ #give_donor_export_form {
1550
+ margin: 0 0 5px; }
1551
+
1552
+ #give-payments-filter .give-donation-status {
1553
+ display: inline-block; }
1554
+
1555
+ .column-status .give-donation-status, .column-status .give-test-mode-transactions-label {
1556
+ display: inline-block; }
1557
+
1558
+ .column-status .give-test-mode-transactions-label {
1559
+ margin: 0 5px;
1560
+ vertical-align: middle; }
1561
+
1562
+ /**
1563
+ * Give Settings SCSS
1564
+ *
1565
+ * @package Give
1566
+ * @subpackage SCSS/Admin
1567
+ * @copyright Copyright (c) 2016, WordImpress
1568
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1569
+ */
1570
+ .give-settings-page .nav-tab-wrapper {
1571
+ margin-bottom: 5px;
1572
+ overflow: visible; }
1573
+
1574
+ .give-settings-page .cmb2-wrap .cmb-type-checkbox input[type="checkbox"] {
1575
+ display: block;
1576
+ margin-bottom: 5px; }
1577
+
1578
+ .give-settings-page div.give-submit-wrap {
1579
+ margin: 20px 0; }
1580
+
1581
+ .give-settings-page .give_forms_page_give-payment-history .postbox .hndle {
1582
+ cursor: default; }
1583
+
1584
+ .give-settings-page .give-input-field {
1585
+ width: 25em; }
1586
+
1587
+ .give-settings-page table table input[type="text"] {
1588
+ width: 15em; }
1589
+
1590
+ .give-setting-tab-header {
1591
+ clear: both;
1592
+ overflow: hidden;
1593
+ margin: 30px 0; }
1594
+ .give-setting-tab-header h2 {
1595
+ margin-top: 8px; }
1596
+
1597
+ .give-radio-inline ul {
1598
+ margin-top: 0; }
1599
+
1600
+ .give-radio-inline li {
1601
+ display: inline-block;
1602
+ margin: 0 15px 0 0; }
1603
+
1604
+ .give-radio-inline li:first-child {
1605
+ margin-right: 0; }
1606
+
1607
+ .give-tools-setting-page .bulkactions {
1608
+ overflow: visible; }
1609
+
1610
+ .form-table td.give-radio-inline fieldset li > label {
1611
+ margin: 5px 0 0 !important; }
1612
+
1613
+ p.give-field-description, .cmb2-metabox-description {
1614
+ color: #aaaaaa;
1615
+ font-style: italic;
1616
+ font-size: 13px !important; }
1617
+
1618
+ .give-image-thumb {
1619
+ position: relative;
1620
+ margin-top: 14px; }
1621
+ .give-image-thumb span.give-delete-image-thumb {
1622
+ position: absolute;
1623
+ background: red;
1624
+ color: white;
1625
+ border-radius: 30px;
1626
+ right: -10px;
1627
+ top: -10px; }
1628
+ .give-image-thumb img {
1629
+ max-width: 400px;
1630
+ border: 4px solid white; }
1631
+
1632
+ .cmb-type-give-title label,
1633
+ .give-setting-tab-header h2 {
1634
+ float: right;
1635
+ display: inline-block;
1636
+ width: 220px;
1637
+ font-style: italic;
1638
+ color: #AAA;
1639
+ margin: 0;
1640
+ font-size: 14px; }
1641
+
1642
+ .postbox-container #_give_donation_levels_repeat > .cmb-repeatable-grouping:not(:last-of-type) {
1643
+ border-bottom: 1px solid #e9e9e9;
1644
+ border-top: none; }
1645
+
1646
+ .cmb-type-enabled-gateways .cmb-td > p:first-of-type {
1647
+ display: none; }
1648
+
1649
+ .cmb-type-checkbox .cmb-td {
1650
+ width: 80%; }
1651
+ .cmb-type-checkbox .cmb-td label {
1652
+ font-size: 13px; }
1653
+
1654
+ /* Responsive Settings Rows */
1655
+ .give_settings .cmb2-wrap .cmb-row {
1656
+ display: table-row; }
1657
+ .give_settings .cmb2-wrap .cmb-row > .cmb-th, .give_settings .cmb2-wrap .cmb-row > .cmb-td {
1658
+ display: table-cell;
1659
+ float: none; }
1660
+
1661
+ /* Custom Title Separators */
1662
+ .cmb2-id-give-title label {
1663
+ font-style: italic;
1664
+ color: #AAA;
1665
+ cursor: default; }
1666
+
1667
+ .cmb2-id-give-title > div.cmb-th {
1668
+ padding-bottom: 10px; }
1669
+
1670
+ .cmb2-id-give-title > div.cmb-td {
1671
+ padding-bottom: 5px; }
1672
+
1673
+ .give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle {
1674
+ padding: 3px 0 0 4px;
1675
+ font-size: 15px;
1676
+ font-weight: normal;
1677
+ color: #bdbdbd;
1678
+ cursor: move; }
1679
+ .give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle:hover {
1680
+ color: #333; }
1681
+
1682
+ .give-email-tags-wrap {
1683
+ margin: 5px 0 0; }
1684
+ .give-email-tags-wrap code {
1685
+ font-style: normal;
1686
+ padding: 1px 2px;
1687
+ font-size: 12px; }
1688
+ .give-email-tags-wrap span {
1689
+ display: block;
1690
+ color: #AAA;
1691
+ font-style: italic;
1692
+ margin: 0 0 2px;
1693
+ font-size: 13px; }
1694
+ .give-email-tags-wrap .give_price_tag {
1695
+ display: none; }
1696
+
1697
+ #system-info-textarea {
1698
+ width: 800px;
1699
+ height: 600px;
1700
+ font-family: Menlo, Monaco, monospace;
1701
+ background: #FFF;
1702
+ white-space: pre;
1703
+ overflow: auto;
1704
+ display: block;
1705
+ direction: ltr; }
1706
+
1707
+ #give-download-sysinfo {
1708
+ margin: 0; }
1709
+
1710
+ .cmb2-id-api .cmb-td {
1711
+ padding: 0; }
1712
+
1713
+ .cmb2-id-api table th {
1714
+ padding: 10px 8px; }
1715
+
1716
+ .cmb2-id-api .give-ajax-user-search {
1717
+ padding: 3px 5px; }
1718
+
1719
+ .give_user_search_wrap {
1720
+ position: relative;
1721
+ overflow: visible; }
1722
+
1723
+ .give_user_search_results {
1724
+ position: absolute;
1725
+ right: 0;
1726
+ top: 27px;
1727
+ z-index: 100; }
1728
+ .give_user_search_results a.give-ajax-user-cancel {
1729
+ position: absolute;
1730
+ left: 6px;
1731
+ top: 2px; }
1732
+ .give_user_search_results ul {
1733
+ padding: 10px 10px 4px;
1734
+ margin: 0;
1735
+ background: #f0f0f0;
1736
+ border: 1px solid #DFDFDF;
1737
+ width: 300px;
1738
+ max-height: 200px;
1739
+ overflow-y: scroll; }
1740
+
1741
+ #api .tablenav .actions {
1742
+ overflow: visible; }
1743
+
1744
+ a.give-delete {
1745
+ color: #a00; }
1746
+
1747
+ .give-settings-wrap-licenses .give-license-deactivate {
1748
+ margin: 1px 10px 0 0;
1749
+ height: 30px; }
1750
+
1751
+ .give-settings-wrap-licenses .give-license-field {
1752
+ background: #FFF url("../images/close.png") no-repeat;
1753
+ background-position: 1.5% center;
1754
+ background-size: 18px; }
1755
+
1756
+ .give-settings-wrap-licenses .give-license-active, .give-settings-wrap-licenses .give-license-active:focus {
1757
+ background-image: url("../images/tick.png");
1758
+ background-color: #FFF;
1759
+ background-repeat: no-repeat;
1760
+ background-position: 1.5% center;
1761
+ outline: none;
1762
+ background-size: 16px;
1763
+ width: 100%; }
1764
+
1765
+ /* Addon grid design */
1766
+ .give-settings-page {
1767
+ margin-top: 20px; }
1768
+ .give-settings-page .give-settings-wrap-licenses {
1769
+ display: block;
1770
+ position: relative;
1771
+ float: right;
1772
+ width: 30.5%;
1773
+ min-height: 180px;
1774
+ margin: 20px 0 20px 1%; }
1775
+ .give-settings-page .give-license-key label {
1776
+ margin: 0 10px 0 0;
1777
+ padding: 10px 0;
1778
+ display: block;
1779
+ font-size: 14px;
1780
+ font-weight: 600;
1781
+ cursor: default; }
1782
+ .give-settings-page .give-license-block {
1783
+ margin: 0 10px; }
1784
+ .give-settings-page input[type="text"].give-license-field,
1785
+ .give-settings-page input[type="password"].give-license-field {
1786
+ width: 100%; }
1787
+ .give-settings-page .give-license-block input[type="submit"] {
1788
+ position: absolute;
1789
+ top: 3px;
1790
+ left: 10px;
1791
+ height: 24px;
1792
+ line-height: 22px;
1793
+ padding: 0 8px 1px;
1794
+ font-size: 11px; }
1795
+ .give-settings-page .give-license-status-notice {
1796
+ background: #fff;
1797
+ border-right: 4px solid #fff;
1798
+ -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
1799
+ box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
1800
+ margin: 5px 0 2px;
1801
+ padding: 1px 12px; }
1802
+ .give-settings-page .give-license-status-notice p {
1803
+ padding: 10px 0;
1804
+ margin: 0; }
1805
+ .give-settings-page .give-license-status-notice a {
1806
+ color: #444;
1807
+ cursor: pointer; }
1808
+ .give-settings-page .give-license-status-notice a:hover {
1809
+ text-decoration: none; }
1810
+ .give-settings-page .give-license-status-notice.give-license-expires-soon {
1811
+ border-color: #00a0d2; }
1812
+ .give-settings-page .give-license-status-notice.give-inactive,
1813
+ .give-settings-page .give-license-status-notice.give-license-expired {
1814
+ border-color: #e24e4e; }
1815
+ .give-settings-page .give-license-status-notice.give-license-error,
1816
+ .give-settings-page .give-license-status-notice.give-license-no_activations_left,
1817
+ .give-settings-page .give-license-status-notice.give-license-missing,
1818
+ .give-settings-page .give-license-status-notice.give-license-invalid,
1819
+ .give-settings-page .give-license-status-notice.give-license-site_inactive,
1820
+ .give-settings-page .give-license-status-notice.give-license-item_name_mismatch {
1821
+ border-color: orange; }
1822
+ .give-settings-page .give-license-status-notice.give-license-lifetime-notice,
1823
+ .give-settings-page .give-license-status-notice.give-license-expiration-date {
1824
+ border-color: #46b450; }
1825
+ .give-settings-page .give-license-status-notice.give-license-expires-soon a:hover,
1826
+ .give-settings-page .give-license-status-notice.give-license-expired a:hover {
1827
+ text-decoration: none; }
1828
+
1829
+ /* Responsive fixes: Addon grid design */
1830
+ @media screen and (max-width: 1100px) {
1831
+ .give-settings-page .give-settings-wrap-licenses {
1832
+ width: 45%;
1833
+ min-height: 150px; } }
1834
+
1835
+ @media screen and (max-width: 600px) {
1836
+ .give-settings-page .give-settings-wrap-licenses {
1837
+ width: 100%;
1838
+ max-width: 320px; } }
1839
+
1840
+ /* Tables */
1841
+ .give-table thead th {
1842
+ padding: 8px 10px !important; }
1843
+
1844
+ .give_settings .cmb-td hr + hr {
1845
+ display: none; }
1846
+
1847
+ .post-type-give_forms .mce-container iframe, .post-type-give_forms .wp-editor-area {
1848
+ min-height: 400px; }
1849
+
1850
+ .give-field-description {
1851
+ color: #aaaaaa;
1852
+ font-style: italic;
1853
+ margin: 0;
1854
+ padding-top: .5em; }
1855
+
1856
+ h2.give-nav-tab-wrapper {
1857
+ overflow: hidden;
1858
+ height: 35px; }
1859
+
1860
+ @media screen and (max-width: 600px) {
1861
+ h2.give-nav-tab-wrapper {
1862
+ height: 50px; } }
1863
+
1864
+ @media screen and (max-width: 414px) {
1865
+ .give-nav-tab-wrapper > a {
1866
+ width: 75%; } }
1867
+
1868
+ .give-sub-nav-tab-wrapper {
1869
+ position: relative;
1870
+ display: inline-block;
1871
+ z-index: 9999; }
1872
+ .give-sub-nav-tab-wrapper nav.give-sub-nav-tab {
1873
+ border: 1px solid #ccc;
1874
+ border-bottom: 0;
1875
+ position: absolute;
1876
+ top: 32px;
1877
+ left: 0; }
1878
+ .give-sub-nav-tab-wrapper nav.give-sub-nav-tab a {
1879
+ float: right;
1880
+ background: white;
1881
+ padding: 6px 10px;
1882
+ clear: both;
1883
+ text-decoration: none;
1884
+ border-bottom: 1px solid #ccc;
1885
+ min-width: 170px;
1886
+ color: #555;
1887
+ font-size: 14px; }
1888
+ .give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover {
1889
+ background: #e5e5e5; }
1890
+
1891
+ .give-sub-nav-tab-wrapper {
1892
+ display: none; }
1893
+
1894
+ #give-show-sub-nav {
1895
+ text-decoration: none;
1896
+ padding: 3px 5px;
1897
+ border-bottom: 1px solid #ccc;
1898
+ line-height: 0;
1899
+ background: white;
1900
+ border-radius: 4px; }
1901
+
1902
+ #give-show-sub-nav:hover, #give-show-sub-nav:active {
1903
+ outline: none;
1904
+ box-shadow: inset 0px 0px 4px #ddd; }
1905
+
1906
+ /**
1907
+ * Give Payment History SCSS
1908
+ *
1909
+ * @description Payment History Styles
1910
+ * @package Give
1911
+ * @subpackage SCSS/Admin
1912
+ * @copyright Copyright (c) 2016, WordImpress
1913
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1914
+ */
1915
+ #give-payment-filters, .give-submit-wrap {
1916
+ clear: both;
1917
+ background: #f5f5f5;
1918
+ border-color: #dfdfdf;
1919
+ overflow: auto;
1920
+ margin: 8px 0;
1921
+ padding: 12px;
1922
+ border-width: 1px;
1923
+ border-style: solid;
1924
+ font-size: 13px;
1925
+ line-height: 2.1em; }
1926
+
1927
+ #give-payment-filters p {
1928
+ color: #777; }
1929
+
1930
+ #give-payment-filters ul.subsubsub {
1931
+ margin-bottom: 8px; }
1932
+
1933
+ #give-payment-filters label {
1934
+ font-style: italic;
1935
+ margin: 0 10px; }
1936
+ #give-payment-filters label.give-start-date-label {
1937
+ margin-right: 5px; }
1938
+
1939
+ #give-payments-filter ul.subsubsub {
1940
+ margin-bottom: 12px; }
1941
+
1942
+ #give-payments-filter .tablenav.top {
1943
+ float: none; }
1944
+ #give-payments-filter .tablenav.top .bulkactions {
1945
+ margin-top: 1px;
1946
+ padding-top: 0; }
1947
+
1948
+ #give-payments-filter .give-email-column-value {
1949
+ font-size: 14px;
1950
+ font-weight: bold; }
1951
+
1952
+ #give-payments-filter #the-list .check-column input {
1953
+ margin-top: 1px; }
1954
+
1955
+ #give-payments-filter .column-details {
1956
+ width: 50px; }
1957
+
1958
+ #give-payments-filter .column-amount {
1959
+ width: 120px; }
1960
+
1961
+ tr.status-refunded td {
1962
+ background: #cecece;
1963
+ border-top-color: #ccc; }
1964
+
1965
+ .wp-list-table.forms th#date {
1966
+ width: 140px; }
1967
+
1968
+ .give-mobile-link {
1969
+ line-height: 32px;
1970
+ vertical-align: middle; }
1971
+
1972
+ .give-mobile-link img {
1973
+ max-width: 80%;
1974
+ height: auto;
1975
+ float: right; }
1976
+
1977
+ .give-donation-status > span {
1978
+ display: inline-block;
1979
+ width: 12px;
1980
+ height: 12px;
1981
+ position: relative;
1982
+ top: 1px;
1983
+ margin: 0;
1984
+ padding: 0;
1985
+ border-radius: 50%;
1986
+ background: #888;
1987
+ line-height: 16px; }
1988
+
1989
+ .give-donation-status.status-pending > span {
1990
+ background-color: #ffba00; }
1991
+
1992
+ .give-donation-status.status-complete > span, .give-donation-status.status-publish > span {
1993
+ background-color: #7ad03a; }
1994
+
1995
+ .give-donation-status.status-refunded > span {
1996
+ background-color: #777; }
1997
+
1998
+ .give-donation-status.status-failed > span {
1999
+ background-color: #a00; }
2000
+
2001
+ .give-donation-status.status-abandoned > span {
2002
+ background-color: #333; }
2003
+
2004
+ .give-donation-status.status-revoked > span {
2005
+ background-color: #d9534f; }
2006
+
2007
+ .give-donation-status.status-subscription > span, .give-donation-status.status-renewal > span, .give-donation-status.status-give_subscription > span {
2008
+ background-color: #5bc0de; }
2009
+
2010
+ #test-payment-label {
2011
+ padding: .2em .4em .3em;
2012
+ font-size: 11px;
2013
+ line-height: 1;
2014
+ color: #fff;
2015
+ text-align: center;
2016
+ white-space: nowrap;
2017
+ vertical-align: baseline;
2018
+ border-radius: .25em;
2019
+ background-color: #ffba00;
2020
+ margin: 0 15px;
2021
+ vertical-align: middle; }
2022
+ #test-payment-label:hover {
2023
+ color: #fff;
2024
+ text-decoration: none; }
2025
+
2026
+ #give-payments-filter .give-payment-id {
2027
+ padding: .2em .4em .3em;
2028
+ font-size: 11px;
2029
+ line-height: 1;
2030
+ color: #fff;
2031
+ text-align: center;
2032
+ white-space: nowrap;
2033
+ vertical-align: baseline;
2034
+ border-radius: .25em;
2035
+ font-weight: normal; }
2036
+ #give-payments-filter .give-payment-id:hover {
2037
+ color: #fff;
2038
+ text-decoration: none; }
2039
+
2040
+ #give-payments-filter .column-details {
2041
+ padding-left: 30px; }
2042
+
2043
+ #give-payments-filter .give-donation-status {
2044
+ display: inline-block; }
2045
+
2046
+ #give-order-update .give-donation-status {
2047
+ display: inline-block;
2048
+ float: none;
2049
+ margin: 0 10px;
2050
+ position: relative;
2051
+ top: 3px; }
2052
+
2053
+ .column-donation_form .donation-level-text-wrap {
2054
+ font-style: italic;
2055
+ display: block; }
2056
+
2057
+ /*---------------------
2058
+ Responsiveness
2059
+ ---------------------------*/
2060
+ @media handheld, only screen and (max-width: 640px) {
2061
+ .wp-list-table.forms th {
2062
+ width: auto !important; } }
2063
+
2064
+ .download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span {
2065
+ margin-right: -8px;
2066
+ margin-top: -8px; }
2067
+
2068
+ /* Payment Details
2069
+ -------------------------------------------------------------- */
2070
+ .give-admin-box .label {
2071
+ font-weight: 600; }
2072
+
2073
+ .give-admin-box-inside {
2074
+ margin: 0;
2075
+ padding: 3px 10px;
2076
+ clear: both;
2077
+ border-bottom: 1px solid #eee; }
2078
+
2079
+ .give-admin-box-inside .strong {
2080
+ font-weight: 600; }
2081
+
2082
+ .give-payment-fees .fee-label {
2083
+ font-weight: normal;
2084
+ color: #666; }
2085
+
2086
+ .give-admin-box .right {
2087
+ float: left; }
2088
+
2089
+ #give-order-update .inside,
2090
+ #give-order-details .inside {
2091
+ margin: 0;
2092
+ padding: 0; }
2093
+
2094
+ #give-order-update input.give_datepicker {
2095
+ width: 180px; }
2096
+
2097
+ #give-order-update input[type="number"].give-payment-time-hour,
2098
+ #give-order-update input[type="number"].give-payment-time-min {
2099
+ width: 50px; }
2100
+
2101
+ .give-admin-box-inside:last-child {
2102
+ border-bottom: 0; }
2103
+
2104
+ #give-edit-order-form .data-payment-key {
2105
+ word-break: break-all; }
2106
+
2107
+ .give-order-update-box #major-publishing-actions .button-secondary {
2108
+ margin-left: 10px; }
2109
+
2110
+ #give-donation-overview th {
2111
+ text-align: right; }
2112
+
2113
+ #give-donation-overview .give-select-chosen {
2114
+ width: 196px; }
2115
+
2116
+ #give-donation-overview ul,
2117
+ #give-order-address-country-wrap select,
2118
+ #give-donor-details .order-data-address input,
2119
+ #give-edit-order-form .column input,
2120
+ #give-donor-details .order-data-column p.data input {
2121
+ clear: both;
2122
+ display: block; }
2123
+
2124
+ .give-order-data input.small-text {
2125
+ margin: 0; }
2126
+
2127
+ #give-order-update span.label {
2128
+ display: inline;
2129
+ width: 50px; }
2130
+
2131
+ .give-order-update-box .button-primary {
2132
+ margin-left: 0; }
2133
+
2134
+ #give-edit-order-form .column .description {
2135
+ padding-left: 10px; }
2136
+
2137
+ #give-edit-order-form .column,
2138
+ #give-donation-overview .row > ul > li,
2139
+ #give-donation-overview .inside > ul > li {
2140
+ display: inline-block;
2141
+ position: relative;
2142
+ vertical-align: top; }
2143
+
2144
+ #give-donation-overview ul {
2145
+ font-size: 0; }
2146
+ #give-donation-overview ul li {
2147
+ font-size: 13px; }
2148
+ #give-donation-overview ul li.actions {
2149
+ text-align: left;
2150
+ min-width: 200px; }
2151
+ #give-donation-overview ul li.remove {
2152
+ text-align: left; }
2153
+ #give-donation-overview ul .row {
2154
+ padding: 12px;
2155
+ border-bottom: 1px solid #eee; }
2156
+
2157
+ #give-order-data .data span {
2158
+ color: #666;
2159
+ font-weight: 600; }
2160
+
2161
+ input.give-price-field {
2162
+ width: 80px;
2163
+ padding: 3px 5px; }
2164
+
2165
+ .give_forms_page_give-payment-history.js .postbox .hndle {
2166
+ cursor: default; }
2167
+
2168
+ #give-payment-notes textarea {
2169
+ min-height: 150px; }
2170
+
2171
+ #give-payment-notes #give-add-payment-note {
2172
+ margin: 6px 0 15px; }
2173
+
2174
+ #give-billing-details .column > div {
2175
+ margin: 0 0 10px; }
2176
+
2177
+ #give-billing-details label {
2178
+ display: block; }
2179
+
2180
+ #give-billing-details .column-container {
2181
+ padding: 5px 0 10px; }
2182
+
2183
+ #give-billing-details input[type="text"] {
2184
+ width: 95%; }
2185
+
2186
+ #give-billing-details .chosen-container {
2187
+ width: 98% !important; }
2188
+
2189
+ @media screen and (min-width: 1200px) {
2190
+ #give-edit-order-form .column {
2191
+ width: 33%; }
2192
+ #give-donation-overview.columns-4 li.actions {
2193
+ width: 25%;
2194
+ margin-top: 0;
2195
+ margin-left: 0; } }
2196
+
2197
+ @media screen and (max-width: 1199px) {
2198
+ #give-edit-order-form .column {
2199
+ width: 49%; } }
2200
+
2201
+ @media screen and (max-width: 782px) {
2202
+ .order-data-column input[type="email"] {
2203
+ padding: 6px 10px; } }
2204
+
2205
+ #give-donor-details .inside, #give-donation-overview .inside {
2206
+ margin-top: 0; }
2207
+
2208
+ .give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables {
2209
+ padding-top: 0; }
2210
+
2211
+ /**
2212
+ * Give Admin Dashboard SCSS
2213
+ *
2214
+ * @description Styles the Give dashboard widget
2215
+ * @package Give
2216
+ * @subpackage SCSS/Admin
2217
+ * @copyright Copyright (c) 2016, WordImpress
2218
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
2219
+ */
2220
+ .give-dashboard-widget .give-dashboard-today {
2221
+ text-align: center; }
2222
+ .give-dashboard-widget .give-dashboard-today .give-dashboard-date-today {
2223
+ margin: 10px 0 0;
2224
+ padding: 0; }
2225
+ .give-dashboard-widget .give-dashboard-today .give-dashboard-happy-day {
2226
+ padding: 3px;
2227
+ margin: 0; }
2228
+ .give-dashboard-widget .give-dashboard-today .give-dashboard-today-earnings {
2229
+ font-size: 42px;
2230
+ color: #4ead61;
2231
+ font-weight: bold;
2232
+ margin: 15px 0 0;
2233
+ line-height: 1; }
2234
+ .give-dashboard-widget .give-dashboard-today .give-donations-today {
2235
+ font-size: 18px;
2236
+ font-weight: bold;
2237
+ margin: 0 0 30px;
2238
+ padding: 4px 0 1px; }
2239
+ .give-dashboard-widget .give-dashboard-today .give-last-seven {
2240
+ font-size: 14px;
2241
+ font-weight: bold;
2242
+ padding: 0;
2243
+ margin: 0 0 30px; }
2244
+
2245
+ .give-dashboard-widget .give-table-stats {
2246
+ width: 100%;
2247
+ text-align: center;
2248
+ margin: 0;
2249
+ table-layout: fixed;
2250
+ border-top: 1px solid #ececec;
2251
+ border-spacing: 0; }
2252
+ .give-dashboard-widget .give-table-stats .give-dashboard-stat-total, .give-dashboard-widget .give-table-stats .give-dashboard-stat-total-label {
2253
+ padding: 0;
2254
+ margin: 0; }
2255
+ .give-dashboard-widget .give-table-stats .give-dashboard-stat-total {
2256
+ color: #4ead61;
2257
+ font-weight: bold;
2258
+ font-size: 16px; }
2259
+
2260
+ #give_dashboard_sales > .inside {
2261
+ padding: 0; }
2262
+
2263
+ #give_dashboard_sales .give-table-stats td {
2264
+ padding: 10px 0; }
2265
+
2266
+ #give_dashboard_sales .give-table-stats td:first-of-type {
2267
+ border-left: 1px solid #ececec; }
2268
+
2269
+ #give_dashboard_sales .give-table-stats tr#give-table-stats-tr-1 td {
2270
+ border-bottom: 1px solid #ececec; }
2271
+
2272
+ #dashboard_right_now .give-forms-count:before {
2273
+ font-family: 'give-icomoon';
2274
+ speak: none;
2275
+ font-style: normal;
2276
+ font-weight: normal;
2277
+ font-variant: normal;
2278
+ text-transform: none;
2279
+ line-height: 1;
2280
+ -webkit-font-smoothing: antialiased;
2281
+ -moz-osx-font-smoothing: grayscale;
2282
+ font-size: 18px;
2283
+ width: 18px;
2284
+ height: 18px;
2285
+ content: "\e800"; }
2286
+
2287
+ /**
2288
+ * Give Forms SCSS
2289
+ *
2290
+ * @package Give
2291
+ * @subpackage SCSS/Admin
2292
+ * @copyright Copyright (c) 2016, WordImpress
2293
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
2294
+ */
2295
+ .give_forms_page_give-donors .wrap > h2 {
2296
+ margin-bottom: 15px; }
2297
+
2298
+ .give_forms_page_give-donors .nav-tab-wrapper .dashicons {
2299
+ position: relative;
2300
+ top: 2px;
2301
+ margin: 0 0 0 3px; }
2302
+
2303
+ .give_forms_page_give-donors #give-donors-filter {
2304
+ position: relative; }
2305
+ .give_forms_page_give-donors #give-donors-filter p.search-box {
2306
+ float: right;
2307
+ margin: 0; }
2308
+
2309
+ .give_forms_page_give-donors .tablenav.top {
2310
+ float: left;
2311
+ clear: none; }
2312
+
2313
+ #give-customer-card-wrapper {
2314
+ margin-right: -1px;
2315
+ z-index: 2;
2316
+ min-height: 200px; }
2317
+ #give-customer-card-wrapper input {
2318
+ font-weight: normal; }
2319
+ #give-customer-card-wrapper .customer-section {
2320
+ border-bottom: 1px solid #eee;
2321
+ margin-bottom: 10px; }
2322
+ #give-customer-card-wrapper .customer-section table {
2323
+ margin-bottom: 0; }
2324
+ #give-customer-card-wrapper > div:first-child {
2325
+ padding-top: 20px; }
2326
+ #give-customer-card-wrapper > div:last-child {
2327
+ padding-bottom: 20px;
2328
+ border: none; }
2329
+ #give-customer-card-wrapper .avatar-wrap {
2330
+ padding: 0 0 15px 15px;
2331
+ text-align: center;
2332
+ float: right; }
2333
+ #give-customer-card-wrapper .avatar-wrap img {
2334
+ border-radius: 3px; }
2335
+ #give-customer-card-wrapper a.delete {
2336
+ text-decoration: none;
2337
+ color: #ff0000;
2338
+ margin-left: 5px; }
2339
+ #give-customer-card-wrapper .donor-bio-header .customer-since {
2340
+ margin: 10px 0;
2341
+ font-size: 16px; }
2342
+ #give-customer-card-wrapper .donor-bio-header .customer-id {
2343
+ display: inline-block;
2344
+ font-size: 24px;
2345
+ font-weight: 600;
2346
+ margin-left: 10px; }
2347
+ #give-customer-card-wrapper .donor-bio-header .customer-name-wrap {
2348
+ display: inline-block; }
2349
+ #give-customer-card-wrapper .donor-bio-header .customer-edit-link {
2350
+ margin-bottom: 15px; }
2351
+
2352
+ .customer-main-wrapper {
2353
+ clear: both;
2354
+ margin: 0 0 20px; }
2355
+ @media (max-width: 655px) {
2356
+ .customer-main-wrapper {
2357
+ width: 100%; } }
2358
+ .customer-main-wrapper table {
2359
+ margin: 0; }
2360
+ .customer-main-wrapper input {
2361
+ width: 200px; }
2362
+
2363
+ #donor-summary {
2364
+ padding: 0 20px; }
2365
+ #donor-summary:after {
2366
+ font-family: "dashicons";
2367
+ content: "\f110";
2368
+ position: absolute;
2369
+ top: 10px;
2370
+ left: 10px;
2371
+ font-size: 100px;
2372
+ color: #F0F0F0;
2373
+ z-index: 0; }
2374
+
2375
+ #give-customer-card-wrapper .customer-address-wrapper {
2376
+ width: 202px; }
2377
+ #give-customer-card-wrapper .customer-address-wrapper span[data-key="line2"] {
2378
+ display: table;
2379
+ clear: both; }
2380
+
2381
+ #give-customer-card-wrapper .customer-address-wrapper select {
2382
+ width: 200px; }
2383
+
2384
+ #give-customer-card-wrapper .customer-info {
2385
+ min-height: 185px; }
2386
+
2387
+ #give-customer-card-wrapper .info-wrapper {
2388
+ min-height: 125px; }
2389
+
2390
+ .customer-info .customer-name {
2391
+ font-size: 24px;
2392
+ font-weight: 600; }
2393
+
2394
+ .disconnect-user a {
2395
+ font-size: 12px;
2396
+ font-weight: normal;
2397
+ text-decoration: none; }
2398
+
2399
+ #customer-edit-actions {
2400
+ text-align: center;
2401
+ margin-bottom: 20px;
2402
+ line-height: 28px; }
2403
+
2404
+ #customer-edit-actions .button-secondary {
2405
+ margin-left: 10px; }
2406
+
2407
+ #give-customer-card-wrapper .edit-item {
2408
+ display: none; }
2409
+
2410
+ #give-customer-card-wrapper .give_user_search_results {
2411
+ right: 1px;
2412
+ top: 16px; }
2413
+
2414
+ #give-customer-card-wrapper .give_user_search_results ul {
2415
+ width: 200px; }
2416
+
2417
+ #customer-stats-wrapper {
2418
+ margin: 0 auto;
2419
+ text-align: center;
2420
+ padding: 15px; }
2421
+ #customer-stats-wrapper ul {
2422
+ margin: 0;
2423
+ padding: 0;
2424
+ overflow: hidden; }
2425
+ #customer-stats-wrapper ul li {
2426
+ width: 50%;
2427
+ float: right;
2428
+ line-height: 22px;
2429
+ font-size: 14px;
2430
+ margin: 0; }
2431
+ #customer-stats-wrapper a {
2432
+ text-decoration: none; }
2433
+
2434
+ #customer-stats-wrapper .dashicons {
2435
+ color: #888; }
2436
+
2437
+ #customer-tables-wrapper table {
2438
+ width: 100%;
2439
+ text-align: center; }
2440
+
2441
+ #customer-tables-wrapper th {
2442
+ text-align: center; }
2443
+
2444
+ #customer-tables-wrapper .donations tr > th:first-child,
2445
+ #customer-tables-wrapper .donations tr > td:first-child,
2446
+ #customer-tables-wrapper .emails tr > th:first-child,
2447
+ #customer-tables-wrapper .emails tr > td:first-child {
2448
+ text-align: right; }
2449
+
2450
+ #customer-tables-wrapper .donations tr > td:only-child {
2451
+ text-align: center; }
2452
+
2453
+ #customer-notes-wrapper {
2454
+ min-height: 50px; }
2455
+
2456
+ .customer-notes-header span, .customer-notes-header img {
2457
+ font-weight: 600;
2458
+ line-height: 30px;
2459
+ vertical-align: middle; }
2460
+
2461
+ .customer-note-input {
2462
+ width: 100%;
2463
+ margin-bottom: 5px; }
2464
+
2465
+ #give-customer-notes div:nth-of-type(even) {
2466
+ background-color: #f9f9f9; }
2467
+
2468
+ #give-customer-notes .customer-note-wrapper {
2469
+ border-bottom: 1px solid #f9f9f9;
2470
+ min-height: 38px;
2471
+ padding: 0; }
2472
+ #give-customer-notes .customer-note-wrapper .note-content-wrap {
2473
+ padding: 10px 12px;
2474
+ line-height: 20px;
2475
+ font-size: 14px; }
2476
+
2477
+ #give-customer-notes .give-no-customer-notes {
2478
+ text-align: center;
2479
+ padding: 20px; }
2480
+
2481
+ .customer-note-wrapper span {
2482
+ display: block; }
2483
+
2484
+ .delete-customer {
2485
+ text-align: center; }
2486
+
2487
+ /**
2488
+ * Give Admin Buttons SCSS
2489
+ *
2490
+ * @package Give
2491
+ * @subpackage SCSS/Admin
2492
+ * @copyright Copyright (c) 2016, WordImpress
2493
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
2494
+ */
2495
+ /*=Give Shortcode Button
2496
+ --------------------------------------*/
2497
+ @media screen and (max-width: 782px) {
2498
+ #wp-content-media-buttons a.give-thickbox {
2499
+ padding: 6px 14px;
2500
+ line-height: normal;
2501
+ font-size: 14px;
2502
+ height: auto; }
2503
+ .wp-media-buttons span#give-media-button {
2504
+ margin-top: 0 !important;
2505
+ margin-right: 2px !important; } }
2506
+
2507
+ /*=Button in shortcode tinymce dialog
2508
+ --------------------------------------*/
2509
+ .mce-primary.mce-give-primary button {
2510
+ padding-left: 10px;
2511
+ padding-right: 10px; }
2512
+
2513
+ /*=Admin Buttons w/ Icons
2514
+ --------------------------------------*/
2515
+ /* extends .wp-core-ui .button */
2516
+ .wp-core-ui .give-admin-button {
2517
+ padding-right: 7px;
2518
+ padding-left: 7px; }
2519
+
2520
+ /* matches style of Add Media and Give Shortcodes buttons */
2521
+ .give-admin-button-icon {
2522
+ display: inline-block;
2523
+ width: 18px;
2524
+ height: 18px;
2525
+ vertical-align: text-top;
2526
+ margin: 0 2px;
2527
+ /* specific DashIcon styles */ }
2528
+ .give-admin-button-icon:before {
2529
+ font: 400 18px/1 dashicons;
2530
+ speak: none;
2531
+ -webkit-font-smoothing: antialiased;
2532
+ -moz-osx-font-smoothing: grayscale; }
2533
+ .give-admin-button-icon-update:before {
2534
+ content: "\f463"; }
2535
+
2536
+ /* =Primary button in shortcode tinymce dialog
2537
+ -------------------------------------------------------------- */
2538
+ .mce-primary.mce-sc-primary button {
2539
+ padding-left: 10px;
2540
+ padding-right: 10px; }
2541
+
2542
+ .mce-sc-popup a {
2543
+ text-decoration: underline; }
2544
+
2545
+ .mce-sc-popup p {
2546
+ margin-bottom: 1em; }
2547
+ .mce-sc-popup p.strong {
2548
+ font-weight: 600; }
2549
+ .mce-sc-popup p.no-margin {
2550
+ margin-bottom: 0; }
2551
+ .mce-sc-popup p.margin-top {
2552
+ margin-top: 1em; }
2553
+
2554
+ .mce-sc-popup .mce-listbox button {
2555
+ text-overflow: ellipsis;
2556
+ overflow: hidden !important; }
2557
+
2558
+ /* =Shortcode button above wp_editor
2559
+ -------------------------------------------------------------- */
2560
+ @media screen and (max-width: 782px) {
2561
+ .wp-media-buttons button.sc-button span {
2562
+ width: 18px !important; } }
2563
+
2564
+ .wp-media-buttons button.sc-button {
2565
+ outline: none;
2566
+ padding-right: 5px;
2567
+ margin-left: 0; }
2568
+ .wp-media-buttons button.sc-button:active {
2569
+ margin-bottom: 5px; }
2570
+
2571
+ button.sc-button:after {
2572
+ position: relative;
2573
+ display: inline-block;
2574
+ top: -1px;
2575
+ content: '';
2576
+ width: 0;
2577
+ height: 0;
2578
+ border-top: 6px solid #777;
2579
+ border-left: 4px solid transparent;
2580
+ border-right: 4px solid transparent;
2581
+ margin: 0 6px 0 3px; }
2582
+
2583
+ button.sc-button.active:after {
2584
+ top: -2px;
2585
+ border-top: 0;
2586
+ border-bottom: 6px solid #32373c; }
2587
+
2588
+ /* =Shortcode button dropdown menu
2589
+ -------------------------------------------------------------- */
2590
+ .sc-wrap {
2591
+ position: relative;
2592
+ display: inline-block;
2593
+ margin-left: 5px; }
2594
+
2595
+ div.sc-menu {
2596
+ display: none;
2597
+ position: absolute;
2598
+ top: 100%;
2599
+ right: 0;
2600
+ min-width: 100%;
2601
+ max-height: 410px;
2602
+ font-size: 14px;
2603
+ box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
2604
+ background: #fff;
2605
+ border: 1px solid rgba(0, 0, 0, 0.15);
2606
+ overflow: auto;
2607
+ overflow-x: hidden;
2608
+ padding: 5px 0;
2609
+ margin: -2px 0 0;
2610
+ z-index: 1002; }
2611
+
2612
+ div.sc-shortcode {
2613
+ display: block;
2614
+ white-space: nowrap;
2615
+ cursor: pointer;
2616
+ padding: 6px 12px;
2617
+ margin-bottom: 2px; }
2618
+ div.sc-shortcode:hover {
2619
+ color: #fff; }
2620
+
2621
+ /* =Shortcode tinymce dialog backdrop
2622
+ -------------------------------------------------------------- */
2623
+ #mce-modal-block.mce-reset.mce-fade.mce-in {
2624
+ opacity: 0.7;
2625
+ filter: alpha(opacity=70); }
2626
+
2627
+ /**
2628
+ * Give System Info SCSS
2629
+ *
2630
+ * @description System Info Styles
2631
+ * @package Give
2632
+ * @subpackage SCSS/Admin
2633
+ * @copyright Copyright (c) 2016, WordImpress
2634
+ * @license https://opensource.org/licenses/gpl-3.0/ GNU Public License
2635
+ *
2636
+ * The following code is a derivative work of the code from the WooCommerce
2637
+ * plugin, which is licensed GPLv3. This code therefore is also licensed under
2638
+ * the terms of the GNU Public License, version 3.
2639
+ *
2640
+ * Copyright (c) 2015 WooThemes
2641
+ * Copyright (c) 2016 WordImpress, LLC
2642
+ */
2643
+ .give-status-table {
2644
+ margin-bottom: 1em; }
2645
+ .give-status-table h2 {
2646
+ font-size: 14px;
2647
+ margin: 0; }
2648
+ .give-status-table tr:nth-child(2n) th,
2649
+ .give-status-table tr:nth-child(2n) td {
2650
+ background: #fcfcfc; }
2651
+ .give-status-table th {
2652
+ font-weight: 700;
2653
+ padding: 9px; }
2654
+ .give-status-table td:first-child {
2655
+ width: 33%; }
2656
+ .give-status-table td.help {
2657
+ width: 1em; }
2658
+ .give-status-table td {
2659
+ padding: 9px;
2660
+ font-size: 1.1em; }
2661
+ .give-status-table td mark {
2662
+ background: transparent none; }
2663
+ .give-status-table td mark.yes {
2664
+ color: #7ad03a; }
2665
+ .give-status-table td mark.no {
2666
+ color: #999; }
2667
+ .give-status-table td mark.error {
2668
+ color: #a00; }
2669
+ .give-status-table td ul {
2670
+ margin: 0; }
2671
+
2672
+ .wrap div.give-debug-report-wrapper {
2673
+ margin-top: 1em; }
2674
+
2675
+ .give-debug-report {
2676
+ display: none;
2677
+ margin: 10px 0;
2678
+ padding: 0;
2679
+ position: relative; }
2680
+ .give-debug-report textarea {
2681
+ font-family: monospace;
2682
+ width: 100%;
2683
+ margin: 0;
2684
+ height: 300px;
2685
+ padding: 20px;
2686
+ -moz-border-radius: 0;
2687
+ -webkit-border-radius: 0;
2688
+ border-radius: 0;
2689
+ resize: none;
2690
+ font-size: 12px;
2691
+ line-height: 20px;
2692
+ outline: 0; }
assets/css/give-admin-rtl.min.css ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give Admin SCSS/CSS
3
+ *
4
+ * @description: The Main SCSS file for ADMIN styles which is compiled and minified via Gulp taskrunner
5
+ * @package: Give
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;height:100%;width: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}#mce-modal-block.mce-reset.mce-fade.mce-in,#qtip-overlay div{opacity:.7;filter:alpha(opacity=70)}.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;-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 a: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;content:"\e903"}.give-metabox-tabs li.form_field_options_tab>a:before{content:"\e604"}.give-metabox-tabs li.donation_goal_options_tab>a:before{content:"\e901"}.give-metabox-tabs li.form_display_options_tab>a:before{content:"\e90c"}.give-metabox-tabs li.form_content_options_tab>a:before{content:"\e902"}.give-metabox-tabs li.form_terms_options_tab>a:before{position:relative;top:1px;content:"\e900"}.give-metabox-tabs li.offline_donations_options_tab>a:before{content:"\e8df"}#_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:-1px}.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}@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}#side-sortables .cmb-th label:after,.cmb2-id--give-agree-label,.cmb2-id--give-agree-text{display:none}.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}input.shortcode-input{width:100%}#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{padding-right:170px}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:1em 162px 1em 20px!important;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 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:36px;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:30px;height:30px;border-radius:30px;margin-top:3px;line-height:28px}#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-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-metabox-form-data .give-metabox-tabs{margin:0;min-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{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-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:170px;width:170px;max-height:250px;overflow-y:scroll}@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{display:none}#give-metabox-form-data .give_options_panel{padding-right:40px}}#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-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;border:1px solid #ddd;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 h3.reports-earnings-title,body.give_forms_page_give-reports h3.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}.give-progress{height:15px;width:95%;border-radius:4px;overflow:hidden}.give-progress>div{height:100%;width:0}.admin-color-fresh .give-export-form .give-progress div,.give-export-form .give-progress div{background:#0073aa}.admin-color-light .give-export-form .give-progress div{background:#888}.admin-color-blue .give-export-form .give-progress div{background:#096484}.admin-color-coffee .give-export-form .give-progress div{background:#c7a589}.admin-color-ectoplasm .give-export-form .give-progress div{background:#a3b745}.admin-color-midnight .give-export-form .give-progress div{background:#e14d43}.admin-color-sunrise .give-export-form .give-progress div{background:#dd823b}.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 .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}.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}.give-image-thumb img{max-width:400px;border:4px solid #fff}.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}.cmb2-id-api .cmb-td{padding:0}.cmb2-id-api table th{padding:10px 8px}.cmb2-id-api .give-ajax-user-search{padding:3px 5px}.give_user_search_wrap{position:relative;overflow:visible}.give_user_search_results{position:absolute;right:0;top:27px;z-index:100}.give_user_search_results a.give-ajax-user-cancel{position:absolute;left:6px;top:2px}.give_user_search_results ul{padding:10px 10px 4px;margin:0;background:#f0f0f0;border:1px solid #DFDFDF;width:300px;max-height:200px;overflow-y:scroll}#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{margin-top:20px}.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}h2.give-nav-tab-wrapper{height:50px}}@media screen and (max-width:414px){.give-nav-tab-wrapper>a{width:75%}}.give-sub-nav-tab-wrapper{position:relative;z-index:9999;display:none}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{border:1px solid #ccc;border-bottom:0;position:absolute;top:32px;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:#e5e5e5}#give-show-sub-nav{text-decoration:none;padding:3px 5px;border-bottom:1px solid #ccc;line-height:0;background:#fff;border-radius:4px}#give-show-sub-nav:active,#give-show-sub-nav:hover{outline:0;box-shadow:inset 0 0 4px #ddd}#give-payment-filters,.give-submit-wrap{clear:both;background:#f5f5f5;border-color:#dfdfdf;overflow:auto;margin:8px 0;padding:12px;border-width:1px;border-style:solid;font-size:13px;line-height:2.1em}#give-payment-filters p{color:#777}#give-payment-filters ul.subsubsub{margin-bottom:8px}#give-payment-filters label{font-style:italic;margin:0 10px}#give-payment-filters label.give-start-date-label{margin-right:5px}#give-payments-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-payment-fees .fee-label{font-weight:400;color:#666}.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:196px}#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}#give-billing-details .column-container{padding:5px 0 10px}#give-billing-details input[type=text]{width:95%}#give-billing-details .chosen-container{width:98%!important}@media screen and (min-width:1200px){#give-edit-order-form .column{width:33%}#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-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{float:right;margin:0}.give_forms_page_give-donors .tablenav.top{float:left;clear:none}#give-customer-card-wrapper{margin-right:-1px;z-index:2;min-height:200px}#give-customer-card-wrapper input{font-weight:400}#give-customer-card-wrapper .customer-section{border-bottom:1px solid #eee;margin-bottom:10px}#give-customer-card-wrapper .customer-section table{margin-bottom:0}#give-customer-card-wrapper>div:first-child{padding-top:20px}#give-customer-card-wrapper>div:last-child{padding-bottom:20px;border:none}#give-customer-card-wrapper .avatar-wrap{padding:0 0 15px 15px;text-align:center;float:right}#give-customer-card-wrapper .avatar-wrap img{border-radius:3px}#give-customer-card-wrapper a.delete{text-decoration:none;color:red;margin-left:5px}#give-customer-card-wrapper .donor-bio-header .customer-since{margin:10px 0;font-size:16px}#give-customer-card-wrapper .donor-bio-header .customer-id{display:inline-block;font-size:24px;font-weight:600;margin-left:10px}#give-customer-card-wrapper .donor-bio-header .customer-name-wrap{display:inline-block}#give-customer-card-wrapper .donor-bio-header .customer-edit-link{margin-bottom:15px}.customer-main-wrapper{clear:both;margin:0 0 20px}@media (max-width:655px){.customer-main-wrapper{width:100%}}.customer-main-wrapper table{margin:0}.customer-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-customer-card-wrapper .customer-address-wrapper{width:202px}#give-customer-card-wrapper .customer-address-wrapper select,#give-customer-card-wrapper .give_user_search_results ul{width:200px}#give-customer-card-wrapper .customer-address-wrapper span[data-key=line2]{display:table;clear:both}#give-customer-card-wrapper .customer-info{min-height:185px}#give-customer-card-wrapper .info-wrapper{min-height:125px}.customer-info .customer-name{font-size:24px;font-weight:600}.disconnect-user a{font-size:12px;font-weight:400;text-decoration:none}#customer-edit-actions{text-align:center;margin-bottom:20px;line-height:28px}#customer-edit-actions .button-secondary{margin-left:10px}#give-customer-card-wrapper .edit-item{display:none}#give-customer-card-wrapper .give_user_search_results{right:1px;top:16px}#customer-stats-wrapper{margin:0 auto;text-align:center;padding:15px}#customer-stats-wrapper ul{margin:0;padding:0;overflow:hidden}#customer-stats-wrapper ul li{width:50%;float:right;line-height:22px;font-size:14px;margin:0}#customer-stats-wrapper a{text-decoration:none}#customer-stats-wrapper .dashicons{color:#888}#customer-tables-wrapper table{width:100%;text-align:center}#customer-tables-wrapper th{text-align:center}#customer-tables-wrapper .donations tr>td:first-child,#customer-tables-wrapper .donations tr>th:first-child,#customer-tables-wrapper .emails tr>td:first-child,#customer-tables-wrapper .emails tr>th:first-child{text-align:right}#customer-tables-wrapper .donations tr>td:only-child,.delete-customer{text-align:center}#customer-notes-wrapper{min-height:50px}.customer-notes-header img,.customer-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.customer-note-input{width:100%;margin-bottom:5px}#give-customer-notes div:nth-of-type(even){background-color:#f9f9f9}#give-customer-notes .customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:0}#give-customer-notes .customer-note-wrapper .note-content-wrap{padding:10px 12px;line-height:20px;font-size:14px}#give-customer-notes .give-no-customer-notes{text-align:center;padding:20px}.customer-note-wrapper span{display:block}@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 a{text-decoration:underline}.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}.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-top:1em}.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}
assets/css/give-admin.css ADDED
@@ -0,0 +1,2695 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give Admin SCSS/CSS
3
+ *
4
+ * @description: The Main SCSS file for ADMIN styles which is compiled and minified via Gulp taskrunner
5
+ * @package: Give
6
+ * @subpackage: SCSS/Admin
7
+ * @copyright: Copyright (c) 2016, WordImpress
8
+ * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+ */
10
+ /**
11
+ * Clearfix
12
+ */
13
+ .give-clearfix {
14
+ *zoom: 1; }
15
+ .give-clearfix:before, .give-clearfix:after {
16
+ content: " ";
17
+ display: table; }
18
+ .give-clearfix:after {
19
+ clear: both; }
20
+
21
+ /**
22
+ * Box Sizing
23
+ * https://github.com/timrogers/sass-box-sizing-mixin
24
+ */
25
+ /**
26
+ * CSS3 Easing
27
+ */
28
+ .give-item-label {
29
+ padding: .2em .4em .3em;
30
+ font-size: 11px;
31
+ line-height: 1;
32
+ color: #fff;
33
+ text-align: center;
34
+ white-space: nowrap;
35
+ vertical-align: baseline;
36
+ border-radius: .25em; }
37
+ .give-item-label:hover {
38
+ color: #fff;
39
+ text-decoration: none; }
40
+
41
+ .give-item-label-gray, #give-payments-filter .give-payment-id {
42
+ background-color: #929292; }
43
+
44
+ .give-item-label-orange {
45
+ background-color: #ffba00; }
46
+
47
+ .give-item-label {
48
+ padding: .2em .4em .3em;
49
+ font-size: 11px;
50
+ line-height: 1;
51
+ color: #fff;
52
+ text-align: center;
53
+ white-space: nowrap;
54
+ vertical-align: baseline;
55
+ border-radius: .25em; }
56
+ .give-item-label:hover {
57
+ color: #fff;
58
+ text-decoration: none; }
59
+
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
572
+ *
573
+ * Fonts are from icomoon and the src paths need to be relative to template directory.
574
+ * @package Give
575
+ * @subpackage SCSS/Frontend
576
+ * @copyright Copyright (c) 2016, WordImpress
577
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
578
+ */
579
+ @font-face {
580
+ font-family: 'give-icomoon';
581
+ src: url("../assets/fonts/icomoon.eot?kdnr3d");
582
+ 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");
583
+ font-weight: normal;
584
+ font-style: normal; }
585
+
586
+ [class^="give-icon-"], [class*=" give-icon-"] {
587
+ font-family: 'give-icomoon';
588
+ speak: none;
589
+ font-style: normal;
590
+ font-weight: normal;
591
+ font-variant: normal;
592
+ text-transform: none;
593
+ line-height: 1;
594
+ -webkit-font-smoothing: antialiased;
595
+ -moz-osx-font-smoothing: grayscale; }
596
+
597
+ .give-icon-lamp:before {
598
+ content: "\e603"; }
599
+
600
+ .give-icon-heart:before {
601
+ content: "\e604"; }
602
+
603
+ .give-icon-question:before {
604
+ content: "\e602"; }
605
+
606
+ .give-icon-info:before {
607
+ content: "\e601"; }
608
+
609
+ .give-icon-new-tab:before {
610
+ content: "\ea7e"; }
611
+
612
+ .give-icon-alert:before {
613
+ content: "\f02d"; }
614
+
615
+ .give-icon-help:before {
616
+ content: "\e606"; }
617
+
618
+ .give-icon-spinner:before {
619
+ content: "\e605"; }
620
+
621
+ .give-icon-spinner2:before {
622
+ content: "\e607"; }
623
+
624
+ .give-icon-plus:before {
625
+ content: "\e040"; }
626
+
627
+ .give-icon-minus:before {
628
+ content: "\e041"; }
629
+
630
+ .give-icon-locked:before {
631
+ content: "\e600"; }
632
+
633
+ .dashicons-give:before {
634
+ font-family: 'give-icomoon';
635
+ speak: none;
636
+ font-style: normal;
637
+ font-weight: normal;
638
+ font-variant: normal;
639
+ text-transform: none;
640
+ line-height: 1;
641
+ -webkit-font-smoothing: antialiased;
642
+ -moz-osx-font-smoothing: grayscale;
643
+ content: "\e800"; }
644
+
645
+ .fa-spin {
646
+ -webkit-animation: spin 1000ms infinite linear;
647
+ animation: spin 1000ms infinite linear; }
648
+
649
+ @-webkit-keyframes spin {
650
+ 0% {
651
+ -webkit-transform: rotate(0deg);
652
+ transform: rotate(0deg); }
653
+ 100% {
654
+ -webkit-transform: rotate(359deg);
655
+ transform: rotate(359deg); } }
656
+
657
+ @keyframes spin {
658
+ 0% {
659
+ -webkit-transform: rotate(0deg);
660
+ transform: rotate(0deg); }
661
+ 100% {
662
+ -webkit-transform: rotate(359deg);
663
+ transform: rotate(359deg); } }
664
+
665
+ @font-face {
666
+ font-family: 'give-icomoon';
667
+ font-weight: normal;
668
+ font-style: normal; }
669
+
670
+ .give-metabox-tabs li a:before {
671
+ font-family: 'give-icomoon';
672
+ src: url("../assets/fonts/icomoon.eot?kdnr3d");
673
+ 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");
674
+ speak: none;
675
+ font-style: normal;
676
+ font-weight: normal;
677
+ font-variant: normal;
678
+ text-transform: none;
679
+ line-height: 1;
680
+ -webkit-font-smoothing: antialiased;
681
+ -moz-osx-font-smoothing: grayscale;
682
+ font-size: 12px;
683
+ vertical-align: top;
684
+ line-height: 20px;
685
+ margin: 0 5px 0 0;
686
+ content: "\e903"; }
687
+
688
+ .give-metabox-tabs li.form_field_options_tab > a:before {
689
+ content: "\e604"; }
690
+
691
+ .give-metabox-tabs li.donation_goal_options_tab > a:before {
692
+ content: "\e901"; }
693
+
694
+ .give-metabox-tabs li.form_display_options_tab > a:before {
695
+ content: "\e90c"; }
696
+
697
+ .give-metabox-tabs li.form_content_options_tab > a:before {
698
+ content: "\e902"; }
699
+
700
+ .give-metabox-tabs li.form_terms_options_tab > a:before {
701
+ position: relative;
702
+ top: 1px;
703
+ content: "\e900"; }
704
+
705
+ .give-metabox-tabs li.offline_donations_options_tab > a:before {
706
+ content: "\e8df"; }
707
+
708
+ /**
709
+ * Give Forms SCSS
710
+ *
711
+ * @package Give
712
+ * @subpackage SCSS/Admin
713
+ * @copyright Copyright (c) 2016, WordImpress
714
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
715
+ */
716
+ /*------------------------------------
717
+ Forms CPT
718
+ --------------------------------------*/
719
+ /* Hide conditional fields */
720
+ .cmb2-id--give-set-price,
721
+ .cmb2-id--give-levels-header,
722
+ .cmb2-id--give-levels-header + .cmb-repeat-group-wrap,
723
+ .cmb2-id--give-display-style,
724
+ .post-type-give_forms .tablenav #post-query-submit,
725
+ .give-hidden,
726
+ .cmb2-id--give-form-content,
727
+ .cmb2-id--give-reveal-label,
728
+ .cmb2-id--give-custom-amount-minimum,
729
+ .cmb2-id--give-custom-amount-text,
730
+ .cmb2-id--give-offline-checkout-notes,
731
+ .cmb-type-levels-id,
732
+ #_give_donation_levels_repeat .cmb-group-title,
733
+ #_give_donation_levels_repeat .cmb-row > .cmb-remove-group-row,
734
+ #_give_donation_levels_repeat .cmb-row > .handlediv {
735
+ display: none; }
736
+
737
+ /* Donation Levels Repeating Field */
738
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row .cmb2-radio-list label {
739
+ font-size: 12px; }
740
+
741
+ div.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {
742
+ padding: 0 !important;
743
+ margin: 0 !important;
744
+ min-width: 100%;
745
+ max-width: 0; }
746
+
747
+ .cmb2-id--give-levels-header {
748
+ padding: 10px 12px 0 !important;
749
+ margin: 0 !important;
750
+ background: #F7F7F7;
751
+ border-bottom: none !important; }
752
+ .cmb2-id--give-levels-header .table-container {
753
+ display: table;
754
+ width: 100%;
755
+ border-top: 1px solid #e9e9e9;
756
+ border-bottom: 1px solid #e9e9e9;
757
+ border-left: 1px solid #e9e9e9; }
758
+ .cmb2-id--give-levels-header .table-container > .table-row {
759
+ display: table-row;
760
+ background: #FCFCFC; }
761
+ .cmb2-id--give-levels-header .table-container > .table-row > .table-cell {
762
+ display: table-cell;
763
+ vertical-align: middle;
764
+ padding: 10px 15px;
765
+ border-right: 1px solid #e9e9e9; }
766
+ .cmb2-id--give-levels-header .table-container > .table-row > .table-cell.col-id {
767
+ display: none; }
768
+
769
+ #_give_donation_levels_repeat {
770
+ background: #F7F7F7;
771
+ padding: 0 1px 20px 12px;
772
+ box-sizing: border-box; }
773
+ #_give_donation_levels_repeat .cmb-row, #_give_donation_levels_repeat .inside {
774
+ margin: 0; }
775
+ #_give_donation_levels_repeat .cmb-remove-field-row {
776
+ margin: 3px 0 0; }
777
+ #_give_donation_levels_repeat .cmb-remove-field-row .button {
778
+ height: 25px;
779
+ padding: 0 3px; }
780
+ #_give_donation_levels_repeat .cmb-remove-field-row span.dashicons-no {
781
+ line-height: 1.15em; }
782
+ #_give_donation_levels_repeat .cmbhandle {
783
+ display: none; }
784
+ #_give_donation_levels_repeat .cmb-add-row {
785
+ margin: 12px 0 0; }
786
+
787
+ .give-time-field {
788
+ width: 65px; }
789
+
790
+ .give-money-field {
791
+ width: 75px;
792
+ margin-right: 0;
793
+ margin-left: 0; }
794
+
795
+ .give-money-symbol {
796
+ border: 1px solid #DDD;
797
+ background: #FCFCFC;
798
+ margin: 0;
799
+ font-size: 14px;
800
+ padding: 5px 8px; }
801
+
802
+ .give-money-symbol-before {
803
+ border-right: 0;
804
+ margin-right: -4px; }
805
+
806
+ .give-money-symbol-after {
807
+ margin-left: -1px; }
808
+
809
+ .give_options_panel input[type="text"] {
810
+ padding: 5px;
811
+ width: 100%; }
812
+
813
+ input.give-text_small,
814
+ input.give-text-small {
815
+ width: 100px !important; }
816
+
817
+ input.give-text-medium,
818
+ input.give-text_medium {
819
+ width: 200px !important; }
820
+
821
+ .give-underline {
822
+ text-decoration: underline; }
823
+
824
+ .postbox-container .cmb-row {
825
+ margin: 0; }
826
+ .postbox-container .cmb-row .cmb-th label {
827
+ padding-left: 8px; }
828
+
829
+ @media only screen and (min-width: 851px) {
830
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row {
831
+ float: left;
832
+ border-bottom: none;
833
+ padding-right: 10px; }
834
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row > .cmb-th {
835
+ display: none; }
836
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row > .cmb-td {
837
+ float: left;
838
+ width: 100%; }
839
+ .cmb-type-give-default-radio-inline .cmb-td {
840
+ margin-top: 5px; } }
841
+
842
+ /* Smaller Resolution Desktops */
843
+ @media only screen and (min-width: 851px) and (max-width: 1201px) {
844
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-remove-field-row {
845
+ width: 100%;
846
+ padding-top: 0; }
847
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-type-text-money {
848
+ width: 105px; }
849
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list input.cmb2-text-money {
850
+ width: 65px; }
851
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list .give-multilevel-text-field {
852
+ width: 160px; }
853
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list .cmb-type-radio-inline {
854
+ margin-left: 20px; }
855
+ .col-amount {
856
+ width: 70px; }
857
+ .col-text {
858
+ width: 140px; }
859
+ .col-sort {
860
+ display: none !important; }
861
+ .give-money-field {
862
+ width: 55px; } }
863
+
864
+ @media only screen and (min-width: 1201px) {
865
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-remove-field-row {
866
+ float: right; }
867
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row {
868
+ padding-right: 20px; }
869
+ #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-remove-field-row.cmb-row {
870
+ padding-right: 0; }
871
+ .col-amount {
872
+ width: 93px; }
873
+ .col-text {
874
+ width: 195px; }
875
+ .col-sort {
876
+ width: 100px; }
877
+ .give-multilevel-text-field {
878
+ width: 205px; } }
879
+
880
+ @media only screen and (max-width: 850px) {
881
+ div.cmb-type-levels-repeater-header {
882
+ display: none !important; } }
883
+
884
+ /*Shortcode Input */
885
+ .shortcode-wrap {
886
+ margin: 1px 14px 12px 11px; }
887
+ .shortcode-wrap label {
888
+ margin: 0 0 3px;
889
+ display: block;
890
+ cursor: default; }
891
+ .shortcode-wrap .shortcode-input {
892
+ margin: 0;
893
+ width: 100%; }
894
+
895
+ .cmb2-id--give-content-option,
896
+ .cmb2-id--give-terms-option,
897
+ .cmb2-id--give-offline-donation-enable-billing-fields-single,
898
+ .cmb2-id--give-goal-option,
899
+ .cmb2-id--give-customize-offline-donations {
900
+ border-bottom: none !important;
901
+ margin: 0 !important; }
902
+
903
+ .cmb2-id--give-form-content,
904
+ .cmb2-id--give-agree-label,
905
+ .cmb2-id--give-offline-checkout-notes,
906
+ .cmb2-id--give-set-goal,
907
+ .cmb2-id--give-offline-donation-enable-billing-fields-single {
908
+ border-top: 1px solid #e9e9e9 !important; }
909
+
910
+ /*-------------------------------------
911
+ Terms and Conditions Metabox
912
+ ---------------------------------------*/
913
+ .cmb2-id--give-agree-label,
914
+ .cmb2-id--give-agree-text {
915
+ display: none; }
916
+
917
+ /*-------------------------------------
918
+ Dashboard Columns
919
+ -------------------------------------*/
920
+ input.shortcode-input {
921
+ width: 100%; }
922
+
923
+ /*-------------------------------------
924
+ ASIDE
925
+ -------------------------------------*/
926
+ #side-sortables .cmb-th label:after {
927
+ display: none; }
928
+
929
+ #side-sortables .cmb2-id--give-show-register-form {
930
+ padding: 10px 0 0 !important; }
931
+
932
+ #side-sortables .cmb2-wrap > .cmb-field-list > .cmb-row {
933
+ padding-top: 10px; }
934
+
935
+ #side-sortables .cmb-row .cmb2-metabox-description {
936
+ padding-bottom: 0; }
937
+
938
+ .cmb2-metabox-description {
939
+ font-size: 13px;
940
+ line-height: 1.5;
941
+ display: block; }
942
+
943
+ .give-tooltip {
944
+ margin: 0 3px;
945
+ padding: 0;
946
+ font-size: 14px;
947
+ -moz-transition: 0.2s all linear;
948
+ -o-transition: 0.2s all linear;
949
+ transition: 0.2s all linear;
950
+ color: rgba(51, 51, 51, 0.5);
951
+ position: relative;
952
+ top: 1px; }
953
+ .give-tooltip:hover {
954
+ color: #333; }
955
+
956
+ #give-metabox-form-data .inside {
957
+ margin: 0;
958
+ padding: 0; }
959
+
960
+ #give-metabox-form-data .give-metabox-panel-wrap {
961
+ background: #fff;
962
+ overflow: hidden; }
963
+
964
+ #give-metabox-form-data .give_options_panel {
965
+ padding-left: 170px; }
966
+ #give-metabox-form-data .give_options_panel .give-field-wrap {
967
+ padding: 1em 20px 1em 162px !important;
968
+ margin: 0;
969
+ border-bottom: 1px solid #eee; }
970
+ #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 {
971
+ float: left;
972
+ width: 135px;
973
+ padding: 0;
974
+ margin: 2px 0 0 -150px;
975
+ line-height: 18px;
976
+ font-size: 12px;
977
+ font-weight: 400; }
978
+ #give-metabox-form-data .give_options_panel .give-field-wrap .give-field-description {
979
+ color: #aaaaaa;
980
+ font-size: 12px;
981
+ line-height: 18px;
982
+ display: block;
983
+ padding-top: 10px;
984
+ font-style: italic; }
985
+ #give-metabox-form-data .give_options_panel .give-field-wrap ul {
986
+ margin: 0; }
987
+ #give-metabox-form-data .give_options_panel .give-field-wrap .mce-container iframe, #give-metabox-form-data .give_options_panel .give-field-wrap textarea {
988
+ min-height: 250px !important; }
989
+ #give-metabox-form-data .give_options_panel .give-field-wrap:last-child {
990
+ border-bottom: 0; }
991
+ #give-metabox-form-data .give_options_panel textarea.give-field {
992
+ width: 100%; }
993
+ #give-metabox-form-data .give_options_panel .give-field-wrap:hover .give-field-row-actions {
994
+ display: block; }
995
+ #give-metabox-form-data .give_options_panel .give-field-wrap:last-child {
996
+ border-bottom: 0; }
997
+ #give-metabox-form-data .give_options_panel .give-inline-radio-fields li {
998
+ display: inline-block;
999
+ margin-right: 15px; }
1000
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section {
1001
+ padding: 10px;
1002
+ background: #f5f5f5; }
1003
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeatable-fields-section-wrapper {
1004
+ width: 100%;
1005
+ background-color: white;
1006
+ border-collapse: collapse; }
1007
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row {
1008
+ border-bottom: 15px solid #f5f5f5;
1009
+ background-color: white; }
1010
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-template {
1011
+ display: none; }
1012
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row:last-child {
1013
+ border-bottom: 10px solid #f5f5f5; }
1014
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-column {
1015
+ padding: 0; }
1016
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove {
1017
+ float: right;
1018
+ width: 36px;
1019
+ height: 36px;
1020
+ padding: 0;
1021
+ display: block;
1022
+ text-align: center;
1023
+ line-height: 34px;
1024
+ font-size: 21px;
1025
+ font-weight: 300;
1026
+ cursor: pointer; }
1027
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove:hover {
1028
+ background-color: red;
1029
+ color: white;
1030
+ width: 30px;
1031
+ height: 30px;
1032
+ border-radius: 30px;
1033
+ margin-top: 3px;
1034
+ line-height: 28px; }
1035
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head {
1036
+ border-bottom: 1px solid #eee;
1037
+ cursor: move; }
1038
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head h2 {
1039
+ text-align: left !important; }
1040
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.closed .toggle-indicator:before {
1041
+ content: "\f140"; }
1042
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row-wrap {
1043
+ background-color: #f5f5f5; }
1044
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row {
1045
+ margin: 5px 5px; }
1046
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-field-wrap:last-child {
1047
+ border-bottom: 1px solid #eee; }
1048
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-ui-placeholder-state-highlight {
1049
+ background-color: #68bb6c; }
1050
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-name {
1051
+ border: 0 !important;
1052
+ padding: 0 !important; }
1053
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-description {
1054
+ color: #aaaaaa;
1055
+ font-size: 12px;
1056
+ line-height: 18px;
1057
+ display: block;
1058
+ padding-bottom: 10px;
1059
+ font-style: italic; }
1060
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .ui-sortable-helper {
1061
+ display: table !important; }
1062
+ #give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.ui-sortable-helper {
1063
+ border-bottom: 0; }
1064
+
1065
+ #give-metabox-form-data .give-metabox-tabs {
1066
+ margin: 0;
1067
+ min-width: 170px;
1068
+ float: left;
1069
+ line-height: 1em;
1070
+ padding: 0 0 10px;
1071
+ position: relative;
1072
+ background-color: #fafafa;
1073
+ border-right: 1px solid #eee;
1074
+ box-sizing: border-box; }
1075
+ #give-metabox-form-data .give-metabox-tabs:after {
1076
+ content: "";
1077
+ display: block;
1078
+ width: 100%;
1079
+ height: 9999em;
1080
+ position: absolute;
1081
+ bottom: -9999em;
1082
+ left: 0;
1083
+ background-color: #fafafa;
1084
+ border-right: 1px solid #eee; }
1085
+ #give-metabox-form-data .give-metabox-tabs li {
1086
+ margin: 0;
1087
+ padding: 0;
1088
+ display: block;
1089
+ position: relative; }
1090
+ #give-metabox-form-data .give-metabox-tabs li a {
1091
+ margin: 0;
1092
+ padding: 10px;
1093
+ display: block;
1094
+ box-shadow: none;
1095
+ text-decoration: none;
1096
+ line-height: 20px !important;
1097
+ border-bottom: 1px solid #eee;
1098
+ overflow: hidden; }
1099
+ #give-metabox-form-data .give-metabox-tabs li a span {
1100
+ width: 122px;
1101
+ display: inline-block; }
1102
+ #give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li {
1103
+ background-color: #f1f1f1; }
1104
+ #give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li a {
1105
+ border-bottom-color: #e5e5e5; }
1106
+ #give-metabox-form-data .give-metabox-tabs li.active > a {
1107
+ color: #555;
1108
+ position: relative;
1109
+ background-color: #eee; }
1110
+ #give-metabox-form-data .give-metabox-tabs li.has-sub-fields.active > a {
1111
+ background-color: #ddd; }
1112
+ #give-metabox-form-data .give-metabox-tabs li.has-sub-fields:not(.active):hover ul.give-metabox-sub-tabs {
1113
+ display: block;
1114
+ position: absolute;
1115
+ bottom: 0;
1116
+ left: 170px;
1117
+ width: 170px;
1118
+ max-height: 250px;
1119
+ overflow-y: scroll; }
1120
+
1121
+ @media only screen and (min-width: 851px) and (max-width: 1025px), (max-width: 550px) {
1122
+ #give-metabox-form-data ul.give-metabox-tabs {
1123
+ min-width: 40px; }
1124
+ #give-metabox-form-data ul.give-metabox-tabs li > a {
1125
+ text-align: center; }
1126
+ #give-metabox-form-data ul.give-metabox-tabs li > a:before {
1127
+ margin-right: 0;
1128
+ font-size: 15px; }
1129
+ #give-metabox-form-data ul.give-metabox-tabs li > a span {
1130
+ display: none; }
1131
+ #give-metabox-form-data .give_options_panel {
1132
+ padding-left: 40px; } }
1133
+
1134
+ #give-export-payments .give_forms_categories,
1135
+ #give-export-payments .give_forms_tags {
1136
+ min-width: 250px;
1137
+ margin: 0 0 10px 0;
1138
+ display: block; }
1139
+ #give-export-payments .give_forms_categories input,
1140
+ #give-export-payments .give_forms_tags input {
1141
+ color: #999; }
1142
+
1143
+ #give-export-payments div.chosen-container:first-of-type {
1144
+ margin-top: 10px; }
1145
+
1146
+ /*-------------------------------------
1147
+ Doc Links
1148
+ -------------------------------------*/
1149
+ .give-docs-link {
1150
+ text-align: right;
1151
+ margin-right: 15px; }
1152
+ .give-docs-link a {
1153
+ color: #999;
1154
+ text-decoration: none;
1155
+ font-style: italic; }
1156
+ .give-docs-link a:hover {
1157
+ color: #0073aa; }
1158
+ .give-docs-link a span {
1159
+ font-style: normal; }
1160
+
1161
+ /**
1162
+ * Give Add-ons SCSS
1163
+ *
1164
+ * @description Add-on Styles
1165
+ * @package Give
1166
+ * @subpackage SCSS/Admin
1167
+ * @copyright Copyright (c) 2016, WordImpress
1168
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1169
+ */
1170
+ .type-download {
1171
+ float: left;
1172
+ margin: 0 1em 1em 0 !important;
1173
+ padding: 0;
1174
+ vertical-align: top;
1175
+ width: 280px;
1176
+ text-decoration: none;
1177
+ color: inherit;
1178
+ border: 1px solid #ddd;
1179
+ display: block;
1180
+ min-height: 365px;
1181
+ overflow: hidden;
1182
+ background: #f5f5f5;
1183
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
1184
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
1185
+ -webkit-transition-property: border, background, color;
1186
+ transition-property: border, background, color;
1187
+ -webkit-transition-duration: .05s;
1188
+ transition-duration: .05s;
1189
+ -webkit-transition-timing-function: ease-in-out;
1190
+ transition-timing-function: ease-in-out;
1191
+ position: relative; }
1192
+ .type-download:hover {
1193
+ border: 1px solid #d1d1d1; }
1194
+ .type-download > .featured-img img {
1195
+ border-bottom: 1px solid #ddd; }
1196
+ .type-download .addon-content {
1197
+ *zoom: 1;
1198
+ padding: 15px 20px; }
1199
+ .type-download .addon-content:before, .type-download .addon-content:after {
1200
+ content: " ";
1201
+ display: table; }
1202
+ .type-download .addon-content:after {
1203
+ clear: both; }
1204
+ .type-download .addon-content .addon-heading {
1205
+ margin: 0 0 10px; }
1206
+ .type-download .addon-content .addon-heading a {
1207
+ outline: none;
1208
+ text-decoration: none; }
1209
+ .type-download .addon-footer-wrap {
1210
+ border-top: 1px solid #ddd;
1211
+ position: absolute;
1212
+ bottom: 2px;
1213
+ left: 0;
1214
+ width: 100%;
1215
+ background-color: #FFF;
1216
+ padding: 15px 20px; }
1217
+
1218
+ .give-view-addons-all span.dashicons, .type-download span.dashicons {
1219
+ width: 16px;
1220
+ height: 16px;
1221
+ font-size: 14px;
1222
+ margin: 6px 0 0 0; }
1223
+
1224
+ .give-view-addons-all span.dashicons {
1225
+ margin-left: 3px; }
1226
+
1227
+ /**
1228
+ * Give Reports SCSS
1229
+ *
1230
+ * @description Payment History Styles
1231
+ * @package Give
1232
+ * @subpackage SCSS/Admin
1233
+ * @copyright Copyright (c) 2016, WordImpress
1234
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1235
+ */
1236
+ #give-dashboard-widgets-wrap .inside {
1237
+ padding-top: 0;
1238
+ padding-bottom: 0;
1239
+ /* counteract extra padding in Income Report graph */ }
1240
+ .give_forms_page_give-reports #give-dashboard-widgets-wrap .inside {
1241
+ padding-left: 0; }
1242
+ #give-dashboard-widgets-wrap .inside #give-graphs-filter {
1243
+ float: none; }
1244
+
1245
+ #give-dashboard-widgets-wrap .postbox {
1246
+ margin-bottom: 10px; }
1247
+
1248
+ #give-dashboard-widgets-wrap table.reports-table {
1249
+ clear: none; }
1250
+
1251
+ #give-dashboard-widgets-wrap #give-date-range-options {
1252
+ float: left; }
1253
+ #give-dashboard-widgets-wrap #give-date-range-options > span {
1254
+ float: left;
1255
+ line-height: 30px;
1256
+ font-style: italic;
1257
+ padding: 0 5px 0 0; }
1258
+
1259
+ #give-graphs-filter {
1260
+ float: right; }
1261
+ #give-graphs-filter .tablenav {
1262
+ margin: 0 0 0 17px; }
1263
+ #give-graphs-filter .tablenav .actions {
1264
+ padding: 0; }
1265
+
1266
+ .give-graph .y1Axis {
1267
+ color: #66bb6a !important; }
1268
+
1269
+ .give-graph .y2Axis {
1270
+ color: #546e7a !important; }
1271
+
1272
+ body.give_forms_page_give-reports h1.nav-tab-wrapper, body.give_forms_page_give-reports h2.nav-tab-wrapper, body.give_forms_page_give-payment-history h1.nav-tab-wrapper, body.give_forms_page_give-payment-history h2.nav-tab-wrapper {
1273
+ margin-bottom: 10px; }
1274
+
1275
+ body.give_forms_page_give-reports .actions, body.give_forms_page_give-payment-history .actions {
1276
+ padding-top: 0; }
1277
+
1278
+ body.give_forms_page_give-reports .pagination-links, body.give_forms_page_give-payment-history .pagination-links {
1279
+ margin-left: 10px; }
1280
+
1281
+ body.give_forms_page_give-reports p.donor-search, body.give_forms_page_give-payment-history p.donor-search {
1282
+ margin-right: 10px; }
1283
+
1284
+ body.give_forms_page_give-reports .tablenav-right .tablenav-pages, body.give_forms_page_give-payment-history .tablenav-right .tablenav-pages {
1285
+ float: right; }
1286
+
1287
+ body.give_forms_page_give-reports .tablenav-right #give-reports-view, body.give_forms_page_give-payment-history .tablenav-right #give-reports-view {
1288
+ margin-top: 0; }
1289
+
1290
+ body.give_forms_page_give-reports .tablenav-right .actions, body.give_forms_page_give-payment-history .tablenav-right .actions {
1291
+ float: left; }
1292
+
1293
+ body.give_forms_page_give-reports p.search-box, body.give_forms_page_give-payment-history p.search-box {
1294
+ float: left; }
1295
+
1296
+ body.give_forms_page_give-reports .reports-table-nav.tablenav.top, body.give_forms_page_give-payment-history .reports-table-nav.tablenav.top {
1297
+ width: 100%;
1298
+ float: none;
1299
+ margin: 0 0 10px; }
1300
+
1301
+ body.give_forms_page_give-reports .reports-forms-details-wrap.top, body.give_forms_page_give-payment-history .reports-forms-details-wrap.top {
1302
+ float: right;
1303
+ overflow: hidden; }
1304
+ body.give_forms_page_give-reports .reports-forms-details-wrap.top #give-reports-filter, body.give_forms_page_give-payment-history .reports-forms-details-wrap.top #give-reports-filter {
1305
+ float: left; }
1306
+ body.give_forms_page_give-reports .reports-forms-details-wrap.top > .actions, body.give_forms_page_give-payment-history .reports-forms-details-wrap.top > .actions {
1307
+ padding-right: 0; }
1308
+
1309
+ body.give_forms_page_give-reports .tablenav.bottom, body.give_forms_page_give-payment-history .tablenav.bottom {
1310
+ margin-top: 10px; }
1311
+
1312
+ body.give_forms_page_give-reports h3.reports-earnings-title, body.give_forms_page_give-payment-history h3.reports-earnings-title {
1313
+ margin: 7px 0 0; }
1314
+
1315
+ body.give_forms_page_give-reports .reports-views-wrap, body.give_forms_page_give-payment-history .reports-views-wrap {
1316
+ padding: 3px 0 0; }
1317
+
1318
+ body.give_forms_page_give-reports .wrap.give-reports-donors-wrap, body.give_forms_page_give-payment-history .wrap.give-reports-donors-wrap {
1319
+ margin-right: 0;
1320
+ margin-bottom: 10px; }
1321
+
1322
+ body.give_forms_page_give-reports .widefat tbody td, body.give_forms_page_give-reports .widefat tbody th, body.give_forms_page_give-payment-history .widefat tbody td, body.give_forms_page_give-payment-history .widefat tbody th {
1323
+ padding-top: 12px;
1324
+ padding-bottom: 12px; }
1325
+
1326
+ body.give_forms_page_give-reports table.export-options-table tbody td {
1327
+ padding: 20px 12px;
1328
+ vertical-align: top; }
1329
+
1330
+ body.give_forms_page_give-reports table.export-options-table .give-export-form {
1331
+ position: relative; }
1332
+ body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap {
1333
+ background-color: transparent;
1334
+ padding: 12px 12px 4px;
1335
+ margin: 2px 0 -16px -11px;
1336
+ overflow: auto; }
1337
+ body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap .spinner {
1338
+ margin: -2px -12px 8px 0; }
1339
+
1340
+ body.give_forms_page_give-reports table.export-options-table span#give-start-wrap input, body.give_forms_page_give-reports table.export-options-table span#give-end-wrap input {
1341
+ width: 100px; }
1342
+
1343
+ #export-donor-options-wrap p {
1344
+ padding: 20px 0 0;
1345
+ margin: 0;
1346
+ font-weight: bold; }
1347
+
1348
+ #export-donor-options-wrap ul {
1349
+ max-width: 900px;
1350
+ overflow: hidden; }
1351
+ #export-donor-options-wrap ul li {
1352
+ margin: 0;
1353
+ padding: 0 5px 5px 0;
1354
+ box-sizing: border-box;
1355
+ float: left;
1356
+ width: 33%; }
1357
+
1358
+ #give-tools-recount-form .notice-wrap {
1359
+ position: relative;
1360
+ min-height: 25px;
1361
+ margin: 10px -12px -12px;
1362
+ background: #EFEFEF;
1363
+ padding: 10px 12px 12px;
1364
+ border-top: 1px solid #E5E5E5; }
1365
+ #give-tools-recount-form .notice-wrap .give-progress {
1366
+ position: absolute;
1367
+ top: 15px; }
1368
+ #give-tools-recount-form .notice-wrap .spinner {
1369
+ position: absolute;
1370
+ right: 14px;
1371
+ top: 13px;
1372
+ margin: 0; }
1373
+ #give-tools-recount-form .notice-wrap #give-batch-success {
1374
+ margin-bottom: 6px; }
1375
+
1376
+ .give-progress {
1377
+ height: 15px;
1378
+ width: 95%;
1379
+ border-radius: 4px;
1380
+ overflow: hidden; }
1381
+ .give-progress > div {
1382
+ height: 100%;
1383
+ width: 0; }
1384
+
1385
+ .admin-color-fresh .give-export-form .give-progress div, .give-export-form .give-progress div {
1386
+ background: #0073aa; }
1387
+
1388
+ .admin-color-light .give-export-form .give-progress div {
1389
+ background: #888; }
1390
+
1391
+ .admin-color-blue .give-export-form .give-progress div {
1392
+ background: #096484; }
1393
+
1394
+ .admin-color-coffee .give-export-form .give-progress div {
1395
+ background: #c7a589; }
1396
+
1397
+ .admin-color-ectoplasm .give-export-form .give-progress div {
1398
+ background: #a3b745; }
1399
+
1400
+ .admin-color-midnight .give-export-form .give-progress div {
1401
+ background: #e14d43; }
1402
+
1403
+ .admin-color-sunrise .give-export-form .give-progress div {
1404
+ background: #dd823b; }
1405
+
1406
+ .recount-stats-controls form {
1407
+ display: inline; }
1408
+
1409
+ .give-recount-stats-descriptions {
1410
+ margin: 8px 0 0;
1411
+ display: block; }
1412
+ .give-recount-stats-descriptions span {
1413
+ line-height: 24px;
1414
+ font-size: 13px;
1415
+ font-style: italic;
1416
+ font-weight: normal;
1417
+ color: #aaa;
1418
+ margin: 0;
1419
+ display: none; }
1420
+
1421
+ .gateways-report-tablenav .actions.bulkactions {
1422
+ padding-right: 0; }
1423
+
1424
+ table.give-table td {
1425
+ vertical-align: middle; }
1426
+
1427
+ table.give-table td.row-title h3 {
1428
+ margin: 0 0 0.4em;
1429
+ font-size: 1.2em; }
1430
+
1431
+ table.give-table td.row-title p {
1432
+ font-size: 13px;
1433
+ font-style: italic;
1434
+ font-weight: normal;
1435
+ color: #aaa;
1436
+ margin: 0; }
1437
+
1438
+ #give-graphs-filter > .tablenav {
1439
+ height: auto; }
1440
+
1441
+ #give-logs-filter .search-box {
1442
+ float: right; }
1443
+
1444
+ #give-logs-filter .tablenav.top {
1445
+ float: left;
1446
+ clear: none;
1447
+ margin-top: 0; }
1448
+
1449
+ /**
1450
+ * Give Admin Welcome SCSS
1451
+ *
1452
+ * @description Displays when user activates the plugin
1453
+ * @package Give
1454
+ * @subpackage SCSS/Admin
1455
+ * @copyright Copyright (c) 2016, WordImpress
1456
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1457
+ */
1458
+ .welcome-h1 {
1459
+ display: inline-block;
1460
+ margin-right: 15px !important; }
1461
+
1462
+ .about-wrap h3 {
1463
+ margin: 1.5em 0 .6em; }
1464
+
1465
+ .about-wrap img {
1466
+ border: none; }
1467
+
1468
+ .give-badge {
1469
+ padding-top: 150px;
1470
+ height: 52px;
1471
+ width: 185px;
1472
+ color: #FFF;
1473
+ font-weight: bold;
1474
+ font-size: 14px;
1475
+ text-align: center;
1476
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
1477
+ margin: 0 -5px;
1478
+ position: absolute;
1479
+ top: 0;
1480
+ right: 0; }
1481
+
1482
+ .introduction {
1483
+ padding: 0 0 20px;
1484
+ margin: 0 0 20px; }
1485
+
1486
+ .feature-section {
1487
+ margin-top: 40px; }
1488
+ .feature-section span.dashicons {
1489
+ width: 16px;
1490
+ height: 16px;
1491
+ font-size: 14px;
1492
+ margin: 6px 0 0 0; }
1493
+ .feature-section .feature-section-item {
1494
+ width: 48%;
1495
+ float: left; }
1496
+ .feature-section div.last-feature {
1497
+ margin-right: 0;
1498
+ margin-left: 4%; }
1499
+
1500
+ [class^="dashboard_page_give-"] .about-text, [class*="dashboard_page_give-"] .about-text {
1501
+ min-height: 0; }
1502
+
1503
+ .social-items-wrap {
1504
+ display: inline-block; }
1505
+ .social-items-wrap > div {
1506
+ display: inline-block; }
1507
+ .social-items-wrap .twitter-item-wrap {
1508
+ margin: 0 20px 10px 0; }
1509
+
1510
+ .wp-person img {
1511
+ border-radius: 50%; }
1512
+
1513
+ .wp-person a.web {
1514
+ margin: 17px 0 0;
1515
+ font-weight: bold;
1516
+ font-style: italic; }
1517
+
1518
+ .newsletter-intro {
1519
+ font-size: 13px;
1520
+ font-style: italic;
1521
+ color: #777; }
1522
+
1523
+ .give-newsletter-form-wrap {
1524
+ margin: 10px 0 20px -5px;
1525
+ max-width: 700px; }
1526
+ .give-newsletter-form-wrap td {
1527
+ padding: 3px; }
1528
+ .give-newsletter-form-wrap div.give-newsletter-confirmation {
1529
+ background: #fff;
1530
+ -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
1531
+ box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
1532
+ margin: 5px 10px 4px 5px;
1533
+ padding: 1px 12px;
1534
+ border-left: 4px solid #7ad03a;
1535
+ display: none; }
1536
+ .give-newsletter-form-wrap div.give-newsletter-confirmation > p {
1537
+ margin: 0.5em 0;
1538
+ padding: 2px; }
1539
+
1540
+ /**
1541
+ * Give Logs SCSS
1542
+ *
1543
+ * @description Payment History Styles
1544
+ * @package Give
1545
+ * @subpackage SCSS/Admin
1546
+ * @copyright Copyright (c) 2016, WordImpress
1547
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1548
+ */
1549
+ #give_donor_export_form {
1550
+ margin: 0 0 5px; }
1551
+
1552
+ #give-payments-filter .give-donation-status {
1553
+ display: inline-block; }
1554
+
1555
+ .column-status .give-donation-status, .column-status .give-test-mode-transactions-label {
1556
+ display: inline-block; }
1557
+
1558
+ .column-status .give-test-mode-transactions-label {
1559
+ margin: 0 5px;
1560
+ vertical-align: middle; }
1561
+
1562
+ /**
1563
+ * Give Settings SCSS
1564
+ *
1565
+ * @package Give
1566
+ * @subpackage SCSS/Admin
1567
+ * @copyright Copyright (c) 2016, WordImpress
1568
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1569
+ */
1570
+ .give-settings-page .nav-tab-wrapper {
1571
+ margin-bottom: 5px;
1572
+ overflow: visible; }
1573
+
1574
+ .give-settings-page .cmb2-wrap .cmb-type-checkbox input[type="checkbox"] {
1575
+ display: block;
1576
+ margin-bottom: 5px; }
1577
+
1578
+ .give-settings-page div.give-submit-wrap {
1579
+ margin: 20px 0; }
1580
+
1581
+ .give-settings-page .give_forms_page_give-payment-history .postbox .hndle {
1582
+ cursor: default; }
1583
+
1584
+ .give-settings-page .give-input-field {
1585
+ width: 25em; }
1586
+
1587
+ .give-settings-page table table input[type="text"] {
1588
+ width: 15em; }
1589
+
1590
+ .give-setting-tab-header {
1591
+ clear: both;
1592
+ overflow: hidden;
1593
+ margin: 30px 0; }
1594
+ .give-setting-tab-header h2 {
1595
+ margin-top: 8px; }
1596
+
1597
+ .give-radio-inline ul {
1598
+ margin-top: 0; }
1599
+
1600
+ .give-radio-inline li {
1601
+ display: inline-block;
1602
+ margin: 0 0 0 15px; }
1603
+
1604
+ .give-radio-inline li:first-child {
1605
+ margin-left: 0; }
1606
+
1607
+ .give-tools-setting-page .bulkactions {
1608
+ overflow: visible; }
1609
+
1610
+ .form-table td.give-radio-inline fieldset li > label {
1611
+ margin: 5px 0 0 !important; }
1612
+
1613
+ p.give-field-description, .cmb2-metabox-description {
1614
+ color: #aaaaaa;
1615
+ font-style: italic;
1616
+ font-size: 13px !important; }
1617
+
1618
+ .give-image-thumb {
1619
+ position: relative;
1620
+ margin-top: 14px; }
1621
+ .give-image-thumb span.give-delete-image-thumb {
1622
+ position: absolute;
1623
+ background: red;
1624
+ color: white;
1625
+ border-radius: 30px;
1626
+ left: -10px;
1627
+ top: -10px; }
1628
+ .give-image-thumb img {
1629
+ max-width: 400px;
1630
+ border: 4px solid white; }
1631
+
1632
+ .cmb-type-give-title label,
1633
+ .give-setting-tab-header h2 {
1634
+ float: left;
1635
+ display: inline-block;
1636
+ width: 220px;
1637
+ font-style: italic;
1638
+ color: #AAA;
1639
+ margin: 0;
1640
+ font-size: 14px; }
1641
+
1642
+ .postbox-container #_give_donation_levels_repeat > .cmb-repeatable-grouping:not(:last-of-type) {
1643
+ border-bottom: 1px solid #e9e9e9;
1644
+ border-top: none; }
1645
+
1646
+ .cmb-type-enabled-gateways .cmb-td > p:first-of-type {
1647
+ display: none; }
1648
+
1649
+ .cmb-type-checkbox .cmb-td {
1650
+ width: 80%; }
1651
+ .cmb-type-checkbox .cmb-td label {
1652
+ font-size: 13px; }
1653
+
1654
+ /* Responsive Settings Rows */
1655
+ .give_settings .cmb2-wrap .cmb-row {
1656
+ display: table-row; }
1657
+ .give_settings .cmb2-wrap .cmb-row > .cmb-th, .give_settings .cmb2-wrap .cmb-row > .cmb-td {
1658
+ display: table-cell;
1659
+ float: none; }
1660
+
1661
+ /* Custom Title Separators */
1662
+ .cmb2-id-give-title label {
1663
+ font-style: italic;
1664
+ color: #AAA;
1665
+ cursor: default; }
1666
+
1667
+ .cmb2-id-give-title > div.cmb-th {
1668
+ padding-bottom: 10px; }
1669
+
1670
+ .cmb2-id-give-title > div.cmb-td {
1671
+ padding-bottom: 5px; }
1672
+
1673
+ .give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle {
1674
+ padding: 3px 4px 0 0;
1675
+ font-size: 15px;
1676
+ font-weight: normal;
1677
+ color: #bdbdbd;
1678
+ cursor: move; }
1679
+ .give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle:hover {
1680
+ color: #333; }
1681
+
1682
+ .give-email-tags-wrap {
1683
+ margin: 5px 0 0; }
1684
+ .give-email-tags-wrap code {
1685
+ font-style: normal;
1686
+ padding: 1px 2px;
1687
+ font-size: 12px; }
1688
+ .give-email-tags-wrap span {
1689
+ display: block;
1690
+ color: #AAA;
1691
+ font-style: italic;
1692
+ margin: 0 0 2px;
1693
+ font-size: 13px; }
1694
+ .give-email-tags-wrap .give_price_tag {
1695
+ display: none; }
1696
+
1697
+ #system-info-textarea {
1698
+ width: 800px;
1699
+ height: 600px;
1700
+ font-family: Menlo, Monaco, monospace;
1701
+ background: #FFF;
1702
+ white-space: pre;
1703
+ overflow: auto;
1704
+ display: block;
1705
+ /*rtl:ignore*/
1706
+ direction: ltr; }
1707
+
1708
+ #give-download-sysinfo {
1709
+ margin: 0; }
1710
+
1711
+ .cmb2-id-api .cmb-td {
1712
+ padding: 0; }
1713
+
1714
+ .cmb2-id-api table th {
1715
+ padding: 10px 8px; }
1716
+
1717
+ .cmb2-id-api .give-ajax-user-search {
1718
+ padding: 3px 5px; }
1719
+
1720
+ .give_user_search_wrap {
1721
+ position: relative;
1722
+ overflow: visible; }
1723
+
1724
+ .give_user_search_results {
1725
+ position: absolute;
1726
+ left: 0;
1727
+ top: 27px;
1728
+ z-index: 100; }
1729
+ .give_user_search_results a.give-ajax-user-cancel {
1730
+ position: absolute;
1731
+ right: 6px;
1732
+ top: 2px; }
1733
+ .give_user_search_results ul {
1734
+ padding: 10px 10px 4px;
1735
+ margin: 0;
1736
+ background: #f0f0f0;
1737
+ border: 1px solid #DFDFDF;
1738
+ width: 300px;
1739
+ max-height: 200px;
1740
+ overflow-y: scroll; }
1741
+
1742
+ #api .tablenav .actions {
1743
+ overflow: visible; }
1744
+
1745
+ a.give-delete {
1746
+ color: #a00; }
1747
+
1748
+ .give-settings-wrap-licenses .give-license-deactivate {
1749
+ margin: 1px 0 0 10px;
1750
+ height: 30px; }
1751
+
1752
+ .give-settings-wrap-licenses .give-license-field {
1753
+ background: #FFF url("../images/close.png") no-repeat;
1754
+ background-position: 98.5% center;
1755
+ background-size: 18px; }
1756
+
1757
+ .give-settings-wrap-licenses .give-license-active, .give-settings-wrap-licenses .give-license-active:focus {
1758
+ background-image: url("../images/tick.png");
1759
+ background-color: #FFF;
1760
+ background-repeat: no-repeat;
1761
+ background-position: 98.5% center;
1762
+ outline: none;
1763
+ background-size: 16px;
1764
+ width: 100%; }
1765
+
1766
+ /* Addon grid design */
1767
+ .give-settings-page {
1768
+ margin-top: 20px; }
1769
+ .give-settings-page .give-settings-wrap-licenses {
1770
+ display: block;
1771
+ position: relative;
1772
+ float: left;
1773
+ width: 30.5%;
1774
+ min-height: 180px;
1775
+ margin: 20px 1% 20px 0; }
1776
+ .give-settings-page .give-license-key label {
1777
+ margin: 0 0 0 10px;
1778
+ padding: 10px 0;
1779
+ display: block;
1780
+ font-size: 14px;
1781
+ font-weight: 600;
1782
+ cursor: default; }
1783
+ .give-settings-page .give-license-block {
1784
+ margin: 0 10px; }
1785
+ .give-settings-page input[type="text"].give-license-field,
1786
+ .give-settings-page input[type="password"].give-license-field {
1787
+ width: 100%; }
1788
+ .give-settings-page .give-license-block input[type="submit"] {
1789
+ position: absolute;
1790
+ top: 3px;
1791
+ right: 10px;
1792
+ height: 24px;
1793
+ line-height: 22px;
1794
+ padding: 0 8px 1px;
1795
+ font-size: 11px; }
1796
+ .give-settings-page .give-license-status-notice {
1797
+ background: #fff;
1798
+ border-left: 4px solid #fff;
1799
+ -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
1800
+ box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
1801
+ margin: 5px 0 2px;
1802
+ padding: 1px 12px; }
1803
+ .give-settings-page .give-license-status-notice p {
1804
+ padding: 10px 0;
1805
+ margin: 0; }
1806
+ .give-settings-page .give-license-status-notice a {
1807
+ color: #444;
1808
+ cursor: pointer; }
1809
+ .give-settings-page .give-license-status-notice a:hover {
1810
+ text-decoration: none; }
1811
+ .give-settings-page .give-license-status-notice.give-license-expires-soon {
1812
+ border-color: #00a0d2; }
1813
+ .give-settings-page .give-license-status-notice.give-inactive,
1814
+ .give-settings-page .give-license-status-notice.give-license-expired {
1815
+ border-color: #e24e4e; }
1816
+ .give-settings-page .give-license-status-notice.give-license-error,
1817
+ .give-settings-page .give-license-status-notice.give-license-no_activations_left,
1818
+ .give-settings-page .give-license-status-notice.give-license-missing,
1819
+ .give-settings-page .give-license-status-notice.give-license-invalid,
1820
+ .give-settings-page .give-license-status-notice.give-license-site_inactive,
1821
+ .give-settings-page .give-license-status-notice.give-license-item_name_mismatch {
1822
+ border-color: orange; }
1823
+ .give-settings-page .give-license-status-notice.give-license-lifetime-notice,
1824
+ .give-settings-page .give-license-status-notice.give-license-expiration-date {
1825
+ border-color: #46b450; }
1826
+ .give-settings-page .give-license-status-notice.give-license-expires-soon a:hover,
1827
+ .give-settings-page .give-license-status-notice.give-license-expired a:hover {
1828
+ text-decoration: none; }
1829
+
1830
+ /* Responsive fixes: Addon grid design */
1831
+ @media screen and (max-width: 1100px) {
1832
+ .give-settings-page .give-settings-wrap-licenses {
1833
+ width: 45%;
1834
+ min-height: 150px; } }
1835
+
1836
+ @media screen and (max-width: 600px) {
1837
+ .give-settings-page .give-settings-wrap-licenses {
1838
+ width: 100%;
1839
+ max-width: 320px; } }
1840
+
1841
+ /* Tables */
1842
+ .give-table thead th {
1843
+ padding: 8px 10px !important; }
1844
+
1845
+ .give_settings .cmb-td hr + hr {
1846
+ display: none; }
1847
+
1848
+ .post-type-give_forms .mce-container iframe, .post-type-give_forms .wp-editor-area {
1849
+ min-height: 400px; }
1850
+
1851
+ .give-field-description {
1852
+ color: #aaaaaa;
1853
+ font-style: italic;
1854
+ margin: 0;
1855
+ padding-top: .5em; }
1856
+
1857
+ h2.give-nav-tab-wrapper {
1858
+ overflow: hidden;
1859
+ height: 35px; }
1860
+
1861
+ @media screen and (max-width: 600px) {
1862
+ h2.give-nav-tab-wrapper {
1863
+ height: 50px; } }
1864
+
1865
+ @media screen and (max-width: 414px) {
1866
+ .give-nav-tab-wrapper > a {
1867
+ width: 75%; } }
1868
+
1869
+ .give-sub-nav-tab-wrapper {
1870
+ position: relative;
1871
+ display: inline-block;
1872
+ z-index: 9999; }
1873
+ .give-sub-nav-tab-wrapper nav.give-sub-nav-tab {
1874
+ border: 1px solid #ccc;
1875
+ border-bottom: 0;
1876
+ position: absolute;
1877
+ top: 32px;
1878
+ right: 0; }
1879
+ .give-sub-nav-tab-wrapper nav.give-sub-nav-tab a {
1880
+ float: left;
1881
+ background: white;
1882
+ padding: 6px 10px;
1883
+ clear: both;
1884
+ text-decoration: none;
1885
+ border-bottom: 1px solid #ccc;
1886
+ min-width: 170px;
1887
+ color: #555;
1888
+ font-size: 14px; }
1889
+ .give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover {
1890
+ background: #e5e5e5; }
1891
+
1892
+ .give-sub-nav-tab-wrapper {
1893
+ display: none; }
1894
+
1895
+ #give-show-sub-nav {
1896
+ text-decoration: none;
1897
+ padding: 3px 5px;
1898
+ border-bottom: 1px solid #ccc;
1899
+ line-height: 0;
1900
+ background: white;
1901
+ border-radius: 4px; }
1902
+
1903
+ #give-show-sub-nav:hover, #give-show-sub-nav:active {
1904
+ outline: none;
1905
+ box-shadow: inset 0px 0px 4px #ddd; }
1906
+
1907
+ /**
1908
+ * Give Payment History SCSS
1909
+ *
1910
+ * @description Payment History Styles
1911
+ * @package Give
1912
+ * @subpackage SCSS/Admin
1913
+ * @copyright Copyright (c) 2016, WordImpress
1914
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
1915
+ */
1916
+ #give-payment-filters, .give-submit-wrap {
1917
+ clear: both;
1918
+ background: #f5f5f5;
1919
+ border-color: #dfdfdf;
1920
+ overflow: auto;
1921
+ margin: 8px 0;
1922
+ padding: 12px;
1923
+ border-width: 1px;
1924
+ border-style: solid;
1925
+ font-size: 13px;
1926
+ line-height: 2.1em; }
1927
+
1928
+ #give-payment-filters p {
1929
+ color: #777; }
1930
+
1931
+ #give-payment-filters ul.subsubsub {
1932
+ margin-bottom: 8px; }
1933
+
1934
+ #give-payment-filters label {
1935
+ font-style: italic;
1936
+ margin: 0 10px; }
1937
+ #give-payment-filters label.give-start-date-label {
1938
+ margin-left: 5px; }
1939
+
1940
+ #give-payments-filter ul.subsubsub {
1941
+ margin-bottom: 12px; }
1942
+
1943
+ #give-payments-filter .tablenav.top {
1944
+ float: none; }
1945
+ #give-payments-filter .tablenav.top .bulkactions {
1946
+ margin-top: 1px;
1947
+ padding-top: 0; }
1948
+
1949
+ #give-payments-filter .give-email-column-value {
1950
+ font-size: 14px;
1951
+ font-weight: bold; }
1952
+
1953
+ #give-payments-filter #the-list .check-column input {
1954
+ margin-top: 1px; }
1955
+
1956
+ #give-payments-filter .column-details {
1957
+ width: 50px; }
1958
+
1959
+ #give-payments-filter .column-amount {
1960
+ width: 120px; }
1961
+
1962
+ tr.status-refunded td {
1963
+ background: #cecece;
1964
+ border-top-color: #ccc; }
1965
+
1966
+ .wp-list-table.forms th#date {
1967
+ width: 140px; }
1968
+
1969
+ .give-mobile-link {
1970
+ line-height: 32px;
1971
+ vertical-align: middle; }
1972
+
1973
+ .give-mobile-link img {
1974
+ max-width: 80%;
1975
+ height: auto;
1976
+ float: left; }
1977
+
1978
+ .give-donation-status > span {
1979
+ display: inline-block;
1980
+ width: 12px;
1981
+ height: 12px;
1982
+ position: relative;
1983
+ top: 1px;
1984
+ margin: 0;
1985
+ padding: 0;
1986
+ border-radius: 50%;
1987
+ background: #888;
1988
+ line-height: 16px; }
1989
+
1990
+ .give-donation-status.status-pending > span {
1991
+ background-color: #ffba00; }
1992
+
1993
+ .give-donation-status.status-complete > span, .give-donation-status.status-publish > span {
1994
+ background-color: #7ad03a; }
1995
+
1996
+ .give-donation-status.status-refunded > span {
1997
+ background-color: #777; }
1998
+
1999
+ .give-donation-status.status-failed > span {
2000
+ background-color: #a00; }
2001
+
2002
+ .give-donation-status.status-abandoned > span {
2003
+ background-color: #333; }
2004
+
2005
+ .give-donation-status.status-revoked > span {
2006
+ background-color: #d9534f; }
2007
+
2008
+ .give-donation-status.status-subscription > span, .give-donation-status.status-renewal > span, .give-donation-status.status-give_subscription > span {
2009
+ background-color: #5bc0de; }
2010
+
2011
+ #test-payment-label {
2012
+ padding: .2em .4em .3em;
2013
+ font-size: 11px;
2014
+ line-height: 1;
2015
+ color: #fff;
2016
+ text-align: center;
2017
+ white-space: nowrap;
2018
+ vertical-align: baseline;
2019
+ border-radius: .25em;
2020
+ background-color: #ffba00;
2021
+ margin: 0 15px;
2022
+ vertical-align: middle; }
2023
+ #test-payment-label:hover {
2024
+ color: #fff;
2025
+ text-decoration: none; }
2026
+
2027
+ #give-payments-filter .give-payment-id {
2028
+ padding: .2em .4em .3em;
2029
+ font-size: 11px;
2030
+ line-height: 1;
2031
+ color: #fff;
2032
+ text-align: center;
2033
+ white-space: nowrap;
2034
+ vertical-align: baseline;
2035
+ border-radius: .25em;
2036
+ font-weight: normal; }
2037
+ #give-payments-filter .give-payment-id:hover {
2038
+ color: #fff;
2039
+ text-decoration: none; }
2040
+
2041
+ #give-payments-filter .column-details {
2042
+ padding-right: 30px; }
2043
+
2044
+ #give-payments-filter .give-donation-status {
2045
+ display: inline-block; }
2046
+
2047
+ #give-order-update .give-donation-status {
2048
+ display: inline-block;
2049
+ float: none;
2050
+ margin: 0 10px;
2051
+ position: relative;
2052
+ top: 3px; }
2053
+
2054
+ .column-donation_form .donation-level-text-wrap {
2055
+ font-style: italic;
2056
+ display: block; }
2057
+
2058
+ /*---------------------
2059
+ Responsiveness
2060
+ ---------------------------*/
2061
+ @media handheld, only screen and (max-width: 640px) {
2062
+ .wp-list-table.forms th {
2063
+ width: auto !important; } }
2064
+
2065
+ .download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span {
2066
+ margin-left: -8px;
2067
+ margin-top: -8px; }
2068
+
2069
+ /* Payment Details
2070
+ -------------------------------------------------------------- */
2071
+ .give-admin-box .label {
2072
+ font-weight: 600; }
2073
+
2074
+ .give-admin-box-inside {
2075
+ margin: 0;
2076
+ padding: 3px 10px;
2077
+ clear: both;
2078
+ border-bottom: 1px solid #eee; }
2079
+
2080
+ .give-admin-box-inside .strong {
2081
+ font-weight: 600; }
2082
+
2083
+ .give-payment-fees .fee-label {
2084
+ font-weight: normal;
2085
+ color: #666; }
2086
+
2087
+ .give-admin-box .right {
2088
+ float: right; }
2089
+
2090
+ #give-order-update .inside,
2091
+ #give-order-details .inside {
2092
+ margin: 0;
2093
+ padding: 0; }
2094
+
2095
+ #give-order-update input.give_datepicker {
2096
+ width: 180px; }
2097
+
2098
+ #give-order-update input[type="number"].give-payment-time-hour,
2099
+ #give-order-update input[type="number"].give-payment-time-min {
2100
+ width: 50px; }
2101
+
2102
+ .give-admin-box-inside:last-child {
2103
+ border-bottom: 0; }
2104
+
2105
+ #give-edit-order-form .data-payment-key {
2106
+ word-break: break-all; }
2107
+
2108
+ .give-order-update-box #major-publishing-actions .button-secondary {
2109
+ margin-right: 10px; }
2110
+
2111
+ #give-donation-overview th {
2112
+ text-align: left; }
2113
+
2114
+ #give-donation-overview .give-select-chosen {
2115
+ width: 196px; }
2116
+
2117
+ #give-donation-overview ul,
2118
+ #give-order-address-country-wrap select,
2119
+ #give-donor-details .order-data-address input,
2120
+ #give-edit-order-form .column input,
2121
+ #give-donor-details .order-data-column p.data input {
2122
+ clear: both;
2123
+ display: block; }
2124
+
2125
+ .give-order-data input.small-text {
2126
+ margin: 0; }
2127
+
2128
+ #give-order-update span.label {
2129
+ display: inline;
2130
+ width: 50px; }
2131
+
2132
+ .give-order-update-box .button-primary {
2133
+ margin-right: 0; }
2134
+
2135
+ #give-edit-order-form .column .description {
2136
+ padding-right: 10px; }
2137
+
2138
+ #give-edit-order-form .column,
2139
+ #give-donation-overview .row > ul > li,
2140
+ #give-donation-overview .inside > ul > li {
2141
+ display: inline-block;
2142
+ position: relative;
2143
+ vertical-align: top; }
2144
+
2145
+ #give-donation-overview ul {
2146
+ font-size: 0; }
2147
+ #give-donation-overview ul li {
2148
+ font-size: 13px; }
2149
+ #give-donation-overview ul li.actions {
2150
+ text-align: right;
2151
+ min-width: 200px; }
2152
+ #give-donation-overview ul li.remove {
2153
+ text-align: right; }
2154
+ #give-donation-overview ul .row {
2155
+ padding: 12px;
2156
+ border-bottom: 1px solid #eee; }
2157
+
2158
+ #give-order-data .data span {
2159
+ color: #666;
2160
+ font-weight: 600; }
2161
+
2162
+ input.give-price-field {
2163
+ width: 80px;
2164
+ padding: 3px 5px; }
2165
+
2166
+ .give_forms_page_give-payment-history.js .postbox .hndle {
2167
+ cursor: default; }
2168
+
2169
+ #give-payment-notes textarea {
2170
+ min-height: 150px; }
2171
+
2172
+ #give-payment-notes #give-add-payment-note {
2173
+ margin: 6px 0 15px; }
2174
+
2175
+ #give-billing-details .column > div {
2176
+ margin: 0 0 10px; }
2177
+
2178
+ #give-billing-details label {
2179
+ display: block; }
2180
+
2181
+ #give-billing-details .column-container {
2182
+ padding: 5px 0 10px; }
2183
+
2184
+ #give-billing-details input[type="text"] {
2185
+ width: 95%; }
2186
+
2187
+ #give-billing-details .chosen-container {
2188
+ width: 98% !important; }
2189
+
2190
+ @media screen and (min-width: 1200px) {
2191
+ #give-edit-order-form .column {
2192
+ width: 33%; }
2193
+ #give-donation-overview.columns-4 li.actions {
2194
+ width: 25%;
2195
+ margin-top: 0;
2196
+ margin-right: 0; } }
2197
+
2198
+ @media screen and (max-width: 1199px) {
2199
+ #give-edit-order-form .column {
2200
+ width: 49%; } }
2201
+
2202
+ @media screen and (max-width: 782px) {
2203
+ .order-data-column input[type="email"] {
2204
+ padding: 6px 10px; } }
2205
+
2206
+ #give-donor-details .inside, #give-donation-overview .inside {
2207
+ margin-top: 0; }
2208
+
2209
+ .give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables {
2210
+ padding-top: 0; }
2211
+
2212
+ /**
2213
+ * Give Admin Dashboard SCSS
2214
+ *
2215
+ * @description Styles the Give dashboard widget
2216
+ * @package Give
2217
+ * @subpackage SCSS/Admin
2218
+ * @copyright Copyright (c) 2016, WordImpress
2219
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
2220
+ */
2221
+ .give-dashboard-widget .give-dashboard-today {
2222
+ text-align: center; }
2223
+ .give-dashboard-widget .give-dashboard-today .give-dashboard-date-today {
2224
+ margin: 10px 0 0;
2225
+ padding: 0; }
2226
+ .give-dashboard-widget .give-dashboard-today .give-dashboard-happy-day {
2227
+ padding: 3px;
2228
+ margin: 0; }
2229
+ .give-dashboard-widget .give-dashboard-today .give-dashboard-today-earnings {
2230
+ font-size: 42px;
2231
+ color: #4ead61;
2232
+ font-weight: bold;
2233
+ margin: 15px 0 0;
2234
+ line-height: 1; }
2235
+ .give-dashboard-widget .give-dashboard-today .give-donations-today {
2236
+ font-size: 18px;
2237
+ font-weight: bold;
2238
+ margin: 0 0 30px;
2239
+ padding: 4px 0 1px; }
2240
+ .give-dashboard-widget .give-dashboard-today .give-last-seven {
2241
+ font-size: 14px;
2242
+ font-weight: bold;
2243
+ padding: 0;
2244
+ margin: 0 0 30px; }
2245
+
2246
+ .give-dashboard-widget .give-table-stats {
2247
+ width: 100%;
2248
+ text-align: center;
2249
+ margin: 0;
2250
+ table-layout: fixed;
2251
+ border-top: 1px solid #ececec;
2252
+ border-spacing: 0; }
2253
+ .give-dashboard-widget .give-table-stats .give-dashboard-stat-total, .give-dashboard-widget .give-table-stats .give-dashboard-stat-total-label {
2254
+ padding: 0;
2255
+ margin: 0; }
2256
+ .give-dashboard-widget .give-table-stats .give-dashboard-stat-total {
2257
+ color: #4ead61;
2258
+ font-weight: bold;
2259
+ font-size: 16px; }
2260
+
2261
+ #give_dashboard_sales > .inside {
2262
+ padding: 0; }
2263
+
2264
+ #give_dashboard_sales .give-table-stats td {
2265
+ padding: 10px 0; }
2266
+
2267
+ #give_dashboard_sales .give-table-stats td:first-of-type {
2268
+ border-right: 1px solid #ececec; }
2269
+
2270
+ #give_dashboard_sales .give-table-stats tr#give-table-stats-tr-1 td {
2271
+ border-bottom: 1px solid #ececec; }
2272
+
2273
+ #dashboard_right_now .give-forms-count:before {
2274
+ font-family: 'give-icomoon';
2275
+ speak: none;
2276
+ font-style: normal;
2277
+ font-weight: normal;
2278
+ font-variant: normal;
2279
+ text-transform: none;
2280
+ line-height: 1;
2281
+ -webkit-font-smoothing: antialiased;
2282
+ -moz-osx-font-smoothing: grayscale;
2283
+ font-size: 18px;
2284
+ width: 18px;
2285
+ height: 18px;
2286
+ content: "\e800"; }
2287
+
2288
+ /**
2289
+ * Give Forms SCSS
2290
+ *
2291
+ * @package Give
2292
+ * @subpackage SCSS/Admin
2293
+ * @copyright Copyright (c) 2016, WordImpress
2294
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
2295
+ */
2296
+ .give_forms_page_give-donors .wrap > h2 {
2297
+ margin-bottom: 15px; }
2298
+
2299
+ .give_forms_page_give-donors .nav-tab-wrapper .dashicons {
2300
+ position: relative;
2301
+ top: 2px;
2302
+ margin: 0 3px 0 0; }
2303
+
2304
+ .give_forms_page_give-donors #give-donors-filter {
2305
+ position: relative; }
2306
+ .give_forms_page_give-donors #give-donors-filter p.search-box {
2307
+ float: left;
2308
+ margin: 0; }
2309
+
2310
+ .give_forms_page_give-donors .tablenav.top {
2311
+ float: right;
2312
+ clear: none; }
2313
+
2314
+ #give-customer-card-wrapper {
2315
+ margin-left: -1px;
2316
+ z-index: 2;
2317
+ min-height: 200px; }
2318
+ #give-customer-card-wrapper input {
2319
+ font-weight: normal; }
2320
+ #give-customer-card-wrapper .customer-section {
2321
+ border-bottom: 1px solid #eee;
2322
+ margin-bottom: 10px; }
2323
+ #give-customer-card-wrapper .customer-section table {
2324
+ margin-bottom: 0; }
2325
+ #give-customer-card-wrapper > div:first-child {
2326
+ padding-top: 20px; }
2327
+ #give-customer-card-wrapper > div:last-child {
2328
+ padding-bottom: 20px;
2329
+ border: none; }
2330
+ #give-customer-card-wrapper .avatar-wrap {
2331
+ padding: 0 15px 15px 0;
2332
+ text-align: center;
2333
+ float: left; }
2334
+ #give-customer-card-wrapper .avatar-wrap img {
2335
+ border-radius: 3px; }
2336
+ #give-customer-card-wrapper a.delete {
2337
+ text-decoration: none;
2338
+ color: #ff0000;
2339
+ margin-right: 5px; }
2340
+ #give-customer-card-wrapper .donor-bio-header .customer-since {
2341
+ margin: 10px 0;
2342
+ font-size: 16px; }
2343
+ #give-customer-card-wrapper .donor-bio-header .customer-id {
2344
+ display: inline-block;
2345
+ font-size: 24px;
2346
+ font-weight: 600;
2347
+ margin-right: 10px; }
2348
+ #give-customer-card-wrapper .donor-bio-header .customer-name-wrap {
2349
+ display: inline-block; }
2350
+ #give-customer-card-wrapper .donor-bio-header .customer-edit-link {
2351
+ margin-bottom: 15px; }
2352
+
2353
+ .customer-main-wrapper {
2354
+ clear: both;
2355
+ margin: 0 0 20px; }
2356
+ @media (max-width: 655px) {
2357
+ .customer-main-wrapper {
2358
+ width: 100%; } }
2359
+ .customer-main-wrapper table {
2360
+ margin: 0; }
2361
+ .customer-main-wrapper input {
2362
+ width: 200px; }
2363
+
2364
+ #donor-summary {
2365
+ padding: 0 20px; }
2366
+ #donor-summary:after {
2367
+ font-family: "dashicons";
2368
+ content: "\f110";
2369
+ position: absolute;
2370
+ top: 10px;
2371
+ right: 10px;
2372
+ font-size: 100px;
2373
+ color: #F0F0F0;
2374
+ z-index: 0; }
2375
+
2376
+ #give-customer-card-wrapper .customer-address-wrapper {
2377
+ width: 202px; }
2378
+ #give-customer-card-wrapper .customer-address-wrapper span[data-key="line2"] {
2379
+ display: table;
2380
+ clear: both; }
2381
+
2382
+ #give-customer-card-wrapper .customer-address-wrapper select {
2383
+ width: 200px; }
2384
+
2385
+ #give-customer-card-wrapper .customer-info {
2386
+ min-height: 185px; }
2387
+
2388
+ #give-customer-card-wrapper .info-wrapper {
2389
+ min-height: 125px; }
2390
+
2391
+ .customer-info .customer-name {
2392
+ font-size: 24px;
2393
+ font-weight: 600; }
2394
+
2395
+ .disconnect-user a {
2396
+ font-size: 12px;
2397
+ font-weight: normal;
2398
+ text-decoration: none; }
2399
+
2400
+ #customer-edit-actions {
2401
+ text-align: center;
2402
+ margin-bottom: 20px;
2403
+ line-height: 28px; }
2404
+
2405
+ #customer-edit-actions .button-secondary {
2406
+ margin-right: 10px; }
2407
+
2408
+ #give-customer-card-wrapper .edit-item {
2409
+ display: none; }
2410
+
2411
+ #give-customer-card-wrapper .give_user_search_results {
2412
+ left: 1px;
2413
+ top: 16px; }
2414
+
2415
+ #give-customer-card-wrapper .give_user_search_results ul {
2416
+ width: 200px; }
2417
+
2418
+ #customer-stats-wrapper {
2419
+ margin: 0 auto;
2420
+ text-align: center;
2421
+ padding: 15px; }
2422
+ #customer-stats-wrapper ul {
2423
+ margin: 0;
2424
+ padding: 0;
2425
+ overflow: hidden; }
2426
+ #customer-stats-wrapper ul li {
2427
+ width: 50%;
2428
+ float: left;
2429
+ line-height: 22px;
2430
+ font-size: 14px;
2431
+ margin: 0; }
2432
+ #customer-stats-wrapper a {
2433
+ text-decoration: none; }
2434
+
2435
+ #customer-stats-wrapper .dashicons {
2436
+ color: #888; }
2437
+
2438
+ #customer-tables-wrapper table {
2439
+ width: 100%;
2440
+ text-align: center; }
2441
+
2442
+ #customer-tables-wrapper th {
2443
+ text-align: center; }
2444
+
2445
+ #customer-tables-wrapper .donations tr > th:first-child,
2446
+ #customer-tables-wrapper .donations tr > td:first-child,
2447
+ #customer-tables-wrapper .emails tr > th:first-child,
2448
+ #customer-tables-wrapper .emails tr > td:first-child {
2449
+ text-align: left; }
2450
+
2451
+ #customer-tables-wrapper .donations tr > td:only-child {
2452
+ text-align: center; }
2453
+
2454
+ #customer-notes-wrapper {
2455
+ min-height: 50px; }
2456
+
2457
+ .customer-notes-header span, .customer-notes-header img {
2458
+ font-weight: 600;
2459
+ line-height: 30px;
2460
+ vertical-align: middle; }
2461
+
2462
+ .customer-note-input {
2463
+ width: 100%;
2464
+ margin-bottom: 5px; }
2465
+
2466
+ #give-customer-notes div:nth-of-type(even) {
2467
+ background-color: #f9f9f9; }
2468
+
2469
+ #give-customer-notes .customer-note-wrapper {
2470
+ border-bottom: 1px solid #f9f9f9;
2471
+ min-height: 38px;
2472
+ padding: 0; }
2473
+ #give-customer-notes .customer-note-wrapper .note-content-wrap {
2474
+ padding: 10px 12px;
2475
+ line-height: 20px;
2476
+ font-size: 14px; }
2477
+
2478
+ #give-customer-notes .give-no-customer-notes {
2479
+ text-align: center;
2480
+ padding: 20px; }
2481
+
2482
+ .customer-note-wrapper span {
2483
+ display: block; }
2484
+
2485
+ .delete-customer {
2486
+ text-align: center; }
2487
+
2488
+ /**
2489
+ * Give Admin Buttons SCSS
2490
+ *
2491
+ * @package Give
2492
+ * @subpackage SCSS/Admin
2493
+ * @copyright Copyright (c) 2016, WordImpress
2494
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
2495
+ */
2496
+ /*=Give Shortcode Button
2497
+ --------------------------------------*/
2498
+ @media screen and (max-width: 782px) {
2499
+ #wp-content-media-buttons a.give-thickbox {
2500
+ padding: 6px 14px;
2501
+ line-height: normal;
2502
+ font-size: 14px;
2503
+ height: auto; }
2504
+ .wp-media-buttons span#give-media-button {
2505
+ margin-top: 0 !important;
2506
+ margin-left: 2px !important; } }
2507
+
2508
+ /*=Button in shortcode tinymce dialog
2509
+ --------------------------------------*/
2510
+ .mce-primary.mce-give-primary button {
2511
+ padding-right: 10px;
2512
+ padding-left: 10px; }
2513
+
2514
+ /*=Admin Buttons w/ Icons
2515
+ --------------------------------------*/
2516
+ /* extends .wp-core-ui .button */
2517
+ .wp-core-ui .give-admin-button {
2518
+ padding-left: 7px;
2519
+ padding-right: 7px; }
2520
+
2521
+ /* matches style of Add Media and Give Shortcodes buttons */
2522
+ .give-admin-button-icon {
2523
+ display: inline-block;
2524
+ width: 18px;
2525
+ height: 18px;
2526
+ vertical-align: text-top;
2527
+ margin: 0 2px;
2528
+ /* specific DashIcon styles */ }
2529
+ .give-admin-button-icon:before {
2530
+ font: 400 18px/1 dashicons;
2531
+ speak: none;
2532
+ -webkit-font-smoothing: antialiased;
2533
+ -moz-osx-font-smoothing: grayscale; }
2534
+ .give-admin-button-icon-update:before {
2535
+ content: "\f463"; }
2536
+
2537
+ /* =Primary button in shortcode tinymce dialog
2538
+ -------------------------------------------------------------- */
2539
+ .mce-primary.mce-sc-primary button {
2540
+ padding-right: 10px;
2541
+ padding-left: 10px; }
2542
+
2543
+ .mce-sc-popup a {
2544
+ text-decoration: underline; }
2545
+
2546
+ .mce-sc-popup p {
2547
+ margin-bottom: 1em; }
2548
+ .mce-sc-popup p.strong {
2549
+ font-weight: 600; }
2550
+ .mce-sc-popup p.no-margin {
2551
+ margin-bottom: 0; }
2552
+ .mce-sc-popup p.margin-top {
2553
+ margin-top: 1em; }
2554
+
2555
+ .mce-sc-popup .mce-listbox button {
2556
+ text-overflow: ellipsis;
2557
+ overflow: hidden !important; }
2558
+
2559
+ /* =Shortcode button above wp_editor
2560
+ -------------------------------------------------------------- */
2561
+ @media screen and (max-width: 782px) {
2562
+ .wp-media-buttons button.sc-button span {
2563
+ width: 18px !important; } }
2564
+
2565
+ .wp-media-buttons button.sc-button {
2566
+ outline: none;
2567
+ padding-left: 5px;
2568
+ margin-right: 0; }
2569
+ .wp-media-buttons button.sc-button:active {
2570
+ margin-bottom: 5px; }
2571
+
2572
+ button.sc-button:after {
2573
+ position: relative;
2574
+ display: inline-block;
2575
+ top: -1px;
2576
+ content: '';
2577
+ width: 0;
2578
+ height: 0;
2579
+ border-top: 6px solid #777;
2580
+ border-right: 4px solid transparent;
2581
+ border-left: 4px solid transparent;
2582
+ margin: 0 3px 0 6px; }
2583
+
2584
+ button.sc-button.active:after {
2585
+ top: -2px;
2586
+ border-top: 0;
2587
+ border-bottom: 6px solid #32373c; }
2588
+
2589
+ /* =Shortcode button dropdown menu
2590
+ -------------------------------------------------------------- */
2591
+ .sc-wrap {
2592
+ position: relative;
2593
+ display: inline-block;
2594
+ margin-right: 5px; }
2595
+
2596
+ div.sc-menu {
2597
+ display: none;
2598
+ position: absolute;
2599
+ top: 100%;
2600
+ left: 0;
2601
+ min-width: 100%;
2602
+ max-height: 410px;
2603
+ font-size: 14px;
2604
+ box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
2605
+ background: #fff;
2606
+ border: 1px solid rgba(0, 0, 0, 0.15);
2607
+ overflow: auto;
2608
+ overflow-x: hidden;
2609
+ padding: 5px 0;
2610
+ margin: -2px 0 0;
2611
+ z-index: 1002; }
2612
+
2613
+ div.sc-shortcode {
2614
+ display: block;
2615
+ white-space: nowrap;
2616
+ cursor: pointer;
2617
+ padding: 6px 12px;
2618
+ margin-bottom: 2px; }
2619
+ div.sc-shortcode:hover {
2620
+ color: #fff; }
2621
+
2622
+ /* =Shortcode tinymce dialog backdrop
2623
+ -------------------------------------------------------------- */
2624
+ #mce-modal-block.mce-reset.mce-fade.mce-in {
2625
+ opacity: 0.7;
2626
+ filter: alpha(opacity=70); }
2627
+
2628
+ /**
2629
+ * Give System Info SCSS
2630
+ *
2631
+ * @description System Info Styles
2632
+ * @package Give
2633
+ * @subpackage SCSS/Admin
2634
+ * @copyright Copyright (c) 2016, WordImpress
2635
+ * @license https://opensource.org/licenses/gpl-3.0/ GNU Public License
2636
+ *
2637
+ * The following code is a derivative work of the code from the WooCommerce
2638
+ * plugin, which is licensed GPLv3. This code therefore is also licensed under
2639
+ * the terms of the GNU Public License, version 3.
2640
+ *
2641
+ * Copyright (c) 2015 WooThemes
2642
+ * Copyright (c) 2016 WordImpress, LLC
2643
+ */
2644
+ .give-status-table {
2645
+ margin-bottom: 1em; }
2646
+ .give-status-table h2 {
2647
+ font-size: 14px;
2648
+ margin: 0; }
2649
+ .give-status-table tr:nth-child(2n) th,
2650
+ .give-status-table tr:nth-child(2n) td {
2651
+ background: #fcfcfc; }
2652
+ .give-status-table th {
2653
+ font-weight: 700;
2654
+ padding: 9px; }
2655
+ .give-status-table td:first-child {
2656
+ width: 33%; }
2657
+ .give-status-table td.help {
2658
+ width: 1em; }
2659
+ .give-status-table td {
2660
+ padding: 9px;
2661
+ font-size: 1.1em; }
2662
+ .give-status-table td mark {
2663
+ background: transparent none; }
2664
+ .give-status-table td mark.yes {
2665
+ color: #7ad03a; }
2666
+ .give-status-table td mark.no {
2667
+ color: #999; }
2668
+ .give-status-table td mark.error {
2669
+ color: #a00; }
2670
+ .give-status-table td ul {
2671
+ margin: 0; }
2672
+
2673
+ .wrap div.give-debug-report-wrapper {
2674
+ margin-top: 1em; }
2675
+
2676
+ .give-debug-report {
2677
+ display: none;
2678
+ margin: 10px 0;
2679
+ padding: 0;
2680
+ position: relative; }
2681
+ .give-debug-report textarea {
2682
+ font-family: monospace;
2683
+ width: 100%;
2684
+ margin: 0;
2685
+ height: 300px;
2686
+ padding: 20px;
2687
+ -moz-border-radius: 0;
2688
+ -webkit-border-radius: 0;
2689
+ border-radius: 0;
2690
+ resize: none;
2691
+ font-size: 12px;
2692
+ line-height: 20px;
2693
+ outline: 0; }
2694
+
2695
+ /*# sourceMappingURL=../sourcemaps/give-admin.css.map */
assets/css/give-admin.css.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"sources":["give-admin.scss","frontend/_mixins.scss","frontend/_variables.scss","plugins/qtip.scss","frontend/fonts.scss","give-admin.css","admin/forms.scss","admin/addons.scss","admin/reports.scss","admin/welcome.scss","admin/logs.scss","admin/settings.scss","admin/payment-history.scss","admin/dashboard.scss","admin/donors.scss","admin/buttons.scss","admin/shortcodes.scss"],"names":[],"mappings":"AAAA;;;;;;;;EAQE;ACRF;;GAEG;AAeH;GAbE,QAAS,EAeV;EAFD;IATC,aAAa;IACb,eAAe,EACb;EAOH;IAJC,YAAY,EACV;;AAOH;;;GAGG;AAOH;;GAEG;AAwBH;EAfE,wBAAwB;EACxB,eAAe;EACf,iBAAiB;EACjB,eAAe;EACf,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;EACpB,yBAAyB;EACzB,qBAAqB,EAStB;;AAED;EAPE,0BAA0B,EAS3B;;AC/DD;;GAEG;ACFH;;;;;;;;;;;GAWG;AACH;EACC,mBAAmB;EACnB,eAAe;EACf,cAAc;EACd,cAAc;EAEd,iBAAiB;EACjB,gBAAgB;EAEhB,kBAAkB;EAClB,kBAAkB;EAElB,eAAe;EAEf,iBAAiB;EACjB,WAAW,EACX;;AAEA;EACC,mBAAmB;EACnB,iBAAiB;EACjB,iBAAiB;EAEjB,iBAAiB;EACjB,sBAAsB,EACtB;;AAED;EACC,mBAAmB;EACnB,2BAA2B;EAC3B,iBAAiB;EAEjB,sBAAsB;EACtB,kBAAkB,EAClB;;AAED;EAAgC,+BAA+B,EAAI;;AAEnE,gCAAgC;AAChC;EACC,mBAAmB;EACnB,YAAY;EAAE,UAAU;EACxB,YAAY;EAAE,uBAAuB;EAErC,gBAAgB;EAChB,qBAAqB;EAErB,8BAA8B,EAC9B;;AAEA;EACC,WAAW;EAAE,SAAS;EACtB,iBAAiB,EACjB;;AAED;EAAmC,UAAU,EAAI;;AAAA,YAAY;AAE7D;;EAEC,eAAe;EACf,qBAAqB;EACrB,eAAe,EACf;;AAED;EAGC,mBAAmB;EACnB,sBAAsB,EACtB;;AAEA;EACC,YAAY;EACZ,aAAa;EAEb,kBAAkB;EAClB,mBAAmB;EACnB,eAAe;EACf,8CAA8C;EAE9C,eAAe;EACf,qDAAqD,EACrD;;AAEJ,gFAAgF;AAGhF,2FAA2F;AAG3F,2BAA2B;AAC3B;EACC,0BAA0B;EAE1B,0BAA0B;EAC1B,YAAY,EACZ;;AAEA;EACC,0BAA0B,EAC1B;;AAED;EACC,mBAAmB;EACnB,oBAAoB;EACpB,YAAY,EACZ;;AAED;EACC,mBAAmB;EACnB,YAAY,EACZ;;AAGF,0BAA0B;AAC1B;EACC,wBAAwB;EACxB,sBAAsB;EACtB,eAAe,EACf;;AAEA;EACC,0BAA0B,EAC1B;;AAGF,yBAAyB;AACzB;EACC,0BAA0B;EAC1B,sBAAsB;EACtB,eAAe,EACf;;AAEA;EACC,0BAA0B,EAC1B;;AAED;EACC,mBAAmB,EACnB;;AAED;EACC,sBAAsB,EACtB;;AAGF,0BAA0B;AAC1B;EACC,0BAA0B;EAC1B,sBAAsB;EACtB,eAAe,EACf;;AAEA;EACC,0BAA0B,EAC1B;;AAED;EACC,6BAA6B,EAC7B;;AAGF,wBAAwB;AACxB;EACC,0BAA0B;EAC1B,sBAAsB;EACtB,eAAe,EACf;;AAEA;EACC,0BAA0B,EAC1B;;AAED;EACC,8BAA8B,EAC9B;;AAED;EACC,sBAAsB,EACtB;;AAED;EACC,sBAAsB,EACtB;;AAGF,0BAA0B;AAC1B;EACC,0BAA0B;EAC1B,sBAAsB;EACtB,eAAe,EACf;;AAEA;EACC,0BAA0B,EAC1B;;AAED;EACC,6BAA6B,EAC7B;;AAGF,yBAAyB;AACzB;EACC,0BAA0B;EAC1B,sBAAsB;EACtB,eAAe,EACf;;AAEA;EACC,0BAA0B,EAC1B;;AAED;EACC,4BAA4B,EAC5B;;AAGF;EAGC,gDAAgC,EAChC;;AAED,4FAA4F;AAC5F;;;EAKC,mBAAmB,EACnB;;AAED;EAGC,2BAA2B,EAC3B;;AAED,2BAA2B;AAC3B;EAGC,mBAAmB;EAInB,yBAAyB;EAEzB,aAAa;EACb,4BAA4B;EAE5B,oBAAoB;EACpB,mHAAkC;EAClC,sEAAyC;EAGzC,iEAAoC,EACpC;;AAEA;EACC,0BAA0B;EAC1B,8BAAsB,EACtB;;AAED;EACC,eAAe;EACf,4BAA4B;EAE5B,6GAA4G;EAC5G,oHAAoH,EACpH;;AAED;EACC,mBAAmB,EACnB;;AAED;EACC,sBAAsB,EACtB;;AAGF,gCAAgC;AAChC;EACC,oBAAoB;EACpB,+BAAgB;EAChB,8FAAkC;EAElC,iEAAyC;EAEzC,4DAAoC;EAEpC,uBAAuB;EACvB,0BAAsB;EAItB,mBAAmB;EAInB,0BAA0B,EAC1B;;AAEA,iBAAiB;AACjB;EACC,8BAA8B;EAC9B,8FAA4F;EAC5F,oGAAoG,EACpG;;AACD;EACC,8FAA4F;EAC5F,oGAAoG,EACpG;;AAED;;EAEC,wBAAwB;EACxB,aAAa;EACb,6BAA6B,EAC7B;;AAED;EACC,mBAAmB,EACnB;;AAED;EACC,mBAAmB,EACnB;;AAGF,mBAAmB;AACnB;EAGC,2CAA4B;EAE5B,0BAA0B;EAC1B,YAAY;EACZ,6BAA6B,EAC7B;;AAEA;EACC,0BAA0B;EAC1B,aAAa;EACb,6BAA6B,EAC7B;;AAED;EACC,sBAAsB,EACtB;;AAED;EACC,sBAAsB;EACtB,eAAe,EACf;;AAGF,iBAAiB;AACjB;EACC,kBAAkB;EAClB,gCAAgB;EAEhB,aAAa;EACb,4BAA4B;EAE5B,gBAAgB;EAChB,yCAAyC;EACzC,kBAAkB;EAClB,kBAAkB;EAClB,yBAAyB,EACzB;;AAEA;EACC,yBAAyB;EACzB,8BAA8B,EAC9B;;AAED;EACC,kBAAkB,EAClB;;AAED;EACC,mBAAmB;EACnB,kBAAkB,EAClB;;AAED;EACC,sBAAsB,EACtB;;AAGF,kBAAkB;AAClB;EACC,0BAA0B;EAI1B,mBAAmB;EAEnB,0BAA0B;EAC1B,eAAe;EAEf,oBAAoB;EACpB,mBAAmB,EACnB;;AAEA;EACC,uBAAuB;EAEvB,aAAa;EACb,oBAAoB;EACpB,8FAAkC;EAClC,iEAAyC;EAGzC,4DAAoC;EACpC,8FAA4F;EAC5F,oGAAoG,EACpG;;AAED;EACC,0BAA0B;EAC1B,oBAAoB,EACpB;;AAEA;EACC,0BAA0B;EAC1B,YAAY,EACZ;;AAGH;;;;;GAKG;AACH;EACC,gCAAgC;EAChC,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;EAEf,oCAAoC;EACpC,aAAa;EACb,0BAA0B;EAC1B,uBAAuB;EACvB,qCAAsB;EAGtB,mBAAmB;EAGnB,0CAA2B;EAG3B,6BAA6B,EAC7B;;AAEA;EACC,0CAA0C;EAC1C,kBAAkB;EAClB,UAAU;EACV,gBAAgB;EAChB,oBAAoB;EACpB,kBAAkB;EAClB,0BAA0B;EAC1B,iCAAiC;EAGjC,2BAA2B,EAC3B;;AAEA;EACC;;;;;;;;;MASG;EACH,YAAY;EACZ,SAAS;EACT,mBAAmB,EACnB;;AAEF;EACC,4CAA4C;EAC5C,kBAAkB,EAClB;;AAED;EACC;;;;;;;KAOG;EACH,wBAAwB,EACxB;;AAEA;EACC;;;;;;MAMG;EACH,YAAY;EACZ,aAAa;EAEb,iCAAiC;EACjC,aAAa;EACb,gBAAgB;EAChB,kBAAkB;EAClB,kBAAkB;EAClB,eAAe;EACf,6BAA6B;EAC7B,aAAa;EACb,0BAAa,EACb;;AAED;EACC,uCAAuC;EACvC,eAAe;EACf,sBAAsB;EACtB,gBAAgB;EAChB,aAAa;EACb,0BAAa,EACb;;AAGH,mCAAmC;AACnC;;EAEC,qBAAa;UAAb,aAAa;EACb,iBAAiB,EACjB;;AAGD;EACC,eAAe;EACf,iBAAiB;EACjB,YAAY,EAEZ;;AAEA;+CAC8C;AAC9C;EACC,mBAAmB,EACnB;;AAED;;;EAGC,mBAAmB;EAEnB,eAAe;EACf,wBAAwB;EACxB,6BAA6B,EAC7B;;AAED;EAAwB,OAAO;EAAE,QAAQ,EAAI;;AAE7C;EACC,4BAA2B;EAC3B,sBAAsB;EACtB,oBAAoB,EACpB;;AAGF;EACC,gBAAgB;EAChB,QAAQ;EAAE,OAAO;EACjB,YAAY;EAAE,aAAa,EAC3B;;AAEA,wDAAwD;AACxD;EAAqB,gBAAgB,EAAI;;AAEzC,oCAAoC;AACpC;EACC,mBAAmB;EACnB,QAAQ;EAAE,OAAO;EACjB,YAAY;EAAE,aAAa;EAE3B,wBAAwB;EAExB,aAAa;EACb,0BAAY;EACZ,kEAAiE,EACjE;;AAGF;EACC,8BAA8B,EAC9B;;ACxmBD;;;;;;;;EAQE;AACF;EACE,4BAA4B;EAC5B,+CAAQ;EACR,2QAGwD;EACxD,oBAAoB;EACpB,mBAAmB,EAAA;;ACsiBrB;EDliBE,4BAA4B;EAC5B,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;EACpB,qBAAqB;EACrB,qBAAqB;EACrB,eAAe;EAEf,uCAAuC;EACvC,oCAAoC;EACpC,mCAAmC,EAKpC;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB,EAClB;;AAED;EAjEE,4BAA4B;EAC5B,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;EACpB,qBAAqB;EACrB,qBAAqB;EACrB,eAAe;EAEf,uCAAuC;EACvC,oCAAoC;EACpC,mCAAmC;EAyDnC,iBAAiB,EAClB;;AAKD;EACE,+CAA+C;EAC/C,uCAAuC,EACxC;;AACD;EACE;IACE,gCAAyB;IACzB,wBAAiB,EAAA;EAEnB;IACE,kCAAyB;IACzB,0BAAiB,EAAA,EAAA;;AAGrB;EACE;IACE,gCAAyB;IACzB,wBAAiB,EAAA;EAEnB;IACE,kCAAyB;IACzB,0BAAiB,EAAA,EAAA;;AEnHrB;;;;;;;EAOE;AAEF;;wCAEwC;AACxC,6BAA6B;AAC7B;;;;;;;;;;;EAWE,cAAc,EACf;;AAED,qCAAqC;AACrC;EACE,gBAAgB,EACjB;;AAED;EACE,cAAc,EACf;;AAED,gBAAgB;AAChB;EACE,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,aAAa,EAEd;;AAGD;EACE,gCAAgC;EAChC,qBAAqB;EACrB,oBAAoB;EACpB,+BAA+B,EAwBhC;EA5BD;IAOC,eAAe;IACf,YAAY;IAEZ,8BAA8B;IAC9B,iCAAiC;IACjC,+BAA+B,EAe7B;IA3BH;MAeG,mBAAmB;MACnB,oBAAoB,EASrB;MAzBF;QAmBE,oBAAoB;QACpB,uBAAuB;QACvB,mBAAmB;QACnB,gCAAgC,EAC9B;;AAOJ;EACE,oBAAoB;EACpB,qBAAqB;EACrB,uBAAuB,EAyBxB;EA5BD;IAMC,UAAU,EACR;EAPH;IASC,gBAAgB,EAUd;IAnBH;MAYG,aAAa;MACb,eAAe,EAChB;IAdF;MAgBG,oBAAoB,EACrB;EAjBF;IAsBC,cAAc,EACZ;EAvBH;IAyBC,iBAAiB,EACf;;AAOH;EACE,YAAY,EACb;;AAED;EACE,YAAY;EACZ,gBAAgB;EAChB,eAAe,EAChB;;AAED;EACE,0BAA0B;EAC1B,oBAAoB;EACpB,UAAU;EACV,gBAAgB;EAChB,iBAAiB,EAClB;;AAED;EACE,gBAAgB,EACjB;;AAED;EACE,eAAe,EAChB;;AAED;EACE,mBAAmB;EACnB,0BAA0B;EAC1B,oBAAoB;EACpB,iBAAiB;EACjB,gBAAgB,EACjB;;AAED;EACE,2BAA2B,EAC5B;;AAED;EACE,oBAAoB,EAUrB;EAXD;IAIC,mBAAmB,EACjB;EALH;IAOC,oBAAoB;IACpB,uBAAuB,EACrB;;AAIH;EACE,UAAU,EAMX;EAPD;IAIC,kBAAkB,EAChB;;AAIH,wCAAwC;AACxC;EAEE;IACD,cAAc,EACZ;EAED;IACD,YAAY;IACZ,YAAY,EACV;EAED;IACD,YAAY;IACZ,oBAAoB,EAClB;EAED;IACD,gBAAgB,EACd,EAAA;;AAIH,iCAAiC;AACjC;EAEE;IAGC,YAAY;IACZ,eAAe,EAChB;EALA;IAOC,aAAa,EACd;EARA;IAUC,YAAY,EACb;EAXA;IAcC,aAAa;IACb,oBAAoB,EACrB;EAhBA;IAkBC,kBAAkB,EACnB;EAIA;IACD,YAAY,EACV;EACD;IACD,qBAAqB,EACnB;EAED;IACD,YAAY,EACV;EAED;IACD,aAAa,EACX;EACD;IACD,yBAAyB,EACvB,EAAA;;AAGH;EACE;IAGC,aAAa;IACb,oBAAoB,EACrB;EAGA;IACD,aAAa,EACX,EAAA;;AAIH;EACE;IACD,aAAa,EACX;EAED;IACD,oBAAoB,EAClB;EAED;IACD,iBAAiB,EACf;EAED;IACD,YAAY,EACV;EAED;IACD,YAAY,EACV;EACD;IACD,gBAAgB,EACd;EACD;IACD,YAAY,EACV;EAED;IACD,aAAa,EACX;EAED;IACD,aAAa,EACX,EAAA;;AAIH;EAEE;IACD,aAAa,EACX;EAED;IACD,aAAa,EACX,EAAA;;AAIH,+BAA+B;AAC/B;EACE;IACD,yBAAyB,EACvB;EAED;IACD,YAAY;IACZ,kBAAkB;IAClB,gBAAgB,EACd,EAAA;;AAIH;;uCAEuC;AAEvC,oBAAoB;AAEpB;EACE,2BAA2B,EAY5B;EAbD;IAIC,gBAAgB;IAChB,eAAe;IACf,gBAAgB,EACd;EAPH;IAUC,UAAU;IACV,YAAY,EACV;;AAGH;;uCAEuC;AAEvC;;;;;EAKE,+BAA+B;EAC/B,qBAAqB,EACtB;;AAED;;;;;EAKE,yCAAyC,EAC1C;;AAED;;yCAEyC;AAEzC;;EAEE,cAAc,EACf;;AAED;;uCAEuC;AAEvC;EACE,YAAY,EACb;;AAED;;uCAEuC;AAEvC;EAKG,cAAc,EACf;;AANF;EAUC,6BAA6B,EAC3B;;AAXH;EAcC,kBAAkB,EAChB;;AAfH;EAkBC,kBAAkB,EAChB;;AAIH;EACE,gBAAgB;EAChB,iBAAiB,EAClB;;AAED;;uCAEuC;AACvC;EACE,cAAc;EACd,WAAW;EACX,gBAAgB;ELvXhB,oCAA4B;UAA5B,4BAA4B;EKyX5B,6BAAqB;EACrB,mBAAmB;EACnB,SAAS,EAMV;EAbD;IAUC,YJ3ZU,EI4ZR;;ACpaH;;;;;;;;EAQE;AAEF;EACE,YAAY;EACZ,+BAA+B;EAC/B,WAAW;EACX,oBAAoB;EACpB,aAAa;EACb,sBAAsB;EACtB,eAAe;EACf,uBAAuB;EACvB,eAAe;EACf,kBAAkB;EAClB,iBAAiB;EACjB,oBAAoB;EAEpB,sFAAsE;EACtE,uDAAuD;EACvD,+CAA+C;EAC/C,kCAAkC;EAClC,0BAA0B;EAC1B,gDAAgD;EAChD,wCAAwC;EACxC,mBAAmB,EAkCpB;EAvDD;IAwBC,0BAA0B,EACxB;EAzBH;IA4BC,8BAA8B,EAC5B;EA7BH;KNNE,QAAS;IMuCV,mBAAmB,EAUjB;IA3CH;MNFC,aAAa;MACb,eAAe,EACb;IMAH;MNGC,YAAY,EACV;IMJH;MAoCG,iBAAiB,EAKlB;MAzCF;QAsCE,cAAc;QACd,sBAAsB,EACpB;EAxCJ;IA8CC,2BAA2B;IAC3B,mBAAmB;IACnB,YAAY;IACZ,QAAQ;IACR,YAAY;IACZ,uBAAuB;IACvB,mBAAmB,EACjB;;AAIH;EAGC,YAAY;EACZ,aAAa;EACb,gBAAgB;EAChB,kBAAkB,EAChB;;AAIH;EACE,iBAAiB,EAClB;;AChFD;;;;;;;;EAQE;AAEF;EAGC,eAAe;EACf,kBAAkB,EAChB;;AALH;EAQC,oBAAoB,EAClB;;AATH;EAYC,YAAY,EACV;;AAbH;EAiBG,UAAU,EAIX;EArBF;IAmBE,WAAW,EACT;;AApBJ;EAyBC,YAAY;EACZ,iBAAiB;EACjB,eAAe,EAab;EAxCH;IA8BG,YAAY;IACZ,kBAAkB;IAClB,mBAAmB;IACnB,mBAAmB,EACpB;EAlCF;IAqCG,gBAAgB,EACjB;;AAtCF;EA2CC,sBAAsB;EACtB,aAAa;EACb,gBAAgB,EACd;;AAIH;iEACiE;AACjE;EAEC,0BAA0B,EACxB;;AAHH;EAKC,0BAA0B,EACxB;;AAKH;EAGC,oBAAoB,EAClB;;AAJH;EAMC,eAAe,EACb;;AAPH;EAUC,kBAAkB,EAChB;;AAXH;EAcC,mBAAmB,EACjB;;AAfH;EAoBG,aAAa,EACd;;AArBF;EAuBG,cAAc,EACf;;AAxBF;EA0BG,YAAY,EACb;;AA3BF;EAgCC,YAAY,EACV;;AAjCH;EAoCC,YAAY;EACZ,YAAY;EACZ,iBAAiB,EACf;;AAvCH;EA0CC,aAAa;EACb,iBAAiB,EAQf;EAnDH;IA8CG,YAAY,EACb;EA/CF;IAiDG,iBAAiB,EAClB;;AAlDF;EAsDC,iBAAiB,EACf;;AAvDH;EA0DC,gBAAgB,EACd;;AA3DH;EA8DC,iBAAiB,EACf;;AA/DH;EAkEC,gBAAgB;EAChB,oBAAoB,EAClB;;AApEH;EAuEC,kBAAkB;EAClB,qBAAqB,EACnB;;AAIH;;6BAE6B;AAE7B;EAEC,mBAAmB,EACjB;;AAGH;;6BAE6B;AAE7B;EAEC,iBAAiB,EACf;;AAGH;;6BAE6B;AAE7B;EAEC,gBAAgB;EAChB,kBAAkB,EAChB;;AAIH;EAGC,uBAAuB,EACrB;;AAJH;EAOG,kBAAkB;EAClB,iBAAiB,EAClB;;AATF;EAWG,gBAAgB;EAChB,mBAAmB;EACnB,oBAAoB;EACpB,YAAY;EACZ,UAAU,EACX;;AAKF;;8BAE8B;AAC9B;EAEC,aAAa,EACX;;AAHH;EAKC,YAAY;EACZ,YAAY;EACZ,cAAc,EACZ;;ACtNH;;;;;;;;EAQE;AAEF;EACE,sBAAsB;EACtB,8BAA8B,EAC/B;;AAGD;EAGC,YAAY;EACZ,aAAa;EACb,gBAAgB;EAChB,kBAAkB,EAChB;;AAPH;EAUC,WAAU;EACV,YAAW,EACT;;AAZH;EAeC,gBAAe;EACf,gBAAe,EACb;;AJgnCH;EIxmCC,cAAc,EACZ;;AAIH;EACE,sBAAsB,EAOvB;EARD;IAGC,sBAAsB,EACpB;EAJH;IAMC,sBAAsB,EACpB;;AAIH;EAEC,mBAAmB,EACjB;;AAHH;EAKC,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB,EACjB;;AAIH;EACE,gBAAgB;EAChB,mBAAmB;EACnB,YAAY,EACb;;AAED;EACE,yBAAyB;EACzB,iBAAiB,EAoBlB;EAtBD;IAKC,aAAa,EACX;EANH;IASC,iBAAiB;IAEjB,2CAA4B;IAC5B,yBAAyB;IACzB,kBAAkB;IAClB,+BAA+B;IAC/B,cAAc,EAKZ;IApBH;MAiBG,gBAAgB;MAChB,aAAa,EACd;;AC9FF;;;;;;;;EAQE;AAEF;EACE,gBAAgB,EACjB;;ACZD;;;;;;;GAOG;AAEH;;wCAEwC;AACxC;EAGC,mBAAmB,EACjB;;AAJH;EAOC,gBAAgB,EACd;;AARH;EAWC,eAAe;EACf,mBAAmB,EACjB;;AAbH;EAgBC,eAAe,EACb;;AAjBH;EAoBC,gBAAgB,EACd;;AAIH,oBAAoB;AAEpB;EACE,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,YAAY,EACb;;AAED;EACE,iCAAiC;EACjC,iBAAiB,EAClB;;AAED;EACE,cAAc,EACf;;AAED,kCAAkC;AAClC;EACE,WAAW,EAIZ;EALD;IAGC,gBAAgB,EACd;;AAGH,8BAA8B;AAC9B;EAEC,mBAAmB,EAKjB;EAPH;IAIG,oBAAoB;IACpB,YAAY,EACb;;AAIF,6BAA6B;AAC7B;EAEC,mBAAmB;EACnB,YAAY;EACZ,gBAAgB,EACd;;AALH;EAOC,qBAAqB,EACnB;;AARH;EAUC,oBAAoB,EAClB;;AAGH;iEACiE;AACjE;EACE,aAAa;EACb,cAAc;EACd,sCAAsC;EACtC,iBAAiB;EACjB,iBAAiB;EACjB,eAAe;EACf,eAAe,EAChB;;AAED;EACE,UAAU,EACX;;AAED;iEACiE;AAEjE;EAGC,WAAW,EACT;;AAJH;EAMC,kBAAkB,EAChB;;AAPH;EAUC,iBAAiB,EAEf;;AAIH;EACE,mBAAmB;EACnB,kBAAkB,EACnB;;AAED;EACE,mBAAmB;EACnB,QAAQ;EACR,UAAU,EAiBX;EApBD;IAMC,mBAAmB;IACnB,WAAW;IACX,SAAS,EACP;EATH;IAWC,uBAAuB;IACvB,UAAU;IACV,oBAAoB;IACpB,0BAA0B;IAC1B,aAAa;IACb,kBAAkB;IAClB,mBAAmB,EACjB;;AAIH;EACE,kBAAkB,EACnB;;AAED;EACE,YAAY,EACb;;AAED;iEACiE;AACjE;EAEC,qBAAqB;EACrB,aAAa,EACX;;AAJH;EAOC,6CAAqB;EACrB,uBAAuB;EACvB,6BAA6B;EAC7B,kCAAkC;EAClC,sBAAsB,EACpB;;AAZH;EAeC,4CAAqB;EACrB,uBAAuB;EACvB,6BAA6B;EAC7B,kCAAkC;EAClC,cAAc;EACd,sBAAsB,EACpB;;AAIH,YAAY;AAEZ;EAIG,6BAA6B,EAC9B;;AAMF;EACE,cAAc,EACf;;ACzMD;;;;;;;;EAQE;AAEF;EACE,YAAY;EACZ,oBAAoB;EACpB,sBAAsB;EACtB,eAAe;EACf,cAAc;EACd,cAAc;EACd,kBAAkB;EAClB,oBAAoB;EACpB,gBAAgB;EAChB,mBAAmB,EACpB;;AAED;EAEC,YAAY,EACV;;AAHH;EAKC,mBAAmB,EACjB;;AANH;EAQC,mBAAmB;EACnB,eAAe,EAMb;EAfH;IAYG,iBAAiB,EAClB;;AAMF;EAEC,iBAAiB,EACf;;AAHH;EAKC,YAAY,EAMV;EAXH;IAOG,gBAAgB;IAChB,eAAe,EAChB;;AATF;EAcC,gBAAgB;EAChB,kBAAkB,EAChB;;AAhBH;EAmBC,gBAAgB,EACd;;AAIH;EACE,oBAAoB;EACpB,uBAAuB,EACxB;;AAED;EACE,YAAY,EACb;;AAED;EACE,aAAa,EACd;;AAED;EACE,aAAa,EACd;;AAED;EACE,aAAa,EACd;;AAED;EACE,kBAAkB;EAClB,uBAAuB,EACxB;;AAED;EACE,eAAe;EACf,aAAa;EACb,YAAY,EACb;;AAED;;6BAE6B;AAE7B;EAEC,YAAY;EACZ,YAAY;EACZ,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,mBAAmB;EACnB,iBAAiB;EACjB,kBAAkB,EAChB;;AAVH;EAcC,0BV9Ge,EU+Gb;;AAfH;EAmBC,0BVrHc,EUsHZ;;AApBH;EAwBC,uBVjHoB,EUkHlB;;AAzBH;EA4BC,uBV7HS,EU8HP;;AA7BH;EAgCC,uBV9HU,EU+HR;;AAjCH;EAoCC,0BVzHuB,EU0HrB;;AArCH;EAwCC,0BV9H4B,EU+H1B;;AAKH;EX1GE,wBAAwB;EACxB,eAAe;EACf,iBAAiB;EACjB,eAAe;EACf,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;EACpB,yBAAyB;EACzB,qBAAqB;EAIrB,0BAA0B,EWkGzB;;AAJH;EAOC,oBAAmB,EACjB;;AAIH,0BAA0B;AAE1B;EAEC,sBAAsB;EACtB,YAAY;EACZ,mBAAmB;EACnB,mBAAmB;EACnB,SAAS,EACP;;AAGH;;6BAE6B;AAC7B;EACE;IACD,uBAAuB,EACrB,EAAA;;AAGH;EACE,kBAAkB;EAClB,iBAAiB,EAClB;;AAED;iEACiE;AACjE;EACE,iBAAiB,EAClB;;AAED;EACE,UAAU;EACV,kBAAkB;EAClB,YAAY;EACZ,8BAA8B,EAC/B;;AAED;EACE,wBAAwB,EACzB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,oBAAoB;EACpB,YAAY,EACb;;AAED;EACE,aAAa,EACd;;AAED;EACE,YAAY;EACZ,kBAAkB,EACnB;;AAED;;EAEE,UAAU;EACV,WAAW,EACZ;;AAED;EACE,aAAa,EACd;;AAED;;EAEE,YAAY,EACb;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,sBAAsB,EACvB;;AAED;EACE,mBAAmB,EACpB;;AAED;EACE,aAAa,EACd;;AAED;;;;;EAKE,YAAY;EACZ,eAAe,EAChB;;AAED;EACE,UAAU,EACX;;AAED;EACE,gBAAgB;EAChB,YAAY,EACb;;AAED;EACE,gBAAgB,EACjB;;AAED;EACE,oBAAoB,EACrB;;AAED;;;EAGE,sBAAsB;EACtB,mBAAmB;EACnB,oBAAoB;EACpB,iBAAiB,EAClB;;AAED;EACE,kBAAkB;EAClB,iBAAiB,EAClB;;AAED;EACE,kBAAkB,EACnB;;AAED;EACE,cAAc;EACd,8BAA8B,EAC/B;;AAED;EACE,aAAa,EACd;;AAED;EACE,gBAAgB,EACjB;;AAED;EACE,YAAY;EACZ,iBAAiB,EAClB;;AAED;EACE,cAAc,EACf;;AAED;EACE,YAAY,EACb;;AAED;;EAEE,gBAAgB;EAChB,iBAAiB,EAClB;;AAED;EACE,gBAAgB,EACjB;;AAED;EACE;IACD,kBAAkB,EAChB,EAAA;;AAGH;EACE;IACD,WAAW,EACT,EAAA;;AAGH;EAEE;IACD,WAAW,EACT,EAAA;;AAGH;EACE;IACD,WAAW;IACX,iBAAiB,EACf;EAED;;IAED,WAAW;IACX,iBAAiB,EACf;EAED;;;IAGD,gBAAgB,EACd;EAED;IACD,WAAW,EACT;EAED;;;IAGD,WAAW,EACT;EAED;IACD,WAAW;IACX,cAAc;IACd,gBAAgB,EACd,EAAA;;AAGH;EACE;IACD,eAAe,EACb,EAAA;;AAGH;;8CAE8C;AAE9C;EAGC,kBAAkB;EAClB,qBAAqB,EACnB;;ACjZH;;;;;;;;EAQE;AAEF;EAGC,mBAAmB,EAkCjB;EArCH;IAMG,iBAAiB;IACjB,WAAW,EACZ;EARF;IAWG,aAAa;IACb,UAAU,EACX;EAbF;IAgBG,gBAAgB;IAChB,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,eAAe,EAChB;EArBF;IAwBG,gBAAgB;IAChB,kBAAkB;IAClB,iBAAiB;IACjB,mBAAmB,EACpB;EA5BF;IA+BG,gBAAgB;IAChB,kBAAkB;IAClB,WAAW;IACX,iBAAiB,EAClB;;AAnCF;EAyCC,YAAY;EACZ,mBAAmB;EACnB,UAAU;EACV,oBAAoB;EACpB,8BAA8B;EAC9B,kBAAkB,EAahB;EA3DH;IAiDG,WAAW;IACX,UAAU,EACX;EAnDF;IAsDG,eAAe;IACf,kBAAkB;IAClB,gBAAgB,EACjB;;AAOF;EAGC,WAAW,EACT;;AAJH;EAQG,gBAAgB,EACjB;;AATF;EAWG,gCAAgC,EACjC;;AAZF;EAcG,iCAAiC,EAClC;;AAMF;ET1EE,4BAA4B;EAC5B,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;EACpB,qBAAqB;EACrB,qBAAqB;EACrB,eAAe;EAEf,uCAAuC;EACvC,oCAAoC;EACpC,mCAAmC;ESmEpC,gBAAgB;EAChB,YAAY;EACZ,aAAa;EACb,iBAAiB,EACf;;ACtGH;;;;;;;EAOE;AAEF;iEACiE;AACjE;EAEC,oBAAoB,EAClB;;AAHH;EAKC,mBAAmB,EAKjB;EAVH;IAOG,YAAY;IACZ,UAAU,EACX;;AATF;EAaC,aAAa;EACb,YAAY,EACV;;AAGH;iEACiE;AAMjE;EAEE,8BAA8B;EAC9B,yBAAyB,EAsC1B;EAzCD;IAOC,sBAAsB;IACtB,iBAAiB;IACjB,WAAW,EAgBT;IAzBH;MAYG,kBAAkB;MAClB,kBAAkB;MAClB,gBAAgB;MAChB,kBAAkB;MAClB,uBAAuB;MACvB,oBAAoB;MACpB,oBAAoB;MACpB,YAAY;MACZ,sBAAsB;MACtB,sBAAsB;MACtB,UAAU,EACX;EAvBF;IA4BC,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,kBAAkB;IAClB,uBAAuB;IACvB,iCAAiC;IACjC,oBAAoB;IACpB,YAAY,EACV;EApCH;IAsCC,gBAAgB;IAChB,kBAAkB,EAChB;;AAGH;EACE,kBAAkB;EAClB,WAAW;EACX,kBAAkB,EA+DnB;EAlED;IAMC,oBAAoB,EAClB;EAPH;IASC,8BAA8B;IAC9B,oBAAoB,EAClB;EAXH;IAaC,iBAAiB,EACf;EAdH;IAiBC,kBAAkB,EAChB;EAlBH;IAoBC,qBAAqB;IACrB,aAAa,EACX;EAtBH;IA0BC,uBAAuB;IACvB,mBAAmB;IACnB,YAAY,EAKV;IAjCH;MA8BG,mBAAmB,EACpB;EA/BF;IAoCC,sBAAsB;IACtB,eAAe;IACf,kBAAkB,EAChB;EAvCH;IA2CC,YAAY;IACZ,WAAW,EAoBT;IAhEH;MA+CG,eAAe;MACf,gBAAgB,EACjB;IAjDF;MAoDG,gBAAgB;MAChB,iBAAiB;MACjB,YAAY;MACZ,mBAAmB,EACpB;IAxDF;MA2DG,oBAAoB;MACpB,YAAY,EAEb;;AAMF;EACE,iBAAiB,EAalB;EAXC;IAHF;MAIC,YAAY,EAUZ,EAAA;EAdD;IAQC,UAAU,EACR;EATH;IAWC,aAAa,EACX;;AAKH;EACE,gBAAgB,EAajB;EAdD;IAIC,yBAAyB;IACzB,iBAAiB;IACjB,mBAAmB;IACnB,UAAU;IACV,YAAY;IACZ,iBAAiB;IACjB,eAAe;IACf,WAAW,EACT;;AAIH;EACE,aAAa,EAMd;EAPD;IAIE,eAAe;IACf,YAAY,EACZ;;AAGF;EACE,aAAa,EACd;;AAED;EACE,gBAAgB;EAChB,kBAAkB,EACnB;;AAED;EACE,kBAAkB,EACnB;;AAED;EACE,gBAAgB;EAChB,iBAAiB,EAClB;;AAED;EACE,gBAAgB;EAChB,oBAAoB;EACpB,sBAAsB,EACvB;;AAED;EACE,mBAAmB;EACnB,oBAAoB;EACpB,kBAAkB,EACnB;;AAED;EACE,mBAAmB,EACpB;;AAED;EACE,cAAc,EACf;;AAED;EACE,UAAU;EACV,UAAU,EACX;;AAED;EACE,aACD,EAAC;;AAEF;EACE,eAAe;EACf,mBAAmB;EACnB,cAAc,EAkBf;EArBD;IAKC,UAAU;IACV,WAAW;IACX,iBAAiB,EASf;IAhBH;MASG,WAAW;MACX,YAAY;MACZ,kBAAkB;MAClB,gBAAgB;MAChB,UAAU,EACX;EAdF;IAmBC,sBAAsB,EACpB;;AAGH;EACE,YAAY,EACb;;AAED;EACE,YAAY;EACZ,mBAAmB,EACpB;;AAED;EACE,mBAAmB,EACpB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,mBAAmB,EACpB;;AAED;EACE,iBAAiB,EAClB;;AAED;EACE,iBAAiB;EACjB,kBAAkB;EAClB,uBAAuB,EACxB;;AAED;EACE,YAAY;EACZ,mBAAmB,EACpB;;AAGD;EAEC,0BAA0B,EACxB;;AAHH;EAKC,iCAAiC;EACjC,iBAAiB;EACjB,WAAW,EAQT;EAfH;IAUG,mBAAmB;IACnB,kBAAkB;IAClB,gBAAgB,EACjB;;AAbF;EAkBC,mBAAmB;EACnB,cAAc,EACZ;;AAIH;EACE,eAAe,EAChB;;AAED;EACE,mBAAmB,EACpB;;ACtUD;;;;;;;EAOE;AAEF;wCACwC;AAExC;EACE;IACE,kBAAkB;IAClB,oBAAoB;IACpB,gBAAgB;IAChB,aAAa,EACd;EACD;IACI,yBAAyB;IACzB,4BAA4B,EAC/B,EAAA;;AAGH;wCACwC;AAExC;EACE,oBAAoB;EACpB,mBAAmB,EACpB;;AC9BD;iEACiE;AAEjE;EACC,oBAAoB;EACpB,mBAAmB,EACnB;;AAED;EAEE,2BAA2B,EAC3B;;AAHF;EAKE,mBAAmB,EAUnB;EAfF;IAOG,iBAAiB,EACjB;EARH;IAUG,iBAAiB,EACjB;EAXH;IAaG,gBAAgB,EAChB;;AAIH;iEACiE;AAEjE;EACC;IACC,uBAAuB,EACvB,EAAA;;AAGF;EAEE,cAAc;EACd,kBAAkB;EAClB,gBAAgB,EAKhB;EATF;IAOG,mBAAmB,EACnB;;AAIH;EAEE,mBAAmB;EACnB,sBAAsB;EACtB,UAAU;EACV,YAAY;EACZ,SAAS;EACT,UAAU;EACV,2BAA2B;EAC3B,oCAAoC;EACpC,mCAAmC;EACnC,oBAAoB,EACpB;;AAZF;EAeE,UAAU;EACV,cAAc;EACd,iCAAiC,EACjC;;AAGF;iEACiE;AAEjE;EACC,mBAAmB;EACnB,sBAAsB;EACtB,kBAAkB,EAClB;;AAED;EACC,cAAc;EACd,mBAAmB;EACnB,UAAU;EACV,QAAQ;EACR,gBAAgB;EAChB,kBAAkB;EAClB,gBAAgB;EAChB,yCAA0B;EAC1B,iBAAiB;EACjB,sCAAsB;EACtB,eAAe;EACf,mBAAmB;EACnB,eAAe;EACf,iBAAiB;EACjB,cAAc,EACd;;AAED;EACC,eAAe;EACf,oBAAoB;EACpB,gBAAgB;EAChB,kBAAkB;EAClB,mBAAmB,EAKnB;EAVD;IAQE,YAAY,EACZ;;AAGF;iEACiE;AAEjE;EACC,aAAa;EACb,0BAAa,EACb","file":"give-admin.css","sourcesContent":["/*!\r\n * Give Admin SCSS/CSS\r\n *\r\n * @description: The Main SCSS file for ADMIN styles which is compiled and minified via Gulp taskrunner\r\n * @package: Give\r\n * @subpackage: SCSS/Admin\r\n * @copyright: Copyright (c) 2016, WordImpress\r\n * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n@import 'frontend/_mixins';\r\n@import 'frontend/_variables';\r\n@import 'plugins/qtip';\r\n@import 'frontend/fonts';\r\n@import 'admin/forms';\r\n@import 'admin/addons';\r\n@import 'admin/reports';\r\n@import 'admin/welcome';\r\n@import 'admin/logs';\r\n@import 'admin/settings';\r\n@import 'admin/payment-history';\r\n@import 'admin/dashboard';\r\n@import 'admin/donors';\r\n@import 'admin/buttons';\r\n@import 'admin/shortcodes';\r\n","/**\r\n * Clearfix\r\n */\r\n@mixin clearfix() {\r\n *zoom: 1;\r\n\r\n &:before,\r\n &:after {\r\n\tcontent: \" \";\r\n\tdisplay: table;\r\n }\r\n\r\n &:after {\r\n\tclear: both;\r\n }\r\n}\r\n\r\n.give-clearfix {\r\n @include clearfix;\r\n}\r\n\r\n/**\r\n * Box Sizing\r\n * https://github.com/timrogers/sass-box-sizing-mixin\r\n */\r\n@mixin box-sizing($box-model) {\r\n -webkit-box-sizing: $box-model; // Safari <= 5\r\n -moz-box-sizing: $box-model; // Firefox <= 19\r\n box-sizing: $box-model;\r\n}\r\n\r\n/**\r\n * CSS3 Easing\r\n */\r\n@mixin easing-transition() {\r\n -moz-transition: 0.2s all linear;\r\n -o-transition: 0.2s all linear;\r\n transition: 0.2s all linear;\r\n}\r\n\r\n//Labels\r\n@mixin give-label() {\r\n padding: .2em .6em .3em;\r\n font-size: 85%;\r\n font-weight: 700;\r\n line-height: 1;\r\n color: #fff;\r\n text-align: center;\r\n white-space: nowrap;\r\n vertical-align: baseline;\r\n border-radius: .25em;\r\n}\r\n\r\n@mixin give-label-gray() {\r\n background-color: #929292;\r\n}\r\n\r\n.give-item-label {\r\n @include give-label();\r\n}\r\n\r\n.give-item-label-gray {\r\n @include give-label-gray();\r\n}\r\n\r\n//Fields\r\n@mixin give-currency() {\r\n background-color: lighten($light-gray, 2%);\r\n border-top: 1px solid $borders;\r\n border-bottom: 1px solid $borders;\r\n color:$dark;\r\n margin: 0;\r\n padding: 0 12px;\r\n float: left;\r\n height: 35px;\r\n line-height: 35px;\r\n font-size: $font-size-medium;\r\n @include box-sizing(border-box);\r\n}\r\n\r\n@mixin give-input() {\r\n float: left;\r\n border: 1px solid $borders;\r\n border-radius: 0;\r\n height: 35px;\r\n line-height: 35px;\r\n padding: 0 12px;\r\n margin: 0;\r\n font-size: $font-size-medium;\r\n @include box-sizing(border-box);\r\n}","/**\r\n * Give CSS Variables\r\n */\r\n\r\n$green: #7ad03a;\r\n$red: #a00;\r\n$orange: #ffba00;\r\n$blue: #2ea2cc;\r\n$dark: #333;\r\n$borders: #ccc;\r\n$light-gray: #EDEDED;\r\n\r\n//Status\r\n$status-default: #777;\r\n$status-complete: $green;\r\n$status-refunded: $status-default;\r\n$status-subscription: #5bc0de;\r\n$status-revoked: #d9534f;\r\n\r\n//Font sizes\r\n$font-size-medium: 18px;\r\n\r\n$primary: #007ba4;\r\n// Primary colour for buttons (alt)\r\n$primarytext: desaturate(lighten($primary, 50%), 18%);\r\n// Text on primary colour bg\r\n\r\n$secondary: desaturate(lighten($primary, 40%), 21%);\r\n// Secondary buttons\r\n$secondarytext: desaturate(darken($secondary, 60%), 21%);\r\n// Text on secondary colour bg\r\n\r\n$highlight: adjust-hue($primary, 150deg);\r\n// Prices, In stock labels, sales flash\r\n$highlightext: desaturate(lighten($highlight, 50%), 18%);\r\n// Text on highlight colour bg\r\n\r\n$contentbg: #fff;\r\n// Content BG - Tabs (active state)\r\n$subtext: #777;\r\n// small, breadcrumbs etc","/*\n * qTip2 - Pretty powerful tooltips - v2.2.1\n * http://qtip2.com\n *\n * Copyright (c) 2014 \n * Released under the MIT licenses\n * http://jquery.org/license\n *\n * Date: Sun Sep 7 2014 12:09 GMT+0100+0100\n * Plugins: tips modal viewport svg imagemap ie6\n * Styles: core basic css3\n */\n.qtip{\n\tposition: absolute;\n\tleft: -28000px;\n\ttop: -28000px;\n\tdisplay: none;\n\n\tmax-width: 280px;\n\tmin-width: 50px;\n\n\tfont-size: 10.5px;\n\tline-height: 12px;\n\n\tdirection: ltr;\n\n\tbox-shadow: none;\n\tpadding: 0;\n}\n\n\t.qtip-content{\n\t\tposition: relative;\n\t\tpadding: 5px 9px;\n\t\toverflow: hidden;\n\n\t\ttext-align: left;\n\t\tword-wrap: break-word;\n\t}\n\n\t.qtip-titlebar{\n\t\tposition: relative;\n\t\tpadding: 5px 35px 5px 10px;\n\t\toverflow: hidden;\n\n\t\tborder-width: 0 0 1px;\n\t\tfont-weight: bold;\n\t}\n\n\t.qtip-titlebar + .qtip-content{ border-top-width: 0 !important; }\n\n\t/* Default close button class */\n\t.qtip-close{\n\t\tposition: absolute;\n\t\tright: -9px; top: -9px;\n\t\tz-index: 11; /* Overlap .qtip-tip */\n\n\t\tcursor: pointer;\n\t\toutline: medium none;\n\n\t\tborder: 1px solid transparent;\n\t}\n\n\t\t.qtip-titlebar .qtip-close{\n\t\t\tright: 4px; top: 50%;\n\t\t\tmargin-top: -9px;\n\t\t}\n\n\t\t* html .qtip-titlebar .qtip-close{ top: 16px; } /* IE fix */\n\n\t\t.qtip-titlebar .ui-icon,\n\t\t.qtip-icon .ui-icon{\n\t\t\tdisplay: block;\n\t\t\ttext-indent: -1000em;\n\t\t\tdirection: ltr;\n\t\t}\n\n\t\t.qtip-icon, .qtip-icon .ui-icon{\n\t\t\t-moz-border-radius: 3px;\n\t\t\t-webkit-border-radius: 3px;\n\t\t\tborder-radius: 3px;\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t\t.qtip-icon .ui-icon{\n\t\t\t\twidth: 18px;\n\t\t\t\theight: 14px;\n\n\t\t\t\tline-height: 14px;\n\t\t\t\ttext-align: center;\n\t\t\t\ttext-indent: 0;\n\t\t\t\tfont: normal bold 10px/13px Tahoma,sans-serif;\n\n\t\t\t\tcolor: inherit;\n\t\t\t\tbackground: transparent none no-repeat -100em -100em;\n\t\t\t}\n\n/* Applied to 'focused' tooltips e.g. most recently displayed/interacted with */\n.qtip-focus{}\n\n/* Applied on hover of tooltips i.e. added/removed on mouseenter/mouseleave respectively */\n.qtip-hover{}\n\n/* Default tooltip style */\n.qtip-default{\n\tborder: 1px solid #F1D031;\n\n\tbackground-color: #FFFFA3;\n\tcolor: #555;\n}\n\n\t.qtip-default .qtip-titlebar{\n\t\tbackground-color: #FFEF93;\n\t}\n\n\t.qtip-default .qtip-icon{\n\t\tborder-color: #CCC;\n\t\tbackground: #F1F1F1;\n\t\tcolor: #777;\n\t}\n\n\t.qtip-default .qtip-titlebar .qtip-close{\n\t\tborder-color: #AAA;\n\t\tcolor: #111;\n\t}\n\n\n/*! Light tooltip style */\n.qtip-light{\n\tbackground-color: white;\n\tborder-color: #E2E2E2;\n\tcolor: #454545;\n}\n\n\t.qtip-light .qtip-titlebar{\n\t\tbackground-color: #f1f1f1;\n\t}\n\n\n/*! Dark tooltip style */\n.qtip-dark{\n\tbackground-color: #505050;\n\tborder-color: #303030;\n\tcolor: #f3f3f3;\n}\n\n\t.qtip-dark .qtip-titlebar{\n\t\tbackground-color: #404040;\n\t}\n\n\t.qtip-dark .qtip-icon{\n\t\tborder-color: #444;\n\t}\n\n\t.qtip-dark .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #303030;\n\t}\n\n\n/*! Cream tooltip style */\n.qtip-cream{\n\tbackground-color: #FBF7AA;\n\tborder-color: #F9E98E;\n\tcolor: #A27D35;\n}\n\n\t.qtip-cream .qtip-titlebar{\n\t\tbackground-color: #F0DE7D;\n\t}\n\n\t.qtip-cream .qtip-close .qtip-icon{\n\t\tbackground-position: -82px 0;\n\t}\n\n\n/*! Red tooltip style */\n.qtip-red{\n\tbackground-color: #F78B83;\n\tborder-color: #D95252;\n\tcolor: #912323;\n}\n\n\t.qtip-red .qtip-titlebar{\n\t\tbackground-color: #F06D65;\n\t}\n\n\t.qtip-red .qtip-close .qtip-icon{\n\t\tbackground-position: -102px 0;\n\t}\n\n\t.qtip-red .qtip-icon{\n\t\tborder-color: #D95252;\n\t}\n\n\t.qtip-red .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #D95252;\n\t}\n\n\n/*! Green tooltip style */\n.qtip-green{\n\tbackground-color: #CAED9E;\n\tborder-color: #90D93F;\n\tcolor: #3F6219;\n}\n\n\t.qtip-green .qtip-titlebar{\n\t\tbackground-color: #B0DE78;\n\t}\n\n\t.qtip-green .qtip-close .qtip-icon{\n\t\tbackground-position: -42px 0;\n\t}\n\n\n/*! Blue tooltip style */\n.qtip-blue{\n\tbackground-color: #E5F6FE;\n\tborder-color: #ADD9ED;\n\tcolor: #5E99BD;\n}\n\n\t.qtip-blue .qtip-titlebar{\n\t\tbackground-color: #D0E9F5;\n\t}\n\n\t.qtip-blue .qtip-close .qtip-icon{\n\t\tbackground-position: -2px 0;\n\t}\n\n\n.qtip-shadow{\n\t-webkit-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);\n\t-moz-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);\n\tbox-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);\n}\n\n/* Add rounded corners to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE9+, Safari 2+ */\n.qtip-rounded,\n.qtip-tipsy,\n.qtip-bootstrap{\n\t-moz-border-radius: 5px;\n\t-webkit-border-radius: 5px;\n\tborder-radius: 5px;\n}\n\n.qtip-rounded .qtip-titlebar{\n\t-moz-border-radius: 4px 4px 0 0;\n\t-webkit-border-radius: 4px 4px 0 0;\n\tborder-radius: 4px 4px 0 0;\n}\n\n/* Youtube tooltip style */\n.qtip-youtube{\n\t-moz-border-radius: 2px;\n\t-webkit-border-radius: 2px;\n\tborder-radius: 2px;\n\n\t-webkit-box-shadow: 0 0 3px #333;\n\t-moz-box-shadow: 0 0 3px #333;\n\tbox-shadow: 0 0 3px #333;\n\n\tcolor: white;\n\tborder: 0 solid transparent;\n\n\tbackground: #4A4A4A;\n\tbackground-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#4A4A4A),color-stop(100%,black));\n\tbackground-image: -webkit-linear-gradient(top,#4A4A4A 0,black 100%);\n\tbackground-image: -moz-linear-gradient(top,#4A4A4A 0,black 100%);\n\tbackground-image: -ms-linear-gradient(top,#4A4A4A 0,black 100%);\n\tbackground-image: -o-linear-gradient(top,#4A4A4A 0,black 100%);\n}\n\n\t.qtip-youtube .qtip-titlebar{\n\t\tbackground-color: #4A4A4A;\n\t\tbackground-color: rgba(0,0,0,0);\n\t}\n\n\t.qtip-youtube .qtip-content{\n\t\tpadding: .75em;\n\t\tfont: 12px arial,sans-serif;\n\n\t\tfilter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);\";\n\t}\n\n\t.qtip-youtube .qtip-icon{\n\t\tborder-color: #222;\n\t}\n\n\t.qtip-youtube .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #303030;\n\t}\n\n\n/* jQuery TOOLS Tooltip style */\n.qtip-jtools{\n\tbackground: #232323;\n\tbackground: rgba(0, 0, 0, 0.7);\n\tbackground-image: -webkit-gradient(linear, left top, left bottom, from(#717171), to(#232323));\n\tbackground-image: -moz-linear-gradient(top, #717171, #232323);\n\tbackground-image: -webkit-linear-gradient(top, #717171, #232323);\n\tbackground-image: -ms-linear-gradient(top, #717171, #232323);\n\tbackground-image: -o-linear-gradient(top, #717171, #232323);\n\n\tborder: 2px solid #ddd;\n\tborder: 2px solid rgba(241,241,241,1);\n\n\t-moz-border-radius: 2px;\n\t-webkit-border-radius: 2px;\n\tborder-radius: 2px;\n\n\t-webkit-box-shadow: 0 0 12px #333;\n\t-moz-box-shadow: 0 0 12px #333;\n\tbox-shadow: 0 0 12px #333;\n}\n\n\t/* IE Specific */\n\t.qtip-jtools .qtip-titlebar{\n\t\tbackground-color: transparent;\n\t\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)\";\n\t}\n\t.qtip-jtools .qtip-content{\n\t\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)\";\n\t}\n\n\t.qtip-jtools .qtip-titlebar,\n\t.qtip-jtools .qtip-content{\n\t\tbackground: transparent;\n\t\tcolor: white;\n\t\tborder: 0 dashed transparent;\n\t}\n\n\t.qtip-jtools .qtip-icon{\n\t\tborder-color: #555;\n\t}\n\n\t.qtip-jtools .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #333;\n\t}\n\n\n/* Cluetip style */\n.qtip-cluetip{\n\t-webkit-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n\t-moz-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n\tbox-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n\n\tbackground-color: #D9D9C2;\n\tcolor: #111;\n\tborder: 0 dashed transparent;\n}\n\n\t.qtip-cluetip .qtip-titlebar{\n\t\tbackground-color: #87876A;\n\t\tcolor: white;\n\t\tborder: 0 dashed transparent;\n\t}\n\n\t.qtip-cluetip .qtip-icon{\n\t\tborder-color: #808064;\n\t}\n\n\t.qtip-cluetip .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #696952;\n\t\tcolor: #696952;\n\t}\n\n\n/* Tipsy style */\n.qtip-tipsy{\n\tbackground: black;\n\tbackground: rgba(0, 0, 0, .87);\n\n\tcolor: white;\n\tborder: 0 solid transparent;\n\n\tfont-size: 11px;\n\tfont-family: 'Lucida Grande', sans-serif;\n\tfont-weight: bold;\n\tline-height: 16px;\n\ttext-shadow: 0 1px black;\n}\n\n\t.qtip-tipsy .qtip-titlebar{\n\t\tpadding: 6px 35px 0 10px;\n\t\tbackground-color: transparent;\n\t}\n\n\t.qtip-tipsy .qtip-content{\n\t\tpadding: 6px 10px;\n\t}\n\n\t.qtip-tipsy .qtip-icon{\n\t\tborder-color: #222;\n\t\ttext-shadow: none;\n\t}\n\n\t.qtip-tipsy .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #303030;\n\t}\n\n\n/* Tipped style */\n.qtip-tipped{\n\tborder: 3px solid #959FA9;\n\n\t-moz-border-radius: 3px;\n\t-webkit-border-radius: 3px;\n\tborder-radius: 3px;\n\n\tbackground-color: #F9F9F9;\n\tcolor: #454545;\n\n\tfont-weight: normal;\n\tfont-family: serif;\n}\n\n\t.qtip-tipped .qtip-titlebar{\n\t\tborder-bottom-width: 0;\n\n\t\tcolor: white;\n\t\tbackground: #3A79B8;\n\t\tbackground-image: -webkit-gradient(linear, left top, left bottom, from(#3A79B8), to(#2E629D));\n\t\tbackground-image: -webkit-linear-gradient(top, #3A79B8, #2E629D);\n\t\tbackground-image: -moz-linear-gradient(top, #3A79B8, #2E629D);\n\t\tbackground-image: -ms-linear-gradient(top, #3A79B8, #2E629D);\n\t\tbackground-image: -o-linear-gradient(top, #3A79B8, #2E629D);\n\t\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)\";\n\t}\n\n\t.qtip-tipped .qtip-icon{\n\t\tborder: 2px solid #285589;\n\t\tbackground: #285589;\n\t}\n\n\t\t.qtip-tipped .qtip-icon .ui-icon{\n\t\t\tbackground-color: #FBFBFB;\n\t\t\tcolor: #555;\n\t\t}\n\n\n/**\n * Twitter Bootstrap style.\n *\n * Tested with IE 8, IE 9, Chrome 18, Firefox 9, Opera 11.\n * Does not work with IE 7.\n */\n.qtip-bootstrap{\n\t/** Taken from Bootstrap body */\n\tfont-size: 14px;\n\tline-height: 20px;\n\tcolor: #333333;\n\n\t/** Taken from Bootstrap .popover */\n\tpadding: 1px;\n\tbackground-color: #ffffff;\n\tborder: 1px solid #ccc;\n\tborder: 1px solid rgba(0, 0, 0, 0.2);\n\t-webkit-border-radius: 6px;\n\t-moz-border-radius: 6px;\n\tborder-radius: 6px;\n\t-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n\t-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n\tbox-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n\t-webkit-background-clip: padding-box;\n\t-moz-background-clip: padding;\n\tbackground-clip: padding-box;\n}\n\n\t.qtip-bootstrap .qtip-titlebar{\n\t\t/** Taken from Bootstrap .popover-title */\n\t\tpadding: 8px 14px;\n\t\tmargin: 0;\n\t\tfont-size: 14px;\n\t\tfont-weight: normal;\n\t\tline-height: 18px;\n\t\tbackground-color: #f7f7f7;\n\t\tborder-bottom: 1px solid #ebebeb;\n\t\t-webkit-border-radius: 5px 5px 0 0;\n\t\t-moz-border-radius: 5px 5px 0 0;\n\t\tborder-radius: 5px 5px 0 0;\n\t}\n\n\t\t.qtip-bootstrap .qtip-titlebar .qtip-close{\n\t\t\t/**\n\t\t\t * Overrides qTip2:\n\t\t\t * .qtip-titlebar .qtip-close{\n\t\t\t * [...]\n\t\t\t * right: 4px;\n\t\t\t * top: 50%;\n\t\t\t * [...]\n\t\t\t * border-style: solid;\n\t\t\t * }\n\t\t\t */\n\t\t\tright: 11px;\n\t\t\ttop: 45%;\n\t\t\tborder-style: none;\n\t\t}\n\n\t.qtip-bootstrap .qtip-content{\n\t\t/** Taken from Bootstrap .popover-content */\n\t\tpadding: 9px 14px;\n\t}\n\n\t.qtip-bootstrap .qtip-icon{\n\t\t/**\n\t\t * Overrides qTip2:\n\t\t * .qtip-default .qtip-icon {\n\t\t * border-color: #CCC;\n\t\t * background: #F1F1F1;\n\t\t * color: #777;\n\t\t * }\n\t\t */\n\t\tbackground: transparent;\n\t}\n\n\t\t.qtip-bootstrap .qtip-icon .ui-icon{\n\t\t\t/**\n\t\t\t * Overrides qTip2:\n\t\t\t * .qtip-icon .ui-icon{\n\t\t\t * width: 18px;\n\t\t\t * height: 14px;\n\t\t\t * }\n\t\t\t */\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\n\t\t\t/* Taken from Bootstrap .close */\n\t\t\tfloat: right;\n\t\t\tfont-size: 20px;\n\t\t\tfont-weight: bold;\n\t\t\tline-height: 18px;\n\t\t\tcolor: #000000;\n\t\t\ttext-shadow: 0 1px 0 #ffffff;\n\t\t\topacity: 0.2;\n\t\t\tfilter: alpha(opacity=20);\n\t\t}\n\n\t\t.qtip-bootstrap .qtip-icon .ui-icon:hover{\n\t\t\t/* Taken from Bootstrap .close:hover */\n\t\t\tcolor: #000000;\n\t\t\ttext-decoration: none;\n\t\t\tcursor: pointer;\n\t\t\topacity: 0.4;\n\t\t\tfilter: alpha(opacity=40);\n\t\t}\n\n\n/* IE9 fix - removes all filters */\n.qtip:not(.ie9haxors) div.qtip-content,\n.qtip:not(.ie9haxors) div.qtip-titlebar{\n\tfilter: none;\n\t-ms-filter: none;\n}\n\n\n.qtip .qtip-tip{\n\tmargin: 0 auto;\n\toverflow: hidden;\n\tz-index: 10;\n\n}\n\n\t/* Opera bug #357 - Incorrect tip position\n\thttps://github.com/Craga89/qTip2/issues/367 */\n\tx:-o-prefocus, .qtip .qtip-tip{\n\t\tvisibility: hidden;\n\t}\n\n\t.qtip .qtip-tip,\n\t.qtip .qtip-tip .qtip-vml,\n\t.qtip .qtip-tip canvas{\n\t\tposition: absolute;\n\n\t\tcolor: #123456;\n\t\tbackground: transparent;\n\t\tborder: 0 dashed transparent;\n\t}\n\n\t.qtip .qtip-tip canvas{ top: 0; left: 0; }\n\n\t.qtip .qtip-tip .qtip-vml{\n\t\tbehavior: url(#default#VML);\n\t\tdisplay: inline-block;\n\t\tvisibility: visible;\n\t}\n\n\n#qtip-overlay{\n\tposition: fixed;\n\tleft: 0; top: 0;\n\twidth: 100%; height: 100%;\n}\n\n\t/* Applied to modals with show.modal.blur set to true */\n\t#qtip-overlay.blurs{ cursor: pointer; }\n\n\t/* Change opacity of overlay here */\n\t#qtip-overlay div{\n\t\tposition: absolute;\n\t\tleft: 0; top: 0;\n\t\twidth: 100%; height: 100%;\n\n\t\tbackground-color: black;\n\n\t\topacity: 0.7;\n\t\tfilter:alpha(opacity=70);\n\t\t-ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)\";\n\t}\n\n\n.qtipmodal-ie6fix{\n\tposition: absolute !important;\n}\n","/**\n * Give Frontend Fonts SCSS\n *\n * @description: Fonts are from icomoon and the src paths need to be relative to template directory\n * @package Give\n * @subpackage SCSS/Frontend\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n@font-face {\n font-family: 'give-icomoon';\n src: url('../assets/fonts/icomoon.eot?kdnr3d');\n src: url('../assets/fonts/icomoon.eot?kdnr3d#iefix') format('embedded-opentype'),\n url('../assets/fonts/icomoon.woff?kdnr3d') format('woff'),\n url('../assets/fonts/icomoon.ttf?kdnr3d') format('truetype'),\n url('../assets/fonts/icomoon.svg?kdnr3d#icomoon') format('svg');\n font-weight: normal;\n font-style: normal;\n}\n\n@mixin iconstyle() {\n font-family: 'give-icomoon';\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n[class^=\"give-icon-\"], [class*=\" give-icon-\"] {\n @include iconstyle();\n}\n\n.give-icon-lamp:before {\n content: \"\\e603\";\n}\n\n.give-icon-heart:before {\n content: \"\\e604\";\n}\n\n.give-icon-question:before {\n content: \"\\e602\";\n}\n\n.give-icon-info:before {\n content: \"\\e601\";\n}\n\n.give-icon-new-tab:before {\n content: \"\\ea7e\";\n}\n\n.give-icon-alert:before {\n content: \"\\f02d\";\n}\n\n.give-icon-help:before {\n content: \"\\e606\";\n}\n\n.give-icon-spinner:before {\n content: \"\\e605\";\n}\n\n.give-icon-spinner2:before {\n content: \"\\e607\";\n}\n\n.give-icon-plus:before {\n content: \"\\e040\";\n}\n\n.give-icon-minus:before {\n content: \"\\e041\";\n}\n\n.give-icon-locked:before {\n content: \"\\e600\";\n}\n\n.dashicons-give:before {\n @include iconstyle();\n content: \"\\e800\";\n}\n\n// Spinning Icons\n// --------------------------\n\n.fa-spin {\n -webkit-animation: spin 1000ms infinite linear;\n animation: spin 1000ms infinite linear;\n}\n@-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n@keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n","/*!\r\n * Give Admin SCSS/CSS\r\n *\r\n * @description: The Main SCSS file for ADMIN styles which is compiled and minified via Gulp taskrunner\r\n * @package: Give\r\n * @subpackage: SCSS/Admin\r\n * @copyright: Copyright (c) 2016, WordImpress\r\n * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\n/**\r\n * Clearfix\r\n */\n.give-clearfix {\n *zoom: 1; }\n .give-clearfix:before, .give-clearfix:after {\n content: \" \";\n display: table; }\n .give-clearfix:after {\n clear: both; }\n\n/**\r\n * Box Sizing\r\n * https://github.com/timrogers/sass-box-sizing-mixin\r\n */\n/**\r\n * CSS3 Easing\r\n */\n.give-item-label {\n padding: .2em .6em .3em;\n font-size: 85%;\n font-weight: 700;\n line-height: 1;\n color: #fff;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: .25em; }\n\n.give-item-label-gray {\n background-color: #929292; }\n\n/**\r\n * Give CSS Variables\r\n */\n/*\n * qTip2 - Pretty powerful tooltips - v2.2.1\n * http://qtip2.com\n *\n * Copyright (c) 2014 \n * Released under the MIT licenses\n * http://jquery.org/license\n *\n * Date: Sun Sep 7 2014 12:09 GMT+0100+0100\n * Plugins: tips modal viewport svg imagemap ie6\n * Styles: core basic css3\n */\n.qtip {\n position: absolute;\n left: -28000px;\n top: -28000px;\n display: none;\n max-width: 280px;\n min-width: 50px;\n font-size: 10.5px;\n line-height: 12px;\n direction: ltr;\n box-shadow: none;\n padding: 0; }\n\n.qtip-content {\n position: relative;\n padding: 5px 9px;\n overflow: hidden;\n text-align: left;\n word-wrap: break-word; }\n\n.qtip-titlebar {\n position: relative;\n padding: 5px 35px 5px 10px;\n overflow: hidden;\n border-width: 0 0 1px;\n font-weight: bold; }\n\n.qtip-titlebar + .qtip-content {\n border-top-width: 0 !important; }\n\n/* Default close button class */\n.qtip-close {\n position: absolute;\n right: -9px;\n top: -9px;\n z-index: 11;\n /* Overlap .qtip-tip */\n cursor: pointer;\n outline: medium none;\n border: 1px solid transparent; }\n\n.qtip-titlebar .qtip-close {\n right: 4px;\n top: 50%;\n margin-top: -9px; }\n\n* html .qtip-titlebar .qtip-close {\n top: 16px; }\n\n/* IE fix */\n.qtip-titlebar .ui-icon,\n.qtip-icon .ui-icon {\n display: block;\n text-indent: -1000em;\n direction: ltr; }\n\n.qtip-icon, .qtip-icon .ui-icon {\n -moz-border-radius: 3px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n text-decoration: none; }\n\n.qtip-icon .ui-icon {\n width: 18px;\n height: 14px;\n line-height: 14px;\n text-align: center;\n text-indent: 0;\n font: normal bold 10px/13px Tahoma,sans-serif;\n color: inherit;\n background: transparent none no-repeat -100em -100em; }\n\n/* Applied to 'focused' tooltips e.g. most recently displayed/interacted with */\n/* Applied on hover of tooltips i.e. added/removed on mouseenter/mouseleave respectively */\n/* Default tooltip style */\n.qtip-default {\n border: 1px solid #F1D031;\n background-color: #FFFFA3;\n color: #555; }\n\n.qtip-default .qtip-titlebar {\n background-color: #FFEF93; }\n\n.qtip-default .qtip-icon {\n border-color: #CCC;\n background: #F1F1F1;\n color: #777; }\n\n.qtip-default .qtip-titlebar .qtip-close {\n border-color: #AAA;\n color: #111; }\n\n/*! Light tooltip style */\n.qtip-light {\n background-color: white;\n border-color: #E2E2E2;\n color: #454545; }\n\n.qtip-light .qtip-titlebar {\n background-color: #f1f1f1; }\n\n/*! Dark tooltip style */\n.qtip-dark {\n background-color: #505050;\n border-color: #303030;\n color: #f3f3f3; }\n\n.qtip-dark .qtip-titlebar {\n background-color: #404040; }\n\n.qtip-dark .qtip-icon {\n border-color: #444; }\n\n.qtip-dark .qtip-titlebar .ui-state-hover {\n border-color: #303030; }\n\n/*! Cream tooltip style */\n.qtip-cream {\n background-color: #FBF7AA;\n border-color: #F9E98E;\n color: #A27D35; }\n\n.qtip-cream .qtip-titlebar {\n background-color: #F0DE7D; }\n\n.qtip-cream .qtip-close .qtip-icon {\n background-position: -82px 0; }\n\n/*! Red tooltip style */\n.qtip-red {\n background-color: #F78B83;\n border-color: #D95252;\n color: #912323; }\n\n.qtip-red .qtip-titlebar {\n background-color: #F06D65; }\n\n.qtip-red .qtip-close .qtip-icon {\n background-position: -102px 0; }\n\n.qtip-red .qtip-icon {\n border-color: #D95252; }\n\n.qtip-red .qtip-titlebar .ui-state-hover {\n border-color: #D95252; }\n\n/*! Green tooltip style */\n.qtip-green {\n background-color: #CAED9E;\n border-color: #90D93F;\n color: #3F6219; }\n\n.qtip-green .qtip-titlebar {\n background-color: #B0DE78; }\n\n.qtip-green .qtip-close .qtip-icon {\n background-position: -42px 0; }\n\n/*! Blue tooltip style */\n.qtip-blue {\n background-color: #E5F6FE;\n border-color: #ADD9ED;\n color: #5E99BD; }\n\n.qtip-blue .qtip-titlebar {\n background-color: #D0E9F5; }\n\n.qtip-blue .qtip-close .qtip-icon {\n background-position: -2px 0; }\n\n.qtip-shadow {\n -webkit-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);\n -moz-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);\n box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15); }\n\n/* Add rounded corners to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE9+, Safari 2+ */\n.qtip-rounded,\n.qtip-tipsy,\n.qtip-bootstrap {\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n border-radius: 5px; }\n\n.qtip-rounded .qtip-titlebar {\n -moz-border-radius: 4px 4px 0 0;\n -webkit-border-radius: 4px 4px 0 0;\n border-radius: 4px 4px 0 0; }\n\n/* Youtube tooltip style */\n.qtip-youtube {\n -moz-border-radius: 2px;\n -webkit-border-radius: 2px;\n border-radius: 2px;\n -webkit-box-shadow: 0 0 3px #333;\n -moz-box-shadow: 0 0 3px #333;\n box-shadow: 0 0 3px #333;\n color: white;\n border: 0 solid transparent;\n background: #4A4A4A;\n background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #4A4A4A), color-stop(100%, black));\n background-image: -webkit-linear-gradient(top, #4A4A4A 0, black 100%);\n background-image: -moz-linear-gradient(top, #4A4A4A 0, black 100%);\n background-image: -ms-linear-gradient(top, #4A4A4A 0, black 100%);\n background-image: -o-linear-gradient(top, #4A4A4A 0, black 100%); }\n\n.qtip-youtube .qtip-titlebar {\n background-color: #4A4A4A;\n background-color: transparent; }\n\n.qtip-youtube .qtip-content {\n padding: .75em;\n font: 12px arial,sans-serif;\n filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);\n -ms-filter: \"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);\"; }\n\n.qtip-youtube .qtip-icon {\n border-color: #222; }\n\n.qtip-youtube .qtip-titlebar .ui-state-hover {\n border-color: #303030; }\n\n/* jQuery TOOLS Tooltip style */\n.qtip-jtools {\n background: #232323;\n background: rgba(0, 0, 0, 0.7);\n background-image: -webkit-gradient(linear, left top, left bottom, from(#717171), to(#232323));\n background-image: -moz-linear-gradient(top, #717171, #232323);\n background-image: -webkit-linear-gradient(top, #717171, #232323);\n background-image: -ms-linear-gradient(top, #717171, #232323);\n background-image: -o-linear-gradient(top, #717171, #232323);\n border: 2px solid #ddd;\n border: 2px solid #f1f1f1;\n -moz-border-radius: 2px;\n -webkit-border-radius: 2px;\n border-radius: 2px;\n -webkit-box-shadow: 0 0 12px #333;\n -moz-box-shadow: 0 0 12px #333;\n box-shadow: 0 0 12px #333; }\n\n/* IE Specific */\n.qtip-jtools .qtip-titlebar {\n background-color: transparent;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A);\n -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)\"; }\n\n.qtip-jtools .qtip-content {\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323);\n -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)\"; }\n\n.qtip-jtools .qtip-titlebar,\n.qtip-jtools .qtip-content {\n background: transparent;\n color: white;\n border: 0 dashed transparent; }\n\n.qtip-jtools .qtip-icon {\n border-color: #555; }\n\n.qtip-jtools .qtip-titlebar .ui-state-hover {\n border-color: #333; }\n\n/* Cluetip style */\n.qtip-cluetip {\n -webkit-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n -moz-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n background-color: #D9D9C2;\n color: #111;\n border: 0 dashed transparent; }\n\n.qtip-cluetip .qtip-titlebar {\n background-color: #87876A;\n color: white;\n border: 0 dashed transparent; }\n\n.qtip-cluetip .qtip-icon {\n border-color: #808064; }\n\n.qtip-cluetip .qtip-titlebar .ui-state-hover {\n border-color: #696952;\n color: #696952; }\n\n/* Tipsy style */\n.qtip-tipsy {\n background: black;\n background: rgba(0, 0, 0, 0.87);\n color: white;\n border: 0 solid transparent;\n font-size: 11px;\n font-family: 'Lucida Grande', sans-serif;\n font-weight: bold;\n line-height: 16px;\n text-shadow: 0 1px black; }\n\n.qtip-tipsy .qtip-titlebar {\n padding: 6px 35px 0 10px;\n background-color: transparent; }\n\n.qtip-tipsy .qtip-content {\n padding: 6px 10px; }\n\n.qtip-tipsy .qtip-icon {\n border-color: #222;\n text-shadow: none; }\n\n.qtip-tipsy .qtip-titlebar .ui-state-hover {\n border-color: #303030; }\n\n/* Tipped style */\n.qtip-tipped {\n border: 3px solid #959FA9;\n -moz-border-radius: 3px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n background-color: #F9F9F9;\n color: #454545;\n font-weight: normal;\n font-family: serif; }\n\n.qtip-tipped .qtip-titlebar {\n border-bottom-width: 0;\n color: white;\n background: #3A79B8;\n background-image: -webkit-gradient(linear, left top, left bottom, from(#3A79B8), to(#2E629D));\n background-image: -webkit-linear-gradient(top, #3A79B8, #2E629D);\n background-image: -moz-linear-gradient(top, #3A79B8, #2E629D);\n background-image: -ms-linear-gradient(top, #3A79B8, #2E629D);\n background-image: -o-linear-gradient(top, #3A79B8, #2E629D);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D);\n -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)\"; }\n\n.qtip-tipped .qtip-icon {\n border: 2px solid #285589;\n background: #285589; }\n\n.qtip-tipped .qtip-icon .ui-icon {\n background-color: #FBFBFB;\n color: #555; }\n\n/**\n * Twitter Bootstrap style.\n *\n * Tested with IE 8, IE 9, Chrome 18, Firefox 9, Opera 11.\n * Does not work with IE 7.\n */\n.qtip-bootstrap {\n /** Taken from Bootstrap body */\n font-size: 14px;\n line-height: 20px;\n color: #333333;\n /** Taken from Bootstrap .popover */\n padding: 1px;\n background-color: #ffffff;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, 0.2);\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n border-radius: 6px;\n -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n -webkit-background-clip: padding-box;\n -moz-background-clip: padding;\n background-clip: padding-box; }\n\n.qtip-bootstrap .qtip-titlebar {\n /** Taken from Bootstrap .popover-title */\n padding: 8px 14px;\n margin: 0;\n font-size: 14px;\n font-weight: normal;\n line-height: 18px;\n background-color: #f7f7f7;\n border-bottom: 1px solid #ebebeb;\n -webkit-border-radius: 5px 5px 0 0;\n -moz-border-radius: 5px 5px 0 0;\n border-radius: 5px 5px 0 0; }\n\n.qtip-bootstrap .qtip-titlebar .qtip-close {\n /**\n\t\t\t * Overrides qTip2:\n\t\t\t * .qtip-titlebar .qtip-close{\n\t\t\t * [...]\n\t\t\t * right: 4px;\n\t\t\t * top: 50%;\n\t\t\t * [...]\n\t\t\t * border-style: solid;\n\t\t\t * }\n\t\t\t */\n right: 11px;\n top: 45%;\n border-style: none; }\n\n.qtip-bootstrap .qtip-content {\n /** Taken from Bootstrap .popover-content */\n padding: 9px 14px; }\n\n.qtip-bootstrap .qtip-icon {\n /**\n\t\t * Overrides qTip2:\n\t\t * .qtip-default .qtip-icon {\n\t\t * border-color: #CCC;\n\t\t * background: #F1F1F1;\n\t\t * color: #777;\n\t\t * }\n\t\t */\n background: transparent; }\n\n.qtip-bootstrap .qtip-icon .ui-icon {\n /**\n\t\t\t * Overrides qTip2:\n\t\t\t * .qtip-icon .ui-icon{\n\t\t\t * width: 18px;\n\t\t\t * height: 14px;\n\t\t\t * }\n\t\t\t */\n width: auto;\n height: auto;\n /* Taken from Bootstrap .close */\n float: right;\n font-size: 20px;\n font-weight: bold;\n line-height: 18px;\n color: #000000;\n text-shadow: 0 1px 0 #ffffff;\n opacity: 0.2;\n filter: alpha(opacity=20); }\n\n.qtip-bootstrap .qtip-icon .ui-icon:hover {\n /* Taken from Bootstrap .close:hover */\n color: #000000;\n text-decoration: none;\n cursor: pointer;\n opacity: 0.4;\n filter: alpha(opacity=40); }\n\n/* IE9 fix - removes all filters */\n.qtip:not(.ie9haxors) div.qtip-content,\n.qtip:not(.ie9haxors) div.qtip-titlebar {\n filter: none;\n -ms-filter: none; }\n\n.qtip .qtip-tip {\n margin: 0 auto;\n overflow: hidden;\n z-index: 10; }\n\n/* Opera bug #357 - Incorrect tip position\n\thttps://github.com/Craga89/qTip2/issues/367 */\nx:-o-prefocus, .qtip .qtip-tip {\n visibility: hidden; }\n\n.qtip .qtip-tip,\n.qtip .qtip-tip .qtip-vml,\n.qtip .qtip-tip canvas {\n position: absolute;\n color: #123456;\n background: transparent;\n border: 0 dashed transparent; }\n\n.qtip .qtip-tip canvas {\n top: 0;\n left: 0; }\n\n.qtip .qtip-tip .qtip-vml {\n behavior: url(#default#VML);\n display: inline-block;\n visibility: visible; }\n\n#qtip-overlay {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%; }\n\n/* Applied to modals with show.modal.blur set to true */\n#qtip-overlay.blurs {\n cursor: pointer; }\n\n/* Change opacity of overlay here */\n#qtip-overlay div {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: black;\n opacity: 0.7;\n filter: alpha(opacity=70);\n -ms-filter: \"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)\"; }\n\n.qtipmodal-ie6fix {\n position: absolute !important; }\n\n/**\n * Give Frontend Fonts SCSS\n *\n * @description: Fonts are from icomoon and the src paths need to be relative to template directory\n * @package Give\n * @subpackage SCSS/Frontend\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n@font-face {\n font-family: 'give-icomoon';\n src: url(\"../assets/fonts/icomoon.eot?kdnr3d\");\n src: url(\"../assets/fonts/icomoon.eot?kdnr3d#iefix\") format(\"embedded-opentype\"), url(\"../assets/fonts/icomoon.woff?kdnr3d\") format(\"woff\"), url(\"../assets/fonts/icomoon.ttf?kdnr3d\") format(\"truetype\"), url(\"../assets/fonts/icomoon.svg?kdnr3d#icomoon\") format(\"svg\");\n font-weight: normal;\n font-style: normal; }\n\n[class^=\"give-icon-\"], [class*=\" give-icon-\"] {\n font-family: 'give-icomoon';\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n\n.give-icon-lamp:before {\n content: \"\\e603\"; }\n\n.give-icon-heart:before {\n content: \"\\e604\"; }\n\n.give-icon-question:before {\n content: \"\\e602\"; }\n\n.give-icon-info:before {\n content: \"\\e601\"; }\n\n.give-icon-new-tab:before {\n content: \"\\ea7e\"; }\n\n.give-icon-alert:before {\n content: \"\\f02d\"; }\n\n.give-icon-help:before {\n content: \"\\e606\"; }\n\n.give-icon-spinner:before {\n content: \"\\e605\"; }\n\n.give-icon-spinner2:before {\n content: \"\\e607\"; }\n\n.give-icon-plus:before {\n content: \"\\e040\"; }\n\n.give-icon-minus:before {\n content: \"\\e041\"; }\n\n.give-icon-locked:before {\n content: \"\\e600\"; }\n\n.dashicons-give:before {\n font-family: 'give-icomoon';\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: \"\\e800\"; }\n\n.fa-spin {\n -webkit-animation: spin 1000ms infinite linear;\n animation: spin 1000ms infinite linear; }\n\n@-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg); } }\n\n@keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg); } }\n\n/**\r\n * Give Forms SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\n/*------------------------------------\r\nForms CPT\r\n--------------------------------------*/\n/* Hide conditional fields */\n.cmb2-id--give-set-price,\n.cmb2-id--give-levels-header,\n.cmb2-id--give-levels-header + .cmb-repeat-group-wrap,\n.cmb2-id--give-display-style,\n.post-type-give_forms .tablenav #post-query-submit,\n.give-hidden,\n.cmb2-id--give-form-content,\n.cmb2-id--give-reveal-label,\n.cmb2-id--give-custom-amount-minimum,\n.cmb2-id--give-custom-amount-text,\n.cmb2-id--give-offline-checkout-notes {\n display: none; }\n\n/* Donation Levels Repeating Field */\n#_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row .cmb2-radio-list label {\n font-size: 12px; }\n\n#_give_donation_levels_repeat .cmb-group-title, #_give_donation_levels_repeat .cmb-row > .cmb-remove-group-row, #_give_donation_levels_repeat .cmb-row > .handlediv {\n display: none; }\n\n/* Table Rows */\ndiv.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {\n padding: 0 !important;\n margin: 0 !important;\n min-width: 100%;\n max-width: 0; }\n\n.cmb2-id--give-levels-header {\n padding: 10px 12px 0 !important;\n margin: 0 !important;\n background: #F7F7F7;\n border-bottom: none !important; }\n .cmb2-id--give-levels-header .table-container {\n display: table;\n width: 100%;\n border-top: 1px solid #e9e9e9;\n border-bottom: 1px solid #e9e9e9;\n border-left: 1px solid #e9e9e9; }\n .cmb2-id--give-levels-header .table-container > .table-row {\n display: table-row;\n background: #FCFCFC; }\n .cmb2-id--give-levels-header .table-container > .table-row > .table-cell {\n display: table-cell;\n vertical-align: middle;\n padding: 10px 15px;\n border-right: 1px solid #e9e9e9; }\n\n#_give_donation_levels_repeat {\n background: #F7F7F7;\n padding: 0 12px 20px;\n box-sizing: border-box; }\n #_give_donation_levels_repeat .cmb-row, #_give_donation_levels_repeat .inside {\n margin: 0; }\n #_give_donation_levels_repeat .cmb-remove-field-row {\n margin: 3px 0 0; }\n #_give_donation_levels_repeat .cmb-remove-field-row .button {\n height: 25px;\n padding: 0 3px; }\n #_give_donation_levels_repeat .cmb-remove-field-row span.dashicons-no {\n line-height: 1.15em; }\n #_give_donation_levels_repeat .cmbhandle {\n display: none; }\n #_give_donation_levels_repeat .cmb-add-row {\n margin: 12px 0 0; }\n\n.give-time-field {\n width: 65px; }\n\n.give-money-field {\n width: 75px;\n margin-right: 0;\n margin-left: 0; }\n\n.give-money-symbol {\n border: 1px solid #e9e9e9;\n background: #FCFCFC;\n margin: 0;\n font-size: 14px;\n padding: 5px 8px; }\n\n.give-money-symbol-before {\n border-right: 0; }\n\n.give-money-symbol-after {\n border-left: 0; }\n\np.give-level-id {\n border-radius: 50%;\n border: 1px solid #e9e9e9;\n background: #FCFCFC;\n padding: 2px 7px;\n font-size: 11px; }\n\n.give-underline {\n text-decoration: underline; }\n\n#poststuff .give-subfield {\n background: #FAFAFA; }\n #poststuff .give-subfield .cmb-th label {\n padding-left: 16px; }\n #poststuff .give-subfield .cmb-td {\n padding-right: 10px;\n box-sizing: border-box; }\n\n.postbox-container .cmb-row {\n margin: 0; }\n .postbox-container .cmb-row .cmb-th label {\n padding-left: 8px; }\n\n/* Smaller Resolution Desktops AND UP */\n@media only screen and (min-width: 851px) {\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row > .cmb-th {\n display: none; }\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row > .cmb-td {\n float: left;\n width: 100%; }\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row {\n float: left;\n border-bottom: none; }\n .cmb-type-give-default-radio-inline .cmb-td {\n margin-top: 5px; } }\n\n/* Smaller Resolution Desktops */\n@media only screen and (min-width: 851px) and (max-width: 1285px) {\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-remove-field-row {\n width: 100%;\n padding-top: 0; }\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-type-text-money {\n width: 105px; }\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list input.cmb2-text-money {\n width: 65px; }\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-type-text {\n width: 180px;\n padding-right: 20px; }\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-type-radio-inline {\n margin-left: 20px; }\n .col-id {\n width: 15px; }\n p.give-level-id {\n margin: 7px 15px 0 0; }\n .col-amount {\n width: 70px; }\n .col-text {\n width: 165px; }\n .col-sort {\n display: none !important; } }\n\n@media only screen and (min-width: 1000px) {\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-type-text {\n width: 220px;\n padding-right: 20px; }\n .col-text {\n width: 205px; } }\n\n@media only screen and (min-width: 1201px) {\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-remove-field-row {\n float: right; }\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row {\n padding-right: 20px; }\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-remove-field-row.cmb-row {\n padding-right: 0; }\n #_give_donation_levels_repeat .regular-text {\n width: 100%; }\n .col-id {\n width: 20px; }\n p.give-level-id {\n margin: 6px 0 0; }\n .col-amount {\n width: 85px; }\n .col-text {\n width: 195px; }\n .col-sort {\n width: 100px; } }\n\n@media only screen and (min-width: 1375px) {\n .col-text {\n width: 270px; }\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-type-text {\n width: 290px; } }\n\n/* Small Resolution Repeater */\n@media only screen and (max-width: 850px) {\n div.cmb-type-levels-repeater-header {\n display: none !important; }\n p.give-level-id {\n float: left;\n font-weight: bold;\n margin-top: 5px; } }\n\n/*-------------------------------------\r\nPublish Metabox\r\n-------------------------------------*/\n/*Shortcode Input */\n.shortcode-wrap {\n margin: 1px 14px 12px 11px; }\n .shortcode-wrap label {\n margin: 0 0 3px;\n display: block;\n cursor: default; }\n .shortcode-wrap .shortcode-input {\n margin: 0;\n width: 100%; }\n\n/*-------------------------------------\r\nContent Options\r\n-------------------------------------*/\n.cmb2-id--give-content-option,\n.cmb2-id--give-terms-option,\n.cmb2-id--give-offline-donation-enable-billing-fields-single,\n.cmb2-id--give-goal-option,\n.cmb2-id--give-customize-offline-donations {\n border-bottom: none !important;\n margin: 0 !important; }\n\n.cmb2-id--give-form-content,\n.cmb2-id--give-agree-label,\n.cmb2-id--give-offline-checkout-notes,\n.cmb2-id--give-set-goal,\n.cmb2-id--give-offline-donation-enable-billing-fields-single {\n border-top: 1px solid #e9e9e9 !important; }\n\n/*-------------------------------------\r\nTerms and Conditions Metabox\r\n---------------------------------------*/\n.cmb2-id--give-agree-label,\n.cmb2-id--give-agree-text {\n display: none; }\n\n/*-------------------------------------\r\nDashboard Columns\r\n-------------------------------------*/\ninput.shortcode-input {\n width: 100%; }\n\n/*-------------------------------------\r\nASIDE\r\n-------------------------------------*/\n#side-sortables .cmb-th label:after {\n display: none; }\n\n#side-sortables .cmb2-id--give-show-register-form {\n padding: 10px 0 0 !important; }\n\n#side-sortables .cmb2-wrap > .cmb-field-list > .cmb-row {\n padding-top: 10px; }\n\n#side-sortables .cmb-row .cmb2-metabox-description {\n padding-bottom: 0; }\n\n.cmb2-metabox-description {\n font-size: 13px;\n line-height: 1.5; }\n\n/*-------------------------------------\r\nTooltips\r\n-------------------------------------*/\n.give-tooltip {\n margin: 0 3px;\n padding: 0;\n font-size: 14px;\n -moz-transition: 0.2s all linear;\n -o-transition: 0.2s all linear;\n transition: 0.2s all linear;\n color: rgba(51, 51, 51, 0.5);\n position: relative;\n top: 1px; }\n .give-tooltip:hover {\n color: #333; }\n\n/**\n * Give Add-ons SCSS\n *\n * @description Add-on Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n.type-download {\n float: left;\n margin: 0 1em 1em 0 !important;\n padding: 0;\n vertical-align: top;\n width: 280px;\n text-decoration: none;\n color: inherit;\n border: 1px solid #ddd;\n display: block;\n min-height: 365px;\n overflow: hidden;\n background: #f5f5f5;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1);\n -webkit-transition-property: border, background, color;\n transition-property: border, background, color;\n -webkit-transition-duration: .05s;\n transition-duration: .05s;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n position: relative; }\n .type-download:hover {\n border: 1px solid #d1d1d1; }\n .type-download > .featured-img img {\n border-bottom: 1px solid #ddd; }\n .type-download .addon-content {\n *zoom: 1;\n padding: 15px 20px; }\n .type-download .addon-content:before, .type-download .addon-content:after {\n content: \" \";\n display: table; }\n .type-download .addon-content:after {\n clear: both; }\n .type-download .addon-content .addon-heading {\n margin: 0 0 10px; }\n .type-download .addon-content .addon-heading a {\n outline: none;\n text-decoration: none; }\n .type-download .addon-footer-wrap {\n border-top: 1px solid #ddd;\n position: absolute;\n bottom: 2px;\n left: 0;\n width: 100%;\n background-color: #FFF;\n padding: 15px 20px; }\n\n.give-view-addons-all span.dashicons, .type-download span.dashicons {\n width: 16px;\n height: 16px;\n font-size: 14px;\n margin: 6px 0 0 0; }\n\n.give-view-addons-all span.dashicons {\n margin-left: 3px; }\n\n/**\n * Give Reports SCSS\n *\n * @description Payment History Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n#give-dashboard-widgets-wrap .inside {\n padding-top: 0;\n padding-bottom: 0; }\n\n#give-dashboard-widgets-wrap .postbox {\n margin-bottom: 10px; }\n\n#give-dashboard-widgets-wrap table.reports-table {\n clear: none; }\n\n#give-dashboard-widgets-wrap #give-graphs-filter .tablenav {\n margin: 0; }\n #give-dashboard-widgets-wrap #give-graphs-filter .tablenav .actions {\n padding: 0; }\n\n#give-dashboard-widgets-wrap #give-date-range-options {\n clear: both;\n overflow: hidden;\n padding: 8px 0; }\n #give-dashboard-widgets-wrap #give-date-range-options > span {\n float: left;\n line-height: 30px;\n font-style: italic;\n padding: 0 5px 0 0; }\n #give-dashboard-widgets-wrap #give-date-range-options #give-graphs-year-end {\n margin-right: 0; }\n\n#give-dashboard-widgets-wrap a.give-refresh-reports-button {\n display: inline-block;\n clear: right;\n margin: 8px 0 0; }\n\n/* Global Graph Styles\n-------------------------------------------------------------- */\n.give-graph .y1Axis {\n color: #66bb6a !important; }\n\n.give-graph .y2Axis {\n color: #546e7a !important; }\n\nbody.give_forms_page_give-reports h1.nav-tab-wrapper, body.give_forms_page_give-payment-history h1.nav-tab-wrapper {\n margin-bottom: 10px; }\n\nbody.give_forms_page_give-reports .actions, body.give_forms_page_give-payment-history .actions {\n padding-top: 0; }\n\nbody.give_forms_page_give-reports .pagination-links, body.give_forms_page_give-payment-history .pagination-links {\n margin-left: 10px; }\n\nbody.give_forms_page_give-reports p.donor-search, body.give_forms_page_give-payment-history p.donor-search {\n margin-right: 10px; }\n\nbody.give_forms_page_give-reports .tablenav-right .tablenav-pages, body.give_forms_page_give-payment-history .tablenav-right .tablenav-pages {\n float: right; }\n\nbody.give_forms_page_give-reports .tablenav-right #give-reports-view, body.give_forms_page_give-payment-history .tablenav-right #give-reports-view {\n margin-top: 0; }\n\nbody.give_forms_page_give-reports .tablenav-right .actions, body.give_forms_page_give-payment-history .tablenav-right .actions {\n float: left; }\n\nbody.give_forms_page_give-reports p.search-box, body.give_forms_page_give-payment-history p.search-box {\n float: left; }\n\nbody.give_forms_page_give-reports .reports-table-nav.tablenav.top, body.give_forms_page_give-payment-history .reports-table-nav.tablenav.top {\n width: 100%;\n float: none;\n margin: 0 0 10px; }\n\nbody.give_forms_page_give-reports .reports-forms-details-wrap.top, body.give_forms_page_give-payment-history .reports-forms-details-wrap.top {\n float: right;\n overflow: hidden; }\n body.give_forms_page_give-reports .reports-forms-details-wrap.top #give-reports-filter, body.give_forms_page_give-payment-history .reports-forms-details-wrap.top #give-reports-filter {\n float: left; }\n body.give_forms_page_give-reports .reports-forms-details-wrap.top > .actions, body.give_forms_page_give-payment-history .reports-forms-details-wrap.top > .actions {\n padding-right: 0; }\n\nbody.give_forms_page_give-reports .tablenav.bottom, body.give_forms_page_give-payment-history .tablenav.bottom {\n margin-top: 10px; }\n\nbody.give_forms_page_give-reports h3.reports-earnings-title, body.give_forms_page_give-payment-history h3.reports-earnings-title {\n margin: 7px 0 0; }\n\nbody.give_forms_page_give-reports .reports-views-wrap, body.give_forms_page_give-payment-history .reports-views-wrap {\n padding: 3px 0 0; }\n\nbody.give_forms_page_give-reports .wrap.give-reports-donors-wrap, body.give_forms_page_give-payment-history .wrap.give-reports-donors-wrap {\n margin-right: 0;\n margin-bottom: 10px; }\n\nbody.give_forms_page_give-reports .widefat tbody td, body.give_forms_page_give-reports .widefat tbody th, body.give_forms_page_give-payment-history .widefat tbody td, body.give_forms_page_give-payment-history .widefat tbody th {\n padding-top: 12px;\n padding-bottom: 12px; }\n\n/*---------------------\nExport Options Styles\n---------------------------*/\nbody.give_forms_page_give-reports table.export-options-table tbody td {\n padding: 20px 12px; }\n\n/*---------------------\nPayment Methods\n---------------------------*/\n.gateways-report-tablenav .actions.bulkactions {\n padding-right: 0; }\n\n/*---------------------\nTable List Styles\n---------------------------*/\n.widefat .column-name, .widefat .column-label {\n font-size: 14px;\n font-weight: bold; }\n\ntable.give-table td {\n vertical-align: middle; }\n\ntable.give-table td.row-title h3 {\n margin: 0 0 0.4em;\n font-size: 1.2em; }\n\ntable.give-table td.row-title p {\n font-size: 13px;\n font-style: italic;\n font-weight: normal;\n color: #aaa;\n margin: 0; }\n\n/*-------------------------\nLogs\n----------------------------*/\n#give-logs-filter .search-box {\n float: right; }\n\n#give-logs-filter .tablenav.top {\n float: left;\n clear: none;\n margin-top: 0; }\n\n/**\n * Give Admin Welcome SCSS\n *\n * @description Displays when user activates the plugin\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n.welcome-h1 {\n display: inline-block;\n margin-right: 15px !important; }\n\n.feature-section span.dashicons {\n width: 16px;\n height: 16px;\n font-size: 14px;\n margin: 6px 0 0 0; }\n\n.feature-section .feature-section-item {\n width: 48%;\n float: left; }\n\n.feature-section div.last-feature {\n margin-right: 0;\n margin-left: 4%; }\n\n[class^=\"dashboard_page_give-\"] .about-text, [class*=\"dashboard_page_give-\"] .about-text {\n min-height: 0; }\n\n.social-items-wrap {\n display: inline-block; }\n .social-items-wrap > div {\n display: inline-block; }\n .social-items-wrap .twitter-item-wrap {\n margin: 0 20px 10px 0; }\n\n.wp-person img {\n border-radius: 50%; }\n\n.wp-person a.web {\n margin: 17px 0 0;\n font-weight: bold;\n font-style: italic; }\n\n.newsletter-intro {\n font-size: 13px;\n font-style: italic;\n color: #777; }\n\n.give-newsletter-form-wrap {\n margin: 10px 0 20px -5px;\n max-width: 700px; }\n .give-newsletter-form-wrap td {\n padding: 3px; }\n .give-newsletter-form-wrap div.give-newsletter-confirmation {\n background: #fff;\n -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\n box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\n margin: 5px 10px 4px 5px;\n padding: 1px 12px;\n border-left: 4px solid #7ad03a;\n display: none; }\n .give-newsletter-form-wrap div.give-newsletter-confirmation > p {\n margin: 0.5em 0;\n padding: 2px; }\n\n/**\n * Give Logs SCSS\n *\n * @description Payment History Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n#give_donor_export_download {\n margin: 0 0 5px; }\n\n/**\r\n * Give Settings SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n */\n/*------------------------------------\r\nSettings\r\n--------------------------------------*/\n.give_settings_page .nav-tab-wrapper {\n margin-bottom: 5px; }\n\n.give_settings_page span.cmb2-metabox-description {\n font-size: 13px; }\n\n.give_settings_page .cmb2-wrap .cmb-type-checkbox input[type=\"checkbox\"] {\n display: block;\n margin-bottom: 5px; }\n\n.give_settings_page div.give-submit-wrap {\n margin: 20px 0; }\n\n.give_settings_page .give_forms_page_give-payment-history .postbox .hndle {\n cursor: default; }\n\n/* Section Titles */\n.cmb-type-give-title label {\n float: left;\n width: 220px;\n font-style: italic;\n color: #AAA; }\n\n.postbox-container #_give_donation_levels_repeat > .cmb-repeatable-grouping:not(:last-of-type) {\n border-bottom: 1px solid #e9e9e9;\n border-top: none; }\n\n.cmb-type-enabled-gateways .cmb-td > p:first-of-type {\n display: none; }\n\n/* CMB2 Checkbox Revised Styles */\n.cmb-type-checkbox .cmb-td {\n width: 80%; }\n .cmb-type-checkbox .cmb-td label {\n font-size: 13px; }\n\n/* Responsive Settings Rows */\n.give_settings .cmb2-wrap .cmb-row {\n display: table-row; }\n .give_settings .cmb2-wrap .cmb-row > .cmb-th, .give_settings .cmb2-wrap .cmb-row > .cmb-td {\n display: table-cell;\n float: none; }\n\n/* Custom Title Separators */\n.cmb2-id-give-title label {\n font-style: italic;\n color: #AAA;\n cursor: default; }\n\n.cmb2-id-give-title > div.cmb-th {\n padding-bottom: 10px; }\n\n.cmb2-id-give-title > div.cmb-td {\n padding-bottom: 5px; }\n\n/* System Info page styles\r\n-------------------------------------------------------------- */\n#system-info-textarea {\n width: 800px;\n height: 600px;\n font-family: Menlo, Monaco, monospace;\n background: #FFF;\n white-space: pre;\n overflow: auto;\n display: block; }\n\n#give-download-sysinfo {\n margin: 0; }\n\n/* API\r\n-------------------------------------------------------------- */\n.cmb2-id-api .cmb-td {\n padding: 0; }\n\n.cmb2-id-api table th {\n padding: 10px 8px; }\n\n.cmb2-id-api .give-ajax-user-search {\n padding: 3px 5px; }\n\n.give_user_search_wrap {\n position: relative;\n overflow: visible; }\n\n.give_user_search_results {\n position: absolute;\n left: 0;\n top: 27px; }\n .give_user_search_results a.give-ajax-user-cancel {\n position: absolute;\n right: 6px;\n top: 2px; }\n .give_user_search_results ul {\n padding: 10px 10px 4px;\n margin: 0;\n background: #f0f0f0;\n border: 1px solid #DFDFDF;\n width: 300px;\n max-height: 200px;\n overflow-y: scroll; }\n\n.give_forms_page_give-settings .tablenav .actions {\n overflow: visible; }\n\na.give-delete {\n color: #a00; }\n\n/* License\r\n-------------------------------------------------------------- */\n.cmb2-wrap .give-license-deactivate {\n margin: 1px 0 0 10px;\n height: 30px; }\n\n.cmb2-wrap .give-license-field {\n background-image: url(\"../images/close.png\");\n background-color: #FFF;\n background-repeat: no-repeat;\n background-position: 98.5% center;\n background-size: 18px; }\n\n.cmb2-wrap .give-license-active, .cmb2-wrap .give-license-active:focus {\n background-image: url(\"../images/tick.png\");\n background-color: #FFF;\n background-repeat: no-repeat;\n background-position: 98.5% center;\n outline: none;\n background-size: 16px; }\n\n/* Tables */\n.give-table thead th {\n padding: 8px 10px !important; }\n\n.give_settings .cmb-td hr + hr {\n display: none; }\n\n/**\r\n * Give Payment History SCSS\r\n *\r\n * @description Payment History Styles\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\n#give-payment-filters, .give-submit-wrap {\n clear: both;\n background: #f5f5f5;\n border-color: #dfdfdf;\n overflow: auto;\n margin: 8px 0;\n padding: 12px;\n border-width: 1px;\n border-style: solid;\n font-size: 13px;\n line-height: 2.1em; }\n\n#give-payment-filters p {\n color: #777; }\n\n#give-payment-filters ul.subsubsub {\n margin-bottom: 8px; }\n\n#give-payment-filters label {\n font-style: italic;\n margin: 0 10px; }\n #give-payment-filters label.give-start-date-label {\n margin-left: 5px; }\n\n#give-payments-filter ul.subsubsub {\n margin: 0 0 12px; }\n\n#give-payments-filter .tablenav.top {\n float: none; }\n #give-payments-filter .tablenav.top .bulkactions {\n margin-top: 1px;\n padding-top: 0; }\n\n#give-payments-filter .give-email-column-value {\n font-size: 14px;\n font-weight: bold; }\n\n#give-payments-filter #the-list .check-column input {\n margin-top: 1px; }\n\ntr.status-refunded td {\n background: #cecece;\n border-top-color: #ccc; }\n\n.wp-list-table.forms th#ID {\n width: 80px; }\n\n.wp-list-table.forms th#details {\n width: 130px; }\n\n.wp-list-table.forms th#date {\n width: 140px; }\n\n.wp-list-table.forms th#user {\n width: 130px; }\n\n.give-mobile-link {\n line-height: 32px;\n vertical-align: middle; }\n\n.give-mobile-link img {\n max-width: 80%;\n height: auto;\n float: left; }\n\n/*---------------------\r\nStatus Colors\r\n---------------------------*/\n.give-donation-status > span {\n float: left;\n width: 12px;\n height: 12px;\n margin: 3px 4px 0 0;\n padding: 0;\n border-radius: 50%;\n background: #888;\n line-height: 16px; }\n\n.give-donation-status.status-pending > span {\n background-color: #ffba00; }\n\n.give-donation-status.status-complete > span, .give-donation-status.status-publish > span {\n background-color: #7ad03a; }\n\n.give-donation-status.status-refunded > span {\n background-color: #777; }\n\n.give-donation-status.status-failed > span {\n background-color: #a00; }\n\n.give-donation-status.status-abandoned > span {\n background-color: #333; }\n\n.give-donation-status.status-revoked > span {\n background-color: #d9534f; }\n\n.give-donation-status.status-subscription > span, .give-donation-status.status-give_subscription > span {\n background-color: #5bc0de; }\n\n#give-payments-filter .give-payment-id {\n padding: .2em .6em .3em;\n font-size: 85%;\n font-weight: 700;\n line-height: 1;\n color: #fff;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: .25em;\n background-color: #929292; }\n\n#give-payments-filter .column-details {\n padding-right: 30px; }\n\n/* Payment View Metabox */\n#give-order-update .give-donation-status {\n display: inline-block;\n float: none;\n margin: 0 0 0 10px;\n position: relative;\n top: 3px; }\n\n/*---------------------\r\nResponsiveness\r\n---------------------------*/\n@media handheld, only screen and (max-width: 640px) {\n .wp-list-table.forms th {\n width: auto !important; } }\n\n.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span {\n margin-left: -8px;\n margin-top: -8px; }\n\n/* Payment Details\r\n-------------------------------------------------------------- */\n.give-admin-box .label {\n font-weight: 600; }\n\n.give-admin-box-inside {\n margin: 0;\n padding: 3px 12px;\n clear: both;\n border-bottom: 1px solid #eee; }\n\n.rtl .give-admin-box-inside {\n padding: 5px 10px 5px 0; }\n\n.give-admin-box-inside .strong {\n font-weight: 600; }\n\n.give-payment-fees .fee-label {\n font-weight: normal;\n color: #666; }\n\n.give-admin-box .right {\n float: right; }\n\n.rtl .give-admin-box .right {\n float: left;\n margin-left: 10px; }\n\n#give-order-update .inside,\n#give-order-details .inside {\n margin: 0;\n padding: 0; }\n\n#give-order-update input.give_datepicker {\n width: 180px; }\n\n#give-order-update input[type=\"number\"].give-payment-time-hour,\n#give-order-update input[type=\"number\"].give-payment-time-min {\n width: 50px; }\n\n.give-admin-box-inside:last-child {\n border-bottom: 0; }\n\n#give-edit-order-form .data-payment-key {\n word-break: break-all; }\n\n.give-order-update-box #major-publishing-actions .button-secondary {\n margin-right: 10px; }\n\n#give-donation-overview .give-select-chosen {\n width: 196px; }\n\n#give-donation-overview ul,\n#give-order-address-country-wrap select,\n#give-donor-details .order-data-address input,\n#give-edit-order-form .column input,\n#give-donor-details .order-data-column p.data input {\n clear: both;\n display: block; }\n\n.give-order-data input.small-text {\n margin: 0; }\n\n#give-order-update span.label {\n display: inline;\n width: 50px; }\n\n.give-order-update-box .button-primary {\n margin-right: 0; }\n\n#give-edit-order-form .column .description {\n padding-right: 10px; }\n\n#give-edit-order-form .column,\n#give-donation-overview .row > ul > li,\n#give-donation-overview .inside > ul > li {\n display: inline-block;\n position: relative;\n vertical-align: top;\n margin-right: 5%; }\n\n#give-donation-overview li.actions {\n text-align: right;\n min-width: 200px; }\n\n#give-donation-overview ul li.remove {\n text-align: right; }\n\n#give-donation-overview .row {\n padding: 12px;\n border-bottom: 1px solid #eee; }\n\n#give-donation-overview ul {\n font-size: 0; }\n\n#give-donation-overview ul li {\n font-size: 13px; }\n\n#give-order-data .data span {\n color: #666;\n font-weight: 600; }\n\n#give-donation-overview .inside {\n padding: 12px; }\n\n.give-price-field {\n width: 80px; }\n\n.give_repeatable_upload_wrapper .pricing select, .give_repeatable_product_wrapper .give-select,\n#give_products .give-select {\n min-width: 100%;\n max-width: 200px; }\n\n.give_forms_page_give-payment-history.js .postbox .hndle {\n cursor: default; }\n\n@media screen and (max-width: 782px) {\n .order-data-column input[type=\"email\"] {\n padding: 6px 10px; } }\n\n@media screen and (max-width: 1024px) {\n #give-edit-order-form .column {\n width: 49%; } }\n\n@media screen and (max-width: 1280px) and (min-width: 1279px) {\n #give-edit-order-form .column {\n width: 32%; } }\n\n@media screen and (min-width: 1280px) {\n #give-edit-order-form .column {\n width: 32%;\n margin-right: 3%; }\n #give-edit-order-form .columns-4 .column, #give-donation-overview.columns-4 .row > ul > li,\n #give-donation-overview.columns-4 .inside > ul > li {\n width: 22%;\n margin-right: 2%; }\n #give-edit-order-form .columns-3 .column:nth-child(2n+1),\n #give-edit-order-form .columns-4 .column:nth-child(3n+1),\n #give-edit-order-form .column:nth-child(2n+1) {\n margin-right: 0; }\n #give-donation-overview.columns-4 li.download {\n width: 33%; }\n #give-donation-overview.columns-4 li.price,\n #give-donation-overview.columns-3 .row > ul > li.price,\n #give-donation-overview.columns-3 .inside > ul > li.price {\n width: 14%; }\n #give-donation-overview.columns-4 li.actions {\n width: 25%;\n margin-top: 0;\n margin-right: 0; } }\n\n@media screen and (max-width: 1284px) {\n #give-edit-order-form .column strong {\n display: block; } }\n\n/*------------------------------------------\r\nDonation Details\r\n--------------------------------------------*/\n#give-customer-details .inside {\n padding-top: 15px;\n padding-bottom: 15px; }\n\n/**\n * Give Admin Dashboard SCSS\n *\n * @description Styles the Give dashboard widget\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n.give-dashboard-widget .give-dashboard-today {\n text-align: center; }\n .give-dashboard-widget .give-dashboard-today .give-dashboard-date-today {\n margin: 10px 0 0;\n padding: 0; }\n .give-dashboard-widget .give-dashboard-today .give-dashboard-happy-day {\n padding: 3px;\n margin: 0; }\n .give-dashboard-widget .give-dashboard-today .give-dashboard-today-earnings {\n font-size: 42px;\n color: #4ead61;\n font-weight: bold;\n margin: 15px 0 0;\n line-height: 1; }\n .give-dashboard-widget .give-dashboard-today .give-orders-today {\n font-size: 18px;\n font-weight: bold;\n margin: 0 0 30px;\n padding: 4px 0 1px; }\n .give-dashboard-widget .give-dashboard-today .give-last-seven {\n font-size: 14px;\n font-weight: bold;\n padding: 0;\n margin: 0 0 30px; }\n\n.give-dashboard-widget .give-table-stats {\n width: 100%;\n text-align: center;\n margin: 0;\n table-layout: fixed;\n border-top: 1px solid #ececec;\n border-spacing: 0; }\n .give-dashboard-widget .give-table-stats .give-dashboard-stat-total, .give-dashboard-widget .give-table-stats .give-dashboard-stat-total-label {\n padding: 0;\n margin: 0; }\n .give-dashboard-widget .give-table-stats .give-dashboard-stat-total {\n color: #4ead61;\n font-weight: bold;\n font-size: 16px; }\n\n#give_dashboard_sales > .inside {\n padding: 0; }\n\n#give_dashboard_sales .give-table-stats td {\n padding: 10px 0; }\n\n#give_dashboard_sales .give-table-stats td:first-of-type {\n border-right: 1px solid #ececec; }\n\n#give_dashboard_sales .give-table-stats tr#give-table-stats-tr-1 td {\n border-bottom: 1px solid #ececec; }\n\n#dashboard_right_now .give-forms-count:before {\n font-family: 'give-icomoon';\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-size: 18px;\n width: 18px;\n height: 18px;\n content: \"\\e800\"; }\n\n/**\n * Give Forms SCSS\n *\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n/* Donors Listing Page Style\n-------------------------------------------------------------- */\n.give_forms_page_give-donors .wrap > h2 {\n margin-bottom: 15px; }\n\n.give_forms_page_give-donors #give-donors-filter {\n position: relative; }\n .give_forms_page_give-donors #give-donors-filter p.search-box {\n float: left;\n margin: 0; }\n\n.give_forms_page_give-donors .tablenav.top {\n float: right;\n clear: none; }\n\n/* Donor Styles\n-------------------------------------------------------------- */\n#customer-tab-wrapper-list {\n border-bottom: 1px solid #ccc;\n padding: 5px 15px 0 10px; }\n #customer-tab-wrapper-list li {\n display: inline-block;\n margin: 0 0 -1px;\n padding: 0; }\n #customer-tab-wrapper-list li a {\n padding: 6px 10px;\n font-weight: bold;\n font-size: 15px;\n line-height: 24px;\n border: 1px solid #ccc;\n border-bottom: none;\n background: #e4e4e4;\n color: #555;\n display: inline-block;\n text-decoration: none;\n margin: 0; }\n #customer-tab-wrapper-list .active {\n padding: 6px 10px;\n font-weight: bold;\n font-size: 15px;\n line-height: 24px;\n border: 1px solid #ccc;\n border-bottom: 1px solid #f1f1f1;\n background: #f1f1f1;\n color: #000; }\n #customer-tab-wrapper-list .dashicons {\n font-size: 20px;\n line-height: 26px; }\n\n#give-customer-card-wrapper {\n margin-left: -1px;\n z-index: 2;\n min-height: 200px; }\n #give-customer-card-wrapper input {\n font-weight: normal; }\n #give-customer-card-wrapper .customer-section {\n border-bottom: 1px solid #eee;\n margin-bottom: 10px; }\n #give-customer-card-wrapper .customer-section table {\n margin-bottom: 0; }\n #give-customer-card-wrapper > div:first-child {\n padding-top: 20px; }\n #give-customer-card-wrapper > div:last-child {\n padding-bottom: 20px;\n border: none; }\n #give-customer-card-wrapper .avatar-wrap {\n padding: 0 15px 15px 0;\n text-align: center;\n float: left; }\n #give-customer-card-wrapper .avatar-wrap img {\n border-radius: 3px; }\n #give-customer-card-wrapper a.delete {\n text-decoration: none;\n color: #ff0000;\n margin-right: 5px; }\n #give-customer-card-wrapper .donor-bio-header {\n float: left;\n width: 33%; }\n #give-customer-card-wrapper .donor-bio-header .customer-since {\n margin: 10px 0;\n font-size: 16px; }\n #give-customer-card-wrapper .donor-bio-header .customer-id {\n font-size: 24px;\n font-weight: 600;\n float: left;\n margin-right: 10px; }\n #give-customer-card-wrapper .donor-bio-header .customer-edit-link {\n margin-bottom: 15px;\n float: left; }\n\n.customer-main-wrapper {\n margin: 0 0 20px; }\n @media (max-width: 655px) {\n .customer-main-wrapper {\n width: 100%; } }\n .customer-main-wrapper table {\n margin: 0; }\n .customer-main-wrapper input {\n width: 200px; }\n\n#donor-summary {\n padding: 0 20px; }\n #donor-summary:after {\n font-family: \"dashicons\";\n content: \"\\f110\";\n position: absolute;\n top: 10px;\n right: 10px;\n font-size: 100px;\n color: #F0F0F0;\n z-index: 0; }\n\n#give-customer-card-wrapper .customer-address-wrapper {\n width: 202px; }\n #give-customer-card-wrapper .customer-address-wrapper span[data-key=\"line2\"] {\n display: table;\n clear: both; }\n\n#give-customer-card-wrapper .customer-address-wrapper select {\n width: 200px; }\n\n#give-customer-card-wrapper .customer-info {\n margin-top: 1px;\n min-height: 185px; }\n\n#give-customer-card-wrapper .info-wrapper {\n min-height: 125px; }\n\n.customer-info .customer-name {\n font-size: 24px;\n font-weight: 600; }\n\n.disconnect-user a {\n font-size: 12px;\n font-weight: normal;\n text-decoration: none; }\n\n#customer-edit-actions {\n text-align: center;\n margin-bottom: 20px;\n line-height: 28px; }\n\n#customer-edit-actions .button-secondary {\n margin-right: 10px; }\n\n#give-customer-card-wrapper .edit-item {\n display: none; }\n\n#give-customer-card-wrapper .give_user_search_results {\n left: 1px;\n top: 16px; }\n\n#give-customer-card-wrapper .give_user_search_results ul {\n width: 200px; }\n\n#customer-stats-wrapper {\n margin: 0 auto;\n text-align: center;\n padding: 15px; }\n #customer-stats-wrapper ul {\n margin: 0;\n padding: 0;\n overflow: hidden; }\n #customer-stats-wrapper ul li {\n width: 50%;\n float: left;\n line-height: 22px;\n font-size: 14px;\n margin: 0; }\n #customer-stats-wrapper a {\n text-decoration: none; }\n\n#customer-stats-wrapper .dashicons {\n color: #888; }\n\n#customer-tables-wrapper table {\n width: 100%;\n text-align: center; }\n\n#customer-tables-wrapper th {\n text-align: center; }\n\n#customer-tables-wrapper .downloads tr > th:first-child, #customer-tables-wrapper .downloads tr > td:first-child {\n text-align: left; }\n\n#customer-tables-wrapper .downloads tr > td:only-child {\n text-align: center; }\n\n#customer-notes-wrapper {\n min-height: 50px; }\n\n.customer-notes-header span, .customer-notes-header img {\n font-weight: 600;\n line-height: 30px;\n vertical-align: middle; }\n\n.customer-note-input {\n width: 100%;\n margin-bottom: 5px; }\n\n#give-customer-notes div:nth-of-type(even) {\n background-color: #f9f9f9; }\n\n#give-customer-notes .customer-note-wrapper {\n border-bottom: 1px solid #f9f9f9;\n min-height: 38px;\n padding: 0; }\n #give-customer-notes .customer-note-wrapper .note-content-wrap {\n padding: 10px 12px;\n line-height: 20px;\n font-size: 14px; }\n\n#give-customer-notes .give-no-customer-notes {\n text-align: center;\n padding: 20px; }\n\n.customer-note-wrapper span {\n display: block; }\n\n.delete-customer {\n text-align: center; }\n\n/**\r\n * Give Admin Buttons SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\n/*=Give Shortcode Button\r\n--------------------------------------*/\n@media screen and (max-width: 782px) {\n #wp-content-media-buttons a.give-thickbox {\n padding: 6px 14px;\n line-height: normal;\n font-size: 14px;\n height: auto; }\n .wp-media-buttons span#give-media-button {\n margin-top: 0 !important;\n margin-left: 2px !important; } }\n\n/*=Button in shortcode tinymce dialog\r\n--------------------------------------*/\n.mce-primary.mce-give-primary button {\n padding-right: 10px;\n padding-left: 10px; }\n\n/* =Primary button in shortcode tinymce dialog\n-------------------------------------------------------------- */\n.mce-primary.mce-sc-primary button {\n padding-right: 10px;\n padding-left: 10px; }\n\n.mce-sc-popup a {\n text-decoration: underline; }\n\n.mce-sc-popup p {\n margin-bottom: 1em; }\n .mce-sc-popup p.strong {\n font-weight: 600; }\n .mce-sc-popup p.no-margin {\n margin-bottom: 0; }\n .mce-sc-popup p.margin-top {\n margin-top: 1em; }\n\n/* =Shortcode button above wp_editor\n-------------------------------------------------------------- */\n@media screen and (max-width: 782px) {\n .wp-media-buttons button.sc-button span {\n width: 18px !important; } }\n\n.wp-media-buttons button.sc-button {\n outline: none;\n padding-left: 5px;\n margin-right: 0; }\n .wp-media-buttons button.sc-button:active {\n margin-bottom: 5px; }\n\nbutton.sc-button:after {\n position: relative;\n display: inline-block;\n top: -1px;\n content: '';\n width: 0;\n height: 0;\n border-top: 6px solid #777;\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n margin: 0 3px 0 6px; }\n\nbutton.sc-button.active:after {\n top: -2px;\n border-top: 0;\n border-bottom: 6px solid #32373c; }\n\n/* =Shortcode button dropdown menu\n-------------------------------------------------------------- */\n.sc-wrap {\n position: relative;\n display: inline-block;\n margin-right: 5px; }\n\ndiv.sc-menu {\n display: none;\n position: absolute;\n top: 100%;\n left: 0;\n min-width: 100%;\n max-height: 410px;\n font-size: 14px;\n box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);\n background: #fff;\n border: 1px solid rgba(0, 0, 0, 0.15);\n overflow: auto;\n overflow-x: hidden;\n padding: 5px 0;\n margin: -2px 0 0;\n z-index: 1002; }\n\ndiv.sc-shortcode {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n padding: 6px 12px;\n margin-bottom: 2px; }\n div.sc-shortcode:hover {\n color: #fff; }\n\n/* =Shortcode tinymce dialog backdrop\n-------------------------------------------------------------- */\n#mce-modal-block.mce-reset.mce-fade.mce-in {\n opacity: 0.7;\n filter: alpha(opacity=70); }\n","/**\r\n * Give Forms SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n\r\n/*------------------------------------\r\nForms CPT\r\n--------------------------------------*/\r\n/* Hide conditional fields */\r\n.cmb2-id--give-set-price,\r\n.cmb2-id--give-levels-header,\r\n.cmb2-id--give-levels-header + .cmb-repeat-group-wrap,\r\n.cmb2-id--give-display-style,\r\n.post-type-give_forms .tablenav #post-query-submit,\r\n.give-hidden,\r\n.cmb2-id--give-form-content,\r\n.cmb2-id--give-reveal-label,\r\n.cmb2-id--give-custom-amount-minimum,\r\n.cmb2-id--give-custom-amount-text,\r\n.cmb2-id--give-offline-checkout-notes {\r\n display: none;\r\n}\r\n\r\n/* Donation Levels Repeating Field */\r\n#_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row .cmb2-radio-list label {\r\n font-size: 12px;\r\n}\r\n\r\n#_give_donation_levels_repeat .cmb-group-title, #_give_donation_levels_repeat .cmb-row > .cmb-remove-group-row, #_give_donation_levels_repeat .cmb-row > .handlediv {\r\n display: none;\r\n}\r\n\r\n/* Table Rows */\r\ndiv.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {\r\n padding: 0 !important;\r\n margin: 0 !important;\r\n min-width: 100%;\r\n max-width: 0;\r\n\r\n}\r\n\r\n//Mulilevel Repeater Header\r\n.cmb2-id--give-levels-header {\r\n padding: 10px 12px 0 !important;\r\n margin: 0 !important;\r\n background: #F7F7F7;\r\n border-bottom: none !important;\r\n\r\n .table-container {\r\n\tdisplay: table;\r\n\twidth: 100%;\r\n\r\n\tborder-top: 1px solid #e9e9e9;\r\n\tborder-bottom: 1px solid #e9e9e9;\r\n\tborder-left: 1px solid #e9e9e9;\r\n\r\n\t> .table-row {\r\n\t display: table-row;\r\n\t background: #FCFCFC;\r\n\r\n\t > .table-cell {\r\n\t\tdisplay: table-cell;\r\n\t\tvertical-align: middle;\r\n\t\tpadding: 10px 15px;\r\n\t\tborder-right: 1px solid #e9e9e9;\r\n\t }\r\n\r\n\t}\r\n\r\n }\r\n}\r\n\r\n#_give_donation_levels_repeat {\r\n background: #F7F7F7;\r\n padding: 0 12px 20px;\r\n box-sizing: border-box;\r\n\r\n .cmb-row, .inside {\r\n\tmargin: 0;\r\n }\r\n .cmb-remove-field-row {\r\n\tmargin: 3px 0 0;\r\n\r\n\t.button {\r\n\t height: 25px;\r\n\t padding: 0 3px;\r\n\t}\r\n\tspan.dashicons-no {\r\n\t line-height: 1.15em;\r\n\t}\r\n\r\n }\r\n\r\n .cmbhandle {\r\n\tdisplay: none;\r\n }\r\n .cmb-add-row {\r\n\tmargin: 12px 0 0;\r\n }\r\n\r\n}\r\n\r\n//---------------------------------------------------\r\n//Field One Offs\r\n//---------------------------------------------------\r\n.give-time-field {\r\n width: 65px;\r\n}\r\n\r\n.give-money-field {\r\n width: 75px;\r\n margin-right: 0;\r\n margin-left: 0;\r\n}\r\n\r\n.give-money-symbol {\r\n border: 1px solid #e9e9e9;\r\n background: #FCFCFC;\r\n margin: 0;\r\n font-size: 14px;\r\n padding: 5px 8px;\r\n}\r\n\r\n.give-money-symbol-before {\r\n border-right: 0;\r\n}\r\n\r\n.give-money-symbol-after {\r\n border-left: 0;\r\n}\r\n\r\np.give-level-id {\r\n border-radius: 50%;\r\n border: 1px solid #e9e9e9;\r\n background: #FCFCFC;\r\n padding: 2px 7px;\r\n font-size: 11px;\r\n}\r\n\r\n.give-underline {\r\n text-decoration: underline;\r\n}\r\n\r\n#poststuff .give-subfield {\r\n background: #FAFAFA;\r\n\r\n .cmb-th label {\r\n\tpadding-left: 16px;\r\n }\r\n .cmb-td {\r\n\tpadding-right: 10px;\r\n\tbox-sizing: border-box;\r\n }\r\n\r\n}\r\n\r\n.postbox-container .cmb-row {\r\n margin: 0;\r\n\r\n .cmb-th label {\r\n\tpadding-left: 8px;\r\n }\r\n\r\n}\r\n\r\n/* Smaller Resolution Desktops AND UP */\r\n@media only screen and (min-width: 851px) {\r\n\r\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row > .cmb-th {\r\n\tdisplay: none;\r\n }\r\n\r\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row > .cmb-td {\r\n\tfloat: left;\r\n\twidth: 100%;\r\n }\r\n\r\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row {\r\n\tfloat: left;\r\n\tborder-bottom: none;\r\n }\r\n\r\n .cmb-type-give-default-radio-inline .cmb-td {\r\n\tmargin-top: 5px;\r\n }\r\n\r\n}\r\n\r\n/* Smaller Resolution Desktops */\r\n@media only screen and (min-width: 851px) and (max-width: 1285px) {\r\n\r\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list {\r\n\r\n\t> .cmb-remove-field-row {\r\n\t width: 100%;\r\n\t padding-top: 0;\r\n\t}\r\n\t> .cmb-type-text-money {\r\n\t width: 105px;\r\n\t}\r\n\tinput.cmb2-text-money {\r\n\t width: 65px;\r\n\t}\r\n\r\n\t> .cmb-type-text {\r\n\t width: 180px;\r\n\t padding-right: 20px;\r\n\t}\r\n\t> .cmb-type-radio-inline {\r\n\t margin-left: 20px;\r\n\t}\r\n\r\n }\r\n\r\n .col-id {\r\n\twidth: 15px;\r\n }\r\n p.give-level-id {\r\n\tmargin: 7px 15px 0 0;\r\n }\r\n\r\n .col-amount {\r\n\twidth: 70px;\r\n }\r\n\r\n .col-text {\r\n\twidth: 165px;\r\n }\r\n .col-sort {\r\n\tdisplay: none !important;\r\n }\r\n}\r\n\r\n@media only screen and (min-width: 1000px) {\r\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list {\r\n\r\n\t> .cmb-type-text {\r\n\t width: 220px;\r\n\t padding-right: 20px;\r\n\t}\r\n }\r\n\r\n .col-text {\r\n\twidth: 205px;\r\n }\r\n\r\n}\r\n\r\n@media only screen and (min-width: 1201px) {\r\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-remove-field-row {\r\n\tfloat: right;\r\n }\r\n\r\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row {\r\n\tpadding-right: 20px;\r\n }\r\n\r\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-remove-field-row.cmb-row {\r\n\tpadding-right: 0;\r\n }\r\n\r\n #_give_donation_levels_repeat .regular-text {\r\n\twidth: 100%;\r\n }\r\n\r\n .col-id {\r\n\twidth: 20px;\r\n }\r\n p.give-level-id {\r\n\tmargin: 6px 0 0;\r\n }\r\n .col-amount {\r\n\twidth: 85px;\r\n }\r\n\r\n .col-text {\r\n\twidth: 195px;\r\n }\r\n\r\n .col-sort {\r\n\twidth: 100px;\r\n }\r\n\r\n}\r\n\r\n@media only screen and (min-width: 1375px) {\r\n\r\n .col-text {\r\n\twidth: 270px;\r\n }\r\n\r\n #_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-type-text {\r\n\twidth: 290px;\r\n }\r\n\r\n}\r\n\r\n/* Small Resolution Repeater */\r\n@media only screen and (max-width: 850px) {\r\n div.cmb-type-levels-repeater-header {\r\n\tdisplay: none !important;\r\n }\r\n\r\n p.give-level-id {\r\n\tfloat: left;\r\n\tfont-weight: bold;\r\n\tmargin-top: 5px;\r\n }\r\n\r\n}\r\n\r\n/*-------------------------------------\r\nPublish Metabox\r\n-------------------------------------*/\r\n\r\n/*Shortcode Input */\r\n\r\n.shortcode-wrap {\r\n margin: 1px 14px 12px 11px;\r\n\r\n label {\r\n\tmargin: 0 0 3px;\r\n\tdisplay: block;\r\n\tcursor: default;\r\n }\r\n\r\n .shortcode-input {\r\n\tmargin: 0;\r\n\twidth: 100%;\r\n }\r\n}\r\n\r\n/*-------------------------------------\r\nContent Options\r\n-------------------------------------*/\r\n\r\n.cmb2-id--give-content-option,\r\n.cmb2-id--give-terms-option,\r\n.cmb2-id--give-offline-donation-enable-billing-fields-single,\r\n.cmb2-id--give-goal-option,\r\n.cmb2-id--give-customize-offline-donations {\r\n border-bottom: none !important;\r\n margin: 0 !important;\r\n}\r\n\r\n.cmb2-id--give-form-content,\r\n.cmb2-id--give-agree-label,\r\n.cmb2-id--give-offline-checkout-notes,\r\n.cmb2-id--give-set-goal,\r\n.cmb2-id--give-offline-donation-enable-billing-fields-single {\r\n border-top: 1px solid #e9e9e9 !important;\r\n}\r\n\r\n/*-------------------------------------\r\nTerms and Conditions Metabox\r\n---------------------------------------*/\r\n\r\n.cmb2-id--give-agree-label,\r\n.cmb2-id--give-agree-text {\r\n display: none;\r\n}\r\n\r\n/*-------------------------------------\r\nDashboard Columns\r\n-------------------------------------*/\r\n\r\ninput.shortcode-input {\r\n width: 100%;\r\n}\r\n\r\n/*-------------------------------------\r\nASIDE\r\n-------------------------------------*/\r\n\r\n#side-sortables {\r\n\r\n .cmb-th label {\r\n\r\n\t&:after {\r\n\t display: none;\r\n\t}\r\n\r\n }\r\n .cmb2-id--give-show-register-form {\r\n\tpadding: 10px 0 0 !important;\r\n }\r\n\r\n .cmb2-wrap > .cmb-field-list > .cmb-row {\r\n\tpadding-top: 10px;\r\n }\r\n\r\n .cmb-row .cmb2-metabox-description {\r\n\tpadding-bottom: 0;\r\n }\r\n\r\n}\r\n\r\n.cmb2-metabox-description {\r\n font-size: 13px;\r\n line-height: 1.5;\r\n}\r\n\r\n/*-------------------------------------\r\nTooltips\r\n-------------------------------------*/\r\n.give-tooltip {\r\n margin: 0 3px;\r\n padding: 0;\r\n font-size: 14px;\r\n @include easing-transition();\r\n color: transparentize($dark, 0.5);\r\n position: relative;\r\n top: 1px;\r\n\r\n &:hover {\r\n\tcolor: $dark;\r\n }\r\n\r\n}\r\n","/**\n * Give Add-ons SCSS\n *\n * @description Add-on Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n.type-download {\n float: left;\n margin: 0 1em 1em 0 !important;\n padding: 0;\n vertical-align: top;\n width: 280px;\n text-decoration: none;\n color: inherit;\n border: 1px solid #ddd;\n display: block;\n min-height: 365px;\n overflow: hidden;\n background: #f5f5f5;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .1);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .1);\n -webkit-transition-property: border, background, color;\n transition-property: border, background, color;\n -webkit-transition-duration: .05s;\n transition-duration: .05s;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n position: relative;\n\n &:hover {\n\tborder: 1px solid #d1d1d1;\n }\n\n > .featured-img img {\n\tborder-bottom: 1px solid #ddd;\n }\n\n .addon-content {\n\t@include clearfix;\n\tpadding: 15px 20px;\n\n\t.addon-heading {\n\t margin: 0 0 10px;\n\t a {\n\t\toutline: none;\n\t\ttext-decoration: none;\n\t }\n\t}\n\n }\n\n .addon-footer-wrap {\n\tborder-top: 1px solid #ddd;\n\tposition: absolute;\n\tbottom: 2px;\n\tleft: 0;\n\twidth: 100%;\n\tbackground-color: #FFF;\n\tpadding: 15px 20px;\n }\n\n}\n\n.give-view-addons-all, .type-download {\n\n span.dashicons {\n\twidth: 16px;\n\theight: 16px;\n\tfont-size: 14px;\n\tmargin: 6px 0 0 0;\n }\n\n}\n\n.give-view-addons-all span.dashicons {\n margin-left: 3px;\n}","/**\n * Give Reports SCSS\n *\n * @description Payment History Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n#give-dashboard-widgets-wrap {\n\n .inside {\n\tpadding-top: 0;\n\tpadding-bottom: 0;\n }\n\n .postbox {\n\tmargin-bottom: 10px;\n }\n\n table.reports-table {\n\tclear: none;\n }\n\n #give-graphs-filter {\n\t.tablenav {\n\t margin: 0;\n\t .actions {\n\t\tpadding: 0;\n\t }\n\t}\n }\n\n #give-date-range-options {\n\tclear: both;\n\toverflow: hidden;\n\tpadding: 8px 0;\n\n\t> span {\n\t float: left;\n\t line-height: 30px;\n\t font-style: italic;\n\t padding: 0 5px 0 0;\n\t}\n\n\t#give-graphs-year-end {\n\t margin-right: 0;\n\t}\n\n }\n\n a.give-refresh-reports-button {\n\tdisplay: inline-block;\n\tclear: right;\n\tmargin: 8px 0 0;\n }\n\n}\n\n/* Global Graph Styles\n-------------------------------------------------------------- */\n.give-graph {\n .y1Axis {\n\tcolor: #66bb6a !important;\n }\n .y2Axis {\n\tcolor: #546e7a !important;\n }\n}\n\n//Donor Filter\n\nbody.give_forms_page_give-reports, body.give_forms_page_give-payment-history {\n\n h1.nav-tab-wrapper {\n\tmargin-bottom: 10px;\n }\n .actions {\n\tpadding-top: 0;\n }\n\n .pagination-links {\n\tmargin-left: 10px;\n }\n\n p.donor-search {\n\tmargin-right: 10px;\n }\n\n .tablenav-right {\n\n\t.tablenav-pages {\n\t float: right;\n\t}\n\t#give-reports-view {\n\t margin-top: 0;\n\t}\n\t.actions {\n\t float: left;\n\t}\n\n }\n\n p.search-box {\n\tfloat: left;\n }\n\n .reports-table-nav.tablenav.top {\n\twidth: 100%;\n\tfloat: none;\n\tmargin: 0 0 10px;\n }\n\n .reports-forms-details-wrap.top {\n\tfloat: right;\n\toverflow: hidden;\n\n\t#give-reports-filter {\n\t float: left;\n\t}\n\t> .actions {\n\t padding-right: 0;\n\t}\n }\n\n .tablenav.bottom {\n\tmargin-top: 10px;\n }\n\n h3.reports-earnings-title {\n\tmargin: 7px 0 0;\n }\n\n .reports-views-wrap {\n\tpadding: 3px 0 0;\n }\n\n .wrap.give-reports-donors-wrap {\n\tmargin-right: 0;\n\tmargin-bottom: 10px;\n }\n\n .widefat tbody td, .widefat tbody th {\n\tpadding-top: 12px;\n\tpadding-bottom: 12px;\n }\n\n}\n\n/*---------------------\nExport Options Styles\n---------------------------*/\n\nbody.give_forms_page_give-reports table.export-options-table {\n tbody td {\n\tpadding: 20px 12px;\n }\n}\n\n/*---------------------\nPayment Methods\n---------------------------*/\n\n.gateways-report-tablenav {\n .actions.bulkactions {\n\tpadding-right: 0;\n }\n}\n\n/*---------------------\nTable List Styles\n---------------------------*/\n\n.widefat {\n .column-name, .column-label {\n\tfont-size: 14px;\n\tfont-weight: bold;\n }\n\n}\n\ntable.give-table {\n\n td {\n\tvertical-align: middle;\n }\n td.row-title {\n\th3 {\n\t margin: 0 0 0.4em;\n\t font-size: 1.2em;\n\t}\n\tp {\n\t font-size: 13px;\n\t font-style: italic;\n\t font-weight: normal;\n\t color: #aaa;\n\t margin: 0;\n\t}\n }\n\n}\n\n/*-------------------------\nLogs\n----------------------------*/\n#give-logs-filter {\n .search-box {\n\tfloat: right;\n }\n .tablenav.top {\n\tfloat: left;\n\tclear: none;\n\tmargin-top: 0;\n }\n}","/**\n * Give Admin Welcome SCSS\n *\n * @description Displays when user activates the plugin\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n.welcome-h1 {\n display: inline-block;\n margin-right: 15px !important;\n}\n\n//Feature section\n.feature-section {\n\n span.dashicons {\n\twidth: 16px;\n\theight: 16px;\n\tfont-size: 14px;\n\tmargin: 6px 0 0 0;\n }\n\n .feature-section-item {\n\twidth:48%;\n\tfloat:left;\n }\n\n div.last-feature {\n\tmargin-right:0;\n\tmargin-left:4%;\n }\n\n}\n\n\n//Get started\n[class^=\"dashboard_page_give-\"], [class*=\"dashboard_page_give-\"] {\n .about-text {\n\tmin-height: 0;\n }\n}\n\n//Social Media\n.social-items-wrap {\n display: inline-block;\n > div {\n\tdisplay: inline-block;\n }\n .twitter-item-wrap {\n\tmargin: 0 20px 10px 0;\n }\n}\n\n//Credits\n.wp-person {\n img {\n\tborder-radius: 50%;\n }\n a.web {\n\tmargin: 17px 0 0;\n\tfont-weight: bold;\n\tfont-style: italic;\n }\n}\n\n//Newsletter\n.newsletter-intro {\n font-size: 13px;\n font-style: italic;\n color: #777;\n}\n\n.give-newsletter-form-wrap {\n margin: 10px 0 20px -5px;\n max-width: 700px;\n\n td {\n\tpadding: 3px;\n }\n\n div.give-newsletter-confirmation {\n\tbackground: #fff;\n\t-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\n\tbox-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\n\tmargin: 5px 10px 4px 5px;\n\tpadding: 1px 12px;\n\tborder-left: 4px solid #7ad03a;\n\tdisplay: none;\n\t> p {\n\t margin: 0.5em 0;\n\t padding: 2px;\n\t}\n }\n\n}","/**\n * Give Logs SCSS\n *\n * @description Payment History Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n#give_donor_export_download {\n margin: 0 0 5px;\n}","/**\r\n * Give Settings SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n */\r\n\r\n/*------------------------------------\r\nSettings\r\n--------------------------------------*/\r\n.give_settings_page {\r\n\r\n .nav-tab-wrapper {\r\n\tmargin-bottom: 5px;\r\n }\r\n\r\n span.cmb2-metabox-description {\r\n\tfont-size: 13px;\r\n }\r\n\r\n .cmb2-wrap .cmb-type-checkbox input[type=\"checkbox\"] {\r\n\tdisplay: block;\r\n\tmargin-bottom: 5px;\r\n }\r\n\r\n div.give-submit-wrap {\r\n\tmargin: 20px 0;\r\n }\r\n\r\n .give_forms_page_give-payment-history .postbox .hndle {\r\n\tcursor: default;\r\n }\r\n\r\n}\r\n\r\n/* Section Titles */\r\n\r\n.cmb-type-give-title label {\r\n float: left;\r\n width: 220px;\r\n font-style: italic;\r\n color: #AAA;\r\n}\r\n\r\n.postbox-container #_give_donation_levels_repeat > .cmb-repeatable-grouping:not(:last-of-type) {\r\n border-bottom: 1px solid #e9e9e9;\r\n border-top: none;\r\n}\r\n\r\n.cmb-type-enabled-gateways .cmb-td > p:first-of-type {\r\n display: none;\r\n}\r\n\r\n/* CMB2 Checkbox Revised Styles */\r\n.cmb-type-checkbox .cmb-td {\r\n width: 80%;\r\n label {\r\n\tfont-size: 13px;\r\n }\r\n}\r\n\r\n/* Responsive Settings Rows */\r\n.give_settings {\r\n .cmb2-wrap .cmb-row {\r\n\tdisplay: table-row;\r\n\t> .cmb-th, > .cmb-td {\r\n\t display: table-cell;\r\n\t float: none;\r\n\t}\r\n }\r\n}\r\n\r\n/* Custom Title Separators */\r\n.cmb2-id-give-title {\r\n label {\r\n\tfont-style: italic;\r\n\tcolor: #AAA;\r\n\tcursor: default;\r\n }\r\n > div.cmb-th {\r\n\tpadding-bottom: 10px;\r\n }\r\n > div.cmb-td {\r\n\tpadding-bottom: 5px;\r\n }\r\n}\r\n\r\n/* System Info page styles\r\n-------------------------------------------------------------- */\r\n#system-info-textarea {\r\n width: 800px;\r\n height: 600px;\r\n font-family: Menlo, Monaco, monospace;\r\n background: #FFF;\r\n white-space: pre;\r\n overflow: auto;\r\n display: block;\r\n}\r\n\r\n#give-download-sysinfo {\r\n margin: 0;\r\n}\r\n\r\n/* API\r\n-------------------------------------------------------------- */\r\n\r\n.cmb2-id-api {\r\n\r\n .cmb-td {\r\n\tpadding: 0;\r\n }\r\n table th {\r\n\tpadding: 10px 8px;\r\n }\r\n\r\n .give-ajax-user-search {\r\n\tpadding: 3px 5px;\r\n\r\n }\r\n\r\n}\r\n\r\n.give_user_search_wrap {\r\n position: relative;\r\n overflow: visible;\r\n}\r\n\r\n.give_user_search_results {\r\n position: absolute;\r\n left: 0;\r\n top: 27px;\r\n\r\n a.give-ajax-user-cancel {\r\n\tposition: absolute;\r\n\tright: 6px;\r\n\ttop: 2px;\r\n }\r\n ul {\r\n\tpadding: 10px 10px 4px;\r\n\tmargin: 0;\r\n\tbackground: #f0f0f0;\r\n\tborder: 1px solid #DFDFDF;\r\n\twidth: 300px;\r\n\tmax-height: 200px;\r\n\toverflow-y: scroll;\r\n }\r\n\r\n}\r\n\r\n.give_forms_page_give-settings .tablenav .actions {\r\n overflow: visible;\r\n}\r\n\r\na.give-delete {\r\n color: #a00;\r\n}\r\n\r\n/* License\r\n-------------------------------------------------------------- */\r\n.cmb2-wrap {\r\n .give-license-deactivate {\r\n\tmargin: 1px 0 0 10px;\r\n\theight: 30px;\r\n }\r\n\r\n .give-license-field {\r\n\tbackground-image: url('../images/close.png');\r\n\tbackground-color: #FFF;\r\n\tbackground-repeat: no-repeat;\r\n\tbackground-position: 98.5% center;\r\n\tbackground-size: 18px;\r\n }\r\n\r\n .give-license-active, .give-license-active:focus {\r\n\tbackground-image: url('../images/tick.png');\r\n\tbackground-color: #FFF;\r\n\tbackground-repeat: no-repeat;\r\n\tbackground-position: 98.5% center;\r\n\toutline: none;\r\n\tbackground-size: 16px;\r\n }\r\n\r\n}\r\n\r\n/* Tables */\r\n\r\n.give-table {\r\n\r\n thead {\r\n\tth {\r\n\t padding: 8px 10px !important;\r\n\t}\r\n }\r\n\r\n}\r\n\r\n//Fix double <hr>s for change to `give_title` in 1.3.5\r\n.give_settings .cmb-td hr + hr {\r\n display: none;\r\n}","/**\r\n * Give Payment History SCSS\r\n *\r\n * @description Payment History Styles\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n\r\n#give-payment-filters, .give-submit-wrap {\r\n clear: both;\r\n background: #f5f5f5;\r\n border-color: #dfdfdf;\r\n overflow: auto;\r\n margin: 8px 0;\r\n padding: 12px;\r\n border-width: 1px;\r\n border-style: solid;\r\n font-size: 13px;\r\n line-height: 2.1em;\r\n}\r\n\r\n#give-payment-filters {\r\n p {\r\n\tcolor: #777;\r\n }\r\n ul.subsubsub {\r\n\tmargin-bottom: 8px;\r\n }\r\n label {\r\n\tfont-style: italic;\r\n\tmargin: 0 10px;\r\n\r\n\t&.give-start-date-label {\r\n\t margin-left: 5px;\r\n\t}\r\n\r\n }\r\n\r\n}\r\n\r\n#give-payments-filter {\r\n ul.subsubsub {\r\n\tmargin: 0 0 12px;\r\n }\r\n .tablenav.top {\r\n\tfloat: none;\r\n\t.bulkactions {\r\n\t margin-top: 1px;\r\n\t padding-top: 0;\r\n\t}\r\n\r\n }\r\n\r\n .give-email-column-value {\r\n\tfont-size: 14px;\r\n\tfont-weight: bold;\r\n }\r\n\r\n #the-list .check-column input {\r\n\tmargin-top: 1px;\r\n }\r\n\r\n}\r\n\r\ntr.status-refunded td {\r\n background: #cecece;\r\n border-top-color: #ccc;\r\n}\r\n\r\n.wp-list-table.forms th#ID {\r\n width: 80px;\r\n}\r\n\r\n.wp-list-table.forms th#details {\r\n width: 130px;\r\n}\r\n\r\n.wp-list-table.forms th#date {\r\n width: 140px;\r\n}\r\n\r\n.wp-list-table.forms th#user {\r\n width: 130px;\r\n}\r\n\r\n.give-mobile-link {\r\n line-height: 32px;\r\n vertical-align: middle;\r\n}\r\n\r\n.give-mobile-link img {\r\n max-width: 80%;\r\n height: auto;\r\n float: left;\r\n}\r\n\r\n/*---------------------\r\nStatus Colors\r\n---------------------------*/\r\n\r\n.give-donation-status {\r\n > span {\r\n\tfloat: left;\r\n\twidth: 12px;\r\n\theight: 12px;\r\n\tmargin: 3px 4px 0 0;\r\n\tpadding: 0;\r\n\tborder-radius: 50%;\r\n\tbackground: #888;\r\n\tline-height: 16px;\r\n }\r\n\r\n //Pending\r\n &.status-pending > span {\r\n\tbackground-color: $orange;\r\n }\r\n\r\n //Complete\r\n &.status-complete > span, &.status-publish > span {\r\n\tbackground-color: $status-complete;\r\n }\r\n\r\n //Refunded\r\n &.status-refunded > span {\r\n\tbackground-color: $status-default;\r\n }\r\n\r\n &.status-failed > span {\r\n\tbackground-color: $red;\r\n }\r\n\r\n &.status-abandoned > span {\r\n\tbackground-color: $dark;\r\n }\r\n\r\n &.status-revoked > span {\r\n\tbackground-color: $status-revoked;\r\n }\r\n\r\n &.status-subscription > span, &.status-give_subscription > span {\r\n\tbackground-color: $status-subscription;\r\n }\r\n\r\n}\r\n\r\n//ID & link field\r\n#give-payments-filter {\r\n .give-payment-id {\r\n\t@include give-label();\r\n\t@include give-label-gray();\r\n }\r\n\r\n .column-details {\r\n\tpadding-right:30px;\r\n }\r\n\r\n}\r\n\r\n/* Payment View Metabox */\r\n\r\n#give-order-update {\r\n .give-donation-status {\r\n\tdisplay: inline-block;\r\n\tfloat: none;\r\n\tmargin: 0 0 0 10px;\r\n\tposition: relative;\r\n\ttop: 3px;\r\n }\r\n}\r\n\r\n/*---------------------\r\nResponsiveness\r\n---------------------------*/\r\n@media handheld, only screen and (max-width: 640px) {\r\n .wp-list-table.forms th {\r\n\twidth: auto !important;\r\n }\r\n}\r\n\r\n.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span {\r\n margin-left: -8px;\r\n margin-top: -8px;\r\n}\r\n\r\n/* Payment Details\r\n-------------------------------------------------------------- */\r\n.give-admin-box .label {\r\n font-weight: 600;\r\n}\r\n\r\n.give-admin-box-inside {\r\n margin: 0;\r\n padding: 3px 12px;\r\n clear: both;\r\n border-bottom: 1px solid #eee;\r\n}\r\n\r\n.rtl .give-admin-box-inside {\r\n padding: 5px 10px 5px 0;\r\n}\r\n\r\n.give-admin-box-inside .strong {\r\n font-weight: 600;\r\n}\r\n\r\n.give-payment-fees .fee-label {\r\n font-weight: normal;\r\n color: #666;\r\n}\r\n\r\n.give-admin-box .right {\r\n float: right;\r\n}\r\n\r\n.rtl .give-admin-box .right {\r\n float: left;\r\n margin-left: 10px;\r\n}\r\n\r\n#give-order-update .inside,\r\n#give-order-details .inside {\r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n#give-order-update input.give_datepicker {\r\n width: 180px;\r\n}\r\n\r\n#give-order-update input[type=\"number\"].give-payment-time-hour,\r\n#give-order-update input[type=\"number\"].give-payment-time-min {\r\n width: 50px;\r\n}\r\n\r\n.give-admin-box-inside:last-child {\r\n border-bottom: 0;\r\n}\r\n\r\n#give-edit-order-form .data-payment-key {\r\n word-break: break-all;\r\n}\r\n\r\n.give-order-update-box #major-publishing-actions .button-secondary {\r\n margin-right: 10px;\r\n}\r\n\r\n#give-donation-overview .give-select-chosen {\r\n width: 196px;\r\n}\r\n\r\n#give-donation-overview ul,\r\n#give-order-address-country-wrap select,\r\n#give-donor-details .order-data-address input,\r\n#give-edit-order-form .column input,\r\n#give-donor-details .order-data-column p.data input {\r\n clear: both;\r\n display: block;\r\n}\r\n\r\n.give-order-data input.small-text {\r\n margin: 0;\r\n}\r\n\r\n#give-order-update span.label {\r\n display: inline;\r\n width: 50px;\r\n}\r\n\r\n.give-order-update-box .button-primary {\r\n margin-right: 0;\r\n}\r\n\r\n#give-edit-order-form .column .description {\r\n padding-right: 10px;\r\n}\r\n\r\n#give-edit-order-form .column,\r\n#give-donation-overview .row > ul > li,\r\n#give-donation-overview .inside > ul > li {\r\n display: inline-block;\r\n position: relative;\r\n vertical-align: top;\r\n margin-right: 5%;\r\n}\r\n\r\n#give-donation-overview li.actions {\r\n text-align: right;\r\n min-width: 200px;\r\n}\r\n\r\n#give-donation-overview ul li.remove {\r\n text-align: right;\r\n}\r\n\r\n#give-donation-overview .row {\r\n padding: 12px;\r\n border-bottom: 1px solid #eee;\r\n}\r\n\r\n#give-donation-overview ul {\r\n font-size: 0;\r\n}\r\n\r\n#give-donation-overview ul li {\r\n font-size: 13px;\r\n}\r\n\r\n#give-order-data .data span {\r\n color: #666;\r\n font-weight: 600;\r\n}\r\n\r\n#give-donation-overview .inside {\r\n padding: 12px;\r\n}\r\n\r\n.give-price-field {\r\n width: 80px;\r\n}\r\n\r\n.give_repeatable_upload_wrapper .pricing select, .give_repeatable_product_wrapper .give-select,\r\n#give_products .give-select {\r\n min-width: 100%;\r\n max-width: 200px;\r\n}\r\n\r\n.give_forms_page_give-payment-history.js .postbox .hndle {\r\n cursor: default;\r\n}\r\n\r\n@media screen and (max-width: 782px) {\r\n .order-data-column input[type=\"email\"] {\r\n\tpadding: 6px 10px;\r\n }\r\n}\r\n\r\n@media screen and (max-width: 1024px) {\r\n #give-edit-order-form .column {\r\n\twidth: 49%;\r\n }\r\n}\r\n\r\n@media screen and (max-width: 1280px) and (min-width: 1279px) {\r\n\r\n #give-edit-order-form .column {\r\n\twidth: 32%;\r\n }\r\n}\r\n\r\n@media screen and (min-width: 1280px) {\r\n #give-edit-order-form .column {\r\n\twidth: 32%;\r\n\tmargin-right: 3%;\r\n }\r\n\r\n #give-edit-order-form .columns-4 .column, #give-donation-overview.columns-4 .row > ul > li,\r\n #give-donation-overview.columns-4 .inside > ul > li {\r\n\twidth: 22%;\r\n\tmargin-right: 2%;\r\n }\r\n\r\n #give-edit-order-form .columns-3 .column:nth-child(2n+1),\r\n #give-edit-order-form .columns-4 .column:nth-child(3n+1),\r\n #give-edit-order-form .column:nth-child(2n+1) {\r\n\tmargin-right: 0;\r\n }\r\n\r\n #give-donation-overview.columns-4 li.download {\r\n\twidth: 33%;\r\n }\r\n\r\n #give-donation-overview.columns-4 li.price,\r\n #give-donation-overview.columns-3 .row > ul > li.price,\r\n #give-donation-overview.columns-3 .inside > ul > li.price {\r\n\twidth: 14%;\r\n }\r\n\r\n #give-donation-overview.columns-4 li.actions {\r\n\twidth: 25%;\r\n\tmargin-top: 0;\r\n\tmargin-right: 0;\r\n }\r\n}\r\n\r\n@media screen and (max-width: 1284px) {\r\n #give-edit-order-form .column strong {\r\n\tdisplay: block;\r\n }\r\n}\r\n\r\n/*------------------------------------------\r\nDonation Details\r\n--------------------------------------------*/\r\n\r\n#give-customer-details {\r\n\r\n .inside {\r\n\tpadding-top: 15px;\r\n\tpadding-bottom: 15px;\r\n }\r\n\r\n}","/**\n * Give Admin Dashboard SCSS\n *\n * @description Styles the Give dashboard widget\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n.give-dashboard-widget {\n\n .give-dashboard-today {\n\ttext-align: center;\n\n\t.give-dashboard-date-today {\n\t margin: 10px 0 0;\n\t padding: 0;\n\t}\n\n\t.give-dashboard-happy-day {\n\t padding: 3px;\n\t margin: 0;\n\t}\n\n\t.give-dashboard-today-earnings {\n\t font-size: 42px;\n\t color: #4ead61;\n\t font-weight: bold;\n\t margin: 15px 0 0;\n\t line-height: 1;\n\t}\n\n\t.give-orders-today {\n\t font-size: 18px;\n\t font-weight: bold;\n\t margin: 0 0 30px;\n\t padding: 4px 0 1px;\n\t}\n\n\t.give-last-seven {\n\t font-size: 14px;\n\t font-weight: bold;\n\t padding: 0;\n\t margin: 0 0 30px;\n\t}\n\n }\n\n //Table Stats\n .give-table-stats {\n\twidth: 100%;\n\ttext-align: center;\n\tmargin: 0;\n\ttable-layout: fixed;\n\tborder-top: 1px solid #ececec;\n\tborder-spacing: 0;\n\n\t.give-dashboard-stat-total, .give-dashboard-stat-total-label {\n\t padding: 0;\n\t margin: 0;\n\t}\n\n\t.give-dashboard-stat-total {\n\t color: #4ead61;\n\t font-weight: bold;\n\t font-size: 16px;\n\t}\n\n }\n\n}\n\n//Fancy borders\n#give_dashboard_sales {\n\n > .inside {\n\tpadding: 0;\n }\n\n .give-table-stats {\n\ttd {\n\t padding: 10px 0;\n\t}\n\ttd:first-of-type {\n\t border-right: 1px solid #ececec;\n\t}\n\ttr#give-table-stats-tr-1 td {\n\t border-bottom: 1px solid #ececec;\n\t}\n }\n\n}\n\n//At a Glance Widget\n#dashboard_right_now {\n .give-forms-count:before {\n\t@include iconstyle();\n\tfont-size: 18px;\n\twidth: 18px;\n\theight: 18px;\n\tcontent: \"\\e800\";\n }\n}","/**\n * Give Forms SCSS\n *\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n/* Donors Listing Page Style\n-------------------------------------------------------------- */\n.give_forms_page_give-donors {\n .wrap > h2 {\n\tmargin-bottom: 15px;\n }\n #give-donors-filter {\n\tposition: relative;\n\tp.search-box {\n\t float: left;\n\t margin: 0;\n\t}\n }\n\n .tablenav.top {\n\tfloat: right;\n\tclear: none;\n }\n}\n\n/* Donor Styles\n-------------------------------------------------------------- */\n\n#customer-tab-wrapper {\n\n}\n\n#customer-tab-wrapper-list {\n\n border-bottom: 1px solid #ccc;\n padding: 5px 15px 0 10px;\n\n li {\n\n\tdisplay: inline-block;\n\tmargin: 0 0 -1px;\n\tpadding: 0;\n\n\ta {\n\t padding: 6px 10px;\n\t font-weight: bold;\n\t font-size: 15px;\n\t line-height: 24px;\n\t border: 1px solid #ccc;\n\t border-bottom: none;\n\t background: #e4e4e4;\n\t color: #555;\n\t display: inline-block;\n\t text-decoration: none;\n\t margin: 0;\n\t}\n\n }\n\n .active {\n\tpadding: 6px 10px;\n\tfont-weight: bold;\n\tfont-size: 15px;\n\tline-height: 24px;\n\tborder: 1px solid #ccc;\n\tborder-bottom: 1px solid #f1f1f1;\n\tbackground: #f1f1f1;\n\tcolor: #000;\n }\n .dashicons {\n\tfont-size: 20px;\n\tline-height: 26px;\n }\n}\n\n#give-customer-card-wrapper {\n margin-left: -1px;\n z-index: 2;\n min-height: 200px;\n\n input {\n\tfont-weight: normal;\n }\n .customer-section {\n\tborder-bottom: 1px solid #eee;\n\tmargin-bottom: 10px;\n }\n .customer-section table {\n\tmargin-bottom: 0;\n }\n\n > div:first-child {\n\tpadding-top: 20px;\n }\n > div:last-child {\n\tpadding-bottom: 20px;\n\tborder: none;\n }\n\n //AVATAR\n .avatar-wrap {\n\tpadding: 0 15px 15px 0;\n\ttext-align: center;\n\tfloat: left;\n\timg {\n\t border-radius: 3px;\n\t}\n\n }\n\n a.delete {\n\ttext-decoration: none;\n\tcolor: #ff0000;\n\tmargin-right: 5px;\n }\n\n //Donor Header (non-avatar content)\n .donor-bio-header {\n\tfloat: left;\n\twidth: 33%;\n\n\t.customer-since {\n\t margin: 10px 0;\n\t font-size: 16px;\n\t}\n\n\t.customer-id {\n\t font-size: 24px;\n\t font-weight: 600;\n\t float: left;\n\t margin-right: 10px;\n\t}\n\n\t.customer-edit-link {\n\t margin-bottom: 15px;\n\t float: left;\n\n\t}\n\n }\n\n}\n\n.customer-main-wrapper {\n margin: 0 0 20px;\n\n @media(max-width: 655px) {\n\twidth: 100%;\n }\n\n table {\n\tmargin: 0;\n }\n input {\n\twidth: 200px;\n }\n\n}\n\n//Donor Summary\n#donor-summary {\n padding: 0 20px;\n\n &:after {\n\tfont-family: \"dashicons\";\n\tcontent: \"\\f110\";\n\tposition: absolute;\n\ttop: 10px;\n\tright: 10px;\n\tfont-size: 100px;\n\tcolor: #F0F0F0;\n\tz-index: 0;\n }\n\n}\n\n#give-customer-card-wrapper .customer-address-wrapper {\n width: 202px;\n\n\tspan[data-key=\"line2\"] {\n\t\tdisplay: table;\n\t\tclear: both;\n\t}\n}\n\n#give-customer-card-wrapper .customer-address-wrapper select {\n width: 200px;\n}\n\n#give-customer-card-wrapper .customer-info {\n margin-top: 1px;\n min-height: 185px;\n}\n\n#give-customer-card-wrapper .info-wrapper {\n min-height: 125px;\n}\n\n.customer-info .customer-name {\n font-size: 24px;\n font-weight: 600;\n}\n\n.disconnect-user a {\n font-size: 12px;\n font-weight: normal;\n text-decoration: none;\n}\n\n#customer-edit-actions {\n text-align: center;\n margin-bottom: 20px;\n line-height: 28px;\n}\n\n#customer-edit-actions .button-secondary {\n margin-right: 10px;\n}\n\n#give-customer-card-wrapper .edit-item {\n display: none;\n}\n\n#give-customer-card-wrapper .give_user_search_results {\n left: 1px;\n top: 16px;\n}\n\n#give-customer-card-wrapper .give_user_search_results ul {\n width: 200px\n}\n\n#customer-stats-wrapper {\n margin: 0 auto;\n text-align: center;\n padding: 15px;\n ul {\n\tmargin: 0;\n\tpadding: 0;\n\toverflow: hidden;\n\tli {\n\t width: 50%;\n\t float: left;\n\t line-height: 22px;\n\t font-size: 14px;\n\t margin: 0;\n\t}\n\n }\n\n a {\n\ttext-decoration: none;\n }\n}\n\n#customer-stats-wrapper .dashicons {\n color: #888;\n}\n\n#customer-tables-wrapper table {\n width: 100%;\n text-align: center;\n}\n\n#customer-tables-wrapper th {\n text-align: center;\n}\n\n#customer-tables-wrapper .downloads tr > th:first-child, #customer-tables-wrapper .downloads tr > td:first-child {\n text-align: left;\n}\n\n#customer-tables-wrapper .downloads tr > td:only-child {\n text-align: center;\n}\n\n#customer-notes-wrapper {\n min-height: 50px;\n}\n\n.customer-notes-header span, .customer-notes-header img {\n font-weight: 600;\n line-height: 30px;\n vertical-align: middle;\n}\n\n.customer-note-input {\n width: 100%;\n margin-bottom: 5px;\n}\n\n//Customer Notes\n#give-customer-notes {\n div:nth-of-type(even) {\n\tbackground-color: #f9f9f9;\n }\n .customer-note-wrapper {\n\tborder-bottom: 1px solid #f9f9f9;\n\tmin-height: 38px;\n\tpadding: 0;\n\n\t.note-content-wrap {\n\t padding: 10px 12px;\n\t line-height: 20px;\n\t font-size: 14px;\n\t}\n\n }\n\n .give-no-customer-notes {\n\ttext-align: center;\n\tpadding: 20px;\n }\n\n}\n\n.customer-note-wrapper span {\n display: block;\n}\n\n.delete-customer {\n text-align: center;\n}\n\n","/**\r\n * Give Admin Buttons SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n\r\n/*=Give Shortcode Button\r\n--------------------------------------*/\r\n\r\n@media screen and (max-width: 782px) {\r\n #wp-content-media-buttons a.give-thickbox {\r\n padding: 6px 14px;\r\n line-height: normal;\r\n font-size: 14px;\r\n height: auto;\r\n }\r\n .wp-media-buttons span#give-media-button {\r\n margin-top: 0 !important;\r\n margin-left: 2px !important;\r\n }\r\n}\r\n\r\n/*=Button in shortcode tinymce dialog\r\n--------------------------------------*/\r\n\r\n.mce-primary.mce-give-primary button {\r\n padding-right: 10px;\r\n padding-left: 10px;\r\n}\r\n","\n/* =Primary button in shortcode tinymce dialog\n-------------------------------------------------------------- */\n\n.mce-primary.mce-sc-primary button {\n\tpadding-right: 10px;\n\tpadding-left: 10px;\n}\n\n.mce-sc-popup {\n\ta {\n\t\ttext-decoration: underline;\n\t}\n\tp {\n\t\tmargin-bottom: 1em;\n\t\t&.strong {\n\t\t\tfont-weight: 600;\n\t\t}\n\t\t&.no-margin {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t\t&.margin-top {\n\t\t\tmargin-top: 1em;\n\t\t}\n\t}\n}\n\n/* =Shortcode button above wp_editor\n-------------------------------------------------------------- */\n\n@media screen and (max-width: 782px) {\n\t.wp-media-buttons button.sc-button span {\n\t\twidth: 18px !important;\n\t}\n}\n\n.wp-media-buttons {\n\tbutton.sc-button {\n\t\toutline: none;\n\t\tpadding-left: 5px;\n\t\tmargin-right: 0;\n\n\t\t&:active {\n\t\t\tmargin-bottom: 5px;\n\t\t}\n\t}\n}\n\nbutton.sc-button {\n\t&:after {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\ttop: -1px;\n\t\tcontent: '';\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-top: 6px solid #777;\n\t\tborder-right: 4px solid transparent;\n\t\tborder-left: 4px solid transparent;\n\t\tmargin: 0 3px 0 6px;\n\t}\n\n\t&.active:after {\n\t\ttop: -2px;\n\t\tborder-top: 0;\n\t\tborder-bottom: 6px solid #32373c;\n\t}\n}\n\n/* =Shortcode button dropdown menu\n-------------------------------------------------------------- */\n\n.sc-wrap {\n\tposition: relative;\n\tdisplay: inline-block;\n\tmargin-right: 5px;\n}\n\ndiv.sc-menu {\n\tdisplay: none;\n\tposition: absolute;\n\ttop: 100%;\n\tleft: 0;\n\tmin-width: 100%;\n\tmax-height: 410px;\n\tfont-size: 14px;\n\tbox-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 );\n\tbackground: #fff;\n\tborder: 1px solid rgba( 0, 0, 0, 0.15 );\n\toverflow: auto;\n\toverflow-x: hidden;\n\tpadding: 5px 0;\n\tmargin: -2px 0 0;\n\tz-index: 1002;\n}\n\ndiv.sc-shortcode {\n\tdisplay: block;\n\twhite-space: nowrap;\n\tcursor: pointer;\n\tpadding: 6px 12px;\n\tmargin-bottom: 2px;\n\n\t&:hover {\n\t\tcolor: #fff;\n\t}\n}\n\n/* =Shortcode tinymce dialog backdrop\n-------------------------------------------------------------- */\n\n#mce-modal-block.mce-reset.mce-fade.mce-in {\n\topacity: 0.7;\n\tfilter: alpha(opacity=70);\n}\n"],"sourceRoot":"/source/"}
assets/css/give-admin.min.css ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give Admin SCSS/CSS
3
+ *
4
+ * @description: The Main SCSS file for ADMIN styles which is compiled and minified via Gulp taskrunner
5
+ * @package: Give
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;height:100%;width: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}#mce-modal-block.mce-reset.mce-fade.mce-in,#qtip-overlay div{opacity:.7;filter:alpha(opacity=70)}.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;-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 a: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;content:"\e903"}.give-metabox-tabs li.form_field_options_tab>a:before{content:"\e604"}.give-metabox-tabs li.donation_goal_options_tab>a:before{content:"\e901"}.give-metabox-tabs li.form_display_options_tab>a:before{content:"\e90c"}.give-metabox-tabs li.form_content_options_tab>a:before{content:"\e902"}.give-metabox-tabs li.form_terms_options_tab>a:before{position:relative;top:1px;content:"\e900"}.give-metabox-tabs li.offline_donations_options_tab>a:before{content:"\e8df"}#_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:-1px}.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}@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}#side-sortables .cmb-th label:after,.cmb2-id--give-agree-label,.cmb2-id--give-agree-text{display:none}.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}input.shortcode-input{width:100%}#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{padding-left:170px}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:1em 20px 1em 162px!important;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 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:36px;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:30px;height:30px;border-radius:30px;margin-top:3px;line-height:28px}#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-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-metabox-form-data .give-metabox-tabs{margin:0;min-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{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-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:170px;width:170px;max-height:250px;overflow-y:scroll}@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{display:none}#give-metabox-form-data .give_options_panel{padding-left:40px}}#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-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;border:1px solid #ddd;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 h3.reports-earnings-title,body.give_forms_page_give-reports h3.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}.give-progress{height:15px;width:95%;border-radius:4px;overflow:hidden}.give-progress>div{height:100%;width:0}.admin-color-fresh .give-export-form .give-progress div,.give-export-form .give-progress div{background:#0073aa}.admin-color-light .give-export-form .give-progress div{background:#888}.admin-color-blue .give-export-form .give-progress div{background:#096484}.admin-color-coffee .give-export-form .give-progress div{background:#c7a589}.admin-color-ectoplasm .give-export-form .give-progress div{background:#a3b745}.admin-color-midnight .give-export-form .give-progress div{background:#e14d43}.admin-color-sunrise .give-export-form .give-progress div{background:#dd823b}.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 .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}.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}.give-image-thumb img{max-width:400px;border:4px solid #fff}.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}.cmb2-id-api .cmb-td{padding:0}.cmb2-id-api table th{padding:10px 8px}.cmb2-id-api .give-ajax-user-search{padding:3px 5px}.give_user_search_wrap{position:relative;overflow:visible}.give_user_search_results{position:absolute;left:0;top:27px;z-index:100}.give_user_search_results a.give-ajax-user-cancel{position:absolute;right:6px;top:2px}.give_user_search_results ul{padding:10px 10px 4px;margin:0;background:#f0f0f0;border:1px solid #DFDFDF;width:300px;max-height:200px;overflow-y:scroll}#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{margin-top:20px}.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}h2.give-nav-tab-wrapper{height:50px}}@media screen and (max-width:414px){.give-nav-tab-wrapper>a{width:75%}}.give-sub-nav-tab-wrapper{position:relative;z-index:9999;display:none}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{border:1px solid #ccc;border-bottom:0;position:absolute;top:32px;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:#e5e5e5}#give-show-sub-nav{text-decoration:none;padding:3px 5px;border-bottom:1px solid #ccc;line-height:0;background:#fff;border-radius:4px}#give-show-sub-nav:active,#give-show-sub-nav:hover{outline:0;box-shadow:inset 0 0 4px #ddd}#give-payment-filters,.give-submit-wrap{clear:both;background:#f5f5f5;border-color:#dfdfdf;overflow:auto;margin:8px 0;padding:12px;border-width:1px;border-style:solid;font-size:13px;line-height:2.1em}#give-payment-filters p{color:#777}#give-payment-filters ul.subsubsub{margin-bottom:8px}#give-payment-filters label{font-style:italic;margin:0 10px}#give-payment-filters label.give-start-date-label{margin-left:5px}#give-payments-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-payment-fees .fee-label{font-weight:400;color:#666}.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:196px}#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}#give-billing-details .column-container{padding:5px 0 10px}#give-billing-details input[type=text]{width:95%}#give-billing-details .chosen-container{width:98%!important}@media screen and (min-width:1200px){#give-edit-order-form .column{width:33%}#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-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{float:left;margin:0}.give_forms_page_give-donors .tablenav.top{float:right;clear:none}#give-customer-card-wrapper{margin-left:-1px;z-index:2;min-height:200px}#give-customer-card-wrapper input{font-weight:400}#give-customer-card-wrapper .customer-section{border-bottom:1px solid #eee;margin-bottom:10px}#give-customer-card-wrapper .customer-section table{margin-bottom:0}#give-customer-card-wrapper>div:first-child{padding-top:20px}#give-customer-card-wrapper>div:last-child{padding-bottom:20px;border:none}#give-customer-card-wrapper .avatar-wrap{padding:0 15px 15px 0;text-align:center;float:left}#give-customer-card-wrapper .avatar-wrap img{border-radius:3px}#give-customer-card-wrapper a.delete{text-decoration:none;color:red;margin-right:5px}#give-customer-card-wrapper .donor-bio-header .customer-since{margin:10px 0;font-size:16px}#give-customer-card-wrapper .donor-bio-header .customer-id{display:inline-block;font-size:24px;font-weight:600;margin-right:10px}#give-customer-card-wrapper .donor-bio-header .customer-name-wrap{display:inline-block}#give-customer-card-wrapper .donor-bio-header .customer-edit-link{margin-bottom:15px}.customer-main-wrapper{clear:both;margin:0 0 20px}@media (max-width:655px){.customer-main-wrapper{width:100%}}.customer-main-wrapper table{margin:0}.customer-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-customer-card-wrapper .customer-address-wrapper{width:202px}#give-customer-card-wrapper .customer-address-wrapper select,#give-customer-card-wrapper .give_user_search_results ul{width:200px}#give-customer-card-wrapper .customer-address-wrapper span[data-key=line2]{display:table;clear:both}#give-customer-card-wrapper .customer-info{min-height:185px}#give-customer-card-wrapper .info-wrapper{min-height:125px}.customer-info .customer-name{font-size:24px;font-weight:600}.disconnect-user a{font-size:12px;font-weight:400;text-decoration:none}#customer-edit-actions{text-align:center;margin-bottom:20px;line-height:28px}#customer-edit-actions .button-secondary{margin-right:10px}#give-customer-card-wrapper .edit-item{display:none}#give-customer-card-wrapper .give_user_search_results{left:1px;top:16px}#customer-stats-wrapper{margin:0 auto;text-align:center;padding:15px}#customer-stats-wrapper ul{margin:0;padding:0;overflow:hidden}#customer-stats-wrapper ul li{width:50%;float:left;line-height:22px;font-size:14px;margin:0}#customer-stats-wrapper a{text-decoration:none}#customer-stats-wrapper .dashicons{color:#888}#customer-tables-wrapper table{width:100%;text-align:center}#customer-tables-wrapper th{text-align:center}#customer-tables-wrapper .donations tr>td:first-child,#customer-tables-wrapper .donations tr>th:first-child,#customer-tables-wrapper .emails tr>td:first-child,#customer-tables-wrapper .emails tr>th:first-child{text-align:left}#customer-tables-wrapper .donations tr>td:only-child,.delete-customer{text-align:center}#customer-notes-wrapper{min-height:50px}.customer-notes-header img,.customer-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.customer-note-input{width:100%;margin-bottom:5px}#give-customer-notes div:nth-of-type(even){background-color:#f9f9f9}#give-customer-notes .customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:0}#give-customer-notes .customer-note-wrapper .note-content-wrap{padding:10px 12px;line-height:20px;font-size:14px}#give-customer-notes .give-no-customer-notes{text-align:center;padding:20px}.customer-note-wrapper span{display:block}@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 a{text-decoration:underline}.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}.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-top:1em}.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}
assets/css/give-dashicon.css ADDED
File without changes
assets/css/jquery-ui-fresh.css ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery UI CSS Framework 1.8.16
3
+ *
4
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5
+ * Dual licensed under the MIT or GPL Version 2 licenses.
6
+ * http://jquery.org/license
7
+ *
8
+ * http://docs.jquery.com/UI/Theming/API
9
+ */
10
+
11
+ /* Layout helpers
12
+ ----------------------------------*/
13
+ .ui-helper-hidden { display: none; }
14
+ .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
15
+ .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
16
+ .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
17
+ .ui-helper-clearfix { display: inline-block; }
18
+ /* required comment for clearfix to work in Opera \*/
19
+ * html .ui-helper-clearfix { height:1%; }
20
+ .ui-helper-clearfix { display:block; }
21
+ /* end clearfix */
22
+ .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
23
+
24
+
25
+ /* Interaction Cues
26
+ ----------------------------------*/
27
+ .ui-state-disabled { cursor: default !important; }
28
+
29
+
30
+ /* Icons
31
+ ----------------------------------*/
32
+
33
+ /* states and images */
34
+ .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
35
+
36
+
37
+ /* Component containers
38
+ ----------------------------------*/
39
+ .ui-widget { font-family: sans-serif; font-size: 12px; }
40
+ .ui-widget .ui-widget { font-size: 1em; }
41
+ .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: sans-serif; font-size: 1em; }
42
+ .ui-widget-content { border: 1px solid #dfdfdf; background: #ffffff; color: #333333; }
43
+ .ui-widget-header { border: 1px solid #dfdfdf; color: #333333; font-weight: bold; background-color: #f1f1f1; background-image: -ms-linear-gradient(top, #f9f9f9, #ececec); background-image: -moz-linear-gradient(top, #f9f9f9, #ececec); background-image: -o-linear-gradient(top, #f9f9f9, #ececec); background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec)); background-image: -webkit-linear-gradient(top, #f9f9f9, #ececec); background-image: linear-gradient(top, #f9f9f9, #ececec); }
44
+ .ui-widget-header a { color: #333333; }
45
+
46
+ /* Interaction states
47
+ ----------------------------------*/
48
+ .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #dfdfdf; background-color: #f1f1f1; background-image: -ms-linear-gradient(top, #f9f9f9, #ececec); background-image: -moz-linear-gradient(top, #f9f9f9, #ececec); background-image: -o-linear-gradient(top, #f9f9f9, #ececec); background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec)); background-image: -webkit-linear-gradient(top, #f9f9f9, #ececec); background-image: linear-gradient(top, #f9f9f9, #ececec); font-weight: normal; color: #333333; }
49
+ .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #333333; text-decoration: none; }
50
+ .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #ccc; background-color: #ececec; background-image: -ms-linear-gradient(top, #ececec, #f9f9f9); background-image: -moz-linear-gradient(top, #ececec, #f9f9f9); background-image: -o-linear-gradient(top, #ececec, #f9f9f9); background-image: -webkit-gradient(linear, left top, left bottom, from(#ececec), to(#f9f9f9)); background-image: -webkit-linear-gradient(top, #ececec, #f9f9f9); background-image: linear-gradient(top, #ececec, #f9f9f9); font-weight: normal; color: #000000; }
51
+ .ui-state-hover a, .ui-state-hover a:hover { color: #000000; text-decoration: none; }
52
+ .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #dfdfdf; background: #ffffff; font-weight: normal; color: #333333; }
53
+ .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #333333; text-decoration: none; }
54
+ .ui-widget :active { outline: none; }
55
+
56
+ /* Interaction Cues
57
+ ----------------------------------*/
58
+ .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #e6db55; background: #ffffe0; color: #333333; }
59
+ .ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #333333; }
60
+ .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cc0000; background: #ffebe8; color: #cc0000; }
61
+ .ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cc0000; }
62
+ .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cc0000; }
63
+ .ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
64
+ .ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
65
+ .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
66
+
67
+ /* Icons
68
+ ----------------------------------*/
69
+
70
+ /* states and images */
71
+ .ui-icon { width: 16px; height: 16px; background-image: url(../images/ui-icons_333333_256x240.png); }
72
+ .ui-widget-content .ui-icon {background-image: url(../images/ui-icons_333333_256x240.png); }
73
+ .ui-widget-header .ui-icon {background-image: url(../images/ui-icons_999999_256x240.png); }
74
+ .ui-state-default .ui-icon { background-image: url(../images/ui-icons_333333_256x240.png); }
75
+ .ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(../images/ui-icons_333333_256x240.png); }
76
+ .ui-state-active .ui-icon {background-image: url(../images/ui-icons_333333_256x240.png); }
77
+ .ui-state-highlight .ui-icon {background-image: url(../images/ui-icons_21759b_256x240.png); }
78
+
79
+ /* positioning */
80
+ .ui-icon-triangle-1-n { background-position: 0 -16px; }
81
+ .ui-icon-triangle-1-ne { background-position: -16px -16px; }
82
+ .ui-icon-triangle-1-e { background-position: -32px -16px; }
83
+ .ui-icon-triangle-1-se { background-position: -48px -16px; }
84
+ .ui-icon-triangle-1-s { background-position: -64px -16px; }
85
+ .ui-icon-triangle-1-sw { background-position: -80px -16px; }
86
+ .ui-icon-triangle-1-w { background-position: -96px -16px; }
87
+ .ui-icon-triangle-1-nw { background-position: -112px -16px; }
88
+ .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
89
+ .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
90
+ .ui-icon-arrow-1-n { background-position: 0 -32px; }
91
+ .ui-icon-arrow-1-ne { background-position: -16px -32px; }
92
+ .ui-icon-arrow-1-e { background-position: -32px -32px; }
93
+ .ui-icon-arrow-1-se { background-position: -48px -32px; }
94
+ .ui-icon-arrow-1-s { background-position: -64px -32px; }
95
+ .ui-icon-arrow-1-sw { background-position: -80px -32px; }
96
+ .ui-icon-arrow-1-w { background-position: -96px -32px; }
97
+ .ui-icon-arrow-1-nw { background-position: -112px -32px; }
98
+ .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
99
+ .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
100
+ .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
101
+ .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
102
+ .ui-icon-arrow-4 { background-position: 0 -80px; }
103
+ .ui-icon-arrow-4-diag { background-position: -16px -80px; }
104
+ .ui-icon-extlink { background-position: -32px -80px; }
105
+ .ui-icon-newwin { background-position: -48px -80px; }
106
+ .ui-icon-refresh { background-position: -64px -80px; }
107
+ .ui-icon-shuffle { background-position: -80px -80px; }
108
+ .ui-icon-transfer-e-w { background-position: -96px -80px; }
109
+ .ui-icon-transferthick-e-w { background-position: -112px -80px; }
110
+ .ui-icon-folder-collapsed { background-position: 0 -96px; }
111
+ .ui-icon-folder-open { background-position: -16px -96px; }
112
+ .ui-icon-document { background-position: -32px -96px; }
113
+ .ui-icon-document-b { background-position: -48px -96px; }
114
+ .ui-icon-cancel { background-position: 0 -128px; }
115
+ .ui-icon-plus { background-position: -16px -128px; }
116
+ .ui-icon-plusthick { background-position: -32px -128px; }
117
+ .ui-icon-minus { background-position: -48px -128px; }
118
+ .ui-icon-minusthick { background-position: -64px -128px; }
119
+ .ui-icon-close { background-position: -80px -128px; }
120
+ .ui-icon-closethick { background-position: -96px -128px; }
121
+ .ui-icon-key { background-position: -112px -128px; }
122
+ .ui-icon-info { background-position: -16px -144px; }
123
+ .ui-icon-notice { background-position: -32px -144px; }
124
+ .ui-icon-help { background-position: -48px -144px; }
125
+ .ui-icon-check { background-position: -64px -144px; }
126
+ .ui-icon-bullet { background-position: -80px -144px; }
127
+ .ui-icon-circle-plus { background-position: 0 -192px; }
128
+ .ui-icon-circle-minus { background-position: -16px -192px; }
129
+ .ui-icon-circle-close { background-position: -32px -192px; }
130
+ .ui-icon-circle-triangle-e { background-position: -48px -192px; }
131
+ .ui-icon-circle-triangle-s { background-position: -64px -192px; }
132
+ .ui-icon-circle-triangle-w { background-position: -80px -192px; }
133
+ .ui-icon-circle-triangle-n { background-position: -96px -192px; }
134
+ .ui-icon-circle-arrow-e { background-position: -112px -192px; }
135
+ .ui-icon-circle-arrow-s { background-position: -128px -192px; }
136
+ .ui-icon-circle-arrow-w { background-position: -144px -192px; }
137
+ .ui-icon-circle-arrow-n { background-position: -160px -192px; }
138
+
139
+
140
+
141
+ /* Misc visuals
142
+ ----------------------------------*/
143
+
144
+ /* Corner radius */
145
+ .ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
146
+ .ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; }
147
+ .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; }
148
+ .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
149
+
150
+ /*
151
+ * jQuery UI Datepicker 1.8.16
152
+ *
153
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
154
+ * Dual licensed under the MIT or GPL Version 2 licenses.
155
+ * http://jquery.org/license
156
+ *
157
+ * http://docs.jquery.com/UI/Datepicker#theming
158
+ */
159
+ .ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
160
+ .ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
161
+ .ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
162
+ .ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
163
+ .ui-datepicker .ui-datepicker-prev { left:2px; }
164
+ .ui-datepicker .ui-datepicker-next { right:2px; }
165
+ .ui-datepicker .ui-datepicker-prev-hover { left:1px; }
166
+ .ui-datepicker .ui-datepicker-next-hover { right:1px; }
167
+ .ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
168
+ .ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
169
+ .ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
170
+ .ui-datepicker select.ui-datepicker-month-year {width: 100%;}
171
+ .ui-datepicker select.ui-datepicker-month,
172
+ .ui-datepicker select.ui-datepicker-year { width: 49%;}
173
+ .ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
174
+ .ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
175
+ .ui-datepicker td { border: 0; padding: 1px; }
176
+ .ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
177
+ .ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
178
+ .ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
179
+ .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
180
+
181
+ /* with multiple calendars */
182
+ .ui-datepicker.ui-datepicker-multi { width:auto; }
183
+ .ui-datepicker-multi .ui-datepicker-group { float:left; }
184
+ .ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
185
+ .ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
186
+ .ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
187
+ .ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
188
+ .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
189
+ .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
190
+ .ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
191
+ .ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
192
+
193
+ /* RTL support */
194
+ .ui-datepicker-rtl { direction: rtl; }
195
+ .ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
196
+ .ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
197
+ .ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
198
+ .ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
199
+ .ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
200
+ .ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
201
+ .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
202
+ .ui-datepicker-rtl .ui-datepicker-group { float:right; }
203
+ .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
204
+ .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
assets/css/jquery-ui-fresh.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}.ui-helper-clearfix{display:inline-block}/*\*/* html .ui-helper-clearfix{height:1%}.ui-helper-clearfix{display:block}/**/.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.ui-widget{font-family:sans-serif;font-size:12px}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:sans-serif;font-size:1em}.ui-widget-content{border:1px solid #dfdfdf;background:#fff;color:#333}.ui-widget-header{border:1px solid #dfdfdf;color:#333;font-weight:bold;background-color:#f1f1f1;background-image:-ms-linear-gradient(top,#f9f9f9,#ececec);background-image:-moz-linear-gradient(top,#f9f9f9,#ececec);background-image:-o-linear-gradient(top,#f9f9f9,#ececec);background-image:-webkit-gradient(linear,left top,left bottom,from(#f9f9f9),to(#ececec));background-image:-webkit-linear-gradient(top,#f9f9f9,#ececec);background-image:linear-gradient(top,#f9f9f9,#ececec)}.ui-widget-header a{color:#333}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #dfdfdf;background-color:#f1f1f1;background-image:-ms-linear-gradient(top,#f9f9f9,#ececec);background-image:-moz-linear-gradient(top,#f9f9f9,#ececec);background-image:-o-linear-gradient(top,#f9f9f9,#ececec);background-image:-webkit-gradient(linear,left top,left bottom,from(#f9f9f9),to(#ececec));background-image:-webkit-linear-gradient(top,#f9f9f9,#ececec);background-image:linear-gradient(top,#f9f9f9,#ececec);font-weight:normal;color:#333}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#333;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #ccc;background-color:#ececec;background-image:-ms-linear-gradient(top,#ececec,#f9f9f9);background-image:-moz-linear-gradient(top,#ececec,#f9f9f9);background-image:-o-linear-gradient(top,#ececec,#f9f9f9);background-image:-webkit-gradient(linear,left top,left bottom,from(#ececec),to(#f9f9f9));background-image:-webkit-linear-gradient(top,#ececec,#f9f9f9);background-image:linear-gradient(top,#ececec,#f9f9f9);font-weight:normal;color:#000}.ui-state-hover a,.ui-state-hover a:hover{color:#000;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #dfdfdf;background:#fff;font-weight:normal;color:#333}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#333;text-decoration:none}.ui-widget :active{outline:0}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #e6db55;background:#ffffe0;color:#333}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#333}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #c00;background:#ffebe8;color:#c00}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#c00}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#c00}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-icon{width:16px;height:16px;background-image:url(../images/ui-icons_333333_256x240.png)}.ui-widget-content .ui-icon{background-image:url(../images/ui-icons_333333_256x240.png)}.ui-widget-header .ui-icon{background-image:url(../images/ui-icons_999999_256x240.png)}.ui-state-default .ui-icon{background-image:url(../images/ui-icons_333333_256x240.png)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(../images/ui-icons_333333_256x240.png)}.ui-state-active .ui-icon{background-image:url(../images/ui-icons_333333_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(../images/ui-icons_21759b_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(../images/ui-icons_cc0000_256x240.png)}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-off{background-position:-96px -144px}.ui-icon-radio-on{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{-moz-border-radius-topleft:3px;-webkit-border-top-left-radius:3px;border-top-left-radius:3px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{-moz-border-radius-topright:3px;-webkit-border-top-right-radius:3px;border-top-right-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{-moz-border-radius-bottomleft:3px;-webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{-moz-border-radius-bottomright:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px}.ui-widget-overlay{background:#000;opacity:.6;filter:Alpha(Opacity=60)}.ui-widget-shadow{box-shadow:0 0 16px rgba(0,0,0,0.3)}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;z-index:99999;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-accordion{width:100%}.ui-accordion .ui-accordion-header{cursor:pointer;position:relative;margin-top:1px;zoom:1}.ui-accordion .ui-accordion-li-fix{display:inline}.ui-accordion .ui-accordion-header-active{border-bottom:0!important}.ui-accordion .ui-accordion-header a{display:block;font-size:1em;padding:.5em .5em .5em .7em}.ui-accordion-icons .ui-accordion-header a{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;margin-top:-2px;position:relative;top:1px;margin-bottom:2px;overflow:auto;display:none;zoom:1}.ui-accordion .ui-accordion-content-active{display:block}.ui-autocomplete{position:absolute;cursor:default}* html .ui-autocomplete{width:1px}.ui-menu{list-style:none;padding:2px;margin:0;display:block;float:left}.ui-menu .ui-menu{margin-top:-3px}.ui-menu .ui-menu-item{margin:0;padding:0;zoom:1;float:left;clear:left;width:100%}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:.2em .4em;line-height:1.5;zoom:1}.ui-menu .ui-menu-item a.ui-state-hover,.ui-menu .ui-menu-item a.ui-state-active{font-weight:normal;margin:-1px}.ui-button{display:inline-block;position:relative;padding:0;margin-right:.1em;text-decoration:none!important;cursor:pointer;text-align:center;zoom:1;overflow:visible}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:1.4}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-dialog{position:fixed;padding:.2em;width:300px;overflow:hidden}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 16px .1em 0}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:19px;margin:-10px 0 0 0;padding:1px;height:18px}.ui-dialog .ui-dialog-titlebar-close span{display:block;margin:1px}.ui-dialog .ui-dialog-titlebar-close:hover,.ui-dialog .ui-dialog-titlebar-close:focus{padding:0}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0;overflow:auto;zoom:1}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin:.5em 0 0 0;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:14px;height:14px;right:3px;bottom:3px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-tabs{position:relative;padding:.2em;zoom:1}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:1px;margin:0 .2em 1px 0;border-bottom:0!important;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav li a{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-selected{margin-bottom:0;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-state-processing a{cursor:text}.ui-tabs .ui-tabs-nav li a,.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:0}.ui-tabs .ui-tabs-hide{display:none!important}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month-year{width:100%}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current{float:right}.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-datepicker-cover{display:none;display:block;position:absolute;z-index:-1;filter:mask();top:-4px;left:-4px;width:200px;height:200px}.ui-progressbar{height:2em;text-align:left}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-widget-header{background-color:#83b4d8;background-image:linear-gradient(bottom,#72a7cf 0,#90c5ee 100%);background-image:-o-linear-gradient(bottom,#72a7cf 0,#90c5ee 100%);background-image:-moz-linear-gradient(bottom,#72a7cf 0,#90c5ee 100%);background-image:-webkit-linear-gradient(bottom,#72a7cf 0,#90c5ee 100%);background-image:-ms-linear-gradient(bottom,#72a7cf 0,#90c5ee 100%)}
assets/css/jquery.qtip.css ADDED
@@ -0,0 +1,617 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1 @@
 
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/fonts/icomoon.eot ADDED
Binary file
assets/fonts/icomoon.svg ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by IcoMoon</metadata>
5
+ <defs>
6
+ <font id="icomoon" horiz-adv-x="1024">
7
+ <font-face units-per-em="1024" ascent="960" descent="-64" />
8
+ <missing-glyph horiz-adv-x="1024" />
9
+ <glyph unicode="&#x20;" horiz-adv-x="512" d="" />
10
+ <glyph unicode="&#xe040;" glyph-name="circle-plus" d="M512 891.733q95.667 0 182.5-37.167t149.667-100 100-149.667 37.167-182.5-37.167-182.5-100-149.667-149.667-100-182.5-37.167-182.5 37.167-149.667 100-100 149.667-37.167 182.5 37.167 182.5 100 149.667 149.667 100 182.5 37.167zM512 806.4q-78 0-149.167-30.5t-122.5-81.833-81.833-122.5-30.5-149.167 30.5-149.167 81.833-122.5 122.5-81.833 149.167-30.5 149.167 30.5 122.5 81.833 81.833 122.5 30.5 149.167-30.5 149.167-81.833 122.5-122.5 81.833-149.167 30.5zM512 635.733q17.667 0 30.167-12.5t12.5-30.167v-128h128q17.667 0 30.167-12.5t12.5-30.167-12.5-30.167-30.167-12.5h-128v-128q0-17.667-12.5-30.167t-30.167-12.5-30.167 12.5-12.5 30.167v128h-128q-17.667 0-30.167 12.5t-12.5 30.167 12.5 30.167 30.167 12.5h128v128q0 17.667 12.5 30.167t30.167 12.5z" />
11
+ <glyph unicode="&#xe041;" glyph-name="circle-minus" d="M512 891.733q95.667 0 182.5-37.167t149.667-100 100-149.667 37.167-182.5-37.167-182.5-100-149.667-149.667-100-182.5-37.167-182.5 37.167-149.667 100-100 149.667-37.167 182.5 37.167 182.5 100 149.667 149.667 100 182.5 37.167zM512 806.4q-78 0-149.167-30.5t-122.5-81.833-81.833-122.5-30.5-149.167 30.5-149.167 81.833-122.5 122.5-81.833 149.167-30.5 149.167 30.5 122.5 81.833 81.833 122.5 30.5 149.167-30.5 149.167-81.833 122.5-122.5 81.833-149.167 30.5zM341.333 465.067h341.333q17.667 0 30.167-12.5t12.5-30.167-12.5-30.167-30.167-12.5h-341.333q-17.667 0-30.167 12.5t-12.5 30.167 12.5 30.167 30.167 12.5z" />
12
+ <glyph unicode="&#xe600;" glyph-name="locked" d="M234.666 678.399v-149.334l-64 0.002c-47.146 0-85.334-38.186-85.334-85.334v-426.666c0-47.146 38.186-85.334 85.334-85.334h682.666c47.146 0 85.334 38.186 85.334 85.334v426.666c0 47.146-38.186 85.334-85.334 85.334h-64v149.334c0 153.174-124.16 277.334-277.334 277.334-153.172-0.002-277.332-124.162-277.332-277.336zM341.334 529.067v149.334c0 94.294 76.374 170.666 170.666 170.666s170.666-76.374 170.666-170.666v-149.334h-341.332zM426.666 294.399c0 47.146 38.186 85.334 85.334 85.334s85.334-38.186 85.334-85.334c0-30.080-15.574-56.534-39.040-71.68 0 0 8.342-50.346 17.706-109.654 0-17.706-14.294-32-32-32h-64c-17.706 0-32 14.294-32 32l17.706 109.654c-23.466 15.148-39.040 41.6-39.040 71.68z" />
13
+ <glyph unicode="&#xe601;" glyph-name="info" d="M448 651.733c0 26.4 21.6 48 48 48h32c26.4 0 48-21.6 48-48v-32c0-26.4-21.6-48-48-48h-32c-26.4 0-48 21.6-48 48v32zM640 187.733h-256v64h64v192h-64v64h192v-256h64zM512 955.733c-282.77 0-512-229.23-512-512s229.23-512 512-512 512 229.23 512 512-229.23 512-512 512zM512 27.733c-229.75 0-416 186.25-416 416s186.25 416 416 416 416-186.25 416-416-186.25-416-416-416z" />
14
+ <glyph unicode="&#xe602;" glyph-name="question" d="M512-68.267c-282.75 0-512 229.218-512 512 0 282.75 229.25 512 512 512s512-229.25 512-512c0-282.782-229.25-512-512-512zM512 827.733c-212.062 0-384-171.938-384-384s171.938-384 384-384 384 171.938 384 384-171.938 384-384 384zM512 699.733c-106.062 0-192-85.968-192-192h128c0 35.344 28.624 64 64 64s64-28.656 64-64-28.624-64-64-64c-2.45 0-10.216 0-32 0-17.688 0-32-14.344-32-32v-96h128v11.75c74.376 26.438 128 96.782 128 180.25 0 106.032-85.938 192-192 192zM512 251.733h-64v-64h128v64z" />
15
+ <glyph unicode="&#xe603;" glyph-name="lamp" d="M341.334 166.399v-64.214c0-29.866 12.374-56.982 32.214-76.374l62.72-62.72c41.814-41.814 109.654-41.814 151.466 0l62.72 62.72c19.84 19.392 32.214 46.506 32.214 76.374l-0.002 42.882h-189.866c-24.746 0-44.8 19.2-44.8 42.666s20.032 42.666 44.8 42.666h195.414c29.226 164.48 165.12 232.748 165.12 393.174 0 183.446-152.748 332.16-341.334 332.16s-341.334-148.714-341.334-332.16c0-181.142 170.668-245.142 170.668-457.174zM568.534 763.733c-20.054 3.626-35.2 21.12-35.2 42.026 0 23.446 19.2 43.308 42.666 43.308 33.92 0 75.094-24.106 109.654-58.24 35.2-34.988 61.012-81.728 61.012-112.428 0-23.466-19.2-42.666-42.666-42.666-20.906 0-38.4 15.146-42.048 35.2-10.666 42.88-47.318 82.134-93.418 92.8z" />
16
+ <glyph unicode="&#xe604;" glyph-name="heart" d="M512 759.403c-21.334 82.986-129.706 132.266-213.334 132.266-164.906 0-298.666-128-298.666-298.666 0-320 304.214-405.334 469.334-597.334 1.472-2.134 3.2-3.862 5.12-5.76 20.886-20.714 54.614-20.714 75.498 0 1.942 1.898 3.2 3.626 4.714 5.76 165.334 192.426 469.334 276.032 469.334 597.334 0 170.666-133.76 298.666-298.666 298.666-83.628 0-192-49.28-213.334-132.266zM739.2 699.669c-20.054 3.626-35.2 21.12-35.2 42.026 0 23.466 19.2 43.306 42.666 43.306 33.92 0 75.094-24.106 109.654-58.24 35.2-34.986 61.014-81.706 61.014-112.426 0-23.466-19.2-42.666-42.666-42.666-20.906 0-38.4 15.146-42.048 35.2-10.668 42.88-47.318 82.134-93.42 92.8z" />
17
+ <glyph unicode="&#xe605;" glyph-name="spinner" d="M512 652.637c-32.964 0-59.686 26.724-59.686 59.686v179.060c0 32.964 26.722 59.686 59.686 59.686 32.962 0 59.688-26.722 59.688-59.686v-179.060c0-32.964-26.726-59.686-59.688-59.686zM512-41.223c-20.602 0-37.304 16.702-37.304 37.304v179.060c0 20.602 16.702 37.304 37.304 37.304 20.604 0 37.304-16.704 37.304-37.304v-179.060c0-20.602-16.7-37.304-37.304-37.304zM377.756 620.373c-19.34 0-38.146 10.034-48.512 27.988l-89.53 155.070c-15.452 26.764-6.282 60.986 20.482 76.438 26.762 15.45 60.986 6.284 76.438-20.482l89.53-155.072c15.452-26.764 6.282-60.986-20.482-76.438-8.81-5.084-18.432-7.504-27.926-7.504zM735.856 22.477c-11.602 0-22.886 6.022-29.108 16.792l-89.53 155.070c-9.27 16.056-3.77 36.592 12.29 45.864 16.056 9.264 36.59 3.77 45.864-12.292l89.532-155.068c9.27-16.058 3.768-36.592-12.292-45.864-5.286-3.048-11.060-4.502-16.756-4.502zM279.344 525.793c-8.86 0-17.838 2.256-26.064 7.006l-155.072 89.53c-24.978 14.422-33.538 46.362-19.116 71.342 14.42 24.978 46.364 33.538 71.342 19.116l155.070-89.53c24.98-14.422 33.538-46.362 19.116-71.34-9.668-16.756-27.226-26.124-45.276-26.124zM899.648 190.059c-5.064 0-10.196 1.29-14.894 4.004l-155.068 89.53c-14.274 8.24-19.164 26.494-10.924 40.768 8.242 14.276 26.496 19.166 40.766 10.924l155.070-89.532c14.274-8.24 19.164-26.492 10.924-40.766-5.53-9.574-15.562-14.928-25.874-14.928zM243.41 395.237h-179.060c-26.784 0-48.496 21.712-48.496 48.496s21.712 48.496 48.496 48.496h179.060c26.784 0 48.496-21.712 48.496-48.496s-21.712-48.496-48.496-48.496zM959.65 413.889c-0.002 0 0 0 0 0h-179.060c-16.482 0.002-29.844 13.364-29.844 29.844s13.364 29.844 29.844 29.844c0.002 0 0 0 0 0h179.060c16.482 0 29.844-13.362 29.844-29.844 0-16.48-13.364-29.844-29.844-29.844zM124.366 175.135c-15.472 0-30.518 8.028-38.81 22.39-12.362 21.41-5.026 48.79 16.384 61.148l155.072 89.532c21.41 12.368 48.79 5.028 61.15-16.384 12.362-21.412 5.026-48.79-16.384-61.15l-155.072-89.53c-7.050-4.070-14.748-6.006-22.34-6.006zM744.632 548.181c-10.314 0-20.346 5.352-25.874 14.926-8.24 14.274-3.35 32.526 10.924 40.768l155.070 89.528c14.272 8.236 32.526 3.352 40.768-10.922 8.24-14.274 3.35-32.526-10.924-40.768l-155.070-89.528c-4.7-2.714-9.83-4.004-14.894-4.004zM288.136 15.017c-6.962 0-14.016 1.774-20.48 5.504-19.626 11.332-26.35 36.428-15.020 56.054l89.53 155.070c11.33 19.628 36.426 26.352 56.054 15.022 19.626-11.332 26.35-36.43 15.020-56.054l-89.53-155.072c-7.598-13.166-21.392-20.524-35.574-20.524zM646.266 646.491c-5.062 0-10.196 1.29-14.894 4.002-14.274 8.242-19.164 26.494-10.924 40.766l89.534 155.070c8.24 14.274 26.492 19.166 40.766 10.922 14.274-8.242 19.164-26.494 10.924-40.766l-89.532-155.070c-5.53-9.57-15.56-14.924-25.874-14.924z" />
18
+ <glyph unicode="&#xe606;" glyph-name="help" d="M505.754 927.522c-260.147-3.482-468.224-217.19-464.742-477.338 3.482-259.994 217.19-468.122 477.338-464.64 260.045 3.482 468.173 217.19 464.64 477.338-3.43 260.045-217.139 468.122-477.235 464.64zM504.371 169.813h-2.611c-40.038 1.178-68.301 30.72-67.174 70.195 1.126 38.758 30.054 66.97 68.813 66.97l2.355-0.051c41.165-1.229 69.12-30.464 67.891-71.066-1.126-38.861-29.645-66.048-69.274-66.048zM672.87 504.251c-9.472-13.363-30.157-30.003-56.269-50.33l-28.774-19.866c-15.77-12.288-25.293-23.808-28.826-35.123-2.867-9.011-4.198-11.315-4.454-29.491l-0.051-4.659h-109.722l0.307 9.318c1.331 38.195 2.304 60.621 18.125 79.206 24.832 29.133 79.616 64.41 81.92 65.894 7.834 5.939 14.438 12.646 19.405 19.814 11.52 15.872 16.589 28.416 16.589 40.653 0 17.050-5.069 32.819-15.053 46.848-9.626 13.568-27.904 20.429-54.323 20.429-26.214 0-44.134-8.346-54.886-25.395-11.11-17.562-16.64-35.942-16.64-54.784v-4.71h-113.152l0.205 4.915c2.918 69.325 27.648 119.194 73.523 148.326 28.774 18.586 64.614 27.955 106.394 27.955 54.733 0 101.018-13.312 137.37-39.526 36.864-26.573 55.552-66.406 55.552-118.323 0-29.082-9.165-56.371-27.238-81.152z" />
19
+ <glyph unicode="&#xe607;" glyph-name="spinner2" d="M512 955.733c-66.862-1.278-133.516-15.784-194.462-42.576-61-26.704-116.258-65.462-161.92-113.042-45.696-47.552-81.82-103.944-105.652-164.984-23.924-61.004-35.352-126.596-33.966-191.398 1.282-64.81 15.374-129.332 41.356-188.334 25.896-59.048 63.47-112.542 109.576-156.734 46.082-44.224 100.708-79.16 159.798-102.186 59.062-23.114 122.52-34.128 185.27-32.746 62.76 1.286 125.148 14.964 182.206 40.134 57.1 25.088 108.828 61.476 151.548 106.11 42.754 44.61 76.504 97.472 98.72 154.614 22.304 57.118 32.902 118.446 31.526 179.142-1.29 60.708-14.554 120.962-38.914 176.076-24.282 55.15-59.48 105.116-102.644 146.366-43.14 41.282-94.236 73.844-149.43 95.254-33.458 13.034-68.4 21.88-103.798 26.542 0.072 1.246 0.12 2.498 0.12 3.762 0 35.346-28.652 64-64 64-1.796 0-3.572-0.094-5.332-0.238v0.238zM681.948 854.039c53.202-23.472 101.4-57.484 141.18-99.178 39.81-41.67 71.186-91 91.79-144.244 20.678-53.228 30.452-110.29 29.082-166.884-1.298-56.604-13.736-112.596-36.474-163.82-22.666-51.25-55.49-97.684-95.712-135.994-40.198-38.338-87.764-68.528-139.058-88.322-51.284-19.87-106.214-29.228-160.756-27.864-54.552 1.302-108.412 13.328-157.69 35.254-49.3 21.858-93.97 53.498-130.81 92.246-36.868 38.73-65.87 84.53-84.856 133.874-19.060 49.338-28.006 102.136-26.644 154.626 1.306 52.5 12.918 104.228 34.034 151.562 21.050 47.352 51.502 90.256 88.782 125.624 37.258 35.396 81.294 63.21 128.688 81.39 47.392 18.248 98.058 26.782 148.496 25.424v0.238c1.76-0.144 3.536-0.238 5.332-0.238 33.012 0 60.174 24.992 63.624 57.086 34.822-6.224 68.818-16.53 100.992-30.78z" />
20
+ <glyph unicode="&#xe800;" glyph-name="give-icon-full-circle-white" horiz-adv-x="1023" d="M939.969 418.328c-12.377-62.534-78.819-313.975-341.985-313.975-313.975 0-457.282 340.031-457.282 340.031 104.875 63.837 282.707 338.728 450.768 338.728s227.338-207.796 227.338-207.796l-14.331-22.799c0 0-55.369 69.7-182.392 69.7s-214.31-153.079-267.725-200.631c0 0 133.537-209.099 305.506-209.099 92.499 0 192.163 80.122 248.183 200.631-97.71-13.679-226.036-26.056-316.58-14.331 0 0-4.56 3.908-6.514 8.468-2.606 5.863-3.257 11.725-3.257 11.725 179.786 0 334.168 42.341 439.043 81.425-28.662 256.651-245.578 455.328-508.743 455.328-282.707 0-512-229.293-512-512s229.293-512 512-512c278.799 0 505.486 222.779 512 500.275-19.542-3.257-48.855-8.468-84.031-13.679z" />
21
+ <glyph unicode="&#xe8df;" glyph-name="wallet" d="M819.2 665.6h-640v25.6l563.2 45.056v-45.056h76.8v76.8c0 56.32-45.619 95.846-101.325 87.91l-514.099-73.421c-55.757-7.987-101.376-60.57-101.376-116.89v-512c0-56.525 45.824-102.4 102.4-102.4h614.4c56.525 0 102.4 45.875 102.4 102.4v409.6c0 56.525-45.875 102.4-102.4 102.4zM742.4 306.893c-42.394 0-76.8 34.406-76.8 76.8s34.406 76.8 76.8 76.8 76.8-34.406 76.8-76.8-34.406-76.8-76.8-76.8z" />
22
+ <glyph unicode="&#xe900;" glyph-name="check-square-o" horiz-adv-x="950" d="M804.571 419.428v-181.714q0-68-48.286-116.286t-116.286-48.286h-475.429q-68 0-116.286 48.286t-48.286 116.286v475.429q0 68 48.286 116.286t116.286 48.286h475.429q36 0 66.857-14.286 8.571-4 10.286-13.143 1.714-9.714-5.143-16.571l-28-28q-5.714-5.714-13.143-5.714-1.714 0-5.143 1.143-13.143 3.429-25.714 3.429h-475.429q-37.714 0-64.571-26.857t-26.857-64.571v-475.429q0-37.714 26.857-64.571t64.571-26.857h475.429q37.714 0 64.571 26.857t26.857 64.571v145.143q0 7.429 5.143 12.571l36.571 36.571q5.714 5.714 13.143 5.714 3.429 0 6.857-1.714 11.429-4.571 11.429-16.571zM936.571 698.857l-465.143-465.143q-13.714-13.714-32.571-13.714t-32.571 13.714l-245.714 245.714q-13.714 13.714-13.714 32.571t13.714 32.571l62.857 62.857q13.714 13.714 32.571 13.714t32.571-13.714l150.286-150.286 369.714 369.714q13.714 13.714 32.571 13.714t32.571-13.714l62.857-62.857q13.714-13.714 13.714-32.571t-13.714-32.571z" />
23
+ <glyph unicode="&#xe901;" glyph-name="1-66" d="M590.24 384.773l-74.496-68.304c-2.32-2.096-4.736-4.288-7.216-6.576-9.568-52.832-55.904-93.008-111.44-93.008-62.432 0-113.248 50.8-113.248 113.248 0 57.552 43.152 105.184 98.768 112.304 1.072 1.2 2.128 2.352 3.152 3.504l29.584 33.2 0.688-0.224c13.040 14.224 28.032 30.576 39.632 43.232-18.528 5.648-38.208 8.704-58.56 8.704-110.688 0-200.72-90.032-200.72-200.72s90.032-200.72 200.72-200.72c110.688 0 200.72 90.032 200.72 200.72-0.016 18.944-2.656 37.264-7.584 54.64zM736.944 519.173c-22.416-20.4-44.768-40.88-66.848-61.152 18.272-38.848 28.48-82.208 28.48-127.888 0-166.24-135.248-301.488-301.488-301.488s-301.488 135.264-301.488 301.488 135.248 301.488 301.488 301.488c47.072 0 91.664-10.848 131.392-30.16 20.192 22.032 40.624 44.32 60.944 66.656-56.752 32.432-122.416 50.976-192.336 50.976-214.464 0-388.96-174.496-388.96-388.96s174.496-388.96 388.96-388.96 388.96 174.496 388.96 388.96c0.016 68.576-17.824 133.056-49.104 189.040zM1013.696 762.053c-1.712 4.496-4.128 8.32-7.184 11.376-8.208 8.208-19.008 9.344-29.44 9.344-15.12 0-30.224 0.096-45.344 0.208-23.36 0.16-47.52 0.32-71.312 0.080-1.6-0.016-2.64 0.080-3.264 0.176l-1.28 3.056-3.056 1.28c-0.096 0.64-0.192 1.664-0.176 3.264 0.24 23.792 0.064 47.952-0.080 71.328-0.096 15.104-0.208 30.224-0.208 45.344 0 10.432-1.136 21.232-9.344 29.44-3.056 3.056-6.88 5.472-11.392 7.184-19.376 7.328-32.304-5.76-38.528-12.048-10.56-10.736-21.184-21.408-31.792-32.112-24.256-24.416-49.328-49.664-73.488-75.12-7.856-8.32-13.376-21.936-13.728-33.888-0.544-18.48-0.4-37.168-0.256-55.264 0.128-16.464 0.272-33.472-0.128-50.112-0.128-5.408-2.88-12.448-6.416-16.368-41.28-45.776-83.696-91.952-124.72-136.592l-33.776-36.8c-18.16-19.824-61.008-66.56-75.44-82.256l-0.128 0.048-4.944-5.552c-3.232-3.616-6.752-7.488-10.48-11.584-11.52-12.64-24.592-26.96-36.736-42.512-8.752-11.232-4.048-27.904 5.568-37.52 0.352-0.352 0.704-0.688 1.056-1.008 9.136-8.272 24.256-13.024 35.872-3.952 15.872 12.416 30.464 25.744 43.328 37.52 3.776 3.456 7.376 6.752 10.848 9.856l124.48 114.128c44.656 41.024 90.832 83.44 136.592 124.72 3.92 3.536 10.96 6.288 16.384 6.416 16.624 0.4 33.648 0.256 50.112 0.128 18.080-0.144 36.784-0.288 55.264 0.256 11.952 0.352 25.568 5.872 33.904 13.744 25.44 24.144 50.688 49.216 75.104 73.472 10.688 10.608 21.376 21.232 32.112 31.808 6.272 6.192 19.344 19.104 12.016 38.512z" />
24
+ <glyph unicode="&#xe902;" glyph-name="write" d="M910.284 341.333c-31.445 0-56.889-25.472-56.889-56.889v-142.222c0-15.708-12.75-28.444-28.444-28.444h-625.888c-15.723 0-28.444 12.736-28.444 28.444v625.778c0 15.708 12.722 28.444 28.444 28.444h142.222c31.445 0 56.917 25.472 56.917 56.889s-25.474 56.889-56.917 56.889h-227.556c-31.445 0-56.917-25.472-56.917-56.889v-796.444c0-31.417 25.472-56.889 56.917-56.889h796.555c31.445 0 56.889 25.472 56.889 56.889v227.556c0 31.417-25.444 56.889-56.889 56.889zM749.173 773.541l81.305-81.319-338.388-350.889h-93.888v93.876l350.971 338.332zM749.895 910.222c-14.556 0-29.060-5.541-40.171-16.626l-425.328-410.041v-256h256.055l410.112 425.25c22.167 22.167 22.167 58.098 0 80.263l-160.556 160.528c-11.056 11.084-25.611 16.626-40.112 16.626v0z" />
25
+ <glyph unicode="&#xe903;" glyph-name="chevron-right" d="M469.146 741.581c21.402-20.89 230.502-240.384 230.502-240.384 11.418-11.213 17.152-25.805 17.152-40.397s-5.734-29.184-17.152-40.294c0 0-209.101-219.597-230.502-240.384-21.402-20.89-59.904-22.323-82.688 0-22.835 22.221-24.627 53.299 0 80.589l191.846 200.090-191.846 200.090c-24.627 27.29-22.835 58.419 0 80.691 22.784 22.323 61.286 20.941 82.688 0z" />
26
+ <glyph unicode="&#xe90c;" glyph-name="monitor" d="M960 192c0 0-264 0-320 0s64-192 64-192c0-35.328-28.672-64-64-64h-256c-35.328 0-64 28.672-64 64 0 0 121.984 192 64 192s-320 0-320 0c-35.328 0-64 28.672-64 64v640c0 35.328 28.672 64 64 64h896c35.328 0 64-28.672 64-64v-640c0-35.328-28.672-64-64-64zM512 224c35.328 0 64 28.672 64 64s-28.672 64-64 64-64-28.672-64-64 28.672-64 64-64zM960 832c0 35.328-28.672 64-64 64h-768c-35.328 0-64-28.672-64-64v-384c0-35.328 28.672-64 64-64h768c35.328 0 64 28.672 64 64v384z" />
27
+ <glyph unicode="&#xea7e;" glyph-name="new-tab" d="M192 891.733v-768h768v768h-768zM896 187.733h-640v640h640v-640zM128 59.733v672l-64 64v-800h800l-64 64h-672zM352 699.733l160-160-192-192 96-96 192 192 160-160v416z" />
28
+ <glyph unicode="&#xf02d;" glyph-name="alert" d="M1005.854 155.486l-438.286 767c-11.395 19.941-32.601 32.247-55.568 32.247s-44.173-12.306-55.567-32.247l-438.286-767c-11.319-19.809-11.238-44.144 0.213-63.876s32.539-31.877 55.354-31.877h876.572c22.814 0 43.903 12.145 55.354 31.877s11.533 44.067 0.214 63.876zM576 187.733h-128v128h128v-128zM576 379.733h-128v256h128v-256z" />
29
+ </font></defs></svg>
assets/fonts/icomoon.woff ADDED
Binary file
assets/fonts/selection.json ADDED
@@ -0,0 +1,590 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "IcoMoonType": "selection",
3
+ "icons": [
4
+ {
5
+ "icon": {
6
+ "paths": [
7
+ "M469.146 231.219c21.402 20.89 230.502 240.384 230.502 240.384 11.418 11.213 17.152 25.805 17.152 40.397s-5.734 29.184-17.152 40.294c0 0-209.101 219.597-230.502 240.384-21.402 20.89-59.904 22.323-82.688 0-22.835-22.221-24.627-53.299 0-80.589l191.846-200.090-191.846-200.090c-24.627-27.29-22.835-58.419 0-80.691 22.784-22.323 61.286-20.941 82.688 0z"
8
+ ],
9
+ "attrs": [],
10
+ "isMulticolor": false,
11
+ "isMulticolor2": false,
12
+ "tags": [
13
+ "chevron-right"
14
+ ],
15
+ "grid": 20
16
+ },
17
+ "attrs": [],
18
+ "properties": {
19
+ "id": 36,
20
+ "order": 30,
21
+ "prevSize": 15,
22
+ "code": 59651,
23
+ "name": "chevron-right"
24
+ },
25
+ "setIdx": 0,
26
+ "setId": 13,
27
+ "iconIdx": 35
28
+ },
29
+ {
30
+ "icon": {
31
+ "paths": [
32
+ "M819.2 307.2h-640v-25.6l563.2-45.056v45.056h76.8v-76.8c0-56.32-45.619-95.846-101.325-87.91l-514.099 73.421c-55.757 7.987-101.376 60.57-101.376 116.89v512c0 56.525 45.824 102.4 102.4 102.4h614.4c56.525 0 102.4-45.875 102.4-102.4v-409.6c0-56.525-45.875-102.4-102.4-102.4zM742.4 665.907c-42.394 0-76.8-34.406-76.8-76.8s34.406-76.8 76.8-76.8 76.8 34.406 76.8 76.8-34.406 76.8-76.8 76.8z"
33
+ ],
34
+ "attrs": [
35
+ {}
36
+ ],
37
+ "isMulticolor": false,
38
+ "isMulticolor2": false,
39
+ "tags": [
40
+ "wallet"
41
+ ],
42
+ "grid": 20
43
+ },
44
+ "attrs": [
45
+ {}
46
+ ],
47
+ "properties": {
48
+ "order": 1,
49
+ "id": 0,
50
+ "prevSize": 15,
51
+ "code": 59615,
52
+ "name": "wallet"
53
+ },
54
+ "setIdx": 3,
55
+ "setId": 9,
56
+ "iconIdx": 0
57
+ },
58
+ {
59
+ "icon": {
60
+ "paths": [
61
+ "M590.24 570.96l-74.496 68.304c-2.32 2.096-4.736 4.288-7.216 6.576-9.568 52.832-55.904 93.008-111.44 93.008-62.432 0-113.248-50.8-113.248-113.248 0-57.552 43.152-105.184 98.768-112.304 1.072-1.2 2.128-2.352 3.152-3.504l29.584-33.2 0.688 0.224c13.040-14.224 28.032-30.576 39.632-43.232-18.528-5.648-38.208-8.704-58.56-8.704-110.688 0-200.72 90.032-200.72 200.72s90.032 200.72 200.72 200.72c110.688 0 200.72-90.032 200.72-200.72-0.016-18.944-2.656-37.264-7.584-54.64z",
62
+ "M736.944 436.56c-22.416 20.4-44.768 40.88-66.848 61.152 18.272 38.848 28.48 82.208 28.48 127.888 0 166.24-135.248 301.488-301.488 301.488s-301.488-135.264-301.488-301.488 135.248-301.488 301.488-301.488c47.072 0 91.664 10.848 131.392 30.16 20.192-22.032 40.624-44.32 60.944-66.656-56.752-32.432-122.416-50.976-192.336-50.976-214.464 0-388.96 174.496-388.96 388.96s174.496 388.96 388.96 388.96 388.96-174.496 388.96-388.96c0.016-68.576-17.824-133.056-49.104-189.040z",
63
+ "M1013.696 193.68c-1.712-4.496-4.128-8.32-7.184-11.376-8.208-8.208-19.008-9.344-29.44-9.344-15.12 0-30.224-0.096-45.344-0.208-23.36-0.16-47.52-0.32-71.312-0.080-1.6 0.016-2.64-0.080-3.264-0.176l-1.28-3.056-3.056-1.28c-0.096-0.64-0.192-1.664-0.176-3.264 0.24-23.792 0.064-47.952-0.080-71.328-0.096-15.104-0.208-30.224-0.208-45.344 0-10.432-1.136-21.232-9.344-29.44-3.056-3.056-6.88-5.472-11.392-7.184-19.376-7.328-32.304 5.76-38.528 12.048-10.56 10.736-21.184 21.408-31.792 32.112-24.256 24.416-49.328 49.664-73.488 75.12-7.856 8.32-13.376 21.936-13.728 33.888-0.544 18.48-0.4 37.168-0.256 55.264 0.128 16.464 0.272 33.472-0.128 50.112-0.128 5.408-2.88 12.448-6.416 16.368-41.28 45.776-83.696 91.952-124.72 136.592l-33.776 36.8c-18.16 19.824-61.008 66.56-75.44 82.256l-0.128-0.048-4.944 5.552c-3.232 3.616-6.752 7.488-10.48 11.584-11.52 12.64-24.592 26.96-36.736 42.512-8.752 11.232-4.048 27.904 5.568 37.52 0.352 0.352 0.704 0.688 1.056 1.008 9.136 8.272 24.256 13.024 35.872 3.952 15.872-12.416 30.464-25.744 43.328-37.52 3.776-3.456 7.376-6.752 10.848-9.856l124.48-114.128c44.656-41.024 90.832-83.44 136.592-124.72 3.92-3.536 10.96-6.288 16.384-6.416 16.624-0.4 33.648-0.256 50.112-0.128 18.080 0.144 36.784 0.288 55.264-0.256 11.952-0.352 25.568-5.872 33.904-13.744 25.44-24.144 50.688-49.216 75.104-73.472 10.688-10.608 21.376-21.232 32.112-31.808 6.272-6.192 19.344-19.104 12.016-38.512z"
64
+ ],
65
+ "attrs": [
66
+ {
67
+ "fill": "rgb(59, 70, 82)"
68
+ },
69
+ {
70
+ "fill": "rgb(59, 70, 82)"
71
+ },
72
+ {
73
+ "fill": "rgb(59, 70, 82)"
74
+ }
75
+ ],
76
+ "isMulticolor": false,
77
+ "isMulticolor2": false,
78
+ "grid": 0,
79
+ "tags": [
80
+ "1-66"
81
+ ]
82
+ },
83
+ "attrs": [
84
+ {
85
+ "fill": "rgb(59, 70, 82)"
86
+ },
87
+ {
88
+ "fill": "rgb(59, 70, 82)"
89
+ },
90
+ {
91
+ "fill": "rgb(59, 70, 82)"
92
+ }
93
+ ],
94
+ "properties": {
95
+ "order": 27,
96
+ "id": 0,
97
+ "name": "1-66",
98
+ "prevSize": 15,
99
+ "code": 59649
100
+ },
101
+ "setIdx": 1,
102
+ "setId": 12,
103
+ "iconIdx": 0
104
+ },
105
+ {
106
+ "icon": {
107
+ "paths": [
108
+ "M512 64q95.667 0 182.5 37.167t149.667 100 100 149.667 37.167 182.5-37.167 182.5-100 149.667-149.667 100-182.5 37.167-182.5-37.167-149.667-100-100-149.667-37.167-182.5 37.167-182.5 100-149.667 149.667-100 182.5-37.167zM512 149.333q-78 0-149.167 30.5t-122.5 81.833-81.833 122.5-30.5 149.167 30.5 149.167 81.833 122.5 122.5 81.833 149.167 30.5 149.167-30.5 122.5-81.833 81.833-122.5 30.5-149.167-30.5-149.167-81.833-122.5-122.5-81.833-149.167-30.5zM512 320q17.667 0 30.167 12.5t12.5 30.167v128h128q17.667 0 30.167 12.5t12.5 30.167-12.5 30.167-30.167 12.5h-128v128q0 17.667-12.5 30.167t-30.167 12.5-30.167-12.5-12.5-30.167v-128h-128q-17.667 0-30.167-12.5t-12.5-30.167 12.5-30.167 30.167-12.5h128v-128q0-17.667 12.5-30.167t30.167-12.5z"
109
+ ],
110
+ "isMulticolor": false,
111
+ "isMulticolor2": false,
112
+ "tags": [
113
+ "circle-plus"
114
+ ],
115
+ "defaultCode": 57408,
116
+ "grid": 0,
117
+ "attrs": []
118
+ },
119
+ "attrs": [],
120
+ "properties": {
121
+ "id": 1,
122
+ "order": 7,
123
+ "ligatures": "",
124
+ "prevSize": 15,
125
+ "code": 57408,
126
+ "name": "circle-plus"
127
+ },
128
+ "setIdx": 6,
129
+ "setId": 4,
130
+ "iconIdx": 0
131
+ },
132
+ {
133
+ "icon": {
134
+ "paths": [
135
+ "M512 64q95.667 0 182.5 37.167t149.667 100 100 149.667 37.167 182.5-37.167 182.5-100 149.667-149.667 100-182.5 37.167-182.5-37.167-149.667-100-100-149.667-37.167-182.5 37.167-182.5 100-149.667 149.667-100 182.5-37.167zM512 149.333q-78 0-149.167 30.5t-122.5 81.833-81.833 122.5-30.5 149.167 30.5 149.167 81.833 122.5 122.5 81.833 149.167 30.5 149.167-30.5 122.5-81.833 81.833-122.5 30.5-149.167-30.5-149.167-81.833-122.5-122.5-81.833-149.167-30.5zM341.333 490.666h341.333q17.667 0 30.167 12.5t12.5 30.167-12.5 30.167-30.167 12.5h-341.333q-17.667 0-30.167-12.5t-12.5-30.167 12.5-30.167 30.167-12.5z"
136
+ ],
137
+ "isMulticolor": false,
138
+ "isMulticolor2": false,
139
+ "tags": [
140
+ "circle-minus"
141
+ ],
142
+ "defaultCode": 57409,
143
+ "grid": 0,
144
+ "attrs": []
145
+ },
146
+ "attrs": [],
147
+ "properties": {
148
+ "id": 2,
149
+ "order": 8,
150
+ "ligatures": "",
151
+ "prevSize": 15,
152
+ "code": 57409,
153
+ "name": "circle-minus"
154
+ },
155
+ "setIdx": 6,
156
+ "setId": 4,
157
+ "iconIdx": 1
158
+ },
159
+ {
160
+ "icon": {
161
+ "paths": [
162
+ "M234.666 277.334v149.334l-64-0.002c-47.146 0-85.334 38.186-85.334 85.334v426.666c0 47.146 38.186 85.334 85.334 85.334h682.666c47.146 0 85.334-38.186 85.334-85.334v-426.666c0-47.146-38.186-85.334-85.334-85.334h-64v-149.334c0-153.174-124.16-277.334-277.334-277.334-153.172 0.002-277.332 124.162-277.332 277.336zM341.334 426.666v-149.334c0-94.294 76.374-170.666 170.666-170.666s170.666 76.374 170.666 170.666v149.334h-341.332zM426.666 661.334c0-47.146 38.186-85.334 85.334-85.334s85.334 38.186 85.334 85.334c0 30.080-15.574 56.534-39.040 71.68 0 0 8.342 50.346 17.706 109.654 0 17.706-14.294 32-32 32h-64c-17.706 0-32-14.294-32-32l17.706-109.654c-23.466-15.148-39.040-41.6-39.040-71.68z"
163
+ ],
164
+ "isMulticolor": false,
165
+ "isMulticolor2": false,
166
+ "tags": [
167
+ "locked"
168
+ ],
169
+ "defaultCode": 58880,
170
+ "grid": 0,
171
+ "attrs": []
172
+ },
173
+ "attrs": [],
174
+ "properties": {
175
+ "id": 3,
176
+ "order": 19,
177
+ "ligatures": "",
178
+ "prevSize": 15,
179
+ "code": 58880,
180
+ "name": "locked"
181
+ },
182
+ "setIdx": 6,
183
+ "setId": 4,
184
+ "iconIdx": 2
185
+ },
186
+ {
187
+ "icon": {
188
+ "paths": [
189
+ "M448 304c0-26.4 21.6-48 48-48h32c26.4 0 48 21.6 48 48v32c0 26.4-21.6 48-48 48h-32c-26.4 0-48-21.6-48-48v-32zM640 768h-256v-64h64v-192h-64v-64h192v256h64zM512 0c-282.77 0-512 229.23-512 512s229.23 512 512 512 512-229.23 512-512-229.23-512-512-512zM512 928c-229.75 0-416-186.25-416-416s186.25-416 416-416 416 186.25 416 416-186.25 416-416 416z"
190
+ ],
191
+ "isMulticolor": false,
192
+ "isMulticolor2": false,
193
+ "tags": [
194
+ "info"
195
+ ],
196
+ "defaultCode": 58881,
197
+ "grid": 0,
198
+ "attrs": []
199
+ },
200
+ "attrs": [],
201
+ "properties": {
202
+ "id": 4,
203
+ "order": 18,
204
+ "ligatures": "",
205
+ "prevSize": 15,
206
+ "code": 58881,
207
+ "name": "info"
208
+ },
209
+ "setIdx": 6,
210
+ "setId": 4,
211
+ "iconIdx": 3
212
+ },
213
+ {
214
+ "icon": {
215
+ "paths": [
216
+ "M512 1024c-282.75 0-512-229.218-512-512 0-282.75 229.25-512 512-512s512 229.25 512 512c0 282.782-229.25 512-512 512zM512 128c-212.062 0-384 171.938-384 384s171.938 384 384 384 384-171.938 384-384-171.938-384-384-384zM512 256c-106.062 0-192 85.968-192 192h128c0-35.344 28.624-64 64-64s64 28.656 64 64-28.624 64-64 64c-2.45 0-10.216 0-32 0-17.688 0-32 14.344-32 32v96h128v-11.75c74.376-26.438 128-96.782 128-180.25 0-106.032-85.938-192-192-192zM512 704h-64v64h128v-64z"
217
+ ],
218
+ "isMulticolor": false,
219
+ "isMulticolor2": false,
220
+ "tags": [
221
+ "question"
222
+ ],
223
+ "defaultCode": 58882,
224
+ "grid": 0,
225
+ "attrs": []
226
+ },
227
+ "attrs": [],
228
+ "properties": {
229
+ "id": 5,
230
+ "order": 16,
231
+ "ligatures": "",
232
+ "prevSize": 15,
233
+ "code": 58882,
234
+ "name": "question"
235
+ },
236
+ "setIdx": 6,
237
+ "setId": 4,
238
+ "iconIdx": 4
239
+ },
240
+ {
241
+ "icon": {
242
+ "paths": [
243
+ "M341.334 789.334v64.214c0 29.866 12.374 56.982 32.214 76.374l62.72 62.72c41.814 41.814 109.654 41.814 151.466 0l62.72-62.72c19.84-19.392 32.214-46.506 32.214-76.374l-0.002-42.882h-189.866c-24.746 0-44.8-19.2-44.8-42.666s20.032-42.666 44.8-42.666h195.414c29.226-164.48 165.12-232.748 165.12-393.174 0-183.446-152.748-332.16-341.334-332.16s-341.334 148.714-341.334 332.16c0 181.142 170.668 245.142 170.668 457.174zM568.534 192c-20.054-3.626-35.2-21.12-35.2-42.026 0-23.446 19.2-43.308 42.666-43.308 33.92 0 75.094 24.106 109.654 58.24 35.2 34.988 61.012 81.728 61.012 112.428 0 23.466-19.2 42.666-42.666 42.666-20.906 0-38.4-15.146-42.048-35.2-10.666-42.88-47.318-82.134-93.418-92.8z"
244
+ ],
245
+ "isMulticolor": false,
246
+ "isMulticolor2": false,
247
+ "tags": [
248
+ "lamp"
249
+ ],
250
+ "defaultCode": 58883,
251
+ "grid": 0,
252
+ "attrs": []
253
+ },
254
+ "attrs": [],
255
+ "properties": {
256
+ "id": 6,
257
+ "order": 17,
258
+ "ligatures": "",
259
+ "prevSize": 15,
260
+ "code": 58883,
261
+ "name": "lamp"
262
+ },
263
+ "setIdx": 6,
264
+ "setId": 4,
265
+ "iconIdx": 5
266
+ },
267
+ {
268
+ "icon": {
269
+ "paths": [
270
+ "M512 196.33c-21.334-82.986-129.706-132.266-213.334-132.266-164.906 0-298.666 128-298.666 298.666 0 320 304.214 405.334 469.334 597.334 1.472 2.134 3.2 3.862 5.12 5.76 20.886 20.714 54.614 20.714 75.498 0 1.942-1.898 3.2-3.626 4.714-5.76 165.334-192.426 469.334-276.032 469.334-597.334 0-170.666-133.76-298.666-298.666-298.666-83.628 0-192 49.28-213.334 132.266zM739.2 256.064c-20.054-3.626-35.2-21.12-35.2-42.026 0-23.466 19.2-43.306 42.666-43.306 33.92 0 75.094 24.106 109.654 58.24 35.2 34.986 61.014 81.706 61.014 112.426 0 23.466-19.2 42.666-42.666 42.666-20.906 0-38.4-15.146-42.048-35.2-10.668-42.88-47.318-82.134-93.42-92.8z"
271
+ ],
272
+ "isMulticolor": false,
273
+ "isMulticolor2": false,
274
+ "tags": [
275
+ "heart"
276
+ ],
277
+ "defaultCode": 58884,
278
+ "grid": 0,
279
+ "attrs": []
280
+ },
281
+ "attrs": [],
282
+ "properties": {
283
+ "id": 7,
284
+ "order": 14,
285
+ "ligatures": "",
286
+ "prevSize": 15,
287
+ "code": 58884,
288
+ "name": "heart"
289
+ },
290
+ "setIdx": 6,
291
+ "setId": 4,
292
+ "iconIdx": 6
293
+ },
294
+ {
295
+ "icon": {
296
+ "paths": [
297
+ "M512 303.096c-32.964 0-59.686-26.724-59.686-59.686v-179.060c0-32.964 26.722-59.686 59.686-59.686 32.962 0 59.688 26.722 59.688 59.686v179.060c0 32.964-26.726 59.686-59.688 59.686zM512 996.956c-20.602 0-37.304-16.702-37.304-37.304v-179.060c0-20.602 16.702-37.304 37.304-37.304 20.604 0 37.304 16.704 37.304 37.304v179.060c0 20.602-16.7 37.304-37.304 37.304zM377.756 335.36c-19.34 0-38.146-10.034-48.512-27.988l-89.53-155.070c-15.452-26.764-6.282-60.986 20.482-76.438 26.762-15.45 60.986-6.284 76.438 20.482l89.53 155.072c15.452 26.764 6.282 60.986-20.482 76.438-8.81 5.084-18.432 7.504-27.926 7.504zM735.856 933.256c-11.602 0-22.886-6.022-29.108-16.792l-89.53-155.070c-9.27-16.056-3.77-36.592 12.29-45.864 16.056-9.264 36.59-3.77 45.864 12.292l89.532 155.068c9.27 16.058 3.768 36.592-12.292 45.864-5.286 3.048-11.060 4.502-16.756 4.502zM279.344 429.94c-8.86 0-17.838-2.256-26.064-7.006l-155.072-89.53c-24.978-14.422-33.538-46.362-19.116-71.342 14.42-24.978 46.364-33.538 71.342-19.116l155.070 89.53c24.98 14.422 33.538 46.362 19.116 71.34-9.668 16.756-27.226 26.124-45.276 26.124zM899.648 765.674c-5.064 0-10.196-1.29-14.894-4.004l-155.068-89.53c-14.274-8.24-19.164-26.494-10.924-40.768 8.242-14.276 26.496-19.166 40.766-10.924l155.070 89.532c14.274 8.24 19.164 26.492 10.924 40.766-5.53 9.574-15.562 14.928-25.874 14.928zM243.41 560.496h-179.060c-26.784 0-48.496-21.712-48.496-48.496s21.712-48.496 48.496-48.496h179.060c26.784 0 48.496 21.712 48.496 48.496s-21.712 48.496-48.496 48.496zM959.65 541.844c-0.002 0 0 0 0 0h-179.060c-16.482-0.002-29.844-13.364-29.844-29.844s13.364-29.844 29.844-29.844c0.002 0 0 0 0 0h179.060c16.482 0 29.844 13.362 29.844 29.844 0 16.48-13.364 29.844-29.844 29.844zM124.366 780.598c-15.472 0-30.518-8.028-38.81-22.39-12.362-21.41-5.026-48.79 16.384-61.148l155.072-89.532c21.41-12.368 48.79-5.028 61.15 16.384 12.362 21.412 5.026 48.79-16.384 61.15l-155.072 89.53c-7.050 4.070-14.748 6.006-22.34 6.006zM744.632 407.552c-10.314 0-20.346-5.352-25.874-14.926-8.24-14.274-3.35-32.526 10.924-40.768l155.070-89.528c14.272-8.236 32.526-3.352 40.768 10.922 8.24 14.274 3.35 32.526-10.924 40.768l-155.070 89.528c-4.7 2.714-9.83 4.004-14.894 4.004zM288.136 940.716c-6.962 0-14.016-1.774-20.48-5.504-19.626-11.332-26.35-36.428-15.020-56.054l89.53-155.070c11.33-19.628 36.426-26.352 56.054-15.022 19.626 11.332 26.35 36.43 15.020 56.054l-89.53 155.072c-7.598 13.166-21.392 20.524-35.574 20.524zM646.266 309.242c-5.062 0-10.196-1.29-14.894-4.002-14.274-8.242-19.164-26.494-10.924-40.766l89.534-155.070c8.24-14.274 26.492-19.166 40.766-10.922 14.274 8.242 19.164 26.494 10.924 40.766l-89.532 155.070c-5.53 9.57-15.56 14.924-25.874 14.924z"
298
+ ],
299
+ "isMulticolor": false,
300
+ "isMulticolor2": false,
301
+ "tags": [
302
+ "spinner"
303
+ ],
304
+ "defaultCode": 58885,
305
+ "grid": 0,
306
+ "attrs": []
307
+ },
308
+ "attrs": [],
309
+ "properties": {
310
+ "id": 8,
311
+ "order": 15,
312
+ "ligatures": "",
313
+ "prevSize": 15,
314
+ "code": 58885,
315
+ "name": "spinner"
316
+ },
317
+ "setIdx": 6,
318
+ "setId": 4,
319
+ "iconIdx": 7
320
+ },
321
+ {
322
+ "icon": {
323
+ "paths": [
324
+ "M505.754 28.211c-260.147 3.482-468.224 217.19-464.742 477.338 3.482 259.994 217.19 468.122 477.338 464.64 260.045-3.482 468.173-217.19 464.64-477.338-3.43-260.045-217.139-468.122-477.235-464.64zM504.371 785.92h-2.611c-40.038-1.178-68.301-30.72-67.174-70.195 1.126-38.758 30.054-66.97 68.813-66.97l2.355 0.051c41.165 1.229 69.12 30.464 67.891 71.066-1.126 38.861-29.645 66.048-69.274 66.048zM672.87 451.482c-9.472 13.363-30.157 30.003-56.269 50.33l-28.774 19.866c-15.77 12.288-25.293 23.808-28.826 35.123-2.867 9.011-4.198 11.315-4.454 29.491l-0.051 4.659h-109.722l0.307-9.318c1.331-38.195 2.304-60.621 18.125-79.206 24.832-29.133 79.616-64.41 81.92-65.894 7.834-5.939 14.438-12.646 19.405-19.814 11.52-15.872 16.589-28.416 16.589-40.653 0-17.050-5.069-32.819-15.053-46.848-9.626-13.568-27.904-20.429-54.323-20.429-26.214 0-44.134 8.346-54.886 25.395-11.11 17.562-16.64 35.942-16.64 54.784v4.71h-113.152l0.205-4.915c2.918-69.325 27.648-119.194 73.523-148.326 28.774-18.586 64.614-27.955 106.394-27.955 54.733 0 101.018 13.312 137.37 39.526 36.864 26.573 55.552 66.406 55.552 118.323 0 29.082-9.165 56.371-27.238 81.152z"
325
+ ],
326
+ "isMulticolor": false,
327
+ "isMulticolor2": false,
328
+ "tags": [
329
+ "help"
330
+ ],
331
+ "defaultCode": 58886,
332
+ "grid": 0,
333
+ "attrs": []
334
+ },
335
+ "attrs": [],
336
+ "properties": {
337
+ "id": 9,
338
+ "order": 12,
339
+ "ligatures": "",
340
+ "prevSize": 15,
341
+ "code": 58886,
342
+ "name": "help"
343
+ },
344
+ "setIdx": 6,
345
+ "setId": 4,
346
+ "iconIdx": 8
347
+ },
348
+ {
349
+ "icon": {
350
+ "paths": [
351
+ "M512 0c-66.862 1.278-133.516 15.784-194.462 42.576-61 26.704-116.258 65.462-161.92 113.042-45.696 47.552-81.82 103.944-105.652 164.984-23.924 61.004-35.352 126.596-33.966 191.398 1.282 64.81 15.374 129.332 41.356 188.334 25.896 59.048 63.47 112.542 109.576 156.734 46.082 44.224 100.708 79.16 159.798 102.186 59.062 23.114 122.52 34.128 185.27 32.746 62.76-1.286 125.148-14.964 182.206-40.134 57.1-25.088 108.828-61.476 151.548-106.11 42.754-44.61 76.504-97.472 98.72-154.614 22.304-57.118 32.902-118.446 31.526-179.142-1.29-60.708-14.554-120.962-38.914-176.076-24.282-55.15-59.48-105.116-102.644-146.366-43.14-41.282-94.236-73.844-149.43-95.254-33.458-13.034-68.4-21.88-103.798-26.542 0.072-1.246 0.12-2.498 0.12-3.762 0-35.346-28.652-64-64-64-1.796 0-3.572 0.094-5.332 0.238v-0.238zM681.948 101.694c53.202 23.472 101.4 57.484 141.18 99.178 39.81 41.67 71.186 91 91.79 144.244 20.678 53.228 30.452 110.29 29.082 166.884-1.298 56.604-13.736 112.596-36.474 163.82-22.666 51.25-55.49 97.684-95.712 135.994-40.198 38.338-87.764 68.528-139.058 88.322-51.284 19.87-106.214 29.228-160.756 27.864-54.552-1.302-108.412-13.328-157.69-35.254-49.3-21.858-93.97-53.498-130.81-92.246-36.868-38.73-65.87-84.53-84.856-133.874-19.060-49.338-28.006-102.136-26.644-154.626 1.306-52.5 12.918-104.228 34.034-151.562 21.050-47.352 51.502-90.256 88.782-125.624 37.258-35.396 81.294-63.21 128.688-81.39 47.392-18.248 98.058-26.782 148.496-25.424v-0.238c1.76 0.144 3.536 0.238 5.332 0.238 33.012 0 60.174-24.992 63.624-57.086 34.822 6.224 68.818 16.53 100.992 30.78z"
352
+ ],
353
+ "isMulticolor": false,
354
+ "isMulticolor2": false,
355
+ "tags": [
356
+ "spinner2"
357
+ ],
358
+ "defaultCode": 58887,
359
+ "grid": 0,
360
+ "attrs": []
361
+ },
362
+ "attrs": [],
363
+ "properties": {
364
+ "id": 10,
365
+ "order": 13,
366
+ "ligatures": "",
367
+ "prevSize": 15,
368
+ "code": 58887,
369
+ "name": "spinner2"
370
+ },
371
+ "setIdx": 6,
372
+ "setId": 4,
373
+ "iconIdx": 9
374
+ },
375
+ {
376
+ "icon": {
377
+ "paths": [
378
+ "M939.969 537.405c-12.377 62.534-78.819 313.975-341.985 313.975-313.975 0-457.282-340.031-457.282-340.031 104.875-63.837 282.707-338.728 450.768-338.728s227.338 207.796 227.338 207.796l-14.331 22.799c0 0-55.369-69.7-182.392-69.7s-214.31 153.079-267.725 200.631c0 0 133.537 209.099 305.506 209.099 92.499 0 192.163-80.122 248.183-200.631-97.71 13.679-226.036 26.056-316.58 14.331 0 0-4.56-3.908-6.514-8.468-2.606-5.863-3.257-11.725-3.257-11.725 179.786 0 334.168-42.341 439.043-81.425-28.662-256.651-245.578-455.328-508.743-455.328-282.707 0-512 229.293-512 512s229.293 512 512 512c278.799 0 505.486-222.779 512-500.275-19.542 3.257-48.855 8.468-84.031 13.679z"
379
+ ],
380
+ "width": 1023,
381
+ "isMulticolor": false,
382
+ "isMulticolor2": false,
383
+ "tags": [
384
+ "give-icon-full-circle-white"
385
+ ],
386
+ "defaultCode": 59392,
387
+ "grid": 0,
388
+ "attrs": []
389
+ },
390
+ "attrs": [],
391
+ "properties": {
392
+ "id": 11,
393
+ "order": 11,
394
+ "ligatures": "",
395
+ "prevSize": 15,
396
+ "code": 59392,
397
+ "name": "give-icon-full-circle-white"
398
+ },
399
+ "setIdx": 6,
400
+ "setId": 4,
401
+ "iconIdx": 10
402
+ },
403
+ {
404
+ "icon": {
405
+ "paths": [
406
+ "M192 64v768h768v-768h-768zM896 768h-640v-640h640v640zM128 896v-672l-64-64v800h800l-64-64h-672zM352 256l160 160-192 192 96 96 192-192 160 160v-416z"
407
+ ],
408
+ "isMulticolor": false,
409
+ "isMulticolor2": false,
410
+ "tags": [
411
+ "new-tab"
412
+ ],
413
+ "defaultCode": 60030,
414
+ "grid": 0,
415
+ "attrs": []
416
+ },
417
+ "attrs": [],
418
+ "properties": {
419
+ "id": 12,
420
+ "order": 10,
421
+ "ligatures": "",
422
+ "prevSize": 15,
423
+ "code": 60030,
424
+ "name": "new-tab"
425
+ },
426
+ "setIdx": 6,
427
+ "setId": 4,
428
+ "iconIdx": 11
429
+ },
430
+ {
431
+ "icon": {
432
+ "paths": [
433
+ "M1005.854 800.247l-438.286-767c-11.395-19.941-32.601-32.247-55.568-32.247s-44.173 12.306-55.567 32.247l-438.286 767c-11.319 19.809-11.238 44.144 0.213 63.876s32.539 31.877 55.354 31.877h876.572c22.814 0 43.903-12.145 55.354-31.877s11.533-44.067 0.214-63.876zM576 768h-128v-128h128v128zM576 576h-128v-256h128v256z"
434
+ ],
435
+ "isMulticolor": false,
436
+ "isMulticolor2": false,
437
+ "tags": [
438
+ "alert"
439
+ ],
440
+ "defaultCode": 61485,
441
+ "grid": 0,
442
+ "attrs": []
443
+ },
444
+ "attrs": [],
445
+ "properties": {
446
+ "id": 13,
447
+ "order": 9,
448
+ "ligatures": "",
449
+ "prevSize": 15,
450
+ "code": 61485,
451
+ "name": "alert"
452
+ },
453
+ "setIdx": 6,
454
+ "setId": 4,
455
+ "iconIdx": 12
456
+ },
457
+ {
458
+ "icon": {
459
+ "paths": [
460
+ "M804.571 531.429v181.714q0 68-48.286 116.286t-116.286 48.286h-475.429q-68 0-116.286-48.286t-48.286-116.286v-475.429q0-68 48.286-116.286t116.286-48.286h475.429q36 0 66.857 14.286 8.571 4 10.286 13.143 1.714 9.714-5.143 16.571l-28 28q-5.714 5.714-13.143 5.714-1.714 0-5.143-1.143-13.143-3.429-25.714-3.429h-475.429q-37.714 0-64.571 26.857t-26.857 64.571v475.429q0 37.714 26.857 64.571t64.571 26.857h475.429q37.714 0 64.571-26.857t26.857-64.571v-145.143q0-7.429 5.143-12.571l36.571-36.571q5.714-5.714 13.143-5.714 3.429 0 6.857 1.714 11.429 4.571 11.429 16.571zM936.571 252l-465.143 465.143q-13.714 13.714-32.571 13.714t-32.571-13.714l-245.714-245.714q-13.714-13.714-13.714-32.571t13.714-32.571l62.857-62.857q13.714-13.714 32.571-13.714t32.571 13.714l150.286 150.286 369.714-369.714q13.714-13.714 32.571-13.714t32.571 13.714l62.857 62.857q13.714 13.714 13.714 32.571t-13.714 32.571z"
461
+ ],
462
+ "attrs": [
463
+ {}
464
+ ],
465
+ "width": 950,
466
+ "isMulticolor": false,
467
+ "isMulticolor2": false,
468
+ "tags": [
469
+ "check-square-o"
470
+ ],
471
+ "grid": 14
472
+ },
473
+ "attrs": [
474
+ {}
475
+ ],
476
+ "properties": {
477
+ "order": 1,
478
+ "id": 0,
479
+ "prevSize": 15,
480
+ "code": 59648,
481
+ "name": "check-square-o"
482
+ },
483
+ "setIdx": 2,
484
+ "setId": 11,
485
+ "iconIdx": 0
486
+ },
487
+ {
488
+ "icon": {
489
+ "paths": [
490
+ "M910.284 625.778c-31.445 0-56.889 25.472-56.889 56.889v142.222c0 15.708-12.75 28.444-28.444 28.444h-625.888c-15.723 0-28.444-12.736-28.444-28.444v-625.778c0-15.708 12.722-28.444 28.444-28.444h142.222c31.445 0 56.917-25.472 56.917-56.889s-25.474-56.889-56.917-56.889h-227.556c-31.445 0-56.917 25.472-56.917 56.889v796.444c0 31.417 25.472 56.889 56.917 56.889h796.555c31.445 0 56.889-25.472 56.889-56.889v-227.556c0-31.417-25.444-56.889-56.889-56.889z",
491
+ "M749.173 193.57l81.305 81.319-338.388 350.889h-93.888v-93.876l350.971-338.332zM749.895 56.889c-14.556 0-29.060 5.541-40.171 16.626l-425.328 410.041v256h256.055l410.112-425.25c22.167-22.167 22.167-58.098 0-80.263l-160.556-160.528c-11.056-11.084-25.611-16.626-40.112-16.626v0z"
492
+ ],
493
+ "attrs": [
494
+ {},
495
+ {}
496
+ ],
497
+ "isMulticolor": false,
498
+ "isMulticolor2": false,
499
+ "tags": [
500
+ "write"
501
+ ],
502
+ "grid": 18
503
+ },
504
+ "attrs": [
505
+ {},
506
+ {}
507
+ ],
508
+ "properties": {
509
+ "order": 26,
510
+ "id": 0,
511
+ "prevSize": 36,
512
+ "code": 59650,
513
+ "name": "write"
514
+ },
515
+ "setIdx": 4,
516
+ "setId": 8,
517
+ "iconIdx": 0
518
+ },
519
+ {
520
+ "icon": {
521
+ "paths": [
522
+ "M960 768c0 0-264 0-320 0s64 192 64 192c0 35.328-28.672 64-64 64h-256c-35.328 0-64-28.672-64-64 0 0 121.984-192 64-192s-320 0-320 0c-35.328 0-64-28.672-64-64v-640c0-35.328 28.672-64 64-64h896c35.328 0 64 28.672 64 64v640c0 35.328-28.672 64-64 64zM512 736c35.328 0 64-28.672 64-64s-28.672-64-64-64-64 28.672-64 64 28.672 64 64 64zM960 128c0-35.328-28.672-64-64-64h-768c-35.328 0-64 28.672-64 64v384c0 35.328 28.672 64 64 64h768c35.328 0 64-28.672 64-64v-384z"
523
+ ],
524
+ "attrs": [
525
+ {}
526
+ ],
527
+ "isMulticolor": false,
528
+ "isMulticolor2": false,
529
+ "tags": [
530
+ "monitor",
531
+ "screen",
532
+ "desktop",
533
+ "pc"
534
+ ],
535
+ "grid": 16
536
+ },
537
+ "attrs": [
538
+ {}
539
+ ],
540
+ "properties": {
541
+ "order": 1,
542
+ "id": 1,
543
+ "prevSize": 15,
544
+ "code": 59660,
545
+ "name": "monitor"
546
+ },
547
+ "setIdx": 5,
548
+ "setId": 6,
549
+ "iconIdx": 0
550
+ }
551
+ ],
552
+ "height": 1024,
553
+ "metadata": {
554
+ "name": "icomoon"
555
+ },
556
+ "preferences": {
557
+ "showGlyphs": true,
558
+ "showQuickUse": true,
559
+ "showQuickUse2": true,
560
+ "showSVGs": true,
561
+ "fontPref": {
562
+ "prefix": "icon-",
563
+ "metadata": {
564
+ "fontFamily": "icomoon",
565
+ "majorVersion": 1,
566
+ "minorVersion": 0
567
+ },
568
+ "metrics": {
569
+ "emSize": 1024,
570
+ "baseline": 6.25,
571
+ "whitespace": 50
572
+ },
573
+ "embed": false
574
+ },
575
+ "imagePref": {
576
+ "prefix": "icon-",
577
+ "png": true,
578
+ "useClassSelector": true,
579
+ "color": 0,
580
+ "bgColor": 16777215,
581
+ "classSelector": ".icon",
582
+ "height": 32,
583
+ "columns": 16,
584
+ "margin": 16
585
+ },
586
+ "historySize": 100,
587
+ "showCodes": true,
588
+ "gridSize": 16
589
+ }
590
+ }
assets/images/ach.png ADDED
Binary file
assets/images/admin/getting-started-add-content.png ADDED
Binary file
assets/images/admin/getting-started-add-new-form.png ADDED
Binary file
assets/images/admin/getting-started-display-options.png ADDED
Binary file
assets/images/admin/getting-started-new-form-multi-level.gif ADDED
Binary file
assets/images/amex.png ADDED
Binary file
assets/images/cash.png ADDED
Binary file
assets/images/close.png ADDED
Binary file
assets/images/credit.png ADDED
Binary file
assets/images/dankort.png ADDED
Binary file
assets/images/debit.png ADDED
Binary file
assets/images/diners-club.png ADDED
Binary file
assets/images/discover.png ADDED
Binary file
assets/images/give-ascii-logo.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ `.-::-.` `
2
+ `-/osssssssso:` `:+sso
3
+ ./ossssssssssssso: `ossss`
4
+ -+ssssssssssooosssss+` osss/ ```..` `-/+oo+/-
5
+ `-+sssssssso/-.```..-/+o+ -:-. /osssss. `/+++: .osss/osss+
6
+ `-+ssssssso/. .:` ``-/: +ssssso. `osssss. -ssss/ `ssss-
7
+ `-ossssssso/` ``.:/+sss+ .sssss: -ssssss` .sssss` `ssss:
8
+ `:ossssssss+. ``..-:/+ossssssss: +ssss- .sssss+ +ssss+ .ossso` `
9
+ -sssssssss: .--:::////+++++o+::-.:sssss` :ssss+ -ossss+:-..ooosso+ssso/` /+/.
10
+ .ossssssss/` ``````````` `:+. /sssso -/sssss. :+o+ossssosssssso+/-` +sss-
11
+ `/sssssssso:` .+o: +ssss/ `/++/sssso` :++: ``..-:+++++:` osss/
12
+ -+sssssssso/-` -+os/ ossss: `-oo+. +ssss/ .+so: /++oo/ :ssss:
13
+ -+ssssssssso+:..````.-/osso- osssso/oso:` .ossss+sso- .oosso- `/ssss/
14
+ ./osssssssssssoooosssso:` `+ssssso/` .+sssso:` .+ssss/-.--/osss+.
15
+ .:/ossssssssssss+/-` `-::-` -:/-` `:+osssssoo/-`
16
+ ``.------.` `````
assets/images/give-badge.png ADDED
Binary file
assets/images/give-form-mockup.png ADDED
Binary file
assets/images/give-logo-large-no-tagline.png ADDED
Binary file
assets/images/give-logo-large.png ADDED
Binary file
assets/images/give-logo-photo-mashup.png ADDED
Binary file
assets/images/give-logo-small.png ADDED
Binary file
assets/images/give-logo.png ADDED
Binary file
assets/images/jcb.png ADDED
Binary file
assets/images/maestro.png ADDED
Binary file
assets/images/mastercard.png ADDED
Binary file
assets/images/paypal.png ADDED
Binary file
assets/images/spinner-2x.gif ADDED
Binary file
assets/images/spinner.gif ADDED
Binary file
assets/images/svg/give-icon-full-circle-grey.svg ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ viewBox="100.1 0 400 400" enable-background="new 100.1 0 400 400" xml:space="preserve">
6
+ <g id="Layer_1_1_">
7
+ <circle fill="#66BB6A" cx="-407.3" cy="346.3" r="42.2"/>
8
+ <g>
9
+ <g>
10
+ <path fill="#546E7A" d="M-786.4,133.8v-12.5h4.8c3.8,0,6.6,2.5,6.6,6.4s-2.8,6.4-6.6,6.4h-4.8V133.8z M-777.5,127.5
11
+ c0-2.3-1.3-3.8-3.8-3.8h-2.3v7.9h2.3C-779,131.6-777.5,129.8-777.5,127.5z"/>
12
+ <path fill="#546E7A" d="M-771.6,133.8v-12.5h8.9v2.3h-6.1v2.5h6.1v2.3h-6.1v2.8h6.1v2.3h-8.9V133.8z"/>
13
+ <path fill="#546E7A" d="M-748.5,133.8v-8.7l-3.6,8.7h-1.3l-3.6-8.7v8.7h-2.5v-12.5h3.8l3.1,7.6l3.1-7.6h3.8v12.5H-748.5z"/>
14
+ <path fill="#546E7A" d="M-742.4,127.5c0-3.8,2.8-6.4,6.6-6.4s6.6,2.8,6.6,6.4c0,3.8-2.8,6.4-6.6,6.4
15
+ C-739.8,134.1-742.4,131.3-742.4,127.5z M-732.2,127.5c0-2.3-1.5-4.1-3.8-4.1c-2.3,0-3.8,1.8-3.8,4.1c0,2.3,1.5,4.1,3.8,4.1
16
+ C-733.7,131.6-732.2,129.8-732.2,127.5z"/>
17
+ <path fill="#546E7A" d="M-726.8,127.5c0-3.8,2.8-6.4,6.6-6.4c2.8,0,4.3,1.5,5.3,3.1l-2.3,1c-0.5-1-1.5-1.8-3.1-1.8
18
+ c-2.3,0-3.8,1.8-3.8,4.1c0,2.3,1.5,4.1,3.8,4.1c1.3,0,2.3-0.8,3.1-1.8l2.3,1c-1,1.5-2.5,3.1-5.3,3.1
19
+ C-723.8,134.1-726.8,131.3-726.8,127.5z"/>
20
+ <path fill="#546E7A" d="M-704.7,133.8l-2.5-4.3h-2v4.3h-2.5v-12.5h5.9c2.5,0,4.1,1.8,4.1,4.1c0,2.3-1.3,3.3-2.8,3.8l2.8,4.8h-2.8
21
+ V133.8z M-704.5,125.2c0-1-0.8-1.8-1.8-1.8h-2.8v3.3h2.8C-705.5,127-704.5,126.5-704.5,125.2z"/>
22
+ <path fill="#546E7A" d="M-689.7,133.8l-0.8-2h-5.3l-0.8,2h-3.1l4.8-12.5h3.3l4.8,12.5H-689.7z M-693.3,123.9l-2,5.3h3.8
23
+ L-693.3,123.9z"/>
24
+ <path fill="#546E7A" d="M-682.6,133.8v-10.2h-3.6v-2.3h9.9v2.3h-3.6v10.2H-682.6z"/>
25
+ <path fill="#546E7A" d="M-673.2,133.8v-12.5h2.5v12.5H-673.2z"/>
26
+ <path fill="#546E7A" d="M-667,133.8v-2l5.9-7.9h-5.9v-2.3h9.4v2l-5.9,8.1h6.1v2.3h-9.7V133.8z"/>
27
+ <path fill="#546E7A" d="M-654.1,133.8v-12.5h2.5v12.5H-654.1z"/>
28
+ <path fill="#546E7A" d="M-639.1,133.8l-5.9-8.1v8.1h-2.5v-12.5h2.8l5.9,7.9v-7.9h2.5v12.5H-639.1z"/>
29
+ <path fill="#546E7A" d="M-633.2,127.5c0-4.1,3.1-6.4,6.6-6.4c2.5,0,4.3,1.3,5.1,2.8l-2.3,1.3c-0.5-0.8-1.5-1.5-3.1-1.5
30
+ c-2.3,0-3.8,1.8-3.8,4.1c0,2.3,1.5,4.1,3.8,4.1c1,0,2-0.5,2.5-1v-1.5h-3.3V127h5.9v4.8c-1.3,1.5-3.1,2.3-5.3,2.3
31
+ C-630.2,134.1-633.2,131.6-633.2,127.5z"/>
32
+ <path fill="#546E7A" d="M-612.1,127.5c0-4.1,3.1-6.4,6.6-6.4c2.5,0,4.3,1.3,5.1,2.8l-2.3,1.3c-0.5-0.8-1.5-1.5-3.1-1.5
33
+ c-2.3,0-3.8,1.8-3.8,4.1c0,2.3,1.5,4.1,3.8,4.1c1,0,2-0.5,2.5-1v-1.5h-3.3V127h5.9v4.8c-1.3,1.5-3.1,2.3-5.3,2.3
34
+ C-609,134.1-612.1,131.6-612.1,127.5z"/>
35
+ <path fill="#546E7A" d="M-596.6,133.8v-12.5h8.9v2.3h-6.1v2.5h6.1v2.3h-6.1v2.8h6.1v2.3h-8.9V133.8z"/>
36
+ <path fill="#546E7A" d="M-575.7,133.8l-5.9-8.1v8.1h-2.5v-12.5h2.8l5.9,7.9v-7.9h2.5v12.5H-575.7z"/>
37
+ <path fill="#546E7A" d="M-569.1,133.8v-12.5h8.9v2.3h-6.1v2.5h6.1v2.3h-6.1v2.8h6.1v2.3h-8.9V133.8z"/>
38
+ <path fill="#546E7A" d="M-549.7,133.8l-2.5-4.3h-2v4.3h-2.5v-12.5h5.9c2.5,0,4.1,1.8,4.1,4.1c0,2.3-1.3,3.3-2.8,3.8l2.8,4.8h-2.8
39
+ V133.8z M-549.5,125.2c0-1-0.8-1.8-1.8-1.8h-2.8v3.3h2.8C-550.3,127-549.5,126.5-549.5,125.2z"/>
40
+ <path fill="#546E7A" d="M-543.9,127.5c0-3.8,2.8-6.4,6.6-6.4s6.6,2.8,6.6,6.4c0,3.8-2.8,6.4-6.6,6.4
41
+ C-541.3,134.1-543.9,131.3-543.9,127.5z M-533.7,127.5c0-2.3-1.5-4.1-3.8-4.1s-3.8,1.8-3.8,4.1c0,2.3,1.5,4.1,3.8,4.1
42
+ C-535.2,131.6-533.7,129.8-533.7,127.5z"/>
43
+ <path fill="#546E7A" d="M-528.6,132.1l1.5-2c0.8,1,2.3,1.8,4.1,1.8c1.5,0,2.3-0.8,2.3-1.3c0-2.3-7.1-0.8-7.1-5.3
44
+ c0-2,1.8-3.8,4.8-3.8c2,0,3.6,0.5,4.8,1.8l-1.5,2c-1-1-2.3-1.3-3.6-1.3c-1,0-1.8,0.5-1.8,1.3c0,2,7.1,0.8,7.1,5.3
45
+ c0,2.3-1.5,4.1-5.1,4.1C-525.6,134.1-527.4,133.1-528.6,132.1z"/>
46
+ <path fill="#546E7A" d="M-515.1,133.8v-12.5h2.5v12.5H-515.1z"/>
47
+ <path fill="#546E7A" d="M-505.7,133.8v-10.2h-3.6v-2.3h9.9v2.3h-3.6v10.2H-505.7z"/>
48
+ <path fill="#546E7A" d="M-492.7,133.8v-5.1l-4.8-7.4h3.1l3.1,5.1l3.1-5.1h3.1l-4.8,7.4v5.1H-492.7z"/>
49
+ </g>
50
+ <g>
51
+ <g>
52
+ <path fill="#66BB6A" d="M-485.9,44.3h-1.3l0.3,1.3c2,9.9,0.3,24.7-7.4,33.8c-4.3,5.3-9.9,8.1-16.8,8.1c-10.9,0-15-13-15.5-27.7
53
+ c17.8-4.3,29.8-15.5,29.8-28.5c0-9.4-2.8-24.9-21.4-24.9c-17.6,0-26.5,26.2-28.2,44.5c-8.9-0.3-15.5-4.3-19.6-8.1
54
+ c1.5-6.4,2.3-12.2,2.3-17.6c0-7.4-5.1-10.7-9.9-10.7c-6.9,0-14,6.6-14,19.3c0,7.6,2.8,14,8.7,18.6c-5.1,12-13.7,22.1-16.5,25.4
55
+ c-2.3-4.8-9.7-22.4-12-41.5c2.8-7.6,4.3-14,4.3-17c0-4.8-3.1-7.6-8.1-7.6c-6.9,0-17.8,4.3-18.1,4.6l-0.5,0.3v0.8
56
+ c0,0.3,3.3,15.5,6.6,32.3c-6.4,10.4-17.6,27.7-23.2,27.7c-10.2,0,6.6-52.2-0.8-53.9c-0.3,0-0.5,0-0.8,0.3
57
+ c-3.6,2.3-43.5,24.4-96.7,24.4c0,0,0,1,0.5,2c0.3,0.8,1,1.5,1,1.5c15,1.8,36.4-0.3,52.7-2.5c-9.4,20.1-26,33.3-41.2,33.3
58
+ c-28.8,0-50.9-34.9-50.9-34.9c8.9-7.9,23.4-33.3,44.8-33.3c21.1,0,30.3,11.7,30.3,11.7l2.3-3.8c0,0-9.9-34.6-37.9-34.6
59
+ s-57.8,45.8-75.1,56.5c0,0,23.9,56.5,76.1,56.5c43.8,0,55-42,57-52.2c10.7-1.5,18.1-3.1,18.1-3.1s-2.8,21.4-2.8,30.3
60
+ s9.9,18.3,18.1,18.3c6.9,0,20.9-14.2,31-31.6l0.5,2c5.3,19.6,12,29.8,19.8,29.8c7.9,0,20.9-16.3,29.3-36.9
61
+ c8.4,3.6,18.3,4.6,24.2,4.8c2.3,35.4,31.8,36.4,35.4,36.4c21.9,0,40.5-15.8,40.5-34.4C-470.6,44.5-485.6,44.3-485.9,44.3z
62
+ M-512.6,29.5c0,0-0.3,11.7-13.5,17.6c1.3-15.5,5.1-29.5,7.6-29.5C-515.6,17.8-512.6,22.1-512.6,29.5z"/>
63
+ <path fill="#66BB6A" d="M-665,15.5c0,0.5,0.3,0.8,0.8,1c10.4,1.5,17.3-1.8,17.3-18.6c0-15.8-16.3-3.3-19.3-1
64
+ c-0.3,0.3-0.3,0.5-0.3,1C-663.7,4.1-664.8,13-665,15.5z"/>
65
+ </g>
66
+
67
+ <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-289.5864" y1="373.2379" x2="-282.8842" y2="375.4719" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
68
+ <stop offset="0" style="stop-color:#66BB6A"/>
69
+ <stop offset="1" style="stop-color:#378F43"/>
70
+ </linearGradient>
71
+ <path fill="url(#SVGID_1_)" d="M-623,49.4c-4.1,6.9-10.2,16.3-15.5,22.1c1.3,3.1,2.8,6.9,4.3,9.9c4.8-5.3,9.7-12.2,14-19.3
72
+ L-623,49.4z"/>
73
+
74
+ <linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-269.0577" y1="371.5441" x2="-265.1705" y2="378.3802" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
75
+ <stop offset="0" style="stop-color:#66BB6A"/>
76
+ <stop offset="1" style="stop-color:#378F43"/>
77
+ </linearGradient>
78
+ <path fill="url(#SVGID_2_)" d="M-574.7,54.7c-2-1-3.8-2.5-3.8-2.5c-3.6,7.9-8.4,15.3-12.2,20.1c1.8,2.5,4.8,5.9,7.1,8.4
79
+ c4.6-6.4,9.4-14.8,13-23.7C-570.4,56.7-572.6,56-574.7,54.7z"/>
80
+
81
+ <linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="-248.6416" y1="368.3835" x2="-249.4459" y2="375.5323" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
82
+ <stop offset="0" style="stop-color:#66BB6A"/>
83
+ <stop offset="1" style="stop-color:#378F43"/>
84
+ </linearGradient>
85
+ <path fill="url(#SVGID_3_)" d="M-526.3,59.8c0,0-5.1,1-10.2,1.5s-9.9,0.3-9.9,0.3c0.8,10.2,3.6,17.3,7.4,22.6l18.6-1.5
86
+ C-524.3,77.6-526.1,69-526.3,59.8z"/>
87
+
88
+ <linearGradient id="SVGID_4_" gradientUnits="userSpaceOnUse" x1="-249.8" y1="383.581" x2="-249.8" y2="376.3763" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
89
+ <stop offset="0" style="stop-color:#66BB6A"/>
90
+ <stop offset="1" style="stop-color:#378F43"/>
91
+ </linearGradient>
92
+ <path fill="url(#SVGID_4_)" d="M-541.1,28.8L-541.1,28.8c-0.5,1.5-1.3,3.3-1.8,5.1c0,0.5-0.3,0.8-0.3,1.3c-1,3.3-1.8,6.6-2.3,9.9
93
+ c0,0.5-0.3,0.8-0.3,1.3c-0.3,1.5-0.5,3.1-0.5,4.6c12,0,20.1-3.6,20.1-3.6c0-1.3,0.3-2.3,0.3-3.6c0-0.3,0-0.5,0-0.8
94
+ c0-1,0.3-1.8,0.3-2.8c0-0.3,0-0.5,0-0.8c0.3-2.3,0.8-4.6,1-6.6L-541.1,28.8z M-546.4,50.6L-546.4,50.6L-546.4,50.6L-546.4,50.6z"
95
+ />
96
+
97
+ <linearGradient id="SVGID_5_" gradientUnits="userSpaceOnUse" x1="-313" y1="371.7722" x2="-313" y2="380.7083" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
98
+ <stop offset="0" style="stop-color:#66BB6A"/>
99
+ <stop offset="1" style="stop-color:#378F43"/>
100
+ </linearGradient>
101
+ <path fill="url(#SVGID_5_)" d="M-708.3,72.8l11.2,4.8c5.3-7.6,8.7-15.5,10.7-21.6l2-8.1l-5.3,0.8
102
+ C-694.5,58.8-701.1,66.9-708.3,72.8z"/>
103
+
104
+ <linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="-277.5255" y1="390.213" x2="-278.6479" y2="388.4254" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
105
+ <stop offset="0" style="stop-color:#66BB6A"/>
106
+ <stop offset="1" style="stop-color:#378F43"/>
107
+ </linearGradient>
108
+ <path fill="url(#SVGID_6_)" d="M-607,36.1c2.8-7.6,4.3-14,4.3-17c0-0.3,0-0.5,0-0.8l-6.6,2C-609.3,20.4-609,24.7-607,36.1z"/>
109
+
110
+ <linearGradient id="SVGID_7_" gradientUnits="userSpaceOnUse" x1="-262.5813" y1="386.4827" x2="-263.215" y2="384.0749" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
111
+ <stop offset="0" style="stop-color:#66BB6A"/>
112
+ <stop offset="1" style="stop-color:#378F43"/>
113
+ </linearGradient>
114
+ <path fill="url(#SVGID_7_)" d="M-571.4,30.5c0,0-1.8,5.3,5.6,12c1.3-5.3,2-10.7,2.3-15.3L-571.4,30.5z"/>
115
+ </g>
116
+ </g>
117
+ <g>
118
+ <g>
119
+ <path fill="#66BB6A" d="M-807.8,346.6h-0.5v0.5c0.8,4.3,0,10.4-3.1,14.5c-1.8,2.3-4.3,3.6-7.1,3.6c-4.6,0-6.4-5.6-6.6-11.7
120
+ c7.6-1.8,12.7-6.6,12.7-12.2c0-4.1-1.3-10.7-9.2-10.7c-7.4,0-11.2,11.2-12,18.8c-3.8,0-6.6-1.8-8.4-3.6c0.8-2.8,1-5.1,1-7.4
121
+ c0-3.1-2.3-4.6-4.1-4.6c-3.1,0-5.9,2.8-5.9,8.1c0,3.3,1.3,5.9,3.8,7.9c-2.3,5.1-5.9,9.4-7.1,10.7c-1-2-4.1-9.7-5.1-17.6
122
+ c1.3-3.3,1.8-5.9,1.8-7.1c0-2-1.3-3.3-3.6-3.3c-3.1,0-7.6,1.8-7.6,2l-0.3,0.3v0.3c0,0,1.3,6.6,2.8,13.7
123
+ c-2.8,4.3-7.4,11.7-9.9,11.7c-4.3,0,2.8-22.1-0.3-22.9h-0.3c-1.5,1-18.6,10.4-41,10.4c0,0,0,0.5,0.3,0.8c0.3,0.3,0.5,0.5,0.5,0.5
124
+ c6.4,0.8,15.5,0,22.4-1c-4.1,8.4-10.9,14.2-17.6,14.2c-12.2,0-21.6-14.8-21.6-14.8c3.8-3.3,9.9-14.2,19.1-14.2
125
+ c8.9,0,13,4.8,13,4.8l1-1.5c0,0-4.3-14.8-16-14.8s-24.4,19.6-31.8,23.9c0,0,10.2,24.2,32.3,24.2c18.6,0,23.4-17.8,24.2-22.1
126
+ c4.6-0.8,7.6-1.3,7.6-1.3s-1,9.2-1,13c0,3.8,4.1,7.9,7.6,7.9c3.1,0,8.9-6.1,13.2-13.5l0.3,0.8c2.3,8.4,5.1,12.7,8.4,12.7
127
+ s8.9-6.9,12.5-15.5c3.6,1.5,7.9,2,10.2,2c1,15,13.5,15.5,15,15.5c9.4,0,17.3-6.6,17.3-14.5C-801.4,346.8-807.8,346.6-807.8,346.6
128
+ z M-819,340.2c0,0,0,5.1-5.9,7.6c0.5-6.6,2-12.5,3.3-12.5C-820.5,335.4-819,337.2-819,340.2z"/>
129
+ <path fill="#66BB6A" d="M-883.8,334.4c0,0.3,0,0.3,0.3,0.5c4.3,0.5,7.4-0.8,7.4-7.9c0-6.6-6.9-1.5-8.1-0.5c0,0-0.3,0.3,0,0.5
130
+ C-883.3,329.5-883.8,333.1-883.8,334.4z"/>
131
+ </g>
132
+
133
+ <linearGradient id="SVGID_8_" gradientUnits="userSpaceOnUse" x1="-382.0074" y1="259.8475" x2="-379.1585" y2="260.7972" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
134
+ <stop offset="0" style="stop-color:#66BB6A"/>
135
+ <stop offset="1" style="stop-color:#378F43"/>
136
+ </linearGradient>
137
+ <path fill="url(#SVGID_8_)" d="M-866,348.6c-1.8,2.8-4.3,6.9-6.6,9.4c0.5,1.3,1.3,2.8,1.8,4.3c2-2.3,4.1-5.1,6.1-8.1L-866,348.6z"
138
+ />
139
+
140
+ <linearGradient id="SVGID_9_" gradientUnits="userSpaceOnUse" x1="-373.1626" y1="259.0423" x2="-371.5102" y2="261.9482" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
141
+ <stop offset="0" style="stop-color:#66BB6A"/>
142
+ <stop offset="1" style="stop-color:#378F43"/>
143
+ </linearGradient>
144
+ <path fill="url(#SVGID_9_)" d="M-845.4,350.9c-0.8-0.5-1.5-1-1.5-1c-1.5,3.3-3.6,6.4-5.1,8.7c0.8,1,2,2.5,3.1,3.6
145
+ c2-2.8,4.1-6.1,5.6-10.2C-843.6,351.9-844.7,351.4-845.4,350.9z"/>
146
+
147
+ <linearGradient id="SVGID_10_" gradientUnits="userSpaceOnUse" x1="-364.6996" y1="257.7503" x2="-365.0414" y2="260.7892" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
148
+ <stop offset="0" style="stop-color:#66BB6A"/>
149
+ <stop offset="1" style="stop-color:#378F43"/>
150
+ </linearGradient>
151
+ <path fill="url(#SVGID_10_)" d="M-825.1,353.2c0,0-2,0.5-4.3,0.8c-2,0.3-4.3,0-4.3,0c0.3,4.3,1.5,7.4,3.1,9.7l7.9-0.8
152
+ C-824,360.8-824.8,357-825.1,353.2z"/>
153
+
154
+ <linearGradient id="SVGID_11_" gradientUnits="userSpaceOnUse" x1="-365" y1="264.2223" x2="-365" y2="261.1597" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
155
+ <stop offset="0" style="stop-color:#66BB6A"/>
156
+ <stop offset="1" style="stop-color:#378F43"/>
157
+ </linearGradient>
158
+ <path fill="url(#SVGID_11_)" d="M-831.2,339.9L-831.2,339.9c-0.3,0.8-0.5,1.5-0.8,2c0,0.3,0,0.3-0.3,0.5c-0.5,1.5-0.8,2.8-1,4.3
159
+ c0,0.3,0,0.3,0,0.5c0,0.8-0.3,1.3-0.3,2c5.1,0,8.7-1.5,8.7-1.5c0-0.5,0-1,0.3-1.5v-0.3c0-0.5,0-0.8,0.3-1v-0.3
160
+ c0.3-1,0.3-2,0.5-2.8L-831.2,339.9z M-833.5,349.4L-833.5,349.4L-833.5,349.4L-833.5,349.4z"/>
161
+
162
+ <linearGradient id="SVGID_12_" gradientUnits="userSpaceOnUse" x1="-392" y1="259.2025" x2="-392" y2="263.0011" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
163
+ <stop offset="0" style="stop-color:#66BB6A"/>
164
+ <stop offset="1" style="stop-color:#378F43"/>
165
+ </linearGradient>
166
+ <path fill="url(#SVGID_12_)" d="M-902.4,358.8l4.8,2c2.3-3.3,3.6-6.6,4.6-9.2l0.8-3.6l-2.3,0.3
167
+ C-896.6,352.7-899.1,356.2-902.4,358.8z"/>
168
+
169
+ <linearGradient id="SVGID_13_" gradientUnits="userSpaceOnUse" x1="-376.8637" y1="267.0355" x2="-377.3409" y2="266.2755" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
170
+ <stop offset="0" style="stop-color:#66BB6A"/>
171
+ <stop offset="1" style="stop-color:#378F43"/>
172
+ </linearGradient>
173
+ <path fill="url(#SVGID_13_)" d="M-859.2,343c1.3-3.3,1.8-5.9,1.8-7.1v-0.3l-2.8,0.8C-860.2,336.4-860.2,338.2-859.2,343z"/>
174
+
175
+ <linearGradient id="SVGID_14_" gradientUnits="userSpaceOnUse" x1="-370.5543" y1="265.4645" x2="-370.8236" y2="264.441" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
176
+ <stop offset="0" style="stop-color:#66BB6A"/>
177
+ <stop offset="1" style="stop-color:#378F43"/>
178
+ </linearGradient>
179
+ <path fill="url(#SVGID_14_)" d="M-844.1,340.7c0,0-0.8,2.3,2.3,5.1c0.5-2.3,1-4.6,1-6.6L-844.1,340.7z"/>
180
+ </g>
181
+ <g>
182
+ <rect x="-697.3" y="292.9" fill="#FFFFFF" width="106.9" height="106.9"/>
183
+ <g>
184
+ <path fill="#66BB6A" d="M-644.4,349.9c0.3,0.5,0.5,0.8,0.5,0.8c8.7,1,21.1,0,30.5-1.5c-5.3,11.7-15,19.3-23.9,19.3
185
+ c-16.5,0-29.5-20.1-29.5-20.1c5.1-4.6,13.7-19.3,26-19.3c12.2,0,17.6,6.6,17.6,6.6l1.3-2.3c0,0-5.9-20.1-21.9-20.1
186
+ c-16.3,0-33.3,26.5-43.5,32.6c0,0,13.7,32.8,44,32.8c25.4,0,31.8-24.2,33.1-30.3c3.3-0.5,6.1-1,8.1-1.3c0.5-1.3,1.3-3.8,0.8-7.1
187
+ c-10.2,3.8-25.4,8.4-43.5,8.4C-644.7,348.6-644.7,349.1-644.4,349.9z"/>
188
+
189
+ <linearGradient id="SVGID_15_" gradientUnits="userSpaceOnUse" x1="-281.85" y1="257.5187" x2="-281.85" y2="262.6511" gradientTransform="matrix(2.5445 0 0 -2.5445 100.1272 1017.8117)">
190
+ <stop offset="0" style="stop-color:#66BB6A"/>
191
+ <stop offset="1" style="stop-color:#378F43"/>
192
+ </linearGradient>
193
+ <path fill="url(#SVGID_15_)" d="M-610.1,348.9l-3.1,0.3c0,0.3-0.3,0.5-0.5,0.8c-0.5,1-1,1.8-1.5,2.8c-0.3,0.5-0.5,0.8-0.8,1.3
194
+ c-0.5,1-1.3,2-2,2.8c-0.3,0.3-0.3,0.3-0.5,0.5c-1.8,2.3-3.6,4.3-5.6,5.9l6.4,2.8C-612.6,359.3-610.6,351.7-610.1,348.9z"/>
195
+ </g>
196
+ </g>
197
+ <g>
198
+ <g>
199
+ <defs>
200
+ <circle id="SVGID_16_" cx="-407.3" cy="346.3" r="42.2"/>
201
+ </defs>
202
+ <clipPath id="SVGID_17_">
203
+ <use xlink:href="#SVGID_16_" overflow="visible"/>
204
+ </clipPath>
205
+ <path clip-path="url(#SVGID_17_)" fill="#FFFFFF" d="M-401.1,349.4c0.3,0.3,0.5,0.8,0.5,0.8c7.4,1,18.1,0,26.2-1.3
206
+ c-4.6,9.9-13,16.5-20.4,16.5c-14.2,0-25.2-17.3-25.2-17.3c4.3-3.8,11.7-16.5,22.1-16.5s15,5.9,15,5.9l1.3-1.8c0,0-4.8-17-18.8-17
207
+ s-28.5,22.6-37.2,28c0,0,12,28,37.7,28c21.6,0,27.2-20.9,28.2-26c2.8-0.5,5.3-0.8,6.9-1c0.5-1.3,1-3.3,0.8-6.1
208
+ c-8.7,3.3-21.6,7.1-37.2,7.1C-401.4,348.3-401.4,348.9-401.1,349.4z"/>
209
+ </g>
210
+ </g>
211
+ </g>
212
+ <g id="Layer_2">
213
+ <path fill="#888888" d="M467.3,209.9c-4.8,24.4-30.8,122.6-133.6,122.6c-122.6,0-178.6-132.8-178.6-132.8
214
+ c41-24.9,110.4-132.3,176.1-132.3s88.8,81.2,88.8,81.2l-5.6,8.9c0,0-21.6-27.2-71.2-27.2s-83.7,59.8-104.6,78.4
215
+ c0,0,52.2,81.7,119.3,81.7c36.1,0,75.1-31.3,96.9-78.4c-38.2,5.3-88.3,10.2-123.7,5.6c0,0-1.8-1.5-2.5-3.3c-1-2.3-1.3-4.6-1.3-4.6
216
+ c70.2,0,130.5-16.5,171.5-31.8C487.7,77.6,402.9,0,300.1,0c-110.4,0-200,89.6-200,200s89.6,200,200,200c108.9,0,197.5-87,200-195.4
217
+ C492.5,205.9,481,207.9,467.3,209.9z"/>
218
+ </g>
219
+ </svg>
assets/images/svg/give-icon-full-circle-white.svg ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ viewBox="0 0 157.1 157.2" style="enable-background:new 0 0 157.1 157.2;" xml:space="preserve">
6
+ <style type="text/css">
7
+ .st0{fill:#66BB6A;}
8
+ .st1{fill:#546E7A;}
9
+ .st2{fill:url(#SVGID_1_);}
10
+ .st3{fill:url(#SVGID_2_);}
11
+ .st4{fill:url(#SVGID_3_);}
12
+ .st5{fill:url(#SVGID_4_);}
13
+ .st6{fill:url(#SVGID_5_);}
14
+ .st7{fill:url(#SVGID_6_);}
15
+ .st8{fill:url(#SVGID_7_);}
16
+ .st9{fill:url(#SVGID_8_);}
17
+ .st10{fill:url(#SVGID_9_);}
18
+ .st11{fill:url(#SVGID_10_);}
19
+ .st12{fill:url(#SVGID_11_);}
20
+ .st13{fill:url(#SVGID_12_);}
21
+ .st14{fill:url(#SVGID_13_);}
22
+ .st15{fill:url(#SVGID_14_);}
23
+ .st16{fill:#FFFFFF;}
24
+ .st17{fill:url(#SVGID_15_);}
25
+ .st18{clip-path:url(#SVGID_17_);fill:#FFFFFF;}
26
+ .st19{fill:#F1F2F2;}
27
+ </style>
28
+ <g id="Layer_1">
29
+ <circle class="st0" cx="-199.4" cy="136.1" r="16.6"/>
30
+ <g>
31
+ <g>
32
+ <path class="st1" d="M-348.4,52.6v-4.9h1.9c1.5,0,2.6,1,2.6,2.5c0,1.5-1.1,2.5-2.6,2.5H-348.4z M-344.9,50.1
33
+ c0-0.9-0.5-1.5-1.5-1.5h-0.9v3.1h0.9C-345.5,51.7-344.9,51-344.9,50.1z"/>
34
+ <path class="st1" d="M-342.6,52.6v-4.9h3.5v0.9h-2.4v1h2.4v0.9h-2.4v1.1h2.4v0.9H-342.6z"/>
35
+ <path class="st1" d="M-333.5,52.6v-3.4l-1.4,3.4h-0.5l-1.4-3.4v3.4h-1v-4.9h1.5l1.2,3l1.2-3h1.5v4.9H-333.5z"/>
36
+ <path class="st1" d="M-331.1,50.1c0-1.5,1.1-2.5,2.6-2.5c1.5,0,2.6,1.1,2.6,2.5c0,1.5-1.1,2.5-2.6,2.5
37
+ C-330.1,52.7-331.1,51.6-331.1,50.1z M-327.1,50.1c0-0.9-0.6-1.6-1.5-1.6s-1.5,0.7-1.5,1.6c0,0.9,0.6,1.6,1.5,1.6
38
+ S-327.1,51-327.1,50.1z"/>
39
+ <path class="st1" d="M-325,50.1c0-1.5,1.1-2.5,2.6-2.5c1.1,0,1.7,0.6,2.1,1.2l-0.9,0.4c-0.2-0.4-0.6-0.7-1.2-0.7
40
+ c-0.9,0-1.5,0.7-1.5,1.6c0,0.9,0.6,1.6,1.5,1.6c0.5,0,0.9-0.3,1.2-0.7l0.9,0.4c-0.4,0.6-1,1.2-2.1,1.2
41
+ C-323.8,52.7-325,51.6-325,50.1z"/>
42
+ <path class="st1" d="M-316.3,52.6l-1-1.7h-0.8v1.7h-1v-4.9h2.3c1,0,1.6,0.7,1.6,1.6c0,0.9-0.5,1.3-1.1,1.5l1.1,1.9H-316.3z
43
+ M-316.2,49.2c0-0.4-0.3-0.7-0.7-0.7h-1.1v1.3h1.1C-316.6,49.9-316.2,49.7-316.2,49.2z"/>
44
+ <path class="st1" d="M-310.4,52.6l-0.3-0.8h-2.1l-0.3,0.8h-1.2l1.9-4.9h1.3l1.9,4.9H-310.4z M-311.8,48.7l-0.8,2.1h1.5
45
+ L-311.8,48.7z"/>
46
+ <path class="st1" d="M-307.6,52.6v-4h-1.4v-0.9h3.9v0.9h-1.4v4H-307.6z"/>
47
+ <path class="st1" d="M-303.9,52.6v-4.9h1v4.9H-303.9z"/>
48
+ <path class="st1" d="M-301.5,52.6v-0.8l2.3-3.1h-2.3v-0.9h3.7v0.8l-2.3,3.2h2.4v0.9H-301.5z"/>
49
+ <path class="st1" d="M-296.4,52.6v-4.9h1v4.9H-296.4z"/>
50
+ <path class="st1" d="M-290.5,52.6l-2.3-3.2v3.2h-1v-4.9h1.1l2.3,3.1v-3.1h1v4.9H-290.5z"/>
51
+ <path class="st1" d="M-288.2,50.1c0-1.6,1.2-2.5,2.6-2.5c1,0,1.7,0.5,2,1.1l-0.9,0.5c-0.2-0.3-0.6-0.6-1.2-0.6
52
+ c-0.9,0-1.5,0.7-1.5,1.6c0,0.9,0.6,1.6,1.5,1.6c0.4,0,0.8-0.2,1-0.4v-0.6h-1.3v-0.9h2.3v1.9c-0.5,0.6-1.2,0.9-2.1,0.9
53
+ C-287,52.7-288.2,51.7-288.2,50.1z"/>
54
+ <path class="st1" d="M-279.9,50.1c0-1.6,1.2-2.5,2.6-2.5c1,0,1.7,0.5,2,1.1l-0.9,0.5c-0.2-0.3-0.6-0.6-1.2-0.6
55
+ c-0.9,0-1.5,0.7-1.5,1.6c0,0.9,0.6,1.6,1.5,1.6c0.4,0,0.8-0.2,1-0.4v-0.6h-1.3v-0.9h2.3v1.9c-0.5,0.6-1.2,0.9-2.1,0.9
56
+ C-278.7,52.7-279.9,51.7-279.9,50.1z"/>
57
+ <path class="st1" d="M-273.8,52.6v-4.9h3.5v0.9h-2.4v1h2.4v0.9h-2.4v1.1h2.4v0.9H-273.8z"/>
58
+ <path class="st1" d="M-265.6,52.6l-2.3-3.2v3.2h-1v-4.9h1.1l2.3,3.1v-3.1h1v4.9H-265.6z"/>
59
+ <path class="st1" d="M-263,52.6v-4.9h3.5v0.9h-2.4v1h2.4v0.9h-2.4v1.1h2.4v0.9H-263z"/>
60
+ <path class="st1" d="M-255.4,52.6l-1-1.7h-0.8v1.7h-1v-4.9h2.3c1,0,1.6,0.7,1.6,1.6c0,0.9-0.5,1.3-1.1,1.5l1.1,1.9H-255.4z
61
+ M-255.3,49.2c0-0.4-0.3-0.7-0.7-0.7h-1.1v1.3h1.1C-255.6,49.9-255.3,49.7-255.3,49.2z"/>
62
+ <path class="st1" d="M-253.1,50.1c0-1.5,1.1-2.5,2.6-2.5c1.5,0,2.6,1.1,2.6,2.5c0,1.5-1.1,2.5-2.6,2.5
63
+ C-252.1,52.7-253.1,51.6-253.1,50.1z M-249.1,50.1c0-0.9-0.6-1.6-1.5-1.6c-0.9,0-1.5,0.7-1.5,1.6c0,0.9,0.6,1.6,1.5,1.6
64
+ C-249.7,51.7-249.1,51-249.1,50.1z"/>
65
+ <path class="st1" d="M-247.1,51.9l0.6-0.8c0.3,0.4,0.9,0.7,1.6,0.7c0.6,0,0.9-0.3,0.9-0.5c0-0.9-2.8-0.3-2.8-2.1
66
+ c0-0.8,0.7-1.5,1.9-1.5c0.8,0,1.4,0.2,1.9,0.7l-0.6,0.8c-0.4-0.4-0.9-0.5-1.4-0.5c-0.4,0-0.7,0.2-0.7,0.5c0,0.8,2.8,0.3,2.8,2.1
67
+ c0,0.9-0.6,1.6-2,1.6C-245.9,52.7-246.6,52.3-247.1,51.9z"/>
68
+ <path class="st1" d="M-241.8,52.6v-4.9h1v4.9H-241.8z"/>
69
+ <path class="st1" d="M-238.1,52.6v-4h-1.4v-0.9h3.9v0.9h-1.4v4H-238.1z"/>
70
+ <path class="st1" d="M-233,52.6v-2l-1.9-2.9h1.2l1.2,2l1.2-2h1.2l-1.9,2.9v2H-233z"/>
71
+ </g>
72
+ <g>
73
+ <g>
74
+ <path class="st0" d="M-230.3,17.4l-0.5,0l0.1,0.5c0.8,3.9,0.1,9.7-2.9,13.3c-1.7,2.1-3.9,3.2-6.6,3.2c-4.3,0-5.9-5.1-6.1-10.9
75
+ c7-1.7,11.7-6.1,11.7-11.2c0-3.7-1.1-9.8-8.4-9.8c-6.9,0-10.4,10.3-11.1,17.5c-3.5-0.1-6.1-1.7-7.7-3.2c0.6-2.5,0.9-4.8,0.9-6.9
76
+ c0-2.9-2-4.2-3.9-4.2c-2.7,0-5.5,2.6-5.5,7.6c0,3,1.1,5.5,3.4,7.3c-2,4.7-5.4,8.7-6.5,10c-0.9-1.9-3.8-8.8-4.7-16.3
77
+ c1.1-3,1.7-5.5,1.7-6.7c0-1.9-1.2-3-3.2-3c-2.7,0-7,1.7-7.1,1.8l-0.2,0.1l0,0.3c0,0.1,1.3,6.1,2.6,12.7
78
+ c-2.5,4.1-6.9,10.9-9.1,10.9c-4,0,2.6-20.5-0.3-21.2c-0.1,0-0.2,0-0.3,0.1c-1.4,0.9-17.1,9.6-38,9.6c0,0,0,0.4,0.2,0.8
79
+ c0.1,0.3,0.4,0.6,0.4,0.6c5.9,0.7,14.3-0.1,20.7-1c-3.7,7.9-10.2,13.1-16.2,13.1c-11.3,0-20-13.7-20-13.7
80
+ c3.5-3.1,9.2-13.1,17.6-13.1c8.3,0,11.9,4.6,11.9,4.6l0.9-1.5c0,0-3.9-13.6-14.9-13.6c-11,0-22.7,18-29.5,22.2
81
+ c0,0,9.4,22.2,29.9,22.2c17.2,0,21.6-16.5,22.4-20.5c4.2-0.6,7.1-1.2,7.1-1.2s-1.1,8.4-1.1,11.9c0,3.5,3.9,7.2,7.1,7.2
82
+ c2.7,0,8.2-5.6,12.2-12.4l0.2,0.8c2.1,7.7,4.7,11.7,7.8,11.7c3.1,0,8.2-6.4,11.5-14.5c3.3,1.4,7.2,1.8,9.5,1.9
83
+ c0.9,13.9,12.5,14.3,13.9,14.3c8.6,0,15.9-6.2,15.9-13.5C-224.3,17.5-230.2,17.4-230.3,17.4z M-240.8,11.6c0,0-0.1,4.6-5.3,6.9
84
+ c0.5-6.1,2-11.6,3-11.6C-242,7-240.8,8.7-240.8,11.6z"/>
85
+ <path class="st0" d="M-300.7,6.1c0,0.2,0.1,0.3,0.3,0.4c4.1,0.6,6.8-0.7,6.8-7.3c0-6.2-6.4-1.3-7.6-0.4
86
+ c-0.1,0.1-0.1,0.2-0.1,0.4C-300.2,1.6-300.6,5.1-300.7,6.1z"/>
87
+ </g>
88
+ <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-289.5844" y1="26.768" x2="-282.8823" y2="24.534">
89
+ <stop offset="0" style="stop-color:#66BB6A"/>
90
+ <stop offset="1" style="stop-color:#378F43"/>
91
+ </linearGradient>
92
+ <path class="st2" d="M-284.2,19.4c-1.6,2.7-4,6.4-6.1,8.7c0.5,1.2,1.1,2.7,1.7,3.9c1.9-2.1,3.8-4.8,5.5-7.6L-284.2,19.4z"/>
93
+ <linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-269.0194" y1="28.4777" x2="-265.1322" y2="21.6416">
94
+ <stop offset="0" style="stop-color:#66BB6A"/>
95
+ <stop offset="1" style="stop-color:#378F43"/>
96
+ </linearGradient>
97
+ <path class="st3" d="M-265.2,21.5c-0.8-0.4-1.5-1-1.5-1c-1.4,3.1-3.3,6-4.8,7.9c0.7,1,1.9,2.3,2.8,3.3c1.8-2.5,3.7-5.8,5.1-9.3
98
+ C-263.5,22.3-264.4,22-265.2,21.5z"/>
99
+ <linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="-248.6254" y1="31.6147" x2="-249.4297" y2="24.4659">
100
+ <stop offset="0" style="stop-color:#66BB6A"/>
101
+ <stop offset="1" style="stop-color:#378F43"/>
102
+ </linearGradient>
103
+ <path class="st4" d="M-246.2,23.5c0,0-2,0.4-4,0.6c-2,0.2-3.9,0.1-3.9,0.1c0.3,4,1.4,6.8,2.9,8.9l7.3-0.6
104
+ C-245.4,30.5-246.1,27.1-246.2,23.5z"/>
105
+ <linearGradient id="SVGID_4_" gradientUnits="userSpaceOnUse" x1="-249.7267" y1="16.419" x2="-249.7267" y2="23.6237">
106
+ <stop offset="0" style="stop-color:#66BB6A"/>
107
+ <stop offset="1" style="stop-color:#378F43"/>
108
+ </linearGradient>
109
+ <path class="st5" d="M-252,11.3L-252,11.3c-0.2,0.6-0.5,1.3-0.7,2c0,0.2-0.1,0.3-0.1,0.5c-0.4,1.3-0.7,2.6-0.9,3.9
110
+ c0,0.2-0.1,0.3-0.1,0.5c-0.1,0.6-0.2,1.2-0.2,1.8c4.7,0,7.9-1.4,7.9-1.4c0-0.5,0.1-0.9,0.1-1.4c0-0.1,0-0.2,0-0.3
111
+ c0-0.4,0.1-0.7,0.1-1.1c0-0.1,0-0.2,0-0.3c0.1-0.9,0.3-1.8,0.4-2.6L-252,11.3z M-254.1,19.9C-254.1,19.9-254.1,19.9-254.1,19.9
112
+ L-254.1,19.9C-254.1,19.9-254.1,19.9-254.1,19.9z"/>
113
+ <linearGradient id="SVGID_5_" gradientUnits="userSpaceOnUse" x1="-313.0272" y1="28.2278" x2="-313.0272" y2="19.2917">
114
+ <stop offset="0" style="stop-color:#66BB6A"/>
115
+ <stop offset="1" style="stop-color:#378F43"/>
116
+ </linearGradient>
117
+ <path class="st6" d="M-317.7,28.6l4.4,1.9c2.1-3,3.4-6.1,4.2-8.5l0.8-3.2l-2.1,0.3C-312.3,23.1-314.9,26.3-317.7,28.6z"/>
118
+ <linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="-277.5239" y1="9.788" x2="-278.6463" y2="11.5756">
119
+ <stop offset="0" style="stop-color:#66BB6A"/>
120
+ <stop offset="1" style="stop-color:#378F43"/>
121
+ </linearGradient>
122
+ <path class="st7" d="M-277.9,14.2c1.1-3,1.7-5.5,1.7-6.7c0-0.1,0-0.2,0-0.3l-2.6,0.8C-278.8,8-278.7,9.7-277.9,14.2z"/>
123
+ <linearGradient id="SVGID_7_" gradientUnits="userSpaceOnUse" x1="-262.5529" y1="13.5248" x2="-263.1866" y2="15.9326">
124
+ <stop offset="0" style="stop-color:#66BB6A"/>
125
+ <stop offset="1" style="stop-color:#378F43"/>
126
+ </linearGradient>
127
+ <path class="st8" d="M-263.9,12c0,0-0.7,2.1,2.2,4.7c0.5-2.1,0.8-4.2,0.9-6L-263.9,12z"/>
128
+ </g>
129
+ </g>
130
+ <g>
131
+ <g>
132
+ <path class="st0" d="M-356.8,136.2l-0.2,0l0,0.2c0.3,1.7,0,4.1-1.2,5.7c-0.7,0.9-1.7,1.4-2.8,1.4c-1.8,0-2.5-2.2-2.6-4.6
133
+ c3-0.7,5-2.6,5-4.8c0-1.6-0.5-4.2-3.6-4.2c-2.9,0-4.4,4.4-4.7,7.4c-1.5,0-2.6-0.7-3.3-1.4c0.3-1.1,0.4-2,0.4-2.9
134
+ c0-1.2-0.9-1.8-1.6-1.8c-1.2,0-2.3,1.1-2.3,3.2c0,1.3,0.5,2.3,1.5,3.1c-0.9,2-2.3,3.7-2.8,4.2c-0.4-0.8-1.6-3.8-2-6.9
135
+ c0.5-1.3,0.7-2.3,0.7-2.8c0-0.8-0.5-1.3-1.4-1.3c-1.2,0-3,0.7-3,0.8l-0.1,0.1l0,0.1c0,0,0.5,2.6,1.1,5.4
136
+ c-1.1,1.7-2.9,4.6-3.9,4.6c-1.7,0,1.1-8.7-0.1-9c0,0-0.1,0-0.1,0c-0.6,0.4-7.3,4.1-16.1,4.1c0,0,0,0.2,0.1,0.3
137
+ c0.1,0.1,0.2,0.2,0.2,0.2c2.5,0.3,6.1,0,8.8-0.4c-1.6,3.3-4.3,5.6-6.9,5.6c-4.8,0-8.5-5.8-8.5-5.8c1.5-1.3,3.9-5.6,7.5-5.6
138
+ c3.5,0,5.1,1.9,5.1,1.9l0.4-0.6c0,0-1.7-5.8-6.3-5.8s-9.6,7.7-12.5,9.4c0,0,4,9.5,12.7,9.5c7.3,0,9.2-7,9.5-8.7
139
+ c1.8-0.3,3-0.5,3-0.5s-0.4,3.6-0.4,5.1s1.6,3.1,3,3.1c1.2,0,3.5-2.4,5.2-5.3l0.1,0.3c0.9,3.3,2,5,3.3,5c1.3,0,3.5-2.7,4.9-6.1
140
+ c1.4,0.6,3.1,0.8,4,0.8c0.4,5.9,5.3,6.1,5.9,6.1c3.7,0,6.8-2.6,6.8-5.7C-354.3,136.3-356.8,136.2-356.8,136.2z M-361.2,133.7
141
+ c0,0,0,2-2.3,3c0.2-2.6,0.8-4.9,1.3-4.9C-361.8,131.8-361.2,132.5-361.2,133.7z"/>
142
+ <path class="st0" d="M-386.7,131.4c0,0.1,0,0.1,0.1,0.2c1.7,0.2,2.9-0.3,2.9-3.1c0-2.6-2.7-0.6-3.2-0.2c0,0-0.1,0.1,0,0.2
143
+ C-386.5,129.5-386.7,130.9-386.7,131.4z"/>
144
+ </g>
145
+ <linearGradient id="SVGID_8_" gradientUnits="userSpaceOnUse" x1="-381.9993" y1="140.1769" x2="-379.1504" y2="139.2272">
146
+ <stop offset="0" style="stop-color:#66BB6A"/>
147
+ <stop offset="1" style="stop-color:#378F43"/>
148
+ </linearGradient>
149
+ <path class="st9" d="M-379.7,137c-0.7,1.1-1.7,2.7-2.6,3.7c0.2,0.5,0.5,1.1,0.7,1.7c0.8-0.9,1.6-2,2.4-3.2L-379.7,137z"/>
150
+ <linearGradient id="SVGID_9_" gradientUnits="userSpaceOnUse" x1="-373.2575" y1="140.9037" x2="-371.6051" y2="137.9978">
151
+ <stop offset="0" style="stop-color:#66BB6A"/>
152
+ <stop offset="1" style="stop-color:#378F43"/>
153
+ </linearGradient>
154
+ <path class="st10" d="M-371.6,137.9c-0.3-0.2-0.6-0.4-0.6-0.4c-0.6,1.3-1.4,2.5-2,3.4c0.3,0.4,0.8,1,1.2,1.4
155
+ c0.8-1.1,1.6-2.4,2.2-4C-370.9,138.3-371.3,138.1-371.6,137.9z"/>
156
+ <linearGradient id="SVGID_10_" gradientUnits="userSpaceOnUse" x1="-364.5884" y1="142.2372" x2="-364.9303" y2="139.1983">
157
+ <stop offset="0" style="stop-color:#66BB6A"/>
158
+ <stop offset="1" style="stop-color:#378F43"/>
159
+ </linearGradient>
160
+ <path class="st11" d="M-363.6,138.8c0,0-0.8,0.2-1.7,0.3c-0.8,0.1-1.7,0-1.7,0c0.1,1.7,0.6,2.9,1.2,3.8l3.1-0.3
161
+ C-363.2,141.8-363.5,140.3-363.6,138.8z"/>
162
+ <linearGradient id="SVGID_11_" gradientUnits="userSpaceOnUse" x1="-365.0566" y1="135.7777" x2="-365.0566" y2="138.8403">
163
+ <stop offset="0" style="stop-color:#66BB6A"/>
164
+ <stop offset="1" style="stop-color:#378F43"/>
165
+ </linearGradient>
166
+ <path class="st12" d="M-366,133.6L-366,133.6c-0.1,0.3-0.2,0.6-0.3,0.8c0,0.1,0,0.1-0.1,0.2c-0.2,0.6-0.3,1.1-0.4,1.7
167
+ c0,0.1,0,0.1,0,0.2c0,0.3-0.1,0.5-0.1,0.8c2,0,3.4-0.6,3.4-0.6c0-0.2,0-0.4,0.1-0.6c0,0,0-0.1,0-0.1c0-0.2,0-0.3,0.1-0.4
168
+ c0,0,0-0.1,0-0.1c0.1-0.4,0.1-0.8,0.2-1.1L-366,133.6z M-366.9,137.3C-366.9,137.3-366.9,137.3-366.9,137.3L-366.9,137.3
169
+ C-366.9,137.3-366.9,137.3-366.9,137.3z"/>
170
+ <linearGradient id="SVGID_12_" gradientUnits="userSpaceOnUse" x1="-391.9644" y1="140.7975" x2="-391.9644" y2="136.9989">
171
+ <stop offset="0" style="stop-color:#66BB6A"/>
172
+ <stop offset="1" style="stop-color:#378F43"/>
173
+ </linearGradient>
174
+ <path class="st13" d="M-394,141l1.9,0.8c0.9-1.3,1.4-2.6,1.8-3.6l0.3-1.4l-0.9,0.1C-391.7,138.6-392.7,140-394,141z"/>
175
+ <linearGradient id="SVGID_13_" gradientUnits="userSpaceOnUse" x1="-376.8726" y1="132.959" x2="-377.3498" y2="133.7189">
176
+ <stop offset="0" style="stop-color:#66BB6A"/>
177
+ <stop offset="1" style="stop-color:#378F43"/>
178
+ </linearGradient>
179
+ <path class="st14" d="M-377,134.8c0.5-1.3,0.7-2.3,0.7-2.8c0,0,0-0.1,0-0.1l-1.1,0.3C-377.4,132.2-377.4,132.9-377,134.8z"/>
180
+ <linearGradient id="SVGID_14_" gradientUnits="userSpaceOnUse" x1="-370.5088" y1="134.5475" x2="-370.7781" y2="135.571">
181
+ <stop offset="0" style="stop-color:#66BB6A"/>
182
+ <stop offset="1" style="stop-color:#378F43"/>
183
+ </linearGradient>
184
+ <path class="st15" d="M-371.1,133.9c0,0-0.3,0.9,0.9,2c0.2-0.9,0.4-1.8,0.4-2.6L-371.1,133.9z"/>
185
+ </g>
186
+ <g>
187
+ <rect x="-313.4" y="115.1" class="st16" width="42" height="42"/>
188
+ <g>
189
+ <path class="st0" d="M-292.6,137.5c0.1,0.2,0.2,0.3,0.2,0.3c3.4,0.4,8.3,0,12-0.6c-2.1,4.6-5.9,7.6-9.4,7.6
190
+ c-6.5,0-11.6-7.9-11.6-7.9c2-1.8,5.4-7.6,10.2-7.6s6.9,2.6,6.9,2.6l0.5-0.9c0,0-2.3-7.9-8.6-7.9c-6.4,0-13.1,10.4-17.1,12.8
191
+ c0,0,5.4,12.9,17.3,12.9c10,0,12.5-9.5,13-11.9c1.3-0.2,2.4-0.4,3.2-0.5c0.2-0.5,0.5-1.5,0.3-2.8c-4,1.5-10,3.3-17.1,3.3
192
+ C-292.7,137-292.7,137.2-292.6,137.5z"/>
193
+ <linearGradient id="SVGID_15_" gradientUnits="userSpaceOnUse" x1="-281.7962" y1="142.4813" x2="-281.7962" y2="137.3489">
194
+ <stop offset="0" style="stop-color:#66BB6A"/>
195
+ <stop offset="1" style="stop-color:#378F43"/>
196
+ </linearGradient>
197
+ <path class="st17" d="M-279.1,137.1l-1.2,0.1c0,0.1-0.1,0.2-0.2,0.3c-0.2,0.4-0.4,0.7-0.6,1.1c-0.1,0.2-0.2,0.3-0.3,0.5
198
+ c-0.2,0.4-0.5,0.8-0.8,1.1c-0.1,0.1-0.1,0.1-0.2,0.2c-0.7,0.9-1.4,1.7-2.2,2.3l2.5,1.1C-280.1,141.2-279.3,138.2-279.1,137.1z"/>
199
+ </g>
200
+ </g>
201
+ <g>
202
+ <defs>
203
+ <circle id="SVGID_16_" cx="-199.4" cy="136.1" r="16.6"/>
204
+ </defs>
205
+ <clipPath id="SVGID_17_">
206
+ <use xlink:href="#SVGID_16_" style="overflow:visible;"/>
207
+ </clipPath>
208
+ <path class="st18" d="M-197,137.3c0.1,0.1,0.2,0.3,0.2,0.3c2.9,0.4,7.1,0,10.3-0.5c-1.8,3.9-5.1,6.5-8,6.5c-5.6,0-9.9-6.8-9.9-6.8
209
+ c1.7-1.5,4.6-6.5,8.7-6.5s5.9,2.3,5.9,2.3l0.5-0.7c0,0-1.9-6.7-7.4-6.7s-11.2,8.9-14.6,11c0,0,4.7,11,14.8,11
210
+ c8.5,0,10.7-8.2,11.1-10.2c1.1-0.2,2.1-0.3,2.7-0.4c0.2-0.5,0.4-1.3,0.3-2.4c-3.4,1.3-8.5,2.8-14.6,2.8
211
+ C-197.1,136.9-197.1,137.1-197,137.3z"/>
212
+ </g>
213
+ </g>
214
+ <g id="Layer_2">
215
+ <path class="st19" d="M144.3,82.5c-1.9,9.6-12.1,48.2-52.5,48.2c-48.2,0-70.2-52.2-70.2-52.2c16.1-9.8,43.4-52,69.2-52
216
+ s34.9,31.9,34.9,31.9l-2.2,3.5c0,0-8.5-10.7-28-10.7S62.6,74.7,54.4,82c0,0,20.5,32.1,46.9,32.1c14.2,0,29.5-12.3,38.1-30.8
217
+ c-15,2.1-34.7,4-48.6,2.2c0,0-0.7-0.6-1-1.3c-0.4-0.9-0.5-1.8-0.5-1.8c27.6,0,51.3-6.5,67.4-12.5C152.3,30.5,119,0,78.6,0
218
+ C35.2,0,0,35.2,0,78.6c0,43.4,35.2,78.6,78.6,78.6c42.8,0,77.6-34.2,78.6-76.8C154.2,80.9,149.7,81.7,144.3,82.5z"/>
219
+ </g>
220
+ </svg>
assets/images/svg/give-icon-full-circle.svg ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ viewBox="0 0 157.2 157.2" style="enable-background:new 0 0 157.2 157.2;" xml:space="preserve">
6
+ <style type="text/css">
7
+ .st0{fill:#66BB6A;}
8
+ .st1{fill:#546E7A;}
9
+ .st2{fill:url(#SVGID_1_);}
10
+ .st3{fill:url(#SVGID_2_);}
11
+ .st4{fill:url(#SVGID_3_);}
12
+ .st5{fill:url(#SVGID_4_);}
13
+ .st6{fill:url(#SVGID_5_);}
14
+ .st7{fill:url(#SVGID_6_);}
15
+ .st8{fill:url(#SVGID_7_);}
16
+ .st9{fill:url(#SVGID_8_);}
17
+ .st10{fill:url(#SVGID_9_);}
18
+ .st11{fill:url(#SVGID_10_);}
19
+ .st12{fill:url(#SVGID_11_);}
20
+ .st13{fill:url(#SVGID_12_);}
21
+ .st14{fill:url(#SVGID_13_);}
22
+ .st15{fill:url(#SVGID_14_);}
23
+ .st16{fill:#FFFFFF;}
24
+ .st17{fill:url(#SVGID_15_);}
25
+ .st18{clip-path:url(#SVGID_17_);fill:#FFFFFF;}
26
+ .st19{clip-path:url(#SVGID_19_);fill:#FFFFFF;}
27
+ </style>
28
+ <g id="Layer_1">
29
+ </g>
30
+ <g id="Layer_2">
31
+ <circle class="st0" cx="78.6" cy="78.6" r="78.6"/>
32
+ <g>
33
+ <defs>
34
+ <circle id="SVGID_18_" cx="78.6" cy="78.6" r="78.6"/>
35
+ </defs>
36
+ <clipPath id="SVGID_1_">
37
+ <use xlink:href="#SVGID_18_" style="overflow:visible;"/>
38
+ </clipPath>
39
+ <path style="clip-path:url(#SVGID_1_);fill:#FFFFFF;" d="M89.8,84.2c0.3,0.7,1,1.3,1,1.3c13.9,1.7,33.6-0.2,48.6-2.2
40
+ c-8.6,18.5-24,30.8-38.1,30.8C74.8,114.1,54.4,82,54.4,82c8.2-7.2,21.7-30.8,41.2-30.8s28,10.7,28,10.7l2.2-3.5
41
+ c0,0-9.1-31.9-34.9-31.9s-53.2,42.3-69.2,52c0,0,22,52.2,70.2,52.2c40.4,0,50.6-38.6,52.5-48.2c5.4-0.8,9.9-1.6,12.8-2.1
42
+ c1-2.2,2.1-6.1,1.3-11.3c-16.1,6.2-40.5,13.2-69.1,13.2C89.3,82.3,89.4,83.3,89.8,84.2z"/>
43
+ </g>
44
+ </g>
45
+ </svg>
assets/images/tick-alt.png ADDED
Binary file
assets/images/tick.png ADDED
Binary file
assets/images/ui-icons_21759b_256x240.png ADDED
Binary file
assets/images/ui-icons_333333_256x240.png ADDED
Binary file
assets/images/ui-icons_999999_256x240.png ADDED
Binary file
assets/images/unionpay.png ADDED
Binary file
assets/images/visa.png ADDED
Binary file
assets/js/admin/admin-forms.js ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give Admin Forms JS
3
+ *
4
+ * @description: The Give Admin Forms scripts. Only enqueued on the give_forms CPT; used to validate fields, show/hide, and other functions
5
+ * @package: Give
6
+ * @subpackage: Assets/JS
7
+ * @copyright: Copyright (c) 2016, WordImpress
8
+ * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+ */
10
+
11
+ jQuery.noConflict();
12
+ (function ($) {
13
+ /**
14
+ * Default Radio Button
15
+ *
16
+ * @description: Allow only one radio button to be checked at a time
17
+ * @since: 1.0
18
+ */
19
+ var handle_default_radio = function () {
20
+ $('body').on( 'change', '.give-give_default_radio_inline', function(){
21
+ // Unset pre selected default level.
22
+ $('.give-give_default_radio_inline').prop( 'checked', false );
23
+
24
+ // Set level as default.
25
+ $(this).prop( 'checked', true );
26
+ });
27
+
28
+ // Note: some cases is covered in admin-scripts.js.
29
+ // For ref: handle_metabox_repeater_field_row_count, handle_metabox_repeater_field_row_remove
30
+ };
31
+
32
+
33
+ /**
34
+ * Toggle Conditional Form Fields
35
+ *
36
+ * @since: 1.0
37
+ */
38
+ var toggle_conditional_form_fields = function () {
39
+
40
+ //Price Option
41
+ var price_option = $('._give_price_option_field input:radio');
42
+
43
+ price_option.on('change', function () {
44
+
45
+ var price_option_val = $('._give_price_option_field input:radio:checked').val();
46
+ if (price_option_val === 'set') {
47
+ //set price shows
48
+ $('._give_set_price_field').show();
49
+ $('#_give_donation_levels_field').hide(); // Hide multi-val stuffs.
50
+ $('._give_display_style_field').hide(); // Hide display style setting.
51
+
52
+
53
+ } else {
54
+ //multi-value shows
55
+ $('._give_set_price_field').hide();
56
+ $('#_give_donation_levels_field').show(); // Show set stuffs.
57
+ $('._give_display_style_field').show(); // Show display style setting.
58
+ }
59
+ }).change();
60
+
61
+
62
+ //Content Option
63
+ var display_content = $('._give_display_content_field input:radio');
64
+ display_content.on('change', function () {
65
+ // Get checked radio button value.
66
+ var display_content_val = $('._give_display_content_field input:radio:checked').val();
67
+
68
+ if ( display_content_val === 'enabled') {
69
+ $('._give_content_placement_field').show();
70
+ $('._give_form_content_field').show();
71
+ } else {
72
+ $('._give_content_placement_field').hide();
73
+ $('._give_form_content_field').hide();
74
+ }
75
+ }).change();
76
+
77
+ //Terms Option
78
+ var terms_option = $('._give_terms_option_field input:radio');
79
+ terms_option.on('change', function () {
80
+ // Get checked radio button value.
81
+ var terms_option_val = $('._give_terms_option_field input:radio:checked').val();
82
+
83
+ if ( terms_option_val === 'enabled' ) {
84
+ $('._give_agree_label_field').show();
85
+ $('._give_agree_text_field').show();
86
+ } else {
87
+ $('._give_agree_label_field').hide();
88
+ $('._give_agree_text_field').hide();
89
+ }
90
+ }).change();
91
+
92
+ //Payment Display
93
+ var payment_display_option = $('._give_payment_display_field input:radio');
94
+ payment_display_option.on('change', function () {
95
+ var payment_display_option_val = $('._give_payment_display_field input:radio:checked').val();
96
+
97
+ if (payment_display_option_val === 'onpage') {
98
+ $('._give_reveal_label_field').hide();
99
+ } else {
100
+ $('._give_reveal_label_field').show();
101
+ }
102
+ }).change();
103
+
104
+ //Custom Amount
105
+ var custom_amount_option = $('._give_custom_amount_field input:radio');
106
+ custom_amount_option.on('change', function () {
107
+ var custom_amount_option_val = $('._give_custom_amount_field input:radio:checked').val();
108
+ if (custom_amount_option_val === 'disabled') {
109
+ $('._give_custom_amount_minimum_field').hide();
110
+ $('._give_custom_amount_text_field').hide();
111
+ } else {
112
+ $('._give_custom_amount_minimum_field').show();
113
+ $('._give_custom_amount_text_field').show();
114
+ }
115
+ }).change();
116
+
117
+ //Goals
118
+ var goal_option = $('._give_goal_option_field');
119
+ //Close Form when Goal Achieved
120
+ var close_form_when_goal_achieved_option = $('._give_close_form_when_goal_achieved_field input:radio');
121
+
122
+ close_form_when_goal_achieved_option.on('change', function () {
123
+ var close_form_when_goal_achieved_option_val = $('._give_close_form_when_goal_achieved_field input:radio:checked').val();
124
+ if (close_form_when_goal_achieved_option_val === 'disabled') {
125
+ $('._give_form_goal_achieved_message_field').hide();
126
+ } else {
127
+ $('._give_form_goal_achieved_message_field').show();
128
+ }
129
+ }).change();
130
+
131
+ goal_option.on('change', function () {
132
+ var goal_option = $('._give_goal_option_field input:radio:checked').val();
133
+ if (goal_option === 'disabled') {
134
+
135
+ $('._give_set_goal_field').hide();
136
+ $('._give_goal_format_field').hide();
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();
143
+ $('._give_goal_color_field').show();
144
+ $('._give_close_form_when_goal_achieved_field').show();
145
+
146
+ var close_form_when_goal_achieved_option_val = $('._give_close_form_when_goal_achieved_field input:radio:checked').val();
147
+
148
+ if (close_form_when_goal_achieved_option_val === 'enabled') {
149
+ $('._give_form_goal_achieved_message_field').show();
150
+ }
151
+ }
152
+ }).change();
153
+
154
+ //Offline Donations
155
+ var offline_customization_option = $('._give_customize_offline_donations_field input:radio');
156
+ offline_customization_option.on('change', function () {
157
+ var offline_customization_option_val = $('._give_customize_offline_donations_field input:radio:checked').val();
158
+ if ( 'enabled' === offline_customization_option_val ) {
159
+ $('._give_offline_checkout_notes_field').show();
160
+ $('._give_offline_donation_enable_billing_fields_single_field').show();
161
+ $('._give_offline_donation_subject_field').show();
162
+ $('._give_offline_donation_email_field').show();
163
+ } else {
164
+ $('._give_offline_checkout_notes_field').hide();
165
+ $('._give_offline_donation_enable_billing_fields_single_field').hide();
166
+ $('._give_offline_donation_subject_field').hide();
167
+ $('._give_offline_donation_email_field').hide();
168
+ }
169
+ }).change();
170
+ };
171
+
172
+ //Handle Repeatable Row ID
173
+ var handle_repeatable_row_ID = function () {
174
+
175
+ //Ensure for new posts that the repeater is filled
176
+ if ($('.give-level-id').text() === '') {
177
+ var row_group = $('.cmb-repeatable-grouping');
178
+ //loop through all repeatable rows and set vals
179
+ row_group.each(function (index, object) {
180
+
181
+ var row_id = $(object).data('iterator') + 1;
182
+
183
+ $(object).find('.give-level-id').text(row_id);
184
+ $(object).find('.give-level-id-input').val(row_id);
185
+
186
+ });
187
+ }
188
+
189
+ $('body').on('cmb2_add_row', function (event, row) {
190
+ set_row_ids(row);
191
+ });
192
+ $('body').on('cmb2_shift_rows_complete', function (event, self) {
193
+
194
+ var row_group = $('.cmb-repeatable-grouping');
195
+ //loop through all repeatable rows and set vals
196
+ row_group.each(function (index, object) {
197
+
198
+ var row_id = $(object).find('input.give-level-id-input').val();
199
+
200
+ $(object).find('.give-level-id').text(row_id);
201
+
202
+ });
203
+
204
+ });
205
+
206
+
207
+ /**
208
+ * Set Row IDs
209
+ *
210
+ * @description: Sets values in the Multi-level donation repeatable field
211
+ * @param row
212
+ */
213
+ function set_row_ids(row) {
214
+
215
+ var row_count = count_repeatable_rows();
216
+
217
+ //Add row ID value to hidden field
218
+ $(row).find('input.give-level-id-input').val(row_count);
219
+ //Add row ID to displayed ID
220
+ $(row).find('.give-level-id').text(row_count);
221
+
222
+ }
223
+
224
+ /**
225
+ * Loops through Multi-level repeater rows
226
+ *
227
+ * @description: First counts the rows then it compares the row count with the largest iterator count.
228
+ *
229
+ * @returns {number}
230
+ */
231
+ function count_repeatable_rows() {
232
+ var row_counter = 0;
233
+ var row_largest_number = 0;
234
+ var row_number = 0;
235
+
236
+ //Loop through repeatable rows to see what highest ID is currently
237
+ $('#_give_donation_levels_repeat > .cmb-repeatable-grouping').each(function (index, value) {
238
+
239
+ row_number = $(this).find('input.give-level-id-input').val();
240
+
241
+ if (row_number > row_largest_number) {
242
+ row_largest_number = row_number;
243
+ }
244
+
245
+ row_counter++;
246
+
247
+ });
248
+
249
+ if (typeof row_largest_number !== 'undefined' && row_largest_number >= row_counter) {
250
+ return (parseInt(row_largest_number) + 1); //ensure no duplicate rows returned
251
+ } else {
252
+ return row_counter;
253
+ }
254
+
255
+ }
256
+
257
+
258
+ };
259
+
260
+ /**
261
+ * Misc Cleanup
262
+ *
263
+ * @description: Clean up and tweaks
264
+ * @since: 1.0
265
+ */
266
+ function misc_cleanup() {
267
+
268
+ //No Value = Placeholders: determine if value is 0.00 and remove if so in favor of placeholders
269
+ $('.cmb2-text-money').each(function (index, object) {
270
+ var this_val = parseInt($(object).val());
271
+ if (!this_val) {
272
+ $(object).removeAttr('value');
273
+ }
274
+ });
275
+
276
+ }
277
+
278
+
279
+ //On DOM Ready
280
+ $(function () {
281
+
282
+ handle_default_radio();
283
+ toggle_conditional_form_fields();
284
+ handle_repeatable_row_ID();
285
+ misc_cleanup();
286
+
287
+ });
288
+
289
+
290
+ })(jQuery);
assets/js/admin/admin-forms.min.js ADDED
@@ -0,0 +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);
assets/js/admin/admin-scripts.js ADDED
@@ -0,0 +1,1839 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give Admin JS
3
+ *
4
+ * @description: The Give Admin scripts
5
+ * @package: Give
6
+ * @subpackage: Assets/JS
7
+ * @copyright: Copyright (c) 2016, WordImpress
8
+ * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+ */
10
+
11
+ jQuery.noConflict();
12
+ (function ($) {
13
+
14
+ /**
15
+ * Setup Admin Datepicker
16
+ * @since: 1.0
17
+ */
18
+ var enable_admin_datepicker = function () {
19
+ // Date picker
20
+ if ($('.give_datepicker').length > 0) {
21
+ var dateFormat = 'mm/dd/yy';
22
+ $('.give_datepicker').datepicker({
23
+ dateFormat: dateFormat
24
+ });
25
+ }
26
+ };
27
+
28
+ /**
29
+ * Setup Pretty Chosen Select Fields
30
+ */
31
+ var setup_chosen_give_selects = function () {
32
+ // Setup Chosen Selects
33
+ $('.give-select-chosen').chosen({
34
+ inherit_select_classes : true,
35
+ placeholder_text_single : give_vars.one_option,
36
+ placeholder_text_multiple: give_vars.one_or_more_option
37
+ });
38
+
39
+ // This fixes the Chosen box being 0px wide when the thickbox is opened
40
+ $('#post').on('click', '.give-thickbox', function () {
41
+ $('.give-select-chosen', '#choose-give-form').css('width', '100%');
42
+ });
43
+
44
+ };
45
+
46
+ /**
47
+ * Unformat Currency
48
+ *
49
+ * @use string give_vars.currency_decimals Number of decimals
50
+ *
51
+ * @param {string} price Price
52
+ * @param {number|bool} dp Number of decimals
53
+ *
54
+ * @returns {string}
55
+ */
56
+ function give_unformat_currency(price, dp) {
57
+ price = accounting.unformat(price, give_vars.decimal_separator).toString();
58
+ var decimal_position = price.indexOf('.');
59
+
60
+ // Set default value for number of decimals.
61
+ if (false != dp) {
62
+ price = parseFloat(price).toFixed(dp);
63
+
64
+ // If price do not have decimal value then set default number of decimals.
65
+ } else if (
66
+ ( -1 === decimal_position )
67
+ || ( give_vars.currency_decimals > price.substr(decimal_position + 1).length )
68
+ ) {
69
+ price = parseFloat(price).toFixed(give_vars.currency_decimals);
70
+ }
71
+
72
+ return price;
73
+ }
74
+
75
+ /**
76
+ * Edit donation screen JS
77
+ */
78
+ var Give_Edit_Donation = {
79
+
80
+ init: function () {
81
+ this.edit_address();
82
+ this.add_note();
83
+ this.remove_note();
84
+ this.new_donor();
85
+ this.resend_receipt();
86
+ this.variable_price_list();
87
+ },
88
+
89
+ edit_address: function () {
90
+
91
+ // Update base state field based on selected base country
92
+ $('select[name="give-payment-address[0][country]"]').change(function () {
93
+ var $this = $(this);
94
+
95
+ data = {
96
+ action : 'give_get_states',
97
+ country : $this.val(),
98
+ field_name: 'give-payment-address[0][state]'
99
+ };
100
+ $.post(ajaxurl, data, function (response) {
101
+
102
+ var state_wrap = $('#give-order-address-state-wrap');
103
+
104
+ state_wrap.find('*').not('.order-data-address-line').remove();
105
+
106
+ if ('nostates' == response) {
107
+ state_wrap.append('<input type="text" name="give-payment-address[0][state]" value="" class="give-edit-toggles medium-text"/>');
108
+ } else {
109
+ state_wrap.append(response);
110
+ state_wrap.find('select').chosen();
111
+ }
112
+ });
113
+
114
+ return false;
115
+ });
116
+
117
+ },
118
+
119
+ add_note: function () {
120
+
121
+ $('#give-add-payment-note').on('click', function (e) {
122
+ e.preventDefault();
123
+ var postData = {
124
+ action : 'give_insert_payment_note',
125
+ payment_id: $(this).data('payment-id'),
126
+ note : $('#give-payment-note').val()
127
+ };
128
+
129
+ if (postData.note) {
130
+
131
+ $.ajax({
132
+ type : 'POST',
133
+ data : postData,
134
+ url : ajaxurl,
135
+ success: function (response) {
136
+ $('#give-payment-notes-inner').append(response);
137
+ $('.give-no-payment-notes').hide();
138
+ $('#give-payment-note').val('');
139
+ }
140
+ }).fail(function (data) {
141
+ if (window.console && window.console.log) {
142
+ console.log(data);
143
+ }
144
+ });
145
+
146
+ } else {
147
+ var border_color = $('#give-payment-note').css('border-color');
148
+ $('#give-payment-note').css('border-color', 'red');
149
+ setTimeout(function () {
150
+ $('#give-payment-note').css('border-color', border_color);
151
+ }, 500);
152
+ }
153
+
154
+ });
155
+
156
+ },
157
+
158
+ remove_note: function () {
159
+
160
+ $('body').on('click', '.give-delete-payment-note', function (e) {
161
+
162
+ e.preventDefault();
163
+
164
+ if (confirm(give_vars.delete_payment_note)) {
165
+
166
+ var postData = {
167
+ action : 'give_delete_payment_note',
168
+ payment_id: $(this).data('payment-id'),
169
+ note_id : $(this).data('note-id')
170
+ };
171
+
172
+ $.ajax({
173
+ type : "POST",
174
+ data : postData,
175
+ url : ajaxurl,
176
+ success: function (response) {
177
+ $('#give-payment-note-' + postData.note_id).remove();
178
+ if (!$('.give-payment-note').length) {
179
+ $('.give-no-payment-notes').show();
180
+ }
181
+ return false;
182
+ }
183
+ }).fail(function (data) {
184
+ if (window.console && window.console.log) {
185
+ console.log(data);
186
+ }
187
+ });
188
+ return true;
189
+ }
190
+
191
+ });
192
+
193
+ },
194
+
195
+ new_donor: function () {
196
+
197
+ $('#give-donor-details').on('click', '.give-payment-new-customer, .give-payment-new-customer-cancel', function (e) {
198
+ e.preventDefault();
199
+ $('.customer-info').toggle();
200
+ $('.new-customer').toggle();
201
+
202
+ if ($('.new-customer').is(":visible")) {
203
+ $('#give-new-customer').val(1);
204
+ } else {
205
+ $('#give-new-customer').val(0);
206
+ }
207
+
208
+ });
209
+
210
+ },
211
+
212
+ resend_receipt: function () {
213
+ $('body').on('click', '#give-resend-receipt', function (e) {
214
+ return confirm(give_vars.resend_receipt);
215
+ });
216
+ },
217
+
218
+ variable_price_list: function () {
219
+ // Update variable price list whnen form changes.
220
+ $('select[name="forms"]').chosen().change(function () {
221
+ var give_form_id,
222
+ variable_prices_html_container = $('.give-donation-level');
223
+
224
+ // Check for form ID.
225
+ if (!( give_form_id = $(this).val() )) {
226
+ return false;
227
+ }
228
+
229
+ // Ajax.
230
+ $.ajax({
231
+ type : 'POST',
232
+ url : ajaxurl,
233
+ data : {
234
+ form_id : give_form_id,
235
+ payment_id: $('input[name="give_payment_id"]').val(),
236
+ action : 'give_check_for_form_price_variations_html'
237
+ },
238
+ success: function (response) {
239
+ response = response.trim();
240
+ if (response) {
241
+
242
+ // Update Variable price html.
243
+ variable_prices_html_container.html(response);
244
+
245
+ // Add chosen feature to select tag.
246
+ $('select[name="give-variable-price"]').chosen().change();
247
+ } else {
248
+ // Update Variable price html.
249
+ variable_prices_html_container.html('');
250
+ }
251
+ }
252
+ });
253
+ });
254
+
255
+ // Add total donation amount if level changes.
256
+ $('#give-donation-overview').on('change', 'select[name="give-variable-price"]', function(){
257
+ var prices = jQuery(this).data('prices'),
258
+ $total_amount = $('#give-payment-total')
259
+
260
+ if( $(this).val() in prices ) {
261
+ $total_amount
262
+ .val( prices[$(this).val()] )
263
+ .css( 'background-color', 'yellow' );
264
+
265
+ window.setTimeout(
266
+ function(){
267
+ $total_amount.css( 'background-color', 'white' )
268
+ },
269
+ 1000
270
+ );
271
+ }
272
+ });
273
+ }
274
+
275
+ };
276
+
277
+ /**
278
+ * Settings screen JS
279
+ */
280
+ var Give_Settings = {
281
+
282
+ init: function () {
283
+ this.toggle_options();
284
+ this.main_setting_update_notice();
285
+ this.verify_settings();
286
+ },
287
+
288
+ toggle_options: function () {
289
+
290
+ /**
291
+ * Email access
292
+ */
293
+ var email_access = $('input[name="email_access"]', '.give-setting-tab-body-general');
294
+ email_access.on('change', function () {
295
+ var field_value = $('input[name="email_access"]:checked', '.give-setting-tab-body-general').val();
296
+ if ('enabled' === field_value) {
297
+ $('#recaptcha_key').parents('tr').show();
298
+ $('#recaptcha_secret').parents('tr').show();
299
+ } else {
300
+ $('#recaptcha_key').parents('tr').hide();
301
+ $('#recaptcha_secret').parents('tr').hide();
302
+ }
303
+ }).change();
304
+
305
+ /**
306
+ * Form featured image
307
+ */
308
+ var form_featured_image = $('input[name="form_featured_img"]', '.give-setting-tab-body-display');
309
+ form_featured_image.on('change', function () {
310
+ var field_value = $('input[name="form_featured_img"]:checked', '.give-setting-tab-body-display').val();
311
+ if ('enabled' === field_value) {
312
+ $('#featured_image_size').parents('tr').show();
313
+ } else {
314
+ $('#featured_image_size').parents('tr').hide();
315
+ }
316
+ }).change();
317
+
318
+ /**
319
+ * Terms and Conditions
320
+ */
321
+ var terms_and_conditions = $('input[name="terms"]', '.give-setting-tab-body-display');
322
+ terms_and_conditions.on('change', function () {
323
+ var field_value = $('input[name="terms"]:checked', '.give-setting-tab-body-display').val();
324
+ if ('enabled' === field_value) {
325
+ $('#agree_to_terms_label').parents('tr').show();
326
+ $('#wp-agreement_text-wrap').parents('tr').show();
327
+ } else {
328
+ $('#agree_to_terms_label').parents('tr').hide();
329
+ $('#wp-agreement_text-wrap').parents('tr').hide();
330
+ }
331
+ }).change();
332
+
333
+ /**
334
+ * Disable admin notification
335
+ */
336
+ var admin_notification = $('input[name="admin_notices"]', '.give-setting-tab-body-emails');
337
+ admin_notification.on('change', function () {
338
+ var field_value = $('input[name="admin_notices"]:checked', '.give-setting-tab-body-emails').val();
339
+ if ('enabled' === field_value) {
340
+ $('#donation_notification_subject').parents('tr').show();
341
+ $('#wp-donation_notification-wrap').parents('tr').show();
342
+ $('#admin_notice_emails').parents('tr').show();
343
+ } else {
344
+ $('#donation_notification_subject').parents('tr').hide();
345
+ $('#wp-donation_notification-wrap').parents('tr').hide();
346
+ $('#admin_notice_emails').parents('tr').hide();
347
+ }
348
+ }).change();
349
+ },
350
+
351
+ main_setting_update_notice: function () {
352
+ var $setting_message = $('#setting-error-give-setting-updated');
353
+ if ($setting_message.length) {
354
+
355
+ // auto hide setting message in 5 seconds.
356
+ window.setTimeout(
357
+ function () {
358
+ $setting_message.slideUp();
359
+ },
360
+ 5000
361
+ );
362
+ }
363
+ },
364
+
365
+ verify_settings: function () {
366
+ var success_setting = $('#success_page');
367
+ var failure_setting = $('#failure_page');
368
+
369
+ /**
370
+ * Verify success and failure page.
371
+ */
372
+ success_setting.add(failure_setting).change(function () {
373
+ if (success_setting.val() === failure_setting.val()) {
374
+ var notice_html = '<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>',
375
+ $notice_container = $('#setting-error-give-matched-success-failure-page');
376
+
377
+ // Bailout.
378
+ if ($notice_container.length) {
379
+ return false;
380
+ }
381
+
382
+ // Add html.
383
+ $('h2', '#give-mainform').after(notice_html);
384
+ $notice_container = $('#setting-error-give-matched-success-failure-page');
385
+
386
+ // Add event to dismiss button.
387
+ $('.notice-dismiss', $notice_container).click(function () {
388
+ $notice_container.remove();
389
+ });
390
+
391
+ // Unset setting field.
392
+ $(this).val('');
393
+ }
394
+ }).change();
395
+ }
396
+ };
397
+
398
+ /**
399
+ * Reports / Exports / Tools screen JS
400
+ */
401
+ var Give_Reports = {
402
+
403
+ init: function () {
404
+ this.date_options();
405
+ this.donors_export();
406
+ this.recount_stats();
407
+ },
408
+
409
+ date_options: function () {
410
+
411
+ // Show hide extended date options
412
+ $('#give-graphs-date-options').change(function () {
413
+ var $this = $(this);
414
+ if ('other' === $this.val()) {
415
+ $('#give-date-range-options').show();
416
+ } else {
417
+ $('#give-date-range-options').hide();
418
+ }
419
+ });
420
+
421
+ },
422
+
423
+ donors_export: function () {
424
+
425
+ // Show / hide Donation Form option when exporting donors
426
+ $('#give_customer_export_form').change(function () {
427
+
428
+ var $this = $(this),
429
+ form_id = $('option:selected', $this).val(),
430
+ customer_export_option = $('#give_customer_export_option');
431
+
432
+ if ('0' === $this.val()) {
433
+ customer_export_option.show();
434
+ } else {
435
+ customer_export_option.hide();
436
+ }
437
+
438
+ var price_options_select = $('.give_price_options_select');
439
+
440
+ // On Form Select, Check if Variable Prices Exist
441
+ if (parseInt(form_id) != 0) {
442
+ var data = {
443
+ action : 'give_check_for_form_price_variations',
444
+ form_id : form_id,
445
+ all_prices: true
446
+ };
447
+
448
+ $.post(ajaxurl, data, function (response) {
449
+ price_options_select.remove();
450
+ $('#give_customer_export_form_chosen').after(response);
451
+ });
452
+ } else {
453
+ price_options_select.remove();
454
+ }
455
+
456
+ });
457
+
458
+ },
459
+
460
+ recount_stats: function () {
461
+
462
+ $('body').on('change', '#recount-stats-type', function () {
463
+
464
+ var export_form = $('#give-tools-recount-form');
465
+ var selected_type = $('option:selected', this).data('type');
466
+ var submit_button = $('#recount-stats-submit');
467
+ var forms = $('#tools-form-dropdown');
468
+
469
+ // Reset the form
470
+ export_form.find('.notice-wrap').remove();
471
+ submit_button.removeClass('button-disabled').attr('disabled', false);
472
+ forms.hide();
473
+ $('.give-recount-stats-descriptions span').hide();
474
+
475
+ if ('recount-form' === selected_type) {
476
+
477
+ forms.show();
478
+ forms.find('.give-select-chosen').css({
479
+ 'width' : 'auto',
480
+ 'min-width': '250px'
481
+ });
482
+
483
+ } else if ('reset-stats' === selected_type) {
484
+
485
+ export_form.append('<div class="notice-wrap"></div>');
486
+ var notice_wrap = export_form.find('.notice-wrap');
487
+ notice_wrap.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>');
488
+
489
+ submit_button.addClass('button-disabled').attr('disabled', 'disabled');
490
+
491
+ } else {
492
+
493
+ forms.hide();
494
+ forms.val(0);
495
+
496
+ }
497
+
498
+ $('#' + selected_type).show();
499
+ });
500
+
501
+ $('body').on('change', '#confirm-reset', function () {
502
+ var checked = $(this).is(':checked');
503
+ if (checked) {
504
+ $('#recount-stats-submit').removeClass('button-disabled').removeAttr('disabled');
505
+ } else {
506
+ $('#recount-stats-submit').addClass('button-disabled').attr('disabled', 'disabled');
507
+ }
508
+ });
509
+
510
+ $('#give-tools-recount-form').submit(function (e) {
511
+ var selection = $('#recount-stats-type').val();
512
+ var export_form = $(this);
513
+ var selected_type = $('option:selected', this).data('type');
514
+
515
+ if ('reset-stats' === selected_type) {
516
+ var is_confirmed = $('#confirm-reset').is(':checked');
517
+ if (is_confirmed) {
518
+ return true;
519
+ } else {
520
+ has_errors = true;
521
+ }
522
+ }
523
+
524
+ export_form.find('.notice-wrap').remove();
525
+
526
+ export_form.append('<div class="notice-wrap"></div>');
527
+ var notice_wrap = export_form.find('.notice-wrap');
528
+ var has_errors = false;
529
+
530
+ if (null === selection || 0 === selection) {
531
+ // Needs to pick a method give_vars.batch_export_no_class
532
+ notice_wrap.html('<div class="updated error"><p>' + give_vars.batch_export_no_class + '</p></div>');
533
+ has_errors = true;
534
+ }
535
+
536
+ if ('recount-form' === selected_type) {
537
+
538
+ var selected_form = $('select[name="form_id"]').val();
539
+ if (selected_form == 0) {
540
+ // Needs to pick give_vars.batch_export_no_reqs
541
+ notice_wrap.html('<div class="updated error"><p>' + give_vars.batch_export_no_reqs + '</p></div>');
542
+ has_errors = true;
543
+ }
544
+
545
+ }
546
+
547
+ if (has_errors) {
548
+ export_form.find('.button-disabled').removeClass('button-disabled');
549
+ return false;
550
+ }
551
+ });
552
+ }
553
+
554
+ };
555
+
556
+ /**
557
+ * Export screen JS
558
+ */
559
+ var Give_Export = {
560
+
561
+ init: function () {
562
+ this.submit();
563
+ this.dismiss_message();
564
+ },
565
+
566
+ submit: function () {
567
+
568
+ var self = this;
569
+
570
+ $(document.body).on('submit', '.give-export-form', function (e) {
571
+ e.preventDefault();
572
+
573
+ var submitButton = $(this).find('input[type="submit"]');
574
+
575
+ if (!submitButton.hasClass('button-disabled')) {
576
+
577
+ var data = $(this).serialize();
578
+
579
+ submitButton.addClass('button-disabled');
580
+ $(this).find('.notice-wrap').remove();
581
+ $(this).append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>');
582
+
583
+ // start the process
584
+ self.process_step(1, data, self);
585
+
586
+ }
587
+
588
+ });
589
+ },
590
+
591
+ process_step: function (step, data, self) {
592
+
593
+ $.ajax({
594
+ type : 'POST',
595
+ url : ajaxurl,
596
+ data : {
597
+ form : data,
598
+ action: 'give_do_ajax_export',
599
+ step : step,
600
+ },
601
+ dataType: 'json',
602
+ success : function (response) {
603
+
604
+ if ('done' == response.step || response.error || response.success) {
605
+
606
+ // We need to get the actual in progress form, not all forms on the page
607
+ var export_form = $('.give-export-form').find('.give-progress').parent().parent();
608
+ var notice_wrap = export_form.find('.notice-wrap');
609
+
610
+ export_form.find('.button-disabled').removeClass('button-disabled');
611
+
612
+ if (response.error) {
613
+
614
+ var error_message = response.message;
615
+ notice_wrap.html('<div class="updated error"><p>' + error_message + '</p></div>');
616
+
617
+ } else if (response.success) {
618
+
619
+ var success_message = response.message;
620
+ notice_wrap.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>' + success_message + '<span class="notice-dismiss"></span></p></div>');
621
+
622
+ } else {
623
+
624
+ notice_wrap.remove();
625
+ window.location = response.url;
626
+
627
+ }
628
+
629
+ } else {
630
+ $('.give-progress div').animate({
631
+ width: response.percentage + '%',
632
+ }, 50, function () {
633
+ // Animation complete.
634
+ });
635
+ self.process_step(parseInt(response.step), data, self);
636
+ }
637
+
638
+ }
639
+ }).fail(function (response) {
640
+ if (window.console && window.console.log) {
641
+ console.log(response);
642
+ }
643
+
644
+ $('.notice-wrap').append(response.responseText);
645
+
646
+ });
647
+
648
+ },
649
+
650
+ dismiss_message: function () {
651
+ $('body').on('click', '#give-batch-success .notice-dismiss', function () {
652
+ $('#give-batch-success').parent().slideUp('fast');
653
+ });
654
+ }
655
+
656
+ };
657
+
658
+ /**
659
+ * Admin Status Select Field Change
660
+ *
661
+ * @description: Handle status switching
662
+ * @since: 1.0
663
+ */
664
+ var handle_status_change = function () {
665
+
666
+ //When sta
667
+ $('select[name="give-payment-status"]').on('change', function () {
668
+
669
+ var status = $(this).val();
670
+
671
+ $('.give-donation-status').removeClass(function (index, css) {
672
+ return (css.match(/\bstatus-\S+/g) || []).join(' ');
673
+ }).addClass('status-' + status);
674
+
675
+ });
676
+
677
+ };
678
+
679
+ /**
680
+ * Donor management screen JS
681
+ */
682
+ var Give_Customer = {
683
+
684
+ init : function () {
685
+ this.edit_customer();
686
+ this.add_email();
687
+ this.user_search();
688
+ this.remove_user();
689
+ this.cancel_edit();
690
+ this.change_country();
691
+ this.add_note();
692
+ this.delete_checked();
693
+ },
694
+ edit_customer : function () {
695
+ $('body').on('click', '#edit-customer', function (e) {
696
+ e.preventDefault();
697
+ $('#give-customer-card-wrapper .editable').hide();
698
+ $('#give-customer-card-wrapper .edit-item').fadeIn().css('display', 'block');
699
+ });
700
+ },
701
+ user_search : function () {
702
+ // Upon selecting a user from the dropdown, we need to update the User ID
703
+ $('body').on('click.giveSelectUser', '.give_user_search_results a', function (e) {
704
+ e.preventDefault();
705
+ var user_id = $(this).data('userid');
706
+ $('input[name="customerinfo[user_id]"]').val(user_id);
707
+ });
708
+ },
709
+ remove_user : function () {
710
+ $('body').on('click', '#disconnect-customer', function (e) {
711
+ e.preventDefault();
712
+ var customer_id = $('input[name="customerinfo[id]"]').val();
713
+
714
+ var postData = {
715
+ give_action: 'disconnect-userid',
716
+ customer_id: customer_id,
717
+ _wpnonce : $('#edit-customer-info #_wpnonce').val()
718
+ };
719
+
720
+ $.post(ajaxurl, postData, function (response) {
721
+
722
+ window.location.href = window.location.href;
723
+
724
+ }, 'json');
725
+
726
+ });
727
+ },
728
+ cancel_edit : function () {
729
+ $('body').on('click', '#give-edit-customer-cancel', function (e) {
730
+ e.preventDefault();
731
+ $('#give-customer-card-wrapper .edit-item').hide();
732
+ $('#give-customer-card-wrapper .editable').show();
733
+ $('.give_user_search_results').html('');
734
+ });
735
+ },
736
+ change_country: function () {
737
+ $('select[name="customerinfo[country]"]').change(function () {
738
+ var $this = $(this);
739
+ var data = {
740
+ action : 'give_get_states',
741
+ country : $this.val(),
742
+ field_name: 'customerinfo[state]'
743
+ };
744
+ $.post(ajaxurl, data, function (response) {
745
+ if ('nostates' == response) {
746
+ $(':input[name="customerinfo[state]"]').replaceWith('<input type="text" name="' + data.field_name + '" value="" class="give-edit-toggles medium-text"/>');
747
+ } else {
748
+ $(':input[name="customerinfo[state]"]').replaceWith(response);
749
+ }
750
+ });
751
+
752
+ return false;
753
+ });
754
+ },
755
+ add_note : function () {
756
+ $('body').on('click', '#add-customer-note', function (e) {
757
+ e.preventDefault();
758
+ var postData = {
759
+ give_action : 'add-customer-note',
760
+ customer_id : $('#customer-id').val(),
761
+ customer_note : $('#customer-note').val(),
762
+ add_customer_note_nonce: $('#add_customer_note_nonce').val()
763
+ };
764
+
765
+ if (postData.customer_note) {
766
+
767
+ $.ajax({
768
+ type : "POST",
769
+ data : postData,
770
+ url : ajaxurl,
771
+ success: function (response) {
772
+ $('#give-customer-notes').prepend(response);
773
+ $('.give-no-customer-notes').hide();
774
+ $('#customer-note').val('');
775
+ }
776
+ }).fail(function (data) {
777
+ if (window.console && window.console.log) {
778
+ console.log(data);
779
+ }
780
+ });
781
+
782
+ } else {
783
+ var border_color = $('#customer-note').css('border-color');
784
+ $('#customer-note').css('border-color', 'red');
785
+ setTimeout(function () {
786
+ $('#customer-note').css('border-color', border_color);
787
+ }, 500);
788
+ }
789
+ });
790
+ },
791
+ delete_checked: function () {
792
+ $('#give-customer-delete-confirm').change(function () {
793
+ var records_input = $('#give-customer-delete-records');
794
+ var submit_button = $('#give-delete-customer');
795
+
796
+ if ($(this).prop('checked')) {
797
+ records_input.attr('disabled', false);
798
+ submit_button.attr('disabled', false);
799
+ } else {
800
+ records_input.attr('disabled', true);
801
+ records_input.prop('checked', false);
802
+ submit_button.attr('disabled', true);
803
+ }
804
+ });
805
+ },
806
+ add_email : function () {
807
+ if (!$('#add-customer-email').length) {
808
+ return;
809
+ }
810
+
811
+ $(document.body).on('click', '#add-customer-email', function (e) {
812
+ e.preventDefault();
813
+ var button = $(this);
814
+ var wrapper = button.parent();
815
+
816
+ wrapper.parent().find('.notice-wrap').remove();
817
+ wrapper.find('.spinner').css('visibility', 'visible');
818
+ button.attr('disabled', true);
819
+
820
+ var customer_id = wrapper.find('input[name="customer-id"]').val();
821
+ var email = wrapper.find('input[name="additional-email"]').val();
822
+ var primary = wrapper.find('input[name="make-additional-primary"]').is(':checked');
823
+ var nonce = wrapper.find('input[name="add_email_nonce"]').val();
824
+
825
+ var postData = {
826
+ give_action: 'add_donor_email',
827
+ customer_id: customer_id,
828
+ email : email,
829
+ primary : primary,
830
+ _wpnonce : nonce
831
+ };
832
+
833
+ $.post(ajaxurl, postData, function (response) {
834
+
835
+ if (true === response.success) {
836
+ window.location.href = response.redirect;
837
+ } else {
838
+ button.attr('disabled', false);
839
+ wrapper.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>' + response.message + '</p></div></div>');
840
+ wrapper.find('.spinner').css('visibility', 'hidden');
841
+ }
842
+
843
+ }, 'json');
844
+
845
+ });
846
+ },
847
+ };
848
+
849
+ /**
850
+ * API screen JS
851
+ */
852
+ var API_Screen = {
853
+
854
+ init: function () {
855
+ this.revoke_api_key();
856
+ this.regenerate_api_key();
857
+ },
858
+
859
+ revoke_api_key : function () {
860
+ $('body').on('click', '.give-revoke-api-key', function (e) {
861
+ return confirm(give_vars.revoke_api_key);
862
+ });
863
+ },
864
+ regenerate_api_key: function () {
865
+ $('body').on('click', '.give-regenerate-api-key', function (e) {
866
+ return confirm(give_vars.regenerate_api_key);
867
+ });
868
+ }
869
+ };
870
+
871
+ /**
872
+ * Edit Donation form screen Js
873
+ */
874
+ var Edit_Form_Screen = {
875
+ init: function () {
876
+ this.handle_metabox_tab_click();
877
+ this.setup_colorpicker_fields();
878
+ this.setup_media_fields();
879
+ this.setup_repeatable_fields();
880
+ this.handle_repeater_group_events();
881
+
882
+ // Multi level repeater field js.
883
+ this.handle_multi_levels_repeater_group_events();
884
+ },
885
+
886
+ /**
887
+ * Toggle metabox tab if mentioned in url.
888
+ */
889
+ handle_metabox_tab_click: function () {
890
+ var $tab_links = $('.give-metabox-tabs a');
891
+
892
+ $tab_links.on('click', function (e) {
893
+ e.preventDefault();
894
+ var $li_parent = $(this).parent(),
895
+ $sub_field = $('ul.give-metabox-sub-tabs', $li_parent),
896
+ has_sub_field = $sub_field.length,
897
+ $all_tab_links_li = $tab_links.parents('li'),
898
+ $all_sub_fields = $('ul.give-metabox-sub-tabs'),
899
+ in_sub_fields = $(this).parents('ul.give-metabox-sub-tabs').length;
900
+
901
+ if ( has_sub_field ) {
902
+ $li_parent.toggleClass('active');
903
+ $sub_field.toggleClass('give-hidden');
904
+
905
+ var $active_subtab_li = $( 'li.active', 'ul.give-metabox-sub-tabs' );
906
+
907
+ // Show hide sub fields if any and exit.
908
+ $all_sub_fields.not($sub_field).addClass('give-hidden');
909
+ $all_tab_links_li.not($li_parent).removeClass('active');
910
+
911
+ $active_subtab_li.addClass('active');
912
+
913
+ return false;
914
+ } else if ( ! in_sub_fields ) {
915
+ // Hide all tab and sub tabs.
916
+ $all_tab_links_li.each(function (index, item) {
917
+ item = $(item);
918
+ item.removeClass('active');
919
+
920
+ if (item.hasClass('has-sub-fields')) {
921
+ $('ul.give-metabox-sub-tabs', item).addClass('give-hidden');
922
+ }
923
+ });
924
+ } else if( in_sub_fields ) {
925
+ // Hide all sub tabs.
926
+ $('ul.give-metabox-sub-tabs').addClass('give-hidden');
927
+ $all_tab_links_li.removeClass('active');
928
+
929
+ // Hide all tab inside sub tabs.
930
+ $(this).parents('ul.give-metabox-sub-tabs')
931
+ .removeClass('give-hidden')
932
+ .children('li')
933
+ .removeClass('active');
934
+
935
+ // Add active class to parent li.
936
+ $(this).parents('li.has-sub-fields').addClass('active');
937
+ }
938
+
939
+ // Add active class to current tab link.
940
+ $(this).parent().addClass('active');
941
+
942
+ // Hide all tab contents.
943
+ $('.give_options_panel').addClass('give-hidden');
944
+
945
+ // Show tab content.
946
+ $($(this).attr('href')).removeClass('give-hidden');
947
+
948
+ return false;
949
+ });
950
+
951
+ // Auto open tab if mentioned in url.
952
+ if (location.hash.length) {
953
+ var $current_active_tab = $('a[href="' + location.hash + '"]', '.give-metabox-tabs');
954
+
955
+ if ($current_active_tab.length) {
956
+ $current_active_tab.trigger('click');
957
+ }
958
+ }
959
+ },
960
+
961
+ /**
962
+ * Initialize colorpicker.
963
+ */
964
+ setup_colorpicker_fields: function () {
965
+ $(document).ready(function () {
966
+ var $colorpicker_fields = $('.give-colorpicker');
967
+
968
+ if ($colorpicker_fields.length) {
969
+ $colorpicker_fields.each(function (index, item) {
970
+ var $item = $(item);
971
+
972
+ // Bailout: do not automatically initialize colorpicker for repeater field group template.
973
+ if ($item.parents('.give-template').length) {
974
+ return;
975
+ }
976
+
977
+ $item.wpColorPicker();
978
+ });
979
+ }
980
+ })
981
+ },
982
+
983
+ setup_media_fields: function() {
984
+ var give_media_uploader;
985
+
986
+ $('body').on( 'click', '.give-media-upload', function (e) {
987
+ e.preventDefault();
988
+ window.give_media_uploader_input_field = $(this);
989
+
990
+ // If the uploader object has already been created, reopen the dialog
991
+ if (give_media_uploader) {
992
+ give_media_uploader.open();
993
+ return;
994
+ }
995
+ // Extend the wp.media object
996
+ give_media_uploader = wp.media.frames.file_frame = wp.media({
997
+ title: give_vars.metabox_fields.media.button_title,
998
+ button: {
999
+ text: give_vars.metabox_fields.media.button_title
1000
+ }, multiple: false
1001
+ });
1002
+
1003
+ // When a file is selected, grab the URL and set it as the text field's value
1004
+ give_media_uploader.on('select', function () {
1005
+ var attachment = give_media_uploader.state().get('selection').first().toJSON(),
1006
+ $input_field = window.give_media_uploader_input_field.prev(),
1007
+ fvalue= ( 'id' === $input_field.data('fvalue') ? attachment.id : attachment.url );
1008
+
1009
+ console.log($input_field);
1010
+
1011
+ $input_field.val(fvalue);
1012
+ });
1013
+ // Open the uploader dialog
1014
+ give_media_uploader.open();
1015
+ })
1016
+ },
1017
+
1018
+ /**
1019
+ * Setup repeater field.
1020
+ */
1021
+ setup_repeatable_fields: function () {
1022
+ jQuery(function () {
1023
+ jQuery('.give-repeatable-field-section').each(function () {
1024
+ var $this = $(this);
1025
+
1026
+ // Note: Do not change option params, it can break repeatable fields functionality.
1027
+ var options = {
1028
+ wrapper : '.give-repeatable-fields-section-wrapper',
1029
+ container : '.container',
1030
+ row : '.give-row',
1031
+ add : '.give-add-repeater-field-section-row',
1032
+ remove : '.give-remove',
1033
+ move : '.give-move',
1034
+ template : '.give-template',
1035
+ confirm_before_remove_row : true,
1036
+ confirm_before_remove_row_text: give_vars.confirm_before_remove_row_text,
1037
+ is_sortable : true,
1038
+ before_add : null,
1039
+ after_add : handle_metabox_repeater_field_row_count,
1040
+ //after_add: after_add, Note: after_add is internal function in repeatable-fields.js. Uncomment this can cause of js error.
1041
+ before_remove : null,
1042
+ after_remove : handle_metabox_repeater_field_row_remove,
1043
+ sortable_options : {
1044
+ placeholder: "give-ui-placeholder-state-highlight",
1045
+ start : function (event, ui) {
1046
+ $('body').trigger('repeater_field_sorting_start', [ui.item]);
1047
+ },
1048
+ stop : function (event, ui) {
1049
+ $('body').trigger('repeater_field_sorting_stop', [ui.item]);
1050
+ },
1051
+ update : function (event, ui) {
1052
+ // Do not allow any row at position 0.
1053
+ if (ui.item.next().hasClass('give-template')) {
1054
+ ui.item.next().after(ui.item);
1055
+ }
1056
+
1057
+ var $rows = $('.give-row', $this).not('.give-template');
1058
+
1059
+ if ($rows.length) {
1060
+ var row_count = 1;
1061
+ $rows.each(function (index, item) {
1062
+ // Set name for fields.
1063
+ var $fields = $('.give-field, label', $(item));
1064
+
1065
+ if ($fields.length) {
1066
+ $fields.each(function () {
1067
+ var $parent = $(this).parents('.give-field-wrap'),
1068
+ $currentElement = $(this);
1069
+
1070
+ $.each(this.attributes, function (index, element) {
1071
+ var old_class_name_prefix = this.value.replace(/\[/g, '_').replace(/]/g, ''),
1072
+ old_class_name = old_class_name_prefix + '_field',
1073
+ new_class_name = '',
1074
+ new_class_name_prefix = '';
1075
+
1076
+ // Bailout.
1077
+ if (!this.value) {
1078
+ return;
1079
+ }
1080
+
1081
+ // Reorder index.
1082
+ this.value = this.value.replace(/\[\d+\]/g, '[' + (row_count - 1) + ']');
1083
+ new_class_name_prefix = this.value.replace(/\[/g, '_').replace(/]/g, '');
1084
+
1085
+ // Update class name.
1086
+ if ($parent.hasClass(old_class_name)) {
1087
+ new_class_name = new_class_name_prefix + '_field';
1088
+ $parent.removeClass(old_class_name).addClass(new_class_name);
1089
+ }
1090
+
1091
+ // Update field id.
1092
+ if (old_class_name_prefix == $currentElement.attr('id')) {
1093
+ $currentElement.attr('id', new_class_name_prefix);
1094
+ }
1095
+ });
1096
+ });
1097
+ }
1098
+
1099
+ row_count++;
1100
+ });
1101
+
1102
+ // Fire event.
1103
+ $this.trigger('repeater_field_row_reordered', [ui.item]);
1104
+ }
1105
+ }
1106
+ }
1107
+ //row_count_placeholder: '{{row-count-placeholder}}' Note: do not modify this param otherwise it will break repeatable field functionality.
1108
+ };
1109
+
1110
+ jQuery(this).repeatable_fields(options);
1111
+ });
1112
+ });
1113
+ },
1114
+
1115
+ /**
1116
+ * Handle repeater field events.
1117
+ */
1118
+ handle_repeater_group_events: function () {
1119
+ var $repeater_fields = $('.give-repeatable-field-section'),
1120
+ $body = $('body');
1121
+
1122
+ // Auto toggle repeater group
1123
+ $body.on('click', '.give-row-head button', function () {
1124
+ var $parent = $(this).closest('tr');
1125
+ $parent.toggleClass('closed');
1126
+ $('.give-row-body', $parent).toggle();
1127
+ });
1128
+
1129
+ // Reset header title when new row added.
1130
+ $repeater_fields.on('repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered', function () {
1131
+ handle_repeater_group_add_number_suffix($(this));
1132
+ });
1133
+
1134
+ // Disable editor when sorting start.
1135
+ $body.on('repeater_field_sorting_start', function (e, row) {
1136
+ var $textarea = $('.wp-editor-area', row);
1137
+
1138
+ if ($textarea.length) {
1139
+ $textarea.each(function (index, item) {
1140
+ window.setTimeout(
1141
+ function () {
1142
+ tinyMCE.execCommand('mceRemoveEditor', true, $(item).attr('id'));
1143
+ },
1144
+ 300
1145
+ );
1146
+ });
1147
+ }
1148
+ });
1149
+
1150
+ // Enable editor when sorting stop.
1151
+ $body.on('repeater_field_sorting_stop', function (e, row) {
1152
+ var $textarea = $('.wp-editor-area', row);
1153
+
1154
+ if ($textarea.length) {
1155
+ $textarea.each(function (index, item) {
1156
+ window.setTimeout(
1157
+ function () {
1158
+ var textarea_id = $(item).attr('id');
1159
+ tinyMCE.execCommand('mceAddEditor', true, textarea_id);
1160
+
1161
+ // Switch editor to tmce mode to fix some glitch which appear when you reorder rows.
1162
+ window.setTimeout(function () {
1163
+ // Hack to show tmce mode.
1164
+ switchEditors.go(textarea_id, 'html');
1165
+ $('#' + textarea_id + '-tmce').trigger('click');
1166
+ }, 100);
1167
+ },
1168
+ 300
1169
+ );
1170
+ });
1171
+ }
1172
+ });
1173
+
1174
+ // Process jobs on document load for repeater fields.
1175
+ $repeater_fields.each(function (index, item) {
1176
+ // Reset title on document load for already exist groups.
1177
+ var $item = $(item);
1178
+ handle_repeater_group_add_number_suffix($item);
1179
+
1180
+ // Close all tabs when page load.
1181
+ if (parseInt($item.data('close-tabs'))) {
1182
+ $('.give-row-head button', $item).trigger('click');
1183
+ $('.give-template', $item).removeClass('closed');
1184
+ $('.give-template .give-row-body', $item).show();
1185
+ }
1186
+ });
1187
+
1188
+ // Setup colorpicker field when row added.
1189
+ $repeater_fields.on('repeater_field_new_row_added', function (e, container, new_row) {
1190
+ $('.give-colorpicker', $(this)).each(function (index, item) {
1191
+ var $item = $(item);
1192
+
1193
+ // Bailout: skip already init colorpocker fields.
1194
+ if ($item.parents('.wp-picker-container').length || $item.parents('.give-template').length) {
1195
+ return;
1196
+ }
1197
+
1198
+ $item.wpColorPicker();
1199
+ });
1200
+
1201
+ // Load WordPress editor by ajax..
1202
+ var wysiwyg_editor_container = $('div[data-wp-editor]', new_row);
1203
+
1204
+ if (wysiwyg_editor_container.length) {
1205
+ wysiwyg_editor_container.each(function (index, item) {
1206
+ var $item = $(item),
1207
+ wysiwyg_editor = $('.wp-editor-wrap', $item),
1208
+ textarea = $('textarea', $item),
1209
+ textarea_id = 'give_wysiwyg_unique_' + Math.random().toString().replace('.', '_'),
1210
+ wysiwyg_editor_label = wysiwyg_editor.prev();
1211
+
1212
+ textarea.attr('id', textarea_id);
1213
+
1214
+ $.post(
1215
+ ajaxurl,
1216
+ {
1217
+ action : 'give_load_wp_editor',
1218
+ wp_editor : $item.data('wp-editor'),
1219
+ wp_editor_id : textarea_id,
1220
+ textarea_name: $('textarea', $item).attr('name')
1221
+ },
1222
+ function (res) {
1223
+ wysiwyg_editor.remove();
1224
+ wysiwyg_editor_label.after(res);
1225
+
1226
+ // Setup qt data for editor.
1227
+ tinyMCEPreInit.qtInit[textarea.attr('id')] = $.extend(
1228
+ true,
1229
+ tinyMCEPreInit.qtInit['_give_agree_text'],
1230
+ {id: textarea_id}
1231
+ );
1232
+
1233
+ // Setup mce data for editor.
1234
+ tinyMCEPreInit.mceInit[textarea_id] = $.extend(
1235
+ true,
1236
+ tinyMCEPreInit.mceInit['_give_agree_text'],
1237
+ {
1238
+ body_class: textarea_id + ' post-type-give_forms post-status-publish locale-' + tinyMCEPreInit.mceInit['_give_agree_text']['wp_lang_attr'].toLowerCase(),
1239
+ selector : '#' + textarea_id
1240
+ }
1241
+ );
1242
+
1243
+ // Setup editor.
1244
+ tinymce.init(tinyMCEPreInit.mceInit[textarea_id]);
1245
+ quicktags(tinyMCEPreInit.qtInit[textarea_id]);
1246
+ QTags._buttonsInit();
1247
+
1248
+ window.setTimeout(function () {
1249
+ // Hack to show tmce mode.
1250
+ switchEditors.go(textarea_id, 'html');
1251
+ $('#' + textarea_id + '-tmce').trigger('click');
1252
+ }, 100);
1253
+
1254
+ if (!window.wpActiveEditor) {
1255
+ window.wpActiveEditor = textarea_id;
1256
+ }
1257
+ }
1258
+ );
1259
+ });
1260
+ }
1261
+
1262
+ });
1263
+
1264
+ },
1265
+
1266
+ /**
1267
+ * Handle events for multi level repeater group.
1268
+ */
1269
+ handle_multi_levels_repeater_group_events: function () {
1270
+ var $repeater_fields = $('#_give_donation_levels_field');
1271
+
1272
+ // Add level title as suffix to header title when admin add level title.
1273
+ $('body').on('keyup', '.give-multilevel-text-field', function () {
1274
+ var $parent = $(this).closest('tr'),
1275
+ $header_title_container = $('.give-row-head h2 span', $parent),
1276
+ donation_level_header_text_prefix = $header_title_container.data('header-title');
1277
+
1278
+ // Donation level header already set.
1279
+ if ($(this).val() && ( $(this).val() === $header_title_container.html() )) {
1280
+ return false;
1281
+ }
1282
+
1283
+ if ($(this).val()) {
1284
+ // Change donaiton level header text.
1285
+ $header_title_container.html(donation_level_header_text_prefix + ': ' + $(this).val());
1286
+ } else {
1287
+ // Reset donation level header heading text.
1288
+ $header_title_container.html(donation_level_header_text_prefix)
1289
+ }
1290
+ });
1291
+
1292
+ // Add level title as suffix to header title on document load.
1293
+ $('.give-multilevel-text-field').each(function (index, item) {
1294
+
1295
+ // Skip first element.
1296
+ if (!index) {
1297
+ return;
1298
+ }
1299
+
1300
+ // Check if item is jquery object or not.
1301
+ var $item = $(item);
1302
+
1303
+ var $parent = $item.closest('tr'),
1304
+ $header_title_container = $('.give-row-head h2 span', $parent),
1305
+ donation_level_header_text_prefix = $header_title_container.data('header-title');
1306
+
1307
+ // Donation level header already set.
1308
+ if ($item.val() && ( $item.val() === $header_title_container.html() )) {
1309
+ return false;
1310
+ }
1311
+
1312
+ if ($item.val()) {
1313
+ // Change donaiton level header text.
1314
+ $header_title_container.html(donation_level_header_text_prefix + ': ' + $item.val());
1315
+ } else {
1316
+ // Reset donation level header heading text.
1317
+ $header_title_container.html(donation_level_header_text_prefix)
1318
+ }
1319
+ });
1320
+
1321
+ // Handle row deleted event for levels repeater field.
1322
+ $repeater_fields.on('repeater_field_row_deleted', function () {
1323
+ var $this = $(this);
1324
+
1325
+ window.setTimeout(
1326
+ function () {
1327
+ var $parent = $this,
1328
+ $repeatable_rows = $('.give-row', $parent).not('.give-template'),
1329
+ $default_radio = $('.give-give_default_radio_inline', $repeatable_rows),
1330
+ number_of_level = $repeatable_rows.length;
1331
+
1332
+ if (number_of_level === 1) {
1333
+ $default_radio.prop('checked', true);
1334
+ }
1335
+ },
1336
+ 200
1337
+ );
1338
+ });
1339
+
1340
+ // Handle row added event for levels repeater field.
1341
+ $repeater_fields.on('repeater_field_new_row_added', function (e, container, new_row) {
1342
+ var $this = $(this),
1343
+ max_level_id = 0;
1344
+
1345
+ // Auto set default level if no level set as default.
1346
+ window.setTimeout(
1347
+ function () {
1348
+ // Set first row as default if selected default row deleted.
1349
+ // When a row is removed containing the default selection then revert default to first repeatable row.
1350
+ if ($('.give-give_default_radio_inline', $this).is(':checked') === false) {
1351
+ $('.give-row', $this)
1352
+ .not('.give-template')
1353
+ .first()
1354
+ .find('.give-give_default_radio_inline')
1355
+ .prop('checked', true);
1356
+ }
1357
+ },
1358
+ 200
1359
+ );
1360
+
1361
+ // Get max level id.
1362
+ $('input[type="hidden"].give-levels_id', $this).each(function (index, item) {
1363
+ var $item = $(item);
1364
+ if (max_level_id < $item.val()) {
1365
+ max_level_id = $item.val();
1366
+ }
1367
+ });
1368
+
1369
+ // Auto set level id for new setting level setting group.
1370
+ $('input[type="hidden"].give-levels_id', new_row).val(++max_level_id);
1371
+ });
1372
+ }
1373
+ };
1374
+
1375
+ /**
1376
+ * Handle row count and field count for repeatable field.
1377
+ */
1378
+ var handle_metabox_repeater_field_row_count = function (container, new_row) {
1379
+ var row_count = $(container).attr('data-rf-row-count'),
1380
+ $container = $(container),
1381
+ $parent = $container.parents('.give-repeatable-field-section');
1382
+
1383
+ row_count++;
1384
+
1385
+ // Set name for fields.
1386
+ $('*', new_row).each(function () {
1387
+ $.each(this.attributes, function (index, element) {
1388
+ this.value = this.value.replace('{{row-count-placeholder}}', row_count - 1);
1389
+ });
1390
+ });
1391
+
1392
+ // Set row counter.
1393
+ $(container).attr('data-rf-row-count', row_count);
1394
+
1395
+ // Fire event: Row added.
1396
+ $parent.trigger('repeater_field_new_row_added', [container, new_row]);
1397
+ };
1398
+
1399
+ /**
1400
+ * Handle row remove for repeatable field.
1401
+ */
1402
+ var handle_metabox_repeater_field_row_remove = function (container) {
1403
+ var $container = $(container),
1404
+ $parent = $container.parents('.give-repeatable-field-section'),
1405
+ row_count = $(container).attr('data-rf-row-count');
1406
+
1407
+ // Reduce row count.
1408
+ $container.attr('data-rf-row-count', --row_count);
1409
+
1410
+ // Fire event: Row deleted.
1411
+ $parent.trigger('repeater_field_row_deleted');
1412
+ };
1413
+
1414
+ /**
1415
+ * Add number suffix to repeater group.
1416
+ */
1417
+ var handle_repeater_group_add_number_suffix = function ($parent) {
1418
+ // Bailout: check if auto group numbering is on or not.
1419
+ if (!parseInt($parent.data('group-numbering'))) {
1420
+ return;
1421
+ }
1422
+
1423
+ var $header_title_container = $('.give-row-head h2 span', $parent),
1424
+ header_text_prefix = $header_title_container.data('header-title');
1425
+
1426
+ $header_title_container.each(function (index, item) {
1427
+ var $item = $(item);
1428
+
1429
+ // Bailout: do not rename header title in fields template.
1430
+ if ($item.parents('.give-template').length) {
1431
+ return;
1432
+ }
1433
+
1434
+ $item.html(header_text_prefix + ': ' + index);
1435
+ });
1436
+ };
1437
+
1438
+ /**
1439
+ * Initialize qTips
1440
+ */
1441
+ var initialize_qtips = function () {
1442
+ jQuery('[data-tooltip!=""]').qtip({ // Grab all elements with a non-blank data-tooltip attr.
1443
+ content: {
1444
+ attr: 'data-tooltip' // Tell qTip2 to look inside this attr for its content
1445
+ },
1446
+ style : {classes: 'qtip-rounded qtip-tipsy'},
1447
+ events : {
1448
+ show: function (event, api) {
1449
+ var $el = $(api.elements.target[0]);
1450
+ $el.qtip('option', 'position.my', ($el.data('tooltip-my-position') == undefined) ? 'bottom center' : $el.data('tooltip-my-position'));
1451
+ $el.qtip('option', 'position.at', ($el.data('tooltip-target-position') == undefined) ? 'top center' : $el.data('tooltip-target-position'));
1452
+ }
1453
+ }
1454
+ })
1455
+ };
1456
+
1457
+ /**
1458
+ * Payment history listing page js
1459
+ */
1460
+ var Give_Payment_History = {
1461
+ init : function(){
1462
+ this.handle_bulk_delete()
1463
+ },
1464
+
1465
+ handle_bulk_delete: function(){
1466
+ var $payment_filters = $('#give-payments-filter');
1467
+
1468
+ /**
1469
+ * Payment filters
1470
+ */
1471
+ $payment_filters.on( 'submit', function(e){
1472
+ var current_action = $('select[name="action"]', $(this)).val(),
1473
+ $payments = [],
1474
+ confirm_action_notice = '';
1475
+
1476
+ $('input[name="payment[]"]:checked', $(this) ).each(function( index, item ){
1477
+ $payments.push( $(this).val() );
1478
+ });
1479
+
1480
+ // Total payment count.
1481
+ $payments = $payments.length.toString();
1482
+
1483
+ switch ( current_action ) {
1484
+ case 'delete':
1485
+ // Check if admin did not select any payment.
1486
+ if( ! parseInt( $payments ) ) {
1487
+ alert( give_vars.bulk_action.delete.zero_payment_selected );
1488
+ return false;
1489
+ }
1490
+
1491
+ // Ask admin before processing.
1492
+ confirm_action_notice = ( 1 < $payments ) ? give_vars.bulk_action.delete.delete_payments : give_vars.bulk_action.delete.delete_payment;
1493
+ if( ! window.confirm( confirm_action_notice.replace( '{payment_count}', $payments ) ) ) {
1494
+ return false;
1495
+ }
1496
+
1497
+ break;
1498
+
1499
+ case 'resend-receipt':
1500
+ // Check if admin did not select any payment.
1501
+ if( ! parseInt( $payments ) ) {
1502
+ alert( give_vars.bulk_action.resend_receipt.zero_recipient_selected );
1503
+ return false;
1504
+ }
1505
+
1506
+ // Ask admin before processing.
1507
+ confirm_action_notice = ( 1 < $payments ) ? give_vars.bulk_action.resend_receipt.resend_receipts : give_vars.bulk_action.resend_receipt.resend_receipt;
1508
+ if( ! window.confirm( confirm_action_notice.replace( '{payment_count}', $payments ) ) ) {
1509
+ return false;
1510
+ }
1511
+
1512
+ break;
1513
+ }
1514
+
1515
+ return true;
1516
+ });
1517
+ }
1518
+ };
1519
+
1520
+ //On DOM Ready
1521
+ $(function () {
1522
+
1523
+ enable_admin_datepicker();
1524
+ handle_status_change();
1525
+ setup_chosen_give_selects();
1526
+ Give_Edit_Donation.init();
1527
+ Give_Settings.init();
1528
+ Give_Reports.init();
1529
+ Give_Customer.init();
1530
+ API_Screen.init();
1531
+ Give_Export.init();
1532
+ Edit_Form_Screen.init();
1533
+ Give_Payment_History.init();
1534
+
1535
+ initialize_qtips();
1536
+
1537
+ //Footer
1538
+ $('a.give-rating-link').click(function () {
1539
+ jQuery(this).parent().text(jQuery(this).data('rated'));
1540
+ });
1541
+
1542
+ // Ajax user search
1543
+ $('.give-ajax-user-search').on('keyup', function () {
1544
+ var user_search = $(this).val();
1545
+ var exclude = '';
1546
+
1547
+ if ($(this).data('exclude')) {
1548
+ exclude = $(this).data('exclude');
1549
+ }
1550
+
1551
+ $('.give-ajax').show();
1552
+ data = {
1553
+ action : 'give_search_users',
1554
+ user_name: user_search,
1555
+ exclude : exclude
1556
+ };
1557
+
1558
+ document.body.style.cursor = 'wait';
1559
+
1560
+ $.ajax({
1561
+ type : "POST",
1562
+ data : data,
1563
+ dataType: "json",
1564
+ url : ajaxurl,
1565
+ success : function (search_response) {
1566
+ $('.give-ajax').hide();
1567
+ $('.give_user_search_results').removeClass('hidden');
1568
+ $('.give_user_search_results span').html('');
1569
+ $(search_response.results).appendTo('.give_user_search_results span');
1570
+ document.body.style.cursor = 'default';
1571
+ }
1572
+ });
1573
+ });
1574
+
1575
+ $('body').on('click.giveSelectUser', '.give_user_search_results span a', function (e) {
1576
+ e.preventDefault();
1577
+ var login = $(this).data('login');
1578
+ $('.give-ajax-user-search').val(login);
1579
+ $('.give_user_search_results').addClass('hidden');
1580
+ $('.give_user_search_results span').html('');
1581
+ });
1582
+
1583
+ $('body').on('click.giveCancelUserSearch', '.give_user_search_results a.give-ajax-user-cancel', function (e) {
1584
+ e.preventDefault();
1585
+ $('.give-ajax-user-search').val('');
1586
+ $('.give_user_search_results').addClass('hidden');
1587
+ $('.give_user_search_results span').html('');
1588
+ });
1589
+
1590
+ /**
1591
+ * Amount format validation form price field setting
1592
+ */
1593
+
1594
+ // This function uses for adding qtip to money/price field.
1595
+ function give_add_qtip($fields) {
1596
+ // Add qtip to all existing money input fields.
1597
+ $fields.each(function () {
1598
+ $(this).qtip({
1599
+ style : 'qtip-dark qtip-tipsy',
1600
+ content : {
1601
+ text: give_vars.price_format_guide.trim()
1602
+ },
1603
+ show : '',
1604
+ position: {
1605
+ my: 'bottom center',
1606
+ at: 'top center'
1607
+ }
1608
+ });
1609
+ });
1610
+ }
1611
+
1612
+ var $give_money_fields = $('input.give-money-field, input.give-price-field');
1613
+ var thousand_separator = give_vars.thousands_separator,
1614
+ decimal_separator = give_vars.decimal_separator,
1615
+ thousand_separator_count = '',
1616
+ alphabet_count = '',
1617
+ price_string = '',
1618
+
1619
+ // Thousand separation limit in price depends upon decimal separator symbol.
1620
+ // If thousand separator is equal to decimal separator then price does not have more then 1 thousand separator otherwise limit is zero.
1621
+ thousand_separator_limit = ( decimal_separator === thousand_separator ? 1 : 0 );
1622
+
1623
+ // Add qtip to all existing money input fields.
1624
+ give_add_qtip($give_money_fields);
1625
+
1626
+ // Add qtip to new created money/price input field.
1627
+ $('#_give_donation_levels_repeat').on('click', 'button.cmb-add-group-row', function () {
1628
+ window.setTimeout(
1629
+ function () {
1630
+
1631
+ // Update input filed selector.
1632
+ $give_money_fields = $('input.give-money-field, input.give-price-field');
1633
+
1634
+ // Add qtip to all existing money input fields.
1635
+ give_add_qtip($give_money_fields);
1636
+ },
1637
+ 100
1638
+ )
1639
+ });
1640
+
1641
+ // Check & show message on keyup event.
1642
+ $('#poststuff').on('keyup', 'input.give-money-field, input.give-price-field', function () {
1643
+ // Count thousand separator in price string.
1644
+ thousand_separator_count = ( $(this).val().match(new RegExp(thousand_separator, 'g')) || [] ).length;
1645
+ alphabet_count = ( $(this).val().match(new RegExp('[a-z]', 'g')) || [] ).length;
1646
+
1647
+ // Show qtip conditionally if thousand separator detected on price string.
1648
+ if (
1649
+ ( -1 !== $(this).val().indexOf(thousand_separator) )
1650
+ && ( thousand_separator_limit < thousand_separator_count )
1651
+ ) {
1652
+ $(this).qtip('show');
1653
+ } else if (alphabet_count) {
1654
+ // Show qtip if user entered a number with alphabet letter.
1655
+ $(this).qtip('show');
1656
+ } else {
1657
+ $(this).qtip('hide');
1658
+ }
1659
+
1660
+ // Reset thousand separator count.
1661
+ thousand_separator_count = alphabet_count = '';
1662
+ });
1663
+
1664
+ // Format price sting of input field on focusout.
1665
+ $('#poststuff').on('focusout', 'input.give-money-field, input.give-price-field', function () {
1666
+ price_string = give_unformat_currency($(this).val(), false);
1667
+
1668
+ // Back out.
1669
+ if (!parseInt(price_string)) {
1670
+ $(this).val('');
1671
+ return false;
1672
+ }
1673
+
1674
+ // Replace dot decimal separator with user defined decimal separator.
1675
+ price_string = price_string.replace('.', decimal_separator);
1676
+
1677
+ // Check if current number is negative or not.
1678
+ if (-1 !== price_string.indexOf('-')) {
1679
+ price_string = price_string.replace('-', '');
1680
+ }
1681
+
1682
+ // Update format price string in input field.
1683
+ $(this).val(price_string);
1684
+ });
1685
+
1686
+ /**
1687
+ * Responsive setting tab features.
1688
+ */
1689
+
1690
+ // Show/Hide sub tab nav.
1691
+ $('.give-settings-page').on('click blur', '#give-show-sub-nav', function (e) {
1692
+ e.preventDefault();
1693
+
1694
+ var $sub_tab_nav = $(this).next();
1695
+
1696
+ if( ! $sub_tab_nav.is(':hover') ) {
1697
+ $sub_tab_nav.toggleClass('give-hidden');
1698
+ }
1699
+
1700
+ return false;
1701
+ });
1702
+
1703
+ // Render setting tab.
1704
+ give_render_responsinve_tabs();
1705
+ });
1706
+ })(jQuery);
1707
+
1708
+ /**
1709
+ * Responsive js.
1710
+ */
1711
+ jQuery(window).resize(function () {
1712
+ give_render_responsinve_tabs();
1713
+ });
1714
+
1715
+ /**
1716
+ * Render responsive tabs
1717
+ */
1718
+ function give_render_responsinve_tabs() {
1719
+ var $setting_page_form = jQuery('.give-settings-page'),
1720
+ $main_tab_nav = jQuery('h2.give-nav-tab-wrapper'),
1721
+ setting_page_form_width = $setting_page_form.width(),
1722
+ $sub_tab_nav_wrapper = jQuery('.give-sub-nav-tab-wrapper'),
1723
+ $sub_tab_nav = jQuery('nav', $sub_tab_nav_wrapper),
1724
+ $setting_tab_links = jQuery('h2.give-nav-tab-wrapper>a:not(give-not-tab)'),
1725
+ $show_tabs = [],
1726
+ $hide_tabs = [],
1727
+ tab_width = 0;
1728
+
1729
+ if( 414 < jQuery(window).outerWidth() ) {
1730
+ tab_width = 200;
1731
+ }
1732
+
1733
+ // Bailout.
1734
+ if (!$setting_page_form.length) {
1735
+ return false;
1736
+ }
1737
+
1738
+ // Update tab wrapper css.
1739
+ $main_tab_nav.css({
1740
+ height : 'auto',
1741
+ overflow: 'visible'
1742
+ });
1743
+
1744
+ // Show all tab if anyone hidden to calculate correct tab width.
1745
+ $setting_tab_links.removeClass('give-hidden');
1746
+
1747
+ var refactor_tabs = new Promise(
1748
+ function (resolve, reject) {
1749
+ // Collect tabs to show or hide.
1750
+ jQuery.each($setting_tab_links, function (index, $tab_link) {
1751
+ $tab_link = jQuery($tab_link);
1752
+ tab_width = tab_width + parseInt($tab_link.outerWidth());
1753
+
1754
+ if (tab_width < setting_page_form_width) {
1755
+ $show_tabs.push($tab_link);
1756
+ } else {
1757
+ $hide_tabs.push($tab_link);
1758
+ }
1759
+ });
1760
+
1761
+ resolve(true);
1762
+ }
1763
+ );
1764
+
1765
+ refactor_tabs.then(function (is_refactor_tabs) {
1766
+ // 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.
1767
+ if ($hide_tabs.length && ( -1 != window.location.search.indexOf('&tab=') )) {
1768
+ var $current_tab_nav = {},
1769
+ query_params = get_url_params();
1770
+
1771
+ $hide_tabs = $hide_tabs.filter(function ($tab_link) {
1772
+ var is_current_nav_item = ( -1 != parseInt($tab_link.attr('href').indexOf('&tab=' + query_params['tab'])) );
1773
+
1774
+ if (is_current_nav_item) {
1775
+ $current_tab_nav = $tab_link;
1776
+ }
1777
+
1778
+ return ( !is_current_nav_item );
1779
+ });
1780
+
1781
+ if ($current_tab_nav.length) {
1782
+ $hide_tabs.unshift($show_tabs.pop());
1783
+ $show_tabs.push($current_tab_nav);
1784
+ }
1785
+ }
1786
+
1787
+ var show_tabs = new Promise(function (resolve, reject) {
1788
+ // Show main menu tabs.
1789
+ if ($show_tabs.length) {
1790
+ jQuery.each($show_tabs, function (index, $tab_link) {
1791
+ $tab_link = jQuery($tab_link);
1792
+
1793
+ if ($tab_link.hasClass('give-hidden')) {
1794
+ $tab_link.removeClass('give-hidden');
1795
+ }
1796
+ });
1797
+ }
1798
+
1799
+ resolve(true);
1800
+ });
1801
+
1802
+
1803
+ show_tabs.then(function (is_show_tabs) {
1804
+ // Hide sub menu tabs.
1805
+ if ($hide_tabs.length) {
1806
+ $sub_tab_nav.html('');
1807
+
1808
+ jQuery.each($hide_tabs, function (index, $tab_link) {
1809
+ $tab_link = jQuery($tab_link);
1810
+ $tab_link.addClass('give-hidden');
1811
+ $tab_link.clone().removeClass().appendTo($sub_tab_nav);
1812
+ });
1813
+
1814
+ if (!jQuery('.give-sub-nav-tab-wrapper', $main_tab_nav).length) {
1815
+ $main_tab_nav.append($sub_tab_nav_wrapper);
1816
+ }
1817
+
1818
+ $sub_tab_nav_wrapper.show();
1819
+ } else {
1820
+ $sub_tab_nav_wrapper.hide();
1821
+ }
1822
+ });
1823
+ });
1824
+ }
1825
+
1826
+ /**
1827
+ * Get url query params.
1828
+ *
1829
+ * @returns {Array}
1830
+ */
1831
+ function get_url_params() {
1832
+ var vars = [], hash;
1833
+ var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
1834
+ for (var i = 0; i < hashes.length; i++) {
1835
+ hash = hashes[i].split('=');
1836
+ vars[hash[0]] = hash[1];
1837
+ }
1838
+ return vars;
1839
+ }
assets/js/admin/admin-scripts.min.js ADDED
@@ -0,0 +1 @@
 
1
+ function give_render_responsinve_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),o=jQuery("h2.give-nav-tab-wrapper>a:not(give-not-tab)"),r=[],s=[],c=0;if(414<jQuery(window).outerWidth()&&(c=200),!e.length)return!1;t.css({height:"auto",overflow:"visible"}),o.removeClass("give-hidden");var d=new Promise(function(e,t){jQuery.each(o,function(e,t){t=jQuery(t),c+=parseInt(t.outerWidth()),c<i?r.push(t):s.push(t)}),e(!0)});d.then(function(e){if(s.length&&-1!=window.location.search.indexOf("&tab=")){var i={},o=get_url_params();s=s.filter(function(e){var t=-1!=parseInt(e.attr("href").indexOf("&tab="+o.tab));return t&&(i=e),!t}),i.length&&(s.unshift(r.pop()),r.push(i))}var c=new Promise(function(e,t){r.length&&jQuery.each(r,function(e,t){t=jQuery(t),t.hasClass("give-hidden")&&t.removeClass("give-hidden")}),e(!0)});c.then(function(e){s.length?(a.html(""),jQuery.each(s,function(e,t){t=jQuery(t),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}jQuery.noConflict(),function(e){function t(e,t){e=accounting.unformat(e,give_vars.decimal_separator).toString();var i=e.indexOf(".");return 0!=t?e=parseFloat(e).toFixed(t):(-1===i||give_vars.currency_decimals>e.substr(i+1).length)&&(e=parseFloat(e).toFixed(give_vars.currency_decimals)),e}var i=function(){if(e(".give_datepicker").length>0){var t="mm/dd/yy";e(".give_datepicker").datepicker({dateFormat:t})}},n=function(){e(".give-select-chosen").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%")})},a={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(t){var i=e("#give-order-address-state-wrap");i.find("*").not(".order-data-address-line").remove(),"nostates"==t?i.append('<input type="text" name="give-payment-address[0][state]" value="" class="give-edit-toggles medium-text"/>'):(i.append(t),i.find("select").chosen())}),!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-customer, .give-payment-new-customer-cancel",function(t){t.preventDefault(),e(".customer-info").toggle(),e(".new-customer").toggle(),e(".new-customer").is(":visible")?e("#give-new-customer").val(1):e("#give-new-customer").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('select[name="forms"]').chosen().change(function(){var t,i=e(".give-donation-level");return!!(t=e(this).val())&&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");e(this).val()in t&&(i.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout(function(){i.css("background-color","white")},1e3))})}},o={init:function(){this.toggle_options(),this.main_setting_update_notice(),this.verify_settings()},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(a.length)return!1;e("h2","#give-mainform").after(n),a=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",a).click(function(){a.remove()}),e(this).val("")}}).change()}},r={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_customer_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_customer_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(),"recount-form"===i)a.show(),a.find(".give-select-chosen").css({width:"auto","min-width":"250px"});else if("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 a.hide(),a.val(0);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;s=!0}n.find(".notice-wrap").remove(),n.append('<div class="notice-wrap"></div>');var r=n.find(".notice-wrap"),s=!1;if(null!==i&&0!==i||(r.html('<div class="updated error"><p>'+give_vars.batch_export_no_class+"</p></div>"),s=!0),"recount-form"===a){var c=e('select[name="form_id"]').val();0==c&&(r.html('<div class="updated error"><p>'+give_vars.batch_export_no_reqs+"</p></div>"),s=!0)}if(s)return n.find(".button-disabled").removeClass("button-disabled"),!1})}},s={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){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){var a=e(".give-export-form").find(".give-progress").parent().parent(),o=a.find(".notice-wrap");if(a.find(".button-disabled").removeClass("button-disabled"),t.error){var r=t.message;o.html('<div class="updated error"><p>'+r+"</p></div>")}else if(t.success){var s=t.message;o.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+s+'<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)}}).fail(function(t){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")})}},c=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)})},d={init:function(){this.edit_customer(),this.add_email(),this.user_search(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked()},edit_customer:function(){e("body").on("click","#edit-customer",function(t){t.preventDefault(),e("#give-customer-card-wrapper .editable").hide(),e("#give-customer-card-wrapper .edit-item").fadeIn().css("display","block")})},user_search:function(){e("body").on("click.giveSelectUser",".give_user_search_results a",function(t){t.preventDefault();var i=e(this).data("userid");e('input[name="customerinfo[user_id]"]').val(i)})},remove_user:function(){e("body").on("click","#disconnect-customer",function(t){t.preventDefault();var i=e('input[name="customerinfo[id]"]').val(),n={give_action:"disconnect-userid",customer_id:i,_wpnonce:e("#edit-customer-info #_wpnonce").val()};e.post(ajaxurl,n,function(e){window.location.href=window.location.href},"json")})},cancel_edit:function(){e("body").on("click","#give-edit-customer-cancel",function(t){t.preventDefault(),e("#give-customer-card-wrapper .edit-item").hide(),e("#give-customer-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(t){"nostates"==t?e(':input[name="customerinfo[state]"]').replaceWith('<input type="text" name="'+i.field_name+'" value="" class="give-edit-toggles medium-text"/>'):e(':input[name="customerinfo[state]"]').replaceWith(t)}),!1})},add_note:function(){e("body").on("click","#add-customer-note",function(t){t.preventDefault();var i={give_action:"add-customer-note",customer_id:e("#customer-id").val(),customer_note:e("#customer-note").val(),add_customer_note_nonce:e("#add_customer_note_nonce").val()};if(i.customer_note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-customer-notes").prepend(t),e(".give-no-customer-notes").hide(),e("#customer-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#customer-note").css("border-color");e("#customer-note").css("border-color","red"),setTimeout(function(){e("#customer-note").css("border-color",n)},500)}})},delete_checked:function(){e("#give-customer-delete-confirm").change(function(){var t=e("#give-customer-delete-records"),i=e("#give-delete-customer");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-customer-email").length&&e(document.body).on("click","#add-customer-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="customer-id"]').val(),o=n.find('input[name="additional-email"]').val(),r=n.find('input[name="make-additional-primary"]').is(":checked"),s=n.find('input[name="add_email_nonce"]').val(),c={give_action:"add_donor_email",customer_id:a,email:o,primary:r,_wpnonce:s};e.post(ajaxurl,c,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")})}},l={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)})}},u={init:function(){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()},handle_metabox_tab_click:function(){var t=e(".give-metabox-tabs a");if(t.on("click",function(i){i.preventDefault();var n=e(this).parent(),a=e("ul.give-metabox-sub-tabs",n),o=a.length,r=t.parents("li"),s=e("ul.give-metabox-sub-tabs"),c=e(this).parents("ul.give-metabox-sub-tabs").length;if(o){n.toggleClass("active"),a.toggleClass("give-hidden");var d=e("li.active","ul.give-metabox-sub-tabs");return s.not(a).addClass("give-hidden"),r.not(n).removeClass("active"),d.addClass("active"),!1}return c?c&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),r.removeClass("active"),e(this).parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),e(this).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")}),e(this).parent().addClass("active"),e(".give_options_panel").addClass("give-hidden"),e(e(this).attr("href")).removeClass("give-hidden"),!1}),location.hash.length){var i=e('a[href="'+location.hash+'"]',".give-metabox-tabs");i.length&&i.trigger("click")}},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;e("body").on("click",".give-media-upload",function(i){return i.preventDefault(),window.give_media_uploader_input_field=e(this),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:give_vars.metabox_fields.media.button_title,button:{text:give_vars.metabox_fields.media.button_title},multiple:!1}),t.on("select",function(){var e=t.state().get("selection").first().toJSON(),i=window.give_media_uploader_input_field.prev(),n="id"===i.data("fvalue")?e.id:e.url;console.log(i),i.val(n)}),void t.open())})},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:v,before_remove:null,after_remove:p,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,""),r=a+"_field",s="",c="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(o-1)+"]"),c=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(r)&&(s=c+"_field",t.removeClass(r).addClass(s)),a==i.attr("id")&&i.attr("id",c))})}),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(){_(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);_(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),r="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),s=a.prev();o.attr("id",r),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:n.data("wp-editor"),wp_editor_id:r,textarea_name:e("textarea",n).attr("name")},function(t){a.remove(),s.after(t),tinyMCEPreInit.qtInit[o.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:r}),tinyMCEPreInit.mceInit[r]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:r+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+r}),tinymce.init(tinyMCEPreInit.mceInit[r]),quicktags(tinyMCEPreInit.qtInit[r]),QTags._buttonsInit(),window.setTimeout(function(){switchEditors.go(r,"html"),e("#"+r+"-tmce").trigger("click")},100),window.wpActiveEditor||(window.wpActiveEditor=r)})})})},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),r=o.data("header-title");return(!n.val()||n.val()!==o.html())&&void(n.val()?o.html(r+": "+n.val()):o.html(r))}}),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);o<n.val()&&(o=n.val())}),e('input[type="hidden"].give-levels_id',n).val(++o)})}},v=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])},p=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")},_=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)})}},g=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"))}}})},h={init:function(){this.handle_bulk_delete()},handle_bulk_delete:function(){var t=e("#give-payments-filter");t.on("submit",function(t){var i=e('select[name="action"]',e(this)).val(),n=[],a="";switch(e('input[name="payment[]"]:checked',e(this)).each(function(t,i){n.push(e(this).val())}),n=n.length.toString(),i){case"delete":if(!parseInt(n))return alert(give_vars.bulk_action["delete"].zero_payment_selected),!1;if(a=1<n?give_vars.bulk_action["delete"].delete_payments:give_vars.bulk_action["delete"].delete_payment,!window.confirm(a.replace("{payment_count}",n)))return!1;break;case"resend-receipt":if(!parseInt(n))return alert(give_vars.bulk_action.resend_receipt.zero_recipient_selected),!1;if(a=1<n?give_vars.bulk_action.resend_receipt.resend_receipts:give_vars.bulk_action.resend_receipt.resend_receipt,!window.confirm(a.replace("{payment_count}",n)))return!1}return!0})}};e(function(){function v(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(),c(),n(),a.init(),o.init(),r.init(),d.init(),l.init(),s.init(),u.init(),h.init(),g(),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 p=e("input.give-money-field, input.give-price-field"),_=give_vars.thousands_separator,f=give_vars.decimal_separator,m="",b="",w="",y=f===_?1:0;v(p),e("#_give_donation_levels_repeat").on("click","button.cmb-add-group-row",function(){window.setTimeout(function(){p=e("input.give-money-field, input.give-price-field"),v(p)},100)}),e("#poststuff").on("keyup","input.give-money-field, input.give-price-field",function(){m=(e(this).val().match(new RegExp(_,"g"))||[]).length,b=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(_)&&y<m?e(this).qtip("show"):b?e(this).qtip("show"):e(this).qtip("hide"),m=b=""}),e("#poststuff").on("focusout","input.give-money-field, input.give-price-field",function(){return w=t(e(this).val(),!1),parseInt(w)?(w=w.replace(".",f),-1!==w.indexOf("-")&&(w=w.replace("-","")),void e(this).val(w)):(e(this).val(""),!1)}),e(".give-settings-page").on("click blur","#give-show-sub-nav",function(t){t.preventDefault();var i=e(this).next();return i.is(":hover")||i.toggleClass("give-hidden"),!1}),give_render_responsinve_tabs()})}(jQuery),jQuery(window).resize(function(){give_render_responsinve_tabs()});
assets/js/admin/admin-settings.js ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give Admin Forms JS
3
+ *
4
+ * @description: The Give Admin Settings scripts. Only enqueued on the give-settings page; used for tabs and other show/hide functionality
5
+ * @package: Give
6
+ * @since: 1.5
7
+ * @subpackage: Assets/JS
8
+ * @copyright: Copyright (c) 2016, WordImpress
9
+ * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
+ */
11
+
12
+ jQuery.noConflict();
13
+ jQuery(document).ready(function ($) {
14
+
15
+ /**
16
+ * Sortable payment gateways.
17
+ */
18
+ var $payment_gateways = jQuery( 'ul.give-payment-gatways-list' );
19
+ if( $payment_gateways.length ){
20
+ $payment_gateways.sortable();
21
+ }
22
+
23
+ /**
24
+ * Set payment gateway list under default payment gaetway option
25
+ */
26
+ var $payment_gateway_list_item = $('input', $payment_gateways),
27
+ $default_gateway = $('#default_gateway');
28
+ $payment_gateway_list_item.on('click', function () {
29
+
30
+ // Bailout.
31
+ if( $(this)[0].hasAttribute( 'readonly' ) ) {
32
+ return false;
33
+ }
34
+
35
+ // Selectors.
36
+ var saved_default_gateway = $default_gateway.val(),
37
+ active_payment_option_html = '',
38
+ $active_payment_gateways = $('input:checked', $payment_gateways);
39
+
40
+ // Set last active payment gateways to readonly.
41
+ if( 1 === $active_payment_gateways.length ){
42
+ $active_payment_gateways.prop( 'readonly', true );
43
+ }else{
44
+ $('input[readonly]:checked', $payment_gateways ).removeAttr('readonly');
45
+ }
46
+
47
+ // Create option html from active payment gateway list.
48
+ $active_payment_gateways.each(function (index, item) {
49
+ item = $(item);
50
+ var item_value = item.attr('name').match(/\[(.*?)\]/)[1];
51
+
52
+ active_payment_option_html += '<option value="' + item_value + '"';
53
+
54
+ if (saved_default_gateway === item_value) {
55
+ active_payment_option_html += ' selected="selected"';
56
+ }
57
+
58
+ active_payment_option_html += '>' + item.next('label').text() + '</option>';
59
+ });
60
+
61
+ // Update select html.
62
+ $default_gateway.html(active_payment_option_html);
63
+ });
64
+
65
+ /**
66
+ * Upload file button.
67
+ */
68
+
69
+ // Set all variables to be used in scope
70
+ var $upload_image_frame,
71
+ $upload_file_btn = $('.give-upload-button'),
72
+ $active_upload_file_btn;
73
+
74
+ // ADD IMAGE LINK
75
+ $upload_file_btn.on( 'click', function( event ){
76
+
77
+ event.preventDefault();
78
+
79
+ // Cache active upload button selector.
80
+ $active_upload_file_btn = $(this);
81
+
82
+ // If the media $upload_image_frame already exists, reopen it.
83
+ if ( $upload_image_frame ) {
84
+ $upload_image_frame.open();
85
+ return;
86
+ }
87
+
88
+ // Create a new media $upload_image_frame
89
+ $upload_image_frame = wp.media({
90
+ title: give_vars.logo,
91
+ button: {
92
+ text: give_vars.use_this_image
93
+ },
94
+ frame: 'post',
95
+ multiple: false, // Set to true to allow multiple files to be selected
96
+ library : {
97
+ type:'image'
98
+ }
99
+ });
100
+
101
+
102
+ // When an image is selected in the media $upload_image_frame...
103
+ $upload_image_frame.on( 'insert', function() {
104
+
105
+ // Get media attachment details from the $upload_image_frame state
106
+ var attachment = $upload_image_frame.state().get('selection').first().toJSON(),
107
+ $parent = $active_upload_file_btn.parents('.give-field-wrap'),
108
+ $image_container = $('.give-image-thumb', $parent ),
109
+ $selected_image_size = $('.attachment-display-settings .size').val();
110
+
111
+ // Send the attachment URL to our custom image input field.
112
+ $image_container.find('img').attr( 'src', attachment.sizes[ $selected_image_size ].url );
113
+
114
+ // Send the attachment id to our hidden input
115
+ $('input[type="text"]', $parent ).val( attachment.sizes[ $selected_image_size ].url );
116
+
117
+ // Hide the add image link
118
+ $image_container.removeClass( 'give-hidden' );
119
+ });
120
+
121
+ // When an image is selected in the media $upload_image_frame...
122
+ $upload_image_frame.on( 'open', function() {
123
+ $('a.media-menu-item').each(function(){
124
+ switch ( $(this).text().trim() ) {
125
+ case 'Create Gallery':
126
+ case 'Insert from URL':
127
+ $(this).hide();
128
+ }
129
+ });
130
+ });
131
+
132
+ $('body').on( 'click', '.thumbnail', function(e){
133
+ var $attachment_display_setting = $('.attachment-display-settings');
134
+
135
+ if( $attachment_display_setting.length ) {
136
+ $( '.alignment', $attachment_display_setting ).closest('label').hide();
137
+ $( '.link-to', $attachment_display_setting ).closest('label').hide();
138
+ $( '.attachment-details label' ).hide();
139
+ }
140
+
141
+ });
142
+
143
+ // Finally, open the modal on click
144
+ $upload_image_frame.open();
145
+ });
146
+
147
+
148
+ // DELETE IMAGE LINK
149
+ $( 'span.give-delete-image-thumb', '.give-image-thumb').on( 'click', function( event ){
150
+
151
+ event.preventDefault();
152
+
153
+ var $parent = $(this).parents('.give-field-wrap'),
154
+ $image_container = $(this).parent(),
155
+ $image_input_field = $('input[type="text"]', $parent);
156
+
157
+ // Clear out the preview image
158
+ $image_container.addClass( 'give-hidden' );
159
+
160
+ // Remove image link from input field.
161
+ $image_input_field.val('');
162
+
163
+ // Hide the add image link
164
+ $( 'img', $image_container ).attr( 'src', '' );
165
+ });
166
+
167
+ });
assets/js/admin/admin-settings.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery.noConflict(),jQuery(document).ready(function(e){var t=jQuery("ul.give-payment-gatways-list");t.length&&t.sortable();var i=e("input",t),a=e("#default_gateway");i.on("click",function(){if(e(this)[0].hasAttribute("readonly"))return!1;var i=a.val(),n="",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];n+='<option value="'+l+'"',i===l&&(n+=' selected="selected"'),n+=">"+a.next("label").text()+"</option>"}),a.html(n)});var n,l,r=e(".give-upload-button");r.on("click",function(t){return t.preventDefault(),l=e(this),n?void n.open():(n=wp.media({title:give_vars.logo,button:{text:give_vars.use_this_image},frame:"post",multiple:!1,library:{type:"image"}}),n.on("insert",function(){var t=n.state().get("selection").first().toJSON(),i=l.parents(".give-field-wrap"),a=e(".give-image-thumb",i),r=e(".attachment-display-settings .size").val();a.find("img").attr("src",t.sizes[r].url),e('input[type="text"]',i).val(t.sizes[r].url),a.removeClass("give-hidden")}),n.on("open",function(){e("a.media-menu-item").each(function(){switch(e(this).text().trim()){case"Create Gallery":case"Insert from URL":e(this).hide()}})}),e("body").on("click",".thumbnail",function(t){var i=e(".attachment-display-settings");i.length&&(e(".alignment",i).closest("label").hide(),e(".link-to",i).closest("label").hide(),e(".attachment-details label").hide())}),void n.open())}),e("span.give-delete-image-thumb",".give-image-thumb").on("click",function(t){t.preventDefault();var i=e(this).parents(".give-field-wrap"),a=e(this).parent(),n=e('input[type="text"]',i);a.addClass("give-hidden"),n.val(""),e("img",a).attr("src","")})});
assets/js/admin/admin-shortcodes.js ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give Admin Shortcodes JS
3
+ *
4
+ * @description: The Give Admin Shortcode scripts. Only enqueued on the admin widgets screen; used to show shortcode dialogs, show/hide, and other functions
5
+ * @package: Give
6
+ * @subpackage: Assets/JS
7
+ * @author: Paul Ryley
8
+ * @copyright: Copyright (c) 2016, WordImpress
9
+ * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
+ * @since: 1.3.0
11
+ */
12
+
13
+ /* global ajaxurl, jQuery, scShortcodes, tinymce */
14
+
15
+ var jq = jQuery.noConflict();
16
+
17
+ var scShortcode, scButton;
18
+
19
+ var scForm = {
20
+
21
+ open: function( editor_id )
22
+ {
23
+ var editor = tinymce.get( editor_id );
24
+
25
+ if( !editor ) {
26
+ return;
27
+ }
28
+
29
+ var data, field, required, valid, win;
30
+
31
+ data = {
32
+ action : 'give_shortcode',
33
+ shortcode : scShortcode
34
+ };
35
+
36
+ jq.post( ajaxurl, data, function( response )
37
+ {
38
+ // what happens if response === false?
39
+ if( !response.body ) {
40
+ console.error( 'Bad AJAX response!' );
41
+ return;
42
+ }
43
+
44
+ if( response.body.length === 0 ) {
45
+ window.send_to_editor( '[' + response.shortcode + ']' );
46
+
47
+ scForm.destroy();
48
+
49
+ return;
50
+ }
51
+
52
+ var popup = {
53
+ title : response.title,
54
+ body : response.body,
55
+ classes: 'sc-popup',
56
+ minWidth: 320,
57
+ buttons : [
58
+ {
59
+ text : response.ok,
60
+ classes : 'primary sc-primary',
61
+ onclick : function()
62
+ {
63
+ // Get the top most window object
64
+ win = editor.windowManager.getWindows()[0];
65
+
66
+ // Get the shortcode required attributes
67
+ required = scShortcodes[ scShortcode ];
68
+
69
+ valid = true;
70
+
71
+ // Do some validation voodoo
72
+ for( var id in required ) {
73
+ if( required.hasOwnProperty( id ) ) {
74
+
75
+ field = win.find( '#' + id )[0];
76
+
77
+ if( typeof field !== 'undefined' && field.state.data.value === '' ) {
78
+
79
+ valid = false;
80
+
81
+ alert( required[ id ] );
82
+
83
+ break;
84
+ }
85
+ }
86
+ }
87
+
88
+ if( valid ) {
89
+ win.submit();
90
+ }
91
+ }
92
+ },
93
+ {
94
+ text : response.close,
95
+ onclick : 'close'
96
+ },
97
+ ],
98
+ onsubmit: function( e )
99
+ {
100
+ var attributes = '';
101
+
102
+ for( var key in e.data ) {
103
+ if( e.data.hasOwnProperty( key ) && e.data[ key ] !== '' ) {
104
+ attributes += ' ' + key + '="' + e.data[ key ] + '"';
105
+ }
106
+ }
107
+
108
+ // Insert shortcode into the WP_Editor
109
+ window.send_to_editor( '[' + response.shortcode + attributes + ']' );
110
+ },
111
+ onclose: function()
112
+ {
113
+ scForm.destroy();
114
+ }
115
+ };
116
+
117
+ // Change the buttons if server-side validation failed
118
+ if( response.ok.constructor === Array ) {
119
+ popup.buttons[0].text = response.ok[0];
120
+ popup.buttons[0].onclick = 'close';
121
+ delete popup.buttons[1];
122
+ }
123
+
124
+ editor.windowManager.open( popup );
125
+ });
126
+ },
127
+
128
+ destroy: function()
129
+ {
130
+ var tmp = jq( '#scTemp' );
131
+
132
+ if( tmp.length ) {
133
+ tinymce.get( 'scTemp' ).remove();
134
+ tmp.remove();
135
+ }
136
+ }
137
+ };
138
+
139
+ jq( function( $ )
140
+ {
141
+ var scOpen = function()
142
+ {
143
+ scButton.addClass( 'active' ).parent().find( '.sc-menu' ).show();
144
+ };
145
+
146
+ var scClose = function()
147
+ {
148
+ if( typeof scButton !== 'undefined' ) {
149
+ scButton.removeClass( 'active' ).parent().find( '.sc-menu' ).hide();
150
+ }
151
+ };
152
+
153
+ $( document ).on( 'click', function( e )
154
+ {
155
+ if( !$( e.target ).closest( '.sc-wrap' ).length ) {
156
+ scClose();
157
+ }
158
+ });
159
+
160
+ $( document ).on( 'click', '.sc-button', function( e )
161
+ {
162
+ e.preventDefault();
163
+
164
+ scButton = $( this );
165
+
166
+ if( scButton.hasClass( 'active' ) ) {
167
+ scClose();
168
+ }
169
+ else {
170
+ scOpen();
171
+ }
172
+ });
173
+
174
+ $( document ).on( 'click', '.sc-shortcode', function( e )
175
+ {
176
+ e.preventDefault();
177
+
178
+ // scShortcode is used by scForm to trigger the correct popup
179
+ scShortcode = $( this ).attr( 'data-shortcode' );
180
+
181
+ if( scShortcode ) {
182
+ if( !tinymce.get( window.wpActiveEditor ) ) {
183
+
184
+ if( !$( '#scTemp' ).length ) {
185
+
186
+ $( 'body' ).append( '<textarea id="scTemp" style="display: none;" />' );
187
+
188
+ tinymce.init({
189
+ mode : "exact",
190
+ elements : "scTemp",
191
+ plugins : ['give_shortcode', 'wplink']
192
+ });
193
+ }
194
+
195
+ setTimeout( function() { tinymce.execCommand( 'Give_Shortcode' ); }, 200 );
196
+ }
197
+ else {
198
+ tinymce.execCommand( 'Give_Shortcode' );
199
+ }
200
+
201
+ setTimeout( function() { scClose(); }, 100 );
202
+ }
203
+ else {
204
+ console.warn( 'That is not a valid shortcode link.' );
205
+ }
206
+ });
207
+ });
assets/js/admin/admin-shortcodes.min.js ADDED
@@ -0,0 +1 @@
 
1
+ var jq=jQuery.noConflict(),scShortcode,scButton,scForm={open:function(t){var o=tinymce.get(t);if(o){var e,n,c,s,i;e={action:"give_shortcode",shortcode:scShortcode},jq.post(ajaxurl,e,function(t){if(!t.body)return void console.error("Bad AJAX response!");if(0===t.body.length)return window.send_to_editor("["+t.shortcode+"]"),void scForm.destroy();var e={title:t.title,body:t.body,classes:"sc-popup",minWidth:320,buttons:[{text:t.ok,classes:"primary sc-primary",onclick:function(){i=o.windowManager.getWindows()[0],c=scShortcodes[scShortcode],s=!0;for(var t in c)if(c.hasOwnProperty(t)&&(n=i.find("#"+t)[0],"undefined"!=typeof n&&""===n.state.data.value)){s=!1,alert(c[t]);break}s&&i.submit()}},{text:t.close,onclick:"close"}],onsubmit:function(o){var e="";for(var n in o.data)o.data.hasOwnProperty(n)&&""!==o.data[n]&&(e+=" "+n+'="'+o.data[n]+'"');window.send_to_editor("["+t.shortcode+e+"]")},onclose:function(){scForm.destroy()}};t.ok.constructor===Array&&(e.buttons[0].text=t.ok[0],e.buttons[0].onclick="close",delete e.buttons[1]),o.windowManager.open(e)})}},destroy:function(){var t=jq("#scTemp");t.length&&(tinymce.get("scTemp").remove(),t.remove())}};jq(function(t){var o=function(){scButton.addClass("active").parent().find(".sc-menu").show()},e=function(){"undefined"!=typeof scButton&&scButton.removeClass("active").parent().find(".sc-menu").hide()};t(document).on("click",function(o){t(o.target).closest(".sc-wrap").length||e()}),t(document).on("click",".sc-button",function(n){n.preventDefault(),scButton=t(this),scButton.hasClass("active")?e():o()}),t(document).on("click",".sc-shortcode",function(o){o.preventDefault(),scShortcode=t(this).attr("data-shortcode"),scShortcode?(tinymce.get(window.wpActiveEditor)?tinymce.execCommand("Give_Shortcode"):(t("#scTemp").length||(t("body").append('<textarea id="scTemp" style="display: none;" />'),tinymce.init({mode:"exact",elements:"scTemp",plugins:["give_shortcode","wplink"]})),setTimeout(function(){tinymce.execCommand("Give_Shortcode")},200)),setTimeout(function(){e()},100)):console.warn("That is not a valid shortcode link.")})});
assets/js/admin/admin-widgets.js ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give Admin Widgets JS
3
+ *
4
+ * @description: The Give Admin Widget scripts. Only enqueued on the admin widgets screen; used to validate fields, show/hide, and other functions
5
+ * @package: Give
6
+ * @subpackage: Assets/JS
7
+ * @copyright: Copyright (c) 2016, WordImpress
8
+ * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+ */
10
+
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
+ //On DOM Ready
29
+ $( function () {
30
+
31
+ initialize_qtips();
32
+
33
+ } );
34
+
35
+ //Function to Refresh jQuery toggles for Yelp Widget Pro upon saving specific widget
36
+ $( document ).ajaxSuccess( function ( e, xhr, settings ) {
37
+ initialize_qtips();
38
+ } );
39
+
40
+
41
+ })( jQuery );
assets/js/admin/admin-widgets.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery.noConflict(),function(t){var o=function(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},position:{my:"bottom center",at:"top center"}})};t(function(){o()}),t(document).ajaxSuccess(function(t,n,e){o()})}(jQuery);
assets/js/admin/tinymce/mce-plugin.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (tinymce) {
2
+
3
+ tinymce.PluginManager.add('give_shortcode', function (editor) {
4
+ editor.addCommand('Give_Shortcode', function () {
5
+
6
+ if (window.scForm) {
7
+
8
+ window.scForm.open(editor.id);
9
+ }
10
+ });
11
+ });
12
+
13
+ })(window.tinymce);
assets/js/admin/tinymce/mce-plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(n){n.PluginManager.add("give_shortcode",function(n){n.addCommand("Give_Shortcode",function(){window.scForm&&window.scForm.open(n.id)})})}(window.tinymce);
assets/js/frontend/give-ajax.js ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give AJAX JS
3
+ *
4
+ * @description: The Give AJAX scripts
5
+ * @package: Give
6
+ * @subpackage: Assets/JS
7
+ * @copyright: Copyright (c) 2016, WordImpress
8
+ * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+ */
10
+ var give_scripts, give_global_vars;
11
+ jQuery(document).ready(function ($) {
12
+
13
+ //Run tooltips setup
14
+ setup_give_tooltips();
15
+
16
+ //Hide loading elements
17
+ $('.give-loading-text').hide();
18
+
19
+ // Show the login form in the checkout when the user clicks the "Login" link
20
+ $(document).on('click', '.give-checkout-login', function (e) {
21
+ var $this = $(this);
22
+ var this_form = $(this).parents('form');
23
+ var loading_animation = $(this_form).find('[id^="give-checkout-login-register"] .give-loading-text');
24
+ var data = {
25
+ action : $this.data('action'),
26
+ form_id: $(this_form).find('[name="give-form-id"]').val()
27
+ };
28
+
29
+ // Show the ajax loader
30
+ loading_animation.show();
31
+
32
+ $.post(give_scripts.ajaxurl, data, function (checkout_response) {
33
+
34
+ //Clear form HTML and add AJAX response containing fields
35
+ $(this_form).find('[id^=give-checkout-login-register]').html(checkout_response);
36
+ $(this_form).find('.give-submit-button-wrap').remove();
37
+
38
+ }).done(function () {
39
+ // Hide the ajax loader
40
+ loading_animation.hide();
41
+ // Trigger float-labels
42
+ give_fl_trigger();
43
+ //Setup tooltips again
44
+ setup_give_tooltips();
45
+ });
46
+ return false;
47
+ });
48
+
49
+ // Register/Login Cancel
50
+ $(document).on('click', '.give-checkout-register-cancel', function (e) {
51
+ e.preventDefault();
52
+ // User cancelled login.
53
+ var $this = $(this);
54
+ var this_form = $(this).parents('form');
55
+ var data = {
56
+ action : $this.data('action'),
57
+ form_id: $(this_form).find('[name="give-form-id"]').val()
58
+ };
59
+ // AJAX get the payment fields.
60
+ $.post(give_scripts.ajaxurl, data, function (checkout_response) {
61
+ //Show fields
62
+ $(this_form).find('[id^=give-checkout-login-register]').html($.parseJSON(checkout_response.fields));
63
+ $(this_form).find('input[type="submit"].give-submit').append($.parseJSON(checkout_response.submit));
64
+ }).done(function () {
65
+ // Trigger float-labels
66
+ give_fl_trigger();
67
+ //Setup tooltips again
68
+ setup_give_tooltips();
69
+ });
70
+ });
71
+
72
+ // Process the login form via ajax when the user clicks "login"
73
+ $(document).on('click', '[id^=give-login-fields] input[type=submit]', function (e) {
74
+
75
+ e.preventDefault();
76
+
77
+ var complete_purchase_val = $(this).val();
78
+ var this_form = $(this).parents('form');
79
+
80
+ $(this).val(give_global_vars.purchase_loading);
81
+
82
+ this_form.find('[id^=give-login-fields] .give-loading-animation').fadeIn();
83
+
84
+ var data = {
85
+ action : 'give_process_checkout_login',
86
+ give_ajax : 1,
87
+ give_user_login: this_form.find('[name=give_user_login]').val(),
88
+ give_user_pass : this_form.find('[name=give_user_pass]').val()
89
+ };
90
+
91
+ $.post(give_global_vars.ajaxurl, data, function (data) {
92
+
93
+ //user is logged in
94
+ if ($.trim(data) == 'success') {
95
+ //remove errors
96
+ this_form.find('.give_errors').remove();
97
+ //reload the selected gateway so it contains their logged in information
98
+ give_load_gateway(this_form, this_form.find('.give-gateway-option-selected input').val());
99
+ } else {
100
+ //Login failed, show errors
101
+ this_form.find('[id^=give-login-fields] input[type=submit]').val(complete_purchase_val);
102
+ this_form.find('.give-loading-animation').fadeOut();
103
+ this_form.find('.give_errors').remove();
104
+ this_form.find('[id^=give-user-login-submit]').before(data);
105
+ }
106
+ });
107
+
108
+ });
109
+
110
+ //Switch the gateway on gateway selection field change
111
+ $('select#give-gateway, input.give-gateway').on('change', function (e) {
112
+
113
+ e.preventDefault();
114
+
115
+ //Which payment gateway to load?
116
+ var payment_mode = $(this).val();
117
+
118
+ //Problema? Bounce
119
+ if (payment_mode == '0') {
120
+ console.log('There was a problem loading the selected gateway');
121
+ return false;
122
+ }
123
+
124
+ give_load_gateway($(this).parents('form'), payment_mode);
125
+
126
+ return false;
127
+
128
+ });
129
+
130
+ /**
131
+ * Donation Form AJAX Submission
132
+ *
133
+ * @description: Process the donation submit
134
+ */
135
+ $('body').on('click touchend', 'form.give-form input[type="submit"].give-submit', function (e) {
136
+
137
+ //this form object
138
+ var this_form = $(this).parents('form.give-form');
139
+
140
+ //loading animation
141
+ var loading_animation = this_form.find('input[type="submit"].give-submit + .give-loading-animation');
142
+ loading_animation.fadeIn();
143
+
144
+ //this form selector
145
+ var give_purchase_form = this_form.get(0);
146
+
147
+ //HTML5 required check validity
148
+ if (typeof give_purchase_form.checkValidity === "function" && give_purchase_form.checkValidity() === false) {
149
+
150
+ //Don't leave any hanging loading animations
151
+ loading_animation.fadeOut();
152
+
153
+ //Check for Safari (doesn't support HTML5 required)
154
+ if ((navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) === false) {
155
+ //Not safari: Support HTML5 "required" so skip the rest of this function
156
+ return;
157
+ }
158
+
159
+ }
160
+
161
+ //prevent form from submitting normally
162
+ e.preventDefault();
163
+
164
+ //Submit btn text
165
+ var complete_purchase_val = $(this).val();
166
+
167
+ //Update submit button text
168
+ $(this).val(give_global_vars.purchase_loading);
169
+
170
+ //Submit form via AJAX
171
+ $.post(give_global_vars.ajaxurl, this_form.serialize() + '&action=give_process_checkout&give_ajax=true', function (data) {
172
+
173
+ if ($.trim(data) == 'success') {
174
+ //Remove any errors
175
+ this_form.find('.give_errors').remove();
176
+ //Submit form for normal processing
177
+ $(give_purchase_form).submit();
178
+
179
+ this_form.trigger( 'give_form_validation_passed' );
180
+ } else {
181
+ //There was an error / remove old errors and prepend new ones
182
+ this_form.find('input[type="submit"].give-submit').val(complete_purchase_val);
183
+ loading_animation.fadeOut();
184
+ this_form.find('.give_errors').remove();
185
+ this_form.find('input[type="submit"].give-submit').before(data);
186
+ }
187
+
188
+ });
189
+
190
+ });
191
+
192
+ });
193
+
194
+ /**
195
+ * Load the Payment Gateways
196
+ *
197
+ * @description: AJAX load appropriate gateway fields
198
+ * @param form_object Obj The specific form to load a gateway for
199
+ * @param payment_mode
200
+ */
201
+ function give_load_gateway(form_object, payment_mode) {
202
+
203
+ var loading_element = jQuery(form_object).find('#give-payment-mode-select .give-loading-text');
204
+ var give_total = jQuery(form_object).find('#give-amount').val();
205
+ var give_form_id = jQuery(form_object).find('input[name="give-form-id"]').val();
206
+
207
+ // Show the ajax loader
208
+ loading_element.fadeIn();
209
+
210
+ var form_data = jQuery(form_object).data();
211
+
212
+ if (form_data["blockUI.isBlocked"] != 1) {
213
+ jQuery(form_object).find('#give_purchase_form_wrap').block({
214
+ message : null,
215
+ overlayCSS: {
216
+ background: '#fff',
217
+ opacity : 0.6
218
+ }
219
+ });
220
+ }
221
+
222
+ //Post via AJAX to Give
223
+ jQuery.post(give_scripts.ajaxurl + '?payment-mode=' + payment_mode, {
224
+ action : 'give_load_gateway',
225
+ give_total : give_total,
226
+ give_form_id : give_form_id,
227
+ give_payment_mode: payment_mode
228
+ },
229
+ function (response) {
230
+ //Success: let's output the gateway fields in the appropriate form space
231
+ jQuery(form_object).unblock();
232
+ jQuery(form_object).find('#give_purchase_form_wrap').html(response);
233
+ jQuery('.give-no-js').hide();
234
+ jQuery(form_object).find('#give-payment-mode-select .give-loading-text').fadeOut();
235
+ setup_give_tooltips();
236
+
237
+ // trigger an event on success for hooks
238
+ jQuery(document).trigger('give_gateway_loaded', [response, jQuery(form_object).attr('id')]);
239
+ }
240
+ );
241
+
242
+ }
243
+
244
+ /**
245
+ * Load Tooltips
246
+ *
247
+ * @description Give tooltips use qTip2
248
+ * @since 1.0
249
+ */
250
+ function setup_give_tooltips() {
251
+ jQuery('[data-tooltip!=""]').qtip({ // Grab all elements with a non-blank data-tooltip attr.
252
+ content : {
253
+ attr: 'data-tooltip' // Tell qTip2 to look inside this attr for its content
254
+ },
255
+ style : {classes: 'qtip-rounded qtip-tipsy'},
256
+ position: {
257
+ my: 'bottom center', // Position my top left...
258
+ at: 'top center' // at the bottom right of...
259
+ }
260
+ });
261
+ jQuery.fn.qtip.zindex = 2147483641; // Higher z-index than Give's magnific modal
262
+
263
+ }
assets/js/frontend/give-ajax.min.js ADDED
@@ -0,0 +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(),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"),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").remove()}).done(function(){n.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"),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('input[type="submit"].give-submit').append(e.parseJSON(i.submit))}).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 n={action:"give_process_checkout_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,n,function(i){"success"==e.trim(i)?(a.find(".give_errors").remove(),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))})}),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 touchend",'form.give-form input[type="submit"].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),e.post(give_global_vars.ajaxurl,t.serialize()+"&action=give_process_checkout&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('input[type="submit"].give-submit').before(i))})}})});
assets/js/frontend/give-checkout-global.js ADDED
@@ -0,0 +1,595 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give Form Checkout JS
3
+ *
4
+ * @description: Handles JS functionality for the donation form checkout
5
+ * @package: Give
6
+ * @subpackage: Assets/JS
7
+ * @copyright: Copyright (c) 2016, WordImpress
8
+ * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+ */
10
+ var give_scripts, give_global_vars;
11
+
12
+ jQuery(function ($) {
13
+
14
+ var doc = $(document);
15
+
16
+ /**
17
+ * Update state/province fields per country selection
18
+ */
19
+ function update_billing_state_field() {
20
+ var $this = $(this),
21
+ $form = $this.parents('form');
22
+ if ('card_state' != $this.attr('id')) {
23
+
24
+ //Disable the State field until updated
25
+ $form.find('#card_state').empty().append('<option value="1">' + give_global_vars.general_loading + '</option>').prop('disabled', true);
26
+
27
+ // If the country field has changed, we need to update the state/province field
28
+ var postData = {
29
+ action: 'give_get_states',
30
+ country: $this.val(),
31
+ field_name: 'card_state'
32
+ };
33
+
34
+ $.ajax({
35
+ type: 'POST',
36
+ data: postData,
37
+ url: give_global_vars.ajaxurl,
38
+ xhrFields: {
39
+ withCredentials: true
40
+ },
41
+ success: function (response) {
42
+ if ('nostates' == response) {
43
+ var text_field = '<input type="text" id="card_state" name="card_state" class="cart-state give-input required" value=""/>';
44
+ $form.find('input[name="card_state"], select[name="card_state"]').replaceWith(text_field);
45
+ } else {
46
+ $form.find('input[name="card_state"], select[name="card_state"]').replaceWith(response);
47
+ }
48
+ doc.trigger('give_checkout_billing_address_updated', [response, $form.attr('id')]);
49
+ }
50
+ }).fail(function (data) {
51
+ if (window.console && window.console.log) {
52
+ console.log(data);
53
+ }
54
+ });
55
+ }
56
+
57
+ return false;
58
+ }
59
+
60
+ doc.on('change', '#give_cc_address input.card_state, #give_cc_address select', update_billing_state_field
61
+ );
62
+
63
+
64
+ /**
65
+ * Format CC Fields
66
+ * @description Set variables and format cc fields
67
+ * @since 1.2
68
+ */
69
+ function format_cc_fields() {
70
+ give_form = $('form.give-form');
71
+
72
+ //Loop through forms on page and set CC validation
73
+ give_form.each(function () {
74
+ var card_number = $(this).find('.card-number');
75
+ var card_cvc = $(this).find('.card-cvc');
76
+ var card_expiry = $(this).find('.card-expiry');
77
+
78
+ //Only validate if there is a card field
79
+ if (card_number.length === 0) {
80
+ return false;
81
+ }
82
+
83
+ card_number.payment('formatCardNumber');
84
+ card_cvc.payment('formatCardCVC');
85
+ card_expiry.payment('formatCardExpiry');
86
+ });
87
+
88
+ }
89
+
90
+ format_cc_fields();
91
+
92
+ // Trigger formatting function when gateway changes
93
+ doc.on('give_gateway_loaded', function () {
94
+ format_cc_fields();
95
+ });
96
+
97
+ // Toggle validation classes
98
+ $.fn.toggleError = function (errored) {
99
+ this.toggleClass('error', errored);
100
+ this.toggleClass('valid', !errored);
101
+
102
+ return this;
103
+ };
104
+
105
+ /**
106
+ * Validate cc fields on change
107
+ */
108
+ doc.on('keyup change', '.give-form .card-number, .give-form .card-cvc, .give-form .card-expiry', function () {
109
+ var el = $(this),
110
+ give_form = el.parents('form.give-form'),
111
+ id = el.attr('id'),
112
+ card_number = give_form.find('.card-number'),
113
+ card_cvc = give_form.find('.card-cvc'),
114
+ card_expiry = give_form.find('.card-expiry'),
115
+ type = $.payment.cardType(card_number.val());
116
+
117
+ if (id.indexOf('card_number') > -1) {
118
+
119
+ var card_type = give_form.find('.card-type');
120
+
121
+ if (type === null) {
122
+ card_type.removeClass().addClass('off card-type');
123
+ el.removeClass('valid').addClass('error');
124
+ }
125
+ else {
126
+ card_type.removeClass().addClass('card-type ' + type);
127
+ }
128
+
129
+ card_number.toggleError(!$.payment.validateCardNumber(card_number.val()));
130
+ }
131
+ if (id.indexOf('card_cvc') > -1) {
132
+
133
+ card_cvc.toggleError(!$.payment.validateCardCVC(card_cvc.val(), type));
134
+ }
135
+ if (id.indexOf('card_expiry') > -1) {
136
+
137
+ card_expiry.toggleError(!$.payment.validateCardExpiry(card_expiry.payment('cardExpiryVal')));
138
+
139
+ var expiry = card_expiry.payment('cardExpiryVal');
140
+
141
+ give_form.find('.card-expiry-month').val(expiry.month);
142
+ give_form.find('.card-expiry-year').val(expiry.year);
143
+ }
144
+ });
145
+
146
+ /**
147
+ * Format Currency
148
+ *
149
+ * @description format the currency with accounting.js
150
+ * @param price
151
+ * @param args object
152
+ * @returns {*|string}
153
+ */
154
+ function give_format_currency(price, args) {
155
+
156
+ //Properly position symbol after if selected
157
+ if (give_global_vars.currency_pos == 'after') {
158
+ args.format = "%v%s";
159
+ }
160
+
161
+ return accounting.formatMoney(price, args).trim();
162
+
163
+ }
164
+
165
+ /**
166
+ * Unformat Currency
167
+ *
168
+ * @param price
169
+ * @returns {number}
170
+ */
171
+ function give_unformat_currency(price) {
172
+ return Math.abs(parseFloat(accounting.unformat(price, give_global_vars.decimal_separator)));
173
+ }
174
+
175
+
176
+ /**
177
+ * Get formatted amount
178
+ *
179
+ * @param {string/number} amount
180
+ */
181
+ function give_format_amount(amount) {
182
+
183
+ //Set the custom amount input value format properly
184
+ var format_args = {
185
+ symbol: '',
186
+ decimal: give_global_vars.decimal_separator,
187
+ thousand: give_global_vars.thousands_separator,
188
+ precision: give_global_vars.number_decimals
189
+ };
190
+
191
+ return accounting.formatMoney(amount, format_args);
192
+ }
193
+
194
+
195
+ /**
196
+ * Get Price ID and levels for multi donation form
197
+ *
198
+ * @param {Object} $form Form jQuery object
199
+ *
200
+ * @returns {Object}
201
+ */
202
+ function give_get_variable_prices($form) {
203
+ var variable_prices = [];
204
+
205
+ // check if currect form type is muti or not.
206
+ if (!$form.hasClass('give-form-type-multi')) {
207
+ return variable_prices;
208
+ }
209
+
210
+ $.each($form.find('.give-donation-levels-wrap [data-price-id] '), function (index, item) {
211
+ // Get Jquery instance for item.
212
+ item = (
213
+ !(
214
+ item instanceof jQuery
215
+ ) ? jQuery(item) : item
216
+ );
217
+
218
+
219
+ // Add price id and amount to collector.
220
+ variable_prices.push({
221
+ price_id: item.data('price-id'),
222
+ amount: give_unformat_currency(item.val())
223
+ });
224
+ });
225
+
226
+ return variable_prices;
227
+ }
228
+
229
+ // Make sure a gateway is selected
230
+ doc.on('submit', '#give_payment_mode', function () {
231
+ var gateway = $('#give-gateway option:selected').val();
232
+ if (gateway == 0) {
233
+ alert(give_global_vars.no_gateway);
234
+ return false;
235
+ }
236
+ });
237
+
238
+ // Add a class to the currently selected gateway on click
239
+ doc.on('click', '#give-payment-mode-select input', function () {
240
+ var $form = $(this).parents('form'),
241
+ $gateways_li = $('#give-payment-mode-select li'),
242
+ old_payment_gateway = $('#give-payment-mode-select li.give-gateway-option-selected input[name="payment-mode"]').val(),
243
+ new_payment_gateways = '';
244
+
245
+ // Unselect all payment gateways.
246
+ $gateways_li.removeClass('give-gateway-option-selected');
247
+ $gateways_li.prop('checked', false);
248
+
249
+ // Select payment gateway.
250
+ $(this).prop('checked', true);
251
+ $(this).parent().addClass('give-gateway-option-selected');
252
+
253
+ // Get new payment gateway.
254
+ new_payment_gateways = $('#give-payment-mode-select li.give-gateway-option-selected input[name="payment-mode"]').val();
255
+
256
+ // Change form action.
257
+ $form.attr('action', $form.attr('action').replace(
258
+ 'payment-mode=' + old_payment_gateway,
259
+ 'payment-mode=' + new_payment_gateways)
260
+ );
261
+ });
262
+
263
+ /**
264
+ * Custom Donation Amount Focus In
265
+ *
266
+ * @description: If user focuses on field & changes value then updates price
267
+ */
268
+ doc.on('focus', '.give-donation-amount .give-text-input', function (e) {
269
+
270
+ var parent_form = $(this).parents('form');
271
+
272
+ //Remove any invalid class
273
+ $(this).removeClass('invalid-amount');
274
+
275
+ //Set data amount
276
+ var current_total = parent_form.find('.give-final-total-amount').data('total');
277
+ $(this).data('amount', give_unformat_currency(current_total));
278
+
279
+
280
+ //This class is used for CSS purposes
281
+ $(this).parent('.give-donation-amount').addClass('give-custom-amount-focus-in');
282
+
283
+ //Set Multi-Level to Custom Amount Field
284
+ parent_form.find('.give-default-level, .give-radio-input').removeClass('give-default-level');
285
+ parent_form.find('.give-btn-level-custom').addClass('give-default-level');
286
+ parent_form.find('.give-radio-input').prop('checked', false); //Radio
287
+ parent_form.find('.give-radio-input.give-radio-level-custom').prop('checked', true); //Radio
288
+ parent_form.find('.give-select-level').prop('selected', false); //Select
289
+ parent_form.find('.give-select-level .give-donation-level-custom').prop('selected', true); //Select
290
+
291
+ });
292
+
293
+ /**
294
+ * Custom Donation Focus Out
295
+ *
296
+ * @description: Fires on focus end aka "blur"
297
+ *
298
+ */
299
+ doc.on('blur', '.give-donation-amount .give-text-input', function (e, $parent_form, donation_amount, price_id) {
300
+
301
+ var parent_form = (
302
+ $parent_form != undefined
303
+ ) ? $parent_form : $(this).closest('form'),
304
+ pre_focus_amount = $(this).data('amount'),
305
+ this_value = (
306
+ donation_amount != undefined
307
+ ) ? donation_amount : $(this).val(),
308
+ $minimum_amount = parent_form.find('input[name="give-form-minimum"]'),
309
+ value_min = give_unformat_currency($minimum_amount.val()),
310
+ value_now = (
311
+ this_value == 0
312
+ ) ? value_min : give_unformat_currency(this_value),
313
+ variable_prices = give_get_variable_prices($(this).parents('form')),
314
+ error_msg = '';
315
+
316
+ /**
317
+ * Flag Multi-levels for min. donation conditional.
318
+ *
319
+ * Note: Value of this variable will be:
320
+ * a. -1 if no any level found.
321
+ * b. [0-*] Any number from zero if donation level found.
322
+ * c custom if donation level not found and donation amount is greater then the custom minimum amount.
323
+ *
324
+ * @type {number/string} Donation level ID.
325
+ */
326
+ price_id = (
327
+ undefined != price_id
328
+ ) ? price_id : -1;
329
+
330
+
331
+ //Set the custom amount input value format properly
332
+ var format_args = {
333
+ symbol: '',
334
+ decimal: give_global_vars.decimal_separator,
335
+ thousand: give_global_vars.thousands_separator,
336
+ precision: give_global_vars.number_decimals
337
+ };
338
+
339
+ var formatted_total = give_format_currency(value_now, format_args);
340
+ $(this).val(formatted_total);
341
+
342
+ // Find price id with amount in variable prices.
343
+ if (variable_prices.length && !(
344
+ -1 < price_id
345
+ )) {
346
+
347
+ // Find amount in donation levels.
348
+ $.each(variable_prices, function (index, variable_price) {
349
+ if (variable_price.amount === value_now) {
350
+ price_id = variable_price.price_id;
351
+ return false;
352
+ }
353
+ });
354
+
355
+ // Set level to custom.
356
+ if (!(
357
+ -1 < price_id
358
+ ) && (
359
+ value_min <= value_now
360
+ )) {
361
+ price_id = 'custom';
362
+ }
363
+ }
364
+
365
+ //Does this number have an accepted minimum value?
366
+ if ((
367
+ value_now < value_min || value_now < 1
368
+ ) && (
369
+ -1 === price_id
370
+ )) {
371
+
372
+ //It doesn't... Invalid Minimum
373
+ $(this).addClass('give-invalid-amount');
374
+ format_args.symbol = give_global_vars.currency_sign;
375
+ error_msg = give_global_vars.bad_minimum + ' ' + give_format_currency(value_min, format_args);
376
+
377
+ //Disable submit
378
+ parent_form.find('.give-submit').prop('disabled', true);
379
+ var invalid_minimum = parent_form.find('.give-invalid-minimum');
380
+
381
+ //If no error present, create it, insert, slide down (show)
382
+ if (invalid_minimum.length === 0) {
383
+ var error = $('<div class="give_error give-invalid-minimum">' + error_msg + '</div>').hide();
384
+ error.insertBefore(parent_form.find('.give-total-wrap')).show();
385
+ }
386
+
387
+ } else {
388
+
389
+ // Remove error massage class from price field.
390
+ $(this).removeClass('give-invalid-amount');
391
+
392
+ //Minimum amount met - slide up error & remove it from DOM
393
+ parent_form.find('.give-invalid-minimum').slideUp(300, function () {
394
+ $(this).remove();
395
+ });
396
+
397
+ //Re-enable submit
398
+ parent_form.find('.give-submit').prop('disabled', false);
399
+
400
+ }
401
+
402
+
403
+ //If values don't match up then proceed with updating donation total value
404
+ if (pre_focus_amount !== value_now) {
405
+
406
+ //update donation total (include currency symbol)
407
+ format_args.symbol = give_global_vars.currency_sign;
408
+ parent_form.find('.give-final-total-amount').data('total', value_now).text(give_format_currency(value_now, format_args));
409
+
410
+ }
411
+
412
+ // Set price id for current amount.
413
+ if (-1 !== price_id) {
414
+
415
+ // Auto set give price id.
416
+ $('input[name="give-price-id"]', parent_form).val(price_id);
417
+
418
+ // Update hidden amount field
419
+ parent_form.find('.give-amount-hidden').val(give_format_amount(value_now));
420
+
421
+ // Remove old selected class & add class for CSS purposes
422
+ parent_form.find('.give-default-level').removeClass('give-default-level');
423
+
424
+ // Auto select variable price items ( Radio/Button/Select ).
425
+ switch (true) {
426
+
427
+ // Auto select radio button.
428
+ case (
429
+ !!parent_form.find('.give-radio-input').length
430
+ ) :
431
+ parent_form.find('.give-radio-input').prop('checked', false);
432
+ parent_form.find('.give-radio-input[data-price-id="' + price_id + '"]')
433
+ .prop('checked', true)
434
+ .addClass('give-default-level');
435
+ break;
436
+
437
+ // Set focus to price id button.
438
+ case (
439
+ !!parent_form.find('button.give-donation-level-btn').length
440
+ ) :
441
+ parent_form.find('button.give-donation-level-btn').blur();
442
+ parent_form.find('button.give-donation-level-btn[data-price-id="' + price_id + '"]')
443
+ .focus()
444
+ .addClass('give-default-level');
445
+ break;
446
+
447
+ // Auto select option.
448
+ case (
449
+ !!parent_form.find('select.give-select-level').length
450
+ ) :
451
+ parent_form.find('select.give-select-level option').prop('selected', false);
452
+ parent_form.find('select.give-select-level option[data-price-id="' + price_id + '"]')
453
+ .prop('selected', true)
454
+ .addClass('give-default-level');
455
+ break;
456
+
457
+ }
458
+ }
459
+
460
+ //This class is used for CSS purposes
461
+ $(this).parent('.give-donation-amount').removeClass('give-custom-amount-focus-in');
462
+
463
+ });
464
+
465
+
466
+ //Multi-level Buttons: Update Amount Field based on Multi-level Donation Select
467
+ doc.on('click touchend', '.give-donation-level-btn', function (e) {
468
+ e.preventDefault(); //don't let the form submit
469
+ update_multiselect_vals($(this));
470
+ });
471
+
472
+ //Multi-level Radios: Update Amount Field based on Multi-level Donation Select
473
+ doc.on('click touchend', '.give-radio-input-level', function (e) {
474
+ update_multiselect_vals($(this));
475
+ });
476
+
477
+ //Multi-level Radios: Update Amount Field based on Multi-level Donation Select
478
+ doc.on('change', '.give-select-level', function (e) {
479
+ update_multiselect_vals($(this));
480
+ });
481
+
482
+ /**
483
+ * Update Multiselect Values
484
+ *
485
+ * @description Helper function: Sets the multiselect amount values
486
+ *
487
+ * @param selected_field
488
+ * @returns {boolean}
489
+ */
490
+ function update_multiselect_vals(selected_field) {
491
+
492
+ var $parent_form = selected_field.parents('form'),
493
+ this_amount = selected_field.val(),
494
+ price_id = selected_field.data('price-id');
495
+
496
+ // Check if price ID blank because of dropdown type
497
+ if (!price_id) {
498
+ price_id = selected_field.find('option:selected').data('price-id');
499
+ }
500
+
501
+ // Is this a custom amount selection?
502
+ if (this_amount === 'custom') {
503
+ //It is, so focus on the custom amount input
504
+ $parent_form.find('.give-amount-top').val('').focus();
505
+ return false; //Bounce out
506
+ }
507
+
508
+ //update custom amount field
509
+ $parent_form.find('.give-amount-top').val(this_amount);
510
+ $parent_form.find('span.give-amount-top').text(this_amount);
511
+
512
+ // Manually trigger blur event with two params:
513
+ // (a) form jquery object
514
+ // (b) price id
515
+ // (c) donation amount
516
+ $parent_form.find('.give-donation-amount .give-text-input').trigger('blur', [
517
+ $parent_form,
518
+ this_amount,
519
+ price_id
520
+ ]);
521
+
522
+ // trigger an event for hooks
523
+ $(document).trigger('give_donation_value_updated', [$parent_form, this_amount, price_id]);
524
+ }
525
+
526
+ /**
527
+ * Donor sent back to the form
528
+ */
529
+ function sent_back_to_form() {
530
+
531
+ var form_id = give_get_parameter_by_name('form-id');
532
+ var payment_mode = give_get_parameter_by_name('payment-mode');
533
+
534
+ // Sanity check - only proceed if query strings in place.
535
+ if (!form_id || !payment_mode) {
536
+ return false;
537
+ }
538
+
539
+ var form_wrap = $('body').find('#give-form-' + form_id + '-wrap');
540
+ var form = form_wrap.find('form.give-form');
541
+ var display_modal = form_wrap.hasClass('give-display-modal');
542
+ var display_reveal = form_wrap.hasClass('give-display-reveal');
543
+
544
+ // Update payment mode radio so it's correctly checked.
545
+ form.find('#give-gateway-radio-list label').removeClass('give-gateway-option-selected');
546
+ form.find('input[name=payment-mode][value=' + payment_mode + ']').prop('checked', true).parent().addClass('give-gateway-option-selected');
547
+
548
+ // Select the proper level for Multi-level forms.
549
+ // It can either be a dropdown, buttons, or radio list. Default is buttons field type.
550
+ var level_id = give_get_parameter_by_name('level-id');
551
+ var level_field = form.find('*[data-price-id="' + level_id + '"]');
552
+ if (level_field.length > 0) {
553
+ update_multiselect_vals(level_field);
554
+ }
555
+
556
+ // This form is modal display so show the modal.
557
+ if (display_modal) {
558
+ give_open_form_modal(form_wrap, form);
559
+ } else if (display_reveal) {
560
+ // This is a reveal form, show it.
561
+ form.find('.give-btn-reveal').hide();
562
+ form.find('#give-payment-mode-select, #give_purchase_form_wrap').slideDown();
563
+ }
564
+
565
+ }
566
+
567
+ sent_back_to_form();
568
+
569
+ /**
570
+ * Get Parameter by Name
571
+ *
572
+ * @see: http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
573
+ * @param name
574
+ * @param url
575
+ * @since 1.4.2
576
+ * @returns {*}
577
+ */
578
+ function give_get_parameter_by_name(name, url) {
579
+ if (!url) {
580
+ url = window.location.href;
581
+ }
582
+ name = name.replace(/[\[\]]/g, "\\$&");
583
+ var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
584
+ results = regex.exec(url);
585
+ if (!results) {
586
+ return null;
587
+ }
588
+ if (!results[2]) {
589
+ return '';
590
+ }
591
+ return decodeURIComponent(results[2].replace(/\+/g, " "));
592
+ }
593
+
594
+
595
+ });
assets/js/frontend/give-checkout-global.min.js ADDED
@@ -0,0 +1 @@
 
1
+ var give_scripts,give_global_vars;jQuery(function(e){function a(){var a=e(this),i=a.parents("form");if("card_state"!=a.attr("id")){i.find("#card_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var t={action:"give_get_states",country:a.val(),field_name:"card_state"};e.ajax({type:"POST",data:t,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){if("nostates"==e){var a='<input type="text" id="card_state" name="card_state" class="cart-state give-input required" value=""/>';i.find('input[name="card_state"], select[name="card_state"]').replaceWith(a)}else i.find('input[name="card_state"], select[name="card_state"]').replaceWith(e);v.trigger("give_checkout_billing_address_updated",[e,i.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}function i(){give_form=e("form.give-form"),give_form.each(function(){var a=e(this).find(".card-number"),i=e(this).find(".card-cvc"),t=e(this).find(".card-expiry");return 0!==a.length&&(a.payment("formatCardNumber"),i.payment("formatCardCVC"),void t.payment("formatCardExpiry"))})}function t(e,a){return"after"==give_global_vars.currency_pos&&(a.format="%v%s"),accounting.formatMoney(e,a).trim()}function n(e){return Math.abs(parseFloat(accounting.unformat(e,give_global_vars.decimal_separator)))}function o(e){var a={symbol:"",decimal:give_global_vars.decimal_separator,thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals};return accounting.formatMoney(e,a)}function r(a){var i=[];return a.hasClass("give-form-type-multi")?(e.each(a.find(".give-donation-levels-wrap [data-price-id] "),function(e,a){a=a instanceof jQuery?a:jQuery(a),i.push({price_id:a.data("price-id"),amount:n(a.val())})}),i):i}function d(a){var i=a.parents("form"),t=a.val(),n=a.data("price-id");return n||(n=a.find("option:selected").data("price-id")),"custom"===t?(i.find(".give-amount-top").val("").focus(),!1):(i.find(".give-amount-top").val(t),i.find("span.give-amount-top").text(t),i.find(".give-donation-amount .give-text-input").trigger("blur",[i,t,n]),void e(document).trigger("give_donation_value_updated",[i,t,n]))}function l(){var a=s("form-id"),i=s("payment-mode");if(!a||!i)return!1;var t=e("body").find("#give-form-"+a+"-wrap"),n=t.find("form.give-form"),o=t.hasClass("give-display-modal"),r=t.hasClass("give-display-reveal");n.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),n.find("input[name=payment-mode][value="+i+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var l=s("level-id"),v=n.find('*[data-price-id="'+l+'"]');v.length>0&&d(v),o?give_open_form_modal(t,n):r&&(n.find(".give-btn-reveal").hide(),n.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())}function s(e,a){a||(a=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),t=i.exec(a);return t?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null}var v=e(document);v.on("change","#give_cc_address input.card_state, #give_cc_address select",a),i(),v.on("give_gateway_loaded",function(){i()}),e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},v.on("keyup change",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(){var a=e(this),i=a.parents("form.give-form"),t=a.attr("id"),n=i.find(".card-number"),o=i.find(".card-cvc"),r=i.find(".card-expiry"),d=e.payment.cardType(n.val());if(t.indexOf("card_number")>-1){var l=i.find(".card-type");null===d?(l.removeClass().addClass("off card-type"),a.removeClass("valid").addClass("error")):l.removeClass().addClass("card-type "+d),n.toggleError(!e.payment.validateCardNumber(n.val()))}if(t.indexOf("card_cvc")>-1&&o.toggleError(!e.payment.validateCardCVC(o.val(),d)),t.indexOf("card_expiry")>-1){r.toggleError(!e.payment.validateCardExpiry(r.payment("cardExpiryVal")));var s=r.payment("cardExpiryVal");i.find(".card-expiry-month").val(s.month),i.find(".card-expiry-year").val(s.year)}}),v.on("submit","#give_payment_mode",function(){var a=e("#give-gateway option:selected").val();if(0==a)return alert(give_global_vars.no_gateway),!1}),v.on("click","#give-payment-mode-select input",function(){var a=e(this).parents("form"),i=e("#give-payment-mode-select li"),t=e('#give-payment-mode-select li.give-gateway-option-selected input[name="payment-mode"]').val(),n="";i.removeClass("give-gateway-option-selected"),i.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),n=e('#give-payment-mode-select li.give-gateway-option-selected input[name="payment-mode"]').val(),a.attr("action",a.attr("action").replace("payment-mode="+t,"payment-mode="+n))}),v.on("focus",".give-donation-amount .give-text-input",function(a){var i=e(this).parents("form");e(this).removeClass("invalid-amount");var t=i.find(".give-final-total-amount").data("total");e(this).data("amount",n(t)),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)}),v.on("blur",".give-donation-amount .give-text-input",function(a,i,d,l){var s=void 0!=i?i:e(this).closest("form"),v=e(this).data("amount"),c=void 0!=d?d:e(this).val(),g=s.find('input[name="give-form-minimum"]'),m=n(g.val()),p=0==c?m:n(c),u=r(e(this).parents("form")),f="";l=void 0!=l?l:-1;var _={symbol:"",decimal:give_global_vars.decimal_separator,thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals},h=t(p,_);if(e(this).val(h),!u.length||-1<l||(e.each(u,function(e,a){if(a.amount===p)return l=a.price_id,!1}),!(-1<l)&&m<=p&&(l="custom")),(p<m||p<1)&&-1===l){e(this).addClass("give-invalid-amount"),_.symbol=give_global_vars.currency_sign,f=give_global_vars.bad_minimum+" "+t(m,_),s.find(".give-submit").prop("disabled",!0);var y=s.find(".give-invalid-minimum");if(0===y.length){var b=e('<div class="give_error give-invalid-minimum">'+f+"</div>").hide();b.insertBefore(s.find(".give-total-wrap")).show()}}else e(this).removeClass("give-invalid-amount"),s.find(".give-invalid-minimum").slideUp(300,function(){e(this).remove()}),s.find(".give-submit").prop("disabled",!1);if(v!==p&&(_.symbol=give_global_vars.currency_sign,s.find(".give-final-total-amount").data("total",p).text(t(p,_))),-1!==l)switch(e('input[name="give-price-id"]',s).val(l),s.find(".give-amount-hidden").val(o(p)),s.find(".give-default-level").removeClass("give-default-level"),!0){case!!s.find(".give-radio-input").length:s.find(".give-radio-input").prop("checked",!1),s.find('.give-radio-input[data-price-id="'+l+'"]').prop("checked",!0).addClass("give-default-level");break;case!!s.find("button.give-donation-level-btn").length:s.find("button.give-donation-level-btn").blur(),s.find('button.give-donation-level-btn[data-price-id="'+l+'"]').focus().addClass("give-default-level");break;case!!s.find("select.give-select-level").length:s.find("select.give-select-level option").prop("selected",!1),s.find('select.give-select-level option[data-price-id="'+l+'"]').prop("selected",!0).addClass("give-default-level")}e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in")}),v.on("click touchend",".give-donation-level-btn",function(a){a.preventDefault(),d(e(this))}),v.on("click touchend",".give-radio-input-level",function(a){d(e(this))}),v.on("change",".give-select-level",function(a){d(e(this))}),l()});
assets/js/frontend/give.all.min.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
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(){var e,t,a,l,n;e=window.jQuery||window.Zepto||window.$,e.fn.floatlabels=function(a){if(n=e.extend({regex:/text|password|email|number|search|url|tel/,exclude:[],priority:"",customLabel:function(){},customEvent:function(){}},a),l=e(this),l.length){if("FORM"!==l.get(0).tagName){var i=l.find("form");if(0===i.length&&(i=l.closest("form")),0===i.length)return;l=i}l.addClass("floated-labels"),n.exclude.push(".no-label"),n.exclude=n.exclude.join(","),l.find("input:not("+n.exclude+")").each(function(){n.regex.test(e(this).attr("type"))&&t(this)}),l.find("textarea:not("+n.exclude+")").each(function(){t(this)}),l.find("select:not("+n.exclude+")").each(function(){t(this,"select"),e(this).parent().addClass("styled select")})}},t=function(t,l){var i,o,r,s,c,d,f="floatlabel";if(t=e(t),i=t.attr("id"),c=t.attr("placeholder"),r='label[for="'+i+'"]',void 0!==i&&(o=e(r),o.length>1&&(o=t.parent().find(r)),1===o.length&&(s=o.text().replace(/[*:]/g,"").trim(),d=o.find("[data-tooltip]").data("tooltip")),(!s||s&&c&&"placeholder"===n.priority)&&(s=c)),s){if("select"===l){var u=t.children().first();""===u.val()&&""===u.text()&&u.text(s)}else c&&"label"!==n.priority||t.attr("placeholder",s);if(!t.parent().hasClass(f)){t.addClass(f+"-input").wrap(_pf('<div class="{0} {0}-{1}"/>',f,i)),n.customEvent.call(this,t);var p=n.customLabel.call(this,t,s);void 0!==p&&(s=p),s=e(_pf('<label for="{0}" class="{1}-label">{2}</label>',i,f,s)),d&&s.attr("data-tooltip",d),o.remove(),t.after(s)}t.val().length&&t.parent().addClass("is-active"),t.on("focus",function(){t.parent().addClass("is-focused")}),t.on("blur",function(){t.parent().removeClass("is-focused")}),t.on("keyup blur change",function(e){a(t,e)})}},a=function(e,t){if(t){var a=t.keyCode||t.which;if(9===a)return}e.val().length?e.parent().addClass("is-active"):e.parent().removeClass("is-active")},_pf=function(e){var t=[].slice.call(arguments,1,arguments.length);return e.replace(/{(\d+)}/g,function(e,a){return void 0!==typeof t[a]?t[a]:e})}}).call(this);
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,c,h,s,p,f,g,d,v,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:"visaelectron",pattern:/^4(026|17500|405|508|844|91[37])/,format:a,length:[16],cvcLength:[3],luhn:!0},{type:"maestro",pattern:/^(5(018|0[23]|[68])|6(39|7))/,format:a,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"forbrugsforeningen",pattern:/^600/,format:a,length:[16],cvcLength:[3],luhn:!0},{type:"dankort",pattern:/^5019/,format:a,length:[16],cvcLength:[3],luhn:!0},{type:"visa",pattern:/^4/,format:a,length:[13,16],cvcLength:[3],luhn:!0},{type:"mastercard",pattern:/^(5[1-5]|2[2-7])/,format:a,length:[16],cvcLength:[3],luhn:!0},{type:"amex",pattern:/^3[47]/,format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"dinersclub",pattern:/^3[0689]/,format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",pattern:/^6([045]|22)/,format:a,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",pattern:/^(62|88)/,format:a,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"jcb",pattern:/^35/,format:a,length:[16],cvcLength:[3],luhn:!0}],e=function(t){var e,n,a;for(t=(t+"").replace(/\D/g,""),n=0,a=r.length;n<a;n++)if(e=r[n],e.pattern.test(t))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},s=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;try{n=e.prop("selectionStart")}catch(i){r=i,n=null}if(a=e.val(),e.val(t),null!==n&&e.is(":focus"))return n===a.length&&(n=t.length),e.prop("selectionStart",n),e.prop("selectionEnd",n)},m=function(t){var e,n,r,a,i,o,l,u;for(null==t&&(t=""),r="0123456789",a="0123456789",o="",n=t.split(""),l=0,u=n.length;l<u;l++)e=n[l],i=r.indexOf(e),i>-1&&(e=a[i]),o+=e;return o},v=function(e){return setTimeout(function(){var n,r;return n=t(e.currentTarget),r=n.val(),r=m(r),r=r.replace(/\D/g,""),$(r,n)})},g=function(e){return setTimeout(function(){var n,r;return n=t(e.currentTarget),r=n.val(),r=m(r),r=t.payment.formatCardNumber(r),$(r,n)})},l=function(n){var r,a,i,o,l,u,c;if(i=String.fromCharCode(n.which),/^\d+$/.test(i)&&(r=t(n.currentTarget),c=r.val(),a=e(c+i),o=(c.replace(/\D/g,"")+i).length,u=16,a&&(u=a.length[a.length.length-1]),!(o>=u||null!=r.prop("selectionStart")&&r.prop("selectionStart")!==c.length)))return l=a&&"amex"===a.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/,l.test(c)?(n.preventDefault(),setTimeout(function(){return r.val(c+" "+i)})):l.test(c+i)?(n.preventDefault(),setTimeout(function(){return r.val(c+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},d=function(e){return setTimeout(function(){var n,r;return n=t(e.currentTarget),r=n.val(),r=m(r),r=t.payment.formatExpiry(r),$(r,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(){return n.val(""+a+" / ")})):void 0},c=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},h=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){return setTimeout(function(){var n,r;return n=t(e.currentTarget),r=n.val(),r=m(r),r=r.replace(/\D/g,"").slice(0,4),$(r,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)&&!s(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)&&!s(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)&&!s(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",h),this.on("keypress",c),this.on("keydown",o),this.on("change",d),this.on("input",d),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",v),this.on("change",v),this.on("input",v),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(),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(),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"),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").remove()}).done(function(){n.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"),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('input[type="submit"].give-submit').append(e.parseJSON(i.submit))}).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 n={action:"give_process_checkout_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,n,function(i){"success"==e.trim(i)?(a.find(".give_errors").remove(),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))})}),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 touchend",'form.give-form input[type="submit"].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),e.post(give_global_vars.ajaxurl,t.serialize()+"&action=give_process_checkout&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('input[type="submit"].give-submit').before(i))})}})});
9
+ var give_scripts,give_global_vars;jQuery(function(e){function a(){var a=e(this),i=a.parents("form");if("card_state"!=a.attr("id")){i.find("#card_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var t={action:"give_get_states",country:a.val(),field_name:"card_state"};e.ajax({type:"POST",data:t,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){if("nostates"==e){var a='<input type="text" id="card_state" name="card_state" class="cart-state give-input required" value=""/>';i.find('input[name="card_state"], select[name="card_state"]').replaceWith(a)}else i.find('input[name="card_state"], select[name="card_state"]').replaceWith(e);v.trigger("give_checkout_billing_address_updated",[e,i.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}function i(){give_form=e("form.give-form"),give_form.each(function(){var a=e(this).find(".card-number"),i=e(this).find(".card-cvc"),t=e(this).find(".card-expiry");return 0!==a.length&&(a.payment("formatCardNumber"),i.payment("formatCardCVC"),void t.payment("formatCardExpiry"))})}function t(e,a){return"after"==give_global_vars.currency_pos&&(a.format="%v%s"),accounting.formatMoney(e,a).trim()}function n(e){return Math.abs(parseFloat(accounting.unformat(e,give_global_vars.decimal_separator)))}function o(e){var a={symbol:"",decimal:give_global_vars.decimal_separator,thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals};return accounting.formatMoney(e,a)}function r(a){var i=[];return a.hasClass("give-form-type-multi")?(e.each(a.find(".give-donation-levels-wrap [data-price-id] "),function(e,a){a=a instanceof jQuery?a:jQuery(a),i.push({price_id:a.data("price-id"),amount:n(a.val())})}),i):i}function d(a){var i=a.parents("form"),t=a.val(),n=a.data("price-id");return n||(n=a.find("option:selected").data("price-id")),"custom"===t?(i.find(".give-amount-top").val("").focus(),!1):(i.find(".give-amount-top").val(t),i.find("span.give-amount-top").text(t),i.find(".give-donation-amount .give-text-input").trigger("blur",[i,t,n]),void e(document).trigger("give_donation_value_updated",[i,t,n]))}function l(){var a=s("form-id"),i=s("payment-mode");if(!a||!i)return!1;var t=e("body").find("#give-form-"+a+"-wrap"),n=t.find("form.give-form"),o=t.hasClass("give-display-modal"),r=t.hasClass("give-display-reveal");n.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),n.find("input[name=payment-mode][value="+i+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var l=s("level-id"),v=n.find('*[data-price-id="'+l+'"]');v.length>0&&d(v),o?give_open_form_modal(t,n):r&&(n.find(".give-btn-reveal").hide(),n.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())}function s(e,a){a||(a=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),t=i.exec(a);return t?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null}var v=e(document);v.on("change","#give_cc_address input.card_state, #give_cc_address select",a),i(),v.on("give_gateway_loaded",function(){i()}),e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},v.on("keyup change",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(){var a=e(this),i=a.parents("form.give-form"),t=a.attr("id"),n=i.find(".card-number"),o=i.find(".card-cvc"),r=i.find(".card-expiry"),d=e.payment.cardType(n.val());if(t.indexOf("card_number")>-1){var l=i.find(".card-type");null===d?(l.removeClass().addClass("off card-type"),a.removeClass("valid").addClass("error")):l.removeClass().addClass("card-type "+d),n.toggleError(!e.payment.validateCardNumber(n.val()))}if(t.indexOf("card_cvc")>-1&&o.toggleError(!e.payment.validateCardCVC(o.val(),d)),t.indexOf("card_expiry")>-1){r.toggleError(!e.payment.validateCardExpiry(r.payment("cardExpiryVal")));var s=r.payment("cardExpiryVal");i.find(".card-expiry-month").val(s.month),i.find(".card-expiry-year").val(s.year)}}),v.on("submit","#give_payment_mode",function(){var a=e("#give-gateway option:selected").val();if(0==a)return alert(give_global_vars.no_gateway),!1}),v.on("click","#give-payment-mode-select input",function(){var a=e(this).parents("form"),i=e("#give-payment-mode-select li"),t=e('#give-payment-mode-select li.give-gateway-option-selected input[name="payment-mode"]').val(),n="";i.removeClass("give-gateway-option-selected"),i.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),n=e('#give-payment-mode-select li.give-gateway-option-selected input[name="payment-mode"]').val(),a.attr("action",a.attr("action").replace("payment-mode="+t,"payment-mode="+n))}),v.on("focus",".give-donation-amount .give-text-input",function(a){var i=e(this).parents("form");e(this).removeClass("invalid-amount");var t=i.find(".give-final-total-amount").data("total");e(this).data("amount",n(t)),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)}),v.on("blur",".give-donation-amount .give-text-input",function(a,i,d,l){var s=void 0!=i?i:e(this).closest("form"),v=e(this).data("amount"),c=void 0!=d?d:e(this).val(),g=s.find('input[name="give-form-minimum"]'),m=n(g.val()),p=0==c?m:n(c),u=r(e(this).parents("form")),f="";l=void 0!=l?l:-1;var _={symbol:"",decimal:give_global_vars.decimal_separator,thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals},h=t(p,_);if(e(this).val(h),!u.length||-1<l||(e.each(u,function(e,a){if(a.amount===p)return l=a.price_id,!1}),!(-1<l)&&m<=p&&(l="custom")),(p<m||p<1)&&-1===l){e(this).addClass("give-invalid-amount"),_.symbol=give_global_vars.currency_sign,f=give_global_vars.bad_minimum+" "+t(m,_),s.find(".give-submit").prop("disabled",!0);var y=s.find(".give-invalid-minimum");if(0===y.length){var b=e('<div class="give_error give-invalid-minimum">'+f+"</div>").hide();b.insertBefore(s.find(".give-total-wrap")).show()}}else e(this).removeClass("give-invalid-amount"),s.find(".give-invalid-minimum").slideUp(300,function(){e(this).remove()}),s.find(".give-submit").prop("disabled",!1);if(v!==p&&(_.symbol=give_global_vars.currency_sign,s.find(".give-final-total-amount").data("total",p).text(t(p,_))),-1!==l)switch(e('input[name="give-price-id"]',s).val(l),s.find(".give-amount-hidden").val(o(p)),s.find(".give-default-level").removeClass("give-default-level"),!0){case!!s.find(".give-radio-input").length:s.find(".give-radio-input").prop("checked",!1),s.find('.give-radio-input[data-price-id="'+l+'"]').prop("checked",!0).addClass("give-default-level");break;case!!s.find("button.give-donation-level-btn").length:s.find("button.give-donation-level-btn").blur(),s.find('button.give-donation-level-btn[data-price-id="'+l+'"]').focus().addClass("give-default-level");break;case!!s.find("select.give-select-level").length:s.find("select.give-select-level option").prop("selected",!1),s.find('select.give-select-level option[data-price-id="'+l+'"]').prop("selected",!0).addClass("give-default-level")}e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in")}),v.on("click touchend",".give-donation-level-btn",function(a){a.preventDefault(),d(e(this))}),v.on("click touchend",".give-radio-input-level",function(a){d(e(this))}),v.on("change",".give-select-level",function(a){d(e(this))}),l()});
10
+ function give_open_form_modal(e,t){var n="#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,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){if(e.hasClass("give-display-button-only")&&!t.data("content")){var n=jQuery(".give-form-content-wrap",e),i=jQuery(".give-form-title",e),r=jQuery(".give-goal-progress",e),a=jQuery(">.give_error",e),l=jQuery(".give_errors",e);n.length&&!jQuery(".give-form-content-wrap",t).length&&(n.hasClass("give_post_form-content")?t.append(n):t.prepend(n)),l.length&&!jQuery(".give_errors",t).length&&l.each(function(e,n){t.prepend(jQuery(n))}),a.length&&!jQuery(">.give_error",t).length&&a.each(function(e,n){t.prepend(jQuery(n))}),r.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(r),i.length&&!jQuery(".give-form-title",t).length&&t.prepend(i),t.data("content","loaded")}},open:function(){var i=jQuery(".mfp-content");i.outerWidth()>=500&&i.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-hidden, .give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),t.children().not(n).show()}}})}function give_fl_trigger(){var e={exclude:['#give-amount, .give-select-level, .multiselect, .give-repeater-table input, input[type="url"]'],customEvent:give_fl_custom_events};jQuery(".float-labels-enabled").floatlabels(e)}function give_fl_custom_events(e){e.hasClass("card-number")&&e.after('<span class="off card-type"/>')}function give_change_html5_form_field_validation_message(){var e,t=jQuery(".give-form");t.length&&jQuery.each(t,function(t,n){e=jQuery("input",n),e.length&&jQuery.each(e,function(e,t){t=jQuery(t).get(0),give_global_vars.form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(give_global_vars.form_translation[t.name])})})})}var give_scripts;jQuery(function(e){var t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),t.on("give_gateway_loaded",function(e,t,n){give_fl_trigger()}),t.on("give_checkout_billing_address_updated",function(t,n,i){var r=e("form#"+i);if(r.hasClass("float-labels-enabled")){var a=r.find("#give-card-state-wrap"),l=a.find("#card_state"),o=a.find('label[for="card_state"]');o=o.length?o.text().replace(/[*:]/g,"").trim():"","nostates"===n?l.attr("placeholder",o).parent().removeClass("styled select"):(l.children().first().text(o),l.parent().addClass("styled select")),l.parent().removeClass("is-active"),give_fl_trigger()}}),t.on("click",".give-btn-reveal",function(t){t.preventDefault();var n=e(this),i=e(this).parents("form"),r="#give-payment-mode-select",a=e(r),l="";return n.hide(),e("li",a).length>1&&(l=r+", "),i.find(l+"#give_purchase_form_wrap").slideDown(),!1}),t.on("click",".give-btn-modal",function(t){t.preventDefault();var n=e(this).parents("div.give-form-wrap"),i=n.find("form.give-form"),r=i.find("#give-amount"),a=r.val();return!a||a<=0?(r.focus(),!1):void give_open_form_modal(n,i)})});
assets/js/frontend/give.js ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Give JS
3
+ *
4
+ * @description: Scripts that power the Give experience
5
+ * @package: Give
6
+ * @subpackage: Assets/JS
7
+ * @copyright: Copyright (c) 2016, WordImpress
8
+ * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+ */
10
+
11
+ var give_scripts;
12
+
13
+ jQuery(function ($) {
14
+
15
+ var doc = $(document);
16
+
17
+ // Trigger float-labels
18
+ give_fl_trigger();
19
+
20
+ // Set custom validation message.
21
+ give_change_html5_form_field_validation_message();
22
+
23
+ doc.on('give_gateway_loaded', function (ev, response, form_id) {
24
+ // Trigger float-labels
25
+ give_fl_trigger();
26
+ });
27
+
28
+ doc.on('give_checkout_billing_address_updated', function (ev, response, form_id) {
29
+
30
+ var form = $('form#' + form_id);
31
+
32
+ if (form.hasClass('float-labels-enabled')) {
33
+
34
+ var wrap = form.find('#give-card-state-wrap');
35
+ var el = wrap.find('#card_state');
36
+ var label = wrap.find('label[for="card_state"]');
37
+
38
+ label = label.length ? label.text().replace(/[*:]/g, '').trim() : '';
39
+
40
+ if ('nostates' === response) {
41
+ // fix input
42
+ el.attr('placeholder', label).parent().removeClass('styled select');
43
+ } else {
44
+ // fix select
45
+ el.children().first().text(label);
46
+ el.parent().addClass('styled select');
47
+ }
48
+
49
+ el.parent().removeClass('is-active');
50
+
51
+ // Trigger float-labels
52
+ give_fl_trigger();
53
+ }
54
+ });
55
+
56
+ // Reveal Btn which displays the checkout content
57
+ doc.on('click', '.give-btn-reveal', function (e) {
58
+ e.preventDefault();
59
+ var this_button = $(this);
60
+ var this_form = $(this).parents('form');
61
+ var payment_field_id = '#give-payment-mode-select',
62
+ $payment_field = $(payment_field_id),
63
+ show_field_ids = '';
64
+ this_button.hide();
65
+
66
+ // Show payment field if active payment gateway count greater then one.
67
+ if( $( 'li', $payment_field ).length > 1 ) {
68
+ show_field_ids = payment_field_id + ', ';
69
+ }
70
+
71
+ this_form.find( show_field_ids + '#give_purchase_form_wrap' ).slideDown();
72
+ return false;
73
+ });
74
+
75
+ // Modal with Magnific
76
+ doc.on('click', '.give-btn-modal', function (e) {
77
+ e.preventDefault();
78
+ var this_form_wrap = $(this).parents('div.give-form-wrap');
79
+ var this_form = this_form_wrap.find('form.give-form');
80
+ var this_amount_field = this_form.find('#give-amount');
81
+ var this_amount = this_amount_field.val();
82
+
83
+ //Check to ensure our amount is greater than 0
84
+ //Does this number have a value
85
+ if (!this_amount || this_amount <= 0) {
86
+ this_amount_field.focus();
87
+ return false;
88
+ }
89
+
90
+ give_open_form_modal(this_form_wrap, this_form);
91
+
92
+ });
93
+
94
+ });
95
+
96
+ /**
97
+ * Open form modal
98
+ * @param $form_wrap
99
+ * @param $form
100
+ */
101
+ function give_open_form_modal($form_wrap, $form) {
102
+ // Hide form children.
103
+ var children = '#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden';
104
+
105
+ //Alls well, open popup!
106
+ jQuery.magnificPopup.open({
107
+ mainClass : give_global_vars.magnific_options.main_class,
108
+ closeOnBgClick : give_global_vars.magnific_options.close_on_bg_click,
109
+ items: {
110
+ src: $form,
111
+ type: 'inline'
112
+ },
113
+ callbacks: {
114
+ beforeOpen: function () {
115
+ // add title, content, goal and error to form if admin want to show button only
116
+ if ($form_wrap.hasClass('give-display-button-only') && !$form.data('content')) {
117
+
118
+ var $form_content = jQuery('.give-form-content-wrap', $form_wrap),
119
+ $form_title = jQuery('.give-form-title', $form_wrap),
120
+ $form_goal = jQuery('.give-goal-progress', $form_wrap),
121
+ $form_error = jQuery('>.give_error', $form_wrap),
122
+ $form_errors = jQuery('.give_errors', $form_wrap);
123
+
124
+ // Add content container to form.
125
+ if ($form_content.length && !jQuery('.give-form-content-wrap', $form).length) {
126
+ if ($form_content.hasClass('give_post_form-content')) {
127
+ $form.append($form_content);
128
+ } else {
129
+ $form.prepend($form_content);
130
+ }
131
+ }
132
+
133
+ // Add errors container to form.
134
+ if ($form_errors.length && !jQuery('.give_errors', $form).length) {
135
+ $form_errors.each(function (index, $error) {
136
+ $form.prepend(jQuery($error));
137
+ });
138
+ }
139
+
140
+ // Add error container to form.
141
+ if ($form_error.length && !jQuery('>.give_error', $form).length) {
142
+ $form_error.each(function (index, $error) {
143
+ $form.prepend(jQuery($error));
144
+ });
145
+ }
146
+
147
+ // Add goal container to form.
148
+ if ($form_goal.length && !jQuery('.give-goal-progress', $form).length) {
149
+ $form.prepend($form_goal);
150
+ }
151
+
152
+ // Add title container to form.
153
+ if ($form_title.length && !jQuery('.give-form-title', $form).length) {
154
+ $form.prepend($form_title);
155
+ }
156
+
157
+ $form.data('content', 'loaded');
158
+ }
159
+ },
160
+ open: function () {
161
+ // Will fire when this exact popup is opened
162
+ // this - is Magnific Popup object
163
+ var $mfp_content = jQuery('.mfp-content');
164
+ if ($mfp_content.outerWidth() >= 500) {
165
+ $mfp_content.addClass('give-responsive-mfp-content');
166
+ }
167
+
168
+
169
+
170
+ // Hide .give-hidden and .give-btn-modal if admin only want to show only button.
171
+ if ($form_wrap.hasClass('give-display-button-only')) {
172
+ children = $form.children().not('.give-hidden, .give-btn-modal');
173
+ }
174
+
175
+ //Hide all form elements besides the ones required for payment
176
+ $form.children().not(children).hide();
177
+ },
178
+ close: function () {
179
+ //Remove popup class
180
+ $form.removeClass('mfp-hide');
181
+
182
+ //Show all fields again
183
+ $form.children().not(children).show();
184
+ }
185
+ }
186
+ });
187
+ }
188
+
189
+ /**
190
+ * Floating Labels Custom Events
191
+ */
192
+ function give_fl_trigger() {
193
+ var options = {
194
+ exclude: ['#give-amount, .give-select-level, .multiselect, .give-repeater-table input, input[type="url"]'],
195
+ customEvent: give_fl_custom_events
196
+ };
197
+ jQuery('.float-labels-enabled').floatlabels(options);
198
+ }
199
+
200
+ /**
201
+ * Floating Labels Custom Events
202
+ * @param el
203
+ */
204
+ function give_fl_custom_events(el) {
205
+ if (el.hasClass('card-number')) {
206
+ el.after('<span class="off card-type"/>');
207
+ }
208
+ }
209
+
210
+ /**
211
+ * Change localize html5 form validation message
212
+ */
213
+ function give_change_html5_form_field_validation_message() {
214
+ var $forms = jQuery('.give-form'),
215
+ $input_fields;
216
+
217
+ // Bailout if no any donation from exist.
218
+ if (!$forms.length) {
219
+ return;
220
+ }
221
+
222
+ jQuery.each($forms, function (index, $form) {
223
+ // Get form input fields.
224
+ $input_fields = jQuery('input', $form);
225
+
226
+ // Bailout.
227
+ if (!$input_fields.length) {
228
+ return;
229
+ }
230
+
231
+ jQuery.each($input_fields, function (index, item) {
232
+ item = jQuery(item).get(0);
233
+
234
+ // Set custom message only if translation exit in give global object.
235
+ if (give_global_vars.form_translation.hasOwnProperty(item.name)) {
236
+ item.oninvalid = function (e) {
237
+ e.target.setCustomValidity('');
238
+ if (!e.target.validity.valid) {
239
+ e.target.setCustomValidity(give_global_vars.form_translation[item.name]);
240
+ }
241
+ };
242
+ }
243
+ });
244
+ });
245
+ }
assets/js/frontend/give.min.js ADDED
@@ -0,0 +1 @@
 
1
+ function give_open_form_modal(e,t){var n="#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,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){if(e.hasClass("give-display-button-only")&&!t.data("content")){var n=jQuery(".give-form-content-wrap",e),i=jQuery(".give-form-title",e),r=jQuery(".give-goal-progress",e),a=jQuery(">.give_error",e),l=jQuery(".give_errors",e);n.length&&!jQuery(".give-form-content-wrap",t).length&&(n.hasClass("give_post_form-content")?t.append(n):t.prepend(n)),l.length&&!jQuery(".give_errors",t).length&&l.each(function(e,n){t.prepend(jQuery(n))}),a.length&&!jQuery(">.give_error",t).length&&a.each(function(e,n){t.prepend(jQuery(n))}),r.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(r),i.length&&!jQuery(".give-form-title",t).length&&t.prepend(i),t.data("content","loaded")}},open:function(){var i=jQuery(".mfp-content");i.outerWidth()>=500&&i.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-hidden, .give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),t.children().not(n).show()}}})}function give_fl_trigger(){var e={exclude:['#give-amount, .give-select-level, .multiselect, .give-repeater-table input, input[type="url"]'],customEvent:give_fl_custom_events};jQuery(".float-labels-enabled").floatlabels(e)}function give_fl_custom_events(e){e.hasClass("card-number")&&e.after('<span class="off card-type"/>')}function give_change_html5_form_field_validation_message(){var e,t=jQuery(".give-form");t.length&&jQuery.each(t,function(t,n){e=jQuery("input",n),e.length&&jQuery.each(e,function(e,t){t=jQuery(t).get(0),give_global_vars.form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(give_global_vars.form_translation[t.name])})})})}var give_scripts;jQuery(function(e){var t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),t.on("give_gateway_loaded",function(e,t,n){give_fl_trigger()}),t.on("give_checkout_billing_address_updated",function(t,n,i){var r=e("form#"+i);if(r.hasClass("float-labels-enabled")){var a=r.find("#give-card-state-wrap"),l=a.find("#card_state"),o=a.find('label[for="card_state"]');o=o.length?o.text().replace(/[*:]/g,"").trim():"","nostates"===n?l.attr("placeholder",o).parent().removeClass("styled select"):(l.children().first().text(o),l.parent().addClass("styled select")),l.parent().removeClass("is-active"),give_fl_trigger()}}),t.on("click",".give-btn-reveal",function(t){t.preventDefault();var n=e(this),i=e(this).parents("form"),r="#give-payment-mode-select",a=e(r),l="";return n.hide(),e("li",a).length>1&&(l=r+", "),i.find(l+"#give_purchase_form_wrap").slideDown(),!1}),t.on("click",".give-btn-modal",function(t){t.preventDefault();var n=e(this).parents("div.give-form-wrap"),i=n.find("form.give-form"),r=i.find("#give-amount"),a=r.val();return!a||a<=0?(r.focus(),!1):void give_open_form_modal(n,i)})});
assets/js/plugins/accounting.js ADDED
@@ -0,0 +1,413 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * accounting.js v0.4.1
3
+ * Copyright 2014 Open Exchange Rates
4
+ *
5
+ * Freely distributable under the MIT license.
6
+ * Portions of accounting.js are inspired or borrowed from underscore.js
7
+ *
8
+ * Full details and documentation:
9
+ * http://openexchangerates.github.io/accounting.js/
10
+ */
11
+
12
+ (function(root, undefined) {
13
+
14
+ /* --- Setup --- */
15
+
16
+ // Create the local library object, to be exported or referenced globally later
17
+ var lib = {};
18
+
19
+ // Current version
20
+ lib.version = '0.4.1';
21
+
22
+
23
+ /* --- Exposed settings --- */
24
+
25
+ // The library's settings configuration object. Contains default parameters for
26
+ // currency and number formatting
27
+ lib.settings = {
28
+ currency: {
29
+ symbol : "$", // default currency symbol is '$'
30
+ format : "%s%v", // controls output: %s = symbol, %v = value (can be object, see docs)
31
+ decimal : ".", // decimal point separator
32
+ thousand : ",", // thousands separator
33
+ precision : 2, // decimal places
34
+ grouping : 3 // digit grouping (not implemented yet)
35
+ },
36
+ number: {
37
+ precision : 0, // default precision on numbers is 0
38
+ grouping : 3, // digit grouping (not implemented yet)
39
+ thousand : ",",
40
+ decimal : "."
41
+ }
42
+ };
43
+
44
+
45
+ /* --- Internal Helper Methods --- */
46
+
47
+ // Store reference to possibly-available ECMAScript 5 methods for later
48
+ var nativeMap = Array.prototype.map,
49
+ nativeIsArray = Array.isArray,
50
+ toString = Object.prototype.toString;
51
+
52
+ /**
53
+ * Tests whether supplied parameter is a string
54
+ * from underscore.js
55
+ */
56
+ function isString(obj) {
57
+ return !!(obj === '' || (obj && obj.charCodeAt && obj.substr));
58
+ }
59
+
60
+ /**
61
+ * Tests whether supplied parameter is a string
62
+ * from underscore.js, delegates to ECMA5's native Array.isArray
63
+ */
64
+ function isArray(obj) {
65
+ return nativeIsArray ? nativeIsArray(obj) : toString.call(obj) === '[object Array]';
66
+ }
67
+
68
+ /**
69
+ * Tests whether supplied parameter is a true object
70
+ */
71
+ function isObject(obj) {
72
+ return obj && toString.call(obj) === '[object Object]';
73
+ }
74
+
75
+ /**
76
+ * Extends an object with a defaults object, similar to underscore's _.defaults
77
+ *
78
+ * Used for abstracting parameter handling from API methods
79
+ */
80
+ function defaults(object, defs) {
81
+ var key;
82
+ object = object || {};
83
+ defs = defs || {};
84
+ // Iterate over object non-prototype properties:
85
+ for (key in defs) {
86
+ if (defs.hasOwnProperty(key)) {
87
+ // Replace values with defaults only if undefined (allow empty/zero values):
88
+ if (object[key] == null) object[key] = defs[key];
89
+ }
90
+ }
91
+ return object;
92
+ }
93
+
94
+ /**
95
+ * Implementation of `Array.map()` for iteration loops
96
+ *
97
+ * Returns a new Array as a result of calling `iterator` on each array value.
98
+ * Defers to native Array.map if available
99
+ */
100
+ function map(obj, iterator, context) {
101
+ var results = [], i, j;
102
+
103
+ if (!obj) return results;
104
+
105
+ // Use native .map method if it exists:
106
+ if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);
107
+
108
+ // Fallback for native .map:
109
+ for (i = 0, j = obj.length; i < j; i++ ) {
110
+ results[i] = iterator.call(context, obj[i], i, obj);
111
+ }
112
+ return results;
113
+ }
114
+
115
+ /**
116
+ * Check and normalise the value of precision (must be positive integer)
117
+ */
118
+ function checkPrecision(val, base) {
119
+ val = Math.round(Math.abs(val));
120
+ return isNaN(val)? base : val;
121
+ }
122
+
123
+
124
+ /**
125
+ * Parses a format string or object and returns format obj for use in rendering
126
+ *
127
+ * `format` is either a string with the default (positive) format, or object
128
+ * containing `pos` (required), `neg` and `zero` values (or a function returning
129
+ * either a string or object)
130
+ *
131
+ * Either string or format.pos must contain "%v" (value) to be valid
132
+ */
133
+ function checkCurrencyFormat(format) {
134
+ var defaults = lib.settings.currency.format;
135
+
136
+ // Allow function as format parameter (should return string or object):
137
+ if ( typeof format === "function" ) format = format();
138
+
139
+ // Format can be a string, in which case `value` ("%v") must be present:
140
+ if ( isString( format ) && format.match("%v") ) {
141
+
142
+ // Create and return positive, negative and zero formats:
143
+ return {
144
+ pos : format,
145
+ neg : format.replace("-", "").replace("%v", "-%v"),
146
+ zero : format
147
+ };
148
+
149
+ // If no format, or object is missing valid positive value, use defaults:
150
+ } else if ( !format || !format.pos || !format.pos.match("%v") ) {
151
+
152
+ // If defaults is a string, casts it to an object for faster checking next time:
153
+ return ( !isString( defaults ) ) ? defaults : lib.settings.currency.format = {
154
+ pos : defaults,
155
+ neg : defaults.replace("%v", "-%v"),
156
+ zero : defaults
157
+ };
158
+
159
+ }
160
+ // Otherwise, assume format was fine:
161
+ return format;
162
+ }
163
+
164
+
165
+ /* --- API Methods --- */
166
+
167
+ /**
168
+ * Takes a string/array of strings, removes all formatting/cruft and returns the raw float value
169
+ * Alias: `accounting.parse(string)`
170
+ *
171
+ * Decimal must be included in the regular expression to match floats (defaults to
172
+ * accounting.settings.number.decimal), so if the number uses a non-standard decimal
173
+ * separator, provide it as the second argument.
174
+ *
175
+ * Also matches bracketed negatives (eg. "$ (1.99)" => -1.99)
176
+ *
177
+ * Doesn't throw any errors (`NaN`s become 0) but this may change in future
178
+ */
179
+ var unformat = lib.unformat = lib.parse = function(value, decimal) {
180
+ // Recursively unformat arrays:
181
+ if (isArray(value)) {
182
+ return map(value, function(val) {
183
+ return unformat(val, decimal);
184
+ });
185
+ }
186
+
187
+ // Fails silently (need decent errors):
188
+ value = value || 0;
189
+
190
+ // Return the value as-is if it's already a number:
191
+ if (typeof value === "number") return value;
192
+
193
+ // Default decimal point comes from settings, but could be set to eg. "," in opts:
194
+ decimal = decimal || lib.settings.number.decimal;
195
+
196
+ // Build regex to strip out everything except digits, decimal point and minus sign:
197
+ var regex = new RegExp("[^0-9-" + decimal + "]", ["g"]),
198
+ unformatted = parseFloat(
199
+ ("" + value)
200
+ .replace(/\((.*)\)/, "-$1") // replace bracketed values with negatives
201
+ .replace(regex, '') // strip out any cruft
202
+ .replace(decimal, '.') // make sure decimal point is standard
203
+ );
204
+
205
+ // This will fail silently which may cause trouble, let's wait and see:
206
+ return !isNaN(unformatted) ? unformatted : 0;
207
+ };
208
+
209
+
210
+ /**
211
+ * Implementation of toFixed() that treats floats more like decimals
212
+ *
213
+ * Fixes binary rounding issues (eg. (0.615).toFixed(2) === "0.61") that present
214
+ * problems for accounting- and finance-related software.
215
+ */
216
+ var toFixed = lib.toFixed = function(value, precision) {
217
+ precision = checkPrecision(precision, lib.settings.number.precision);
218
+ var power = Math.pow(10, precision);
219
+
220
+ // Multiply up by precision, round accurately, then divide and use native toFixed():
221
+ return (Math.round(lib.unformat(value) * power) / power).toFixed(precision);
222
+ };
223
+
224
+
225
+ /**
226
+ * Format a number, with comma-separated thousands and custom precision/decimal places
227
+ * Alias: `accounting.format()`
228
+ *
229
+ * Localise by overriding the precision and thousand / decimal separators
230
+ * 2nd parameter `precision` can be an object matching `settings.number`
231
+ */
232
+ var formatNumber = lib.formatNumber = lib.format = function(number, precision, thousand, decimal) {
233
+ // Resursively format arrays:
234
+ if (isArray(number)) {
235
+ return map(number, function(val) {
236
+ return formatNumber(val, precision, thousand, decimal);
237
+ });
238
+ }
239
+
240
+ // Clean up number:
241
+ number = unformat(number);
242
+
243
+ // Build options object from second param (if object) or all params, extending defaults:
244
+ var opts = defaults(
245
+ (isObject(precision) ? precision : {
246
+ precision : precision,
247
+ thousand : thousand,
248
+ decimal : decimal
249
+ }),
250
+ lib.settings.number
251
+ ),
252
+
253
+ // Clean up precision
254
+ usePrecision = checkPrecision(opts.precision),
255
+
256
+ // Do some calc:
257
+ negative = number < 0 ? "-" : "",
258
+ base = parseInt(toFixed(Math.abs(number || 0), usePrecision), 10) + "",
259
+ mod = base.length > 3 ? base.length % 3 : 0;
260
+
261
+ // Format the number:
262
+ return negative + (mod ? base.substr(0, mod) + opts.thousand : "") + base.substr(mod).replace(/(\d{3})(?=\d)/g, "$1" + opts.thousand) + (usePrecision ? opts.decimal + toFixed(Math.abs(number), usePrecision).split('.')[1] : "");
263
+ };
264
+
265
+
266
+ /**
267
+ * Format a number into currency
268
+ *
269
+ * Usage: accounting.formatMoney(number, symbol, precision, thousandsSep, decimalSep, format)
270
+ * defaults: (0, "$", 2, ",", ".", "%s%v")
271
+ *
272
+ * Localise by overriding the symbol, precision, thousand / decimal separators and format
273
+ * Second param can be an object matching `settings.currency` which is the easiest way.
274
+ *
275
+ * To do: tidy up the parameters
276
+ */
277
+ var formatMoney = lib.formatMoney = function(number, symbol, precision, thousand, decimal, format) {
278
+ // Resursively format arrays:
279
+ if (isArray(number)) {
280
+ return map(number, function(val){
281
+ return formatMoney(val, symbol, precision, thousand, decimal, format);
282
+ });
283
+ }
284
+
285
+ // Clean up number:
286
+ number = unformat(number);
287
+
288
+ // Build options object from second param (if object) or all params, extending defaults:
289
+ var opts = defaults(
290
+ (isObject(symbol) ? symbol : {
291
+ symbol : symbol,
292
+ precision : precision,
293
+ thousand : thousand,
294
+ decimal : decimal,
295
+ format : format
296
+ }),
297
+ lib.settings.currency
298
+ ),
299
+
300
+ // Check format (returns object with pos, neg and zero):
301
+ formats = checkCurrencyFormat(opts.format),
302
+
303
+ // Choose which format to use for this value:
304
+ useFormat = number > 0 ? formats.pos : number < 0 ? formats.neg : formats.zero;
305
+
306
+ // Return with currency symbol added:
307
+ return useFormat.replace('%s', opts.symbol).replace('%v', formatNumber(Math.abs(number), checkPrecision(opts.precision), opts.thousand, opts.decimal));
308
+ };
309
+
310
+
311
+ /**
312
+ * Format a list of numbers into an accounting column, padding with whitespace
313
+ * to line up currency symbols, thousand separators and decimals places
314
+ *
315
+ * List should be an array of numbers
316
+ * Second parameter can be an object containing keys that match the params
317
+ *
318
+ * Returns array of accouting-formatted number strings of same length
319
+ *
320
+ * NB: `white-space:pre` CSS rule is required on the list container to prevent
321
+ * browsers from collapsing the whitespace in the output strings.
322
+ */
323
+ lib.formatColumn = function(list, symbol, precision, thousand, decimal, format) {
324
+ if (!list) return [];
325
+
326
+ // Build options object from second param (if object) or all params, extending defaults:
327
+ var opts = defaults(
328
+ (isObject(symbol) ? symbol : {
329
+ symbol : symbol,
330
+ precision : precision,
331
+ thousand : thousand,
332
+ decimal : decimal,
333
+ format : format
334
+ }),
335
+ lib.settings.currency
336
+ ),
337
+
338
+ // Check format (returns object with pos, neg and zero), only need pos for now:
339
+ formats = checkCurrencyFormat(opts.format),
340
+
341
+ // Whether to pad at start of string or after currency symbol:
342
+ padAfterSymbol = formats.pos.indexOf("%s") < formats.pos.indexOf("%v") ? true : false,
343
+
344
+ // Store value for the length of the longest string in the column:
345
+ maxLength = 0,
346
+
347
+ // Format the list according to options, store the length of the longest string:
348
+ formatted = map(list, function(val, i) {
349
+ if (isArray(val)) {
350
+ // Recursively format columns if list is a multi-dimensional array:
351
+ return lib.formatColumn(val, opts);
352
+ } else {
353
+ // Clean up the value
354
+ val = unformat(val);
355
+
356
+ // Choose which format to use for this value (pos, neg or zero):
357
+ var useFormat = val > 0 ? formats.pos : val < 0 ? formats.neg : formats.zero,
358
+
359
+ // Format this value, push into formatted list and save the length:
360
+ fVal = useFormat.replace('%s', opts.symbol).replace('%v', formatNumber(Math.abs(val), checkPrecision(opts.precision), opts.thousand, opts.decimal));
361
+
362
+ if (fVal.length > maxLength) maxLength = fVal.length;
363
+ return fVal;
364
+ }
365
+ });
366
+
367
+ // Pad each number in the list and send back the column of numbers:
368
+ return map(formatted, function(val, i) {
369
+ // Only if this is a string (not a nested array, which would have already been padded):
370
+ if (isString(val) && val.length < maxLength) {
371
+ // Depending on symbol position, pad after symbol or at index 0:
372
+ return padAfterSymbol ? val.replace(opts.symbol, opts.symbol+(new Array(maxLength - val.length + 1).join(" "))) : (new Array(maxLength - val.length + 1).join(" ")) + val;
373
+ }
374
+ return val;
375
+ });
376
+ };
377
+
378
+
379
+ /* --- Module Definition --- */
380
+
381
+ // Export accounting for CommonJS. If being loaded as an AMD module, define it as such.
382
+ // Otherwise, just add `accounting` to the global object
383
+ if (typeof exports !== 'undefined') {
384
+ if (typeof module !== 'undefined' && module.exports) {
385
+ exports = module.exports = lib;
386
+ }
387
+ exports.accounting = lib;
388
+ } else if (typeof define === 'function' && define.amd) {
389
+ // Return the library as an AMD module:
390
+ define([], function() {
391
+ return lib;
392
+ });
393
+ } else {
394
+ // Use accounting.noConflict to restore `accounting` back to its original value.
395
+ // Returns a reference to the library's `accounting` object;
396
+ // e.g. `var numbers = accounting.noConflict();`
397
+ lib.noConflict = (function(oldAccounting) {
398
+ return function() {
399
+ // Reset the value of the root's `accounting` variable:
400
+ root.accounting = oldAccounting;
401
+ // Delete the noConflict method:
402
+ lib.noConflict = undefined;
403
+ // Return reference to the library to re-assign it:
404
+ return lib;
405
+ };
406
+ })(root.accounting);
407
+
408
+ // Declare `fx` on the root (global/window) object:
409
+ root['accounting'] = lib;
410
+ }
411
+
412
+ // Root will be `window` in browser or `global` on the server:
413
+ }(this));
assets/js/plugins/accounting.min.js ADDED
@@ -0,0 +1 @@
 
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);
assets/js/plugins/chosen.jquery.js ADDED
@@ -0,0 +1,1272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function() {
2
+ var $, AbstractChosen, Chosen, SelectParser, _ref,
3
+ __hasProp = {}.hasOwnProperty,
4
+ __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; };
5
+
6
+ SelectParser = (function() {
7
+ function SelectParser() {
8
+ this.options_index = 0;
9
+ this.parsed = [];
10
+ }
11
+
12
+ SelectParser.prototype.add_node = function(child) {
13
+ if (child.nodeName.toUpperCase() === "OPTGROUP") {
14
+ return this.add_group(child);
15
+ } else {
16
+ return this.add_option(child);
17
+ }
18
+ };
19
+
20
+ SelectParser.prototype.add_group = function(group) {
21
+ var group_position, option, _i, _len, _ref, _results;
22
+ group_position = this.parsed.length;
23
+ this.parsed.push({
24
+ array_index: group_position,
25
+ group: true,
26
+ label: this.escapeExpression(group.label),
27
+ title: group.title ? group.title : void 0,
28
+ children: 0,
29
+ disabled: group.disabled,
30
+ classes: group.className
31
+ });
32
+ _ref = group.childNodes;
33
+ _results = [];
34
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
35
+ option = _ref[_i];
36
+ _results.push(this.add_option(option, group_position, group.disabled));
37
+ }
38
+ return _results;
39
+ };
40
+
41
+ SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
42
+ if (option.nodeName.toUpperCase() === "OPTION") {
43
+ if (option.text !== "") {
44
+ if (group_position != null) {
45
+ this.parsed[group_position].children += 1;
46
+ }
47
+ this.parsed.push({
48
+ array_index: this.parsed.length,
49
+ options_index: this.options_index,
50
+ value: option.value,
51
+ text: option.text,
52
+ html: option.innerHTML,
53
+ title: option.title ? option.title : void 0,
54
+ selected: option.selected,
55
+ disabled: group_disabled === true ? group_disabled : option.disabled,
56
+ group_array_index: group_position,
57
+ group_label: group_position != null ? this.parsed[group_position].label : null,
58
+ classes: option.className,
59
+ style: option.style.cssText
60
+ });
61
+ } else {
62
+ this.parsed.push({
63
+ array_index: this.parsed.length,
64
+ options_index: this.options_index,
65
+ empty: true
66
+ });
67
+ }
68
+ return this.options_index += 1;
69
+ }
70
+ };
71
+
72
+ SelectParser.prototype.escapeExpression = function(text) {
73
+ var map, unsafe_chars;
74
+ if ((text == null) || text === false) {
75
+ return "";
76
+ }
77
+ if (!/[\&\<\>\"\'\`]/.test(text)) {
78
+ return text;
79
+ }
80
+ map = {
81
+ "<": "&lt;",
82
+ ">": "&gt;",
83
+ '"': "&quot;",
84
+ "'": "&#x27;",
85
+ "`": "&#x60;"
86
+ };
87
+ unsafe_chars = /&(?!\w+;)|[\<\>\"\'\`]/g;
88
+ return text.replace(unsafe_chars, function(chr) {
89
+ return map[chr] || "&amp;";
90
+ });
91
+ };
92
+
93
+ return SelectParser;
94
+
95
+ })();
96
+
97
+ SelectParser.select_to_array = function(select) {
98
+ var child, parser, _i, _len, _ref;
99
+ parser = new SelectParser();
100
+ _ref = select.childNodes;
101
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
102
+ child = _ref[_i];
103
+ parser.add_node(child);
104
+ }
105
+ return parser.parsed;
106
+ };
107
+
108
+ AbstractChosen = (function() {
109
+ function AbstractChosen(form_field, options) {
110
+ this.form_field = form_field;
111
+ this.options = options != null ? options : {};
112
+ if (!AbstractChosen.browser_is_supported()) {
113
+ return;
114
+ }
115
+ this.is_multiple = this.form_field.multiple;
116
+ this.set_default_text();
117
+ this.set_default_values();
118
+ this.setup();
119
+ this.set_up_html();
120
+ this.register_observers();
121
+ this.on_ready();
122
+ }
123
+
124
+ AbstractChosen.prototype.set_default_values = function() {
125
+ var _this = this;
126
+ this.click_test_action = function(evt) {
127
+ return _this.test_active_click(evt);
128
+ };
129
+ this.activate_action = function(evt) {
130
+ return _this.activate_field(evt);
131
+ };
132
+ this.active_field = false;
133
+ this.mouse_on_container = false;
134
+ this.results_showing = false;
135
+ this.result_highlighted = null;
136
+ this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != null) && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
137
+ this.disable_search_threshold = this.options.disable_search_threshold || 0;
138
+ this.disable_search = this.options.disable_search || false;
139
+ this.enable_split_word_search = this.options.enable_split_word_search != null ? this.options.enable_split_word_search : true;
140
+ this.group_search = this.options.group_search != null ? this.options.group_search : true;
141
+ this.search_contains = this.options.search_contains || false;
142
+ this.single_backstroke_delete = this.options.single_backstroke_delete != null ? this.options.single_backstroke_delete : true;
143
+ this.max_selected_options = this.options.max_selected_options || Infinity;
144
+ this.inherit_select_classes = this.options.inherit_select_classes || false;
145
+ this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
146
+ this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
147
+ this.include_group_label_in_selected = this.options.include_group_label_in_selected || false;
148
+ return this.max_shown_results = this.options.max_shown_results || Number.POSITIVE_INFINITY;
149
+ };
150
+
151
+ AbstractChosen.prototype.set_default_text = function() {
152
+ if (this.form_field.getAttribute("data-placeholder")) {
153
+ this.default_text = this.form_field.getAttribute("data-placeholder");
154
+ } else if (this.is_multiple) {
155
+ this.default_text = this.options.placeholder_text_multiple || this.options.placeholder_text || AbstractChosen.default_multiple_text;
156
+ } else {
157
+ this.default_text = this.options.placeholder_text_single || this.options.placeholder_text || AbstractChosen.default_single_text;
158
+ }
159
+ return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
160
+ };
161
+
162
+ AbstractChosen.prototype.choice_label = function(item) {
163
+ if (this.include_group_label_in_selected && (item.group_label != null)) {
164
+ return "<b class='group-name'>" + item.group_label + "</b>" + item.html;
165
+ } else {
166
+ return item.html;
167
+ }
168
+ };
169
+
170
+ AbstractChosen.prototype.mouse_enter = function() {
171
+ return this.mouse_on_container = true;
172
+ };
173
+
174
+ AbstractChosen.prototype.mouse_leave = function() {
175
+ return this.mouse_on_container = false;
176
+ };
177
+
178
+ AbstractChosen.prototype.input_focus = function(evt) {
179
+ var _this = this;
180
+ if (this.is_multiple) {
181
+ if (!this.active_field) {
182
+ return setTimeout((function() {
183
+ return _this.container_mousedown();
184
+ }), 50);
185
+ }
186
+ } else {
187
+ if (!this.active_field) {
188
+ return this.activate_field();
189
+ }
190
+ }
191
+ };
192
+
193
+ AbstractChosen.prototype.input_blur = function(evt) {
194
+ var _this = this;
195
+ if (!this.mouse_on_container) {
196
+ this.active_field = false;
197
+ return setTimeout((function() {
198
+ return _this.blur_test();
199
+ }), 100);
200
+ }
201
+ };
202
+
203
+ AbstractChosen.prototype.results_option_build = function(options) {
204
+ var content, data, data_content, shown_results, _i, _len, _ref;
205
+ content = '';
206
+ shown_results = 0;
207
+ _ref = this.results_data;
208
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
209
+ data = _ref[_i];
210
+ data_content = '';
211
+ if (data.group) {
212
+ data_content = this.result_add_group(data);
213
+ } else {
214
+ data_content = this.result_add_option(data);
215
+ }
216
+ if (data_content !== '') {
217
+ shown_results++;
218
+ content += data_content;
219
+ }
220
+ if (options != null ? options.first : void 0) {
221
+ if (data.selected && this.is_multiple) {
222
+ this.choice_build(data);
223
+ } else if (data.selected && !this.is_multiple) {
224
+ this.single_set_selected_text(this.choice_label(data));
225
+ }
226
+ }
227
+ if (shown_results >= this.max_shown_results) {
228
+ break;
229
+ }
230
+ }
231
+ return content;
232
+ };
233
+
234
+ AbstractChosen.prototype.result_add_option = function(option) {
235
+ var classes, option_el;
236
+ if (!option.search_match) {
237
+ return '';
238
+ }
239
+ if (!this.include_option_in_results(option)) {
240
+ return '';
241
+ }
242
+ classes = [];
243
+ if (!option.disabled && !(option.selected && this.is_multiple)) {
244
+ classes.push("active-result");
245
+ }
246
+ if (option.disabled && !(option.selected && this.is_multiple)) {
247
+ classes.push("disabled-result");
248
+ }
249
+ if (option.selected) {
250
+ classes.push("result-selected");
251
+ }
252
+ if (option.group_array_index != null) {
253
+ classes.push("group-option");
254
+ }
255
+ if (option.classes !== "") {
256
+ classes.push(option.classes);
257
+ }
258
+ option_el = document.createElement("li");
259
+ option_el.className = classes.join(" ");
260
+ option_el.style.cssText = option.style;
261
+ option_el.setAttribute("data-option-array-index", option.array_index);
262
+ option_el.innerHTML = option.search_text;
263
+ if (option.title) {
264
+ option_el.title = option.title;
265
+ }
266
+ return this.outerHTML(option_el);
267
+ };
268
+
269
+ AbstractChosen.prototype.result_add_group = function(group) {
270
+ var classes, group_el;
271
+ if (!(group.search_match || group.group_match)) {
272
+ return '';
273
+ }
274
+ if (!(group.active_options > 0)) {
275
+ return '';
276
+ }
277
+ classes = [];
278
+ classes.push("group-result");
279
+ if (group.classes) {
280
+ classes.push(group.classes);
281
+ }
282
+ group_el = document.createElement("li");
283
+ group_el.className = classes.join(" ");
284
+ group_el.innerHTML = group.search_text;
285
+ if (group.title) {
286
+ group_el.title = group.title;
287
+ }
288
+ return this.outerHTML(group_el);
289
+ };
290
+
291
+ AbstractChosen.prototype.results_update_field = function() {
292
+ this.set_default_text();
293
+ if (!this.is_multiple) {
294
+ this.results_reset_cleanup();
295
+ }
296
+ this.result_clear_highlight();
297
+ this.results_build();
298
+ if (this.results_showing) {
299
+ return this.winnow_results();
300
+ }
301
+ };
302
+
303
+ AbstractChosen.prototype.reset_single_select_options = function() {
304
+ var result, _i, _len, _ref, _results;
305
+ _ref = this.results_data;
306
+ _results = [];
307
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
308
+ result = _ref[_i];
309
+ if (result.selected) {
310
+ _results.push(result.selected = false);
311
+ } else {
312
+ _results.push(void 0);
313
+ }
314
+ }
315
+ return _results;
316
+ };
317
+
318
+ AbstractChosen.prototype.results_toggle = function() {
319
+ if (this.results_showing) {
320
+ return this.results_hide();
321
+ } else {
322
+ return this.results_show();
323
+ }
324
+ };
325
+
326
+ AbstractChosen.prototype.results_search = function(evt) {
327
+ if (this.results_showing) {
328
+ return this.winnow_results();
329
+ } else {
330
+ return this.results_show();
331
+ }
332
+ };
333
+
334
+ AbstractChosen.prototype.winnow_results = function() {
335
+ var escapedSearchText, option, regex, results, results_group, searchText, startpos, text, zregex, _i, _len, _ref;
336
+ this.no_results_clear();
337
+ results = 0;
338
+ searchText = this.get_search_text();
339
+ escapedSearchText = searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
340
+ zregex = new RegExp(escapedSearchText, 'i');
341
+ regex = this.get_search_regex(escapedSearchText);
342
+ _ref = this.results_data;
343
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
344
+ option = _ref[_i];
345
+ option.search_match = false;
346
+ results_group = null;
347
+ if (this.include_option_in_results(option)) {
348
+ if (option.group) {
349
+ option.group_match = false;
350
+ option.active_options = 0;
351
+ }
352
+ if ((option.group_array_index != null) && this.results_data[option.group_array_index]) {
353
+ results_group = this.results_data[option.group_array_index];
354
+ if (results_group.active_options === 0 && results_group.search_match) {
355
+ results += 1;
356
+ }
357
+ results_group.active_options += 1;
358
+ }
359
+ option.search_text = option.group ? option.label : option.html;
360
+ if (!(option.group && !this.group_search)) {
361
+ option.search_match = this.search_string_match(option.search_text, regex);
362
+ if (option.search_match && !option.group) {
363
+ results += 1;
364
+ }
365
+ if (option.search_match) {
366
+ if (searchText.length) {
367
+ startpos = option.search_text.search(zregex);
368
+ text = option.search_text.substr(0, startpos + searchText.length) + '</em>' + option.search_text.substr(startpos + searchText.length);
369
+ option.search_text = text.substr(0, startpos) + '<em>' + text.substr(startpos);
370
+ }
371
+ if (results_group != null) {
372
+ results_group.group_match = true;
373
+ }
374
+ } else if ((option.group_array_index != null) && this.results_data[option.group_array_index].search_match) {
375
+ option.search_match = true;
376
+ }
377
+ }
378
+ }
379
+ }
380
+ this.result_clear_highlight();
381
+ if (results < 1 && searchText.length) {
382
+ this.update_results_content("");
383
+ return this.no_results(searchText);
384
+ } else {
385
+ this.update_results_content(this.results_option_build());
386
+ return this.winnow_results_set_highlight();
387
+ }
388
+ };
389
+
390
+ AbstractChosen.prototype.get_search_regex = function(escaped_search_string) {
391
+ var regex_anchor;
392
+ regex_anchor = this.search_contains ? "" : "^";
393
+ return new RegExp(regex_anchor + escaped_search_string, 'i');
394
+ };
395
+
396
+ AbstractChosen.prototype.search_string_match = function(search_string, regex) {
397
+ var part, parts, _i, _len;
398
+ if (regex.test(search_string)) {
399
+ return true;
400
+ } else if (this.enable_split_word_search && (search_string.indexOf(" ") >= 0 || search_string.indexOf("[") === 0)) {
401
+ parts = search_string.replace(/\[|\]/g, "").split(" ");
402
+ if (parts.length) {
403
+ for (_i = 0, _len = parts.length; _i < _len; _i++) {
404
+ part = parts[_i];
405
+ if (regex.test(part)) {
406
+ return true;
407
+ }
408
+ }
409
+ }
410
+ }
411
+ };
412
+
413
+ AbstractChosen.prototype.choices_count = function() {
414
+ var option, _i, _len, _ref;
415
+ if (this.selected_option_count != null) {
416
+ return this.selected_option_count;
417
+ }
418
+ this.selected_option_count = 0;
419
+ _ref = this.form_field.options;
420
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
421
+ option = _ref[_i];
422
+ if (option.selected) {
423
+ this.selected_option_count += 1;
424
+ }
425
+ }
426
+ return this.selected_option_count;
427
+ };
428
+
429
+ AbstractChosen.prototype.choices_click = function(evt) {
430
+ evt.preventDefault();
431
+ if (!(this.results_showing || this.is_disabled)) {
432
+ return this.results_show();
433
+ }
434
+ };
435
+
436
+ AbstractChosen.prototype.keyup_checker = function(evt) {
437
+ var stroke, _ref;
438
+ stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
439
+ this.search_field_scale();
440
+ switch (stroke) {
441
+ case 8:
442
+ if (this.is_multiple && this.backstroke_length < 1 && this.choices_count() > 0) {
443
+ return this.keydown_backstroke();
444
+ } else if (!this.pending_backstroke) {
445
+ this.result_clear_highlight();
446
+ return this.results_search();
447
+ }
448
+ break;
449
+ case 13:
450
+ evt.preventDefault();
451
+ if (this.results_showing) {
452
+ return this.result_select(evt);
453
+ }
454
+ break;
455
+ case 27:
456
+ if (this.results_showing) {
457
+ this.results_hide();
458
+ }
459
+ return true;
460
+ case 9:
461
+ case 38:
462
+ case 40:
463
+ case 16:
464
+ case 91:
465
+ case 17:
466
+ case 18:
467
+ break;
468
+ default:
469
+ return this.results_search();
470
+ }
471
+ };
472
+
473
+ AbstractChosen.prototype.clipboard_event_checker = function(evt) {
474
+ var _this = this;
475
+ return setTimeout((function() {
476
+ return _this.results_search();
477
+ }), 50);
478
+ };
479
+
480
+ AbstractChosen.prototype.container_width = function() {
481
+ if (this.options.width != null) {
482
+ return this.options.width;
483
+ } else {
484
+ return "" + this.form_field.offsetWidth + "px";
485
+ }
486
+ };
487
+
488
+ AbstractChosen.prototype.include_option_in_results = function(option) {
489
+ if (this.is_multiple && (!this.display_selected_options && option.selected)) {
490
+ return false;
491
+ }
492
+ if (!this.display_disabled_options && option.disabled) {
493
+ return false;
494
+ }
495
+ if (option.empty) {
496
+ return false;
497
+ }
498
+ return true;
499
+ };
500
+
501
+ AbstractChosen.prototype.search_results_touchstart = function(evt) {
502
+ this.touch_started = true;
503
+ return this.search_results_mouseover(evt);
504
+ };
505
+
506
+ AbstractChosen.prototype.search_results_touchmove = function(evt) {
507
+ this.touch_started = false;
508
+ return this.search_results_mouseout(evt);
509
+ };
510
+
511
+ AbstractChosen.prototype.search_results_touchend = function(evt) {
512
+ if (this.touch_started) {
513
+ return this.search_results_mouseup(evt);
514
+ }
515
+ };
516
+
517
+ AbstractChosen.prototype.outerHTML = function(element) {
518
+ var tmp;
519
+ if (element.outerHTML) {
520
+ return element.outerHTML;
521
+ }
522
+ tmp = document.createElement("div");
523
+ tmp.appendChild(element);
524
+ return tmp.innerHTML;
525
+ };
526
+
527
+ AbstractChosen.browser_is_supported = function() {
528
+ if (/iP(od|hone)/i.test(window.navigator.userAgent)) {
529
+ return false;
530
+ }
531
+ if (/Android/i.test(window.navigator.userAgent)) {
532
+ if (/Mobile/i.test(window.navigator.userAgent)) {
533
+ return false;
534
+ }
535
+ }
536
+ if (/IEMobile/i.test(window.navigator.userAgent)) {
537
+ return false;
538
+ }
539
+ if (/Windows Phone/i.test(window.navigator.userAgent)) {
540
+ return false;
541
+ }
542
+ if (/BlackBerry/i.test(window.navigator.userAgent)) {
543
+ return false;
544
+ }
545
+ if (/BB10/i.test(window.navigator.userAgent)) {
546
+ return false;
547
+ }
548
+ if (window.navigator.appName === "Microsoft Internet Explorer") {
549
+ return document.documentMode >= 8;
550
+ }
551
+ return true;
552
+ };
553
+
554
+ AbstractChosen.default_multiple_text = "Select Some Options";
555
+
556
+ AbstractChosen.default_single_text = "Select an Option";
557
+
558
+ AbstractChosen.default_no_result_text = "No results match";
559
+
560
+ return AbstractChosen;
561
+
562
+ })();
563
+
564
+ $ = jQuery;
565
+
566
+ $.fn.extend({
567
+ chosen: function(options) {
568
+ if (!AbstractChosen.browser_is_supported()) {
569
+ return this;
570
+ }
571
+ return this.each(function(input_field) {
572
+ var $this, chosen;
573
+ $this = $(this);
574
+ chosen = $this.data('chosen');
575
+ if (options === 'destroy') {
576
+ if (chosen instanceof Chosen) {
577
+ chosen.destroy();
578
+ }
579
+ return;
580
+ }
581
+ if (!(chosen instanceof Chosen)) {
582
+ $this.data('chosen', new Chosen(this, options));
583
+ }
584
+ });
585
+ }
586
+ });
587
+
588
+ Chosen = (function(_super) {
589
+ __extends(Chosen, _super);
590
+
591
+ function Chosen() {
592
+ _ref = Chosen.__super__.constructor.apply(this, arguments);
593
+ return _ref;
594
+ }
595
+
596
+ Chosen.prototype.setup = function() {
597
+ this.form_field_jq = $(this.form_field);
598
+ this.current_selectedIndex = this.form_field.selectedIndex;
599
+ return this.is_rtl = this.form_field_jq.hasClass("chosen-rtl");
600
+ };
601
+
602
+ Chosen.prototype.set_up_html = function() {
603
+ var container_classes, container_props;
604
+ container_classes = ["chosen-container"];
605
+ container_classes.push("chosen-container-" + (this.is_multiple ? "multi" : "single"));
606
+ if (this.inherit_select_classes && this.form_field.className) {
607
+ container_classes.push(this.form_field.className);
608
+ }
609
+ if (this.is_rtl) {
610
+ container_classes.push("chosen-rtl");
611
+ }
612
+ container_props = {
613
+ 'class': container_classes.join(' '),
614
+ 'style': "width: " + (this.container_width()) + ";",
615
+ 'title': this.form_field.title
616
+ };
617
+ if (this.form_field.id.length) {
618
+ container_props.id = this.form_field.id.replace(/[^\w]/g, '_') + "_chosen";
619
+ }
620
+ this.container = $("<div />", container_props);
621
+ if (this.is_multiple) {
622
+ this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="' + this.default_text + '" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>');
623
+ } else {
624
+ this.container.html('<a class="chosen-single chosen-default"><span>' + this.default_text + '</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>');
625
+ }
626
+ this.form_field_jq.hide().after(this.container);
627
+ this.dropdown = this.container.find('div.chosen-drop').first();
628
+ this.search_field = this.container.find('input').first();
629
+ this.search_results = this.container.find('ul.chosen-results').first();
630
+ this.search_field_scale();
631
+ this.search_no_results = this.container.find('li.no-results').first();
632
+ if (this.is_multiple) {
633
+ this.search_choices = this.container.find('ul.chosen-choices').first();
634
+ this.search_container = this.container.find('li.search-field').first();
635
+ } else {
636
+ this.search_container = this.container.find('div.chosen-search').first();
637
+ this.selected_item = this.container.find('.chosen-single').first();
638
+ }
639
+ this.results_build();
640
+ this.set_tab_index();
641
+ return this.set_label_behavior();
642
+ };
643
+
644
+ Chosen.prototype.on_ready = function() {
645
+ return this.form_field_jq.trigger("chosen:ready", {
646
+ chosen: this
647
+ });
648
+ };
649
+
650
+ Chosen.prototype.register_observers = function() {
651
+ var _this = this;
652
+ this.container.bind('touchstart.chosen', function(evt) {
653
+ _this.container_mousedown(evt);
654
+ return evt.preventDefault();
655
+ });
656
+ this.container.bind('touchend.chosen', function(evt) {
657
+ _this.container_mouseup(evt);
658
+ return evt.preventDefault();
659
+ });
660
+ this.container.bind('mousedown.chosen', function(evt) {
661
+ _this.container_mousedown(evt);
662
+ });
663
+ this.container.bind('mouseup.chosen', function(evt) {
664
+ _this.container_mouseup(evt);
665
+ });
666
+ this.container.bind('mouseenter.chosen', function(evt) {
667
+ _this.mouse_enter(evt);
668
+ });
669
+ this.container.bind('mouseleave.chosen', function(evt) {
670
+ _this.mouse_leave(evt);
671
+ });
672
+ this.search_results.bind('mouseup.chosen', function(evt) {
673
+ _this.search_results_mouseup(evt);
674
+ });
675
+ this.search_results.bind('mouseover.chosen', function(evt) {
676
+ _this.search_results_mouseover(evt);
677
+ });
678
+ this.search_results.bind('mouseout.chosen', function(evt) {
679
+ _this.search_results_mouseout(evt);
680
+ });
681
+ this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen', function(evt) {
682
+ _this.search_results_mousewheel(evt);
683
+ });
684
+ this.search_results.bind('touchstart.chosen', function(evt) {
685
+ _this.search_results_touchstart(evt);
686
+ });
687
+ this.search_results.bind('touchmove.chosen', function(evt) {
688
+ _this.search_results_touchmove(evt);
689
+ });
690
+ this.search_results.bind('touchend.chosen', function(evt) {
691
+ _this.search_results_touchend(evt);
692
+ });
693
+ this.form_field_jq.bind("chosen:updated.chosen", function(evt) {
694
+ _this.results_update_field(evt);
695
+ });
696
+ this.form_field_jq.bind("chosen:activate.chosen", function(evt) {
697
+ _this.activate_field(evt);
698
+ });
699
+ this.form_field_jq.bind("chosen:open.chosen", function(evt) {
700
+ _this.container_mousedown(evt);
701
+ });
702
+ this.form_field_jq.bind("chosen:close.chosen", function(evt) {
703
+ _this.input_blur(evt);
704
+ });
705
+ this.search_field.bind('blur.chosen', function(evt) {
706
+ _this.input_blur(evt);
707
+ });
708
+ this.search_field.bind('keyup.chosen', function(evt) {
709
+ _this.keyup_checker(evt);
710
+ });
711
+ this.search_field.bind('keydown.chosen', function(evt) {
712
+ _this.keydown_checker(evt);
713
+ });
714
+ this.search_field.bind('focus.chosen', function(evt) {
715
+ _this.input_focus(evt);
716
+ });
717
+ this.search_field.bind('cut.chosen', function(evt) {
718
+ _this.clipboard_event_checker(evt);
719
+ });
720
+ this.search_field.bind('paste.chosen', function(evt) {
721
+ _this.clipboard_event_checker(evt);
722
+ });
723
+ if (this.is_multiple) {
724
+ return this.search_choices.bind('click.chosen', function(evt) {
725
+ _this.choices_click(evt);
726
+ });
727
+ } else {
728
+ return this.container.bind('click.chosen', function(evt) {
729
+ evt.preventDefault();
730
+ });
731
+ }
732
+ };
733
+
734
+ Chosen.prototype.destroy = function() {
735
+ $(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
736
+ if (this.search_field[0].tabIndex) {
737
+ this.form_field_jq[0].tabIndex = this.search_field[0].tabIndex;
738
+ }
739
+ this.container.remove();
740
+ this.form_field_jq.removeData('chosen');
741
+ return this.form_field_jq.show();
742
+ };
743
+
744
+ Chosen.prototype.search_field_disabled = function() {
745
+ this.is_disabled = this.form_field_jq[0].disabled;
746
+ if (this.is_disabled) {
747
+ this.container.addClass('chosen-disabled');
748
+ this.search_field[0].disabled = true;
749
+ if (!this.is_multiple) {
750
+ this.selected_item.unbind("focus.chosen", this.activate_action);
751
+ }
752
+ return this.close_field();
753
+ } else {
754
+ this.container.removeClass('chosen-disabled');
755
+ this.search_field[0].disabled = false;
756
+ if (!this.is_multiple) {
757
+ return this.selected_item.bind("focus.chosen", this.activate_action);
758
+ }
759
+ }
760
+ };
761
+
762
+ Chosen.prototype.container_mousedown = function(evt) {
763
+ if (!this.is_disabled) {
764
+ if (evt && evt.type === "mousedown" && !this.results_showing) {
765
+ evt.preventDefault();
766
+ }
767
+ if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
768
+ if (!this.active_field) {
769
+ if (this.is_multiple) {
770
+ this.search_field.val("");
771
+ }
772
+ $(this.container[0].ownerDocument).bind('click.chosen', this.click_test_action);
773
+ this.results_show();
774
+ } else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chosen-single").length)) {
775
+ evt.preventDefault();
776
+ this.results_toggle();
777
+ }
778
+ return this.activate_field();
779
+ }
780
+ }
781
+ };
782
+
783
+ Chosen.prototype.container_mouseup = function(evt) {
784
+ if (evt.target.nodeName === "ABBR" && !this.is_disabled) {
785
+ return this.results_reset(evt);
786
+ }
787
+ };
788
+
789
+ Chosen.prototype.search_results_mousewheel = function(evt) {
790
+ var delta;
791
+ if (evt.originalEvent) {
792
+ delta = evt.originalEvent.deltaY || -evt.originalEvent.wheelDelta || evt.originalEvent.detail;
793
+ }
794
+ if (delta != null) {
795
+ evt.preventDefault();
796
+ if (evt.type === 'DOMMouseScroll') {
797
+ delta = delta * 40;
798
+ }
799
+ return this.search_results.scrollTop(delta + this.search_results.scrollTop());
800
+ }
801
+ };
802
+
803
+ Chosen.prototype.blur_test = function(evt) {
804
+ if (!this.active_field && this.container.hasClass("chosen-container-active")) {
805
+ return this.close_field();
806
+ }
807
+ };
808
+
809
+ Chosen.prototype.close_field = function() {
810
+ $(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
811
+ this.active_field = false;
812
+ this.results_hide();
813
+ this.container.removeClass("chosen-container-active");
814
+ this.clear_backstroke();
815
+ this.show_search_field_default();
816
+ return this.search_field_scale();
817
+ };
818
+
819
+ Chosen.prototype.activate_field = function() {
820
+ this.container.addClass("chosen-container-active");
821
+ this.active_field = true;
822
+ this.search_field.val(this.search_field.val());
823
+ return this.search_field.focus();
824
+ };
825
+
826
+ Chosen.prototype.test_active_click = function(evt) {
827
+ var active_container;
828
+ active_container = $(evt.target).closest('.chosen-container');
829
+ if (active_container.length && this.container[0] === active_container[0]) {
830
+ return this.active_field = true;
831
+ } else {
832
+ return this.close_field();
833
+ }
834
+ };
835
+
836
+ Chosen.prototype.results_build = function() {
837
+ this.parsing = true;
838
+ this.selected_option_count = null;
839
+ this.results_data = SelectParser.select_to_array(this.form_field);
840
+ if (this.is_multiple) {
841
+ this.search_choices.find("li.search-choice").remove();
842
+ } else if (!this.is_multiple) {
843
+ this.single_set_selected_text();
844
+ if (this.disable_search || this.form_field.options.length <= this.disable_search_threshold) {
845
+ this.search_field[0].readOnly = true;
846
+ this.container.addClass("chosen-container-single-nosearch");
847
+ } else {
848
+ this.search_field[0].readOnly = false;
849
+ this.container.removeClass("chosen-container-single-nosearch");
850
+ }
851
+ }
852
+ this.update_results_content(this.results_option_build({
853
+ first: true
854
+ }));
855
+ this.search_field_disabled();
856
+ this.show_search_field_default();
857
+ this.search_field_scale();
858
+ return this.parsing = false;
859
+ };
860
+
861
+ Chosen.prototype.result_do_highlight = function(el) {
862
+ var high_bottom, high_top, maxHeight, visible_bottom, visible_top;
863
+ if (el.length) {
864
+ this.result_clear_highlight();
865
+ this.result_highlight = el;
866
+ this.result_highlight.addClass("highlighted");
867
+ maxHeight = parseInt(this.search_results.css("maxHeight"), 10);
868
+ visible_top = this.search_results.scrollTop();
869
+ visible_bottom = maxHeight + visible_top;
870
+ high_top = this.result_highlight.position().top + this.search_results.scrollTop();
871
+ high_bottom = high_top + this.result_highlight.outerHeight();
872
+ if (high_bottom >= visible_bottom) {
873
+ return this.search_results.scrollTop((high_bottom - maxHeight) > 0 ? high_bottom - maxHeight : 0);
874
+ } else if (high_top < visible_top) {
875
+ return this.search_results.scrollTop(high_top);
876
+ }
877
+ }
878
+ };
879
+
880
+ Chosen.prototype.result_clear_highlight = function() {
881
+ if (this.result_highlight) {
882
+ this.result_highlight.removeClass("highlighted");
883
+ }
884
+ return this.result_highlight = null;
885
+ };
886
+
887
+ Chosen.prototype.results_show = function() {
888
+ if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
889
+ this.form_field_jq.trigger("chosen:maxselected", {
890
+ chosen: this
891
+ });
892
+ return false;
893
+ }
894
+ this.container.addClass("chosen-with-drop");
895
+ this.results_showing = true;
896
+ this.search_field.focus();
897
+ this.search_field.val(this.search_field.val());
898
+ this.winnow_results();
899
+ return this.form_field_jq.trigger("chosen:showing_dropdown", {
900
+ chosen: this
901
+ });
902
+ };
903
+
904
+ Chosen.prototype.update_results_content = function(content) {
905
+ return this.search_results.html(content);
906
+ };
907
+
908
+ Chosen.prototype.results_hide = function() {
909
+ if (this.results_showing) {
910
+ this.result_clear_highlight();
911
+ this.container.removeClass("chosen-with-drop");
912
+ this.form_field_jq.trigger("chosen:hiding_dropdown", {
913
+ chosen: this
914
+ });
915
+ }
916
+ return this.results_showing = false;
917
+ };
918
+
919
+ Chosen.prototype.set_tab_index = function(el) {
920
+ var ti;
921
+ if (this.form_field.tabIndex) {
922
+ ti = this.form_field.tabIndex;
923
+ this.form_field.tabIndex = -1;
924
+ return this.search_field[0].tabIndex = ti;
925
+ }
926
+ };
927
+
928
+ Chosen.prototype.set_label_behavior = function() {
929
+ var _this = this;
930
+ this.form_field_label = this.form_field_jq.parents("label");
931
+ if (!this.form_field_label.length && this.form_field.id.length) {
932
+ this.form_field_label = $("label[for='" + this.form_field.id + "']");
933
+ }
934
+ if (this.form_field_label.length > 0) {
935
+ return this.form_field_label.bind('click.chosen', function(evt) {
936
+ if (_this.is_multiple) {
937
+ return _this.container_mousedown(evt);
938
+ } else {
939
+ return _this.activate_field();
940
+ }
941
+ });
942
+ }
943
+ };
944
+
945
+ Chosen.prototype.show_search_field_default = function() {
946
+ if (this.is_multiple && this.choices_count() < 1 && !this.active_field) {
947
+ this.search_field.val(this.default_text);
948
+ return this.search_field.addClass("default");
949
+ } else {
950
+ this.search_field.val("");
951
+ return this.search_field.removeClass("default");
952
+ }
953
+ };
954
+
955
+ Chosen.prototype.search_results_mouseup = function(evt) {
956
+ var target;
957
+ target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
958
+ if (target.length) {
959
+ this.result_highlight = target;
960
+ this.result_select(evt);
961
+ return this.search_field.focus();
962
+ }
963
+ };
964
+
965
+ Chosen.prototype.search_results_mouseover = function(evt) {
966
+ var target;
967
+ target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
968
+ if (target) {
969
+ return this.result_do_highlight(target);
970
+ }
971
+ };
972
+
973
+ Chosen.prototype.search_results_mouseout = function(evt) {
974
+ if ($(evt.target).hasClass("active-result" || $(evt.target).parents('.active-result').first())) {
975
+ return this.result_clear_highlight();
976
+ }
977
+ };
978
+
979
+ Chosen.prototype.choice_build = function(item) {
980
+ var choice, close_link,
981
+ _this = this;
982
+ choice = $('<li />', {
983
+ "class": "search-choice"
984
+ }).html("<span>" + (this.choice_label(item)) + "</span>");
985
+ if (item.disabled) {
986
+ choice.addClass('search-choice-disabled');
987
+ } else {
988
+ close_link = $('<a />', {
989
+ "class": 'search-choice-close',
990
+ 'data-option-array-index': item.array_index
991
+ });
992
+ close_link.bind('click.chosen', function(evt) {
993
+ return _this.choice_destroy_link_click(evt);
994
+ });
995
+ choice.append(close_link);
996
+ }
997
+ return this.search_container.before(choice);
998
+ };
999
+
1000
+ Chosen.prototype.choice_destroy_link_click = function(evt) {
1001
+ evt.preventDefault();
1002
+ evt.stopPropagation();
1003
+ if (!this.is_disabled) {
1004
+ return this.choice_destroy($(evt.target));
1005
+ }
1006
+ };
1007
+
1008
+ Chosen.prototype.choice_destroy = function(link) {
1009
+ if (this.result_deselect(link[0].getAttribute("data-option-array-index"))) {
1010
+ this.show_search_field_default();
1011
+ if (this.is_multiple && this.choices_count() > 0 && this.search_field.val().length < 1) {
1012
+ this.results_hide();
1013
+ }
1014
+ link.parents('li').first().remove();
1015
+ return this.search_field_scale();
1016
+ }
1017
+ };
1018
+
1019
+ Chosen.prototype.results_reset = function() {
1020
+ this.reset_single_select_options();
1021
+ this.form_field.options[0].selected = true;
1022
+ this.single_set_selected_text();
1023
+ this.show_search_field_default();
1024
+ this.results_reset_cleanup();
1025
+ this.form_field_jq.trigger("change");
1026
+ if (this.active_field) {
1027
+ return this.results_hide();
1028
+ }
1029
+ };
1030
+
1031
+ Chosen.prototype.results_reset_cleanup = function() {
1032
+ this.current_selectedIndex = this.form_field.selectedIndex;
1033
+ return this.selected_item.find("abbr").remove();
1034
+ };
1035
+
1036
+ Chosen.prototype.result_select = function(evt) {
1037
+ var high, item;
1038
+ if (this.result_highlight) {
1039
+ high = this.result_highlight;
1040
+ this.result_clear_highlight();
1041
+ if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
1042
+ this.form_field_jq.trigger("chosen:maxselected", {
1043
+ chosen: this
1044
+ });
1045
+ return false;
1046
+ }
1047
+ if (this.is_multiple) {
1048
+ high.removeClass("active-result");
1049
+ } else {
1050
+ this.reset_single_select_options();
1051
+ }
1052
+ high.addClass("result-selected");
1053
+ item = this.results_data[high[0].getAttribute("data-option-array-index")];
1054
+ item.selected = true;
1055
+ this.form_field.options[item.options_index].selected = true;
1056
+ this.selected_option_count = null;
1057
+ if (this.is_multiple) {
1058
+ this.choice_build(item);
1059
+ } else {
1060
+ this.single_set_selected_text(this.choice_label(item));
1061
+ }
1062
+ if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
1063
+ this.results_hide();
1064
+ }
1065
+ this.show_search_field_default();
1066
+ if (this.is_multiple || this.form_field.selectedIndex !== this.current_selectedIndex) {
1067
+ this.form_field_jq.trigger("change", {
1068
+ 'selected': this.form_field.options[item.options_index].value
1069
+ });
1070
+ }
1071
+ this.current_selectedIndex = this.form_field.selectedIndex;
1072
+ evt.preventDefault();
1073
+ return this.search_field_scale();
1074
+ }
1075
+ };
1076
+
1077
+ Chosen.prototype.single_set_selected_text = function(text) {
1078
+ if (text == null) {
1079
+ text = this.default_text;
1080
+ }
1081
+ if (text === this.default_text) {
1082
+ this.selected_item.addClass("chosen-default");
1083
+ } else {
1084
+ this.single_deselect_control_build();
1085
+ this.selected_item.removeClass("chosen-default");
1086
+ }
1087
+ return this.selected_item.find("span").html(text);
1088
+ };
1089
+
1090
+ Chosen.prototype.result_deselect = function(pos) {
1091
+ var result_data;
1092
+ result_data = this.results_data[pos];
1093
+ if (!this.form_field.options[result_data.options_index].disabled) {
1094
+ result_data.selected = false;
1095
+ this.form_field.options[result_data.options_index].selected = false;
1096
+ this.selected_option_count = null;
1097
+ this.result_clear_highlight();
1098
+ if (this.results_showing) {
1099
+ this.winnow_results();
1100
+ }
1101
+ this.form_field_jq.trigger("change", {
1102
+ deselected: this.form_field.options[result_data.options_index].value
1103
+ });
1104
+ this.search_field_scale();
1105
+ return true;
1106
+ } else {
1107
+ return false;
1108
+ }
1109
+ };
1110
+
1111
+ Chosen.prototype.single_deselect_control_build = function() {
1112
+ if (!this.allow_single_deselect) {
1113
+ return;
1114
+ }
1115
+ if (!this.selected_item.find("abbr").length) {
1116
+ this.selected_item.find("span").first().after("<abbr class=\"search-choice-close\"></abbr>");
1117
+ }
1118
+ return this.selected_item.addClass("chosen-single-with-deselect");
1119
+ };
1120
+
1121
+ Chosen.prototype.get_search_text = function() {
1122
+ return $('<div/>').text($.trim(this.search_field.val())).html();
1123
+ };
1124
+
1125
+ Chosen.prototype.winnow_results_set_highlight = function() {
1126
+ var do_high, selected_results;
1127
+ selected_results = !this.is_multiple ? this.search_results.find(".result-selected.active-result") : [];
1128
+ do_high = selected_results.length ? selected_results.first() : this.search_results.find(".active-result").first();
1129
+ if (do_high != null) {
1130
+ return this.result_do_highlight(do_high);
1131
+ }
1132
+ };
1133
+
1134
+ Chosen.prototype.no_results = function(terms) {
1135
+ var no_results_html;
1136
+ no_results_html = $('<li class="no-results">' + this.results_none_found + ' "<span></span>"</li>');
1137
+ no_results_html.find("span").first().html(terms);
1138
+ this.search_results.append(no_results_html);
1139
+ return this.form_field_jq.trigger("chosen:no_results", {
1140
+ chosen: this
1141
+ });
1142
+ };
1143
+
1144
+ Chosen.prototype.no_results_clear = function() {
1145
+ return this.search_results.find(".no-results").remove();
1146
+ };
1147
+
1148
+ Chosen.prototype.keydown_arrow = function() {
1149
+ var next_sib;
1150
+ if (this.results_showing && this.result_highlight) {
1151
+ next_sib = this.result_highlight.nextAll("li.active-result").first();
1152
+ if (next_sib) {
1153
+ return this.result_do_highlight(next_sib);
1154
+ }
1155
+ } else {
1156
+ return this.results_show();
1157
+ }
1158
+ };
1159
+
1160
+ Chosen.prototype.keyup_arrow = function() {
1161
+ var prev_sibs;
1162
+ if (!this.results_showing && !this.is_multiple) {
1163
+ return this.results_show();
1164
+ } else if (this.result_highlight) {
1165
+ prev_sibs = this.result_highlight.prevAll("li.active-result");
1166
+ if (prev_sibs.length) {
1167
+ return this.result_do_highlight(prev_sibs.first());
1168
+ } else {
1169
+ if (this.choices_count() > 0) {
1170
+ this.results_hide();
1171
+ }
1172
+ return this.result_clear_highlight();
1173
+ }
1174
+ }
1175
+ };
1176
+
1177
+ Chosen.prototype.keydown_backstroke = function() {
1178
+ var next_available_destroy;
1179
+ if (this.pending_backstroke) {
1180
+ this.choice_destroy(this.pending_backstroke.find("a").first());
1181
+ return this.clear_backstroke();
1182
+ } else {
1183
+ next_available_destroy = this.search_container.siblings("li.search-choice").last();
1184
+ if (next_available_destroy.length && !next_available_destroy.hasClass("search-choice-disabled")) {
1185
+ this.pending_backstroke = next_available_destroy;
1186
+ if (this.single_backstroke_delete) {
1187
+ return this.keydown_backstroke();
1188
+ } else {
1189
+ return this.pending_backstroke.addClass("search-choice-focus");
1190
+ }
1191
+ }
1192
+ }
1193
+ };
1194
+
1195
+ Chosen.prototype.clear_backstroke = function() {
1196
+ if (this.pending_backstroke) {
1197
+ this.pending_backstroke.removeClass("search-choice-focus");
1198
+ }
1199
+ return this.pending_backstroke = null;
1200
+ };
1201
+
1202
+ Chosen.prototype.keydown_checker = function(evt) {
1203
+ var stroke, _ref1;
1204
+ stroke = (_ref1 = evt.which) != null ? _ref1 : evt.keyCode;
1205
+ this.search_field_scale();
1206
+ if (stroke !== 8 && this.pending_backstroke) {
1207
+ this.clear_backstroke();
1208
+ }
1209
+ switch (stroke) {
1210
+ case 8:
1211
+ this.backstroke_length = this.search_field.val().length;
1212
+ break;
1213
+ case 9:
1214
+ if (this.results_showing && !this.is_multiple) {
1215
+ this.result_select(evt);
1216
+ }
1217
+ this.mouse_on_container = false;
1218
+ break;
1219
+ case 13:
1220
+ if (this.results_showing) {
1221
+ evt.preventDefault();
1222
+ }
1223
+ break;
1224
+ case 32:
1225
+ if (this.disable_search) {
1226
+ evt.preventDefault();
1227
+ }
1228
+ break;
1229
+ case 38:
1230
+ evt.preventDefault();
1231
+ this.keyup_arrow();
1232
+ break;
1233
+ case 40:
1234
+ evt.preventDefault();
1235
+ this.keydown_arrow();
1236
+ break;
1237
+ }
1238
+ };
1239
+
1240
+ Chosen.prototype.search_field_scale = function() {
1241
+ var div, f_width, h, style, style_block, styles, w, _i, _len;
1242
+ if (this.is_multiple) {
1243
+ h = 0;
1244
+ w = 0;
1245
+ style_block = "position:absolute; left: -1000px; top: -1000px; display:none;";
1246
+ styles = ['font-size', 'font-style', 'font-weight', 'font-family', 'line-height', 'text-transform', 'letter-spacing'];
1247
+ for (_i = 0, _len = styles.length; _i < _len; _i++) {
1248
+ style = styles[_i];
1249
+ style_block += style + ":" + this.search_field.css(style) + ";";
1250
+ }
1251
+ div = $('<div />', {
1252
+ 'style': style_block
1253
+ });
1254
+ div.text(this.search_field.val());
1255
+ $('body').append(div);
1256
+ w = div.width() + 25;
1257
+ div.remove();
1258
+ f_width = this.container.outerWidth();
1259
+ if (w > f_width - 10) {
1260
+ w = f_width - 10;
1261
+ }
1262
+ return this.search_field.css({
1263
+ 'width': w + 'px'
1264
+ });
1265
+ }
1266
+ };
1267
+
1268
+ return Chosen;
1269
+
1270
+ })(AbstractChosen);
1271
+
1272
+ }).call(this);
assets/js/plugins/chosen.jquery.min.js ADDED
@@ -0,0 +1 @@
 
1
+ (function(){var t,e,s,i,r,o={}.hasOwnProperty,n=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,o,n;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}),o=t.childNodes,n=[],i=0,r=o.length;i<r;i++)s=o[i],n.push(this.add_option(s,e,t.disabled));return n},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,o,n;for(s=new i,n=t.childNodes,r=0,o=n.length;r<o;r++)e=n[r],s.add_node(e);return s.parsed},e=function(){function t(e,s){this.form_field=e,this.options=null!=s?s:{},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.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},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.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.results_option_build=function(t){var e,s,i,r,o,n,l;for(e="",r=0,l=this.results_data,o=0,n=l.length;o<n&&(s=l[o],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));o++);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,o,n,l,h,c,a,_;for(this.no_results_clear(),i=0,o=this.get_search_text(),t=o.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),h=new RegExp(t,"i"),s=this.get_search_regex(t),_=this.results_data,c=0,a=_.length;c<a;c++)e=_[c],e.search_match=!1,r=null,this.include_option_in_results(e)&&(e.group&&(e.group_match=!1,e.active_options=0),null!=e.group_array_index&&this.results_data[e.group_array_index]&&(r=this.results_data[e.group_array_index],0===r.active_options&&r.search_match&&(i+=1),r.active_options+=1),e.search_text=e.group?e.label:e.html,e.group&&!this.group_search||(e.search_match=this.search_string_match(e.search_text,s),e.search_match&&!e.group&&(i+=1),e.search_match?(o.length&&(n=e.search_text.search(h),l=e.search_text.substr(0,n+o.length)+"</em>"+e.search_text.substr(n+o.length),e.search_text=l.substr(0,n)+"<em>"+l.substr(n)),null!=r&&(r.group_match=!0)):null!=e.group_array_index&&this.results_data[e.group_array_index].search_match&&(e.search_match=!0)));return this.result_clear_highlight(),i<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;return e=this.search_contains?"":"^",new RegExp(e+t,"i")},t.prototype.search_string_match=function(t,e){var s,i,r,o;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,o=i.length;r<o;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.results_showing&&!this.is_disabled)return this.results_show()},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:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(t.preventDefault(),this.results_showing)return this.result_select(t);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:case 18:break;default:return this.results_search()}},t.prototype.clipboard_event_checker=function(t){var e=this;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.browser_is_supported=function(){return!/iP(od|hone)/i.test(window.navigator.userAgent)&&((!/Android/i.test(window.navigator.userAgent)||!/Mobile/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)&&("Microsoft Internet Explorer"!==window.navigator.appName||document.documentMode>=8))))))},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,o;return r=t(this),o=r.data("chosen"),"destroy"===i?void(o instanceof s&&o.destroy()):void(o instanceof s||r.data("chosen",new s(this,i)))}):this}}),s=function(e){function s(){return r=s.__super__.constructor.apply(this,arguments)}return n(s,e),s.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},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(" "),style:"width: "+this.container_width()+";",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.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),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){return t.container_mousedown(e),e.preventDefault()}),this.container.bind("touchend.chosen",function(e){return t.container_mouseup(e),e.preventDefault()}),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.input_blur(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.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_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},s.prototype.container_mousedown=function(e){if(!this.is_disabled&&(e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),null==e||!t(e.target).hasClass("search-choice-close")))return 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()},s.prototype.activate_field=function(){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,o;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),o=this.search_results.scrollTop(),r=i+o,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<o)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.search_field.val()),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(){var e=this;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",function(t){return e.is_multiple?e.container_mousedown(t):e.activate_field()})},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.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().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.form_field_jq.trigger("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)),(t.metaKey||t.ctrlKey)&&this.is_multiple||this.results_hide(),this.show_search_field_default(),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("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.form_field_jq.trigger("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_text=function(){return t("<div/>").text(t.trim(this.search_field.val())).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(e){var s;return s=t('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),s.find("span").first().html(e),this.search_results.append(s),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.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.search_field.val().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 32:this.disable_search&&t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},s.prototype.search_field_scale=function(){var e,s,i,r,o,n,l,h,c;if(this.is_multiple){for(i=0,l=0,o="position:absolute; left: -1000px; top: -1000px; display:none;",n=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],h=0,c=n.length;h<c;h++)r=n[h],o+=r+":"+this.search_field.css(r)+";";return e=t("<div />",{style:o}),e.text(this.search_field.val()),t("body").append(e),l=e.width()+25,e.remove(),s=this.container.outerWidth(),l>s-10&&(l=s-10),this.search_field.css({width:l+"px"})}},s}(e)}).call(this);
assets/js/plugins/float-labels.js ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Float Labels
3
+ *
4
+ * Version: 1.0.8
5
+ * Author: Paul Ryley (http://geminilabs.io)
6
+ * URL: https://github.com/geminilabs/float-labels.js
7
+ * License: MIT
8
+ */
9
+
10
+ /**
11
+ * This plugin applies the float label pattern to a form.
12
+ *
13
+ * The float label pattern floats the inline label up above the input after the user enters a value.
14
+ *
15
+ * Pros:
16
+ * - User keeps context
17
+ * The user keeps the field’s context after they’ve focused and entered a value. This provides
18
+ * for a more accessible, less frustrating experience.
19
+ * - Clean and scannable by default
20
+ * The pattern allows for a clean inline label experience by default, and only becomes a little
21
+ * more cluttered once the user has filled things out.
22
+ * - Elegant
23
+ *
24
+ * Cons:
25
+ * - Doesn’t provide room for both label and placeholder
26
+ * Because the label is occupying the same space as the placeholder, there’s no room for
27
+ * additional hinting.
28
+ * - Small Label
29
+ * The label becomes small and possibly hard to read, but at the same time it’s not as big a deal.
30
+ * Once the user has interacted with the input, the label becomes a reference rather than an
31
+ * instruction.
32
+ *
33
+ * Links:
34
+ * - http://bradfrost.com/blog/post/float-label-pattern/
35
+ * - https://dribbble.com/shots/1254439--GIF-Mobile-Form-Interaction
36
+ */
37
+
38
+ (function()
39
+ {
40
+ var $, floatLabel, keyPress, form, opts;
41
+
42
+ $ = window.jQuery || window.Zepto || window.$;
43
+
44
+ /**
45
+ * Floating Labels
46
+ *
47
+ * @param array options [plugin options array]
48
+ */
49
+ $.fn.floatlabels = function( options )
50
+ {
51
+ opts = $.extend({
52
+ regex : /text|password|email|number|search|url|tel/,
53
+ exclude : [],
54
+ priority : '', // label|placeholder
55
+ customLabel : function(){},
56
+ customEvent : function(){},
57
+ }, options );
58
+
59
+ form = $( this );
60
+
61
+ if( form.length ) {
62
+
63
+ if( form.get(0).tagName !== 'FORM' ) {
64
+ var forms = form.find( 'form' );
65
+
66
+ if( forms.length === 0 ) {
67
+ forms = form.closest( 'form' );
68
+ }
69
+ if( forms.length === 0 ) {
70
+ return;
71
+ }
72
+
73
+ form = forms;
74
+ }
75
+
76
+ form.addClass( 'floated-labels' );
77
+
78
+ opts.exclude.push( '.no-label' );
79
+ opts.exclude = opts.exclude.join( ',' );
80
+
81
+ // float input labels
82
+ form.find( 'input:not(' + opts.exclude + ')' ).each( function()
83
+ {
84
+ if( opts.regex.test( $( this ).attr( 'type' ) ) ) {
85
+ floatLabel( this );
86
+ }
87
+ });
88
+
89
+ // float textarea labels
90
+ form.find( 'textarea:not(' + opts.exclude + ')' ).each( function()
91
+ {
92
+ floatLabel( this );
93
+ });
94
+
95
+ // float select labels
96
+ form.find( 'select:not(' + opts.exclude + ')' ).each( function()
97
+ {
98
+ floatLabel( this, 'select' );
99
+
100
+ $( this ).parent().addClass( 'styled select' );
101
+ });
102
+ }
103
+ };
104
+
105
+ /**
106
+ * Modifies a form element for floatlabels CSS styling
107
+ *
108
+ * @param object el [the :input element]
109
+ * @param string type [the :input type] (optional)
110
+ */
111
+ floatLabel = function( el, type )
112
+ {
113
+ var id, label_el, label_for, label, placeholder, tooltip, floatlabel = 'floatlabel';
114
+
115
+ el = $( el );
116
+ id = el.attr( 'id' );
117
+ placeholder = el.attr( 'placeholder' );
118
+ label_for = 'label[for="' + id + '"]';
119
+
120
+ if( id !== undefined ) {
121
+
122
+ label_el = $( label_for );
123
+
124
+ // check for multiple labels with identical 'for' attributes
125
+ if( label_el.length > 1 ) {
126
+ label_el = el.parent().find( label_for );
127
+ }
128
+
129
+ if( label_el.length === 1 ) {
130
+ label = label_el.text().replace( /[*:]/g, '' ).trim();
131
+ tooltip = label_el.find( '[data-tooltip]' ).data( 'tooltip' );
132
+ }
133
+
134
+ if( !label || ( label && placeholder && opts.priority === 'placeholder' ) ) {
135
+ label = placeholder;
136
+ }
137
+ }
138
+
139
+ // only proceed if label is not empty
140
+ if( label ) {
141
+
142
+ // add a placholder option to the select if it doesn't already exist
143
+ if( type === 'select' ) {
144
+ var first = el.children().first();
145
+
146
+ if( first.val() === '' && first.text() === '' ) {
147
+ first.text( label );
148
+ }
149
+ }
150
+ // add a textarea/input placeholder attribute if it doesn't exist
151
+ else {
152
+ if( !placeholder || opts.priority === 'label' ) {
153
+ el.attr( 'placeholder', label );
154
+ }
155
+ }
156
+
157
+ if( !el.parent().hasClass( floatlabel ) ) {
158
+
159
+ el.addClass( floatlabel + '-input' ).wrap( _pf( '<div class="{0} {0}-{1}"/>', floatlabel, id ) );
160
+
161
+ // call the custom defined event
162
+ opts.customEvent.call( this, el );
163
+
164
+ // call the custom defined label event
165
+ var custom_label = opts.customLabel.call( this, el, label );
166
+
167
+ if( custom_label !== undefined ) {
168
+ label = custom_label;
169
+ }
170
+
171
+ label = $( _pf('<label for="{0}" class="{1}-label">{2}</label>', id, floatlabel, label ) );
172
+
173
+ // re-add existing label tooltip
174
+ if( tooltip ) {
175
+ label.attr( 'data-tooltip', tooltip );
176
+ }
177
+
178
+ label_el.remove();
179
+
180
+ el.after( label );
181
+ }
182
+
183
+ if( el.val().length ) {
184
+ el.parent().addClass( 'is-active' );
185
+ }
186
+
187
+ // Events
188
+ el.on( 'focus', function()
189
+ {
190
+ el.parent().addClass( 'is-focused' );
191
+ });
192
+
193
+ el.on( 'blur', function()
194
+ {
195
+ el.parent().removeClass( 'is-focused' );
196
+ });
197
+
198
+ el.on( 'keyup blur change', function( ev )
199
+ {
200
+ keyPress( el, ev );
201
+ });
202
+ }
203
+ };
204
+
205
+ /**
206
+ * Fired when the :input value has changed or when it loses focus
207
+ *
208
+ * @param object el [the :input element]
209
+ * @param event ev [the event that is fired on keyup|blur|change]
210
+ */
211
+ keyPress = function( el, ev )
212
+ {
213
+ if( ev ) {
214
+ var key = ev.keyCode || ev.which;
215
+ if( 9 === key ) return;
216
+ }
217
+
218
+ if( el.val().length ) {
219
+ el.parent().addClass( 'is-active' );
220
+ }
221
+ else {
222
+ el.parent().removeClass( 'is-active' );
223
+ }
224
+ };
225
+
226
+ /**
227
+ * Simplified printf implementation
228
+ */
229
+ _pf = function( format )
230
+ {
231
+ var args = [].slice.call( arguments, 1, arguments.length );
232
+
233
+ return format.replace( /{(\d+)}/g, function ( match, number )
234
+ {
235
+ return typeof args[ number ] !== undefined ? args[ number ] : match;
236
+ });
237
+ };
238
+
239
+ }).call( this );
assets/js/plugins/float-labels.min.js ADDED
@@ -0,0 +1 @@
 
1
+ (function(){var e,t,a,l,n;e=window.jQuery||window.Zepto||window.$,e.fn.floatlabels=function(a){if(n=e.extend({regex:/text|password|email|number|search|url|tel/,exclude:[],priority:"",customLabel:function(){},customEvent:function(){}},a),l=e(this),l.length){if("FORM"!==l.get(0).tagName){var i=l.find("form");if(0===i.length&&(i=l.closest("form")),0===i.length)return;l=i}l.addClass("floated-labels"),n.exclude.push(".no-label"),n.exclude=n.exclude.join(","),l.find("input:not("+n.exclude+")").each(function(){n.regex.test(e(this).attr("type"))&&t(this)}),l.find("textarea:not("+n.exclude+")").each(function(){t(this)}),l.find("select:not("+n.exclude+")").each(function(){t(this,"select"),e(this).parent().addClass("styled select")})}},t=function(t,l){var i,o,r,s,c,d,f="floatlabel";if(t=e(t),i=t.attr("id"),c=t.attr("placeholder"),r='label[for="'+i+'"]',void 0!==i&&(o=e(r),o.length>1&&(o=t.parent().find(r)),1===o.length&&(s=o.text().replace(/[*:]/g,"").trim(),d=o.find("[data-tooltip]").data("tooltip")),(!s||s&&c&&"placeholder"===n.priority)&&(s=c)),s){if("select"===l){var u=t.children().first();""===u.val()&&""===u.text()&&u.text(s)}else c&&"label"!==n.priority||t.attr("placeholder",s);if(!t.parent().hasClass(f)){t.addClass(f+"-input").wrap(_pf('<div class="{0} {0}-{1}"/>',f,i)),n.customEvent.call(this,t);var p=n.customLabel.call(this,t,s);void 0!==p&&(s=p),s=e(_pf('<label for="{0}" class="{1}-label">{2}</label>',i,f,s)),d&&s.attr("data-tooltip",d),o.remove(),t.after(s)}t.val().length&&t.parent().addClass("is-active"),t.on("focus",function(){t.parent().addClass("is-focused")}),t.on("blur",function(){t.parent().removeClass("is-focused")}),t.on("keyup blur change",function(e){a(t,e)})}},a=function(e,t){if(t){var a=t.keyCode||t.which;if(9===a)return}e.val().length?e.parent().addClass("is-active"):e.parent().removeClass("is-active")},_pf=function(e){var t=[].slice.call(arguments,1,arguments.length);return e.replace(/{(\d+)}/g,function(e,a){return void 0!==typeof t[a]?t[a]:e})}}).call(this);
assets/js/plugins/jquery.blockUI.js ADDED
@@ -0,0 +1,620 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * jQuery blockUI plugin
3
+ * Version 2.70.0-2014.11.23
4
+ * Requires jQuery v1.7 or later
5
+ *
6
+ * Examples at: http://malsup.com/jquery/block/
7
+ * Copyright (c) 2007-2013 M. Alsup
8
+ * Dual licensed under the MIT and GPL licenses:
9
+ * http://www.opensource.org/licenses/mit-license.php
10
+ * http://www.gnu.org/licenses/gpl.html
11
+ *
12
+ * Thanks to Amir-Hossein Sobhi for some excellent contributions!
13
+ */
14
+
15
+ ;(function() {
16
+ /*jshint eqeqeq:false curly:false latedef:false */
17
+ "use strict";
18
+
19
+ function setup($) {
20
+ $.fn._fadeIn = $.fn.fadeIn;
21
+
22
+ var noOp = $.noop || function() {};
23
+
24
+ // this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
25
+ // confusing userAgent strings on Vista)
26
+ var msie = /MSIE/.test(navigator.userAgent);
27
+ var ie6 = /MSIE 6.0/.test(navigator.userAgent) && ! /MSIE 8.0/.test(navigator.userAgent);
28
+ var mode = document.documentMode || 0;
29
+ var setExpr = $.isFunction( document.createElement('div').style.setExpression );
30
+
31
+ // global $ methods for blocking/unblocking the entire page
32
+ $.blockUI = function(opts) { install(window, opts); };
33
+ $.unblockUI = function(opts) { remove(window, opts); };
34
+
35
+ // convenience method for quick growl-like notifications (http://www.google.com/search?q=growl)
36
+ $.growlUI = function(title, message, timeout, onClose) {
37
+ var $m = $('<div class="growlUI"></div>');
38
+ if (title) $m.append('<h1>'+title+'</h1>');
39
+ if (message) $m.append('<h2>'+message+'</h2>');
40
+ if (timeout === undefined) timeout = 3000;
41
+
42
+ // Added by konapun: Set timeout to 30 seconds if this growl is moused over, like normal toast notifications
43
+ var callBlock = function(opts) {
44
+ opts = opts || {};
45
+
46
+ $.blockUI({
47
+ message: $m,
48
+ fadeIn : typeof opts.fadeIn !== 'undefined' ? opts.fadeIn : 700,
49
+ fadeOut: typeof opts.fadeOut !== 'undefined' ? opts.fadeOut : 1000,
50
+ timeout: typeof opts.timeout !== 'undefined' ? opts.timeout : timeout,
51
+ centerY: false,
52
+ showOverlay: false,
53
+ onUnblock: onClose,
54
+ css: $.blockUI.defaults.growlCSS
55
+ });
56
+ };
57
+
58
+ callBlock();
59
+ var nonmousedOpacity = $m.css('opacity');
60
+ $m.mouseover(function() {
61
+ callBlock({
62
+ fadeIn: 0,
63
+ timeout: 30000
64
+ });
65
+
66
+ var displayBlock = $('.blockMsg');
67
+ displayBlock.stop(); // cancel fadeout if it has started
68
+ displayBlock.fadeTo(300, 1); // make it easier to read the message by removing transparency
69
+ }).mouseout(function() {
70
+ $('.blockMsg').fadeOut(1000);
71
+ });
72
+ // End konapun additions
73
+ };
74
+
75
+ // plugin method for blocking element content
76
+ $.fn.block = function(opts) {
77
+ if ( this[0] === window ) {
78
+ $.blockUI( opts );
79
+ return this;
80
+ }
81
+ var fullOpts = $.extend({}, $.blockUI.defaults, opts || {});
82
+ this.each(function() {
83
+ var $el = $(this);
84
+ if (fullOpts.ignoreIfBlocked && $el.data('blockUI.isBlocked'))
85
+ return;
86
+ $el.unblock({ fadeOut: 0 });
87
+ });
88
+
89
+ return this.each(function() {
90
+ if ($.css(this,'position') == 'static') {
91
+ this.style.position = 'relative';
92
+ $(this).data('blockUI.static', true);
93
+ }
94
+ this.style.zoom = 1; // force 'hasLayout' in ie
95
+ install(this, opts);
96
+ });
97
+ };
98
+
99
+ // plugin method for unblocking element content
100
+ $.fn.unblock = function(opts) {
101
+ if ( this[0] === window ) {
102
+ $.unblockUI( opts );
103
+ return this;
104
+ }
105
+ return this.each(function() {
106
+ remove(this, opts);
107
+ });
108
+ };
109
+
110
+ $.blockUI.version = 2.70; // 2nd generation blocking at no extra cost!
111
+
112
+ // override these in your code to change the default behavior and style
113
+ $.blockUI.defaults = {
114
+ // message displayed when blocking (use null for no message)
115
+ message: '<h1>Please wait...</h1>',
116
+
117
+ title: null, // title string; only used when theme == true
118
+ draggable: true, // only used when theme == true (requires jquery-ui.js to be loaded)
119
+
120
+ theme: false, // set to true to use with jQuery UI themes
121
+
122
+ // styles for the message when blocking; if you wish to disable
123
+ // these and use an external stylesheet then do this in your code:
124
+ // $.blockUI.defaults.css = {};
125
+ css: {
126
+ padding: 0,
127
+ margin: 0,
128
+ width: '30%',
129
+ top: '40%',
130
+ left: '35%',
131
+ textAlign: 'center',
132
+ color: '#000',
133
+ border: '3px solid #aaa',
134
+ backgroundColor:'#fff',
135
+ cursor: 'wait'
136
+ },
137
+
138
+ // minimal style set used when themes are used
139
+ themedCSS: {
140
+ width: '30%',
141
+ top: '40%',
142
+ left: '35%'
143
+ },
144
+
145
+ // styles for the overlay
146
+ overlayCSS: {
147
+ backgroundColor: '#000',
148
+ opacity: 0.6,
149
+ cursor: 'wait'
150
+ },
151
+
152
+ // style to replace wait cursor before unblocking to correct issue
153
+ // of lingering wait cursor
154
+ cursorReset: 'default',
155
+
156
+ // styles applied when using $.growlUI
157
+ growlCSS: {
158
+ width: '350px',
159
+ top: '10px',
160
+ left: '',
161
+ right: '10px',
162
+ border: 'none',
163
+ padding: '5px',
164
+ opacity: 0.6,
165
+ cursor: 'default',
166
+ color: '#fff',
167
+ backgroundColor: '#000',
168
+ '-webkit-border-radius':'10px',
169
+ '-moz-border-radius': '10px',
170
+ 'border-radius': '10px'
171
+ },
172
+
173
+ // IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w
174
+ // (hat tip to Jorge H. N. de Vasconcelos)
175
+ /*jshint scripturl:true */
176
+ iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
177
+
178
+ // force usage of iframe in non-IE browsers (handy for blocking applets)
179
+ forceIframe: false,
180
+
181
+ // z-index for the blocking overlay
182
+ baseZ: 1000,
183
+
184
+ // set these to true to have the message automatically centered
185
+ centerX: true, // <-- only effects element blocking (page block controlled via css above)
186
+ centerY: true,
187
+
188
+ // allow body element to be stetched in ie6; this makes blocking look better
189
+ // on "short" pages. disable if you wish to prevent changes to the body height
190
+ allowBodyStretch: true,
191
+
192
+ // enable if you want key and mouse events to be disabled for content that is blocked
193
+ bindEvents: true,
194
+
195
+ // be default blockUI will supress tab navigation from leaving blocking content
196
+ // (if bindEvents is true)
197
+ constrainTabKey: true,
198
+
199
+ // fadeIn time in millis; set to 0 to disable fadeIn on block
200
+ fadeIn: 200,
201
+
202
+ // fadeOut time in millis; set to 0 to disable fadeOut on unblock
203
+ fadeOut: 400,
204
+
205
+ // time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock
206
+ timeout: 0,
207
+
208
+ // disable if you don't want to show the overlay
209
+ showOverlay: true,
210
+
211
+ // if true, focus will be placed in the first available input field when
212
+ // page blocking
213
+ focusInput: true,
214
+
215
+ // elements that can receive focus
216
+ focusableElements: ':input:enabled:visible',
217
+
218
+ // suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity)
219
+ // no longer needed in 2012
220
+ // applyPlatformOpacityRules: true,
221
+
222
+ // callback method invoked when fadeIn has completed and blocking message is visible
223
+ onBlock: null,
224
+
225
+ // callback method invoked when unblocking has completed; the callback is
226
+ // passed the element that has been unblocked (which is the window object for page
227
+ // blocks) and the options that were passed to the unblock call:
228
+ // onUnblock(element, options)
229
+ onUnblock: null,
230
+
231
+ // callback method invoked when the overlay area is clicked.
232
+ // setting this will turn the cursor to a pointer, otherwise cursor defined in overlayCss will be used.
233
+ onOverlayClick: null,
234
+
235
+ // don't ask; if you really must know: http://groups.google.com/group/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493
236
+ quirksmodeOffsetHack: 4,
237
+
238
+ // class name of the message block
239
+ blockMsgClass: 'blockMsg',
240
+
241
+ // if it is already blocked, then ignore it (don't unblock and reblock)
242
+ ignoreIfBlocked: false
243
+ };
244
+
245
+ // private data and functions follow...
246
+
247
+ var pageBlock = null;
248
+ var pageBlockEls = [];
249
+
250
+ function install(el, opts) {
251
+ var css, themedCSS;
252
+ var full = (el == window);
253
+ var msg = (opts && opts.message !== undefined ? opts.message : undefined);
254
+ opts = $.extend({}, $.blockUI.defaults, opts || {});
255
+
256
+ if (opts.ignoreIfBlocked && $(el).data('blockUI.isBlocked'))
257
+ return;
258
+
259
+ opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {});
260
+ css = $.extend({}, $.blockUI.defaults.css, opts.css || {});
261
+ if (opts.onOverlayClick)
262
+ opts.overlayCSS.cursor = 'pointer';
263
+
264
+ themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {});
265
+ msg = msg === undefined ? opts.message : msg;
266
+
267
+ // remove the current block (if there is one)
268
+ if (full && pageBlock)
269
+ remove(window, {fadeOut:0});
270
+
271
+ // if an existing element is being used as the blocking content then we capture
272
+ // its current place in the DOM (and current display style) so we can restore
273
+ // it when we unblock
274
+ if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) {
275
+ var node = msg.jquery ? msg[0] : msg;
276
+ var data = {};
277
+ $(el).data('blockUI.history', data);
278
+ data.el = node;
279
+ data.parent = node.parentNode;
280
+ data.display = node.style.display;
281
+ data.position = node.style.position;
282
+ if (data.parent)
283
+ data.parent.removeChild(node);
284
+ }
285
+
286
+ $(el).data('blockUI.onUnblock', opts.onUnblock);
287
+ var z = opts.baseZ;
288
+
289
+ // blockUI uses 3 layers for blocking, for simplicity they are all used on every platform;
290
+ // layer1 is the iframe layer which is used to supress bleed through of underlying content
291
+ // layer2 is the overlay layer which has opacity and a wait cursor (by default)
292
+ // layer3 is the message content that is displayed while blocking
293
+ var lyr1, lyr2, lyr3, s;
294
+ if (msie || opts.forceIframe)
295
+ lyr1 = $('<iframe class="blockUI" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>');
296
+ else
297
+ lyr1 = $('<div class="blockUI" style="display:none"></div>');
298
+
299
+ if (opts.theme)
300
+ lyr2 = $('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+ (z++) +';display:none"></div>');
301
+ else
302
+ lyr2 = $('<div class="blockUI blockOverlay" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
303
+
304
+ if (opts.theme && full) {
305
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:fixed">';
306
+ if ( opts.title ) {
307
+ s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || '&nbsp;')+'</div>';
308
+ }
309
+ s += '<div class="ui-widget-content ui-dialog-content"></div>';
310
+ s += '</div>';
311
+ }
312
+ else if (opts.theme) {
313
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:absolute">';
314
+ if ( opts.title ) {
315
+ s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || '&nbsp;')+'</div>';
316
+ }
317
+ s += '<div class="ui-widget-content ui-dialog-content"></div>';
318
+ s += '</div>';
319
+ }
320
+ else if (full) {
321
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage" style="z-index:'+(z+10)+';display:none;position:fixed"></div>';
322
+ }
323
+ else {
324
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement" style="z-index:'+(z+10)+';display:none;position:absolute"></div>';
325
+ }
326
+ lyr3 = $(s);
327
+
328
+ // if we have a message, style it
329
+ if (msg) {
330
+ if (opts.theme) {
331
+ lyr3.css(themedCSS);
332
+ lyr3.addClass('ui-widget-content');
333
+ }
334
+ else
335
+ lyr3.css(css);
336
+ }
337
+
338
+ // style the overlay
339
+ if (!opts.theme /*&& (!opts.applyPlatformOpacityRules)*/)
340
+ lyr2.css(opts.overlayCSS);
341
+ lyr2.css('position', full ? 'fixed' : 'absolute');
342
+
343
+ // make iframe layer transparent in IE
344
+ if (msie || opts.forceIframe)
345
+ lyr1.css('opacity',0.0);
346
+
347
+ //$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);
348
+ var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el);
349
+ $.each(layers, function() {
350
+ this.appendTo($par);
351
+ });
352
+
353
+ if (opts.theme && opts.draggable && $.fn.draggable) {
354
+ lyr3.draggable({
355
+ handle: '.ui-dialog-titlebar',
356
+ cancel: 'li'
357
+ });
358
+ }
359
+
360
+ // ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
361
+ var expr = setExpr && (!$.support.boxModel || $('object,embed', full ? null : el).length > 0);
362
+ if (ie6 || expr) {
363
+ // give body 100% height
364
+ if (full && opts.allowBodyStretch && $.support.boxModel)
365
+ $('html,body').css('height','100%');
366
+
367
+ // fix ie6 issue when blocked element has a border width
368
+ if ((ie6 || !$.support.boxModel) && !full) {
369
+ var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth');
370
+ var fixT = t ? '(0 - '+t+')' : 0;
371
+ var fixL = l ? '(0 - '+l+')' : 0;
372
+ }
373
+
374
+ // simulate fixed position
375
+ $.each(layers, function(i,o) {
376
+ var s = o[0].style;
377
+ s.position = 'absolute';
378
+ if (i < 2) {
379
+ if (full)
380
+ s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"');
381
+ else
382
+ s.setExpression('height','this.parentNode.offsetHeight + "px"');
383
+ if (full)
384
+ s.setExpression('width','jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"');
385
+ else
386
+ s.setExpression('width','this.parentNode.offsetWidth + "px"');
387
+ if (fixL) s.setExpression('left', fixL);
388
+ if (fixT) s.setExpression('top', fixT);
389
+ }
390
+ else if (opts.centerY) {
391
+ if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
392
+ s.marginTop = 0;
393
+ }
394
+ else if (!opts.centerY && full) {
395
+ var top = (opts.css && opts.css.top) ? parseInt(opts.css.top, 10) : 0;
396
+ var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';
397
+ s.setExpression('top',expression);
398
+ }
399
+ });
400
+ }
401
+
402
+ // show the message
403
+ if (msg) {
404
+ if (opts.theme)
405
+ lyr3.find('.ui-widget-content').append(msg);
406
+ else
407
+ lyr3.append(msg);
408
+ if (msg.jquery || msg.nodeType)
409
+ $(msg).show();
410
+ }
411
+
412
+ if ((msie || opts.forceIframe) && opts.showOverlay)
413
+ lyr1.show(); // opacity is zero
414
+ if (opts.fadeIn) {
415
+ var cb = opts.onBlock ? opts.onBlock : noOp;
416
+ var cb1 = (opts.showOverlay && !msg) ? cb : noOp;
417
+ var cb2 = msg ? cb : noOp;
418
+ if (opts.showOverlay)
419
+ lyr2._fadeIn(opts.fadeIn, cb1);
420
+ if (msg)
421
+ lyr3._fadeIn(opts.fadeIn, cb2);
422
+ }
423
+ else {
424
+ if (opts.showOverlay)
425
+ lyr2.show();
426
+ if (msg)
427
+ lyr3.show();
428
+ if (opts.onBlock)
429
+ opts.onBlock.bind(lyr3)();
430
+ }
431
+
432
+ // bind key and mouse events
433
+ bind(1, el, opts);
434
+
435
+ if (full) {
436
+ pageBlock = lyr3[0];
437
+ pageBlockEls = $(opts.focusableElements,pageBlock);
438
+ if (opts.focusInput)
439
+ setTimeout(focus, 20);
440
+ }
441
+ else
442
+ center(lyr3[0], opts.centerX, opts.centerY);
443
+
444
+ if (opts.timeout) {
445
+ // auto-unblock
446
+ var to = setTimeout(function() {
447
+ if (full)
448
+ $.unblockUI(opts);
449
+ else
450
+ $(el).unblock(opts);
451
+ }, opts.timeout);
452
+ $(el).data('blockUI.timeout', to);
453
+ }
454
+ }
455
+
456
+ // remove the block
457
+ function remove(el, opts) {
458
+ var count;
459
+ var full = (el == window);
460
+ var $el = $(el);
461
+ var data = $el.data('blockUI.history');
462
+ var to = $el.data('blockUI.timeout');
463
+ if (to) {
464
+ clearTimeout(to);
465
+ $el.removeData('blockUI.timeout');
466
+ }
467
+ opts = $.extend({}, $.blockUI.defaults, opts || {});
468
+ bind(0, el, opts); // unbind events
469
+
470
+ if (opts.onUnblock === null) {
471
+ opts.onUnblock = $el.data('blockUI.onUnblock');
472
+ $el.removeData('blockUI.onUnblock');
473
+ }
474
+
475
+ var els;
476
+ if (full) // crazy selector to handle odd field errors in ie6/7
477
+ els = $('body').children().filter('.blockUI').add('body > .blockUI');
478
+ else
479
+ els = $el.find('>.blockUI');
480
+
481
+ // fix cursor issue
482
+ if ( opts.cursorReset ) {
483
+ if ( els.length > 1 )
484
+ els[1].style.cursor = opts.cursorReset;
485
+ if ( els.length > 2 )
486
+ els[2].style.cursor = opts.cursorReset;
487
+ }
488
+
489
+ if (full)
490
+ pageBlock = pageBlockEls = null;
491
+
492
+ if (opts.fadeOut) {
493
+ count = els.length;
494
+ els.stop().fadeOut(opts.fadeOut, function() {
495
+ if ( --count === 0)
496
+ reset(els,data,opts,el);
497
+ });
498
+ }
499
+ else
500
+ reset(els, data, opts, el);
501
+ }
502
+
503
+ // move blocking element back into the DOM where it started
504
+ function reset(els,data,opts,el) {
505
+ var $el = $(el);
506
+ if ( $el.data('blockUI.isBlocked') )
507
+ return;
508
+
509
+ els.each(function(i,o) {
510
+ // remove via DOM calls so we don't lose event handlers
511
+ if (this.parentNode)
512
+ this.parentNode.removeChild(this);
513
+ });
514
+
515
+ if (data && data.el) {
516
+ data.el.style.display = data.display;
517
+ data.el.style.position = data.position;
518
+ data.el.style.cursor = 'default'; // #59
519
+ if (data.parent)
520
+ data.parent.appendChild(data.el);
521
+ $el.removeData('blockUI.history');
522
+ }
523
+
524
+ if ($el.data('blockUI.static')) {
525
+ $el.css('position', 'static'); // #22
526
+ }
527
+
528
+ if (typeof opts.onUnblock == 'function')
529
+ opts.onUnblock(el,opts);
530
+
531
+ // fix issue in Safari 6 where block artifacts remain until reflow
532
+ var body = $(document.body), w = body.width(), cssW = body[0].style.width;
533
+ body.width(w-1).width(w);
534
+ body[0].style.width = cssW;
535
+ }
536
+
537
+ // bind/unbind the handler
538
+ function bind(b, el, opts) {
539
+ var full = el == window, $el = $(el);
540
+
541
+ // don't bother unbinding if there is nothing to unbind
542
+ if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
543
+ return;
544
+
545
+ $el.data('blockUI.isBlocked', b);
546
+
547
+ // don't bind events when overlay is not in use or if bindEvents is false
548
+ if (!full || !opts.bindEvents || (b && !opts.showOverlay))
549
+ return;
550
+
551
+ // bind anchors and inputs for mouse and key events
552
+ var events = 'mousedown mouseup keydown keypress keyup touchstart touchend touchmove';
553
+ if (b)
554
+ $(document).bind(events, opts, handler);
555
+ else
556
+ $(document).unbind(events, handler);
557
+
558
+ // former impl...
559
+ // var $e = $('a,:input');
560
+ // b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);
561
+ }
562
+
563
+ // event handler to suppress keyboard/mouse events when blocking
564
+ function handler(e) {
565
+ // allow tab navigation (conditionally)
566
+ if (e.type === 'keydown' && e.keyCode && e.keyCode == 9) {
567
+ if (pageBlock && e.data.constrainTabKey) {
568
+ var els = pageBlockEls;
569
+ var fwd = !e.shiftKey && e.target === els[els.length-1];
570
+ var back = e.shiftKey && e.target === els[0];
571
+ if (fwd || back) {
572
+ setTimeout(function(){focus(back);},10);
573
+ return false;
574
+ }
575
+ }
576
+ }
577
+ var opts = e.data;
578
+ var target = $(e.target);
579
+ if (target.hasClass('blockOverlay') && opts.onOverlayClick)
580
+ opts.onOverlayClick(e);
581
+
582
+ // allow events within the message content
583
+ if (target.parents('div.' + opts.blockMsgClass).length > 0)
584
+ return true;
585
+
586
+ // allow events for content that is not being blocked
587
+ return target.parents().children().filter('div.blockUI').length === 0;
588
+ }
589
+
590
+ function focus(back) {
591
+ if (!pageBlockEls)
592
+ return;
593
+ var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0];
594
+ if (e)
595
+ e.focus();
596
+ }
597
+
598
+ function center(el, x, y) {
599
+ var p = el.parentNode, s = el.style;
600
+ var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth');
601
+ var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth');
602
+ if (x) s.left = l > 0 ? (l+'px') : '0';
603
+ if (y) s.top = t > 0 ? (t+'px') : '0';
604
+ }
605
+
606
+ function sz(el, p) {
607
+ return parseInt($.css(el,p),10)||0;
608
+ }
609
+
610
+ }
611
+
612
+
613
+ /*global define:true */
614
+ if (typeof define === 'function' && define.amd && define.amd.jQuery) {
615
+ define(['jquery'], setup);
616
+ } else {
617
+ setup(jQuery);
618
+ }
619
+
620
+ })();
assets/js/plugins/jquery.blockUI.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !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)}();
assets/js/plugins/jquery.flot.js ADDED
@@ -0,0 +1,3168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Javascript plotting library for jQuery, version 0.8.3.
2
+
3
+ Copyright (c) 2007-2014 IOLA and Ole Laursen.
4
+ Licensed under the MIT license.
5
+
6
+ */
7
+
8
+ // first an inline dependency, jquery.colorhelpers.js, we inline it here
9
+ // for convenience
10
+
11
+ /* Plugin for jQuery for working with colors.
12
+ *
13
+ * Version 1.1.
14
+ *
15
+ * Inspiration from jQuery color animation plugin by John Resig.
16
+ *
17
+ * Released under the MIT license by Ole Laursen, October 2009.
18
+ *
19
+ * Examples:
20
+ *
21
+ * $.color.parse("#fff").scale('rgb', 0.25).add('a', -0.5).toString()
22
+ * var c = $.color.extract($("#mydiv"), 'background-color');
23
+ * console.log(c.r, c.g, c.b, c.a);
24
+ * $.color.make(100, 50, 25, 0.4).toString() // returns "rgba(100,50,25,0.4)"
25
+ *
26
+ * Note that .scale() and .add() return the same modified object
27
+ * instead of making a new one.
28
+ *
29
+ * V. 1.1: Fix error handling so e.g. parsing an empty string does
30
+ * produce a color rather than just crashing.
31
+ */
32
+ (function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o.add=function(c,d){for(var i=0;i<c.length;++i)o[c.charAt(i)]+=d;return o.normalize()};o.scale=function(c,f){for(var i=0;i<c.length;++i)o[c.charAt(i)]*=f;return o.normalize()};o.toString=function(){if(o.a>=1){return"rgb("+[o.r,o.g,o.b].join(",")+")"}else{return"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"}};o.normalize=function(){function clamp(min,value,max){return value<min?min:value>max?max:value}o.r=clamp(0,parseInt(o.r),255);o.g=clamp(0,parseInt(o.g),255);o.b=clamp(0,parseInt(o.b),255);o.a=clamp(0,o.a,1);return o};o.clone=function(){return $.color.make(o.r,o.b,o.g,o.a)};return o.normalize()};$.color.extract=function(elem,css){var c;do{c=elem.css(css).toLowerCase();if(c!=""&&c!="transparent")break;elem=elem.parent()}while(elem.length&&!$.nodeName(elem.get(0),"body"));if(c=="rgba(0, 0, 0, 0)")c="transparent";return $.color.parse(c)};$.color.parse=function(str){var res,m=$.color.make;if(res=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10));if(res=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10),parseFloat(res[4]));if(res=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55);if(res=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55,parseFloat(res[4]));if(res=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(str))return m(parseInt(res[1],16),parseInt(res[2],16),parseInt(res[3],16));if(res=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(str))return m(parseInt(res[1]+res[1],16),parseInt(res[2]+res[2],16),parseInt(res[3]+res[3],16));var name=$.trim(str).toLowerCase();if(name=="transparent")return m(255,255,255,0);else{res=lookupColors[name]||[0,0,0];return m(res[0],res[1],res[2])}};var lookupColors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);
33
+
34
+ // the actual Flot code
35
+ (function($) {
36
+
37
+ // Cache the prototype hasOwnProperty for faster access
38
+
39
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
40
+
41
+ // A shim to provide 'detach' to jQuery versions prior to 1.4. Using a DOM
42
+ // operation produces the same effect as detach, i.e. removing the element
43
+ // without touching its jQuery data.
44
+
45
+ // Do not merge this into Flot 0.9, since it requires jQuery 1.4.4+.
46
+
47
+ if (!$.fn.detach) {
48
+ $.fn.detach = function() {
49
+ return this.each(function() {
50
+ if (this.parentNode) {
51
+ this.parentNode.removeChild( this );
52
+ }
53
+ });
54
+ };
55
+ }
56
+
57
+ ///////////////////////////////////////////////////////////////////////////
58
+ // The Canvas object is a wrapper around an HTML5 <canvas> tag.
59
+ //
60
+ // @constructor
61
+ // @param {string} cls List of classes to apply to the canvas.
62
+ // @param {element} container Element onto which to append the canvas.
63
+ //
64
+ // Requiring a container is a little iffy, but unfortunately canvas
65
+ // operations don't work unless the canvas is attached to the DOM.
66
+
67
+ function Canvas(cls, container) {
68
+
69
+ var element = container.children("." + cls)[0];
70
+
71
+ if (element == null) {
72
+
73
+ element = document.createElement("canvas");
74
+ element.className = cls;
75
+
76
+ $(element).css({ direction: "ltr", position: "absolute", left: 0, top: 0 })
77
+ .appendTo(container);
78
+
79
+ // If HTML5 Canvas isn't available, fall back to [Ex|Flash]canvas
80
+
81
+ if (!element.getContext) {
82
+ if (window.G_vmlCanvasManager) {
83
+ element = window.G_vmlCanvasManager.initElement(element);
84
+ } else {
85
+ throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");
86
+ }
87
+ }
88
+ }
89
+
90
+ this.element = element;
91
+
92
+ var context = this.context = element.getContext("2d");
93
+
94
+ // Determine the screen's ratio of physical to device-independent
95
+ // pixels. This is the ratio between the canvas width that the browser
96
+ // advertises and the number of pixels actually present in that space.
97
+
98
+ // The iPhone 4, for example, has a device-independent width of 320px,
99
+ // but its screen is actually 640px wide. It therefore has a pixel
100
+ // ratio of 2, while most normal devices have a ratio of 1.
101
+
102
+ var devicePixelRatio = window.devicePixelRatio || 1,
103
+ backingStoreRatio =
104
+ context.webkitBackingStorePixelRatio ||
105
+ context.mozBackingStorePixelRatio ||
106
+ context.msBackingStorePixelRatio ||
107
+ context.oBackingStorePixelRatio ||
108
+ context.backingStorePixelRatio || 1;
109
+
110
+ this.pixelRatio = devicePixelRatio / backingStoreRatio;
111
+
112
+ // Size the canvas to match the internal dimensions of its container
113
+
114
+ this.resize(container.width(), container.height());
115
+
116
+ // Collection of HTML div layers for text overlaid onto the canvas
117
+
118
+ this.textContainer = null;
119
+ this.text = {};
120
+
121
+ // Cache of text fragments and metrics, so we can avoid expensively
122
+ // re-calculating them when the plot is re-rendered in a loop.
123
+
124
+ this._textCache = {};
125
+ }
126
+
127
+ // Resizes the canvas to the given dimensions.
128
+ //
129
+ // @param {number} width New width of the canvas, in pixels.
130
+ // @param {number} width New height of the canvas, in pixels.
131
+
132
+ Canvas.prototype.resize = function(width, height) {
133
+
134
+ if (width <= 0 || height <= 0) {
135
+ throw new Error("Invalid dimensions for plot, width = " + width + ", height = " + height);
136
+ }
137
+
138
+ var element = this.element,
139
+ context = this.context,
140
+ pixelRatio = this.pixelRatio;
141
+
142
+ // Resize the canvas, increasing its density based on the display's
143
+ // pixel ratio; basically giving it more pixels without increasing the
144
+ // size of its element, to take advantage of the fact that retina
145
+ // displays have that many more pixels in the same advertised space.
146
+
147
+ // Resizing should reset the state (excanvas seems to be buggy though)
148
+
149
+ if (this.width != width) {
150
+ element.width = width * pixelRatio;
151
+ element.style.width = width + "px";
152
+ this.width = width;
153
+ }
154
+
155
+ if (this.height != height) {
156
+ element.height = height * pixelRatio;
157
+ element.style.height = height + "px";
158
+ this.height = height;
159
+ }
160
+
161
+ // Save the context, so we can reset in case we get replotted. The
162
+ // restore ensure that we're really back at the initial state, and
163
+ // should be safe even if we haven't saved the initial state yet.
164
+
165
+ context.restore();
166
+ context.save();
167
+
168
+ // Scale the coordinate space to match the display density; so even though we
169
+ // may have twice as many pixels, we still want lines and other drawing to
170
+ // appear at the same size; the extra pixels will just make them crisper.
171
+
172
+ context.scale(pixelRatio, pixelRatio);
173
+ };
174
+
175
+ // Clears the entire canvas area, not including any overlaid HTML text
176
+
177
+ Canvas.prototype.clear = function() {
178
+ this.context.clearRect(0, 0, this.width, this.height);
179
+ };
180
+
181
+ // Finishes rendering the canvas, including managing the text overlay.
182
+
183
+ Canvas.prototype.render = function() {
184
+
185
+ var cache = this._textCache;
186
+
187
+ // For each text layer, add elements marked as active that haven't
188
+ // already been rendered, and remove those that are no longer active.
189
+
190
+ for (var layerKey in cache) {
191
+ if (hasOwnProperty.call(cache, layerKey)) {
192
+
193
+ var layer = this.getTextLayer(layerKey),
194
+ layerCache = cache[layerKey];
195
+
196
+ layer.hide();
197
+
198
+ for (var styleKey in layerCache) {
199
+ if (hasOwnProperty.call(layerCache, styleKey)) {
200
+ var styleCache = layerCache[styleKey];
201
+ for (var key in styleCache) {
202
+ if (hasOwnProperty.call(styleCache, key)) {
203
+
204
+ var positions = styleCache[key].positions;
205
+
206
+ for (var i = 0, position; position = positions[i]; i++) {
207
+ if (position.active) {
208
+ if (!position.rendered) {
209
+ layer.append(position.element);
210
+ position.rendered = true;
211
+ }
212
+ } else {
213
+ positions.splice(i--, 1);
214
+ if (position.rendered) {
215
+ position.element.detach();
216
+ }
217
+ }
218
+ }
219
+
220
+ if (positions.length == 0) {
221
+ delete styleCache[key];
222
+ }
223
+ }
224
+ }
225
+ }
226
+ }
227
+
228
+ layer.show();
229
+ }
230
+ }
231
+ };
232
+
233
+ // Creates (if necessary) and returns the text overlay container.
234
+ //
235
+ // @param {string} classes String of space-separated CSS classes used to
236
+ // uniquely identify the text layer.
237
+ // @return {object} The jQuery-wrapped text-layer div.
238
+
239
+ Canvas.prototype.getTextLayer = function(classes) {
240
+
241
+ var layer = this.text[classes];
242
+
243
+ // Create the text layer if it doesn't exist
244
+
245
+ if (layer == null) {
246
+
247
+ // Create the text layer container, if it doesn't exist
248
+
249
+ if (this.textContainer == null) {
250
+ this.textContainer = $("<div class='flot-text'></div>")
251
+ .css({
252
+ position: "absolute",
253
+ top: 0,
254
+ left: 0,
255
+ bottom: 0,
256
+ right: 0,
257
+ 'font-size': "smaller",
258
+ color: "#545454"
259
+ })
260
+ .insertAfter(this.element);
261
+ }
262
+
263
+ layer = this.text[classes] = $("<div></div>")
264
+ .addClass(classes)
265
+ .css({
266
+ position: "absolute",
267
+ top: 0,
268
+ left: 0,
269
+ bottom: 0,
270
+ right: 0
271
+ })
272
+ .appendTo(this.textContainer);
273
+ }
274
+
275
+ return layer;
276
+ };
277
+
278
+ // Creates (if necessary) and returns a text info object.
279
+ //
280
+ // The object looks like this:
281
+ //
282
+ // {
283
+ // width: Width of the text's wrapper div.
284
+ // height: Height of the text's wrapper div.
285
+ // element: The jQuery-wrapped HTML div containing the text.
286
+ // positions: Array of positions at which this text is drawn.
287
+ // }
288
+ //
289
+ // The positions array contains objects that look like this:
290
+ //
291
+ // {
292
+ // active: Flag indicating whether the text should be visible.
293
+ // rendered: Flag indicating whether the text is currently visible.
294
+ // element: The jQuery-wrapped HTML div containing the text.
295
+ // x: X coordinate at which to draw the text.
296
+ // y: Y coordinate at which to draw the text.
297
+ // }
298
+ //
299
+ // Each position after the first receives a clone of the original element.
300
+ //
301
+ // The idea is that that the width, height, and general 'identity' of the
302
+ // text is constant no matter where it is placed; the placements are a
303
+ // secondary property.
304
+ //
305
+ // Canvas maintains a cache of recently-used text info objects; getTextInfo
306
+ // either returns the cached element or creates a new entry.
307
+ //
308
+ // @param {string} layer A string of space-separated CSS classes uniquely
309
+ // identifying the layer containing this text.
310
+ // @param {string} text Text string to retrieve info for.
311
+ // @param {(string|object)=} font Either a string of space-separated CSS
312
+ // classes or a font-spec object, defining the text's font and style.
313
+ // @param {number=} angle Angle at which to rotate the text, in degrees.
314
+ // Angle is currently unused, it will be implemented in the future.
315
+ // @param {number=} width Maximum width of the text before it wraps.
316
+ // @return {object} a text info object.
317
+
318
+ Canvas.prototype.getTextInfo = function(layer, text, font, angle, width) {
319
+
320
+ var textStyle, layerCache, styleCache, info;
321
+
322
+ // Cast the value to a string, in case we were given a number or such
323
+
324
+ text = "" + text;
325
+
326
+ // If the font is a font-spec object, generate a CSS font definition
327
+
328
+ if (typeof font === "object") {
329
+ textStyle = font.style + " " + font.variant + " " + font.weight + " " + font.size + "px/" + font.lineHeight + "px " + font.family;
330
+ } else {
331
+ textStyle = font;
332
+ }
333
+
334
+ // Retrieve (or create) the cache for the text's layer and styles
335
+
336
+ layerCache = this._textCache[layer];
337
+
338
+ if (layerCache == null) {
339
+ layerCache = this._textCache[layer] = {};
340
+ }
341
+
342
+ styleCache = layerCache[textStyle];
343
+
344
+ if (styleCache == null) {
345
+ styleCache = layerCache[textStyle] = {};
346
+ }
347
+
348
+ info = styleCache[text];
349
+
350
+ // If we can't find a matching element in our cache, create a new one
351
+
352
+ if (info == null) {
353
+
354
+ var element = $("<div></div>").html(text)
355
+ .css({
356
+ position: "absolute",
357
+ 'max-width': width,
358
+ top: -9999
359
+ })
360
+ .appendTo(this.getTextLayer(layer));
361
+
362
+ if (typeof font === "object") {
363
+ element.css({
364
+ font: textStyle,
365
+ color: font.color
366
+ });
367
+ } else if (typeof font === "string") {
368
+ element.addClass(font);
369
+ }
370
+
371
+ info = styleCache[text] = {
372
+ width: element.outerWidth(true),
373
+ height: element.outerHeight(true),
374
+ element: element,
375
+ positions: []
376
+ };
377
+
378
+ element.detach();
379
+ }
380
+
381
+ return info;
382
+ };
383
+
384
+ // Adds a text string to the canvas text overlay.
385
+ //
386
+ // The text isn't drawn immediately; it is marked as rendering, which will
387
+ // result in its addition to the canvas on the next render pass.
388
+ //
389
+ // @param {string} layer A string of space-separated CSS classes uniquely
390
+ // identifying the layer containing this text.
391
+ // @param {number} x X coordinate at which to draw the text.
392
+ // @param {number} y Y coordinate at which to draw the text.
393
+ // @param {string} text Text string to draw.
394
+ // @param {(string|object)=} font Either a string of space-separated CSS
395
+ // classes or a font-spec object, defining the text's font and style.
396
+ // @param {number=} angle Angle at which to rotate the text, in degrees.
397
+ // Angle is currently unused, it will be implemented in the future.
398
+ // @param {number=} width Maximum width of the text before it wraps.
399
+ // @param {string=} halign Horizontal alignment of the text; either "left",
400
+ // "center" or "right".
401
+ // @param {string=} valign Vertical alignment of the text; either "top",
402
+ // "middle" or "bottom".
403
+
404
+ Canvas.prototype.addText = function(layer, x, y, text, font, angle, width, halign, valign) {
405
+
406
+ var info = this.getTextInfo(layer, text, font, angle, width),
407
+ positions = info.positions;
408
+
409
+ // Tweak the div's position to match the text's alignment
410
+
411
+ if (halign == "center") {
412
+ x -= info.width / 2;
413
+ } else if (halign == "right") {
414
+ x -= info.width;
415
+ }
416
+
417
+ if (valign == "middle") {
418
+ y -= info.height / 2;
419
+ } else if (valign == "bottom") {
420
+ y -= info.height;
421
+ }
422
+
423
+ // Determine whether this text already exists at this position.
424
+ // If so, mark it for inclusion in the next render pass.
425
+
426
+ for (var i = 0, position; position = positions[i]; i++) {
427
+ if (position.x == x && position.y == y) {
428
+ position.active = true;
429
+ return;
430
+ }
431
+ }
432
+
433
+ // If the text doesn't exist at this position, create a new entry
434
+
435
+ // For the very first position we'll re-use the original element,
436
+ // while for subsequent ones we'll clone it.
437
+
438
+ position = {
439
+ active: true,
440
+ rendered: false,
441
+ element: positions.length ? info.element.clone() : info.element,
442
+ x: x,
443
+ y: y
444
+ };
445
+
446
+ positions.push(position);
447
+
448
+ // Move the element to its final position within the container
449
+
450
+ position.element.css({
451
+ top: Math.round(y),
452
+ left: Math.round(x),
453
+ 'text-align': halign // In case the text wraps
454
+ });
455
+ };
456
+
457
+ // Removes one or more text strings from the canvas text overlay.
458
+ //
459
+ // If no parameters are given, all text within the layer is removed.
460
+ //
461
+ // Note that the text is not immediately removed; it is simply marked as
462
+ // inactive, which will result in its removal on the next render pass.
463
+ // This avoids the performance penalty for 'clear and redraw' behavior,
464
+ // where we potentially get rid of all text on a layer, but will likely
465
+ // add back most or all of it later, as when redrawing axes, for example.
466
+ //
467
+ // @param {string} layer A string of space-separated CSS classes uniquely
468
+ // identifying the layer containing this text.
469
+ // @param {number=} x X coordinate of the text.
470
+ // @param {number=} y Y coordinate of the text.
471
+ // @param {string=} text Text string to remove.
472
+ // @param {(string|object)=} font Either a string of space-separated CSS
473
+ // classes or a font-spec object, defining the text's font and style.
474
+ // @param {number=} angle Angle at which the text is rotated, in degrees.
475
+ // Angle is currently unused, it will be implemented in the future.
476
+
477
+ Canvas.prototype.removeText = function(layer, x, y, text, font, angle) {
478
+ if (text == null) {
479
+ var layerCache = this._textCache[layer];
480
+ if (layerCache != null) {
481
+ for (var styleKey in layerCache) {
482
+ if (hasOwnProperty.call(layerCache, styleKey)) {
483
+ var styleCache = layerCache[styleKey];
484
+ for (var key in styleCache) {
485
+ if (hasOwnProperty.call(styleCache, key)) {
486
+ var positions = styleCache[key].positions;
487
+ for (var i = 0, position; position = positions[i]; i++) {
488
+ position.active = false;
489
+ }
490
+ }
491
+ }
492
+ }
493
+ }
494
+ }
495
+ } else {
496
+ var positions = this.getTextInfo(layer, text, font, angle).positions;
497
+ for (var i = 0, position; position = positions[i]; i++) {
498
+ if (position.x == x && position.y == y) {
499
+ position.active = false;
500
+ }
501
+ }
502
+ }
503
+ };
504
+
505
+ ///////////////////////////////////////////////////////////////////////////
506
+ // The top-level container for the entire plot.
507
+
508
+ function Plot(placeholder, data_, options_, plugins) {
509
+ // data is on the form:
510
+ // [ series1, series2 ... ]
511
+ // where series is either just the data as [ [x1, y1], [x2, y2], ... ]
512
+ // or { data: [ [x1, y1], [x2, y2], ... ], label: "some label", ... }
513
+
514
+ var series = [],
515
+ options = {
516
+ // the color theme used for graphs
517
+ colors: ["#edc240", "#afd8f8", "#cb4b4b", "#4da74d", "#9440ed"],
518
+ legend: {
519
+ show: true,
520
+ noColumns: 1, // number of colums in legend table
521
+ labelFormatter: null, // fn: string -> string
522
+ labelBoxBorderColor: "#ccc", // border color for the little label boxes
523
+ container: null, // container (as jQuery object) to put legend in, null means default on top of graph
524
+ position: "ne", // position of default legend container within plot
525
+ margin: 5, // distance from grid edge to default legend container within plot
526
+ backgroundColor: null, // null means auto-detect
527
+ backgroundOpacity: 0.85, // set to 0 to avoid background
528
+ sorted: null // default to no legend sorting
529
+ },
530
+ xaxis: {
531
+ show: null, // null = auto-detect, true = always, false = never
532
+ position: "bottom", // or "top"
533
+ mode: null, // null or "time"
534
+ font: null, // null (derived from CSS in placeholder) or object like { size: 11, lineHeight: 13, style: "italic", weight: "bold", family: "sans-serif", variant: "small-caps" }
535
+ color: null, // base color, labels, ticks
536
+ tickColor: null, // possibly different color of ticks, e.g. "rgba(0,0,0,0.15)"
537
+ transform: null, // null or f: number -> number to transform axis
538
+ inverseTransform: null, // if transform is set, this should be the inverse function
539
+ min: null, // min. value to show, null means set automatically
540
+ max: null, // max. value to show, null means set automatically
541
+ autoscaleMargin: null, // margin in % to add if auto-setting min/max
542
+ ticks: null, // either [1, 3] or [[1, "a"], 3] or (fn: axis info -> ticks) or app. number of ticks for auto-ticks
543
+ tickFormatter: null, // fn: number -> string
544
+ labelWidth: null, // size of tick labels in pixels
545
+ labelHeight: null,
546
+ reserveSpace: null, // whether to reserve space even if axis isn't shown
547
+ tickLength: null, // size in pixels of ticks, or "full" for whole line
548
+ alignTicksWithAxis: null, // axis number or null for no sync
549
+ tickDecimals: null, // no. of decimals, null means auto
550
+ tickSize: null, // number or [number, "unit"]
551
+ minTickSize: null // number or [number, "unit"]
552
+ },
553
+ yaxis: {
554
+ autoscaleMargin: 0.02,
555
+ position: "left" // or "right"
556
+ },
557
+ xaxes: [],
558
+ yaxes: [],
559
+ series: {
560
+ points: {
561
+ show: false,
562
+ radius: 3,
563
+ lineWidth: 2, // in pixels
564
+ fill: true,
565
+ fillColor: "#ffffff",
566
+ symbol: "circle" // or callback
567
+ },
568
+ lines: {
569
+ // we don't put in show: false so we can see
570
+ // whether lines were actively disabled
571
+ lineWidth: 2, // in pixels
572
+ fill: false,
573
+ fillColor: null,
574
+ steps: false
575
+ // Omit 'zero', so we can later default its value to
576
+ // match that of the 'fill' option.
577
+ },
578
+ bars: {
579
+ show: false,
580
+ lineWidth: 2, // in pixels
581
+ barWidth: 1, // in units of the x axis
582
+ fill: true,
583
+ fillColor: null,
584
+ align: "left", // "left", "right", or "center"
585
+ horizontal: false,
586
+ zero: true
587
+ },
588
+ shadowSize: 3,
589
+ highlightColor: null
590
+ },
591
+ grid: {
592
+ show: true,
593
+ aboveData: false,
594
+ color: "#545454", // primary color used for outline and labels
595
+ backgroundColor: null, // null for transparent, else color
596
+ borderColor: null, // set if different from the grid color
597
+ tickColor: null, // color for the ticks, e.g. "rgba(0,0,0,0.15)"
598
+ margin: 0, // distance from the canvas edge to the grid
599
+ labelMargin: 5, // in pixels
600
+ axisMargin: 8, // in pixels
601
+ borderWidth: 2, // in pixels
602
+ minBorderMargin: null, // in pixels, null means taken from points radius
603
+ markings: null, // array of ranges or fn: axes -> array of ranges
604
+ markingsColor: "#f4f4f4",
605
+ markingsLineWidth: 2,
606
+ // interactive stuff
607
+ clickable: false,
608
+ hoverable: false,
609
+ autoHighlight: true, // highlight in case mouse is near
610
+ mouseActiveRadius: 10 // how far the mouse can be away to activate an item
611
+ },
612
+ interaction: {
613
+ redrawOverlayInterval: 1000/60 // time between updates, -1 means in same flow
614
+ },
615
+ hooks: {}
616
+ },
617
+ surface = null, // the canvas for the plot itself
618
+ overlay = null, // canvas for interactive stuff on top of plot
619
+ eventHolder = null, // jQuery object that events should be bound to
620
+ ctx = null, octx = null,
621
+ xaxes = [], yaxes = [],
622
+ plotOffset = { left: 0, right: 0, top: 0, bottom: 0},
623
+ plotWidth = 0, plotHeight = 0,
624
+ hooks = {
625
+ processOptions: [],
626
+ processRawData: [],
627
+ processDatapoints: [],
628
+ processOffset: [],
629
+ drawBackground: [],
630
+ drawSeries: [],
631
+ draw: [],
632
+ bindEvents: [],
633
+ drawOverlay: [],
634
+ shutdown: []
635
+ },
636
+ plot = this;
637
+
638
+ // public functions
639
+ plot.setData = setData;
640
+ plot.setupGrid = setupGrid;
641
+ plot.draw = draw;
642
+ plot.getPlaceholder = function() { return placeholder; };
643
+ plot.getCanvas = function() { return surface.element; };
644
+ plot.getPlotOffset = function() { return plotOffset; };
645
+ plot.width = function () { return plotWidth; };
646
+ plot.height = function () { return plotHeight; };
647
+ plot.offset = function () {
648
+ var o = eventHolder.offset();
649
+ o.left += plotOffset.left;
650
+ o.top += plotOffset.top;
651
+ return o;
652
+ };
653
+ plot.getData = function () { return series; };
654
+ plot.getAxes = function () {
655
+ var res = {}, i;
656
+ $.each(xaxes.concat(yaxes), function (_, axis) {
657
+ if (axis)
658
+ res[axis.direction + (axis.n != 1 ? axis.n : "") + "axis"] = axis;
659
+ });
660
+ return res;
661
+ };
662
+ plot.getXAxes = function () { return xaxes; };
663
+ plot.getYAxes = function () { return yaxes; };
664
+ plot.c2p = canvasToAxisCoords;
665
+ plot.p2c = axisToCanvasCoords;
666
+ plot.getOptions = function () { return options; };
667
+ plot.highlight = highlight;
668
+ plot.unhighlight = unhighlight;
669
+ plot.triggerRedrawOverlay = triggerRedrawOverlay;
670
+ plot.pointOffset = function(point) {
671
+ return {
672
+ left: parseInt(xaxes[axisNumber(point, "x") - 1].p2c(+point.x) + plotOffset.left, 10),
673
+ top: parseInt(yaxes[axisNumber(point, "y") - 1].p2c(+point.y) + plotOffset.top, 10)
674
+ };
675
+ };
676
+ plot.shutdown = shutdown;
677
+ plot.destroy = function () {
678
+ shutdown();
679
+ placeholder.removeData("plot").empty();
680
+
681
+ series = [];
682
+ options = null;
683
+ surface = null;
684
+ overlay = null;
685
+ eventHolder = null;
686
+ ctx = null;
687
+ octx = null;
688
+ xaxes = [];
689
+ yaxes = [];
690
+ hooks = null;
691
+ highlights = [];
692
+ plot = null;
693
+ };
694
+ plot.resize = function () {
695
+ var width = placeholder.width(),
696
+ height = placeholder.height();
697
+ surface.resize(width, height);
698
+ overlay.resize(width, height);
699
+ };
700
+
701
+ // public attributes
702
+ plot.hooks = hooks;
703
+
704
+ // initialize
705
+ initPlugins(plot);
706
+ parseOptions(options_);
707
+ setupCanvases();
708
+ setData(data_);
709
+ setupGrid();
710
+ draw();
711
+ bindEvents();
712
+
713
+
714
+ function executeHooks(hook, args) {
715
+ args = [plot].concat(args);
716
+ for (var i = 0; i < hook.length; ++i)
717
+ hook[i].apply(this, args);
718
+ }
719
+
720
+ function initPlugins() {
721
+
722
+ // References to key classes, allowing plugins to modify them
723
+
724
+ var classes = {
725
+ Canvas: Canvas
726
+ };
727
+
728
+ for (var i = 0; i < plugins.length; ++i) {
729
+ var p = plugins[i];
730
+ p.init(plot, classes);
731
+ if (p.options)
732
+ $.extend(true, options, p.options);
733
+ }
734
+ }
735
+
736
+ function parseOptions(opts) {
737
+
738
+ $.extend(true, options, opts);
739
+
740
+ // $.extend merges arrays, rather than replacing them. When less
741
+ // colors are provided than the size of the default palette, we
742
+ // end up with those colors plus the remaining defaults, which is
743
+ // not expected behavior; avoid it by replacing them here.
744
+
745
+ if (opts && opts.colors) {
746
+ options.colors = opts.colors;
747
+ }
748
+
749
+ if (options.xaxis.color == null)
750
+ options.xaxis.color = $.color.parse(options.grid.color).scale('a', 0.22).toString();
751
+ if (options.yaxis.color == null)
752
+ options.yaxis.color = $.color.parse(options.grid.color).scale('a', 0.22).toString();
753
+
754
+ if (options.xaxis.tickColor == null) // grid.tickColor for back-compatibility
755
+ options.xaxis.tickColor = options.grid.tickColor || options.xaxis.color;
756
+ if (options.yaxis.tickColor == null) // grid.tickColor for back-compatibility
757
+ options.yaxis.tickColor = options.grid.tickColor || options.yaxis.color;
758
+
759
+ if (options.grid.borderColor == null)
760
+ options.grid.borderColor = options.grid.color;
761
+ if (options.grid.tickColor == null)
762
+ options.grid.tickColor = $.color.parse(options.grid.color).scale('a', 0.22).toString();
763
+
764
+ // Fill in defaults for axis options, including any unspecified
765
+ // font-spec fields, if a font-spec was provided.
766
+
767
+ // If no x/y axis options were provided, create one of each anyway,
768
+ // since the rest of the code assumes that they exist.
769
+
770
+ var i, axisOptions, axisCount,
771
+ fontSize = placeholder.css("font-size"),
772
+ fontSizeDefault = fontSize ? +fontSize.replace("px", "") : 13,
773
+ fontDefaults = {
774
+ style: placeholder.css("font-style"),
775
+ size: Math.round(0.8 * fontSizeDefault),
776
+ variant: placeholder.css("font-variant"),
777
+ weight: placeholder.css("font-weight"),
778
+ family: placeholder.css("font-family")
779
+ };
780
+
781
+ axisCount = options.xaxes.length || 1;
782
+ for (i = 0; i < axisCount; ++i) {
783
+
784
+ axisOptions = options.xaxes[i];
785
+ if (axisOptions && !axisOptions.tickColor) {
786
+ axisOptions.tickColor = axisOptions.color;
787
+ }
788
+
789
+ axisOptions = $.extend(true, {}, options.xaxis, axisOptions);
790
+ options.xaxes[i] = axisOptions;
791
+
792
+ if (axisOptions.font) {
793
+ axisOptions.font = $.extend({}, fontDefaults, axisOptions.font);
794
+ if (!axisOptions.font.color) {
795
+ axisOptions.font.color = axisOptions.color;
796
+ }
797
+ if (!axisOptions.font.lineHeight) {
798
+ axisOptions.font.lineHeight = Math.round(axisOptions.font.size * 1.15);
799
+ }
800
+ }
801
+ }
802
+
803
+ axisCount = options.yaxes.length || 1;
804
+ for (i = 0; i < axisCount; ++i) {
805
+
806
+ axisOptions = options.yaxes[i];
807
+ if (axisOptions && !axisOptions.tickColor) {
808
+ axisOptions.tickColor = axisOptions.color;
809
+ }
810
+
811
+ axisOptions = $.extend(true, {}, options.yaxis, axisOptions);
812
+ options.yaxes[i] = axisOptions;
813
+
814
+ if (axisOptions.font) {
815
+ axisOptions.font = $.extend({}, fontDefaults, axisOptions.font);
816
+ if (!axisOptions.font.color) {
817
+ axisOptions.font.color = axisOptions.color;
818
+ }
819
+ if (!axisOptions.font.lineHeight) {
820
+ axisOptions.font.lineHeight = Math.round(axisOptions.font.size * 1.15);
821
+ }
822
+ }
823
+ }
824
+
825
+ // backwards compatibility, to be removed in future
826
+ if (options.xaxis.noTicks && options.xaxis.ticks == null)
827
+ options.xaxis.ticks = options.xaxis.noTicks;
828
+ if (options.yaxis.noTicks && options.yaxis.ticks == null)
829
+ options.yaxis.ticks = options.yaxis.noTicks;
830
+ if (options.x2axis) {
831
+ options.xaxes[1] = $.extend(true, {}, options.xaxis, options.x2axis);
832
+ options.xaxes[1].position = "top";
833
+ // Override the inherit to allow the axis to auto-scale
834
+ if (options.x2axis.min == null) {
835
+ options.xaxes[1].min = null;
836
+ }
837
+ if (options.x2axis.max == null) {
838
+ options.xaxes[1].max = null;
839
+ }
840
+ }
841
+ if (options.y2axis) {
842
+ options.yaxes[1] = $.extend(true, {}, options.yaxis, options.y2axis);
843
+ options.yaxes[1].position = "right";
844
+ // Override the inherit to allow the axis to auto-scale
845
+ if (options.y2axis.min == null) {
846
+ options.yaxes[1].min = null;
847
+ }
848
+ if (options.y2axis.max == null) {
849
+ options.yaxes[1].max = null;
850
+ }
851
+ }
852
+ if (options.grid.coloredAreas)
853
+ options.grid.markings = options.grid.coloredAreas;
854
+ if (options.grid.coloredAreasColor)
855
+ options.grid.markingsColor = options.grid.coloredAreasColor;
856
+ if (options.lines)
857
+ $.extend(true, options.series.lines, options.lines);
858
+ if (options.points)
859
+ $.extend(true, options.series.points, options.points);
860
+ if (options.bars)
861
+ $.extend(true, options.series.bars, options.bars);
862
+ if (options.shadowSize != null)
863
+ options.series.shadowSize = options.shadowSize;
864
+ if (options.highlightColor != null)
865
+ options.series.highlightColor = options.highlightColor;
866
+
867
+ // save options on axes for future reference
868
+ for (i = 0; i < options.xaxes.length; ++i)
869
+ getOrCreateAxis(xaxes, i + 1).options = options.xaxes[i];
870
+ for (i = 0; i < options.yaxes.length; ++i)
871
+ getOrCreateAxis(yaxes, i + 1).options = options.yaxes[i];
872
+
873
+ // add hooks from options
874
+ for (var n in hooks)
875
+ if (options.hooks[n] && options.hooks[n].length)
876
+ hooks[n] = hooks[n].concat(options.hooks[n]);
877
+
878
+ executeHooks(hooks.processOptions, [options]);
879
+ }
880
+
881
+ function setData(d) {
882
+ series = parseData(d);
883
+ fillInSeriesOptions();
884
+ processData();
885
+ }
886
+
887
+ function parseData(d) {
888
+ var res = [];
889
+ for (var i = 0; i < d.length; ++i) {
890
+ var s = $.extend(true, {}, options.series);
891
+
892
+ if (d[i].data != null) {
893
+ s.data = d[i].data; // move the data instead of deep-copy
894
+ delete d[i].data;
895
+
896
+ $.extend(true, s, d[i]);
897
+
898
+ d[i].data = s.data;
899
+ }
900
+ else
901
+ s.data = d[i];
902
+ res.push(s);
903
+ }
904
+
905
+ return res;
906
+ }
907
+
908
+ function axisNumber(obj, coord) {
909
+ var a = obj[coord + "axis"];
910
+ if (typeof a == "object") // if we got a real axis, extract number
911
+ a = a.n;
912
+ if (typeof a != "number")
913
+ a = 1; // default to first axis
914
+ return a;
915
+ }
916
+
917
+ function allAxes() {
918
+ // return flat array without annoying null entries
919
+ return $.grep(xaxes.concat(yaxes), function (a) { return a; });
920
+ }
921
+
922
+ function canvasToAxisCoords(pos) {
923
+ // return an object with x/y corresponding to all used axes
924
+ var res = {}, i, axis;
925
+ for (i = 0; i < xaxes.length; ++i) {
926
+ axis = xaxes[i];
927
+ if (axis && axis.used)
928
+ res["x" + axis.n] = axis.c2p(pos.left);
929
+ }
930
+
931
+ for (i = 0; i < yaxes.length; ++i) {
932
+ axis = yaxes[i];
933
+ if (axis && axis.used)
934
+ res["y" + axis.n] = axis.c2p(pos.top);
935
+ }
936
+
937
+ if (res.x1 !== undefined)
938
+ res.x = res.x1;
939
+ if (res.y1 !== undefined)
940
+ res.y = res.y1;
941
+
942
+ return res;
943
+ }
944
+
945
+ function axisToCanvasCoords(pos) {
946
+ // get canvas coords from the first pair of x/y found in pos
947
+ var res = {}, i, axis, key;
948
+
949
+ for (i = 0; i < xaxes.length; ++i) {
950
+ axis = xaxes[i];
951
+ if (axis && axis.used) {
952
+ key = "x" + axis.n;
953
+ if (pos[key] == null && axis.n == 1)
954
+ key = "x";
955
+
956
+ if (pos[key] != null) {
957
+ res.left = axis.p2c(pos[key]);
958
+ break;
959
+ }
960
+ }
961
+ }
962
+
963
+ for (i = 0; i < yaxes.length; ++i) {
964
+ axis = yaxes[i];
965
+ if (axis && axis.used) {
966
+ key = "y" + axis.n;
967
+ if (pos[key] == null && axis.n == 1)
968
+ key = "y";
969
+
970
+ if (pos[key] != null) {
971
+ res.top = axis.p2c(pos[key]);
972
+ break;
973
+ }
974
+ }
975
+ }
976
+
977
+ return res;
978
+ }
979
+
980
+ function getOrCreateAxis(axes, number) {
981
+ if (!axes[number - 1])
982
+ axes[number - 1] = {
983
+ n: number, // save the number for future reference
984
+ direction: axes == xaxes ? "x" : "y",
985
+ options: $.extend(true, {}, axes == xaxes ? options.xaxis : options.yaxis)
986
+ };
987
+
988
+ return axes[number - 1];
989
+ }
990
+
991
+ function fillInSeriesOptions() {
992
+
993
+ var neededColors = series.length, maxIndex = -1, i;
994
+
995
+ // Subtract the number of series that already have fixed colors or
996
+ // color indexes from the number that we still need to generate.
997
+
998
+ for (i = 0; i < series.length; ++i) {
999
+ var sc = series[i].color;
1000
+ if (sc != null) {
1001
+ neededColors--;
1002
+ if (typeof sc == "number" && sc > maxIndex) {
1003
+ maxIndex = sc;
1004
+ }
1005
+ }
1006
+ }
1007
+
1008
+ // If any of the series have fixed color indexes, then we need to
1009
+ // generate at least as many colors as the highest index.
1010
+
1011
+ if (neededColors <= maxIndex) {
1012
+ neededColors = maxIndex + 1;
1013
+ }
1014
+
1015
+ // Generate all the colors, using first the option colors and then
1016
+ // variations on those colors once they're exhausted.
1017
+
1018
+ var c, colors = [], colorPool = options.colors,
1019
+ colorPoolSize = colorPool.length, variation = 0;
1020
+
1021
+ for (i = 0; i < neededColors; i++) {
1022
+
1023
+ c = $.color.parse(colorPool[i % colorPoolSize] || "#666");
1024
+
1025
+ // Each time we exhaust the colors in the pool we adjust
1026
+ // a scaling factor used to produce more variations on
1027
+ // those colors. The factor alternates negative/positive
1028
+ // to produce lighter/darker colors.
1029
+
1030
+ // Reset the variation after every few cycles, or else
1031
+ // it will end up producing only white or black colors.
1032
+
1033
+ if (i % colorPoolSize == 0 && i) {
1034
+ if (variation >= 0) {
1035
+ if (variation < 0.5) {
1036
+ variation = -variation - 0.2;
1037
+ } else variation = 0;
1038
+ } else variation = -variation;
1039
+ }
1040
+
1041
+ colors[i] = c.scale('rgb', 1 + variation);
1042
+ }
1043
+
1044
+ // Finalize the series options, filling in their colors
1045
+
1046
+ var colori = 0, s;
1047
+ for (i = 0; i < series.length; ++i) {
1048
+ s = series[i];
1049
+
1050
+ // assign colors
1051
+ if (s.color == null) {
1052
+ s.color = colors[colori].toString();
1053
+ ++colori;
1054
+ }
1055
+ else if (typeof s.color == "number")
1056
+ s.color = colors[s.color].toString();
1057
+
1058
+ // turn on lines automatically in case nothing is set
1059
+ if (s.lines.show == null) {
1060
+ var v, show = true;
1061
+ for (v in s)
1062
+ if (s[v] && s[v].show) {
1063
+ show = false;
1064
+ break;
1065
+ }
1066
+ if (show)
1067
+ s.lines.show = true;
1068
+ }
1069
+
1070
+ // If nothing was provided for lines.zero, default it to match
1071
+ // lines.fill, since areas by default should extend to zero.
1072
+
1073
+ if (s.lines.zero == null) {
1074
+ s.lines.zero = !!s.lines.fill;
1075
+ }
1076
+
1077
+ // setup axes
1078
+ s.xaxis = getOrCreateAxis(xaxes, axisNumber(s, "x"));
1079
+ s.yaxis = getOrCreateAxis(yaxes, axisNumber(s, "y"));
1080
+ }
1081
+ }
1082
+
1083
+ function processData() {
1084
+ var topSentry = Number.POSITIVE_INFINITY,
1085
+ bottomSentry = Number.NEGATIVE_INFINITY,
1086
+ fakeInfinity = Number.MAX_VALUE,
1087
+ i, j, k, m, length,
1088
+ s, points, ps, x, y, axis, val, f, p,
1089
+ data, format;
1090
+
1091
+ function updateAxis(axis, min, max) {
1092
+ if (min < axis.datamin && min != -fakeInfinity)
1093
+ axis.datamin = min;
1094
+ if (max > axis.datamax && max != fakeInfinity)
1095
+ axis.datamax = max;
1096
+ }
1097
+
1098
+ $.each(allAxes(), function (_, axis) {
1099
+ // init axis
1100
+ axis.datamin = topSentry;
1101
+ axis.datamax = bottomSentry;
1102
+ axis.used = false;
1103
+ });
1104
+
1105
+ for (i = 0; i < series.length; ++i) {
1106
+ s = series[i];
1107
+ s.datapoints = { points: [] };
1108
+
1109
+ executeHooks(hooks.processRawData, [ s, s.data, s.datapoints ]);
1110
+ }
1111
+
1112
+ // first pass: clean and copy data
1113
+ for (i = 0; i < series.length; ++i) {
1114
+ s = series[i];
1115
+
1116
+ data = s.data;
1117
+ format = s.datapoints.format;
1118
+
1119
+ if (!format) {
1120
+ format = [];
1121
+ // find out how to copy
1122
+ format.push({ x: true, number: true, required: true });
1123
+ format.push({ y: true, number: true, required: true });
1124
+
1125
+ if (s.bars.show || (s.lines.show && s.lines.fill)) {
1126
+ var autoscale = !!((s.bars.show && s.bars.zero) || (s.lines.show && s.lines.zero));
1127
+ format.push({ y: true, number: true, required: false, defaultValue: 0, autoscale: autoscale });
1128
+ if (s.bars.horizontal) {
1129
+ delete format[format.length - 1].y;
1130
+ format[format.length - 1].x = true;
1131
+ }
1132
+ }
1133
+
1134
+ s.datapoints.format = format;
1135
+ }
1136
+
1137
+ if (s.datapoints.pointsize != null)
1138
+ continue; // already filled in
1139
+
1140
+ s.datapoints.pointsize = format.length;
1141
+
1142
+ ps = s.datapoints.pointsize;
1143
+ points = s.datapoints.points;
1144
+
1145
+ var insertSteps = s.lines.show && s.lines.steps;
1146
+ s.xaxis.used = s.yaxis.used = true;
1147
+
1148
+ for (j = k = 0; j < data.length; ++j, k += ps) {
1149
+ p = data[j];
1150
+
1151
+ var nullify = p == null;
1152
+ if (!nullify) {
1153
+ for (m = 0; m < ps; ++m) {
1154
+ val = p[m];
1155
+ f = format[m];
1156
+
1157
+ if (f) {
1158
+ if (f.number && val != null) {
1159
+ val = +val; // convert to number
1160
+ if (isNaN(val))
1161
+ val = null;
1162
+ else if (val == Infinity)
1163
+ val = fakeInfinity;
1164
+ else if (val == -Infinity)
1165
+ val = -fakeInfinity;
1166
+ }
1167
+
1168
+ if (val == null) {
1169
+ if (f.required)
1170
+ nullify = true;
1171
+
1172
+ if (f.defaultValue != null)
1173
+ val = f.defaultValue;
1174
+ }
1175
+ }
1176
+
1177
+ points[k + m] = val;
1178
+ }
1179
+ }
1180
+
1181
+ if (nullify) {
1182
+ for (m = 0; m < ps; ++m) {
1183
+ val = points[k + m];
1184
+ if (val != null) {
1185
+ f = format[m];
1186
+ // extract min/max info
1187
+ if (f.autoscale !== false) {
1188
+ if (f.x) {
1189
+ updateAxis(s.xaxis, val, val);
1190
+ }
1191
+ if (f.y) {
1192
+ updateAxis(s.yaxis, val, val);
1193
+ }
1194
+ }
1195
+ }
1196
+ points[k + m] = null;
1197
+ }
1198
+ }
1199
+ else {
1200
+ // a little bit of line specific stuff that
1201
+ // perhaps shouldn't be here, but lacking
1202
+ // better means...
1203
+ if (insertSteps && k > 0
1204
+ && points[k - ps] != null
1205
+ && points[k - ps] != points[k]
1206
+ && points[k - ps + 1] != points[k + 1]) {
1207
+ // copy the point to make room for a middle point
1208
+ for (m = 0; m < ps; ++m)
1209
+ points[k + ps + m] = points[k + m];
1210
+
1211
+ // middle point has same y
1212
+ points[k + 1] = points[k - ps + 1];
1213
+
1214
+ // we've added a point, better reflect that
1215
+ k += ps;
1216
+ }
1217
+ }
1218
+ }
1219
+ }
1220
+
1221
+ // give the hooks a chance to run
1222
+ for (i = 0; i < series.length; ++i) {
1223
+ s = series[i];
1224
+
1225
+ executeHooks(hooks.processDatapoints, [ s, s.datapoints]);
1226
+ }
1227
+
1228
+ // second pass: find datamax/datamin for auto-scaling
1229
+ for (i = 0; i < series.length; ++i) {
1230
+ s = series[i];
1231
+ points = s.datapoints.points;
1232
+ ps = s.datapoints.pointsize;
1233
+ format = s.datapoints.format;
1234
+
1235
+ var xmin = topSentry, ymin = topSentry,
1236
+ xmax = bottomSentry, ymax = bottomSentry;
1237
+
1238
+ for (j = 0; j < points.length; j += ps) {
1239
+ if (points[j] == null)
1240
+ continue;
1241
+
1242
+ for (m = 0; m < ps; ++m) {
1243
+ val = points[j + m];
1244
+ f = format[m];
1245
+ if (!f || f.autoscale === false || val == fakeInfinity || val == -fakeInfinity)
1246
+ continue;
1247
+
1248
+ if (f.x) {
1249
+ if (val < xmin)
1250
+ xmin = val;
1251
+ if (val > xmax)
1252
+ xmax = val;
1253
+ }
1254
+ if (f.y) {
1255
+ if (val < ymin)
1256
+ ymin = val;
1257
+ if (val > ymax)
1258
+ ymax = val;
1259
+ }
1260
+ }
1261
+ }
1262
+
1263
+ if (s.bars.show) {
1264
+ // make sure we got room for the bar on the dancing floor
1265
+ var delta;
1266
+
1267
+ switch (s.bars.align) {
1268
+ case "left":
1269
+ delta = 0;
1270
+ break;
1271
+ case "right":
1272
+ delta = -s.bars.barWidth;
1273
+ break;
1274
+ default:
1275
+ delta = -s.bars.barWidth / 2;
1276
+ }
1277
+
1278
+ if (s.bars.horizontal) {
1279
+ ymin += delta;
1280
+ ymax += delta + s.bars.barWidth;
1281
+ }
1282
+ else {
1283
+ xmin += delta;
1284
+ xmax += delta + s.bars.barWidth;
1285
+ }
1286
+ }
1287
+
1288
+ updateAxis(s.xaxis, xmin, xmax);
1289
+ updateAxis(s.yaxis, ymin, ymax);
1290
+ }
1291
+
1292
+ $.each(allAxes(), function (_, axis) {
1293
+ if (axis.datamin == topSentry)
1294
+ axis.datamin = null;
1295
+ if (axis.datamax == bottomSentry)
1296
+ axis.datamax = null;
1297
+ });
1298
+ }
1299
+
1300
+ function setupCanvases() {
1301
+
1302
+ // Make sure the placeholder is clear of everything except canvases
1303
+ // from a previous plot in this container that we'll try to re-use.
1304
+
1305
+ placeholder.css("padding", 0) // padding messes up the positioning
1306
+ .children().filter(function(){
1307
+ return !$(this).hasClass("flot-overlay") && !$(this).hasClass('flot-base');
1308
+ }).remove();
1309
+
1310
+ if (placeholder.css("position") == 'static')
1311
+ placeholder.css("position", "relative"); // for positioning labels and overlay
1312
+
1313
+ surface = new Canvas("flot-base", placeholder);
1314
+ overlay = new Canvas("flot-overlay", placeholder); // overlay canvas for interactive features
1315
+
1316
+ ctx = surface.context;
1317
+ octx = overlay.context;
1318
+
1319
+ // define which element we're listening for events on
1320
+ eventHolder = $(overlay.element).unbind();
1321
+
1322
+ // If we're re-using a plot object, shut down the old one
1323
+
1324
+ var existing = placeholder.data("plot");
1325
+
1326
+ if (existing) {
1327
+ existing.shutdown();
1328
+ overlay.clear();
1329
+ }
1330
+
1331
+ // save in case we get replotted
1332
+ placeholder.data("plot", plot);
1333
+ }
1334
+
1335
+ function bindEvents() {
1336
+ // bind events
1337
+ if (options.grid.hoverable) {
1338
+ eventHolder.mousemove(onMouseMove);
1339
+
1340
+ // Use bind, rather than .mouseleave, because we officially
1341
+ // still support jQuery 1.2.6, which doesn't define a shortcut
1342
+ // for mouseenter or mouseleave. This was a bug/oversight that
1343
+ // was fixed somewhere around 1.3.x. We can return to using
1344
+ // .mouseleave when we drop support for 1.2.6.
1345
+
1346
+ eventHolder.bind("mouseleave", onMouseLeave);
1347
+ }
1348
+
1349
+ if (options.grid.clickable)
1350
+ eventHolder.click(onClick);
1351
+
1352
+ executeHooks(hooks.bindEvents, [eventHolder]);
1353
+ }
1354
+
1355
+ function shutdown() {
1356
+ if (redrawTimeout)
1357
+ clearTimeout(redrawTimeout);
1358
+
1359
+ eventHolder.unbind("mousemove", onMouseMove);
1360
+ eventHolder.unbind("mouseleave", onMouseLeave);
1361
+ eventHolder.unbind("click", onClick);
1362
+
1363
+ executeHooks(hooks.shutdown, [eventHolder]);
1364
+ }
1365
+
1366
+ function setTransformationHelpers(axis) {
1367
+ // set helper functions on the axis, assumes plot area
1368
+ // has been computed already
1369
+
1370
+ function identity(x) { return x; }
1371
+
1372
+ var s, m, t = axis.options.transform || identity,
1373
+ it = axis.options.inverseTransform;
1374
+
1375
+ // precompute how much the axis is scaling a point
1376
+ // in canvas space
1377
+ if (axis.direction == "x") {
1378
+ s = axis.scale = plotWidth / Math.abs(t(axis.max) - t(axis.min));
1379
+ m = Math.min(t(axis.max), t(axis.min));
1380
+ }
1381
+ else {
1382
+ s = axis.scale = plotHeight / Math.abs(t(axis.max) - t(axis.min));
1383
+ s = -s;
1384
+ m = Math.max(t(axis.max), t(axis.min));
1385
+ }
1386
+
1387
+ // data point to canvas coordinate
1388
+ if (t == identity) // slight optimization
1389
+ axis.p2c = function (p) { return (p - m) * s; };
1390
+ else
1391
+ axis.p2c = function (p) { return (t(p) - m) * s; };
1392
+ // canvas coordinate to data point
1393
+ if (!it)
1394
+ axis.c2p = function (c) { return m + c / s; };
1395
+ else
1396
+ axis.c2p = function (c) { return it(m + c / s); };
1397
+ }
1398
+
1399
+ function measureTickLabels(axis) {
1400
+
1401
+ var opts = axis.options,
1402
+ ticks = axis.ticks || [],
1403
+ labelWidth = opts.labelWidth || 0,
1404
+ labelHeight = opts.labelHeight || 0,
1405
+ maxWidth = labelWidth || (axis.direction == "x" ? Math.floor(surface.width / (ticks.length || 1)) : null),
1406
+ legacyStyles = axis.direction + "Axis " + axis.direction + axis.n + "Axis",
1407
+ layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis " + legacyStyles,
1408
+ font = opts.font || "flot-tick-label tickLabel";
1409
+
1410
+ for (var i = 0; i < ticks.length; ++i) {
1411
+
1412
+ var t = ticks[i];
1413
+
1414
+ if (!t.label)
1415
+ continue;
1416
+
1417
+ var info = surface.getTextInfo(layer, t.label, font, null, maxWidth);
1418
+
1419
+ labelWidth = Math.max(labelWidth, info.width);
1420
+ labelHeight = Math.max(labelHeight, info.height);
1421
+ }
1422
+
1423
+ axis.labelWidth = opts.labelWidth || labelWidth;
1424
+ axis.labelHeight = opts.labelHeight || labelHeight;
1425
+ }
1426
+
1427
+ function allocateAxisBoxFirstPhase(axis) {
1428
+ // find the bounding box of the axis by looking at label
1429
+ // widths/heights and ticks, make room by diminishing the
1430
+ // plotOffset; this first phase only looks at one
1431
+ // dimension per axis, the other dimension depends on the
1432
+ // other axes so will have to wait
1433
+
1434
+ var lw = axis.labelWidth,
1435
+ lh = axis.labelHeight,
1436
+ pos = axis.options.position,
1437
+ isXAxis = axis.direction === "x",
1438
+ tickLength = axis.options.tickLength,
1439
+ axisMargin = options.grid.axisMargin,
1440
+ padding = options.grid.labelMargin,
1441
+ innermost = true,
1442
+ outermost = true,
1443
+ first = true,
1444
+ found = false;
1445
+
1446
+ // Determine the axis's position in its direction and on its side
1447
+
1448
+ $.each(isXAxis ? xaxes : yaxes, function(i, a) {
1449
+ if (a && (a.show || a.reserveSpace)) {
1450
+ if (a === axis) {
1451
+ found = true;
1452
+ } else if (a.options.position === pos) {
1453
+ if (found) {
1454
+ outermost = false;
1455
+ } else {
1456
+ innermost = false;
1457
+ }
1458
+ }
1459
+ if (!found) {
1460
+ first = false;
1461
+ }
1462
+ }
1463
+ });
1464
+
1465
+ // The outermost axis on each side has no margin
1466
+
1467
+ if (outermost) {
1468
+ axisMargin = 0;
1469
+ }
1470
+
1471
+ // The ticks for the first axis in each direction stretch across
1472
+
1473
+ if (tickLength == null) {
1474
+ tickLength = first ? "full" : 5;
1475
+ }
1476
+
1477
+ if (!isNaN(+tickLength))
1478
+ padding += +tickLength;
1479
+
1480
+ if (isXAxis) {
1481
+ lh += padding;
1482
+
1483
+ if (pos == "bottom") {
1484
+ plotOffset.bottom += lh + axisMargin;
1485
+ axis.box = { top: surface.height - plotOffset.bottom, height: lh };
1486
+ }
1487
+ else {
1488
+ axis.box = { top: plotOffset.top + axisMargin, height: lh };
1489
+ plotOffset.top += lh + axisMargin;
1490
+ }
1491
+ }
1492
+ else {
1493
+ lw += padding;
1494
+
1495
+ if (pos == "left") {
1496
+ axis.box = { left: plotOffset.left + axisMargin, width: lw };
1497
+ plotOffset.left += lw + axisMargin;
1498
+ }
1499
+ else {
1500
+ plotOffset.right += lw + axisMargin;
1501
+ axis.box = { left: surface.width - plotOffset.right, width: lw };
1502
+ }
1503
+ }
1504
+
1505
+ // save for future reference
1506
+ axis.position = pos;
1507
+ axis.tickLength = tickLength;
1508
+ axis.box.padding = padding;
1509
+ axis.innermost = innermost;
1510
+ }
1511
+
1512
+ function allocateAxisBoxSecondPhase(axis) {
1513
+ // now that all axis boxes have been placed in one
1514
+ // dimension, we can set the remaining dimension coordinates
1515
+ if (axis.direction == "x") {
1516
+ axis.box.left = plotOffset.left - axis.labelWidth / 2;
1517
+ axis.box.width = surface.width - plotOffset.left - plotOffset.right + axis.labelWidth;
1518
+ }
1519
+ else {
1520
+ axis.box.top = plotOffset.top - axis.labelHeight / 2;
1521
+ axis.box.height = surface.height - plotOffset.bottom - plotOffset.top + axis.labelHeight;
1522
+ }
1523
+ }
1524
+
1525
+ function adjustLayoutForThingsStickingOut() {
1526
+ // possibly adjust plot offset to ensure everything stays
1527
+ // inside the canvas and isn't clipped off
1528
+
1529
+ var minMargin = options.grid.minBorderMargin,
1530
+ axis, i;
1531
+
1532
+ // check stuff from the plot (FIXME: this should just read
1533
+ // a value from the series, otherwise it's impossible to
1534
+ // customize)
1535
+ if (minMargin == null) {
1536
+ minMargin = 0;
1537
+ for (i = 0; i < series.length; ++i)
1538
+ minMargin = Math.max(minMargin, 2 * (series[i].points.radius + series[i].points.lineWidth/2));
1539
+ }
1540
+
1541
+ var margins = {
1542
+ left: minMargin,
1543
+ right: minMargin,
1544
+ top: minMargin,
1545
+ bottom: minMargin
1546
+ };
1547
+
1548
+ // check axis labels, note we don't check the actual
1549
+ // labels but instead use the overall width/height to not
1550
+ // jump as much around with replots
1551
+ $.each(allAxes(), function (_, axis) {
1552
+ if (axis.reserveSpace && axis.ticks && axis.ticks.length) {
1553
+ if (axis.direction === "x") {
1554
+ margins.left = Math.max(margins.left, axis.labelWidth / 2);
1555
+ margins.right = Math.max(margins.right, axis.labelWidth / 2);
1556
+ } else {
1557
+ margins.bottom = Math.max(margins.bottom, axis.labelHeight / 2);
1558
+ margins.top = Math.max(margins.top, axis.labelHeight / 2);
1559
+ }
1560
+ }
1561
+ });
1562
+
1563
+ plotOffset.left = Math.ceil(Math.max(margins.left, plotOffset.left));
1564
+ plotOffset.right = Math.ceil(Math.max(margins.right, plotOffset.right));
1565
+ plotOffset.top = Math.ceil(Math.max(margins.top, plotOffset.top));
1566
+ plotOffset.bottom = Math.ceil(Math.max(margins.bottom, plotOffset.bottom));
1567
+ }
1568
+
1569
+ function setupGrid() {
1570
+ var i, axes = allAxes(), showGrid = options.grid.show;
1571
+
1572
+ // Initialize the plot's offset from the edge of the canvas
1573
+
1574
+ for (var a in plotOffset) {
1575
+ var margin = options.grid.margin || 0;
1576
+ plotOffset[a] = typeof margin == "number" ? margin : margin[a] || 0;
1577
+ }
1578
+
1579
+ executeHooks(hooks.processOffset, [plotOffset]);
1580
+
1581
+ // If the grid is visible, add its border width to the offset
1582
+
1583
+ for (var a in plotOffset) {
1584
+ if(typeof(options.grid.borderWidth) == "object") {
1585
+ plotOffset[a] += showGrid ? options.grid.borderWidth[a] : 0;
1586
+ }
1587
+ else {
1588
+ plotOffset[a] += showGrid ? options.grid.borderWidth : 0;
1589
+ }
1590
+ }
1591
+
1592
+ $.each(axes, function (_, axis) {
1593
+ var axisOpts = axis.options;
1594
+ axis.show = axisOpts.show == null ? axis.used : axisOpts.show;
1595
+ axis.reserveSpace = axisOpts.reserveSpace == null ? axis.show : axisOpts.reserveSpace;
1596
+ setRange(axis);
1597
+ });
1598
+
1599
+ if (showGrid) {
1600
+
1601
+ var allocatedAxes = $.grep(axes, function (axis) {
1602
+ return axis.show || axis.reserveSpace;
1603
+ });
1604
+
1605
+ $.each(allocatedAxes, function (_, axis) {
1606
+ // make the ticks
1607
+ setupTickGeneration(axis);
1608
+ setTicks(axis);
1609
+ snapRangeToTicks(axis, axis.ticks);
1610
+ // find labelWidth/Height for axis
1611
+ measureTickLabels(axis);
1612
+ });
1613
+
1614
+ // with all dimensions calculated, we can compute the
1615
+ // axis bounding boxes, start from the outside
1616
+ // (reverse order)
1617
+ for (i = allocatedAxes.length - 1; i >= 0; --i)
1618
+ allocateAxisBoxFirstPhase(allocatedAxes[i]);
1619
+
1620
+ // make sure we've got enough space for things that
1621
+ // might stick out
1622
+ adjustLayoutForThingsStickingOut();
1623
+
1624
+ $.each(allocatedAxes, function (_, axis) {
1625
+ allocateAxisBoxSecondPhase(axis);
1626
+ });
1627
+ }
1628
+
1629
+ plotWidth = surface.width - plotOffset.left - plotOffset.right;
1630
+ plotHeight = surface.height - plotOffset.bottom - plotOffset.top;
1631
+
1632
+ // now we got the proper plot dimensions, we can compute the scaling
1633
+ $.each(axes, function (_, axis) {
1634
+ setTransformationHelpers(axis);
1635
+ });
1636
+
1637
+ if (showGrid) {
1638
+ drawAxisLabels();
1639
+ }
1640
+
1641
+ insertLegend();
1642
+ }
1643
+
1644
+ function setRange(axis) {
1645
+ var opts = axis.options,
1646
+ min = +(opts.min != null ? opts.min : axis.datamin),
1647
+ max = +(opts.max != null ? opts.max : axis.datamax),
1648
+ delta = max - min;
1649
+
1650
+ if (delta == 0.0) {
1651
+ // degenerate case
1652
+ var widen = max == 0 ? 1 : 0.01;
1653
+
1654
+ if (opts.min == null)
1655
+ min -= widen;
1656
+ // always widen max if we couldn't widen min to ensure we
1657
+ // don't fall into min == max which doesn't work
1658
+ if (opts.max == null || opts.min != null)
1659
+ max += widen;
1660
+ }
1661
+ else {
1662
+ // consider autoscaling
1663
+ var margin = opts.autoscaleMargin;
1664
+ if (margin != null) {
1665
+ if (opts.min == null) {
1666
+ min -= delta * margin;
1667
+ // make sure we don't go below zero if all values
1668
+ // are positive
1669
+ if (min < 0 && axis.datamin != null && axis.datamin >= 0)
1670
+ min = 0;
1671
+ }
1672
+ if (opts.max == null) {
1673
+ max += delta * margin;
1674
+ if (max > 0 && axis.datamax != null && axis.datamax <= 0)
1675
+ max = 0;
1676
+ }
1677
+ }
1678
+ }
1679
+ axis.min = min;
1680
+ axis.max = max;
1681
+ }
1682
+
1683
+ function setupTickGeneration(axis) {
1684
+ var opts = axis.options;
1685
+
1686
+ // estimate number of ticks
1687
+ var noTicks;
1688
+ if (typeof opts.ticks == "number" && opts.ticks > 0)
1689
+ noTicks = opts.ticks;
1690
+ else
1691
+ // heuristic based on the model a*sqrt(x) fitted to
1692
+ // some data points that seemed reasonable
1693
+ noTicks = 0.3 * Math.sqrt(axis.direction == "x" ? surface.width : surface.height);
1694
+
1695
+ var delta = (axis.max - axis.min) / noTicks,
1696
+ dec = -Math.floor(Math.log(delta) / Math.LN10),
1697
+ maxDec = opts.tickDecimals;
1698
+
1699
+ if (maxDec != null && dec > maxDec) {
1700
+ dec = maxDec;
1701
+ }
1702
+
1703
+ var magn = Math.pow(10, -dec),
1704
+ norm = delta / magn, // norm is between 1.0 and 10.0
1705
+ size;
1706
+
1707
+ if (norm < 1.5) {
1708
+ size = 1;
1709
+ } else if (norm < 3) {
1710
+ size = 2;
1711
+ // special case for 2.5, requires an extra decimal
1712
+ if (norm > 2.25 && (maxDec == null || dec + 1 <= maxDec)) {
1713
+ size = 2.5;
1714
+ ++dec;
1715
+ }
1716
+ } else if (norm < 7.5) {
1717
+ size = 5;
1718
+ } else {
1719
+ size = 10;
1720
+ }
1721
+
1722
+ size *= magn;
1723
+
1724
+ if (opts.minTickSize != null && size < opts.minTickSize) {
1725
+ size = opts.minTickSize;
1726
+ }
1727
+
1728
+ axis.delta = delta;
1729
+ axis.tickDecimals = Math.max(0, maxDec != null ? maxDec : dec);
1730
+ axis.tickSize = opts.tickSize || size;
1731
+
1732
+ // Time mode was moved to a plug-in in 0.8, and since so many people use it
1733
+ // we'll add an especially friendly reminder to make sure they included it.
1734
+
1735
+ if (opts.mode == "time" && !axis.tickGenerator) {
1736
+ throw new Error("Time mode requires the flot.time plugin.");
1737
+ }
1738
+
1739
+ // Flot supports base-10 axes; any other mode else is handled by a plug-in,
1740
+ // like flot.time.js.
1741
+
1742
+ if (!axis.tickGenerator) {
1743
+
1744
+ axis.tickGenerator = function (axis) {
1745
+
1746
+ var ticks = [],
1747
+ start = floorInBase(axis.min, axis.tickSize),
1748
+ i = 0,
1749
+ v = Number.NaN,
1750
+ prev;
1751
+
1752
+ do {
1753
+ prev = v;
1754
+ v = start + i * axis.tickSize;
1755
+ ticks.push(v);
1756
+ ++i;
1757
+ } while (v < axis.max && v != prev);
1758
+ return ticks;
1759
+ };
1760
+
1761
+ axis.tickFormatter = function (value, axis) {
1762
+
1763
+ var factor = axis.tickDecimals ? Math.pow(10, axis.tickDecimals) : 1;
1764
+ var formatted = "" + Math.round(value * factor) / factor;
1765
+
1766
+ // If tickDecimals was specified, ensure that we have exactly that
1767
+ // much precision; otherwise default to the value's own precision.
1768
+
1769
+ if (axis.tickDecimals != null) {
1770
+ var decimal = formatted.indexOf(".");
1771
+ var precision = decimal == -1 ? 0 : formatted.length - decimal - 1;
1772
+ if (precision < axis.tickDecimals) {
1773
+ return (precision ? formatted : formatted + ".") + ("" + factor).substr(1, axis.tickDecimals - precision);
1774
+ }
1775
+ }
1776
+
1777
+ return formatted;
1778
+ };
1779
+ }
1780
+
1781
+ if ($.isFunction(opts.tickFormatter))
1782
+ axis.tickFormatter = function (v, axis) { return "" + opts.tickFormatter(v, axis); };
1783
+
1784
+ if (opts.alignTicksWithAxis != null) {
1785
+ var otherAxis = (axis.direction == "x" ? xaxes : yaxes)[opts.alignTicksWithAxis - 1];
1786
+ if (otherAxis && otherAxis.used && otherAxis != axis) {
1787
+ // consider snapping min/max to outermost nice ticks
1788
+ var niceTicks = axis.tickGenerator(axis);
1789
+ if (niceTicks.length > 0) {
1790
+ if (opts.min == null)
1791
+ axis.min = Math.min(axis.min, niceTicks[0]);
1792
+ if (opts.max == null && niceTicks.length > 1)
1793
+ axis.max = Math.max(axis.max, niceTicks[niceTicks.length - 1]);
1794
+ }
1795
+
1796
+ axis.tickGenerator = function (axis) {
1797
+ // copy ticks, scaled to this axis
1798
+ var ticks = [], v, i;
1799
+ for (i = 0; i < otherAxis.ticks.length; ++i) {
1800
+ v = (otherAxis.ticks[i].v - otherAxis.min) / (otherAxis.max - otherAxis.min);
1801
+ v = axis.min + v * (axis.max - axis.min);
1802
+ ticks.push(v);
1803
+ }
1804
+ return ticks;
1805
+ };
1806
+
1807
+ // we might need an extra decimal since forced
1808
+ // ticks don't necessarily fit naturally
1809
+ if (!axis.mode && opts.tickDecimals == null) {
1810
+ var extraDec = Math.max(0, -Math.floor(Math.log(axis.delta) / Math.LN10) + 1),
1811
+ ts = axis.tickGenerator(axis);
1812
+
1813
+ // only proceed if the tick interval rounded
1814
+ // with an extra decimal doesn't give us a
1815
+ // zero at end
1816
+ if (!(ts.length > 1 && /\..*0$/.test((ts[1] - ts[0]).toFixed(extraDec))))
1817
+ axis.tickDecimals = extraDec;
1818
+ }
1819
+ }
1820
+ }
1821
+ }
1822
+
1823
+ function setTicks(axis) {
1824
+ var oticks = axis.options.ticks, ticks = [];
1825
+ if (oticks == null || (typeof oticks == "number" && oticks > 0))
1826
+ ticks = axis.tickGenerator(axis);
1827
+ else if (oticks) {
1828
+ if ($.isFunction(oticks))
1829
+ // generate the ticks
1830
+ ticks = oticks(axis);
1831
+ else
1832
+ ticks = oticks;
1833
+ }
1834
+
1835
+ // clean up/labelify the supplied ticks, copy them over
1836
+ var i, v;
1837
+ axis.ticks = [];
1838
+ for (i = 0; i < ticks.length; ++i) {
1839
+ var label = null;
1840
+ var t = ticks[i];
1841
+ if (typeof t == "object") {
1842
+ v = +t[0];
1843
+ if (t.length > 1)
1844
+ label = t[1];
1845
+ }
1846
+ else
1847
+ v = +t;
1848
+ if (label == null)
1849
+ label = axis.tickFormatter(v, axis);
1850
+ if (!isNaN(v))
1851
+ axis.ticks.push({ v: v, label: label });
1852
+ }
1853
+ }
1854
+
1855
+ function snapRangeToTicks(axis, ticks) {
1856
+ if (axis.options.autoscaleMargin && ticks.length > 0) {
1857
+ // snap to ticks
1858
+ if (axis.options.min == null)
1859
+ axis.min = Math.min(axis.min, ticks[0].v);
1860
+ if (axis.options.max == null && ticks.length > 1)
1861
+ axis.max = Math.max(axis.max, ticks[ticks.length - 1].v);
1862
+ }
1863
+ }
1864
+
1865
+ function draw() {
1866
+
1867
+ surface.clear();
1868
+
1869
+ executeHooks(hooks.drawBackground, [ctx]);
1870
+
1871
+ var grid = options.grid;
1872
+
1873
+ // draw background, if any
1874
+ if (grid.show && grid.backgroundColor)
1875
+ drawBackground();
1876
+
1877
+ if (grid.show && !grid.aboveData) {
1878
+ drawGrid();
1879
+ }
1880
+
1881
+ for (var i = 0; i < series.length; ++i) {
1882
+ executeHooks(hooks.drawSeries, [ctx, series[i]]);
1883
+ drawSeries(series[i]);
1884
+ }
1885
+
1886
+ executeHooks(hooks.draw, [ctx]);
1887
+
1888
+ if (grid.show && grid.aboveData) {
1889
+ drawGrid();
1890
+ }
1891
+
1892
+ surface.render();
1893
+
1894
+ // A draw implies that either the axes or data have changed, so we
1895
+ // should probably update the overlay highlights as well.
1896
+
1897
+ triggerRedrawOverlay();
1898
+ }
1899
+
1900
+ function extractRange(ranges, coord) {
1901
+ var axis, from, to, key, axes = allAxes();
1902
+
1903
+ for (var i = 0; i < axes.length; ++i) {
1904
+ axis = axes[i];
1905
+ if (axis.direction == coord) {
1906
+ key = coord + axis.n + "axis";
1907
+ if (!ranges[key] && axis.n == 1)
1908
+ key = coord + "axis"; // support x1axis as xaxis
1909
+ if (ranges[key]) {
1910
+ from = ranges[key].from;
1911
+ to = ranges[key].to;
1912
+ break;
1913
+ }
1914
+ }
1915
+ }
1916
+
1917
+ // backwards-compat stuff - to be removed in future
1918
+ if (!ranges[key]) {
1919
+ axis = coord == "x" ? xaxes[0] : yaxes[0];
1920
+ from = ranges[coord + "1"];
1921
+ to = ranges[coord + "2"];
1922
+ }
1923
+
1924
+ // auto-reverse as an added bonus
1925
+ if (from != null && to != null && from > to) {
1926
+ var tmp = from;
1927
+ from = to;
1928
+ to = tmp;
1929
+ }
1930
+
1931
+ return { from: from, to: to, axis: axis };
1932
+ }
1933
+
1934
+ function drawBackground() {
1935
+ ctx.save();
1936
+ ctx.translate(plotOffset.left, plotOffset.top);
1937
+
1938
+ ctx.fillStyle = getColorOrGradient(options.grid.backgroundColor, plotHeight, 0, "rgba(255, 255, 255, 0)");
1939
+ ctx.fillRect(0, 0, plotWidth, plotHeight);
1940
+ ctx.restore();
1941
+ }
1942
+
1943
+ function drawGrid() {
1944
+ var i, axes, bw, bc;
1945
+
1946
+ ctx.save();
1947
+ ctx.translate(plotOffset.left, plotOffset.top);
1948
+
1949
+ // draw markings
1950
+ var markings = options.grid.markings;
1951
+ if (markings) {
1952
+ if ($.isFunction(markings)) {
1953
+ axes = plot.getAxes();
1954
+ // xmin etc. is backwards compatibility, to be
1955
+ // removed in the future
1956
+ axes.xmin = axes.xaxis.min;
1957
+ axes.xmax = axes.xaxis.max;
1958
+ axes.ymin = axes.yaxis.min;
1959
+ axes.ymax = axes.yaxis.max;
1960
+
1961
+ markings = markings(axes);
1962
+ }
1963
+
1964
+ for (i = 0; i < markings.length; ++i) {
1965
+ var m = markings[i],
1966
+ xrange = extractRange(m, "x"),
1967
+ yrange = extractRange(m, "y");
1968
+
1969
+ // fill in missing
1970
+ if (xrange.from == null)
1971
+ xrange.from = xrange.axis.min;
1972
+ if (xrange.to == null)
1973
+ xrange.to = xrange.axis.max;
1974
+ if (yrange.from == null)
1975
+ yrange.from = yrange.axis.min;
1976
+ if (yrange.to == null)
1977
+ yrange.to = yrange.axis.max;
1978
+
1979
+ // clip
1980
+ if (xrange.to < xrange.axis.min || xrange.from > xrange.axis.max ||
1981
+ yrange.to < yrange.axis.min || yrange.from > yrange.axis.max)
1982
+ continue;
1983
+
1984
+ xrange.from = Math.max(xrange.from, xrange.axis.min);
1985
+ xrange.to = Math.min(xrange.to, xrange.axis.max);
1986
+ yrange.from = Math.max(yrange.from, yrange.axis.min);
1987
+ yrange.to = Math.min(yrange.to, yrange.axis.max);
1988
+
1989
+ var xequal = xrange.from === xrange.to,
1990
+ yequal = yrange.from === yrange.to;
1991
+
1992
+ if (xequal && yequal) {
1993
+ continue;
1994
+ }
1995
+
1996
+ // then draw
1997
+ xrange.from = Math.floor(xrange.axis.p2c(xrange.from));
1998
+ xrange.to = Math.floor(xrange.axis.p2c(xrange.to));
1999
+ yrange.from = Math.floor(yrange.axis.p2c(yrange.from));
2000
+ yrange.to = Math.floor(yrange.axis.p2c(yrange.to));
2001
+
2002
+ if (xequal || yequal) {
2003
+ var lineWidth = m.lineWidth || options.grid.markingsLineWidth,
2004
+ subPixel = lineWidth % 2 ? 0.5 : 0;
2005
+ ctx.beginPath();
2006
+ ctx.strokeStyle = m.color || options.grid.markingsColor;
2007
+ ctx.lineWidth = lineWidth;
2008
+ if (xequal) {
2009
+ ctx.moveTo(xrange.to + subPixel, yrange.from);
2010
+ ctx.lineTo(xrange.to + subPixel, yrange.to);
2011
+ } else {
2012
+ ctx.moveTo(xrange.from, yrange.to + subPixel);
2013
+ ctx.lineTo(xrange.to, yrange.to + subPixel);
2014
+ }
2015
+ ctx.stroke();
2016
+ } else {
2017
+ ctx.fillStyle = m.color || options.grid.markingsColor;
2018
+ ctx.fillRect(xrange.from, yrange.to,
2019
+ xrange.to - xrange.from,
2020
+ yrange.from - yrange.to);
2021
+ }
2022
+ }
2023
+ }
2024
+
2025
+ // draw the ticks
2026
+ axes = allAxes();
2027
+ bw = options.grid.borderWidth;
2028
+
2029
+ for (var j = 0; j < axes.length; ++j) {
2030
+ var axis = axes[j], box = axis.box,
2031
+ t = axis.tickLength, x, y, xoff, yoff;
2032
+ if (!axis.show || axis.ticks.length == 0)
2033
+ continue;
2034
+
2035
+ ctx.lineWidth = 1;
2036
+
2037
+ // find the edges
2038
+ if (axis.direction == "x") {
2039
+ x = 0;
2040
+ if (t == "full")
2041
+ y = (axis.position == "top" ? 0 : plotHeight);
2042
+ else
2043
+ y = box.top - plotOffset.top + (axis.position == "top" ? box.height : 0);
2044
+ }
2045
+ else {
2046
+ y = 0;
2047
+ if (t == "full")
2048
+ x = (axis.position == "left" ? 0 : plotWidth);
2049
+ else
2050
+ x = box.left - plotOffset.left + (axis.position == "left" ? box.width : 0);
2051
+ }
2052
+
2053
+ // draw tick bar
2054
+ if (!axis.innermost) {
2055
+ ctx.strokeStyle = axis.options.color;
2056
+ ctx.beginPath();
2057
+ xoff = yoff = 0;
2058
+ if (axis.direction == "x")
2059
+ xoff = plotWidth + 1;
2060
+ else
2061
+ yoff = plotHeight + 1;
2062
+
2063
+ if (ctx.lineWidth == 1) {
2064
+ if (axis.direction == "x") {
2065
+ y = Math.floor(y) + 0.5;
2066
+ } else {
2067
+ x = Math.floor(x) + 0.5;
2068
+ }
2069
+ }
2070
+
2071
+ ctx.moveTo(x, y);
2072
+ ctx.lineTo(x + xoff, y + yoff);
2073
+ ctx.stroke();
2074
+ }
2075
+
2076
+ // draw ticks
2077
+
2078
+ ctx.strokeStyle = axis.options.tickColor;
2079
+
2080
+ ctx.beginPath();
2081
+ for (i = 0; i < axis.ticks.length; ++i) {
2082
+ var v = axis.ticks[i].v;
2083
+
2084
+ xoff = yoff = 0;
2085
+
2086
+ if (isNaN(v) || v < axis.min || v > axis.max
2087
+ // skip those lying on the axes if we got a border
2088
+ || (t == "full"
2089
+ && ((typeof bw == "object" && bw[axis.position] > 0) || bw > 0)
2090
+ && (v == axis.min || v == axis.max)))
2091
+ continue;
2092
+
2093
+ if (axis.direction == "x") {
2094
+ x = axis.p2c(v);
2095
+ yoff = t == "full" ? -plotHeight : t;
2096
+
2097
+ if (axis.posit