var tco;(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var a in o)e.o(o,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:o[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);const o=window.jQuery;var a=e.n(o);a()((function(){const e=window.wp,t=a()(document.body).hasClass("block-editor-page")&&e&&e.data&&e.data.subscribe;function o(e){a()("#x-meta-box-quote, #x-meta-box-link, #x-meta-box-video, #x-meta-box-audio").css("display","none"),e&&a()(`#x-meta-box-${e}`).css("display","block")}var i=a()('#post-formats-select input[type=radio][name="post_format"]');i.length>0&&(o(a()('#post-formats-select input[type=radio][name="post_format"]:checked').val()),i.change((function(){o(a()(this).val())}))),t&&(o(),e.data.subscribe((()=>{const t=e.data.select("core/editor").getEditedPostAttribute("format");t&&o(t)})));const l=["template-blank-7.php","template-blank-3.php","template-blank-8.php","template-blank-6.php"];function n(e){a()("#x-meta-box-page-icon").toggle(0===(e||"").indexOf("template-blank")),a()("#x-meta-box-portfolio").toggle("template-layout-portfolio.php"===e),a()("#x-meta-box-slider-above, #x-meta-box-slider-below").toggle(!l.includes(e))}let s=a()("#page_template");if(s.length>0&&(n(s.val()),s.on("change",(function(){n(s.val())}))),t){n();let t="";e.data.subscribe((()=>{let o=e.data.select("core/editor").getEditedPostAttribute("template");t!==o&&(n(o),t=o)}))}var d=a()("#_x_slider_above"),c=d.parents("tr").siblings();"Deactivated"===a()("#_x_slider_above option:selected").text()&&c.css("display","none"),d.change((function(){"Deactivated"===a()("#_x_slider_above option:selected").text()?c.css("display","none"):c.css("display","table-row")}));var r=a()("#_x_slider_below"),p=r.parents("tr").siblings();"Deactivated"===a()("#_x_slider_below option:selected").text()&&p.css("display","none"),r.change((function(){"Deactivated"===a()("#_x_slider_below option:selected").text()?p.css("display","none"):p.css("display","table-row")}));var b=a()("#x-meta-box-portfolio-item-video");a()('input[name*="_x_portfolio_media"][value="Video"]').is(":checked")||b.css("display","none"),a()('input[name*="_x_portfolio_media"]').change((function(){a()('input[name*="_x_portfolio_media"][value="Video"]').is(":checked")?b.css("display","block"):b.css("display","none")})),a()(".wp-color-picker").wpColorPicker()})),(tco=void 0===tco?{}:tco).main=t})();