import { __ } from '@converse/headless/i18n'; import { html } from "lit-html"; import { modal_close_button, modal_header_close_button } from "./buttons" import { unsafeHTML } from 'lit-html/directives/unsafe-html.js'; import xss from "xss/dist/xss"; const i18n_address = __('Groupchat address (JID)'); const i18n_archiving = __('Message archiving'); const i18n_archiving_help = __('Messages are archived on the server'); const i18n_desc = __('Description'); const i18n_features = __('Features'); const i18n_hidden = __('Hidden'); const i18n_hidden_help = __('This groupchat is not publicly searchable'); const i18n_members_help = __('This groupchat is restricted to members only'); const i18n_members_only = __('Members only'); const i18n_moderated = __('Moderated'); const i18n_moderated_help = __('Participants entering this groupchat need to request permission to write'); const i18n_name = __('Name'); const i18n_no_pass_help = __('This groupchat does not require a password upon entry'); const i18n_no_password_required = __('No password required'); const i18n_not_anonymous = __('Not anonymous'); const i18n_not_anonymous_help = __('All other groupchat participants can see your XMPP address'); const i18n_not_moderated = __('Not moderated'); const i18n_not_moderated_help = __('Participants entering this groupchat can write right away'); const i18n_online_users = __('Online users'); const i18n_open = __('Open'); const i18n_open_help = __('Anyone can join this groupchat'); const i18n_password_help = __('This groupchat requires a password before entry'); const i18n_password_protected = __('Password protected'); const i18n_persistent = __('Persistent'); const i18n_persistent_help = __('This groupchat persists even if it\'s unoccupied'); const i18n_public = __('Public'); const i18n_semi_anon = __('Semi-anonymous'); const i18n_semi_anon_help = __('Only moderators can see your XMPP address'); const i18n_temporary = __('Temporary'); const i18n_temporary_help = __('This groupchat will disappear once the last person leaves'); const i18n_topic = __('Topic'); const i18n_topic_author = __('Topic author'); const subject = (o) => html`

${i18n_topic}: ${unsafeHTML(xss.filterXSS(o.subject.text, {'whitelist': {}}))}

${i18n_topic_author}: ${o.subject && o.subject.author}

`; export default (o) => html` `;