@livetiles/reach-components-react 0.3.47 → 0.3.49
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.
- package/de.async.esm.esm.js +6 -0
- package/en.async.esm.esm.js +89 -3
- package/es.async.esm.esm.js +13 -0
- package/fr.async.esm.esm.js +1 -0
- package/index.esm2.js +11 -5
- package/index.umd.js +178 -8
- package/it.async.esm.esm.js +13 -0
- package/ja.async.esm.esm.js +13 -0
- package/package.json +1 -1
- package/tr.async.esm.esm.js +13 -0
- package/zh-CN.async.esm.esm.js +10 -0
- package/zh-TW.async.esm.esm.js +9 -0
package/de.async.esm.esm.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import './de.esm.js';
|
|
2
2
|
|
|
3
3
|
var de = {
|
|
4
|
+
"Generic.search": "Search",
|
|
5
|
+
"PageTitle.login": "Login",
|
|
6
|
+
"PageTitle.register": "Register",
|
|
7
|
+
"PageTitle.subscribe": "Subscribe",
|
|
8
|
+
"PageTitle.linkAad": "Link AAD",
|
|
9
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
4
10
|
"Generic.Ok": "Ok",
|
|
5
11
|
"Generic.Save": "Speichern",
|
|
6
12
|
"Generic.Cancel": "Abbrechen",
|
package/en.async.esm.esm.js
CHANGED
|
@@ -16,6 +16,7 @@ var en = {
|
|
|
16
16
|
"Generic.Restore": "Restore",
|
|
17
17
|
"Generic.Preview": "Preview",
|
|
18
18
|
"Generic.upload": "Upload",
|
|
19
|
+
"Generic.search": "Search",
|
|
19
20
|
"Generic.resetToDefault": "Reset to Default",
|
|
20
21
|
"Generic.bookmarks": "Bookmarks",
|
|
21
22
|
"Generic.error": "Something went wrong. Please reload the page and try again",
|
|
@@ -309,6 +310,14 @@ var en = {
|
|
|
309
310
|
"PageTitle.searchEverywhere": "Search",
|
|
310
311
|
"PageTitle.analytics.usage": "User Activity Analytics",
|
|
311
312
|
"PageTitle.analytics.news": "News Analytics",
|
|
313
|
+
"PageTitle.login": "Login",
|
|
314
|
+
"PageTitle.register": "Register",
|
|
315
|
+
"PageTitle.subscribe": "Subscribe",
|
|
316
|
+
"PageTitle.linkAad": "Link AAD",
|
|
317
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
318
|
+
"PageTitle.activateUser": "Activate User",
|
|
319
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
320
|
+
"PageTitle.join": "Join",
|
|
312
321
|
"Gutter.open": "Open",
|
|
313
322
|
"Gutter.rename": "Rename",
|
|
314
323
|
"Gutter.edit": "Edit",
|
|
@@ -453,6 +462,7 @@ var en = {
|
|
|
453
462
|
"Post.unfollow.successful": "You are no longer following the post",
|
|
454
463
|
"Post.follow.tooltip": "You will be notified when someone replies to this post. Click to change.",
|
|
455
464
|
"Post.follow.successful": "You are now following the post",
|
|
465
|
+
"Post.keywords.title": "Select keywords for post",
|
|
456
466
|
"BannerEditor.genericErrorMessage": "Something went wrong when uploading this image. Wait a moment and try again.",
|
|
457
467
|
"BannerEditor.addImage": "Add a banner image",
|
|
458
468
|
"BannerEditor.addVideo": "Add a video",
|
|
@@ -504,6 +514,7 @@ var en = {
|
|
|
504
514
|
"ContentEditor.javascriptCodeInfo": "You can enter Javascript code here, which will be executed each time this page is loaded.",
|
|
505
515
|
"ContentEditor.dragFiles": "Drop files here",
|
|
506
516
|
"ContentEditor.quotePlaceholder": "Enter the quote here",
|
|
517
|
+
"ContentEditor.quoteAriaLabel": "Quote text",
|
|
507
518
|
"ContentEditor.quoteSetUserAsAuthor": "Set a user as author",
|
|
508
519
|
"ContentEditor.quoteCustomAuthor": "Set custom author",
|
|
509
520
|
"ContentEditor.quoteWithoutAuthor": "Without author",
|
|
@@ -524,10 +535,12 @@ var en = {
|
|
|
524
535
|
"TranslationManagement.callout.removeSecondary": "Content will be hidden but not deleted",
|
|
525
536
|
"TranslationManagement.changeLanguageDialog.title": "Tab language",
|
|
526
537
|
"TranslationManagement.changeLanguageDialog.subText": "What language is this tab?",
|
|
538
|
+
"TranslationManagement.changeLanguageDialog.choiceGroup.ariaLabel": "New language for this tab",
|
|
527
539
|
"TranslationManagement.autoTranslateDialog.title": "Translate automatically",
|
|
528
540
|
"TranslationManagement.autoTranslateDialog.subText": "Translate from",
|
|
529
541
|
"TranslationManagement.autoTranslateDialog.description": "to {language} using an automatic translation.",
|
|
530
542
|
"TranslationManagement.autoTranslateDialog.warning": "This will overwrite the existing content on the {languageCode} tab.",
|
|
543
|
+
"TranslationManagement.autoTranslateDialog.choiceGroup.ariaLabel": "Language to translate from",
|
|
531
544
|
"TranslationManagement.autoTranslateDialog.translateButton": "Translate",
|
|
532
545
|
"MetadataEditor.selectDate": "Select date ...",
|
|
533
546
|
"MetadataEditor.publishingDate": "Publishing Date",
|
|
@@ -979,6 +992,8 @@ var en = {
|
|
|
979
992
|
"DateRangeSlider.twoYearAgo": "2 years",
|
|
980
993
|
"FilterPanel.closePanelTooltip": "Close filter panel",
|
|
981
994
|
"FilterPanel.clearFiltersTooltip": "Clear all active filters",
|
|
995
|
+
"FilterPanel.clearFilterText": "Clear filter",
|
|
996
|
+
"FilterPanel.filterModal.title": "Filter Items",
|
|
982
997
|
"FilterPanel.ariaLabel": "Filter panel",
|
|
983
998
|
"FilterPanel.date": "Date",
|
|
984
999
|
"FilterPanel.keywords": "Keywords",
|
|
@@ -998,6 +1013,18 @@ var en = {
|
|
|
998
1013
|
"FilterPanel.condense": "LiveTiles Reach",
|
|
999
1014
|
"FilterPanel.external": "External",
|
|
1000
1015
|
"FilterPanel.channels": "Channels",
|
|
1016
|
+
"FilterPanel.publishingDate": "Publishing date",
|
|
1017
|
+
"FilterPanel.publishingDateFrom": "From",
|
|
1018
|
+
"FilterPanel.publishingDateTo": "To",
|
|
1019
|
+
"FilterPanel.publishingDateBefore": "Before",
|
|
1020
|
+
"FilterPanel.publishingDateAfter": "After",
|
|
1021
|
+
"FilterPanel.publishingDatePlaceholder": "Date",
|
|
1022
|
+
"FilterPanel.publishingDateShortcuts": "Date range shortcuts",
|
|
1023
|
+
"FilterPanel.publishingDateShortcuts.yesterday": "Yesterday",
|
|
1024
|
+
"FilterPanel.publishingDateShortcuts.thisWeek": "This week",
|
|
1025
|
+
"FilterPanel.publishingDateShortcuts.lastWeek": "Last week",
|
|
1026
|
+
"FilterPanel.publishingDateShortcuts.lastMonth": "Last month",
|
|
1027
|
+
"FilterPanel.keywordFilter": "Keywords",
|
|
1001
1028
|
"FilterPanel.itemType": "Items",
|
|
1002
1029
|
"Themes.title": "Color Theme",
|
|
1003
1030
|
"Themes.selectorDescription": "Select a color theme for LiveTiles Reach.",
|
|
@@ -1045,6 +1072,7 @@ var en = {
|
|
|
1045
1072
|
"Audience.settingsOperatorOR": "or",
|
|
1046
1073
|
"Audience.settingsOperatorAND": "and",
|
|
1047
1074
|
"Audience.settingsInputPlaceholder": "Value",
|
|
1075
|
+
"Audience.settingsInputLabel": "Search value",
|
|
1048
1076
|
"Audience.settingsDropdownSelect": "Select a property",
|
|
1049
1077
|
"Audience.warningAudienceWithSameName": "An audience with the name {name} already exists. Please enter another name.",
|
|
1050
1078
|
"Audience.warningAudienceWithEmptyName": "You must enter a name for the audience.",
|
|
@@ -1187,9 +1215,21 @@ var en = {
|
|
|
1187
1215
|
"Customization.applicationNameInfo1": "Enter the name of your subscription.",
|
|
1188
1216
|
"Customization.applicationNameInfo2": "The name will be displayed in the header bar and in E-Mails.",
|
|
1189
1217
|
"Customization.applicationNameError": "Failed to set the subscription name",
|
|
1190
|
-
"Customization.applicationLogo": "
|
|
1191
|
-
"Customization.
|
|
1192
|
-
"Customization.
|
|
1218
|
+
"Customization.applicationLogo.title": "Logo",
|
|
1219
|
+
"Customization.applicationLogo.subtitle.small": "Logo for app and emails",
|
|
1220
|
+
"Customization.applicationLogo.subtitle.large": "Logo for sign-in dialog",
|
|
1221
|
+
"Customization.applicationLogo.upload": "Upload new logo",
|
|
1222
|
+
"Customization.applicationLogoInfo1": "Upload a custom logo to be displayed in the app and in notification emails sent to users.",
|
|
1223
|
+
"Customization.applicationLogoInfo2": "Recommended file type: .png, optionally with transparent background.",
|
|
1224
|
+
"Customization.applicationLogoInfo3": "Recommended size: {dimensions}. Width or height can be reduced as required by your logo. If both dimensions are less than the recommended values the logo might look blurry on high resolution devices.",
|
|
1225
|
+
"Customization.applicationLogoInfo3.dimensions.small": "855px width by 150px height",
|
|
1226
|
+
"Customization.applicationLogoInfo3.dimensions.large": "1500px width by 465px height",
|
|
1227
|
+
"Customization.applicationLogo.dialog.title": "Logo preview",
|
|
1228
|
+
"Customization.applicationLogo.dialog.description": "This is how your logo will look:",
|
|
1229
|
+
"Customization.applicationLogo.dialog.example.appBar": "App bar (large screens)",
|
|
1230
|
+
"Customization.applicationLogo.dialog.example.sidePanel": "Side panel overlay (small screens)",
|
|
1231
|
+
"Customization.applicationLogo.dialog.example.email": "Emails",
|
|
1232
|
+
"Customization.applicationLogo.dialog.example.signIn": "Sign-in dialog",
|
|
1193
1233
|
"Customization.applicationLogoError": "Failed to save the application logo",
|
|
1194
1234
|
"Customization.applicationLogoResetError": "Failed to reset the application logo",
|
|
1195
1235
|
"Customization.favicon": "Favicon",
|
|
@@ -1554,6 +1594,7 @@ var en = {
|
|
|
1554
1594
|
"Events.myEvents": "My Booked events",
|
|
1555
1595
|
"Events.pastEvents": "Past events",
|
|
1556
1596
|
"Events.manageEvents": "Manage events",
|
|
1597
|
+
"Events.chromelessDropdown": "Choose events to show",
|
|
1557
1598
|
"ListView.manage.events": "Manage events",
|
|
1558
1599
|
"ListView.managePreview.events": "Manage events (preview)",
|
|
1559
1600
|
"Events.finishedLoading": "All events loaded",
|
|
@@ -1584,6 +1625,7 @@ var en = {
|
|
|
1584
1625
|
"Events.editor.registration.settings.notRequired": "No registration required",
|
|
1585
1626
|
"Events.editor.registration.settings.fullSeries": "Register for entire series",
|
|
1586
1627
|
"Events.editor.registration.settings.perInstance": "Register per event",
|
|
1628
|
+
"Events.editor.registration.settings.choiceGroup.ariaLabel": "Select registration mode",
|
|
1587
1629
|
"Events.editor.locations.editButtonCaption": "Edit Location Settings",
|
|
1588
1630
|
"Events.editor.locations.placeholderMessage": "Click here to specify locations for this event",
|
|
1589
1631
|
"Events.editor.locations.dialogTitle": "Event Locations",
|
|
@@ -1606,6 +1648,7 @@ var en = {
|
|
|
1606
1648
|
"Events.editor.locations.seatsPlaceholder": "Optional, specify the maximum number of seats",
|
|
1607
1649
|
"Events.editor.locations.invalidSeatsNumber": "The value must be greater than or equal to 0",
|
|
1608
1650
|
"Events.editor.recurrence.label": "Repeat",
|
|
1651
|
+
"Events.editor.recurrence.ariaLabel": "Recurrence type",
|
|
1609
1652
|
"Events.editor.recurrence.never": "Never",
|
|
1610
1653
|
"Events.editor.recurrence.daily": "Every day",
|
|
1611
1654
|
"Events.editor.recurrence.workDays": "Work days ({monday} - {friday})",
|
|
@@ -1619,6 +1662,7 @@ var en = {
|
|
|
1619
1662
|
"Events.editor.recurrence.custom": "Custom",
|
|
1620
1663
|
"Events.editor.recurrence.custom2": "Custom Recurrence",
|
|
1621
1664
|
"Events.editor.recurrence.custom.repeatEvery": "Repeat every",
|
|
1665
|
+
"Events.editor.recurrence.custom.intervalNumber.ariaLabel": "Frequency",
|
|
1622
1666
|
"Events.editor.recurrence.custom.daily": "Day",
|
|
1623
1667
|
"Events.editor.recurrence.custom.weekly": "Week",
|
|
1624
1668
|
"Events.editor.recurrence.custom.monthly": "Month",
|
|
@@ -1629,8 +1673,13 @@ var en = {
|
|
|
1629
1673
|
"Events.editor.recurrence.custom.fourth": "Fourth",
|
|
1630
1674
|
"Events.editor.recurrence.custom.last": "Last",
|
|
1631
1675
|
"Events.editor.recurrence.custom.onDay": "On day",
|
|
1676
|
+
"Events.editor.recurrence.custom.dayOfMonth.ariaLabel": "Day of month",
|
|
1632
1677
|
"Events.editor.recurrence.custom.onThe": "On the",
|
|
1633
1678
|
"Events.editor.recurrence.custom.of": "of",
|
|
1679
|
+
"Events.editor.recurrence.custom.weekOfMonth.ariaLabel": "Choose week of the month",
|
|
1680
|
+
"Events.editor.recurrence.custom.dayOfWeek.ariaLabel": "Choose day of the week",
|
|
1681
|
+
"Events.editor.recurrence.custom.month.ariaLabel": "Choose month",
|
|
1682
|
+
"Events.editor.recurrence.custom.dateOrWeekday.ariaLabel": "Specific date or weekday based",
|
|
1634
1683
|
"Events.editor.recurrence.iconTooltip": "This event repeats until {endDate}",
|
|
1635
1684
|
"Events.editor.recurrence.disabledPublishButtonValidationInfo": "This event is part of a series and the entire series is not published. To publish an individual event of a series, the entire series must be published first.",
|
|
1636
1685
|
"Events.editor.recurrence.series": "Event series",
|
|
@@ -1655,6 +1704,7 @@ var en = {
|
|
|
1655
1704
|
"Events.editor.recurrence.unpublishOptionsDialogDescription": "This event is part of an event series. Do you want to unpublish the entire series or just this event?",
|
|
1656
1705
|
"Events.editor.recurrence.unpublishEntireSeries": "Unpublish the entire series",
|
|
1657
1706
|
"Events.editor.recurrence.unpublishThisEventOnly": "Unpublish only this event:",
|
|
1707
|
+
"Events.editor.recurrence.seriesOrEventRadio.ariaLabel": "Select series or single event",
|
|
1658
1708
|
"Events.editor.recurrence.endDate": "Last Occurrence",
|
|
1659
1709
|
"Events.editor.recurrence.editSeriesEvent": "Edit event series",
|
|
1660
1710
|
"Events.editor.recurrence.editSeriesEventInfo": "This event is part of an event series. Do you want to edit the entire series or just this event?",
|
|
@@ -1721,12 +1771,14 @@ var en = {
|
|
|
1721
1771
|
"InlineContact.editor.userPicker.label": "Pick user",
|
|
1722
1772
|
"InlineContact.editor.infoTitle": "Contact info to display",
|
|
1723
1773
|
"InlineContact.editor.invalidEmail": "Invalid email address.",
|
|
1774
|
+
"InlineContact.editor.checkboxAriaLabel": "Toggle {field} on or off",
|
|
1724
1775
|
"InlineTable.format.dialogTitle": "Table Settings",
|
|
1725
1776
|
"InlineTable.format.showGrid": "Show grid",
|
|
1726
1777
|
"InlineTable.format.alternateLines": "Alternate line coloring",
|
|
1727
1778
|
"InlineTable.format.hasHeaderRow": "Render the first row as header",
|
|
1728
1779
|
"InlineTable.format.hasFooterRow": "Render the last row as footer",
|
|
1729
1780
|
"InlineTable.link.placeholder": "Enter a URL and press Enter",
|
|
1781
|
+
"InlineTable.link.ariaLabel": "URL",
|
|
1730
1782
|
"Teams.disabled.title": "Teams integration not enabled",
|
|
1731
1783
|
"Teams.disabled.message": "Teams integration is not enabled for your LiveTiles Reach subscription. Please ask your administrator to enable it.",
|
|
1732
1784
|
"Teams.disabled.contact.name": "Subscription name: {name}",
|
|
@@ -1839,6 +1891,13 @@ var en = {
|
|
|
1839
1891
|
"AriaLabel.readMoreAbout": "Read more about {title}",
|
|
1840
1892
|
"AriaLabel.goToManageView": "Go to manage view",
|
|
1841
1893
|
"AriaLabel.toolbarChannelSelector": "Select a channel or a view (Bookmarks or Manage Channels)",
|
|
1894
|
+
"AriaLabel.chatInput": "Message",
|
|
1895
|
+
"AriaLabel.postInput": "Post",
|
|
1896
|
+
"AriaLabel.commentInput": "Comment",
|
|
1897
|
+
"AriaLabel.booleanDropdownLabel": "Choose search operator",
|
|
1898
|
+
"AriaLabel.channelName": "Channel Name",
|
|
1899
|
+
"AriaLabel.channels": "Channels",
|
|
1900
|
+
"AriaLabel.termsAndConditions": "Terms and Conditions",
|
|
1842
1901
|
"AriaLabel.editor.allowComments": "Allow comments for this item",
|
|
1843
1902
|
"AriaLabel.editor.allowLikes": "Allow users to like this item",
|
|
1844
1903
|
"AriaLabel.editor.allowRegistration": "Allow registration for this event",
|
|
@@ -1872,19 +1931,37 @@ var en = {
|
|
|
1872
1931
|
"AriaLabel.editor.toolbar.cellColor": "Select cell background color",
|
|
1873
1932
|
"AriaLabel.editor.toolbar.clearFormatting": "Clear formatting",
|
|
1874
1933
|
"AriaLabel.editor.manageTranslation": "Manage {language} translation",
|
|
1934
|
+
"AriaLabel.editor.insertQuote.authorType": "Author Type",
|
|
1935
|
+
"AriaLabel.editor.insertQuote.customAuthor": "Custom author",
|
|
1936
|
+
"AriaLabel.editor.externalUrl.input": "URL",
|
|
1937
|
+
"AriaLabel.editor.groupSelector": "Groups",
|
|
1938
|
+
"AriaLabel.managePagesEditor.title": "Title",
|
|
1939
|
+
"AriaLabel.managePagesEditor.toggleSelection": "Toggle selection",
|
|
1875
1940
|
"AriaLabel.filter.filterByChannel": "Filter by channel",
|
|
1876
1941
|
"AriaLabel.filter.filterByDate": "Filter by date",
|
|
1877
1942
|
"AriaLabel.filter.filterByState": "Filter by state",
|
|
1878
1943
|
"AriaLabel.filter.filterBySource": "Filter by source",
|
|
1944
|
+
"AriaLabel.filter.toggle": "Toggle filter on or off",
|
|
1945
|
+
"AriaLabel.authorFilter.toggleUser": "Select or deselect user",
|
|
1879
1946
|
"AriaLabel.shareButton.copyField": "Link to this item",
|
|
1880
1947
|
"AriaLabel.videoElementGenerator.videoPreview": "{type} video preview",
|
|
1881
1948
|
"AriaLabel.roleDropdown": "Change role",
|
|
1882
1949
|
"AriaLabel.deleteUserButton": "Delete user",
|
|
1883
1950
|
"AriaLabel.editUserButton": "Edit user",
|
|
1951
|
+
"AriaLabel.userEmail": "User email",
|
|
1952
|
+
"AriaLabel.email": "Email",
|
|
1953
|
+
"AriaLabel.user": "User",
|
|
1884
1954
|
"Generic.peoplePicker.placeholder": "Search for a user",
|
|
1955
|
+
"AriaLabel.peoplePicker.author": "Author",
|
|
1956
|
+
"AriaLabel.peoplePicker.contact": "Contact",
|
|
1957
|
+
"AriaLabel.peoplePicker.owner": "Owner",
|
|
1958
|
+
"AriaLabel.peoplePicker.contacts": "Contacts",
|
|
1959
|
+
"AriaLabel.peoplePicker.members": "Members",
|
|
1885
1960
|
"AriaLabel.peoplePicker.suggestionsContainer": "Suggested users",
|
|
1961
|
+
"AriaLabel.peoplePicker.addOrInviteToGroup": "User, Group, or Email",
|
|
1886
1962
|
"AriaLabel.languages.active.toggle": "Toggle {language} active state",
|
|
1887
1963
|
"AriaLabel.keywords.add": "Add keyword",
|
|
1964
|
+
"AriaLabel.keywordEditor.input": "Keyword name",
|
|
1888
1965
|
"AriaLabel.dateTimePicker.calendar.prevMonth": "Previous Month",
|
|
1889
1966
|
"AriaLabel.dateTimePicker.calendar.nextMonth": "Next Month",
|
|
1890
1967
|
"AriaLabel.dateTimePicker.calendar.prevYear": "Previous Year",
|
|
@@ -1907,8 +1984,17 @@ var en = {
|
|
|
1907
1984
|
"AriaLabel.section.keywords": "Keywords",
|
|
1908
1985
|
"AriaLabel.section.comments": "Comments",
|
|
1909
1986
|
"AriaLabel.section.subscriptionAlreadyExistsInfo": "Subscription already exists ",
|
|
1987
|
+
"AriaLabel.confirmDelete.group": "Group name",
|
|
1988
|
+
"AriaLabel.confirmDelete.keywordGroup": "Keyword group name",
|
|
1989
|
+
"AriaLabel.confirmDelete.item": "Item title",
|
|
1990
|
+
"AriaLabel.confirmDelete.page": "Page title",
|
|
1991
|
+
"AriaLabel.confirmDelete.page.document": "Document title",
|
|
1992
|
+
"AriaLabel.customization.applicationNameInput": "Subscription name",
|
|
1993
|
+
"AriaLabel.customization.applicationHandleInput": "Subscription handle",
|
|
1910
1994
|
"Lib.newsList.noItems": "No News to show",
|
|
1911
1995
|
"Lib.paging.goToFirstPage": "Go to first page",
|
|
1996
|
+
"Lib.channelFilter.choiceGroupLabel": "Select the logical operator for channels filter",
|
|
1997
|
+
"Lib.keywordsFilter.choiceGroupLabel": "Select the logical operator for keywords filter",
|
|
1912
1998
|
"UserFeed.emptyList": "There are no feed items yet.",
|
|
1913
1999
|
"UserFeed.allLoaded": "All feed items loaded.",
|
|
1914
2000
|
"UserFeed.itemType.news": "News",
|
package/es.async.esm.esm.js
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import './es.esm.js';
|
|
2
2
|
|
|
3
3
|
var es = {
|
|
4
|
+
"Generic.search": "Search",
|
|
5
|
+
"PageTitle.login": "Login",
|
|
6
|
+
"PageTitle.register": "Register",
|
|
7
|
+
"PageTitle.subscribe": "Subscribe",
|
|
8
|
+
"PageTitle.linkAad": "Link AAD",
|
|
9
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
10
|
+
"PageTitle.activateUser": "Activate User",
|
|
11
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
12
|
+
"PageTitle.join": "Join",
|
|
13
|
+
"Post.keywords.title": "Select keywords for post",
|
|
14
|
+
"ContentEditor.quoteAriaLabel": "Quote text",
|
|
15
|
+
"TranslationManagement.changeLanguageDialog.choiceGroup.ariaLabel": "New language for this tab",
|
|
16
|
+
"TranslationManagement.autoTranslateDialog.choiceGroup.ariaLabel": "Language to translate from",
|
|
4
17
|
"Generic.Ok": "Ok",
|
|
5
18
|
"Generic.Save": "Guardar",
|
|
6
19
|
"Generic.Cancel": "Cancelar",
|
package/fr.async.esm.esm.js
CHANGED
package/index.esm2.js
CHANGED
|
@@ -78786,7 +78786,10 @@ var PeoplePicker = function PeoplePicker(props) {
|
|
|
78786
78786
|
inputProps: {
|
|
78787
78787
|
id: props.inputId,
|
|
78788
78788
|
required: props.required,
|
|
78789
|
-
'aria-required': props.required
|
|
78789
|
+
'aria-required': props.required,
|
|
78790
|
+
'aria-label': props.inputAriaLabelResourceKey ? formatMessage({
|
|
78791
|
+
id: props.inputAriaLabelResourceKey
|
|
78792
|
+
}) : null
|
|
78790
78793
|
},
|
|
78791
78794
|
removeButtonAriaLabel: formatMessage({
|
|
78792
78795
|
id: 'AriaLabel.removeUserButton'
|
|
@@ -87447,9 +87450,9 @@ var AuthenticationContextProvider = function AuthenticationContextProvider(_a) {
|
|
|
87447
87450
|
}), void 0);
|
|
87448
87451
|
};
|
|
87449
87452
|
|
|
87450
|
-
var version$1 = "0.3.
|
|
87451
|
-
var buildId = "
|
|
87452
|
-
var commitId = "
|
|
87453
|
+
var version$1 = "0.3.49";
|
|
87454
|
+
var buildId = "100405";
|
|
87455
|
+
var commitId = "8965d9bd71aa7a014d593631e4d334869439c30e";
|
|
87453
87456
|
var isCustomerBuild = false;
|
|
87454
87457
|
var buildInfo = {
|
|
87455
87458
|
version: version$1,
|
|
@@ -131786,7 +131789,7 @@ if(node.querySelector('[data-code-html]')==null){node.innerHTML='';}}};var Heade
|
|
|
131786
131789
|
// Delay the pollResult a bit so the users sees the animation
|
|
131787
131790
|
var delayedFetchPollResult=useDebouncedCallback(fetchPollResults,500)[0];if(isLoading){return null;}var actualQuestions=__spreadArray(__spreadArray([],questionDefinitions),(additionalQuestions===null||additionalQuestions===void 0?void 0:additionalQuestions.questions)||[]);var hasMissingAnswers=!!userAnswers.find(function(a){return a.choiceIds.length===0;});var hasMissingUnsavedAnswer=unsavedQuestionsIds.length>0||userAnswers.some(function(a){return !a.choiceIds.length;});showResult=(showResult||!hasMissingUnsavedAnswer)&&actualQuestions.length>0;return jsx$1(PollUserContext.Provider,__assign({value:{item:item,resourceType:resourceType,questions:actualQuestions,answers:userAnswers,addAnswer:handleAddAnswer,setAnswers:setUserAnswers,pollResult:pollResult,isLoadingPollResult:isLoadingPollResult,showResult:showResult,hasMissingAnswers:hasMissingAnswers,hasMissingUnsavedAnswer:hasMissingUnsavedAnswer,submitPoll:handleSubmitPoll,getQuestionResult:getQuestionResult,reset:reset,onBehalfOfUpn:onBehalfOfUpn,fetchPollResults:fetchPollResults}},{children:jsx$1(PollTranslationContextProvider,__assign({contents:item.contents,language:language,additionalTranslations:additionalQuestions===null||additionalQuestions===void 0?void 0:additionalQuestions.translations},{children:children}),void 0)}),void 0);function handleAddAnswer(questionId,selectedChoiceIds){setUnsavedQuestionsIds(function(a){return __spreadArray(__spreadArray([],a),[questionId]);});setUserAnswers(function(answers){return answers.map(function(a){return a.questionId===questionId?__assign(__assign({},a),{choiceIds:__spreadArray([],selectedChoiceIds)}):a;});});}function handleSubmitPoll(savePollAnswers){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){switch(_a.label){case 0:_a.trys.push([0,2,,3]);setUnsavedQuestionsIds([]);return [4/*yield*/,savePollAnswers()];case 1:_a.sent();delayedFetchPollResult();return [3/*break*/,3];case 2:_a.sent();showError('Generic.error');return [3/*break*/,3];case 3:return [2/*return*/];}});});}function reset(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){setUnsavedQuestionsIds([]);setUserAnswers(createUsersAnswersFromFeedback({records:[]}));fetchPollResults();return [2/*return*/];});});}function loadUserAnswers(){return __awaiter(this,void 0,void 0,function(){var feedback,error_2;return __generator(this,function(_a){switch(_a.label){case 0:_a.trys.push([0,2,,3]);return [4/*yield*/,getFeedback(resourceType,itemId,onBehalfOfUpn)];case 1:feedback=_a.sent();return [3/*break*/,3];case 2:error_2=_a.sent();// if we got a 404, the user doesn't exist, in this case we simply treat the feedback as it is not set yet
|
|
131788
131791
|
if((error_2===null||error_2===void 0?void 0:error_2.response.statusCode)!==404){throw error_2;}feedback={records:[]};return [3/*break*/,3];case 3:return [2/*return*/,createUsersAnswersFromFeedback(feedback)];}});});}function createUsersAnswersFromFeedback(feedback){var pollFeedback=feedback.records.find(function(r){return r.type==='poll';});var answers=pollFeedback?pollFeedback.answers:[];return questionDefinitions.map(function(q){return {questionId:q.questionId,choiceIds:answers.filter(function(a){return a.questionId===q.questionId;}).map(function(a){return a.choiceIds;})[0]||[]};}).concat(getAdditionalUserAnswers?getAdditionalUserAnswers(feedback.records)||[]:[]);}function getQuestionResult(questionId){var userSelectedChoices=userAnswers.filter(function(a){return a.questionId===questionId;}).map(function(a){return a.choiceIds;})[0]||[];return {showResults:showResult||unsavedQuestionsIds.every(function(id){return id!==questionId;})&&userSelectedChoices.length>0,userSelectedChoices:userSelectedChoices,totalFeedbackCount:pollResult.totalFeedbackCount,choiceResults:pollResult.answers.filter(function(a){return a.questionId===questionId;}).reduce(function(result,answer){return __spreadArray(__spreadArray([],result),answer.choices);},[]).reduce(function(result,next){var _a;return __assign(__assign({},result),(_a={},_a[next.choiceId]=next.count,_a));},{})};}};var DetailViewSectionPadding=css$2(templateObject_1$1g||(templateObject_1$1g=__makeTemplateObject(["\n padding: ","px ","px 0 ","px;\n\n @media (min-width: ","px) {\n padding: 0 ","px 0 ","px;\n }\n"],["\n padding: ","px ","px 0 ","px;\n\n @media (min-width: ","px) {\n padding: 0 ","px 0 ","px;\n }\n"])),spacingXs,spacingM,spacingM,minScreenSize.small,spacingXl,spacingXl);var templateObject_1$1g;var PollResultFeedbackCount=function PollResultFeedbackCount(){var _a=useContext(PollUserContext),showResult=_a.showResult,pollResult=_a.pollResult;if(!showResult){return null;}return jsx$1("div",__assign({className:"ms-fontColor-neutralTertiary","data-poll-result-total-count":pollResult.totalFeedbackCount},{children:jsx$1(FormattedMessage$1,{id:"Polls.editor.totalFeedbackCount",values:{count:pollResult.totalFeedbackCount},tagName:"span"},void 0)}),void 0);};var DetailViewPoll=function DetailViewPoll(){var _a=useDetailViewContext(),item=_a.item,contentLanguage=_a.contentLanguage,resourceType=_a.resourceType,isEditorPreview=_a.isEditorPreview;var features=useFeatures();var getPollResult=useFeedbackApi().getPollResult;if(!features.polls||item==null||item.poll==null||item.poll.questions==null||item.poll.questions.length===0){return null;}return jsx$1(PollUserContextProvider,__assign({item:item,resourceType:resourceType,language:contentLanguage,getPollResults:function(itemId){return getPollResult(resourceType,itemId);}},{children:jsxs(StyledPollDisplay$1,{children:[jsx$1(PollResultFeedbackCount,{},void 0),jsx$1(DetailViewPollsSubmitButton,{isReadOnly:isEditorPreview},void 0),jsx$1(StyledPollResultExport,{},void 0)]},void 0)}),void 0);};var StyledPollResultExport=_styled(DetailViewPollExportButton).withConfig({displayName:"DetailViewPoll__StyledPollResultExport",componentId:"sc-gvqgh8-0"})(templateObject_1$1f||(templateObject_1$1f=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingS);var StyledPollDisplay$1=_styled(PollDisplay).withConfig({displayName:"DetailViewPoll__StyledPollDisplay",componentId:"sc-gvqgh8-1"})(templateObject_2$K||(templateObject_2$K=__makeTemplateObject(["\n ",";\n margin-bottom: ","px;\n\n max-width: 500px;\n"],["\n ",";\n margin-bottom: ","px;\n\n max-width: 500px;\n"])),DetailViewSectionPadding,spacingL);var templateObject_1$1f,templateObject_2$K;var EventDetailViewResponseExportButton=function EventDetailViewResponseExportButton(_a){var className=_a.className;var features=useFeatures();if(!features.events){return null;}return jsx$1(DetailViewCsvExportButton,{className:className,path:"feedback/registration/result/export",stringResource:"Events.registration.exportResultsAsCsv"},void 0);};var FeedbackItemType;(function(FeedbackItemType){FeedbackItemType["comment"]="comment";FeedbackItemType["like"]="like";FeedbackItemType["confirm"]="confirm";FeedbackItemType["poll"]="poll";FeedbackItemType["eventRegistration"]="eventRegistration";})(FeedbackItemType||(FeedbackItemType={}));var EventRegistrationContextProvider=function EventRegistrationContextProvider(_a){var _b;var onBehalfOfUpn=_a.onBehalfOfUpn,children=_a.children;var formatMessage=useIntl().formatMessage;var features=useFeatures();var _c=useDetailViewContext(),item=_c.item,contentLanguage=_c.contentLanguage;var getEventRegistrationResults=useEventRegistrationApi().getEventRegistrationResults;if(!features.events||item==null){return null;}var locationQuestionId=getLocationQuestionId(item);var isCancelled=(_b=item.cancelInformation)===null||_b===void 0?void 0:_b.isCancelled;return jsx$1(PollUserContextProvider,__assign({item:item,onBehalfOfUpn:onBehalfOfUpn,resourceType:ItemResourceTypes.Events,language:contentLanguage,getAdditionalQuestions:function(result){return getAdditionalQuestions(result);},getAdditionalUserAnswers:extractLocationAnswers,getPollResults:getRegistrationResult,showResult:!!isCancelled},{children:children}),void 0);function getAdditionalQuestions(result){var _a=getLocationPollDefinitions(item,formatMessage,result,!!onBehalfOfUpn),question=_a.question,translations=_a.translations;return {questions:question?[question]:null,translations:translations};}function extractLocationAnswers(records){if(!item.locations||item.locations.length<2){return null;}var eventResponse=records.find(function(r){return r.type===FeedbackItemType.eventRegistration;});return [{questionId:locationQuestionId,choiceIds:eventResponse&&eventResponse.locationId?[eventResponse.locationId]:[]}];}function getRegistrationResult(itemId){return __awaiter(this,void 0,void 0,function(){var result;return __generator(this,function(_a){switch(_a.label){case 0:return [4/*yield*/,getEventRegistrationResults(itemId)];case 1:result=_a.sent();return [2/*return*/,{totalFeedbackCount:result.totalFeedbackCount,answers:result.answers.concat([{questionId:locationQuestionId,choices:result.locationAnswers.map(function(l){return {choiceId:l.locationId,count:l.count};})}])}];}});});}};var EventDetailViewUserRegistration=function EventDetailViewUserRegistration(_a){var className=_a.className,hideInfoMessage=_a.hideInfoMessage;var pollUserContext=useContext(PollUserContext);var getFeedback=useFeedbackApi().getFeedback;var item=pollUserContext.item;var isLoadingPollResult=pollUserContext.isLoadingPollResult,pollResult=pollUserContext.pollResult,onBehalfOfUpn=pollUserContext.onBehalfOfUpn;var _b=usePromise$2(getEventResponse,item.userResponse,[item]),eventResponse=_b[0],isLoading=_b[1],setEventResponse=_b[3];// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
131789
|
-
var seatsResult=useMemo(getSeatsLeft,[isLoading,isLoadingPollResult,pollResult,item.id]);return jsx$1(EventUserRegistrationContext.Provider,__assign({value:__assign(__assign({},pollUserContext),{hasPollContext:true,eventResponse:eventResponse,setEventResponse:setEventResponse,isLoading:isLoadingPollResult||isLoading,seatsInfo:seatsResult})},{children:jsx$1(EventUserRegistration,{className:className,hideInfoMessage:hideInfoMessage},void 0)}),void 0);function getEventResponse(){return __awaiter(this,void 0,void 0,function(){var feedback,eventRecord;return __generator(this,function(_a){switch(_a.label){case 0:return [4/*yield*/,getFeedback(ItemResourceTypes.Events,item.id,onBehalfOfUpn)];case 1:feedback=_a.sent();eventRecord=feedback&&feedback.records.find(function(r){return r.type==='eventRegistration';});return [2/*return*/,eventRecord?eventRecord.eventResponse:EventResponse.NotSet];}});});}function getSeatsLeft(){var _a,_b,_c,_d;if(isLoading||!item.registrationSettings||!item.registrationSettings.enabled||((_a=item.cancelInformation)===null||_a===void 0?void 0:_a.isCancelled)||!((_b=pollResult===null||pollResult===void 0?void 0:pollResult.answers)===null||_b===void 0?void 0:_b.length)||isLoadingPollResult){return {hasAnySeatsLeft:true};}var locationsWithSeats=item.locations.filter(function(l){return l.maxNumberOfSeats>0;});var hasLocationsWithoutSeats=locationsWithSeats.length!==item.locations.length;if(!locationsWithSeats.length||hasLocationsWithoutSeats){return {hasAnySeatsLeft:true};}var locationAnswers=(_d=(_c=pollResult.answers.find(function(a){return a.questionId===getLocationQuestionId(item);}))===null||_c===void 0?void 0:_c.choices)===null||_d===void 0?void 0:_d.reduce(function(prev,curr){prev[curr.choiceId]=curr.count;return prev;},{});var locationsWithSeatsLeft=locationsWithSeats.map(function(l){return __assign(__assign({},l),{seatsLeft:Math.max(l.maxNumberOfSeats-(locationAnswers[l.locationId]||0),0)});});return {hasAnySeatsLeft:locationsWithSeatsLeft.some(function(l){return l.seatsLeft>0;}),locations:locationsWithSeatsLeft};}};var EventRegistrationRegisterSomeoneElseDialog=function EventRegistrationRegisterSomeoneElseDialog(_a){var show=_a.show,onDismiss=_a.onDismiss,onUpdate=_a.onUpdate;var formatMessage=useIntl().formatMessage;var user=useCurrentUser();var features=useFeatures();var _b=useState$2(),onBehalfOfUser=_b[0],setOnBehalfOfUser=_b[1];var item=useDetailViewContext().item;var isGroupAdmin=hasMinRoleInAllGroups(GroupRoles.Admin,user,item);useListener(EventResponseTriggerAction.type,function(action){if(action.itemId!==item.id){return false;}onUpdate({upn:onBehalfOfUser.userPrincipalName,displayName:onBehalfOfUser.displayName,locationId:action.locationId},action.response);onDismiss();return true;},[item.id,onBehalfOfUser===null||onBehalfOfUser===void 0?void 0:onBehalfOfUser.userPrincipalName]);return jsx$1(MobileFullHeightDialog,__assign({hidden:!show,modalProps:{isBlocking:true,className:'dialog-register-user'},dialogContentProps:{type:DialogType.close,title:formatMessage({id:'Events.registration.registerSomeoneElse.title'})},onDismiss:onDismiss},{children:jsxs(Host$s,__assign({className:"dialog-content-host"},{children:[jsx$1(DialogGlobalStyle$2,{},void 0),jsx$1(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.peoplePickerLabel"},void 0),jsx$1(StyledPeoplePicker,{accountType:AccountType.User,allowMailItems:isGroupAdmin&&features.userInvitation,localOnly:!isGroupAdmin,includePendingInvitationUsers:true,includePendingRegistrationUsers:true,selectionMode:SelectionMode.single,selectedItems:onBehalfOfUser?[onBehalfOfUser]:[],onChange:function(accounts){return setOnBehalfOfUser(accounts[0]);},placeholderStringResourceKey:"Events.registration.registerSomeoneElse.peoplePickerPlaceholder",excludedItems:[user]},void 0),onBehalfOfUser&&jsxs(EventRegistrationContextProvider,__assign({onBehalfOfUpn:onBehalfOfUser.userPrincipalName},{children:[jsxs(DialogMainContent,__assign({isScrollable:!env.isAnyMobileApp},{children:[!(onBehalfOfUser===null||onBehalfOfUser===void 0?void 0:onBehalfOfUser.id)&&jsx$1(InvitationInfoMessage,{subscriptionName:getSubscriptionName(user.subscription)},void 0),jsx$1(StyledPollDisplay,{},void 0)]}),void 0),jsx$1(DialogFooter,{children:jsxs(Buttons,{children:[jsx$1(CancelButton,{onClick:onDismiss},void 0),jsx$1(EventDetailViewUserRegistration,{hideInfoMessage:true},void 0)]},void 0)},void 0)]}),onBehalfOfUser.userPrincipalName)]}),void 0)}),void 0);};var Host$s=_styled.div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__Host",componentId:"sc-1rziepe-0"})(templateObject_1$1e||(templateObject_1$1e=__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n\n @media (min-width: ","px) {\n width: 400px;\n }\n\n .ms-Dialog-action {\n display: block;\n margin: 0;\n }\n"],["\n display: flex;\n flex-direction: column;\n\n @media (min-width: ","px) {\n width: 400px;\n }\n\n .ms-Dialog-action {\n display: block;\n margin: 0;\n }\n"])),minScreenSize.small);var Buttons=_styled.div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__Buttons",componentId:"sc-1rziepe-1"})(templateObject_2$J||(templateObject_2$J=__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-right: 4px; /* buttons alignment on the right */\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-right: 4px; /* buttons alignment on the right */\n"])));var StyledPeoplePicker=_styled(PeoplePicker).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledPeoplePicker",componentId:"sc-1rziepe-2"})(templateObject_3$v||(templateObject_3$v=__makeTemplateObject(["\n margin: ","px 0 ","px 0;\n\n .ms-BasePicker-text {\n padding: 0 !important;\n }\n"],["\n margin: ","px 0 ","px 0;\n\n .ms-BasePicker-text {\n padding: 0 !important;\n }\n"])),spacingS,spacingM);var DialogMainContent=_styled.div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__DialogMainContent",componentId:"sc-1rziepe-3"})(templateObject_5$k||(templateObject_5$k=__makeTemplateObject(["\n ","\n margin-bottom: auto;\n"],["\n ","\n margin-bottom: auto;\n"])),function(p){return p.isScrollable&&css$2(templateObject_4$l||(templateObject_4$l=__makeTemplateObject(["\n max-height: 300px;\n overflow: auto;\n "],["\n max-height: 300px;\n overflow: auto;\n "])));});var StyledPollDisplay=_styled(PollDisplay).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledPollDisplay",componentId:"sc-1rziepe-4"})(templateObject_6$d||(templateObject_6$d=__makeTemplateObject(["\n max-width: calc(100% - 10px);\n padding-left: 4px; // needed for the focus indicator\n"],["\n max-width: calc(100% - 10px);\n padding-left: 4px; // needed for the focus indicator\n"])));var CancelButton=function CancelButton(_a){var onClick=_a.onClick;return jsx$1(StyledCancelButton,__assign({onClick:onClick},{children:jsx$1(FormattedMessage$1,{id:"Generic.Cancel"},void 0)}),void 0);};var InvitationInfoMessage=function InvitationInfoMessage(_a){var subscriptionName=_a.subscriptionName;return jsxs(InfoMessageHost,{children:[jsx$1(InfoIcon,{iconName:"info"},void 0),jsx$1(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.userWillBeInvited",values:{subscriptionName:subscriptionName}},void 0)]},void 0);};var InfoMessageHost=_styled.div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__InfoMessageHost",componentId:"sc-1rziepe-5"})(templateObject_7$8||(templateObject_7$8=__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding-bottom: ","px;\n"],["\n display: flex;\n align-items: center;\n padding-bottom: ","px;\n"])),spacingM);var InfoIcon=_styled(Icon).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__InfoIcon",componentId:"sc-1rziepe-6"})(templateObject_8$7||(templateObject_8$7=__makeTemplateObject(["\n padding-right: ","px;\n"],["\n padding-right: ","px;\n"])),spacingS);var StyledCancelButton=_styled(DefaultButton).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledCancelButton",componentId:"sc-1rziepe-7"})(templateObject_9$5||(templateObject_9$5=__makeTemplateObject(["\n && {\n margin-right: ","px;\n }\n"],["\n && {\n margin-right: ","px;\n }\n"])),spacingM);var DialogGlobalStyle$2=createGlobalStyle(templateObject_10$4||(templateObject_10$4=__makeTemplateObject(["\n .dialog-register-user {\n .ms-Overlay {\n background-color: transparent !important;\n }\n\n .ms-Dialog-main {\n box-shadow: none !important;\n\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n min-height: 466px;\n }\n }\n"],["\n .dialog-register-user {\n .ms-Overlay {\n background-color: transparent !important;\n }\n\n .ms-Dialog-main {\n box-shadow: none !important;\n\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n min-height: 466px;\n }\n }\n"])),maxScreenSize.small);var templateObject_1$1e,templateObject_2$J,templateObject_3$v,templateObject_4$l,templateObject_5$k,templateObject_6$d,templateObject_7$8,templateObject_8$7,templateObject_9$5,templateObject_10$4;var EventRegistrationRegisterSomeoneElseButton=function EventRegistrationRegisterSomeoneElseButton(_a){var item=_a.item,onRegister=_a.onRegister,onDeregister=_a.onDeregister;var user=useCurrentUser();var _b=useState$2(false),showDialog=_b[0],setShowDialog=_b[1];if(!hasMinRoleInAllGroups(GroupRoles.Author,user,item)){return null;}return jsxs(Fragment,{children:[jsx$1(StyledButton$1,__assign({iconProps:{iconName:'AddFriend'},onClick:function(){return setShowDialog(true);}},{children:jsx$1(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.title"},void 0)}),void 0),showDialog&&jsx$1(EventRegistrationRegisterSomeoneElseDialog,{onDismiss:handleDismiss,onUpdate:handleUpdate,show:showDialog},void 0)]},void 0);function handleDismiss(){setShowDialog(false);}function handleUpdate(participant,response){if(response===EventResponse.Registered){onRegister===null||onRegister===void 0?void 0:onRegister(participant);}else {onDeregister===null||onDeregister===void 0?void 0:onDeregister(participant);}}};var StyledButton$1=_styled(ActionButton).withConfig({displayName:"EventRegistrationRegisterSomeoneElseButton__StyledButton",componentId:"sc-mgwolr-0"})(templateObject_1$1d||(templateObject_1$1d=__makeTemplateObject(["\n && {\n height: auto;\n padding: 0;\n margin-bottom: ","px;\n border: 0;\n }\n"],["\n && {\n height: auto;\n padding: 0;\n margin-bottom: ","px;\n border: 0;\n }\n"])),spacingS);var templateObject_1$1d;var EventRegistrationDeregisterPersonButton=function EventRegistrationDeregisterPersonButton(_a){var item=_a.item,participant=_a.participant,onDeregistered=_a.onDeregistered;var user=useCurrentUserContext().user;var refreshUserDetails=useRefreshUserDetails();var setEventRegistration=useEventRegistrationApi().setEventRegistration;var showToast=useNotificationContext().showToast;var formatMessage=useIntl().formatMessage;var _b=useState$2(false),showDialog=_b[0],setShowDialog=_b[1];if(!hasMinRoleInAllGroups(GroupRoles.Author,user,item)){return null;}return jsxs("div",{children:[jsx$1(Tooltip,__assign({resourceKey:"Events.registration.deRegisterSomeoneElse.title",values:{name:participant.displayName}},{children:jsx$1(IconButton,{iconProps:{iconName:'Delete'},onClick:function(){return setShowDialog(true);},ariaLabel:formatMessage({id:'Events.registration.deRegisterSomeoneElse.title'},{name:participant.displayName})},void 0)}),void 0),showDialog&&jsx$1(ConfirmDialog,{showDialog:showDialog,titleResourceKey:"Events.registration.deRegisterSomeoneElse.confirmTitle",titleResourceValues:{name:participant.displayName},onConfirm:deRegister,onClose:function(){return setShowDialog(false);}},void 0)]},void 0);function deRegister(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){switch(_a.label){case 0:onDeregistered();return [4/*yield*/,setEventRegistration(item.id,EventResponse.NotSet,null,null,participant.upn)];case 1:_a.sent();refreshUserDetails();showToast('Events.registration.onBehalfOfDeregistrationSuccess',{mail:participant.displayName});return [2/*return*/];}});});}};var EventRegistrationParticipantsDialog=function EventRegistrationParticipantsDialog(_a){var numberOfParticipants=_a.numberOfParticipants,show=_a.show,onDismiss=_a.onDismiss;var formatMessage=useIntl().formatMessage;return jsx$1(MobileFullHeightDialog,__assign({hidden:!show,modalProps:{isBlocking:false,className:'dialog-event-participants'},dialogContentProps:{type:DialogType.close,title:formatMessage({id:'Events.registration.participants'},{count:numberOfParticipants})},onDismiss:onDismiss},{children:jsxs(Host$r,__assign({className:"dialog-content-host"},{children:[jsx$1(DialogGlobalStyle$1,{},void 0),jsx$1(ParticipantsList,{},void 0)]}),void 0)}),void 0);};var Host$r=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__Host",componentId:"sc-1biaauh-0"})(templateObject_1$1c||(templateObject_1$1c=__makeTemplateObject(["\n @media (min-width: ","px) {\n width: 400px;\n }\n"],["\n @media (min-width: ","px) {\n width: 400px;\n }\n"])),minScreenSize.small);var DialogGlobalStyle$1=createGlobalStyle(templateObject_2$I||(templateObject_2$I=__makeTemplateObject(["\n .dialog-event-participants {\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n height: 466px;\n }\n}\n"],["\n .dialog-event-participants {\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n height: 466px;\n }\n}\n"])),maxScreenSize.small);var ParticipantsList=function ParticipantsList(){var formatMessage=useIntl().formatMessage;var user=useCurrentUser();var getParticipants=useEventRegistrationApi().getParticipants;var textColors=useContext(ThemeContext$1).theme.textColors;var _a=useContext(PollUserContext),fetchPollResults=_a.fetchPollResults,publishableItem=_a.item;var item=publishableItem;var _b=usePromise$2(getSortedParticipants,[],[item.id]),unfilteredParticipants=_b[0],isLoading=_b[1],setParticipants=_b[3];var handleSearchDebounced=useDebouncedCallback(handleSearch,300)[0];var _c=useState$2(),filteredParticipants=_c[0],setFilteredParticipants=_c[1];var participants=filteredParticipants||unfilteredParticipants;return jsxs(ListHost,{children:[jsx$1(EventRegistrationRegisterSomeoneElseButton,{item:item,onDeregister:handleDeregister,onRegister:handleRegister},void 0),jsx$1(SearchArea,{children:jsx$1(StyledSearchBox$1,{placeholder:formatMessage({id:'Events.registration.participants.search.placeholder'}),disabled:isLoading,onChange:function(_,value){return handleSearchDebounced(unfilteredParticipants,value);},iconProps:{style:{color:textColors.default}}},void 0)},void 0),isLoading&&jsx$1(Spinner,{},void 0),jsx$1(ListContainer,__assign({isScrollable:!env.isAnyMobileApp},{children:participants.map(function(p){var showDeregisterButton=p.upn!==user.userPrincipalName;return jsxs(ListRow,{children:[jsx$1(PersonaCardWrapper,__assign({showDeregisterButton:showDeregisterButton},{children:jsx$1(StyledPersonaCard,__assign({upn:p.upn},{children:jsx$1(StyledAvatar,{upn:p.upn,text:p.displayName,secondaryText:p.location&&formatMessage({id:'Events.registration.participants.location'},{location:p.location})},void 0)}),void 0)}),void 0),showDeregisterButton&&jsx$1(EventRegistrationDeregisterPersonButton,{item:item,participant:p,onDeregistered:function(){return handleDeregister(p);}},void 0)]},p.upn);})}),void 0),!isLoading&&!participants.length&&jsx$1(FormattedMessage$1,{id:"Generic.noResultsFound"},void 0)]},void 0);function getSortedParticipants(){return __awaiter(this,void 0,void 0,function(){var numberOfLocations,locationsMap,participants;return __generator(this,function(_a){switch(_a.label){case 0:numberOfLocations=item===null||item===void 0?void 0:item.locations.length;locationsMap=getLocations();return [4/*yield*/,getParticipants(item.id)];case 1:participants=_a.sent()||[];return [2/*return*/,participants.map(function(p){return __assign(__assign({},p),{location:numberOfLocations>1?locationsMap[p.locationId]||'':''});}).sort(function(a,b){var locationCompare=(locationsMap[a.locationId]||'').localeCompare(locationsMap[b.locationId]||'');if(locationCompare!==0){return locationCompare;}return a.displayName.localeCompare(b.displayName);})];}});});}function getLocations(){var _a;return ((_a=item.locations)===null||_a===void 0?void 0:_a.reduce(function(prev,curr){prev[curr.locationId]=curr.name;return prev;},{}))||{};}function handleSearch(unfilteredParticipants,searchValue){if(!searchValue){setFilteredParticipants(null);return;}var filter=new RegExp(searchValue,'i');setFilteredParticipants(unfilteredParticipants.filter(function(p){return (p.displayName+"|"+p.upn+"|"+p.location).search(filter)>-1;}));}function handleDeregister(participant){setParticipants(function(ps){return ps.filter(function(p){return p.upn!==participant.upn;});});fetchPollResults();setFilteredParticipants(null);}function handleRegister(participant){setParticipants(function(ps){return ps.concat([__assign(__assign({},participant),{location:getLocations()[participant.locationId]||''})]);});fetchPollResults();setFilteredParticipants(null);}};var ListContainer=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListContainer",componentId:"sc-1biaauh-1"})(templateObject_4$k||(templateObject_4$k=__makeTemplateObject(["\n padding: 4px;\n\n ","\n"],["\n padding: 4px;\n\n ","\n"])),function(p){return p.isScrollable&&css$2(templateObject_3$u||(templateObject_3$u=__makeTemplateObject(["\n max-height: 382px;\n overflow: auto;\n "],["\n max-height: 382px;\n overflow: auto;\n "])));});var SearchArea=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__SearchArea",componentId:"sc-1biaauh-2"})(templateObject_5$j||(templateObject_5$j=__makeTemplateObject(["\n margin-bottom: ","px;\n display: flex;\n"],["\n margin-bottom: ","px;\n display: flex;\n"])),spacingM);var StyledSearchBox$1=_styled(SearchBox$1).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledSearchBox",componentId:"sc-1biaauh-3"})(templateObject_6$c||(templateObject_6$c=__makeTemplateObject(["\n flex-grow: 1;\n"],["\n flex-grow: 1;\n"])));var ListRow=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListRow",componentId:"sc-1biaauh-4"})(templateObject_7$7||(templateObject_7$7=__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-bottom: ","px;\n"],["\n display: flex;\n align-items: center;\n margin-bottom: ","px;\n"])),spacingS);var PersonaCardWrapper=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__PersonaCardWrapper",componentId:"sc-1biaauh-5"})(templateObject_8$6||(templateObject_8$6=__makeTemplateObject(["\n width: calc(100% - ","px);\n"],["\n width: calc(100% - ","px);\n"])),function(p){return p.showDeregisterButton?32:0;});var StyledPersonaCard=_styled(PersonaCard).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledPersonaCard",componentId:"sc-1biaauh-6"})(templateObject_9$4||(templateObject_9$4=__makeTemplateObject(["\n width: 100%;\n\n & > * {\n width: 100%;\n }\n"],["\n width: 100%;\n\n & > * {\n width: 100%;\n }\n"])));var StyledAvatar=_styled(Avatar).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledAvatar",componentId:"sc-1biaauh-7"})(templateObject_10$3||(templateObject_10$3=__makeTemplateObject(["\n .ms-Persona-secondaryText {\n white-space: initial;\n }\n\n height: auto;\n\n > div:first-child {\n align-self: flex-start;\n }\n"],["\n .ms-Persona-secondaryText {\n white-space: initial;\n }\n\n height: auto;\n\n > div:first-child {\n align-self: flex-start;\n }\n"])));var ListHost=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListHost",componentId:"sc-1biaauh-8"})(templateObject_11$2$1||(templateObject_11$2$1=__makeTemplateObject([""],[""])));var templateObject_1$1c,templateObject_2$I,templateObject_3$u,templateObject_4$k,templateObject_5$j,templateObject_6$c,templateObject_7$7,templateObject_8$6,templateObject_9$4,templateObject_10$3,templateObject_11$2$1;var EventRegistrationParticipantsLink=function EventRegistrationParticipantsLink(){var _a;var user=useCurrentUser();var _b=useContext(PollUserContext),pollResult=_b.pollResult,publishableItem=_b.item;var item=publishableItem;var _c=useState$2(false),showParticipants=_c[0],setShowParticipants=_c[1];var palette=useContext(ThemeContext$1).theme.palette;if(user.isPublicUser||(pollResult===null||pollResult===void 0?void 0:pollResult.totalFeedbackCount)==null){return null;}var isUserAuthor=hasMinRoleInAllGroups(GroupRoles.Author,user,item);var canOpenParticipantsDialog=isUserAuthor||pollResult.totalFeedbackCount>0&&((_a=item.registrationSettings)===null||_a===void 0?void 0:_a.showParticipantsToEverybody);return jsxs("div",__assign({"data-poll-result-total-count":pollResult.totalFeedbackCount},{children:[!canOpenParticipantsDialog?jsx$1(NoParticipantsContainer,{children:jsx$1(FormattedMessage$1,{id:"Events.registration.participants.count",values:{count:pollResult.totalFeedbackCount}},void 0)},void 0):jsx$1(ParticipantsButton,__assign({onClick:function(){return setShowParticipants(true);},color:palette.accent},{children:jsx$1(FormattedMessage$1,{id:isUserAuthor?'Events.registration.participants.viewAndManage':'Events.registration.participants.count',values:{count:pollResult.totalFeedbackCount}},void 0)}),void 0),jsx$1(EventRegistrationParticipantsDialog,{numberOfParticipants:pollResult.totalFeedbackCount,show:showParticipants,onDismiss:function(){return setShowParticipants(false);}},void 0)]}),void 0);};var NoParticipantsContainer=_styled.div.withConfig({displayName:"EventRegistrationParticipantsLink__NoParticipantsContainer",componentId:"sc-44nkgi-0"})(templateObject_1$1b||(templateObject_1$1b=__makeTemplateObject(["\n color: ",";\n font-size: ","px;\n"],["\n color: ",";\n font-size: ","px;\n"])),function(p){return p.theme.palette.neutralTertiary;},fontSizeSmall);var ParticipantsButton=_styled(ActionButton).withConfig({displayName:"EventRegistrationParticipantsLink__ParticipantsButton",componentId:"sc-44nkgi-1"})(templateObject_2$H||(templateObject_2$H=__makeTemplateObject(["\n && {\n height: auto;\n padding: 0;\n font-size: ","px;\n }\n"],["\n && {\n height: auto;\n padding: 0;\n font-size: ","px;\n }\n"])),fontSizeSmall);var templateObject_1$1b,templateObject_2$H;var EventDetailViewRegistrationPoll=function EventDetailViewRegistrationPoll(){return jsx$1(EventRegistrationContextProvider,{children:jsxs(StyledPollDisplay$1,{children:[jsx$1(EventRegistrationParticipantsLink,{},void 0),jsx$1(StyledEventUserRegistration,{},void 0),jsx$1(StyledResponseExportButton,{},void 0)]},void 0)},void 0);};var StyledEventUserRegistration=_styled(EventDetailViewUserRegistration).withConfig({displayName:"EventDetailViewRegistrationPoll__StyledEventUserRegistration",componentId:"sc-1kxjndz-0"})(templateObject_1$1a||(templateObject_1$1a=__makeTemplateObject(["\n && {\n margin-top: ","px;\n }\n"],["\n && {\n margin-top: ","px;\n }\n"])),spacingS);var StyledResponseExportButton=_styled(EventDetailViewResponseExportButton).withConfig({displayName:"EventDetailViewRegistrationPoll__StyledResponseExportButton",componentId:"sc-1kxjndz-1"})(templateObject_2$G||(templateObject_2$G=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingS);var templateObject_1$1a,templateObject_2$G;var EventDetailViewRegistration=function EventDetailViewRegistration(){var item=useDetailViewContext().item;var isRegistrationEnabled=item.registrationSettings&&item.registrationSettings.enabled;if(isRegistrationEnabled){return jsx$1(EventDetailViewRegistrationPoll,{},void 0);}return jsx$1(DetailViewPoll,{},void 0);};var EventDetailViewCancelInformation=function EventDetailViewCancelInformation(){var _a=useDetailViewContext(),item=_a.item,contentLanguage=_a.contentLanguage;return jsx$1(EventCancelInformation,{item:item,language:contentLanguage},void 0);};var classof$a=classofRaw$1;// `IsArray` abstract operation
|
|
131792
|
+
var seatsResult=useMemo(getSeatsLeft,[isLoading,isLoadingPollResult,pollResult,item.id]);return jsx$1(EventUserRegistrationContext.Provider,__assign({value:__assign(__assign({},pollUserContext),{hasPollContext:true,eventResponse:eventResponse,setEventResponse:setEventResponse,isLoading:isLoadingPollResult||isLoading,seatsInfo:seatsResult})},{children:jsx$1(EventUserRegistration,{className:className,hideInfoMessage:hideInfoMessage},void 0)}),void 0);function getEventResponse(){return __awaiter(this,void 0,void 0,function(){var feedback,eventRecord;return __generator(this,function(_a){switch(_a.label){case 0:return [4/*yield*/,getFeedback(ItemResourceTypes.Events,item.id,onBehalfOfUpn)];case 1:feedback=_a.sent();eventRecord=feedback&&feedback.records.find(function(r){return r.type==='eventRegistration';});return [2/*return*/,eventRecord?eventRecord.eventResponse:EventResponse.NotSet];}});});}function getSeatsLeft(){var _a,_b,_c,_d;if(isLoading||!item.registrationSettings||!item.registrationSettings.enabled||((_a=item.cancelInformation)===null||_a===void 0?void 0:_a.isCancelled)||!((_b=pollResult===null||pollResult===void 0?void 0:pollResult.answers)===null||_b===void 0?void 0:_b.length)||isLoadingPollResult){return {hasAnySeatsLeft:true};}var locationsWithSeats=item.locations.filter(function(l){return l.maxNumberOfSeats>0;});var hasLocationsWithoutSeats=locationsWithSeats.length!==item.locations.length;if(!locationsWithSeats.length||hasLocationsWithoutSeats){return {hasAnySeatsLeft:true};}var locationAnswers=(_d=(_c=pollResult.answers.find(function(a){return a.questionId===getLocationQuestionId(item);}))===null||_c===void 0?void 0:_c.choices)===null||_d===void 0?void 0:_d.reduce(function(prev,curr){prev[curr.choiceId]=curr.count;return prev;},{});var locationsWithSeatsLeft=locationsWithSeats.map(function(l){return __assign(__assign({},l),{seatsLeft:Math.max(l.maxNumberOfSeats-(locationAnswers[l.locationId]||0),0)});});return {hasAnySeatsLeft:locationsWithSeatsLeft.some(function(l){return l.seatsLeft>0;}),locations:locationsWithSeatsLeft};}};var EventRegistrationRegisterSomeoneElseDialog=function EventRegistrationRegisterSomeoneElseDialog(_a){var show=_a.show,onDismiss=_a.onDismiss,onUpdate=_a.onUpdate;var formatMessage=useIntl().formatMessage;var user=useCurrentUser();var features=useFeatures();var _b=useState$2(),onBehalfOfUser=_b[0],setOnBehalfOfUser=_b[1];var item=useDetailViewContext().item;var isGroupAdmin=hasMinRoleInAllGroups(GroupRoles.Admin,user,item);useListener(EventResponseTriggerAction.type,function(action){if(action.itemId!==item.id){return false;}onUpdate({upn:onBehalfOfUser.userPrincipalName,displayName:onBehalfOfUser.displayName,locationId:action.locationId},action.response);onDismiss();return true;},[item.id,onBehalfOfUser===null||onBehalfOfUser===void 0?void 0:onBehalfOfUser.userPrincipalName]);return jsx$1(MobileFullHeightDialog,__assign({hidden:!show,modalProps:{isBlocking:true,className:'dialog-register-user'},dialogContentProps:{type:DialogType.close,title:formatMessage({id:'Events.registration.registerSomeoneElse.title'})},onDismiss:onDismiss},{children:jsxs(Host$s,__assign({className:"dialog-content-host"},{children:[jsx$1(DialogGlobalStyle$2,{},void 0),jsx$1("label",__assign({htmlFor:"someoneElse-peoplePicker"},{children:jsx$1(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.peoplePickerLabel"},void 0)}),void 0),jsx$1(StyledPeoplePicker,{accountType:AccountType.User,allowMailItems:isGroupAdmin&&features.userInvitation,localOnly:!isGroupAdmin,includePendingInvitationUsers:true,includePendingRegistrationUsers:true,selectionMode:SelectionMode.single,selectedItems:onBehalfOfUser?[onBehalfOfUser]:[],onChange:function(accounts){return setOnBehalfOfUser(accounts[0]);},placeholderStringResourceKey:"Events.registration.registerSomeoneElse.peoplePickerPlaceholder",excludedItems:[user],inputId:"someoneElse-peoplePicker"},void 0),onBehalfOfUser&&jsxs(EventRegistrationContextProvider,__assign({onBehalfOfUpn:onBehalfOfUser.userPrincipalName},{children:[jsxs(DialogMainContent,__assign({isScrollable:!env.isAnyMobileApp},{children:[!(onBehalfOfUser===null||onBehalfOfUser===void 0?void 0:onBehalfOfUser.id)&&jsx$1(InvitationInfoMessage,{subscriptionName:getSubscriptionName(user.subscription)},void 0),jsx$1(StyledPollDisplay,{},void 0)]}),void 0),jsx$1(DialogFooter,{children:jsxs(Buttons,{children:[jsx$1(CancelButton,{onClick:onDismiss},void 0),jsx$1(EventDetailViewUserRegistration,{hideInfoMessage:true},void 0)]},void 0)},void 0)]}),onBehalfOfUser.userPrincipalName)]}),void 0)}),void 0);};var Host$s=_styled.div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__Host",componentId:"sc-1rziepe-0"})(templateObject_1$1e||(templateObject_1$1e=__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n\n @media (min-width: ","px) {\n width: 400px;\n }\n\n .ms-Dialog-action {\n display: block;\n margin: 0;\n }\n"],["\n display: flex;\n flex-direction: column;\n\n @media (min-width: ","px) {\n width: 400px;\n }\n\n .ms-Dialog-action {\n display: block;\n margin: 0;\n }\n"])),minScreenSize.small);var Buttons=_styled.div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__Buttons",componentId:"sc-1rziepe-1"})(templateObject_2$J||(templateObject_2$J=__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-right: 4px; /* buttons alignment on the right */\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-right: 4px; /* buttons alignment on the right */\n"])));var StyledPeoplePicker=_styled(PeoplePicker).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledPeoplePicker",componentId:"sc-1rziepe-2"})(templateObject_3$v||(templateObject_3$v=__makeTemplateObject(["\n margin: ","px 0 ","px 0;\n\n .ms-BasePicker-text {\n padding: 0 !important;\n }\n"],["\n margin: ","px 0 ","px 0;\n\n .ms-BasePicker-text {\n padding: 0 !important;\n }\n"])),spacingS,spacingM);var DialogMainContent=_styled.div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__DialogMainContent",componentId:"sc-1rziepe-3"})(templateObject_5$k||(templateObject_5$k=__makeTemplateObject(["\n ","\n margin-bottom: auto;\n"],["\n ","\n margin-bottom: auto;\n"])),function(p){return p.isScrollable&&css$2(templateObject_4$l||(templateObject_4$l=__makeTemplateObject(["\n max-height: 300px;\n overflow: auto;\n "],["\n max-height: 300px;\n overflow: auto;\n "])));});var StyledPollDisplay=_styled(PollDisplay).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledPollDisplay",componentId:"sc-1rziepe-4"})(templateObject_6$d||(templateObject_6$d=__makeTemplateObject(["\n max-width: calc(100% - 10px);\n padding-left: 4px; // needed for the focus indicator\n"],["\n max-width: calc(100% - 10px);\n padding-left: 4px; // needed for the focus indicator\n"])));var CancelButton=function CancelButton(_a){var onClick=_a.onClick;return jsx$1(StyledCancelButton,__assign({onClick:onClick},{children:jsx$1(FormattedMessage$1,{id:"Generic.Cancel"},void 0)}),void 0);};var InvitationInfoMessage=function InvitationInfoMessage(_a){var subscriptionName=_a.subscriptionName;return jsxs(InfoMessageHost,{children:[jsx$1(InfoIcon,{iconName:"info"},void 0),jsx$1(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.userWillBeInvited",values:{subscriptionName:subscriptionName}},void 0)]},void 0);};var InfoMessageHost=_styled.div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__InfoMessageHost",componentId:"sc-1rziepe-5"})(templateObject_7$8||(templateObject_7$8=__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding-bottom: ","px;\n"],["\n display: flex;\n align-items: center;\n padding-bottom: ","px;\n"])),spacingM);var InfoIcon=_styled(Icon).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__InfoIcon",componentId:"sc-1rziepe-6"})(templateObject_8$7||(templateObject_8$7=__makeTemplateObject(["\n padding-right: ","px;\n"],["\n padding-right: ","px;\n"])),spacingS);var StyledCancelButton=_styled(DefaultButton).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledCancelButton",componentId:"sc-1rziepe-7"})(templateObject_9$5||(templateObject_9$5=__makeTemplateObject(["\n && {\n margin-right: ","px;\n }\n"],["\n && {\n margin-right: ","px;\n }\n"])),spacingM);var DialogGlobalStyle$2=createGlobalStyle(templateObject_10$4||(templateObject_10$4=__makeTemplateObject(["\n .dialog-register-user {\n .ms-Overlay {\n background-color: transparent !important;\n }\n\n .ms-Dialog-main {\n box-shadow: none !important;\n\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n min-height: 466px;\n }\n }\n"],["\n .dialog-register-user {\n .ms-Overlay {\n background-color: transparent !important;\n }\n\n .ms-Dialog-main {\n box-shadow: none !important;\n\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n min-height: 466px;\n }\n }\n"])),maxScreenSize.small);var templateObject_1$1e,templateObject_2$J,templateObject_3$v,templateObject_4$l,templateObject_5$k,templateObject_6$d,templateObject_7$8,templateObject_8$7,templateObject_9$5,templateObject_10$4;var EventRegistrationRegisterSomeoneElseButton=function EventRegistrationRegisterSomeoneElseButton(_a){var item=_a.item,onRegister=_a.onRegister,onDeregister=_a.onDeregister;var user=useCurrentUser();var _b=useState$2(false),showDialog=_b[0],setShowDialog=_b[1];if(!hasMinRoleInAllGroups(GroupRoles.Author,user,item)){return null;}return jsxs(Fragment,{children:[jsx$1(StyledButton$1,__assign({iconProps:{iconName:'AddFriend'},onClick:function(){return setShowDialog(true);}},{children:jsx$1(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.title"},void 0)}),void 0),showDialog&&jsx$1(EventRegistrationRegisterSomeoneElseDialog,{onDismiss:handleDismiss,onUpdate:handleUpdate,show:showDialog},void 0)]},void 0);function handleDismiss(){setShowDialog(false);}function handleUpdate(participant,response){if(response===EventResponse.Registered){onRegister===null||onRegister===void 0?void 0:onRegister(participant);}else {onDeregister===null||onDeregister===void 0?void 0:onDeregister(participant);}}};var StyledButton$1=_styled(ActionButton).withConfig({displayName:"EventRegistrationRegisterSomeoneElseButton__StyledButton",componentId:"sc-mgwolr-0"})(templateObject_1$1d||(templateObject_1$1d=__makeTemplateObject(["\n && {\n height: auto;\n padding: 0;\n margin-bottom: ","px;\n border: 0;\n }\n"],["\n && {\n height: auto;\n padding: 0;\n margin-bottom: ","px;\n border: 0;\n }\n"])),spacingS);var templateObject_1$1d;var EventRegistrationDeregisterPersonButton=function EventRegistrationDeregisterPersonButton(_a){var item=_a.item,participant=_a.participant,onDeregistered=_a.onDeregistered;var user=useCurrentUserContext().user;var refreshUserDetails=useRefreshUserDetails();var setEventRegistration=useEventRegistrationApi().setEventRegistration;var showToast=useNotificationContext().showToast;var formatMessage=useIntl().formatMessage;var _b=useState$2(false),showDialog=_b[0],setShowDialog=_b[1];if(!hasMinRoleInAllGroups(GroupRoles.Author,user,item)){return null;}return jsxs("div",{children:[jsx$1(Tooltip,__assign({resourceKey:"Events.registration.deRegisterSomeoneElse.title",values:{name:participant.displayName}},{children:jsx$1(IconButton,{iconProps:{iconName:'Delete'},onClick:function(){return setShowDialog(true);},ariaLabel:formatMessage({id:'Events.registration.deRegisterSomeoneElse.title'},{name:participant.displayName})},void 0)}),void 0),showDialog&&jsx$1(ConfirmDialog,{showDialog:showDialog,titleResourceKey:"Events.registration.deRegisterSomeoneElse.confirmTitle",titleResourceValues:{name:participant.displayName},onConfirm:deRegister,onClose:function(){return setShowDialog(false);}},void 0)]},void 0);function deRegister(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){switch(_a.label){case 0:onDeregistered();return [4/*yield*/,setEventRegistration(item.id,EventResponse.NotSet,null,null,participant.upn)];case 1:_a.sent();refreshUserDetails();showToast('Events.registration.onBehalfOfDeregistrationSuccess',{mail:participant.displayName});return [2/*return*/];}});});}};var EventRegistrationParticipantsDialog=function EventRegistrationParticipantsDialog(_a){var numberOfParticipants=_a.numberOfParticipants,show=_a.show,onDismiss=_a.onDismiss;var formatMessage=useIntl().formatMessage;return jsx$1(MobileFullHeightDialog,__assign({hidden:!show,modalProps:{isBlocking:false,className:'dialog-event-participants'},dialogContentProps:{type:DialogType.close,title:formatMessage({id:'Events.registration.participants'},{count:numberOfParticipants})},onDismiss:onDismiss},{children:jsxs(Host$r,__assign({className:"dialog-content-host"},{children:[jsx$1(DialogGlobalStyle$1,{},void 0),jsx$1(ParticipantsList,{},void 0)]}),void 0)}),void 0);};var Host$r=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__Host",componentId:"sc-1biaauh-0"})(templateObject_1$1c||(templateObject_1$1c=__makeTemplateObject(["\n @media (min-width: ","px) {\n width: 400px;\n }\n"],["\n @media (min-width: ","px) {\n width: 400px;\n }\n"])),minScreenSize.small);var DialogGlobalStyle$1=createGlobalStyle(templateObject_2$I||(templateObject_2$I=__makeTemplateObject(["\n .dialog-event-participants {\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n height: 466px;\n }\n}\n"],["\n .dialog-event-participants {\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n height: 466px;\n }\n}\n"])),maxScreenSize.small);var ParticipantsList=function ParticipantsList(){var formatMessage=useIntl().formatMessage;var user=useCurrentUser();var getParticipants=useEventRegistrationApi().getParticipants;var textColors=useContext(ThemeContext$1).theme.textColors;var _a=useContext(PollUserContext),fetchPollResults=_a.fetchPollResults,publishableItem=_a.item;var item=publishableItem;var _b=usePromise$2(getSortedParticipants,[],[item.id]),unfilteredParticipants=_b[0],isLoading=_b[1],setParticipants=_b[3];var handleSearchDebounced=useDebouncedCallback(handleSearch,300)[0];var _c=useState$2(),filteredParticipants=_c[0],setFilteredParticipants=_c[1];var participants=filteredParticipants||unfilteredParticipants;return jsxs(ListHost,{children:[jsx$1(EventRegistrationRegisterSomeoneElseButton,{item:item,onDeregister:handleDeregister,onRegister:handleRegister},void 0),jsx$1(SearchArea,{children:jsx$1(StyledSearchBox$1,{placeholder:formatMessage({id:'Events.registration.participants.search.placeholder'}),disabled:isLoading,onChange:function(_,value){return handleSearchDebounced(unfilteredParticipants,value);},iconProps:{style:{color:textColors.default}}},void 0)},void 0),isLoading&&jsx$1(Spinner,{},void 0),jsx$1(ListContainer,__assign({isScrollable:!env.isAnyMobileApp},{children:participants.map(function(p){var showDeregisterButton=p.upn!==user.userPrincipalName;return jsxs(ListRow,{children:[jsx$1(PersonaCardWrapper,__assign({showDeregisterButton:showDeregisterButton},{children:jsx$1(StyledPersonaCard,__assign({upn:p.upn},{children:jsx$1(StyledAvatar,{upn:p.upn,text:p.displayName,secondaryText:p.location&&formatMessage({id:'Events.registration.participants.location'},{location:p.location})},void 0)}),void 0)}),void 0),showDeregisterButton&&jsx$1(EventRegistrationDeregisterPersonButton,{item:item,participant:p,onDeregistered:function(){return handleDeregister(p);}},void 0)]},p.upn);})}),void 0),!isLoading&&!participants.length&&jsx$1(FormattedMessage$1,{id:"Generic.noResultsFound"},void 0)]},void 0);function getSortedParticipants(){return __awaiter(this,void 0,void 0,function(){var numberOfLocations,locationsMap,participants;return __generator(this,function(_a){switch(_a.label){case 0:numberOfLocations=item===null||item===void 0?void 0:item.locations.length;locationsMap=getLocations();return [4/*yield*/,getParticipants(item.id)];case 1:participants=_a.sent()||[];return [2/*return*/,participants.map(function(p){return __assign(__assign({},p),{location:numberOfLocations>1?locationsMap[p.locationId]||'':''});}).sort(function(a,b){var locationCompare=(locationsMap[a.locationId]||'').localeCompare(locationsMap[b.locationId]||'');if(locationCompare!==0){return locationCompare;}return a.displayName.localeCompare(b.displayName);})];}});});}function getLocations(){var _a;return ((_a=item.locations)===null||_a===void 0?void 0:_a.reduce(function(prev,curr){prev[curr.locationId]=curr.name;return prev;},{}))||{};}function handleSearch(unfilteredParticipants,searchValue){if(!searchValue){setFilteredParticipants(null);return;}var filter=new RegExp(searchValue,'i');setFilteredParticipants(unfilteredParticipants.filter(function(p){return (p.displayName+"|"+p.upn+"|"+p.location).search(filter)>-1;}));}function handleDeregister(participant){setParticipants(function(ps){return ps.filter(function(p){return p.upn!==participant.upn;});});fetchPollResults();setFilteredParticipants(null);}function handleRegister(participant){setParticipants(function(ps){return ps.concat([__assign(__assign({},participant),{location:getLocations()[participant.locationId]||''})]);});fetchPollResults();setFilteredParticipants(null);}};var ListContainer=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListContainer",componentId:"sc-1biaauh-1"})(templateObject_4$k||(templateObject_4$k=__makeTemplateObject(["\n padding: 4px;\n\n ","\n"],["\n padding: 4px;\n\n ","\n"])),function(p){return p.isScrollable&&css$2(templateObject_3$u||(templateObject_3$u=__makeTemplateObject(["\n max-height: 382px;\n overflow: auto;\n "],["\n max-height: 382px;\n overflow: auto;\n "])));});var SearchArea=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__SearchArea",componentId:"sc-1biaauh-2"})(templateObject_5$j||(templateObject_5$j=__makeTemplateObject(["\n margin-bottom: ","px;\n display: flex;\n"],["\n margin-bottom: ","px;\n display: flex;\n"])),spacingM);var StyledSearchBox$1=_styled(SearchBox$1).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledSearchBox",componentId:"sc-1biaauh-3"})(templateObject_6$c||(templateObject_6$c=__makeTemplateObject(["\n flex-grow: 1;\n"],["\n flex-grow: 1;\n"])));var ListRow=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListRow",componentId:"sc-1biaauh-4"})(templateObject_7$7||(templateObject_7$7=__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-bottom: ","px;\n"],["\n display: flex;\n align-items: center;\n margin-bottom: ","px;\n"])),spacingS);var PersonaCardWrapper=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__PersonaCardWrapper",componentId:"sc-1biaauh-5"})(templateObject_8$6||(templateObject_8$6=__makeTemplateObject(["\n width: calc(100% - ","px);\n"],["\n width: calc(100% - ","px);\n"])),function(p){return p.showDeregisterButton?32:0;});var StyledPersonaCard=_styled(PersonaCard).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledPersonaCard",componentId:"sc-1biaauh-6"})(templateObject_9$4||(templateObject_9$4=__makeTemplateObject(["\n width: 100%;\n\n & > * {\n width: 100%;\n }\n"],["\n width: 100%;\n\n & > * {\n width: 100%;\n }\n"])));var StyledAvatar=_styled(Avatar).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledAvatar",componentId:"sc-1biaauh-7"})(templateObject_10$3||(templateObject_10$3=__makeTemplateObject(["\n .ms-Persona-secondaryText {\n white-space: initial;\n }\n\n height: auto;\n\n > div:first-child {\n align-self: flex-start;\n }\n"],["\n .ms-Persona-secondaryText {\n white-space: initial;\n }\n\n height: auto;\n\n > div:first-child {\n align-self: flex-start;\n }\n"])));var ListHost=_styled.div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListHost",componentId:"sc-1biaauh-8"})(templateObject_11$2$1||(templateObject_11$2$1=__makeTemplateObject([""],[""])));var templateObject_1$1c,templateObject_2$I,templateObject_3$u,templateObject_4$k,templateObject_5$j,templateObject_6$c,templateObject_7$7,templateObject_8$6,templateObject_9$4,templateObject_10$3,templateObject_11$2$1;var EventRegistrationParticipantsLink=function EventRegistrationParticipantsLink(){var _a;var user=useCurrentUser();var _b=useContext(PollUserContext),pollResult=_b.pollResult,publishableItem=_b.item;var item=publishableItem;var _c=useState$2(false),showParticipants=_c[0],setShowParticipants=_c[1];var palette=useContext(ThemeContext$1).theme.palette;if(user.isPublicUser||(pollResult===null||pollResult===void 0?void 0:pollResult.totalFeedbackCount)==null){return null;}var isUserAuthor=hasMinRoleInAllGroups(GroupRoles.Author,user,item);var canOpenParticipantsDialog=isUserAuthor||pollResult.totalFeedbackCount>0&&((_a=item.registrationSettings)===null||_a===void 0?void 0:_a.showParticipantsToEverybody);return jsxs("div",__assign({"data-poll-result-total-count":pollResult.totalFeedbackCount},{children:[!canOpenParticipantsDialog?jsx$1(NoParticipantsContainer,{children:jsx$1(FormattedMessage$1,{id:"Events.registration.participants.count",values:{count:pollResult.totalFeedbackCount}},void 0)},void 0):jsx$1(ParticipantsButton,__assign({onClick:function(){return setShowParticipants(true);},color:palette.accent},{children:jsx$1(FormattedMessage$1,{id:isUserAuthor?'Events.registration.participants.viewAndManage':'Events.registration.participants.count',values:{count:pollResult.totalFeedbackCount}},void 0)}),void 0),jsx$1(EventRegistrationParticipantsDialog,{numberOfParticipants:pollResult.totalFeedbackCount,show:showParticipants,onDismiss:function(){return setShowParticipants(false);}},void 0)]}),void 0);};var NoParticipantsContainer=_styled.div.withConfig({displayName:"EventRegistrationParticipantsLink__NoParticipantsContainer",componentId:"sc-44nkgi-0"})(templateObject_1$1b||(templateObject_1$1b=__makeTemplateObject(["\n color: ",";\n font-size: ","px;\n"],["\n color: ",";\n font-size: ","px;\n"])),function(p){return p.theme.palette.neutralTertiary;},fontSizeSmall);var ParticipantsButton=_styled(ActionButton).withConfig({displayName:"EventRegistrationParticipantsLink__ParticipantsButton",componentId:"sc-44nkgi-1"})(templateObject_2$H||(templateObject_2$H=__makeTemplateObject(["\n && {\n height: auto;\n padding: 0;\n font-size: ","px;\n }\n"],["\n && {\n height: auto;\n padding: 0;\n font-size: ","px;\n }\n"])),fontSizeSmall);var templateObject_1$1b,templateObject_2$H;var EventDetailViewRegistrationPoll=function EventDetailViewRegistrationPoll(){return jsx$1(EventRegistrationContextProvider,{children:jsxs(StyledPollDisplay$1,{children:[jsx$1(EventRegistrationParticipantsLink,{},void 0),jsx$1(StyledEventUserRegistration,{},void 0),jsx$1(StyledResponseExportButton,{},void 0)]},void 0)},void 0);};var StyledEventUserRegistration=_styled(EventDetailViewUserRegistration).withConfig({displayName:"EventDetailViewRegistrationPoll__StyledEventUserRegistration",componentId:"sc-1kxjndz-0"})(templateObject_1$1a||(templateObject_1$1a=__makeTemplateObject(["\n && {\n margin-top: ","px;\n }\n"],["\n && {\n margin-top: ","px;\n }\n"])),spacingS);var StyledResponseExportButton=_styled(EventDetailViewResponseExportButton).withConfig({displayName:"EventDetailViewRegistrationPoll__StyledResponseExportButton",componentId:"sc-1kxjndz-1"})(templateObject_2$G||(templateObject_2$G=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingS);var templateObject_1$1a,templateObject_2$G;var EventDetailViewRegistration=function EventDetailViewRegistration(){var item=useDetailViewContext().item;var isRegistrationEnabled=item.registrationSettings&&item.registrationSettings.enabled;if(isRegistrationEnabled){return jsx$1(EventDetailViewRegistrationPoll,{},void 0);}return jsx$1(DetailViewPoll,{},void 0);};var EventDetailViewCancelInformation=function EventDetailViewCancelInformation(){var _a=useDetailViewContext(),item=_a.item,contentLanguage=_a.contentLanguage;return jsx$1(EventCancelInformation,{item:item,language:contentLanguage},void 0);};var classof$a=classofRaw$1;// `IsArray` abstract operation
|
|
131790
131793
|
// https://tc39.github.io/ecma262/#sec-isarray
|
|
131791
131794
|
var isArray$3=Array.isArray||function isArray(arg){return classof$a(arg)=='Array';};var $$2=_export;var isArray$2=isArray$3;var nativeReverse=[].reverse;var test=[1,2];// `Array.prototype.reverse` method
|
|
131792
131795
|
// https://tc39.github.io/ecma262/#sec-array.prototype.reverse
|
|
@@ -134267,6 +134270,9 @@ var GroupsDropdown = function GroupsDropdown(_a) {
|
|
|
134267
134270
|
var groups = getGroups();
|
|
134268
134271
|
return jsxs(Fragment, {
|
|
134269
134272
|
children: [jsx$1(GlobalDropdownStyles, {}, void 0), jsx$1(StyledDropdown, {
|
|
134273
|
+
ariaLabel: intl.formatMessage({
|
|
134274
|
+
id: 'AriaLabel.editor.groupSelector'
|
|
134275
|
+
}),
|
|
134270
134276
|
options: getOptions(),
|
|
134271
134277
|
onRenderOption: function (option) {
|
|
134272
134278
|
return jsxs(DropdownOption, {
|
package/index.umd.js
CHANGED
|
@@ -78643,7 +78643,10 @@
|
|
|
78643
78643
|
inputProps: {
|
|
78644
78644
|
id: props.inputId,
|
|
78645
78645
|
required: props.required,
|
|
78646
|
-
'aria-required': props.required
|
|
78646
|
+
'aria-required': props.required,
|
|
78647
|
+
'aria-label': props.inputAriaLabelResourceKey ? formatMessage({
|
|
78648
|
+
id: props.inputAriaLabelResourceKey
|
|
78649
|
+
}) : null
|
|
78647
78650
|
},
|
|
78648
78651
|
removeButtonAriaLabel: formatMessage({
|
|
78649
78652
|
id: 'AriaLabel.removeUserButton'
|
|
@@ -87304,9 +87307,9 @@
|
|
|
87304
87307
|
}), void 0);
|
|
87305
87308
|
};
|
|
87306
87309
|
|
|
87307
|
-
var version$1 = "0.3.
|
|
87308
|
-
var buildId = "
|
|
87309
|
-
var commitId = "
|
|
87310
|
+
var version$1 = "0.3.49";
|
|
87311
|
+
var buildId = "100405";
|
|
87312
|
+
var commitId = "8965d9bd71aa7a014d593631e4d334869439c30e";
|
|
87310
87313
|
var isCustomerBuild = false;
|
|
87311
87314
|
var buildInfo = {
|
|
87312
87315
|
version: version$1,
|
|
@@ -131659,7 +131662,7 @@
|
|
|
131659
131662
|
// Delay the pollResult a bit so the users sees the animation
|
|
131660
131663
|
var delayedFetchPollResult=useDebouncedCallback(fetchPollResults,500)[0];if(isLoading){return null;}var actualQuestions=__spreadArray(__spreadArray([],questionDefinitions),(additionalQuestions===null||additionalQuestions===void 0?void 0:additionalQuestions.questions)||[]);var hasMissingAnswers=!!userAnswers.find(function(a){return a.choiceIds.length===0;});var hasMissingUnsavedAnswer=unsavedQuestionsIds.length>0||userAnswers.some(function(a){return !a.choiceIds.length;});showResult=(showResult||!hasMissingUnsavedAnswer)&&actualQuestions.length>0;return jsxRuntime.jsx(PollUserContext.Provider,__assign({value:{item:item,resourceType:resourceType,questions:actualQuestions,answers:userAnswers,addAnswer:handleAddAnswer,setAnswers:setUserAnswers,pollResult:pollResult,isLoadingPollResult:isLoadingPollResult,showResult:showResult,hasMissingAnswers:hasMissingAnswers,hasMissingUnsavedAnswer:hasMissingUnsavedAnswer,submitPoll:handleSubmitPoll,getQuestionResult:getQuestionResult,reset:reset,onBehalfOfUpn:onBehalfOfUpn,fetchPollResults:fetchPollResults}},{children:jsxRuntime.jsx(PollTranslationContextProvider,__assign({contents:item.contents,language:language,additionalTranslations:additionalQuestions===null||additionalQuestions===void 0?void 0:additionalQuestions.translations},{children:children}),void 0)}),void 0);function handleAddAnswer(questionId,selectedChoiceIds){setUnsavedQuestionsIds(function(a){return __spreadArray(__spreadArray([],a),[questionId]);});setUserAnswers(function(answers){return answers.map(function(a){return a.questionId===questionId?__assign(__assign({},a),{choiceIds:__spreadArray([],selectedChoiceIds)}):a;});});}function handleSubmitPoll(savePollAnswers){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){switch(_a.label){case 0:_a.trys.push([0,2,,3]);setUnsavedQuestionsIds([]);return [4/*yield*/,savePollAnswers()];case 1:_a.sent();delayedFetchPollResult();return [3/*break*/,3];case 2:_a.sent();showError('Generic.error');return [3/*break*/,3];case 3:return [2/*return*/];}});});}function reset(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){setUnsavedQuestionsIds([]);setUserAnswers(createUsersAnswersFromFeedback({records:[]}));fetchPollResults();return [2/*return*/];});});}function loadUserAnswers(){return __awaiter(this,void 0,void 0,function(){var feedback,error_2;return __generator(this,function(_a){switch(_a.label){case 0:_a.trys.push([0,2,,3]);return [4/*yield*/,getFeedback(resourceType,itemId,onBehalfOfUpn)];case 1:feedback=_a.sent();return [3/*break*/,3];case 2:error_2=_a.sent();// if we got a 404, the user doesn't exist, in this case we simply treat the feedback as it is not set yet
|
|
131661
131664
|
if((error_2===null||error_2===void 0?void 0:error_2.response.statusCode)!==404){throw error_2;}feedback={records:[]};return [3/*break*/,3];case 3:return [2/*return*/,createUsersAnswersFromFeedback(feedback)];}});});}function createUsersAnswersFromFeedback(feedback){var pollFeedback=feedback.records.find(function(r){return r.type==='poll';});var answers=pollFeedback?pollFeedback.answers:[];return questionDefinitions.map(function(q){return {questionId:q.questionId,choiceIds:answers.filter(function(a){return a.questionId===q.questionId;}).map(function(a){return a.choiceIds;})[0]||[]};}).concat(getAdditionalUserAnswers?getAdditionalUserAnswers(feedback.records)||[]:[]);}function getQuestionResult(questionId){var userSelectedChoices=userAnswers.filter(function(a){return a.questionId===questionId;}).map(function(a){return a.choiceIds;})[0]||[];return {showResults:showResult||unsavedQuestionsIds.every(function(id){return id!==questionId;})&&userSelectedChoices.length>0,userSelectedChoices:userSelectedChoices,totalFeedbackCount:pollResult.totalFeedbackCount,choiceResults:pollResult.answers.filter(function(a){return a.questionId===questionId;}).reduce(function(result,answer){return __spreadArray(__spreadArray([],result),answer.choices);},[]).reduce(function(result,next){var _a;return __assign(__assign({},result),(_a={},_a[next.choiceId]=next.count,_a));},{})};}};var DetailViewSectionPadding=_styled.css(templateObject_1$1g||(templateObject_1$1g=__makeTemplateObject(["\n padding: ","px ","px 0 ","px;\n\n @media (min-width: ","px) {\n padding: 0 ","px 0 ","px;\n }\n"],["\n padding: ","px ","px 0 ","px;\n\n @media (min-width: ","px) {\n padding: 0 ","px 0 ","px;\n }\n"])),spacingXs,spacingM,spacingM,minScreenSize.small,spacingXl,spacingXl);var templateObject_1$1g;var PollResultFeedbackCount=function PollResultFeedbackCount(){var _a=React$d.useContext(PollUserContext),showResult=_a.showResult,pollResult=_a.pollResult;if(!showResult){return null;}return jsxRuntime.jsx("div",__assign({className:"ms-fontColor-neutralTertiary","data-poll-result-total-count":pollResult.totalFeedbackCount},{children:jsxRuntime.jsx(FormattedMessage$1,{id:"Polls.editor.totalFeedbackCount",values:{count:pollResult.totalFeedbackCount},tagName:"span"},void 0)}),void 0);};var DetailViewPoll=function DetailViewPoll(){var _a=useDetailViewContext(),item=_a.item,contentLanguage=_a.contentLanguage,resourceType=_a.resourceType,isEditorPreview=_a.isEditorPreview;var features=useFeatures();var getPollResult=useFeedbackApi().getPollResult;if(!features.polls||item==null||item.poll==null||item.poll.questions==null||item.poll.questions.length===0){return null;}return jsxRuntime.jsx(PollUserContextProvider,__assign({item:item,resourceType:resourceType,language:contentLanguage,getPollResults:function(itemId){return getPollResult(resourceType,itemId);}},{children:jsxRuntime.jsxs(StyledPollDisplay$1,{children:[jsxRuntime.jsx(PollResultFeedbackCount,{},void 0),jsxRuntime.jsx(DetailViewPollsSubmitButton,{isReadOnly:isEditorPreview},void 0),jsxRuntime.jsx(StyledPollResultExport,{},void 0)]},void 0)}),void 0);};var StyledPollResultExport=_styled__default["default"](DetailViewPollExportButton).withConfig({displayName:"DetailViewPoll__StyledPollResultExport",componentId:"sc-gvqgh8-0"})(templateObject_1$1f||(templateObject_1$1f=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingS);var StyledPollDisplay$1=_styled__default["default"](PollDisplay).withConfig({displayName:"DetailViewPoll__StyledPollDisplay",componentId:"sc-gvqgh8-1"})(templateObject_2$K||(templateObject_2$K=__makeTemplateObject(["\n ",";\n margin-bottom: ","px;\n\n max-width: 500px;\n"],["\n ",";\n margin-bottom: ","px;\n\n max-width: 500px;\n"])),DetailViewSectionPadding,spacingL);var templateObject_1$1f,templateObject_2$K;var EventDetailViewResponseExportButton=function EventDetailViewResponseExportButton(_a){var className=_a.className;var features=useFeatures();if(!features.events){return null;}return jsxRuntime.jsx(DetailViewCsvExportButton,{className:className,path:"feedback/registration/result/export",stringResource:"Events.registration.exportResultsAsCsv"},void 0);};var FeedbackItemType;(function(FeedbackItemType){FeedbackItemType["comment"]="comment";FeedbackItemType["like"]="like";FeedbackItemType["confirm"]="confirm";FeedbackItemType["poll"]="poll";FeedbackItemType["eventRegistration"]="eventRegistration";})(FeedbackItemType||(FeedbackItemType={}));var EventRegistrationContextProvider=function EventRegistrationContextProvider(_a){var _b;var onBehalfOfUpn=_a.onBehalfOfUpn,children=_a.children;var formatMessage=useIntl().formatMessage;var features=useFeatures();var _c=useDetailViewContext(),item=_c.item,contentLanguage=_c.contentLanguage;var getEventRegistrationResults=useEventRegistrationApi().getEventRegistrationResults;if(!features.events||item==null){return null;}var locationQuestionId=getLocationQuestionId(item);var isCancelled=(_b=item.cancelInformation)===null||_b===void 0?void 0:_b.isCancelled;return jsxRuntime.jsx(PollUserContextProvider,__assign({item:item,onBehalfOfUpn:onBehalfOfUpn,resourceType:ItemResourceTypes.Events,language:contentLanguage,getAdditionalQuestions:function(result){return getAdditionalQuestions(result);},getAdditionalUserAnswers:extractLocationAnswers,getPollResults:getRegistrationResult,showResult:!!isCancelled},{children:children}),void 0);function getAdditionalQuestions(result){var _a=getLocationPollDefinitions(item,formatMessage,result,!!onBehalfOfUpn),question=_a.question,translations=_a.translations;return {questions:question?[question]:null,translations:translations};}function extractLocationAnswers(records){if(!item.locations||item.locations.length<2){return null;}var eventResponse=records.find(function(r){return r.type===FeedbackItemType.eventRegistration;});return [{questionId:locationQuestionId,choiceIds:eventResponse&&eventResponse.locationId?[eventResponse.locationId]:[]}];}function getRegistrationResult(itemId){return __awaiter(this,void 0,void 0,function(){var result;return __generator(this,function(_a){switch(_a.label){case 0:return [4/*yield*/,getEventRegistrationResults(itemId)];case 1:result=_a.sent();return [2/*return*/,{totalFeedbackCount:result.totalFeedbackCount,answers:result.answers.concat([{questionId:locationQuestionId,choices:result.locationAnswers.map(function(l){return {choiceId:l.locationId,count:l.count};})}])}];}});});}};var EventDetailViewUserRegistration=function EventDetailViewUserRegistration(_a){var className=_a.className,hideInfoMessage=_a.hideInfoMessage;var pollUserContext=React$d.useContext(PollUserContext);var getFeedback=useFeedbackApi().getFeedback;var item=pollUserContext.item;var isLoadingPollResult=pollUserContext.isLoadingPollResult,pollResult=pollUserContext.pollResult,onBehalfOfUpn=pollUserContext.onBehalfOfUpn;var _b=usePromise$2(getEventResponse,item.userResponse,[item]),eventResponse=_b[0],isLoading=_b[1],setEventResponse=_b[3];// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
131662
|
-
var seatsResult=React$d.useMemo(getSeatsLeft,[isLoading,isLoadingPollResult,pollResult,item.id]);return jsxRuntime.jsx(EventUserRegistrationContext.Provider,__assign({value:__assign(__assign({},pollUserContext),{hasPollContext:true,eventResponse:eventResponse,setEventResponse:setEventResponse,isLoading:isLoadingPollResult||isLoading,seatsInfo:seatsResult})},{children:jsxRuntime.jsx(EventUserRegistration,{className:className,hideInfoMessage:hideInfoMessage},void 0)}),void 0);function getEventResponse(){return __awaiter(this,void 0,void 0,function(){var feedback,eventRecord;return __generator(this,function(_a){switch(_a.label){case 0:return [4/*yield*/,getFeedback(ItemResourceTypes.Events,item.id,onBehalfOfUpn)];case 1:feedback=_a.sent();eventRecord=feedback&&feedback.records.find(function(r){return r.type==='eventRegistration';});return [2/*return*/,eventRecord?eventRecord.eventResponse:EventResponse.NotSet];}});});}function getSeatsLeft(){var _a,_b,_c,_d;if(isLoading||!item.registrationSettings||!item.registrationSettings.enabled||((_a=item.cancelInformation)===null||_a===void 0?void 0:_a.isCancelled)||!((_b=pollResult===null||pollResult===void 0?void 0:pollResult.answers)===null||_b===void 0?void 0:_b.length)||isLoadingPollResult){return {hasAnySeatsLeft:true};}var locationsWithSeats=item.locations.filter(function(l){return l.maxNumberOfSeats>0;});var hasLocationsWithoutSeats=locationsWithSeats.length!==item.locations.length;if(!locationsWithSeats.length||hasLocationsWithoutSeats){return {hasAnySeatsLeft:true};}var locationAnswers=(_d=(_c=pollResult.answers.find(function(a){return a.questionId===getLocationQuestionId(item);}))===null||_c===void 0?void 0:_c.choices)===null||_d===void 0?void 0:_d.reduce(function(prev,curr){prev[curr.choiceId]=curr.count;return prev;},{});var locationsWithSeatsLeft=locationsWithSeats.map(function(l){return __assign(__assign({},l),{seatsLeft:Math.max(l.maxNumberOfSeats-(locationAnswers[l.locationId]||0),0)});});return {hasAnySeatsLeft:locationsWithSeatsLeft.some(function(l){return l.seatsLeft>0;}),locations:locationsWithSeatsLeft};}};var EventRegistrationRegisterSomeoneElseDialog=function EventRegistrationRegisterSomeoneElseDialog(_a){var show=_a.show,onDismiss=_a.onDismiss,onUpdate=_a.onUpdate;var formatMessage=useIntl().formatMessage;var user=useCurrentUser();var features=useFeatures();var _b=React$d.useState(),onBehalfOfUser=_b[0],setOnBehalfOfUser=_b[1];var item=useDetailViewContext().item;var isGroupAdmin=hasMinRoleInAllGroups(GroupRoles.Admin,user,item);useListener(EventResponseTriggerAction.type,function(action){if(action.itemId!==item.id){return false;}onUpdate({upn:onBehalfOfUser.userPrincipalName,displayName:onBehalfOfUser.displayName,locationId:action.locationId},action.response);onDismiss();return true;},[item.id,onBehalfOfUser===null||onBehalfOfUser===void 0?void 0:onBehalfOfUser.userPrincipalName]);return jsxRuntime.jsx(MobileFullHeightDialog,__assign({hidden:!show,modalProps:{isBlocking:true,className:'dialog-register-user'},dialogContentProps:{type:officeUiFabricReact.DialogType.close,title:formatMessage({id:'Events.registration.registerSomeoneElse.title'})},onDismiss:onDismiss},{children:jsxRuntime.jsxs(Host$s,__assign({className:"dialog-content-host"},{children:[jsxRuntime.jsx(DialogGlobalStyle$2,{},void 0),jsxRuntime.jsx(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.peoplePickerLabel"},void 0),jsxRuntime.jsx(StyledPeoplePicker,{accountType:AccountType.User,allowMailItems:isGroupAdmin&&features.userInvitation,localOnly:!isGroupAdmin,includePendingInvitationUsers:true,includePendingRegistrationUsers:true,selectionMode:officeUiFabricReact.SelectionMode.single,selectedItems:onBehalfOfUser?[onBehalfOfUser]:[],onChange:function(accounts){return setOnBehalfOfUser(accounts[0]);},placeholderStringResourceKey:"Events.registration.registerSomeoneElse.peoplePickerPlaceholder",excludedItems:[user]},void 0),onBehalfOfUser&&jsxRuntime.jsxs(EventRegistrationContextProvider,__assign({onBehalfOfUpn:onBehalfOfUser.userPrincipalName},{children:[jsxRuntime.jsxs(DialogMainContent,__assign({isScrollable:!env.isAnyMobileApp},{children:[!(onBehalfOfUser===null||onBehalfOfUser===void 0?void 0:onBehalfOfUser.id)&&jsxRuntime.jsx(InvitationInfoMessage,{subscriptionName:getSubscriptionName(user.subscription)},void 0),jsxRuntime.jsx(StyledPollDisplay,{},void 0)]}),void 0),jsxRuntime.jsx(officeUiFabricReact.DialogFooter,{children:jsxRuntime.jsxs(Buttons,{children:[jsxRuntime.jsx(CancelButton,{onClick:onDismiss},void 0),jsxRuntime.jsx(EventDetailViewUserRegistration,{hideInfoMessage:true},void 0)]},void 0)},void 0)]}),onBehalfOfUser.userPrincipalName)]}),void 0)}),void 0);};var Host$s=_styled__default["default"].div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__Host",componentId:"sc-1rziepe-0"})(templateObject_1$1e||(templateObject_1$1e=__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n\n @media (min-width: ","px) {\n width: 400px;\n }\n\n .ms-Dialog-action {\n display: block;\n margin: 0;\n }\n"],["\n display: flex;\n flex-direction: column;\n\n @media (min-width: ","px) {\n width: 400px;\n }\n\n .ms-Dialog-action {\n display: block;\n margin: 0;\n }\n"])),minScreenSize.small);var Buttons=_styled__default["default"].div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__Buttons",componentId:"sc-1rziepe-1"})(templateObject_2$J||(templateObject_2$J=__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-right: 4px; /* buttons alignment on the right */\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-right: 4px; /* buttons alignment on the right */\n"])));var StyledPeoplePicker=_styled__default["default"](PeoplePicker).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledPeoplePicker",componentId:"sc-1rziepe-2"})(templateObject_3$v||(templateObject_3$v=__makeTemplateObject(["\n margin: ","px 0 ","px 0;\n\n .ms-BasePicker-text {\n padding: 0 !important;\n }\n"],["\n margin: ","px 0 ","px 0;\n\n .ms-BasePicker-text {\n padding: 0 !important;\n }\n"])),spacingS,spacingM);var DialogMainContent=_styled__default["default"].div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__DialogMainContent",componentId:"sc-1rziepe-3"})(templateObject_5$k||(templateObject_5$k=__makeTemplateObject(["\n ","\n margin-bottom: auto;\n"],["\n ","\n margin-bottom: auto;\n"])),function(p){return p.isScrollable&&_styled.css(templateObject_4$l||(templateObject_4$l=__makeTemplateObject(["\n max-height: 300px;\n overflow: auto;\n "],["\n max-height: 300px;\n overflow: auto;\n "])));});var StyledPollDisplay=_styled__default["default"](PollDisplay).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledPollDisplay",componentId:"sc-1rziepe-4"})(templateObject_6$d||(templateObject_6$d=__makeTemplateObject(["\n max-width: calc(100% - 10px);\n padding-left: 4px; // needed for the focus indicator\n"],["\n max-width: calc(100% - 10px);\n padding-left: 4px; // needed for the focus indicator\n"])));var CancelButton=function CancelButton(_a){var onClick=_a.onClick;return jsxRuntime.jsx(StyledCancelButton,__assign({onClick:onClick},{children:jsxRuntime.jsx(FormattedMessage$1,{id:"Generic.Cancel"},void 0)}),void 0);};var InvitationInfoMessage=function InvitationInfoMessage(_a){var subscriptionName=_a.subscriptionName;return jsxRuntime.jsxs(InfoMessageHost,{children:[jsxRuntime.jsx(InfoIcon,{iconName:"info"},void 0),jsxRuntime.jsx(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.userWillBeInvited",values:{subscriptionName:subscriptionName}},void 0)]},void 0);};var InfoMessageHost=_styled__default["default"].div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__InfoMessageHost",componentId:"sc-1rziepe-5"})(templateObject_7$8||(templateObject_7$8=__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding-bottom: ","px;\n"],["\n display: flex;\n align-items: center;\n padding-bottom: ","px;\n"])),spacingM);var InfoIcon=_styled__default["default"](officeUiFabricReact.Icon).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__InfoIcon",componentId:"sc-1rziepe-6"})(templateObject_8$7||(templateObject_8$7=__makeTemplateObject(["\n padding-right: ","px;\n"],["\n padding-right: ","px;\n"])),spacingS);var StyledCancelButton=_styled__default["default"](officeUiFabricReact.DefaultButton).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledCancelButton",componentId:"sc-1rziepe-7"})(templateObject_9$5||(templateObject_9$5=__makeTemplateObject(["\n && {\n margin-right: ","px;\n }\n"],["\n && {\n margin-right: ","px;\n }\n"])),spacingM);var DialogGlobalStyle$2=_styled.createGlobalStyle(templateObject_10$4||(templateObject_10$4=__makeTemplateObject(["\n .dialog-register-user {\n .ms-Overlay {\n background-color: transparent !important;\n }\n\n .ms-Dialog-main {\n box-shadow: none !important;\n\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n min-height: 466px;\n }\n }\n"],["\n .dialog-register-user {\n .ms-Overlay {\n background-color: transparent !important;\n }\n\n .ms-Dialog-main {\n box-shadow: none !important;\n\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n min-height: 466px;\n }\n }\n"])),maxScreenSize.small);var templateObject_1$1e,templateObject_2$J,templateObject_3$v,templateObject_4$l,templateObject_5$k,templateObject_6$d,templateObject_7$8,templateObject_8$7,templateObject_9$5,templateObject_10$4;var EventRegistrationRegisterSomeoneElseButton=function EventRegistrationRegisterSomeoneElseButton(_a){var item=_a.item,onRegister=_a.onRegister,onDeregister=_a.onDeregister;var user=useCurrentUser();var _b=React$d.useState(false),showDialog=_b[0],setShowDialog=_b[1];if(!hasMinRoleInAllGroups(GroupRoles.Author,user,item)){return null;}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(StyledButton$1,__assign({iconProps:{iconName:'AddFriend'},onClick:function(){return setShowDialog(true);}},{children:jsxRuntime.jsx(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.title"},void 0)}),void 0),showDialog&&jsxRuntime.jsx(EventRegistrationRegisterSomeoneElseDialog,{onDismiss:handleDismiss,onUpdate:handleUpdate,show:showDialog},void 0)]},void 0);function handleDismiss(){setShowDialog(false);}function handleUpdate(participant,response){if(response===EventResponse.Registered){onRegister===null||onRegister===void 0?void 0:onRegister(participant);}else {onDeregister===null||onDeregister===void 0?void 0:onDeregister(participant);}}};var StyledButton$1=_styled__default["default"](ActionButton).withConfig({displayName:"EventRegistrationRegisterSomeoneElseButton__StyledButton",componentId:"sc-mgwolr-0"})(templateObject_1$1d||(templateObject_1$1d=__makeTemplateObject(["\n && {\n height: auto;\n padding: 0;\n margin-bottom: ","px;\n border: 0;\n }\n"],["\n && {\n height: auto;\n padding: 0;\n margin-bottom: ","px;\n border: 0;\n }\n"])),spacingS);var templateObject_1$1d;var EventRegistrationDeregisterPersonButton=function EventRegistrationDeregisterPersonButton(_a){var item=_a.item,participant=_a.participant,onDeregistered=_a.onDeregistered;var user=useCurrentUserContext().user;var refreshUserDetails=useRefreshUserDetails();var setEventRegistration=useEventRegistrationApi().setEventRegistration;var showToast=useNotificationContext().showToast;var formatMessage=useIntl().formatMessage;var _b=React$d.useState(false),showDialog=_b[0],setShowDialog=_b[1];if(!hasMinRoleInAllGroups(GroupRoles.Author,user,item)){return null;}return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Tooltip,__assign({resourceKey:"Events.registration.deRegisterSomeoneElse.title",values:{name:participant.displayName}},{children:jsxRuntime.jsx(IconButton,{iconProps:{iconName:'Delete'},onClick:function(){return setShowDialog(true);},ariaLabel:formatMessage({id:'Events.registration.deRegisterSomeoneElse.title'},{name:participant.displayName})},void 0)}),void 0),showDialog&&jsxRuntime.jsx(ConfirmDialog,{showDialog:showDialog,titleResourceKey:"Events.registration.deRegisterSomeoneElse.confirmTitle",titleResourceValues:{name:participant.displayName},onConfirm:deRegister,onClose:function(){return setShowDialog(false);}},void 0)]},void 0);function deRegister(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){switch(_a.label){case 0:onDeregistered();return [4/*yield*/,setEventRegistration(item.id,EventResponse.NotSet,null,null,participant.upn)];case 1:_a.sent();refreshUserDetails();showToast('Events.registration.onBehalfOfDeregistrationSuccess',{mail:participant.displayName});return [2/*return*/];}});});}};var EventRegistrationParticipantsDialog=function EventRegistrationParticipantsDialog(_a){var numberOfParticipants=_a.numberOfParticipants,show=_a.show,onDismiss=_a.onDismiss;var formatMessage=useIntl().formatMessage;return jsxRuntime.jsx(MobileFullHeightDialog,__assign({hidden:!show,modalProps:{isBlocking:false,className:'dialog-event-participants'},dialogContentProps:{type:officeUiFabricReact.DialogType.close,title:formatMessage({id:'Events.registration.participants'},{count:numberOfParticipants})},onDismiss:onDismiss},{children:jsxRuntime.jsxs(Host$r,__assign({className:"dialog-content-host"},{children:[jsxRuntime.jsx(DialogGlobalStyle$1,{},void 0),jsxRuntime.jsx(ParticipantsList,{},void 0)]}),void 0)}),void 0);};var Host$r=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__Host",componentId:"sc-1biaauh-0"})(templateObject_1$1c||(templateObject_1$1c=__makeTemplateObject(["\n @media (min-width: ","px) {\n width: 400px;\n }\n"],["\n @media (min-width: ","px) {\n width: 400px;\n }\n"])),minScreenSize.small);var DialogGlobalStyle$1=_styled.createGlobalStyle(templateObject_2$I||(templateObject_2$I=__makeTemplateObject(["\n .dialog-event-participants {\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n height: 466px;\n }\n}\n"],["\n .dialog-event-participants {\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n height: 466px;\n }\n}\n"])),maxScreenSize.small);var ParticipantsList=function ParticipantsList(){var formatMessage=useIntl().formatMessage;var user=useCurrentUser();var getParticipants=useEventRegistrationApi().getParticipants;var textColors=React$d.useContext(ThemeContext$1).theme.textColors;var _a=React$d.useContext(PollUserContext),fetchPollResults=_a.fetchPollResults,publishableItem=_a.item;var item=publishableItem;var _b=usePromise$2(getSortedParticipants,[],[item.id]),unfilteredParticipants=_b[0],isLoading=_b[1],setParticipants=_b[3];var handleSearchDebounced=useDebouncedCallback(handleSearch,300)[0];var _c=React$d.useState(),filteredParticipants=_c[0],setFilteredParticipants=_c[1];var participants=filteredParticipants||unfilteredParticipants;return jsxRuntime.jsxs(ListHost,{children:[jsxRuntime.jsx(EventRegistrationRegisterSomeoneElseButton,{item:item,onDeregister:handleDeregister,onRegister:handleRegister},void 0),jsxRuntime.jsx(SearchArea,{children:jsxRuntime.jsx(StyledSearchBox$1,{placeholder:formatMessage({id:'Events.registration.participants.search.placeholder'}),disabled:isLoading,onChange:function(_,value){return handleSearchDebounced(unfilteredParticipants,value);},iconProps:{style:{color:textColors.default}}},void 0)},void 0),isLoading&&jsxRuntime.jsx(Spinner,{},void 0),jsxRuntime.jsx(ListContainer,__assign({isScrollable:!env.isAnyMobileApp},{children:participants.map(function(p){var showDeregisterButton=p.upn!==user.userPrincipalName;return jsxRuntime.jsxs(ListRow,{children:[jsxRuntime.jsx(PersonaCardWrapper,__assign({showDeregisterButton:showDeregisterButton},{children:jsxRuntime.jsx(StyledPersonaCard,__assign({upn:p.upn},{children:jsxRuntime.jsx(StyledAvatar,{upn:p.upn,text:p.displayName,secondaryText:p.location&&formatMessage({id:'Events.registration.participants.location'},{location:p.location})},void 0)}),void 0)}),void 0),showDeregisterButton&&jsxRuntime.jsx(EventRegistrationDeregisterPersonButton,{item:item,participant:p,onDeregistered:function(){return handleDeregister(p);}},void 0)]},p.upn);})}),void 0),!isLoading&&!participants.length&&jsxRuntime.jsx(FormattedMessage$1,{id:"Generic.noResultsFound"},void 0)]},void 0);function getSortedParticipants(){return __awaiter(this,void 0,void 0,function(){var numberOfLocations,locationsMap,participants;return __generator(this,function(_a){switch(_a.label){case 0:numberOfLocations=item===null||item===void 0?void 0:item.locations.length;locationsMap=getLocations();return [4/*yield*/,getParticipants(item.id)];case 1:participants=_a.sent()||[];return [2/*return*/,participants.map(function(p){return __assign(__assign({},p),{location:numberOfLocations>1?locationsMap[p.locationId]||'':''});}).sort(function(a,b){var locationCompare=(locationsMap[a.locationId]||'').localeCompare(locationsMap[b.locationId]||'');if(locationCompare!==0){return locationCompare;}return a.displayName.localeCompare(b.displayName);})];}});});}function getLocations(){var _a;return ((_a=item.locations)===null||_a===void 0?void 0:_a.reduce(function(prev,curr){prev[curr.locationId]=curr.name;return prev;},{}))||{};}function handleSearch(unfilteredParticipants,searchValue){if(!searchValue){setFilteredParticipants(null);return;}var filter=new RegExp(searchValue,'i');setFilteredParticipants(unfilteredParticipants.filter(function(p){return (p.displayName+"|"+p.upn+"|"+p.location).search(filter)>-1;}));}function handleDeregister(participant){setParticipants(function(ps){return ps.filter(function(p){return p.upn!==participant.upn;});});fetchPollResults();setFilteredParticipants(null);}function handleRegister(participant){setParticipants(function(ps){return ps.concat([__assign(__assign({},participant),{location:getLocations()[participant.locationId]||''})]);});fetchPollResults();setFilteredParticipants(null);}};var ListContainer=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListContainer",componentId:"sc-1biaauh-1"})(templateObject_4$k||(templateObject_4$k=__makeTemplateObject(["\n padding: 4px;\n\n ","\n"],["\n padding: 4px;\n\n ","\n"])),function(p){return p.isScrollable&&_styled.css(templateObject_3$u||(templateObject_3$u=__makeTemplateObject(["\n max-height: 382px;\n overflow: auto;\n "],["\n max-height: 382px;\n overflow: auto;\n "])));});var SearchArea=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__SearchArea",componentId:"sc-1biaauh-2"})(templateObject_5$j||(templateObject_5$j=__makeTemplateObject(["\n margin-bottom: ","px;\n display: flex;\n"],["\n margin-bottom: ","px;\n display: flex;\n"])),spacingM);var StyledSearchBox$1=_styled__default["default"](officeUiFabricReact.SearchBox).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledSearchBox",componentId:"sc-1biaauh-3"})(templateObject_6$c||(templateObject_6$c=__makeTemplateObject(["\n flex-grow: 1;\n"],["\n flex-grow: 1;\n"])));var ListRow=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListRow",componentId:"sc-1biaauh-4"})(templateObject_7$7||(templateObject_7$7=__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-bottom: ","px;\n"],["\n display: flex;\n align-items: center;\n margin-bottom: ","px;\n"])),spacingS);var PersonaCardWrapper=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__PersonaCardWrapper",componentId:"sc-1biaauh-5"})(templateObject_8$6||(templateObject_8$6=__makeTemplateObject(["\n width: calc(100% - ","px);\n"],["\n width: calc(100% - ","px);\n"])),function(p){return p.showDeregisterButton?32:0;});var StyledPersonaCard=_styled__default["default"](PersonaCard).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledPersonaCard",componentId:"sc-1biaauh-6"})(templateObject_9$4||(templateObject_9$4=__makeTemplateObject(["\n width: 100%;\n\n & > * {\n width: 100%;\n }\n"],["\n width: 100%;\n\n & > * {\n width: 100%;\n }\n"])));var StyledAvatar=_styled__default["default"](Avatar).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledAvatar",componentId:"sc-1biaauh-7"})(templateObject_10$3||(templateObject_10$3=__makeTemplateObject(["\n .ms-Persona-secondaryText {\n white-space: initial;\n }\n\n height: auto;\n\n > div:first-child {\n align-self: flex-start;\n }\n"],["\n .ms-Persona-secondaryText {\n white-space: initial;\n }\n\n height: auto;\n\n > div:first-child {\n align-self: flex-start;\n }\n"])));var ListHost=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListHost",componentId:"sc-1biaauh-8"})(templateObject_11$2$1||(templateObject_11$2$1=__makeTemplateObject([""],[""])));var templateObject_1$1c,templateObject_2$I,templateObject_3$u,templateObject_4$k,templateObject_5$j,templateObject_6$c,templateObject_7$7,templateObject_8$6,templateObject_9$4,templateObject_10$3,templateObject_11$2$1;var EventRegistrationParticipantsLink=function EventRegistrationParticipantsLink(){var _a;var user=useCurrentUser();var _b=React$d.useContext(PollUserContext),pollResult=_b.pollResult,publishableItem=_b.item;var item=publishableItem;var _c=React$d.useState(false),showParticipants=_c[0],setShowParticipants=_c[1];var palette=React$d.useContext(ThemeContext$1).theme.palette;if(user.isPublicUser||(pollResult===null||pollResult===void 0?void 0:pollResult.totalFeedbackCount)==null){return null;}var isUserAuthor=hasMinRoleInAllGroups(GroupRoles.Author,user,item);var canOpenParticipantsDialog=isUserAuthor||pollResult.totalFeedbackCount>0&&((_a=item.registrationSettings)===null||_a===void 0?void 0:_a.showParticipantsToEverybody);return jsxRuntime.jsxs("div",__assign({"data-poll-result-total-count":pollResult.totalFeedbackCount},{children:[!canOpenParticipantsDialog?jsxRuntime.jsx(NoParticipantsContainer,{children:jsxRuntime.jsx(FormattedMessage$1,{id:"Events.registration.participants.count",values:{count:pollResult.totalFeedbackCount}},void 0)},void 0):jsxRuntime.jsx(ParticipantsButton,__assign({onClick:function(){return setShowParticipants(true);},color:palette.accent},{children:jsxRuntime.jsx(FormattedMessage$1,{id:isUserAuthor?'Events.registration.participants.viewAndManage':'Events.registration.participants.count',values:{count:pollResult.totalFeedbackCount}},void 0)}),void 0),jsxRuntime.jsx(EventRegistrationParticipantsDialog,{numberOfParticipants:pollResult.totalFeedbackCount,show:showParticipants,onDismiss:function(){return setShowParticipants(false);}},void 0)]}),void 0);};var NoParticipantsContainer=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsLink__NoParticipantsContainer",componentId:"sc-44nkgi-0"})(templateObject_1$1b||(templateObject_1$1b=__makeTemplateObject(["\n color: ",";\n font-size: ","px;\n"],["\n color: ",";\n font-size: ","px;\n"])),function(p){return p.theme.palette.neutralTertiary;},fontSizeSmall);var ParticipantsButton=_styled__default["default"](ActionButton).withConfig({displayName:"EventRegistrationParticipantsLink__ParticipantsButton",componentId:"sc-44nkgi-1"})(templateObject_2$H||(templateObject_2$H=__makeTemplateObject(["\n && {\n height: auto;\n padding: 0;\n font-size: ","px;\n }\n"],["\n && {\n height: auto;\n padding: 0;\n font-size: ","px;\n }\n"])),fontSizeSmall);var templateObject_1$1b,templateObject_2$H;var EventDetailViewRegistrationPoll=function EventDetailViewRegistrationPoll(){return jsxRuntime.jsx(EventRegistrationContextProvider,{children:jsxRuntime.jsxs(StyledPollDisplay$1,{children:[jsxRuntime.jsx(EventRegistrationParticipantsLink,{},void 0),jsxRuntime.jsx(StyledEventUserRegistration,{},void 0),jsxRuntime.jsx(StyledResponseExportButton,{},void 0)]},void 0)},void 0);};var StyledEventUserRegistration=_styled__default["default"](EventDetailViewUserRegistration).withConfig({displayName:"EventDetailViewRegistrationPoll__StyledEventUserRegistration",componentId:"sc-1kxjndz-0"})(templateObject_1$1a||(templateObject_1$1a=__makeTemplateObject(["\n && {\n margin-top: ","px;\n }\n"],["\n && {\n margin-top: ","px;\n }\n"])),spacingS);var StyledResponseExportButton=_styled__default["default"](EventDetailViewResponseExportButton).withConfig({displayName:"EventDetailViewRegistrationPoll__StyledResponseExportButton",componentId:"sc-1kxjndz-1"})(templateObject_2$G||(templateObject_2$G=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingS);var templateObject_1$1a,templateObject_2$G;var EventDetailViewRegistration=function EventDetailViewRegistration(){var item=useDetailViewContext().item;var isRegistrationEnabled=item.registrationSettings&&item.registrationSettings.enabled;if(isRegistrationEnabled){return jsxRuntime.jsx(EventDetailViewRegistrationPoll,{},void 0);}return jsxRuntime.jsx(DetailViewPoll,{},void 0);};var EventDetailViewCancelInformation=function EventDetailViewCancelInformation(){var _a=useDetailViewContext(),item=_a.item,contentLanguage=_a.contentLanguage;return jsxRuntime.jsx(EventCancelInformation,{item:item,language:contentLanguage},void 0);};var classof$a=classofRaw$1;// `IsArray` abstract operation
|
|
131665
|
+
var seatsResult=React$d.useMemo(getSeatsLeft,[isLoading,isLoadingPollResult,pollResult,item.id]);return jsxRuntime.jsx(EventUserRegistrationContext.Provider,__assign({value:__assign(__assign({},pollUserContext),{hasPollContext:true,eventResponse:eventResponse,setEventResponse:setEventResponse,isLoading:isLoadingPollResult||isLoading,seatsInfo:seatsResult})},{children:jsxRuntime.jsx(EventUserRegistration,{className:className,hideInfoMessage:hideInfoMessage},void 0)}),void 0);function getEventResponse(){return __awaiter(this,void 0,void 0,function(){var feedback,eventRecord;return __generator(this,function(_a){switch(_a.label){case 0:return [4/*yield*/,getFeedback(ItemResourceTypes.Events,item.id,onBehalfOfUpn)];case 1:feedback=_a.sent();eventRecord=feedback&&feedback.records.find(function(r){return r.type==='eventRegistration';});return [2/*return*/,eventRecord?eventRecord.eventResponse:EventResponse.NotSet];}});});}function getSeatsLeft(){var _a,_b,_c,_d;if(isLoading||!item.registrationSettings||!item.registrationSettings.enabled||((_a=item.cancelInformation)===null||_a===void 0?void 0:_a.isCancelled)||!((_b=pollResult===null||pollResult===void 0?void 0:pollResult.answers)===null||_b===void 0?void 0:_b.length)||isLoadingPollResult){return {hasAnySeatsLeft:true};}var locationsWithSeats=item.locations.filter(function(l){return l.maxNumberOfSeats>0;});var hasLocationsWithoutSeats=locationsWithSeats.length!==item.locations.length;if(!locationsWithSeats.length||hasLocationsWithoutSeats){return {hasAnySeatsLeft:true};}var locationAnswers=(_d=(_c=pollResult.answers.find(function(a){return a.questionId===getLocationQuestionId(item);}))===null||_c===void 0?void 0:_c.choices)===null||_d===void 0?void 0:_d.reduce(function(prev,curr){prev[curr.choiceId]=curr.count;return prev;},{});var locationsWithSeatsLeft=locationsWithSeats.map(function(l){return __assign(__assign({},l),{seatsLeft:Math.max(l.maxNumberOfSeats-(locationAnswers[l.locationId]||0),0)});});return {hasAnySeatsLeft:locationsWithSeatsLeft.some(function(l){return l.seatsLeft>0;}),locations:locationsWithSeatsLeft};}};var EventRegistrationRegisterSomeoneElseDialog=function EventRegistrationRegisterSomeoneElseDialog(_a){var show=_a.show,onDismiss=_a.onDismiss,onUpdate=_a.onUpdate;var formatMessage=useIntl().formatMessage;var user=useCurrentUser();var features=useFeatures();var _b=React$d.useState(),onBehalfOfUser=_b[0],setOnBehalfOfUser=_b[1];var item=useDetailViewContext().item;var isGroupAdmin=hasMinRoleInAllGroups(GroupRoles.Admin,user,item);useListener(EventResponseTriggerAction.type,function(action){if(action.itemId!==item.id){return false;}onUpdate({upn:onBehalfOfUser.userPrincipalName,displayName:onBehalfOfUser.displayName,locationId:action.locationId},action.response);onDismiss();return true;},[item.id,onBehalfOfUser===null||onBehalfOfUser===void 0?void 0:onBehalfOfUser.userPrincipalName]);return jsxRuntime.jsx(MobileFullHeightDialog,__assign({hidden:!show,modalProps:{isBlocking:true,className:'dialog-register-user'},dialogContentProps:{type:officeUiFabricReact.DialogType.close,title:formatMessage({id:'Events.registration.registerSomeoneElse.title'})},onDismiss:onDismiss},{children:jsxRuntime.jsxs(Host$s,__assign({className:"dialog-content-host"},{children:[jsxRuntime.jsx(DialogGlobalStyle$2,{},void 0),jsxRuntime.jsx("label",__assign({htmlFor:"someoneElse-peoplePicker"},{children:jsxRuntime.jsx(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.peoplePickerLabel"},void 0)}),void 0),jsxRuntime.jsx(StyledPeoplePicker,{accountType:AccountType.User,allowMailItems:isGroupAdmin&&features.userInvitation,localOnly:!isGroupAdmin,includePendingInvitationUsers:true,includePendingRegistrationUsers:true,selectionMode:officeUiFabricReact.SelectionMode.single,selectedItems:onBehalfOfUser?[onBehalfOfUser]:[],onChange:function(accounts){return setOnBehalfOfUser(accounts[0]);},placeholderStringResourceKey:"Events.registration.registerSomeoneElse.peoplePickerPlaceholder",excludedItems:[user],inputId:"someoneElse-peoplePicker"},void 0),onBehalfOfUser&&jsxRuntime.jsxs(EventRegistrationContextProvider,__assign({onBehalfOfUpn:onBehalfOfUser.userPrincipalName},{children:[jsxRuntime.jsxs(DialogMainContent,__assign({isScrollable:!env.isAnyMobileApp},{children:[!(onBehalfOfUser===null||onBehalfOfUser===void 0?void 0:onBehalfOfUser.id)&&jsxRuntime.jsx(InvitationInfoMessage,{subscriptionName:getSubscriptionName(user.subscription)},void 0),jsxRuntime.jsx(StyledPollDisplay,{},void 0)]}),void 0),jsxRuntime.jsx(officeUiFabricReact.DialogFooter,{children:jsxRuntime.jsxs(Buttons,{children:[jsxRuntime.jsx(CancelButton,{onClick:onDismiss},void 0),jsxRuntime.jsx(EventDetailViewUserRegistration,{hideInfoMessage:true},void 0)]},void 0)},void 0)]}),onBehalfOfUser.userPrincipalName)]}),void 0)}),void 0);};var Host$s=_styled__default["default"].div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__Host",componentId:"sc-1rziepe-0"})(templateObject_1$1e||(templateObject_1$1e=__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n\n @media (min-width: ","px) {\n width: 400px;\n }\n\n .ms-Dialog-action {\n display: block;\n margin: 0;\n }\n"],["\n display: flex;\n flex-direction: column;\n\n @media (min-width: ","px) {\n width: 400px;\n }\n\n .ms-Dialog-action {\n display: block;\n margin: 0;\n }\n"])),minScreenSize.small);var Buttons=_styled__default["default"].div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__Buttons",componentId:"sc-1rziepe-1"})(templateObject_2$J||(templateObject_2$J=__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-right: 4px; /* buttons alignment on the right */\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n margin-right: 4px; /* buttons alignment on the right */\n"])));var StyledPeoplePicker=_styled__default["default"](PeoplePicker).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledPeoplePicker",componentId:"sc-1rziepe-2"})(templateObject_3$v||(templateObject_3$v=__makeTemplateObject(["\n margin: ","px 0 ","px 0;\n\n .ms-BasePicker-text {\n padding: 0 !important;\n }\n"],["\n margin: ","px 0 ","px 0;\n\n .ms-BasePicker-text {\n padding: 0 !important;\n }\n"])),spacingS,spacingM);var DialogMainContent=_styled__default["default"].div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__DialogMainContent",componentId:"sc-1rziepe-3"})(templateObject_5$k||(templateObject_5$k=__makeTemplateObject(["\n ","\n margin-bottom: auto;\n"],["\n ","\n margin-bottom: auto;\n"])),function(p){return p.isScrollable&&_styled.css(templateObject_4$l||(templateObject_4$l=__makeTemplateObject(["\n max-height: 300px;\n overflow: auto;\n "],["\n max-height: 300px;\n overflow: auto;\n "])));});var StyledPollDisplay=_styled__default["default"](PollDisplay).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledPollDisplay",componentId:"sc-1rziepe-4"})(templateObject_6$d||(templateObject_6$d=__makeTemplateObject(["\n max-width: calc(100% - 10px);\n padding-left: 4px; // needed for the focus indicator\n"],["\n max-width: calc(100% - 10px);\n padding-left: 4px; // needed for the focus indicator\n"])));var CancelButton=function CancelButton(_a){var onClick=_a.onClick;return jsxRuntime.jsx(StyledCancelButton,__assign({onClick:onClick},{children:jsxRuntime.jsx(FormattedMessage$1,{id:"Generic.Cancel"},void 0)}),void 0);};var InvitationInfoMessage=function InvitationInfoMessage(_a){var subscriptionName=_a.subscriptionName;return jsxRuntime.jsxs(InfoMessageHost,{children:[jsxRuntime.jsx(InfoIcon,{iconName:"info"},void 0),jsxRuntime.jsx(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.userWillBeInvited",values:{subscriptionName:subscriptionName}},void 0)]},void 0);};var InfoMessageHost=_styled__default["default"].div.withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__InfoMessageHost",componentId:"sc-1rziepe-5"})(templateObject_7$8||(templateObject_7$8=__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding-bottom: ","px;\n"],["\n display: flex;\n align-items: center;\n padding-bottom: ","px;\n"])),spacingM);var InfoIcon=_styled__default["default"](officeUiFabricReact.Icon).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__InfoIcon",componentId:"sc-1rziepe-6"})(templateObject_8$7||(templateObject_8$7=__makeTemplateObject(["\n padding-right: ","px;\n"],["\n padding-right: ","px;\n"])),spacingS);var StyledCancelButton=_styled__default["default"](officeUiFabricReact.DefaultButton).withConfig({displayName:"EventRegistrationRegisterSomeoneElseDialog__StyledCancelButton",componentId:"sc-1rziepe-7"})(templateObject_9$5||(templateObject_9$5=__makeTemplateObject(["\n && {\n margin-right: ","px;\n }\n"],["\n && {\n margin-right: ","px;\n }\n"])),spacingM);var DialogGlobalStyle$2=_styled.createGlobalStyle(templateObject_10$4||(templateObject_10$4=__makeTemplateObject(["\n .dialog-register-user {\n .ms-Overlay {\n background-color: transparent !important;\n }\n\n .ms-Dialog-main {\n box-shadow: none !important;\n\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n min-height: 466px;\n }\n }\n"],["\n .dialog-register-user {\n .ms-Overlay {\n background-color: transparent !important;\n }\n\n .ms-Dialog-main {\n box-shadow: none !important;\n\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n min-height: 466px;\n }\n }\n"])),maxScreenSize.small);var templateObject_1$1e,templateObject_2$J,templateObject_3$v,templateObject_4$l,templateObject_5$k,templateObject_6$d,templateObject_7$8,templateObject_8$7,templateObject_9$5,templateObject_10$4;var EventRegistrationRegisterSomeoneElseButton=function EventRegistrationRegisterSomeoneElseButton(_a){var item=_a.item,onRegister=_a.onRegister,onDeregister=_a.onDeregister;var user=useCurrentUser();var _b=React$d.useState(false),showDialog=_b[0],setShowDialog=_b[1];if(!hasMinRoleInAllGroups(GroupRoles.Author,user,item)){return null;}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(StyledButton$1,__assign({iconProps:{iconName:'AddFriend'},onClick:function(){return setShowDialog(true);}},{children:jsxRuntime.jsx(FormattedMessage$1,{id:"Events.registration.registerSomeoneElse.title"},void 0)}),void 0),showDialog&&jsxRuntime.jsx(EventRegistrationRegisterSomeoneElseDialog,{onDismiss:handleDismiss,onUpdate:handleUpdate,show:showDialog},void 0)]},void 0);function handleDismiss(){setShowDialog(false);}function handleUpdate(participant,response){if(response===EventResponse.Registered){onRegister===null||onRegister===void 0?void 0:onRegister(participant);}else {onDeregister===null||onDeregister===void 0?void 0:onDeregister(participant);}}};var StyledButton$1=_styled__default["default"](ActionButton).withConfig({displayName:"EventRegistrationRegisterSomeoneElseButton__StyledButton",componentId:"sc-mgwolr-0"})(templateObject_1$1d||(templateObject_1$1d=__makeTemplateObject(["\n && {\n height: auto;\n padding: 0;\n margin-bottom: ","px;\n border: 0;\n }\n"],["\n && {\n height: auto;\n padding: 0;\n margin-bottom: ","px;\n border: 0;\n }\n"])),spacingS);var templateObject_1$1d;var EventRegistrationDeregisterPersonButton=function EventRegistrationDeregisterPersonButton(_a){var item=_a.item,participant=_a.participant,onDeregistered=_a.onDeregistered;var user=useCurrentUserContext().user;var refreshUserDetails=useRefreshUserDetails();var setEventRegistration=useEventRegistrationApi().setEventRegistration;var showToast=useNotificationContext().showToast;var formatMessage=useIntl().formatMessage;var _b=React$d.useState(false),showDialog=_b[0],setShowDialog=_b[1];if(!hasMinRoleInAllGroups(GroupRoles.Author,user,item)){return null;}return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Tooltip,__assign({resourceKey:"Events.registration.deRegisterSomeoneElse.title",values:{name:participant.displayName}},{children:jsxRuntime.jsx(IconButton,{iconProps:{iconName:'Delete'},onClick:function(){return setShowDialog(true);},ariaLabel:formatMessage({id:'Events.registration.deRegisterSomeoneElse.title'},{name:participant.displayName})},void 0)}),void 0),showDialog&&jsxRuntime.jsx(ConfirmDialog,{showDialog:showDialog,titleResourceKey:"Events.registration.deRegisterSomeoneElse.confirmTitle",titleResourceValues:{name:participant.displayName},onConfirm:deRegister,onClose:function(){return setShowDialog(false);}},void 0)]},void 0);function deRegister(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){switch(_a.label){case 0:onDeregistered();return [4/*yield*/,setEventRegistration(item.id,EventResponse.NotSet,null,null,participant.upn)];case 1:_a.sent();refreshUserDetails();showToast('Events.registration.onBehalfOfDeregistrationSuccess',{mail:participant.displayName});return [2/*return*/];}});});}};var EventRegistrationParticipantsDialog=function EventRegistrationParticipantsDialog(_a){var numberOfParticipants=_a.numberOfParticipants,show=_a.show,onDismiss=_a.onDismiss;var formatMessage=useIntl().formatMessage;return jsxRuntime.jsx(MobileFullHeightDialog,__assign({hidden:!show,modalProps:{isBlocking:false,className:'dialog-event-participants'},dialogContentProps:{type:officeUiFabricReact.DialogType.close,title:formatMessage({id:'Events.registration.participants'},{count:numberOfParticipants})},onDismiss:onDismiss},{children:jsxRuntime.jsxs(Host$r,__assign({className:"dialog-content-host"},{children:[jsxRuntime.jsx(DialogGlobalStyle$1,{},void 0),jsxRuntime.jsx(ParticipantsList,{},void 0)]}),void 0)}),void 0);};var Host$r=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__Host",componentId:"sc-1biaauh-0"})(templateObject_1$1c||(templateObject_1$1c=__makeTemplateObject(["\n @media (min-width: ","px) {\n width: 400px;\n }\n"],["\n @media (min-width: ","px) {\n width: 400px;\n }\n"])),minScreenSize.small);var DialogGlobalStyle$1=_styled.createGlobalStyle(templateObject_2$I||(templateObject_2$I=__makeTemplateObject(["\n .dialog-event-participants {\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n height: 466px;\n }\n}\n"],["\n .dialog-event-participants {\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .dialog-content-host {\n height: 466px;\n }\n}\n"])),maxScreenSize.small);var ParticipantsList=function ParticipantsList(){var formatMessage=useIntl().formatMessage;var user=useCurrentUser();var getParticipants=useEventRegistrationApi().getParticipants;var textColors=React$d.useContext(ThemeContext$1).theme.textColors;var _a=React$d.useContext(PollUserContext),fetchPollResults=_a.fetchPollResults,publishableItem=_a.item;var item=publishableItem;var _b=usePromise$2(getSortedParticipants,[],[item.id]),unfilteredParticipants=_b[0],isLoading=_b[1],setParticipants=_b[3];var handleSearchDebounced=useDebouncedCallback(handleSearch,300)[0];var _c=React$d.useState(),filteredParticipants=_c[0],setFilteredParticipants=_c[1];var participants=filteredParticipants||unfilteredParticipants;return jsxRuntime.jsxs(ListHost,{children:[jsxRuntime.jsx(EventRegistrationRegisterSomeoneElseButton,{item:item,onDeregister:handleDeregister,onRegister:handleRegister},void 0),jsxRuntime.jsx(SearchArea,{children:jsxRuntime.jsx(StyledSearchBox$1,{placeholder:formatMessage({id:'Events.registration.participants.search.placeholder'}),disabled:isLoading,onChange:function(_,value){return handleSearchDebounced(unfilteredParticipants,value);},iconProps:{style:{color:textColors.default}}},void 0)},void 0),isLoading&&jsxRuntime.jsx(Spinner,{},void 0),jsxRuntime.jsx(ListContainer,__assign({isScrollable:!env.isAnyMobileApp},{children:participants.map(function(p){var showDeregisterButton=p.upn!==user.userPrincipalName;return jsxRuntime.jsxs(ListRow,{children:[jsxRuntime.jsx(PersonaCardWrapper,__assign({showDeregisterButton:showDeregisterButton},{children:jsxRuntime.jsx(StyledPersonaCard,__assign({upn:p.upn},{children:jsxRuntime.jsx(StyledAvatar,{upn:p.upn,text:p.displayName,secondaryText:p.location&&formatMessage({id:'Events.registration.participants.location'},{location:p.location})},void 0)}),void 0)}),void 0),showDeregisterButton&&jsxRuntime.jsx(EventRegistrationDeregisterPersonButton,{item:item,participant:p,onDeregistered:function(){return handleDeregister(p);}},void 0)]},p.upn);})}),void 0),!isLoading&&!participants.length&&jsxRuntime.jsx(FormattedMessage$1,{id:"Generic.noResultsFound"},void 0)]},void 0);function getSortedParticipants(){return __awaiter(this,void 0,void 0,function(){var numberOfLocations,locationsMap,participants;return __generator(this,function(_a){switch(_a.label){case 0:numberOfLocations=item===null||item===void 0?void 0:item.locations.length;locationsMap=getLocations();return [4/*yield*/,getParticipants(item.id)];case 1:participants=_a.sent()||[];return [2/*return*/,participants.map(function(p){return __assign(__assign({},p),{location:numberOfLocations>1?locationsMap[p.locationId]||'':''});}).sort(function(a,b){var locationCompare=(locationsMap[a.locationId]||'').localeCompare(locationsMap[b.locationId]||'');if(locationCompare!==0){return locationCompare;}return a.displayName.localeCompare(b.displayName);})];}});});}function getLocations(){var _a;return ((_a=item.locations)===null||_a===void 0?void 0:_a.reduce(function(prev,curr){prev[curr.locationId]=curr.name;return prev;},{}))||{};}function handleSearch(unfilteredParticipants,searchValue){if(!searchValue){setFilteredParticipants(null);return;}var filter=new RegExp(searchValue,'i');setFilteredParticipants(unfilteredParticipants.filter(function(p){return (p.displayName+"|"+p.upn+"|"+p.location).search(filter)>-1;}));}function handleDeregister(participant){setParticipants(function(ps){return ps.filter(function(p){return p.upn!==participant.upn;});});fetchPollResults();setFilteredParticipants(null);}function handleRegister(participant){setParticipants(function(ps){return ps.concat([__assign(__assign({},participant),{location:getLocations()[participant.locationId]||''})]);});fetchPollResults();setFilteredParticipants(null);}};var ListContainer=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListContainer",componentId:"sc-1biaauh-1"})(templateObject_4$k||(templateObject_4$k=__makeTemplateObject(["\n padding: 4px;\n\n ","\n"],["\n padding: 4px;\n\n ","\n"])),function(p){return p.isScrollable&&_styled.css(templateObject_3$u||(templateObject_3$u=__makeTemplateObject(["\n max-height: 382px;\n overflow: auto;\n "],["\n max-height: 382px;\n overflow: auto;\n "])));});var SearchArea=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__SearchArea",componentId:"sc-1biaauh-2"})(templateObject_5$j||(templateObject_5$j=__makeTemplateObject(["\n margin-bottom: ","px;\n display: flex;\n"],["\n margin-bottom: ","px;\n display: flex;\n"])),spacingM);var StyledSearchBox$1=_styled__default["default"](officeUiFabricReact.SearchBox).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledSearchBox",componentId:"sc-1biaauh-3"})(templateObject_6$c||(templateObject_6$c=__makeTemplateObject(["\n flex-grow: 1;\n"],["\n flex-grow: 1;\n"])));var ListRow=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListRow",componentId:"sc-1biaauh-4"})(templateObject_7$7||(templateObject_7$7=__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-bottom: ","px;\n"],["\n display: flex;\n align-items: center;\n margin-bottom: ","px;\n"])),spacingS);var PersonaCardWrapper=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__PersonaCardWrapper",componentId:"sc-1biaauh-5"})(templateObject_8$6||(templateObject_8$6=__makeTemplateObject(["\n width: calc(100% - ","px);\n"],["\n width: calc(100% - ","px);\n"])),function(p){return p.showDeregisterButton?32:0;});var StyledPersonaCard=_styled__default["default"](PersonaCard).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledPersonaCard",componentId:"sc-1biaauh-6"})(templateObject_9$4||(templateObject_9$4=__makeTemplateObject(["\n width: 100%;\n\n & > * {\n width: 100%;\n }\n"],["\n width: 100%;\n\n & > * {\n width: 100%;\n }\n"])));var StyledAvatar=_styled__default["default"](Avatar).withConfig({displayName:"EventRegistrationParticipantsDialog__StyledAvatar",componentId:"sc-1biaauh-7"})(templateObject_10$3||(templateObject_10$3=__makeTemplateObject(["\n .ms-Persona-secondaryText {\n white-space: initial;\n }\n\n height: auto;\n\n > div:first-child {\n align-self: flex-start;\n }\n"],["\n .ms-Persona-secondaryText {\n white-space: initial;\n }\n\n height: auto;\n\n > div:first-child {\n align-self: flex-start;\n }\n"])));var ListHost=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsDialog__ListHost",componentId:"sc-1biaauh-8"})(templateObject_11$2$1||(templateObject_11$2$1=__makeTemplateObject([""],[""])));var templateObject_1$1c,templateObject_2$I,templateObject_3$u,templateObject_4$k,templateObject_5$j,templateObject_6$c,templateObject_7$7,templateObject_8$6,templateObject_9$4,templateObject_10$3,templateObject_11$2$1;var EventRegistrationParticipantsLink=function EventRegistrationParticipantsLink(){var _a;var user=useCurrentUser();var _b=React$d.useContext(PollUserContext),pollResult=_b.pollResult,publishableItem=_b.item;var item=publishableItem;var _c=React$d.useState(false),showParticipants=_c[0],setShowParticipants=_c[1];var palette=React$d.useContext(ThemeContext$1).theme.palette;if(user.isPublicUser||(pollResult===null||pollResult===void 0?void 0:pollResult.totalFeedbackCount)==null){return null;}var isUserAuthor=hasMinRoleInAllGroups(GroupRoles.Author,user,item);var canOpenParticipantsDialog=isUserAuthor||pollResult.totalFeedbackCount>0&&((_a=item.registrationSettings)===null||_a===void 0?void 0:_a.showParticipantsToEverybody);return jsxRuntime.jsxs("div",__assign({"data-poll-result-total-count":pollResult.totalFeedbackCount},{children:[!canOpenParticipantsDialog?jsxRuntime.jsx(NoParticipantsContainer,{children:jsxRuntime.jsx(FormattedMessage$1,{id:"Events.registration.participants.count",values:{count:pollResult.totalFeedbackCount}},void 0)},void 0):jsxRuntime.jsx(ParticipantsButton,__assign({onClick:function(){return setShowParticipants(true);},color:palette.accent},{children:jsxRuntime.jsx(FormattedMessage$1,{id:isUserAuthor?'Events.registration.participants.viewAndManage':'Events.registration.participants.count',values:{count:pollResult.totalFeedbackCount}},void 0)}),void 0),jsxRuntime.jsx(EventRegistrationParticipantsDialog,{numberOfParticipants:pollResult.totalFeedbackCount,show:showParticipants,onDismiss:function(){return setShowParticipants(false);}},void 0)]}),void 0);};var NoParticipantsContainer=_styled__default["default"].div.withConfig({displayName:"EventRegistrationParticipantsLink__NoParticipantsContainer",componentId:"sc-44nkgi-0"})(templateObject_1$1b||(templateObject_1$1b=__makeTemplateObject(["\n color: ",";\n font-size: ","px;\n"],["\n color: ",";\n font-size: ","px;\n"])),function(p){return p.theme.palette.neutralTertiary;},fontSizeSmall);var ParticipantsButton=_styled__default["default"](ActionButton).withConfig({displayName:"EventRegistrationParticipantsLink__ParticipantsButton",componentId:"sc-44nkgi-1"})(templateObject_2$H||(templateObject_2$H=__makeTemplateObject(["\n && {\n height: auto;\n padding: 0;\n font-size: ","px;\n }\n"],["\n && {\n height: auto;\n padding: 0;\n font-size: ","px;\n }\n"])),fontSizeSmall);var templateObject_1$1b,templateObject_2$H;var EventDetailViewRegistrationPoll=function EventDetailViewRegistrationPoll(){return jsxRuntime.jsx(EventRegistrationContextProvider,{children:jsxRuntime.jsxs(StyledPollDisplay$1,{children:[jsxRuntime.jsx(EventRegistrationParticipantsLink,{},void 0),jsxRuntime.jsx(StyledEventUserRegistration,{},void 0),jsxRuntime.jsx(StyledResponseExportButton,{},void 0)]},void 0)},void 0);};var StyledEventUserRegistration=_styled__default["default"](EventDetailViewUserRegistration).withConfig({displayName:"EventDetailViewRegistrationPoll__StyledEventUserRegistration",componentId:"sc-1kxjndz-0"})(templateObject_1$1a||(templateObject_1$1a=__makeTemplateObject(["\n && {\n margin-top: ","px;\n }\n"],["\n && {\n margin-top: ","px;\n }\n"])),spacingS);var StyledResponseExportButton=_styled__default["default"](EventDetailViewResponseExportButton).withConfig({displayName:"EventDetailViewRegistrationPoll__StyledResponseExportButton",componentId:"sc-1kxjndz-1"})(templateObject_2$G||(templateObject_2$G=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingS);var templateObject_1$1a,templateObject_2$G;var EventDetailViewRegistration=function EventDetailViewRegistration(){var item=useDetailViewContext().item;var isRegistrationEnabled=item.registrationSettings&&item.registrationSettings.enabled;if(isRegistrationEnabled){return jsxRuntime.jsx(EventDetailViewRegistrationPoll,{},void 0);}return jsxRuntime.jsx(DetailViewPoll,{},void 0);};var EventDetailViewCancelInformation=function EventDetailViewCancelInformation(){var _a=useDetailViewContext(),item=_a.item,contentLanguage=_a.contentLanguage;return jsxRuntime.jsx(EventCancelInformation,{item:item,language:contentLanguage},void 0);};var classof$a=classofRaw$1;// `IsArray` abstract operation
|
|
131663
131666
|
// https://tc39.github.io/ecma262/#sec-isarray
|
|
131664
131667
|
var isArray$3=Array.isArray||function isArray(arg){return classof$a(arg)=='Array';};var $$2=_export;var isArray$2=isArray$3;var nativeReverse=[].reverse;var test=[1,2];// `Array.prototype.reverse` method
|
|
131665
131668
|
// https://tc39.github.io/ecma262/#sec-array.prototype.reverse
|
|
@@ -134140,6 +134143,9 @@
|
|
|
134140
134143
|
var groups = getGroups();
|
|
134141
134144
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
134142
134145
|
children: [jsxRuntime.jsx(GlobalDropdownStyles, {}, void 0), jsxRuntime.jsx(StyledDropdown, {
|
|
134146
|
+
ariaLabel: intl.formatMessage({
|
|
134147
|
+
id: 'AriaLabel.editor.groupSelector'
|
|
134148
|
+
}),
|
|
134143
134149
|
options: getOptions(),
|
|
134144
134150
|
onRenderOption: function (option) {
|
|
134145
134151
|
return jsxRuntime.jsxs(DropdownOption, {
|
|
@@ -134704,6 +134710,12 @@
|
|
|
134704
134710
|
}
|
|
134705
134711
|
|
|
134706
134712
|
var de$2 = {
|
|
134713
|
+
"Generic.search": "Search",
|
|
134714
|
+
"PageTitle.login": "Login",
|
|
134715
|
+
"PageTitle.register": "Register",
|
|
134716
|
+
"PageTitle.subscribe": "Subscribe",
|
|
134717
|
+
"PageTitle.linkAad": "Link AAD",
|
|
134718
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
134707
134719
|
"Generic.Ok": "Ok",
|
|
134708
134720
|
"Generic.Save": "Speichern",
|
|
134709
134721
|
"Generic.Cancel": "Abbrechen",
|
|
@@ -136683,6 +136695,7 @@
|
|
|
136683
136695
|
}
|
|
136684
136696
|
|
|
136685
136697
|
var fr$2 = {
|
|
136698
|
+
"Generic.search": "Search",
|
|
136686
136699
|
"Generic.Ok": "Ok",
|
|
136687
136700
|
"Generic.Save": "Sauvegarder",
|
|
136688
136701
|
"Generic.Cancel": "Annuler",
|
|
@@ -138662,6 +138675,19 @@
|
|
|
138662
138675
|
}
|
|
138663
138676
|
|
|
138664
138677
|
var es$2 = {
|
|
138678
|
+
"Generic.search": "Search",
|
|
138679
|
+
"PageTitle.login": "Login",
|
|
138680
|
+
"PageTitle.register": "Register",
|
|
138681
|
+
"PageTitle.subscribe": "Subscribe",
|
|
138682
|
+
"PageTitle.linkAad": "Link AAD",
|
|
138683
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
138684
|
+
"PageTitle.activateUser": "Activate User",
|
|
138685
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
138686
|
+
"PageTitle.join": "Join",
|
|
138687
|
+
"Post.keywords.title": "Select keywords for post",
|
|
138688
|
+
"ContentEditor.quoteAriaLabel": "Quote text",
|
|
138689
|
+
"TranslationManagement.changeLanguageDialog.choiceGroup.ariaLabel": "New language for this tab",
|
|
138690
|
+
"TranslationManagement.autoTranslateDialog.choiceGroup.ariaLabel": "Language to translate from",
|
|
138665
138691
|
"Generic.Ok": "Ok",
|
|
138666
138692
|
"Generic.Save": "Guardar",
|
|
138667
138693
|
"Generic.Cancel": "Cancelar",
|
|
@@ -140640,6 +140666,15 @@
|
|
|
140640
140666
|
}
|
|
140641
140667
|
|
|
140642
140668
|
var zh$1 = {
|
|
140669
|
+
"Generic.search": "Search",
|
|
140670
|
+
"PageTitle.login": "Login",
|
|
140671
|
+
"PageTitle.register": "Register",
|
|
140672
|
+
"PageTitle.subscribe": "Subscribe",
|
|
140673
|
+
"PageTitle.linkAad": "Link AAD",
|
|
140674
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
140675
|
+
"PageTitle.activateUser": "Activate User",
|
|
140676
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
140677
|
+
"PageTitle.join": "Join",
|
|
140643
140678
|
"Generic.Ok": "好的",
|
|
140644
140679
|
"Generic.Save": "保存",
|
|
140645
140680
|
"Generic.Cancel": "取消",
|
|
@@ -142604,6 +142639,16 @@
|
|
|
142604
142639
|
});
|
|
142605
142640
|
|
|
142606
142641
|
var zh = {
|
|
142642
|
+
"Generic.search": "Search",
|
|
142643
|
+
"PageTitle.login": "Login",
|
|
142644
|
+
"PageTitle.register": "Register",
|
|
142645
|
+
"PageTitle.subscribe": "Subscribe",
|
|
142646
|
+
"PageTitle.linkAad": "Link AAD",
|
|
142647
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
142648
|
+
"PageTitle.activateUser": "Activate User",
|
|
142649
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
142650
|
+
"PageTitle.join": "Join",
|
|
142651
|
+
"Post.keywords.title": "Select keywords for post",
|
|
142607
142652
|
"Generic.Ok": "好的",
|
|
142608
142653
|
"Generic.Save": "保存",
|
|
142609
142654
|
"Generic.Cancel": "取消",
|
|
@@ -144582,6 +144627,19 @@
|
|
|
144582
144627
|
}
|
|
144583
144628
|
|
|
144584
144629
|
var ja$2 = {
|
|
144630
|
+
"Generic.search": "Search",
|
|
144631
|
+
"PageTitle.login": "Login",
|
|
144632
|
+
"PageTitle.register": "Register",
|
|
144633
|
+
"PageTitle.subscribe": "Subscribe",
|
|
144634
|
+
"PageTitle.linkAad": "Link AAD",
|
|
144635
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
144636
|
+
"PageTitle.activateUser": "Activate User",
|
|
144637
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
144638
|
+
"PageTitle.join": "Join",
|
|
144639
|
+
"Post.keywords.title": "Select keywords for post",
|
|
144640
|
+
"ContentEditor.quoteAriaLabel": "Quote text",
|
|
144641
|
+
"TranslationManagement.changeLanguageDialog.choiceGroup.ariaLabel": "New language for this tab",
|
|
144642
|
+
"TranslationManagement.autoTranslateDialog.choiceGroup.ariaLabel": "Language to translate from",
|
|
144585
144643
|
"Generic.Ok": "OK",
|
|
144586
144644
|
"Generic.Save": "保存",
|
|
144587
144645
|
"Generic.Cancel": "キャンセル",
|
|
@@ -146561,6 +146619,19 @@
|
|
|
146561
146619
|
}
|
|
146562
146620
|
|
|
146563
146621
|
var tr$2 = {
|
|
146622
|
+
"Generic.search": "Search",
|
|
146623
|
+
"PageTitle.login": "Login",
|
|
146624
|
+
"PageTitle.register": "Register",
|
|
146625
|
+
"PageTitle.subscribe": "Subscribe",
|
|
146626
|
+
"PageTitle.linkAad": "Link AAD",
|
|
146627
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
146628
|
+
"PageTitle.activateUser": "Activate User",
|
|
146629
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
146630
|
+
"PageTitle.join": "Join",
|
|
146631
|
+
"Post.keywords.title": "Select keywords for post",
|
|
146632
|
+
"ContentEditor.quoteAriaLabel": "Quote text",
|
|
146633
|
+
"TranslationManagement.changeLanguageDialog.choiceGroup.ariaLabel": "New language for this tab",
|
|
146634
|
+
"TranslationManagement.autoTranslateDialog.choiceGroup.ariaLabel": "Language to translate from",
|
|
146564
146635
|
"Generic.Ok": "Tamam",
|
|
146565
146636
|
"Generic.Save": "Kaydet",
|
|
146566
146637
|
"Generic.Cancel": "İptal",
|
|
@@ -148541,6 +148612,19 @@
|
|
|
148541
148612
|
}
|
|
148542
148613
|
|
|
148543
148614
|
var it$2 = {
|
|
148615
|
+
"Generic.search": "Search",
|
|
148616
|
+
"PageTitle.login": "Login",
|
|
148617
|
+
"PageTitle.register": "Register",
|
|
148618
|
+
"PageTitle.subscribe": "Subscribe",
|
|
148619
|
+
"PageTitle.linkAad": "Link AAD",
|
|
148620
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
148621
|
+
"PageTitle.activateUser": "Activate User",
|
|
148622
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
148623
|
+
"PageTitle.join": "Join",
|
|
148624
|
+
"Post.keywords.title": "Select keywords for post",
|
|
148625
|
+
"ContentEditor.quoteAriaLabel": "Quote text",
|
|
148626
|
+
"TranslationManagement.changeLanguageDialog.choiceGroup.ariaLabel": "New language for this tab",
|
|
148627
|
+
"TranslationManagement.autoTranslateDialog.choiceGroup.ariaLabel": "Language to translate from",
|
|
148544
148628
|
"Generic.Ok": "Ok",
|
|
148545
148629
|
"Generic.Save": "Salva",
|
|
148546
148630
|
"Generic.Cancel": "Elimina",
|
|
@@ -150539,6 +150623,7 @@
|
|
|
150539
150623
|
"Generic.Restore": "Restore",
|
|
150540
150624
|
"Generic.Preview": "Preview",
|
|
150541
150625
|
"Generic.upload": "Upload",
|
|
150626
|
+
"Generic.search": "Search",
|
|
150542
150627
|
"Generic.resetToDefault": "Reset to Default",
|
|
150543
150628
|
"Generic.bookmarks": "Bookmarks",
|
|
150544
150629
|
"Generic.error": "Something went wrong. Please reload the page and try again",
|
|
@@ -150832,6 +150917,14 @@
|
|
|
150832
150917
|
"PageTitle.searchEverywhere": "Search",
|
|
150833
150918
|
"PageTitle.analytics.usage": "User Activity Analytics",
|
|
150834
150919
|
"PageTitle.analytics.news": "News Analytics",
|
|
150920
|
+
"PageTitle.login": "Login",
|
|
150921
|
+
"PageTitle.register": "Register",
|
|
150922
|
+
"PageTitle.subscribe": "Subscribe",
|
|
150923
|
+
"PageTitle.linkAad": "Link AAD",
|
|
150924
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
150925
|
+
"PageTitle.activateUser": "Activate User",
|
|
150926
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
150927
|
+
"PageTitle.join": "Join",
|
|
150835
150928
|
"Gutter.open": "Open",
|
|
150836
150929
|
"Gutter.rename": "Rename",
|
|
150837
150930
|
"Gutter.edit": "Edit",
|
|
@@ -150976,6 +151069,7 @@
|
|
|
150976
151069
|
"Post.unfollow.successful": "You are no longer following the post",
|
|
150977
151070
|
"Post.follow.tooltip": "You will be notified when someone replies to this post. Click to change.",
|
|
150978
151071
|
"Post.follow.successful": "You are now following the post",
|
|
151072
|
+
"Post.keywords.title": "Select keywords for post",
|
|
150979
151073
|
"BannerEditor.genericErrorMessage": "Something went wrong when uploading this image. Wait a moment and try again.",
|
|
150980
151074
|
"BannerEditor.addImage": "Add a banner image",
|
|
150981
151075
|
"BannerEditor.addVideo": "Add a video",
|
|
@@ -151027,6 +151121,7 @@
|
|
|
151027
151121
|
"ContentEditor.javascriptCodeInfo": "You can enter Javascript code here, which will be executed each time this page is loaded.",
|
|
151028
151122
|
"ContentEditor.dragFiles": "Drop files here",
|
|
151029
151123
|
"ContentEditor.quotePlaceholder": "Enter the quote here",
|
|
151124
|
+
"ContentEditor.quoteAriaLabel": "Quote text",
|
|
151030
151125
|
"ContentEditor.quoteSetUserAsAuthor": "Set a user as author",
|
|
151031
151126
|
"ContentEditor.quoteCustomAuthor": "Set custom author",
|
|
151032
151127
|
"ContentEditor.quoteWithoutAuthor": "Without author",
|
|
@@ -151047,10 +151142,12 @@
|
|
|
151047
151142
|
"TranslationManagement.callout.removeSecondary": "Content will be hidden but not deleted",
|
|
151048
151143
|
"TranslationManagement.changeLanguageDialog.title": "Tab language",
|
|
151049
151144
|
"TranslationManagement.changeLanguageDialog.subText": "What language is this tab?",
|
|
151145
|
+
"TranslationManagement.changeLanguageDialog.choiceGroup.ariaLabel": "New language for this tab",
|
|
151050
151146
|
"TranslationManagement.autoTranslateDialog.title": "Translate automatically",
|
|
151051
151147
|
"TranslationManagement.autoTranslateDialog.subText": "Translate from",
|
|
151052
151148
|
"TranslationManagement.autoTranslateDialog.description": "to {language} using an automatic translation.",
|
|
151053
151149
|
"TranslationManagement.autoTranslateDialog.warning": "This will overwrite the existing content on the {languageCode} tab.",
|
|
151150
|
+
"TranslationManagement.autoTranslateDialog.choiceGroup.ariaLabel": "Language to translate from",
|
|
151054
151151
|
"TranslationManagement.autoTranslateDialog.translateButton": "Translate",
|
|
151055
151152
|
"MetadataEditor.selectDate": "Select date ...",
|
|
151056
151153
|
"MetadataEditor.publishingDate": "Publishing Date",
|
|
@@ -151502,6 +151599,8 @@
|
|
|
151502
151599
|
"DateRangeSlider.twoYearAgo": "2 years",
|
|
151503
151600
|
"FilterPanel.closePanelTooltip": "Close filter panel",
|
|
151504
151601
|
"FilterPanel.clearFiltersTooltip": "Clear all active filters",
|
|
151602
|
+
"FilterPanel.clearFilterText": "Clear filter",
|
|
151603
|
+
"FilterPanel.filterModal.title": "Filter Items",
|
|
151505
151604
|
"FilterPanel.ariaLabel": "Filter panel",
|
|
151506
151605
|
"FilterPanel.date": "Date",
|
|
151507
151606
|
"FilterPanel.keywords": "Keywords",
|
|
@@ -151521,6 +151620,18 @@
|
|
|
151521
151620
|
"FilterPanel.condense": "LiveTiles Reach",
|
|
151522
151621
|
"FilterPanel.external": "External",
|
|
151523
151622
|
"FilterPanel.channels": "Channels",
|
|
151623
|
+
"FilterPanel.publishingDate": "Publishing date",
|
|
151624
|
+
"FilterPanel.publishingDateFrom": "From",
|
|
151625
|
+
"FilterPanel.publishingDateTo": "To",
|
|
151626
|
+
"FilterPanel.publishingDateBefore": "Before",
|
|
151627
|
+
"FilterPanel.publishingDateAfter": "After",
|
|
151628
|
+
"FilterPanel.publishingDatePlaceholder": "Date",
|
|
151629
|
+
"FilterPanel.publishingDateShortcuts": "Date range shortcuts",
|
|
151630
|
+
"FilterPanel.publishingDateShortcuts.yesterday": "Yesterday",
|
|
151631
|
+
"FilterPanel.publishingDateShortcuts.thisWeek": "This week",
|
|
151632
|
+
"FilterPanel.publishingDateShortcuts.lastWeek": "Last week",
|
|
151633
|
+
"FilterPanel.publishingDateShortcuts.lastMonth": "Last month",
|
|
151634
|
+
"FilterPanel.keywordFilter": "Keywords",
|
|
151524
151635
|
"FilterPanel.itemType": "Items",
|
|
151525
151636
|
"Themes.title": "Color Theme",
|
|
151526
151637
|
"Themes.selectorDescription": "Select a color theme for LiveTiles Reach.",
|
|
@@ -151568,6 +151679,7 @@
|
|
|
151568
151679
|
"Audience.settingsOperatorOR": "or",
|
|
151569
151680
|
"Audience.settingsOperatorAND": "and",
|
|
151570
151681
|
"Audience.settingsInputPlaceholder": "Value",
|
|
151682
|
+
"Audience.settingsInputLabel": "Search value",
|
|
151571
151683
|
"Audience.settingsDropdownSelect": "Select a property",
|
|
151572
151684
|
"Audience.warningAudienceWithSameName": "An audience with the name {name} already exists. Please enter another name.",
|
|
151573
151685
|
"Audience.warningAudienceWithEmptyName": "You must enter a name for the audience.",
|
|
@@ -151710,9 +151822,21 @@
|
|
|
151710
151822
|
"Customization.applicationNameInfo1": "Enter the name of your subscription.",
|
|
151711
151823
|
"Customization.applicationNameInfo2": "The name will be displayed in the header bar and in E-Mails.",
|
|
151712
151824
|
"Customization.applicationNameError": "Failed to set the subscription name",
|
|
151713
|
-
"Customization.applicationLogo": "
|
|
151714
|
-
"Customization.
|
|
151715
|
-
"Customization.
|
|
151825
|
+
"Customization.applicationLogo.title": "Logo",
|
|
151826
|
+
"Customization.applicationLogo.subtitle.small": "Logo for app and emails",
|
|
151827
|
+
"Customization.applicationLogo.subtitle.large": "Logo for sign-in dialog",
|
|
151828
|
+
"Customization.applicationLogo.upload": "Upload new logo",
|
|
151829
|
+
"Customization.applicationLogoInfo1": "Upload a custom logo to be displayed in the app and in notification emails sent to users.",
|
|
151830
|
+
"Customization.applicationLogoInfo2": "Recommended file type: .png, optionally with transparent background.",
|
|
151831
|
+
"Customization.applicationLogoInfo3": "Recommended size: {dimensions}. Width or height can be reduced as required by your logo. If both dimensions are less than the recommended values the logo might look blurry on high resolution devices.",
|
|
151832
|
+
"Customization.applicationLogoInfo3.dimensions.small": "855px width by 150px height",
|
|
151833
|
+
"Customization.applicationLogoInfo3.dimensions.large": "1500px width by 465px height",
|
|
151834
|
+
"Customization.applicationLogo.dialog.title": "Logo preview",
|
|
151835
|
+
"Customization.applicationLogo.dialog.description": "This is how your logo will look:",
|
|
151836
|
+
"Customization.applicationLogo.dialog.example.appBar": "App bar (large screens)",
|
|
151837
|
+
"Customization.applicationLogo.dialog.example.sidePanel": "Side panel overlay (small screens)",
|
|
151838
|
+
"Customization.applicationLogo.dialog.example.email": "Emails",
|
|
151839
|
+
"Customization.applicationLogo.dialog.example.signIn": "Sign-in dialog",
|
|
151716
151840
|
"Customization.applicationLogoError": "Failed to save the application logo",
|
|
151717
151841
|
"Customization.applicationLogoResetError": "Failed to reset the application logo",
|
|
151718
151842
|
"Customization.favicon": "Favicon",
|
|
@@ -152077,6 +152201,7 @@
|
|
|
152077
152201
|
"Events.myEvents": "My Booked events",
|
|
152078
152202
|
"Events.pastEvents": "Past events",
|
|
152079
152203
|
"Events.manageEvents": "Manage events",
|
|
152204
|
+
"Events.chromelessDropdown": "Choose events to show",
|
|
152080
152205
|
"ListView.manage.events": "Manage events",
|
|
152081
152206
|
"ListView.managePreview.events": "Manage events (preview)",
|
|
152082
152207
|
"Events.finishedLoading": "All events loaded",
|
|
@@ -152107,6 +152232,7 @@
|
|
|
152107
152232
|
"Events.editor.registration.settings.notRequired": "No registration required",
|
|
152108
152233
|
"Events.editor.registration.settings.fullSeries": "Register for entire series",
|
|
152109
152234
|
"Events.editor.registration.settings.perInstance": "Register per event",
|
|
152235
|
+
"Events.editor.registration.settings.choiceGroup.ariaLabel": "Select registration mode",
|
|
152110
152236
|
"Events.editor.locations.editButtonCaption": "Edit Location Settings",
|
|
152111
152237
|
"Events.editor.locations.placeholderMessage": "Click here to specify locations for this event",
|
|
152112
152238
|
"Events.editor.locations.dialogTitle": "Event Locations",
|
|
@@ -152129,6 +152255,7 @@
|
|
|
152129
152255
|
"Events.editor.locations.seatsPlaceholder": "Optional, specify the maximum number of seats",
|
|
152130
152256
|
"Events.editor.locations.invalidSeatsNumber": "The value must be greater than or equal to 0",
|
|
152131
152257
|
"Events.editor.recurrence.label": "Repeat",
|
|
152258
|
+
"Events.editor.recurrence.ariaLabel": "Recurrence type",
|
|
152132
152259
|
"Events.editor.recurrence.never": "Never",
|
|
152133
152260
|
"Events.editor.recurrence.daily": "Every day",
|
|
152134
152261
|
"Events.editor.recurrence.workDays": "Work days ({monday} - {friday})",
|
|
@@ -152142,6 +152269,7 @@
|
|
|
152142
152269
|
"Events.editor.recurrence.custom": "Custom",
|
|
152143
152270
|
"Events.editor.recurrence.custom2": "Custom Recurrence",
|
|
152144
152271
|
"Events.editor.recurrence.custom.repeatEvery": "Repeat every",
|
|
152272
|
+
"Events.editor.recurrence.custom.intervalNumber.ariaLabel": "Frequency",
|
|
152145
152273
|
"Events.editor.recurrence.custom.daily": "Day",
|
|
152146
152274
|
"Events.editor.recurrence.custom.weekly": "Week",
|
|
152147
152275
|
"Events.editor.recurrence.custom.monthly": "Month",
|
|
@@ -152152,8 +152280,13 @@
|
|
|
152152
152280
|
"Events.editor.recurrence.custom.fourth": "Fourth",
|
|
152153
152281
|
"Events.editor.recurrence.custom.last": "Last",
|
|
152154
152282
|
"Events.editor.recurrence.custom.onDay": "On day",
|
|
152283
|
+
"Events.editor.recurrence.custom.dayOfMonth.ariaLabel": "Day of month",
|
|
152155
152284
|
"Events.editor.recurrence.custom.onThe": "On the",
|
|
152156
152285
|
"Events.editor.recurrence.custom.of": "of",
|
|
152286
|
+
"Events.editor.recurrence.custom.weekOfMonth.ariaLabel": "Choose week of the month",
|
|
152287
|
+
"Events.editor.recurrence.custom.dayOfWeek.ariaLabel": "Choose day of the week",
|
|
152288
|
+
"Events.editor.recurrence.custom.month.ariaLabel": "Choose month",
|
|
152289
|
+
"Events.editor.recurrence.custom.dateOrWeekday.ariaLabel": "Specific date or weekday based",
|
|
152157
152290
|
"Events.editor.recurrence.iconTooltip": "This event repeats until {endDate}",
|
|
152158
152291
|
"Events.editor.recurrence.disabledPublishButtonValidationInfo": "This event is part of a series and the entire series is not published. To publish an individual event of a series, the entire series must be published first.",
|
|
152159
152292
|
"Events.editor.recurrence.series": "Event series",
|
|
@@ -152178,6 +152311,7 @@
|
|
|
152178
152311
|
"Events.editor.recurrence.unpublishOptionsDialogDescription": "This event is part of an event series. Do you want to unpublish the entire series or just this event?",
|
|
152179
152312
|
"Events.editor.recurrence.unpublishEntireSeries": "Unpublish the entire series",
|
|
152180
152313
|
"Events.editor.recurrence.unpublishThisEventOnly": "Unpublish only this event:",
|
|
152314
|
+
"Events.editor.recurrence.seriesOrEventRadio.ariaLabel": "Select series or single event",
|
|
152181
152315
|
"Events.editor.recurrence.endDate": "Last Occurrence",
|
|
152182
152316
|
"Events.editor.recurrence.editSeriesEvent": "Edit event series",
|
|
152183
152317
|
"Events.editor.recurrence.editSeriesEventInfo": "This event is part of an event series. Do you want to edit the entire series or just this event?",
|
|
@@ -152244,12 +152378,14 @@
|
|
|
152244
152378
|
"InlineContact.editor.userPicker.label": "Pick user",
|
|
152245
152379
|
"InlineContact.editor.infoTitle": "Contact info to display",
|
|
152246
152380
|
"InlineContact.editor.invalidEmail": "Invalid email address.",
|
|
152381
|
+
"InlineContact.editor.checkboxAriaLabel": "Toggle {field} on or off",
|
|
152247
152382
|
"InlineTable.format.dialogTitle": "Table Settings",
|
|
152248
152383
|
"InlineTable.format.showGrid": "Show grid",
|
|
152249
152384
|
"InlineTable.format.alternateLines": "Alternate line coloring",
|
|
152250
152385
|
"InlineTable.format.hasHeaderRow": "Render the first row as header",
|
|
152251
152386
|
"InlineTable.format.hasFooterRow": "Render the last row as footer",
|
|
152252
152387
|
"InlineTable.link.placeholder": "Enter a URL and press Enter",
|
|
152388
|
+
"InlineTable.link.ariaLabel": "URL",
|
|
152253
152389
|
"Teams.disabled.title": "Teams integration not enabled",
|
|
152254
152390
|
"Teams.disabled.message": "Teams integration is not enabled for your LiveTiles Reach subscription. Please ask your administrator to enable it.",
|
|
152255
152391
|
"Teams.disabled.contact.name": "Subscription name: {name}",
|
|
@@ -152362,6 +152498,13 @@
|
|
|
152362
152498
|
"AriaLabel.readMoreAbout": "Read more about {title}",
|
|
152363
152499
|
"AriaLabel.goToManageView": "Go to manage view",
|
|
152364
152500
|
"AriaLabel.toolbarChannelSelector": "Select a channel or a view (Bookmarks or Manage Channels)",
|
|
152501
|
+
"AriaLabel.chatInput": "Message",
|
|
152502
|
+
"AriaLabel.postInput": "Post",
|
|
152503
|
+
"AriaLabel.commentInput": "Comment",
|
|
152504
|
+
"AriaLabel.booleanDropdownLabel": "Choose search operator",
|
|
152505
|
+
"AriaLabel.channelName": "Channel Name",
|
|
152506
|
+
"AriaLabel.channels": "Channels",
|
|
152507
|
+
"AriaLabel.termsAndConditions": "Terms and Conditions",
|
|
152365
152508
|
"AriaLabel.editor.allowComments": "Allow comments for this item",
|
|
152366
152509
|
"AriaLabel.editor.allowLikes": "Allow users to like this item",
|
|
152367
152510
|
"AriaLabel.editor.allowRegistration": "Allow registration for this event",
|
|
@@ -152395,19 +152538,37 @@
|
|
|
152395
152538
|
"AriaLabel.editor.toolbar.cellColor": "Select cell background color",
|
|
152396
152539
|
"AriaLabel.editor.toolbar.clearFormatting": "Clear formatting",
|
|
152397
152540
|
"AriaLabel.editor.manageTranslation": "Manage {language} translation",
|
|
152541
|
+
"AriaLabel.editor.insertQuote.authorType": "Author Type",
|
|
152542
|
+
"AriaLabel.editor.insertQuote.customAuthor": "Custom author",
|
|
152543
|
+
"AriaLabel.editor.externalUrl.input": "URL",
|
|
152544
|
+
"AriaLabel.editor.groupSelector": "Groups",
|
|
152545
|
+
"AriaLabel.managePagesEditor.title": "Title",
|
|
152546
|
+
"AriaLabel.managePagesEditor.toggleSelection": "Toggle selection",
|
|
152398
152547
|
"AriaLabel.filter.filterByChannel": "Filter by channel",
|
|
152399
152548
|
"AriaLabel.filter.filterByDate": "Filter by date",
|
|
152400
152549
|
"AriaLabel.filter.filterByState": "Filter by state",
|
|
152401
152550
|
"AriaLabel.filter.filterBySource": "Filter by source",
|
|
152551
|
+
"AriaLabel.filter.toggle": "Toggle filter on or off",
|
|
152552
|
+
"AriaLabel.authorFilter.toggleUser": "Select or deselect user",
|
|
152402
152553
|
"AriaLabel.shareButton.copyField": "Link to this item",
|
|
152403
152554
|
"AriaLabel.videoElementGenerator.videoPreview": "{type} video preview",
|
|
152404
152555
|
"AriaLabel.roleDropdown": "Change role",
|
|
152405
152556
|
"AriaLabel.deleteUserButton": "Delete user",
|
|
152406
152557
|
"AriaLabel.editUserButton": "Edit user",
|
|
152558
|
+
"AriaLabel.userEmail": "User email",
|
|
152559
|
+
"AriaLabel.email": "Email",
|
|
152560
|
+
"AriaLabel.user": "User",
|
|
152407
152561
|
"Generic.peoplePicker.placeholder": "Search for a user",
|
|
152562
|
+
"AriaLabel.peoplePicker.author": "Author",
|
|
152563
|
+
"AriaLabel.peoplePicker.contact": "Contact",
|
|
152564
|
+
"AriaLabel.peoplePicker.owner": "Owner",
|
|
152565
|
+
"AriaLabel.peoplePicker.contacts": "Contacts",
|
|
152566
|
+
"AriaLabel.peoplePicker.members": "Members",
|
|
152408
152567
|
"AriaLabel.peoplePicker.suggestionsContainer": "Suggested users",
|
|
152568
|
+
"AriaLabel.peoplePicker.addOrInviteToGroup": "User, Group, or Email",
|
|
152409
152569
|
"AriaLabel.languages.active.toggle": "Toggle {language} active state",
|
|
152410
152570
|
"AriaLabel.keywords.add": "Add keyword",
|
|
152571
|
+
"AriaLabel.keywordEditor.input": "Keyword name",
|
|
152411
152572
|
"AriaLabel.dateTimePicker.calendar.prevMonth": "Previous Month",
|
|
152412
152573
|
"AriaLabel.dateTimePicker.calendar.nextMonth": "Next Month",
|
|
152413
152574
|
"AriaLabel.dateTimePicker.calendar.prevYear": "Previous Year",
|
|
@@ -152430,8 +152591,17 @@
|
|
|
152430
152591
|
"AriaLabel.section.keywords": "Keywords",
|
|
152431
152592
|
"AriaLabel.section.comments": "Comments",
|
|
152432
152593
|
"AriaLabel.section.subscriptionAlreadyExistsInfo": "Subscription already exists ",
|
|
152594
|
+
"AriaLabel.confirmDelete.group": "Group name",
|
|
152595
|
+
"AriaLabel.confirmDelete.keywordGroup": "Keyword group name",
|
|
152596
|
+
"AriaLabel.confirmDelete.item": "Item title",
|
|
152597
|
+
"AriaLabel.confirmDelete.page": "Page title",
|
|
152598
|
+
"AriaLabel.confirmDelete.page.document": "Document title",
|
|
152599
|
+
"AriaLabel.customization.applicationNameInput": "Subscription name",
|
|
152600
|
+
"AriaLabel.customization.applicationHandleInput": "Subscription handle",
|
|
152433
152601
|
"Lib.newsList.noItems": "No News to show",
|
|
152434
152602
|
"Lib.paging.goToFirstPage": "Go to first page",
|
|
152603
|
+
"Lib.channelFilter.choiceGroupLabel": "Select the logical operator for channels filter",
|
|
152604
|
+
"Lib.keywordsFilter.choiceGroupLabel": "Select the logical operator for keywords filter",
|
|
152435
152605
|
"UserFeed.emptyList": "There are no feed items yet.",
|
|
152436
152606
|
"UserFeed.allLoaded": "All feed items loaded.",
|
|
152437
152607
|
"UserFeed.itemType.news": "News",
|
package/it.async.esm.esm.js
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import './it.esm.js';
|
|
2
2
|
|
|
3
3
|
var it = {
|
|
4
|
+
"Generic.search": "Search",
|
|
5
|
+
"PageTitle.login": "Login",
|
|
6
|
+
"PageTitle.register": "Register",
|
|
7
|
+
"PageTitle.subscribe": "Subscribe",
|
|
8
|
+
"PageTitle.linkAad": "Link AAD",
|
|
9
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
10
|
+
"PageTitle.activateUser": "Activate User",
|
|
11
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
12
|
+
"PageTitle.join": "Join",
|
|
13
|
+
"Post.keywords.title": "Select keywords for post",
|
|
14
|
+
"ContentEditor.quoteAriaLabel": "Quote text",
|
|
15
|
+
"TranslationManagement.changeLanguageDialog.choiceGroup.ariaLabel": "New language for this tab",
|
|
16
|
+
"TranslationManagement.autoTranslateDialog.choiceGroup.ariaLabel": "Language to translate from",
|
|
4
17
|
"Generic.Ok": "Ok",
|
|
5
18
|
"Generic.Save": "Salva",
|
|
6
19
|
"Generic.Cancel": "Elimina",
|
package/ja.async.esm.esm.js
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import './ja.esm.js';
|
|
2
2
|
|
|
3
3
|
var ja = {
|
|
4
|
+
"Generic.search": "Search",
|
|
5
|
+
"PageTitle.login": "Login",
|
|
6
|
+
"PageTitle.register": "Register",
|
|
7
|
+
"PageTitle.subscribe": "Subscribe",
|
|
8
|
+
"PageTitle.linkAad": "Link AAD",
|
|
9
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
10
|
+
"PageTitle.activateUser": "Activate User",
|
|
11
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
12
|
+
"PageTitle.join": "Join",
|
|
13
|
+
"Post.keywords.title": "Select keywords for post",
|
|
14
|
+
"ContentEditor.quoteAriaLabel": "Quote text",
|
|
15
|
+
"TranslationManagement.changeLanguageDialog.choiceGroup.ariaLabel": "New language for this tab",
|
|
16
|
+
"TranslationManagement.autoTranslateDialog.choiceGroup.ariaLabel": "Language to translate from",
|
|
4
17
|
"Generic.Ok": "OK",
|
|
5
18
|
"Generic.Save": "保存",
|
|
6
19
|
"Generic.Cancel": "キャンセル",
|
package/package.json
CHANGED
package/tr.async.esm.esm.js
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import './tr.esm.js';
|
|
2
2
|
|
|
3
3
|
var tr = {
|
|
4
|
+
"Generic.search": "Search",
|
|
5
|
+
"PageTitle.login": "Login",
|
|
6
|
+
"PageTitle.register": "Register",
|
|
7
|
+
"PageTitle.subscribe": "Subscribe",
|
|
8
|
+
"PageTitle.linkAad": "Link AAD",
|
|
9
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
10
|
+
"PageTitle.activateUser": "Activate User",
|
|
11
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
12
|
+
"PageTitle.join": "Join",
|
|
13
|
+
"Post.keywords.title": "Select keywords for post",
|
|
14
|
+
"ContentEditor.quoteAriaLabel": "Quote text",
|
|
15
|
+
"TranslationManagement.changeLanguageDialog.choiceGroup.ariaLabel": "New language for this tab",
|
|
16
|
+
"TranslationManagement.autoTranslateDialog.choiceGroup.ariaLabel": "Language to translate from",
|
|
4
17
|
"Generic.Ok": "Tamam",
|
|
5
18
|
"Generic.Save": "Kaydet",
|
|
6
19
|
"Generic.Cancel": "İptal",
|
package/zh-CN.async.esm.esm.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import './zh.esm.js';
|
|
2
2
|
|
|
3
3
|
var zh = {
|
|
4
|
+
"Generic.search": "Search",
|
|
5
|
+
"PageTitle.login": "Login",
|
|
6
|
+
"PageTitle.register": "Register",
|
|
7
|
+
"PageTitle.subscribe": "Subscribe",
|
|
8
|
+
"PageTitle.linkAad": "Link AAD",
|
|
9
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
10
|
+
"PageTitle.activateUser": "Activate User",
|
|
11
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
12
|
+
"PageTitle.join": "Join",
|
|
13
|
+
"Post.keywords.title": "Select keywords for post",
|
|
4
14
|
"Generic.Ok": "好的",
|
|
5
15
|
"Generic.Save": "保存",
|
|
6
16
|
"Generic.Cancel": "取消",
|
package/zh-TW.async.esm.esm.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import './zh.esm.js';
|
|
2
2
|
|
|
3
3
|
var zh = {
|
|
4
|
+
"Generic.search": "Search",
|
|
5
|
+
"PageTitle.login": "Login",
|
|
6
|
+
"PageTitle.register": "Register",
|
|
7
|
+
"PageTitle.subscribe": "Subscribe",
|
|
8
|
+
"PageTitle.linkAad": "Link AAD",
|
|
9
|
+
"PageTitle.termsAndConditions": "Terms and Conditions",
|
|
10
|
+
"PageTitle.activateUser": "Activate User",
|
|
11
|
+
"PageTitle.consentStatus": "Consent Status",
|
|
12
|
+
"PageTitle.join": "Join",
|
|
4
13
|
"Generic.Ok": "好的",
|
|
5
14
|
"Generic.Save": "保存",
|
|
6
15
|
"Generic.Cancel": "取消",
|