fcr-ui-scene-mobile 3.4.2 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,14 @@
1
1
  "use strict";
2
2
 
3
3
  require("core-js/modules/es.object.define-property.js");
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.FcrMobileMeetingInfo = void 0;
9
- require("core-js/modules/es.array.concat.js");
10
8
  require("core-js/modules/es.array.map.js");
11
9
  require("core-js/modules/esnext.async-iterator.map.js");
12
10
  require("core-js/modules/esnext.iterator.map.js");
13
11
  require("./index.css");
14
- var _dayjs = _interopRequireDefault(require("dayjs"));
15
12
  var _react = require("react");
16
13
  var _context = require("../../context");
17
14
  var _icon = require("agora-ui-foundation/lib/components/icon");
@@ -20,6 +17,8 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
20
17
  var _globalContext = require("../../../../common/global-context");
21
18
  var _mobxReact = require("mobx-react");
22
19
  var _copy = require("./copy");
20
+ var _tools = require("../../../../utilities/tools");
21
+ var _meetingDetailMessage = require("../../../../utilities/meeting-detail-message");
23
22
  var _jsxRuntime = require("react/jsx-runtime");
24
23
  var FcrMobileCopyIcon = function FcrMobileCopyIcon(_ref) {
25
24
  var onClick = _ref.onClick;
@@ -37,26 +36,22 @@ var FcrMobileCopyIcon = function FcrMobileCopyIcon(_ref) {
37
36
  });
38
37
  };
39
38
  var FcrMobileMeetingInfo = exports.FcrMobileMeetingInfo = (0, _mobxReact.observer)(function () {
40
- var _scheduleInfo$startTi;
41
39
  var _useContext = (0, _react.useContext)(_context.StoreContext),
42
40
  roomInfo = _useContext.roomInfo,
43
41
  localUser = _useContext.localUser,
44
42
  scheduleInfo = _useContext.scheduleInfo,
45
43
  getShareLink = _useContext.getShareLink,
46
- password = _useContext.password;
44
+ password = _useContext.password,
45
+ meetingId = _useContext.meetingId;
47
46
  var _useContext2 = (0, _react.useContext)(_globalContext.FcrMobileGlobalContext),
48
47
  participantStore = _useContext2.participantStore,
49
48
  securityStore = _useContext2.securityStore;
50
49
  var hostList = participantStore.hostList;
51
50
  var isLockRoomEnabled = securityStore.isLockRoomEnabled;
52
51
  var shareLink = getShareLink();
53
- var detailText = (0, _i18n.transI18n)('fmt_link_invitation', {
54
- reason1: localUser === null || localUser === void 0 ? void 0 : localUser.userName,
55
- reason2: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomName,
56
- reason3: (0, _dayjs["default"])((_scheduleInfo$startTi = scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) !== null && _scheduleInfo$startTi !== void 0 ? _scheduleInfo$startTi : 0).format('YYYY-MM-DD HH:mm:ss'),
57
- reason4: shareLink,
58
- reason5: !!password ? "".concat((0, _i18n.transI18n)('fmt_meeting_creatpage_label_password'), ": ").concat(password) : ''
59
- });
52
+ var displayMeetingId = (0, _tools.renderMeetingId)(meetingId, (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '');
53
+ var meetingValueId = meetingId !== null && meetingId !== void 0 ? meetingId : roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId;
54
+ var detailText = (0, _meetingDetailMessage.generateMeetingDetail)((localUser === null || localUser === void 0 ? void 0 : localUser.userName) || '', (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomName) || '', (0, _meetingDetailMessage.generateMeetingDuration)((scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) || 0, (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.duration) || 0), shareLink, displayMeetingId, (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.password) || '');
60
55
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
61
56
  className: "fcr-mobile-meeting-detail-theme",
62
57
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
@@ -115,41 +110,41 @@ var FcrMobileMeetingInfo = exports.FcrMobileMeetingInfo = (0, _mobxReact.observe
115
110
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
116
111
  className: "fcr-mobile-cfg-card-item-action weight",
117
112
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
118
- children: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId
113
+ children: meetingValueId
119
114
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(FcrMobileCopyIcon, {
120
115
  onClick: function onClick() {
121
- return (0, _copy.handleCopyMeetingId)(roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId);
116
+ return (0, _copy.handleCopyMeetingId)(meetingValueId);
122
117
  }
123
118
  })]
124
119
  })]
125
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
120
+ }), !!password && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
126
121
  className: "fcr-mobile-meeting-details-card-item border",
127
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
122
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
128
123
  className: "fcr-mobile-cfg-card-item-label",
129
- children: (0, _i18n.transI18n)('fmt_sharing_label_invitationlink')
124
+ children: (0, _i18n.transI18n)('fmt_meetinginfo_label_code')
130
125
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
131
126
  className: "fcr-mobile-cfg-card-item-action weight",
132
127
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
133
- className: "fcr-mobile-cfg-card-item-share-link",
134
- children: shareLink
128
+ children: password
135
129
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(FcrMobileCopyIcon, {
136
130
  onClick: function onClick() {
137
- return (0, _copy.handleCopyMeetingInviteLink)(shareLink);
131
+ return (0, _copy.handleCopyMeetingPassword)(password !== null && password !== void 0 ? password : '');
138
132
  }
139
133
  })]
140
134
  })]
141
- }), !!password && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
135
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
142
136
  className: "fcr-mobile-meeting-details-card-item",
143
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
137
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
144
138
  className: "fcr-mobile-cfg-card-item-label",
145
- children: (0, _i18n.transI18n)('fmt_meetinginfo_label_code')
139
+ children: (0, _i18n.transI18n)('fmt_sharing_label_invitationlink')
146
140
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
147
141
  className: "fcr-mobile-cfg-card-item-action weight",
148
142
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
149
- children: password
143
+ className: "fcr-mobile-cfg-card-item-share-link",
144
+ children: shareLink
150
145
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(FcrMobileCopyIcon, {
151
146
  onClick: function onClick() {
152
- return (0, _copy.handleCopyMeetingPassword)(password !== null && password !== void 0 ? password : '');
147
+ return (0, _copy.handleCopyMeetingInviteLink)(shareLink);
153
148
  }
154
149
  })]
155
150
  })]
