rails-active-ui 0.3.0 → 0.3.2
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.
- checksums.yaml +4 -4
- data/app/javascript/ui/controllers/turbo_modal_controller.js +36 -0
- data/config/importmap.rb +1 -0
- data/formantic-ui/components/accordion.css +369 -0
- data/formantic-ui/components/accordion.js +595 -0
- data/formantic-ui/components/accordion.min.css +9 -0
- data/formantic-ui/components/accordion.min.js +11 -0
- data/formantic-ui/components/ad.css +264 -0
- data/formantic-ui/components/ad.min.css +10 -0
- data/formantic-ui/components/api.js +1225 -0
- data/formantic-ui/components/api.min.js +11 -0
- data/formantic-ui/components/breadcrumb.css +135 -0
- data/formantic-ui/components/breadcrumb.min.css +9 -0
- data/formantic-ui/components/button.css +4058 -0
- data/formantic-ui/components/button.min.css +9 -0
- data/formantic-ui/components/calendar.css +327 -0
- data/formantic-ui/components/calendar.js +2045 -0
- data/formantic-ui/components/calendar.min.css +9 -0
- data/formantic-ui/components/calendar.min.js +11 -0
- data/formantic-ui/components/card.css +1881 -0
- data/formantic-ui/components/card.min.css +9 -0
- data/formantic-ui/components/checkbox.css +785 -0
- data/formantic-ui/components/checkbox.js +888 -0
- data/formantic-ui/components/checkbox.min.css +9 -0
- data/formantic-ui/components/checkbox.min.js +11 -0
- data/formantic-ui/components/comment.css +283 -0
- data/formantic-ui/components/comment.min.css +9 -0
- data/formantic-ui/components/container.css +300 -0
- data/formantic-ui/components/container.min.css +9 -0
- data/formantic-ui/components/dimmer.css +367 -0
- data/formantic-ui/components/dimmer.js +732 -0
- data/formantic-ui/components/dimmer.min.css +9 -0
- data/formantic-ui/components/dimmer.min.js +11 -0
- data/formantic-ui/components/divider.css +287 -0
- data/formantic-ui/components/divider.min.css +9 -0
- data/formantic-ui/components/dropdown.css +2087 -0
- data/formantic-ui/components/dropdown.js +4432 -0
- data/formantic-ui/components/dropdown.min.css +9 -0
- data/formantic-ui/components/dropdown.min.js +11 -0
- data/formantic-ui/components/embed.css +155 -0
- data/formantic-ui/components/embed.js +688 -0
- data/formantic-ui/components/embed.min.css +9 -0
- data/formantic-ui/components/embed.min.js +11 -0
- data/formantic-ui/components/emoji.css +15311 -0
- data/formantic-ui/components/emoji.min.css +9 -0
- data/formantic-ui/components/feed.css +799 -0
- data/formantic-ui/components/feed.min.css +9 -0
- data/formantic-ui/components/flag.css +1149 -0
- data/formantic-ui/components/flag.min.css +9 -0
- data/formantic-ui/components/flyout.css +546 -0
- data/formantic-ui/components/flyout.js +1551 -0
- data/formantic-ui/components/flyout.min.css +9 -0
- data/formantic-ui/components/flyout.min.js +11 -0
- data/formantic-ui/components/form.css +1885 -0
- data/formantic-ui/components/form.js +2199 -0
- data/formantic-ui/components/form.min.css +9 -0
- data/formantic-ui/components/form.min.js +11 -0
- data/formantic-ui/components/grid.css +1952 -0
- data/formantic-ui/components/grid.min.css +9 -0
- data/formantic-ui/components/header.css +778 -0
- data/formantic-ui/components/header.min.css +9 -0
- data/formantic-ui/components/icon.css +7066 -0
- data/formantic-ui/components/icon.min.css +9 -0
- data/formantic-ui/components/image.css +315 -0
- data/formantic-ui/components/image.min.css +9 -0
- data/formantic-ui/components/input.css +1566 -0
- data/formantic-ui/components/input.min.css +9 -0
- data/formantic-ui/components/item.css +534 -0
- data/formantic-ui/components/item.min.css +9 -0
- data/formantic-ui/components/label.css +2114 -0
- data/formantic-ui/components/label.min.css +9 -0
- data/formantic-ui/components/list.css +955 -0
- data/formantic-ui/components/list.min.css +9 -0
- data/formantic-ui/components/loader.css +787 -0
- data/formantic-ui/components/loader.min.css +9 -0
- data/formantic-ui/components/menu.css +2131 -0
- data/formantic-ui/components/menu.min.css +9 -0
- data/formantic-ui/components/message.css +619 -0
- data/formantic-ui/components/message.min.css +9 -0
- data/formantic-ui/components/modal.css +779 -0
- data/formantic-ui/components/modal.js +1637 -0
- data/formantic-ui/components/modal.min.css +9 -0
- data/formantic-ui/components/modal.min.js +11 -0
- data/formantic-ui/components/nag.css +290 -0
- data/formantic-ui/components/nag.js +566 -0
- data/formantic-ui/components/nag.min.css +9 -0
- data/formantic-ui/components/nag.min.js +11 -0
- data/formantic-ui/components/placeholder.css +228 -0
- data/formantic-ui/components/placeholder.min.css +9 -0
- data/formantic-ui/components/popup.css +1184 -0
- data/formantic-ui/components/popup.js +1561 -0
- data/formantic-ui/components/popup.min.css +9 -0
- data/formantic-ui/components/popup.min.js +11 -0
- data/formantic-ui/components/progress.css +761 -0
- data/formantic-ui/components/progress.js +979 -0
- data/formantic-ui/components/progress.min.css +9 -0
- data/formantic-ui/components/progress.min.js +11 -0
- data/formantic-ui/components/rail.css +147 -0
- data/formantic-ui/components/rail.min.css +9 -0
- data/formantic-ui/components/rating.css +414 -0
- data/formantic-ui/components/rating.js +540 -0
- data/formantic-ui/components/rating.min.css +9 -0
- data/formantic-ui/components/rating.min.js +11 -0
- data/formantic-ui/components/reset.css +386 -0
- data/formantic-ui/components/reset.min.css +9 -0
- data/formantic-ui/components/reveal.css +277 -0
- data/formantic-ui/components/reveal.min.css +9 -0
- data/formantic-ui/components/search.css +541 -0
- data/formantic-ui/components/search.js +1641 -0
- data/formantic-ui/components/search.min.css +9 -0
- data/formantic-ui/components/search.min.js +11 -0
- data/formantic-ui/components/segment.css +1053 -0
- data/formantic-ui/components/segment.min.css +9 -0
- data/formantic-ui/components/shape.css +144 -0
- data/formantic-ui/components/shape.js +797 -0
- data/formantic-ui/components/shape.min.css +9 -0
- data/formantic-ui/components/shape.min.js +11 -0
- data/formantic-ui/components/sidebar.css +539 -0
- data/formantic-ui/components/sidebar.js +1054 -0
- data/formantic-ui/components/sidebar.min.css +9 -0
- data/formantic-ui/components/sidebar.min.js +11 -0
- data/formantic-ui/components/site.css +286 -0
- data/formantic-ui/components/site.js +455 -0
- data/formantic-ui/components/site.min.css +9 -0
- data/formantic-ui/components/site.min.js +11 -0
- data/formantic-ui/components/slider.css +926 -0
- data/formantic-ui/components/slider.js +1546 -0
- data/formantic-ui/components/slider.min.css +9 -0
- data/formantic-ui/components/slider.min.js +11 -0
- data/formantic-ui/components/state.js +697 -0
- data/formantic-ui/components/state.min.js +11 -0
- data/formantic-ui/components/statistic.css +586 -0
- data/formantic-ui/components/statistic.min.css +9 -0
- data/formantic-ui/components/step.css +1538 -0
- data/formantic-ui/components/step.min.css +9 -0
- data/formantic-ui/components/sticky.css +73 -0
- data/formantic-ui/components/sticky.js +917 -0
- data/formantic-ui/components/sticky.min.css +9 -0
- data/formantic-ui/components/sticky.min.js +11 -0
- data/formantic-ui/components/tab.css +84 -0
- data/formantic-ui/components/tab.js +967 -0
- data/formantic-ui/components/tab.min.css +9 -0
- data/formantic-ui/components/tab.min.js +11 -0
- data/formantic-ui/components/table.css +3473 -0
- data/formantic-ui/components/table.min.css +9 -0
- data/formantic-ui/components/text.css +155 -0
- data/formantic-ui/components/text.min.css +9 -0
- data/formantic-ui/components/toast.css +751 -0
- data/formantic-ui/components/toast.js +964 -0
- data/formantic-ui/components/toast.min.css +9 -0
- data/formantic-ui/components/toast.min.js +11 -0
- data/formantic-ui/components/transition.css +1148 -0
- data/formantic-ui/components/transition.js +1034 -0
- data/formantic-ui/components/transition.min.css +9 -0
- data/formantic-ui/components/transition.min.js +11 -0
- data/formantic-ui/components/visibility.js +1292 -0
- data/formantic-ui/components/visibility.min.js +11 -0
- data/formantic-ui/semantic.css +78485 -0
- data/formantic-ui/semantic.js +31036 -0
- data/formantic-ui/semantic.min.css +11 -0
- data/formantic-ui/semantic.min.js +11 -0
- data/formantic-ui/themes/basic/assets/fonts/LICENSE.txt +91 -0
- data/formantic-ui/themes/basic/assets/fonts/icons.woff +0 -0
- data/formantic-ui/themes/basic/assets/fonts/icons.woff2 +0 -0
- data/formantic-ui/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
- data/formantic-ui/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
- data/formantic-ui/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- data/formantic-ui/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
- data/formantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- data/formantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- data/formantic-ui/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- data/formantic-ui/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
- data/formantic-ui/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- data/formantic-ui/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
- data/formantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- data/formantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
- data/formantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- data/formantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
- data/formantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- data/formantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
- data/formantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- data/formantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
- data/formantic-ui/themes/default/assets/fonts/brand-icons.woff +0 -0
- data/formantic-ui/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- data/formantic-ui/themes/default/assets/fonts/icons.woff +0 -0
- data/formantic-ui/themes/default/assets/fonts/icons.woff2 +0 -0
- data/formantic-ui/themes/default/assets/fonts/outline-icons.woff +0 -0
- data/formantic-ui/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- data/formantic-ui/themes/famfamfam/assets/images/flags.png +0 -0
- data/formantic-ui/themes/github/assets/fonts/LICENSE.txt +94 -0
- data/formantic-ui/themes/github/assets/fonts/octicons.woff +0 -0
- data/formantic-ui/themes/github/assets/fonts/octicons.woff2 +0 -0
- data/formantic-ui/themes/material/assets/fonts/LICENSE.txt +202 -0
- data/formantic-ui/themes/material/assets/fonts/icons.woff +0 -0
- data/formantic-ui/themes/material/assets/fonts/icons.woff2 +0 -0
- data/lib/ui/version.rb +1 -1
- metadata +194 -1
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* # Fomantic-UI 2.9.4 - Site
|
|
3
|
+
* https://github.com/fomantic/Fomantic-UI/
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* Released under the MIT license
|
|
7
|
+
* https://opensource.org/licenses/MIT
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
(function ($, window, document) {
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
function isFunction(obj) {
|
|
15
|
+
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
window = window !== undefined && window.Math === Math
|
|
19
|
+
? window
|
|
20
|
+
: globalThis;
|
|
21
|
+
|
|
22
|
+
$.fn.site = function (parameters) {
|
|
23
|
+
var
|
|
24
|
+
time = Date.now(),
|
|
25
|
+
performance = [],
|
|
26
|
+
|
|
27
|
+
query = arguments[0],
|
|
28
|
+
methodInvoked = typeof query === 'string',
|
|
29
|
+
queryArguments = [].slice.call(arguments, 1),
|
|
30
|
+
|
|
31
|
+
settings = $.isPlainObject(parameters)
|
|
32
|
+
? $.extend(true, {}, $.site.settings, parameters)
|
|
33
|
+
: $.extend({}, $.site.settings),
|
|
34
|
+
|
|
35
|
+
namespace = settings.namespace,
|
|
36
|
+
error = settings.error,
|
|
37
|
+
|
|
38
|
+
moduleNamespace = 'module-' + namespace,
|
|
39
|
+
|
|
40
|
+
$document = $(document),
|
|
41
|
+
$module = $document,
|
|
42
|
+
element = this,
|
|
43
|
+
instance = $module.data(moduleNamespace),
|
|
44
|
+
|
|
45
|
+
module,
|
|
46
|
+
returnedValue
|
|
47
|
+
;
|
|
48
|
+
module = {
|
|
49
|
+
|
|
50
|
+
initialize: function () {
|
|
51
|
+
module.instantiate();
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
instantiate: function () {
|
|
55
|
+
module.verbose('Storing instance of site', module);
|
|
56
|
+
instance = module;
|
|
57
|
+
$module
|
|
58
|
+
.data(moduleNamespace, module)
|
|
59
|
+
;
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
normalize: function () {
|
|
63
|
+
// keep the function for backward compatibility
|
|
64
|
+
// eslint-disable-next-line no-useless-return
|
|
65
|
+
return;
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
fix: {
|
|
69
|
+
consoleClear: function () {
|
|
70
|
+
module.debug('Disabling programmatic console clearing');
|
|
71
|
+
window.console.clear = function () {};
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
moduleExists: function (name) {
|
|
76
|
+
return $.fn[name] !== undefined && $.fn[name].settings !== undefined;
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
enabled: {
|
|
80
|
+
modules: function (modules) {
|
|
81
|
+
var
|
|
82
|
+
enabledModules = []
|
|
83
|
+
;
|
|
84
|
+
modules = modules || settings.modules;
|
|
85
|
+
$.each(modules, function (index, name) {
|
|
86
|
+
if (module.moduleExists(name)) {
|
|
87
|
+
enabledModules.push(name);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
return enabledModules;
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
disabled: {
|
|
96
|
+
modules: function (modules) {
|
|
97
|
+
var
|
|
98
|
+
disabledModules = []
|
|
99
|
+
;
|
|
100
|
+
modules = modules || settings.modules;
|
|
101
|
+
$.each(modules, function (index, name) {
|
|
102
|
+
if (!module.moduleExists(name)) {
|
|
103
|
+
disabledModules.push(name);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
return disabledModules;
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
change: {
|
|
112
|
+
setting: function (setting, value, modules, modifyExisting) {
|
|
113
|
+
modules = typeof modules === 'string'
|
|
114
|
+
? (modules === 'all'
|
|
115
|
+
? settings.modules
|
|
116
|
+
: [modules])
|
|
117
|
+
: modules || settings.modules;
|
|
118
|
+
modifyExisting = modifyExisting !== undefined
|
|
119
|
+
? modifyExisting
|
|
120
|
+
: true;
|
|
121
|
+
$.each(modules, function (index, name) {
|
|
122
|
+
var
|
|
123
|
+
namespace = module.moduleExists(name)
|
|
124
|
+
? $.fn[name].settings.namespace || false
|
|
125
|
+
: true,
|
|
126
|
+
$existingModules
|
|
127
|
+
;
|
|
128
|
+
if (module.moduleExists(name)) {
|
|
129
|
+
module.verbose('Changing default setting', setting, value, name);
|
|
130
|
+
$.fn[name].settings[setting] = value;
|
|
131
|
+
if (modifyExisting && namespace) {
|
|
132
|
+
$existingModules = $(':data(module-' + namespace + ')');
|
|
133
|
+
if ($existingModules.length > 0) {
|
|
134
|
+
module.verbose('Modifying existing settings', $existingModules);
|
|
135
|
+
$existingModules[name]('setting', setting, value);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
},
|
|
141
|
+
settings: function (newSettings, modules, modifyExisting) {
|
|
142
|
+
modules = typeof modules === 'string'
|
|
143
|
+
? [modules]
|
|
144
|
+
: modules || settings.modules;
|
|
145
|
+
modifyExisting = modifyExisting !== undefined
|
|
146
|
+
? modifyExisting
|
|
147
|
+
: true;
|
|
148
|
+
$.each(modules, function (index, name) {
|
|
149
|
+
var
|
|
150
|
+
$existingModules
|
|
151
|
+
;
|
|
152
|
+
if (module.moduleExists(name)) {
|
|
153
|
+
module.verbose('Changing default setting', newSettings, name);
|
|
154
|
+
$.extend(true, $.fn[name].settings, newSettings);
|
|
155
|
+
if (modifyExisting && namespace) {
|
|
156
|
+
$existingModules = $(':data(module-' + namespace + ')');
|
|
157
|
+
if ($existingModules.length > 0) {
|
|
158
|
+
module.verbose('Modifying existing settings', $existingModules);
|
|
159
|
+
$existingModules[name]('setting', newSettings);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
enable: {
|
|
168
|
+
console: function () {
|
|
169
|
+
module.console(true);
|
|
170
|
+
},
|
|
171
|
+
debug: function (modules, modifyExisting) {
|
|
172
|
+
modules = modules || settings.modules;
|
|
173
|
+
module.debug('Enabling debug for modules', modules);
|
|
174
|
+
module.change.setting('debug', true, modules, modifyExisting);
|
|
175
|
+
},
|
|
176
|
+
verbose: function (modules, modifyExisting) {
|
|
177
|
+
modules = modules || settings.modules;
|
|
178
|
+
module.debug('Enabling verbose debug for modules', modules);
|
|
179
|
+
module.change.setting('verbose', true, modules, modifyExisting);
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
disable: {
|
|
183
|
+
console: function () {
|
|
184
|
+
module.console(false);
|
|
185
|
+
},
|
|
186
|
+
debug: function (modules, modifyExisting) {
|
|
187
|
+
modules = modules || settings.modules;
|
|
188
|
+
module.debug('Disabling debug for modules', modules);
|
|
189
|
+
module.change.setting('debug', false, modules, modifyExisting);
|
|
190
|
+
},
|
|
191
|
+
verbose: function (modules, modifyExisting) {
|
|
192
|
+
modules = modules || settings.modules;
|
|
193
|
+
module.debug('Disabling verbose debug for modules', modules);
|
|
194
|
+
module.change.setting('verbose', false, modules, modifyExisting);
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
console: function (enable) {
|
|
199
|
+
if (enable) {
|
|
200
|
+
if (instance.cache.console === undefined) {
|
|
201
|
+
module.error(error.console);
|
|
202
|
+
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
module.debug('Restoring console function');
|
|
206
|
+
window.console = instance.cache.console;
|
|
207
|
+
} else {
|
|
208
|
+
module.debug('Disabling console function');
|
|
209
|
+
instance.cache.console = window.console;
|
|
210
|
+
window.console = {
|
|
211
|
+
clear: function () {},
|
|
212
|
+
error: function () {},
|
|
213
|
+
group: function () {},
|
|
214
|
+
groupCollapsed: function () {},
|
|
215
|
+
groupEnd: function () {},
|
|
216
|
+
info: function () {},
|
|
217
|
+
log: function () {},
|
|
218
|
+
table: function () {},
|
|
219
|
+
warn: function () {},
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
|
|
224
|
+
destroy: function () {
|
|
225
|
+
module.verbose('Destroying previous site for', $module);
|
|
226
|
+
$module
|
|
227
|
+
.removeData(moduleNamespace)
|
|
228
|
+
;
|
|
229
|
+
},
|
|
230
|
+
|
|
231
|
+
cache: {},
|
|
232
|
+
|
|
233
|
+
setting: function (name, value) {
|
|
234
|
+
if ($.isPlainObject(name)) {
|
|
235
|
+
$.extend(true, settings, name);
|
|
236
|
+
} else if (value !== undefined) {
|
|
237
|
+
settings[name] = value;
|
|
238
|
+
} else {
|
|
239
|
+
return settings[name];
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
internal: function (name, value) {
|
|
243
|
+
if ($.isPlainObject(name)) {
|
|
244
|
+
$.extend(true, module, name);
|
|
245
|
+
} else if (value !== undefined) {
|
|
246
|
+
module[name] = value;
|
|
247
|
+
} else {
|
|
248
|
+
return module[name];
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
debug: function () {
|
|
252
|
+
if (settings.debug) {
|
|
253
|
+
if (settings.performance) {
|
|
254
|
+
module.performance.log(arguments);
|
|
255
|
+
} else {
|
|
256
|
+
module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
|
257
|
+
module.debug.apply(console, arguments);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
verbose: function () {
|
|
262
|
+
if (settings.verbose && settings.debug) {
|
|
263
|
+
if (settings.performance) {
|
|
264
|
+
module.performance.log(arguments);
|
|
265
|
+
} else {
|
|
266
|
+
module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
|
267
|
+
module.verbose.apply(console, arguments);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
error: function () {
|
|
272
|
+
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
|
|
273
|
+
module.error.apply(console, arguments);
|
|
274
|
+
},
|
|
275
|
+
performance: {
|
|
276
|
+
log: function (message) {
|
|
277
|
+
var
|
|
278
|
+
currentTime,
|
|
279
|
+
executionTime,
|
|
280
|
+
previousTime
|
|
281
|
+
;
|
|
282
|
+
if (settings.performance) {
|
|
283
|
+
currentTime = Date.now();
|
|
284
|
+
previousTime = time || currentTime;
|
|
285
|
+
executionTime = currentTime - previousTime;
|
|
286
|
+
time = currentTime;
|
|
287
|
+
performance.push({
|
|
288
|
+
Element: element,
|
|
289
|
+
Name: message[0],
|
|
290
|
+
Arguments: [].slice.call(message, 1) || '',
|
|
291
|
+
'Execution Time': executionTime,
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
clearTimeout(module.performance.timer);
|
|
295
|
+
module.performance.timer = setTimeout(function () {
|
|
296
|
+
module.performance.display();
|
|
297
|
+
}, 500);
|
|
298
|
+
},
|
|
299
|
+
display: function () {
|
|
300
|
+
var
|
|
301
|
+
title = settings.name + ':',
|
|
302
|
+
totalTime = 0
|
|
303
|
+
;
|
|
304
|
+
time = false;
|
|
305
|
+
clearTimeout(module.performance.timer);
|
|
306
|
+
$.each(performance, function (index, data) {
|
|
307
|
+
totalTime += data['Execution Time'];
|
|
308
|
+
});
|
|
309
|
+
title += ' ' + totalTime + 'ms';
|
|
310
|
+
if (performance.length > 0) {
|
|
311
|
+
console.groupCollapsed(title);
|
|
312
|
+
if (console.table) {
|
|
313
|
+
console.table(performance);
|
|
314
|
+
} else {
|
|
315
|
+
$.each(performance, function (index, data) {
|
|
316
|
+
console.log(data.Name + ': ' + data['Execution Time'] + 'ms');
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
console.groupEnd();
|
|
320
|
+
}
|
|
321
|
+
performance = [];
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
invoke: function (query, passedArguments, context) {
|
|
325
|
+
var
|
|
326
|
+
object = instance,
|
|
327
|
+
maxDepth,
|
|
328
|
+
found,
|
|
329
|
+
response
|
|
330
|
+
;
|
|
331
|
+
passedArguments = passedArguments || queryArguments;
|
|
332
|
+
context = context || element;
|
|
333
|
+
if (typeof query === 'string' && object !== undefined) {
|
|
334
|
+
query = query.split(/[ .]/);
|
|
335
|
+
maxDepth = query.length - 1;
|
|
336
|
+
$.each(query, function (depth, value) {
|
|
337
|
+
var camelCaseValue = depth !== maxDepth
|
|
338
|
+
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
|
339
|
+
: query
|
|
340
|
+
;
|
|
341
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
|
342
|
+
object = object[camelCaseValue];
|
|
343
|
+
} else if (object[camelCaseValue] !== undefined) {
|
|
344
|
+
found = object[camelCaseValue];
|
|
345
|
+
|
|
346
|
+
return false;
|
|
347
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
|
348
|
+
object = object[value];
|
|
349
|
+
} else if (object[value] !== undefined) {
|
|
350
|
+
found = object[value];
|
|
351
|
+
|
|
352
|
+
return false;
|
|
353
|
+
} else {
|
|
354
|
+
module.error(error.method, query);
|
|
355
|
+
|
|
356
|
+
return false;
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
if (isFunction(found)) {
|
|
361
|
+
response = found.apply(context, passedArguments);
|
|
362
|
+
} else if (found !== undefined) {
|
|
363
|
+
response = found;
|
|
364
|
+
}
|
|
365
|
+
if (Array.isArray(returnedValue)) {
|
|
366
|
+
returnedValue.push(response);
|
|
367
|
+
} else if (returnedValue !== undefined) {
|
|
368
|
+
returnedValue = [returnedValue, response];
|
|
369
|
+
} else if (response !== undefined) {
|
|
370
|
+
returnedValue = response;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
return found;
|
|
374
|
+
},
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
if (methodInvoked) {
|
|
378
|
+
if (instance === undefined) {
|
|
379
|
+
module.initialize();
|
|
380
|
+
}
|
|
381
|
+
module.invoke(query);
|
|
382
|
+
} else {
|
|
383
|
+
if (instance !== undefined) {
|
|
384
|
+
module.destroy();
|
|
385
|
+
}
|
|
386
|
+
module.initialize();
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
return returnedValue !== undefined
|
|
390
|
+
? returnedValue
|
|
391
|
+
: this;
|
|
392
|
+
};
|
|
393
|
+
$.site = $.fn.site;
|
|
394
|
+
|
|
395
|
+
$.site.settings = {
|
|
396
|
+
|
|
397
|
+
name: 'Site',
|
|
398
|
+
namespace: 'site',
|
|
399
|
+
|
|
400
|
+
error: {
|
|
401
|
+
console: 'Console cannot be restored, most likely it was overwritten outside of module',
|
|
402
|
+
method: 'The method you called is not defined.',
|
|
403
|
+
},
|
|
404
|
+
|
|
405
|
+
debug: false,
|
|
406
|
+
verbose: false,
|
|
407
|
+
performance: true,
|
|
408
|
+
|
|
409
|
+
modules: [
|
|
410
|
+
'accordion',
|
|
411
|
+
'api',
|
|
412
|
+
'calendar',
|
|
413
|
+
'checkbox',
|
|
414
|
+
'dimmer',
|
|
415
|
+
'dropdown',
|
|
416
|
+
'embed',
|
|
417
|
+
'flyout',
|
|
418
|
+
'form',
|
|
419
|
+
'modal',
|
|
420
|
+
'nag',
|
|
421
|
+
'popup',
|
|
422
|
+
'progress',
|
|
423
|
+
'rating',
|
|
424
|
+
'search',
|
|
425
|
+
'shape',
|
|
426
|
+
'sidebar',
|
|
427
|
+
'slider',
|
|
428
|
+
'state',
|
|
429
|
+
'sticky',
|
|
430
|
+
'tab',
|
|
431
|
+
'toast',
|
|
432
|
+
'transition',
|
|
433
|
+
'visibility',
|
|
434
|
+
],
|
|
435
|
+
|
|
436
|
+
siteNamespace: 'site',
|
|
437
|
+
namespaceStub: {
|
|
438
|
+
cache: {},
|
|
439
|
+
config: {},
|
|
440
|
+
sections: {},
|
|
441
|
+
section: {},
|
|
442
|
+
utilities: {},
|
|
443
|
+
},
|
|
444
|
+
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
// allows for selection of elements with data attributes
|
|
448
|
+
$.extend($.expr.pseudos, {
|
|
449
|
+
data: $.expr.createPseudo(function (dataName) {
|
|
450
|
+
return function (elem) {
|
|
451
|
+
return !!$.data(elem, dataName);
|
|
452
|
+
};
|
|
453
|
+
}),
|
|
454
|
+
});
|
|
455
|
+
})(jQuery, window, document);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* # Fomantic-UI 2.9.4 - Site
|
|
3
|
+
* https://github.com/fomantic/Fomantic-UI/
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* Released under the MIT license
|
|
7
|
+
* https://opensource.org/licenses/MIT
|
|
8
|
+
*
|
|
9
|
+
*/@font-face{font-family:Lato;src:url(../themes/default/assets/fonts/LatoLatin-Regular.woff2) format("woff2"),url(../themes/default/assets/fonts/LatoLatin-Regular.woff) format("woff");font-style:normal;font-weight:400;font-display:swap;text-rendering:optimizeLegibility;unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-017F,U+0192,U+0218-021B,U+0237,U+02C6-02C7,U+02C9,U+02D8-02DD,U+0394,U+03A9,U+03BC,U+03C0,U+1E80-1E85,U+2010,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20A3-20A4,U+20A7,U+20AC,U+2113,U+2122,U+2126,U+212E,U+2202,U+2206,U+220F,U+2211-2212,U+2215,U+2219-221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+F8FF,U+FB00-FB04}@font-face{font-family:Lato;src:url(../themes/default/assets/fonts/LatoLatin-Bold.woff2) format("woff2"),url(../themes/default/assets/fonts/LatoLatin-Bold.woff) format("woff");font-style:normal;font-weight:700;font-display:swap;text-rendering:optimizeLegibility;unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-017F,U+0192,U+0218-021B,U+0237,U+02C6-02C7,U+02C9,U+02D8-02DD,U+0394,U+03A9,U+03BC,U+03C0,U+1E80-1E85,U+2010,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20A3-20A4,U+20A7,U+20AC,U+2113,U+2122,U+2126,U+212E,U+2202,U+2206,U+220F,U+2211-2212,U+2215,U+2219-221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+F8FF,U+FB00-FB04}@font-face{font-family:Lato;src:url(../themes/default/assets/fonts/LatoLatin-Italic.woff2) format("woff2"),url(../themes/default/assets/fonts/LatoLatin-Italic.woff) format("woff");font-style:italic;font-weight:400;font-display:swap;text-rendering:optimizeLegibility;unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-017F,U+0192,U+0218-021B,U+0237,U+02C6-02C7,U+02C9,U+02D8-02DD,U+0394,U+03A9,U+03BC,U+03C0,U+1E80-1E85,U+2010,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20A3-20A4,U+20A7,U+20AC,U+2113,U+2122,U+2126,U+212E,U+2202,U+2206,U+220F,U+2211-2212,U+2215,U+2219-221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+F8FF,U+FB00-FB04}@font-face{font-family:Lato;src:url(../themes/default/assets/fonts/LatoLatin-BoldItalic.woff2) format("woff2"),url(../themes/default/assets/fonts/LatoLatin-BoldItalic.woff) format("woff");font-style:italic;font-weight:700;font-display:swap;text-rendering:optimizeLegibility;unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-017F,U+0192,U+0218-021B,U+0237,U+02C6-02C7,U+02C9,U+02D8-02DD,U+0394,U+03A9,U+03BC,U+03C0,U+1E80-1E85,U+2010,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20A3-20A4,U+20A7,U+20AC,U+2113,U+2122,U+2126,U+212E,U+2202,U+2206,U+220F,U+2211-2212,U+2215,U+2219-221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+F8FF,U+FB00-FB04}@font-face{font-family:Lato;src:url(../themes/default/assets/fonts/Lato-Regular.woff2) format("woff2"),url(../themes/default/assets/fonts/Lato-Regular.woff) format("woff");font-style:normal;font-weight:400;font-display:swap;text-rendering:optimizeLegibility;unicode-range:U+0180-0191,U+0193-0217,U+021C-0236,U+0238-02C5,U+02C8,U+02CA-02D7,U+02DE-036F,U+0374-0375,U+037A-037E,U+0384-038A,U+038C,U+038E-0393,U+0395-03A1,U+03A3-03A8,U+03AA-03BB,U+03BD-03BF,U+03C1-03CE,U+03D0-0486,U+0488-0513,U+1D00-1DCA,U+1DFE-1E7F,U+1E86-1E9B,U+1E9E,U+1EA0-1EF9,U+1F00-1F15,U+1F18-1F1D,U+1F20-1F45,U+1F48-1F4D,U+1F50-1F57,U+1F59,U+1F5B,U+1F5D,U+1F5F-1F7D,U+1F80-1FB4,U+1FB6-1FC4,U+1FC6-1FD3,U+1FD6-1FDB,U+1FDD-1FEF,U+1FF2-1FF4,U+1FF6-1FFE,U+2000-200F,U+2012,U+2015-2017,U+201B,U+201F,U+202F,U+2034,U+203C-203E,U+205E-205F,U+2070-2071,U+2074-2094,U+20A0-20A2,U+20A5-20A6,U+20A8-20AB,U+20AD-20B5,U+20B8-20BA,U+20DD,U+2105,U+2116-2117,U+2120,U+2132,U+214D-214E,U+2153-215F,U+2183-2184,U+2190-2199,U+21A8,U+221F,U+2229,U+2261,U+2302,U+2310,U+2320-2321,U+2460-2473,U+24EA-24F4,U+24FF-2500,U+2502,U+250C,U+2510,U+2514,U+2518,U+2C60-2C6C,U+2C74-2C77}@font-face{font-family:Lato;src:url(../themes/default/assets/fonts/Lato-Bold.woff2) format("woff2"),url(../themes/default/assets/fonts/Lato-Bold.woff) format("woff");font-style:normal;font-weight:700;font-display:swap;text-rendering:optimizeLegibility;unicode-range:U+0180-0191,U+0193-0217,U+021C-0236,U+0238-02C5,U+02C8,U+02CA-02D7,U+02DE-036F,U+0374-0375,U+037A-037E,U+0384-038A,U+038C,U+038E-0393,U+0395-03A1,U+03A3-03A8,U+03AA-03BB,U+03BD-03BF,U+03C1-03CE,U+03D0-0486,U+0488-0513,U+1D00-1DCA,U+1DFE-1E7F,U+1E86-1E9B,U+1E9E,U+1EA0-1EF9,U+1F00-1F15,U+1F18-1F1D,U+1F20-1F45,U+1F48-1F4D,U+1F50-1F57,U+1F59,U+1F5B,U+1F5D,U+1F5F-1F7D,U+1F80-1FB4,U+1FB6-1FC4,U+1FC6-1FD3,U+1FD6-1FDB,U+1FDD-1FEF,U+1FF2-1FF4,U+1FF6-1FFE,U+2000-200F,U+2012,U+2015-2017,U+201B,U+201F,U+202F,U+2034,U+203C-203E,U+205E-205F,U+2070-2071,U+2074-2094,U+20A0-20A2,U+20A5-20A6,U+20A8-20AB,U+20AD-20B5,U+20B8-20BA,U+20DD,U+2105,U+2116-2117,U+2120,U+2132,U+214D-214E,U+2153-215F,U+2183-2184,U+2190-2199,U+21A8,U+221F,U+2229,U+2261,U+2302,U+2310,U+2320-2321,U+2460-2473,U+24EA-24F4,U+24FF-2500,U+2502,U+250C,U+2510,U+2514,U+2518,U+2C60-2C6C,U+2C74-2C77}@font-face{font-family:Lato;src:url(../themes/default/assets/fonts/Lato-Italic.woff2) format("woff2"),url(../themes/default/assets/fonts/Lato-Italic.woff) format("woff");font-style:italic;font-weight:400;font-display:swap;text-rendering:optimizeLegibility;unicode-range:U+0180-0191,U+0193-0217,U+021C-0236,U+0238-02C5,U+02C8,U+02CA-02D7,U+02DE-036F,U+0374-0375,U+037A-037E,U+0384-038A,U+038C,U+038E-0393,U+0395-03A1,U+03A3-03A8,U+03AA-03BB,U+03BD-03BF,U+03C1-03CE,U+03D0-0486,U+0488-0513,U+1D00-1DCA,U+1DFE-1E7F,U+1E86-1E9B,U+1E9E,U+1EA0-1EF9,U+1F00-1F15,U+1F18-1F1D,U+1F20-1F45,U+1F48-1F4D,U+1F50-1F57,U+1F59,U+1F5B,U+1F5D,U+1F5F-1F7D,U+1F80-1FB4,U+1FB6-1FC4,U+1FC6-1FD3,U+1FD6-1FDB,U+1FDD-1FEF,U+1FF2-1FF4,U+1FF6-1FFE,U+2000-200F,U+2012,U+2015-2017,U+201B,U+201F,U+202F,U+2034,U+203C-203E,U+205E-205F,U+2070-2071,U+2074-2094,U+20A0-20A2,U+20A5-20A6,U+20A8-20AB,U+20AD-20B5,U+20B8-20BA,U+20DD,U+2105,U+2116-2117,U+2120,U+2132,U+214D-214E,U+2153-215F,U+2183-2184,U+2190-2199,U+21A8,U+221F,U+2229,U+2261,U+2302,U+2310,U+2320-2321,U+2460-2473,U+24EA-24F4,U+24FF-2500,U+2502,U+250C,U+2510,U+2514,U+2518,U+2C60-2C6C,U+2C74-2C77}@font-face{font-family:Lato;src:url(../themes/default/assets/fonts/Lato-BoldItalic.woff2) format("woff2"),url(../themes/default/assets/fonts/Lato-BoldItalic.woff) format("woff");font-style:italic;font-weight:700;font-display:swap;text-rendering:optimizeLegibility;unicode-range:U+0180-0191,U+0193-0217,U+021C-0236,U+0238-02C5,U+02C8,U+02CA-02D7,U+02DE-036F,U+0374-0375,U+037A-037E,U+0384-038A,U+038C,U+038E-0393,U+0395-03A1,U+03A3-03A8,U+03AA-03BB,U+03BD-03BF,U+03C1-03CE,U+03D0-0486,U+0488-0513,U+1D00-1DCA,U+1DFE-1E7F,U+1E86-1E9B,U+1E9E,U+1EA0-1EF9,U+1F00-1F15,U+1F18-1F1D,U+1F20-1F45,U+1F48-1F4D,U+1F50-1F57,U+1F59,U+1F5B,U+1F5D,U+1F5F-1F7D,U+1F80-1FB4,U+1FB6-1FC4,U+1FC6-1FD3,U+1FD6-1FDB,U+1FDD-1FEF,U+1FF2-1FF4,U+1FF6-1FFE,U+2000-200F,U+2012,U+2015-2017,U+201B,U+201F,U+202F,U+2034,U+203C-203E,U+205E-205F,U+2070-2071,U+2074-2094,U+20A0-20A2,U+20A5-20A6,U+20A8-20AB,U+20AD-20B5,U+20B8-20BA,U+20DD,U+2105,U+2116-2117,U+2120,U+2132,U+214D-214E,U+2153-215F,U+2183-2184,U+2190-2199,U+21A8,U+221F,U+2229,U+2261,U+2302,U+2310,U+2320-2321,U+2460-2473,U+24EA-24F4,U+24FF-2500,U+2502,U+250C,U+2510,U+2514,U+2518,U+2C60-2C6C,U+2C74-2C77}body,html{height:100%}html{font-size:14px}body{margin:0;padding:0;overflow-x:hidden;min-width:320px;background:#fff;font-family:Lato,system-ui,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:14px;line-height:1.4285em;color:rgba(0,0,0,.87)}h1,h2,h3,h4,h5{font-family:Lato,system-ui,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:1.28571429em;margin:calc(2rem - .1428571428571429em) 0 1rem;font-weight:700;padding:0}h1{min-height:1rem;font-size:2rem}h2{font-size:1.71428571rem}h3{font-size:1.28571429rem}h4{font-size:1.07142857rem}h5{font-size:1rem}h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child{margin-top:0}h1:last-child,h2:last-child,h3:last-child,h4:last-child,h5:last-child{margin-bottom:0}p{margin:0 0 1em;line-height:1.4285em}p:first-child{margin-top:0}p:last-child{margin-bottom:0}a{color:#4183c4;text-decoration:none}a:hover{color:#1e70bf;text-decoration:none}body ::-webkit-scrollbar{-webkit-appearance:none;width:10px;height:10px}body ::-webkit-scrollbar-track{background:rgba(0,0,0,.1);border-radius:0}body ::-webkit-scrollbar-thumb{cursor:pointer;border-radius:5px;background:rgba(0,0,0,.25);-webkit-transition:color .2s ease;transition:color .2s ease}body ::-webkit-scrollbar-thumb:window-inactive{background:rgba(0,0,0,.15)}body ::-webkit-scrollbar-thumb:hover{background:rgba(128,135,139,.8)}body .ui{scrollbar-face-color:#bfbfbf;scrollbar-shadow-color:#bfbfbf;scrollbar-track-color:#e6e6e6;scrollbar-arrow-color:#e6e6e6}@supports (-moz-appearance:none){body .ui{scrollbar-color:rgba(0,0,0,.25) rgba(0,0,0,.1);scrollbar-width:thin}}body .ui.inverted:not(.dimmer)::-webkit-scrollbar-track{background:rgba(255,255,255,.1)}body .ui.inverted:not(.dimmer)::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25)}body .ui.inverted:not(.dimmer)::-webkit-scrollbar-thumb:window-inactive{background:rgba(255,255,255,.15)}body .ui.inverted:not(.dimmer)::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.35)}body .ui.inverted:not(.dimmer){scrollbar-face-color:#656565;scrollbar-shadow-color:#656565;scrollbar-track-color:#323232;scrollbar-arrow-color:#323232}@supports (-moz-appearance:none){body .ui.inverted:not(.dimmer){scrollbar-color:rgba(255,255,255,.25) rgba(255,255,255,.1)}}::selection{background-color:#cce2ff;color:rgba(0,0,0,.87)}input::selection,textarea::selection{background-color:rgba(100,100,100,.4);color:rgba(0,0,0,.87)}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* # Fomantic UI - 2.9.4
|
|
3
|
+
* https://github.com/fomantic/Fomantic-UI
|
|
4
|
+
* https://fomantic-ui.com/
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Contributors
|
|
7
|
+
* Released under the MIT license
|
|
8
|
+
* https://opensource.org/licenses/MIT
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
!function(b,p,v){"use strict";p=void 0!==p&&p.Math===Math?p:globalThis,b.fn.site=function(e){var a,t=Date.now(),i=[],n=e,o="string"==typeof n,u=[].slice.call(arguments,1),r=b.isPlainObject(e)?b.extend(!0,{},b.site.settings,e):b.extend({},b.site.settings),s=r.namespace,l=r.error,c="module-"+s,d=b(v),f=this,g=d.data(c),m={initialize:function(){m.instantiate()},instantiate:function(){m.verbose("Storing instance of site",m),g=m,d.data(c,m)},normalize:function(){},fix:{consoleClear:function(){m.debug("Disabling programmatic console clearing"),p.console.clear=function(){}}},moduleExists:function(e){return void 0!==b.fn[e]&&void 0!==b.fn[e].settings},enabled:{modules:function(e){var o=[];return e=e||r.modules,b.each(e,function(e,n){m.moduleExists(n)&&o.push(n)}),o}},disabled:{modules:function(e){var o=[];return e=e||r.modules,b.each(e,function(e,n){m.moduleExists(n)||o.push(n)}),o}},change:{setting:function(t,i,e,s){e="string"==typeof e?"all"===e?r.modules:[e]:e||r.modules,s=void 0===s||s,b.each(e,function(e,n){var o=!m.moduleExists(n)||(b.fn[n].settings.namespace||!1);m.moduleExists(n)&&(m.verbose("Changing default setting",t,i,n),b.fn[n].settings[t]=i,s&&o&&0<(o=b(":data(module-"+o+")")).length&&(m.verbose("Modifying existing settings",o),o[n]("setting",t,i)))})},settings:function(t,e,i){e="string"==typeof e?[e]:e||r.modules,i=void 0===i||i,b.each(e,function(e,n){var o;m.moduleExists(n)&&(m.verbose("Changing default setting",t,n),b.extend(!0,b.fn[n].settings,t),i&&s&&0<(o=b(":data(module-"+s+")")).length&&(m.verbose("Modifying existing settings",o),o[n]("setting",t)))})}},enable:{console:function(){m.console(!0)},debug:function(e,n){e=e||r.modules,m.debug("Enabling debug for modules",e),m.change.setting("debug",!0,e,n)},verbose:function(e,n){e=e||r.modules,m.debug("Enabling verbose debug for modules",e),m.change.setting("verbose",!0,e,n)}},disable:{console:function(){m.console(!1)},debug:function(e,n){e=e||r.modules,m.debug("Disabling debug for modules",e),m.change.setting("debug",!1,e,n)},verbose:function(e,n){e=e||r.modules,m.debug("Disabling verbose debug for modules",e),m.change.setting("verbose",!1,e,n)}},console:function(e){e?void 0===g.cache.console?m.error(l.console):(m.debug("Restoring console function"),p.console=g.cache.console):(m.debug("Disabling console function"),g.cache.console=p.console,p.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},table:function(){},warn:function(){}})},destroy:function(){m.verbose("Destroying previous site for",d),d.removeData(c)},cache:{},setting:function(e,n){if(b.isPlainObject(e))b.extend(!0,r,e);else{if(void 0===n)return r[e];r[e]=n}},internal:function(e,n){if(b.isPlainObject(e))b.extend(!0,m,e);else{if(void 0===n)return m[e];m[e]=n}},debug:function(){r.debug&&(r.performance?m.performance.log(arguments):(m.debug=Function.prototype.bind.call(console.info,console,r.name+":"),m.debug.apply(console,arguments)))},verbose:function(){r.verbose&&r.debug&&(r.performance?m.performance.log(arguments):(m.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),m.verbose.apply(console,arguments)))},error:function(){m.error=Function.prototype.bind.call(console.error,console,r.name+":"),m.error.apply(console,arguments)},performance:{log:function(e){var n,o;r.performance&&(o=(n=Date.now())-(t||n),t=n,i.push({Element:f,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":o})),clearTimeout(m.performance.timer),m.performance.timer=setTimeout(function(){m.performance.display()},500)},display:function(){var e=r.name+":",o=0;t=!1,clearTimeout(m.performance.timer),b.each(i,function(e,n){o+=n["Execution Time"]}),e+=" "+o+"ms",0<i.length&&(console.groupCollapsed(e),console.table?console.table(i):b.each(i,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),i=[]}},invoke:function(t,e,n){var i,s,o,r,c=g;return e=e||u,n=n||f,"string"==typeof t&&void 0!==c&&(t=t.split(/[ .]/),i=t.length-1,b.each(t,function(e,n){var o=e!==i?n+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(b.isPlainObject(c[o])&&e!==i)c=c[o];else{if(void 0!==c[o])return s=c[o],!1;{if(!b.isPlainObject(c[n])||e===i)return void 0!==c[n]?s=c[n]:m.error(l.method,t),!1;c=c[n]}}})),"function"==typeof(r=s)&&"number"!=typeof r.nodeType?o=s.apply(n,e):void 0!==s&&(o=s),Array.isArray(a)?a.push(o):void 0!==a?a=[a,o]:void 0!==o&&(a=o),s}};return o?(void 0===g&&m.initialize(),m.invoke(n)):(void 0!==g&&m.destroy(),m.initialize()),void 0!==a?a:this},b.site=b.fn.site,b.site.settings={name:"Site",namespace:"site",error:{console:"Console cannot be restored, most likely it was overwritten outside of module",method:"The method you called is not defined."},debug:!1,verbose:!1,performance:!0,modules:["accordion","api","calendar","checkbox","dimmer","dropdown","embed","flyout","form","modal","nag","popup","progress","rating","search","shape","sidebar","slider","state","sticky","tab","toast","transition","visibility"],siteNamespace:"site",namespaceStub:{cache:{},config:{},sections:{},section:{},utilities:{}}},b.extend(b.expr.pseudos,{data:b.expr.createPseudo(function(n){return function(e){return!!b.data(e,n)}})})}(jQuery,window,document);
|