!function(t){t((function(){if(document.querySelector(".pr_greetings_template"))try{!function(){var e=t(".pr_greetings_template select").find(":selected").val();"no"==e||""==e?t(".g_content_collapsible").hide():t(".g_content_collapsible").show();"greetings-1"==e&&(t(".ctc_greetings_settings.ctc_g_1").show(),t(".pr_ht_ctc_greetings_1").show(),t(".pr_ht_ctc_greetings_settings").show(),t(".ctc_greetings_notes").show(),n());"greetings-2"==e&&(t(".ctc_greetings_settings.ctc_g_2").show(),t(".pr_ht_ctc_greetings_2").show(),t(".pr_ht_ctc_greetings_settings").show(),t(".ctc_greetings_notes").show(),n());function n(){t(".is_opt_in").is(":checked")?t(".pr_opt_in ").show(200):t(".pr_opt_in ").hide(200)}t(".pr_greetings_template select").on("change",(function(e){var c=e.target.value;"no"==c?(t(".g_content_collapsible").hide(100),t(" .ctc_greetings_settings").hide()):(t(".g_content_collapsible").show(),"greetings-2"!=c&&"greetings-1"!=c||t(" .ctc_greetings_settings").hide(),t(".ctc_greetings_notes").show(),"greetings-1"==c&&(t(".ctc_greetings_settings.ctc_g_1").show(100),t(".pr_ht_ctc_greetings_1").show(100),n()),"greetings-2"==c&&(t(".ctc_greetings_settings.ctc_g_2").show(100),t(".pr_ht_ctc_greetings_2").show(100),n()),t(".pr_ht_ctc_greetings_settings").show())})),t(".is_opt_in").on("change",(function(t){n()}))}()}catch(t){}if(document.querySelector(".ctc-admin-greetings-page")||document.querySelector(".ctc-admin-woo-page"))try{!function(){var t=1,e=1e3,n=28;function c(){if(document.getElementById("header_content_ifr"))try{_()}catch(t){}else++t<n&&setTimeout(c,e)}function _(){document.querySelectorAll(".ctc_wp_editor iframe").forEach((t=>{t.contentWindow.document.getElementsByTagName("body")[0].style.backgroundColor="#26a69a"}))}c()}()}catch(t){}}))}(jQuery);