@@ -39,6 +39,7 @@ export default class StateBarStore {
39
39
  get hasStopLiveStreamingPermission(): boolean;
40
40
  get hasGetLiveStreamingLinkPermission(): boolean;
41
41
  get password(): string | undefined;
42
+ get meetingId(): string | undefined;
42
43
  get inviteLink(): string;
43
44
  constructor({ roomControl, uiEventStore, securityStore, config, }: {
44
45
  roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
@@ -328,6 +328,11 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
328
328
  var _this$_roomControl$ge2;
329
329
  return (_this$_roomControl$ge2 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.password;
330
330
  }
331
+ }, {
332
+ key: "meetingId",
333
+ get: function get() {
334
+ return this._roomControl.getRoomPropertiesByKeyPath('meetingId');
335
+ }
331
336
  }, {
332
337
  key: "inviteLink",
333
338
  get: function get() {
@@ -542,7 +547,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
542
547
  }]);
543
548
  }();
544
549
  _StateBarStore = StateBarStore;
545
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_StateBarStore, [[_mobx.observable, 1, "networkStatus"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "scheduleInfo"], [_mobx.observable, 1, "isLiveStreaming"], [_mobx.observable, 1, "liveStreamingPlayUrl"], [_mobx.observable, 1, "galleryWidth"], [_mobx.observable, 1, "browserWidth"], [_mobx.observable, 1, "networkStats"], [_mobx.observable, 1, "attendeeCount"], [_mobx.observable, 1, "asideOpenedItem"], [_mobx.observable, 1, "layoutSize"], [_mobx.observable, 1, "layoutView"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "meetingDetailPopoverOpened"], [_mobx.computed, 3, "isUserHost"], [_mobx.computed, 3, "shouldShowMeetingTime"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingLinkPermission"], [_mobx.computed, 3, "password"], [_mobx.computed, 3, "inviteLink"], [_decorator.bound, 2, "isLockRoomEnabled"], [_setNetworkStatusDecs, 18, "setNetworkStatus"], [_setLocalUserDecs, 18, "setLocalUser"], [_setRoomInfoDecs, 18, "setRoomInfo"], [_setScheduleInfoDecs, 18, "setScheduleInfo"], [_mobx.action, 2, "refreshLayoutSize"], [_stopLiveStreamingDialogDecs, 18, "stopLiveStreamingDialog"], [_decorator.bound, 2, "startCloudRecording"], [_decorator.bound, 2, "pauseCloudRecording"], [_decorator.bound, 2, "resumeCloudRecording"], [_decorator.bound, 2, "stopCloudRecording"], [_decorator.bound, 2, "getShareLink"], [_decorator.bound, 2, "toastCopyInfo"], [_uiEventsDecs, 18, "_uiEvents"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLiveStreamingStateUpdatedDecs, 18, "_onLiveStreamingStateUpdated"], [_setMeetingDetailPopoverOpenedDecs, 18, "setMeetingDetailPopoverOpened"], [_decorator.bound, 2, "end"], [_decorator.bound, 2, "getRoomType"], [_decorator.bound, 2, "leave"]], []).e, 16);
550
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_StateBarStore, [[_mobx.observable, 1, "networkStatus"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "scheduleInfo"], [_mobx.observable, 1, "isLiveStreaming"], [_mobx.observable, 1, "liveStreamingPlayUrl"], [_mobx.observable, 1, "galleryWidth"], [_mobx.observable, 1, "browserWidth"], [_mobx.observable, 1, "networkStats"], [_mobx.observable, 1, "attendeeCount"], [_mobx.observable, 1, "asideOpenedItem"], [_mobx.observable, 1, "layoutSize"], [_mobx.observable, 1, "layoutView"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "meetingDetailPopoverOpened"], [_mobx.computed, 3, "isUserHost"], [_mobx.computed, 3, "shouldShowMeetingTime"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingLinkPermission"], [_mobx.computed, 3, "password"], [_mobx.computed, 3, "meetingId"], [_mobx.computed, 3, "inviteLink"], [_decorator.bound, 2, "isLockRoomEnabled"], [_setNetworkStatusDecs, 18, "setNetworkStatus"], [_setLocalUserDecs, 18, "setLocalUser"], [_setRoomInfoDecs, 18, "setRoomInfo"], [_setScheduleInfoDecs, 18, "setScheduleInfo"], [_mobx.action, 2, "refreshLayoutSize"], [_stopLiveStreamingDialogDecs, 18, "stopLiveStreamingDialog"], [_decorator.bound, 2, "startCloudRecording"], [_decorator.bound, 2, "pauseCloudRecording"], [_decorator.bound, 2, "resumeCloudRecording"], [_decorator.bound, 2, "stopCloudRecording"], [_decorator.bound, 2, "getShareLink"], [_decorator.bound, 2, "toastCopyInfo"], [_uiEventsDecs, 18, "_uiEvents"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLiveStreamingStateUpdatedDecs, 18, "_onLiveStreamingStateUpdated"], [_setMeetingDetailPopoverOpenedDecs, 18, "setMeetingDetailPopoverOpened"], [_decorator.bound, 2, "end"], [_decorator.bound, 2, "getRoomType"], [_decorator.bound, 2, "leave"]], []).e, 16);
546
551
  _init_networkStatus = _applyDecs$e[0];
547
552
  _init_localUser = _applyDecs$e[1];
548
553
  _init_roomInfo = _applyDecs$e[2];
@@ -740,6 +740,13 @@ export declare const enUs: {
740
740
  fmt_security_chat_with_hosts: string;
741
741
  fmt_security_tips_allow_write_board: string;
742
742
  fmt_security_tips_disallow_write_board: string;
743
+ fmt_failure_popup_label_startup_fail: string;
744
+ fmt_failure_popup_label_startup_check: string;
745
+ fmt_failure_popup_button_i_know: string;
746
+ fmt_failure_popup_label_crash: string;
747
+ fmt_failure_popup_label_crash_tips: string;
748
+ fmt_failure_popup_button_close_app: string;
749
+ fmt_failure_popup_button_refresh: string;
743
750
  fmt_settings_option_setting: string;
744
751
  fmt_settings_option_general: string;
745
752
  fmt_settings_option_about_us: string;
@@ -1474,6 +1481,7 @@ export declare const enUs: {
1474
1481
  fmt_interpretation_setting_popup_controller_option_change_comfirm: string;
1475
1482
  fmt_interpretation_popup_toast_interpretation_online: string;
1476
1483
  fmt_interpretation_popup_toast_interpreter_set_by_controller: string;
1484
+ fmt_interpretation_popup_toast_interpreter_set_by_co_controller: string;
1477
1485
  fmt_interpretation_sidebar_button_interpret: string;
1478
1486
  fmt_interpretation_sidebar_toast_choose_language: string;
1479
1487
  fmt_interpretation_sidebar_toast_hover_choose_language: string;
@@ -1579,6 +1587,12 @@ export declare const enUs: {
1579
1587
  fmt_meeting_creatpage_label_join_enter_password: string;
1580
1588
  fmt_meeting_creatpage_label_join_role: string;
1581
1589
  fmt_meeting_creatpage_label_join_attendee: string;
1590
+ fmt_meeting_creatpage_label_join_read_agree: string;
1591
+ fmt_meeting_creatpage_label_service: string;
1592
+ fmt_meeting_creatpage_label_privacy: string;
1593
+ fmt_meeting_creatpage_label_and: string;
1594
+ fmt_meeting_creatpage_tips_join_password_length: string;
1595
+ fmt_meeting_creatpage_tips_join_username_length: string;
1582
1596
  fmt_meeting_creatpage_button_quick_join_meeting: string;
1583
1597
  fmt_meeting_creatpage_label_join_agree_service: string;
1584
1598
  fmt_meeting_creatpage_popup_label_wrong_room_password: string;
@@ -1593,6 +1607,10 @@ export declare const enUs: {
1593
1607
  fmt_meeting_mainwindow_topbar_left_popup_label_all_info: string;
1594
1608
  fmt_meeting_call_voice_call_button_copy_info: string;
1595
1609
  fmt_link_invitation: string;
1610
+ fmt_link_invitation_topic: string;
1611
+ fmt_link_invitation_time: string;
1612
+ fmt_link_invitation_link: string;
1613
+ fmt_link_invitation_id: string;
1596
1614
  fmt_link_invitation_password: string;
1597
1615
  fmt_meeting_creatpage_toast_password_only_contain: string;
1598
1616
  fmt_meeting_creatpage_toast_password_only_six: string;
@@ -1824,6 +1842,8 @@ export declare const enUs: {
1824
1842
  fmt_mobile_mainwindow_group_down_popbar_ignore: string;
1825
1843
  fmt_mobile_group_breakout_room_label_join: string;
1826
1844
  fmt_mobile_chat_label_sent_to: string;
1845
+ fmt_mobile_chat_label_sent_to_meeting: string;
1846
+ fmt_mobile_chat_label_sent_to_waiting_room: string;
1827
1847
  fmt_mobile_chat_label_sent_to_all: string;
1828
1848
  fmt_mobile_group_breakout_room_label_message_sent: string;
1829
1849
  fmt_mobile_chat_label_breakout_group_message: string;
@@ -1852,4 +1872,8 @@ export declare const enUs: {
1852
1872
  fmt_h_label_tempor_hide_white_board: string;
1853
1873
  fmt_h_tips_host_enabled_waiting_room: string;
1854
1874
  fmt_h_tips_tap_to_play: string;
1875
+ fmt_pc_room_not_exist_error: string;
1876
+ fmt_lock_error: string;
1877
+ fmt_end_error: string;
1878
+ fmt_host_leave_error: string;
1855
1879
  };
@@ -161,7 +161,7 @@ var enUs = exports.enUs = {
161
161
  fmt_popup_tips_leavenow: 'Are you sure you want to leave the meeting now?',
162
162
  fmt_popup_label_expression: 'expression',
163
163
  fmt_popup_tips_alreadycopied: 'Already copied on the clipboard',
164
- fmt_popup_button_meetinginfor: 'Copy meeting information',
164
+ fmt_popup_button_meetinginfor: 'Copy Details',
165
165
  fmt_popup_button_activatewaitingroom: 'Activate waiting room',
166
166
  fmt_popup_button_openvideo: 'Open video',
167
167
  fmt_popup_button_drag: 'Drag',
@@ -760,6 +760,13 @@ var enUs = exports.enUs = {
760
760
  fmt_security_chat_with_hosts: 'Host and co-host',
761
761
  fmt_security_tips_allow_write_board: 'You have allowed editing the whiteboard',
762
762
  fmt_security_tips_disallow_write_board: 'You have prohibited editing the whiteboard',
763
+ fmt_failure_popup_label_startup_fail: 'Startup Failure',
764
+ fmt_failure_popup_label_startup_check: 'Please check startup parameters and network settings as a priority',
765
+ fmt_failure_popup_button_i_know: 'I know',
766
+ fmt_failure_popup_label_crash: 'App crash',
767
+ fmt_failure_popup_label_crash_tips: 'The app is crashing, please close the app and try again.',
768
+ fmt_failure_popup_button_close_app: 'Close the app',
769
+ fmt_failure_popup_button_refresh: 'Refresh',
763
770
  //****************** 设置 ******************
764
771
  fmt_settings_option_setting: 'Setting',
765
772
  fmt_settings_option_general: 'General',
@@ -827,9 +834,9 @@ var enUs = exports.enUs = {
827
834
  fmt_internalsetting_label_inputlevel: 'Input level',
828
835
  fmt_internalsetting_label_inputvolume: 'Input volume',
829
836
  fmt_internalsetting_label_automatic: 'Automatic',
830
- fmt_internalsetting_tips_backgroundsound: '(There is currently no need for faint background sound)',
831
- fmt_internalsetting_tips_fanpan: '(There is currently no need for reducing the sound of the computer fan or pen tapping)',
832
- fmt_internalsetting_tips_dogbarking: '(There is currently no need for reducing typing noise or dog barking temporarily)',
837
+ fmt_internalsetting_tips_backgroundsound: '(for mild backgroud noise) ',
838
+ fmt_internalsetting_tips_fanpan: '(for moderate noise,e.g. computer fan or pen clicking)',
839
+ fmt_internalsetting_tips_dogbarking: '(for noisy environments)',
833
840
  fmt_internalsetting_label_senior: 'Senior',
834
841
  fmt_internalsetting_button_detectspeaker: 'Detecting speakers',
835
842
  fmt_internalsetting_status_recording: 'Recording in progress',
@@ -870,7 +877,7 @@ var enUs = exports.enUs = {
870
877
  fmt_internalsetting_labels_speaker: 'Speaker',
871
878
  fmt_internalsetting_labels_Memory: 'Memory',
872
879
  fmt_settings_button_unlockroom: 'Unlock',
873
- fmt_internalsetting_beauty_background: 'Beauty and Background',
880
+ fmt_internalsetting_beauty_background: 'Background and Beauty',
874
881
  fmt_internalsetting_sites: 'Subsities',
875
882
  fmt_internalsetting_mini_meeting: 'Minimize meeting',
876
883
  fmt_internalsetting_raise_hand: 'Raise hand',
@@ -1292,7 +1299,7 @@ var enUs = exports.enUs = {
1292
1299
  fmt_premeeting_setting_mobile_option_language_auto: 'Auto',
1293
1300
  fmt_premeeting_setting_mobile_option_appearance: 'Appearance',
1294
1301
  fmt_premeeting_setting_mobile_option_auto: 'Auto',
1295
- fmt_premeeting_setting_mobile_option_bright: 'Brght ',
1302
+ fmt_premeeting_setting_mobile_option_bright: 'Bright',
1296
1303
  fmt_premeeting_setting_mobile_option_dark: 'Dark',
1297
1304
  fmt_premeeting_setting_mobile_option_region: 'Region',
1298
1305
  fmt_premeeting_setting_mobile_option_developer_mode: 'Developer mode',
@@ -1505,7 +1512,8 @@ var enUs = exports.enUs = {
1505
1512
  fmt_interpretation_setting_popup_controller_option_stop_interpretation: 'Stop interpretation',
1506
1513
  fmt_interpretation_setting_popup_controller_option_change_comfirm: 'Comfirmation of changes',
1507
1514
  fmt_interpretation_popup_toast_interpretation_online: 'Simultaneous Interpretation has been activated',
1508
- fmt_interpretation_popup_toast_interpreter_set_by_controller: 'The co-chairs {reason1} designated {reason1} and {reason1} as interpreters.',
1515
+ fmt_interpretation_popup_toast_interpreter_set_by_controller: 'The Moderator {reason1} designated {yyyy} and other {reason3} individuals as interpreters.',
1516
+ fmt_interpretation_popup_toast_interpreter_set_by_co_controller: 'The Co-Moderator {reason1} designated {yyyy} and other {reason3} individuals as interpreters.',
1509
1517
  fmt_interpretation_sidebar_button_interpret: 'Interpret',
1510
1518
  fmt_interpretation_sidebar_toast_choose_language: 'Different language channels are available for simultaneous interpretation',
1511
1519
  fmt_interpretation_sidebar_toast_hover_choose_language: 'Choose your language channel',
@@ -1580,7 +1588,7 @@ var enUs = exports.enUs = {
1580
1588
  fmt_interpretation_mobile_interpreter_popup_status_button_i_know: 'I know',
1581
1589
  fmt_interpretation_mobile_interpreter_popup_change_label_language_change: 'Please note that the translation language has changed',
1582
1590
  fmt_interpretation_mobile_interpreter_popup_change_button_i_know: 'I know',
1583
- fmt_interpretation_mobile_attendnees_popup_lable_language_choose: 'Select language to translate',
1591
+ fmt_interpretation_mobile_attendnees_popup_lable_language_choose: 'Select language to listen',
1584
1592
  fmt_interpretation_mobile_attendnees_popup_option_off: 'Close',
1585
1593
  fmt_interpretation_mobile_attendnees_popup_option_cn: 'Chinese',
1586
1594
  fmt_interpretation_mobile_attendnees_popup_option_en: 'English',
@@ -1613,6 +1621,12 @@ var enUs = exports.enUs = {
1613
1621
  fmt_meeting_creatpage_label_join_enter_password: 'Please enter your password',
1614
1622
  fmt_meeting_creatpage_label_join_role: 'Role',
1615
1623
  fmt_meeting_creatpage_label_join_attendee: 'Attendee',
1624
+ fmt_meeting_creatpage_label_join_read_agree: 'I have read and agree',
1625
+ fmt_meeting_creatpage_label_service: '《User Agreement》',
1626
+ fmt_meeting_creatpage_label_privacy: '《Privacy Policy》',
1627
+ fmt_meeting_creatpage_label_and: 'and',
1628
+ fmt_meeting_creatpage_tips_join_password_length: 'Please enter a 9-digit number',
1629
+ fmt_meeting_creatpage_tips_join_username_length: 'Please enter content of 2–20 characters in length.',
1616
1630
  fmt_meeting_creatpage_button_quick_join_meeting: 'Quickly join the meeting',
1617
1631
  fmt_meeting_creatpage_label_join_agree_service: 'Agree to “Flexible Meeting User Service Agreement” and “Flexible Meeting Privacy Policy”.',
1618
1632
  fmt_meeting_creatpage_popup_label_wrong_room_password: 'Room number does not exist or wrong password',
@@ -1626,8 +1640,12 @@ var enUs = exports.enUs = {
1626
1640
  fmt_meeting_mainwindow_topbar_left_popup_label_link: 'Invitation link {reason1}',
1627
1641
  fmt_meeting_mainwindow_topbar_left_popup_label_all_info: 'Copy all information',
1628
1642
  fmt_meeting_call_voice_call_button_copy_info: 'Copy Meeting Information',
1629
- fmt_link_invitation: '{reason1} invites you to join the meeting, The meeting topic: {reason2}, The meeting time: {reason3}, The meeting link: {reason4}',
1630
- fmt_link_invitation_password: '{reason1} invites you to join the meeting, The meeting topic: {reason2}, The meeting time: {reason3}, The meeting link: {reason4}, The meeting password: {reason5}',
1643
+ fmt_link_invitation: '{reason1} invites you to join the meeting',
1644
+ fmt_link_invitation_topic: 'The meeting topic: {reason1}',
1645
+ fmt_link_invitation_time: 'The meeting time: {reason1}',
1646
+ fmt_link_invitation_link: 'The meeting link: {reason1}',
1647
+ fmt_link_invitation_id: 'The meeting ID: {reason1}',
1648
+ fmt_link_invitation_password: 'The meeting password: {reason1}',
1631
1649
  fmt_meeting_creatpage_toast_password_only_contain: 'Password can only contain numbers, letters and symbols',
1632
1650
  fmt_meeting_creatpage_toast_password_only_six: 'Membership password length is 6 digits',
1633
1651
  //****************** 翻译语言 ******************
@@ -1863,6 +1881,8 @@ var enUs = exports.enUs = {
1863
1881
  fmt_mobile_mainwindow_group_down_popbar_ignore: 'Ignore',
1864
1882
  fmt_mobile_group_breakout_room_label_join: 'Join',
1865
1883
  fmt_mobile_chat_label_sent_to: 'Send to:',
1884
+ fmt_mobile_chat_label_sent_to_meeting: 'Meeting in',
1885
+ fmt_mobile_chat_label_sent_to_waiting_room: 'WT',
1866
1886
  fmt_mobile_chat_label_sent_to_all: 'All',
1867
1887
  fmt_mobile_group_breakout_room_label_message_sent: 'Message sent to all members',
1868
1888
  fmt_mobile_chat_label_breakout_group_message: 'Breakout group message',
@@ -1891,5 +1911,10 @@ var enUs = exports.enUs = {
1891
1911
  fmt_h_label_tempor_hide_screen_share: 'When sharing the screen, other participants will be temporarily hidden.',
1892
1912
  fmt_h_label_tempor_hide_white_board: 'When sharing the whiteboard, other participants will be temporarily hidden.',
1893
1913
  fmt_h_tips_host_enabled_waiting_room: 'The host has enabled the waiting room, and you cannot join the meeting at the moment.',
1894
- fmt_h_tips_tap_to_play: 'Tap to play'
1914
+ fmt_h_tips_tap_to_play: 'Tap to play',
1915
+ //****************** 错误信息 ******************
1916
+ fmt_pc_room_not_exist_error: 'The room does not exist or the password is wrong',
1917
+ fmt_lock_error: 'The host has locked the meeting and no one else can join',
1918
+ fmt_end_error: 'The meeting has ended',
1919
+ fmt_host_leave_error: 'The moderator is not in the meeting'
1895
1920
  };
@@ -740,6 +740,13 @@ export declare const zhCn: {
740
740
  fmt_security_chat_with_hosts: string;
741
741
  fmt_security_tips_allow_write_board: string;
742
742
  fmt_security_tips_disallow_write_board: string;
743
+ fmt_failure_popup_label_startup_fail: string;
744
+ fmt_failure_popup_label_startup_check: string;
745
+ fmt_failure_popup_button_i_know: string;
746
+ fmt_failure_popup_label_crash: string;
747
+ fmt_failure_popup_label_crash_tips: string;
748
+ fmt_failure_popup_button_close_app: string;
749
+ fmt_failure_popup_button_refresh: string;
743
750
  fmt_settings_option_setting: string;
744
751
  fmt_settings_option_general: string;
745
752
  fmt_settings_option_about_us: string;
@@ -1471,6 +1478,7 @@ export declare const zhCn: {
1471
1478
  fmt_interpretation_setting_popup_controller_option_change_comfirm: string;
1472
1479
  fmt_interpretation_popup_toast_interpretation_online: string;
1473
1480
  fmt_interpretation_popup_toast_interpreter_set_by_controller: string;
1481
+ fmt_interpretation_popup_toast_interpreter_set_by_co_controller: string;
1474
1482
  fmt_interpretation_sidebar_button_interpret: string;
1475
1483
  fmt_interpretation_sidebar_toast_choose_language: string;
1476
1484
  fmt_interpretation_sidebar_toast_hover_choose_language: string;
@@ -1576,6 +1584,12 @@ export declare const zhCn: {
1576
1584
  fmt_meeting_creatpage_label_join_enter_password: string;
1577
1585
  fmt_meeting_creatpage_label_join_role: string;
1578
1586
  fmt_meeting_creatpage_label_join_attendee: string;
1587
+ fmt_meeting_creatpage_label_join_read_agree: string;
1588
+ fmt_meeting_creatpage_label_service: string;
1589
+ fmt_meeting_creatpage_label_privacy: string;
1590
+ fmt_meeting_creatpage_label_and: string;
1591
+ fmt_meeting_creatpage_tips_join_password_length: string;
1592
+ fmt_meeting_creatpage_tips_join_username_length: string;
1579
1593
  fmt_meeting_creatpage_button_quick_join_meeting: string;
1580
1594
  fmt_meeting_creatpage_label_join_agree_service: string;
1581
1595
  fmt_meeting_creatpage_popup_label_wrong_room_password: string;
@@ -1590,6 +1604,10 @@ export declare const zhCn: {
1590
1604
  fmt_meeting_mainwindow_topbar_left_popup_label_all_info: string;
1591
1605
  fmt_meeting_call_voice_call_button_copy_info: string;
1592
1606
  fmt_link_invitation: string;
1607
+ fmt_link_invitation_topic: string;
1608
+ fmt_link_invitation_time: string;
1609
+ fmt_link_invitation_link: string;
1610
+ fmt_link_invitation_id: string;
1593
1611
  fmt_link_invitation_password: string;
1594
1612
  fmt_meeting_creatpage_toast_password_only_contain: string;
1595
1613
  fmt_meeting_creatpage_toast_password_only_six: string;
@@ -1821,6 +1839,8 @@ export declare const zhCn: {
1821
1839
  fmt_mobile_mainwindow_group_down_popbar_ignore: string;
1822
1840
  fmt_mobile_group_breakout_room_label_join: string;
1823
1841
  fmt_mobile_chat_label_sent_to: string;
1842
+ fmt_mobile_chat_label_sent_to_meeting: string;
1843
+ fmt_mobile_chat_label_sent_to_waiting_room: string;
1824
1844
  fmt_mobile_chat_label_sent_to_all: string;
1825
1845
  fmt_mobile_group_breakout_room_label_message_sent: string;
1826
1846
  fmt_mobile_chat_label_breakout_group_message: string;
@@ -1849,4 +1869,8 @@ export declare const zhCn: {
1849
1869
  fmt_h_label_tempor_hide_white_board: string;
1850
1870
  fmt_h_tips_host_enabled_waiting_room: string;
1851
1871
  fmt_h_tips_tap_to_play: string;
1872
+ fmt_pc_room_not_exist_error: string;
1873
+ fmt_lock_error: string;
1874
+ fmt_end_error: string;
1875
+ fmt_host_leave_error: string;
1852
1876
  };
@@ -161,7 +161,7 @@ var zhCn = exports.zhCn = {
161
161
  fmt_popup_tips_leavenow: '确定现在离开会议吗?',
162
162
  fmt_popup_label_expression: '表情',
163
163
  fmt_popup_tips_alreadycopied: '已复制在粘贴板',
164
- fmt_popup_button_meetinginfor: '复制会议信息',
164
+ fmt_popup_button_meetinginfor: '复制全部信息',
165
165
  fmt_popup_button_activatewaitingroom: '启用等候室',
166
166
  fmt_popup_button_openvideo: '开启视频',
167
167
  fmt_popup_button_drag: '拖动',
@@ -681,7 +681,7 @@ var zhCn = exports.zhCn = {
681
681
  fmt_meetinginfo_my_name_label: '我的名字',
682
682
  fmt_meetinginfo_room_topic: '会议主题',
683
683
  fmt_meetinginfo_duration_reservation: '持续时间/预约时间',
684
- fmt_meetinginfo_dialog_title_meeting_info: '会议信息',
684
+ fmt_meetinginfo_dialog_title_meeting_info: '会议详情',
685
685
  fmt_meetinginfo_duration_1: '%1$d分钟',
686
686
  fmt_meetinginfo_duration_2: '%1$d小时%2$d分钟',
687
687
  fmt_meetinginfo_duration_2_no_min: '%1$d小时',
@@ -760,6 +760,13 @@ var zhCn = exports.zhCn = {
760
760
  fmt_security_chat_with_hosts: '主持人和联席',
761
761
  fmt_security_tips_allow_write_board: '您已允许编辑白板',
762
762
  fmt_security_tips_disallow_write_board: '您已禁止编辑白板',
763
+ fmt_failure_popup_label_startup_fail: '启动失败',
764
+ fmt_failure_popup_label_startup_check: '请优先检查启动参数与网络设置',
765
+ fmt_failure_popup_button_i_know: '我已知悉',
766
+ fmt_failure_popup_label_crash: '应用崩溃',
767
+ fmt_failure_popup_label_crash_tips: '应用遇到崩溃问题,请关闭应用重试',
768
+ fmt_failure_popup_button_close_app: '关闭应用',
769
+ fmt_failure_popup_button_refresh: '刷新',
763
770
  //****************** 设置 ******************
764
771
  fmt_settings_option_setting: '设置',
765
772
  fmt_settings_option_general: '常规设置',
@@ -827,9 +834,9 @@ var zhCn = exports.zhCn = {
827
834
  fmt_internalsetting_label_inputlevel: '输入级别',
828
835
  fmt_internalsetting_label_inputvolume: '输入音量',
829
836
  fmt_internalsetting_label_automatic: '自动',
830
- fmt_internalsetting_tips_backgroundsound: '(暂时不需要微弱的背景音)',
831
- fmt_internalsetting_tips_fanpan: '(暂时不需要降低电脑风扇声、敲笔声)',
832
- fmt_internalsetting_tips_dogbarking: '(暂时不需要降低打字声、狗叫声)',
837
+ fmt_internalsetting_tips_backgroundsound: '(有微弱的背景音时使用)',
838
+ fmt_internalsetting_tips_fanpan: '(有电脑风扇声、敲笔声时使用)',
839
+ fmt_internalsetting_tips_dogbarking: '(环境较嘈杂时使用)',
833
840
  fmt_internalsetting_label_senior: '高级',
834
841
  fmt_internalsetting_button_detectspeaker: '检测扬声器',
835
842
  fmt_internalsetting_status_recording: '录制中',
@@ -870,7 +877,7 @@ var zhCn = exports.zhCn = {
870
877
  fmt_internalsetting_labels_speaker: '扬声器',
871
878
  fmt_internalsetting_labels_Memory: '内存',
872
879
  fmt_settings_button_unlockroom: '解锁',
873
- fmt_internalsetting_beauty_background: '美颜和背景',
880
+ fmt_internalsetting_beauty_background: '背景和美颜',
874
881
  fmt_internalsetting_sites: '备用地址',
875
882
  fmt_internalsetting_mini_meeting: '最小化会议',
876
883
  fmt_internalsetting_raise_hand: '举手',
@@ -1502,7 +1509,8 @@ var zhCn = exports.zhCn = {
1502
1509
  fmt_interpretation_setting_popup_controller_option_stop_interpretation: '停止传译',
1503
1510
  fmt_interpretation_setting_popup_controller_option_change_comfirm: '确认更改',
1504
1511
  fmt_interpretation_popup_toast_interpretation_online: '同声传译已启用',
1505
- fmt_interpretation_popup_toast_interpreter_set_by_controller: '联席主持{reason1}指定了{reason1}等{reason1}人为翻译官',
1512
+ fmt_interpretation_popup_toast_interpreter_set_by_controller: '主持人{reason1}指定了{reason2}等{reason3}个人为翻译官',
1513
+ fmt_interpretation_popup_toast_interpreter_set_by_co_controller: '联席主持{reason1}指定了{reason2}等{reason3}个人为翻译官',
1506
1514
  fmt_interpretation_sidebar_button_interpret: '同声传译',
1507
1515
  fmt_interpretation_sidebar_toast_choose_language: '正在进行同声传译,可选择不同的语言频道收听',
1508
1516
  fmt_interpretation_sidebar_toast_hover_choose_language: '可选择不同的语言频道收听',
@@ -1577,7 +1585,7 @@ var zhCn = exports.zhCn = {
1577
1585
  fmt_interpretation_mobile_interpreter_popup_status_button_i_know: '我知道了',
1578
1586
  fmt_interpretation_mobile_interpreter_popup_change_label_language_change: '请注意,翻译语言有更改',
1579
1587
  fmt_interpretation_mobile_interpreter_popup_change_button_i_know: '我知道了',
1580
- fmt_interpretation_mobile_attendnees_popup_lable_language_choose: '选择要翻译的语言',
1588
+ fmt_interpretation_mobile_attendnees_popup_lable_language_choose: '选择要收听的语言',
1581
1589
  fmt_interpretation_mobile_attendnees_popup_option_off: '原声频道',
1582
1590
  fmt_interpretation_mobile_attendnees_popup_option_cn: '中文',
1583
1591
  fmt_interpretation_mobile_attendnees_popup_option_en: '英文',
@@ -1609,12 +1617,18 @@ var zhCn = exports.zhCn = {
1609
1617
  fmt_meeting_creatpage_label_join_password: '入会密码',
1610
1618
  fmt_meeting_creatpage_label_join_enter_password: '请输入入会密码',
1611
1619
  fmt_meeting_creatpage_label_join_role: '角色',
1612
- fmt_meeting_creatpage_label_join_attendee: '参会人',
1620
+ fmt_meeting_creatpage_label_join_attendee: '参会者',
1621
+ fmt_meeting_creatpage_label_join_read_agree: '我已阅读并同意',
1622
+ fmt_meeting_creatpage_label_service: '《用户协议》',
1623
+ fmt_meeting_creatpage_label_privacy: '《隐私政策》',
1624
+ fmt_meeting_creatpage_label_and: '和',
1625
+ fmt_meeting_creatpage_tips_join_password_length: '请输入9位长度的数字',
1626
+ fmt_meeting_creatpage_tips_join_username_length: '请输入2-20位长度的内容',
1613
1627
  fmt_meeting_creatpage_button_quick_join_meeting: '快速加入会议',
1614
1628
  fmt_meeting_creatpage_label_join_agree_service: '同意《灵动会议用户服务协议》和《灵动会议隐私政策》',
1615
1629
  fmt_meeting_creatpage_popup_label_wrong_room_password: '房间不存在或者密码错误',
1616
1630
  fmt_meeting_mainwindow_topbar_left_button_meeting_detail: '会议详情 {reason1}',
1617
- fmt_meeting_mainwindow_topbar_left_popup_toast_copy_information: '点击复制会议信息',
1631
+ fmt_meeting_mainwindow_topbar_left_popup_toast_copy_information: '点击复制全部信息',
1618
1632
  fmt_meeting_mainwindow_topbar_left_popup_toast_copy_done: '会议信息已复制到剪贴板',
1619
1633
  fmt_meeting_mainwindow_topbar_left_popup_label_share: '分享会议号或邀请链接',
1620
1634
  fmt_meeting_mainwindow_topbar_left_popup_label_room_name: '{reason1}(房间名)',
@@ -1622,9 +1636,13 @@ var zhCn = exports.zhCn = {
1622
1636
  fmt_meeting_mainwindow_topbar_left_popup_label_meeting_password: '会议密码 {reason1}',
1623
1637
  fmt_meeting_mainwindow_topbar_left_popup_label_link: '邀请链接 {reason1}',
1624
1638
  fmt_meeting_mainwindow_topbar_left_popup_label_all_info: '复制全部信息',
1625
- fmt_meeting_call_voice_call_button_copy_info: '复制会议信息',
1626
- fmt_link_invitation: '{reason1} 邀请您参加会议,会议主题为:{reason2},会议时间:{reason3},会议链接:{reason4}',
1627
- fmt_link_invitation_password: '{reason1} 邀请您参加会议,会议主题为:{reason2},会议时间:{reason3},会议链接:{reason4},会议密码:{reason5}',
1639
+ fmt_meeting_call_voice_call_button_copy_info: '复制全部信息',
1640
+ fmt_link_invitation: '{reason1} 邀请您参加会议',
1641
+ fmt_link_invitation_topic: '会议主题为:{reason1}',
1642
+ fmt_link_invitation_time: '会议时间:{reason1}',
1643
+ fmt_link_invitation_link: '会议链接:{reason1}',
1644
+ fmt_link_invitation_id: '会议号:{reason1}',
1645
+ fmt_link_invitation_password: '会议密码:{reason1}',
1628
1646
  fmt_meeting_creatpage_toast_password_only_contain: '密码只能包含数字、字母和符号',
1629
1647
  fmt_meeting_creatpage_toast_password_only_six: '入会密码长度为6位',
1630
1648
  //****************** 翻译语言 ******************
@@ -1784,7 +1802,7 @@ var zhCn = exports.zhCn = {
1784
1802
  fmt_group_mainwindow_end_breakout_room_popup_button_continue: '继续讨论',
1785
1803
  fmt_group_mainwindow_end_breakout_room_popup_button_end: '立即结束',
1786
1804
  fmt_group_mainwindow_label_continue_by_host: '主持人已继续延时分组功能',
1787
- fmt_group_mainwindow_label_continue_by_co_host: '联系主持人已继续延时分组功能',
1805
+ fmt_group_mainwindow_label_continue_by_co_host: '联席主持人已继续延时分组功能',
1788
1806
  fmt_group_mainwindow_label_end_by_host: '主持人已结束分组功能',
1789
1807
  fmt_group_mainwindow_label_end_by_co_host: '联席主持人已结束分组功能',
1790
1808
  fmt_group_mainwindow_label_times_up_auto_end_group: '时间到,已自动结束分组',
@@ -1860,6 +1878,8 @@ var zhCn = exports.zhCn = {
1860
1878
  fmt_mobile_mainwindow_group_down_popbar_ignore: '忽略',
1861
1879
  fmt_mobile_group_breakout_room_label_join: '加入',
1862
1880
  fmt_mobile_chat_label_sent_to: '发送给:',
1881
+ fmt_mobile_chat_label_sent_to_meeting: '会议中',
1882
+ fmt_mobile_chat_label_sent_to_waiting_room: '等候室',
1863
1883
  fmt_mobile_chat_label_sent_to_all: '所有人',
1864
1884
  fmt_mobile_group_breakout_room_label_message_sent: '消息已发送给全体成员',
1865
1885
  fmt_mobile_chat_label_breakout_group_message: '讨论组群消息',
@@ -1888,5 +1908,10 @@ var zhCn = exports.zhCn = {
1888
1908
  fmt_h_label_tempor_hide_screen_share: '在屏幕共享时,会暂时隐藏其它参会者',
1889
1909
  fmt_h_label_tempor_hide_white_board: '在白板共享时,会暂时隐藏其他参会者',
1890
1910
  fmt_h_tips_host_enabled_waiting_room: '管理员已开启等候室,暂时无法加入会议',
1891
- fmt_h_tips_tap_to_play: '轻触进行播放'
1911
+ fmt_h_tips_tap_to_play: '轻触进行播放',
1912
+ //****************** 错误信息 ******************
1913
+ fmt_pc_room_not_exist_error: '房间不存在或密码错误',
1914
+ fmt_lock_error: '主持人锁定了会议,其他人不可入会',
1915
+ fmt_end_error: '会议已结束',
1916
+ fmt_host_leave_error: '主持人不在会议中'
1892
1917
  };
@@ -0,0 +1,2 @@
1
+ export declare const generateMeetingDetail: (userName: string, roomName: string, invitationTime: string, shareLink: string, displayMeetingId: string, password: string) => string;
2
+ export declare const generateMeetingDuration: (startTime: number, duration: number) => string;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.generateMeetingDuration = exports.generateMeetingDetail = void 0;
9
+ require("core-js/modules/es.array.concat.js");
10
+ require("core-js/modules/es.array.join.js");
11
+ require("core-js/modules/es.array.push.js");
12
+ require("core-js/modules/es.regexp.exec.js");
13
+ require("core-js/modules/es.string.replace.js");
14
+ var _i18n = require("agora-ui-foundation/lib/i18n");
15
+ var _dayjs = _interopRequireDefault(require("dayjs"));
16
+ var generateMeetingDetail = exports.generateMeetingDetail = function generateMeetingDetail(userName, roomName, invitationTime, shareLink, displayMeetingId, password) {
17
+ var parts = [];
18
+ parts.push((0, _i18n.transI18n)('fmt_link_invitation', {
19
+ reason1: userName
20
+ }));
21
+ parts.push((0, _i18n.transI18n)('fmt_link_invitation_topic', {
22
+ reason1: roomName
23
+ }));
24
+ if (invitationTime) {
25
+ parts.push((0, _i18n.transI18n)('fmt_link_invitation_time', {
26
+ reason1: invitationTime
27
+ }));
28
+ }
29
+ parts.push((0, _i18n.transI18n)('fmt_link_invitation_link', {
30
+ reason1: shareLink
31
+ }));
32
+ parts.push((0, _i18n.transI18n)('fmt_link_invitation_id', {
33
+ reason1: displayMeetingId
34
+ }));
35
+ if (password) {
36
+ parts.push((0, _i18n.transI18n)('fmt_link_invitation_password', {
37
+ reason1: password
38
+ }));
39
+ }
40
+ // 拼接所有部分并去除多余的空白行
41
+ return parts.join('\n').replace(/^\s*\n/gm, '');
42
+ };
43
+ var generateMeetingDuration = exports.generateMeetingDuration = function generateMeetingDuration(startTime, duration) {
44
+ if (startTime === 0 || duration === 0) {
45
+ return '';
46
+ }
47
+ var durationStamp = duration || 86400000;
48
+ var startDate = (0, _dayjs["default"])(startTime).format('YYYY/MM/DD HH:mm');
49
+ var endDate = '';
50
+ if ((0, _dayjs["default"])(startTime + durationStamp).format('YYYY/MM/DD') !== startDate.split(' ')[0]) {
51
+ endDate = (0, _dayjs["default"])(startTime + durationStamp).format('YYYY/MM/DD HH:mm');
52
+ } else {
53
+ endDate = (0, _dayjs["default"])(startTime + durationStamp).format('HH:mm');
54
+ }
55
+ return "".concat(startDate, " - ").concat(endDate);
56
+ };
@@ -24,4 +24,5 @@ export declare const waitUntil: (prediction: () => boolean | Promise<boolean>, m
24
24
  export declare const isIOS: () => boolean;
25
25
  export declare const isWeChat: () => boolean;
26
26
  export declare const isNeedAskAutoRun: () => boolean;
27
+ export declare const renderMeetingId: (meetingId: string | undefined, roomId: string) => string;
27
28
  export {};
@@ -7,11 +7,12 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.convertToFixedNumber = exports.PARTICIPANT_POSITION = exports.ASIDE_WIDTH = void 0;
9
9
  exports.getFileNameWithoutExtension = getFileNameWithoutExtension;
10
- exports.waitUntil = exports.uint8ArrayToImageData = exports.storage = exports.setLanguage = exports.matchVirtualSoundCardPattern = exports.isWeChat = exports.isResourceZipUrl = exports.isPngOrJpg = exports.isNeedAskAutoRun = exports.isMp4 = exports.isIOS = exports.getLanguage = void 0;
10
+ exports.waitUntil = exports.uint8ArrayToImageData = exports.storage = exports.setLanguage = exports.renderMeetingId = exports.matchVirtualSoundCardPattern = exports.isWeChat = exports.isResourceZipUrl = exports.isPngOrJpg = exports.isNeedAskAutoRun = exports.isMp4 = exports.isIOS = exports.getLanguage = void 0;
11
11
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
12
12
  require("core-js/modules/es.array.concat.js");
13
13
  require("core-js/modules/es.array.includes.js");
14
14
  require("core-js/modules/es.array.reduce.js");
15
+ require("core-js/modules/es.array.slice.js");
15
16
  require("core-js/modules/es.number.constructor.js");
16
17
  require("core-js/modules/es.number.to-fixed.js");
17
18
  require("core-js/modules/es.object.to-string.js");
@@ -21,6 +22,7 @@ require("core-js/modules/es.regexp.test.js");
21
22
  require("core-js/modules/es.string.ends-with.js");
22
23
  require("core-js/modules/es.string.includes.js");
23
24
  require("core-js/modules/es.string.match.js");
25
+ require("core-js/modules/es.string.replace.js");
24
26
  require("core-js/modules/esnext.async-iterator.reduce.js");
25
27
  require("core-js/modules/esnext.iterator.constructor.js");
26
28
  require("core-js/modules/esnext.iterator.reduce.js");
@@ -166,4 +168,17 @@ var isWeChat = exports.isWeChat = function isWeChat() {
166
168
  };
167
169
  var isNeedAskAutoRun = exports.isNeedAskAutoRun = function isNeedAskAutoRun() {
168
170
  return isIOS() && isWeChat();
171
+ };
172
+ var renderMeetingId = exports.renderMeetingId = function renderMeetingId(meetingId, roomId) {
173
+ var renderMeetingId = '';
174
+ if (meetingId) {
175
+ renderMeetingId = meetingId;
176
+ } else {
177
+ if (roomId.endsWith('-waiting')) {
178
+ renderMeetingId = roomId.slice(0, -8).replace(/(.{3})/g, '$1 ');
179
+ } else {
180
+ renderMeetingId = roomId.replace(/(.{3})/g, '$1 ');
181
+ }
182
+ }
183
+ return renderMeetingId;
169
184
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fcr-ui-scene-mobile",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
4
4
  "main": "lib/index.js",
5
5
  "repository": "ssh://git@git.agoralab.co/aduc/fcr-ui-scene-mobile.git",
6
6
  "author": "agora.io",
@@ -14,12 +14,12 @@
14
14
  "dependencies": {
15
15
  "@react-spring/web": "^9.7.3",
16
16
  "@use-gesture/react": "^10.3.1",
17
- "agora-foundation": "^3.4.2",
18
- "agora-ui-foundation": "^3.4.2",
17
+ "agora-foundation": "^3.4.4",
18
+ "agora-ui-foundation": "^3.4.4",
19
19
  "classnames": "^2.5.1",
20
20
  "core-js": "^3.33.3",
21
21
  "dayjs": "^1.10.4",
22
- "fcr-core": "^3.4.2",
22
+ "fcr-core": "^3.4.4",
23
23
  "js-md5": "^0.8.3",
24
24
  "jszip": "^3.10.1",
25
25
  "lodash": "^4.17.21",
@@ -50,7 +50,7 @@
50
50
  "@types/react-dom": "^17.0.11",
51
51
  "@types/react-virtualized": "^9.21.30",
52
52
  "@types/tinycolor2": "^1.4.6",
53
- "agora-toolchain": "^3.4.2",
53
+ "agora-toolchain": "^3.4.4",
54
54
  "core-js": "^3.33.3",
55
55
  "husky": "^9.0.11",
56
56
  "lint-staged": "^15.2.2",