snappymail/dev/View/Popup/Contacts.js

696 lines
17 KiB
JavaScript
Raw Normal View History

import window from 'window';
import _ from '_';
import $ from '$';
import ko from 'ko';
import key from 'key';
import Jua from 'Jua';
import {
2019-07-05 03:19:24 +08:00
SaveSettingsStep,
ContactPropertyType,
ComposeType,
Capa,
Magics,
StorageResultType,
Notification,
KeyState
} from 'Common/Enums';
import {
2019-07-05 03:19:24 +08:00
delegateRunOnDestroy,
computedPagenatorHelper,
inArray,
trim,
windowResizeCallback,
isNonEmptyArray,
fakeMd5,
pInt,
isUnd
} from 'Common/Utils';
2019-07-05 03:19:24 +08:00
import { CONTACTS_PER_PAGE } from 'Common/Consts';
import { bMobileDevice } from 'Common/Globals';
2019-07-05 03:19:24 +08:00
import { Selector } from 'Common/Selector';
import { exportContactsVcf, exportContactsCsv, uploadContacts } from 'Common/Links';
import { i18n, getNotification } from 'Common/Translator';
import SettingsStore from 'Stores/User/Settings';
import ContactStore from 'Stores/User/Contact';
import Remote from 'Remote/User/Ajax';
import * as Settings from 'Storage/Settings';
2019-07-05 03:19:24 +08:00
import { EmailModel } from 'Model/Email';
import { ContactModel } from 'Model/Contact';
import { ContactPropertyModel } from 'Model/ContactProperty';
2019-07-05 03:19:24 +08:00
import { getApp } from 'Helper/Apps/User';
2019-07-05 03:19:24 +08:00
import { popup, command, showScreenPopup, hideScreenPopup, routeOn, routeOff } from 'Knoin/Knoin';
import { AbstractViewNext } from 'Knoin/AbstractViewNext';
2016-09-10 06:38:16 +08:00
@popup({
name: 'View/Popup/Contacts',
templateID: 'PopupsContacts'
})
2019-07-05 03:19:24 +08:00
class ContactsPopupView extends AbstractViewNext {
constructor() {
super();
2019-07-05 03:19:24 +08:00
const fFastClearEmptyListHelper = (list) => {
if (list && 0 < list.length) {
this.viewProperties.removeAll(list);
delegateRunOnDestroy(list);
}
};
this.bBackToCompose = false;
this.sLastComposeFocusedField = '';
this.allowContactsSync = ContactStore.allowContactsSync;
this.enableContactsSync = ContactStore.enableContactsSync;
this.allowExport = !bMobileDevice;
this.search = ko.observable('');
this.contactsCount = ko.observable(0);
this.contacts = ContactStore.contacts;
this.currentContact = ko.observable(null);
this.importUploaderButton = ko.observable(null);
this.contactsPage = ko.observable(1);
this.contactsPageCount = ko.computed(() => {
const iPage = window.Math.ceil(this.contactsCount() / CONTACTS_PER_PAGE);
return 0 >= iPage ? 1 : iPage;
});
2016-06-30 08:02:45 +08:00
this.contactsPagenator = ko.computed(computedPagenatorHelper(this.contactsPage, this.contactsPageCount));
2016-06-30 08:02:45 +08:00
this.emptySelection = ko.observable(true);
this.viewClearSearch = ko.observable(false);
2016-06-30 08:02:45 +08:00
this.viewID = ko.observable('');
this.viewReadOnly = ko.observable(false);
this.viewProperties = ko.observableArray([]);
2016-06-30 08:02:45 +08:00
this.viewSaveTrigger = ko.observable(SaveSettingsStep.Idle);
2016-06-30 08:02:45 +08:00
this.viewPropertiesNames = this.viewProperties.filter(
(property) => -1 < inArray(property.type(), [ContactPropertyType.FirstName, ContactPropertyType.LastName])
);
2016-06-30 08:02:45 +08:00
2019-07-05 03:09:27 +08:00
// this.viewPropertiesOther = this.viewProperties.filter(
// (property) => -1 < inArray(property.type(), [ContactPropertyType.Note])
// );
2016-06-30 08:02:45 +08:00
this.viewPropertiesOther = ko.computed(() => {
2019-07-05 03:19:24 +08:00
const list = _.filter(
this.viewProperties(),
(property) => -1 < inArray(property.type(), [ContactPropertyType.Nick])
);
return _.sortBy(list, (property) => property.type());
2014-08-21 23:08:34 +08:00
});
2019-07-05 03:19:24 +08:00
this.viewPropertiesEmails = this.viewProperties.filter((property) => ContactPropertyType.Email === property.type());
2019-07-05 03:19:24 +08:00
this.viewPropertiesWeb = this.viewProperties.filter((property) => ContactPropertyType.Web === property.type());
this.viewHasNonEmptyRequaredProperties = ko.computed(() => {
2019-07-05 03:19:24 +08:00
const names = this.viewPropertiesNames(),
emails = this.viewPropertiesEmails(),
fFilter = (property) => '' !== trim(property.value());
return !!(_.find(names, fFilter) || _.find(emails, fFilter));
});
2019-07-05 03:19:24 +08:00
this.viewPropertiesPhones = this.viewProperties.filter((property) => ContactPropertyType.Phone === property.type());
2019-07-05 03:19:24 +08:00
this.viewPropertiesEmailsNonEmpty = this.viewPropertiesNames.filter((property) => '' !== trim(property.value()));
this.viewPropertiesEmailsEmptyAndOnFocused = this.viewPropertiesEmails.filter((property) => {
const foc = property.focused();
return '' === trim(property.value()) && !foc;
});
this.viewPropertiesPhonesEmptyAndOnFocused = this.viewPropertiesPhones.filter((property) => {
const foc = property.focused();
return '' === trim(property.value()) && !foc;
});
this.viewPropertiesWebEmptyAndOnFocused = this.viewPropertiesWeb.filter((property) => {
const foc = property.focused();
return '' === trim(property.value()) && !foc;
2016-06-30 08:02:45 +08:00
});
2019-07-05 03:19:24 +08:00
this.viewPropertiesOtherEmptyAndOnFocused = ko.computed(() =>
_.filter(this.viewPropertiesOther(), (property) => {
const foc = property.focused();
return '' === trim(property.value()) && !foc;
})
);
this.viewPropertiesEmailsEmptyAndOnFocused.subscribe((list) => {
fFastClearEmptyListHelper(list);
});
this.viewPropertiesPhonesEmptyAndOnFocused.subscribe((list) => {
fFastClearEmptyListHelper(list);
});
this.viewPropertiesWebEmptyAndOnFocused.subscribe((list) => {
fFastClearEmptyListHelper(list);
});
this.viewPropertiesOtherEmptyAndOnFocused.subscribe((list) => {
fFastClearEmptyListHelper(list);
2016-06-30 08:02:45 +08:00
});
this.viewSaving = ko.observable(false);
this.useCheckboxesInList = SettingsStore.useCheckboxesInList;
this.search.subscribe(() => {
this.reloadContactList();
});
this.contacts.subscribe(windowResizeCallback);
this.viewProperties.subscribe(windowResizeCallback);
2014-08-21 23:08:34 +08:00
2019-07-05 03:19:24 +08:00
this.contactsChecked = ko.computed(() => _.filter(this.contacts(), (item) => item.checked()));
2014-08-21 23:08:34 +08:00
this.contactsCheckedOrSelected = ko.computed(() => {
2019-07-05 03:19:24 +08:00
const checked = this.contactsChecked(),
selected = this.currentContact();
return _.union(checked, selected ? [selected] : []);
});
2019-07-05 03:19:24 +08:00
this.contactsCheckedOrSelectedUids = ko.computed(() =>
_.map(this.contactsCheckedOrSelected(), (contact) => contact.idContact)
);
this.selector = new Selector(
2019-07-05 03:19:24 +08:00
this.contacts,
this.currentContact,
null,
'.e-contact-item .actionHandle',
'.e-contact-item.selected',
'.e-contact-item .checkboxItem',
'.e-contact-item.focused'
);
2015-02-16 05:55:59 +08:00
this.selector.on('onItemSelect', (contact) => {
this.populateViewContact(contact ? contact : null);
2019-07-05 03:19:24 +08:00
if (!contact) {
this.emptySelection(true);
}
});
this.selector.on('onItemGetUid', (contact) => (contact ? contact.generateUid() : ''));
2016-09-10 06:38:16 +08:00
this.bDropPageAfterDelete = false;
2015-02-16 05:55:59 +08:00
2016-09-10 06:38:16 +08:00
this.watchDirty = ko.observable(false);
this.watchHash = ko.observable(false);
2015-02-16 05:55:59 +08:00
2016-09-10 06:38:16 +08:00
this.viewHash = ko.computed(() => '' + _.map(this.viewProperties(), (oItem) => oItem.value()).join(''));
// this.saveCommandDebounce = _.debounce(_.bind(this.saveCommand, this), 1000);
2016-09-10 06:38:16 +08:00
this.viewHash.subscribe(() => {
2019-07-05 03:19:24 +08:00
if (this.watchHash() && !this.viewReadOnly() && !this.watchDirty()) {
2016-09-10 06:38:16 +08:00
this.watchDirty(true);
}
2016-09-10 06:38:16 +08:00
});
2016-09-10 06:38:16 +08:00
this.sDefaultKeyScope = KeyState.ContactList;
}
2016-09-10 06:38:16 +08:00
@command()
newCommand() {
this.populateViewContact(null);
this.currentContact(null);
}
2016-09-10 06:38:16 +08:00
@command((self) => 0 < self.contactsCheckedOrSelected().length)
deleteCommand() {
this.deleteSelectedContacts();
this.emptySelection(true);
}
2016-09-10 06:38:16 +08:00
@command((self) => 0 < self.contactsCheckedOrSelected().length)
newMessageCommand() {
2019-07-05 03:19:24 +08:00
if (!Settings.capa(Capa.Composer)) {
2016-09-10 06:38:16 +08:00
return false;
}
2019-07-05 03:19:24 +08:00
let aE = [],
2016-09-10 06:38:16 +08:00
toEmails = null,
ccEmails = null,
bccEmails = null;
2016-09-10 06:38:16 +08:00
const aC = this.contactsCheckedOrSelected();
2019-07-05 03:19:24 +08:00
if (isNonEmptyArray(aC)) {
2016-09-10 06:38:16 +08:00
aE = _.map(aC, (oItem) => {
2019-07-05 03:19:24 +08:00
if (oItem) {
const data = oItem.getNameAndEmailHelper(),
2016-09-10 06:38:16 +08:00
email = data ? new EmailModel(data[0], data[1]) : null;
2019-07-05 03:19:24 +08:00
if (email && email.validate()) {
2016-09-10 06:38:16 +08:00
return email;
}
}
2014-08-21 23:08:34 +08:00
2016-09-10 06:38:16 +08:00
return null;
});
2016-09-10 06:38:16 +08:00
aE = _.compact(aE);
}
2019-07-05 03:19:24 +08:00
if (isNonEmptyArray(aE)) {
2016-09-10 06:38:16 +08:00
this.bBackToCompose = false;
2017-07-06 07:49:12 +08:00
hideScreenPopup(ContactsPopupView);
2013-12-23 08:06:48 +08:00
2019-07-05 03:19:24 +08:00
switch (this.sLastComposeFocusedField) {
2016-09-10 06:38:16 +08:00
case 'cc':
ccEmails = aE;
break;
case 'bcc':
bccEmails = aE;
break;
case 'to':
default:
toEmails = aE;
break;
}
2016-09-10 06:38:16 +08:00
this.sLastComposeFocusedField = '';
2016-09-10 06:38:16 +08:00
_.delay(() => {
showScreenPopup(require('View/Popup/Compose'), [ComposeType.Empty, null, toEmails, ccEmails, bccEmails]);
}, Magics.Time200ms);
}
2016-09-10 06:38:16 +08:00
return true;
}
2016-09-10 06:38:16 +08:00
@command()
clearCommand() {
this.search('');
}
2014-08-21 23:08:34 +08:00
2016-09-10 06:38:16 +08:00
@command((self) => {
2019-07-05 03:19:24 +08:00
const bV = self.viewHasNonEmptyRequaredProperties(),
2016-09-10 06:38:16 +08:00
bReadOnly = self.viewReadOnly();
return !self.viewSaving() && bV && !bReadOnly;
})
saveCommand() {
this.viewSaving(true);
this.viewSaveTrigger(SaveSettingsStep.Animate);
2014-08-21 23:08:34 +08:00
2019-07-05 03:19:24 +08:00
const requestUid = fakeMd5(),
2016-09-10 06:38:16 +08:00
properties = [];
2016-09-10 06:38:16 +08:00
_.each(this.viewProperties(), (oItem) => {
2019-07-05 03:19:24 +08:00
if (oItem.type() && oItem.type() !== ContactPropertyType.FullName && '' !== trim(oItem.value())) {
2016-09-10 06:38:16 +08:00
properties.push([oItem.type(), oItem.value(), oItem.typeStr()]);
}
});
2019-07-05 03:19:24 +08:00
Remote.contactSave(
(sResult, oData) => {
let res = false;
this.viewSaving(false);
if (
StorageResultType.Success === sResult &&
oData &&
oData.Result &&
oData.Result.RequestUid === requestUid &&
0 < pInt(oData.Result.ResultID)
) {
if ('' === this.viewID()) {
this.viewID(pInt(oData.Result.ResultID));
}
2019-07-05 03:19:24 +08:00
this.reloadContactList();
res = true;
}
2016-09-10 06:38:16 +08:00
_.delay(() => {
2019-07-05 03:19:24 +08:00
this.viewSaveTrigger(res ? SaveSettingsStep.TrueResult : SaveSettingsStep.FalseResult);
}, Magics.Time350ms);
2019-07-05 03:19:24 +08:00
if (res) {
this.watchDirty(false);
_.delay(() => {
this.viewSaveTrigger(SaveSettingsStep.Idle);
}, Magics.Time1s);
}
},
requestUid,
this.viewID(),
properties
);
2016-09-10 06:38:16 +08:00
}
2016-09-10 06:38:16 +08:00
@command((self) => !self.contacts.syncing() && !self.contacts.importing())
syncCommand() {
getApp().contactsSync((result, data) => {
2019-07-05 03:19:24 +08:00
if (StorageResultType.Success !== result || !data || !data.Result) {
window.alert(getNotification(data && data.ErrorCode ? data.ErrorCode : Notification.ContactsSyncError));
}
2016-06-30 08:02:45 +08:00
2016-09-10 06:38:16 +08:00
this.reloadContactList(true);
});
2016-06-30 08:02:45 +08:00
}
getPropertyPlaceholder(type) {
let result = '';
2019-07-05 03:19:24 +08:00
switch (type) {
case ContactPropertyType.LastName:
result = 'CONTACTS/PLACEHOLDER_ENTER_LAST_NAME';
break;
case ContactPropertyType.FirstName:
result = 'CONTACTS/PLACEHOLDER_ENTER_FIRST_NAME';
break;
case ContactPropertyType.Nick:
result = 'CONTACTS/PLACEHOLDER_ENTER_NICK_NAME';
break;
// no default
}
2014-08-21 23:08:34 +08:00
return result;
2016-06-30 08:02:45 +08:00
}
addNewProperty(type, typeStr) {
2019-07-05 03:19:24 +08:00
this.viewProperties.push(
new ContactPropertyModel(type, typeStr || '', '', true, this.getPropertyPlaceholder(type))
);
2016-06-30 08:02:45 +08:00
}
addNewOrFocusProperty(type, typeStr) {
const item = _.find(this.viewProperties(), (prop) => type === prop.type());
2019-07-05 03:19:24 +08:00
if (item) {
item.focused(true);
2019-07-05 03:19:24 +08:00
} else {
this.addNewProperty(type, typeStr);
}
}
2016-06-30 08:02:45 +08:00
addNewEmail() {
this.addNewProperty(ContactPropertyType.Email, 'Home');
}
2016-06-30 08:02:45 +08:00
addNewPhone() {
this.addNewProperty(ContactPropertyType.Phone, 'Mobile');
}
2016-06-30 08:02:45 +08:00
addNewWeb() {
this.addNewProperty(ContactPropertyType.Web);
}
2016-06-30 08:02:45 +08:00
addNewNickname() {
this.addNewOrFocusProperty(ContactPropertyType.Nick);
}
2016-06-30 08:02:45 +08:00
addNewNotes() {
this.addNewOrFocusProperty(ContactPropertyType.Note);
}
2016-06-30 08:02:45 +08:00
addNewBirthday() {
this.addNewOrFocusProperty(ContactPropertyType.Birthday);
}
2016-06-30 08:02:45 +08:00
exportVcf() {
getApp().download(exportContactsVcf());
}
2016-06-30 08:02:45 +08:00
exportCsv() {
getApp().download(exportContactsCsv());
}
initUploader() {
2019-07-05 03:19:24 +08:00
if (this.importUploaderButton()) {
const j = new Jua({
'action': uploadContacts(),
'name': 'uploader',
'queueSize': 1,
'multipleSizeLimit': 1,
'disableDragAndDrop': true,
'disableMultiple': true,
'disableDocumentDropPrevent': true,
'clickElement': this.importUploaderButton()
});
2019-07-05 03:19:24 +08:00
if (j) {
j.on('onStart', () => {
this.contacts.importing(true);
}).on('onComplete', (id, result, data) => {
this.contacts.importing(false);
this.reloadContactList();
if (!id || !result || !data || !data.Result) {
window.alert(i18n('CONTACTS/ERROR_IMPORT_FILE'));
}
});
}
2014-08-21 23:08:34 +08:00
}
2016-06-30 08:02:45 +08:00
}
removeCheckedOrSelectedContactsFromList() {
2019-07-05 03:19:24 +08:00
const koContacts = this.contacts,
contacts = this.contactsCheckedOrSelected();
2014-08-21 23:08:34 +08:00
2019-07-05 03:19:24 +08:00
let currentContact = this.currentContact(),
count = this.contacts().length;
2019-07-05 03:19:24 +08:00
if (0 < contacts.length) {
_.each(contacts, (contact) => {
2019-07-05 03:19:24 +08:00
if (currentContact && currentContact.idContact === contact.idContact) {
currentContact = null;
this.currentContact(null);
}
contact.deleted(true);
count -= 1;
2016-06-30 08:02:45 +08:00
});
2019-07-05 03:19:24 +08:00
if (0 >= count) {
this.bDropPageAfterDelete = true;
}
_.delay(() => {
_.each(contacts, (contact) => {
koContacts.remove(contact);
delegateRunOnDestroy(contact);
});
}, Magics.Time500ms);
}
2016-06-30 08:02:45 +08:00
}
2014-08-21 23:08:34 +08:00
deleteSelectedContacts() {
2019-07-05 03:19:24 +08:00
if (0 < this.contactsCheckedOrSelected().length) {
Remote.contactsDelete(_.bind(this.deleteResponse, this), this.contactsCheckedOrSelectedUids());
2014-08-21 23:08:34 +08:00
this.removeCheckedOrSelectedContactsFromList();
}
2016-06-30 08:02:45 +08:00
}
/**
* @param {string} sResult
* @param {AjaxJsonDefaultResponse} oData
*/
deleteResponse(sResult, oData) {
2019-07-05 03:19:24 +08:00
if (Magics.Time500ms < (StorageResultType.Success === sResult && oData && oData.Time ? pInt(oData.Time) : 0)) {
this.reloadContactList(this.bDropPageAfterDelete);
2019-07-05 03:19:24 +08:00
} else {
_.delay(() => {
this.reloadContactList(this.bDropPageAfterDelete);
}, Magics.Time500ms);
}
2016-06-30 08:02:45 +08:00
}
removeProperty(oProp) {
this.viewProperties.remove(oProp);
delegateRunOnDestroy(oProp);
2016-06-30 08:02:45 +08:00
}
/**
* @param {?ContactModel} contact
*/
populateViewContact(contact) {
2019-07-05 03:19:24 +08:00
let id = '',
lastName = '',
firstName = '';
2019-07-05 03:19:24 +08:00
const list = [];
this.watchHash(false);
this.emptySelection(false);
this.viewReadOnly(false);
2019-07-05 03:19:24 +08:00
if (contact) {
id = contact.idContact;
2019-07-05 03:19:24 +08:00
if (isNonEmptyArray(contact.properties)) {
_.each(contact.properties, (property) => {
2019-07-05 03:19:24 +08:00
if (property && property[0]) {
if (ContactPropertyType.LastName === property[0]) {
lastName = property[1];
2019-07-05 03:19:24 +08:00
} else if (ContactPropertyType.FirstName === property[0]) {
firstName = property[1];
2019-07-05 03:19:24 +08:00
} else {
list.push(new ContactPropertyModel(property[0], property[2] || '', property[1]));
}
2016-06-30 08:02:45 +08:00
}
});
}
this.viewReadOnly(!!contact.readOnly);
2014-08-21 23:08:34 +08:00
}
2019-07-05 03:19:24 +08:00
list.unshift(
new ContactPropertyModel(
ContactPropertyType.LastName,
'',
lastName,
false,
this.getPropertyPlaceholder(ContactPropertyType.LastName)
)
);
2019-07-05 03:19:24 +08:00
list.unshift(
new ContactPropertyModel(
ContactPropertyType.FirstName,
'',
firstName,
!contact,
this.getPropertyPlaceholder(ContactPropertyType.FirstName)
)
);
this.viewID(id);
2014-10-04 19:58:01 +08:00
delegateRunOnDestroy(this.viewProperties());
2014-10-04 19:58:01 +08:00
this.viewProperties([]);
this.viewProperties(list);
this.watchDirty(false);
this.watchHash(true);
}
/**
* @param {boolean=} dropPagePosition = false
*/
reloadContactList(dropPagePosition = false) {
let offset = (this.contactsPage() - 1) * CONTACTS_PER_PAGE;
2014-08-21 23:08:34 +08:00
this.bDropPageAfterDelete = false;
2016-06-30 08:02:45 +08:00
2019-07-05 03:19:24 +08:00
if (dropPagePosition) {
this.contactsPage(1);
offset = 0;
}
2014-08-21 23:08:34 +08:00
this.contacts.loading(true);
2019-07-05 03:19:24 +08:00
Remote.contacts(
(result, data) => {
let count = 0,
list = [];
if (StorageResultType.Success === result && data && data.Result && data.Result.List) {
if (isNonEmptyArray(data.Result.List)) {
list = _.map(data.Result.List, (item) => {
const contact = new ContactModel();
return contact.parse(item) ? contact : null;
});
list = _.compact(list);
count = pInt(data.Result.Count);
count = 0 < count ? count : 0;
}
}
2019-07-05 03:19:24 +08:00
this.contactsCount(count);
2019-07-05 03:19:24 +08:00
delegateRunOnDestroy(this.contacts());
this.contacts(list);
2019-07-05 03:19:24 +08:00
this.contacts.loading(false);
this.viewClearSearch('' !== this.search());
},
offset,
CONTACTS_PER_PAGE,
this.search()
);
}
onBuild(dom) {
this.oContentVisible = $('.b-list-content', dom);
this.oContentScrollable = $('.content', this.oContentVisible);
this.selector.init(this.oContentVisible, this.oContentScrollable, KeyState.ContactList);
key('delete', KeyState.ContactList, () => {
this.deleteCommand();
return false;
});
2016-06-30 08:02:45 +08:00
key('c, w', KeyState.ContactList, () => {
this.newMessageCommand();
return false;
});
const self = this;
2014-08-21 23:08:34 +08:00
2019-07-05 03:19:24 +08:00
dom.on('click', '.e-pagenator .e-page', function() {
// eslint-disable-line prefer-arrow-callback
const page = ko.dataFor(this); // eslint-disable-line no-invalid-this
if (page) {
self.contactsPage(pInt(page.value));
self.reloadContactList();
}
});
2014-08-21 23:08:34 +08:00
this.initUploader();
}
onShow(bBackToCompose, sLastComposeFocusedField) {
this.bBackToCompose = isUnd(bBackToCompose) ? false : !!bBackToCompose;
this.sLastComposeFocusedField = isUnd(sLastComposeFocusedField) ? '' : sLastComposeFocusedField;
routeOff();
this.reloadContactList(true);
}
2014-08-21 23:08:34 +08:00
onHide() {
routeOn();
2015-02-16 05:55:59 +08:00
this.currentContact(null);
this.emptySelection(true);
this.search('');
this.contactsCount(0);
2014-10-04 19:58:01 +08:00
delegateRunOnDestroy(this.contacts());
this.contacts([]);
this.sLastComposeFocusedField = '';
2015-02-16 05:55:59 +08:00
2019-07-05 03:19:24 +08:00
if (this.bBackToCompose) {
this.bBackToCompose = false;
2019-07-05 03:19:24 +08:00
if (Settings.capa(Capa.Composer)) {
showScreenPopup(require('View/Popup/Compose'));
}
}
2016-06-30 08:02:45 +08:00
}
}
2019-07-05 03:19:24 +08:00
export { ContactsPopupView, ContactsPopupView as default };