import{M as r}from"./p-9811c98c.js";const n=r=>{if(r&&!r.chat)return!1;const{chatPublic:n,chatPrivate:t}=r.self.permissions;return n.canSend||n.canReceive||n.text||n.files||t.canSend||t.canReceive||t.files||t.text},t=r=>{if(r&&!r.polls)return!1;const{polls:n}=r.self.permissions;return n.canCreate||n.canView||n.canVote},i=r=>{var n;if(!(null===(n=r.self.permissions)||void 0===n?void 0:n.showParticipantList))return!1;if(r&&!r.participants)return!1;const t=null==r?void 0:r.self.config;return!(t&&!t.controlBar.elements.participants)},u=r=>{var n,t;return!!(null===(t=null===(n=null==r?void 0:r.self)||void 0===n?void 0:n.permissions)||void 0===t?void 0:t.transcriptionEnabled)},o=n=>{if(r(n))return!1;if(n&&!n.plugins)return!1;if("LIVESTREAM"===n.meta.viewType)return"ON_STAGE"===n.stage.status;const{plugins:t}=n.self.permissions;return t.canClose||t.canStart};export{i as a,o as b,n as c,t as d,u as e}