(function(){"use strict";window.kadenceShowMore={cache:{},initShowMore:function(){if(window.kadenceShowMore.cache=document.querySelectorAll(".wp-block-kadence-show-more"),!!window.kadenceShowMore.cache.length)for(let a=0;a<window.kadenceShowMore.cache.length;a++){const b=window.kadenceShowMore.cache[a],c=b.querySelector(".wp-block-kadence-advancedbtn.kb-show-more-buttons > .wp-block-kadence-singlebtn:nth-of-type(1)"),d=b.querySelector(".wp-block-kadence-advancedbtn.kb-show-more-buttons > .wp-block-kadence-singlebtn:nth-of-type(2)");if(b.querySelector(".wp-block-kadence-advancedbtn.kb-show-more-buttons > .kt-btn-wrap:first-child a")&&(b.querySelector(".wp-block-kadence-advancedbtn.kb-show-more-buttons > .kt-btn-wrap:first-child a").addEventListener("click",function(a){return a.preventDefault(),b.classList.add("kb-smc-open"),!1}),b.querySelector(".wp-block-kadence-advancedbtn.kb-show-more-buttons > .kt-btn-wrap:last-child a").addEventListener("click",function(a){return a.preventDefault(),b.classList.remove("kb-smc-open"),!1})),c){c.addEventListener("click",function(a){return a.preventDefault(),b.classList.add("kb-smc-open"),c.setAttribute("aria-hidden","true"),d.removeAttribute("aria-hidden"),!1}),d.addEventListener("click",function(a){return a.preventDefault(),b.classList.remove("kb-smc-open"),c.removeAttribute("aria-hidden"),d.setAttribute("aria-hidden","true"),!1}),d.setAttribute("aria-hidden","true")}}},init:function(){window.kadenceShowMore.initShowMore()}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.kadenceShowMore.init):window.kadenceShowMore.init(),document.addEventListener("kadenceJSInitReload",function(){window.kadenceShowMore.init()})})();