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