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