function reSizeDetailsuche(){var r=$("#SearchFormControl"),t,u;if(r.length&&(t=$("#suchfeld"),t.length)){var h=r.position(),c=r.height(),f=t.width()-8,n=$("#dialogdetailsuche"),e=n.parent(".ui-widget"),o=h.top+c,l=t.position().left,s=isMobile()?945:650,i=s;f>s?n.hasClass("collapsed")&&n.removeClass("collapsed"):(i=f,i<=600&&!n.hasClass("collapsed")?n.addClass("collapsed"):i>600&&n.hasClass("collapsed")&&n.removeClass("collapsed"));e.css("position")==="fixed"&&(u=$(window).height()-$("#HeaderControl").height()-20,u<n.height()&&n.height(u),o+=11);e.css({top:o,left:l,width:i})}}function resizeSearcharea(){var t=$("#suchfeld"),n;if(t.length){if(n=$("div#SearchFormControl div#detailsuchereiter .searchfilter"),$("#searchcheckboxeslist").css("position")!=="absolute"){n.css("width","");return}n.width(t.width()-8)}}function resizeSearchSuggest(){var n=$("#words"),t,i;n.length&&(t=n.data("uiAutocomplete"),t)&&(i=n.position(),$(t.menu.element).css({width:n.width(),left:i.left,top:i.top+n.height()+2}))}function setCookie(){var t=window.location.pathname,n;isSmallMobile()&&isLeftOpen?n="left":isSmallMobile()&&isRightOpen?n="right":!isMobile()&&isRightOpen&&isLeftOpen?n="both":!isSmallMobile()&&isLeftOpen?n="left":!isSmallMobile()&&isRightOpen&&(n="right");t!=="/Login"&&(isSmallMobile()?Cookies.set(COOKIE_NAME_MOBILE,n,COOKIE_ATTRIBUTES):isLargeMobile()?Cookies.set(COOKIE_NAME_LARGE_MOBILE,n,COOKIE_ATTRIBUTES):Cookies.set(COOKIE_NAME_DESKTOP,n,COOKIE_ATTRIBUTES))}function getCookie(){var n;isSmallMobile()?(n=Cookies.get(COOKIE_NAME_MOBILE),n?(isLeftOpen=n==="left"?!userSettingHideLeft:!1,isRightOpen=n==="right"?!userSettingHideRight:!1):(isLeftOpen=!1,isRightOpen=!1)):isLargeMobile()?(n=Cookies.get(COOKIE_NAME_LARGE_MOBILE),n?(isLeftOpen=n==="left"||n==="both"?!userSettingHideLeft:!1,isRightOpen=n==="right"||n==="both"?!userSettingHideRight:!1):(isLeftOpen=!userSettingHideLeft,isRightOpen=!1)):(n=Cookies.get(COOKIE_NAME_DESKTOP),n?(isLeftOpen=n==="left"||n==="both"?!userSettingHideLeft:!1,isRightOpen=n==="right"||n==="both"?!userSettingHideRight:!1):(isLeftOpen=!userSettingHideLeft,isRightOpen=!userSettingHideRight))}function preventSelection(){$("#bo_left, #bo_center, #bo_right").addClass("bo_disable_selection")}function allowSelection(){$("#bo_left, #bo_center, #bo_right").removeClass("bo_disable_selection")}function toggleTitleAttribute(n,t){var r=$(n),u="title-"+(t?"hide":"show"),i=r.data(u);i&&i.length>0&&r.attr("title",i)}function toggleAltAttribute(n,t){var r=$(n),u="alt-"+(t?"hide":"show"),i=r.data(u);i&&i.length>0&&r.attr("alt",i)}function showLeft(){$("#bo_left").hasClass("bo_hide_left_col")&&($("#bo_left").addClass("bo_show_left_col"),$("#bo_left_content").addClass("bo_show_left_content"),$("#bo_left_border").addClass("bo_show_left_border"),$("#bo_center").addClass("bo_show_left_col"),$("#bo_left").removeClass("bo_hide_left_col"),$("#bo_left_border").removeClass("bo_hide_left_border"),$("#bo_left_content").removeClass("bo_hide_left_content"),$("#bo_center").removeClass("bo_hide_left_col"),$("#bo_left_border .button").removeClass("close"),toggleTitleAttribute("#bo_left_border",!0),toggleAltAttribute("#bo_left_border",!0),setHideColumn("Left",!1));isLeftOpen=!0;setCookie()}function hideLeft(n){$("#bo_left").hasClass("bo_show_left_col")&&($("#bo_left").removeClass("bo_show_left_col"),$("#bo_left_border").removeClass("bo_show_left_border"),$("#bo_left_content").removeClass("bo_show_left_content"),$("#bo_center").removeClass("bo_show_left_col"),$("#bo_left").addClass("bo_hide_left_col"),$("#bo_left_border").addClass("bo_hide_left_border"),$("#bo_left_content").addClass("bo_hide_left_content"),$("#bo_center").addClass("bo_hide_left_col"),$("#bo_left_border .button").addClass("close"),toggleTitleAttribute("#bo_left_border",!1),toggleAltAttribute("#bo_left_border",!1),setHideColumn("Left",!0));isLeftOpen=!1;handleHitlistResponsive();typeof n=="undefined"&&(n=!0);n===!0&&setCookie()}function toggleLeft(){$("#bo_left").toggleClass("bo_hide_left_col");$("#bo_left_border").toggleClass("bo_hide_left_border");$("#bo_left_content").toggleClass("bo_hide_left_content");$("#bo_center").toggleClass("bo_hide_left_col");$("#bo_left").toggleClass("bo_show_left_col");$("#bo_left_border").toggleClass("bo_show_left_border");$("#bo_left_content").toggleClass("bo_show_left_content");$("#bo_center").toggleClass("bo_show_left_col");$("#bo_left_border .button").toggleClass("close");isLeftOpen=!isLeftOpen;handleHitlistResponsive();typeof handleScrollToTopButtonPosition=="function"&&handleScrollToTopButtonPosition();toggleTitleAttribute("#bo_left_border",isLeftOpen);toggleAltAttribute("#bo_left_border",isLeftOpen);setHideColumn("Left",!isLeftOpen);setCookie()}function showRight(){$("#bo_right").length>0&&($("#bo_right").hasClass("bo_hide_right_col")&&($("#bo_right").removeClass("bo_hide_right_col"),$("#bo_right_border").removeClass("bo_hide_right_border"),$("#bo_right_content").removeClass("bo_hide_right_content"),$("#bo_center").removeClass("bo_hide_right_col"),$("#bo_right").addClass("bo_show_right_col"),$("#bo_right_content").addClass("bo_show_right_content"),$("#bo_right_border").addClass("bo_show_right_border"),$("#bo_center").addClass("bo_show_right_col"),$("#bo_right_border .button").removeClass("close"),toggleTitleAttribute("#bo_right_border",!0),toggleAltAttribute("#bo_right_border",!0),setHideColumn("Right",!1)),isRightOpen=!0,setCookie())}function hideRight(n){$("#bo_right").length>0&&($("#bo_right").hasClass("bo_show_right_col")&&($("#bo_right").removeClass("bo_show_right_col"),$("#bo_right_content").removeClass("bo_show_right_content"),$("#bo_right_border").removeClass("bo_show_right_border"),$("#bo_center").removeClass("bo_show_right_col"),$("#bo_right").addClass("bo_hide_right_col"),$("#bo_right_border").addClass("bo_hide_right_border"),$("#bo_right_content").addClass("bo_hide_right_content"),$("#bo_center").addClass("bo_hide_right_col"),$("#bo_right_border .button").addClass("close"),toggleTitleAttribute("#bo_right_border",!1),toggleAltAttribute("#bo_right_border",!1),setHideColumn("Right",!1)),isRightOpen=!1,handleHitlistResponsive(),typeof n=="undefined"&&(n=!0),n===!0&&setCookie())}function toggleRight(){$("#bo_right").length>0&&($("#bo_right").toggleClass("bo_hide_right_col"),$("#bo_right_border").toggleClass("bo_hide_right_border"),$("#bo_right_content").toggleClass("bo_hide_right_content"),$("#bo_center").toggleClass("bo_hide_right_col"),$("#bo_right").toggleClass("bo_show_right_col"),$("#bo_right_content").toggleClass("bo_show_right_content"),$("#bo_right_border").toggleClass("bo_show_right_border"),$("#bo_center").toggleClass("bo_show_right_col"),$("#bo_right_border .button").toggleClass("close"),isRightOpen=!isRightOpen,handleHitlistResponsive(),typeof handleScrollToTopButtonPosition=="function"&&handleScrollToTopButtonPosition(),toggleTitleAttribute("#bo_right_border",isRightOpen),toggleAltAttribute("#bo_right_border",isRightOpen),setHideColumn("Right",!isRightOpen),setCookie())}function setSidebarSettings(n,t){userSettingHideLeft=n;userSettingHideRight=t}function initColumns(){var t=window.location.pathname,n=t==="/Login";getCookie();isLeftOpen?showLeft():hideLeft();isRightOpen||n?(showRight(),isMobile()&&n&&hideLeft()):hideRight()}function HeaderLogosRefresh(){$("#portalkopflogo").length>0&&$("#imgdruckereichbeck").addClass("twologo");$("#rechtes-site-logo").length>0&&$("#runtimeadmininfo").addClass("withlogo")}function setHideColumn(n,t){$.post("/ResponsiveBorder/HideColumn",{position:n,hide:t})}var isLeftOpen=!0,isRightOpen=!0,userSettingHideLeft=!1,userSettingHideRight=!1,isReadingViewActive=!1,COOKIE_NAME_READING="readingView",COOKIE_NAME_DESKTOP="showColumns",COOKIE_NAME_MOBILE="showMobileColumns",COOKIE_NAME_LARGE_MOBILE="showLargeMobileColumns",COOKIE_ATTRIBUTES={path:"/",sameSite:"lax"},matomoResponsiveCategory="Responsive Design",windowWidth;$(document).ready(function(){initColumns();reSizeDetailsuche();resizeSearcharea();HeaderLogosRefresh();$("#bo_contentwrapper").removeClass("nojs-noborder");$("#bo_left_border").on("click",function(){toggleLeft();isMobile()&&isRightOpen&&toggleRight();isLeftOpen?TrackMatomoEvent(matomoResponsiveCategory,"Linke Spalte eingeblendet"):TrackMatomoEvent(matomoResponsiveCategory,"Linke Spalte ausgeblendet")});$("#bo_right_border").on("click",function(){toggleRight();isMobile()&&isLeftOpen&&toggleLeft();isRightOpen?TrackMatomoEvent(matomoResponsiveCategory,"Rechte Spalte eingeblendet"):TrackMatomoEvent(matomoResponsiveCategory,"Rechte Spalte ausgeblendet")});$("#bo_left_border").on("keypress",function(n){var t=n||window.event,i=t.keyCode?t.keyCode:t.which;i!==9&&i===13&&(toggleLeft(),isMobile()&&isRightOpen&&toggleRight(),isLeftOpen?TrackMatomoEvent(matomoResponsiveCategory,"Linke Spalte eingeblendet"):TrackMatomoEvent(matomoResponsiveCategory,"Linke Spalte ausgeblendet"))});$("#bo_right_border").on("keypress",function(n){var t=n||window.event,i=t.keyCode?t.keyCode:t.which;i!==9&&i===13&&(toggleRight(),isMobile()&&isLeftOpen&&toggleLeft(),isRightOpen?TrackMatomoEvent(matomoResponsiveCategory,"Rechte Spalte eingeblendet"):TrackMatomoEvent(matomoResponsiveCategory,"Rechte Spalte ausgeblendet"))});$(window).on("resize",function(){initColumns();reSizeDetailsuche();resizeSearcharea();resizeSearchSuggest();let n;clearTimeout(n);n=setTimeout(function(){reSizeDetailsuche()},250)})})