!function(){function t(t){"undefined"==typeof kirkiTooltips||(Array.isArray(kirkiTooltips)?kirkiTooltips:Object.values(kirkiTooltips||{})).forEach(function(e){if(!e||!e.id||e.id!==t.id)return;let i=document.querySelector("#customize-control-"+e.id+" .customize-control-title");if(i&&i.querySelector(".tooltip-content")||!i)return;i.classList.add("kirki-tooltip-wrapper");let n=document.createElement("span");n.className="tooltip-trigger";let o=document.createElement("span");o.className="dashicons dashicons-editor-help",n.appendChild(o);let c=document.createElement("span");c.className="tooltip-content",c.innerHTML=e.content||"",i.appendChild(n),i.appendChild(c)})}function e(){if("undefined"==typeof kirkiTooltips||0===(Array.isArray(kirkiTooltips)?kirkiTooltips:Object.values(kirkiTooltips||{})).length)return;let e=[];wp.customize.control.each(function(i){if(!i||!i.id)return;let n=i.section();n&&!e.includes(n)&&e.push(n),wp.customize.section(n,function(e){e&&(e.expanded()||wp.customize.settings&&wp.customize.settings.autofocus&&wp.customize.settings.autofocus.control===i.id?t(i):e.expanded.bind(function(e){e&&t(i)}))})}),wp.customize.control.bind("add",function(e){e&&e.id&&wp.customize.section(e.section(),function(i){i&&i.expanded()?t(e):i&&i.expanded.bind(function(i){i&&t(e)})})});let i=document.querySelector(".kirki-tooltip-inline-styles");i||((i=document.createElement("style")).className="kirki-tooltip-inline-styles",document.head.appendChild(i));let n=document.querySelector(".wp-full-overlay-sidebar-content");e.forEach(function(t){wp.customize.section(t,function(t){t.expanded.bind(function(e){e&&(n&&t.contentContainer[0]&&t.contentContainer[0].scrollHeight>n.offsetHeight?i.textContent=".kirki-tooltip-wrapper span.tooltip-content {min-width: 258px;}":i.textContent="")})})})}if("undefined"!=typeof wp&&wp.customize)wp.customize.bind("ready",function(){e()});else{function i(){"undefined"!=typeof wp&&wp.customize&&wp.customize.control?wp.customize.bind("ready",function(){e()}):setTimeout(i,50)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i):i()}}();