(window.webpackJsonpPlesk=window.webpackJsonpPlesk||[]).push([["app/user/login-string"],{1095:function(e,n,t){"use strict";t.r(n);const a=document.getElementById("general-vcard-email-internalEmail"),c=document.getElementById("general-vcard-email-domain"),d=document.getElementById("general-vcard-email-externalEmail"),i=document.getElementById("general-account-login"),l=document.getElementById("general-account-isActivationRequired");let r,o,s=!1;const u=()=>{s=!0},g=e=>{r||(r=e.target)},m=e=>{s||e.target!==r||(i.value=(()=>{let e="";if(r===a){if(!a.value)return e;e="".concat(a.value,"@").concat(o)}else r===d&&(e=d.value);return e})())},v=()=>{E(""===d.value)},E=e=>{e&&(l.checked=!e),l.disabled=e},h=()=>{o=c.options[c.selectedIndex].text,r===a&&a.dispatchEvent(new Event("change"))};n.default=({activationData:e,isNew:n})=>{n&&i&&i instanceof HTMLInputElement&&(a&&(c?(c.addEventListener("change",h),h()):o=document.getElementById("general-vcard-email-internalEmail-domain").innerHTML,a.addEventListener("keyup",g),["change","keyup"].forEach(e=>a.addEventListener(e,m))),d&&(d.addEventListener("keyup",g),["change","keyup"].forEach(e=>d.addEventListener(e,m))),i.addEventListener("change",u)),(e=>{if(!l)return;d&&(d.addEventListener("change",v),v());const n=document.getElementById("general-vcard-roleId"),t=document.getElementById("general-account-isActive"),a=()=>{l.checked&&(t.checked=!1)},c=()=>{t.checked&&(l.checked=!1)},i=()=>{e[n.value]?(t.checked=!1,l.checked=!0):l.checked=!1};n&&(n.addEventListener("change",i),i()),t&&(l.addEventListener("change",a),t.addEventListener("change",c),a(),c())})(e)}}}]);
//# sourceMappingURL=login-string.js.map?5ad71b5efe1d16520d47