1function onYouTubeIframeAPIReady() { 2 theme.ProductVideo.loadVideos(theme.ProductVideo.hosts.youtube) 3} 4!function() { 5 function a(a, b) { 6 b = b || { 7 bubbles: !1, 8 cancelable: !1, 9 detail: void 0 10 }; 11 var c = document.createEvent("CustomEvent"); 12 return c.initCustomEvent(a, b.bubbles, b.cancelable, b.detail), 13 c 14 } 15 if ("function" == typeof window.CustomEvent) 16 return !1; 17 a.prototype = window.Event.prototype, 18 window.CustomEvent = a 19}(), 20"undefined" == typeof theme && (theme = {}); 21var html = $("html") 22 , body = $("body") 23 , winWidth = $(window).width() 24 , winHeight = $(window).height(); 25theme.mobileBrkp = 768, 26theme.tabletBrkp = 981, 27theme.LibraryLoader = function() { 28 function a(a, f) { 29 var h = g[a]; 30 if (h && h.status !== e.requested) { 31 if (f = f || function() {} 32 , 33 h.status === e.loaded) 34 return void f(); 35 h.status = e.requested; 36 var i; 37 switch (h.type) { 38 case d.script: 39 i = b(h, f); 40 break; 41 case d.link: 42 i = c(h, f) 43 } 44 i.id = h.tagId, 45 h.element = i; 46 var j = document.getElementsByTagName(h.type)[0]; 47 j.parentNode.insertBefore(i, j) 48 } 49 } 50 function b(a, b) { 51 var c = document.createElement("script"); 52 return c.src = a.src, 53 c.addEventListener("load", function() { 54 a.status = e.loaded, 55 b() 56 }), 57 c 58 } 59 function c(a, b) { 60 var c = document.createElement("link"); 61 return c.href = a.src, 62 c.rel = "stylesheet", 63 c.type = "text/css", 64 c.addEventListener("load", function() { 65 a.status = e.loaded, 66 b() 67 }), 68 c 69 } 70 var d = { 71 link: "link", 72 script: "script" 73 } 74 , e = { 75 requested: "requested", 76 loaded: "loaded" 77 } 78 , f = "https://cdn.shopify.com/shopifycloud/" 79 , g = { 80 youtubeSdk: { 81 tagId: "youtube-sdk", 82 src: "https://www.youtube.com/iframe_api", 83 type: d.script 84 }, 85 plyrShopify: { 86 tagId: "plyr-shopify", 87 src: f + "shopify-plyr/v1.0/shopify-plyr-legacy.en.js", 88 type: d.script 89 }, 90 plyrShopifyStyles: { 91 tagId: "plyr-shopify-styles", 92 src: f + "shopify-plyr/v1.0/shopify-plyr.css", 93 type: d.link 94 }, 95 shopifyXr: { 96 tagId: "shopify-model-viewer-xr", 97 src: f + "shopify-xr-js/assets/v1.0/shopify-xr.en.js", 98 type: d.script 99 }, 100 modelViewerUi: { 101 tagId: "shopify-model-viewer-ui", 102 src: f + "model-viewer-ui/assets/v1.0/model-viewer-ui.en.js", 103 type: d.script 104 }, 105 modelViewerUiStyles: { 106 tagId: "shopify-model-viewer-ui-styles", 107 src: f + "model-viewer-ui/assets/v1.0/model-viewer-ui.css", 108 type: d.link 109 } 110 }; 111 return { 112 load: a 113 } 114}(), 115theme.homeMaps = function() { 116 function a() { 117 $(".js-map-ids").each(function() { 118 var a = $(this).data("map-id"); 119 theme.runMap(a) 120 }) 121 } 122 function b() { 123 var a = $(".js-map-info") 124 , b = $(".js-map-trigger") 125 , c = (a.hide(), 126 "js-active"); 127 $(".js-map").each(function(d) { 128 $(this).find(a).first().addClass(c).show(), 129 $(this).find(b).first().addClass(c) 130 }), 131 b.click(function() { 132 var a = $(this).attr("href") 133 , d = $(a).parents(".js-map").find(".js-map-info"); 134 if ($(a).hasClass(c) || (d.removeClass(c).slideUp(), 135 $(a).addClass(c).slideDown()), 136 $(this).parents(".js-map").find(".js-map-media").removeClass(c), 137 $('.js-map-media[data-map-id="' + a + '"]').addClass(c), 138 $(a).find(".home-map__media-canvas").length) { 139 var e = $(a).find(".home-map__media-canvas").attr("id"); 140 void 0 !== e && theme.runMap(e) 141 } 142 return $(this).hasClass(c) || (b.removeClass(c), 143 $(this).addClass(c)), 144 !1 145 }) 146 } 147 mapInit = function(a, b, c, d, e) { 148 var f, g; 149 f = new google.maps.Geocoder; 150 var h = new google.maps.LatLng(1,1) 151 , i = { 152 zoom: 14, 153 center: h, 154 disableDefaultUI: !0, 155 scrollwheel: !1, 156 keyboardShortcuts: !1, 157 styles: mapStyles[d] 158 }; 159 g = new google.maps.Map(document.getElementById(a),i), 160 f && f.geocode({ 161 address: c 162 }, function(a, b) { 163 if (b == google.maps.GeocoderStatus.OK && b != google.maps.GeocoderStatus.ZERO_RESULTS) { 164 g.setCenter(a[0].geometry.location); 165 new google.maps.Marker({ 166 position: a[0].geometry.location, 167 map: g, 168 icon: window[e] 169 }) 170 } 171 }) 172 } 173 , 174 theme.runMap = function(a) { 175 var b = $("#" + a) 176 , c = b.data("map-id") 177 , d = b.data("map-section") 178 , e = b.data("map-address") 179 , f = b.data("map-style") 180 , g = b.data("map-pin"); 181 mapInit(c, d, e, f, g) 182 } 183 , 184 b(); 185 new LazyLoad({ 186 elements_selector: ".js-lazy-map", 187 callback_set: function(b) { 188 if ($(".js-map-ids").length > 0) 189 if (void 0 === window.google) { 190 var c; 191 c = void 0 !== theme.map.key ? theme.map.key : "",
192 $.getScript("https://maps.googleapis.com/maps/api/js?key=" + c).then(function() { 193 mapPinDark = { 194 path: "M50,9.799c-15.188,0-27.499,12.312-27.499,27.499S50,90.201,50,90.201s27.499-37.715,27.499-52.902S65.188,9.799,50,9.799z M50,44.813c-4.15,0-7.515-3.365-7.515-7.515S45.85,29.784,50,29.784s7.514,3.365,7.514,7.515S54.15,44.813,50,44.813z", 195 fillColor: "#000000", 196 anchor: new google.maps.Point(55,85), 197 fillOpacity: 1, 198 scale: .6, 199 strokeWeight: 0 200 }, 201 mapPinLight = { 202 path: "M50,9.799c-15.188,0-27.499,12.312-27.499,27.499S50,90.201,50,90.201s27.499-37.715,27.499-52.902S65.188,9.799,50,9.799z M50,44.813c-4.15,0-7.515-3.365-7.515-7.515S45.85,29.784,50,29.784s7.514,3.365,7.514,7.515S54.15,44.813,50,44.813z", 203 fillColor: "#ffffff", 204 anchor: new google.maps.Point(55,85), 205 fillOpacity: 1, 206 scale: .6, 207 strokeWeight: 0 208 }, 209 mapStyles = { 210 light: [{ 211 featureType: "water", 212 elementType: "geometry", 213 stylers: [{ 214 color: "#e9e9e9" 215 }, { 216 lightness: 17 217 }] 218 }, { 219 featureType: "landscape", 220 elementType: "geometry", 221 stylers: [{ 222 color: "#f0f0f0" 223 }, { 224 lightness: 20 225 }] 226 }, { 227 featureType: "road.highway", 228 elementType: "geometry.fill", 229 stylers: [{ 230 color: "#ffffff" 231 }, { 232 lightness: 17 233 }] 234 }, { 235 featureType: "road.highway", 236 elementType: "geometry.stroke", 237 stylers: [{ 238 color: "#ffffff" 239 }, { 240 lightness: 29 241 }, { 242 weight: .2 243 }] 244 }, { 245 featureType: "road.arterial", 246 elementType: "geometry", 247 stylers: [{ 248 color: "#ffffff" 249 }, { 250 lightness: 18 251 }] 252 }, { 253 featureType: "road.local", 254 elementType: "geometry", 255 stylers: [{ 256 color: "#ffffff" 257 }, { 258 lightness: 16 259 }] 260 }, { 261 featureType: "poi", 262 elementType: "geometry", 263 stylers: [{ 264 color: "#f0f0f0" 265 }, { 266 lightness: 21 267 }] 268 }, { 269 featureType: "poi.park", 270 elementType: "geometry", 271 stylers: [{ 272 color: "#dedede" 273 }, { 274 lightness: 21 275 }] 276 }, { 277 elementType: "labels.text.stroke", 278 stylers: [{ 279 visibility: "on" 280 }, { 281 color: "#ffffff" 282 }, { 283 lightness: 16 284 }] 285 }, { 286 elementType: "labels.text.fill", 287 stylers: [{ 288 saturation: 36 289 }, { 290 color: "#333333" 291 }, { 292 lightness: 40 293 }] 294 }, { 295 elementType: "labels.icon", 296 stylers: [{ 297 visibility: "off" 298 }] 299 }, { 300 featureType: "transit", 301 elementType: "geometry", 302 stylers: [{ 303 color: "#f2f2f2" 304 }, { 305 lightness: 19 306 }] 307 }, { 308 featureType: "administrative", 309 elementType: "geometry.fill", 310 stylers: [{ 311 color: "#fefefe" 312 }, { 313 lightness: 20 314 }] 315 }, { 316 featureType: "administrative", 317 elementType: "geometry.stroke", 318 stylers: [{ 319 color: "#fefefe" 320 }, { 321 lightness: 17 322 }, { 323 weight: 1.2 324 }] 325 }], 326 dark: [{ 327 featureType: "all", 328 elementType: "labels.text.fill", 329 stylers: [{ 330 saturation: 36 331 }, { 332 color: "#000000" 333 }, { 334 lightness: 40 335 }] 336 }, { 337 featureType: "all", 338 elementType: "labels.text.stroke", 339 stylers: [{ 340 visibility: "on" 341 }, { 342 color: "#000000" 343 }, { 344 lightness: 16 345 }] 346 }, { 347 featureType: "all", 348 elementType: "labels.icon", 349 stylers: [{ 350 visibility: "off" 351 }] 352 }, { 353 featureType: "administrative", 354 elementType: "geometry.fill", 355 stylers: [{ 356 color: "#000000" 357 }, { 358 lightness: 20 359 }] 360 }, { 361 featureType: "administrative", 362 elementType: "geometry.stroke", 363 stylers: [{ 364 color: "#000000" 365 }, { 366 lightness: 17 367 }, { 368 weight: 1.2 369 }] 370 }, { 371 featureType: "administrative", 372 elementType: "labels", 373 stylers: [{ 374 visibility: "off" 375 }] 376 }, { 377 featureType: "administrative.country", 378 elementType: "all", 379 stylers: [{ 380 visibility: "simplified" 381 }] 382 }, { 383 featureType: "administrative.country", 384 elementType: "geometry", 385 stylers: [{ 386 visibility: "simplified" 387 }] 388 }, { 389 featureType: "administrative.country", 390 elementType: "labels.text", 391 stylers: [{ 392 visibility: "simplified" 393 }] 394 }, { 395 featureType: "administrative.province", 396 elementType: "all", 397 stylers: [{ 398 visibility: "off" 399 }] 400 }, { 401 featureType: "administrative.locality", 402 elementType: "all", 403 stylers: [{ 404 visibility: "simplified" 405 }, { 406 saturation: "-100" 407 }, { 408 lightness: "30" 409 }] 410 }, { 411 featureType: "administrative.neighborhood", 412 elementType: "all", 413 stylers: [{ 414 visibility: "off" 415 }] 416 }, { 417 featureType: "administrative.land_parcel", 418 elementType: "all", 419 stylers: [{ 420 visibility: "off" 421 }] 422 }, { 423 featureType: "landscape", 424 elementType: "all", 425 stylers: [{ 426 visibility: "simplified" 427 }, { 428 gamma: "0.00" 429 }, { 430 lightness: "74" 431 }] 432 }, { 433 featureType: "landscape", 434 elementType: "geometry", 435 stylers: [{ 436 color: "#000000" 437 }, { 438 lightness: 20 439 }] 440 }, { 441 featureType: "landscape.man_made", 442 elementType: "all", 443 stylers: [{ 444 lightness: "3" 445 }] 446 }, { 447 featureType: "poi", 448 elementType: "all", 449 stylers: [{ 450 visibility: "off" 451 }] 452 }, { 453 featureType: "poi", 454 elementType: "geometry", 455 stylers: [{ 456 color: "#000000" 457 }, { 458 lightness: 21 459 }] 460 }, { 461 featureType: "road", 462 elementType: "geometry", 463 stylers: [{ 464 visibility: "simplified" 465 }] 466 }, { 467 featureType: "road.highway", 468 elementType: "geometry.fill", 469 stylers: [{ 470 color: "#000000" 471 }, { 472 lightness: 17 473 }] 474 }, { 475 featureType: "road.highway", 476 elementType: "geometry.stroke", 477 stylers: [{ 478 color: "#000000" 479 }, { 480 lightness: 29 481 }, { 482 weight: .2 483 }] 484 }, { 485 featureType: "road.arterial", 486 elementType: "geometry", 487 stylers: [{ 488 color: "#000000" 489 }, { 490 lightness: 18 491 }] 492 }, { 493 featureType: "road.local", 494 elementType: "geometry", 495 stylers: [{ 496 color: "#000000" 497 }, { 498 lightness: 16 499 }] 500 }, { 501 featureType: "transit", 502 elementType: "geometry", 503 stylers: [{ 504 color: "#000000" 505 }, { 506 lightness: 19 507 }] 508 }, { 509 featureType: "water", 510 elementType: "geometry", 511 stylers: [{ 512 color: "#000000" 513 }, { 514 lightness: 17 515 }] 516 }], 517 flat: [{ 518 featureType: "administrative", 519 elementType: "labels.text.fill", 520 stylers: [{ 521 color: "#6195a0" 522 }] 523 }, { 524 featureType: "administrative.province", 525 elementType: "geometry.stroke", 526 stylers: [{ 527 visibility: "off" 528 }] 529 }, { 530 featureType: "landscape", 531 elementType: "geometry", 532 stylers: [{ 533 l
533ightness: "0" 534 }, { 535 saturation: "0" 536 }, { 537 color: "#f5f5f2" 538 }, { 539 gamma: "1" 540 }] 541 }, { 542 featureType: "landscape.man_made", 543 elementType: "all", 544 stylers: [{ 545 lightness: "-3" 546 }, { 547 gamma: "1.00" 548 }] 549 }, { 550 featureType: "landscape.natural.terrain", 551 elementType: "all", 552 stylers: [{ 553 visibility: "off" 554 }] 555 }, { 556 featureType: "poi", 557 elementType: "all", 558 stylers: [{ 559 visibility: "off" 560 }] 561 }, { 562 featureType: "poi.park", 563 elementType: "geometry.fill", 564 stylers: [{ 565 color: "#bae5ce" 566 }, { 567 visibility: "on" 568 }] 569 }, { 570 featureType: "road", 571 elementType: "all", 572 stylers: [{ 573 saturation: -100 574 }, { 575 lightness: 45 576 }, { 577 visibility: "simplified" 578 }] 579 }, { 580 featureType: "road.highway", 581 elementType: "all", 582 stylers: [{ 583 visibility: "simplified" 584 }] 585 }, { 586 featureType: "road.highway", 587 elementType: "geometry.fill", 588 stylers: [{ 589 color: "#fac9a9" 590 }, { 591 visibility: "simplified" 592 }] 593 }, { 594 featureType: "road.highway", 595 elementType: "labels.text", 596 stylers: [{ 597 color: "#4e4e4e" 598 }] 599 }, { 600 featureType: "road.arterial", 601 elementType: "labels.text.fill", 602 stylers: [{ 603 color: "#787878" 604 }] 605 }, { 606 featureType: "road.arterial", 607 elementType: "labels.icon", 608 stylers: [{ 609 visibility: "off" 610 }] 611 }, { 612 featureType: "transit", 613 elementType: "all", 614 stylers: [{ 615 visibility: "simplified" 616 }] 617 }, { 618 featureType: "transit.station.airport", 619 elementType: "labels.icon", 620 stylers: [{ 621 hue: "#0a00ff" 622 }, { 623 saturation: "-77" 624 }, { 625 gamma: "0.57" 626 }, { 627 lightness: "0" 628 }] 629 }, { 630 featureType: "transit.station.rail", 631 elementType: "labels.text.fill", 632 stylers: [{ 633 color: "#43321e" 634 }] 635 }, { 636 featureType: "transit.station.rail", 637 elementType: "labels.icon", 638 stylers: [{ 639 hue: "#ff6c00" 640 }, { 641 lightness: "4" 642 }, { 643 gamma: "0.75" 644 }, { 645 saturation: "-68" 646 }] 647 }, { 648 featureType: "water", 649 elementType: "all", 650 stylers: [{ 651 color: "#eaf6f8" 652 }, { 653 visibility: "on" 654 }] 655 }, { 656 featureType: "water", 657 elementType: "geometry.fill", 658 stylers: [{ 659 color: "#c7eced" 660 }] 661 }, { 662 featureType: "water", 663 elementType: "labels.text.fill", 664 stylers: [{ 665 lightness: "-49" 666 }, { 667 saturation: "-53" 668 }, { 669 gamma: "0.79" 670 }] 671 }], 672 clean_cut: [{ 673 featureType: "road", 674 elementType: "geometry", 675 stylers: [{ 676 lightness: 100 677 }, { 678 visibility: "simplified" 679 }] 680 }, { 681 featureType: "water", 682 elementType: "geometry", 683 stylers: [{ 684 visibility: "on" 685 }, { 686 color: "#C6E2FF" 687 }] 688 }, { 689 featureType: "poi", 690 elementType: "geometry.fill", 691 stylers: [{ 692 color: "#C5E3BF" 693 }] 694 }, { 695 featureType: "road", 696 elementType: "geometry.fill", 697 stylers: [{ 698 color: "#D1D1B8" 699 }] 700 }], 701 minimal_dark: [{ 702 featureType: "all", 703 elementType: "all", 704 stylers: [{ 705 hue: "#ff0000" 706 }, { 707 saturation: -100 708 }, { 709 lightness: -30 710 }] 711 }, { 712 featureType: "all", 713 elementType: "labels.text.fill", 714 stylers: [{ 715 color: "#ffffff" 716 }] 717 }, { 718 featureType: "all", 719 elementType: "labels.text.stroke", 720 stylers: [{ 721 color: "#353535" 722 }] 723 }, { 724 featureType: "landscape", 725 elementType: "geometry", 726 stylers: [{ 727 color: "#656565" 728 }] 729 }, { 730 featureType: "poi", 731 elementType: "geometry.fill", 732 stylers: [{ 733 color: "#505050" 734 }] 735 }, { 736 featureType: "poi", 737 elementType: "geometry.stroke", 738 stylers: [{ 739 color: "#808080" 740 }] 741 }, { 742 featureType: "road", 743 elementType: "geometry", 744 stylers: [{ 745 color: "#454545" 746 }] 747 }, { 748 featureType: "transit", 749 elementType: "labels", 750 stylers: [{ 751 hue: "#000000" 752 }, { 753 saturation: 100 754 }, { 755 lightness: -40 756 }, { 757 invert_lightness: !0 758 }, { 759 gamma: 1.5 760 }] 761 }], 762 blue_water: [{ 763 featureType: "administrative", 764 elementType: "labels.text.fill", 765 stylers: [{ 766 color: "#444444" 767 }] 768 }, { 769 featureType: "landscape", 770 elementType: "all", 771 stylers: [{ 772 color: "#f2f2f2" 773 }] 774 }, { 775 featureType: "poi", 776 elementType: "all", 777 stylers: [{ 778 visibility: "off" 779 }] 780 }, { 781 featureType: "road", 782 elementType: "all", 783 stylers: [{ 784 saturation: -100 785 }, { 786 lightness: 45 787 }] 788 }, { 789 featureType: "road.highway", 790 elementType: "all", 791 stylers: [{ 792 visibility: "simplified" 793 }] 794 }, { 795 featureType: "road.arterial", 796 elementType: "labels.icon", 797 stylers: [{ 798 visibility: "off" 799 }] 800 }, { 801 featureType: "transit", 802 elementType: "all", 803 stylers: [{ 804 visibility: "off" 805 }] 806 }, { 807 featureType: "water", 808 elementType: "all", 809 stylers: [{ 810 color: "#46bcec" 811 }, { 812 visibility: "on" 813 }] 814 }] 815 }, 816 a() 817 }) 818 } else 819 a() 820 } 821 }) 822} 823, 824theme.layoutSlider = function(a) { 825 $(window).resize(function() { 826 winWidth = $(window).width(); 827 var b = $(a); 828 winWidth < theme.mobileBrkp ? b.not(".slick-initialized").slick({ 829 slidesToShow: 1, 830 infinite: !1, 831 dots: !0, 832 arrows: !1, 833 centerMode: !0, 834 centerPadding: "30px" 835 }) : b.hasClass("slick-initialized") && b.slick("unslick"), 836 b.on("afterChange", function(a, b, c) { 837 $(this).find(".slick-current").addClass("js-slide-seen") 838 }) 839 }).resize() 840} 841,
842theme.productCollSwatch = function() { 843 $(".product__swatch__item").click(function() { 844 var a = $(this).parents(".js-product") 845 , b = a.find(".product__img") 846 , c = $(this).data("variant-image") 847 , d = $(this).data("variant-url"); 848 return b.attr("data-src", c), 849 b.addClass("lazyload"), 850 a.find(".js-product-link").attr("href", d), 851 a.find(".js-product-swatch-item").removeClass("js-active"), 852 $(this).addClass("js-active"), 853 !1 854 }) 855} 856, 857theme.ProductVideo = function() { 858 function a(a, e) { 859 if (a.length) { 860 var f = a.find("iframe, video")[0] 861 , i = a.data("mediaId"); 862 if (f) { 863 g[i] = { 864 mediaId: i, 865 sectionId: e, 866 host: c(f), 867 container: a, 868 element: f, 869 ready: function() { 870 b(this) 871 } 872 }; 873 switch (g[i].host) { 874 case h.html5: 875 theme.LibraryLoader.load("plyrShopify", d.bind(this, h.html5)), 876 theme.LibraryLoader.load("plyrShopifyStyles"); 877 break; 878 case h.youtube: 879 theme.LibraryLoader.load("youtubeSdk") 880 } 881 } 882 } 883 } 884 function b(a) { 885 if (!a.player) { 886 var b = a.container.closest(i.productMediaWrapper) 887 , c = b.data(j.enableVideoLooping); 888 switch (a.host) { 889 case h.html5: 890 a.player = new Shopify.Plyr(a.element,{ 891 controls: ["play", "progress", "mute", "volume", "play-large", "fullscreen"], 892 loop: { 893 active: c 894 }, 895 hideControlsOnPause: !0, 896 iconUrl: "//cdn.shopify.com/shopifycloud/shopify-plyr/v1.0/shopify-plyr.svg", 897 tooltips: { 898 controls: !1, 899 seek: !0 900 } 901 }); 902 break; 903 case h.youtube: 904 var d = b.data(j.videoId); 905 a.player = new YT.Player(a.element,{ 906 videoId: d, 907 events: { 908 onStateChange: function(a) { 909 0 === a.data && c && a.target.seekTo(0) 910 } 911 } 912 }) 913 } 914 f.on("beforeChange", function(b, c, d, e) { 915 $(this).parents(".section").data("section-id") == a.sectionId && a.container.data("slide-id") == e && (Modernizr.touchevents || e !== d && setTimeout(function() { 916 a.host === h.html5 && a.player.play(), 917 a.host === h.youtube && a.player.playVideo && a.player.playVideo() 918 }, 300)) 919 }), 920 f.on("afterChange", function(b, c, d) { 921 $(this).parents(".section").data("section-id") == a.sectionId && a.container.data("slide-id") != d && (a.host === h.html5 && a.player.pause(), 922 a.host === h.youtube && a.player.pauseVideo && a.player.pauseVideo()) 923 }), 924 $(document).on("shopify_xr_launch", function() { 925 a.host === h.html5 && a.player.pause(), 926 a.host === h.youtube && a.player.pauseVideo && a.player.pauseVideo() 927 }) 928 } 929 } 930 function c(a) { 931 return "VIDEO" === a.tagName ? h.html5 : "IFRAME" === a.tagName && /^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(a.src) ? h.youtube : null 932 } 933 function d(a) { 934 for (var b in g) 935 if (g.hasOwnProperty(b)) { 936 var c = g[b]; 937 c.host === a && c.ready() 938 } 939 } 940 function e(a) { 941 for (var b in g) 942 if (g.hasOwnProperty(b)) { 943 var c = g[b]; 944 c.sectionId === a && (c.player && c.player.destroy(), 945 delete g[b]) 946 } 947 } 948 var f = $(".js-product-slider") 949 , g = {} 950 , h = { 951 html5: "html5", 952 youtube: "youtube" 953 } 954 , i = { 955 productMediaWrapper: "[data-product-media-wrapper]" 956 } 957 , j = { 958 enableVideoLooping: "enable-video-looping", 959 videoId: "video-id" 960 }; 961 return { 962 init: a, 963 hosts: h, 964 loadVideos: d, 965 removeSectionVideos: e 966 } 967}(), 968theme.ProductModel = function() { 969 function a(a, d) { 970 f[d] = { 971 loaded: !1 972 }, 973 a.each(function(a) { 974 var b = $(this) 975 , c = b.data("media-id") 976 , e = $(b.find("model-viewer")[0]) 977 , f = e.data("model-id"); 978 if (0 === a) { 979 var i = b.closest(j.mediaGroup).find(j.xrButton); 980 h[d] = { 981 $element: i, 982 defaultId: f 983 } 984 } 985 g[c] = { 986 modelId: f, 987 sectionId: d, 988 $container: b, 989 $element: e 990 } 991 }), 992 window.Shopify.loadFeatures([{ 993 name: "shopify-xr", 994 version: "1.0", 995 onLoad: b 996 }, { 997 name: "model-viewer-ui", 998 version: "1.0", 999 onLoad: c 1000 }]), 1001 theme.LibraryLoader.load("modelViewerUiStyles") 1002 } 1003 function b(a) { 1004 if (!a) { 1005 if (!window.ShopifyXR) 1006 return void document.addEventListener("shopify_xr_initialized", function() { 1007 b() 1008 }); 1009 for (var c in f) 1010 if (f.hasOwnProperty(c)) { 1011 var d = f[c]; 1012 if (d.loaded) 1013 continue; 1014 var e = $("#ModelJson-" + c); 1015 window.ShopifyXR.addModels(JSON.parse(e.html())), 1016 d.loaded = !0 1017 } 1018 window.ShopifyXR.setupXRElements() 1019 } 1020 } 1021 function c(a) { 1022 if (!a) 1023 for (var b in g) 1024 if (g.hasOwnProperty(b)) { 1025 var c = g[b]; 1026 c.modelViewerUi || (c.modelViewerUi = new Shopify.ModelViewerUI(c.$element)), 1027 d(c) 1028 } 1029 } 1030 function d(a) { 1031 var b = h[a.sectionId]; 1032 i.on("beforeChange", function(c, d, e, f) { 1033 $(this).parents(".section").data("section-id") == a.sectionId && a.$container.data("slide-id") == f && (Modernizr.touchevents || f !== e && (b.$element.attr("data-shopify-model3d-id", a.modelId), 1034 setTimeout(function() { 1035 a.modelViewerUi.play() 1036 }, 300)), 1037 $(this).slick("slickSetOption", "swipe", !1)) 1038 }), 1039 i.on("beforeChange", function(c, d, e, f) { 1040 $(this).parents(".section").data("section-id") == a.sectionId && a.$container.data("slide-id") == e && a.$container.data("slide-id") != f && (b.$element.attr("data-shopify-model3d-id", b.defaultId), 1041 a.modelViewerUi.pause(), 1042 $(this).slick("slickSetOption", "swipe", !0)) 1043 }), 1044 $(document).on("shopify_xr_launch", function() { 1045 a.modelViewerUi.pause() 1046 }) 1047 } 1048 function e(a) { 1049 for (var b in g) 1050 if (g.hasOwnProperty(b)) { 1051 var c = g[b]; 1052 c.sectionId === a && delete g[b] 1053 } 1054 delete f[a] 1055 } 1056 var f = {} 1057 , g = {} 1058 , h = {} 1059 , i = $(".js-product-slider") 1060 , j = { 1061 mediaGroup: "[data-product-media-group]", 1062 xrButton: "[data-shopify-xr]" 1063 }; 1064 return { 1065 init: a, 1066 removeSectionModels: e 1067 } 1068}(), 1069theme.productMediaInit = function() { 1070 $(".product-single__photo__item--video").each(function(a) { 1071 theme.ProductVideo.init($(this), $(".section--product-single").data("section-id")) 1072 }), 1073 $(".product-single__photo__item--model").length > 0 && theme.ProductModel.init($(".product-single__photo__item--model"), $(".section--product-single").data("section-id")) 1074} 1075, 1076theme.homeProductMediaInit = function() { 1077 $(".product-featured__photo__item--video").each(function(a) { 1078 theme.ProductVideo.init($(this), $(this).parents(".section").data("section-id")) 1079 }), 1080 $(".js-section__home-product").each(function(a) { 1081 $(this).has(".product-featured__photo__item--model").length && theme.ProductModel.init($(this).find(".product-featured__photo__item--model"), $(this).children(".section").data("section-id")) 1082 }) 1083} 1084, 1085theme.productSelect = function(a, b, c) { 1086 var d = document.getElementById("ProductJson-" + a).innerHTML; 1087 d = JSON.parse(d || "{}"); 1088 var e = b 1089 , f = function(a, c) { 1090 function f(a) { 1091 var b = setInterval(function() { 1092 n.hasClass("slick-initialized") && (n.slick("slickGoTo", a), 1093 clearInterval(b)) 1094 }, 100) 1095 } 1096 var g = d.id; 1097 if (e = e, 1098 document.dispatchEvent(new CustomEvent("venue:variant:update",{ 1099 bubbles: !0, 1100 detail: { 1101 product: d, 1102 variant: a, 1103 cssClass: b 1104 } 1105 })), 1106 a) 1107 if (a.available) { 1108 if (a.unit_price_measurement) { 1109 var h = $(".js-product-" + g + " .js-price-unit-price") 1110 , i = $(".js-product-" + g + " .js-price-unit-measure") 1111 , j = Shopify.formatMoney(a.unit_price, theme.money_format) 1112 , k = 1 === a.unit_price_measurement.reference_value ? a.unit_price_measurement.reference_unit : a.unit_price_measurement.reference_value + a.unit_price_measurement.reference_unit; 1113 h.html('<span class="money">' + j + "</span>"), 1114 i.text(k), 1115 $(".js-product-" + g + " .js-price-unit-note").show() 1116 } else 1117 $(".js-product-" + g + " .js-price-unit-note").hide(); 1118 if (a.inventory_management) { 1119 var l = $(".js-product-" + g + " .js-price-stock-note").data("qty-limit") 1120 , m = $(".js-product-" + g + " .js-product-variant-select option[value=" + a.id + "]").data("qty"); 1121 m <= l ? ($(".js-product-" + g + " .js-price-stock-note").show(), 1122 $(".js-product-" + g + " .js-price-stock-note span").text(m)) : $(".js-product-" + g + " .js-price-stock-note").hide() 1123 } else 1124 $(".js-product-" + g + " .js-price-stock-note").hide(); 1125 $(".js-product-" + g + " .js-product-add").removeClass("disabled").addClass("c-btn--plus").prop("disabled", !1).find(".js-product-add-text").text(theme.t.add_to_cart), 1126 $(".js-product-" + g + " .js-product-buttons").removeClass("product-single__add--sold"), 1127 a.compare_at_price > a.price ? ($(".js-product-" + g + " .js-product-price-number").html('<span class="product-' + e + "__price-number product-" + e + '__price-number--sale"><span class="money">' + Shopify.formatMoney(a.price, theme.money_format) + "</span></span>"), 1128 $(".js-product-" + g + " .js-product-price-compare").html('<s class="product-' + e + '__price-compare"><span class="money">' + Shopify.formatMoney(a.compare_at_price, theme.money_format) + "</span></s>")) : ($(".js-product-" + g + " .js-product-price-number").html('<span class="product-' + e + '__price-number"><span class="money">' + Shopify.formatMoney(a.price, theme.money_format) + "</span></span>"), 1129 $(".js-product-" + g + " .js-product-price-compare").empty()) 1130 } else 1131 $(".js-product-" + g + " .js-price-unit-note").hide(), 1132 $(".js-product-" + g + " .js-price-stock-note").hide(), 1133 $(".js-product-" + g + " .js-product-add").addClass("disabled").removeClass("c-btn--plus").prop("disabled", !0).find(".js-product-add-text").text(theme.t.sold_out), 1134 $(".js-product-" + g + " .js-product-buttons").addClass("product-single__add--sold"), 1135 a.compare_at_price > a.price ? ($(".js-product-" + g + " .js-product-price-number").html('<span class="product-' + e + "__price-number product-" + e + '__price-number--sale"><span class="money">' + Shopify.formatMoney(a.price, theme.money_format) + "</span></span>"), 1136 $(".js-product-" + g + " .js-product-price-compare").html('<s class="product-' + e + '__price-compare"><span class="money">' + Shopify.formatMoney(a.compare_at_price, theme.money_format) + "</span></s>")) : ($(".js-product-" + g + " .js-product-price-number").html('<span class="product-' + e + '__price-number"><span class="money">' + Shopify.formatMoney(a.price, theme.money_format) + "</span></span>"), 1137 $(".js-product-" + g + " .js-product-price-compare").empty()); 1138 else 1139 $(".js-product-" + g + " .js-price-unit-note").hide(), 1140 $(".js-product-" + g + " .js-price-stock-note").hide(), 1141 $(".js-product-" + g + " .js-product-price-number").html(" "), 1142 $(".js-product-" + g + " .js-product-price-compare").empty(), 1143 $(".js-product-" + g + " .js-product-add").addClass("disabled").prop("disabled", !0).find(".js-product-add-text").text(theme.t.unavailable); 1144 var n = $(".js-product-" + g + " .js-product-slider"); 1145 if (null !== a.featured_image) 1146 if (a.featured_image.variant_ids.length > 0) { 1147 var o = (a.featured_media.id, 1148 $(".js-product-" + g + " .product-" + e + "__photo__item[data-media-id*=" + a.featured_media.id + "]"))
1149 , p = o.attr("data-slide-id"); 1150 f(p) 1151 } else 1152 f(0); 1153 document.dispatchEvent(new CustomEvent("venue:variant:updated",{ 1154 bubbles: !0, 1155 detail: { 1156 product: d, 1157 variant: a, 1158 cssClass: b 1159 } 1160 })) 1161 }; 1162 $(".js-product-single-swatch :radio").change(function() { 1163 var a = $(this).closest(".js-product-single-swatch").attr("data-option-index") 1164 , b = $(this).val(); 1165 $(this).closest("form").find(".single-option-selector").eq(a - 1).val(b).change(); 1166 var c = $(this).val(); 1167 $(this).parents(".js-product-single-swatch").find(".js-swatch-variant-title").text(c) 1168 }), 1169 $(".js-swatch-variant-title").text($(".js-swatch-color-item :radio:checked").val()), 1170 !0 !== d.onboarding && (new Shopify.OptionSelectors("productSelect-" + a,{ 1171 product: d, 1172 onVariantSelected: f, 1173 enableHistoryState: c 1174 }), 1175 1 == d.options.length && "Title" != d.options[0] && $(".js-product-" + d.id + " .selector-wrapper:eq(0)").prepend('<label for="productSelect-option-0">' + d.options[0] + "</label>"), 1176 1 == d.variants.length && d.variants[0].title.indexOf("Default") > -1 && ($(".js-product-" + d.id + " .selector-wrapper").hide(), 1177 $(".js-product-" + d.id + " .swatch").hide())) 1178} 1179, 1180theme.eventFeed = function(a, b, c, d) { 1181 var e = "https://www.eventbriteapi.com/v3/users/me/owned_events/?token=" + a + "&expand=venue&status=live"; 1182 $.getJSON(e, function(a) { 1183 var e = $(b).html() 1184 , f = Handlebars.compile(e)(a); 1185 $(c).append(f), 1186 theme.layoutSlider(".js-layout-slider-" + d), 1187 $("body").data("anim-load") && (sr.reveal(".section--" + d + " .section__link", { 1188 distance: 0 1189 }), 1190 sr.reveal(".section--" + d + " .home-event__item", { 1191 interval: theme.intervalValue 1192 })) 1193 }), 1194 Handlebars.registerHelper("formatDate", function(a) { 1195 return fecha.format(new Date(a), "ddd, DD MMM, HH:mm") 1196 }), 1197 Handlebars.registerHelper("each_upto", function(a, b, c) { 1198 if (!a || 0 === a.length) 1199 return c.inverse(this); 1200 for (var d = [], e = 0; e < b && e < a.length; ++e) 1201 d.push(c.fn(a[e])); 1202 return d.join("") 1203 }) 1204} 1205, 1206theme.homeMainCarousel = function() { 1207 function a(a) { 1208 function b(a) { 1209 a.target.mute(), 1210 theme.videoSize(a.target.h), 1211 $(a.target.h).parents(".slick-slide").hasClass("slick-active") && (a.target.playVideo(), 1212 setTimeout(function() { 1213 $(a.target.h).parent().addClass("js-loaded") 1214 }, 800)) 1215 } 1216 function c(a) { 1217 a.data === YT.PlayerState.ENDED && a.target.playVideo() 1218 } 1219 for (var d = $(a).find(".js-home-carousel-video-data"), e = 0; e < d.length; e++) 1220 window[d[e].getAttribute("data-player-id")] = new YT.Player(d[e],{ 1221 videoId: d[e].getAttribute("data-video-id"), 1222 playerVars: { 1223 iv_load_policy: 3, 1224 modestbranding: 1, 1225 playsinline: 1, 1226 cc_load_policy: 0, 1227 fs: 0, 1228 autoplay: 1, 1229 mute: 1, 1230 controls: 0, 1231 showinfo: 0, 1232 wmode: "opaque", 1233 quality: "hd720", 1234 branding: 0, 1235 autohide: 0, 1236 rel: 0 1237 }, 1238 events: { 1239 onReady: b, 1240 onStateChange: c 1241 } 1242 }) 1243 } 1244 var b = $(".js-home-carousel") 1245 , c = $(window).width() 1246 , d = c >= 1; 1247 b.each(function() { 1248 var b = $(this); 1249 b.on("init", function(b, c) { 1250 if ($(this).find(".js-home-carousel-video").length && d) { 1251 var e = $(this); 1252 "undefined" == typeof YT ? $.getScript("https://www.youtube.com/iframe_api").done(function() { 1253 var b = setInterval(function() { 1254 $.isFunction(YT.Player) && (a(e), 1255 clearInterval(b)) 1256 }, 100) 1257 }) : a(e) 1258 } 1259 $(this).find(".slick-active").addClass("js-slide-active") 1260 }), 1261 b.on("afterChange", function(a, b) {
1262 if (d && $(this).find(".js-home-carousel-video").length && $(this).find(".slick-active .js-home-carousel-video").length) { 1263 var c = $(this).find(".slick-active .js-home-carousel-video-data").attr("data-player-id"); 1264 window[c].B ? window[c].playVideo() : setTimeout(function() { 1265 window[c].playVideo() 1266 }, 1e3); 1267 var e = $(this).find(".slick-active .js-home-carousel-video"); 1268 setTimeout(function() { 1269 e.addClass("js-loaded") 1270 }, 800) 1271 } 1272 $(this).find(".slick-slide").removeClass("js-slide-active"), 1273 $(this).find(".slick-active").addClass("js-slide-active") 1274 }), 1275 b.not(".slick-initialized").slick({ 1276 slidesToShow: 1, 1277 slidesToScroll: 1, 1278 infinite: !0, 1279 dots: !0, 1280 fade: !0, 1281 cssEase: "linear", 1282 prevArrow: '<div class="home-carousel__nav home-carousel__nav--prev"><i class="icon icon--left-t"></i></div>', 1283 nextArrow: '<div class="home-carousel__nav home-carousel__nav--next"><i class="icon icon--right-t"></i></div>' 1284 }); 1285 for (var c = 0; c < 10; c++) 1286 setTimeout(function() { 1287 $(".js-home-carousel").slick("setPosition") 1288 }, 250 * c) 1289 }); 1290 var e; 1291 $(window).resize(function() { 1292 winWidth = $(window).width(), 1293 clearTimeout(e), 1294 e = setTimeout(function() { 1295 theme.videoSize($(".js-home-carousel-video-data")) 1296 }, 500) 1297 }) 1298} 1299, 1300theme.videoSize = function(a) { 1301 var b = $(a) 1302 , c = b.attr("height") 1303 , d = b.attr("width") 1304 , e = b.parent().height() 1305 , f = b.parent().width() 1306 , g = f / d * c 1307 , h = e / c * d; 1308 e < g ? b.css({ 1309 width: f + "px", 1310 height: g + 120 + "px", 1311 top: (e - g) / 2 - 60 + "px", 1312 left: 0 1313 }) : b.css({ 1314 width: h + "px", 1315 height: e + 120 + "px", 1316 left: (f - h) / 2 + "px", 1317 top: "-60px" 1318 }) 1319} 1320, 1321theme.homeVideoGallery = function() { 1322 function a() { 1323 function a() { 1324 if (b < $(".js-vimeo-thumb").length) { 1325 thisThumb = $(".js-vimeo-thumb")[b]; 1326 var c = $(thisThumb).attr("data-video-id"); 1327 $.ajax({ 1328 url: "https://vimeo.com/api/v2/video/" + c + ".json", 1329 dataType: "json", 1330 complete: function(c) { 1331 $(thisThumb).attr("data-bgset", c.responseJSON[0].thumbnail_medium), 1332 b++, 1333 a() 1334 } 1335 }) 1336 } 1337 } 1338 var b = 0; 1339 if (a(), 1340 $(".js-vimeo-placeholder").length > 0) { 1341 var c = $(".js-vimeo-placeholder").attr("data-video-id"); 1342 $.ajax({ 1343 url: "https://vimeo.com/api/v2/video/" + c + ".json", 1344 dataType: "json", 1345 success: function(a) { 1346 var b = a[0].thumbnail_large 1347 , c = b.replace("640", "1280"); 1348 $(".js-vimeo-placeholder").attr("data-bgset", c) 1349 } 1350 }) 1351 } 1352 } 1353 theme.LibraryLoader.load("plyrShopifyStyles"), 1354 a(), 1355 homePlayers = []; 1356 new LazyLoad({ 1357 elements_selector: ".js-lazy-iframe", 1358 callback_set: function(a) { 1359 var b = $(a).parent().attr("id"); 1360 window[b] = new Plyr(".js-home-video-player",{ 1361 controls: ["play", "progress", "mute", "volume", "play-large", "fullscreen"], 1362 loop: { 1363 active: !1 1364 }, 1365 hideControlsOnPause: !0, 1366 iconUrl: "//cdn.shopify.com/shopifycloud/shopify-plyr/v1.0/shopify-plyr.svg", 1367 tooltips: { 1368 controls: !1, 1369 seek: !0 1370 } 1371 }), 1372 homePlayers.push(window[b]) 1373 } 1374 }); 1375 $(".js-home-video-placeholder-trigger").click(function(a) { 1376 a.preventDefault(); 1377 var b = ($(this).attr("href"), 1378 $(this).attr("href").replace(/#/, ""));
1379 $(this).parent(".js-home-video-placeholder").addClass("js-hidden"), 1380 homePlayers.forEach(function(a) { 1381 a.pause() 1382 }), 1383 window["home_player_" + b].play() 1384 }), 1385 $(".js-home-video-trigger").click(function(a) { 1386 a.preventDefault(); 1387 var b = "#js-home-video-" + $(this).attr("href").replace(/#/, "") 1388 , c = $(this).attr("href").replace(/#/, ""); 1389 $(this).parents(".home-video").find(".js-home-video-placeholder").addClass("js-hidden"), 1390 $(this).parents(".home-video").find(".js-home-video").removeClass("js-active"), 1391 $(b).addClass("js-active"), 1392 homePlayers.forEach(function(a) { 1393 a.pause() 1394 }), 1395 $(this).parent().hasClass("js-paused") ? (window["home_player_" + c].play(), 1396 $(this).parent().removeClass("js-paused")) : $(this).parent().hasClass("js-active") ? $(this).parent().addClass("js-paused") : window["home_player_" + c].play(), 1397 $(".js-home-video-trigger").parent().removeClass("js-active"), 1398 $(".js-home-video-trigger").parent().removeClass("js-init"), 1399 $(this).parent().addClass("js-active") 1400 }) 1401} 1402, 1403theme.masonryLayout = function() { 1404 $(".o-layout--masonry").imagesLoaded().always(function(a) { 1405 $(".o-layout--masonry").masonry({ 1406 itemSelector: ".o-layout__item", 1407 transitionDuration: 0 1408 }), 1409 $("body").data("anim-load") && sr.delegate() 1410 }).progress(function(a, b) { 1411 $(".o-layout--masonry").masonry({ 1412 itemSelector: ".o-layout__item", 1413 transitionDuration: 0 1414 }), 1415 $("body").data("anim-load") && sr.delegate() 1416 }) 1417} 1418, 1419theme.animFade = function() { 1420 $("body").data("anim-fade") && ($('a[href^="#"], a[target="_blank"], a[href^="mailto:"], a[href^="tel:"], a[href*="youtube.com/watch"], a[href*="youtu.be/"]').each(function() { 1421 $(this).addClass("js-no-transition") 1422 }), 1423 (navigator.userAgent.match(/Version\/[\d\.]+.*Safari/) || navigator.userAgent.match(/Firefox\/([0-9]+)\./)) && $("a").on("click", function() { 1424 window.setTimeout(function() { 1425 $("body").removeClass("js-theme-unloading") 1426 }, 1200) 1427 }), 1428 $("a:not(.js-no-transition, .js-header-sub-link-a, .js-header-sub-t-a)").bind("click", function(a) { 1429 if (a.metaKey) 1430 return !0; 1431 a.preventDefault(), 1432 $.magnificPopup.close(), 1433 $("body").addClass("js-theme-unloading"); 1434 var b = $(this).attr("href"); 1435 window.setTimeout(function() { 1436 location.href = b 1437 }, 50) 1438 })) 1439} 1440, 1441theme.animScroll = function() { 1442 if ($("body").data("anim-load")) { 1443 theme.intervalStyle = {}, 1444 "fade_down" == $("body").data("anim-interval-style") ? theme.intervalStyle = "-20px" : "fade_up" == $("body").data("anim-interval-style") ? theme.intervalStyle = "20px" : theme.intervalStyle = "0", 1445 theme.intervalValue = {}, 1446 $("body").data("anim-interval") ? theme.intervalValue = 200 : theme.intervalValue = 0; 1447 var a = { 1448 viewFactor: .1, 1449 duration: 1e3, 1450 distance: theme.intervalStyle, 1451 scale: 1, 1452 delay: 0, 1453 mobile: !0, 1454 useDelay: "once", 1455 beforeReveal: function(a) { 1456 $(a).addClass("js-sr-loaded") 1457 } 1458 }; 1459 window.sr = new ScrollReveal(a), 1460 sr.reveal(".section__title", { 1461 distance: "5px" 1462 }), 1463 sr.reveal(".section__title-desc", { 1464 distance: 0, 1465 delay: 300 1466 }), 1467 sr.reveal(".newsletter, .section__link, .account", { 1468 distance: 0 1469 }), 1470 sr.reveal(".product-top, .collection-list__item", { 1471 interval: theme.intervalValue 1472 }), 1473 sr.reveal(".cart .section__title", { 1474 distance: "20px" 1475 }), 1476 sr.reveal(".cart__content", { 1477 distance: 0, 1478 delay: 500 1479 }), 1480 sr.reveal(".search-page .section__title", { 1481 distance: "20px" 1482 }), 1483 sr.reveal(".search-page__form, .search-page-pagination", { 1484 distance: 0, 1485 delay: 200 1486 }), 1487 sr.reveal(".search-page .product-top, .search-page__other-item", { 1488 interval: theme.intervalValue, 1489 delay: 0 1490 }), 1491 sr.reveal(".blog", { 1492 delay: 300, 1493 interval: theme.intervalValue 1494 }), 1495 sr.reveal(".blog-page__tags, .blog-pagination", { 1496 distance: 0, 1497 delay: 300 1498 }), 1499 sr.reveal(".blog-page .section__title", { 1500 distance: "20px" 1501 }), 1502 sr.reveal(".article .section__title", { 1503 distance: "20px" 1504 }), 1505 sr.reveal(".article__date", { 1506 distance: "-10px", 1507 delay: 500 1508 }), 1509 sr.reveal(".article__featured-media, .article__content", { 1510 distance: 0, 1511 delay: 200 1512 }), 1513 sr.reveal(".article__meta, .article-paginate", { 1514 distance: 0 1515 }), 1516 sr.reveal(".collection__header-info__title", { 1517 distance: "20px" 1518 }), 1519 sr.reveal(".collection .product-top", { 1520 interval: theme.intervalValue 1521 }), 1522 sr.reveal(".collection__header-media, .collection__header-info__text, .collection-main__sort, .collection-empty, .collection-
1522pagination", { 1523 distance: 0, 1524 delay: 200 1525 }), 1526 sr.reveal(".list-collections .section__title", { 1527 distance: "20px" 1528 }), 1529 sr.reveal(".list-collections .collection-list__item", { 1530 interval: theme.intervalValue, 1531 delay: 500 1532 }), 1533 sr.reveal(".product-single__title-text", { 1534 distance: "20px" 1535 }), 1536 sr.reveal(".product-single__title-desc, .breadcrumb, .product-single__photos, .product-single__content, .product-single--minimal .product-single__content-text", { 1537 distance: 0, 1538 delay: 300, 1539 useDelay: "onload" 1540 }), 1541 sr.reveal(".page .section__title", { 1542 distance: "20px" 1543 }), 1544 sr.reveal(".faq__cta", { 1545 distance: 0, 1546 delay: 300 1547 }), 1548 sr.reveal(".faq__search", { 1549 distance: 0, 1550 delay: 300 1551 }), 1552 sr.reveal(".faq__accordion", { 1553 distance: 0, 1554 delay: 500 1555 }), 1556 sr.reveal(".faq__category__title", { 1557 distance: 0 1558 }), 1559 sr.reveal(".page__contact-form", { 1560 distance: 0, 1561 delay: 200 1562 }),
1563 sr.reveal(".home-carousel .section__title", { 1564 distance: 0 1565 }), 1566 sr.reveal(".home-image-grid__item", { 1567 interval: theme.intervalValue 1568 }), 1569 sr.reveal(".home-promo__box"), 1570 sr.reveal(".home-intro", { 1571 distance: 0 1572 }), 1573 sr.reveal(".home-intro__media, .home-intro__text, .home-intro__video, .home-intro__link-wrap"), 1574 sr.reveal(".home-logo-list__items", { 1575 distance: 0 1576 }), 1577 sr.reveal(".home-testimonials", { 1578 distance: 0 1579 }), 1580 sr.reveal(".product-featured__photo-wrapper", { 1581 distance: 0, 1582 delay: 500 1583 }), 1584 sr.reveal(".home-event__item", { 1585 interval: theme.intervalValue 1586 }), 1587 sr.reveal(".home-delivery", { 1588 distance: 0 1589 }), 1590 sr.reveal(".home-delivery__content", { 1591 distance: theme.intervalStyle 1592 }), 1593 sr.reveal(".home-map__items"), 1594 sr.reveal(".home-rich-text__content", { 1595 distance: 0, 1596 delay: 500 1597 }), 1598 sr.reveal(".home-inline__item", { 1599 interval: theme.intervalValue 1600 }), 1601 sr.reveal(".home-video__stage, .home-video__items", { 1602 distance: 0 1603 }), 1604 sr.reveal(".home-custom__item", { 1605 interval: theme.intervalValue 1606 }), 1607 sr.reveal(".home-html", { 1608 distance: 0 1609 }) 1610 } 1611} 1612, 1613theme.thumbsCarousel = function() { 1614 $(".js-section__product-single .js-product-slider").not(".slick-initialized").each(function() { 1615 $(this).slick({ 1616 focusOnSelect: !0, 1617 accessibility: !0, 1618 slidesToShow: 1, 1619 slidesToScroll: 1, 1620 infinite: !1, 1621 arrows: !0, 1622 dots: !0, 1623 swipe: !0, 1624 fade: !0, 1625 adaptiveHeight: !0, 1626 speed: 300, 1627 cssEase: "ease", 1628 lazyLoad: "progressive", 1629 prevArrow: '<div class="product-single__photo__nav__item product-single__photo__nav__item--prev"><i class="icon icon--left-l"></i></div>', 1630 nextArrow: '<div class="product-single__photo__nav__item product-single__photo__nav__item--next"><i class="icon icon--right-l"></i></div>', 1631 customPaging: function(a, b) { 1632 return '<button><div class="product-single__photo-thumbs__item">' + $(".js-product-single-thumbs div:nth-child(" + (b + 1) + ")").html() + "</div></button>" 1633 }, 1634 appendDots: $(this).parent().find(".js-product-slider-nav-dots"), 1635 responsive: [{ 1636 breakpoint: 768, 1637 settings: { 1638 appendArrows: $(this).parent().find(".js-product-slider-nav") 1639 } 1640 }] 1641 }).on("setPosition", function(a, b) { 1642 if ($(".product-single").hasClass("product-single--classic")) { 1643 $(".js-product-bg").hasClass("js-product-bg--full") ? heightFraction = 1 : heightFraction = .55; 1644 var c = $(".js-product-slider").find(".slick-list").height() 1645 , d = 0; 1646 $(".js-product-slider-nav").find(".slick-dots").length && (d = $(".js-product-slider-nav").find(".slick-dots").outerHeight(!0)); 1647 var e = 0; 1648 $(".js-breadcrumb").length && (e = $(".js-breadcrumb").outerHeight(!0)); 1649 var f = 0; 1650 $(".js-product-view-in-space-btn").length > 0 && !$(".js-product-view-in-space-btn").is("[data-shopify-xr-hidden]") && (f = $(".js-product-view-in-space-btn").outerHeight(!0)), 1651 $(".js-product-bg").css("height", c * heightFraction + d + e + f + 60 + "px") 1652 } 1653 }) 1654 }); 1655 for (var a = 0; a < 15; a++) 1656 setTimeout(function() { 1657 $(".js-product-slider").slick("setPosition") 1658 }, 250 * a) 1659} 1660, 1661theme.logoCarousel = function() { 1662 function a(a) { 1663 a.not(".slick-initialized").slick({ 1664 slidesToShow: slideCount, 1665 slidesToScroll: slideCount, 1666 arrows: !0, 1667 dots: !0, 1668 fade: !1, 1669 adaptiveHeight: !1, 1670 speed: 300, 1671 cssEase: "ease", 1672 lazyLoad: "progressive", 1673 prevArrow: '<div class="home-logo-list-carousel__nav home-logo-list-carousel__nav--prev"><i class="icon icon--left-l"></i></div>', 1674 nextArrow: '<div class="home-logo-list-carousel__nav home-logo-list-carousel__nav--next"><i class="icon icon--right-l"></i></div>', 1675 responsive: [{ 1676 breakpoint: theme.mobileBrkp, 1677 settings: { 1678 swipeToSlide: !0, 1679 variableWidth: !0, 1680 slidesToShow: 1, 1681 slidesToScroll: 1 1682 } 1683 }] 1684 }) 1685 } 1686 function b(a) { 1687 a.not(".slick-initialized").slick({ 1688 slidesToShow: slideCount, 1689 slidesToScroll: slideCount, 1690 arrows: !0, 1691 dots: !0, 1692 fade: !1, 1693 adaptiveHeight: !1, 1694 speed: 300, 1695 cssEase: "ease", 1696 lazyLoad: "progressive", 1697 prevArrow: '<div class="home-logo-list-carousel__nav home-logo-list-carousel__nav--prev"><i class="icon icon--left-l"></i></div>', 1698 nextArrow: '<div class="home-logo-list-carousel__nav home-logo-list-carousel__nav--next"><i class="icon icon--right-l"></i></div>' 1699 }) 1700 } 1701 function c(a) { 1702 a.not(".slick-initialized").slick({ 1703 slidesToShow: 1, 1704 slidesToScroll: 1, 1705 swipeToSlide: !0, 1706 variableWidth: !0, 1707 arrows: !1, 1708 dots: !0, 1709 fade: !1, 1710 adaptiveHeight: !1, 1711 speed: 300, 1712 cssEase: "ease", 1713 lazyLoad: "progressive" 1714 }) 1715 } 1716 $(window).resize(function() { 1717 winWidth = $(window).width(), 1718 $(".js-home-logo-list-carousel").each(function() { 1719 carousel = $(this), 1720 slideCount = carousel.data("carouselCount"), 1721 desktop = carousel.data("carouselDesktop"), 1722 mobile = carousel.data("carouselMobile"), 1723 desktop && mobile ? a(carousel, slideCount) : desktop ? winWidth >= theme.mobileBrkp ? b(carousel, slideCount) : carousel.hasClass("slick-initialized") && carousel.slick("unslick") : mobile && (winWidth < theme.mobileBrkp ? c(carousel, slideCount) : carousel.hasClass("slick-initialized") && carousel.slick("unslick")) 1724 }) 1725 }).resize() 1726} 1727,
1728theme.testimonialsCarousel = function() { 1729 function a(a) { 1730 a.not(".slick-initialized").slick({ 1731 slidesToShow: 1, 1732 slidesToScroll: 1, 1733 arrows: !0, 1734 dots: !0, 1735 fade: !1, 1736 adaptiveHeight: !1, 1737 speed: 300, 1738 cssEase: "ease", 1739 lazyLoad: "progressive", 1740 prevArrow: '<div class="home-testimonials-carousel__nav home-testimonials-carousel__nav--prev"><i class="icon icon--left-l"></i></div>', 1741 nextArrow: '<div class="home-testimonials-carousel__nav home-testimonials-carousel__nav--next"><i class="icon icon--right-l"></i></div>' 1742 }) 1743 } 1744 $(window).resize(function() { 1745 winWidth = $(window).width(), 1746 $(".js-home-testimonials-carousel").each(function() { 1747 carousel = $(this), 1748 desktop = carousel.data("carouselDesktop"), 1749 mobile = carousel.data("carouselMobile"), 1750 desktop && mobile ? a(carousel) : desktop ? winWidth >= theme.mobileBrkp ? a(carousel) : carousel.hasClass("slick-initialized") && carousel.slick("unslick") : mobile && (winWidth < theme.mobileBrkp ? a(carousel) : carousel.hasClass("slick-initialized") && carousel.slick("unslick")) 1751 }) 1752 }).resize() 1753} 1754, 1755theme.headerScrollUp = function() { 1756 function a() { 1757 var a = $(this).scrollTop(); 1758 Math.abs(c - a) <= d || (a > c && a > e ? ($(".js-header").css({ 1759 "-webkit-transform": "translateY(-" + $(".js-header").outerHeight() + "px)", 1760 "-moz-transform": "translateY(-" + $(".js-header").outerHeight() + "px)", 1761 transform: "translateY(-" + $(".js-header").outerHeight() + "px)" 1762 }), 1763 $(body).removeClass("header-down").addClass("header-up"), 1764 $(".js-header").trigger("resize")) : (a + $(window).height() < $(document).height() && $(".js-header").css({ 1765 "-webkit-transform": "translateY(0)", 1766 "-moz-transform": "translateY(0)", 1767 transform: "translateY(0)" 1768 }), 1769 $(body).removeClass("header-up").addClass("header-down"), 1770 $(".js-header").trigger("resize"), 1771 a < 100 && setTimeout(function() { 1772 $(".js-header").trigger("resize") 1773 }, 250)), 1774 c = a) 1775 } 1776 if ($(".js-header").hasClass("js-header-scroll")) { 1777 var b, c = 0, d = 5, e = $(".js-header").outerHeight(); 1778 $(window).scroll(function(a) { 1779 b = !0 1780 }), 1781 setInterval(function() { 1782 $(".js-header").hasClass("js-header-scroll") && b && (a(), 1783 b = !1) 1784 }, 250) 1785 } 1786} 1787, 1788theme.scrollToFixedProductSingle = function() { 1789 $(".js-product-single-box").scrollToFixed({ 1790 marginTop: function() { 1791 return $(".js-header").hasClass("js-header-scroll") ? $("body").hasClass("header-down") ? prodBoxMargins = $(".js-header").outerHeight() + 18 : prodBoxMargins = 18 : $(".js-header").hasClass("js-header-sticky") ? prodBoxMargins = $(".js-header").outerHeight() + 18 : prodBoxMargins = 18, 1792 prodBoxMargins 1793 }, 1794 postFixed: function() { 1795// $(this).addClass("scroll-to-fixed-unfixed") 1796 }, 1797 fixed: function() { 1798// $(this).removeClass("scroll-to-fixed-unfixed") 1799 }, 1800 limit: function() { 1801 return $(".js-product-single").height() + $(".js-product-single").offset().top - $(".js-product-single-box").outerHeight() - 15 1802 }, 1803 minWidth: theme.tabletBrkp, 1804 spacerClass: "product-box-spacer", 1805 zIndex: 10 1806 }) 1807} 1808, 1809theme.scrollToFixedFaq = function() { 1810 $(".js-faq-categories").scrollToFixed({ 1811 marginTop: function() { 1812 return $(".js-header").hasClass("js-header-scroll") ? $("body").hasClass("header-down") ? prodBoxMargins = $(".js-header").outerHeight() + 18 : prodBoxMargins = 18 : $(".js-header").hasClass("js-header-sticky") ? prodBoxMargins = $(".js-header").outerHeight() + 18 : prodBoxMargins = 18, 1813 prodBoxMargins 1814 }, 1815 postFixed: function() { 1816 $(this).addClass("scroll-to-fixed-unfixed") 1817 }, 1818 fixed: function() { 1819 $(this).removeClass("scroll-to-fixed-unfixed") 1820 }, 1821 limit: function() { 1822 return $(".js-faq-page").height() + $(".js-faq-page").offset().top - $(".js-faq-categories").outerHeight() + 15 1823 }, 1824 zIndex: 10, 1825 minWidth: theme.tabletBrkp, 1826 spacerClass: "faq-categories-spacer" 1827 }) 1828} 1829, 1830theme.scrollToFixedHeader = function() { 1831 $(".js-header").scrollToFixed({ 1832 zIndex: 11, 1833 spacerClass: "header-fixed-spacer" 1834 }), 1835 $(".js-header").hasClass("js-header-sticky") || $(".js-header").trigger("detach.ScrollToFixed"), 1836 $(window).scroll(function() { 1837 $(window).scrollTop() >= 80 ? $(".js-header-sticky").addClass("js-header-sticky--fixed") : $(".js-header-sticky").removeClass("js-header-sticky--fixed") 1838 }) 1839} 1840, 1841theme.accordion = function() { 1842 var a = $(".js-accordion-info") 1843 , b = $(".js-accordion-trigger") 1844 , c = (a.hide(), 1845 "js-active"); 1846 b.click(function() { 1847 var a = $(this).attr("href"); 1848 if (setTimeout(function() { 1849 $(".js-product-single-box").trigger("resize") 1850 }, 400), 1851 $(this).hasClass("js-accordion-scroll")) { 1852 var b = $(".js-accordion").find("[href='" + $(this).attr("href") + "']"); 1853 return $(".js-header").hasClass("js-header-sticky") ? scrollOffset = $(".js-header").outerHeight() + 18 : scrollOffset = 18, 1854 $("html,body").animate({ 1855 scrollTop: b.offset().top - scrollOffset 1856 }, 800), 1857 $(a).addClass(c).stop().slideDown(), 1858 b.addClass(c), 1859 !1 1860 } 1861 return $(a).hasClass(c) ? ($(this).removeClass(c), 1862 $(a).removeClass(c).stop().slideUp()) : ($(a).addClass(c).stop().slideDown(), 1863 $(this).addClass(c)), 1864 !1 1865 }), 1866 "undefined" != typeof faq_items && ($(".js-faq-autocomplete").autocomplete({ 1867 lookup: faq_items, 1868 lookupFilter: function(a, b, c) { 1869 var d = a.content.toLowerCase() 1870 , e = a.value.toLowerCase(); 1871 return d.indexOf(c) > -1 || e.indexOf(c) > -1 1872 }, 1873 onSelect: function(a) { 1874 $(".js-header").hasClass("js-header-sticky") ? scrollOffset = $(".js-header").outerHeight() + 18 : scrollOffset = 18, 1875 $("html,body").animate({ 1876 scrollTop: $(".js-accordion").find("[href='#" + a.data + "']").offset().top - scrollOffset 1877 }, 800), 1878 setTimeout(function() { 1879 $("#" + a.data).addClass(c).stop().slideDown(), 1880 $(".js-accordion").find("[href='#" + a.data + "']").addClass(c) 1881 }, 800), 1882 $(this).val("") 1883 } 1884 }), 1885 $(".js-faq-autocomplete").disableAutoFill()) 1886} 1887, 1888theme.scrollToDiv = function() { 1889 $(".js-scroll-id").click(function(a) { 1890 var b = $(this).attr("href"); 1891 return $(".js-header").hasClass("js-header-sticky") ? scrollOffset = $(".js-header").outerHeight() + 18 : scrollOffset = 18, 1892 $("html,body").animate({ 1893 scrollTop: $(b).offset().top - scrollOffset 1894 }, 800), 1895 !1 1896 }) 1897} 1898, 1899theme.currencyToggle = function() { 1900 var a = $(".js-currency-box") 1901 , b = $(".js-currency-trigger") 1902 , c = $(".js-currency-trigger-text") 1903 , d = $(".js-currency-item.selected").attr("data-currency") 1904 , e = "js-active"; 1905 c.text(d),
1906 $(".js-currency-item").click(function(d) { 1907 var f = $(this).attr("data-currency"); 1908 return c.text(f), 1909 $(".js-currency-item").removeClass("selected"), 1910 $('.js-currency-item:contains("' + f + '")').addClass("selected"), 1911 a.removeClass(e), 1912 b.removeClass(e), 1913 !1 1914 }), 1915 b.click(function() { 1916 return a.toggleClass(e), 1917 $(this).toggleClass(e), 1918 !1 1919 }), 1920 $(document).click(function(c) { 1921 a.is(c.target) || 0 !== a.has(c.target).length || (a.removeClass(e), 1922 b.removeClass(e)) 1923 }) 1924} 1925, 1926theme.headerNav = function() { 1927 var a = $(".js-header-sub-link") 1928 , b = $(".js-header-sub-t-link") 1929 , c = "js-active" 1930 , d = $(".js-heaver-navs") 1931 , e = $(".js-mobile-draw-icon") 1932 , f = $(".js-search-draw-icon") 1933 , g = $(".js-cart-draw-icon") 1934 , h = $(".js-primary-nav") 1935 , i = $(".js-secondary-nav") 1936 , j = $(".js-main-logo"); 1937 a.focusin(function() { 1938 $(this).addClass(c), 1939 $(this).attr("aria-expanded", "true") 1940 }).focusout(function() { 1941 a.removeClass(c), 1942 $(this).attr("aria-expanded", "false") 1943 }),
1944 b.focusin(function() { 1945 b.removeClass(c), 1946 b.attr("aria-expanded", "false"), 1947 $(this).addClass(c), 1948 $(this).attr("aria-expanded", "true") 1949 }), 1950 a.mouseout(function() { 1951 $(this).removeClass(c) 1952 }), 1953 b.mouseout(function() { 1954 $(this).removeClass(c) 1955 }), 1956 $(".header--parent-disabled .js-header-sub-link-a, .header--parent-disabled .js-header-sub-t-a").click(function(a) { 1957 a.preventDefault() 1958 }), 1959 $(window).resize(function() { 1960 winWidth = $(window).width(); 1961 var a = d.width() 1962 , b = h.width() 1963 , c = i.width() 1964 , k = (j.width(), 1965 a / 2 - j.width() / 2); 1966 winWidth >= theme.mobileBrkp ? $(".js-header").hasClass("header--center") ? ($(".js-header").removeClass("header--inline-icons"), 1967 e.hide(), 1968 f.hide(), 1969 g.hide()) : k < b || k < c ? ($(".js-header").removeClass("header--inline-icons"), 1970 e.show(), 1971 f.show(), 1972 g.show(), 1973 h.hide(), 1974 i.hide()) : (e.hide(), 1975 f.hide(), 1976 g.hide(), 1977 h.show(), 1978 i.show()) : (e.show(), 1979 f.show(), 1980 g.show()) 1981 }).resize(), 1982 b.on("mouseover focusin", function() { 1983 var a = $(this).find(".js-nav-sub-t"); 1984 winWidth - (a.offset().left + a.width()) < 1 && (a.css("right", "179px"), 1985 a.css("left", "auto")) 1986 }) 1987} 1988, 1989theme.homeFeaturedProduct = function() { 1990 $(".js-section__home-product .js-product-slider").not(".slick-initialized").each(function() { 1991 $(this).slick({ 1992 slidesToShow: 1, 1993 slidesToScroll: 1, 1994 accessibility: !0, 1995 arrows: !0, 1996 dots: !0, 1997 fade: !0, 1998 adaptiveHeight: !0, 1999 infinite: !1, 2000 swipe: !0, 2001 speed: 300, 2002 cssEase: "ease", 2003 prevArrow: '<div class="product-featured__photo__nav__item product-featured__photo__nav__item--prev"><i class="icon icon--left"></i></div>', 2004 nextArrow: '<div class="product-featured__photo__nav__item product-featured__photo__nav__item--next"><i class="icon icon--right"></i></div>', 2005 appendDots: $(this).parent().find(".js-product-slider-nav-dots"), 2006 appendArrows: $(this).parent().find(".js-product-slider-nav") 2007 }) 2008 }) 2009} 2010, 2011theme.triggerActive = function() { 2012 var a = ($(".js-toggle-target"), 2013 $(".js-toggle-trigger")) 2014 , b = "js-active"; 2015 a.click(function(a) { 2016 var c = $(this).attr("href"); 2017 $(this).hasClass(b) ? ($(this).removeClass(b), 2018 $(c).removeClass(b), 2019 $(this).parent().attr("aria-expanded", "false")) : ($(this).addClass(b), 2020 $(c).addClass(b), 2021 $(this).parent().attr("aria-expanded", "true")), 2022 a.preventDefault() 2023 }) 2024} 2025, 2026theme.selectWrapper = function() { 2027 function a() { 2028 $(".selector-wrapper").each(function(a) { 2029 var b = $(this).find("label").width(); 2030 $(this).find("select").css("padding-left", 20 + b) 2031 }) 2032 } 2033 a(), 2034 setTimeout(a, 500), 2035 setTimeout(a, 2e3) 2036} 2037, 2038theme.homeSectionMargin = function() { 2039 $(".shopify-section").each(function() { 2040 var a = $(this).find(".section"); 2041 a.removeAttr("style"), 2042 a.hasClass("section--has-bg") && $(this).next().find(".section").is(".section--full-bg.section--has-bg") && a.css("margin-bottom", "0") 2043 }) 2044} 2045, 2046theme.ageCheckerCookie = function() { 2047 var a = "age-checked"; 2048 $(".js-age-draw").data("age-check-enabled") && "undefined" != typeof Cookies && "1" !== Cookies(a) && theme.mfpOpen("age"), 2049 $(".js-age-close").click(function(b) { 2050 Cookies(a, "1", { 2051 expires: 14, 2052 path: "/" 2053 }), 2054 $.magnificPopup.close(), 2055 b.preventDefault() 2056 }) 2057} 2058, 2059theme.promoPopCookie = function() { 2060 var a = "promo-showed" 2061 , b = $(".js-promo-pop").data("promo-delay") 2062 , c = $(".js-promo-pop").data("promo-expiry"); 2063 $(".js-promo-pop").data("promo-enabled") && "undefined" != typeof Cookies && "1" !== Cookies(a) && setTimeout(function() { 2064 theme.promoPop("open") 2065 }, b), 2066 $(".js-promo-pop-close").click(function(b) { 2067 Cookies(a, "1", { 2068 expires: c, 2069 path: "/" 2070 }), 2071 theme.promoPop("close"), 2072 b.preventDefault() 2073 }) 2074} 2075, 2076theme.footerTweet = function() { 2077 if ($(".js-footer-tweet").data("footer-tweet-enable")) { 2078 var a = $(".js-footer-tweet").data("footer-tweet-user").substring(1); 2079 window.twttr = function(a, b, c) { 2080 var d, e = a.getElementsByTagName(b)[0], f = window.twttr || {}; 2081 return a.getElementById(c) ? f : (d = a.createElement(b), 2082 d.id = c, 2083 d.src = "https://platform.twitter.com/widgets.js", 2084 e.parentNode.insertBefore(d, e), 2085 f._e = [], 2086 f.ready = function(a) { 2087 f._e.push(a) 2088 } 2089 , 2090 f) 2091 }(document, "script", "twitter-wjs"), 2092 twttr.ready(function() { 2093 twttr.widgets.createTimeline({ 2094 sourceType: "profile", 2095 screenName: a 2096 }, document.getElementById("footer-tweet"), { 2097 tweetLimit: 1 2098 }).then(function(a) { 2099 var b = $(a).contents().find(".timeline-Tweet-text").html(); 2100 $(".js-footer-tweet-text").html(b) 2101 }) 2102 }) 2103 } 2104} 2105, 2106theme.mfpOpen = function(a) { 2107 var b = '<button title="Close (Esc)" type="button" class="mfp-close mfp-close--custom js-close-mfp"><i class="icon icon--close"></i></button>'; 2108 switch (a) { 2109 case "cart": 2110 theme.cart_ajax && $.magnificPopup.open({ 2111 items: { 2112 src: ".js-cart-draw" 2113 }, 2114 type: "inline", 2115 mainClass: "mfp-medium", 2116 fixedContentPos: !0, 2117 midClick: !0, 2118 closeMarkup: b, 2119 removalDelay: 200 2120 }); 2121 break; 2122 case "search": 2123 $.magnificPopup.open({ 2124 items: { 2125 src: ".js-search-draw" 2126 }, 2127 type: "inline", 2128 mainClass: "mfp-medium", 2129 fixedContentPos: !0, 2130 focus: ".js-search-input", 2131 closeMarkup: b, 2132 removalDelay: 200 2133 }); 2134 break; 2135 case "age": 2136 $.magnificPopup.open({ 2137 items: { 2138 src: ".js-age-draw" 2139 }, 2140 type: "inline", 2141 mainClass: "mfp-dark", 2142 fixedContentPos: !0, 2143 modal: !0, 2144 showCloseBtn: !1, 2145 removalDelay: 200 2146 }); 2147 break; 2148 case "menu-draw": 2149 $.magnificPopup.open({ 2150 items: { 2151 src: ".js-menu-draw" 2152 }, 2153 type: "inline", 2154 mainClass: "mfp-draw", 2155 fixedContentPos: !0, 2156 closeMarkup: b, 2157 removalDelay: 200 2158 }); 2159 break; 2160 case "collection-draw": 2161 $.magnificPopup.open({ 2162 items: { 2163 src: ".js-collection-draw" 2164 }, 2165 callbacks: { 2166 resize: function() { 2167 $(".js-collection-draw").hasClass("collection-sidebar--sidebar") && winWidth >= theme.tabletBrkp && $.magnificPopup.close() 2168 } 2169 }, 2170 type: "inline", 2171 mainClass: "mfp-draw", 2172 fixedContentPos: !0, 2173 closeMarkup: b, 2174 removalDelay: 200 2175 }) 2176 } 2177} 2178, 2179theme.collectionSort = function() { 2180 if (Shopify.queryParams = {}, 2181 location.search.length) 2182 for (var a, b = 0, c = location.search.substr(1).split("&"); b < c.length; b++) 2183 a = c[b].split("="), 2184 a.length > 1 && (Shopify.queryParams[decodeURIComponent(a[0])] = decodeURIComponent(a[1])); 2185 var d = $(".js-collection-sort").data("default-sort"); 2186 $("#SortBy").val(d).bind("change", function() { 2187 Shopify.queryParams.sort_by = jQuery(this).val(), 2188 location.search = jQuery.param(Shopify.queryParams) 2189 }) 2190} 2191, 2192theme.magnificVideo = function() { 2193 $(".js-pop-video").magnificPopup({ 2194 type: "iframe", 2195 mainClass: "mfp-medium mfp-close-corner", 2196 removalDelay: 200, 2197 closeMarkup: '<button title="Close (Esc)" type="button" class="mfp-close mfp-close--custom js-close-mfp"><i class="icon icon--close"></i></button>' 2198 }) 2199} 2200, 2201theme.productZoom = function() { 2202 var a = function(a, b) { 2203 var c = document.querySelectorAll(".pswp")[0] 2204 , d = $(".js-product-slider") 2205 , e = []; 2206 $(".js-pswp-img").each(function() { 2207 var a = $(this).prop("currentSrc") || $(this).prop("src") 2208 , b = { 2209 msrc: a, 2210 src: $(this).data("pswp-src"), 2211 w: $(this).data("pswp-width"), 2212 h: $(this).data("pswp-height"), 2213 mediaId: $(this).data("media-id"), 2214 el: $(this)[0] 2215 }; 2216 e.push(b) 2217 }); 2218 var f = { 2219 history: !1, 2220 index: b, 2221 closeOnScroll: !1, 2222 getThumbBoundsFn: function() { 2223 var a = window.pageYOffset || document.documentElement.scrollTop 2224 , c = e[b].el 2225 , d = c.getBoundingClientRect(); 2226 return { 2227 x: d.left, 2228 y: d.top + a, 2229 w: d.width 2230 } 2231 } 2232 } 2233 , g = new PhotoSwipe(c,PhotoSwipeUI_Default,e,f); 2234 g.init(), 2235 g.listen("close", function() { 2236 var a = $(".product-single__photo__item[data-media-id=" + this.currItem.mediaId + "]"); 2237 d.slick("slickGoTo", a[0].dataset.slideId) 2238 }) 2239 }; 2240 $(document).on("click", ".js-pswp-zoom", function() { 2241 var b = $(this) 2242 , c = $(this).data("image-count"); 2243 a(b, c) 2244 }) 2245} 2246, 2247theme.promoPop = function(a) { 2248 var b = $(".js-promo-pop") 2249 , c = "js-active"; 2250 "open" == a ? b.addClass(c) : "close" == a && b.removeClass(c) 2251} 2252, 2253theme.convertCurrecny = function() { 2254 theme.multiple_currencies & "undefined" != typeof Currency & "undefined" != typeof Cookies && (window.cookieCurrency = Currency.cookie.read(), 2255 null === window.cookieCurrency || window.cookieCurrency === shopCurrency ? Currency.convertAll(shopCurrency, jQuery("#currencies a.selected").attr("data-currency")) : Currency.convertAll(shopCurrency, window.cookieCurrency)) 2256} 2257, 2258theme.cartCheckbox = function() { 2259 $(document).on("click", ".js-cart-checkout-validate", function() { 2260 if (!$(".js-cart-terms-input").is(":checked")) { 2261 return $(this).parents("form").find(".js-cart-terms-error").addClass("js-active"), 2262 !1 2263 } 2264 $(this).submit() 2265 }), 2266 $(document).on("change", ".js-cart-terms-input", function() { 2267 $(".js-cart-terms-error").removeClass("js-active") 2268 }) 2269} 2270,
2271theme.runAjaxCart = function() { 2272 theme.ajaxCartInit(), 2273 ajaxCart.load() 2274} 2275, 2276theme.productRecommendations = function() { 2277 var a = document.querySelector(".js-product-recommendations"); 2278 if (null !== a) { 2279 var b = a.dataset.productId 2280 , c = a.dataset.limit 2281 , d = "/recommendations/products?section_id=product-recommendations&limit=" + c + "&product_id=" + b 2282 , e = new XMLHttpRequest; 2283 e.open("GET", d), 2284 e.onload = function() { 2285 if (e.status >= 200 && e.status < 300) { 2286 var b = document.createElement("div"); 2287 b.innerHTML = e.response, 2288 a.parentElement.innerHTML = b.querySelector(".js-product-recommendations").innerHTML, 2289 theme.runAjaxCart(), 2290 theme.convertCurrecny(), 2291 theme.productCollSwatch(), 2292 $(".js-related-products").each(function(a) { 2293 var b = $(this).data("section-id"); 2294 theme.layoutSlider(".js-layout-slider-" + b) 2295 }), 2296 $("body").data("anim-load") && setTimeout(function() { 2297 sr.reveal(".section--related-products .product-top", { 2298 interval: theme.intervalValue 2299 }), 2300 sr.reveal(".section--related-products .section__title", { 2301 distance: "5px" 2302 }) 2303 }, 1e3) 2304 } 2305 } 2306 , 2307 e.send() 2308 } 2309} 2310, 2311$(document).ready(function() { 2312 function a(b) { 2313 9 === b.keyCode && (body.addClass("js-using-tab"), 2314 window.removeEventListener("keydown", a)) 2315 } 2316 function b() { 2317 lazySizes.autoSizer.checkElems() 2318 } 2319 $("body").on("afterAddItem.ajaxCart", function() { 2320 setTimeout(function() { 2321 theme.mfpOpen("cart") 2322 }, 100) 2323 }), 2324 window.addEventListener("keydown", a), 2325 $(".js-events").each(function(a) { 2326 var b = $(this).data("section-id") 2327 , c = $(this).data("api-key"); 2328 theme.eventFeed(c, "#eventTemplate" + b, "#eventContainer" + b, b) 2329 }), 2330 $(".js-events-onboarding").each(function(a) { 2331 var b = $(this).data("section-id"); 2332 theme.layoutSlider(".js-layout-slider-" + b) 2333 }), 2334 $(".js-home-collection-list").each(function(a) { 2335 var b = $(this).data("section-id"); 2336 theme.layoutSlider(".js-layout-slider-" + b) 2337 }), 2338 $(".js-home-products").each(function(a) { 2339 var b = $(this).data("section-id"); 2340 theme.layoutSlider(".js-layout-slider-" + b) 2341 }), 2342 $(".js-page-products").each(function(a) { 2343 var b = $(this).data("section-id"); 2344 theme.layoutSlider(".js-layout-slider-" + b) 2345 }), 2346 $(".js-home-testimonials").each(function(a) { 2347 var b = $(this).data("section-id"); 2348 theme.layoutSlider(".js-layout-slider-" + b) 2349 }), 2350 $(".video-wrapper").fitVids(), 2351 $('.rte iframe[src*="youtube"]').parent().fitVids(), 2352 $('.rte iframe[src*="vimeo"]').parent().fitVids(), 2353 $(".rte table").wrap("<div style='overflow:auto;-webkit-overflow-scrolling:touch'></div>"), 2354 $(".js-map-replace").appendAround(), 2355 $(".js-cart-replace").appendAround(), 2356 $(document).on("click", ".js-search-trigger", function(a) { 2357 theme.mfpOpen("search"), 2358 a.preventDefault() 2359 }), 2360 theme.cart_ajax && $(document).on("click", ".js-cart-trigger", function(a) { 2361 theme.mfpOpen("cart"), 2362 a.preventDefault() 2363 }), 2364 $(document).on("click", ".js-mobile-draw-trigger", function(a) { 2365 theme.mfpOpen("menu-draw"), 2366 a.preventDefault() 2367 }), 2368 $(document).on("click", ".js-collection-draw-trigger", function(a) { 2369 theme.mfpOpen("collection-draw"), 2370 a.preventDefault() 2371 }), 2372 $(document).on("click", ".js-close-mfp", function(a) { 2373 $.magnificPopup.close(), 2374 a.preventDefault() 2375 }), 2376 $(document).on("lazybeforeunveil", function() { 2377 theme.masonryLayout() 2378 }), 2379 setTimeout(b(), 2e3),
2380 setTimeout(b(), 4e3), 2381 null === document.querySelector(".js-product-recommendations") && theme.runAjaxCart(), 2382 theme.masonryLayout(), 2383 theme.selectWrapper(), 2384 theme.triggerActive(), 2385 theme.headerNav(), 2386 theme.currencyToggle(), 2387 theme.magnificVideo(), 2388 theme.ageCheckerCookie(), 2389 theme.promoPopCookie(), 2390 theme.footerTweet(), 2391 theme.scrollToDiv(), 2392 theme.animFade(), 2393 theme.animScroll(), 2394 theme.productCollSwatch(), 2395 theme.cartCheckbox(), 2396 theme.homeMaps(), 2397 theme.homeVideoGallery(), 2398 theme.homeMainCarousel(), 2399 theme.homeProductMediaInit(), 2400 theme.homeFeaturedProduct(), 2401 theme.homeSectionMargin(), 2402 theme.testimonialsCarousel(), 2403 theme.logoCarousel(), 2404 theme.collectionSort(), 2405 theme.productMediaInit(), 2406 theme.thumbsCarousel(), 2407 theme.scrollToFixedProductSingle(), 2408 theme.scrollToFixedFaq(), 2409 theme.scrollToFixedHeader(), 2410 theme.headerScrollUp(), 2411 theme.accordion(), 2412 theme.productZoom(), 2413 theme.productRecommendations() 2414}), 2415$(document).on("shopify:section:load", function(a) { 2416 var b = $(a.target) 2417 , c = b.attr("class").replace("shopify-section", "").trim() 2418 , d = a.originalEvent.detail.sectionId 2419 , e = ".section--" + d; 2420 switch (theme.homeSectionMargin(), 2421 $("body").data("anim-load") && (sr.reveal(e + " .section__title", { 2422 distance: "5px" 2423 }), 2424 sr.reveal(e + " .section__title-desc", { 2425 distance: 0, 2426 delay: 300 2427 }), 2428 sr.reveal(e + " .section__link", { 2429 distance: 0 2430 })), 2431 c) { 2432 case "js-section__home-collection": 2433 theme.layoutSlider(".js-layout-slider-" + d), 2434 theme.masonryLayout(), 2435 theme.productCollSwatch(), 2436 $("body").data("anim-load") && sr.reveal(e + " .product-top", { 2437 interval: theme.intervalValue 2438 }); 2439 break; 2440 case "js-section__home-events": 2441 var f = $(".js-events-" + d) 2442 , g = f.data("section-id") 2443 , h = f.data("api-key"); 2444 $("body").data("anim-load") && sr.reveal(e + " .home-event__item", { 2445 interval: theme.intervalValue 2446 }), 2447 $(b).find(".js-events-onboarding").length ? theme.layoutSlider(".js-layout-slider-" + d) : theme.eventFeed(h, "#eventTemplate" + g, "#eventContainer" + g, g); 2448 break; 2449 case "js-section__home-slider": 2450 b.find(".js-home-carousel-video-data").each(function() { 2451 var a = $(this).attr("data-player-id"); 2452 window[a] = "undefined" 2453 }), 2454 theme.homeMainCarousel(), 2455 $("body").data("anim-load") && sr.reveal(e + " .home-carou
2455sel", { 2456 distance: 0 2457 }); 2458 break; 2459 case "js-section__home-testimonials": 2460 theme.testimonialsCarousel(), 2461 $("body").data("anim-load") && sr.reveal(e + " .home-testimonials", { 2462 distance: 0 2463 }); 2464 break; 2465 case "js-section__home-image-grid": 2466 $("body").data("anim-load") && sr.reveal(e + " .home-image-grid__item", { 2467 interval: theme.intervalValue 2468 }); 2469 break; 2470 case "js-section__home-logo-list": 2471 theme.logoCarousel(), 2472 $("body").data("anim-load") && sr.reveal(e + " .home-logo-list__items", { 2473 distance: 0 2474 }); 2475 break; 2476 case "js-section__home-video": 2477 theme.homeVideoGallery(), 2478 $("body").data("anim-load") && sr.reveal(e + " .home-video__stage, .home-video__items", { 2479 distance: 0 2480 }); 2481 break; 2482 case "js-section__home-blog": 2483 theme.masonryLayout(), 2484 $("body").data("anim-load") && sr.reveal(e + " .blog", { 2485 delay: 500, 2486 interval: theme.intervalValue 2487 }); 2488 break; 2489 case "js-section__home-intro": 2490 theme.magnificVideo(), 2491 $("body").data("anim-load") && (sr.reveal(e + " .home-intro", { 2492 distance: 0 2493 }), 2494 sr.reveal(e + " .home-intro__media," + e + " .home-intro__text," + e + " .home-intro__video," + e + " .home-intro__link-wrap")); 2495 break; 2496 case "js-section__home-promo": 2497 theme.magnificVideo(), 2498 $("body").data("anim-load") && sr.reveal(e + " .home-promo__box"); 2499 break; 2500 case "js-section__home-custom": 2501 $("body").data("anim-load") && sr.reveal(e + " .home-custom__item", { 2502 interval: theme.intervalValue 2503 }); 2504 break; 2505 case "js-section__home-html": 2506 $("body").data("anim-load") && sr.reveal(e + " .home-html", { 2507 distance: 0 2508 }); 2509 break; 2510 case "js-section__rich-text": 2511 $("body").data("anim-load") && sr.reveal(e + " .home-rich-text__content", { 2512 distance: 0 2513 }); 2514 break; 2515 case "js-section__home-map": 2516 $(".js-map-replace").appendAround(), 2517 theme.homeMaps(), 2518 $("body").data("anim-load") && sr.reveal(e + " .home-map__items"); 2519 break; 2520 case "js-section__home-delivery": 2521 $("body").data("anim-load") && (sr.reveal(e + " .home-delivery", { 2522 distance: 0 2523 }), 2524 sr.reveal(e + " .home-delivery__content", { 2525 distance: theme.intervalStyle 2526 })); 2527 break; 2528 case "js-section__home-inline": 2529 $("body").data("anim-load") && sr.reveal(e + " .home-inline__item", { 2530 interval: theme.intervalValue 2531 }); 2532 break; 2533 case "js-section__home-collection-list": 2534 theme.layoutSlider(".js-layout-slider-" + d), 2535 $("body").data("anim-load") && sr.reveal(e + " .collection-list__item", { 2536 interval: theme.intervalValue 2537 }); 2538 break; 2539 case "js-section__home-product": 2540 "true" != $(this).find(".section").attr("data-section-onboarding") && theme.productSelect(d, "featured", !1), 2541 theme.selectWrapper(), 2542 theme.runAjaxCart(), 2543 theme.homeProductMediaInit(), 2544 $(".js-product-slider").hide(), 2545 $(".js-product-slider-spinner").show(), 2546 $(".js-product-slider").imagesLoaded(function() { 2547 $(".js-product-slider").show(), 2548 $(".js-product-slider-spinner").hide(), 2549 theme.homeFeaturedProduct() 2550 }), 2551 $("body").data("anim-load") && (sr.reveal(e + " .product-featured__details", { 2552 distance: 0 2553 }), 2554 sr.reveal(e + " .product-featured__photo-wrapper", { 2555 distance: 0, 2556 delay: 500 2557 })); 2558 break; 2559 case "js-section__product-single": 2560 theme.scrollToFixedProductSingle(), 2561 theme.selectWrapper(), 2562 theme.accordion(), 2563 theme.runAjaxCart(), 2564 theme.productSelect("1", "single", !0), 2565 theme.selectWrapper(), 2566 theme.productMediaInit(), 2567 $(".js-product-slider").imagesLoaded(function() {
2568 theme.thumbsCarousel() 2569 }), 2570 $(".js-cart-replace").appendAround(), 2571 $("body").data("anim-load") && (sr.reveal(".product-single__title-text", { 2572 distance: "20px" 2573 }), 2574 sr.reveal(".product-single__title-desc, .breadcrumb, .product-single__photos, .product-single__content, .product-single--minimal .product-single__content-text", { 2575 distance: 0, 2576 delay: 500 2577 })); 2578 break; 2579 case "js-section__product-testimonials": 2580 theme.testimonialsCarousel(), 2581 $("body").data("anim-load") && sr.reveal(e + " .home-testimonials", { 2582 distance: 0 2583 }); 2584 break; 2585 case "js-section__product-custom": 2586 $("body").data("anim-load") && (sr.reveal(".home-custom__item", { 2587 interval: theme.intervalValue 2588 }), 2589 sr.reveal(".home-image-grid__item", { 2590 interval: theme.intervalValue 2591 })); 2592 break; 2593 case "js-section__product-related": 2594 theme.productRecommendations(); 2595 break; 2596 case "js-section__blog": 2597 theme.masonryLayout(), 2598 theme.layoutSlider(".js-layout-slider-" + d), 2599 theme.productCollSwatch(), 2600 $("body").data("anim-load") && (sr.reveal(".blog", { 2601 delay: 500, 2602 interval: theme.intervalValue 2603 }), 2604 sr.reveal(".blog-page__tags, .blog-pagination", { 2605 distance: 0, 2606 delay: 500 2607 }), 2608 sr.reveal(".blog-page .section__title", { 2609 distance: "20px" 2610 }), 2611 sr.reveal(".product-top", { 2612 interval: theme.intervalValue 2613 })); 2614 break; 2615 case "js-section__article": 2616 theme.masonryLayout(), 2617 theme.layoutSlider(".js-layout-slider-" + d), 2618 theme.productCollSwatch(), 2619 $("body").data("anim-load") && (sr.reveal(".article .section__title", { 2620 distance: "20px" 2621 }), 2622 sr.reveal(".article__date", { 2623 distance: "-10px", 2624 delay: 500 2625 }), 2626 sr.reveal(".article__featured-media, .article__content", { 2627 distance: 0, 2628 delay: 200 2629 }), 2630 sr.reveal(".article__meta, .article-paginate", { 2631 distance: 0 2632 }), 2633 sr.reveal(".product-top", { 2634 interval: theme.intervalValue 2635 })); 2636 break; 2637 case "js-section__header": 2638 theme.convertCurrecny(), 2639 theme.scrollToFixedHeader(), 2640 theme.headerNav(), 2641 theme.triggerActive(), 2642 theme.currencyToggle(), 2643 theme.headerScrollUp(); 2644 break; 2645 case "js-section__newsletter": 2646 $("body").data("anim-load") && sr.reveal(e + " .newsletter", { 2647 distance: 0 2648 }); 2649 break; 2650 case "js-section__footer": 2651 theme.convertCurrecny(), 2652 theme.footerTweet(), 2653 theme.currencyToggle(), 2654 $("body").data("anim-load") && sr.reveal(e + " .newsletter", { 2655 distance: 0 2656 }); 2657 break; 2658 case "js-section__collection": 2659 theme.selectWrapper(), 2660 theme.masonryLayout(), 2661 theme.collectionSort(), 2662 theme.productCollSwatch(), 2663 $("body").data("anim-load") && (sr.reveal(".collection__header-info__title", { 2664 distance: "20px" 2665 }), 2666 sr.reveal(".collection .product-top", { 2667 interval: theme.intervalValue, 2668 delay: 500 2669 }), 2670 sr.reveal(".collection__header-media, .collection__header-info__text, .collection-main__sort, .collection-empty, .collection-pagination", { 2671 distance: 0, 2672 delay: 500 2673 })); 2674 break; 2675 case "js-section__list-collections": 2676 $("body").data("anim-load") && (sr.reveal(".list-collections .section__title", { 2677 distance: "20px" 2678 }), 2679 sr.reveal(".list-collections .collection-list__item", { 2680 interval: theme.intervalValue, 2681 delay: 500 2682 })); 2683 break; 2684 case "js-section__mobile-draw": 2685 theme.convertCurrecny(), 2686 theme.triggerActive(),
2687 theme.currencyToggle(); 2688 break; 2689 case "js-section__promo-pop": 2690 $("body").data("anim-load") && sr.reveal(".promo-pop .section__title", { 2691 distance: 0 2692 }); 2693 break; 2694 case "js-section__faq-page": 2695 theme.accordion(), 2696 theme.scrollToFixedFaq(), 2697 theme.scrollToDiv(), 2698 $("body").data("anim-load") && (sr.reveal(".page .section__title", { 2699 distance: "20px" 2700 }), 2701 sr.reveal(".faq__cta", { 2702 distance: 0, 2703 delay: 500 2704 }), 2705 sr.reveal(".faq__search", { 2706 distance: 0, 2707 delay: 700 2708 }), 2709 sr.reveal(".faq__accordion", { 2710 distance: 0, 2711 delay: 900 2712 }), 2713 sr.reveal(".page__contact-form", { 2714 distance: 0, 2715 delay: 200 2716 }), 2717 sr.reveal(".faq__category__title", { 2718 distance: 0 2719 })); 2720 break; 2721 case "js-section__page-custom": 2722 $("body").data("anim-load") && (sr.reveal(".home-custom__item", { 2723 interval: theme.intervalValue 2724 }), 2725 sr.reveal(".home-image-grid__item", { 2726 interval: theme.intervalValue 2727 })); 2728 break; 2729 case "js-section__page-contact": 2730 $(".js-map-replace").appendAround(), 2731 theme.homeMaps(), 2732 $("body").data("anim-load") && (sr.reveal(e + " .home-map__items"), 2733 sr.reveal(".page__contact-form", { 2734 distance: 0, 2735 delay: 200 2736 })) 2737 } 2738}).on("shopify:section:reorder", function(a) { 2739 theme.homeSectionMargin() 2740}).on("shopify:section:select", function(a) { 2741 var b = $(a.target) 2742 , c = b.attr("class").replace("shopify-section", "").trim() 2743 , d = a.originalEvent.detail.sectionId; 2744 switch (c) { 2745 case "js-section__mobile-draw": 2746 theme.currentOffset = $(document).scrollTop(), 2747 theme.mfpOpen("menu-draw"); 2748 break; 2749 case "js-section__age-checker": 2750 $(b).find(".js-age-draw").data("age-check-enabled") ? theme.mfpOpen("age") : $.magnificPopup.close(), 2751 theme.currentOffset = $(document).scrollTop(); 2752 break; 2753 case "js-section__promo-pop": 2754 $(b).find(".js-promo-pop").data("promo-enabled") ? theme.promoPop("open") : theme.promoPop("close"), 2755 theme.currentOffset = $(document).scrollTop(); 2756 break; 2757 case "js-section__home-slider": 2758 $('[data-section-id="' + d + '"]').find(".js-home-carousel").slick("slickPause"); 2759 break; 2760 case "js-section__home-testimonials": 2761 $('[data-section-id="' + d + '"]').find(".js-home-testimonials-carousel").slick("slickPause"); 2762 break; 2763 case "js-section__product-testimonials": 2764 $('[data-section-id="' + d + '"]').find(".js-home-testimonials-carousel").slick("slickPause") 2765 } 2766}).on("shopify:section:deselect", function(a) { 2767 var b = $(a.target) 2768 , c = b.attr("class").replace("shopify-section", "").trim() 2769 , d = a.originalEvent.detail.sectionId; 2770 switch (c) { 2771 case "js-section__mobile-draw": 2772 case "js-section__age-checker": 2773 $(document).scrollTop(theme.currentOffset), 2774 $.magnificPopup.close(); 2775 break; 2776 case "js-section__promo-pop": 2777 theme.promoPop("close"), 2778 $(document).scrollTop(theme.currentOffset); 2779 break; 2780 case "js-section__home-slider": 2781 var e = $('[data-section-id="' + d + '"]').find(".js-home-carousel"); 2782 e.data("autoplay") && e.slick("slickPlay"); 2783 break; 2784 case "js-section__home-testimonials": 2785 var f = $('[data-section-id="' + d + '"]').find(".js-home-testimonials-carousel"); 2786 f.data("autoplay") && f.slick("slickPlay"); 2787 break; 2788 case "js-section__product-testimonials": 2789 var g = $('[data-section-id="' + d + '"]').find(".js-home-testimonials-carousel"); 2790 g.data("autoplay") && g.slick("slickPlay") 2791 } 2792}).on("shopify:block:select", function(a) { 2793 var b = a.originalEvent.detail.sectionId 2794 , c = $(a.target); 2795 switch (c.parents(".shopify-section").attr("class").replace("shopify-section", "").trim()) { 2796 case "js-section__home-slider":
2797 var d = $(c).find(".home-carousel__item").attr("data-slide-id"); 2798 $('[data-section-id="' + b + '"]').find(".js-home-carousel").slick("slickGoTo", d); 2799 break; 2800 case "js-section__home-testimonials": 2801 var e = $(c).find(".home-testimonials__item").attr("data-slide-id"); 2802 $('[data-section-id="' + b + '"]').find(".js-home-testimonials-carousel").slick("slickGoTo", e); 2803 break; 2804 case "js-section__product-testimonials": 2805 var f = $(c).find(".home-testimonials__item").attr("data-slide-id"); 2806 $('[data-section-id="' + b + '"]').find(".js-home-testimonials-carousel").slick("slickGoTo", f) 2807 } 2808}), 2809"undefined" == typeof Shopify && (Shopify = {}), 2810Shopify.formatMoney || (Shopify.formatMoney = function(a, b) { 2811 function c(a, b) { 2812 return void 0 === a ? b : a 2813 } 2814 function d(a, b, d, e) { 2815 if (b = c(b, 2), 2816 d = c(d, ","), 2817 e = c(e, "."), 2818 isNaN(a) || null === a) 2819 return 0; 2820 a = (a / 100).toFixed(b); 2821 var f = a.split("."); 2822 return f[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1" + d) + (f[1] ? e + f[1] : "") 2823 } 2824 var e = "" 2825 , f = /\{\{\s*(\w+)\s*\}\}/ 2826 , g = b || this.money_format; 2827 switch ("string" == typeof a && (a = a.replace(".", "")), 2828 g.match(f)[1]) { 2829 case "amount": 2830 e = d(a, 2); 2831 break; 2832 case "amount_no_decimals": 2833 e = d(a, 0); 2834 break; 2835 case "amount_with_comma_separator": 2836 e = d(a, 2, ".", ","); 2837 break; 2838 case "amount_no_decimals_with_comma_separator": 2839 e = d(a, 0, ".", ",") 2840 } 2841 return g.replace(f, e) 2842} 2843), 2844function() { 2845 var a = window.navigator.userAgent 2846 , b = a.indexOf("MSIE "); 2847 if (b > 0 && (parseInt(a.substring(b + 5, a.indexOf(".", b)), 10), 2848 document.querySelector("html").className += " ie11"), 2849 a.indexOf("Trident/") > 0) { 2850 var c = a.indexOf("rv:"); 2851 parseInt(a.substring(c + 3, a.indexOf(".", c)), 10), 2852 document.querySelector("html").className += " ie11" 2853 } 2854}();
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.