1webpackJsonp([0],[ 2/* 0 */ 3/***/ (function(module, exports) { 4 5module.exports = jQuery; 6 7/***/ }), 8/* 1 */, 9/* 2 */, 10/* 3 */ 11/***/ (function(module, exports, __webpack_require__) { 12 13"use strict"; 14/* WEBPACK VAR INJECTION */(function($) { 15 16Object.defineProperty(exports, "__esModule", { 17 value: true 18}); 19 20var _gsap = __webpack_require__(38); 21 22var _vivus = __webpack_require__(41); 23 24var _vivus2 = _interopRequireDefault(_vivus); 25 26function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 27 28var schemeRevealing = new _gsap.TimelineLite({ paused: true }); 29 30if ($('#lines-1').length > 0) { 31 _gsap.TweenMax.fromTo('#animated-wave', 3.5, { 32 xPercent: -60 33 }, { 34 xPercent: 0, 35 ease: Linear.easeNone, 36 repeat: -1 37 }); 38 39 _gsap.TweenMax.to("#eolic-blades", 1, { 40 rotation: 360, 41 transformOrigin: "50% 50%", 42 ease: Linear.easeNone, 43 repeat: -1 44 }); 45 46 var timeline1 = new _gsap.TimelineLite(); 47 timeline1.from('#step-1-inner-1', .5, { opacity: 0, yPercent: 50 }).from('#step-1-inner-2', .5, { opacity: 0, yPercent: 50 }, '-=0.3').from('#step-1-inner-3', .5, { opacity: 0, yPercent: 50 }, '-=0.3'); 48 49 var timeline2 = new _gsap.TimelineLite(); 50 timeline2.fromTo('#wave-monitor', 1, { opacity: 0, yPercent: 50 }, { opacity: 1, yPercent: 3.5 }); 51 52 var handleMotorSlider = function handleMotorSlider() { 53 var currentItem = $('.slider-motor-item.active'); 54 var nextItem = currentItem.next('.slider-motor-item'); 55 56 if (nextItem.length === 0) { 57 nextItem = $('.slider-motor-item:first'); 58 } 59 60 $('#motor-text-' + currentItem.attr('id').split('-')[1]).removeClass('active'); 61 $('#motor-text-' + nextItem.attr('id').split('-')[1]).addClass('active'); 62 63 currentItem.removeClass('active'); 64 nextItem.addClass('active'); 65 66 setTimeout(handleMotorSlider, 2000); 67 }; 68 69 var timeline3 = new _gsap.TimelineLite({ 70 onComplete: function onComplete() { 71 $('.slider-motor-item').addClass('slider-loaded'); 72 $('.motor-text').addClass('slider-loaded'); 73 74 setTimeout(handleMotorSlider, 2000); 75 } 76 }); 77 78 timeline3.set('#motor-text-1', { opacity: 0 }).set('#motor-text-2', { opacity: 0 }).set('#motor-text-3', { opacity: 0 }).set('#motor-text-4', { opacity: 0 }).from('#motor-1', .6, { opacity: 0, yPercent: 50 }).from('#motor-2', .6, { opacity: 0, yPercent: 50 }, '-=0.4').from('#motor-3', .6, { opacity: 0, yPercent: 50 }, '-=0.4').from('#motor-4', .6, { opacity: 0, yPercent: 50 }, '-=0.4'); 79 80 var timeline4 = new _gsap.TimelineLite(); 81 timeline4.from('#step-3-inner-1', .7, { opacity: 0, yPercent: 50 }).from('#step-3-inner-2', .7, { opacity: 0, yPercent: 50 }, '-=0.5').from('#step-3-inner-3', .7, { opacity: 0, yPercent: 50 }, '-=0.5'); 82 83 var timeline5 = new _gsap.TimelineMax({ repeat: -1 }); 84 timeline5.fromTo('#solar-rays', 1, { opacity: 0, xPercent: -20, yPercent: -100 }, { opacity: 1, yPercent: 0 }).to('#solar-rays', 1, { opacity: 0 }, 0.75); 85 86 var timeline6 = new _gsap.TimelineMax({ repeat: -1 }); 87 timeline6.fromTo('#smoke-left', 1, { opacity: 0, yPercent: 10 }, { opacity: 1, yPercent: -25 }).to('#smoke-left', 1, { opacity: 0 }, 0.75); 88 89 var timeline7 = new _gsap.TimelineMax({ repeat: -1 }); 90 timeline7.fromTo('#smoke-right', 1, { opacity: 0, yPercent: 10 }, { opacity: 1, yPercent: -25 }).to('#smoke-right', 1, { opacity: 0 }, 0.75); 91 92 var vivusCallbackInitial = function vivusCallbackInitial() { 93 if ($('#lines-1').length > 0) { 94 $('#lines-1').css('opacity', 1); 95 96 new _vivus2.default('lines-1', { duration: 100 }); 97 } 98 }; 99 100 var vivusCallback = function vivusCallback() { 101 if ($('#lines-2').length > 0) { 102 $('#lines-2').css('opacity', 1); 103 104 new _vivus2.default('lines-2', { duration: 100 }); 105 } 106 }; 107 108 var timeline8 = new _gsap.TimelineMax({ repeat: -1 }); 109 timeline8.staggerTo('.system-background-slider li', 1, { 110 css: { autoAlpha: 1 }, 111 repeat: 1, 112 yoyo: true, 113 repeatDelay: .5 114 }, 2); 115 116 schemeRevealing.call(vivusCallbackInitial).add(timeline1).call(vivusCallback, [], null, '-=0.5').add(timeline2, '-=0.5').add(timeline3, .7).add(timeline4).addLabel('solar-rays-animation-start').add(timeline8).add(timeline5).add(timeline6, 'solar-rays-animation-start').add(timeline7, 'solar-rays-animation-start+=0.3'); 117} 118 119exports.default = schemeRevealing; 120/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 121 122/***/ }), 123/* 4 */, 124/* 5 */, 125/* 6 */, 126/* 7 */, 127/* 8 */ 128/***/ (function(module, exports, __webpack_require__) { 129 130"use strict"; 131/* WEBPACK VAR INJECTION */(function(jQuery) { 132 133__webpack_require__(0); 134 135__webpack_require__(12); 136 137var _Router = __webpack_require__(29); 138 139var _Router2 = _interopRequireDefault(_Router); 140 141var _common = __webpack_require__(13); 142 143var _common2 = _interopRequireDefault(_common); 144 145var _home = __webpack_require__(16); 146 147var _home2 = _interopRequireDefault(_home); 148 149var _pageTemplateAbout = __webpack_require__(18); 150 151var _pageTemplateAbout2 = _interopRequireDefault(_pageTemplateAbout); 152 153var _taxMarkets = __webpack_require__(28); 154 155var _taxMarkets2 = _interopRequireDefault(_taxMarkets); 156 157var _singleProducts = __webpack_require__(25); 158 159var _singleProducts2 = _interopRequireDefault(_singleProducts); 160 161var _contacts = __webpack_require__(14); 162 163var _contacts2 = _interopRequireDefault(_contacts); 164 165var _systemIntegration = __webpack_require__(27);
166 167var _systemIntegration2 = _interopRequireDefault(_systemIntegration); 168 169var _pageTemplateCareers = __webpack_require__(19); 170 171var _pageTemplateCareers2 = _interopRequireDefault(_pageTemplateCareers); 172 173var _pageTemplateHubDownload = __webpack_require__(21); 174 175var _pageTemplateHubDownload2 = _interopRequireDefault(_pageTemplateHubDownload); 176 177var _pageTemplateReservedArea = __webpack_require__(22); 178 179var _pageTemplateReservedArea2 = _interopRequireDefault(_pageTemplateReservedArea); 180 181var _productsTemplatePostSpecialProduct = __webpack_require__(24); 182 183var _productsTemplatePostSpecialProduct2 = _interopRequireDefault(_productsTemplatePostSpecialProduct); 184 185var _singleSubservices = __webpack_require__(26); 186 187var _singleSubservices2 = _interopRequireDefault(_singleSubservices); 188 189var _finalProducts = __webpack_require__(15); 190 191var _finalProducts2 = _interopRequireDefault(_finalProducts); 192 193var _newProducts = __webpack_require__(17); 194 195var _newProducts2 = _interopRequireDefault(_newProducts); 196 197var _pageTemplateServiceRequestNew = __webpack_require__(23); 198 199var _pageTemplateServiceRequestNew2 = _interopRequireDefault(_pageTemplateServiceRequestNew); 200 201var _pageTemplateCertifications = __webpack_require__(20); 202 203var _pageTemplateCertifications2 = _interopRequireDefault(_pageTemplateCertifications); 204 205function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 206 207/** 208 * Populate Router instance with DOM routes 209 * @type {Router} routes - An instance of our router 210 */ 211 212 213/** import local dependencies */ 214/** import external dependencies */ 215var routes = new _Router2.default({ 216 /** All pages */ 217 common: _common2.default, 218 /** Home page */ 219 home: _home2.default, 220 /** About Us page, note the change from about-us to aboutUs. */ 221 pageTemplateAbout: _pageTemplateAbout2.default, 222 /** Taxonomy Markets */ 223 taxMarkets: _taxMarkets2.default, 224 /** Single Products */ 225 singleProducts: _singleProducts2.default, 226 /** Single Products */ 227 pageTemplateContacts: _contacts2.default, 228 /** Systems */ 229 pageTemplateSistems: _systemIntegration2.default, 230 /** Systems */ 231 pageTemplateSistemsTemp: _systemIntegration2.default, 232 /** Careers */ 233 pageTemplateCareers: _pageTemplateCareers2.default, 234 /** Hub Download */ 235 pageTemplateHubDownload: _pageTemplateHubDownload2.default, 236 /** Restricted Area */ 237 pageTemplateReservedArea: _pageTemplateReservedArea2.default, 238 /** Special Product **/ 239 productsTemplatePostSpecialProduct: _productsTemplatePostSpecialProduct2.default, 240 /** Final Product **/ 241 finalProducts: _finalProducts2.default, 242 /** New 2023 Product **/ 243 newProducts: _newProducts2.default, 244 /** SubService Slider **/ 245 singleSubservices: _singleSubservices2.default, 246 /** Service Request New **/ 247 pageTemplateServiceRequestNew: _pageTemplateServiceRequestNew2.default, 248 /** Certifications **/ 249 pageTemplateCertifications: _pageTemplateCertifications2.default 250}); 251 252/** Load Events */ 253jQuery(document).ready(function () { 254 return routes.loadEvents(); 255}); 256/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 257 258/***/ }), 259/* 9 */, 260/* 10 */ 261/***/ (function(module, exports) { 262 263// removed by extract-text-webpack-plugin 264 265/***/ }), 266/* 11 */, 267/* 12 */, 268/* 13 */ 269/***/ (function(module, exports, __webpack_require__) { 270 271"use strict"; 272/* WEBPACK VAR INJECTION */(function($, jQuery) { 273 274Object.defineProperty(exports, "__esModule", { 275 value: true 276}); 277 278__webpack_require__(32); 279 280__webpack_require__(35); 281 282var _modernizr = __webpack_require__(39); 283 284var _modernizr2 = _interopRequireDefault(_modernizr); 285 286var _animejs = __webpack_require__(4); 287 288var _animejs2 = _interopRequireDefault(_animejs); 289 290__webpack_require__(2); 291 292__webpack_require__(40); 293 294var _popupContactForm = __webpack_require__(31); 295 296var _popupContactForm2 = _interopRequireDefault(_popupContactForm); 297 298__webpack_require__(34); 299 300function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 301 302function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } 303/*import 'scrollup/dist/jquery.scrollUp';*/ 304 305 306exports.default = {
307 init: function init() { 308 var ppForm = new _popupContactForm2.default(); 309 310 var SearchPopup = function SearchPopup() { 311 var $popup = $('#popup-search'), 312 $trigger = $('.search-console-trigger'); 313 314 if ($popup.length && $trigger.length) { 315 var openSearchConsole = function openSearchConsole() { 316 (0, _animejs2.default)({ 317 targets: '#popup-search', 318 easing: 'linear', 319 duration: 250, 320 opacity: 1, 321 begin: function begin() { 322 $popup.css({ 323 display: 'flex' 324 }); 325 } 326 }); 327 }; 328 329 var closeSearchConsole = function closeSearchConsole() { 330 (0, _animejs2.default)({ 331 targets: '#popup-search', 332 easing: 'linear', 333 opacity: 0, 334 duration: 250, 335 complete: function complete() { 336 $popup.hide(); 337 } 338 }); 339 }; 340 341 $trigger.click(openSearchConsole); 342 $popup.find('.close-popup').click(closeSearchConsole); 343 } 344 }; 345 346 SearchPopup(); 347 348 var $body = $('body'), 349 isHome = $('.home').length; 350 351 $body.css({ 352 'overflow': 'hidden' 353 }); 354 355 /*$.scrollUp({ 356 scrollName: 'scroll-up', 357 scrollText: '<span class="icon ion ion-android-arrow-up"></span>', 358 });*/ 359 360 /** 361 * 362 * Preloader 363 * 364 */ 365 366 $('html').imagesLoaded(function () { 367 368 $body.css({ 369 'overflow': 'inherit' 370 }); 371 372 $body.removeClass('page-loading'); 373 374 // DISPLAY NONE OF LOADER FOR SEO 375 window.setTimeout(function () { 376 $('#preloader').addClass('killed'); 377 }, 1500); 378 }); 379 380 var headersHeight = $('header').height() + $('.industrial-header').height(); 381 382 $(window).resize(function () { 383 headersHeight = $('header').height(); 384 }); 385 386 function checkMobile() { 387 var smallWindow = $(window).width() < 768, 388 mobileUserAgent = /Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent || navigator.vendor || window.opera); 389 390 if (smallWindow || mobileUserAgent) { 391 return true; 392 } else { 393 return false; 394 } 395 } 396 397 window.globalContext.isMobile = checkMobile(); 398 399 function isHighDensity() { 400 return window.matchMedia && (window.matchMedia('only screen and (min-resolution: 124dpi), only screen and (min-resolution: 1.3dppx), only screen and (min-resolution: 48.8dpcm)').matches || window.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (min-device-pixel-ratio: 1.3)').matches) || window.devicePixelRatio && window.devicePixelRatio > 1.3; 401 } 402 403 (function () { 404 405 if (_modernizr2.default.bgsizecover) { 406 407 $('.img-wrapper').each(function () { 408 409 var srcUrl = $('img', this).attr('src'), 410 srcSetAttribute = $('img', this).attr('srcset'); 411 412 if (srcSetAttribute !== false && typeof srcSetAttribute !== 'undefined' && '' !== srcSetAttribute) { 413 var srcSetList = srcSetAttribute.split(','), 414 finalSrcSetUrl = '', 415 srcSetDataSet = []; 416 417 for (var i = 0; i < srcSetList.length; ++i) { 418 var srcSetValues = srcSetList[i].trim().split(' '); 419 420 var singleSrcSet = { 421 url: srcSetValues[0], 422 width: parseInt(srcSetValues[1].replace('w', '')) 423 }; 424 425 srcSetDataSet.push(singleSrcSet); 426 } 427 428 var wWidth = $(window).width(); 429 430 for (var i = 0; i < srcSetDataSet.length; ++i) { 431 432 if (srcSetDataSet[i].width > wWidth) { 433 434 finalSrcSetUrl = srcSetDataSet[i].url; 435 break; 436 } 437 438 if (i + 1 == srcSetDataSet.length) { 439 finalSrcSetUrl = srcSetDataSet[i].url; 440 } 441 } 442 443 srcUrl = finalSrcSetUrl; 444 } 445 446 var bgOverlay = $(this).find('.bg-overlay'); 447 448 if (bgOverlay.length) { 449 450 bgOverlay.css({ 451 backgroundImage: 'url(' + srcUrl + ')' 452 }); 453 } else { 454 455 $('<div class="bg-overlay" style="background-image: url(' + srcUrl + ');">').appendTo($(this)); 456 } 457 458 /*var srcUrl = $('img', this).attr('src'), 459 srcSetAttribute = $('img', this).attr('srcset'), 460 srcSetStyle = ''; 461 if (srcSetAttribute !== false && typeof srcSetAttribute !== 'undefined') { 462 var srcSetUrlsList = srcSetAttribute.split(','), 463 finalSrcSetUrl = ''; 464 for (var i = 0; i < srcSetUrlsList.length; ++i) { 465 var singleSrcSet = srcSetUrlsList[i]; 466 if(i != 0){ // REPLACING SPACE CHAR AT START FROM SECOND SRCSET ON 467 singleSrcSet = srcSetUrlsList[i].replace(' ', ''); 468 } 469 var parts = singleSrcSet.split(' '); 470 finalSrcSetUrl += ' url('+parts[0]+') '+parts[1]+',' 471 } 472 srcSetStyle = 'background-image:-webkit-image-set('+finalSrcSetUrl+')'; 473 } 474 $('<div class="bg-overlay" style="background-image: url('+srcUrl+'); '+srcSetStyle+'">').appendTo($(this));*/ 475 }); 476 } 477 })(); 478 479 document.addEventListener('wpcf7mailsent', function (event) { 480 var fid = jQuery('[name="_wpcf7"]').val(); 481 if (fid == 4) { 482 __gaTracker('send', 'event', 'form', 'submit', 'en'); 483 } 484 if (fid == 2174) { 485 __gaTracker('send', 'event', 'form', 'submit', 'ru'); 486 } 487 if (fid == 2171) { 488 __gaTracker('send', 'event', 'form', 'submit', 'it'); 489 } 490 if (fid == 2172) { 491 __gaTracker('send', 'event', 'form', 'submit', 'de'); 492 } 493 if (fid == 2173) { 494 __gaTracker('send', 'event', 'form', 'submit', 'fr'); 495 } 496 497 if (fid == 10441) { 498 __gaTracker('send', 'event', 'service-request', 'submit', 'en'); 499 } 500 }, false); 501 502 $('.open-form-section').on('click', function (e) { 503 $('#form-section').show(); 504 }); 505 506 // Play Pause Videos and Open Modals ov Video Slider on Ev Markets 507 508 $('.vOpenIcon').on('click', function (e) { 509 var modal = $(this).attr("data-modaltarget"); 510 var mid = "#" + modal; 511 var mvideo = "#" + modal + " video"; 512 // console.log('Modal On click', modal); 513 $(mid).fadeToggle("1500"); 514 $(mvideo).trigger('play'); 515 $(mvideo).prop('currentTime', 0); 516 }); 517 518 $('.vOpenBtn').on('click', function (e) { 519 var modal = $(this).attr("data-modaltarget"); 520 var mid = "#" + modal; 521 var mvideo = "#" + modal + " video"; 522 // console.log('Modal On click', modal); 523 $(mid).fadeToggle("1500"); 524 $(mvideo).trigger('play'); 525 $(mvideo).prop('currentTime', 0); 526 }); 527 528 // Play Pause Videos on Ev Markets 529 530 $('#videoOverviewModalButton').on('click', function (e) { 531 $('#videoOverviewModal').fadeToggle("1500"); 532 $('#videoOverviewModal video').trigger('play'); 533 $('#videoOverviewModal video').prop('currentTime', 0); 534 }); 535 536 $('.videoModal .close').on('click', function (e) { 537 var modal = $(this).attr("data-modaltarget"); 538 var mid = "#" + modal; 539 $(mid).fadeToggle("1500"); 540 $('.videoModal video').each(function () { 541 $(this).get(0).pause(); 542 }); 543 }); 544 545 $('.videoModalOverlay').on('click', function (e) { 546 $(this).closest(".videoModal").fadeToggle("1500"); 547 $('.videoModal video').each(function () { 548 $(this).get(0).pause(); 549 }); 550 }); 551 552 //Click Read More on Industry Page 553 554 $('.view-content').on('click', function (e) { 555 556 if ($(this).hasClass('more-content')) { 557 $(this).removeClass('more-content'); 558 $(this).addClass('up-content'); 559 } else { 560 $(this).removeClass('up-content'); 561 $(this).addClass('more-content'); 562 } 563 }); 564 565 if ($('.rma-page').length > 0) { 566 var retrieveEmail = jQuery('<a class="pull-right" style="cursor: pointer;">Retrieve INFO</a>'); 567 var useReducedForm = false; 568 var state = ""; 569 570 retrieveEmail.bind('click', function (e) { 571 e.preventDefault(); 572 jQuery('#preloader').css('opacity', '0.9'); 573 jQuery('#preloader').removeClass('killed'); 574 jQuery('#preloader').css('visibility', 'visible'); 575 if (jQuery('#sf_email').val().length > 0) { 576 jQuery.ajax({ 577 'url': jQuery('#url_salesforce').val(), 578 'data': 'method=getinfo&email=' + jQuery('#sf_email').val(), 579 'success': function success(data) { 580 if (data.status == true) { 581 jQuery('.w2lsubmit').show(); 582 jQuery('.short-form-only').hide(); 583 jQuery('#sf_company').val(data.results.company); 584 jQuery('#sf_first_name').val(data.results.firstName); 585 jQuery('#sf_last_name').val(data.results.lastName); 586 jQuery('#sf_street').val(data.results.street); 587 jQuery('#sf_city').val(data.results.city); 588 if (data.results.country && data.results.country.length == 2) { 589 state = data.results.country; 590 } else { 591 state = "IT"; 592 } 593 jQuery('#sf_country option[value="' + state
593+ '"]').prop('selected', true); 594 jQuery('#sf_country').val(state); 595 if (data.results.country == "US" || data.results.country == "CA") { 596 if (data.results.country == "US") { 597 jQuery('#sf_state-select').html(jQuery('#select-us').html()); 598 } else { 599 jQuery('#sf_state-select').html(jQuery('#select-ca').html()); 600 } 601 jQuery('#sf_state').hide(); 602 jQuery('#sf_state').attr('name', 'state-input'); 603 jQuery('#sf_state-select').attr('name', 'state'); 604 jQuery('#sf_state-select').show(); 605 if (data.results.state && data.results.state.length == 2) { 606 jQuery('#sf_state-select option[value="' + data.results.state + '"]').prop('selected', true); 607 jQuery('#sf_state-select').val(data.results.state); 608 } 609 } else { 610 jQuery('#sf_state').show(); 611 jQuery('#sf_state').attr('name', 'state'); 612 jQuery('#sf_state-select').attr('name', 'state-select'); 613 jQuery('#sf_state-select').hide(); 614 jQuery('#sf_state').val(data.results.state); 615 } 616 jQuery('#sf_zip').val(data.results.zip); 617 jQuery('#sf_phone').val(data.results.phone); 618 jQuery('#sf_contact_id').val(data.results.contactid); 619 } else { 620 if (useReducedForm) { 621 jQuery('.w2lsubmit').hide(); 622 } 623 jQuery('.short-form-only').css('background-color', 'rgba(255,0,0,0.8)'); 624 jQuery('.short-form-only').css('color', '#FFFFFF'); 625 jQuery('.short-form-only').html('We didn\'t find any account linked to your email, please insert a valid email'); 626 } 627 }, 628 'complete': function complete(data) { 629 jQuery('#preloader').css('opacity', '0'); 630 jQuery('#preloader').addClass('killed'); 631 jQuery('#preloader').css('visibility', 'hidden'); 632 } 633 }); 634 } else { 635 jQuery('#preloader').css('opacity', '0'); 636 jQuery('#preloader').addClass('killed'); 637 jQuery('#preloader').css('visibility', 'hidden'); 638 } 639 }); 640 641 jQuery('#sf_email').prev().append(retrieveEmail); 642 643 jQuery('#sf_country').bind('change', function () { 644 if (jQuery('#sf_country').val() == "US" || jQuery('#sf_country').val() == "CA") { 645 if (jQuery('#sf_country').val() == "US") { 646 jQuery('#sf_state-select').html(jQuery('#select-us').html()); 647 } else { 648 jQuery('#sf_state-select').html(jQuery('#select-ca').html()); 649 } 650 jQuery('#sf_state').hide(); 651 jQuery('#sf_state').attr('name', 'state-input'); 652 jQuery('#sf_state-select').attr('name', 'state'); 653 jQuery('#sf_state-select').show(); 654 jQuery('#sf_state-select option.ca').hide(); 655 } else { 656 jQuery('#sf_state').show(); 657 jQuery('#sf_state').attr('name', 'state'); 658 jQuery('#sf_state-select').attr('name', 'state-select'); 659 jQuery('#sf_state-select').hide(); 660 } 661 }); 662 663 jQuery('#sf_form_salesforce_w2l_lead_3').bind('submit', function (e) { 664 e.preventDefault(); 665 jQuery('#preloader').css('opacity', '0.9'); 666 jQuery('#preloader').removeClass('killed'); 667 jQuery('#preloader').css('visibility', 'visible'); 668 jQuery.ajax({ 669 'url': jQuery('#url_salesforce').val() + '?method=sendinfo', 670 'method': 'POST', 671 'data': jQuery('#sf_form_salesforce_w2l_lead_3').serialize(), 672 'success': function success(data) { 673 if (data.status == true) { 674 jQuery('.rma-error').hide(); 675 jQuery('.rma-number').html(data.results); 676 jQuery('.hide-complete').hide(); 677 jQuery('.shipping-rma').show(); 678 jQuery('.shipping-rma').removeClass('hidden'); 679 jQuery('#sf_form_salesforce_w2l_lead_3').hide(); 680 } else { 681 jQuery('.rma-error').show(); 682 jQuery('.rma-error').removeClass('hidden'); 683 } 684 }, 685 'complete': function complete(data) { 686 jQuery('#preloader').css('opacity', '0'); 687 jQuery('#preloader').addClass('killed'); 688 jQuery('#preloader').css('visibility', 'hidden'); 689 } 690 }); 691 }); 692 693 jQuery('#new-rma-form').bind('click', function (e) { 694 jQuery('.hide-complete').show(); 695 jQuery('.shipping-rma').hide(); 696 jQuery('.shipping-rma').hide(); 697 jQuery('#sf_form_salesforce_w2l_lead_3').show(); 698 jQuery('#sf_Model Number').val(''); 699 jQuery('#sf_Part Number').val(''); 700 jQuery('#sf_Purchase Number').val(''); 701 jQuery('#sf_Reason For Return').val(''); 702 jQuery('#sf_Serial Numbers').val(''); 703 jQuery('#sf_ Item Description').val(''); 704 }); 705 706 jQuery('.show-reduced-form').bind('click', function (e) { 707 useReducedForm = true; 708 jQuery('.w2lsubmit').hide(); 709 jQuery('.short-form-only').show(); 710 jQuery('.short-form-only').html('Please fill in your email address and click Retrieve Info to proceed with the form submission.'); 711 jQuery('.short-form-only').css('background-color', '#d9edf7'); 712 jQuery('.short-form-only').css('color', '#31708f'); 713 jQuery('.optional-item').hide(); 714 jQuery('.optional-item-required input').removeAttr('required'); 715 jQuery('.optional-item-required select').removeAttr('required'); 716 jQuery('#form-rma').show(); 717 jQuery('html, body').animate({ 718 scrollTop: jQuery(".rma-top-link").offset().top 719 }, 2000); 720 }); 721 722 jQuery('.show-long-form').bind('click', function (e) { 723 useReducedForm = false; 724 jQuery('.w2lsubmit').show(); 725 jQuery('.short-form-only').hide(); 726 jQuery('.optional-item').show(); 727 jQuery('.optional-item-required input').attr('required', true); 728 jQuery('.optional-item-required select').attr('required', true); 729 jQuery('#form-rma').show(); 730 jQuery('html, body').animate({ 731 scrollTop: jQuery(".rma-top-link").offset().top 732 }, 2000); 733 }); 734 } 735 736 /** 737 * 738 * STICKY HEADER MANAGEMENT 739 * ( TO REFACTOR ) 740 * 741 **/ 742 743 var header = { 744 $el: $('#top-navigation'), 745 stick: function stick() { 746 header.$el.addClass('sticky'); 747 }, 748 unstick: function unstick() { 749 header.$el.removeClass('sticky'); 750 }, 751 scrollChecker: function scrollChecker() { 752 753 if ($(window).scrollTop() > 3) { 754 header.stick(); 755 } 756 757 if ($(window).scrollTop() < 3) { 758 header.unstick(); 759 } 760 } 761 }; 762 763 // ACTIVATING STICKY HEADER IN ALL PAGES 764 if (!isHome) { 765 766 header.scrollChecker(); 767 $(window).on('scroll', header.scrollChecker); 768 } 769 770 function mobileMediaListener(mediaQuery) { 771 if (mediaQuery.matches || checkMobile()) { 772 773 if (isHome) { 774 // CHECK SCROLLTOP BEFORE SCROLL 775 header.scrollChecker(); 776 777 // CHECK SCROLLTOP ON SCROLL 778 $(window).on('scroll', header.scrollChecker); 779 } 780 } 781 } 782 783 function smMinMediaListener(mediaQuery) { 784 if (mediaQuery.matches) { 785 786 if (isHome) { 787 header.unstick(); 788 $(window).off('scroll', header.scrollChecker); 789 } 790 } 791 } 792 793 /** 794 * 795 *
796 * MENU ANIMATIONS MANAGEMENT 797 * 798 * 799 */ 800 801 (function () { 802 803 /** 804 * 805 * Reveal Sliding Menu 806 * 807 */ 808 809 $('.toggle-menu').click(function () { 810 var $body = $('body'); 811 812 if ($body.hasClass('reveal-menu')) { 813 $body.removeClass('reveal-menu'); 814 815 if ($('html').hasClass('fp-enabled')) { 816 $.fn.fullpage.setAllowScrolling(true); 817 } 818 } else { 819 $body.addClass('reveal-menu'); 820 821 if ($('html').hasClass('fp-enabled')) { 822 $.fn.fullpage.setAllowScrolling(false); 823 } 824 } 825 }); 826 827 $('.industry-menu').click(function () { 828 var $body = $('body'); 829 830 if ($body.hasClass('reveal-industry-menu')) { 831 $body.removeClass('reveal-industry-menu'); 832 833 if ($('html').hasClass('fp-enabled')) { 834 $.fn.fullpage.setAllowScrolling(true); 835 } 836 } else { 837 $body.addClass('reveal-industry-menu'); 838 839 if ($('html').hasClass('fp-enabled')) { 840 $.fn.fullpage.setAllowScrolling(false); 841 } 842 } 843 }); 844 845 $('.main-menu-container .main-menu-overlay').click(function () { 846 $('body').removeClass('reveal-menu'); 847 848 if ($('html').hasClass('fp-enabled')) { 849 $.fn.fullpage.setAllowScrolling(true); 850 } 851 }); 852 853 $('.industry-menu-container .main-menu-overlay').click(function () { 854 $('body').removeClass('reveal-industry-menu'); 855 856 if ($('html').hasClass('fp-enabled')) { 857 $.fn.fullpage.setAllowScrolling(true); 858 } 859 }); 860 861 /** 862 * 863 * Submenus behaviour 864 * 865 */ 866 867 var headerMenu = document.getElementById('header-menu'); 868 869 var animating = false; 870 871 $('#header-menu .menu-item-has-children > a').click(function (e) { 872 e.preventDefault(); 873 if (!animating) { 874 animating = true; 875 876 var mainMenuOffsetTop = headerMenu.getBoundingClientRect().top; 877 878 var menu = { 879 a: this, 880 li: this.parentNode, 881 tl: _animejs2.default.timeline() 882 }; 883 884 menu.ul = menu.li.parentNode; 885 menu.siblingsLi = Array.prototype.filter.call(menu.ul.children, function (child) { 886 return child !== menu.li; 887 }); 888 menu.isSubLevel = menu.ul.parentNode.getAttribute('data-menu-open'); 889 menu.isOpen = menu.li.getAttribute('data-menu-open'); 890 menu.parentA = $(menu.ul.parentNode).children('a').get(0); 891 menu.subUl = menu.li.querySelector('.sub-menu'); 892 menu.subLi = menu.subUl.children; 893 menu.subAs = Array.prototype.map.call(menu.subLi, function (el) { 894 return el.querySelector('a'); 895 }); 896 menu.liHeight = menu.li.offsetHeight; 897 menu.liTop = menu.li.getBoundingClientRect().top; 898 menu.translateLength = mainMenuOffsetTop - menu.liTop - menu.liHeight; 899 900 console.log(menu); 901 902 if (!menu.isOpen) { 903 904 // OPENING ANIMATION 905 menu.tl.add({ 906 targets: menu.siblingsLi, 907 translateX: -100, 908 opacity: 0, 909 duration: 300, 910 easing: 'easeInOutQuart', 911 delay: function delay(el, i, l) { 912 return i * 50; 913 } 914 }); 915 916 var nextOffset = '-=300'; 917 918 if (menu.isSubLevel) { 919 menu.tl.add({ 920 targets: menu.parentA, 921 opacity: [1, 0], 922 duration: 300, 923 offset: '-=500', 924 complete: function complete() { 925 menu.parentA.style.visibility = 'hidden'; 926 } 927 }); 928 929 nextOffset = '-=300'; 930 } 931 932 menu.tl.add({ 933 targets: menu.li, 934 opacity: 1, 935 translateY: menu.translateLength, 936 offset: nextOffset, 937 duration: 650, 938 easing: 'easeInOutQuart', 939 complete: function complete() { 940 menu.siblingsLi.map(function (el) { 941 el.style.visibility = 'hidden'; 942 }); 943 }, 944 begin: function begin() { 945 menu.li.setAttribute('data-menu-open', 'true'); 946 } 947 }).add({ 948 targets: menu.subLi, 949 opacity: 1, 950 offset: '-=500', 951 duration: 300, 952 easing: 'linear', 953 delay: function delay(el, i, l) { 954 return i * 50; 955 }, 956 begin: function begin() { 957 958 var childrenList = [].concat(_toConsumableArray(menu.subLi)); 959 960 childrenList.map(function (el) { 961 el.style.visibility = 'visible'; 962 }); 963 }, 964 complete: function complete() { 965 animating = false; 966 } 967 }); 968 } else { 969 970 // CLOSING ANIMATION 971 972 menu.tl.add({ 973 targets: menu.subLi, 974 opacity: 0, 975 duration: 300, 976 easing: 'easeInOutQuart' 977 }).add({ 978 targets: menu.li, 979 translateY: 0, 980 offset: '-=300',
981 duration: 800, 982 easing: 'easeInOutQuart', 983 begin: function begin(anim) { 984 menu.li.removeAttribute('data-menu-open'); 985 } 986 }); 987 988 if (menu.isSubLevel) { 989 menu.tl.add({ 990 targets: menu.parentA, 991 translateX: [-100, 0], 992 duration: 400, 993 offset: '-=700', 994 easing: 'easeInOutQuart', 995 begin: function begin() { 996 menu.parentA.style.visibility = 'visible'; 997 } 998 }).add({ 999 targets: menu.parentA, 1000 opacity: [0, 1], 1001 duration: 200, 1002 offset: '-=800', 1003 easing: 'linear' 1004 }); 1005 } 1006 1007 menu.tl.add({ 1008 targets: menu.siblingsLi, 1009 translateX: 0, 1010 offset: '-=600', 1011 opacity: 1, 1012 duration: 500, 1013 easing: 'easeInOutQuart', 1014 delay: function delay(el, i, l) { 1015 return i * 50; 1016 }, 1017 complete: function complete() { 1018 animating = false; 1019 } 1020 }); 1021 1022 menu.tl.begin = function () { 1023 menu.siblingsLi.map(function (el) { 1024 el.style.visibility = 'visible'; 1025 }); 1026 }; 1027 } 1028 } 1029 }); 1030 })(); 1031 1032 /** 1033 * 1034 * EVENT CONSTRUCTOR POLYFILL ( IE 9 up ) 1035 * 1036 **/ 1037 1038 (function () { 1039 1040 if (typeof window.CustomEvent === "function") return false; 1041 1042 function CustomEvent(event, params) { 1043 params = params || { bubbles: false, cancelable: false, detail: undefined }; 1044 var evt = document.createEvent('CustomEvent'); 1045 evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); 1046 return evt; 1047 } 1048 1049 CustomEvent.prototype = window.Event.prototype; 1050 1051 window.Event = CustomEvent; 1052 })(); 1053 1054 /** 1055 * 1056 * SCROLL ANIM 1057 * 1058 */ 1059 1060 $('a[href^="#"].roll').on('click', function (e) { 1061 e.preventDefault(); 1062 var target = this.hash, 1063 $target = $(target); 1064 $('html, body').stop().animate({ 1065 'scrollTop': $target.offset().top - headersHeight - 25 1066 }, 800); 1067 }); 1068 1069 /** 1070 * 1071 * SCROLL TOP 1072 * 1073 */ 1074 $(window).scroll(function () { 1075 var button = $(".help-buttons"); 1076 if ($(window).scrollTop() > 100) { 1077 button.addClass("visible"); 1078 $(button).on('click', function (e) { 1079 e.preventDefault(); 1080 $('html, body').stop().animate({ 1081 'scrollTop': 0 1082 }, 800); 1083 }); 1084 } else { 1085 button.removeClass("visible"); 1086 } 1087 }); 1088 1089 /** 1090 * 1091 * Language Toggle 1092 * 1093 */ 1094 1095 // Get the first <li> element with the "toggle" class 1096 var langswitcher = document.querySelector('.current-la'); 1097 1098 // console.log("Current Language" , langswitcher); 1099 1100 // Add a click event listener to the toggle element 1101 langswitcher.addEventListener('click', function () { 1102 1103 // console.log("Current Language Clicked" , langswitcher); 1104 1105 // Get the parent <ul> element 1106 var parentElement = this.parentNode; 1107 1108 // Get all the sibling <li> elements 1109 var siblingElements = Array.from(parentElement.children).slice(1); 1110 1111 // Toggle the display of sibling elements
1112 siblingElements.forEach(function (element) { 1113 // console.log("Each Elemernt of Language: " , element); 1114 element.style.display = element.style.display === 'none' ? 'list-item' : 'none'; 1115 }); 1116 }); 1117 1118 /** 1119 * Simulated fullheight link 1120 */ 1121 1122 $('.simulated-link-target').click(function (e) { 1123 e.stopPropagation(); 1124 e.preventDefault(); 1125 1126 var targetBlank = $(this).find('.simulated-link-router').attr('target') == '_blank'; 1127 var route = $(this).find('.simulated-link-router').attr('href'); 1128 1129 if (targetBlank || e.metaKey) { 1130 window.open(route, '_blank'); 1131 } else { 1132 window.location = route; 1133 } 1134 }); 1135 1136 /** 1137 * 1138 * POPUP MANAGEMENT 1139 * 1140 */ 1141 1142 var nidecPopup = { 1143 box: $('#popup-box'), 1144 container: $('#popup-box #popup-container'), 1145 list: $('.popup-content'), 1146 trigger: $('.popup-trigger'), 1147 overlay: $('#popup-box #popup-overlay'), 1148 inner: $('#popup-box .popup-inner'), 1149 closeBtn: $('#popup-box .close'), 1150 close: function close() { 1151 var popupContainer = nidecPopup.container.get(0), 1152 popupOverlay = nidecPopup.overlay.get(0); 1153 1154 var popupOut = _animejs2.default.timeline(); 1155 1156 popupOut.add({ 1157 targets: popupOverlay, 1158 opacity: 0, 1159 duration: 600, 1160 easing: 'linear' 1161 }).add({ 1162 targets: popupContainer, 1163 translateY: [0, 200], 1164 opacity: 0, 1165 duration: 300, 1166 offset: 0, 1167 easing: 'easeInQuad' 1168 }); 1169 1170 popupOut.complete = function () { 1171 $body.removeClass('popup-in-focus'); 1172 }; 1173 }, 1174 open: function open(target) { 1175 1176 // Cancel all popup content 1177 nidecPopup.inner.html(''); 1178 1179 // Fetch target info 1180 var subject = $(target).attr('href').substring(1); 1181 1182 // Clone and append content to popup 1183 $('[data-popup-content="' + subject + '"').clone().appendTo(nidecPopup.inner); 1184 1185 // Activate popup 1186 $body.addClass('popup-in-focus'); 1187 1188 // Animate Popup 1189 var popupIn = _animejs2.default.timeline(); 1190 1191 var popupContainer = nidecPopup.container.get(0), 1192 popupOverlay = nidecPopup.overlay.get(0); 1193 1194 popupIn.add({ 1195 targets: popupOverlay, 1196 opacity: 1, 1197 duration: 500, 1198 easing: 'linear' 1199 }).add({ 1200 targets: popupContainer, 1201 translateY: [200, 0], 1202 opacity: 1, 1203 duration: 500, 1204 offset: 300, 1205 easing: 'easeOutQuart' 1206 }); 1207 } 1208 1209 }; 1210 1211 nidecPopup.trigger.click(function () { 1212 nidecPopup.open(this); 1213 }); 1214 1215 nidecPopup.overlay.click(function () { 1216 nidecPopup.close(); 1217 }); 1218 1219 nidecPopup.closeBtn.click(function () { 1220 nidecPopup.close(); 1221 }); 1222 1223 /** 1224 * Activate styles for hScroll 1225 */ 1226 1227 function hScroll() { 1228 var $bar = $('.anchors-bar'); 1229 var ww = $(window).width(); 1230 var barWidth = $bar.outerWidth(); 1231 1232 if (barWidth >= ww) { 1233 $bar.addClass('hScroll'); 1234 } else { 1235 $bar.removeClass('hScroll'); 1236 } 1237 }; 1238 1239 if ($('.anchors-bar').length) { 1240 hScroll(); 1241 window.addEventListener('rszend', hScroll); 1242 } 1243 1244 /** 1245 * 1246 * Media queriesf 1247 * 1248 */ 1249 1250 var mobileMediaCheck = window.matchMedia('(max-width: 767px)'); 1251 mobileMediaCheck.addListener(mobileMediaListener); 1252 1253 mobileMediaListener(mobileMediaCheck); 1254 1255 var smMinMediaCheck = window.matchMedia('(min-width: 768px)'); 1256 smMinMediaCheck.addListener(smMinMediaListener); 1257 1258 smMinMediaListener(smMinMediaCheck); 1259 }, 1260 finalize: function finalize() { 1261 1262 /** 1263 * center_map 1264 * 1265 * This function will center the map, showing all markers attached to this map 1266 * 1267 * 1268 */ 1269 1270 function center_map(map) { 1271 var latLng = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; 1272 var zoom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; 1273 1274 1275 var bounds = new google.maps.LatLngBounds(); 1276 var listOfCoordinates = map.markers; 1277 var isHome = $('.home').length; 1278 1279 // CASE COORDINATES ARE PASSED 1280 var forcedCoords = typeof latLng != 'boolean'; 1281 var forcedZoom = typeof zoom != 'boolean'; 1282 1283 if (forcedCoords) { 1284 listOfCoordinates = latLng; 1285 } 1286 1287 // loop through all coordinates and create bounds 1288 for (var i = 0; i < listOfCoordinates.length; ++i) { 1289 1290 // NORMALIZING POSITION DATA 1291 if (forcedCoords) { 1292 var thisCoords = listOfCoordinates[i]; 1293 } else { 1294 var thisCoords = listOfCoordinates[i].getPosition(); 1295 } 1296 1297 bounds.extend(thisCoords);
1298 } 1299 1300 // only 1 marker? 1301 if (listOfCoordinates.length == 1) { 1302 1303 // set center of map 1304 map.setCenter(listOfCoordinates[0]); 1305 1306 if (forcedZoom) { 1307 map.setZoom(zoom); 1308 //console.log('Zoom ', zoom); 1309 //console.log('After Setzoom when is forcedzoom and is 1 marker ', map.getZoom()); 1310 } else { 1311 map.setZoom(4); 1312 //console.log('After Setzoom when is not forcedzoom and is 1 marker ', map.getZoom()); 1313 } 1314 } else { 1315 1316 window.setTimeout(function () { 1317 // fit to bounds 1318 map.fitBounds(bounds); 1319 1320 //console.log('Is Home before Setzoom', isHome); 1321 1322 if (isHome) { 1323 map.setZoom(4); 1324 //console.log('After Setzoom when isHome', map.getZoom()); 1325 } 1326 }, 100); 1327 } 1328 } 1329 1330 window.initMap = function (callback) { 1331 1332 if (!mapsReady.googleApi || !mapsReady.initializer) { 1333 return; 1334 } 1335 1336 /* 1337 * map styles 1338 * 1339 * USE: https://mapstyle.withgoogle.com/ 1340 */ 1341 1342 // MAP STYLES 1343 var mapStyles = [{ 1344 "elementType": "geometry", 1345 "stylers": [{ 1346 "color": "#f5f5f5" 1347 }] 1348 }, { 1349 "elementType": "labels.icon", 1350 "stylers": [{ 1351 "visibility": "off" 1352 }] 1353 }, { 1354 "elementType": "labels.text.fill", 1355 "stylers": [{ 1356 "color": "#616161" 1357 }] 1358 }, { 1359 "elementType": "labels.text.stroke", 1360 "stylers": [{ 1361 "color": "#f5f5f5" 1362 }] 1363 }, { 1364 "featureType": "administrative.land_parcel", 1365 "elementType": "labels.text.fill", 1366 "stylers": [{ 1367 "color": "#bdbdbd" 1368 }] 1369 }, { 1370 "featureType": "poi", 1371 "elementType": "geometry", 1372 "stylers": [{ 1373 "color": "#eeeeee" 1374 }] 1375 }, { 1376 "featureType": "poi", 1377 "elementType": "labels.text.fill", 1378 "stylers": [{ 1379 "color": "#757575" 1380 }] 1381 }, { 1382 "featureType": "poi.park", 1383 "elementType": "geometry", 1384 "stylers": [{ 1385 "color": "#e5e5e5" 1386 }] 1387 }, { 1388 "featureType": "poi.park", 1389 "elementType": "labels.text.fill", 1390 "stylers": [{ 1391 "color": "#9e9e9e" 1392 }] 1393 }, { 1394 "featureType": "road", 1395 "elementType": "geometry", 1396 "stylers": [{ 1397 "color": "#ffffff" 1398 }] 1399 }, { 1400 "featureType": "road.arterial", 1401 "elementType": "labels.text.fill", 1402 "stylers": [{ 1403 "color": "#757575" 1404 }] 1405 }, { 1406 "featureType": "road.highway", 1407 "elementType": "geometry", 1408 "stylers": [{ 1409 "color": "#dadada" 1410 }] 1411 }, { 1412 "featureType": "road.highway", 1413 "elementType": "labels.text.fill", 1414 "stylers": [{ 1415 "color": "#616161" 1416 }] 1417 }, { 1418 "featureType": "road.local", 1419 "elementType": "labels.text.fill", 1420 "stylers": [{ 1421 "color": "#9e9e9e" 1422 }] 1423 }, { 1424 "featureType": "transit.line", 1425 "elementType": "geometry", 1426 "stylers": [{ 1427 "color": "#e5e5e5" 1428 }] 1429 }, { 1430 "featureType": "transit.station", 1431 "elementType": "geometry", 1432 "stylers": [{ 1433 "color": "#eeeeee" 1434 }] 1435 }, { 1436 "featureType": "water", 1437 "elementType": "geometry", 1438 "stylers": [{ 1439 "color": "#c9c9c9" 1440 }] 1441 }, { 1442 "featureType": "water", 1443 "elementType": "labels.text.fill", 1444 "stylers": [{ 1445 "color": "#9e9e9e" 1446 }] 1447 }]; 1448 1449 /* 1450 * new_map 1451 * 1452 * This function will render a Google Map onto the selected jQuery element 1453 * 1454 */ 1455 1456 function new_map($el) { 1457 1458 // var 1459 var $markers = $el.find('.marker'); 1460 1461 // vars 1462 var args = { 1463 zoom: 4, 1464 mapTypeId: google.maps.MapTypeId.ROADMAP, 1465 scrollwheel: false, 1466 gestureHandling: 'cooperative', 1467 styles: mapStyles, 1468 minZoom: 3, 1469 maxZoom: 10, 1470 mapTypeControl: false, 1471 streetViewControl: false, 1472 rotateControl: false 1473 }; 1474 1475 // create map 1476 var map = new google.maps.Map($el[0], args); 1477 1478 var oms = new OverlappingMarkerSpiderfier(map, { 1479 markersWontMove: true, 1480 markersWontHide: true, 1481 basicFormatEvents: true 1482 }); 1483 1484 // add a markers reference 1485 map.markers = []; 1486 1487 // add markers 1488 $markers.each(function () { 1489 1490 add_marker($(this), map, oms); 1491 }); 1492 1493 var initialCenter = [{ lat: 49.976520, lng: 43.759523 }]; 1494
1495 if (window.globalContext.isMobile) { 1496 initialCenter = [{ lat: 47.568704, lng: 7.407236 }]; 1497 } 1498 1499 center_map(map); 1500 1501 initAssistance(map); 1502 1503 //console.log("Zoom Value on new_map", map.getZoom()); 1504 1505 // return 1506 return map; 1507 } 1508 1509 /* 1510 * add_marker 1511 * 1512 * This function will add a marker to the selected Google Map 1513 * 1514 * 1515 */ 1516 1517 function add_marker($marker, map) { 1518 var oms = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; 1519 1520 1521 // CHANGE THIS TO CHANGE MAP MARKERs AND CLUSTERS ICONS 1522 var markerIcon = window.globalContext.themePath + '/resources/assets/vectors/map-markers/custom-marker.svg', 1523 latlng = new google.maps.LatLng($marker.attr('data-lat'), $marker.attr('data-lng')), 1524 types = $marker.attr('data-loc-type').split(','), 1525 markerSize = 25; 1526 1527 types.forEach(function (el, i) { 1528 // IF IS A DISTRIBUTOR 1529 if (el == '333') { 1530 markerIcon = window.globalContext.themePath + '/resources/assets/vectors/map-markers/distributor-marker.svg'; 1531 markerSize = 20; 1532 } 1533 }); 1534 1535 // icon options 1536 var iconOptions = { 1537 url: markerIcon, 1538 size: new google.maps.Size(markerSize, markerSize), 1539 scaledSize: new google.maps.Size(markerSize, markerSize) // makes SVG icons work in IE 1540 1541 1542 // create marker 1543 };var marker = new google.maps.Marker({ 1544 position: latlng, 1545 map: map, 1546 optimized: false, 1547 icon: iconOptions 1548 }); 1549 1550 // add to array 1551 map.markers.push(marker); 1552 map.lastOpenedIw = ''; 1553 1554 // if marker contains HTML, add it to an infoWindow 1555 if ($marker.html()) { 1556 // create info window 1557 var infowindow = new google.maps.InfoWindow({ 1558 content: $marker.html() 1559 }); 1560 1561 google.maps.event.addListener(infowindow, 'closeclick', function () { 1562 if (window.matchMedia('(max-width: 991px)').matches) { 1563 return; 1564 } 1565 1566 // Simulate the click on the button that toggles the 1567 // assistance details block 1568 var assistanceTriggerEl = document.getElementById('assistance-trigger'); 1569 1570 if (assistanceTriggerEl) { 1571 assistanceTriggerEl.click(); 1572 } 1573 }); 1574 1575 // save for later (clusters) 1576 marker.info = infowindow; 1577 1578 if (oms) { 1579 1580 google.maps.event.addListener(marker, 'spider_click', function (e) { 1581 // CLOSE OPENED INFOWINDOWS 1582 if (map.lastOpenedIw) { 1583 map.lastOpenedIw.close(); 1584 } else if (!window.matchMedia('(max-width: 991px)').matches) { 1585 // Simulate the click on the button that toggles the 1586 // assistance details block 1587 var assistanceTriggerEl = document.getElementById('assistance-trigger'); 1588 1589 if (assistanceTriggerEl) { 1590 assistanceTriggerEl.click(); 1591 } 1592 } 1593 1594 infowindow.open(map, marker); 1595 1596 // SAVE REFERENCE TO CURRENTLY OPENED INFOWINDOW 1597 map.lastOpenedIw = infowindow; 1598 1599 // DISABLE HEADER FOR UX 1600 $('body.home').addClass('map-focus-mode'); 1601 }); 1602 1603 oms.addMarker(marker); 1604 } else { 1605 // show info window when marker is clicked 1606 google.maps.event.addListener(marker, 'click', function () { 1607 1608 // CLOSE OPENED INFOWINDOWS 1609 if (map.lastOpenedIw) { 1610 map.lastOpenedIw.close(); 1611 } 1612 1613 infowindow.open(map, marker); 1614 1615 // SAVE REFERENCE TO CURRENTLY OPENED INFOWINDOW 1616 map.lastOpenedIw = infowindow; 1617 1618 // DISABLE HEADER FOR UX 1619 $('body.home').addClass('map-focus-mode'); 1620 }); 1621 } 1622 } 1623 } 1624 1625 /** 1626 * document ready 1627 * 1628 * This function will render each map when the document is ready (page has loaded) 1629 * 1630 * 1631 */ 1632 1633 var map = null; 1634 1635 $(document).ready(function () { 1636 1637 $('.map-canvas').each(function () { 1638 1639 // create map 1640 map = new_map($(this)); 1641 1642 //console.log("Zoom Value on Ready ", map.getZoom()); 1643 }); 1644 1645 /*$('.videoModal').each(function () { 1646 $(this).fadeToggle(); 1647 });*/ 1648 1649 $("#menu-quicklinksen li.industry-menu a").each(function () { 1650 $(this).attr("href", "javascript:void(0)"); 1651 }); 1652 }); 1653 1654 window.globalContext.nidecMap = map; 1655 }; 1656 1657 mapsReady.initializer = true; 1658 initMap();
1659 1660 /** 1661 * 1662 * 1663 * Quick Assistance Dropdown 1664 * 1665 */ 1666 1667 function initAssistance(map) { 1668 1669 var $dropdownAssistance = $('#dropdown-assistance'), 1670 $resizingContainer = $('.resizing-container'), 1671 assistanceHeight = $resizingContainer.height(), 1672 $assistanceTrigger = $('.toggle-assistance'); 1673 1674 $('#country-select').addClass('select-ready'); 1675 1676 if ($dropdownAssistance.length && $assistanceTrigger.length) { 1677 1678 // --- HIDINGMAP 1679 $resizingContainer.height(0); 1680 1681 // REVEALING MAP 1682 $assistanceTrigger.get(0).addEventListener('click', function () { 1683 1684 if (!$dropdownAssistance.hasClass('open')) { 1685 $dropdownAssistance.addClass('open'); 1686 1687 $resizingContainer.height(assistanceHeight); 1688 1689 setTimeout(function () { 1690 google.maps.event.trigger(map, 'resize'); 1691 center_map(map); 1692 }, 500); 1693 } else { 1694 $('#country-select').val('default'); 1695 $resizingContainer.height(0); 1696 $dropdownAssistance.removeClass('open'); 1697 $dropdownAssistance.removeClass('ac-selected'); 1698 $('.selected-assistance-center').removeClass('selected-assistance-center'); 1699 } 1700 }); 1701 } else { 1702 1703 // --- CASE ASSISTANCE BLOCK IS NOT DROPDOWN 1704 $resizingContainer.height(assistanceHeight); 1705 } 1706 1707 $(document).on('change', '#country-select', function () { 1708 var $currentSelectedAC = $('.selected-assistance-center'); 1709 1710 if ($currentSelectedAC.length) { 1711 $currentSelectedAC.removeClass('selected-assistance-center'); 1712 } 1713 1714 var target = $('#country-select').val(); 1715 $currentSelectedAC = $('[data-assistance-center=' + target + ']'); 1716 1717 // CLASS THAT STATES ASSISTANCE AS ACTIVE/INACTIVE 1718 var $assistanceBlockContainer = $dropdownAssistance.length ? $dropdownAssistance : $('#assistance-block'); 1719 1720 if (target != 'default') { 1721 $assistanceBlockContainer.addClass('ac-selected'); 1722 $currentSelectedAC.addClass('selected-assistance-center'); 1723 } else { 1724 $assistanceBlockContainer.removeClass('ac-selected'); 1725 } 1726 1727 var $currentSelectedChildren = $currentSelectedAC.find('.single-center-location'); 1728 1729 // CALCULATE NEW HEIGHT 1730 var currentSelectedACHeight = 0; 1731 1732 $currentSelectedChildren.each(function () { 1733 currentSelectedACHeight = currentSelectedACHeight + $(this).outerHeight(true); 1734 }); 1735 1736 // RESIZE CONTAINER 1737 if ($resizingContainer.length) { 1738 1739 $resizingContainer.height(assistanceHeight + currentSelectedACHeight); 1740 1741 // NO FLEXBOX FALLBACK 1742 if (!_modernizr2.default.flexbox) { 1743 setTimeout(function () { 1744 flexRefresh(); 1745 }, 200); 1746 } 1747 } 1748 1749 // CALCULATE NEW MAP CENTER 1750 var $pins = $('[data-map-coordinates]', $currentSelectedAC); 1751 1752 var coordinates = []; 1753 1754 $pins.each(function () { 1755 1756 var currentCoords = $(this).data('map-coordinates'); 1757 var splitCoords = currentCoords.split(','); 1758 1759 var currentlatLng = new google.maps.LatLng(parseFloat(splitCoords[0]), parseFloat(splitCoords[1])); 1760 1761 coordinates.push(currentlatLng); 1762 }); 1763 1764 // MAP REFRESH 1765 if (target != 'default') { 1766 // / ACTIVATION OF THE ASSISTANCE CENTER 1767 setTimeout(function () { 1768 1769 google.maps.event.trigger(map, 'resize'); 1770 map.fitBounds(map.getBounds()); 1771 center_map(map, coordinates); 1772 map.setZoom(4); 1773 }, 500); 1774 } else { 1775 1776 // RESET MAP 1777 setTimeout(function () { 1778 1779 google.maps.event.trigger(map, 'resize'); 1780 map.fitBounds(map.getBounds()); 1781 center_map(map); 1782 map.setZoom(4); 1783 }, 500); 1784 } 1785 }); 1786 } 1787 1788 /** 1789 * GOOGLE ANALYTICS EVENTS 1790 */ 1791 function shuntGAEvents() { 1792 switch (window.globalContext.lang) { 1793 case 'it': 1794 __gaTracker('send', 'event', 'Contact Form', 'Submit', 'Italian'); 1795 break; 1796 case 'de': 1797 __gaTracker('send', 'event', 'Contact Form', 'Submit', 'German'); 1798 break; 1799 case 'fr': 1800 __gaTracker('send', 'event', 'Contact Form', 'Submit', 'French'); 1801 break; 1802 case 'ru': 1803 __gaTracker('send', 'event', 'Contact Form', 'Submit', 'Russian'); 1804 break; 1805 default: 1806 __gaTracker('send', 'event', 'Contact Form', 'Submit', 'English'); 1807 break; 1808 } 1809 } 1810 1811 $('.wpcf7').on('wpcf7:submit', shuntGAEvents); 1812 1813 /** 1814 * 1815 * WINDOW RESIZE EVENT MANAGEMENT 1816 * 1817 **/ 1818 1819 var rtime, 1820 timeout = false, 1821 delta = 200, 1822 rszend = new CustomEvent('rszend'); 1823 1824 $(window).resize(function () { 1825 rtime = new Date(); 1826 if (timeout === false) { 1827 timeout = true; 1828 setTimeout(resizeend, delta); 1829 } 1830 }); 1831 1832 function resizeend() { 1833 if (new Date() - rtime < delta) { 1834 setTimeout(resizeend, delta); 1835 } else { 1836 timeout = false; 1837 window.dispatchEvent(rszend); 1838 } 1839 } 1840 1841 /** 1842 * 1843 * FLEXBOX FALLBACK 1844 * 1845 **/ 1846 1847 function flexRefresh() { 1848 1849 var $flexContainer = $('.flex'); 1850 1851 $flexContainer.each(function () { 1852 1853 var $flexChildren = $(this).children(), 1854 tallestHeight = 0; 1855 1856 $flexChildren.removeAttr('style'); 1857 1858 $flexChildren.each(function () { 1859 1860 var currentHeight = $(this).height(); 1861 1862 if (currentHeight > tallestHeight) { 1863 tallestHeight = currentHeight; 1864 } 1865 }); 1866 1867 $flexChildren.height(tallestHeight); 1868 }); 1869 } 1870 1871 if (!_modernizr2.default.flexbox) { 1872 flexRefresh();
1873 window.addEventListener('rszend', flexRefresh); 1874 1875 flexRefresh(); 1876 } 1877 } 1878}; 1879/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(0))) 1880 1881/***/ }), 1882/* 14 */ 1883/***/ (function(module, exports, __webpack_require__) { 1884 1885"use strict"; 1886 1887 1888Object.defineProperty(exports, "__esModule", { 1889 value: true 1890}); 1891exports.default = { 1892 init: function init() {}, 1893 finalize: function finalize() { 1894 // JavaScript to be fired on all pages, after page specific JS is fired 1895 } 1896}; 1897 1898/***/ }), 1899/* 15 */ 1900/***/ (function(module, exports, __webpack_require__) { 1901 1902"use strict"; 1903/* WEBPACK VAR INJECTION */(function($) { 1904 1905Object.defineProperty(exports, "__esModule", { 1906 value: true 1907}); 1908 1909__webpack_require__(2); 1910 1911__webpack_require__(1); 1912 1913exports.default = { 1914 init: function init() { 1915 $('html').imagesLoaded(function () { 1916 $('.prod-gallery').lightSlider({ 1917 item: 1, 1918 auto: true, 1919 loop: true, 1920 speed: 900, 1921 pause: 5000, 1922 pauseOnHover: true, 1923 slideMove: 1, 1924 controls: false, 1925 enableDrag: false, 1926 mode: 'fade', 1927 onSliderLoad: function onSliderLoad(el) { 1928 $('.lslide').css({ 'height': '100%' }); 1929 } 1930 }); 1931 1932 $('.highlights-slider').lightSlider({ 1933 item: 1, 1934 auto: true, 1935 loop: true, 1936 speed: 900, 1937 pause: 5000, 1938 pauseOnHover: true, 1939 slideMove: 1, 1940 slideMargin: 0, 1941 controls: false, 1942 enableDrag: false, 1943 onSliderLoad: function onSliderLoad(el) { 1944 var $prev = $(el).parents('.product-highlight').find('.controls .prev'); 1945 var $next = $(el).parents('.product-highlight').find('.controls .next'); 1946 1947 $prev.click(function () { 1948 el.goToPrevSlide(); 1949 }); 1950 1951 $next.click(function () { 1952 el.goToNextSlide(); 1953 }); 1954 } 1955 }); 1956 }); 1957 1958 var $sliderCaseStudies = $('#slider-case-studies'); 1959 var caseStudiesItems = $sliderCaseStudies.find('.case-study').length; 1960 1961 $sliderCaseStudies.lightSlider({ 1962 item: 1, 1963 auto: true, 1964 loop: $sliderCaseStudies > 1, 1965 speed: 900, 1966 pause: 5000, 1967 pauseOnHover: true, 1968 slideMove: 1, 1969 controls: false, 1970 enableDrag: false, 1971 slideMargin: 0, 1972 onSliderLoad: function onSliderLoad(el) { 1973 var $prev = $(el).parents('#related-case-studies').find('.controls .prev'); 1974 var $next = $(el).parents('#related-case-studies').find('.controls .next'); 1975 1976 $prev.click(function () { 1977 el.goToPrevSlide(); 1978 }); 1979 1980 $next.click(function () { 1981 el.goToNextSlide(); 1982 }); 1983 } 1984 }); 1985 1986 var $sliderNews = $('#slider-market-news'); 1987 var newsItems = $sliderNews.find('.case-study').length; 1988 1989 $sliderNews.lightSlider({ 1990 item: 1, 1991 auto: true, 1992 loop: $sliderNews > 1, 1993 speed: 900, 1994 pause: 5000, 1995 pauseOnHover: true, 1996 slideMove: 1, 1997 controls: false, 1998 enableDrag: false, 1999 slideMargin: 0, 2000 onSliderLoad: function onSliderLoad(el) { 2001 var $prev = $(el).parents('#related-case-studies').find('.controls .prev'); 2002 var $next = $(el).parents('#related-case-studies').find('.controls .next'); 2003 2004 $prev.click(function () { 2005 el.goToPrevSlide(); 2006 }); 2007 2008 $next.click(function () { 2009 el.goToNextSlide(); 2010 }); 2011 } 2012 }); 2013 2014 // Special Products Js Inherited here 2015 2016 function smMinMediaListener(mediaQuery) { 2017 if (!mediaQuery.matches) {} 2018 } 2019 2020 var smMinMediaCheck = window.matchMedia('(max-width: 767px)'); 2021 smMinMediaCheck.addListener(smMinMediaListener); 2022 2023 smMinMediaListener(smMinMediaCheck); 2024 2025 /** 2026 * STICKY ANCHOR BAR 2027 **/ 2028 2029 var $anchorBar = $('.navigation-special-product'); 2030 var breakpointCheck = $(window).width() > 991; 2031 var $toggle = $('.toggle-menu'); 2032 2033 function calculatePositions() { 2034 var toggle = {}; 2035 toggle.r = $toggle.offset().left + $toggle.width(); 2036 2037 $anchorBar.css({ 2038 'right': $(window).width() - toggle.r - 15 2039 }); 2040 }; 2041 2042 if ($anchorBar.length) { 2043 2044 calculatePositions(); 2045 2046 $(window).on('resize', function () { 2047 breakpointCheck = $(window).width() > 991; 2048 2049 if (breakpointCheck) { 2050 calculatePositions(); 2051 } 2052 }); 2053 }; 2054 }, 2055 finalize: function finalize() { 2056 // JavaScript to be fired on all pages, after page specific JS is fired 2057 } 2058}; 2059/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 2060 2061/***/ }), 2062/* 16 */ 2063/***/ (function(module, exports, __webpack_require__) { 2064 2065"use strict"; 2066 2067 2068Object.defineProperty(exports, "__esModule", { 2069 value: true 2070}); 2071 2072var _jquery = __webpack_require__(0); 2073 2074var _jquery2 = _interopRequireDefault(_jquery); 2075 2076__webpack_require__(37); 2077 2078__webpack_require__(33); 2079 2080var _animejs = __webpack_require__(4); 2081 2082var _animejs2 = _interopRequireDefault(_animejs); 2083 2084var _systemIntegrationAnimation = __webpack_require__(3); 2085 2086var _systemIntegrationAnimation2 = _interopRequireDefault(_systemIntegrationAnimation); 2087 2088function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 2089 2090function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 2091 2092exports.default = {
2093 init: function init() { 2094 2095 var $body = (0, _jquery2.default)('body'); 2096 2097 var welcomeSlider = null; 2098 2099 var theta = null; 2100 2101 var thetaSliderEnabled = false; 2102 2103 var windowsHeight = (0, _jquery2.default)(window).height(); 2104 2105 (0, _jquery2.default)(window).resize(function () { 2106 windowsHeight = (0, _jquery2.default)(window).height(); 2107 }); 2108 2109 function checkMobile() { 2110 var smallWindow = (0, _jquery2.default)(window).width() < 768, 2111 mobileUserAgent = /Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent || navigator.vendor || window.opera); 2112 2113 if (smallWindow || mobileUserAgent) { 2114 return true; 2115 } else { 2116 return false; 2117 } 2118 } 2119 2120 function mobileMediaListener(mediaQuery) { 2121 if (mediaQuery.matches || checkMobile()) { 2122 (0, _jquery2.default)('.market-slide > a').off('click.markets-slider-item'); 2123 2124 if (welcomeSlider) { 2125 welcomeSlider.destroy(); 2126 } 2127 2128 _systemIntegrationAnimation2.default.play(); 2129 2130 if (thetaSliderEnabled) { 2131 theta.el.theta_carousel('destroy'); 2132 2133 thetaSliderEnabled = false; 2134 } 2135 2136 if ((0, _jquery2.default)('html').hasClass('fp-enabled')) { 2137 _jquery2.default.fn.fullpage.destroy('all'); 2138 } 2139 } else { 2140 (0, _jquery2.default)('.market-slide > a').on('click.markets-slider-item', function (e) { 2141 e.preventDefault(); 2142 }); 2143 2144 initThetaCarousel(); 2145 2146 // $('#main').fullpage({ 2147 // verticalCentered: false, 2148 // hybrid: true, 2149 // anchors: slidesAnchors, 2150 // menu: '#slides-nav ul', 2151 // fitToSection: false, 2152 // afterRender: function(){ 2153 // window.globalContext.fp = true; 2154 2155 // fpx.animateParallax('.fp-completely'); 2156 // theta.ticking(false); 2157 2158 // }, 2159 // onLeave: function(index, nextIndex, direction){ 2160 // // deactivating theta carousel on landing on its section 2161 // if( index == 3 ) { 2162 2163 // theta.ticking(false); 2164 2165 // }else if (index == 6 ){ 2166 2167 // // DISABLE MAP FOCUS AND INFOWINDOWS WHEN LEAVING CONTACTS SECTION 2168 // $body.removeClass('map-focus-mode'); 2169 2170 // if(window.globalContext.nidecMap.lastOpenedIw){ 2171 // window.globalContext.nidecMap.lastOpenedIw.close(); 2172 2173 // window.globalContext.nidecMap.lastOpenedIw = null; 2174 // } 2175 // } 2176 2177 // // Setting class to body based on scroll direction 2178 // if(direction === 'up'){ 2179 // $body.addClass('scrolling-up'); 2180 // }else{ 2181 // $body.addClass('scrolling-down'); 2182 // } 2183 2184 // // Parallax elements animations 2185 // fpx.animateParallax(nextIndex); 2186 2187 // // Blocking grids animation 2188 // $sectionList.eq(index-1).addClass('seen-once'); 2189 // }, 2190 // afterLoad: function(anchorLink, index){ 2191 2192 // // Delay for side menu animation 2193 // window.setTimeout(function(){ 2194 // $body.removeClass('scrolling-up scrolling-down'); 2195 // }, 200); 2196 2197 // fpx.setTranslate(); 2198 2199 // if(index === 2 ) { 2200 // theta.el.theta_carousel('moveTo', 0); 2201 // systemIntegrationAnimation.play(); 2202 // } 2203 2204 // if( index === 4 ) { 2205 // theta.el.theta_carousel('moveTo', 0); 2206 // } 2207 2208 // if(index === 3){ 2209 // theta.ticking(true); 2210 // theta.pickDescription(); 2211 // } 2212 // } 2213 // }); 2214 2215 if (!welcomeSlider) { 2216 welcomeSlider = (0, _jquery2.default)('#welcome-slider > ul').lightSlider({ 2217 item: 1, 2218 loop: true, 2219 auto: true, 2220 controls: false, 2221 pager: false, 2222 enableTouch: false, 2223 enableDrag: false, 2224 freeMove: false, 2225 mode: 'fade', 2226 slideMargin: 0, 2227 speed: 2000, 2228 pause: 4000 2229 }); 2230 } 2231 } 2232 } 2233 2234 var fpContainer = (0, _jquery2.default)('#main'), 2235 fpSections = (0, _jquery2.default)('.section'); 2236 2237 // FULLPAGE CUSTOM PARALLAX PLUGIN (!remember to create external module) 2238 var fpx = { 2239 container: fpContainer, 2240 sections: fpSections, 2241 parallaxes: fpContainer.find('[data-fpx]'), 2242 speed: 700, 2243 target: '.fp-completely', 2244 transform: function transform(x, y, scale) { 2245 (0, _jquery2.default)(this).css({ 2246 transform: scale + ' translate3d(' + x + ', ' + y + ', 0px)' 2247 }); 2248 }, 2249 setParallaxTransform: function setParallaxTransform(el) { 2250 var $el = (0, _jquery2.default)(el); 2251 var p, pX, pY, scale; 2252 2253 p = $el.attr('data-fpx') || '0'; 2254 pX = $el.attr('data-fpx-x'); 2255 pY = $el.attr('data-fpx-y'); 2256 scale = $el.attr('data-fpx-scale'); 2257 2258 if (pX || pY) { 2259 pX = pX || '0'; 2260 pY = pY || '0'; 2261 } else { 2262 pY = p; 2263 pX = '0'; 2264 } 2265 2266 if (scale) { 2267 scale = 'scale(' + scale + ')'; 2268 } else { 2269 scale = ''; 2270 } 2271 2272 if (pX.indexOf('%') >= 0) { 2273 pX = parseInt(pX, 10) + '%'; 2274 } else { 2275 pX = pX + 'px'; 2276 } 2277 if (pY.indexOf('%') >= 0) { 2278 pY = parseInt(pY, 10) + '%'; 2279 } else { 2280 pY = pY + 'px'; 2281 } 2282 2283 window.requestAnimationFrame(fpx.transform.bind($el, pX, pY, scale)); 2284 }, 2285 setTranslate: function setTranslate() { 2286 //RESET TRANSITIONS BEFORE RESETTING PARALLAX 2287 fpx.parallaxes.css({
2288 '-webkit-transition': 'transform 0s', 2289 '-o-transition': 'transform 0s', 2290 'transition': 'transform 0s' 2291 }); 2292 2293 fpx.sections.each(function () { 2294 if (!(0, _jquery2.default)(this).hasClass('active')) { 2295 var slide = (0, _jquery2.default)(this); 2296 slide.find('[data-fpx]').each(function () { 2297 fpx.setParallaxTransform(this); 2298 }); 2299 } 2300 }); 2301 }, 2302 setTransition: function setTransition() { 2303 var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; 2304 var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; 2305 var direction = arguments[2]; 2306 2307 2308 if (!target) { 2309 target = fpx.parallaxes; 2310 } 2311 2312 if (duration) { 2313 duration = fpx.speed / 1000; 2314 } 2315 2316 target.each(function () { 2317 var el = (0, _jquery2.default)(this); 2318 var parallaxDuration = parseInt(el.attr('data-fpx-duration'), 10) / 1000 || duration / 1000; 2319 if (duration === 0) parallaxDuration = 0; 2320 el.css({ 2321 '-webkit-transition': 'transform ' + parallaxDuration + 's', 2322 '-o-transition': 'transform ' + parallaxDuration + 's', 2323 'transition': 'transform ' + parallaxDuration + 's' 2324 }); 2325 }); 2326 }, 2327 animateParallax: function animateParallax(target, direction) { 2328 if (typeof target === 'string') { 2329 var $target = fpx.container.find(fpx.target + ' [data-fpx]'); 2330 } else if (typeof target === 'number') { 2331 var $target = fpx.sections.eq(target - 1).find('[data-fpx]'); 2332 } else { 2333 throw new Error('animateParallax parameter must be a slide number or a CSS selector'); 2334 } 2335 2336 fpx.setTransition($target, false, direction); 2337 $target.each(function () { 2338 var scale = (0, _jquery2.default)(this).attr('data-fpx-scale'); 2339 2340 if (scale) { 2341 scale = 'scale(' + scale + ')'; 2342 } else { 2343 scale = ''; 2344 } 2345 2346 window.requestAnimationFrame(fpx.transform.bind((0, _jquery2.default)(this), 0, 0, scale)); 2347 }); 2348 } 2349 }; 2350 2351 // FULLPAGE INITIALIZATION 2352 var slidesAnchors = [], 2353 $sectionList = (0, _jquery2.default)('.section'), 2354 $marketDescriptions = (0, _jquery2.default)('.market-description'); 2355 2356 (0, _jquery2.default)('#slides-nav a').each(function () { 2357 var href = (0, _jquery2.default)(this).attr('href'), 2358 cleanHref = href.substr(1); 2359 slidesAnchors.push(cleanHref); 2360 }); 2361 2362 fpx.setTranslate(); 2363 2364 function initThetaCarousel() { 2365 //Uncomment this to use theta carousel configurator! 2366 /*window.$ = jQuery;*/ 2367 2368 theta = { 2369 el: (0, _jquery2.default)('#markets-slider'), 2370 options: { 2371 enabled: true, 2372 selectedIndex: 3, 2373 distance: 33, 2374 numberOfElementsToDisplayRight: 2, 2375 numberOfElementsToDisplayLeft: 2, 2376 designedForHeight: windowsHeight, 2377 mousewheelEnabled: false, 2378 distanceInFallbackMode: 400, 2379 scaleX: 1.27, 2380 scaleY: 0.36, 2381 scaleZ: 0, 2382 path: { 2383 settings: { 2384 rotationAngleXY: 96, 2385 rotationAngleZX: 40, 2386 a: 1000, 2387 b: 50, 2388 endless: true 2389 }, 2390 type: 'ellipse' 2391 }, 2392 perspective: 10000, 2393 sensitivity: 0.3, 2394 verticalRotation: true, 2395 autorotationPause: 3000, 2396 gesturesEnabled: true, 2397 fadeAway: true, 2398 fadeAwayNumberOfConfigurableElements: 3, 2399 fadeAwayBezierPoints: { 2400 p1: { 2401 x: 0, 2402 y: 100 2403 }, 2404 p2: { 2405 x: 50, 2406 y: 50 2407 }, 2408 p3: { 2409 x: 50, 2410 y: 50 2411 }, 2412 p4: { 2413 x: 100, 2414 y: 0 2415 } 2416 }, 2417 sizeAdjustment: true, 2418 sizeAdjustmentBezierPoints: { 2419 p1: { 2420 x: 0, 2421 y: 83 2422 }, 2423 p2: { 2424 x: 1, 2425 y: 43 2426 }, 2427 p3: { 2428 x: 31, 2429 y: 0 2430 }, 2431 p4: { 2432 x: 100, 2433 y: 0 2434 } 2435 } 2436 }, 2437 ticking: function ticking(enable) { 2438 // AUTOROTATION AND DRAG IS NOT POSSIBLE AT THE SAME TIME ( faking autorotation ) 2439 2440 if (enable) { 2441 2442 theta.ticker = window.setTimeout(function () { 2443 theta.el.theta_carousel('moveForward'); 2444 }, theta.el.theta_carousel('option', 'autorotationPause')); 2445 } else { 2446 2447 window.clearTimeout(theta.ticker); 2448 } 2449 }, 2450 ticker: '', 2451 tickerEnabled: false, 2452 pickDescription: function pickDescription() { 2453 2454 (0, _jquery2.default)('.current-description').removeClass('current-description'); 2455 var nextSlug = (0, _jquery2.default)('.market-slide.theta-current-item').data('market-slide'); 2456 (0, _jquery2.default)('[data-market-description="' + nextSlug + '"]').addClass('current-description'); 2457 } 2458 }; 2459 2460 theta.el.theta_carousel(theta.options); 2461 2462 theta.el.on('motionStart', function (e, data) { 2463 // STOP TIMER 2464 theta.ticking(false); 2465 2466 (0, _jquery2.default)('.current-description').removeClass('current-description'); 2467 }); 2468 2469 theta.el.on('motionEnd', function (e, data) { 2470 // START TIMER 2471 theta.ticking(true); 2472 theta.pickDescription(); 2473 }); 2474 2475 (0, _jquery2.default)('#markets .section-hero, #markets .market-slide').on('mouseenter', function () { 2476 // STOP TIMER 2477 theta.ticking(false); 2478 }); 2479 2480 (0, _jquery2.default)('#markets .section-hero, #markets .market-slide').on('mouseleave', function () { 2481 // START TIMER 2482 theta.ticking(true); 2483 }); 2484 2485 thetaSliderEnabled = true; 2486 } 2487 2488 /** 2489 * 2490 * Markets slider descriptions on mobile 2491 * 2492 */ 2493 2494 function initDescMarket() { 2495 var $slider = (0, _jquery2.default)('#markets-slider-descriptions'), 2496 $slides = $slider.children(), 2497 tallestHeight = 0; 2498 2499 $slides.removeAttr('style'); 2500 $slider.addClass('initializing'); 2501 2502 $slides.each(function () { 2503 2504 var currentHeight = (0, _jquery2.default)(this).height(); 2505 2506 if (currentHeight > tallestHeight) { 2507 tallestHeight = currentHeight; 2508 } 2509 }); 2510 2511 $slider.height(tallestHeight); 2512 $slider.removeClass('initializing'); 2513 } 2514 2515 /** 2516 * 2517 * SMALL SCREENS MAP MANAGEMENT 2518 * 2519 */ 2520 2521 // var mapSection = { 2522 // el : document.getElementById('contacts'), 2523 // map : document.getElementsByClassName('map-canvas')[0], 2524 // mapTrigger : document.getElementById('assistance-close'), 2525 // overlay : document.getElementsByClassName('overlay')[0], 2526 // assBlock : document.getElementsByClassName('assistance-col')[0].getElementsByClassName('vertical-align')[0], 2527 // assTrigger : document.getElementById('assistance-trigger'), 2528 // mapInFocus : false, 2529 // animateOut : function(){ 2530 // var timeline = anime.timeline(); 2531 2532 // timeline.add({ 2533 // targets: mapSection.assBlock, 2534 // translateY: ['0%', '100%'], 2535 // opacity: 0, 2536 // duration: 600, 2537 // easing: 'easeInOutQuart', 2538 // }).add({ 2539 // targets: mapSection.assTrigger, 2540 // translateY: ['200%', '0%'], 2541 // translateX: ['20%', '20%'], 2542 // opacity: 1, 2543 // duration: 600, 2544 // offset: '-=300', 2545 // easing: 'easeInOutQuart', 2546 // }).add({ 2547 // targets: mapSection.overlay, 2548 // opacity: 0, 2549 // duration: 300, 2550 // offset: '-=600', 2551 // easing: 'easeInOutQuart', 2552 // }); 2553 2554 // timeline.complete = function(){ 2555 // $(mapSection.el).addClass('map-in-focus'); 2556 // }; 2557 // }, 2558 // animateIn : function(){ 2559 // var timeline = anime.timeline(); 2560 2561 // timeline.add({ 2562 // targets: mapSection.assTrigger, 2563 // translateY: ['0%', '200%'], 2564 // translateX: ['20%', '20%'], 2565 // opacity: 0, 2566 // duration: 600, 2567 // easing: 'easeInOutQuart', 2568 // }).add({ 2569 // targets: mapSection.overlay, 2570 // opacity: '.2', 2571 // duration: 300, 2572 // offset: '-=300', 2573 // easing: 'easeInOutQuart', 2574 // }).add({ 2575 // targets: mapSection.assBlock, 2576 // translateY: ['100%', '0%'], 2577 // opacity: 1, 2578 // duration: 600, 2579 // offset: '-=300', 2580 // easing: 'easeInOutQuart', 2581 // }); 2582 2583 // timeline.begin = function(){ 2584 // $(mapSection.el).removeClass('map-in-focus'); 2585 // }; 2586 // }, 2587 // }; 2588 2589 // function toggleMap(){ 2590 2591 // if(mapSection.mapInFocus){ 2592 2593 // mapSection.animateIn(); 2594 2595 // if (window.globalContext.nidecMap.lastOpenedIw) { 2596 // window.globalContext.nidecMap.lastOpenedIw.close(); 2597 2598 // window.globalContext.nidecMap.lastOpenedIw = null; 2599 // } 2600 2601 // mapSection.mapInFocus = false; 2602 // }else{ 2603 2604 // mapSection.animateOut(); 2605 2606 // mapSection.mapInFocus = true; 2607 // } 2608 // } 2609 2610 // $(mapSection.mapTrigger).click( toggleMap ); 2611 // $(mapSection.assTrigger).click( toggleMap ); 2612 2613 2614 function mdMinMediaListener(mediaQuery) { 2615 2616 if (mediaQuery.matches) { 2617 if (window.globalContext.nidecMap.lastOpenedIw) { 2618 window.globalContext.nidecMap.lastOpenedIw.close(); 2619 2620 window.globalContext.nidecMap.lastOpenedIw = null; 2621 } 2622 2623 // if(mapSection.mapInFocus){ 2624 // mapSection.animateIn(); 2625 // } 2626 } else { 2627 if (window.globalContext.nidecMap.lastOpenedIw) { 2628 window.globalContext.nidecMap.lastOpenedIw.close(); 2629 2630 window.globalContext.nidecMap.lastOpenedIw = null; 2631 } 2632 2633 // if(mapSection.mapInFocus){ 2634 // mapSection.animateIn(); 2635 // } 2636 } 2637 }; 2638 function addMapcustom() { 2639 (0, _jquery2.default)('.open-map-home').on('click', function () { 2640 (0, _jquery2.default)('.custom-map').addClass('active'); 2641 (0, _jquery2.default)('.open-map-home').addClass('deactive'); 2642 (0, _jquery2.default)('.close-map-home').addClass('active'); 2643 }); 2644 (0, _jquery2.default)('.close-map-home').on('click', function () { 2645 (0, _jquery2.default)('.custom-map').removeClass('active'); 2646 (0, _jquery2.default)('.open-map-home').removeClass('deactive'); 2647 (0, _jquery2.default)('.close-map-home').removeClass('active'); 2648 }); 2649 } 2650 addMapcustom(); 2651 2652 function scrollHorizontalHome() { 2653 new ScrollBooster({ 2654 viewport: document.querySelector('#new-news'), 2655 content: document.querySelector('#home-news-container'), 2656 scrollMode: 'transform',
2657 direction: 'horizontal' 2658 }); 2659 // const outsider = document.getElementById('home-news-container'); 2660 // const distance = 200; 2661 // $('#scroll-button').on('click', function () { 2662 // console.log('hai cliccato') 2663 // outsider.scrollBy({ 2664 // left: distance, 2665 // behavior: 'smooth' 2666 // }); 2667 // }); 2668 } 2669 scrollHorizontalHome(); 2670 2671 function sliderNews() { 2672 var carousel = document.querySelector('.carousel[data-carousel="news-slider"]'); 2673 var swiper = new Swiper(carousel, { 2674 slidesPerView: 1, 2675 breakpoints: { 2676 // when window width is <= 499px 2677 600: { 2678 slidesPerView: 2, 2679 spaceBetweenSlides: 20 2680 } 2681 }, 2682 pagination: { 2683 el: ".swiper-pagination-news", 2684 clickable: true, 2685 dynamicBullets: true 2686 }, 2687 navigation: { 2688 nextEl: ".swiper-button-next", 2689 prevEl: ".swiper-button-prev" 2690 } 2691 }); 2692 }; 2693 2694 var mq = window.matchMedia("(max-width: 1000px)"); 2695 if (mq.matches) { 2696 document.querySelector('#new-news.desktop-version').remove(); 2697 sliderNews(); 2698 } else { 2699 document.querySelector('#new-news.mobile-version').remove(); 2700 } 2701 2702 sliderProducts(); 2703 function sliderProducts() { 2704 var _ref; 2705 2706 var carousel = document.querySelector('.carousel[data-carousel="products-slider"]'); 2707 var swiper = new Swiper(carousel, (_ref = { 2708 slidesPerView: 1, 2709 centeredSlides: true, 2710 spaceBetween: 15, 2711 loop: true 2712 }, _defineProperty(_ref, 'centeredSlides', true), _defineProperty(_ref, 'breakpoints', { 2713 769: { 2714 slidesPerView: 3, 2715 spaceBetween: 20, 2716 centeredSlides: false, 2717 navigation: { 2718 nextEl: ".swiper-button-next", 2719 prevEl: ".swiper-button-prev" 2720 } 2721 } 2722 }), _defineProperty(_ref, 'navigation', { 2723 nextEl: ".swiper-button-next-mobile", 2724 prevEl: ".swiper-button-prev-mobile" 2725 }), _ref)); 2726 }; 2727 2728 sliderProducts(); 2729 2730 /** 2731 * 2732 * MEDIA QUERIES 2733 * 2734 * 2735 */ 2736 2737 var mobileMediaCheck = window.matchMedia('(max-width: 767px)'); 2738 mobileMediaCheck.addListener(mobileMediaListener); 2739 2740 mobileMediaListener(mobileMediaCheck); 2741 2742 var mdMinMediaCheck = window.matchMedia('(min-width: 992px)'); 2743 mdMinMediaCheck.addListener(mdMinMediaListener); 2744 2745 mdMinMediaListener(mdMinMediaCheck); 2746 }, 2747 finalize: function finalize() { 2748 // JavaScript to be fired on all pages, after page specific JS is fired 2749 } 2750}; 2751 2752/***/ }), 2753/* 17 */ 2754/***/ (function(module, exports, __webpack_require__) { 2755 2756"use strict"; 2757/* WEBPACK VAR INJECTION */(function($) { 2758 2759Object.defineProperty(exports, "__esModule", { 2760 value: true 2761}); 2762 2763__webpack_require__(2); 2764 2765__webpack_require__(1); 2766 2767exports.default = { 2768 init: function init() { 2769 $('html').imagesLoaded(function () { 2770 $('.prod-gallery').lightSlider({ 2771 item: 1, 2772 auto: true, 2773 loop: true, 2774 speed: 900, 2775 pause: 5000, 2776 pauseOnHover: true, 2777 slideMove: 1, 2778 controls: false, 2779 enableDrag: false, 2780 mode: 'fade', 2781 onSliderLoad: function onSliderLoad(el) { 2782 $('.lslide').css({ 'height': '100%' }); 2783 } 2784 }); 2785 2786 $('.highlights-slider').lightSlider({ 2787 item: 1, 2788 auto: true, 2789 loop: true, 2790 speed: 900, 2791 pause: 5000, 2792 pauseOnHover: true, 2793 slideMove: 1, 2794 slideMargin: 0, 2795 controls: false, 2796 enableDrag: false, 2797 onSliderLoad: function onSliderLoad(el) { 2798 var $prev = $(el).parents('.product-highlight').find('.controls .prev'); 2799 var $next = $(el).parents('.product-highlight').find('.controls .next'); 2800 2801 $prev.click(function () { 2802 el.goToPrevSlide(); 2803 }); 2804 2805 $next.click(function () { 2806 el.goToNextSlide(); 2807 }); 2808 } 2809 }); 2810 }); 2811 2812 var $sliderCaseStudies = $('#slider-case-studies'); 2813 var caseStudiesItems = $sliderCaseStudies.find('.case-study').length; 2814 2815 $sliderCaseStudies.lightSlider({ 2816 item: 1, 2817 auto: true, 2818 loop: $sliderCaseStudies > 1, 2819 speed: 900, 2820 pause: 5000, 2821 pauseOnHover: true, 2822 slideMove: 1, 2823 controls: false, 2824 enableDrag: false, 2825 slideMargin: 0, 2826 onSliderLoad: function onSliderLoad(el) { 2827 var $prev = $(el).parents('#related-case-studies').find('.controls .prev'); 2828 var $next = $(el).parents('#related-case-studies').find('.controls .next'); 2829 2830 $prev.click(function () { 2831 el.goToPrevSlide(); 2832 }); 2833 2834 $next.click(function () { 2835 el.goToNextSlide(); 2836 }); 2837 } 2838 }); 2839 2840 var $sliderNews = $('#slider-market-news'); 2841 var newsItems = $sliderNews.find('.case-study').length; 2842 2843 $sliderNews.lightSlider({ 2844 item: 1, 2845 auto: true, 2846 loop: $sliderNews > 1, 2847 speed: 900, 2848 pause: 5000, 2849 pauseOnHover: true, 2850 slideMove: 1, 2851 controls: false, 2852 enableDrag: false, 2853 slideMargin: 0, 2854 onSliderLoad: function onSliderLoad(el) { 2855 var $prev = $(el).parents('#related-case-studies').find('.controls .prev'); 2856 var $next = $(el).parents('#related-case-studies').find('.controls .next'); 2857 2858 $prev.click(function () { 2859 el.goToPrevSlide(); 2860 }); 2861 2862 $next.click(function () { 2863 el.goToNextSlide(); 2864 }); 2865 } 2866 }); 2867 2868 // Special Products Js Inherited here 2869 2870 function smMinMediaListener(mediaQuery) { 2871 if (!mediaQuery.matches) {} 2872 } 2873 2874 var smMinMediaCheck = window.matchMedia('(max-width: 767px)'); 2875 smMinMediaCheck.addListener(smMinMediaListener); 2876 2877 smMinMediaListener(smMinMediaCheck); 2878 2879 /** 2880 * STICKY ANCHOR BAR 2881 **/ 2882 2883 var $anchorBar = $('.navigation-special-product'); 2884 var breakpointCheck = $(window).width() > 991; 2885 var $toggle = $('.toggle-menu'); 2886 2887 function calculatePositions() { 2888 var toggle = {}; 2889 toggle.r = $toggle.offset().left + $toggle.width(); 2890 2891 $anchorBar.css({ 2892 'right': $(window).width() - toggle.r - 15 2893 }); 2894 }; 2895 2896 if ($anchorBar.length) { 2897 2898 calculatePositions(); 2899 2900 $(window).on('resize', function () { 2901 breakpointCheck = $(window).width() > 991; 2902 2903 if (breakpointCheck) { 2904 calculatePositions(); 2905 } 2906 }); 2907 }; 2908 }, 2909 finalize: function finalize() { 2910 // JavaScript to be fired on all pages, after page specific JS is fired 2911 } 2912}; 2913/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 2914 2915/***/ }), 2916/* 18 */ 2917/***/ (function(module, exports, __webpack_require__) { 2918 2919"use strict"; 2920/* WEBPACK VAR INJECTION */(function($) { 2921 2922Object.defineProperty(exports, "__esModule", { 2923 value: true 2924}); 2925 2926__webpack_require__(1); 2927 2928exports.default = {
2929 init: function init() { 2930 2931 var $body = $('body'); 2932 2933 $('#about-gallery').lightSlider({ 2934 item: 1, 2935 loop: true, 2936 slideMove: 1, 2937 controls: false, 2938 enableDrag: false, 2939 mode: 'fade' 2940 }); 2941 }, 2942 finalize: function finalize() { 2943 // JavaScript to be fired on all pages, after page specific JS is fired 2944 } 2945}; 2946/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 2947 2948/***/ }), 2949/* 19 */ 2950/***/ (function(module, exports, __webpack_require__) { 2951 2952"use strict"; 2953/* WEBPACK VAR INJECTION */(function($) { 2954 2955Object.defineProperty(exports, "__esModule", { 2956 value: true 2957}); 2958 2959__webpack_require__(5); 2960 2961var _mixitup = __webpack_require__(6); 2962 2963var _mixitup2 = _interopRequireDefault(_mixitup); 2964 2965function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 2966 2967exports.default = { 2968 init: function init() { 2969 2970 /** 2971 * MIXITUP FILTERS SETUP 2972 */ 2973 var mip = (0, _mixitup2.default)('.careers-grid', { 2974 animation: { 2975 effects: 'fade translateZ(-100px)', 2976 duration: 300 2977 } 2978 }); 2979 2980 var $filters = $('.nooo-filters'), 2981 $gridContainer = $('.filtered-grid'), 2982 emptySearch = false; 2983 2984 $filters.change(function (e) { 2985 if (emptySearch) { 2986 $gridContainer.removeClass('no-matches'); 2987 } 2988 2989 var selected = ''; 2990 var selectedAny = false; 2991 2992 $filters.each(function () { 2993 var $current = $(this); 2994 var target = $current.val(); 2995 2996 if (target != 'all') { 2997 selectedAny = true; 2998 var type = $current.data('filter-type'); 2999 selected += type + target; 3000 } 3001 }); 3002 3003 if (selectedAny) { 3004 mip.filter(selected).then(function (state) { 3005 3006 if (state.show.length == 0) { 3007 $gridContainer.addClass('no-matches'); 3008 emptySearch = true; 3009 } else { 3010 emptySearch = false; 3011 }; 3012 }); 3013 } else { 3014 3015 mip.filter('all'); 3016 } 3017 }); 3018 3019 /** 3020 * 3021 * 3022 * Privacy on Modal 3023 * 3024 */ 3025 3026 var privacyLabel = $('label.privacy').first(); 3027 var spanPrivacy = privacyLabel.find('span:first'); 3028 3029 // console.log("Before Privacy Checked"); 3030 // console.log("privacyLabel ", privacyLabel); 3031 // console.log("spanPrivacy ", spanPrivacy); 3032 3033 spanPrivacy.click(function () { 3034 var checkbox = $(this).find('input[type="checkbox"]'); 3035 //checkbox.prop('checked', !checkbox.prop('checked')); 3036 //checkbox.attr('checked', !checkbox.attr('checked')); 3037 //checkbox.attr('checked', 'checked'); 3038 checkbox.val('checked'); 3039 // console.log("Privacy Checked!!", checkbox); 3040 }); 3041 3042 /** 3043 * 3044 * 3045 * MODAL ACTIVATION 3046 * 3047 */ 3048 3049 var $jobModal = $('#job-modal'), 3050 $applyBtn = $('.btn-apply'), 3051 $modalTitle = $('#job-modal .job-title'), 3052 $modalContent = $('#job-modal .job-content'), 3053 $modalLocation = $('#job-modal .location'), 3054 $jobTitleInput = $('input.job-title'), 3055 $jobLocationInput = $('input.job-location'), 3056 $jobIdInput = $('input.job-id'), 3057 activeApplicationId = false; 3058 3059 $applyBtn.click(function () { 3060 activeApplicationId = $(this).parents('.single-application').data('job-id'); 3061 $jobModal.removeClass('invalid'); 3062 $jobModal.modal('show'); 3063 $('body').addClass('scroll-block'); 3064 }); 3065 3066 $jobModal.on('shown.bs.modal', function () { 3067 $.ajax({
3068 url: setup_job_modal.ajax_url, 3069 type: 'get', 3070 data: { 3071 action: 'fetch_job_data', 3072 post_id: activeApplicationId 3073 }, 3074 success: function success(response) { 3075 var data = ''; 3076 3077 try { 3078 data = JSON.parse(response); 3079 } catch (err) { 3080 3081 $jobModal.addClass('invalid'); 3082 console.log(response); 3083 console.log(err.message); 3084 } 3085 3086 $modalTitle.html(data.title); 3087 $modalContent.html(data.content); 3088 $modalLocation.html(data.location); 3089 $jobTitleInput.val(data.title); 3090 $jobLocationInput.val(data.location); 3091 $jobIdInput.val(activeApplicationId); 3092 $jobModal.removeClass('loading'); 3093 } 3094 }); 3095 }); 3096 3097 $jobModal.on('hidden.bs.modal', function () { 3098 $('body').removeClass('scroll-block'); 3099 $jobModal.addClass('loading'); 3100 }); 3101 }, 3102 finalize: function finalize() { 3103 // JavaScript to be fired on all pages, after page specific JS is fired 3104 } 3105}; 3106/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 3107 3108/***/ }), 3109/* 20 */ 3110/***/ (function(module, exports, __webpack_require__) { 3111 3112"use strict"; 3113 3114 3115Object.defineProperty(exports, "__esModule", { 3116 value: true 3117}); 3118exports.default = { 3119 init: function init() { 3120 // Seleziona tutti i bottoni delle certificazioni 3121 var certButtons = document.querySelectorAll('.certification-item'); 3122 3123 // Crea il modale una volta sola 3124 var modal = document.createElement('div'); 3125 modal.className = 'certification-modal'; 3126 modal.style.cssText = '\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.6);\n z-index: 1000;\n justify-content: center;\n align-items: center;\n '; 3127 3128 // Crea il contenitore dell'immagine 3129 var modalImg = document.createElement('img'); 3130 modalImg.className = 'certification-modal__image'; 3131 modalImg.style.cssText = '\n width: ' + (window.innerWidth < 768 ? '75vw' : '35vw') + ';\n height: auto;\n max-height: 90vh;\n max-width: 90vw;\n object-fit: contain;\n aspect-ratio: 1/1.414;\n pointer-events: none;\n '; 3132 3133 modal.appendChild(modalImg); 3134 document.body.appendChild(modal); 3135 3136 // Aggiungi event listener per ogni bottone 3137 certButtons.forEach(function (button) { 3138 button.addEventListener('click', function () { 3139 var pdfUrl = button.getAttribute('data-pdf'); 3140 modalImg.src = pdfUrl; 3141 modal.style.display = 'flex'; 3142 document.body.style.overflow = 'hidden'; 3143 }); 3144 }); 3145 3146 // Chiudi il modale quando si clicca fuori dall'immagine 3147 modal.addEventListener('click', function (e) { 3148 if (e.target === modal) { 3149 modal.style.display = 'none'; 3150 document.body.style.overflow = 'inherit'; 3151 } 3152 }); 3153 3154 // Aggiungi event listener per il resize della finestra 3155 window.addEventListener('resize', function () { 3156 modalImg.style.width = window.innerWidth < 768 ? '75vw' : '50vw'; 3157 }); 3158 } 3159}; 3160 3161/***/ }), 3162/* 21 */ 3163/***/ (function(module, exports, __webpack_require__) { 3164 3165"use strict"; 3166/* WEBPACK VAR INJECTION */(function($) { 3167 3168Object.defineProperty(exports, "__esModule", { 3169 value: true 3170}); 3171 3172__webpack_require__(5); 3173 3174var _mixitup = __webpack_require__(6); 3175 3176var _mixitup2 = _interopRequireDefault(_mixitup); 3177 3178function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3179 3180exports.default = { 3181 init: function init() { 3182 3183 /** 3184 * MIXITUP FILTERS SETUP 3185 */ 3186 var $selected = $('[selected]').parent('select'); 3187 var loadSelected = $selected.length ? $selected.data('filter-type') + $selected.val() : 'all'; 3188 3189 var mip = (0, _mixitup2.default)('.documents-grid', { 3190 animation: { 3191 effects: 'fade translateZ(-100px)', 3192 duration: 300 3193 }, 3194 load: { 3195 filter: loadSelected 3196 } 3197 }); 3198 3199 var $filters = $('.nooo-filters'), 3200 $gridContainer = $('.filtered-grid'), 3201 emptySearch = false; 3202 3203 $filters.change(function (e) { 3204 if (emptySearch) { 3205 $gridContainer.removeClass('no-matches'); 3206 } 3207 3208 var selected = ''; 3209 var selectedAny = false; 3210 3211 $filters.each(function () { 3212 var $current = $(this); 3213 var target = $current.val(); 3214 3215 if (target != 'all') { 3216 selectedAny = true; 3217 var type = $current.data('filter-type'); 3218 selected += type + target; 3219 } 3220 }); 3221 3222 if (selectedAny) { 3223 mip.filter(selected).then(function (state) { 3224 3225 if (state.show.length == 0) { 3226 $gridContainer.addClass('no-matches'); 3227 emptySearch = true; 3228 } else { 3229 emptySearch = false; 3230 }; 3231 }); 3232 } else { 3233 3234 mip.filter('all'); 3235 } 3236 }); 3237 }, 3238 finalize: function finalize() { 3239 // JavaScript to be fired on all pages, after page specific JS is fired 3240 } 3241}; 3242/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 3243 3244/***/ }), 3245/* 22 */ 3246/***/ (function(module, exports, __webpack_require__) { 3247 3248"use strict"; 3249/* WEBPACK VAR INJECTION */(function($) { 3250 3251Object.defineProperty(exports, "__esModule", { 3252 value: true 3253}); 3254exports.default = {
3255 init: function init() { 3256 3257 /** 3258 * HIDE NON AVAILABLE DOWNLOADS 3259 */ 3260 3261 (function hide_blocked_downloads() { 3262 var $downloadLinks = $('.wpdm-all-packages-table tr'); 3263 3264 if ($downloadLinks.length) { 3265 $downloadLinks.each(function () { 3266 3267 $(this).find('td').each(function () { 3268 if ($(this).text() === 'Permission Denied') { 3269 $(this).parents('tr').addClass('hidden'); 3270 } 3271 }); 3272 }); 3273 } 3274 })(); 3275 }, 3276 finalize: function finalize() { 3277 // JavaScript to be fired on all pages, after page specific JS is fired 3278 } 3279}; 3280/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 3281 3282/***/ }), 3283/* 23 */ 3284/***/ (function(module, exports, __webpack_require__) { 3285 3286"use strict"; 3287/* WEBPACK VAR INJECTION */(function($) { 3288 3289Object.defineProperty(exports, "__esModule", { 3290 value: true 3291}); 3292exports.default = { 3293 init: function init() { 3294 var $heroSection = $('#hero-section-service-new'); 3295 var $elements = $heroSection.find('.element h3'); 3296 3297 $elements.on('click', function () { 3298 var target = $(this).data('target'); 3299 $('[data-target-gallery]').removeClass('active'); 3300 $('[data-target-gallery=\'' + target + '\']').addClass('active'); 3301 $('body').css('overflow', 'hidden'); 3302 }); 3303 3304 $('[data-target-gallery]').on('click', function () { 3305 $('[data-target-gallery]').removeClass('active'); 3306 $('body').css('overflow', 'inherit'); 3307 }); 3308 3309 // Funzione per inizializzare la mappa 3310 function initializeMap() { 3311 var mapStyles = [{ 3312 "elementType": "geometry", 3313 "stylers": [{ 3314 "color": "#f5f5f5" 3315 }] 3316 }, { 3317 "elementType": "labels.icon", 3318 "stylers": [{ 3319 "visibility": "off" 3320 }] 3321 }, { 3322 "elementType": "labels.text.fill", 3323 "stylers": [{ 3324 "color": "#616161" 3325 }] 3326 }, { 3327 "elementType": "labels.text.stroke", 3328 "stylers": [{ 3329 "color": "#f5f5f5" 3330 }] 3331 }, { 3332 "featureType": "administrative.land_parcel", 3333 "elementType": "labels.text.fill", 3334 "stylers": [{ 3335 "color": "#bdbdbd" 3336 }] 3337 }, { 3338 "featureType": "poi", 3339 "elementType": "geometry", 3340 "stylers": [{ 3341 "color": "#eeeeee" 3342 }] 3343 }, { 3344 "featureType": "poi", 3345 "elementType": "labels.text.fill", 3346 "stylers": [{ 3347 "color": "#757575" 3348 }] 3349 }, { 3350 "featureType": "poi.park", 3351 "elementType": "geometry", 3352 "stylers": [{ 3353 "color": "#e5e5e5" 3354 }] 3355 }, { 3356 "featureType": "poi.park", 3357 "elementType": "labels.text.fill", 3358 "stylers": [{ 3359 "color": "#9e9e9e" 3360 }] 3361 }, { 3362 "featureType": "road", 3363 "elementType": "geometry", 3364 "stylers": [{ 3365 "color": "#ffffff" 3366 }] 3367 }, { 3368 "featureType": "road.arterial", 3369 "elementType": "labels.text.fill", 3370 "stylers": [{ 3371 "color": "#757575" 3372 }] 3373 }, { 3374 "featureType": "road.highway", 3375 "elementType": "geometry", 3376 "stylers": [{ 3377 "color": "#dadada" 3378 }] 3379 }, { 3380 "featureType": "road.highway", 3381 "elementType": "labels.text.fill", 3382 "stylers": [{ 3383 "color": "#616161" 3384 }] 3385 }, { 3386 "featureType": "road.local", 3387 "elementType": "labels.text.fill", 3388 "stylers": [{ 3389 "color": "#9e9e9e" 3390 }] 3391 }, { 3392 "featureType": "transit.line", 3393 "elementType": "geometry", 3394 "stylers": [{ 3395 "color": "#e5e5e5" 3396 }] 3397 }, { 3398 "featureType": "transit.station", 3399 "elementType": "geometry", 3400 "stylers": [{ 3401 "color": "#eeeeee" 3402 }] 3403 }, { 3404 "featureType": "water", 3405 "elementType": "geometry", 3406 "stylers": [{ 3407 "color": "#c9c9c9" 3408 }] 3409 }, { 3410 "featureType": "water", 3411 "elementType": "labels.text.fill", 3412 "stylers": [{ 3413 "color": "#9e9e9e" 3414 }] 3415 }]; 3416 var mapOptions = { 3417 zoom: 3, 3418 center: { lat: 41.8719, lng: 12.5674 }, 3419 mapTypeId: google.maps.MapTypeId.ROADMAP, 3420 styles: mapStyles, 3421 minZoom: 3 3422 }; 3423 3424 var map = new google.maps.Map(document.getElementById('map'), mapOptions); 3425 3426 var markerIcon = { 3427 url: window.globalContext.themePath + '/resources/assets/vectors/map-markers/custom-marker.svg', 3428 scaledSize: new google.maps.Size(25, 25), // dimensione del marker 3429 origin: new google.maps.Point(0, 0), 3430 anchor: new google.maps.Point(12.5, 12.5) // centro dell'icona (metàdella dimensione) 3431 }; 3432 3433 // Aggiungi i marker dalla div locations 3434 var locations = document.querySelectorAll('.location'); 3435 var markers = []; 3436 var infoWindows = []; 3437 3438 locations.forEach(function (location, index) { 3439 var lat = parseFloat(location.dataset.lat); 3440 var lng = parseFloat(location.dataset.lng); 3441 var title = location.dataset.title; 3442 var address = location.dataset.address; 3443 var phone = location.dataset.phone; 3444 var email = location.dataset.email; 3445 var link = location.dataset.link; 3446 3447 var marker = new google.maps.Marker({ 3448 position: { lat: lat, lng: lng }, 3449 map: map, 3450 title: title, 3451 icon: markerIcon, // aggiungiamo l'icona personalizzata 3452 address: address, 3453 phone: phone, 3454 email: email, 3455 link: link 3456 }); 3457 3458 var contentString = '\n <div class="info-window">\n <h4>' + title + '</h4>\n <div class="result-text">\n <p style="text-align:left;">
3458' + (address || '') + '</p>\n ' + (phone ? '<a href="tel:' + phone + '"><svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M2.41406 1.38265C2.54529 1.25161 2.70286 1.14995 2.87634 1.08442C3.04982 1.01889 3.23525 0.990985 3.42033 1.00255C3.60541 1.0141 3.78593 1.06487 3.94991 1.15148C4.11389 1.23808 4.25759 1.35855 4.3715 1.5049L5.71771 3.23448C5.96445 3.55174 6.05145 3.96501 5.95395 4.35503L5.54371 5.99761C5.52265 6.08269 5.52387 6.17177 5.54725 6.25624C5.57063 6.34072 5.61539 6.41774 5.67721 6.47988L7.5199 8.32271C7.58211 8.38466 7.65925 8.42949 7.74387 8.45288C7.82848 8.47627 7.9177 8.47742 8.00288 8.45622L9.64458 8.04595C9.83706 7.99811 10.0379 7.99451 10.2319 8.03543C10.426 8.07635 10.6083 8.16072 10.765 8.28221L12.4945 9.62777C13.1162 10.1115 13.1732 11.0303 12.6167 11.5861L11.8413 12.3616C11.2863 12.9167 10.4568 13.1604 9.68358 12.8882C7.70415 12.1926 5.9071 11.0594 4.42625 9.57302C2.94007 8.09226 1.80699 6.29535 1.11135 4.31603C0.839858 3.54349 1.0836 2.71321 1.63858 2.15818L2.41406 1.38265Z" stroke="#00992D"/>\n </svg> ' + phone + '</a>' : '') + '\n ' + (email ? '<a href="mailto:' + email + '">
3458<svg width="14" height="11" viewBox="0 0 14 11" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 1.83333C0 1.3471 0.184374 0.880787 0.512563 0.536971C0.840752 0.193154 1.28587 0 1.75 0H12.25C12.7141 0 13.1592 0.193154 13.4874 0.536971C13.8156 0.880787 14 1.3471 14 1.83333V9.16667C14 9.6529 13.8156 10.1192 13.4874 10.463C13.1592 10.8068 12.7141 11 12.25 11H1.75C1.28587 11 0.840752 10.8068 0.512563 10.463C0.184374 10.1192 0 9.6529 0 9.16667V1.83333ZM1.75 0.916667C1.51794 0.916667 1.29538 1.01324 1.13128 1.18515C0.967187 1.35706 0.875 1.59022 0.875 1.83333V2.03225L7 5.88225L13.125 2.03225V1.83333C13.125 1.59022 13.0328 1.35706 12.8687 1.18515C12.7046 1.01324 12.4821 0.916667 12.25 0.916667H1.75ZM13.125 3.10108L9.0055 5.69067L13.125 8.34625V3.10108ZM13.0952 9.40408L8.16025 6.22233L7 6.95108L5.83975 6.22233L0.90475 9.40317C0.954472 9.59823 1.06428 9.77064 1.21712 9.89363C1.36996 10.0166 1.55728 10.0833 1.75 10.0833H12.25C12.4426 10.0834 12.6298 10.0168 12.7827 9.89399C12.9355 9.77118 13.0454 9.59898 13.0952 9.40408ZM0.875 8.34625L4.9945 5.69067L0.875 3.10108V8.34625Z" fill="#00992D"/>\n </svg> ' + email + '</a>' : '') + '\n </div>\n <div class="result-link">\n ' + (link ? '<a href="' + link + '" target="_blank">Contact</a>' : '') + '\n </div>\n </div>\n '; 3459 3460 var infoWindow = new google.maps.InfoWindow({ 3461 content: contentString 3462 }); 3463 3464 marker.addListener('click', function () { 3465 // Chiudi tutte le finestre info aperte 3466 infoWindows.forEach(function (iw) { 3467 return iw.close(); 3468 }); 3469 // Apri la finestra info corrente 3470 infoWindow.open(map, marker); 3471 }); 3472 3473 markers.push(marker); 3474 infoWindows.push(infoWindow); 3475 }); 3476 3477 // Modifica la parte dell'autocomplete 3478 try { 3479 var input = document.getElementById('search-country'); 3480 var options = { 3481 types: ['(regions)'], // Questo includeràsia cittàche paesi 3482 fields: ['geometry', 'name', 'address_components'] 3483 }; 3484 3485 var autocomplete = new google.maps.places.Autocomplete(input, options); 3486 autocomplete.bindTo('bounds', map); 3487 3488 autocomplete.addListener('place_changed', function () { 3489 var place = autocomplete.getPlace(); 3490 3491 if (!place.geometry) { 3492 return; 3493 } 3494 3495 // Ripristina prima la vista mondiale 3496 map.setZoom(3); 3497 map.setCenter({ lat: 41.8719, lng: 12.5674 }); 3498 3499 // Poi centra sul luogo selezionato 3500 setTimeout(function () { 3501 // Determina se è una cittào un paese 3502 var isCity = place.address_components && place.address_components.some(function (component) { 3503 return component.types.includes('locality') || component.types.includes('administrative_area_level_1'); 3504 }); 3505 3506 if (place.geometry.viewport) { 3507 map.fitBounds(place.geometry.viewport); 3508 3509 // Imposta lo zoom appropriato 3510 google.maps.event.addListenerOnce(map, 'bounds_changed', function () { 3511 var currentZoom = map.getZoom(); 3512 if (isCity && currentZoom < 8) { 3513 map.setZoom(8); 3514 } else if (!isCity && currentZoom > 6) { 3515 map.setZoom(6); 3516 } 3517 }); 3518 } else { 3519 map.setCenter(place.geometry.location); 3520 map.setZoom(isCity ? 8 : 6); 3521 } 3522 3523 // Trova i marker nell'area 3524 var searchBounds = void 0; 3525 if (place.geometry.viewport) { 3526 searchBounds = place.geometry.viewport; 3527 } else { 3528 // Crea un bounds circolare se non c'è viewport 3529 var center = place.geometry.location; 3530 var radius = isCity ? 100000 : 500000; // 50km per città, 500km per paesi 3531 var circle = new google.maps.Circle({ 3532 center: center, 3533 radius: radius 3534 });
3535 searchBounds = circle.getBounds(); 3536 } 3537 3538 var markersInArea = markers.filter(function (marker) { 3539 return searchBounds.contains(marker.getPosition()); 3540 }); 3541 3542 // Genera l'HTML per i risultati 3543 var resultsContainer = document.querySelector('.container-search-results'); 3544 if (markersInArea.length > 0) { 3545 var resultsHTML = markersInArea.map(function (marker) { 3546 var position = marker.getPosition(); 3547 return '\n <div class="search-result" data-lat="' + position.lat() + '" data-lng="' + position.lng() + '">\n <h4>' + marker.getTitle() + '</h4>\n <div class="result-text">\n <p>' + (marker.address || '') + '</p>\n ' + (marker.phone ? '<a href="tel:' + marker.phone + '"><svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M2.41406 1.38265C2.54529 1.25161 2.70286 1.14995 2.87634 1.08442C3.04982 1.01889 3.23525 0.990985 3.42033 1.00255C3.60541 1.0141 3.78593 1.06487 3.94991 1.15148C4.11389 1.23808 4.25759 1.35855 4.3715 1.5049L5.71771 3.23448C5.96445 3.55174 6.05145 3.96501 5.95395 4.35503L5.54371 5.99761C5.52265 6.08269 5.52387 6.17177 5.54725 6.25624C5.57063 6.34072 5.61539 6.41774 5.67721 6.47988L7.5199 8.32271C7.58211 8.38466 7.65925 8.42949 7.74387 8.45288C7.82848 8.47627 7.9177 8.47742 8.00288 8.45622L9.64458 8.04595C9.83706 7.99811 10.0379 7.99451 10.2319 8.03543C10.426 8.07635 10.6083 8.16072 10.765 8.28221L12.4945 9.62777C13.1162 10.1115 13.1732 11.0303 12.6167 11.5861L11.8413 12.3616C11.2863 12.9167 10.4568 13.1604 9.68358 12.8882C7.70415 12.1926 5.9071 11.0594 4.42625 9.57302C2.94007 8.09226 1.80699 6.29535 1.11135 4.31603C0.839858 3.54349 1.0836 2.71321 1.63858 2.15818L2.41406 1.38265Z" stroke="#00992D"/>\n </svg> ' + marker.phone + '</a>' : '') + '\n ' + (marker.email ? '<a href="mailto:' + marker.email + '">
3547<svg width="14" height="11" viewBox="0 0 14 11" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 1.83333C0 1.3471 0.184374 0.880787 0.512563 0.536971C0.840752 0.193154 1.28587 0 1.75 0H12.25C12.7141 0 13.1592 0.193154 13.4874 0.536971C13.8156 0.880787 14 1.3471 14 1.83333V9.16667C14 9.6529 13.8156 10.1192 13.4874 10.463C13.1592 10.8068 12.7141 11 12.25 11H1.75C1.28587 11 0.840752 10.8068 0.512563 10.463C0.184374 10.1192 0 9.6529 0 9.16667V1.83333ZM1.75 0.916667C1.51794 0.916667 1.29538 1.01324 1.13128 1.18515C0.967187 1.35706 0.875 1.59022 0.875 1.83333V2.03225L7 5.88225L13.125 2.03225V1.83333C13.125 1.59022 13.0328 1.35706 12.8687 1.18515C12.7046 1.01324 12.4821 0.916667 12.25 0.916667H1.75ZM13.125 3.10108L9.0055 5.69067L13.125 8.34625V3.10108ZM13.0952 9.40408L8.16025 6.22233L7 6.95108L5.83975 6.22233L0.90475 9.40317C0.954472 9.59823 1.06428 9.77064 1.21712 9.89363C1.36996 10.0166 1.55728 10.0833 1.75 10.0833H12.25C12.4426 10.0834 12.6298 10.0168 12.7827 9.89399C12.9355 9.77118 13.0454 9.59898 13.0952 9.40408ZM0.875 8.34625L4.9945 5.69067L0.875 3.10108V8.34625Z" fill="#00992D"/>\n </svg> ' + marker.email + '</a>' : '') + '\n </div>\n <div class="result-link">\n ' + (marker.link ? '<a href="' + marker.link + '" target="_blank">Contact</a>' : '') + '\n </div>\n </div>\n '; 3548 }).join(''); 3549 resultsContainer.innerHTML = resultsHTML; 3550 } else { 3551 resultsContainer.innerHTML = '<p style="margin-left:3rem;">No locations found in this area</p>'; 3552 } 3553 }, 100); 3554 }); 3555 } catch (e) { 3556 console.warn('Autocomplete non disponibile:', e); 3557 } 3558 3559 // Mantieni lo zoom e il centro iniziale 3560 if (markers.length > 0) { 3561 map.setZoom(2.5); 3562 map.setCenter({ lat: 41.8719, lng: 12.5674 }); 3563 } 3564 } 3565 3566 // Modifica l'inizializzazione per essere più tollerante 3567 if (typeof google !== 'undefined' && typeof google.maps !== 'undefined') { 3568 initializeMap(); 3569 } else { 3570 window.addEventListener('load', function () { 3571 if (typeof google !== 'undefined' && typeof google.maps !== 'undefined') { 3572 initializeMap(); 3573 } 3574 }); 3575 } 3576 }, 3577 finalize: function finalize() { 3578 // JavaScript to be fired on all pages, after page specific JS is fired 3579 } 3580}; 3581/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 3582 3583/***/ }), 3584/* 24 */ 3585/***/ (function(module, exports, __webpack_require__) { 3586 3587"use strict"; 3588/* WEBPACK VAR INJECTION */(function($) { 3589 3590Object.defineProperty(exports, "__esModule", { 3591 value: true 3592}); 3593exports.default = { 3594 init: function init() { 3595 3596 function smMinMediaListener(mediaQuery) { 3597 if (!mediaQuery.matches) {} 3598 } 3599 3600 var smMinMediaCheck = window.matchMedia('(max-width: 767px)'); 3601 smMinMediaCheck.addListener(smMinMediaListener); 3602 3603 smMinMediaListener(smMinMediaCheck); 3604 3605 /** 3606 * STICKY ANCHOR BAR 3607 **/ 3608 3609 var $anchorBar = $('.navigation-special-product'); 3610 var breakpointCheck = $(window).width() > 991; 3611 var $toggle = $('.toggle-menu'); 3612 3613 function calculatePositions() { 3614 var toggle = {}; 3615 toggle.r = $toggle.offset().left + $toggle.width(); 3616 3617 $anchorBar.css({ 3618 'right': $(window).width() - toggle.r - 15 3619 }); 3620 }; 3621 3622 if ($anchorBar.length) { 3623 3624 calculatePositions(); 3625 3626 $(window).on('resize', function () { 3627 breakpointCheck = $(window).width() > 991; 3628 3629 if (breakpointCheck) { 3630 calculatePositions(); 3631 } 3632 }); 3633 }; 3634 }, 3635 finalize: function finalize() { 3636 // JavaScript to be fired on all pages, after page specific JS is fired 3637 } 3638}; 3639/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 3640 3641/***/ }), 3642/* 25 */ 3643/***/ (function(module, exports, __webpack_require__) { 3644 3645"use strict"; 3646/* WEBPACK VAR INJECTION */(function($) { 3647 3648Object.defineProperty(exports, "__esModule", { 3649 value: true 3650}); 3651 3652__webpack_require__(2); 3653 3654__webpack_require__(1); 3655 3656exports.default = {
3657 init: function init() { 3658 $('html').imagesLoaded(function () { 3659 $('.prod-gallery').lightSlider({ 3660 item: 1, 3661 auto: true, 3662 loop: true, 3663 speed: 900, 3664 pause: 5000, 3665 pauseOnHover: true, 3666 slideMove: 1, 3667 controls: false, 3668 enableDrag: false, 3669 mode: 'fade', 3670 onSliderLoad: function onSliderLoad(el) { 3671 $('.lslide').css({ 'height': '100%' }); 3672 } 3673 }); 3674 3675 $('.highlights-slider').lightSlider({ 3676 item: 1, 3677 auto: true, 3678 loop: true, 3679 speed: 900, 3680 pause: 5000, 3681 pauseOnHover: true, 3682 slideMove: 1, 3683 slideMargin: 0, 3684 controls: false, 3685 enableDrag: false, 3686 onSliderLoad: function onSliderLoad(el) { 3687 var $prev = $(el).parents('.product-highlight').find('.controls .prev'); 3688 var $next = $(el).parents('.product-highlight').find('.controls .next'); 3689 3690 $prev.click(function () { 3691 el.goToPrevSlide(); 3692 }); 3693 3694 $next.click(function () { 3695 el.goToNextSlide(); 3696 }); 3697 } 3698 }); 3699 }); 3700 3701 var $sliderCaseStudies = $('#slider-case-studies'); 3702 var caseStudiesItems = $sliderCaseStudies.find('.case-study').length; 3703 3704 $sliderCaseStudies.lightSlider({ 3705 item: 1, 3706 auto: true, 3707 loop: $sliderCaseStudies > 1, 3708 speed: 900, 3709 pause: 5000, 3710 pauseOnHover: true, 3711 slideMove: 1, 3712 controls: false, 3713 enableDrag: false, 3714 slideMargin: 0, 3715 onSliderLoad: function onSliderLoad(el) { 3716 var $prev = $(el).parents('#related-case-studies').find('.controls .prev'); 3717 var $next = $(el).parents('#related-case-studies').find('.controls .next'); 3718 3719 $prev.click(function () { 3720 el.goToPrevSlide(); 3721 }); 3722 3723 $next.click(function () { 3724 el.goToNextSlide(); 3725 }); 3726 } 3727 }); 3728 3729 var $sliderNews = $('#slider-market-news'); 3730 var newsItems = $sliderNews.find('.case-study').length; 3731 3732 $sliderNews.lightSlider({ 3733 item: 1, 3734 auto: true, 3735 loop: $sliderNews > 1, 3736 speed: 900, 3737 pause: 5000, 3738 pauseOnHover: true, 3739 slideMove: 1, 3740 controls: false, 3741 enableDrag: false, 3742 slideMargin: 0, 3743 onSliderLoad: function onSliderLoad(el) { 3744 var $prev = $(el).parents('#related-case-studies').find('.controls .prev'); 3745 var $next = $(el).parents('#related-case-studies').find('.controls .next'); 3746 3747 $prev.click(function () { 3748 el.goToPrevSlide(); 3749 }); 3750 3751 $next.click(function () { 3752 el.goToNextSlide(); 3753 }); 3754 } 3755 }); 3756 }, 3757 finalize: function finalize() { 3758 // JavaScript to be fired on all pages, after page specific JS is fired 3759 } 3760}; 3761/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 3762 3763/***/ }), 3764/* 26 */ 3765/***/ (function(module, exports, __webpack_require__) { 3766 3767"use strict"; 3768/* WEBPACK VAR INJECTION */(function($) { 3769 3770Object.defineProperty(exports, "__esModule", { 3771 value: true 3772}); 3773 3774__webpack_require__(1); 3775 3776var _systemIntegrationAnimation = __webpack_require__(3); 3777 3778var _systemIntegrationAnimation2 = _interopRequireDefault(_systemIntegrationAnimation); 3779 3780function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3781 3782exports.default = {
3783 init: function init() { 3784 _systemIntegrationAnimation2.default.play(); 3785 3786 $('.highlights-slider').lightSlider({ 3787 item: 1, 3788 auto: true, 3789 loop: true, 3790 speed: 900, 3791 pause: 5000, 3792 pauseOnHover: true, 3793 slideMove: 1, 3794 controls: false, 3795 enableDrag: false 3796 }); 3797 3798 $('#slider-case-studies').lightSlider({ 3799 item: 1, 3800 auto: true, 3801 loop: true, 3802 speed: 900, 3803 pause: 5000, 3804 pauseOnHover: true, 3805 slideMove: 1, 3806 controls: false, 3807 enableDrag: false 3808 }); 3809 }, 3810 finalize: function finalize() { 3811 // JavaScript to be fired on all pages, after page specific JS is fired 3812 } 3813}; 3814/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 3815 3816/***/ }), 3817/* 27 */ 3818/***/ (function(module, exports, __webpack_require__) { 3819 3820"use strict"; 3821/* WEBPACK VAR INJECTION */(function($) { 3822 3823Object.defineProperty(exports, "__esModule", { 3824 value: true 3825}); 3826 3827__webpack_require__(1); 3828 3829var _systemIntegrationAnimation = __webpack_require__(3); 3830 3831var _systemIntegrationAnimation2 = _interopRequireDefault(_systemIntegrationAnimation); 3832 3833function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3834 3835exports.default = { 3836 init: function init() { 3837 _systemIntegrationAnimation2.default.play(); 3838 3839 $('.highlights-slider').lightSlider({ 3840 item: 1, 3841 auto: true, 3842 loop: true, 3843 speed: 900, 3844 pause: 5000, 3845 pauseOnHover: true, 3846 slideMove: 1, 3847 controls: false, 3848 enableDrag: false 3849 }); 3850 3851 $('#slider-case-studies').lightSlider({ 3852 item: 1, 3853 auto: true, 3854 loop: true, 3855 speed: 900, 3856 pause: 5000, 3857 pauseOnHover: true, 3858 slideMove: 1, 3859 controls: false, 3860 enableDrag: false 3861 }); 3862 }, 3863 finalize: function finalize() { 3864 // JavaScript to be fired on all pages, after page specific JS is fired 3865 } 3866}; 3867/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 3868 3869/***/ }), 3870/* 28 */ 3871/***/ (function(module, exports, __webpack_require__) { 3872 3873"use strict"; 3874/* WEBPACK VAR INJECTION */(function($) { 3875 3876Object.defineProperty(exports, "__esModule", { 3877 value: true 3878}); 3879 3880__webpack_require__(1); 3881 3882exports.default = { 3883 init: function init() { 3884 3885 function checkMobile() { 3886 var smallWindow = $(window).width() < 768, 3887 mobileUserAgent = /Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent || navigator.vendor || window.opera); 3888 3889 if (smallWindow || mobileUserAgent) { 3890 return true; 3891 } else { 3892 return false; 3893 } 3894 } 3895 3896 /* var ddForm = { 3897 $form: $('.wpcf7'), 3898 $section: $('#more-info'), 3899 $wrapper: $('#form-wrapper'), 3900 $inSection :$('#form-section'), 3901 $toggle: $('.form-toggle'), 3902 height: $('#form-section').height(), 3903 isOpen: false, 3904 } 3905 if(ddForm.$form.length) { 3906 $(window).resize(function(){ 3907 ddForm.height = ddForm.$inSection.height(); 3908 }); 3909 ddForm.$wrapper.height(0).addClass('animate-h'); 3910 ddForm.$toggle.click(function(){ 3911 if(ddForm.isOpen){ 3912 ddForm.$wrapper.height(0); 3913 ddForm.$section.removeClass('open'); 3914 ddForm.isOpen = false; 3915 }else{ 3916 ddForm.$wrapper.height(ddForm.height); 3917 ddForm.$section.addClass('open'); 3918 ddForm.isOpen = true; 3919 } 3920 }); 3921 }*/ 3922 3923 var $sliderCaseStudies = $('#slider-case-studies'); 3924 var caseStudiesItems = $sliderCaseStudies.find('.case-study').length; 3925 3926 $sliderCaseStudies.lightSlider({ 3927 item: 1, 3928 auto: true, 3929 loop: $sliderCaseStudies > 1, 3930 speed: 900, 3931 pause: 5000, 3932 pauseOnHover: true, 3933 slideMove: 1, 3934 controls: false, 3935 enableDrag: false, 3936 slideMargin: 0, 3937 onSliderLoad: function onSliderLoad(el) { 3938 var $prev = $(el).parents('#related-case-studies').find('.controls .prev'); 3939 var $next = $(el).parents('#related-case-studies').find('.controls .next'); 3940 3941 $prev.click(function () { 3942 el.goToPrevSlide(); 3943 }); 3944 3945 $next.click(function () { 3946 el.goToNextSlide(); 3947 }); 3948 } 3949 }); 3950 3951 var $sliderNews = $('#slider-market-news'); 3952 var newsItems = $sliderNews.find('.case-study').length; 3953 3954 $sliderNews.lightSlider({ 3955 item: 1, 3956 auto: true, 3957 loop: $sliderNews > 1, 3958 speed: 900, 3959 pause: 5000, 3960 pauseOnHover: true, 3961 slideMove: 1, 3962 controls: false, 3963 enableDrag: false, 3964 slideMargin: 0, 3965 onSliderLoad: function onSliderLoad(el) { 3966 var $prev = $(el).parents('#related-case-studies').find('.controls .prev'); 3967 var $next = $(el).parents('#related-case-studies').find('.controls .next'); 3968 3969 $prev.click(function () { 3970 el.goToPrevSlide(); 3971 }); 3972 3973 $next.click(function () { 3974 el.goToNextSlide(); 3975 }); 3976 } 3977 }); 3978 3979 $('.highlights-slider').lightSlider({ 3980 item: 1, 3981 auto: true, 3982 loop: true, 3983 speed: 900, 3984 pause: 5000, 3985 pauseOnHover: true, 3986 slideMove: 1, 3987 controls: false, 3988 enableDrag: false, 3989 slideMargin: 0, 3990 onSliderLoad: function onSliderLoad(el) { 3991 var $prev = $(el).parents('.product-highlight').find('.controls .prev'); 3992 var $next = $(el).parents('.product-highlight').find('.controls .next'); 3993 3994 $prev.click(function () { 3995 3996 el.goToPrevSlide(); 3997 }); 3998 3999 $next.click(function () { 4000 el.goToNextSlide(); 4001 }); 4002 } 4003 }); 4004
4005 var relatedSlider = null; 4006 4007 function smMinMediaListener(mediaQuery) { 4008 if (!mediaQuery.matches) { 4009 if ($('.related-grid-list').find('.related-grid').length <= 2) { 4010 return; 4011 } 4012 4013 relatedSlider = $('.related-grid-list').lightSlider({ 4014 item: 2, 4015 auto: true, 4016 loop: true, 4017 speed: 900, 4018 pause: 5000, 4019 pauseOnHover: true, 4020 slideMove: 2, 4021 slideMargin: 0, 4022 controls: false, 4023 enableDrag: false, 4024 onSliderLoad: function onSliderLoad(el) { 4025 4026 if ($('.slider-ctrl').length) { 4027 $('.prev').click(function () { 4028 el.goToPrevSlide(); 4029 }); 4030 4031 $('.next').click(function () { 4032 el.goToNextSlide(); 4033 }); 4034 } 4035 } 4036 }); 4037 } else { 4038 if (relatedSlider) {
4039 relatedSlider.destroy(); 4040 4041 relatedSlider = null; 4042 } 4043 } 4044 } 4045 4046 var smMinMediaCheck = window.matchMedia('(max-width: 767px)'); 4047 smMinMediaCheck.addListener(smMinMediaListener); 4048 4049 smMinMediaListener(smMinMediaCheck); 4050 4051 /** 4052 * EV MARKETS VIDEO SLIDER 4053 **/ 4054 4055 var videoSlider = null; 4056 4057 function vidsmMinMediaListener(mediaQuery) { 4058 if (!mediaQuery.matches) { 4059 if ($('.video-grid-list').find('.video-grid').length <= 2) { 4060 return; 4061 } 4062 4063 videoSlider = $('.video-grid-list').lightSlider({ 4064 /*item: 3, 4065 auto: false, 4066 loop: false, 4067 speed: 900, 4068 pause: 5000, 4069 pauseOnHover: true, 4070 slideMove: 1, 4071 slideMargin: 0, 4072 controls: false, 4073 pager: false, 4074 enableDrag: false, 4075 useCSS: true, 4076 cssEasing: 'ease', //'cubic-bezier(0.25, 0, 0.25, 1)',// 4077 easing: 'linear', //'for jquery animation',////*/ 4078 item: 3, 4079 auto: true, 4080 loop: true, 4081 speed: 900, 4082 pause: 5000, 4083 pauseOnHover: true, 4084 slideMove: 1, 4085 controls: false, 4086 enableDrag: false, 4087 slideMargin: 0, 4088 pager: false, 4089 responsive: [{ 4090 breakpoint: 800, 4091 settings: { 4092 item: 2, 4093 slideMove: 1, 4094 slideMargin: 0, 4095 enableDrag: true 4096 } 4097 }], 4098 onSliderLoad: function onSliderLoad(ev) { 4099 console.log("Loaded"); 4100 if ($('.vid-slider-ctrl').length) { 4101 $('#vidPrevSlide').click(function () { 4102 ev.goToPrevSlide(); 4103 }); 4104 4105 $('#vidNextSlide').click(function () { 4106 ev.goToNextSlide(); 4107 }); 4108 } 4109 4110 $('.vOpenIcon').unbind('click'); 4111 $('.vOpenIcon').on('click', function (e) { 4112 var modal = $(this).attr("data-modaltarget"); 4113 var mid = "#" + modal; 4114 var mvideo = "#" + modal + " video"; 4115 console.log('Modal On click', modal); 4116 $(mid).fadeToggle("1500"); 4117 $(mvideo).prop('currentTime', 0); 4118 $(mvideo).on('canplay', function () { 4119 $(mvideo).trigger('play'); 4120 }); 4121 }); 4122 } 4123 }); 4124 } else { 4125 if (videoSlider) { 4126 videoSlider.destroy(); 4127 4128 videoSlider = null; 4129 } 4130 } 4131 } 4132 4133 var vidsmMinMediaCheck = window.matchMedia('(max-width: 767px)'); 4134 vidsmMinMediaCheck.addListener(vidsmMinMediaListener); 4135 vidsmMinMediaListener(vidsmMinMediaCheck); 4136 4137 /** 4138 * 2023 MARKETS VIDEO SLIDER 4139 **/ 4140 4141 /*var video23Slider = null; 4142 function vidsmMin23MediaListener(mediaQuery) { 4143 if (!mediaQuery.matches) { 4144 if ($('.video-grid-list23').find('.video-grid').length <= 2) { 4145 return; 4146 } 4147 video23Slider = $('.video-grid-list23').lightSlider({ 4148 /!*item: 3,
4149 auto: false, 4150 loop: false, 4151 speed: 900, 4152 pause: 5000, 4153 pauseOnHover: true, 4154 slideMove: 1, 4155 slideMargin: 0, 4156 controls: false, 4157 pager: false, 4158 enableDrag: false, 4159 useCSS: true, 4160 cssEasing: 'ease', //'cubic-bezier(0.25, 0, 0.25, 1)',// 4161 easing: 'linear', //'for jquery animation',////!*!/ 4162 item: 4, 4163 auto: true, 4164 loop: true, 4165 speed: 900, 4166 pause: 5000, 4167 pauseOnHover: true, 4168 slideMove: 1, 4169 controls: false, 4170 enableDrag: false, 4171 slideMargin: 0, 4172 pager: false, 4173 responsive : [ 4174 { 4175 breakpoint:800, 4176 settings: { 4177 item:2, 4178 slideMove:1, 4179 slideMargin:0, 4180 enableDrag: true, 4181 }, 4182 }, 4183 ], 4184 onSliderLoad: function (ev) { 4185 console.log("Loaded"); 4186 if ($('.vid-slider-ctrl').length) { 4187 $('#vidPrevSlide').click(function () { 4188 ev.goToPrevSlide(); 4189 }); 4190 $('#vidNextSlide').click(function () { 4191 ev.goToNextSlide(); 4192 }); 4193 } 4194 $('.vOpenIcon').unbind('click'); 4195 $('.vOpenIcon').on('click', function (e) { 4196 var modal = $(this).attr("data-modaltarget"); 4197 var mid = "#"+modal; 4198 var mvideo = "#"+modal+" video"; 4199 console.log('Modal On click', modal); 4200 $(mid).fadeToggle("1500"); 4201 $(mvideo).prop('currentTime', 0); 4202 $(mvideo).on('canplay', function() { 4203 $(mvideo).trigger('play'); 4204 }); 4205 }) 4206 }, 4207 }); 4208 } else { 4209 if (video23Slider) { 4210 video23Slider.destroy(); 4211 video23Slider = null; 4212 } 4213 } 4214 } 4215 var vidsmMinMediaCheck = window.matchMedia('(max-width: 767px)'); 4216 vidsmMinMediaCheck.addListener(vidsmMinMediaListener); 4217 vidsmMinMediaListener(vidsmMinMediaCheck); 4218 vidsmMinMediaCheck.addListener(vidsmMin23MediaListener); 4219 vidsmMin23MediaListener(vidsmMinMediaCheck);*/ 4220 4221 /** 4222 * STICKY ANCHOR BAR 4223 **/ 4224 4225 var $anchorBar = $('.anchors-bar'); 4226 var breakpointCheck = $(window).width() > 991; 4227 4228 if ($anchorBar.length) { 4229 (function () { 4230 4231 var ticking = false, 4232 yScroll = getScrollPos(), 4233 affixed = false, 4234 $welcome = $('.welcome'), 4235 $toggle = $('.toggle-menu'); 4236 4237 var ab = new function () { 4238 this.h = $anchorBar.innerHeight(); 4239 this.l = $anchorBar.offset().left; 4240 this.w = $anchorBar.width(); 4241 this.r = this.l + this.w; 4242 this.b = $anchorBar.offset().top + this.h; 4243 }(); 4244 4245 var nav = { h: null }; 4246 4247 var toggle = { r: null }; 4248 4249 var translateDiff = toggle.r - ab.r; 4250 4251 $(window).scroll(function () { 4252 if (breakpointCheck) { 4253 yScroll = getScrollPos(); 4254 requestFrame(checkAffix); 4255 } 4256 }); 4257 4258 function getScrollPos() { 4259 return window.scrollY || window.pageYOffset; 4260 } 4261 4262 function calculatePositions() { 4263 $anchorBar = $('.anchors-bar');
4264 ab.h = $anchorBar.innerHeight(); 4265 ab.l = $anchorBar.offset().left; 4266 ab.w = $anchorBar.width(); 4267 ab.r = ab.l + ab.w; 4268 ab.b = $anchorBar.offset().top + ab.h; 4269 4270 nav.h = $('#top-navigation.sticky').innerHeight() + $('.industrial-header').innerHeight(); 4271 toggle.r = $toggle.offset().left + $toggle.width(); 4272 translateDiff = toggle.r - ab.r; 4273 } 4274 4275 function checkAffix() { 4276 nav.h = $('#top-navigation.sticky').innerHeight() + $('.industrial-header').innerHeight(); 4277 var navBottom = yScroll + nav.h; 4278 4279 if (navBottom > ab.b && !affixed) { 4280 affix(); 4281 } 4282 4283 if (navBottom < ab.b && affixed) { 4284 deaffix(); 4285 } 4286 4287 ticking = false; 4288 } 4289 4290 function deaffix() { 4291 $welcome.css({ 4292 'padding-bottom': 0 4293 }); 4294 4295 $anchorBar.css({ 4296 'position': 'relative', 4297 'top': 'auto', 4298 'left': 'auto', 4299 'transform': 'translate(0,0)' 4300 }); 4301 4302 $anchorBar.removeClass('ab-sticky'); 4303 affixed = false; 4304 } 4305 4306 function affix() { 4307 $welcome.css({ 4308 'padding-bottom': ab.h 4309 }); 4310 4311 $anchorBar.css({ 4312 'position': 'fixed', 4313 'top': nav.h - ab.h + 'px', 4314 'left': ab.l + 'px', 4315 'transform': 'translate(' + translateDiff + 'px,0)' 4316 }); 4317 4318 $anchorBar.addClass('ab-sticky'); 4319 affixed = true; 4320 } 4321 4322 function requestFrame(callback) { 4323 if (!ticking) { 4324 window.requestAnimationFrame(callback); 4325 ticking = true; 4326 } 4327 } 4328 4329 calculatePositions(); 4330 4331 $(window).on('resize', function () { 4332 breakpointCheck = $(window).width() > 991; 4333 deaffix(); 4334 4335 if (breakpointCheck) { 4336 calculatePositions(); 4337 requestFrame(checkAffix); 4338 } 4339 }); 4340 })(); 4341 } 4342 }, 4343 finalize: function finalize() { 4344 // JavaScript to be fired on all pages, after page specific JS is fired 4345 } 4346}; 4347/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 4348 4349/***/ }), 4350/* 29 */ 4351/***/ (function(module, exports, __webpack_require__) { 4352 4353"use strict"; 4354 4355 4356Object.defineProperty(exports, "__esModule", { 4357 value: true 4358}); 4359 4360var _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; }; }(); /* ======================================================================== 4361 * DOM-based Routing 4362 * Based on http://goo.gl/EUTi53 by Paul Irish 4363 * 4364 * Only fires on body classes that match. If a body class contains a dash, 4365 * replace the dash with an underscore when adding it to the object below. 4366 * ======================================================================== */ 4367 4368var _camelCase = __webpack_require__(30); 4369 4370var _camelCase2 = _interopRequireDefault(_camelCase); 4371 4372function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 4373 4374function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 4375 4376// The routing fires all common scripts, followed by the page specific scripts. 4377// Add additional events for more control over timing e.g. a finalize event 4378var Router = function () { 4379 function Router(routes) { 4380 _classCallCheck(this, Router); 4381 4382 this.routes = routes; 4383 } 4384 4385 _createClass(Router, [{ 4386 key: 'fire',
4387 value: function fire(route) { 4388 var fn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'init'; 4389 var args = arguments[2]; 4390 4391 var fire = route !== '' && this.routes[route] && typeof this.routes[route][fn] === 'function'; 4392 if (fire) { 4393 this.routes[route][fn](args); 4394 } 4395 } 4396 }, { 4397 key: 'loadEvents', 4398 value: function loadEvents() { 4399 var _this = this; 4400 4401 // Fire common init JS 4402 this.fire('common'); 4403 4404 // Fire page-specific init JS, and then finalize JS 4405 document.body.className.toLowerCase().replace(/-/g, '_').split(/\s+/).map(_camelCase2.default).forEach(function (className) { 4406 _this.fire(className); 4407 _this.fire(className, 'finalize'); 4408 }); 4409 4410 // Fire common finalize JS 4411 this.fire('common', 'finalize'); 4412 } 4413 }]); 4414 4415 return Router; 4416}(); 4417 4418exports.default = Router; 4419 4420/***/ }), 4421/* 30 */ 4422/***/ (function(module, exports, __webpack_require__) { 4423 4424"use strict"; 4425 4426 4427Object.defineProperty(exports, "__esModule", { 4428 value: true 4429}); 4430 4431// the most terrible camelizer on the internet, guaranteed! 4432exports.default = function (str) { 4433 return '' + str.charAt(0).toLowerCase() + str.replace(/[\W_]/g, '|').split('|').map(function (part) { 4434 return '' + part.charAt(0).toUpperCase() + part.slice(1); 4435 }).join('').slice(1); 4436}; 4437 4438/***/ }), 4439/* 31 */ 4440/***/ (function(module, exports, __webpack_require__) { 4441 4442"use strict"; 4443/* WEBPACK VAR INJECTION */(function($) { 4444 4445Object.defineProperty(exports, "__esModule", { 4446 value: true 4447}); 4448 4449function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 4450 4451var PopupForm = function PopupForm() { 4452 var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#popup-contact-form'; 4453 var trigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '.contact-form-trigger'; 4454 4455 var _this = this; 4456 4457 var service = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '.page-template-page-templatesservices-php'; 4458 4459 _classCallCheck(this, PopupForm); 4460 4461 this.toggleForm = function () { 4462 var ev = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; 4463 4464 if (ev) { 4465 console.log(ev); 4466 ev.preventDefault(); 4467 } 4468 4469 if (_this.isFormOpen) { 4470 _this.closeForm(); 4471 } else { 4472 _this.openForm(); 4473 } 4474 }; 4475 4476 this.openForm = function () { 4477 window.location.hash = '#quick-assistance'; 4478 4479 if (window.globalContext.fp) { 4480 $.fn.fullpage.setAllowScrolling(false); 4481 } 4482 4483 $('body').addClass('scroll-block form-active'); 4484 _this.isFormOpen = true; 4485 }; 4486 4487 this.closeForm = function () { 4488 if (window.globalContext.fp) { 4489 $.fn.fullpage.setAllowScrolling(true); 4490 } 4491 4492 $('body').removeClass('scroll-block form-active'); 4493 _this.isFormOpen = false; 4494 }; 4495 4496 this.$form = $(selector); 4497 this.$trigger = $(trigger); 4498 this.$trigger2 = $('[data-contact-sale]'); 4499 this.$close = $('.close-popup'); 4500 this.isFormOpen = false; 4501 this.service = $(service); 4502 4503 if (!this.$form.length) { 4504 console.error('No element matching form selector found'); 4505 return; 4506 } 4507 4508 if (!this.$form.length) { 4509 console.error('No element matching trigger selector found'); 4510 return; 4511 } 4512 4513 var ref = this; 4514 4515 //SETUP TRIGGER 4516 $(this.$trigger).click(function (ev) { 4517 //console.log('Service Ref : ', ref.service.length); 4518 // if(ref.service.length == 0) { 4519 ref.toggleForm(ev); 4520 // } else { 4521 // return; 4522 // } 4523 }); 4524 $(this.$trigger2).click(function (ev) { 4525 //console.log('Service Ref : ', ref.service.length); 4526 // if(ref.service.length == 0) { 4527 ev.preventDefault(); 4528 ref.toggleForm(ev); 4529 // } else { 4530 // return; 4531 // } 4532 });
4533 4534 //SETUP CLOSE 4535 $(this.$close).click(ref.closeForm); 4536 4537 $('.wpcf7', this.$form).on('wpcf7:mailsent', function () { 4538 setTimeout(function () { 4539 ref.closeForm(); 4540 }, 600); 4541 }); 4542 4543 $(document).keyup(function (e) { 4544 if (e.keyCode == 27) { 4545 ref.closeForm(); 4546 } 4547 }); 4548}; 4549 4550exports.default = PopupForm; 4551/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) 4552 4553/***/ }), 4554/* 32 */ 4555/***/ (function(module, exports, __webpack_require__) { 4556 4557"use strict"; 4558 4559 4560// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ 4561// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating 4562 4563// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel 4564 4565// MIT license 4566 4567(function () { 4568 var lastTime = 0; 4569 var vendors = ['ms', 'moz', 'webkit', 'o']; 4570 for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { 4571 window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame']; 4572 window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame']; 4573 } 4574 4575 if (!window.requestAnimationFrame) window.requestAnimationFrame = function (callback, element) { 4576 var currTime = new Date().getTime(); 4577 var timeToCall = Math.max(0, 16 - (currTime - lastTime)); 4578 var id = window.setTimeout(function () { 4579 callback(currTime + timeToCall); 4580 }, timeToCall); 4581 lastTime = currTime + timeToCall; 4582 return id; 4583 }; 4584 4585 if (!window.cancelAnimationFrame) window.cancelAnimationFrame = function (id) { 4586 clearTimeout(id); 4587 }; 4588})(); 4589 4590/***/ }), 4591/* 33 */ 4592/***/ (function(module, exports, __webpack_require__) { 4593 4594"use strict"; 4595/* WEBPACK VAR INJECTION */(function($, jQuery) {var require;var require; 4596 4597!function t(e, i, s) { 4598 function n(a, r) { 4599 if (!i[a]) { 4600 if (!e[a]) { 4601 var h = "function" == typeof require && require;if (!r && h) return require(a, !0);if (o) return o(a, !0);var l = new Error("Cannot find module '" + a + "'");throw l.code = "MODULE_NOT_FOUND", l; 4602 }var c = i[a] = { exports: {} };e[a][0].call(c.exports, function (t) { 4603 var i = e[a][1][t];return n(i ? i : t); 4604 }, c, c.exports, t, e, i, s); 4605 }return i[a].exports; 4606 }for (var o = "function" == typeof require && require, a = 0; a < s.length; a++) { 4607 n(s[a]); 4608 }return n; 4609}({ 1: [function (t, e, i) { 4610 e.exports = function (e, i) { 4611 var s = t("./W.js"), 4612 n = t("./../e7.js"), 4613 o = t("./../h1.js"), 4614 a = new s(e, {});this.k5 = new n(), this.k5.x = 1, this.k3 = new n(), this.k3.y = 1, $.extend(this, a), $.extend(this.settings, i), this.apply = function (t, e, i) { 4615 var s = this.e1.path.getPoint(i), 4616 a = this.e1.path.getPoint(i + .1), 4617 r = new n();r.e7(s, a);var h = r.angle(this.k5);h *= this.e1.options.allignElementsWithPathCoefficient, t.rotations.push(new o(this.k3, h)); 4618 }; 4619 }; 4620 }, { "./../h1.js": 30, "./../e7.js": 35, "./W.js": 2 }], 2: [function (t, e, i) { 4621 e.exports = function (t, e) { 4622 this.e1 = t, this.applyPhase = "positioning", this.settings = {}, $.extend(this.settings, e), this.Q = function () { 4623 return 0; 4624 }, this.apply = function (t, e, i) {}, this.revert = function () {}; 4625 }; 4626 }, {}], 3: [function (t, e, i) { 4627 e.exports = function (e, i) { 4628 var s = t("./W.js"), 4629 n = t("./../b4.js"), 4630 o = new s(e, {});$.extend(this, o), $.extend(this.settings, i), this.apply = function (t, e, i) { 4631 var s = this.e1.path.a2(), 4632 o = Math.abs(i - s), 4633 a = this.e1.options.distance * this.e1.options.fadeAwayNumberOfConfigurableElements, 4634 r = 1 - Math.min(o / a, 1), 4635 h = this.e1.options.fadeAwayBezierPoints, 4636 l = n(r, h.p1, h.p2, h.p3, h.p4).y;e.b5.css({ opacity: l / 100 }); 4637 }; 4638 }; 4639 }, { "./../b4.js": 10, "./W.js": 2 }], 4: [function (t, e, i) { 4640 e.exports = function (e, i) { 4641 var s = t("./W.js"), 4642 n = new s(e, {});$.extend(this, n), $.extend(this.settings, i), this.apply = function (t, e, i) { 4643 var s = Math.abs(i - this.e1.path.a2()), 4644 n = 1 - s / this.e1.options.distance;n = Math.max(n, 0), t.translateX += this.e1.options.popoutSelectedShiftX * n, t.translateY += this.e1.options.popoutSelectedShiftY * n, t.translateZ += this.e1.options.popoutSelectedShiftZ * n; 4645 }; 4646 }; 4647 }, { "./W.js": 2 }], 5: [function (t, e, i) { 4648 e.exports = function (e, i) { 4649 var s = t("./W.js"), 4650 n = new s(e, {});$.extend(this, n), $.extend(this.settings, i), this.apply = function (t, e, i) { 4651 e.isReflectionApplied || (e.isReflectionApplied = !0, e.b5.css("box-reflect", "below " + this.e1.options.reflectionBelow + "px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(" + (1 - this.e1.options.reflectionHeight) + ", transparent), to(black))")); 4652 }, this.revert = function () { 4653 for (var t = 0; t < this.e1.a2.length; t++) { 4654 this.e1.a2[t].isReflectionApplied = !1, this.e1.a2[t].b5.css("box-reflect", ""); 4655 } 4656 }; 4657 }; 4658 }, { "./W.js": 2 }], 6: [function (t, e, i) { 4659 e.exports = function (e, i) { 4660 var s = t("./W.js"), 4661 n = t("./../b4.js"), 4662 o = t("./../e7.js"), 4663 a = t("./../h1.js"), 4664 r = new s(e, {});$.extend(this, r), $.extend(this.settings, i), this.apply = function (t, e, i) { 4665 var s = this.e1.path.a2(), 4666 r = Math.abs(i - s), 4667 h = this.e1.options.distance * this.e1.options.rotationNumberOfConfigurableElements, 4668 l = 1 - Math.min(r / h, 1), 4669 c = this.e1.options.rotationBezierPoints, 4670 u = n(l, c.p1, c.p2, c.p3, c.p4).y;i < s && this.e1.options.rotationInvertForNegative && (u *= -1);var p = new o();p.x = this.e1.options.rotationVectorX, p.y = this.e1.options.rotationVectorY, p.z = this.e1.options.rotationVectorZ, t.rotations.push(new a(p, u)); 4671 }; 4672 }; 4673 }, { "./../b4.js": 10, "./../h1.js": 30, "./../e7.js": 35, "./W.js": 2 }], 7: [function (t, e, i) { 4674 e.exports = function (e, i) { 4675 var s = t("./W.js"), 4676 n = new s(e, {});$.extend(this, n), $.extend(this.settings, i), this.apply = function (t, e, i) { 4677 var s = "0px 0px " + this.e1.options.shadowBlurRadius + "px " + this.e1.options.shadowSpreadRadius + "px #000000";e.b5.css({ "-webkit-box-shadow": s, "-moz-box-shadow": s, "box-shadow": s }); 4678 }, this.revert = function () { 4679 for (var t = 0; t < this.e1.a2.length; t++) { 4680 this.e1.a2[t].b5.css({ "-webkit-box-shadow": "", "-moz-box-shadow": "", "box-shadow": "" }); 4681 } 4682 }; 4683 }; 4684 }, { "./W.js": 2 }], 8: [function (t, e, i) { 4685 e.exports = function (e, i) { 4686 var s = t("./W.js"), 4687 n = t("./../b4.js"), 4688 o = new s(e, {});$.extend(this, o), $.extend(this.settings, i), this.apply = function (t, e, i) { 4689 var s = this.e1.path.a2(), 4690 o = Math.abs(i - s), 4691 a = this.e1.options.distance * this.e1.options.sizeAdjustmentNumberOfConfigurableElements, 4692 r = 1 - Math.min(o / a, 1), 4693 h = this.e1.options.sizeAdjustmentBezierPoints, 4694 l = n(r, h.p1, h.p2, h.p3, h.p4).y;t.scale = l / 100; 4695 }; 4696 }; 4697 }, { "./../b4.js": 10, "./W.js": 2 }], 9: [function (t, e, i) { 4698 function s(t) { 4699 t.Qz4 = function () { 4700 this.e1.options.autorotation ? this.Qz5() : (this.autorotationStarted = !1, this.autorotationTimer && clearTimeout(this.autorotationTimer)); 4701 }, t.Qz5 = function () { 4702 this.autorotationStarted || (this.autorotationStarted = !!this.move()); 4703 }, t.move = $.proxy(function () { 4704 return "left" == this.e1.options.autorotationDirection ? this.e1.moveBack() : "right" == this.e1.options.autorotationDirection ? this.e1.moveForward() : void 0; 4705 }, t), t.onMotionEnd = $.proxy(function () { 4706 this.autorotationStarted && (this.autorotationTimer = setTimeout(this.move, this.e1.options.autorotationPause)); 4707 }, t), t.destroy = function () { 4708 this.e1.widget().off("motionEnd", this.onMotionEnd); 4709 }; 4710 }e.exports = function (t) { 4711 this.autorotationStarted = !1, this.e1 = t, this.autorotationTimer = null, s(this), this.e1.widget().on("motionEnd", this.onMotionEnd), this.Qz4(); 4712 }; 4713 }, {}], 10: [function (t, e, i) { 4714 function s(t) { 4715 return t * t * t; 4716 }function n(t) { 4717 return 3 * t * t * (1 - t); 4718 }function o(t) { 4719 return 3 * t * (1 - t) * (1 - t); 4720 }function a(t) { 4721 return (1 - t) * (1 - t) * (1 - t); 4722 }e.exports = function (t, e, i, r, h) { 4723 var l = { x: 0, y: 0 };return l.x = e.x * s(t) + i.x * n(t) + r.x * o(t) + h.x * a(t), l.y = e.y * s(t) + i.y * n(t) + r.y * o(t) + h.y * a(t), l; 4724 }; 4725 }, {}], 11: [function (t, e, i) { 4726 function s(t, e, i, s) { 4727 for (var o = n(0, t, e, i, s), a = o.x, r = o.y, h = o.x, l = o.y, c = 0; c <= 20; c++) { 4728 var u = n(.05 * c, t, e, i, s);a = Math.min(u.x, a), r = Math.min(u.y, r), h = Math.max(u.x, h), l = Math.max(u.y, l); 4729 }return { minX: a, minY: r, maxX: h, maxY: l, width: h - a, height: l - r }; 4730 }var n = t("./b4.js"), 4731 o = [];e.exports = function (t, e, i, n) { 4732 var a = t.x + "." + t.y + "." + e.x + "." + e.y + "." + i.x + "." + i.y + "." + n.x + "." + n.y;return "undefined" == typeof o[a] && (o[a] = s(t, e, i, n)), o[a]; 4733 }; 4734 }, { "./b4.js": 10 }], 12: [function (t, e, i) { 4735 t("./b3.js")(), function (e) { 4736 e.theta || (e.theta = new Object());var i = t("./b2.js"), 4737 s = t("./b6.js"), 4738 n = t("./c1.js"), 4739 o = t("./b5.js"), 4740 a = t("./b9.js"), 4741 r = t("./rotation_logic_controller.js"), 4742 h = t("./endless_rotation_logic_controller.js"), 4743 l = t("./Qwq.js"), 4744 c = t("./Qz3.js"), 4745 u = t("./e6"), 4746 p = t("./e4.js"), 4747 d = t("./paths/a5.js"), 4748 f = t("./paths/a9.js"), 4749 m = t("./paths/a6.js"), 4750 g = t("./paths/a7.js"), 4751 x = t("./paths/a8.js"), 4752 v = t("./paths/e5.js"), 4753 y = t("./a1/b7.js"), 4754 w = t("./a1/b8.js"), 4755 b = t("./a1/a2.js"), 4756 I = t("./a1/a3.js"), 4757 _ = t("./a1/a4.js"), 4758 E = t("./a1/e2.js"), 4759 j = t("./a1/effect_reflection.js"), 4760 M = "1.6.4", 4761 P = { filter: "div", selectedIndex: 0, distance: 70, mode3D: "z", scaleX: 1, scaleY: 1, scaleZ: 1, perspective: 1e3, numberOfElementsToDisplayRight: null, numberOfElementsToDisplayLeft: null, sensitivity: 1, verticalRotation: !1, minKeyDownFrequency: 0, rotationAnimationEasing: "easeOutCubic", rotationAnimationDuration: 500, inertiaFriction: 10, inertiaHighFriction: 50, path: { type: "parabola", settings: {} }, designedForWidth: null, designedForHeight: null, enabled: !0, mousewheelEnabled: !0, keyboardEnabled: !0, gesturesEnabled: !0, autorotation: !1, autorotationDirection: "right", autorotationPause: 0, allignElementsWithPath: !1, allignElementsWithPathCoefficient: 1, fadeAway: !1, fadeAwayNumberOfConfigurableElements: 5, fadeAwayBezierPoints: { p1: { x: 0, y: 100 }, p2: { x: 50, y: 50 }, p3: { x: 50, y: 50 }, p4: { x: 100, y: 0 } }, rotation: !1, rotationVectorX: 0, rotationVectorY: 0, rotationVectorZ: 0, rotationNumberOfConfigurableElements: 5, rotationBezierPoints: { p1: { x: 0, y: 0 }, p2: { x: 50, y: 0 }, p3: { x: 50, y: 0 }, p4: { x: 100, y: 0 } }, rotationInvertForNegative: !1, sizeAdjustment: !1, sizeAdjustmentNumberOfConfigurableElements: 5, sizeAdjustmentBezierPoints: { p1: { x: 0, y: 100 }, p2: { x: 50, y: 100 }, p3: { x: 50, y: 100 }, p4: { x: 100, y: 100 } }, shadow: !1, shadowBlurRadius: 100, shadowSpreadRadius: 0, popoutSelected: !1, popoutSelectedShiftX: 0, popoutSelectedShiftY: 0, popoutSelectedShiftZ: 0, reflection: !1, reflectionBelow: 0, reflectionHeight: .3, fallback: "auto", distanceInFallbackMode: 200 };e.theta.carousel = function (t, M) { 4762 var P = this;P.b5 = e(t), P.b5.data("theta.carousel", P), P.b5.addClass("theta-carousel"), P._create = function () { 4763 this.options = e.extend(!0, {}, e.theta.carousel.defaultOptions, M);var t = new u(this.widget().width(), this.widget().height());this.e6 = e('<div class="theta-carousel-inner-container"></div>'), this.e6.appendTo(this.widget()), this.e6.css({ width: t.width + "px", height: t.height + "px" }), this.widget().attr("tabindex", 0).css({ outline: "none", overflow: "hidden" }), this.e6.css({ transformStyle: "preserve-3d", overflow: "hidden", perspective: this.options.perspective + "px", transform: "translate3d(0px,0px, 100000px)" }), this.update(), this.h4 = [], this.g1(), this.g2(), this._createRotationLogicController(), this.b2 = new n(this), this.c3 = new s(this), this.b7(), this.f1 = new i(this), this._a3 = new a(this, e.proxy(this._k7, this)), this.c2 = new o(this), this.autoRotator = new c(this), e(this.f1).on("step", e.proxy(function (t, e) { 4764 this.b7(e); 4765 }, this)), e(this.f1).on("done", e.proxy(function (t, e) { 4766 this.e3(e), this.h2(); 4767 }, this)), e(this._a3).on("end", e.proxy(function (t, e) { 4768 this.q8(e); 4769 }, this)), e(this._a3).on("start", e.proxy(this.e2, this)), this.initialized = !0; 4770 }, P.destroy = function () { 4771 for (var t = 0; t < this.h4.length; t++) { 4772 this.h4[t].revert(); 4773 }
4773null != this.q1 && this.q1.destroy(), this.c2.destroy(), this.c3.destroy(), this.b2.destroy(), this.autoRotator.destroy();for (var t = 0; t < this.a2.length; t++) { 4774 this.a2[t].b5.off("tap", this.moveTo), this.a2[t].b5.off("click", this.moveTo); 4775 }this.widget().data("theta.carousel", null); 4776 }, P.moveBack = function () { 4777 return this.q1.moveBack(); 4778 }, P.moveForward = function () { 4779 return this.q1.moveForward(); 4780 }, P.moveTo = function (t) { 4781 this.q1.moveTo(t); 4782 }, P.invalidate = function () { 4783 this.b8 || this.b7(); 4784 }, P.update = function () { 4785 var t = this.widget().contents().filter(function () { 4786 return !(8 != this.nodeType && e(this).hasClass("theta-ignore") || e(this).hasClass("theta-carousel-inner-container")); 4787 });t.appendTo(this.e6), this.a2 = this.e6.children().filter(this.options.filter).map(function (t, i) { 4788 var s = e(i), 4789 n = s.data("theta-order");return n || (n = t), { b5: s, element: i, order: n }; 4790 }).toArray(), this.a2.sort(function (t, e) { 4791 return t.order - e.order; 4792 });for (var i = 0; i < this.a2.length; i++) { 4793 this.a2[i].index = i, this.a2[i].element.index = i, this.a2[i].b5.hasClass("theta-carousel-element") || (this.a2[i].b5.addClass("theta-carousel-element"), this.a2[i].b5.css({ position: "absolute" }), this.a2[i].b5.on("tap", e.proxy(this.moveTo, this, i)), this.a2[i].b5.click(e.proxy(function (t) { 4794 this.options.enabled && !this.options.autorotation && this.moveTo(t.index); 4795 }, this, this.a2[i].element))); 4796 }this.options.selectedIndex = Math.max(Math.min(this.options.selectedIndex, this.a2.length - 1), 0), 0 == this.a2.length && (this.options.selectedIndex = -1), this.initialized && (this.b2.update(), this.invalidate()), this.l1(); 4797 }, P.getIsInMotion = function () { 4798 return this.b8; 4799 }, P.getIsFallbackMode = function () { 4800 return this.q1.wwa(); 4801 }, P.widget = function () { 4802 return this.b5; 4803 }, P._setOption = function (t, e) { 4804 p.e5(P.options, t, e), "rotationAnimationDuration" !== t && "rotationAnimationEasing" !== t && ("filter" === t && this.update(), "perspective" === t && (this.e6.css({ perspective: e + "px" }), "scale" == this.options.mode3D && this.b7()), 0 != t.indexOf("path") && "fallback" !== t || (this.g1(), this._createRotationLogicController(), this.b7()), "selectedIndex" !== t && "distance" !== t && "mode3D" !== t && "numberOfElementsToDisplayRight" !== t && "numberOfElementsToDisplayLeft" !== t && "scaleX" !== t && "scaleY" !== t && "scaleZ" !== t && "allignElementsWithPathCoefficient" !== t && "fadeAwayBezierPoints" !== t && "fadeAwayNumberOfConfigurableElements" !== t && "rotationBezierPoints" !== t && "rotationNumberOfConfigurableElements" !== t && "rotationInvertForNegative" !== t && "rotationVectorX" !== t && "rotationVectorY" !== t && "rotationVectorZ" !== t && "sizeAdjustmentNumberOfConfigurableElements" !== t && "sizeAdjustmentBezierPoints" !== t && "shadowBlurRadius" !== t && "shadowSpreadRadius" !== t && "popoutSelectedShiftX" !== t && "popoutSelectedShiftY" !== t && "popoutSelectedShiftZ" !== t && "distanceInFallbackMode" !== t || this.b7(), t.indexOf("autorotation") != -1 && this.autoRotator.Qz4(), t.indexOf("allignElementsWithPath") == -1 && t.indexOf("fadeAway") == -1 && t.indexOf("rotation") == -1 && t.indexOf("sizeAdjustment") == -1 && t.indexOf("shadow") == -1 && t.indexOf("popoutSelected") == -1 && t.indexOf("reflection") == -1 || (this.g2(), this.b7()), "selectedIndex" === t && this.l1()); 4805 }, P._createRotationLogicController = function () { 4806 null != this.q1 && this.q1.destroy(), this.path.isEndless() ? this.q1 = new h(this) : this.q1 = new r(this), ("always" == this.options.fallback || "auto" == this.options.fallback && l.fallback()) && (this.q1 = new l(this, this.q1)), this.autoRotator && this.autoRotator.Qz4(); 4807 }, P.g2 = function () { 4808 for (var t = 0; t < this.h4.length; t++) { 4809 this.h4[t].revert(); 4810 }this.h4 = [], this.options.allignElementsWithPath && this.h4.push(new y(this, {})), this.options.fadeAway && this.h4.push(new w(this, {})), this.options.rotation && this.h4.push(new I(this, {})), this.options.sizeAdjustment && this.h4.push(new E(this, {})), this.options.shadow && this.h4.push(new _(this, {})), this.options.popoutSelected && this.h4.push(new b(this, {})), this.options.reflection && this.h4.push(new j(this, {})); 4811 }, P.g1 = function () { 4812 var t = null;if ("parabola" == this.options.path.type && (t = new v(this, this.options.path.settings)), "line" == this.options.path.type && (t = new x(this, this.options.path.settings)), "cubic" == this.options.path.type && (t = new f(this, this.options.path.settings)), "archimedes_spiral" == this.options.path.type && (t = new d(this, this.options.path.settings)), "ellipse" == this.options.path.type && (t = new g(this, this.options.path.settings)), "cubic_bezier" == this.options.path.type && (t = new m(this, this.options.path.settings)), null == t) throw "path " + this.options.path.type + " is not supported.";this.path = t, this.options.path.settings = this.path.settings; 4813 }, P.k8 = function () { 4814 this.widget().trigger("change", { index: this.options.selectedIndex }), this.l1(); 4815 }, P.l1 = function () { 4816 for (var t = 0; t < this.a2.length; t++) { 4817 t === this.options.selectedIndex ? this.a2[t].b5.addClass("theta-current-item") : this.a2[t].b5.removeClass("theta-current-item"); 4818 } 4819 }, P.e2 = function () { 4820 this.b8 = !0, this.widget().addClass("theta-in-motion"), this.widget().trigger("motionStart", { index: this.options.selectedIndex }); 4821 }, P.h2 = function () { 4822 this.c2.h3(!1), this.widget().removeClass("theta-in-motion"), this.b8 = !1, this.widget().trigger("motionEnd", { index: this.options.selectedIndex }); 4823 }, P.e3 = function (t) { 4824 this.options.selectedIndex != t && (this.options.selectedIndex = t, this.k8()), this.b7(); 4825 }, P._k7 = function (t) { 4826 return this.q1.consumeMotion(t); 4827 }, P.q8 = function (t) { 4828 this.q1.handleMotionEnd(t); 4829 }, P.b7 = function (t) { 4830 return this.q1.alignElements(t); 4831 }, P.b9 = function () { 4832 var t = e(".theta-carousel-inner-container", this.widget());return new u(t.width(), t.height()); 4833 }, P._create(); 4834 }, e.theta.carousel.defaultOptions = P, e.theta.carousel.version = M, e.fn.theta_carousel = function (t) { 4835 var i = arguments, 4836 s = !1, 4837 n = null, 4838 o = this.each(function () { 4839 var o = e(this), 4840 a = o.data("theta.carousel");if (a) { 4841 if ("string" == typeof t) { 4842 if ("function" == typeof a[t]) { 4843 var r = Array.prototype.slice.call(i, 1);s = !0, n = a[t].apply(a, r); 4844 }"option" == t && (2 == i.length && (s = !0, n = p.e6(a.options, i[1])), 3 == i.length && a._setOption(i[1], i[2])); 4845 } else { 4846 var h = e.extend(!0, {}, t);e.each(h, e.proxy(o.data("theta.carousel")._setOption, o.data("theta.carousel"))); 4847 } 4848 } else new e.theta.carousel(this, t); 4849 });return s ? n : o; 4850 }; 4851 }(jQuery); 4852 }, { "./a1/b7.js": 1, "./a1/b8.js": 3, "./a1/a2.js": 4, "./a1/effect_reflection.js": 5, "./a1/a3.js": 6, "./a1/a4.js": 7, "./a1/e2.js": 8, "./Qz3.js": 9, "./b2.js": 13, "./b3.js": 14, "./c1.js": 15, "./endless_rotation_logic_controller.js": 16, "./Qwq.js": 17, "./b6.js": 18, "./b5.js": 20, "./b9.
4852js": 21, "./paths/a5.js": 22, "./paths/a9.js": 24, "./paths/a6.js": 25, "./paths/a7.js": 26, "./paths/a8.js": 27, "./paths/e5.js": 28, "./rotation_logic_controller.js": 31, "./e6": 32, "./e4.js": 34 }], 13: [function (t, e, i) { 4853 e.exports = function (t) { 4854 this.e1 = t, this.k3 = !1, this.h5 = null, this.queue = [], this.distance = [], this.h7 = null, this.R = function () { 4855 this.queue = [], this.distance = []; 4856 }, this.animate = function (t, e, i, s, n) { 4857 "undefined" == typeof s && (s = null), "undefined" == typeof n && (n = null), this.addDistance(Math.abs(e - t)), this.queue.length > 5 || (this.queue.push({ from: t, to: e, k5: i, easing: s, duration: n }), this.k3 || this.h6()); 4858 }, this.completeCurrentImmediately = function () { 4859 null != this.h7 && this.h7.stop(!0, !0); 4860 }, this.h6 = function () { 4861 if (this.queue.length > 0) { 4862 var t = this.queue[0];this.queue = this.queue.slice(1), this.h5 = t.k5, this.h7 = $(t);var e = Math.abs(t.from - t.to), 4863 i = null == t.easing ? this.getEasing(e) : t.easing, 4864 s = (null == t.duration ? this.e1.options.rotationAnimationDuration : t.duration) * this.g3(e);this.h7.animate({ from: t.to }, { easing: i, duration: s, start: $.proxy(this.onStart, this), step: $.proxy(this.k4, this), done: $.proxy(this.onDone, this), always: $.proxy(this.k9, this) }); 4865 } 4866 }, this.Q = function () { 4867 return this.queue.length > 0 ? this.queue[this.queue.length - 1].k5 : this.h5; 4868 }, this.onStart = function () { 4869 this.k3 = !0; 4870 }, this.k4 = function (t) { 4871 $(this).trigger("step", t); 4872 }, this.onDone = function () { 4873 $(this).trigger("done", this.h5); 4874 }, this.k9 = function () { 4875 this.k3 = !1, this.h6(), this.h7 = null; 4876 }, this.addDistance = function (t) { 4877 this.distance.push({ date: new Date(), value: t }), this.distance = $(this.distance).filter(function (t, e) { 4878 return new Date() - e.date < 5e3; 4879 }); 4880 }, this.w_a = function () { 4881 for (var t = 0, e = new Date(), i = 0; i < this.distance.length; i++) { 4882 var s = this.distance[i];e - s.date < this.e1.options.rotationAnimationDuration && (t += s.value); 4883 }return t; 4884 }, this.g3 = function (t) { 4885 return this.e1.options.autorotation ? 1 : 0 == this.w_a() ? 1 : 1 / (this.w_a() / t); 4886 }, this.getEasing = function (t) { 4887 return this.g3(t) > .4 ? this.e1.options.rotationAnimationEasing : "linear"; 4888 }; 4889 }; 4890 }, {}], 14: [function (t, e, i) { 4891 e.exports = function () { 4892 var t = {};$.each(["Quad", "Cubic", "Quart", "Quint", "Expo"], function (e, i) { 4893 t[i] = function (t) { 4894 return Math.pow(t, e + 2); 4895 }; 4896 }), $.extend(t, { Sine: function Sine(t) { 4897 return 1 - Math.cos(t * Math.PI / 2); 4898 }, Circ: function Circ(t) { 4899 return 1 - Math.sqrt(1 - t * t); 4900 }, Elastic: function Elastic(t) { 4901 return 0 === t || 1 === t ? t : -Math.pow(2, 8 * (t - 1)) * Math.sin((80 * (t - 1) - 7.5) * Math.PI / 15); 4902 }, Back: function Back(t) { 4903 return t * t * (3 * t - 2); 4904 }, Bounce: function Bounce(t) { 4905 for (var e, i = 4; t < ((e = Math.pow(2, --i)) - 1) / 11;) {}return 1 / Math.pow(4, 3 - i) - 7.5625 * Math.pow((3 * e - 2) / 22 - t, 2); 4906 } });var e = {};$.each(t, function (t, i) { 4907 e["easeIn" + t] = i, e["easeOut" + t] = function (t) { 4908 return 1 - i(1 - t); 4909 }, e["easeInOut" + t] = function (t) { 4910 return t < .5 ? i(2 * t) / 2 : 1 - i(t * -2 + 2) / 2; 4911 }; 4912 }), $.each(e, function (t, e) { 4913 "undefined" == typeof $.easing[t] && ($.easing[t] = e); 4914 }); 4915 }; 4916 }, {}], 15: [function (t, e, i) { 4917 function s(t) { 4918 t.update = function () { 4919 for (var t = !1, e = 0; e < this.e1.a2.length; e++) { 4920 var i = this.e1.a2[e], 4921 s = null;i.size && (s = i.size), i.size = { height: i.b5.height(), width: i.b5.width() }, s && s.height == i.size.height && s.width == i.size.width || (t = !0); 4922 }t && this.e1.invalidate(); 4923 }, t.destroy = function () { 4924 clearInterval(this.interval); 4925 }; 4926 }e.exports = function (t) { 4927 s(this), this.e1 = t, this.interval = setInterval($.proxy(this.update, this), 500), this.update(); 4928 }; 4929 }, {}], 16: [function (t, e, i) { 4930 function s(t) { 4931 t.moveToInternal = function (t) { 4932 var e = this.e1.options.selectedIndex - t, 4933 i = 0, 4934 s = !1;t > this.e1.options.selectedIndex ? i = this.e1.a2.length - t + this.e1.options.selectedIndex : (i = (this.e1.a2.length - this.e1.options.selectedIndex + t) * -1, s = !0);var n = e * this.w_a();(Math.abs(i) < Math.abs(e) || s && Math.abs(i) == Math.abs(e)) && (n = i * this.w_a()), this.e1.c2.h3(!0), this.e1.e2(), this.e1.f1.animate(0, n, t, 1 === Math.abs(i) ? null : "linear"); 4935 }, t.moveBack = function () { 4936 var t = this.e1.f1.k3 ? this.e1.f1.Q() : this.e1.options.selectedIndex;return t--, t < 0 && (t = this.e1.a2.length + t), this.e1.c2.h3(!0), this.e1.e2(), this.e1.f1.animate(0, this.w_a(), t, null), !0; 4937 }, t.moveForward = function () { 4938 var t = this.e1.f1.k3 ? this.e1.f1.Q() : this.e1.options.selectedIndex;return t++, t >= this.e1.a2.length && (t -= this.e1.a2.length), this.e1.c2.h3(!0), this.e1.e2(), this.e1.f1.animate(0, -1 * this.w_a(), t, null), !0; 4939 }, t.consumeMotion = function (t) { 4940 var e = this.e1.b7(t), 4941 i = parseInt(t / this.w_a(), 10), 4942 s = this.e1.options.selectedIndex;this.e1.options.selectedIndex -= i;var n = s - this.e1.options.selectedIndex;return this.e1.options.selectedIndex < 0 && (this.e1.options.selectedIndex = this.e1.options.selectedIndex % this.e1.a2.length + this.e1.a2.length, n = this.e1.a2.length - this.e1.options.selectedIndex + s), this.e1.options.selectedIndex >= this.e1.a2.length && (this.e1.options.selectedIndex = this.e1.options.selectedIndex % this.e1.a2.length, n = this.e1.a2.length - s + this.e1.options.selectedIndex, n *= -1), s != this.e1.options.selectedIndex && this.e1.k8(), { distance: n * this.w_a(), k2: e }; 4943 }, t.handleMotionEnd = function (t) { 4944 if (0 != t) { 4945 var e = this.e1.options.selectedIndex;Math.abs(t) > this.w_a() / 2 && (t < 0 ? e++ : e--);var i = !1;0 == this.e1.a2.length ? e = 0 : (e < 0 && (e = e % this.e1.a2.length + this.e1.a2.length, i = "back"), e >= this.e1.a2.length && (e %= this.e1.a2.length, i = "forward"));var s = 0;s = i ? "back" === i ? (this.e1.a2.length - e + this.e1.options.selectedIndex) * this.w_a() : (this.e1.a2.length - this.e1.options.selectedIndex + e) * this.w_a() * -1 : (this.e1.options.selectedIndex - e) * this.w_a();var n = Math.abs(this.e1.options.rotationAnimationDuration * (t / this.w_a()));n = Math.min(n, this.e1.options.rotationAnimationDuration / 2), this.e1.f1.animate(t, s, e, null, n); 4946 } 4947 }, t.alignElements = function (t) { 4948 if (0 == this.e1.a2.length || this.e1.options.selectedIndex < 0) return !1;this.e1.containerSize = this.e1.b9();var e = 0;"undefined" != typeof t && (e = t);for (var i = this.ca2(), s = this.k9(i), o = 0; o < this.e1.a2.length; o++) { 4949 this.e1.a2[o].isEndlessProcessed = !1; 4950 }for (var a = [], o = new n(this.e1, this.e1.options.selectedIndex); !o.isCycleCompleted(); o.moveNext()) { 4951 var r = this.q2(this.e1.a2[o.getCurrentIndex()], i + e, s);r && (this.e1.a2[o.getCurrentIndex()].isEndlessProcessed = !0), a[o.getCurrentIndex()] = r, i = this.b5(i, this.w_a()); 4952 }i = this.ca2();for (var o = new n(this.e1, this.e1.options.selectedIndex - 1); !o.isCycleCompleted() && !this.e1.a2[o.getCurrentIndex()].isEndlessProcessed; o.movePrev()) { 4953 i = this.decrementValue(i, this.w_a()), a[o.getCurrentIndex()] = this.q2(this.e1.a2[o.getCurrentIndex()], i + e, s); 4954 }for (var o = 0; o < this.e1.a2.length; o++) { 4955 this.base.q1(!a[o], this.e1.a2[o]); 4956 }return this.setZIndexes(), !1; 4957 }, t.q1 = function (t) {}; 4958 }e.exports = function (e) { 4959 var i = t("./rotation_logic_controller.js");this.base = new i(e), $.extend(this, this.base), s(this); 4960 };var n = function n(t, e) { 4961 this.currentIndex = e, this.currentIndex == -1 && (this.currentIndex = t.a2.length - 1), this.iterations = 0, this.e1 = t, this.moveNext = function () { 4962 this.currentIndex++, this.currentIndex == this.e1.a2.length && (this.currentIndex = 0), this.iterations++; 4963 }, this.movePrev = function () { 4964 this.currentIndex--, this.currentIndex == -1 && (this.currentIndex = this.e1.a2.length - 1), this.iterations--; 4965 }, this.isCycleCompleted = function () { 4966 return Math.abs(this.iterations) >= this.e1.a2.length; 4967 }, this.getCurrentIndex = function () { 4968 return this.currentIndex; 4969 }; 4970 }; 4971 }, { "./rotation_logic_controller.js": 31 }], 17: [function (t, e, i) { 4972 function s(t) { 4973 t.wwa = function () { 4974 return !0; 4975 }, t.w_a = function () { 4976 return this.e1.options.distanceInFallbackMode; 4977 }, t.ca2 = function () { 4978 return 0; 4979 }, t.b5 = function (t, e) { 4980 return t + e; 4981 }, t.decrementValue = function (t, e) { 4982 return t - e; 4983 }, t.c3 = function () { 4984 return -1 * this.b9(); 4985 }, t.b9 = function () { 4986 return (this.e1.containerSize.width + this.w_a()) / 2; 4987 }, t.q2 = function (t, e) { 4988 var i = e - t.size.width / 2 + this.e1.containerSize.width / 2, 4989 s = this.e1.containerSize.height / 2 - t.size.height / 2;t.b5.css({ transform: "", left: i + "px", top: s + "px" });var n = e > this.c3() && e < this.b9();return n ? t.b5.show() : t.b5.hide(), n; 4990 }, t.destroy = function () { 4991 this.base.destroy();for (var t = 0; t < this.e1.a2.length; t++) { 4992 this.e1.a2[t].b5.css({ left: "0", top: "0" }); 4993 } 4994 }; 4995 }function n() { 4996 if (document.body && void 0 !== document.body.style.perspective) return !0;var t = document.createElement("div"), 4997 e = t.style, 4998 i = ["Webkit", "Moz", "O", "Ms", "ms"], 4999 s = i.length;if (void 0 !== t.style.perspective) return !0;for (; --s > -1;) { 5000 if (void 0 !== e[i[s] + "Perspective"]) return !0; 5001 }return !1; 5002 }t("./e3.js");e.exports = function (t, e) { 5003 this.base = e, $.extend(this, this.base), s(this); 5004 }, e.exports.fallback = function () { 5005 return !n(); 5006 }; 5007 }
5007, { "./e3.js": 33 }], 18: [function (t, e, i) { 5008 function s(t) { 5009 t.update = function () { 5010 var t = this.e1.widget().width(), 5011 e = this.e1.widget().height(), 5012 i = null;if (0 != t && 0 != e && (null != this.e1.options.designedForWidth && null != this.e1.options.designedForHeight && (i = Math.min(t / this.e1.options.designedForWidth, e / this.e1.options.designedForHeight)), t != this.k8 || e != this._a1 || i != this.g3)) { 5013 var s = $(".theta-carousel-inner-container", this.e1.widget());null != i && (t /= i, e /= i, t / e < this.e1.options.designedForWidth / this.e1.options.designedForHeight ? e = t * (this.e1.options.designedForHeight / this.e1.options.designedForWidth) : t = e * (this.e1.options.designedForWidth / this.e1.options.designedForHeight), s.css({ left: this.e1.widget().width() / 2 - t / 2, top: this.e1.widget().height() / 2 - e / 2 })), t != this.k8 && (s.width(t), this.e1.invalidate(), this.k8 = t), e != this._a1 && (s.height(e), this.e1.invalidate(), this._a1 = e), i != this.g3 && (null == i ? s.css({ transform: "translate3d(0px,0px, 100000px)", position: "static" }) : s.css({ transform: "translate3d(0px,0px, 100000px) scale(" + i + ")", position: "relative" }), this.e1.invalidate(), this.g3 = i); 5014 } 5015 }, t.q8 = function () { 5016 return this.g3 ? this.g3 : 1; 5017 }, t.destroy = function () { 5018 clearInterval(this.interval); 5019 }; 5020 }e.exports = function (t) { 5021 s(this), this.e1 = t, this.interval = setInterval($.proxy(this.update, this), 200), this.update(), this.k8 = null, this._a1 = null, this.g3 = null; 5022 }; 5023 }, {}], 19: [function (t, e, i) { 5024 e.exports = function (t) { 5025 this.e1 = t, this.c2 = [], this.h8 = 0, this.k3 = !1, this.L = !1, this.l = !1, this.L3 = function (t) { 5026 this.c2.push({ date: new Date(), distance: t }), this.h1(); 5027 }, this.stop = function () { 5028 this.l = !1, $(this).stop(!1, !1); 5029 }, this.k1 = function () { 5030 if (this.L) { 5031 this.L = !1, this.l = !0, $(this).stop(!1, !1);var t = this.l1.l3 + this.l1.l0 - this.h8, 5032 e = this.l1.l2 * Math.abs(t / this.l1.l0), 5033 i = 100 * this.e1.options.inertiaHighFriction, 5034 s = e * e / (2 * i);e < 0 && (s *= -1);var n = s / (e / 2);$(this).animate({ h8: this.h8 + s }, { easing: "easeOutQuad", duration: 1e3 * n, step: $.proxy(this.k4, this), complete: $.proxy(this.l4, this), fail: $.proxy(this.onFail, this) }); 5035 } 5036 }, this.run = function (t) { 5037 var e = this.l5();if (this.c2 = [], 0 == e) return void $(this).trigger("complete");var i = 100 * this.e1.options.inertiaFriction, 5038 s = e * e / (2 * i);e < 0 && (s *= -1);var n = s / (e / 2);this.h8 = t, this.k3 = !0, this.L = !0, this.l1 = { l2: e, l0: s, l3: t }, $(this).animate({ h8: t + s }, { easing: "easeOutCirc", duration: 1e3 * n, step: $.proxy(this.k4, this), complete: $.proxy(this.l4, this), fail: $.proxy(this.onFail, this) }); 5039 }, this.k4 = function (t) { 5040 isNaN(t) || (this.h8 = t, $(this).trigger("step", t)); 5041 }, this.l4 = function () { 5042 this.k3 = !1, $(this).trigger("complete"); 5043 }, this.onFail = function () { 5044 this.l || (this.k3 = !1, $(this).trigger("stop")); 5045 }, this.h1 = function () { 5046 this.c2 = $(this.c2).filter(function (t, e) { 5047 return new Date() - e.date < 5e3; 5048 }); 5049 }, this.l5 = function () { 5050 for (var t = 0, e = new Date(), i = 0; i < this.c2.length; i++) { 5051 var s = this.c2[i];e - s.date < 200 && (t += s.distance); 5052 }return 5 * t; 5053 }; 5054 }; 5055 }, {}], 20: [function (t, e, i) { 5056 function s(t) { 5057 t.isVerticalRotation = function () { 5058 return this.e1.options.verticalRotation && !this.e1.q1.wwa(); 5059 }, t.getSensitivity = function () { 5060 return this.e1.q1.wwa() ? 1 : this.e1.options.sensitivity / this.e1.c3.q8(); 5061 }, t.isReadonly = function () { 5062 return !this.e1.options.enabled || this.e1.options.autorotation; 5063 }, t.L3 = function () { 5064 return this.e1.options.gesturesEnabled; 5065 }, t.h3 = function (t) { 5066 this.h9 = t; 5067 }, t.k3 = function () { 5068 return null == this.a2 || new Date() - this.a2 > 50; 5069 }, t.L1 = function () { 5070 this.a2 = new Date(); 5071 }, t.h8 = function (t) { 5072 this.e1._a3.h8(t), this.initialX = t; 5073 }, t.a3 = function (t) { 5074 var e = this.initialX - t;
5074e *= this.getSensitivity(), t = this.initialX - e, this.e1._a3.a3(t); 5075 }, t.onMousewheel = function (t) { 5076 if (this.e1.options.mousewheelEnabled && !this.isReadonly() && (t.preventDefault(), !this.e1.getIsInMotion())) { 5077 var e = !1, 5078 i = !1, 5079 s = t.originalEvent;t.deltaY && (1 == t.deltaY ? e = !0 : t.deltaY == -1 && (i = !0)), s.wheelDelta && (s.wheelDelta >= 120 ? e = !0 : s.wheelDelta <= -120 && (i = !0)), s.detail && (s.detail == -3 ? e = !0 : 3 == s.detail && (i = !0)), e && (this.getSensitivity() > 0 && this.e1.moveBack(), this.getSensitivity() < 0 && this.e1.moveForward()), i && (this.getSensitivity() < 0 && this.e1.moveBack(), this.getSensitivity() > 0 && this.e1.moveForward()); 5080 } 5081 }, t.onKeyDown = function (t) { 5082 this.e1.options.keyboardEnabled && (this.isReadonly() || (t.which != this.getBackKey() && t.which != this.getForwardKey() || t.preventDefault(), this.e1._a3.isInMotion || this.e1._a3.inertia.k3 || new Date() - this.L5 < this.e1.options.minKeyDownFrequency || (this.L5 = new Date(), t.which == this.getBackKey() && (this.getSensitivity() >
5082 0 && this.e1.moveBack(), this.getSensitivity() < 0 && this.e1.moveForward()), t.which == this.getForwardKey() && (this.getSensitivity() < 0 && this.e1.moveBack(), this.getSensitivity() > 0 && this.e1.moveForward())))); 5083 }, t.k8 = function (t) { 5084 this.isReadonly() || this.e1._a3.isInMotion || this.e1._a3.inertia.k3 || t.which != this.getBackKey() && t.which != this.getForwardKey() || this.e1.f1.R(); 5085 }, t.destroyable = function (t, e) { 5086 return this.a2[t] = e, e; 5087 }, t.destroy = function () { 5088 for (var t in this.a2) { 5089 this.e1.widget().off(t, this.a2[t]); 5090 } 5091 }, t.getForwardKey = function () { 5092 return this.e1.options.verticalRotation ? 40 : 37; 5093 }, t.getBackKey = function () { 5094 return this.e1.options.verticalRotation ? 38 : 39; 5095 }; 5096 }e.exports = function (t) { 5097 s(this), this.e1 = t, this.L5 = new Date(), this.a2 = null, this.h9 = !1, this.a2 = [], this.e1.widget().keyup(this.destroyable("keyup", $.proxy(this.k8, this))), this.e1.widget().keydown(this.destroyable("keydown", $.proxy(this.onKeyDown, this))), this.e1.widget().mousedown(this.destroyable("mousedown", $.proxy(function (t) { 5098 !this.isReadonly() && this.L3() && (this.e1.widget().focus(), this.h8(this.isVerticalRotation() ? t.pageY : t.pageX), t.preventDefault()); 5099 }, this))), this.e1.widget().mousemove(this.destroyable("mousemove", $.proxy(function (t) { 5100 !this.isReadonly() && this.L3() && (this.k3() && (this.L1(), this.a3(this.isVerticalRotation() ? t.pageY : t.pageX)), t.preventDefault()); 5101 }, this))), this.e1.widget().mouseleave(this.destroyable("mouseleave", $.proxy(function (t) { 5102 !this.isReadonly() && this.L3() && (this.h9 || (this.e1._a3.motionEnded(!0), t.preventDefault())); 5103 }, this))), this.e1.widget().mouseup(this.destroyable("mouseup", $.proxy(function (t) { 5104 !this.isReadonly() && this.L3() && (this.e1._a3.motionEnded(!0), t.preventDefault()); 5105 }, this))), "undefined" != typeof this.e1.widget().get(0).onmousewheel ? this.e1.widget().on("mousewheel", this.destroyable("mousewheel", $.proxy(this.onMousewheel, this))) : this.e1.widget().on("DOMMouseScroll", this.destroyable("DOMMouseScroll", $.proxy(this.onMousewheel, this))), this.e1.widget().on("touchstart", this.destroyable("touchstart", $.proxy(function (t) { 5106 !this.isReadonly() && this.L3() && this.h8(this.isVerticalRotation() ? t.originalEvent.touches[0].screenY : t.originalEvent.touches[0].screenX); 5107 }, this))), this.e1.widget().on("touchmove", this.destroyable("touchmove", $.proxy(function (t) { 5108 !this.isReadonly() && this.L3() && (this.k3() && (this.L1(), this.a3(this.isVerticalRotation() ? t.originalEvent.touches[0].screenY : t.originalEvent.touches[0].screenX)), t.preventDefault()); 5109 }, this))), this.e1.widget().on("touchend", this.destroyable("touchend", $.proxy(function (t) { 5110 !this.isReadonly() && this.L3() && this.e1._a3.motionEnded(!0); 5111 }, this))), this.e1.widget().on("touchcancel", this.destroyable("touchcancel", $.proxy(function (t) { 5112 !this.isReadonly() && this.L3() && this.e1._a3.motionEnded(!0); 5113 }, this))), this.e1.widget().on("taphold", this.destroyable("taphold", function (t) { 5114 t.preventDefault(); 5115 })); 5116 }; 5117 }, {}], 21: [function (t, e, i) { 5118 function s(t) { 5119 t.a1 = function () { 5120 return this.inertia.k3 || this.isInMotion; 5121 }, t.h8 = function (t) { 5122 this.inertia.k3 || (this.distance = 0), this.inertia.stop(), this.isInMotion = !0, this.L2 = t, this.raiseStart = !0; 5123 }, t.a3 = function (t) { 5124 this.isInMotion && (this.raiseStart && t != this.L2 && ($(this).trigger("start"), this.raiseStart = !1), this.inertia.L3(t - this.L2), this.a3Internal(t)); 5125 }, t.a3Internal = function (t) { 5126 this.distance += t - this.L2, this.L2 = t;var e = this.k7(this.distance);this.distance -= e.distance, e.k2 && this.inertia.k3 && this.inertia.k1(); 5127 }, t.motionEnded = function (t) { 5128 this.inertia.k3 || (this.isInMotion = !1, t ? this.inertia.run(this.L2) : ($(this).trigger("end", this.distance), this.distance = 0)); 5129 }, t.inertiaStop = function () { 5130 this.isInMotion = !1; 5131 }; 5132 }e.exports = function (e, i) { 5133 var n = t("./inertia.js");s(this), this.isInMotion = !1, this.L2 = null, this.distance = 0, this.k7 = i, this.inertia = new n(e), $(this.inertia).on("complete", $.proxy(this.motionEnded, this, !1)), $(this.inertia).on("stop", $.proxy(this.inertiaStop, this)), $(this.inertia).on("step", $.proxy(function (t, e) { 5134 this.a3Internal(e); 5135 }, this)); 5136 }; 5137 }, { "./inertia.js": 19 }], 22: [function (t, e, i) { 5138 e.exports = function (e, i) { 5139 var s = t("./K.js"), 5140 n = t("./../C.js"), 5141 o = new s(e, { fi: 10, flatness: 10 });$.extend(this, o), $.extend(this.settings, i), this.e7 = function (t) { 5142 var e = t * Math.PI * 2 / 360, 5143 i = this.settings.fi * t * Math.cos(e) / (2 * Math.PI), 5144 s = this.settings.fi * t * Math.sin(e) / (2 * Math.PI), 5145 o = -1 * Math.pow(t - this.a2(), 2) / this.settings.flatness;return new n(i, s, o); 5146 }, this.a2 = function () { 5147 return 450; 5148 }, this.c3 = function () { 5149 return 10; 5150 }, this.b9 = function () { 5151 return 650; 5152 }; 5153 }; 5154 }, { "./../C.js": 29, "./K.js": 23 }], 23: [function (t, e, i) { 5155 e.exports = function (e, i) { 5156 var s = t("./../h1.js"), 5157 n = t("./../e7.js");this.settings = { shiftX: 0, shiftY: 0, shiftZ: 0, rotationAngleXY: 0, rotationAngleZY: 0, rotationAngleZX: 0, rotateElements: !1, endless: !1 }, this.e1 = e, $.extend(this.settings, i), this.getContainerSize = function () { 5158 return this.e1.b9(); 5159 }, this.isEndless = function () { 5160 return this.settings.endless; 5161 }, this.c3 = function () { 5162 return null; 5163 }, this.b9 = function () { 5164 return null; 5165 }, this.a2 = function () { 5166 return 0; 5167 }, this.b5 = function (t, e) { 5168 return t + e; 5169 }, this.decrementValue = function (t, e) { 5170 return t - e; 5171 }, this.getPoint = function (t) { 5172 var e = this.e7(t);e.x = e.x + this.settings.shiftX, e.y = e.y + this.settings.shiftY, e.z = e.z + this.settings.shiftZ;var i = null;return i = this.rotate({ a: e.x, b: e.y }, { a: 0, b: 0 }, this.settings.rotationAngleXY), e.x = i.a, e.y = i.b, i = this.rotate({ a: e.z, b: e.y }, { a: 0, b: 0 }, this.settings.rotationAngleZY), e.z = i.a, e.y = i.b, i = this.rotate({ a: e.z, b: e.x }, { a: 0, b: 0 }, this.settings.rotationAngleZX), e.z = i.a, e.x = i.b, e; 5173 }, this.rotate = function (t, e, i) { 5174 if (0 == i) return t;var s = i * (Math.PI / 180), 5175 n = Math.cos(s), 5176 o = Math.sin(s), 5177 a = n * (t.a - e.a) - o * (t.b - e.b) + e.a, 5178 r = o * (t.a - e.a) + n * (t.b - e.b) + e.b;return t.a = a, t.b = r, t; 5179 }, this.a2Rotation = function () { 5180 if (!this.settings.rotateElements) return null;if (0 == this.settings.rotationAngleZY && 0 == this.settings.rotationAngleZX && 0 == this.settings.rotationAngleXY) return null;var t = new n();t.x = this.settings.rotationAngleZY, t.y = -1 * this.settings.rotationAngleZX, t.z = -1 * this.settings.rotationAngleXY;var e = -1 * t.length();return new s(t, e); 5181 }; 5182 }; 5183 }, { "./../h1.js": 30, "./../e7.js": 35 }], 24: [function (t, e, i) { 5184 e.exports = function (e, i) { 5185 var s = t("./K.js"), 5186 n = t("./../C.js"), 5187 o = new s(e, { wideness: 200 });$.extend(this, o), $.extend(this.settings, i), this.e7 = function (t) { 5188 var e = (t * t * t + 20 * t) / (1e3 * this.settings.wideness), 5189 i = -2 * Math.abs(e);return new n(t, e, i); 5190 }; 5191 }; 5192 }, { "./../C.js": 29, "./K.js": 23 }], 25: [function (t, e, i) { 5193 e.exports = function (e, i) { 5194 var s = t("./K.js"), 5195 n = t("./../C.js"), 5196 o = t("./../k8.js"), 5197 a = t("./../b4.js"), 5198 r = new s(e, { xyPathBezierPoints: { p1: { x: -100, y: 0 }, p2: { x: 0, y: 0 }, p3: { x: 0, y: 0 }, p4: { x: 100, y: 0 } }, xzPathBezierPoints: { p1: { x: -100, y: 0 }, p2: { x: 0, y: 0 }, p3: { x: 0, y: 0 }, p4: { x: 100, y: 0 } }, xyArcLengthBezierPoints: { p1: { x: 0, y: 0 }, p2: { x: 50, y: 50 }, p3: { x: 50, y: 50 }, p4: { x: 100, y: 100 } }, pathLength: 1e3, zeroPosition: .5, width: 1e3, height: 1e3, depth: 1e3 });$.extend(this, r), $.extend(this.settings, i), this.e7 = function (t) { 5199 var e = Math.abs(t - this.c3()), 5200 i = Math.abs(this.b9() - this.c3()), 5201 s = Math.min(e / i, 1), 5202 r = this.settings.xyPathBezierPoints, 5203 h = this.settings.xyArcLengthBezierPoints, 5204 l = this.settings.xzPathBezierPoints, 5205 c = o(r.p1, r.p2, r.p3, r.p4), 5206 u = o(l.p1, l.p2, l.p3, l.p4);s = a(s, h.p1, h.p2, h.p3, h.p4).y / 100;
5206var p = a(s, r.p1, r.p2, r.p3, r.p4), 5207 d = this.K(p.x, c.minX, c.maxX), 5208 f = this.K(p.y, c.minY, c.maxY), 5209 m = a(s, l.p1, l.p2, l.p3, l.p4).y;return m = this.K(m, u.minY, u.maxY), d = this.settings.width * d - this.settings.width / 2, f = this.settings.height * f * -1, m = this.settings.depth * m * -1, new n(d, f, m); 5210 }, this.K = function (t, e, i) { 5211 var s = Math.abs(i - e), 5212 n = Math.min(e, i);return 0 != s ? (t - n) / s : t - n; 5213 }, this.c3 = function () { 5214 return 0; 5215 }, this.b9 = function () { 5216 return this.settings.pathLength; 5217 }, this.a2 = function () { 5218 return this.settings.pathLength * this.settings.zeroPosition; 5219 }; 5220 }; 5221 }, { "./../b4.js": 10, "./../k8.js": 11, "./../C.js": 29, "./K.js": 23 }], 26: [function (t, e, i) { 5222 e.exports = function (e, i) { 5223 var s = t("./K.js"), 5224 n = t("./../C.js"), 5225 o = new s(e, { a: 200, b: 200 });$.extend(this, o), $.extend(this.settings, i), this.e7 = function (t) { 5226 t *= -1, t -= 180;var e = t * Math.PI * 2 / 360, 5227 i = this.settings.b * Math.sin(e), 5228 s = this.settings.a * Math.cos(e);return new n(s, 0, i); 5229 }, this.a2 = function () { 5230 return 90; 5231 }, this.c3 = function () { 5232 return this.settings.endless ? -90 : 0; 5233 }, this.b9 = function () { 5234 return this.settings.endless ? 270 : 180; 5235 }; 5236 }; 5237 }, { "./../C.js": 29, "./K.js": 23 }], 27: [function (t, e, i) { 5238 e.exports = function (e, i) { 5239 var s = t("./K.js"), 5240 n = t("./../C.js"), 5241 o = new s(e, {});$.extend(this, o), $.extend(this.settings, i), this.e7 = function (t) { 5242 var e = -1 * t;return new n(0, 0, e); 5243 }; 5244 }; 5245 }, { "./../C.js": 29, "./K.js": 23 }], 28: [function (t, e, i) { 5246 e.exports = function (e, i) { 5247 var s = t("./K.js"), 5248 n = t("./../C.js"), 5249 o = new s(e, { wideness: 200 });$.extend(this, o), $.extend(this.settings, i), this.e7 = function (t) { 5250 var e = -1 * t * t * (1 / this.settings.wideness);return new n(t, 0, e); 5251 }; 5252 }; 5253 }, { "./../C.js": 29, "./K.js": 23 }], 29: [function (t, e, i) { 5254 e.exports = function (t, e, i) { 5255 this.x = t, this.y = e, this.z = i; 5256 }; 5257 }, {}], 30: [function (t, e, i) { 5258 e.exports = function (t, e) { 5259 this.vector = t, this.angle = e, this.getString = function () { 5260 return "rotate3d(" + this.vector.x + ", " + this.vector.y + ", " + this.vector.z + ", " + this.angle + "deg)"; 5261 }; 5262 }; 5263 }, {}], 31: [function (t, e, i) { 5264 function s(t) { 5265 t.wwa = function () { 5266 return !1; 5267 }, t.w_a = function () { 5268 return this.e1.options.distance; 5269 }, t.ca2 = function () { 5270 return this.e1.path.a2(); 5271 }, t.b5 = function (t, e) { 5272 return this.e1.path.b5(t, e); 5273 }, t.decrementValue = function (t, e) { 5274 return this.e1.path.decrementValue(t, e); 5275 }, t.c3 = function () { 5276 return this.e1.path.c3(); 5277 }, t.b9 = function () { 5278 return this.e1.path.b9(); 5279 }, t.moveTo = function (t) { 5280 if (!this.e1._a3.a1() && (this.e1.f1.R(), this.e1.f1.completeCurrentImmediately(), t != this.e1.options.selectedIndex)) { 5281 if (t == this.e1.options.selectedIndex + 1) return void this.e1.moveForward();if (t == this.e1.options.selectedIndex - 1) return void this.e1.moveBack();t = Math.max(0, t), t = Math.min(t, this.e1.a2.length - 1), this.moveToInternal(t); 5282 } 5283 }, t.moveToInternal = function (t) { 5284 var e = this.w_a() * (this.e1.options.selectedIndex - t);this.e1.c2.h3(!0), this.e1.e2(), this.e1.f1.animate(0, e, t, "linear"); 5285 }, t.moveBack = function () { 5286 var t = this.e1.f1.k3 ? this.e1.f1.Q() : this.e1.options.selectedIndex;return t > 0 && (t--, this.e1.c2.h3(!0), this.e1.e2(), this.e1.f1.animate(0, this.w_a(), t, null), !0); 5287 }, t.moveForward = function () { 5288 var t = this.e1.f1.k3 ? this.e1.f1.Q() : this.e1.options.selectedIndex;return t < this.e1.a2.length - 1 && (t++, this.e1.c2.h3(!0), this.e1.e2(), this.e1.f1.animate(0, -1 * this.w_a(), t, null), !0); 5289 }, t.consumeMotion = function (t) { 5290 var e = this.e1.b7(t), 5291 i = this.w_a(), 5292 s = parseInt(t / i, 10), 5293 n = this.e1.options.selectedIndex;return this.e1.options.selectedIndex -= s, this.e1.options.selectedIndex = Math.max(0, this.e1.options.selectedIndex), this.e1.options.selectedIndex = Math.min(this.e1.options.selectedIndex, this.e1.a2.length - 1), n != this.e1.options.selectedIndex && this.e1.k8(), { distance: (n - this.e1.options.selectedIndex) * i, k2: e }; 5294 }, t.handleMotionEnd = function (t) { 5295 if (0 != t) { 5296 var e = this.e1.options.selectedIndex;Math.abs(t) > this.w_a() / 2 && (t < 0 ? e++ : e--), 0 == this.e1.a2.length ? e = 0 : (e = Math.max(0, e), e = Math.min(e, this.e1.a2.length - 1));var i = (this.e1.options.selectedIndex - e) * this.w_a(), 5297 s = Math.abs(this.e1.options.rotationAnimationDuration * (t / this.w_a()));s = Math.min(s, this.e1.options.rotationAnimationDuration / 2), this.e1.f1.animate(t, i, e, null, s); 5298 } 5299 }, t.alignElements = function (t) { 5300 if (0 == this.e1.a2.length || this.e1.options.selectedIndex < 0) return !1;this.e1.containerSize = this.e1.b9();var e = 0;"undefined" != typeof t && (e = t);var i = !1;(0 == this.e1.options.selectedIndex && e > 0 || this.e1.options.selectedIndex == this.e1.a2.length - 1 && e < 0) && (e = Math.pow(Math.abs(e), .7) * (e / Math.abs(e)), i = !0);var s = this.ca2(), 5301 n = 0;(0 == this.e1.options.selectedIndex && e > 0 || this.e1.options.selectedIndex == this.e1.a2.length - 1 && e < 0) && (n = e);for (var o = this.k9(s + n), a = this.e1.options.selectedIndex; a < this.e1.a2.length; a++) { 5302 this.q2(this.e1.a2[a], s + e, o), s = this.b5(s, this.w_a()); 5303 }s = this.ca2();for (var a = this.e1.options.selectedIndex - 1; a >= 0; a--) { 5304 s = this.decrementValue(s, this.w_a()), this.q2(this.e1.a2[a], s + e, o); 5305 }return this.setZIndexes(), i; 5306 }, t.q2 = function (t, e, i) { 5307 if (this.setElementVisibility(i, t, e)) { 5308 var s = this.e1.path.getPoint(e), 5309 o = new n();o.translateZ = s.z * this.e1.options.scaleZ, o.translateX = s.x * this.e1.options.scaleX + this.e1.containerSize.width / 2 - t.size.width / 2, o.translateY = s.y * this.e1.options.scaleY + this.e1.containerSize.height / 2 - t.size.height / 2;var a = this.e1.path.a2Rotation();a && o.rotations.push(a), "scale" == this.e1.options.mode3D && (o.scale = this.e1.options.perspective / (this.e1.options.perspective - o.translateZ), o.translateZ = 0);for (var r = 0; r < this.e1.h4.length; r++) { 5310 "positioning" === this.e1.h4[r].applyPhase && this.e1.h4[r].apply(o, t, e); 5311 }return o.apply(t.element), t.location = s, !0; 5312 }return !1; 5313 }, t.setZIndexes = function () { 5314 for (var t = [], e = 0; e < this.e1.a2.length; e++) { 5315 var i = this.e1.a2[e];i.location && t.push(i); 5316 }t.sort(function (t, e) { 5317 return t.location.z - e.location.z; 5318 });for (var e = 0; e < t.length; e++) { 5319 t[e].b5.get(0).style.zIndex = e; 5320 } 5321 }, t.k9 = function (t) { 5322 var e = t, 5323 i = [];return null != this.e1.options.numberOfElementsToDisplayLeft && i.push({ from: this.decrementValue(e, this.w_a() * (this.e1.options.numberOfElementsToDisplayLeft + 1)), to: this.decrementValue(e, this.w_a() * this.e1.options.numberOfElementsToDisplayLeft), hide: "before" }), null != this.e1.options.numberOfElementsToDisplayRight && i.push({ from: this.b5(e, this.w_a() * this.e1.options.numberOfElementsToDisplayRight), to: this.b5(e, this.w_a() * (this.e1.options.numberOfElementsToDisplayRight + 1)), hide: "after" }), i; 5324 }, t.setElementVisibility = function (t, e, i) { 5325 var s = e.b5, 5326 n = !1;if (null != this.c3() && i < this.c3() || null != this.b9() && i > this.b9()) n = !0;else { 5327 0 == t.length && s.css({ opacity: 1 });for (var o = 0; o < t.length; o++) { 5328 var a = t[o];if ("before" == a.hide && i <= a.from || "after" == a.hide && i >= a.to) { 5329 n = !0;break; 5330 }if (i > a.from && i < a.to) { 5331 var r = a.to - a.from, 5332 h = Math.abs(i - ("after" == a.hide ? a.from : a.to)), 5333 l = (r - h) / r;s.css({ opacity: l });break; 5334 }s.css({ opacity: 1 }); 5335 } 5336 }return this.q1(n, e), !n; 5337 }, t.destroy = function () { 5338 for (var t = 0; t < this.e1.a2.length; t++) { 5339 this.e1.a2[t].b5.css({ left: "0", top: "0", transform: "", opacity: "1" }), this.e1.a2[t].b5.show(); 5340 } 5341 }, t.q1 = function (t, e) { 5342 t ? e.b5.hide() : e.b5.show(); 5343 }; 5344 }var n = t("./e3.js");e.exports = function (t) { 5345 this.e1 = t, s(this); 5346 }; 5347 }
5347, { "./e3.js": 33 }], 32: [function (t, e, i) { 5348 e.exports = function (t, e) { 5349 this.width = t, this.height = e; 5350 }; 5351 }, {}], 33: [function (t, e, i) { 5352 e.exports = function () { 5353 this.translateX = 0, this.translateY = 0, this.translateZ = 0, this.scale = 1, this.scaleX = 1, this.scaleY = 1, this.scaleZ = 1, this.rotations = [], this.apply = function (t) { 5354 var e = "";0 == this.translateX && 0 == this.translateY && 0 == this.translateZ || (e = "translate3d(" + this.translateX + "px, " + this.translateY + "px, " + this.translateZ + "px)"), 1 != this.scale && (e += " scale(" + this.scale + ")"), 1 != this.scaleX && (e += " scaleX(" + this.scaleX + ")"), 1 != this.scaleY && (e += " scaleY(" + this.scaleY + ")"), 1 != this.scaleZ && (e += " scaleZ(" + this.scaleZ + ")");for (var i = 0; i < this.rotations.length; i++) { 5355 e += " " + this.rotations[i].getString(); 5356 }t.style.transform = e, t.style.webkitTransform = e, t.style.msTransform = e; 5357 }; 5358 }; 5359 }, {}], 34: [function (t, e, i) { 5360 var s = function s() { 5361 this.e6 = function (t, e) { 5362 for (var i = e.split("."), s = t, n = 0; n < i.length; n++) { 5363 s = s[i[n]]; 5364 }return s; 5365 }, this.e5 = function (t, e, i) { 5366 for (var s = e.split("."), n = t, o = 0; o < s.length - 1; o++) { 5367 n = n[s[o]]; 5368 }n[s[s.length - 1]] = i; 5369 }; 5370 };e.exports = new s(); 5371 }, {}], 35: [function (t, e, i) { 5372 e.exports = function () { 5373 this.x = 0, this.y = 0, this.z = 0, this.e7 = function (t, e) { 5374 this.x = e.x - t.x, this.y = e.y - t.y, this.z = e.z - t.z; 5375 }, this.normalize = function () { 5376 var t = this.length();this.x /= t, this.y /= t, this.z /= t; 5377 }, this.length = function () { 5378 return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); 5379 }, this.angle = function (t) { 5380 var e = this.x * t.x + this.y * t.y + this.z * t.z, 5381 i = this.length(), 5382 s = Math.sqrt(t.x * t.x + t.y * t.y + t.z * t.z), 5383 n = e / (i * s), 5384 o = Math.acos(n);return this.z > t.z && (o *= -1), 180 * o / Math.PI; 5385 }, this.Qz2 = function () { 5386 var t = new vector();return t.y = this.y, t.z = this.z, t.x = -1 * (this.y * t.y + this.z * t.z) / this.x, t; 5387 }; 5388 }; 5389 }, {}] }, {}, [12]); 5390/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(0))) 5391 5392/***/ }), 5393/* 34 */, 5394/* 35 */, 5395/* 36 */, 5396/* 37 */, 5397/* 38 */, 5398/* 39 */ 5399/***/ (function(module, exports) { 5400 5401;(function(window){ 5402var hadGlobal = 'Modernizr' in window; 5403var oldGlobal = window.Modernizr; 5404/*! modernizr 3.5.0 (Custom Build) | MIT * 5405 * https://modernizr.com/download/?-backgroundblendmode-bgsizecover-cssfilters-csstransforms-csstransforms3d-csstransitions-cssvhunit-cssvwunit-flexbox-svg-setclasses !*/ 5406!function(e,t,n){function r(e,t){return typeof e===t}function s(){var e,t,n,s,i,o,a;for(var l in x)if(x.hasOwnProperty(l)){if(e=[],t=x[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(s=r(t.fn,"function")?t.fn():t.fn,i=0;i<e.length;i++)o=e[i],a=o.split("."),1===a.length?Modernizr[a[0]]=s:(!Modernizr[a[0]]||Modernizr[a[0]]instanceof Boolean||(Modernizr[a[0]]=new Boolean(Modernizr[a[0]])),Modernizr[a[0]][a[1]]=s),S.push((s?"":"no-")+a.join("-"))}}function i(e){var t=C.className,n=Modernizr._config.classPrefix||"";if(b&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),b?C.className.baseVal=t:C.className=t)}function o(e,t){return!!~(""+e).indexOf(t)}function a(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):b?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function l(){var e=t.body;return e||(e=a(b?"svg":"body"),e.fake=!0),e}function u(e,n,r,s){var i,o,u,f,d="modernizr",p=a("div"),c=l();if(parseInt(r,10))for(;r--;)u=a("div"),u.id=s?s[r]:d+(r+1),p.appendChild(u);return i=a("style"),i.type="text/css",i.id="s"+d,(c.fake?c:p).appendChild(i),c.appendChild(p),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),p.id=d,c.fake&&(c.style.background="",c.style.overflow="hidden",f=C.style.overflow,C.style.overflow="hidden",C.appendChild(c)),o=n(p,e),c.fake?(c.parentNode.removeChild(c),C.style.overflow=f,C.offsetHeight):p.parentNode.removeChild(p),!!o}function f(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function d(t,n,r){var s;if("getComputedStyle"in e){s=getComputedStyle.call(e,t,n);var i=e.console;if(null!==s)r&&(s=s.getPropertyValue(r));else if(i){var o=i.error?"error":"log";i[o].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else s=!n&&t.currentStyle&&t.currentStyle[r];return s}function p(t,r){var s=t.length;if("CSS"in e&&"supports"in e.CSS){for(;s--;)if(e.CSS.supports(f(t[s]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];
5406s--;)i.push("("+f(t[s])+":"+r+")");return i=i.join(" or "),u("@supports ("+i+") { #modernizr { position: absolute; } }",function(e){return"absolute"==d(e,null,"position")})}return n}function c(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function m(e,t,s,i){function l(){f&&(delete P.style,delete P.modElem)}if(i=r(i,"undefined")?!1:i,!r(s,"undefined")){var u=p(e,s);if(!r(u,"undefined"))return u}for(var f,d,m,v,g,h=["modernizr","tspan","samp"];!P.style&&h.length;)f=!0,P.modElem=a(h.shift()),P.style=P.modElem.style;for(m=e.length,d=0;m>d;d++)if(v=e[d],g=P.style[v],o(v,"-")&&(v=c(v)),P.style[v]!==n){if(i||r(s,"undefined"))return l(),"pfx"==t?v:!0;try{P.style[v]=s}catch(y){}if(P.style[v]!=g)return l(),"pfx"==t?v:!0}return l(),!1}function v(e,t){return function(){return e.apply(t,arguments)}}function g(e,t,n){var s;for(var i in e)if(e[i]in t)return n===!1?e[i]:(s=t[e[i]],r(s,"function")?v(s,n||t):s);return!1}function h(e,t,n,s,i){var o=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+T.join(o+" ")+o).split(" ");return r(t,"string")||r(t,"undefined")?m(a,t,s,i):(a=(e+" "+E.join(o+" ")+o).split(" "),g(a,t,n))}function y(e,t,r){return h(e,n,n,t,r)}var x=[],w={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){x.push({name:e,fn:t,options:n})},addAsyncTest:function(e){x.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=w,Modernizr=new Modernizr;var S=[],C=t.documentElement,b="svg"===C.nodeName.toLowerCase(),_="Moz O ms Webkit",T=w._config.usePrefixes?_.split(" "):[];w._cssomPrefixes=T;var z={elem:a("modernizr")};Modernizr._q.push(function(){delete z.elem});var P={style:z.elem.style};Modernizr._q.unshift(function(){delete P.style});var E=w._config.usePrefixes?_.toLowerCase().split(" "):[];w._domPrefixes=E,w.testAllProps=h,w.testAllProps=y,Modernizr.addTest("bgsizecover",y("backgroundSize","cover")),Modernizr.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var k=function(t){var r,s=j.length,i=e.CSSRule;if("undefined"==typeof i)return n;if(!t)return!1;if(t=t.replace(/^@/,""),r=t.replace(/-/g,"_").toUpperCase()+"_RULE",r in i)return"@"+t;for(var o=0;s>o;o++){var a=j[o],l=a.toUpperCase()+"_"+r;if(l in i)return"@-"+a.toLowerCase()+"-"+t}return!1};w.atRule=k;var N=w.prefixed=function(e,t,n){return 0===e.indexOf("@")?k(e):(-1!=e.indexOf("-")&&(e=c(e)),t?h(e,t,n):h(e,"pfx"))};Modernizr.addTest("backgroundblendmode",N("backgroundBlendMode","text"));var j=w._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];w._prefixes=j;var A="CSS"in e&&"supports"in e.CSS,L="supportsCSS"in e;Modernizr.addTest("supports",A||L),Modernizr.addTest("cssfilters",function(){if(Modernizr.supports)return y("filter","blur(2px)");var e=a("a");return e.style.cssText=j.join("filter:blur(2px); "),!!e.style.length&&(t.documentMode===n||t.documentMode>9)}),Modernizr.addTest("flexbox",y("flexBasis","1px",!0)),Modernizr.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&y("transform","scale(1)",!0)});var O=w.testStyles=u;Modernizr.addTest("csstransforms3d",function(){var e=!!y("perspective","1px",!0),t=Modernizr._config.usePrefixes;if(e&&(!t||"webkitPerspective"in C.style)){var n,r="#modernizr{width:0;height:0}";Modernizr.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",O(r+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),Modernizr.addTest("csstransitions",y("transition","all",!0)),O("#modernizr { height: 50vh; }",function(t){var n=parseInt(e.innerHeight/2,10),r=parseInt(d(t,null,"height"),10);Modernizr.addTest("cssvhunit",r==n)}),O("#modernizr { width: 50vw; }",function(t){var n=parseInt(e.innerWidth/2,10),r=parseInt(d(t,null,"width"),10);Modernizr.addTest("cssvwunit",r==n)}),s(),i(S),delete w.addTest,delete w.addAsyncTest;for(var R=0;R<Modernizr._q.length;R++)Modernizr._q[R]();e.Modernizr=Modernizr}(window,document); 5407module.exports = window.Modernizr; 5408if (hadGlobal) { window.Modernizr = oldGlobal; } 5409else { delete window.Modernizr; } 5410})(window); 5411 5412/***/ }), 5413/* 40 */, 5414/* 41 */, 5415/* 42 */, 5416/* 43 */, 5417/* 44 */ 5418/***/ (function(module, exports, __webpack_require__) { 5419 5420__webpack_require__(8); 5421module.exports = __webpack_require__(10); 5422 5423 5424/***/ }) 5425],[44]); 5426//# sourceMappingURL=main.js.map
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.