1var APP = APP || {}; 2(function (e) { 3 'use strict'; 4 5 APP.Others = { 6 init: function () { 7 this.canvasCart(), this.reInitTooltip(); 8 }, 9 canvasCart: function () { 10 e(".shop-down").on("click", function (s) { 11 s.preventDefault(); 12 var o = e(this).parent(".input-group"), 13 n = o.find("input:not([disabled])"), 14 t = parseInt(n.val()); 15 t > 0 && (t -= 1, n.val(t)); 16 }), e(".shop-up").on("click", function (s) { 17 s.preventDefault(); 18 var o = e(this).parent(".input-group"), 19 n = o.find("input:not([disabled])"), 20 t = n.val(); 21 t !== '' ? (t = parseInt(t), t += 1, n.val(t)) : n.val(1); 22 }); 23 }, 24 reInitTooltip: function () { 25 window.onload = t => { 26 e('[data-bs-toggle="tooltip"]').tooltip(); 27 }; 28 } 29 }, e(document).ready(function () { 30 APP.Others.init(); 31 }); 32})(jQuery), APP = APP || {}, function (e) { 33 'use strict'; 34 35 APP.animation = { 36 delay: 100, 37 itemQueue: [], 38 queueTimer: null, 39 $wrapper: null, 40 init: function () { 41 var t = this; 42 t.$wrapper = e("body"), t.itemQueue = [], t.queueTimer = null, typeof delay != "undefined" && (t.delay = delay), t.itemQueue.animated_0 = [], e("body").find("#content").find(">div,>section").each(function (n) { 43 e(this).attr("data-animated-id", n + 1), t.itemQueue["animated_" + (n + 1)] = []; 44 }), setTimeout(function () { 45 t.registerAnimation(); 46 }, 200); 47 }, 48 registerAnimation: function () { 49 var t = this; 50 e("[data-animate]:not(.animate__animated)", t.$wrapper).waypoint(function () { 51 var s, 52 o, 53 i = this.element ? this.element : this, 54 n = e(i); 55 n.is(":visible") ? (s = n.closest("[data-animated-id]"), o = "0", s.length && (o = s.data("animated-id")), t.itemQueue["animated_" + o].push(i), t.processItemQueue()) : n.addClass("animate__" + n.data("animate")).addClass("animate__animated"); 56 }, { 57 offset: "100%", 58 triggerOnce: !0 59 }); 60 }, 61 processItemQueue: function () { 62 var t = this; 63 if (t.queueTimer) return; 64 t.queueTimer = window.setInterval(function () { 65 var n, 66 s = !1; 67 68 for (let e in t.itemQueue) if (t.itemQueue[e].length) { 69 s = !0; 70 break; 71 } 72 73 if (s) { 74 for (let s in t.itemQueue) n = e(t.itemQueue[s].shift()), n.addClass("animate__" + n.data("animate")).addClass("animate__animated"); 75 76 t.processItemQueue(); 77 } else window.clearInterval(t.queueTimer), t.queueTimer = null; 78 }, t.delay); 79 } 80 }, e(document).ready(function () { 81 APP.animation.init(); 82 }); 83}(jQuery), APP = APP || {}, function (e) { 84 'use strict'; 85 86 APP.backToTop = { 87 init: function () { 88 this.backToTop(); 89 }, 90 backToTop: function () { 91 var t = e(".gtf-back-to-top"), 92 n = e(window); 93 t.length > 0 && (t.on("click", function (t) { 94 t.preventDefault(), e("html,body").animate({ 95 scrollTop: "0px" 96 }, 100); 97 }), n.on("scroll", function () { 98 var e = n.scrollTop(), 99 s = n.height() / 2; 100 e > s ? t.addClass("in") : t.removeClass("in"); 101 })); 102 } 103 }, e(document).ready(function () { 104 APP.backToTop.init(); 105 }); 106}(jQuery), APP = APP || {}, function (e) { 107 'use strict'; 108 109 APP.backgroundImage = { 110 init: function () {
111 this.initBackgroundImage(); 112 }, 113 initBackgroundImage: function () { 114 e(".bg-image:not(.lazy-bg)").each(function () { 115 e(this).attr("data-bg-src") && e(this).css("background-image", 'url("' + e(this).attr("data-bg-src") + '")'); 116 }); 117 } 118 }, APP.backgroundImage.init(); 119}(jQuery), APP = APP || {}, function () { 120 'use strict'; 121 122 APP.bsScript = { 123 init: function () { 124 this.tooltips(); 125 }, 126 tooltips: function () { 127 const e = document.querySelectorAll('[data-bs-toggle="tooltip"]'), 128 t = [...e].map(e => new bootstrap.Tooltip(e)); 129 } 130 }, APP.bsScript.init(); 131}(jQuery), (() => { 132 'use strict'; 133 134 const e = "Copy to clipboard", 135 n = ['<div class="doc-code-snippet">', ' <div class="doc-clipboard">', ' <button type="button" class="btn-clipboard">', ' <svg class="bi" width="1em" height="1em" fill="currentColor" role="img" aria-label="Copy"><use xlink:href="#clipboard"/></svg>', " </button>", " </div>", "</div>"].join(''); 136 document.querySelectorAll(".doc-example-markup").forEach(e => { 137 e.closest(".doc-code-snippet") || (e.insertAdjacentHTML("beforebegin", n), e.previousElementSibling.append(e)); 138 }); 139 140 function s(e, t) { 141 document.querySelectorAll(e).forEach(e => { 142 bootstrap.Tooltip.getOrCreateInstance(e, { 143 title: t 144 }); 145 }); 146 } 147 148 s(".btn-clipboard", e); 149 const t = new ClipboardJS(".btn-clipboard", { 150 target: e => e.closest(".doc-code-snippet").querySelector(".doc-example-markup") 151 }); 152 t.on("success", t => { 153 const n = t.trigger.querySelector(".bi").firstChild, 154 o = bootstrap.Tooltip.getInstance(t.trigger), 155 s = "http://www.w3.org/1999/xlink", 156 i = n.getAttributeNS(s, "href"), 157 a = t.trigger.title; 158 o.setContent({ 159 '.tooltip-inner': "Copied!" 160 }), t.trigger.addEventListener("hidden.bs.tooltip", () => { 161 o.setContent({ 162 '.tooltip-inner': e 163 }); 164 }, { 165 once: !0 166 }), t.clearSelection(), n.setAttributeNS(s, "href", i.replace("clipboard", "check2")), setTimeout(() => { 167 n.setAttributeNS(s, "href", i), t.trigger.title = a; 168 }, 2e3); 169 }), t.on("error", t => { 170 const s = /mac/i.test(navigator.userAgent) ? "\u2318" : "Ctrl-", 171 o = `Press ${s}C to copy`, 172 n = bootstrap.Tooltip.getInstance(t.trigger); 173 n.setContent({ 174 '.tooltip-inner': o 175 }), t.trigger.addEventListener("hidden.bs.tooltip", () => { 176 n.setContent({ 177 '.tooltip-inner': e 178 }); 179 }, { 180 once: !0 181 }); 182 }); 183})(), APP = APP || {}, function (e) { 184 'use strict'; 185 186 APP.collapseTabs = { 187 init: function () { 188 this.collapseTabSetUp(); 189 }, 190 collapseTabSetUp: function () { 191 var t = this, 192 s = e(".collapse-tabs"), 193 n = s.find(".tab-content"), 194 o = n.find(".collapse"), 195 r = n.find(".collapse.show").attr("id"), 196 c = n.find('[data-bs-target="#' + r + '"]'), 197 l = s.find(".nav-tabs"), 198 i = s.find(".tab-pane"), 199 a = s.find(".nav-link"); 200 c.attr("data-bs-toggle", !1), a.on("show.bs.tab", function () { 201 var i = e(this).attr("data-bs-target"), 202 s = n.find(i), 203 a = n.find("[data-bs-toggle]"), 204 r = s.find("[data-bs-toggle]"), 205 c = s.find(".collapse"); 206 t.switchDataToggle(a, r), t.switchStatusActive(o, c, "show"); 207 }), o.on("show.bs.collapse", function () { 208 var r = e(this), 209 c = r.closest(".tab-pane").attr("id"), 210 s = e(this).closest(".tab-pane"), 211 d = n.find("[data-bs-toggle]"), 212 u = s.find("[data-bs-toggle]"), 213 h = l.find('[data-bs-target="#' + c + '"]'); 214 o.removeClass("show"), t.switchDataToggle(d, u), t.switchStatusActive(a, h, "active"), t.switchStatusActive(i, s, "active"), t.switchStatusActive(i, s, "show"); 215 }); 216 }, 217 switchDataToggle: function (e, t) { 218 e.attr("data-bs-toggle", "collapse"), t.attr("data-bs-toggle", !1); 219 }, 220 switchStatusActive: function (t, n, e) { 221 t.removeClass(e), n.addClass(e); 222 } 223 }, e(document).ready(function () { 224 APP.collapseTabs.init(); 225 }); 226}(jQuery), APP = APP || {}, function (e) { 227 'use strict'; 228 229console.log("2") 230/* APP.colorModes = { 231 init: function () { 232 this.colorModes(); 233 }, 234 colorModes: function () { 235 if (!document.documentElement.hasAttribute("data-bs-theme")) return; 236 237 const e = localStorage.getItem("theme"), 238 t = () => e ? e : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", 239 n = function (e) { 240 e === "auto" && window.matchMedia("(prefers-color-scheme: dark)").matches ? document.documentElement.setAttribute("data-bs-theme", "dark") : (e === "auto" && (e = "light"), document.documentElement.setAttribute("data-bs-theme", e)); 241 }; 242 243 n(t()); 244 245 const s = (t, n = !1) => { 246 const e = document.querySelector(".color-modes"); 247 if (!e) return; 248 document.querySelectorAll("[data-bs-theme-value]").forEach(e => { 249 e.classList.remove("active"), e.setAttribute("aria-pressed", "false"); 250 }), document.querySelectorAll(".color-modes").forEach(n => { 251 const s = n.querySelector(".theme-icon-active use"), 252 e = n.querySelector('[data-bs-theme-value="' + t + '"]'), 253 o = e.querySelector("svg use").getAttribute("href"); 254 e.classList.add("active"), e.setAttribute("aria-pressed", "true"), s.setAttribute("href", o); 255 }), n && e.focus(); 256 }; 257 258 window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", () => { 259 (e !== "light" || e !== "dark") && n(t()); 260 }); 261 262 const o = function () { 263 s(t()), document.querySelectorAll("[data-bs-theme-value]").forEach(e => { 264 e.addEventListener("click", () => { 265 const t = e.getAttribute("data-bs-theme-value"); 266 localStorage.setItem("theme", t), n(t), s(t, !0); 267 }); 268 }); 269 }; 270 271 o(); 272 } 273 }, e(document).ready(function () { 274 APP.colorModes.init(); 275 });*/ 276}(jQuery), APP = APP || {}, function () { 277 'use strict'; 278 279 APP.core = { 280 _devices: { 281 xs: 0, 282 sm: "576", 283 md: "768", 284 lg: "992", 285 xl: "1200", 286 xxl: "1400" 287 }, 288 isDeviceUp: function (e) { 289 return window.matchMedia("(min-width: " + APP.core._devices[e] + "px)").matches; 290 }, 291 isDeviceDown: function (e) { 292 return window.matchMedia("(max-width: " + (APP.core._devices[e] - 1) + "px)").matches; 293 } 294 }; 295}(jQuery), APP = APP || {}, function (e) { 296 'use strict'; 297 298 APP.countdown = { 299 init: function () { 300 var n, 301 s, 302 o, 303 t = e("[data-countdown]"); 304 if (t.length < 1) return; 305 n = t.data("countdown-end"), s = new Date(n).getTime(), o = setInterval(function () { 306 var n = new Date().getTime(), 307 t = s - n, 308 i = Math.floor(t / (1e3 * 60 * 60 * 24)), 309 a = Math.floor(t % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)), 310 r = Math.floor(t % (1e3 * 60 * 60) / (1e3 * 60)), 311 c = Math.floor(t % (1e3 * 60) / 1e3); 312 e(".day").html(i), e(".hour").html(("0" + a).slice(-2)), e(".minute").html(("0" + r).slice(-2)), e(".second").html(("0" + c).slice(-2)), t < 0 && clearInterval(o); 313 }, 1e3); 314 } 315 }, e(document).ready(function () { 316 APP.countdown.init(); 317 }); 318}(jQuery), function (e) { 319 'use strict'; 320 321 const t = "has-child-dropdown-show"; 322 e(document).on("show.bs.dropdown", function (n) { 323 if (e(n.target).closest("#offCanvasNavBar").length === 0) return; 324 e(n.target).hasClass("nav-link") || e(n.target).addClass(t); 325 }), e(document).on("hide.bs.dropdown", function (n) { 326 if (e(n.target).closest("#offCanvasNavBar").length === 0) return; 327 e(n.target).parent().find("." + t).length && n.preventDefault(), e("#offCanvasNavBar").find("." + t).removeClass(t), e(n.target).closest(".
327nav-item") && !e(n.target).parent().hasClass("nav-item") && (n.clickEvent === void 0 || n.clickEvent && n.clickEvent.target === n.target) && e(n.target).addClass(t); 328 }); 329}(jQuery), APP = APP || {}, function (e) { 330 'use strict'; 331 332 APP.fullPageScroll = { 333 $_dots: null, 334 _slides: [], 335 _isEnabled: !0, 336 _tween: null, 337 _oldSlide: 0, 338 _activeSlide: 0, 339 init: function () { 340 if (typeof gsap == "undefined") return; 341 if (!document.querySelector("body.full-page-scroll")) return; 342 343 if (this._slides = document.querySelectorAll("[data-full-page]"), this.$_dots = e(".full-page-dots"), this.$_dots.length === 0 && (this.$_dots = e('<div class="full-page-dots"></div>'), e("body").append(this.$_dots)), this.$_dots.length) { 344 for (let t = 0; t < this._slides.length; t++) { 345 let n = e('<div class="full-page-dots-nav"></div>'); 346 n.attr("title", e(this._slides[t]).data("full-page")), n.attr("data-index", t), this.$_dots.append(n); 347 } 348 349 this.$_dots.find(".full-page-dots-nav").each(function () { 350 bootstrap.Tooltip.getOrCreateInstance(this, { 351 title: this.title, 352 container: this.parentNode 353 }); 354 }), this.$_dots.find(".full-page-dots-nav").on("click", function () { 355 let t = e(this).attr("data-index"); 356 APP.fullPageScroll._isEnabled = !1, APP.fullPageScroll.gotoSlide(t); 357 }); 358 } 359 360 document.addEventListener("mousedown", function (e) { 361 e.target === document.querySelector("html") && APP.fullPageScroll._tween && (APP.fullPageScroll._tween.pause(), APP.fullPageScroll._isEnabled = !1); 362 }), document.addEventListener("mouseup", function (e) { 363 e.target === document.querySelector("html") && (APP.fullPageScroll._isEnabled = !0); 364 }), window.addEventListener("wheel", function (e) { 365 if (APP.fullPageScroll._oldSlide = APP.fullPageScroll._activeSlide, APP.fullPageScroll._activeSlide += e.deltaY > 0 ? 1 : -1, APP.fullPageScroll._activeSlide < 0 && (APP.fullPageScroll._activeSlide = 0), APP.fullPageScroll._activeSlide > APP.fullPageScroll._slides.length && (APP.fullPageScroll._activeSlide = APP.fullPageScroll._slides.length), APP.fullPageScroll._activeSlide === APP.fullPageScroll._oldSlide) return; 366 APP.fullPageScroll.gotoSlide(APP.fullPageScroll._activeSlide); 367 }), window.addEventListener("scroll", function () { 368 APP.fullPageScroll.calculateSlideActive(); 369 }), e(document).ready(function () { 370 APP.fullPageScroll.calculateSlideActive(); 371 }); 372 }, 373 gotoSlide: function (t) { 374 if (t >= APP.fullPageScroll._slides.length) return; 375 e("html").css("scroll-behavior", "auto"); 376 let n = APP.fullPageScroll._slides[t]; 377 APP.fullPageScroll._tween = gsap.to(window, { 378 scrollTo: { 379 y: n.offsetTop, 380 autoKill: !1, 381 ease: "Power3.easeInOut" 382 }, 383 duration: .85, 384 onComplete: function () { 385 APP.fullPageScroll._isEnabled = !0; 386 } 387 }); 388 }, 389 calculateSlideActive: function () { 390 let t = window.scrollY, 391 e = 0; 392 393 for (let n = 0; n < APP.fullPageScroll._slides.length; n++) { 394 let s = APP.fullPageScroll._slides[n].offsetTop; 395 if (s - t > window.innerHeight * 2 / 3) break; 396 e = n; 397 } 398 399 APP.fullPageScroll.activeDot(e); 400 }, 401 activeDot: function (t) { 402 let n = APP.fullPageScroll._slides[t]; 403 404 if (APP.fullPageScroll.$_dots.length) { 405 let s = e(n).data("full-page-dots"); 406 APP.fullPageScroll.$_dots.removeClass("dark light"), s !== void 0 && APP.fullPageScroll.$_dots.addClass(s), APP.fullPageScroll.$_dots.find(".full-page-dots-nav").removeClass("active"); 407 let o = APP.fullPageScroll.$_dots.find('.full-page-dots-nav[data-index="' + t + '"]'); 408 o.addClass("active"); 409 } 410 } 411 }, APP.fullPageScroll.init(); 412}(jQuery), APP = APP || {}, function (e) { 413 'use strict'; 414 415 APP.gallery = { 416 init: function () { 417 this.lightGallery(); 418 }, 419 lightGallery: function () { 420 e(document).on("click", "a.view-single-image", function (s) { 421 s.preventDefault(); 422 var n = e(this), 423 t = n.attr("href"), 424 o = n.attr("title"); 425 lightGallery(this, { 426 plugins: [lgThumbnail, lgZoom], 427 dynamic: !0, 428 hash: !1, 429 dynamicEl: [{ 430 src: t, 431 downloadUrl: t, 432 thumb: t, 433 subHtml: o 434 }], 435 index: 0 436 }).openGallery(); 437 }), e(document).on("click", "a[data-gallery]", function (o) { 438 o.preventDefault(); 439 var i = e(this), 440 t = i.data("gallery"), 441 n = [], 442 s = 0, 443 a = e(this).attr("href"), 444 r = e(this).data("thumb-src"); 445 e('[data-gallery="' + t + '"]').each(function (c) { 446 var t = e(this).attr("href"), 447 o = e(this).data("thumb-src"), 448 i = e(this).attr("title"); 449 o === void 0 && (o = t), t == a && o == r && (s = c), typeof i == "undefined" && (i = ''), n.push({ 450 src: t, 451 downloadUrl: t, 452 thumb: o, 453 subHtml: i 454 }); 455 }), lightGallery(this, { 456 plugins: [lgThumbnail, lgZoom], 457 dynamic: !0, 458 hash: !1, 459 galleryId: t, 460 dynamicEl: n, 461 thumbWidth: 80, 462 index: s 463 }).openGallery(); 464 }), e(document).on("click", "a.view-video", function (t) { 465 t.preventDefault(); 466 var n = e(this).attr("href"); 467 lightGallery(this, { 468 dynamic: !0, 469 plugins: [lgThumbnail, lgZoom, lgVideo, lgVimeoThumbnail], 470 dynamicEl: [{ 471 src: n, 472 thumb: '', 473 subHtml: '' 474 }] 475 }).openGallery(); 476 }); 477 } 478 }, e(document).ready(function () { 479 APP.gallery.init(); 480 }); 481}(jQuery), APP = APP || {}, function (e) { 482 'use strict'; 483
484 APP.headerSticky = { 485 scroll_offset_before: 0, 486 bs_theme: "light", 487 init: function () { 488 this.sticky(), this.scroll(), this.resize(), this.processSticky(), this.resetHeight(); 489 }, 490 sticky: function () { 491 e(".header-sticky .sticky-area").each(function () { 492 var n, 493 t = e(this); 494 if (!t.is(":visible")) return; 495 t.parent().hasClass("sticky-area-wrap") || t.wrap('<div class="sticky-area-wrap"></div>'), n = t.parent(), n.height(t.outerHeight()); 496 }); 497 }, 498 resize: function () { 499 e(document).on("after_prevent_transition_resize", function () { 500 APP.headerSticky.sticky(), APP.headerSticky.processSticky(), APP.headerSticky.resetHeight(); 501 }); 502 }, 503 scroll: function () { 504 e(window).on("scroll", function () { 505 APP.headerSticky.processSticky(); 506 }); 507 }, 508 processSticky: function () { 509 var n = e(window).scrollTop(), 510 t = e(".main-header"), 511 s = !1; 512 t.hasClass("navbar-dark") && (s = !0), e(".header-sticky .sticky-area").each(function () { 513 if (o = e(this), !o.is(":visible")) return; 514 var o, 515 i = o.parent(), 516 a = 0, 517 c = i.offset().top, 518 r = e("body").css("border-width"); 519 r !== '' && (a += parseInt(r)), o.hasClass("unset-mode-when-sticky") && o.attr("data-bs-theme") !== void 0 && document.documentElement.hasAttribute("data-bs-theme") && (this.bs_theme = o.attr("data-bs-theme")), c - a < n ? (o.css("position", "fixed"), o.css("top", a + "px"), i.addClass("sticky"), o.hasClass("unset-mode-when-sticky") && document.documentElement.hasAttribute("data-bs-theme") && (o.removeAttr("data-bs-theme"), this.bs_theme !== void 0 && o.removeAttr("data-bs-theme")), s && (t.removeClass("navbar-dark"), t.addClass("navbar-light"), t.addClass("navbar-light-sticky"))) : (t.hasClass("navbar-light-sticky") && (t.addClass("navbar-dark"), t.removeClass("navbar-light"), t.removeClass("navbar-light-sticky")), i.hasClass("sticky") && (o.css("position", '').css("top", ''), i.removeClass("sticky")), o.hasClass("unset-mode-when-sticky") && document.documentElement.hasAttribute("data-bs-theme") && o.attr("data-bs-theme", this.bs_theme)); 520 }), APP.headerSticky.scroll_offset_before > n ? e(".header-sticky-smart .sticky-area").each(function () { 521 e(this).hasClass("header-hidden") && e(this).removeClass("header-hidden"); 522 }) : e(".header-sticky-smart .sticky-area").each(function () { 523 var t = e(this).parent(); 524 t.length && APP.headerSticky.scroll_offset_before > t.offset().top + e(this).outerHeight() && !e(this).hasClass("header-hidden") && e(this).addClass("header-hidden"); 525 }), APP.headerSticky.scroll_offset_before = n; 526 }, 527 resetHeight: function () { 528 e(".header-sticky .sticky-area").each(function () { 529 let n = e(this), 530 t = n.parent(), 531 s = t.hasClass("sticky"); 532 s && t.removeClass("sticky"), t.height(n.outerHeight()), s && t.addClass("sticky"); 533 }); 534 } 535 }, APP.header = { 536 init: function () { 537 e(".header.disable-transition-all").removeClass("disable-transition-all"); 538 } 539 }, e(document).ready(function () { 540 APP.headerSticky.init(), APP.header.init(); 541 }); 542}(jQuery), APP = APP || {}, function (e) { 543 'use strict'; 544 545 APP.hightlight = { 546 init: function () { 547 this.initHighlight(); 548 }, 549 formatHtml: function (e) { 550 return html_beautify(e); 551 }, 552 initHighlight: function () { 553 e("code.hljs").each(function () { 554 let t = e(this).data("content"); 555 556 if (t) { 557 t = APP.hightlight.formatHtml(JSON.parse(t)); 558 let e = hljs.highlight(t, { 559 language: "html" 560 }).value; 561 this.innerHTML = e.replace(/^\s*[\r\n]/gm, ""); 562 } 563 }); 564 } 565 }, APP.hightlight.init(); 566}(jQuery), APP = APP || {}, function (e) { 567 'use strict'; 568 569 APP.isotopeFilter = { 570 init: function () { 571 this.setupIsotope(), this.setupIsotopeFilter(); 572 }, 573 setupIsotope: function () { 574 e("[data-options-isotope]").each(function () { 575 var t = e(this).data("options-isotope"), 576 n = {}, 577 t = e.extend({}, n, t); 578 e(this).isotope(t); 579 }); 580 }, 581 setupIsotopeFilter: function () { 582 e("[data-isotope-filter]").on("click", function () { 583 var t = e(this), 584 n = e(t.data("isotope-target")), 585 s = t.closest("[data-isotope-filter-parent]"), 586 o = t.data("isotope-filter"); 587 n.isotope({ 588 filter: o 589 }), s.find("[data-isotope-filter]").removeClass("active"), t.addClass("active"); 590 }); 591 } 592 }, e(document).ready(function () { 593 APP.isotopeFilter.init(); 594 }); 595}(jQuery), APP = APP || {}, function (e) { 596 'use strict'; 597 598 APP.lazyLoad = { 599 instanceImage: null,
600 instanceBackground: null, 601 init: function () { 602 if (typeof LazyLoad == "undefined") return; 603 var e = this; 604 this.handleLazyImages(), this.handleLazyBackgrounds(), setTimeout(function () { 605 e.update(); 606 }, 1e3); 607 }, 608 handleLazyImages: function () { 609 this.instanceImage = new LazyLoad({ 610 elements_selector: ".lazy-image", 611 use_native: !0, 612 callback_loaded: function (t) { 613 e(t).removeClass("lazy-image"); 614 }, 615 callback_error: function () {} 616 }); 617 }, 618 handleLazyBackgrounds: function () { 619 this.instanceBackground = new LazyLoad({ 620 elements_selector: ".lazy-bg", 621 data_bg: "bg-src", 622 callback_loaded: function (t) { 623 e(t).removeClass("lazy-bg"), e(t).find(".placeholder").remove(); 624 } 625 }); 626 }, 627 update: function () { 628 e(".lazy-image").each(function () { 629 var t = e(this).closest(".lazy-image").parent(); 630 }), this.instanceImage !== null && this.instanceImage.update(), this.instanceBackground !== null && this.instanceBackground.update(); 631 } 632 }, e(document).ready(function () { 633 APP.lazyLoad.init(); 634 }); 635}(jQuery), APP = APP || {}, function (e) { 636 'use strict'; 637 638 APP.mapBox = { 639 init: function () { 640 var n, 641 t = e(".mapbox-gl"); 642 if (t.length < 1) return; 643 n = { 644 style: "mapbox://styles/mapbox/streets-v10", 645 center: [-73.9927227, 40.6734035], 646 zoom: 16 647 }, t.each(function () { 648 var t, 649 i, 650 r, 651 s = e(this), 652 o = s.data("mapbox-options"), 653 c = s.data("mapbox-marker"), 654 o = e.extend({}, n, o), 655 a = s.attr("id"); 656 if (a.length < 1) return; 657 o.container = a, mapboxgl.accessToken = s.data("mapbox-access-token"), t = new mapboxgl.Map(o), r = e(s.data("marker-target")), i = r.find(".marker-item"), i.length > 0 ? e.each(i, function () { 658 var n = e(this).data("marker-style"), 659 s = document.createElement("div"); 660 s.className = n.className, s.style.backgroundImage = "url(" + e(this).data("icon-marker") + ")", s.style.width = n.style.width, s.style.height = n.style.height, new mapboxgl.Marker(s).setLngLat(e(this).data("position")).setPopup(new mapboxgl.Popup({ 661 className: n.popup.className 662 }).setHTML(e(this).html()).setMaxWidth(n.popup.maxWidth)).addTo(t); 663 }) : e.each(c, function () { 664 var n, 665 e = document.createElement("div"); 666 e.className = this.className, e.style.backgroundImage = "url(" + this.backgroundImage + ")", e.style.backgroundRepeat = this.backgroundRepeat, e.style.width = this.width, e.style.height = this.height, n = new mapboxgl.Marker(e).setLngLat(this.position).addTo(t); 667 }), t.scrollZoom.disable(), t.addControl(new mapboxgl.NavigationControl()), t.on("load", function () { 668 t.resize(); 669 }); 670 }); 671 } 672 }, e(document).ready(function () { 673 APP.mapBox.init(); 674 }); 675}(jQuery), APP = APP || {}, function (e) { 676 'use strict'; 677 678 APP.parallaxLayer = { 679 init: function () { 680 if (typeof gsap == "undefined") return; 681 e(".parallax-layers").on("mousemove", function (t) { 682 t.preventDefault(); 683 let s = e(this), 684 n = e(window), 685 o = n.width(), 686 i = n.height(), 687 a = t.pageX - this.offsetLeft, 688 r = t.pageY - this.offsetTop, 689 c = a - o / 2, 690 l = r - i / 2; 691 s.find(".layer").each(function (t, n) { 692 var e = .02 + t / 100; 693 gsap.to(n, { 694 duration: 1, 695 x: 1 - c * e, 696 y: 1 - l * e 697 }); 698 }); 699 }).on("mouseleave", function (t) { 700 t.preventDefault(); 701 let n = e(this); 702 n.find(".layer").each(function (e, t) { 703 let n = .01 + e / 100; 704 gsap.to(t, { 705 duration: 1, 706 x: 0, 707 y: 0 708 }); 709 }); 710 }); 711 } 712 }, APP.parallaxLayer.init(); 713}(jQuery), APP = APP || {}, function (e) { 714 'use strict'; 715 716 APP.preventTransitionResize = { 717 resizeTimer: null, 718 beforeWindowWidth: 0, 719 init: function () { 720 this.beforeWindowWidth = window.outerWidth, this.resize(); 721 }, 722 resize: function () { 723 e(window).resize(function () { 724 let t = window.outerWidth; 725 if (t === APP.preventTransitionResize.beforeWindowWidth) return; 726 APP.preventTransitionResize.beforeWindowWidth = t, clearTimeout(APP.preventTransitionResize.resizeTimer), e("body").addClass("disable-transition-all"), e(document).trigger("after_prevent_transition_resize"), APP.preventTransitionResize.resizeTimer = setTimeout(function () { 727 e("body").removeClass("disable-transition-all"); 728 }, 400); 729 }); 730 } 731 }, e(document).ready(function () {
732 APP.preventTransitionResize.init(); 733 }); 734}(jQuery), APP = APP || {}, function (e) { 735 'use strict'; 736 737 APP.productTabsMobile = { 738 init: function () { 739 this.tabsMobile(); 740 }, 741 tabsMobile: function () { 742 e(".product-tabs-mobile button").on("click", function (t) { 743 t.preventDefault(); 744 var n = e(this), 745 s = n.attr("data-control"), 746 o = e("#" + s); 747 o.trigger("click"); 748 }); 749 } 750 }, e(document).ready(function () { 751 APP.productTabsMobile.init(); 752 }); 753}(jQuery), APP = APP || {}, function (e) { 754 'use strict'; 755 756 APP.quickview = { 757 init: function () { 758 this.quickviewLoad(); 759 }, 760 quickviewLoad: function () { 761 e("a.quick-view").on("click", function (e) { 762 e.preventDefault(); 763 }); 764 const t = document.getElementById("quickViewModal"); 765 766 if (t != null) { 767 var n = e("#quickViewModal").find("#slider"), 768 s = e("#quickViewModal").find("#slider-thumb"); 769 t.addEventListener("shown.bs.modal", () => { 770 n.slick("refresh"), s.slick("refresh"); 771 }); 772 } 773 } 774 }, e(document).ready(function () { 775 APP.quickview.init(); 776 }); 777}(jQuery), APP = APP || {}, function (e) { 778 'use strict'; 779 780 APP.scrollSpy = { 781 init: function () { 782 this.scrollSpyLanding(); 783 }, 784 scrollSpyLanding: function () { 785 var t = e("#landingMenu"); 786 if (t.length < 1) return; 787 const n = new bootstrap.ScrollSpy(document.body, { 788 target: "#landingMenu" 789 }); 790 } 791 }, e(document).ready(function () { 792 APP.scrollSpy.init(); 793 }); 794}(jQuery), APP = APP || {}, function (e) { 795 'use strict'; 796 797 APP.singleShop = { 798 init: function () { 799 this.shopFBT(); 800 }, 801 shopFBT: function () { 802 var n = e(".frequently-bought-togheter"), 803 s = n.find(".frequently-bought-togheter-item"), 804 t = s.find(".add-to-item"); 805 const i = t.attr("data-bs-title"), 806 a = t.attr("data-bs-added"); 807 if (n.length < 1 && s.length < 1) return; 808 t.unbind("click").on("click", function (s) { 809 s.preventDefault(); 810 var t = e(this), 811 n = t.attr("aria-describedby"); 812 t.hasClass("checked") ? (t.removeClass("checked"), t.siblings(".form-check-input").prop("checked", !1), t.html('<svg class="icon icon-plus"><use xlink:href="#icon-plus"></use></svg>'), o(t, n, i)) : (t.addClass("checked"), t.siblings(".form-check-input").prop("checked", !0), t.html('<svg class="icon icon-check-bold"><use xlink:href="#icon-check-bold"></use></svg>'), o(t, n, a)); 813 }); 814 815 function o(o, t, n) { 816 var s = e("#" + t); 817 if (t !== '' && s.length < 1) return; 818 o.attr("data-bs-title", n), s.find(".tooltip-inner").html(n); 819 } 820 } 821 }, e(document).ready(function () { 822 APP.singleShop.init(); 823 }); 824}(jQuery), APP = APP || {}, function (e) { 825 'use strict'; 826 827 APP.slickSlider = { 828 init: function () { 829 this.slickSetup(), this.animateSlider(); 830 }, 831 slickSetup: function (n) { 832 n !== void 0 ? t = n : t = e(".slick-slider"); 833 var t, 834 s = { 835 slidesToScroll: 1, 836 slidesToShow: 1, 837 adaptiveHeight: !0, 838 arrows: !0, 839 dots: !0, 840 autoplay: !1, 841 autoplaySpeed: 3e3, 842 centerMode: !1, 843 centerPadding: "50px", 844 draggable: !0, 845 fade: !1, 846 focusOnSelect: !1, 847 infinite: !1, 848 pauseOnHover: !1, 849 responsive: [], 850 rtl: !1, 851 speed: 300, 852 vertical: !1, 853 prevArrow: '<div class="slick-prev" aria-label="Previous"><svg class="icon"><use xlink:href="#icon-chevron-left"></use></svg></div>', 854 nextArrow: '<div class="slick-next" aria-label="Next"><svg class="icon"><use xlink:href="#icon-chevron-right"></use></svg></div>', 855 customPaging: function () { 856 return e("<span></span>"); 857 } 858 }; 859 t.each(function () { 860 var t, 861 n = e(this); 862 n.hasClass("slick-initialized") || (t = n.data("slick-options"), typeof t.appendArrow != "undefined" && (t.appendArrows = e(t.appendArrow)), n.hasClass("custom-arrows-02") && (t.prevArrow = e(".custom-arrows-02-prev"), t.nextArrow = e(".custom-arrows-02-next")), n.hasClass("our-best-seller-4") && (t.customPaging = function (t, n) { 863 var e, 864 s = ''; 865 return n < 9 ? s = n + 1 : s = n + 1, e = '', t.slideCount < 9 ? e = t.slideCount : e = t.slideCount, '<span class="dot-text">Show</span><span class="dot">' + s + "</span>" + '<span class="dot-divider">/</span><span class="dot">' + e + "</span>"; 866 }), t = e.extend({}, s, t), n.slick(t), n.on("setPosition", function (o, t) { 867 var s = 0; 868 t.$slides.each(function () { 869 var n = e(this); 870 n.hasClass("slick-active") && t.options.adaptiveHeight && t.options.slidesToShow > 1 && t.options.vertical === !1 && s < n.outerHeight() && (s = n.outerHeight()); 871 }), s !== 0 && n.find("> .slick-list").animate({ 872 height: s 873 }, 500); 874 })); 875 }); 876 }, 877 animateSlider: function () { 878 var t = e(".slick-slider"); 879 t.on("beforeChange", function () { 880 var s = e(this).find(".slick-slide:not(.slick-active)"), 881 n = s.find(".animate__animated"), 882 t = ''; 883 if (n.length <= 0) return; 884 n.each(function () { 885 t = e(this).attr("data-animate"), t.length && e(this).removeClass("animate__animated").removeClass("animate__" + t); 886 }); 887 }), t.on("afterChange", function () { 888 var s = e(this).find(".slick-active"), 889 n = s.find("[data-animate]:not(.animate__animated)"), 890 t = ''; 891 if (APP.lazyLoad && APP.lazyLoad.update(), n.length <= 0) return; 892 n.each(function () { 893 t = e(this).attr("data-animate"), t.length && e(this).addClass("animate__animated").addClass("animate__" + t); 894 }); 895 }); 896 } 897 }, e(document).ready(function () { 898 APP.slickSlider.init(); 899 }); 900}(jQuery), APP = APP || {}, function (e) { 901 'use strict'; 902 903 APP.styleInline = { 904 init: function () { 905 this.initCss(); 906 },
907 initCss: function () { 908 e("[data-styles]").each(function () { 909 if (this.dataset.styles) { 910 let n = this.dataset.styles.split(";"); 911 912 for (var t in n) { 913 let s = n[t].split(":"); 914 s.length === 2 && e(this).css(s[0].trim(), s[1].trim()); 915 } 916 } 917 }); 918 } 919 }, APP.styleInline.init(); 920}(jQuery), APP = APP || {}, function (e) { 921 'use strict'; 922 923 APP.tabs = { 924 init: function () { 925 this.tab_accordion(), this.tab_dropdown(); 926 }, 927 tab_accordion: function () { 928 e('[data-bs-toggle="tab-accordion"] [data-bs-toggle="tab"]').on("shown.bs.tab", function (t) { 929 var i = e(t.target), 930 a = e(t.relatedTarget), 931 n = e(this).closest('[data-bs-toggle="tab-accordion"]'), 932 s = n.find(i.data("bs-target")), 933 o = n.find(a.data("bs-target")); 934 s.find(".collapse").addClass("show"), o.find(".collapse").removeClass("show"), s.find('[data-bs-toggle="collapse"]').removeClass("collapsed"), o.find('[data-bs-toggle="collapse"]').addClass("collapsed"); 935 }), e('[data-bs-toggle="tab-accordion"] .collapse').on("shown.bs.collapse", function (i) { 936 var t, 937 n, 938 o, 939 s = e(i.target).closest(".tab-pane"); 940 s.length && (t = e('[data-bs-target="#' + s.attr("id") + '"]'), t.length && (n = t.closest(".nav-tabs"), n.length && (n.find('[data-bs-toggle="tab"]').removeClass("active"), o = n.next(".tab-content"), o.length && o.find(".tab-pane").removeClass("show active"), s.addClass("show active"), t.addClass("active")))); 941 }); 942 }, 943 tab_dropdown: function () { 944 e('[data-bs-toggle="tab-dropdown"] [data-bs-toggle="tab"]').on("shown.bs.tab", function (n) { 945 var s = e(n.target), 946 i = e(n.relatedTarget), 947 t = e(this).closest('[data-bs-toggle="tab-dropdown"]'), 948 o = s.data("bs-target"); 949 t.find('[data-bs-toggle="tab"]').removeClass("active"), t.find('[data-bs-target="' + o + '"]').addClass("active"), t.find('[data-bs-toggle="dropdown"]').text(s.text()); 950 }); 951 } 952 }, e(document).ready(function () { 953 APP.tabs.init(); 954 }); 955}(jQuery);
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.