import "../components/image_picker.js"; import spinner from "./spinner.js"; import { __ } from '@converse/headless/i18n'; import { _converse, converse } from "@converse/headless/converse-core"; import { html } from "lit-html"; import { modal_header_close_button } from "./buttons"; const u = converse.env.utils; const heading_profile = __('Your Profile'); const i18n_fingerprint_checkbox_label = __('Checkbox for selecting the following fingerprint'); const i18n_device_without_fingerprint = __('Device without a fingerprint'); const i18n_email = __('Email'); const i18n_fingerprint = __("This device's OMEMO fingerprint"); const i18n_fullname = __('Full Name'); const i18n_generate = __('Generate new keys and fingerprint'); const i18n_jid = __('XMPP Address (JID)'); const i18n_nickname = __('Nickname'); const i18n_other_devices = __('Other OMEMO-enabled devices'); const i18n_other_devices_label = __('Checkbox to select fingerprints of all other OMEMO devices'); const i18n_remove_devices = __('Remove checked devices and close'); const i18n_role = __('Role'); const i18n_save = __('Save and close'); const i18n_select_all = __('Select all'); const i18n_role_help = __('Use commas to separate multiple roles. Your roles are shown next to your name on your chat messages.'); const i18n_url = __('URL'); const i18n_omemo = __('OMEMO'); const i18n_profile = __('Profile'); const navigation = html`
`; const fingerprint = (o) => html` ${u.formatFingerprint(o.view.current_device.get('bundle').fingerprint)}`; const device_with_fingerprint = (o) => html`