1if (typeof Object.create !== "function") { 2 Object.create = function(e) { 3 function t() {} 4 t.prototype = e; 5 return new t 6 } 7}(function(e, t, n) { 8 var r = { 9 init: function(t, n) { 10 var r = this; 11 r.$elem = e(n); 12 r.options = e.extend({}, e.fn.owlCarousel.options, r.$elem.data(), t); 13 r.userOptions = t; 14 r.loadContent() 15 }, 16 loadContent: function() { 17 function r(e) { 18 var n, r = ""; 19 if (typeof t.options.jsonSuccess === "function") { 20 t.options.jsonSuccess.apply(this, [e]) 21 } else { 22 for (n in e.owl) { 23 if (e.owl.hasOwnProperty(n)) { 24 r += e.owl[n].item 25 } 26 } 27 t.$elem.html(r) 28 } 29 t.logIn() 30 } 31 var t = this, 32 n; 33 if (typeof t.options.beforeInit === "function") { 34 t.options.beforeInit.apply(this, [t.$elem]) 35 } 36 if (typeof t.options.jsonPath === "string") { 37 n = t.options.jsonPath; 38 e.getJSON(n, r) 39 } else { 40 t.logIn() 41 } 42 }, 43 logIn: function() { 44 var e = this; 45 e.$elem.data({ 46 "owl-originalStyles": e.$elem.attr("style"), 47 "owl-originalClasses": e.$elem.attr("class") 48 }); 49 e.$elem.css({ 50 opacity: 0 51 }); 52 e.orignalItems = e.options.items; 53 e.checkBrowser(); 54 e.wrapperWidth = 0; 55 e.checkVisible = null; 56 e.setVars() 57 }, 58 setVars: function() { 59 var e = this; 60 if (e.$elem.children().length === 0) { 61 return false 62 } 63 e.baseClass(); 64 e.eventTypes(); 65 e.$userItems = e.$elem.children(); 66 e.itemsAmount = e.$userItems.length; 67 e.wrapItems(); 68 e.$owlItems = e.$elem.find(".owl-item"); 69 e.$owlWrapper = e.$elem.find(".owl-wrapper"); 70 e.playDirection = "next"; 71 e.prevItem = 0; 72 e.prevArr = [0]; 73 e.currentItem = 0; 74 e.customEvents(); 75 e.onStartup() 76 }, 77 onStartup: function() { 78 var e = this; 79 e.updateItems(); 80 e.calculateAll(); 81 e.buildControls(); 82 e.updateControls(); 83 e.response(); 84 e.moveEvents(); 85 e.stopOnHover(); 86 e.owlStatus(); 87 if (e.options.transitionStyle !== false) { 88 e.transitionTypes(e.options.transitionStyle) 89 } 90 if (e.options.autoPlay === true) { 91 e.options.autoPlay = 5e3 92 } 93 e.play(); 94 e.$elem.find(".owl-wrapper").css("display", "block"); 95 if (!e.$elem.is(":visible")) { 96 e.watchVisibility() 97 } else { 98 e.$elem.css("opacity", 1) 99 } 100 e.onstartup = false;
101 e.eachMoveUpdate(); 102 if (typeof e.options.afterInit === "function") { 103 e.options.afterInit.apply(this, [e.$elem]) 104 } 105 }, 106 eachMoveUpdate: function() { 107 var e = this; 108 if (e.options.lazyLoad === true) { 109 e.lazyLoad() 110 } 111 if (e.options.autoHeight === true) { 112 e.autoHeight() 113 } 114 e.onVisibleItems(); 115 if (typeof e.options.afterAction === "function") { 116 e.options.afterAction.apply(this, [e.$elem]) 117 } 118 }, 119 updateVars: function() { 120 var e = this; 121 if (typeof e.options.beforeUpdate === "function") { 122 e.options.beforeUpdate.apply(this, [e.$elem]) 123 } 124 e.watchVisibility(); 125 e.updateItems(); 126 e.calculateAll(); 127 e.updatePosition(); 128 e.updateControls(); 129 e.eachMoveUpdate(); 130 if (typeof e.options.afterUpdate === "function") { 131 e.options.afterUpdate.apply(this, [e.$elem]) 132 } 133 }, 134 reload: function() { 135 var e = this; 136 t.setTimeout(function() { 137 e.updateVars() 138 }, 0) 139 }, 140 watchVisibility: function() { 141 var e = this; 142 if (e.$elem.is(":visible") === false) { 143 e.$elem.css({ 144 opacity: 0 145 }); 146 t.clearInterval(e.autoPlayInterval); 147 t.clearInterval(e.checkVisible) 148 } else { 149 return false 150 } 151 e.checkVisible = t.setInterval(function() { 152 if (e.$elem.is(":visible")) { 153 e.reload(); 154 e.$elem.animate({ 155 opacity: 1 156 }, 200); 157 t.clearInterval(e.checkVisible) 158 } 159 }, 500) 160 }, 161 wrapItems: function() { 162 var e = this; 163 e.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>'); 164 e.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">'); 165 e.wrapperOuter = e.$elem.find(".owl-wrapper-outer"); 166 e.$elem.css("display", "block") 167 }, 168 baseClass: function() { 169 var e = this, 170 t = e.$elem.hasClass(e.options.baseClass), 171 n = e.$elem.hasClass(e.options.theme); 172 if (!t) { 173 e.$elem.addClass(e.options.baseClass) 174 } 175 if (!n) { 176 e.$elem.addClass(e.options.theme) 177 } 178 }, 179 updateItems: function() { 180 var t = this, 181 n, r; 182 if (t.options.responsive === false) { 183 return false 184 } 185 if (t.options.singleItem === true) { 186 t.options.items = t.orignalItems = 1; 187 t.options.itemsCustom = false; 188 t.options.itemsDesktop = false; 189 t.options.itemsDesktopSmall = false; 190 t.options.itemsTablet = false; 191 t.options.itemsTabletSmall = false; 192 t.options.itemsMobile = false; 193 return false 194 } 195 n = e(t.options.responsiveBaseWidth).width(); 196 if (n > (t.options.itemsDesktop[0] || t.orignalItems)) { 197 t.options.items = t.orignalItems 198 } 199 if (t.options.itemsCustom !== false) { 200 t.options.itemsCustom.sort(function(e, t) { 201 return e[0] - t[0] 202 }); 203 for (r = 0; r < t.options.itemsCustom.length; r += 1) { 204 if (t.options.itemsCustom[r][0] <= n) { 205 t.options.items = t.options.itemsCustom[r][1] 206 } 207 } 208 } else { 209 if (n <= t.options.itemsDesktop[0] && t.options.itemsDesktop !== false) { 210 t.options.items = t.options.itemsDesktop[1] 211 } 212 if (n <= t.options.itemsDesktopSmall[0] && t.options.itemsDesktopSmall !== false) { 213 t.options.items = t.options.itemsDesktopSmall[1] 214 } 215 if (n <= t.options.itemsTablet[0] && t.options.itemsTablet !== false) { 216 t.options.items = t.options.itemsTablet[1] 217 } 218 if (n <= t.options.itemsTabletSmall[0] && t.options.itemsTabletSmall !== false) { 219 t.options.items = t.options.itemsTabletSmall[1] 220 } 221 if (n <= t.options.itemsMobile[0] && t.options.itemsMobile !== false) { 222 t.options.items = t.options.itemsMobile[1] 223 } 224 } 225 if (t.options.items > t.itemsAmount && t.options.itemsScaleUp === true) { 226 t.options.items = t.itemsAmount 227 } 228 }, 229 response: function() { 230 var n = this, 231 r, i; 232 if (n.options.responsive !== true) { 233 return false 234 } 235 i = e(t).width(); 236 n.resizer = function() { 237 if (e(t).width() !== i) { 238 if (n.options.autoPlay !== false) { 239 t.clearInterval(n.autoPlayInterval) 240 } 241 t.clearTimeout(r); 242 r = t.setTimeout(function() { 243 i = e(t).width();
244 n.updateVars() 245 }, n.options.responsiveRefreshRate) 246 } 247 }; 248 e(t).resize(n.resizer) 249 }, 250 updatePosition: function() { 251 var e = this; 252 e.jumpTo(e.currentItem); 253 if (e.options.autoPlay !== false) { 254 e.checkAp() 255 } 256 }, 257 appendItemsSizes: function() { 258 var t = this, 259 n = 0, 260 r = t.itemsAmount - t.options.items; 261 t.$owlItems.each(function(i) { 262 var s = e(this); 263 s.css({ 264 width: t.itemWidth 265 }).data("owl-item", Number(i)); 266 if (i % t.options.items === 0 || i === r) { 267 if (!(i > r)) { 268 n += 1 269 } 270 } 271 s.data("owl-roundPages", n) 272 }) 273 }, 274 appendWrapperSizes: function() { 275 var e = this, 276 t = e.$owlItems.length * e.itemWidth; 277 e.$owlWrapper.css({ 278 width: t * 2, 279 left: 0 280 }); 281 e.appendItemsSizes() 282 }, 283 calculateAll: function() { 284 var e = this; 285 e.calculateWidth(); 286 e.appendWrapperSizes(); 287 e.loops(); 288 e.max() 289 }, 290 calculateWidth: function() { 291 var e = this; 292 e.itemWidth = Math.round(e.$elem.width() / e.options.items) 293 }, 294 max: function() { 295 var e = this, 296 t = (e.itemsAmount * e.itemWidth - e.options.items * e.itemWidth) * -1; 297 if (e.options.items > e.itemsAmount) { 298 e.maximumItem = 0; 299 t = 0; 300 e.maximumPixels = 0 301 } else { 302 e.maximumItem = e.itemsAmount - e.options.items; 303 e.maximumPixels = t 304 } 305 return t 306 }, 307 min: function() { 308 return 0 309 }, 310 loops: function() { 311 var t = this, 312 n = 0, 313 r = 0, 314 i, s, o; 315 t.positionsInArray = [0]; 316 t.pagesInArray = []; 317 for (i = 0; i < t.itemsAmount; i += 1) { 318 r += t.itemWidth; 319 t.positionsInArray.push(-r); 320 if (t.options.scrollPerPage === true) { 321 s = e(t.$owlItems[i]); 322 o = s.data("owl-roundPages"); 323 if (o !== n) { 324 t.pagesInArray[n] = t.positionsInArray[i]; 325 n = o 326 } 327 } 328 } 329 }, 330 buildControls: function() { 331 var t = this; 332 if (t.options.navigation === true || t.options.pagination === true) {
333 t.owlControls = e('<div class="owl-controls"/>').toggleClass("clickable", !t.browser.isTouch).appendTo(t.$elem) 334 } 335 if (t.options.pagination === true) { 336 t.buildPagination() 337 } 338 if (t.options.navigation === true) { 339 t.buildButtons() 340 } 341 }, 342 buildButtons: function() { 343 var t = this, 344 n = e('<div class="owl-buttons"/>'); 345 t.owlControls.append(n); 346 t.buttonPrev = e("<div/>", { 347 "class": "owl-prev", 348 html: t.options.navigationText[0] || "" 349 }); 350 t.buttonNext = e("<div/>", { 351 "class": "owl-next", 352 html: t.options.navigationText[1] || "" 353 }); 354 n.append(t.buttonPrev).append(t.buttonNext); 355 n.on("touchstart.owlControls mousedown.owlControls", 'div[class^="owl"]', function(e) { 356 e.preventDefault() 357 }); 358 n.on("touchend.owlControls mouseup.owlControls", 'div[class^="owl"]', function(n) { 359 n.preventDefault(); 360 if (e(this).hasClass("owl-next")) { 361 t.next() 362 } else { 363 t.prev() 364 } 365 }) 366 }, 367 buildPagination: function() { 368 var t = this; 369 t.paginationWrapper = e('<div class="owl-pagination"/>'); 370 t.owlControls.append(t.paginationWrapper); 371 t.paginationWrapper.on("touchend.owlControls mouseup.owlControls", ".owl-page", function(n) { 372 n.preventDefault(); 373 if (Number(e(this).data("owl-page")) !== t.currentItem) { 374 t.goTo(Number(e(this).data("owl-page")), true) 375 } 376 }) 377 }, 378 updatePagination: function() { 379 var t = this, 380 n, r, i, s, o, u; 381 if (t.options.pagination === false) { 382 return false 383 } 384 t.paginationWrapper.html(""); 385 n = 0; 386 r = t.itemsAmount - t.itemsAmount % t.options.items; 387 for (s = 0; s < t.itemsAmount; s += 1) { 388 if (s % t.options.items === 0) { 389 n += 1; 390 if (r === s) { 391 i = t.itemsAmount - t.options.items 392 } 393 o = e("<div/>", { 394 "class": "owl-page" 395 }); 396 u = e("<span></span>", { 397 text: t.options.paginationNumbers === true ? n : "", 398 "class": t.options.paginationNumbers === true ? "owl-numbers" : "" 399 }); 400 o.append(u); 401 o.data("owl-page", r === s ? i : s); 402 o.data("owl-roundPages", n); 403 t.paginationWrapper.append(o) 404 } 405 } 406 t.checkPagination() 407 }, 408 checkPagination: function() { 409 var t = this; 410 if (t.options.pagination === false) { 411 return false 412 } 413 t.paginationWrapper.find(".owl-page").each(function() { 414 if (e(this).data("owl-roundPages") === e(t.$owlItems[t.currentItem]).data("owl-roundPages")) { 415 t.paginationWrapper.find(".owl-page").removeClass("active"); 416 e(this).addClass("active") 417 } 418 }) 419 }, 420 checkNavigation: function() { 421 var e = this; 422 if (e.options.navigation === false) { 423 return false 424 } 425 if (e.options.rewindNav === false) { 426 if (e.currentItem === 0 && e.maximumItem === 0) { 427 e.buttonPrev.addClass("disabled"); 428 e.buttonNext.addClass("disabled") 429 } else if (e.currentItem === 0 && e.maximumItem !== 0) { 430 e.buttonPrev.addClass("disabled"); 431 e.buttonNext.removeClass("disabled") 432 } else if (e.currentItem === e.maximumItem) { 433 e.buttonPrev.removeClass("disabled"); 434 e.buttonNext.addClass("disabled") 435 } else if (e.currentItem !== 0 && e.currentItem !== e.maximumItem) { 436 e.buttonPrev.removeClass("disabled"); 437 e.buttonNext.removeClass("disabled") 438 } 439 } 440 }, 441 updateControls: function() { 442 var e = this; 443 e.updatePagination(); 444 e.checkNavigation(); 445 if (e.owlControls) { 446 if (e.options.items >= e.itemsAmount) { 447 e.owlControls.hide() 448 } else { 449 e.owlControls.show() 450 } 451 } 452 }, 453 destroyControls: function() { 454 var e = this; 455 if (e.owlControls) { 456 e.owlControls.remove() 457 } 458 }, 459 next: function(e) { 460 var t = this; 461 if (t.isTransition) { 462 return false 463 } 464 t.currentItem += t.options.scrollPerPage === true ? t.options.items : 1; 465 if (t.currentItem > t.maximumItem + (t.options.scrollPerPage === true ? t.options.items - 1 : 0)) { 466 if (t.options.rewindNav === true) { 467 t.currentItem = 0; 468 e = "rewind" 469 } else { 470 t.currentItem = t.maximumItem; 471 return false 472 } 473 } 474 t.goTo(t.currentItem, e) 475 }, 476 prev: function(e) { 477 var t = this; 478 if (t.isTransition) { 479 return false 480 } 481 if (t.options.scrollPerPage === true && t.currentItem > 0 && t.currentItem < t.options.items) { 482 t.currentItem = 0 483 } else { 484 t.currentItem -= t.options.scrollPerPage === true ? t.options.items : 1 485 } 486 if (t.currentItem < 0) { 487 if (t.options.rewindNav === true) { 488 t.currentItem = t.maximumItem; 489 e = "rewind" 490 } else { 491 t.currentItem = 0; 492 return false 493 } 494 } 495 t.goTo(t.currentItem, e) 496 }, 497 goTo: function(e, n, r) { 498 var i = this, 499 s; 500 if (i.isTransition) { 501 return false 502 } 503 if (typeof i.options.beforeMove === "function") { 504 i.options.beforeMove.apply(this, [i.$elem]) 505 } 506 if (e >= i.maximumItem) { 507 e = i.maximumItem 508 } else if (e <= 0) { 509 e = 0 510 } 511 i.currentItem = i.owl.currentItem = e; 512 if (i.options.transitionStyle !== false && r !== "drag" && i.options.items === 1 && i.browser.support3d === true) { 513 i.swapSpeed(0); 514 if (i.browser.support3d === true) { 515 i.transition3d(i.positionsInArray[e]) 516 } else { 517 i.css2slide(i.positionsInArray[e], 1) 518 } 519 i.afterGo(); 520 i.singleItemTransition(); 521 return false 522 } 523 s = i.positionsInArray[e]; 524 if (i.browser.support3d === true) { 525 i.isCss3Finish = false;
526 if (n === true) { 527 i.swapSpeed("paginationSpeed"); 528 t.setTimeout(function() { 529 i.isCss3Finish = true 530 }, i.options.paginationSpeed) 531 } else if (n === "rewind") { 532 i.swapSpeed(i.options.rewindSpeed); 533 t.setTimeout(function() { 534 i.isCss3Finish = true 535 }, i.options.rewindSpeed) 536 } else { 537 i.swapSpeed("slideSpeed"); 538 t.setTimeout(function() { 539 i.isCss3Finish = true 540 }, i.options.slideSpeed) 541 } 542 i.transition3d(s) 543 } else { 544 if (n === true) { 545 i.css2slide(s, i.options.paginationSpeed) 546 } else if (n === "rewind") { 547 i.css2slide(s, i.options.rewindSpeed) 548 } else { 549 i.css2slide(s, i.options.slideSpeed) 550 } 551 } 552 i.afterGo() 553 }, 554 jumpTo: function(e) { 555 var t = this; 556 if (typeof t.options.beforeMove === "function") { 557 t.options.beforeMove.apply(this, [t.$elem]) 558 } 559 if (e >= t.maximumItem || e === -1) { 560 e = t.maximumItem 561 } else if (e <= 0) { 562 e = 0 563 } 564 t.swapSpeed(0); 565 if (t.browser.support3d === true) { 566 t.transition3d(t.positionsInArray[e]) 567 } else { 568 t.css2slide(t.positionsInArray[e], 1) 569 } 570 t.currentItem = t.owl.currentItem = e; 571 t.afterGo() 572 }, 573 afterGo: function() { 574 var e = this; 575 e.prevArr.push(e.currentItem); 576 e.prevItem = e.owl.prevItem = e.prevArr[e.prevArr.length - 2]; 577 e.prevArr.shift(0); 578 if (e.prevItem !== e.currentItem) { 579 e.checkPagination(); 580 e.checkNavigation();
581 e.eachMoveUpdate(); 582 if (e.options.autoPlay !== false) { 583 e.checkAp() 584 } 585 } 586 if (typeof e.options.afterMove === "function" && e.prevItem !== e.currentItem) { 587 e.options.afterMove.apply(this, [e.$elem]) 588 } 589 }, 590 stop: function() { 591 var e = this; 592 e.apStatus = "stop"; 593 t.clearInterval(e.autoPlayInterval) 594 }, 595 checkAp: function() { 596 var e = this; 597 if (e.apStatus !== "stop") { 598 e.play() 599 } 600 }, 601 play: function() { 602 var e = this; 603 e.apStatus = "play"; 604 if (e.options.autoPlay === false) { 605 return false 606 } 607 t.clearInterval(e.autoPlayInterval); 608 e.autoPlayInterval = t.setInterval(function() { 609 e.next(true) 610 }, e.options.autoPlay) 611 }, 612 swapSpeed: function(e) { 613 var t = this; 614 if (e === "slideSpeed") { 615 t.$owlWrapper.css(t.addCssSpeed(t.options.slideSpeed)) 616 } else if (e === "paginationSpeed") { 617 t.$owlWrapper.css(t.addCssSpeed(t.options.paginationSpeed)) 618 } else if (typeof e !== "string") { 619 t.$owlWrapper.css(t.addCssSpeed(e)) 620 } 621 }, 622 addCssSpeed: function(e) { 623 return { 624 "-webkit-transition": "all " + e + "ms ease", 625 "-moz-transition": "all " + e + "ms ease", 626 "-o-transition": "all " + e + "ms ease", 627 transition: "all " + e + "ms ease" 628 } 629 }, 630 removeTransition: function() { 631 return { 632 "-webkit-transition": "", 633 "-moz-transition": "", 634 "-o-transition": "", 635 transition: "" 636 } 637 }, 638 doTranslate: function(e) { 639 return { 640 "-webkit-transform": "translate3d(" + e + "px, 0px, 0px)", 641 "-moz-transform": "translate3d(" + e + "px, 0px, 0px)", 642 "-o-transform": "translate3d(" + e + "px, 0px, 0px)", 643 "-ms-transform": "translate3d(" + e + "px, 0px, 0px)", 644 transform: "translate3d(" + e + "px, 0px,0px)" 645 } 646 }, 647 transition3d: function(e) { 648 var t = this; 649 t.$owlWrapper.css(t.doTranslate(e)) 650 }, 651 css2move: function(e) { 652 var t = this; 653 t.$owlWrapper.css({ 654 left: e 655 }) 656 }, 657 css2slide: function(e, t) { 658 var n = this; 659 n.isCssFinish = false; 660 n.$owlWrapper.stop(true, true).animate({ 661 left: e 662 }, { 663 duration: t || n.options.slideSpeed, 664 complete: function() { 665 n.isCssFinish = true 666 } 667 }) 668 }, 669 checkBrowser: function() { 670 var e = this, 671 r = n.createElement("p"), 672 i, s = { 673 webkitTransform: "-webkit-transform", 674 OTransform: "-o-transform", 675 msTransform: "-ms-transform", 676 MozTransform: "-moz-transform", 677 transform: "transform" 678 }; 679 n.body.insertBefore(r, null); 680 for (var o in s) { 681 if (r.style[o] !== undefined) { 682 r.style[o] = "translate3d(1px,1px,1px)"; 683 i = t.getComputedStyle(r).getPropertyValue(s[o]) 684 } 685 } 686 n.body.removeChild(r); 687 isTouch = "ontouchstart" in t || t.navigator.msMaxTouchPoints; 688 e.browser = { 689 support3d: i !== undefined && i.length > 0 && i !== "none", 690 isTouch: isTouch 691 } 692 }, 693 moveEvents: function() { 694 var e = this; 695 if (e.options.mouseDrag !== false || e.options.touchDrag !== false) { 696 e.gestures(); 697 e.disabledEvents() 698 } 699 }, 700 eventTypes: function() { 701 var e = this, 702 t = ["s", "e", "x"]; 703 e.ev_types = {}; 704 if (e.options.mouseDrag === true && e.options.touchDrag === true) { 705 t = ["touchstart.owl mousedown.owl", "touchmove.owl mousemove.owl", "touchend.owl touchcancel.owl mouseup.owl"] 706 } else if (e.options.mouseDrag === false && e.options.touchDrag === true) { 707 t = ["touchstart.owl", "touchmove.owl", "touchend.owl touchcancel.owl"] 708 } else if (e.options.mouseDrag === true && e.options.touchDrag === false) { 709 t = ["mousedown.owl", "mousemove.owl", "mouseup.owl"] 710 } 711 e.ev_types.start = t[0]; 712 e.ev_types.move = t[1]; 713 e.ev_types.end = t[2] 714 }, 715 disabledEvents: function() { 716 var t = this; 717 t.$elem.on("dragstart.owl", function(e) { 718 e.preventDefault() 719 }); 720 t.$elem.on("mousedown.disableTextSelect", function(t) { 721 return e(t.target).is("input, textarea, select, option") 722 }) 723 }, 724 gestures: function() { 725 function s(e) { 726 if (e.touches !== undefined) { 727 return { 728 x: e.touches[0].pageX, 729 y: e.touches[0].pageY 730 } 731 } 732 if (e.touches === undefined) { 733 if (e.pageX !== undefined) { 734 return { 735 x: e.pageX, 736 y: e.pageY 737 } 738 } 739 if (e.pageX === undefined) { 740 return { 741 x: e.clientX, 742 y: e.clientY 743 } 744 } 745 } 746 } 747 748 function o(t) { 749 if (t === "on") { 750 e(n).on(r.ev_types.move, a); 751 e(n).on(r.ev_types.end, f) 752 } else if (t === "off") { 753 e(n).off(r.ev_types.move); 754 e(n).off(r.ev_types.end) 755 } 756 } 757 758 function u(n) { 759 var u = n.originalEvent || n || t.event, 760 a; 761 if (u.which === 3) { 762 return false 763 } 764 if (r.itemsAmount <= r.options.items) { 765 return 766 } 767 if (r.isCssFinish === false && !r.options.dragBeforeAnimFinish) { 768 return false 769 } 770 if (r.isCss3Finish === false && !r.options.dragBeforeAnimFinish) { 771 return false 772 } 773 if (r.options.autoPlay !== false) { 774 t.clearInterval(r.autoPlayInterval) 775 } 776 if (r.browser.isTouch !== true && !r.$owlWrapper.hasClass("grabbing")) { 777 r.$owlWrapper.addClass("grabbing") 778 } 779 r.newPosX = 0; 780 r.newRelativeX = 0; 781 e(this).css(r.removeTransition()); 782 a = e(this).position(); 783 i.relativePos = a.left; 784 i.offsetX = s(u).x - a.left; 785 i.offsetY = s(u).y - a.top; 786 o("on"); 787 i.sliding = false;
788 i.targetElement = u.target || u.srcElement 789 } 790 791 function a(o) { 792 var u = o.originalEvent || o || t.event, 793 a, f; 794 r.newPosX = s(u).x - i.offsetX; 795 r.newPosY = s(u).y - i.offsetY; 796 r.newRelativeX = r.newPosX - i.relativePos; 797 if (typeof r.options.startDragging === "function" && i.dragging !== true && r.newRelativeX !== 0) { 798 i.dragging = true; 799 r.options.startDragging.apply(r, [r.$elem]) 800 } 801 if ((r.newRelativeX > 8 || r.newRelativeX < -8) && r.browser.isTouch === true) { 802 if (u.preventDefault !== undefined) { 803 u.preventDefault() 804 } else { 805 u.returnValue = false 806 } 807 i.sliding = true 808 } 809 if ((r.newPosY > 10 || r.newPosY < -10) && i.sliding === false) { 810 e(n).off("touchmove.owl") 811 } 812 a = function() { 813 return r.newRelativeX / 5 814 }; 815 f = function() { 816 return r.maximumPixels + r.newRelativeX / 5 817 }; 818 r.newPosX = Math.max(Math.min(r.newPosX, a()), f()); 819 if (r.browser.support3d === true) { 820 r.transition3d(r.newPosX) 821 } else { 822 r.css2move(r.newPosX) 823 } 824 } 825 826 function f(n) { 827 var s = n.originalEvent || n || t.event, 828 u, a, f; 829 s.target = s.target || s.srcElement; 830 i.dragging = false; 831 if (r.browser.isTouch !== true) { 832 r.$owlWrapper.removeClass("grabbing") 833 } 834 if (r.newRelativeX < 0) { 835 r.dragDirection = r.owl.dragDirection = "left" 836 } else { 837 r.dragDirection = r.owl.dragDirection = "right" 838 } 839 if (r.newRelativeX !== 0) { 840 u = r.getNewPosition(); 841 r.goTo(u, false, "drag"); 842 if (i.targetElement === s.target && r.browser.isTouch !== true) { 843 e(s.target).on("click.disable", function(t) { 844 t.stopImmediatePropagation(); 845 t.stopPropagation(); 846 t.preventDefault(); 847 e(t.target).off("click.disable") 848 }); 849 a = e._data(s.target, "events").click; 850 f = a.pop(); 851 a.splice(0, 0, f) 852 } 853 } 854 o("off") 855 } 856 var r = this, 857 i = { 858 offsetX: 0, 859 offsetY: 0, 860 baseElWidth: 0, 861 relativePos: 0, 862 position: null, 863 minSwipe: null, 864 maxSwipe: null, 865 sliding: null, 866 dargging: null, 867 targetElement: null 868 }; 869 r.isCssFinish = true; 870 r.$elem.on(r.ev_types.start, ".owl-wrapper", u) 871 }, 872 getNewPosition: function() { 873 var e = this, 874 t = e.closestItem(); 875 if (t > e.maximumItem) { 876 e.currentItem = e.maximumItem; 877 t = e.maximumItem 878 } else if (e.newPosX >= 0) { 879 t = 0; 880 e.currentItem = 0 881 } 882 return t 883 }, 884 closestItem: function() { 885 var t = this, 886 n = t.options.scrollPerPage === true ? t.pagesInArray : t.positionsInArray, 887 r = t.newPosX, 888 i = null; 889 e.each(n, function(s, o) { 890 if (r - t.itemWidth / 20 > n[s + 1] && r - t.itemWidth / 20 < o && t.moveDirection() === "left") { 891 i = o; 892 if (t.options.scrollPerPage === true) { 893 t.currentItem = e.inArray(i, t.positionsInArray) 894 } else { 895 t.currentItem = s 896 } 897 } else if (r + t.itemWidth / 20 < o && r + t.itemWidth / 20 > (n[s + 1] || n[s] - t.itemWidth) && t.moveDirection() === "right") { 898 if (t.options.scrollPerPage === true) { 899 i = n[s + 1] || n[n.length - 1]; 900 t.currentItem = e.inArray(i, t.positionsInArray) 901 } else { 902 i = n[s + 1]; 903 t.currentItem = s + 1 904 } 905 } 906 }); 907 return t.currentItem 908 }, 909 moveDirection: function() { 910 var e = this, 911 t; 912 if (e.newRelativeX < 0) { 913 t = "right"; 914 e.playDirection = "next" 915 } else { 916 t = "left"; 917 e.playDirection = "prev" 918 } 919 return t 920 }, 921 customEvents: function() { 922 var e = this; 923 e.$elem.on("owl.next", function() { 924 e.next() 925 }); 926 e.$elem.on("owl.prev", function() { 927 e.prev() 928 }); 929 e.$elem.on("owl.play", function(t, n) { 930 e.options.autoPlay = n; 931 e.play(); 932 e.hoverStatus = "play" 933 }); 934 e.$elem.on("owl.stop", function() { 935 e.stop(); 936 e.hoverStatus = "stop" 937 }); 938 e.$elem.on("owl.goTo", function(t, n) { 939 e.goTo(n) 940 }); 941 e.$elem.on("owl.jumpTo", function(t, n) { 942 e.jumpTo(n) 943 }) 944 }, 945 stopOnHover: function() { 946 var e = this; 947 if (e.options.stopOnHover === true && e.browser.isTouch !== true && e.options.autoPlay !== false) { 948 e.$elem.on("mouseover", function() { 949 e.stop() 950 }); 951 e.$elem.on("mouseout", function() { 952 if (e.hoverStatus !== "stop") { 953 e.play() 954 } 955 }) 956 } 957 }, 958 lazyLoad: function() { 959 var t = this, 960 n, r, i, s, o; 961 if (t.options.lazyLoad === false) { 962 return false 963 } 964 for (n = 0; n < t.itemsAmount; n += 1) { 965 r = e(t.$owlItems[n]); 966 if (r.data("owl-loaded") === "loaded") { 967 continue 968 } 969 i = r.data("owl-item"); 970 s = r.find(".lazyOwl"); 971 if (typeof s.data("src") !== "string") { 972 r.data("owl-loaded", "loaded"); 973 continue 974 } 975 if (r.data("owl-loaded") === undefined) { 976 s.hide(); 977 r.addClass("loading").data("owl-loaded", "checked") 978 } 979 if (t.options.lazyFollow === true) { 980 o = i >= t.currentItem 981 } else { 982 o = true 983 } 984 if (o && i < t.currentItem + t.options.items && s.length) { 985 s.each(function() { 986 t.lazyPreload(r, e(this)) 987 }) 988 } 989 } 990 }, 991 lazyPreload: function(e, n) { 992 function o() { 993 e.data("owl-loaded", "loaded").removeClass("loading"); 994 n.removeAttr("data-src"); 995 if (r.options.lazyEffect === "fade") { 996 n.fadeIn(400) 997 } else { 998 n.show() 999 } 1000 if (typeof r.options.afterLazyLoad === "function") { 1001 r.options.afterLazyLoad.apply(this, [r.$elem]) 1002 } 1003 } 1004 1005 function u() { 1006 i += 1; 1007 if (r.completeImg(n.get(0)) || s === true) { 1008 o() 1009 } else if (i <= 100) { 1010 t.setTimeout(u, 100) 1011 } else { 1012 o() 1013 } 1014 } 1015 var r = this, 1016 i = 0, 1017 s; 1018 if (n.prop("tagName") === "DIV") { 1019 n.css("background-image", "url(" + n.data("src") + ")"); 1020 s = true 1021 } else { 1022 n[0].src = n.data("src") 1023 } 1024 u() 1025 }, 1026 autoHeight: function() { 1027 function s() { 1028 var r = e(n.$owlItems[n.currentItem]).height(); 1029 n.wrapperOuter.css("height", r + "px"); 1030 if (!n.wrapperOuter.hasClass("autoHeight")) { 1031 t.setTimeout(function() { 1032 n.wrapperOuter.addClass("autoHeight") 1033 }, 0) 1034 } 1035 } 1036 1037 function o() { 1038 i += 1; 1039 if (n.completeImg(r.get(0))) { 1040 s() 1041 } else if (i <= 100) { 1042 t.setTimeout(o, 100) 1043 } else { 1044 n.wrapperOuter.css("height", "") 1045 } 1046 } 1047 var n = this, 1048 r = e(n.$owlItems[n.currentItem]).find("img"), 1049 i; 1050 if (r.get(0) !== undefined) { 1051 i = 0; 1052 o() 1053 } else { 1054 s() 1055 } 1056 }, 1057 completeImg: function(e) { 1058 var t; 1059 if (!e.complete) { 1060 return false 1061 }
1062 t = typeof e.naturalWidth; 1063 if (t !== "undefined" && e.naturalWidth === 0) { 1064 return false 1065 } 1066 return true 1067 }, 1068 onVisibleItems: function() { 1069 var t = this, 1070 n; 1071 if (t.options.addClassActive === true) { 1072 t.$owlItems.removeClass("active") 1073 } 1074 t.visibleItems = []; 1075 for (n = t.currentItem; n < t.currentItem + t.options.items; n += 1) { 1076 t.visibleItems.push(n); 1077 if (t.options.addClassActive === true) { 1078 e(t.$owlItems[n]).addClass("active") 1079 } 1080 } 1081 t.owl.visibleItems = t.visibleItems 1082 }, 1083 transitionTypes: function(e) { 1084 var t = this; 1085 t.outClass = "owl-" + e + "-out"; 1086 t.inClass = "owl-" + e + "-in" 1087 }, 1088 singleItemTransition: function() { 1089 function a(e) { 1090 return { 1091 position: "relative", 1092 left: e + "px" 1093 } 1094 } 1095 var e = this, 1096 t = e.outClass, 1097 n = e.inClass, 1098 r = e.$owlItems.eq(e.currentItem), 1099 i = e.$owlItems.eq(e.prevItem), 1100 s = Math.abs(e.positionsInArray[e.currentItem]) + e.positionsInArray[e.prevItem], 1101 o = Math.abs(e.positionsInArray[e.currentItem]) + e.itemWidth / 2, 1102 u = "webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend"; 1103 e.isTransition = true; 1104 e.$owlWrapper.addClass("owl-origin").css({ 1105 "-webkit-transform-origin": o + "px", 1106 "-moz-perspective-origin": o + "px", 1107 "perspective-origin": o + "px" 1108 }); 1109 i.css(a(s, 10)).addClass(t).on(u, function() { 1110 e.endPrev = true; 1111 i.off(u); 1112 e.clearTransStyle(i, t) 1113 }); 1114 r.addClass(n).on(u, function() { 1115 e.endCurrent = true; 1116 r.off(u); 1117 e.clearTransStyle(r, n) 1118 }) 1119 }, 1120 clearTransStyle: function(e, t) { 1121 var n = this; 1122 e.css({ 1123 position: "", 1124 left: "" 1125 }).removeClass(t); 1126 if (n.endPrev && n.endCurrent) { 1127 n.$owlWrapper.removeClass("owl-origin"); 1128 n.endPrev = false; 1129 n.endCurrent = false; 1130 n.isTransition = false 1131 } 1132 }, 1133 owlStatus: function() { 1134 var e = this; 1135 e.owl = { 1136 userOptions: e.userOptions, 1137 baseElement: e.$elem, 1138 userItems: e.$userItems, 1139 owlItems: e.$owlItems, 1140 currentItem: e.currentItem, 1141 prevItem: e.prevItem, 1142 visibleItems: e.visibleItems, 1143 isTouch: e.browser.isTouch, 1144 browser: e.browser, 1145 dragDirection: e.dragDirection 1146 } 1147 }, 1148 clearEvents: function() { 1149 var r = this; 1150 r.$elem.off(".owl owl mousedown.disableTextSelect"); 1151 e(n).off(".owl owl"); 1152 e(t).off("resize", r.resizer) 1153 }, 1154 unWrap: function() { 1155 var e = this; 1156 if (e.$elem.children().length !== 0) { 1157 e.$owlWrapper.unwrap(); 1158 e.$userItems.unwrap().unwrap(); 1159 if (e.owlControls) { 1160 e.owlControls.remove() 1161 } 1162 } 1163 e.clearEvents(); 1164 e.$elem.attr("style", e.$elem.data("owl-originalStyles") || ""); 1165 e.$elem.attr("class", e.$elem.data("owl-originalClasses")) 1166 }, 1167 destroy: function() { 1168 var e = this; 1169 e.stop(); 1170 t.clearInterval(e.checkVisible); 1171 e.unWrap(); 1172 e.$elem.removeData() 1173 }, 1174 reinit: function(t) { 1175 var n = this, 1176 r = e.extend({}, n.userOptions, t); 1177 n.unWrap(); 1178 n.init(r, n.$elem) 1179 }, 1180 addItem: function(e, t) { 1181 var n = this, 1182 r; 1183 if (!e) { 1184 return false 1185 } 1186 if (n.$elem.children().length === 0) {
1187 n.$elem.append(e); 1188 n.setVars(); 1189 return false 1190 } 1191 n.unWrap(); 1192 if (t === undefined || t === -1) { 1193 r = -1 1194 } else { 1195 r = t 1196 } 1197 if (r >= n.$userItems.length || r === -1) { 1198 n.$userItems.eq(-1).after(e) 1199 } else { 1200 n.$userItems.eq(r).before(e) 1201 } 1202 n.setVars() 1203 }, 1204 removeItem: function(e) { 1205 var t = this, 1206 n; 1207 if (t.$elem.children().length === 0) { 1208 return false 1209 } 1210 if (e === undefined || e === -1) { 1211 n = -1 1212 } else { 1213 n = e 1214 } 1215 t.unWrap(); 1216 t.$userItems.eq(n).remove(); 1217 t.setVars() 1218 } 1219 }; 1220 e.fn.owlCarousel = function(t) { 1221 return this.each(function() { 1222 if (e(this).data("owl-init") === true) { 1223 return false 1224 } 1225 e(this).data("owl-init", true); 1226 var n = Object.create(r); 1227 n.init(t, this); 1228 e.data(this, "owlCarousel", n) 1229 }) 1230 }; 1231 e.fn.owlCarousel.options = { 1232 items: 5, 1233 itemsCustom: false, 1234 itemsDesktop: [1199, 4], 1235 itemsDesktopSmall: [979, 3], 1236 itemsTablet: [768, 2], 1237 itemsTabletSmall: false, 1238 itemsMobile: [479, 1], 1239 singleItem: false, 1240 itemsScaleUp: false, 1241 slideSpeed: 200, 1242 paginationSpeed: 800, 1243 rewindSpeed: 1e3, 1244 autoPlay: false, 1245 stopOnHover: false, 1246 navigation: false, 1247 navigationText: ["prev", "next"], 1248 rewindNav: true, 1249 scrollPerPage: false, 1250 pagination: true, 1251 paginationNumbers: false, 1252 responsive: true, 1253 responsiveRefreshRate: 200, 1254 responsiveBaseWidth: t, 1255 baseClass: "owl-carousel", 1256 theme: "owl-theme", 1257 lazyLoad: false, 1258 lazyFollow: true, 1259 lazyEffect: "fade", 1260 autoHeight: false, 1261 jsonPath: false, 1262 jsonSuccess: false, 1263 dragBeforeAnimFinish: true, 1264 mouseDrag: true, 1265 touchDrag: true, 1266 addClassActive: false, 1267 transitionStyle: false, 1268 beforeUpdate: false, 1269 afterUpdate: false, 1270 beforeInit: false, 1271 afterInit: false, 1272 beforeMove: false, 1273 afterMove: false, 1274 afterAction: false, 1275 startDragging: false, 1276 afterLazyLoad: false 1277 } 1278})(jQuery, window, document)
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.