!function(){var e={2662:function(){document.addEventListener("DOMContentLoaded",(()=>(()=>{document.querySelectorAll(".wp-mastertoolkit__input-text.slug-url").forEach((t=>{const o=t.querySelector(".home-url"),n=t.querySelector(".copy-button"),a=t.querySelector(".slug-input");n&&a&&o&&void 0!==o.value&&n.addEventListener("click",(t=>e(t,a,o.value)))}));const e=(e,t,o)=>{e.preventDefault();const n=`${o}${t.value}`,a=document.createElement("textarea");a.value=n,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)}})()))},2447:function(){document.addEventListener("DOMContentLoaded",(()=>(()=>{const e=document.querySelectorAll(".wp-mastertoolkit__upload-image__upload"),t=document.querySelectorAll(".wp-mastertoolkit__upload-image__reset");e.forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();const o=e.closest(".wp-mastertoolkit__upload-image"),n=o.querySelector(".wp-mastertoolkit__upload-image__preview"),a=o.querySelector(".wp-mastertoolkit__upload-image__input"),r=o.querySelector(".wp-mastertoolkit__upload-image__reset"),c=wp.media({library:{type:"image"},multiple:!1}).on("select",(function(){const e=c.state().get("selection").first().toJSON();n.src=e.url,a.value=e.url,r.classList.add("show")}));c.open()}))})),t.forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();const o=e.closest(".wp-mastertoolkit__upload-image"),n=o.querySelector(".wp-mastertoolkit__upload-image__preview"),a=o.querySelector(".wp-mastertoolkit__upload-image__input");n.src=n.dataset.default,a.value="",e.classList.remove("show")}))}))})()))}},t={};function o(n){var a=t[n];if(void 0!==a)return a.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.jQuery,t=o.n(e);document.addEventListener("DOMContentLoaded",(()=>{t()(".wp-color-picker").wpColorPicker()})),o(2447),o(2662),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[title_text]"]'),t=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[headline_text]"]'),o=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[footer_text]"]'),n=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[background_color]"]'),a=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[text_color]"]'),r=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[logo]"]'),c=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[background_image]"]'),i=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[logo_height]"]'),u=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[logo_width]"]'),l=document.querySelector('input[type="checkbox"][name="wpmastertoolkit_settings_maintenance_mode[countdown_status]"]'),d=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[countdown_end_date]"]'),s=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[countdown_text_color]"]'),m=document.querySelector('input[name="wpmastertoolkit_settings_maintenance_mode[countdown_background_color]"]'),_=document.querySelector("#JS-Maintenance-Mode-Preview"),p=document.querySelector("#JS-Maintenance-Mode-Preview-Link");_&&_.addEventListener("click",(_=>{_.preventDefault(),(()=>{let _="wpmastertoolkit_settings_maintenance_mode_body_text",w="";"undefined"!=typeof tinyMCE&&tinyMCE.get(_)&&(w=tinyMCE.get(_).getContent());const g=new URL(wpmastertoolkit_maintenance_mode.siteUrl);g.searchParams.append(wpmastertoolkit_maintenance_mode.previewParam,wpmastertoolkit_maintenance_mode.nonce),g.searchParams.append("title_text",e.value),g.searchParams.append("headline_text",t.value),g.searchParams.append("body_text",w),g.searchParams.append("footer_text",o.value),g.searchParams.append("background_color",n.value),g.searchParams.append("text_color",a.value),g.searchParams.append("logo",r.value),g.searchParams.append("background_image",c.value),g.searchParams.append("logo_height",i.value),g.searchParams.append("logo_width",u.value),g.searchParams.append("countdown_status",l.checked?"1":"0"),g.searchParams.append("countdown_end_date",d.value),g.searchParams.append("countdown_text_color",s.value),g.searchParams.append("countdown_background_color",m.value),p.href=g.href,p.click()})()}))}))}()}();