${e(".phone-number-list").data("label")}:
${t} Test `;return e(".phone-number-list").html(a),e("#whatsapp-message-popup").show(),!1}return h()}():(e(".cht-input-error:first").focus(),!1)})),e(".chaty-popup-outer").on("click",(function(t){e(".chaty-popup").hide()})),e(".check-for-numbers").on("click",(function(){h()})),e(".check-for-device").on("click",(function(){l()})),e(".check-for-triggers").on("click",(function(){r()})),e(".check-for-status").on("click",(function(){u()})),e(".change-status-and-save").on("click",(function(){e(".cht_active").prop("checked",!0),t=!0,e(".chaty-popup").hide(),e("#cht-form").trigger("submit")})),e(".status-and-save").on("click",(function(){e(".cht_active").prop("checked",!1),t=!0,e(".chaty-popup").hide(),e("#cht-form").trigger("submit")})),jQuery(document).on("click","#create-date-rule",(function(e){jQuery("#date-schedule").addClass("active"),jQuery("#cht_date_rules").val("yes")})),jQuery(document).on("click","#remove-date-rule",(function(e){jQuery("#date-schedule").removeClass("active"),jQuery("#cht_date_rules").val("no")})),jQuery(document).on("click",".wf-test-button",(function(){var t=jQuery(this).data("slug");jQuery("#"+t+"_popup").addClass("active");var a="",n=e(".custom-channel-"+t).val();if(console.log(n),"Whatsapp"==t){var o=n.replaceAll("+","").replaceAll(" ","").replaceAll("-","");a=d?"https://wa.me/"+o:"https://web.whatsapp.com/send?phone="+o,e("#"+t+"_popup").find(".phone-value").text(n)}"Facebook_Messenger"==t&&(a=n,e("#"+t+"_popup").find(".phone-value").text(n)),window.open(a,"_blank")})),e(document).on("click",".edit-number",(function(){var t=e(this).closest(".test-popup").data("label");e(".custom-channel-"+t).focus(),e(".test-popup").removeClass("active")})),jQuery(document).on("click",".test-popup-bg, .test-popup-close-btn, .test-popup .save-btn",(function(){jQuery(".test-popup").removeClass("active")})),e(document).on("keyup",".custom-channel-Facebook_Messenger",(function(){""!=e(this).val()?e(this).closest(".test-btn").find(".wf-test-button").addClass("active"):e(this).closest(".test-btn").find(".wf-test-button").removeClass("active")})),e(document).on("click",".test-popup .contact-link",(function(){e(".chaty-help-form").addClass("active"),e(".test-popup").removeClass("active")})),e(document).on("keyup","#wp_popup_headline, #wp_popup_nickname",(function(){change_custom_preview()}));var y="";e(document).on("click",".upload-wp-profile",(function(){y=e(this).data("for");var t=wp.media({title:"Select Whatsapp Profile",multiple:!1,library:{type:"image"}}).open().on("select",(function(a){var n=t.state().get("selection").first().toJSON();e("#"+y+"-custom-image-upload .img-value").val(n.url),e("#"+y+"-custom-image-upload").addClass("active"),e("#"+y+"-custom-image-upload .image-info").html("