1(window.webpackJsonp=window.webpackJsonp||[]).push([["sendify_frontend"],{umYK:function(e,t,n){"use strict";function o(e,t,n){if(n.querySelector(".optin-form__alert")){var o=n.querySelector(".optin-form__alert");o.className="",o.classList.add("optin-form__alert"),o.classList.add("optin-form__alert--"+e),o.innerText=t,setTimeout((function(){o.remove()}),sendify.timeout_msg_hide)}else{var i=document.createElement("span");i.classList.add("optin-form__alert"),i.classList.add("optin-form__alert--"+e),i.innerText=t,n.appendChild(i),setTimeout((function(){i.remove()}),sendify.timeout_msg_hide)}}function i(e){e.addEventListener("click",(function(){var t,n=e.parentElement.parentElement,i=n.querySelector(".optin-form__email"),s=n.getAttribute("data-list"),a=n.getAttribute("data-double-optin");t=i.value,/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())?fetch(sendify.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=subscribe_to_list&email=".concat(i.value,"&list=").concat(s,"&double_optin=").concat(a),credentials:"same-origin"}).then((function(e){return e.json()})).then((function(t){t.success?t.data&&"already_subscribed"===t.data?o("success",sendify.js_strings.optin_contact_already_exist,e.parentElement):t.data&&"subscribed"===t.data||t.data&&t.data.id?o("success",sendify.js_strings.optin_success_validation,e.parentElement):o("success",sendify.js_strings.optin_contact_already_exist,e.parentElement):"Contact already exist"===t.data.message?o("success",sendify.js_strings.optin_contact_already_exist,e.parentElement):o("error",t.data.message,e.parentElement)})):o("error",sendify.js_strings.optin_email_invalid,e.parentElement)}))}n.r(t),window.addEventListener("DOMContentLoaded",(function(e){document.querySelectorAll(".optin-form__button").forEach((function(e){i(e)})),document.querySelectorAll(".optin-form__email").forEach((function(e){e.addEventListener("keyup",(function(t){13===t.keyCode&&(t.preventDefault(),e.parentElement.querySelector(".optin-form__button").click())}))})),document.querySelector("#sendify_multi_list_optins")&&document.querySelector("#sendify_multi_list_optins").addEventListener("submit",(function(e){e.preventDefault();var t=document.querySelector("#sendify_multi_list_optins"),n=function(e){for(var t=[],n=0;n<e.elements.length;n++){var o=e.elements[n];if(o.name&&!o.disabled&&"file"!==o.type&&"reset"!==o.type&&"submit"!==o.type&&"button"!==o.type)if("select-multiple"===o.type)for(var i=0;i<o.options.length;i++)o.options[i].selected&&t.push(encodeURIComponent(o.name)+"="+encodeURIComponent(o.options[i].value));else("checkbox"!==o.type&&"radio"!==o.type||o.checked)&&t.push(encodeURIComponent(o.name)+"="+encodeURIComponent(o.value))}return t.join("&")}(t),o=t.querySelector("#email_to_optin").value;fetch(sendify.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=subscribe_mutiple_list&".concat(n,"&email=").concat(o),credentials:"same-origin"}).then((function(e){return e.json()})).then((function(e){}))}))})),window.sendifyEvents={applyOptinFormEvents:i}}},[["umYK","runtime"]]]);
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.