connecting=${t} onSubmit=${this.handleConnectSubmit} /> `}let i=null;if(s){let e=null;s.type==sa.NICK&&(e=n.users.get(s.name)),i=tS`
<${sz} buffer=${s} server=${n} user=${e} bouncerNetwork=${r} onChannelClick=${this.handleChannelClick} onClose=${()=>this.close(s)} onJoin=${()=>this.handleJoinClick(s)} onReconnect=${()=>this.reconnect()} onAddNetwork=${this.handleAddNetworkClick} onManageNetwork=${()=>this.handleManageNetworkClick(s.server)} onOpenSettings=${this.handleOpenSettingsClick} />
`}let o=null;s&&s.type==sa.CHANNEL&&(o=tS`
${s.members.size} users
<${sJ} members=${s.members} users=${n.users} onNickClick=${this.handleNickClick} />
`);let l=null,c=this.state.dialogData||{};switch(this.state.dialog){case"network":let u=!c.id;l=tS` <${nf} title=${u?"Add network":"Edit network"} onDismiss=${this.dismissDialog}> <${nr} onSubmit=${this.handleNetworkSubmit} onRemove=${this.handleNetworkRemove} params=${c.params} autojoin=${c.autojoin} isNew=${u} /> `;break;case"help":l=tS` <${nf} title="Help" onDismiss=${this.dismissDialog}> <${ns}/> `;break;case"join":l=tS` <${nf} title="Join channel" onDismiss=${this.dismissDialog}> <${sX} channel=${c.channel} onSubmit=${this.handleJoinSubmit}/> `;break;case"auth":e=c.loading?tS`

Logging in…

`:tS` <${na} username=${c.username} onSubmit=${this.handleAuthSubmit}/> `,l=tS` <${nf} title="Login to ${sd(n,r)}" onDismiss=${this.dismissDialog}> ${e} `;break;case"register":e=c.loading?tS`

Creating account…

`:tS` <${ni} emailRequired=${c.emailRequired} onSubmit=${this.handleRegisterSubmit}/> `,l=tS` <${nf} title="Register a new ${sd(n,r)} account" onDismiss=${this.dismissDialog}> ${e} `;break;case"verify":e=c.loading?tS`

Verifying account…

`:tS` <${no} account=${c.account} message=${c.message} onSubmit=${this.handleVerifySubmit}/> `,l=tS` <${nf} title="Verify ${sd(n,r)} account" onDismiss=${this.dismissDialog}> ${e} `;break;case"settings":l=tS` <${nf} title="Settings" onDismiss=${this.dismissDialog}> <${nl} settings=${this.state.settings} showProtocolHandler=${c.showProtocolHandler} onChange=${this.handleSettingsChange} onDisconnect=${this.handleSettingsDisconnect} onClose=${this.dismissDialog} /> `;break;case"switch":l=tS` <${nf} title="Switch to a channel or user" onDismiss=${this.dismissDialog}> <${nh} buffers=${this.state.buffers} servers=${this.state.servers} bouncerNetworks=${this.state.bouncerNetworks} onSubmit=${this.handleSwitchSubmit}/> `}let h=null;this.state.error&&(h=tS`
${this.state.error} ${" "}
`);let p=!1;n&&n.status!==si.REGISTERED&&(p=!0);let d=!1;if(s&&s.type===sa.SERVER)d=!0;else if(s){var m,f,g;let e,n=this.clients.get(s.server);m=n.isupport,f=n.nick,g=s.name,e=tO({prefix:{name:f,user:"_".repeat(m.userLen()),host:"_".repeat(m.hostLen())},command:"PRIVMSG",params:[g,""]})+"\r\n",t=m.lineLen()-e.length}let b=tS`
<${sK} buffers=${this.state.buffers} servers=${this.state.servers} bouncerNetworks=${this.state.bouncerNetworks} activeBuffer=${this.state.activeBuffer} onBufferClick=${this.handleBufferListClick} onBufferClose=${this.handleBufferListClose} />
${i} <${nm} target=${this.buffer} stickTo=".logline" scrollKey=${this.state.activeBuffer} onScrollTop=${this.handleBufferScrollTop} >
<${sW} buffer=${s} server=${n} settings=${this.state.settings} onChannelClick=${this.handleChannelClick} onNickClick=${this.handleNickClick} onAuthClick=${()=>this.handleAuthClick(s.server)} onRegisterClick=${()=>this.handleRegisterClick(s.server)} onVerifyClick=${this.handleVerifyClick} />
${o} <${np} ref=${this.composer} client=${a} readOnly=${p} onSubmit=${this.handleComposerSubmit} autocomplete=${this.autocomplete} commandOnly=${d} maxLen=${t} /> ${l} ${h} `;return tS` <${su.Provider} value=${this.state.settings}> ${b} `}}n=tS`<${nw}/>`,r=document.body,u.__&&u.__(n,r),i=a&&a.__k||r.__k,o=[],l=[],P(r,n=(a||r).__k=S(N,null,[n]),i||b,b,void 0!==r.ownerSVGElement,a?[a]:i?null:r.firstChild?c.call(r.childNodes):null,o,a||(i?i.__e:r.firstChild),!1,l),B(o,n,l); //# sourceMappingURL=index.0cb6c23c.js.map