"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["app/user/login-string"],{3209(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"),c=document.getElementById("general-vcard-email-externalEmail"),d=document.getElementById("general-account-login"),l=document.getElementById("general-account-isActivationRequired");let r,i,u=!1;const g=()=>{u=!0},o=e=>{r||(r=e.target)},s=e=>{u||e.target!==r||(d.value=(()=>{let e="";if(r===t){if(!t.value)return e;e=`${t.value}@${i}`}else r===c&&(e=c.value);return e})())},m=()=>{v(""===c.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&&d&&d instanceof HTMLInputElement&&(t&&(a?(a.addEventListener("change",E),E()):i=document.getElementById("general-vcard-email-internalEmail-domain").innerHTML,t.addEventListener("keyup",o),["change","keyup"].forEach(e=>t.addEventListener(e,s))),c&&(c.addEventListener("keyup",o),["change","keyup"].forEach(e=>c.addEventListener(e,s))),d.addEventListener("change",g)),(e=>{if(!l)return;c&&(c.addEventListener("change",m),m());const n=document.getElementById("general-vcard-roleId"),t=document.getElementById("general-account-isActive"),a=()=>{l.checked&&(t.checked=!1)},d=()=>{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",d),a(),d())})(e)};(Object.getOwnPropertyDescriptor(a,"name")||{}).writable||Object.defineProperty(a,"name",{value:"default",configurable:!0})}}]);
//# sourceMappingURL=login-string.js.map?1c74bcd55795ebee5429