@northdata/fomantic-ui 2.8.714 → 2.8.716

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,618 @@
1
+ /*!
2
+ * # Fomantic-UI - Accordion
3
+ * http://github.com/fomantic/Fomantic-UI/
4
+ *
5
+ *
6
+ * Released under the MIT license
7
+ * http://opensource.org/licenses/MIT
8
+ *
9
+ */
10
+
11
+ ;(function ($, window, document, undefined) {
12
+
13
+ 'use strict';
14
+
15
+ $.isFunction = $.isFunction || function(obj) {
16
+ return typeof obj === "function" && typeof obj.nodeType !== "number";
17
+ };
18
+
19
+ window = (typeof window != 'undefined' && window.Math == Math)
20
+ ? window
21
+ : (typeof self != 'undefined' && self.Math == Math)
22
+ ? self
23
+ : Function('return this')()
24
+ ;
25
+
26
+ $.fn.accordion = function(parameters) {
27
+ var
28
+ $allModules = $(this),
29
+
30
+ time = new Date().getTime(),
31
+ performance = [],
32
+
33
+ query = arguments[0],
34
+ methodInvoked = (typeof query == 'string'),
35
+ queryArguments = [].slice.call(arguments, 1),
36
+
37
+ returnedValue
38
+ ;
39
+ $allModules
40
+ .each(function() {
41
+ var
42
+ settings = ( $.isPlainObject(parameters) )
43
+ ? $.extend(true, {}, $.fn.accordion.settings, parameters)
44
+ : $.extend({}, $.fn.accordion.settings),
45
+
46
+ className = settings.className,
47
+ namespace = settings.namespace,
48
+ selector = settings.selector,
49
+ error = settings.error,
50
+
51
+ eventNamespace = '.' + namespace,
52
+ moduleNamespace = 'module-' + namespace,
53
+ moduleSelector = $allModules.selector || '',
54
+
55
+ $module = $(this),
56
+ $title = $module.find(selector.title),
57
+ $content = $module.find(selector.content),
58
+
59
+ element = this,
60
+ instance = $module.data(moduleNamespace),
61
+ observer,
62
+ module
63
+ ;
64
+
65
+ module = {
66
+
67
+ initialize: function() {
68
+ module.debug('Initializing', $module);
69
+ module.bind.events();
70
+ if(settings.observeChanges) {
71
+ module.observeChanges();
72
+ }
73
+ module.instantiate();
74
+ },
75
+
76
+ instantiate: function() {
77
+ instance = module;
78
+ $module
79
+ .data(moduleNamespace, module)
80
+ ;
81
+ },
82
+
83
+ destroy: function() {
84
+ module.debug('Destroying previous instance', $module);
85
+ $module
86
+ .off(eventNamespace)
87
+ .removeData(moduleNamespace)
88
+ ;
89
+ },
90
+
91
+ refresh: function() {
92
+ $title = $module.find(selector.title);
93
+ $content = $module.find(selector.content);
94
+ },
95
+
96
+ observeChanges: function() {
97
+ if('MutationObserver' in window) {
98
+ observer = new MutationObserver(function(mutations) {
99
+ module.debug('DOM tree modified, updating selector cache');
100
+ module.refresh();
101
+ });
102
+ observer.observe(element, {
103
+ childList : true,
104
+ subtree : true
105
+ });
106
+ module.debug('Setting up mutation observer', observer);
107
+ }
108
+ },
109
+
110
+ bind: {
111
+ events: function() {
112
+ module.debug('Binding delegated events');
113
+ $module
114
+ .on(settings.on + eventNamespace, selector.trigger, module.event.click)
115
+ ;
116
+ }
117
+ },
118
+
119
+ event: {
120
+ click: function() {
121
+ module.toggle.call(this);
122
+ }
123
+ },
124
+
125
+ toggle: function(query) {
126
+ var
127
+ $activeTitle = (query !== undefined)
128
+ ? (typeof query === 'number')
129
+ ? $title.eq(query)
130
+ : $(query).closest(selector.title)
131
+ : $(this).closest(selector.title),
132
+ $activeContent = $activeTitle.next($content),
133
+ isAnimating = $activeContent.hasClass(className.animating),
134
+ isActive = $activeContent.hasClass(className.active),
135
+ isOpen = (isActive && !isAnimating),
136
+ isOpening = (!isActive && isAnimating)
137
+ ;
138
+ module.debug('Toggling visibility of content', $activeTitle);
139
+ if(isOpen || isOpening) {
140
+ if(settings.collapsible) {
141
+ module.close.call($activeTitle);
142
+ }
143
+ else {
144
+ module.debug('Cannot close accordion content collapsing is disabled');
145
+ }
146
+ }
147
+ else {
148
+ module.open.call($activeTitle);
149
+ }
150
+ },
151
+
152
+ open: function(query) {
153
+ var
154
+ $activeTitle = (query !== undefined)
155
+ ? (typeof query === 'number')
156
+ ? $title.eq(query)
157
+ : $(query).closest(selector.title)
158
+ : $(this).closest(selector.title),
159
+ $activeContent = $activeTitle.next($content),
160
+ isAnimating = $activeContent.hasClass(className.animating),
161
+ isActive = $activeContent.hasClass(className.active),
162
+ isOpen = (isActive || isAnimating)
163
+ ;
164
+ if(isOpen) {
165
+ module.debug('Accordion already open, skipping', $activeContent);
166
+ return;
167
+ }
168
+ module.debug('Opening accordion content', $activeTitle);
169
+ settings.onOpening.call($activeContent);
170
+ settings.onChanging.call($activeContent);
171
+ if(settings.exclusive) {
172
+ module.closeOthers.call($activeTitle);
173
+ }
174
+ $activeTitle
175
+ .addClass(className.active)
176
+ ;
177
+ $activeContent
178
+ .stop(true, true)
179
+ .addClass(className.animating)
180
+ ;
181
+ if(settings.animateChildren) {
182
+ if($.fn.transition !== undefined && $module.transition('is supported')) {
183
+ $activeContent
184
+ .children()
185
+ .transition({
186
+ animation : 'fade in',
187
+ queue : false,
188
+ useFailSafe : true,
189
+ debug : settings.debug,
190
+ verbose : settings.verbose,
191
+ duration : settings.duration,
192
+ skipInlineHidden : true,
193
+ onComplete: function() {
194
+ $activeContent.children().removeClass(className.transition);
195
+ }
196
+ })
197
+ ;
198
+ }
199
+ else {
200
+ $activeContent
201
+ .children()
202
+ .stop(true, true)
203
+ .animate({
204
+ opacity: 1
205
+ }, settings.duration, module.resetOpacity)
206
+ ;
207
+ }
208
+ }
209
+ $activeContent
210
+ .slideDown(settings.duration, settings.easing, function() {
211
+ $activeContent
212
+ .removeClass(className.animating)
213
+ .addClass(className.active)
214
+ ;
215
+ module.reset.display.call(this);
216
+ settings.onOpen.call(this);
217
+ settings.onChange.call(this);
218
+ })
219
+ ;
220
+ },
221
+
222
+ close: function(query) {
223
+ var
224
+ $activeTitle = (query !== undefined)
225
+ ? (typeof query === 'number')
226
+ ? $title.eq(query)
227
+ : $(query).closest(selector.title)
228
+ : $(this).closest(selector.title),
229
+ $activeContent = $activeTitle.next($content),
230
+ isAnimating = $activeContent.hasClass(className.animating),
231
+ isActive = $activeContent.hasClass(className.active),
232
+ isOpening = (!isActive && isAnimating),
233
+ isClosing = (isActive && isAnimating)
234
+ ;
235
+ if((isActive || isOpening) && !isClosing) {
236
+ module.debug('Closing accordion content', $activeContent);
237
+ settings.onClosing.call($activeContent);
238
+ settings.onChanging.call($activeContent);
239
+ $activeTitle
240
+ .removeClass(className.active)
241
+ ;
242
+ $activeContent
243
+ .stop(true, true)
244
+ .addClass(className.animating)
245
+ ;
246
+ if(settings.animateChildren) {
247
+ if($.fn.transition !== undefined && $module.transition('is supported')) {
248
+ $activeContent
249
+ .children()
250
+ .transition({
251
+ animation : 'fade out',
252
+ queue : false,
253
+ useFailSafe : true,
254
+ debug : settings.debug,
255
+ verbose : settings.verbose,
256
+ duration : settings.duration,
257
+ skipInlineHidden : true
258
+ })
259
+ ;
260
+ }
261
+ else {
262
+ $activeContent
263
+ .children()
264
+ .stop(true, true)
265
+ .animate({
266
+ opacity: 0
267
+ }, settings.duration, module.resetOpacity)
268
+ ;
269
+ }
270
+ }
271
+ $activeContent
272
+ .slideUp(settings.duration, settings.easing, function() {
273
+ $activeContent
274
+ .removeClass(className.animating)
275
+ .removeClass(className.active)
276
+ ;
277
+ module.reset.display.call(this);
278
+ settings.onClose.call(this);
279
+ settings.onChange.call(this);
280
+ })
281
+ ;
282
+ }
283
+ },
284
+
285
+ closeOthers: function(index) {
286
+ var
287
+ $activeTitle = (index !== undefined)
288
+ ? $title.eq(index)
289
+ : $(this).closest(selector.title),
290
+ $parentTitles = $activeTitle.parents(selector.content).prev(selector.title),
291
+ $activeAccordion = $activeTitle.closest(selector.accordion),
292
+ activeSelector = selector.title + '.' + className.active + ':visible',
293
+ activeContent = selector.content + '.' + className.active + ':visible',
294
+ $openTitles,
295
+ $nestedTitles,
296
+ $openContents
297
+ ;
298
+ if(settings.closeNested) {
299
+ $openTitles = $activeAccordion.find(activeSelector).not($parentTitles);
300
+ $openContents = $openTitles.next($content);
301
+ }
302
+ else {
303
+ $openTitles = $activeAccordion.find(activeSelector).not($parentTitles);
304
+ $nestedTitles = $activeAccordion.find(activeContent).find(activeSelector).not($parentTitles);
305
+ $openTitles = $openTitles.not($nestedTitles);
306
+ $openContents = $openTitles.next($content);
307
+ }
308
+ if( ($openTitles.length > 0) ) {
309
+ module.debug('Exclusive enabled, closing other content', $openTitles);
310
+ $openTitles
311
+ .removeClass(className.active)
312
+ ;
313
+ $openContents
314
+ .removeClass(className.animating)
315
+ .stop(true, true)
316
+ ;
317
+ if(settings.animateChildren) {
318
+ if($.fn.transition !== undefined && $module.transition('is supported')) {
319
+ $openContents
320
+ .children()
321
+ .transition({
322
+ animation : 'fade out',
323
+ useFailSafe : true,
324
+ debug : settings.debug,
325
+ verbose : settings.verbose,
326
+ duration : settings.duration,
327
+ skipInlineHidden : true
328
+ })
329
+ ;
330
+ }
331
+ else {
332
+ $openContents
333
+ .children()
334
+ .stop(true, true)
335
+ .animate({
336
+ opacity: 0
337
+ }, settings.duration, module.resetOpacity)
338
+ ;
339
+ }
340
+ }
341
+ $openContents
342
+ .slideUp(settings.duration , settings.easing, function() {
343
+ $(this).removeClass(className.active);
344
+ module.reset.display.call(this);
345
+ })
346
+ ;
347
+ }
348
+ },
349
+
350
+ reset: {
351
+
352
+ display: function() {
353
+ module.verbose('Removing inline display from element', this);
354
+ $(this).css('display', '');
355
+ if( $(this).attr('style') === '') {
356
+ $(this)
357
+ .attr('style', '')
358
+ .removeAttr('style')
359
+ ;
360
+ }
361
+ },
362
+
363
+ opacity: function() {
364
+ module.verbose('Removing inline opacity from element', this);
365
+ $(this).css('opacity', '');
366
+ if( $(this).attr('style') === '') {
367
+ $(this)
368
+ .attr('style', '')
369
+ .removeAttr('style')
370
+ ;
371
+ }
372
+ },
373
+
374
+ },
375
+
376
+ setting: function(name, value) {
377
+ module.debug('Changing setting', name, value);
378
+ if( $.isPlainObject(name) ) {
379
+ $.extend(true, settings, name);
380
+ }
381
+ else if(value !== undefined) {
382
+ if($.isPlainObject(settings[name])) {
383
+ $.extend(true, settings[name], value);
384
+ }
385
+ else {
386
+ settings[name] = value;
387
+ }
388
+ }
389
+ else {
390
+ return settings[name];
391
+ }
392
+ },
393
+ internal: function(name, value) {
394
+ module.debug('Changing internal', name, value);
395
+ if(value !== undefined) {
396
+ if( $.isPlainObject(name) ) {
397
+ $.extend(true, module, name);
398
+ }
399
+ else {
400
+ module[name] = value;
401
+ }
402
+ }
403
+ else {
404
+ return module[name];
405
+ }
406
+ },
407
+ debug: function() {
408
+ if(!settings.silent && settings.debug) {
409
+ if(settings.performance) {
410
+ module.performance.log(arguments);
411
+ }
412
+ else {
413
+ module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
414
+ module.debug.apply(console, arguments);
415
+ }
416
+ }
417
+ },
418
+ verbose: function() {
419
+ if(!settings.silent && settings.verbose && settings.debug) {
420
+ if(settings.performance) {
421
+ module.performance.log(arguments);
422
+ }
423
+ else {
424
+ module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
425
+ module.verbose.apply(console, arguments);
426
+ }
427
+ }
428
+ },
429
+ error: function() {
430
+ if(!settings.silent) {
431
+ module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
432
+ module.error.apply(console, arguments);
433
+ }
434
+ },
435
+ performance: {
436
+ log: function(message) {
437
+ var
438
+ currentTime,
439
+ executionTime,
440
+ previousTime
441
+ ;
442
+ if(settings.performance) {
443
+ currentTime = new Date().getTime();
444
+ previousTime = time || currentTime;
445
+ executionTime = currentTime - previousTime;
446
+ time = currentTime;
447
+ performance.push({
448
+ 'Name' : message[0],
449
+ 'Arguments' : [].slice.call(message, 1) || '',
450
+ 'Element' : element,
451
+ 'Execution Time' : executionTime
452
+ });
453
+ }
454
+ clearTimeout(module.performance.timer);
455
+ module.performance.timer = setTimeout(module.performance.display, 500);
456
+ },
457
+ display: function() {
458
+ var
459
+ title = settings.name + ':',
460
+ totalTime = 0
461
+ ;
462
+ time = false;
463
+ clearTimeout(module.performance.timer);
464
+ $.each(performance, function(index, data) {
465
+ totalTime += data['Execution Time'];
466
+ });
467
+ title += ' ' + totalTime + 'ms';
468
+ if(moduleSelector) {
469
+ title += ' \'' + moduleSelector + '\'';
470
+ }
471
+ if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
472
+ console.groupCollapsed(title);
473
+ if(console.table) {
474
+ console.table(performance);
475
+ }
476
+ else {
477
+ $.each(performance, function(index, data) {
478
+ console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
479
+ });
480
+ }
481
+ console.groupEnd();
482
+ }
483
+ performance = [];
484
+ }
485
+ },
486
+ invoke: function(query, passedArguments, context) {
487
+ var
488
+ object = instance,
489
+ maxDepth,
490
+ found,
491
+ response
492
+ ;
493
+ passedArguments = passedArguments || queryArguments;
494
+ context = element || context;
495
+ if(typeof query == 'string' && object !== undefined) {
496
+ query = query.split(/[\. ]/);
497
+ maxDepth = query.length - 1;
498
+ $.each(query, function(depth, value) {
499
+ var camelCaseValue = (depth != maxDepth)
500
+ ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
501
+ : query
502
+ ;
503
+ if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {
504
+ object = object[camelCaseValue];
505
+ }
506
+ else if( object[camelCaseValue] !== undefined ) {
507
+ found = object[camelCaseValue];
508
+ return false;
509
+ }
510
+ else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {
511
+ object = object[value];
512
+ }
513
+ else if( object[value] !== undefined ) {
514
+ found = object[value];
515
+ return false;
516
+ }
517
+ else {
518
+ module.error(error.method, query);
519
+ return false;
520
+ }
521
+ });
522
+ }
523
+ if ( $.isFunction( found ) ) {
524
+ response = found.apply(context, passedArguments);
525
+ }
526
+ else if(found !== undefined) {
527
+ response = found;
528
+ }
529
+ if(Array.isArray(returnedValue)) {
530
+ returnedValue.push(response);
531
+ }
532
+ else if(returnedValue !== undefined) {
533
+ returnedValue = [returnedValue, response];
534
+ }
535
+ else if(response !== undefined) {
536
+ returnedValue = response;
537
+ }
538
+ return found;
539
+ }
540
+ };
541
+ if(methodInvoked) {
542
+ if(instance === undefined) {
543
+ module.initialize();
544
+ }
545
+ module.invoke(query);
546
+ }
547
+ else {
548
+ if(instance !== undefined) {
549
+ instance.invoke('destroy');
550
+ }
551
+ module.initialize();
552
+ }
553
+ })
554
+ ;
555
+ return (returnedValue !== undefined)
556
+ ? returnedValue
557
+ : this
558
+ ;
559
+ };
560
+
561
+ $.fn.accordion.settings = {
562
+
563
+ name : 'Accordion',
564
+ namespace : 'accordion',
565
+
566
+ silent : false,
567
+ debug : false,
568
+ verbose : false,
569
+ performance : true,
570
+
571
+ on : 'click', // event on title that opens accordion
572
+
573
+ observeChanges : true, // whether accordion should automatically refresh on DOM insertion
574
+
575
+ exclusive : true, // whether a single accordion content panel should be open at once
576
+ collapsible : true, // whether accordion content can be closed
577
+ closeNested : false, // whether nested content should be closed when a panel is closed
578
+ animateChildren : true, // whether children opacity should be animated
579
+
580
+ duration : 350, // duration of animation
581
+ easing : 'easeOutQuad', // easing equation for animation
582
+
583
+ onOpening : function(){}, // callback before open animation
584
+ onClosing : function(){}, // callback before closing animation
585
+ onChanging : function(){}, // callback before closing or opening animation
586
+
587
+ onOpen : function(){}, // callback after open animation
588
+ onClose : function(){}, // callback after closing animation
589
+ onChange : function(){}, // callback after closing or opening animation
590
+
591
+ error: {
592
+ method : 'The method you called is not defined'
593
+ },
594
+
595
+ className : {
596
+ active : 'active',
597
+ animating : 'animating',
598
+ transition: 'transition'
599
+ },
600
+
601
+ selector : {
602
+ accordion : '.accordion',
603
+ title : '.title',
604
+ trigger : '.title',
605
+ content : '.content'
606
+ }
607
+
608
+ };
609
+
610
+ // Adds easing
611
+ $.extend( $.easing, {
612
+ easeOutQuad: function (x, t, b, c, d) {
613
+ return -c *(t/=d)*(t-2) + b;
614
+ }
615
+ });
616
+
617
+ })( jQuery, window, document );
618
+
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * # Fomantic-UI - Accordion
3
+ * http://github.com/fomantic/Fomantic-UI/
4
+ *
5
+ *
6
+ * Released under the MIT license
7
+ * http://opensource.org/licenses/MIT
8
+ *
9
+ */.ui.accordion,.ui.accordion .accordion{max-width:100%}.ui.accordion .accordion{margin:1em 0 0;padding:0}.ui.accordion .accordion .title,.ui.accordion .title{cursor:pointer}.ui.accordion .title:not(.ui){padding:.5em 0;font-family:"Josefin Sans",serif;font-size:1em;color:rgba(0,0,0,.87)}.ui.accordion:not(.styled) .accordion .title~.content:not(.ui),.ui.accordion:not(.styled) .title~.content:not(.ui){margin:'';padding:.5em 0 1em}.ui.accordion:not(.styled) .title~.content:not(.ui):last-child{padding-bottom:0}.ui.accordion .accordion .title .dropdown.icon,.ui.accordion .title .dropdown.icon{display:inline-block;float:none;opacity:1;width:1.25em;height:1em;margin:0 .25rem 0 0;padding:0;font-size:1em;-webkit-transition:opacity .1s ease,-webkit-transform .1s ease;transition:opacity .1s ease,-webkit-transform .1s ease;transition:transform .1s ease,opacity .1s ease;transition:transform .1s ease,opacity .1s ease,-webkit-transform .1s ease;vertical-align:baseline;-webkit-transform:none;transform:none}.ui.accordion.menu .item .title{display:block;padding:0}.ui.accordion.menu .item .title>.dropdown.icon{float:right;margin:.21425em 0 0 1em;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.ui.accordion .ui.header .dropdown.icon{font-size:1em;margin:0 .25rem 0 0}.ui.accordion .accordion .active.title .dropdown.icon,.ui.accordion .active.title .dropdown.icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ui.accordion.menu .item .active.title>.dropdown.icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ui.styled.accordion{width:600px}.ui.styled.accordion,.ui.styled.accordion .accordion{border-radius:0;background:#fff;-webkit-box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15);box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15)}.ui.styled.accordion .accordion .title,.ui.styled.accordion .title{margin:0;padding:.75em 1em;color:rgba(0,0,0,.4);font-weight:700;border-top:1px solid rgba(34,36,38,.15);-webkit-transition:background .1s ease,color .1s ease;transition:background .1s ease,color .1s ease}.ui.styled.accordion .accordion .title:first-child,.ui.styled.accordion>.title:first-child{border-top:none}.ui.styled.accordion .accordion .content,.ui.styled.accordion .content{margin:0;padding:.5em 1em 1.5em}.ui.styled.accordion .accordion .content{margin:0;padding:.5em 1em 1.5em}.ui.styled.accordion .accordion .active.title,.ui.styled.accordion .accordion .title:hover,.ui.styled.accordion .active.title,.ui.styled.accordion .title:hover{background:0 0;color:rgba(0,0,0,.87)}.ui.styled.accordion .accordion .active.title,.ui.styled.accordion .accordion .title:hover{background:0 0;color:rgba(0,0,0,.87)}.ui.styled.accordion .active.title{background:0 0;color:rgba(0,0,0,.95)}.ui.styled.accordion .accordion .active.title{background:0 0;color:rgba(0,0,0,.95)}.ui.accordion .accordion .title~.content:not(.active),.ui.accordion .title~.content:not(.active){display:none}.ui.fluid.accordion,.ui.fluid.accordion .accordion{width:100%}@font-face{font-family:Accordion;src:url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjB5AAAAC8AAAAYGNtYXAPfOIKAAABHAAAAExnYXNwAAAAEAAAAWgAAAAIZ2x5Zryj6HgAAAFwAAAAyGhlYWT/0IhHAAACOAAAADZoaGVhApkB5wAAAnAAAAAkaG10eAJuABIAAAKUAAAAGGxvY2EAjABWAAACrAAAAA5tYXhwAAgAFgAAArwAAAAgbmFtZfC1n04AAALcAAABPHBvc3QAAwAAAAAEGAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADw2gHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEADgAAAAKAAgAAgACAAEAIPDa//3//wAAAAAAIPDZ//3//wAB/+MPKwADAAEAAAAAAAAAAAAAAA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ADAAiAAEAAAAAAAQADABOAAEAAAAAAAUAFgAMAAEAAAAAAAYABgAuAAEAAAAAAAoANABaAAMAAQQJAAEADAAAAAMAAQQJAAIADgBAAAMAAQQJAAMADAAiAAMAAQQJAAQADABOAAMAAQQJAAUAFgAMAAMAAQQJAAYADAA0AAMAAQQJAAoANABaAHIAYQB0AGkAbgBnAFYAZQByAHMAaQBvAG4AIAAxAC4AMAByAGEAdABpAG4AZ3JhdGluZwByAGEAdABpAG4AZwBSAGUAZwB1AGwAYQByAHIAYQB0AGkAbgBnAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('woff');font-weight:400;font-style:normal}.ui.accordion .accordion .title .dropdown.icon,.ui.accordion .title .dropdown.icon{font-family:Accordion;line-height:1;-webkit-backface-visibility:hidden;backface-visibility:hidden;font-weight:400;font-style:normal;text-align:center}.ui.accordion .accordion .title .dropdown.icon:before,.ui.accordion .title .dropdown.icon:before{content:'\f0da'}
@@ -0,0 +1,11 @@
1
+ /*
2
+ * # Fomantic UI - 2.8.7
3
+ * https://github.com/fomantic/Fomantic-UI
4
+ * http://fomantic-ui.com/
5
+ *
6
+ * Copyright 2014 Contributors
7
+ * Released under the MIT license
8
+ * http://opensource.org/licenses/MIT
9
+ *
10
+ */
11
+ !function(T,k,F){"use strict";T.isFunction=T.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},k=void 0!==k&&k.Math==Math?k:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),T.fn.accordion=function(s){var h,v=T(this),b=(new Date).getTime(),y=[],C=s,O="string"==typeof C,x=[].slice.call(arguments,1);return v.each(function(){var e,a=T.isPlainObject(s)?T.extend(!0,{},T.fn.accordion.settings,s):T.extend({},T.fn.accordion.settings),l=a.className,n=a.namespace,c=a.selector,r=a.error,t="."+n,i="module-"+n,o=v.selector||"",d=T(this),u=d.find(c.title),g=d.find(c.content),f=this,p=d.data(i),m={initialize:function(){m.debug("Initializing",d),m.bind.events(),a.observeChanges&&m.observeChanges(),m.instantiate()},instantiate:function(){p=m,d.data(i,m)},destroy:function(){m.debug("Destroying previous instance",d),d.off(t).removeData(i)},refresh:function(){u=d.find(c.title),g=d.find(c.content)},observeChanges:function(){"MutationObserver"in k&&((e=new MutationObserver(function(e){m.debug("DOM tree modified, updating selector cache"),m.refresh()})).observe(f,{childList:!0,subtree:!0}),m.debug("Setting up mutation observer",e))},bind:{events:function(){m.debug("Binding delegated events"),d.on(a.on+t,c.trigger,m.event.click)}},event:{click:function(){m.toggle.call(this)}},toggle:function(e){var n=e!==F?"number"==typeof e?u.eq(e):T(e).closest(c.title):T(this).closest(c.title),t=n.next(g),i=t.hasClass(l.animating),e=t.hasClass(l.active),t=e&&!i,i=!e&&i;m.debug("Toggling visibility of content",n),t||i?a.collapsible?m.close.call(n):m.debug("Cannot close accordion content collapsing is disabled"):m.open.call(n)},open:function(e){var n=e!==F?"number"==typeof e?u.eq(e):T(e).closest(c.title):T(this).closest(c.title),t=n.next(g),e=t.hasClass(l.animating);t.hasClass(l.active)||e?m.debug("Accordion already open, skipping",t):(m.debug("Opening accordion content",n),a.onOpening.call(t),a.onChanging.call(t),a.exclusive&&m.closeOthers.call(n),n.addClass(l.active),t.stop(!0,!0).addClass(l.animating),a.animateChildren&&(T.fn.transition!==F&&d.transition("is supported")?t.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:a.debug,verbose:a.verbose,duration:a.duration,skipInlineHidden:!0,onComplete:function(){t.children().removeClass(l.transition)}}):t.children().stop(!0,!0).animate({opacity:1},a.duration,m.resetOpacity)),t.slideDown(a.duration,a.easing,function(){t.removeClass(l.animating).addClass(l.active),m.reset.display.call(this),a.onOpen.call(this),a.onChange.call(this)}))},close:function(e){var n=e!==F?"number"==typeof e?u.eq(e):T(e).closest(c.title):T(this).closest(c.title),t=n.next(g),i=t.hasClass(l.animating),e=t.hasClass(l.active);!e&&!(!e&&i)||e&&i||(m.debug("Closing accordion content",t),a.onClosing.call(t),a.onChanging.call(t),n.removeClass(l.active),t.stop(!0,!0).addClass(l.animating),a.animateChildren&&(T.fn.transition!==F&&d.transition("is supported")?t.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:a.debug,verbose:a.verbose,duration:a.duration,skipInlineHidden:!0}):t.children().stop(!0,!0).animate({opacity:0},a.duration,m.resetOpacity)),t.slideUp(a.duration,a.easing,function(){t.removeClass(l.animating).removeClass(l.active),m.reset.display.call(this),a.onClose.call(this),a.onChange.call(this)}))},closeOthers:function(e){var n,t=e!==F?u.eq(e):T(this).closest(c.title),i=t.parents(c.content).prev(c.title),o=t.closest(c.accordion),e=c.title+"."+l.active+":visible",t=c.content+"."+l.active+":visible",s=a.closeNested?(n=o.find(e).not(i)).next(g):(n=o.find(e).not(i),s=o.find(t).find(e).not(i),(n=n.not(s)).next(g));0<n.length&&(m.debug("Exclusive enabled, closing other content",n),n.removeClass(l.active),s.removeClass(l.animating).stop(!0,!0),a.animateChildren&&(T.fn.transition!==F&&d.transition("is supported")?s.children().transition({animation:"fade out",useFailSafe:!0,debug:a.debug,verbose:a.verbose,duration:a.duration,skipInlineHidden:!0}):s.children().stop(!0,!0).animate({opacity:0},a.duration,m.resetOpacity)),s.slideUp(a.duration,a.easing,function(){T(this).removeClass(l.active),m.reset.display.call(this)}))},reset:{display:function(){m.verbose("Removing inline display from element",this),T(this).css("display",""),""===T(this).attr("style")&&T(this).attr("style","").removeAttr("style")},opacity:function(){m.verbose("Removing inline opacity from element",this),T(this).css("opacity",""),""===T(this).attr("style")&&T(this).attr("style","").removeAttr("style")}},setting:function(e,n){if(m.debug("Changing setting",e,n),T.isPlainObject(e))T.extend(!0,a,e);else{if(n===F)return a[e];T.isPlainObject(a[e])?T.extend(!0,a[e],n):a[e]=n}},internal:function(e,n){if(m.debug("Changing internal",e,n),n===F)return m[e];T.isPlainObject(e)?T.extend(!0,m,e):m[e]=n},debug:function(){!a.silent&&a.debug&&(a.performance?m.performance.log(arguments):(m.debug=Function.prototype.bind.call(console.info,console,a.name+":"),m.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?m.performance.log(arguments):(m.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),m.verbose.apply(console,arguments)))},error:function(){a.silent||(m.error=Function.prototype.bind.call(console.error,console,a.name+":"),m.error.apply(console,arguments))},performance:{log:function(e){var n,t;a.performance&&(t=(n=(new Date).getTime())-(b||n),b=n,y.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:f,"Execution Time":t})),clearTimeout(m.performance.timer),m.performance.timer=setTimeout(m.performance.display,500)},display:function(){var e=a.name+":",t=0;b=!1,clearTimeout(m.performance.timer),T.each(y,function(e,n){t+=n["Execution Time"]}),e+=" "+t+"ms",o&&(e+=" '"+o+"'"),(console.group!==F||console.table!==F)&&0<y.length&&(console.groupCollapsed(e),console.table?console.table(y):T.each(y,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),y=[]}},invoke:function(i,e,n){var o,s,t,a=p;return e=e||x,n=f||n,"string"==typeof i&&a!==F&&(i=i.split(/[\. ]/),o=i.length-1,T.each(i,function(e,n){var t=e!=o?n+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(T.isPlainObject(a[t])&&e!=o)a=a[t];else{if(a[t]!==F)return s=a[t],!1;{if(!T.isPlainObject(a[n])||e==o)return a[n]!==F?s=a[n]:m.error(r.method,i),!1;a=a[n]}}})),T.isFunction(s)?t=s.apply(n,e):s!==F&&(t=s),Array.isArray(h)?h.push(t):h!==F?h=[h,t]:t!==F&&(h=t),s}};O?(p===F&&m.initialize(),m.invoke(C)):(p!==F&&p.invoke("destroy"),m.initialize())}),h!==F?h:this},T.fn.accordion.settings={name:"Accordion",namespace:"accordion",silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",observeChanges:!0,exclusive:!0,collapsible:!0,closeNested:!1,animateChildren:!0,duration:350,easing:"easeOutQuad",onOpening:function(){},onClosing:function(){},onChanging:function(){},onOpen:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",animating:"animating",transition:"transition"},selector:{accordion:".accordion",title:".title",trigger:".title",content:".content"}},T.extend(T.easing,{easeOutQuad:function(e,n,t,i,o){return-i*(n/=o)*(n-2)+t}})}(jQuery,window,void document);