((e,t)=>{"use strict";const o=()=>{const i=t.tfId("wp-admin-bar-themify-page-options");i&&(i.tfOn("click",(o=>{o.preventDefault();let s=t.tfId("tf_page_options_spinner");s||(s=t.createElement("div"),s.id="tf_page_options_spinner",s.className="tf_loader tf_abs_c",s.style.fontSize="55px",s.style.position="fixed",t.body.appendChild(s)),Promise.all([e.loadCss(e.url+"themify-metabox/css/page-options"),e.loadJs(e.url+"themify-metabox/js/page-options-modal")]).then((()=>{e.trigger("tf_page_options_init",[i]).finally((()=>{s.remove()}))})).catch((()=>{s.remove()}))}),{once:!0}),setTimeout((()=>{e.on("tf_music_ajax_ready",o)})))};"complete"===t.readyState?o():window.tfOn("load",o,{once:!0,passive:!0})})(Themify,document);