1 function onYouTubeIframeAPIReady() { 2 theme.SlideshowVideo.loadVideos() 3 } 4 5 function gm_authFailure() { 6 $(".map-section").addClass("map-section--load-error"), $(".map-section__container").remove(), $(".map-section__link").remove(), $(".map-section__overlay").after('<div class="errors text-center">' + theme.strings.authError + "</div>") 7 } 8 window.theme = window.theme || {}, window.theme = window.theme || {}, theme.Sections = function() { 9 this.constructors = {}, this.instances = [], $(document).on("shopify:section:load", this._onSectionLoad.bind(this)).on("shopify:section:unload", this._onSectionUnload.bind(this)).on("shopify:section:select", this._onSelect.bind(this)).on("shopify:section:deselect", this._onDeselect.bind(this)).on("shopify:block:select", this._onBlockSelect.bind(this)).on("shopify:block:deselect", this._onBlockDeselect.bind(this)) 10 }, theme.Sections.prototype = _.assignIn({}, theme.Sections.prototype, { 11 _createInstance: function(e, t) { 12 var i = $(e), 13 a = i.attr("data-section-id"), 14 s = i.attr("data-section-type"); 15 if (t = t || this.constructors[s], !_.isUndefined(t)) { 16 var o = _.assignIn(new t(e), { 17 id: a, 18 type: s, 19 container: e 20 }); 21 this.instances.push(o) 22 } 23 }, 24 _onSectionLoad: function(e) { 25 var t = $("[data-section-id]", e.target)[0]; 26 t && this._createInstance(t) 27 }, 28 _onSectionUnload: function(e) { 29 this.instances = _.filter(this.instances, function(t) { 30 var i = t.id === e.detail.sectionId; 31 return i && _.isFunction(t.onUnload) && t.onUnload(e), !i 32 }) 33 }, 34 _onSelect: function(e) { 35 var t = _.find(this.instances, function(t) { 36 return t.id === e.detail.sectionId 37 }); 38 !_.isUndefined(t) && _.isFunction(t.onSelect) && t.onSelect(e) 39 }, 40 _onDeselect: function(e) { 41 var t = _.find(this.instances, function(t) { 42 return t.id === e.detail.sectionId 43 }); 44 !_.isUndefined(t) && _.isFunction(t.onDeselect) && t.onDeselect(e) 45 }, 46 _onBlockSelect: function(e) { 47 var t = _.find(this.instances, function(t) { 48 return t.id === e.detail.sectionId 49 }); 50 !_.isUndefined(t) && _.isFunction(t.onBlockSelect) && t.onBlockSelect(e) 51 }, 52 _onBlockDeselect: function(e) { 53 var t = _.find(this.instances, function(t) { 54 return t.id === e.detail.sectionId 55 }); 56 !_.isUndefined(t) && _.isFunction(t.onBlockDeselect) && t.onBlockDeselect(e) 57 }, 58 register: function(e, t) { 59 this.constructors[e] = t, $("[data-section-type=" + e + "]").each(function(e, i) { 60 this._createInstance(i, t) 61 }.bind(this)) 62 } 63 }), window.slate = window.slate || {}, slate.rte = { 64 wrapTable: function() { 65 $(".rte table").wrap('<div class="rte__table-wrapper"></div>') 66 }, 67 iframeReset: function() { 68 var e = $('.rte iframe[src*="youtube.com/embed"], .rte iframe[src*="player.vimeo"]'), 69 t = e.add(".rte iframe#admin_bar_iframe"); 70 e.each(function() { 71 $(this).wrap('<div class="video-wrapper"></div>') 72 }), t.each(function() { 73 this.src = this.src 74 }) 75 } 76 }, window.slate = window.slate || {}, slate.a11y = { 77 pageLinkFocus: function(e) { 78 var t = "js-focus-hidden"; 79 e.first().attr("tabIndex", "-1").focus().addClass(t).one("blur", function() { 80 e.first().removeClass(t).removeAttr("tabindex") 81 }) 82 }, 83 focusHash: function() { 84 var e = window.location.hash; 85 e && document.getElementById(e.slice(1)) && this.pageLinkFocus($(e)) 86 }, 87 bindInPageLinks: function() { 88 $("a[href*=#]").on("click", function(e) { 89 this.pageLinkFocus($(e.currentTarget.hash)) 90 }.bind(this)) 91 }, 92 trapFocus: function(e) { 93 var t = e.namespace ? "focusin." + e.namespace : "focusin"; 94 e.$elementToFocus || (e.$elementToFocus = e.$container), e.$container.attr("tabindex", "-1"), e.$elementToFocus.focus(), $(document).off("focusin"), $(document).on(t, function(t) { 95 e.$container[0] === t.target || e.$container.has(t.target).length || e.$container.focus() 96 }) 97 }, 98 removeTrapFocus: function(e) { 99 var t = e.namespace ? "focusin." + e.namespace : "focusin"; 100 e.$container && e.$container.length && e.$container.removeAttr("tabindex"), $(document).off(t) 101 } 102 }, theme.Images = function() { 103 return { 104 preload: function(e, t) { 105 "string" == typeof e && (e = [e]); 106 for (var i = 0; i < e.length; i++) { 107 var a = e[i]; 108 this.loadImage(this.getSizedImageUrl(a, t)) 109 } 110 }, 111 loadImage: function(e) { 112 (new Image).src = e 113 }, 114 switchImage: function(e, t, i) { 115 var a = this.imageSize(t.src),
116 s = this.getSizedImageUrl(e.src, a); 117 i ? i(s, e, t) : t.src = s 118 }, 119 imageSize: function(e) { 120 if (-1 != e.indexOf("@")) var t = e.match(/.+_((?:pico|icon|thumb|small|compact|medium|large|grande)?\@\d{1,2}x|\d{1,4}x\d{0,4}?@\d{1,2}x|x\d{1,4}?\@\d{1,2}x)[_\.@]/); 121 else t = e.match(/.+_((?:pico|icon|thumb|small|compact|medium|large|grande)|\d{1,4}x\d{0,4}|x\d{1,4})[_\.@]/); 122 return null !== t ? t[1] : null 123 }, 124 getSizedImageUrl: function(e, t) { 125 if (null == t) return e; 126 if ("master" === t) return this.removeProtocol(e); 127 var i = e.match(/\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?$/i); 128 if (null != i) { 129 var a = e.split(i[0]), 130 s = i[0]; 131 return this.removeProtocol(a[0] + "_" + t + s) 132 } 133 return null 134 }, 135 removeProtocol: function(e) { 136 return e.replace(/http(s)?:/, "") 137 } 138 } 139 }(), theme.Currency = function() { 140 var e = "${{amount}}"; 141 return { 142 formatMoney: function(t, i) { 143 "string" == typeof t && (t = t.replace(".", "")); 144 var a = "", 145 s = /\{\{\s*(\w+)\s*\}\}/, 146 o = i || e; 147 148 function n(e, t, i, a) { 149 if (t = t || 2, i = i || ",", a = a || ".", isNaN(e) || null == e) return 0; 150 var s = (e = (e / 100).toFixed(t)).split("."); 151 return s[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1" + i) + (s[1] ? a + s[1] : "") 152 } 153 switch (o.match(s)[1]) { 154 case "amount": 155 a = n(t, 2); 156 break; 157 case "amount_no_decimals": 158 a = n(t, 0); 159 break; 160 case "amount_with_comma_separator": 161 a = n(t, 2, ".", ","); 162 break; 163 case "amount_no_decimals_with_comma_separator": 164 a = n(t, 0, ".", ","); 165 break; 166 case "amount_no_decimals_with_space_separator": 167 a = n(t, 0, " ") 168 } 169 return o.replace(s, a) 170 } 171 } 172 }(), slate.Variants = function() { 173 function e(e) { 174 this.$container = e.$container, this.product = e.product, this.singleOptionSelector = e.singleOptionSelector, this.originalSelectorId = e.originalSelectorId, this.enableHistoryState = e.enableHistoryState, this.currentVariant = this._getVariantFromOptions(), this.template = this.originalSelectorId.replace("#ProductSelect-", ""), $(this.singleOptionSelector, this.$container).on("change", this._onSelectChange.bind(this)) 175 } 176 return e.prototype = _.assignIn({}, e.prototype, { 177 _getCurrentOptions: function() { 178 var e = _.map($(this.singleOptionSelector, this.$container), function(e) { 179 var t = $(e), 180 i = t.attr("type"), 181 a = {}; 182 return "radio" === i || "checkbox" === i ? !!t[0].checked && (a.value = t.val(), a.index = t.data("index"), a) : (a.value = t.val(), a.index = t.data("index"), a) 183 }); 184 return e = _.compact(e) 185 }, 186 _getVariantFromOptions: function() { 187 var e = this._getCurrentOptions(), 188 t = this.product.variants; 189 return _.find(t, function(t) { 190 return e.every(function(e) { 191 return _.isEqual(t[e.index], e.value) 192 }) 193 }) 194 }, 195 _onSelectChange: function() { 196 var e = this._getVariantFromOptions(); 197 this.$container.trigger({ 198 type: "variantChange", 199 variant: e 200 }), e && (this._updateMasterSelect(e), this._updateImages(e), this._updatePrice(e), this._updateSKU(e), this.currentVariant = e, this.enableHistoryState && this._updateHistoryState(e)) 201 }, 202 _updateImages: function(e) { 203 if (0 != $(".color_sw.selected .swatch").length) var t = $(".color_sw.selected .swatch").css("background-image").replace("_small_crop_center", "").replace(/(url\(|\)|'|")/gi, ""); 204 var i = e.featured_image || {}, 205 a = $(".product-single__photos-" + this.template + ".SlickPhotoswipGallery .slick-current").attr("data-src") || {}; 206 !e.featured_image && void 0 == t || i.src === a && void 0 == t || this.$container.trigger({ 207 type: "variantImageChange", 208 variant: e 209 }) 210 }, 211 _updatePrice: function(e) { 212 e.price === this.currentVariant.price && e.compare_at_price === this.currentVariant.compare_at_price || this.$container.trigger({ 213 type: "variantPriceChange", 214 variant: e 215 }) 216 }, 217 _updateSKU: function(e) { 218 e.sku !== this.currentVariant.sku && this.$container.trigger({ 219 type: "variantSKUChange", 220 variant: e 221 }) 222 }, 223 _updateHistoryState: function(e) { 224 if (history.replaceState && e) { 225 var t = window.location.protocol + "//" + window.location.host + window.location.pathname + "?variant=" + e.id; 226 window.history.replaceState({ 227 path: t 228 }, "", t) 229 } 230 }, 231 _updateMasterSelect: function(e) { 232 $(this.originalSelectorId, this.$container).val(e.id) 233 } 234 }), e 235 }(), window.theme = theme || {}, theme.getScrollbarWidth = function() { 236 var e = jQuery('<div style="width: 100%; height:200px;">test</div>'),
237 t = jQuery('<div style="width:200px;height:150px; position: absolute; top: 0; left: 0; visibility: hidden; overflow:hidden;"></div>').append(e), 238 i = e[0], 239 a = t[0]; 240 $("body").append(a); 241 var s = i.offsetWidth; 242 t.css("overflow", "scroll"); 243 var o = a.clientWidth; 244 return t.remove(), s - o 245 }, window.theme = window.theme || {}, theme.MenuReposive = function() { 246 var e = { 247 body: "body", 248 navigation: "#AccessibleNav", 249 siteNavHasDropdown: ".site-nav--has-dropdown", 250 siteNavChildLinks: ".site-nav__child-link", 251 siteNavActiveDropdown: ".show-submenu", 252 siteNavLinkMain: ".site-nav__link--main" 253 }, 254 t = { 255 activeClass: "show-submenu", 256 childLinkClass: "site-nav__child-link" 257 }; 258 return { 259 init: function() { 260 !0 === Modernizr.touch ? ($(".boutique-nav").addClass("isMobile").removeClass("notMobile"), $(document).on("click", ".boutique-nav " + e.siteNavHasDropdown + " .expand", function(i) { 261 var a = $(this).closest("li"), 262 s = $(".boutique-nav " + e.siteNavHasDropdown); 263 if (!a.hasClass(t.activeClass)) return s.removeClass(t.activeClass), a.parents().each(function() { 264 if ($(this).hasClass(e.siteNavHasDropdown) && $(this).addClass(t.activeClass), $(this).hasClass("main-menu")) return !1 265 }), a.addClass(t.activeClass), a.hasClass(t.activeClass) || a.find("li").removeClass(t.activeClass), !1; 266 var o = $(this).attr("href"); 267 "" == $.trim(o) || "#" == $.trim(o) ? a.toggleClass(t.activeClass) : window.location = o, a.hasClass(t.activeClass) || a.find("li").removeClass("show-submenu"), i.stopPropagation() 268 }), $(document).on("click", function(e) { 269 var i = $(e.target); 270 i.closest(t.activeClass).length && i.closest(".boutique-nav").length || $("." + t.activeClass).removeClass(t.activeClass) 271 })) : ($(".boutique-nav").removeClass("isMobile").addClass("notMobile"), $(document).on("mouseenter", ".boutique-nav " + e.siteNavHasDropdown, function() { 272 0 == $(this).hasClass(t.activeClass) && $(this).addClass(t.activeClass) 273 }), $(document).on("mouseleave", ".boutique-nav " + e.siteNavHasDropdown, function() { 274 $(this).hasClass(t.activeClass) && $(this).removeClass(t.activeClass) 275 })) 276 }, 277 is_mobile: function() { 278 return !!Modernizr.touch 279 }, 280 js_height_full: function() { 281 var e = $(window).outerHeight(); 282 $(".full-height").css("height", e) 283 }, 284 js_width_full: function() { 285 var e = $(window).outerWidth(); 286 $(".full-width").css("width", e) 287 }, 288 heightheader_categoy_menu: function() { 289 var e = $(".header-categoy-menu").outerHeight() - 140; 290 $(".header-categoy-menu .inner").css("height", e + "px") 291 }, 292 positionFootersidebar: function() { 293 var e = $(".header.sidebar").outerHeight() - 45; 294 $(".header.sidebar .sidebar-menu").css("height", e + "px") 295 }, 296 clone_main_menu: function() { 297 $(".clone-main-menu").length > 0 && $("#box-mobile-menu").length > 0 && $(".clone-main-menu").clone().appendTo("#box-mobile-menu .box-inner") 298 }, 299 clone_header_ontop: function() { 300 if ($(window).width() > 991) { 301 if ($("#header").length > 0 && $("#header-ontop").length > 0 && $("#header-ontop").hasClass("is-sticky") && $("#header-ontop .header").length <= 0) { 302 var e = $("#header").clone(); 303 e.removeAttr("id"), e.appendTo("#header-ontop") 304 } 305 setTimeout(function() { 306 $(".megaMaxscroll").each(function() { 307 $(this).mThumbnailScroller({ 308 axis: "y", 309 type: "hover-precise" 310 }) 311 }) 312 }, 500) 313 } else $(".megaMaxscroll").hasClass("mThumbnailScroller") && $(".megaMaxscroll").each(function() { 314 $(this).mThumbnailScroller("destroy") 315 }) 316 }, 317 unload: function() { 318 $(window).off(e.siteNavHasDropdown + " a"), $(e.siteNavHasDropdown).off(e.siteNavHasDropdown + " a"), $(e.body).off(e.siteNavHasDropdown + " a") 319 } 320 } 321 }(), window.theme = window.theme || {}, theme.StickMenu = function() { 322 var e = { 323 headerId: "#header", 324 headerClassProp: ".header", 325 mainMenu: ".main-menu", 326 stickyHeaderTop: "#header-ontop" 327 }, 328 t = 0; 329 return $(e.headerClassProp + " " + e.mainMenu).length > 0 && (t = $(e.headerClassProp + " " + e.mainMenu).offset().top), Modernizr.touch, { 330 init: function() { 331 if ($(e.headerId + " " + e.mainMenu).length > 0) { 332 var i = $(window).scrollTop(); 333 $(window).width() > 991 ? i > t ? ($(e.stickyHeaderTop).addClass("on-sticky"), $(e.stickyHeaderTop).find(e.headerClassProp).addClass("ontop"), setTimeout(function() { 334 $("#header-ontop.on-sticky").length > 0 && $("#header-ontop .ResizedNavMegaScroll").length <= 0 && theme.ResizeNavMega.init("scroll") 335 }, 200)) : ($(e.stickyHeaderTop).removeClass("on-sticky"), $(e.stickyHeaderTop).find(e.headerClassProp).removeClass("ontop")) : ($(e.stickyHeaderTop).find(e.headerClassProp).removeClass("ontop"), $(e.stickyHeaderTop).removeClass("on-sticky")) 336 } 337 } 338 } 339 }(jQuery), window.theme = window.theme || {}, theme.ResizeNavMega = function() { 340 var e = { 341 headerIsVisible: "#header .main-menu-wapper", 342 itemMega: ".main-menu .item-megamenu", 343 contentItemMega: ".megamenu" 344 }; 345 return { 346 init: function(t) { 347 var i = jQuery("body").innerWidth(); 348 if (i += theme.getScrollbarWidth(), void 0 !== t && "scroll" === t && (e.headerIsVisible = "#header-ontop .main-menu-wapper", $("#header-ontop .main-menu-wapper").addClass("ResizedNavMegaScroll")), i > 767 && $(e.headerIsVisible).length > 0) { 349 var a = $(e.headerIsVisible); 350 if ("undefined" != a) { 351 var s; 352 s = a.innerWidth(); 353 var o = a.offset(); 354 setTimeout(function() { 355 $(e.headerIsVisible + " " + e.itemMega).each(function(t, i) { 356 $(i).children(e.contentItemMega).css({ 357 "max-width": s + "px" 358 }); 359 var a = $(i).children(e.contentItemMega).outerWidth(), 360 n = $(i).outerWidth(); 361 $(i).children(e.contentItemMega).css({ 362 left: "-" + (a / 2 - n / 2) + "px" 363 }); 364 var r = o.left, 365 c = r + s, 366 l = $(i).offset().left, 367 d = a / 2 > l - r, 368 h = a / 2 + l > c; 369 if (d) { 370 var u = l - r; 371 $(i).children(e.contentItemMega).css({ 372 left: -u + "px" 373 }) 374 } 375 h && !d && (u = l - r, u -= s - a, $(i).children(e.contentItemMega).css({ 376 left: -u + "px" 377 })) 378 }) 379 }, 100) 380 } 381 } 382 } 383 } 384 }(jQuery), window.theme = window.theme || {}, theme.DropdownReposive = function() { 385 return { 386 init: function(e, t, i) { 387 var a, s = { 388 headerIsVisibleDesktop: ".kiti-DropWindowDesktop", 389 headerIsVisible: e, 390 itemMega: t, 391 contentItemMega: i 392 }, 393 o = jQuery("body").innerWidth(); 394 if (o += theme.getScrollbarWidth(), !0 === theme.MenuReposive.is_mobile() ? $(s.itemMega).addClass("kiti-DropisMobile").removeClass("kiti-DropisDesktop") : $(s.itemMega).addClass("kiti-DropisDesktop").removeClass("kiti-DropisMobile"), o <= 480 || $(s.headerIsVisible).innerWidth() <= 480) { 395 if ($(s.headerIsVisible).length > 0 && "undefined" != (a = $(s.headerIsVisible))) { 396 var n = 0; 397 n = a.innerWidth(); 398 var r = a.offset(); 399 setTimeout(function() { 400 $(s.itemMega).each(function(e, t) { 401 $(t).children(s.contentItemMega).css({ 402 "max-width": n + "px" 403 }); 404 var i = $(t).children(s.contentItemMega).outerWidth(), 405 a = $(t).outerWidth(); 406 $(t).children(s.contentItemMega).css({ 407 left: "-" + (i / 2 - a / 2) + "px" 408 }); 409 var o = r.left, 410 c = o + n, 411 l = $(t).offset().left, 412 d = i / 2 > l - o, 413 h = i / 2 + l > c; 414 if (d) { 415 var u = l - o; 416 $(t).children(s.contentItemMega).css({ 417 left: -u + "px" 418 }) 419 } 420 h && !d && (u = l - o, u -= n - i, $(t).children(s.contentItemMega).css({ 421 left: -u + "px" 422 })) 423 }) 424 }, 100) 425 } 426 } else $(s.contentItemMega).css({ 427 "max-width": o + "px", 428 left: "auto" 429 }), $(s.headerIsVisibleDesktop).length > 0 && "undefined" != (a = $(s.headerIsVisibleDesktop)) && (n = 0, n = a.innerWidth(), r = a.offset(), setTimeout(function() { 430 $(s.itemMega).each(function(e, t) { 431 $(t).children(s.contentItemMega).css({ 432 "max-width": n + "px" 433 }); 434 var i = $(t).children(s.contentItemMega).outerWidth(), 435 a = $(t).outerWidth(); 436 $(t).children(s.contentItemMega).css({ 437 left: "-" + (i / 2 - a / 2) + "px" 438 }); 439 var o = r.left, 440 c = o + n, 441 l = $(t).offset().left, 442 d = i / 2 > l - o, 443 h = i / 2 + l > c; 444 if (d) { 445 var u = l - o; 446 $(t).children(s.contentItemMega).css({ 447 left: -u + "px" 448 }) 449 } 450 h && !d && (u = l - o, u -= n - i, $(t).children(s.contentItemMega).css({ 451 left: -u + "px" 452 })) 453 }) 454 }, 100)) 455 } 456 } 457 }(), 458 function() { 459 var e = $(".return-link"); 460 461 function t(e) { 462 var t = document.createElement("a"); 463 return t.ref = e, t.hostname 464 } 465 document.referrer && e.length && window.history.length && e.one("click", function(e) { 466 e.preventDefault(); 467 var i = t(document.referrer); 468 return t(window.location.href) === i && history.back(), !1 469 }) 470 }(), theme.Slideshow = function() { 471 this.$slideshow = null; 472 var e = { 473 wrapper: "slideshow-wrapper", 474 slideshow: "slideshow", 475 currentSlide: "slick-current", 476 video: "slideshow__video",
477 videoBackground: "slideshow__video--background", 478 closeVideoBtn: "slideshow__video-control--close", 479 pauseButton: "slideshow__pause", 480 isPaused: "is-paused" 481 }; 482 483 function t(t) { 484 this.$slideshow = $(t), this.$wrapper = this.$slideshow.closest("." + e.wrapper), this.$pause = this.$wrapper.find("." + e.pauseButton), this.settings = { 485 accessibility: !0, 486 arrows: !0, 487 dots: !0, 488 fade: !0, 489 draggable: !0, 490 touchThreshold: 20, 491 autoplay: this.$slideshow.data("autoplay"), 492 autoplaySpeed: this.$slideshow.data("speed") 493 }, this.$slideshow.on("beforeChange", function(t, a, s, o) { 494 var n = a.$slider, 495 r = n.find("." + e.currentSlide), 496 c = n.find('.slideshow__slide[data-slick-index="' + o + '"]'); 497 if (i(r)) { 498 var l = r.find("." + e.video), 499 d = l.attr("id"); 500 theme.SlideshowVideo.pauseVideo(d), l.attr("tabindex", "-1") 501 } 502 if (i(c)) { 503 var h = c.find("." + e.video), 504 u = h.attr("id"), 505 m = h.hasClass(e.videoBackground); 506 m ? theme.SlideshowVideo.playVideo(u) : h.attr("tabindex", "0") 507 } 508 }.bind(this)), this.$slideshow.on("init", function(t, i) { 509 var a = i.$slider, 510 s = i.$list, 511 o = this.$wrapper, 512 n = this.settings.autoplay; 513 s.removeAttr("aria-live"), o.on("focusin", function(e) { 514 o.has(e.target).length && (s.attr("aria-live", "polite"), n && a.slick("slickPause")) 515 }), o.on("focusout", function(t) { 516 if (o.has(t.target).length && (s.removeAttr("aria-live"), n)) { 517 if ($(t.target).hasClass(e.closeVideoBtn)) return; 518 a.slick("slickPlay") 519 } 520 }), i.$dots && i.$dots.on("keydown", function(e) { 521 37 === e.which && a.slick("slickPrev"), 39 === e.which && a.slick("slickNext"), 37 !== e.which && 39 !== e.which || i.$dots.find(".slick-active button").focus() 522 }) 523 }.bind(this)), this.$slideshow.slick(this.settings), this.$pause.on("click", this.togglePause.bind(this)) 524 } 525 526 function i(t) { 527 return t.find("." + e.video).length 528 } 529 return t.prototype.togglePause = function() { 530 var t = "#Slideshow-" + this.$pause.data("id"); 531 this.$pause.hasClass(e.isPaused) ? (this.$pause.removeClass(e.isPaused), $(t).slick("slickPlay")) : (this.$pause.addClass(e.isPaused), $(t).slick("slickPause")) 532 }, t 533 }(), theme.SlideshowVideo = function() { 534 var e = !1, 535 t = !1, 536 i = !1, 537 a = !1, 538 s = !1, 539 o = {}, 540 n = [], 541 r = { 542 ratio: 16 / 9, 543 playerVars: { 544 iv_load_policy: 3, 545 modestbranding: 1, 546 autoplay: 0, 547 controls: 0, 548 showinfo: 0, 549 wmode: "opaque", 550 branding: 0, 551 autohide: 0, 552 rel: 0 553 }, 554 events: { 555 onReady: function(e) { 556 e.target.setPlaybackQuality("hd1080"); 557 var t = p(e); 558 switch (i || ($(window).width() < 750 ? a = !0 : theme.MenuReposive.is_mobile() && (a = !0), a && d(!1), i = !0), $("#" + t.id).attr("tabindex", "-1"), f(), t.type) { 559 case "background-chrome": 560 case "background": 561 e.target.mute(), t.$parentSlide.hasClass(c.currentSlide) && l(t.id) 562 } 563 t.$parentSlide.addClass(c.loaded) 564 }, 565 onStateChange: function(e) { 566 var t = p(e); 567 switch (e.data) { 568 case 0: 569 ! function(e) { 570 switch (e.type) { 571 case "background": 572 n[e.id].seekTo(0); 573 break; 574 case "background-chrome": 575 n[e.id].seekTo(0), m(e.id); 576 break; 577 case "chrome": 578 m(e.id) 579 } 580 }(t); 581 break; 582 case 1: 583 h(t); 584 break; 585 case 2: 586 u(t) 587 } 588 } 589 } 590 }, 591 c = { 592 playing: "video-is-playing", 593 paused: "video-is-paused", 594 loading: "video-is-loading", 595 loaded: "video-is-loaded", 596 slideshowWrapper: "slideshow-wrapper", 597 slide: "slideshow__slide",
598 slideBackgroundVideo: "slideshow__slide--background-video", 599 slideDots: "slick-dots", 600 videoChrome: "slideshow__video--chrome", 601 videoBackground: "slideshow__video--background", 602 playVideoBtn: "slideshow__video-control--play", 603 closeVideoBtn: "slideshow__video-control--close", 604 currentSlide: "slick-current", 605 slickClone: "slick-cloned", 606 supportsAutoplay: "autoplay", 607 supportsNoAutoplay: "no-autoplay" 608 }; 609 610 function l(i, s) { 611 var r, l, u, m, p, g, f = o[i], 612 v = n[i], 613 w = o[i].$parentSlide; 614 if (a) h(f); 615 else if (s || e && t) return w.removeClass(c.loading), h(f), void v.playVideo(); 616 e || (l = w, (r = v).playVideo(), (u = r, g = $.Deferred(), m = setInterval(function() { 617 u.getCurrentTime() <= 0 || (t = !0, clearInterval(m), clearTimeout(p), g.resolve()) 618 }, 500), p = setTimeout(function() { 619 clearInterval(m), g.reject() 620 }, 4e3), g).then(function() { 621 d(!0) 622 }).fail(function() { 623 d(!1), r.stopVideo() 624 }).always(function() { 625 e = !0, l.removeClass(c.loading) 626 })) 627 } 628 629 function d(t) { 630 var i = t ? c.supportsAutoplay : c.supportsNoAutoplay; 631 $(document.documentElement).addClass(i), t || (a = !0), e = !0 632 } 633 634 function h(e) { 635 var t = e.$parentSlideshowWrapper, 636 i = e.$parentSlide; 637 if (i.removeClass(c.loading), "background" !== e.status) { 638 switch ($("#" + e.id).attr("tabindex", "0"), e.type) { 639 case "chrome": 640 case "background-chrome": 641 t.removeClass(c.paused).addClass(c.playing), i.removeClass(c.paused).addClass(c.playing) 642 } 643 i.find("." + c.closeVideoBtn).focus() 644 } 645 } 646 647 function u(e) { 648 var t = e.$parentSlideshowWrapper, 649 i = e.$parentSlide; 650 "background-chrome" !== e.type ? ("closed" !== e.status && "background" !== e.type && (t.addClass(c.paused), i.addClass(c.paused)), "chrome" === e.type && "closed" === e.status && (t.removeClass(c.paused), i.removeClass(c.paused)), t.removeClass(c.playing), i.removeClass(c.playing)) : m(e.id) 651 } 652 653 function m(e) { 654 var t, i, a = o[e], 655 s = a.$parentSlideshowWrapper, 656 r = a.$parentSlide, 657 l = [c.pause, c.playing].join(" "); 658 switch ($("#" + a.id).attr("tabindex", "-1"), a.status = "closed", a.type) { 659 case "background-chrome": 660 n[e].mute(), t = e, i = $("#" + t).addClass(c.videoBackground).removeClass(c.videoChrome), o[t].$parentSlide.addClass(c.slideBackgroundVideo), o[t].status = "background", v(i); 661 break; 662 case "chrome": 663 n[e].stopVideo(), u(a) 664 } 665 s.removeClass(l), r.removeClass(l) 666 } 667 668 function p(e) { 669 return o[e.target.h.id] 670 } 671 672 function g(e) { 673 var t, i = o[e]; 674 switch (i.$parentSlide.addClass(c.loading), i.status = "open", i.type) { 675 case "background-chrome": 676 t = e, $("#" + t).removeAttr("style").removeClass(c.videoBackground).addClass(c.videoChrome), o[t].$parentSlideshowWrapper.removeClass(c.slideBackgroundVideo).addClass(c.playing), o[t].$parentSlide.removeClass(c.slideBackgroundVideo).addClass(c.playing), o[t].status = "open", n[e].unMute(), l(e, !0); 677 break; 678 case "chrome": 679 l(e, !0) 680 } 681 $(document).on("keydown.videoPlayer", function(t) { 682 27 === t.keyCode && m(e) 683 }) 684 } 685 686 function f() {
687 $("." + c.videoBackground).each(function(e, t) { 688 v($(t)) 689 }) 690 } 691 692 function v(e) { 693 var t = e.closest("." + c.slide); 694 if (!t.hasClass(c.slickClone)) { 695 var i = t.width(), 696 a = e.width(), 697 s = e.height(); 698 i / r.ratio < s ? (a = Math.ceil(s * r.ratio), e.width(a).height(s).css({ 699 left: (i - a) / 2, 700 top: 0 701 })) : (s = Math.ceil(i / r.ratio), e.width(i).height(s).css({ 702 left: 0, 703 top: (s - s) / 2 704 })), e.prepareTransition().addClass(c.loaded) 705 } 706 } 707 708 function w() { 709 $(document).on("click.videoPlayer", "." + c.playVideoBtn, function(e) { 710 g($(e.currentTarget).data("controls")) 711 }), $(document).on("click.videoPlayer", "." + c.closeVideoBtn, function(e) { 712 m($(e.currentTarget).data("controls")) 713 }), $(window).on("resize.videoPlayer", $.debounce(250, function() { 714 s && f() 715 })) 716 } 717 return { 718 init: function(e) { 719 if (e.length && (o[e.attr("id")] = { 720 id: e.attr("id"), 721 videoId: e.data("id"), 722 type: e.data("type"), 723 status: "chrome" === e.data("type") ? "closed" : "background", 724 videoSelector: e.attr("id"), 725 $parentSlide: e.closest("." + c.slide), 726 $parentSlideshowWrapper: e.closest("." + c.slideshowWrapper), 727 controls: "background" === e.data("type") ? 0 : 1, 728 slideshow: e.data("slideshow") 729 }, !s)) { 730 var t = document.createElement("script"); 731 t.src = "https://www.youtube.com/iframe_api"; 732 var i = document.getElementsByTagName("script")[0]; 733 i.parentNode.insertBefore(t, i) 734 } 735 }, 736 loadVideos: function() { 737 for (var e in o) 738 if (o.hasOwnProperty(e)) { 739 var t = $.extend({}, r, o[e]); 740 t.playerVars.controls = t.controls, n[e] = new YT.Player(e, t) 741 } 742 w(), s = !0 743 }, 744 loadVideo: function(e) { 745 if (s) { 746 var t = $.extend({}, r, o[e]); 747 t.playerVars.controls = t.controls, n[e] = new YT.Player(e, t), w() 748 } 749 }, 750 playVideo: function(e) { 751 (i || a) && e && "function" == typeof n[e].playVideo && l(e) 752 }, 753 pauseVideo: function(e) { 754 n[e] && "function" == typeof n[e].pauseVideo && n[e].pauseVideo() 755 }, 756 removeEvents: function() { 757 $(document).off(".videoPlayer"), $(window).off(".videoPlayer") 758 } 759 } 760 }(), window.theme = theme || {}, theme.customerTemplates = function() { 761 function e() { 762 $("#RecoverPasswordForm").toggleClass("hide"), $("#CustomerLoginForm").toggleClass("hide") 763 } 764 return { 765 init: function() { 766 var t; 767 "#recover" === window.location.hash && e(), $("#RecoverPassword").on("click", function(t) { 768 t.preventDefault(), e() 769 }), $("#HideRecoverPasswordLink").on("click", function(t) { 770 t.preventDefault(), e() 771 }), $(".reset-password-success").length && $("#ResetSuccess").removeClass("hide"), (t = $("#AddressNewForm")).length && (Shopify && new Shopify.CountryProvinceSelector("AddressCountryNew", "AddressProvinceNew", { 772 hideElement: "AddressProvinceContainerNew" 773 }), $(".address-country-option").each(function() { 774 var e = $(this).data("form-id"), 775 t = "AddressCountry_" + e, 776 i = "AddressProvince_" + e, 777 a = "AddressProvinceContainer_" + e; 778 new Shopify.CountryProvinceSelector(t, i, { 779 hideElement: a 780 }) 781 }), $(".address-new-toggle").on("click", function() { 782 t.toggleClass("hide") 783 }), $(".address-edit-toggle").on("click", function() { 784 var e = $(this).data("form-id"); 785 $("#EditAddress_" + e).toggleClass("hide") 786 }), $(".address-delete").on("click", function() { 787 var e = $(this), 788 t = e.data("form-id"), 789 i = e.data("confirm-message"); 790 confirm(i || "Are you sure you wish to delete this address?") && Shopify.postLink("/account/addresses/" + t, { 791 parameters: { 792 _method: "delete" 793 } 794 }) 795 })) 796 } 797 } 798 }(), window.theme = window.theme || {}, theme.Cart = function() { 799 var e = { 800 edit: ".js-edit-toggle" 801 }, 802 t = { 803 showClass: "cart__update--show", 804 showEditClass: "cart__edit--active", 805 cartNoCookies: "cart--no-cookies" 806 }; 807 808 function i(i) { 809 this.$container = $(i), this.$edit = $(e.edit, this.$container), this.cookiesEnabled() || this.$container.addClass(t.cartNoCookies), this.$edit.on("click", this._onEditClick.bind(this)), $.ajax({ 810 type: "get", 811 url: "/cart.json", 812 beforeSend: function() {}, 813 success: function(e) { 814 if (e.item_count > 0 && 1 == theme.function.cartAutoShippingEnable) { 815 if (1 === e.items.length && 0 == e.items[0].requires_shipping) return !1; 816 $.ajax({ 817 type: "get", 818 url: "//api.teathemes.net/currency", 819 success: function(e) { 820 if ("ENG" == e.region) var t = { 821 zip: theme.shop.postalCode, 822 country: theme.shop.addressCountry, 823 province: theme.shop.addressLocality 824 }; 825 else t = { 826 zip: "" != e.zip ? e.zip : e.region, 827 country: e.country, 828 province: e.regionName 829 }; 830 Shopify.KT_getCartShippingRatesForDestination(t) 831 } 832 }) 833 } 834 } 835 }) 836 } 837 return i.prototype = _.assignIn({}, i.prototype, { 838 onUnload: function() { 839 this.$edit.off("click", this._onEditClick) 840 }, 841 _onEditClick: function(e) { 842 var i = $(e.target), 843 a = $("." + i.data("target")); 844 i.toggleClass(t.showEditClass), a.toggleClass(t.showClass) 845 }, 846 cookiesEnabled: function() { 847 var e = navigator.cookieEnabled; 848 return e || (document.cookie = "testcookie", e = -1 !== document.cookie.indexOf("testcookie")), e 849 } 850 }), i 851 }(), window.theme = window.theme || {}, theme.HeaderSection = function() { 852 function e() { 853 theme.MenuReposive.init(), theme.StickMenu.init(), theme.ResizeNavMega.init() 854 } 855 return e.prototype = _.assignIn({}, e.prototype, { 856 onUnload: function() { 857 theme.MenuReposive.unload() 858 } 859 }), e 860 }(), theme.Maps = function() { 861 var e = 14, 862 t = null, 863 i = [], 864 a = theme.mapKey ? theme.mapKey : ""; 865 866 function s(e) { 867 this.$container = $(e), "loaded" === t ? this.createMap() : (i.push(this), "loading" !== t && (t = "loading", void 0 === window.google && $.getScript("https://maps.googleapis.com/ma
867ps/api/js?key=" + a).then(function() { 868 t = "loaded", $.each(i, function(e, t) { 869 t.createMap() 870 }) 871 }))) 872 } 873 return s.prototype = _.assignIn({}, s.prototype, { 874 createMap: function() { 875 var t, i, a, s, o = this.$container.find(".map-section__container"); 876 return (t = o, i = $.Deferred(), a = new google.maps.Geocoder, s = t.data("address-setting"), a.geocode({ 877 address: s 878 }, function(e, t) { 879 t !== google.maps.GeocoderStatus.OK && i.reject(t), i.resolve(e) 880 }), i).then(function(t) { 881 var i = { 882 zoom: e, 883 center: t[0].geometry.location, 884 disableDefaultUI: !0 885 }, 886 a = this.map = new google.maps.Map(o[0], i), 887 s = this.center = a.getCenter(); 888 new google.maps.Marker({ 889 map: a, 890 position: a.getCenter() 891 }); 892 google.maps.event.addDomListener(window, "resize", $.debounce(250, function() { 893 google.maps.event.trigger(a, "resize"), a.setCenter(s) 894 })) 895 }.bind(this)).fail(function() { 896 var e; 897 switch (status) { 898 case "ZERO_RESULTS": 899 e = theme.strings.addressNoResults; 900 break; 901 case "OVER_QUERY_LIMIT": 902 e = theme.strings.addressQueryLimit; 903 break; 904 default: 905 e = theme.strings.addressError 906 } 907 o.parent().addClass("page-width map-section--load-error").html('<div class="errors text-center">' + e + "</div>") 908 }) 909 }, 910 onUnload: function() { 911 google.maps.event.clearListeners(this.map, "resize") 912 } 913 }), s 914 }(), theme.Product = function() { 915 function e(e) { 916 var t = this.$container = $(e), 917 i = t.attr("data-section-id"); 918 t.attr("data-product-id"); 919 this.settings = { 920 mediaQueryMediumUp: "screen and (min-width: 750px)", 921 mediaQuerySmall: "screen and (max-width: 749px)", 922 bpSmall: !1, 923 enableHistoryState: t.data("enable-history-state") || !1, 924 imageSize: "530x@2x", 925 imageZoomSize: null, 926 namespace: ".slideshow-" + i, 927 sectionId: i, 928 sliderActive: !1, 929 zoomEnabled: !1 930 }, this.selectors = { 931 template: "#ProductSection-" + i, 932 addToCart: "#AddToCart-" + i, 933 addToCartText: "#AddToCartText-" + i, 934 comparePrice: "#ComparePrice-" + i, 935 originalPrice: "#ProductPrice-" + i, 936 SKU: ".variant-sku", 937 originalPriceWrapper: ".product-price__price-" + i, 938 originalSelectorId: "#ProductSelect-" + i, 939 variantSelectorId: "#ProductVariantSelect-" + i, 940 productFeaturedImage: ".product-single__photos-" + i + " .product-single__photo.active-photo", 941 productThumbSlick: ".productThumbSlide--" + i, 942 productPrices: ".product-single__price-" + i, 943 productPhotoImages: ".product-single__photo--" + i, 944 productPhotos: ".product-single__photos-" + i, 945 productThumbImages: ".product-single__thumbnail--" + i, 946 productThumbs: ".product-single__thumbnails-" + i, 947 saleClasses: "#ProductSection-" + i + "product-price__sale product-price__sale--single", 948 saleLabel: ".product-price__sale-label-" + i, 949 singleOptionSelector: ".single-option-selector-" + i 950 }, $("#ProductJson-" + i).html() && (this.productSingleObject = JSON.parse(document.getElementById("ProductJson-" + i).innerHTML), "#ProductSection-quickview-template" !== this.selectors.template && this._initBreakpoints(), this._stringOverrides(), this._initVariants(), this._initImageSwitch(), theme.Images.preload(this.productSingleObject.images, this.settings.imageSize), theme.Images.preload(this.productSingleObject.images, "110x110@2x")) 951 } 952 return e.prototype = _.assignIn({}, e.prototype, { 953 _stringOverrides: function() { 954 theme.productStrings = theme.productStrings || {}, $.extend(theme.strings, theme.productStrings) 955 }, 956 _initBreakpoints: function() { 957 $(this.selectors.productThumbImages).length >= 1 && ($(this.selectors.template).addClass("loading_thumb"), this._initThumbnailSlider()), $(this.selectors.productPhotoImages).length >= 1 && ($(this.selectors.template).addClass("loading_photo"), this._initPhotoSlider()) 958 }, 959 _initVariants: function() { 960 var e = { 961 $container: this.$container, 962 enableHistoryState: this.$container.data("enable-history-state") || !1, 963 singleOptionSelector: this.selectors.singleOptionSelector, 964 originalSelectorId: this.selectors.originalSelectorId, 965 product: this.productSingleObject 966 }; 967 0 == e.product.variants[0].requires_shipping && $(this.selectors.template + " .freeShipping").removeClass("hidden"), this.variants = new slate.Variants(e), this.$container.on("variantChange" + this.settings.namespace, this._updateAddToCart.bind(this)), this.$container.on("variantImageChange" + this.settings.namespace, this._updateImages.bind(this)), this.$container.on("variantPriceChange" + this.settings.namespace, this._updatePrice.bind(this)), this.$container.on("variantSKUChange" + this.settings.namespace, this._updateSKU.bind(this)) 968 }, 969 _initImageSwitch: function() { 970 if ($(this.selectors.productThumbImages).length) { 971 var e = this, 972 t = $(this.selectors.originalSelectorId), 973 i = this.selectors.variantSelectorId; 974 $(document).on("click", this.selectors.productThumbImages, function(a) { 975 a.preventDefault(); 976 var s = $(this), 977 o = "#" + $(this).parents("div.product-page").attr("id"); 978 if (void 0 !== s.attr("data-id") && "" !== s.attr("data-id") && "kiti" !== s.attr("title")) { 979 $(i + " span").text(s.attr("title")).animate({ 980 "font-size": "14px" 981 }, 400).animate({ 982 "font-size": "13px" 983 }, 500), goto = !1; 984 var n = s.attr("title").split(" / "); 985 $(o + " .fake_select li").removeClass("selected"), $(n).each(function(e, t) { 986 var i = $(o + ' option[value="' + t + '"]').val(), 987 a = $(o + ' option[value="' + t + '"]').parent(); 988 $(o + " .fake_select li._" + t).addClass("selected"), t != theme.strings.productTitle && ($(o + ' label[data-change-label="SingleOptionSelector-' + e + '"] .text').text(t), $(o + " .swatches-selected-name[data-change-label='SingleOptionSelector-" + e + "'] .name").html(t)), i != a.val() && a.val(i).change() 989 }); 990 var r = s.attr("data-id"); 991 if (t.val(r).change(), 1 == $(this).parents("div.product-page").data("enable-history-state")) { 992 var c = window.location.protocol + "//" + window.location.host + window.location.pathname + "?variant=" + r; 993 window.history.replaceState({ 994 path: c 995 }, "", c) 996 } 997 } 998 var l = s.attr("href");
999 e._setActiveThumbnail(l) 1000 }) 1001 } 1002 }, 1003 _setActiveThumbnail: function(e) { 1004 var t = "active-thumb"; 1005 void 0 === e && (e = $(this.selectors.productFeaturedImage).attr("href")); 1006 var i = $(this.selectors.productThumbImages + '[href="' + e + '"]'); 1007 $(this.selectors.productThumbImages).removeClass(t).parent().find(".placeholder").removeClass(t), i.addClass(t).parent().find(".placeholder").addClass(t); 1008 var a = $(this.selectors.productThumbs + " .slick-cloned").length / 2 || 0; 1009 slideIndex = i.parent().not(".slick-cloned").index() - a, 0 !== $(this.selectors.productPhotos + " .slick-list").length && $(this.selectors.productPhotos).slick("slickGoTo", slideIndex), $(this.selectors.productThumbImages).removeClass("active-thumb"), i.addClass("active-thumb") 1010 }, 1011 _switchImage: function(e, t) {}, 1012 _initThumbnailSlider: function() { 1013 var e = !1, 1014 t = "0px", 1015 i = 4; 1016 "true" === $(".productThumbSlide--" + this.settings.sectionId).attr("data-vertical") && (e = !0, i = 3, t = "0px"), 0 == e && $(".productThumbSlide--" + this.settings.sectionId + " .product-single__thumbnails-item").length <= 4 && $(".productThumbSlide--" + this.settings.sectionId).addClass("noCenterMode"); 1017 var a = { 1018 slidesToShow: i, 1019 infinite: !0, 1020 prevArrow: ".thumbnails-slider__prev--" + this.settings.sectionId, 1021 nextArrow: ".thumbnails-slider__next--" + this.settings.sectionId, 1022 vertical: e, 1023 verticalSwiping: e, 1024 centerMode: !1, 1025 centerPadding: t, 1026 adaptiveHeight: !0, 1027 initialSlide: initialSlide, 1028 asNavFor: this.selectors.productPhotos, 1029 responsive: [{ 1030 breakpoint: 1024, 1031 settings: { 1032 slidesToShow: 3, 1033 vertical: !1, 1034 verticalSwiping: !1 1035 } 1036 }] 1037 }; 1038 !0 === $(this.selectors.template).data("use-thumb") && ($(this.selectors.productThumbs).slick(a), this.settings.sliderActive = !0, $(this.selectors.template).removeClass("loading_thumb")) 1039 }, 1040 _destroyThumbnailSlider: function() { 1041 $(this.selectors.productThumbs).slick("unslick"), this.settings.sliderActive = !1 1042 }, 1043 _initPhotoSlider: function() { 1044 if (!0 === $(this.selectors.template).data("use-thumb")) var e = { 1045 dots: !1, 1046 speed: 300, 1047 slidesToShow: 1, 1048 slidesToScroll: 1, 1049 arrows: !1, 1050 adaptiveHeight: !0, 1051 fade: !0, 1052 initialSlide: initialSlide, 1053 cssEase: "linear", 1054 asNavFor: this.selectors.productThumbs 1055 }; 1056 else e = { 1057 dots: !0, 1058 speed: 300, 1059 slidesToShow: 1, 1060 slidesToScroll: 1, 1061 arrows: !0, 1062 adaptiveHeight: !0, 1063 fade: !0, 1064 initialSlide: initialSlide, 1065 cssEase: "linear" 1066 }; 1067 $(this.selectors.productPhotos).slick(e), this.settings.sliderActive = !0, $(this.selectors.template).removeClass("loading_photo"), $(this.selectors.template + " .images").removeAttr("style") 1068 }, 1069 _destroyPhotoSlider: function() { 1070 $(this.selectors.productPhotos).slick("unslick"), this.settings.sliderActive = !1 1071 }, 1072 _updateAddToCart: function(e) { 1073 var t = e.variant, 1074 a = this.selectors.template, 1075 s = this.selectors.template.split("#ProductSection-")[1]; 1076 if (void 0 !== $(a + " #SingleOptionSelector-0--" + s).val() && ($(a + " #callBackVariant").attr("class", "_" + $(a + " #SingleOptionSelector-0--" + this.settings.sectionId + " option:selected").attr("data-value")), void 0 !== $(a + " #SingleOptionSelector-2--" + s).val() && $(a + " #callBackVariant").addClass("_" + $(a + " #SingleOptionSelector-2--" + this.settings.sectionId + " option:selected").attr("data-value")), void 0 !== $(a + " #SingleOptionSelector-1--" + s).val() && $(a + " #callBackVariant").addClass("_" + $(a + " #SingleOptionSelector-1--" + this.settings.sectionId + " option:selected").attr("data-value"))), t) { 1077 if ("undefined" != typeof use_gallery && 1 == use_gallery) { 1078 var o = ""; 1079 for (i = 0; i < galleryJson.variants.length; i++) 1080 if (galleryJson.variants[i].title == o
1080ptionValue) { 1081 if ("" == o) { 1082 var n = $(a + " .images").width(), 1083 r = $(a + " .product-images").height(); 1084 $(a + " .images").css({ 1085 width: n, 1086 height: r, 1087 display: "block", 1088 overflow: "hidden" 1089 }) 1090 } 1091 o = galleryJson.variants[i], this._updateGallery(o) 1092 } 1093 } 1094 $(this.selectors.variantSelectorId + " span").text(t.title).animate({ 1095 "font-size": "14px" 1096 }, 400).animate({ 1097 "font-size": "13px" 1098 }, 500), $(this.selectors.productPrices).removeClass("visibility-hidden").attr("aria-hidden", "true"), t.available ? ($(a).find(".kt_progress_bar").removeClass("hidden"), $(a).find(".availalbe.text-primary").text(theme.strings.inStock), $(a).find(".product-form__item--quantity").removeClass("hidden"), t.inventory_quantity > 0 && null !== t.inventory_management ? ($(a).find(".meta .show-iq span").text(t.inventory_quantity).removeClass("hidden"), $(a).find(".meta .show-iq_").removeClass("min")) : ($(a).find(".meta .show-iq").addClass("hidden"), $(a).find(".meta .show-iq_").addClass("min"))) : ($(a).find(".kt_progress_bar").addClass("hidden"), $(a).find(".availalbe.text-primary").text(theme.strings.outOfStock), $(a).find(".product-form__item--quantity,.meta .show-iq").addClass("hidden"), $(a).find(".meta .show-iq_").addClass("min")), t.available ? ($(this.selectors.addToCart).prop("disabled", !1), $(this.selectors.addToCartText).text(theme.strings.addToCart)) : ($(this.selectors.addToCart).prop("disabled", !0), $(this.selectors.addToCartText).text(theme.strings.soldOut)) 1099 } else if (1 == goto) { 1100 var c = first_available.split(" / "), 1101 l = first_available_title.split(" / "), 1102 d = $(a + " #SingleOptionSelector-0--" + s + " option:selected").attr("data-value"); 1103 $(a + " .fake_select li").removeClass("selected"), $(c).each(function(e, t) { 1104 if (0 === e && t !== d) $(a + " .fake_select li._" + d).addClass("selected"); 1105 else if (2 === e && t !== d) $(a + ' li[data-change-option="SingleOptionSelector-2--' + s + '"]').each(function(e, t) { 1106 if ($(this).is(":visible")) { 1107 $(this).addClass("selected"); 1108 var i = $(this).attr("data-value"), 1109 o = $(a + " #SingleOptionSelector-2--" + s); 1110 return i != o.val() && (o.val(i).change(), $(a + ' label[data-change-label="SingleOptionSelector-2--' + s + '"] .text').text($(this).attr("title"))), !1 1111 } 1112 }); 1113 else { 1114 var i = $(a + " option[value='" + l[e] + "']").val(), 1115 o = $(a + " option[value='" + l[e] + "']").parent(); 1116 $(a + " .fake_select li._" + t).addClass("selected"), $(a + ' label[data-change-label="SingleOptionSelector-' + e + "--" + s + '"] .text').text(l[e]), i != o.val() && o.val(i).change() 1117 } 1118 }) 1119 } 1120 }, 1121 _updateImages: function(e) { 1122 var t = e.variant; 1123 if (t.featured_image) i = t.featured_image.src; 1124 else var i = $(this.selectors.template + " .color_sw.selected .swatch").css("background-image").replace("_small_crop_center", "").replace(/(url\(|\)|'|")/gi, ""); 1125 theme.Images.getSizedImageUrl(i, this.settings.imageSize); 1126 if (!0 === $(this.selectors.template).data("use-thumb")) { 1127 if (void 0 != i && 1 == goto) { 1128 var a = $(this.selectors.productThumbs + " " + this.selectors.productThumbImages + '[href="' + i.replace("https:", "") + '"]'), 1129 s = $(this.selectors.productThumbs + " .slick-cloned").length / 2; 1130 slideIndex = a.parent().not(".slick-cloned").index() - s, 0 !== $(this.selectors.productPhotos + " .slick-list").length && $(this.selectors.productPhotos).slick("slickGoTo", slideIndex), 0 !== $(this.selectors.productThumbs + " .slick-list").length ? ($(this.selectors.productThumbs
1130).slick("slickGoTo", slideIndex), $(this.selectors.productThumbImages).removeClass("active-thumb"), a.addClass("active-thumb")) : ($(this.selectors.productThumbImages).removeClass("active-thumb"), a.addClass("active-thumb")) 1131 } 1132 } else if (void 0 != i && 1 == goto) { 1133 var o = $(this.selectors.productPhotos + " " + this.selectors.productPhotoImages + '[href="' + i.replace("https:", "") + '"]'); 1134 slideIndex = o.parent().not(".slick-cloned").index() >= 0 ? o.parent().not(".slick-cloned").index() : 0, 0 !== $(this.selectors.productPhotos + " .slick-list").length && $(this.selectors.productPhotos).slick("slickGoTo", slideIndex) 1135 } 1136 }, 1137 _updateGallery: function(e) { 1138 if ($(this.selectors.template + " .loadingChangeImage").css("display", "block"), !0 === $(this.selectors.template).data("use-thumb")) var t = theme.Images.imageSize($(this.selectors.productThumbs + " .product-single__thumbnail:first").data("src")); 1139 var i = theme.Images.imageSize($(this.selectors.productPhotos + " .product-single__photo:first").attr("href")), 1140 a = theme.Images.imageSize($(this.selectors.productPhotos + " .product-single__photo-image:first").attr("src")), 1141 s = 0, 1142 o = 0, 1143 n = "", 1144 r = "", 1145 c = this.selectors.template.split("#ProductSection-")[1]; 1146 if ($(this.productSingleObject.images).each(function(t, s) { 1147 e.map_position[0] <= t && t < e.map_position[1] && (n += '<li class="grid__item product-single__photos-item" data-src="' + theme.Images.getSizedImageUrl(s, i) + '" data-size="' + e.widths[o] + "x" + e.heights[o] + '">', n += '<a href="' + theme.Images.getSizedImageUrl(s, i) + '"', n += 'class="gallery-image product-single__photo product-single__photo--' + c + (0 == o ? " active-photo" : "") + '"', n += 'data-id="' + e.id + '" title="' + e.variant_titles[o] + '">', n += '<img class="product-single__photo-image img-responsive" width="' + e.widths[o] + '" height="' + e.heights[o] + '" src="' + theme.Images.getSizedImageUrl(s, a) + '" alt="' + e.variant_titles[o] + '">', n += "</a>", n += "</li>", o++) 1148 }), !0 === $(this.selectors.template).data("use-thumb")) { 1149 $(this.productSingleObject.images).each(function(i, a) { 1150 e.map_position[0] <= i && i < e.map_position[1] && (r += '<li class="grid__item product-single__thumbnails-item">', r += '<a href="' + a + '"', r += 'data-src="' + theme.Images.getSizedImageUrl(a, t) + '"', r += 'data-index="' + s + '"', r += 'class="text-link product-single__thumbnail product-single__thumbnail--' + c + (0 == s ? " active-thumb" : "") + '"', r += 'title="' + e.variant_titles[s] + '"', r += 'data-id="' + e.id + '">', r += '<img class="product-single__thumbnail-image img-responsive" src="' + theme.Images.getSizedImageUrl(a, "110x110@2x") + '" alt="' + e.variant_titles[s] + '">', r += "</a>", r += "</li>", s++) 1151 }); 1152 var l = $(r).find("img") 1153 } 1154 var d = $(n).find("img"), 1155 h = 0, 1156 u = 0, 1157 m = "#ProductSection-" + c; 1158 s > 1 ? ($(m + " .main-image").removeAttr("style"), $(m + " .thumbnails-wrapper").removeAttr("style")) : ($(m + " .main-image").css({ 1159 padding: "0", 1160 width: "100%" 1161 }), $(m + " .thumbnails-wrapper").css("display", "none")), "#ProductSection-product-template" === this.selectors.template ? (!0 === $(this.selectors.template).data("use-thumb") && l.imagesLoaded().progress(function() { 1162 1 == (h += 1) && (0 !== $(".product-single__thumbnails-" + c + ".slick-initialized").length && destroyThumbnailSlider(c), $(".product-single__thumbnails-" + c).html(r)) 1163 }).done(function() { 1164 initThumbnailSlider() 1165 }), d.imagesLoaded().progress(function() { 1166 1 == (u += 1) && (0 !== $(".product-single__photos-" + c + ".slick-initialized").length && destroyPhotoSlider(c), $(".product-single__photos-" + c).html(n)) 1167 }).done(function() { 1168 initPhotoSlider(), sliderActive = !1, $(m + " .loadingChangeImage").css("display", "none") 1169 })) : (!0 === $(this.selectors.template).data("use-thumb") && l.imagesLoaded().progress(function() { 1170 1 == (h += 1) && (0 !== $(".product-single__thumbnails-" + c + ".slick-initialized").length && destroyThumbnailSlider(c), $(".product-single__thumbnails-" + c).html(r)) 1171 }).done(function() { 1172 initThumbnailSlider("qv") 1173 }), d.imagesLoaded().progress(function() { 1174 1 == (u += 1) && (0 !== $(".product-single__photos-" + c + ".slick-initialized").length && destroyPhotoSlider(c), $(".product-single__photos-" + c).html(n)) 1175 }).done(function() { 1176 initPhotoSlider("qv"), sliderActive = !1, $(m + " .loadingChangeImage").css("display", "none") 1177 })), "true" === $(this.selectors.template).data("use-thumb") && this._setActiveThumbn
1177ail() 1178 }, 1179 _updatePrice: function(e) { 1180 var t = e.variant, 1181 i = "#" + $(this.selectors.productPhotoImages).parents("div.product-page").attr("id"); 1182 $(this.selectors.originalPrice).html(theme.Currency.formatMoney(t.price, theme.moneyFormat)), $(this.selectors.originalPrice.replace("#", ".")).html(theme.Currency.formatMoney(t.price, theme.moneyFormat)), t.compare_at_price > t.price ? ($(this.selectors.comparePrice).html(theme.Currency.formatMoney(t.compare_at_price, theme.moneyFormat)).removeClass("hide"), $(this.selectors.comparePrice.replace("#", ".")).html(theme.Currency.formatMoney(t.compare_at_price, theme.moneyFormat)).removeClass("hide"), $(this.selectors.originalPriceWrapper).addClass(this.selectors.saleClasses), $(this.selectors.saleLabel).removeClass("hide")) : ($(this.selectors.comparePrice).addClass("hide"), $(this.selectors.comparePrice.replace("#", ".")).addClass("hide"), $(this.selectors.saleLabel).addClass("hide"), $(this.selectors.originalPriceWrapper).removeClass(this.selectors.saleClasses)), null !== cookieCurrency && cookieCurrency !== shopCurrency && Currency.convertAll(shopCurrency, cookieCurrency, i + " .entry-summary span.money") 1183 }, 1184 _updateSKU: function(e) { 1185 var t = e.variant; 1186 $(this.selectors.SKU).html(t.sku) 1187 }, 1188 onUnload: function() { 1189 this.$container.off(this.settings.namespace) 1190 } 1191 }), e 1192 }(), theme.Quotes = function() { 1193 var e = { 1194 mediaQuerySmall: "screen and (max-width: 749px)", 1195 mediaQueryMediumUp: "screen and (min-width: 750px)", 1196 slideCount: 0 1197 }, 1198 t = { 1199 accessibility: !0, 1200 arrows: !1, 1201 dots: !0, 1202 autoplay: !1, 1203 touchThreshold: 20, 1204 slidesToShow: 3, 1205 slidesToScroll: 3 1206 }; 1207 1208 function i(i) { 1209 var a = (this.$container = $(i)).attr("data-section-id"), 1210 s = this.wrapper = ".quotes-wrapper", 1211 o = this.slider = "#Quotes-" + a, 1212 n = $(o, s), 1213 r = !1, 1214 c = $.extend({}, t, { 1215 slidesToShow: 1, 1216 slidesToScroll: 1, 1217 adaptiveHeight: !0 1218 }); 1219 1220 function l(e, t) { 1221 r && (e.slick("unslick"), r = !1), e.slick(t), r = !0 1222 } 1223 e.slideCount = n.data("count"), e.slideCount < t.slidesToShow && (t.slidesToShow = e.slideCount, t.slidesToScroll = e.slideCount), n.on("init", this.a11y.bind(this)), enquire.register(e.mediaQuerySmall, { 1224 match: function() { 1225 l(n, c) 1226 } 1227 }), enquire.register(e.mediaQueryMediumUp, { 1228 match: function() { 1229 l(n, t) 1230 } 1231 }) 1232 } 1233 return i.prototype = _.assignIn({}, i.prototype, { 1234 onUnload: function() { 1235 enquire.unregister(e.mediaQuerySmall), enquire.unregister(e.mediaQueryMediumUp), $(this.slider, this.wrapper).slick("unslick") 1236 }, 1237 onBlockSelect: function(e) { 1238 var t = $(".quotes-slide--" + e.detail.blockId + ":not(.slick-cloned)").data("slick-index"); 1239 $(this.slider, this.wrapper).slick("slickGoTo", t) 1240 }, 1241 a11y: function(e, t) { 1242 var i = t.$list, 1243 a = $(this.wrapper, this.$container); 1244 i.removeAttr("aria-live"), a.on("focusin", function(e) { 1245 a.has(e.target).length && i.attr("aria-live", "polite") 1246 }), a.on("focusout", function(e) { 1247 a.has(e.target).length && i.removeAttr("aria-live") 1248 }) 1249 } 1250 }), i 1251 }(), theme.slideshows = {}, theme.SlideshowSection = function() { 1252 return function(e) { 1253 var t = (this.$container = $(e)).attr("data-section-id"), 1254 i = this.slideshow = "#Slideshow-" + t; 1255 $(".slideshow__video", i).each(function() { 1256 var e = $(this); 1257 theme.SlideshowVideo.init(e), theme.SlideshowVideo.loadVideo(e.attr("id")) 1258 }), theme.slideshows[i] = new theme.Slideshow(i) 1259 } 1260 }(), theme.SlideshowSection.prototype = _.assignIn({}, theme.SlideshowSection.prototype, { 1261 onUnload: function() { 1262 delete theme.slideshows[this.slideshow] 1263 }, 1264 onBlockSelect: function(e) { 1265 var t = $(this.slideshow), 1266 i = $(".slideshow__slide--" + e.detail.blockId + ":not(.slick-cloned)").data("slick-index"); 1267 t.slick("slickGoTo", i).slick("slickPause") 1268 }, 1269 onBlockDeselect: function() { 1270 $(this.slideshow).slick("slickPlay") 1271 } 1272 }), window.theme = theme || {}, theme.Carousel = function() { 1273 return { 1274 init: function(e) { 1275 var t = (this.$container = $(e)).attr("data-section-id"); 1276 this.carousel = "#Carousel-" + t, $("#shopify-section-" + t + " .owl-carousel").each(function() { 1277 var e = $(this).data(), 1278 t = $(this).data("nav-text"), 1279 i = $(this).data("animateout"), 1280 a = $(this).data("animatein"); 1281 void 0 !== i && (e.animateOut = i), void 0 !== a && (e.animateIn = a), void 0 !== t && (e.navText = ["prev", "next"]), e.lazyLoad = !0; 1282 var s = $(this); 1283 s.hasClass("testimonial-owl") && (e.navText = ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>']), $(".kt_home_slide .item__").css({ 1284 float: "none", 1285 width: "auto" 1286 }), s.on("initialized.owl.carousel", function(e) { 1287 $(".carouselLoading").removeClass("carouselLoading") 1288 }), s.owlCarousel(e), (s.hasClass("testimonial-owl") || s.hasClass("kt_home_slide")) && s.trigger("next.owl.carousel"), s.on("changed.owl.carousel", function(e) { 1289 if (s.hasClass("testimonial-owl")) { 1290 s.find(".owl-item.active").removeClass("item-center"); 1291 var t = s.find(".owl-item.active").first().next().find(".inner").html(), 1292 i = s.closest(".testimonials-owl-3").find(".testimonial-info"),
1293 a = i.data("animated"); 1294 i.html(t).addClass("animated " + a).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", function() { 1295 $(this).removeClass("animated " + a) 1296 }), setTimeout(function() { 1297 s.find(".owl-item.active").first().next().addClass("item-center") 1298 }, 100) 1299 } 1300 }) 1301 }) 1302 }, 1303 initCarouselMobile: function() { 1304 var e = jQuery("body").innerWidth(); 1305 (e += theme.getScrollbarWidth()) < 768 ? $(".owl-carousel-mobile").each(function() { 1306 $(this).addClass("owl-carousel"); 1307 var e = $(this).data(), 1308 t = $(this).data("animateout"), 1309 i = $(this).data("animatein"); 1310 void 0 !== t && (e.animateOut = t), void 0 !== i && (e.animateIn = i), $(this).owlCarousel(e) 1311 }) : $(".owl-carousel-mobile").each(function() { 1312 var e = $(this); 1313 e.trigger("destroy.owl.carousel").removeClass("owl-carousel owl-loaded"), e.find(".owl-stage-outer").children().unwrap() 1314 }) 1315 } 1316 } 1317 }(), window.theme = window.theme || {}, theme.CarouselSection = function() { 1318 return function(e) { 1319 this.$container = $(e), theme.Carousel.init(e), theme.Carousel.initCarouselMobile(e) 1320 } 1321 }(), window.theme = theme || {}, theme.TabOwlFadeEffect = function() { 1322 var e = 0; 1323 $('.tab-owl-fade-effect .nav-tab>li.active a[data-toggle="tab"]').each(function() { 1324 var t = $(this); 1325 setTimeout(function() { 1326 t.trigger("click") 1327 }, e), e += 1e4 1328 }), $(document).on("click", '.tab-owl-fade-effect a[data-toggle="tab"]', function() { 1329 var e = $(this).attr("href"), 1330 t = $(this).data("animated"); 1331 t = void 0 == t || "" == t ? "fadeInUp" : t, $(e).find(".owl-item.active").each(function(e) { 1332 var i = $(this), 1333 a = i.attr("style"); 1334 a = void 0 == a ? "" : a; 1335 var s = 400 * e; 1336 i.attr("style", a + ";-webkit-animation-delay:" + s + "ms;-moz-animation-delay:" + s + "ms;-o-animation-delay:" + s + "ms;animation-delay:" + s + "ms;").addClass(t + " animated").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", function() { 1337 i.removeClass(t + " animated"), i.attr("style", a) 1338 }) 1339 }) 1340 }) 1341 }, window.theme = theme || {}, theme.TabProductFadeEffect = function() { 1342 var e = 0; 1343 $('.tab-product-fade-effect .nav-tab>li.active a[data-toggle="tab"]').each(function() { 1344 var t = $(this); 1345 setTimeout(function() { 1346 t.trigger("click") 1347 }, e), e += 1e4 1348 }), $(document).on("click", '.tab-product-fade-effect a[data-toggle="tab"]', function() { 1349 var e = $(this).attr("href"), 1350 t = $(this).data("animated"); 1351 t = void 0 == t || "" == t ? "fadeInUp" : t, $(e).find(".grid-item").each(function(e) { 1352 var i = $(this), 1353 a = i.attr("style"); 1354 a = void 0 == a ? "" : a; 1355 var s = 400 * e; 1356 i.attr("style", a + ";-webkit-animation-delay:" + s + "ms;-moz-animation-delay:" + s + "ms;-o-animation-delay:" + s + "ms;animation-delay:" + s + "ms;").addClass(t + " animated").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", function() { 1357 i.removeClass(t + " animated"), i.attr("style", a) 1358 }) 1359 }) 1360 }) 1361 }, window.theme = theme || {}, theme.ProductsMasorySection = function() { 1362 return function(e) { 1363 var t = (this.$container = $(e)).attr("data-section-id"), 1364 i = this.masonry = "#Masory-" + t, 1365 a = $(i + ".ly__ms_items").isotope({ 1366 itemSelector: ".grid-item", 1367 masonry: { 1368 horizontalOrder: !0, 1369 percentPosition: !0 1370 }, 1371 transitionDuration: ".8s" 1372 }); 1373 a.imagesLoaded().progress(function() { 1374 a.isotope("layout") 1375 }) 1376 } 1377 }(), window.theme = theme || {}, theme.BannerMasorySection = function() { 1378 return { 1379 MasorySection: function(e) { 1380 var t = (this.$container = $(e)).attr("data-section-id"), 1381 i = $("#shopify-section-" + t + " .banner_masonry").isotope({ 1382 itemSelector: ".banner--grid-item", 1383 layoutMode: "packery", 1384 masonry: { 1385 horizontalOrder: !0, 1386 percentPosition: !0 1387 }, 1388 transitionDuration: ".8s" 1389 }); 1390 i.imagesLoaded().progress(function() { 1391 i.isotope("layout") 1392 }) 1393 }, 1394 carouselBanner: function(e) { 1395 var t = (this.$container = $(e)).attr("data-section-id"); 1396 $("#shopify-section-" + t + " .owl-carousel").each(function() { 1397 var e = $(this).data(), 1398 t = $(this).data("nav-text"), 1399 i = $(this).data("animateout"), 1400 a = $(this).data("animatein"); 1401 void 0 !== i && (e.animateOut = i), void 0 !== a && (e.animateIn = a), void 0 !== t && (e.navText = ["prev", "next"]), e.lazyLoad = !0; 1402 var s = $(this); 1403 s.on("initialized.owl.carousel", function(e) { 1404 $(".carouselLoading").removeClass("carouselLoading") 1405 }), s.owlCarousel(e) 1406 }) 1407 } 1408 } 1409 }(), window.theme = theme || {}, theme.Instagram = function() { 1410 return function(e) { 1411 var t = (this.$container = $(e)).attr("data-section-id"); 1412 $("#shopify-section-" + t + " .instagramWrapper").each(function() { 1413 var e = $(this), 1414 t = e.data("username"), 1415 i = e.data("limit"); 1416 "" != t && $.ajax({ 1417 url: "https://api.teathemes.net/instagram?username=" + t, 1418 dataType: "json", 1419 type: "GET", 1420 success: function(a) { 1421 var s = "", 1422 o = a.entry_data.ProfilePage[0].user.media.nodes; 1423 $.each(o, function(e, a) { 1424 if (e >= i) return 0; 1425 var o = a.thumbnail_resources[0].src, 1426 n = a.thumbnail_resources[1].src, 1427 r = a.thumbnail_resources[2].src, 1428 c = a.thumbnail_resources[3].src, 1429 l = a.thumbnail_resources[4].src; 1430 s += '<div class="item pr padding-0 col-6 col-sm-4 col-md-4 col-lg-4 col-xl-4"><a class="db pr oh banner-opacity" href="//instagram.com/p/' + a.code + '"><img src="' + o + '" data-src="' + o + '" data-sizes="auto" data-srcset="' + o + " 150w," + n + " 240w," + r + " 320w," + c + " 480w," + l + ' 640w" class="w__100 lazyload img-responsive" alt="' + t + '"><div class="info pa text-center"><span class="pr cw mgr10"><i class="fa fa-heart-o mr__5"></i>' + a.likes.count + '</span><span class="pr cw"><i class="fa fa-comments-o mr__5"></i>' + a.comments.count + "</span></div></a></div>" 1431 }), e.html(s) 1432 }, 1433 error: function(e) { 1434 console.log("ajax error") 1435 }, 1436 complete: function() {} 1437 }) 1438 }) 1439 } 1440 }(), theme.variantImage = function() { 1441 $(".product-list-color-swatch .swatch-on-grid").on("mouseenter", function(e) { 1442 e.preventDefault(); 1443 var t = $(this).find(".swatch").css("background-image").replace(/(url\(|\)|'|")/gi, ""); 1444 if ("none" != t) { 1445 $(this).parents(".item-wrap").find(".item-thumb").addClass("loading_vaimg"), $(this).parents(".item-wrap").find(".item-thumb img").attr({ 1446 src: t.replace("_icon", "_480x") 1447 }), $(this).parents(".item-wrap").find(".item-thumb picture source:nth-child(1)").attr("srcset", t.replace("_icon", "_510x")), $(this).parents(".item-wrap").find(".item-thumb picture source:nth-child(2)").attr("srcset", t.replace("_icon", "_476x")), $(this).parents(".item-wrap").find(".item-thumb picture source:nth-child(3)").attr("srcset", t.replace("_icon", "_256x")), $(this).parents(".item-wrap").find(".item-thumb picture source:nth-child(4)").attr("srcset", t.replace("_icon", "_570x")), $(this).parents(".item-wrap").find(".item-thumb picture source:nth-child(5)").attr("srcset", t.replace("_icon", "_384x")), $(this).parents(".item-wrap").find(".item-thumb picture source:nth-child(6)").attr("srcset", t.replace("_icon", "_480x")); 1448 var i = $(this).parents(".item-wrap").find("img"), 1449 a = 0; 1450 i.on("load", function() { 1451 (a += 1) == i.length && $(this).parents(".item-wrap").find(".item-thumb").removeClass("loading_vaimg") 1452 }), setTimeout(function() { 1453 $(".item-thumb").removeClass("loading_vaimg") 1454 }, 1200) 1455 } 1456 }) 1457 }, theme.menuBgChange = function() { 1458 $(document).on("mouseenter", "a.bgChange", function(e) { 1459 e.preventDefault(); 1460 var t = $(this).attr("data-hover-image"), 1461 i = $(this).attr("data-hover-banner"); 1462 void 0 === t && void 0 === i || ($(this).parents(".sub-menu.megamenu").addClass("hiddenBg"), 0 == $(this).parents(".sub-menu.megamenu").find(".imgByCollection").length ? void 0 !== t ? $(this).parents(".sub-menu.megamenu").append('<img class="imgByCollection" src="' + t + '" >') : ($(".imgByCollection").remove(), $(this).parents(".sub-menu.megamenu").append(i)) : ($(".sub-menu.megamenu a.img-cate").remove(), void 0 !== t ? ($(".imgByCollection").show(), $(this).parents(".sub-menu.megamenu").find(".imgByCollection").attr("src", t)) : ($(".imgByCollection").hide(), $(this).parents(".sub-menu.megamenu").append(i)))) 1463 }).on("mouseleave", "a.bgChange", function(e) { 1464 $(this).parents(".sub-menu.megamenu").removeClass("hiddenBg"), $(".imgByCollection").hide(), $(".sub-menu.megamenu a.img-cate").hide() 1465 }) 1466 }, theme.checkProductGrid_Width = function() { 1467 $(".quickshopForm").each(function() { 1468 var e = $(this).parents(".product-item").find(".product-thumb").height(); 1469 $(this).parents(".product-item").addClass("normalQuickshop"), $(this).css("max-height", e) 1470 }), $("li.grid-item .product-item").each(function() { 1471 $(this).width() < 230 ? $(this).addClass("smallCard").removeClass("normalCard") : $(this).addClass("normalCard").removeClass("smallCard") 1472 }) 1473 }, theme.Quantity = function() { 1474 $(".quantity-inner").each(function() { 1475 if (0 == $(this).hasClass("checked")) { 1476 var e = $(this), 1477 t = e.find('input[type="number"]'), 1478 i = e.find(".quantity-up"), 1479 a = e.find(".quantity-down"), 1480 s = t.attr("min"), 1481 o = t.attr("max"); 1482 i.click(function() { 1483 var i = parseFloat(t.val()); 1484 if (i >= o) var a = i; 1485 else a = i + 1; 1486 e.find("input").val(a), e.find("input").trigger("change") 1487 }), a.click(function() { 1488 var i = parseFloat(t.val()); 1489 if (i <= s) var a = i; 1490 else a = i - 1; 1491 e.find("input").val(a), e.find("input").trigger("change") 1492 }), e.addClass("checked") 1493 } 1494 }) 1495 }, $(document).ready(function() { 1496 var e = new theme.Sections; 1497 e.register("cart-template", theme.Cart), e.register("product", theme.Product), e.register("collection-template", theme.Filters), e.register("header-section", theme.HeaderSection), e.register("map", theme.Maps), e.register("slideshow-section", theme.SlideshowSection), e.register("carousel-section", theme.CarouselSection), e.register("instagram-section", theme.Instagram), e.register("bt_banner_group-section", theme.BannerMasorySection.carouselBanner), e.register("quotes", theme.Quotes), theme.variantImage(), theme.menuBgChange(), theme.TabOwlFadeEffect(), theme.TabProductFadeEffect(), theme.Quantity() 1498 }), $(window).load(function() { 1499 theme.MenuReposive.clone_main_menu(), theme.MenuReposive.clone_header_ontop(), theme.MenuReposive.positionFootersidebar(), theme.MenuReposive.js_height_full(), theme.MenuReposive.js_width_full(), theme.MenuReposive.heightheader_categoy_menu(), theme.DropdownReposive.init(".kiti--DropWindow", ".kiti--DropItem", ".kiti--DropInner"), theme.DropdownReposive.init("#ProductSection-product-template .fake_select>ul", ".color_sw", ".title") 1500 }), $(window).on("resize", function() { 1501 $("#header-ontop .ResizedNavMegaScroll").length > 0 && $("#header-ontop .ResizedNavMegaScroll").removeClass("#header-ontop ResizedNavMegaScroll"), theme.Carousel.initCarouselMobile(), theme.ResizeNavMega.init(), theme.MenuReposive.clone_header_ontop(), theme.MenuReposive.positionFootersidebar(), theme.MenuReposive.js_height_full(), theme.MenuReposive.js_width_full(), theme.MenuReposive.heightheader_categoy_menu(), theme.DropdownReposive.init(".kiti--DropWindow", ".kiti--DropItem", ".kiti--DropInner"), theme.DropdownReposive.init("#ProductSection-product-template .fake_select>ul", ".color_sw", ".title"), theme.checkProductGrid_Width() 1502 }), $(window).scroll(function() { 1503 theme.StickMenu.init() 1504 }), document.addEventListener("DOMContentLoaded", function(e) { 1505 theme.checkProductGrid_Width(); 1506 var t = new theme.Sections; 1507 t.register("masory-section", theme.ProductsMasorySection), t.register("bt_banner_masonry", theme.BannerMasorySection.MasorySection) 1508 }), theme.init = function() { 1509 theme.customerTemplates.init(), slate.rte.wrapTable(), slate.rte.iframeReset(), slate.a11y.pageLinkFocus($(window.location.hash)), $(".in-page-link").on("click", function(e) { 1510 slate.a11y.pageLinkFocus($(e.currentTarget.hash)) 1511 }), $('a[href="#"]').on("click", function(e) { 1512 e.preventDefault() 1513 }), $(document).on("click", ".box-search.show-icon .icon,.box-search.show-icon .close-box", function() { 1514 $(this).closest(".box-search").find(".inner").toggle(600), $(this).closest(".box-search").toggleClass("open") 1515 }), $(document).on("click", ".mobile-navigation", function() { 1516 $("#box-mobile-menu").addClass("open") 1517 }), $(document).on("click", "#box-mobile-menu .close-menu", function() { 1518 $("#box-mobile-menu").removeClass("open") 1519 }), $("#box-mobile-menu").length > 0 && $("#box-mobile-menu").mCustomScrollbar(), !0 === theme.MenuReposive.is_mobile() ? ($(document).on("click", ".box-settings .icon", function() { 1520 $(this).closest(".box-settings").toggleClass("open") 1521 }), $(document).on("click", ".mini-cart .icon__count", function() { 1522 $(this).closest(".mini-cart").toggleClass("open") 1523 })) : $(document).on("mousemove", ".mini-cart,.b
1523ox-settings", function() { 1524 $(this).addClass("open") 1525 }).on("mouseout", ".mini-cart,.box-settings", function() { 1526 $(this).removeClass("open") 1527 }) 1528 }, $(theme.init);
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.