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