1(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["/scripts/app"],{ 2
3/***/ "./resources/assets/scripts/app.js": 4/*!*****************************************!*\ 5 !*** ./resources/assets/scripts/app.js ***! 6 \*****************************************/ 7/*! no exports provided */ 8/***/ (function(module, __webpack_exports__, __webpack_require__) { 9 10"use strict"; 11__webpack_require__.r(__webpack_exports__); 12/* WEBPACK VAR INJECTION */(function($) {/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery"); 13/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); 14/* harmony import */ var bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap/dist/js/bootstrap.js"); 15/* harmony import */ var bootstrap__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(bootstrap__WEBPACK_IMPORTED_MODULE_1__); 16/* harmony import */ var _block_videos__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block-videos */ "./resources/assets/scripts/block-videos.js"); 17/* harmony import */ var _block_videos__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_block_videos__WEBPACK_IMPORTED_MODULE_2__); 18/* harmony import */ var _print_form_summary__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./print-form-summary */ "./resources/assets/scripts/print-form-summary.js"); 19/* harmony import */ var _print_form_summary__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_print_form_summary__WEBPACK_IMPORTED_MODULE_3__); 20/* harmony import */ var _cta_block_equal_height__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cta-block-equal-height */ "./resources/assets/scripts/cta-block-equal-height.js"); 21/* harmony import */ var _cta_block_equal_height__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_cta_block_equal_height__WEBPACK_IMPORTED_MODULE_4__); 22/* harmony import */ var _docknav_height__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./docknav-height */ "./resources/assets/scripts/docknav-height.js"); 23/* harmony import */ var _docknav_height__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_docknav_height__WEBPACK_IMPORTED_MODULE_5__); 24/* harmony import */ var _live_chat_popup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./live-chat-popup */ "./resources/assets/scripts/live-chat-popup.js"); 25/* harmony import */ var _live_chat_popup__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_live_chat_popup__WEBPACK_IMPORTED_MODULE_6__); 26/* harmony import */ var _tabs_deep_link__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tabs-deep-link */ "./resources/assets/scripts/tabs-deep-link.js"); 27/* harmony import */ var _tabs_deep_link__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_tabs_deep_link__WEBPACK_IMPORTED_MODULE_7__); 28/* harmony import */ var _jquery_fancybox3_min_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./jquery.fancybox3.min.js */ "./resources/assets/scripts/jquery.fancybox3.min.js"); 29/* harmony import */ var _jquery_fancybox3_min_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_jquery_fancybox3_min_js__WEBPACK_IMPORTED_MODULE_8__); 30/* harmony import */ var _rebelware_middleware_utm_tracking__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./rebelware-middleware-utm-tracking */ "./resources/assets/scripts/rebelware-middleware-utm-tracking.js"); 31/* harmony import */ var _rebelware_middleware_utm_tracking__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_rebelware_middleware_utm_tracking__WEBPACK_IMPORTED_MODULE_9__); 32/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sidebar */ "./resources/assets/scripts/sidebar.js"); 33/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_sidebar__WEBPACK_IMPORTED_MODULE_10__); 34/* harmony import */ var _hero_video_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./hero-video.js */ "./resources/assets/scripts/hero-video.js"); 35/* harmony import */ var _hero_video_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_hero_video_js__WEBPACK_IMPORTED_MODULE_11__); 36
37 // import './tinyslider'; 38 39 40 41 42 43 44 45 46 47 48 49document.addEventListener('DOMContentLoaded', function () { 50 var ondemand_events = document.querySelectorAll('.cat_on-demand'); 51 ondemand_events.forEach(function (_event) { 52 var event_wrapper = _event.closest('.tribe-events-calendar-list__event-row'); 53 54 if (event_wrapper) { 55 var large_date = event_wrapper.querySelector('.tribe-events-calendar-list__event-date-tag-datetime'); 56 var small_date = event_wrapper.querySelector('time.tribe-events-calendar-list__event-datetime'); 57 large_date.style.opacity = 0; 58 small_date.style.opacity = 0; 59 } 60 61 var single_event = _event.closest(".single-content"); 62 63 if (single_event) { 64 var single_event_date = single_event.querySelector('.tribe-events-schedule'); 65 single_event_date.style.opacity = 0; 66 } 67 }); 68}); // import simpleParallax from 'simple-parallax-js'; 69 70var fancy_inline_links = $('a[href*="youtube"], a[href*="vimeo"], a[href*=".pdf"]:not([download])'); //console.log(fancy_inline_links, "links"); 71 72if (fancy_inline_links.length > 0 && window.outerWidth > 640) { 73 fancy_inline_links.each(function (k, link) { 74 $(link).attr("data-fancybox", "link"); 75 }); 76} 77 78$(document).on("click", ".mega-menu .mega-sub-menu .mega-sub-menu .mega-menu-item-has-children > .mega-menu-link", function (e) { 79 e.preventDefault(); 80 var ele = $(this); 81 ele.next().toggleClass("show"); 82}); 83$(window).on("load", function () { 84 if ($(".gform_validation_errors").length > 0) { 85 $('html,body').animate({ 86 scrollTop: $(".gform_validation_errors").offset().top - 50 87 }); 88 } 89 90 $('.simple-banner').attr("role", "banner"); 91 $('#simple-banner-close-button').on("click", function () { 92 $('.block-hero').css("margin-top", $(".banner").outerHeight() + "px"); 93 }); 94}); 95 96function check_consent() { 97 var checkboxes = document.querySelectorAll(".ginput_container_consent input"); 98 checkboxes.forEach(function (check) { 99 check.setAttribute('checked', true); 100 }); 101} 102 103function add_3rd_tier_pages_to_desktop_nav() { 104 var suspect_pages = document.querySelectorAll(".mega-menu .mega-sub-menu .mega-sub-menu .mega-menu-item-has-children > .mega-menu-link"); 105 suspect_pages.forEach(function (page) { 106 var text = page.innerHTML; 107 var href = page.getAttribute('href'); 108 var dropdown = page.nextElementSibling; 109 dropdown.innerHTML = '<li class="d-none d-lg-block mega-menu-item mega-menu-item-type-post_type mega-menu-item-object-page"><a class="mega-menu-link" href="' + href + '">
109' + text + '</a></li>' + dropdown.innerHTML; 110 }); 111} 112 113function set_focus_on_summary() { 114 var summary = document.querySelector('#Summary button'); 115 116 if (summary) { 117 summary.focus(); 118 } 119} 120 121$(function () { 122 var items = $('[data-fancybox^="gallery"]'); // console.log(items,"fanc items"); 123 124 $('[data-fancybox^="gallery"]').fancybox({ 125 thumbs: { 126 autoStart: true, 127 hideOnClose: true 128 } 129 }); 130 add_3rd_tier_pages_to_desktop_nav(); 131 check_consent(); 132 check_banner(); 133 set_focus_on_summary(); 134 var modals = $('.video-modal'); 135 modals.each(function (k, v) { 136 $(v).on("hidden.bs.modal", function () { 137 // console.log("hidden bs:") 138 var iframe = $(v).find("iframe"); 139 var temp = iframe.attr("src"); 140 iframe.attr("src", ""); 141 setTimeout(function () { 142 iframe.attr("src", temp); 143 }, 100); 144 }); 145 }); 146 var search_input = document.querySelector("input#search"); 147 148 if (search_input) { 149 window.onload = function () { 150 var input = search_input.focus(); 151 }; 152 } 153 154 if ($('.carousel').length > 0) { 155 $('.carousel').carousel(); 156 } 157}); // Detect whether the user is running IE11 158 159var isIE11 = !!window.MSInputMethodContext && !!document.documentMode; // // Passive event listeners 160// jQuery.event.special.touchstart = { 161// setup: function( _, ns, handle ) { 162// this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") }); 163// } 164// }; 165// jQuery.event.special.touchmove = { 166// setup: function( _, ns, handle ) { 167// this.addEventListener("touchmove", handle, { passive: !ns.includes("noPreventDefault") }); 168// } 169// }; 170 171function is_touch_device() { 172 return !!('ontouchstart' in window); 173} 174 175$(document).ready(function () { 176 /** 177 * Parallax images in feature blocks 178 */ 179 // if(!isIE11 && window.innerWidth > 640 && !window.matchMedia('(prefers-reduced-motion: reduce)').matches) { 180 // var ParallaxBlocks = document.querySelectorAll('.is-style-parallax'); 181 // // console.log(ParallaxBlocks, "parallax blocks"); 182 // ParallaxBlocks.forEach((block) => { 183 // // console.log(block.dataset,"block"); 184 // new simpleParallax(block.querySelector('.parallax-img'), { 185 // overflow: (block.dataset.overflow !== undefined) ? block.dataset.overflow : true, 186 // scale: (block.dataset.scale !== undefined) ? block.dataset.scale : 2, 187 // orientation: (block.dataset.orientation !== undefined) ? block.dataset.orientation : "up", 188 // delay: 0, 189 // maxTransition: (block.dataset.maxTransition !== undefined) ? block.dataset.maxTransition : "100%" 190 // }); 191 // }); 192 // } 193 // Hamburger Menu 194 $('.hamburger').click(function () { 195 $(this).toggleClass('is-active'); 196 }); //Location page collapse 197 198 if ($(window).width() < 700) { 199 $('.mobilecollapse').addClass('collapse'); 200 } 201 202 $('.mobiletoggleButton').click(function () { 203 if ($(this).hasClass("collapsed")) { 204 $(this).addClass('mobileminusPlus'); 205 $(this).removeClass('mobileplusMinus'); 206 } else { 207 $(this).addClass('mobileplusMinus'); 208 $(this).removeClass('mainminusPlus'); 209 } 210 }); 211 $('.maintoggleButton').click(function () { 212 if ($(this).hasClass("collapsed")) { 213 $(this).addClass('mainminusPlus'); 214 $(this).removeClass('mainplusMinus'); 215 } else { 216 $(this).addClass('mainplusMinus'); 217 $(this).removeClass('mainminusPlus'); 218 } 219 }); 220 $('.faqToggle').click(function () { 221 if ($(this).hasClass("collapsed")) { 222 $(this).addClass('minusPlus'); 223 $(this).removeClass('plusMinus'); 224 $(this).removeClass('collapsed'); 225 } else { 226 $(this).addClass('plusMinus'); 227 $(this).removeClass('minusPlus'); 228 $(this).addClass('collapsed'); 229 } 230 }); 231}); 232 233function check_banner() { 234 var simple_banner = document.getElementById('simple-banner'); // console.log(simple_banner, "banner"); 235 236 if (!simple_banner) { 237 var hero = document.querySelector("#hero"); 238 239 if (hero) { 240 hero.classList.add("banner-check"); 241 } 242 } 243} 244 245function isInViewObserverInit(e) { 246 var options = { 247 root: null, 248 rootMargin: '20px', 249 threshold: [0, 0.1, 0.20, 0.30, 0.40, 0.5, 0.60, 0.70, 0.80, 0.9, 1] 250 }; 251 252 if ("IntersectionObserver" in window) { 253 var inView = new IntersectionObserver(function (e, n) { 254 e.forEach(function (e) { 255 if (e.isIntersecting) { 256 // console.log(e); 257 var _n = e.target; 258 _n.dataset.iRatio = e.intersectionRatio; 259 260 if (_n.dataset.isInViewWatcher !== '') { 261 if (e.intersectionRatio >= _n.dataset.isInViewWatcher) { 262 _n.classList.add("isInView"); // console.log("is In view: " + e.intersectionRatio + " >= " + n.dataset.isInViewWatcher) 263 264 265 inView.unobserve(_n); 266 } 267 } else { 268 _n.classList.add("isInView"); 269 270 inView.unobserve(_n); 271 } 272 } 273 }); 274 }, options); 275 e.forEach(function (e) { 276 inView.observe(e); 277 }); 278 } else { 279 e.forEach(function (e) { 280 var n = e.target; 281 n.classList.add("isInView"); 282 }); 283 } 284} 285 286document.addEventListener("DOMContentLoaded", function () { 287 var e = [].slice.call(document.querySelectorAll("[data-is-in-view-watcher]")); 288 isInViewObserverInit(e); 289}); 290$(function () { 291 // $('.collapse').on('hidden.bs.collapse', function () { 292 // if(jQuery('.block-featuredfaq .collapse.show').length == 0){ 293 // $(this).collapse('show'); 294 // } 295 // }); 296 $(window).on("scroll", function (e) { 297 e.stopPropagation(); 298 299 if (window.pageYOffset >= 1500) { 300 $('.back2top').addClass("show"); 301 } else { 302 $('.back2top').removeClass("show"); 303 } 304 }); 305 $('.back2top').on("click", function (e) { 306 e.preventDefault(); 307 e.stopPropagation(); 308 $("html, body").animate({ 309 scrollTop: 0 310 }, 500); 311 $(this).addClass("is-active"); 312 }); 313}); 314var phone = "()-+. 0123456789"; 315var numb = "0123456789"; 316var zip = "0123456789-"; 317var alpha = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789"; 318 319function res(t, v) { 320 var w = ""; 321 var i, 322 x = 0; 323 324 for (i = 0; i < t.value.length; i++) { 325 x = t.value.charAt(i);
326 if (v.indexOf(x, 0) != -1) w += x; 327 } 328 329 t.value = w; 330} 331 332var zip_fields = document.querySelectorAll('[autocomplete="postal-code"]'); 333zip_fields.forEach(function (_zip) { 334 _zip.addEventListener('keyup', function (event) { 335 res(event.target, zip); 336 }); 337}); 338/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ "jquery"))) 339 340/***/ }), 341
342/***/ "./resources/assets/scripts/block-videos.js": 343/*!**************************************************!*\ 344 !*** ./resources/assets/scripts/block-videos.js ***! 345 \**************************************************/ 346/*! no static exports found */ 347/***/ (function(module, exports, __webpack_require__) { 348 349/* WEBPACK VAR INJECTION */(function($) {var video_block = document.querySelector('.video-embed'); 350 351if (video_block) { 352 var video_triggers = document.querySelectorAll('.video-titles ul li a'); 353 video_triggers.forEach(function (video_trigger) { 354 video_trigger.addEventListener('click', function (event) { 355 event.preventDefault(); 356 var iframe_src = this.getAttribute("href"); 357 var iframe_title = this.getAttribute("aria-label"); 358 var iframe_id = this.getAttribute("data-toggle"); 359 var iframe = document.querySelector('.video-embed iframe'); 360 iframe.setAttribute("id", iframe_id); 361 iframe.setAttribute("title", iframe_title); 362 iframe.setAttribute("src", iframe_src); 363 }); 364 }); 365 document.addEventListener("DOMContentLoaded", function () { 366 var iframe_src = video_triggers[0].getAttribute("href"); 367 var iframe_title = video_triggers[0].getAttribute("aria-label"); 368 var iframe_id = video_triggers[0].getAttribute("data-toggle"); 369 var iframe = document.createElement("iframe"); 370 iframe.setAttribute("id", iframe_id); 371 iframe.setAttribute("role", "presentation"); 372 iframe.setAttribute("title", iframe_title); 373 iframe.setAttribute("frameborder", "0"); 374 iframe.setAttribute("allowfullscreen", ""); 375 iframe.setAttribute("src", iframe_src); 376 $('#video_container').html(""); 377 $('#video_container').addClass("show"); 378 $('#video_container').append(iframe); 379 }); 380} 381/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ "jquery"))) 382 383/***/ }), 384
385/***/ "./resources/assets/scripts/cta-block-equal-height.js": 386/*!************************************************************!*\ 387 !*** ./resources/assets/scripts/cta-block-equal-height.js ***! 388 \************************************************************/ 389/*! no static exports found */ 390/***/ (function(module, exports) { 391 392var cta_block = document.querySelector('.block-cta'); 393 394if (cta_block) { 395 var ctas = cta_block.querySelectorAll('.featured-excerpt .featured-text'); 396 document.addEventListener('DOMContentLoaded', function (event) { 397 cta_block_equal_heights(ctas); 398 }); 399 window.addEventListener('resize', function (event) { 400 cta_block_equal_heights(ctas); 401 console.log("resize"); 402 }); 403} 404 405function cta_block_equal_heights(collection) { 406 reset_height_attr(collection); 407 var height = cta_block_get_max_height(collection); //console.log(height,"max height"); 408 409 collection.forEach(function (item) { 410 item.setAttribute("style", "height:" + height + "px"); 411 }); 412} 413 414function reset_height_attr(collection) { 415 collection.forEach(function (item) { 416 item.removeAttribute("style"); 417 }); 418} 419 420function cta_block_get_max_height(collection) { 421 max_height = 0; 422 collection.forEach(function (item) { 423 if (item.offsetHeight > max_height) { 424 max_height = item.offsetHeight; 425 } 426 }); 427 return max_height; 428} 429 430/***/ }), 431
432/***/ "./resources/assets/scripts/docknav-height.js": 433/*!****************************************************!*\ 434 !*** ./resources/assets/scripts/docknav-height.js ***! 435 \****************************************************/ 436/*! no static exports found */ 437/***/ (function(module, exports) { 438 439var header = document.querySelector('#app > header'); 440var mobile_nav = header.querySelector('.banner'); 441var simple_banner = document.querySelector('#simple-banner'); 442 443if (header && mobile_nav && simple_banner) { 444 banner_height = simple_banner.getBoundingClientRect().height; 445 mobile_nav.style.top = banner_height + "px"; 446 header.style.marginTop = banner_height + "px"; 447 448 window.onscroll = function () { 449 if (window.scrollY > 10) { 450 simple_banner.style.display = "none"; 451 } else { 452 simple_banner.style.display = "block"; 453 } 454 }; 455} 456 457/***/ }), 458
459/***/ "./resources/assets/scripts/hero-video.js": 460/*!************************************************!*\ 461 !*** ./resources/assets/scripts/hero-video.js ***! 462 \************************************************/ 463/*! no static exports found */ 464/***/ (function(module, exports) { 465 466document.addEventListener('DOMContentLoaded', function () { 467 console.log("hero video toggle script loaded"); 468 var hero = document.querySelector('#hero'); 469 if (!hero) return; 470 console.log("hero video toggle: her element found"); 471 var video = hero.querySelector('video.hero-video'); 472 var toggle = hero.querySelector('.hero-video-toggle'); 473 if (!video || !toggle) return; // Ensure initial state 474 475 video.muted = true; 476 toggle.addEventListener('click', function () { 477 console.log("hero video toggle: toggle clicked"); 478 video.muted = !video.muted; 479 480 if (video.muted) { 481 toggle.setAttribute('aria-pressed', 'true'); 482 toggle.setAttribute('aria-label', 'Turn sound on'); 483 } else { 484 toggle.setAttribute('aria-pressed', 'false'); 485 toggle.setAttribute('aria-label', 'Turn sound off'); 486 } 487 }); 488}); 489 490/***/ }), 491
vendor: 4,273 bytes, lines 492-577
492/***/ "./resources/assets/scripts/jquery.fancybox3.min.js": 493/*!**********************************************************!*\ 494 !*** ./resources/assets/scripts/jquery.fancybox3.min.js ***! 495 \**********************************************************/ 496/*! no static exports found */ 497/***/ (function(module, exports) { 498 499// ================================================== 500// fancyBox v3.5.7 501// 502// Licensed GPLv3 for open source use 503// or fancyBox Commercial License for commercial use 504// 505// http://fancyapps.com/fancybox/ 506// Copyright 2019 fancyApps 507// 508// ================================================== 509!function (t, e, n, o) { 510 "use strict"; 511 512 function i(t, e) { 513 var o, 514 i, 515 a, 516 s = [], 517 r = 0; 518 t && t.isDefaultPrevented() || (t.preventDefault(), e = e || {}, t && t.data && (e = h(t.data.options, e)), o = e.$target || n(t.currentTarget).trigger("blur"), (a = n.fancybox.getInstance()) && a.$trigger && a.$trigger.is(o) || (e.selector ? s = n(e.selector) : (i = o.attr("data-fancybox") || "", i ? (s = t.data ? t.data.items : [], s = s.length ? s.filter('[data-fancybox="' + i + '"]') : n('[data-fancybox="' + i + '"]')) : s = [o]), r = n(s).index(o), r < 0 && (r = 0), a = n.fancybox.open(s, e, r), a.$trigger = o)); 519 } 520 521 if (t.console = t.console || { 522 info: function info(t) {} 523 }, n) { 524 if (n.fn.fancybox) return void console.info("fancyBox already initialized"); 525 526 var a = { 527 closeExisting: !1, 528 loop: !1, 529 gutter: 50, 530 keyboard: !0, 531 preventCaptionOverlap: !0, 532 arrows: !0, 533 infobar: !0, 534 smallBtn: "auto", 535 toolbar: "auto", 536 buttons: ["zoom", "slideShow", "thumbs", "close"], 537 idleTime: 3, 538 protect: !1, 539 modal: !1, 540 image: { 541 preload: !1 542 }, 543 ajax: { 544 settings: { 545 data: { 546 fancybox: !0 547 } 548 } 549 }, 550 iframe: { 551 tpl: '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>', 552 preload: !0, 553 css: {}, 554 attr: { 555 scrolling: "auto" 556 } 557 }, 558 video: { 559 tpl: '<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>', 560 format: "", 561 autoStart: !0 562 }, 563 defaultType: "image", 564 animationEffect: "zoom", 565 animationDuration: 366, 566 zoomOpacity: "auto", 567 transitionEffect: "fade", 568 transitionDuration: 366, 569 slideClass: "", 570 baseClass: "", 571 baseTpl: '<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>', 572 spinnerTpl: '<div class="fancybox-loading"></div>', 573 errorTpl: '<div class="fancybox-error"><p>{{ERROR}}</p></div>', 574 btnTpl: { 575 download: '<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>', 576 zoom: '<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>', 577 close: '<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
577<path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>', 578 arrowLeft: '<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>', 579 arrowRight: '<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>', 580 smallBtn: '<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>' 581 }, 582 parentEl: "body", 583 hideScrollbar: !0, 584 autoFocus: !0, 585 backFocus: !0, 586 trapFocus: !0, 587 fullScreen: { 588 autoStart: !1 589 }, 590 touch: { 591 vertical: !0, 592 momentum: !0 593 }, 594 hash: null, 595 media: {}, 596 slideShow: { 597 autoStart: !1, 598 speed: 3e3 599 }, 600 thumbs: { 601 autoStart: 1, 602 hideOnClose: !0, 603 parentEl: ".fancybox-container", 604 axis: "y" 605 }, 606 wheel: "auto", 607 onInit: n.noop, 608 beforeLoad: n.noop, 609 afterLoad: n.noop, 610 beforeShow: n.noop, 611 afterShow: n.noop, 612 beforeClose: n.noop, 613 afterClose: n.noop, 614 onActivate: n.noop, 615 onDeactivate: n.noop, 616 clickContent: function clickContent(t, e) { 617 return "image" === t.type && "zoom"; 618 }, 619 clickSlide: "close", 620 clickOutside: "close", 621 dblclickContent: !1, 622 dblclickSlide: !1, 623 dblclickOutside: !1, 624 mobile: { 625 preventCaptionOverlap: !1, 626 idleTime: !1, 627 clickContent: function clickContent(t, e) { 628 return "image" === t.type && "toggleControls"; 629 }, 630 clickSlide: function clickSlide(t, e) { 631 return "image" === t.type ? "toggleControls" : "close"; 632 }, 633 dblclickContent: function dblclickContent(t, e) { 634 return "image" === t.type && "zoom"; 635 }, 636 dblclickSlide: function dblclickSlide(t, e) { 637 return "image" === t.type && "zoom"; 638 } 639 }, 640 lang: "en", 641 i18n: { 642 en: { 643 CLOSE: "Close", 644 NEXT: "Next", 645 PREV: "Previous", 646 ERROR: "The requested content cannot be loaded. <br/> Please try again later.", 647 PLAY_START: "Start slideshow", 648 PLAY_STOP: "Pause slideshow", 649 FULL_SCREEN: "Full screen", 650 THUMBS: "Thumbnails", 651 DOWNLOAD: "Download", 652 SHARE: "Share", 653 ZOOM: "Zoom" 654 }, 655 de: { 656 CLOSE: "Schließen", 657 NEXT: "Weiter", 658 PREV: "Zurück", 659 ERROR: "Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.", 660 PLAY_START: "Diaschau starten", 661 PLAY_STOP: "Diaschau beenden", 662 FULL_SCREEN: "Vollbild", 663 THUMBS: "Vorschaubilder", 664 DOWNLOAD: "Herunterladen", 665 SHARE: "Teilen", 666 ZOOM: "Vergrößern" 667 } 668 } 669 }, 670 s = n(t), 671 r = n(e), 672 c = 0, 673 l = function l(t) { 674 return t && t.hasOwnProperty && t instanceof n; 675 }, 676 d = function () { 677 return t.requestAnimationFrame || t.webkitRequestAnimationFrame || t.mozRequestAnimationFrame || t.oRequestAnimationFrame || function (e) { 678 return t.setTimeout(e, 1e3 / 60); 679 }; 680 }(), 681 u = function () { 682 return t.cancelAnimationFrame || t.webkitCancelAnimationFrame || t.mozCancelAnimationFrame || t.oCancelAnimationFrame || function (e) { 683 t.clearTimeout(e); 684 }; 685 }(), 686 f = function () { 687 var t, 688 n = e.createElement("fakeelement"), 689 o = { 690 transition: "transitionend", 691 OTransition: "oTransitionEnd", 692 MozTransition: "transitionend", 693 WebkitTransition: "webkitTransitionEnd" 694 }; 695 696 for (t in o) { 697 if (void 0 !== n.style[t]) return o[t]; 698 } 699 700 return "transitionend"; 701 }(), 702 p = function p(t) { 703 return t && t.length && t[0].offsetHeight; 704 }, 705 h = function h(t, e) { 706 var o = n.extend(!0, {}, t, e); 707 return n.each(e, function (t, e) { 708 n.isArray(e) && (o[t] = e); 709 }), o; 710 }, 711 g = function g(t) { 712 var o, i; 713 return !(!t || t.ownerDocument !== e) && (n(".fancybox-container").css("pointer-events", "none"), o = { 714 x: t.getBoundingClientRect().left + t.offsetWidth / 2, 715 y: t.getBoundingClientRect().top + t.offsetHeight / 2 716 }, i = e.elementFromPoint(o.x, o.y) === t, n(".fancybox-container").css("pointer-events", ""), i); 717 }, 718 b = function b(t, e, o) { 719 var i = this; 720 i.opts = h({ 721 index: o 722 }, n.fancybox.defaults), n.isPlainObject(e) && (i.opts = h(i.opts, e)), n.fancybox.isMobile && (i.opts = h(i.opts, i.opts.mobile)), i.id = i.opts.id || ++c, i.currIndex = parseInt(i.opts.index, 10) || 0, i.prevIndex = null, i.prevPos = null, i.currPos = 0, i.firstRun = !0, i.group = [], i.slides = {}, i.addContent(t), i.group.length && i.init(); 723 }; 724 725 n.extend(b.prototype, {
vendor: 4,482 bytes, lines 726-785
726 init: function init() { 727 var o, 728 i, 729 a = this, 730 s = a.group[a.currIndex], 731 r = s.opts; 732 r.closeExisting && n.fancybox.close(!0), n("body").addClass("fancybox-active"), !n.fancybox.getInstance() && !1 !== r.hideScrollbar && !n.fancybox.isMobile && e.body.scrollHeight > t.innerHeight && (n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:' + (t.innerWidth - e.documentElement.clientWidth) + "px;}</style>"), n("body").addClass("compensate-for-scrollbar")), i = "", n.each(r.buttons, function (t, e) { 733 i += r.btnTpl[e] || ""; 734 }), o = n(a.translate(a, r.baseTpl.replace("{{buttons}}", i).replace("{{arrows}}", r.btnTpl.arrowLeft + r.btnTpl.arrowRight))).attr("id", "fancybox-container-" + a.id).addClass(r.baseClass).data("FancyBox", a).appendTo(r.parentEl), a.$refs = { 735 container: o 736 }, ["bg", "inner", "infobar", "toolbar", "stage", "caption", "navigation"].forEach(function (t) { 737 a.$refs[t] = o.find(".fancybox-" + t); 738 }), a.trigger("onInit"), a.activate(), a.jumpTo(a.currIndex); 739 }, 740 translate: function translate(t, e) { 741 var n = t.opts.i18n[t.opts.lang] || t.opts.i18n.en; 742 return e.replace(/\{\{(\w+)\}\}/g, function (t, e) { 743 return void 0 === n[e] ? t : n[e]; 744 }); 745 }, 746 addContent: function addContent(t) { 747 var e, 748 o = this, 749 i = n.makeArray(t); 750 n.each(i, function (t, e) { 751 var i, 752 a, 753 s, 754 r, 755 c, 756 l = {}, 757 d = {}; 758 n.isPlainObject(e) ? (l = e, d = e.opts || e) : "object" === n.type(e) && n(e).length ? (i = n(e), d = i.data() || {}, d = n.extend(!0, {}, d, d.options), d.$orig = i, l.src = o.opts.src || d.src || i.attr("href"), l.type || l.src || (l.type = "inline", l.src = e)) : l = { 759 type: "html", 760 src: e + "" 761 }, l.opts = n.extend(!0, {}, o.opts, d), n.isArray(d.buttons) && (l.opts.buttons = d.buttons), n.fancybox.isMobile && l.opts.mobile && (l.opts = h(l.opts, l.opts.mobile)), a = l.type || l.opts.type, r = l.src || "", !a && r && ((s = r.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i)) ? (a = "video", l.opts.video.format || (l.opts.video.format = "video/" + ("ogv" === s[1] ? "ogg" : s[1]))) : r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i) ? a = "image" : r.match(/\.(pdf)((\?|#).*)?$/i) ? (a = "iframe", l = n.extend(!0, l, { 762 contentType: "pdf", 763 opts: { 764 iframe: { 765 preload: !1 766 } 767 } 768 })) : "#" === r.charAt(0) && (a = "inline")), a ? l.type = a : o.trigger("objectNeedsType", l), l.contentType || (l.contentType = n.inArray(l.type, ["html", "inline", "ajax"]) > -1 ? "html" : l.type), l.index = o.group.length, "auto" == l.opts.smallBtn && (l.opts.smallBtn = n.inArray(l.type, ["html", "inline", "ajax"]) > -1), "auto" === l.opts.toolbar && (l.opts.toolbar = !l.opts.smallBtn), l.$thumb = l.opts.$thumb || null, l.opts.$trigger && l.index === o.opts.index && (l.$thumb = l.opts.$trigger.find("img:first"), l.$thumb.length && (l.opts.$orig = l.opts.$trigger)), l.$thumb && l.$thumb.length || !l.opts.$orig || (l.$thumb = l.opts.$orig.find("img:first")), l.$thumb && !l.$thumb.length && (l.$thumb = null), l.thumb = l.opts.thumb || (l.$thumb ? l.$thumb[0].src : null), "function" === n.type(l.opts.caption) && (l.opts.caption = l.opts.caption.apply(e, [o, l])), "function" === n.type(o.opts.caption) && (l.opts.caption = o.opts.caption.apply(e, [o, l])), l.opts.caption instanceof n || (l.opts.caption = void 0 === l.opts.caption ? "" : l.opts.caption + ""), "ajax" === l.type && (c = r.split(/\s+/, 2), c.length > 1 && (l.src = c.shift(), l.opts.filter = c.shift())), l.opts.modal && (l.opts = n.extend(!0, l.opts, { 769 trapFocus: !0, 770 infobar: 0, 771 toolbar: 0, 772 smallBtn: 0, 773 keyboard: 0, 774 slideShow: 0, 775 fullScreen: 0, 776 thumbs: 0, 777 touch: 0, 778 clickContent: !1, 779 clickSlide: !1, 780 clickOutside: !1, 781 dblclickContent: !1, 782 dblclickSlide: !1, 783 dblclickOutside: !1 784 })), o.group.push(l); 785 }), Object.keys(o.slides).length && (o.updateControls(), (e = o.Thumbs
785) && e.isActive && (e.create(), e.focus())); 786 }, 787 addEvents: function addEvents() { 788 var e = this; 789 e.removeEvents(), e.$refs.container.on("click.fb-close", "[data-fancybox-close]", function (t) { 790 t.stopPropagation(), t.preventDefault(), e.close(t); 791 }).on("touchstart.fb-prev click.fb-prev", "[data-fancybox-prev]", function (t) { 792 t.stopPropagation(), t.preventDefault(), e.previous(); 793 }).on("touchstart.fb-next click.fb-next", "[data-fancybox-next]", function (t) { 794 t.stopPropagation(), t.preventDefault(), e.next(); 795 }).on("click.fb", "[data-fancybox-zoom]", function (t) { 796 e[e.isScaledDown() ? "scaleToActual" : "scaleToFit"](); 797 }), s.on("orientationchange.fb resize.fb", function (t) { 798 t && t.originalEvent && "resize" === t.originalEvent.type ? (e.requestId && u(e.requestId), e.requestId = d(function () { 799 e.update(t); 800 })) : (e.current && "iframe" === e.current.type && e.$refs.stage.hide(), setTimeout(function () { 801 e.$refs.stage.show(), e.update(t); 802 }, n.fancybox.isMobile ? 600 : 250)); 803 }
vendor: 8,499 bytes, lines 803-936
803), r.on("keydown.fb", function (t) { 804 var o = n.fancybox ? n.fancybox.getInstance() : null, 805 i = o.current, 806 a = t.keyCode || t.which; 807 if (9 == a) return void (i.opts.trapFocus && e.focus(t)); 808 if (!(!i.opts.keyboard || t.ctrlKey || t.altKey || t.shiftKey || n(t.target).is("input,textarea,video,audio,select"))) return 8 === a || 27 === a ? (t.preventDefault(), void e.close(t)) : 37 === a || 38 === a ? (t.preventDefault(), void e.previous()) : 39 === a || 40 === a ? (t.preventDefault(), void e.next()) : void e.trigger("afterKeydown", t, a); 809 }), e.group[e.currIndex].opts.idleTime && (e.idleSecondsCounter = 0, r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle", function (t) { 810 e.idleSecondsCounter = 0, e.isIdle && e.showControls(), e.isIdle = !1; 811 }), e.idleInterval = t.setInterval(function () { 812 ++e.idleSecondsCounter >= e.group[e.currIndex].opts.idleTime && !e.isDragging && (e.isIdle = !0, e.idleSecondsCounter = 0, e.hideControls()); 813 }, 1e3)); 814 }, 815 removeEvents: function removeEvents() { 816 var e = this; 817 s.off("orientationchange.fb resize.fb"), r.off("keydown.fb .fb-idle"), this.$refs.container.off(".fb-close .fb-prev .fb-next"), e.idleInterval && (t.clearInterval(e.idleInterval), e.idleInterval = null); 818 }, 819 previous: function previous(t) { 820 return this.jumpTo(this.currPos - 1, t); 821 }, 822 next: function next(t) { 823 return this.jumpTo(this.currPos + 1, t); 824 }, 825 jumpTo: function jumpTo(t, e) { 826 var o, 827 i, 828 a, 829 s, 830 r, 831 c, 832 l, 833 d, 834 u, 835 f = this, 836 h = f.group.length; 837 838 if (!(f.isDragging || f.isClosing || f.isAnimating && f.firstRun)) { 839 if (t = parseInt(t, 10), !(a = f.current ? f.current.opts.loop : f.opts.loop) && (t < 0 || t >= h)) return !1; 840 if (o = f.firstRun = !Object.keys(f.slides).length, r = f.current, f.prevIndex = f.currIndex, f.prevPos = f.currPos, s = f.createSlide(t), h > 1 && ((a || s.index < h - 1) && f.createSlide(t + 1), (a || s.index > 0) && f.createSlide(t - 1)), f.current = s, f.currIndex = s.index, f.currPos = s.pos, f.trigger("beforeShow", o), f.updateControls(), s.forcedDuration = void 0, n.isNumeric(e) ? s.forcedDuration = e : e = s.opts[o ? "animationDuration" : "transitionDuration"], e = parseInt(e, 10), i = f.isMoved(s), s.$slide.addClass("fancybox-slide--current"), o) return s.opts.animationEffect && e && f.$refs.container.css("transition-duration", e + "ms"), f.$refs.container.addClass("fancybox-is-open").trigger("focus"), f.loadSlide(s), void f.preload("image"); 841 c = n.fancybox.getTranslate(r.$slide), l = n.fancybox.getTranslate(f.$refs.stage), n.each(f.slides, function (t, e) { 842 n.fancybox.stop(e.$slide, !0); 843 }), r.pos !== s.pos && (r.isComplete = !1), r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"), i ? (u = c.left - (r.pos * c.width + r.pos * r.opts.gutter), n.each(f.slides, function (t, o) { 844 o.$slide.removeClass("fancybox-animated").removeClass(function (t, e) { 845 return (e.match(/(^|\s)fancybox-fx-\S+/g) || []).join(" "); 846 }); 847 var i = o.pos * c.width + o.pos * o.opts.gutter; 848 n.fancybox.setTranslate(o.$slide, { 849 top: 0, 850 left: i - l.left + u 851 }), o.pos !== s.pos && o.$slide.addClass("fancybox-slide--" + (o.pos > s.pos ? "next" : "previous")), p(o.$slide), n.fancybox.animate(o.$slide, { 852 top: 0, 853 left: (o.pos - s.pos) * c.width + (o.pos - s.pos) * o.opts.gutter 854 }, e, function () { 855 o.$slide.css({ 856 transform: "", 857 opacity: "" 858 }).removeClass("fancybox-slide--next fancybox-slide--previous"), o.pos === f.currPos && f.complete(); 859 }); 860 })) : e && s.opts.transitionEffect && (d = "fancybox-animated fancybox-fx-" + s.opts.transitionEffect, r.$slide.addClass("fancybox-slide--" + (r.pos > s.pos ? "next" : "previous")), n.fancybox.animate(r.$slide, d, e, function () { 861 r.$slide.removeClass(d).removeClass("fancybox-slide--next fancybox-slide--previous"); 862 }, !1)), s.isLoaded ? f.revealContent(s) : f.loadSlide(s), f.preload("image"); 863 } 864 }, 865 createSlide: function createSlide(t) { 866 var e, 867 o, 868 i = this; 869 return o = t % i.group.length, o = o < 0 ? i.group.length + o : o, !i.slides[t] && i.group[o] && (e = n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage), i.slides[t] = n.extend(!0, {}, i.group[o], { 870 pos: t, 871 $slide: e, 872 isLoaded: !1 873 }), i.updateSlide(i.slides[t])), i.slides[t]; 874 }, 875 scaleToActual: function scaleToActual(t, e, o) { 876 var i, 877 a, 878 s, 879 r, 880 c, 881 l = this, 882 d = l.current, 883 u = d.$content, 884 f = n.fancybox.getTranslate(d.$slide).width, 885 p = n.fancybox.getTranslate(d.$slide).height, 886 h = d.width, 887 g = d.height; 888 l.isAnimating || l.isMoved() || !u || "image" != d.type || !d.isLoaded || d.hasError || (l.isAnimating = !0, n.fancybox.stop(u), t = void 0 === t ? .5 * f : t, e = void 0 === e ? .5 * p : e, i = n.fancybox.getTranslate(u), i.top -= n.fancybox.getTranslate(d.$slide).top, i.left -= n.fancybox.getTranslate(d.$slide).left, r = h / i.width, c = g / i.height, a = .5 * f - .5 * h, s = .5 * p - .5 * g, h > f && (a = i.left * r - (t * r - t), a > 0 && (a = 0), a < f - h && (a = f - h)), g > p && (s = i.top * c - (e * c - e), s > 0 && (s = 0), s < p - g && (s = p - g)), l.updateCursor(h, g), n.fancybox.animate(u, { 889 top: s, 890 left: a, 891 scaleX: r, 892 scaleY: c 893 }, o || 366, function () { 894 l.isAnimating = !1; 895 }), l.SlideShow && l.SlideShow.isActive && l.SlideShow.stop()); 896 }, 897 scaleToFit: function scaleToFit(t) { 898 var e, 899 o = this, 900 i = o.current, 901 a = i.$content; 902 o.isAnimating || o.isMoved() || !a || "image" != i.type || !i.isLoaded || i.hasError || (o.isAnimating = !0, n.fancybox.stop(a), e = o.getFitPos(i), o.updateCursor(e.width, e.height), n.fancybox.animate(a, { 903 top: e.top, 904 left: e.left, 905 scaleX: e.width / a.width(), 906 scaleY: e.height / a.height() 907 }, t || 366, function () { 908 o.isAnimating = !1; 909 })); 910 }, 911 getFitPos: function getFitPos(t) { 912 var e, 913 o, 914 i, 915 a, 916 s = this, 917 r = t.$content, 918 c = t.$slide, 919 l = t.width || t.opts.width, 920 d = t.height || t.opts.height, 921 u = {}; 922 return !!(t.isLoaded && r && r.length) && (e = n.fancybox.getTranslate(s.$refs.stage).width, o = n.fancybox.getTranslate(s.$refs.stage).height, e -= parseFloat(c.css("paddingLeft")) + parseFloat(c.css("paddingRight")) + parseFloat(r.css("marginLeft")) + parseFloat(r.css("marginRight")), o -= parseFloat(c.css("paddingTop")) + parseFloat(c.css("paddingBottom")) + parseFloat(r.css("marginTop")) + parseFloat(r.css("marginBottom")), l && d || (l = e, d = o), i = Math.min(1, e / l, o / d), l *= i, d *= i, l > e - .5 && (l = e), d > o - .5 && (d = o), "image" === t.type ? (u.top = Math.floor(.5 * (o - d)) + parseFloat(c.css("paddingTop")), u.left = Math.floor(.5 * (e - l)) + parseFloat(c.css("paddingLeft"))) : "video" === t.contentType && (a = t.opts.width && t.opts.height ? l / d : t.opts.ratio || 16 / 9, d > l / a ? d = l / a : l > d * a && (l = d * a)), u.width = l, u.height = d, u); 923 }, 924 update: function update(t) { 925 var e = this; 926 n.each(e.slides, function (n, o) { 927 e.updateSlide(o, t); 928 }); 929 }, 930 updateSlide: function updateSlide(t, e) { 931 var o = this, 932 i = t && t.$content, 933 a = t.width || t.opts.width, 934 s = t.height || t.opts.height, 935 r = t.$slide; 936 o.adjustCaption(t), i && (a || s || "video" === t.contentType) && !t.hasError && (n.fancybox.stop(i), n.fancybox.setTranslate(i, o.getFitPos(t)), t.pos === o.currPos && (o.isAnimating = !1, o.updateCursor(
936))), o.adjustLayout(t), r.length && (r.trigger("refresh"), t.pos === o.currPos && o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar", r.get(0).scrollHeight > r.get(0).clientHeight)), o.trigger("onUpdate", t, e); 937 }, 938 centerSlide: function centerSlide(t) { 939 var e = this, 940 o = e.current, 941 i = o.$slide; 942 !e.isClosing && o && (i.siblings().css({ 943 transform: "", 944 opacity: "" 945 }), i.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"), n.fancybox.animate(i, { 946 top: 0, 947 left: 0, 948 opacity: 1 949 }, void 0 === t ? 0 : t, function () { 950 i.css({ 951 transform: "", 952 opacity: "" 953 }), o.isComplete || e.complete(); 954 }, !1)); 955 }, 956 isMoved: function isMoved(t) { 957 var e, 958 o, 959 i = t || this.current; 960 return !!i && (o = n.fancybox.getTranslate(this.$refs.stage), e = n.fancybox.getTranslate(i.$slide), !i.$slide.hasClass("fancybox-animated") && (Math.abs(e.top - o.top) > .5 || Math.abs(e.left - o.left) > .5)); 961 }, 962 updateCursor: function updateCursor(t, e) { 963 var o, 964 i, 965 a = this, 966 s = a.current, 967 r = a.$refs.container; 968 s && !a.isClosing && a.Guestures && (r.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"), o = a.canPan(t, e), i = !!o || a.isZoomable(), r.toggleClass("fancybox-is-zoomable", i), n("[data-fancybox-zoom]").prop("disabled", !i), o ? r.addClass("fancybox-can-pan") : i && ("zoom" === s.opts.clickContent || n.isFunction(s.opts.clickContent) && "zoom" == s.opts.clickContent(s)) ? r.addClass("fancybox-can-zoomIn") : s.opts.touch && (s.opts.touch.vertical || a.group.length > 1) && "video" !== s.contentType && r.addClass("fancybox-can-swipe")); 969 }, 970 isZoomable: function isZoomable() { 971 var t, 972 e = this, 973 n = e.current; 974 975 if (n && !e.isClosing && "image" === n.type && !n.hasError) { 976 if (!n.isLoaded) return !0; 977 if ((t = e.getFitPos(n)) && (n.width > t.width || n.height > t.height)) return !0; 978 } 979 980 return !1; 981 }, 982 isScaledDown: function isScaledDown(t, e) { 983 var o = this, 984 i = !1, 985 a = o.current, 986 s = a.$content; 987 return void 0 !== t && void 0 !== e ? i = t < a.width && e < a.height : s && (i = n.fancybox.getTranslate(s), i = i.width < a.width && i.height < a.height), i; 988 }, 989 canPan: function canPan(t, e) { 990 var o = this, 991 i = o.current, 992 a = null, 993 s = !1; 994 return "image" === i.type && (i.isComplete || t && e) && !i.hasError && (s = o.getFitPos(i), void 0 !== t && void 0 !== e ? a = { 995 width: t, 996 height: e 997 } : i.isComplete && (a = n.fancybox.getTranslate(i.$content)), a && s && (s = Math.abs(a.width - s.width) > 1.5 || Math.abs(a.height - s.height) > 1.5)), s; 998 }, 999 loadSlide: function loadSlide(t) { 1000 var e, 1001 o, 1002 i, 1003 a = this; 1004 1005 if (!t.isLoading && !t.isLoaded) { 1006 if (t.isLoading = !0, !1 === a.trigger("beforeLoad", t)) return t.isLoading = !1, !1; 1007 1008 switch (e = t.type, o = t.$slide, o.off("refresh").trigger("onReset").addClass(t.opts.slideClass), e) { 1009 case "image": 1010 a.setImage(t); 1011 break; 1012 1013 case "iframe": 1014 a.setIframe(t); 1015 break; 1016 1017 case "html": 1018 a.setContent(t, t.src || t.content); 1019 break; 1020 1021 case "video": 1022 a.setContent(t, t.opts.video.tpl.replace(/\{\{src\}\}/gi, t.src).replace("{{format}}", t.opts.videoFormat || t.opts.video.format || "").replace("{{poster}}", t.thumb || "")); 1023 break; 1024 1025 case "inline": 1026 n(t.src).length ? a.setContent(t, n(t.src)) : a.setError(t); 1027 break; 1028 1029 case "ajax": 1030 a.showLoading(t), i = n.ajax(n.extend({}, t.opts.ajax.settings, { 1031 url: t.src, 1032 success: function success(e, n) { 1033 "success" === n && a.setContent(t, e); 1034 }, 1035 error: function error(e, n) { 1036 e && "abort" !== n && a.setError(t); 1037 } 1038 })), o.one("onReset", function () { 1039 i.abort(); 1040 }); 1041 break; 1042 1043 default: 1044 a.setError(t); 1045 } 1046 1047 return !0; 1048 } 1049 }, 1050 setImage: function setImage(t) { 1051 var o, 1052 i = this; 1053 setTimeout(function () { 1054 var e = t.$image; 1055 i.isClosing || !t.isLoading || e && e.length && e[0].complete || t.hasError || i.showLoading(t); 1056 }, 50), i.checkSrcset(t), t.$content = n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")), !1 !== t.opts.preload && t.opts.width && t.opts.height && t.thumb && (t.width = t.opts.width, t.height = t.opts.height, o = e.createElement("img"), o.onerror = function () { 1057 n(this).remove(), t.$ghost = null; 1058 }, o.onload = function () { 1059 i.afterLoad(t); 1060 }, t.$ghost = n(o).addClass("fancybox-image").appendTo(t.$content).attr("src", t.thumb)), i.setBigImage(t); 1061 }, 1062 checkSrcset: function checkSrcset(e) { 1063 var n, 1064 o, 1065 i, 1066 a, 1067 s = e.opts.srcset || e.opts.image.srcset; 1068 1069 if (s) { 1070 i = t.devicePixelRatio || 1, a = t.innerWidth * i, o = s.split(",").map(function (t) { 1071 var e = {};
vendor: 21,357 bytes, lines 1072-1381
1072 return t.trim().split(/\s+/).forEach(function (t, n) { 1073 var o = parseInt(t.substring(0, t.length - 1), 10); 1074 if (0 === n) return e.url = t; 1075 o && (e.value = o, e.postfix = t[t.length - 1]); 1076 }), e; 1077 }), o.sort(function (t, e) { 1078 return t.value - e.value; 1079 }); 1080 1081 for (var r = 0; r < o.length; r++) { 1082 var c = o[r]; 1083 1084 if ("w" === c.postfix && c.value >= a || "x" === c.postfix && c.value >= i) { 1085 n = c; 1086 break; 1087 } 1088 } 1089 1090 !n && o.length && (n = o[o.length - 1]), n && (e.src = n.url, e.width && e.height && "w" == n.postfix && (e.height = e.width / e.height * n.value, e.width = n.value), e.opts.srcset = s); 1091 } 1092 }, 1093 setBigImage: function setBigImage(t) { 1094 var o = this, 1095 i = e.createElement("img"), 1096 a = n(i); 1097 t.$image = a.one("error", function () { 1098 o.setError(t); 1099 }).one("load", function () { 1100 var e; 1101 t.$ghost || (o.resolveImageSlideSize(t, this.naturalWidth, this.naturalHeight), o.afterLoad(t)), o.isClosing || (t.opts.srcset && (e = t.opts.sizes, e && "auto" !== e || (e = (t.width / t.height > 1 && s.width() / s.height() > 1 ? "100" : Math.round(t.width / t.height * 100)) + "vw"), a.attr("sizes", e).attr("srcset", t.opts.srcset)), t.$ghost && setTimeout(function () { 1102 t.$ghost && !o.isClosing && t.$ghost.hide(); 1103 }, Math.min(300, Math.max(1e3, t.height / 1600))), o.hideLoading(t)); 1104 }).addClass("fancybox-image").attr("src", t.src).appendTo(t.$content), (i.complete || "complete" == i.readyState) && a.naturalWidth && a.naturalHeight ? a.trigger("load") : i.error && a.trigger("error"); 1105 }, 1106 resolveImageSlideSize: function resolveImageSlideSize(t, e, n) { 1107 var o = parseInt(t.opts.width, 10), 1108 i = parseInt(t.opts.height, 10); 1109 t.width = e, t.height = n, o > 0 && (t.width = o, t.height = Math.floor(o * n / e)), i > 0 && (t.width = Math.floor(i * e / n), t.height = i); 1110 }, 1111 setIframe: function setIframe(t) { 1112 var e, 1113 o = this, 1114 i = t.opts.iframe, 1115 a = t.$slide; 1116 t.$content = n('<div class="fancybox-content' + (i.preload ? " fancybox-is-hidden" : "") + '"></div>').css(i.css).appendTo(a), a.addClass("fancybox-slide--" + t.contentType), t.$iframe = e = n(i.tpl.replace(/\{rnd\}/g, new Date().getTime())).attr(i.attr).appendTo(t.$content), i.preload ? (o.showLoading(t), e.on("load.fb error.fb", function (e) { 1117 this.isReady = 1, t.$slide.trigger("refresh"), o.afterLoad(t); 1118 }), a.on("refresh.fb", function () { 1119 var n, 1120 o, 1121 s = t.$content, 1122 r = i.css.width, 1123 c = i.css.height; 1124 1125 if (1 === e[0].isReady) { 1126 try { 1127 n = e.contents(), o = n.find("body"); 1128 } catch (t) {} 1129 1130 o && o.length && o.children().length && (a.css("overflow", "visible"), s.css({ 1131 width: "100%", 1132 "max-width": "100%", 1133 height: "9999px" 1134 }), void 0 === r && (r = Math.ceil(Math.max(o[0].clientWidth, o.outerWidth(!0)))), s.css("width", r || "").css("max-width", ""), void 0 === c && (c = Math.ceil(Math.max(o[0].clientHeight, o.outerHeight(!0)))), s.css("height", c || ""), a.css("overflow", "auto")), s.removeClass("fancybox-is-hidden"); 1135 } 1136 })) : o.afterLoad(t), e.attr("src", t.src), a.one("onReset", function () { 1137 try { 1138 n(this).find("iframe").hide().unbind().attr("src", "//about:blank"); 1139 } catch (t) {} 1140 1141 n(this).off("refresh.fb").empty(), t.isLoaded = !1, t.isRevealed = !1; 1142 }); 1143 }, 1144 setContent: function setContent(t, e) { 1145 var o = this; 1146 o.isClosing || (o.hideLoading(t), t.$content && n.fancybox.stop(t.$content), t.$slide.empty(), l(e) && e.parent().length ? ((e.hasClass("fancybox-content") || e.parent().hasClass("fancybox-content")) && e.parents(".fancybox-slide").trigger("onReset"), t.$placeholder = n("<div>").hide().insertAfter(e), e.css("display", "inline-block")) : t.hasError || ("string" === n.type(e) && (e = n("<div>").append(n.trim(e)).contents()), t.opts.filter && (e = n("<div>").html(e).find(t.opts.filter))), t.$slide.one("onReset", function () { 1147 n(this).find("video,audio").trigger("pause"), t.$placeholder && (t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(), t.$placeholder = null), t.$smallBtn && (t.$smallBtn.remove(), t.$smallBtn = null), t.hasError || (n(this).empty(), t.isLoaded = !1, t.isRevealed = !1); 1148 }), n(e).appendTo(t.$slide), n(e).is("video,audio") && (n(e).addClass("fancybox-video"), n(e).wrap("<div></div>"), t.contentType = "video", t.opts.width = t.opts.width || n(e).attr("width"), t.opts.height = t.opts.height || n(e).attr("height")), t.$content = t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(), t.$content.siblings().hide(), t.$content.length || (t.$content = t.$slide.wrapInner("<div></div>").children().first()), t.$content.addClass("fancybox-content"), t.$slide.addClass("fancybox-slide--" + t.contentType), o.afterLoad(t)); 1149 }, 1150 setError: function setError(t) { 1151 t.hasError = !0, t.$slide.trigger("onReset").removeClass("fancybox-slide--" + t.contentType).addClass("fancybox-slide--error"), t.contentType = "html", this.setContent(t, this.translate(t, t.opts.errorTpl)), t.pos === this.currPos && (this.isAnimating = !1); 1152 }, 1153 showLoading: function showLoading(t) { 1154 var e = this; 1155 (t = t || e.current) && !t.$spinner && (t.$spinner = n(e.translate(e, e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast")); 1156 }, 1157 hideLoading: function hideLoading(t) { 1158 var e = this; 1159 (t = t || e.current) && t.$spinner && (t.$spinner.stop().remove(), delete t.$spinner); 1160 }, 1161 afterLoad: function afterLoad(t) { 1162 var e = this; 1163 e.isClosing || (t.isLoading = !1, t.isLoaded = !0, e.trigger("afterLoad", t), e.hideLoading(t), !t.opts.smallBtn || t.$smallBtn && t.$smallBtn.length || (t.$smallBtn = n(e.translate(t, t.opts.btnTpl.smallBtn)).appendTo(t.$content)), t.opts.protect && t.$content && !t.hasError && (t.$content.on("contextmenu.fb", function (t) { 1164 return 2 == t.button && t.preventDefault(), !0; 1165 }), "image" === t.type && n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)), e.adjustCaption(t), e.adjustLayout(t), t.pos === e.currPos && e.updateCursor(), e.revealContent(t)); 1166 }, 1167 adjustCaption: function adjustCaption(t) { 1168 var e, 1169 n = this, 1170 o = t || n.current, 1171 i = o.opts.caption, 1172 a = o.opts.preventCaptionOverlap, 1173 s = n.$refs.caption, 1174 r = !1; 1175 s.toggleClass("fancybox-caption--separate", a), a && i && i.length && (o.pos !== n.currPos ? (e = s.clone().appendTo(s.parent()), e.children().eq(0).empty().html(i), r = e.outerHeight(!0), e.empty().remove()) : n.$caption && (r = n.$caption.outerHeight(!0)), o.$slide.css("padding-bottom", r || "")); 1176 }, 1177 adjustLayout: function adjustLayout(t) { 1178 var e, 1179 n, 1180 o, 1181 i, 1182 a = this, 1183 s = t || a.current; 1184 s.isLoaded && !0 !== s.opts.disableLayoutFix && (s.$content.css("margin-bottom", ""), s.$content.outerHeight() > s.$slide.height() + .5 && (o = s.$slide[0].style["padding-bottom"], i = s.$slide.css("padding-bottom"), parseFloat(i) > 0 && (e = s.$slide[0].scrollHeight, s.$slide.css("padding-bottom", 0), Math.abs(e - s.$slide[0].scrollHeight) < 1 && (n = i), s.$slide.css("padding-bottom", o))), s.$content.css("margin-bottom", n)); 1185 }, 1186 revealContent: function revealContent(t) { 1187 var e, 1188 o, 1189 i, 1190 a, 1191 s = this, 1192 r = t.$slide, 1193 c = !1, 1194 l = !1, 1195 d = s.isMoved(t), 1196 u = t.isRevealed; 1197 return t.isRevealed = !0, e = t.opts[s.firstRun ? "animationEffect" : "transitionEffect"], i = t.opts[s.firstRun ? "animationDuration" : "transitionDuration"], i = parseInt(void 0 === t.forcedDuration ? i : t.forcedDuration, 10), !d && t.pos === s.currPos && i || (e = !1), "zoom" === e && (t.pos === s.currPos && i && "image" === t.type && !t.hasError && (l = s.getThumbPos(t)) ? c = s.getFitPos(t) : e = "fade"), "zoom" === e ? (s.isAnimating = !0, c.scaleX = c.width / l.width, c.scaleY = c.height / l.height, a = t.opts.zoomOpacity, "auto" == a && (a = Math.abs(t.width / t.height - l.width / l.height) > .1), a && (l.opacity = .1, c.opacity = 1), n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"), l), p(t.$content), void n.fancybox.animate(t.$content, c, i, function () { 1198 s.isAnimating = !1, s.complete(); 1199 })) : (s.updateSlide(t), e ? (n.fancybox.stop(r), o = "fancybox-slide--" + (t.pos >= s.prevPos ? "next" : "previous") + " fancybox-animated fancybox-fx-" + e, r.addClass(o).removeClass("fancybox-slide--current"), t.$content.removeClass("fancybox-is-hidden"), p(r), "image" !== t.type && t.$content.hide().show(0), void n.fancybox.animate(r, "fancybox-slide--current", i, function () { 1200 r.removeClass(o).css({ 1201 transform: "", 1202 opacity: "" 1203 }), t.pos === s.currPos && s.complete(); 1204 }, !0)) : (t.$content.removeClass("fancybox-is-hidden"), u || !d || "image" !== t.type || t.hasError || t.$content.hide().fadeIn("fast"), void (t.pos === s.currPos && s.complete()))); 1205 }, 1206 getThumbPos: function getThumbPos(t) { 1207 var e, 1208 o, 1209 i, 1210 a, 1211 s, 1212 r = !1, 1213 c = t.$thumb; 1214 return !(!c || !g(c[0])) && (e = n.fancybox.getTranslate(c), o = parseFloat(c.css("border-top-width") || 0), i = parseFloat(c.css("border-right-width") || 0), a = parseFloat(c.css("border-bottom-width") || 0), s = parseFloat(c.css("border-left-width") || 0), r = { 1215 top: e.top + o, 1216 left: e.left + s, 1217 width: e.width - i - s, 1218 height: e.height - o - a, 1219 scaleX: 1, 1220 scaleY: 1 1221 }, e.width > 0 && e.height > 0 && r); 1222 }, 1223 complete: function complete() { 1224 var t, 1225 e = this, 1226 o = e.current, 1227 i = {}; 1228 !e.isMoved() && o.isLoaded && (o.isComplete || (o.isComplete = !0, o.$slide.siblings().trigger("onReset"), e.preload("inline"), p(o.$slide), o.$slide.addClass("fancybox-slide--complete"), n.each(e.slides, function (t, o) { 1229 o.pos >= e.currPos - 1 && o.pos <= e.currPos + 1 ? i[o.pos] = o : o && (n.fancybox.stop(o.$slide), o.$slide.off().remove()); 1230 }), e.slides = i), e.isAnimating = !1, e.updateCursor(), e.trigger("afterShow"), o.opts.video.autoStart && o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended", function () { 1231 Document.exitFullscreen ? Document.exitFullscreen() : this.webkitExitFullscreen && this.webkitExitFullscreen(), e.next(); 1232 }), o.opts.autoFocus && "html" === o.contentType && (t = o.$content.find("input[autofocus]:enabled:visible:first"), t.length ? t.trigger("focus") : e.focus(null, !0)), o.$slide.scrollTop(0).scrollLeft(0)); 1233 }, 1234 preload: function preload(t) { 1235 var e, 1236 n, 1237 o = this; 1238 o.group.length < 2 || (n = o.slides[o.currPos + 1], e = o.slides[o.currPos - 1], e && e.type === t && o.loadSlide(e), n && n.type === t && o.loadSlide(n)); 1239 }, 1240 focus: function focus(t, o) { 1241 var i, 1242 a, 1243 s = this, 1244 r = ["a[href]", "area[href]", 'input:not([disabled]):not([type="hidden"]):not([aria-hidden])', "select:not([disabled]):not([aria-hidden])", "textarea:not([disabled]):not([aria-hidden])", "button:not([disabled]):not([aria-hidden])", "iframe", "object", "embed", "video", "audio", "[contenteditable]", '[tabindex]:not([tabindex^="-"])'].join(","); 1245 s.isClosing || (i = !t && s.current && s.current.isComplete ? s.current.$slide.find("*:visible" + (o ? ":not(.fancybox-close-small)" : "")) : s.$refs.container.find("*:visible"), i = i.filter(r).filter(function () { 1246 return "hidden" !== n(this).css("visibility") && !n(this).hasClass("disabled"); 1247 }), i.length ? (a = i.index(e.activeElement), t && t.shiftKey ? (a < 0 || 0 == a) && (t.preventDefault(), i.eq(i.length - 1).trigger("focus")) : (a < 0 || a == i.length - 1) && (t && t.preventDefault(), i.eq(0).trigger("focus"))) : s.$refs.container.trigger("focus")); 1248 }, 1249 activate: function activate() { 1250 var t = this; 1251 n(".fancybox-container").each(function () { 1252 var e = n(this).data("FancyBox"); 1253 e && e.id !== t.id && !e.isClosing && (e.trigger("onDeactivate"), e.removeEvents(), e.isVisible = !1); 1254 }), t.isVisible = !0, (t.current || t.isIdle) && (t.update(), t.updateControls()), t.trigger("onActivate"), t.addEvents(); 1255 }, 1256 close: function close(t, e) { 1257 var o, 1258 i, 1259 a, 1260 s, 1261 r, 1262 c, 1263 l, 1264 u = this, 1265 f = u.current, 1266 h = function h() { 1267 u.cleanUp(t); 1268 }; 1269 1270 return !u.isClosing && (u.isClosing = !0, !1 === u.trigger("beforeClose", t) ? (u.isClosing = !1, d(function () { 1271 u.update(); 1272 }), !1) : (u.removeEvents(), a = f.$content, o = f.opts.animationEffect, i = n.isNumeric(e) ? e : o ? f.opts.animationDuration : 0, f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"), !0 !== t ? n.fancybox.stop(f.$slide) : o = !1, f.$slide.siblings().trigger("onReset").remove(), i && u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration", i + "ms"), u.hideLoading(f), u.hideControls(!0), u.updateCursor(), "zoom" !== o || a && i && "image" === f.type && !u.isMoved() && !f.hasError && (l = u.getThumbPos(f)) || (o = "fade"), "zoom" === o ? (n.fancybox.stop(a), s = n.fancybox.getTranslate(a), c = { 1273 top: s.top, 1274 left: s.left, 1275 scaleX: s.width / l.width, 1276 scaleY: s.height / l.height, 1277 width: l.width, 1278 height: l.height 1279 }, r = f.opts.zoomOpacity, "auto" == r && (r = Math.abs(f.width / f.height - l.width / l.height) > .1), r && (l.opacity = 0), n.fancybox.setTranslate(a, c), p(a), n.fancybox.animate(a, l, i, h), !0) : (o && i ? n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"), "fancybox-animated fancybox-fx-" + o, i, h) : !0 === t ? setTimeout(h, i) : h(), !0))); 1280 }, 1281 cleanUp: function cleanUp(e) { 1282 var o, 1283 i, 1284 a, 1285 s = this, 1286 r = s.current.opts.$orig; 1287 s.current.$slide.trigger("onReset"), s.$refs.container.empty().remove(), s.trigger("afterClose", e), s.current.opts.backFocus && (r && r.length && r.is(":visible") || (r = s.$trigger), r && r.length && (i = t.scrollX, a = t.scrollY, r.trigger("focus"), n("html, body").scrollTop(a).scrollLeft(i))), s.current = null, o = n.fancybox.getInstance(), o ? o.activate() : (n("body").removeClass("fancybox-active compensate-for-scrollbar"), n("#fancybox-style-noscroll").remove()); 1288 }, 1289 trigger: function trigger(t, e) { 1290 var o, 1291 i = Array.prototype.slice.call(arguments, 1), 1292 a = this, 1293 s = e && e.opts ? e : a.current; 1294 if (s ? i.unshift(s) : s = a, i.unshift(a), n.isFunction(s.opts[t]) && (o = s.opts[t].apply(s, i)), !1 === o) return o; 1295 "afterClose" !== t && a.$refs ? a.$refs.container.trigger(t + ".fb", i) : r.trigger(t + ".fb", i); 1296 }, 1297 updateControls: function updateControls() { 1298 var t = this, 1299 o = t.current, 1300 i = o.index, 1301 a = t.$refs.container, 1302 s = t.$refs.caption, 1303 r = o.opts.caption; 1304 o.$slide.trigger("refresh"), r && r.length ? (t.$caption = s, s.children().eq(0).html(r)) : t.$caption = null, t.hasHiddenControls || t.isIdle || t.showControls(), a.find("[data-fancybox-count]").html(t.group.length), a.find("[data-fancybox-index]").html(i + 1), a.find("[data-fancybox-prev]").prop("disabled", !o.opts.loop && i <= 0), a.find("[data-fancybox-next]").prop("disabled", !o.opts.loop && i >= t.group.length - 1), "image" === o.type ? a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href", o.opts.image.src || o.src).show() : o.opts.toolbar && a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(), n(e.activeElement).is(":hidden,[disabled]") && t.$refs.container.trigger("focus"); 1305 }, 1306 hideControls: function hideControls(t) { 1307 var e = this, 1308 n = ["infobar", "toolbar", "nav"]; 1309 !t && e.current.opts.preventCaptionOverlap || n.push("caption"), this.$refs.container.removeClass(n.map(function (t) { 1310 return "fancybox-show-" + t; 1311 }).join(" ")), this.hasHiddenControls = !0; 1312 }, 1313 showControls: function showControls() { 1314 var t = this, 1315 e = t.current ? t.current.opts : t.opts, 1316 n = t.$refs.container; 1317 t.hasHiddenControls = !1, t.idleSecondsCounter = 0, n.toggleClass("fancybox-show-toolbar", !(!e.toolbar || !e.buttons)).toggleClass("fancybox-show-infobar", !!(e.infobar && t.group.length > 1)).toggleClass("fancybox-show-caption", !!t.$caption).toggleClass("fancybox-show-nav", !!(e.arrows && t.group.length > 1)).toggleClass("fancybox-is-modal", !!e.modal); 1318 }, 1319 toggleControls: function toggleControls() { 1320 this.hasHiddenControls ? this.showControls() : this.hideControls(); 1321 } 1322 }), n.fancybox = { 1323 version: "3.5.7", 1324 defaults: a, 1325 getInstance: function getInstance(t) { 1326 var e = n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"), 1327 o = Array.prototype.slice.call(arguments, 1); 1328 return e instanceof b && ("string" === n.type(t) ? e[t].apply(e, o) : "function" === n.type(t) && t.apply(e, o), e); 1329 }, 1330 open: function open(t, e, n) { 1331 return new b(t, e, n); 1332 }, 1333 close: function close(t) { 1334 var e = this.getInstance(); 1335 e && (e.close(), !0 === t && this.close(t)); 1336 }, 1337 destroy: function destroy() { 1338 this.close(!0), r.add("body").off("click.fb-start", "**"); 1339 }, 1340 isMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), 1341 use3d: function () { 1342 var n = e.createElement("div"); 1343 return t.getComputedStyle && t.getComputedStyle(n) && t.getComputedStyle(n).getPropertyValue("transform") && !(e.documentMode && e.documentMode < 11); 1344 }(), 1345 getTranslate: function getTranslate(t) { 1346 var e; 1347 return !(!t || !t.length) && (e = t[0].getBoundingClientRect(), { 1348 top: e.top || 0, 1349 left: e.left || 0, 1350 width: e.width, 1351 height: e.height, 1352 opacity: parseFloat(t.css("opacity")) 1353 }); 1354 }, 1355 setTranslate: function setTranslate(t, e) { 1356 var n = "", 1357 o = {}; 1358 if (t && e) return void 0 === e.left && void 0 === e.top || (n = (void 0 === e.left ? t.position().left : e.left) + "px, " + (void 0 === e.top ? t.position().top : e.top) + "px", n = this.use3d ? "translate3d(" + n + ", 0px)" : "translate(" + n + ")"), void 0 !== e.scaleX && void 0 !== e.scaleY ? n += " scale(" + e.scaleX + ", " + e.scaleY + ")" : void 0 !== e.scaleX && (n += " scaleX(" + e.scaleX + ")"), n.length && (o.transform = n), void 0 !== e.opacity && (o.opacity = e.opacity), void 0 !== e.width && (o.width = e.width), void 0 !== e.height && (o.height = e.height), t.css(o); 1359 }, 1360 animate: function animate(t, e, o, i, a) { 1361 var s, 1362 r = this; 1363 n.isFunction(o) && (i = o, o = null), r.stop(t), s = r.getTranslate(t), t.on(f, function (c) { 1364 (!c || !c.originalEvent || t.is(c.originalEvent.target) && "z-index" != c.originalEvent.propertyName) && (r.stop(t), n.isNumeric(o) && t.css("transition-duration", ""), n.isPlainObject(e) ? void 0 !== e.scaleX && void 0 !== e.scaleY && r.setTranslate(t, { 1365 top: e.top, 1366 left: e.left, 1367 width: s.width * e.scaleX, 1368 height: s.height * e.scaleY, 1369 scaleX: 1, 1370 scaleY: 1 1371 }) : !0 !== a && t.removeClass(e), n.isFunction(i) && i(c)); 1372 }), n.isNumeric(o) && t.css("transition-duration", o + "ms"), n.isPlainObject(e) ? (void 0 !== e.scaleX && void 0 !== e.scaleY && (delete e.width, delete e.height, t.parent().hasClass("fancybox-slide--image") && t.parent().addClass("fancybox-is-scaling")), n.fancybox.setTranslate(t, e)) : t.addClass(e), t.data("timer", setTimeout(function () { 1373 t.trigger(f); 1374 }, o + 33)); 1375 }, 1376 stop: function stop(t, e) { 1377 t && t.length && (clearTimeout(t.data("timer")), e && t.trigger(f), t.off(f).css("transition-duration", ""), t.parent().removeClass("fancybox-is-scaling")); 1378 } 1379 }, n.fn.fancybox = function (t) { 1380 var e; 1381 return t = t || {}
1381, e = t.selector || !1, e ? n("body").off("click.fb-start", e).on("click.fb-start", e, { 1382 options: t 1383 }, i) : this.off("click.fb-start").on("click.fb-start", { 1384 items: this, 1385 options: t 1386 }, i), this; 1387 }, r.on("click.fb-start", "[data-fancybox]", i), r.on("click.fb-start", "[data-fancybox-trigger]", function (t) { 1388 n('[data-fancybox="' + n(this).attr("data-fancybox-trigger") + '"]').eq(n(this).attr("data-fancybox-index") || 0).trigger("click.fb-start", { 1389 $trigger: n(this) 1390 }); 1391 }), function () { 1392 var t = null; 1393 r.on("mousedown mouseup focus blur", ".fancybox-button", function (e) { 1394 switch (e.type) { 1395 case "mousedown": 1396 t = n(this); 1397 break; 1398 1399 case "mouseup": 1400 t = null; 1401 break; 1402 1403 case "focusin": 1404 n(".fancybox-button").removeClass("fancybox-focus"), n(this).is(t) || n(this).is("[disabled]") || n(this).addClass("fancybox-focus"); 1405 break; 1406 1407 case "focusout": 1408 n(".fancybox-button").removeClass("fancybox-focus"); 1409 } 1410 }); 1411 }(); 1412 } 1413}(window, document, jQuery), function (t) { 1414 "use strict"; 1415 1416 var e = { 1417 youtube: { 1418 matcher: /(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i, 1419 params: { 1420 autoplay: 1, 1421 autohide: 1, 1422 fs: 1, 1423 rel: 0, 1424 hd: 1, 1425 wmode: "transparent", 1426 enablejsapi: 1, 1427 html5: 1 1428 }, 1429 paramPlace: 8, 1430 type: "iframe", 1431 url: "https://www.youtube-nocookie.com/embed/$4", 1432 thumb: "https://img.youtube.com/vi/$4/hqdefault.jpg" 1433 }, 1434 vimeo: { 1435 matcher: /^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/, 1436 params: { 1437 autoplay: 1, 1438 hd: 1, 1439 show_title: 1, 1440 show_byline: 1, 1441 show_portrait: 0, 1442 fullscreen: 1 1443 }, 1444 paramPlace: 3, 1445 type: "iframe", 1446 url: "//player.vimeo.com/video/$2" 1447 }, 1448 instagram: { 1449 matcher: /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i, 1450 type: "image", 1451 url: "//$1/p/$2/media/?size=l" 1452 }, 1453 gmap_place: { 1454 matcher: /(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i, 1455 type: "iframe", 1456 url: function url(t) { 1457 return "//maps.google." + t[2] + "/?ll=" + (t[9] ? t[9] + "&z=" + Math.floor(t[10]) + (t[12] ? t[12].replace(/^\//, "&") : "") : t[12] + "").replace(/\?/, "&") + "&output=" + (t[12] && t[12].indexOf("layer=c") > 0 ? "svembed" : "embed"); 1458 } 1459 }, 1460 gmap_search: { 1461 matcher: /(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i, 1462 type: "iframe", 1463 url: function url(t) { 1464 return "//maps.google." + t[2] + "/maps?q=" + t[5].replace("query=", "q=").replace("api=1", "") + "&output=embed"; 1465 } 1466 } 1467 }, 1468 n = function n(e, _n, o) { 1469 if (e) return o = o || "", "object" === t.type(o) && (o = t.param(o, !0)), t.each(_n, function (t, n) { 1470 e = e.replace("$" + t, n || ""); 1471 }), o.length && (e += (e.indexOf("?") > 0 ? "&" : "?") + o), e; 1472 }; 1473 1474 t(document).on("objectNeedsType.fb", function (o, i, a) { 1475 var s, 1476 r, 1477 c, 1478 l, 1479 d, 1480 u, 1481 f, 1482 p = a.src || "", 1483 h = !1; 1484 s = t.extend(!0, {}, e, a.opts.media), t.each(s, function (e, o) { 1485 if (c = p.match(o.matcher)) { 1486 if (h = o.type, f = e, u = {}, o.paramPlace && c[o.paramPlace]) { 1487 d = c[o.paramPlace], "?" == d[0] && (d = d.substring(1)), d = d.split("&"); 1488 1489 for (var i = 0; i < d.length; ++i) { 1490 var s = d[i].split("=", 2); 1491 2 == s.length && (u[s[0]] = decodeURIComponent(s[1].replace(/\+/g, " "))); 1492 } 1493 } 1494 1495 return l = t.extend(!0, {}, o.params, a.opts[e], u), p = "function" === t.type(o.url) ? o.url.call(this, c, l, a) : n(o.url, c, l), r = "function" === t.type(o.thumb) ? o.thumb.call(this, c, l, a) : n(o.thumb, c), "youtube" === e ? p = p.replace(/&t=((\d+)m)?(\d+)s/, function (t, e, n, o) { 1496 return "&start=" + ((n ? 60 * parseInt(n, 10) : 0) + parseInt(o, 10)); 1497 }) : "vimeo" === e && (p = p.replace("&%23", "#")), !1; 1498 } 1499 }), h ? (a.opts.thumb || a.opts.$thumb && a.opts.$thumb.length || (a.opts.thumb = r), "iframe" === h && (a.opts = t.extend(!0, a.opts, { 1500 iframe: { 1501 preload: !1, 1502 attr: { 1503 scrolling: "no" 1504 } 1505 } 1506 })), t.extend(a, { 1507 type: h, 1508 src: p, 1509 origSrc: a.src, 1510 contentSource: f, 1511 contentType: "image" === h ? "image" : "gmap_place" == f || "gmap_search" == f ? "map" : "video" 1512 })) : p && (a.type = a.opts.defaultType); 1513 }); 1514 var o = { 1515 youtube: { 1516 src: "https://www.youtube.com/iframe_api", 1517 "class": "YT", 1518 loading: !1, 1519 loaded: !1 1520 }, 1521 vimeo: { 1522 src: "https://player.vimeo.com/api/player.js", 1523 "class": "Vimeo", 1524 loading: !1, 1525 loaded: !1 1526 }, 1527 load: function load(t) { 1528 var e, 1529 n = this; 1530 if (this[t].loaded) return void setTimeout(function () { 1531 n.done(t); 1532 }); 1533 this[t].loading || (this[t].loading = !0, e = document.createElement("script"), e.type = "text/javascript", e.src = this[t].src, "youtube" === t ? window.onYouTubeIframeAPIReady = function () { 1534 n[t].loaded = !0, n.done(t); 1535 } : e.onload = function () { 1536 n[t].loaded = !0, n.done(t); 1537 }, document.body.appendChild(e)); 1538 }, 1539 done: function done(e) { 1540 var n, o, i; 1541 "youtube" === e && delete window.onYouTubeIframeAPIReady, (n = t.fancybox.getInstance()) && (o = n.current.$content.find("iframe"), "youtube" === e && void 0 !== YT && YT ? i = new YT.Player(o.attr("id"), { 1542 events: { 1543 onStateChange: function onStateChange(t) { 1544 0 == t.data && n.next(); 1545 } 1546 } 1547 }) : "vimeo" === e && void 0 !== Vimeo && Vimeo && (i = new Vimeo.Player(o), i.on("ended", function () { 1548 n.next(); 1549 }))); 1550 } 1551 }; 1552 t(document).on({ 1553 "afterShow.fb": function afterShowFb(t, e, n) { 1554 e.group.length > 1 && ("youtube" === n.contentSource || "vimeo" === n.contentSource) && o.load(n.contentSource); 1555 } 1556 }); 1557}(jQuery), function (t, e, n) { 1558 "use strict"; 1559 1560 var o = function () { 1561 return t.requestAnimationFrame || t.webkitRequestAnimationFrame || t.mozRequestAnimationFrame || t.oRequestAnimationFrame || function (e) { 1562 return t.setTimeout(e, 1e3 / 60); 1563 }; 1564 }(), 1565 i = function () { 1566 return t.cancelAnimationFrame || t.webkitCancelAnimationFrame || t.mozCancelAnimationFrame || t.oCancelAnimationFrame || function (e) { 1567 t.clearTimeout(e); 1568 }; 1569 }(), 1570 a = function a(e) { 1571 var n = []; 1572 e = e.originalEvent || e || t.e, e = e.touches && e.touches.length ? e.touches : e.changedTouches && e.changedTouches.length ? e.changedTouches : [e]; 1573 1574 for (var o in e) { 1575 e[o].pageX ? n.push({ 1576 x: e[o].pageX, 1577 y: e[o].pageY 1578 }) : e[o].clientX && n.push({ 1579 x: e[o].clientX, 1580 y: e[o].clientY 1581 }); 1582 } 1583 1584 return n; 1585 }, 1586 s = function s(t, e, n) { 1587 return e && t ? "x" === n ? t.x - e.x : "y" === n ? t.y - e.y : Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)) : 0; 1588 }, 1589 r = function r(t) { 1590 if (t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe') || n.isFunction(t.get(0).onclick) || t.data("selectable")) return !0; 1591 1592 for (var e = 0, o = t[0].attributes, i = o.length; e < i; e++) { 1593 if ("data-fancybox-" === o[e].nodeName.substr(0, 14)) return !0; 1594 } 1595 1596 return !1; 1597 }, 1598 c = function c(e) { 1599 var n = t.getComputedStyle(e)["overflow-y"], 1600 o = t.getComputedStyle(e)["overflow-x"], 1601 i = ("scroll" === n || "auto" === n) && e.scrollHeight > e.clientHeight, 1602 a = ("scroll" === o || "auto" === o) && e.scrollWidth > e.clientWidth; 1603 return i || a; 1604 }, 1605 l = function l(t) { 1606 for (var e = !1;;) { 1607 if (e = c(t.get(0))) break; 1608 if (t = t.parent(), !t.length || t.hasClass("fancybox-stage") || t.is("body")) break; 1609 } 1610 1611 return e; 1612 }, 1613 d = function d(t) { 1614 var e = this; 1615 e.instance = t, e.$bg = t.$refs.bg, e.$stage = t.$refs.stage, e.$container = t.$refs.container, e.destroy(), e.$container.on("touchstart.fb.touch mousedown.fb.touch", n.proxy(e, "ontouchstart")); 1616 }; 1617 1618 d.prototype.destroy = function () { 1619 var t = this; 1620 t.$container.off(".fb.touch"), n(e).off(".fb.touch"), t.requestId && (i(t.requestId), t.requestId = null), t.tapped && (clearTimeout(t.tapped), t.tapped = null); 1621 }, d.prototype.ontouchstart = function (o) { 1622 var i = this, 1623 c = n(o.target), 1624 d = i.instance, 1625 u = d.current, 1626 f = u.$slide, 1627 p = u.$content,
vendor: 10,019 bytes, lines 1628-1762
1628 h = "touchstart" == o.type; 1629 1630 if (h && i.$container.off("mousedown.fb.touch"), (!o.originalEvent || 2 != o.originalEvent.button) && f.length && c.length && !r(c) && !r(c.parent()) && (c.is("img") || !(o.originalEvent.clientX > c[0].clientWidth + c.offset().left))) { 1631 if (!u || d.isAnimating || u.$slide.hasClass("fancybox-animated")) return o.stopPropagation(), void o.preventDefault(); 1632 i.realPoints = i.startPoints = a(o), i.startPoints.length && (u.touch && o.stopPropagation(), i.startEvent = o, i.canTap = !0, i.$target = c, i.$content = p, i.opts = u.opts.touch, i.isPanning = !1, i.isSwiping = !1, i.isZooming = !1, i.isScrolling = !1, i.canPan = d.canPan(), i.startTime = new Date().getTime(), i.distanceX = i.distanceY = i.distance = 0, i.canvasWidth = Math.round(f[0].clientWidth), i.canvasHeight = Math.round(f[0].clientHeight), i.contentLastPos = null, i.contentStartPos = n.fancybox.getTranslate(i.$content) || { 1633 top: 0, 1634 left: 0 1635 }, i.sliderStartPos = n.fancybox.getTranslate(f), i.stagePos = n.fancybox.getTranslate(d.$refs.stage), i.sliderStartPos.top -= i.stagePos.top, i.sliderStartPos.left -= i.stagePos.left, i.contentStartPos.top -= i.stagePos.top, i.contentStartPos.left -= i.stagePos.left, n(e).off(".fb.touch").on(h ? "touchend.fb.touch touchcancel.fb.touch" : "mouseup.fb.touch mouseleave.fb.touch", n.proxy(i, "ontouchend")).on(h ? "touchmove.fb.touch" : "mousemove.fb.touch", n.proxy(i, "ontouchmove")), n.fancybox.isMobile && e.addEventListener("scroll", i.onscroll, !0), ((i.opts || i.canPan) && (c.is(i.$stage) || i.$stage.find(c).length) || (c.is(".fancybox-image") && o.preventDefault(), n.fancybox.isMobile && c.parents(".fancybox-caption").length)) && (i.isScrollable = l(c) || l(c.parent()), n.fancybox.isMobile && i.isScrollable || o.preventDefault(), (1 === i.startPoints.length || u.hasError) && (i.canPan ? (n.fancybox.stop(i.$content), i.isPanning = !0) : i.isSwiping = !0, i.$container.addClass("fancybox-is-grabbing")), 2 === i.startPoints.length && "image" === u.type && (u.isLoaded || u.$ghost) && (i.canTap = !1, i.isSwiping = !1, i.isPanning = !1, i.isZooming = !0, n.fancybox.stop(i.$content), i.centerPointStartX = .5 * (i.startPoints[0].x + i.startPoints[1].x) - n(t).scrollLeft(), i.centerPointStartY = .5 * (i.startPoints[0].y + i.startPoints[1].y) - n(t).scrollTop(), i.percentageOfImageAtPinchPointX = (i.centerPointStartX - i.contentStartPos.left) / i.contentStartPos.width, i.percentageOfImageAtPinchPointY = (i.centerPointStartY - i.contentStartPos.top) / i.contentStartPos.height, i.startDistanceBetweenFingers = s(i.startPoints[0], i.startPoints[1])))); 1636 } 1637 }, d.prototype.onscroll = function (t) { 1638 var n = this; 1639 n.isScrolling = !0, e.removeEventListener("scroll", n.onscroll, !0); 1640 }, d.prototype.ontouchmove = function (t) { 1641 var e = this; 1642 return void 0 !== t.originalEvent.buttons && 0 === t.originalEvent.buttons ? void e.ontouchend(t) : e.isScrolling ? void (e.canTap = !1) : (e.newPoints = a(t), void ((e.opts || e.canPan) && e.newPoints.length && e.newPoints.length && (e.isSwiping && !0 === e.isSwiping || t.preventDefault(), e.distanceX = s(e.newPoints[0], e.startPoints[0], "x"), e.distanceY = s(e.newPoints[0], e.startPoints[0], "y"), e.distance = s(e.newPoints[0], e.startPoints[0]), e.distance > 0 && (e.isSwiping ? e.onSwipe(t) : e.isPanning ? e.onPan() : e.isZooming && e.onZoom())))); 1643 }, d.prototype.onSwipe = function (e) { 1644 var a, 1645 s = this, 1646 r = s.instance, 1647 c = s.isSwiping, 1648 l = s.sliderStartPos.left || 0; 1649 if (!0 !== c) "x" == c && (s.distanceX > 0 && (s.instance.group.length < 2 || 0 === s.instance.current.index && !s.instance.current.opts.loop) ? l += Math.pow(s.distanceX, .8) : s.distanceX < 0 && (s.instance.group.length < 2 || s.instance.current.index === s.instance.group.length - 1 && !s.instance.current.opts.loop) ? l -= Math.pow(-s.distanceX, .8) : l += s.distanceX), s.sliderLastPos = { 1650 top: "x" == c ? 0 : s.sliderStartPos.top + s.distanceY, 1651 left: l 1652 }, s.requestId && (i(s.requestId), s.requestId = null), s.requestId = o(function () { 1653 s.sliderLastPos && (n.each(s.instance.slides, function (t, e) { 1654 var o = e.pos - s.instance.currPos; 1655 n.fancybox.setTranslate(e.$slide, { 1656 top: s.sliderLastPos.top, 1657 left: s.sliderLastPos.left + o * s.canvasWidth + o * e.opts.gutter 1658 }); 1659 }), s.$container.addClass("fancybox-is-sliding")); 1660 });else if (Math.abs(s.distance) > 10) { 1661 if (s.canTap = !1, r.group.length < 2 && s.opts.vertical ? s.isSwiping = "y" : r.isDragging || !1 === s.opts.vertical || "auto" === s.opts.vertical && n(t).width() > 800 ? s.isSwiping = "x" : (a = Math.abs(180 * Math.atan2(s.distanceY, s.distanceX) / Math.PI), s.isSwiping = a > 45 && a < 135 ? "y" : "x"), "y" === s.isSwiping && n.fancybox.isMobile && s.isScrollable) return void (s.isScrolling = !0); 1662 r.isDragging = s.isSwiping, s.startPoints = s.newPoints, n.each(r.slides, function (t, e) { 1663 var o, i; 1664 n.fancybox.stop(e.$slide), o = n.fancybox.getTranslate(e.$slide), i = n.fancybox.getTranslate(r.$refs.stage), e.$slide.css({ 1665 transform: "", 1666 opacity: "", 1667 "transition-duration": "" 1668 }).removeClass("fancybox-animated").removeClass(function (t, e) { 1669 return (e.match(/(^|\s)fancybox-fx-\S+/g) || []).join(" "); 1670 }), e.pos === r.current.pos && (s.sliderStartPos.top = o.top - i.top, s.sliderStartPos.left = o.left - i.left), n.fancybox.setTranslate(e.$slide, { 1671 top: o.top - i.top, 1672 left: o.left - i.left 1673 }); 1674 }), r.SlideShow && r.SlideShow.isActive && r.SlideShow.stop(); 1675 } 1676 }, d.prototype.onPan = function () { 1677 var t = this; 1678 if (s(t.newPoints[0], t.realPoints[0]) < (n.fancybox.isMobile ? 10 : 5)) return void (t.startPoints = t.newPoints); 1679 t.canTap = !1, t.contentLastPos = t.limitMovement(), t.requestId && i(t.requestId), t.requestId = o(function () { 1680 n.fancybox.setTranslate(t.$content, t.contentLastPos); 1681 }); 1682 }, d.prototype.limitMovement = function () { 1683 var t, 1684 e, 1685 n, 1686 o, 1687 i, 1688 a, 1689 s = this, 1690 r = s.canvasWidth, 1691 c = s.canvasHeight, 1692 l = s.distanceX, 1693 d = s.distanceY, 1694 u = s.contentStartPos, 1695 f = u.left, 1696 p = u.top, 1697 h = u.width, 1698 g = u.height; 1699 return i = h > r ? f + l : f, a = p + d, t = Math.max(0, .5 * r - .5 * h), e = Math.max(0, .5 * c - .5 * g), n = Math.min(r - h, .5 * r - .5 * h), o = Math.min(c - g, .5 * c - .5 * g), l > 0 && i > t && (i = t - 1 + Math.pow(-t + f + l, .8) || 0), l < 0 && i < n && (i = n + 1 - Math.pow(n - f - l, .8) || 0), d > 0 && a > e && (a = e - 1 + Math.pow(-e + p + d, .8) || 0), d < 0 && a < o && (a = o + 1 - Math.pow(o - p - d, .8) || 0), { 1700 top: a, 1701 left: i 1702 }; 1703 }, d.prototype.limitPosition = function (t, e, n, o) { 1704 var i = this, 1705 a = i.canvasWidth, 1706 s = i.canvasHeight; 1707 return n > a ? (t = t > 0 ? 0 : t, t = t < a - n ? a - n : t) : t = Math.max(0, a / 2 - n / 2), o > s ? (e = e > 0 ? 0 : e, e = e < s - o ? s - o : e) : e = Math.max(0, s / 2 - o / 2), { 1708 top: e, 1709 left: t 1710 }; 1711 }, d.prototype.onZoom = function () { 1712 var e = this, 1713 a = e.contentStartPos, 1714 r = a.width, 1715 c = a.height, 1716 l = a.left, 1717 d = a.top, 1718 u = s(e.newPoints[0], e.newPoints[1]), 1719 f = u / e.startDistanceBetweenFingers, 1720 p = Math.floor(r * f), 1721 h = Math.floor(c * f), 1722 g = (r - p) * e.percentageOfImageAtPinchPointX, 1723 b = (c - h) * e.percentageOfImageAtPinchPointY, 1724 m = (e.newPoints[0].x + e.newPoints[1].x) / 2 - n(t).scrollLeft(), 1725 v = (e.newPoints[0].y + e.newPoints[1].y) / 2 - n(t).scrollTop(), 1726 y = m - e.centerPointStartX, 1727 x = v - e.centerPointStartY, 1728 w = l + (g + y), 1729 $ = d + (b + x), 1730 S = { 1731 top: $, 1732 left: w, 1733 scaleX: f, 1734 scaleY: f 1735 }; 1736 e.canTap = !1, e.newWidth = p, e.newHeight = h, e.contentLastPos = S, e.requestId && i(e.requestId), e.requestId = o(function () { 1737 n.fancybox.setTranslate(e.$content, e.contentLastPos); 1738 }); 1739 }, d.prototype.ontouchend = function (t) { 1740 var o = this, 1741 s = o.isSwiping, 1742 r = o.isPanning, 1743 c = o.isZooming, 1744 l = o.isScrolling; 1745 if (o.endPoints = a(t), o.dMs = Math.max(new Date().getTime() - o.startTime, 1), o.$container.removeClass("fancybox-is-grabbing"), n(e).off(".fb.touch"), e.removeEventListener("scroll", o.onscroll, !0), o.requestId && (i(o.requestId), o.requestId = null), o.isSwiping = !1, o.isPanning = !1, o.isZooming = !1, o.isScrolling = !1, o.instance.isDragging = !1, o.canTap) return o.onTap(t); 1746 o.speed = 100, o.velocityX = o.distanceX / o.dMs * .5, o.velocityY = o.distanceY / o.dMs * .5, r ? o.endPanning() : c ? o.endZooming() : o.endSwiping(s, l); 1747 }, d.prototype.endSwiping = function (t, e) { 1748 var o = this, 1749 i = !1, 1750 a = o.instance.group.length, 1751 s = Math.abs(o.distanceX), 1752 r = "x" == t && a > 1 && (o.dMs > 130 && s > 10 || s > 50); 1753 o.sliderLastPos = null, "y" == t && !e && Math.abs(o.distanceY) > 50 ? (n.fancybox.animate(o.instance.current.$slide, { 1754 top: o.sliderStartPos.top + o.distanceY + 150 * o.velocityY, 1755 opacity: 0 1756 }, 200), i = o.instance.close(!0, 250)) : r && o.distanceX > 0 ? i = o.instance.previous(300) : r && o.distanceX < 0 && (i = o.instance.next(300)), !1 !== i || "x" != t && "y" != t || o.instance.centerSlide(200), o.$container.removeClass("fancybox-is-sliding"); 1757 }, d.prototype.endPanning = function () { 1758 var t, 1759 e, 1760 o, 1761 i = this; 1762 i.contentLastPos && (!1 === i.opts.momentum || i.dMs > 350 ? (t = i.contentLastPos.left, e = i.contentLastPos.top) : (t = i.contentLastPos.left + 500 * i.velocityX, e = i.contentLastPos.top + 500 * i.velocityY), o = i.limitPosition(t, e, i.c
1762ontentStartPos.width, i.contentStartPos.height), o.width = i.contentStartPos.width, o.height = i.contentStartPos.height, n.fancybox.animate(i.$content, o, 366)); 1763 }, d.prototype.endZooming = function () { 1764 var t, 1765 e, 1766 o, 1767 i, 1768 a = this, 1769 s = a.instance.current, 1770 r = a.newWidth, 1771 c = a.newHeight; 1772 a.contentLastPos && (t = a.contentLastPos.left, e = a.contentLastPos.top, i = { 1773 top: e, 1774 left: t, 1775 width: r, 1776 height: c, 1777 scaleX: 1, 1778 scaleY: 1 1779 }, n.fancybox.setTranslate(a.$content, i), r < a.canvasWidth && c < a.canvasHeight ? a.instance.scaleToFit(150) : r > s.width || c > s.height ? a.instance.scaleToActual(a.centerPointStartX, a.centerPointStartY, 150) : (o = a.limitPosition(t, e, r, c), n.fancybox.animate(a.$content, o, 150))); 1780 }, d.prototype.onTap = function (e) { 1781 var o, 1782 i = this, 1783 s = n(e.target), 1784 r = i.instance, 1785 c = r.current, 1786 l = e && a(e) || i.startPoints, 1787 d = l[0] ? l[0].x - n(t).scrollLeft() - i.stagePos.left : 0, 1788 u = l[0] ? l[0].y - n(t).scrollTop() - i.stagePos.top : 0, 1789 f = function f(t) { 1790 var o = c.opts[t]; 1791 if (n.isFunction(o) && (o = o.apply(r, [c, e])), o) switch (o) { 1792 case "close": 1793 r.close(i.startEvent); 1794 break; 1795 1796 case "toggleControls": 1797 r.toggleControls(); 1798 break; 1799 1800 case "next": 1801 r.next(); 1802 break; 1803 1804 case "nextOrClose": 1805 r.group.length > 1 ? r.next() : r.close(i.startEvent); 1806 break; 1807 1808 case "zoom": 1809 "image" == c.type && (c.isLoaded || c.$ghost) && (r.canPan() ? r.scaleToFit() : r.isScaledDown() ? r.scaleToActual(d, u) : r.group.length < 2 && r.close(i.startEvent)); 1810 } 1811 }; 1812 1813 if ((!e.originalEvent || 2 != e.originalEvent.button) && (s.is("img") || !(d > s[0].clientWidth + s.offset().left))) { 1814 if (s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container")) o = "Outside";else if (s.is(".fancybox-slide")) o = "Slide";else { 1815 if (!r.current.$content || !r.current.$content.find(s).addBack().filter(s).length) return; 1816 o = "Content"; 1817 } 1818 1819 if (i.tapped) { 1820 if (clearTimeout(i.tapped), i.tapped = null, Math.abs(d - i.tapX) > 50 || Math.abs(u - i.tapY) > 50) return this; 1821 f("dblclick" + o); 1822 } else i.tapX = d, i.tapY = u, c.opts["dblclick" + o] && c.opts["dblclick" + o] !== c.opts["click" + o] ? i.tapped = setTimeout(function () { 1823 i.tapped = null, r.isAnimating || f("click" + o); 1824 }, 500) : f("click" + o); 1825 1826 return this; 1827 } 1828 }, n(e).on("onActivate.fb", function (t, e) { 1829 e && !e.Guestures && (e.Guestures = new d(e)); 1830 }).on("beforeClose.fb", function (t, e) { 1831 e && e.Guestures && e.Guestures.destroy(); 1832 }); 1833}(window, document, jQuery), function (t, e) { 1834 "use strict"; 1835 1836 e.extend(!0, e.fancybox.defaults, { 1837 btnTpl: { 1838 slideShow: '<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>' 1839 }, 1840 slideShow: { 1841 autoStart: !1, 1842 speed: 3e3, 1843 progress: !0 1844 } 1845 }); 1846 1847 var n = function n(t) { 1848 this.instance = t, this.init(); 1849 }; 1850 1851 e.extend(n.prototype, { 1852 timer: null, 1853 isActive: !1, 1854 $button: null, 1855 init: function init() { 1856 var t = this, 1857 n = t.instance, 1858 o = n.group[n.currIndex].opts.slideShow; 1859 t.$button = n.$refs.toolbar.find("[data-fancybox-play]").on("click", function () { 1860 t.toggle(); 1861 }), n.group.length < 2 || !o ? t.$button.hide() : o.progress && (t.$progress = e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner)); 1862 }, 1863 set: function set(t) { 1864 var n = this, 1865 o = n.instance, 1866 i = o.current; 1867 i && (!0 === t || i.opts.loop || o.currIndex < o.group.length - 1) ? n.isActive && "video" !== i.contentType && (n.$progress && e.fancybox.animate(n.$progress.show(), { 1868 scaleX: 1 1869 }, i.opts.slideShow.speed), n.timer = setTimeout(function () { 1870 o.current.opts.loop || o.current.index != o.group.length - 1 ? o.next() : o.jumpTo(0); 1871 }, i.opts.slideShow.speed)) : (n.stop(), o.idleSecondsCounter = 0, o.showControls()); 1872 }, 1873 clear: function clear() { 1874 var t = this; 1875 clearTimeout(t.timer), t.timer = null, t.$progress && t.$progress.removeAttr("style").hide(); 1876 }, 1877 start: function start() { 1878 var t = this, 1879 e = t.instance.current; 1880 e && (t.$button.attr("title", (e.opts.i18n[e.opts.lang] || e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"), t.isActive = !0, e.isComplete && t.set(!0), t.instance.trigger("onSlideShowChange", !0)); 1881 }, 1882 stop: function stop() { 1883 var t = this, 1884 e = t.instance.current; 1885 t.clear(), t.$button.attr("title", (e.opts.i18n[e.opts.lang] || e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"), t.isActive = !1, t.instance.trigger("onSlideShowChange", !1), t.$progress && t.$progress.removeAttr("style").hide(); 1886 },
1887 toggle: function toggle() { 1888 var t = this; 1889 t.isActive ? t.stop() : t.start(); 1890 } 1891 }), e(t).on({ 1892 "onInit.fb": function onInitFb(t, e) { 1893 e && !e.SlideShow && (e.SlideShow = new n(e)); 1894 }, 1895 "beforeShow.fb": function beforeShowFb(t, e, n, o) { 1896 var i = e && e.SlideShow; 1897 o ? i && n.opts.slideShow.autoStart && i.start() : i && i.isActive && i.clear(); 1898 }, 1899 "afterShow.fb": function afterShowFb(t, e, n) { 1900 var o = e && e.SlideShow; 1901 o && o.isActive && o.set(); 1902 }, 1903 "afterKeydown.fb": function afterKeydownFb(n, o, i, a, s) { 1904 var r = o && o.SlideShow; 1905 !r || !i.opts.slideShow || 80 !== s && 32 !== s || e(t.activeElement).is("button,a,input") || (a.preventDefault(), r.toggle()); 1906 }, 1907 "beforeClose.fb onDeactivate.fb": function beforeCloseFbOnDeactivateFb(t, e) { 1908 var n = e && e.SlideShow; 1909 n && n.stop(); 1910 } 1911 }), e(t).on("visibilitychange", function () { 1912 var n = e.fancybox.getInstance(), 1913 o = n && n.SlideShow; 1914 o && o.isActive && (t.hidden ? o.clear() : o.set()); 1915 }); 1916}(document, jQuery), function (t, e) { 1917 "use strict"; 1918 1919 var n = function () { 1920 for (var e = [["requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror"], ["webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitfullscreenerror"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror"], ["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError"]], n = {}, o = 0; o < e.length; o++) { 1921 var i = e[o]; 1922 1923 if (i && i[1] in t) { 1924 for (var a = 0; a < i.length; a++) { 1925 n[e[0][a]] = i[a]; 1926 } 1927 1928 return n; 1929 } 1930 } 1931 1932 return !1; 1933 }(); 1934 1935 if (n) { 1936 var o = { 1937 request: function request(e) { 1938 e = e || t.documentElement, e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT); 1939 }, 1940 exit: function exit() { 1941 t[n.exitFullscreen](); 1942 }, 1943 toggle: function toggle(e) { 1944 e = e || t.documentElement, this.isFullscreen() ? this.exit() : this.request(e); 1945 }, 1946 isFullscreen: function isFullscreen() { 1947 return Boolean(t[n.fullscreenElement]); 1948 }, 1949 enabled: function enabled() { 1950 return Boolean(t[n.fullscreenEnabled]); 1951 } 1952 }; 1953 e.extend(!0, e.fancybox.defaults, { 1954 btnTpl: { 1955 fullScreen: '<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>' 1956 }, 1957 fullScreen: { 1958 autoStart: !1 1959 } 1960 }), e(t).on(n.fullscreenchange, function () { 1961 var t = o.isFullscreen(), 1962 n = e.fancybox.getInstance(); 1963 n && (n.current && "image" === n.current.type && n.isAnimating && (n.isAnimating = !1, n.update(!0, !0, 0), n.isComplete || n.complete()), n.trigger("onFullscreenChange", t), n.$refs.container.toggleClass("fancybox-is-fullscreen", t), n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter", !t).toggleClass("fancybox-button--fsexit", t)); 1964 }); 1965 } 1966 1967 e(t).on({ 1968 "onInit.fb": function onInitFb(t, e) { 1969 var i; 1970 if (!n) return void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove(); 1971 e && e.group[e.currIndex].opts.fullScreen ? (i = e.$refs.container, i.on("click.fb-fullscreen", "[data-fancybox-fullscreen]", function (t) { 1972 t.stopPropagation(), t.preventDefault(), o.toggle(); 1973 }
1973), e.opts.fullScreen && !0 === e.opts.fullScreen.autoStart && o.request(), e.FullScreen = o) : e && e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide(); 1974 }, 1975 "afterKeydown.fb": function afterKeydownFb(t, e, n, o, i) { 1976 e && e.FullScreen && 70 === i && (o.preventDefault(), e.FullScreen.toggle()); 1977 }, 1978 "beforeClose.fb": function beforeCloseFb(t, e) { 1979 e && e.FullScreen && e.$refs.container.hasClass("fancybox-is-fullscreen") && o.exit(); 1980 } 1981 }); 1982}(document, jQuery), function (t, e) { 1983 "use strict"; 1984 1985 var n = "fancybox-thumbs"; 1986 e.fancybox.defaults = e.extend(!0, { 1987 btnTpl: { 1988 thumbs: '<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>' 1989 }, 1990 thumbs: { 1991 autoStart: 1, 1992 hideOnClose: !0, 1993 parentEl: ".fancybox-container", 1994 axis: "y" 1995 } 1996 }, e.fancybox.defaults); 1997 1998 var o = function o(t) { 1999 this.init(t); 2000 }; 2001 2002 e.extend(o.prototype, { 2003 $button: null, 2004 $grid: null, 2005 $list: null, 2006 isVisible: !1, 2007 isActive: !1, 2008 init: function init(t) { 2009 var e = this, 2010 n = t.group, 2011 o = 0; 2012 e.instance = t, e.opts = n[t.currIndex].opts.thumbs, t.Thumbs = e, e.$button = t.$refs.toolbar.find("[data-fancybox-thumbs]"); 2013 2014 for (var i = 0, a = n.length; i < a && (n[i].thumb && o++, !(o > 1)); i++) { 2015 ; 2016 } 2017 2018 o > 1 && e.opts ? (e.$button.removeAttr("style").on("click", function () { 2019 e.toggle(); 2020 }), e.isActive = !0) : e.$button.hide(); 2021 }, 2022 create: function create() { 2023 var t, 2024 o = this, 2025 i = o.instance, 2026 a = o.opts.parentEl, 2027 s = []; 2028 o.$grid || (o.$grid = e('<div class="' + n + " " + n + "-" + o.opts.axis + '"></div>').appendTo(i.$refs.container.find(a).addBack().filter(a)), o.$grid.on("click", "a", function () { 2029 i.jumpTo(e(this).attr("data-index")); 2030 })), o.$list || (o.$list = e('<div class="' + n + '__list">').appendTo(o.$grid)), e.each(i.group, function (e, n) { 2031 t = n.thumb, t || "image" !== n.type || (t = n.src), s.push('<a href="javascript:;" tabindex="0" data-index="' + e + '"' + (t && t.length ? ' style="background-image:url(' + t + ')"' : 'class="fancybox-thumbs-missing"') + "></a>"); 2032 }), o.$list[0].innerHTML = s.join(""), "x" === o.opts.axis && o.$list.width(parseInt(o.$grid.css("padding-right"), 10) + i.group.length * o.$list.children().eq(0).outerWidth(!0)); 2033 }, 2034 focus: function focus(t) { 2035 var e, 2036 n, 2037 o = this, 2038 i = o.$list, 2039 a = o.$grid; 2040 o.instance.current && (e = i.children().removeClass("fancybox-thumbs-active").filter('[data-index="' + o.instance.current.index + '"]').addClass("fancybox-thumbs-active"), n = e.position(), "y" === o.opts.axis && (n.top < 0 || n.top > i.height() - e.outerHeight()) ? i.stop().animate({ 2041 scrollTop: i.scrollTop() + n.top 2042 }, t) : "x" === o.opts.axis && (n.left < a.scrollLeft() || n.left > a.scrollLeft() + (a.width() - e.outerWidth())) && i.parent().stop().animate({ 2043 scrollLeft: n.left 2044 }, t)); 2045 }, 2046 update: function update() { 2047 var t = this; 2048 t.instance.$refs.container.toggleClass("fancybox-show-thumbs", this.isVisible), t.isVisible ? (t.$grid || t.create(), t.instance.trigger("onThumbsShow"), t.focus(0)) : t.$grid && t.instance.trigger("onThumbsHide"), t.instance.update(); 2049 }, 2050 hide: function hide() { 2051 this.isVisible = !1, this.update(); 2052 }, 2053 show: function show() { 2054 this.isVisible = !0, this.update(); 2055 }, 2056 toggle: function toggle() { 2057 this.isVisible = !this.isVisible, this.update(); 2058 } 2059 }), e(t).on({ 2060 "onInit.fb": function onInitFb(t, e) { 2061 var n; 2062 e && !e.Thumbs && (n = new o(e), n.isActive && !0 === n.opts.autoStart && n.show()); 2063 }, 2064 "beforeShow.fb": function beforeShowFb(t, e, n, o) { 2065 var i = e && e.Thumbs; 2066 i && i.isVisible && i.focus(o ? 0 : 250); 2067 }, 2068 "afterKeydown.fb": function afterKeydownFb(t, e, n, o, i) { 2069 var a = e && e.Thumbs; 2070 a && a.isActive && 71 === i && (o.preventDefault(), a.toggle()); 2071 }, 2072 "beforeClose.fb": function beforeCloseFb(t, e) { 2073 var n = e && e.Thumbs; 2074 n && n.isVisible && !1 !== n.opts.hideOnClose && n.$grid.hide(); 2075 } 2076 }); 2077}(document, jQuery), function (t, e) { 2078 "use strict"; 2079 2080 function n(t) { 2081 var e = { 2082 "&": "&", 2083 "<": "<", 2084 ">": ">", 2085 '"': """, 2086 "'": "'", 2087 "/": "/", 2088 "`": "`", 2089 "=": "=" 2090 }; 2091 return String(t).replace(/[&<>"'`=\/]/g, function (t) { 2092 return e[t]; 2093 }); 2094 } 2095 2096 e.extend(!0, e.fancybox.defaults, { 2097 btnTpl: { 2098 share: '<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2098<path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>' 2099 }, 2100 share: { 2101 url: function url(t, e) { 2102 return !t.currentHash && "inline" !== e.type && "html" !== e.type && (e.origSrc || e.src) || window.location; 2103 }, 2104 tpl: '<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>' 2105 } 2106 }), e(t).on("click", "[data-fancybox-share]", function () { 2107 var t, 2108 o, 2109 i = e.fancybox.getInstance(), 2110 a = i.current || null; 2111 a && ("function" === e.type(a.opts.share.url) && (t = a.opts.share.url.apply(a, [i, a])), o = a.opts.share.tpl.replace(/\{\{media\}\}/g, "image" === a.type ? encodeURIComponent(a.src) : "").replace(/\{\{url\}\}/g, encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g, n(t)).replace(/\{\{descr\}\}/g, i.$caption ? encodeURIComponent(i.$caption.text()) : ""), e.fancybox.open({ 2112 src: i.translate(i, o), 2113 type: "html", 2114 opts: { 2115 touch: !1, 2116 animationEffect: !1, 2117 afterLoad: function afterLoad(t, e) { 2118 i.$refs.container.one("beforeClose.fb", function () { 2119 t.close(null, 0); 2120 }), e.$content.find(".fancybox-share__button").click(function () { 2121 return window.open(this.href, "Share", "width=550, height=450"), !1; 2122 }); 2123 }, 2124 mobile: { 2125 autoFocus: !1 2126 } 2127 } 2128 })); 2129 }); 2130}(document, jQuery), function (t, e, n) { 2131 "use strict"; 2132 2133 function o() { 2134 var e = t.location.hash.substr(1), 2135 n = e.split("-"), 2136 o = n.length > 1 && /^\+?\d+$/.test(n[n.length - 1]) ? parseInt(n.pop(-1), 10) || 1 : 1, 2137 i = n.join("-"); 2138 return { 2139 hash: e, 2140 index: o < 1 ? 1 : o, 2141 gallery: i 2142 }; 2143 } 2144 2145 function i(t) { 2146 "" !== t.gallery && n("[data-fancybox='" + n.escapeSelector(t.gallery) + "']").eq(t.index - 1).focus().trigger("click.fb-start"); 2147 } 2148 2149 function a(t) { 2150 var e, n; 2151 return !!t && (e = t.current ? t.current.opts : t.opts, "" !== (n = e.hash || (e.$orig ? e.$orig.data("fancybox") || e.$orig.data("fancybox-trigger") : "")) && n); 2152 } 2153 2154 n.escapeSelector || (n.escapeSelector = function (t) { 2155 return (t + "").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g, function (t, e) { 2156 return e ? "\0" === t ? "�" : t.slice(0, -1) + "\\" + t.charCodeAt(t.length - 1).toString(16) + " " : "\\" + t; 2157 }); 2158 }), n(function () { 2159 !1 !== n.fancybox.defaults.hash && (n(e).on({ 2160 "onInit.fb": function onInitFb(t, e) { 2161 var n, i; 2162 !1 !== e.group[e.currIndex].opts.hash && (n = o(), (i = a(e)) && n.gallery && i == n.gallery && (e.currIndex = n.index - 1)); 2163 }, 2164 "beforeShow.fb": function beforeShowFb(n, o, i, s) { 2165 var r; 2166 i && !1 !== i.opts.hash && (r = a(o)) && (o.currentHash = r + (o.group.length > 1 ? "-" + (i.index + 1) : ""), t.location.hash !== "#" + o.currentHash && (s && !o.origHash && (o.origHash = t.location.hash), o.hashTimer && clearTimeout(o.hashTimer), o.hashTimer = setTimeout(function () { 2167 "replaceState" in t.history ? (t.history[s ? "pushState" : "replaceState"]({}, e.title, t.location.pathname + t.location.search + "#" + o.currentHash), s && (o.hasCreatedHistory = !0)) : t.location.hash = o.currentHash, o.hashTimer = null; 2168 }, 300))); 2169 }, 2170 "beforeClose.fb": function beforeCloseFb(n, o, i) { 2171 i && !1 !== i.opts.hash && (clearTimeout(o.hashTimer), o.currentHash && o.hasCreatedHistory ? t.history.back() : o.currentHash && ("replaceState" in t.history ? t.history.replaceState({}, e.title, t.location.pathname + t.location.search + (o.origHash || "")) : t.location.hash = o.origHash), o.currentHash = null); 2172 } 2173 }), n(t).on("hashchange.fb", function () { 2174 var t = o(), 2175 e = null; 2176 n.each(n(".fancybox-container").get().reverse(), function (t, o) { 2177 var i = n(o).data("FancyBox"); 2178 if (i && i.currentHash) return e = i, !1; 2179 }), e ? e.currentHash === t.gallery + "-" + t.index || 1 === t.index && e.currentHash == t.gallery || (e.currentHash = null, e.close()) : "" !== t.gallery && i(t); 2180 }), setTimeout(function () { 2181 n.fancybox.getInstance() || i(o()); 2182 }, 50)); 2183 }); 2184}(window, document, jQuery), function (t, e) { 2185 "use strict"; 2186 2187 var n = new Date().getTime(); 2188 e(t).on({ 2189 "onInit.fb": function onInitFb(t, e, o) { 2190 e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll", function (t) { 2191 var o = e.current, 2192 i = new Date().getTime(); 2193 e.group.length < 2 || !1 === o.opts.wheel || "auto" === o.opts.wheel && "image" !== o.type || (t.preventDefault(), t.stopPropagation(), o.$slide.hasClass("fancybox-animated") || (t = t.originalEvent || t, i - n < 250 || (n = i, e[(-t.deltaY || -t.deltaX || t.wheelDelta || -t.detail) < 0 ? "next" : "previous"]()))); 2194 }); 2195 } 2196 }); 2197}(document, jQuery); 2198 2199/***/ }), 2200
2201/***/ "./resources/assets/scripts/live-chat-popup.js": 2202/*!*****************************************************!*\ 2203 !*** ./resources/assets/scripts/live-chat-popup.js ***! 2204 \*****************************************************/ 2205/*! no static exports found */ 2206/***/ (function(module, exports, __webpack_require__) { 2207 2208/* WEBPACK VAR INJECTION */(function($) {$("a").each(function (t, n) { 2209 var e = $(this); 2210 void 0 !== e.attr("href") && -1 != e.attr("href").indexOf("https://app.five9.com/consoles/ChatConsole") ? (e.attr("data-open", "popup"), e.attr("data-name", "Live Chat"), e.attr("data-width", "500"), e.attr("data-height", "600"), e.animate({ 2211 'opacity': 0 2212 }, 0)) : void 0 !== e.attr("href") && -1 != e.attr("href").indexOf("https://app.five9.com/clients/consoles/ChatConsole") ? (e.attr("data-open", "popup"), e.attr("data-name", "Live Chat"), e.attr("data-width", "500"), e.attr("data-height", "600"), e.animate({ 2213 'opacity': 0 2214 }, 0)) : void 0 !== e.attr("href") && -1 != e.attr("href").indexOf("https://crc.wd1.myworkdayjobs.com/CRCExternal") ? (e.attr("data-open", "popup"), e.attr("data-name", "Careers"), e.attr("data-width", "1000"), e.attr("data-height", "750"), e.animate({ 2215 'opacity': 0 2216 }, 0)) : void 0 !== e.attr("href") && -1 != e.attr("href").indexOf("https://www.google.com/maps/") ? (e.attr("data-open", "popup"), e.attr("data-name", "Maps"), e.attr("data-width", "1000"), e.attr("data-height", "750"), e.animate({ 2217 'opacity': 0 2218 }, 0)) : void 0 !== e.attr("href") && -1 != e.attr("href").indexOf("https://app.etapestry.com/hosted") ? (e.attr("data-open", "popup"), e.attr("data-name", "Online Giving"), e.attr("data-width", "1000"), e.attr("data-height", "750"), e.animate({ 2219 'opacity': 0 2220 }, 0)) : void 0 !== e.attr("href") && -1 != e.attr("href").indexOf("resources.") && (e.attr("data-open", "popup"), e.attr("data-name", "Resources"), e.attr("data-width", "1200"), e.attr("data-height", "750"), e.animate({ 2221 'opacity': 0 2222 }, 0)); 2223}); 2224$(document).ready(function () { 2225 $('[data-open="popup"]').animate({ 2226 'opacity': 1 2227 }, 300); 2228}); 2229document.addEventListener('DOMContentLoaded', function () { 2230 $('[data-open="popup"]').off("click"); 2231 $('[data-open="popup"]').on('click', function (e) { 2232 e.preventDefault(); 2233 e.stopPropagation(); 2234 var ele = $(this); 2235 2236 if (window.outerWidth > 640) { 2237 window.open(ele.attr("href"), ele.data("name"), "width=" + ele.data("width") + ",height=" + ele.data("height") + ",scrollbars=1"); 2238 } else { 2239 window.open(ele.attr("href"), '_blank'); 2240 } 2241 }); 2242}); 2243/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ "jquery"))) 2244 2245/***/ }), 2246
2247/***/ "./resources/assets/scripts/print-form-summary.js": 2248/*!********************************************************!*\ 2249 !*** ./resources/assets/scripts/print-form-summary.js ***! 2250 \********************************************************/ 2251/*! no static exports found */ 2252/***/ (function(module, exports) { 2253 2254var print_summary = document.querySelector('[data-print-summary]'); 2255 2256if (print_summary) { 2257 document.addEventListener("DOMContentLoaded", function () { 2258 print_summary.addEventListener("click", function (event) { 2259 event.preventDefault(); 2260 var divContents = document.querySelector(".form-summary-print-container").innerHTML; 2261 var a = window.open('', '', 'height=600, width=600'); 2262 a.addEventListener("load", function () { 2263 a.document.title = 'Print Form Summary'; 2264 }); 2265 a.document.write('<html><body>'); 2266 a.document.write(divContents); 2267 a.document.write('</body></html>'); 2268 a.document.close(); 2269 a.print(); 2270 }); 2271 }); 2272} 2273 2274/***/ }), 2275
2276/***/ "./resources/assets/scripts/rebelware-middleware-utm-tracking.js": 2277/*!***********************************************************************!*\ 2278 !*** ./resources/assets/scripts/rebelware-middleware-utm-tracking.js ***! 2279 \***********************************************************************/ 2280/*! no static exports found */ 2281/***/ (function(module, exports) { 2282 2283var mode = "production"; 2284var search = window.location.search; 2285var localStorageValidPeriod = 7; //days 2286 2287if (document.referrer) { 2288 //only stash referrers if they are external 2289 if (document.referrer.indexOf(location.hostname) === -1) { 2290 stashToLocalStorage("Middleware_Source", document.referrer); 2291 } 2292} 2293 2294if (isQueryStringPresent(search)) { 2295 //save the query string to local storage 2296 _console(search, "Middleware_Landing"); 2297 2298 stashToLocalStorage("Middleware_Landing", location.pathname + search); 2299} 2300 2301if (validateLocateStorageTimestamp()) { 2302 setHiddenFieldValues(); 2303} //initialize interest watcher 2304 2305 2306var forms = document.querySelectorAll("form"); 2307forms.forEach(function (form) { 2308 //console.log("form", form.dataset.formid); 2309 var labels = form.querySelectorAll('label'); 2310 var interest = labels.forEach(function (lab) { 2311 //console.log('form', form.dataset.formid, ": ", lab.textContent); 2312 if (lab.textContent == "What are you interested in?*" || lab.textContent == "What are you interested in?" || lab.textContent == "What level of care are you interested in?" || lab.textContent == "What location are you interested in?" || lab.textContent == "What location are you interested in?*") { 2313 //console.log("label found in form: ", form.dataset.formid); 2314 //find select 2315 var select = lab.closest('.gfield').querySelector('select'); //console.log(select,"select to bind"); 2316 2317 select.addEventListener('change', watchInterestSetCareLevel); 2318 } 2319 }); 2320}); 2321 2322function watchInterestSetCareLevel(e) { 2323 //console.log("----------WATCHER---------"); 2324 var ele = e.target; //console.log(ele, "ele"); 2325 //console.log(ele.querySelector("option:checked").textContent, "selected option"); 2326 2327 var form = ele.closest('form'); //console.log("watcher form id: ", form.dataset.formid) 2328 2329 var labels = form.querySelectorAll('label'); 2330 labels.forEach(function (lab) { 2331 if (lab.textContent == "Middleware_Care_Level") { 2332 //console.log("found value"); 2333 var input = lab.closest(".gfield").querySelector("input"); 2334 input.value = ele.querySelector("option:checked").textContent; 2335 } 2336 }); 2337} 2338 2339function setHiddenFieldValues() { 2340 var forms = document.querySelectorAll('form'); 2341 forms.forEach(function (form) { 2342 //find hidden fields that match the pattern 2343 var fields = form.querySelectorAll('.gfield.d-none'); 2344 fields.forEach(function (field) { 2345 // console.log(field,"field"); 2346 var label = field.querySelector('.gfield_label').innerText; // console.log(label,"label"); 2347 2348 if (label) { 2349 var value = getLocalStorageValue(label); // console.log(value,"value"); 2350 2351 if (value) { 2352 // console.log(field.querySelector('[type="text"]'),"input field"); 2353 field.querySelector('[type="text"]').setAttribute("value", value); 2354 } 2355 } 2356 }); 2357 }); 2358} 2359 2360function getLocalStorageValue(key) { 2361 var value = localStorage.getItem(key); 2362 2363 if (value) { 2364 return value; 2365 } 2366 2367 return ""; 2368} 2369 2370function stashToLocalStorage(key, value) { 2371 updateLocalStorageTimestamp(); 2372 localStorage.setItem(key, value); 2373} 2374 2375function validateLocateStorageTimestamp() { 2376 var now = Date.now(); 2377 var then = localStorage.getItem("rebel-utm-timestamp"); 2378 2379 if (now && then) { 2380 var diff = now - then; 2381 diff = diff / (1000 * 60 * 60 * 24); 2382 2383 if (diff >= localStorageValidPeriod) { 2384 return false; 2385 } 2386 } 2387 2388 return true; 2389} 2390 2391function updateLocalStorageTimestamp() { 2392 localStorage.setItem('rebel-utm-timestamp', Date.now()); 2393} 2394 2395function isQueryStringPresent() { 2396 return search && search.indexOf("utm_source") > -1 ? true : false; 2397} 2398 2399function _console(value, text) { 2400 if (mode === 'dev') { 2401 console.log(value, text); 2402 } 2403} 2404 2405/***/ }), 2406
2407/***/ "./resources/assets/scripts/sidebar.js": 2408/*!*********************************************!*\ 2409 !*** ./resources/assets/scripts/sidebar.js ***! 2410 \*********************************************/ 2411/*! no static exports found */ 2412/***/ (function(module, exports, __webpack_require__) { 2413 2414/* WEBPACK VAR INJECTION */(function($) {function check_sidebar() { 2415 var sidebar = document.querySelector(".sidebar"); 2416 2417 if (sidebar) { 2418 var menu_items = sidebar.querySelector(".menu-primary-navigation-container"); 2419 2420 if (menu_items && menu_items.offsetHeight < 20) { 2421 sidebar.classList.add("d-none"); 2422 } 2423 } 2424} 2425 2426$(document).on("ready", function () { 2427 check_sidebar(); 2428}); 2429/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ "jquery"))) 2430 2431/***/ }), 2432
2433/***/ "./resources/assets/scripts/tabs-deep-link.js": 2434/*!****************************************************!*\ 2435 !*** ./resources/assets/scripts/tabs-deep-link.js ***! 2436 \****************************************************/ 2437/*! no static exports found */ 2438/***/ (function(module, exports) { 2439 2440document.addEventListener("DOMContentLoaded", function () { 2441 if (location.hash) { 2442 var hash = location.hash; 2443 console.log(hash, "hash"); 2444 var tab = document.querySelector('[data-target="' + location.hash + '"]'); 2445 tab.click(); 2446 } 2447}); 2448 2449/***/ }), 2450
2451/***/ "./resources/assets/styles/app.scss": 2452/*!******************************************!*\ 2453 !*** ./resources/assets/styles/app.scss ***! 2454 \******************************************/ 2455/*! no static exports found */ 2456/***/ (function(module, exports) { 2457 2458// removed by extract-text-webpack-plugin 2459 2460/***/ }), 2461
2462/***/ "./resources/assets/styles/editor.scss": 2463/*!*********************************************!*\ 2464 !*** ./resources/assets/styles/editor.scss ***! 2465 \*********************************************/ 2466/*! no static exports found */ 2467/***/ (function(module, exports) { 2468 2469// removed by extract-text-webpack-plugin 2470 2471/***/ })
2471, 2472 2473/***/ 0: 2474/*!************************************************************************************************************************!*\ 2475 !*** multi ./resources/assets/scripts/app.js ./resources/assets/styles/app.scss ./resources/assets/styles/editor.scss ***! 2476 \************************************************************************************************************************/ 2477/*! no static exports found */ 2478/***/ (function(module, exports, __webpack_require__) { 2479 2480__webpack_require__(/*! /Users/rebel/Code/covenant-living-theme-core/resources/assets/scripts/app.js */"./resources/assets/scripts/app.js"); 2481__webpack_require__(/*! /Users/rebel/Code/covenant-living-theme-core/resources/assets/styles/app.scss */"./resources/assets/styles/app.scss"); 2482module.exports = __webpack_require__(/*! /Users/rebel/Code/covenant-living-theme-core/resources/assets/styles/editor.scss */"./resources/assets/styles/editor.scss"); 2483 2484 2485/***/ }), 2486 2487/***/ "jquery": 2488/*!**********************************!*\ 2489 !*** external {"this":"jQuery"} ***! 2490 \**********************************/ 2491/*! no static exports found */ 2492/***/ (function(module, exports) { 2493 2494(function() { module.exports = this["jQuery"]; }()); 2495 2496/***/ }) 2497 2498},[[0,"/scripts/manifest","/scripts/vendor"]]]); 2499//# sourceMappingURL=app.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.