text: /*
   * Amber
   * Design by Degiam - https://degiam.github.io
   * This is a theme of Wunik
   * Copyright (c) 2021
   */
  $('[data-target="#search"]').click(function(){setTimeout(function(){$("#search input").focus()},500)}),$(".dropdown-menu .dropdown-toggle").on("click",function(e){let t=$(this);return t.next().hasClass("show")||(t.parents(".dropdown-menu").first().find(".show").removeClass("show"),t.parents(".dropdown-menu").first().find(".active").removeClass("active")),t.toggleClass("active"),t.next(".dropdown-menu").toggleClass("show"),t.parents(".dropdown.show").on("hidden.bs.dropdown",function(e){$(".dropdown-submenu .show").removeClass("show"),$(".dropdown-submenu .active").removeClass("active")}),!1}),$(window).scroll(function(){$(document).scrollTop()>1?$(".navbar-brand img").addClass("sm"):$(".navbar-brand img").removeClass("sm")}),null!==document.querySelector("#grid")&&document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("grid");masonry1=document.createElement("script"),masonry1.src="https://cdnjs.cloudflare.com/ajax/libs/masonry/4.2.2/masonry.pkgd.min.js",masonry2=document.createElement("script"),masonry2.innerHTML='var msnry = new Masonry("#grid")',e.appendChild(masonry1),setTimeout(function(){e.appendChild(masonry2)},1e3)}),$("#media").each(function(){function e(){$(".carousel-item-container>*").css("max-height",$(window).height()-100)}$(this).on("show.bs.modal",function(){$(".modal-caption").html($(this).find(".active").data("slide-caption")),$(".youtube").each(function(){var e=$(this);source=e.find("iframe").attr("src"),active=e.closest(".carousel-inner>.active").find("iframe"),e.attr("data-src",source),e.find("iframe").attr("src",""),active.length&&active.attr("src",e.data("src"))})}),$(this).on("shown.bs.modal",function(){$(".carousel").carousel("pause")}),$(this).on("slid.bs.carousel",function(){$(".modal-caption").html($(this).find(".active").data("slide-caption")).fadeIn("fast"),$(".youtube").each(function(){var e=$(this);source=e.find("iframe").attr("src"),active=e.closest(".carousel-inner>.active").find("iframe"),e.find("iframe").attr("src",""),active.length&&active.attr("src",e.data("src"))})}),$(this).on("slide.bs.carousel",function(){$(".modal-caption").fadeOut("fast"),$("video").each(function(){const e=$(this).closest(".carousel-inner>.active").find("video");e.length&&e.get(0).pause()})}),$(this).on("hidden.bs.modal",function(){$(".carousel").carousel("cycle"),$("video").each(function(){const e=$(this).closest(".carousel-inner>.active").find("video");e.length&&e.get(0).pause()})}),$(".modal-caption").hover(function(){$(this).toggleClass("text-truncate h-auto position-absolute top")}),e(),$(window).resize(e)}),$(document).click(function(e){$(e.target).is(".carousel-indicators,.carousel-indicators *,.carousel-top,.carousel-top *,.carousel-item-container *")||1==$(".modal.with-carousel").hasClass("show")&&$(".modal.with-carousel").modal("hide")});
  