phcthemes_admin_panel_pack 1.5.0 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/common/bootstrap/bootstrap.bundle.js +864 -844
  3. data/app/assets/javascripts/common/bootstrap/bootstrap.js +4420 -0
  4. data/app/assets/javascripts/common/ckeditor/ckeditor.js +2 -2
  5. data/app/assets/javascripts/common/ckeditor/ckeditor.js.map +1 -1
  6. data/app/assets/javascripts/common/ckeditor/translations/af.js +1 -1
  7. data/app/assets/javascripts/common/ckeditor/translations/ar.js +1 -1
  8. data/app/assets/javascripts/common/ckeditor/translations/ast.js +1 -1
  9. data/app/assets/javascripts/common/ckeditor/translations/az.js +1 -1
  10. data/app/assets/javascripts/common/ckeditor/translations/bg.js +1 -1
  11. data/app/assets/javascripts/common/ckeditor/translations/ca.js +1 -1
  12. data/app/assets/javascripts/common/ckeditor/translations/cs.js +1 -1
  13. data/app/assets/javascripts/common/ckeditor/translations/da.js +1 -1
  14. data/app/assets/javascripts/common/ckeditor/translations/de-ch.js +1 -1
  15. data/app/assets/javascripts/common/ckeditor/translations/de.js +1 -1
  16. data/app/assets/javascripts/common/ckeditor/translations/el.js +1 -1
  17. data/app/assets/javascripts/common/ckeditor/translations/en-au.js +1 -1
  18. data/app/assets/javascripts/common/ckeditor/translations/en-gb.js +1 -1
  19. data/app/assets/javascripts/common/ckeditor/translations/eo.js +1 -1
  20. data/app/assets/javascripts/common/ckeditor/translations/es.js +1 -1
  21. data/app/assets/javascripts/common/ckeditor/translations/et.js +1 -1
  22. data/app/assets/javascripts/common/ckeditor/translations/eu.js +1 -1
  23. data/app/assets/javascripts/common/ckeditor/translations/fa.js +1 -1
  24. data/app/assets/javascripts/common/ckeditor/translations/fi.js +1 -1
  25. data/app/assets/javascripts/common/ckeditor/translations/fr.js +1 -1
  26. data/app/assets/javascripts/common/ckeditor/translations/gl.js +1 -1
  27. data/app/assets/javascripts/common/ckeditor/translations/gu.js +1 -1
  28. data/app/assets/javascripts/common/ckeditor/translations/he.js +1 -1
  29. data/app/assets/javascripts/common/ckeditor/translations/hr.js +1 -1
  30. data/app/assets/javascripts/common/ckeditor/translations/hu.js +1 -1
  31. data/app/assets/javascripts/common/ckeditor/translations/id.js +1 -1
  32. data/app/assets/javascripts/common/ckeditor/translations/it.js +1 -1
  33. data/app/assets/javascripts/common/ckeditor/translations/ja.js +1 -1
  34. data/app/assets/javascripts/common/ckeditor/translations/km.js +1 -1
  35. data/app/assets/javascripts/common/ckeditor/translations/kn.js +1 -1
  36. data/app/assets/javascripts/common/ckeditor/translations/ko.js +1 -1
  37. data/app/assets/javascripts/common/ckeditor/translations/ku.js +1 -1
  38. data/app/assets/javascripts/common/ckeditor/translations/lt.js +1 -1
  39. data/app/assets/javascripts/common/ckeditor/translations/lv.js +1 -1
  40. data/app/assets/javascripts/common/ckeditor/translations/ms.js +1 -0
  41. data/app/assets/javascripts/common/ckeditor/translations/nb.js +1 -1
  42. data/app/assets/javascripts/common/ckeditor/translations/ne.js +1 -1
  43. data/app/assets/javascripts/common/ckeditor/translations/nl.js +1 -1
  44. data/app/assets/javascripts/common/ckeditor/translations/no.js +1 -1
  45. data/app/assets/javascripts/common/ckeditor/translations/oc.js +1 -1
  46. data/app/assets/javascripts/common/ckeditor/translations/pl.js +1 -1
  47. data/app/assets/javascripts/common/ckeditor/translations/pt-br.js +1 -1
  48. data/app/assets/javascripts/common/ckeditor/translations/pt.js +1 -1
  49. data/app/assets/javascripts/common/ckeditor/translations/ro.js +1 -1
  50. data/app/assets/javascripts/common/ckeditor/translations/ru.js +1 -1
  51. data/app/assets/javascripts/common/ckeditor/translations/si.js +1 -1
  52. data/app/assets/javascripts/common/ckeditor/translations/sk.js +1 -1
  53. data/app/assets/javascripts/common/ckeditor/translations/sl.js +1 -1
  54. data/app/assets/javascripts/common/ckeditor/translations/sq.js +1 -1
  55. data/app/assets/javascripts/common/ckeditor/translations/sr-latn.js +1 -1
  56. data/app/assets/javascripts/common/ckeditor/translations/sr.js +1 -1
  57. data/app/assets/javascripts/common/ckeditor/translations/sv.js +1 -1
  58. data/app/assets/javascripts/common/ckeditor/translations/th.js +1 -0
  59. data/app/assets/javascripts/common/ckeditor/translations/tr.js +1 -1
  60. data/app/assets/javascripts/common/ckeditor/translations/tt.js +1 -1
  61. data/app/assets/javascripts/common/ckeditor/translations/ug.js +1 -1
  62. data/app/assets/javascripts/common/ckeditor/translations/uk.js +1 -1
  63. data/app/assets/javascripts/common/ckeditor/translations/vi.js +1 -1
  64. data/app/assets/javascripts/common/ckeditor/translations/zh-cn.js +1 -1
  65. data/app/assets/javascripts/common/ckeditor/translations/zh.js +1 -1
  66. data/app/assets/javascripts/common/covervid/covervid.min.js +1 -0
  67. data/app/assets/javascripts/common/lazysizes/lazysizes.js +754 -0
  68. data/app/assets/javascripts/common/nouislider/nouislider.js +2637 -0
  69. data/app/assets/javascripts/common/scrollme/jquery.scrollme.js +455 -0
  70. data/app/assets/javascripts/common/slick/slick.js +3004 -0
  71. data/app/assets/javascripts/common/wow/wow.js +508 -0
  72. data/app/assets/stylesheets/phcthemes_admin_panel_pack_adminlte.scss +3 -3
  73. data/app/assets/stylesheets/phcthemes_admin_panel_pack_boomerang.scss +3 -3
  74. data/app/assets/stylesheets/phcthemes_admin_panel_pack_coloradmin.scss +2 -2
  75. data/app/assets/stylesheets/phcthemes_admin_panel_pack_inspinia.scss +3 -3
  76. data/app/assets/stylesheets/phcthemes_admin_panel_pack_metronic.scss +2 -2
  77. data/app/assets/stylesheets/phcthemes_admin_panel_pack_quilpro.scss +3 -3
  78. data/app/assets/stylesheets/phcthemes_admin_panel_pack_starlight.scss +3 -3
  79. data/lib/phcthemes_admin_panel_pack/engine.rb +1 -0
  80. data/lib/phcthemes_admin_panel_pack/version.rb +1 -1
  81. metadata +35 -7
  82. data/app/assets/stylesheets/common/phcdevworks/hanna_hearts/hanna_hearts.scss +0 -11
