;(function($,_,undefined){"use strict";$(document).ready(function(){if(ips.getSetting('kitchen_core_breadcrumb_homecontrol')==1){let bchome=$("nav > ul[data-role='breadcrumbList'] > li:first-child > a span");bchome.contents().filter(function(){return this.nodeType==3;}).remove();}});}(jQuery,_));;
;(function($,_,undefined){"use strict";$(document).ready(function(){if(ips.getSetting('kitchen_forums_titlebadges')==1){$(".ks_forumBadge.ks_forumBadge_new").click(function(){$(this).hide();});$(".ks_forumBadge.ks_forumBadge_pwnew").click(function(){$(this).hide();});}});}(jQuery,_));;
;(function($,_,undefined){"use strict";$(document).ready(function(){if(ips.getSetting('kitchen_forums_post_floatimages')==1){let paragraphs=$('[data-pagecontroller="topic"] [data-role="commentContent"] p');paragraphs.each(function(){if(!$(this).text().trim().length&&$(this).has('ipsAttachLink_image')&&typeof($(this).attr('style'))=='undefined'){$(this).addClass('ks_imageInLine');}});$(document).ajaxStop(function(){let paragraphs=$('[data-pagecontroller="topic"] [data-role="commentContent"] p');paragraphs.each(function(){if(!$(this).text().trim().length&&$(this).has('ipsAttachLink_image')&&typeof($(this).attr('style'))=='undefined'){$(this).addClass('ks_imageInLine');}});});}});}(jQuery,_));;
;(function($,_,undefined){"use strict";$(document).ready(function(){if(ips.getSetting('kitchen_forums_post_numbered')==1&&ips.getSetting('kitchen_forums_post_numbered_pertopic')==1){if($(".cTopic").length){let perpage=ips.getSetting('forums_posts_per_page');let page=1;let hasPagination=$(".ipsPagination_page.ipsPagination_active > a");if(hasPagination.length){page=hasPagination.data("page");}
let counter=(perpage*page)-perpage;let postPN=$('article .ipsComment_tools span.ks_postNumber');let inPostContainer=$('article .ipsComment_tools span.ks_postNumberPc');if(inPostContainer[0]!==undefined){postPN=inPostContainer;}
postPN.each(function(){counter++;$(this).text("#"+counter);});$(document).ajaxStop(function(){if($(".cTopic .ipsPagination").data("ipspagination-pages")>1){let page=$(".ipsPagination_page.ipsPagination_active > a").data("page");let counter=(perpage*page)-perpage;let postPN=$('article .ipsComment_tools span.ks_postNumber');let inPostContainer=$('article .ipsComment_tools span.ks_postNumberPc');if(inPostContainer[0]!==undefined){postPN=inPostContainer;}
postPN.each(function(){counter++;if($(this).text()==("#"+counter)){Debug.log("PAGE NUMBERING ALREADY COMPLETED");return false;}
$(this).text("#"+counter);});}});}}});}(jQuery,_));;
;(function($,_,undefined){"use strict";ips.templates.set('core.rating.halfStar'," <li class='ipsRating_half' data-ratingValue='{{value}}'><i class='fa fa-star-half-alt'></i>");$(document).ready(function(){if(ips.getSetting('kitchen_compact_star_ratings')==1){let muhtarget=$(".ipsPageHeader div > p.ipsType_reset.ipsType_small");let hideme=$('form span[data-role="ratingStatus"]');let ksrating=$('p.ipsType_reset.ipsType_small.ksRating');let insert='<p class="ipsType_reset ipsType_small ksRating"></p>';if(hideme.text().length>0){let myInitRating=$('span[data-role="ratingStatus"]').text();Debug.log(myInitRating);hideme.hide();if(muhtarget.length){muhtarget.text(myInitRating);}else{$(insert).insertBefore('form[data-controller="core.front.core.rating"]');ksrating.text(myInitRating);}}
$("div[data-ipsrating]").on('ratingSaved',function(){let myRating=$('span[data-role="ratingStatus"]').text();hideme.hide();Debug.log(myRating);if(muhtarget.length){muhtarget.text(myRating);}else if($("p.ipsType_reset.ipsType_small.ksRating").length){ksrating.text(myRating);}else{$(insert).insertBefore('form[data-controller="core.front.core.rating"]');ksrating.text(myRating);}});}});}(jQuery,_));;
;(function($,_,undefined){"use strict";$(document).ready(function(){if(ips.getSetting('kitchen_core_stickysidebar')==1){let sidebarpresent=$("#ipsLayout_sidebar").not(".ipsLayout_sidebarUnused");if(sidebarpresent.length){Debug.log('Sticky Sidebar will run');sidebarpresent.wrapInner("<div id='sidebar'></div>");let topspace=parseInt(ips.getSetting('kitchen_core_stickysidebar_ts'));let bottomspace=parseInt(ips.getSetting('kitchen_core_stickysidebar_bs'));let sidebar=document.getElementById('sidebar');Debug.log('topspace: '+topspace);Debug.log('bottomspace: '+bottomspace);let stickySidebar=new StickySidebar('#sidebar',{topSpacing:topspace,bottomSpacing:bottomspace,containerSelector:'#ipsLayout_body',minWidth:980,resizeSensor:false});let inner=$(".inner-wrapper-sticky");sidebar.addEventListener('affixed.container-bottom.stickySidebar',function(event){Debug.log('affixed.container-bottom.stickySidebar');inner.removeClass("top");inner.addClass("bottom");});sidebar.addEventListener('affixed.unbottom.stickySidebar',function(event){Debug.log('affixed.unbottom.stickySidebar');inner.removeClass("bottom");inner.addClass("top");});sidebar.addEventListener('affix.top.stickySidebar',function(event){Debug.log('affixed.top.stickySidebar');inner.removeClass("bottom");inner.addClass("top");});sidebar.addEventListener('affixed.static.stickySidebar',function(event){Debug.log('affixed.static.stickySidebar');inner.removeClass("top");});}}});}(jQuery,_));;
;(function($,_,undefined){"use strict";$(document).ready(function(){if(ips.getSetting('kitchen_forums_posts_hide_multiquote')==1){let mq_elements=$('.ipsComment_controls li [data-ipsquote-multiquote]');mq_elements.each(function(){$(this).parent().addClass('ipsHide');});$(document).on('contentChange',function(){let mq_elements=$('.ipsComment_controls li [data-ipsquote-multiquote]');mq_elements.each(function(){$(this).parent().addClass('ipsHide');});});}
if(ips.getSetting('kitchen_forums_posts_hide_quote')==1){let q_elements=$('.ipsComment_controls li [data-ipsquote-singlequote]');q_elements.each(function(){$(this).parent().addClass('ipsHide');});$(document).on('contentChange',function(){let q_elements=$('.ipsComment_controls li [data-ipsquote-singlequote]');q_elements.each(function(){$(this).parent().addClass('ipsHide');});});}});}(jQuery,_));;