1(function($){"use strict";$(function(){const consentCheckbox=$("#mb4wp_public_consent_checkbox");const subscribeButton=$("#mb4wp_subscribe");if("disabled"===subscribeButton.attr("disabled")&&(subscribeButton.data("theme")==="light"||subscribeButton.data("theme")==="dark")){subscribeButton.css({"background-color":"#79AFEA","border":"1px solid #79AFEA","cursor":"default"})}else if("disabled"===subscribeButton.attr("disabled")&&subscribeButton.data("theme")==="custom"){subscribeButton.css({"opacity":".5","cursor":"default"})} 2consentCheckbox.on("change",function(){if(consentCheckbox.prop("checked")){subscribeButton.prop("disabled",!1);if(subscribeButton.data("theme")==="light"||subscribeButton.data("theme")==="dark"){subscribeButton.css({"background-color":"#057BDE","border":"1px solid #057BDE","cursor":"pointer"})}else if(subscribeButton.data("theme")==="custom"){subscribeButton.css({"opacity":"1","cursor":"pointer"})}}else{subscribeButton.prop("disabled",!0);if(subscribeButton.data("theme")==="light"||subscribeButton.data("theme")==="dark"){subscribeButton.css({"background-color":"#79AFEA","border-color":"#79AFEA","cursor":"default"})}else if(subscribeButton.data("theme")==="custom"){subscribeButton.css({"opacity":".5","cursor":"default"})}}});var $form=$(".mb4wp-s-form");$form.each(function(){var $this=$(this);var post_id=$this.find(".mb4wp-form-post-id").val();var $submit=$(".mb4wp-subscribe");$this.on("submit",function(e){e.preventDefault();var key="mb4wp_sform_"+post_id,formData=$this.find('input[name^="'+key+'"], select[name^="'+key+'"]').serialize();var data={};data.action="mb4wp_form_process";data.security=mb4wpAjaxForm.form_nonce;data[key]=formData;data.post_id=post_id;$.ajax({url:mb4wpAjaxForm.ajax_url,type:"POST",data:data,success:function(response){$this.find("input").val("");$this.find("select").find("option:first").attr("selected","selected");$this.hide();$this.parent().find("#mb4wp-form-messages").html(response)},error:function(response){$this.parent().find("#mb4wp-form-messages").html(response)},})})})})})(jQuery)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.