@@ -0,0 +1,508 @@
1
+ (function() {
2
+ var MutationObserver, Util, WeakMap, getComputedStyle, getComputedStyleRX,
3
+ bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
4
+ indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
5
+
6
+ Util = (function() {
7
+ function Util() {}
8
+
9
+ Util.prototype.extend = function(custom, defaults) {
10
+ var key, value;
11
+ for (key in defaults) {
12
+ value = defaults[key];
13
+ if (custom[key] == null) {
14
+ custom[key] = value;
15
+ }
16
+ }
17
+ return custom;
18
+ };
19
+
20
+ Util.prototype.isMobile = function(agent) {
21
+ return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(agent);
22
+ };
23
+
24
+ Util.prototype.createEvent = function(event, bubble, cancel, detail) {
25
+ var customEvent;
26
+ if (bubble == null) {
27
+ bubble = false;
28
+ }
29
+ if (cancel == null) {
30
+ cancel = false;
31
+ }
32
+ if (detail == null) {
33
+ detail = null;
34
+ }
35
+ if (document.createEvent != null) {
36
+ customEvent = document.createEvent('CustomEvent');
37
+ customEvent.initCustomEvent(event, bubble, cancel, detail);
38
+ } else if (document.createEventObject != null) {
39
+ customEvent = document.createEventObject();
40
+ customEvent.eventType = event;
41
+ } else {
42
+ customEvent.eventName = event;
43
+ }
44
+ return customEvent;
45
+ };
46
+
47
+ Util.prototype.emitEvent = function(elem, event) {
48
+ if (elem.dispatchEvent != null) {
49
+ return elem.dispatchEvent(event);
50
+ } else if (event in (elem != null)) {
51
+ return elem[event]();
52
+ } else if (("on" + event) in (elem != null)) {
53
+ return elem["on" + event]();
54
+ }
55
+ };
56
+
57
+ Util.prototype.addEvent = function(elem, event, fn) {
58
+ if (elem.addEventListener != null) {
59
+ return elem.addEventListener(event, fn, false);
60
+ } else if (elem.attachEvent != null) {
61
+ return elem.attachEvent("on" + event, fn);
62
+ } else {
63
+ return elem[event] = fn;
64
+ }
65
+ };
66
+
67
+ Util.prototype.removeEvent = function(elem, event, fn) {
68
+ if (elem.removeEventListener != null) {
69
+ return elem.removeEventListener(event, fn, false);
70
+ } else if (elem.detachEvent != null) {
71
+ return elem.detachEvent("on" + event, fn);
72
+ } else {
73
+ return delete elem[event];
74
+ }
75
+ };
76
+
77
+ Util.prototype.innerHeight = function() {
78
+ if ('innerHeight' in window) {
79
+ return window.innerHeight;
80
+ } else {
81
+ return document.documentElement.clientHeight;
82
+ }
83
+ };
84
+
85
+ return Util;
86
+
87
+ })();
88
+
89
+ WeakMap = this.WeakMap || this.MozWeakMap || (WeakMap = (function() {
90
+ function WeakMap() {
91
+ this.keys = [];
92
+ this.values = [];
93
+ }
94
+
95
+ WeakMap.prototype.get = function(key) {
96
+ var i, item, j, len, ref;
97
+ ref = this.keys;
98
+ for (i = j = 0, len = ref.length; j < len; i = ++j) {
99
+ item = ref[i];
100
+ if (item === key) {
101
+ return this.values[i];
102
+ }
103
+ }
104
+ };
105
+
106
+ WeakMap.prototype.set = function(key, value) {
107
+ var i, item, j, len, ref;
108
+ ref = this.keys;
109
+ for (i = j = 0, len = ref.length; j < len; i = ++j) {
110
+ item = ref[i];
111
+ if (item === key) {
112
+ this.values[i] = value;
113
+ return;
114
+ }
115
+ }
116
+ this.keys.push(key);
117
+ return this.values.push(value);
118
+ };
119
+
120
+ return WeakMap;
121
+
122
+ })());
123
+
124
+ MutationObserver = this.MutationObserver || this.WebkitMutationObserver || this.MozMutationObserver || (MutationObserver = (function() {
125
+ function MutationObserver() {
126
+ if (typeof console !== "undefined" && console !== null) {
127
+ console.warn('MutationObserver is not supported by your browser.');
128
+ }
129
+ if (typeof console !== "undefined" && console !== null) {
130
+ console.warn('WOW.js cannot detect dom mutations, please call .sync() after loading new content.');
131
+ }
132
+ }
133
+
134
+ MutationObserver.notSupported = true;
135
+
136
+ MutationObserver.prototype.observe = function() {};
137
+
138
+ return MutationObserver;
139
+
140
+ })());
141
+
142
+ getComputedStyle = this.getComputedStyle || function(el, pseudo) {
143
+ this.getPropertyValue = function(prop) {
144
+ var ref;
145
+ if (prop === 'float') {
146
+ prop = 'styleFloat';
147
+ }
148
+ if (getComputedStyleRX.test(prop)) {
149
+ prop.replace(getComputedStyleRX, function(_, _char) {
150
+ return _char.toUpperCase();
151
+ });
152
+ }
153
+ return ((ref = el.currentStyle) != null ? ref[prop] : void 0) || null;
154
+ };
155
+ return this;
156
+ };
157
+
158
+ getComputedStyleRX = /(\-([a-z]){1})/g;
159
+
160
+ this.WOW = (function() {
161
+ WOW.prototype.defaults = {
162
+ boxClass: 'wow',
163
+ animateClass: 'animated',
164
+ offset: 0,
165
+ mobile: true,
166
+ live: true,
167
+ callback: null
168
+ };
169
+
170
+ function WOW(options) {
171
+ if (options == null) {
172
+ options = {};
173
+ }
174
+ this.scrollCallback = bind(this.scrollCallback, this);
175
+ this.scrollHandler = bind(this.scrollHandler, this);
176
+ this.start = bind(this.start, this);
177
+ this.scrolled = true;
178
+ this.config = this.util().extend(options, this.defaults);
179
+ this.animationNameCache = new WeakMap();
180
+ this.wowEvent = this.util().createEvent(this.config.boxClass);
181
+ }
182
+
183
+ WOW.prototype.init = function() {
184
+ var ref;
185
+ this.element = window.document.documentElement;
186
+ if ((ref = document.readyState) === "interactive" || ref === "complete") {
187
+ this.start();
188
+ } else {
189
+ this.util().addEvent(document, 'DOMContentLoaded', this.start);
190
+ }
191
+ return this.finished = [];
192
+ };
193
+
194
+ WOW.prototype.start = function() {
195
+ var box, j, len, ref;
196
+ this.stopped = false;
197
+ this.boxes = (function() {
198
+ var j, len, ref, results;
199
+ ref = this.element.querySelectorAll("." + this.config.boxClass);
200
+ results = [];
201
+ for (j = 0, len = ref.length; j < len; j++) {
202
+ box = ref[j];
203
+ results.push(box);
204
+ }
205
+ return results;
206
+ }).call(this);
207
+ this.all = (function() {
208
+ var j, len, ref, results;
209
+ ref = this.boxes;
210
+ results = [];
211
+ for (j = 0, len = ref.length; j < len; j++) {
212
+ box = ref[j];
213
+ results.push(box);
214
+ }
215
+ return results;
216
+ }).call(this);
217
+ if (this.boxes.length) {
218
+ if (this.disabled()) {
219
+ this.resetStyle();
220
+ } else {
221
+ ref = this.boxes;
222
+ for (j = 0, len = ref.length; j < len; j++) {
223
+ box = ref[j];
224
+ this.applyStyle(box, true);
225
+ }
226
+ }
227
+ }
228
+ if (!this.disabled()) {
229
+ this.util().addEvent(window, 'scroll', this.scrollHandler);
230
+ this.util().addEvent(window, 'resize', this.scrollHandler);
231
+ this.interval = setInterval(this.scrollCallback, 50);
232
+ }
233
+ if (this.config.live) {
234
+ return new MutationObserver((function(_this) {
235
+ return function(records) {
236
+ var k, len1, node, record, results;
237
+ results = [];
238
+ for (k = 0, len1 = records.length; k < len1; k++) {
239
+ record = records[k];
240
+ results.push((function() {
241
+ var l, len2, ref1, results1;
242
+ ref1 = record.addedNodes || [];
243
+ results1 = [];
244
+ for (l = 0, len2 = ref1.length; l < len2; l++) {
245
+ node = ref1[l];
246
+ results1.push(this.doSync(node));
247
+ }
248
+ return results1;
249
+ }).call(_this));
250
+ }
251
+ return results;
252
+ };
253
+ })(this)).observe(document.body, {
254
+ childList: true,
255
+ subtree: true
256
+ });
257
+ }
258
+ };
259
+
260
+ WOW.prototype.stop = function() {
261
+ this.stopped = true;
262
+ this.util().removeEvent(window, 'scroll', this.scrollHandler);
263
+ this.util().removeEvent(window, 'resize', this.scrollHandler);
264
+ if (this.interval != null) {
265
+ return clearInterval(this.interval);
266
+ }
267
+ };
268
+
269
+ WOW.prototype.sync = function(element) {
270
+ if (MutationObserver.notSupported) {
271
+ return this.doSync(this.element);
272
+ }
273
+ };
274
+
275
+ WOW.prototype.doSync = function(element) {
276
+ var box, j, len, ref, results;
277
+ if (element == null) {
278
+ element = this.element;
279
+ }
280
+ if (element.nodeType !== 1) {
281
+ return;
282
+ }
283
+ element = element.parentNode || element;
284
+ ref = element.querySelectorAll("." + this.config.boxClass);
285
+ results = [];
286
+ for (j = 0, len = ref.length; j < len; j++) {
287
+ box = ref[j];
288
+ if (indexOf.call(this.all, box) < 0) {
289
+ this.boxes.push(box);
290
+ this.all.push(box);
291
+ if (this.stopped || this.disabled()) {
292
+ this.resetStyle();
293
+ } else {
294
+ this.applyStyle(box, true);
295
+ }
296
+ results.push(this.scrolled = true);
297
+ } else {
298
+ results.push(void 0);
299
+ }
300
+ }
301
+ return results;
302
+ };
303
+
304
+ WOW.prototype.show = function(box) {
305
+ this.applyStyle(box);
306
+ box.className = box.className + " " + this.config.animateClass;
307
+ if (this.config.callback != null) {
308
+ this.config.callback(box);
309
+ }
310
+ this.util().emitEvent(box, this.wowEvent);
311
+ this.util().addEvent(box, 'animationend', this.resetAnimation);
312
+ this.util().addEvent(box, 'oanimationend', this.resetAnimation);
313
+ this.util().addEvent(box, 'webkitAnimationEnd', this.resetAnimation);
314
+ this.util().addEvent(box, 'MSAnimationEnd', this.resetAnimation);
315
+ return box;
316
+ };
317
+
318
+ WOW.prototype.applyStyle = function(box, hidden) {
319
+ var delay, duration, iteration;
320
+ duration = box.getAttribute('data-wow-duration');
321
+ delay = box.getAttribute('data-wow-delay');
322
+ iteration = box.getAttribute('data-wow-iteration');
323
+ return this.animate((function(_this) {
324
+ return function() {
325
+ return _this.customStyle(box, hidden, duration, delay, iteration);
326
+ };
327
+ })(this));
328
+ };
329
+
330
+ WOW.prototype.animate = (function() {
331
+ if ('requestAnimationFrame' in window) {
332
+ return function(callback) {
333
+ return window.requestAnimationFrame(callback);
334
+ };
335
+ } else {
336
+ return function(callback) {
337
+ return callback();
338
+ };
339
+ }
340
+ })();
341
+
342
+ WOW.prototype.resetStyle = function() {
343
+ var box, j, len, ref, results;
344
+ ref = this.boxes;
345
+ results = [];
346
+ for (j = 0, len = ref.length; j < len; j++) {
347
+ box = ref[j];
348
+ results.push(box.style.visibility = 'visible');
349
+ }
350
+ return results;
351
+ };
352
+
353
+ WOW.prototype.resetAnimation = function(event) {
354
+ var target;
355
+ if (event.type.toLowerCase().indexOf('animationend') >= 0) {
356
+ target = event.target || event.srcElement;
357
+ return target.className = target.className.replace(config.animateClass, '').trim();
358
+ }
359
+ };
360
+
361
+ WOW.prototype.customStyle = function(box, hidden, duration, delay, iteration) {
362
+ if (hidden) {
363
+ this.cacheAnimationName(box);
364
+ }
365
+ box.style.visibility = hidden ? 'hidden' : 'visible';
366
+ if (duration) {
367
+ this.vendorSet(box.style, {
368
+ animationDuration: duration
369
+ });
370
+ }
371
+ if (delay) {
372
+ this.vendorSet(box.style, {
373
+ animationDelay: delay
374
+ });
375
+ }
376
+ if (iteration) {
377
+ this.vendorSet(box.style, {
378
+ animationIterationCount: iteration
379
+ });
380
+ }
381
+ this.vendorSet(box.style, {
382
+ animationName: hidden ? 'none' : this.cachedAnimationName(box)
383
+ });
384
+ return box;
385
+ };
386
+
387
+ WOW.prototype.vendors = ["moz", "webkit"];
388
+
389
+ WOW.prototype.vendorSet = function(elem, properties) {
390
+ var name, results, value, vendor;
391
+ results = [];
392
+ for (name in properties) {
393
+ value = properties[name];
394
+ elem["" + name] = value;
395
+ results.push((function() {
396
+ var j, len, ref, results1;
397
+ ref = this.vendors;
398
+ results1 = [];
399
+ for (j = 0, len = ref.length; j < len; j++) {
400
+ vendor = ref[j];
401
+ results1.push(elem["" + vendor + (name.charAt(0).toUpperCase()) + (name.substr(1))] = value);
402
+ }
403
+ return results1;
404
+ }).call(this));
405
+ }
406
+ return results;
407
+ };
408
+
409
+ WOW.prototype.vendorCSS = function(elem, property) {
410
+ var j, len, ref, result, style, vendor;
411
+ style = getComputedStyle(elem);
412
+ result = style.getPropertyCSSValue(property);
413
+ ref = this.vendors;
414
+ for (j = 0, len = ref.length; j < len; j++) {
415
+ vendor = ref[j];
416
+ result = result || style.getPropertyCSSValue("-" + vendor + "-" + property);
417
+ }
418
+ return result;
419
+ };
420
+
421
+ WOW.prototype.animationName = function(box) {
422
+ var animationName;
423
+ try {
424
+ animationName = this.vendorCSS(box, 'animation-name').cssText;
425
+ } catch (_error) {
426
+ animationName = getComputedStyle(box).getPropertyValue('animation-name');
427
+ }
428
+ if (animationName === 'none') {
429
+ return '';
430
+ } else {
431
+ return animationName;
432
+ }
433
+ };
434
+
435
+ WOW.prototype.cacheAnimationName = function(box) {
436
+ return this.animationNameCache.set(box, this.animationName(box));
437
+ };
438
+
439
+ WOW.prototype.cachedAnimationName = function(box) {
440
+ return this.animationNameCache.get(box);
441
+ };
442
+
443
+ WOW.prototype.scrollHandler = function() {
444
+ return this.scrolled = true;
445
+ };
446
+
447
+ WOW.prototype.scrollCallback = function() {
448
+ var box;
449
+ if (this.scrolled) {
450
+ this.scrolled = false;
451
+ this.boxes = (function() {
452
+ var j, len, ref, results;
453
+ ref = this.boxes;
454
+ results = [];
455
+ for (j = 0, len = ref.length; j < len; j++) {
456
+ box = ref[j];
457
+ if (!(box)) {
458
+ continue;
459
+ }
460
+ if (this.isVisible(box)) {
461
+ this.show(box);
462
+ continue;
463
+ }
464
+ results.push(box);
465
+ }
466
+ return results;
467
+ }).call(this);
468
+ if (!(this.boxes.length || this.config.live)) {
469
+ return this.stop();
470
+ }
471
+ }
472
+ };
473
+
474
+ WOW.prototype.offsetTop = function(element) {
475
+ var top;
476
+ while (element.offsetTop === void 0) {
477
+ element = element.parentNode;
478
+ }
479
+ top = element.offsetTop;
480
+ while (element = element.offsetParent) {
481
+ top += element.offsetTop;
482
+ }
483
+ return top;
484
+ };
485
+
486
+ WOW.prototype.isVisible = function(box) {
487
+ var bottom, offset, top, viewBottom, viewTop;
488
+ offset = box.getAttribute('data-wow-offset') || this.config.offset;
489
+ viewTop = window.pageYOffset;
490
+ viewBottom = viewTop + Math.min(this.element.clientHeight, this.util().innerHeight()) - offset;
491
+ top = this.offsetTop(box);
492
+ bottom = top + box.clientHeight;
493
+ return top <= viewBottom && bottom >= viewTop;
494
+ };
495
+
496
+ WOW.prototype.util = function() {
497
+ return this._util != null ? this._util : this._util = new Util();
498
+ };
499
+
500
+ WOW.prototype.disabled = function() {
501
+ return !this.config.mobile && this.util().isMobile(navigator.userAgent);
502
+ };
503
+
504
+ return WOW;
505
+
506
+ })();
507
+
508
+ }).call(this);