$(document).ready(function(){$(".ContentTopMenu li").click(function(){$(".ContentTopMenu").toggleClass("Active"),$(".Content").toggleClass("ContentWidthFull"),$(".ContentLeft").toggleClass("ContentLeftHidden"),$(".ContentRight").toggleClass("ContentRightWidthFull"),$("body").attr("style")&&$("body").removeAttr("style")}),$(".footer-info .footer-info-btn .footer-info-action").click(function(){localStorage.kvkk=!0,$(".footer-info").remove()}),$("#ss-loader").length&&!$(".waitAction").length&&($("#ss-loader").removeClass("show"),$(".ss_top_news").slideDown(600));$(window).height();var e,i,s=$(window).width();$(window).on("resize",function(){$(".registry-list-container").each(function(){var t=$(this).find(".registry-list-content").outerHeight()+parseInt($(this).css("padding-bottom"));$(this).find(".registry-Btn").hasClass("registry-ButtonHidden")||$(this).css("height",t)});var t=$(".registry-list-container"),e=t.find(".registry-list-content"),i=e.outerHeight()+25,s=t.data("height");s<(i=e.outerHeight())&&0==t.find(".registry-list-readmore").length?(t.addClass("registry-list-collapse registry-in").css("height",s),t.append('<span class="registry-list-readmore"><div class="registry-list-button registry-Btn registry-ButtonHidden"><i class="icon-chevron-down"></i> Devamı...</div></span>')):i<=s&&(t.removeClass("registry-list-collapse registry-in").css("height",s),t.find(".registry-list-readmore").addClass("d-none"))}).resize(),$(window).scroll(function(t){390<$(window).scrollTop()?$(".ScrollToTop").addClass("ScrollToTopFix"):$(".ScrollToTop").removeClass("ScrollToTopFix")}),$(".ScrollToTop").click(function(){return $("html, body").animate({scrollTop:0},800),!1}),$(".top-menu-mobile-icon").on("click",function(){1==$(".top-menu-area .top-menu-link ul").is(":visible")?($(".top-menu-area .top-menu-link ul").slideUp(),$(".top-menu-area").removeClass("top-menu-mobile-open"),$(this).html("<i class='icon-fs-menu'>")):($(".top-menu-area .top-menu-link ul").addClass("top-menu-box-shadow").slideDown("slow"),$(".top-menu-area").addClass("top-menu-mobile-open"),$(this).html("<i class='icon-fs-close'>"))}),$(".top-menu-area .top-menu-link ul li").click(function(){$(this).hasClass("menu-link-open")||$(".top-menu-area .top-menu-link ul li").removeClass("menu-link-open menu-link-hover"),$(this).toggleClass("menu-link-open menu-link-hover");var t=$(this).find("a");"ss-menu-kurumsal"!==t.data("id")&&$(this).find(".top-menu-link-detail").html($("#"+t.attr("data-id")).find(".top-menu-content").clone())}),$(".top-menu-area .top-menu-link ul li a").on("click",function(){var t;1100<=s&&(t=$(this),e=t.data("id"),"flex"===$("#"+e).css("display")?($(".top-menu-bg").hide(),$("#"+e).hide(),i=!1):e?(i?$(".top-menu-detail-item").hide():($(".top-menu-detail-area").css({display:"table"}),$(".top-menu-bg").show()),$("#"+e).css({display:"flex"}),i=!0):i&&($(".top-menu-detail-area").hide(),$(".top-menu-bg").hide(),$("#"+e).hide(),i=!1))}),$(".top-menu-bg").on("click",function(){$(".top-menu-bg").hide(),$("#"+e).hide(),i=!1});var n=$(".registry-list-container"),o=n.find(".registry-list-content"),r=o.outerHeight()+25,l=n.data("height"),r=o.outerHeight();l<r&&0==n.find(".registry-list-readmore").length?(n.addClass("registry-list-collapse registry-in").css("height",l),n.append('<span class="registry-list-readmore"><div class="registry-list-button registry-Btn registry-ButtonHidden"><i class="icon-chevron-down"></i> Devamı...</div></span>')):r<=l&&(n.removeClass("registry-list-collapse registry-in").css("height",l),n.find(".registry-list-readmore").addClass("d-none")),n.on("click",".registry-list-readmore .registry-Btn",function(){r=o.outerHeight()+parseInt(n.css("padding-bottom"));var t=l;$(this).hasClass("registry-ButtonHidden")?(t=r,n.removeClass("registry-in"),$(this).removeClass("registry-ButtonHidden")):($(this).addClass("registry-ButtonHidden"),n.addClass("registry-in")),$(this).closest(".registry-list-container").css("height",t)})});
