!function(e){"use strict";ElementsKit_Helper.registerWidget("elementskit-post-tab.default",function(t){var r=t.hasClass("is-click-yes")?"click":"mouseover",i=t.find(".tab__list__item"),a=t.find(".tabItem"),l=function(e){var t=e.index();i.removeClass("active"),a.removeClass("active"),e.addClass("active"),a.eq(t).addClass("active"),i.filter('[role="tab"]').attr("aria-selected","false"),e.filter('[role="tab"]').attr("aria-selected","true")};i.on(r,function(){l(e(this))}),i.filter('[role="tab"]').on("keydown",function(t){var r=i.filter('[role="tab"]'),a=r.index(this),s=r.length-1,n=null;if("Enter"===t.key||" "===t.key||"Spacebar"===t.key)return t.preventDefault(),void l(e(this));if("ArrowRight"===t.key||"ArrowDown"===t.key)n=a>=s?0:a+1;else if("ArrowLeft"===t.key||"ArrowUp"===t.key)n=a<=0?s:a-1;else if("Home"===t.key)n=0;else{if("End"!==t.key)return;n=s}t.preventDefault();var o=r.eq(n);l(o),o.trigger("focus")})})}(jQuery);