<commit_before><!--
  - @copyright Copyright (c) 2020 <NAME> <<EMAIL>>
  -
  - @author <NAME> <<EMAIL>>
  -
  - @license GNU AGPL version 3 or any later version
  -
  - This program is free software: you can redistribute it and/or modify
  - it under the terms of the GNU Affero General Public License as
  - published by the Free Software Foundation, either version 3 of the
  - License, or (at your option) any later version.
  -
  - This program is distributed in the hope that it will be useful,
  - but WITHOUT ANY WARRANTY; without even the implied warranty of
  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  - GNU Affero General Public License for more details.
  -
  - You should have received a copy of the GNU Affero General Public License
  - along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<template>
	<AppSettingsDialog role="dialog"
		:aria-label="t('spreed', 'Conversation settings')"
		:open.sync="showSettings"
		:show-navigation="true"
		:container="container">
		<!-- description -->
		<AppSettingsSection v-if="showDescription"
			:title="t('spreed', 'Description')">
			<Description :editable="canFullModerate"
				:description="description"
				:editing="isEditingDescription"
				:loading="isDescriptionLoading"
				:placeholder="t('spreed', 'Enter a description for this conversation')"
				@submit-description="handleUpdateDescription"
				@update:editing="handleEditDescription" />
		</AppSettingsSection>

		<!-- Notifications settings -->
		<AppSettingsSection :title="t('spreed', 'Notifications')">
			<NotificationsSettings :conversation="conversation" />
		</AppSettingsSection>

		<!-- Devices preview sceren -->
		<AppSettingsSection :title="t('spreed', 'Device check')">
			<CheckboxRadioSwitch :checked.sync="showDeviceChecker">
				{{ t('spreed', 'Always show the device preview screen before joining a call in this conversation.') }}
			</CheckboxRadioSwitch>
		</AppSettingsSection>

		<!-- Guest access -->
		<AppSettingsSection v-if="canFullModerate"
			:title="t('spreed', 'Guests access')">
			<LinkShareSettings ref="linkShareSettings" />
		</AppSettingsSection>

		<!-- TODO sepatate these 2 settings and rename the settings sections
		all the settings in this component are conversation settings. Proposal:
		move lock conversation in destructive actions and create a separate
		section for listablesettings -->
		<AppSettingsSection v-if="canFullModerate"
			:title="t('spreed', 'Conversation settings')">
			<ListableSettings :token="token" />
			<LockingSettings :token="token" />
		</AppSettingsSection>

		<!-- Conversation permissions -->
		<AppSettingsSection v-if="canFullModerate"
			:title="t('spreed', 'Participants permissions')">
			<ConversationPermissionsSettings :token="token" />
		</AppSettingsSection>

		<!-- Meeting settings -->
		<AppSettingsSection v-if="canFullModerate"
			:title="t('spreed', 'Meeting settings')">
			<LobbySettings :token="token" />
			<SipSettings v-if="canUserEnableSIP" />
		</AppSettingsSection>
		<AppSettingsSection v-if="canFullModerate && matterbridgeEnabled"
			:title="t('spreed', 'Matterbridge')">
			<MatterbridgeSettings />
		</AppSettingsSection>

		<!-- Destructive actions -->
		<AppSettingsSection v-if="canLeaveConversation || canDeleteConversation"
			:title="t('spreed', 'Danger zone')">
			<DangerZone :conversation="conversation"<commit_msg>Fix anchors in conversation settings<commit_after><!--
  - @copyright Copyright (c) 2020 <NAME> <<EMAIL>>
  -
  - @author <NAME> <<EMAIL>>
  -
  - @license GNU AGPL version 3 or any later version
  -
  - This program is free software: you can redistribute it and/or modify
  - it under the terms of the GNU Affero General Public License as
  - published by the Free Software Foundation, either version 3 of the
  - License, or (at your option) any later version.
  -
  - This program is distributed in the hope that it will be useful,
  - but WITHOUT ANY WARRANTY; without even the implied warranty of
  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  - GNU Affero General Public License for more details.
  -
  - You should have received a copy of the GNU Affero General Public License
  - along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<template>
	<AppSettingsDialog role="dialog"
		:aria-label="t('spreed', 'Conversation settings')"
		:open.sync="showSettings"
		:show-navigation="true"
		:container="container">
		<!-- description -->
		<AppSettingsSection v-if="showDescription"
			id="description"
			:title="t('spreed', 'Description')">
			<Description :editable="canFullModerate"
				:description="description"
				:editing="isEditingDescription"
				:loading="isDescriptionLoading"
				:placeholder="t('spreed', 'Enter a description for this conversation')"
				@submit-description="handleUpdateDescription"
				@update:editing="handleEditDescription" />
		</AppSettingsSection>

		<!-- Notifications settings -->
		<AppSettingsSection id="notifications"
			:title="t('spreed', 'Notifications')">
			<NotificationsSettings :conversation="conversation" />
		</AppSettingsSection>

		<!-- Devices preview sceren -->
		<AppSettingsSection id="device-checker"
			:title="t('spreed', 'Device check')">
			<CheckboxRadioSwitch :checked.sync="showDeviceChecker">
				{{ t('spreed', 'Always show the device preview screen before joining a call in this conversation.') }}
			</CheckboxRadioSwitch>
		</AppSettingsSection>

		<!-- Guest access -->
		<AppSettingsSection v-if="canFullModerate"
			id="guests"
			:title="t('spreed', 'Guests access')">
			<LinkShareSettings ref="linkShareSettings" />
		</AppSettingsSection>

		<!-- TODO sepatate these 2 settings and rename the settings sections
		all the settings in this component are conversation settings. Proposal:
		move lock conversation in destructive actions and create a separate
		section for listablesettings -->
		<AppSettingsSection v-if="canFullModerate"
			id="conversation-settings"
			:title="t('spreed', 'Conversation settings')">
			<ListableSettings :token="token" />
			<LockingSettings :token="token" />
		</AppSettingsSection>

		<!-- Conversation permissions -->
		<AppSettingsSection v-if="canFullModerate"
			id="permissions"
			:title="t('spreed', 'Participants permissions')">
			<ConversationPermissionsSettings :token="token" />
		</AppSettingsSection>

		<!-- Meeting settings -->
		<AppSettingsSection v-if="canFullModerate"
			id="meeting"
			:title="t('spreed', 'Meeting settings')">
			<LobbySettings :token="token" />
			<SipSettings v-if="canUserEnableSIP" />
		</AppSettingsSection>
		<AppSettingsSection v-if="canFullModerate && matterbridgeEnabled"
			:title="t('spreed', 'Matterbridge')">
			<MatterbridgeSettings />
		</AppSettingsSection>

		<!-- Destructive actions -->
		<AppSettingsSection v-if="canLeaveConversation || canDeleteConversation"
			id="dangerzone"
			:title="t('spreed', 'Danger zone')">
			<DangerZone :conversation="conversation"
{'fraction_non_alphanumeric': 0.1326647564469914, 'fraction_numerical': 0.0020057306590257878, 'mean_word_length': 4.501182033096927, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7590102', 'n_tokens_mistral': 2212, 'n_tokens_neox': 1959, 'n_words': 561}