import{t as _,q as C,A as v,y,z as f,B as $,E as n,C as t,D as A,W as D,G as r,F as s,I as a,X as d,O as h}from"./en-DoRaEZbE.js";import{j as x,v as B}from"./main-hqm5HLPr.js";const I=_({__name:"incoming-call-dialog",props:{chatId:{},peerAddress:{}},emits:["close"],setup(m,{emit:u}){const o=m,c=u,{$tr:p}=C(v),l=y(()=>x(o.peerAddress));async function g(){await B.joinCallInRoom({chatId:o.chatId,peerAddress:o.peerAddress}),c("close")}return(e,i)=>(f(),$("div",{class:s(e.$style.incomingCallDialog)},[n("div",{class:s(e.$style.user)},[t(A,{size:180,name:l.value},null,8,["name"]),D(" "+r(l.value),1)],2),n("div",{class:s(e.$style.text)},r(a(p)("chat.incoming.dialog.title"))+" ... ",3),n("div",{class:s(e.$style.actions)},[t(a(d),{type:"icon",color:"var(--error-content-default)",icon:"round-call-end",onClick:i[0]||(i[0]=G=>c("close"))}),t(a(d),{type:"icon",color:"var(--success-content-default)",icon:"round-phone",onClick:g})],2)],2))}}),j="_incomingCallDialog_1mn68_1",k="_user_1mn68_11",N="_text_1mn68_24",z="_actions_1mn68_31",V={incomingCallDialog:j,user:k,text:N,actions:z},E={$style:V},q=h(I,[["__cssModules",E]]);export{q as default};
