vendor: 5,055 bytes, lines 1-167
1/******/ (function(modules) { // webpackBootstrap 2/******/ // The module cache 3/******/ var installedModules = {}; 4/******/ 5/******/ // The require function 6/******/ function __webpack_require__(moduleId) { 7/******/ 8/******/ // Check if module is in cache 9/******/ if(installedModules[moduleId]) { 10/******/ return installedModules[moduleId].exports; 11/******/ } 12/******/ // Create a new module (and put it into the cache) 13/******/ var module = installedModules[moduleId] = { 14/******/ i: moduleId, 15/******/ l: false, 16/******/ exports: {} 17/******/ }; 18/******/ 19/******/ // Execute the module function 20/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21/******/ 22/******/ // Flag the module as loaded 23/******/ module.l = true; 24/******/ 25/******/ // Return the exports of the module 26/******/ return module.exports; 27/******/ } 28/******/ 29/******/ 30/******/ // expose the modules object (__webpack_modules__) 31/******/ __webpack_require__.m = modules; 32/******/ 33/******/ // expose the module cache 34/******/ __webpack_require__.c = installedModules; 35/******/ 36/******/ // define getter function for harmony exports 37/******/ __webpack_require__.d = function(exports, name, getter) { 38/******/ if(!__webpack_require__.o(exports, name)) { 39/******/ Object.defineProperty(exports, name, { 40/******/ configurable: false, 41/******/ enumerable: true, 42/******/ get: getter 43/******/ }); 44/******/ } 45/******/ }; 46/******/ 47/******/ // getDefaultExport function for compatibility with non-harmony modules 48/******/ __webpack_require__.n = function(module) { 49/******/ var getter = module && module.__esModule ? 50/******/ function getDefault() { return module['default']; } : 51/******/ function getModuleExports() { return module; }; 52/******/ __webpack_require__.d(getter, 'a', getter); 53/******/ return getter; 54/******/ }; 55/******/ 56/******/ // Object.prototype.hasOwnProperty.call 57/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 58/******/ 59/******/ // __webpack_public_path__ 60/******/ __webpack_require__.p = "/"; 61/******/ 62/******/ // Load entry module and return exports 63/******/ return __webpack_require__(__webpack_require__.s = 128); 64/******/ }) 65/************************************************************************/ 66/******/ ([ 67/* 0 */, 68/* 1 */, 69/* 2 */ 70/***/ (function(module, exports) { 71 72// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 73var global = module.exports = typeof window != 'undefined' && window.Math == Math 74 ? window : typeof self != 'undefined' && self.Math == Math ? self 75 // eslint-disable-next-line no-new-func 76 : Function('return this')(); 77if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 78 79 80/***/ }), 81/* 3 */ 82/***/ (function(module, exports) { 83 84var core = module.exports = { version: '2.6.5' }; 85if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 86 87 88/***/ }), 89/* 4 */, 90/* 5 */, 91/* 6 */ 92/***/ (function(module, exports) { 93 94var hasOwnProperty = {}.hasOwnProperty; 95module.exports = function (it, key) { 96 return hasOwnProperty.call(it, key); 97}; 98 99 100/***/ }), 101/* 7 */ 102/***/ (function(module, exports, __webpack_require__) { 103 104var anObject = __webpack_require__(17); 105var IE8_DOM_DEFINE = __webpack_require__(47); 106var toPrimitive = __webpack_require__(30); 107var dP = Object.defineProperty; 108 109exports.f = __webpack_require__(8) ? Object.defineProperty : function defineProperty(O, P, Attributes) { 110 anObject(O); 111 P = toPrimitive(P, true); 112 anObject(Attributes); 113 if (IE8_DOM_DEFINE) try { 114 return dP(O, P, Attributes); 115 } catch (e) { /* empty */ } 116 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 117 if ('value' in Attributes) O[P] = Attributes.value; 118 return O; 119}; 120 121 122/***/ }), 123/* 8 */ 124/***/ (function(module, exports, __webpack_require__) { 125 126// Thank's IE8 for his funny defineProperty 127module.exports = !__webpack_require__(14)(function () { 128 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 129}); 130 131 132/***/ }), 133/* 9 */ 134/***/ (function(module, exports, __webpack_require__) { 135 136// to indexed object, toObject with fallback for non-array-like ES3 strings 137var IObject = __webpack_require__(57); 138var defined = __webpack_require__(29); 139module.exports = function (it) { 140 return IObject(defined(it)); 141}; 142 143 144/***/ }), 145/* 10 */, 146/* 11 */ 147/***/ (function(module, exports, __webpack_require__) { 148 149var dP = __webpack_require__(7); 150var createDesc = __webpack_require__(19); 151module.exports = __webpack_require__(8) ? function (object, key, value) { 152 return dP.f(object, key, createDesc(1, value)); 153} : function (object, key, value) { 154 object[key] = value; 155 return object; 156}; 157 158 159/***/ }), 160/* 12 */ 161/***/ (function(module, exports, __webpack_require__) { 162 163var store = __webpack_require__(33)('wks'); 164var uid = __webpack_require__(21); 165var Symbol = __webpack_require__(2).Symbol; 166var USE_SYMBOL = typeof Symbol == 'function'; 167
vendor: 5,202 bytes, lines 168-353
168var $exports = module.exports = function (name) { 169 return store[name] || (store[name] = 170 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 171}; 172 173$exports.store = store; 174 175 176/***/ }), 177/* 13 */ 178/***/ (function(module, exports) { 179 180module.exports = function (it) { 181 return typeof it === 'object' ? it !== null : typeof it === 'function'; 182}; 183 184 185/***/ }), 186/* 14 */ 187/***/ (function(module, exports) { 188 189module.exports = function (exec) { 190 try { 191 return !!exec(); 192 } catch (e) { 193 return true; 194 } 195}; 196 197 198/***/ }), 199/* 15 */, 200/* 16 */ 201/***/ (function(module, exports, __webpack_require__) { 202 203var global = __webpack_require__(2); 204var core = __webpack_require__(3); 205var ctx = __webpack_require__(56); 206var hide = __webpack_require__(11); 207var has = __webpack_require__(6); 208var PROTOTYPE = 'prototype'; 209 210var $export = function (type, name, source) { 211 var IS_FORCED = type & $export.F; 212 var IS_GLOBAL = type & $export.G; 213 var IS_STATIC = type & $export.S; 214 var IS_PROTO = type & $export.P; 215 var IS_BIND = type & $export.B; 216 var IS_WRAP = type & $export.W; 217 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 218 var expProto = exports[PROTOTYPE]; 219 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; 220 var key, own, out; 221 if (IS_GLOBAL) source = name; 222 for (key in source) { 223 // contains in native 224 own = !IS_FORCED && target && target[key] !== undefined; 225 if (own && has(exports, key)) continue; 226 // export native or passed 227 out = own ? target[key] : source[key]; 228 // prevent global pollution for namespaces 229 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] 230 // bind timers to global for call from export context 231 : IS_BIND && own ? ctx(out, global) 232 // wrap global constructors for prevent change them in library 233 : IS_WRAP && target[key] == out ? (function (C) { 234 var F = function (a, b, c) { 235 if (this instanceof C) { 236 switch (arguments.length) { 237 case 0: return new C(); 238 case 1: return new C(a); 239 case 2: return new C(a, b); 240 } return new C(a, b, c); 241 } return C.apply(this, arguments); 242 }; 243 F[PROTOTYPE] = C[PROTOTYPE]; 244 return F; 245 // make static versions for prototype methods 246 })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 247 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 248 if (IS_PROTO) { 249 (exports.virtual || (exports.virtual = {}))[key] = out; 250 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 251 if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); 252 } 253 } 254}; 255// type bitmap 256$export.F = 1; // forced 257$export.G = 2; // global 258$export.S = 4; // static 259$export.P = 8; // proto 260$export.B = 16; // bind 261$export.W = 32; // wrap 262$export.U = 64; // safe 263$export.R = 128; // real proto method for `library` 264module.exports = $export; 265 266 267/***/ }), 268/* 17 */ 269/***/ (function(module, exports, __webpack_require__) { 270 271var isObject = __webpack_require__(13); 272module.exports = function (it) { 273 if (!isObject(it)) throw TypeError(it + ' is not an object!'); 274 return it; 275}; 276 277 278/***/ }), 279/* 18 */ 280/***/ (function(module, exports) { 281 282module.exports = true; 283 284 285/***/ }), 286/* 19 */ 287/***/ (function(module, exports) { 288 289module.exports = function (bitmap, value) { 290 return { 291 enumerable: !(bitmap & 1), 292 configurable: !(bitmap & 2), 293 writable: !(bitmap & 4), 294 value: value 295 }; 296}; 297 298 299/***/ }), 300/* 20 */ 301/***/ (function(module, exports, __webpack_require__) { 302 303// 19.1.2.14 / 15.2.3.14 Object.keys(O) 304var $keys = __webpack_require__(50); 305var enumBugKeys = __webpack_require__(34); 306 307module.exports = Object.keys || function keys(O) { 308 return $keys(O, enumBugKeys); 309}; 310 311 312/***/ }), 313/* 21 */ 314/***/ (function(module, exports) { 315 316var id = 0; 317var px = Math.random(); 318module.exports = function (key) { 319 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 320}; 321 322 323/***/ }), 324/* 22 */, 325/* 23 */, 326/* 24 */ 327/***/ (function(module, exports, __webpack_require__) { 328 329"use strict"; 330 331 332exports.__esModule = true; 333 334var _iterator = __webpack_require__(65); 335 336var _iterator2 = _interopRequireDefault(_iterator); 337 338var _symbol = __webpack_require__(80); 339 340var _symbol2 = _interopRequireDefault(_symbol); 341 342var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; 343 344function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 345 346exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { 347 return typeof obj === "undefined" ? "undefined" : _typeof(obj); 348} : function (obj) { 349 return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); 350}; 351 352/***/ }), 353/* 25 */
vendor: 2,069 bytes, lines 354-441
354/***/ (function(module, exports) { 355 356exports.f = {}.propertyIsEnumerable; 357 358 359/***/ }), 360/* 26 */, 361/* 27 */ 362/***/ (function(module, exports) { 363 364var g; 365 366// This works in non-strict mode 367g = (function() { 368 return this; 369})(); 370 371try { 372 // This works if eval is allowed (see CSP) 373 g = g || Function("return this")() || (1,eval)("this"); 374} catch(e) { 375 // This works if the window reference is available 376 if(typeof window === "object") 377 g = window; 378} 379 380// g can still be undefined, but nothing to do about it... 381// We return undefined, instead of nothing here, so it's 382// easier to handle this case. if(!global) { ...} 383 384module.exports = g; 385 386 387/***/ }), 388/* 28 */ 389/***/ (function(module, exports) { 390 391// 7.1.4 ToInteger 392var ceil = Math.ceil; 393var floor = Math.floor; 394module.exports = function (it) { 395 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 396}; 397 398 399/***/ }), 400/* 29 */ 401/***/ (function(module, exports) { 402 403// 7.2.1 RequireObjectCoercible(argument) 404module.exports = function (it) { 405 if (it == undefined) throw TypeError("Can't call method on " + it); 406 return it; 407}; 408 409 410/***/ }), 411/* 30 */ 412/***/ (function(module, exports, __webpack_require__) { 413 414// 7.1.1 ToPrimitive(input [, PreferredType]) 415var isObject = __webpack_require__(13); 416// instead of the ES6 spec version, we didn't implement @@toPrimitive case 417// and the second argument - flag - preferred type is a string 418module.exports = function (it, S) { 419 if (!isObject(it)) return it; 420 var fn, val; 421 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 422 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 423 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 424 throw TypeError("Can't convert object to primitive value"); 425}; 426 427 428/***/ }), 429/* 31 */ 430/***/ (function(module, exports) { 431 432module.exports = {}; 433 434 435/***/ }), 436/* 32 */ 437/***/ (function(module, exports, __webpack_require__) { 438 439var shared = __webpack_require__(33)('keys'); 440var uid = __webpack_require__(21); 441module.exports = function (key) {
vendor: 4,435 bytes, lines 442-605
442 return shared[key] || (shared[key] = uid(key)); 443}; 444 445 446/***/ }), 447/* 33 */ 448/***/ (function(module, exports, __webpack_require__) { 449 450var core = __webpack_require__(3); 451var global = __webpack_require__(2); 452var SHARED = '__core-js_shared__'; 453var store = global[SHARED] || (global[SHARED] = {}); 454 455(module.exports = function (key, value) { 456 return store[key] || (store[key] = value !== undefined ? value : {}); 457})('versions', []).push({ 458 version: core.version, 459 mode: __webpack_require__(18) ? 'pure' : 'global', 460 copyright: '© 2019 Denis Pushkarev (zloirock.ru)' 461}); 462 463 464/***/ }), 465/* 34 */ 466/***/ (function(module, exports) { 467 468// IE 8- don't enum bug keys 469module.exports = ( 470 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 471).split(','); 472 473 474/***/ }), 475/* 35 */ 476/***/ (function(module, exports, __webpack_require__) { 477 478var def = __webpack_require__(7).f; 479var has = __webpack_require__(6); 480var TAG = __webpack_require__(12)('toStringTag'); 481 482module.exports = function (it, tag, stat) { 483 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); 484}; 485 486 487/***/ }), 488/* 36 */ 489/***/ (function(module, exports, __webpack_require__) { 490 491exports.f = __webpack_require__(12); 492 493 494/***/ }), 495/* 37 */ 496/***/ (function(module, exports, __webpack_require__) { 497 498var global = __webpack_require__(2); 499var core = __webpack_require__(3); 500var LIBRARY = __webpack_require__(18); 501var wksExt = __webpack_require__(36); 502var defineProperty = __webpack_require__(7).f; 503module.exports = function (name) { 504 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); 505 if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); 506}; 507 508 509/***/ }), 510/* 38 */ 511/***/ (function(module, exports, __webpack_require__) { 512 513/*! 514 * domready (c) Dustin Diaz 2014 - License MIT 515 */ 516!function (name, definition) { 517 518 if (true) module.exports = definition() 519 else if (typeof define == 'function' && typeof define.amd == 'object') define(definition) 520 else this[name] = definition() 521 522}('domready', function () { 523 524 var fns = [], listener 525 , doc = document 526 , hack = doc.documentElement.doScroll 527 , domContentLoaded = 'DOMContentLoaded' 528 , loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState) 529 530 531 if (!loaded) 532 doc.addEventListener(domContentLoaded, listener = function () { 533 doc.removeEventListener(domContentLoaded, listener) 534 loaded = 1 535 while (listener = fns.shift()) listener() 536 }) 537 538 return function (fn) { 539 loaded ? setTimeout(fn, 0) : fns.push(fn) 540 } 541 542}); 543 544 545/***/ }), 546/* 39 */, 547/* 40 */ 548/***/ (function(module, exports, __webpack_require__) { 549 550// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 551var anObject = __webpack_require__(17); 552var dPs = __webpack_require__(71); 553var enumBugKeys = __webpack_require__(34); 554var IE_PROTO = __webpack_require__(32)('IE_PROTO'); 555var Empty = function () { /* empty */ }; 556var PROTOTYPE = 'prototype'; 557 558// Create object with fake `null` prototype: use iframe Object with cleared prototype 559var createDict = function () { 560 // Thrash, waste and sodomy: IE GC bug 561 var iframe = __webpack_require__(48)('iframe'); 562 var i = enumBugKeys.length; 563 var lt = '<'; 564 var gt = '>'; 565 var iframeDocument; 566 iframe.style.display = 'none'; 567 __webpack_require__(75).appendChild(iframe); 568 iframe.src = 'javascript:'; // eslint-disable-line no-script-url 569 // createDict = iframe.contentWindow.Object; 570 // html.removeChild(iframe); 571 iframeDocument = iframe.contentWindow.document; 572 iframeDocument.open(); 573 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 574 iframeDocument.close(); 575 createDict = iframeDocument.F; 576 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 577 return createDict(); 578}; 579 580module.exports = Object.create || function create(O, Properties) { 581 var result; 582 if (O !== null) { 583 Empty[PROTOTYPE] = anObject(O); 584 result = new Empty(); 585 Empty[PROTOTYPE] = null; 586 // add "__proto__" for Object.getPrototypeOf polyfill 587 result[IE_PROTO] = O; 588 } else result = createDict(); 589 return Properties === undefined ? result : dPs(result, Properties); 590}; 591 592 593/***/ }), 594/* 41 */ 595/***/ (function(module, exports, __webpack_require__) { 596 597// 7.1.13 ToObject(argument) 598var defined = __webpack_require__(29); 599module.exports = function (it) { 600 return Object(defined(it)); 601}; 602 603 604/***/ }), 605/* 42 */
vendor: 5,601 bytes, lines 606-789
606/***/ (function(module, exports) { 607 608exports.f = Object.getOwnPropertySymbols; 609 610 611/***/ }), 612/* 43 */ 613/***/ (function(module, exports, __webpack_require__) { 614 615"use strict"; 616 617 618exports.__esModule = true; 619 620exports.default = function (instance, Constructor) { 621 if (!(instance instanceof Constructor)) { 622 throw new TypeError("Cannot call a class as a function"); 623 } 624}; 625 626/***/ }), 627/* 44 */ 628/***/ (function(module, exports, __webpack_require__) { 629 630"use strict"; 631 632 633exports.__esModule = true; 634 635var _defineProperty = __webpack_require__(133); 636 637var _defineProperty2 = _interopRequireDefault(_defineProperty); 638 639function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 640 641exports.default = function () { 642 function defineProperties(target, props) { 643 for (var i = 0; i < props.length; i++) { 644 var descriptor = props[i]; 645 descriptor.enumerable = descriptor.enumerable || false; 646 descriptor.configurable = true; 647 if ("value" in descriptor) descriptor.writable = true; 648 (0, _defineProperty2.default)(target, descriptor.key, descriptor); 649 } 650 } 651 652 return function (Constructor, protoProps, staticProps) { 653 if (protoProps) defineProperties(Constructor.prototype, protoProps); 654 if (staticProps) defineProperties(Constructor, staticProps); 655 return Constructor; 656 }; 657}(); 658 659/***/ }), 660/* 45 */, 661/* 46 */ 662/***/ (function(module, exports, __webpack_require__) { 663 664"use strict"; 665 666var LIBRARY = __webpack_require__(18); 667var $export = __webpack_require__(16); 668var redefine = __webpack_require__(49); 669var hide = __webpack_require__(11); 670var Iterators = __webpack_require__(31); 671var $iterCreate = __webpack_require__(70); 672var setToStringTag = __webpack_require__(35); 673var getPrototypeOf = __webpack_require__(58); 674var ITERATOR = __webpack_require__(12)('iterator'); 675var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 676var FF_ITERATOR = '@@iterator'; 677var KEYS = 'keys'; 678var VALUES = 'values'; 679 680var returnThis = function () { return this; }; 681 682module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 683 $iterCreate(Constructor, NAME, next); 684 var getMethod = function (kind) { 685 if (!BUGGY && kind in proto) return proto[kind]; 686 switch (kind) { 687 case KEYS: return function keys() { return new Constructor(this, kind); }; 688 case VALUES: return function values() { return new Constructor(this, kind); }; 689 } return function entries() { return new Constructor(this, kind); }; 690 }; 691 var TAG = NAME + ' Iterator'; 692 var DEF_VALUES = DEFAULT == VALUES; 693 var VALUES_BUG = false; 694 var proto = Base.prototype; 695 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; 696 var $default = $native || getMethod(DEFAULT); 697 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; 698 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; 699 var methods, key, IteratorPrototype; 700 // Fix native 701 if ($anyNative) { 702 IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 703 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { 704 // Set @@toStringTag to native iterators 705 setToStringTag(IteratorPrototype, TAG, true); 706 // fix for some old engines 707 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); 708 } 709 } 710 // fix Array#{values, @@iterator}.name in V8 / FF 711 if (DEF_VALUES && $native && $native.name !== VALUES) { 712 VALUES_BUG = true; 713 $default = function values() { return $native.call(this); }; 714 } 715 // Define iterator 716 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 717 hide(proto, ITERATOR, $default); 718 } 719 // Plug for library 720 Iterators[NAME] = $default; 721 Iterators[TAG] = returnThis; 722 if (DEFAULT) { 723 methods = { 724 values: DEF_VALUES ? $default : getMethod(VALUES), 725 keys: IS_SET ? $default : getMethod(KEYS), 726 entries: $entries 727 }; 728 if (FORCED) for (key in methods) { 729 if (!(key in proto)) redefine(proto, key, methods[key]); 730 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 731 } 732 return methods; 733}; 734 735 736/***/ }), 737/* 47 */ 738/***/ (function(module, exports, __webpack_require__) { 739 740module.exports = !__webpack_require__(8) && !__webpack_require__(14)(function () { 741 return Object.defineProperty(__webpack_require__(48)('div'), 'a', { get: function () { return 7; } }).a != 7; 742}); 743 744 745/***/ }), 746/* 48 */ 747/***/ (function(module, exports, __webpack_require__) { 748 749var isObject = __webpack_require__(13); 750var document = __webpack_require__(2).document; 751// typeof document.createElement is 'object' in old IE 752var is = isObject(document) && isObject(document.createElement); 753module.exports = function (it) { 754 return is ? document.createElement(it) : {}; 755}; 756 757 758/***/ }), 759/* 49 */ 760/***/ (function(module, exports, __webpack_require__) { 761 762module.exports = __webpack_require__(11); 763 764 765/***/ }), 766/* 50 */ 767/***/ (function(module, exports, __webpack_require__) { 768 769var has = __webpack_require__(6); 770var toIObject = __webpack_require__(9); 771var arrayIndexOf = __webpack_require__(72)(false); 772var IE_PROTO = __webpack_require__(32)('IE_PROTO'); 773 774module.exports = function (object, names) { 775 var O = toIObject(object); 776 var i = 0; 777 var result = []; 778 var key; 779 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 780 // Don't enum bug & hidden keys 781 while (names.length > i) if (has(O, key = names[i++])) { 782 ~arrayIndexOf(result, key) || result.push(key); 783 } 784 return result; 785}; 786 787 788/***/ }), 789/* 51 */
vendor: 6,071 bytes, lines 790-1017
790/***/ (function(module, exports) { 791 792var toString = {}.toString; 793 794module.exports = function (it) { 795 return toString.call(it).slice(8, -1); 796}; 797 798 799/***/ }), 800/* 52 */ 801/***/ (function(module, exports, __webpack_require__) { 802 803// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 804var $keys = __webpack_require__(50); 805var hiddenKeys = __webpack_require__(34).concat('length', 'prototype'); 806 807exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 808 return $keys(O, hiddenKeys); 809}; 810 811 812/***/ }), 813/* 53 */ 814/***/ (function(module, exports, __webpack_require__) { 815 816var pIE = __webpack_require__(25); 817var createDesc = __webpack_require__(19); 818var toIObject = __webpack_require__(9); 819var toPrimitive = __webpack_require__(30); 820var has = __webpack_require__(6); 821var IE8_DOM_DEFINE = __webpack_require__(47); 822var gOPD = Object.getOwnPropertyDescriptor; 823 824exports.f = __webpack_require__(8) ? gOPD : function getOwnPropertyDescriptor(O, P) { 825 O = toIObject(O); 826 P = toPrimitive(P, true); 827 if (IE8_DOM_DEFINE) try { 828 return gOPD(O, P); 829 } catch (e) { /* empty */ } 830 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 831}; 832 833 834/***/ }), 835/* 54 */ 836/***/ (function(module, exports, __webpack_require__) { 837 838module.exports = { "default": __webpack_require__(138), __esModule: true }; 839 840/***/ }), 841/* 55 */, 842/* 56 */ 843/***/ (function(module, exports, __webpack_require__) { 844 845// optional / simple context binding 846var aFunction = __webpack_require__(69); 847module.exports = function (fn, that, length) { 848 aFunction(fn); 849 if (that === undefined) return fn; 850 switch (length) { 851 case 1: return function (a) { 852 return fn.call(that, a); 853 }; 854 case 2: return function (a, b) { 855 return fn.call(that, a, b); 856 }; 857 case 3: return function (a, b, c) { 858 return fn.call(that, a, b, c); 859 }; 860 } 861 return function (/* ...args */) { 862 return fn.apply(that, arguments); 863 }; 864}; 865 866 867/***/ }), 868/* 57 */ 869/***/ (function(module, exports, __webpack_require__) { 870 871// fallback for non-array-like ES3 and non-enumerable old V8 strings 872var cof = __webpack_require__(51); 873// eslint-disable-next-line no-prototype-builtins 874module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 875 return cof(it) == 'String' ? it.split('') : Object(it); 876}; 877 878 879/***/ }), 880/* 58 */ 881/***/ (function(module, exports, __webpack_require__) { 882 883// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 884var has = __webpack_require__(6); 885var toObject = __webpack_require__(41); 886var IE_PROTO = __webpack_require__(32)('IE_PROTO'); 887var ObjectProto = Object.prototype; 888 889module.exports = Object.getPrototypeOf || function (O) { 890 O = toObject(O); 891 if (has(O, IE_PROTO)) return O[IE_PROTO]; 892 if (typeof O.constructor == 'function' && O instanceof O.constructor) { 893 return O.constructor.prototype; 894 } return O instanceof Object ? ObjectProto : null; 895}; 896 897 898/***/ }), 899/* 59 */ 900/***/ (function(module, exports, __webpack_require__) { 901 902"use strict"; 903 904 905exports.__esModule = true; 906 907var _typeof2 = __webpack_require__(24); 908 909var _typeof3 = _interopRequireDefault(_typeof2); 910 911function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 912 913exports.default = function (self, call) { 914 if (!self) { 915 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 916 } 917 918 return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; 919}; 920 921/***/ }), 922/* 60 */ 923/***/ (function(module, exports, __webpack_require__) { 924 925"use strict"; 926 927 928exports.__esModule = true; 929 930var _setPrototypeOf = __webpack_require__(140); 931 932var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); 933 934var _create = __webpack_require__(144); 935 936var _create2 = _interopRequireDefault(_create); 937 938var _typeof2 = __webpack_require__(24); 939 940var _typeof3 = _interopRequireDefault(_typeof2); 941 942function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 943 944exports.default = function (subClass, superClass) { 945 if (typeof superClass !== "function" && superClass !== null) { 946 throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); 947 } 948 949 subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { 950 constructor: { 951 value: subClass, 952 enumerable: false, 953 writable: true, 954 configurable: true 955 } 956 }); 957 if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; 958}; 959 960/***/ }), 961/* 61 */, 962/* 62 */, 963/* 63 */ 964/***/ (function(module, exports, __webpack_require__) { 965 966"use strict"; 967 968 969if (false) { 970 var hotEmitter = require("webpack/hot/emitter"); 971 hotEmitter.on("webpackHotUpdate", function (currentHash) { 972 document.querySelectorAll('link[href][rel=stylesheet]').forEach(function (link) { 973 var url = new URL(link.href); 974 url.searchParams.set('hash', Date.now()); 975 link.href = link.href.replace(url.toString()); 976 }); 977 }); 978} 979 980/***/ }), 981/* 64 */ 982/***/ (function(module, exports, __webpack_require__) { 983 984"use strict"; 985 986 987Object.defineProperty(exports, "__esModule", { 988 value: true 989}); 990exports.ColibriFrontComponent = exports.ColibriFrontend = undefined; 991 992var _colibri = __webpack_require__(107); 993 994var _colibri2 = _interopRequireDefault(_colibri); 995 996var _colibriKubeComponent = __webpack_require__(132); 997 998var _colibriKubeComponent2 = _interopRequireDefault(_colibriKubeComponent); 999 1000function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 1001 1002_colibri2.default.registerPlugin = function (name, plugin, autoload) { 1003 if (typeof name.componentName === 'function') { 1004 autoload = plugin; 1005 plugin = name; 1006 name = plugin.componentName(); 1007 } 1008 1009 _colibri2.default[name] = plugin; 1010 // Colibri[name].inherits(Colibri); 1011 _colibri2.default.Plugin.create(name); 1012 1013 if (autoload !== false) { 1014 _colibri2.default.Plugin.autoload(name); 1015 } 1016}; 1017
vendor: 7,029 bytes, lines 1018-1261
1018exports.ColibriFrontend = _colibri2.default; 1019exports.ColibriFrontComponent = _colibriKubeComponent2.default; 1020 1021/***/ }), 1022/* 65 */ 1023/***/ (function(module, exports, __webpack_require__) { 1024 1025module.exports = { "default": __webpack_require__(66), __esModule: true }; 1026 1027/***/ }), 1028/* 66 */ 1029/***/ (function(module, exports, __webpack_require__) { 1030 1031__webpack_require__(67); 1032__webpack_require__(76); 1033module.exports = __webpack_require__(36).f('iterator'); 1034 1035 1036/***/ }), 1037/* 67 */ 1038/***/ (function(module, exports, __webpack_require__) { 1039 1040"use strict"; 1041 1042var $at = __webpack_require__(68)(true); 1043 1044// 21.1.3.27 String.prototype[@@iterator]() 1045__webpack_require__(46)(String, 'String', function (iterated) { 1046 this._t = String(iterated); // target 1047 this._i = 0; // next index 1048// 21.1.5.2.1 %StringIteratorPrototype%.next() 1049}, function () { 1050 var O = this._t; 1051 var index = this._i; 1052 var point; 1053 if (index >= O.length) return { value: undefined, done: true }; 1054 point = $at(O, index); 1055 this._i += point.length; 1056 return { value: point, done: false }; 1057}); 1058 1059 1060/***/ }), 1061/* 68 */ 1062/***/ (function(module, exports, __webpack_require__) { 1063 1064var toInteger = __webpack_require__(28); 1065var defined = __webpack_require__(29); 1066// true -> String#at 1067// false -> String#codePointAt 1068module.exports = function (TO_STRING) { 1069 return function (that, pos) { 1070 var s = String(defined(that)); 1071 var i = toInteger(pos); 1072 var l = s.length; 1073 var a, b; 1074 if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 1075 a = s.charCodeAt(i); 1076 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff 1077 ? TO_STRING ? s.charAt(i) : a 1078 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; 1079 }; 1080}; 1081 1082 1083/***/ }), 1084/* 69 */ 1085/***/ (function(module, exports) { 1086 1087module.exports = function (it) { 1088 if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 1089 return it; 1090}; 1091 1092 1093/***/ }), 1094/* 70 */ 1095/***/ (function(module, exports, __webpack_require__) { 1096 1097"use strict"; 1098 1099var create = __webpack_require__(40); 1100var descriptor = __webpack_require__(19); 1101var setToStringTag = __webpack_require__(35); 1102var IteratorPrototype = {}; 1103 1104// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 1105__webpack_require__(11)(IteratorPrototype, __webpack_require__(12)('iterator'), function () { return this; }); 1106 1107module.exports = function (Constructor, NAME, next) { 1108 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); 1109 setToStringTag(Constructor, NAME + ' Iterator'); 1110}; 1111 1112 1113/***/ }), 1114/* 71 */ 1115/***/ (function(module, exports, __webpack_require__) { 1116 1117var dP = __webpack_require__(7); 1118var anObject = __webpack_require__(17); 1119var getKeys = __webpack_require__(20); 1120 1121module.exports = __webpack_require__(8) ? Object.defineProperties : function defineProperties(O, Properties) { 1122 anObject(O); 1123 var keys = getKeys(Properties); 1124 var length = keys.length; 1125 var i = 0; 1126 var P; 1127 while (length > i) dP.f(O, P = keys[i++], Properties[P]); 1128 return O; 1129}; 1130 1131 1132/***/ }), 1133/* 72 */ 1134/***/ (function(module, exports, __webpack_require__) { 1135 1136// false -> Array#indexOf 1137// true -> Array#includes 1138var toIObject = __webpack_require__(9); 1139var toLength = __webpack_require__(73); 1140var toAbsoluteIndex = __webpack_require__(74); 1141module.exports = function (IS_INCLUDES) { 1142 return function ($this, el, fromIndex) { 1143 var O = toIObject($this); 1144 var length = toLength(O.length); 1145 var index = toAbsoluteIndex(fromIndex, length); 1146 var value; 1147 // Array#includes uses SameValueZero equality algorithm 1148 // eslint-disable-next-line no-self-compare 1149 if (IS_INCLUDES && el != el) while (length > index) { 1150 value = O[index++]; 1151 // eslint-disable-next-line no-self-compare 1152 if (value != value) return true; 1153 // Array#indexOf ignores holes, Array#includes - not 1154 } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 1155 if (O[index] === el) return IS_INCLUDES || index || 0; 1156 } return !IS_INCLUDES && -1; 1157 }; 1158}; 1159 1160 1161/***/ }), 1162/* 73 */ 1163/***/ (function(module, exports, __webpack_require__) { 1164 1165// 7.1.15 ToLength 1166var toInteger = __webpack_require__(28); 1167var min = Math.min; 1168module.exports = function (it) { 1169 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1170}; 1171 1172 1173/***/ }), 1174/* 74 */ 1175/***/ (function(module, exports, __webpack_require__) { 1176 1177var toInteger = __webpack_require__(28); 1178var max = Math.max; 1179var min = Math.min; 1180module.exports = function (index, length) { 1181 index = toInteger(index); 1182 return index < 0 ? max(index + length, 0) : min(index, length); 1183}; 1184 1185 1186/***/ }), 1187/* 75 */ 1188/***/ (function(module, exports, __webpack_require__) { 1189 1190var document = __webpack_require__(2).document; 1191module.exports = document && document.documentElement; 1192 1193 1194/***/ }), 1195/* 76 */ 1196/***/ (function(module, exports, __webpack_require__) { 1197 1198__webpack_require__(77); 1199var global = __webpack_require__(2); 1200var hide = __webpack_require__(11); 1201var Iterators = __webpack_require__(31); 1202var TO_STRING_TAG = __webpack_require__(12)('toStringTag'); 1203 1204var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 1205 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + 1206 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + 1207 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + 1208 'TextTrackList,TouchList').split(','); 1209 1210for (var i = 0; i < DOMIterables.length; i++) { 1211 var NAME = DOMIterables[i]; 1212 var Collection = global[NAME]; 1213 var proto = Collection && Collection.prototype; 1214 if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 1215 Iterators[NAME] = Iterators.Array; 1216} 1217 1218 1219/***/ }), 1220/* 77 */ 1221/***/ (function(module, exports, __webpack_require__) { 1222 1223"use strict"; 1224 1225var addToUnscopables = __webpack_require__(78); 1226var step = __webpack_require__(79); 1227var Iterators = __webpack_require__(31); 1228var toIObject = __webpack_require__(9); 1229 1230// 22.1.3.4 Array.prototype.entries() 1231// 22.1.3.13 Array.prototype.keys() 1232// 22.1.3.29 Array.prototype.values() 1233// 22.1.3.30 Array.prototype[@@iterator]() 1234module.exports = __webpack_require__(46)(Array, 'Array', function (iterated, kind) { 1235 this._t = toIObject(iterated); // target 1236 this._i = 0; // next index 1237 this._k = kind; // kind 1238// 22.1.5.2.1 %ArrayIteratorPrototype%.next() 1239}, function () { 1240 var O = this._t; 1241 var kind = this._k; 1242 var index = this._i++; 1243 if (!O || index >= O.length) { 1244 this._t = undefined; 1245 return step(1); 1246 } 1247 if (kind == 'keys') return step(0, index); 1248 if (kind == 'values') return step(0, O[index]); 1249 return step(0, [index, O[index]]); 1250}, 'values'); 1251 1252// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 1253Iterators.Arguments = Iterators.Array; 1254 1255addToUnscopables('keys'); 1256addToUnscopables('values'); 1257addToUnscopables('entries'); 1258 1259 1260/***/ }), 1261/* 78 */
vendor: 12,659 bytes, lines 1262-1651
1262/***/ (function(module, exports) { 1263 1264module.exports = function () { /* empty */ }; 1265 1266 1267/***/ }), 1268/* 79 */ 1269/***/ (function(module, exports) { 1270 1271module.exports = function (done, value) { 1272 return { value: value, done: !!done }; 1273}; 1274 1275 1276/***/ }), 1277/* 80 */ 1278/***/ (function(module, exports, __webpack_require__) { 1279 1280module.exports = { "default": __webpack_require__(81), __esModule: true }; 1281 1282/***/ }), 1283/* 81 */ 1284/***/ (function(module, exports, __webpack_require__) { 1285 1286__webpack_require__(82); 1287__webpack_require__(87); 1288__webpack_require__(88); 1289__webpack_require__(89); 1290module.exports = __webpack_require__(3).Symbol; 1291 1292 1293/***/ }), 1294/* 82 */ 1295/***/ (function(module, exports, __webpack_require__) { 1296 1297"use strict"; 1298 1299// ECMAScript 6 symbols shim 1300var global = __webpack_require__(2); 1301var has = __webpack_require__(6); 1302var DESCRIPTORS = __webpack_require__(8); 1303var $export = __webpack_require__(16); 1304var redefine = __webpack_require__(49); 1305var META = __webpack_require__(83).KEY; 1306var $fails = __webpack_require__(14); 1307var shared = __webpack_require__(33); 1308var setToStringTag = __webpack_require__(35); 1309var uid = __webpack_require__(21); 1310var wks = __webpack_require__(12); 1311var wksExt = __webpack_require__(36); 1312var wksDefine = __webpack_require__(37); 1313var enumKeys = __webpack_require__(84); 1314var isArray = __webpack_require__(85); 1315var anObject = __webpack_require__(17); 1316var isObject = __webpack_require__(13); 1317var toIObject = __webpack_require__(9); 1318var toPrimitive = __webpack_require__(30); 1319var createDesc = __webpack_require__(19); 1320var _create = __webpack_require__(40); 1321var gOPNExt = __webpack_require__(86); 1322var $GOPD = __webpack_require__(53); 1323var $DP = __webpack_require__(7); 1324var $keys = __webpack_require__(20); 1325var gOPD = $GOPD.f; 1326var dP = $DP.f; 1327var gOPN = gOPNExt.f; 1328var $Symbol = global.Symbol; 1329var $JSON = global.JSON; 1330var _stringify = $JSON && $JSON.stringify; 1331var PROTOTYPE = 'prototype'; 1332var HIDDEN = wks('_hidden'); 1333var TO_PRIMITIVE = wks('toPrimitive'); 1334var isEnum = {}.propertyIsEnumerable; 1335var SymbolRegistry = shared('symbol-registry'); 1336var AllSymbols = shared('symbols'); 1337var OPSymbols = shared('op-symbols'); 1338var ObjectProto = Object[PROTOTYPE]; 1339var USE_NATIVE = typeof $Symbol == 'function'; 1340var QObject = global.QObject; 1341// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 1342var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; 1343 1344// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 1345var setSymbolDesc = DESCRIPTORS && $fails(function () { 1346 return _create(dP({}, 'a', { 1347 get: function () { return dP(this, 'a', { value: 7 }).a; } 1348 })).a != 7; 1349}) ? function (it, key, D) { 1350 var protoDesc = gOPD(ObjectProto, key); 1351 if (protoDesc) delete ObjectProto[key]; 1352 dP(it, key, D); 1353 if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); 1354} : dP; 1355 1356var wrap = function (tag) { 1357 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); 1358 sym._k = tag; 1359 return sym; 1360}; 1361 1362var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { 1363 return typeof it == 'symbol'; 1364} : function (it) { 1365 return it instanceof $Symbol; 1366}; 1367 1368var $defineProperty = function defineProperty(it, key, D) { 1369 if (it === ObjectProto) $defineProperty(OPSymbols, key, D); 1370 anObject(it); 1371 key = toPrimitive(key, true); 1372 anObject(D); 1373 if (has(AllSymbols, key)) { 1374 if (!D.enumerable) { 1375 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); 1376 it[HIDDEN][key] = true; 1377 } else { 1378 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; 1379 D = _create(D, { enumerable: createDesc(0, false) }); 1380 } return setSymbolDesc(it, key, D); 1381 } return dP(it, key, D); 1382}; 1383var $defineProperties = function defineProperties(it, P) { 1384 anObject(it); 1385 var keys = enumKeys(P = toIObject(P)); 1386 var i = 0; 1387 var l = keys.length; 1388 var key; 1389 while (l > i) $defineProperty(it, key = keys[i++], P[key]); 1390 return it; 1391}; 1392var $create = function create(it, P) { 1393 return P === undefined ? _create(it) : $defineProperties(_create(it), P); 1394}; 1395var $propertyIsEnumerable = function propertyIsEnumerable(key) { 1396 var E = isEnum.call(this, key = toPrimitive(key, true)); 1397 if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; 1398 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; 1399}; 1400var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { 1401 it = toIObject(it); 1402 key = toPrimitive(key, true); 1403 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; 1404 var D = gOPD(it, key); 1405 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; 1406 return D; 1407}; 1408var $getOwnPropertyNames = function getOwnPropertyNames(it) { 1409 var names = gOPN(toIObject(it)); 1410 var result = []; 1411 var i = 0; 1412 var key; 1413 while (names.length > i) { 1414 if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); 1415 } return result; 1416}; 1417var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { 1418 var IS_OP = it === ObjectProto; 1419 var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); 1420 var result = []; 1421 var i = 0; 1422 var key; 1423 while (names.length > i) { 1424 if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); 1425 } return result; 1426}; 1427 1428// 19.4.1.1 Symbol([description]) 1429if (!USE_NATIVE) { 1430 $Symbol = function Symbol() { 1431 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); 1432 var tag = uid(arguments.length > 0 ? arguments[0] : undefined); 1433 var $set = function (value) { 1434 if (this === ObjectProto) $set.call(OPSymbols, value); 1435 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; 1436 setSymbolDesc(this, tag, createDesc(1, value)); 1437 }; 1438 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); 1439 return wrap(tag); 1440 }; 1441 redefine($Symbol[PROTOTYPE], 'toString', function toString() { 1442 return this._k; 1443 }); 1444 1445 $GOPD.f = $getOwnPropertyDescriptor; 1446 $DP.f = $defineProperty; 1447 __webpack_require__(52).f = gOPNExt.f = $getOwnPropertyNames; 1448 __webpack_require__(25).f = $propertyIsEnumerable; 1449 __webpack_require__(42).f = $getOwnPropertySymbols; 1450 1451 if (DESCRIPTORS && !__webpack_require__(18)) { 1452 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); 1453 } 1454 1455 wksExt.f = function (name) { 1456 return wrap(wks(name)); 1457 }; 1458} 1459 1460$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); 1461 1462for (var es6Symbols = ( 1463 // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 1464 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' 1465).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); 1466 1467for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); 1468 1469$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { 1470 // 19.4.2.1 Symbol.for(key) 1471 'for': function (key) { 1472 return has(SymbolRegistry, key += '') 1473 ? SymbolRegistry[key] 1474 : SymbolRegistry[key] = $Symbol(key); 1475 }, 1476 // 19.4.2.5 Symbol.keyFor(sym) 1477 keyFor: function keyFor(sym) { 1478 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); 1479 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; 1480 }, 1481 useSetter: function () { setter = true; }, 1482 useSimple: function () { setter = false; } 1483}); 1484 1485$export($export.S + $export.F * !USE_NATIVE, 'Object', { 1486 // 19.1.2.2 Object.create(O [, Properties]) 1487 create: $create, 1488 // 19.1.2.4 Object.defineProperty(O, P, Attributes) 1489 defineProperty: $defineProperty, 1490 // 19.1.2.3 Object.defineProperties(O, Properties) 1491 defineProperties: $defineProperties, 1492 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) 1493 getOwnPropertyDescriptor: $getOwnPropertyDescriptor, 1494 // 19.1.2.7 Object.getOwnPropertyNames(O) 1495 getOwnPropertyNames: $getOwnPropertyNames, 1496 // 19.1.2.8 Object.getOwnPropertySymbols(O) 1497 getOwnPropertySymbols: $getOwnPropertySymbols 1498}); 1499 1500// 24.3.2 JSON.stringify(value [, replacer [, space]]) 1501$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { 1502 var S = $Symbol(); 1503 // MS Edge converts symbol values to JSON as {} 1504 // WebKit converts symbol values to JSON as null 1505 // V8 throws on boxed symbols 1506 return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; 1507})), 'JSON', { 1508 stringify: function stringify(it) { 1509 var args = [it]; 1510 var i = 1; 1511 var replacer, $replacer; 1512 while (arguments.length > i) args.push(arguments[i++]); 1513 $replacer = replacer = args[1]; 1514 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined 1515 if (!isArray(replacer)) replacer = function (key, value) { 1516 if (typeof $replacer == 'function') value = $replacer.call(this, key, value); 1517 if (!isSymbol(value)) return value; 1518 }; 1519 args[1] = replacer; 1520 return _stringify.apply($JSON, args); 1521 } 1522}); 1523 1524// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) 1525$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(11)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); 1526// 19.4.3.5 Symbol.prototype[@@toStringTag] 1527setToStringTag($Symbol, 'Symbol'); 1528// 20.2.1.9 Math[@@toStringTag] 1529setToStringTag(Math, 'Math', true); 1530// 24.3.3 JSON[@@toStringTag] 1531setToStringTag(global.JSON, 'JSON', true); 1532 1533 1534/***/ }), 1535/* 83 */ 1536/***/ (function(module, exports, __webpack_require__) { 1537 1538var META = __webpack_require__(21)('meta'); 1539var isObject = __webpack_require__(13); 1540var has = __webpack_require__(6); 1541var setDesc = __webpack_require__(7).f; 1542var id = 0; 1543var isExtensible = Object.isExtensible || function () { 1544 return true; 1545}; 1546var FREEZE = !__webpack_require__(14)(function () { 1547 return isExtensible(Object.preventExtensions({})); 1548}); 1549var setMeta = function (it) { 1550 setDesc(it, META, { value: { 1551 i: 'O' + ++id, // object ID 1552 w: {} // weak collections IDs 1553 } }); 1554}; 1555var fastKey = function (it, create) { 1556 // return primitive with prefix 1557 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; 1558 if (!has(it, META)) { 1559 // can't set metadata to uncaught frozen object 1560 if (!isExtensible(it)) return 'F'; 1561 // not necessary to add metadata 1562 if (!create) return 'E'; 1563 // add missing metadata 1564 setMeta(it); 1565 // return object ID 1566 } return it[META].i; 1567}; 1568var getWeak = function (it, create) { 1569 if (!has(it, META)) { 1570 // can't set metadata to uncaught frozen object 1571 if (!isExtensible(it)) return true; 1572 // not necessary to add metadata 1573 if (!create) return false; 1574 // add missing metadata 1575 setMeta(it); 1576 // return hash weak collections IDs 1577 } return it[META].w; 1578}; 1579// add metadata on freeze-family methods calling 1580var onFreeze = function (it) { 1581 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); 1582 return it; 1583}; 1584var meta = module.exports = { 1585 KEY: META, 1586 NEED: false, 1587 fastKey: fastKey, 1588 getWeak: getWeak, 1589 onFreeze: onFreeze 1590}; 1591 1592 1593/***/ }), 1594/* 84 */ 1595/***/ (function(module, exports, __webpack_require__) { 1596 1597// all enumerable object keys, includes symbols 1598var getKeys = __webpack_require__(20); 1599var gOPS = __webpack_require__(42); 1600var pIE = __webpack_require__(25); 1601module.exports = function (it) { 1602 var result = getKeys(it); 1603 var getSymbols = gOPS.f; 1604 if (getSymbols) { 1605 var symbols = getSymbols(it); 1606 var isEnum = pIE.f; 1607 var i = 0; 1608 var key; 1609 while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); 1610 } return result; 1611}; 1612 1613 1614/***/ }), 1615/* 85 */ 1616/***/ (function(module, exports, __webpack_require__) { 1617 1618// 7.2.2 IsArray(argument) 1619var cof = __webpack_require__(51); 1620module.exports = Array.isArray || function isArray(arg) { 1621 return cof(arg) == 'Array'; 1622}; 1623 1624 1625/***/ }), 1626/* 86 */ 1627/***/ (function(module, exports, __webpack_require__) { 1628 1629// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window 1630var toIObject = __webpack_require__(9); 1631var gOPN = __webpack_require__(52).f; 1632var toString = {}.toString; 1633 1634var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames 1635 ? Object.getOwnPropertyNames(window) : []; 1636 1637var getWindowNames = function (it) { 1638 try { 1639 return gOPN(it); 1640 } catch (e) { 1641 return windowNames.slice(); 1642 } 1643}; 1644 1645module.exports.f = function getOwnPropertyNames(it) { 1646 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); 1647}; 1648 1649 1650/***/ }), 1651/* 87 */
vendor: 4,333 bytes, lines 1652-1798
1652/***/ (function(module, exports) { 1653 1654 1655 1656/***/ }), 1657/* 88 */ 1658/***/ (function(module, exports, __webpack_require__) { 1659 1660__webpack_require__(37)('asyncIterator'); 1661 1662 1663/***/ }), 1664/* 89 */ 1665/***/ (function(module, exports, __webpack_require__) { 1666 1667__webpack_require__(37)('observable'); 1668 1669 1670/***/ }), 1671/* 90 */ 1672/***/ (function(module, exports, __webpack_require__) { 1673 1674// most Object methods by ES6 should accept primitives 1675var $export = __webpack_require__(16); 1676var core = __webpack_require__(3); 1677var fails = __webpack_require__(14); 1678module.exports = function (KEY, exec) { 1679 var fn = (core.Object || {})[KEY] || Object[KEY]; 1680 var exp = {}; 1681 exp[KEY] = exec(fn); 1682 $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); 1683}; 1684 1685 1686/***/ }), 1687/* 91 */, 1688/* 92 */, 1689/* 93 */, 1690/* 94 */, 1691/* 95 */, 1692/* 96 */, 1693/* 97 */, 1694/* 98 */, 1695/* 99 */, 1696/* 100 */, 1697/* 101 */, 1698/* 102 */, 1699/* 103 */, 1700/* 104 */, 1701/* 105 */, 1702/* 106 */ 1703/***/ (function(module, exports, __webpack_require__) { 1704 1705/* WEBPACK VAR INJECTION */(function(global) {/** 1706 * lodash (Custom Build) <https://lodash.com/> 1707 * Build: `lodash modularize exports="npm" -o ./` 1708 * Copyright jQuery Foundation and other contributors <https://jquery.org/> 1709 * Released under MIT license <https://lodash.com/license> 1710 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> 1711 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 1712 */ 1713 1714/** Used as the `TypeError` message for "Functions" methods. */ 1715var FUNC_ERROR_TEXT = 'Expected a function'; 1716 1717/** Used as references for various `Number` constants. */ 1718var NAN = 0 / 0; 1719 1720/** `Object#toString` result references. */ 1721var symbolTag = '[object Symbol]'; 1722 1723/** Used to match leading and trailing whitespace. */ 1724var reTrim = /^\s+|\s+$/g; 1725 1726/** Used to detect bad signed hexadecimal string values. */ 1727var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; 1728 1729/** Used to detect binary string values. */ 1730var reIsBinary = /^0b[01]+$/i; 1731 1732/** Used to detect octal string values. */ 1733var reIsOctal = /^0o[0-7]+$/i; 1734 1735/** Built-in method references without a dependency on `root`. */ 1736var freeParseInt = parseInt; 1737 1738/** Detect free variable `global` from Node.js. */ 1739var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; 1740 1741/** Detect free variable `self`. */ 1742var freeSelf = typeof self == 'object' && self && self.Object === Object && self; 1743 1744/** Used as a reference to the global object. */ 1745var root = freeGlobal || freeSelf || Function('return this')(); 1746 1747/** Used for built-in method references. */ 1748var objectProto = Object.prototype; 1749 1750/** 1751 * Used to resolve the 1752 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) 1753 * of values. 1754 */ 1755var objectToString = objectProto.toString; 1756 1757/* Built-in method references for those with the same name as other `lodash` methods. */ 1758var nativeMax = Math.max, 1759 nativeMin = Math.min; 1760 1761/** 1762 * Gets the timestamp of the number of milliseconds that have elapsed since 1763 * the Unix epoch (1 January 1970 00:00:00 UTC). 1764 * 1765 * @static 1766 * @memberOf _ 1767 * @since 2.4.0 1768 * @category Date 1769 * @returns {number} Returns the timestamp. 1770 * @example 1771 * 1772 * _.defer(function(stamp) { 1773 * console.log(_.now() - stamp); 1774 * }, _.now()); 1775 * // => Logs the number of milliseconds it took for the deferred invocation. 1776 */ 1777var now = function() { 1778 return root.Date.now(); 1779}; 1780 1781/** 1782 * Creates a debounced function that delays invoking `func` until after `wait` 1783 * milliseconds have elapsed since the last time the debounced function was 1784 * invoked. The debounced function comes with a `cancel` method to cancel 1785 * delayed `func` invocations and a `flush` method to immediately invoke them. 1786 * Provide `options` to indicate whether `func` should be invoked on the 1787 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked 1788 * with the last arguments provided to the debounced function. Subsequent 1789 * calls to the debounced function return the result of the last `func` 1790 * invocation. 1791 * 1792 * **Note:** If `leading` and `trailing` options are `true`, `func` is 1793 * invoked on the trailing edge of the timeout only if the debounced function 1794 * is invoked more than once during the `wait` timeout. 1795 * 1796 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred 1797 * until to the next tick, similar to `setTimeout` with a timeout of `0`. 1798 *
1799 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) 1800 * for details over the differences between `_.debounce` and `_.throttle`. 1801 * 1802 * @static 1803 * @memberOf _ 1804 * @since 0.1.0 1805 * @category Function 1806 * @param {Function} func The function to debounce. 1807 * @param {number} [wait=0] The number of milliseconds to delay. 1808 * @param {Object} [options={}] The options object. 1809 * @param {boolean} [options.leading=false] 1810 * Specify invoking on the leading edge of the timeout. 1811 * @param {number} [options.maxWait] 1812 * The maximum time `func` is allowed to be delayed before it's invoked. 1813 * @param {boolean} [options.trailing=true] 1814 * Specify invoking on the trailing edge of the timeout. 1815 * @returns {Function} Returns the new debounced function. 1816 * @example 1817 * 1818 * // Avoid costly calculations while the window size is in flux. 1819 * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); 1820 * 1821 * // Invoke `sendMail` when clicked, debouncing subsequent calls. 1822 * jQuery(element).on('click', _.debounce(sendMail, 300, { 1823 * 'leading': true, 1824 * 'trailing': false 1825 * })); 1826 * 1827 * // Ensure `batchLog` is invoked once after 1 second of debounced calls. 1828 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); 1829 * var source = new EventSource('/stream'); 1830 * jQuery(source).on('message', debounced); 1831 * 1832 * // Cancel the trailing debounced invocation. 1833 * jQuery(window).on('popstate', debounced.cancel); 1834 */ 1835function debounce(func, wait, options) { 1836 var lastArgs, 1837 lastThis, 1838 maxWait, 1839 result, 1840 timerId, 1841 lastCallTime, 1842 lastInvokeTime = 0, 1843 leading = false, 1844 maxing = false, 1845 trailing = true; 1846 1847 if (typeof func != 'function') { 1848 throw new TypeError(FUNC_ERROR_TEXT); 1849 } 1850 wait = toNumber(wait) || 0; 1851 if (isObject(options)) { 1852 leading = !!options.leading; 1853 maxing = 'maxWait' in options; 1854 maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; 1855 trailing = 'trailing' in options ? !!options.trailing : trailing; 1856 } 1857 1858 function invokeFunc(time) { 1859 var args = lastArgs, 1860 thisArg = lastThis; 1861 1862 lastArgs = lastThis = undefined; 1863 lastInvokeTime = time; 1864 result = func.apply(thisArg, args); 1865 return result; 1866 } 1867 1868 function leadingEdge(time) { 1869 // Reset any `maxWait` timer. 1870 lastInvokeTime = time; 1871 // Start the timer for the trailing edge. 1872 timerId = setTimeout(timerExpired, wait); 1873 // Invoke the leading edge. 1874 return leading ? invokeFunc(time) : result; 1875 } 1876 1877 function remainingWait(time) { 1878 var timeSinceLastCall = time - lastCallTime, 1879 timeSinceLastInvoke = time - lastInvokeTime, 1880 result = wait - timeSinceLastCall; 1881 1882 return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result; 1883 } 1884 1885 function shouldInvoke(time) { 1886 var timeSinceLastCall = time - lastCallTime, 1887 timeSinceLastInvoke = time - lastInvokeTime; 1888 1889 // Either this is the first call, activity has stopped and we're at the 1890 // trailing edge, the system time has gone backwards and we're treating 1891 // it as the trailing edge, or we've hit the `maxWait` limit. 1892 return (lastCallTime === undefined || (timeSinceLastCall >= wait) || 1893 (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait)); 1894 } 1895 1896 function timerExpired() { 1897 var time = now(); 1898 if (shouldInvoke(time)) { 1899 return trailingEdge(time); 1900 } 1901 // Restart the timer. 1902 timerId = setTimeout(timerExpired, remainingWait(time)); 1903 } 1904 1905 function trailingEdge(time) { 1906 timerId = undefined; 1907 1908 // Only invoke if we have `lastArgs` which means `func` has been 1909 // debounced at least once. 1910 if (trailing && lastArgs) { 1911 return invokeFunc(time); 1912 } 1913 lastArgs = lastThis = undefined; 1914 return result; 1915 } 1916 1917 function cancel() { 1918 if (timerId !== undefined) { 1919 clearTimeout(timerId); 1920 } 1921 lastInvokeTime = 0; 1922 lastArgs = lastCallTime = lastThis = timerId = undefined; 1923 } 1924 1925 function flush() { 1926 return timerId === undefined ? result : trailingEdge(now()); 1927 } 1928 1929 function debounced() { 1930 var time = now(), 1931 isInvoking = shouldInvoke(time); 1932 1933 lastArgs = arguments; 1934 lastThis = this; 1935 lastCallTime = time; 1936 1937 if (isInvoking) { 1938 if (timerId === undefined) { 1939 return leadingEdge(lastCallTime); 1940 } 1941 if (maxing) { 1942 // Handle invocations in a tight loop. 1943 timerId = setTimeout(timerExpired, wait); 1944 return invokeFunc(lastCallTime); 1945 } 1946 } 1947 if (timerId === undefined) { 1948 timerId = setTimeout(timerExpired, wait); 1949 } 1950 return result; 1951 } 1952 debounced.cancel = cancel; 1953 debounced.flush = flush; 1954 return debounced; 1955} 1956 1957/** 1958 * Checks if `value` is the 1959 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) 1960 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) 1961 * 1962 * @static 1963 * @memberOf _ 1964 * @since 0.1.0 1965 * @category Lang 1966 * @param {*} value The value to check. 1967 * @returns {boolean} Returns `true` if `value` is an object, else `false`. 1968 * @example 1969 * 1970 * _.isObject({}); 1971 * // => true 1972 * 1973 * _.isObject([1, 2, 3]); 1974 * // => true 1975 * 1976 * _.isObject(_.noop); 1977 * // => true 1978 * 1979 * _.isObject(null); 1980 * // => false 1981 */ 1982function isObject(value) { 1983 var type = typeof value; 1984 return !!value && (type == 'object' || type == 'function'); 1985} 1986 1987/** 1988 * Checks if `value` is object-like. A value is object-like if it's not `null` 1989 * and has a `typeof` result of "object". 1990 * 1991 * @static 1992 * @memberOf _ 1993 * @since 4.0.0 1994 * @category Lang 1995 * @param {*} value The value to check. 1996 * @returns {boolean} Returns `true` if `value` is object-like, else `false`. 1997 * @example 1998 * 1999 * _.isObjectLike({}); 2000 * // => true 2001 * 2002 * _.isObjectLike([1, 2, 3]); 2003 * // => true 2004 * 2005 * _.isObjectLike(_.noop); 2006 * // => false 2007 * 2008 * _.isObjectLike(null); 2009 * // => false 2010 */ 2011function isObjectLike(value) { 2012 return !!value && typeof value == 'object'; 2013} 2014 2015/** 2016 * Checks if `value` is classified as a `Symbol` primitive or object. 2017 * 2018 * @static 2019 * @memberOf _ 2020 * @since 4.0.0 2021 * @category Lang 2022 * @param {*} value The value to check. 2023 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. 2024 * @example 2025 * 2026 * _.isSymbol(Symbol.iterator); 2027 * // => true 2028 * 2029 * _.isSymbol('abc'); 2030 * // => false 2031 */ 2032function isSymbol(value) { 2033 return typeof value == 'symbol' || 2034 (isObjectLike(value) && objectToString.call(value) == symbolTag); 2035} 2036 2037/** 2038 * Converts `value` to a number. 2039 * 2040 * @static 2041 * @memberOf _ 2042 * @since 4.0.0 2043 * @category Lang 2044 * @param {*} value The value to process. 2045 * @returns {number} Returns the number. 2046 * @example 2047 * 2048 * _.toNumber(3.2); 2049 * // => 3.2 2050 * 2051 * _.toNumber(Number.MIN_VALUE); 2052 * // => 5e-324 2053 * 2054 * _.toNumber(Infinity); 2055 * // => Infinity 2056 * 2057 * _.toNumber('3.2'); 2058 * // => 3.2 2059 */ 2060function toNumber(value) { 2061 if (typeof value == 'number') { 2062 return value; 2063 } 2064 if (isSymbol(value)) { 2065 return NAN; 2066 } 2067 if (isObject(value)) { 2068 var other = typeof value.valueOf == 'function' ? value.valueOf() : value; 2069 value = isObject(other) ? (other + '') : other; 2070 } 2071 if (typeof value != 'string') { 2072 return value === 0 ? value : +value; 2073 } 2074 value = value.replace(reTrim, ''); 2075 var isBinary = reIsBinary.test(value); 2076 return (isBinary || reIsOctal.test(value)) 2077 ? freeParseInt(value.slice(2), isBinary ? 2 : 8) 2078 : (reIsBadHex.test(value) ? NAN : +value); 2079} 2080 2081module.exports = debounce; 2082 2083/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27))) 2084 2085/***/ }), 2086/* 107 */ 2087/***/ (function(module, exports, __webpack_require__) { 2088 2089"use strict"; 2090 2091 2092var _typeof2 = __webpack_require__(24); 2093 2094var _typeof3 = _interopRequireDefault(_typeof2); 2095 2096function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 2097 2098(function (name, definition) { 2099 2100 if (true) { 2101 module.exports = definition(); 2102 } else if (typeof define == 'function' && (0, _typeof3.default)(def
2102ine.amd) == 'object') { 2103 define(definition); 2104 } else { 2105 this[name] = definition(); 2106 } 2107})('Colibri', function () { 2108 var $ = jQuery; 2109 if (typeof jQuery === 'undefined') { 2110 throw new Error('Colibri requires jQuery'); 2111 } 2112 2113 ;(function ($) { 2114 var version = $.fn.jquery.split('.'); 2115 if (version[0] === 1 && version[1] < 8) { 2116 throw new Error('Colibri requires at least jQuery v1.8'); 2117 } 2118 })(jQuery); 2119 2120 var _Colibri; 2121 2122 var lib_prefix = "colibri."; 2123 2124 ;(function () { 2125 // Inherits 2126 Function.prototype.inherits = function (parent) { 2127 var F = function F() {}; 2128 F.prototype = parent.prototype; 2129 var f = new F(); 2130 2131 for (var prop in this.prototype) { 2132 f[prop] = this.prototype[prop]; 2133 } 2134 this.prototype = f; 2135 this.prototype.super = parent.prototype; 2136 }; 2137 2138 // Core Class 2139 _Colibri = function Colibri(element, options) { 2140 options = (typeof options === 'undefined' ? 'undefined' : (0, _typeof3.default)(options)) === 'object' ? options : {}; 2141 2142 this.$element = $(element); 2143 var instanceId = this.$element.data('colibri-id'); 2144 2145 var instanceData = _Colibri.getData(instanceId); 2146 this.instance = instanceId; 2147 2148 var elementData = this.$element.data(); 2149 2150 this.opts = $.extend(true, {}, this.defaults, $.fn[lib_prefix + this.namespace].options, elementData, instanceData, options); 2151 this.$target = typeof this.opts.target === 'string' ? $(this.opts.target) : null; 2152 }; 2153 2154 _Colibri.getData = function (id) { 2155 if (window.colibriData && window.colibriData[id]) { 2156 return window.colibriData[id]; 2157 } 2158 2159 return {}; 2160 }; 2161 2162 _Colibri.isCustomizerPreview = function () { 2163 return !!window.colibriCustomizerPreviewData; 2164 }; 2165 // Core Functionality 2166 _Colibri.prototype = { 2167 updateOpts: function updateOpts(updatedData) { 2168 var instanceId = this.instance; 2169 var instanceData = $.extend(true, {}, this.defaults, _Colibri.getData(instanceId)); 2170 var updatedDataWithDefault = updatedData ? updatedData : {}; 2171 this.opts = $.extend(true, this.opts, instanceData, updatedDataWithDefault); 2172 }, 2173 getInstance: function getInstance() { 2174 return this.$element.data('fn.' + this.namespace); 2175 }, 2176 hasTarget: function hasTarget() { 2177 return !(this.$target === null); 2178 }, 2179 callback: function callback(type) { 2180 var args = [].slice.call(arguments).splice(1); 2181 2182 // on element callback 2183 if (this.$element) { 2184 args = this._fireCallback($._data(this.$element[0], 'events'), type, this.namespace, args); 2185 } 2186 2187 // on target callback 2188 if (this.$target) { 2189 args = this._fireCallback($._data(this.$target[0], 'events'), type, this.namespace, args); 2190 } 2191 2192 // opts callback 2193 if (this.opts && this.opts.callbacks && $.isFunction(this.opts.callbacks[type])) { 2194 return this.opts.callbacks[type].apply(this, args); 2195 } 2196 2197 return args; 2198 }, 2199 _fireCallback: function _fireCallback(events, type, eventNamespace, args) { 2200 if (events && typeof events[type] !== 'undefined') { 2201 var len = events[type].length; 2202 for (var i = 0; i < len; i++) { 2203 var namespace = events[type][i].namespace; 2204 if (namespace === eventNamespace) { 2205 var value = events[type][i].handler.apply(this, args); 2206 } 2207 } 2208 } 2209 2210 return typeof value === 'undefined' ? args : value; 2211 } 2212 }; 2213 })(); 2214 2215 (function (Colibri) { 2216 Colibri.Plugin = { 2217 create: function create(classname, pluginname) { 2218 pluginname = typeof pluginname === 'undefined' ? classname.toLowerCase() : pluginname; 2219 pluginname = lib_prefix + pluginname; 2220 2221 $.fn[pluginname] = function (method, options) { 2222 var args = Array.prototype.slice.call(arguments, 1); 2223 var name = 'fn.' + pluginname; 2224 var val = []; 2225 2226 this.each(function () { 2227 var $this = $(this), 2228 data = $this.data(name); 2229 options = (typeof method === 'undefined' ? 'undefined' : (0, _typeof3.default)(method)) === 'object' ? method : options; 2230 2231 if (!data) { 2232 // Initialization 2233 $this.data(name, {}); 2234 data = new Colibri[classname](this, options); 2235 $this.data(name, data); 2236 } 2237 2238 // Call methods 2239 if (typeof method === 'string') { 2240 if ($.isFunction(data[method])) { 2241 var methodVal = data[method].apply(data, args); 2242 if (methodVal !== undefined) { 2243 val.push(methodVal); 2244 } 2245 } else { 2246 $.error('No such method "' + method + '" for ' + classname); 2247 } 2248 } 2249 }); 2250 2251 return val.length === 0 || val.length === 1 ? val.length === 0 ? this
2251: val[0] : val; 2252 }; 2253 2254 $.fn[pluginname].options = {}; 2255 2256 return this; 2257 }, 2258 autoload: function autoload(pluginname) { 2259 var arr = pluginname.split(','); 2260 var len = arr.length; 2261 2262 for (var i = 0; i < len; i++) { 2263 var name = arr[i].toLowerCase().split(',').map(function (s) { 2264 return lib_prefix + s.trim(); 2265 }).join(','); 2266 this.autoloadQueue.push(name); 2267 } 2268 2269 return this; 2270 }, 2271 autoloadQueue: [], 2272 startAutoload: function startAutoload() { 2273 if (!window.MutationObserver || this.autoloadQueue.length === 0) { 2274 return; 2275 } 2276 2277 var self = this; 2278 var observer = new MutationObserver(function (mutations) { 2279 mutations.forEach(function (mutation) { 2280 var newNodes = mutation.addedNodes; 2281 if (newNodes.length === 0 || newNodes.length === 1 && newNodes.nodeType === 3) { 2282 return; 2283 } 2284 2285 self.startAutoloadOnce(); 2286 }); 2287 }); 2288 2289 // pass in the target node, as well as the observer options 2290 observer.observe(document, { 2291 subtree: true, 2292 childList: true 2293 }); 2294 }, 2295 2296 startAutoloadOnce: function startAutoloadOnce() { 2297 var self = this; 2298 var $nodes = $('[data-colibri-component]').not('[data-loaded]').not('[data-disabled]'); 2299 $nodes.each(function () { 2300 var $el = $(this); 2301 var pluginname = lib_prefix + $el.data('colibri-component'); 2302 2303 if (self.autoloadQueue.indexOf(pluginname) !== -1) { 2304 $el.attr('data-loaded', true); 2305 try { 2306 $el[pluginname](); 2307 } catch (e) { 2308 console.error(e); 2309 } 2310 } 2311 }); 2312 }, 2313 watch: function watch() { 2314 Colibri.Plugin.startAutoloadOnce(); 2315 Colibri.Plugin.startAutoload(); 2316 } 2317 }; 2318 2319 $(window).on('load', function () { 2320 Colibri.Plugin.watch(); 2321 }); 2322 })(_Colibri); 2323 2324 (function (Colibri) { 2325 Colibri.Animation = function (element, effect, callback) { 2326 this.namespace = 'animation'; 2327 this.defaults = {}; 2328 2329 // Parent Constructor 2330 Colibri.apply(this, arguments); 2331 2332 // Initialization 2333 this.effect = effect; 2334 this.completeCallback = typeof callback === 'undefined' ? false : callback; 2335 this.prefixes = ['', '-moz-', '-o-animation-', '-webkit-']; 2336 this.queue = []; 2337 2338 this.start(); 2339 }; 2340 2341 Colibri.Animation.prototype = { 2342 start: function start() { 2343 if (this.isSlideEffect()) { 2344 this.setElementHeight(); 2345 } 2346 2347 this.addToQueue(); 2348 this.clean(); 2349 this.animate(); 2350 }, 2351 addToQueue: function addToQueue() { 2352 this.queue.push(this.effect); 2353 }, 2354 setElementHeight: function setElementHeight() { 2355 this.$element.height(this.$element.outerHeight()); 2356 }, 2357 removeElementHeight: function removeElementHeight() { 2358 this.$element.css('height', ''); 2359 }, 2360 isSlideEffect: function isSlideEffect() { 2361 return this.effect === 'slideDown' || this.effect === 'slideUp'; 2362 }, 2363 isHideableEffect: function isHideableEffect() { 2364 var effects = ['fadeOut', 'slideUp', 'flipOut', 'zoomOut', 'slideOutUp', 'slideOutRight', 'slideOutLeft']; 2365 2366 return $.inArray(this.effect, effects) !== -1; 2367 }, 2368 isToggleEffect: function isToggleEffect() { 2369 return this.effect === 'show' || this.effect === 'hide'; 2370 }, 2371 storeHideClasses: function storeHideClasses() { 2372 if (this.$element.hasClass('hide-sm')) { 2373 this.$element.data('hide-sm-class', true); 2374 } else if (this.$element.hasClass('hide-md')) { 2375 this.$element.data('hide-md-class', true); 2376 } 2377 }, 2378 revertHideClasses: function revertHideClasses() { 2379 if (this.$element.data('hide-sm-class')) { 2380 this.$element.addClass('hide-sm').removeData('hide-sm-class'); 2381 } else if (this.$element.data('hide-md-class')) { 2382 this.$element.addClass('hide-md').removeData('hide-md-class'); 2383 } else { 2384 this.$element.addClass('hide'); 2385 } 2386 }, 2387 removeHideClass: function removeHideClass() { 2388 if (this.$element.data('hide-sm-class')) { 2389 this.$element.removeClass('hide-sm'); 2390 } else { 2391 if (this.$element.data('hide-md-class')) { 2392 this.$element.removeClass('hide-md'); 2393 } else { 2394 this.$element.removeClass('hide'); 2395 this.$element.removeClass('force-hide'); 2396 } 2397 } 2398 }, 2399 animate: function animate() { 2400 this.storeHideClasses(); 2401 if (this.isToggleEffect()) { 2402 return this.makeSimpleEffects(); 2403 } 2404 2405 this.$element.addClass('colibri-animated'); 2406 this.$element.addClass(this.queue[0]); 2407 this.removeHideClass(); 2408 2409 var _callback = this.queue.length > 1 ? null : this.completeCallback; 2410 this.complete('AnimationEnd', $.proxy(this.makeComplete, this), _callback); 2411 }, 2412 makeSimpleEffects: function makeSimpleEffects() { 2413 if (this.effect === 'show') { 2414 this.removeHideClass(); 2415 } else if (this.effect === 'hide') { 2416 this.revertHideClasses(); 2417 } 2418 2419 if (typeof this.completeCallback === 'function') { 2420 this.completeCallback(this); 2421 } 2422 }, 2423 makeComplete: function makeComplete() { 2424 if (this.$element.hasClass(this.queue[0])) { 2425 this.clean(); 2426 this.queue.shift(); 2427 2428 if (this.queue.length) { 2429 this.animate(); 2430 } 2431 } 2432 }, 2433 complete: function complete(type, make, callback) { 2434 var events = type.split(' ').map(function (type) { 2435 return type.toLowerCase() + ' webkit' + type + ' o' + type + ' MS' + type; 2436 }); 2437 2438 this.$element.one(events.join(' '), $.proxy(function () { 2439 if (typeof make === 'function') { 2440 make(); 2441 }
2442 if (this.isHideableEffect()) { 2443 this.revertHideClasses(); 2444 } 2445 if (this.isSlideEffect()) { 2446 this.removeElementHeight(); 2447 } 2448 if (typeof callback === 'function') { 2449 callback(this); 2450 } 2451 2452 this.$element.off(event); 2453 }, this)); 2454 }, 2455 clean: function clean() { 2456 this.$element.removeClass('colibri-animated').removeClass(this.queue[0]); 2457 } 2458 }; 2459 2460 // Inheritance 2461 Colibri.Animation.inherits(Colibri); 2462 })(_Colibri); 2463 2464 (function ($) { 2465 var animationName = lib_prefix + 'animation'; 2466 $.fn[animationName] = function (effect, callback) { 2467 var name = 'fn.animation'; 2468 2469 return this.each(function () { 2470 var $this = $(this), 2471 data = $this.data(name); 2472 2473 $this.data(name, {}); 2474 $this.data(name, data = new _Colibri.Animation(this, effect, callback)); 2475 }); 2476 }; 2477 2478 $.fn[animationName].options = {}; 2479 2480 _Colibri.animate = function ($target, effect, callback) { 2481 $target[animationName](effect, callback); 2482 return $target; 2483 }; 2484 })(jQuery); 2485 2486 (function (Colibri) { 2487 Colibri.Detect = function () {}; 2488 2489 Colibri.Detect.prototype = { 2490 isMobile: function isMobile() { 2491 return (/(iPhone|iPod|BlackBerry|Android)/.test(navigator.userAgent) 2492 ); 2493 }, 2494 isDesktop: function isDesktop() { 2495 return !/(iPhone|iPod|iPad|BlackBerry|Android)/.test(navigator.userAgent); 2496 }, 2497 isMobileScreen: function isMobileScreen() { 2498 return $(window).width() <= 768; 2499 }, 2500 isTabletScreen: function isTabletScreen() { 2501 return $(window).width() >= 768 && $(window).width() <= 1024; 2502 }, 2503 isDesktopScreen: function isDesktopScreen() { 2504 return $(window).width() > 1024; 2505 } 2506 }; 2507 })(_Colibri); 2508 2509 (function (Colibri) { 2510 Colibri.Utils = function () {}; 2511 2512 Colibri.Utils.prototype = { 2513 disableBodyScroll: function disableBodyScroll() { 2514 var $body = $('html'); 2515 var windowWidth = window.innerWidth; 2516 2517 if (!windowWidth) { 2518 var documentElementRect = document.documentElement.getBoundingClientRect(); 2519 windowWidth = documentElementRect.right - Math.abs(documentElementRect.left); 2520 } 2521 2522 var isOverflowing = document.body.clientWidth < windowWidth; 2523 var scrollbarWidth = this.measureScrollbar(); 2524 2525 $body.css('overflow', 'hidden'); 2526 if (isOverflowing) { 2527 $body.css('padding-right', scrollbarWidth); 2528 } 2529 }, 2530 measureScrollbar: function measureScrollbar() { 2531 var $body = $('body'); 2532 var scrollDiv = document.createElement('div'); 2533 scrollDiv.className = 'scrollbar-measure'; 2534 2535 $body.append(scrollDiv); 2536 var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth; 2537 $body[0].removeChild(scrollDiv); 2538 return scrollbarWidth; 2539 }, 2540 enableBodyScroll: function enableBodyScroll() { 2541 $('html').css({ 'overflow': '', 'padding-right': '' }); 2542 } 2543 }; 2544 })(_Colibri); 2545 2546 return _Colibri; 2547}); 2548 2549/***/ }), 2550/* 108 */ 2551/***/ (function(module, exports, __webpack_require__) { 2552 2553"use strict"; 2554 2555 2556Object.defineProperty(exports, "__esModule", { 2557 value: true 2558}); 2559 2560var _classCallCheck2 = __webpack_require__(43); 2561 2562var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); 2563 2564var _createClass2 = __webpack_require__(44); 2565 2566var _createClass3 = _interopRequireDefault(_createClass2); 2567 2568function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 2569 2570var BaseHandler = function () { 2571 function BaseHandler(element, settings) { 2572 (0, _classCallCheck3.default)(this, BaseHandler); 2573 2574 this.settings = settings; 2575 this.element = element; 2576 this.isPlaying = false; 2577 2578 this.ready(); 2579 } 2580 2581 (0, _createClass3.default)(BaseHandler, [{ 2582 key: 'ready', 2583 value: function ready() {} 2584 }, { 2585 key: 'play', 2586 value: function play() {} 2587 }, { 2588 key: 'pause', 2589 value: function pause() {} 2590 }, { 2591 key: 'isPaused', 2592 value: function isPaused() {} 2593 }, { 2594 key: 'setVideo', 2595 value: function setVideo(node) { 2596 node.className = 'colibri-video-background-item'; 2597 this.element.innerHTML = ''; 2598 this.element.appendChild(node); 2599 this.addResizeBind(); 2600 } 2601 }, { 2602 key: 'trigger', 2603 value: function trigger(name) { 2604 var evt; 2605 2606 if ('function' === typeof window.Event) { 2607 evt = new Event(name); 2608 } else { 2609 evt = document.createEvent('Event'); 2610 evt.initEvent(name, true, true); 2611 } 2612 2613 this.element.dispatchEvent(evt); 2614 } 2615 }, { 2616 key: 'loaded', 2617 value: function loaded() { 2618 this.trigger('video-bg-loaded'); 2619 } 2620 }, { 2621 key: 'addResizeBind', 2622 value: function addResizeBind() { 2623 var _this = this; 2624 2625 this.trigger('video-bg-resize'); 2626 this.onResize(function () { 2627 _this.trigger('video-bg-resize'); 2628 }); 2629 } 2630 }, { 2631 key: 'onLoad', 2632 value: function onLoad(callback) { 2633 jQuery(this.element).on('video-bg-loaded', callback); 2634 } 2635 }, { 2636 key: 'onResize', 2637 value: function onResize(callback) { 2638 var debounce = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100; 2639 2640 callback = jQuery.debounce(callback, debounce); 2641 jQuery(window).resize(callback); 2642 jQuery(window).on('orientationchange', callback); 2643 } 2644 }], [{ 2645 key: 'test', 2646 value: function test() { 2647 return false;
2648 } 2649 }]); 2650 return BaseHandler; 2651}(); 2652 2653exports.default = BaseHandler; 2654 2655/***/ }), 2656/* 109 */ 2657/***/ (function(module, exports, __webpack_require__) { 2658 2659"use strict"; 2660 2661 2662Object.defineProperty(exports, "__esModule", { 2663 value: true 2664}); 2665var linksDefineSamePage = function linksDefineSamePage(link1, link2) { 2666 var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, 2667 _ref$compareQuery = _ref.compareQuery, 2668 compareQuery = _ref$compareQuery === undefined ? false : _ref$compareQuery, 2669 _ref$compareHash = _ref.compareHash, 2670 compareHash = _ref$compareHash === undefined ? false : _ref$compareHash; 2671 2672 if (!link1 || !link2) { 2673 return true; 2674 } 2675 var url1 = null; 2676 var url2 = null; 2677 try { 2678 url1 = new URL(link1); 2679 url2 = new URL(link2); 2680 } catch (e) { 2681 return false; 2682 } 2683 var result = url1.origin === url2.origin && url1.pathname === url2.pathname; 2684 2685 if (compareQuery) { 2686 result = result && url1.search === url2.search; 2687 } 2688 2689 if (compareHash) { 2690 result = result && url1.hash === url2.hash; 2691 } 2692 2693 return result; 2694}; 2695 2696exports.default = linksDefineSamePage; 2697 2698/***/ }), 2699/* 110 */ 2700/***/ (function(module, exports, __webpack_require__) { 2701 2702"use strict"; 2703 2704 2705(function ($, Colibri) { 2706 var className = 'offcanvas'; 2707 2708 var Component = function Component(element, options) { 2709 this.namespace = 'offcanvas'; 2710 this.defaults = { 2711 target: null, // selector 2712 push: true, // boolean 2713 width: '250px', // string 2714 direction: 'left', // string: left or right 2715 toggleEvent: 'click', 2716 clickOutside: true, // boolean 2717 animationOpen: 'slideInLeft', 2718 animationClose: 'slideOutLeft', 2719 callbacks: ['open', 'opened', 'close', 'closed'], 2720 offcanvasOverlayId: null, 2721 $overlayElement: null, 2722 targetId: null 2723 }; 2724 2725 // Parent Constructor 2726 Colibri.apply(this, arguments); 2727 2728 // Services 2729 this.utils = new Colibri.Utils(); 2730 this.detect = new Colibri.Detect(); 2731 2732 // Initialization 2733 this.start(); 2734 }; 2735 2736 // Functionality 2737 Component.prototype = { 2738 start: function start() { 2739 if (!this.hasTarget()) { 2740 return; 2741 } 2742 var overlayId = this.opts.offcanvasOverlayId; 2743 var $overlayElement = $('#' + overlayId + '.offscreen-overlay'); 2744 this.opts.$overlayElement = $overlayElement; 2745 2746 // this.stop(); 2747 2748 this.buildTargetWidth(); 2749 this.buildAnimationDirection(); 2750 2751 this.$close = this.getCloseLink(); 2752 this.$element.on(this.opts.toggleEvent + '.' + this.namespace, $.proxy(this.toggle, this)); 2753 this.$target.addClass('offcanvas'); 2754 this.$target.trigger('colibri.offcanvas.ready'); 2755 2756 this.moveOffcanvasToBody(); 2757 2758 this.addOffcanvasOverlayLogic(); 2759 }, 2760 stop: function stop() { 2761 this.closeAll(); 2762 this.removeOffcanvasElements(); 2763 this.$element.off('.' + this.namespace); 2764 if (this.$close) { 2765 this.$close.off('.' + this.namespace); 2766 } 2767 $(document).off('.' + this.namespace); 2768 }, 2769 removeOffcanvasElements: function removeOffcanvasElements() { 2770 // var targetId = this.opts.targetId; 2771 // var $targetElement = $('#' + targetId + '.h-offcanvas-panel'); 2772 2773 this.$target.remove(); 2774 this.opts.$overlayElement.remove(); 2775 2776 // if ($targetElement && $targetElement.length > 0) { 2777 // for (var i = 0; i < $targetElement.length; i++) { 2778 // var offcanvasPanel = $targetElement[i]; 2779 // var offcanvasPanelParent = offcanvasPanel.parentNode; 2780 // if (offcanvasPanelParent && offcanvasPanelParent.tagName === 'BODY') { 2781 // offcanvasPanelParent.removeChild(offcanvasPanel); 2782 // } 2783 // } 2784 // } 2785 // 2786 // var overlayElements = this.opts.$overlayElement; 2787 // if (overlayElements && overlayElements.length > 0) { 2788 // for (var j = 0; j < overlayElements.length; j++) { 2789 // var overlayElement = overlayElements[j]; 2790 // var overlayElementParent = overlayElement.parentNode; 2791 // if (overlayElementParent && overlayElementParent.tagName === 'BODY') { 2792 // overlayElementParent.removeChild(overlayElement); 2793 // } 2794 // } 2795 // } 2796 }, 2797 moveOffcanvasToBody: function moveOffcanvasToBody() { 2798 var offcanvasPanel = this.$target[0]; 2799 document.body.appendChild(offcanvasPanel); 2800 2801 var overlayElement = this.opts.$overlayElement[0]; 2802 document.body.appendChild(overlayElement); 2803 }, 2804 addOffcanvasOverlayLogic: function addOffcanvasOverlayLogic() { 2805 var $overlayElement = this.opts.$overlayElement; 2806 var $offCanvasWrapper = this.$target; 2807 2808 if ($offCanvasWrapper.length) { 2809 $overlayElement.on('scroll touchmove mousewheel', function (e) { 2810 e.preventDefault(); 2811 e.stopPropagation(); 2812 return false;
2813 }); 2814 2815 $offCanvasWrapper.on('colibri.offcanvas.open', function () { 2816 $overlayElement.addClass('h-offcanvas-opened'); 2817 }); 2818 2819 $offCanvasWrapper.on('colibri.offcanvas.close', function () { 2820 $overlayElement.removeClass('h-offcanvas-opened'); 2821 }); 2822 } 2823 }, 2824 toggle: function toggle(e) { 2825 if (this.isOpened()) { 2826 this.close(e); 2827 } else { 2828 this.open(e); 2829 } 2830 }, 2831 buildTargetWidth: function buildTargetWidth() { 2832 this.opts.width = $(window).width() < parseInt(this.opts.width) ? '100%' : this.opts.width; 2833 }, 2834 buildAnimationDirection: function buildAnimationDirection() { 2835 if (this.opts.direction === 'right') { 2836 this.opts.animationOpen = 'slideInRight'; 2837 this.opts.animationClose = 'slideOutRight'; 2838 } 2839 }, 2840 getCloseLink: function getCloseLink() { 2841 return this.$target.find('.close'); 2842 }, 2843 open: function open(e) { 2844 if (e) { 2845 e.preventDefault(); 2846 } 2847 2848 if (!this.isOpened()) { 2849 this.closeAll(); 2850 this.callback('open'); 2851 2852 this.$target.addClass('offcanvas-' + this.opts.direction); 2853 this.$target.css('width', Math.min(parseInt(this.opts.width), window.innerWidth - 100)); 2854 this.$target.css('right', '-' + Math.min(parseInt(this.opts.width), window.innerWidth - 100)); 2855 2856 this.pushBody(); 2857 2858 this.$target.trigger('colibri.offcanvas.open'); 2859 // this.$target.animation(this.opts.animationOpen, $.proxy(this.onOpened, this)); 2860 Colibri.animate(this.$target, this.opts.animationOpen, $.proxy(this.onOpened, this)); 2861 this.$element.trigger('colibri.offcanvas.open'); 2862 } 2863 }, 2864 closeAll: function closeAll() { 2865 var $elms = $(document).find('.offcanvas'); 2866 if ($elms.length !== 0) { 2867 $elms.each(function () { 2868 var $el = $(this); 2869 2870 if ($el.hasClass('open')) { 2871 $el.css('width', ''); 2872 //.animation('hide'); 2873 Colibri.animate($el, 'hide'); 2874 $el.removeClass('open offcanvas-left offcanvas-right'); 2875 } 2876 }); 2877 2878 $(document).off('.' + this.namespace); 2879 $('body').css('left', ''); 2880 } 2881 }, 2882 close: function close(e) { 2883 if (e) { 2884 var $el = $(e.target); 2885 var isTag = $el[0].tagName === 'A' || $el[0].tagName === 'BUTTON' || $el.parents('a').length; 2886 if (isTag && $el.closest('.offcanvas').length !== 0 && !$el.hasClass('close')) { 2887 return; 2888 } 2889 2890 e.preventDefault(); 2891 } 2892 2893 if (this.isOpened()) { 2894 // this.utils.enableBodyScroll(); 2895 this.callback('close'); 2896 this.pullBody(); 2897 this.$target.trigger('colibri.offcanvas.close'); 2898 // this.$target.animation(this.opts.animationClose, $.proxy(this.onClosed, this)); 2899 Colibri.animate(this.$target, this.opts.animationClose, $.proxy(this.onClosed, this)); 2900 } 2901 }, 2902 isOpened: function isOpened() { 2903 return this.$target.hasClass('open'); 2904 }, 2905 onOpened: function onOpened() { 2906 //a11y = focus first link in offcanvas 2907 var isInsideCustomizer = window.wp && window.wp.customize; 2908 if (!isInsideCustomizer) { 2909 this.$target.find('a').eq(0).focus(); 2910 } 2911 2912 if (this.opts.clickOutside) { 2913 $(document).on('click.' + this.namespace + ' tap.' + this.namespace, $.proxy(this.close, this)); 2914 } 2915 if (this.detect.isMobileScreen()) { 2916 $('html').addClass('no-scroll'); 2917 } 2918 2919 $(document).on('keyup.' + this.namespace, $.proxy(this.handleKeyboard, this)); 2920 2921 $(document).on('keydown.' + this.namespace, $.proxy(this.handleKeyDown, this)); 2922 this.$close.on('click.' + this.namespace, $.proxy(this.close, this)); 2923 2924 // this.utils.disableBodyScroll(); 2925 this.$target.addClass('open'); 2926 this.callback('opened'); 2927 }, 2928 onClosed: function onClosed() { 2929 if (this.detect.isMobileScreen()) { 2930 $('html').removeClass('no-scroll'); 2931 } 2932 2933 this.$target.css('width', '').removeClass('offcanvas-' + this.opts.direction); 2934 2935 this.$close.off('.' + this.namespace); 2936 $(document).off('.' + this.namespace); 2937 2938 this.$target.removeClass('open'); 2939 this.callback('closed'); 2940 2941 this.$target.trigger('colibri.offcanvas.closed'); 2942 }, 2943 handleKeyboard: function handleKeyboard(e) { 2944 if (e.which === 27) { 2945 if (document.activeElement) { 2946 if ($(document.activeElement).closest('.offcanvas').length) { 2947 this.$element.focus(); 2948 } 2949 } 2950 this.close(); 2951 } 2952 }, 2953 handleKeyDown: function handleKeyDown(e) { 2954 2955 if (e.which === 9) { 2956 var $links = this.$target.find('a:visible'); 2957 var isShift = e.shiftKey; 2958 2959 if ($links.last().is(e.target) && !isShift) { 2960 $links.first().focus(); 2961 e.preventDefault(); 2962 e.stopPropagation(); 2963 return; 2964 } 2965 2966 if ($links.first().is(e.target) && isShift) { 2967 $links.last().focus(); 2968 e.preventDefault(); 2969 e.stopPropagation(); 2970 return; 2971 } 2972 } 2973 }, 2974 pullBody: function pullBody() { 2975 if (this.opts.push) { 2976 $('body').animate({ left: 0 }, 350, function () { 2977 $(this).removeClass('offcanvas-push-body'); 2978 }); 2979 } 2980 }, 2981 pushBody: function pushBody() { 2982 if (this.opts.push) { 2983 var properties = this.opts.direction === 'left' ? { left
2983: this.opts.width } : { left: '-' + this.opts.width }; 2984 $('body').addClass('offcanvas-push-body').animate(properties, 200); 2985 } 2986 } 2987 }; 2988 2989 Component.inherits(Colibri); 2990 Colibri[className] = Component; 2991 2992 Colibri.Plugin.create(className); 2993 Colibri.Plugin.autoload(className); 2994})(jQuery, Colibri); 2995 2996/***/ }), 2997/* 111 */, 2998/* 112 */, 2999/* 113 */, 3000/* 114 */, 3001/* 115 */, 3002/* 116 */, 3003/* 117 */, 3004/* 118 */, 3005/* 119 */, 3006/* 120 */, 3007/* 121 */, 3008/* 122 */, 3009/* 123 */, 3010/* 124 */, 3011/* 125 */, 3012/* 126 */, 3013/* 127 */, 3014/* 128 */ 3015/***/ (function(module, exports, __webpack_require__) { 3016 3017__webpack_require__(129); 3018__webpack_require__(168); 3019__webpack_require__(169); 3020__webpack_require__(170); 3021module.exports = __webpack_require__(171); 3022 3023 3024/***/ }), 3025/* 129 */ 3026/***/ (function(module, exports, __webpack_require__) { 3027 3028"use strict"; 3029 3030 3031__webpack_require__(63); 3032 3033__webpack_require__(130); 3034 3035__webpack_require__(131); 3036 3037var _base = __webpack_require__(64); 3038 3039var _customizableSlideshow = __webpack_require__(136); 3040 3041var _customizableSlideshow2 = _interopRequireDefault(_customizableSlideshow); 3042 3043var _customizableVideoBackground = __webpack_require__(147); 3044 3045var _customizableVideoBackground2 = _interopRequireDefault(_customizableVideoBackground); 3046 3047var _domready = __webpack_require__(38); 3048 3049var _domready2 = _interopRequireDefault(_domready); 3050 3051function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3052 3053_base.ColibriFrontend.registerPlugin(_customizableSlideshow2.default); 3054_base.ColibriFrontend.registerPlugin(_customizableVideoBackground2.default); 3055 3056_base.ColibriFrontend.getData = function (id) { 3057 if (window.colibriFrontendData && window.colibriFrontendData[id]) { 3058 return window.colibriFrontendData[id]; 3059 } 3060 3061 return {}; 3062}; 3063 3064_base.ColibriFrontend.domReady = _domready2.default; 3065 3066window.Colibri = _base.ColibriFrontend; 3067 3068__webpack_require__(157); 3069__webpack_require__(158); 3070__webpack_require__(159); 3071__webpack_require__(110); 3072 3073// 3074// // sticky 3075// 3076__webpack_require__(160); 3077__webpack_require__(161); 3078__webpack_require__(162); 3079__webpack_require__(163); 3080__webpack_require__(164); 3081__webpack_require__(110); 3082 3083/***/ }), 3084/* 130 */ 3085/***/ (function(module, exports, __webpack_require__) { 3086 3087"use strict"; 3088 3089 3090var _lodash = __webpack_require__(106); 3091 3092var _lodash2 = _interopRequireDefault(_lodash); 3093 3094function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3095 3096(function ($) { 3097 if (!$.throttle) { 3098 $.throttle = function (fn, threshhold, scope) { 3099 threshhold || (threshhold = 250); 3100 var last, deferTimer; 3101 return function () { 3102 var context = scope || this; 3103 3104 var now = +new Date(), 3105 args = arguments; 3106 if (last && now < last + threshhold) { 3107 // hold on to it 3108 clearTimeout(deferTimer); 3109 deferTimer = setTimeout(function () { 3110 last = now; 3111 fn.apply(context, args); 3112 }, threshhold); 3113 } else { 3114 last = now; 3115 fn.apply(context, args); 3116 } 3117 }; 3118 }; 3119 } 3120 3121 if (!$.debounce) { 3122 $.debounce = _lodash2.default; 3123 } 3124 3125 if (!$.event.special.tap) { 3126 $.event.special.tap = { 3127 setup: function setup(data, namespaces) { 3128 var $elem = $(this); 3129 $elem.bind('touchstart', $.event.special.tap.handler).bind('touchmove', $.event.special.tap.handler).bind('touchend', $.event.special.tap.handler); 3130 }, 3131 teardown: function teardown(namespaces) { 3132 var $elem = $(this); 3133 $elem.unbind('touchstart', $.event.special.tap.handler).unbind('touchmove', $.event.special.tap.handler).unbind('touchend', $.event.special.tap.handler); 3134 }, 3135 handler: function handler(event) { 3136 var $elem = $(this), 3137 handleObj = event.handleObj, 3138 result; 3139 $elem.data(event.type, 1); 3140 if (event.type === 'touchend' && !$elem.data('touchmove')) { 3141 event.type = 'tap'; 3142 result = handleObj.handler.call(this, event); 3143 } else if ($elem.data('touchend')) { 3144 $elem.removeData('touchstart touchmove touchend'); 3145 } 3146 3147 return result; 3148 } 3149 }; 3150 } 3151 3152 //is not supported on ie 3153 if (!$.fn.respondToVisibility) { 3154 $.fn.respondToVisibility = function (callback) { 3155 3156 //check for ie 3157 if (!('IntersectionObserver' in window) || !('IntersectionObserverEntry' in window) || !('intersectionRatio' in window.IntersectionObserverEntry.prototype)) { 3158 return null; 3159 } 3160 3161 var observer = new IntersectionObserver(function (entries, observer) {
3162 entries.forEach(function (entry) { 3163 callback(entry.intersectionRatio > 0); 3164 }); 3165 }); 3166 observer.observe(this.get(0)); 3167 return observer; 3168 }; 3169 } 3170})(window.jQuery); 3171 3172/***/ }), 3173/* 131 */ 3174/***/ (function(module, exports, __webpack_require__) { 3175 3176"use strict"; 3177 3178 3179/** 3180 * Detect Element Resize 3181 * 3182 * https://github.com/sdecima/javascript-detect-element-resize 3183 * Sebastian Decima 3184 * 3185 * version: 0.5.3 3186 **/ 3187 3188var attachEvent = document.attachEvent, 3189 stylesCreated = false; 3190 3191function resetTriggers(element) { 3192 var triggers = element.__resizeTriggers__, 3193 expand = triggers.firstElementChild, 3194 contract = triggers.lastElementChild, 3195 expandChild = expand.firstElementChild; 3196 contract.scrollLeft = contract.scrollWidth; 3197 contract.scrollTop = contract.scrollHeight; 3198 expandChild.style.width = expand.offsetWidth + 1 + 'px'; 3199 expandChild.style.height = expand.offsetHeight + 1 + 'px'; 3200 expand.scrollLeft = expand.scrollWidth; 3201 expand.scrollTop = expand.scrollHeight; 3202} 3203 3204function checkTriggers(element) { 3205 return element.offsetWidth != element.__resizeLast__.width || element.offsetHeight != element.__resizeLast__.height; 3206} 3207 3208function scrollListener(e) { 3209 var element = this; 3210 resetTriggers(this); 3211 if (this.__resizeRAF__) { 3212 cancelFrame(this.__resizeRAF__); 3213 } 3214 this.__resizeRAF__ = requestFrame(function () { 3215 if (checkTriggers(element)) { 3216 element.__resizeLast__.width = element.offsetWidth; 3217 element.__resizeLast__.height = element.offsetHeight; 3218 element.__resizeListeners__.forEach(function (fn) { 3219 fn.call(element, e); 3220 }); 3221 } 3222 }); 3223} 3224 3225if (!attachEvent) { 3226 var requestFrame = function () { 3227 var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function (fn) { 3228 return window.setTimeout(fn, 20); 3229 }; 3230 return function (fn) { 3231 return raf(fn); 3232 }; 3233 }(); 3234 3235 var cancelFrame = function () { 3236 var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.clearTimeout; 3237 return function (id) { 3238 return cancel(id); 3239 }; 3240 }(); 3241 3242 /* Detect CSS Animations support to detect element display/re-attach */ 3243 var animation = false, 3244 animationstring = 'animation', 3245 keyframeprefix = '', 3246 animationstartevent = 'animationstart', 3247 domPrefixes = 'Webkit Moz O ms'.split(' '), 3248 startEvents = 'webkitAnimationStart animationstart oAnimationStart MSAnimationStart'.split(' '), 3249 pfx = ''; 3250 { 3251 var elm = document.createElement('fakeelement'); 3252 if (elm.style.animationName !== undefined) { 3253 animation = true; 3254 } 3255 3256 if (animation === false) { 3257 for (var i = 0; i < domPrefixes.length; i++) { 3258 if (elm.style[domPrefixes[i] + 'AnimationName'] !== undefined) { 3259 pfx = domPrefixes[i]; 3260 animationstring = pfx + 'Animation'; 3261 keyframeprefix = '-' + pfx.toLowerCase() + '-'; 3262 animationstartevent = startEvents[i]; 3263 animation = true; 3264 break; 3265 } 3266 } 3267 } 3268 } 3269 3270 var animationName = 'resizeanim'; 3271 var animationKeyframes = '@' + keyframeprefix + 'keyframes ' + animationName + ' { from { opacity: 0; } to { opacity: 0; } } '; 3272 var animationStyle = keyframeprefix + 'animation: 1ms ' + animationName + '; '; 3273} 3274 3275function createStyles() { 3276 if (!stylesCreated) { 3277 //opacity:0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360 3278 var css = (animationKeyframes ? animationKeyframes : '') + '.resize-triggers { ' + (animationStyle ? animationStyle : '') + 'visibility: hidden; opacity: 0; } ' + '.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', 3279 head = document.head || document.getElementsByTagName('head')[0], 3280 style = document.createElement('style'); 3281 3282 style.type = 'text/css'; 3283 if (style.styleSheet) { 3284 style.styleSheet.cssText = css; 3285 } else { 3286 style.appendChild(document.createTextNode(css)); 3287 } 3288 3289 head.appendChild(style); 3290 stylesCreated = true; 3291 } 3292} 3293 3294window.addResizeListener = function (element, fn) { 3295 if (attachEvent) { 3296 element.attachEvent('onresize', fn); 3297 } else { 3298 if (!element.__resizeTriggers__) { 3299 if (getComputedStyle(element).position == 'static') { 3300 element.style.position = 'relative'; 3301 } 3302 createStyles(); 3303 element.__resizeLast__ = {}; 3304 element.__resizeListeners__ = []; 3305 (element.__resizeTriggers__ = document.createElement('div')).className = 'resize-triggers'; 3306 element.__resizeTriggers__.innerHTML = '<div class="expand-trigger"><div></div></div>' + '<div class="contract-trigger"></div>'; 3307 element.appendChild(element.__resizeTriggers__); 3308 resetTriggers(element); 3309 element.addEventListener('scroll', scrollListener, true); 3310 3311 /* Listen for a css animation to detect element display/re-attach */ 3312 animationstartevent && element.__resizeTriggers__.addEventListener(animationstartevent, function (e) { 3313 if (e.animationName == animationName) { 3314 resetTriggers(element); 3315 } 3316 }); 3317 } 3318 element.__resizeListeners__.push(fn); 3319 } 3320}; 3321 3322window.removeResizeListener = function (element, fn) { 3323 if (attachEvent) { 3324 element.detachEvent('onresize', fn); 3325 } else { 3326 if (!(element && element.__resizeListeners__ && element.__resizeTriggers__)) { 3327 return; 3328 } 3329 element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); 3330 if (!element.__resizeListeners__.length) { 3331 element.removeEventListener('scroll', scrollListener); 3332 element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); 3333 } 3334 } 3335}; 3336 3337/***/ }), 3338/* 132 */ 3339/***/ (function(module, exports, __webpack_require__) { 3340 3341"use strict"; 3342 3343 3344Object.defineProperty(exports, "__esModule", { 3345 value: true 3346}); 3347 3348var _classCallCheck2 = __webpack_require__(43); 3349 3350var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); 3351 3352var _createClass2 = __webpack_require__(44); 3353 3354var _createClass3 = _interopRequireDefault(_createClass2); 3355 3356var _colibri = __webpack_require__(107); 3357 3358var _colibri2 = _interopRequireDefault(_colibri); 3359 3360function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3361 3362var ColibriFrontComponent = function () { 3363 (0, _createClass3.default)(ColibriFrontComponent, null, [{ 3364 key: 'componentName', 3365 value: function componentName() { 3366 throw new TypeError('name getter should be implemented'); 3367 } 3368 }]); 3369 3370 function ColibriFrontComponent(element, options) { 3371 (0, _classCallCheck3.default)(this, ColibriFrontComponent); 3372 3373 this.$ = jQuery; 3374 this.namespace = this.constructor.componentName(); 3375 this.utils = new _colibri2.default.Utils(); 3376 this.detect = new _colibri2.default.Detect(); 3377 this.init(); 3378 _colibri2.default.apply(this, arguments); 3379 this.start(); 3380
3381 if (this.isCustomizerPreview()) { 3382 this.wpCustomize(wp.customize); 3383 } 3384 return this; 3385 } 3386 3387 (0, _createClass3.default)(ColibriFrontComponent, [{ 3388 key: 'init', 3389 value: function init() {} 3390 }, { 3391 key: 'isCustomizerPreview', 3392 value: function isCustomizerPreview() { 3393 return _colibri2.default.isCustomizerPreview(); 3394 } 3395 }, { 3396 key: 'wpCustomize', 3397 value: function wpCustomize(api) {} 3398 }, { 3399 key: 'wpSettingBind', 3400 value: function wpSettingBind(setting_id, callback) { 3401 window.wp.customize(setting_id, function (setting) { 3402 setting.bind(callback); 3403 }); 3404 } 3405 }, { 3406 key: 'updateData', 3407 value: function updateData(data) { 3408 this.opts = jQuery.extend({}, this.opts, data); 3409 this.restart(); 3410 } 3411 }, { 3412 key: 'restart', 3413 value: function restart() {} 3414 }, { 3415 key: 'start', 3416 value: function start() {} 3417 }]); 3418 return ColibriFrontComponent; 3419}(); 3420 3421exports.default = ColibriFrontComponent; 3422 3423/***/ }), 3424/* 133 */ 3425/***/ (function(module, exports, __webpack_require__) { 3426 3427module.exports = { "default": __webpack_require__(134), __esModule: true }; 3428 3429/***/ }), 3430/* 134 */ 3431/***/ (function(module, exports, __webpack_require__) { 3432 3433__webpack_require__(135); 3434var $Object = __webpack_require__(3).Object; 3435module.exports = function defineProperty(it, key, desc) { 3436 return $Object.defineProperty(it, key, desc); 3437}; 3438 3439 3440/***/ }), 3441/* 135 */ 3442/***/ (function(module, exports, __webpack_require__) { 3443 3444var $export = __webpack_require__(16); 3445// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) 3446$export($export.S + $export.F * !__webpack_require__(8), 'Object', { defineProperty: __webpack_require__(7).f }); 3447 3448 3449/***/ }), 3450/* 136 */ 3451/***/ (function(module, exports, __webpack_require__) { 3452 3453"use strict"; 3454 3455 3456Object.defineProperty(exports, "__esModule", { 3457 value: true 3458}); 3459 3460var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); 3461 3462var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; 3463 3464var _slideshow = __webpack_require__(137); 3465 3466var _slideshow2 = _interopRequireDefault(_slideshow); 3467 3468function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3469 3470function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 3471 3472function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } 3473 3474function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 3475 3476var CustomizableSlideshow = function (_Slideshow) { 3477 _inherits(CustomizableSlideshow, _Slideshow); 3478 3479 function CustomizableSlideshow() { 3480 _classCallCheck(this, CustomizableSlideshow); 3481 3482 return _possibleConstructorReturn(this, (CustomizableSlideshow.__proto__ || Object.getPrototypeOf(CustomizableSlideshow)).apply(this, arguments)); 3483 } 3484 3485 _createClass(CustomizableSlideshow, [{ 3486 key: "start", 3487 value: function start() { 3488 _get(CustomizableSlideshow.prototype.__proto__ || Object.getPrototypeOf(CustomizableSlideshow.prototype), "start", this).call(this); 3489 3490 if (!this.customizerBinded) { 3491 this.wpCustomize(wp.customize); 3492 this.customizerBinded = true; 3493 } 3494 } 3495 }, {
3496 key: "wpCustomize", 3497 value: function wpCustomize(api) { 3498 var _this2 = this; 3499 3500 var _loop = function _loop(opt) { 3501 3502 if (_this2.opts.wpSettings.hasOwnProperty(opt)) { 3503 var setting = _this2.opts.wpSettings[opt]; 3504 3505 _this2.wpSettingBind(setting, function (newValue) { 3506 _this2.opts[opt] = parseInt(newValue); 3507 _this2.stop(); 3508 setTimeout(function () { 3509 _this2.start(); 3510 }, 100); 3511 }); 3512 } 3513 }; 3514 3515 for (var opt in this.opts.wpSettings) { 3516 _loop(opt); 3517 } 3518 } 3519 }, { 3520 key: "wpSettingBind", 3521 value: function wpSettingBind(setting_id, callback) { 3522 window.wp.customize(setting_id, function (setting) { 3523 setting.bind(callback); 3524 }); 3525 } 3526 }]); 3527 3528 return CustomizableSlideshow; 3529}(_slideshow2.default); 3530 3531exports.default = CustomizableSlideshow; 3532 3533/***/ }), 3534/* 137 */ 3535/***/ (function(module, exports, __webpack_require__) { 3536 3537"use strict"; 3538 3539 3540Object.defineProperty(exports, "__esModule", { 3541 value: true 3542}); 3543 3544var _getPrototypeOf = __webpack_require__(54); 3545 3546var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); 3547 3548var _classCallCheck2 = __webpack_require__(43); 3549 3550var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); 3551 3552var _createClass2 = __webpack_require__(44); 3553 3554var _createClass3 = _interopRequireDefault(_createClass2); 3555 3556var _possibleConstructorReturn2 = __webpack_require__(59); 3557 3558var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); 3559 3560var _inherits2 = __webpack_require__(60); 3561 3562var _inherits3 = _interopRequireDefault(_inherits2); 3563 3564var _index = __webpack_require__(64); 3565 3566var _lodash = __webpack_require__(106); 3567 3568var _lodash2 = _interopRequireDefault(_lodash); 3569 3570function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3571 3572var Slideshow = function (_ColibriFrontComponen) { 3573 (0, _inherits3.default)(Slideshow, _ColibriFrontComponen); 3574 3575 function Slideshow() { 3576 (0, _classCallCheck3.default)(this, Slideshow); 3577 return (0, _possibleConstructorReturn3.default)(this, (Slideshow.__proto__ || (0, _getPrototypeOf2.default)(Slideshow)).apply(this, arguments)); 3578 } 3579 3580 (0, _createClass3.default)(Slideshow, [{ 3581 key: 'init', 3582 value: function init() { 3583 var _this2 = this; 3584 3585 this.currentIndex = 0; 3586 this.interval = -1; 3587 3588 this.debouncedRestart = (0, _lodash2.default)(function () { 3589 _this2.stop(); 3590 3591 _this2.start(); 3592 }, 500); 3593 } 3594 }, { 3595 key: 'addImageEffect', 3596 value: function addImageEffect(image, index) { 3597 var duration = this.opts.slideDuration; 3598 var speed = this.opts.slideSpeed; 3599 var delay = duration - speed; 3600 if (delay < 0) { 3601 delay = 0; 3602 } 3603 3604 this.$(image).css({ 3605 transition: 'opacity ' + speed + 'ms ease ' + delay + 'ms', 3606 zIndex: this.$images.length - index 3607 }); 3608 } 3609 }, { 3610 key: 'slideImage', 3611 value: function slideImage() { 3612 this.$images.eq(this.currentIndex).removeClass('current'); 3613 3614 var nextIndex = this.currentIndex + 1 === this.$images.length ? 0 : this.currentIndex + 1; 3615 3616 this.$images.eq(nextIndex).addClass('current').removeClass('next'); 3617 3618 this.currentIndex = nextIndex; 3619 var futureIndex = this.currentIndex + 1 === this.$images.length ? 0 : this.currentIndex + 1; 3620 3621 this.$images.eq(futureIndex).addClass('next'); 3622 } 3623 }, { 3624 key: 'restart', 3625 value: function restart() { 3626 this.debouncedRestart(); 3627 } 3628 }, { 3629 key: 'start', 3630 value: function start() { 3631 var _this3 = this; 3632 3633 this.$images = this.$element.find('.slideshow-image'); 3634 this.$images.removeClass('current'); 3635 this.$images.eq(0).addClass('current'); 3636 this.currentIndex = 0; 3637 3638 this.$images.each(function (index, image) { 3639 _this3.addImageEffect(image, index); 3640 }); 3641 3642 this.interval = setInterval(function () { 3643 _this3.slideImage(); 3644 }, parseInt(this.opts.slideDuration)); 3645 } 3646 }, { 3647 key: 'stop', 3648 value: function stop() { 3649 clearInterval(this.interval); 3650 this.$images.css({ 3651 transition: '', 3652 opacity: '' 3653 }); 3654 this.$images.removeClass('current next'); 3655 this.$images.eq(0).addClass('current'); 3656 this.currentIndex = 0; 3657 } 3658 }], [{ 3659 key: 'componentName', 3660 value: function componentName() { 3661 return 'slideshow'; 3662 } 3663 }]); 3664 return Slideshow; 3665}(_index.ColibriFrontComponent); 3666 3667exports.default = Slideshow; 3668 3669/***/ }), 3670/* 138 */ 3671/***/ (function(module, exports, __webpack_require__) { 3672 3673__webpack_require__(139); 3674module.exports = __webpack_require__(3).Object.getPrototypeOf; 3675 3676 3677/***/ }), 3678/* 139 */ 3679/***/ (function(module, exports, __webpack_require__) { 3680 3681// 19.1.2.9 Object.getPrototypeOf(O) 3682var toObject = __webpack_require__(41); 3683var $getPrototypeOf = __webpack_require__(58); 3684 3685__webpack_require__(90)('getPrototypeOf', function () { 3686 return function getPrototypeOf(it) { 3687 return $getPrototypeOf(toObject(it)); 3688 }; 3689}); 3690 3691 3692/***/ }), 3693/* 140 */ 3694/***/ (function(module, exports, __webpack_require__) { 3695 3696module.exports = { "default": __webpack_require__(141), __esModule: true }; 3697 3698/***/ }), 3699/* 141 */ 3700/***/ (function(module, exports, __webpack_require__) { 3701 3702__webpack_require__(142); 3703module.exports = __webpack_require__(3).Object.setPrototypeOf; 3704 3705 3706/***/ }), 3707/* 142 */ 3708/***/ (function(module, exports, __webpack_require__) { 3709 3710// 19.1.3.19 Object.setPrototypeOf(O, proto)
vendor: 4,096 bytes, lines 3711-3799
3711var $export = __webpack_require__(16); 3712$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(143).set }); 3713 3714 3715/***/ }), 3716/* 143 */ 3717/***/ (function(module, exports, __webpack_require__) { 3718 3719// Works with __proto__ only. Old v8 can't work with null proto objects. 3720/* eslint-disable no-proto */ 3721var isObject = __webpack_require__(13); 3722var anObject = __webpack_require__(17); 3723var check = function (O, proto) { 3724 anObject(O); 3725 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); 3726}; 3727module.exports = { 3728 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line 3729 function (test, buggy, set) { 3730 try { 3731 set = __webpack_require__(56)(Function.call, __webpack_require__(53).f(Object.prototype, '__proto__').set, 2); 3732 set(test, []); 3733 buggy = !(test instanceof Array); 3734 } catch (e) { buggy = true; } 3735 return function setPrototypeOf(O, proto) { 3736 check(O, proto); 3737 if (buggy) O.__proto__ = proto; 3738 else set(O, proto); 3739 return O; 3740 }; 3741 }({}, false) : undefined), 3742 check: check 3743}; 3744 3745 3746/***/ }), 3747/* 144 */ 3748/***/ (function(module, exports, __webpack_require__) { 3749 3750module.exports = { "default": __webpack_require__(145), __esModule: true }; 3751 3752/***/ }), 3753/* 145 */ 3754/***/ (function(module, exports, __webpack_require__) { 3755 3756__webpack_require__(146); 3757var $Object = __webpack_require__(3).Object; 3758module.exports = function create(P, D) { 3759 return $Object.create(P, D); 3760}; 3761 3762 3763/***/ }), 3764/* 146 */ 3765/***/ (function(module, exports, __webpack_require__) { 3766 3767var $export = __webpack_require__(16); 3768// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 3769$export($export.S, 'Object', { create: __webpack_require__(40) }); 3770 3771 3772/***/ }), 3773/* 147 */ 3774/***/ (function(module, exports, __webpack_require__) { 3775 3776"use strict"; 3777 3778 3779Object.defineProperty(exports, "__esModule", { 3780 value: true 3781}); 3782 3783var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); 3784 3785var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; 3786 3787var _videoBg = __webpack_require__(148); 3788 3789var _videoBg2 = _interopRequireDefault(_videoBg); 3790 3791function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3792 3793function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 3794 3795function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } 3796 3797function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 3798 3799var CustomizableVideoBackground = function (_VideoBackground) {
3800 _inherits(CustomizableVideoBackground, _VideoBackground); 3801 3802 function CustomizableVideoBackground(element, options) { 3803 var _ret; 3804 3805 _classCallCheck(this, CustomizableVideoBackground); 3806 3807 var _this = _possibleConstructorReturn(this, (CustomizableVideoBackground.__proto__ || Object.getPrototypeOf(CustomizableVideoBackground)).call(this, element, options)); 3808 3809 return _ret = _this, _possibleConstructorReturn(_this, _ret); 3810 } 3811 3812 _createClass(CustomizableVideoBackground, [{ 3813 key: "wpCustomize", 3814 value: function wpCustomize(api) { 3815 var _this2 = this; 3816 3817 this.API_URL = colibri_ADDITIONAL_JS_DATA.api_url; 3818 3819 var _loop = function _loop(opt) { 3820 3821 if (_this2.opts.wpSettings.hasOwnProperty(opt)) { 3822 var setting = _this2.opts.wpSettings[opt]; 3823 3824 _this2.wpSettingBind(setting, function (newValue) { 3825 if (opt === "externalUrl") { 3826 _this2.restartYouTubeVideo(newValue); 3827 } 3828 3829 if (opt === "internalUrl") { 3830 _this2.restartSelfHostedVideo(newValue); 3831 } 3832 3833 if (opt === "videoType") { 3834 var videoType = "native"; 3835 if (newValue == "external") videoType = "youtube"; 3836 _this2.changeProvider(videoType); 3837 } 3838 3839 if (opt === "posterUrl") { 3840 _this2.$element.css({ 3841 backgroundImage: "url(" + newValue + ")" 3842 }); 3843 _this2.videoData.poster = newValue; 3844 } 3845 }); 3846 } 3847 }; 3848 3849 for (var opt in this.opts.wpSettings) { 3850 _loop(opt); 3851 } 3852 } 3853 }, { 3854 key: "changeProvider", 3855 value: function changeProvider(newValue) { 3856 if (newValue === "youtube") { 3857 this.restartYouTubeVideo(wp.customize(this.opts.wpSettings['externalUrl']).get()); 3858 } else { 3859 this.restartSelfHostedVideo(wp.customize(this.opts.wpSettings['internalUrl']).get()); 3860 } 3861 } 3862 }, { 3863 key: "restartYouTubeVideo", 3864 value: function restartYouTubeVideo(value) { 3865 this.videoData.videoUrl = value; 3866 this.videoData.mimeType = "video/x-youtube"; 3867 3868 _get(CustomizableVideoBackground.prototype.__proto__ || Object.getPrototypeOf(CustomizableVideoBackground.prototype), "generateVideo", this).call(this); 3869 } 3870 }, { 3871 key: "restartSelfHostedVideo", 3872 value: function restartSelfHostedVideo(value) { 3873 var _this3 = this; 3874 3875 if (!value) { 3876 this.videoData.videoUrl = ""; 3877 this.videoData.mimeType = "video/mp4"; 3878 _get(CustomizableVideoBackground.prototype.__proto__ || Object.getPrototypeOf(CustomizableVideoBackground.prototype), "generateVideo", this).call(this); 3879 } else { 3880 3881 this.$.getJSON(this.API_URL + "/attachment-data/" + value, function (data) { 3882 _this3.videoData.videoUrl = data.url; 3883 _this3.videoData.mimeType = data.mime_type; 3884 3885 _get(CustomizableVideoBackground.prototype.__proto__ || Object.getPrototypeOf(CustomizableVideoBackground.prototype), "generateVideo", _this3).call(_this3); 3886 }); 3887 } 3888 } 3889 }]); 3890 3891 return CustomizableVideoBackground; 3892}(_videoBg2.default); 3893 3894exports.default = CustomizableVideoBackground; 3895 3896/***/ }), 3897/* 148 */ 3898/***/ (function(module, exports, __webpack_require__) { 3899 3900"use strict"; 3901 3902 3903Object.defineProperty(exports, "__esModule", { 3904 value: true 3905}); 3906 3907var _getPrototypeOf = __webpack_require__(54); 3908 3909var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); 3910 3911var _classCallCheck2 = __webpack_require__(43); 3912 3913var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); 3914 3915var _createClass2 = __webpack_require__(44); 3916 3917var _createClass3 = _interopRequireDefault(_createClass2); 3918 3919var _possibleConstructorReturn2 = __webpack_require__(59); 3920 3921var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); 3922 3923var _inherits2 = __webpack_require__(60); 3924 3925var _inherits3 = _interopRequireDefault(_inherits2); 3926 3927var _index = __webpack_require__(64); 3928 3929var _handlers = __webpack_require__(149); 3930 3931var _handlers2 = _interopRequireDefault(_handlers); 3932 3933var _isMobile = __webpack_require__(156); 3934 3935function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3936
3937var VideoBackground = function (_ColibriFrontComponen) { 3938 (0, _inherits3.default)(VideoBackground, _ColibriFrontComponen); 3939 3940 function VideoBackground() { 3941 (0, _classCallCheck3.default)(this, VideoBackground); 3942 return (0, _possibleConstructorReturn3.default)(this, (VideoBackground.__proto__ || (0, _getPrototypeOf2.default)(VideoBackground)).apply(this, arguments)); 3943 } 3944 3945 (0, _createClass3.default)(VideoBackground, [{ 3946 key: 'init', 3947 value: function init() { 3948 this.videoData = {}; 3949 this.handler = false; 3950 this.debouncedSetPosition = jQuery.debounce(this.updateVideoBackground.bind(this), 100); 3951 } 3952 }, { 3953 key: 'generateVideo', 3954 value: function generateVideo() { 3955 var _this2 = this; 3956 3957 for (var handle in _handlers2.default) { 3958 if (_handlers2.default.hasOwnProperty(handle) && _handlers2.default[handle].test(this.videoData)) { 3959 this.$element.empty(); 3960 this.handler = new _handlers2.default[handle](this.$element[0], this.videoData); 3961 break; 3962 } 3963 } 3964 3965 this.handler.onLoad(function () { 3966 _this2.$element.children('iframe,video').addClass('h-hide-sm-force'); 3967 _this2.debouncedSetPosition(); 3968 _this2.handler.onResize(function () { 3969 return _this2.debouncedSetPosition(); 3970 }); 3971 }); 3972 3973 if (window.hop) { 3974 window.addResizeListener(this.$element.closest('.background-wrapper').parent()[0], this.debouncedSetPosition); 3975 this.debouncedSetPosition(); 3976 } 3977 } 3978 }, { 3979 key: 'stopVideo', 3980 value: function stopVideo() { 3981 if (this.handler.stopVideo) { 3982 this.handler.stopVideo(); 3983 } 3984 } 3985 }, { 3986 key: 'play', 3987 value: function play() { 3988 if (this.handler.play) { 3989 this.handler.play(); 3990 } 3991 } 3992 }, { 3993 key: 'updateVideoBackground', 3994 value: function updateVideoBackground() { 3995 if (this.handler.updateVideoSize) { 3996 this.handler.updateVideoSize(); 3997 } 3998 this.setPosition(); 3999 } 4000 }, { 4001 key: 'setPosition', 4002 value: function setPosition() { 4003 var _this3 = this; 4004 4005 this.handler.pause(); 4006 if (this.$element.children('iframe,video').eq(0).css('display') === 'none') { 4007 return; 4008 } 4009 4010 var $video = this.$element.children('iframe,video').eq(0), 4011 posX = $video.is('iframe') ? 50 : this.opts.positionX, 4012 posY = $video.is('iframe') ? 50 : this.opts.positionY, 4013 x = Math.max($video.width() - this.$element.width(), 0) * parseFloat(posX) / 100, 4014 y = Math.max($video.height() - this.$element.height(), 0) * parseFloat(posY) / 100; 4015 4016 $video.css({ 4017 transform: 'translate(-' + x + 'px,-' + y + 'px)',
4018 '-webkit-transform': 'translate(-' + x + 'px,-' + y + 'px)' 4019 }); 4020 4021 this.$element.addClass('visible'); 4022 4023 setTimeout(function () { 4024 _this3.handler.play(); 4025 }, 100); 4026 } 4027 }, { 4028 key: 'start', 4029 value: function start() { 4030 this.videoData = { 4031 mimeType: this.opts.mimeType, 4032 poster: this.opts.poster, 4033 videoUrl: this.opts.video 4034 }; 4035 4036 if (!(0, _isMobile.isMobile)()) { 4037 this.generateVideo(); 4038 } 4039 } 4040 }, { 4041 key: 'stop', 4042 value: function stop() { 4043 window.removeResizeListener(this.$element.closest('.background-wrapper').parent()[0], this.debouncedSetPosition); 4044 } 4045 }, { 4046 key: 'restart', 4047 value: function restart() { 4048 this.stop(); 4049 this.start(); 4050 } 4051 }], [{ 4052 key: 'componentName', 4053 value: function componentName() { 4054 return 'video-background'; 4055 } 4056 }]); 4057 return VideoBackground; 4058}(_index.ColibriFrontComponent); 4059 4060exports.default = VideoBackground; 4061 4062/***/ }), 4063/* 149 */ 4064/***/ (function(module, exports, __webpack_require__) { 4065 4066"use strict"; 4067 4068 4069Object.defineProperty(exports, "__esModule", { 4070 value: true 4071}); 4072 4073var _nativeHandler = __webpack_require__(150); 4074 4075var _nativeHandler2 = _interopRequireDefault(_nativeHandler); 4076 4077var _youtubeHandler = __webpack_require__(151); 4078 4079var _youtubeHandler2 = _interopRequireDefault(_youtubeHandler); 4080 4081function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 4082 4083var Handlers = { 4084 native: _nativeHandler2.default, 4085 youtube: _youtubeHandler2.default 4086}; 4087 4088exports.default = Handlers; 4089 4090/***/ }), 4091/* 150 */ 4092/***/ (function(module, exports, __webpack_require__) { 4093 4094"use strict"; 4095 4096 4097Object.defineProperty(exports, "__esModule", { 4098 value: true 4099}); 4100 4101var _getPrototypeOf = __webpack_require__(54); 4102 4103var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); 4104 4105var _classCallCheck2 = __webpack_require__(43); 4106 4107var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); 4108 4109var _createClass2 = __webpack_require__(44); 4110 4111var _createClass3 = _interopRequireDefault(_createClass2); 4112 4113var _possibleConstructorReturn2 = __webpack_require__(59); 4114 4115var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); 4116 4117var _inherits2 = __webpack_require__(60); 4118 4119var _inherits3 = _interopRequireDefault(_inherits2); 4120 4121var _baseHandler = __webpack_require__(108); 4122 4123var _baseHandler2 = _interopRequireDefault(_baseHandler); 4124 4125function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 4126 4127var NativeHandler = function (_BaseHandler) { 4128 (0, _inherits3.default)(NativeHandler, _BaseHandler); 4129 4130 function NativeHandler() { 4131 (0, _classCallCheck3.default)(this, NativeHandler); 4132 return (0, _possibleConstructorReturn3.default)(this, (NativeHandler.__proto__ || (0, _getPrototypeOf2.default)(NativeHandler)).apply(this, arguments)); 4133 } 4134 4135 (0, _createClass3.default)(NativeHandler, [{ 4136 key: 'isPaused', 4137 value: function isPaused() { 4138 return this.video.paused; 4139 } 4140 }, { 4141 key: 'ready', 4142 value: function ready() { 4143 var _this2 = this; 4144 4145 if (this.settings.poster) { 4146 this.element.style.backgroundImage = 'url("' + this.settings.poster + '")'; 4147 } 4148 4149 if (!this.settings.videoUrl) { 4150 return; 4151 } 4152 4153 var video = document.createElement('video'); 4154 4155 video.id = this.settings.id || ''; 4156 4157 // video.autoplay = 'autoplay'; 4158 video.loop = 'loop'; 4159 video.muted = 'muted'; 4160 4161 if (this.settings.width) { 4162 video.width = this.settings.width; 4163 } 4164 4165 if (this.settings.height) { 4166 video.height = this.settings.height; 4167 } 4168 4169 video.addEventListener('play', function () { 4170 _this2.trigger('play'); 4171 }); 4172 4173 video.addEventListener('pause', function () { 4174 _this2.trigger('pause'); 4175 }); 4176 4177 video.addEventListener('loadeddata', function () { 4178 _this2.loaded(); 4179 }); 4180 4181 this.video = video; 4182 this.setVideo(video); 4183 video.src = this.settings.videoUrl; 4184 } 4185 }, { 4186 key: 'pause', 4187 value: function pause() { 4188 this.video.pause(); 4189 } 4190 }, { 4191 key: 'stopVideo', 4192 value: function stopVideo() { 4193 this.video.pause(); 4194 this.video.currentTime = 0; 4195 } 4196 }, { 4197 key: 'play', 4198 value: function play() { 4199 this.video.play(); 4200 } 4201 }], [{ 4202 key: 'test', 4203 value: function test(settings) { 4204 var video = document.createElement('video'); 4205 return video.canPlayType(settings.mimeType); 4206 } 4207 }]); 4208 return NativeHandler; 4209}(_baseHandler2.default); 4210 4211exports.default = NativeHandler; 4212 4213/***/ }), 4214/* 151 */ 4215/***/ (function(module, exports, __webpack_require__) { 4216 4217"use strict"; 4218 4219 4220Object.defineProperty(exports, "__esModule", { 4221 value: true 4222}); 4223 4224var _getPrototypeOf = __webpack_require__(54); 4225 4226var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); 4227 4228var _classCallCheck2 = __webpack_require__(43); 4229 4230var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); 4231 4232var _createClass2 = __webpack_require__(44); 4233 4234var _createClass3 = _interopRequireDefault(_createClass2); 4235 4236var _possibleConstructorReturn2 = __webpack_require__(59); 4237 4238var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); 4239 4240var _get2 = __webpack_require__(152); 4241 4242var _get3 = _interopRequireDefault(_get2); 4243 4244var _inherits2 = __webpack_require__(60); 4245 4246var _inherits3 = _interopRequireDefault(_inherits2); 4247 4248var _baseHandler = __webpack_require__(108); 4249 4250var _baseHandler2 = _interopRequireDefault(_baseHandler); 4251 4252function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 4253 4254var VIDEO_ID_REGEX = /^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|&v(?:i)?=))([^#&?]*).*/; /** @global YT */ 4255 4256var YouTubeHandler = function (_BaseHandler) { 4257 (0, _inherits3.default)(YouTubeHandler, _BaseHandler); 4258 4259 function YouTubeHandler(element, settings) { 4260 var _ret; 4261 4262 (0, _classCallCheck3.default)(this, YouTubeHandler); 4263 4264 var _this = (0, _possibleConstructorReturn3.default)(this, (YouTubeHandler.__proto__ || (0, _getPrototypeOf2.default)(YouTubeHandler)).call(this, element, settings)); 4265 4266 return _ret = _this, (0, _possibleConstructorReturn3.default)(_this, _ret); 4267 } 4268 4269 (0, _createClass3.default)(YouTubeHandler, [{ 4270 key: 'ready', 4271 value: function ready() { 4272 var _this2 = this; 4273 4274 if (this.settings.poster) { 4275 this.element.style.backgroundImage = 'url("' + this.settings.poster + '")'; 4276 } 4277 4278 if ('YT' in window) { 4279 window.YT.ready(function () { 4280 _this2.loadVideo(); 4281 }); 4282 } else { 4283 var tag = document.createElement('script'); 4284 tag.src = 'https://www.youtube.com/iframe_api'; 4285 tag.onload = function () { 4286 window.YT.ready(function () { 4287 _this2.loadVideo(); 4288 }); 4289 }; 4290 4291 document.getElementsByTagName('head')[0].appendChild(tag); 4292 } 4293 } 4294 }, { 4295 key: 'getVideoID', 4296 value: function getVideoID() { 4297 var matches = this.settings.videoUrl.match(VIDEO_ID_REGEX); 4298 4299 if (matches && matches.length >= 2) { 4300 return matches[1]; 4301 } 4302 4303 return null; 4304 } 4305 }, { 4306 key: 'getYTOptions', 4307 value: function getYTOptions() { 4308 var _this3 = this; 4309 4310 var options = { 4311 videoId: this.getVideoID(), 4312 events: { 4313 onReady: function onReady(e) { 4314 var ytVideo = e.target; 4315 4316 //added mute param, not sure if this mute function call is needed anymore. 4317 ytVideo.mute(); 4318 top.yt1 = ytVideo; 4319 ytVideo.setPlaybackQuality('auto'); 4320 _this3.play(); 4321 _this3.loaded(); 4322 }, 4323 onStateChange: function onStateChange(e) { 4324 if (window.YT.PlayerState.PLAYING === e.data) { 4325 _this3.trigger('play'); 4326 } else if (window.YT.PlayerState.PAUSED === e.data) { 4327 _this3.trigger('pause'); 4328 } else if (window.YT.PlayerState.ENDED === e.data) { 4329 e.target.playVideo(); 4330 } 4331 }, 4332 onError: function onError(e) { 4333 _this3.player.getIframe().style.display = 'none'; 4334 } 4335 }, 4336 playerVars: { 4337 autoplay: 1, 4338 controls: 0, 4339 disablekb: 1, 4340 fs: 0, 4341 iv_load_policy: 3, 4342 loop: 1, 4343 modestbranding: 1, 4344 playsinline: 1, 4345 rel: 0, 4346 showinfo: 0, 4347 4348 /** 4349 * Sometimes the mute function used in the onRead event did not work, but using this options the videos are 4350 * always muted 4351 */ 4352 mute: 1 4353 } 4354 }; 4355 4356 if (this.settings.height) { 4357 options['height'] = this.settings.height; 4358 } else { 4359 options['height'] = 1080; 4360 } 4361 4362 if (this.settings.width) { 4363 options['width'] = this.settings.width; 4364 } else { 4365 options['width'] = 1920; 4366 } 4367 // height: this.settings.height, 4368 // width: this.settings.width, 4369 4370 return options; 4371 } 4372 }, { 4373 key: 'loadVideo', 4374 value: function loadVideo() { 4375 var video = document.createElement('div'), 4376 YT = window.YT; 4377 4378 this.setVideo(video); 4379 this.player = new window.YT.Player(video, this.getYTOptions()); 4380 } 4381 }, { 4382 key: 'updateVideoSize', 4383 value: function updateVideoSize() { 4384 if (!this.player) { 4385 return; 4386 } 4387 var $iframe = jQuery(this.player.getIframe()), 4388 size = this.calcVideosSize(); 4389 $iframe.css(size); 4390 $iframe.addClass('ready'); 4391 } 4392 }, { 4393 key: 'calcVideosSize', 4394 value: function calcVideosSize() { 4395 var width = jQuery(this.element).outerWidth(), 4396 height = jQuery(this.element).outerHeight(), 4397 aspectRatio = '16:9'.split(':'), 4398 proportion = aspectRatio[0] / aspectRatio[1], 4399 keepWidth = width / height > proportion, 4400 magnifier = 1; 4401 4402 return { 4403 width: magnifier * (keepWidth ? width : height * proportion), 4404 height: magnifier * (keepWidth ? width / proportion : height) 4405 }; 4406 } 4407 }, { 4408 key: 'play', 4409 value: function play() { 4410 if (!!this.player && !!this.player.playVideo) { 4411 if (!this.isPlaying) { 4412 this.isPlaying = true; 4413 this.player.playVideo(); 4414 } 4415 } 4416 } 4417 }, { 4418 key: 'stopVideo', 4419 value: function stopVideo() { 4420 if (!!this.player && !!this.player.stopVideo) { 4421 if (this.isPlaying) { 4422 this.isPlaying = false;
4423 this.player.stopVideo(); 4424 } 4425 } 4426 } 4427 }, { 4428 key: 'pause', 4429 value: function pause() { 4430 if (!!this.player && !!this.player.pauseVideo && !this.isPlaying) { 4431 this.isPlaying = false; 4432 this.player.pauseVideo(); 4433 } 4434 } 4435 }, { 4436 key: 'isPaused', 4437 value: function isPaused() { 4438 return YT.PlayerState.PAUSED === this.player.getPlayerState(); 4439 } 4440 }, { 4441 key: 'loaded', 4442 value: function loaded() { 4443 this.updateVideoSize(); 4444 (0, _get3.default)(YouTubeHandler.prototype.__proto__ || (0, _getPrototypeOf2.default)(YouTubeHandler.prototype), 'loaded', this).call(this); 4445 } 4446 }, { 4447 key: 'addResizeBind', 4448 value: function addResizeBind() { 4449 var _this4 = this; 4450 4451 this.onResize(function () { 4452 return _this4.updateVideoSize(); 4453 }, 50); 4454 (0, _get3.default)(YouTubeHandler.prototype.__proto__ || (0, _getPrototypeOf2.default)(YouTubeHandler.prototype), 'addResizeBind', this).call(this); 4455 } 4456 }], [{ 4457 key: 'test', 4458 value: function test(settings) { 4459 return 'video/x-youtube' === settings.mimeType; 4460 } 4461 }]); 4462 return YouTubeHandler; 4463}(_baseHandler2.default); 4464 4465exports.default = YouTubeHandler; 4466 4467/***/ }), 4468/* 152 */ 4469/***/ (function(module, exports, __webpack_require__) { 4470 4471"use strict"; 4472 4473 4474exports.__esModule = true; 4475 4476var _getPrototypeOf = __webpack_require__(54); 4477 4478var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); 4479 4480var _getOwnPropertyDescriptor = __webpack_require__(153); 4481 4482var _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor); 4483 4484function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 4485 4486exports.default = function get(object, property, receiver) { 4487 if (object === null) object = Function.prototype; 4488 var desc = (0, _getOwnPropertyDescriptor2.default)(object, property); 4489 4490 if (desc === undefined) { 4491 var parent = (0, _getPrototypeOf2.default)(object); 4492 4493 if (parent === null) { 4494 return undefined; 4495 } else { 4496 return get(parent, property, receiver); 4497 } 4498 } else if ("value" in desc) { 4499 return desc.value; 4500 } else { 4501 var getter = desc.get; 4502 4503 if (getter === undefined) { 4504 return undefined; 4505 } 4506 4507 return getter.call(receiver); 4508 } 4509}; 4510 4511/***/ }), 4512/* 153 */ 4513/***/ (function(module, exports, __webpack_require__) { 4514 4515module.exports = { "default": __webpack_require__(154), __esModule: true }; 4516 4517/***/ }), 4518/* 154 */ 4519/***/ (function(module, exports, __webpack_require__) { 4520 4521__webpack_require__(155); 4522var $Object = __webpack_require__(3).Object; 4523module.exports = function getOwnPropertyDescriptor(it, key) { 4524 return $Object.getOwnPropertyDescriptor(it, key); 4525}; 4526 4527 4528/***/ }), 4529/* 155 */ 4530/***/ (function(module, exports, __webpack_require__) { 4531 4532// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) 4533var toIObject = __webpack_require__(9); 4534var $getOwnPropertyDescriptor = __webpack_require__(53).f; 4535 4536__webpack_require__(90)('getOwnPropertyDescriptor', function () { 4537 return function getOwnPropertyDescriptor(it, key) { 4538 return $getOwnPropertyDescriptor(toIObject(it), key); 4539 }; 4540}); 4541 4542 4543/***/ }), 4544/* 156 */ 4545/***/ (function(module, exports, __webpack_require__) { 4546 4547"use strict"; 4548 4549 4550module.exports = isMobile; 4551module.exports.isMobile = isMobile; 4552 4553var mobileRE = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i; 4554 4555var tabletRE = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i; 4556 4557function isMobile(opts) { 4558 if (!opts) { 4559 opts = {}; 4560 } 4561 var ua = opts.ua; 4562 if (!ua && typeof navigator !== 'undefined') { 4563 ua = navigator.userAgent; 4564 } 4565 if (ua && ua.headers && typeof ua.headers['user-agent'] === 'string') { 4566 ua = ua.headers['user-agent']; 4567 } 4568 if (typeof ua !== 'string') { 4569 return false;
4570 } 4571 4572 return opts.tablet ? tabletRE.test(ua) : mobileRE.test(ua); 4573} 4574 4575/***/ }), 4576/* 157 */ 4577/***/ (function(module, exports, __webpack_require__) { 4578 4579"use strict"; 4580 4581 4582var _linksDefineSamePage = __webpack_require__(109); 4583 4584var _linksDefineSamePage2 = _interopRequireDefault(_linksDefineSamePage); 4585 4586function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 4587 4588(function ($) { 4589 function inCustomizer() { 4590 return Colibri.isCustomizerPreview(); 4591 } 4592 4593 if (window.location.hash === '#page-top') { 4594 changeUrlHash('', 5); 4595 } 4596 4597 var __toCheckOnScroll = { 4598 items: {}, 4599 eachCategory: function eachCategory(callback) { 4600 for (var id in this.items) { 4601 if (!this.items.hasOwnProperty(id)) { 4602 continue; 4603 } 4604 4605 callback(this.items[id]); 4606 } 4607 }, 4608 addItem: function addItem(id, item) { 4609 if (!this.items[id]) { 4610 this.items[id] = []; 4611 } 4612 4613 this.items[id].push(item); 4614 }, 4615 all: function all() { 4616 var result = []; 4617 4618 for (var id in this.items) { 4619 if (!this.items.hasOwnProperty(id)) { 4620 continue; 4621 } 4622 4623 result = result.concat(this.items[id]); 4624 } 4625 4626 return result; 4627 } 4628 }; 4629 var __alreadyScrolling = false; 4630 4631 function getScrollToValue(elData) { 4632 var offset = !isNaN(parseFloat(elData.options.offset)) ? elData.options.offset : elData.options.offset.call(elData.target); 4633 var scrollToValue = elData.target.offset().top - offset - $('body').offset().top; 4634 4635 return scrollToValue; 4636 } 4637 4638 function changeUrlHash(hash, timeout) { 4639 if (hash === location.hash.replace('#', '') || hash === 'page-top' && '' === location.hash.replace('#', '')) { 4640 return; 4641 } 4642 4643 setTimeout(function () { 4644 if (hash) { 4645 if (hash === 'page-top') { 4646 hash = ' '; 4647 } else { 4648 hash = '#' + hash; 4649 } 4650 } else { 4651 hash = ' '; 4652 } 4653 if (history && history.replaceState) { 4654 history.replaceState({}, '', hash); 4655 } 4656 }, timeout || 100); 4657 /* safari issue fixed by throtteling the event */ 4658 } 4659 4660 function scrollItem(elData) { 4661 if (__alreadyScrolling) { 4662 return; 4663 } 4664 4665 __alreadyScrolling = true; 4666 var scrollToValue = getScrollToValue(elData); 4667 4668 $('html, body').animate({ scrollTop: scrollToValue }, { 4669 easing: 'linear', 4670 complete: function complete() { 4671 // check for any updates 4672 var scrollToValue = getScrollToValue(elData); 4673 $('html, body').animate({ scrollTop: scrollToValue }, { 4674 easing: 'linear', 4675 duration: 100, 4676 complete: function complete() { 4677 __alreadyScrolling = false; 4678 changeUrlHash(elData.id, 5); 4679 } 4680 }); 4681 } 4682 }); 4683 } 4684 4685 function getPageBaseUrl() { 4686 return [location.protocol, '//', location.host, location.pathname].join(''); 4687 } 4688 4689 function fallbackUrlParse(url) { 4690 return url.split('?')[0].split('#')[0]; 4691 } 4692 4693 function getABaseUrl(element) { 4694 var href = jQuery(element)[0].href || ''; 4695 var url = '#'; 4696 4697 try { 4698 var _url = new window.URL(href); 4699 url = [_url.protocol, '//', _url.host, _url.pathname].join(''); 4700 } catch (e) { 4701 url = fallbackUrlParse(href); 4702 } 4703 4704 return url; 4705 } 4706 4707 function getTargetForEl(element) { 4708 var targetId = (element.attr('href') || '').split('#').pop(), 4709 hrefBase = getABaseUrl(element), 4710 target = null, 4711 pageURL = getPageBaseUrl(); 4712 4713 if (hrefBase.length && hrefBase !== pageURL) { 4714 return target; 4715 } 4716 4717 if (targetId.trim().length) { 4718 try { 4719 target = $('[id="' + targetId + '"]'); 4720 } catch (e) { 4721 console.log('error scrollSpy', e); 4722 } 4723 } 4724 4725 if (target && target.length) { 4726 return target; 4727 } 4728 4729 return null; 4730 } 4731 4732 $.fn.smoothScrollAnchor = function (options) { 4733 if (inCustomizer()) { 4734 return; 4735 } 4736 4737 var elements = $(this); 4738 4739 options = jQuery.extend({ 4740 offset: function offset() { 4741 var $fixed = $('.h-navigation_sticky'); 4742 if ($fixed.length) { 4743 return $fixed[0].getBoundingClientRect().height; 4744 } 4745 4746 return 0; 4747 } 4748 }, options); 4749 4750 elements.each(function () { 4751 var element = $(this); 4752 4753 //if the target options is not set or the href is not for the same page don't add smoothscroll 4754 if (!options.target && !(0, _linksDefineSamePage2.default)(document.location.href, this.href)) { 4755 return; 4756 } 4757 4758 var target = options.target || getTargetForEl(element); 4759 if (target && target.length && !target.attr('skip-smooth-scroll')) { 4760 var targetId = target.attr('id'); 4761 var targetSel = null; 4762 if (targetId) { 4763 targetSel = '[id="' + targetId.trim() + '"]'; 4764 } 4765 var elData = { 4766 element: element, 4767 options: options, 4768 target: target, 4769 targetSel: options.targetSel || targetSel, 4770 id: (target.attr('id') || '').trim() 4771 }; 4772 4773 element.off('click.smooth-scroll tap.smooth-scroll').on('click.smooth-scroll tap.smooth-scroll', function (event) { 4774 if ($(this).data('skip-smooth-scroll') || $(event.target).data('skip-smooth-scroll')) { 4775 return; 4776 } 4777 4778 event.preventDefault(); 4779 4780 if (!$(this).data('allow-propagation')) { 4781 event.stopPropagation(); 4782 } 4783 4784 scrollItem(elData); 4785 4786 if (elData.options.clickCallback) { 4787 elData.options.clickCallback.call(this, event); 4788 } 4789 }); 4790 } 4791 }); 4792 }; 4793 4794 $.fn.scrollSpy = function (options) { 4795 if (inCustomizer()) { 4796 return; 4797 } 4798 4799 var elements = $(this); 4800 var id = 'spy-' + parseInt(Date.now() * Math.random()); 4801 4802 elements.each(function () { 4803 var element = $(this); 4804 var settings = jQuery.extend({ 4805 onChange: function onChange() {}, 4806 onLeave: function onLeave() {}, 4807 clickCallback: function clickCallback() {}, 4808 4809 smoothScrollAnchor: false, 4810 offset: 0 4811 }, options); 4812 4813 if (element.is('a') && (element.attr('href') || '').indexOf('#') !== -1) { 4814 var target = getTargetForEl(element); 4815 4816 if (target && !target.attr('skip-scroll-spy')) { 4817 var elData = { 4818 element: element, 4819 options: settings, 4820 target: target, 4821 targetSel: '[id="' + target.attr('id').trim() + '"]', 4822 id: target.attr('id').trim() 4823 }; 4824 __toCheckOnScroll.addItem(id, elData); 4825 element.data('scrollSpy', elData); 4826 4827 if (options.smoothScrollAnchor) { 4828 element.smoothScrollAnchor(options); 4829 } 4830 } 4831 } 4832 }); 4833 }; 4834
4835 function update() { 4836 __toCheckOnScroll.eachCategory(function (items) { 4837 var ordered = items.sort(function (itemA, itemB) { 4838 return itemA.target.offset().top - itemB.target.offset().top; 4839 }); 4840 var lastItem = ordered.filter(function (item) { 4841 var scrollY = window.pageYOffset !== undefined ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop; 4842 return item.target.offset().top <= scrollY + window.innerHeight * 0.25; 4843 }).pop(); 4844 ordered.forEach(function (item) { 4845 if (lastItem && item.element.is(lastItem.element)) { 4846 changeUrlHash(item.id, 5); 4847 item.options.onChange.call(item.element); 4848 } else { 4849 item.options.onLeave.call(item.element); 4850 } 4851 }); 4852 }); 4853 } 4854 4855 function goToCurrentHash() { 4856 var hash = window.location.hash.replace('#', ''); 4857 var currentItem = __toCheckOnScroll.all().filter(function (item) { 4858 return item.targetSel === '[id="' + decodeURIComponent(hash).trim() + '"]'; 4859 }); 4860 4861 $(window).on('load', function () { 4862 if (currentItem.length) { 4863 scrollItem(currentItem[0]); 4864 } 4865 update(); 4866 }); 4867 } 4868 4869 if (!inCustomizer()) { 4870 $(window).scroll(update); 4871 4872 $(window).bind('smoothscroll.update', update); 4873 4874 $(window).bind('smoothscroll.update', goToCurrentHash); 4875 4876 $(goToCurrentHash); 4877 } 4878})(jQuery); 4879 4880/***/ }), 4881/* 158 */ 4882/***/ (function(module, exports, __webpack_require__) { 4883 4884"use strict"; 4885 4886 4887(function ($, Colibri) { 4888 var className = 'dropdown-menu'; 4889 4890 var arrowRightSvg = '<svg aria-hidden="true" data-prefix="fas" data-icon="angle-right" class="svg-inline--fa fa-angle-right fa-w-8" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512"><path fill="currentColor" d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"></path></svg>'; 4891 var arrowDownSvg = '<svg aria-hidden="true" data-prefix="fas" data-icon="angle-down" class="svg-inline--fa fa-angle-down fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"></path></svg>'; 4892 var arrowUpSvg = '<svg aria-hidden="true" data-prefix="fas" data-icon="angle-up" class="svg-inline--fa fa-angle-up fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"></path></svg>'; 4893 var Component = function Component(element, options) { 4894 this.namespace = className; 4895 this.defaults = { 4896 menuSelector: '.colibri-menu', 4897 offCanvasWrapper: '.colibri-menu-container', 4898 arrowSelector: 'svg.svg-inline--fa', 4899 linkSelector: '.menu-item-has-children > a, .page_item_has_children > a', 4900 menuLinkSelector: ' > .menu-item-has-children > a, > .page_item_has_children > a', 4901 subMenuLinkSelector: ' ul .menu-item-has-children > a, ul .page_item_has_children > a', 4902 $menu: null 4903 }; 4904 4905 // Parent Constructor 4906 Colibri.apply(this, arguments); 4907 4908 // Initialization 4909 this.start(); 4910 }; 4911 4912 Component.prototype = { 4913 start: function start() { 4914 var _this = this; 4915 4916 var $menu = this.$element.find(this.opts.menuSelector).first(); 4917 this.opts.$menu = $menu; 4918 4919 this.stop(); 4920 this.addListener(); 4921 this.addFocusListener(); 4922 this.addSvgArrows(); 4923 this.addReverseMenuLogic(); 4924 4925 /** TODO @catalin table menu logic needs work because it does not work*/ 4926 this.addTabletMenuLogic(); 4927 4928 $(document).ready(function () { 4929 _this.addMenuScrollSpy($menu); 4930 }); 4931 }, 4932 stop: function stop() { 4933 this.removeAllSvgArrows(); 4934 this.removeListeners(); 4935 }, 4936 copyLiEventTaA: function copyLiEventTaA(e) { 4937 var tagName = ''; 4938 if (e.target && e.target.tagName) { 4939 tagName = e.target.tagName; 4940 } 4941 if (tagName.toLowerCase() === 'a') { 4942 return; 4943 } 4944 var a = $(e.target).find('> a'); 4945 a[0].click(); 4946 }, 4947 addListener: function addListener() { 4948 this.opts.$menu.find('li').on('click', this.copyLiEventTaA); 4949 }, 4950 toggleFocus: function toggleFocus(item) { 4951 var enable = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; 4952 4953 while (this.opts.$menu[0] !== item) { 4954 if ('li' === item.tagName.toLowerCase()) { 4955 if (!enable) { 4956 item.classList.remove('hover'); 4957 } else { 4958 item.classList.add('hover'); 4959 } 4960 } 4961 item = item.parentElement; 4962 } 4963 }, 4964 addFocusListener: function addFocusListener() { 4965 var _this2 = this; 4966 4967 var links = this.opts.$menu.find('a'); 4968 links.on('focus', function (event) { 4969 _this2.toggleFocus(event.currentTarget); 4970 }); 4971 4972 links.on('blur', function (event) { 4973 _this2.toggleFocus(event.currentTarget, false); 4974 }); 4975 }, 4976 addSvgArrows: function addSvgArrows() { 4977 /** 4978 * Some clients had 3 arrows when the page loaded, could not find the cause. Probably the start function was called more times 4979 *then stop function. Because of this the arrows are removed before they are added again 4980 */ 4981 this.removeAllSvgArrows(); 4982 var menuType = this.opts.data ? this.opts.data.type ? this.opts.data.type : null : null; 4983 switch (menuType) { 4984 case 'horizontal': 4985 this.addHorizontalMenuSvgArrows(); 4986 break; 4987 case 'vertical': 4988 this.addVerticalMenuSvgArrow(); 4989 break; 4990 } 4991 }, 4992 addHorizontalMenuSvgArrows: function addHorizontalMenuSvgArrows() { 4993 var $menu = this.opts.$menu; 4994 var arrowSelector = this.opts.arrowSelector; 4995 var menuLinkSelector = this.opts.menuLinkSelector; 4996 var subMenuLinkSelector = this.opts.subMenuLinkSelector; 4997 4998 $menu.find(menuLinkSelector).each(function () { 4999 if ($(this).children(arrowSelector).length === 0) { 5000 $(this).append(arrowDownSvg); 5001 // $(this).append(arrowUpSvg); 5002 } 5003 }); 5004 $menu.find(subMenuLinkSelector).each(function () { 5005 if ($(this).children(arrowSelector).length === 0) { 5006 $(this).append(arrowRightSvg); 5007 } 5008 }); 5009 }, 5010 addVerticalMenuSvgArrow: function addVerticalMenuSvgArrow() { 5011 var $menu = this.opts.$menu; 5012 var arrowSelector = this.opts.arrowSelector; 5013 var linkSelector = this.opts.linkSelector; 5014 $menu.find(linkSelector).each(function () { 5015 if ($(this).children(arrowSelector).length === 0) { 5016 $(this).append(arrowRightSvg); 5017 } 5018 }); 5019 }, 5020 removeAllSvgArrows: function removeAllSvgArrows() { 5021 if (this.opts.$menu) { 5022 this.opts.$menu.find(this.opts.arrowSelector).remove(); 5023 } 5024 }, 5025 removeListeners: function removeListeners() { 5026 var $menu = this.opts.$menu; 5027 $menu.off('mouseover.navigation'); 5028 $menu.find('li').off('click', this.copyLiEventTaA); 5029 this.removeTabletLogic(); 5030 }, 5031 removeTabletLogic: function removeTabletLogic() { 5032 var $menu = this.opts.$menu; 5033 $menu.off('tap.navigation'); 5034 },
5035 addReverseMenuLogic: function addReverseMenuLogic() { 5036 var $menu = this.opts.$menu; 5037 var self = this; 5038 $menu.on('mouseover.navigation', 'li', function () { 5039 $menu.find('li.hover').removeClass('hover'); 5040 self.setOpenReverseClass($menu, $(this)); 5041 }); 5042 }, 5043 setOpenReverseClass: function setOpenReverseClass($menu, $item) { 5044 // level 0 - not in dropdown 5045 if (this.getItemLevel($menu, $item) > 0) { 5046 var $submenu = $item.children('ul'); 5047 var subItemDoesNotFit = $submenu.length && $item.offset().left + $item.width() + 300 > window.innerWidth; 5048 var parentsAreReversed = $submenu.length && $item.closest('.open-reverse').length; 5049 5050 if (subItemDoesNotFit || parentsAreReversed) { 5051 $submenu.addClass('open-reverse'); 5052 } else { 5053 if ($submenu.length) { 5054 $submenu.removeClass('open-reverse'); 5055 } 5056 } 5057 } 5058 }, 5059 getItemLevel: function getItemLevel($menu, $item) { 5060 var menuSelector = this.opts.menuSelector; 5061 var temp2 = $item.parentsUntil(menuSelector); 5062 var temp = temp2.filter('li'); 5063 return temp.length; 5064 }, 5065 addTabletMenuLogic: function addTabletMenuLogic() { 5066 var self = this; 5067 var $menu = this.opts.$menu; 5068 if (!this.opts.clickOnLink) { 5069 this.opts.clickOnLink = this.clickOnLink.bind(this); 5070 } 5071 if (!this.opts.clickOnArrow) { 5072 this.opts.clickOnArrow = this.clickOnArrow.bind(this); 5073 } 5074 5075 $menu.off('tap.navigation', this.opts.clickOnArrow); 5076 $menu.on('tap.navigation', 'li.menu-item > a svg', this.opts.clickOnArrow); 5077 5078 $menu.off('tap.navigation', this.opts.clickOnLink); 5079 $menu.on('tap.navigation', 'li.menu-item > a', this.opts.clickOnLink); 5080 }, 5081 clickOnLink: function clickOnLink(event) { 5082 var arrowWasClicked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; 5083 5084 var self = this; 5085 var $this = $(event.target); 5086 var $item = $this.closest('li'); 5087 var $link = $this.closest('a'); 5088 var $menu = this.opts.$menu; 5089 var $submenu = $item.children('ul'); 5090 5091 if ($submenu.length) { 5092 if (self.isSelectedItem($item)) { 5093 var href = $link.attr('href'); 5094 5095 // do nothing if nothing 5096 if (href.indexOf('#') === 0) { 5097 var anchor = href.replace('#', '').trim(); 5098 5099 if (!anchor || !$('#' + anchor).length) { 5100 return; 5101 } 5102 } 5103 event.stopPropagation(); 5104 if (arrowWasClicked) { 5105 event.preventDefault(); 5106 } 5107 self.deselectItems($menu, $item); 5108 } else { 5109 event.stopPropagation(); 5110 event.preventDefault(); 5111 self.selectItem($menu, $item); 5112 } 5113 } else { 5114 event.stopPropagation(); 5115 if (arrowWasClicked || !arrowWasClicked && self.isSelectedItem($item)) { 5116 event.preventDefault(); 5117 } 5118 self.deselectItems($menu, $item); 5119 } 5120 }, 5121 clickOnArrow: function clickOnArrow(event) { 5122 this.clickOnLink(event, true); 5123 }, 5124 selectItem: function selectItem($menu, $item) { 5125 this.deselectItems($menu, $item); 5126 $item.attr('data-selected-item', true); 5127 this.clearMenuHovers($menu, $item); 5128 $item.addClass('hover'); 5129 this.setOpenReverseClass($menu, $item); 5130 var self = this; 5131 $('body').on('tap.navigation-clear-selection', '*', function () { 5132 var $this = jQuery(this); 5133 self.clearSelectionWhenTapOutside($this, $menu); 5134 }); 5135 5136 $(window).on('scroll.navigation-clear-selection', function () { 5137 var $this = jQuery(this); 5138 self.clearSelectionWhenTapOutside($this, $menu); 5139 }); 5140 }, 5141 deselectItems: function deselectItems($menu, $item) { 5142 $item.removeClass('hover'); 5143 $menu.find('[data-selected-item]').each(function () { 5144 var $item = $(this); 5145 $item.removeAttr('data-selected-item'); 5146 var $submenu = $menu.children('ul'); 5147 5148 //TODO @catalin, check if this mobile menu code is needed 5149 if ($menu.is('.mobile-menu')) { 5150 $submenu.slideDown(); 5151 } 5152 }); 5153 }, 5154 isSelectedItem: function isSelectedItem($item) { 5155 return $item.is('[data-selected-item]'); 5156 }, 5157 clearMenuHovers: function clearMenuHovers($menu, except) { 5158 var self = this; 5159 $menu.find('li.hover').each(function () { 5160 if (except && self.containsSelectedItem($(this))) { 5161 return; 5162 } 5163 $(this).removeClass('hover'); 5164 }); 5165 }, 5166 containsSelectedItem: function containsSelectedItem($item) { 5167 return $item.find('[data-selected-item]').length > 0 || $item.is('[data-selected-item]'); 5168 }, 5169 clearSelectionWhenTapOutside: function clearSelectionWhenTapOutside($this, $menu) { 5170 $('body').off('tap.navigation-clear-selection'); 5171 $(window).off('scroll.navigation-clear-selection'); 5172 if ($this.is($menu) || $.contains($menu[0], this)) { 5173 return; 5174 } 5175 this.clearMenuHovers($menu); 5176 }, 5177 addMenuScrollSpy: function addMenuScrollSpy(startFrom) { 5178 var $menu = startFrom; 5179 if ($.fn.scrollSpy) { 5180 $menu.find('a').scrollSpy({ 5181 onChange: function onChange() { 5182 $menu.find(' > .current-menu-item, > .current_page_item').removeClass('current-menu-item current_page_item'); 5183 $(this).closest('li').addClass('current-menu-item current_page_item'); 5184 }, 5185 onLeave: function onLeave() { 5186 $(this).closest('li').removeClass('current-menu-item current_page_item'); 5187 }, 5188 5189 smoothScrollAnchor: true, 5190 offset: function offset() { 5191 //offset is needed only for sticky menu 5192 var $fixed = $menu.closest('.h-navigation_sticky'); 5193 if ($fixed.length) { 5194 return $fixed[0].getBoundingClientRect().height; 5195 } 5196 5197 return 0; 5198 } 5199 }); 5200 } 5201 5202 $(window).trigger('smoothscroll.update'); 5203 } 5204 }; 5205 5206 Component.inherits(Colibri); 5207 Colibri[className] = Component; 5208 5209 Colibri.Plugin.create(className); 5210 Colibri.Plugin.autoload(className); 5211})(jQuery, Colibri); 5212 5213/***/ }), 5214/* 159 */ 5215/***/ (function(module, exports, __webpack_require__) { 5216 5217"use strict"; 5218 5219 5220var _linksDefineSamePage = __webpack_require__(109); 5221 5222var _linksDefineSamePage2 = _interopRequireDefault(_linksDefineSamePage); 5223 5224function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 5225 5226(function ($, Colibri) { 5227 var className = 'accordion-menu'; 5228 5229 var arrowRightSvg = '<svg aria-hidden="true" data-prefix="fas" data-icon="angle-right" class="svg-inline--fa fa-angle-right fa-w-8" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512">
5229<path fill="currentColor" d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"></path></svg>'; 5230 var arrowDownSvg = '<svg aria-hidden="true" data-prefix="fas" data-icon="angle-down" class="svg-inline--fa fa-angle-down fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"></path></svg>'; 5231 5232 arrowRightSvg = '<div data-skip-smooth-scroll="1" class="h-global-transition-disable arrow-wrapper arrow-right">' + arrowRightSvg + '</div>'; 5233 arrowDownSvg = '<div data-skip-smooth-scroll="1" class="h-global-transition-disable arrow-wrapper arrow-down">' + arrowDownSvg + '</div>'; 5234 5235 var Component = function Component(element, options) { 5236 this.namespace = className; 5237 this.defaults = { 5238 menuSelector: '.colibri-menu', 5239 offCanvasWrapper: '.colibri-menu-container', 5240 linkSelector: '.menu-item-has-children > a, .page_item_has_children > a', 5241 linkLeafsSelector: 'li:not(.menu-item-has-children):not(.page_item_has_children) > a', 5242 arrowSelector: ['.menu-item-has-children > a > .arrow-wrapper, .page_item_has_children > a > .arrow-wrapper', '.menu-item-has-children > a > svg, .page_item_has_children > a > svg'].join(','), 5243 linkSelectorInLink: 'svg', 5244 $menu: null 5245 }; 5246 5247 // Parent Constructor 5248 Colibri.apply(this, arguments); 5249 5250 // Initialization 5251 this.initBindedFunctions(); 5252 this.initEventListenersData(); 5253 5254 this.start(); 5255 }; 5256 5257 Component.prototype = { 5258 start: function start() { 5259 var $menu = this.$element.find(this.opts.menuSelector).first(); 5260 this.opts.$menu = $menu; 5261 this.addSvgArrows(); 5262 5263 this.opts.$menu.find('a').data('allow-propagation', true); 5264 5265 this.removeEventListeners(); 5266 this.addEventListeners(); 5267 this.addFocusListener(); 5268 this.addMenuScrollSpy($menu); 5269 }, 5270 initBindedFunctions: function initBindedFunctions() { 5271 this.debounceApplyDropdownLogic = $.debounce(this.applyDropdownLogic.bind(this), 10); 5272 this.bindedLinkEventHandler = this.linkEventHandler.bind(this); 5273 this.bindedLinkArrowEventHandler = this.linkArrowEventHandler.bind(this); 5274 }, 5275 initEventListenersData: function initEventListenersData() { 5276 var menuNamespace = '.accordion-menu'; 5277 var events = ['click', 'tap']; 5278 var eventBase = events.map(function (event) { 5279 return '' + event + menuNamespace; 5280 }); 5281 5282 var linkSelectorEvent = eventBase.map(function (item) { 5283 return item + '.link-selector'; 5284 }).join(' '); 5285 5286 var arrowSelectorEvent = eventBase.map(function (item) { 5287 return item + '.arrow-selector'; 5288 }).join(' '); 5289 5290 var offCanvasEvent = eventBase.map(function (item) { 5291 return item + '.off-canvas'; 5292 }).join(' '); 5293 5294 this._eventOptions = { 5295 menuNamespace: menuNamespace, 5296 linkSelectorEvent: linkSelectorEvent, 5297 arrowSelectorEvent: arrowSelectorEvent, 5298 offCanvasEvent: offCanvasEvent 5299 }; 5300 }, 5301 toggleFocus: function toggleFocus(item) { 5302 while (this.opts.$menu[0] !== item) { 5303 if ('li' === item.tagName.toLowerCase()) { 5304 if (-1 !== item.className.indexOf('hover')) { 5305 item.className = item.className.replace(' hover', ''); 5306 } else { 5307 item.className += ' hover'; 5308 } 5309 } 5310 item = item.parentElement; 5311 } 5312 }, 5313 addFocusListener: function addFocusListener() { 5314 var _this = this; 5315 5316 var links = this.opts.$menu.find('a'); 5317 5318 links.on('focus', function (event) { 5319 _this.toggleFocus(event.currentTarget); 5320 }); 5321 5322 links.on('blur', function (event) { 5323 _this.toggleFocus(event.currentTarget, false); 5324 }); 5325 }, 5326 addEventListeners: function addEventListeners() { 5327 var $menu = this.opts.$menu; 5328 var eventOptions = this._eventOptions; 5329 $menu.on(eventOptions.arrowSelectorEvent, this.opts.arrowSelector, this.bindedLinkArrowEventHandler); 5330 5331 if (window.wp && window.wp.customize) { 5332 $menu.off(eventOptions.linkSelectorEvent, this.opts.linkSelector); 5333 } 5334 5335 $menu.on(eventOptions.linkSelectorEvent, this.opts.linkSelector, this.bindedLinkEventHandler); 5336 $menu.on(eventOptions.offCanvasEvent, this.opts.linkLeafsSelector, this.closeOffcanvasPanel); 5337 5338 $(document).on('keyup.' + this.namespace, $.proxy(this.handleKeyboard, this)); 5339 }, 5340 removeEventListeners: function removeEventListeners() { 5341 var $menu = this.opts.$menu; 5342 var eventOptions = this._eventOptions; 5343 $menu.off(eventOptions.menuNamespace); 5344 $(document).on('keyup.' + this.namespace); 5345 }, 5346 stop: function stop() { 5347 this.removeEventListeners(); 5348 this.removeAllSvgArrows(); 5349 }, 5350 handleKeyboard: function handleKeyboard(e) { 5351 var item = e.target; 5352 if ($.contains(this.opts.$menu[0], item)) { 5353 if ($(item).siblings('ul').length) { 5354 if (e.which === 37) { 5355 this.closeDropDown($(item).closest('li')); 5356 } 5357 5358 if (e.which === 39) { 5359 this.openDropDown($(item).closest('li')); 5360 } 5361 } 5362 } 5363 }, 5364 openDropDown: function openDropDown(item) { 5365 if (!item) { 5366 return; 5367 } 5368 5369 if ($(item).is('a')) { 5370 item = $(item).closest('li'); 5371 } else { 5372 item = $(item); 5373 } 5374 5375 item.addClass('open'); 5376 5377 item.children('ul').slideDown(100); 5378 }, 5379 closeDropDown: function closeDropDown(item) { 5380 if (!item) { 5381 return; 5382 } 5383 5384 if ($(item).is('a')) { 5385 item = $(item).closest('li'); 5386 } else { 5387 item = $(item); 5388 } 5389 5390 item.removeClass('open'); 5391 item.children('ul').slideUp(100); 5392 }, 5393 isDropDownOpen: function isDropDownOpen($parent) { 5394 return $parent.is('.open'); 5395 }, 5396 closeOffcanvasPanel: function closeOffcanvasPanel() { 5397 if (window.wp && window.wp.customize) { 5398 return; 5399 } 5400 5401 //some mobile menus do not work without this timeout, because the panel gets hidden before the link logic happens 5402 //and some browser stop the link for security reasons because it got fired from hidden elements. 5403 setTimeout(function () { 5404 $('.offscreen-overlay').trigger('click'); 5405 }, 500); 5406 }, 5407 linkEventHandler: function linkEventHandler(event, isForArrow) { 5408 var inCustomizer = window.wp && window.wp.customize; 5409 if (inCustomizer) { 5410 event.preventDefault(); 5411 } 5412 5413 var $this = $(event.target); 5414 var $li = $this.closest('li'); 5415 5416 if (!isForArrow && $li.hasClass('open') && !inCustomizer) { 5417 this.closeOffcanvasPanel(); 5418 return; 5419 } 5420 5421 //when the arrows are clicked the link should not redirect you, or when the item li is not opened. also stop 5422 //propagation to the link event handler 5423 if (isForArrow || !isForArrow && !$li.hasClass('open')) { 5424 event.preventDefault(); 5425 // do not trigger bubbling events e.g for offcanvas 5426 event.stopPropagation(); 5427 } 5428 // event.stopPropagation(); 5429 5430 /** 5431 * For mobile devices the event handler function is called two times one for the click event and the other time for 5432 * tap event. Because of this we had to split the logic in things that needs to be called for every call and things 5433 * that needs to be called once when the tap/click events are called at the same time. We use the debounce function 5434 * to apply the dropdown logic only once 5435 */ 5436 this.debounceApplyDropdownLogic(event, isForArrow); 5437 }, 5438 linkArrowEventHandler: function linkArrowEventHandler(event) { 5439 this.linkEventHandler(event, true); 5440 }, 5441 applyDropdownLogic: function applyDropdownLogic(event, isForArrow) { 5442 var $this = $(event.target); 5443 var $li = $this.closest('li'); 5444 5445 if (!($li.hasClass('menu-item-has-children') || $li.hasClass('page_item_has_children'))) { 5446 this.closeOffcanvasPanel(); 5447 return; 5448 } 5449 5450 if (isForArrow && this.isDropDownOpen($li)) { 5451 this.closeDropDown($li); 5452 } else { 5453 this.openDropDown($li); 5454 } 5455 }, 5456 addSvgArrows: function addSvgArrows() { 5457 var $menu = this.opts.$menu; 5458 var linkSelectorInLink = this.opts.linkSelectorInLink; 5459 $menu.find(this.opts.linkSelector).each(function () { 5460 var _this2 = this; 5461 5462 if ($(this).children(linkSelectorInLink).parent('.arrow-wrapper').length === 0) { 5463 $(this).children(linkSelectorInLink).remove(); 5464 $(this).append(arrowRightSvg); 5465 $(this).append(arrowDownSvg); 5466 } else { 5467 if ($(this).children(linkSelectorInLink).length === 0) { 5468 $(this).append(arrowRightSvg); 5469 $(this).append(arrowDownSvg); 5470 } 5471 } 5472 5473 setTimeout(function () { 5474 $(_this2).find('.h-global-transition-disable').removeClass('h-global-transition-disable'); 5475 }, 1000); 5476 }); 5477 }, 5478 removeAllSvgArrows: function removeAllSvgArrows() { 5479 if (this.opts.$menu) { 5480 this.opts.$menu.find(this.opts.arrowSelector).remove(); 5481 } 5482 }, 5483 addMenuScrollSpy: function addMenuScrollSpy(startFrom) { 5484 var $menu = startFrom; 5485 var _offset = 20; 5486 var component = this; 5487 if ($.fn.scrollSpy) { 5488 var linkSelector = component.opts.linkSelector; 5489 var arrowSelector = component.opts.arrowSelector; 5490 $menu.find('a').not(linkSelector).not(arrowSelector).scrollSpy({ 5491 onChange: function onChange() { 5492 $menu.find('.current-menu-item,.current_page_item').removeClass('current-menu-item current_page_item'); 5493 $(this).closest('li').addClass('current-menu-item current_page_item'); 5494 }, 5495 onLeave: function onLeave() { 5496 $(this).closest('li').removeClass('current-menu-item current_page_item'); 5497 }, 5498 clickCallback: function clickCallback() { 5499 component.closeOffcanvasPanel(); 5500 }, 5501 5502 smoothScrollAnchor: true, 5503 offset: function offset() { 5504 var $fixed = $menu.closest('[data-colibri-component="navigation"]'); 5505 if ($fixed.length) { 5506 return $fixed[0].getBoundingClientRect().height + _offset; 5507 } 5508 5509 return _offset; 5510 } 5511 }); 5512 } 5513 5514 $(window).trigger('smoothscroll.update'); 5515 } 5516 }; 5517 5518 Component.inherits(Colibri); 5519 Colibri[className] = Component; 5520 5521 Colibri.Plugin.create(className); 5522 Colibri.Plugin.autoload(className); 5523})(jQuery, Colibri); 5524 5525/***/ }), 5526/* 160 */ 5527/***/ (function(module, exports, __webpack_require__) { 5528 5529"use strict"; 5530 5531 5532(function ($, Colibri) { 5533 var className = 'navigation'; 5534 5535 var Component = function Component(element, options) { 5536 this.namespace = className; 5537 this.defaults = { 5538 data: { 5539 sticky: { 5540 className: 'h-navigation_sticky', 5541 startAfterNode: { 5542 enabled: false, 5543 selector: '' 5544 }, 5545 animations: { 5546 enabled: false, 5547 currentInAnimationClass: '', 5548 currentOutAnimationClass: '',
5549 allInAnimationsClasses: '', 5550 allOutAnimationsClasses: '', 5551 duration: 0 5552 }, 5553 zIndex: 9999, 5554 responsiveWidth: true, 5555 center: true, 5556 useShrink: true, 5557 toBottom: false, 5558 useNativeSticky: false, 5559 always: false 5560 }, 5561 overlap: false, 5562 overlapIsActive: false 5563 } 5564 }; 5565 // Parent Constructor 5566 Colibri.apply(this, arguments); 5567 this.computeOverlapPaddingDelayed = jQuery.debounce(this.computeOverlapPadding.bind(this), 10); 5568 //The script still is called two times but now both of the calls pass the check 5569 // if (!this.scriptCallIsValid()) { 5570 // return; 5571 // } 5572 5573 // Initialization 5574 this.start(); 5575 }; 5576 5577 Component.prototype = { 5578 start: function start() { 5579 var data = {}; 5580 if (this.opts.data) { 5581 data = this.opts.data; 5582 } 5583 if (data.sticky) { 5584 this.startSticky(data.sticky); 5585 } 5586 5587 if (data.overlap) { 5588 this.startOverlap(); 5589 } 5590 }, 5591 5592 5593 //TODO @catalin this is a temporary workaround, until the issue: #0030376 is fixed 5594 scriptCallIsValid: function scriptCallIsValid() { 5595 var isInCustomizer = Colibri.isCustomizerPreview(); 5596 if (!isInCustomizer) { 5597 return true; 5598 } 5599 var vueNavSelector = '.h-navigation_outer'; 5600 var vueNav = $(this.$element).closest(vueNavSelector).get(0); 5601 if (!vueNav) { 5602 return true; 5603 } 5604 if (vueNav.__vue__) { 5605 return true; 5606 } 5607 return false; 5608 }, 5609 startOverlap: function startOverlap() { 5610 var self = this; 5611 var $target = this.$element.closest('[data-colibri-navigation-overlap]'); 5612 //for backward compatibility reasons 5613 if ($target.length === 0) { 5614 $target = this.$element; 5615 } 5616 this.overlapTarget = $target.get(0); 5617 this.overlapIsActive = true; 5618 $(window).bind('resize.overlap orientationchange.overlap', this.computeOverlapPaddingDelayed); 5619 window.addResizeListener(this.overlapTarget, this.computeOverlapPaddingDelayed); 5620 self.computeOverlapPadding(); 5621 }, 5622 stopOverlap: function stopOverlap() { 5623 this.overlapIsActive = false; 5624 if (this.$sheet) { 5625 document.head.removeChild(this.$sheet); 5626 this.$sheet = null; 5627 } 5628 $(window).off('.overlap'); 5629 window.removeResizeListener(this.overlapTarget, this.computeOverlapPaddingDelayed); 5630 }, 5631 computeOverlapPadding: function computeOverlapPadding() { 5632 if (!this.overlapIsActive) { 5633 return; 5634 } 5635 if (!this.$sheet) { 5636 this.$sheet = document.createElement('style'); 5637 document.head.appendChild(this.$sheet); 5638 } 5639 var paddingTop = this.overlapTarget.offsetHeight + 'px !important;'; 5640 this.$sheet.innerHTML = '.h-navigation-padding{padding-top:' + paddingTop + '}'; 5641 }, 5642 startSticky: function startSticky(data) { 5643 var self = this; 5644 5645 this.$element.data('stickData', data); 5646 this.$element.fixTo('body', data); 5647 5648 if (!Colibri.isCustomizerPreview()) { 5649 this.prepareSticky(); 5650 } 5651 5652 this.$element.bind('fixto-added.sticky', function () { 5653 self.$element.attr('data-in-sticky-state', true); 5654 }); 5655 var navOuter = this.$element.closest('.h-navigation_outer'); 5656 this.$element.bind('fixto-add.sticky', function () { 5657 self.clearResetTimeouts(); 5658 var navOuter = self.$element.closest('.h-navigation_outer'); 5659 navOuter.css('animation-duration', ''); 5660 navOuter.css('min-height', navOuter[0].offsetHeight); 5661 }); 5662 5663 this.$element.bind('fixto-removed.sticky', function () { 5664 self.$element.removeAttr('data-in-sticky-state'); 5665 self.resetParentHeight(); 5666 }); 5667 5668 $(window).bind('resize.sticky orientationchange.sticky', function () { 5669 setTimeout(self.resizeCallback.bind(self), 50); 5670 }); 5671 $(window).trigger('resize.sticky'); 5672 }, 5673 stopSticky: function stopSticky() { 5674 var instance = this.fixToInstance(); 5675 if (instance) { 5676 instance.destroy(); 5677 $(window).off('.sticky'); 5678 this.$element.removeData('fixto-instance'); 5679 this.resetParentHeight(); 5680 } 5681 }, 5682 resetParentHeight: function resetParentHeight() { 5683 this.clearResetTimeouts(); 5684 var navOuter = this.$element.closest('.h-navigation_outer');
5685 var delay = parseFloat(this.$element.css('animation-duration')) * 1000; 5686 navOuter.css('animation-duration', '0s'); 5687 this.resetTimeoutHeight = setTimeout(function () { 5688 navOuter.css('min-height', ''); 5689 }, 1000); 5690 this.resetTimeoutAnimation = setTimeout(function () { 5691 navOuter.css('animation-duration', ''); 5692 }, delay + 50); 5693 }, 5694 clearResetTimeouts: function clearResetTimeouts() { 5695 clearTimeout(this.resetTimeoutHeight); 5696 clearTimeout(this.resetTimeoutAnimation); 5697 }, 5698 stop: function stop() { 5699 this.stopSticky(); 5700 this.stopOverlap(); 5701 }, 5702 prepareSticky: function prepareSticky() { 5703 var self = this; 5704 5705 this.normal = this.$element.find('[data-nav-normal]'); 5706 this.sticky = this.$element.find('[data-nav-sticky]'); 5707 5708 this.sticky.find('span[data-placeholder]').each(function () { 5709 $(this).parent().attr('data-placeholder', $(this).attr('data-placeholder')); 5710 $(this).remove(); 5711 }); 5712 5713 if (!this.sticky.length || !this.sticky.children().length) { 5714 return; 5715 } 5716 5717 this.$element.bind('fixto-added.sticky', function () { 5718 self.moveElementsToSticky(); 5719 }); 5720 5721 this.$element.bind('fixto-removed.sticky', function () { 5722 self.moveElementsToNormal(); 5723 }); 5724 }, 5725 moveElementsToSticky: function moveElementsToSticky() { 5726 var stickyEls = this.sticky.find('[data-placeholder]'); 5727 var self = this; 5728 stickyEls.each(function (index, el) { 5729 $this = $(this); 5730 5731 var type = $this.attr('data-placeholder'); 5732 5733 var content = self.normal.find('[data-placeholder-provider=' + type + '] .h-column__content >'); 5734 var stickyEquiv = $this; 5735 5736 if (stickyEquiv && content.length) { 5737 $(stickyEquiv).append(content); 5738 } 5739 }); 5740 5741 this.normal.hide(); 5742 this.sticky.show(); 5743 }, 5744 moveElementsToNormal: function moveElementsToNormal() { 5745 var stickyEls = this.sticky.find('[data-placeholder]'); 5746 var self = this; 5747 stickyEls.each(function (index, el) { 5748 $this = $(this); 5749 5750 var type = $this.attr('data-placeholder'); 5751 5752 var content = self.sticky.find('[data-placeholder=' + type + '] >'); 5753 var equiv = self.normal.find('[data-placeholder-provider=' + type + '] .h-column__content'); 5754 5755 if (equiv && content.length) { 5756 $(equiv).append(content); 5757 } 5758 }); 5759 5760 this.normal.show(); 5761 this.sticky.hide(); 5762 }, 5763 fixToInstance: function fixToInstance() { 5764 var data = this.$element.data(); 5765 if (data && data.fixtoInstance) { 5766 return data.fixtoInstance; 5767 } 5768 return false; 5769 }, 5770 resizeCallback: function resizeCallback() { 5771 if (window.innerWidth < 1024) { 5772 var data = this.$element.data(); 5773 var stickData = data.stickData; 5774 5775 if (!stickData) { 5776 return; 5777 } 5778 5779 var fixToInstance = data.fixtoInstance; 5780 if (!fixToInstance) { 5781 return true; 5782 } 5783 5784 if (window.innerWidth <= 767) { 5785 if (!stickData.stickyOnMobile) { 5786 fixToInstance.stop(); 5787 } 5788 } else { 5789 if (!stickData.stickyOnTablet) { 5790 fixToInstance.stop(); 5791 } 5792 } 5793 } else { 5794 var data = this.$element.data(); 5795 if (!data) { 5796 return; 5797 } 5798 5799 var fixToInstance = data.fixtoInstance; 5800 if (!fixToInstance) { 5801 return true; 5802 } 5803 5804 fixToInstance.refresh(); 5805 fixToInstance.start(); 5806 } 5807 } 5808 }; 5809 Component.inherits(Colibri); 5810 Colibri[className] = Component; 5811 5812 Colibri.Plugin.create(className); 5813 Colibri.Plugin.autoload(className); 5814})(jQuery, Colibri); 5815 5816/***/ }), 5817/* 161 */ 5818/***/ (function(module, exports, __webpack_require__) { 5819 5820"use strict"; 5821 5822 5823(function ($, window, document) { 5824 // Start Computed Style. Please do not modify this module here. Modify it from its own repo. See address below. 5825 5826 /*! Computed Style - v0.1.0 - 2012-07-19 5827 * https://github.com/bbarakaci/computed-style 5828 * Copyright (c) 2012 Burak Barakaci; Licensed MIT */ 5829 var computedStyle = function () { 5830 var computedStyle = { 5831 getAll: function getAll(element) { 5832 return document.defaultView.getComputedStyle(element); 5833 }, 5834 get: function get(element, name) { 5835 return this.getAll(element)[name]; 5836 }, 5837 toFloat: function toFloat(value) { 5838 return parseFloat(value, 10) || 0; 5839 }, 5840 getFloat: function getFloat(element, name) {
5841 return this.toFloat(this.get(element, name)); 5842 }, 5843 _getAllCurrentStyle: function _getAllCurrentStyle(element) { 5844 return element.currentStyle; 5845 } 5846 }; 5847 5848 if (document.documentElement.currentStyle) { 5849 computedStyle.getAll = computedStyle._getAllCurrentStyle; 5850 } 5851 5852 return computedStyle; 5853 }(); 5854 5855 // End Computed Style. Modify whatever you want to. 5856 5857 var mimicNode = function () { 5858 /* 5859 Class Mimic Node 5860 Dependency : Computed Style 5861 Tries to mimick a dom node taking his styles, dimensions. May go to his repo if gets mature. 5862 */ 5863 5864 function MimicNode(element) { 5865 this.element = element; 5866 this.replacer = document.createElement('div'); 5867 this.replacer.style.visibility = 'hidden'; 5868 this.hide(); 5869 element.parentNode.insertBefore(this.replacer, element); 5870 } 5871 5872 MimicNode.prototype = { 5873 replace: function replace() { 5874 var rst = this.replacer.style; 5875 var styles = computedStyle.getAll(this.element); 5876 5877 // rst.width = computedStyle.width(this.element) + 'px'; 5878 // rst.height = this.element.offsetHeight + 'px'; 5879 5880 // Setting offsetWidth 5881 rst.width = this._width(); 5882 rst.height = this._height(); 5883 5884 // Adopt margins 5885 rst.marginTop = styles.marginTop; 5886 rst.marginBottom = styles.marginBottom; 5887 rst.marginLeft = styles.marginLeft; 5888 rst.marginRight = styles.marginRight; 5889 5890 // Adopt positioning 5891 rst.cssFloat = styles.cssFloat; 5892 rst.styleFloat = styles.styleFloat; //ie8; 5893 rst.position = styles.position; 5894 rst.top = styles.top; 5895 rst.right = styles.right; 5896 rst.bottom = styles.bottom; 5897 rst.left = styles.left; 5898 // rst.borderStyle = styles.borderStyle; 5899 5900 rst.display = styles.display; 5901 }, 5902 hide: function hide() { 5903 this.replacer.style.display = 'none'; 5904 }, 5905 _width: function _width() { 5906 return this.element.getBoundingClientRect().width + 'px'; 5907 }, 5908 _widthOffset: function _widthOffset() { 5909 return this.element.offsetWidth + 'px'; 5910 }, 5911 _height: function _height() { 5912 return jQuery(this.element).outerHeight() + 'px'; 5913 }, 5914 _heightOffset: function _heightOffset() { 5915 return this.element.offsetHeight + 'px'; 5916 }, 5917 destroy: function destroy() { 5918 $(this.replacer).remove(); 5919 5920 // set properties to null to break references 5921 for (var prop in this) { 5922 if (this.hasOwnProperty(prop)) { 5923 this[prop] = null; 5924 } 5925 } 5926 } 5927 }; 5928 5929 var bcr = document.documentElement.getBoundingClientRect(); 5930 if (!bcr.width) { 5931 MimicNode.prototype._width = MimicNode.prototype._widthOffset; 5932 MimicNode.prototype._height = MimicNode.prototype._heightOffset; 5933 } 5934 5935 return { 5936 MimicNode: MimicNode, 5937 computedStyle: computedStyle 5938 }; 5939 }(); 5940 5941 // Class handles vendor prefixes 5942 function Prefix() { 5943 // Cached vendor will be stored when it is detected 5944 this._vendor = null; 5945 5946 //this._dummy = document.createElement('div'); 5947 } 5948 5949 Prefix.prototype = { 5950 _vendors: { 5951 webkit: { 5952 cssPrefix: '-webkit-', 5953 jsPrefix: 'Webkit' 5954 }, 5955 moz: { 5956 cssPrefix: '-moz-', 5957 jsPrefix: 'Moz' 5958 }, 5959 ms: { 5960 cssPrefix: '-ms-', 5961 jsPrefix: 'ms' 5962 }, 5963 opera: { 5964 cssPrefix: '-o-', 5965 jsPrefix: 'O' 5966 } 5967 }, 5968 5969 _prefixJsProperty: function _prefixJsProperty(vendor, prop) { 5970 return vendor.jsPrefix + prop[0].toUpperCase() + prop.substr(1); 5971 }, 5972 _prefixValue: function _prefixValue(vendor, value) { 5973 return vendor.cssPrefix + value; 5974 }, 5975 _valueSupported: function _valueSupported(prop, value, dummy) { 5976 // IE8 will throw Illegal Argument when you attempt to set a not supported value.
5977 try { 5978 dummy.style[prop] = value; 5979 return dummy.style[prop] === value; 5980 } catch (er) { 5981 return false; 5982 } 5983 }, 5984 5985 5986 /** 5987 * Returns true if the property is supported 5988 * @param {string} prop Property name 5989 * @returns {boolean} 5990 */ 5991 propertySupported: function propertySupported(prop) { 5992 // Supported property will return either inine style value or an empty string. 5993 // Undefined means property is not supported. 5994 return document.documentElement.style[prop] !== undefined; 5995 }, 5996 5997 5998 /** 5999 * Returns prefixed property name for js usage 6000 * @param {string} prop Property name 6001 * @returns {string|null} 6002 */ 6003 getJsProperty: function getJsProperty(prop) { 6004 // Try native property name first. 6005 if (this.propertySupported(prop)) { 6006 return prop; 6007 } 6008 6009 // Prefix it if we know the vendor already 6010 if (this._vendor) { 6011 return this._prefixJsProperty(this._vendor, prop); 6012 } 6013 6014 // We don't know the vendor, try all the possibilities 6015 var prefixed; 6016 for (var vendor in this._vendors) { 6017 prefixed = this._prefixJsProperty(this._vendors[vendor], prop); 6018 if (this.propertySupported(prefixed)) { 6019 // Vendor detected. Cache it. 6020 this._vendor = this._vendors[vendor]; 6021 return prefixed; 6022 } 6023 } 6024 6025 // Nothing worked 6026 return null; 6027 }, 6028 6029 6030 /** 6031 * Returns supported css value for css property. Could be used to check support or get prefixed value string. 6032 * @param {string} prop Property 6033 * @param {string} value Value name 6034 * @returns {string|null} 6035 */ 6036 getCssValue: function getCssValue(prop, value) { 6037 // Create dummy element to test value 6038 var dummy = document.createElement('div'); 6039 6040 // Get supported property name 6041 var jsProperty = this.getJsProperty(prop); 6042 6043 // Try unprefixed value 6044 if (this._valueSupported(jsProperty, value, dummy)) { 6045 return value; 6046 } 6047 6048 var prefixedValue; 6049 6050 // If we know the vendor already try prefixed value 6051 if (this._vendor) { 6052 prefixedValue = this._prefixValue(this._vendor, value); 6053 if (this._valueSupported(jsProperty, prefixedValue, dummy)) { 6054 return prefixedValue; 6055 } 6056 } 6057 6058 // Try all vendors 6059 for (var vendor in this._vendors) { 6060 prefixedValue = this._prefixValue(this._vendors[vendor], value); 6061 if (this._valueSupported(jsProperty, prefixedValue, dummy)) { 6062 // Vendor detected. Cache it. 6063 this._vendor = this._vendors[vendor]; 6064 return prefixedValue; 6065 } 6066 } 6067 // No support for value 6068 return null; 6069 } 6070 }; 6071 6072 var prefix = new Prefix(); 6073 6074 // We will need this frequently. Lets have it as a global until we encapsulate properly. 6075 var transformJsProperty = prefix.getJsProperty('transform'); 6076 6077 // Will hold if browser creates a positioning context for fixed elements. 6078 var fixedPositioningContext; 6079 6080 // Checks if browser creates a positioning context for fixed elements. 6081 // Transform rule will create a positioning context on browsers who follow the spec. 6082 // Ie for example will fix it according to documentElement 6083 // TODO: Other css rules also effects. perspective creates at chrome but not in firefox. transform-style preserve3d effects. 6084 function checkFixedPositioningContextSupport() { 6085 var support = false; 6086 var parent = document.createElement('div'); 6087 var child = document.createElement('div'); 6088 parent.appendChild(child); 6089 parent.style[transformJsProperty] = 'translate(0)'; 6090 // Make sure there is space on top of parent 6091 parent.style.marginTop = '10px'; 6092 parent.style.visibility = 'hidden'; 6093 child.style.position = 'fixed'; 6094 child.style.top = 0; 6095 document.body.appendChild(parent); 6096 var rect = child.getBoundingClientRect(); 6097 // If offset top is greater than 0 meand transformed element created a positioning context. 6098 if (rect.top > 0) { 6099 support = true; 6100 } 6101 // Remove dummy content 6102 document.body.removeChild(parent); 6103 return support; 6104 } 6105 6106 // It will return null if position sticky is not supported 6107 var nativeStickyValue = prefix.getCssValue('position', 'sticky'); 6108 6109 // It will return null if position fixed is not supported 6110 var fixedPositionValue = prefix.getCssValue('position', 'fixed'); 6111 6112 // Dirty business 6113 var ie = navigator.appName === 'Microsoft Internet Explorer'; 6114 var ieversion; 6115 6116 if (ie) { 6117 ieversion = parseFloat(navigator.appVersion.split('MSIE')[1]); 6118 } 6119 6120 function FixTo(child, parent, options) { 6121 this.child = child; 6122 this._$child = $(child); 6123 this.parent = parent; 6124 this.options = { 6125 className: 'fixto-fixed', 6126 startAfterNode: { 6127 enabled: false, 6128 selector: '' 6129 }, 6130 animations: { 6131 enabled: false, 6132 currentInAnimationClass: '', 6133 currentOutAnimationClass: '',
6134 allInAnimationsClasses: '', 6135 allOutAnimationsClasses: '', 6136 duration: 0 6137 }, 6138 top: 0, 6139 zIndex: '' 6140 }; 6141 this._setOptions(options); 6142 6143 this._initAnimations(); 6144 } 6145 6146 FixTo.prototype = { 6147 // Returns the total outerHeight of the elements passed to mind option. Will return 0 if none. 6148 _mindtop: function _mindtop() { 6149 var top = 0; 6150 if (this._$mind) { 6151 var el; 6152 var rect; 6153 var height; 6154 for (var i = 0, l = this._$mind.length; i < l; i++) { 6155 el = this._$mind[i]; 6156 rect = el.getBoundingClientRect(); 6157 if (rect.height) { 6158 top += rect.height; 6159 } else { 6160 var styles = computedStyle.getAll(el); 6161 top += el.offsetHeight + computedStyle.toFloat(styles.marginTop) + computedStyle.toFloat(styles.marginBottom); 6162 } 6163 } 6164 } 6165 return top; 6166 }, 6167 _updateOutAnimationDuration: function _updateOutAnimationDuration() { 6168 var animationDuration = this.options.animations.duration; 6169 if (isNaN(animationDuration)) { 6170 animationDuration = 0; 6171 } 6172 6173 this._animationDuration = animationDuration; 6174 }, 6175 _initAnimations: function _initAnimations() { 6176 var animations = this.options.animations; 6177 this._$child.removeClass(animations.allInAnimationsClasses); 6178 this._$child.removeClass(animations.allOutAnimationsClasses); 6179 6180 var self = this; 6181 this._updateOutAnimationDuration(); 6182 6183 this._animationOutDebounce = $.debounce(function () { 6184 self._$child.removeClass(self.options.animations.allOutAnimationsClasses); 6185 self._inOutAnimation = false; 6186 self._unfix(); 6187 self._removeTransitionFromOutAnimation(); 6188 }, 100); 6189 6190 this._animationInDebounce = $.debounce(function () { 6191 self._inInAnimation = false; 6192 self._$child.removeClass(self.options.animations.allInAnimationsClasses); 6193 }, this._animationDuration); 6194 }, 6195 _removeTransitionFromOutAnimation: function _removeTransitionFromOutAnimation() { 6196 var noTransitionClass = 'h-global-transition-disable'; 6197 this._$child.addClass(noTransitionClass); 6198 6199 var childTransitionDuration = this._$child.css('transition-duration'); 6200 var isNumberRegex = /\d+/; 6201 var transitionDurationInS = childTransitionDuration.match(isNumberRegex)[0]; 6202 if (!transitionDurationInS) { 6203 transitionDurationInS = 0; 6204 } 6205 6206 var transitionDurationInMs = transitionDurationInS * 1000; 6207 var transitionBuffer = 500; 6208 var transitionDuration = transitionDurationInMs + transitionBuffer; 6209 var self = this; 6210 setTimeout(function () { 6211 if (!self._$child) { 6212 return; 6213 } 6214 self._$child.removeClass(noTransitionClass); 6215 }, transitionDuration); 6216 }, 6217 _passedStartAfterNode: function _passedStartAfterNode() { 6218 var $startAfterNode = this._$startAfterNode; 6219 if ($startAfterNode && $startAfterNode.length > 0) { 6220 var offsetTop = this._afterElementOffsetTop; 6221 var height = $startAfterNode.outerHeight(); 6222 return this._scrollTop > offsetTop + height; 6223 } 6224 return true; 6225 }, 6226 6227 // Public method to stop the behaviour of this instance. 6228 stop: function stop() { 6229 this._stop(); 6230 this._running = false; 6231 }, 6232 6233 6234 // Public method starts the behaviour of this instance. 6235 start: function start() { 6236 // Start only if it is not running not to attach event listeners multiple times. 6237 if (!this._running) { 6238 this._start(); 6239 this._running = true; 6240 } 6241 }, 6242 6243 6244 //Public method to destroy fixto behaviour 6245 destroy: function destroy() { 6246 this.stop(); 6247 6248 this._destroy(); 6249 6250 // Remove jquery data from the element 6251 this._$child.removeData('fixto-instance'); 6252 6253 // set properties to null to break references 6254 for (var prop in this) { 6255 if (this.hasOwnProperty(prop)) { 6256 this[prop] = null; 6257 } 6258 } 6259 }, 6260 _setOptions: function _setOptions(options) { 6261 $.extend(true, this.options, options); 6262 if (this.options.mind) { 6263 this._$mind = $(this.options.mind); 6264 } 6265 if (this.options.startAfterNode.enabled && this.options.startAfterNode.selector) { 6266 this._$startAfterNode = $(this.options.startAfterNode.selector); 6267 } 6268 }, 6269 setOptions: function setOptions(options) { 6270 this._setOptions(options); 6271 this.refresh(); 6272 }, 6273 6274 6275 // Methods could be implemented by subclasses 6276 6277 _stop: function _stop() {}, 6278 _start: function _start() {}, 6279 _destroy: function _destroy() {}, 6280 refresh: function refresh() {} 6281 }; 6282 6283 // Class FixToContainer 6284 function FixToContainer(child, parent, options) { 6285 /** FIXME If you have a saved navigation with sticky, when you enter the page, this class creates two objects 6286 * and because of that there are two events listeners. There should be only one instance of this class for each 6287 * navigation 6288 */ 6289 //The script still is called two times but now both of the calls pass the check 6290 // if (!child || !this._scriptCallIsValid(child)) { 6291 // return; 6292 // } 6293 FixTo.call(this, child, parent, options); 6294 this._replacer = new mimicNode.MimicNode(child); 6295 this._ghostNode = this._replacer.replacer; 6296 6297 this._saveStyles(); 6298
6299 this._saveViewportHeight(); 6300 6301 // Create anonymous functions and keep references to register and unregister events. 6302 this._proxied_onscroll = this._bind(this._onscroll, this); 6303 this._proxied_onresize = this._bind(this._onresize, this); 6304 6305 this.start(); 6306 } 6307 6308 FixToContainer.prototype = new FixTo(); 6309 6310 $.extend(FixToContainer.prototype, { 6311 // Returns an anonymous function that will call the given function in the given context 6312 _bind: function _bind(fn, context) { 6313 return function () { 6314 return fn.call(context); 6315 }; 6316 }, 6317 6318 6319 // at ie8 maybe only in vm window resize event fires everytime an element is resized. 6320 _toresize: ieversion === 8 ? document.documentElement : window, 6321 6322 //TODO @catalin this is a temporary workaround, until the issue: #0030376 is fixed 6323 _scriptCallIsValid: function _scriptCallIsValid(child) { 6324 var isInCustomizer = Colibri.isCustomizerPreview(); 6325 if (!isInCustomizer) { 6326 return true; 6327 } 6328 var vueNavSelector = '.h-navigation_outer'; 6329 var vueNav = $(child).closest(vueNavSelector).get(0); 6330 if (!vueNav) { 6331 return true; 6332 } 6333 if (vueNav.__vue__) { 6334 return true; 6335 } 6336 return false; 6337 }, 6338 6339 _onscroll: function _onscroll() { 6340 /** 6341 * TODO @catalin, now sometimes the child height is 0, other times is correct that ruins the out animation logic, 6342 * until that is fixed this is a workaround to that problem. When the child height will always be correct remove 6343 * this condition. 6344 */ 6345 this._scrollTop = document.documentElement.scrollTop || document.body.scrollTop; 6346 this._parentBottom = this.parent.offsetHeight + this._fullOffset('offsetTop', this.parent); 6347 if (this.options.startAfterNode && !this._passedStartAfterNode()) { 6348 if (this.fixed && !this._inOutAnimation) { 6349 this._unfixFromScrollListener(); 6350 } 6351 return; 6352 } 6353 // if (this.options.mindBottomPadding !== false) { 6354 // this._parentBottom -= computedStyle.getFloat(this.parent, 'paddingBottom'); 6355 // } 6356 6357 // if (this.options.toBottom) { 6358 // this._fix(); 6359 // this._adjust(); 6360 // return 6361 // } 6362 6363 // if (this.options.toBottom) { 6364 // this.options.top = this._viewportHeight - computedStyle.toFloat(computedStyle.getAll(this.child).height) - this.options.topSpacing; 6365 // } 6366 if (!this.fixed) { 6367 var childStyles = computedStyle.getAll(this.child); 6368 6369 if (this._scrollTop < this._parentBottom && this._scrollTop > this._fullOffset('offsetTop', this.child) - this.options.top - this._mindtop() && this._viewportHeight > this.child.offsetHeight + computedStyle.toFloat(childStyles.marginTop) + computedStyle.toFloat(childStyles.marginBottom) || this.options.toBottom) { 6370 this._fix(); 6371 this._adjust(); 6372 } 6373 } else { 6374 if (this.options.toBottom) { 6375 if (this._scrollTop >= this._fullOffset('offsetTop', this._ghostNode)) { 6376 this._unfixFromScrollListener(); 6377 return; 6378 } 6379 } else { 6380 if (this._scrollTop > this._parentBottom || this._scrollTop <= this._fullOffset('offsetTop', this._ghostNode) - this.options.top - this._mindtop()) { 6381 this._unfixFromScrollListener(); 6382 return; 6383 } 6384 } 6385 this._adjust(); 6386 } 6387 }, 6388 6389 _adjust: function _adjust() { 6390 var top = 0; 6391 var mindTop = this._mindtop(); 6392 var diff = 0; 6393 var childStyles = computedStyle.getAll(this.child); 6394 var context = null; 6395 6396 if (fixedPositioningContext) { 6397 // Get positioning context. 6398 context = this._getContext(); 6399 if (context) { 6400 // There is a positioning context. Top should be according to the context. 6401 top = Math.abs(context.getBoundingClientRect().top); 6402 } 6403 } 6404 6405 diff = this._parentBottom - this._scrollTop - (this.child.offsetHeight + computedStyle.toFloat(childStyles.marginBottom) + mindTop + this.options.top); 6406 6407 if (diff > 0) { 6408 diff = 0; 6409 } 6410 6411 if (this.options.toBottom) { 6412 // this.child.style.top = (diff + mindTop + top + this.options.top) - computedStyle.toFloat(childStyles.marginTop) + 'px'; 6413 } else { 6414 var _top = this.options.top; 6415 if (_top === 0) { 6416 _top = $('body').offset().top; 6417 } 6418 6419 this.child.style.top = Math.round(diff + mindTop + top + _top - computedStyle.toFloat(childStyles.marginTop)) + 'px'; 6420 } 6421 }, 6422 6423 // Calculate cumulative offset of the element. 6424 // Optionally according to context 6425 _fullOffset: function _fullOffset(offsetName, elm, context) { 6426 var offset = elm[offsetName]; 6427 var offsetParent = elm.offsetParent; 6428 6429 // Add offset of the ascendent tree until we reach to the document root or to the given context 6430 while (offsetParent !== null && offsetParent !== context) { 6431 offset = offset + offsetParent[offsetName]; 6432 offsetParent = offsetParent.offsetParent; 6433 } 6434 6435 return offset; 6436 }, 6437 6438 // Get positioning context of the element. 6439 // We know that the closest parent that a transform rule applied will create a positioning context. 6440 _getContext: function _getContext() { 6441 var parent; 6442 var element = this.child; 6443 var context = null; 6444 var styles; 6445 6446 // Climb up the treee until reaching the context 6447 while (!context) { 6448 parent = element.parentNode; 6449 if (parent === document.documentElement) { 6450 return null; 6451 } 6452 6453 styles = computedStyle.getAll(parent); 6454 // Element has a transform rule
6455 if (styles[transformJsProperty] !== 'none') { 6456 context = parent; 6457 break; 6458 } 6459 element = parent; 6460 } 6461 return context; 6462 }, 6463 6464 6465 _fix: function _fix() { 6466 var child = this.child; 6467 var childStyle = child.style; 6468 var childStyles = computedStyle.getAll(child); 6469 var left = child.getBoundingClientRect().left; 6470 var width = childStyles.width; 6471 6472 this._$child.trigger('fixto-add'); 6473 6474 this._saveStyles(); 6475 6476 if (document.documentElement.currentStyle) { 6477 // Function for ie<9. When hasLayout is not triggered in ie7, he will report currentStyle as auto, clientWidth as 0. Thus using offsetWidth. 6478 // Opera also falls here 6479 6480 width = child.offsetWidth; 6481 if (childStyles.boxSizing !== 'border-box') { 6482 width = width - (computedStyle.toFloat(childStyles.paddingLeft) + computedStyle.toFloat(childStyles.paddingRight) + computedStyle.toFloat(childStyles.borderLeftWidth) + computedStyle.toFloat(childStyles.borderRightWidth)); 6483 } 6484 6485 width += 'px'; 6486 } 6487 6488 // Ie still fixes the container according to the viewport. 6489 if (fixedPositioningContext) { 6490 var context = this._getContext(); 6491 // if(context) { 6492 // // There is a positioning context. Left should be according to the context. 6493 // left = child.getBoundingClientRect().left - context.getBoundingClientRect().left; 6494 // } else { 6495 left = this._$child.offset().left; 6496 // } 6497 } 6498 6499 this._replacer.replace(); 6500 6501 childStyle.left = 6502 /*left + "px"; */left - computedStyle.toFloat(childStyles.marginLeft) + 'px'; 6503 childStyle.width = width; 6504 6505 childStyle.position = 'fixed'; 6506 if (this.options.toBottom) { 6507 childStyle.top = ''; 6508 childStyle.bottom = this.options.top + computedStyle.toFloat(childStyles.marginBottom) + 'px'; 6509 } else { 6510 childStyle.bottom = ''; 6511 var _top = this.options.top; 6512 6513 if (_top === 0) { 6514 _top = $('body').offset().top; 6515 } 6516 childStyle.top = this._mindtop() + _top - computedStyle.toFloat(childStyles.marginTop) + 'px'; 6517 } 6518 6519 if (this.options.zIndex) { 6520 this.child.style.zIndex = this.options.zIndex; 6521 } 6522 6523 this._$child.addClass(this.options.className); 6524 var animations = this.options.animations; 6525 this._$child.removeClass(animations.allInAnimationsClasses); 6526 if (animations.enabled) { 6527 this._$child.addClass(animations.currentInAnimationClass); 6528 if (!this._inInAnimation) { 6529 this._inInAnimation = true; 6530 this._animationInDebounce(); 6531 } 6532 } 6533 this.fixed = true; 6534 this._$child.trigger('fixto-added'); 6535 }, 6536 _unfixFromScrollListener: function _unfixFromScrollListener() { 6537 this._$child.trigger('fixto-unnfix-from-scroll'); 6538 if (this.options.animations.enabled) { 6539 this._unfixTriggerAnimation(); 6540 } else { 6541 this._unfix(); 6542 } 6543 }, 6544 _getAfterElementOffsetTop: function _getAfterElementOffsetTop() { 6545 var $node = this._$startAfterNode; 6546 var defaultValue = 0; 6547 if ($node && $node.length > 0) { 6548 var elem = $node.get(0); 6549 var distance = 0; 6550 do { 6551 // Increase our distance counter 6552 distance += elem.offsetTop; 6553 6554 // Set the element to it's parent 6555 elem = elem.offsetParent; 6556 } while (elem); 6557 distance = distance < defaultValue ? defaultValue : distance; 6558 return distance; 6559 } 6560 return defaultValue; 6561 }, 6562 6563 _unfix: function _unfix() { 6564 this._replacer.hide(); 6565 var childStyle = this.child.style; 6566 childStyle.position = this._childOriginalPosition; 6567 childStyle.top = this._childOriginalTop; 6568 childStyle.bottom = this._childOriginalBottom; 6569 childStyle.width = this._childOriginalWidth; 6570 childStyle.left = this._childOriginalLeft; 6571 childStyle.zIndex = this._childOriginalZIndex; 6572 if (!this.options.always) { 6573 this._$child.removeClass(this.options.className); 6574 this._$child.trigger('fixto-removed'); 6575 } 6576 this.fixed = false;
6577 }, 6578 _unfixTriggerAnimation: function _unfixTriggerAnimation() { 6579 this._$child.trigger('fixto-animated-remove'); 6580 this._animationInDebounce.flush(); 6581 var animations = this.options.animations; 6582 this._$child.removeClass(animations.allInAnimationsClasses); 6583 this._$child.removeClass(animations.allOutAnimationsClasses); 6584 if (animations.enabled) { 6585 this._$child.addClass(animations.currentOutAnimationClass); 6586 } 6587 this._inOutAnimation = true; 6588 this._animationOutDebounce(); 6589 }, 6590 _saveStyles: function _saveStyles() { 6591 this._animationOutDebounce.flush(); 6592 var childStyle = this.child.style; 6593 this._childOriginalPosition = childStyle.position; 6594 if (this.options.toBottom) { 6595 this._childOriginalTop = ''; 6596 this._childOriginalBottom = childStyle.bottom; 6597 } else { 6598 this._childOriginalTop = childStyle.top; 6599 this._childOriginalBottom = ''; 6600 } 6601 this._childOriginalWidth = childStyle.width; 6602 this._childOriginalLeft = childStyle.left; 6603 this._childOriginalZIndex = childStyle.zIndex; 6604 this._afterElementOffsetTop = this._getAfterElementOffsetTop(); 6605 }, 6606 _onresize: function _onresize() { 6607 this.refresh(); 6608 },
6609 _saveViewportHeight: function _saveViewportHeight() { 6610 // ie8 doesn't support innerHeight 6611 this._viewportHeight = window.innerHeight || document.documentElement.clientHeight; 6612 }, 6613 _stop: function _stop() { 6614 // Unfix the container immediately. 6615 this._unfix(); 6616 // remove event listeners 6617 $(window).unbind('scroll.fixto mousewheel', this._proxied_onscroll); 6618 $(this._toresize).unbind('resize.fixto', this._proxied_onresize); 6619 }, 6620 _start: function _start() { 6621 // Trigger onscroll to have the effect immediately. 6622 this._onscroll(); 6623 6624 // Attach event listeners 6625 $(window).bind('scroll.fixto mousewheel', this._proxied_onscroll); 6626 $(this._toresize).bind('resize.fixto', this._proxied_onresize); 6627 }, 6628 _destroy: function _destroy() { 6629 // Destroy mimic node instance 6630 this._replacer.destroy(); 6631 }, 6632 refresh: function refresh() { 6633 this._saveViewportHeight(); 6634 this._unfix(); 6635 this._onscroll(); 6636 } 6637 }); 6638 6639 function NativeSticky(child, parent, options) { 6640 FixTo.call(this, child, parent, options); 6641 this.start(); 6642 } 6643 6644 NativeSticky.prototype = new FixTo(); 6645 6646 $.extend(NativeSticky.prototype, { 6647 _start: function _start() { 6648 var childStyles = computedStyle.getAll(this.child); 6649 6650 this._childOriginalPosition = childStyles.position; 6651 this._childOriginalTop = childStyles.top; 6652 6653 this.child.style.position = nativeStickyValue; 6654 this.refresh(); 6655 }, 6656 _stop: function _stop() { 6657 this.child.style.position = this._childOriginalPosition; 6658 this.child.style.top = this._childOriginalTop; 6659 }, 6660 refresh: function refresh() { 6661 this.child.style.top = this._mindtop() + this.options.top + 'px'; 6662 } 6663 }); 6664 6665 var fixTo = function fixTo(childElement, parentElement, options) { 6666 if (nativeStickyValue && !options || nativeStickyValue && options && options.useNativeSticky !== false) { 6667 // Position sticky supported and user did not disabled the usage of it. 6668 return new NativeSticky(childElement, parentElement, options); 6669 } else if (fixedPositionValue) { 6670 // Position fixed supported 6671 6672 if (fixedPositioningContext === undefined) { 6673 // We don't know yet if browser creates fixed positioning contexts. Check it. 6674 fixedPositioningContext = checkFixedPositioningContextSupport(); 6675 } 6676 6677 return new FixToContainer(childElement, parentElement, options); 6678 } else { 6679 return 'Neither fixed nor sticky positioning supported'; 6680 } 6681 }; 6682 6683 /* 6684 No support for ie lt 8 6685 */ 6686 6687 if (ieversion < 8) { 6688 fixTo = function fixTo() { 6689 return 'not supported'; 6690 }; 6691 } 6692 6693 // Let it be a jQuery Plugin 6694 $.fn.fixTo = function (targetSelector, options) { 6695 var $targets = $(targetSelector); 6696 6697 var i = 0; 6698 return this.each(function () { 6699 // Check the data of the element. 6700 var instance = $(this).data('fixto-instance'); 6701 6702 // If the element is not bound to an instance, create the instance and save it to elements data. 6703 if (!instance) { 6704 $(this).data('fixto-instance', fixTo(this, $targets[i], options)); 6705 } else { 6706 // If we already have the instance here, expect that targetSelector parameter will be a string 6707 // equal to a public methods name. Run the method on the instance without checking if 6708 // it exists or it is a public method or not. Cause nasty errors when necessary. 6709 var method = targetSelector; 6710 instance[method].call(instance, options); 6711 } 6712 i++; 6713 }); 6714 }; 6715 6716 /* 6717 Expose 6718 */ 6719 6720 return { 6721 FixToContainer: FixToContainer, 6722 fixTo: fixTo, 6723 computedStyle: computedStyle, 6724 mimicNode: mimicNode 6725 }; 6726})(window.jQuery, window, document); 6727 6728/***/ }), 6729/* 162 */ 6730/***/ (function(module, exports, __webpack_require__) { 6731 6732"use strict"; 6733 6734 6735(function ($, Colibri) { 6736 var className = 'overlap'; 6737 6738 var Component = function Component(element, options) { 6739 this.namespace = className; 6740 this.defaults = { 6741 data: {} 6742 }; 6743 6744 // Parent Constructor 6745 Colibri.apply(this, arguments); 6746 6747 // Initialization 6748 this.start(); 6749 }; 6750 6751 Component.prototype = { 6752 start: function start() { 6753 var self = this; 6754 $(window).bind('resize.overlap orientationchange.overlap', function () { 6755 setTimeout(self.resizeCallback.bind(self), 50); 6756 }); 6757 self.resizeCallback(); 6758 }, 6759 stop: function stop() { 6760 $(window).off('.overlap'); 6761 if (this.$sheet) { 6762 document.head.removeChild(this.$sheet); 6763 this.$sheet = null; 6764 } 6765 }, 6766 computePadding: function computePadding() { 6767 if (!this.$sheet) { 6768 this.$sheet = document.createElement('style'); 6769 document.head.appendChild(this.$sheet); 6770 } 6771 var paddingTop = this.$element[0].getBoundingClientRect().height + 'px !important;'; 6772 this.$sheet.innerHTML = '.h-navigation-padding{padding-top:' + paddingTop + '}'; 6773 }, 6774 resizeCallback: function resizeCallback() { 6775 this.computePadding(); 6776 } 6777 }; 6778 Component.inherits(Colibri); 6779 Colibri[className] = Component; 6780 6781 Colibri.Plugin.create(className); 6782 Colibri.Plugin.autoload(className); 6783})(jQuery, Colibri); 6784 6785/***/ }), 6786/* 163 */ 6787/***/ (function(module, exports, __webpack_require__) { 6788 6789"use strict"; 6790 6791 6792(function ($, Colibri) { 6793 var className = 'masonry'; 6794 6795 var Component = function Component(element, options) { 6796 this.namespace = className; 6797 this.defaults = {}; 6798 // Parent Constructor 6799 Colibri.apply(this, arguments); 6800 this.bindedRestart = $.debounce(this.restart.bind(this), 50); 6801 this.start(); 6802 }; 6803 6804 function attributeExistsAndFalse($node, attrName) { 6805 if ($node[0].hasAttribute(attrName) && $node.attr(attrName) != 'true') { 6806 return true; 6807 } 6808 } 6809 function showMasonry($node) { 6810 // check for old version of masonry, atribute not used anymore// 6811 if (attributeExistsAndFalse($node, 'data-show-masonry') || attributeExistsAndFalse($node, 'show-masonry')) { 6812 return false;
6813 } 6814 return true; 6815 } 6816 Component.prototype = { 6817 start: function start() { 6818 var masonry = this.$element; 6819 6820 if (this.opts.data && this.opts.data.targetSelector) { 6821 masonry = this.$element.find(this.opts.data.targetSelector); 6822 } 6823 6824 this.$masonry = masonry; 6825 6826 if (!showMasonry(this.$element)) { 6827 return; 6828 } 6829 6830 this.$masonry.masonry({ 6831 itemSelector: '.masonry-item', 6832 columnWidth: '.masonry-item', 6833 percentPosition: true 6834 }); 6835 this.addEventListeners(); 6836 (function () { 6837 var images = masonry.find('img'); 6838 var loadedImages = 0; 6839 var completed = 0; 6840 6841 function imageLoaded() { 6842 loadedImages++; 6843 if (images.length === loadedImages) { 6844 try { 6845 masonry.data().masonry.layout(); 6846 } catch (e) { 6847 console.error(e); 6848 } 6849 } 6850 } 6851 6852 images.each(function () { 6853 if (this.complete) { 6854 completed++; 6855 imageLoaded(); 6856 } else { 6857 $(this).on('load', imageLoaded); 6858 $(this).on('error', imageLoaded); 6859 } 6860 }); 6861 if (images.length !== completed) { 6862 if (document.readyState == 'complete') { 6863 setTimeout(function () { 6864 masonry.data().masonry.layout(); 6865 }, 10); 6866 } 6867 } 6868 6869 $(window).on('load', function () { 6870 masonry.data().masonry.layout(); 6871 }); 6872 })(); 6873 }, 6874 stop: function stop() { 6875 this.removeEventListeners(); 6876 try { 6877 this.$masonry.masonry('destroy'); 6878 } catch (e) {} 6879 }, 6880 restart: function restart() { 6881 this.stop(); 6882 this.start(); 6883 }, 6884 addEventListeners: function addEventListeners() { 6885 this.$element.on('colibriContainerOpened', this.bindedRestart); 6886 }, 6887 removeEventListeners: function removeEventListeners() { 6888 this.$element.off('colibriContainerOpened', this.bindedRestart); 6889 }, 6890 loadImages: function loadImages() {} 6891 }; 6892 6893 Component.inherits(Colibri); 6894 Colibri[className] = Component; 6895 Colibri.Plugin.create(className); 6896 Colibri.Plugin.autoload(className); 6897})(jQuery, Colibri); 6898 6899/***/ }), 6900/* 164 */ 6901/***/ (function(module, exports, __webpack_require__) { 6902 6903"use strict"; 6904 6905 6906var _keys = __webpack_require__(165); 6907 6908var _keys2 = _interopRequireDefault(_keys); 6909 6910function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 6911 6912(function ($, Colibri) { 6913 var className = 'footer-parallax'; 6914 6915 var Component = function Component(element, options) { 6916 var _this = this; 6917 6918 this.namespace = className; 6919 this.defaults = { 6920 activeClasses: { 6921 header: 'h-footer-parallax-header-class', 6922 content: 'h-footer-parallax-content-class', 6923 footer: 'h-footer-parallax', 6924 container: 'new-stacking-context' 6925 }, 6926 selectors: { 6927 header: ' > .page-header,> .header', 6928 content: '> .page-content,> .content', 6929 container: '#page-top' 6930 } 6931 }; 6932 6933 this.bindedResizeListener = $.debounce(this.resizeListener.bind(this), 100); 6934 6935 // Parent Constructor 6936 Colibri.apply(this, arguments); 6937 // Initialization 6938 this.scriptStarted = false; 6939 this.initMediaById(); 6940 this.start(); 6941 window.addResizeListener(this.$element.get(0), this.bindedResizeListener); 6942 //sometimes the size in the preview is not correct, so i force a refresh to have the correct content margin bottom 6943 setTimeout(function () { 6944 _this.bindedResizeListener(); 6945 }, 5000); 6946 }; 6947 6948 Component.prototype = { 6949 start: function start() { 6950 this.scriptStarted = true; 6951 this.isEnabled = this.$element.attr('data-enabled'); 6952 6953 //backward compatible with the version with no attribute 6954 this.isEnabled = this.isEnabled !== undefined ? this.isEnabled == 'true' : true; 6955 if (this.getCurrentMedia() !== 'desktop' || !this.isEnabled) { 6956 return; 6957 } 6958 var selectors = this.opts.selectors; 6959 var activeClasses = this.opts.activeClasses; 6960 this.$container = $(selectors.container); 6961 this.$content = this.$container.find(selectors.content).first(); 6962 this.$header = this.$container.find(selectors.header).first(); 6963 6964 this.$container.addClass(activeClasses.container); 6965 this.$header.addClass(activeClasses.header); 6966 this.$content.addClass(activeClasses.content); 6967 this.$element.addClass(activeClasses.footer); 6968 6969 this.updateSiblingStyle(); 6970 }, 6971 stop: function stop() { 6972 this.scriptStarted = false;
6973 var activeClasses = this.opts.activeClasses; 6974 if (!this.$container) { 6975 return; 6976 } 6977 this.$container.removeClass(activeClasses.container); 6978 this.$header.removeClass(activeClasses.header); 6979 this.$content.removeClass(activeClasses.content); 6980 this.$element.removeClass(activeClasses.footer); 6981 this.$content.css('margin-bottom', ''); 6982 }, 6983 restart: function restart() { 6984 this.stop(); 6985 this.start(); 6986 }, 6987 resizeListener: function resizeListener() { 6988 // if (!this.resizeInited) { 6989 // this.resizeInited = true; 6990 // return; 6991 // } 6992 this.updateSiblingStyle(); 6993 if (this.getCurrentMedia() !== 'desktop') { 6994 this.stop(); 6995 } else { 6996 if (this.isEnabled && !this.footerParallaxStarted()) { 6997 this.start(); 6998 } 6999 } 7000 }, 7001 footerParallaxStarted: function footerParallaxStarted() { 7002 return this.scriptStarted; 7003 }, 7004 initMediaById: function initMediaById() { 7005 this.mediaById = { 7006 desktop: { 7007 min: 1024 7008 }, 7009 tablet: { 7010 min: 768, 7011 max: 1023 7012 }, 7013 mobile: { 7014 max: 767 7015 } 7016 }; 7017 }, 7018 isDragging: function isDragging() { 7019 return !!document.querySelector('body.h-ui-dragging'); 7020 }, 7021 getCurrentMedia: function getCurrentMedia() { 7022 var _this2 = this; 7023 7024 var windowWidth = window.innerWidth; 7025 var media = null; 7026 (0, _keys2.default)(this.mediaById).forEach(function (mediaId) { 7027 var limits = _this2.mediaById[mediaId]; 7028 if ((!limits.min || limits.min && windowWidth >= limits.min) && (!limits.max || limits.max && windowWidth <= limits.max)) { 7029 media = mediaId; 7030 } 7031 }); 7032 return media; 7033 }, 7034 updateSiblingStyle: function updateSiblingStyle() { 7035 7036 if (!this.$content) { 7037 return; 7038 } 7039 7040 if (!this.footerParallaxStarted()) { 7041 return; 7042 } 7043 var footerHeight = this.$element.outerHeight(); 7044 this.$content.css('margin-bottom', footerHeight + 'px'); 7045 } 7046 }; 7047 7048 Component.inherits(Colibri); 7049 Colibri[className] = Component; 7050 Colibri.Plugin.create(className); 7051 Colibri.Plugin.autoload(className); 7052})(jQuery, Colibri); 7053 7054/***/ }), 7055/* 165 */ 7056/***/ (function(module, exports, __webpack_require__) { 7057 7058module.exports = { "default": __webpack_require__(166), __esModule: true }; 7059 7060/***/ }), 7061/* 166 */ 7062/***/ (function(module, exports, __webpack_require__) { 7063 7064__webpack_require__(167); 7065module.exports = __webpack_require__(3).Object.keys; 7066 7067 7068/***/ }), 7069/* 167 */ 7070/***/ (function(module, exports, __webpack_require__) { 7071 7072// 19.1.2.14 Object.keys(O) 7073var toObject = __webpack_require__(41); 7074var $keys = __webpack_require__(20); 7075 7076__webpack_require__(90)('keys', function () { 7077 return function keys(it) { 7078 return $keys(toObject(it)); 7079 }; 7080}); 7081 7082 7083/***/ }), 7084/* 168 */ 7085/***/ (function(module, exports) { 7086 7087// removed by extract-text-webpack-plugin 7088 7089/***/ }), 7090/* 169 */ 7091/***/ (function(module, exports) { 7092 7093// removed by extract-text-webpack-plugin 7094 7095/***/ }), 7096/* 170 */ 7097/***/ (function(module, exports) { 7098 7099// removed by extract-text-webpack-plugin 7100 7101/***/ }), 7102/* 171 */ 7103/***/ (function(module, exports) { 7104 7105// removed by extract-text-webpack-plugin 7106 7107/***/ }) 7108/******/ ]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.