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